ultracart_rest_api_v2_typescript 3.11.37 → 3.11.39

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.37
1
+ ## ultracart_rest_api_v2_typescript@3.11.39
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.37 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.11.39 --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.39 | 12/31/2025 | conversations AI - queue AI settings |
58
+ | 3.11.38 | 12/29/2025 | conversations - AI agent level capabilities |
57
59
  | 3.11.37 | 12/29/2025 | conversations - pbx agent AI flag |
58
60
  | 3.11.36 | 12/22/2025 | conversation - agent auth worker token v2 |
59
61
  | 3.11.35 | 12/02/2025 | caching option added to getCustomers, created new method searchCustomers |
package/api.ts CHANGED
@@ -7117,6 +7117,12 @@ export interface ConversationAgentProfile {
7117
7117
  * @memberof ConversationAgentProfile
7118
7118
  */
7119
7119
  ai?: boolean;
7120
+ /**
7121
+ *
7122
+ * @type {ConversationVirtualAgentCapabilities}
7123
+ * @memberof ConversationAgentProfile
7124
+ */
7125
+ ai_capabilities?: ConversationVirtualAgentCapabilities;
7120
7126
  /**
7121
7127
  * Additional instructions for this AI when handle web chats
7122
7128
  * @type {string}
@@ -10072,6 +10078,18 @@ export interface ConversationPbxPhoneNumbersResponse {
10072
10078
  * @interface ConversationPbxQueue
10073
10079
  */
10074
10080
  export interface ConversationPbxQueue {
10081
+ /**
10082
+ * AI Agent Priority compared to human agents
10083
+ * @type {string}
10084
+ * @memberof ConversationPbxQueue
10085
+ */
10086
+ ai_priority?: ConversationPbxQueue.AiPriorityEnum;
10087
+ /**
10088
+ * AI timeout seconds
10089
+ * @type {number}
10090
+ * @memberof ConversationPbxQueue
10091
+ */
10092
+ ai_timeout_seconds?: number;
10075
10093
  /**
10076
10094
  * If true, the customer is told their queue position upon entering the queue
10077
10095
  * @type {boolean}
@@ -10200,6 +10218,22 @@ export interface ConversationPbxQueue {
10200
10218
  wrap_up_seconds?: number;
10201
10219
  }
10202
10220
 
10221
+ /**
10222
+ * @export
10223
+ * @namespace ConversationPbxQueue
10224
+ */
10225
+ export namespace ConversationPbxQueue {
10226
+ /**
10227
+ * @export
10228
+ * @enum {string}
10229
+ */
10230
+ export enum AiPriorityEnum {
10231
+ Neutral = <any> 'neutral',
10232
+ First = <any> 'first',
10233
+ Backup = <any> 'backup'
10234
+ }
10235
+ }
10236
+
10203
10237
  /**
10204
10238
  *
10205
10239
  * @export
@@ -30135,6 +30169,46 @@ export interface ItemInventorySnapshotResponse {
30135
30169
  warning?: Warning;
30136
30170
  }
30137
30171
 
30172
+ /**
30173
+ *
30174
+ * @export
30175
+ * @interface ItemInventoryUpdate
30176
+ */
30177
+ export interface ItemInventoryUpdate {
30178
+ /**
30179
+ * Distribution center code
30180
+ * @type {string}
30181
+ * @memberof ItemInventoryUpdate
30182
+ */
30183
+ distribution_center_code?: string;
30184
+ /**
30185
+ * Inventory level
30186
+ * @type {number}
30187
+ * @memberof ItemInventoryUpdate
30188
+ */
30189
+ inventory_level?: number;
30190
+ /**
30191
+ * Merchant Item ID
30192
+ * @type {string}
30193
+ * @memberof ItemInventoryUpdate
30194
+ */
30195
+ merchant_item_id?: string;
30196
+ }
30197
+
30198
+ /**
30199
+ *
30200
+ * @export
30201
+ * @interface ItemInventoryUpdateRequest
30202
+ */
30203
+ export interface ItemInventoryUpdateRequest {
30204
+ /**
30205
+ * Inventory updates array
30206
+ * @type {Array<ItemInventoryUpdate>}
30207
+ * @memberof ItemInventoryUpdateRequest
30208
+ */
30209
+ inventory_updates?: Array<ItemInventoryUpdate>;
30210
+ }
30211
+
30138
30212
  /**
30139
30213
  *
30140
30214
  * @export
@@ -76196,6 +76270,61 @@ export const ItemApiFetchParamCreator = function (configuration?: Configuration)
76196
76270
  options: localVarRequestOptions,
76197
76271
  };
76198
76272
  },
76273
+ /**
76274
+ * Update item inventories for a distribution center
76275
+ * @summary Update item inventories for a distribution center
76276
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
76277
+ * @param {*} [options] Override http request option.
76278
+ * @throws {RequiredError}
76279
+ */
76280
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options: any = {}): FetchArgs {
76281
+ // verify required parameter 'item_inventory_update_request' is not null or undefined
76282
+ if (item_inventory_update_request === null || item_inventory_update_request === undefined) {
76283
+ throw new RequiredError('item_inventory_update_request','Required parameter item_inventory_update_request was null or undefined when calling updateItemInventories.');
76284
+ }
76285
+ const localVarPath = `/item/items/update_item_inventories`;
76286
+ const localVarUrlObj = url.parse(localVarPath, true);
76287
+ const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
76288
+ const localVarHeaderParameter = {} as any;
76289
+ const localVarQueryParameter = {} as any;
76290
+
76291
+ if(configuration && configuration.apiVersion) {
76292
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
76293
+ }
76294
+
76295
+
76296
+
76297
+ // authentication ultraCartOauth required
76298
+ // oauth required
76299
+ if (configuration && configuration.accessToken) {
76300
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
76301
+ ? configuration.accessToken("ultraCartOauth", ["item_write"])
76302
+ : configuration.accessToken;
76303
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
76304
+ }
76305
+
76306
+ // authentication ultraCartSimpleApiKey required
76307
+ if (configuration && configuration.apiKey) {
76308
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
76309
+ ? configuration.apiKey("x-ultracart-simple-key")
76310
+ : configuration.apiKey;
76311
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
76312
+ }
76313
+
76314
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
76315
+
76316
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
76317
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
76318
+ delete localVarUrlObj.search;
76319
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
76320
+ const needsSerialization = (<any>"ItemInventoryUpdateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
76321
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(item_inventory_update_request || {}) : (item_inventory_update_request || "");
76322
+
76323
+ return {
76324
+ url: url.format(localVarUrlObj),
76325
+ options: localVarRequestOptions,
76326
+ };
76327
+ },
76199
76328
  /**
76200
76329
  * Update an item shipping distribution center
76201
76330
  * @summary Update an item shipping distribution center
@@ -76942,6 +77071,27 @@ export const ItemApiFp = function(configuration?: Configuration) {
76942
77071
  });
76943
77072
  };
76944
77073
  },
77074
+ /**
77075
+ * Update item inventories for a distribution center
77076
+ * @summary Update item inventories for a distribution center
77077
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
77078
+ * @param {*} [options] Override http request option.
77079
+ * @throws {RequiredError}
77080
+ */
77081
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
77082
+ const localVarFetchArgs = ItemApiFetchParamCreator(configuration).updateItemInventories(item_inventory_update_request, options);
77083
+ return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
77084
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
77085
+
77086
+ if (response.status >= 200 && response.status < 300) {
77087
+ return response;
77088
+
77089
+ } else {
77090
+ throw response;
77091
+ }
77092
+ });
77093
+ };
77094
+ },
76945
77095
  /**
76946
77096
  * Update an item shipping distribution center
76947
77097
  * @summary Update an item shipping distribution center
@@ -77285,6 +77435,16 @@ export const ItemApiFactory = function (configuration?: Configuration, fetch?: F
77285
77435
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any) {
77286
77436
  return ItemApiFp(configuration).updateItem(item, merchant_item_oid, _expand, _placeholders, options)(fetch, basePath);
77287
77437
  },
77438
+ /**
77439
+ * Update item inventories for a distribution center
77440
+ * @summary Update item inventories for a distribution center
77441
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
77442
+ * @param {*} [options] Override http request option.
77443
+ * @throws {RequiredError}
77444
+ */
77445
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any) {
77446
+ return ItemApiFp(configuration).updateItemInventories(item_inventory_update_request, options)(fetch, basePath);
77447
+ },
77288
77448
  /**
77289
77449
  * Update an item shipping distribution center
77290
77450
  * @summary Update an item shipping distribution center
@@ -77584,6 +77744,16 @@ export interface ItemApiInterface {
77584
77744
  */
