ultracart_rest_api_v2_typescript 4.1.38 → 4.1.40

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.
@@ -608,6 +608,8 @@ src/models/ItemInternal.ts
608
608
  src/models/ItemInventorySnapshot.ts
609
609
  src/models/ItemInventorySnapshotDistributionCenter.ts
610
610
  src/models/ItemInventorySnapshotResponse.ts
611
+ src/models/ItemInventoryUpdate.ts
612
+ src/models/ItemInventoryUpdateRequest.ts
611
613
  src/models/ItemKitComponent.ts
612
614
  src/models/ItemKitDefinition.ts
613
615
  src/models/ItemOption.ts
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.38
2
+ ## ultracart_rest_api_v2_typescript@4.1.40
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.38 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.40 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.40 | 01/07/2026 | convseration - AI agent profile voice settings |
89
+ | 4.1.39 | 12/31/2025 | conversations AI - queue AI settings |
88
90
  | 4.1.38 | 12/29/2025 | conversations - AI agent level capabilities |
89
91
  | 4.1.37 | 12/29/2025 | conversations - pbx agent AI flag |
90
92
  | 4.1.36 | 12/22/2025 | conversation - agent auth worker token v2 |
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Item, ItemContentAttribute, ItemDigitalItem, ItemDigitalItemResponse, ItemDigitalItemsResponse, ItemInventorySnapshotResponse, ItemResponse, ItemReview, ItemReviewResponse, ItemReviewsResponse, ItemShippingDistributionCenter, ItemShippingDistributionCenterResponse, ItemsRequest, ItemsResponse, PricingTiersResponse, TempMultimediaResponse } from '../models';
13
+ import { Item, ItemContentAttribute, ItemDigitalItem, ItemDigitalItemResponse, ItemDigitalItemsResponse, ItemInventorySnapshotResponse, ItemInventoryUpdateRequest, ItemResponse, ItemReview, ItemReviewResponse, ItemReviewsResponse, ItemShippingDistributionCenter, ItemShippingDistributionCenterResponse, ItemsRequest, ItemsResponse, PricingTiersResponse, TempMultimediaResponse } from '../models';
14
14
  export interface DeleteDigitalItemRequest {
15
15
  digitalItemOid: number;
16
16
  }
@@ -105,6 +105,9 @@ export interface UpdateItemRequest {
105
105
  expand?: string;
106
106
  placeholders?: boolean;
107
107
  }
