ultracart_rest_api_v2_typescript 3.11.38 → 3.11.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@3.11.38
1
+ ## ultracart_rest_api_v2_typescript@3.11.40
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@3.11.38 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.11.40 --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
+ | 3.11.40 | 01/07/2026 | convseration - AI agent profile voice settings |
58
+ | 3.11.39 | 12/31/2025 | conversations AI - queue AI settings |
57
59
  | 3.11.38 | 12/29/2025 | conversations - AI agent level capabilities |
58
60
  | 3.11.37 | 12/29/2025 | conversations - pbx agent AI flag |
59
61
  | 3.11.36 | 12/22/2025 | conversation - agent auth worker token v2 |
package/api.ts CHANGED
@@ -7147,6 +7147,18 @@ export interface ConversationAgentProfile {
7147
7147
  * @memberof ConversationAgentProfile
7148
7148
  */
7149
7149
  ai_ticket_instructions?: string;
7150
+ /**
7151
+ * Additional voice instructions for this AI when handling voice calls
7152
+ * @type {string}
7153
+ * @memberof ConversationAgentProfile
7154
+ */
7155
+ ai_voice_instructions?: string;
7156
+ /**
7157
+ * Which AI voice personality to use when handling the call.
7158
+ * @type {string}
7159
+ * @memberof ConversationAgentProfile
7160
+ */
7161
+ ai_voice_personality?: ConversationAgentProfile.AiVoicePersonalityEnum;
7150
7162
  /**
7151
7163
  * The number of engagement chats that can be pushed on them at any given time.
7152
7164
  * @type {number}
@@ -7214,6 +7226,17 @@ export interface ConversationAgentProfile {
7214
7226
  * @namespace ConversationAgentProfile
7215
7227
  */
7216
7228
  export namespace ConversationAgentProfile {
7229
+ /**
7230
+ * @export
7231
+ * @enum {string}
7232
+ */
7233
+ export enum AiVoicePersonalityEnum {
7234
+ Ara = <any> 'Ara',
7235
+ Rex = <any> 'Rex',
7236
+ Sal = <any> 'Sal',
7237
+ Eve = <any> 'Eve',
7238
+ Leo = <any> 'Leo'
7239
+ }
7217
7240
  /**
7218
7241
  * @export
7219
7242
  * @enum {string}
@@ -10078,6 +10101,18 @@ export interface ConversationPbxPhoneNumbersResponse {
10078
10101
  * @interface ConversationPbxQueue
10079
10102
  */
10080
10103
  export interface ConversationPbxQueue {
10104
+ /**
10105
+ * AI Agent Priority compared to human agents
10106
+ * @type {string}
10107
+ * @memberof ConversationPbxQueue
10108
+ */
10109
+ ai_priority?: ConversationPbxQueue.AiPriorityEnum;
10110
+ /**
10111
+ * AI timeout seconds
10112
+ * @type {number}
10113
+ * @memberof ConversationPbxQueue
10114
+ */
10115
+ ai_timeout_seconds?: number;
10081
10116
  /**
10082
10117
  * If true, the customer is told their queue position upon entering the queue
10083
10118
  * @type {boolean}
@@ -10206,6 +10241,22 @@ export interface ConversationPbxQueue {
10206
10241
  wrap_up_seconds?: number;
10207
10242
  }
10208
10243
 
10244
+ /**
10245
+ * @export
10246
+ * @namespace ConversationPbxQueue
10247
+ */
10248
+ export namespace ConversationPbxQueue {
10249
+ /**
10250
+ * @export
10251
+ * @enum {string}
10252
+ */
10253
+ export enum AiPriorityEnum {
10254
+ Neutral = <any> 'neutral',
10255
+ First = <any> 'first',
10256
+ Backup = <any> 'backup'
10257
+ }
10258
+ }
10259
+
10209
10260
  /**
10210
10261
  *
10211
10262
  * @export
@@ -30141,6 +30192,46 @@ export interface ItemInventorySnapshotResponse {
30141
30192
  warning?: Warning;
30142
30193
  }
30143
30194
 
30195
+ /**
30196
+ *
30197
+ * @export
30198
+ * @interface ItemInventoryUpdate
30199
+ */
30200
+ export interface ItemInventoryUpdate {
30201
+ /**
30202
+ * Distribution center code
30203
+ * @type {string}
30204
+ * @memberof ItemInventoryUpdate
30205
+ */
30206
+ distribution_center_code?: string;
30207
+ /**
30208
+ * Inventory level
30209
+ * @type {number}
30210
+ * @memberof ItemInventoryUpdate
30211
+ */
30212
+ inventory_level?: number;
30213
+ /**
30214
+ * Merchant Item ID
30215
+ * @type {string}
30216
+ * @memberof ItemInventoryUpdate
30217
+ */
30218
+ merchant_item_id?: string;
30219
+ }
30220
+
30221
+ /**
30222
+ *
30223
+ * @export
30224
+ * @interface ItemInventoryUpdateRequest
30225
+ */
30226
+ export interface ItemInventoryUpdateRequest {
30227
+ /**
30228
+ * Inventory updates array
30229
+ * @type {Array<ItemInventoryUpdate>}
30230
+ * @memberof ItemInventoryUpdateRequest
30231
+ */
30232
+ inventory_updates?: Array<ItemInventoryUpdate>;
30233
+ }
30234
+
30144
30235
  /**
30145
30236
  *
30146
30237
  * @export
@@ -76202,6 +76293,61 @@ export const ItemApiFetchParamCreator = function (configuration?: Configuration)
76202
76293
  options: localVarRequestOptions,
76203
76294
  };
76204
76295
  },
76296
+ /**
76297
+ * Update item inventories for a distribution center
76298
+ * @summary Update item inventories for a distribution center
76299
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
76300
+ * @param {*} [options] Override http request option.
76301
+ * @throws {RequiredError}
76302
+ */
76303
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options: any = {}): FetchArgs {
76304
+ // verify required parameter 'item_inventory_update_request' is not null or undefined
76305
+ if (item_inventory_update_request === null || item_inventory_update_request === undefined) {
76306
+ throw new RequiredError('item_inventory_update_request','Required parameter item_inventory_update_request was null or undefined when calling updateItemInventories.');
76307
+ }
76308
+ const localVarPath = `/item/items/update_item_inventories`;
76309
+ const localVarUrlObj = url.parse(localVarPath, true);
76310
+ const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
76311
+ const localVarHeaderParameter = {} as any;
76312
+ const localVarQueryParameter = {} as any;
76313
+
76314
+ if(configuration && configuration.apiVersion) {
76315
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
76316
+ }
76317
+
76318
+
76319
+
76320
+ // authentication ultraCartOauth required
76321
+ // oauth required
76322
+ if (configuration && configuration.accessToken) {
76323
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
76324
+ ? configuration.accessToken("ultraCartOauth", ["item_write"])
76325
+ : configuration.accessToken;
76326
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
76327
+ }
76328
+
76329
+ // authentication ultraCartSimpleApiKey required
76330
+ if (configuration && configuration.apiKey) {
76331
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
76332
+ ? configuration.apiKey("x-ultracart-simple-key")
76333
+ : configuration.apiKey;
76334
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
76335
+ }
76336
+
76337
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
76338
+
76339
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
76340
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
76341
+ delete localVarUrlObj.search;
76342
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
76343
+ const needsSerialization = (<any>"ItemInventoryUpdateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
76344
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(item_inventory_update_request || {}) : (item_inventory_update_request || "");
76345
+
76346
+ return {
76347
+ url: url.format(localVarUrlObj),
76348
+ options: localVarRequestOptions,
76349
+ };
76350
+ },
76205
76351
  /**
76206
76352
  * Update an item shipping distribution center
76207
76353
  * @summary Update an item shipping distribution center
@@ -76948,6 +77094,27 @@ export const ItemApiFp = function(configuration?: Configuration) {
76948
77094
  });
76949
77095
  };
76950
77096
  },
77097
+ /**
77098
+ * Update item inventories for a distribution center
77099
+ * @summary Update item inventories for a distribution center
77100
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
77101
+ * @param {*} [options] Override http request option.
77102
+ * @throws {RequiredError}
77103
+ */
77104
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
77105
+ const localVarFetchArgs = ItemApiFetchParamCreator(configuration).updateItemInventories(item_inventory_update_request, options);
77106
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
77107
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
77108
+
77109
+ if (response.status >= 200 && response.status < 300) {
77110
+ return response;
77111
+
77112
+ } else {
77113
+ throw response;
77114
+ }
77115
+ });
77116
+ };
77117
+ },
76951
77118
  /**
76952
77119
  * Update an item shipping distribution center
76953
77120
  * @summary Update an item shipping distribution center
@@ -77291,6 +77458,16 @@ export const ItemApiFactory = function (configuration?: Configuration, fetch?: F
77291
77458
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any) {
77292
77459
  return ItemApiFp(configuration).updateItem(item, merchant_item_oid, _expand, _placeholders, options)(fetch, basePath);
77293
77460
  },
77461
+ /**
77462
+ * Update item inventories for a distribution center
77463
+ * @summary Update item inventories for a distribution center
77464
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
77465
+ * @param {*} [options] Override http request option.
77466
+ * @throws {RequiredError}
77467
+ */
77468
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any) {
77469
+ return ItemApiFp(configuration).updateItemInventories(item_inventory_update_request, options)(fetch, basePath);
77470
+ },
77294
77471
  /**
77295
77472
  * Update an item shipping distribution center
77296
77473
  * @summary Update an item shipping distribution center
@@ -77590,6 +77767,16 @@ export interface ItemApiInterface {
77590
77767
  */