77585
77745
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): Promise<ItemResponse>;
77586
77746
 
77747
+ /**
77748
+ * Update item inventories for a distribution center
77749
+ * @summary Update item inventories for a distribution center
77750
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
77751
+ * @param {*} [options] Override http request option.
77752
+ * @throws {RequiredError}
77753
+ * @memberof ItemApiInterface
77754
+ */
77755
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): Promise<{}>;
77756
+
77587
77757
  /**
77588
77758
  * Update an item shipping distribution center
77589
77759
  * @summary Update an item shipping distribution center
@@ -77925,6 +78095,18 @@ export class ItemApi extends BaseAPI implements ItemApiInterface {
77925
78095
  return ItemApiFp(this.configuration).updateItem(item, merchant_item_oid, _expand, _placeholders, options)(this.fetch, this.basePath);
77926
78096
  }
77927
78097
 
78098
+ /**
78099
+ * Update item inventories for a distribution center
78100
+ * @summary Update item inventories for a distribution center
78101
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
78102
+ * @param {*} [options] Override http request option.
78103
+ * @throws {RequiredError}
78104
+ * @memberof ItemApi
78105
+ */
78106
+ public updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any) {
78107
+ return ItemApiFp(this.configuration).updateItemInventories(item_inventory_update_request, options)(this.fetch, this.basePath);
78108
+ }
78109
+
77928
78110
  /**
77929
78111
  * Update an item shipping distribution center
77930
78112
  * @summary Update an item shipping distribution center
package/dist/api.d.ts CHANGED
@@ -6956,6 +6956,12 @@ export interface ConversationAgentProfile {
6956
6956
  * @memberof ConversationAgentProfile
6957
6957
  */
