Skip to content

Commit e7893a8

Browse files
authored
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

Diff for: src/lib/builders/authdef-builder.ts

+41
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+
}

Diff for: src/lib/builders/basicpropsdef-builder.ts

+41
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+
}

Diff for: src/lib/builders/bearerpropsdef-builder.ts

+41
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.Bearerpropsdef} data The underlying object
24+
* @returns {Specification.Bearerpropsdef} The validated underlying object
25+
*/
26+
function bearerpropsdefBuildingFn(data: Specification.Bearerpropsdef): () => Specification.Bearerpropsdef {
27+
return () => {
28+
const model = new Specification.Bearerpropsdef(data);
29+
30+
validate('Bearerpropsdef', model);
31+
return model;
32+
};
33+
}
34+
35+
/**
36+
* A factory to create a builder proxy for the type `Specification.Bearerpropsdef`
37+
* @returns {Specification.Bearerpropsdef} A builder for `Specification.Bearerpropsdef`
38+
*/
39+
export function bearerpropsdefBuilder(): Builder<Specification.Bearerpropsdef> {
40+
return builder<Specification.Bearerpropsdef>(bearerpropsdefBuildingFn);
41+
}

Diff for: src/lib/builders/continueasdef-builder.ts

+41
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.Continueasdef} data The underlying object
24+
* @returns {Specification.Continueasdef} The validated underlying object
25+
*/
26+
function continueasdefBuildingFn(data: Specification.Continueasdef): () => Specification.Continueasdef {
27+
return () => {
28+
const model = new Specification.Continueasdef(data);
29+
30+
validate('Continueasdef', model);
31+
return model;
32+
};
33+
}
34+
35+
/**
36+
* A factory to create a builder proxy for the type `Specification.Continueasdef`
37+
* @returns {Specification.Continueasdef} A builder for `Specification.Continueasdef`
38+
*/
39+
export function continueasdefBuilder(): Builder<Specification.Continueasdef> {
40+
return builder<Specification.Continueasdef>(continueasdefBuildingFn);
41+
}

Diff for: src/lib/builders/errordef-builder.ts

+41
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.Errordef} data The underlying object
24+
* @returns {Specification.Errordef} The validated underlying object
25+
*/
26+
function errordefBuildingFn(data: Specification.Errordef): () => Specification.Errordef {
27+
return () => {
28+
const model = new Specification.Errordef(data);
29+
30+
validate('Errordef', model);
31+
return model;
32+
};
33+
}
34+
35+
/**
36+
* A factory to create a builder proxy for the type `Specification.Errordef`
37+
* @returns {Specification.Errordef} A builder for `Specification.Errordef`
38+
*/
39+
export function errordefBuilder(): Builder<Specification.Errordef> {
40+
return builder<Specification.Errordef>(errordefBuildingFn);
41+
}

Diff for: src/lib/builders/index.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@
1717
export * from './workflow-builder';
1818
export * from './action-builder';
1919
export * from './actiondatafilter-builder';
20+
export * from './authdef-builder';
21+
export * from './basicpropsdef-builder';
22+
export * from './bearerpropsdef-builder';
2023
export * from './branch-builder';
2124
export * from './callbackstate-builder';
25+
export * from './continueasdef-builder';
2226
export * from './correlation-def-builder';
2327
export * from './crondef-builder';
2428
export * from './databasedswitch-builder';
2529
export * from './defaultconditiondef-builder';
26-
export * from './delaystate-builder';
2730
export * from './end-builder';
2831
export * from './enddatacondition-builder';
2932
export * from './enddeventcondition-builder';
3033
export * from './error-builder';
34+
export * from './errordef-builder';
3135
export * from './eventbasedswitch-builder';
3236
export * from './eventdatafilter-builder';
3337
export * from './eventdef-builder';
@@ -38,13 +42,17 @@ export * from './function-builder';
3842
export * from './functionref-builder';
3943
export * from './injectstate-builder';
4044
export * from './metadata-builder';
45+
export * from './oauth2propsdef-builder';
4146
export * from './onevents-builder';
4247
export * from './operationstate-builder';
4348
export * from './parallelstate-builder';
4449
export * from './produceeventdef-builder';
4550
export * from './retrydef-builder';
4651
export * from './schedule-builder';
52+
export * from './sleep-builder';
53+
export * from './sleepstate-builder';
4754
export * from './startdef-builder';
55+
export * from './state-exec-timeout-builder';
4856
export * from './statedatafilter-builder';
4957
export * from './subflowref-builder';
5058
export * from './timeouts-builder';

