Skip to content

Commit f107cb6

Browse files
committed
Updated for v1.0.0-alpha3
Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
1 parent fe3bbee commit f107cb6

File tree

284 files changed

+16267
-4706
lines changed

Some content is hidden

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

284 files changed

+16267
-4706
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@serverlessworkflow/sdk",
3-
"version": "1.0.0-alpha2.0",
4-
"schemaVersion": "1.0.0-alpha2",
3+
"version": "1.0.0-alpha3.0",
4+
"schemaVersion": "1.0.0-alpha3",
55
"description": "Typescript SDK for Serverless Workflow Specification",
66
"main": "umd/index.umd.min.js",
77
"browser": "umd/index.umd.min.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
/*****************************************************************************************
18+
*
19+
* /!\ This file is computer generated. Any manual modification can and will be lost. /!\
20+
*
21+
*****************************************************************************************/
22+
23+
import { builder, Builder, BuildOptions } from '../../builder';
24+
import { Classes } from '../classes';
25+
import { Specification } from '../definitions';
26+
27+
/**
28+
* The internal function used by the builder proxy to validate and return its underlying object
29+
* @param {Specification.AllEventConsumptionStrategy} model The proxied object
30+
* @param {BuildOptions} options The build options to use
31+
* @returns {Specification.AllEventConsumptionStrategy} The built object
32+
*/
33+
function buildingFn(
34+
model: Specification.AllEventConsumptionStrategy,
35+
options: BuildOptions,
36+
): Specification.AllEventConsumptionStrategy {
37+
const instance = new Classes.AllEventConsumptionStrategy(model);
38+
if (options.validate) instance.validate();
39+
return (options.normalize ? instance.normalize() : instance) as Specification.AllEventConsumptionStrategy;
40+
}
41+
42+
/**
43+
* A factory to create a builder proxy for the type `Specification.AllEventConsumptionStrategy`
44+
* @returns {Builder<Specification.AllEventConsumptionStrategy>} A builder for `Specification.AllEventConsumptionStrategy`
45+
*/
46+
export const allEventConsumptionStrategyBuilder = (
47+
model?: Partial<Specification.AllEventConsumptionStrategy>,
48+
): Builder<Specification.AllEventConsumptionStrategy> =>
49+
builder<Specification.AllEventConsumptionStrategy>(model, buildingFn);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
/*****************************************************************************************
18+
*
19+
* /!\ This file is computer generated. Any manual modification can and will be lost. /!\
20+
*
21+
*****************************************************************************************/
22+
23+
import { arrayBuilder, ArrayBuilder, BuildOptions } from '../../builder';
24+
import { Classes } from '../classes';
25+
import { Specification } from '../definitions';
26+
27+
/**
28+
* The internal function used by the builder proxy to validate and return its underlying array
29+
* @param {Specification.AllEventConsumptionStrategyConfiguration} model The proxied array
30+
* @param {BuildOptions} options The build options to use
31+
* @returns {Specification.AllEventConsumptionStrategyConfiguration} The built array
32+
*/
33+
function buildingFn(
34+
model: Specification.AllEventConsumptionStrategyConfiguration,
35+
options: BuildOptions,
36+
): Specification.AllEventConsumptionStrategyConfiguration {
37+
const instance = new Classes.AllEventConsumptionStrategyConfiguration(model);
38+
if (options.validate) instance.validate();
39+
return (
40+
options.normalize ? instance.normalize() : instance
41+
) as Specification.AllEventConsumptionStrategyConfiguration;
42+
}
43+
44+
/**
45+
* A factory to create a builder proxy for the type `Specification.AllEventConsumptionStrategyConfiguration`
46+
* @returns {ArrayBuilder<Specification.AllEventConsumptionStrategyConfiguration>} A builder for `Specification.AllEventConsumptionStrategyConfiguration`
47+
*/
48+
export const allEventConsumptionStrategyConfigurationBuilder = (
49+
model?: Specification.AllEventConsumptionStrategyConfiguration,
50+
): ArrayBuilder<Specification.EventFilter> => arrayBuilder<Specification.EventFilter>(model, buildingFn);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
/*****************************************************************************************
18+
*
19+
* /!\ This file is computer generated. Any manual modification can and will be lost. /!\
20+
*
21+
*****************************************************************************************/
22+
23+
import { builder, Builder, BuildOptions } from '../../builder';
24+
import { Classes } from '../classes';
25+
import { Specification } from '../definitions';
26+
27+
/**
28+
* The internal function used by the builder proxy to validate and return its underlying object
29+
* @param {Specification.AnyEventConsumptionStrategy} model The proxied object
30+
* @param {BuildOptions} options The build options to use
31+
* @returns {Specification.AnyEventConsumptionStrategy} The built object
32+
*/
33+
function buildingFn(
34+
model: Specification.AnyEventConsumptionStrategy,
35+
options: BuildOptions,
36+
): Specification.AnyEventConsumptionStrategy {
37+
const instance = new Classes.AnyEventConsumptionStrategy(model);
38+
if (options.validate) instance.validate();
39+
return (options.normalize ? instance.normalize() : instance) as Specification.AnyEventConsumptionStrategy;
40+
}
41+
42+
/**
43+
* A factory to create a builder proxy for the type `Specification.AnyEventConsumptionStrategy`
44+
* @returns {Builder<Specification.AnyEventConsumptionStrategy>} A builder for `Specification.AnyEventConsumptionStrategy`
45+
*/
46+
export const anyEventConsumptionStrategyBuilder = (
47+
model?: Partial<Specification.AnyEventConsumptionStrategy>,
48+
): Builder<Specification.AnyEventConsumptionStrategy> =>
49+
builder<Specification.AnyEventConsumptionStrategy>(model, buildingFn);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
/*****************************************************************************************
18+
*
19+
* /!\ This file is computer generated. Any manual modification can and will be lost. /!\
20+
*
21+
*****************************************************************************************/
22+
23+
import { arrayBuilder, ArrayBuilder, BuildOptions } from '../../builder';
24+
import { Classes } from '../classes';
25+
import { Specification } from '../definitions';
26+
27+
/**
28+
* The internal function used by the builder proxy to validate and return its underlying array
29+
* @param {Specification.AnyEventConsumptionStrategyConfiguration} model The proxied array
30+
* @param {BuildOptions} options The build options to use
31+
* @returns {Specification.AnyEventConsumptionStrategyConfiguration} The built array
32+
*/
33+
function buildingFn(
34+
model: Specification.AnyEventConsumptionStrategyConfiguration,
35+
options: BuildOptions,
36+
): Specification.AnyEventConsumptionStrategyConfiguration {
37+
const instance = new Classes.AnyEventConsumptionStrategyConfiguration(model);
38+
if (options.validate) instance.validate();
39+
return (
40+
options.normalize ? instance.normalize() : instance
41+
) as Specification.AnyEventConsumptionStrategyConfiguration;
42+
}
43+
44+
/**
45+
* A factory to create a builder proxy for the type `Specification.AnyEventConsumptionStrategyConfiguration`
46+
* @returns {ArrayBuilder<Specification.AnyEventConsumptionStrategyConfiguration>} A builder for `Specification.AnyEventConsumptionStrategyConfiguration`
47+
*/
48+
export const anyEventConsumptionStrategyConfigurationBuilder = (
49+
model?: Specification.AnyEventConsumptionStrategyConfiguration,
50+
): ArrayBuilder<Specification.EventFilter> => arrayBuilder<Specification.EventFilter>(model, buildingFn);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
/*****************************************************************************************
18+
*
19+
* /!\ This file is computer generated. Any manual modification can and will be lost. /!\
20+
*
21+
*****************************************************************************************/
22+
23+
import { builder, Builder, BuildOptions } from '../../builder';
24+
import { Classes } from '../classes';
25+
import { Specification } from '../definitions';
26+
27+
/**
28+
* The internal function used by the builder proxy to validate and return its underlying object
29+
* @param {Specification.AsyncApiArguments} model The proxied object
30+
* @param {BuildOptions} options The build options to use
31+
* @returns {Specification.AsyncApiArguments} The built object
32+
*/
33+
function buildingFn(model: Specification.AsyncApiArguments, options: BuildOptions): Specification.AsyncApiArguments {
34+
const instance = new Classes.AsyncApiArguments(model);
35+
if (options.validate) instance.validate();
36+
return (options.normalize ? instance.normalize() : instance) as Specification.AsyncApiArguments;
37+
}
38+
39+
/**
40+
* A factory to create a builder proxy for the type `Specification.AsyncApiArguments`
41+
* @returns {Builder<Specification.AsyncApiArguments>} A builder for `Specification.AsyncApiArguments`
42+
*/
43+
export const asyncApiArgumentsBuilder = (
44+
model?: Partial<Specification.AsyncApiArguments>,
45+
): Builder<Specification.AsyncApiArguments> => builder<Specification.AsyncApiArguments>(model, buildingFn);

