@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
@@ -135,14 +135,13 @@ interface ScopeScopeItemsOneOf {
135
135
  customFilter?: CustomFilter;
136
136
  }
137
137
  declare enum ScopeType {
138
- UNDEFINED_SCOPE = "UNDEFINED_SCOPE",
139
138
  /** Specific catalog items */
140
139
  CATALOG_ITEM = "CATALOG_ITEM",
141
140
  /** Specific items by custom filters */
142
141
  CUSTOM_FILTER = "CUSTOM_FILTER"
143
142
  }
144
143
  /** @enumType */
145
- type ScopeTypeWithLiterals = ScopeType | 'UNDEFINED_SCOPE' | 'CATALOG_ITEM' | 'CUSTOM_FILTER';
144
+ type ScopeTypeWithLiterals = ScopeType | 'CATALOG_ITEM' | 'CUSTOM_FILTER';
146
145
  interface CatalogItemFilter {
147
146
  /**
148
147
  * 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).
@@ -245,13 +244,11 @@ interface CustomerEligibilityOptionsOneOf {
245
244
  individualMembersInfo?: IndividualMembers;
246
245
  }
247
246
  declare enum EligibilityType {
248
- /** Eligibility type is not defined. */
249
- UNKNOWN_ELIGIBILITY_TYPE = "UNKNOWN_ELIGIBILITY_TYPE",
250
247
  /** Only specific customers based on member id. */
251
248
  INDIVIDUAL_MEMBERS = "INDIVIDUAL_MEMBERS"
252
249
  }
253
250
  /** @enumType */
