ultracart_rest_api_v2_typescript 4.0.218 → 4.0.220

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.218
1
+ ## ultracart_rest_api_v2_typescript@4.0.220
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install ultracart_rest_api_v2_typescript@4.0.218 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.220 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.220 | 05/15/2024 | conversation pbx voicemail mailbox indep. voice properties |
58
+ | 4.0.219 | 05/15/2024 | conversation pbx - missing fields on agent object |
57
59
  | 4.0.218 | 05/14/2024 | conversation pbx - allowed value constants on the action |
58
60
  | 4.0.217 | 05/13/2024 | conversation pbx - bug fix on camelCase property names |
59
61
  | 4.0.216 | 05/13/2024 | conversation pbx - allow nullable day of week in time range |
@@ -20,9 +20,6 @@ export interface DeleteDepartmentRequest {
20
20
  export interface DeleteEngagementRequest {
21
21
  conversationEngagementOid: number;
22
22
  }
23
- export interface DeletePbxAgentRequest {
24
- conversationPbxAgentUuid: string;
25
- }
26
23
  export interface DeletePbxAgentVoicemailRequest {
27
24
  recordingSid: string;
28
25
  }
@@ -32,9 +29,6 @@ export interface DeletePbxAudioRequest {
32
29
  export interface DeletePbxMenuRequest {
33
30
  conversationPbxMenuUuid: string;
34
31
  }
35
- export interface DeletePbxPhoneNumberRequest {
36
- conversationPbxPhoneNumberUuid: string;
37
- }
38
32
  export interface DeletePbxQueueRequest {
39
33
  conversationPbxQueueUuid: string;
40
34
  }
@@ -133,18 +127,12 @@ export interface InsertConversationDepartmentRequest {
133
127
  export interface InsertConversationEngagementRequest {
134
128
  engagement: ConversationEngagement;
135
129
  }
136
- export interface InsertPbxAgentRequest {
137
- pbxAgent: ConversationPbxAgent;
138
- }
139
130
  export interface InsertPbxAudioRequest {
140
131
  pbxAudio: ConversationPbxAudio;
141
132
  }
142
133
  export interface InsertPbxMenuRequest {
143
134
  pbxMenu: ConversationPbxMenu;
144
135
  }
145
- export interface InsertPbxPhoneNumberRequest {
146
- pbxPhoneNumber: ConversationPbxPhoneNumber;
147
- }
148
136
  export interface InsertPbxQueueRequest {
149
137
  pbxQueue: ConversationPbxQueue;
150
138
  }
@@ -286,20 +274,6 @@ export interface ConversationApiInterface {
286
274
  * Delete a conversation engagement
287
275
  */
288
276
  deleteEngagement(requestParameters: DeleteEngagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
289
- /**
290
- * Delete a pbx agent
291
- * @summary Delete pbx agent
292
- * @param {string} conversationPbxAgentUuid
293
- * @param {*} [options] Override http request option.
294
- * @throws {RequiredError}
295
- * @memberof ConversationApiInterface
296
- */
297
- deletePbxAgentRaw(requestParameters: DeletePbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAgentResponse>>;
298
- /**
299
- * Delete a pbx agent
300
- * Delete pbx agent
301
- */
302
- deletePbxAgent(requestParameters: DeletePbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAgentResponse>;
303
277
  /**
304
278
  * Delete pbx agent Voicemail
305
279
  * @summary Delete Agent Voicemail
@@ -342,20 +316,6 @@ export interface ConversationApiInterface {
342
316
  * Delete pbx menu
343
317
  */
344
318
  deletePbxMenu(requestParameters: DeletePbxMenuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxMenuResponse>;
345
- /**
346
- * Delete a pbx phoneNumber
347
- * @summary Delete pbx phoneNumber
348
- * @param {string} conversationPbxPhoneNumberUuid
349
- * @param {*} [options] Override http request option.
350
- * @throws {RequiredError}
351
- * @memberof ConversationApiInterface
352
- */
353
- deletePbxPhoneNumberRaw(requestParameters: DeletePbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxPhoneNumberResponse>>;
354
- /**
355
- * Delete a pbx phoneNumber
356
- * Delete pbx phoneNumber
357
- */
358
- deletePbxPhoneNumber(requestParameters: DeletePbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxPhoneNumberResponse>;
359
319
  /**
360
320
  * Delete a pbx queue
361
321
  * @summary Delete pbx queue
@@ -1031,20 +991,6 @@ export interface ConversationApiInterface {
1031
991
  * Insert a engagement
1032
992
  */
1033
993
  insertConversationEngagement(requestParameters: InsertConversationEngagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationEngagementResponse>;
1034
- /**
1035
- * Insert a pbx agent
1036
- * @summary Insert pbx agent
1037
- * @param {ConversationPbxAgent} pbxAgent Pbx Agent
1038
- * @param {*} [options] Override http request option.
1039
- * @throws {RequiredError}
1040
- * @memberof ConversationApiInterface
1041
- */
1042
- insertPbxAgentRaw(requestParameters: InsertPbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAgentResponse>>;
1043
- /**
1044
- * Insert a pbx agent
1045
- * Insert pbx agent
1046
- */
1047
- insertPbxAgent(requestParameters: InsertPbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAgentResponse>;
1048
994
  /**
1049
995
  * Insert a pbx audio
1050
996
  * @summary Insert pbx audio
@@ -1073,20 +1019,6 @@ export interface ConversationApiInterface {
1073
1019
  * Insert pbx menu
1074
1020
  */
1075
1021
  insertPbxMenu(requestParameters: InsertPbxMenuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxMenuResponse>;
1076
- /**
1077
- * Insert a pbx phoneNumber
1078
- * @summary Insert pbx phoneNumber
1079
- * @param {ConversationPbxPhoneNumber} pbxPhoneNumber Pbx PhoneNumber
1080
- * @param {*} [options] Override http request option.
1081
- * @throws {RequiredError}
1082
- * @memberof ConversationApiInterface
1083
- */
1084
- insertPbxPhoneNumberRaw(requestParameters: InsertPbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxPhoneNumberResponse>>;
1085
- /**
1086
- * Insert a pbx phoneNumber
1087
- * Insert pbx phoneNumber
1088
- */
1089
- insertPbxPhoneNumber(requestParameters: InsertPbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxPhoneNumberResponse>;
1090
1022
  /**
1091
1023
  * Insert a pbx queue
1092
1024
  * @summary Insert pbx queue
@@ -1500,16 +1432,6 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
1500
1432
  * Delete a conversation engagement
1501
1433
  */
1502
1434
  deleteEngagement(requestParameters: DeleteEngagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1503
- /**
1504
- * Delete a pbx agent
1505
- * Delete pbx agent
1506
- */
1507
- deletePbxAgentRaw(requestParameters: DeletePbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAgentResponse>>;
1508
- /**
1509
- * Delete a pbx agent
1510
- * Delete pbx agent
1511
- */
1512
- deletePbxAgent(requestParameters: DeletePbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAgentResponse>;
1513
1435
  /**
1514
1436
  * Delete pbx agent Voicemail
1515
1437
  * Delete Agent Voicemail
@@ -1540,16 +1462,6 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
1540
1462
  * Delete pbx menu
1541
1463
  */
1542
1464
  deletePbxMenu(requestParameters: DeletePbxMenuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxMenuResponse>;
1543
- /**
1544
- * Delete a pbx phoneNumber
1545
- * Delete pbx phoneNumber
1546
- */
1547
- deletePbxPhoneNumberRaw(requestParameters: DeletePbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxPhoneNumberResponse>>;
1548
- /**
1549
- * Delete a pbx phoneNumber
1550
- * Delete pbx phoneNumber
1551
- */
1552
- deletePbxPhoneNumber(requestParameters: DeletePbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxPhoneNumberResponse>;
1553
1465
  /**
1554
1466
  * Delete a pbx queue
1555
1467
  * Delete pbx queue
@@ -2040,16 +1952,6 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
2040
1952
  * Insert a engagement
2041
1953
  */
2042
1954
  insertConversationEngagement(requestParameters: InsertConversationEngagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationEngagementResponse>;
2043
- /**
2044
- * Insert a pbx agent
2045
- * Insert pbx agent
2046
- */
2047
- insertPbxAgentRaw(requestParameters: InsertPbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAgentResponse>>;
2048
- /**
2049
- * Insert a pbx agent
2050
- * Insert pbx agent
2051
- */
2052
- insertPbxAgent(requestParameters: InsertPbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAgentResponse>;
2053
1955
  /**
2054
1956
  * Insert a pbx audio
2055
1957
  * Insert pbx audio
@@ -2070,16 +1972,6 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
2070
1972
  * Insert pbx menu
2071
1973
  */
2072
1974
  insertPbxMenu(requestParameters: InsertPbxMenuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxMenuResponse>;
2073
- /**
2074
- * Insert a pbx phoneNumber
2075
- * Insert pbx phoneNumber
2076
- */
2077
- insertPbxPhoneNumberRaw(requestParameters: InsertPbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxPhoneNumberResponse>>;
2078
- /**
2079
- * Insert a pbx phoneNumber
2080
- * Insert pbx phoneNumber
2081
- */
2082
- insertPbxPhoneNumber(requestParameters: InsertPbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxPhoneNumberResponse>;
2083
1975
  /**
2084
1976
  * Insert a pbx queue
2085
1977
  * Insert pbx queue
@@ -246,65 +246,6 @@ var ConversationApi = /** @class */ (function (_super) {
246
246
  });
247
247
  });
248
248
  };
249
- /**
250
- * Delete a pbx agent
251
- * Delete pbx agent
252
- */
253
- ConversationApi.prototype.deletePbxAgentRaw = function (requestParameters, initOverrides) {
254
- return __awaiter(this, void 0, void 0, function () {
255
- var queryParameters, headerParameters, _a, _b, response;
256
- return __generator(this, function (_c) {
257
- switch (_c.label) {
258
- case 0:
259
- if (requestParameters.conversationPbxAgentUuid === null || requestParameters.conversationPbxAgentUuid === undefined) {
260
- throw new runtime.RequiredError('conversationPbxAgentUuid', 'Required parameter requestParameters.conversationPbxAgentUuid was null or undefined when calling deletePbxAgent.');
261
- }
262
- queryParameters = {};
263
- headerParameters = {};
264
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
265
- // oauth required
266
- _a = headerParameters;
267
- _b = "Authorization";
268
- return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_write"])];
269
- case 1:
270
- // oauth required
271
- _a[_b] = _c.sent();
272
- _c.label = 2;
273
- case 2:
274
- if (this.configuration && this.configuration.apiKey) {
275
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
276
- }
277
- return [4 /*yield*/, this.request({
278
- path: "/conversation/pbx/agent/{conversationPbxAgentUuid}".replace("{".concat("conversationPbxAgentUuid", "}"), encodeURIComponent(String(requestParameters.conversationPbxAgentUuid))),
279
- method: 'DELETE',
280
- headers: headerParameters,
281
- query: queryParameters,
282
- }, initOverrides)];
283
- case 3:
284
- response = _c.sent();
285
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationPbxAgentResponseFromJSON)(jsonValue); })];
286
- }
287
- });
288
- });
289
- };
290
- /**
291
- * Delete a pbx agent
292
- * Delete pbx agent
293
- */
294
- ConversationApi.prototype.deletePbxAgent = function (requestParameters, initOverrides) {
295
- return __awaiter(this, void 0, void 0, function () {
296
- var response;
297
- return __generator(this, function (_a) {
298
- switch (_a.label) {
299
- case 0: return [4 /*yield*/, this.deletePbxAgentRaw(requestParameters, initOverrides)];
300
- case 1:
301
- response = _a.sent();
302
- return [4 /*yield*/, response.value()];
303
- case 2: return [2 /*return*/, _a.sent()];
304
- }
305
- });
306
- });
307
- };
308
249
  /**
309
250
  * Delete pbx agent Voicemail
310
251
  * Delete Agent Voicemail
@@ -480,65 +421,6 @@ var ConversationApi = /** @class */ (function (_super) {
480
421
  });
481
422
  });
482
423
  };
483
- /**
484
- * Delete a pbx phoneNumber
485
- * Delete pbx phoneNumber
486
- */
487
- ConversationApi.prototype.deletePbxPhoneNumberRaw = function (requestParameters, initOverrides) {
488
- return __awaiter(this, void 0, void 0, function () {
489
- var queryParameters, headerParameters, _a, _b, response;
490
- return __generator(this, function (_c) {
491
- switch (_c.label) {
492
- case 0:
493
- if (requestParameters.conversationPbxPhoneNumberUuid === null || requestParameters.conversationPbxPhoneNumberUuid === undefined) {
494
- throw new runtime.RequiredError('conversationPbxPhoneNumberUuid', 'Required parameter requestParameters.conversationPbxPhoneNumberUuid was null or undefined when calling deletePbxPhoneNumber.');
495
- }
496
- queryParameters = {};
497
- headerParameters = {};
498
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
499
- // oauth required
500
- _a = headerParameters;
501
- _b = "Authorization";
502
- return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_write"])];
503
- case 1:
504
- // oauth required
505
- _a[_b] = _c.sent();
506
- _c.label = 2;
507
- case 2:
508
- if (this.configuration && this.configuration.apiKey) {
509
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
510
- }
511
- return [4 /*yield*/, this.request({
512
- path: "/conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid}".replace("{".concat("conversationPbxPhoneNumberUuid", "}"), encodeURIComponent(String(requestParameters.conversationPbxPhoneNumberUuid))),
513
- method: 'DELETE',
514
- headers: headerParameters,
515
- query: queryParameters,
516
- }, initOverrides)];
517
- case 3:
518
- response = _c.sent();
519
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationPbxPhoneNumberResponseFromJSON)(jsonValue); })];
520
- }
521
- });
522
- });
523
- };
524
- /**
525
- * Delete a pbx phoneNumber
526
- * Delete pbx phoneNumber
527
- */
528
- ConversationApi.prototype.deletePbxPhoneNumber = function (requestParameters, initOverrides) {
529
- return __awaiter(this, void 0, void 0, function () {
530
- var response;
531
- return __generator(this, function (_a) {
532
- switch (_a.label) {
533
- case 0: return [4 /*yield*/, this.deletePbxPhoneNumberRaw(requestParameters, initOverrides)];
534
- case 1:
535
- response = _a.sent();
536
- return [4 /*yield*/, response.value()];
537
- case 2: return [2 /*return*/, _a.sent()];
538
- }
539
- });
540
- });
541
- };
542
424
  /**
543
425
  * Delete a pbx queue
544
426
  * Delete pbx queue
@@ -3406,67 +3288,6 @@ var ConversationApi = /** @class */ (function (_super) {
3406
3288
  });
3407
3289
  });
3408
3290
  };
3409
- /**
3410
- * Insert a pbx agent
3411
- * Insert pbx agent
3412
- */
3413
- ConversationApi.prototype.insertPbxAgentRaw = function (requestParameters, initOverrides) {
3414
- return __awaiter(this, void 0, void 0, function () {
3415
- var queryParameters, headerParameters, _a, _b, response;
3416
- return __generator(this, function (_c) {
3417
- switch (_c.label) {
3418
- case 0:
3419
- if (requestParameters.pbxAgent === null || requestParameters.pbxAgent === undefined) {
3420
- throw new runtime.RequiredError('pbxAgent', 'Required parameter requestParameters.pbxAgent was null or undefined when calling insertPbxAgent.');
3421
- }
3422
- queryParameters = {};
3423
- headerParameters = {};
3424
- headerParameters['Content-Type'] = 'application/json';
3425
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3426
- // oauth required
3427
- _a = headerParameters;
3428
- _b = "Authorization";
3429
- return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_write"])];
3430
- case 1:
3431
- // oauth required
3432
- _a[_b] = _c.sent();
3433
- _c.label = 2;
3434
- case 2:
3435
- if (this.configuration && this.configuration.apiKey) {
3436
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
3437
- }
3438
- return [4 /*yield*/, this.request({
3439
- path: "/conversation/pbx/agent",
3440
- method: 'POST',
3441
- headers: headerParameters,
3442
- query: queryParameters,
3443
- body: (0, models_1.ConversationPbxAgentToJSON)(requestParameters.pbxAgent),
3444
- }, initOverrides)];
3445
- case 3:
3446
- response = _c.sent();
3447
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationPbxAgentResponseFromJSON)(jsonValue); })];
3448
- }
3449
- });
3450
- });
3451
- };
3452
- /**
3453
- * Insert a pbx agent
3454
- * Insert pbx agent
3455
- */
3456
- ConversationApi.prototype.insertPbxAgent = function (requestParameters, initOverrides) {
3457
- return __awaiter(this, void 0, void 0, function () {
3458
- var response;
3459
- return __generator(this, function (_a) {
3460
- switch (_a.label) {
3461
- case 0: return [4 /*yield*/, this.insertPbxAgentRaw(requestParameters, initOverrides)];
3462
- case 1:
3463
- response = _a.sent();
3464
- return [4 /*yield*/, response.value()];
3465
- case 2: return [2 /*return*/, _a.sent()];
3466
- }
3467
- });
3468
- });
3469
- };
3470
3291
  /**
3471
3292
  * Insert a pbx audio
3472
3293
  * Insert pbx audio
@@ -3589,67 +3410,6 @@ var ConversationApi = /** @class */ (function (_super) {
3589
3410
  });
3590
3411
  });
3591
3412
  };
3592
- /**
3593
- * Insert a pbx phoneNumber
3594
- * Insert pbx phoneNumber
3595
- */
3596
- ConversationApi.prototype.insertPbxPhoneNumberRaw = function (requestParameters, initOverrides) {
3597
- return __awaiter(this, void 0, void 0, function () {
3598
- var queryParameters, headerParameters, _a, _b, response;
3599
- return __generator(this, function (_c) {
3600
- switch (_c.label) {
3601
- case 0:
3602
- if (requestParameters.pbxPhoneNumber === null || requestParameters.pbxPhoneNumber === undefined) {
3603
- throw new runtime.RequiredError('pbxPhoneNumber', 'Required parameter requestParameters.pbxPhoneNumber was null or undefined when calling insertPbxPhoneNumber.');
3604
- }
3605
- queryParameters = {};
3606
- headerParameters = {};
3607
- headerParameters['Content-Type'] = 'application/json';
3608
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3609
- // oauth required
3610
- _a = headerParameters;
3611
- _b = "Authorization";
3612
- return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_write"])];
3613
- case 1:
3614
- // oauth required
3615
- _a[_b] = _c.sent();
3616
- _c.label = 2;
3617
- case 2:
3618
- if (this.configuration && this.configuration.apiKey) {
3619
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
3620
- }
3621
- return [4 /*yield*/, this.request({
3622
- path: "/conversation/pbx/phone_number",
3623
- method: 'POST',
3624
- headers: headerParameters,
3625
- query: queryParameters,
3626
- body: (0, models_1.ConversationPbxPhoneNumberToJSON)(requestParameters.pbxPhoneNumber),
3627
- }, initOverrides)];
3628
- case 3:
3629
- response = _c.sent();
3630
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationPbxPhoneNumberResponseFromJSON)(jsonValue); })];
3631
- }
3632
- });
3633
- });
3634
- };
3635
- /**
3636
- * Insert a pbx phoneNumber
3637
- * Insert pbx phoneNumber
3638
- */
3639
- ConversationApi.prototype.insertPbxPhoneNumber = function (requestParameters, initOverrides) {
3640
- return __awaiter(this, void 0, void 0, function () {
3641
- var response;
3642
- return __generator(this, function (_a) {
3643
- switch (_a.label) {
3644
- case 0: return [4 /*yield*/, this.insertPbxPhoneNumberRaw(requestParameters, initOverrides)];
3645
- case 1:
3646
- response = _a.sent();
3647
- return [4 /*yield*/, response.value()];
3648
- case 2: return [2 /*return*/, _a.sent()];
3649
- }
3650
- });
3651
- });
3652
- };
3653
3413
  /**
3654
3414
  * Insert a pbx queue
3655
3415
  * Insert pbx queue
@@ -33,12 +33,30 @@ export interface ConversationPbxAgent {
33
33
  * @memberof ConversationPbxAgent
34
34
  */
