@labdigital/commercetools-mock 2.26.1 → 2.28.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 +116 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +116 -63
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/password.ts +12 -5
- package/src/oauth/server.test.ts +1 -0
- package/src/repositories/business-unit.ts +40 -8
- package/src/repositories/cart/actions.ts +8 -4
- package/src/repositories/customer/index.ts +53 -5
- package/src/repositories/helpers.ts +1 -2
- package/src/repositories/index.ts +2 -0
- package/src/repositories/my-customer.ts +1 -41
- package/src/repositories/product-tailoring.ts +34 -0
- package/src/repositories/shipping-method/actions.ts +10 -1
- package/src/repositories/shipping-method/index.ts +1 -0
- package/src/services/customer.test.ts +64 -2
- package/src/services/customer.ts +31 -18
- package/src/services/my-customer.test.ts +11 -3
- package/src/services/my-customer.ts +1 -1
- package/src/services/shipping-method.test.ts +1 -0
- package/src/storage/in-memory.ts +2 -0
- package/src/types.ts +2 -0
package/src/storage/in-memory.ts
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
type Product,
|
|
23
23
|
type ProductDiscount,
|
|
24
24
|
type ProductProjection,
|
|
25
|
+
type ProductTailoring,
|
|
25
26
|
type ProductType,
|
|
26
27
|
type Project,
|
|
27
28
|
type Quote,
|
|
@@ -189,6 +190,7 @@ export class InMemoryStorage extends AbstractStorage {
|
|
|
189
190
|
"product-selection": new Map<string, any>(),
|
|
190
191
|
"product-type": new Map<string, ProductType>(),
|
|
191
192
|
"product-projection": new Map<string, ProductProjection>(),
|
|
193
|
+
"product-tailoring": new Map<string, ProductTailoring>(),
|
|
192
194
|
"review": new Map<string, any>(),
|
|
193
195
|
"shipping-method": new Map<string, ShippingMethod>(),
|
|
194
196
|
"staged-quote": new Map<string, StagedQuote>(),
|
package/src/types.ts
CHANGED
|
@@ -45,6 +45,7 @@ export type ResourceMap = {
|
|
|
45
45
|
"product-price": ctp.StandalonePrice;
|
|
46
46
|
"product-projection": ctp.ProductProjection;
|
|
47
47
|
"product-selection": ctp.ProductSelection;
|
|
48
|
+
"product-tailoring": ctp.ProductTailoring;
|
|
48
49
|
"product-type": ctp.ProductType;
|
|
49
50
|
"product": ctp.Product;
|
|
50
51
|
"quote-request": ctp.QuoteRequest;
|
|
@@ -85,6 +86,7 @@ export type PagedQueryResponseMap = {
|
|
|
85
86
|
"product-price": ctp.StandalonePricePagedQueryResponse;
|
|
86
87
|
"product-projection": ctp.ProductProjectionPagedQueryResponse;
|
|
87
88
|
"product-selection": ctp.ProductSelectionPagedQueryResponse;
|
|
89
|
+
"product-tailoring": ctp.ProductTailoringPagedQueryResponse;
|
|
88
90
|
"product-type": ctp.ProductTypePagedQueryResponse;
|
|
89
91
|
"product": ctp.ProductPagedQueryResponse;
|
|
90
92
|
"quote-request": ctp.QuoteRequestPagedQueryResponse;
|