@labdigital/commercetools-mock 2.29.0 → 2.29.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 +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/repositories/project.ts +34 -0
package/dist/index.cjs
CHANGED
|
@@ -6196,6 +6196,14 @@ var ProjectUpdateHandler = class extends AbstractUpdateHandler {
|
|
|
6196
6196
|
resource.messages.enabled = messagesConfiguration.enabled;
|
|
6197
6197
|
resource.messages.deleteDaysAfterCreation = messagesConfiguration.deleteDaysAfterCreation;
|
|
6198
6198
|
}
|
|
6199
|
+
changeMyBusinessUnitStatusOnCreation(context, resource, { status }) {
|
|
6200
|
+
if (resource.businessUnits === void 0) {
|
|
6201
|
+
resource.businessUnits = {
|
|
6202
|
+
myBusinessUnitStatusOnCreation: "Inactive"
|
|
6203
|
+
};
|
|
6204
|
+
}
|
|
6205
|
+
resource.businessUnits.myBusinessUnitStatusOnCreation = status;
|
|
6206
|
+
}
|
|
6199
6207
|
changeName(context, resource, { name }) {
|
|
6200
6208
|
resource.name = name;
|
|
6201
6209
|
}
|
|
@@ -6216,6 +6224,18 @@ var ProjectUpdateHandler = class extends AbstractUpdateHandler {
|
|
|
6216
6224
|
setExternalOAuth(context, resource, { externalOAuth }) {
|
|
6217
6225
|
resource.externalOAuth = externalOAuth;
|
|
6218
6226
|
}
|
|
6227
|
+
setMyBusinessUnitAssociateRoleOnCreation(context, resource, { associateRole }) {
|
|
6228
|
+
if (resource.businessUnits === void 0) {
|
|
6229
|
+
resource.businessUnits = {
|
|
6230
|
+
//Default status, so we set it here also
|
|
6231
|
+
myBusinessUnitStatusOnCreation: "Inactive"
|
|
6232
|
+
};
|
|
6233
|
+
}
|
|
6234
|
+
resource.businessUnits.myBusinessUnitAssociateRoleOnCreation = {
|
|
6235
|
+
typeId: associateRole.typeId,
|
|
6236
|
+
key: associateRole.key ?? "unknown"
|
|
6237
|
+
};
|
|
6238
|
+
}
|
|
6219
6239
|
setShippingRateInputType(context, resource, { shippingRateInputType }) {
|
|
6220
6240
|
resource.shippingRateInputType = shippingRateInputType;
|
|
6221
6241
|
}
|