@wix/auto_sdk_benefit-programs_pool-definitions 1.0.26 → 1.0.28

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.
@@ -115,6 +115,185 @@ interface Benefit {
115
115
  */
116
116
  description?: string | null;
117
117
  }
118
+ interface PolicyExpression extends PolicyExpressionExpressionOneOf {
119
+ /** Benefits can be redeemed if the expression in this object is not fulfilled. */
120
+ operatorNotOptions?: PolicyExpressionNot;
121
+ /** Benefits can be redeemed if all the expression in this object's array are fulfilled. */
122
+ operatorAndOptions?: PolicyExpressionAnd;
123
+ /** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */
124
+ operatorOrOptions?: PolicyExpressionOr;
125
+ /** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */
126
+ policyOptions?: Policy;
127
+ /** Policy expression type. */
128
+ type?: PolicyExpressionTypeWithLiterals;
129
+ }
130
+ /** @oneof */
131
+ interface PolicyExpressionExpressionOneOf {
132
+ /** Benefits can be redeemed if the expression in this object is not fulfilled. */
133
+ operatorNotOptions?: PolicyExpressionNot;
134
+ /** Benefits can be redeemed if all the expression in this object's array are fulfilled. */
135
+ operatorAndOptions?: PolicyExpressionAnd;
136
+ /** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */
137
+ operatorOrOptions?: PolicyExpressionOr;
138
+ /** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */
139
+ policyOptions?: Policy;
140
+ }
141
+ declare enum PolicyExpressionType {
142
+ UNKNOWN = "UNKNOWN",
143
+ /** Use with `operatorNotOptions`. */
144
+ OPERATOR_NOT = "OPERATOR_NOT",
145
+ /** Use with `operatorAndOptions`. */
146
+ OPERATOR_AND = "OPERATOR_AND",
147
+ /** Use with `operatorOrOptions`. */
148
+ OPERATOR_OR = "OPERATOR_OR",
149
+ /** Use with `policyOptions`. */
150
+ POLICY = "POLICY"
151
+ }
152
+ /** @enumType */
153
+ type PolicyExpressionTypeWithLiterals = PolicyExpressionType | 'UNKNOWN' | 'OPERATOR_NOT' | 'OPERATOR_AND' | 'OPERATOR_OR' | 'POLICY';
154
+ interface PolicyExpressionNot {
155
+ /** Policy expression. If this expression is not fulfilled, benefits can be redeemed. */
156
+ expression?: PolicyExpression;
157
+ }
158
+ interface PolicyExpressionAnd {
159
+ /**
160
+ * Array of policy expressions. If all expressions are fulfilled, benefits can be redeemed.
161
+ * @minSize 2
162
+ * @maxSize 10
163
+ */
164
+ expressions?: PolicyExpression[];
165
+ }
166
+ interface PolicyExpressionOr {
167
+ /**
168
+ * Array of policy expressions. If at least one expression is fulfilled, benefits can be redeemed.
169
+ * @minSize 2
170
+ * @maxSize 10
171
+ */
172
+ expressions?: PolicyExpression[];
173
+ }
174
+ interface Policy extends PolicyPolicyOneOf {
175
+ /**
176
+ * Defines an interval during which the policy expression is fulfilled.
177
+ *
178
+ * If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.
179
+ */
180
+ fixedIntervalOptions?: FixedIntervalPolicy;
181
+ /** Maximum amount of times a benefit can be redeemed during a specified time period. */
182
+ rateLimitedOptions?: RateLimitedPolicy;
183
+ /** Custom policy defined by a different app. */
184
+ customOptions?: CustomPolicy;
185
+ /** Policy type. */
186
+ type?: TypeWithLiterals;
187
+ }
188
+ /** @oneof */
189
+ interface PolicyPolicyOneOf {
190
+ /**
191
+ * Defines an interval during which the policy expression is fulfilled.
192
+ *
193
+ * If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.
194
+ */
195
+ fixedIntervalOptions?: FixedIntervalPolicy;
196
+ /** Maximum amount of times a benefit can be redeemed during a specified time period. */
197
+ rateLimitedOptions?: RateLimitedPolicy;
198
+ /** Custom policy defined by a different app. */
199
+ customOptions?: CustomPolicy;
200
+ }
201
+ declare enum Type {
202
+ /** Unknown policy type. */
203
+ UNKNOWN = "UNKNOWN",
204
+ /** Use with `fixedIntervalOptions`. */
205
+ FIXED_INTERVAL = "FIXED_INTERVAL",
206
+ /** Use with `rateLimitedOptions`. */
207
+ RATE_LIMITED = "RATE_LIMITED",
208
+ /** Use with `customOptions`. */
209
+ CUSTOM = "CUSTOM"
210
+ }
211
+ /** @enumType */
212
+ type TypeWithLiterals = Type | 'UNKNOWN' | 'FIXED_INTERVAL' | 'RATE_LIMITED' | 'CUSTOM';
213
+ interface FixedIntervalPolicy {
214
+ /** Weekday that this interval starts from. If this field is defined, then `toWeekDay` is required. */
215
+ fromWeekDay?: WeekDayWithLiterals;
216
+ /** Weekday that this interval ends at. If this field is defined, then `fromWeekDay` is required. */
217
+ toWeekDay?: WeekDayWithLiterals;
218
+ /**
219
+ * Hour that this interval starts from. If this field is defined, then `toHour` is required.
220
+ * @max 23
221
+ */
222
+ fromHour?: number | null;
223
+ /**
224
+ * Hour that this interval ends at. If this field is defined, then `fromHour` is required.
225
+ * @max 23
226
+ */
227
+ toHour?: number | null;
228
+ /**
229
+ * Minute that this interval starts from. If this field is defined, then `toMinute` is required.
230
+ * @max 59
231
+ */
232
+ fromMinute?: number | null;
233
+ /**
234
+ * Minute that this interval ends at. If this field is defined, then `fromMinute` is required.
235
+ * @max 59
236
+ */
237
+ toMinute?: number | null;
238
+ }
239
+ declare enum WeekDay {
240
+ /** Unknown weekday. */
241
+ UNKNOWN = "UNKNOWN",
242
+ /** Monday. */
243
+ MONDAY = "MONDAY",
244
+ /** Tuesday. */
245
+ TUESDAY = "TUESDAY",
246
+ /** Wednesday. */
247
+ WEDNESDAY = "WEDNESDAY",
248
+ /** Thursday. */
249
+ THURSDAY = "THURSDAY",
250
+ /** Friday. */
251
+ FRIDAY = "FRIDAY",
252
+ /** Saturday. */
253
+ SATURDAY = "SATURDAY",
254
+ /** Sunday. */
255
+ SUNDAY = "SUNDAY"
256
+ }
257
+ /** @enumType */
258
+ type WeekDayWithLiterals = WeekDay | 'UNKNOWN' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
259
+ interface RateLimitedPolicy extends RateLimitedPolicyPeriodOneOf {
260
+ /** Fixed interval used to limit benefit redemption. */
261
+ fixedIntervalOptions?: FixedIntervalPolicy;
262
+ /** Maximum number of times a benefit can be redeemed per specified time period. */
263
+ times?: number;
264
+ /** Time period type. */
265
+ type?: RateLimitedPolicyTypeWithLiterals;
266
+ }
267
+ /** @oneof */
268
+ interface RateLimitedPolicyPeriodOneOf {
269
+ /** Fixed interval used to limit benefit redemption. */
270
+ fixedIntervalOptions?: FixedIntervalPolicy;
271
+ }
272
+ declare enum RateLimitedPolicyType {
273
+ /** Unknown rate limit method. */
274
+ UNKNOWN = "UNKNOWN",
275
+ /** Time period is defined using `fixedIntervalOptions`. */
276
+ FIXED_INTERVAL = "FIXED_INTERVAL",
277
+ /** Time period is from one program renewal to the next. */
278
+ PER_CYCLE = "PER_CYCLE"
279
+ }
280
+ /** @enumType */
281
+ type RateLimitedPolicyTypeWithLiterals = RateLimitedPolicyType | 'UNKNOWN' | 'FIXED_INTERVAL' | 'PER_CYCLE';
282
+ /** Custom policy as implemented by the Entitlement Policy Provider */
283
+ interface CustomPolicy {
284
+ /**
285
+ * Policy ID.
286
+ * @format GUID
287
+ */
288
+ id?: string;
289
+ /**
290
+ * ID of the app providing the policy.
291
+ * @format GUID
292
+ */
293
+ appId?: string | null;
294
+ /** Additional information for this custom policy. */
295
+ additionalData?: Record<string, any> | null;
296
+ }
118
297
  interface CreditConfiguration {
119
298
  /**
120
299
  * Initial available amount for associated balances.
@@ -163,6 +342,17 @@ interface ProgramDefinitionInfo {
163
342
  */
164
343
  externalId?: string | null;
165
344
  }
