@wix/auto_sdk_ecom_discount-rules 1.0.101 → 1.0.103

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +3 -27
  2. package/build/cjs/index.js +0 -138
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +9 -141
  5. package/build/cjs/index.typings.js +0 -120
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +10 -106
  8. package/build/cjs/meta.js +0 -94
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +3 -27
  11. package/build/es/index.mjs +0 -136
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +9 -141
  14. package/build/es/index.typings.mjs +0 -118
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +10 -106
  17. package/build/es/meta.mjs +0 -92
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +3 -27
  20. package/build/internal/cjs/index.js +0 -138
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +9 -141
  23. package/build/internal/cjs/index.typings.js +0 -120
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +10 -106
  26. package/build/internal/cjs/meta.js +0 -94
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +3 -27
  29. package/build/internal/es/index.mjs +0 -136
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +9 -141
  32. package/build/internal/es/index.typings.mjs +0 -118
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +10 -106
  35. package/build/internal/es/meta.mjs +0 -92
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { CreateDiscountRuleRequest as CreateDiscountRuleRequest$1, CreateDiscountRuleResponse as CreateDiscountRuleResponse$1, GetDiscountRuleRequest as GetDiscountRuleRequest$1, GetDiscountRuleResponse as GetDiscountRuleResponse$1, UpdateDiscountRuleRequest as UpdateDiscountRuleRequest$1, UpdateDiscountRuleResponse as UpdateDiscountRuleResponse$1, DeleteDiscountRuleRequest as DeleteDiscountRuleRequest$1, DeleteDiscountRuleResponse as DeleteDiscountRuleResponse$1, QueryDiscountRulesRequest as QueryDiscountRulesRequest$1, QueryDiscountRulesResponse as QueryDiscountRulesResponse$1, BulkUpdateDiscountRuleTagsRequest as BulkUpdateDiscountRuleTagsRequest$1, BulkUpdateDiscountRuleTagsResponse as BulkUpdateDiscountRuleTagsResponse$1, BulkUpdateDiscountRuleTagsByFilterRequest as BulkUpdateDiscountRuleTagsByFilterRequest$1, BulkUpdateDiscountRuleTagsByFilterResponse as BulkUpdateDiscountRuleTagsByFilterResponse$1 } from './index.typings.mjs';
1
+ import { CreateDiscountRuleRequest as CreateDiscountRuleRequest$1, CreateDiscountRuleResponse as CreateDiscountRuleResponse$1, GetDiscountRuleRequest as GetDiscountRuleRequest$1, GetDiscountRuleResponse as GetDiscountRuleResponse$1, UpdateDiscountRuleRequest as UpdateDiscountRuleRequest$1, UpdateDiscountRuleResponse as UpdateDiscountRuleResponse$1, DeleteDiscountRuleRequest as DeleteDiscountRuleRequest$1, DeleteDiscountRuleResponse as DeleteDiscountRuleResponse$1, QueryDiscountRulesRequest as QueryDiscountRulesRequest$1, QueryDiscountRulesResponse as QueryDiscountRulesResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface DiscountRule {
@@ -128,14 +128,13 @@ interface ScopeScopeItemsOneOf {
128
128
  customFilter?: CustomFilter;
129
129
  }
130
130
  declare enum ScopeType {
131
- UNDEFINED_SCOPE = "UNDEFINED_SCOPE",
132
131
  /** Specific catalog items */
133
132
  CATALOG_ITEM = "CATALOG_ITEM",
134
133
  /** Specific items by custom filters */
135
134
  CUSTOM_FILTER = "CUSTOM_FILTER"
136
135
  }
137
136
  /** @enumType */
138
- type ScopeTypeWithLiterals = ScopeType | 'UNDEFINED_SCOPE' | 'CATALOG_ITEM' | 'CUSTOM_FILTER';
137
+ type ScopeTypeWithLiterals = ScopeType | 'CATALOG_ITEM' | 'CUSTOM_FILTER';
139
138
  interface CatalogItemFilter {
140
139
  /**
141
140
  * Catalog App ID. For example, the Wix Stores, Wix Bookings, or 3rd-party [`appId`](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix).
@@ -238,13 +237,11 @@ interface CustomerEligibilityOptionsOneOf {
238
237
  individualMembersInfo?: IndividualMembers;
239
238
  }
240
239
  declare enum EligibilityType {
241
- /** Eligibility type is not defined. */
242
- UNKNOWN_ELIGIBILITY_TYPE = "UNKNOWN_ELIGIBILITY_TYPE",
243
240
  /** Only specific customers based on member id. */
244
241
  INDIVIDUAL_MEMBERS = "INDIVIDUAL_MEMBERS"
245
242
  }
246
243
  /** @enumType */
247
- type EligibilityTypeWithLiterals = EligibilityType | 'UNKNOWN_ELIGIBILITY_TYPE' | 'INDIVIDUAL_MEMBERS';
244
+ type EligibilityTypeWithLiterals = EligibilityType | 'INDIVIDUAL_MEMBERS';
248
245
  interface ContactSegments {
249
246
  /**
250
247
  * Eligible segment ids.
@@ -284,7 +281,6 @@ interface IndividualMembers {
284
281
  memberIds?: string[];
285
282
  }
286
283
  declare enum TriggerType {
287
- UNDEFINED = "UNDEFINED",
288
284
  /** Operator used for chaining multiple triggers. Currently 1 `AND` chain operator is supported. */
289
285
  AND = "AND",
290
286
  /** Subtotal must be within the specified `subtotalRange` values. */
@@ -302,7 +298,7 @@ declare enum TriggerType {
302
298
  CUSTOMER_ELIGIBILITY = "CUSTOMER_ELIGIBILITY"
303
299
  }
304
300
  /** @enumType */
305
- type TriggerTypeWithLiterals = TriggerType | 'UNDEFINED' | 'AND' | 'SUBTOTAL_RANGE' | 'ITEM_QUANTITY_RANGE' | 'CUSTOM' | 'OR' | 'CUSTOMER_ELIGIBILITY';
301
+ type TriggerTypeWithLiterals = TriggerType | 'AND' | 'SUBTOTAL_RANGE' | 'ITEM_QUANTITY_RANGE' | 'CUSTOM' | 'OR' | 'CUSTOMER_ELIGIBILITY';
306
302
  interface ActiveTimeInfo {
307
303
  /** Date and time the discount rule is active **from**, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
308
304
  start?: Date | null;
@@ -314,7 +310,6 @@ interface Recurrence {
314
310
  weeklySchedule?: WeeklySchedule;
315
311
  }
316
312
  declare enum DayOfWeek {
317
- UNKOWN_DAY_OF_WEEK = "UNKOWN_DAY_OF_WEEK",
318
313
  /** Monday. */
319
314
  MON = "MON",
320
315
  /** Tuesday. */
@@ -331,7 +326,7 @@ declare enum DayOfWeek {
331
326
  SUN = "SUN"
332
327
  }
333
328
  /** @enumType */
334
- type DayOfWeekWithLiterals = DayOfWeek | 'UNKOWN_DAY_OF_WEEK' | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
329
+ type DayOfWeekWithLiterals = DayOfWeek | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
335
330
  interface TimeOfDay {
336
331
  /**
337
332
  * Hours. Min: `0`. Max: `23`.
@@ -420,13 +415,11 @@ interface DiscountDiscountOneOf {
420
415
  quantityBased?: QuantityBased;
421
416
  }
422
417
  declare enum Type {
423
- /** Target type is not defined */
424
- UNDEFINED = "UNDEFINED",
425
418
  /** Target type is a set of specific items */
426
419
  SPECIFIC_ITEMS = "SPECIFIC_ITEMS"
427
420
  }
428
421
  /** @enumType */
429
- type TypeWithLiterals = Type | 'UNDEFINED' | 'SPECIFIC_ITEMS';
422
+ type TypeWithLiterals = Type | 'SPECIFIC_ITEMS';
430
423
  interface SpecificItemsInfo {
431
424
  /**
432
425
  * All associated scopes for `SPECIFIC_ITEMS` target type.
@@ -463,7 +456,6 @@ interface DiscountConfig {
463
456
  price?: string;
464
457
  }
465
458
  declare enum DiscountType {
466
- UNDEFINED = "UNDEFINED",
467
459
  /** Price is reduced by percentage value. */
468
460
  PERCENTAGE = "PERCENTAGE",
469
461
  /** Price is reduced by fixed amount. */
@@ -477,7 +469,7 @@ declare enum DiscountType {
477
469
  QUANTITY_BASED = "QUANTITY_BASED"
478
470
  }
479
471
  /** @enumType */
480
- type DiscountTypeWithLiterals = DiscountType | 'UNDEFINED' | 'PERCENTAGE' | 'FIXED_AMOUNT' | 'FIXED_PRICE' | 'QUANTITY_BASED';
472
+ type DiscountTypeWithLiterals = DiscountType | 'PERCENTAGE' | 'FIXED_AMOUNT' | 'FIXED_PRICE' | 'QUANTITY_BASED';
481
473
  interface BuyXGetYInfo {
482
474
  /** Information about which items must be in the cart (buy X) for the discount to apply (get Y). */
483
475
  customerBuys?: CustomerBuy;
@@ -538,8 +530,6 @@ interface CustomerGet {
538
530
  scopes?: Scope[];
539
531
  }
540
532
  declare enum Status {
541
- /** Rule status is not defined. */
542
- UNDEFINED = "UNDEFINED",
543
533
  /** Rule status is live. */
544
534
  LIVE = "LIVE",
545
535
  /** Rule status is expired, it might have been live in the past. */
@@ -548,7 +538,7 @@ declare enum Status {
548
538
  PENDING = "PENDING"
549
539
  }
550
540
  /** @enumType */
551
- type StatusWithLiterals = Status | 'UNDEFINED' | 'LIVE' | 'EXPIRED' | 'PENDING';
541
+ type StatusWithLiterals = Status | 'LIVE' | 'EXPIRED' | 'PENDING';
552
542
  /** The discount settings */
553
543
  interface DiscountSettings {
554
544
  /** Discount applies to either `ALL_ITEMS`, or to the `LOWEST_PRICED_ITEM`. */
@@ -575,14 +565,13 @@ interface DiscountSettings {
575
565
  }
576
566
  /** TODO: check if can be removed */
577
567
  declare enum AppliedSubjectType {
578
- UNDEFINED = "UNDEFINED",
579
568
  /** Discount applies to all items at checkout. */
580
569
  ALL_ITEMS = "ALL_ITEMS",
581
570
  /** Discount applies to the lowest priced item at checkout. */
582
571
  LOWEST_PRICED_ITEM = "LOWEST_PRICED_ITEM"
583
572
  }
584
573
  /** @enumType */
585
- type AppliedSubjectTypeWithLiterals = AppliedSubjectType | 'UNDEFINED' | 'ALL_ITEMS' | 'LOWEST_PRICED_ITEM';
574
+ type AppliedSubjectTypeWithLiterals = AppliedSubjectType | 'ALL_ITEMS' | 'LOWEST_PRICED_ITEM';
586
575
  interface ExtendedFields {
587
576
  /**
588
577
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -1048,77 +1037,6 @@ interface DiscountRuleUsageLimitReached {
1048
1037
  /** Discount Rule */
1049
1038
  rule?: DiscountRule;
1050
1039
  }
1051
- interface BulkUpdateDiscountRuleTagsRequest {
1052
- /**
1053
- * IDs of discount rules to update.
1054
- * @minSize 1
1055
- * @maxSize 100
1056
- * @format GUID
1057
- */
1058
- discountRuleIds: string[];
1059
- /** Tags to assign to the discount rules. */
1060
- assignTags?: Tags;
1061
- /** Tags to unassign from the discount rules. */
1062
- unassignTags?: Tags;
1063
- }
1064
- interface BulkUpdateDiscountRuleTagsResponse {
1065
- /**
1066
- * Results
1067
- * @minSize 1
1068
- * @maxSize 100
1069
- */
1070
- results?: BulkUpdateDiscountRuleTagsResult[];
1071
- /** Metadata regarding the bulk update operation */
1072
- bulkActionMetadata?: BulkActionMetadata;
1073
- }
1074
- interface ItemMetadata {
1075
- /**
1076
- * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
1077
- * @format GUID
1078
- */
1079
- id?: string | null;
1080
- /** Index of the item within the request array. Allows for correlation between request and response items. */
1081
- originalIndex?: number;
1082
- /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
1083
- success?: boolean;
1084
- /** Details about the error in case of failure. */
1085
- error?: ApplicationError;
1086
- }
1087
- interface ApplicationError {
1088
- /** Error code. */
1089
- code?: string;
1090
- /** Description of the error. */
1091
- description?: string;
1092
- /** Data related to the error. */
1093
- data?: Record<string, any> | null;
1094
- }
1095
- interface BulkUpdateDiscountRuleTagsResult {
1096
- /** Metadata regarding the specific single update operation */
1097
- itemMetadata?: ItemMetadata;
1098
- }
1099
- interface BulkActionMetadata {
1100
- /** Number of items that were successfully processed. */
1101
- totalSuccesses?: number;
1102
- /** Number of items that couldn't be processed. */
1103
- totalFailures?: number;
1104
- /** Number of failures without details because detailed failure threshold was exceeded. */
1105
- undetailedFailures?: number;
1106
- }
1107
- interface BulkUpdateDiscountRuleTagsByFilterRequest {
1108
- /** Filter. */
1109
- filter: Record<string, any> | null;
1110
- /** Tags to assign to the discount rules. */
1111
- assignTags?: Tags;
1112
- /** Tags to unassign from the discount rules. */
1113
- unassignTags?: Tags;
1114
- }
1115
- interface BulkUpdateDiscountRuleTagsByFilterResponse {
1116
- /**
1117
- * Job ID.
1118
- * @format GUID
1119
- */
1120
- jobId?: string;
1121
- }
1122
1040
  interface MessageEnvelope {
1123
1041
  /**
1124
1042
  * App instance ID.
@@ -1254,18 +1172,6 @@ type CreateDiscountRuleValidationErrors = {
1254
1172
  } | {
1255
1173
  ruleName?: 'INVALID_SCOPE';
1256
1174
  };
1257
- /** @docsIgnore */
1258
- type BulkUpdateDiscountRuleTagsApplicationErrors = {
1259
- code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1260
- description?: string;
1261
- data?: Record<string, any>;
1262
- };
1263
- /** @docsIgnore */
1264
- type BulkUpdateDiscountRuleTagsByFilterApplicationErrors = {
1265
- code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1266
- description?: string;
1267
- data?: Record<string, any>;
1268
- };
1269
1175
 
1270
1176
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1271
1177
  getUrl: (context: any) => string;
@@ -1288,7 +1194,5 @@ declare function deleteDiscountRule(): __PublicMethodMetaInfo<'DELETE', {
1288
1194
  discountRuleId: string;
1289
1195
  }, DeleteDiscountRuleRequest$1, DeleteDiscountRuleRequest, DeleteDiscountRuleResponse$1, DeleteDiscountRuleResponse>;
1290
1196
  declare function queryDiscountRules(): __PublicMethodMetaInfo<'POST', {}, QueryDiscountRulesRequest$1, QueryDiscountRulesRequest, QueryDiscountRulesResponse$1, QueryDiscountRulesResponse>;
1291
- declare function bulkUpdateDiscountRuleTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateDiscountRuleTagsRequest$1, BulkUpdateDiscountRuleTagsRequest, BulkUpdateDiscountRuleTagsResponse$1, BulkUpdateDiscountRuleTagsResponse>;
1292
- declare function bulkUpdateDiscountRuleTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateDiscountRuleTagsByFilterRequest$1, BulkUpdateDiscountRuleTagsByFilterRequest, BulkUpdateDiscountRuleTagsByFilterResponse$1, BulkUpdateDiscountRuleTagsByFilterResponse>;
1293
1197
 
1294
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveTimeInfo as ActiveTimeInfoOriginal, type Address as AddressOriginal, type And as AndOriginal, type ApplicationError as ApplicationErrorOriginal, type AppliedDiscount as AppliedDiscountOriginal, type AppliedDiscountRule as AppliedDiscountRuleOriginal, AppliedSubjectType as AppliedSubjectTypeOriginal, type AppliedSubjectTypeWithLiterals as AppliedSubjectTypeWithLiteralsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkUpdateDiscountRuleTagsApplicationErrors as BulkUpdateDiscountRuleTagsApplicationErrorsOriginal, type BulkUpdateDiscountRuleTagsByFilterApplicationErrors as BulkUpdateDiscountRuleTagsByFilterApplicationErrorsOriginal, type BulkUpdateDiscountRuleTagsByFilterRequest as BulkUpdateDiscountRuleTagsByFilterRequestOriginal, type BulkUpdateDiscountRuleTagsByFilterResponse as BulkUpdateDiscountRuleTagsByFilterResponseOriginal, type BulkUpdateDiscountRuleTagsRequest as BulkUpdateDiscountRuleTagsRequestOriginal, type BulkUpdateDiscountRuleTagsResponse as BulkUpdateDiscountRuleTagsResponseOriginal, type BulkUpdateDiscountRuleTagsResult as BulkUpdateDiscountRuleTagsResultOriginal, 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 IndividualMembers as IndividualMembersOriginal, type ItemCombinationLineItem as ItemCombinationLineItemOriginal, type ItemCombination as ItemCombinationOriginal, type ItemMetadata as ItemMetadataOriginal, 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 TagList as TagListOriginal, type TagReference as TagReferenceOriginal, type TagsModified as TagsModifiedOriginal, type Tags as TagsOriginal, 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, bulkUpdateDiscountRuleTags, bulkUpdateDiscountRuleTagsByFilter, createDiscountRule, deleteDiscountRule, getDiscountRule, queryDiscountRules, updateDiscountRule };
1198
+ export { type AccountInfo as AccountInfoOriginal, 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 IndividualMembers as IndividualMembersOriginal, type ItemCombinationLineItem as ItemCombinationLineItemOriginal, type ItemCombination as ItemCombinationOriginal, 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 TagList as TagListOriginal, type TagReference as TagReferenceOriginal, type TagsModified as TagsModifiedOriginal, type Tags as TagsOriginal, 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 };
@@ -260,63 +260,18 @@ function queryDiscountRules(payload) {
260
260
  }
261
261
  return __queryDiscountRules;
262
262
  }
263
- function bulkUpdateDiscountRuleTags(payload) {
264
- function __bulkUpdateDiscountRuleTags({ host }) {
265
- const metadata = {
266
- entityFqdn: "wix.ecom.discounts.v1.discount_rule",
267
- method: "POST",
268
- methodFqn: "com.wix.ecom.discounts.DiscountRuleService.BulkUpdateDiscountRuleTags",
269
- packageName: PACKAGE_NAME,
270
- migrationOptions: {
271
- optInTransformResponse: true
272
- },
273
- url: resolveComWixEcomDiscountsDiscountRuleServiceUrl({
274
- protoPath: "/v1/bulk/discount-rules/update-tags",
275
- data: payload,
276
- host
277
- }),
278
- data: payload
279
- };
280
- return metadata;
281
- }
282
- return __bulkUpdateDiscountRuleTags;
283
- }
284
- function bulkUpdateDiscountRuleTagsByFilter(payload) {
285
- function __bulkUpdateDiscountRuleTagsByFilter({ host }) {
286
- const metadata = {
287
- entityFqdn: "wix.ecom.discounts.v1.discount_rule",
288
- method: "POST",
289
- methodFqn: "com.wix.ecom.discounts.DiscountRuleService.BulkUpdateDiscountRuleTagsByFilter",
290
- packageName: PACKAGE_NAME,
291
- migrationOptions: {
292
- optInTransformResponse: true
293
- },
294
- url: resolveComWixEcomDiscountsDiscountRuleServiceUrl({
295
- protoPath: "/v1/bulk/discount-rules/update-tags-by-filter",
296
- data: payload,
297
- host
298
- }),
299
- data: payload
300
- };
301
- return metadata;
302
- }
303
- return __bulkUpdateDiscountRuleTagsByFilter;
304
- }
305
263
 
306
264
  // src/ecom-discounts-v1-discount-rule-discount-rules.types.ts
307
265
  var ScopeType = /* @__PURE__ */ ((ScopeType2) => {
308
- ScopeType2["UNDEFINED_SCOPE"] = "UNDEFINED_SCOPE";
309
266
  ScopeType2["CATALOG_ITEM"] = "CATALOG_ITEM";
310
267
  ScopeType2["CUSTOM_FILTER"] = "CUSTOM_FILTER";
311
268
  return ScopeType2;
312
269
  })(ScopeType || {});
313
270
  var EligibilityType = /* @__PURE__ */ ((EligibilityType2) => {
314
- EligibilityType2["UNKNOWN_ELIGIBILITY_TYPE"] = "UNKNOWN_ELIGIBILITY_TYPE";
315
271
  EligibilityType2["INDIVIDUAL_MEMBERS"] = "INDIVIDUAL_MEMBERS";
316
272
  return EligibilityType2;
317
273
  })(EligibilityType || {});
318
274
  var TriggerType = /* @__PURE__ */ ((TriggerType2) => {
319
- TriggerType2["UNDEFINED"] = "UNDEFINED";
320
275
  TriggerType2["AND"] = "AND";
321
276
  TriggerType2["SUBTOTAL_RANGE"] = "SUBTOTAL_RANGE";
322
277
  TriggerType2["ITEM_QUANTITY_RANGE"] = "ITEM_QUANTITY_RANGE";
@@ -326,7 +281,6 @@ var TriggerType = /* @__PURE__ */ ((TriggerType2) => {
326
281
  return TriggerType2;
327
282
  })(TriggerType || {});
328
283
  var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
329
- DayOfWeek2["UNKOWN_DAY_OF_WEEK"] = "UNKOWN_DAY_OF_WEEK";
330
284
  DayOfWeek2["MON"] = "MON";
331
285
  DayOfWeek2["TUE"] = "TUE";
332
286
  DayOfWeek2["WED"] = "WED";
@@ -337,12 +291,10 @@ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
337
291
  return DayOfWeek2;
338
292
  })(DayOfWeek || {});
339
293
  var Type = /* @__PURE__ */ ((Type2) => {
340
- Type2["UNDEFINED"] = "UNDEFINED";
341
294
  Type2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
342
295
  return Type2;
343
296
  })(Type || {});
344
297
  var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
345
- DiscountType2["UNDEFINED"] = "UNDEFINED";
346
298
  DiscountType2["PERCENTAGE"] = "PERCENTAGE";
347
299
  DiscountType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
348
300
  DiscountType2["FIXED_PRICE"] = "FIXED_PRICE";
@@ -350,14 +302,12 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
350
302
  return DiscountType2;
351
303
  })(DiscountType || {});
352
304
  var Status = /* @__PURE__ */ ((Status2) => {
353
- Status2["UNDEFINED"] = "UNDEFINED";
354
305
  Status2["LIVE"] = "LIVE";
355
306
  Status2["EXPIRED"] = "EXPIRED";
356
307
  Status2["PENDING"] = "PENDING";
357
308
  return Status2;
358
309
  })(Status || {});
359
310
  var AppliedSubjectType = /* @__PURE__ */ ((AppliedSubjectType2) => {
360
- AppliedSubjectType2["UNDEFINED"] = "UNDEFINED";
361
311
  AppliedSubjectType2["ALL_ITEMS"] = "ALL_ITEMS";
362
312
  AppliedSubjectType2["LOWEST_PRICED_ITEM"] = "LOWEST_PRICED_ITEM";
363
313
  return AppliedSubjectType2;
@@ -467,46 +417,6 @@ function queryDiscountRules2() {
467
417
  __originalResponseType: null
468
418
  };
469
419
  }
470
- function bulkUpdateDiscountRuleTags2() {
471
- const payload = {};
472
- const getRequestOptions = bulkUpdateDiscountRuleTags(
473
- payload
474
- );
475
- const getUrl = (context) => {
476
- const { url } = getRequestOptions(context);
477
- return url;
478
- };
479
- return {
480
- getUrl,
481
- httpMethod: "POST",
482
- path: "/v1/bulk/discount-rules/update-tags",
483
- pathParams: {},
484
- __requestType: null,
485
- __originalRequestType: null,
486
- __responseType: null,
487
- __originalResponseType: null
488
- };
489
- }
490
- function bulkUpdateDiscountRuleTagsByFilter2() {
491
- const payload = {};
492
- const getRequestOptions = bulkUpdateDiscountRuleTagsByFilter(
493
- payload
494
- );
495
- const getUrl = (context) => {
496
- const { url } = getRequestOptions(context);
497
- return url;
498
- };
499
- return {
500
- getUrl,
501
- httpMethod: "POST",
502
- path: "/v1/bulk/discount-rules/update-tags-by-filter",
503
- pathParams: {},
504
- __requestType: null,
505
- __originalRequestType: null,
506
- __responseType: null,
507
- __originalResponseType: null
508
- };
509
- }
510
420
  export {
511
421
  AppliedSubjectType as AppliedSubjectTypeOriginal,
512
422
  DayOfWeek as DayOfWeekOriginal,
@@ -518,8 +428,6 @@ export {
518
428
  TriggerType as TriggerTypeOriginal,
519
429
  Type as TypeOriginal,
520
430
  WebhookIdentityType as WebhookIdentityTypeOriginal,
521
- bulkUpdateDiscountRuleTags2 as bulkUpdateDiscountRuleTags,
522
- bulkUpdateDiscountRuleTagsByFilter2 as bulkUpdateDiscountRuleTagsByFilter,
523
431
  createDiscountRule2 as createDiscountRule,
524
432
  deleteDiscountRule2 as deleteDiscountRule,
525
433
  getDiscountRule2 as getDiscountRule,