@aurigma/ng-backoffice-api-client 2.60.2 → 2.63.14

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.
@@ -190,6 +190,14 @@ export interface IProductsManagementApiClient {
190
190
  * @return Success
191
191
  */
192
192
  getProductOptions(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProductOptionDto>;
193
+ /**
194
+ * Set product options and returns updated options list.
195
+ * @param id Product identifier.
196
+ * @param tenantId (optional) Tenant identifier.
197
+ * @param body (optional)
198
+ * @return Success
199
+ */
200
+ setProductOptions(id: number, tenantId?: number | null | undefined, body?: SetProductOptionsDto | null | undefined): Observable<PagedOfProductOptionDto>;
193
201
  /**
194
202
  * Returns a list of product variants.
195
203
  * @param id Product identifier.
@@ -213,6 +221,21 @@ export interface IProductsManagementApiClient {
213
221
  * @return Success
214
222
  */
215
223
  getProductVariant(id: number, productVariantId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductVariantDto>;
224
+ /**
225
+ * Updates product variant resources.
226
+ * @param id Product identifier.
227
+ * @param productVersionId (optional) Product version identifier.
228
+ * @param tenantId (optional) Tenant identifier.
229
+ * @return Success
230
+ */
231
+ updateProductVariantResources(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<void>;
232
+ /**
233
+ * Validates product variant resources.
234
+ * @param id Product identifier.
235
+ * @param tenantId (optional) Tenant identifier.
236
+ * @return Success
237
+ */
238
+ validateProductVariantResources(id: number, tenantId?: number | null | undefined): Observable<void>;
216
239
  /**
217
240
  * Returns a list of product variant designs.
218
241
  * @param id Product identifier.
@@ -275,6 +298,14 @@ export interface IProductsManagementApiClient {
275
298
  * @return Success
276
299
  */
277
300
  setProductVariantPrice(id: number, tenantId?: number | null | undefined, body?: SetProductVariantPriceDto | null | undefined): Observable<void>;
301
+ /**
302
+ * Set product variants weight. Variants identifiers will be changed.
303
+ * @param id Product identifier.
304
+ * @param tenantId (optional) Tenant identifier.
305
+ * @param body (optional) Set product variants weight operation parameters.
306
+ * @return Success
307
+ */
308
+ setProductVariantWeight(id: number, tenantId?: number | null | undefined, body?: SetProductVariantWeightDto | null | undefined): Observable<void>;
278
309
  /**
279
310
  * Set product variants availability. Variants identifiers will be changed.
280
311
  * @param id Product identifier.
@@ -427,6 +458,15 @@ export declare class ProductsManagementApiClient extends ApiClientBase implement
427
458
  */
428
459
  getProductOptions(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProductOptionDto>;
429
460
  protected processGetProductOptions(response: HttpResponseBase): Observable<PagedOfProductOptionDto>;
461
+ /**
462
+ * Set product options and returns updated options list.
463
+ * @param id Product identifier.
464
+ * @param tenantId (optional) Tenant identifier.
465
+ * @param body (optional)
466
+ * @return Success
467
+ */
468
+ setProductOptions(id: number, tenantId?: number | null | undefined, body?: SetProductOptionsDto | null | undefined): Observable<PagedOfProductOptionDto>;
469
+ protected processSetProductOptions(response: HttpResponseBase): Observable<PagedOfProductOptionDto>;
430
470
  /**
431
471
  * Returns a list of product variants.
432
472
  * @param id Product identifier.
@@ -452,6 +492,23 @@ export declare class ProductsManagementApiClient extends ApiClientBase implement
452
492
  */
453
493
  getProductVariant(id: number, productVariantId: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductVariantDto>;
454
494
  protected processGetProductVariant(response: HttpResponseBase): Observable<ProductVariantDto>;
495
+ /**
496
+ * Updates product variant resources.
497
+ * @param id Product identifier.
498
+ * @param productVersionId (optional) Product version identifier.
499
+ * @param tenantId (optional) Tenant identifier.
500
+ * @return Success
501
+ */
502
+ updateProductVariantResources(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<void>;
503
+ protected processUpdateProductVariantResources(response: HttpResponseBase): Observable<void>;
504
+ /**
505
+ * Validates product variant resources.
506
+ * @param id Product identifier.
507
+ * @param tenantId (optional) Tenant identifier.
508
+ * @return Success
509
+ */
510
+ validateProductVariantResources(id: number, tenantId?: number | null | undefined): Observable<void>;
511
+ protected processValidateProductVariantResources(response: HttpResponseBase): Observable<void>;
455
512
  /**
456
513
  * Returns a list of product variant designs.
457
514
  * @param id Product identifier.
@@ -518,6 +575,15 @@ export declare class ProductsManagementApiClient extends ApiClientBase implement
518
575
  */
519
576
  setProductVariantPrice(id: number, tenantId?: number | null | undefined, body?: SetProductVariantPriceDto | null | undefined): Observable<void>;
520
577
  protected processSetProductVariantPrice(response: HttpResponseBase): Observable<void>;
578
+ /**
579
+ * Set product variants weight. Variants identifiers will be changed.
580
+ * @param id Product identifier.
581
+ * @param tenantId (optional) Tenant identifier.
582
+ * @param body (optional) Set product variants weight operation parameters.
583
+ * @return Success
584
+ */
585
+ setProductVariantWeight(id: number, tenantId?: number | null | undefined, body?: SetProductVariantWeightDto | null | undefined): Observable<void>;
586
+ protected processSetProductVariantWeight(response: HttpResponseBase): Observable<void>;
521
587
  /**
522
588
  * Set product variants availability. Variants identifiers will be changed.
523
589
  * @param id Product identifier.
@@ -1229,6 +1295,47 @@ export interface PagedOfProductOptionDto {
1229
1295
  total?: number;
1230
1296
  items?: ProductOptionDto[] | null;
1231
1297
  }
1298
+ /** Product option value create or update operation parameters. */
1299
+ export interface SetProductOptionValueDto {
1300
+ /** Product option value UID. */
1301
+ uid?: string | null;
1302
+ /** Product option value description. */
1303
+ description?: string | null;
1304
+ /** Product option value sort index. */
1305
+ sortIndex?: number;
1306
+ /** Indicates if product option value is used as a default value. */
1307
+ isDefault?: boolean;
1308
+ /** Product option value. */
1309
+ value?: string | null;
1310
+ /** Product option value colors. */
1311
+ colors?: string[] | null;
1312
+ }
1313
+ /** Product option create or update operation parameters. */
1314
+ export interface SetProductOptionDto {
1315
+ /** Product option UID. */
1316
+ uid?: string | null;
1317
+ /** Product option title. */
1318
+ title?: string | null;
1319
+ /** Product option description. */
1320
+ description?: string | null;
1321
+ /** Product option tooltip. */
1322
+ tooltip?: string | null;
1323
+ /** Product option sort index. */
1324
+ sortIndex?: number;
1325
+ /** Specifies if the option is used for design binding. */
1326
+ useForDesignBinding?: boolean;
1327
+ /** Specifies if the option is used for mockup binding. */
1328
+ useForMockupBinding?: boolean;
1329
+ /** Specifies if the option is used for document binding. */
1330
+ useForDocumentBinding?: boolean;
1331
+ /** A list of product option values. */
1332
+ values?: SetProductOptionValueDto[] | null;
1333
+ }
1334
+ /** Product options setting operation parameters. */
1335
+ export interface SetProductOptionsDto {
1336
+ /** Product options create or update parameters. */
1337
+ options?: SetProductOptionDto[] | null;
1338
+ }
1232
1339
  /** Dto class, containing information about a product variant option. */
1233
1340
  export interface ProductVariantOptionDto {
1234
1341
  /** Product option identifier. */
@@ -1262,6 +1369,8 @@ export interface ProductVariantDto {
1262
1369
  isAvailable?: boolean;
1263
1370
  /** Product variant price. */
1264
1371
  price?: number | null;
1372
+ /** Product variant weight. */
1373
+ weight?: number | null;
1265
1374
  /** Product variant sort index. */
1266
1375
  sortIndex?: number;
1267
1376
  /** Product variant identifier (usually SKU) in storefront / online store. */
@@ -1444,6 +1553,18 @@ export interface SetProductVariantPriceDto {
1444
1553
  /** List of product variants grouped by price value. */
1445
1554
  items?: ProductVariantPriceDto[] | null;
1446
1555
  }
1556
+ /** Parameters for setting product variants weight. */
1557
+ export interface ProductVariantWeightDto {
1558
+ /** Weight. */
1559
+ weight?: number | null;
1560
+ /** UIDs of variants for price setting. */
1561
+ variantUIDs?: string[] | null;
1562
+ }
1563
+ /** Product variants weight setting operation parameters. */
1564
+ export interface SetProductVariantWeightDto {
1565
+ /** List of product variants grouped by weight value. */
1566
+ items?: ProductVariantWeightDto[] | null;
1567
+ }
1447
1568
  /** Parameters for setting product variants availability. */
1448
1569
  export interface ProductVariantAvailabilityDto {
1449
1570
  /** Availability. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurigma/ng-backoffice-api-client",
3
- "version": "2.60.2",
3
+ "version": "2.63.14",
4
4
  "license": "SEE LICENSE IN License.md",
5
5
  "description": "Angular API Client for BackOffice API service of Customer's Canvas web-to-print system.",
6
6
  "author": "Aurigma Inc <info@aurigma.com> (https://customerscanvas.com)",