77591
77768
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): Promise<ItemResponse>;
77592
77769
 
77770
+ /**
77771
+ * Update item inventories for a distribution center
77772
+ * @summary Update item inventories for a distribution center
77773
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
77774
+ * @param {*} [options] Override http request option.
77775
+ * @throws {RequiredError}
77776
+ * @memberof ItemApiInterface
77777
+ */
77778
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): Promise<{}>;
77779
+
77593
77780
  /**
77594
77781
  * Update an item shipping distribution center
77595
77782
  * @summary Update an item shipping distribution center
@@ -77931,6 +78118,18 @@ export class ItemApi extends BaseAPI implements ItemApiInterface {
77931
78118
  return ItemApiFp(this.configuration).updateItem(item, merchant_item_oid, _expand, _placeholders, options)(this.fetch, this.basePath);
77932
78119
  }
77933
78120
 
78121
+ /**
78122
+ * Update item inventories for a distribution center
78123
+ * @summary Update item inventories for a distribution center
78124
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
78125
+ * @param {*} [options] Override http request option.
78126
+ * @throws {RequiredError}
78127
+ * @memberof ItemApi
78128
+ */
78129
+ public updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any) {
78130
+ return ItemApiFp(this.configuration).updateItemInventories(item_inventory_update_request, options)(this.fetch, this.basePath);
78131
+ }
78132
+
77934
78133
  /**
77935
78134
  * Update an item shipping distribution center
77936
78135
  * @summary Update an item shipping distribution center
package/dist/api.d.ts CHANGED
@@ -6986,6 +6986,18 @@ export interface ConversationAgentProfile {
6986
6986
  * @memberof ConversationAgentProfile
6987
6987
  */