35
35
  conversation_pbx_voicemail_mailbox_uuid?: string;
36
+ /**
37
+ * Extension
38
+ * @type {number}
39
+ * @memberof ConversationPbxAgent
40
+ */
41
+ extension?: number;
36
42
  /**
37
43
  * True if calls to this agent should be forwarded to their cellphone
38
44
  * @type {boolean}
39
45
  * @memberof ConversationPbxAgent
40
46
  */
41
47
  forward_calls_to_cellphone?: boolean;
48
+ /**
49
+ * Full name
50
+ * @type {string}
51
+ * @memberof ConversationPbxAgent
52
+ */
53
+ full_name?: string;
54
+ /**
55
+ * Agent login
56
+ * @type {string}
57
+ * @memberof ConversationPbxAgent
58
+ */
59
+ login?: string;
42
60
  /**
43
61
  * Merchant Id
44
62
  * @type {string}
@@ -57,6 +75,24 @@ export interface ConversationPbxAgent {
57
75
  * @memberof ConversationPbxAgent
58
76
  */
59
77
  twilio_taskrouter_worker_id?: string;
78
+ /**
79
+ * Unavailable play audio UUID
80
+ * @type {string}
81
+ * @memberof ConversationPbxAgent
82
+ */
83
+ unavailable_play_audio_uuid?: string;
84
+ /**
85
+ * Unavailable say
86
+ * @type {string}
87
+ * @memberof ConversationPbxAgent
88
+ */
89
+ unavailable_say?: string;
90
+ /**
91
+ * Unavailable say voice
92
+ * @type {string}
93
+ * @memberof ConversationPbxAgent
94
+ */
95
+ unavailable_say_voice?: string;
60
96
  /**
61
97
  * User Id
62
98
  * @type {number}
@@ -27,10 +27,16 @@ function ConversationPbxAgentFromJSONTyped(json, ignoreDiscriminator) {
27
27
  'cellphone': !(0, runtime_1.exists)(json, 'cellphone') ? undefined : json['cellphone'],
28
28
  'conversation_pbx_agent_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_agent_uuid') ? undefined : json['conversation_pbx_agent_uuid'],
29
29
  'conversation_pbx_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['conversation_pbx_voicemail_mailbox_uuid'],
30
+ 'extension': !(0, runtime_1.exists)(json, 'extension') ? undefined : json['extension'],
30
31
  'forward_calls_to_cellphone': !(0, runtime_1.exists)(json, 'forward_calls_to_cellphone') ? undefined : json['forward_calls_to_cellphone'],
32
+ 'full_name': !(0, runtime_1.exists)(json, 'full_name') ? undefined : json['full_name'],
33
+ 'login': !(0, runtime_1.exists)(json, 'login') ? undefined : json['login'],
31
34
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
32
35
  'record_outgoing_automatically': !(0, runtime_1.exists)(json, 'record_outgoing_automatically') ? undefined : json['record_outgoing_automatically'],
33
36
  'twilio_taskrouter_worker_id': !(0, runtime_1.exists)(json, 'twilio_taskrouter_worker_id') ? undefined : json['twilio_taskrouter_worker_id'],
37
+ 'unavailable_play_audio_uuid': !(0, runtime_1.exists)(json, 'unavailable_play_audio_uuid') ? undefined : json['unavailable_play_audio_uuid'],
38
+ 'unavailable_say': !(0, runtime_1.exists)(json, 'unavailable_say') ? undefined : json['unavailable_say'],
39
+ 'unavailable_say_voice': !(0, runtime_1.exists)(json, 'unavailable_say_voice') ? undefined : json['unavailable_say_voice'],
34
40
  'user_id': !(0, runtime_1.exists)(json, 'user_id') ? undefined : json['user_id'],
35
41
  'voicemail': !(0, runtime_1.exists)(json, 'voicemail') ? undefined : json['voicemail'],
36
42
  };
@@ -47,10 +53,16 @@ function ConversationPbxAgentToJSON(value) {
47
53
  'cellphone': value.cellphone,
48
54
  'conversation_pbx_agent_uuid': value.conversation_pbx_agent_uuid,
49
55
  'conversation_pbx_voicemail_mailbox_uuid': value.conversation_pbx_voicemail_mailbox_uuid,
56
+ 'extension': value.extension,
50
57
  'forward_calls_to_cellphone': value.forward_calls_to_cellphone,
58
+ 'full_name': value.full_name,
59
+ 'login': value.login,
51
60
  'merchant_id': value.merchant_id,
52
61
  'record_outgoing_automatically': value.record_outgoing_automatically,
53
62
  'twilio_taskrouter_worker_id': value.twilio_taskrouter_worker_id,
63
+ 'unavailable_play_audio_uuid': value.unavailable_play_audio_uuid,
64
+ 'unavailable_say': value.unavailable_say,
65
+ 'unavailable_say_voice': value.unavailable_say_voice,
54
66
  'user_id': value.user_id,
55
67
  'voicemail': value.voicemail,
56
68
  };
@@ -44,13 +44,19 @@ export interface ConversationPbxVoicemailMailbox {
44
44
  * @type {string}
45
45
  * @memberof ConversationPbxVoicemailMailbox
46
46
  */
