@wix/auto_sdk_benefit-programs_pool-items 1.0.11 → 1.0.13

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 (42) hide show
  1. package/build/cjs/index.js +2 -4
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +1 -9
  4. package/build/cjs/index.typings.js +1 -3
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/es/index.mjs +2 -4
  8. package/build/es/index.mjs.map +1 -1
  9. package/build/es/index.typings.d.mts +1 -9
  10. package/build/es/index.typings.mjs +1 -3
  11. package/build/es/index.typings.mjs.map +1 -1
  12. package/build/es/meta.mjs.map +1 -1
  13. package/build/internal/cjs/index.typings.d.ts +59 -9
  14. package/build/internal/cjs/meta.d.ts +86 -0
  15. package/build/internal/es/index.typings.d.mts +59 -9
  16. package/build/internal/es/meta.d.mts +86 -0
  17. package/package.json +5 -12
  18. package/build/cjs/schemas.d.ts +0 -121
  19. package/build/cjs/schemas.js +0 -299
  20. package/build/cjs/schemas.js.map +0 -1
  21. package/build/es/schemas.d.mts +0 -121
  22. package/build/es/schemas.mjs +0 -261
  23. package/build/es/schemas.mjs.map +0 -1
  24. package/build/internal/cjs/index.js +0 -258
  25. package/build/internal/cjs/index.js.map +0 -1
  26. package/build/internal/cjs/index.typings.js +0 -227
  27. package/build/internal/cjs/index.typings.js.map +0 -1
  28. package/build/internal/cjs/meta.js +0 -159
  29. package/build/internal/cjs/meta.js.map +0 -1
  30. package/build/internal/cjs/schemas.d.ts +0 -121
  31. package/build/internal/cjs/schemas.js +0 -299
  32. package/build/internal/cjs/schemas.js.map +0 -1
  33. package/build/internal/es/index.mjs +0 -228
  34. package/build/internal/es/index.mjs.map +0 -1
  35. package/build/internal/es/index.typings.mjs +0 -196
  36. package/build/internal/es/index.typings.mjs.map +0 -1
  37. package/build/internal/es/meta.mjs +0 -127
  38. package/build/internal/es/meta.mjs.map +0 -1
  39. package/build/internal/es/schemas.d.mts +0 -121
  40. package/build/internal/es/schemas.mjs +0 -261
  41. package/build/internal/es/schemas.mjs.map +0 -1
  42. package/schemas/package.json +0 -3
@@ -181,6 +181,30 @@ interface PoolItem {
181
181
  * @readonly
182
182
  */
183
183
  removed?: boolean | null;
184
+ /**
185
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
186
+ * @internal
187
+ * @readonly
188
+ */
189
+ poolChangesCounter?: string | null;
190
+ /**
191
+ * Last revision number of the corresponding pool definition that this entity was created from
192
+ * @internal
193
+ * @readonly
194
+ */
195
+ poolRevision?: string | null;
196
+ /**
197
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
198
+ * @internal
199
+ * @readonly
200
+ */
201
+ itemChangesCounter?: string | null;
202
+ /**
203
+ * Last revision number of the corresponding item that this entity was created from
204
+ * @internal
205
+ * @readonly
206
+ */
207
+ itemRevision?: string | null;
184
208
  }
185
209
  interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
186
210
  /**
@@ -198,6 +222,12 @@ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
198
222
  * @format GUID
199
223
  */
200
224
  wixUserId?: string;
225
+ /**
226
+ * Identity type.
227
+ * @internal
228
+ * @readonly
229
+ */
230
+ identityType?: IdentityTypeWithLiterals;
201
231
  }
202
232
  /** @oneof */