src/lib/generated/builders/call-open-api-with-authentication-builder.ts renamed to src/lib/generated/builders/authentication-policy-reference-builder.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@ import { Specification } from '../definitions';
2626

2727
/**
2828
* The internal function used by the builder proxy to validate and return its underlying object
29-
* @param {Specification.CallOpenAPIWithAuthentication} model The proxied object
29+
* @param {Specification.AuthenticationPolicyReference} model The proxied object
3030
* @param {BuildOptions} options The build options to use
31-
* @returns {Specification.CallOpenAPIWithAuthentication} The built object
31+
* @returns {Specification.AuthenticationPolicyReference} The built object
3232
*/
3333
function buildingFn(
34-
model: Specification.CallOpenAPIWithAuthentication,
34+
model: Specification.AuthenticationPolicyReference,
3535
options: BuildOptions,
36-
): Specification.CallOpenAPIWithAuthentication {
37-
const instance = new Classes.CallOpenAPIWithAuthentication(model);
36+
): Specification.AuthenticationPolicyReference {
37+
const instance = new Classes.AuthenticationPolicyReference(model);
3838
if (options.validate) instance.validate();
39-
return (options.normalize ? instance.normalize() : instance) as Specification.CallOpenAPIWithAuthentication;
39+
return (options.normalize ? instance.normalize() : instance) as Specification.AuthenticationPolicyReference;
4040
}
4141

