@wix/auto_sdk_benefit-programs_items 1.0.59 → 1.0.61
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/build/cjs/index.js +2 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -13
- package/build/cjs/index.typings.js +1 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +28 -28
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +2 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -13
- package/build/es/index.typings.mjs +1 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +28 -28
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +2 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +60 -13
- package/build/internal/cjs/index.typings.js +1 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +75 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +28 -28
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +2 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +60 -13
- package/build/internal/es/index.typings.mjs +1 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +75 -3
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +28 -28
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -57,7 +57,7 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
57
57
|
|
|
58
58
|
// src/benefit-programs-v1-item-items.schemas.ts
|
|
59
59
|
var z = __toESM(require("zod"));
|
|
60
|
-
var CreateItemRequest = z.object({
|
|
60
|
+
var CreateItemRequest = /* @__PURE__ */ z.object({
|
|
61
61
|
item: z.object({
|
|
62
62
|
_id: z.string().describe("Benefit item ID.").regex(
|
|
63
63
|
/^[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}$/,
|
|
@@ -100,7 +100,7 @@ var CreateItemRequest = z.object({
|
|
|
100
100
|
).min(1).max(20)
|
|
101
101
|
}).describe("Item to create.")
|
|
102
102
|
});
|
|
103
|
-
var CreateItemResponse = z.object({
|
|
103
|
+
var CreateItemResponse = /* @__PURE__ */ z.object({
|
|
104
104
|
_id: z.string().describe("Benefit item ID.").regex(
|
|
105
105
|
/^[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}$/,
|
|
106
106
|
"Must be a valid GUID"
|
|
@@ -139,7 +139,7 @@ var CreateItemResponse = z.object({
|
|
|
139
139
|
"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created."
|
|
140
140
|
).min(1).max(20).optional().nullable()
|
|
141
141
|
});
|
|
142
|
-
var BulkCreateItemsRequest = z.object({
|
|
142
|
+
var BulkCreateItemsRequest = /* @__PURE__ */ z.object({
|
|
143
143
|
items: z.array(
|
|
144
144
|
z.object({
|
|
145
145
|
_id: z.string().describe("Benefit item ID.").regex(
|
|
@@ -189,7 +189,7 @@ var BulkCreateItemsRequest = z.object({
|
|
|
189
189
|
).optional()
|
|
190
190
|
}).optional()
|
|
191
191
|
});
|
|
192
|
-
var BulkCreateItemsResponse = z.object({
|
|
192
|
+
var BulkCreateItemsResponse = /* @__PURE__ */ z.object({
|
|
193
193
|
results: z.array(
|
|
194
194
|
z.object({
|
|
195
195
|
itemMetadata: z.object({
|
|
@@ -262,17 +262,17 @@ var BulkCreateItemsResponse = z.object({
|
|
|
262
262
|
).optional()
|
|
263
263
|
}).describe("Bulk action metadata.").optional()
|
|
264
264
|
});
|
|
265
|
-
var DeleteItemRequest = z.object({
|
|
265
|
+
var DeleteItemRequest = /* @__PURE__ */ z.object({
|
|
266
266
|
itemId: z.string().describe("Item ID.").regex(
|
|
267
267
|
/^[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}$/,
|
|
268
268
|
"Must be a valid GUID"
|
|
269
269
|
)
|
|
270
270
|
});
|
|
271
|
-
var DeleteItemResponse = z.object({});
|
|
272
|
-
var BulkDeleteItemsRequest = z.object({
|
|
271
|
+
var DeleteItemResponse = /* @__PURE__ */ z.object({});
|
|
272
|
+
var BulkDeleteItemsRequest = /* @__PURE__ */ z.object({
|
|
273
273
|
itemIds: z.array(z.string()).min(1).max(100)
|
|
274
274
|
});
|
|
275
|
-
var BulkDeleteItemsResponse = z.object({
|
|
275
|
+
var BulkDeleteItemsResponse = /* @__PURE__ */ z.object({
|
|
276
276
|
results: z.array(
|
|
277
277
|
z.object({
|
|
278
278
|
itemMetadata: z.object({
|
|
@@ -345,7 +345,7 @@ var BulkDeleteItemsResponse = z.object({
|
|
|
345
345
|
).optional()
|
|
346
346
|
}).describe("Bulk action metadata.").optional()
|
|
347
347
|
});
|
|
348
|
-
var BulkDeleteItemsByFilterRequest = z.object({
|
|
348
|
+
var BulkDeleteItemsByFilterRequest = /* @__PURE__ */ z.object({
|
|
349
349
|
namespace: z.string().describe(
|
|
350
350
|
"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created."
|
|
351
351
|
).min(1).max(20),
|
|
@@ -355,7 +355,7 @@ var BulkDeleteItemsByFilterRequest = z.object({
|
|
|
355
355
|
).optional().nullable()
|
|
356
356
|
}).optional()
|
|
357
357
|
});
|
|
358
|
-
var BulkDeleteItemsByFilterResponse = z.object({
|
|
358
|
+
var BulkDeleteItemsByFilterResponse = /* @__PURE__ */ z.object({
|
|
359
359
|
jobId: z.string().describe(
|
|
360
360
|
"Job ID for item deletion. Retrieve job details using the [Async Job API](https://dev.wix.com/docs/rest/business-management/async-job/introduction)."
|
|
361
361
|
).regex(
|
|
@@ -363,7 +363,7 @@ var BulkDeleteItemsByFilterResponse = z.object({
|
|
|
363
363
|
"Must be a valid GUID"
|
|
364
364
|
).optional()
|
|
365
365
|
});
|
|
366
|
-
var UpdateItemRequest = z.object({
|
|
366
|
+
var UpdateItemRequest = /* @__PURE__ */ z.object({
|
|
367
367
|
_id: z.string().describe("Benefit item ID.").regex(
|
|
368
368
|
/^[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}$/,
|
|
369
369
|
"Must be a valid GUID"
|
|
@@ -410,7 +410,7 @@ var UpdateItemRequest = z.object({
|
|
|
410
410
|
).min(1).max(20).optional().nullable()
|
|
411
411
|
}).describe("Item to update.")
|
|
412
412
|
});
|
|
413
|
-
var UpdateItemResponse = z.object({
|
|
413
|
+
var UpdateItemResponse = /* @__PURE__ */ z.object({
|
|
414
414
|
_id: z.string().describe("Benefit item ID.").regex(
|
|
415
415
|
/^[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}$/,
|
|
416
416
|
"Must be a valid GUID"
|
|
@@ -449,7 +449,7 @@ var UpdateItemResponse = z.object({
|
|
|
449
449
|
"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created."
|
|
450
450
|
).min(1).max(20).optional().nullable()
|
|
451
451
|
});
|
|
452
|
-
var BulkUpdateItemsRequest = z.object({
|
|
452
|
+
var BulkUpdateItemsRequest = /* @__PURE__ */ z.object({
|
|
453
453
|
options: z.object({
|
|
454
454
|
items: z.array(
|
|
455
455
|
z.object({
|
|
@@ -502,7 +502,7 @@ var BulkUpdateItemsRequest = z.object({
|
|
|
502
502
|
).optional()
|
|
503
503
|
}).optional()
|
|
504
504
|
});
|
|
505
|
-
var BulkUpdateItemsResponse = z.object({
|
|
505
|
+
var BulkUpdateItemsResponse = /* @__PURE__ */ z.object({
|
|
506
506
|
results: z.array(
|
|
507
507
|
z.object({
|
|
508
508
|
itemMetadata: z.object({
|
|
@@ -575,13 +575,13 @@ var BulkUpdateItemsResponse = z.object({
|
|
|
575
575
|
).optional()
|
|
576
576
|
}).describe("Bulk action metadata.").optional()
|
|
577
577
|
});
|
|
578
|
-
var GetItemRequest = z.object({
|
|
578
|
+
var GetItemRequest = /* @__PURE__ */ z.object({
|
|
579
579
|
itemId: z.string().describe("ID of the item to retrieve.").regex(
|
|
580
580
|
/^[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}$/,
|
|
581
581
|
"Must be a valid GUID"
|
|
582
582
|
)
|
|
583
583
|
});
|
|
584
|
-
var GetItemResponse = z.object({
|
|
584
|
+
var GetItemResponse = /* @__PURE__ */ z.object({
|
|
585
585
|
_id: z.string().describe("Benefit item ID.").regex(
|
|
586
586
|
/^[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}$/,
|
|
587
587
|
"Must be a valid GUID"
|
|
@@ -620,7 +620,7 @@ var GetItemResponse = z.object({
|
|
|
620
620
|
"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created."
|
|
621
621
|
).min(1).max(20).optional().nullable()
|
|
622
622
|
});
|
|
623
|
-
var ListItemsRequest = z.object({
|
|
623
|
+
var ListItemsRequest = /* @__PURE__ */ z.object({
|
|
624
624
|
options: z.object({
|
|
625
625
|
filter: z.intersection(
|
|
626
626
|
z.object({
|
|
@@ -684,11 +684,11 @@ var ListItemsRequest = z.object({
|
|
|
684
684
|
limit: z.number().int().describe("Maximum number of items to return.").min(0).max(1e3).optional().nullable(),
|
|
685
685
|
cursor: z.string().describe(
|
|
686
686
|
"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."
|
|
687
|
-
).max(
|
|
687
|
+
).max(64e3).optional().nullable()
|
|
688
688
|
}).describe("Cursor paging").optional()
|
|
689
689
|
}).optional()
|
|
690
690
|
});
|
|
691
|
-
var ListItemsResponse = z.object({
|
|
691
|
+
var ListItemsResponse = /* @__PURE__ */ z.object({
|
|
692
692
|
items: z.array(
|
|
693
693
|
z.object({
|
|
694
694
|
_id: z.string().describe("Benefit item ID.").regex(
|
|
@@ -737,10 +737,10 @@ var ListItemsResponse = z.object({
|
|
|
737
737
|
cursors: z.object({
|
|
738
738
|
next: z.string().describe(
|
|
739
739
|
"Cursor string pointing to the next page in the list of results."
|
|
740
|
-
).max(
|
|
740
|
+
).max(64e3).optional().nullable(),
|
|
741
741
|
prev: z.string().describe(
|
|
742
742
|
"Cursor pointing to the previous page in the list of results."
|
|
743
|
-
).max(
|
|
743
|
+
).max(64e3).optional().nullable()
|
|
744
744
|
}).describe(
|
|
745
745
|
"Cursor strings that point to the next page, previous page, or both."
|
|
746
746
|
).optional(),
|
|
@@ -749,7 +749,7 @@ var ListItemsResponse = z.object({
|
|
|
749
749
|
).optional().nullable()
|
|
750
750
|
}).describe("Metadata for paginated results.").optional()
|
|
751
751
|
});
|
|
752
|
-
var QueryItemsRequest = z.object({
|
|
752
|
+
var QueryItemsRequest = /* @__PURE__ */ z.object({
|
|
753
753
|
query: z.intersection(
|
|
754
754
|
z.object({
|
|
755
755
|
filter: z.record(z.string(), z.any()).describe(
|
|
@@ -769,7 +769,7 @@ var QueryItemsRequest = z.object({
|
|
|
769
769
|
limit: z.number().int().describe("Maximum number of items to return.").min(0).max(1e3).optional().nullable(),
|
|
770
770
|
cursor: z.string().describe(
|
|
771
771
|
"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."
|
|
772
|
-
).max(
|
|
772
|
+
).max(64e3).optional().nullable()
|
|
773
773
|
}).describe(
|
|
774
774
|
"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`."
|
|
775
775
|
)
|
|
@@ -777,7 +777,7 @@ var QueryItemsRequest = z.object({
|
|
|
777
777
|
])
|
|
778
778
|
).describe("Filter, sort, and paging to apply to the query.")
|
|
779
779
|
});
|
|
780
|
-
var QueryItemsResponse = z.object({
|
|
780
|
+
var QueryItemsResponse = /* @__PURE__ */ z.object({
|
|
781
781
|
items: z.array(
|
|
782
782
|
z.object({
|
|
783
783
|
_id: z.string().describe("Benefit item ID.").regex(
|
|
@@ -826,10 +826,10 @@ var QueryItemsResponse = z.object({
|
|
|
826
826
|
cursors: z.object({
|
|
827
827
|
next: z.string().describe(
|
|
828
828
|
"Cursor string pointing to the next page in the list of results."
|
|
829
|
-
).max(
|
|
829
|
+
).max(64e3).optional().nullable(),
|
|
830
830
|
prev: z.string().describe(
|
|
831
831
|
"Cursor pointing to the previous page in the list of results."
|
|
832
|
-
).max(
|
|
832
|
+
).max(64e3).optional().nullable()
|
|
833
833
|
}).describe(
|
|
834
834
|
"Cursor strings that point to the next page, previous page, or both."
|
|
835
835
|
).optional(),
|
|
@@ -838,14 +838,14 @@ var QueryItemsResponse = z.object({
|
|
|
838
838
|
).optional().nullable()
|
|
839
839
|
}).describe("Metadata for paginated results.").optional()
|
|
840
840
|
});
|
|
841
|
-
var CountItemsRequest = z.object({
|
|
841
|
+
var CountItemsRequest = /* @__PURE__ */ z.object({
|
|
842
842
|
options: z.object({
|
|
843
843
|
filter: z.record(z.string(), z.any()).describe(
|
|
844
844
|
"Items to count.\n\nFilter options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)."
|
|
845
845
|
).optional().nullable()
|
|
846
846
|
}).optional()
|
|
847
847
|
});
|
|
848
|
-
var CountItemsResponse = z.object({
|
|
848
|
+
var CountItemsResponse = /* @__PURE__ */ z.object({
|
|
849
849
|
count: z.number().int().describe("Number of items fulfilling the specified filter conditions.").optional()
|
|
850
850
|
});
|
|
851
851
|
// Annotate the CommonJS export names for ESM import in node:
|