6988
6988
  ai_ticket_instructions?: string;
6989
+ /**
6990
+ * Additional voice instructions for this AI when handling voice calls
6991
+ * @type {string}
6992
+ * @memberof ConversationAgentProfile
6993
+ */
6994
+ ai_voice_instructions?: string;
6995
+ /**
6996
+ * Which AI voice personality to use when handling the call.
6997
+ * @type {string}
6998
+ * @memberof ConversationAgentProfile
6999
+ */
7000
+ ai_voice_personality?: ConversationAgentProfile.AiVoicePersonalityEnum;
6989
7001
  /**
6990
7002
  * The number of engagement chats that can be pushed on them at any given time.
6991
7003
  * @type {number}
@@ -7052,6 +7064,17 @@ export interface ConversationAgentProfile {
7052
7064
  * @namespace ConversationAgentProfile
7053
7065
  */
7054
7066
  export declare namespace ConversationAgentProfile {
7067
+ /**
7068
+ * @export
7069
+ * @enum {string}
7070
+ */
7071
+ enum AiVoicePersonalityEnum {
7072
+ Ara,
7073
+ Rex,
7074
+ Sal,
7075
+ Eve,
7076
+ Leo
7077
+ }
7055
7078
  /**
7056
7079
  * @export
7057
7080
  * @enum {string}
@@ -9838,6 +9861,18 @@ export interface ConversationPbxPhoneNumbersResponse {
9838
9861
  * @interface ConversationPbxQueue
9839
9862
  */
9840
9863
  export interface ConversationPbxQueue {
9864
+ /**
9865
+ * AI Agent Priority compared to human agents
9866
+ * @type {string}
9867
+ * @memberof ConversationPbxQueue
9868
+ */
9869
+ ai_priority?: ConversationPbxQueue.AiPriorityEnum;
9870
+ /**
9871
+ * AI timeout seconds
9872
+ * @type {number}
9873
+ * @memberof ConversationPbxQueue
9874
+ */
9875
+ ai_timeout_seconds?: number;
9841
9876
  /**
9842
9877
  * If true, the customer is told their queue position upon entering the queue
9843
9878
  * @type {boolean}
@@ -9965,6 +10000,21 @@ export interface ConversationPbxQueue {
9965
10000
  */
9966
10001
  wrap_up_seconds?: number;
9967
10002
  }
10003
+ /**
10004
+ * @export
10005
+ * @namespace ConversationPbxQueue
10006
+ */
10007
+ export declare namespace ConversationPbxQueue {
10008
+ /**
10009
+ * @export
10010
+ * @enum {string}
10011
+ */
10012
+ enum AiPriorityEnum {
10013
+ Neutral,
10014
+ First,
10015
+ Backup
10016
+ }
10017
+ }
9968
10018
  /**
9969
10019
  *
9970
10020
  * @export
@@ -29497,6 +29547,44 @@ export interface ItemInventorySnapshotResponse {
29497
29547
  */
29498
29548
  warning?: Warning;
29499
29549
  }