6958
6958
  ai?: boolean;
6959
+ /**
6960
+ *
6961
+ * @type {ConversationVirtualAgentCapabilities}
6962
+ * @memberof ConversationAgentProfile
6963
+ */
6964
+ ai_capabilities?: ConversationVirtualAgentCapabilities;
6959
6965
  /**
6960
6966
  * Additional instructions for this AI when handle web chats
6961
6967
  * @type {string}
@@ -9832,6 +9838,18 @@ export interface ConversationPbxPhoneNumbersResponse {
9832
9838
  * @interface ConversationPbxQueue
9833
9839
  */
9834
9840
  export interface ConversationPbxQueue {
9841
+ /**
9842
+ * AI Agent Priority compared to human agents
9843
+ * @type {string}
9844
+ * @memberof ConversationPbxQueue
9845
+ */
9846
+ ai_priority?: ConversationPbxQueue.AiPriorityEnum;
9847
+ /**
9848
+ * AI timeout seconds
9849
+ * @type {number}
9850
+ * @memberof ConversationPbxQueue
9851
+ */
9852
+ ai_timeout_seconds?: number;
9835
9853
  /**
9836
9854
  * If true, the customer is told their queue position upon entering the queue
9837
9855
  * @type {boolean}
@@ -9959,6 +9977,21 @@ export interface ConversationPbxQueue {
9959
9977
  */
9960
9978
  wrap_up_seconds?: number;
9961
9979
  }
9980
+ /**
9981
+ * @export
9982
+ * @namespace ConversationPbxQueue
9983
+ */
9984
+ export declare namespace ConversationPbxQueue {
9985
+ /**
9986
+ * @export
9987
+ * @enum {string}
9988
+ */
9989
+ enum AiPriorityEnum {
9990
+ Neutral,
9991
+ First,
9992
+ Backup
9993
+ }
9994
+ }
9962
9995
  /**
9963
9996
  *
9964
9997
  * @export
@@ -29491,6 +29524,44 @@ export interface ItemInventorySnapshotResponse {
29491
29524
  */