47
- voicemail_follow_play_audio_uuid?: string;
47
+ voicemail_followup_play_audio_uuid?: string;
48
48
  /**
49
49
  * Voicemail followup say
50
50
  * @type {string}
51
51
  * @memberof ConversationPbxVoicemailMailbox
52
52
  */
53
53
  voicemail_followup_say?: string;
54
+ /**
55
+ * Voicemail followup say voice
56
+ * @type {string}
57
+ * @memberof ConversationPbxVoicemailMailbox
58
+ */
59
+ voicemail_followup_say_voice?: string;
54
60
  /**
55
61
  * Voicemail mailbox id
56
62
  * @type {string}
@@ -76,11 +82,11 @@ export interface ConversationPbxVoicemailMailbox {
76
82
  */
77
83
  voicemail_prompt_say?: string;
78
84
  /**
79
- * Voicemail say voice
85
+ * Voicemail prompt say voice
80
86
  * @type {string}
81
87
  * @memberof ConversationPbxVoicemailMailbox
82
88
  */
83
- voicemail_say_voice?: string;
89
+ voicemail_prompt_say_voice?: string;
84
90
  }
85
91
  /**
86
92
  * @export
@@ -35,13 +35,14 @@ function ConversationPbxVoicemailMailboxFromJSONTyped(json, ignoreDiscriminator)
35
35
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
36
36
  'send_notices_to_email': !(0, runtime_1.exists)(json, 'send_notices_to_email') ? undefined : json['send_notices_to_email'],
37
37
  'user_id': !(0, runtime_1.exists)(json, 'user_id') ? undefined : json['user_id'],
38
- 'voicemail_follow_play_audio_uuid': !(0, runtime_1.exists)(json, 'voicemail_follow_play_audio_uuid') ? undefined : json['voicemail_follow_play_audio_uuid'],
38
+ 'voicemail_followup_play_audio_uuid': !(0, runtime_1.exists)(json, 'voicemail_followup_play_audio_uuid') ? undefined : json['voicemail_followup_play_audio_uuid'],
39
39
  'voicemail_followup_say': !(0, runtime_1.exists)(json, 'voicemail_followup_say') ? undefined : json['voicemail_followup_say'],
40
+ 'voicemail_followup_say_voice': !(0, runtime_1.exists)(json, 'voicemail_followup_say_voice') ? undefined : json['voicemail_followup_say_voice'],
40
41
  'voicemail_mailbox_id': !(0, runtime_1.exists)(json, 'voicemail_mailbox_id') ? undefined : json['voicemail_mailbox_id'],
41
42
  'voicemail_mailbox_type': !(0, runtime_1.exists)(json, 'voicemail_mailbox_type') ? undefined : json['voicemail_mailbox_type'],
42
43
  'voicemail_prompt_play_audio_uuid': !(0, runtime_1.exists)(json, 'voicemail_prompt_play_audio_uuid') ? undefined : json['voicemail_prompt_play_audio_uuid'],
43
44
  'voicemail_prompt_say': !(0, runtime_1.exists)(json, 'voicemail_prompt_say') ? undefined : json['voicemail_prompt_say'],
44
- 'voicemail_say_voice': !(0, runtime_1.exists)(json, 'voicemail_say_voice') ? undefined : json['voicemail_say_voice'],
45
+ 'voicemail_prompt_say_voice': !(0, runtime_1.exists)(json, 'voicemail_prompt_say_voice') ? undefined : json['voicemail_prompt_say_voice'],
45
46
  };
46
47
  }
47
48
  exports.ConversationPbxVoicemailMailboxFromJSONTyped = ConversationPbxVoicemailMailboxFromJSONTyped;
@@ -57,13 +58,14 @@ function ConversationPbxVoicemailMailboxToJSON(value) {
57
58
  'merchant_id': value.merchant_id,
58
59
  'send_notices_to_email': value.send_notices_to_email,
59
60
  'user_id': value.user_id,
60
- 'voicemail_follow_play_audio_uuid': value.voicemail_follow_play_audio_uuid,
61
+ 'voicemail_followup_play_audio_uuid': value.voicemail_followup_play_audio_uuid,
61
62
  'voicemail_followup_say': value.voicemail_followup_say,
63
+ 'voicemail_followup_say_voice': value.voicemail_followup_say_voice,
62
64
  'voicemail_mailbox_id': value.voicemail_mailbox_id,
63
65
  'voicemail_mailbox_type': value.voicemail_mailbox_type,
64
66
  'voicemail_prompt_play_audio_uuid': value.voicemail_prompt_play_audio_uuid,
65
67
  'voicemail_prompt_say': value.voicemail_prompt_say,
66
- 'voicemail_say_voice': value.voicemail_say_voice,
68
+ 'voicemail_prompt_say_voice': value.voicemail_prompt_say_voice,
67
69
  };
68
70
  }
69
71
  exports.ConversationPbxVoicemailMailboxToJSON = ConversationPbxVoicemailMailboxToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.218",
3
+ "version": "4.0.220",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -212,10 +212,6 @@ export interface DeleteEngagementRequest {
212
212
  conversationEngagementOid: number;
213
213
  }
214
214
 
215
- export interface DeletePbxAgentRequest {
216
- conversationPbxAgentUuid: string;
217
- }
218
-
219
215
  export interface DeletePbxAgentVoicemailRequest {
220
216
  recordingSid: string;
221
217
  }
@@ -228,10 +224,6 @@ export interface DeletePbxMenuRequest {
228
224
  conversationPbxMenuUuid: string;
229
225
  }
230
226
 
231
- export interface DeletePbxPhoneNumberRequest {
232
- conversationPbxPhoneNumberUuid: string;
233
- }
234
-
235
227
  export interface DeletePbxQueueRequest {
236
228
  conversationPbxQueueUuid: string;
237
229
  }
@@ -360,10 +352,6 @@ export interface InsertConversationEngagementRequest {
360
352
  engagement: ConversationEngagement;
361
353
  }
362
354
 
363
- export interface InsertPbxAgentRequest {
364
- pbxAgent: ConversationPbxAgent;
365
- }
366
-
367
355
  export interface InsertPbxAudioRequest {
368
356
  pbxAudio: ConversationPbxAudio;
369
357
  }
@@ -372,10 +360,6 @@ export interface InsertPbxMenuRequest {
372
360
  pbxMenu: ConversationPbxMenu;
373
361
  }
374
362
 
375
- export interface InsertPbxPhoneNumberRequest {
376
- pbxPhoneNumber: ConversationPbxPhoneNumber;
377
- }
378
-
379
363
  export interface InsertPbxQueueRequest {
380
364
  pbxQueue: ConversationPbxQueue;
381
365
  }
@@ -549,22 +533,6 @@ export interface ConversationApiInterface {
549
533
  */