29550
+ /**
29551
+ *
29552
+ * @export
29553
+ * @interface ItemInventoryUpdate
29554
+ */
29555
+ export interface ItemInventoryUpdate {
29556
+ /**
29557
+ * Distribution center code
29558
+ * @type {string}
29559
+ * @memberof ItemInventoryUpdate
29560
+ */
29561
+ distribution_center_code?: string;
29562
+ /**
29563
+ * Inventory level
29564
+ * @type {number}
29565
+ * @memberof ItemInventoryUpdate
29566
+ */
29567
+ inventory_level?: number;
29568
+ /**
29569
+ * Merchant Item ID
29570
+ * @type {string}
29571
+ * @memberof ItemInventoryUpdate
29572
+ */
29573
+ merchant_item_id?: string;
29574
+ }
29575
+ /**
29576
+ *
29577
+ * @export
29578
+ * @interface ItemInventoryUpdateRequest
29579
+ */
29580
+ export interface ItemInventoryUpdateRequest {
29581
+ /**
29582
+ * Inventory updates array
29583
+ * @type {Array<ItemInventoryUpdate>}
29584
+ * @memberof ItemInventoryUpdateRequest
29585
+ */
29586
+ inventory_updates?: Array<ItemInventoryUpdate>;
29587
+ }
29500
29588
  /**
29501
29589
  *
29502
29590
  * @export
@@ -57756,6 +57844,14 @@ export declare const ItemApiFetchParamCreator: (configuration?: Configuration) =
57756
57844
  * @throws {RequiredError}
57757
57845
  */
