@managespace/sdk 0.1.197-melissa.dev → 0.1.199-melissa.dev
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.map +1 -1
- package/dist/generated/apis/default-api.d.ts +4 -111
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +13 -366
- package/dist/generated/models/billing-run-filter-condition.d.ts +6 -0
- package/dist/generated/models/billing-run-filter-condition.d.ts.map +1 -1
- package/dist/generated/models/billing-run-filter-condition.js +2 -0
- package/dist/generated/models/custom-create-customer.d.ts +15 -3
- package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-create-customer.js +6 -4
- package/dist/generated/models/custom-update-customer.d.ts +15 -9
- package/dist/generated/models/custom-update-customer.d.ts.map +1 -1
- package/dist/generated/models/custom-update-customer.js +6 -4
- package/dist/generated/models/customer.d.ts +9 -3
- package/dist/generated/models/customer.d.ts.map +1 -1
- package/dist/generated/models/customer.js +7 -3
- package/dist/generated/models/index.d.ts +0 -8
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +0 -8
- package/package.deploy.json +2 -2
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +1 -3
- package/src/generated/.openapi-generator/FILES +0 -8
- package/src/generated/apis/default-api.ts +25 -580
- package/src/generated/models/billing-run-filter-condition.ts +8 -0
- package/src/generated/models/custom-create-customer.ts +21 -6
- package/src/generated/models/custom-update-customer.ts +21 -13
- package/src/generated/models/customer.ts +15 -6
- package/src/generated/models/index.ts +0 -8
|
@@ -27,8 +27,6 @@ import type {
|
|
|
27
27
|
AssetReservations,
|
|
28
28
|
Assets,
|
|
29
29
|
BillingRun,
|
|
30
|
-
Calendar,
|
|
31
|
-
CalendarEvents,
|
|
32
30
|
CancelAssetReservations,
|
|
33
31
|
CancelSubscription,
|
|
34
32
|
Charge,
|
|
@@ -37,7 +35,6 @@ import type {
|
|
|
37
35
|
Communication,
|
|
38
36
|
CommunicationType,
|
|
39
37
|
ComplexQuery,
|
|
40
|
-
ConfigurationSetting,
|
|
41
38
|
Contact,
|
|
42
39
|
CreateAssetCategory,
|
|
43
40
|
CreateAssetCustom,
|
|
@@ -45,12 +42,9 @@ import type {
|
|
|
45
42
|
CreateAssetReservation,
|
|
46
43
|
CreateAssets,
|
|
47
44
|
CreateBillingRun,
|
|
48
|
-
CreateCalendar,
|
|
49
45
|
CreateCharge,
|
|
50
46
|
CreateChartOfAccounts,
|
|
51
47
|
CreateCommunication,
|
|
52
|
-
CreateConfigurationSetting,
|
|
53
|
-
CreateConfigurationSettings,
|
|
54
48
|
CreateCredit,
|
|
55
49
|
CreateCustomerPayment,
|
|
56
50
|
CreateCustomerStatus,
|
|
@@ -58,7 +52,6 @@ import type {
|
|
|
58
52
|
CreateInstances,
|
|
59
53
|
CreateNote,
|
|
60
54
|
CreateNotes,
|
|
61
|
-
CreateNotification,
|
|
62
55
|
CreateOrder,
|
|
63
56
|
CreateOrg,
|
|
64
57
|
CreatePayment,
|
|
@@ -105,7 +98,6 @@ import type {
|
|
|
105
98
|
GetAssetFeatures200Response,
|
|
106
99
|
GetAssets200Response,
|
|
107
100
|
GetBillingRuns200Response,
|
|
108
|
-
GetCalendars200Response,
|
|
109
101
|
GetCharges200Response,
|
|
110
102
|
GetChartOfAccounts200Response,
|
|
111
103
|
GetChecklists200Response,
|
|
@@ -122,7 +114,6 @@ import type {
|
|
|
122
114
|
GetInvoicesQuery,
|
|
123
115
|
GetJournalEntries200Response,
|
|
124
116
|
GetNotes200Response,
|
|
125
|
-
GetNotifications200Response,
|
|
126
117
|
GetOrders200Response,
|
|
127
118
|
GetOrdersQuery,
|
|
128
119
|
GetPaymentMethods200Response,
|
|
@@ -159,7 +150,6 @@ import type {
|
|
|
159
150
|
MapFeature,
|
|
160
151
|
MergeAssetsCustom,
|
|
161
152
|
Note,
|
|
162
|
-
Notification,
|
|
163
153
|
OccupancyStatisticsReportFilters,
|
|
164
154
|
Order,
|
|
165
155
|
Org,
|
|
@@ -208,7 +198,6 @@ import type {
|
|
|
208
198
|
UpdateAssetFeature,
|
|
209
199
|
UpdateAssetReservation,
|
|
210
200
|
UpdateAssetStockCount,
|
|
211
|
-
UpdateConfigurationSetting,
|
|
212
201
|
UpdateCustomerStatus,
|
|
213
202
|
UpdateMapFeature,
|
|
214
203
|
UpdateNote,
|
|
@@ -256,10 +245,6 @@ import {
|
|
|
256
245
|
AssetsToJSON,
|
|
257
246
|
BillingRunFromJSON,
|
|
258
247
|
BillingRunToJSON,
|
|
259
|
-
CalendarFromJSON,
|
|
260
|
-
CalendarToJSON,
|
|
261
|
-
CalendarEventsFromJSON,
|
|
262
|
-
CalendarEventsToJSON,
|
|
263
248
|
CancelAssetReservationsFromJSON,
|
|
264
249
|
CancelAssetReservationsToJSON,
|
|
265
250
|
CancelSubscriptionFromJSON,
|
|
@@ -276,8 +261,6 @@ import {
|
|
|
276
261
|
CommunicationTypeToJSON,
|
|
277
262
|
ComplexQueryFromJSON,
|
|
278
263
|
ComplexQueryToJSON,
|
|
279
|
-
ConfigurationSettingFromJSON,
|
|
280
|
-
ConfigurationSettingToJSON,
|
|
281
264
|
ContactFromJSON,
|
|
282
265
|
ContactToJSON,
|
|
283
266
|
CreateAssetCategoryFromJSON,
|
|
@@ -292,18 +275,12 @@ import {
|
|
|
292
275
|
CreateAssetsToJSON,
|
|
293
276
|
CreateBillingRunFromJSON,
|
|
294
277
|
CreateBillingRunToJSON,
|
|
295
|
-
CreateCalendarFromJSON,
|
|
296
|
-
CreateCalendarToJSON,
|
|
297
278
|
CreateChargeFromJSON,
|
|
298
279
|
CreateChargeToJSON,
|
|
299
280
|
CreateChartOfAccountsFromJSON,
|
|
300
281
|
CreateChartOfAccountsToJSON,
|
|
301
282
|
CreateCommunicationFromJSON,
|
|
302
283
|
CreateCommunicationToJSON,
|
|
303
|
-
CreateConfigurationSettingFromJSON,
|
|
304
|
-
CreateConfigurationSettingToJSON,
|
|
305
|
-
CreateConfigurationSettingsFromJSON,
|
|
306
|
-
CreateConfigurationSettingsToJSON,
|
|
307
284
|
CreateCreditFromJSON,
|
|
308
285
|
CreateCreditToJSON,
|
|
309
286
|
CreateCustomerPaymentFromJSON,
|
|
@@ -318,8 +295,6 @@ import {
|
|
|
318
295
|
CreateNoteToJSON,
|
|
319
296
|
CreateNotesFromJSON,
|
|
320
297
|
CreateNotesToJSON,
|
|
321
|
-
CreateNotificationFromJSON,
|
|
322
|
-
CreateNotificationToJSON,
|
|
323
298
|
CreateOrderFromJSON,
|
|
324
299
|
CreateOrderToJSON,
|
|
325
300
|
CreateOrgFromJSON,
|
|
@@ -412,8 +387,6 @@ import {
|
|
|
412
387
|
GetAssets200ResponseToJSON,
|
|
413
388
|
GetBillingRuns200ResponseFromJSON,
|
|
414
389
|
GetBillingRuns200ResponseToJSON,
|
|
415
|
-
GetCalendars200ResponseFromJSON,
|
|
416
|
-
GetCalendars200ResponseToJSON,
|
|
417
390
|
GetCharges200ResponseFromJSON,
|
|
418
391
|
GetCharges200ResponseToJSON,
|
|
419
392
|
GetChartOfAccounts200ResponseFromJSON,
|
|
@@ -446,8 +419,6 @@ import {
|
|
|
446
419
|
GetJournalEntries200ResponseToJSON,
|
|
447
420
|
GetNotes200ResponseFromJSON,
|
|
448
421
|
GetNotes200ResponseToJSON,
|
|
449
|
-
GetNotifications200ResponseFromJSON,
|
|
450
|
-
GetNotifications200ResponseToJSON,
|
|
451
422
|
GetOrders200ResponseFromJSON,
|
|
452
423
|
GetOrders200ResponseToJSON,
|
|
453
424
|
GetOrdersQueryFromJSON,
|
|
@@ -520,8 +491,6 @@ import {
|
|
|
520
491
|
MergeAssetsCustomToJSON,
|
|
521
492
|
NoteFromJSON,
|
|
522
493
|
NoteToJSON,
|
|
523
|
-
NotificationFromJSON,
|
|
524
|
-
NotificationToJSON,
|
|
525
494
|
OccupancyStatisticsReportFiltersFromJSON,
|
|
526
495
|
OccupancyStatisticsReportFiltersToJSON,
|
|
527
496
|
OrderFromJSON,
|
|
@@ -618,8 +587,6 @@ import {
|
|
|
618
587
|
UpdateAssetReservationToJSON,
|
|
619
588
|
UpdateAssetStockCountFromJSON,
|
|
620
589
|
UpdateAssetStockCountToJSON,
|
|
621
|
-
UpdateConfigurationSettingFromJSON,
|
|
622
|
-
UpdateConfigurationSettingToJSON,
|
|
623
590
|
UpdateCustomerStatusFromJSON,
|
|
624
591
|
UpdateCustomerStatusToJSON,
|
|
625
592
|
UpdateMapFeatureFromJSON,
|
|
@@ -721,11 +688,6 @@ export interface CreateBillingRunRequest {
|
|
|
721
688
|
createBillingRun: CreateBillingRun;
|
|
722
689
|
}
|
|
723
690
|
|
|
724
|
-
export interface CreateCalendarRequest {
|
|
725
|
-
createCalendar: CreateCalendar;
|
|
726
|
-
siteId?: string;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
691
|
export interface CreateChargeRequest {
|
|
730
692
|
planId: string;
|
|
731
693
|
createCharge: CreateCharge;
|
|
@@ -745,14 +707,6 @@ export interface CreateCommunicationRequest {
|
|
|
745
707
|
siteId?: string;
|
|
746
708
|
}
|
|
747
709
|
|
|
748
|
-
export interface CreateConfigurationSettingRequest {
|
|
749
|
-
createConfigurationSetting: CreateConfigurationSetting;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
export interface CreateConfigurationSettingsRequest {
|
|
753
|
-
createConfigurationSettings: CreateConfigurationSettings;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
710
|
export interface CreateContactRequest {
|
|
757
711
|
customerId: string;
|
|
758
712
|
customCreateContact: CustomCreateContact;
|
|
@@ -785,11 +739,6 @@ export interface CreateNotesRequest {
|
|
|
785
739
|
createNotes: CreateNotes;
|
|
786
740
|
}
|
|
787
741
|
|
|
788
|
-
export interface CreateNotificationRequest {
|
|
789
|
-
createNotification: CreateNotification;
|
|
790
|
-
siteId?: string;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
742
|
export interface CreateOrderRequest {
|
|
794
743
|
createOrder: CreateOrder;
|
|
795
744
|
}
|
|
@@ -1075,22 +1024,6 @@ export interface GetBillingRunsRequest {
|
|
|
1075
1024
|
status?: string;
|
|
1076
1025
|
}
|
|
1077
1026
|
|
|
1078
|
-
export interface GetCalendarRequest {
|
|
1079
|
-
calendarId: string;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
export interface GetCalendarEventsRequest {
|
|
1083
|
-
startDate: string;
|
|
1084
|
-
endDate: string;
|
|
1085
|
-
siteId?: string;
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
export interface GetCalendarsRequest {
|
|
1089
|
-
offset?: number;
|
|
1090
|
-
limit?: number;
|
|
1091
|
-
siteId?: string;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
1027
|
export interface GetChargeRequest {
|
|
1095
1028
|
planId: string;
|
|
1096
1029
|
chargeId: string;
|
|
@@ -1140,6 +1073,8 @@ export interface GetCommunicationsRequest {
|
|
|
1140
1073
|
}
|
|
1141
1074
|
|
|
1142
1075
|
export interface GetConfigurationSettingsRequest {
|
|
1076
|
+
authorization: string;
|
|
1077
|
+
xOrgKey: string;
|
|
1143
1078
|
offset?: number;
|
|
1144
1079
|
limit?: number;
|
|
1145
1080
|
}
|
|
@@ -1251,16 +1186,6 @@ export interface GetNotesRequest {
|
|
|
1251
1186
|
metadataValue?: string;
|
|
1252
1187
|
}
|
|
1253
1188
|
|
|
1254
|
-
export interface GetNotificationRequest {
|
|
1255
|
-
notificationId: string;
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
export interface GetNotificationsRequest {
|
|
1259
|
-
offset?: number;
|
|
1260
|
-
limit?: number;
|
|
1261
|
-
siteId?: string;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
1189
|
export interface GetOrderRequest {
|
|
1265
1190
|
orderId: string;
|
|
1266
1191
|
}
|
|
@@ -1590,10 +1515,6 @@ export interface RefundPaymentRequest {
|
|
|
1590
1515
|
refundPayment: RefundPayment;
|
|
1591
1516
|
}
|
|
1592
1517
|
|
|
1593
|
-
export interface ReverseCreditRequest {
|
|
1594
|
-
creditId: string;
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
1518
|
export interface ReverseInvoiceRequest {
|
|
1598
1519
|
invoiceId: string;
|
|
1599
1520
|
reverseInvoice: ReverseInvoice;
|
|
@@ -1673,12 +1594,6 @@ export interface UpdateAssetStockCountRequest {
|
|
|
1673
1594
|
updateAssetStockCount: UpdateAssetStockCount;
|
|
1674
1595
|
}
|
|
1675
1596
|
|
|
1676
|
-
export interface UpdateConfigurationSettingRequest {
|
|
1677
|
-
configurationSettingId: string;
|
|
1678
|
-
updateConfigurationSetting: UpdateConfigurationSetting;
|
|
1679
|
-
siteId?: string;
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
1597
|
export interface UpdateContactRequest {
|
|
1683
1598
|
customerId: string;
|
|
1684
1599
|
contactId: string;
|
|
@@ -2316,52 +2231,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2316
2231
|
return await response.value();
|
|
2317
2232
|
}
|
|
2318
2233
|
|
|
2319
|
-
/**
|
|
2320
|
-
*/
|
|
2321
|
-
async createCalendarRaw(requestParameters: CreateCalendarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Calendar>> {
|
|
2322
|
-
if (requestParameters['createCalendar'] == null) {
|
|
2323
|
-
throw new runtime.RequiredError(
|
|
2324
|
-
'createCalendar',
|
|
2325
|
-
'Required parameter "createCalendar" was null or undefined when calling createCalendar().'
|
|
2326
|
-
);
|
|
2327
|
-
}
|
|
2328
|
-
|
|
2329
|
-
const queryParameters: any = {};
|
|
2330
|
-
|
|
2331
|
-
if (requestParameters['siteId'] != null) {
|
|
2332
|
-
queryParameters['siteId'] = requestParameters['siteId'];
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2336
|
-
|
|
2337
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2338
|
-
|
|
2339
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2340
|
-
const token = this.configuration.accessToken;
|
|
2341
|
-
const tokenString = await token("bearer", []);
|
|
2342
|
-
|
|
2343
|
-
if (tokenString) {
|
|
2344
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2345
|
-
}
|
|
2346
|
-
}
|
|
2347
|
-
const response = await this.request({
|
|
2348
|
-
path: `/api/events/calendars`,
|
|
2349
|
-
method: 'POST',
|
|
2350
|
-
headers: headerParameters,
|
|
2351
|
-
query: queryParameters,
|
|
2352
|
-
body: CreateCalendarToJSON(requestParameters['createCalendar']),
|
|
2353
|
-
}, initOverrides);
|
|
2354
|
-
|
|
2355
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CalendarFromJSON(jsonValue));
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
/**
|
|
2359
|
-
*/
|
|
2360
|
-
async createCalendar(requestParameters: CreateCalendarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Calendar> {
|
|
2361
|
-
const response = await this.createCalendarRaw(requestParameters, initOverrides);
|
|
2362
|
-
return await response.value();
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
2234
|
/**
|
|
2366
2235
|
*/
|
|
2367
2236
|
async createChargeRaw(requestParameters: CreateChargeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Charge>> {
|
|
@@ -2548,90 +2417,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2548
2417
|
return await response.value();
|
|
2549
2418
|
}
|
|
2550
2419
|
|
|
2551
|
-
/**
|
|
2552
|
-
*/
|
|
2553
|
-
async createConfigurationSettingRaw(requestParameters: CreateConfigurationSettingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConfigurationSetting>> {
|
|
2554
|
-
if (requestParameters['createConfigurationSetting'] == null) {
|
|
2555
|
-
throw new runtime.RequiredError(
|
|
2556
|
-
'createConfigurationSetting',
|
|
2557
|
-
'Required parameter "createConfigurationSetting" was null or undefined when calling createConfigurationSetting().'
|
|
2558
|
-
);
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
const queryParameters: any = {};
|
|
2562
|
-
|
|
2563
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2564
|
-
|
|
2565
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2566
|
-
|
|
2567
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2568
|
-
const token = this.configuration.accessToken;
|
|
2569
|
-
const tokenString = await token("bearer", []);
|
|
2570
|
-
|
|
2571
|
-
if (tokenString) {
|
|
2572
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
const response = await this.request({
|
|
2576
|
-
path: `/api/org/configuration-settings`,
|
|
2577
|
-
method: 'POST',
|
|
2578
|
-
headers: headerParameters,
|
|
2579
|
-
query: queryParameters,
|
|
2580
|
-
body: CreateConfigurationSettingToJSON(requestParameters['createConfigurationSetting']),
|
|
2581
|
-
}, initOverrides);
|
|
2582
|
-
|
|
2583
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ConfigurationSettingFromJSON(jsonValue));
|
|
2584
|
-
}
|
|
2585
|
-
|
|
2586
|
-
/**
|
|
2587
|
-
*/
|
|
2588
|
-
async createConfigurationSetting(requestParameters: CreateConfigurationSettingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConfigurationSetting> {
|
|
2589
|
-
const response = await this.createConfigurationSettingRaw(requestParameters, initOverrides);
|
|
2590
|
-
return await response.value();
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
/**
|
|
2594
|
-
*/
|
|
2595
|
-
async createConfigurationSettingsRaw(requestParameters: CreateConfigurationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Success>> {
|
|
2596
|
-
if (requestParameters['createConfigurationSettings'] == null) {
|
|
2597
|
-
throw new runtime.RequiredError(
|
|
2598
|
-
'createConfigurationSettings',
|
|
2599
|
-
'Required parameter "createConfigurationSettings" was null or undefined when calling createConfigurationSettings().'
|
|
2600
|
-
);
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
const queryParameters: any = {};
|
|
2604
|
-
|
|
2605
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2606
|
-
|
|
2607
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2608
|
-
|
|
2609
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2610
|
-
const token = this.configuration.accessToken;
|
|
2611
|
-
const tokenString = await token("bearer", []);
|
|
2612
|
-
|
|
2613
|
-
if (tokenString) {
|
|
2614
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2615
|
-
}
|
|
2616
|
-
}
|
|
2617
|
-
const response = await this.request({
|
|
2618
|
-
path: `/api/org/configuration-settings/batch`,
|
|
2619
|
-
method: 'POST',
|
|
2620
|
-
headers: headerParameters,
|
|
2621
|
-
query: queryParameters,
|
|
2622
|
-
body: CreateConfigurationSettingsToJSON(requestParameters['createConfigurationSettings']),
|
|
2623
|
-
}, initOverrides);
|
|
2624
|
-
|
|
2625
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFromJSON(jsonValue));
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
/**
|
|
2629
|
-
*/
|
|
2630
|
-
async createConfigurationSettings(requestParameters: CreateConfigurationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Success> {
|
|
2631
|
-
const response = await this.createConfigurationSettingsRaw(requestParameters, initOverrides);
|
|
2632
|
-
return await response.value();
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
2420
|
/**
|
|
2636
2421
|
*/
|
|
2637
2422
|
async createContactRaw(requestParameters: CreateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Contact>> {
|
|
@@ -2954,52 +2739,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2954
2739
|
return await response.value();
|
|
2955
2740
|
}
|
|
2956
2741
|
|
|
2957
|
-
/**
|
|
2958
|
-
*/
|
|
2959
|
-
async createNotificationRaw(requestParameters: CreateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Notification>> {
|
|
2960
|
-
if (requestParameters['createNotification'] == null) {
|
|
2961
|
-
throw new runtime.RequiredError(
|
|
2962
|
-
'createNotification',
|
|
2963
|
-
'Required parameter "createNotification" was null or undefined when calling createNotification().'
|
|
2964
|
-
);
|
|
2965
|
-
}
|
|
2966
|
-
|
|
2967
|
-
const queryParameters: any = {};
|
|
2968
|
-
|
|
2969
|
-
if (requestParameters['siteId'] != null) {
|
|
2970
|
-
queryParameters['siteId'] = requestParameters['siteId'];
|
|
2971
|
-
}
|
|
2972
|
-
|
|
2973
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2974
|
-
|
|
2975
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2976
|
-
|
|
2977
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2978
|
-
const token = this.configuration.accessToken;
|
|
2979
|
-
const tokenString = await token("bearer", []);
|
|
2980
|
-
|
|
2981
|
-
if (tokenString) {
|
|
2982
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2983
|
-
}
|
|
2984
|
-
}
|
|
2985
|
-
const response = await this.request({
|
|
2986
|
-
path: `/api/events/notifications`,
|
|
2987
|
-
method: 'POST',
|
|
2988
|
-
headers: headerParameters,
|
|
2989
|
-
query: queryParameters,
|
|
2990
|
-
body: CreateNotificationToJSON(requestParameters['createNotification']),
|
|
2991
|
-
}, initOverrides);
|
|
2992
|
-
|
|
2993
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
/**
|
|
2997
|
-
*/
|
|
2998
|
-
async createNotification(requestParameters: CreateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification> {
|
|
2999
|
-
const response = await this.createNotificationRaw(requestParameters, initOverrides);
|
|
3000
|
-
return await response.value();
|
|
3001
|
-
}
|
|
3002
|
-
|
|
3003
2742
|
/**
|
|
3004
2743
|
*/
|
|
3005
2744
|
async createOrderRaw(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Order>> {
|
|
@@ -5943,147 +5682,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5943
5682
|
return await response.value();
|
|
5944
5683
|
}
|
|
5945
5684
|
|
|
5946
|
-
/**
|
|
5947
|
-
*/
|
|
5948
|
-
async getCalendarRaw(requestParameters: GetCalendarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Calendar>> {
|
|
5949
|
-
if (requestParameters['calendarId'] == null) {
|
|
5950
|
-
throw new runtime.RequiredError(
|
|
5951
|
-
'calendarId',
|
|
5952
|
-
'Required parameter "calendarId" was null or undefined when calling getCalendar().'
|
|
5953
|
-
);
|
|
5954
|
-
}
|
|
5955
|
-
|
|
5956
|
-
const queryParameters: any = {};
|
|
5957
|
-
|
|
5958
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
5959
|
-
|
|
5960
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
5961
|
-
const token = this.configuration.accessToken;
|
|
5962
|
-
const tokenString = await token("bearer", []);
|
|
5963
|
-
|
|
5964
|
-
if (tokenString) {
|
|
5965
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5966
|
-
}
|
|
5967
|
-
}
|
|
5968
|
-
const response = await this.request({
|
|
5969
|
-
path: `/api/events/calendars/{calendarId}`.replace(`{${"calendarId"}}`, encodeURIComponent(String(requestParameters['calendarId']))),
|
|
5970
|
-
method: 'GET',
|
|
5971
|
-
headers: headerParameters,
|
|
5972
|
-
query: queryParameters,
|
|
5973
|
-
}, initOverrides);
|
|
5974
|
-
|
|
5975
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CalendarFromJSON(jsonValue));
|
|
5976
|
-
}
|
|
5977
|
-
|
|
5978
|
-
/**
|
|
5979
|
-
*/
|
|
5980
|
-
async getCalendar(requestParameters: GetCalendarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Calendar> {
|
|
5981
|
-
const response = await this.getCalendarRaw(requestParameters, initOverrides);
|
|
5982
|
-
return await response.value();
|
|
5983
|
-
}
|
|
5984
|
-
|
|
5985
|
-
/**
|
|
5986
|
-
*/
|
|
5987
|
-
async getCalendarEventsRaw(requestParameters: GetCalendarEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEvents>> {
|
|
5988
|
-
if (requestParameters['startDate'] == null) {
|
|
5989
|
-
throw new runtime.RequiredError(
|
|
5990
|
-
'startDate',
|
|
5991
|
-
'Required parameter "startDate" was null or undefined when calling getCalendarEvents().'
|
|
5992
|
-
);
|
|
5993
|
-
}
|
|
5994
|
-
|
|
5995
|
-
if (requestParameters['endDate'] == null) {
|
|
5996
|
-
throw new runtime.RequiredError(
|
|
5997
|
-
'endDate',
|
|
5998
|
-
'Required parameter "endDate" was null or undefined when calling getCalendarEvents().'
|
|
5999
|
-
);
|
|
6000
|
-
}
|
|
6001
|
-
|
|
6002
|
-
const queryParameters: any = {};
|
|
6003
|
-
|
|
6004
|
-
if (requestParameters['siteId'] != null) {
|
|
6005
|
-
queryParameters['siteId'] = requestParameters['siteId'];
|
|
6006
|
-
}
|
|
6007
|
-
|
|
6008
|
-
if (requestParameters['startDate'] != null) {
|
|
6009
|
-
queryParameters['startDate'] = requestParameters['startDate'];
|
|
6010
|
-
}
|
|
6011
|
-
|
|
6012
|
-
if (requestParameters['endDate'] != null) {
|
|
6013
|
-
queryParameters['endDate'] = requestParameters['endDate'];
|
|
6014
|
-
}
|
|
6015
|
-
|
|
6016
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
6017
|
-
|
|
6018
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
6019
|
-
const token = this.configuration.accessToken;
|
|
6020
|
-
const tokenString = await token("bearer", []);
|
|
6021
|
-
|
|
6022
|
-
if (tokenString) {
|
|
6023
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6024
|
-
}
|
|
6025
|
-
}
|
|
6026
|
-
const response = await this.request({
|
|
6027
|
-
path: `/api/events/calendars/events`,
|
|
6028
|
-
method: 'GET',
|
|
6029
|
-
headers: headerParameters,
|
|
6030
|
-
query: queryParameters,
|
|
6031
|
-
}, initOverrides);
|
|
6032
|
-
|
|
6033
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CalendarEventsFromJSON(jsonValue));
|
|
6034
|
-
}
|
|
6035
|
-
|
|
6036
|
-
/**
|
|
6037
|
-
*/
|
|
6038
|
-
async getCalendarEvents(requestParameters: GetCalendarEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEvents> {
|
|
6039
|
-
const response = await this.getCalendarEventsRaw(requestParameters, initOverrides);
|
|
6040
|
-
return await response.value();
|
|
6041
|
-
}
|
|
6042
|
-
|
|
6043
|
-
/**
|
|
6044
|
-
*/
|
|
6045
|
-
async getCalendarsRaw(requestParameters: GetCalendarsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCalendars200Response>> {
|
|
6046
|
-
const queryParameters: any = {};
|
|
6047
|
-
|
|
6048
|
-
if (requestParameters['offset'] != null) {
|
|
6049
|
-
queryParameters['offset'] = requestParameters['offset'];
|
|
6050
|
-
}
|
|
6051
|
-
|
|
6052
|
-
if (requestParameters['limit'] != null) {
|
|
6053
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
6054
|
-
}
|
|
6055
|
-
|
|
6056
|
-
if (requestParameters['siteId'] != null) {
|
|
6057
|
-
queryParameters['siteId'] = requestParameters['siteId'];
|
|
6058
|
-
}
|
|
6059
|
-
|
|
6060
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
6061
|
-
|
|
6062
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
6063
|
-
const token = this.configuration.accessToken;
|
|
6064
|
-
const tokenString = await token("bearer", []);
|
|
6065
|
-
|
|
6066
|
-
if (tokenString) {
|
|
6067
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
6068
|
-
}
|
|
6069
|
-
}
|
|
6070
|
-
const response = await this.request({
|
|
6071
|
-
path: `/api/events/calendars`,
|
|
6072
|
-
method: 'GET',
|
|
6073
|
-
headers: headerParameters,
|
|
6074
|
-
query: queryParameters,
|
|
6075
|
-
}, initOverrides);
|
|
6076
|
-
|
|
6077
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GetCalendars200ResponseFromJSON(jsonValue));
|
|
6078
|
-
}
|
|
6079
|
-
|
|
6080
|
-
/**
|
|
6081
|
-
*/
|
|
6082
|
-
async getCalendars(requestParameters: GetCalendarsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCalendars200Response> {
|
|
6083
|
-
const response = await this.getCalendarsRaw(requestParameters, initOverrides);
|
|
6084
|
-
return await response.value();
|
|
6085
|
-
}
|
|
6086
|
-
|
|
6087
5685
|
/**
|
|
6088
5686
|
*/
|
|
6089
5687
|
async getChargeRaw(requestParameters: GetChargeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Charge>> {
|
|
@@ -6463,6 +6061,20 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
6463
6061
|
/**
|
|
6464
6062
|
*/
|
|
6465
6063
|
async getConfigurationSettingsRaw(requestParameters: GetConfigurationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetConfigurationSettings200Response>> {
|
|
6064
|
+
if (requestParameters['authorization'] == null) {
|
|
6065
|
+
throw new runtime.RequiredError(
|
|
6066
|
+
'authorization',
|
|
6067
|
+
'Required parameter "authorization" was null or undefined when calling getConfigurationSettings().'
|
|
6068
|
+
);
|
|
6069
|
+
}
|
|
6070
|
+
|
|
6071
|
+
if (requestParameters['xOrgKey'] == null) {
|
|
6072
|
+
throw new runtime.RequiredError(
|
|
6073
|
+
'xOrgKey',
|
|
6074
|
+
'Required parameter "xOrgKey" was null or undefined when calling getConfigurationSettings().'
|
|
6075
|
+
);
|
|
6076
|
+
}
|
|
6077
|
+
|
|
6466
6078
|
const queryParameters: any = {};
|
|
6467
6079
|
|
|
6468
6080
|
if (requestParameters['offset'] != null) {
|
|
@@ -6475,6 +6087,14 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
6475
6087
|
|
|
6476
6088
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
6477
6089
|
|
|
6090
|
+
if (requestParameters['authorization'] != null) {
|
|
6091
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
6092
|
+
}
|
|
6093
|
+
|
|
6094
|
+
if (requestParameters['xOrgKey'] != null) {
|
|
6095
|
+
headerParameters['x-org-key'] = String(requestParameters['xOrgKey']);
|
|
6096
|
+
}
|
|
6097
|
+
|
|
6478
6098
|
if (this.configuration && this.configuration.accessToken) {
|
|
6479
6099
|
const token = this.configuration.accessToken;
|
|
6480
6100
|
const tokenString = await token("bearer", []);
|
|
@@ -6495,7 +6115,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
6495
6115
|
|
|
6496
6116
|
/**
|
|
6497
6117
|
*/
|
|
6498
|
-
async getConfigurationSettings(requestParameters: GetConfigurationSettingsRequest
|
|
6118
|
+
async getConfigurationSettings(requestParameters: GetConfigurationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetConfigurationSettings200Response> {
|
|
6499
6119
|
const response = await this.getConfigurationSettingsRaw(requestParameters, initOverrides);
|
|
6500
6120
|
return await response.value();
|
|
6501
6121
|
}
|
|
@@ -7510,89 +7130,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
7510
7130
|
return await response.value();
|
|
7511
7131
|
}
|
|
7512
7132
|
|
|
7513
|
-
/**
|
|
7514
|
-
*/
|
|
7515
|
-
async getNotificationRaw(requestParameters: GetNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Notification>> {
|
|
7516
|
-
if (requestParameters['notificationId'] == null) {
|
|
7517
|
-
throw new runtime.RequiredError(
|
|
7518
|
-
'notificationId',
|
|
7519
|
-
'Required parameter "notificationId" was null or undefined when calling getNotification().'
|
|
7520
|
-
);
|
|
7521
|
-
}
|
|
7522
|
-
|
|
7523
|
-
const queryParameters: any = {};
|
|
7524
|
-
|
|
7525
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
7526
|
-
|
|
7527
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
7528
|
-
const token = this.configuration.accessToken;
|
|
7529
|
-
const tokenString = await token("bearer", []);
|
|
7530
|
-
|
|
7531
|
-
if (tokenString) {
|
|
7532
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7533
|
-
}
|
|
7534
|
-
}
|
|
7535
|
-
const response = await this.request({
|
|
7536
|
-
path: `/api/events/notifications/{notificationId}`.replace(`{${"notificationId"}}`, encodeURIComponent(String(requestParameters['notificationId']))),
|
|
7537
|
-
method: 'GET',
|
|
7538
|
-
headers: headerParameters,
|
|
7539
|
-
query: queryParameters,
|
|
7540
|
-
}, initOverrides);
|
|
7541
|
-
|
|
7542
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));
|
|
7543
|
-
}
|
|
7544
|
-
|
|
7545
|
-
/**
|
|
7546
|
-
*/
|
|
7547
|
-
async getNotification(requestParameters: GetNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification> {
|
|
7548
|
-
const response = await this.getNotificationRaw(requestParameters, initOverrides);
|
|
7549
|
-
return await response.value();
|
|
7550
|
-
}
|
|
7551
|
-
|
|
7552
|
-
/**
|
|
7553
|
-
*/
|
|
7554
|
-
async getNotificationsRaw(requestParameters: GetNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetNotifications200Response>> {
|
|
7555
|
-
const queryParameters: any = {};
|
|
7556
|
-
|
|
7557
|
-
if (requestParameters['offset'] != null) {
|
|
7558
|
-
queryParameters['offset'] = requestParameters['offset'];
|
|
7559
|
-
}
|
|
7560
|
-
|
|
7561
|
-
if (requestParameters['limit'] != null) {
|
|
7562
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
7563
|
-
}
|
|
7564
|
-
|
|
7565
|
-
if (requestParameters['siteId'] != null) {
|
|
7566
|
-
queryParameters['siteId'] = requestParameters['siteId'];
|
|
7567
|
-
}
|
|
7568
|
-
|
|
7569
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
7570
|
-
|
|
7571
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
7572
|
-
const token = this.configuration.accessToken;
|
|
7573
|
-
const tokenString = await token("bearer", []);
|
|
7574
|
-
|
|
7575
|
-
if (tokenString) {
|
|
7576
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7577
|
-
}
|
|
7578
|
-
}
|
|
7579
|
-
const response = await this.request({
|
|
7580
|
-
path: `/api/events/notifications`,
|
|
7581
|
-
method: 'GET',
|
|
7582
|
-
headers: headerParameters,
|
|
7583
|
-
query: queryParameters,
|
|
7584
|
-
}, initOverrides);
|
|
7585
|
-
|
|
7586
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GetNotifications200ResponseFromJSON(jsonValue));
|
|
7587
|
-
}
|
|
7588
|
-
|
|
7589
|
-
/**
|
|
7590
|
-
*/
|
|
7591
|
-
async getNotifications(requestParameters: GetNotificationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetNotifications200Response> {
|
|
7592
|
-
const response = await this.getNotificationsRaw(requestParameters, initOverrides);
|
|
7593
|
-
return await response.value();
|
|
7594
|
-
}
|
|
7595
|
-
|
|
7596
7133
|
/**
|
|
7597
7134
|
*/
|
|
7598
7135
|
async getOrderRaw(requestParameters: GetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Order>> {
|
|
@@ -10620,45 +10157,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
10620
10157
|
return await response.value();
|
|
10621
10158
|
}
|
|
10622
10159
|
|
|
10623
|
-
/**
|
|
10624
|
-
*/
|
|
10625
|
-
async reverseCreditRaw(requestParameters: ReverseCreditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Credit>> {
|
|
10626
|
-
if (requestParameters['creditId'] == null) {
|
|
10627
|
-
throw new runtime.RequiredError(
|
|
10628
|
-
'creditId',
|
|
10629
|
-
'Required parameter "creditId" was null or undefined when calling reverseCredit().'
|
|
10630
|
-
);
|
|
10631
|
-
}
|
|
10632
|
-
|
|
10633
|
-
const queryParameters: any = {};
|
|
10634
|
-
|
|
10635
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
10636
|
-
|
|
10637
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
10638
|
-
const token = this.configuration.accessToken;
|
|
10639
|
-
const tokenString = await token("bearer", []);
|
|
10640
|
-
|
|
10641
|
-
if (tokenString) {
|
|
10642
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10643
|
-
}
|
|
10644
|
-
}
|
|
10645
|
-
const response = await this.request({
|
|
10646
|
-
path: `/api/billing/credits/{creditId}/reverse`.replace(`{${"creditId"}}`, encodeURIComponent(String(requestParameters['creditId']))),
|
|
10647
|
-
method: 'PUT',
|
|
10648
|
-
headers: headerParameters,
|
|
10649
|
-
query: queryParameters,
|
|
10650
|
-
}, initOverrides);
|
|
10651
|
-
|
|
10652
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CreditFromJSON(jsonValue));
|
|
10653
|
-
}
|
|
10654
|
-
|
|
10655
|
-
/**
|
|
10656
|
-
*/
|
|
10657
|
-
async reverseCredit(requestParameters: ReverseCreditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Credit> {
|
|
10658
|
-
const response = await this.reverseCreditRaw(requestParameters, initOverrides);
|
|
10659
|
-
return await response.value();
|
|
10660
|
-
}
|
|
10661
|
-
|
|
10662
10160
|
/**
|
|
10663
10161
|
*/
|
|
10664
10162
|
async reverseInvoiceRaw(requestParameters: ReverseInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Invoice>> {
|
|
@@ -11402,59 +10900,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
11402
10900
|
return await response.value();
|
|
11403
10901
|
}
|
|
11404
10902
|
|
|
11405
|
-
/**
|
|
11406
|
-
*/
|
|
11407
|
-
async updateConfigurationSettingRaw(requestParameters: UpdateConfigurationSettingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConfigurationSetting>> {
|
|
11408
|
-
if (requestParameters['configurationSettingId'] == null) {
|
|
11409
|
-
throw new runtime.RequiredError(
|
|
11410
|
-
'configurationSettingId',
|
|
11411
|
-
'Required parameter "configurationSettingId" was null or undefined when calling updateConfigurationSetting().'
|
|
11412
|
-
);
|
|
11413
|
-
}
|
|
11414
|
-
|
|
11415
|
-
if (requestParameters['updateConfigurationSetting'] == null) {
|
|
11416
|
-
throw new runtime.RequiredError(
|
|
11417
|
-
'updateConfigurationSetting',
|
|
11418
|
-
'Required parameter "updateConfigurationSetting" was null or undefined when calling updateConfigurationSetting().'
|
|
11419
|
-
);
|
|
11420
|
-
}
|
|
11421
|
-
|
|
11422
|
-
const queryParameters: any = {};
|
|
11423
|
-
|
|
11424
|
-
if (requestParameters['siteId'] != null) {
|
|
11425
|
-
queryParameters['siteId'] = requestParameters['siteId'];
|
|
11426
|
-
}
|
|
11427
|
-
|
|
11428
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
11429
|
-
|
|
11430
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
11431
|
-
|
|
11432
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
11433
|
-
const token = this.configuration.accessToken;
|
|
11434
|
-
const tokenString = await token("bearer", []);
|
|
11435
|
-
|
|
11436
|
-
if (tokenString) {
|
|
11437
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
11438
|
-
}
|
|
11439
|
-
}
|
|
11440
|
-
const response = await this.request({
|
|
11441
|
-
path: `/api/org/configuration-settings/{configurationSettingId}`.replace(`{${"configurationSettingId"}}`, encodeURIComponent(String(requestParameters['configurationSettingId']))),
|
|
11442
|
-
method: 'PUT',
|
|
11443
|
-
headers: headerParameters,
|
|
11444
|
-
query: queryParameters,
|
|
11445
|
-
body: UpdateConfigurationSettingToJSON(requestParameters['updateConfigurationSetting']),
|
|
11446
|
-
}, initOverrides);
|
|
11447
|
-
|
|
11448
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ConfigurationSettingFromJSON(jsonValue));
|
|
11449
|
-
}
|
|
11450
|
-
|
|
11451
|
-
/**
|
|
11452
|
-
*/
|
|
11453
|
-
async updateConfigurationSetting(requestParameters: UpdateConfigurationSettingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConfigurationSetting> {
|
|
11454
|
-
const response = await this.updateConfigurationSettingRaw(requestParameters, initOverrides);
|
|
11455
|
-
return await response.value();
|
|
11456
|
-
}
|
|
11457
|
-
|
|
11458
10903
|
/**
|
|
11459
10904
|
*/
|
|
11460
10905
|
async updateContactRaw(requestParameters: UpdateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Contact>> {
|