4242
/**
43-
* A factory to create a builder proxy for the type `Specification.CallOpenAPIWithAuthentication`
44-
* @returns {Builder<Specification.CallOpenAPIWithAuthentication>} A builder for `Specification.CallOpenAPIWithAuthentication`
43+
* A factory to create a builder proxy for the type `Specification.AuthenticationPolicyReference`
44+
* @returns {Builder<Specification.AuthenticationPolicyReference>} A builder for `Specification.AuthenticationPolicyReference`
4545
*/
46-
export const callOpenAPIWithAuthenticationBuilder = (
47-
model?: Partial<Specification.CallOpenAPIWithAuthentication>,
48-
): Builder<Specification.CallOpenAPIWithAuthentication> =>
49-
builder<Specification.CallOpenAPIWithAuthentication>(model, buildingFn);
46+
export const authenticationPolicyReferenceBuilder = (
47+
model?: Partial<Specification.AuthenticationPolicyReference>,
48+
): Builder<Specification.AuthenticationPolicyReference> =>
49+
builder<Specification.AuthenticationPolicyReference>(model, buildingFn);

src/lib/generated/builders/authentication-policy-basic-builder.ts renamed to src/lib/generated/builders/basic-authentication-policy-builder.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@ import { Specification } from '../definitions';
2626

