@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.cjs +33 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/repositories/associate-role.ts +17 -0
- package/src/repositories/business-unit.ts +17 -0
- package/src/repositories/product-selection.ts +18 -0
package/dist/index.cjs
CHANGED
|
@@ -3373,6 +3373,17 @@ var AssociateRoleUpdateHandler = class extends AbstractUpdateHandler {
|
|
|
3373
3373
|
resource.custom.fields[name] = value;
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
3376
|
+
setCustomType(context, resource, { type, fields }) {
|
|
3377
|
+
if (type) {
|
|
3378
|
+
resource.custom = createCustomFields(
|
|
3379
|
+
{ type, fields },
|
|
3380
|
+
context.projectKey,
|
|
3381
|
+
this._storage
|
|
3382
|
+
);
|
|
3383
|
+
} else {
|
|
3384
|
+
resource.custom = void 0;
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3376
3387
|
setName(context, resource, { name }) {
|
|
3377
3388
|
resource.name = name;
|
|
3378
3389
|
}
|
|
@@ -3553,6 +3564,17 @@ var BusinessUnitUpdateHandler = class extends AbstractUpdateHandler {
|
|
|
3553
3564
|
setContactEmail(context, resource, { contactEmail }) {
|
|
3554
3565
|
resource.contactEmail = contactEmail;
|
|
3555
3566
|
}
|
|
3567
|
+
setCustomType(context, resource, { type, fields }) {
|
|
3568
|
+
if (type) {
|
|
3569
|
+
resource.custom = createCustomFields(
|
|
3570
|
+
{ type, fields },
|
|
3571
|
+
context.projectKey,
|
|
3572
|
+
this._storage
|
|
3573
|
+
);
|
|
3574
|
+
} else {
|
|
3575
|
+
resource.custom = void 0;
|
|
3576
|
+
}
|
|
3577
|
+
}
|
|
3556
3578
|
setStoreMode(context, resource, { storeMode }) {
|
|
3557
3579
|
resource.storeMode = storeMode;
|
|
3558
3580
|
}
|
|
@@ -6867,6 +6889,17 @@ var ProductSelectionUpdateHandler = class extends AbstractUpdateHandler {
|
|
|
6867
6889
|
changeName(context, resource, { name }) {
|
|
6868
6890
|
resource.name = name;
|
|
6869
6891
|
}
|
|
6892
|
+
setCustomType(context, resource, { type, fields }) {
|
|
6893
|
+
if (type) {
|
|
6894
|
+
resource.custom = createCustomFields(
|
|
6895
|
+
{ type, fields },
|
|
6896
|
+
context.projectKey,
|
|
6897
|
+
this._storage
|
|
6898
|
+
);
|
|
6899
|
+
} else {
|
|
6900
|
+
resource.custom = void 0;
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6870
6903
|
};
|
|
6871
6904
|
|
|
6872
6905
|
// src/repositories/product-type.ts
|