254
- type EligibilityTypeWithLiterals = EligibilityType | 'UNKNOWN_ELIGIBILITY_TYPE' | 'INDIVIDUAL_MEMBERS';
251
+ type EligibilityTypeWithLiterals = EligibilityType | 'INDIVIDUAL_MEMBERS';
255
252
  interface ContactSegments {
256
253
  /**
257
254
  * Eligible segment ids.
@@ -291,7 +288,6 @@ interface IndividualMembers {
291
288
  memberIds?: string[];
292
289
  }
293
290
  declare enum TriggerType {
294
- UNDEFINED = "UNDEFINED",
295
291
  /** Operator used for chaining multiple triggers. Currently 1 `AND` chain operator is supported. */
296
292
  AND = "AND",
297
293
  /** Subtotal must be within the specified `subtotalRange` values. */
@@ -309,7 +305,7 @@ declare enum TriggerType {
309
305
  CUSTOMER_ELIGIBILITY = "CUSTOMER_ELIGIBILITY"
310
306
  }
311
307
  /** @enumType */
312
- type TriggerTypeWithLiterals = TriggerType | 'UNDEFINED' | 'AND' | 'SUBTOTAL_RANGE' | 'ITEM_QUANTITY_RANGE' | 'CUSTOM' | 'OR' | 'CUSTOMER_ELIGIBILITY';
308
+ type TriggerTypeWithLiterals = TriggerType | 'AND' | 'SUBTOTAL_RANGE' | 'ITEM_QUANTITY_RANGE' | 'CUSTOM' | 'OR' | 'CUSTOMER_ELIGIBILITY';
313
309
  interface ActiveTimeInfo {
314
310
  /** 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. */
315
311
  start?: Date | null;
@@ -321,7 +317,6 @@ interface Recurrence {
321
317
  weeklySchedule?: WeeklySchedule;
322
318
  }
323
319
  declare enum DayOfWeek {
324
- UNKOWN_DAY_OF_WEEK = "UNKOWN_DAY_OF_WEEK",
325
320
  /** Monday. */
326
321
  MON = "MON",
327
322
  /** Tuesday. */
@@ -338,7 +333,7 @@ declare enum DayOfWeek {
338
333
  SUN = "SUN"
339
334
  }
340
335
  /** @enumType */
341
- type DayOfWeekWithLiterals = DayOfWeek | 'UNKOWN_DAY_OF_WEEK' | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
336
+ type DayOfWeekWithLiterals = DayOfWeek | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
342
337
  interface TimeOfDay {
343
338
  /**
344
339
  * Hours. Min: `0`. Max: `23`.
@@ -433,13 +428,11 @@ interface DiscountDiscountOneOf {
433
428
  quantityBased?: QuantityBased;
434
429
  }
435
430
  declare enum Type {
436
- /** Target type is not defined */
437
- UNDEFINED = "UNDEFINED",
438
431
  /** Target type is a set of specific items */
439
432
  SPECIFIC_ITEMS = "SPECIFIC_ITEMS"
440
433
  }
441
434
  /** @enumType */
442
- type TypeWithLiterals = Type | 'UNDEFINED' | 'SPECIFIC_ITEMS';
435
+ type TypeWithLiterals = Type | 'SPECIFIC_ITEMS';
443
436
  interface SpecificItemsInfo {
444
437
  /**
445
438
  * All associated scopes for `"SPECIFIC_ITEMS"` target type.
@@ -476,7 +469,6 @@ interface DiscountConfig {
476
469
  price?: string;
477
470
  }
478
471
  declare enum DiscountType {
479
- UNDEFINED = "UNDEFINED",
480
472
  /** Price is reduced by percentage value. */
481
473
  PERCENTAGE = "PERCENTAGE",
482
474
  /** Price is reduced by fixed amount. */
@@ -490,7 +482,7 @@ declare enum DiscountType {
490
482
  QUANTITY_BASED = "QUANTITY_BASED"
491
483
  }
492
484
  /** @enumType */
493
- type DiscountTypeWithLiterals = DiscountType | 'UNDEFINED' | 'PERCENTAGE' | 'FIXED_AMOUNT' | 'FIXED_PRICE' | 'QUANTITY_BASED';
485
+ type DiscountTypeWithLiterals = DiscountType | 'PERCENTAGE' | 'FIXED_AMOUNT' | 'FIXED_PRICE' | 'QUANTITY_BASED';
494
486
  interface BuyXGetYInfo {
495
487
  /** Information about which items must be in the cart (buy X) for the discount to apply (get Y). */
496
488
  customerBuys?: CustomerBuy;
@@ -551,8 +543,6 @@ interface CustomerGet {
551
543
  scopes?: Scope[];
552
544
  }
553
545
  declare enum Status {
554
- /** Rule status is not defined. */
555
- UNDEFINED = "UNDEFINED",
556
546
  /** Rule status is live. */
557
547
  LIVE = "LIVE",
558
548
  /** Rule status is expired, it might have been live in the past. */
@@ -561,7 +551,7 @@ declare enum Status {
561
551
  PENDING = "PENDING"
562
552
  }
563
553
  /** @enumType */
564
- type StatusWithLiterals = Status | 'UNDEFINED' | 'LIVE' | 'EXPIRED' | 'PENDING';
554
+ type StatusWithLiterals = Status | 'LIVE' | 'EXPIRED' | 'PENDING';
565
555
  /** The discount settings */
566
556
  interface DiscountSettings {
567
557
  /** Discount applies to either `ALL_ITEMS`, or to the `LOWEST_PRICED_ITEM`. */
@@ -588,14 +578,13 @@ interface DiscountSettings {
588
578
  }
589
579
  /** TODO: check if can be removed */
590
580
  declare enum AppliedSubjectType {
591
- UNDEFINED = "UNDEFINED",
592
581
  /** Discount applies to all items at checkout. */
593
582
  ALL_ITEMS = "ALL_ITEMS",
594
583
  /** Discount applies to the lowest priced item at checkout. */
595
584
  LOWEST_PRICED_ITEM = "LOWEST_PRICED_ITEM"
596
585
  }
597
586
  /** @enumType */
598
- type AppliedSubjectTypeWithLiterals = AppliedSubjectType | 'UNDEFINED' | 'ALL_ITEMS' | 'LOWEST_PRICED_ITEM';
587
+ type AppliedSubjectTypeWithLiterals = AppliedSubjectType | 'ALL_ITEMS' | 'LOWEST_PRICED_ITEM';
599
588
  interface ExtendedFields {
600
589
  /**
601
590
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -1059,77 +1048,6 @@ interface DiscountRuleUsageLimitReached {
1059
1048
  /** Discount Rule */
1060
1049
  rule?: DiscountRule;
1061
1050
  }
1062
- interface BulkUpdateDiscountRuleTagsRequest {
1063
- /**
1064
- * IDs of discount rules to update.
1065
- * @minSize 1
1066
- * @maxSize 100
1067
- * @format GUID
1068
- */
1069
- discountRuleIds: string[];
1070
- /** Tags to assign to the discount rules. */
1071
- assignTags?: Tags;
1072
- /** Tags to unassign from the discount rules. */
1073
- unassignTags?: Tags;
1074
- }
1075
- interface BulkUpdateDiscountRuleTagsResponse {
1076
- /**
1077
- * Results
1078
- * @minSize 1
1079
- * @maxSize 100
1080
- */
1081
- results?: BulkUpdateDiscountRuleTagsResult[];
1082
- /** Metadata regarding the bulk update operation */
1083
- bulkActionMetadata?: BulkActionMetadata;
1084
- }
1085
- interface ItemMetadata {
1086
- /**
1087
- * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
1088
- * @format GUID
1089
- */
1090
- _id?: string | null;
1091
- /** Index of the item within the request array. Allows for correlation between request and response items. */
1092
- originalIndex?: number;
1093
- /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
1094
- success?: boolean;
1095
- /** Details about the error in case of failure. */
1096
- error?: ApplicationError;
1097
- }
1098
- interface ApplicationError {
1099
- /** Error code. */
1100
- code?: string;
1101
- /** Description of the error. */
1102
- description?: string;
1103
- /** Data related to the error. */
1104
- data?: Record<string, any> | null;
1105
- }
1106
- interface BulkUpdateDiscountRuleTagsResult {
1107
- /** Metadata regarding the specific single update operation */
1108
- itemMetadata?: ItemMetadata;
1109
- }
1110
- interface BulkActionMetadata {
1111
- /** Number of items that were successfully processed. */
1112
- totalSuccesses?: number;
1113
- /** Number of items that couldn't be processed. */
1114
- totalFailures?: number;
1115
- /** Number of failures without details because detailed failure threshold was exceeded. */
1116
- undetailedFailures?: number;
1117
- }
1118
- interface BulkUpdateDiscountRuleTagsByFilterRequest {
1119
- /** Filter. */
1120
- filter: Record<string, any> | null;
1121
- /** Tags to assign to the discount rules. */
1122
- assignTags?: Tags;
1123
- /** Tags to unassign from the discount rules. */
1124
- unassignTags?: Tags;
1125
- }
1126
- interface BulkUpdateDiscountRuleTagsByFilterResponse {
1127
- /**
1128
- * Job ID.
1129
- * @format GUID
1130
- */
1131
- jobId?: string;
1132
- }
1133
1051
  interface MessageEnvelope {
1134
1052
  /**
1135
1053
  * App instance ID.
@@ -1265,18 +1183,6 @@ type CreateDiscountRuleValidationErrors = {
1265
1183
  } | {
1266
1184
  ruleName?: 'INVALID_SCOPE';
1267
1185
  };
1268
- /** @docsIgnore */
1269
- type BulkUpdateDiscountRuleTagsApplicationErrors = {
1270
- code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1271
- description?: string;
1272
- data?: Record<string, any>;
1273
- };
1274
- /** @docsIgnore */
1275
- type BulkUpdateDiscountRuleTagsByFilterApplicationErrors = {
1276
- code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1277
- description?: string;
1278
- data?: Record<string, any>;
1279
- };
1280
1186
  interface BaseEventMetadata {
1281
1187
  /**
1282
1188
  * App instance ID.
@@ -1700,43 +1606,5 @@ declare const utils: {
1700
1606
  Sort: _wix_sdk_types.SortFactory<DiscountRuleQuerySpec>;
1701
1607
  };
1702
1608
  };
1703
- /**
1704
- * Bulk update tags for discount rules by IDs.
1705
- * @param discountRuleIds - IDs of discount rules to update.
1706
- * @public
1707
- * @requiredField discountRuleIds
1708
- * @permissionId ECOM.DISCOUNT_RULES_UPDATE_TAGS
1709
- * @applicableIdentity APP
1710
- * @fqn com.wix.ecom.discounts.DiscountRuleService.BulkUpdateDiscountRuleTags
1711
- */
1712
- declare function bulkUpdateDiscountRuleTags(discountRuleIds: string[], options?: BulkUpdateDiscountRuleTagsOptions): Promise<NonNullablePaths<BulkUpdateDiscountRuleTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
1713
- __applicationErrorsType?: BulkUpdateDiscountRuleTagsApplicationErrors;
1714
- }>;
1715
- interface BulkUpdateDiscountRuleTagsOptions {
1716
- /** Tags to assign to the discount rules. */
1717
- assignTags?: Tags;
1718
- /** Tags to unassign from the discount rules. */
1719
- unassignTags?: Tags;
1720
- }
1721
- /**
1722
- * Asynchronously update tags on multiple discount rules by filter.
1723
- * An empty filter will update all discount rules.
1724
- * A tag that appears both in the list of assign and unassign tags, will be assigned.
1725
- * @param filter - Filter.
1726
- * @public
1727
- * @requiredField filter
1728
- * @permissionId ECOM.DISCOUNT_RULES_UPDATE_TAGS
1729
- * @applicableIdentity APP
1730
- * @fqn com.wix.ecom.discounts.DiscountRuleService.BulkUpdateDiscountRuleTagsByFilter
1731
- */
1732
- declare function bulkUpdateDiscountRuleTagsByFilter(filter: Record<string, any>, options?: BulkUpdateDiscountRuleTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDiscountRuleTagsByFilterResponse, `jobId`, 2> & {
1733
- __applicationErrorsType?: BulkUpdateDiscountRuleTagsByFilterApplicationErrors;
1734
- }>;
1735
- interface BulkUpdateDiscountRuleTagsByFilterOptions {
1736
- /** Tags to assign to the discount rules. */
1737
- assignTags?: Tags;
1738
- /** Tags to unassign from the discount rules. */
1739
- unassignTags?: Tags;
1740
- }
1741
1609
 
1742
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ActiveTimeInfo, type Address, type And, type ApplicationError, type AppliedDiscount, type AppliedDiscountRule, AppliedSubjectType, type AppliedSubjectTypeWithLiterals, type BaseEventMetadata, type BulkActionMetadata, type BulkUpdateDiscountRuleTagsApplicationErrors, type BulkUpdateDiscountRuleTagsByFilterApplicationErrors, type BulkUpdateDiscountRuleTagsByFilterOptions, type BulkUpdateDiscountRuleTagsByFilterRequest, type BulkUpdateDiscountRuleTagsByFilterResponse, type BulkUpdateDiscountRuleTagsOptions, type BulkUpdateDiscountRuleTagsRequest, type BulkUpdateDiscountRuleTagsResponse, type BulkUpdateDiscountRuleTagsResult, type BuyXGetYInfo, type BuyerInfo, type CatalogItemFilter, type CatalogReference, type CommonQueryWithEntityContext, type ContactSegments, type ContactTags, type CreateDiscountRuleApplicationErrors, type CreateDiscountRuleRequest, type CreateDiscountRuleResponse, type CreateDiscountRuleValidationErrors, type CursorPaging, type Cursors, type Custom, type CustomFilter, type CustomerBuy, type CustomerBuyConditionOneOf, type CustomerEligibility, type CustomerEligibilityOptionsOneOf, type CustomerGet, DayOfWeek, type DayOfWeekWithLiterals, type DeleteDiscountRuleRequest, type DeleteDiscountRuleResponse, type Discount, type DiscountConfig, type DiscountDiscountOneOf, type DiscountRule, type DiscountRuleCreatedEnvelope, type DiscountRuleDeletedEnvelope, type DiscountRuleName, type DiscountRuleQuery, type DiscountRuleQuerySpec, type DiscountRuleUpdatedEnvelope, type DiscountRuleUsageLimitReached, type DiscountRulesQueryBuilder, type DiscountRulesQueryResult, type DiscountSettings, type DiscountTrigger, type DiscountTriggerTriggerOneOf, DiscountType, type DiscountTypeWithLiterals, type Discounts, type DomainEvent, type DomainEventBodyOneOf, EligibilityType, type EligibilityTypeWithLiterals, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetAppliedDiscountsRequest, type GetAppliedDiscountsResponse, type GetDiscountRuleRequest, type GetDiscountRuleResponse, type IdentificationData, type IdentificationDataIdOneOf, type IndividualMembers, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemQuantityRange, type LineItem, type MessageEnvelope, type MultiCurrencyPrice, type Or, type PlatformPaging, type PlatformPagingMetadata, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type QuantityBased, type QueryDiscountRulesRequest, type QueryDiscountRulesResponse, type Recurrence, type RestoreInfo, type Scope, type ScopeScopeItemsOneOf, ScopeType, type ScopeTypeWithLiterals, type ShippingInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecificItemsInfo, Status, type StatusWithLiterals, type SubtotalRange, type TagList, type TagReference, type Tags, type TagsModified, type TimeOfDay, type TimeWindow, TriggerType, type TriggerTypeWithLiterals, Type, type TypeWithLiterals, type UpdateDiscountRule, type UpdateDiscountRuleRequest, type UpdateDiscountRuleResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WeeklySchedule, bulkUpdateDiscountRuleTags, bulkUpdateDiscountRuleTagsByFilter, createDiscountRule, deleteDiscountRule, getDiscountRule, onDiscountRuleCreated, onDiscountRuleDeleted, onDiscountRuleUpdated, queryDiscountRules, typedQueryDiscountRules, updateDiscountRule, utils };
1610
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ActiveTimeInfo, type Address, type And, type AppliedDiscount, type AppliedDiscountRule, AppliedSubjectType, type AppliedSubjectTypeWithLiterals, type BaseEventMetadata, type BuyXGetYInfo, type BuyerInfo, type CatalogItemFilter, type CatalogReference, type CommonQueryWithEntityContext, type ContactSegments, type ContactTags, type CreateDiscountRuleApplicationErrors, type CreateDiscountRuleRequest, type CreateDiscountRuleResponse, type CreateDiscountRuleValidationErrors, type CursorPaging, type Cursors, type Custom, type CustomFilter, type CustomerBuy, type CustomerBuyConditionOneOf, type CustomerEligibility, type CustomerEligibilityOptionsOneOf, type CustomerGet, DayOfWeek, type DayOfWeekWithLiterals, type DeleteDiscountRuleRequest, type DeleteDiscountRuleResponse, type Discount, type DiscountConfig, type DiscountDiscountOneOf, type DiscountRule, type DiscountRuleCreatedEnvelope, type DiscountRuleDeletedEnvelope, type DiscountRuleName, type DiscountRuleQuery, type DiscountRuleQuerySpec, type DiscountRuleUpdatedEnvelope, type DiscountRuleUsageLimitReached, type DiscountRulesQueryBuilder, type DiscountRulesQueryResult, type DiscountSettings, type DiscountTrigger, type DiscountTriggerTriggerOneOf, DiscountType, type DiscountTypeWithLiterals, type Discounts, type DomainEvent, type DomainEventBodyOneOf, EligibilityType, type EligibilityTypeWithLiterals, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetAppliedDiscountsRequest, type GetAppliedDiscountsResponse, type GetDiscountRuleRequest, type GetDiscountRuleResponse, type IdentificationData, type IdentificationDataIdOneOf, type IndividualMembers, type ItemCombination, type ItemCombinationLineItem, type ItemQuantityRange, type LineItem, type MessageEnvelope, type MultiCurrencyPrice, type Or, type PlatformPaging, type PlatformPagingMetadata, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type QuantityBased, type QueryDiscountRulesRequest, type QueryDiscountRulesResponse, type Recurrence, type RestoreInfo, type Scope, type ScopeScopeItemsOneOf, ScopeType, type ScopeTypeWithLiterals, type ShippingInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecificItemsInfo, Status, type StatusWithLiterals, type SubtotalRange, type TagList, type TagReference, type Tags, type TagsModified, type TimeOfDay, type TimeWindow, TriggerType, type TriggerTypeWithLiterals, Type, type TypeWithLiterals, type UpdateDiscountRule, type UpdateDiscountRuleRequest, type UpdateDiscountRuleResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WeeklySchedule, createDiscountRule, deleteDiscountRule, getDiscountRule, onDiscountRuleCreated, onDiscountRuleDeleted, onDiscountRuleUpdated, queryDiscountRules, typedQueryDiscountRules, updateDiscountRule, utils };
@@ -30,8 +30,6 @@ __export(index_typings_exports, {
30
30
  TriggerType: () => TriggerType,
31
31
  Type: () => Type,
32
32
  WebhookIdentityType: () => WebhookIdentityType,
33
- bulkUpdateDiscountRuleTags: () => bulkUpdateDiscountRuleTags2,
34
- bulkUpdateDiscountRuleTagsByFilter: () => bulkUpdateDiscountRuleTagsByFilter2,
35
33
  createDiscountRule: () => createDiscountRule2,
36
34
  deleteDiscountRule: () => deleteDiscountRule2,
37
35
  getDiscountRule: () => getDiscountRule2,
@@ -309,65 +307,20 @@ function queryDiscountRules(payload) {
309
307
  }
310
308
  return __queryDiscountRules;
311
309
  }
312
- function bulkUpdateDiscountRuleTags(payload) {
313
- function __bulkUpdateDiscountRuleTags({ host }) {
314
- const metadata = {
315
- entityFqdn: "wix.ecom.discounts.v1.discount_rule",
316
- method: "POST",
317
- methodFqn: "com.wix.ecom.discounts.DiscountRuleService.BulkUpdateDiscountRuleTags",
318
- packageName: PACKAGE_NAME,
319
- migrationOptions: {
320
- optInTransformResponse: true
321
- },
322
- url: resolveComWixEcomDiscountsDiscountRuleServiceUrl({
323
- protoPath: "/v1/bulk/discount-rules/update-tags",
324
- data: payload,
325
- host
326
- }),
327
- data: payload
328
- };
329
- return metadata;
330
- }
331
- return __bulkUpdateDiscountRuleTags;
332
- }
333
- function bulkUpdateDiscountRuleTagsByFilter(payload) {
334
- function __bulkUpdateDiscountRuleTagsByFilter({ host }) {
335
- const metadata = {
336
- entityFqdn: "wix.ecom.discounts.v1.discount_rule",
337
- method: "POST",
338
- methodFqn: "com.wix.ecom.discounts.DiscountRuleService.BulkUpdateDiscountRuleTagsByFilter",
339
- packageName: PACKAGE_NAME,
340
- migrationOptions: {
341
- optInTransformResponse: true
342
- },
343
- url: resolveComWixEcomDiscountsDiscountRuleServiceUrl({
344
- protoPath: "/v1/bulk/discount-rules/update-tags-by-filter",
345
- data: payload,
346
- host
347
- }),
348
- data: payload
349
- };
350
- return metadata;
351
- }
352
- return __bulkUpdateDiscountRuleTagsByFilter;
353
- }
354
310
 
355
311
  // src/ecom-discounts-v1-discount-rule-discount-rules.universal.ts
356
312
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
357
313
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
358
314
  var ScopeType = /* @__PURE__ */ ((ScopeType2) => {
359
- ScopeType2["UNDEFINED_SCOPE"] = "UNDEFINED_SCOPE";
360
315
  ScopeType2["CATALOG_ITEM"] = "CATALOG_ITEM";
361
316
  ScopeType2["CUSTOM_FILTER"] = "CUSTOM_FILTER";
362
317
  return ScopeType2;
363
318
  })(ScopeType || {});
364
319
  var EligibilityType = /* @__PURE__ */ ((EligibilityType2) => {
365
- EligibilityType2["UNKNOWN_ELIGIBILITY_TYPE"] = "UNKNOWN_ELIGIBILITY_TYPE";
366
320
  EligibilityType2["INDIVIDUAL_MEMBERS"] = "INDIVIDUAL_MEMBERS";
367
321
  return EligibilityType2;
368
322
  })(EligibilityType || {});
369
323
  var TriggerType = /* @__PURE__ */ ((TriggerType2) => {
370
- TriggerType2["UNDEFINED"] = "UNDEFINED";
371
324
  TriggerType2["AND"] = "AND";
372
325
  TriggerType2["SUBTOTAL_RANGE"] = "SUBTOTAL_RANGE";
373
326
  TriggerType2["ITEM_QUANTITY_RANGE"] = "ITEM_QUANTITY_RANGE";
@@ -377,7 +330,6 @@ var TriggerType = /* @__PURE__ */ ((TriggerType2) => {
377
330
  return TriggerType2;
378
331
  })(TriggerType || {});
379
332
  var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
380
- DayOfWeek2["UNKOWN_DAY_OF_WEEK"] = "UNKOWN_DAY_OF_WEEK";
381
333
  DayOfWeek2["MON"] = "MON";
382
334
  DayOfWeek2["TUE"] = "TUE";
383
335
  DayOfWeek2["WED"] = "WED";
@@ -388,12 +340,10 @@ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
388
340
  return DayOfWeek2;
389
341
  })(DayOfWeek || {});
390
342
  var Type = /* @__PURE__ */ ((Type2) => {
391
- Type2["UNDEFINED"] = "UNDEFINED";
392
343
  Type2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
393
344
  return Type2;
394
345
  })(Type || {});
395
346
  var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
396
- DiscountType2["UNDEFINED"] = "UNDEFINED";
397
347
  DiscountType2["PERCENTAGE"] = "PERCENTAGE";
398
348
  DiscountType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
399
349
  DiscountType2["FIXED_PRICE"] = "FIXED_PRICE";
@@ -401,14 +351,12 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
401
351
  return DiscountType2;
402
352
  })(DiscountType || {});
403
353
  var Status = /* @__PURE__ */ ((Status2) => {
404
- Status2["UNDEFINED"] = "UNDEFINED";
405
354
  Status2["LIVE"] = "LIVE";
406
355
  Status2["EXPIRED"] = "EXPIRED";
407
356
  Status2["PENDING"] = "PENDING";
408
357
  return Status2;
409
358
  })(Status || {});
410
359
  var AppliedSubjectType = /* @__PURE__ */ ((AppliedSubjectType2) => {
411
- AppliedSubjectType2["UNDEFINED"] = "UNDEFINED";
412
360
  AppliedSubjectType2["ALL_ITEMS"] = "ALL_ITEMS";
413
361
  AppliedSubjectType2["LOWEST_PRICED_ITEM"] = "LOWEST_PRICED_ITEM";
414
362
  return AppliedSubjectType2;
@@ -598,72 +546,6 @@ var utils = {
598
546
  ...(0, import_query_builder_utils.createQueryUtils)()
599
547
  }
600
548
  };
601
- async function bulkUpdateDiscountRuleTags2(discountRuleIds, options) {
602
- const { httpClient, sideEffects } = arguments[2];
603
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
604
- discountRuleIds,
605
- assignTags: options?.assignTags,
606
- unassignTags: options?.unassignTags
607
- });
608
- const reqOpts = bulkUpdateDiscountRuleTags(
609
- payload
610
- );
611
- sideEffects?.onSiteCall?.();
612
- try {
613
- const result = await httpClient.request(reqOpts);
614
- sideEffects?.onSuccess?.(result);
615
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
616
- } catch (err) {
617
- const transformedError = (0, import_transform_error.transformError)(
618
- err,
619
- {
620
- spreadPathsToArguments: {},
621
- explicitPathsToArguments: {
622
- discountRuleIds: "$[0]",
623
- assignTags: "$[1].assignTags",
624
- unassignTags: "$[1].unassignTags"
625
- },
626
- singleArgumentUnchanged: false
627
- },
628
- ["discountRuleIds", "options"]
629
- );
630
- sideEffects?.onError?.(err);
631
- throw transformedError;
632
- }
633
- }
634
- async function bulkUpdateDiscountRuleTagsByFilter2(filter, options) {
635
- const { httpClient, sideEffects } = arguments[2];
636
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
637
- filter,
638
- assignTags: options?.assignTags,
639
- unassignTags: options?.unassignTags
640
- });
641
- const reqOpts = bulkUpdateDiscountRuleTagsByFilter(
642
- payload
643
- );
644
- sideEffects?.onSiteCall?.();
645
- try {
646
- const result = await httpClient.request(reqOpts);
647
- sideEffects?.onSuccess?.(result);
648
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
649
- } catch (err) {
650
- const transformedError = (0, import_transform_error.transformError)(
651
- err,
652
- {
653
- spreadPathsToArguments: {},
654
- explicitPathsToArguments: {
655
- filter: "$[0]",
656
- assignTags: "$[1].assignTags",
657
- unassignTags: "$[1].unassignTags"
658
- },
659
- singleArgumentUnchanged: false
660
- },
661
- ["filter", "options"]
662
- );
663
- sideEffects?.onError?.(err);
664
- throw transformedError;
665
- }
666
- }
667
549
  // Annotate the CommonJS export names for ESM import in node:
668
550
  0 && (module.exports = {
669
551
  AppliedSubjectType,
@@ -676,8 +558,6 @@ async function bulkUpdateDiscountRuleTagsByFilter2(filter, options) {
676
558
  TriggerType,
677
559
  Type,
678
560
  WebhookIdentityType,
679
- bulkUpdateDiscountRuleTags,
680
- bulkUpdateDiscountRuleTagsByFilter,
681
561
  createDiscountRule,
682
562
  deleteDiscountRule,
683
563
  getDiscountRule,