@wix/auto_sdk_fast-gallery_galleries 1.0.18 → 1.0.20
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 +0 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -10
- package/build/cjs/index.typings.js +0 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -4
- package/build/cjs/meta.js +0 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +458 -0
- package/build/cjs/schemas.js +741 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.mjs +0 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -10
- package/build/es/index.typings.mjs +0 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -4
- package/build/es/meta.mjs +0 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +458 -0
- package/build/es/schemas.mjs +679 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.js +0 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +4 -10
- package/build/internal/cjs/index.typings.js +0 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -4
- package/build/internal/cjs/meta.js +0 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +458 -0
- package/build/internal/cjs/schemas.js +741 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.mjs +0 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +4 -10
- package/build/internal/es/index.typings.mjs +0 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -4
- package/build/internal/es/meta.mjs +0 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +458 -0
- package/build/internal/es/schemas.mjs +679 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,741 @@
|
|
|
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
|
+
BulkCreateGalleriesRequest: () => BulkCreateGalleriesRequest,
|
|
34
|
+
BulkCreateGalleriesResponse: () => BulkCreateGalleriesResponse,
|
|
35
|
+
BulkDeleteGalleriesRequest: () => BulkDeleteGalleriesRequest,
|
|
36
|
+
BulkDeleteGalleriesResponse: () => BulkDeleteGalleriesResponse,
|
|
37
|
+
BulkUpdateGalleriesRequest: () => BulkUpdateGalleriesRequest,
|
|
38
|
+
BulkUpdateGalleriesResponse: () => BulkUpdateGalleriesResponse,
|
|
39
|
+
CreateGalleryRequest: () => CreateGalleryRequest,
|
|
40
|
+
CreateGalleryResponse: () => CreateGalleryResponse,
|
|
41
|
+
GetDeletedGalleryRequest: () => GetDeletedGalleryRequest,
|
|
42
|
+
GetDeletedGalleryResponse: () => GetDeletedGalleryResponse,
|
|
43
|
+
GetGalleryByDraftGalleryIdRequest: () => GetGalleryByDraftGalleryIdRequest,
|
|
44
|
+
GetGalleryByDraftGalleryIdResponse: () => GetGalleryByDraftGalleryIdResponse,
|
|
45
|
+
GetGalleryRequest: () => GetGalleryRequest,
|
|
46
|
+
GetGalleryResponse: () => GetGalleryResponse,
|
|
47
|
+
ListDeletedGalleriesRequest: () => ListDeletedGalleriesRequest,
|
|
48
|
+
ListDeletedGalleriesResponse: () => ListDeletedGalleriesResponse,
|
|
49
|
+
QueryGalleriesRequest: () => QueryGalleriesRequest,
|
|
50
|
+
QueryGalleriesResponse: () => QueryGalleriesResponse,
|
|
51
|
+
RemoveGalleryFromTrashBinRequest: () => RemoveGalleryFromTrashBinRequest,
|
|
52
|
+
RemoveGalleryFromTrashBinResponse: () => RemoveGalleryFromTrashBinResponse,
|
|
53
|
+
RestoreGalleryFromTrashBinRequest: () => RestoreGalleryFromTrashBinRequest,
|
|
54
|
+
RestoreGalleryFromTrashBinResponse: () => RestoreGalleryFromTrashBinResponse,
|
|
55
|
+
UpdateExtendedFieldsRequest: () => UpdateExtendedFieldsRequest,
|
|
56
|
+
UpdateExtendedFieldsResponse: () => UpdateExtendedFieldsResponse,
|
|
57
|
+
UpdateGalleryRequest: () => UpdateGalleryRequest,
|
|
58
|
+
UpdateGalleryResponse: () => UpdateGalleryResponse
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
61
|
+
|
|
62
|
+
// src/fastgallery-gallery-v1-gallery-galleries.schemas.ts
|
|
63
|
+
var z = __toESM(require("zod"));
|
|
64
|
+
var CreateGalleryRequest = z.object({
|
|
65
|
+
gallery: z.object({
|
|
66
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
67
|
+
/^[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}$/,
|
|
68
|
+
"Must be a valid GUID"
|
|
69
|
+
).optional().nullable(),
|
|
70
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
71
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
72
|
+
).optional().nullable(),
|
|
73
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
74
|
+
/^[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}$/,
|
|
75
|
+
"Must be a valid GUID"
|
|
76
|
+
).optional().nullable(),
|
|
77
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
78
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
79
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
80
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
81
|
+
extendedFields: z.object({
|
|
82
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
83
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
84
|
+
).optional()
|
|
85
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
86
|
+
variant: z.enum(["LIVE", "RC"]).optional()
|
|
87
|
+
}).describe("Gallery to be created.")
|
|
88
|
+
});
|
|
89
|
+
var CreateGalleryResponse = z.object({
|
|
90
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
91
|
+
/^[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}$/,
|
|
92
|
+
"Must be a valid GUID"
|
|
93
|
+
).optional().nullable(),
|
|
94
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
95
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
96
|
+
).optional().nullable(),
|
|
97
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
98
|
+
/^[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}$/,
|
|
99
|
+
"Must be a valid GUID"
|
|
100
|
+
).optional().nullable(),
|
|
101
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
102
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
103
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
104
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
105
|
+
extendedFields: z.object({
|
|
106
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
107
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
108
|
+
).optional()
|
|
109
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
110
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
111
|
+
});
|
|
112
|
+
var GetGalleryRequest = z.object({
|
|
113
|
+
galleryId: z.string().describe("ID of the Gallery to retrieve.").regex(
|
|
114
|
+
/^[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}$/,
|
|
115
|
+
"Must be a valid GUID"
|
|
116
|
+
)
|
|
117
|
+
});
|
|
118
|
+
var GetGalleryResponse = z.object({
|
|
119
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
120
|
+
/^[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}$/,
|
|
121
|
+
"Must be a valid GUID"
|
|
122
|
+
).optional().nullable(),
|
|
123
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
124
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
125
|
+
).optional().nullable(),
|
|
126
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
127
|
+
/^[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}$/,
|
|
128
|
+
"Must be a valid GUID"
|
|
129
|
+
).optional().nullable(),
|
|
130
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
131
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
132
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
133
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
134
|
+
extendedFields: z.object({
|
|
135
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
136
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
137
|
+
).optional()
|
|
138
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
139
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
140
|
+
});
|
|
141
|
+
var GetGalleryByDraftGalleryIdRequest = z.object({
|
|
142
|
+
draftGalleryId: z.string().describe("Id of the draftGallery the Gallery originates from").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
|
+
)
|
|
146
|
+
});
|
|
147
|
+
var GetGalleryByDraftGalleryIdResponse = z.object({
|
|
148
|
+
gallery: z.object({
|
|
149
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
150
|
+
/^[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}$/,
|
|
151
|
+
"Must be a valid GUID"
|
|
152
|
+
).optional().nullable(),
|
|
153
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
154
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
155
|
+
).optional().nullable(),
|
|
156
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
157
|
+
/^[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}$/,
|
|
158
|
+
"Must be a valid GUID"
|
|
159
|
+
).optional().nullable(),
|
|
160
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
161
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
162
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
163
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
164
|
+
extendedFields: z.object({
|
|
165
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
166
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
167
|
+
).optional()
|
|
168
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
169
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
170
|
+
}).describe("The retrieved Gallery").optional()
|
|
171
|
+
});
|
|
172
|
+
var UpdateGalleryRequest = z.object({
|
|
173
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
174
|
+
/^[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}$/,
|
|
175
|
+
"Must be a valid GUID"
|
|
176
|
+
),
|
|
177
|
+
gallery: z.object({
|
|
178
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
179
|
+
/^[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}$/,
|
|
180
|
+
"Must be a valid GUID"
|
|
181
|
+
).optional().nullable(),
|
|
182
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
183
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
184
|
+
),
|
|
185
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
186
|
+
/^[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}$/,
|
|
187
|
+
"Must be a valid GUID"
|
|
188
|
+
).optional().nullable(),
|
|
189
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
190
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
191
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
192
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
193
|
+
extendedFields: z.object({
|
|
194
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
195
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
196
|
+
).optional()
|
|
197
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
198
|
+
variant: z.enum(["LIVE", "RC"]).optional()
|
|
199
|
+
}).describe("Gallery to be updated, may be partial.")
|
|
200
|
+
});
|
|
201
|
+
var UpdateGalleryResponse = z.object({
|
|
202
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
203
|
+
/^[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}$/,
|
|
204
|
+
"Must be a valid GUID"
|
|
205
|
+
).optional().nullable(),
|
|
206
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
207
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
208
|
+
).optional().nullable(),
|
|
209
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
210
|
+
/^[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}$/,
|
|
211
|
+
"Must be a valid GUID"
|
|
212
|
+
).optional().nullable(),
|
|
213
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
214
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
215
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
216
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
217
|
+
extendedFields: z.object({
|
|
218
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
219
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
220
|
+
).optional()
|
|
221
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
222
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
223
|
+
});
|
|
224
|
+
var QueryGalleriesRequest = z.object({
|
|
225
|
+
query: z.object({
|
|
226
|
+
filter: z.object({
|
|
227
|
+
_id: z.object({
|
|
228
|
+
$eq: z.string(),
|
|
229
|
+
$exists: z.boolean(),
|
|
230
|
+
$gt: z.string(),
|
|
231
|
+
$gte: z.string(),
|
|
232
|
+
$hasAll: z.array(z.string()),
|
|
233
|
+
$hasSome: z.array(z.string()),
|
|
234
|
+
$in: z.array(z.string()),
|
|
235
|
+
$lt: z.string(),
|
|
236
|
+
$lte: z.string(),
|
|
237
|
+
$ne: z.string(),
|
|
238
|
+
$nin: z.array(z.string()),
|
|
239
|
+
$startsWith: z.string()
|
|
240
|
+
}).partial().strict().optional(),
|
|
241
|
+
siteVersion: z.object({
|
|
242
|
+
$eq: z.string(),
|
|
243
|
+
$exists: z.boolean(),
|
|
244
|
+
$gt: z.string(),
|
|
245
|
+
$gte: z.string(),
|
|
246
|
+
$hasAll: z.array(z.string()),
|
|
247
|
+
$hasSome: z.array(z.string()),
|
|
248
|
+
$in: z.array(z.string()),
|
|
249
|
+
$lt: z.string(),
|
|
250
|
+
$lte: z.string(),
|
|
251
|
+
$ne: z.string(),
|
|
252
|
+
$nin: z.array(z.string()),
|
|
253
|
+
$startsWith: z.string()
|
|
254
|
+
}).partial().strict().optional(),
|
|
255
|
+
_createdDate: z.object({
|
|
256
|
+
$eq: z.string(),
|
|
257
|
+
$exists: z.boolean(),
|
|
258
|
+
$gt: z.string(),
|
|
259
|
+
$gte: z.string(),
|
|
260
|
+
$hasAll: z.array(z.string()),
|
|
261
|
+
$hasSome: z.array(z.string()),
|
|
262
|
+
$in: z.array(z.string()),
|
|
263
|
+
$lt: z.string(),
|
|
264
|
+
$lte: z.string(),
|
|
265
|
+
$ne: z.string(),
|
|
266
|
+
$nin: z.array(z.string()),
|
|
267
|
+
$startsWith: z.string()
|
|
268
|
+
}).partial().strict().optional(),
|
|
269
|
+
_updatedDate: z.object({
|
|
270
|
+
$eq: z.string(),
|
|
271
|
+
$exists: z.boolean(),
|
|
272
|
+
$gt: z.string(),
|
|
273
|
+
$gte: z.string(),
|
|
274
|
+
$hasAll: z.array(z.string()),
|
|
275
|
+
$hasSome: z.array(z.string()),
|
|
276
|
+
$in: z.array(z.string()),
|
|
277
|
+
$lt: z.string(),
|
|
278
|
+
$lte: z.string(),
|
|
279
|
+
$ne: z.string(),
|
|
280
|
+
$nin: z.array(z.string()),
|
|
281
|
+
$startsWith: z.string()
|
|
282
|
+
}).partial().strict().optional(),
|
|
283
|
+
$and: z.array(z.any()).optional(),
|
|
284
|
+
$or: z.array(z.any()).optional(),
|
|
285
|
+
$not: z.any().optional()
|
|
286
|
+
}).strict().optional(),
|
|
287
|
+
sort: z.array(
|
|
288
|
+
z.object({
|
|
289
|
+
fieldName: z.enum(["_id", "siteVersion", "_createdDate", "_updatedDate"]).optional(),
|
|
290
|
+
order: z.enum(["ASC", "DESC"]).optional()
|
|
291
|
+
})
|
|
292
|
+
).optional()
|
|
293
|
+
}).catchall(z.any()).describe("WQL expression.")
|
|
294
|
+
});
|
|
295
|
+
var QueryGalleriesResponse = z.object({
|
|
296
|
+
galleries: z.array(
|
|
297
|
+
z.object({
|
|
298
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
299
|
+
/^[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}$/,
|
|
300
|
+
"Must be a valid GUID"
|
|
301
|
+
).optional().nullable(),
|
|
302
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
303
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
304
|
+
).optional().nullable(),
|
|
305
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
306
|
+
/^[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}$/,
|
|
307
|
+
"Must be a valid GUID"
|
|
308
|
+
).optional().nullable(),
|
|
309
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
310
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
311
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
312
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
313
|
+
extendedFields: z.object({
|
|
314
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
315
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
316
|
+
).optional()
|
|
317
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
318
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
319
|
+
})
|
|
320
|
+
).optional(),
|
|
321
|
+
pagingMetadata: z.object({
|
|
322
|
+
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
323
|
+
cursors: z.object({
|
|
324
|
+
next: z.string().describe(
|
|
325
|
+
"Cursor string pointing to the next page in the list of results."
|
|
326
|
+
).max(16e3).optional().nullable(),
|
|
327
|
+
prev: z.string().describe(
|
|
328
|
+
"Cursor pointing to the previous page in the list of results."
|
|
329
|
+
).max(16e3).optional().nullable()
|
|
330
|
+
}).describe(
|
|
331
|
+
"Cursor strings that point to the next page, previous page, or both."
|
|
332
|
+
).optional(),
|
|
333
|
+
hasNext: z.boolean().describe(
|
|
334
|
+
"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."
|
|
335
|
+
).optional().nullable()
|
|
336
|
+
}).describe("Paging metadata").optional()
|
|
337
|
+
});
|
|
338
|
+
var UpdateExtendedFieldsRequest = z.object({
|
|
339
|
+
_id: z.string().describe("ID of the entity to update."),
|
|
340
|
+
namespace: z.string().describe(
|
|
341
|
+
"Identifier for the app whose extended fields are being updated."
|
|
342
|
+
),
|
|
343
|
+
options: z.object({
|
|
344
|
+
namespaceData: z.record(z.string(), z.any()).describe(
|
|
345
|
+
"Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured."
|
|
346
|
+
)
|
|
347
|
+
})
|
|
348
|
+
});
|
|
349
|
+
var UpdateExtendedFieldsResponse = z.object({
|
|
350
|
+
gallery: z.object({
|
|
351
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
352
|
+
/^[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}$/,
|
|
353
|
+
"Must be a valid GUID"
|
|
354
|
+
).optional().nullable(),
|
|
355
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
356
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
357
|
+
).optional().nullable(),
|
|
358
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
359
|
+
/^[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}$/,
|
|
360
|
+
"Must be a valid GUID"
|
|
361
|
+
).optional().nullable(),
|
|
362
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
363
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
364
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
365
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
366
|
+
extendedFields: z.object({
|
|
367
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
368
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
369
|
+
).optional()
|
|
370
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
371
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
372
|
+
}).describe("Updated Gallery.").optional()
|
|
373
|
+
});
|
|
374
|
+
var BulkCreateGalleriesRequest = z.object({
|
|
375
|
+
galleries: z.array(
|
|
376
|
+
z.object({
|
|
377
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
378
|
+
/^[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}$/,
|
|
379
|
+
"Must be a valid GUID"
|
|
380
|
+
).optional().nullable(),
|
|
381
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
382
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
383
|
+
).optional().nullable(),
|
|
384
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
385
|
+
/^[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}$/,
|
|
386
|
+
"Must be a valid GUID"
|
|
387
|
+
).optional().nullable(),
|
|
388
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
389
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
390
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
391
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
392
|
+
extendedFields: z.object({
|
|
393
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
394
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
395
|
+
).optional()
|
|
396
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
397
|
+
variant: z.enum(["LIVE", "RC"]).optional()
|
|
398
|
+
})
|
|
399
|
+
).min(1).max(100),
|
|
400
|
+
options: z.object({
|
|
401
|
+
returnEntity: z.boolean().describe(
|
|
402
|
+
"set to `true` if you wish to receive back the created Galleries in the response"
|
|
403
|
+
).optional()
|
|
404
|
+
}).optional()
|
|
405
|
+
});
|
|
406
|
+
var BulkCreateGalleriesResponse = z.object({
|
|
407
|
+
results: z.array(
|
|
408
|
+
z.object({
|
|
409
|
+
itemMetadata: z.object({
|
|
410
|
+
_id: z.string().describe(
|
|
411
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
412
|
+
).regex(
|
|
413
|
+
/^[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}$/,
|
|
414
|
+
"Must be a valid GUID"
|
|
415
|
+
).optional().nullable(),
|
|
416
|
+
originalIndex: z.number().int().describe(
|
|
417
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
418
|
+
).optional(),
|
|
419
|
+
success: z.boolean().describe(
|
|
420
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
421
|
+
).optional(),
|
|
422
|
+
error: z.object({
|
|
423
|
+
code: z.string().describe("Error code.").optional(),
|
|
424
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
425
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
426
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
427
|
+
}).describe("Metadata regarding the specific single create operation").optional(),
|
|
428
|
+
item: z.object({
|
|
429
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
430
|
+
/^[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}$/,
|
|
431
|
+
"Must be a valid GUID"
|
|
432
|
+
).optional().nullable(),
|
|
433
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
434
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
435
|
+
).optional().nullable(),
|
|
436
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
437
|
+
/^[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}$/,
|
|
438
|
+
"Must be a valid GUID"
|
|
439
|
+
).optional().nullable(),
|
|
440
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
441
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
442
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
443
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
444
|
+
extendedFields: z.object({
|
|
445
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
446
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
447
|
+
).optional()
|
|
448
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
449
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
450
|
+
}).describe(
|
|
451
|
+
"Only exists if `returnEntity` was set to true in the request"
|
|
452
|
+
).optional()
|
|
453
|
+
})
|
|
454
|
+
).min(1).max(100).optional(),
|
|
455
|
+
bulkActionMetadata: z.object({
|
|
456
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
457
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
458
|
+
undetailedFailures: z.number().int().describe(
|
|
459
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
460
|
+
).optional()
|
|
461
|
+
}).describe("Metadata regarding the bulk create operation").optional()
|
|
462
|
+
});
|
|
463
|
+
var BulkUpdateGalleriesRequest = z.object({
|
|
464
|
+
galleries: z.array(
|
|
465
|
+
z.object({
|
|
466
|
+
gallery: z.object({
|
|
467
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
468
|
+
/^[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}$/,
|
|
469
|
+
"Must be a valid GUID"
|
|
470
|
+
).optional().nullable(),
|
|
471
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
472
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
473
|
+
),
|
|
474
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
475
|
+
/^[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}$/,
|
|
476
|
+
"Must be a valid GUID"
|
|
477
|
+
).optional().nullable(),
|
|
478
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
479
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
480
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
481
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
482
|
+
extendedFields: z.object({
|
|
483
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
484
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
485
|
+
).optional()
|
|
486
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
487
|
+
variant: z.enum(["LIVE", "RC"]).optional()
|
|
488
|
+
}).describe("Gallery to be updated, may be partial").optional()
|
|
489
|
+
})
|
|
490
|
+
).min(1).max(100),
|
|
491
|
+
options: z.object({
|
|
492
|
+
returnEntity: z.boolean().describe(
|
|
493
|
+
"set to `true` if you wish to receive back the updated Galleries in the response"
|
|
494
|
+
).optional()
|
|
495
|
+
}).optional()
|
|
496
|
+
});
|
|
497
|
+
var BulkUpdateGalleriesResponse = z.object({
|
|
498
|
+
results: z.array(
|
|
499
|
+
z.object({
|
|
500
|
+
itemMetadata: z.object({
|
|
501
|
+
_id: z.string().describe(
|
|
502
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
503
|
+
).regex(
|
|
504
|
+
/^[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}$/,
|
|
505
|
+
"Must be a valid GUID"
|
|
506
|
+
).optional().nullable(),
|
|
507
|
+
originalIndex: z.number().int().describe(
|
|
508
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
509
|
+
).optional(),
|
|
510
|
+
success: z.boolean().describe(
|
|
511
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
512
|
+
).optional(),
|
|
513
|
+
error: z.object({
|
|
514
|
+
code: z.string().describe("Error code.").optional(),
|
|
515
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
516
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
517
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
518
|
+
}).describe("Metadata regarding the specific single update operation").optional(),
|
|
519
|
+
item: z.object({
|
|
520
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
521
|
+
/^[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}$/,
|
|
522
|
+
"Must be a valid GUID"
|
|
523
|
+
).optional().nullable(),
|
|
524
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
525
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
526
|
+
).optional().nullable(),
|
|
527
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
528
|
+
/^[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}$/,
|
|
529
|
+
"Must be a valid GUID"
|
|
530
|
+
).optional().nullable(),
|
|
531
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
532
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
533
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
534
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
535
|
+
extendedFields: z.object({
|
|
536
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
537
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
538
|
+
).optional()
|
|
539
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
540
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
541
|
+
}).describe(
|
|
542
|
+
"Only exists if `returnEntity` was set to true in the request"
|
|
543
|
+
).optional()
|
|
544
|
+
})
|
|
545
|
+
).min(1).max(100).optional(),
|
|
546
|
+
bulkActionMetadata: z.object({
|
|
547
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
548
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
549
|
+
undetailedFailures: z.number().int().describe(
|
|
550
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
551
|
+
).optional()
|
|
552
|
+
}).describe("Metadata regarding the bulk update operation").optional()
|
|
553
|
+
});
|
|
554
|
+
var BulkDeleteGalleriesRequest = z.object({
|
|
555
|
+
galleryIds: z.array(z.string()).min(1).max(100)
|
|
556
|
+
});
|
|
557
|
+
var BulkDeleteGalleriesResponse = z.object({
|
|
558
|
+
results: z.array(
|
|
559
|
+
z.object({
|
|
560
|
+
itemMetadata: z.object({
|
|
561
|
+
_id: z.string().describe(
|
|
562
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
563
|
+
).regex(
|
|
564
|
+
/^[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}$/,
|
|
565
|
+
"Must be a valid GUID"
|
|
566
|
+
).optional().nullable(),
|
|
567
|
+
originalIndex: z.number().int().describe(
|
|
568
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
569
|
+
).optional(),
|
|
570
|
+
success: z.boolean().describe(
|
|
571
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
572
|
+
).optional(),
|
|
573
|
+
error: z.object({
|
|
574
|
+
code: z.string().describe("Error code.").optional(),
|
|
575
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
576
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
577
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
578
|
+
}).describe("Metadata regarding the specific single delete operation").optional()
|
|
579
|
+
})
|
|
580
|
+
).min(1).max(100).optional(),
|
|
581
|
+
bulkActionMetadata: z.object({
|
|
582
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
583
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
584
|
+
undetailedFailures: z.number().int().describe(
|
|
585
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
586
|
+
).optional()
|
|
587
|
+
}).describe("Metadata regarding the bulk delete operation").optional()
|
|
588
|
+
});
|
|
589
|
+
var GetDeletedGalleryRequest = z.object({
|
|
590
|
+
galleryId: z.string().describe("Id of the deleted Gallery to retrieve").regex(
|
|
591
|
+
/^[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}$/,
|
|
592
|
+
"Must be a valid GUID"
|
|
593
|
+
)
|
|
594
|
+
});
|
|
595
|
+
var GetDeletedGalleryResponse = z.object({
|
|
596
|
+
gallery: z.object({
|
|
597
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
598
|
+
/^[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}$/,
|
|
599
|
+
"Must be a valid GUID"
|
|
600
|
+
).optional().nullable(),
|
|
601
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
602
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
603
|
+
).optional().nullable(),
|
|
604
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
605
|
+
/^[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}$/,
|
|
606
|
+
"Must be a valid GUID"
|
|
607
|
+
).optional().nullable(),
|
|
608
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
609
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
610
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
611
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
612
|
+
extendedFields: z.object({
|
|
613
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
614
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
615
|
+
).optional()
|
|
616
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
617
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
618
|
+
}).describe("The retrieved Gallery").optional()
|
|
619
|
+
});
|
|
620
|
+
var ListDeletedGalleriesRequest = z.object({
|
|
621
|
+
options: z.object({
|
|
622
|
+
cursorPaging: z.object({
|
|
623
|
+
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
624
|
+
cursor: z.string().describe(
|
|
625
|
+
"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."
|
|
626
|
+
).max(16e3).optional().nullable()
|
|
627
|
+
}).describe("WQL expression").optional(),
|
|
628
|
+
galleryIds: z.array(z.string()).max(100).optional()
|
|
629
|
+
}).optional()
|
|
630
|
+
});
|
|
631
|
+
var ListDeletedGalleriesResponse = z.object({
|
|
632
|
+
galleries: z.array(
|
|
633
|
+
z.object({
|
|
634
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
635
|
+
/^[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}$/,
|
|
636
|
+
"Must be a valid GUID"
|
|
637
|
+
).optional().nullable(),
|
|
638
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
639
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
640
|
+
).optional().nullable(),
|
|
641
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
642
|
+
/^[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}$/,
|
|
643
|
+
"Must be a valid GUID"
|
|
644
|
+
).optional().nullable(),
|
|
645
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
646
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
647
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
648
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
649
|
+
extendedFields: z.object({
|
|
650
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
651
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
652
|
+
).optional()
|
|
653
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
654
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
655
|
+
})
|
|
656
|
+
).max(100).optional(),
|
|
657
|
+
pagingMetadata: z.object({
|
|
658
|
+
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
659
|
+
cursors: z.object({
|
|
660
|
+
next: z.string().describe(
|
|
661
|
+
"Cursor string pointing to the next page in the list of results."
|
|
662
|
+
).max(16e3).optional().nullable(),
|
|
663
|
+
prev: z.string().describe(
|
|
664
|
+
"Cursor pointing to the previous page in the list of results."
|
|
665
|
+
).max(16e3).optional().nullable()
|
|
666
|
+
}).describe(
|
|
667
|
+
"Cursor strings that point to the next page, previous page, or both."
|
|
668
|
+
).optional(),
|
|
669
|
+
hasNext: z.boolean().describe(
|
|
670
|
+
"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."
|
|
671
|
+
).optional().nullable()
|
|
672
|
+
}).describe("WQL expression").optional()
|
|
673
|
+
});
|
|
674
|
+
var RestoreGalleryFromTrashBinRequest = z.object({
|
|
675
|
+
galleryId: z.string().describe("Id of the deleted Gallery to restore").regex(
|
|
676
|
+
/^[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}$/,
|
|
677
|
+
"Must be a valid GUID"
|
|
678
|
+
)
|
|
679
|
+
});
|
|
680
|
+
var RestoreGalleryFromTrashBinResponse = z.object({
|
|
681
|
+
gallery: z.object({
|
|
682
|
+
_id: z.string().describe("Gallery ID.").regex(
|
|
683
|
+
/^[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}$/,
|
|
684
|
+
"Must be a valid GUID"
|
|
685
|
+
).optional().nullable(),
|
|
686
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
687
|
+
"Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision"
|
|
688
|
+
).optional().nullable(),
|
|
689
|
+
draftGalleryId: z.string().describe("DraftGallery ID this Gallery was published from").regex(
|
|
690
|
+
/^[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}$/,
|
|
691
|
+
"Must be a valid GUID"
|
|
692
|
+
).optional().nullable(),
|
|
693
|
+
siteVersion: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("The site version the gallery was published to").optional().nullable(),
|
|
694
|
+
itemsCount: z.number().int().describe("Total number of items this Gallery contains").optional().nullable(),
|
|
695
|
+
_createdDate: z.date().describe("Represents the time this Gallery was created").optional().nullable(),
|
|
696
|
+
_updatedDate: z.date().describe("Represents the time this Gallery was last updated").optional().nullable(),
|
|
697
|
+
extendedFields: z.object({
|
|
698
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
699
|
+
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
700
|
+
).optional()
|
|
701
|
+
}).describe("Data extensions ExtendedFields").optional(),
|
|
702
|
+
variant: z.enum(["LIVE", "RC"]).describe("Variant of the gallery, whether it's a live or RC").optional()
|
|
703
|
+
}).describe("The retrieved Gallery").optional()
|
|
704
|
+
});
|
|
705
|
+
var RemoveGalleryFromTrashBinRequest = z.object({
|
|
706
|
+
galleryId: z.string().describe("Id of the Gallery to delete permanently").regex(
|
|
707
|
+
/^[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}$/,
|
|
708
|
+
"Must be a valid GUID"
|
|
709
|
+
)
|
|
710
|
+
});
|
|
711
|
+
var RemoveGalleryFromTrashBinResponse = z.object({});
|
|
712
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
713
|
+
0 && (module.exports = {
|
|
714
|
+
BulkCreateGalleriesRequest,
|
|
715
|
+
BulkCreateGalleriesResponse,
|
|
716
|
+
BulkDeleteGalleriesRequest,
|
|
717
|
+
BulkDeleteGalleriesResponse,
|
|
718
|
+
BulkUpdateGalleriesRequest,
|
|
719
|
+
BulkUpdateGalleriesResponse,
|
|
720
|
+
CreateGalleryRequest,
|
|
721
|
+
CreateGalleryResponse,
|
|
722
|
+
GetDeletedGalleryRequest,
|
|
723
|
+
GetDeletedGalleryResponse,
|
|
724
|
+
GetGalleryByDraftGalleryIdRequest,
|
|
725
|
+
GetGalleryByDraftGalleryIdResponse,
|
|
726
|
+
GetGalleryRequest,
|
|
727
|
+
GetGalleryResponse,
|
|
728
|
+
ListDeletedGalleriesRequest,
|
|
729
|
+
ListDeletedGalleriesResponse,
|
|
730
|
+
QueryGalleriesRequest,
|
|
731
|
+
QueryGalleriesResponse,
|
|
732
|
+
RemoveGalleryFromTrashBinRequest,
|
|
733
|
+
RemoveGalleryFromTrashBinResponse,
|
|
734
|
+
RestoreGalleryFromTrashBinRequest,
|
|
735
|
+
RestoreGalleryFromTrashBinResponse,
|
|
736
|
+
UpdateExtendedFieldsRequest,
|
|
737
|
+
UpdateExtendedFieldsResponse,
|
|
738
|
+
UpdateGalleryRequest,
|
|
739
|
+
UpdateGalleryResponse
|
|
740
|
+
});
|
|
741
|
+
//# sourceMappingURL=schemas.js.map
|