29492
29525
  warning?: Warning;
29493
29526
  }
29527
+ /**
29528
+ *
29529
+ * @export
29530
+ * @interface ItemInventoryUpdate
29531
+ */
29532
+ export interface ItemInventoryUpdate {
29533
+ /**
29534
+ * Distribution center code
29535
+ * @type {string}
29536
+ * @memberof ItemInventoryUpdate
29537
+ */
29538
+ distribution_center_code?: string;
29539
+ /**
29540
+ * Inventory level
29541
+ * @type {number}
29542
+ * @memberof ItemInventoryUpdate
29543
+ */
29544
+ inventory_level?: number;
29545
+ /**
29546
+ * Merchant Item ID
29547
+ * @type {string}
29548
+ * @memberof ItemInventoryUpdate
29549
+ */
29550
+ merchant_item_id?: string;
29551
+ }
29552
+ /**
29553
+ *
29554
+ * @export
29555
+ * @interface ItemInventoryUpdateRequest
29556
+ */
29557
+ export interface ItemInventoryUpdateRequest {
29558
+ /**
29559
+ * Inventory updates array
29560
+ * @type {Array<ItemInventoryUpdate>}
29561
+ * @memberof ItemInventoryUpdateRequest
29562
+ */
29563
+ inventory_updates?: Array<ItemInventoryUpdate>;
29564
+ }
29494
29565
  /**
29495
29566
  *
29496
29567
  * @export
@@ -57750,6 +57821,14 @@ export declare const ItemApiFetchParamCreator: (configuration?: Configuration) =
57750
57821
  * @throws {RequiredError}
57751
57822
  */
57752
57823
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): FetchArgs;
57824
+ /**
57825
+ * Update item inventories for a distribution center
57826
+ * @summary Update item inventories for a distribution center
57827
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
57828
+ * @param {*} [options] Override http request option.
57829
+ * @throws {RequiredError}
57830
+ */
57831
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): FetchArgs;
57753
57832
  /**
57754
57833
  * Update an item shipping distribution center
57755
57834
  * @summary Update an item shipping distribution center
@@ -57996,6 +58075,14 @@ export declare const ItemApiFp: (configuration?: Configuration) => {
57996
58075
  * @throws {RequiredError}
57997
58076
  */
57998
58077
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ItemResponse>;
58078
+ /**
58079
+ * Update item inventories for a distribution center
58080
+ * @summary Update item inventories for a distribution center
58081
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
58082
+ * @param {*} [options] Override http request option.
58083
+ * @throws {RequiredError}
58084
+ */
58085
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
57999
58086
  /**
58000
58087
  * Update an item shipping distribution center
58001
58088
  * @summary Update an item shipping distribution center
@@ -58242,6 +58329,14 @@ export declare const ItemApiFactory: (configuration?: Configuration, fetch?: Fet
58242
58329
  * @throws {RequiredError}
58243
58330
  */
58244
58331
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): Promise<ItemResponse>;
58332
+ /**
58333
+ * Update item inventories for a distribution center
58334
+ * @summary Update item inventories for a distribution center
58335
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
58336
+ * @param {*} [options] Override http request option.
58337
+ * @throws {RequiredError}
58338
+ */
58339
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): Promise<Response>;
58245
58340
  /**
58246
58341
  * Update an item shipping distribution center
58247
58342
  * @summary Update an item shipping distribution center
@@ -58510,6 +58605,15 @@ export interface ItemApiInterface {
58510
58605
  * @memberof ItemApiInterface
58511
58606
  */
58512
58607
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): Promise<ItemResponse>;
58608
+ /**
58609
+ * Update item inventories for a distribution center
58610
+ * @summary Update item inventories for a distribution center
58611
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
58612
+ * @param {*} [options] Override http request option.
58613
+ * @throws {RequiredError}
58614
+ * @memberof ItemApiInterface
58615
+ */
58616
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): Promise<{}>;
58513
58617
  /**
58514
58618
  * Update an item shipping distribution center
58515
58619
  * @summary Update an item shipping distribution center
@@ -58783,6 +58887,15 @@ export declare class ItemApi extends BaseAPI implements ItemApiInterface {
58783
58887
  * @memberof ItemApi
58784
58888
  */
