@wix/auto_sdk_ecom_discount-rules 1.0.44 → 1.0.46

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.
@@ -220,6 +220,61 @@ interface ItemQuantityRange {
220
220
  */
221
221
  to?: number | null;
222
222
  }
223
+ interface CustomerEligibility extends CustomerEligibilityOptionsOneOf {
224
+ /** Information about specific customers. */
225
+ individualContactsInfo?: IndividualContacts;
226
+ }
227
+ /** @oneof */
228
+ interface CustomerEligibilityOptionsOneOf {
229
+ /** Information about specific customers. */
230
+ individualContactsInfo?: IndividualContacts;
231
+ }
232
+ declare enum EligibilityType {
233
+ /** Eligibility type is not defined. */
234
+ UNKNOWN_ELIGIBILITY_TYPE = "UNKNOWN_ELIGIBILITY_TYPE",
235
+ /** Only specific customers based on contact id. */
236
+ INDIVIDUAL_CONTACTS = "INDIVIDUAL_CONTACTS"
237
+ }
238
+ /** @enumType */
239
+ type EligibilityTypeWithLiterals = EligibilityType | 'UNKNOWN_ELIGIBILITY_TYPE' | 'INDIVIDUAL_CONTACTS';
240
+ interface IndividualContacts {
241
+ /**
242
+ * Eligible contact ids.
243
+ * @format GUID
244
+ * @minSize 1
245
+ * @maxSize 20
246
+ */
247
+ contactIds?: string[];
248
+ }
249
+ interface ContactSegments {
250
+ /**
251
+ * Eligible segment ids.
252
+ * @format GUID
253
+ * @minSize 1
254
+ * @maxSize 20
255
+ */
256
+ segmentIds?: string[];
257
+ }
258
+ interface ContactTags {
259
+ /**
260
+ * Eligible tag and label ids.
261
+ * @minSize 1
262
+ * @maxSize 20
263
+ */
264
+ tagReferences?: TagReference[];
265
+ }
266
+ interface TagReference {
267
+ /**
268
+ * Eligible tag id.
269
+ * @maxLength 5
270
+ */
271
+ tagId?: string;
272
+ /**
273
+ * Eligible label id.
274
+ * @maxLength 80
275
+ */
276
+ labelKey?: string;
277
+ }
223
278
  declare enum TriggerType {
224
279
  UNDEFINED = "UNDEFINED",
225
280
  /** Operator used for chaining multiple triggers. Currently 1 `AND` chain operator is supported. */
@@ -241,6 +296,57 @@ interface ActiveTimeInfo {
241
296
  /** Date and time the discount rule is active **till**, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
242
297
  end?: Date | null;
243
298
  }
299
+ interface Recurrence {
300
+ /** Weekly discount recurrence. */
301
+ weeklySchedule?: WeeklySchedule;
302
+ }
303
+ declare enum DayOfWeek {
304
+ UNKOWN_DAY_OF_WEEK = "UNKOWN_DAY_OF_WEEK",
305
+ /** Monday. */
306
+ MON = "MON",
307
+ /** Tuesday. */
308
+ TUE = "TUE",
309
+ /** Wednesday. */
310
+ WED = "WED",
311
+ /** Thursday. */
312
+ THU = "THU",
313
+ /** Friday. */
314
+ FRI = "FRI",
315
+ /** Saturday. */
316
+ SAT = "SAT",
317
+ /** Sunday. */
318
+ SUN = "SUN"
319
+ }
320
+ /** @enumType */
321
+ type DayOfWeekWithLiterals = DayOfWeek | 'UNKOWN_DAY_OF_WEEK' | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
322
+ interface TimeOfDay {
323
+ /**
324
+ * Hours. Min: `0`. Max: `23`.
325
+ * @max 23
326
+ */
327
+ hours?: number;
328
+ /**
329
+ * Minutes. Min: `0`. Max: `59`.
330
+ * @max 59
331
+ */
332
+ minutes?: number;
333
+ }
334
+ interface TimeWindow {
335
+ /** Day of week. */
336
+ dayOfWeek?: DayOfWeekWithLiterals;
337
+ /** Start time window during each recurrence. */
338
+ startTime?: TimeOfDay;
339
+ /** End time window during each recurrence. */
340
+ endTime?: TimeOfDay;
341
+ }
342
+ interface WeeklySchedule {
343
+ /**
344
+ * A list of days with their respective active time ranges.
345
+ * @minSize 1
346
+ * @maxSize 100
347
+ */
348
+ timeWindows?: TimeWindow[];
349
+ }
244
350
  interface Discounts {
245
351
  /**
246
352
  * Discounts.
@@ -312,6 +418,33 @@ interface SpecificItemsInfo {
312
418
  */
313
419
  scopes?: Scope[];
314
420
  }
421
+ /** A special price is applied for a specific quantity of items. For example, 3 for $10. */
422
+ interface QuantityBased {
423
+ /**
424
+ * list of discountConfig options.
425
+ * @minSize 1
426
+ * @maxSize 1
427
+ */
428
+ configurations?: DiscountConfig[];
429
+ }
430
+ interface DiscountConfig {
431
+ /**
432
+ * DiscountConfig ID.
433
+ * @format GUID
434
+ * @readonly
435
+ */
436
+ id?: string | null;
437
+ /**
438
+ * The number of items that must be added to the cart to be eligible for the discount (Represents X).
439
+ * @min 2
440
+ */
441
+ quantity?: number;
442
+ /**
443
+ * The DiscountConfig price (Represents Amount).
444
+ * @decimalValue options { gte:0, lte:1000000, maxScale:4 }
445
+ */
446
+ price?: string;
447
+ }
315
448
  declare enum DiscountType {
316
449
  UNDEFINED = "UNDEFINED",
317
450
  /** Price is reduced by percentage value. */
@@ -323,6 +456,65 @@ declare enum DiscountType {
323
456
  }
324
457
  /** @enumType */
325
458
  type DiscountTypeWithLiterals = DiscountType | 'UNDEFINED' | 'PERCENTAGE' | 'FIXED_AMOUNT' | 'FIXED_PRICE';
459
+ interface BuyXGetYInfo {
460
+ /** Information about which items must be in the cart (buy X) for the discount to apply (get Y). */
461
+ customerBuys?: CustomerBuy;
462
+ /** Information about which items will be discounted (get Y). */
463
+ customerGets?: CustomerGet;
464
+ /**
465
+ * The maximum number of times the 'buy X get Y' discount can be applied.
466
+ * For example, when the value of `limit` is `2`, with a "2+1" sale on all items, the following logic applies:
467
+ * + Buy 2 get 1, buy 3 get 1.
468
+ * + Buy 4 get 2, buy 6 get 2, buy 9 get 2, and so on.
469
+ * @min 1
470
+ */
471
+ limit?: number | null;
472
+ }
473
+ interface CustomerBuy extends CustomerBuyConditionOneOf {
474
+ /**
475
+ * Minimum number of items the customer must add to the cart to be eligible for a discount.
476
+ * @min 1
477
+ */
478
+ minimumQuantity?: number;
479
+ /**
480
+ * Minimum price the customer must add to the cart to be eligible for a discount.
481
+ * @decimalValue options { gte:0, lte:1000000000000000 }
482
+ */
483
+ minimumSpend?: string | null;
484
+ /**
485
+ * Scopes of the items that must be added to the cart to enable the discount.
486
+ * @minSize 1
487
+ * @maxSize 50
488
+ */
489
+ scopes?: Scope[];
490
+ }
491
+ /** @oneof */
492
+ interface CustomerBuyConditionOneOf {
493
+ /**
494
+ * Minimum number of items the customer must add to the cart to be eligible for a discount.
495
+ * @min 1
496
+ */
497
+ minimumQuantity?: number;
498
+ /**
499
+ * Minimum price the customer must add to the cart to be eligible for a discount.
500
+ * @decimalValue options { gte:0, lte:1000000000000000 }
501
+ */
502
+ minimumSpend?: string | null;
503
+ }
504
+ interface CustomerGet {
505
+ /**
506
+ * Exact number of items in the cart that will be discounted.
507
+ * If the cart contains fewer items than the value of quantity, the discount will not apply.
508
+ * @min 1
509
+ */
510
+ quantity?: number;
511
+ /**
512
+ * Scopes of the items that will be discounted.
513
+ * @minSize 1
514
+ * @maxSize 50
515
+ */
516
+ scopes?: Scope[];
517
+ }
326
518
  declare enum Status {
327
519
  /** Rule status is not defined. */
328
520
  UNDEFINED = "UNDEFINED",
@@ -335,6 +527,51 @@ declare enum Status {
335
527
  }
336
528
  /** @enumType */
337
529
  type StatusWithLiterals = Status | 'UNDEFINED' | 'LIVE' | 'EXPIRED' | 'PENDING';
530
+ /** The discount settings */
531
+ interface DiscountSettings {
532
+ /** Discount applies to either `ALL_ITEMS`, or to the `LOWEST_PRICED_ITEM`. */
533
+ appliesTo?: AppliedSubjectTypeWithLiterals;
534
+ /**
535
+ * Whether the discount will apply to subscriptions.
536
+ *
537
+ * Default: `false`
538
+ */
539
+ includeSubscription?: boolean | null;
540
+ /**
541
+ * Maximum total number of uses allowed for the discount rule.
542
+ * @min 1
543
+ * @max 2147483646
544
+ */
545
+ usageLimit?: number | null;
546
+ /**
547
+ * The usage limit per user per discount.
548
+ * When not provided, this setting will not apply.
549
+ * @min 1
550
+ * @max 2147483646
551
+ */
552
+ usageLimitPerUser?: number | null;
553
+ }
554
+ /** TODO: check if can be removed */
555
+ declare enum AppliedSubjectType {
556
+ UNDEFINED = "UNDEFINED",
557
+ /** Discount applies to all items at checkout. */
558
+ ALL_ITEMS = "ALL_ITEMS",
559
+ /** Discount applies to the lowest priced item at checkout. */
560
+ LOWEST_PRICED_ITEM = "LOWEST_PRICED_ITEM"
561
+ }
562
+ /** @enumType */
563
+ type AppliedSubjectTypeWithLiterals = AppliedSubjectType | 'UNDEFINED' | 'ALL_ITEMS' | 'LOWEST_PRICED_ITEM';
564
+ interface ExtendedFields {
565
+ /**
566
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
567
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
568
+ *
569
+ * You can only access fields for which you have the appropriate permissions.
570
+ *
571
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
572
+ */
573
+ namespaces?: Record<string, Record<string, any>>;
574
+ }
338
575
  interface CreateDiscountRuleRequest {
339
576
  /** Discount rule info. */
340
577
  discountRule: DiscountRule;
@@ -459,6 +696,352 @@ interface Cursors {
459
696
  */
460
697
  prev?: string | null;
461
698
  }
699
+ interface GetAppliedDiscountsRequest {
700
+ /**
701
+ * Line items for which to check for discount rules.
702
+ * @maxSize 1000
703
+ */
704
+ lineItems?: LineItem[];
705
+ /**
706
+ * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
707
+ * @format GUID
708
+ */
709
+ purchaseFlowId?: string | null;
710
+ /** Buyer Information */
711
+ buyerInfo?: BuyerInfo;
712
+ /** Shipping information. */
713
+ shippingInfo?: ShippingInfo;
714
+ }
715
+ interface LineItem {
716
+ /**
717
+ * Line item ID.
718
+ * @minLength 1
719
+ * @maxLength 100
720
+ */
721
+ id?: string;
722
+ /**
723
+ * Line item quantity.
724
+ * @max 100000
725
+ */
726
+ quantity?: number | null;
727
+ /** Catalog and item reference info. Learn more about [integrating Wix Stores products with Wix eCommerce](https://dev.wix.com/api/rest/wix-stores/catalog/ecommerce-integration). */
728
+ catalogReference?: CatalogReference;
729
+ /**
730
+ * Line item price.
731
+ * @decimalValue options { gte:0 }
732
+ */
733
+ price?: string;
734
+ }
735
+ /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
736
+ interface CatalogReference {
737
+ /**
738
+ * ID of the item within the catalog it belongs to.
739
+ * @minLength 1
740
+ * @maxLength 36
741
+ */
742
+ catalogItemId?: string;
743
+ /**
744
+ * ID of the app providing the catalog.
745
+ *
746
+ * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
747
+ *
748
+ * For items from Wix catalogs, the following values always apply:
749
+ * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
750
+ * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
751
+ * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
752
+ * @minLength 1
753
+ */
754
+ appId?: string;
755
+ /**
756
+ * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
757
+ *
758
+ * For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).
759
+ */
760
+ options?: Record<string, any> | null;
761
+ }
762
+ interface BuyerInfo {
763
+ /**
764
+ * Contact id of the customer.
765
+ * @format GUID
766
+ */
767
+ contactId?: string | null;
768
+ /**
769
+ * Email of the customer.
770
+ * @format EMAIL
771
+ */
772
+ buyerEmail?: string | null;
773
+ }
774
+ interface ShippingInfo {
775
+ /** Address (if applicable). */
776
+ address?: Address;
777
+ /**
778
+ * Preferred shipping option code. For example, "usps_std_overnight".
779
+ * @minLength 1
780
+ * @maxLength 100
781
+ */
782
+ preferredShippingOptionCode?: string | null;
783
+ }
784
+ interface Address {
785
+ /**
786
+ * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
787
+ * @format COUNTRY
788
+ */
789
+ country?: string | null;
790
+ /**
791
+ * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
792
+ * @maxLength 50
793
+ */
794
+ subdivision?: string | null;
795
+ /**
796
+ * City name.
797
+ * @maxLength 50
798
+ */
799
+ city?: string | null;
800
+ }
801
+ interface GetAppliedDiscountsResponse {
802
+ /** All eligible discounts. */
803
+ appliedDiscounts?: AppliedDiscount[];
804
+ }
805
+ interface AppliedDiscount {
806
+ /** Discount type. */
807
+ discountType?: TypeWithLiterals;
808
+ /**
809
+ * IDs of line items the discount applies to, in GUID format.
810
+ * @format GUID
811
+ * @maxSize 1000
812
+ */
813
+ lineItemIds?: string[];
814
+ /** Applied discount rule. */
815
+ appliedDiscountRule?: AppliedDiscountRule;
816
+ }
817
+ interface AppliedDiscountRule {
818
+ /**
819
+ * Applied discount rule ID.
820
+ * @format GUID
821
+ */
822
+ id?: string;
823
+ /** Discount rule name. */
824
+ name?: DiscountRuleName;
825
+ /** Total amount reduced from all discounted line items. */
826
+ amount?: MultiCurrencyPrice;
827
+ /** Discount rule type. */
828
+ discountRuleType?: DiscountTypeWithLiterals;
829
+ }
830
+ interface DiscountRuleName {
831
+ /**
832
+ * Original discount rule name (in site's default language).
833
+ * @minLength 1
834
+ * @maxLength 256
835
+ */
836
+ original?: string;
837
+ /**
838
+ * Translated discount rule name according to buyer language.
839
+ *
840
+ * Default: `original`
841
+ * @minLength 1
842
+ * @maxLength 500
843
+ */
844
+ translated?: string | null;
845
+ }
846
+ interface MultiCurrencyPrice {
847
+ /**
848
+ * Amount.
849
+ * @decimalValue options { gte:0, lte:1000000000000000 }
850
+ */
851
+ amount?: string;
852
+ /**
853
+ * Converted amount.
854
+ * @readonly
855
+ * @decimalValue options { gte:0, lte:1000000000000000 }
856
+ */
857
+ convertedAmount?: string;
858
+ /**
859
+ * Amount formatted with currency symbol.
860
+ * @readonly
861
+ */
862
+ formattedAmount?: string;
863
+ /**
864
+ * Converted amount formatted with currency symbol.
865
+ * @readonly
866
+ */
867
+ formattedConvertedAmount?: string;
868
+ }
869
+ interface DomainEvent extends DomainEventBodyOneOf {
870
+ createdEvent?: EntityCreatedEvent;
871
+ updatedEvent?: EntityUpdatedEvent;
872
+ deletedEvent?: EntityDeletedEvent;
873
+ actionEvent?: ActionEvent;
874
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
875
+ id?: string;
876
+ /**
877
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
878
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
879
+ */
880
+ entityFqdn?: string;
881
+ /**
882
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
883
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
884
+ */
885
+ slug?: string;
886
+ /** ID of the entity associated with the event. */
887
+ entityId?: string;
888
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
889
+ eventTime?: Date | null;
890
+ /**
891
+ * Whether the event was triggered as a result of a privacy regulation application
892
+ * (for example, GDPR).
893
+ */
894
+ triggeredByAnonymizeRequest?: boolean | null;
895
+ /** If present, indicates the action that triggered the event. */
896
+ originatedFrom?: string | null;
897
+ /**
898
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
899
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
900
+ */
901
+ entityEventSequence?: string | null;
902
+ }
903
+ /** @oneof */
904
+ interface DomainEventBodyOneOf {
905
+ createdEvent?: EntityCreatedEvent;
906
+ updatedEvent?: EntityUpdatedEvent;
907
+ deletedEvent?: EntityDeletedEvent;
908
+ actionEvent?: ActionEvent;
909
+ }
910
+ interface EntityCreatedEvent {
911
+ entityAsJson?: string;
912
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
913
+ restoreInfo?: RestoreInfo;
914
+ }
915
+ interface RestoreInfo {
916
+ deletedDate?: Date | null;
917
+ }
918
+ interface EntityUpdatedEvent {
919
+ /**
920
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
921
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
922
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
923
+ */
924
+ currentEntityAsJson?: string;
925
+ }
926
+ interface EntityDeletedEvent {
927
+ /** Entity that was deleted. */
928
+ deletedEntityAsJson?: string | null;
929
+ }
930
+ interface ActionEvent {
931
+ bodyAsJson?: string;
932
+ }
933
+ interface Empty {
934
+ }
935
+ interface DiscountRuleUsageLimitReached {
936
+ /** Discount Rule */
937
+ rule?: DiscountRule;
938
+ }
939
+ interface MessageEnvelope {
940
+ /**
941
+ * App instance ID.
942
+ * @format GUID
943
+ */
944
+ instanceId?: string | null;
945
+ /**
946
+ * Event type.
947
+ * @maxLength 150
948
+ */
949
+ eventType?: string;
950
+ /** The identification type and identity data. */
951
+ identity?: IdentificationData;
952
+ /** Stringify payload. */
953
+ data?: string;
954
+ }
955
+ interface IdentificationData extends IdentificationDataIdOneOf {
956
+ /**
957
+ * ID of a site visitor that has not logged in to the site.
958
+ * @format GUID
959
+ */
960
+ anonymousVisitorId?: string;
961
+ /**
962
+ * ID of a site visitor that has logged in to the site.
963
+ * @format GUID
964
+ */
965
+ memberId?: string;
966
+ /**
967
+ * ID of a Wix user (site owner, contributor, etc.).
968
+ * @format GUID
969
+ */
970
+ wixUserId?: string;
971
+ /**
972
+ * ID of an app.
973
+ * @format GUID
974
+ */
975
+ appId?: string;
976
+ /** @readonly */
977
+ identityType?: WebhookIdentityTypeWithLiterals;
978
+ }
979
+ /** @oneof */
980
+ interface IdentificationDataIdOneOf {
981
+ /**
982
+ * ID of a site visitor that has not logged in to the site.
983
+ * @format GUID
984
+ */
985
+ anonymousVisitorId?: string;
986
+ /**
987
+ * ID of a site visitor that has logged in to the site.
988
+ * @format GUID
989
+ */
990
+ memberId?: string;
991
+ /**
992
+ * ID of a Wix user (site owner, contributor, etc.).
993
+ * @format GUID
994
+ */
995
+ wixUserId?: string;
996
+ /**
997
+ * ID of an app.
998
+ * @format GUID
999
+ */
1000
+ appId?: string;
1001
+ }
1002
+ declare enum WebhookIdentityType {
1003
+ UNKNOWN = "UNKNOWN",
1004
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1005
+ MEMBER = "MEMBER",
1006
+ WIX_USER = "WIX_USER",
1007
+ APP = "APP"
1008
+ }
1009
+ /** @enumType */
1010
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1011
+ /** @docsIgnore */
1012
+ type CreateDiscountRuleApplicationErrors = {
1013
+ code?: 'MAX_DISCOUNT_RULES_REACHED';
1014
+ description?: string;
1015
+ data?: Record<string, any>;
1016
+ };
1017
+ /** @docsIgnore */
1018
+ type CreateDiscountRuleValidationErrors = {
1019
+ ruleName?: 'INVALID_ACTIVE_TIME_RANGE';
1020
+ } | {
1021
+ ruleName?: 'INVALID_EMPTY_DISCOUNT';
1022
+ } | {
1023
+ ruleName?: 'INVALID_DISCOUNT_TYPE';
1024
+ } | {
1025
+ ruleName?: 'MISSING_SUBTOTAL_RANGE';
1026
+ } | {
1027
+ ruleName?: 'MISSING_ITEM_QUANTITY_RANGE';
1028
+ } | {
1029
+ ruleName?: 'INVALID_SUBTOTAL_RANGE';
1030
+ } | {
1031
+ ruleName?: 'INVALID_ITEM_QUANTITY_RANGE';
1032
+ } | {
1033
+ ruleName?: 'INVALID_TARGET_TYPE_FIELD';
1034
+ } | {
1035
+ ruleName?: 'OPERATOR_TOO_DEEPLY_NESTED';
1036
+ } | {
1037
+ ruleName?: 'INVALID_SCOPE_TYPE';
1038
+ } | {
1039
+ ruleName?: 'INVALID_TRIGGER_TYPE';
1040
+ } | {
1041
+ ruleName?: 'INVALID_SETTINGS_SUBJECT_TYPE';
1042
+ } | {
1043
+ ruleName?: 'INVALID_CUSTOMER_BUY_CONDITION';
1044
+ };
462
1045
 
463
1046
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
464
1047
  getUrl: (context: any) => string;
@@ -482,4 +1065,4 @@ declare function deleteDiscountRule(): __PublicMethodMetaInfo<'DELETE', {
482
1065
  }, DeleteDiscountRuleRequest$1, DeleteDiscountRuleRequest, DeleteDiscountRuleResponse$1, DeleteDiscountRuleResponse>;
483
1066
  declare function queryDiscountRules(): __PublicMethodMetaInfo<'POST', {}, QueryDiscountRulesRequest$1, QueryDiscountRulesRequest, QueryDiscountRulesResponse$1, QueryDiscountRulesResponse>;
484
1067
 
485
- export { type __PublicMethodMetaInfo, createDiscountRule, deleteDiscountRule, getDiscountRule, queryDiscountRules, updateDiscountRule };
1068
+ export { type ActionEvent as ActionEventOriginal, type ActiveTimeInfo as ActiveTimeInfoOriginal, type Address as AddressOriginal, type And as AndOriginal, type AppliedDiscount as AppliedDiscountOriginal, type AppliedDiscountRule as AppliedDiscountRuleOriginal, AppliedSubjectType as AppliedSubjectTypeOriginal, type AppliedSubjectTypeWithLiterals as AppliedSubjectTypeWithLiteralsOriginal, type BuyXGetYInfo as BuyXGetYInfoOriginal, type BuyerInfo as BuyerInfoOriginal, type CatalogItemFilter as CatalogItemFilterOriginal, type CatalogReference as CatalogReferenceOriginal, type ContactSegments as ContactSegmentsOriginal, type ContactTags as ContactTagsOriginal, type CreateDiscountRuleApplicationErrors as CreateDiscountRuleApplicationErrorsOriginal, type CreateDiscountRuleRequest as CreateDiscountRuleRequestOriginal, type CreateDiscountRuleResponse as CreateDiscountRuleResponseOriginal, type CreateDiscountRuleValidationErrors as CreateDiscountRuleValidationErrorsOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomFilter as CustomFilterOriginal, type Custom as CustomOriginal, type CustomerBuyConditionOneOf as CustomerBuyConditionOneOfOriginal, type CustomerBuy as CustomerBuyOriginal, type CustomerEligibilityOptionsOneOf as CustomerEligibilityOptionsOneOfOriginal, type CustomerEligibility as CustomerEligibilityOriginal, type CustomerGet as CustomerGetOriginal, DayOfWeek as DayOfWeekOriginal, type DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal, type DeleteDiscountRuleRequest as DeleteDiscountRuleRequestOriginal, type DeleteDiscountRuleResponse as DeleteDiscountRuleResponseOriginal, type DiscountConfig as DiscountConfigOriginal, type DiscountDiscountOneOf as DiscountDiscountOneOfOriginal, type Discount as DiscountOriginal, type DiscountRuleName as DiscountRuleNameOriginal, type DiscountRule as DiscountRuleOriginal, type DiscountRuleUsageLimitReached as DiscountRuleUsageLimitReachedOriginal, type DiscountSettings as DiscountSettingsOriginal, type DiscountTrigger as DiscountTriggerOriginal, type DiscountTriggerTriggerOneOf as DiscountTriggerTriggerOneOfOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, type Discounts as DiscountsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, EligibilityType as EligibilityTypeOriginal, type EligibilityTypeWithLiterals as EligibilityTypeWithLiteralsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetAppliedDiscountsRequest as GetAppliedDiscountsRequestOriginal, type GetAppliedDiscountsResponse as GetAppliedDiscountsResponseOriginal, type GetDiscountRuleRequest as GetDiscountRuleRequestOriginal, type GetDiscountRuleResponse as GetDiscountRuleResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IndividualContacts as IndividualContactsOriginal, type ItemQuantityRange as ItemQuantityRangeOriginal, type LineItem as LineItemOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MultiCurrencyPrice as MultiCurrencyPriceOriginal, type Or as OrOriginal, type PlatformPagingMetadata as PlatformPagingMetadataOriginal, type PlatformPaging as PlatformPagingOriginal, type PlatformQuery as PlatformQueryOriginal, type PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOfOriginal, type QuantityBased as QuantityBasedOriginal, type QueryDiscountRulesRequest as QueryDiscountRulesRequestOriginal, type QueryDiscountRulesResponse as QueryDiscountRulesResponseOriginal, type Recurrence as RecurrenceOriginal, type RestoreInfo as RestoreInfoOriginal, type Scope as ScopeOriginal, type ScopeScopeItemsOneOf as ScopeScopeItemsOneOfOriginal, ScopeType as ScopeTypeOriginal, type ScopeTypeWithLiterals as ScopeTypeWithLiteralsOriginal, type ShippingInfo as ShippingInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecificItemsInfo as SpecificItemsInfoOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SubtotalRange as SubtotalRangeOriginal, type TagReference as TagReferenceOriginal, type TimeOfDay as TimeOfDayOriginal, type TimeWindow as TimeWindowOriginal, TriggerType as TriggerTypeOriginal, type TriggerTypeWithLiterals as TriggerTypeWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UpdateDiscountRuleRequest as UpdateDiscountRuleRequestOriginal, type UpdateDiscountRuleResponse as UpdateDiscountRuleResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WeeklySchedule as WeeklyScheduleOriginal, type __PublicMethodMetaInfo, createDiscountRule, deleteDiscountRule, getDiscountRule, queryDiscountRules, updateDiscountRule };