@labdigital/commercetools-mock 3.0.0-beta.0 → 3.0.0-beta.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.mjs +551 -551
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/schemas/generated/associate-role.ts +4 -4
- package/src/schemas/generated/attribute-group.ts +2 -2
- package/src/schemas/generated/business-unit.ts +14 -14
- package/src/schemas/generated/cart-discount.ts +13 -13
- package/src/schemas/generated/cart.ts +30 -30
- package/src/schemas/generated/category.ts +10 -10
- package/src/schemas/generated/channel.ts +6 -6
- package/src/schemas/generated/common.ts +270 -272
- package/src/schemas/generated/custom-object.ts +1 -1
- package/src/schemas/generated/customer-group.ts +2 -2
- package/src/schemas/generated/customer.ts +27 -27
- package/src/schemas/generated/discount-code.ts +11 -11
- package/src/schemas/generated/discount-group.ts +3 -3
- package/src/schemas/generated/extension.ts +2 -2
- package/src/schemas/generated/inventory-entry.ts +7 -7
- package/src/schemas/generated/my-quote-request.ts +1 -1
- package/src/schemas/generated/order-edit.ts +5 -5
- package/src/schemas/generated/order-from-cart.ts +9 -9
- package/src/schemas/generated/payment.ts +14 -14
- package/src/schemas/generated/product-discount.ts +4 -4
- package/src/schemas/generated/product-selection.ts +4 -4
- package/src/schemas/generated/product-tailoring.ts +10 -10
- package/src/schemas/generated/product-type.ts +2 -2
- package/src/schemas/generated/product.ts +15 -15
- package/src/schemas/generated/quote-request.ts +5 -5
- package/src/schemas/generated/quote.ts +4 -4
- package/src/schemas/generated/recurrence-policy.ts +2 -2
- package/src/schemas/generated/recurring-order.ts +5 -5
- package/src/schemas/generated/review.ts +11 -11
- package/src/schemas/generated/shipping-method.ts +7 -7
- package/src/schemas/generated/shopping-list.ts +11 -11
- package/src/schemas/generated/staged-quote.ts +4 -4
- package/src/schemas/generated/standalone-price.ts +12 -12
- package/src/schemas/generated/state.ts +5 -5
- package/src/schemas/generated/store.ts +7 -7
- package/src/schemas/generated/subscription.ts +5 -5
- package/src/schemas/generated/tax-category.ts +3 -3
- package/src/schemas/generated/type.ts +2 -2
- package/src/schemas/generated/zone.ts +3 -3
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@ import { CustomFieldsDraftSchema, PermissionSchema } from "./common.ts";
|
|
|
6
6
|
|
|
7
7
|
export const AssociateRoleDraftSchema = z.object({
|
|
8
8
|
key: z.string(),
|
|
9
|
-
name: z.string().
|
|
10
|
-
buyerAssignable: z.boolean().
|
|
11
|
-
permissions: z.array(PermissionSchema).
|
|
12
|
-
custom: CustomFieldsDraftSchema.
|
|
9
|
+
name: z.string().nullish(),
|
|
10
|
+
buyerAssignable: z.boolean().nullish(),
|
|
11
|
+
permissions: z.array(PermissionSchema).nullish(),
|
|
12
|
+
custom: CustomFieldsDraftSchema.nullish(),
|
|
13
13
|
});
|
|
@@ -6,7 +6,7 @@ import { AttributeReferenceSchema, LocalizedStringSchema } from "./common.ts";
|
|
|
6
6
|
|
|
7
7
|
export const AttributeGroupDraftSchema = z.object({
|
|
8
8
|
name: LocalizedStringSchema,
|
|
9
|
-
description: LocalizedStringSchema.
|
|
9
|
+
description: LocalizedStringSchema.nullish(),
|
|
10
10
|
attributes: z.array(AttributeReferenceSchema),
|
|
11
|
-
key: z.string().
|
|
11
|
+
key: z.string().nullish(),
|
|
12
12
|
});
|
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
|
|
18
18
|
export const BusinessUnitDraftSchema = z.object({
|
|
19
19
|
key: z.string(),
|
|
20
|
-
status: BusinessUnitStatusSchema.
|
|
21
|
-
stores: z.array(StoreResourceIdentifierSchema).
|
|
22
|
-
storeMode: BusinessUnitStoreModeSchema.
|
|
20
|
+
status: BusinessUnitStatusSchema.nullish(),
|
|
21
|
+
stores: z.array(StoreResourceIdentifierSchema).nullish(),
|
|
22
|
+
storeMode: BusinessUnitStoreModeSchema.nullish(),
|
|
23
23
|
unitType: BusinessUnitTypeSchema,
|
|
24
24
|
name: z.string(),
|
|
25
|
-
contactEmail: z.string().
|
|
26
|
-
associateMode: BusinessUnitAssociateModeSchema.
|
|
27
|
-
associates: z.array(AssociateDraftSchema).
|
|
28
|
-
approvalRuleMode: BusinessUnitApprovalRuleModeSchema.
|
|
29
|
-
addresses: z.array(BaseAddressSchema).
|
|
30
|
-
shippingAddresses: z.array(z.number().int()).
|
|
31
|
-
defaultShippingAddress: z.number().int().
|
|
32
|
-
billingAddresses: z.array(z.number().int()).
|
|
33
|
-
defaultBillingAddress: z.number().int().
|
|
34
|
-
custom: CustomFieldsDraftSchema.
|
|
25
|
+
contactEmail: z.string().nullish(),
|
|
26
|
+
associateMode: BusinessUnitAssociateModeSchema.nullish(),
|
|
27
|
+
associates: z.array(AssociateDraftSchema).nullish(),
|
|
28
|
+
approvalRuleMode: BusinessUnitApprovalRuleModeSchema.nullish(),
|
|
29
|
+
addresses: z.array(BaseAddressSchema).nullish(),
|
|
30
|
+
shippingAddresses: z.array(z.number().int()).nullish(),
|
|
31
|
+
defaultShippingAddress: z.number().int().nullish(),
|
|
32
|
+
billingAddresses: z.array(z.number().int()).nullish(),
|
|
33
|
+
defaultBillingAddress: z.number().int().nullish(),
|
|
34
|
+
custom: CustomFieldsDraftSchema.nullish(),
|
|
35
35
|
customerGroupAssignments: z
|
|
36
36
|
.array(CustomerGroupAssignmentDraftSchema)
|
|
37
|
-
.
|
|
37
|
+
.nullish(),
|
|
38
38
|
});
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
|
|
16
16
|
export const CartDiscountDraftSchema = z.object({
|
|
17
17
|
name: LocalizedStringSchema,
|
|
18
|
-
key: z.string().
|
|
19
|
-
description: LocalizedStringSchema.
|
|
18
|
+
key: z.string().nullish(),
|
|
19
|
+
description: LocalizedStringSchema.nullish(),
|
|
20
20
|
value: CartDiscountValueDraftSchema,
|
|
21
21
|
cartPredicate: z.string(),
|
|
22
|
-
target: CartDiscountTargetSchema.
|
|
23
|
-
sortOrder: z.string().
|
|
24
|
-
stores: z.array(StoreResourceIdentifierSchema).
|
|
25
|
-
isActive: z.boolean().
|
|
26
|
-
validFrom: z.string().
|
|
27
|
-
validUntil: z.string().
|
|
28
|
-
requiresDiscountCode: z.boolean().
|
|
29
|
-
stackingMode: StackingModeSchema.
|
|
30
|
-
custom: CustomFieldsDraftSchema.
|
|
31
|
-
discountGroup: DiscountGroupResourceIdentifierSchema.
|
|
32
|
-
recurringOrderScope: RecurringOrderScopeDraftSchema.
|
|
22
|
+
target: CartDiscountTargetSchema.nullish(),
|
|
23
|
+
sortOrder: z.string().nullish(),
|
|
24
|
+
stores: z.array(StoreResourceIdentifierSchema).nullish(),
|
|
25
|
+
isActive: z.boolean().nullish(),
|
|
26
|
+
validFrom: z.string().nullish(),
|
|
27
|
+
validUntil: z.string().nullish(),
|
|
28
|
+
requiresDiscountCode: z.boolean().nullish(),
|
|
29
|
+
stackingMode: StackingModeSchema.nullish(),
|
|
30
|
+
custom: CustomFieldsDraftSchema.nullish(),
|
|
31
|
+
discountGroup: DiscountGroupResourceIdentifierSchema.nullish(),
|
|
32
|
+
recurringOrderScope: RecurringOrderScopeDraftSchema.nullish(),
|
|
33
33
|
});
|
|
@@ -28,34 +28,34 @@ import {
|
|
|
28
28
|
|
|
29
29
|
export const CartDraftSchema = z.object({
|
|
30
30
|
currency: CurrencyCodeSchema,
|
|
31
|
-
key: z.string().
|
|
32
|
-
customerId: z.string().
|
|
33
|
-
customerEmail: z.string().
|
|
34
|
-
customerGroup: CustomerGroupResourceIdentifierSchema.
|
|
35
|
-
anonymousId: z.string().
|
|
36
|
-
businessUnit: BusinessUnitResourceIdentifierSchema.
|
|
37
|
-
store: StoreResourceIdentifierSchema.
|
|
38
|
-
lineItems: z.array(LineItemDraftSchema).
|
|
39
|
-
customLineItems: z.array(CustomLineItemDraftSchema).
|
|
40
|
-
taxMode: TaxModeSchema.
|
|
41
|
-
externalTaxRateForShippingMethod: ExternalTaxRateDraftSchema.
|
|
42
|
-
priceRoundingMode: RoundingModeSchema.
|
|
43
|
-
taxRoundingMode: RoundingModeSchema.
|
|
44
|
-
taxCalculationMode: TaxCalculationModeSchema.
|
|
45
|
-
inventoryMode: InventoryModeSchema.
|
|
46
|
-
billingAddress: BaseAddressSchema.
|
|
47
|
-
shippingAddress: BaseAddressSchema.
|
|
48
|
-
shippingMethod: ShippingMethodResourceIdentifierSchema.
|
|
49
|
-
shippingRateInput: ShippingRateInputDraftSchema.
|
|
50
|
-
shippingMode: ShippingModeSchema.
|
|
51
|
-
customShipping: z.array(CustomShippingDraftSchema).
|
|
52
|
-
shipping: z.array(ShippingDraftSchema).
|
|
53
|
-
itemShippingAddresses: z.array(BaseAddressSchema).
|
|
54
|
-
discountCodes: z.array(z.string()).
|
|
55
|
-
country: CountryCodeSchema.
|
|
56
|
-
locale: LocaleSchema.
|
|
57
|
-
origin: CartOriginSchema.
|
|
58
|
-
deleteDaysAfterLastModification: z.number().int().
|
|
59
|
-
custom: CustomFieldsDraftSchema.
|
|
60
|
-
purchaseOrderNumber: z.string().
|
|
31
|
+
key: z.string().nullish(),
|
|
32
|
+
customerId: z.string().nullish(),
|
|
33
|
+
customerEmail: z.string().nullish(),
|
|
34
|
+
customerGroup: CustomerGroupResourceIdentifierSchema.nullish(),
|
|
35
|
+
anonymousId: z.string().nullish(),
|
|
36
|
+
businessUnit: BusinessUnitResourceIdentifierSchema.nullish(),
|
|
37
|
+
store: StoreResourceIdentifierSchema.nullish(),
|
|
38
|
+
lineItems: z.array(LineItemDraftSchema).nullish(),
|
|
39
|
+
customLineItems: z.array(CustomLineItemDraftSchema).nullish(),
|
|
40
|
+
taxMode: TaxModeSchema.nullish(),
|
|
41
|
+
externalTaxRateForShippingMethod: ExternalTaxRateDraftSchema.nullish(),
|
|
42
|
+
priceRoundingMode: RoundingModeSchema.nullish(),
|
|
43
|
+
taxRoundingMode: RoundingModeSchema.nullish(),
|
|
44
|
+
taxCalculationMode: TaxCalculationModeSchema.nullish(),
|
|
45
|
+
inventoryMode: InventoryModeSchema.nullish(),
|
|
46
|
+
billingAddress: BaseAddressSchema.nullish(),
|
|
47
|
+
shippingAddress: BaseAddressSchema.nullish(),
|
|
48
|
+
shippingMethod: ShippingMethodResourceIdentifierSchema.nullish(),
|
|
49
|
+
shippingRateInput: ShippingRateInputDraftSchema.nullish(),
|
|
50
|
+
shippingMode: ShippingModeSchema.nullish(),
|
|
51
|
+
customShipping: z.array(CustomShippingDraftSchema).nullish(),
|
|
52
|
+
shipping: z.array(ShippingDraftSchema).nullish(),
|
|
53
|
+
itemShippingAddresses: z.array(BaseAddressSchema).nullish(),
|
|
54
|
+
discountCodes: z.array(z.string()).nullish(),
|
|
55
|
+
country: CountryCodeSchema.nullish(),
|
|
56
|
+
locale: LocaleSchema.nullish(),
|
|
57
|
+
origin: CartOriginSchema.nullish(),
|
|
58
|
+
deleteDaysAfterLastModification: z.number().int().nullish(),
|
|
59
|
+
custom: CustomFieldsDraftSchema.nullish(),
|
|
60
|
+
purchaseOrderNumber: z.string().nullish(),
|
|
61
61
|
});
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
export const CategoryDraftSchema = z.object({
|
|
13
13
|
name: LocalizedStringSchema,
|
|
14
14
|
slug: LocalizedStringSchema,
|
|
15
|
-
description: LocalizedStringSchema.
|
|
16
|
-
parent: CategoryResourceIdentifierSchema.
|
|
17
|
-
orderHint: z.string().
|
|
18
|
-
externalId: z.string().
|
|
19
|
-
metaTitle: LocalizedStringSchema.
|
|
20
|
-
metaDescription: LocalizedStringSchema.
|
|
21
|
-
metaKeywords: LocalizedStringSchema.
|
|
22
|
-
custom: CustomFieldsDraftSchema.
|
|
23
|
-
assets: z.array(AssetDraftSchema).
|
|
24
|
-
key: z.string().
|
|
15
|
+
description: LocalizedStringSchema.nullish(),
|
|
16
|
+
parent: CategoryResourceIdentifierSchema.nullish(),
|
|
17
|
+
orderHint: z.string().nullish(),
|
|
18
|
+
externalId: z.string().nullish(),
|
|
19
|
+
metaTitle: LocalizedStringSchema.nullish(),
|
|
20
|
+
metaDescription: LocalizedStringSchema.nullish(),
|
|
21
|
+
metaKeywords: LocalizedStringSchema.nullish(),
|
|
22
|
+
custom: CustomFieldsDraftSchema.nullish(),
|
|
23
|
+
assets: z.array(AssetDraftSchema).nullish(),
|
|
24
|
+
key: z.string().nullish(),
|
|
25
25
|
});
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
|
|
13
13
|
export const ChannelDraftSchema = z.object({
|
|
14
14
|
key: z.string(),
|
|
15
|
-
roles: z.array(ChannelRoleEnumSchema).
|
|
16
|
-
name: LocalizedStringSchema.
|
|
17
|
-
description: LocalizedStringSchema.
|
|
18
|
-
address: BaseAddressSchema.
|
|
19
|
-
custom: CustomFieldsDraftSchema.
|
|
20
|
-
geoLocation: GeoJsonSchema.
|
|
15
|
+
roles: z.array(ChannelRoleEnumSchema).nullish(),
|
|
16
|
+
name: LocalizedStringSchema.nullish(),
|
|
17
|
+
description: LocalizedStringSchema.nullish(),
|
|
18
|
+
address: BaseAddressSchema.nullish(),
|
|
19
|
+
custom: CustomFieldsDraftSchema.nullish(),
|
|
20
|
+
geoLocation: GeoJsonSchema.nullish(),
|
|
21
21
|
});
|