58785
58889
  updateItem(item: Item, merchant_item_oid: number, _expand?: string, _placeholders?: boolean, options?: any): Promise<ItemResponse>;
58890
+ /**
58891
+ * Update item inventories for a distribution center
58892
+ * @summary Update item inventories for a distribution center
58893
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
58894
+ * @param {*} [options] Override http request option.
58895
+ * @throws {RequiredError}
58896
+ * @memberof ItemApi
58897
+ */
58898
+ updateItemInventories(item_inventory_update_request: ItemInventoryUpdateRequest, options?: any): Promise<Response>;
58786
58899
  /**
58787
58900
  * Update an item shipping distribution center
58788
58901
  * @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(/\/+$/, "");
@@ -656,6 +656,23 @@ var ConversationPbxPhoneNumber;
656
656
  ActionEnum[ActionEnum["Agent"] = 'agent'] = "Agent";
657
657
  })(ActionEnum = ConversationPbxPhoneNumber.ActionEnum || (ConversationPbxPhoneNumber.ActionEnum = {}));
658
658
  })(ConversationPbxPhoneNumber = exports.ConversationPbxPhoneNumber || (exports.ConversationPbxPhoneNumber = {}));
659
+ /**
660
+ * @export
661
+ * @namespace ConversationPbxQueue
662
+ */
663
+ var ConversationPbxQueue;
664
+ (function (ConversationPbxQueue) {
665
+ /**
666
+ * @export
667
+ * @enum {string}
668
+ */
669
+ var AiPriorityEnum;
670
+ (function (AiPriorityEnum) {
671
+ AiPriorityEnum[AiPriorityEnum["Neutral"] = 'neutral'] = "Neutral";
672
+ AiPriorityEnum[AiPriorityEnum["First"] = 'first'] = "First";
673
+ AiPriorityEnum[AiPriorityEnum["Backup"] = 'backup'] = "Backup";
674
+ })(AiPriorityEnum = ConversationPbxQueue.AiPriorityEnum || (ConversationPbxQueue.AiPriorityEnum = {}));
675
+ })(ConversationPbxQueue = exports.ConversationPbxQueue || (exports.ConversationPbxQueue = {}));
659
676
  /**
660
677
  * @export
661
678
  * @namespace ConversationPbxTimeBasedMapping
@@ -26449,6 +26466,54 @@ var ItemApiFetchParamCreator = function (configuration) {
26449
26466
  options: localVarRequestOptions,
26450
26467
  };
26451
26468
  },
26469
+ /**
26470
+ * Update item inventories for a distribution center
26471
+ * @summary Update item inventories for a distribution center
26472
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
26473
+ * @param {*} [options] Override http request option.
26474
+ * @throws {RequiredError}
26475
+ */
26476
+ updateItemInventories: function (item_inventory_update_request, options) {
26477
+ if (options === void 0) { options = {}; }
26478
+ // verify required parameter 'item_inventory_update_request' is not null or undefined
26479
+ if (item_inventory_update_request === null || item_inventory_update_request === undefined) {
26480
+ throw new RequiredError('item_inventory_update_request', 'Required parameter item_inventory_update_request was null or undefined when calling updateItemInventories.');
26481
+ }
26482
+ var localVarPath = "/item/items/update_item_inventories";
26483
+ var localVarUrlObj = url.parse(localVarPath, true);
26484
+ var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
26485
+ var localVarHeaderParameter = {};
26486
+ var localVarQueryParameter = {};
26487
+ if (configuration && configuration.apiVersion) {
26488
+ localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
26489
+ }
26490
+ // authentication ultraCartOauth required
26491
+ // oauth required
26492
+ if (configuration && configuration.accessToken) {
26493
+ var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
26494
+ ? configuration.accessToken("ultraCartOauth", ["item_write"])
26495
+ : configuration.accessToken;
26496
+ localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
26497
+ }
26498
+ // authentication ultraCartSimpleApiKey required
26499
+ if (configuration && configuration.apiKey) {
26500
+ var localVarApiKeyValue = typeof configuration.apiKey === 'function'
26501
+ ? configuration.apiKey("x-ultracart-simple-key")
26502
+ : configuration.apiKey;
26503
+ localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
26504
+ }
26505
+ localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
26506
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
26507
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
26508
+ delete localVarUrlObj.search;
26509
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
26510
+ var needsSerialization = ("ItemInventoryUpdateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
26511
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(item_inventory_update_request || {}) : (item_inventory_update_request || "");
26512
+ return {
26513
+ url: url.format(localVarUrlObj),
26514
+ options: localVarRequestOptions,
26515
+ };
26516
+ },
26452
26517
  /**
26453
26518
  * Update an item shipping distribution center
26454
26519
  * @summary Update an item shipping distribution center
@@ -27184,6 +27249,28 @@ var ItemApiFp = function (configuration) {
27184
27249
  });
27185
27250
  };
27186
27251
  },
27252
+ /**
27253
+ * Update item inventories for a distribution center
27254
+ * @summary Update item inventories for a distribution center
27255
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
27256
+ * @param {*} [options] Override http request option.
27257
+ * @throws {RequiredError}
27258
+ */
27259
+ updateItemInventories: function (item_inventory_update_request, options) {
27260
+ var localVarFetchArgs = (0, exports.ItemApiFetchParamCreator)(configuration).updateItemInventories(item_inventory_update_request, options);
27261
+ return function (fetch, basePath) {
27262
+ if (fetch === void 0) { fetch = portableFetch; }
27263
+ if (basePath === void 0) { basePath = BASE_PATH; }
27264
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
27265
+ if (response.status >= 200 && response.status < 300) {
27266
+ return response;
27267
+ }
27268
+ else {
27269
+ throw response;
27270
+ }
27271
+ });
27272
+ };
27273
+ },
27187
27274
  /**
27188
27275
  * Update an item shipping distribution center
27189
27276
  * @summary Update an item shipping distribution center
@@ -27531,6 +27618,16 @@ var ItemApiFactory = function (configuration, fetch, basePath) {
27531
27618
  updateItem: function (item, merchant_item_oid, _expand, _placeholders, options) {
27532
27619
  return (0, exports.ItemApiFp)(configuration).updateItem(item, merchant_item_oid, _expand, _placeholders, options)(fetch, basePath);
27533
27620
  },
27621
+ /**
27622
+ * Update item inventories for a distribution center
27623
+ * @summary Update item inventories for a distribution center
27624
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
27625
+ * @param {*} [options] Override http request option.
27626
+ * @throws {RequiredError}
27627
+ */
27628
+ updateItemInventories: function (item_inventory_update_request, options) {
27629
+ return (0, exports.ItemApiFp)(configuration).updateItemInventories(item_inventory_update_request, options)(fetch, basePath);
27630
+ },
27534
27631
  /**
27535
27632
  * Update an item shipping distribution center
27536
27633
  * @summary Update an item shipping distribution center
@@ -27856,6 +27953,17 @@ var ItemApi = /** @class */ (function (_super) {
27856
27953
  ItemApi.prototype.updateItem = function (item, merchant_item_oid, _expand, _placeholders, options) {
27857
27954
  return (0, exports.ItemApiFp)(this.configuration).updateItem(item, merchant_item_oid, _expand, _placeholders, options)(this.fetch, this.basePath);
27858
27955
  };
27956
+ /**
27957
+ * Update item inventories for a distribution center
27958
+ * @summary Update item inventories for a distribution center
27959
+ * @param {ItemInventoryUpdateRequest} item_inventory_update_request Item inventory updates
27960
+ * @param {*} [options] Override http request option.
27961
+ * @throws {RequiredError}
27962
+ * @memberof ItemApi
27963
+ */
27964
+ ItemApi.prototype.updateItemInventories = function (item_inventory_update_request, options) {
27965
+ return (0, exports.ItemApiFp)(this.configuration).updateItemInventories(item_inventory_update_request, options)(this.fetch, this.basePath);
27966
+ };
27859
27967
  /**
27860
27968
  * Update an item shipping distribution center
27861
27969
  * @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.37",
3
+ "version": "3.11.39",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [