@managespace/sdk 0.0.163 → 0.0.165
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/.turbo/turbo-build.log +2 -0
- package/dist/extensibility/functions/extensibility-function.d.ts +2 -10
- package/dist/extensibility/functions/extensibility-function.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.d.ts +8 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/extensibility/types/mapped-ports.d.ts +5 -3
- package/dist/extensibility/types/mapped-ports.d.ts.map +1 -1
- package/dist/extensibility/types/step-function-signature.d.ts +1 -6
- package/dist/extensibility/types/step-function-signature.d.ts.map +1 -1
- package/dist/extensibility/types/workflow-step.d.ts +1 -2
- package/dist/extensibility/types/workflow-step.d.ts.map +1 -1
- package/dist/extensibility/workflow/workflow-step.d.ts +6 -5
- package/dist/extensibility/workflow/workflow-step.d.ts.map +1 -1
- package/dist/extensibility/workflow/workflow.d.ts +9 -3
- package/dist/extensibility/workflow/workflow.d.ts.map +1 -1
- package/dist/extensibility/workflow/workflow.js +0 -36
- package/dist/generated/apis/default-api.d.ts +12 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +37 -0
- package/dist/generated/models/charge.d.ts +5 -5
- package/dist/generated/models/charge.d.ts.map +1 -1
- package/dist/generated/models/charge.js +5 -15
- package/dist/generated/models/create-charge.d.ts +5 -5
- package/dist/generated/models/create-charge.d.ts.map +1 -1
- package/dist/generated/models/create-charge.js +5 -15
- package/dist/generated/models/create-plan-charge.d.ts +181 -5
- package/dist/generated/models/create-plan-charge.d.ts.map +1 -1
- package/dist/generated/models/create-plan-charge.js +62 -6
- package/dist/generated/models/document.d.ts +39 -0
- package/dist/generated/models/document.d.ts.map +1 -0
- package/dist/generated/models/document.js +55 -0
- package/dist/generated/models/index.d.ts +1 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -0
- package/dist/generated/models/update-plan.d.ts +58 -0
- package/dist/generated/models/update-plan.d.ts.map +1 -0
- package/dist/generated/models/update-plan.js +62 -0
- package/dist/generated/models/uploaded-documents.d.ts +45 -0
- package/dist/generated/models/uploaded-documents.d.ts.map +1 -0
- package/dist/generated/models/uploaded-documents.js +59 -0
- package/package.json +2 -3
- package/src/extensibility/functions/extensibility-function.ts +1 -9
- package/src/extensibility/functions/project/billing.ts +9 -0
- package/src/extensibility/types/mapped-ports.ts +10 -3
- package/src/extensibility/types/step-function-signature.ts +3 -8
- package/src/extensibility/types/workflow-step.ts +1 -2
- package/src/extensibility/workflow/workflow-step.ts +14 -10
- package/src/extensibility/workflow/workflow.ts +5 -43
- package/src/generated/.openapi-generator/FILES +1 -0
- package/src/generated/apis/default-api.ts +65 -0
- package/src/generated/models/charge.ts +10 -15
- package/src/generated/models/create-charge.ts +10 -15
- package/src/generated/models/create-plan-charge.ts +254 -9
- package/src/generated/models/index.ts +1 -0
- package/src/generated/models/update-plan.ts +107 -0
- package/package.deploy.json +0 -34
|
@@ -40,7 +40,7 @@ export interface Charge {
|
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof Charge
|
|
42
42
|
*/
|
|
43
|
-
type
|
|
43
|
+
type?: string;
|
|
44
44
|
/**
|
|
45
45
|
* timing of one-time charge, to process at start of contract or termination
|
|
46
46
|
* @type {string}
|
|
@@ -70,13 +70,13 @@ export interface Charge {
|
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof Charge
|
|
72
72
|
*/
|
|
73
|
-
pricingModel
|
|
73
|
+
pricingModel?: string;
|
|
74
74
|
/**
|
|
75
75
|
* Original unit price of charge
|
|
76
76
|
* @type {string}
|
|
77
77
|
* @memberof Charge
|
|
78
78
|
*/
|
|
79
|
-
listPrice
|
|
79
|
+
listPrice?: string;
|
|
80
80
|
/**
|
|
81
81
|
* For recurring charges, time of charges
|
|
82
82
|
* @type {string}
|
|
@@ -136,7 +136,7 @@ export interface Charge {
|
|
|
136
136
|
* @type {number}
|
|
137
137
|
* @memberof Charge
|
|
138
138
|
*/
|
|
139
|
-
includedUnits
|
|
139
|
+
includedUnits?: number;
|
|
140
140
|
/**
|
|
141
141
|
* Unused prepayment units remaining for charge
|
|
142
142
|
* @type {number}
|
|
@@ -202,7 +202,7 @@ export interface Charge {
|
|
|
202
202
|
* @type {boolean}
|
|
203
203
|
* @memberof Charge
|
|
204
204
|
*/
|
|
205
|
-
defaultFromProduct
|
|
205
|
+
defaultFromProduct?: boolean;
|
|
206
206
|
/**
|
|
207
207
|
* Revenue Rule ID
|
|
208
208
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IAC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AAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7D;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,MAAM,CAM/D;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CA2CnF;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAE9C;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA4ClG"}
|
|
@@ -24,16 +24,6 @@ function instanceOfCharge(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('pricingModel' in value) || value['pricingModel'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('listPrice' in value) || value['listPrice'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('includedUnits' in value) || value['includedUnits'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('defaultFromProduct' in value) || value['defaultFromProduct'] === undefined)
|
|
36
|
-
return false;
|
|
37
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
38
28
|
return false;
|
|
39
29
|
if (!('chargeBillingDate' in value) || value['chargeBillingDate'] === undefined)
|
|
@@ -53,13 +43,13 @@ function ChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
43
|
'productId': json['productId'],
|
|
54
44
|
'name': json['name'],
|
|
55
45
|
'description': json['description'] == null ? undefined : json['description'],
|
|
56
|
-
'type': json['type'],
|
|
46
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
57
47
|
'timing': json['timing'] == null ? undefined : json['timing'],
|
|
58
48
|
'effectiveDate': json['effectiveDate'] == null ? undefined : json['effectiveDate'],
|
|
59
49
|
'billingDate': json['billingDate'] == null ? undefined : json['billingDate'],
|
|
60
50
|
'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
|
|
61
|
-
'pricingModel': json['pricingModel'],
|
|
62
|
-
'listPrice': json['listPrice'],
|
|
51
|
+
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
52
|
+
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
63
53
|
'chargeTiming': json['chargeTiming'] == null ? undefined : json['chargeTiming'],
|
|
64
54
|
'listPriceBase': json['listPriceBase'] == null ? undefined : json['listPriceBase'],
|
|
65
55
|
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
@@ -69,7 +59,7 @@ function ChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
59
|
'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
|
|
70
60
|
'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
|
|
71
61
|
'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
|
|
72
|
-
'includedUnits': json['includedUnits'],
|
|
62
|
+
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
73
63
|
'unusedPrepaymentUnits': json['unusedPrepaymentUnits'] == null ? undefined : json['unusedPrepaymentUnits'],
|
|
74
64
|
'tiers': json['tiers'] == null ? undefined : (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
|
|
75
65
|
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
|
|
@@ -80,7 +70,7 @@ function ChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
80
70
|
'refillPrepaidUnitsFor': json['refillPrepaidUnitsFor'] == null ? undefined : json['refillPrepaidUnitsFor'],
|
|
81
71
|
'prepaidUnitsExpiry': json['prepaidUnitsExpiry'] == null ? undefined : json['prepaidUnitsExpiry'],
|
|
82
72
|
'refundUnitsOnCancel': json['refundUnitsOnCancel'] == null ? undefined : json['refundUnitsOnCancel'],
|
|
83
|
-
'defaultFromProduct': json['defaultFromProduct'],
|
|
73
|
+
'defaultFromProduct': json['defaultFromProduct'] == null ? undefined : json['defaultFromProduct'],
|
|
84
74
|
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
85
75
|
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
86
76
|
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
@@ -40,7 +40,7 @@ export interface CreateCharge {
|
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof CreateCharge
|
|
42
42
|
*/
|
|
43
|
-
type
|
|
43
|
+
type?: string;
|
|
44
44
|
/**
|
|
45
45
|
* timing of one-time charge, to process at start of contract or termination
|
|
46
46
|
* @type {string}
|
|
@@ -70,13 +70,13 @@ export interface CreateCharge {
|
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof CreateCharge
|
|
72
72
|
*/
|
|
73
|
-
pricingModel
|
|
73
|
+
pricingModel?: string;
|
|
74
74
|
/**
|
|
75
75
|
* Original unit price of charge
|
|
76
76
|
* @type {string}
|
|
77
77
|
* @memberof CreateCharge
|
|
78
78
|
*/
|
|
79
|
-
listPrice
|
|
79
|
+
listPrice?: string;
|
|
80
80
|
/**
|
|
81
81
|
* For recurring charges, time of charges
|
|
82
82
|
* @type {string}
|
|
@@ -136,7 +136,7 @@ export interface CreateCharge {
|
|
|
136
136
|
* @type {number}
|
|
137
137
|
* @memberof CreateCharge
|
|
138
138
|
*/
|
|
139
|
-
includedUnits
|
|
139
|
+
includedUnits?: number;
|
|
140
140
|
/**
|
|
141
141
|
* Unused prepayment units remaining for charge
|
|
142
142
|
* @type {number}
|
|
@@ -202,7 +202,7 @@ export interface CreateCharge {
|
|
|
202
202
|
* @type {boolean}
|
|
203
203
|
* @memberof CreateCharge
|
|
204
204
|
*/
|
|
205
|
-
defaultFromProduct
|
|
205
|
+
defaultFromProduct?: boolean;
|
|
206
206
|
/**
|
|
207
207
|
* Revenue Rule ID
|
|
208
208
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"create-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,aAA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G"}
|
|
@@ -24,16 +24,6 @@ function instanceOfCreateCharge(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('pricingModel' in value) || value['pricingModel'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('listPrice' in value) || value['listPrice'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('includedUnits' in value) || value['includedUnits'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('defaultFromProduct' in value) || value['defaultFromProduct'] === undefined)
|
|
36
|
-
return false;
|
|
37
27
|
return true;
|
|
38
28
|
}
|
|
39
29
|
exports.instanceOfCreateCharge = instanceOfCreateCharge;
|
|
@@ -49,13 +39,13 @@ function CreateChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
39
|
'productId': json['productId'],
|
|
50
40
|
'name': json['name'],
|
|
51
41
|
'description': json['description'] == null ? undefined : json['description'],
|
|
52
|
-
'type': json['type'],
|
|
42
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
53
43
|
'timing': json['timing'] == null ? undefined : json['timing'],
|
|
54
44
|
'effectiveDate': json['effectiveDate'] == null ? undefined : json['effectiveDate'],
|
|
55
45
|
'billingDate': json['billingDate'] == null ? undefined : json['billingDate'],
|
|
56
46
|
'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
|
|
57
|
-
'pricingModel': json['pricingModel'],
|
|
58
|
-
'listPrice': json['listPrice'],
|
|
47
|
+
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
48
|
+
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
59
49
|
'chargeTiming': json['chargeTiming'] == null ? undefined : json['chargeTiming'],
|
|
60
50
|
'listPriceBase': json['listPriceBase'] == null ? undefined : json['listPriceBase'],
|
|
61
51
|
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
@@ -65,7 +55,7 @@ function CreateChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
55
|
'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
|
|
66
56
|
'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
|
|
67
57
|
'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
|
|
68
|
-
'includedUnits': json['includedUnits'],
|
|
58
|
+
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
69
59
|
'unusedPrepaymentUnits': json['unusedPrepaymentUnits'] == null ? undefined : json['unusedPrepaymentUnits'],
|
|
70
60
|
'tiers': json['tiers'] == null ? undefined : (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
|
|
71
61
|
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
|
|
@@ -76,7 +66,7 @@ function CreateChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
66
|
'refillPrepaidUnitsFor': json['refillPrepaidUnitsFor'] == null ? undefined : json['refillPrepaidUnitsFor'],
|
|
77
67
|
'prepaidUnitsExpiry': json['prepaidUnitsExpiry'] == null ? undefined : json['prepaidUnitsExpiry'],
|
|
78
68
|
'refundUnitsOnCancel': json['refundUnitsOnCancel'] == null ? undefined : json['refundUnitsOnCancel'],
|
|
79
|
-
'defaultFromProduct': json['defaultFromProduct'],
|
|
69
|
+
'defaultFromProduct': json['defaultFromProduct'] == null ? undefined : json['defaultFromProduct'],
|
|
80
70
|
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
81
71
|
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
82
72
|
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { TransactionPostingEntries } from './transaction-posting-entries';
|
|
13
|
+
import type { ChargeTier } from './charge-tier';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -22,29 +24,203 @@ export interface CreatePlanCharge {
|
|
|
22
24
|
*/
|
|
23
25
|
productId: string;
|
|
24
26
|
/**
|
|
25
|
-
*
|
|
27
|
+
* Name of charge
|
|
26
28
|
* @type {string}
|
|
27
29
|
* @memberof CreatePlanCharge
|
|
28
30
|
*/
|
|
29
31
|
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Description of charge
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreatePlanCharge
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
30
38
|
/**
|
|
31
39
|
* Type of charge
|
|
32
40
|
* @type {string}
|
|
33
41
|
* @memberof CreatePlanCharge
|
|
34
42
|
*/
|
|
35
|
-
type
|
|
43
|
+
type?: string;
|
|
44
|
+
/**
|
|
45
|
+
* timing of one-time charge, to process at start of contract or termination
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreatePlanCharge
|
|
48
|
+
*/
|
|
49
|
+
timing?: string;
|
|
50
|
+
/**
|
|
51
|
+
* For one-time charges, date charge goes into effect; for custom billing period, provide Billing Period Name
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CreatePlanCharge
|
|
54
|
+
*/
|
|
55
|
+
effectiveDate?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Defines trigger date after which the one-time charges should be processed
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof CreatePlanCharge
|
|
60
|
+
*/
|
|
61
|
+
billingDate?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Date can drive bililng and/or revenue recognition upon completion of task
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof CreatePlanCharge
|
|
66
|
+
*/
|
|
67
|
+
completionDate?: string;
|
|
36
68
|
/**
|
|
37
|
-
*
|
|
69
|
+
* How charge is priced
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof CreatePlanCharge
|
|
72
|
+
*/
|
|
73
|
+
pricingModel?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Original unit price of charge
|
|
38
76
|
* @type {string}
|
|
39
77
|
* @memberof CreatePlanCharge
|
|
40
78
|
*/
|
|
41
79
|
listPrice?: string;
|
|
42
80
|
/**
|
|
43
|
-
*
|
|
81
|
+
* For recurring charges, time of charges
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof CreatePlanCharge
|
|
84
|
+
*/
|
|
85
|
+
chargeTiming?: string;
|
|
86
|
+
/**
|
|
87
|
+
* List price base of charge
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof CreatePlanCharge
|
|
90
|
+
*/
|
|
91
|
+
listPriceBase?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Billing period
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof CreatePlanCharge
|
|
96
|
+
*/
|
|
97
|
+
billingPeriod?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Which day of the month or week Charge is invoiced
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof CreatePlanCharge
|
|
102
|
+
*/
|
|
103
|
+
billingDay?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Determine boundary of Charge period
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof CreatePlanCharge
|
|
108
|
+
*/
|
|
109
|
+
billingPeriodStartAlignment?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Charge for partial periods
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof CreatePlanCharge
|
|
114
|
+
*/
|
|
115
|
+
proratePartialPeriods?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Number of periods/units to charge
|
|
118
|
+
* @type {number}
|
|
119
|
+
* @memberof CreatePlanCharge
|
|
120
|
+
*/
|
|
121
|
+
prepaymentPeriods?: number;
|
|
122
|
+
/**
|
|
123
|
+
* If there is a number of prepayment units you request
|
|
124
|
+
* @type {number}
|
|
125
|
+
* @memberof CreatePlanCharge
|
|
126
|
+
*/
|
|
127
|
+
prepaymentAmount?: number;
|
|
128
|
+
/**
|
|
129
|
+
* For usage charges, unit of measure for charge
|
|
44
130
|
* @type {string}
|
|
45
131
|
* @memberof CreatePlanCharge
|
|
46
132
|
*/
|
|
47
|
-
|
|
133
|
+
unitOfMeasure?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Number of units included in plan for usage based charges (can be float)
|
|
136
|
+
* @type {number}
|
|
137
|
+
* @memberof CreatePlanCharge
|
|
138
|
+
*/
|
|
139
|
+
includedUnits?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Unused prepayment units remaining for charge
|
|
142
|
+
* @type {number}
|
|
143
|
+
* @memberof CreatePlanCharge
|
|
144
|
+
*/
|
|
145
|
+
unusedPrepaymentUnits?: number;
|
|
146
|
+
/**
|
|
147
|
+
* For tiered/volume pricing, each tier will represent price of specific units in given range
|
|
148
|
+
* @type {Array<ChargeTier>}
|
|
149
|
+
* @memberof CreatePlanCharge
|
|
150
|
+
*/
|
|
151
|
+
tiers?: Array<ChargeTier>;
|
|
152
|
+
/**
|
|
153
|
+
* Determines proration logic
|
|
154
|
+
* @type {boolean}
|
|
155
|
+
* @memberof CreatePlanCharge
|
|
156
|
+
*/
|
|
157
|
+
backchargeCurrentPeriod?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Custom fields on the invoice
|
|
160
|
+
* @type {object}
|
|
161
|
+
* @memberof CreatePlanCharge
|
|
162
|
+
*/
|
|
163
|
+
customFields?: object;
|
|
164
|
+
/**
|
|
165
|
+
* Ability to bill your customers for a present number of units
|
|
166
|
+
* @type {boolean}
|
|
167
|
+
* @memberof CreatePlanCharge
|
|
168
|
+
*/
|
|
169
|
+
prepaidUnitsEnable?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Ability to automatically refill number of prepaid units
|
|
172
|
+
* @type {boolean}
|
|
173
|
+
* @memberof CreatePlanCharge
|
|
174
|
+
*/
|
|
175
|
+
autoRefillPrepaymentUnits?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Refill quantity
|
|
178
|
+
* @type {number}
|
|
179
|
+
* @memberof CreatePlanCharge
|
|
180
|
+
*/
|
|
181
|
+
refillQty?: number;
|
|
182
|
+
/**
|
|
183
|
+
* Prepayment refill period
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof CreatePlanCharge
|
|
186
|
+
*/
|
|
187
|
+
refillPrepaidUnitsFor?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Remaining balance of prepaid units
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof CreatePlanCharge
|
|
192
|
+
*/
|
|
193
|
+
prepaidUnitsExpiry?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Remaining balance of prepaid units to be refunded
|
|
196
|
+
* @type {boolean}
|
|
197
|
+
* @memberof CreatePlanCharge
|
|
198
|
+
*/
|
|
199
|
+
refundUnitsOnCancel?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {boolean}
|
|
203
|
+
* @memberof CreatePlanCharge
|
|
204
|
+
*/
|
|
205
|
+
defaultFromProduct?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Revenue Rule ID
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof CreatePlanCharge
|
|
210
|
+
*/
|
|
211
|
+
revenueRuleId?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Date when revenue recognition will begin
|
|
214
|
+
* @type {string}
|
|
215
|
+
* @memberof CreatePlanCharge
|
|
216
|
+
*/
|
|
217
|
+
recognitionStartDate?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Transaction type
|
|
220
|
+
* @type {Array<TransactionPostingEntries>}
|
|
221
|
+
* @memberof CreatePlanCharge
|
|
222
|
+
*/
|
|
223
|
+
transactionPostingEntries?: Array<TransactionPostingEntries>;
|
|
48
224
|
}
|
|
49
225
|
/**
|
|
50
226
|
* Check if a given object implements the CreatePlanCharge interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-plan-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"create-plan-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MA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AC,yBAAyB,CAAC,CAAC;CAChE;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAInF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAyCvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA0CtH"}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreatePlanChargeToJSONTyped = exports.CreatePlanChargeToJSON = exports.CreatePlanChargeFromJSONTyped = exports.CreatePlanChargeFromJSON = exports.instanceOfCreatePlanCharge = void 0;
|
|
17
|
+
const transaction_posting_entries_1 = require("./transaction-posting-entries");
|
|
18
|
+
const charge_tier_1 = require("./charge-tier");
|
|
17
19
|
/**
|
|
18
20
|
* Check if a given object implements the CreatePlanCharge interface.
|
|
19
21
|
*/
|
|
@@ -22,10 +24,6 @@ function instanceOfCreatePlanCharge(value) {
|
|
|
22
24
|
return false;
|
|
23
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
24
26
|
return false;
|
|
25
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
exports.instanceOfCreatePlanCharge = instanceOfCreatePlanCharge;
|
|
@@ -40,9 +38,38 @@ function CreatePlanChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
38
|
return {
|
|
41
39
|
'productId': json['productId'],
|
|
42
40
|
'name': json['name'],
|
|
43
|
-
'
|
|
41
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
42
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
43
|
+
'timing': json['timing'] == null ? undefined : json['timing'],
|
|
44
|
+
'effectiveDate': json['effectiveDate'] == null ? undefined : json['effectiveDate'],
|
|
45
|
+
'billingDate': json['billingDate'] == null ? undefined : json['billingDate'],
|
|
46
|
+
'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
|
|
47
|
+
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
44
48
|
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
45
|
-
'
|
|
49
|
+
'chargeTiming': json['chargeTiming'] == null ? undefined : json['chargeTiming'],
|
|
50
|
+
'listPriceBase': json['listPriceBase'] == null ? undefined : json['listPriceBase'],
|
|
51
|
+
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
52
|
+
'billingDay': json['billingDay'] == null ? undefined : json['billingDay'],
|
|
53
|
+
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'] == null ? undefined : json['billingPeriodStartAlignment'],
|
|
54
|
+
'proratePartialPeriods': json['proratePartialPeriods'] == null ? undefined : json['proratePartialPeriods'],
|
|
55
|
+
'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
|
|
56
|
+
'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
|
|
57
|
+
'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
|
|
58
|
+
'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
|
|
59
|
+
'unusedPrepaymentUnits': json['unusedPrepaymentUnits'] == null ? undefined : json['unusedPrepaymentUnits'],
|
|
60
|
+
'tiers': json['tiers'] == null ? undefined : (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
|
|
61
|
+
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
|
|
62
|
+
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
63
|
+
'prepaidUnitsEnable': json['prepaidUnitsEnable'] == null ? undefined : json['prepaidUnitsEnable'],
|
|
64
|
+
'autoRefillPrepaymentUnits': json['autoRefillPrepaymentUnits'] == null ? undefined : json['autoRefillPrepaymentUnits'],
|
|
65
|
+
'refillQty': json['refillQty'] == null ? undefined : json['refillQty'],
|
|
66
|
+
'refillPrepaidUnitsFor': json['refillPrepaidUnitsFor'] == null ? undefined : json['refillPrepaidUnitsFor'],
|
|
67
|
+
'prepaidUnitsExpiry': json['prepaidUnitsExpiry'] == null ? undefined : json['prepaidUnitsExpiry'],
|
|
68
|
+
'refundUnitsOnCancel': json['refundUnitsOnCancel'] == null ? undefined : json['refundUnitsOnCancel'],
|
|
69
|
+
'defaultFromProduct': json['defaultFromProduct'] == null ? undefined : json['defaultFromProduct'],
|
|
70
|
+
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
71
|
+
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
72
|
+
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
46
73
|
};
|
|
47
74
|
}
|
|
48
75
|
exports.CreatePlanChargeFromJSONTyped = CreatePlanChargeFromJSONTyped;
|
|
@@ -57,9 +84,38 @@ function CreatePlanChargeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
84
|
return {
|
|
58
85
|
'productId': value['productId'],
|
|
59
86
|
'name': value['name'],
|
|
87
|
+
'description': value['description'],
|
|
60
88
|
'type': value['type'],
|
|
89
|
+
'timing': value['timing'],
|
|
90
|
+
'effectiveDate': value['effectiveDate'],
|
|
91
|
+
'billingDate': value['billingDate'],
|
|
92
|
+
'completionDate': value['completionDate'],
|
|
93
|
+
'pricingModel': value['pricingModel'],
|
|
61
94
|
'listPrice': value['listPrice'],
|
|
95
|
+
'chargeTiming': value['chargeTiming'],
|
|
96
|
+
'listPriceBase': value['listPriceBase'],
|
|
62
97
|
'billingPeriod': value['billingPeriod'],
|
|
98
|
+
'billingDay': value['billingDay'],
|
|
99
|
+
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
100
|
+
'proratePartialPeriods': value['proratePartialPeriods'],
|
|
101
|
+
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
102
|
+
'prepaymentAmount': value['prepaymentAmount'],
|
|
103
|
+
'unitOfMeasure': value['unitOfMeasure'],
|
|
104
|
+
'includedUnits': value['includedUnits'],
|
|
105
|
+
'unusedPrepaymentUnits': value['unusedPrepaymentUnits'],
|
|
106
|
+
'tiers': value['tiers'] == null ? undefined : (value['tiers'].map(charge_tier_1.ChargeTierToJSON)),
|
|
107
|
+
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
108
|
+
'customFields': value['customFields'],
|
|
109
|
+
'prepaidUnitsEnable': value['prepaidUnitsEnable'],
|
|
110
|
+
'autoRefillPrepaymentUnits': value['autoRefillPrepaymentUnits'],
|
|
111
|
+
'refillQty': value['refillQty'],
|
|
112
|
+
'refillPrepaidUnitsFor': value['refillPrepaidUnitsFor'],
|
|
113
|
+
'prepaidUnitsExpiry': value['prepaidUnitsExpiry'],
|
|
114
|
+
'refundUnitsOnCancel': value['refundUnitsOnCancel'],
|
|
115
|
+
'defaultFromProduct': value['defaultFromProduct'],
|
|
116
|
+
'revenueRuleId': value['revenueRuleId'],
|
|
117
|
+
'recognitionStartDate': value['recognitionStartDate'],
|
|
118
|
+
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
63
119
|
};
|
|
64
120
|
}
|
|
65
121
|
exports.CreatePlanChargeToJSONTyped = CreatePlanChargeToJSONTyped;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Document
|
|
16
|
+
*/
|
|
17
|
+
export interface Document {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the document.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Document
|
|
22
|
+
*/
|
|
23
|
+
documentId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The URL of the document.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Document
|
|
28
|
+
*/
|
|
29
|
+
documentUrl: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Document interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDocument(value: object): value is Document;
|
|
35
|
+
export declare function DocumentFromJSON(json: any): Document;
|
|
36
|
+
export declare function DocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Document;
|
|
37
|
+
export declare function DocumentToJSON(json: any): Document;
|
|
38
|
+
export declare function DocumentToJSONTyped(value?: Document | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAInE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CASvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtG"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.DocumentToJSONTyped = exports.DocumentToJSON = exports.DocumentFromJSONTyped = exports.DocumentFromJSON = exports.instanceOfDocument = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the Document interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfDocument(value) {
|
|
21
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('documentUrl' in value) || value['documentUrl'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfDocument = instanceOfDocument;
|
|
28
|
+
function DocumentFromJSON(json) {
|
|
29
|
+
return DocumentFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.DocumentFromJSON = DocumentFromJSON;
|
|
32
|
+
function DocumentFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'documentId': json['documentId'],
|
|
38
|
+
'documentUrl': json['documentUrl'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.DocumentFromJSONTyped = DocumentFromJSONTyped;
|
|
42
|
+
function DocumentToJSON(json) {
|
|
43
|
+
return DocumentToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
exports.DocumentToJSON = DocumentToJSON;
|
|
46
|
+
function DocumentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'documentId': value['documentId'],
|
|
52
|
+
'documentUrl': value['documentUrl'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.DocumentToJSONTyped = DocumentToJSONTyped;
|
|
@@ -190,6 +190,7 @@ export * from './update-configuration-setting';
|
|
|
190
190
|
export * from './update-map-feature';
|
|
191
191
|
export * from './update-note';
|
|
192
192
|
export * from './update-org';
|
|
193
|
+
export * from './update-plan';
|
|
193
194
|
export * from './update-smart-bar-prompt';
|
|
194
195
|
export * from './update-subscription';
|
|
195
196
|
export * from './update-subscription-charge';
|