@wix/auto_sdk_benefit-programs_pool-items 1.0.12 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_benefit-programs_pool-items",
3
- "version": "1.0.12",
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
32
  "@wix/sdk-runtime": "^1.0.24",
39
- "@wix/sdk-types": "^1.17.11",
40
- "zod": "^4.3.6"
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": "c7b992a0998c0d7d3e672da37f058d2bf9167f6ded27b84701499f8d"
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 };
@@ -1,299 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // schemas.ts
31
- var schemas_exports = {};
32
- __export(schemas_exports, {
33
- QueryPoolItemsRequest: () => QueryPoolItemsRequest,
34
- QueryPoolItemsResponse: () => QueryPoolItemsResponse
35
- });
36
- module.exports = __toCommonJS(schemas_exports);
37
-
38
- // src/benefit-programs-v1-pool-item-pool-items.schemas.ts
39
- var z = __toESM(require("zod"));
40
- var QueryPoolItemsRequest = /* @__PURE__ */ z.object({
41
- query: z.intersection(
42
- z.object({
43
- filter: z.record(z.string(), z.any()).describe(
44
- 'Filter object in the following format:\n`"filter" : {\n"fieldName1": "value1",\n"fieldName2":{"$operator":"value2"}\n}`\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'
45
- ).optional().nullable(),
46
- sort: z.array(
47
- z.object({
48
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
49
- order: z.enum(["ASC", "DESC"]).optional()
50
- })
51
- ).max(5).optional()
52
- }),
53
- z.xor([
54
- z.object({ cursorPaging: z.never().optional() }),
55
- z.object({
56
- cursorPaging: z.object({
57
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(1e3).optional().nullable(),
58
- cursor: z.string().describe(
59
- "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
60
- ).max(16e3).optional().nullable()
61
- }).describe(
62
- "Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`."
63
- )
64
- })
65
- ])
66
- ).describe("Query options."),
67
- options: z.object({
68
- fields: z.array(
69
- z.enum([
70
- "POOL",
71
- "PROGRAM",
72
- "PROGRAM_DEFINITION",
73
- "ITEM",
74
- "BENEFIT",
75
- "BALANCE"
76
- ])
77
- ).max(6).optional()
78
- }).optional()
79
- });
80
- var QueryPoolItemsResponse = /* @__PURE__ */ z.object({
81
- poolItems: z.array(
82
- z.object({
83
- _id: z.string().describe(
84
- "Pool item ID. Generated deterministically from `poolId` and `itemId`."
85
- ).regex(
86
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
87
- "Must be a valid GUID"
88
- ).optional(),
89
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
90
- "Revision number, which increments by 1 each time the pool item is updated."
91
- ).optional().nullable(),
92
- _createdDate: z.date().describe("Date and time the pool item was created.").optional().nullable(),
93
- _updatedDate: z.date().describe("Date and time the pool item was updated.").optional().nullable(),
94
- externalId: z.string().describe(
95
- "External item ID assigned by the provider of the items.\n\nFor example, if the items are products, this ID corresponds to the specific product ID in the provider's system."
96
- ).regex(
97
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
98
- "Must be a valid GUID"
99
- ).optional(),
100
- category: z.string().describe(
101
- "Item category. Groups benefit items together for organization and management. For example, `classes`, `posts`, or `groups`."
102
- ).max(20).optional(),
103
- providerAppId: z.string().describe(
104
- "ID of the application that provides the benefit items. Each item's `externalId` is unique within its provider application."
105
- ).regex(
106
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
107
- "Must be a valid GUID"
108
- ).optional(),
109
- namespace: z.string().describe(
110
- "Namespace for your app or site's benefit programs. Namespaces let you distinguish between entities that you created and entities that other apps created."
111
- ).min(1).max(20).optional(),
112
- poolId: z.string().describe(
113
- "ID of the pool that contains this item. A pool is the runtime container of benefits and items provisioned for a beneficiary."
114
- ).regex(
115
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
116
- "Must be a valid GUID"
117
- ).optional(),
118
- programId: z.string().describe(
119
- "ID of the program that contains this pool item. The program is the runtime instance of a program definition for a specific beneficiary."
120
- ).regex(
121
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
122
- "Must be a valid GUID"
123
- ).optional().nullable(),
124
- externalProgramId: z.string().describe("External program ID assigned by the provider.").regex(
125
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
126
- "Must be a valid GUID"
127
- ).optional().nullable(),
128
- programDefinitionId: z.string().describe(
129
- "ID of the program definition that's the template for this pool item's program."
130
- ).regex(
131
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
132
- "Must be a valid GUID"
133
- ).optional().nullable(),
134
- externalProgramDefinitionId: z.string().describe("External program definition ID assigned by the provider.").regex(
135
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
136
- "Must be a valid GUID"
137
- ).optional().nullable(),
138
- poolDefinitionId: z.string().describe(
139
- "ID of the pool definition that's the template for this pool item's pool."
140
- ).regex(
141
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
142
- "Must be a valid GUID"
143
- ).optional().nullable(),
144
- itemSetId: z.string().describe(
145
- "Internal grouping identifier for this benefit's item set. Use `poolId` together with `benefitKey` to identify a benefit - `itemSetId` is an implementation detail."
146
- ).regex(
147
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
148
- "Must be a valid GUID"
149
- ).optional(),
150
- beneficiary: z.intersection(
151
- z.object({}),
152
- z.xor([
153
- z.object({
154
- anonymousVisitorId: z.never().optional(),
155
- memberId: z.never().optional(),
156
- wixUserId: z.never().optional()
157
- }),
158
- z.object({
159
- memberId: z.never().optional(),
160
- wixUserId: z.never().optional(),
161
- anonymousVisitorId: z.string().describe(
162
- "ID of a site visitor that hasn't logged in to the site."
163
- ).regex(
164
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
165
- "Must be a valid GUID"
166
- )
167
- }),
168
- z.object({
169
- anonymousVisitorId: z.never().optional(),
170
- wixUserId: z.never().optional(),
171
- memberId: z.string().describe("ID of a site member.").regex(
172
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
173
- "Must be a valid GUID"
174
- )
175
- }),
176
- z.object({
177
- anonymousVisitorId: z.never().optional(),
178
- memberId: z.never().optional(),
179
- wixUserId: z.string().describe("ID of a Wix user.").regex(
180
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
181
- "Must be a valid GUID"
182
- )
183
- })
184
- ])
185
- ).describe(
186
- "Beneficiary of the pool - the member, contact, or visitor who holds this pool item."
187
- ).optional(),
188
- pool: z.object({
189
- displayName: z.string().describe(
190
- "Pool's display name. Often matches the name on the associated pool definition."
191
- ).max(64).optional(),
192
- description: z.string().describe("Pool description.").max(450).optional().nullable(),
193
- status: z.enum([
194
- "ACTIVE",
195
- "PAUSED",
196
- "ENDED",
197
- "PROVISIONING",
198
- "RENEWING",
199
- "PENDING"
200
- ]).describe("Status of the pool that contains this item.").optional(),
201
- creditConfiguration: z.object({
202
- amount: z.string().describe("Number of credits configured for the pool.").optional(),
203
- unitDisplayName: z.string().describe("Credit unit display name.").max(32).optional().nullable(),
204
- unitType: z.string().describe("Credit unit type.").max(16).optional().nullable()
205
- }).describe(
206
- "Credit configuration of the pool, when credit-based pricing is enabled."
207
- ).optional()
208
- }).describe(
209
- "Pool details, including display name and description.\n\nReturned only when `POOL` is included in the `fields` request parameter."
210
- ).optional(),
211
- program: z.object({
212
- _id: z.string().describe("Program ID.").regex(
213
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
214
- "Must be a valid GUID"
215
- ).optional(),
216
- externalId: z.string().describe("External program ID assigned by the provider.").regex(
217
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
218
- "Must be a valid GUID"
219
- ).optional().nullable(),
220
- displayName: z.string().describe("Program's display name.").max(64).optional().nullable()
221
- }).describe(
222
- "Program details - `id`, `externalId`, and `displayName`.\n\nReturned only when `PROGRAM` is included in the `fields` request parameter."
223
- ).optional(),
224
- programDefinition: z.object({
225
- _id: z.string().describe("Program definition ID.").regex(
226
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
227
- "Must be a valid GUID"
228
- ).optional(),
229
- externalId: z.string().describe(
230
- "External program definition ID assigned by the provider."
231
- ).regex(
232
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
233
- "Must be a valid GUID"
234
- ).optional().nullable(),
235
- displayName: z.string().describe("Program definition's display name.").max(64).optional().nullable(),
236
- description: z.string().describe("Program definition description.").max(450).optional().nullable()
237
- }).describe(
238
- "Program definition that includes this item as an accessible benefit.\n\nReturned only when `PROGRAM_DEFINITION` is included in the `fields` request parameter."
239
- ).optional(),
240
- itemId: z.string().describe("Item ID.").regex(
241
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
242
- "Must be a valid GUID"
243
- ).optional(),
244
- itemInfo: z.object({
245
- displayName: z.string().describe("Item's display name.").max(400).optional().nullable()
246
- }).describe(
247
- "Display name for the catalog item.\n\nReturned only when `ITEM` is included in the `fields` request parameter."
248
- ).optional(),
249
- benefitInfo: z.object({
250
- price: z.string().describe(
251
- "Cost of the benefit in credits. The cost is the same for all items in this benefit.\n\nCredits are a configurable unit defined on the parent pool definition. The unit type is set in the pool definition's credit configuration. Absent when no credit-based pricing is configured for this benefit."
252
- ).optional().nullable(),
253
- benefitKey: z.string().describe(
254
- "Unique identifier for this benefit. Same value as `poolItem.benefitKey`."
255
- ).max(64).optional(),
256
- displayName: z.string().describe("Benefit's display name.").max(40).optional().nullable(),
257
- description: z.string().describe("Benefit description.").max(255).optional().nullable()
258
- }).describe(
259
- "Pricing and display information for the associated benefit, including credit price, name, and description.\n\nReturned only when `BENEFIT` is included in the `fields` request parameter."
260
- ).optional(),
261
- balance: z.object({
262
- available: z.string().describe(
263
- "Number of available credits in the pool.\n\nCredits are a configurable unit defined on the parent pool definition. Absent when no credit-based pricing is configured for the pool."
264
- ).optional().nullable()
265
- }).describe(
266
- "Credit balance of the pool that contains this item.\n\nReturned only when `BALANCE` is included in the `fields` request parameter."
267
- ).optional(),
268
- benefitKey: z.string().describe(
269
- "Unique identifier for the benefit that grants access to this item."
270
- ).max(64).optional(),
271
- itemSearchKey: z.string().describe(
272
- "Pre-computed search key for the item reference, built by concatenating `providerAppId`, `category`, and `externalId` separated by `/`. Use this field for efficient single-field filtering instead of composing three separate conditions."
273
- ).max(94).optional(),
274
- removed: z.boolean().describe("Indicates whether this pool item has been removed").optional().nullable()
275
- })
276
- ).optional(),
277
- metadata: z.object({
278
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
279
- cursors: z.object({
280
- next: z.string().describe(
281
- "Cursor string pointing to the next page in the list of results."
282
- ).max(16e3).optional().nullable(),
283
- prev: z.string().describe(
284
- "Cursor pointing to the previous page in the list of results."
285
- ).max(16e3).optional().nullable()
286
- }).describe(
287
- "Cursor strings that point to the next page, previous page, or both."
288
- ).optional(),
289
- hasNext: z.boolean().describe(
290
- "Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
291
- ).optional().nullable()
292
- }).describe("Paging metadata.").optional()
293
- });
294
- // Annotate the CommonJS export names for ESM import in node:
295
- 0 && (module.exports = {
296
- QueryPoolItemsRequest,
297
- QueryPoolItemsResponse
298
- });
299
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/benefit-programs-v1-pool-item-pool-items.schemas.ts"],"sourcesContent":["export * from './src/benefit-programs-v1-pool-item-pool-items.schemas.js';\n","import * as z from 'zod';\n\nexport const QueryPoolItemsRequest = /*#__PURE__*/ z.object({\n query: z\n .intersection(\n z.object({\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter object in the following format:\\n`\"filter\" : {\\n\"fieldName1\": \"value1\",\\n\"fieldName2\":{\"$operator\":\"value2\"}\\n}`\\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'\n )\n .optional()\n .nullable(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .string()\n .describe('Name of the field to sort by.')\n .max(512)\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .max(5)\n .optional(),\n }),\n z.xor([\n z.object({ cursorPaging: z.never().optional() }),\n z.object({\n cursorPaging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(1000)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.'\n ),\n }),\n ])\n )\n .describe('Query options.'),\n options: z\n .object({\n fields: z\n .array(\n z.enum([\n 'POOL',\n 'PROGRAM',\n 'PROGRAM_DEFINITION',\n 'ITEM',\n 'BENEFIT',\n 'BALANCE',\n ])\n )\n .max(6)\n .optional(),\n })\n .optional(),\n});\nexport const QueryPoolItemsResponse = /*#__PURE__*/ z.object({\n poolItems: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'Pool item ID. Generated deterministically from `poolId` and `itemId`.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the pool item is updated.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the pool item was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the pool item was updated.')\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\n \"External item ID assigned by the provider of the items.\\n\\nFor example, if the items are products, this ID corresponds to the specific product ID in the provider's system.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n category: z\n .string()\n .describe(\n 'Item category. Groups benefit items together for organization and management. For example, `classes`, `posts`, or `groups`.'\n )\n .max(20)\n .optional(),\n providerAppId: z\n .string()\n .describe(\n \"ID of the application that provides the benefit items. Each item's `externalId` is unique within its provider application.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces let you distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional(),\n poolId: z\n .string()\n .describe(\n 'ID of the pool that contains this item. A pool is the runtime container of benefits and items provisioned for a beneficiary.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n programId: z\n .string()\n .describe(\n 'ID of the program that contains this pool item. The program is the runtime instance of a program definition for a specific beneficiary.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n externalProgramId: z\n .string()\n .describe('External program ID assigned by the provider.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n programDefinitionId: z\n .string()\n .describe(\n \"ID of the program definition that's the template for this pool item's program.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n externalProgramDefinitionId: z\n .string()\n .describe('External program definition ID assigned by the provider.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n poolDefinitionId: z\n .string()\n .describe(\n \"ID of the pool definition that's the template for this pool item's pool.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n itemSetId: z\n .string()\n .describe(\n \"Internal grouping identifier for this benefit's item set. Use `poolId` together with `benefitKey` to identify a benefit - `itemSetId` is an implementation detail.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n beneficiary: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n anonymousVisitorId: z.never().optional(),\n memberId: z.never().optional(),\n wixUserId: z.never().optional(),\n }),\n z.object({\n memberId: z.never().optional(),\n wixUserId: z.never().optional(),\n anonymousVisitorId: z\n .string()\n .describe(\n \"ID of a site visitor that hasn't logged in to the site.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n anonymousVisitorId: z.never().optional(),\n wixUserId: z.never().optional(),\n memberId: z\n .string()\n .describe('ID of a site member.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n anonymousVisitorId: z.never().optional(),\n memberId: z.never().optional(),\n wixUserId: z\n .string()\n .describe('ID of a Wix user.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n .describe(\n 'Beneficiary of the pool - the member, contact, or visitor who holds this pool item.'\n )\n .optional(),\n pool: z\n .object({\n displayName: z\n .string()\n .describe(\n \"Pool's display name. Often matches the name on the associated pool definition.\"\n )\n .max(64)\n .optional(),\n description: z\n .string()\n .describe('Pool description.')\n .max(450)\n .optional()\n .nullable(),\n status: z\n .enum([\n 'ACTIVE',\n 'PAUSED',\n 'ENDED',\n 'PROVISIONING',\n 'RENEWING',\n 'PENDING',\n ])\n .describe('Status of the pool that contains this item.')\n .optional(),\n creditConfiguration: z\n .object({\n amount: z\n .string()\n .describe('Number of credits configured for the pool.')\n .optional(),\n unitDisplayName: z\n .string()\n .describe('Credit unit display name.')\n .max(32)\n .optional()\n .nullable(),\n unitType: z\n .string()\n .describe('Credit unit type.')\n .max(16)\n .optional()\n .nullable(),\n })\n .describe(\n 'Credit configuration of the pool, when credit-based pricing is enabled.'\n )\n .optional(),\n })\n .describe(\n 'Pool details, including display name and description.\\n\\nReturned only when `POOL` is included in the `fields` request parameter.'\n )\n .optional(),\n program: z\n .object({\n _id: z\n .string()\n .describe('Program ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n externalId: z\n .string()\n .describe('External program ID assigned by the provider.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe(\"Program's display name.\")\n .max(64)\n .optional()\n .nullable(),\n })\n .describe(\n 'Program details - `id`, `externalId`, and `displayName`.\\n\\nReturned only when `PROGRAM` is included in the `fields` request parameter.'\n )\n .optional(),\n programDefinition: z\n .object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'External program definition ID assigned by the provider.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe(\"Program definition's display name.\")\n .max(64)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Program definition description.')\n .max(450)\n .optional()\n .nullable(),\n })\n .describe(\n 'Program definition that includes this item as an accessible benefit.\\n\\nReturned only when `PROGRAM_DEFINITION` is included in the `fields` request parameter.'\n )\n .optional(),\n itemId: z\n .string()\n .describe('Item ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n itemInfo: z\n .object({\n displayName: z\n .string()\n .describe(\"Item's display name.\")\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Display name for the catalog item.\\n\\nReturned only when `ITEM` is included in the `fields` request parameter.'\n )\n .optional(),\n benefitInfo: z\n .object({\n price: z\n .string()\n .describe(\n \"Cost of the benefit in credits. The cost is the same for all items in this benefit.\\n\\nCredits are a configurable unit defined on the parent pool definition. The unit type is set in the pool definition's credit configuration. Absent when no credit-based pricing is configured for this benefit.\"\n )\n .optional()\n .nullable(),\n benefitKey: z\n .string()\n .describe(\n 'Unique identifier for this benefit. Same value as `poolItem.benefitKey`.'\n )\n .max(64)\n .optional(),\n displayName: z\n .string()\n .describe(\"Benefit's display name.\")\n .max(40)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Benefit description.')\n .max(255)\n .optional()\n .nullable(),\n })\n .describe(\n 'Pricing and display information for the associated benefit, including credit price, name, and description.\\n\\nReturned only when `BENEFIT` is included in the `fields` request parameter.'\n )\n .optional(),\n balance: z\n .object({\n available: z\n .string()\n .describe(\n 'Number of available credits in the pool.\\n\\nCredits are a configurable unit defined on the parent pool definition. Absent when no credit-based pricing is configured for the pool.'\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'Credit balance of the pool that contains this item.\\n\\nReturned only when `BALANCE` is included in the `fields` request parameter.'\n )\n .optional(),\n benefitKey: z\n .string()\n .describe(\n 'Unique identifier for the benefit that grants access to this item.'\n )\n .max(64)\n .optional(),\n itemSearchKey: z\n .string()\n .describe(\n 'Pre-computed search key for the item reference, built by concatenating `providerAppId`, `category`, and `externalId` separated by `/`. Use this field for efficient single-field filtering instead of composing three separate conditions.'\n )\n .max(94)\n .optional(),\n removed: z\n .boolean()\n .describe('Indicates whether this pool item has been removed')\n .optional()\n .nullable(),\n })\n )\n .optional(),\n metadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,wBAAsC,gBAAE,SAAO;AAAA,EAC1D,OACG;AAAA,IACG,SAAO;AAAA,MACP,QACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,MACG;AAAA,QACG,SAAO;AAAA,UACP,WACG,SAAO,EACP,SAAS,+BAA+B,EACxC,IAAI,GAAG,EACP,SAAS;AAAA,UACZ,OAAS,OAAK,CAAC,OAAO,MAAM,CAAC,EAAE,SAAS;AAAA,QAC1C,CAAC;AAAA,MACH,EACC,IAAI,CAAC,EACL,SAAS;AAAA,IACd,CAAC;AAAA,IACC,MAAI;AAAA,MACF,SAAO,EAAE,cAAgB,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,MAC7C,SAAO;AAAA,QACP,cACG,SAAO;AAAA,UACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,mDAAmD,EAC5D,IAAI,CAAC,EACL,IAAI,GAAI,EACR,SAAS,EACT,SAAS;AAAA,UACZ,QACG,SAAO,EACP;AAAA,YACC;AAAA,UACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,QACd,CAAC,EACA;AAAA,UACC;AAAA,QACF;AAAA,MACJ,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACC,SAAS,gBAAgB;AAAA,EA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EAAE,EACN,SAAS;AAAA,MACZ,SACG,UAAQ,EACR,SAAS,mDAAmD,EAC5D,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,UACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,2CAA2C,EACpD,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AACd,CAAC;","names":[]}
@@ -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 };