57758
57846
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): FetchArgs;
57847
+ /**
57848
+ * Update item inventories for a distribution center
57849
+ * @summary Update item inventories for a distribution center
57850
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
57851
+ * @param {*} [options] Override http request option.
57852
+ * @throws {RequiredError}
57853
+ */
57854
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): FetchArgs;
57759
57855
  /**
57760
57856
  * Update an item shipping distribution center
57761
57857
  * @summary Update an item shipping distribution center
@@ -58002,6 +58098,14 @@ export declare const ItemApiFp: (configuration?: Configuration) => {
58002
58098
  * @throws {RequiredError}
58003
58099
  */
58004
58100
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ItemResponse>;
58101
+ /**
58102
+ * Update item inventories for a distribution center
58103
+ * @summary Update item inventories for a distribution center
58104
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
58105
+ * @param {*} [options] Override http request option.
58106
+ * @throws {RequiredError}
58107
+ */
58108
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
58005
58109
  /**
58006
58110
  * Update an item shipping distribution center
58007
58111
  * @summary Update an item shipping distribution center
@@ -58248,6 +58352,14 @@ export declare const ItemApiFactory: (configuration?: Configuration, fetch?: Fet
58248
58352
  * @throws {RequiredError}
58249
58353
  */
58250
58354
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): Promise<ItemResponse>;
58355
+ /**
58356
+ * Update item inventories for a distribution center
58357
+ * @summary Update item inventories for a distribution center
58358
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
58359
+ * @param {*} [options] Override http request option.
58360
+ * @throws {RequiredError}
58361
+ */
58362
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): Promise<Response>;
58251
58363
  /**
58252
58364
  * Update an item shipping distribution center
58253
58365
  * @summary Update an item shipping distribution center
@@ -58516,6 +58628,15 @@ export interface ItemApiInterface {
58516
58628
  * @memberof ItemApiInterface
58517
58629
  */
58518
58630
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): Promise<ItemResponse>;
58631
+ /**
58632
+ * Update item inventories for a distribution center
58633
+ * @summary Update item inventories for a distribution center
58634
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
58635
+ * @param {*} [options] Override http request option.
58636
+ * @throws {RequiredError}
58637
+ * @memberof ItemApiInterface
58638
+ */
58639
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): Promise<{}>;
58519
58640
  /**
58520
58641
  * Update an item shipping distribution center
58521
58642
  * @summary Update an item shipping distribution center
@@ -58789,6 +58910,15 @@ export declare class ItemApi extends BaseAPI implements ItemApiInterface {
58789
58910
  * @memberof ItemApi
58790
58911
  */
