@managespace/sdk 0.0.185 → 0.0.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensibility/functions/extensibility-function.d.ts +6 -0
- package/dist/extensibility/functions/extensibility-function.d.ts.map +1 -1
- package/dist/extensibility/types/step-function-signature.d.ts +3 -0
- package/dist/extensibility/types/step-function-signature.d.ts.map +1 -1
- package/dist/generated/models/link-plugin.d.ts +6 -0
- package/dist/generated/models/link-plugin.d.ts.map +1 -1
- package/dist/generated/models/link-plugin.js +4 -0
- package/dist/generated/models/plugin-version.d.ts +6 -0
- package/dist/generated/models/plugin-version.d.ts.map +1 -1
- package/dist/generated/models/plugin-version.js +4 -0
- package/dist/generated/models/subscription-invoice.d.ts +1 -1
- package/dist/generated/models/subscription-invoice.js +3 -3
- package/package.json +1 -1
- package/src/extensibility/functions/extensibility-function.ts +3 -0
- package/src/extensibility/types/step-function-signature.ts +3 -0
- package/src/generated/models/link-plugin.ts +9 -0
- package/src/generated/models/plugin-version.ts +9 -0
- package/src/generated/models/subscription-invoice.ts +4 -4
|
@@ -5,12 +5,18 @@ export declare const defineExFn: <T extends ExtPlugin>(callback: (payload: ExtBa
|
|
|
5
5
|
configurationSettings: {
|
|
6
6
|
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
7
7
|
};
|
|
8
|
+
secrets: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
8
11
|
}) => Promise<ExtReturnType<T["responseType"], null>>) => {
|
|
9
12
|
message: string;
|
|
10
13
|
callback: (payload: ExtBasePayload & T["payload"], api: DefaultApi & {
|
|
11
14
|
configurationSettings: {
|
|
12
15
|
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
13
16
|
};
|
|
17
|
+
secrets: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
14
20
|
}) => Promise<ExtReturnType<T["responseType"], null>>;
|
|
15
21
|
};
|
|
16
22
|
//# sourceMappingURL=extensibility-function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensibility-function.d.ts","sourceRoot":"","sources":["../../../src/extensibility/functions/extensibility-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"extensibility-function.d.ts","sourceRoot":"","sources":["../../../src/extensibility/functions/extensibility-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CA0BtB,CAAC"}
|
|
@@ -5,5 +5,8 @@ export type StepFunctionSignature<T extends string = DefaultPorts> = (payload: W
|
|
|
5
5
|
configurationSettings: {
|
|
6
6
|
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
7
7
|
};
|
|
8
|
+
secrets: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
8
11
|
}, state: any) => Promise<WorkflowStepReturnType<T>>;
|
|
9
12
|
//# sourceMappingURL=step-function-signature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-function-signature.d.ts","sourceRoot":"","sources":["../../../src/extensibility/types/step-function-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,YAAY,IAAI,CACjE,OAAO,EAAE,uBAAuB,GAAG,GAAG,EACtC,GAAG,EAAE,UAAU,GAAG;IACd,qBAAqB,EAAE;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtE,CAAC;CACL,EACD,KAAK,EAAE,GAAG,KACT,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"step-function-signature.d.ts","sourceRoot":"","sources":["../../../src/extensibility/types/step-function-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,YAAY,IAAI,CACjE,OAAO,EAAE,uBAAuB,GAAG,GAAG,EACtC,GAAG,EAAE,UAAU,GAAG;IACd,qBAAqB,EAAE;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtE,CAAC;IACF,OAAO,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;CACL,EACD,KAAK,EAAE,GAAG,KACT,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -27,6 +27,12 @@ export interface LinkPlugin {
|
|
|
27
27
|
* @memberof LinkPlugin
|
|
28
28
|
*/
|
|
29
29
|
versionId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Required secrets for the plugin
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof LinkPlugin
|
|
34
|
+
*/
|
|
35
|
+
requiredSecrets: object;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the LinkPlugin interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-plugin.d.ts","sourceRoot":"","sources":["../../../src/generated/models/link-plugin.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"link-plugin.d.ts","sourceRoot":"","sources":["../../../src/generated/models/link-plugin.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAKvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAU3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1G"}
|
|
@@ -22,6 +22,8 @@ function instanceOfLinkPlugin(value) {
|
|
|
22
22
|
return false;
|
|
23
23
|
if (!('versionId' in value) || value['versionId'] === undefined)
|
|
24
24
|
return false;
|
|
25
|
+
if (!('requiredSecrets' in value) || value['requiredSecrets'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
exports.instanceOfLinkPlugin = instanceOfLinkPlugin;
|
|
@@ -36,6 +38,7 @@ function LinkPluginFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
return {
|
|
37
39
|
'id': json['id'],
|
|
38
40
|
'versionId': json['versionId'],
|
|
41
|
+
'requiredSecrets': json['requiredSecrets'],
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
44
|
exports.LinkPluginFromJSONTyped = LinkPluginFromJSONTyped;
|
|
@@ -50,6 +53,7 @@ function LinkPluginToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
53
|
return {
|
|
51
54
|
'id': value['id'],
|
|
52
55
|
'versionId': value['versionId'],
|
|
56
|
+
'requiredSecrets': value['requiredSecrets'],
|
|
53
57
|
};
|
|
54
58
|
}
|
|
55
59
|
exports.LinkPluginToJSONTyped = LinkPluginToJSONTyped;
|
|
@@ -42,6 +42,12 @@ export interface PluginVersion {
|
|
|
42
42
|
* @memberof PluginVersion
|
|
43
43
|
*/
|
|
44
44
|
price: string;
|
|
45
|
+
/**
|
|
46
|
+
* The secrets required to run the plugin
|
|
47
|
+
* @type {object}
|
|
48
|
+
* @memberof PluginVersion
|
|
49
|
+
*/
|
|
50
|
+
requiredSecrets: object;
|
|
45
51
|
/**
|
|
46
52
|
*
|
|
47
53
|
* @type {Array<Org>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-version.d.ts","sourceRoot":"","sources":["../../../src/generated/models/plugin-version.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAOpG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,mCAAmC,CAAC,EAAE,KAAK,CAAC,mCAAmC,CAAC,CAAC;CACpF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,
|
|
1
|
+
{"version":3,"file":"plugin-version.d.ts","sourceRoot":"","sources":["../../../src/generated/models/plugin-version.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAOpG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,mCAAmC,CAAC,EAAE,KAAK,CAAC,mCAAmC,CAAC,CAAC;CACpF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAS7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAiBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkBhH"}
|
|
@@ -29,6 +29,8 @@ function instanceOfPluginVersion(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('price' in value) || value['price'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('requiredSecrets' in value) || value['requiredSecrets'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('pluginId' in value) || value['pluginId'] === undefined)
|
|
@@ -49,6 +51,7 @@ function PluginVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'number': json['number'],
|
|
50
52
|
'isPublic': json['isPublic'],
|
|
51
53
|
'price': json['price'],
|
|
54
|
+
'requiredSecrets': json['requiredSecrets'],
|
|
52
55
|
'orgs': json['orgs'] == null ? undefined : (json['orgs'].map(org_1.OrgFromJSON)),
|
|
53
56
|
'createdAt': (new Date(json['createdAt'])),
|
|
54
57
|
'plugin': json['plugin'] == null ? undefined : (0, plugin_1.PluginFromJSON)(json['plugin']),
|
|
@@ -70,6 +73,7 @@ function PluginVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
73
|
'number': value['number'],
|
|
71
74
|
'isPublic': value['isPublic'],
|
|
72
75
|
'price': value['price'],
|
|
76
|
+
'requiredSecrets': value['requiredSecrets'],
|
|
73
77
|
'orgs': value['orgs'] == null ? undefined : (value['orgs'].map(org_1.OrgToJSON)),
|
|
74
78
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
75
79
|
'plugin': (0, plugin_1.PluginToJSON)(value['plugin']),
|
|
@@ -19,7 +19,7 @@ const subscription_invoice_line_1 = require("./subscription-invoice-line");
|
|
|
19
19
|
* Check if a given object implements the SubscriptionInvoice interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfSubscriptionInvoice(value) {
|
|
22
|
-
if (!('
|
|
22
|
+
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
23
23
|
return false;
|
|
24
24
|
if (!('invoiceAmount' in value) || value['invoiceAmount'] === undefined)
|
|
25
25
|
return false;
|
|
@@ -41,7 +41,7 @@ function SubscriptionInvoiceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return json;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'
|
|
44
|
+
'subtotal': json['subtotal'],
|
|
45
45
|
'invoiceAmount': json['invoiceAmount'],
|
|
46
46
|
'period': json['period'],
|
|
47
47
|
'invoiceLines': (json['invoiceLines'].map(subscription_invoice_line_1.SubscriptionInvoiceLineFromJSON)),
|
|
@@ -58,7 +58,7 @@ function SubscriptionInvoiceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
return value;
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
|
-
'
|
|
61
|
+
'subtotal': value['subtotal'],
|
|
62
62
|
'invoiceAmount': value['invoiceAmount'],
|
|
63
63
|
'period': value['period'],
|
|
64
64
|
'invoiceLines': (value['invoiceLines'].map(subscription_invoice_line_1.SubscriptionInvoiceLineToJSON)),
|
package/package.json
CHANGED
|
@@ -11,6 +11,9 @@ export type StepFunctionSignature<T extends string = DefaultPorts> = (
|
|
|
11
11
|
configurationSettings: {
|
|
12
12
|
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
13
13
|
};
|
|
14
|
+
secrets: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
14
17
|
},
|
|
15
18
|
state: any,
|
|
16
19
|
) => Promise<WorkflowStepReturnType<T>>;
|
|
@@ -31,6 +31,12 @@ export interface LinkPlugin {
|
|
|
31
31
|
* @memberof LinkPlugin
|
|
32
32
|
*/
|
|
33
33
|
versionId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Required secrets for the plugin
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof LinkPlugin
|
|
38
|
+
*/
|
|
39
|
+
requiredSecrets: object;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export interface LinkPlugin {
|
|
|
39
45
|
export function instanceOfLinkPlugin(value: object): value is LinkPlugin {
|
|
40
46
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
47
|
if (!('versionId' in value) || value['versionId'] === undefined) return false;
|
|
48
|
+
if (!('requiredSecrets' in value) || value['requiredSecrets'] === undefined) return false;
|
|
42
49
|
return true;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -54,6 +61,7 @@ export function LinkPluginFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
54
61
|
|
|
55
62
|
'id': json['id'],
|
|
56
63
|
'versionId': json['versionId'],
|
|
64
|
+
'requiredSecrets': json['requiredSecrets'],
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -70,6 +78,7 @@ export function LinkPluginToJSONTyped(value?: LinkPlugin | null, ignoreDiscrimin
|
|
|
70
78
|
|
|
71
79
|
'id': value['id'],
|
|
72
80
|
'versionId': value['versionId'],
|
|
81
|
+
'requiredSecrets': value['requiredSecrets'],
|
|
73
82
|
};
|
|
74
83
|
}
|
|
75
84
|
|
|
@@ -65,6 +65,12 @@ export interface PluginVersion {
|
|
|
65
65
|
* @memberof PluginVersion
|
|
66
66
|
*/
|
|
67
67
|
price: string;
|
|
68
|
+
/**
|
|
69
|
+
* The secrets required to run the plugin
|
|
70
|
+
* @type {object}
|
|
71
|
+
* @memberof PluginVersion
|
|
72
|
+
*/
|
|
73
|
+
requiredSecrets: object;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
76
|
* @type {Array<Org>}
|
|
@@ -105,6 +111,7 @@ export function instanceOfPluginVersion(value: object): value is PluginVersion {
|
|
|
105
111
|
if (!('number' in value) || value['number'] === undefined) return false;
|
|
106
112
|
if (!('isPublic' in value) || value['isPublic'] === undefined) return false;
|
|
107
113
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
114
|
+
if (!('requiredSecrets' in value) || value['requiredSecrets'] === undefined) return false;
|
|
108
115
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
109
116
|
if (!('pluginId' in value) || value['pluginId'] === undefined) return false;
|
|
110
117
|
return true;
|
|
@@ -124,6 +131,7 @@ export function PluginVersionFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
124
131
|
'number': json['number'],
|
|
125
132
|
'isPublic': json['isPublic'],
|
|
126
133
|
'price': json['price'],
|
|
134
|
+
'requiredSecrets': json['requiredSecrets'],
|
|
127
135
|
'orgs': json['orgs'] == null ? undefined : ((json['orgs'] as Array<any>).map(OrgFromJSON)),
|
|
128
136
|
'createdAt': (new Date(json['createdAt'])),
|
|
129
137
|
'plugin': json['plugin'] == null ? undefined : PluginFromJSON(json['plugin']),
|
|
@@ -147,6 +155,7 @@ export function PluginVersionToJSONTyped(value?: PluginVersion | null, ignoreDis
|
|
|
147
155
|
'number': value['number'],
|
|
148
156
|
'isPublic': value['isPublic'],
|
|
149
157
|
'price': value['price'],
|
|
158
|
+
'requiredSecrets': value['requiredSecrets'],
|
|
150
159
|
'orgs': value['orgs'] == null ? undefined : ((value['orgs'] as Array<any>).map(OrgToJSON)),
|
|
151
160
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
152
161
|
'plugin': PluginToJSON(value['plugin']),
|
|
@@ -32,7 +32,7 @@ export interface SubscriptionInvoice {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof SubscriptionInvoice
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
subtotal: number;
|
|
36
36
|
/**
|
|
37
37
|
* Invoice amount
|
|
38
38
|
* @type {number}
|
|
@@ -63,7 +63,7 @@ export interface SubscriptionInvoice {
|
|
|
63
63
|
* Check if a given object implements the SubscriptionInvoice interface.
|
|
64
64
|
*/
|
|
65
65
|
export function instanceOfSubscriptionInvoice(value: object): value is SubscriptionInvoice {
|
|
66
|
-
if (!('
|
|
66
|
+
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
67
67
|
if (!('invoiceAmount' in value) || value['invoiceAmount'] === undefined) return false;
|
|
68
68
|
if (!('period' in value) || value['period'] === undefined) return false;
|
|
69
69
|
if (!('invoiceLines' in value) || value['invoiceLines'] === undefined) return false;
|
|
@@ -81,7 +81,7 @@ export function SubscriptionInvoiceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
81
81
|
}
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
'
|
|
84
|
+
'subtotal': json['subtotal'],
|
|
85
85
|
'invoiceAmount': json['invoiceAmount'],
|
|
86
86
|
'period': json['period'],
|
|
87
87
|
'invoiceLines': ((json['invoiceLines'] as Array<any>).map(SubscriptionInvoiceLineFromJSON)),
|
|
@@ -100,7 +100,7 @@ export function SubscriptionInvoiceToJSONTyped(value?: SubscriptionInvoice | nul
|
|
|
100
100
|
|
|
101
101
|
return {
|
|
102
102
|
|
|
103
|
-
'
|
|
103
|
+
'subtotal': value['subtotal'],
|
|
104
104
|
'invoiceAmount': value['invoiceAmount'],
|
|
105
105
|
'period': value['period'],
|
|
106
106
|
'invoiceLines': ((value['invoiceLines'] as Array<any>).map(SubscriptionInvoiceLineToJSON)),
|