Skip to content

Commit e7893a8

Browse files
authoredAug 18, 2021
Merge pull request #131 from antmendoza/update_verions_07_3
update to v07 specification
2 parents 0d708de + c393ac8 commit e7893a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2515
-548
lines changed
 

‎src/lib/builders/authdef-builder.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2021-Present The Serverless Workflow Specification Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
import { Builder, builder } from '../builder';
18+
import { Specification } from '../definitions';
19+
import { validate } from '../utils';
20+
21+
/**
22+
* The internal function used by the builder proxy to validate and return its underlying object
23+
* @param {Specification.Authdef} data The underlying object
24+
* @returns {Specification.Authdef} The validated underlying object
25+
*/
26+
function authdefBuildingFn(data: Specification.Authdef): () => Specification.Authdef {
27+
return () => {
28+
const model = new Specification.Authdef(data);
29+
30+
validate('Authdef', model);
31+
return model;
32+
};
33+
}
34+
35+
/**
36+
* A factory to create a builder proxy for the type `Specification.Authdef`
37+
* @returns {Specification.Authdef} A builder for `Specification.Authdef`
38+
*/
39+
export function authdefBuilder(): Builder<Specification.Authdef> {
40+
return builder<Specification.Authdef>(authdefBuildingFn);
41+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2021-Present The Serverless Workflow Specification Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
import { Builder, builder } from '../builder';
18+
import { Specification } from '../definitions';
19+
import { validate } from '../utils';
20+
21+
/**
22+
* The internal function used by the builder proxy to validate and return its underlying object
23+
* @param {Specification.Basicpropsdef} data The underlying object
24+
* @returns {Specification.Basicpropsdef} The validated underlying object
25+
*/
26+
function basicpropsdefBuildingFn(data: Specification.Basicpropsdef): () => Specification.Basicpropsdef {
27+
return () => {
28+
const model = new Specification.Basicpropsdef(data);
29+
30+
validate('Basicpropsdef', model);
31+
return model;
32+
};
33+
}
34+
35+
/**
36+
* A factory to create a builder proxy for the type `Specification.Basicpropsdef`
37+
* @returns {Specification.Basicpropsdef} A builder for `Specification.Basicpropsdef`
38+
*/
39+
export function basicpropsdefBuilder(): Builder<Specification.Basicpropsdef> {
40+
return builder<Specification.Basicpropsdef>(basicpropsdefBuildingFn);
41+
}

0 commit comments

Comments
 (0)
Please sign in to comment.