58791
58912
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): Promise<ItemResponse>;
58913
+ /**
58914
+ * Update item inventories for a distribution center
58915
+ * @summary Update item inventories for a distribution center
58916
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
58917
+ * @param {*} [options] Override http request option.
58918
+ * @throws {RequiredError}
58919
+ * @memberof ItemApi
58920
+ */
58921
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): Promise<Response>;
58792
58922
  /**
58793
58923
  * Update an item shipping distribution center
58794
58924
  * @summary Update an item shipping distribution center
package/dist/api.js CHANGED
@@ -28,10 +28,10 @@ var __extends = (this && this.__extends) || (function () {
28
28
  };
29
29
  })();
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.ItemShippingDestinationRestriction = exports.ItemReview = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.CustomerQuery = exports.Coupon = exports.ConversationWebsocketMessage = exports.ConversationWebchatQueueStatusUpdateRequest = exports.ConversationWebchatQueueStatusAgent = exports.ConversationVirtualAgentCapabilities = exports.ConversationSummary = exports.ConversationSentiment = exports.ConversationPbxVoicemailMessageSummary = exports.ConversationPbxVoicemailMessage = exports.ConversationPbxVoicemailMailbox = exports.ConversationPbxTimeBasedMapping = exports.ConversationPbxPhoneNumber = exports.ConversationPbxMenuMapping = exports.ConversationPbxMenu = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationMcpServer = exports.ConversationEventRRWeb = exports.ConversationEngagementEquationFunction = exports.ConversationEngagement = exports.ConversationAgentProfile = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
32
- exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.WorkflowTasksRequest = exports.WorkflowTask = exports.Weight = exports.Webhook = exports.TempMultimedia = exports.ReportWebsocketEvent = exports.ReportPageVisualizationMetric = exports.ReportPageVisualization = exports.ReportFilter = exports.ReportExecuteQueriesRequest = exports.ReportDataSourceSchema = exports.ReportDataSetSchema = exports.ReportDataSetQuery = exports.ReportDataSet = exports.Report = exports.PointOfSaleReader = exports.OrderQueryBatch = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderEdiDocument = exports.OrderCurrentStageHistory = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = void 0;
33
- exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.DatawarehouseApi = exports.DatawarehouseApiFactory = exports.DatawarehouseApiFp = exports.DatawarehouseApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = void 0;
34
- exports.WorkflowApi = exports.WorkflowApiFactory = exports.WorkflowApiFp = exports.WorkflowApiFetchParamCreator = exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = void 0;
31
+ exports.ItemReview = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.CustomerQuery = exports.Coupon = exports.ConversationWebsocketMessage = exports.ConversationWebchatQueueStatusUpdateRequest = exports.ConversationWebchatQueueStatusAgent = exports.ConversationVirtualAgentCapabilities = exports.ConversationSummary = exports.ConversationSentiment = exports.ConversationPbxVoicemailMessageSummary = exports.ConversationPbxVoicemailMessage = exports.ConversationPbxVoicemailMailbox = exports.ConversationPbxTimeBasedMapping = exports.ConversationPbxQueue = exports.ConversationPbxPhoneNumber = exports.ConversationPbxMenuMapping = exports.ConversationPbxMenu = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationMcpServer = exports.ConversationEventRRWeb = exports.ConversationEngagementEquationFunction = exports.ConversationEngagement = exports.ConversationAgentProfile = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
32
+ exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.WorkflowTasksRequest = exports.WorkflowTask = exports.Weight = exports.Webhook = exports.TempMultimedia = exports.ReportWebsocketEvent = exports.ReportPageVisualizationMetric = exports.ReportPageVisualization = exports.ReportFilter = exports.ReportExecuteQueriesRequest = exports.ReportDataSourceSchema = exports.ReportDataSetSchema = exports.ReportDataSetQuery = exports.ReportDataSet = exports.Report = exports.PointOfSaleReader = exports.OrderQueryBatch = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderEdiDocument = exports.OrderCurrentStageHistory = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = void 0;
33
+ exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.DatawarehouseApi = exports.DatawarehouseApiFactory = exports.DatawarehouseApiFp = exports.DatawarehouseApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = void 0;
34
+ exports.WorkflowApi = exports.WorkflowApiFactory = exports.WorkflowApiFp = exports.WorkflowApiFetchParamCreator = exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = void 0;
35
35
  var url = require("url");
36
36
  var portableFetch = require("portable-fetch");
37
37
  var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
@@ -415,6 +415,18 @@ var Conversation;
415
415
  */
416
416
  var ConversationAgentProfile;
