@managespace/sdk 0.1.156 → 0.1.158-extensions
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/README.md +723 -2
- package/dist/extensibility/functions/project/billing.d.ts +12 -12
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensions/host-bridge.d.ts +166 -0
- package/dist/extensions/host-bridge.d.ts.map +1 -0
- package/dist/extensions/host-bridge.js +259 -0
- package/dist/extensions/index.d.ts +40 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/index.js +55 -0
- package/dist/extensions/types.d.ts +111 -0
- package/dist/extensions/types.d.ts.map +1 -0
- package/dist/extensions/types.js +2 -0
- package/dist/generated/apis/extensions-api.d.ts +98 -0
- package/dist/generated/apis/extensions-api.d.ts.map +1 -0
- package/dist/generated/apis/extensions-api.js +295 -0
- package/dist/generated/apis/index.d.ts +1 -0
- package/dist/generated/apis/index.d.ts.map +1 -1
- package/dist/generated/apis/index.js +1 -0
- package/dist/generated/models/billing-run.d.ts +0 -6
- package/dist/generated/models/billing-run.d.ts.map +1 -1
- package/dist/generated/models/billing-run.js +0 -2
- package/dist/generated/models/contact.d.ts +1 -1
- package/dist/generated/models/contact.d.ts.map +1 -1
- package/dist/generated/models/contact.js +3 -3
- package/dist/generated/models/create-billing-run.d.ts +0 -6
- package/dist/generated/models/create-billing-run.d.ts.map +1 -1
- package/dist/generated/models/create-billing-run.js +0 -2
- package/dist/generated/models/customer.d.ts +1 -1
- package/dist/generated/models/customer.d.ts.map +1 -1
- package/dist/generated/models/customer.js +3 -3
- package/dist/generated/models/extension-org.d.ts +64 -0
- package/dist/generated/models/extension-org.d.ts.map +1 -0
- package/dist/generated/models/extension-org.js +70 -0
- package/dist/generated/models/extension.d.ts +106 -0
- package/dist/generated/models/extension.d.ts.map +1 -0
- package/dist/generated/models/extension.js +98 -0
- package/dist/generated/models/index.d.ts +2 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +2 -0
- package/dist/generated/models/subscription-preview.d.ts +1 -1
- package/dist/generated/models/subscription-preview.d.ts.map +1 -1
- package/dist/generated/models/subscription-preview.js +3 -3
- package/dist/generated/models/subscription.d.ts +1 -1
- package/dist/generated/models/subscription.d.ts.map +1 -1
- package/dist/generated/models/subscription.js +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +7 -3
- package/src/extensibility/functions/project/billing.ts +12 -12
- package/src/extensions/host-bridge.ts +272 -0
- package/src/extensions/index.ts +40 -0
- package/src/extensions/types.ts +120 -0
- package/src/generated/.openapi-generator/FILES +3 -0
- package/src/generated/apis/extensions-api.ts +362 -0
- package/src/generated/apis/index.ts +1 -0
- package/src/generated/models/billing-run.ts +0 -8
- package/src/generated/models/contact.ts +4 -4
- package/src/generated/models/create-billing-run.ts +0 -8
- package/src/generated/models/customer.ts +4 -4
- package/src/generated/models/extension-org.ts +119 -0
- package/src/generated/models/extension.ts +182 -0
- package/src/generated/models/index.ts +2 -0
- package/src/generated/models/subscription-preview.ts +4 -4
- package/src/generated/models/subscription.ts +4 -4
- package/src/index.ts +1 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { mapValues } from '../runtime';
|
|
17
|
+
import type { ExtensionOrg } from './extension-org';
|
|
18
|
+
import {
|
|
19
|
+
ExtensionOrgFromJSON,
|
|
20
|
+
ExtensionOrgFromJSONTyped,
|
|
21
|
+
ExtensionOrgToJSON,
|
|
22
|
+
ExtensionOrgToJSONTyped,
|
|
23
|
+
} from './extension-org';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface Extension
|
|
29
|
+
*/
|
|
30
|
+
export interface Extension {
|
|
31
|
+
/**
|
|
32
|
+
* Extension ID
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Extension
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Extension name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Extension
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* Extension description
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Extension
|
|
47
|
+
*/
|
|
48
|
+
description: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Extension author
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Extension
|
|
53
|
+
*/
|
|
54
|
+
author: string;
|
|
55
|
+
/**
|
|
56
|
+
* Extension version
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Extension
|
|
59
|
+
*/
|
|
60
|
+
version: string;
|
|
61
|
+
/**
|
|
62
|
+
* S3 key for the extension bundle
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Extension
|
|
65
|
+
*/
|
|
66
|
+
bundlePath: string;
|
|
67
|
+
/**
|
|
68
|
+
* Full extension manifest as JSON
|
|
69
|
+
* @type {object}
|
|
70
|
+
* @memberof Extension
|
|
71
|
+
*/
|
|
72
|
+
manifest: object;
|
|
73
|
+
/**
|
|
74
|
+
* Navigation label
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof Extension
|
|
77
|
+
*/
|
|
78
|
+
navLabel: string;
|
|
79
|
+
/**
|
|
80
|
+
* Navigation icon name
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof Extension
|
|
83
|
+
*/
|
|
84
|
+
navIcon: string;
|
|
85
|
+
/**
|
|
86
|
+
* Navigation route
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof Extension
|
|
89
|
+
*/
|
|
90
|
+
navRoute: string;
|
|
91
|
+
/**
|
|
92
|
+
* When the record was created
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof Extension
|
|
95
|
+
*/
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
* When the record was last updated
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof Extension
|
|
101
|
+
*/
|
|
102
|
+
updatedAt: Date | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<ExtensionOrg>}
|
|
106
|
+
* @memberof Extension
|
|
107
|
+
*/
|
|
108
|
+
orgs?: Array<ExtensionOrg>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Check if a given object implements the Extension interface.
|
|
113
|
+
*/
|
|
114
|
+
export function instanceOfExtension(value: object): value is Extension {
|
|
115
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
116
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
117
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
118
|
+
if (!('author' in value) || value['author'] === undefined) return false;
|
|
119
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
120
|
+
if (!('bundlePath' in value) || value['bundlePath'] === undefined) return false;
|
|
121
|
+
if (!('manifest' in value) || value['manifest'] === undefined) return false;
|
|
122
|
+
if (!('navLabel' in value) || value['navLabel'] === undefined) return false;
|
|
123
|
+
if (!('navIcon' in value) || value['navIcon'] === undefined) return false;
|
|
124
|
+
if (!('navRoute' in value) || value['navRoute'] === undefined) return false;
|
|
125
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
126
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ExtensionFromJSON(json: any): Extension {
|
|
131
|
+
return ExtensionFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function ExtensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Extension {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'id': json['id'],
|
|
141
|
+
'name': json['name'],
|
|
142
|
+
'description': json['description'],
|
|
143
|
+
'author': json['author'],
|
|
144
|
+
'version': json['version'],
|
|
145
|
+
'bundlePath': json['bundlePath'],
|
|
146
|
+
'manifest': json['manifest'],
|
|
147
|
+
'navLabel': json['navLabel'],
|
|
148
|
+
'navIcon': json['navIcon'],
|
|
149
|
+
'navRoute': json['navRoute'],
|
|
150
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
151
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
152
|
+
'orgs': json['orgs'] == null ? undefined : ((json['orgs'] as Array<any>).map(ExtensionOrgFromJSON)),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function ExtensionToJSON(json: any): Extension {
|
|
157
|
+
return ExtensionToJSONTyped(json, false);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function ExtensionToJSONTyped(value?: Extension | null, ignoreDiscriminator: boolean = false): any {
|
|
161
|
+
if (value == null) {
|
|
162
|
+
return value;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
|
|
167
|
+
'id': value['id'],
|
|
168
|
+
'name': value['name'],
|
|
169
|
+
'description': value['description'],
|
|
170
|
+
'author': value['author'],
|
|
171
|
+
'version': value['version'],
|
|
172
|
+
'bundlePath': value['bundlePath'],
|
|
173
|
+
'manifest': value['manifest'],
|
|
174
|
+
'navLabel': value['navLabel'],
|
|
175
|
+
'navIcon': value['navIcon'],
|
|
176
|
+
'navRoute': value['navRoute'],
|
|
177
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
178
|
+
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
179
|
+
'orgs': value['orgs'] == null ? undefined : ((value['orgs'] as Array<any>).map(ExtensionOrgToJSON)),
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
@@ -103,6 +103,8 @@ export * from './extensibility-function-instance';
|
|
|
103
103
|
export * from './extensibility-function-metadata';
|
|
104
104
|
export * from './extensibility-repo';
|
|
105
105
|
export * from './extensibility-status';
|
|
106
|
+
export * from './extension';
|
|
107
|
+
export * from './extension-org';
|
|
106
108
|
export * from './field-area';
|
|
107
109
|
export * from './field-preferences';
|
|
108
110
|
export * from './field-type';
|
|
@@ -280,7 +280,7 @@ export interface SubscriptionPreview {
|
|
|
280
280
|
* @type {string}
|
|
281
281
|
* @memberof SubscriptionPreview
|
|
282
282
|
*/
|
|
283
|
-
|
|
283
|
+
msExternalId: string;
|
|
284
284
|
/**
|
|
285
285
|
* Charges associated the subscription
|
|
286
286
|
* @type {Array<SubscriptionCharge>}
|
|
@@ -361,7 +361,7 @@ export function instanceOfSubscriptionPreview(value: object): value is Subscript
|
|
|
361
361
|
if (!('billContactSfId' in value) || value['billContactSfId'] === undefined) return false;
|
|
362
362
|
if (!('shippingContactSfId' in value) || value['shippingContactSfId'] === undefined) return false;
|
|
363
363
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
364
|
-
if (!('
|
|
364
|
+
if (!('msExternalId' in value) || value['msExternalId'] === undefined) return false;
|
|
365
365
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
366
366
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
367
367
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
@@ -418,7 +418,7 @@ export function SubscriptionPreviewFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
418
418
|
'billContactSfId': json['billContactSfId'],
|
|
419
419
|
'shippingContactSfId': json['shippingContactSfId'],
|
|
420
420
|
'siteId': json['siteId'],
|
|
421
|
-
'
|
|
421
|
+
'msExternalId': json['msExternalId'],
|
|
422
422
|
'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
|
|
423
423
|
'createdAt': json['createdAt'],
|
|
424
424
|
'createdBy': json['createdBy'],
|
|
@@ -483,7 +483,7 @@ export function SubscriptionPreviewToJSONTyped(value?: SubscriptionPreview | nul
|
|
|
483
483
|
'billContactSfId': value['billContactSfId'],
|
|
484
484
|
'shippingContactSfId': value['shippingContactSfId'],
|
|
485
485
|
'siteId': value['siteId'],
|
|
486
|
-
'
|
|
486
|
+
'msExternalId': value['msExternalId'],
|
|
487
487
|
'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
|
|
488
488
|
'createdAt': value['createdAt'],
|
|
489
489
|
'createdBy': value['createdBy'],
|
|
@@ -273,7 +273,7 @@ export interface Subscription {
|
|
|
273
273
|
* @type {string}
|
|
274
274
|
* @memberof Subscription
|
|
275
275
|
*/
|
|
276
|
-
|
|
276
|
+
msExternalId: string;
|
|
277
277
|
/**
|
|
278
278
|
* Charges associated the subscription
|
|
279
279
|
* @type {Array<SubscriptionCharge>}
|
|
@@ -330,7 +330,7 @@ export function instanceOfSubscription(value: object): value is Subscription {
|
|
|
330
330
|
if (!('billContactSfId' in value) || value['billContactSfId'] === undefined) return false;
|
|
331
331
|
if (!('shippingContactSfId' in value) || value['shippingContactSfId'] === undefined) return false;
|
|
332
332
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
333
|
-
if (!('
|
|
333
|
+
if (!('msExternalId' in value) || value['msExternalId'] === undefined) return false;
|
|
334
334
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
335
335
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
336
336
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
@@ -387,7 +387,7 @@ export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
387
387
|
'billContactSfId': json['billContactSfId'],
|
|
388
388
|
'shippingContactSfId': json['shippingContactSfId'],
|
|
389
389
|
'siteId': json['siteId'],
|
|
390
|
-
'
|
|
390
|
+
'msExternalId': json['msExternalId'],
|
|
391
391
|
'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
|
|
392
392
|
'createdAt': json['createdAt'],
|
|
393
393
|
'createdBy': json['createdBy'],
|
|
@@ -448,7 +448,7 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
|
|
|
448
448
|
'billContactSfId': value['billContactSfId'],
|
|
449
449
|
'shippingContactSfId': value['shippingContactSfId'],
|
|
450
450
|
'siteId': value['siteId'],
|
|
451
|
-
'
|
|
451
|
+
'msExternalId': value['msExternalId'],
|
|
452
452
|
'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
|
|
453
453
|
'createdAt': value['createdAt'],
|
|
454
454
|
'createdBy': value['createdBy'],
|
package/src/index.ts
CHANGED