@managespace/sdk 0.0.66 → 0.0.67
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/project/billing.d.ts +7 -11
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/topics.type.d.ts +2 -0
- package/dist/extensibility/functions/project/topics.type.d.ts.map +1 -0
- package/dist/extensibility/functions/project/topics.type.js +2 -0
- package/dist/generated/apis/default-api.d.ts +5 -5
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +2 -2
- package/dist/generated/models/asset-response.d.ts +2 -16
- package/dist/generated/models/asset-response.d.ts.map +1 -1
- package/dist/generated/models/asset-response.js +3 -9
- package/dist/generated/models/cancel-subscription.d.ts +2 -2
- package/dist/generated/models/cancel-subscription.js +2 -2
- package/dist/generated/models/create-asset-custom.d.ts +2 -2
- package/dist/generated/models/create-asset-custom.d.ts.map +1 -1
- package/dist/generated/models/create-asset-custom.js +2 -2
- package/dist/generated/models/create-product-custom.d.ts +19 -37
- package/dist/generated/models/create-product-custom.d.ts.map +1 -1
- package/dist/generated/models/create-product-custom.js +11 -19
- package/dist/generated/models/custom-create-plan.d.ts +9 -33
- package/dist/generated/models/custom-create-plan.d.ts.map +1 -1
- package/dist/generated/models/custom-create-plan.js +6 -16
- package/dist/generated/models/customer-response.d.ts +0 -7
- package/dist/generated/models/customer-response.d.ts.map +1 -1
- package/dist/generated/models/customer-response.js +0 -3
- package/dist/generated/models/get-plans200-response.d.ts +3 -3
- package/dist/generated/models/get-plans200-response.d.ts.map +1 -1
- package/dist/generated/models/get-plans200-response.js +3 -3
- package/dist/generated/models/index.d.ts +1 -3
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -3
- package/dist/generated/models/org-response.d.ts +0 -14
- package/dist/generated/models/org-response.d.ts.map +1 -1
- package/dist/generated/models/org-response.js +0 -6
- package/dist/generated/models/plan-custom-response.d.ts +58 -0
- package/dist/generated/models/plan-custom-response.d.ts.map +1 -0
- package/dist/generated/models/plan-custom-response.js +64 -0
- package/dist/generated/models/product-custom-response.d.ts +19 -69
- package/dist/generated/models/product-custom-response.d.ts.map +1 -1
- package/dist/generated/models/product-custom-response.js +11 -37
- package/dist/generated/models/site-response.d.ts +0 -14
- package/dist/generated/models/site-response.d.ts.map +1 -1
- package/dist/generated/models/site-response.js +0 -6
- package/dist/generated/models/update-asset.d.ts +2 -2
- package/dist/generated/models/update-asset.d.ts.map +1 -1
- package/dist/generated/models/update-asset.js +2 -2
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +7 -10
- package/src/generated/.openapi-generator/FILES +1 -3
- package/src/generated/apis/default-api.ts +9 -9
- package/src/generated/models/asset-response.ts +5 -35
- package/src/generated/models/cancel-subscription.ts +2 -2
- package/src/generated/models/create-asset-custom.ts +4 -4
- package/src/generated/models/create-product-custom.ts +30 -55
- package/src/generated/models/custom-create-plan.ts +15 -48
- package/src/generated/models/customer-response.ts +0 -15
- package/src/generated/models/get-plans200-response.ts +10 -10
- package/src/generated/models/index.ts +1 -3
- package/src/generated/models/org-response.ts +0 -30
- package/src/generated/models/plan-custom-response.ts +108 -0
- package/src/generated/models/product-custom-response.ts +30 -112
- package/src/generated/models/site-response.ts +0 -30
- package/src/generated/models/update-asset.ts +4 -4
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PlanCustomResponseToJSONTyped = exports.PlanCustomResponseToJSON = exports.PlanCustomResponseFromJSONTyped = exports.PlanCustomResponseFromJSON = exports.instanceOfPlanCustomResponse = void 0;
|
|
17
|
+
const create_plan_charge_1 = require("./create-plan-charge");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PlanCustomResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPlanCustomResponse(value) {
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('charges' in value) || value['charges'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfPlanCustomResponse = instanceOfPlanCustomResponse;
|
|
31
|
+
function PlanCustomResponseFromJSON(json) {
|
|
32
|
+
return PlanCustomResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.PlanCustomResponseFromJSON = PlanCustomResponseFromJSON;
|
|
35
|
+
function PlanCustomResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
42
|
+
'charges': (json['charges'].map(create_plan_charge_1.CreatePlanChargeFromJSON)),
|
|
43
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.PlanCustomResponseFromJSONTyped = PlanCustomResponseFromJSONTyped;
|
|
48
|
+
function PlanCustomResponseToJSON(json) {
|
|
49
|
+
return PlanCustomResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
exports.PlanCustomResponseToJSON = PlanCustomResponseToJSON;
|
|
52
|
+
function PlanCustomResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'description': value['description'],
|
|
59
|
+
'charges': (value['charges'].map(create_plan_charge_1.CreatePlanChargeToJSON)),
|
|
60
|
+
'status': value['status'],
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.PlanCustomResponseToJSONTyped = PlanCustomResponseToJSONTyped;
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { TransactionPostingEntries } from './transaction-posting-entries';
|
|
13
|
-
import type { OrgResponse } from './org-response';
|
|
14
|
-
import type { SiteResponse } from './site-response';
|
|
15
13
|
/**
|
|
16
14
|
*
|
|
17
15
|
* @export
|
|
@@ -25,71 +23,53 @@ export interface ProductCustomResponse {
|
|
|
25
23
|
*/
|
|
26
24
|
name: string;
|
|
27
25
|
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof ProductCustomResponse
|
|
31
|
-
*/
|
|
32
|
-
price: number;
|
|
33
|
-
/**
|
|
34
|
-
* Tax exempt
|
|
35
|
-
* @type {boolean}
|
|
36
|
-
* @memberof ProductCustomResponse
|
|
37
|
-
*/
|
|
38
|
-
taxable?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {Array<TransactionPostingEntries>}
|
|
42
|
-
* @memberof ProductCustomResponse
|
|
43
|
-
*/
|
|
44
|
-
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
45
|
-
/**
|
|
46
|
-
* Revenue Rule ID.
|
|
26
|
+
* Stock keeping unit
|
|
47
27
|
* @type {string}
|
|
48
28
|
* @memberof ProductCustomResponse
|
|
49
29
|
*/
|
|
50
|
-
|
|
30
|
+
sku?: string;
|
|
51
31
|
/**
|
|
52
|
-
*
|
|
32
|
+
* Product status
|
|
53
33
|
* @type {string}
|
|
54
34
|
* @memberof ProductCustomResponse
|
|
55
35
|
*/
|
|
56
|
-
|
|
36
|
+
status?: string;
|
|
57
37
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {
|
|
38
|
+
* Tax exempt
|
|
39
|
+
* @type {boolean}
|
|
60
40
|
* @memberof ProductCustomResponse
|
|
61
41
|
*/
|
|
62
|
-
|
|
42
|
+
taxable?: boolean;
|
|
63
43
|
/**
|
|
64
|
-
*
|
|
44
|
+
* Description of product
|
|
65
45
|
* @type {string}
|
|
66
46
|
* @memberof ProductCustomResponse
|
|
67
47
|
*/
|
|
68
|
-
|
|
48
|
+
description?: string;
|
|
69
49
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {
|
|
50
|
+
* The price of the product in the lowest denomination of the currency
|
|
51
|
+
* @type {number}
|
|
72
52
|
* @memberof ProductCustomResponse
|
|
73
53
|
*/
|
|
74
|
-
|
|
54
|
+
price: number;
|
|
75
55
|
/**
|
|
76
|
-
*
|
|
56
|
+
* Revenue Rule ID.
|
|
77
57
|
* @type {string}
|
|
78
58
|
* @memberof ProductCustomResponse
|
|
79
59
|
*/
|
|
80
|
-
|
|
60
|
+
revenueRuleId: string;
|
|
81
61
|
/**
|
|
82
|
-
*
|
|
62
|
+
* Date revenue will begin to be recognized.
|
|
83
63
|
* @type {string}
|
|
84
64
|
* @memberof ProductCustomResponse
|
|
85
65
|
*/
|
|
86
|
-
|
|
66
|
+
recognitionStartDate: string;
|
|
87
67
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<TransactionPostingEntries>}
|
|
90
70
|
* @memberof ProductCustomResponse
|
|
91
71
|
*/
|
|
92
|
-
|
|
72
|
+
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
93
73
|
/**
|
|
94
74
|
* List of custom fields
|
|
95
75
|
* @type {object}
|
|
@@ -108,36 +88,6 @@ export interface ProductCustomResponse {
|
|
|
108
88
|
* @memberof ProductCustomResponse
|
|
109
89
|
*/
|
|
110
90
|
id: string;
|
|
111
|
-
/**
|
|
112
|
-
* The product id stored in the external sytem
|
|
113
|
-
* @type {string}
|
|
114
|
-
* @memberof ProductCustomResponse
|
|
115
|
-
*/
|
|
116
|
-
externalId: string | null;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {OrgResponse}
|
|
120
|
-
* @memberof ProductCustomResponse
|
|
121
|
-
*/
|
|
122
|
-
org?: OrgResponse;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @type {string}
|
|
126
|
-
* @memberof ProductCustomResponse
|
|
127
|
-
*/
|
|
128
|
-
orgId: string;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {SiteResponse}
|
|
132
|
-
* @memberof ProductCustomResponse
|
|
133
|
-
*/
|
|
134
|
-
site?: SiteResponse;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @memberof ProductCustomResponse
|
|
139
|
-
*/
|
|
140
|
-
siteId: string;
|
|
141
91
|
}
|
|
142
92
|
/**
|
|
143
93
|
* Check if a given object implements the ProductCustomResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-custom-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/product-custom-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"product-custom-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/product-custom-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,yBAAyB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAQ7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAmBjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoBhI"}
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductCustomResponseToJSONTyped = exports.ProductCustomResponseToJSON = exports.ProductCustomResponseFromJSONTyped = exports.ProductCustomResponseFromJSON = exports.instanceOfProductCustomResponse = void 0;
|
|
17
17
|
const transaction_posting_entries_1 = require("./transaction-posting-entries");
|
|
18
|
-
const org_response_1 = require("./org-response");
|
|
19
|
-
const site_response_1 = require("./site-response");
|
|
20
18
|
/**
|
|
21
19
|
* Check if a given object implements the ProductCustomResponse interface.
|
|
22
20
|
*/
|
|
@@ -25,22 +23,14 @@ function instanceOfProductCustomResponse(value) {
|
|
|
25
23
|
return false;
|
|
26
24
|
if (!('price' in value) || value['price'] === undefined)
|
|
27
25
|
return false;
|
|
28
|
-
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined)
|
|
29
|
-
return false;
|
|
30
26
|
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined)
|
|
31
27
|
return false;
|
|
32
28
|
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined)
|
|
33
29
|
return false;
|
|
34
|
-
if (!('
|
|
30
|
+
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined)
|
|
35
31
|
return false;
|
|
36
32
|
if (!('id' in value) || value['id'] === undefined)
|
|
37
33
|
return false;
|
|
38
|
-
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
39
|
-
return false;
|
|
40
|
-
if (!('orgId' in value) || value['orgId'] === undefined)
|
|
41
|
-
return false;
|
|
42
|
-
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
43
|
-
return false;
|
|
44
34
|
return true;
|
|
45
35
|
}
|
|
46
36
|
exports.instanceOfProductCustomResponse = instanceOfProductCustomResponse;
|
|
@@ -54,25 +44,17 @@ function ProductCustomResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
44
|
}
|
|
55
45
|
return {
|
|
56
46
|
'name': json['name'],
|
|
57
|
-
'price': json['price'],
|
|
58
|
-
'taxable': json['taxable'] == null ? undefined : json['taxable'],
|
|
59
|
-
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
60
|
-
'revenueRuleId': json['revenueRuleId'],
|
|
61
|
-
'recognitionStartDate': json['recognitionStartDate'],
|
|
62
|
-
'recognitionEndDate': json['recognitionEndDate'],
|
|
63
47
|
'sku': json['sku'] == null ? undefined : json['sku'],
|
|
64
48
|
'status': json['status'] == null ? undefined : json['status'],
|
|
49
|
+
'taxable': json['taxable'] == null ? undefined : json['taxable'],
|
|
65
50
|
'description': json['description'] == null ? undefined : json['description'],
|
|
66
|
-
'
|
|
67
|
-
'
|
|
51
|
+
'price': json['price'],
|
|
52
|
+
'revenueRuleId': json['revenueRuleId'],
|
|
53
|
+
'recognitionStartDate': json['recognitionStartDate'],
|
|
54
|
+
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
68
55
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
69
56
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
70
57
|
'id': json['id'],
|
|
71
|
-
'externalId': json['externalId'],
|
|
72
|
-
'org': json['org'] == null ? undefined : (0, org_response_1.OrgResponseFromJSON)(json['org']),
|
|
73
|
-
'orgId': json['orgId'],
|
|
74
|
-
'site': json['site'] == null ? undefined : (0, site_response_1.SiteResponseFromJSON)(json['site']),
|
|
75
|
-
'siteId': json['siteId'],
|
|
76
58
|
};
|
|
77
59
|
}
|
|
78
60
|
exports.ProductCustomResponseFromJSONTyped = ProductCustomResponseFromJSONTyped;
|
|
@@ -86,25 +68,17 @@ function ProductCustomResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
68
|
}
|
|
87
69
|
return {
|
|
88
70
|
'name': value['name'],
|
|
89
|
-
'price': value['price'],
|
|
90
|
-
'taxable': value['taxable'],
|
|
91
|
-
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
92
|
-
'revenueRuleId': value['revenueRuleId'],
|
|
93
|
-
'recognitionStartDate': value['recognitionStartDate'],
|
|
94
|
-
'recognitionEndDate': value['recognitionEndDate'],
|
|
95
71
|
'sku': value['sku'],
|
|
96
72
|
'status': value['status'],
|
|
73
|
+
'taxable': value['taxable'],
|
|
97
74
|
'description': value['description'],
|
|
98
|
-
'
|
|
99
|
-
'
|
|
75
|
+
'price': value['price'],
|
|
76
|
+
'revenueRuleId': value['revenueRuleId'],
|
|
77
|
+
'recognitionStartDate': value['recognitionStartDate'],
|
|
78
|
+
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
100
79
|
'customFields': value['customFields'],
|
|
101
80
|
'incomeAccount': value['incomeAccount'],
|
|
102
81
|
'id': value['id'],
|
|
103
|
-
'externalId': value['externalId'],
|
|
104
|
-
'org': (0, org_response_1.OrgResponseToJSON)(value['org']),
|
|
105
|
-
'orgId': value['orgId'],
|
|
106
|
-
'site': (0, site_response_1.SiteResponseToJSON)(value['site']),
|
|
107
|
-
'siteId': value['siteId'],
|
|
108
82
|
};
|
|
109
83
|
}
|
|
110
84
|
exports.ProductCustomResponseToJSONTyped = ProductCustomResponseToJSONTyped;
|
|
@@ -14,14 +14,12 @@ import type { ConfigurationSettingResponse } from './configuration-setting-respo
|
|
|
14
14
|
import type { CommunicationResponse } from './communication-response';
|
|
15
15
|
import type { OrgResponse } from './org-response';
|
|
16
16
|
import type { ChecklistResponse } from './checklist-response';
|
|
17
|
-
import type { PlanResponse } from './plan-response';
|
|
18
17
|
import type { AssetResponse } from './asset-response';
|
|
19
18
|
import type { UserResponse } from './user-response';
|
|
20
19
|
import type { WorkflowInstanceResponse } from './workflow-instance-response';
|
|
21
20
|
import type { NoteResponse } from './note-response';
|
|
22
21
|
import type { TaskTemplateResponse } from './task-template-response';
|
|
23
22
|
import type { NotificationResponse } from './notification-response';
|
|
24
|
-
import type { ProductResponse } from './product-response';
|
|
25
23
|
import type { ExtensibilityFunctionInstanceResponse } from './extensibility-function-instance-response';
|
|
26
24
|
import type { TaskResponse } from './task-response';
|
|
27
25
|
import type { SiteTypeResponse3 } from './site-type-response3';
|
|
@@ -163,18 +161,6 @@ export interface SiteResponse {
|
|
|
163
161
|
* @memberof SiteResponse
|
|
164
162
|
*/
|
|
165
163
|
communications?: Array<CommunicationResponse>;
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @type {Array<ProductResponse>}
|
|
169
|
-
* @memberof SiteResponse
|
|
170
|
-
*/
|
|
171
|
-
products?: Array<ProductResponse>;
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {Array<PlanResponse>}
|
|
175
|
-
* @memberof SiteResponse
|
|
176
|
-
*/
|
|
177
|
-
plans?: Array<PlanResponse>;
|
|
178
164
|
}
|
|
179
165
|
/**
|
|
180
166
|
* Check if a given object implements the SiteResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/site-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAOrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAOtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAOlD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAO9D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"site-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/site-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAOrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAOtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAA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uration-setting-respon
|
|
|
19
19
|
const communication_response_1 = require("./communication-response");
|
|
20
20
|
const org_response_1 = require("./org-response");
|
|
21
21
|
const checklist_response_1 = require("./checklist-response");
|
|
22
|
-
const plan_response_1 = require("./plan-response");
|
|
23
22
|
const asset_response_1 = require("./asset-response");
|
|
24
23
|
const user_response_1 = require("./user-response");
|
|
25
24
|
const workflow_instance_response_1 = require("./workflow-instance-response");
|
|
26
25
|
const note_response_1 = require("./note-response");
|
|
27
26
|
const task_template_response_1 = require("./task-template-response");
|
|
28
27
|
const notification_response_1 = require("./notification-response");
|
|
29
|
-
const product_response_1 = require("./product-response");
|
|
30
28
|
const extensibility_function_instance_response_1 = require("./extensibility-function-instance-response");
|
|
31
29
|
const task_response_1 = require("./task-response");
|
|
32
30
|
const site_type_response3_1 = require("./site-type-response3");
|
|
@@ -84,8 +82,6 @@ function SiteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
82
|
'notes': json['notes'] == null ? undefined : (json['notes'].map(note_response_1.NoteResponseFromJSON)),
|
|
85
83
|
'configurationSettings': json['configurationSettings'] == null ? undefined : (json['configurationSettings'].map(configuration_setting_response_1.ConfigurationSettingResponseFromJSON)),
|
|
86
84
|
'communications': json['communications'] == null ? undefined : (json['communications'].map(communication_response_1.CommunicationResponseFromJSON)),
|
|
87
|
-
'products': json['products'] == null ? undefined : (json['products'].map(product_response_1.ProductResponseFromJSON)),
|
|
88
|
-
'plans': json['plans'] == null ? undefined : (json['plans'].map(plan_response_1.PlanResponseFromJSON)),
|
|
89
85
|
};
|
|
90
86
|
}
|
|
91
87
|
exports.SiteResponseFromJSONTyped = SiteResponseFromJSONTyped;
|
|
@@ -120,8 +116,6 @@ function SiteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
120
116
|
'notes': value['notes'] == null ? undefined : (value['notes'].map(note_response_1.NoteResponseToJSON)),
|
|
121
117
|
'configurationSettings': value['configurationSettings'] == null ? undefined : (value['configurationSettings'].map(configuration_setting_response_1.ConfigurationSettingResponseToJSON)),
|
|
122
118
|
'communications': value['communications'] == null ? undefined : (value['communications'].map(communication_response_1.CommunicationResponseToJSON)),
|
|
123
|
-
'products': value['products'] == null ? undefined : (value['products'].map(product_response_1.ProductResponseToJSON)),
|
|
124
|
-
'plans': value['plans'] == null ? undefined : (value['plans'].map(plan_response_1.PlanResponseToJSON)),
|
|
125
119
|
};
|
|
126
120
|
}
|
|
127
121
|
exports.SiteResponseToJSONTyped = SiteResponseToJSONTyped;
|
|
@@ -41,11 +41,11 @@ export interface UpdateAsset {
|
|
|
41
41
|
*/
|
|
42
42
|
assetCategoryId?: string | null;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* The ID of the related product in the plugin.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof UpdateAsset
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
externalProductId?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-asset.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-asset.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"update-asset.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-asset.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAID;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAIzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAc7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAe5G"}
|
|
@@ -39,7 +39,7 @@ function UpdateAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'description': json['description'],
|
|
40
40
|
'leaseStatus': json['leaseStatus'] == null ? undefined : (0, lease_status_1.LeaseStatusFromJSON)(json['leaseStatus']),
|
|
41
41
|
'assetCategoryId': json['assetCategoryId'] == null ? undefined : json['assetCategoryId'],
|
|
42
|
-
'
|
|
42
|
+
'externalProductId': json['externalProductId'] == null ? undefined : json['externalProductId'],
|
|
43
43
|
'assetClassId': json['assetClassId'] == null ? undefined : json['assetClassId'],
|
|
44
44
|
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
45
45
|
};
|
|
@@ -58,7 +58,7 @@ function UpdateAssetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
'description': value['description'],
|
|
59
59
|
'leaseStatus': (0, lease_status_1.LeaseStatusToJSON)(value['leaseStatus']),
|
|
60
60
|
'assetCategoryId': value['assetCategoryId'],
|
|
61
|
-
'
|
|
61
|
+
'externalProductId': value['externalProductId'],
|
|
62
62
|
'assetClassId': value['assetClassId'],
|
|
63
63
|
'metadata': value['metadata'],
|
|
64
64
|
};
|
package/package.json
CHANGED
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
CreateBillingRun as _CreateBillingRun,
|
|
7
7
|
CreatePaymentRun as _CreatePaymentRun,
|
|
8
8
|
// SubscriptionResponse,
|
|
9
|
-
PlanResponse,
|
|
10
9
|
PaymentRunResponse,
|
|
11
10
|
CustomCreatePlan,
|
|
12
11
|
ChartOfAccountsResponse,
|
|
@@ -23,6 +22,7 @@ import {
|
|
|
23
22
|
CustomerResponse,
|
|
24
23
|
ContactResponse,
|
|
25
24
|
SubscriptionResponse,
|
|
25
|
+
PlanCustomResponse,
|
|
26
26
|
// CreateSubscription as _CreateSubscription,
|
|
27
27
|
} from '../../../generated';
|
|
28
28
|
import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
|
|
@@ -157,12 +157,12 @@ export namespace Billing {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
export class GetPlans implements ExtPlugin {
|
|
160
|
-
responseType!:
|
|
160
|
+
responseType!: PlanCustomResponse[];
|
|
161
161
|
payload!: BasePaginationQuery & { name?: string; active?: boolean };
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
export class GetPlan implements ExtPlugin {
|
|
165
|
-
responseType!:
|
|
165
|
+
responseType!: PlanCustomResponse;
|
|
166
166
|
payload!: { planId: string };
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -193,16 +193,13 @@ export namespace Billing {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
export class CreateProduct implements ExtPlugin {
|
|
196
|
-
responseType!:
|
|
197
|
-
|
|
198
|
-
'org' | 'orgId' | 'site' | 'siteId'
|
|
199
|
-
>;
|
|
200
|
-
payload!: CreateProductCustom & { externalId: string };
|
|
196
|
+
responseType!: ProductCustomResponse;
|
|
197
|
+
payload!: CreateProductCustom;
|
|
201
198
|
}
|
|
202
199
|
|
|
203
200
|
export class CreatePlan implements ExtPlugin {
|
|
204
|
-
responseType!:
|
|
205
|
-
payload!: CustomCreatePlan
|
|
201
|
+
responseType!: PlanCustomResponse;
|
|
202
|
+
payload!: CustomCreatePlan;
|
|
206
203
|
}
|
|
207
204
|
|
|
208
205
|
export class UpdateCustomer implements ExtPlugin {
|
|
@@ -45,7 +45,6 @@ models/create-payment-run.ts
|
|
|
45
45
|
models/create-payment.ts
|
|
46
46
|
models/create-plan-charge.ts
|
|
47
47
|
models/create-product-custom.ts
|
|
48
|
-
models/create-product.ts
|
|
49
48
|
models/create-revenue-rule.ts
|
|
50
49
|
models/create-site-custom.ts
|
|
51
50
|
models/create-smart-bar-prompt.ts
|
|
@@ -123,7 +122,7 @@ models/payment-response.ts
|
|
|
123
122
|
models/payment-run-customer-response.ts
|
|
124
123
|
models/payment-run-filter-option-response.ts
|
|
125
124
|
models/payment-run-response.ts
|
|
126
|
-
models/plan-response.ts
|
|
125
|
+
models/plan-custom-response.ts
|
|
127
126
|
models/plugin-extensibility-function-definition-response.ts
|
|
128
127
|
models/plugin-extensibility-function-instance-response.ts
|
|
129
128
|
models/plugin-extensibility-function-metadata-response.ts
|
|
@@ -131,7 +130,6 @@ models/plugin-extensibility-status.ts
|
|
|
131
130
|
models/plugin-response.ts
|
|
132
131
|
models/plugin-version-response.ts
|
|
133
132
|
models/product-custom-response.ts
|
|
134
|
-
models/product-response.ts
|
|
135
133
|
models/project-response.ts
|
|
136
134
|
models/project-response1.ts
|
|
137
135
|
models/project-version-response.ts
|
|
@@ -112,7 +112,7 @@ import type {
|
|
|
112
112
|
PasswordStrengthCheckResponse,
|
|
113
113
|
PaymentResponse,
|
|
114
114
|
PaymentRunResponse,
|
|
115
|
-
|
|
115
|
+
PlanCustomResponse,
|
|
116
116
|
PluginResponse,
|
|
117
117
|
ProductCustomResponse,
|
|
118
118
|
ProjectResponse,
|
|
@@ -343,8 +343,8 @@ import {
|
|
|
343
343
|
PaymentResponseToJSON,
|
|
344
344
|
PaymentRunResponseFromJSON,
|
|
345
345
|
PaymentRunResponseToJSON,
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
PlanCustomResponseFromJSON,
|
|
347
|
+
PlanCustomResponseToJSON,
|
|
348
348
|
PluginResponseFromJSON,
|
|
349
349
|
PluginResponseToJSON,
|
|
350
350
|
ProductCustomResponseFromJSON,
|
|
@@ -2077,7 +2077,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2077
2077
|
|
|
2078
2078
|
/**
|
|
2079
2079
|
*/
|
|
2080
|
-
async createPlanRaw(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2080
|
+
async createPlanRaw(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlanCustomResponse>> {
|
|
2081
2081
|
if (requestParameters['siteId'] == null) {
|
|
2082
2082
|
throw new runtime.RequiredError(
|
|
2083
2083
|
'siteId',
|
|
@@ -2114,12 +2114,12 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2114
2114
|
body: CustomCreatePlanToJSON(requestParameters['customCreatePlan']),
|
|
2115
2115
|
}, initOverrides);
|
|
2116
2116
|
|
|
2117
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlanCustomResponseFromJSON(jsonValue));
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
2120
|
/**
|
|
2121
2121
|
*/
|
|
2122
|
-
async createPlan(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2122
|
+
async createPlan(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlanCustomResponse> {
|
|
2123
2123
|
const response = await this.createPlanRaw(requestParameters, initOverrides);
|
|
2124
2124
|
return await response.value();
|
|
2125
2125
|
}
|
|
@@ -4557,7 +4557,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4557
4557
|
|
|
4558
4558
|
/**
|
|
4559
4559
|
*/
|
|
4560
|
-
async getPlanRaw(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
4560
|
+
async getPlanRaw(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlanCustomResponse>> {
|
|
4561
4561
|
if (requestParameters['siteId'] == null) {
|
|
4562
4562
|
throw new runtime.RequiredError(
|
|
4563
4563
|
'siteId',
|
|
@@ -4591,12 +4591,12 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4591
4591
|
query: queryParameters,
|
|
4592
4592
|
}, initOverrides);
|
|
4593
4593
|
|
|
4594
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
4594
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlanCustomResponseFromJSON(jsonValue));
|
|
4595
4595
|
}
|
|
4596
4596
|
|
|
4597
4597
|
/**
|
|
4598
4598
|
*/
|
|
4599
|
-
async getPlan(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
4599
|
+
async getPlan(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlanCustomResponse> {
|
|
4600
4600
|
const response = await this.getPlanRaw(requestParameters, initOverrides);
|
|
4601
4601
|
return await response.value();
|
|
4602
4602
|
}
|