@labdigital/commercetools-mock 2.62.1 → 2.63.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.d.mts +134 -134
- package/dist/index.mjs +89 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/repositories/cart/actions.ts +39 -11
- package/src/repositories/cart/helpers.ts +39 -4
- package/src/repositories/cart/index.test.ts +32 -0
- package/src/repositories/cart/index.ts +29 -8
- package/src/repositories/helpers.test.ts +113 -2
- package/src/repositories/helpers.ts +107 -17
- package/src/repositories/order/index.ts +5 -4
- package/src/repositories/shipping-method/helpers.ts +3 -3
- package/src/services/cart.test.ts +162 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import express from "express";
|
|
2
2
|
import * as msw0 from "msw";
|
|
3
3
|
import { SetupServer, SetupServerApi } from "msw/node";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _commercetools_platform_sdk13 from "@commercetools/platform-sdk";
|
|
5
5
|
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, ShippingInfo, ShippingMethod, ShippingMethodDraft, ShippingMethodReference, 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";
|
|
6
6
|
|
|
7
7
|
//#region src/oauth/store.d.ts
|
|
@@ -171,7 +171,7 @@ declare class CustomObjectRepository extends AbstractResourceRepository<"key-val
|
|
|
171
171
|
constructor(config: Config);
|
|
172
172
|
create(context: RepositoryContext, draft: Writable<CustomObjectDraft>): CustomObject;
|
|
173
173
|
getWithContainerAndKey(context: RepositoryContext, container: string, key: string): CustomObject | undefined;
|
|
174
|
-
queryWithContainer(context: RepositoryContext, container: string, params?: QueryParams$1):
|
|
174
|
+
queryWithContainer(context: RepositoryContext, container: string, params?: QueryParams$1): _commercetools_platform_sdk13.CustomObjectPagedQueryResponse;
|
|
175
175
|
}
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/repositories/customer/index.d.ts
|
|
@@ -199,7 +199,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
199
199
|
anonymousId?: string | undefined;
|
|
200
200
|
attributedTo?: {
|
|
201
201
|
clientId?: string | undefined;
|
|
202
|
-
source:
|
|
202
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
203
203
|
} | undefined;
|
|
204
204
|
associate?: {
|
|
205
205
|
typeId: "customer";
|
|
@@ -218,7 +218,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
218
218
|
anonymousId?: string | undefined;
|
|
219
219
|
attributedTo?: {
|
|
220
220
|
clientId?: string | undefined;
|
|
221
|
-
source:
|
|
221
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
222
222
|
} | undefined;
|
|
223
223
|
associate?: {
|
|
224
224
|
typeId: "customer";
|
|
@@ -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_sdk13.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_sdk13.AttributionSource;
|
|
283
283
|
} | undefined;
|
|
284
284
|
associate?: {
|
|
285
285
|
typeId: "customer";
|
|
@@ -309,7 +309,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
309
309
|
anonymousId?: string | undefined;
|
|
310
310
|
attributedTo?: {
|
|
311
311
|
clientId?: string | undefined;
|
|
312
|
-
source:
|
|
312
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
313
313
|
} | undefined;
|
|
314
314
|
associate?: {
|
|
315
315
|
typeId: "customer";
|
|
@@ -328,7 +328,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
328
328
|
anonymousId?: string | undefined;
|
|
329
329
|
attributedTo?: {
|
|
330
330
|
clientId?: string | undefined;
|
|
331
|
-
source:
|
|
331
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
332
332
|
} | undefined;
|
|
333
333
|
associate?: {
|
|
334
334
|
typeId: "customer";
|
|
@@ -343,8 +343,8 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
343
343
|
description?: {
|
|
344
344
|
[x: string]: string;
|
|
345
345
|
} | undefined;
|
|
346
|
-
resourceTypeIds: WritableArray<
|
|
347
|
-
fieldDefinitions: WritableArray<
|
|
346
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk13.ResourceTypeId>;
|
|
347
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk13.FieldDefinition>;
|
|
348
348
|
} | undefined;
|
|
349
349
|
};
|
|
350
350
|
fields: {
|
|
@@ -353,7 +353,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
353
353
|
} | undefined;
|
|
354
354
|
} | undefined;
|
|
355
355
|
} | undefined;
|
|
356
|
-
customerGroupAssignments?: WritableArray<
|
|
356
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk13.CustomerGroupAssignment> | undefined;
|
|
357
357
|
custom?: {
|
|
358
358
|
type: {
|
|
359
359
|
typeId: "type";
|
|
@@ -374,7 +374,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
374
374
|
anonymousId?: string | undefined;
|
|
375
375
|
attributedTo?: {
|
|
376
376
|
clientId?: string | undefined;
|
|
377
|
-
source:
|
|
377
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
378
378
|
} | undefined;
|
|
379
379
|
associate?: {
|
|
380
380
|
typeId: "customer";
|
|
@@ -393,7 +393,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
393
393
|
anonymousId?: string | undefined;
|
|
394
394
|
attributedTo?: {
|
|
395
395
|
clientId?: string | undefined;
|
|
396
|
-
source:
|
|
396
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
397
397
|
} | undefined;
|
|
398
398
|
associate?: {
|
|
399
399
|
typeId: "customer";
|
|
@@ -408,8 +408,8 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
408
408
|
description?: {
|
|
409
409
|
[x: string]: string;
|
|
410
410
|
} | undefined;
|
|
411
|
-
resourceTypeIds: WritableArray<
|
|
412
|
-
fieldDefinitions: WritableArray<
|
|
411
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk13.ResourceTypeId>;
|
|
412
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk13.FieldDefinition>;
|
|
413
413
|
} | undefined;
|
|
414
414
|
};
|
|
415
415
|
fields: {
|
|
@@ -419,7 +419,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
419
419
|
locale?: string | undefined;
|
|
420
420
|
salutation?: string | undefined;
|
|
421
421
|
stores: WritableArray<StoreKeyReference>;
|
|
422
|
-
authenticationMode:
|
|
422
|
+
authenticationMode: _commercetools_platform_sdk13.AuthenticationMode;
|
|
423
423
|
};
|
|
424
424
|
verifyEmailToken(context: RepositoryContext, id: string): CustomerToken;
|
|
425
425
|
private storeReferenceToStoreKeyReference;
|
|
@@ -477,7 +477,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
477
477
|
anonymousId?: string | undefined;
|
|
478
478
|
attributedTo?: {
|
|
479
479
|
clientId?: string | undefined;
|
|
480
|
-
source:
|
|
480
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
481
481
|
} | undefined;
|
|
482
482
|
associate?: {
|
|
483
483
|
typeId: "customer";
|
|
@@ -496,7 +496,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
496
496
|
anonymousId?: string | undefined;
|
|
497
497
|
attributedTo?: {
|
|
498
498
|
clientId?: string | undefined;
|
|
499
|
-
source:
|
|
499
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
500
500
|
} | undefined;
|
|
501
501
|
associate?: {
|
|
502
502
|
typeId: "customer";
|
|
@@ -513,7 +513,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
513
513
|
dateOfBirth?: string | undefined;
|
|
514
514
|
companyName?: string | undefined;
|
|
515
515
|
vatId?: string | undefined;
|
|
516
|
-
addresses: WritableArray<
|
|
516
|
+
addresses: WritableArray<_commercetools_platform_sdk13.Address>;
|
|
517
517
|
defaultShippingAddressId?: string | undefined;
|
|
518
518
|
shippingAddressIds?: WritableArray<string> | undefined;
|
|
519
519
|
defaultBillingAddressId?: string | undefined;
|
|
@@ -538,7 +538,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
538
538
|
anonymousId?: string | undefined;
|
|
539
539
|
attributedTo?: {
|
|
540
540
|
clientId?: string | undefined;
|
|
541
|
-
source:
|
|
541
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
542
542
|
} | undefined;
|
|
543
543
|
associate?: {
|
|
544
544
|
typeId: "customer";
|
|
@@ -557,7 +557,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
557
557
|
anonymousId?: string | undefined;
|
|
558
558
|
attributedTo?: {
|
|
559
559
|
clientId?: string | undefined;
|
|
560
|
-
source:
|
|
560
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
561
561
|
} | undefined;
|
|
562
562
|
associate?: {
|
|
563
563
|
typeId: "customer";
|
|
@@ -587,7 +587,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
587
587
|
anonymousId?: string | undefined;
|
|
588
588
|
attributedTo?: {
|
|
589
589
|
clientId?: string | undefined;
|
|
590
|
-
source:
|
|
590
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
591
591
|
} | undefined;
|
|
592
592
|
associate?: {
|
|
593
593
|
typeId: "customer";
|
|
@@ -606,7 +606,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
606
606
|
anonymousId?: string | undefined;
|
|
607
607
|
attributedTo?: {
|
|
608
608
|
clientId?: string | undefined;
|
|
609
|
-
source:
|
|
609
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
610
610
|
} | undefined;
|
|
611
611
|
associate?: {
|
|
612
612
|
typeId: "customer";
|
|
@@ -621,8 +621,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
621
621
|
description?: {
|
|
622
622
|
[x: string]: string;
|
|
623
623
|
} | undefined;
|
|
624
|
-
resourceTypeIds: WritableArray<
|
|
625
|
-
fieldDefinitions: WritableArray<
|
|
624
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk13.ResourceTypeId>;
|
|
625
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk13.FieldDefinition>;
|
|
626
626
|
} | undefined;
|
|
627
627
|
};
|
|
628
628
|
fields: {
|
|
@@ -631,7 +631,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
631
631
|
} | undefined;
|
|
632
632
|
} | undefined;
|
|
633
633
|
} | undefined;
|
|
634
|
-
customerGroupAssignments?: WritableArray<
|
|
634
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk13.CustomerGroupAssignment> | undefined;
|
|
635
635
|
custom?: {
|
|
636
636
|
type: {
|
|
637
637
|
typeId: "type";
|
|
@@ -652,7 +652,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
652
652
|
anonymousId?: string | undefined;
|
|
653
653
|
attributedTo?: {
|
|
654
654
|
clientId?: string | undefined;
|
|
655
|
-
source:
|
|
655
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
656
656
|
} | undefined;
|
|
657
657
|
associate?: {
|
|
658
658
|
typeId: "customer";
|
|
@@ -671,7 +671,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
671
671
|
anonymousId?: string | undefined;
|
|
672
672
|
attributedTo?: {
|
|
673
673
|
clientId?: string | undefined;
|
|
674
|
-
source:
|
|
674
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
675
675
|
} | undefined;
|
|
676
676
|
associate?: {
|
|
677
677
|
typeId: "customer";
|
|
@@ -686,8 +686,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
686
686
|
description?: {
|
|
687
687
|
[x: string]: string;
|
|
688
688
|
} | undefined;
|
|
689
|
-
resourceTypeIds: WritableArray<
|
|
690
|
-
fieldDefinitions: WritableArray<
|
|
689
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk13.ResourceTypeId>;
|
|
690
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk13.FieldDefinition>;
|
|
691
691
|
} | undefined;
|
|
692
692
|
};
|
|
693
693
|
fields: {
|
|
@@ -696,8 +696,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
696
696
|
} | undefined;
|
|
697
697
|
locale?: string | undefined;
|
|
698
698
|
salutation?: string | undefined;
|
|
699
|
-
stores: WritableArray<
|
|
700
|
-
authenticationMode:
|
|
699
|
+
stores: WritableArray<_commercetools_platform_sdk13.StoreKeyReference>;
|
|
700
|
+
authenticationMode: _commercetools_platform_sdk13.AuthenticationMode;
|
|
701
701
|
};
|
|
702
702
|
confirmEmail(context: RepositoryContext, resetPassword: MyCustomerEmailVerify): {
|
|
703
703
|
id: string;
|
|
@@ -718,7 +718,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
718
718
|
anonymousId?: string | undefined;
|
|
719
719
|
attributedTo?: {
|
|
720
720
|
clientId?: string | undefined;
|
|
721
|
-
source:
|
|
721
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
722
722
|
} | undefined;
|
|
723
723
|
associate?: {
|
|
724
724
|
typeId: "customer";
|
|
@@ -737,7 +737,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
737
737
|
anonymousId?: string | undefined;
|
|
738
738
|
attributedTo?: {
|
|
739
739
|
clientId?: string | undefined;
|
|
740
|
-
source:
|
|
740
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
741
741
|
} | undefined;
|
|
742
742
|
associate?: {
|
|
743
743
|
typeId: "customer";
|
|
@@ -754,7 +754,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
754
754
|
dateOfBirth?: string | undefined;
|
|
755
755
|
companyName?: string | undefined;
|
|
756
756
|
vatId?: string | undefined;
|
|
757
|
-
addresses: WritableArray<
|
|
757
|
+
addresses: WritableArray<_commercetools_platform_sdk13.Address>;
|
|
758
758
|
defaultShippingAddressId?: string | undefined;
|
|
759
759
|
shippingAddressIds?: WritableArray<string> | undefined;
|
|
760
760
|
defaultBillingAddressId?: string | undefined;
|
|
@@ -779,7 +779,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
779
779
|
anonymousId?: string | undefined;
|
|
780
780
|
attributedTo?: {
|
|
781
781
|
clientId?: string | undefined;
|
|
782
|
-
source:
|
|
782
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
783
783
|
} | undefined;
|
|
784
784
|
associate?: {
|
|
785
785
|
typeId: "customer";
|
|
@@ -798,7 +798,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
798
798
|
anonymousId?: string | undefined;
|
|
799
799
|
attributedTo?: {
|
|
800
800
|
clientId?: string | undefined;
|
|
801
|
-
source:
|
|
801
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
802
802
|
} | undefined;
|
|
803
803
|
associate?: {
|
|
804
804
|
typeId: "customer";
|
|
@@ -828,7 +828,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
828
828
|
anonymousId?: string | undefined;
|
|
829
829
|
attributedTo?: {
|
|
830
830
|
clientId?: string | undefined;
|
|
831
|
-
source:
|
|
831
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
832
832
|
} | undefined;
|
|
833
833
|
associate?: {
|
|
834
834
|
typeId: "customer";
|
|
@@ -847,7 +847,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
847
847
|
anonymousId?: string | undefined;
|
|
848
848
|
attributedTo?: {
|
|
849
849
|
clientId?: string | undefined;
|
|
850
|
-
source:
|
|
850
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
851
851
|
} | undefined;
|
|
852
852
|
associate?: {
|
|
853
853
|
typeId: "customer";
|
|
@@ -862,8 +862,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
862
862
|
description?: {
|
|
863
863
|
[x: string]: string;
|
|
864
864
|
} | undefined;
|
|
865
|
-
resourceTypeIds: WritableArray<
|
|
866
|
-
fieldDefinitions: WritableArray<
|
|
865
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk13.ResourceTypeId>;
|
|
866
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk13.FieldDefinition>;
|
|
867
867
|
} | undefined;
|
|
868
868
|
};
|
|
869
869
|
fields: {
|
|
@@ -872,7 +872,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
872
872
|
} | undefined;
|
|
873
873
|
} | undefined;
|
|
874
874
|
} | undefined;
|
|
875
|
-
customerGroupAssignments?: WritableArray<
|
|
875
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk13.CustomerGroupAssignment> | undefined;
|
|
876
876
|
custom?: {
|
|
877
877
|
type: {
|
|
878
878
|
typeId: "type";
|
|
@@ -893,7 +893,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
893
893
|
anonymousId?: string | undefined;
|
|
894
894
|
attributedTo?: {
|
|
895
895
|
clientId?: string | undefined;
|
|
896
|
-
source:
|
|
896
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
897
897
|
} | undefined;
|
|
898
898
|
associate?: {
|
|
899
899
|
typeId: "customer";
|
|
@@ -912,7 +912,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
912
912
|
anonymousId?: string | undefined;
|
|
913
913
|
attributedTo?: {
|
|
914
914
|
clientId?: string | undefined;
|
|
915
|
-
source:
|
|
915
|
+
source: _commercetools_platform_sdk13.AttributionSource;
|
|
916
916
|
} | undefined;
|
|
917
917
|
associate?: {
|
|
918
918
|
typeId: "customer";
|
|
@@ -927,8 +927,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
927
927
|
description?: {
|
|
928
928
|
[x: string]: string;
|
|
929
929
|
} | undefined;
|
|
930
|
-
resourceTypeIds: WritableArray<
|
|
931
|
-
fieldDefinitions: WritableArray<
|
|
930
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk13.ResourceTypeId>;
|
|
931
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk13.FieldDefinition>;
|
|
932
932
|
} | undefined;
|
|
933
933
|
};
|
|
934
934
|
fields: {
|
|
@@ -937,8 +937,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
937
937
|
} | undefined;
|
|
938
938
|
locale?: string | undefined;
|
|
939
939
|
salutation?: string | undefined;
|
|
940
|
-
stores: WritableArray<
|
|
941
|
-
authenticationMode:
|
|
940
|
+
stores: WritableArray<_commercetools_platform_sdk13.StoreKeyReference>;
|
|
941
|
+
authenticationMode: _commercetools_platform_sdk13.AuthenticationMode;
|
|
942
942
|
};
|
|
943
943
|
deleteMe(context: RepositoryContext): Customer | undefined;
|
|
944
944
|
getMe(context: RepositoryContext): Customer | undefined;
|
|
@@ -1078,7 +1078,7 @@ declare class ProductProjectionRepository extends AbstractResourceRepository<"pr
|
|
|
1078
1078
|
limit: number;
|
|
1079
1079
|
results: ProductProjection[];
|
|
1080
1080
|
};
|
|
1081
|
-
search(context: RepositoryContext, query: ProductProjectionQueryParams):
|
|
1081
|
+
search(context: RepositoryContext, query: ProductProjectionQueryParams): _commercetools_platform_sdk13.ProductProjectionPagedSearchResponse;
|
|
1082
1082
|
}
|
|
1083
1083
|
//#endregion
|
|
1084
1084
|
//#region src/repositories/product-selection.d.ts
|
|
@@ -1140,24 +1140,24 @@ declare class ShippingMethodRepository extends AbstractResourceRepository<"shipp
|
|
|
1140
1140
|
results: {
|
|
1141
1141
|
zoneRates: {
|
|
1142
1142
|
zone: ZoneReference;
|
|
1143
|
-
shippingRates:
|
|
1143
|
+
shippingRates: _commercetools_platform_sdk13.ShippingRate[];
|
|
1144
1144
|
}[];
|
|
1145
1145
|
id: string;
|
|
1146
1146
|
version: number;
|
|
1147
1147
|
createdAt: string;
|
|
1148
1148
|
lastModifiedAt: string;
|
|
1149
|
-
lastModifiedBy?:
|
|
1150
|
-
createdBy?:
|
|
1149
|
+
lastModifiedBy?: _commercetools_platform_sdk13.LastModifiedBy;
|
|
1150
|
+
createdBy?: _commercetools_platform_sdk13.CreatedBy;
|
|
1151
1151
|
key?: string;
|
|
1152
1152
|
name: string;
|
|
1153
|
-
localizedName?:
|
|
1153
|
+
localizedName?: _commercetools_platform_sdk13.LocalizedString;
|
|
1154
1154
|
description?: string;
|
|
1155
|
-
localizedDescription?:
|
|
1156
|
-
taxCategory:
|
|
1155
|
+
localizedDescription?: _commercetools_platform_sdk13.LocalizedString;
|
|
1156
|
+
taxCategory: _commercetools_platform_sdk13.TaxCategoryReference;
|
|
1157
1157
|
active: boolean;
|
|
1158
1158
|
isDefault: boolean;
|
|
1159
1159
|
predicate?: string;
|
|
1160
|
-
custom?:
|
|
1160
|
+
custom?: _commercetools_platform_sdk13.CustomFields;
|
|
1161
1161
|
}[];
|
|
1162
1162
|
limit?: number;
|
|
1163
1163
|
count: number;
|
|
@@ -1272,90 +1272,90 @@ interface WritableArray<T> extends Array<Writable<T>> {}
|
|
|
1272
1272
|
type ShallowWritable<T> = { -readonly [P in keyof T]: T[P] };
|
|
1273
1273
|
type ResourceType = keyof ResourceMap & keyof RepositoryMap;
|
|
1274
1274
|
type ResourceMap = {
|
|
1275
|
-
"attribute-group":
|
|
1276
|
-
"associate-role":
|
|
1277
|
-
"business-unit":
|
|
1278
|
-
"cart-discount":
|
|
1279
|
-
cart:
|
|
1280
|
-
category:
|
|
1281
|
-
channel:
|
|
1275
|
+
"attribute-group": _commercetools_platform_sdk13.AttributeGroup;
|
|
1276
|
+
"associate-role": _commercetools_platform_sdk13.AssociateRole;
|
|
1277
|
+
"business-unit": _commercetools_platform_sdk13.BusinessUnit;
|
|
1278
|
+
"cart-discount": _commercetools_platform_sdk13.CartDiscount;
|
|
1279
|
+
cart: _commercetools_platform_sdk13.Cart;
|
|
1280
|
+
category: _commercetools_platform_sdk13.Category;
|
|
1281
|
+
channel: _commercetools_platform_sdk13.Channel;
|
|
1282
1282
|
"customer-email-token": never;
|
|
1283
|
-
"customer-group":
|
|
1283
|
+
"customer-group": _commercetools_platform_sdk13.CustomerGroup;
|
|
1284
1284
|
"customer-password-token": never;
|
|
1285
|
-
customer:
|
|
1286
|
-
"discount-code":
|
|
1287
|
-
"discount-group":
|
|
1288
|
-
extension:
|
|
1289
|
-
"inventory-entry":
|
|
1290
|
-
"key-value-document":
|
|
1291
|
-
"order-edit":
|
|
1292
|
-
order:
|
|
1293
|
-
payment:
|
|
1294
|
-
"product-discount":
|
|
1295
|
-
"product-price":
|
|
1296
|
-
"product-projection":
|
|
1297
|
-
"product-selection":
|
|
1298
|
-
"product-tailoring":
|
|
1299
|
-
"product-type":
|
|
1300
|
-
product:
|
|
1301
|
-
"quote-request":
|
|
1302
|
-
quote:
|
|
1303
|
-
review:
|
|
1304
|
-
"shipping-method":
|
|
1305
|
-
"shopping-list":
|
|
1306
|
-
"staged-quote":
|
|
1307
|
-
"standalone-price":
|
|
1308
|
-
state:
|
|
1309
|
-
store:
|
|
1310
|
-
subscription:
|
|
1311
|
-
"recurring-order":
|
|
1312
|
-
"recurrence-policy":
|
|
1313
|
-
"tax-category":
|
|
1314
|
-
type:
|
|
1315
|
-
zone:
|
|
1285
|
+
customer: _commercetools_platform_sdk13.Customer;
|
|
1286
|
+
"discount-code": _commercetools_platform_sdk13.DiscountCode;
|
|
1287
|
+
"discount-group": _commercetools_platform_sdk13.DiscountGroup;
|
|
1288
|
+
extension: _commercetools_platform_sdk13.Extension;
|
|
1289
|
+
"inventory-entry": _commercetools_platform_sdk13.InventoryEntry;
|
|
1290
|
+
"key-value-document": _commercetools_platform_sdk13.CustomObject;
|
|
1291
|
+
"order-edit": _commercetools_platform_sdk13.OrderEdit;
|
|
1292
|
+
order: _commercetools_platform_sdk13.Order;
|
|
1293
|
+
payment: _commercetools_platform_sdk13.Payment;
|
|
1294
|
+
"product-discount": _commercetools_platform_sdk13.ProductDiscount;
|
|
1295
|
+
"product-price": _commercetools_platform_sdk13.StandalonePrice;
|
|
1296
|
+
"product-projection": _commercetools_platform_sdk13.ProductProjection;
|
|
1297
|
+
"product-selection": _commercetools_platform_sdk13.ProductSelection;
|
|
1298
|
+
"product-tailoring": _commercetools_platform_sdk13.ProductTailoring;
|
|
1299
|
+
"product-type": _commercetools_platform_sdk13.ProductType;
|
|
1300
|
+
product: _commercetools_platform_sdk13.Product;
|
|
1301
|
+
"quote-request": _commercetools_platform_sdk13.QuoteRequest;
|
|
1302
|
+
quote: _commercetools_platform_sdk13.Quote;
|
|
1303
|
+
review: _commercetools_platform_sdk13.Review;
|
|
1304
|
+
"shipping-method": _commercetools_platform_sdk13.ShippingMethod;
|
|
1305
|
+
"shopping-list": _commercetools_platform_sdk13.ShoppingList;
|
|
1306
|
+
"staged-quote": _commercetools_platform_sdk13.StagedQuote;
|
|
1307
|
+
"standalone-price": _commercetools_platform_sdk13.StandalonePrice;
|
|
1308
|
+
state: _commercetools_platform_sdk13.State;
|
|
1309
|
+
store: _commercetools_platform_sdk13.Store;
|
|
1310
|
+
subscription: _commercetools_platform_sdk13.Subscription;
|
|
1311
|
+
"recurring-order": _commercetools_platform_sdk13.RecurringOrder;
|
|
1312
|
+
"recurrence-policy": _commercetools_platform_sdk13.RecurrencePolicy;
|
|
1313
|
+
"tax-category": _commercetools_platform_sdk13.TaxCategory;
|
|
1314
|
+
type: _commercetools_platform_sdk13.Type;
|
|
1315
|
+
zone: _commercetools_platform_sdk13.Zone;
|
|
1316
1316
|
};
|
|
1317
1317
|
type PagedQueryResponseMap = {
|
|
1318
|
-
"attribute-group":
|
|
1319
|
-
"associate-role":
|
|
1320
|
-
"business-unit":
|
|
1321
|
-
"cart-discount":
|
|
1322
|
-
cart:
|
|
1323
|
-
category:
|
|
1324
|
-
channel:
|
|
1318
|
+
"attribute-group": _commercetools_platform_sdk13.AttributeGroupPagedQueryResponse;
|
|
1319
|
+
"associate-role": _commercetools_platform_sdk13.AssociateRolePagedQueryResponse;
|
|
1320
|
+
"business-unit": _commercetools_platform_sdk13.BusinessUnitPagedQueryResponse;
|
|
1321
|
+
"cart-discount": _commercetools_platform_sdk13.CartDiscountPagedQueryResponse;
|
|
1322
|
+
cart: _commercetools_platform_sdk13.CartPagedQueryResponse;
|
|
1323
|
+
category: _commercetools_platform_sdk13.CategoryPagedQueryResponse;
|
|
1324
|
+
channel: _commercetools_platform_sdk13.ChannelPagedQueryResponse;
|
|
1325
1325
|
"customer-email-token": never;
|
|
1326
|
-
"customer-group":
|
|
1326
|
+
"customer-group": _commercetools_platform_sdk13.CustomerGroupPagedQueryResponse;
|
|
1327
1327
|
"customer-password-token": never;
|
|
1328
|
-
customer:
|
|
1329
|
-
"discount-code":
|
|
1330
|
-
"discount-group":
|
|
1331
|
-
extension:
|
|
1332
|
-
"inventory-entry":
|
|
1333
|
-
"key-value-document":
|
|
1334
|
-
"order-edit":
|
|
1335
|
-
order:
|
|
1336
|
-
payment:
|
|
1337
|
-
"product-discount":
|
|
1338
|
-
"product-price":
|
|
1339
|
-
"product-projection":
|
|
1340
|
-
"product-selection":
|
|
1341
|
-
"product-tailoring":
|
|
1342
|
-
"product-type":
|
|
1343
|
-
product:
|
|
1344
|
-
"quote-request":
|
|
1345
|
-
quote:
|
|
1346
|
-
review:
|
|
1347
|
-
"shipping-method":
|
|
1348
|
-
"shopping-list":
|
|
1349
|
-
"staged-quote":
|
|
1350
|
-
"standalone-price":
|
|
1351
|
-
state:
|
|
1352
|
-
store:
|
|
1353
|
-
subscription:
|
|
1354
|
-
"recurring-order":
|
|
1355
|
-
"recurrence-policy":
|
|
1356
|
-
"tax-category":
|
|
1357
|
-
type:
|
|
1358
|
-
zone:
|
|
1328
|
+
customer: _commercetools_platform_sdk13.CustomerPagedQueryResponse;
|
|
1329
|
+
"discount-code": _commercetools_platform_sdk13.DiscountCodePagedQueryResponse;
|
|
1330
|
+
"discount-group": _commercetools_platform_sdk13.DiscountGroupPagedQueryResponse;
|
|
1331
|
+
extension: _commercetools_platform_sdk13.ExtensionPagedQueryResponse;
|
|
1332
|
+
"inventory-entry": _commercetools_platform_sdk13.InventoryPagedQueryResponse;
|
|
1333
|
+
"key-value-document": _commercetools_platform_sdk13.CustomObjectPagedQueryResponse;
|
|
1334
|
+
"order-edit": _commercetools_platform_sdk13.OrderEditPagedQueryResponse;
|
|
1335
|
+
order: _commercetools_platform_sdk13.OrderPagedQueryResponse;
|
|
1336
|
+
payment: _commercetools_platform_sdk13.PaymentPagedQueryResponse;
|
|
1337
|
+
"product-discount": _commercetools_platform_sdk13.ProductDiscountPagedQueryResponse;
|
|
1338
|
+
"product-price": _commercetools_platform_sdk13.StandalonePricePagedQueryResponse;
|
|
1339
|
+
"product-projection": _commercetools_platform_sdk13.ProductProjectionPagedQueryResponse;
|
|
1340
|
+
"product-selection": _commercetools_platform_sdk13.ProductSelectionPagedQueryResponse;
|
|
1341
|
+
"product-tailoring": _commercetools_platform_sdk13.ProductTailoringPagedQueryResponse;
|
|
1342
|
+
"product-type": _commercetools_platform_sdk13.ProductTypePagedQueryResponse;
|
|
1343
|
+
product: _commercetools_platform_sdk13.ProductPagedQueryResponse;
|
|
1344
|
+
"quote-request": _commercetools_platform_sdk13.QuoteRequestPagedQueryResponse;
|
|
1345
|
+
quote: _commercetools_platform_sdk13.QuotePagedQueryResponse;
|
|
1346
|
+
review: _commercetools_platform_sdk13.ReviewPagedQueryResponse;
|
|
1347
|
+
"shipping-method": _commercetools_platform_sdk13.ShippingMethodPagedQueryResponse;
|
|
1348
|
+
"shopping-list": _commercetools_platform_sdk13.ShoppingListPagedQueryResponse;
|
|
1349
|
+
"staged-quote": _commercetools_platform_sdk13.StagedQuotePagedQueryResponse;
|
|
1350
|
+
"standalone-price": _commercetools_platform_sdk13.StandalonePricePagedQueryResponse;
|
|
1351
|
+
state: _commercetools_platform_sdk13.StatePagedQueryResponse;
|
|
1352
|
+
store: _commercetools_platform_sdk13.StorePagedQueryResponse;
|
|
1353
|
+
subscription: _commercetools_platform_sdk13.SubscriptionPagedQueryResponse;
|
|
1354
|
+
"recurring-order": _commercetools_platform_sdk13.RecurringOrderPagedQueryResponse;
|
|
1355
|
+
"recurrence-policy": _commercetools_platform_sdk13.RecurrencePolicyPagedQueryResponse;
|
|
1356
|
+
"tax-category": _commercetools_platform_sdk13.TaxCategoryPagedQueryResponse;
|
|
1357
|
+
type: _commercetools_platform_sdk13.TypePagedQueryResponse;
|
|
1358
|
+
zone: _commercetools_platform_sdk13.ZonePagedQueryResponse;
|
|
1359
1359
|
};
|
|
1360
1360
|
//#endregion
|
|
1361
1361
|
//#region src/storage/abstract.d.ts
|