203
233
  interface CommonIdentificationDataIdOneOf {
@@ -417,6 +447,20 @@ interface Sorting {
417
447
  fieldName?: string;
418
448
  /** Sort order. */
419
449
  order?: SortOrderWithLiterals;
450
+ /**
451
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
452
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
453
+ *
454
+ * If multiple filters are provided, they are combined with AND operator.
455
+ *
456
+ * Example:
457
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
458
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
459
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
460
+ * @internal
461
+ * @maxSize 10
462
+ */
463
+ selectItemsBy?: Record<string, any>[] | null;
420
464
  }
421
465
  declare enum SortOrder {
422
466
  ASC = "ASC",
@@ -578,8 +622,18 @@ interface DomainEventBodyOneOf {
578
622
  }
579
623
  interface EntityCreatedEvent {
580
624
  entityAsJson?: string;
625
+ /**
626
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
627
+ * @internal
628
+ */
629
+ triggeredByUndelete?: boolean | null;
581
630
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
582
631
  restoreInfo?: RestoreInfo;
632
+ /**
633
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
634
+ * @internal
635
+ */
636
+ additionalMetadataAsJson?: string | null;
583
637
  }
584
638
  interface RestoreInfo {
585
639
  deletedDate?: Date | null;
@@ -591,10 +645,42 @@ interface EntityUpdatedEvent {
591
645
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
592
646
  */
593
647
  currentEntityAsJson?: string;
648
+ /**
649
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
650
+ * wont populate it / have any reference to it in the API.
651
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
652
+ * the developer should send only the new (current) entity.
653
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
654
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
655
+ * @internal
656
+ * @deprecated
657
+ */
658
+ previousEntityAsJson?: string | null;
659
+ /**
660
+ * Map of fully qualified field paths to their previous values for fields that changed.
661
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
662
+ * @internal
663
+ */
664
+ modifiedFields?: Record<string, any>;
665
+ /**
666
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
667
+ * @internal
668
+ */
669
+ additionalMetadataAsJson?: string | null;
594
670
  }
595
671
  interface EntityDeletedEvent {
672
+ /**
673
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
674
+ * @internal
675
+ */
676
+ movedToTrash?: boolean | null;
596
677
  /** Entity that was deleted. */
597
678
  deletedEntityAsJson?: string | null;
679
+ /**
680
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
681
+ * @internal
682
+ */
683
+ additionalMetadataAsJson?: string | null;
598
684
  }
599
685
  interface ActionEvent {
600
686
  bodyAsJson?: string;
@@ -181,6 +181,30 @@ interface PoolItem {
181
181
  * @readonly
182
182
  */
183
183
  removed?: boolean | null;
184
+ /**
185
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
186
+ * @internal
187
+ * @readonly
188
+ */
189
+ poolChangesCounter?: string | null;
190
+ /**
191
+ * Last revision number of the corresponding pool definition that this entity was created from
192
+ * @internal
193
+ * @readonly
194
+ */
195
+ poolRevision?: string | null;
196
+ /**
197
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
198
+ * @internal
199
+ * @readonly
200
+ */
201
+ itemChangesCounter?: string | null;
202
+ /**
203
+ * Last revision number of the corresponding item that this entity was created from
204
+ * @internal
205
+ * @readonly
206
+ */
207
+ itemRevision?: string | null;
184
208
  }
185
209
  interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
186
210
  /**
@@ -198,6 +222,12 @@ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
198
222
  * @format GUID
199
223
  */
200
224
  wixUserId?: string;
225
+ /**
226
+ * Identity type.
227
+ * @internal
228
+ * @readonly
229
+ */
230
+ identityType?: IdentityTypeWithLiterals;
201
231
  }
202
232
  /** @oneof */
203
233
  interface CommonIdentificationDataIdOneOf {
@@ -417,6 +447,20 @@ interface Sorting {
417
447
  fieldName?: string;
418
448
  /** Sort order. */
419
449
  order?: SortOrderWithLiterals;
450
+ /**
451
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
452
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
453
+ *
454
+ * If multiple filters are provided, they are combined with AND operator.
455
+ *
456
+ * Example:
457
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
458
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
459
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
460
+ * @internal
461
+ * @maxSize 10
462
+ */
463
+ selectItemsBy?: Record<string, any>[] | null;
420
464
  }
421
465
  declare enum SortOrder {
422
466
  ASC = "ASC",
@@ -755,10 +799,6 @@ interface PoolItemsQueryBuilder {
755
799
  * @param string - String to compare against. Case-insensitive.
756
800
  */
757
801
  startsWith: (propertyName: '_id' | 'externalId' | 'category' | 'providerAppId' | 'namespace' | 'poolId' | 'programId' | 'externalProgramId' | 'programDefinitionId' | 'externalProgramDefinitionId' | 'poolDefinitionId' | 'itemSetId' | 'beneficiary.memberId' | 'program.id' | 'programDefinition.id' | 'benefitKey' | 'itemSearchKey', value: string) => PoolItemsQueryBuilder;
758
- /** @param propertyName - Property whose value is compared with `values`.
759
- * @param values - List of values to compare against.
760
- */
761
- hasSome: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'providerAppId' | 'namespace' | 'poolId' | 'programId' | 'externalProgramId' | 'programDefinitionId' | 'externalProgramDefinitionId' | 'poolDefinitionId' | 'itemSetId' | 'beneficiary.memberId' | 'program.id' | 'programDefinition.id' | 'benefitKey' | 'itemSearchKey', value: any[]) => PoolItemsQueryBuilder;
762
802
  in: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'providerAppId' | 'namespace' | 'poolId' | 'programId' | 'externalProgramId' | 'programDefinitionId' | 'externalProgramDefinitionId' | 'poolDefinitionId' | 'itemSetId' | 'beneficiary.memberId' | 'program.id' | 'programDefinition.id' | 'benefitKey' | 'itemSearchKey', value: any) => PoolItemsQueryBuilder;
763
803
  exists: (propertyName: '_id' | '_createdDate' | 'externalId' | 'category' | 'providerAppId' | 'namespace' | 'poolId' | 'programId' | 'externalProgramId' | 'programDefinitionId' | 'externalProgramDefinitionId' | 'poolDefinitionId' | 'itemSetId' | 'beneficiary.memberId' | 'program.id' | 'programDefinition.id' | 'benefitKey' | 'itemSearchKey', value: boolean) => PoolItemsQueryBuilder;
764
804
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
@@ -848,14 +888,24 @@ type PoolItemQuery = {
848
888
  Sort order.
849
889
  */
850
890
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
891
+ /**
892
+ When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
893
+ a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
894
+
895
+ If multiple filters are provided, they are combined with AND operator.
896
+
897
+ Example:
898
+ Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
899
+ and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
900
+ { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
901
+ @internal: undefined,
902
+ @maxSize: 10
903
+ */
904
+ selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
851
905
  }[];
852
906
  };
853
907
  declare const utils: {
854
- query: {
855
- QueryBuilder: () => _wix_sdk_types.QueryBuilder<PoolItem, PoolItemQuerySpec, PoolItemQuery>;
856
- Filter: _wix_sdk_types.FilterFactory<PoolItem, PoolItemQuerySpec>;
857
- Sort: _wix_sdk_types.SortFactory<PoolItemQuerySpec>;
858
- };
908
+ query: _wix_sdk_types.QueryHelpers<PoolItem, PoolItemQuerySpec, PoolItemQuery>;
859
909
  };
860
910
 
861
911
  export { type AccountInfo, type ActionEvent, type BalanceInfo, type BenefitInfo, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CommonQueryWithEntityContext, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteSoftDeletedPoolItemRequest, type DeleteSoftDeletedPoolItemResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type InvalidatePoolItemsRequest, type InvalidatePoolItemsRequestSourceOneOf, type InvalidatePoolItemsResponse, type ItemInfo, type ItemScope, type MessageEnvelope, type PoolInfo, type PoolItem, type PoolItemQuery, type PoolItemQuerySpec, type PoolItemRemoved, type PoolItemsQueryBuilder, type PoolItemsQueryResult, type PoolScope, PoolStatus, type PoolStatusWithLiterals, type ProgramDefinitionInfo, type ProgramInfo, type QueryPoolItemsOptions, type QueryPoolItemsRequest, type QueryPoolItemsResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, queryPoolItems, typedQueryPoolItems, utils };
@@ -181,6 +181,30 @@ interface PoolItem {
181
181
  * @readonly
182
182
  */
183
183
  removed?: boolean | null;
184
+ /**
185
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
186
+ * @internal
187
+ * @readonly
188
+ */
189
+ poolChangesCounter?: string | null;
190
+ /**
191
+ * Last revision number of the corresponding pool definition that this entity was created from
192
+ * @internal
193
+ * @readonly
194
+ */
195
+ poolRevision?: string | null;
196
+ /**
197
+ * Monotonic counter incremented on every change, including system/materialization updates that do not bump revision.
198
+ * @internal
199
+ * @readonly
200
+ */
201
+ itemChangesCounter?: string | null;
202
+ /**
203
+ * Last revision number of the corresponding item that this entity was created from
204
+ * @internal
205
+ * @readonly
206
+ */
207
+ itemRevision?: string | null;
184
208
  }
185
209
  interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
186
210
  /**
@@ -198,6 +222,12 @@ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
198
222
  * @format GUID
199
223
  */
200
224
  wixUserId?: string;
225
+ /**
226
+ * Identity type.
227
+ * @internal
228
+ * @readonly
229
+ */
230
+ identityType?: IdentityTypeWithLiterals;
201
231
  }
202
232
  /** @oneof */
203
233
  interface CommonIdentificationDataIdOneOf {
@@ -417,6 +447,20 @@ interface Sorting {
417
447
  fieldName?: string;
418
448
  /** Sort order. */
419
449
  order?: SortOrderWithLiterals;
450
+ /**
451
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
452
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
453
+ *
454
+ * If multiple filters are provided, they are combined with AND operator.
455
+ *
456
+ * Example:
457
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
458
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
459
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
460
+ * @internal
461
+ * @maxSize 10
462
+ */
463
+ selectItemsBy?: Record<string, any>[] | null;
420
464
  }
421
465
  declare enum SortOrder {
422
466
  ASC = "ASC",
@@ -578,8 +622,18 @@ interface DomainEventBodyOneOf {
578
622
  }
579
623
  interface EntityCreatedEvent {
580
624
  entityAsJson?: string;
625
+ /**
626
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
627
+ * @internal
628
+ */
629
+ triggeredByUndelete?: boolean | null;
581
630
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
582
631
  restoreInfo?: RestoreInfo;
632
+ /**
633
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
634
+ * @internal
635
+ */
636
+ additionalMetadataAsJson?: string | null;
583
637
  }
584
638
  interface RestoreInfo {
585
639
  deletedDate?: Date | null;
@@ -591,10 +645,42 @@ interface EntityUpdatedEvent {
591
645
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
592
646
  */
593
647
  currentEntityAsJson?: string;
648
+ /**
649
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
650
+ * wont populate it / have any reference to it in the API.
651
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
652
+ * the developer should send only the new (current) entity.
653
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
654
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
655
+ * @internal
656
+ * @deprecated
657
+ */
658
+ previousEntityAsJson?: string | null;
659
+ /**
660
+ * Map of fully qualified field paths to their previous values for fields that changed.
661
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
662
+ * @internal
663
+ */
664
+ modifiedFields?: Record<string, any>;
665
+ /**
666
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
667
+ * @internal
668
+ */
669
+ additionalMetadataAsJson?: string | null;
594
670
  }
595
671
  interface EntityDeletedEvent {
672
+ /**
673
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
674
+ * @internal
675
+ */
676
+ movedToTrash?: boolean | null;
596
677
  /** Entity that was deleted. */
597
678
  deletedEntityAsJson?: string | null;
679
+ /**
680
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
681
+ * @internal
682
+ */
683
+ additionalMetadataAsJson?: string | null;
598
684
  }
599
685
  interface ActionEvent {
600
686
  bodyAsJson?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_benefit-programs_pool-items",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,23 +21,16 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
- },
25
- "./schemas": {
26
- "import": "./build/es/schemas.mjs",
27
- "require": "./build/cjs/schemas.js",
28
- "types": "./build/es/schemas.d.mts"
29
24
  }
30
25
  },
31
26
  "files": [
32
27
  "build",
33
28
  "meta",
34
- "service-plugins",
35
- "schemas"
29
+ "service-plugins"
36
30
  ],
37
31
  "dependencies": {
38
- "@wix/sdk-runtime": "^1.0.12",
39
- "@wix/sdk-types": "^1.17.7",
40
- "zod": "^4.3.6"
32
+ "@wix/sdk-runtime": "^1.0.24",
33
+ "@wix/sdk-types": "^1.17.11"
41
34
  },
42
35
  "devDependencies": {
43
36
  "tsup": "^8.4.0",
@@ -57,5 +50,5 @@
57
50
  "fqdn": "wix.benefit_programs.v1.pool_item"
58
51
  }
59
52
  },
60
- "falconPackageHash": "0ef73bc636f5c683675e167e547c7cc463d2e8c08edd7906739a0275"
53
+ "falconPackageHash": "9876346e25bf09bb39b6ce23b1a87b7e70456fd376c78750ab686fd6"
61
54
  }
@@ -1,121 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const QueryPoolItemsRequest: z.ZodObject<{
4
- query: z.ZodIntersection<z.ZodObject<{
5
- filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6
- sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
- fieldName: z.ZodOptional<z.ZodString>;
8
- order: z.ZodOptional<z.ZodEnum<{
9
- ASC: "ASC";
10
- DESC: "DESC";
11
- }>>;
12
- }, z.core.$strip>>>;
13
- }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
14
- cursorPaging: z.ZodOptional<z.ZodNever>;
15
- }, z.core.$strip>, z.ZodObject<{
16
- cursorPaging: z.ZodObject<{
17
- limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
18
- cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19
- }, z.core.$strip>;
20
- }, z.core.$strip>]>>;
21
- options: z.ZodOptional<z.ZodObject<{
22
- fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23
- POOL: "POOL";
24
- PROGRAM: "PROGRAM";
25
- PROGRAM_DEFINITION: "PROGRAM_DEFINITION";
26
- ITEM: "ITEM";
27
- BENEFIT: "BENEFIT";
28
- BALANCE: "BALANCE";
29
- }>>>;
30
- }, z.core.$strip>>;
31
- }, z.core.$strip>;
32
- declare const QueryPoolItemsResponse: z.ZodObject<{
33
- poolItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
- _id: z.ZodOptional<z.ZodString>;
35
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
37
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
38
- externalId: z.ZodOptional<z.ZodString>;
39
- category: z.ZodOptional<z.ZodString>;
40
- providerAppId: z.ZodOptional<z.ZodString>;
41
- namespace: z.ZodOptional<z.ZodString>;
42
- poolId: z.ZodOptional<z.ZodString>;
43
- programId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
- externalProgramId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
- programDefinitionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46
- externalProgramDefinitionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
47
- poolDefinitionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
48
- itemSetId: z.ZodOptional<z.ZodString>;
49
- beneficiary: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
50
- anonymousVisitorId: z.ZodOptional<z.ZodNever>;
51
- memberId: z.ZodOptional<z.ZodNever>;
52
- wixUserId: z.ZodOptional<z.ZodNever>;
53
- }, z.core.$strip>, z.ZodObject<{
54
- memberId: z.ZodOptional<z.ZodNever>;
55
- wixUserId: z.ZodOptional<z.ZodNever>;
56
- anonymousVisitorId: z.ZodString;
57
- }, z.core.$strip>, z.ZodObject<{
58
- anonymousVisitorId: z.ZodOptional<z.ZodNever>;
59
- wixUserId: z.ZodOptional<z.ZodNever>;
60
- memberId: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- anonymousVisitorId: z.ZodOptional<z.ZodNever>;
63
- memberId: z.ZodOptional<z.ZodNever>;
64
- wixUserId: z.ZodString;
65
- }, z.core.$strip>]>>>;
66
- pool: z.ZodOptional<z.ZodObject<{
67
- displayName: z.ZodOptional<z.ZodString>;
68
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
- status: z.ZodOptional<z.ZodEnum<{
70
- ACTIVE: "ACTIVE";
71
- PAUSED: "PAUSED";
72
- ENDED: "ENDED";
73
- PROVISIONING: "PROVISIONING";
74
- RENEWING: "RENEWING";
75
- PENDING: "PENDING";
76
- }>>;
77
- creditConfiguration: z.ZodOptional<z.ZodObject<{
78
- amount: z.ZodOptional<z.ZodString>;
79
- unitDisplayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
80
- unitType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
81
- }, z.core.$strip>>;
82
- }, z.core.$strip>>;
83
- program: z.ZodOptional<z.ZodObject<{
84
- _id: z.ZodOptional<z.ZodString>;
85
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
86
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
87
- }, z.core.$strip>>;
88
- programDefinition: z.ZodOptional<z.ZodObject<{
89
- _id: z.ZodOptional<z.ZodString>;
90
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
91
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
92
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
93
- }, z.core.$strip>>;
94
- itemId: z.ZodOptional<z.ZodString>;
95
- itemInfo: z.ZodOptional<z.ZodObject<{
96
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
97
- }, z.core.$strip>>;
98
- benefitInfo: z.ZodOptional<z.ZodObject<{
99
- price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
100
- benefitKey: z.ZodOptional<z.ZodString>;
101
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
102
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
103
- }, z.core.$strip>>;
104
- balance: z.ZodOptional<z.ZodObject<{
105
- available: z.ZodNullable<z.ZodOptional<z.ZodString>>;
106
- }, z.core.$strip>>;
107
- benefitKey: z.ZodOptional<z.ZodString>;
108
- itemSearchKey: z.ZodOptional<z.ZodString>;
109
- removed: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
110
- }, z.core.$strip>>>;
111
- metadata: z.ZodOptional<z.ZodObject<{
112
- count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
113
- cursors: z.ZodOptional<z.ZodObject<{
114
- next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
115
- prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
- }, z.core.$strip>>;
117
- hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
118
- }, z.core.$strip>>;
119
- }, z.core.$strip>;
120
-
121
- export { QueryPoolItemsRequest, QueryPoolItemsResponse };