@labdigital/commercetools-mock 2.34.3 → 2.36.0
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 +305 -170
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +301 -166
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/product-projection-search.ts +1 -1
- package/src/product-search.ts +1 -1
- package/src/repositories/cart/actions.ts +160 -4
- package/src/repositories/customer/index.ts +43 -9
- package/src/repositories/helpers.ts +21 -0
- package/src/repositories/product-projection.ts +1 -1
- package/src/repositories/shipping-method/index.ts +2 -54
- package/src/services/cart.test.ts +417 -0
- package/src/services/customer.test.ts +45 -5
- package/src/services/index.ts +2 -0
- package/src/services/my-business-unit.ts +28 -0
- package/src/services/my-customer.test.ts +2 -0
- package/src/{shippingCalculator.test.ts → shipping.test.ts} +1 -1
- package/src/shipping.ts +147 -0
- package/src/types.ts +2 -1
- package/src/shippingCalculator.ts +0 -74
package/dist/index.d.cts
CHANGED
|
@@ -448,23 +448,23 @@ declare class ShippingMethodRepository extends AbstractResourceRepository<"shipp
|
|
|
448
448
|
version: number;
|
|
449
449
|
createdAt: string;
|
|
450
450
|
lastModifiedAt: string;
|
|
451
|
-
lastModifiedBy?: ctp.LastModifiedBy
|
|
452
|
-
createdBy?: ctp.CreatedBy
|
|
453
|
-
key?: string
|
|
451
|
+
lastModifiedBy?: ctp.LastModifiedBy;
|
|
452
|
+
createdBy?: ctp.CreatedBy;
|
|
453
|
+
key?: string;
|
|
454
454
|
name: string;
|
|
455
|
-
localizedName?: ctp.LocalizedString
|
|
456
|
-
description?: string
|
|
457
|
-
localizedDescription?: ctp.LocalizedString
|
|
455
|
+
localizedName?: ctp.LocalizedString;
|
|
456
|
+
description?: string;
|
|
457
|
+
localizedDescription?: ctp.LocalizedString;
|
|
458
458
|
taxCategory: ctp.TaxCategoryReference;
|
|
459
459
|
active: boolean;
|
|
460
460
|
isDefault: boolean;
|
|
461
|
-
predicate?: string
|
|
462
|
-
custom?: ctp.CustomFields
|
|
461
|
+
predicate?: string;
|
|
462
|
+
custom?: ctp.CustomFields;
|
|
463
463
|
}[];
|
|
464
|
-
limit?: number
|
|
464
|
+
limit?: number;
|
|
465
465
|
count: number;
|
|
466
|
-
total?: number
|
|
467
|
-
offset?: number
|
|
466
|
+
total?: number;
|
|
467
|
+
offset?: number;
|
|
468
468
|
} | undefined;
|
|
469
469
|
private _transformZoneRateDraft;
|
|
470
470
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -448,23 +448,23 @@ declare class ShippingMethodRepository extends AbstractResourceRepository<"shipp
|
|
|
448
448
|
version: number;
|
|
449
449
|
createdAt: string;
|
|
450
450
|
lastModifiedAt: string;
|
|
451
|
-
lastModifiedBy?: ctp.LastModifiedBy
|
|
452
|
-
createdBy?: ctp.CreatedBy
|
|
453
|
-
key?: string
|
|
451
|
+
lastModifiedBy?: ctp.LastModifiedBy;
|
|
452
|
+
createdBy?: ctp.CreatedBy;
|
|
453
|
+
key?: string;
|
|
454
454
|
name: string;
|
|
455
|
-
localizedName?: ctp.LocalizedString
|
|
456
|
-
description?: string
|
|
457
|
-
localizedDescription?: ctp.LocalizedString
|
|
455
|
+
localizedName?: ctp.LocalizedString;
|
|
456
|
+
description?: string;
|
|
457
|
+
localizedDescription?: ctp.LocalizedString;
|
|
458
458
|
taxCategory: ctp.TaxCategoryReference;
|
|
459
459
|
active: boolean;
|
|
460
460
|
isDefault: boolean;
|
|
461
|
-
predicate?: string
|
|
462
|
-
custom?: ctp.CustomFields
|
|
461
|
+
predicate?: string;
|
|
462
|
+
custom?: ctp.CustomFields;
|
|
463
463
|
}[];
|
|
464
|
-
limit?: number
|
|
464
|
+
limit?: number;
|
|
465
465
|
count: number;
|
|
466
|
-
total?: number
|
|
467
|
-
offset?: number
|
|
466
|
+
total?: number;
|
|
467
|
+
offset?: number;
|
|
468
468
|
} | undefined;
|
|
469
469
|
private _transformZoneRateDraft;
|
|
470
470
|
}
|