@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 };
package/build/es/meta.mjs CHANGED
@@ -157,6 +157,9 @@ function createPoolDefinition(payload) {
157
157
  method: "POST",
158
158
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.CreatePoolDefinition",
159
159
  packageName: PACKAGE_NAME,
160
+ migrationOptions: {
161
+ optInTransformResponse: true
162
+ },
160
163
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
161
164
  protoPath: "/v1/pool-definitions",
162
165
  data: serializedData,
@@ -193,6 +196,9 @@ function bulkCreatePoolDefinitions(payload) {
193
196
  method: "POST",
194
197
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.BulkCreatePoolDefinitions",
195
198
  packageName: PACKAGE_NAME,
199
+ migrationOptions: {
200
+ optInTransformResponse: true
201
+ },
196
202
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
197
203
  protoPath: "/v1/bulk/pool-definitions/create",
198
204
  data: serializedData,
@@ -233,6 +239,9 @@ function updatePoolDefinition(payload) {
233
239
  method: "PATCH",
234
240
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.UpdatePoolDefinition",
235
241
  packageName: PACKAGE_NAME,
242
+ migrationOptions: {
243
+ optInTransformResponse: true
244
+ },
236
245
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
237
246
  protoPath: "/v1/pool-definitions/{poolDefinition.id}",
238
247
  data: serializedData,
@@ -273,6 +282,9 @@ function bulkUpdatePoolDefinitions(payload) {
273
282
  method: "POST",
274
283
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.BulkUpdatePoolDefinitions",
275
284
  packageName: PACKAGE_NAME,
285
+ migrationOptions: {
286
+ optInTransformResponse: true
287
+ },
276
288
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
277
289
  protoPath: "/v1/bulk/pool-definitions/update",
278
290
  data: serializedData,
@@ -300,6 +312,9 @@ function deletePoolDefinition(payload) {
300
312
  method: "DELETE",
301
313
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.DeletePoolDefinition",
302
314
  packageName: PACKAGE_NAME,
315
+ migrationOptions: {
316
+ optInTransformResponse: true
317
+ },
303
318
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
304
319
  protoPath: "/v1/pool-definitions/{poolDefinitionId}",
305
320
  data: payload,
@@ -318,6 +333,9 @@ function bulkDeletePoolDefinitions(payload) {
318
333
  method: "POST",
319
334
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.BulkDeletePoolDefinitions",
320
335
  packageName: PACKAGE_NAME,
336
+ migrationOptions: {
337
+ optInTransformResponse: true
338
+ },
321
339
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
322
340
  protoPath: "/v1/bulk/pool-definitions/delete",
323
341
  data: payload,
@@ -345,6 +363,9 @@ function getPoolDefinition(payload) {
345
363
  method: "GET",
346
364
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.GetPoolDefinition",
347
365
  packageName: PACKAGE_NAME,
366
+ migrationOptions: {
367
+ optInTransformResponse: true
368
+ },
348
369
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
349
370
  protoPath: "/v1/pool-definitions/{poolDefinitionId}",
350
371
  data: payload,
@@ -372,6 +393,9 @@ function queryPoolDefinitions(payload) {
372
393
  method: "POST",
373
394
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.QueryPoolDefinitions",
374
395
  packageName: PACKAGE_NAME,
396
+ migrationOptions: {
397
+ optInTransformResponse: true
398
+ },
375
399
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
376
400
  protoPath: "/v1/pool-definitions/query",
377
401
  data: payload,
@@ -399,6 +423,9 @@ function addPoolDefinitionToProgramDefinition(payload) {
399
423
  method: "POST",
400
424
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.AddPoolDefinitionToProgramDefinition",
401
425
  packageName: PACKAGE_NAME,
426
+ migrationOptions: {
427
+ optInTransformResponse: true
428
+ },
402
429
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
403
430
  protoPath: "/v1/pool-definitions/program-definition/assign",
404
431
  data: payload,
@@ -426,6 +453,9 @@ function removePoolDefinitionFromProgramDefinition(payload) {
426
453
  method: "POST",
427
454
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.RemovePoolDefinitionFromProgramDefinition",
428
455
  packageName: PACKAGE_NAME,
456
+ migrationOptions: {
457
+ optInTransformResponse: true
458
+ },
429
459
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
430
460
  protoPath: "/v1/pool-definitions/program-definition/remove",
431
461
  data: payload,
@@ -453,6 +483,9 @@ function findPoolDefinitionsByProgramDefinition(payload) {
453
483
  method: "POST",
454
484
  methodFqn: "wix.benefit_programs.v1.pool_definition.PoolDefinitionService.FindPoolDefinitionsByProgramDefinition",
455
485
  packageName: PACKAGE_NAME,
486
+ migrationOptions: {
487
+ optInTransformResponse: true
488
+ },
456
489
  url: resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl({
457
490
  protoPath: "/v1/pool-definitions/find-pool-definitions-by-program-definition",
458
491
  data: payload,
@@ -474,6 +507,60 @@ function findPoolDefinitionsByProgramDefinition(payload) {
474
507
  return __findPoolDefinitionsByProgramDefinition;
475
508
  }
476
509
 
510
+ // src/benefit-programs-v1-pool-definition-pool-definitions.types.ts
511
+ var PolicyExpressionType = /* @__PURE__ */ ((PolicyExpressionType2) => {
512
+ PolicyExpressionType2["UNKNOWN"] = "UNKNOWN";
513
+ PolicyExpressionType2["OPERATOR_NOT"] = "OPERATOR_NOT";
514
+ PolicyExpressionType2["OPERATOR_AND"] = "OPERATOR_AND";
515
+ PolicyExpressionType2["OPERATOR_OR"] = "OPERATOR_OR";
516
+ PolicyExpressionType2["POLICY"] = "POLICY";
517
+ return PolicyExpressionType2;
518
+ })(PolicyExpressionType || {});
519
+ var Type = /* @__PURE__ */ ((Type2) => {
520
+ Type2["UNKNOWN"] = "UNKNOWN";
521
+ Type2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
522
+ Type2["RATE_LIMITED"] = "RATE_LIMITED";
523
+ Type2["CUSTOM"] = "CUSTOM";
524
+ return Type2;
525
+ })(Type || {});
526
+ var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
527
+ WeekDay2["UNKNOWN"] = "UNKNOWN";
528
+ WeekDay2["MONDAY"] = "MONDAY";
529
+ WeekDay2["TUESDAY"] = "TUESDAY";
530
+ WeekDay2["WEDNESDAY"] = "WEDNESDAY";
531
+ WeekDay2["THURSDAY"] = "THURSDAY";
532
+ WeekDay2["FRIDAY"] = "FRIDAY";
533
+ WeekDay2["SATURDAY"] = "SATURDAY";
534
+ WeekDay2["SUNDAY"] = "SUNDAY";
535
+ return WeekDay2;
536
+ })(WeekDay || {});
537
+ var RateLimitedPolicyType = /* @__PURE__ */ ((RateLimitedPolicyType2) => {
538
+ RateLimitedPolicyType2["UNKNOWN"] = "UNKNOWN";
539
+ RateLimitedPolicyType2["FIXED_INTERVAL"] = "FIXED_INTERVAL";
540
+ RateLimitedPolicyType2["PER_CYCLE"] = "PER_CYCLE";
541
+ return RateLimitedPolicyType2;
542
+ })(RateLimitedPolicyType || {});
543
+ var Cascade = /* @__PURE__ */ ((Cascade2) => {
544
+ Cascade2["UNKNOWN_CASCADE"] = "UNKNOWN_CASCADE";
545
+ Cascade2["NEXT_RENEWAL"] = "NEXT_RENEWAL";
546
+ Cascade2["IMMEDIATELY"] = "IMMEDIATELY";
547
+ Cascade2["FUTURE_PROVISIONS"] = "FUTURE_PROVISIONS";
548
+ return Cascade2;
549
+ })(Cascade || {});
550
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
551
+ SortOrder2["ASC"] = "ASC";
552
+ SortOrder2["DESC"] = "DESC";
553
+ return SortOrder2;
554
+ })(SortOrder || {});
555
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
556
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
557
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
558
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
559
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
560
+ WebhookIdentityType2["APP"] = "APP";
561
+ return WebhookIdentityType2;
562
+ })(WebhookIdentityType || {});
563
+
477
564
  // src/benefit-programs-v1-pool-definition-pool-definitions.meta.ts
478
565
  function createPoolDefinition2() {
479
566
  const payload = {};
@@ -686,6 +773,13 @@ function findPoolDefinitionsByProgramDefinition2() {
686
773
  };
687
774
  }
688
775
  export {
776
+ Cascade as CascadeOriginal,
777
+ PolicyExpressionType as PolicyExpressionTypeOriginal,
778
+ RateLimitedPolicyType as RateLimitedPolicyTypeOriginal,
779
+ SortOrder as SortOrderOriginal,
780
+ Type as TypeOriginal,
781
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
782
+ WeekDay as WeekDayOriginal,
689
783
  addPoolDefinitionToProgramDefinition2 as addPoolDefinitionToProgramDefinition,
690
784
  bulkCreatePoolDefinitions2 as bulkCreatePoolDefinitions,
691
785
  bulkDeletePoolDefinitions2 as bulkDeletePoolDefinitions,