345
+ interface PoolDefinitionAddedToProgramDefinition {
346
+ /** PoolDefinition that was added to the program definition */
347
+ poolDefinition?: PoolDefinition;
348
+ /**
349
+ * Program Definition that the pool definition was added to
350
+ * @format GUID
351
+ */
352
+ programDefinitionId?: string;
353
+ /** Type of cascade */
354
+ cascadeType?: CascadeWithLiterals;
355
+ }
166
356
  declare enum Cascade {
167
357
  /** Unknown cascade. */
168
358
  UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
@@ -175,6 +365,29 @@ declare enum Cascade {
175
365
  }
176
366
  /** @enumType */
177
367
  type CascadeWithLiterals = Cascade | 'UNKNOWN_CASCADE' | 'NEXT_RENEWAL' | 'IMMEDIATELY' | 'FUTURE_PROVISIONS';
368
+ interface PoolDefinitionRemovedFromProgramDefinition {
369
+ /** PoolDefinition that was removed from the program definition */
370
+ poolDefinition?: PoolDefinition;
371
+ /**
372
+ * Program Definition that the pool definition was removed from
373
+ * @format GUID
374
+ */
375
+ programDefinitionId?: string;
376
+ /** Type of cascade */
377
+ cascadeType?: CascadeWithLiterals;
378
+ }
379
+ /** This event is needed to support legacy benefit notification event. Should be only consumed in the proxy. */
380
+ interface PoolDefinitionUpdatedProxySupport {
381
+ /** PoolDefinition after the update */
382
+ currentPoolDefinition?: PoolDefinition;
383
+ /** PoolDefinition before the update */
384
+ previousPoolDefinition?: PoolDefinition;
385
+ }
386
+ /** This event is needed to support legacy benefit notification event. Should be only consumed in the proxy. */
387
+ interface PoolDefinitionDeletedProxySupport {
388
+ /** PoolDefinition which was deleted */
389
+ deletedPoolDefinition?: PoolDefinition;
390
+ }
178
391
  interface CreatePoolDefinitionRequest {
179
392
  /** Pool definition to create. */
180
393
  poolDefinition: PoolDefinition;
@@ -483,6 +696,166 @@ interface FindPoolDefinitionsByProgramDefinitionResponse {
483
696
  /** Retrieved pool definitions. */
484
697
  poolDefinitions?: PoolDefinition[];
485
698
  }
699
+ interface DomainEvent extends DomainEventBodyOneOf {
700
+ createdEvent?: EntityCreatedEvent;
701
+ updatedEvent?: EntityUpdatedEvent;
702
+ deletedEvent?: EntityDeletedEvent;
703
+ actionEvent?: ActionEvent;
704
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
705
+ id?: string;
706
+ /**
707
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
708
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
709
+ */
710
+ entityFqdn?: string;
711
+ /**
712
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
713
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
714
+ */
715
+ slug?: string;
716
+ /** ID of the entity associated with the event. */
717
+ entityId?: string;
718
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
719
+ eventTime?: Date | null;
720
+ /**
721
+ * Whether the event was triggered as a result of a privacy regulation application
722
+ * (for example, GDPR).
723
+ */
724
+ triggeredByAnonymizeRequest?: boolean | null;
725
+ /** If present, indicates the action that triggered the event. */
726
+ originatedFrom?: string | null;
727
+ /**
728
+ * 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.
729
+ * 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.
730
+ */
731
+ entityEventSequence?: string | null;
732
+ }
733
+ /** @oneof */
734
+ interface DomainEventBodyOneOf {
735
+ createdEvent?: EntityCreatedEvent;
736
+ updatedEvent?: EntityUpdatedEvent;
737
+ deletedEvent?: EntityDeletedEvent;
738
+ actionEvent?: ActionEvent;
739
+ }
740
+ interface EntityCreatedEvent {
741
+ entityAsJson?: string;
742
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
743
+ restoreInfo?: RestoreInfo;
744
+ }
745
+ interface RestoreInfo {
746
+ deletedDate?: Date | null;
747
+ }
748
+ interface EntityUpdatedEvent {
749
+ /**
750
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
751
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
752
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
753
+ */
754
+ currentEntityAsJson?: string;
755
+ }
756
+ interface EntityDeletedEvent {
757
+ /** Entity that was deleted. */
758
+ deletedEntityAsJson?: string | null;
759
+ }
760
+ interface ActionEvent {
761
+ bodyAsJson?: string;
762
+ }
763
+ interface MessageEnvelope {
764
+ /**
765
+ * App instance ID.
766
+ * @format GUID
767
+ */
768
+ instanceId?: string | null;
769
+ /**
770
+ * Event type.
771
+ * @maxLength 150
772
+ */
773
+ eventType?: string;
774
+ /** The identification type and identity data. */
775
+ identity?: IdentificationData;
776
+ /** Stringify payload. */
777
+ data?: string;
778
+ }
779
+ interface IdentificationData extends IdentificationDataIdOneOf {
780
+ /**
781
+ * ID of a site visitor that has not logged in to the site.
782
+ * @format GUID
783
+ */
784
+ anonymousVisitorId?: string;
785
+ /**
786
+ * ID of a site visitor that has logged in to the site.
787
+ * @format GUID
788
+ */
789
+ memberId?: string;
790
+ /**
791
+ * ID of a Wix user (site owner, contributor, etc.).
792
+ * @format GUID
793
+ */
794
+ wixUserId?: string;
795
+ /**
796
+ * ID of an app.
797
+ * @format GUID
798
+ */
799
+ appId?: string;
800
+ /** @readonly */
801
+ identityType?: WebhookIdentityTypeWithLiterals;
802
+ }
803
+ /** @oneof */
804
+ interface IdentificationDataIdOneOf {
805
+ /**
806
+ * ID of a site visitor that has not logged in to the site.
807
+ * @format GUID
808
+ */
809
+ anonymousVisitorId?: string;
810
+ /**
811
+ * ID of a site visitor that has logged in to the site.
812
+ * @format GUID
813
+ */
814
+ memberId?: string;
815
+ /**
816
+ * ID of a Wix user (site owner, contributor, etc.).
817
+ * @format GUID
818
+ */
819
+ wixUserId?: string;
820
+ /**
821
+ * ID of an app.
822
+ * @format GUID
823
+ */
824
+ appId?: string;
825
+ }
826
+ declare enum WebhookIdentityType {
827
+ UNKNOWN = "UNKNOWN",
828
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
829
+ MEMBER = "MEMBER",
830
+ WIX_USER = "WIX_USER",
831
+ APP = "APP"
832
+ }
833
+ /** @enumType */
834
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
835
+ /** @docsIgnore */
836
+ type UpdatePoolDefinitionValidationErrors = {
837
+ ruleName?: 'cascade_is_required';
838
+ } | {
839
+ ruleName?: 'cascade_value_not_supported';
840
+ };
841
+ /** @docsIgnore */
842
+ type BulkUpdatePoolDefinitionsValidationErrors = {
843
+ ruleName?: 'cascade_is_required';
844
+ } | {
845
+ ruleName?: 'cascade_value_not_supported';
846
+ };
847
+ /** @docsIgnore */
848
+ type AddPoolDefinitionToProgramDefinitionValidationErrors = {
849
+ ruleName?: 'cascade_is_required';
850
+ } | {
851
+ ruleName?: 'cascade_value_not_supported';
852
+ };
853
+ /** @docsIgnore */
854
+ type RemovePoolDefinitionFromProgramDefinitionValidationErrors = {
855
+ ruleName?: 'cascade_is_required';
856
+ } | {
857
+ ruleName?: 'cascade_value_not_supported';
858
+ };
486
859
 
487
860
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
488
861
  getUrl: (context: any) => string;
@@ -512,4 +885,4 @@ declare function addPoolDefinitionToProgramDefinition(): __PublicMethodMetaInfo<
512
885
  declare function removePoolDefinitionFromProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, RemovePoolDefinitionFromProgramDefinitionRequest$1, RemovePoolDefinitionFromProgramDefinitionRequest, RemovePoolDefinitionFromProgramDefinitionResponse$1, RemovePoolDefinitionFromProgramDefinitionResponse>;
513
886
  declare function findPoolDefinitionsByProgramDefinition(): __PublicMethodMetaInfo<'POST', {}, FindPoolDefinitionsByProgramDefinitionRequest$1, FindPoolDefinitionsByProgramDefinitionRequest, FindPoolDefinitionsByProgramDefinitionResponse$1, FindPoolDefinitionsByProgramDefinitionResponse>;
514
887
 
515
- export { type __PublicMethodMetaInfo, addPoolDefinitionToProgramDefinition, bulkCreatePoolDefinitions, bulkDeletePoolDefinitions, bulkUpdatePoolDefinitions, createPoolDefinition, deletePoolDefinition, findPoolDefinitionsByProgramDefinition, getPoolDefinition, queryPoolDefinitions, removePoolDefinitionFromProgramDefinition, updatePoolDefinition };
888
+ export { type ActionEvent as ActionEventOriginal, type AddPoolDefinitionToProgramDefinitionRequest as AddPoolDefinitionToProgramDefinitionRequestOriginal, type AddPoolDefinitionToProgramDefinitionResponse as AddPoolDefinitionToProgramDefinitionResponseOriginal, type AddPoolDefinitionToProgramDefinitionValidationErrors as AddPoolDefinitionToProgramDefinitionValidationErrorsOriginal, type ApplicationError as ApplicationErrorOriginal, type Benefit as BenefitOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreatePoolDefinitionsRequest as BulkCreatePoolDefinitionsRequestOriginal, type BulkCreatePoolDefinitionsResponse as BulkCreatePoolDefinitionsResponseOriginal, type BulkDeletePoolDefinitionsRequest as BulkDeletePoolDefinitionsRequestOriginal, type BulkDeletePoolDefinitionsResponse as BulkDeletePoolDefinitionsResponseOriginal, type BulkPoolDefinitionResult as BulkPoolDefinitionResultOriginal, type BulkUpdatePoolDefinitionsRequest as BulkUpdatePoolDefinitionsRequestOriginal, type BulkUpdatePoolDefinitionsResponse as BulkUpdatePoolDefinitionsResponseOriginal, type BulkUpdatePoolDefinitionsValidationErrors as BulkUpdatePoolDefinitionsValidationErrorsOriginal, Cascade as CascadeOriginal, type CascadeWithLiterals as CascadeWithLiteralsOriginal, type CreatePoolDefinitionRequest as CreatePoolDefinitionRequestOriginal, type CreatePoolDefinitionResponse as CreatePoolDefinitionResponseOriginal, type CreditConfiguration as CreditConfigurationOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomPolicy as CustomPolicyOriginal, type DeletePoolDefinitionRequest as DeletePoolDefinitionRequestOriginal, type DeletePoolDefinitionResponse as DeletePoolDefinitionResponseOriginal, type Details as DetailsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FindPoolDefinitionsByProgramDefinitionRequest as FindPoolDefinitionsByProgramDefinitionRequestOriginal, type FindPoolDefinitionsByProgramDefinitionResponse as FindPoolDefinitionsByProgramDefinitionResponseOriginal, type FixedIntervalPolicy as FixedIntervalPolicyOriginal, type GetPoolDefinitionRequest as GetPoolDefinitionRequestOriginal, type GetPoolDefinitionResponse as GetPoolDefinitionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type MaskedPoolDefinition as MaskedPoolDefinitionOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PolicyExpressionAnd as PolicyExpressionAndOriginal, type PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal, type PolicyExpressionNot as PolicyExpressionNotOriginal, type PolicyExpressionOr as PolicyExpressionOrOriginal, type PolicyExpression as PolicyExpressionOriginal, PolicyExpressionType as PolicyExpressionTypeOriginal, type PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal, type Policy as PolicyOriginal, type PolicyPolicyOneOf as PolicyPolicyOneOfOriginal, type PoolDefinitionAddedToProgramDefinition as PoolDefinitionAddedToProgramDefinitionOriginal, type PoolDefinitionDeletedProxySupport as PoolDefinitionDeletedProxySupportOriginal, type PoolDefinition as PoolDefinitionOriginal, type PoolDefinitionRemovedFromProgramDefinition as PoolDefinitionRemovedFromProgramDefinitionOriginal, type PoolDefinitionUpdatedProxySupport as PoolDefinitionUpdatedProxySupportOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type QueryPoolDefinitionsRequest as QueryPoolDefinitionsRequestOriginal, type QueryPoolDefinitionsResponse as QueryPoolDefinitionsResponseOriginal, type RateLimitedPolicy as RateLimitedPolicyOriginal, type RateLimitedPolicyPeriodOneOf as RateLimitedPolicyPeriodOneOfOriginal, RateLimitedPolicyType as RateLimitedPolicyTypeOriginal, type RateLimitedPolicyTypeWithLiterals as RateLimitedPolicyTypeWithLiteralsOriginal, type RemovePoolDefinitionFromProgramDefinitionRequest as RemovePoolDefinitionFromProgramDefinitionRequestOriginal, type RemovePoolDefinitionFromProgramDefinitionResponse as RemovePoolDefinitionFromProgramDefinitionResponseOriginal, type RemovePoolDefinitionFromProgramDefinitionValidationErrors as RemovePoolDefinitionFromProgramDefinitionValidationErrorsOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UpdatePoolDefinitionRequest as UpdatePoolDefinitionRequestOriginal, type UpdatePoolDefinitionResponse as UpdatePoolDefinitionResponseOriginal, type UpdatePoolDefinitionValidationErrors as UpdatePoolDefinitionValidationErrorsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeekDay as WeekDayOriginal, type WeekDayWithLiterals as WeekDayWithLiteralsOriginal, type __PublicMethodMetaInfo, addPoolDefinitionToProgramDefinition, bulkCreatePoolDefinitions, bulkDeletePoolDefinitions, bulkUpdatePoolDefinitions, createPoolDefinition, deletePoolDefinition, findPoolDefinitionsByProgramDefinition, getPoolDefinition, queryPoolDefinitions, removePoolDefinitionFromProgramDefinition, updatePoolDefinition };
@@ -20,6 +20,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ CascadeOriginal: () => Cascade,
24
+ PolicyExpressionTypeOriginal: () => PolicyExpressionType,
25
+ RateLimitedPolicyTypeOriginal: () => RateLimitedPolicyType,
26
+ SortOrderOriginal: () => SortOrder,
27
+ TypeOriginal: () => Type,
28
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
29
+ WeekDayOriginal: () => WeekDay,
23
30
  addPoolDefinitionToProgramDefinition: () => addPoolDefinitionToProgramDefinition2,
24
31
  bulkCreatePoolDefinitions: () => bulkCreatePoolDefinitions2,
25
32
  bulkDeletePoolDefinitions: () => bulkDeletePoolDefinitions2,
@@ -193,6 +200,9 @@ function createPoolDefinition(payload) {
193
200
  method: "POST",
194
201
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.CreatePoolDefinition",
195
202
  packageName: PACKAGE_NAME,
203
+ migrationOptions: {
204
+ optInTransformResponse: true
205
+ },
196
206
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
197
207
  protoPath: "/v1/pool-definitions",
198
208
  data: serializedData,
@@ -229,6 +239,9 @@ function bulkCreatePoolDefinitions(payload) {
229
239
  method: "POST",
230
240
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.BulkCreatePoolDefinitions",
231
241
  packageName: PACKAGE_NAME,
242
+ migrationOptions: {
243
+ optInTransformResponse: true
244
+ },
232
245
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
233
246
  protoPath: "/v1/bulk/pool-definitions/create",
234
247
  data: serializedData,
@@ -269,6 +282,9 @@ function updatePoolDefinition(payload) {
269
282
  method: "PATCH",
270
283
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.UpdatePoolDefinition",
271
284
  packageName: PACKAGE_NAME,
285
+ migrationOptions: {
286
+ optInTransformResponse: true
287
+ },
272
288
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
273
289
  protoPath: "/v1/pool-definitions/{poolDefinition.id}",
274
290
  data: serializedData,
@@ -309,6 +325,9 @@ function bulkUpdatePoolDefinitions(payload) {
309
325
  method: "POST",
310
326
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.BulkUpdatePoolDefinitions",
311
327
  packageName: PACKAGE_NAME,
328
+ migrationOptions: {
329
+ optInTransformResponse: true
330
+ },
312
331
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
313
332
  protoPath: "/v1/bulk/pool-definitions/update",
314
333
  data: serializedData,
@@ -336,6 +355,9 @@ function deletePoolDefinition(payload) {
336
355
  method: "DELETE",
337
356
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.DeletePoolDefinition",
338
357
  packageName: PACKAGE_NAME,
358
+ migrationOptions: {
359
+ optInTransformResponse: true
360
+ },
339
361
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
340
362
  protoPath: "/v1/pool-definitions/{poolDefinitionId}",
341
363
  data: payload,
@@ -354,6 +376,9 @@ function bulkDeletePoolDefinitions(payload) {
354
376
  method: "POST",
355
377
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.BulkDeletePoolDefinitions",
356
378
  packageName: PACKAGE_NAME,
379
+ migrationOptions: {
380
+ optInTransformResponse: true
381
+ },
357
382
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
358
383
  protoPath: "/v1/bulk/pool-definitions/delete",
359
384
  data: payload,
@@ -381,6 +406,9 @@ function getPoolDefinition(payload) {
381
406
  method: "GET",
382
407
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.GetPoolDefinition",
383
408
  packageName: PACKAGE_NAME,
409
+ migrationOptions: {
410
+ optInTransformResponse: true
411
+ },
384
412
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
385
413
  protoPath: "/v1/pool-definitions/{poolDefinitionId}",
386
414
  data: payload,
@@ -408,6 +436,9 @@ function queryPoolDefinitions(payload) {
408
436
  method: "POST",
409
437
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.QueryPoolDefinitions",
410
438
  packageName: PACKAGE_NAME,
439
+ migrationOptions: {
440
+ optInTransformResponse: true
441
+ },
411
442
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
412
443
  protoPath: "/v1/pool-definitions/query",
413
444
  data: payload,
@@ -435,6 +466,9 @@ function addPoolDefinitionToProgramDefinition(payload) {
435
466
  method: "POST",
436
467
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.AddPoolDefinitionToProgramDefinition",
437
468
  packageName: PACKAGE_NAME,
469
+ migrationOptions: {
470
+ optInTransformResponse: true
471
+ },
438
472
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
439
473
  protoPath: "/v1/pool-definitions/program-definition/assign",
440
474
  data: payload,
@@ -462,6 +496,9 @@ function removePoolDefinitionFromProgramDefinition(payload) {
462
496
  method: "POST",
463
497
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.RemovePoolDefinitionFromProgramDefinition",
464
498
  packageName: PACKAGE_NAME,
499
+ migrationOptions: {
500
+ optInTransformResponse: true
501
+ },
465
502
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
466
503
  protoPath: "/v1/pool-definitions/program-definition/remove",
467
504
  data: payload,
@@ -489,6 +526,9 @@ function findPoolDefinitionsByProgramDefinition(payload) {
489
526
  method: "POST",
490
527
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.FindPoolDefinitionsByProgramDefinition",
491
528
  packageName: PACKAGE_NAME,
529
+ migrationOptions: {
530
+ optInTransformResponse: true
531
+ },
492
532
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
493
533
  protoPath: "/v1/pool-definitions/find-pool-definitions-by-program-definition",
494
534
  data: payload,
@@ -510,6 +550,60 @@ function findPoolDefinitionsByProgramDefinition(payload) {
510
550
  return __findPoolDefinitionsByProgramDefinition;
511
551
  }
512
552
 
553
+ // src/benefit-programs-v1-pool-definition-pool-definitions.types.ts
554
+ var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
555
+ PolicyExpressionType2["UNKNOWN"] = "UNKNOWN";
556
+ PolicyExpressionType2["OPERATOR_NOT"] = "OPERATOR_NOT";
557
+ PolicyExpressionType2["OPERATOR_AND"] = "OPERATOR_AND";
558
+ PolicyExpressionType2["OPERATOR_OR"] = "OPERATOR_OR";
559
+ PolicyExpressionType2["POLICY"] = "POLICY";
560
+ return PolicyExpressionType2;
561
+ })(PolicyExpressionType || {});
562
+ var Type = /* @__PURE__ */ ((Type2) => {
563
+ Type2["UNKNOWN"] = "UNKNOWN";
564
+ Type2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
565
+ Type2["RATE_LIMITED"] = "RATE_LIMITED";
566
+ Type2["CUSTOM"] = "CUSTOM";
567
+ return Type2;
568
+ })(Type || {});
569
+ var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
570
+ WeekDay2["UNKNOWN"] = "UNKNOWN";
571
+ WeekDay2["MONDAY"] = "MONDAY";
572
+ WeekDay2["TUESDAY"] = "TUESDAY";
573
+ WeekDay2["WEDNESDAY"] = "WEDNESDAY";
574
+ WeekDay2["THURSDAY"] = "THURSDAY";
575
+ WeekDay2["FRIDAY"] = "FRIDAY";
576
+ WeekDay2["SATURDAY"] = "SATURDAY";
577
+ WeekDay2["SUNDAY"] = "SUNDAY";
578
+ return WeekDay2;
579
+ })(WeekDay || {});
580
+ var RateLimitedPolicyType = /* @__PURE__ */ ((RateLimitedPolicyType2) => {
581
+ RateLimitedPolicyType2["UNKNOWN"] = "UNKNOWN";
582
+ RateLimitedPolicyType2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
583
+ RateLimitedPolicyType2["PER_CYCLE"] = "PER_CYCLE";
584
+ return RateLimitedPolicyType2;
585
+ })(RateLimitedPolicyType || {});
586
+ var Cascade = /* @__PURE__ */ ((Cascade2) => {
587
+ Cascade2["UNKNOWN_CASCADE"] = "UNKNOWN_CASCADE";
588
+ Cascade2["NEXT_RENEWAL"] = "NEXT_RENEWAL";
589
+ Cascade2["IMMEDIATELY"] = "IMMEDIATELY";
590
+ Cascade2["FUTURE_PROVISIONS"] = "FUTURE_PROVISIONS";
591
+ return Cascade2;
592
+ })(Cascade || {});
593
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
594
+ SortOrder2["ASC"] = "ASC";
595
+ SortOrder2["DESC"] = "DESC";
596
+ return SortOrder2;
597
+ })(SortOrder || {});
598
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
599
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
600
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
601
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
602
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
603
+ WebhookIdentityType2["APP"] = "APP";
604
+ return WebhookIdentityType2;
605
+ })(WebhookIdentityType || {});
606
+
513
607
  // src/benefit-programs-v1-pool-definition-pool-definitions.meta.ts
514
608
  function createPoolDefinition2() {
515
609
  const payload = {};
@@ -723,6 +817,13 @@ function findPoolDefinitionsByProgramDefinition2() {
723
817
  }
724
818
  // Annotate the CommonJS export names for ESM import in node:
725
819
  0 && (module.exports = {
820
+ CascadeOriginal,
821
+ PolicyExpressionTypeOriginal,
822
+ RateLimitedPolicyTypeOriginal,
823
+ SortOrderOriginal,
824
+ TypeOriginal,
825
+ WebhookIdentityTypeOriginal,
826
+ WeekDayOriginal,
726
827
  addPoolDefinitionToProgramDefinition,
727
828
  bulkCreatePoolDefinitions,
728
829
  bulkDeletePoolDefinitions,