550
534
  deleteEngagement(requestParameters: DeleteEngagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
551
535
 
552
- /**
553
- * Delete a pbx agent
554
- * @summary Delete pbx agent
555
- * @param {string} conversationPbxAgentUuid
556
- * @param {*} [options] Override http request option.
557
- * @throws {RequiredError}
558
- * @memberof ConversationApiInterface
559
- */
560
- deletePbxAgentRaw(requestParameters: DeletePbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAgentResponse>>;
561
-
562
- /**
563
- * Delete a pbx agent
564
- * Delete pbx agent
565
- */
566
- deletePbxAgent(requestParameters: DeletePbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAgentResponse>;
567
-
568
536
  /**
569
537
  * Delete pbx agent Voicemail
570
538
  * @summary Delete Agent Voicemail
@@ -613,22 +581,6 @@ export interface ConversationApiInterface {
613
581
  */
614
582
  deletePbxMenu(requestParameters: DeletePbxMenuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxMenuResponse>;
615
583
 
616
- /**
617
- * Delete a pbx phoneNumber
618
- * @summary Delete pbx phoneNumber
619
- * @param {string} conversationPbxPhoneNumberUuid
620
- * @param {*} [options] Override http request option.
621
- * @throws {RequiredError}
622
- * @memberof ConversationApiInterface
623
- */
624
- deletePbxPhoneNumberRaw(requestParameters: DeletePbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxPhoneNumberResponse>>;
625
-
626
- /**
627
- * Delete a pbx phoneNumber
628
- * Delete pbx phoneNumber
629
- */
630
- deletePbxPhoneNumber(requestParameters: DeletePbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxPhoneNumberResponse>;
631
-
632
584
  /**
633
585
  * Delete a pbx queue
634
586
  * @summary Delete pbx queue
@@ -1402,22 +1354,6 @@ export interface ConversationApiInterface {
1402
1354
  */
1403
1355
  insertConversationEngagement(requestParameters: InsertConversationEngagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationEngagementResponse>;
1404
1356
 
1405
- /**
1406
- * Insert a pbx agent
1407
- * @summary Insert pbx agent
1408
- * @param {ConversationPbxAgent} pbxAgent Pbx Agent
1409
- * @param {*} [options] Override http request option.
1410
- * @throws {RequiredError}
1411
- * @memberof ConversationApiInterface
1412
- */
1413
- insertPbxAgentRaw(requestParameters: InsertPbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAgentResponse>>;
1414
-
1415
- /**
1416
- * Insert a pbx agent
1417
- * Insert pbx agent
1418
- */
1419
- insertPbxAgent(requestParameters: InsertPbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAgentResponse>;
1420
-
1421
1357
  /**
1422
1358
  * Insert a pbx audio
1423
1359
  * @summary Insert pbx audio
@@ -1450,22 +1386,6 @@ export interface ConversationApiInterface {
1450
1386
  */
1451
1387
  insertPbxMenu(requestParameters: InsertPbxMenuRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxMenuResponse>;
1452
1388
 
1453
- /**
1454
- * Insert a pbx phoneNumber
1455
- * @summary Insert pbx phoneNumber
1456
- * @param {ConversationPbxPhoneNumber} pbxPhoneNumber Pbx PhoneNumber
1457
- * @param {*} [options] Override http request option.
1458
- * @throws {RequiredError}
1459
- * @memberof ConversationApiInterface
1460
- */
1461
- insertPbxPhoneNumberRaw(requestParameters: InsertPbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxPhoneNumberResponse>>;
1462
-
1463
- /**
1464
- * Insert a pbx phoneNumber
1465
- * Insert pbx phoneNumber
1466
- */
1467
- insertPbxPhoneNumber(requestParameters: InsertPbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxPhoneNumberResponse>;
1468
-
1469
1389
  /**
1470
1390
  * Insert a pbx queue
1471
1391
  * @summary Insert pbx queue
@@ -2023,47 +1943,6 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
2023
1943
  await this.deleteEngagementRaw(requestParameters, initOverrides);
2024
1944
  }
2025
1945
 
2026
- /**
2027
- * Delete a pbx agent
2028
- * Delete pbx agent
2029
- */
2030
- async deletePbxAgentRaw(requestParameters: DeletePbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAgentResponse>> {
2031
- if (requestParameters.conversationPbxAgentUuid === null || requestParameters.conversationPbxAgentUuid === undefined) {
2032
- throw new runtime.RequiredError('conversationPbxAgentUuid','Required parameter requestParameters.conversationPbxAgentUuid was null or undefined when calling deletePbxAgent.');
2033
- }
2034
-
2035
- const queryParameters: any = {};
2036
-
2037
- const headerParameters: runtime.HTTPHeaders = {};
2038
-
2039
- if (this.configuration && this.configuration.accessToken) {
2040
- // oauth required
2041
- headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["conversation_write"]);
2042
- }
2043
-
2044
- if (this.configuration && this.configuration.apiKey) {
2045
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
2046
- }
2047
-
2048
- const response = await this.request({
2049
- path: `/conversation/pbx/agent/{conversationPbxAgentUuid}`.replace(`{${"conversationPbxAgentUuid"}}`, encodeURIComponent(String(requestParameters.conversationPbxAgentUuid))),
2050
- method: 'DELETE',
2051
- headers: headerParameters,
2052
- query: queryParameters,
2053
- }, initOverrides);
2054
-
2055
- return new runtime.JSONApiResponse(response, (jsonValue) => ConversationPbxAgentResponseFromJSON(jsonValue));
2056
- }
2057
-
2058
- /**
2059
- * Delete a pbx agent
2060
- * Delete pbx agent
2061
- */
2062
- async deletePbxAgent(requestParameters: DeletePbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAgentResponse> {
2063
- const response = await this.deletePbxAgentRaw(requestParameters, initOverrides);
2064
- return await response.value();
2065
- }
2066
-
2067
1946
  /**
2068
1947
  * Delete pbx agent Voicemail
2069
1948
  * Delete Agent Voicemail
@@ -2186,47 +2065,6 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
2186
2065
  return await response.value();
2187
2066
  }
2188
2067
 
2189
- /**
2190
- * Delete a pbx phoneNumber
2191
- * Delete pbx phoneNumber
2192
- */
2193
- async deletePbxPhoneNumberRaw(requestParameters: DeletePbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxPhoneNumberResponse>> {
2194
- if (requestParameters.conversationPbxPhoneNumberUuid === null || requestParameters.conversationPbxPhoneNumberUuid === undefined) {
2195
- throw new runtime.RequiredError('conversationPbxPhoneNumberUuid','Required parameter requestParameters.conversationPbxPhoneNumberUuid was null or undefined when calling deletePbxPhoneNumber.');
2196
- }
2197
-
2198
- const queryParameters: any = {};
2199
-
2200
- const headerParameters: runtime.HTTPHeaders = {};
2201
-
2202
- if (this.configuration && this.configuration.accessToken) {
2203
- // oauth required
2204
- headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["conversation_write"]);
2205
- }
2206
-
2207
- if (this.configuration && this.configuration.apiKey) {
2208
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
2209
- }
2210
-
2211
- const response = await this.request({
2212
- path: `/conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid}`.replace(`{${"conversationPbxPhoneNumberUuid"}}`, encodeURIComponent(String(requestParameters.conversationPbxPhoneNumberUuid))),
2213
- method: 'DELETE',
2214
- headers: headerParameters,
2215
- query: queryParameters,
2216
- }, initOverrides);
2217
-
2218
- return new runtime.JSONApiResponse(response, (jsonValue) => ConversationPbxPhoneNumberResponseFromJSON(jsonValue));
2219
- }
2220
-
2221
- /**
2222
- * Delete a pbx phoneNumber
2223
- * Delete pbx phoneNumber
2224
- */
2225
- async deletePbxPhoneNumber(requestParameters: DeletePbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxPhoneNumberResponse> {
2226
- const response = await this.deletePbxPhoneNumberRaw(requestParameters, initOverrides);
2227
- return await response.value();
2228
- }
2229
-
2230
2068
  /**
2231
2069
  * Delete a pbx queue
2232
2070
  * Delete pbx queue
@@ -4208,50 +4046,6 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
4208
4046
  return await response.value();
4209
4047
  }
4210
4048
 
4211
- /**
4212
- * Insert a pbx agent
4213
- * Insert pbx agent
4214
- */
4215
- async insertPbxAgentRaw(requestParameters: InsertPbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAgentResponse>> {
4216
- if (requestParameters.pbxAgent === null || requestParameters.pbxAgent === undefined) {
4217
- throw new runtime.RequiredError('pbxAgent','Required parameter requestParameters.pbxAgent was null or undefined when calling insertPbxAgent.');
4218
- }
4219
-
4220
- const queryParameters: any = {};
4221
-
4222
- const headerParameters: runtime.HTTPHeaders = {};
4223
-
4224
- headerParameters['Content-Type'] = 'application/json';
4225
-
4226
- if (this.configuration && this.configuration.accessToken) {
4227
- // oauth required
4228
- headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["conversation_write"]);
4229
- }
4230
-
4231
- if (this.configuration && this.configuration.apiKey) {
4232
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
4233
- }
4234
-
4235
- const response = await this.request({
4236
- path: `/conversation/pbx/agent`,
4237
- method: 'POST',
4238
- headers: headerParameters,
4239
- query: queryParameters,
4240
- body: ConversationPbxAgentToJSON(requestParameters.pbxAgent),
4241
- }, initOverrides);
4242
-
4243
- return new runtime.JSONApiResponse(response, (jsonValue) => ConversationPbxAgentResponseFromJSON(jsonValue));
4244
- }
4245
-
4246
- /**
4247
- * Insert a pbx agent
4248
- * Insert pbx agent
4249
- */
4250
- async insertPbxAgent(requestParameters: InsertPbxAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAgentResponse> {
4251
- const response = await this.insertPbxAgentRaw(requestParameters, initOverrides);
4252
- return await response.value();
4253
- }
4254
-
4255
4049
  /**
4256
4050
  * Insert a pbx audio
4257
4051
  * Insert pbx audio
@@ -4340,50 +4134,6 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
4340
4134
  return await response.value();
4341
4135
  }
4342
4136
 
4343
- /**
4344
- * Insert a pbx phoneNumber
4345
- * Insert pbx phoneNumber
4346
- */
4347
- async insertPbxPhoneNumberRaw(requestParameters: InsertPbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxPhoneNumberResponse>> {
4348
- if (requestParameters.pbxPhoneNumber === null || requestParameters.pbxPhoneNumber === undefined) {
4349
- throw new runtime.RequiredError('pbxPhoneNumber','Required parameter requestParameters.pbxPhoneNumber was null or undefined when calling insertPbxPhoneNumber.');
4350
- }
4351
-
4352
- const queryParameters: any = {};
4353
-
4354
- const headerParameters: runtime.HTTPHeaders = {};
4355
-
4356
- headerParameters['Content-Type'] = 'application/json';
4357
-
4358
- if (this.configuration && this.configuration.accessToken) {
4359
- // oauth required
4360
- headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["conversation_write"]);
4361
- }
4362
-
4363
- if (this.configuration && this.configuration.apiKey) {
4364
- headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
4365
- }
4366
-
4367
- const response = await this.request({
4368
- path: `/conversation/pbx/phone_number`,
4369
- method: 'POST',
4370
- headers: headerParameters,
4371
- query: queryParameters,
4372
- body: ConversationPbxPhoneNumberToJSON(requestParameters.pbxPhoneNumber),
4373
- }, initOverrides);
4374
-
4375
- return new runtime.JSONApiResponse(response, (jsonValue) => ConversationPbxPhoneNumberResponseFromJSON(jsonValue));
4376
- }
4377
-
4378
- /**
4379
- * Insert a pbx phoneNumber
4380
- * Insert pbx phoneNumber
4381
- */
4382
- async insertPbxPhoneNumber(requestParameters: InsertPbxPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxPhoneNumberResponse> {
4383
- const response = await this.insertPbxPhoneNumberRaw(requestParameters, initOverrides);
4384
- return await response.value();
4385
- }
4386
-
4387
4137
  /**
4388
4138
  * Insert a pbx queue
4389
4139
  * Insert pbx queue
@@ -37,12 +37,30 @@ export interface ConversationPbxAgent {
37
37
  * @memberof ConversationPbxAgent
38
38
  */
39
39
  conversation_pbx_voicemail_mailbox_uuid?: string;
40
+ /**
41
+ * Extension
42
+ * @type {number}
43
+ * @memberof ConversationPbxAgent
44
+ */
45
+ extension?: number;
40
46
  /**
41
47
  * True if calls to this agent should be forwarded to their cellphone
42
48
  * @type {boolean}
43
49
  * @memberof ConversationPbxAgent
44
50
  */
45
51
  forward_calls_to_cellphone?: boolean;
52
+ /**
53
+ * Full name
54
+ * @type {string}
55
+ * @memberof ConversationPbxAgent
56
+ */
57
+ full_name?: string;
58
+ /**
59
+ * Agent login
60
+ * @type {string}
61
+ * @memberof ConversationPbxAgent
62
+ */
63
+ login?: string;
46
64
  /**
47
65
  * Merchant Id
48
66
  * @type {string}
@@ -61,6 +79,24 @@ export interface ConversationPbxAgent {
61
79
  * @memberof ConversationPbxAgent
62
80
  */
63
81
  twilio_taskrouter_worker_id?: string;
82
+ /**
83
+ * Unavailable play audio UUID
84
+ * @type {string}
85
+ * @memberof ConversationPbxAgent
86
+ */
87
+ unavailable_play_audio_uuid?: string;
88
+ /**
89
+ * Unavailable say
90
+ * @type {string}
91
+ * @memberof ConversationPbxAgent
92
+ */
93
+ unavailable_say?: string;
94
+ /**
95
+ * Unavailable say voice
96
+ * @type {string}
97
+ * @memberof ConversationPbxAgent
98
+ */
99
+ unavailable_say_voice?: string;
64
100
  /**
65
101
  * User Id
66
102
  * @type {number}
@@ -88,10 +124,16 @@ export function ConversationPbxAgentFromJSONTyped(json: any, ignoreDiscriminator
88
124
  'cellphone': !exists(json, 'cellphone') ? undefined : json['cellphone'],
89
125
  'conversation_pbx_agent_uuid': !exists(json, 'conversation_pbx_agent_uuid') ? undefined : json['conversation_pbx_agent_uuid'],
90
126
  'conversation_pbx_voicemail_mailbox_uuid': !exists(json, 'conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['conversation_pbx_voicemail_mailbox_uuid'],
127
+ 'extension': !exists(json, 'extension') ? undefined : json['extension'],
91
128
  'forward_calls_to_cellphone': !exists(json, 'forward_calls_to_cellphone') ? undefined : json['forward_calls_to_cellphone'],
129
+ 'full_name': !exists(json, 'full_name') ? undefined : json['full_name'],
130
+ 'login': !exists(json, 'login') ? undefined : json['login'],
92
131
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
93
132
  'record_outgoing_automatically': !exists(json, 'record_outgoing_automatically') ? undefined : json['record_outgoing_automatically'],
94
133
  'twilio_taskrouter_worker_id': !exists(json, 'twilio_taskrouter_worker_id') ? undefined : json['twilio_taskrouter_worker_id'],
134
+ 'unavailable_play_audio_uuid': !exists(json, 'unavailable_play_audio_uuid') ? undefined : json['unavailable_play_audio_uuid'],
135
+ 'unavailable_say': !exists(json, 'unavailable_say') ? undefined : json['unavailable_say'],
136
+ 'unavailable_say_voice': !exists(json, 'unavailable_say_voice') ? undefined : json['unavailable_say_voice'],
95
137
  'user_id': !exists(json, 'user_id') ? undefined : json['user_id'],
96
138
  'voicemail': !exists(json, 'voicemail') ? undefined : json['voicemail'],
97
139
  };
@@ -109,10 +151,16 @@ export function ConversationPbxAgentToJSON(value?: ConversationPbxAgent | null):
109
151
  'cellphone': value.cellphone,
110
152
  'conversation_pbx_agent_uuid': value.conversation_pbx_agent_uuid,
111
153
  'conversation_pbx_voicemail_mailbox_uuid': value.conversation_pbx_voicemail_mailbox_uuid,
154
+ 'extension': value.extension,
112
155
  'forward_calls_to_cellphone': value.forward_calls_to_cellphone,
156
+ 'full_name': value.full_name,
157
+ 'login': value.login,
113
158
  'merchant_id': value.merchant_id,
114
159
  'record_outgoing_automatically': value.record_outgoing_automatically,
115
160
  'twilio_taskrouter_worker_id': value.twilio_taskrouter_worker_id,
161
+ 'unavailable_play_audio_uuid': value.unavailable_play_audio_uuid,
162
+ 'unavailable_say': value.unavailable_say,
163
+ 'unavailable_say_voice': value.unavailable_say_voice,
116
164
  'user_id': value.user_id,
117
165
  'voicemail': value.voicemail,
118
166
  };
@@ -48,13 +48,19 @@ export interface ConversationPbxVoicemailMailbox {
48
48
  * @type {string}
49
49
  * @memberof ConversationPbxVoicemailMailbox
50
50
  */
51
- voicemail_follow_play_audio_uuid?: string;
51
+ voicemail_followup_play_audio_uuid?: string;
52
52
  /**
53
53
  * Voicemail followup say
54
54
  * @type {string}
55
55
  * @memberof ConversationPbxVoicemailMailbox
56
56
  */
57
57
  voicemail_followup_say?: string;
58
+ /**
59
+ * Voicemail followup say voice
60
+ * @type {string}
61
+ * @memberof ConversationPbxVoicemailMailbox
62
+ */
63
+ voicemail_followup_say_voice?: string;
58
64
  /**
59
65
  * Voicemail mailbox id
60
66
  * @type {string}
@@ -80,11 +86,11 @@ export interface ConversationPbxVoicemailMailbox {
80
86
  */
81
87
  voicemail_prompt_say?: string;
82
88
  /**
83
- * Voicemail say voice
89
+ * Voicemail prompt say voice
84
90
  * @type {string}
85
91
  * @memberof ConversationPbxVoicemailMailbox
86
92
  */
87
- voicemail_say_voice?: string;
93
+ voicemail_prompt_say_voice?: string;
88
94
  }
89
95
 
90
96
 
@@ -112,13 +118,14 @@ export function ConversationPbxVoicemailMailboxFromJSONTyped(json: any, ignoreDi
112
118
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
113
119
  'send_notices_to_email': !exists(json, 'send_notices_to_email') ? undefined : json['send_notices_to_email'],
114
120
  'user_id': !exists(json, 'user_id') ? undefined : json['user_id'],
115
- 'voicemail_follow_play_audio_uuid': !exists(json, 'voicemail_follow_play_audio_uuid') ? undefined : json['voicemail_follow_play_audio_uuid'],
121
+ 'voicemail_followup_play_audio_uuid': !exists(json, 'voicemail_followup_play_audio_uuid') ? undefined : json['voicemail_followup_play_audio_uuid'],
116
122
  'voicemail_followup_say': !exists(json, 'voicemail_followup_say') ? undefined : json['voicemail_followup_say'],
123
+ 'voicemail_followup_say_voice': !exists(json, 'voicemail_followup_say_voice') ? undefined : json['voicemail_followup_say_voice'],
117
124
  'voicemail_mailbox_id': !exists(json, 'voicemail_mailbox_id') ? undefined : json['voicemail_mailbox_id'],
118
125
  'voicemail_mailbox_type': !exists(json, 'voicemail_mailbox_type') ? undefined : json['voicemail_mailbox_type'],
119
126
  'voicemail_prompt_play_audio_uuid': !exists(json, 'voicemail_prompt_play_audio_uuid') ? undefined : json['voicemail_prompt_play_audio_uuid'],
120
127
  'voicemail_prompt_say': !exists(json, 'voicemail_prompt_say') ? undefined : json['voicemail_prompt_say'],
121
- 'voicemail_say_voice': !exists(json, 'voicemail_say_voice') ? undefined : json['voicemail_say_voice'],
128
+ 'voicemail_prompt_say_voice': !exists(json, 'voicemail_prompt_say_voice') ? undefined : json['voicemail_prompt_say_voice'],
122
129
  };
123
130
  }
124
131
 
@@ -135,13 +142,14 @@ export function ConversationPbxVoicemailMailboxToJSON(value?: ConversationPbxVoi
135
142
  'merchant_id': value.merchant_id,
136
143
  'send_notices_to_email': value.send_notices_to_email,
137
144
  'user_id': value.user_id,
138
- 'voicemail_follow_play_audio_uuid': value.voicemail_follow_play_audio_uuid,
145
+ 'voicemail_followup_play_audio_uuid': value.voicemail_followup_play_audio_uuid,
139
146
  'voicemail_followup_say': value.voicemail_followup_say,
147
+ 'voicemail_followup_say_voice': value.voicemail_followup_say_voice,
140
148
  'voicemail_mailbox_id': value.voicemail_mailbox_id,
141
149
  'voicemail_mailbox_type': value.voicemail_mailbox_type,
142
150
  'voicemail_prompt_play_audio_uuid': value.voicemail_prompt_play_audio_uuid,
143
151
  'voicemail_prompt_say': value.voicemail_prompt_say,
144
- 'voicemail_say_voice': value.voicemail_say_voice,
152
+ 'voicemail_prompt_say_voice': value.voicemail_prompt_say_voice,
145
153
  };
146
154
  }
147
155