@managespace/sdk 0.0.25 → 0.0.27
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 +5 -11
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +16 -18
- package/dist/extensibility/functions/project/managespace.d.ts +2 -2
- package/dist/extensibility/functions/project/managespace.d.ts.map +1 -1
- package/dist/extensibility/functions/project/managespace.js +1 -0
- package/dist/generated/apis/default-api.d.ts +3 -13
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +1 -35
- package/dist/generated/models/custom-create-customer.d.ts +15 -21
- package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-create-customer.js +5 -9
- package/dist/generated/models/customer-response.d.ts +0 -84
- package/dist/generated/models/customer-response.d.ts.map +1 -1
- package/dist/generated/models/customer-response.js +0 -56
- package/dist/generated/models/index.d.ts +1 -4
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -4
- package/dist/generated/models/update-customer.d.ts +0 -12
- package/dist/generated/models/update-customer.d.ts.map +1 -1
- package/dist/generated/models/update-customer.js +0 -4
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +25 -21
- package/src/extensibility/functions/project/managespace.ts +3 -2
- package/src/generated/.openapi-generator/FILES +1 -4
- package/src/generated/apis/default-api.ts +3 -63
- package/src/generated/models/custom-create-customer.ts +24 -33
- package/src/generated/models/customer-response.ts +0 -126
- package/src/generated/models/index.ts +1 -4
- package/src/generated/models/update-customer.ts +0 -16
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { CustomCreateContact } from './custom-create-contact';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './custom-create-contact
|
|
18
|
+
CustomCreateContactFromJSON,
|
|
19
|
+
CustomCreateContactFromJSONTyped,
|
|
20
|
+
CustomCreateContactToJSON,
|
|
21
|
+
CustomCreateContactToJSONTyped,
|
|
22
|
+
} from './custom-create-contact';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -39,18 +39,24 @@ export interface CustomCreateCustomer {
|
|
|
39
39
|
* @memberof CustomCreateCustomer
|
|
40
40
|
*/
|
|
41
41
|
description?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
* Customer status
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CustomCreateCustomer
|
|
46
|
-
*/
|
|
47
|
-
status?: string;
|
|
48
42
|
/**
|
|
49
43
|
* Balance
|
|
50
44
|
* @type {number}
|
|
51
45
|
* @memberof CustomCreateCustomer
|
|
52
46
|
*/
|
|
53
47
|
balance?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Contact information.
|
|
50
|
+
* @type {Array<CustomCreateContact>}
|
|
51
|
+
* @memberof CustomCreateCustomer
|
|
52
|
+
*/
|
|
53
|
+
contacts: Array<CustomCreateContact>;
|
|
54
|
+
/**
|
|
55
|
+
* Tennant ID.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CustomCreateCustomer
|
|
58
|
+
*/
|
|
59
|
+
tenantId?: string;
|
|
54
60
|
/**
|
|
55
61
|
* autoPay
|
|
56
62
|
* @type {boolean}
|
|
@@ -122,25 +128,13 @@ export interface CustomCreateCustomer {
|
|
|
122
128
|
* @type {string}
|
|
123
129
|
* @memberof CustomCreateCustomer
|
|
124
130
|
*/
|
|
125
|
-
billingContactId?: string
|
|
131
|
+
billingContactId?: string;
|
|
126
132
|
/**
|
|
127
133
|
* shipping contact ID
|
|
128
134
|
* @type {string}
|
|
129
135
|
* @memberof CustomCreateCustomer
|
|
130
136
|
*/
|
|
131
|
-
shippingContactId?: string
|
|
132
|
-
/**
|
|
133
|
-
* Contact information.
|
|
134
|
-
* @type {Array<CustomCreateContactWithCustomer>}
|
|
135
|
-
* @memberof CustomCreateCustomer
|
|
136
|
-
*/
|
|
137
|
-
contacts: Array<CustomCreateContactWithCustomer>;
|
|
138
|
-
/**
|
|
139
|
-
* Tennant ID.
|
|
140
|
-
* @type {string}
|
|
141
|
-
* @memberof CustomCreateCustomer
|
|
142
|
-
*/
|
|
143
|
-
tenantId: string;
|
|
137
|
+
shippingContactId?: string;
|
|
144
138
|
}
|
|
145
139
|
|
|
146
140
|
/**
|
|
@@ -149,7 +143,6 @@ export interface CustomCreateCustomer {
|
|
|
149
143
|
export function instanceOfCustomCreateCustomer(value: object): value is CustomCreateCustomer {
|
|
150
144
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
151
145
|
if (!('contacts' in value) || value['contacts'] === undefined) return false;
|
|
152
|
-
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
153
146
|
return true;
|
|
154
147
|
}
|
|
155
148
|
|
|
@@ -165,8 +158,9 @@ export function CustomCreateCustomerFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
165
158
|
|
|
166
159
|
'name': json['name'],
|
|
167
160
|
'description': json['description'] == null ? undefined : json['description'],
|
|
168
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
169
161
|
'balance': json['balance'] == null ? undefined : json['balance'],
|
|
162
|
+
'contacts': ((json['contacts'] as Array<any>).map(CustomCreateContactFromJSON)),
|
|
163
|
+
'tenantId': json['tenantId'] == null ? undefined : json['tenantId'],
|
|
170
164
|
'autoPay': json['autoPay'] == null ? undefined : json['autoPay'],
|
|
171
165
|
'billingCycleDay': json['billingCycleDay'] == null ? undefined : json['billingCycleDay'],
|
|
172
166
|
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
@@ -180,8 +174,6 @@ export function CustomCreateCustomerFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
180
174
|
'creditEnabled': json['creditEnabled'] == null ? undefined : json['creditEnabled'],
|
|
181
175
|
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
182
176
|
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
183
|
-
'contacts': ((json['contacts'] as Array<any>).map(CustomCreateContactWithCustomerFromJSON)),
|
|
184
|
-
'tenantId': json['tenantId'],
|
|
185
177
|
};
|
|
186
178
|
}
|
|
187
179
|
|
|
@@ -198,8 +190,9 @@ export function CustomCreateCustomerToJSONTyped(value?: CustomCreateCustomer | n
|
|
|
198
190
|
|
|
199
191
|
'name': value['name'],
|
|
200
192
|
'description': value['description'],
|
|
201
|
-
'status': value['status'],
|
|
202
193
|
'balance': value['balance'],
|
|
194
|
+
'contacts': ((value['contacts'] as Array<any>).map(CustomCreateContactToJSON)),
|
|
195
|
+
'tenantId': value['tenantId'],
|
|
203
196
|
'autoPay': value['autoPay'],
|
|
204
197
|
'billingCycleDay': value['billingCycleDay'],
|
|
205
198
|
'currency': value['currency'],
|
|
@@ -213,8 +206,6 @@ export function CustomCreateCustomerToJSONTyped(value?: CustomCreateCustomer | n
|
|
|
213
206
|
'creditEnabled': value['creditEnabled'],
|
|
214
207
|
'billingContactId': value['billingContactId'],
|
|
215
208
|
'shippingContactId': value['shippingContactId'],
|
|
216
|
-
'contacts': ((value['contacts'] as Array<any>).map(CustomCreateContactWithCustomerToJSON)),
|
|
217
|
-
'tenantId': value['tenantId'],
|
|
218
209
|
};
|
|
219
210
|
}
|
|
220
211
|
|
|
@@ -66,12 +66,6 @@ export interface CustomerResponse {
|
|
|
66
66
|
* @memberof CustomerResponse
|
|
67
67
|
*/
|
|
68
68
|
description: string | null;
|
|
69
|
-
/**
|
|
70
|
-
* Customer status
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof CustomerResponse
|
|
73
|
-
*/
|
|
74
|
-
status: string;
|
|
75
69
|
/**
|
|
76
70
|
* When the record was created
|
|
77
71
|
* @type {Date}
|
|
@@ -120,84 +114,6 @@ export interface CustomerResponse {
|
|
|
120
114
|
* @memberof CustomerResponse
|
|
121
115
|
*/
|
|
122
116
|
balance: number;
|
|
123
|
-
/**
|
|
124
|
-
* autoPay
|
|
125
|
-
* @type {boolean}
|
|
126
|
-
* @memberof CustomerResponse
|
|
127
|
-
*/
|
|
128
|
-
autoPay: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Billing cycle day
|
|
131
|
-
* @type {number}
|
|
132
|
-
* @memberof CustomerResponse
|
|
133
|
-
*/
|
|
134
|
-
billingCycleDay: number;
|
|
135
|
-
/**
|
|
136
|
-
* Currency
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @memberof CustomerResponse
|
|
139
|
-
*/
|
|
140
|
-
currency: string;
|
|
141
|
-
/**
|
|
142
|
-
* Payment gateway
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof CustomerResponse
|
|
145
|
-
*/
|
|
146
|
-
paymentGateway: string;
|
|
147
|
-
/**
|
|
148
|
-
* Edit auto pay
|
|
149
|
-
* @type {boolean}
|
|
150
|
-
* @memberof CustomerResponse
|
|
151
|
-
*/
|
|
152
|
-
editAutoPay: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Payment terms
|
|
155
|
-
* @type {string}
|
|
156
|
-
* @memberof CustomerResponse
|
|
157
|
-
*/
|
|
158
|
-
paymentTerms: string;
|
|
159
|
-
/**
|
|
160
|
-
* Tax exempt
|
|
161
|
-
* @type {boolean}
|
|
162
|
-
* @memberof CustomerResponse
|
|
163
|
-
*/
|
|
164
|
-
taxExempt: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* ACH Enabled
|
|
167
|
-
* @type {boolean}
|
|
168
|
-
* @memberof CustomerResponse
|
|
169
|
-
*/
|
|
170
|
-
achEnabled: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Email Preference
|
|
173
|
-
* @type {boolean}
|
|
174
|
-
* @memberof CustomerResponse
|
|
175
|
-
*/
|
|
176
|
-
emailPreference: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* Print Preference
|
|
179
|
-
* @type {boolean}
|
|
180
|
-
* @memberof CustomerResponse
|
|
181
|
-
*/
|
|
182
|
-
printPreference: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Credit Enabled
|
|
185
|
-
* @type {boolean}
|
|
186
|
-
* @memberof CustomerResponse
|
|
187
|
-
*/
|
|
188
|
-
creditEnabled: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* billing contact ID
|
|
191
|
-
* @type {string}
|
|
192
|
-
* @memberof CustomerResponse
|
|
193
|
-
*/
|
|
194
|
-
billingContactId: string | null;
|
|
195
|
-
/**
|
|
196
|
-
* shipping contact ID
|
|
197
|
-
* @type {string}
|
|
198
|
-
* @memberof CustomerResponse
|
|
199
|
-
*/
|
|
200
|
-
shippingContactId: string | null;
|
|
201
117
|
/**
|
|
202
118
|
*
|
|
203
119
|
* @type {Array<CommunicationResponse>}
|
|
@@ -213,25 +129,11 @@ export function instanceOfCustomerResponse(value: object): value is CustomerResp
|
|
|
213
129
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
214
130
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
215
131
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
216
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
217
132
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
218
133
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
219
134
|
if (!('orgId' in value) || value['orgId'] === undefined) return false;
|
|
220
135
|
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
221
136
|
if (!('balance' in value) || value['balance'] === undefined) return false;
|
|
222
|
-
if (!('autoPay' in value) || value['autoPay'] === undefined) return false;
|
|
223
|
-
if (!('billingCycleDay' in value) || value['billingCycleDay'] === undefined) return false;
|
|
224
|
-
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
225
|
-
if (!('paymentGateway' in value) || value['paymentGateway'] === undefined) return false;
|
|
226
|
-
if (!('editAutoPay' in value) || value['editAutoPay'] === undefined) return false;
|
|
227
|
-
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
228
|
-
if (!('taxExempt' in value) || value['taxExempt'] === undefined) return false;
|
|
229
|
-
if (!('achEnabled' in value) || value['achEnabled'] === undefined) return false;
|
|
230
|
-
if (!('emailPreference' in value) || value['emailPreference'] === undefined) return false;
|
|
231
|
-
if (!('printPreference' in value) || value['printPreference'] === undefined) return false;
|
|
232
|
-
if (!('creditEnabled' in value) || value['creditEnabled'] === undefined) return false;
|
|
233
|
-
if (!('billingContactId' in value) || value['billingContactId'] === undefined) return false;
|
|
234
|
-
if (!('shippingContactId' in value) || value['shippingContactId'] === undefined) return false;
|
|
235
137
|
return true;
|
|
236
138
|
}
|
|
237
139
|
|
|
@@ -248,7 +150,6 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
248
150
|
'id': json['id'],
|
|
249
151
|
'name': json['name'],
|
|
250
152
|
'description': json['description'],
|
|
251
|
-
'status': json['status'],
|
|
252
153
|
'createdAt': (new Date(json['createdAt'])),
|
|
253
154
|
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
254
155
|
'org': json['org'] == null ? undefined : OrgResponseFromJSON(json['org']),
|
|
@@ -257,19 +158,6 @@ export function CustomerResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
257
158
|
'note': json['note'] == null ? undefined : ((json['note'] as Array<any>).map(NoteResponseFromJSON)),
|
|
258
159
|
'externalId': json['externalId'],
|
|
259
160
|
'balance': json['balance'],
|
|
260
|
-
'autoPay': json['autoPay'],
|
|
261
|
-
'billingCycleDay': json['billingCycleDay'],
|
|
262
|
-
'currency': json['currency'],
|
|
263
|
-
'paymentGateway': json['paymentGateway'],
|
|
264
|
-
'editAutoPay': json['editAutoPay'],
|
|
265
|
-
'paymentTerms': json['paymentTerms'],
|
|
266
|
-
'taxExempt': json['taxExempt'],
|
|
267
|
-
'achEnabled': json['achEnabled'],
|
|
268
|
-
'emailPreference': json['emailPreference'],
|
|
269
|
-
'printPreference': json['printPreference'],
|
|
270
|
-
'creditEnabled': json['creditEnabled'],
|
|
271
|
-
'billingContactId': json['billingContactId'],
|
|
272
|
-
'shippingContactId': json['shippingContactId'],
|
|
273
161
|
'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
|
|
274
162
|
};
|
|
275
163
|
}
|
|
@@ -288,7 +176,6 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
|
|
|
288
176
|
'id': value['id'],
|
|
289
177
|
'name': value['name'],
|
|
290
178
|
'description': value['description'],
|
|
291
|
-
'status': value['status'],
|
|
292
179
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
293
180
|
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
294
181
|
'org': OrgResponseToJSON(value['org']),
|
|
@@ -297,19 +184,6 @@ export function CustomerResponseToJSONTyped(value?: CustomerResponse | null, ign
|
|
|
297
184
|
'note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteResponseToJSON)),
|
|
298
185
|
'externalId': value['externalId'],
|
|
299
186
|
'balance': value['balance'],
|
|
300
|
-
'autoPay': value['autoPay'],
|
|
301
|
-
'billingCycleDay': value['billingCycleDay'],
|
|
302
|
-
'currency': value['currency'],
|
|
303
|
-
'paymentGateway': value['paymentGateway'],
|
|
304
|
-
'editAutoPay': value['editAutoPay'],
|
|
305
|
-
'paymentTerms': value['paymentTerms'],
|
|
306
|
-
'taxExempt': value['taxExempt'],
|
|
307
|
-
'achEnabled': value['achEnabled'],
|
|
308
|
-
'emailPreference': value['emailPreference'],
|
|
309
|
-
'printPreference': value['printPreference'],
|
|
310
|
-
'creditEnabled': value['creditEnabled'],
|
|
311
|
-
'billingContactId': value['billingContactId'],
|
|
312
|
-
'shippingContactId': value['shippingContactId'],
|
|
313
187
|
'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
|
|
314
188
|
};
|
|
315
189
|
}
|
|
@@ -30,7 +30,6 @@ export * from './create-billing-run';
|
|
|
30
30
|
export * from './create-calendar';
|
|
31
31
|
export * from './create-checklist';
|
|
32
32
|
export * from './create-communication';
|
|
33
|
-
export * from './create-contact';
|
|
34
33
|
export * from './create-document';
|
|
35
34
|
export * from './create-instances';
|
|
36
35
|
export * from './create-lease-status';
|
|
@@ -54,13 +53,11 @@ export * from './create-subscription-plan';
|
|
|
54
53
|
export * from './create-task';
|
|
55
54
|
export * from './create-task-template';
|
|
56
55
|
export * from './create-template';
|
|
57
|
-
export * from './custom-add-customer-contact';
|
|
58
56
|
export * from './custom-chart-of-account';
|
|
59
57
|
export * from './custom-chart-of-accounts';
|
|
60
|
-
export * from './custom-create-contact
|
|
58
|
+
export * from './custom-create-contact';
|
|
61
59
|
export * from './custom-create-customer';
|
|
62
60
|
export * from './custom-create-user';
|
|
63
|
-
export * from './custom-customer-response';
|
|
64
61
|
export * from './custom-update-task-template';
|
|
65
62
|
export * from './customer-response';
|
|
66
63
|
export * from './document-signed';
|
|
@@ -31,18 +31,6 @@ export interface UpdateCustomer {
|
|
|
31
31
|
* @memberof UpdateCustomer
|
|
32
32
|
*/
|
|
33
33
|
description?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
* billing contact ID
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UpdateCustomer
|
|
38
|
-
*/
|
|
39
|
-
billingContactId?: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* shipping contact ID
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof UpdateCustomer
|
|
44
|
-
*/
|
|
45
|
-
shippingContactId?: string | null;
|
|
46
34
|
}
|
|
47
35
|
|
|
48
36
|
/**
|
|
@@ -64,8 +52,6 @@ export function UpdateCustomerFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
64
52
|
|
|
65
53
|
'name': json['name'] == null ? undefined : json['name'],
|
|
66
54
|
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
-
'billingContactId': json['billingContactId'] == null ? undefined : json['billingContactId'],
|
|
68
|
-
'shippingContactId': json['shippingContactId'] == null ? undefined : json['shippingContactId'],
|
|
69
55
|
};
|
|
70
56
|
}
|
|
71
57
|
|
|
@@ -82,8 +68,6 @@ export function UpdateCustomerToJSONTyped(value?: UpdateCustomer | null, ignoreD
|
|
|
82
68
|
|
|
83
69
|
'name': value['name'],
|
|
84
70
|
'description': value['description'],
|
|
85
|
-
'billingContactId': value['billingContactId'],
|
|
86
|
-
'shippingContactId': value['shippingContactId'],
|
|
87
71
|
};
|
|
88
72
|
}
|
|
89
73
|
|