108
+ export interface UpdateItemInventoriesRequest {
109
+ itemInventoryUpdateRequest: ItemInventoryUpdateRequest;
110
+ }
108
111
  export interface UpdateItemShippingDistributionCenterByCodeRequest {
109
112
  merchantItemOid: number;
110
113
  distributionCenterCode: string;
@@ -458,6 +461,20 @@ export interface ItemApiInterface {
458
461
  * Update an item
459
462
  */
460
463
  updateItem(requestParameters: UpdateItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemResponse>;
464
+ /**
465
+ * Update item inventories for a distribution center
466
+ * @summary Update item inventories for a distribution center
467
+ * @param {ItemInventoryUpdateRequest} itemInventoryUpdateRequest Item inventory updates
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ * @memberof ItemApiInterface
471
+ */
472
+ updateItemInventoriesRaw(requestParameters: UpdateItemInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
473
+ /**
474
+ * Update item inventories for a distribution center
475
+ * Update item inventories for a distribution center
476
+ */
477
+ updateItemInventories(requestParameters: UpdateItemInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
461
478
  /**
462
479
  * Update an item shipping distribution center
463
480
  * @summary Update an item shipping distribution center
@@ -736,6 +753,16 @@ export declare class ItemApi extends runtime.BaseAPI implements ItemApiInterface
736
753
  * Update an item
737
754
  */
738
755
  updateItem(requestParameters: UpdateItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemResponse>;
756
+ /**
757
+ * Update item inventories for a distribution center
758
+ * Update item inventories for a distribution center
759
+ */
760
+ updateItemInventoriesRaw(requestParameters: UpdateItemInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
761
+ /**
762
+ * Update item inventories for a distribution center
763
+ * Update item inventories for a distribution center
764
+ */
765
+ updateItemInventories(requestParameters: UpdateItemInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
739
766
  /**
740
767
  * Update an item shipping distribution center
741
768
  * Update an item shipping distribution center
@@ -1421,6 +1421,65 @@ var ItemApi = /** @class */ (function (_super) {
1421
1421
  });
1422
1422
  });
1423
1423
  };
1424
+ /**
1425
+ * Update item inventories for a distribution center
1426
+ * Update item inventories for a distribution center
1427
+ */
1428
+ ItemApi.prototype.updateItemInventoriesRaw = function (requestParameters, initOverrides) {
1429
+ return __awaiter(this, void 0, void 0, function () {
1430
+ var queryParameters, headerParameters, _a, _b, response;
1431
+ return __generator(this, function (_c) {
1432
+ switch (_c.label) {
1433
+ case 0:
1434
+ if (requestParameters.itemInventoryUpdateRequest === null || requestParameters.itemInventoryUpdateRequest === undefined) {
1435
+ throw new runtime.RequiredError('itemInventoryUpdateRequest', 'Required parameter requestParameters.itemInventoryUpdateRequest was null or undefined when calling updateItemInventories.');
1436
+ }
1437
+ queryParameters = {};
1438
+ headerParameters = {};
1439
+ headerParameters['Content-Type'] = 'application/json; charset=UTF-8';
1440
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1441
+ // oauth required
1442
+ _a = headerParameters;
1443
+ _b = "Authorization";
1444
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["item_write"])];
1445
+ case 1:
1446
+ // oauth required
1447
+ _a[_b] = _c.sent();
1448
+ _c.label = 2;
1449
+ case 2:
1450
+ if (this.configuration && this.configuration.apiKey) {
1451
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
1452
+ }
1453
+ return [4 /*yield*/, this.request({
1454
+ path: "/item/items/update_item_inventories",
1455
+ method: 'PUT',
1456
+ headers: headerParameters,
1457
+ query: queryParameters,
1458
+ body: (0, models_1.ItemInventoryUpdateRequestToJSON)(requestParameters.itemInventoryUpdateRequest),
1459
+ }, initOverrides)];
1460
+ case 3:
1461
+ response = _c.sent();
1462
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1463
+ }
1464
+ });
1465
+ });
1466
+ };
1467
+ /**
1468
+ * Update item inventories for a distribution center
1469
+ * Update item inventories for a distribution center
1470
+ */
1471
+ ItemApi.prototype.updateItemInventories = function (requestParameters, initOverrides) {
1472
+ return __awaiter(this, void 0, void 0, function () {
1473
+ return __generator(this, function (_a) {
1474
+ switch (_a.label) {
1475
+ case 0: return [4 /*yield*/, this.updateItemInventoriesRaw(requestParameters, initOverrides)];
1476
+ case 1:
1477
+ _a.sent();
1478
+ return [2 /*return*/];
1479
+ }
1480
+ });
1481
+ });
1482
+ };
1424
1483
  /**
1425
1484
  * Update an item shipping distribution center
1426
1485
  * Update an item shipping distribution center
@@ -52,6 +52,18 @@ export interface ConversationAgentProfile {
52
52
  * @memberof ConversationAgentProfile
53
53
  */
54
54
  ai_ticket_instructions?: string;
55
+ /**
56
+ * Additional voice instructions for this AI when handling voice calls
57
+ * @type {string}
58
+ * @memberof ConversationAgentProfile
59
+ */
60
+ ai_voice_instructions?: string;
61
+ /**
62
+ * Which AI voice personality to use when handling the call.
63
+ * @type {string}
64
+ * @memberof ConversationAgentProfile
65
+ */
66
+ ai_voice_personality?: ConversationAgentProfileAiVoicePersonalityEnum;
55
67
  /**
56
68
  * The number of engagement chats that can be pushed on them at any given time.
57
69
  * @type {number}
@@ -113,6 +125,17 @@ export interface ConversationAgentProfile {
113
125
  */
114
126
  zohodesk_departments?: Array<string>;
115
127
  }
128
+ /**
129
+ * @export
130
+ */
131
+ export declare const ConversationAgentProfileAiVoicePersonalityEnum: {
132
+ readonly Ara: "Ara";
133
+ readonly Rex: "Rex";
134
+ readonly Sal: "Sal";
135
+ readonly Eve: "Eve";
136
+ readonly Leo: "Leo";
137
+ };
138
+ export type ConversationAgentProfileAiVoicePersonalityEnum = typeof ConversationAgentProfileAiVoicePersonalityEnum[keyof typeof ConversationAgentProfileAiVoicePersonalityEnum];
116
139
  /**
117
140
  * @export
118
141
  */
@@ -13,9 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationAgentProfileToJSON = exports.ConversationAgentProfileFromJSONTyped = exports.ConversationAgentProfileFromJSON = exports.instanceOfConversationAgentProfile = exports.ConversationAgentProfileDefaultStatusEnum = void 0;
16
+ exports.ConversationAgentProfileToJSON = exports.ConversationAgentProfileFromJSONTyped = exports.ConversationAgentProfileFromJSON = exports.instanceOfConversationAgentProfile = exports.ConversationAgentProfileDefaultStatusEnum = exports.ConversationAgentProfileAiVoicePersonalityEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var ConversationVirtualAgentCapabilities_1 = require("./ConversationVirtualAgentCapabilities");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.ConversationAgentProfileAiVoicePersonalityEnum = {
23
+ Ara: 'Ara',
24
+ Rex: 'Rex',
25
+ Sal: 'Sal',
26
+ Eve: 'Eve',
27
+ Leo: 'Leo'
28
+ };
19
29
  /**
20
30
  * @export
21
31
  */
@@ -47,6 +57,8 @@ function ConversationAgentProfileFromJSONTyped(json, ignoreDiscriminator) {
47
57
  'ai_persona': !(0, runtime_1.exists)(json, 'ai_persona') ? undefined : json['ai_persona'],
48
58
  'ai_sms_instructions': !(0, runtime_1.exists)(json, 'ai_sms_instructions') ? undefined : json['ai_sms_instructions'],
49
59
  'ai_ticket_instructions': !(0, runtime_1.exists)(json, 'ai_ticket_instructions') ? undefined : json['ai_ticket_instructions'],
60
+ 'ai_voice_instructions': !(0, runtime_1.exists)(json, 'ai_voice_instructions') ? undefined : json['ai_voice_instructions'],
61
+ 'ai_voice_personality': !(0, runtime_1.exists)(json, 'ai_voice_personality') ? undefined : json['ai_voice_personality'],
50
62
  'chat_limit': !(0, runtime_1.exists)(json, 'chat_limit') ? undefined : json['chat_limit'],
51
63
  'default_language_iso_code': !(0, runtime_1.exists)(json, 'default_language_iso_code') ? undefined : json['default_language_iso_code'],
52
64
  'default_status': !(0, runtime_1.exists)(json, 'default_status') ? undefined : json['default_status'],
@@ -74,6 +86,8 @@ function ConversationAgentProfileToJSON(value) {
74
86
  'ai_persona': value.ai_persona,
75
87
  'ai_sms_instructions': value.ai_sms_instructions,
76
88
  'ai_ticket_instructions': value.ai_ticket_instructions,
89
+ 'ai_voice_instructions': value.ai_voice_instructions,
90
+ 'ai_voice_personality': value.ai_voice_personality,
77
91
  'chat_limit': value.chat_limit,
78
92
  'default_language_iso_code': value.default_language_iso_code,
79
93
  'default_status': value.default_status,
@@ -16,6 +16,18 @@ import { ConversationPbxQueueMembers } from './ConversationPbxQueueMembers';
16
16
  * @interface ConversationPbxQueue
17
17
  */
18
18
  export interface ConversationPbxQueue {
19
+ /**
20
+ * AI Agent Priority compared to human agents
21
+ * @type {string}
22
+ * @memberof ConversationPbxQueue
23
+ */
24
+ ai_priority?: ConversationPbxQueueAiPriorityEnum;
25
+ /**
26
+ * AI timeout seconds
27
+ * @type {number}
28
+ * @memberof ConversationPbxQueue
29
+ */
30
+ ai_timeout_seconds?: number;
19
31
  /**
20
32
  * If true, the customer is told their queue position upon entering the queue
21
33
  * @type {boolean}
@@ -143,6 +155,15 @@ export interface ConversationPbxQueue {
143
155
  */
144
156
  wrap_up_seconds?: number;
145
157
  }
158
+ /**
159
+ * @export
160
+ */
161
+ export declare const ConversationPbxQueueAiPriorityEnum: {
162
+ readonly Neutral: "neutral";
163
+ readonly First: "first";
164
+ readonly Backup: "backup";
165
+ };
166
+ export type ConversationPbxQueueAiPriorityEnum = typeof ConversationPbxQueueAiPriorityEnum[keyof typeof ConversationPbxQueueAiPriorityEnum];
146
167
  /**
147
168
  * Check if a given object implements the ConversationPbxQueue interface.
148
169
  */
@@ -13,9 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationPbxQueueToJSON = exports.ConversationPbxQueueFromJSONTyped = exports.ConversationPbxQueueFromJSON = exports.instanceOfConversationPbxQueue = void 0;
16
+ exports.ConversationPbxQueueToJSON = exports.ConversationPbxQueueFromJSONTyped = exports.ConversationPbxQueueFromJSON = exports.instanceOfConversationPbxQueue = exports.ConversationPbxQueueAiPriorityEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var ConversationPbxQueueMembers_1 = require("./ConversationPbxQueueMembers");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.ConversationPbxQueueAiPriorityEnum = {
23
+ Neutral: 'neutral',
24
+ First: 'first',
25
+ Backup: 'backup'
26
+ };
19
27
  /**
20
28
  * Check if a given object implements the ConversationPbxQueue interface.
21
29
  */
@@ -33,6 +41,8 @@ function ConversationPbxQueueFromJSONTyped(json, ignoreDiscriminator) {
33
41
  return json;
34
42
  }
35
43
  return {
44
+ 'ai_priority': !(0, runtime_1.exists)(json, 'ai_priority') ? undefined : json['ai_priority'],
45
+ 'ai_timeout_seconds': !(0, runtime_1.exists)(json, 'ai_timeout_seconds') ? undefined : json['ai_timeout_seconds'],
36
46
  'announce_queue_position': !(0, runtime_1.exists)(json, 'announce_queue_position') ? undefined : json['announce_queue_position'],
37
47
  'conversation_pbx_queue_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_queue_uuid') ? undefined : json['conversation_pbx_queue_uuid'],
38
48
  'conversation_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'conversation_voicemail_mailbox_uuid') ? undefined : json['conversation_voicemail_mailbox_uuid'],
@@ -65,6 +75,8 @@ function ConversationPbxQueueToJSON(value) {
65
75
  return null;
66
76
  }
67
77
  return {
78
+ 'ai_priority': value.ai_priority,
79
+ 'ai_timeout_seconds': value.ai_timeout_seconds,
68
80
  'announce_queue_position': value.announce_queue_position,
69
81
  'conversation_pbx_queue_uuid': value.conversation_pbx_queue_uuid,
70
82
  'conversation_voicemail_mailbox_uuid': value.conversation_voicemail_mailbox_uuid,
@@ -0,0 +1,43 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ItemInventoryUpdate
16
+ */
17
+ export interface ItemInventoryUpdate {
18
+ /**
19
+ * Distribution center code
20
+ * @type {string}
21
+ * @memberof ItemInventoryUpdate
22
+ */
23
+ distribution_center_code?: string;
24
+ /**
25
+ * Inventory level
26
+ * @type {number}
27
+ * @memberof ItemInventoryUpdate
28
+ */
29
+ inventory_level?: number;
30
+ /**
31
+ * Merchant Item ID
32
+ * @type {string}
33
+ * @memberof ItemInventoryUpdate
34
+ */
35
+ merchant_item_id?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ItemInventoryUpdate interface.
39
+ */
40
+ export declare function instanceOfItemInventoryUpdate(value: object): boolean;
41
+ export declare function ItemInventoryUpdateFromJSON(json: any): ItemInventoryUpdate;
42
+ export declare function ItemInventoryUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventoryUpdate;
43
+ export declare function ItemInventoryUpdateToJSON(value?: ItemInventoryUpdate | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ItemInventoryUpdateToJSON = exports.ItemInventoryUpdateFromJSONTyped = exports.ItemInventoryUpdateFromJSON = exports.instanceOfItemInventoryUpdate = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ItemInventoryUpdate interface.
20
+ */
21
+ function instanceOfItemInventoryUpdate(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfItemInventoryUpdate = instanceOfItemInventoryUpdate;
26
+ function ItemInventoryUpdateFromJSON(json) {
27
+ return ItemInventoryUpdateFromJSONTyped(json, false);
28
+ }
29
+ exports.ItemInventoryUpdateFromJSON = ItemInventoryUpdateFromJSON;
30
+ function ItemInventoryUpdateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'distribution_center_code': !(0, runtime_1.exists)(json, 'distribution_center_code') ? undefined : json['distribution_center_code'],
36
+ 'inventory_level': !(0, runtime_1.exists)(json, 'inventory_level') ? undefined : json['inventory_level'],
37
+ 'merchant_item_id': !(0, runtime_1.exists)(json, 'merchant_item_id') ? undefined : json['merchant_item_id'],
38
+ };
39
+ }
40
+ exports.ItemInventoryUpdateFromJSONTyped = ItemInventoryUpdateFromJSONTyped;
41
+ function ItemInventoryUpdateToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'distribution_center_code': value.distribution_center_code,
50
+ 'inventory_level': value.inventory_level,
51
+ 'merchant_item_id': value.merchant_item_id,
52
+ };
53
+ }
54
+ exports.ItemInventoryUpdateToJSON = ItemInventoryUpdateToJSON;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ItemInventoryUpdate } from './ItemInventoryUpdate';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ItemInventoryUpdateRequest
17
+ */
18
+ export interface ItemInventoryUpdateRequest {
19
+ /**
20
+ * Inventory updates array
21
+ * @type {Array<ItemInventoryUpdate>}
22
+ * @memberof ItemInventoryUpdateRequest
23
+ */
24
+ inventory_updates?: Array<ItemInventoryUpdate>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ItemInventoryUpdateRequest interface.
28
+ */
29
+ export declare function instanceOfItemInventoryUpdateRequest(value: object): boolean;
30
+ export declare function ItemInventoryUpdateRequestFromJSON(json: any): ItemInventoryUpdateRequest;
31
+ export declare function ItemInventoryUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventoryUpdateRequest;
32
+ export declare function ItemInventoryUpdateRequestToJSON(value?: ItemInventoryUpdateRequest | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ItemInventoryUpdateRequestToJSON = exports.ItemInventoryUpdateRequestFromJSONTyped = exports.ItemInventoryUpdateRequestFromJSON = exports.instanceOfItemInventoryUpdateRequest = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var ItemInventoryUpdate_1 = require("./ItemInventoryUpdate");
19
+ /**
20
+ * Check if a given object implements the ItemInventoryUpdateRequest interface.
21
+ */
22
+ function instanceOfItemInventoryUpdateRequest(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfItemInventoryUpdateRequest = instanceOfItemInventoryUpdateRequest;
27
+ function ItemInventoryUpdateRequestFromJSON(json) {
28
+ return ItemInventoryUpdateRequestFromJSONTyped(json, false);
29
+ }
30
+ exports.ItemInventoryUpdateRequestFromJSON = ItemInventoryUpdateRequestFromJSON;
31
+ function ItemInventoryUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'inventory_updates': !(0, runtime_1.exists)(json, 'inventory_updates') ? undefined : (json['inventory_updates'].map(ItemInventoryUpdate_1.ItemInventoryUpdateFromJSON)),
37
+ };
38
+ }
39
+ exports.ItemInventoryUpdateRequestFromJSONTyped = ItemInventoryUpdateRequestFromJSONTyped;
40
+ function ItemInventoryUpdateRequestToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'inventory_updates': value.inventory_updates === undefined ? undefined : (value.inventory_updates.map(ItemInventoryUpdate_1.ItemInventoryUpdateToJSON)),
49
+ };
50
+ }
51
+ exports.ItemInventoryUpdateRequestToJSON = ItemInventoryUpdateRequestToJSON;
@@ -582,6 +582,8 @@ export * from './ItemInternal';
582
582
  export * from './ItemInventorySnapshot';
583
583
  export * from './ItemInventorySnapshotDistributionCenter';
584
584
  export * from './ItemInventorySnapshotResponse';
585
+ export * from './ItemInventoryUpdate';
586
+ export * from './ItemInventoryUpdateRequest';
585
587
  export * from './ItemKitComponent';
586
588
  export * from './ItemKitDefinition';
587
589
  export * from './ItemOption';
@@ -600,6 +600,8 @@ __exportStar(require("./ItemInternal"), exports);
600
600
  __exportStar(require("./ItemInventorySnapshot"), exports);
601
601
  __exportStar(require("./ItemInventorySnapshotDistributionCenter"), exports);
602
602
  __exportStar(require("./ItemInventorySnapshotResponse"), exports);
603
+ __exportStar(require("./ItemInventoryUpdate"), exports);
604
+ __exportStar(require("./ItemInventoryUpdateRequest"), exports);
603
605
  __exportStar(require("./ItemKitComponent"), exports);
604
606
  __exportStar(require("./ItemKitDefinition"), exports);
605
607
  __exportStar(require("./ItemOption"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.38",
3
+ "version": "4.1.40",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -36,6 +36,9 @@ import {
36
36
  ItemInventorySnapshotResponse,
37
37
  ItemInventorySnapshotResponseFromJSON,
38
38
  ItemInventorySnapshotResponseToJSON,
39
+ ItemInventoryUpdateRequest,
40
+ ItemInventoryUpdateRequestFromJSON,
41
+ ItemInventoryUpdateRequestToJSON,
39
42
  ItemResponse,
40
43
  ItemResponseFromJSON,
41
44
  ItemResponseToJSON,
@@ -182,6 +185,10 @@ export interface UpdateItemRequest {
182
185
  placeholders?: boolean;
183
186
  }
184
187
 
188
+ export interface UpdateItemInventoriesRequest {
189
+ itemInventoryUpdateRequest: ItemInventoryUpdateRequest;
190
+ }
191
+
185
192
  export interface UpdateItemShippingDistributionCenterByCodeRequest {
186
193
  merchantItemOid: number;
187
194
  distributionCenterCode: string;
@@ -581,6 +588,22 @@ export interface ItemApiInterface {
581
588
  */
582
589
  updateItem(requestParameters: UpdateItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ItemResponse>;
583
590
 
591
+ /**
592
+ * Update item inventories for a distribution center
593
+ * @summary Update item inventories for a distribution center
594
+ * @param {ItemInventoryUpdateRequest} itemInventoryUpdateRequest Item inventory updates
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ * @memberof ItemApiInterface
598
+ */
599
+ updateItemInventoriesRaw(requestParameters: UpdateItemInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
600
+
601
+ /**
602
+ * Update item inventories for a distribution center
603
+ * Update item inventories for a distribution center
604
+ */
605
+ updateItemInventories(requestParameters: UpdateItemInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
606
+
584
607
  /**
585
608
  * Update an item shipping distribution center
586
609
  * @summary Update an item shipping distribution center
@@ -1666,6 +1689,49 @@ export class ItemApi extends runtime.BaseAPI implements ItemApiInterface {
1666
1689
  return await response.value();
1667
1690
  }
1668
1691
 
1692
+ /**
1693
+ * Update item inventories for a distribution center
1694
+ * Update item inventories for a distribution center
1695
+ */
1696
+ async updateItemInventoriesRaw(requestParameters: UpdateItemInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1697
+ if (requestParameters.itemInventoryUpdateRequest === null || requestParameters.itemInventoryUpdateRequest === undefined) {
1698
+ throw new runtime.RequiredError('itemInventoryUpdateRequest','Required parameter requestParameters.itemInventoryUpdateRequest was null or undefined when calling updateItemInventories.');
1699
+ }
1700
+
1701
+ const queryParameters: any = {};
1702
+
1703
+ const headerParameters: runtime.HTTPHeaders = {};
1704
+
1705
+ headerParameters['Content-Type'] = 'application/json; charset=UTF-8';
1706
+
1707
+ if (this.configuration && this.configuration.accessToken) {
1708
+ // oauth required
1709
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["item_write"]);
1710
+ }
1711
+
1712
+ if (this.configuration && this.configuration.apiKey) {
1713
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
1714
+ }
1715
+
1716
+ const response = await this.request({
1717
+ path: `/item/items/update_item_inventories`,
1718
+ method: 'PUT',
1719
+ headers: headerParameters,
1720
+ query: queryParameters,
1721
+ body: ItemInventoryUpdateRequestToJSON(requestParameters.itemInventoryUpdateRequest),
1722
+ }, initOverrides);
1723
+
1724
+ return new runtime.VoidApiResponse(response);
1725
+ }
1726
+
1727
+ /**
1728
+ * Update item inventories for a distribution center
1729
+ * Update item inventories for a distribution center
1730
+ */
1731
+ async updateItemInventories(requestParameters: UpdateItemInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1732
+ await this.updateItemInventoriesRaw(requestParameters, initOverrides);
1733
+ }
1734
+
1669
1735
  /**
1670
1736
  * Update an item shipping distribution center
1671
1737
  * Update an item shipping distribution center
@@ -62,6 +62,18 @@ export interface ConversationAgentProfile {
62
62
  * @memberof ConversationAgentProfile
63
63
  */
64
64
  ai_ticket_instructions?: string;
65
+ /**
66
+ * Additional voice instructions for this AI when handling voice calls
67
+ * @type {string}
68
+ * @memberof ConversationAgentProfile
69
+ */
70
+ ai_voice_instructions?: string;
71
+ /**
72
+ * Which AI voice personality to use when handling the call.
73
+ * @type {string}
74
+ * @memberof ConversationAgentProfile
75
+ */
76
+ ai_voice_personality?: ConversationAgentProfileAiVoicePersonalityEnum;
65
77
  /**
66
78
  * The number of engagement chats that can be pushed on them at any given time.
67
79
  * @type {number}
@@ -126,6 +138,18 @@ export interface ConversationAgentProfile {
126
138
 
127
139
 
128
140
 
141
+ /**
142
+ * @export
143
+ */
144
+ export const ConversationAgentProfileAiVoicePersonalityEnum = {
145
+ Ara: 'Ara',
146
+ Rex: 'Rex',
147
+ Sal: 'Sal',
148
+ Eve: 'Eve',
149
+ Leo: 'Leo'
150
+ } as const;
151
+ export type ConversationAgentProfileAiVoicePersonalityEnum = typeof ConversationAgentProfileAiVoicePersonalityEnum[keyof typeof ConversationAgentProfileAiVoicePersonalityEnum];
152
+
129
153
  /**
130
154
  * @export
131
155
  */
@@ -162,6 +186,8 @@ export function ConversationAgentProfileFromJSONTyped(json: any, ignoreDiscrimin
162
186
  'ai_persona': !exists(json, 'ai_persona') ? undefined : json['ai_persona'],
163
187
  'ai_sms_instructions': !exists(json, 'ai_sms_instructions') ? undefined : json['ai_sms_instructions'],
164
188
  'ai_ticket_instructions': !exists(json, 'ai_ticket_instructions') ? undefined : json['ai_ticket_instructions'],
189
+ 'ai_voice_instructions': !exists(json, 'ai_voice_instructions') ? undefined : json['ai_voice_instructions'],
190
+ 'ai_voice_personality': !exists(json, 'ai_voice_personality') ? undefined : json['ai_voice_personality'],
165
191
  'chat_limit': !exists(json, 'chat_limit') ? undefined : json['chat_limit'],
166
192
  'default_language_iso_code': !exists(json, 'default_language_iso_code') ? undefined : json['default_language_iso_code'],
167
193
  'default_status': !exists(json, 'default_status') ? undefined : json['default_status'],
@@ -190,6 +216,8 @@ export function ConversationAgentProfileToJSON(value?: ConversationAgentProfile
190
216
  'ai_persona': value.ai_persona,
191
217
  'ai_sms_instructions': value.ai_sms_instructions,
192
218
  'ai_ticket_instructions': value.ai_ticket_instructions,
219
+ 'ai_voice_instructions': value.ai_voice_instructions,
220
+ 'ai_voice_personality': value.ai_voice_personality,
193
221
  'chat_limit': value.chat_limit,
194
222
  'default_language_iso_code': value.default_language_iso_code,
195
223
  'default_status': value.default_status,
@@ -26,6 +26,18 @@ import {
26
26
  * @interface ConversationPbxQueue
27
27
  */
28
28
  export interface ConversationPbxQueue {
29
+ /**
30
+ * AI Agent Priority compared to human agents
31
+ * @type {string}
32
+ * @memberof ConversationPbxQueue
33
+ */
34
+ ai_priority?: ConversationPbxQueueAiPriorityEnum;
35
+ /**
36
+ * AI timeout seconds
37
+ * @type {number}
38
+ * @memberof ConversationPbxQueue
39
+ */
40
+ ai_timeout_seconds?: number;
29
41
  /**
30
42
  * If true, the customer is told their queue position upon entering the queue
31
43
  * @type {boolean}
@@ -156,6 +168,17 @@ export interface ConversationPbxQueue {
156
168
 
157
169
 
158
170
 
171
+ /**
172
+ * @export
173
+ */
174
+ export const ConversationPbxQueueAiPriorityEnum = {
175
+ Neutral: 'neutral',
176
+ First: 'first',
177
+ Backup: 'backup'
178
+ } as const;
179
+ export type ConversationPbxQueueAiPriorityEnum = typeof ConversationPbxQueueAiPriorityEnum[keyof typeof ConversationPbxQueueAiPriorityEnum];
180
+
181
+
159
182
  /**
160
183
  * Check if a given object implements the ConversationPbxQueue interface.
161
184
  */
@@ -175,6 +198,8 @@ export function ConversationPbxQueueFromJSONTyped(json: any, ignoreDiscriminator
175
198
  }
176
199
  return {
177
200
 
201
+ 'ai_priority': !exists(json, 'ai_priority') ? undefined : json['ai_priority'],
202
+ 'ai_timeout_seconds': !exists(json, 'ai_timeout_seconds') ? undefined : json['ai_timeout_seconds'],
178
203
  'announce_queue_position': !exists(json, 'announce_queue_position') ? undefined : json['announce_queue_position'],
179
204
  'conversation_pbx_queue_uuid': !exists(json, 'conversation_pbx_queue_uuid') ? undefined : json['conversation_pbx_queue_uuid'],
180
205
  'conversation_voicemail_mailbox_uuid': !exists(json, 'conversation_voicemail_mailbox_uuid') ? undefined : json['conversation_voicemail_mailbox_uuid'],
@@ -208,6 +233,8 @@ export function ConversationPbxQueueToJSON(value?: ConversationPbxQueue | null):
208
233
  }
209
234
  return {
210
235
 
236
+ 'ai_priority': value.ai_priority,
237
+ 'ai_timeout_seconds': value.ai_timeout_seconds,
211
238
  'announce_queue_position': value.announce_queue_position,
212
239
  'conversation_pbx_queue_uuid': value.conversation_pbx_queue_uuid,
213
240
  'conversation_voicemail_mailbox_uuid': value.conversation_voicemail_mailbox_uuid,
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ItemInventoryUpdate
20
+ */
21
+ export interface ItemInventoryUpdate {
22
+ /**
23
+ * Distribution center code
24
+ * @type {string}
25
+ * @memberof ItemInventoryUpdate
26
+ */
27
+ distribution_center_code?: string;
28
+ /**
29
+ * Inventory level
30
+ * @type {number}
31
+ * @memberof ItemInventoryUpdate
32
+ */
33
+ inventory_level?: number;
34
+ /**
35
+ * Merchant Item ID
36
+ * @type {string}
37
+ * @memberof ItemInventoryUpdate
38
+ */
39
+ merchant_item_id?: string;
40
+ }
41
+
42
+
43
+
44
+ /**
45
+ * Check if a given object implements the ItemInventoryUpdate interface.
46
+ */
47
+ export function instanceOfItemInventoryUpdate(value: object): boolean {
48
+ let isInstance = true;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function ItemInventoryUpdateFromJSON(json: any): ItemInventoryUpdate {
54
+ return ItemInventoryUpdateFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ItemInventoryUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventoryUpdate {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'distribution_center_code': !exists(json, 'distribution_center_code') ? undefined : json['distribution_center_code'],
64
+ 'inventory_level': !exists(json, 'inventory_level') ? undefined : json['inventory_level'],
65
+ 'merchant_item_id': !exists(json, 'merchant_item_id') ? undefined : json['merchant_item_id'],
66
+ };
67
+ }
68
+
69
+ export function ItemInventoryUpdateToJSON(value?: ItemInventoryUpdate | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'distribution_center_code': value.distribution_center_code,
79
+ 'inventory_level': value.inventory_level,
80
+ 'merchant_item_id': value.merchant_item_id,
81
+ };
82
+ }
83
+
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ItemInventoryUpdate,
18
+ ItemInventoryUpdateFromJSON,
19
+ ItemInventoryUpdateFromJSONTyped,
20
+ ItemInventoryUpdateToJSON,
21
+ } from './ItemInventoryUpdate';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ItemInventoryUpdateRequest
27
+ */
28
+ export interface ItemInventoryUpdateRequest {
29
+ /**
30
+ * Inventory updates array
31
+ * @type {Array<ItemInventoryUpdate>}
32
+ * @memberof ItemInventoryUpdateRequest
33
+ */
34
+ inventory_updates?: Array<ItemInventoryUpdate>;
35
+ }
36
+
37
+
38
+
39
+ /**
40
+ * Check if a given object implements the ItemInventoryUpdateRequest interface.
41
+ */
42
+ export function instanceOfItemInventoryUpdateRequest(value: object): boolean {
43
+ let isInstance = true;
44
+
45
+ return isInstance;
46
+ }
47
+
48
+ export function ItemInventoryUpdateRequestFromJSON(json: any): ItemInventoryUpdateRequest {
49
+ return ItemInventoryUpdateRequestFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function ItemInventoryUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ItemInventoryUpdateRequest {
53
+ if ((json === undefined) || (json === null)) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'inventory_updates': !exists(json, 'inventory_updates') ? undefined : ((json['inventory_updates'] as Array<any>).map(ItemInventoryUpdateFromJSON)),
59
+ };
60
+ }
61
+
62
+ export function ItemInventoryUpdateRequestToJSON(value?: ItemInventoryUpdateRequest | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'inventory_updates': value.inventory_updates === undefined ? undefined : ((value.inventory_updates as Array<any>).map(ItemInventoryUpdateToJSON)),
72
+ };
73
+ }
74
+
@@ -584,6 +584,8 @@ export * from './ItemInternal';
584
584
  export * from './ItemInventorySnapshot';
585
585
  export * from './ItemInventorySnapshotDistributionCenter';
586
586
  export * from './ItemInventorySnapshotResponse';
587
+ export * from './ItemInventoryUpdate';
588
+ export * from './ItemInventoryUpdateRequest';
587
589
  export * from './ItemKitComponent';
588
590
  export * from './ItemKitDefinition';
589
591
  export * from './ItemOption';