@managespace/sdk 0.1.83 → 0.1.84
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 +9 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/generated/apis/default-api.d.ts +21 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +64 -0
- package/dist/generated/models/asset.d.ts +0 -6
- package/dist/generated/models/asset.d.ts.map +1 -1
- package/dist/generated/models/asset.js +0 -4
- package/dist/generated/models/create-order.d.ts +13 -0
- package/dist/generated/models/create-order.d.ts.map +1 -1
- package/dist/generated/models/create-order.js +7 -0
- package/dist/generated/models/customer-balance.d.ts +33 -0
- package/dist/generated/models/customer-balance.d.ts.map +1 -0
- package/dist/generated/models/customer-balance.js +51 -0
- package/dist/generated/models/index.d.ts +4 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +4 -0
- package/dist/generated/models/invoice.d.ts +3 -2
- package/dist/generated/models/invoice.d.ts.map +1 -1
- package/dist/generated/models/invoice.js +3 -2
- package/dist/generated/models/lease-status.d.ts +1 -3
- package/dist/generated/models/lease-status.d.ts.map +1 -1
- package/dist/generated/models/lease-status.js +0 -2
- package/dist/generated/models/order-type.d.ts +26 -0
- package/dist/generated/models/order-type.d.ts.map +1 -0
- package/dist/generated/models/order-type.js +53 -0
- package/dist/generated/models/order.d.ts +13 -0
- package/dist/generated/models/order.d.ts.map +1 -1
- package/dist/generated/models/order.js +7 -0
- package/dist/generated/models/subscription-activity-line.d.ts +99 -0
- package/dist/generated/models/subscription-activity-line.d.ts.map +1 -0
- package/dist/generated/models/subscription-activity-line.js +77 -0
- package/dist/generated/models/subscription-activity.d.ts +60 -0
- package/dist/generated/models/subscription-activity.d.ts.map +1 -0
- package/dist/generated/models/subscription-activity.js +70 -0
- package/dist/generated/models/update-asset.d.ts +0 -6
- package/dist/generated/models/update-asset.d.ts.map +1 -1
- package/dist/generated/models/update-asset.js +0 -2
- package/dist/generated/models/update-order.d.ts +13 -0
- package/dist/generated/models/update-order.d.ts.map +1 -1
- package/dist/generated/models/update-order.js +7 -0
- package/package.deploy.json +2 -2
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +9 -0
- package/src/generated/.openapi-generator/FILES +4 -0
- package/src/generated/apis/default-api.ts +105 -0
- package/src/generated/models/asset.ts +0 -9
- package/src/generated/models/create-order.ts +26 -0
- package/src/generated/models/customer-balance.ts +66 -0
- package/src/generated/models/index.ts +4 -0
- package/src/generated/models/invoice.ts +11 -4
- package/src/generated/models/lease-status.ts +1 -3
- package/src/generated/models/order-type.ts +52 -0
- package/src/generated/models/order.ts +26 -0
- package/src/generated/models/subscription-activity-line.ts +156 -0
- package/src/generated/models/subscription-activity.ts +124 -0
- package/src/generated/models/update-asset.ts +0 -8
- package/src/generated/models/update-order.ts +26 -0
|
@@ -0,0 +1,77 @@
|
|
|
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.SubscriptionActivityLineToJSONTyped = exports.SubscriptionActivityLineToJSON = exports.SubscriptionActivityLineFromJSONTyped = exports.SubscriptionActivityLineFromJSON = exports.instanceOfSubscriptionActivityLine = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SubscriptionActivityLine interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSubscriptionActivityLine(value) {
|
|
21
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('balance' in value) || value['balance'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfSubscriptionActivityLine = instanceOfSubscriptionActivityLine;
|
|
30
|
+
function SubscriptionActivityLineFromJSON(json) {
|
|
31
|
+
return SubscriptionActivityLineFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.SubscriptionActivityLineFromJSON = SubscriptionActivityLineFromJSON;
|
|
34
|
+
function SubscriptionActivityLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'date': json['date'],
|
|
40
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
41
|
+
'description': json['description'],
|
|
42
|
+
'checkOrCardNumber': json['checkOrCardNumber'] == null ? undefined : json['checkOrCardNumber'],
|
|
43
|
+
'receiptNumber': json['receiptNumber'] == null ? undefined : json['receiptNumber'],
|
|
44
|
+
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
45
|
+
'billingRunId': json['billingRunId'] == null ? undefined : json['billingRunId'],
|
|
46
|
+
'appliedRefund': json['appliedRefund'] == null ? undefined : json['appliedRefund'],
|
|
47
|
+
'issuedCredit': json['issuedCredit'] == null ? undefined : json['issuedCredit'],
|
|
48
|
+
'paymentAmount': json['paymentAmount'] == null ? undefined : json['paymentAmount'],
|
|
49
|
+
'chargeAmount': json['chargeAmount'] == null ? undefined : json['chargeAmount'],
|
|
50
|
+
'balance': json['balance'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.SubscriptionActivityLineFromJSONTyped = SubscriptionActivityLineFromJSONTyped;
|
|
54
|
+
function SubscriptionActivityLineToJSON(json) {
|
|
55
|
+
return SubscriptionActivityLineToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
exports.SubscriptionActivityLineToJSON = SubscriptionActivityLineToJSON;
|
|
58
|
+
function SubscriptionActivityLineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'date': value['date'],
|
|
64
|
+
'endDate': value['endDate'],
|
|
65
|
+
'description': value['description'],
|
|
66
|
+
'checkOrCardNumber': value['checkOrCardNumber'],
|
|
67
|
+
'receiptNumber': value['receiptNumber'],
|
|
68
|
+
'invoiceId': value['invoiceId'],
|
|
69
|
+
'billingRunId': value['billingRunId'],
|
|
70
|
+
'appliedRefund': value['appliedRefund'],
|
|
71
|
+
'issuedCredit': value['issuedCredit'],
|
|
72
|
+
'paymentAmount': value['paymentAmount'],
|
|
73
|
+
'chargeAmount': value['chargeAmount'],
|
|
74
|
+
'balance': value['balance'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
exports.SubscriptionActivityLineToJSONTyped = SubscriptionActivityLineToJSONTyped;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace API
|
|
3
|
+
* ManageSpace API Documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Site } from './site';
|
|
13
|
+
import type { Customer } from './customer';
|
|
14
|
+
import type { SubscriptionActivityLine } from './subscription-activity-line';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SubscriptionActivity
|
|
19
|
+
*/
|
|
20
|
+
export interface SubscriptionActivity {
|
|
21
|
+
/**
|
|
22
|
+
* The site that the subscription is associated with
|
|
23
|
+
* @type {Site}
|
|
24
|
+
* @memberof SubscriptionActivity
|
|
25
|
+
*/
|
|
26
|
+
site: Site;
|
|
27
|
+
/**
|
|
28
|
+
* The customer that the subscription is associated with
|
|
29
|
+
* @type {Customer}
|
|
30
|
+
* @memberof SubscriptionActivity
|
|
31
|
+
*/
|
|
32
|
+
customer: Customer;
|
|
33
|
+
/**
|
|
34
|
+
* The asset that the subscription is associated with
|
|
35
|
+
* @type {Customer}
|
|
36
|
+
* @memberof SubscriptionActivity
|
|
37
|
+
*/
|
|
38
|
+
asset: Customer;
|
|
39
|
+
/**
|
|
40
|
+
* The subscription the activity is related to
|
|
41
|
+
* @type {Customer}
|
|
42
|
+
* @memberof SubscriptionActivity
|
|
43
|
+
*/
|
|
44
|
+
subscription: Customer;
|
|
45
|
+
/**
|
|
46
|
+
* Activity associated the subscription
|
|
47
|
+
* @type {Array<SubscriptionActivityLine>}
|
|
48
|
+
* @memberof SubscriptionActivity
|
|
49
|
+
*/
|
|
50
|
+
activity: Array<SubscriptionActivityLine>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the SubscriptionActivity interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfSubscriptionActivity(value: object): value is SubscriptionActivity;
|
|
56
|
+
export declare function SubscriptionActivityFromJSON(json: any): SubscriptionActivity;
|
|
57
|
+
export declare function SubscriptionActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionActivity;
|
|
58
|
+
export declare function SubscriptionActivityToJSON(json: any): SubscriptionActivity;
|
|
59
|
+
export declare function SubscriptionActivityToJSONTyped(value?: SubscriptionActivity | null, ignoreDiscriminator?: boolean): any;
|
|
60
|
+
//# sourceMappingURL=subscription-activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-activity.d.ts","sourceRoot":"","sources":["../../../src/generated/models/subscription-activity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAQ7E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,YAAY,EAAE,QAAQ,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAO3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAY/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa9H"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.SubscriptionActivityToJSONTyped = exports.SubscriptionActivityToJSON = exports.SubscriptionActivityFromJSONTyped = exports.SubscriptionActivityFromJSON = exports.instanceOfSubscriptionActivity = void 0;
|
|
17
|
+
const site_1 = require("./site");
|
|
18
|
+
const customer_1 = require("./customer");
|
|
19
|
+
const subscription_activity_line_1 = require("./subscription-activity-line");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the SubscriptionActivity interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfSubscriptionActivity(value) {
|
|
24
|
+
if (!('site' in value) || value['site'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('customer' in value) || value['customer'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('asset' in value) || value['asset'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('subscription' in value) || value['subscription'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfSubscriptionActivity = instanceOfSubscriptionActivity;
|
|
37
|
+
function SubscriptionActivityFromJSON(json) {
|
|
38
|
+
return SubscriptionActivityFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.SubscriptionActivityFromJSON = SubscriptionActivityFromJSON;
|
|
41
|
+
function SubscriptionActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'site': (0, site_1.SiteFromJSON)(json['site']),
|
|
47
|
+
'customer': (0, customer_1.CustomerFromJSON)(json['customer']),
|
|
48
|
+
'asset': (0, customer_1.CustomerFromJSON)(json['asset']),
|
|
49
|
+
'subscription': (0, customer_1.CustomerFromJSON)(json['subscription']),
|
|
50
|
+
'activity': (json['activity'].map(subscription_activity_line_1.SubscriptionActivityLineFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.SubscriptionActivityFromJSONTyped = SubscriptionActivityFromJSONTyped;
|
|
54
|
+
function SubscriptionActivityToJSON(json) {
|
|
55
|
+
return SubscriptionActivityToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
exports.SubscriptionActivityToJSON = SubscriptionActivityToJSON;
|
|
58
|
+
function SubscriptionActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'site': (0, site_1.SiteToJSON)(value['site']),
|
|
64
|
+
'customer': (0, customer_1.CustomerToJSON)(value['customer']),
|
|
65
|
+
'asset': (0, customer_1.CustomerToJSON)(value['asset']),
|
|
66
|
+
'subscription': (0, customer_1.CustomerToJSON)(value['subscription']),
|
|
67
|
+
'activity': (value['activity'].map(subscription_activity_line_1.SubscriptionActivityLineToJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
exports.SubscriptionActivityToJSONTyped = SubscriptionActivityToJSONTyped;
|
|
@@ -58,12 +58,6 @@ export interface UpdateAsset {
|
|
|
58
58
|
* @memberof UpdateAsset
|
|
59
59
|
*/
|
|
60
60
|
metadata?: object | null;
|
|
61
|
-
/**
|
|
62
|
-
* Whether the asset has been soft deleted
|
|
63
|
-
* @type {boolean}
|
|
64
|
-
* @memberof UpdateAsset
|
|
65
|
-
*/
|
|
66
|
-
deleted?: boolean;
|
|
67
61
|
/**
|
|
68
62
|
* Array of asset IDs that were merged to create this asset
|
|
69
63
|
* @type {object}
|
|
@@ -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,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;IACzB;;;;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;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;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,CAe7F;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,CAgB5G"}
|
|
@@ -42,7 +42,6 @@ function UpdateAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
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
|
-
'deleted': json['deleted'] == null ? undefined : json['deleted'],
|
|
46
45
|
'mergedAssetIds': json['mergedAssetIds'] == null ? undefined : json['mergedAssetIds'],
|
|
47
46
|
};
|
|
48
47
|
}
|
|
@@ -63,7 +62,6 @@ function UpdateAssetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
62
|
'externalProductId': value['externalProductId'],
|
|
64
63
|
'assetClassId': value['assetClassId'],
|
|
65
64
|
'metadata': value['metadata'],
|
|
66
|
-
'deleted': value['deleted'],
|
|
67
65
|
'mergedAssetIds': value['mergedAssetIds'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OrderType } from './order-type';
|
|
12
13
|
import type { OrderLineItem } from './order-line-item';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -130,6 +131,18 @@ export interface UpdateOrder {
|
|
|
130
131
|
* @memberof UpdateOrder
|
|
131
132
|
*/
|
|
132
133
|
assetId?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Subscription Id associated with order, if it is a fee
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof UpdateOrder
|
|
138
|
+
*/
|
|
139
|
+
subscriptionId?: string;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {OrderType}
|
|
143
|
+
* @memberof UpdateOrder
|
|
144
|
+
*/
|
|
145
|
+
orderType: OrderType;
|
|
133
146
|
}
|
|
134
147
|
/**
|
|
135
148
|
* Check if a given object implements the UpdateOrder interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-order.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"update-order.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;CACxB;AAID;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAUzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CA4B7F;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,CA6B5G"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UpdateOrderToJSONTyped = exports.UpdateOrderToJSON = exports.UpdateOrderFromJSONTyped = exports.UpdateOrderFromJSON = exports.instanceOfUpdateOrder = void 0;
|
|
17
|
+
const order_type_1 = require("./order-type");
|
|
17
18
|
const order_line_item_1 = require("./order-line-item");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the UpdateOrder interface.
|
|
@@ -33,6 +34,8 @@ function instanceOfUpdateOrder(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('orderType' in value) || value['orderType'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
return true;
|
|
37
40
|
}
|
|
38
41
|
exports.instanceOfUpdateOrder = instanceOfUpdateOrder;
|
|
@@ -64,6 +67,8 @@ function UpdateOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
67
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
65
68
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
66
69
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
70
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
71
|
+
'orderType': (0, order_type_1.OrderTypeFromJSON)(json['orderType']),
|
|
67
72
|
};
|
|
68
73
|
}
|
|
69
74
|
exports.UpdateOrderFromJSONTyped = UpdateOrderFromJSONTyped;
|
|
@@ -95,6 +100,8 @@ function UpdateOrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
100
|
'updatedBy': value['updatedBy'],
|
|
96
101
|
'customFields': value['customFields'],
|
|
97
102
|
'assetId': value['assetId'],
|
|
103
|
+
'subscriptionId': value['subscriptionId'],
|
|
104
|
+
'orderType': (0, order_type_1.OrderTypeToJSON)(value['orderType']),
|
|
98
105
|
};
|
|
99
106
|
}
|
|
100
107
|
exports.UpdateOrderToJSONTyped = UpdateOrderToJSONTyped;
|
package/package.deploy.json
CHANGED
package/package.json
CHANGED
|
@@ -41,6 +41,8 @@ import {
|
|
|
41
41
|
UpdatePayment as _UpdatePayment,
|
|
42
42
|
UpdateOrder as _UpdateOrder,
|
|
43
43
|
ProductType,
|
|
44
|
+
OrderType,
|
|
45
|
+
CustomerBalance,
|
|
44
46
|
} from '../../../generated';
|
|
45
47
|
import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
|
|
46
48
|
import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
|
|
@@ -147,6 +149,11 @@ export namespace Billing {
|
|
|
147
149
|
payload!: { customerId: string };
|
|
148
150
|
}
|
|
149
151
|
|
|
152
|
+
export class GetCustomerBalance implements ExtPlugin {
|
|
153
|
+
responseType!: CustomerBalance;
|
|
154
|
+
payload!: { customerId: string };
|
|
155
|
+
}
|
|
156
|
+
|
|
150
157
|
export class GetInvoices implements ExtPlugin {
|
|
151
158
|
responseType!: Invoice[];
|
|
152
159
|
payload!: GetInvoicesQuery;
|
|
@@ -324,7 +331,9 @@ export namespace Billing {
|
|
|
324
331
|
payload!: BasePaginationQuery & {
|
|
325
332
|
status?: string;
|
|
326
333
|
customerId?: string;
|
|
334
|
+
subscriptionId?: string;
|
|
327
335
|
invoiceId?: string;
|
|
336
|
+
orderType?: OrderType;
|
|
328
337
|
};
|
|
329
338
|
}
|
|
330
339
|
|
|
@@ -82,6 +82,7 @@ models/custom-create-plan.ts
|
|
|
82
82
|
models/custom-create-user.ts
|
|
83
83
|
models/custom-update-customer.ts
|
|
84
84
|
models/custom-update-extensibility-repo.ts
|
|
85
|
+
models/customer-balance.ts
|
|
85
86
|
models/customer-status.ts
|
|
86
87
|
models/customer.ts
|
|
87
88
|
models/document-complete.ts
|
|
@@ -158,6 +159,7 @@ models/note.ts
|
|
|
158
159
|
models/notification.ts
|
|
159
160
|
models/order-line-item.ts
|
|
160
161
|
models/order-operator.ts
|
|
162
|
+
models/order-type.ts
|
|
161
163
|
models/order.ts
|
|
162
164
|
models/org.ts
|
|
163
165
|
models/page-meta.ts
|
|
@@ -218,6 +220,8 @@ models/sort-order.ts
|
|
|
218
220
|
models/statement.ts
|
|
219
221
|
models/step-data.ts
|
|
220
222
|
models/sub-total.ts
|
|
223
|
+
models/subscription-activity-line.ts
|
|
224
|
+
models/subscription-activity.ts
|
|
221
225
|
models/subscription-charge.ts
|
|
222
226
|
models/subscription-invoice-line.ts
|
|
223
227
|
models/subscription-invoice.ts
|
|
@@ -79,6 +79,7 @@ import type {
|
|
|
79
79
|
CustomUpdateCustomer,
|
|
80
80
|
CustomUpdateExtensibilityRepo,
|
|
81
81
|
Customer,
|
|
82
|
+
CustomerBalance,
|
|
82
83
|
CustomerStatus,
|
|
83
84
|
DocumentComplete,
|
|
84
85
|
DocumentHierarchy,
|
|
@@ -138,6 +139,7 @@ import type {
|
|
|
138
139
|
Note,
|
|
139
140
|
Notification,
|
|
140
141
|
Order,
|
|
142
|
+
OrderType,
|
|
141
143
|
Org,
|
|
142
144
|
Password,
|
|
143
145
|
PasswordStrengthCheck,
|
|
@@ -164,6 +166,7 @@ import type {
|
|
|
164
166
|
Statement,
|
|
165
167
|
StepData,
|
|
166
168
|
Subscription,
|
|
169
|
+
SubscriptionActivity,
|
|
167
170
|
SubscriptionPreview,
|
|
168
171
|
Success,
|
|
169
172
|
TaskCompletionStatus,
|
|
@@ -331,6 +334,8 @@ import {
|
|
|
331
334
|
CustomUpdateExtensibilityRepoToJSON,
|
|
332
335
|
CustomerFromJSON,
|
|
333
336
|
CustomerToJSON,
|
|
337
|
+
CustomerBalanceFromJSON,
|
|
338
|
+
CustomerBalanceToJSON,
|
|
334
339
|
CustomerStatusFromJSON,
|
|
335
340
|
CustomerStatusToJSON,
|
|
336
341
|
DocumentCompleteFromJSON,
|
|
@@ -449,6 +454,8 @@ import {
|
|
|
449
454
|
NotificationToJSON,
|
|
450
455
|
OrderFromJSON,
|
|
451
456
|
OrderToJSON,
|
|
457
|
+
OrderTypeFromJSON,
|
|
458
|
+
OrderTypeToJSON,
|
|
452
459
|
OrgFromJSON,
|
|
453
460
|
OrgToJSON,
|
|
454
461
|
PasswordFromJSON,
|
|
@@ -501,6 +508,8 @@ import {
|
|
|
501
508
|
StepDataToJSON,
|
|
502
509
|
SubscriptionFromJSON,
|
|
503
510
|
SubscriptionToJSON,
|
|
511
|
+
SubscriptionActivityFromJSON,
|
|
512
|
+
SubscriptionActivityToJSON,
|
|
504
513
|
SubscriptionPreviewFromJSON,
|
|
505
514
|
SubscriptionPreviewToJSON,
|
|
506
515
|
SuccessFromJSON,
|
|
@@ -967,6 +976,10 @@ export interface GetCustomerRequest {
|
|
|
967
976
|
customerId: string;
|
|
968
977
|
}
|
|
969
978
|
|
|
979
|
+
export interface GetCustomerBalanceRequest {
|
|
980
|
+
customerId: string;
|
|
981
|
+
}
|
|
982
|
+
|
|
970
983
|
export interface GetCustomerStatusRequest {
|
|
971
984
|
customerStatusId: string;
|
|
972
985
|
}
|
|
@@ -1046,7 +1059,9 @@ export interface GetOrdersRequest {
|
|
|
1046
1059
|
limit?: number;
|
|
1047
1060
|
status?: string;
|
|
1048
1061
|
customerId?: string;
|
|
1062
|
+
subscriptionId?: string;
|
|
1049
1063
|
invoiceId?: string;
|
|
1064
|
+
orderType?: OrderType;
|
|
1050
1065
|
}
|
|
1051
1066
|
|
|
1052
1067
|
export interface GetOrgRequest {
|
|
@@ -1204,6 +1219,10 @@ export interface GetSubscriptionRequest {
|
|
|
1204
1219
|
subscriptionId: string;
|
|
1205
1220
|
}
|
|
1206
1221
|
|
|
1222
|
+
export interface GetSubscriptionActivityRequest {
|
|
1223
|
+
subscriptionId: string;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1207
1226
|
export interface GetSubscriptionsRequest {
|
|
1208
1227
|
getSubscriptionsQuery: GetSubscriptionsQuery;
|
|
1209
1228
|
}
|
|
@@ -5208,6 +5227,45 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5208
5227
|
return await response.value();
|
|
5209
5228
|
}
|
|
5210
5229
|
|
|
5230
|
+
/**
|
|
5231
|
+
*/
|
|
5232
|
+
async getCustomerBalanceRaw(requestParameters: GetCustomerBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerBalance>> {
|
|
5233
|
+
if (requestParameters['customerId'] == null) {
|
|
5234
|
+
throw new runtime.RequiredError(
|
|
5235
|
+
'customerId',
|
|
5236
|
+
'Required parameter "customerId" was null or undefined when calling getCustomerBalance().'
|
|
5237
|
+
);
|
|
5238
|
+
}
|
|
5239
|
+
|
|
5240
|
+
const queryParameters: any = {};
|
|
5241
|
+
|
|
5242
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5243
|
+
|
|
5244
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5245
|
+
const token = this.configuration.accessToken;
|
|
5246
|
+
const tokenString = await token("bearer", []);
|
|
5247
|
+
|
|
5248
|
+
if (tokenString) {
|
|
5249
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5252
|
+
const response = await this.request({
|
|
5253
|
+
path: `/api/crm/customers/{customerId}/balance`.replace(`{${"customerId"}}`, encodeURIComponent(String(requestParameters['customerId']))),
|
|
5254
|
+
method: 'GET',
|
|
5255
|
+
headers: headerParameters,
|
|
5256
|
+
query: queryParameters,
|
|
5257
|
+
}, initOverrides);
|
|
5258
|
+
|
|
5259
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CustomerBalanceFromJSON(jsonValue));
|
|
5260
|
+
}
|
|
5261
|
+
|
|
5262
|
+
/**
|
|
5263
|
+
*/
|
|
5264
|
+
async getCustomerBalance(requestParameters: GetCustomerBalanceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerBalance> {
|
|
5265
|
+
const response = await this.getCustomerBalanceRaw(requestParameters, initOverrides);
|
|
5266
|
+
return await response.value();
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5211
5269
|
/**
|
|
5212
5270
|
*/
|
|
5213
5271
|
async getCustomerStatusRaw(requestParameters: GetCustomerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerStatus>> {
|
|
@@ -5876,10 +5934,18 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5876
5934
|
queryParameters['customerId'] = requestParameters['customerId'];
|
|
5877
5935
|
}
|
|
5878
5936
|
|
|
5937
|
+
if (requestParameters['subscriptionId'] != null) {
|
|
5938
|
+
queryParameters['subscriptionId'] = requestParameters['subscriptionId'];
|
|
5939
|
+
}
|
|
5940
|
+
|
|
5879
5941
|
if (requestParameters['invoiceId'] != null) {
|
|
5880
5942
|
queryParameters['invoiceId'] = requestParameters['invoiceId'];
|
|
5881
5943
|
}
|
|
5882
5944
|
|
|
5945
|
+
if (requestParameters['orderType'] != null) {
|
|
5946
|
+
queryParameters['orderType'] = requestParameters['orderType'];
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5883
5949
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
5884
5950
|
|
|
5885
5951
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -7229,6 +7295,45 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
7229
7295
|
return await response.value();
|
|
7230
7296
|
}
|
|
7231
7297
|
|
|
7298
|
+
/**
|
|
7299
|
+
*/
|
|
7300
|
+
async getSubscriptionActivityRaw(requestParameters: GetSubscriptionActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionActivity>> {
|
|
7301
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
7302
|
+
throw new runtime.RequiredError(
|
|
7303
|
+
'subscriptionId',
|
|
7304
|
+
'Required parameter "subscriptionId" was null or undefined when calling getSubscriptionActivity().'
|
|
7305
|
+
);
|
|
7306
|
+
}
|
|
7307
|
+
|
|
7308
|
+
const queryParameters: any = {};
|
|
7309
|
+
|
|
7310
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
7311
|
+
|
|
7312
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
7313
|
+
const token = this.configuration.accessToken;
|
|
7314
|
+
const tokenString = await token("bearer", []);
|
|
7315
|
+
|
|
7316
|
+
if (tokenString) {
|
|
7317
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7318
|
+
}
|
|
7319
|
+
}
|
|
7320
|
+
const response = await this.request({
|
|
7321
|
+
path: `/api/billing/subscriptions/{subscriptionId}/activity`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
7322
|
+
method: 'GET',
|
|
7323
|
+
headers: headerParameters,
|
|
7324
|
+
query: queryParameters,
|
|
7325
|
+
}, initOverrides);
|
|
7326
|
+
|
|
7327
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionActivityFromJSON(jsonValue));
|
|
7328
|
+
}
|
|
7329
|
+
|
|
7330
|
+
/**
|
|
7331
|
+
*/
|
|
7332
|
+
async getSubscriptionActivity(requestParameters: GetSubscriptionActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionActivity> {
|
|
7333
|
+
const response = await this.getSubscriptionActivityRaw(requestParameters, initOverrides);
|
|
7334
|
+
return await response.value();
|
|
7335
|
+
}
|
|
7336
|
+
|
|
7232
7337
|
/**
|
|
7233
7338
|
*/
|
|
7234
7339
|
async getSubscriptionsRaw(requestParameters: GetSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriptions200Response>> {
|
|
@@ -205,12 +205,6 @@ export interface Asset {
|
|
|
205
205
|
* @memberof Asset
|
|
206
206
|
*/
|
|
207
207
|
note?: Array<Note>;
|
|
208
|
-
/**
|
|
209
|
-
* Whether the asset has been soft deleted
|
|
210
|
-
* @type {boolean}
|
|
211
|
-
* @memberof Asset
|
|
212
|
-
*/
|
|
213
|
-
deleted: boolean;
|
|
214
208
|
/**
|
|
215
209
|
* Array of asset IDs that were merged to create this asset
|
|
216
210
|
* @type {object}
|
|
@@ -284,7 +278,6 @@ export function instanceOfAsset(value: object): value is Asset {
|
|
|
284
278
|
if (!('externalProductId' in value) || value['externalProductId'] === undefined) return false;
|
|
285
279
|
if (!('assetClassId' in value) || value['assetClassId'] === undefined) return false;
|
|
286
280
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
287
|
-
if (!('deleted' in value) || value['deleted'] === undefined) return false;
|
|
288
281
|
if (!('mergedAssetIds' in value) || value['mergedAssetIds'] === undefined) return false;
|
|
289
282
|
if (!('createdById' in value) || value['createdById'] === undefined) return false;
|
|
290
283
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -321,7 +314,6 @@ export function AssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ass
|
|
|
321
314
|
'assetFeatures': json['assetFeatures'] == null ? undefined : ((json['assetFeatures'] as Array<any>).map(AssetFeatureFromJSON)),
|
|
322
315
|
'metadata': json['metadata'],
|
|
323
316
|
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteFromJSON)),
|
|
324
|
-
'deleted': json['deleted'],
|
|
325
317
|
'mergedAssetIds': json['mergedAssetIds'],
|
|
326
318
|
'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
|
|
327
319
|
'createdById': json['createdById'],
|
|
@@ -363,7 +355,6 @@ export function AssetToJSONTyped(value?: Asset | null, ignoreDiscriminator: bool
|
|
|
363
355
|
'assetFeatures': value['assetFeatures'] == null ? undefined : ((value['assetFeatures'] as Array<any>).map(AssetFeatureToJSON)),
|
|
364
356
|
'metadata': value['metadata'],
|
|
365
357
|
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteToJSON)),
|
|
366
|
-
'deleted': value['deleted'],
|
|
367
358
|
'mergedAssetIds': value['mergedAssetIds'],
|
|
368
359
|
'createdBy': UserToJSON(value['createdBy']),
|
|
369
360
|
'createdById': value['createdById'],
|