2727
/**
2828
* The internal function used by the builder proxy to validate and return its underlying object
29-
* @param {Specification.AuthenticationPolicyBasic} model The proxied object
29+
* @param {Specification.BasicAuthenticationPolicy} model The proxied object
3030
* @param {BuildOptions} options The build options to use
31-
* @returns {Specification.AuthenticationPolicyBasic} The built object
31+
* @returns {Specification.BasicAuthenticationPolicy} The built object
3232
*/
3333
function buildingFn(
34-
model: Specification.AuthenticationPolicyBasic,
34+
model: Specification.BasicAuthenticationPolicy,
3535
options: BuildOptions,
36-
): Specification.AuthenticationPolicyBasic {
37-
const instance = new Classes.AuthenticationPolicyBasic(model);
36+
): Specification.BasicAuthenticationPolicy {
37+
const instance = new Classes.BasicAuthenticationPolicy(model);
3838
if (options.validate) instance.validate();
39-
return (options.normalize ? instance.normalize() : instance) as Specification.AuthenticationPolicyBasic;
39+
return (options.normalize ? instance.normalize() : instance) as Specification.BasicAuthenticationPolicy;
4040
}
4141

4242
/**
43-
* A factory to create a builder proxy for the type `Specification.AuthenticationPolicyBasic`
44-
* @returns {Builder<Specification.AuthenticationPolicyBasic>} A builder for `Specification.AuthenticationPolicyBasic`
43+
* A factory to create a builder proxy for the type `Specification.BasicAuthenticationPolicy`
44+
* @returns {Builder<Specification.BasicAuthenticationPolicy>} A builder for `Specification.BasicAuthenticationPolicy`
4545
*/
46-
export const authenticationPolicyBasicBuilder = (
47-
model?: Partial<Specification.AuthenticationPolicyBasic>,
48-
): Builder<Specification.AuthenticationPolicyBasic> =>
49-
builder<Specification.AuthenticationPolicyBasic>(model, buildingFn);
46+
export const basicAuthenticationPolicyBuilder = (
47+
model?: Partial<Specification.BasicAuthenticationPolicy>,
48+
): Builder<Specification.BasicAuthenticationPolicy> =>
49+
builder<Specification.BasicAuthenticationPolicy>(model, buildingFn);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
/*****************************************************************************************
18+
*
19+
* /!\ This file is computer generated. Any manual modification can and will be lost. /!\
20+
*
21+
*****************************************************************************************/
22+
23+
import { builder, Builder, BuildOptions } from '../../builder';
24+
import { Classes } from '../classes';
25+
import { Specification } from '../definitions';
26+
27+
/**
28+
* The internal function used by the builder proxy to validate and return its underlying object
29+
* @param {Specification.BasicAuthenticationPolicyConfiguration} model The proxied object
30+
* @param {BuildOptions} options The build options to use
31+
* @returns {Specification.BasicAuthenticationPolicyConfiguration} The built object
32+
*/
33+
function buildingFn(
34+
model: Specification.BasicAuthenticationPolicyConfiguration,
35+
options: BuildOptions,
36+
): Specification.BasicAuthenticationPolicyConfiguration {
37+
const instance = new Classes.BasicAuthenticationPolicyConfiguration(model);
38+
if (options.validate) instance.validate();
39+
return (options.normalize ? instance.normalize() : instance) as Specification.BasicAuthenticationPolicyConfiguration;
40+
}
41+
42+
/**
43+
* A factory to create a builder proxy for the type `Specification.BasicAuthenticationPolicyConfiguration`
44+
* @returns {Builder<Specification.BasicAuthenticationPolicyConfiguration>} A builder for `Specification.BasicAuthenticationPolicyConfiguration`
45+
*/
46+
export const basicAuthenticationPolicyConfigurationBuilder = (
47+
model?: Partial<Specification.BasicAuthenticationPolicyConfiguration>,
48+
): Builder<Specification.BasicAuthenticationPolicyConfiguration> =>
49+
builder<Specification.BasicAuthenticationPolicyConfiguration>(model, buildingFn);

0 commit comments

Comments
 (0)