Diff for: src/lib/builders/oauth2propsdef-builder.ts

+41
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.Oauth2propsdef} data The underlying object
24+
* @returns {Specification.Oauth2propsdef} The validated underlying object
25+
*/
26+
function oauth2propsdefBuildingFn(data: Specification.Oauth2propsdef): () => Specification.Oauth2propsdef {
27+
return () => {
28+
const model = new Specification.Oauth2propsdef(data);
29+
30+
validate('Oauth2propsdef', model);
31+
return model;
32+
};
33+
}
34+
35+
/**
36+
* A factory to create a builder proxy for the type `Specification.Oauth2propsdef`
37+
* @returns {Specification.Oauth2propsdef} A builder for `Specification.Oauth2propsdef`
38+
*/
39+
export function oauth2propsdefBuilder(): Builder<Specification.Oauth2propsdef> {
40+
return builder<Specification.Oauth2propsdef>(oauth2propsdefBuildingFn);
41+
}

Diff for: src/lib/builders/sleep-builder.ts

+41
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.Sleep} data The underlying object
24+
* @returns {Specification.Sleep} The validated underlying object
25+
*/
26+
function sleepBuildingFn(data: Specification.Sleep): () => Specification.Sleep {
27+
return () => {
28+
const model = new Specification.Sleep(data);
29+
30+
validate('Sleep', model);
31+
return model;
32+
};
33+
}
34+
35+
/**
36+
* A factory to create a builder proxy for the type `Specification.Sleep`
37+
* @returns {Specification.Sleep} A builder for `Specification.Sleep`
38+
*/
39+
export function sleepBuilder(): Builder<Specification.Sleep> {
40+
return builder<Specification.Sleep>(sleepBuildingFn);
41+
}

Diff for: src/lib/builders/delaystate-builder.ts renamed to src/lib/builders/sleepstate-builder.ts

+9-12
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,25 @@
1717
import { Builder, builder } from '../builder';
1818
import { Specification } from '../definitions';
1919
import { validate } from '../utils';
20-
import { setEndValueIfNoTransition } from '../definitions/utils';
2120

2221
/**
2322
* The internal function used by the builder proxy to validate and return its underlying object
24-
* @param {Specification.Delaystate} data The underlying object
25-
* @returns {Specification.Delaystate} The validated underlying object
23+
* @param {Specification.Sleepstate} data The underlying object
24+
* @returns {Specification.Sleepstate} The validated underlying object
2625
*/
27-
function delaystateBuildingFn(data: Specification.Delaystate): () => Specification.Delaystate {
26+
function sleepstateBuildingFn(data: Specification.Sleepstate): () => Specification.Sleepstate {
2827
return () => {
29-
const model = new Specification.Delaystate(data);
28+
const model = new Specification.Sleepstate(data);
3029

31-
setEndValueIfNoTransition(model);
32-
33-
validate('Delaystate', model);
30+
validate('Sleepstate', model);
3431
return model;
3532
};
3633
}
3734

3835
/**
39-
* A factory to create a builder proxy for the type `Specification.Delaystate`
40-
* @returns {Specification.Delaystate} A builder for `Specification.Delaystate`
36+
* A factory to create a builder proxy for the type `Specification.Sleepstate`
37+
* @returns {Specification.Sleepstate} A builder for `Specification.Sleepstate`
4138
*/
42-
export function delaystateBuilder(): Builder<Specification.Delaystate> {
43-
return builder<Specification.Delaystate>(delaystateBuildingFn);
39+
export function sleepstateBuilder(): Builder<Specification.Sleepstate> {
40+
return builder<Specification.Sleepstate>(sleepstateBuildingFn);
4441
}

0 commit comments

Comments
 (0)