417
417
  (function (ConversationAgentProfile) {
418
+ /**
419
+ * @export
420
+ * @enum {string}
421
+ */
422
+ var AiVoicePersonalityEnum;
423
+ (function (AiVoicePersonalityEnum) {
424
+ AiVoicePersonalityEnum[AiVoicePersonalityEnum["Ara"] = 'Ara'] = "Ara";
425
+ AiVoicePersonalityEnum[AiVoicePersonalityEnum["Rex"] = 'Rex'] = "Rex";
426
+ AiVoicePersonalityEnum[AiVoicePersonalityEnum["Sal"] = 'Sal'] = "Sal";
427
+ AiVoicePersonalityEnum[AiVoicePersonalityEnum["Eve"] = 'Eve'] = "Eve";
428
+ AiVoicePersonalityEnum[AiVoicePersonalityEnum["Leo"] = 'Leo'] = "Leo";
429
+ })(AiVoicePersonalityEnum = ConversationAgentProfile.AiVoicePersonalityEnum || (ConversationAgentProfile.AiVoicePersonalityEnum = {}));
418
430
  /**
419
431
  * @export
420
432
  * @enum {string}
@@ -656,6 +668,23 @@ var ConversationPbxPhoneNumber;
656
668
  ActionEnum[ActionEnum["Agent"] = 'agent'] = "Agent";
657
669
  })(ActionEnum = ConversationPbxPhoneNumber.ActionEnum || (ConversationPbxPhoneNumber.ActionEnum = {}));
658
670
  })(ConversationPbxPhoneNumber = exports.ConversationPbxPhoneNumber || (exports.ConversationPbxPhoneNumber = {}));
671
+ /**
672
+ * @export
673
+ * @namespace ConversationPbxQueue
674
+ */
675
+ var ConversationPbxQueue;
676
+ (function (ConversationPbxQueue) {
677
+ /**
678
+ * @export
679
+ * @enum {string}
680
+ */
681
+ var AiPriorityEnum;
682
+ (function (AiPriorityEnum) {
683
+ AiPriorityEnum[AiPriorityEnum["Neutral"] = 'neutral'] = "Neutral";
684
+ AiPriorityEnum[AiPriorityEnum["First"] = 'first'] = "First";
685
+ AiPriorityEnum[AiPriorityEnum["Backup"] = 'backup'] = "Backup";
686
+ })(AiPriorityEnum = ConversationPbxQueue.AiPriorityEnum || (ConversationPbxQueue.AiPriorityEnum = {}));
687
+ })(ConversationPbxQueue = exports.ConversationPbxQueue || (exports.ConversationPbxQueue = {}));
659
688
  /**
660
689
  * @export
661
690
  * @namespace ConversationPbxTimeBasedMapping
@@ -26449,6 +26478,54 @@ var ItemApiFetchParamCreator = function (configuration) {
26449
26478
  options: localVarRequestOptions,
26450
26479
  };
26451
26480
  },
26481
+ /**
26482
+ * Update item inventories for a distribution center
26483
+ * @summary Update item inventories for a distribution center
26484
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
26485
+ * @param {*} [options] Override http request option.
26486
+ * @throws {RequiredError}
26487
+ */
26488
+ updateItemInventories: function (item_inventory_update_request, options) {
26489
+ if (options === void 0) { options = {}; }
26490
+ // verify required parameter 'item_inventory_update_request' is not null or undefined
26491
+ if (item_inventory_update_request === null || item_inventory_update_request === undefined) {
26492
+ throw new RequiredError('item_inventory_update_request', 'Required parameter item_inventory_update_request was null or undefined when calling updateItemInventories.');
26493
+ }
26494
+ var localVarPath = "/item/items/update_item_inventories";
26495
+ var localVarUrlObj = url.parse(localVarPath, true);
26496
+ var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
26497
+ var localVarHeaderParameter = {};
26498
+ var localVarQueryParameter = {};
26499
+ if (configuration && configuration.apiVersion) {
26500
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
26501
+ }
26502
+ // authentication ultraCartOauth required
26503
+ // oauth required
26504
+ if (configuration && configuration.accessToken) {
26505
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
26506
+ ? configuration.accessToken("ultraCartOauth", ["item_write"])
26507
+ : configuration.accessToken;
26508
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
26509
+ }
26510
+ // authentication ultraCartSimpleApiKey required
26511
+ if (configuration && configuration.apiKey) {
26512
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
26513
+ ? configuration.apiKey("x-ultracart-simple-key")
26514
+ : configuration.apiKey;
26515
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
26516
+ }
26517
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
26518
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
26519
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
26520
+ delete localVarUrlObj.search;
26521
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
26522
+ var needsSerialization = ("ItemInventoryUpdateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
26523
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(item_inventory_update_request || {}) : (item_inventory_update_request || "");
26524
+ return {
26525
+ url: url.format(localVarUrlObj),
26526
+ options: localVarRequestOptions,
26527
+ };
26528
+ },
26452
26529
  /**
26453
26530
  * Update an item shipping distribution center
26454
26531
  * @summary Update an item shipping distribution center
@@ -27184,6 +27261,28 @@ var ItemApiFp = function (configuration) {
27184
27261
  });
27185
27262
  };
27186
27263
  },
27264
+ /**
27265
+ * Update item inventories for a distribution center
27266
+ * @summary Update item inventories for a distribution center
27267
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
27268
+ * @param {*} [options] Override http request option.
27269
+ * @throws {RequiredError}
27270
+ */
27271
+ updateItemInventories: function (item_inventory_update_request, options) {
27272
+ var localVarFetchArgs = (0, exports.ItemApiFetchParamCreator)(configuration).updateItemInventories(item_inventory_update_request, options);
27273
+ return function (fetch, basePath) {
27274
+ if (fetch === void 0) { fetch = portableFetch; }
27275
+ if (basePath === void 0) { basePath = BASE_PATH; }
27276
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
27277
+ if (response.status >= 200 && response.status < 300) {
27278
+ return response;
27279
+ }
27280
+ else {
27281
+ throw response;
27282
+ }
27283
+ });
27284
+ };
27285
+ },
27187
27286
  /**
27188
27287
  * Update an item shipping distribution center
27189
27288
  * @summary Update an item shipping distribution center
@@ -27531,6 +27630,16 @@ var ItemApiFactory = function (configuration, fetch, basePath) {
27531
27630
  updateItem: function (item, merchant_item_oid, _expand, _placeholders, options) {
27532
27631
  return (0, exports.ItemApiFp)(configuration).updateItem(item, merchant_item_oid, _expand, _placeholders, options)(fetch, basePath);
27533
27632
  },
27633
+ /**
27634
+ * Update item inventories for a distribution center
27635
+ * @summary Update item inventories for a distribution center
27636
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
27637
+ * @param {*} [options] Override http request option.
27638
+ * @throws {RequiredError}
27639
+ */
27640
+ updateItemInventories: function (item_inventory_update_request, options) {
27641
+ return (0, exports.ItemApiFp)(configuration).updateItemInventories(item_inventory_update_request, options)(fetch, basePath);
27642
+ },
27534
27643
  /**
27535
27644
  * Update an item shipping distribution center
27536
27645
  * @summary Update an item shipping distribution center
@@ -27856,6 +27965,17 @@ var ItemApi = /** @class */ (function (_super) {
27856
27965
  ItemApi.prototype.updateItem = function (item, merchant_item_oid, _expand, _placeholders, options) {
27857
27966
  return (0, exports.ItemApiFp)(this.configuration).updateItem(item, merchant_item_oid, _expand, _placeholders, options)(this.fetch, this.basePath);
27858
27967
  };
27968
+ /**
27969
+ * Update item inventories for a distribution center
27970
+ * @summary Update item inventories for a distribution center
27971
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
27972
+ * @param {*} [options] Override http request option.
27973
+ * @throws {RequiredError}
27974
+ * @memberof ItemApi
27975
+ */
27976
+ ItemApi.prototype.updateItemInventories = function (item_inventory_update_request, options) {
27977
+ return (0, exports.ItemApiFp)(this.configuration).updateItemInventories(item_inventory_update_request, options)(this.fetch, this.basePath);
27978
+ };
27859
27979
  /**
27860
27980
  * Update an item shipping distribution center
27861
27981
  * @summary Update an item shipping distribution center
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.11.38",
3
+ "version": "3.11.40",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [