@wix/auto_sdk_benefit-programs_pool-definition-items 1.0.25 → 1.0.26

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-definition-items",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
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_definition_item"
58
51
  }
59
52
  },
60
- "falconPackageHash": "8ccf4ef15dbf5be17fed778972f8d5a749ac23cf3064e99a74a3709c"
53
+ "falconPackageHash": "06912b09d817f54bfce3904c8d18b98b7205b7258561c7bb21abd407"
61
54
  }
@@ -1,138 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const QueryPoolDefinitionItemsRequest: 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_DEFINITION: "POOL_DEFINITION";
24
- PROGRAM_DEFINITION: "PROGRAM_DEFINITION";
25
- BENEFIT: "BENEFIT";
26
- ITEM: "ITEM";
27
- }>>>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>;
30
- declare const QueryPoolDefinitionItemsResponse: z.ZodObject<{
31
- poolDefinitionItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
- _id: z.ZodOptional<z.ZodString>;
33
- revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
34
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
35
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
36
- externalId: z.ZodOptional<z.ZodString>;
37
- category: z.ZodOptional<z.ZodString>;
38
- providerAppId: z.ZodOptional<z.ZodString>;
39
- namespace: z.ZodOptional<z.ZodString>;
40
- poolDefinitionId: z.ZodOptional<z.ZodString>;
41
- itemSetId: z.ZodOptional<z.ZodString>;
42
- poolDefinition: z.ZodOptional<z.ZodObject<{
43
- displayName: z.ZodOptional<z.ZodString>;
44
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
- creditConfiguration: z.ZodOptional<z.ZodObject<{
46
- amount: z.ZodOptional<z.ZodString>;
47
- unitDisplayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
48
- unitType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
- }, z.core.$strip>>;
50
- }, z.core.$strip>>;
51
- programDefinitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
- _id: z.ZodOptional<z.ZodString>;
53
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
54
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
56
- }, z.core.$strip>>>;
57
- itemId: z.ZodOptional<z.ZodString>;
58
- benefitInfo: z.ZodOptional<z.ZodObject<{
59
- price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
60
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
61
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
- }, z.core.$strip>>;
63
- itemInfo: z.ZodOptional<z.ZodObject<{
64
- displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
65
- }, z.core.$strip>>;
66
- benefitKey: z.ZodOptional<z.ZodString>;
67
- itemSearchKey: z.ZodOptional<z.ZodString>;
68
- removed: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
69
- }, z.core.$strip>>>;
70
- metadata: z.ZodOptional<z.ZodObject<{
71
- count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
72
- cursors: z.ZodOptional<z.ZodObject<{
73
- next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
74
- prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
75
- }, z.core.$strip>>;
76
- hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
77
- }, z.core.$strip>>;
78
- }, z.core.$strip>;
79
- declare const RemoveItemsFromBenefitRequest: z.ZodObject<{
80
- itemReferences: z.ZodArray<z.ZodObject<{
81
- externalId: z.ZodString;
82
- category: z.ZodOptional<z.ZodString>;
83
- }, z.core.$strip>>;
84
- options: z.ZodObject<{
85
- poolDefinitionId: z.ZodString;
86
- benefitKey: z.ZodString;
87
- }, z.core.$strip>;
88
- }, z.core.$strip>;
89
- declare const RemoveItemsFromBenefitResponse: z.ZodObject<{
90
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
- itemMetadata: z.ZodOptional<z.ZodObject<{
92
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
93
- originalIndex: z.ZodOptional<z.ZodNumber>;
94
- success: z.ZodOptional<z.ZodBoolean>;
95
- error: z.ZodOptional<z.ZodObject<{
96
- code: z.ZodOptional<z.ZodString>;
97
- description: z.ZodOptional<z.ZodString>;
98
- data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
99
- }, z.core.$strip>>;
100
- }, z.core.$strip>>;
101
- }, z.core.$strip>>>;
102
- bulkActionMetadata: z.ZodOptional<z.ZodObject<{
103
- totalSuccesses: z.ZodOptional<z.ZodNumber>;
104
- totalFailures: z.ZodOptional<z.ZodNumber>;
105
- undetailedFailures: z.ZodOptional<z.ZodNumber>;
106
- }, z.core.$strip>>;
107
- }, z.core.$strip>;
108
- declare const AddItemsToBenefitRequest: z.ZodObject<{
109
- itemReferences: z.ZodArray<z.ZodObject<{
110
- externalId: z.ZodString;
111
- category: z.ZodOptional<z.ZodString>;
112
- }, z.core.$strip>>;
113
- options: z.ZodObject<{
114
- poolDefinitionId: z.ZodString;
115
- benefitKey: z.ZodString;
116
- }, z.core.$strip>;
117
- }, z.core.$strip>;
118
- declare const AddItemsToBenefitResponse: z.ZodObject<{
119
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
- itemMetadata: z.ZodOptional<z.ZodObject<{
121
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
122
- originalIndex: z.ZodOptional<z.ZodNumber>;
123
- success: z.ZodOptional<z.ZodBoolean>;
124
- error: z.ZodOptional<z.ZodObject<{
125
- code: z.ZodOptional<z.ZodString>;
126
- description: z.ZodOptional<z.ZodString>;
127
- data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
128
- }, z.core.$strip>>;
129
- }, z.core.$strip>>;
130
- }, z.core.$strip>>>;
131
- bulkActionMetadata: z.ZodOptional<z.ZodObject<{
132
- totalSuccesses: z.ZodOptional<z.ZodNumber>;
133
- totalFailures: z.ZodOptional<z.ZodNumber>;
134
- undetailedFailures: z.ZodOptional<z.ZodNumber>;
135
- }, z.core.$strip>>;
136
- }, z.core.$strip>;
137
-
138
- export { AddItemsToBenefitRequest, AddItemsToBenefitResponse, QueryPoolDefinitionItemsRequest, QueryPoolDefinitionItemsResponse, RemoveItemsFromBenefitRequest, RemoveItemsFromBenefitResponse };
@@ -1,313 +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
- AddItemsToBenefitRequest: () => AddItemsToBenefitRequest,
34
- AddItemsToBenefitResponse: () => AddItemsToBenefitResponse,
35
- QueryPoolDefinitionItemsRequest: () => QueryPoolDefinitionItemsRequest,
36
- QueryPoolDefinitionItemsResponse: () => QueryPoolDefinitionItemsResponse,
37
- RemoveItemsFromBenefitRequest: () => RemoveItemsFromBenefitRequest,
38
- RemoveItemsFromBenefitResponse: () => RemoveItemsFromBenefitResponse
39
- });
40
- module.exports = __toCommonJS(schemas_exports);
41
-
42
- // src/benefit-programs-v1-pool-definition-item-pool-definition-items.schemas.ts
43
- var z = __toESM(require("zod"));
44
- var QueryPoolDefinitionItemsRequest = /* @__PURE__ */ z.object({
45
- query: z.intersection(
46
- z.object({
47
- filter: z.record(z.string(), z.any()).describe(
48
- '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`'
49
- ).optional().nullable(),
50
- sort: z.array(
51
- z.object({
52
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
53
- order: z.enum(["ASC", "DESC"]).optional()
54
- })
55
- ).max(5).optional()
56
- }),
57
- z.xor([
58
- z.object({ cursorPaging: z.never().optional() }),
59
- z.object({
60
- cursorPaging: z.object({
61
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(1e3).optional().nullable(),
62
- cursor: z.string().describe(
63
- "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."
64
- ).max(16e3).optional().nullable()
65
- }).describe(
66
- "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`."
67
- )
68
- })
69
- ])
70
- ).describe("Query to select pool definition items."),
71
- options: z.object({
72
- fields: z.array(
73
- z.enum(["POOL_DEFINITION", "PROGRAM_DEFINITION", "BENEFIT", "ITEM"])
74
- ).max(4).optional()
75
- }).optional()
76
- });
77
- var QueryPoolDefinitionItemsResponse = /* @__PURE__ */ z.object({
78
- poolDefinitionItems: z.array(
79
- z.object({
80
- _id: z.string().describe(
81
- "Benefit item ID. Deterministically generated from pool_definition_id and item_id \u2014 if you know both, you can compute the ID without querying."
82
- ).regex(
83
- /^[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}$/,
84
- "Must be a valid GUID"
85
- ).optional(),
86
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
87
- "Revision number, which increments by 1 each time the benefit item is updated."
88
- ).optional().nullable(),
89
- _createdDate: z.date().describe("Date and time the item was created.").optional().nullable(),
90
- _updatedDate: z.date().describe("Date and time the item was updated.").optional().nullable(),
91
- externalId: z.string().describe(
92
- "External item ID assigned by the provider of the items.\n\nFor example, if the benefit items are products, this ID corresponds to the specific product ID in the provider's system."
93
- ).regex(
94
- /^[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}$/,
95
- "Must be a valid GUID"
96
- ).optional(),
97
- category: z.string().describe(
98
- "Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups."
99
- ).max(20).optional(),
100
- providerAppId: z.string().describe(
101
- "ID of the application providing the benefit items. Each item's external_id is unique within its provider application."
102
- ).regex(
103
- /^[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}$/,
104
- "Must be a valid GUID"
105
- ).optional(),
106
- namespace: z.string().describe(
107
- "Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you\ncreated and entities that other apps created."
108
- ).min(1).max(20).optional(),
109
- poolDefinitionId: z.string().describe(
110
- "ID of the pool definition - the configuration that defines a set of benefits and which items are accessible within each benefit."
111
- ).regex(
112
- /^[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}$/,
113
- "Must be a valid GUID"
114
- ).optional(),
115
- itemSetId: z.string().describe(
116
- "Internal grouping identifier for this benefit's item set. Use pool_definition_id together with benefit_key\nto identify a benefit \u2014 item_set_id is an implementation detail."
117
- ).regex(
118
- /^[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}$/,
119
- "Must be a valid GUID"
120
- ).optional(),
121
- poolDefinition: z.object({
122
- displayName: z.string().describe("Pool definition name.").max(64).optional(),
123
- description: z.string().describe("Pool definition description.").max(450).optional().nullable(),
124
- creditConfiguration: z.object({
125
- amount: z.string().describe(
126
- "Number of credits initially granted to a subscriber when this pool definition's benefits are activated."
127
- ).optional(),
128
- unitDisplayName: z.string().describe("Credit unit display name.").max(32).optional().nullable(),
129
- unitType: z.string().describe("Credit unit type.").max(16).optional().nullable()
130
- }).describe(
131
- "Credit configuration for this pool definition. When absent, benefits in this pool do not support credit-based pricing."
132
- ).optional()
133
- }).describe(
134
- "Pool definition details including display name, description, and credit settings. Only populated when\nPOOL_DEFINITION is included in the fields request parameter."
135
- ).optional(),
136
- programDefinitions: z.array(
137
- z.object({
138
- _id: z.string().describe("Program definition id").regex(
139
- /^[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}$/,
140
- "Must be a valid GUID"
141
- ).optional(),
142
- externalId: z.string().describe("Program definition external id").regex(
143
- /^[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}$/,
144
- "Must be a valid GUID"
145
- ).optional().nullable(),
146
- displayName: z.string().describe("Program definition name").max(64).optional().nullable(),
147
- description: z.string().describe("Program definition description.").max(450).optional().nullable()
148
- })
149
- ).max(20).optional(),
150
- itemId: z.string().describe("Item ID.").regex(
151
- /^[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}$/,
152
- "Must be a valid GUID"
153
- ).optional(),
154
- benefitInfo: z.object({
155
- price: z.string().describe(
156
- "Price of the benefit in credits. The price is the same for all of this benefit's items."
157
- ).optional().nullable(),
158
- displayName: z.string().describe("Benefit name.").max(40).optional().nullable(),
159
- description: z.string().describe("Benefit description.").max(255).optional().nullable()
160
- }).describe(
161
- "Pricing and display information for the associated benefit, including credit price, name, and description.\nOnly populated when BENEFIT is included in the fields request parameter."
162
- ).optional(),
163
- itemInfo: z.object({
164
- displayName: z.string().describe("Item display name.").max(400).optional().nullable()
165
- }).describe(
166
- "Display name for the catalog item. Only populated when ITEM is included in the fields request parameter."
167
- ).optional(),
168
- benefitKey: z.string().describe(
169
- "Unique identifier for the benefit associated with this item."
170
- ).max(64).optional(),
171
- itemSearchKey: z.string().describe(
172
- "Pre-computed search key for the item reference, built by concatenating provider_app_id, category, and external_id\nseparated by /. Use this field for efficient single-field filtering instead of composing three separate conditions."
173
- ).max(94).optional(),
174
- removed: z.boolean().describe(
175
- "Whether this item has been removed from the pool definition."
176
- ).optional().nullable()
177
- })
178
- ).optional(),
179
- metadata: z.object({
180
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
181
- cursors: z.object({
182
- next: z.string().describe(
183
- "Cursor string pointing to the next page in the list of results."
184
- ).max(16e3).optional().nullable(),
185
- prev: z.string().describe(
186
- "Cursor pointing to the previous page in the list of results."
187
- ).max(16e3).optional().nullable()
188
- }).describe(
189
- "Cursor strings that point to the next page, previous page, or both."
190
- ).optional(),
191
- hasNext: z.boolean().describe(
192
- "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."
193
- ).optional().nullable()
194
- }).describe("Metadata for paginated results.").optional()
195
- });
196
- var RemoveItemsFromBenefitRequest = /* @__PURE__ */ z.object({
197
- itemReferences: z.array(
198
- z.object({
199
- externalId: z.string().describe("External item ID assigned by the provider.").regex(
200
- /^[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}$/,
201
- "Must be a valid GUID"
202
- ),
203
- category: z.string().describe("Item category.").max(20).optional()
204
- })
205
- ).min(1).max(100),
206
- options: z.object({
207
- poolDefinitionId: z.string().describe("ID of the pool definition associated with the benefit.").regex(
208
- /^[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}$/,
209
- "Must be a valid GUID"
210
- ),
211
- benefitKey: z.string().describe("Key identifying the benefit in the pool definition.").max(64)
212
- })
213
- });
214
- var RemoveItemsFromBenefitResponse = /* @__PURE__ */ z.object({
215
- results: z.array(
216
- z.object({
217
- itemMetadata: z.object({
218
- _id: z.string().describe(
219
- "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
220
- ).regex(
221
- /^[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}$/,
222
- "Must be a valid GUID"
223
- ).optional().nullable(),
224
- originalIndex: z.number().int().describe(
225
- "Index of the item within the request array. Allows for correlation between request and response items."
226
- ).optional(),
227
- success: z.boolean().describe(
228
- "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
229
- ).optional(),
230
- error: z.object({
231
- code: z.string().describe("Error code.").optional(),
232
- description: z.string().describe("Description of the error.").optional(),
233
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
234
- }).describe("Details about the error in case of failure.").optional()
235
- }).describe(
236
- "Outcome metadata for a single item, including the underlying item ID, success flag, and error details on failure."
237
- ).optional()
238
- })
239
- ).optional(),
240
- bulkActionMetadata: z.object({
241
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
242
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
243
- undetailedFailures: z.number().int().describe(
244
- "Number of failures without details because detailed failure threshold was exceeded."
245
- ).optional()
246
- }).describe(
247
- "Aggregate counts for the bulk operation, including successes and failures. The service counts unresolved item references as failures."
248
- ).optional()
249
- });
250
- var AddItemsToBenefitRequest = /* @__PURE__ */ z.object({
251
- itemReferences: z.array(
252
- z.object({
253
- externalId: z.string().describe("External item ID assigned by the provider.").regex(
254
- /^[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}$/,
255
- "Must be a valid GUID"
256
- ),
257
- category: z.string().describe("Item category.").max(20).optional()
258
- })
259
- ).min(1).max(100),
260
- options: z.object({
261
- poolDefinitionId: z.string().describe("ID of the pool definition associated with the benefit.").regex(
262
- /^[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}$/,
263
- "Must be a valid GUID"
264
- ),
265
- benefitKey: z.string().describe("Key identifying the benefit in the pool definition.").max(64)
266
- })
267
- });
268
- var AddItemsToBenefitResponse = /* @__PURE__ */ z.object({
269
- results: z.array(
270
- z.object({
271
- itemMetadata: z.object({
272
- _id: z.string().describe(
273
- "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
274
- ).regex(
275
- /^[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}$/,
276
- "Must be a valid GUID"
277
- ).optional().nullable(),
278
- originalIndex: z.number().int().describe(
279
- "Index of the item within the request array. Allows for correlation between request and response items."
280
- ).optional(),
281
- success: z.boolean().describe(
282
- "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
283
- ).optional(),
284
- error: z.object({
285
- code: z.string().describe("Error code.").optional(),
286
- description: z.string().describe("Description of the error.").optional(),
287
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
288
- }).describe("Details about the error in case of failure.").optional()
289
- }).describe(
290
- "Outcome metadata for the catalog item created in the underlying item service. The item ID here is the Item entity\nID. The service creates PoolDefinitionItem records asynchronously and doesn't include their IDs in this response."
291
- ).optional()
292
- })
293
- ).optional(),
294
- bulkActionMetadata: z.object({
295
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
296
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
297
- undetailedFailures: z.number().int().describe(
298
- "Number of failures without details because detailed failure threshold was exceeded."
299
- ).optional()
300
- }).describe(
301
- "Aggregate counts for the bulk operation, including successes and failures."
302
- ).optional()
303
- });
304
- // Annotate the CommonJS export names for ESM import in node:
305
- 0 && (module.exports = {
306
- AddItemsToBenefitRequest,
307
- AddItemsToBenefitResponse,
308
- QueryPoolDefinitionItemsRequest,
309
- QueryPoolDefinitionItemsResponse,
310
- RemoveItemsFromBenefitRequest,
311
- RemoveItemsFromBenefitResponse
312
- });
313
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/benefit-programs-v1-pool-definition-item-pool-definition-items.schemas.ts"],"sourcesContent":["export * from './src/benefit-programs-v1-pool-definition-item-pool-definition-items.schemas.js';\n","import * as z from 'zod';\n\nexport const QueryPoolDefinitionItemsRequest = /*#__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 to select pool definition items.'),\n options: z\n .object({\n fields: z\n .array(\n z.enum(['POOL_DEFINITION', 'PROGRAM_DEFINITION', 'BENEFIT', 'ITEM'])\n )\n .max(4)\n .optional(),\n })\n .optional(),\n});\nexport const QueryPoolDefinitionItemsResponse = /*#__PURE__*/ z.object({\n poolDefinitionItems: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'Benefit item ID. Deterministically generated from pool_definition_id and item_id — if you know both, you can compute the ID without querying.'\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 benefit item is updated.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the item was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the 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 benefit 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 purposes. For example, classes, posts, groups.'\n )\n .max(20)\n .optional(),\n providerAppId: z\n .string()\n .describe(\n \"ID of the application providing the benefit items. Each item's external_id 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 allow you to distinguish between entities that you\\ncreated and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional(),\n poolDefinitionId: z\n .string()\n .describe(\n 'ID of the pool definition - the configuration that defines a set of benefits and which items are accessible within each benefit.'\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 itemSetId: z\n .string()\n .describe(\n \"Internal grouping identifier for this benefit's item set. Use pool_definition_id together with benefit_key\\nto identify a benefit — item_set_id 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 poolDefinition: z\n .object({\n displayName: z\n .string()\n .describe('Pool definition name.')\n .max(64)\n .optional(),\n description: z\n .string()\n .describe('Pool definition description.')\n .max(450)\n .optional()\n .nullable(),\n creditConfiguration: z\n .object({\n amount: z\n .string()\n .describe(\n \"Number of credits initially granted to a subscriber when this pool definition's benefits are activated.\"\n )\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 for this pool definition. When absent, benefits in this pool do not support credit-based pricing.'\n )\n .optional(),\n })\n .describe(\n 'Pool definition details including display name, description, and credit settings. Only populated when\\nPOOL_DEFINITION is included in the fields request parameter.'\n )\n .optional(),\n programDefinitions: z\n .array(\n z.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('Program definition external 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 .nullable(),\n displayName: z\n .string()\n .describe('Program definition 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 )\n .max(20)\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 benefitInfo: z\n .object({\n price: z\n .string()\n .describe(\n \"Price of the benefit in credits. The price is the same for all of this benefit's items.\"\n )\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Benefit 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.\\nOnly populated when BENEFIT is included in the fields request parameter.'\n )\n .optional(),\n itemInfo: z\n .object({\n displayName: z\n .string()\n .describe('Item display name.')\n .max(400)\n .optional()\n .nullable(),\n })\n .describe(\n 'Display name for the catalog item. Only populated when ITEM is included in the fields request parameter.'\n )\n .optional(),\n benefitKey: z\n .string()\n .describe(\n 'Unique identifier for the benefit associated with 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 provider_app_id, category, and external_id\\nseparated 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(\n 'Whether this item has been removed from the pool definition.'\n )\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('Metadata for paginated results.')\n .optional(),\n});\nexport const RemoveItemsFromBenefitRequest = /*#__PURE__*/ z.object({\n itemReferences: z\n .array(\n z.object({\n externalId: z\n .string()\n .describe('External item 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 category: z.string().describe('Item category.').max(20).optional(),\n })\n )\n .min(1)\n .max(100),\n options: z.object({\n poolDefinitionId: z\n .string()\n .describe('ID of the pool definition associated with the benefit.')\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 benefitKey: z\n .string()\n .describe('Key identifying the benefit in the pool definition.')\n .max(64),\n }),\n});\nexport const RemoveItemsFromBenefitResponse = /*#__PURE__*/ z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\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 originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe(\n 'Outcome metadata for a single item, including the underlying item ID, success flag, and error details on failure.'\n )\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Aggregate counts for the bulk operation, including successes and failures. The service counts unresolved item references as failures.'\n )\n .optional(),\n});\nexport const AddItemsToBenefitRequest = /*#__PURE__*/ z.object({\n itemReferences: z\n .array(\n z.object({\n externalId: z\n .string()\n .describe('External item 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 category: z.string().describe('Item category.').max(20).optional(),\n })\n )\n .min(1)\n .max(100),\n options: z.object({\n poolDefinitionId: z\n .string()\n .describe('ID of the pool definition associated with the benefit.')\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 benefitKey: z\n .string()\n .describe('Key identifying the benefit in the pool definition.')\n .max(64),\n }),\n});\nexport const AddItemsToBenefitResponse = /*#__PURE__*/ z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\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 originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe(\n \"Outcome metadata for the catalog item created in the underlying item service. The item ID here is the Item entity\\nID. The service creates PoolDefinitionItem records asynchronously and doesn't include their IDs in this response.\"\n )\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Aggregate counts for the bulk operation, including successes and failures.'\n )\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,kCAAgD,gBAAE,SAAO;AAAA,EACpE,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,wCAAwC;AAAA,EACpD,SACG,SAAO;AAAA,IACN,QACG;AAAA,MACG,OAAK,CAAC,mBAAmB,sBAAsB,WAAW,MAAM,CAAC;AAAA,IACrE,EACC,IAAI,CAAC,EACL,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM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