@labdigital/commercetools-mock 2.63.0 → 2.64.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 +144 -135
- package/dist/index.mjs +34 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/orderSearch.ts +40 -0
- package/src/repositories/order/index.ts +17 -8
- package/src/services/order.ts +9 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import express from "express";
|
|
2
2
|
import * as msw0 from "msw";
|
|
3
3
|
import { SetupServer, SetupServerApi } from "msw/node";
|
|
4
|
-
import * as
|
|
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";
|
|
4
|
+
import * as _commercetools_platform_sdk0 from "@commercetools/platform-sdk";
|
|
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, OrderPagedSearchResponse, OrderSearchRequest, 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
|
|
8
8
|
type Token = {
|
|
@@ -94,8 +94,16 @@ declare class CartRepository extends AbstractResourceRepository<"cart"> {
|
|
|
94
94
|
createShippingInfo(context: RepositoryContext, resource: Writable<Cart>, shippingMethodRef: NonNullable<CartDraft["shippingMethod"]>): NonNullable<Cart["shippingInfo"]>;
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
|
+
//#region src/orderSearch.d.ts
|
|
98
|
+
declare class OrderSearch {
|
|
99
|
+
protected _storage: AbstractStorage;
|
|
100
|
+
constructor(config: Config);
|
|
101
|
+
search(projectKey: string, params: OrderSearchRequest): OrderPagedSearchResponse;
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
97
104
|
//#region src/repositories/order/index.d.ts
|
|
98
105
|
declare class OrderRepository extends AbstractResourceRepository<"order"> {
|
|
106
|
+
protected _searchService: OrderSearch;
|
|
99
107
|
constructor(config: Config);
|
|
100
108
|
create(context: RepositoryContext, draft: OrderFromCartDraft): Order;
|
|
101
109
|
createFromCart(context: RepositoryContext, cartReference: CartReference, orderNumber?: string): Order;
|
|
@@ -104,6 +112,7 @@ declare class OrderRepository extends AbstractResourceRepository<"order"> {
|
|
|
104
112
|
private customLineItemFromImportDraft;
|
|
105
113
|
getWithOrderNumber(context: RepositoryContext, orderNumber: string, params?: QueryParams$1): Order | undefined;
|
|
106
114
|
createShippingInfo(context: RepositoryContext, resource: Writable<Order>, shippingMethodRef: ShippingMethodReference): ShippingInfo;
|
|
115
|
+
search(context: RepositoryContext, searchRequest: OrderSearchRequest): OrderPagedSearchResponse;
|
|
107
116
|
}
|
|
108
117
|
//#endregion
|
|
109
118
|
//#region src/repositories/quote-request/index.d.ts
|
|
@@ -171,7 +180,7 @@ declare class CustomObjectRepository extends AbstractResourceRepository<"key-val
|
|
|
171
180
|
constructor(config: Config);
|
|
172
181
|
create(context: RepositoryContext, draft: Writable<CustomObjectDraft>): CustomObject;
|
|
173
182
|
getWithContainerAndKey(context: RepositoryContext, container: string, key: string): CustomObject | undefined;
|
|
174
|
-
queryWithContainer(context: RepositoryContext, container: string, params?: QueryParams$1):
|
|
183
|
+
queryWithContainer(context: RepositoryContext, container: string, params?: QueryParams$1): _commercetools_platform_sdk0.CustomObjectPagedQueryResponse;
|
|
175
184
|
}
|
|
176
185
|
//#endregion
|
|
177
186
|
//#region src/repositories/customer/index.d.ts
|
|
@@ -199,7 +208,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
199
208
|
anonymousId?: string | undefined;
|
|
200
209
|
attributedTo?: {
|
|
201
210
|
clientId?: string | undefined;
|
|
202
|
-
source:
|
|
211
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
203
212
|
} | undefined;
|
|
204
213
|
associate?: {
|
|
205
214
|
typeId: "customer";
|
|
@@ -218,7 +227,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
218
227
|
anonymousId?: string | undefined;
|
|
219
228
|
attributedTo?: {
|
|
220
229
|
clientId?: string | undefined;
|
|
221
|
-
source:
|
|
230
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
222
231
|
} | undefined;
|
|
223
232
|
associate?: {
|
|
224
233
|
typeId: "customer";
|
|
@@ -260,7 +269,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
260
269
|
anonymousId?: string | undefined;
|
|
261
270
|
attributedTo?: {
|
|
262
271
|
clientId?: string | undefined;
|
|
263
|
-
source:
|
|
272
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
264
273
|
} | undefined;
|
|
265
274
|
associate?: {
|
|
266
275
|
typeId: "customer";
|
|
@@ -279,7 +288,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
279
288
|
anonymousId?: string | undefined;
|
|
280
289
|
attributedTo?: {
|
|
281
290
|
clientId?: string | undefined;
|
|
282
|
-
source:
|
|
291
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
283
292
|
} | undefined;
|
|
284
293
|
associate?: {
|
|
285
294
|
typeId: "customer";
|
|
@@ -309,7 +318,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
309
318
|
anonymousId?: string | undefined;
|
|
310
319
|
attributedTo?: {
|
|
311
320
|
clientId?: string | undefined;
|
|
312
|
-
source:
|
|
321
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
313
322
|
} | undefined;
|
|
314
323
|
associate?: {
|
|
315
324
|
typeId: "customer";
|
|
@@ -328,7 +337,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
328
337
|
anonymousId?: string | undefined;
|
|
329
338
|
attributedTo?: {
|
|
330
339
|
clientId?: string | undefined;
|
|
331
|
-
source:
|
|
340
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
332
341
|
} | undefined;
|
|
333
342
|
associate?: {
|
|
334
343
|
typeId: "customer";
|
|
@@ -343,8 +352,8 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
343
352
|
description?: {
|
|
344
353
|
[x: string]: string;
|
|
345
354
|
} | undefined;
|
|
346
|
-
resourceTypeIds: WritableArray<
|
|
347
|
-
fieldDefinitions: WritableArray<
|
|
355
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk0.ResourceTypeId>;
|
|
356
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk0.FieldDefinition>;
|
|
348
357
|
} | undefined;
|
|
349
358
|
};
|
|
350
359
|
fields: {
|
|
@@ -353,7 +362,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
353
362
|
} | undefined;
|
|
354
363
|
} | undefined;
|
|
355
364
|
} | undefined;
|
|
356
|
-
customerGroupAssignments?: WritableArray<
|
|
365
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk0.CustomerGroupAssignment> | undefined;
|
|
357
366
|
custom?: {
|
|
358
367
|
type: {
|
|
359
368
|
typeId: "type";
|
|
@@ -374,7 +383,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
374
383
|
anonymousId?: string | undefined;
|
|
375
384
|
attributedTo?: {
|
|
376
385
|
clientId?: string | undefined;
|
|
377
|
-
source:
|
|
386
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
378
387
|
} | undefined;
|
|
379
388
|
associate?: {
|
|
380
389
|
typeId: "customer";
|
|
@@ -393,7 +402,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
393
402
|
anonymousId?: string | undefined;
|
|
394
403
|
attributedTo?: {
|
|
395
404
|
clientId?: string | undefined;
|
|
396
|
-
source:
|
|
405
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
397
406
|
} | undefined;
|
|
398
407
|
associate?: {
|
|
399
408
|
typeId: "customer";
|
|
@@ -408,8 +417,8 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
408
417
|
description?: {
|
|
409
418
|
[x: string]: string;
|
|
410
419
|
} | undefined;
|
|
411
|
-
resourceTypeIds: WritableArray<
|
|
412
|
-
fieldDefinitions: WritableArray<
|
|
420
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk0.ResourceTypeId>;
|
|
421
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk0.FieldDefinition>;
|
|
413
422
|
} | undefined;
|
|
414
423
|
};
|
|
415
424
|
fields: {
|
|
@@ -419,7 +428,7 @@ declare class CustomerRepository extends AbstractResourceRepository<"customer">
|
|
|
419
428
|
locale?: string | undefined;
|
|
420
429
|
salutation?: string | undefined;
|
|
421
430
|
stores: WritableArray<StoreKeyReference>;
|
|
422
|
-
authenticationMode:
|
|
431
|
+
authenticationMode: _commercetools_platform_sdk0.AuthenticationMode;
|
|
423
432
|
};
|
|
424
433
|
verifyEmailToken(context: RepositoryContext, id: string): CustomerToken;
|
|
425
434
|
private storeReferenceToStoreKeyReference;
|
|
@@ -477,7 +486,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
477
486
|
anonymousId?: string | undefined;
|
|
478
487
|
attributedTo?: {
|
|
479
488
|
clientId?: string | undefined;
|
|
480
|
-
source:
|
|
489
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
481
490
|
} | undefined;
|
|
482
491
|
associate?: {
|
|
483
492
|
typeId: "customer";
|
|
@@ -496,7 +505,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
496
505
|
anonymousId?: string | undefined;
|
|
497
506
|
attributedTo?: {
|
|
498
507
|
clientId?: string | undefined;
|
|
499
|
-
source:
|
|
508
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
500
509
|
} | undefined;
|
|
501
510
|
associate?: {
|
|
502
511
|
typeId: "customer";
|
|
@@ -513,7 +522,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
513
522
|
dateOfBirth?: string | undefined;
|
|
514
523
|
companyName?: string | undefined;
|
|
515
524
|
vatId?: string | undefined;
|
|
516
|
-
addresses: WritableArray<
|
|
525
|
+
addresses: WritableArray<_commercetools_platform_sdk0.Address>;
|
|
517
526
|
defaultShippingAddressId?: string | undefined;
|
|
518
527
|
shippingAddressIds?: WritableArray<string> | undefined;
|
|
519
528
|
defaultBillingAddressId?: string | undefined;
|
|
@@ -538,7 +547,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
538
547
|
anonymousId?: string | undefined;
|
|
539
548
|
attributedTo?: {
|
|
540
549
|
clientId?: string | undefined;
|
|
541
|
-
source:
|
|
550
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
542
551
|
} | undefined;
|
|
543
552
|
associate?: {
|
|
544
553
|
typeId: "customer";
|
|
@@ -557,7 +566,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
557
566
|
anonymousId?: string | undefined;
|
|
558
567
|
attributedTo?: {
|
|
559
568
|
clientId?: string | undefined;
|
|
560
|
-
source:
|
|
569
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
561
570
|
} | undefined;
|
|
562
571
|
associate?: {
|
|
563
572
|
typeId: "customer";
|
|
@@ -587,7 +596,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
587
596
|
anonymousId?: string | undefined;
|
|
588
597
|
attributedTo?: {
|
|
589
598
|
clientId?: string | undefined;
|
|
590
|
-
source:
|
|
599
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
591
600
|
} | undefined;
|
|
592
601
|
associate?: {
|
|
593
602
|
typeId: "customer";
|
|
@@ -606,7 +615,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
606
615
|
anonymousId?: string | undefined;
|
|
607
616
|
attributedTo?: {
|
|
608
617
|
clientId?: string | undefined;
|
|
609
|
-
source:
|
|
618
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
610
619
|
} | undefined;
|
|
611
620
|
associate?: {
|
|
612
621
|
typeId: "customer";
|
|
@@ -621,8 +630,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
621
630
|
description?: {
|
|
622
631
|
[x: string]: string;
|
|
623
632
|
} | undefined;
|
|
624
|
-
resourceTypeIds: WritableArray<
|
|
625
|
-
fieldDefinitions: WritableArray<
|
|
633
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk0.ResourceTypeId>;
|
|
634
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk0.FieldDefinition>;
|
|
626
635
|
} | undefined;
|
|
627
636
|
};
|
|
628
637
|
fields: {
|
|
@@ -631,7 +640,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
631
640
|
} | undefined;
|
|
632
641
|
} | undefined;
|
|
633
642
|
} | undefined;
|
|
634
|
-
customerGroupAssignments?: WritableArray<
|
|
643
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk0.CustomerGroupAssignment> | undefined;
|
|
635
644
|
custom?: {
|
|
636
645
|
type: {
|
|
637
646
|
typeId: "type";
|
|
@@ -652,7 +661,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
652
661
|
anonymousId?: string | undefined;
|
|
653
662
|
attributedTo?: {
|
|
654
663
|
clientId?: string | undefined;
|
|
655
|
-
source:
|
|
664
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
656
665
|
} | undefined;
|
|
657
666
|
associate?: {
|
|
658
667
|
typeId: "customer";
|
|
@@ -671,7 +680,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
671
680
|
anonymousId?: string | undefined;
|
|
672
681
|
attributedTo?: {
|
|
673
682
|
clientId?: string | undefined;
|
|
674
|
-
source:
|
|
683
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
675
684
|
} | undefined;
|
|
676
685
|
associate?: {
|
|
677
686
|
typeId: "customer";
|
|
@@ -686,8 +695,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
686
695
|
description?: {
|
|
687
696
|
[x: string]: string;
|
|
688
697
|
} | undefined;
|
|
689
|
-
resourceTypeIds: WritableArray<
|
|
690
|
-
fieldDefinitions: WritableArray<
|
|
698
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk0.ResourceTypeId>;
|
|
699
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk0.FieldDefinition>;
|
|
691
700
|
} | undefined;
|
|
692
701
|
};
|
|
693
702
|
fields: {
|
|
@@ -696,8 +705,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
696
705
|
} | undefined;
|
|
697
706
|
locale?: string | undefined;
|
|
698
707
|
salutation?: string | undefined;
|
|
699
|
-
stores: WritableArray<
|
|
700
|
-
authenticationMode:
|
|
708
|
+
stores: WritableArray<_commercetools_platform_sdk0.StoreKeyReference>;
|
|
709
|
+
authenticationMode: _commercetools_platform_sdk0.AuthenticationMode;
|
|
701
710
|
};
|
|
702
711
|
confirmEmail(context: RepositoryContext, resetPassword: MyCustomerEmailVerify): {
|
|
703
712
|
id: string;
|
|
@@ -718,7 +727,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
718
727
|
anonymousId?: string | undefined;
|
|
719
728
|
attributedTo?: {
|
|
720
729
|
clientId?: string | undefined;
|
|
721
|
-
source:
|
|
730
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
722
731
|
} | undefined;
|
|
723
732
|
associate?: {
|
|
724
733
|
typeId: "customer";
|
|
@@ -737,7 +746,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
737
746
|
anonymousId?: string | undefined;
|
|
738
747
|
attributedTo?: {
|
|
739
748
|
clientId?: string | undefined;
|
|
740
|
-
source:
|
|
749
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
741
750
|
} | undefined;
|
|
742
751
|
associate?: {
|
|
743
752
|
typeId: "customer";
|
|
@@ -754,7 +763,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
754
763
|
dateOfBirth?: string | undefined;
|
|
755
764
|
companyName?: string | undefined;
|
|
756
765
|
vatId?: string | undefined;
|
|
757
|
-
addresses: WritableArray<
|
|
766
|
+
addresses: WritableArray<_commercetools_platform_sdk0.Address>;
|
|
758
767
|
defaultShippingAddressId?: string | undefined;
|
|
759
768
|
shippingAddressIds?: WritableArray<string> | undefined;
|
|
760
769
|
defaultBillingAddressId?: string | undefined;
|
|
@@ -779,7 +788,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
779
788
|
anonymousId?: string | undefined;
|
|
780
789
|
attributedTo?: {
|
|
781
790
|
clientId?: string | undefined;
|
|
782
|
-
source:
|
|
791
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
783
792
|
} | undefined;
|
|
784
793
|
associate?: {
|
|
785
794
|
typeId: "customer";
|
|
@@ -798,7 +807,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
798
807
|
anonymousId?: string | undefined;
|
|
799
808
|
attributedTo?: {
|
|
800
809
|
clientId?: string | undefined;
|
|
801
|
-
source:
|
|
810
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
802
811
|
} | undefined;
|
|
803
812
|
associate?: {
|
|
804
813
|
typeId: "customer";
|
|
@@ -828,7 +837,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
828
837
|
anonymousId?: string | undefined;
|
|
829
838
|
attributedTo?: {
|
|
830
839
|
clientId?: string | undefined;
|
|
831
|
-
source:
|
|
840
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
832
841
|
} | undefined;
|
|
833
842
|
associate?: {
|
|
834
843
|
typeId: "customer";
|
|
@@ -847,7 +856,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
847
856
|
anonymousId?: string | undefined;
|
|
848
857
|
attributedTo?: {
|
|
849
858
|
clientId?: string | undefined;
|
|
850
|
-
source:
|
|
859
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
851
860
|
} | undefined;
|
|
852
861
|
associate?: {
|
|
853
862
|
typeId: "customer";
|
|
@@ -862,8 +871,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
862
871
|
description?: {
|
|
863
872
|
[x: string]: string;
|
|
864
873
|
} | undefined;
|
|
865
|
-
resourceTypeIds: WritableArray<
|
|
866
|
-
fieldDefinitions: WritableArray<
|
|
874
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk0.ResourceTypeId>;
|
|
875
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk0.FieldDefinition>;
|
|
867
876
|
} | undefined;
|
|
868
877
|
};
|
|
869
878
|
fields: {
|
|
@@ -872,7 +881,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
872
881
|
} | undefined;
|
|
873
882
|
} | undefined;
|
|
874
883
|
} | undefined;
|
|
875
|
-
customerGroupAssignments?: WritableArray<
|
|
884
|
+
customerGroupAssignments?: WritableArray<_commercetools_platform_sdk0.CustomerGroupAssignment> | undefined;
|
|
876
885
|
custom?: {
|
|
877
886
|
type: {
|
|
878
887
|
typeId: "type";
|
|
@@ -893,7 +902,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
893
902
|
anonymousId?: string | undefined;
|
|
894
903
|
attributedTo?: {
|
|
895
904
|
clientId?: string | undefined;
|
|
896
|
-
source:
|
|
905
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
897
906
|
} | undefined;
|
|
898
907
|
associate?: {
|
|
899
908
|
typeId: "customer";
|
|
@@ -912,7 +921,7 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
912
921
|
anonymousId?: string | undefined;
|
|
913
922
|
attributedTo?: {
|
|
914
923
|
clientId?: string | undefined;
|
|
915
|
-
source:
|
|
924
|
+
source: _commercetools_platform_sdk0.AttributionSource;
|
|
916
925
|
} | undefined;
|
|
917
926
|
associate?: {
|
|
918
927
|
typeId: "customer";
|
|
@@ -927,8 +936,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
927
936
|
description?: {
|
|
928
937
|
[x: string]: string;
|
|
929
938
|
} | undefined;
|
|
930
|
-
resourceTypeIds: WritableArray<
|
|
931
|
-
fieldDefinitions: WritableArray<
|
|
939
|
+
resourceTypeIds: WritableArray<_commercetools_platform_sdk0.ResourceTypeId>;
|
|
940
|
+
fieldDefinitions: WritableArray<_commercetools_platform_sdk0.FieldDefinition>;
|
|
932
941
|
} | undefined;
|
|
933
942
|
};
|
|
934
943
|
fields: {
|
|
@@ -937,8 +946,8 @@ declare class MyCustomerRepository extends CustomerRepository {
|
|
|
937
946
|
} | undefined;
|
|
938
947
|
locale?: string | undefined;
|
|
939
948
|
salutation?: string | undefined;
|
|
940
|
-
stores: WritableArray<
|
|
941
|
-
authenticationMode:
|
|
949
|
+
stores: WritableArray<_commercetools_platform_sdk0.StoreKeyReference>;
|
|
950
|
+
authenticationMode: _commercetools_platform_sdk0.AuthenticationMode;
|
|
942
951
|
};
|
|
943
952
|
deleteMe(context: RepositoryContext): Customer | undefined;
|
|
944
953
|
getMe(context: RepositoryContext): Customer | undefined;
|
|
@@ -1078,7 +1087,7 @@ declare class ProductProjectionRepository extends AbstractResourceRepository<"pr
|
|
|
1078
1087
|
limit: number;
|
|
1079
1088
|
results: ProductProjection[];
|
|
1080
1089
|
};
|
|
1081
|
-
search(context: RepositoryContext, query: ProductProjectionQueryParams):
|
|
1090
|
+
search(context: RepositoryContext, query: ProductProjectionQueryParams): _commercetools_platform_sdk0.ProductProjectionPagedSearchResponse;
|
|
1082
1091
|
}
|
|
1083
1092
|
//#endregion
|
|
1084
1093
|
//#region src/repositories/product-selection.d.ts
|
|
@@ -1140,24 +1149,24 @@ declare class ShippingMethodRepository extends AbstractResourceRepository<"shipp
|
|
|
1140
1149
|
results: {
|
|
1141
1150
|
zoneRates: {
|
|
1142
1151
|
zone: ZoneReference;
|
|
1143
|
-
shippingRates:
|
|
1152
|
+
shippingRates: _commercetools_platform_sdk0.ShippingRate[];
|
|
1144
1153
|
}[];
|
|
1145
1154
|
id: string;
|
|
1146
1155
|
version: number;
|
|
1147
1156
|
createdAt: string;
|
|
1148
1157
|
lastModifiedAt: string;
|
|
1149
|
-
lastModifiedBy?:
|
|
1150
|
-
createdBy?:
|
|
1158
|
+
lastModifiedBy?: _commercetools_platform_sdk0.LastModifiedBy;
|
|
1159
|
+
createdBy?: _commercetools_platform_sdk0.CreatedBy;
|
|
1151
1160
|
key?: string;
|
|
1152
1161
|
name: string;
|
|
1153
|
-
localizedName?:
|
|
1162
|
+
localizedName?: _commercetools_platform_sdk0.LocalizedString;
|
|
1154
1163
|
description?: string;
|
|
1155
|
-
localizedDescription?:
|
|
1156
|
-
taxCategory:
|
|
1164
|
+
localizedDescription?: _commercetools_platform_sdk0.LocalizedString;
|
|
1165
|
+
taxCategory: _commercetools_platform_sdk0.TaxCategoryReference;
|
|
1157
1166
|
active: boolean;
|
|
1158
1167
|
isDefault: boolean;
|
|
1159
1168
|
predicate?: string;
|
|
1160
|
-
custom?:
|
|
1169
|
+
custom?: _commercetools_platform_sdk0.CustomFields;
|
|
1161
1170
|
}[];
|
|
1162
1171
|
limit?: number;
|
|
1163
1172
|
count: number;
|
|
@@ -1272,90 +1281,90 @@ interface WritableArray<T> extends Array<Writable<T>> {}
|
|
|
1272
1281
|
type ShallowWritable<T> = { -readonly [P in keyof T]: T[P] };
|
|
1273
1282
|
type ResourceType = keyof ResourceMap & keyof RepositoryMap;
|
|
1274
1283
|
type ResourceMap = {
|
|
1275
|
-
"attribute-group":
|
|
1276
|
-
"associate-role":
|
|
1277
|
-
"business-unit":
|
|
1278
|
-
"cart-discount":
|
|
1279
|
-
cart:
|
|
1280
|
-
category:
|
|
1281
|
-
channel:
|
|
1284
|
+
"attribute-group": _commercetools_platform_sdk0.AttributeGroup;
|
|
1285
|
+
"associate-role": _commercetools_platform_sdk0.AssociateRole;
|
|
1286
|
+
"business-unit": _commercetools_platform_sdk0.BusinessUnit;
|
|
1287
|
+
"cart-discount": _commercetools_platform_sdk0.CartDiscount;
|
|
1288
|
+
cart: _commercetools_platform_sdk0.Cart;
|
|
1289
|
+
category: _commercetools_platform_sdk0.Category;
|
|
1290
|
+
channel: _commercetools_platform_sdk0.Channel;
|
|
1282
1291
|
"customer-email-token": never;
|
|
1283
|
-
"customer-group":
|
|
1292
|
+
"customer-group": _commercetools_platform_sdk0.CustomerGroup;
|
|
1284
1293
|
"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:
|
|
1294
|
+
customer: _commercetools_platform_sdk0.Customer;
|
|
1295
|
+
"discount-code": _commercetools_platform_sdk0.DiscountCode;
|
|
1296
|
+
"discount-group": _commercetools_platform_sdk0.DiscountGroup;
|
|
1297
|
+
extension: _commercetools_platform_sdk0.Extension;
|
|
1298
|
+
"inventory-entry": _commercetools_platform_sdk0.InventoryEntry;
|
|
1299
|
+
"key-value-document": _commercetools_platform_sdk0.CustomObject;
|
|
1300
|
+
"order-edit": _commercetools_platform_sdk0.OrderEdit;
|
|
1301
|
+
order: _commercetools_platform_sdk0.Order;
|
|
1302
|
+
payment: _commercetools_platform_sdk0.Payment;
|
|
1303
|
+
"product-discount": _commercetools_platform_sdk0.ProductDiscount;
|
|
1304
|
+
"product-price": _commercetools_platform_sdk0.StandalonePrice;
|
|
1305
|
+
"product-projection": _commercetools_platform_sdk0.ProductProjection;
|
|
1306
|
+
"product-selection": _commercetools_platform_sdk0.ProductSelection;
|
|
1307
|
+
"product-tailoring": _commercetools_platform_sdk0.ProductTailoring;
|
|
1308
|
+
"product-type": _commercetools_platform_sdk0.ProductType;
|
|
1309
|
+
product: _commercetools_platform_sdk0.Product;
|
|
1310
|
+
"quote-request": _commercetools_platform_sdk0.QuoteRequest;
|
|
1311
|
+
quote: _commercetools_platform_sdk0.Quote;
|
|
1312
|
+
review: _commercetools_platform_sdk0.Review;
|
|
1313
|
+
"shipping-method": _commercetools_platform_sdk0.ShippingMethod;
|
|
1314
|
+
"shopping-list": _commercetools_platform_sdk0.ShoppingList;
|
|
1315
|
+
"staged-quote": _commercetools_platform_sdk0.StagedQuote;
|
|
1316
|
+
"standalone-price": _commercetools_platform_sdk0.StandalonePrice;
|
|
1317
|
+
state: _commercetools_platform_sdk0.State;
|
|
1318
|
+
store: _commercetools_platform_sdk0.Store;
|
|
1319
|
+
subscription: _commercetools_platform_sdk0.Subscription;
|
|
1320
|
+
"recurring-order": _commercetools_platform_sdk0.RecurringOrder;
|
|
1321
|
+
"recurrence-policy": _commercetools_platform_sdk0.RecurrencePolicy;
|
|
1322
|
+
"tax-category": _commercetools_platform_sdk0.TaxCategory;
|
|
1323
|
+
type: _commercetools_platform_sdk0.Type;
|
|
1324
|
+
zone: _commercetools_platform_sdk0.Zone;
|
|
1316
1325
|
};
|
|
1317
1326
|
type PagedQueryResponseMap = {
|
|
1318
|
-
"attribute-group":
|
|
1319
|
-
"associate-role":
|
|
1320
|
-
"business-unit":
|
|
1321
|
-
"cart-discount":
|
|
1322
|
-
cart:
|
|
1323
|
-
category:
|
|
1324
|
-
channel:
|
|
1327
|
+
"attribute-group": _commercetools_platform_sdk0.AttributeGroupPagedQueryResponse;
|
|
1328
|
+
"associate-role": _commercetools_platform_sdk0.AssociateRolePagedQueryResponse;
|
|
1329
|
+
"business-unit": _commercetools_platform_sdk0.BusinessUnitPagedQueryResponse;
|
|
1330
|
+
"cart-discount": _commercetools_platform_sdk0.CartDiscountPagedQueryResponse;
|
|
1331
|
+
cart: _commercetools_platform_sdk0.CartPagedQueryResponse;
|
|
1332
|
+
category: _commercetools_platform_sdk0.CategoryPagedQueryResponse;
|
|
1333
|
+
channel: _commercetools_platform_sdk0.ChannelPagedQueryResponse;
|
|
1325
1334
|
"customer-email-token": never;
|
|
1326
|
-
"customer-group":
|
|
1335
|
+
"customer-group": _commercetools_platform_sdk0.CustomerGroupPagedQueryResponse;
|
|
1327
1336
|
"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:
|
|
1337
|
+
customer: _commercetools_platform_sdk0.CustomerPagedQueryResponse;
|
|
1338
|
+
"discount-code": _commercetools_platform_sdk0.DiscountCodePagedQueryResponse;
|
|
1339
|
+
"discount-group": _commercetools_platform_sdk0.DiscountGroupPagedQueryResponse;
|
|
1340
|
+
extension: _commercetools_platform_sdk0.ExtensionPagedQueryResponse;
|
|
1341
|
+
"inventory-entry": _commercetools_platform_sdk0.InventoryPagedQueryResponse;
|
|
1342
|
+
"key-value-document": _commercetools_platform_sdk0.CustomObjectPagedQueryResponse;
|
|
1343
|
+
"order-edit": _commercetools_platform_sdk0.OrderEditPagedQueryResponse;
|
|
1344
|
+
order: _commercetools_platform_sdk0.OrderPagedQueryResponse;
|
|
1345
|
+
payment: _commercetools_platform_sdk0.PaymentPagedQueryResponse;
|
|
1346
|
+
"product-discount": _commercetools_platform_sdk0.ProductDiscountPagedQueryResponse;
|
|
1347
|
+
"product-price": _commercetools_platform_sdk0.StandalonePricePagedQueryResponse;
|
|
1348
|
+
"product-projection": _commercetools_platform_sdk0.ProductProjectionPagedQueryResponse;
|
|
1349
|
+
"product-selection": _commercetools_platform_sdk0.ProductSelectionPagedQueryResponse;
|
|
1350
|
+
"product-tailoring": _commercetools_platform_sdk0.ProductTailoringPagedQueryResponse;
|
|
1351
|
+
"product-type": _commercetools_platform_sdk0.ProductTypePagedQueryResponse;
|
|
1352
|
+
product: _commercetools_platform_sdk0.ProductPagedQueryResponse;
|
|
1353
|
+
"quote-request": _commercetools_platform_sdk0.QuoteRequestPagedQueryResponse;
|
|
1354
|
+
quote: _commercetools_platform_sdk0.QuotePagedQueryResponse;
|
|
1355
|
+
review: _commercetools_platform_sdk0.ReviewPagedQueryResponse;
|
|
1356
|
+
"shipping-method": _commercetools_platform_sdk0.ShippingMethodPagedQueryResponse;
|
|
1357
|
+
"shopping-list": _commercetools_platform_sdk0.ShoppingListPagedQueryResponse;
|
|
1358
|
+
"staged-quote": _commercetools_platform_sdk0.StagedQuotePagedQueryResponse;
|
|
1359
|
+
"standalone-price": _commercetools_platform_sdk0.StandalonePricePagedQueryResponse;
|
|
1360
|
+
state: _commercetools_platform_sdk0.StatePagedQueryResponse;
|
|
1361
|
+
store: _commercetools_platform_sdk0.StorePagedQueryResponse;
|
|
1362
|
+
subscription: _commercetools_platform_sdk0.SubscriptionPagedQueryResponse;
|
|
1363
|
+
"recurring-order": _commercetools_platform_sdk0.RecurringOrderPagedQueryResponse;
|
|
1364
|
+
"recurrence-policy": _commercetools_platform_sdk0.RecurrencePolicyPagedQueryResponse;
|
|
1365
|
+
"tax-category": _commercetools_platform_sdk0.TaxCategoryPagedQueryResponse;
|
|
1366
|
+
type: _commercetools_platform_sdk0.TypePagedQueryResponse;
|
|
1367
|
+
zone: _commercetools_platform_sdk0.ZonePagedQueryResponse;
|
|
1359
1368
|
};
|
|
1360
1369
|
//#endregion
|
|
1361
1370
|
//#region src/storage/abstract.d.ts
|