@aurigma/axios-backoffice-api-client 2.55.1 → 2.56.1
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/backoffice-api-client.d.ts +18 -18
- package/dist/cjs/backoffice-api-client.js +3 -12
- package/dist/cjs/backoffice-api-client.js.map +1 -1
- package/dist/esm/backoffice-api-client.d.ts +18 -18
- package/dist/esm/backoffice-api-client.js +3 -12
- package/dist/esm/backoffice-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -266,30 +266,27 @@ export declare module BackOfficeApiClient {
|
|
|
266
266
|
/**
|
|
267
267
|
* Set product variants price. Variants identifiers will be changed.
|
|
268
268
|
* @param id Product identifier.
|
|
269
|
-
* @param productVersionId (optional) Product version identifier.
|
|
270
269
|
* @param tenantId (optional) Tenant identifier.
|
|
271
270
|
* @param body (optional) Set product variants price operation parameters.
|
|
272
271
|
* @return Success
|
|
273
272
|
*/
|
|
274
|
-
setProductVariantPrice(id: number,
|
|
273
|
+
setProductVariantPrice(id: number, tenantId?: number | null | undefined, body?: SetProductVariantPriceDto | null | undefined): Promise<void>;
|
|
275
274
|
/**
|
|
276
275
|
* Set product variants availability. Variants identifiers will be changed.
|
|
277
276
|
* @param id Product identifier.
|
|
278
|
-
* @param productVersionId (optional) Product version identifier.
|
|
279
277
|
* @param tenantId (optional) Tenant identifier.
|
|
280
278
|
* @param body (optional) Set product variants availability operation parameters.
|
|
281
279
|
* @return Success
|
|
282
280
|
*/
|
|
283
|
-
setProductVariantAvailability(id: number,
|
|
281
|
+
setProductVariantAvailability(id: number, tenantId?: number | null | undefined, body?: SetProductVariantAvailabilityDto | null | undefined): Promise<void>;
|
|
284
282
|
/**
|
|
285
283
|
* Set product variants SKU. Variants identifiers will be changed.
|
|
286
284
|
* @param id Product identifier.
|
|
287
|
-
* @param productVersionId (optional) Product version identifier.
|
|
288
285
|
* @param tenantId (optional) Tenant identifier.
|
|
289
286
|
* @param body (optional) Set product variants SKU operation parameters.
|
|
290
287
|
* @return Success
|
|
291
288
|
*/
|
|
292
|
-
setProductVariantSku(id: number,
|
|
289
|
+
setProductVariantSku(id: number, tenantId?: number | null | undefined, body?: SetProductVariantSkuDto | null | undefined): Promise<void>;
|
|
293
290
|
/**
|
|
294
291
|
* Imports products from a specific CSV file and returns a list of imported products descriptions.
|
|
295
292
|
* @param tenantId (optional) Tenant identifier.
|
|
@@ -502,32 +499,29 @@ export declare module BackOfficeApiClient {
|
|
|
502
499
|
/**
|
|
503
500
|
* Set product variants price. Variants identifiers will be changed.
|
|
504
501
|
* @param id Product identifier.
|
|
505
|
-
* @param productVersionId (optional) Product version identifier.
|
|
506
502
|
* @param tenantId (optional) Tenant identifier.
|
|
507
503
|
* @param body (optional) Set product variants price operation parameters.
|
|
508
504
|
* @return Success
|
|
509
505
|
*/
|
|
510
|
-
setProductVariantPrice(id: number,
|
|
506
|
+
setProductVariantPrice(id: number, tenantId?: number | null | undefined, body?: SetProductVariantPriceDto | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
511
507
|
protected processSetProductVariantPrice(response: AxiosResponse): Promise<void>;
|
|
512
508
|
/**
|
|
513
509
|
* Set product variants availability. Variants identifiers will be changed.
|
|
514
510
|
* @param id Product identifier.
|
|
515
|
-
* @param productVersionId (optional) Product version identifier.
|
|
516
511
|
* @param tenantId (optional) Tenant identifier.
|
|
517
512
|
* @param body (optional) Set product variants availability operation parameters.
|
|
518
513
|
* @return Success
|
|
519
514
|
*/
|
|
520
|
-
setProductVariantAvailability(id: number,
|
|
515
|
+
setProductVariantAvailability(id: number, tenantId?: number | null | undefined, body?: SetProductVariantAvailabilityDto | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
521
516
|
protected processSetProductVariantAvailability(response: AxiosResponse): Promise<void>;
|
|
522
517
|
/**
|
|
523
518
|
* Set product variants SKU. Variants identifiers will be changed.
|
|
524
519
|
* @param id Product identifier.
|
|
525
|
-
* @param productVersionId (optional) Product version identifier.
|
|
526
520
|
* @param tenantId (optional) Tenant identifier.
|
|
527
521
|
* @param body (optional) Set product variants SKU operation parameters.
|
|
528
522
|
* @return Success
|
|
529
523
|
*/
|
|
530
|
-
setProductVariantSku(id: number,
|
|
524
|
+
setProductVariantSku(id: number, tenantId?: number | null | undefined, body?: SetProductVariantSkuDto | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
531
525
|
protected processSetProductVariantSku(response: AxiosResponse): Promise<void>;
|
|
532
526
|
/**
|
|
533
527
|
* Imports products from a specific CSV file and returns a list of imported products descriptions.
|
|
@@ -1282,6 +1276,8 @@ export declare module BackOfficeApiClient {
|
|
|
1282
1276
|
interface ProductVariantDesignDto {
|
|
1283
1277
|
/** Product variant identifier. */
|
|
1284
1278
|
productVariantId?: number;
|
|
1279
|
+
/** Product variant unique identifier. */
|
|
1280
|
+
productVariantUID?: string | null;
|
|
1285
1281
|
/** Product version identifier. */
|
|
1286
1282
|
productVersionId?: number;
|
|
1287
1283
|
/** Product identifier. */
|
|
@@ -1334,6 +1330,8 @@ export declare module BackOfficeApiClient {
|
|
|
1334
1330
|
interface ProductVariantMockupDto {
|
|
1335
1331
|
/** Product variant identifier. */
|
|
1336
1332
|
productVariantId?: number;
|
|
1333
|
+
/** Product variant unique identifier. */
|
|
1334
|
+
productVariantUID?: string | null;
|
|
1337
1335
|
/** Product version identifier. */
|
|
1338
1336
|
productVersionId?: number;
|
|
1339
1337
|
/** Product identifier. */
|
|
@@ -1366,6 +1364,8 @@ export declare module BackOfficeApiClient {
|
|
|
1366
1364
|
interface ProductVariantDocumentDto {
|
|
1367
1365
|
/** Product variant identifier. */
|
|
1368
1366
|
productVariantId?: number;
|
|
1367
|
+
/** Product variant unique identifier. */
|
|
1368
|
+
productVariantUID?: string | null;
|
|
1369
1369
|
/** Product version identifier. */
|
|
1370
1370
|
productVersionId?: number;
|
|
1371
1371
|
/** Product identifier. */
|
|
@@ -1402,8 +1402,8 @@ export declare module BackOfficeApiClient {
|
|
|
1402
1402
|
interface ProductVariantPriceDto {
|
|
1403
1403
|
/** Price. */
|
|
1404
1404
|
price?: number | null;
|
|
1405
|
-
/**
|
|
1406
|
-
|
|
1405
|
+
/** UIDs of variants for price setting. */
|
|
1406
|
+
variantUIDs?: string[] | null;
|
|
1407
1407
|
}
|
|
1408
1408
|
/** Product variants price setting operation parameters. */
|
|
1409
1409
|
interface SetProductVariantPriceDto {
|
|
@@ -1414,8 +1414,8 @@ export declare module BackOfficeApiClient {
|
|
|
1414
1414
|
interface ProductVariantAvailabilityDto {
|
|
1415
1415
|
/** Availability. */
|
|
1416
1416
|
availability?: boolean;
|
|
1417
|
-
/**
|
|
1418
|
-
|
|
1417
|
+
/** UIDs of variants for availability setting. */
|
|
1418
|
+
variantUIDs?: string[] | null;
|
|
1419
1419
|
}
|
|
1420
1420
|
/** Product variants availability setting operation parameters. */
|
|
1421
1421
|
interface SetProductVariantAvailabilityDto {
|
|
@@ -1426,8 +1426,8 @@ export declare module BackOfficeApiClient {
|
|
|
1426
1426
|
interface ProductVariantSkuDto {
|
|
1427
1427
|
/** SKU. */
|
|
1428
1428
|
sku?: string | null;
|
|
1429
|
-
/**
|
|
1430
|
-
|
|
1429
|
+
/** UIDs of variants for SKU setting. */
|
|
1430
|
+
variantUIDs?: string[] | null;
|
|
1431
1431
|
}
|
|
1432
1432
|
/** Product variants SKU setting operation parameters. */
|
|
1433
1433
|
interface SetProductVariantSkuDto {
|
|
@@ -1460,18 +1460,15 @@ export var BackOfficeApiClient;
|
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Set product variants price. Variants identifiers will be changed.
|
|
1462
1462
|
* @param id Product identifier.
|
|
1463
|
-
* @param productVersionId (optional) Product version identifier.
|
|
1464
1463
|
* @param tenantId (optional) Tenant identifier.
|
|
1465
1464
|
* @param body (optional) Set product variants price operation parameters.
|
|
1466
1465
|
* @return Success
|
|
1467
1466
|
*/
|
|
1468
|
-
setProductVariantPrice(id,
|
|
1467
|
+
setProductVariantPrice(id, tenantId, body, cancelToken) {
|
|
1469
1468
|
let url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-price?";
|
|
1470
1469
|
if (id === undefined || id === null)
|
|
1471
1470
|
throw new Error("The parameter 'id' must be defined.");
|
|
1472
1471
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1473
|
-
if (productVersionId !== undefined && productVersionId !== null)
|
|
1474
|
-
url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
|
|
1475
1472
|
if (tenantId !== undefined && tenantId !== null)
|
|
1476
1473
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1477
1474
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -1543,18 +1540,15 @@ export var BackOfficeApiClient;
|
|
|
1543
1540
|
/**
|
|
1544
1541
|
* Set product variants availability. Variants identifiers will be changed.
|
|
1545
1542
|
* @param id Product identifier.
|
|
1546
|
-
* @param productVersionId (optional) Product version identifier.
|
|
1547
1543
|
* @param tenantId (optional) Tenant identifier.
|
|
1548
1544
|
* @param body (optional) Set product variants availability operation parameters.
|
|
1549
1545
|
* @return Success
|
|
1550
1546
|
*/
|
|
1551
|
-
setProductVariantAvailability(id,
|
|
1547
|
+
setProductVariantAvailability(id, tenantId, body, cancelToken) {
|
|
1552
1548
|
let url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-availability?";
|
|
1553
1549
|
if (id === undefined || id === null)
|
|
1554
1550
|
throw new Error("The parameter 'id' must be defined.");
|
|
1555
1551
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1556
|
-
if (productVersionId !== undefined && productVersionId !== null)
|
|
1557
|
-
url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
|
|
1558
1552
|
if (tenantId !== undefined && tenantId !== null)
|
|
1559
1553
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1560
1554
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -1626,18 +1620,15 @@ export var BackOfficeApiClient;
|
|
|
1626
1620
|
/**
|
|
1627
1621
|
* Set product variants SKU. Variants identifiers will be changed.
|
|
1628
1622
|
* @param id Product identifier.
|
|
1629
|
-
* @param productVersionId (optional) Product version identifier.
|
|
1630
1623
|
* @param tenantId (optional) Tenant identifier.
|
|
1631
1624
|
* @param body (optional) Set product variants SKU operation parameters.
|
|
1632
1625
|
* @return Success
|
|
1633
1626
|
*/
|
|
1634
|
-
setProductVariantSku(id,
|
|
1627
|
+
setProductVariantSku(id, tenantId, body, cancelToken) {
|
|
1635
1628
|
let url_ = this.baseUrl + "/api/backoffice/v1/products/{id}/set-variant-sku?";
|
|
1636
1629
|
if (id === undefined || id === null)
|
|
1637
1630
|
throw new Error("The parameter 'id' must be defined.");
|
|
1638
1631
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1639
|
-
if (productVersionId !== undefined && productVersionId !== null)
|
|
1640
|
-
url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
|
|
1641
1632
|
if (tenantId !== undefined && tenantId !== null)
|
|
1642
1633
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1643
1634
|
url_ = url_.replace(/[?&]$/, "");
|