@revenexx/sdk 0.0.5 → 0.0.6
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/dist/cjs/sdk.js +7188 -5721
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +7185 -5720
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +7188 -5721
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/order-list-kind.ts +4 -0
- package/src/enums/store-asset-request-visibility.ts +4 -0
- package/src/enums/visibility.ts +4 -0
- package/src/index.ts +4 -2
- package/src/models.ts +1232 -294
- package/src/services/customers.ts +14 -6
- package/src/services/markets.ts +317 -0
- package/src/services/orderlists.ts +889 -0
- package/src/services/pages.ts +293 -7
- package/src/services/prices.ts +70 -9
- package/src/services/products.ts +86 -14
- package/src/services/shipping.ts +26 -19
- package/src/services/storage.ts +910 -576
- package/types/enums/order-list-kind.d.ts +4 -0
- package/types/enums/store-asset-request-visibility.d.ts +4 -0
- package/types/enums/visibility.d.ts +4 -0
- package/types/index.d.ts +4 -2
- package/types/models.d.ts +1199 -283
- package/types/services/customers.d.ts +4 -1
- package/types/services/markets.d.ts +112 -0
- package/types/services/orderlists.d.ts +324 -0
- package/types/services/pages.d.ts +96 -1
- package/types/services/prices.d.ts +24 -4
- package/types/services/products.d.ts +28 -2
- package/types/services/shipping.d.ts +8 -5
- package/types/services/storage.d.ts +353 -285
|
@@ -21,6 +21,7 @@ export declare class Products {
|
|
|
21
21
|
* @param {string} params.kind -
|
|
22
22
|
* @param {string} params.parentId -
|
|
23
23
|
* @param {object} params.quantifiedAssociations -
|
|
24
|
+
* @param {string} params.taxClass -
|
|
24
25
|
* @throws {RevenexxException}
|
|
25
26
|
* @returns {Promise<Models.Products>}
|
|
26
27
|
*/
|
|
@@ -35,6 +36,7 @@ export declare class Products {
|
|
|
35
36
|
kind?: string;
|
|
36
37
|
parentId?: string;
|
|
37
38
|
quantifiedAssociations?: object;
|
|
39
|
+
taxClass?: string;
|
|
38
40
|
}): Promise<Models.Products>;
|
|
39
41
|
/**
|
|
40
42
|
*
|
|
@@ -48,11 +50,12 @@ export declare class Products {
|
|
|
48
50
|
* @param {string} kind -
|
|
49
51
|
* @param {string} parentId -
|
|
50
52
|
* @param {object} quantifiedAssociations -
|
|
53
|
+
* @param {string} taxClass -
|
|
51
54
|
* @throws {RevenexxException}
|
|
52
55
|
* @returns {Promise<Models.Products>}
|
|
53
56
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
54
57
|
*/
|
|
55
|
-
productsCreate(sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object): Promise<Models.Products>;
|
|
58
|
+
productsCreate(sku: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, taxClass?: string): Promise<Models.Products>;
|
|
56
59
|
/**
|
|
57
60
|
*
|
|
58
61
|
* @throws {RevenexxException}
|
|
@@ -677,6 +680,26 @@ export declare class Products {
|
|
|
677
680
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
678
681
|
*/
|
|
679
682
|
productsAttributesUpdate(id: string, code?: string, config?: object, entityRef?: string, entityType?: string, groupId?: string, isFilterable?: boolean, isUnique?: boolean, labels?: object, localizable?: boolean, position?: number, scopable?: boolean, type?: string, usableInGrid?: boolean, validation?: object): Promise<Models.Attributes>;
|
|
683
|
+
/**
|
|
684
|
+
*
|
|
685
|
+
* @param {string[]} params.ids -
|
|
686
|
+
* @param {string[]} params.skus -
|
|
687
|
+
* @throws {RevenexxException}
|
|
688
|
+
* @returns {Promise<{}>}
|
|
689
|
+
*/
|
|
690
|
+
productsBatch(params?: {
|
|
691
|
+
ids?: string[];
|
|
692
|
+
skus?: string[];
|
|
693
|
+
}): Promise<{}>;
|
|
694
|
+
/**
|
|
695
|
+
*
|
|
696
|
+
* @param {string[]} ids -
|
|
697
|
+
* @param {string[]} skus -
|
|
698
|
+
* @throws {RevenexxException}
|
|
699
|
+
* @returns {Promise<{}>}
|
|
700
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
701
|
+
*/
|
|
702
|
+
productsBatch(ids?: string[], skus?: string[]): Promise<{}>;
|
|
680
703
|
/**
|
|
681
704
|
*
|
|
682
705
|
* @throws {RevenexxException}
|
|
@@ -1591,6 +1614,7 @@ export declare class Products {
|
|
|
1591
1614
|
* @param {string} params.parentId -
|
|
1592
1615
|
* @param {object} params.quantifiedAssociations -
|
|
1593
1616
|
* @param {string} params.sku -
|
|
1617
|
+
* @param {string} params.taxClass -
|
|
1594
1618
|
* @throws {RevenexxException}
|
|
1595
1619
|
* @returns {Promise<Models.Products>}
|
|
1596
1620
|
*/
|
|
@@ -1606,6 +1630,7 @@ export declare class Products {
|
|
|
1606
1630
|
parentId?: string;
|
|
1607
1631
|
quantifiedAssociations?: object;
|
|
1608
1632
|
sku?: string;
|
|
1633
|
+
taxClass?: string;
|
|
1609
1634
|
}): Promise<Models.Products>;
|
|
1610
1635
|
/**
|
|
1611
1636
|
*
|
|
@@ -1620,9 +1645,10 @@ export declare class Products {
|
|
|
1620
1645
|
* @param {string} parentId -
|
|
1621
1646
|
* @param {object} quantifiedAssociations -
|
|
1622
1647
|
* @param {string} sku -
|
|
1648
|
+
* @param {string} taxClass -
|
|
1623
1649
|
* @throws {RevenexxException}
|
|
1624
1650
|
* @returns {Promise<Models.Products>}
|
|
1625
1651
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1626
1652
|
*/
|
|
1627
|
-
productsUpdate(id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string): Promise<Models.Products>;
|
|
1653
|
+
productsUpdate(id: string, attributeValues?: object, completeness?: object, deletedAt?: string, enabled?: boolean, familyId?: string, familyVariantId?: string, kind?: string, parentId?: string, quantifiedAssociations?: object, sku?: string, taxClass?: string): Promise<Models.Products>;
|
|
1628
1654
|
}
|
|
@@ -230,23 +230,23 @@ export declare class Shipping {
|
|
|
230
230
|
/**
|
|
231
231
|
*
|
|
232
232
|
* @param {string} params.methodId -
|
|
233
|
-
* @param {Models.
|
|
233
|
+
* @param {Models.ShippingRateTierReplaceItem[]} params.tiers - The complete new tier set (set semantics) — positions are derived from the array order.
|
|
234
234
|
* @throws {RevenexxException}
|
|
235
235
|
* @returns {Promise<{}>}
|
|
236
236
|
*/
|
|
237
237
|
shippingTiersReplace(params: {
|
|
238
238
|
methodId: string;
|
|
239
|
-
tiers: Models.
|
|
239
|
+
tiers: Models.ShippingRateTierReplaceItem[];
|
|
240
240
|
}): Promise<{}>;
|
|
241
241
|
/**
|
|
242
242
|
*
|
|
243
243
|
* @param {string} methodId -
|
|
244
|
-
* @param {Models.
|
|
244
|
+
* @param {Models.ShippingRateTierReplaceItem[]} tiers - The complete new tier set (set semantics) — positions are derived from the array order.
|
|
245
245
|
* @throws {RevenexxException}
|
|
246
246
|
* @returns {Promise<{}>}
|
|
247
247
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
248
248
|
*/
|
|
249
|
-
shippingTiersReplace(methodId: string, tiers: Models.
|
|
249
|
+
shippingTiersReplace(methodId: string, tiers: Models.ShippingRateTierReplaceItem[]): Promise<{}>;
|
|
250
250
|
/**
|
|
251
251
|
*
|
|
252
252
|
* @param {string} params.methodId -
|
|
@@ -321,6 +321,7 @@ export declare class Shipping {
|
|
|
321
321
|
* @param {object} params.attributes - Measure values for attribute matrices, keyed by attribute name.
|
|
322
322
|
* @param {string} params.country - Destination ISO 3166-1 alpha-2 code — checked against method country restrictions.
|
|
323
323
|
* @param {string} params.currency - Echoed into the rates (default 'EUR').
|
|
324
|
+
* @param {string} params.marketId - Buyer market for tax resolution (else inferred from country, else first market).
|
|
324
325
|
* @param {number} params.orderValue - Order value (default 0) — drives free-above thresholds and order_value matrices.
|
|
325
326
|
* @param {number} params.quantity - Total quantity — measure for quantity matrices.
|
|
326
327
|
* @param {number} params.weight - Total weight — measure for weight matrices.
|
|
@@ -331,6 +332,7 @@ export declare class Shipping {
|
|
|
331
332
|
attributes?: object;
|
|
332
333
|
country?: string;
|
|
333
334
|
currency?: string;
|
|
335
|
+
marketId?: string;
|
|
334
336
|
orderValue?: number;
|
|
335
337
|
quantity?: number;
|
|
336
338
|
weight?: number;
|
|
@@ -340,6 +342,7 @@ export declare class Shipping {
|
|
|
340
342
|
* @param {object} attributes - Measure values for attribute matrices, keyed by attribute name.
|
|
341
343
|
* @param {string} country - Destination ISO 3166-1 alpha-2 code — checked against method country restrictions.
|
|
342
344
|
* @param {string} currency - Echoed into the rates (default 'EUR').
|
|
345
|
+
* @param {string} marketId - Buyer market for tax resolution (else inferred from country, else first market).
|
|
343
346
|
* @param {number} orderValue - Order value (default 0) — drives free-above thresholds and order_value matrices.
|
|
344
347
|
* @param {number} quantity - Total quantity — measure for quantity matrices.
|
|
345
348
|
* @param {number} weight - Total weight — measure for weight matrices.
|
|
@@ -347,5 +350,5 @@ export declare class Shipping {
|
|
|
347
350
|
* @returns {Promise<{}>}
|
|
348
351
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
349
352
|
*/
|
|
350
|
-
shippingRates(attributes?: object, country?: string, currency?: string, orderValue?: number, quantity?: number, weight?: number): Promise<{}>;
|
|
353
|
+
shippingRates(attributes?: object, country?: string, currency?: string, marketId?: string, orderValue?: number, quantity?: number, weight?: number): Promise<{}>;
|
|
351
354
|
}
|