@labdigital/commercetools-mock 2.42.0 → 2.42.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/index.js CHANGED
@@ -3336,6 +3336,17 @@ var AssociateRoleUpdateHandler = class extends AbstractUpdateHandler {
3336
3336
  resource.custom.fields[name] = value;
3337
3337
  }
3338
3338
  }
3339
+ setCustomType(context, resource, { type, fields }) {
3340
+ if (type) {
3341
+ resource.custom = createCustomFields(
3342
+ { type, fields },
3343
+ context.projectKey,
3344
+ this._storage
3345
+ );
3346
+ } else {
3347
+ resource.custom = void 0;
3348
+ }
3349
+ }
3339
3350
  setName(context, resource, { name }) {
3340
3351
  resource.name = name;
3341
3352
  }
@@ -3516,6 +3527,17 @@ var BusinessUnitUpdateHandler = class extends AbstractUpdateHandler {
3516
3527
  setContactEmail(context, resource, { contactEmail }) {
3517
3528
  resource.contactEmail = contactEmail;
3518
3529
  }
3530
+ setCustomType(context, resource, { type, fields }) {
3531
+ if (type) {
3532
+ resource.custom = createCustomFields(
3533
+ { type, fields },
3534
+ context.projectKey,
3535
+ this._storage
3536
+ );
3537
+ } else {
3538
+ resource.custom = void 0;
3539
+ }
3540
+ }
3519
3541
  setStoreMode(context, resource, { storeMode }) {
3520
3542
  resource.storeMode = storeMode;
3521
3543
  }
@@ -6830,6 +6852,17 @@ var ProductSelectionUpdateHandler = class extends AbstractUpdateHandler {
6830
6852
  changeName(context, resource, { name }) {
6831
6853
  resource.name = name;
6832
6854
  }
6855
+ setCustomType(context, resource, { type, fields }) {
6856
+ if (type) {
6857
+ resource.custom = createCustomFields(
6858
+ { type, fields },
6859
+ context.projectKey,
6860
+ this._storage
6861
+ );
6862
+ } else {
6863
+ resource.custom = void 0;
6864
+ }
6865
+ }
6833
6866
  };
6834
6867
 
6835
6868
  // src/repositories/product-type.ts