@labdigital/commercetools-mock 2.56.1 → 2.57.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.d.ts +125 -116
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/repositories/discount-group/index.ts +1 -0
- package/src/repositories/order/index.test.ts +88 -0
- package/src/repositories/order/index.ts +4 -0
- package/src/repositories/project.ts +47 -0
- package/src/services/discount-group.test.ts +1 -0
- package/src/services/my-business-unit.test.ts +87 -1
- package/src/services/my-business-unit.ts +3 -0
- package/src/services/project.test.ts +8 -0
- package/src/storage/in-memory.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { SetupServer, SetupServerApi } from "
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
40
|
-
import * as
|
|
41
|
-
import * as
|
|
42
|
-
import * as
|
|
43
|
-
import * as
|
|
44
|
-
import * as
|
|
45
|
-
import * as
|
|
46
|
-
import * as
|
|
47
|
-
import * as
|
|
48
|
-
import * as
|
|
49
|
-
import * as
|
|
50
|
-
import * as
|
|
51
|
-
import * as
|
|
52
|
-
import * as
|
|
53
|
-
import * as
|
|
54
|
-
import * as
|
|
55
|
-
import * as
|
|
56
|
-
import * as
|
|
57
|
-
import * as
|
|
58
|
-
import * as
|
|
59
|
-
import * as ctp from "
|
|
60
|
-
import { Address, AssociateRole, AssociateRoleDraft, AttributeGroup, AttributeGroupDraft, BaseResource, BusinessUnit, BusinessUnitDraft, Cart, CartDiscount, CartDiscountDraft, CartDraft, CartReference, Category, CategoryDraft, Channel, ChannelDraft, ChannelReference, ChannelResourceIdentifier, CustomObject, CustomObjectDraft, Customer, CustomerCreatePasswordResetToken, CustomerDraft, CustomerGroup, CustomerGroupDraft, CustomerResetPassword, CustomerToken, DiscountCode, DiscountCodeDraft, DiscountGroup, DiscountGroupDraft, Extension, ExtensionDraft, FacetResults, FilteredFacetResult, InventoryEntry, InventoryEntryDraft, LineItem, LineItemDraft, MyCustomerChangePassword, MyCustomerEmailVerify, MyCustomerResetPassword, MyOrderFromCartDraft, MyQuoteRequestDraft, Order, OrderEdit, OrderEditDraft, OrderFromCartDraft, OrderImportDraft, Payment, PaymentDraft, Product, ProductDiscount, ProductDiscountDraft, ProductDraft, ProductPagedSearchResponse, ProductProjection, ProductProjectionPagedSearchResponse, ProductSearchRequest, ProductSelection, ProductSelectionDraft, ProductTailoring, ProductType, ProductTypeDraft, Project, QueryParam, Quote, QuoteDraft, QuoteRequest, QuoteRequestDraft, RangeFacetResult, RecurrencePolicy, RecurrencePolicyDraft, RecurringOrder, RecurringOrderDraft, ResourceIdentifier, Review, ReviewDraft, ReviewRatingStatistics, ShippingMethod, ShippingMethodDraft, ShoppingList, ShoppingListDraft, ShoppingListLineItem, StagedQuote, StagedQuoteDraft, StandalonePrice, StandalonePriceDraft, State, StateDraft, Store, StoreDraft, StoreKeyReference, Subscription, SubscriptionDraft, TaxCategory, TaxCategoryDraft, TermFacetResult, Type, TypeDraft, UpdateAction, Zone, ZoneDraft, ZoneReference } from "
|
|
1
|
+
import express from "express";
|
|
2
|
+
import * as msw1 from "msw";
|
|
3
|
+
import { SetupServer, SetupServerApi } from "msw/node";
|
|
4
|
+
import * as _commercetools_platform_sdk3 from "@commercetools/platform-sdk";
|
|
5
|
+
import * as _commercetools_platform_sdk4 from "@commercetools/platform-sdk";
|
|
6
|
+
import * as _commercetools_platform_sdk5 from "@commercetools/platform-sdk";
|
|
7
|
+
import * as _commercetools_platform_sdk9 from "@commercetools/platform-sdk";
|
|
8
|
+
import * as _commercetools_platform_sdk10 from "@commercetools/platform-sdk";
|
|
9
|
+
import * as _commercetools_platform_sdk11 from "@commercetools/platform-sdk";
|
|
10
|
+
import * as _commercetools_platform_sdk12 from "@commercetools/platform-sdk";
|
|
11
|
+
import * as _commercetools_platform_sdk13 from "@commercetools/platform-sdk";
|
|
12
|
+
import * as _commercetools_platform_sdk15 from "@commercetools/platform-sdk";
|
|
13
|
+
import * as _commercetools_platform_sdk17 from "@commercetools/platform-sdk";
|
|
14
|
+
import * as _commercetools_platform_sdk19 from "@commercetools/platform-sdk";
|
|
15
|
+
import * as _commercetools_platform_sdk20 from "@commercetools/platform-sdk";
|
|
16
|
+
import * as _commercetools_platform_sdk21 from "@commercetools/platform-sdk";
|
|
17
|
+
import * as _commercetools_platform_sdk23 from "@commercetools/platform-sdk";
|
|
18
|
+
import * as _commercetools_platform_sdk26 from "@commercetools/platform-sdk";
|
|
19
|
+
import * as _commercetools_platform_sdk27 from "@commercetools/platform-sdk";
|
|
20
|
+
import * as _commercetools_platform_sdk28 from "@commercetools/platform-sdk";
|
|
21
|
+
import * as _commercetools_platform_sdk29 from "@commercetools/platform-sdk";
|
|
22
|
+
import * as _commercetools_platform_sdk33 from "@commercetools/platform-sdk";
|
|
23
|
+
import * as _commercetools_platform_sdk34 from "@commercetools/platform-sdk";
|
|
24
|
+
import * as _commercetools_platform_sdk35 from "@commercetools/platform-sdk";
|
|
25
|
+
import * as _commercetools_platform_sdk36 from "@commercetools/platform-sdk";
|
|
26
|
+
import * as _commercetools_platform_sdk37 from "@commercetools/platform-sdk";
|
|
27
|
+
import * as _commercetools_platform_sdk39 from "@commercetools/platform-sdk";
|
|
28
|
+
import * as _commercetools_platform_sdk41 from "@commercetools/platform-sdk";
|
|
29
|
+
import * as _commercetools_platform_sdk43 from "@commercetools/platform-sdk";
|
|
30
|
+
import * as _commercetools_platform_sdk44 from "@commercetools/platform-sdk";
|
|
31
|
+
import * as _commercetools_platform_sdk45 from "@commercetools/platform-sdk";
|
|
32
|
+
import * as _commercetools_platform_sdk47 from "@commercetools/platform-sdk";
|
|
33
|
+
import * as _commercetools_platform_sdk49 from "@commercetools/platform-sdk";
|
|
34
|
+
import * as _commercetools_platform_sdk51 from "@commercetools/platform-sdk";
|
|
35
|
+
import * as _commercetools_platform_sdk52 from "@commercetools/platform-sdk";
|
|
36
|
+
import * as _commercetools_platform_sdk53 from "@commercetools/platform-sdk";
|
|
37
|
+
import * as _commercetools_platform_sdk54 from "@commercetools/platform-sdk";
|
|
38
|
+
import * as _commercetools_platform_sdk58 from "@commercetools/platform-sdk";
|
|
39
|
+
import * as _commercetools_platform_sdk59 from "@commercetools/platform-sdk";
|
|
40
|
+
import * as _commercetools_platform_sdk60 from "@commercetools/platform-sdk";
|
|
41
|
+
import * as _commercetools_platform_sdk61 from "@commercetools/platform-sdk";
|
|
42
|
+
import * as _commercetools_platform_sdk62 from "@commercetools/platform-sdk";
|
|
43
|
+
import * as _commercetools_platform_sdk64 from "@commercetools/platform-sdk";
|
|
44
|
+
import * as _commercetools_platform_sdk66 from "@commercetools/platform-sdk";
|
|
45
|
+
import * as _commercetools_platform_sdk68 from "@commercetools/platform-sdk";
|
|
46
|
+
import * as _commercetools_platform_sdk69 from "@commercetools/platform-sdk";
|
|
47
|
+
import * as _commercetools_platform_sdk70 from "@commercetools/platform-sdk";
|
|
48
|
+
import * as _commercetools_platform_sdk72 from "@commercetools/platform-sdk";
|
|
49
|
+
import * as _commercetools_platform_sdk74 from "@commercetools/platform-sdk";
|
|
50
|
+
import * as _commercetools_platform_sdk76 from "@commercetools/platform-sdk";
|
|
51
|
+
import * as _commercetools_platform_sdk77 from "@commercetools/platform-sdk";
|
|
52
|
+
import * as _commercetools_platform_sdk78 from "@commercetools/platform-sdk";
|
|
53
|
+
import * as _commercetools_platform_sdk79 from "@commercetools/platform-sdk";
|
|
54
|
+
import * as _commercetools_platform_sdk80 from "@commercetools/platform-sdk";
|
|
55
|
+
import * as _commercetools_platform_sdk81 from "@commercetools/platform-sdk";
|
|
56
|
+
import * as _commercetools_platform_sdk82 from "@commercetools/platform-sdk";
|
|
57
|
+
import * as _commercetools_platform_sdk83 from "@commercetools/platform-sdk";
|
|
58
|
+
import * as _commercetools_platform_sdk84 from "@commercetools/platform-sdk";
|
|
59
|
+
import * as ctp from "@commercetools/platform-sdk";
|
|
60
|
+
import { Address, AssociateRole, AssociateRoleDraft, AttributeGroup, AttributeGroupDraft, BaseResource, BusinessUnit, BusinessUnitDraft, Cart, CartDiscount, CartDiscountDraft, CartDraft, CartReference, Category, CategoryDraft, Channel, ChannelDraft, ChannelReference, ChannelResourceIdentifier, CustomObject, CustomObjectDraft, Customer, CustomerCreatePasswordResetToken, CustomerDraft, CustomerGroup, CustomerGroupDraft, CustomerResetPassword, CustomerToken, DiscountCode, DiscountCodeDraft, DiscountGroup, DiscountGroupDraft, Extension, ExtensionDraft, FacetResults, FilteredFacetResult, InventoryEntry, InventoryEntryDraft, LineItem, LineItemDraft, MyCustomerChangePassword, MyCustomerEmailVerify, MyCustomerResetPassword, MyOrderFromCartDraft, MyQuoteRequestDraft, Order, OrderEdit, OrderEditDraft, OrderFromCartDraft, OrderImportDraft, Payment, PaymentDraft, Product, ProductDiscount, ProductDiscountDraft, ProductDraft, ProductPagedSearchResponse, ProductProjection, ProductProjectionPagedSearchResponse, ProductSearchRequest, ProductSelection, ProductSelectionDraft, ProductTailoring, ProductType, ProductTypeDraft, Project, QueryParam, Quote, QuoteDraft, QuoteRequest, QuoteRequestDraft, RangeFacetResult, RecurrencePolicy, RecurrencePolicyDraft, RecurringOrder, RecurringOrderDraft, ResourceIdentifier, Review, ReviewDraft, ReviewRatingStatistics, ShippingMethod, ShippingMethodDraft, ShoppingList, ShoppingListDraft, ShoppingListLineItem, StagedQuote, StagedQuoteDraft, StandalonePrice, StandalonePriceDraft, State, StateDraft, Store, StoreDraft, StoreKeyReference, Subscription, SubscriptionDraft, TaxCategory, TaxCategoryDraft, TermFacetResult, Type, TypeDraft, UpdateAction, Zone, ZoneDraft, ZoneReference } from "@commercetools/platform-sdk";
|
|
61
61
|
import "node:http";
|
|
62
62
|
import "qs";
|
|
63
63
|
|
|
@@ -231,7 +231,7 @@ declare class CustomObjectRepository extends AbstractResourceRepository<"key-val
|
|
|
231
231
|
constructor(config: Config);
|
|
232
232
|
create(context: RepositoryContext, draft: Writable<CustomObjectDraft>): CustomObject;
|
|
233
233
|
getWithContainerAndKey(context: RepositoryContext, container: string, key: string): CustomObject | undefined;
|
|
234
|
-
queryWithContainer(context: RepositoryContext, container: string, params?: QueryParams$1):
|
|
234
|
+
queryWithContainer(context: RepositoryContext, container: string, params?: QueryParams$1): _commercetools_platform_sdk3.CustomObjectPagedQueryResponse;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
//#endregion
|
|
@@ -260,7 +260,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
260
260
|
anonymousId?: string | undefined;
|
|
261
261
|
attributedTo?: {
|
|
262
262
|
clientId?: string | undefined;
|
|
263
|
-
source:
|
|
263
|
+
source: _commercetools_platform_sdk4.AttributionSource;
|
|
264
264
|
} | undefined;
|
|
265
265
|
associate?: {
|
|
266
266
|
typeId: "customer";
|
|
@@ -279,7 +279,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
279
279
|
anonymousId?: string | undefined;
|
|
280
280
|
attributedTo?: {
|
|
281
281
|
clientId?: string | undefined;
|
|
282
|
-
source:
|
|
282
|
+
source: _commercetools_platform_sdk5.AttributionSource;
|
|
283
283
|
} | undefined;
|
|
284
284
|
associate?: {
|
|
285
285
|
typeId: "customer";
|
|
@@ -321,7 +321,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
321
321
|
anonymousId?: string | undefined;
|
|
322
322
|
attributedTo?: {
|
|
323
323
|
clientId?: string | undefined;
|
|
324
|
-
source:
|
|
324
|
+
source: _commercetools_platform_sdk9.AttributionSource;
|
|
325
325
|
} | undefined;
|
|
326
326
|
associate?: {
|
|
327
327
|
typeId: "customer";
|
|
@@ -340,7 +340,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
340
340
|
anonymousId?: string | undefined;
|
|
341
341
|
attributedTo?: {
|
|
342
342
|
clientId?: string | undefined;
|
|
343
|
-
source:
|
|
343
|
+
source: _commercetools_platform_sdk10.AttributionSource;
|
|
344
344
|
} | undefined;
|
|
345
345
|
associate?: {
|
|
346
346
|
typeId: "customer";
|
|
@@ -370,7 +370,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
370
370
|
anonymousId?: string | undefined;
|
|
371
371
|
attributedTo?: {
|
|
372
372
|
clientId?: string | undefined;
|
|
373
|
-
source:
|
|
373
|
+
source: _commercetools_platform_sdk11.AttributionSource;
|
|
374
374
|
} | undefined;
|
|
375
375
|
associate?: {
|
|
376
376
|
typeId: "customer";
|
|
@@ -389,7 +389,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
389
389
|
anonymousId?: string | undefined;
|
|
390
390
|
attributedTo?: {
|
|
391
391
|
clientId?: string | undefined;
|
|
392
|
-
source:
|
|
392
|
+
source: _commercetools_platform_sdk12.AttributionSource;
|
|
393
393
|
} | undefined;
|
|
394
394
|
associate?: {
|
|
395
395
|
typeId: "customer";
|
|
@@ -404,8 +404,8 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
404
404
|
description?: {
|
|
405
405
|
[x: string]: string;
|
|
406
406
|
} | undefined;
|
|
407
|
-
resourceTypeIds: WritableArray<
|
|
408
|
-
fieldDefinitions: WritableArray<
|
|
407
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk13.ResourceTypeId>;
|
|
408
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk15.FieldDefinition>;
|
|
409
409
|
} | undefined;
|
|
410
410
|
};
|
|
411
411
|
fields: {
|
|
@@ -414,7 +414,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
414
414
|
} | undefined;
|
|
415
415
|
} | undefined;
|
|
416
416
|
} | undefined;
|
|
417
|
-
customerGroupAssignments?: WritableArray<
|
|
417
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk17.CustomerGroupAssignment> | undefined;
|
|
418
418
|
custom?: {
|
|
419
419
|
type: {
|
|
420
420
|
typeId: "type";
|
|
@@ -435,7 +435,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
435
435
|
anonymousId?: string | undefined;
|
|
436
436
|
attributedTo?: {
|
|
437
437
|
clientId?: string | undefined;
|
|
438
|
-
source:
|
|
438
|
+
source: _commercetools_platform_sdk19.AttributionSource;
|
|
439
439
|
} | undefined;
|
|
440
440
|
associate?: {
|
|
441
441
|
typeId: "customer";
|
|
@@ -454,7 +454,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
454
454
|
anonymousId?: string | undefined;
|
|
455
455
|
attributedTo?: {
|
|
456
456
|
clientId?: string | undefined;
|
|
457
|
-
source:
|
|
457
|
+
source: _commercetools_platform_sdk20.AttributionSource;
|
|
458
458
|
} | undefined;
|
|
459
459
|
associate?: {
|
|
460
460
|
typeId: "customer";
|
|
@@ -469,8 +469,8 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
469
469
|
description?: {
|
|
470
470
|
[x: string]: string;
|
|
471
471
|
} | undefined;
|
|
472
|
-
resourceTypeIds: WritableArray<
|
|
473
|
-
fieldDefinitions: WritableArray<
|
|
472
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk21.ResourceTypeId>;
|
|
473
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk23.FieldDefinition>;
|
|
474
474
|
} | undefined;
|
|
475
475
|
};
|
|
476
476
|
fields: {
|
|
@@ -480,7 +480,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
480
480
|
locale?: string | undefined;
|
|
481
481
|
salutation?: string | undefined;
|
|
482
482
|
stores: WritableArray<StoreKeyReference>;
|
|
483
|
-
authenticationMode:
|
|
483
|
+
authenticationMode: _commercetools_platform_sdk26.AuthenticationMode;
|
|
484
484
|
};
|
|
485
485
|
verifyEmailToken(context: RepositoryContext, id: string): CustomerToken;
|
|
486
486
|
private storeReferenceToStoreKeyReference;
|
|
@@ -544,7 +544,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
544
544
|
anonymousId?: string | undefined;
|
|
545
545
|
attributedTo?: {
|
|
546
546
|
clientId?: string | undefined;
|
|
547
|
-
source:
|
|
547
|
+
source: _commercetools_platform_sdk27.AttributionSource;
|
|
548
548
|
} | undefined;
|
|
549
549
|
associate?: {
|
|
550
550
|
typeId: "customer";
|
|
@@ -563,7 +563,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
563
563
|
anonymousId?: string | undefined;
|
|
564
564
|
attributedTo?: {
|
|
565
565
|
clientId?: string | undefined;
|
|
566
|
-
source:
|
|
566
|
+
source: _commercetools_platform_sdk28.AttributionSource;
|
|
567
567
|
} | undefined;
|
|
568
568
|
associate?: {
|
|
569
569
|
typeId: "customer";
|
|
@@ -580,7 +580,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
580
580
|
dateOfBirth?: string | undefined;
|
|
581
581
|
companyName?: string | undefined;
|
|
582
582
|
vatId?: string | undefined;
|
|
583
|
-
addresses: WritableArray<
|
|
583
|
+
addresses: WritableArray<_commercetools_platform_sdk29.Address>;
|
|
584
584
|
defaultShippingAddressId?: string | undefined;
|
|
585
585
|
shippingAddressIds?: WritableArray<string> | undefined;
|
|
586
586
|
defaultBillingAddressId?: string | undefined;
|
|
@@ -605,7 +605,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
605
605
|
anonymousId?: string | undefined;
|
|
606
606
|
attributedTo?: {
|
|
607
607
|
clientId?: string | undefined;
|
|
608
|
-
source:
|
|
608
|
+
source: _commercetools_platform_sdk33.AttributionSource;
|
|
609
609
|
} | undefined;
|
|
610
610
|
associate?: {
|
|
611
611
|
typeId: "customer";
|
|
@@ -624,7 +624,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
624
624
|
anonymousId?: string | undefined;
|
|
625
625
|
attributedTo?: {
|
|
626
626
|
clientId?: string | undefined;
|
|
627
|
-
source:
|
|
627
|
+
source: _commercetools_platform_sdk34.AttributionSource;
|
|
628
628
|
} | undefined;
|
|
629
629
|
associate?: {
|
|
630
630
|
typeId: "customer";
|
|
@@ -654,7 +654,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
654
654
|
anonymousId?: string | undefined;
|
|
655
655
|
attributedTo?: {
|
|
656
656
|
clientId?: string | undefined;
|
|
657
|
-
source:
|
|
657
|
+
source: _commercetools_platform_sdk35.AttributionSource;
|
|
658
658
|
} | undefined;
|
|
659
659
|
associate?: {
|
|
660
660
|
typeId: "customer";
|
|
@@ -673,7 +673,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
673
673
|
anonymousId?: string | undefined;
|
|
674
674
|
attributedTo?: {
|
|
675
675
|
clientId?: string | undefined;
|
|
676
|
-
source:
|
|
676
|
+
source: _commercetools_platform_sdk36.AttributionSource;
|
|
677
677
|
} | undefined;
|
|
678
678
|
associate?: {
|
|
679
679
|
typeId: "customer";
|
|
@@ -688,8 +688,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
688
688
|
description?: {
|
|
689
689
|
[x: string]: string;
|
|
690
690
|
} | undefined;
|
|
691
|
-
resourceTypeIds: WritableArray<
|
|
692
|
-
fieldDefinitions: WritableArray<
|
|
691
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk37.ResourceTypeId>;
|
|
692
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk39.FieldDefinition>;
|
|
693
693
|
} | undefined;
|
|
694
694
|
};
|
|
695
695
|
fields: {
|
|
@@ -698,7 +698,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
698
698
|
} | undefined;
|
|
699
699
|
} | undefined;
|
|
700
700
|
} | undefined;
|
|
701
|
-
customerGroupAssignments?: WritableArray<
|
|
701
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk41.CustomerGroupAssignment> | undefined;
|
|
702
702
|
custom?: {
|
|
703
703
|
type: {
|
|
704
704
|
typeId: "type";
|
|
@@ -719,7 +719,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
719
719
|
anonymousId?: string | undefined;
|
|
720
720
|
attributedTo?: {
|
|
721
721
|
clientId?: string | undefined;
|
|
722
|
-
source:
|
|
722
|
+
source: _commercetools_platform_sdk43.AttributionSource;
|
|
723
723
|
} | undefined;
|
|
724
724
|
associate?: {
|
|
725
725
|
typeId: "customer";
|
|
@@ -738,7 +738,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
738
738
|
anonymousId?: string | undefined;
|
|
739
739
|
attributedTo?: {
|
|
740
740
|
clientId?: string | undefined;
|
|
741
|
-
source:
|
|
741
|
+
source: _commercetools_platform_sdk44.AttributionSource;
|
|
742
742
|
} | undefined;
|
|
743
743
|
associate?: {
|
|
744
744
|
typeId: "customer";
|
|
@@ -753,8 +753,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
753
753
|
description?: {
|
|
754
754
|
[x: string]: string;
|
|
755
755
|
} | undefined;
|
|
756
|
-
resourceTypeIds: WritableArray<
|
|
757
|
-
fieldDefinitions: WritableArray<
|
|
756
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk45.ResourceTypeId>;
|
|
757
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk47.FieldDefinition>;
|
|
758
758
|
} | undefined;
|
|
759
759
|
};
|
|
760
760
|
fields: {
|
|
@@ -763,8 +763,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
763
763
|
} | undefined;
|
|
764
764
|
locale?: string | undefined;
|
|
765
765
|
salutation?: string | undefined;
|
|
766
|
-
stores: WritableArray<
|
|
767
|
-
authenticationMode:
|
|
766
|
+
stores: WritableArray<_commercetools_platform_sdk49.StoreKeyReference>;
|
|
767
|
+
authenticationMode: _commercetools_platform_sdk51.AuthenticationMode;
|
|
768
768
|
};
|
|
769
769
|
confirmEmail(context: RepositoryContext, resetPassword: MyCustomerEmailVerify): {
|
|
770
770
|
id: string;
|
|
@@ -785,7 +785,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
785
785
|
anonymousId?: string | undefined;
|
|
786
786
|
attributedTo?: {
|
|
787
787
|
clientId?: string | undefined;
|
|
788
|
-
source:
|
|
788
|
+
source: _commercetools_platform_sdk52.AttributionSource;
|
|
789
789
|
} | undefined;
|
|
790
790
|
associate?: {
|
|
791
791
|
typeId: "customer";
|
|
@@ -804,7 +804,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
804
804
|
anonymousId?: string | undefined;
|
|
805
805
|
attributedTo?: {
|
|
806
806
|
clientId?: string | undefined;
|
|
807
|
-
source:
|
|
807
|
+
source: _commercetools_platform_sdk53.AttributionSource;
|
|
808
808
|
} | undefined;
|
|
809
809
|
associate?: {
|
|
810
810
|
typeId: "customer";
|
|
@@ -821,7 +821,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
821
821
|
dateOfBirth?: string | undefined;
|
|
822
822
|
companyName?: string | undefined;
|
|
823
823
|
vatId?: string | undefined;
|
|
824
|
-
addresses: WritableArray<
|
|
824
|
+
addresses: WritableArray<_commercetools_platform_sdk54.Address>;
|
|
825
825
|
defaultShippingAddressId?: string | undefined;
|
|
826
826
|
shippingAddressIds?: WritableArray<string> | undefined;
|
|
827
827
|
defaultBillingAddressId?: string | undefined;
|
|
@@ -846,7 +846,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
846
846
|
anonymousId?: string | undefined;
|
|
847
847
|
attributedTo?: {
|
|
848
848
|
clientId?: string | undefined;
|
|
849
|
-
source:
|
|
849
|
+
source: _commercetools_platform_sdk58.AttributionSource;
|
|
850
850
|
} | undefined;
|
|
851
851
|
associate?: {
|
|
852
852
|
typeId: "customer";
|
|
@@ -865,7 +865,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
865
865
|
anonymousId?: string | undefined;
|
|
866
866
|
attributedTo?: {
|
|
867
867
|
clientId?: string | undefined;
|
|
868
|
-
source:
|
|
868
|
+
source: _commercetools_platform_sdk59.AttributionSource;
|
|
869
869
|
} | undefined;
|
|
870
870
|
associate?: {
|
|
871
871
|
typeId: "customer";
|
|
@@ -895,7 +895,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
895
895
|
anonymousId?: string | undefined;
|
|
896
896
|
attributedTo?: {
|
|
897
897
|
clientId?: string | undefined;
|
|
898
|
-
source:
|
|
898
|
+
source: _commercetools_platform_sdk60.AttributionSource;
|
|
899
899
|
} | undefined;
|
|
900
900
|
associate?: {
|
|
901
901
|
typeId: "customer";
|
|
@@ -914,7 +914,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
914
914
|
anonymousId?: string | undefined;
|
|
915
915
|
attributedTo?: {
|
|
916
916
|
clientId?: string | undefined;
|
|
917
|
-
source:
|
|
917
|
+
source: _commercetools_platform_sdk61.AttributionSource;
|
|
918
918
|
} | undefined;
|
|
919
919
|
associate?: {
|
|
920
920
|
typeId: "customer";
|
|
@@ -929,8 +929,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
929
929
|
description?: {
|
|
930
930
|
[x: string]: string;
|
|
931
931
|
} | undefined;
|
|
932
|
-
resourceTypeIds: WritableArray<
|
|
933
|
-
fieldDefinitions: WritableArray<
|
|
932
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk62.ResourceTypeId>;
|
|
933
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk64.FieldDefinition>;
|
|
934
934
|
} | undefined;
|
|
935
935
|
};
|
|
936
936
|
fields: {
|
|
@@ -939,7 +939,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
939
939
|
} | undefined;
|
|
940
940
|
} | undefined;
|
|
941
941
|
} | undefined;
|
|
942
|
-
customerGroupAssignments?: WritableArray<
|
|
942
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk66.CustomerGroupAssignment> | undefined;
|
|
943
943
|
custom?: {
|
|
944
944
|
type: {
|
|
945
945
|
typeId: "type";
|
|
@@ -960,7 +960,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
960
960
|
anonymousId?: string | undefined;
|
|
961
961
|
attributedTo?: {
|
|
962
962
|
clientId?: string | undefined;
|
|
963
|
-
source:
|
|
963
|
+
source: _commercetools_platform_sdk68.AttributionSource;
|
|
964
964
|
} | undefined;
|
|
965
965
|
associate?: {
|
|
966
966
|
typeId: "customer";
|
|
@@ -979,7 +979,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
979
979
|
anonymousId?: string | undefined;
|
|
980
980
|
attributedTo?: {
|
|
981
981
|
clientId?: string | undefined;
|
|
982
|
-
source:
|
|
982
|
+
source: _commercetools_platform_sdk69.AttributionSource;
|
|
983
983
|
} | undefined;
|
|
984
984
|
associate?: {
|
|
985
985
|
typeId: "customer";
|
|
@@ -994,8 +994,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
994
994
|
description?: {
|
|
995
995
|
[x: string]: string;
|
|
996
996
|
} | undefined;
|
|
997
|
-
resourceTypeIds: WritableArray<
|
|
998
|
-
fieldDefinitions: WritableArray<
|
|
997
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk70.ResourceTypeId>;
|
|
998
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk72.FieldDefinition>;
|
|
999
999
|
} | undefined;
|
|
1000
1000
|
};
|
|
1001
1001
|
fields: {
|
|
@@ -1004,8 +1004,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
1004
1004
|
} | undefined;
|
|
1005
1005
|
locale?: string | undefined;
|
|
1006
1006
|
salutation?: string | undefined;
|
|
1007
|
-
stores: WritableArray<
|
|
1008
|
-
authenticationMode:
|
|
1007
|
+
stores: WritableArray<_commercetools_platform_sdk74.StoreKeyReference>;
|
|
1008
|
+
authenticationMode: _commercetools_platform_sdk76.AuthenticationMode;
|
|
1009
1009
|
};
|
|
1010
1010
|
deleteMe(context: RepositoryContext): Customer | undefined;
|
|
1011
1011
|
getMe(context: RepositoryContext): Customer | undefined;
|
|
@@ -1084,6 +1084,10 @@ type FilterExpression = {
|
|
|
1084
1084
|
|
|
1085
1085
|
//#endregion
|
|
1086
1086
|
//#region src/product-projection-search.d.ts
|
|
1087
|
+
/**
|
|
1088
|
+
* Returns a function (ProductProjectionFilter).
|
|
1089
|
+
* NOTE: The filter can alter the resources in-place (FIXME)
|
|
1090
|
+
*/
|
|
1087
1091
|
type ProductProjectionSearchParams = {
|
|
1088
1092
|
fuzzy?: boolean;
|
|
1089
1093
|
fuzzyLevel?: number;
|
|
@@ -1153,7 +1157,7 @@ declare class ProductProjectionRepository extends AbstractResourceRepository<"pr
|
|
|
1153
1157
|
limit: number;
|
|
1154
1158
|
results: ProductProjection[];
|
|
1155
1159
|
};
|
|
1156
|
-
search(context: RepositoryContext, query: ProductProjectionQueryParams):
|
|
1160
|
+
search(context: RepositoryContext, query: ProductProjectionQueryParams): _commercetools_platform_sdk77.ProductProjectionPagedSearchResponse;
|
|
1157
1161
|
}
|
|
1158
1162
|
|
|
1159
1163
|
//#endregion
|
|
@@ -1224,24 +1228,24 @@ declare class ShippingMethodRepository extends AbstractResourceRepository<"shipp
|
|
|
1224
1228
|
results: {
|
|
1225
1229
|
zoneRates: {
|
|
1226
1230
|
zone: ZoneReference;
|
|
1227
|
-
shippingRates:
|
|
1231
|
+
shippingRates: _commercetools_platform_sdk78.ShippingRate[];
|
|
1228
1232
|
}[];
|
|
1229
1233
|
id: string;
|
|
1230
1234
|
version: number;
|
|
1231
1235
|
createdAt: string;
|
|
1232
1236
|
lastModifiedAt: string;
|
|
1233
|
-
lastModifiedBy?:
|
|
1234
|
-
createdBy?:
|
|
1237
|
+
lastModifiedBy?: _commercetools_platform_sdk79.LastModifiedBy;
|
|
1238
|
+
createdBy?: _commercetools_platform_sdk80.CreatedBy;
|
|
1235
1239
|
key?: string;
|
|
1236
1240
|
name: string;
|
|
1237
|
-
localizedName?:
|
|
1241
|
+
localizedName?: _commercetools_platform_sdk81.LocalizedString;
|
|
1238
1242
|
description?: string;
|
|
1239
|
-
localizedDescription?:
|
|
1240
|
-
taxCategory:
|
|
1243
|
+
localizedDescription?: _commercetools_platform_sdk82.LocalizedString;
|
|
1244
|
+
taxCategory: _commercetools_platform_sdk83.TaxCategoryReference;
|
|
1241
1245
|
active: boolean;
|
|
1242
1246
|
isDefault: boolean;
|
|
1243
1247
|
predicate?: string;
|
|
1244
|
-
custom?:
|
|
1248
|
+
custom?: _commercetools_platform_sdk84.CustomFields;
|
|
1245
1249
|
}[];
|
|
1246
1250
|
limit?: number;
|
|
1247
1251
|
count: number;
|
|
@@ -1539,7 +1543,7 @@ declare class CommercetoolsMock {
|
|
|
1539
1543
|
runServer(port?: number, options?: AppOptions): void;
|
|
1540
1544
|
private createApp;
|
|
1541
1545
|
registerHandlers(server: SetupServerApi): void;
|
|
1542
|
-
getHandlers():
|
|
1546
|
+
getHandlers(): msw1.HttpHandler[];
|
|
1543
1547
|
mswServer(): SetupServer | undefined;
|
|
1544
1548
|
private startServer;
|
|
1545
1549
|
}
|
|
@@ -1554,5 +1558,10 @@ declare const getBaseResourceProperties: () => {
|
|
|
1554
1558
|
};
|
|
1555
1559
|
|
|
1556
1560
|
//#endregion
|
|
1561
|
+
/**
|
|
1562
|
+
* Do a nested lookup by using a path. For example `foo.bar.value` will
|
|
1563
|
+
* return obj['foo']['bar']['value']
|
|
1564
|
+
*/
|
|
1565
|
+
|
|
1557
1566
|
export { CommercetoolsMock, CommercetoolsMockOptions, getBaseResourceProperties };
|
|
1558
1567
|
//# sourceMappingURL=index.d.ts.map
|