@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,160 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ConfigurationSettingType } from './configuration-setting-type';
|
|
17
|
+
import {
|
|
18
|
+
ConfigurationSettingTypeFromJSON,
|
|
19
|
+
ConfigurationSettingTypeFromJSONTyped,
|
|
20
|
+
ConfigurationSettingTypeToJSON,
|
|
21
|
+
ConfigurationSettingTypeToJSONTyped,
|
|
22
|
+
} from './configuration-setting-type';
|
|
23
|
+
import type { OrgResponse } from './org-response';
|
|
24
|
+
import {
|
|
25
|
+
OrgResponseFromJSON,
|
|
26
|
+
OrgResponseFromJSONTyped,
|
|
27
|
+
OrgResponseToJSON,
|
|
28
|
+
OrgResponseToJSONTyped,
|
|
29
|
+
} from './org-response';
|
|
30
|
+
import type { SiteResponse } from './site-response';
|
|
31
|
+
import {
|
|
32
|
+
SiteResponseFromJSON,
|
|
33
|
+
SiteResponseFromJSONTyped,
|
|
34
|
+
SiteResponseToJSON,
|
|
35
|
+
SiteResponseToJSONTyped,
|
|
36
|
+
} from './site-response';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ConfigurationSettingResponse
|
|
42
|
+
*/
|
|
43
|
+
export interface ConfigurationSettingResponse {
|
|
44
|
+
/**
|
|
45
|
+
* Note ID
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ConfigurationSettingResponse
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {OrgResponse}
|
|
53
|
+
* @memberof ConfigurationSettingResponse
|
|
54
|
+
*/
|
|
55
|
+
org?: OrgResponse;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ConfigurationSettingResponse
|
|
60
|
+
*/
|
|
61
|
+
orgId: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {SiteResponse}
|
|
65
|
+
* @memberof ConfigurationSettingResponse
|
|
66
|
+
*/
|
|
67
|
+
site?: SiteResponse | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ConfigurationSettingResponse
|
|
72
|
+
*/
|
|
73
|
+
siteId: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Name of setting
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ConfigurationSettingResponse
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
/**
|
|
81
|
+
* Description of setting
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ConfigurationSettingResponse
|
|
84
|
+
*/
|
|
85
|
+
description: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {ConfigurationSettingType}
|
|
89
|
+
* @memberof ConfigurationSettingResponse
|
|
90
|
+
*/
|
|
91
|
+
type: ConfigurationSettingType;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof ConfigurationSettingResponse
|
|
96
|
+
*/
|
|
97
|
+
value: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the ConfigurationSettingResponse interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfConfigurationSettingResponse(value: object): value is ConfigurationSettingResponse {
|
|
106
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
107
|
+
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
108
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
109
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
110
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
111
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
112
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ConfigurationSettingResponseFromJSON(json: any): ConfigurationSettingResponse {
|
|
117
|
+
return ConfigurationSettingResponseFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ConfigurationSettingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigurationSettingResponse {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': json['id'],
|
|
127
|
+
'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
|
|
128
|
+
'orgId': json['orgId'],
|
|
129
|
+
'site': json['site'] == null ? undefined : SiteResponseFromJSON(json['site']),
|
|
130
|
+
'siteId': json['siteId'],
|
|
131
|
+
'name': json['name'],
|
|
132
|
+
'description': json['description'],
|
|
133
|
+
'type': ConfigurationSettingTypeFromJSON(json['type']),
|
|
134
|
+
'value': json['value'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function ConfigurationSettingResponseToJSON(json: any): ConfigurationSettingResponse {
|
|
139
|
+
return ConfigurationSettingResponseToJSONTyped(json, false);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function ConfigurationSettingResponseToJSONTyped(value?: ConfigurationSettingResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
+
if (value == null) {
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'id': value['id'],
|
|
150
|
+
'org': OrgResponseToJSON(value['org']),
|
|
151
|
+
'orgId': value['orgId'],
|
|
152
|
+
'site': SiteResponseToJSON(value['site']),
|
|
153
|
+
'siteId': value['siteId'],
|
|
154
|
+
'name': value['name'],
|
|
155
|
+
'description': value['description'],
|
|
156
|
+
'type': ConfigurationSettingTypeToJSON(value['type']),
|
|
157
|
+
'value': value['value'],
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Number for Configuration
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ConfigurationSettingType = {
|
|
21
|
+
Boolean: 'BOOLEAN',
|
|
22
|
+
String: 'STRING',
|
|
23
|
+
Number: 'NUMBER',
|
|
24
|
+
Json: 'JSON'
|
|
25
|
+
} as const;
|
|
26
|
+
export type ConfigurationSettingType = typeof ConfigurationSettingType[keyof typeof ConfigurationSettingType];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfConfigurationSettingType(value: any): boolean {
|
|
30
|
+
for (const key in ConfigurationSettingType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(ConfigurationSettingType, key)) {
|
|
32
|
+
if (ConfigurationSettingType[key as keyof typeof ConfigurationSettingType] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ConfigurationSettingTypeFromJSON(json: any): ConfigurationSettingType {
|
|
41
|
+
return ConfigurationSettingTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ConfigurationSettingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigurationSettingType {
|
|
45
|
+
return json as ConfigurationSettingType;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ConfigurationSettingTypeToJSON(value?: ConfigurationSettingType | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ConfigurationSettingTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ConfigurationSettingType {
|
|
53
|
+
return value as ConfigurationSettingType;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -50,7 +50,7 @@ export interface CreateBillingRun {
|
|
|
50
50
|
* @type {BillingRunFilterOptionResponse}
|
|
51
51
|
* @memberof CreateBillingRun
|
|
52
52
|
*/
|
|
53
|
-
filterOptions
|
|
53
|
+
filterOptions?: BillingRunFilterOptionResponse;
|
|
54
54
|
/**
|
|
55
55
|
* Invoice statues automatically converted from Draft to Posted
|
|
56
56
|
* @type {boolean}
|
|
@@ -96,7 +96,6 @@ export function instanceOfCreateBillingRun(value: object): value is CreateBillin
|
|
|
96
96
|
if (!('targetDate' in value) || value['targetDate'] === undefined) return false;
|
|
97
97
|
if (!('invoiceDate' in value) || value['invoiceDate'] === undefined) return false;
|
|
98
98
|
if (!('chargeType' in value) || value['chargeType'] === undefined) return false;
|
|
99
|
-
if (!('filterOptions' in value) || value['filterOptions'] === undefined) return false;
|
|
100
99
|
if (!('autoPost' in value) || value['autoPost'] === undefined) return false;
|
|
101
100
|
if (!('sendAfterPost' in value) || value['sendAfterPost'] === undefined) return false;
|
|
102
101
|
if (!('skipZeroLines' in value) || value['skipZeroLines'] === undefined) return false;
|
|
@@ -119,7 +118,7 @@ export function CreateBillingRunFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
119
118
|
'targetDate': json['targetDate'],
|
|
120
119
|
'invoiceDate': json['invoiceDate'],
|
|
121
120
|
'chargeType': json['chargeType'],
|
|
122
|
-
'filterOptions': BillingRunFilterOptionResponseFromJSON(json['filterOptions']),
|
|
121
|
+
'filterOptions': json['filterOptions'] == null ? undefined : BillingRunFilterOptionResponseFromJSON(json['filterOptions']),
|
|
123
122
|
'autoPost': json['autoPost'],
|
|
124
123
|
'sendAfterPost': json['sendAfterPost'],
|
|
125
124
|
'skipZeroLines': json['skipZeroLines'],
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateChartOfAccounts
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateChartOfAccounts {
|
|
22
|
+
/**
|
|
23
|
+
* Default value
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateChartOfAccounts
|
|
26
|
+
*/
|
|
27
|
+
defaultValue: string;
|
|
28
|
+
/**
|
|
29
|
+
* Main Account type
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateChartOfAccounts
|
|
32
|
+
*/
|
|
33
|
+
category: string;
|
|
34
|
+
/**
|
|
35
|
+
* Name of Account
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateChartOfAccounts
|
|
38
|
+
*/
|
|
39
|
+
accountName: string;
|
|
40
|
+
/**
|
|
41
|
+
* Code identifying the Account
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateChartOfAccounts
|
|
44
|
+
*/
|
|
45
|
+
accountNumber: string;
|
|
46
|
+
/**
|
|
47
|
+
* Sub-Account type
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateChartOfAccounts
|
|
50
|
+
*/
|
|
51
|
+
subAccount?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CreateChartOfAccounts interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfCreateChartOfAccounts(value: object): value is CreateChartOfAccounts {
|
|
58
|
+
if (!('defaultValue' in value) || value['defaultValue'] === undefined) return false;
|
|
59
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
60
|
+
if (!('accountName' in value) || value['accountName'] === undefined) return false;
|
|
61
|
+
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CreateChartOfAccountsFromJSON(json: any): CreateChartOfAccounts {
|
|
66
|
+
return CreateChartOfAccountsFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function CreateChartOfAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChartOfAccounts {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'defaultValue': json['defaultValue'],
|
|
76
|
+
'category': json['category'],
|
|
77
|
+
'accountName': json['accountName'],
|
|
78
|
+
'accountNumber': json['accountNumber'],
|
|
79
|
+
'subAccount': json['subAccount'] == null ? undefined : json['subAccount'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CreateChartOfAccountsToJSON(json: any): CreateChartOfAccounts {
|
|
84
|
+
return CreateChartOfAccountsToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function CreateChartOfAccountsToJSONTyped(value?: CreateChartOfAccounts | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'defaultValue': value['defaultValue'],
|
|
95
|
+
'category': value['category'],
|
|
96
|
+
'accountName': value['accountName'],
|
|
97
|
+
'accountNumber': value['accountNumber'],
|
|
98
|
+
'subAccount': value['subAccount'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ConfigurationSettingType } from './configuration-setting-type';
|
|
17
|
+
import {
|
|
18
|
+
ConfigurationSettingTypeFromJSON,
|
|
19
|
+
ConfigurationSettingTypeFromJSONTyped,
|
|
20
|
+
ConfigurationSettingTypeToJSON,
|
|
21
|
+
ConfigurationSettingTypeToJSONTyped,
|
|
22
|
+
} from './configuration-setting-type';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateConfigurationSetting
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateConfigurationSetting {
|
|
30
|
+
/**
|
|
31
|
+
* Name of setting
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateConfigurationSetting
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Description of setting
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateConfigurationSetting
|
|
40
|
+
*/
|
|
41
|
+
description: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ConfigurationSettingType}
|
|
45
|
+
* @memberof CreateConfigurationSetting
|
|
46
|
+
*/
|
|
47
|
+
type: ConfigurationSettingType;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateConfigurationSetting
|
|
52
|
+
*/
|
|
53
|
+
value: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the CreateConfigurationSetting interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfCreateConfigurationSetting(value: object): value is CreateConfigurationSetting {
|
|
62
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
63
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
64
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
65
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function CreateConfigurationSettingFromJSON(json: any): CreateConfigurationSetting {
|
|
70
|
+
return CreateConfigurationSettingFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function CreateConfigurationSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateConfigurationSetting {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'name': json['name'],
|
|
80
|
+
'description': json['description'],
|
|
81
|
+
'type': ConfigurationSettingTypeFromJSON(json['type']),
|
|
82
|
+
'value': json['value'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CreateConfigurationSettingToJSON(json: any): CreateConfigurationSetting {
|
|
87
|
+
return CreateConfigurationSettingToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function CreateConfigurationSettingToJSONTyped(value?: CreateConfigurationSetting | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'name': value['name'],
|
|
98
|
+
'description': value['description'],
|
|
99
|
+
'type': ConfigurationSettingTypeToJSON(value['type']),
|
|
100
|
+
'value': value['value'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -13,26 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { CreateSubscriptionPlan } from './create-subscription-plan';
|
|
17
|
-
import {
|
|
18
|
-
CreateSubscriptionPlanFromJSON,
|
|
19
|
-
CreateSubscriptionPlanFromJSONTyped,
|
|
20
|
-
CreateSubscriptionPlanToJSON,
|
|
21
|
-
CreateSubscriptionPlanToJSONTyped,
|
|
22
|
-
} from './create-subscription-plan';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
27
19
|
* @interface CreateSubscription
|
|
28
20
|
*/
|
|
29
21
|
export interface CreateSubscription {
|
|
30
|
-
/**
|
|
31
|
-
* Asset id associated with subscription
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreateSubscription
|
|
34
|
-
*/
|
|
35
|
-
assetId: string;
|
|
36
22
|
/**
|
|
37
23
|
* Status of subscription contract
|
|
38
24
|
* @type {string}
|
|
@@ -57,31 +43,23 @@ export interface CreateSubscription {
|
|
|
57
43
|
* @memberof CreateSubscription
|
|
58
44
|
*/
|
|
59
45
|
billingStartDate: string;
|
|
60
|
-
/**
|
|
61
|
-
* separate invoice generated
|
|
62
|
-
* @type {boolean}
|
|
63
|
-
* @memberof CreateSubscription
|
|
64
|
-
*/
|
|
65
|
-
separateInvoice: boolean;
|
|
66
46
|
/**
|
|
67
47
|
* Subscription plan details
|
|
68
|
-
* @type {Array<
|
|
48
|
+
* @type {Array<string>}
|
|
69
49
|
* @memberof CreateSubscription
|
|
70
50
|
*/
|
|
71
|
-
|
|
51
|
+
planIds: Array<string>;
|
|
72
52
|
}
|
|
73
53
|
|
|
74
54
|
/**
|
|
75
55
|
* Check if a given object implements the CreateSubscription interface.
|
|
76
56
|
*/
|
|
77
57
|
export function instanceOfCreateSubscription(value: object): value is CreateSubscription {
|
|
78
|
-
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
79
58
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
80
59
|
if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined) return false;
|
|
81
60
|
if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined) return false;
|
|
82
61
|
if (!('billingStartDate' in value) || value['billingStartDate'] === undefined) return false;
|
|
83
|
-
if (!('
|
|
84
|
-
if (!('plans' in value) || value['plans'] === undefined) return false;
|
|
62
|
+
if (!('planIds' in value) || value['planIds'] === undefined) return false;
|
|
85
63
|
return true;
|
|
86
64
|
}
|
|
87
65
|
|
|
@@ -95,13 +73,11 @@ export function CreateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
95
73
|
}
|
|
96
74
|
return {
|
|
97
75
|
|
|
98
|
-
'assetId': json['assetId'],
|
|
99
76
|
'status': json['status'],
|
|
100
77
|
'serviceStartDate': json['serviceStartDate'],
|
|
101
78
|
'contractEffectiveDate': json['contractEffectiveDate'],
|
|
102
79
|
'billingStartDate': json['billingStartDate'],
|
|
103
|
-
'
|
|
104
|
-
'plans': ((json['plans'] as Array<any>).map(CreateSubscriptionPlanFromJSON)),
|
|
80
|
+
'planIds': json['planIds'],
|
|
105
81
|
};
|
|
106
82
|
}
|
|
107
83
|
|
|
@@ -116,13 +92,11 @@ export function CreateSubscriptionToJSONTyped(value?: CreateSubscription | null,
|
|
|
116
92
|
|
|
117
93
|
return {
|
|
118
94
|
|
|
119
|
-
'assetId': value['assetId'],
|
|
120
95
|
'status': value['status'],
|
|
121
96
|
'serviceStartDate': value['serviceStartDate'],
|
|
122
97
|
'contractEffectiveDate': value['contractEffectiveDate'],
|
|
123
98
|
'billingStartDate': value['billingStartDate'],
|
|
124
|
-
'
|
|
125
|
-
'plans': ((value['plans'] as Array<any>).map(CreateSubscriptionPlanToJSON)),
|
|
99
|
+
'planIds': value['planIds'],
|
|
126
100
|
};
|
|
127
101
|
}
|
|
128
102
|
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
PageMetaToJSON,
|
|
21
21
|
PageMetaToJSONTyped,
|
|
22
22
|
} from './page-meta';
|
|
23
|
-
import type {
|
|
23
|
+
import type { ChartOfAccountsResponse } from './chart-of-accounts-response';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './chart-of-
|
|
25
|
+
ChartOfAccountsResponseFromJSON,
|
|
26
|
+
ChartOfAccountsResponseFromJSONTyped,
|
|
27
|
+
ChartOfAccountsResponseToJSON,
|
|
28
|
+
ChartOfAccountsResponseToJSONTyped,
|
|
29
|
+
} from './chart-of-accounts-response';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -42,10 +42,10 @@ export interface GetChartOfAccounts200Response {
|
|
|
42
42
|
pageMeta: PageMeta;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<ChartOfAccountsResponse>}
|
|
46
46
|
* @memberof GetChartOfAccounts200Response
|
|
47
47
|
*/
|
|
48
|
-
results?: Array<
|
|
48
|
+
results?: Array<ChartOfAccountsResponse>;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -67,7 +67,7 @@ export function GetChartOfAccounts200ResponseFromJSONTyped(json: any, ignoreDisc
|
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
69
|
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
-
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ChartOfAccountsResponseFromJSON)),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -83,7 +83,7 @@ export function GetChartOfAccounts200ResponseToJSONTyped(value?: GetChartOfAccou
|
|
|
83
83
|
return {
|
|
84
84
|
|
|
85
85
|
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
-
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ChartOfAccountsResponseToJSON)),
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ConfigurationSettingResponse } from './configuration-setting-response';
|
|
17
|
+
import {
|
|
18
|
+
ConfigurationSettingResponseFromJSON,
|
|
19
|
+
ConfigurationSettingResponseFromJSONTyped,
|
|
20
|
+
ConfigurationSettingResponseToJSON,
|
|
21
|
+
ConfigurationSettingResponseToJSONTyped,
|
|
22
|
+
} from './configuration-setting-response';
|
|
23
|
+
import type { PageMeta } from './page-meta';
|
|
24
|
+
import {
|
|
25
|
+
PageMetaFromJSON,
|
|
26
|
+
PageMetaFromJSONTyped,
|
|
27
|
+
PageMetaToJSON,
|
|
28
|
+
PageMetaToJSONTyped,
|
|
29
|
+
} from './page-meta';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetConfigurationSettings200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetConfigurationSettings200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof GetConfigurationSettings200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ConfigurationSettingResponse>}
|
|
46
|
+
* @memberof GetConfigurationSettings200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<ConfigurationSettingResponse>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetConfigurationSettings200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetConfigurationSettings200Response(value: object): value is GetConfigurationSettings200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetConfigurationSettings200ResponseFromJSON(json: any): GetConfigurationSettings200Response {
|
|
60
|
+
return GetConfigurationSettings200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetConfigurationSettings200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConfigurationSettings200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ConfigurationSettingResponseFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetConfigurationSettings200ResponseToJSON(json: any): GetConfigurationSettings200Response {
|
|
75
|
+
return GetConfigurationSettings200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetConfigurationSettings200ResponseToJSONTyped(value?: GetConfigurationSettings200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ConfigurationSettingResponseToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|