@wix/auto_sdk_online-programs_sections 1.0.16 → 1.0.17
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 +7 -30
- package/build/cjs/index.typings.js +0 -140
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -7
- package/build/cjs/meta.js +0 -109
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -129
- package/build/cjs/schemas.js +3 -192
- package/build/cjs/schemas.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 +7 -30
- package/build/es/index.typings.mjs +0 -139
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -7
- package/build/es/meta.mjs +0 -108
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -129
- package/build/es/schemas.mjs +3 -190
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -16
- package/build/internal/cjs/index.js +0 -149
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +11 -29
- package/build/internal/cjs/index.typings.js +0 -140
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +8 -6
- package/build/internal/cjs/meta.js +0 -109
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -129
- package/build/internal/cjs/schemas.js +3 -192
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +6 -16
- package/build/internal/es/index.mjs +0 -148
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +11 -29
- package/build/internal/es/index.typings.mjs +0 -139
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +8 -6
- package/build/internal/es/meta.mjs +0 -108
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -129
- package/build/internal/es/schemas.mjs +3 -190
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/schemas.d.mts
CHANGED
|
@@ -122,134 +122,6 @@ declare const BulkCreateSectionsResponse: z.ZodObject<{
|
|
|
122
122
|
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
123
123
|
}, z.core.$strip>>;
|
|
124
124
|
}, z.core.$strip>>;
|
|
125
|
-
item: z.ZodOptional<z.ZodObject<{
|
|
126
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
127
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
128
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
129
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
130
|
-
programId: z.ZodOptional<z.ZodString>;
|
|
131
|
-
description: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
132
|
-
title: z.ZodOptional<z.ZodString>;
|
|
133
|
-
details: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
134
|
-
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
135
|
-
image: z.ZodOptional<z.ZodNever>;
|
|
136
|
-
video: z.ZodOptional<z.ZodNever>;
|
|
137
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
138
|
-
video: z.ZodOptional<z.ZodNever>;
|
|
139
|
-
image: z.ZodString;
|
|
140
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
-
image: z.ZodOptional<z.ZodNever>;
|
|
142
|
-
video: z.ZodString;
|
|
143
|
-
}, z.core.$strip>]>>>;
|
|
144
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
145
|
-
DRAFT: "DRAFT";
|
|
146
|
-
PUBLISHED: "PUBLISHED";
|
|
147
|
-
}>>;
|
|
148
|
-
oldTotalSteps: z.ZodOptional<z.ZodNumber>;
|
|
149
|
-
totalSteps: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
150
|
-
trialSection: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
-
ordering: z.ZodOptional<z.ZodNumber>;
|
|
152
|
-
delayInDays: z.ZodOptional<z.ZodNumber>;
|
|
153
|
-
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
154
|
-
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
155
|
-
}, z.core.$strip>>;
|
|
156
|
-
}, z.core.$strip>>;
|
|
157
|
-
action: z.ZodOptional<z.ZodEnum<{
|
|
158
|
-
DELETE: "DELETE";
|
|
159
|
-
UNKNOWN_ACTION_TYPE: "UNKNOWN_ACTION_TYPE";
|
|
160
|
-
INSERT: "INSERT";
|
|
161
|
-
UPDATE: "UPDATE";
|
|
162
|
-
}>>;
|
|
163
|
-
}, z.core.$strip>>>;
|
|
164
|
-
bulkActionMetadata: z.ZodOptional<z.ZodObject<{
|
|
165
|
-
totalSuccesses: z.ZodOptional<z.ZodNumber>;
|
|
166
|
-
totalFailures: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
undetailedFailures: z.ZodOptional<z.ZodNumber>;
|
|
168
|
-
}, z.core.$strip>>;
|
|
169
|
-
}, z.core.$strip>;
|
|
170
|
-
declare const BulkCreateSectionRequest: z.ZodObject<{
|
|
171
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
172
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
173
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
174
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
175
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
176
|
-
programId: z.ZodOptional<z.ZodString>;
|
|
177
|
-
description: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
178
|
-
title: z.ZodOptional<z.ZodString>;
|
|
179
|
-
details: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
180
|
-
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
181
|
-
image: z.ZodOptional<z.ZodNever>;
|
|
182
|
-
video: z.ZodOptional<z.ZodNever>;
|
|
183
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
184
|
-
video: z.ZodOptional<z.ZodNever>;
|
|
185
|
-
image: z.ZodString;
|
|
186
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
-
image: z.ZodOptional<z.ZodNever>;
|
|
188
|
-
video: z.ZodString;
|
|
189
|
-
}, z.core.$strip>]>>>;
|
|
190
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
191
|
-
DRAFT: "DRAFT";
|
|
192
|
-
PUBLISHED: "PUBLISHED";
|
|
193
|
-
}>>;
|
|
194
|
-
oldTotalSteps: z.ZodOptional<z.ZodNumber>;
|
|
195
|
-
totalSteps: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
196
|
-
trialSection: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
-
ordering: z.ZodOptional<z.ZodNumber>;
|
|
198
|
-
delayInDays: z.ZodOptional<z.ZodNumber>;
|
|
199
|
-
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
200
|
-
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
201
|
-
}, z.core.$strip>>;
|
|
202
|
-
}, z.core.$strip>>;
|
|
203
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
204
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
205
|
-
TOTAL_STEPS: "TOTAL_STEPS";
|
|
206
|
-
}>>>;
|
|
207
|
-
}, z.core.$strip>>;
|
|
208
|
-
}, z.core.$strip>;
|
|
209
|
-
declare const BulkCreateSectionResponse: z.ZodObject<{
|
|
210
|
-
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
211
|
-
itemMetadata: z.ZodOptional<z.ZodObject<{
|
|
212
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
213
|
-
originalIndex: z.ZodOptional<z.ZodNumber>;
|
|
214
|
-
success: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
216
|
-
code: z.ZodOptional<z.ZodString>;
|
|
217
|
-
description: z.ZodOptional<z.ZodString>;
|
|
218
|
-
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
219
|
-
}, z.core.$strip>>;
|
|
220
|
-
}, z.core.$strip>>;
|
|
221
|
-
item: z.ZodOptional<z.ZodObject<{
|
|
222
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
223
|
-
revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
224
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
225
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
226
|
-
programId: z.ZodOptional<z.ZodString>;
|
|
227
|
-
description: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
228
|
-
title: z.ZodOptional<z.ZodString>;
|
|
229
|
-
details: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
230
|
-
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
231
|
-
image: z.ZodOptional<z.ZodNever>;
|
|
232
|
-
video: z.ZodOptional<z.ZodNever>;
|
|
233
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
-
video: z.ZodOptional<z.ZodNever>;
|
|
235
|
-
image: z.ZodString;
|
|
236
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
-
image: z.ZodOptional<z.ZodNever>;
|
|
238
|
-
video: z.ZodString;
|
|
239
|
-
}, z.core.$strip>]>>>;
|
|
240
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
241
|
-
DRAFT: "DRAFT";
|
|
242
|
-
PUBLISHED: "PUBLISHED";
|
|
243
|
-
}>>;
|
|
244
|
-
oldTotalSteps: z.ZodOptional<z.ZodNumber>;
|
|
245
|
-
totalSteps: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
246
|
-
trialSection: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
-
ordering: z.ZodOptional<z.ZodNumber>;
|
|
248
|
-
delayInDays: z.ZodOptional<z.ZodNumber>;
|
|
249
|
-
extendedFields: z.ZodOptional<z.ZodObject<{
|
|
250
|
-
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
251
|
-
}, z.core.$strip>>;
|
|
252
|
-
}, z.core.$strip>>;
|
|
253
125
|
action: z.ZodOptional<z.ZodEnum<{
|
|
254
126
|
DELETE: "DELETE";
|
|
255
127
|
UNKNOWN_ACTION_TYPE: "UNKNOWN_ACTION_TYPE";
|
|
@@ -634,4 +506,4 @@ declare const PublishSectionResponse: z.ZodObject<{
|
|
|
634
506
|
}, z.core.$strip>>;
|
|
635
507
|
}, z.core.$strip>;
|
|
636
508
|
|
|
637
|
-
export {
|
|
509
|
+
export { BulkCreateSectionsRequest, BulkCreateSectionsResponse, CloneSectionRequest, CloneSectionResponse, CreateSectionRequest, CreateSectionResponse, DeleteSectionRequest, DeleteSectionResponse, GetSectionRequest, GetSectionResponse, ListSectionsRequest, ListSectionsResponse, MoveSectionRequest, MoveSectionResponse, PublishSectionRequest, PublishSectionResponse, QuerySectionsRequest, QuerySectionsResponse, UpdateSectionRequest, UpdateSectionResponse };
|
package/build/es/schemas.mjs
CHANGED
|
@@ -178,193 +178,6 @@ var BulkCreateSectionsResponse = /* @__PURE__ */ z.object({
|
|
|
178
178
|
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
179
179
|
}).describe("Details about the error in case of failure.").optional()
|
|
180
180
|
}).describe("Metadata for the bulk operation result.").optional(),
|
|
181
|
-
item: z.object({
|
|
182
|
-
_id: z.string().describe("Section ID.").regex(
|
|
183
|
-
/^[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}$/,
|
|
184
|
-
"Must be a valid GUID"
|
|
185
|
-
).optional().nullable(),
|
|
186
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
187
|
-
"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."
|
|
188
|
-
).optional().nullable(),
|
|
189
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
190
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
191
|
-
programId: z.string().describe(
|
|
192
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
193
|
-
).regex(
|
|
194
|
-
/^[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}$/,
|
|
195
|
-
"Must be a valid GUID"
|
|
196
|
-
).optional(),
|
|
197
|
-
description: z.intersection(
|
|
198
|
-
z.object({
|
|
199
|
-
title: z.string().max(500).optional(),
|
|
200
|
-
details: z.string().max(1e7).optional().nullable()
|
|
201
|
-
}),
|
|
202
|
-
z.xor([
|
|
203
|
-
z.object({
|
|
204
|
-
image: z.never().optional(),
|
|
205
|
-
video: z.never().optional()
|
|
206
|
-
}),
|
|
207
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
208
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
209
|
-
])
|
|
210
|
-
).describe(
|
|
211
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
212
|
-
).optional(),
|
|
213
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
214
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
215
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
216
|
-
trialSection: z.boolean().describe(
|
|
217
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
218
|
-
).optional(),
|
|
219
|
-
ordering: z.number().describe(
|
|
220
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
221
|
-
).optional(),
|
|
222
|
-
delayInDays: z.number().int().describe(
|
|
223
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
224
|
-
).min(0).max(5e3).optional(),
|
|
225
|
-
extendedFields: z.object({
|
|
226
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
227
|
-
"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)."
|
|
228
|
-
).optional()
|
|
229
|
-
}).describe("Custom field data for the section.").optional()
|
|
230
|
-
}).describe("Created section.").optional(),
|
|
231
|
-
action: z.enum(["UNKNOWN_ACTION_TYPE", "INSERT", "UPDATE", "DELETE"]).describe("Action associated with the bulk result.").optional()
|
|
232
|
-
})
|
|
233
|
-
).optional(),
|
|
234
|
-
bulkActionMetadata: z.object({
|
|
235
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
236
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
237
|
-
undetailedFailures: z.number().int().describe(
|
|
238
|
-
"Number of failures without details because detailed failure threshold was exceeded."
|
|
239
|
-
).optional()
|
|
240
|
-
}).describe("Summary of the bulk create operation.").optional()
|
|
241
|
-
});
|
|
242
|
-
var BulkCreateSectionRequest = /* @__PURE__ */ z.object({
|
|
243
|
-
sections: z.array(
|
|
244
|
-
z.object({
|
|
245
|
-
_id: z.string().describe("Section ID.").regex(
|
|
246
|
-
/^[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}$/,
|
|
247
|
-
"Must be a valid GUID"
|
|
248
|
-
).optional().nullable(),
|
|
249
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
250
|
-
"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."
|
|
251
|
-
).optional().nullable(),
|
|
252
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
253
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
254
|
-
programId: z.string().describe(
|
|
255
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
256
|
-
).regex(
|
|
257
|
-
/^[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}$/,
|
|
258
|
-
"Must be a valid GUID"
|
|
259
|
-
).optional(),
|
|
260
|
-
description: z.intersection(
|
|
261
|
-
z.object({
|
|
262
|
-
title: z.string().max(500).optional(),
|
|
263
|
-
details: z.string().max(1e7).optional().nullable()
|
|
264
|
-
}),
|
|
265
|
-
z.xor([
|
|
266
|
-
z.object({
|
|
267
|
-
image: z.never().optional(),
|
|
268
|
-
video: z.never().optional()
|
|
269
|
-
}),
|
|
270
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
271
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
272
|
-
])
|
|
273
|
-
).describe(
|
|
274
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
275
|
-
).optional(),
|
|
276
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).optional(),
|
|
277
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
278
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
279
|
-
trialSection: z.boolean().describe(
|
|
280
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
281
|
-
).optional(),
|
|
282
|
-
ordering: z.number().describe(
|
|
283
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
284
|
-
).optional(),
|
|
285
|
-
delayInDays: z.number().int().describe(
|
|
286
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
287
|
-
).min(0).max(5e3).optional(),
|
|
288
|
-
extendedFields: z.object({
|
|
289
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
290
|
-
"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)."
|
|
291
|
-
).optional()
|
|
292
|
-
}).describe("Custom field data for the section.").optional()
|
|
293
|
-
})
|
|
294
|
-
).min(1).max(100),
|
|
295
|
-
options: z.object({
|
|
296
|
-
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
297
|
-
}).optional()
|
|
298
|
-
});
|
|
299
|
-
var BulkCreateSectionResponse = /* @__PURE__ */ z.object({
|
|
300
|
-
results: z.array(
|
|
301
|
-
z.object({
|
|
302
|
-
itemMetadata: z.object({
|
|
303
|
-
_id: z.string().describe(
|
|
304
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
305
|
-
).optional().nullable(),
|
|
306
|
-
originalIndex: z.number().int().describe(
|
|
307
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
308
|
-
).optional(),
|
|
309
|
-
success: z.boolean().describe(
|
|
310
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
311
|
-
).optional(),
|
|
312
|
-
error: z.object({
|
|
313
|
-
code: z.string().describe("Error code.").optional(),
|
|
314
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
315
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
316
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
317
|
-
}).describe("Metadata for the bulk operation result.").optional(),
|
|
318
|
-
item: z.object({
|
|
319
|
-
_id: z.string().describe("Section ID.").regex(
|
|
320
|
-
/^[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}$/,
|
|
321
|
-
"Must be a valid GUID"
|
|
322
|
-
).optional().nullable(),
|
|
323
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
324
|
-
"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."
|
|
325
|
-
).optional().nullable(),
|
|
326
|
-
_createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
|
|
327
|
-
_updatedDate: z.date().describe("Date and time the section was last updated.").optional().nullable(),
|
|
328
|
-
programId: z.string().describe(
|
|
329
|
-
"Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed."
|
|
330
|
-
).regex(
|
|
331
|
-
/^[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}$/,
|
|
332
|
-
"Must be a valid GUID"
|
|
333
|
-
).optional(),
|
|
334
|
-
description: z.intersection(
|
|
335
|
-
z.object({
|
|
336
|
-
title: z.string().max(500).optional(),
|
|
337
|
-
details: z.string().max(1e7).optional().nullable()
|
|
338
|
-
}),
|
|
339
|
-
z.xor([
|
|
340
|
-
z.object({
|
|
341
|
-
image: z.never().optional(),
|
|
342
|
-
video: z.never().optional()
|
|
343
|
-
}),
|
|
344
|
-
z.object({ video: z.never().optional(), image: z.string() }),
|
|
345
|
-
z.object({ image: z.never().optional(), video: z.string() })
|
|
346
|
-
])
|
|
347
|
-
).describe(
|
|
348
|
-
"Section title and deprecated backward-compatibility content fields."
|
|
349
|
-
).optional(),
|
|
350
|
-
state: z.enum(["DRAFT", "PUBLISHED"]).describe("Publication state of the section.").optional(),
|
|
351
|
-
oldTotalSteps: z.number().int().describe("Legacy total number of steps in the section.").optional(),
|
|
352
|
-
totalSteps: z.number().int().describe("Total number of steps in the section.").optional().nullable(),
|
|
353
|
-
trialSection: z.boolean().describe(
|
|
354
|
-
"Whether participants can access the section as trial content before purchasing the parent program."
|
|
355
|
-
).optional(),
|
|
356
|
-
ordering: z.number().describe(
|
|
357
|
-
"Position rank used to order sections within a program. To reorder sections, call Move Section."
|
|
358
|
-
).optional(),
|
|
359
|
-
delayInDays: z.number().int().describe(
|
|
360
|
-
"Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately."
|
|
361
|
-
).min(0).max(5e3).optional(),
|
|
362
|
-
extendedFields: z.object({
|
|
363
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
364
|
-
"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)."
|
|
365
|
-
).optional()
|
|
366
|
-
}).describe("Custom field data for the section.").optional()
|
|
367
|
-
}).describe("Created section.").optional(),
|
|
368
181
|
action: z.enum(["UNKNOWN_ACTION_TYPE", "INSERT", "UPDATE", "DELETE"]).describe("Action associated with the bulk result.").optional()
|
|
369
182
|
})
|
|
370
183
|
).optional(),
|
|
@@ -796,7 +609,9 @@ var MoveSectionRequest = /* @__PURE__ */ z.object({
|
|
|
796
609
|
/^[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}$/,
|
|
797
610
|
"Must be a valid GUID"
|
|
798
611
|
).optional().nullable(),
|
|
799
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
612
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
613
|
+
"Current revision of the section. When provided, it must match the current revision to protect against conflicting updates."
|
|
614
|
+
).optional(),
|
|
800
615
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
801
616
|
}).optional()
|
|
802
617
|
});
|
|
@@ -915,8 +730,6 @@ var PublishSectionResponse = /* @__PURE__ */ z.object({
|
|
|
915
730
|
}).describe("Published section.").optional()
|
|
916
731
|
});
|
|
917
732
|
export {
|
|
918
|
-
BulkCreateSectionRequest,
|
|
919
|
-
BulkCreateSectionResponse,
|
|
920
733
|
BulkCreateSectionsRequest,
|
|
921
734
|
BulkCreateSectionsResponse,
|
|
922
735
|
CloneSectionRequest,
|