@wix/auto_sdk_online-programs_sections 1.0.16 → 1.0.18
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.d.ts +6 -16
- package/build/cjs/index.js +0 -149
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +9 -32
- package/build/cjs/index.typings.js +0 -140
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -8
- package/build/cjs/meta.js +0 -109
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +6 -16
- package/build/es/index.mjs +0 -148
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +9 -32
- package/build/es/index.typings.mjs +0 -139
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -8
- package/build/es/meta.mjs +0 -108
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -16
- package/build/internal/cjs/index.typings.d.ts +13 -31
- package/build/internal/cjs/meta.d.ts +9 -7
- package/build/internal/es/index.d.mts +6 -16
- package/build/internal/es/index.typings.d.mts +13 -31
- package/build/internal/es/meta.d.mts +9 -7
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -637
- package/build/cjs/schemas.js +0 -999
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -637
- package/build/es/schemas.mjs +0 -941
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -1593
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -1475
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -1135
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -637
- package/build/internal/cjs/schemas.js +0 -999
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1550
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1431
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -1090
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -637
- package/build/internal/es/schemas.mjs +0 -941
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
package/build/cjs/schemas.js
DELETED
|
@@ -1,999 +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
|
-
BulkCreateSectionRequest: () => BulkCreateSectionRequest,
|
|
34
|
-
BulkCreateSectionResponse: () => BulkCreateSectionResponse,
|
|
35
|
-
BulkCreateSectionsRequest: () => BulkCreateSectionsRequest,
|
|
36
|
-
BulkCreateSectionsResponse: () => BulkCreateSectionsResponse,
|
|
37
|
-
CloneSectionRequest: () => CloneSectionRequest,
|
|
38
|
-
CloneSectionResponse: () => CloneSectionResponse,
|
|
39
|
-
CreateSectionRequest: () => CreateSectionRequest,
|
|
40
|
-
CreateSectionResponse: () => CreateSectionResponse,
|
|
41
|
-
DeleteSectionRequest: () => DeleteSectionRequest,
|
|
42
|
-
DeleteSectionResponse: () => DeleteSectionResponse,
|
|
43
|
-
GetSectionRequest: () => GetSectionRequest,
|
|
44
|
-
GetSectionResponse: () => GetSectionResponse,
|
|
45
|
-
ListSectionsRequest: () => ListSectionsRequest,
|
|
46
|
-
ListSectionsResponse: () => ListSectionsResponse,
|
|
47
|
-
MoveSectionRequest: () => MoveSectionRequest,
|
|
48
|
-
MoveSectionResponse: () => MoveSectionResponse,
|
|
49
|
-
PublishSectionRequest: () => PublishSectionRequest,
|
|
50
|
-
PublishSectionResponse: () => PublishSectionResponse,
|
|
51
|
-
QuerySectionsRequest: () => QuerySectionsRequest,
|
|
52
|
-
QuerySectionsResponse: () => QuerySectionsResponse,
|
|
53
|
-
UpdateSectionRequest: () => UpdateSectionRequest,
|
|
54
|
-
UpdateSectionResponse: () => UpdateSectionResponse
|
|
55
|
-
});
|
|
56
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
57
|
-
|
|
58
|
-
// src/online-programs-v3-section-sections.schemas.ts
|
|
59
|
-
var z = __toESM(require("zod"));
|
|
60
|
-
var CreateSectionRequest = /* @__PURE__ */ z.object({
|
|
61
|
-
section: z.object({
|
|
62
|
-
_id: z.string().describe("Section ID.").regex(
|
|
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}$/,
|
|
64
|
-
"Must be a valid GUID"
|
|
65
|
-
).optional().nullable(),
|
|
66
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
67
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
68
|
-
).optional().nullable(),
|
|
69
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
70
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
71
|
-
programId: z.string().describe(
|
|
72
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
73
|
-
).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(),
|
|
77
|
-
description: z.intersection(
|
|
78
|
-
z.object({
|
|
79
|
-
title: z.string().max(500).optional(),
|
|
80
|
-
details: z.string().max(1e7).optional().nullable()
|
|
81
|
-
}),
|
|
82
|
-
z.xor([
|
|
83
|
-
z.object({
|
|
84
|
-
image: z.never().optional(),
|
|
85
|
-
video: z.never().optional()
|
|
86
|
-
}),
|
|
87
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
88
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
89
|
-
])
|
|
90
|
-
).describe(
|
|
91
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
92
|
-
).optional(),
|
|
93
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).optional(),
|
|
94
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
95
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
96
|
-
trialSection: z.boolean().describe(
|
|
97
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
98
|
-
).optional(),
|
|
99
|
-
ordering: z.number().describe(
|
|
100
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
101
|
-
).optional(),
|
|
102
|
-
delayInDays: z.number().int().describe(
|
|
103
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
104
|
-
).min(0).max(5e3).optional(),
|
|
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("Custom field data for the section.").optional()
|
|
110
|
-
}).describe("Section to create. Must include `section.program_id`."),
|
|
111
|
-
options: z.object({
|
|
112
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
113
|
-
}).optional()
|
|
114
|
-
});
|
|
115
|
-
var CreateSectionResponse = /* @__PURE__ */ z.object({
|
|
116
|
-
_id: z.string().describe("Section ID.").regex(
|
|
117
|
-
/^[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}$/,
|
|
118
|
-
"Must be a valid GUID"
|
|
119
|
-
).optional().nullable(),
|
|
120
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
121
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
122
|
-
).optional().nullable(),
|
|
123
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
124
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
125
|
-
programId: z.string().describe(
|
|
126
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
127
|
-
).regex(
|
|
128
|
-
/^[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}$/,
|
|
129
|
-
"Must be a valid GUID"
|
|
130
|
-
).optional(),
|
|
131
|
-
description: z.intersection(
|
|
132
|
-
z.object({
|
|
133
|
-
title: z.string().max(500).optional(),
|
|
134
|
-
details: z.string().max(1e7).optional().nullable()
|
|
135
|
-
}),
|
|
136
|
-
z.xor([
|
|
137
|
-
z.object({ image: z.never().optional(), video: z.never().optional() }),
|
|
138
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
139
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
140
|
-
])
|
|
141
|
-
).describe(
|
|
142
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
143
|
-
).optional(),
|
|
144
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
145
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
146
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
147
|
-
trialSection: z.boolean().describe(
|
|
148
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
149
|
-
).optional(),
|
|
150
|
-
ordering: z.number().describe(
|
|
151
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
152
|
-
).optional(),
|
|
153
|
-
delayInDays: z.number().int().describe(
|
|
154
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
155
|
-
).min(0).max(5e3).optional(),
|
|
156
|
-
extendedFields: z.object({
|
|
157
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
158
|
-
"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)."
|
|
159
|
-
).optional()
|
|
160
|
-
}).describe("Custom field data for the section.").optional()
|
|
161
|
-
});
|
|
162
|
-
var BulkCreateSectionsRequest = /* @__PURE__ */ z.object({
|
|
163
|
-
sections: z.array(
|
|
164
|
-
z.object({
|
|
165
|
-
_id: z.string().describe("Section ID.").regex(
|
|
166
|
-
/^[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}$/,
|
|
167
|
-
"Must be a valid GUID"
|
|
168
|
-
).optional().nullable(),
|
|
169
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
170
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
171
|
-
).optional().nullable(),
|
|
172
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
173
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
174
|
-
programId: z.string().describe(
|
|
175
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
176
|
-
).regex(
|
|
177
|
-
/^[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}$/,
|
|
178
|
-
"Must be a valid GUID"
|
|
179
|
-
).optional(),
|
|
180
|
-
description: z.intersection(
|
|
181
|
-
z.object({
|
|
182
|
-
title: z.string().max(500).optional(),
|
|
183
|
-
details: z.string().max(1e7).optional().nullable()
|
|
184
|
-
}),
|
|
185
|
-
z.xor([
|
|
186
|
-
z.object({
|
|
187
|
-
image: z.never().optional(),
|
|
188
|
-
video: z.never().optional()
|
|
189
|
-
}),
|
|
190
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
191
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
192
|
-
])
|
|
193
|
-
).describe(
|
|
194
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
195
|
-
).optional(),
|
|
196
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).optional(),
|
|
197
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
198
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
199
|
-
trialSection: z.boolean().describe(
|
|
200
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
201
|
-
).optional(),
|
|
202
|
-
ordering: z.number().describe(
|
|
203
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
204
|
-
).optional(),
|
|
205
|
-
delayInDays: z.number().int().describe(
|
|
206
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
207
|
-
).min(0).max(5e3).optional(),
|
|
208
|
-
extendedFields: z.object({
|
|
209
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
210
|
-
"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)."
|
|
211
|
-
).optional()
|
|
212
|
-
}).describe("Custom field data for the section.").optional()
|
|
213
|
-
})
|
|
214
|
-
).min(1).max(100),
|
|
215
|
-
options: z.object({
|
|
216
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
217
|
-
}).optional()
|
|
218
|
-
});
|
|
219
|
-
var BulkCreateSectionsResponse = /* @__PURE__ */ z.object({
|
|
220
|
-
results: z.array(
|
|
221
|
-
z.object({
|
|
222
|
-
itemMetadata: z.object({
|
|
223
|
-
_id: z.string().describe(
|
|
224
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
225
|
-
).optional().nullable(),
|
|
226
|
-
originalIndex: z.number().int().describe(
|
|
227
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
228
|
-
).optional(),
|
|
229
|
-
success: z.boolean().describe(
|
|
230
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
231
|
-
).optional(),
|
|
232
|
-
error: z.object({
|
|
233
|
-
code: z.string().describe("Error code.").optional(),
|
|
234
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
235
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
236
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
237
|
-
}).describe("Metadata for the bulk operation result.").optional(),
|
|
238
|
-
item: z.object({
|
|
239
|
-
_id: z.string().describe("Section ID.").regex(
|
|
240
|
-
/^[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}$/,
|
|
241
|
-
"Must be a valid GUID"
|
|
242
|
-
).optional().nullable(),
|
|
243
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
244
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
245
|
-
).optional().nullable(),
|
|
246
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
247
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
248
|
-
programId: z.string().describe(
|
|
249
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
250
|
-
).regex(
|
|
251
|
-
/^[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}$/,
|
|
252
|
-
"Must be a valid GUID"
|
|
253
|
-
).optional(),
|
|
254
|
-
description: z.intersection(
|
|
255
|
-
z.object({
|
|
256
|
-
title: z.string().max(500).optional(),
|
|
257
|
-
details: z.string().max(1e7).optional().nullable()
|
|
258
|
-
}),
|
|
259
|
-
z.xor([
|
|
260
|
-
z.object({
|
|
261
|
-
image: z.never().optional(),
|
|
262
|
-
video: z.never().optional()
|
|
263
|
-
}),
|
|
264
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
265
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
266
|
-
])
|
|
267
|
-
).describe(
|
|
268
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
269
|
-
).optional(),
|
|
270
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
271
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
272
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
273
|
-
trialSection: z.boolean().describe(
|
|
274
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
275
|
-
).optional(),
|
|
276
|
-
ordering: z.number().describe(
|
|
277
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
278
|
-
).optional(),
|
|
279
|
-
delayInDays: z.number().int().describe(
|
|
280
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
281
|
-
).min(0).max(5e3).optional(),
|
|
282
|
-
extendedFields: z.object({
|
|
283
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
284
|
-
"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)."
|
|
285
|
-
).optional()
|
|
286
|
-
}).describe("Custom field data for the section.").optional()
|
|
287
|
-
}).describe("Created section.").optional(),
|
|
288
|
-
action: z.enum(["UNKNOWN_ACTION_TYPE", "INSERT", "UPDATE", "DELETE"]).describe("Action associated with the bulk result.").optional()
|
|
289
|
-
})
|
|
290
|
-
).optional(),
|
|
291
|
-
bulkActionMetadata: z.object({
|
|
292
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
293
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
294
|
-
undetailedFailures: z.number().int().describe(
|
|
295
|
-
"Number of failures without details because detailed failure threshold was exceeded."
|
|
296
|
-
).optional()
|
|
297
|
-
}).describe("Summary of the bulk create operation.").optional()
|
|
298
|
-
});
|
|
299
|
-
var BulkCreateSectionRequest = /* @__PURE__ */ z.object({
|
|
300
|
-
sections: z.array(
|
|
301
|
-
z.object({
|
|
302
|
-
_id: z.string().describe("Section ID.").regex(
|
|
303
|
-
/^[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}$/,
|
|
304
|
-
"Must be a valid GUID"
|
|
305
|
-
).optional().nullable(),
|
|
306
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
307
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
308
|
-
).optional().nullable(),
|
|
309
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
310
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
311
|
-
programId: z.string().describe(
|
|
312
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
313
|
-
).regex(
|
|
314
|
-
/^[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}$/,
|
|
315
|
-
"Must be a valid GUID"
|
|
316
|
-
).optional(),
|
|
317
|
-
description: z.intersection(
|
|
318
|
-
z.object({
|
|
319
|
-
title: z.string().max(500).optional(),
|
|
320
|
-
details: z.string().max(1e7).optional().nullable()
|
|
321
|
-
}),
|
|
322
|
-
z.xor([
|
|
323
|
-
z.object({
|
|
324
|
-
image: z.never().optional(),
|
|
325
|
-
video: z.never().optional()
|
|
326
|
-
}),
|
|
327
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
328
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
329
|
-
])
|
|
330
|
-
).describe(
|
|
331
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
332
|
-
).optional(),
|
|
333
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).optional(),
|
|
334
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
335
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
336
|
-
trialSection: z.boolean().describe(
|
|
337
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
338
|
-
).optional(),
|
|
339
|
-
ordering: z.number().describe(
|
|
340
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
341
|
-
).optional(),
|
|
342
|
-
delayInDays: z.number().int().describe(
|
|
343
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
344
|
-
).min(0).max(5e3).optional(),
|
|
345
|
-
extendedFields: z.object({
|
|
346
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
347
|
-
"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)."
|
|
348
|
-
).optional()
|
|
349
|
-
}).describe("Custom field data for the section.").optional()
|
|
350
|
-
})
|
|
351
|
-
).min(1).max(100),
|
|
352
|
-
options: z.object({
|
|
353
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
354
|
-
}).optional()
|
|
355
|
-
});
|
|
356
|
-
var BulkCreateSectionResponse = /* @__PURE__ */ z.object({
|
|
357
|
-
results: z.array(
|
|
358
|
-
z.object({
|
|
359
|
-
itemMetadata: z.object({
|
|
360
|
-
_id: z.string().describe(
|
|
361
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
362
|
-
).optional().nullable(),
|
|
363
|
-
originalIndex: z.number().int().describe(
|
|
364
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
365
|
-
).optional(),
|
|
366
|
-
success: z.boolean().describe(
|
|
367
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
368
|
-
).optional(),
|
|
369
|
-
error: z.object({
|
|
370
|
-
code: z.string().describe("Error code.").optional(),
|
|
371
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
372
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
373
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
374
|
-
}).describe("Metadata for the bulk operation result.").optional(),
|
|
375
|
-
item: z.object({
|
|
376
|
-
_id: z.string().describe("Section ID.").regex(
|
|
377
|
-
/^[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}$/,
|
|
378
|
-
"Must be a valid GUID"
|
|
379
|
-
).optional().nullable(),
|
|
380
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
381
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
382
|
-
).optional().nullable(),
|
|
383
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
384
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
385
|
-
programId: z.string().describe(
|
|
386
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
387
|
-
).regex(
|
|
388
|
-
/^[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}$/,
|
|
389
|
-
"Must be a valid GUID"
|
|
390
|
-
).optional(),
|
|
391
|
-
description: z.intersection(
|
|
392
|
-
z.object({
|
|
393
|
-
title: z.string().max(500).optional(),
|
|
394
|
-
details: z.string().max(1e7).optional().nullable()
|
|
395
|
-
}),
|
|
396
|
-
z.xor([
|
|
397
|
-
z.object({
|
|
398
|
-
image: z.never().optional(),
|
|
399
|
-
video: z.never().optional()
|
|
400
|
-
}),
|
|
401
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
402
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
403
|
-
])
|
|
404
|
-
).describe(
|
|
405
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
406
|
-
).optional(),
|
|
407
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
408
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
409
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
410
|
-
trialSection: z.boolean().describe(
|
|
411
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
412
|
-
).optional(),
|
|
413
|
-
ordering: z.number().describe(
|
|
414
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
415
|
-
).optional(),
|
|
416
|
-
delayInDays: z.number().int().describe(
|
|
417
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
418
|
-
).min(0).max(5e3).optional(),
|
|
419
|
-
extendedFields: z.object({
|
|
420
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
421
|
-
"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)."
|
|
422
|
-
).optional()
|
|
423
|
-
}).describe("Custom field data for the section.").optional()
|
|
424
|
-
}).describe("Created section.").optional(),
|
|
425
|
-
action: z.enum(["UNKNOWN_ACTION_TYPE", "INSERT", "UPDATE", "DELETE"]).describe("Action associated with the bulk result.").optional()
|
|
426
|
-
})
|
|
427
|
-
).optional(),
|
|
428
|
-
bulkActionMetadata: z.object({
|
|
429
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
430
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
431
|
-
undetailedFailures: z.number().int().describe(
|
|
432
|
-
"Number of failures without details because detailed failure threshold was exceeded."
|
|
433
|
-
).optional()
|
|
434
|
-
}).describe("Summary of the bulk create operation.").optional()
|
|
435
|
-
});
|
|
436
|
-
var GetSectionRequest = /* @__PURE__ */ z.object({
|
|
437
|
-
sectionId: z.string().describe("ID of the Section to retrieve.").regex(
|
|
438
|
-
/^[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}$/,
|
|
439
|
-
"Must be a valid GUID"
|
|
440
|
-
),
|
|
441
|
-
options: z.object({
|
|
442
|
-
descriptionFieldSet: z.enum(["STANDARD", "EXTENDED"]).optional(),
|
|
443
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
444
|
-
}).optional()
|
|
445
|
-
});
|
|
446
|
-
var GetSectionResponse = /* @__PURE__ */ z.object({
|
|
447
|
-
_id: z.string().describe("Section ID.").regex(
|
|
448
|
-
/^[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}$/,
|
|
449
|
-
"Must be a valid GUID"
|
|
450
|
-
).optional().nullable(),
|
|
451
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
452
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
453
|
-
).optional().nullable(),
|
|
454
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
455
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
456
|
-
programId: z.string().describe(
|
|
457
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
458
|
-
).regex(
|
|
459
|
-
/^[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}$/,
|
|
460
|
-
"Must be a valid GUID"
|
|
461
|
-
).optional(),
|
|
462
|
-
description: z.intersection(
|
|
463
|
-
z.object({
|
|
464
|
-
title: z.string().max(500).optional(),
|
|
465
|
-
details: z.string().max(1e7).optional().nullable()
|
|
466
|
-
}),
|
|
467
|
-
z.xor([
|
|
468
|
-
z.object({ image: z.never().optional(), video: z.never().optional() }),
|
|
469
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
470
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
471
|
-
])
|
|
472
|
-
).describe(
|
|
473
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
474
|
-
).optional(),
|
|
475
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
476
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
477
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
478
|
-
trialSection: z.boolean().describe(
|
|
479
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
480
|
-
).optional(),
|
|
481
|
-
ordering: z.number().describe(
|
|
482
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
483
|
-
).optional(),
|
|
484
|
-
delayInDays: z.number().int().describe(
|
|
485
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
486
|
-
).min(0).max(5e3).optional(),
|
|
487
|
-
extendedFields: z.object({
|
|
488
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
489
|
-
"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)."
|
|
490
|
-
).optional()
|
|
491
|
-
}).describe("Custom field data for the section.").optional()
|
|
492
|
-
});
|
|
493
|
-
var UpdateSectionRequest = /* @__PURE__ */ z.object({
|
|
494
|
-
_id: z.string().describe("Section ID.").regex(
|
|
495
|
-
/^[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}$/,
|
|
496
|
-
"Must be a valid GUID"
|
|
497
|
-
),
|
|
498
|
-
options: z.object({
|
|
499
|
-
section: z.object({
|
|
500
|
-
_id: z.string().describe("Section ID.").regex(
|
|
501
|
-
/^[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}$/,
|
|
502
|
-
"Must be a valid GUID"
|
|
503
|
-
).optional().nullable(),
|
|
504
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
505
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
506
|
-
),
|
|
507
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
508
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
509
|
-
programId: z.string().describe(
|
|
510
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
511
|
-
).regex(
|
|
512
|
-
/^[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}$/,
|
|
513
|
-
"Must be a valid GUID"
|
|
514
|
-
).optional(),
|
|
515
|
-
description: z.intersection(
|
|
516
|
-
z.object({
|
|
517
|
-
title: z.string().max(500).optional(),
|
|
518
|
-
details: z.string().max(1e7).optional().nullable()
|
|
519
|
-
}),
|
|
520
|
-
z.xor([
|
|
521
|
-
z.object({
|
|
522
|
-
image: z.never().optional(),
|
|
523
|
-
video: z.never().optional()
|
|
524
|
-
}),
|
|
525
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
526
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
527
|
-
])
|
|
528
|
-
).describe(
|
|
529
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
530
|
-
).optional(),
|
|
531
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).optional(),
|
|
532
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
533
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
534
|
-
trialSection: z.boolean().describe(
|
|
535
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
536
|
-
).optional(),
|
|
537
|
-
ordering: z.number().describe(
|
|
538
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
539
|
-
).optional(),
|
|
540
|
-
delayInDays: z.number().int().describe(
|
|
541
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
542
|
-
).min(0).max(5e3).optional(),
|
|
543
|
-
extendedFields: z.object({
|
|
544
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
545
|
-
"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)."
|
|
546
|
-
).optional()
|
|
547
|
-
}).describe("Custom field data for the section.").optional()
|
|
548
|
-
}).describe(
|
|
549
|
-
"Section to update. Include `section.id`, `section.revision`, and the fields to update."
|
|
550
|
-
).optional(),
|
|
551
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
552
|
-
}).optional()
|
|
553
|
-
});
|
|
554
|
-
var UpdateSectionResponse = /* @__PURE__ */ z.object({
|
|
555
|
-
_id: z.string().describe("Section ID.").regex(
|
|
556
|
-
/^[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}$/,
|
|
557
|
-
"Must be a valid GUID"
|
|
558
|
-
).optional().nullable(),
|
|
559
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
560
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
561
|
-
).optional().nullable(),
|
|
562
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
563
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
564
|
-
programId: z.string().describe(
|
|
565
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
566
|
-
).regex(
|
|
567
|
-
/^[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}$/,
|
|
568
|
-
"Must be a valid GUID"
|
|
569
|
-
).optional(),
|
|
570
|
-
description: z.intersection(
|
|
571
|
-
z.object({
|
|
572
|
-
title: z.string().max(500).optional(),
|
|
573
|
-
details: z.string().max(1e7).optional().nullable()
|
|
574
|
-
}),
|
|
575
|
-
z.xor([
|
|
576
|
-
z.object({ image: z.never().optional(), video: z.never().optional() }),
|
|
577
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
578
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
579
|
-
])
|
|
580
|
-
).describe(
|
|
581
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
582
|
-
).optional(),
|
|
583
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
584
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
585
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
586
|
-
trialSection: z.boolean().describe(
|
|
587
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
588
|
-
).optional(),
|
|
589
|
-
ordering: z.number().describe(
|
|
590
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
591
|
-
).optional(),
|
|
592
|
-
delayInDays: z.number().int().describe(
|
|
593
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
594
|
-
).min(0).max(5e3).optional(),
|
|
595
|
-
extendedFields: z.object({
|
|
596
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
597
|
-
"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)."
|
|
598
|
-
).optional()
|
|
599
|
-
}).describe("Custom field data for the section.").optional()
|
|
600
|
-
});
|
|
601
|
-
var DeleteSectionRequest = /* @__PURE__ */ z.object({
|
|
602
|
-
sectionId: z.string().describe("ID of the section to delete.").regex(
|
|
603
|
-
/^[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}$/,
|
|
604
|
-
"Must be a valid GUID"
|
|
605
|
-
)
|
|
606
|
-
});
|
|
607
|
-
var DeleteSectionResponse = /* @__PURE__ */ z.object({});
|
|
608
|
-
var QuerySectionsRequest = /* @__PURE__ */ z.object({
|
|
609
|
-
query: z.intersection(
|
|
610
|
-
z.object({
|
|
611
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
612
|
-
"Filter object.\n\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)."
|
|
613
|
-
).optional().nullable(),
|
|
614
|
-
sort: z.array(
|
|
615
|
-
z.object({
|
|
616
|
-
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
617
|
-
order: z.enum(["ASC", "DESC"]).optional(),
|
|
618
|
-
origin: z.object({
|
|
619
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
620
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
621
|
-
}).describe(
|
|
622
|
-
"Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
|
|
623
|
-
).optional()
|
|
624
|
-
})
|
|
625
|
-
).max(5).optional()
|
|
626
|
-
}),
|
|
627
|
-
z.xor([
|
|
628
|
-
z.object({ cursorPaging: z.never().optional() }),
|
|
629
|
-
z.object({
|
|
630
|
-
cursorPaging: z.object({
|
|
631
|
-
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
632
|
-
cursor: z.string().describe(
|
|
633
|
-
"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."
|
|
634
|
-
).max(16e3).optional().nullable()
|
|
635
|
-
}).describe(
|
|
636
|
-
"Cursor paging options.\n\nLearn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging)."
|
|
637
|
-
)
|
|
638
|
-
})
|
|
639
|
-
])
|
|
640
|
-
).describe("WQL expression."),
|
|
641
|
-
options: z.object({
|
|
642
|
-
descriptionFieldSet: z.enum(["STANDARD", "EXTENDED"]).optional(),
|
|
643
|
-
programId: z.string().describe(
|
|
644
|
-
"Deprecated. Program ID used to scope the query. Use `query.filter` instead."
|
|
645
|
-
).optional(),
|
|
646
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
647
|
-
}).optional()
|
|
648
|
-
});
|
|
649
|
-
var QuerySectionsResponse = /* @__PURE__ */ z.object({
|
|
650
|
-
sections: z.array(
|
|
651
|
-
z.object({
|
|
652
|
-
_id: z.string().describe("Section ID.").regex(
|
|
653
|
-
/^[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}$/,
|
|
654
|
-
"Must be a valid GUID"
|
|
655
|
-
).optional().nullable(),
|
|
656
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
657
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
658
|
-
).optional().nullable(),
|
|
659
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
660
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
661
|
-
programId: z.string().describe(
|
|
662
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
663
|
-
).regex(
|
|
664
|
-
/^[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}$/,
|
|
665
|
-
"Must be a valid GUID"
|
|
666
|
-
).optional(),
|
|
667
|
-
description: z.intersection(
|
|
668
|
-
z.object({
|
|
669
|
-
title: z.string().max(500).optional(),
|
|
670
|
-
details: z.string().max(1e7).optional().nullable()
|
|
671
|
-
}),
|
|
672
|
-
z.xor([
|
|
673
|
-
z.object({
|
|
674
|
-
image: z.never().optional(),
|
|
675
|
-
video: z.never().optional()
|
|
676
|
-
}),
|
|
677
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
678
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
679
|
-
])
|
|
680
|
-
).describe(
|
|
681
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
682
|
-
).optional(),
|
|
683
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
684
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
685
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
686
|
-
trialSection: z.boolean().describe(
|
|
687
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
688
|
-
).optional(),
|
|
689
|
-
ordering: z.number().describe(
|
|
690
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
691
|
-
).optional(),
|
|
692
|
-
delayInDays: z.number().int().describe(
|
|
693
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
694
|
-
).min(0).max(5e3).optional(),
|
|
695
|
-
extendedFields: z.object({
|
|
696
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
697
|
-
"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)."
|
|
698
|
-
).optional()
|
|
699
|
-
}).describe("Custom field data for the section.").optional()
|
|
700
|
-
})
|
|
701
|
-
).optional(),
|
|
702
|
-
pagingMetadata: z.object({
|
|
703
|
-
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
704
|
-
cursors: z.object({
|
|
705
|
-
next: z.string().describe(
|
|
706
|
-
"Cursor string pointing to the next page in the list of results."
|
|
707
|
-
).max(16e3).optional().nullable(),
|
|
708
|
-
prev: z.string().describe(
|
|
709
|
-
"Cursor pointing to the previous page in the list of results."
|
|
710
|
-
).max(16e3).optional().nullable()
|
|
711
|
-
}).describe(
|
|
712
|
-
"Cursor strings that point to the next page, previous page, or both."
|
|
713
|
-
).optional(),
|
|
714
|
-
hasNext: z.boolean().describe(
|
|
715
|
-
"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."
|
|
716
|
-
).optional().nullable()
|
|
717
|
-
}).describe("Paging metadata.").optional()
|
|
718
|
-
});
|
|
719
|
-
var ListSectionsRequest = /* @__PURE__ */ z.object({
|
|
720
|
-
programId: z.string().describe("Program ID to list sections for.").regex(
|
|
721
|
-
/^[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}$/,
|
|
722
|
-
"Must be a valid GUID"
|
|
723
|
-
),
|
|
724
|
-
options: z.object({
|
|
725
|
-
descriptionFieldSet: z.enum(["STANDARD", "EXTENDED"]).optional(),
|
|
726
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
727
|
-
}).optional()
|
|
728
|
-
});
|
|
729
|
-
var ListSectionsResponse = /* @__PURE__ */ z.object({
|
|
730
|
-
sections: z.array(
|
|
731
|
-
z.object({
|
|
732
|
-
_id: z.string().describe("Section ID.").regex(
|
|
733
|
-
/^[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}$/,
|
|
734
|
-
"Must be a valid GUID"
|
|
735
|
-
).optional().nullable(),
|
|
736
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
737
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
738
|
-
).optional().nullable(),
|
|
739
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
740
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
741
|
-
programId: z.string().describe(
|
|
742
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
743
|
-
).regex(
|
|
744
|
-
/^[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}$/,
|
|
745
|
-
"Must be a valid GUID"
|
|
746
|
-
).optional(),
|
|
747
|
-
description: z.intersection(
|
|
748
|
-
z.object({
|
|
749
|
-
title: z.string().max(500).optional(),
|
|
750
|
-
details: z.string().max(1e7).optional().nullable()
|
|
751
|
-
}),
|
|
752
|
-
z.xor([
|
|
753
|
-
z.object({
|
|
754
|
-
image: z.never().optional(),
|
|
755
|
-
video: z.never().optional()
|
|
756
|
-
}),
|
|
757
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
758
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
759
|
-
])
|
|
760
|
-
).describe(
|
|
761
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
762
|
-
).optional(),
|
|
763
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
764
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
765
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
766
|
-
trialSection: z.boolean().describe(
|
|
767
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
768
|
-
).optional(),
|
|
769
|
-
ordering: z.number().describe(
|
|
770
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
771
|
-
).optional(),
|
|
772
|
-
delayInDays: z.number().int().describe(
|
|
773
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
774
|
-
).min(0).max(5e3).optional(),
|
|
775
|
-
extendedFields: z.object({
|
|
776
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
777
|
-
"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)."
|
|
778
|
-
).optional()
|
|
779
|
-
}).describe("Custom field data for the section.").optional()
|
|
780
|
-
})
|
|
781
|
-
).max(1e3).optional()
|
|
782
|
-
});
|
|
783
|
-
var CloneSectionRequest = /* @__PURE__ */ z.object({
|
|
784
|
-
sectionId: z.string().describe("ID of the section to clone.").regex(
|
|
785
|
-
/^[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}$/,
|
|
786
|
-
"Must be a valid GUID"
|
|
787
|
-
),
|
|
788
|
-
options: z.object({
|
|
789
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
790
|
-
}).optional()
|
|
791
|
-
});
|
|
792
|
-
var CloneSectionResponse = /* @__PURE__ */ z.object({
|
|
793
|
-
section: z.object({
|
|
794
|
-
_id: z.string().describe("Section ID.").regex(
|
|
795
|
-
/^[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}$/,
|
|
796
|
-
"Must be a valid GUID"
|
|
797
|
-
).optional().nullable(),
|
|
798
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
799
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
800
|
-
).optional().nullable(),
|
|
801
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
802
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
803
|
-
programId: z.string().describe(
|
|
804
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
805
|
-
).regex(
|
|
806
|
-
/^[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}$/,
|
|
807
|
-
"Must be a valid GUID"
|
|
808
|
-
).optional(),
|
|
809
|
-
description: z.intersection(
|
|
810
|
-
z.object({
|
|
811
|
-
title: z.string().max(500).optional(),
|
|
812
|
-
details: z.string().max(1e7).optional().nullable()
|
|
813
|
-
}),
|
|
814
|
-
z.xor([
|
|
815
|
-
z.object({
|
|
816
|
-
image: z.never().optional(),
|
|
817
|
-
video: z.never().optional()
|
|
818
|
-
}),
|
|
819
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
820
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
821
|
-
])
|
|
822
|
-
).describe(
|
|
823
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
824
|
-
).optional(),
|
|
825
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
826
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
827
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
828
|
-
trialSection: z.boolean().describe(
|
|
829
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
830
|
-
).optional(),
|
|
831
|
-
ordering: z.number().describe(
|
|
832
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
833
|
-
).optional(),
|
|
834
|
-
delayInDays: z.number().int().describe(
|
|
835
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
836
|
-
).min(0).max(5e3).optional(),
|
|
837
|
-
extendedFields: z.object({
|
|
838
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
839
|
-
"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)."
|
|
840
|
-
).optional()
|
|
841
|
-
}).describe("Custom field data for the section.").optional()
|
|
842
|
-
}).describe("Cloned section.").optional()
|
|
843
|
-
});
|
|
844
|
-
var MoveSectionRequest = /* @__PURE__ */ z.object({
|
|
845
|
-
options: z.object({
|
|
846
|
-
sectionId: z.string().describe("ID of the section to move.").regex(
|
|
847
|
-
/^[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}$/,
|
|
848
|
-
"Must be a valid GUID"
|
|
849
|
-
).optional(),
|
|
850
|
-
afterSectionId: z.string().describe(
|
|
851
|
-
"ID of the section that the moved section should be placed after. Leave empty to move the section to the beginning of the program."
|
|
852
|
-
).regex(
|
|
853
|
-
/^[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}$/,
|
|
854
|
-
"Must be a valid GUID"
|
|
855
|
-
).optional().nullable(),
|
|
856
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Current revision of the section.").optional(),
|
|
857
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
858
|
-
}).optional()
|
|
859
|
-
});
|
|
860
|
-
var MoveSectionResponse = /* @__PURE__ */ z.object({
|
|
861
|
-
section: z.object({
|
|
862
|
-
_id: z.string().describe("Section ID.").regex(
|
|
863
|
-
/^[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}$/,
|
|
864
|
-
"Must be a valid GUID"
|
|
865
|
-
).optional().nullable(),
|
|
866
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
867
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
868
|
-
).optional().nullable(),
|
|
869
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
870
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
871
|
-
programId: z.string().describe(
|
|
872
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
873
|
-
).regex(
|
|
874
|
-
/^[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}$/,
|
|
875
|
-
"Must be a valid GUID"
|
|
876
|
-
).optional(),
|
|
877
|
-
description: z.intersection(
|
|
878
|
-
z.object({
|
|
879
|
-
title: z.string().max(500).optional(),
|
|
880
|
-
details: z.string().max(1e7).optional().nullable()
|
|
881
|
-
}),
|
|
882
|
-
z.xor([
|
|
883
|
-
z.object({
|
|
884
|
-
image: z.never().optional(),
|
|
885
|
-
video: z.never().optional()
|
|
886
|
-
}),
|
|
887
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
888
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
889
|
-
])
|
|
890
|
-
).describe(
|
|
891
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
892
|
-
).optional(),
|
|
893
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
894
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
895
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
896
|
-
trialSection: z.boolean().describe(
|
|
897
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
898
|
-
).optional(),
|
|
899
|
-
ordering: z.number().describe(
|
|
900
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
901
|
-
).optional(),
|
|
902
|
-
delayInDays: z.number().int().describe(
|
|
903
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
904
|
-
).min(0).max(5e3).optional(),
|
|
905
|
-
extendedFields: z.object({
|
|
906
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
907
|
-
"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)."
|
|
908
|
-
).optional()
|
|
909
|
-
}).describe("Custom field data for the section.").optional()
|
|
910
|
-
}).describe("Moved section.").optional()
|
|
911
|
-
});
|
|
912
|
-
var PublishSectionRequest = /* @__PURE__ */ z.object({
|
|
913
|
-
options: z.object({
|
|
914
|
-
sectionId: z.string().describe("ID of the section to publish.").regex(
|
|
915
|
-
/^[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}$/,
|
|
916
|
-
"Must be a valid GUID"
|
|
917
|
-
).optional(),
|
|
918
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Current revision of the section.").optional(),
|
|
919
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
920
|
-
}).optional()
|
|
921
|
-
});
|
|
922
|
-
var PublishSectionResponse = /* @__PURE__ */ z.object({
|
|
923
|
-
section: z.object({
|
|
924
|
-
_id: z.string().describe("Section ID.").regex(
|
|
925
|
-
/^[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}$/,
|
|
926
|
-
"Must be a valid GUID"
|
|
927
|
-
).optional().nullable(),
|
|
928
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
929
|
-
"Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section."
|
|
930
|
-
).optional().nullable(),
|
|
931
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
932
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
933
|
-
programId: z.string().describe(
|
|
934
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
935
|
-
).regex(
|
|
936
|
-
/^[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}$/,
|
|
937
|
-
"Must be a valid GUID"
|
|
938
|
-
).optional(),
|
|
939
|
-
description: z.intersection(
|
|
940
|
-
z.object({
|
|
941
|
-
title: z.string().max(500).optional(),
|
|
942
|
-
details: z.string().max(1e7).optional().nullable()
|
|
943
|
-
}),
|
|
944
|
-
z.xor([
|
|
945
|
-
z.object({
|
|
946
|
-
image: z.never().optional(),
|
|
947
|
-
video: z.never().optional()
|
|
948
|
-
}),
|
|
949
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
950
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
951
|
-
])
|
|
952
|
-
).describe(
|
|
953
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
954
|
-
).optional(),
|
|
955
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
956
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
957
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
958
|
-
trialSection: z.boolean().describe(
|
|
959
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
960
|
-
).optional(),
|
|
961
|
-
ordering: z.number().describe(
|
|
962
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
963
|
-
).optional(),
|
|
964
|
-
delayInDays: z.number().int().describe(
|
|
965
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
966
|
-
).min(0).max(5e3).optional(),
|
|
967
|
-
extendedFields: z.object({
|
|
968
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
969
|
-
"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)."
|
|
970
|
-
).optional()
|
|
971
|
-
}).describe("Custom field data for the section.").optional()
|
|
972
|
-
}).describe("Published section.").optional()
|
|
973
|
-
});
|
|
974
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
975
|
-
0 && (module.exports = {
|
|
976
|
-
BulkCreateSectionRequest,
|
|
977
|
-
BulkCreateSectionResponse,
|
|
978
|
-
BulkCreateSectionsRequest,
|
|
979
|
-
BulkCreateSectionsResponse,
|
|
980
|
-
CloneSectionRequest,
|
|
981
|
-
CloneSectionResponse,
|
|
982
|
-
CreateSectionRequest,
|
|
983
|
-
CreateSectionResponse,
|
|
984
|
-
DeleteSectionRequest,
|
|
985
|
-
DeleteSectionResponse,
|
|
986
|
-
GetSectionRequest,
|
|
987
|
-
GetSectionResponse,
|
|
988
|
-
ListSectionsRequest,
|
|
989
|
-
ListSectionsResponse,
|
|
990
|
-
MoveSectionRequest,
|
|
991
|
-
MoveSectionResponse,
|
|
992
|
-
PublishSectionRequest,
|
|
993
|
-
PublishSectionResponse,
|
|
994
|
-
QuerySectionsRequest,
|
|
995
|
-
QuerySectionsResponse,
|
|
996
|
-
UpdateSectionRequest,
|
|
997
|
-
UpdateSectionResponse
|
|
998
|
-
});
|
|
999
|
-
//# sourceMappingURL=schemas.js.map
|