ultracart_rest_api_v2_typescript 3.10.228 → 3.11.0
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 +3 -2
- package/api.ts +95 -95
- package/dist/api.d.ts +37 -37
- package/dist/api.js +80 -80
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.11.0
|
|
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.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.11.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.11.0 | 02/21/2025 | ItemApi.getInventorySnapshot had bad nickname causing bad sdk method name |
|
|
57
58
|
| 3.10.228 | 02/20/2025 | automation fix |
|
|
58
59
|
| 3.10.227 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
|
|
59
60
|
| 3.10.226 | 02/20/2025 | no change, revving sdk to troubleshoot java deployment automation |
|
package/api.ts
CHANGED
|
@@ -69708,6 +69708,52 @@ export const ItemApiFetchParamCreator = function (configuration?: Configuration)
|
|
|
69708
69708
|
|
|
69709
69709
|
|
|
69710
69710
|
|
|
69711
|
+
// authentication ultraCartOauth required
|
|
69712
|
+
// oauth required
|
|
69713
|
+
if (configuration && configuration.accessToken) {
|
|
69714
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
69715
|
+
? configuration.accessToken("ultraCartOauth", ["item_read"])
|
|
69716
|
+
: configuration.accessToken;
|
|
69717
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
69718
|
+
}
|
|
69719
|
+
|
|
69720
|
+
// authentication ultraCartSimpleApiKey required
|
|
69721
|
+
if (configuration && configuration.apiKey) {
|
|
69722
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
69723
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
69724
|
+
: configuration.apiKey;
|
|
69725
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
69726
|
+
}
|
|
69727
|
+
|
|
69728
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
69729
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
69730
|
+
delete localVarUrlObj.search;
|
|
69731
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
69732
|
+
|
|
69733
|
+
return {
|
|
69734
|
+
url: url.format(localVarUrlObj),
|
|
69735
|
+
options: localVarRequestOptions,
|
|
69736
|
+
};
|
|
69737
|
+
},
|
|
69738
|
+
/**
|
|
69739
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
69740
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
69741
|
+
* @param {*} [options] Override http request option.
|
|
69742
|
+
* @throws {RequiredError}
|
|
69743
|
+
*/
|
|
69744
|
+
getInventorySnapshot(options: any = {}): FetchArgs {
|
|
69745
|
+
const localVarPath = `/item/items/inventory_snapshot`;
|
|
69746
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
69747
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
69748
|
+
const localVarHeaderParameter = {} as any;
|
|
69749
|
+
const localVarQueryParameter = {} as any;
|
|
69750
|
+
|
|
69751
|
+
if(configuration && configuration.apiVersion) {
|
|
69752
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
69753
|
+
}
|
|
69754
|
+
|
|
69755
|
+
|
|
69756
|
+
|
|
69711
69757
|
// authentication ultraCartOauth required
|
|
69712
69758
|
// oauth required
|
|
69713
69759
|
if (configuration && configuration.accessToken) {
|
|
@@ -70424,52 +70470,6 @@ export const ItemApiFetchParamCreator = function (configuration?: Configuration)
|
|
|
70424
70470
|
options: localVarRequestOptions,
|
|
70425
70471
|
};
|
|
70426
70472
|
},
|
|
70427
|
-
/**
|
|
70428
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
70429
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
70430
|
-
* @param {*} [options] Override http request option.
|
|
70431
|
-
* @throws {RequiredError}
|
|
70432
|
-
*/
|
|
70433
|
-
restItemInventorySnapshotResponse(options: any = {}): FetchArgs {
|
|
70434
|
-
const localVarPath = `/item/items/inventory_snapshot`;
|
|
70435
|
-
const localVarUrlObj = url.parse(localVarPath, true);
|
|
70436
|
-
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
70437
|
-
const localVarHeaderParameter = {} as any;
|
|
70438
|
-
const localVarQueryParameter = {} as any;
|
|
70439
|
-
|
|
70440
|
-
if(configuration && configuration.apiVersion) {
|
|
70441
|
-
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
70442
|
-
}
|
|
70443
|
-
|
|
70444
|
-
|
|
70445
|
-
|
|
70446
|
-
// authentication ultraCartOauth required
|
|
70447
|
-
// oauth required
|
|
70448
|
-
if (configuration && configuration.accessToken) {
|
|
70449
|
-
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
70450
|
-
? configuration.accessToken("ultraCartOauth", ["item_read"])
|
|
70451
|
-
: configuration.accessToken;
|
|
70452
|
-
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
70453
|
-
}
|
|
70454
|
-
|
|
70455
|
-
// authentication ultraCartSimpleApiKey required
|
|
70456
|
-
if (configuration && configuration.apiKey) {
|
|
70457
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
70458
|
-
? configuration.apiKey("x-ultracart-simple-key")
|
|
70459
|
-
: configuration.apiKey;
|
|
70460
|
-
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
70461
|
-
}
|
|
70462
|
-
|
|
70463
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
70464
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
70465
|
-
delete localVarUrlObj.search;
|
|
70466
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
70467
|
-
|
|
70468
|
-
return {
|
|
70469
|
-
url: url.format(localVarUrlObj),
|
|
70470
|
-
options: localVarRequestOptions,
|
|
70471
|
-
};
|
|
70472
|
-
},
|
|
70473
70473
|
/**
|
|
70474
70474
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
70475
70475
|
* @summary Updates a file within the digital library
|
|
@@ -70939,6 +70939,26 @@ export const ItemApiFp = function(configuration?: Configuration) {
|
|
|
70939
70939
|
});
|
|
70940
70940
|
};
|
|
70941
70941
|
},
|
|
70942
|
+
/**
|
|
70943
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
70944
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
70945
|
+
* @param {*} [options] Override http request option.
|
|
70946
|
+
* @throws {RequiredError}
|
|
70947
|
+
*/
|
|
70948
|
+
getInventorySnapshot(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ItemInventorySnapshotResponse> {
|
|
70949
|
+
const localVarFetchArgs = ItemApiFetchParamCreator(configuration).getInventorySnapshot(options);
|
|
70950
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
70951
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
70952
|
+
|
|
70953
|
+
if (response.status >= 200 && response.status < 300) {
|
|
70954
|
+
return response.json();
|
|
70955
|
+
|
|
70956
|
+
} else {
|
|
70957
|
+
throw response;
|
|
70958
|
+
}
|
|
70959
|
+
});
|
|
70960
|
+
};
|
|
70961
|
+
},
|
|
70942
70962
|
/**
|
|
70943
70963
|
* Retrieves a single item using the specified item oid.
|
|
70944
70964
|
* @summary Retrieve an item
|
|
@@ -71191,26 +71211,6 @@ export const ItemApiFp = function(configuration?: Configuration) {
|
|
|
71191
71211
|
});
|
|
71192
71212
|
};
|
|
71193
71213
|
},
|
|
71194
|
-
/**
|
|
71195
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71196
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71197
|
-
* @param {*} [options] Override http request option.
|
|
71198
|
-
* @throws {RequiredError}
|
|
71199
|
-
*/
|
|
71200
|
-
restItemInventorySnapshotResponse(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ItemInventorySnapshotResponse> {
|
|
71201
|
-
const localVarFetchArgs = ItemApiFetchParamCreator(configuration).restItemInventorySnapshotResponse(options);
|
|
71202
|
-
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
71203
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
71204
|
-
|
|
71205
|
-
if (response.status >= 200 && response.status < 300) {
|
|
71206
|
-
return response.json();
|
|
71207
|
-
|
|
71208
|
-
} else {
|
|
71209
|
-
throw response;
|
|
71210
|
-
}
|
|
71211
|
-
});
|
|
71212
|
-
};
|
|
71213
|
-
},
|
|
71214
71214
|
/**
|
|
71215
71215
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
71216
71216
|
* @summary Updates a file within the digital library
|
|
@@ -71400,6 +71400,15 @@ export const ItemApiFactory = function (configuration?: Configuration, fetch?: F
|
|
|
71400
71400
|
getDigitalItemsByExternalId(external_id: string, options?: any) {
|
|
71401
71401
|
return ItemApiFp(configuration).getDigitalItemsByExternalId(external_id, options)(fetch, basePath);
|
|
71402
71402
|
},
|
|
71403
|
+
/**
|
|
71404
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71405
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71406
|
+
* @param {*} [options] Override http request option.
|
|
71407
|
+
* @throws {RequiredError}
|
|
71408
|
+
*/
|
|
71409
|
+
getInventorySnapshot(options?: any) {
|
|
71410
|
+
return ItemApiFp(configuration).getInventorySnapshot(options)(fetch, basePath);
|
|
71411
|
+
},
|
|
71403
71412
|
/**
|
|
71404
71413
|
* Retrieves a single item using the specified item oid.
|
|
71405
71414
|
* @summary Retrieve an item
|
|
@@ -71531,15 +71540,6 @@ export const ItemApiFactory = function (configuration?: Configuration, fetch?: F
|
|
|
71531
71540
|
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any) {
|
|
71532
71541
|
return ItemApiFp(configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(fetch, basePath);
|
|
71533
71542
|
},
|
|
71534
|
-
/**
|
|
71535
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71536
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71537
|
-
* @param {*} [options] Override http request option.
|
|
71538
|
-
* @throws {RequiredError}
|
|
71539
|
-
*/
|
|
71540
|
-
restItemInventorySnapshotResponse(options?: any) {
|
|
71541
|
-
return ItemApiFp(configuration).restItemInventorySnapshotResponse(options)(fetch, basePath);
|
|
71542
|
-
},
|
|
71543
71543
|
/**
|
|
71544
71544
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
71545
71545
|
* @summary Updates a file within the digital library
|
|
@@ -71674,6 +71674,15 @@ export interface ItemApiInterface {
|
|
|
71674
71674
|
*/
|
|
71675
71675
|
getDigitalItemsByExternalId(external_id: string, options?: any): Promise<ItemDigitalItemsResponse>;
|
|
71676
71676
|
|
|
71677
|
+
/**
|
|
71678
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71679
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71680
|
+
* @param {*} [options] Override http request option.
|
|
71681
|
+
* @throws {RequiredError}
|
|
71682
|
+
* @memberof ItemApiInterface
|
|
71683
|
+
*/
|
|
71684
|
+
getInventorySnapshot(options?: any): Promise<ItemInventorySnapshotResponse>;
|
|
71685
|
+
|
|
71677
71686
|
/**
|
|
71678
71687
|
* Retrieves a single item using the specified item oid.
|
|
71679
71688
|
* @summary Retrieve an item
|
|
@@ -71805,15 +71814,6 @@ export interface ItemApiInterface {
|
|
|
71805
71814
|
*/
|
|
71806
71815
|
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<{}>;
|
|
71807
71816
|
|
|
71808
|
-
/**
|
|
71809
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71810
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71811
|
-
* @param {*} [options] Override http request option.
|
|
71812
|
-
* @throws {RequiredError}
|
|
71813
|
-
* @memberof ItemApiInterface
|
|
71814
|
-
*/
|
|
71815
|
-
restItemInventorySnapshotResponse(options?: any): Promise<ItemInventorySnapshotResponse>;
|
|
71816
|
-
|
|
71817
71817
|
/**
|
|
71818
71818
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
71819
71819
|
* @summary Updates a file within the digital library
|
|
@@ -71960,6 +71960,17 @@ export class ItemApi extends BaseAPI implements ItemApiInterface {
|
|
|
71960
71960
|
return ItemApiFp(this.configuration).getDigitalItemsByExternalId(external_id, options)(this.fetch, this.basePath);
|
|
71961
71961
|
}
|
|
71962
71962
|
|
|
71963
|
+
/**
|
|
71964
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71965
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
71966
|
+
* @param {*} [options] Override http request option.
|
|
71967
|
+
* @throws {RequiredError}
|
|
71968
|
+
* @memberof ItemApi
|
|
71969
|
+
*/
|
|
71970
|
+
public getInventorySnapshot(options?: any) {
|
|
71971
|
+
return ItemApiFp(this.configuration).getInventorySnapshot(options)(this.fetch, this.basePath);
|
|
71972
|
+
}
|
|
71973
|
+
|
|
71963
71974
|
/**
|
|
71964
71975
|
* Retrieves a single item using the specified item oid.
|
|
71965
71976
|
* @summary Retrieve an item
|
|
@@ -72113,17 +72124,6 @@ export class ItemApi extends BaseAPI implements ItemApiInterface {
|
|
|
72113
72124
|
return ItemApiFp(this.configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(this.fetch, this.basePath);
|
|
72114
72125
|
}
|
|
72115
72126
|
|
|
72116
|
-
/**
|
|
72117
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
72118
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
72119
|
-
* @param {*} [options] Override http request option.
|
|
72120
|
-
* @throws {RequiredError}
|
|
72121
|
-
* @memberof ItemApi
|
|
72122
|
-
*/
|
|
72123
|
-
public restItemInventorySnapshotResponse(options?: any) {
|
|
72124
|
-
return ItemApiFp(this.configuration).restItemInventorySnapshotResponse(options)(this.fetch, this.basePath);
|
|
72125
|
-
}
|
|
72126
|
-
|
|
72127
72127
|
/**
|
|
72128
72128
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
72129
72129
|
* @summary Updates a file within the digital library
|
package/dist/api.d.ts
CHANGED
|
@@ -54269,6 +54269,13 @@ export declare const ItemApiFetchParamCreator: (configuration?: Configuration) =
|
|
|
54269
54269
|
* @throws {RequiredError}
|
|
54270
54270
|
*/
|
|
54271
54271
|
getDigitalItemsByExternalId(external_id: string, options?: any): FetchArgs;
|
|
54272
|
+
/**
|
|
54273
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54274
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54275
|
+
* @param {*} [options] Override http request option.
|
|
54276
|
+
* @throws {RequiredError}
|
|
54277
|
+
*/
|
|
54278
|
+
getInventorySnapshot(options?: any): FetchArgs;
|
|
54272
54279
|
/**
|
|
54273
54280
|
* Retrieves a single item using the specified item oid.
|
|
54274
54281
|
* @summary Retrieve an item
|
|
@@ -54378,13 +54385,6 @@ export declare const ItemApiFetchParamCreator: (configuration?: Configuration) =
|
|
|
54378
54385
|
* @throws {RequiredError}
|
|
54379
54386
|
*/
|
|
54380
54387
|
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): FetchArgs;
|
|
54381
|
-
/**
|
|
54382
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54383
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54384
|
-
* @param {*} [options] Override http request option.
|
|
54385
|
-
* @throws {RequiredError}
|
|
54386
|
-
*/
|
|
54387
|
-
restItemInventorySnapshotResponse(options?: any): FetchArgs;
|
|
54388
54388
|
/**
|
|
54389
54389
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
54390
54390
|
* @summary Updates a file within the digital library
|
|
@@ -54494,6 +54494,13 @@ export declare const ItemApiFp: (configuration?: Configuration) => {
|
|
|
54494
54494
|
* @throws {RequiredError}
|
|
54495
54495
|
*/
|
|
54496
54496
|
getDigitalItemsByExternalId(external_id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ItemDigitalItemsResponse>;
|
|
54497
|
+
/**
|
|
54498
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54499
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54500
|
+
* @param {*} [options] Override http request option.
|
|
54501
|
+
* @throws {RequiredError}
|
|
54502
|
+
*/
|
|
54503
|
+
getInventorySnapshot(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ItemInventorySnapshotResponse>;
|
|
54497
54504
|
/**
|
|
54498
54505
|
* Retrieves a single item using the specified item oid.
|
|
54499
54506
|
* @summary Retrieve an item
|
|
@@ -54603,13 +54610,6 @@ export declare const ItemApiFp: (configuration?: Configuration) => {
|
|
|
54603
54610
|
* @throws {RequiredError}
|
|
54604
54611
|
*/
|
|
54605
54612
|
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
54606
|
-
/**
|
|
54607
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54608
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54609
|
-
* @param {*} [options] Override http request option.
|
|
54610
|
-
* @throws {RequiredError}
|
|
54611
|
-
*/
|
|
54612
|
-
restItemInventorySnapshotResponse(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ItemInventorySnapshotResponse>;
|
|
54613
54613
|
/**
|
|
54614
54614
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
54615
54615
|
* @summary Updates a file within the digital library
|
|
@@ -54719,6 +54719,13 @@ export declare const ItemApiFactory: (configuration?: Configuration, fetch?: Fet
|
|
|
54719
54719
|
* @throws {RequiredError}
|
|
54720
54720
|
*/
|
|
54721
54721
|
getDigitalItemsByExternalId(external_id: string, options?: any): Promise<ItemDigitalItemsResponse>;
|
|
54722
|
+
/**
|
|
54723
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54724
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54725
|
+
* @param {*} [options] Override http request option.
|
|
54726
|
+
* @throws {RequiredError}
|
|
54727
|
+
*/
|
|
54728
|
+
getInventorySnapshot(options?: any): Promise<ItemInventorySnapshotResponse>;
|
|
54722
54729
|
/**
|
|
54723
54730
|
* Retrieves a single item using the specified item oid.
|
|
54724
54731
|
* @summary Retrieve an item
|
|
@@ -54828,13 +54835,6 @@ export declare const ItemApiFactory: (configuration?: Configuration, fetch?: Fet
|
|
|
54828
54835
|
* @throws {RequiredError}
|
|
54829
54836
|
*/
|
|
54830
54837
|
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<Response>;
|
|
54831
|
-
/**
|
|
54832
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54833
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54834
|
-
* @param {*} [options] Override http request option.
|
|
54835
|
-
* @throws {RequiredError}
|
|
54836
|
-
*/
|
|
54837
|
-
restItemInventorySnapshotResponse(options?: any): Promise<ItemInventorySnapshotResponse>;
|
|
54838
54838
|
/**
|
|
54839
54839
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
54840
54840
|
* @summary Updates a file within the digital library
|
|
@@ -54951,6 +54951,14 @@ export interface ItemApiInterface {
|
|
|
54951
54951
|
* @memberof ItemApiInterface
|
|
54952
54952
|
*/
|
|
54953
54953
|
getDigitalItemsByExternalId(external_id: string, options?: any): Promise<ItemDigitalItemsResponse>;
|
|
54954
|
+
/**
|
|
54955
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54956
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
54957
|
+
* @param {*} [options] Override http request option.
|
|
54958
|
+
* @throws {RequiredError}
|
|
54959
|
+
* @memberof ItemApiInterface
|
|
54960
|
+
*/
|
|
54961
|
+
getInventorySnapshot(options?: any): Promise<ItemInventorySnapshotResponse>;
|
|
54954
54962
|
/**
|
|
54955
54963
|
* Retrieves a single item using the specified item oid.
|
|
54956
54964
|
* @summary Retrieve an item
|
|
@@ -55071,14 +55079,6 @@ export interface ItemApiInterface {
|
|
|
55071
55079
|
* @memberof ItemApiInterface
|
|
55072
55080
|
*/
|
|
55073
55081
|
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<{}>;
|
|
55074
|
-
/**
|
|
55075
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
55076
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
55077
|
-
* @param {*} [options] Override http request option.
|
|
55078
|
-
* @throws {RequiredError}
|
|
55079
|
-
* @memberof ItemApiInterface
|
|
55080
|
-
*/
|
|
55081
|
-
restItemInventorySnapshotResponse(options?: any): Promise<ItemInventorySnapshotResponse>;
|
|
55082
55082
|
/**
|
|
55083
55083
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
55084
55084
|
* @summary Updates a file within the digital library
|
|
@@ -55201,6 +55201,14 @@ export declare class ItemApi extends BaseAPI implements ItemApiInterface {
|
|
|
55201
55201
|
* @memberof ItemApi
|
|
55202
55202
|
*/
|
|
55203
55203
|
getDigitalItemsByExternalId(external_id: string, options?: any): Promise<ItemDigitalItemsResponse>;
|
|
55204
|
+
/**
|
|
55205
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
55206
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
55207
|
+
* @param {*} [options] Override http request option.
|
|
55208
|
+
* @throws {RequiredError}
|
|
55209
|
+
* @memberof ItemApi
|
|
55210
|
+
*/
|
|
55211
|
+
getInventorySnapshot(options?: any): Promise<ItemInventorySnapshotResponse>;
|
|
55204
55212
|
/**
|
|
55205
55213
|
* Retrieves a single item using the specified item oid.
|
|
55206
55214
|
* @summary Retrieve an item
|
|
@@ -55321,14 +55329,6 @@ export declare class ItemApi extends BaseAPI implements ItemApiInterface {
|
|
|
55321
55329
|
* @memberof ItemApi
|
|
55322
55330
|
*/
|
|
55323
55331
|
insertUpdateItemContentAttribute(item_attribute: ItemContentAttribute, merchant_item_oid: number, options?: any): Promise<Response>;
|
|
55324
|
-
/**
|
|
55325
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
55326
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
55327
|
-
* @param {*} [options] Override http request option.
|
|
55328
|
-
* @throws {RequiredError}
|
|
55329
|
-
* @memberof ItemApi
|
|
55330
|
-
*/
|
|
55331
|
-
restItemInventorySnapshotResponse(options?: any): Promise<ItemInventorySnapshotResponse>;
|
|
55332
55332
|
/**
|
|
55333
55333
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
55334
55334
|
* @summary Updates a file within the digital library
|
package/dist/api.js
CHANGED
|
@@ -22594,6 +22594,46 @@ var ItemApiFetchParamCreator = function (configuration) {
|
|
|
22594
22594
|
options: localVarRequestOptions,
|
|
22595
22595
|
};
|
|
22596
22596
|
},
|
|
22597
|
+
/**
|
|
22598
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
22599
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
22600
|
+
* @param {*} [options] Override http request option.
|
|
22601
|
+
* @throws {RequiredError}
|
|
22602
|
+
*/
|
|
22603
|
+
getInventorySnapshot: function (options) {
|
|
22604
|
+
if (options === void 0) { options = {}; }
|
|
22605
|
+
var localVarPath = "/item/items/inventory_snapshot";
|
|
22606
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
22607
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
22608
|
+
var localVarHeaderParameter = {};
|
|
22609
|
+
var localVarQueryParameter = {};
|
|
22610
|
+
if (configuration && configuration.apiVersion) {
|
|
22611
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
22612
|
+
}
|
|
22613
|
+
// authentication ultraCartOauth required
|
|
22614
|
+
// oauth required
|
|
22615
|
+
if (configuration && configuration.accessToken) {
|
|
22616
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
22617
|
+
? configuration.accessToken("ultraCartOauth", ["item_read"])
|
|
22618
|
+
: configuration.accessToken;
|
|
22619
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
22620
|
+
}
|
|
22621
|
+
// authentication ultraCartSimpleApiKey required
|
|
22622
|
+
if (configuration && configuration.apiKey) {
|
|
22623
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
22624
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
22625
|
+
: configuration.apiKey;
|
|
22626
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
22627
|
+
}
|
|
22628
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
22629
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
22630
|
+
delete localVarUrlObj.search;
|
|
22631
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
22632
|
+
return {
|
|
22633
|
+
url: url.format(localVarUrlObj),
|
|
22634
|
+
options: localVarRequestOptions,
|
|
22635
|
+
};
|
|
22636
|
+
},
|
|
22597
22637
|
/**
|
|
22598
22638
|
* Retrieves a single item using the specified item oid.
|
|
22599
22639
|
* @summary Retrieve an item
|
|
@@ -23192,46 +23232,6 @@ var ItemApiFetchParamCreator = function (configuration) {
|
|
|
23192
23232
|
options: localVarRequestOptions,
|
|
23193
23233
|
};
|
|
23194
23234
|
},
|
|
23195
|
-
/**
|
|
23196
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
23197
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
23198
|
-
* @param {*} [options] Override http request option.
|
|
23199
|
-
* @throws {RequiredError}
|
|
23200
|
-
*/
|
|
23201
|
-
restItemInventorySnapshotResponse: function (options) {
|
|
23202
|
-
if (options === void 0) { options = {}; }
|
|
23203
|
-
var localVarPath = "/item/items/inventory_snapshot";
|
|
23204
|
-
var localVarUrlObj = url.parse(localVarPath, true);
|
|
23205
|
-
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
23206
|
-
var localVarHeaderParameter = {};
|
|
23207
|
-
var localVarQueryParameter = {};
|
|
23208
|
-
if (configuration && configuration.apiVersion) {
|
|
23209
|
-
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
23210
|
-
}
|
|
23211
|
-
// authentication ultraCartOauth required
|
|
23212
|
-
// oauth required
|
|
23213
|
-
if (configuration && configuration.accessToken) {
|
|
23214
|
-
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
23215
|
-
? configuration.accessToken("ultraCartOauth", ["item_read"])
|
|
23216
|
-
: configuration.accessToken;
|
|
23217
|
-
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
23218
|
-
}
|
|
23219
|
-
// authentication ultraCartSimpleApiKey required
|
|
23220
|
-
if (configuration && configuration.apiKey) {
|
|
23221
|
-
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
23222
|
-
? configuration.apiKey("x-ultracart-simple-key")
|
|
23223
|
-
: configuration.apiKey;
|
|
23224
|
-
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
23225
|
-
}
|
|
23226
|
-
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
23227
|
-
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
23228
|
-
delete localVarUrlObj.search;
|
|
23229
|
-
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
23230
|
-
return {
|
|
23231
|
-
url: url.format(localVarUrlObj),
|
|
23232
|
-
options: localVarRequestOptions,
|
|
23233
|
-
};
|
|
23234
|
-
},
|
|
23235
23235
|
/**
|
|
23236
23236
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
23237
23237
|
* @summary Updates a file within the digital library
|
|
@@ -23666,6 +23666,27 @@ var ItemApiFp = function (configuration) {
|
|
|
23666
23666
|
});
|
|
23667
23667
|
};
|
|
23668
23668
|
},
|
|
23669
|
+
/**
|
|
23670
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
23671
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
23672
|
+
* @param {*} [options] Override http request option.
|
|
23673
|
+
* @throws {RequiredError}
|
|
23674
|
+
*/
|
|
23675
|
+
getInventorySnapshot: function (options) {
|
|
23676
|
+
var localVarFetchArgs = (0, exports.ItemApiFetchParamCreator)(configuration).getInventorySnapshot(options);
|
|
23677
|
+
return function (fetch, basePath) {
|
|
23678
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
23679
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
23680
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
23681
|
+
if (response.status >= 200 && response.status < 300) {
|
|
23682
|
+
return response.json();
|
|
23683
|
+
}
|
|
23684
|
+
else {
|
|
23685
|
+
throw response;
|
|
23686
|
+
}
|
|
23687
|
+
});
|
|
23688
|
+
};
|
|
23689
|
+
},
|
|
23669
23690
|
/**
|
|
23670
23691
|
* Retrieves a single item using the specified item oid.
|
|
23671
23692
|
* @summary Retrieve an item
|
|
@@ -23929,27 +23950,6 @@ var ItemApiFp = function (configuration) {
|
|
|
23929
23950
|
});
|
|
23930
23951
|
};
|
|
23931
23952
|
},
|
|
23932
|
-
/**
|
|
23933
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
23934
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
23935
|
-
* @param {*} [options] Override http request option.
|
|
23936
|
-
* @throws {RequiredError}
|
|
23937
|
-
*/
|
|
23938
|
-
restItemInventorySnapshotResponse: function (options) {
|
|
23939
|
-
var localVarFetchArgs = (0, exports.ItemApiFetchParamCreator)(configuration).restItemInventorySnapshotResponse(options);
|
|
23940
|
-
return function (fetch, basePath) {
|
|
23941
|
-
if (fetch === void 0) { fetch = portableFetch; }
|
|
23942
|
-
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
23943
|
-
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
23944
|
-
if (response.status >= 200 && response.status < 300) {
|
|
23945
|
-
return response.json();
|
|
23946
|
-
}
|
|
23947
|
-
else {
|
|
23948
|
-
throw response;
|
|
23949
|
-
}
|
|
23950
|
-
});
|
|
23951
|
-
};
|
|
23952
|
-
},
|
|
23953
23953
|
/**
|
|
23954
23954
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
23955
23955
|
* @summary Updates a file within the digital library
|
|
@@ -24144,6 +24144,15 @@ var ItemApiFactory = function (configuration, fetch, basePath) {
|
|
|
24144
24144
|
getDigitalItemsByExternalId: function (external_id, options) {
|
|
24145
24145
|
return (0, exports.ItemApiFp)(configuration).getDigitalItemsByExternalId(external_id, options)(fetch, basePath);
|
|
24146
24146
|
},
|
|
24147
|
+
/**
|
|
24148
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
24149
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
24150
|
+
* @param {*} [options] Override http request option.
|
|
24151
|
+
* @throws {RequiredError}
|
|
24152
|
+
*/
|
|
24153
|
+
getInventorySnapshot: function (options) {
|
|
24154
|
+
return (0, exports.ItemApiFp)(configuration).getInventorySnapshot(options)(fetch, basePath);
|
|
24155
|
+
},
|
|
24147
24156
|
/**
|
|
24148
24157
|
* Retrieves a single item using the specified item oid.
|
|
24149
24158
|
* @summary Retrieve an item
|
|
@@ -24275,15 +24284,6 @@ var ItemApiFactory = function (configuration, fetch, basePath) {
|
|
|
24275
24284
|
insertUpdateItemContentAttribute: function (item_attribute, merchant_item_oid, options) {
|
|
24276
24285
|
return (0, exports.ItemApiFp)(configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(fetch, basePath);
|
|
24277
24286
|
},
|
|
24278
|
-
/**
|
|
24279
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
24280
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
24281
|
-
* @param {*} [options] Override http request option.
|
|
24282
|
-
* @throws {RequiredError}
|
|
24283
|
-
*/
|
|
24284
|
-
restItemInventorySnapshotResponse: function (options) {
|
|
24285
|
-
return (0, exports.ItemApiFp)(configuration).restItemInventorySnapshotResponse(options)(fetch, basePath);
|
|
24286
|
-
},
|
|
24287
24287
|
/**
|
|
24288
24288
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
24289
24289
|
* @summary Updates a file within the digital library
|
|
@@ -24429,6 +24429,16 @@ var ItemApi = /** @class */ (function (_super) {
|
|
|
24429
24429
|
ItemApi.prototype.getDigitalItemsByExternalId = function (external_id, options) {
|
|
24430
24430
|
return (0, exports.ItemApiFp)(this.configuration).getDigitalItemsByExternalId(external_id, options)(this.fetch, this.basePath);
|
|
24431
24431
|
};
|
|
24432
|
+
/**
|
|
24433
|
+
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
24434
|
+
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
24435
|
+
* @param {*} [options] Override http request option.
|
|
24436
|
+
* @throws {RequiredError}
|
|
24437
|
+
* @memberof ItemApi
|
|
24438
|
+
*/
|
|
24439
|
+
ItemApi.prototype.getInventorySnapshot = function (options) {
|
|
24440
|
+
return (0, exports.ItemApiFp)(this.configuration).getInventorySnapshot(options)(this.fetch, this.basePath);
|
|
24441
|
+
};
|
|
24432
24442
|
/**
|
|
24433
24443
|
* Retrieves a single item using the specified item oid.
|
|
24434
24444
|
* @summary Retrieve an item
|
|
@@ -24571,16 +24581,6 @@ var ItemApi = /** @class */ (function (_super) {
|
|
|
24571
24581
|
ItemApi.prototype.insertUpdateItemContentAttribute = function (item_attribute, merchant_item_oid, options) {
|
|
24572
24582
|
return (0, exports.ItemApiFp)(this.configuration).insertUpdateItemContentAttribute(item_attribute, merchant_item_oid, options)(this.fetch, this.basePath);
|
|
24573
24583
|
};
|
|
24574
|
-
/**
|
|
24575
|
-
* Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
24576
|
-
* @summary Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
|
|
24577
|
-
* @param {*} [options] Override http request option.
|
|
24578
|
-
* @throws {RequiredError}
|
|
24579
|
-
* @memberof ItemApi
|
|
24580
|
-
*/
|
|
24581
|
-
ItemApi.prototype.restItemInventorySnapshotResponse = function (options) {
|
|
24582
|
-
return (0, exports.ItemApiFp)(this.configuration).restItemInventorySnapshotResponse(options)(this.fetch, this.basePath);
|
|
24583
|
-
};
|
|
24584
24584
|
/**
|
|
24585
24585
|
* Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
|
24586
24586
|
* @summary Updates a file within the digital library
|