@managespace/sdk 0.0.39 → 0.0.41
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 -12
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +43 -8
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +131 -16
- package/dist/generated/models/chart-of-accounts-response.d.ts +27 -4
- package/dist/generated/models/chart-of-accounts-response.d.ts.map +1 -1
- package/dist/generated/models/chart-of-accounts-response.js +19 -4
- package/dist/generated/models/configuration-setting-response.d.ts +84 -0
- package/dist/generated/models/configuration-setting-response.d.ts.map +1 -0
- package/dist/generated/models/configuration-setting-response.js +82 -0
- package/dist/generated/models/configuration-setting-type.d.ts +28 -0
- package/dist/generated/models/configuration-setting-type.d.ts.map +1 -0
- package/dist/generated/models/configuration-setting-type.js +53 -0
- package/dist/generated/models/create-billing-run.d.ts +1 -1
- package/dist/generated/models/create-billing-run.d.ts.map +1 -1
- package/dist/generated/models/create-billing-run.js +1 -3
- package/dist/generated/models/create-chart-of-accounts.d.ts +57 -0
- package/dist/generated/models/create-chart-of-accounts.d.ts.map +1 -0
- package/dist/generated/models/create-chart-of-accounts.js +65 -0
- package/dist/generated/models/create-configuration-setting.d.ts +52 -0
- package/dist/generated/models/create-configuration-setting.d.ts.map +1 -0
- package/dist/generated/models/create-configuration-setting.js +64 -0
- package/dist/generated/models/create-contact.d.ts +87 -0
- package/dist/generated/models/create-contact.d.ts.map +1 -0
- package/dist/generated/models/create-contact.js +81 -0
- package/dist/generated/models/create-payment.d.ts +155 -0
- package/dist/generated/models/create-payment.d.ts.map +1 -0
- package/dist/generated/models/create-payment.js +123 -0
- package/dist/generated/models/create-plan-billing.d.ts +58 -0
- package/dist/generated/models/create-plan-billing.d.ts.map +1 -0
- package/dist/generated/models/create-plan-billing.js +68 -0
- package/dist/generated/models/create-product-billing.d.ts +82 -0
- package/dist/generated/models/create-product-billing.d.ts.map +1 -0
- package/dist/generated/models/create-product-billing.js +84 -0
- package/dist/generated/models/create-subscription.d.ts +2 -15
- package/dist/generated/models/create-subscription.d.ts.map +1 -1
- package/dist/generated/models/create-subscription.js +3 -12
- package/dist/generated/models/custom-add-customer-contact.d.ts +34 -0
- package/dist/generated/models/custom-add-customer-contact.d.ts.map +1 -0
- package/dist/generated/models/custom-add-customer-contact.js +52 -0
- package/dist/generated/models/custom-create-contact-with-customer.d.ts +82 -0
- package/dist/generated/models/custom-create-contact-with-customer.d.ts.map +1 -0
- package/dist/generated/models/custom-create-contact-with-customer.js +78 -0
- package/dist/generated/models/customer-delivery-preferences.d.ts +39 -0
- package/dist/generated/models/customer-delivery-preferences.d.ts.map +1 -0
- package/dist/generated/models/customer-delivery-preferences.js +55 -0
- package/dist/generated/models/customer-id.d.ts +33 -0
- package/dist/generated/models/customer-id.d.ts.map +1 -0
- package/dist/generated/models/customer-id.js +51 -0
- package/dist/generated/models/customer-payment-options.d.ts +39 -0
- package/dist/generated/models/customer-payment-options.d.ts.map +1 -0
- package/dist/generated/models/customer-payment-options.js +55 -0
- package/dist/generated/models/get-chart-of-accounts200-response.d.ts +3 -3
- package/dist/generated/models/get-chart-of-accounts200-response.d.ts.map +1 -1
- package/dist/generated/models/get-chart-of-accounts200-response.js +3 -3
- package/dist/generated/models/get-configuration-settings200-response.d.ts +41 -0
- package/dist/generated/models/get-configuration-settings200-response.d.ts.map +1 -0
- package/dist/generated/models/get-configuration-settings200-response.js +55 -0
- package/dist/generated/models/get-customer-response.d.ts +276 -0
- package/dist/generated/models/get-customer-response.d.ts.map +1 -0
- package/dist/generated/models/get-customer-response.js +214 -0
- package/dist/generated/models/get-customers-billing200-response.d.ts +41 -0
- package/dist/generated/models/get-customers-billing200-response.d.ts.map +1 -0
- package/dist/generated/models/get-customers-billing200-response.js +55 -0
- package/dist/generated/models/index.d.ts +6 -5
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +6 -5
- package/dist/generated/models/org-response.d.ts +4 -4
- package/dist/generated/models/org-response.d.ts.map +1 -1
- package/dist/generated/models/org-response.js +5 -5
- package/dist/generated/models/product-billing-response.d.ts +142 -0
- package/dist/generated/models/product-billing-response.d.ts.map +1 -0
- package/dist/generated/models/product-billing-response.js +124 -0
- package/dist/generated/models/product-transaction-posting-entries.d.ts +45 -0
- package/dist/generated/models/product-transaction-posting-entries.d.ts.map +1 -0
- package/dist/generated/models/product-transaction-posting-entries.js +59 -0
- package/dist/generated/models/site-response.d.ts +4 -4
- package/dist/generated/models/site-response.d.ts.map +1 -1
- package/dist/generated/models/site-response.js +5 -5
- package/dist/generated/models/update-configuration-setting.d.ts +52 -0
- package/dist/generated/models/update-configuration-setting.d.ts.map +1 -0
- package/dist/generated/models/update-configuration-setting.js +56 -0
- package/dist/generated/models/update-customer.d.ts +57 -0
- package/dist/generated/models/update-customer.d.ts.map +1 -0
- package/dist/generated/models/update-customer.js +57 -0
- package/dist/generated/models/update-product.d.ts +52 -0
- package/dist/generated/models/update-product.d.ts.map +1 -0
- package/dist/generated/models/update-product.js +60 -0
- package/package.json +3 -3
- package/src/extensibility/functions/project/billing.ts +9 -13
- package/src/generated/.openapi-generator/FILES +6 -5
- package/src/generated/apis/default-api.ts +225 -29
- package/src/generated/models/chart-of-accounts-response.ts +42 -14
- package/src/generated/models/configuration-setting-response.ts +160 -0
- package/src/generated/models/configuration-setting-type.ts +55 -0
- package/src/generated/models/create-billing-run.ts +2 -3
- package/src/generated/models/create-chart-of-accounts.ts +101 -0
- package/src/generated/models/create-configuration-setting.ts +103 -0
- package/src/generated/models/create-subscription.ts +5 -31
- package/src/generated/models/get-chart-of-accounts200-response.ts +10 -10
- package/src/generated/models/get-configuration-settings200-response.ts +89 -0
- package/src/generated/models/index.ts +6 -5
- package/src/generated/models/org-response.ts +13 -13
- package/src/generated/models/site-response.ts +13 -13
- package/src/generated/models/update-configuration-setting.ts +99 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace V2 Auth API
|
|
3
|
+
* ManageSpace Auth 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 { ConfigurationSettingType } from './configuration-setting-type';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateConfigurationSetting
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateConfigurationSetting {
|
|
19
|
+
/**
|
|
20
|
+
* Name of setting
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateConfigurationSetting
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Description of setting
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateConfigurationSetting
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ConfigurationSettingType}
|
|
34
|
+
* @memberof UpdateConfigurationSetting
|
|
35
|
+
*/
|
|
36
|
+
type?: ConfigurationSettingType;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateConfigurationSetting
|
|
41
|
+
*/
|
|
42
|
+
value?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the UpdateConfigurationSetting interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfUpdateConfigurationSetting(value: object): value is UpdateConfigurationSetting;
|
|
48
|
+
export declare function UpdateConfigurationSettingFromJSON(json: any): UpdateConfigurationSetting;
|
|
49
|
+
export declare function UpdateConfigurationSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateConfigurationSetting;
|
|
50
|
+
export declare function UpdateConfigurationSettingToJSON(json: any): UpdateConfigurationSetting;
|
|
51
|
+
export declare function UpdateConfigurationSettingToJSONTyped(value?: UpdateConfigurationSetting | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
//# sourceMappingURL=update-configuration-setting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-configuration-setting.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-configuration-setting.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAQ7E;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAW3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1I"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace V2 Auth API
|
|
6
|
+
* ManageSpace Auth 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.UpdateConfigurationSettingToJSONTyped = exports.UpdateConfigurationSettingToJSON = exports.UpdateConfigurationSettingFromJSONTyped = exports.UpdateConfigurationSettingFromJSON = exports.instanceOfUpdateConfigurationSetting = void 0;
|
|
17
|
+
const configuration_setting_type_1 = require("./configuration-setting-type");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateConfigurationSetting interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateConfigurationSetting(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfUpdateConfigurationSetting = instanceOfUpdateConfigurationSetting;
|
|
25
|
+
function UpdateConfigurationSettingFromJSON(json) {
|
|
26
|
+
return UpdateConfigurationSettingFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.UpdateConfigurationSettingFromJSON = UpdateConfigurationSettingFromJSON;
|
|
29
|
+
function UpdateConfigurationSettingFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
35
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
36
|
+
'type': json['type'] == null ? undefined : (0, configuration_setting_type_1.ConfigurationSettingTypeFromJSON)(json['type']),
|
|
37
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.UpdateConfigurationSettingFromJSONTyped = UpdateConfigurationSettingFromJSONTyped;
|
|
41
|
+
function UpdateConfigurationSettingToJSON(json) {
|
|
42
|
+
return UpdateConfigurationSettingToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateConfigurationSettingToJSON = UpdateConfigurationSettingToJSON;
|
|
45
|
+
function UpdateConfigurationSettingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
'type': (0, configuration_setting_type_1.ConfigurationSettingTypeToJSON)(value['type']),
|
|
53
|
+
'value': value['value'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.UpdateConfigurationSettingToJSONTyped = UpdateConfigurationSettingToJSONTyped;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace V2 Auth API
|
|
3
|
+
* ManageSpace Auth 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 UpdateCustomer
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateCustomer {
|
|
18
|
+
/**
|
|
19
|
+
* Full name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateCustomer
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* description of business or individual
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateCustomer
|
|
28
|
+
*/
|
|
29
|
+
description?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* External ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateCustomer
|
|
34
|
+
*/
|
|
35
|
+
externalId?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* billing contact ID
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateCustomer
|
|
40
|
+
*/
|
|
41
|
+
billingContactId?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* shipping contact ID
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateCustomer
|
|
46
|
+
*/
|
|
47
|
+
shippingContactId?: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the UpdateCustomer interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfUpdateCustomer(value: object): value is UpdateCustomer;
|
|
53
|
+
export declare function UpdateCustomerFromJSON(json: any): UpdateCustomer;
|
|
54
|
+
export declare function UpdateCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCustomer;
|
|
55
|
+
export declare function UpdateCustomerToJSON(json: any): UpdateCustomer;
|
|
56
|
+
export declare function UpdateCustomerToJSONTyped(value?: UpdateCustomer | null, ignoreDiscriminator?: boolean): any;
|
|
57
|
+
//# sourceMappingURL=update-customer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-customer.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-customer.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAE/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAYnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalH"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace V2 Auth API
|
|
6
|
+
* ManageSpace Auth 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.UpdateCustomerToJSONTyped = exports.UpdateCustomerToJSON = exports.UpdateCustomerFromJSONTyped = exports.UpdateCustomerFromJSON = exports.instanceOfUpdateCustomer = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UpdateCustomer interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUpdateCustomer(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfUpdateCustomer = instanceOfUpdateCustomer;
|
|
24
|
+
function UpdateCustomerFromJSON(json) {
|
|
25
|
+
return UpdateCustomerFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.UpdateCustomerFromJSON = UpdateCustomerFromJSON;
|
|
28
|
+
function UpdateCustomerFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
34
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
35
|
+
'externalId': json['externalId'] == null ? undefined : json['externalId'],
|
|
36
|
+
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
37
|
+
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.UpdateCustomerFromJSONTyped = UpdateCustomerFromJSONTyped;
|
|
41
|
+
function UpdateCustomerToJSON(json) {
|
|
42
|
+
return UpdateCustomerToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCustomerToJSON = UpdateCustomerToJSON;
|
|
45
|
+
function UpdateCustomerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
'externalId': value['externalId'],
|
|
53
|
+
'billingContactId': value['billingContactId'],
|
|
54
|
+
'shippingContactId': value['shippingContactId'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.UpdateCustomerToJSONTyped = UpdateCustomerToJSONTyped;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace V2 Auth API
|
|
3
|
+
* ManageSpace Auth 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 { ProductStatus } from './product-status';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateProduct
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateProduct {
|
|
19
|
+
/**
|
|
20
|
+
* The product name the asset is associated with
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateProduct
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* The product id stored in the external sytem
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateProduct
|
|
29
|
+
*/
|
|
30
|
+
externalId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ProductStatus}
|
|
34
|
+
* @memberof UpdateProduct
|
|
35
|
+
*/
|
|
36
|
+
status?: ProductStatus;
|
|
37
|
+
/**
|
|
38
|
+
* The stock count of the asset
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof UpdateProduct
|
|
41
|
+
*/
|
|
42
|
+
stockCount?: number | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the UpdateProduct interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfUpdateProduct(value: object): value is UpdateProduct;
|
|
48
|
+
export declare function UpdateProductFromJSON(json: any): UpdateProduct;
|
|
49
|
+
export declare function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProduct;
|
|
50
|
+
export declare function UpdateProductToJSON(json: any): UpdateProduct;
|
|
51
|
+
export declare function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
//# sourceMappingURL=update-product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-product.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-product.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAWjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhH"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace V2 Auth API
|
|
6
|
+
* ManageSpace Auth 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.UpdateProductToJSONTyped = exports.UpdateProductToJSON = exports.UpdateProductFromJSONTyped = exports.UpdateProductFromJSON = exports.instanceOfUpdateProduct = void 0;
|
|
17
|
+
const product_status_1 = require("./product-status");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateProduct interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateProduct(value) {
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('externalId' in value) || value['externalId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfUpdateProduct = instanceOfUpdateProduct;
|
|
29
|
+
function UpdateProductFromJSON(json) {
|
|
30
|
+
return UpdateProductFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.UpdateProductFromJSON = UpdateProductFromJSON;
|
|
33
|
+
function UpdateProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'externalId': json['externalId'],
|
|
40
|
+
'status': json['status'] == null ? undefined : (0, product_status_1.ProductStatusFromJSON)(json['status']),
|
|
41
|
+
'stockCount': json['stockCount'] == null ? undefined : json['stockCount'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateProductFromJSONTyped = UpdateProductFromJSONTyped;
|
|
45
|
+
function UpdateProductToJSON(json) {
|
|
46
|
+
return UpdateProductToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
exports.UpdateProductToJSON = UpdateProductToJSON;
|
|
49
|
+
function UpdateProductToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'externalId': value['externalId'],
|
|
56
|
+
'status': (0, product_status_1.ProductStatusToJSON)(value['status']),
|
|
57
|
+
'stockCount': value['stockCount'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.UpdateProductToJSONTyped = UpdateProductToJSONTyped;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"_dev": "tsc -w --preserveWatchOutput",
|
|
6
|
+
"_build": "tsc",
|
|
7
7
|
"lint:check": "eslint .",
|
|
8
8
|
"lint:fix": "eslint --fix .",
|
|
9
9
|
"upload": "tsc && npm publish"
|
|
@@ -3,15 +3,14 @@ import {
|
|
|
3
3
|
BillingRunResponse,
|
|
4
4
|
ChargeResponse,
|
|
5
5
|
InvoiceResponse,
|
|
6
|
-
CreateBillingRun as
|
|
6
|
+
CreateBillingRun as _CreateBillingRun,
|
|
7
7
|
CreatePaymentRun as CreatePaymentRunPayload,
|
|
8
|
-
CustomChartOfAccounts,
|
|
9
8
|
// SubscriptionResponse,
|
|
10
9
|
PlanResponse,
|
|
11
10
|
PaymentRunResponse,
|
|
12
11
|
CustomCreatePlan,
|
|
13
|
-
ChartOfAccountResponse,
|
|
14
12
|
ChartOfAccountsResponse,
|
|
13
|
+
CreateChartOfAccounts as _CreateChartOfAccounts,
|
|
15
14
|
RevenueRuleResponse,
|
|
16
15
|
CreatePaymentBilling,
|
|
17
16
|
PaymentResponse,
|
|
@@ -22,7 +21,7 @@ import {
|
|
|
22
21
|
CustomCreateCustomer,
|
|
23
22
|
CustomerResponse,
|
|
24
23
|
ContactResponse,
|
|
25
|
-
CreateSubscription as _CreateSubscription,
|
|
24
|
+
// CreateSubscription as _CreateSubscription,
|
|
26
25
|
} from '../../../generated';
|
|
27
26
|
import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
|
|
28
27
|
import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
|
|
@@ -33,7 +32,7 @@ type BasePaginationQuery = { offset?: number; limit?: number };
|
|
|
33
32
|
export namespace Billing {
|
|
34
33
|
export class CreateBillingRun implements ExtPlugin {
|
|
35
34
|
responseType!: BillingRunResponse;
|
|
36
|
-
payload!:
|
|
35
|
+
payload!: _CreateBillingRun;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
export class CreatePaymentRun implements ExtPlugin {
|
|
@@ -43,7 +42,7 @@ export namespace Billing {
|
|
|
43
42
|
|
|
44
43
|
export class CreateChartOfAccounts implements ExtPlugin {
|
|
45
44
|
responseType!: ChartOfAccountsResponse;
|
|
46
|
-
payload!:
|
|
45
|
+
payload!: _CreateChartOfAccounts;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
export class CreateContact implements ExtPlugin {
|
|
@@ -195,15 +194,12 @@ export namespace Billing {
|
|
|
195
194
|
}
|
|
196
195
|
|
|
197
196
|
export class GetChartOfAccount implements ExtPlugin {
|
|
198
|
-
responseType!:
|
|
199
|
-
payload!: {
|
|
200
|
-
siteId: string;
|
|
201
|
-
chartOfAccountId: string;
|
|
202
|
-
};
|
|
197
|
+
responseType!: ChartOfAccountsResponse;
|
|
198
|
+
payload!: { chartOfAccountsId: string };
|
|
203
199
|
}
|
|
204
200
|
|
|
205
201
|
export class GetChartOfAccounts implements ExtPlugin {
|
|
206
|
-
responseType!:
|
|
202
|
+
responseType!: ChartOfAccountsResponse[];
|
|
207
203
|
payload!: BasePaginationQuery;
|
|
208
204
|
}
|
|
209
205
|
|
|
@@ -219,7 +215,7 @@ export namespace Billing {
|
|
|
219
215
|
|
|
220
216
|
export class CreateSubscription implements ExtPlugin {
|
|
221
217
|
responseType!: any;
|
|
222
|
-
payload!:
|
|
218
|
+
payload!: any;
|
|
223
219
|
// payload!: any;
|
|
224
220
|
}
|
|
225
221
|
|
|
@@ -12,13 +12,13 @@ models/billing-run-filter-option-response.ts
|
|
|
12
12
|
models/billing-run-response.ts
|
|
13
13
|
models/calendar-response.ts
|
|
14
14
|
models/charge-response.ts
|
|
15
|
-
models/chart-of-account-response.ts
|
|
16
15
|
models/chart-of-accounts-response.ts
|
|
17
16
|
models/checklist-recurrence-frequency.ts
|
|
18
17
|
models/checklist-response.ts
|
|
19
18
|
models/communication-response.ts
|
|
20
19
|
models/communication-type.ts
|
|
21
|
-
models/configuration-response.ts
|
|
20
|
+
models/configuration-setting-response.ts
|
|
21
|
+
models/configuration-setting-type.ts
|
|
22
22
|
models/contact-response.ts
|
|
23
23
|
models/create-address.ts
|
|
24
24
|
models/create-asset-asset-category-relation-input.ts
|
|
@@ -28,8 +28,10 @@ models/create-asset-feature-custom.ts
|
|
|
28
28
|
models/create-assets.ts
|
|
29
29
|
models/create-billing-run.ts
|
|
30
30
|
models/create-calendar.ts
|
|
31
|
+
models/create-chart-of-accounts.ts
|
|
31
32
|
models/create-checklist.ts
|
|
32
33
|
models/create-communication.ts
|
|
34
|
+
models/create-configuration-setting.ts
|
|
33
35
|
models/create-document.ts
|
|
34
36
|
models/create-instances.ts
|
|
35
37
|
models/create-map-feature.ts
|
|
@@ -45,13 +47,10 @@ models/create-product-custom.ts
|
|
|
45
47
|
models/create-product.ts
|
|
46
48
|
models/create-site-custom.ts
|
|
47
49
|
models/create-smart-bar-prompt.ts
|
|
48
|
-
models/create-subscription-plan.ts
|
|
49
50
|
models/create-subscription.ts
|
|
50
51
|
models/create-task-template.ts
|
|
51
52
|
models/create-task.ts
|
|
52
53
|
models/create-template.ts
|
|
53
|
-
models/custom-chart-of-account.ts
|
|
54
|
-
models/custom-chart-of-accounts.ts
|
|
55
54
|
models/custom-create-contact.ts
|
|
56
55
|
models/custom-create-customer.ts
|
|
57
56
|
models/custom-create-plan.ts
|
|
@@ -78,6 +77,7 @@ models/get-calendars200-response.ts
|
|
|
78
77
|
models/get-charges200-response.ts
|
|
79
78
|
models/get-chart-of-accounts200-response.ts
|
|
80
79
|
models/get-communications200-response.ts
|
|
80
|
+
models/get-configuration-settings200-response.ts
|
|
81
81
|
models/get-contacts200-response.ts
|
|
82
82
|
models/get-customers200-response.ts
|
|
83
83
|
models/get-intent.ts
|
|
@@ -159,6 +159,7 @@ models/update-asset-category.ts
|
|
|
159
159
|
models/update-asset-feature.ts
|
|
160
160
|
models/update-asset.ts
|
|
161
161
|
models/update-checklist-task-template.ts
|
|
162
|
+
models/update-configuration-setting.ts
|
|
162
163
|
models/update-extensibility-repo.ts
|
|
163
164
|
models/update-map-feature.ts
|
|
164
165
|
models/update-note.ts
|