@wix/auto_sdk_online-programs_sections 1.0.14 → 1.0.16
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 +18 -6
- package/build/cjs/index.js +163 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +63 -14
- package/build/cjs/index.typings.js +153 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +35 -4
- package/build/cjs/meta.js +122 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +101 -1
- package/build/cjs/schemas.js +168 -21
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +18 -6
- package/build/es/index.mjs +162 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +63 -14
- package/build/es/index.typings.mjs +152 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +35 -4
- package/build/es/meta.mjs +121 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +101 -1
- package/build/es/schemas.mjs +166 -21
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -6
- package/build/internal/cjs/index.js +163 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +165 -14
- package/build/internal/cjs/index.typings.js +153 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +237 -4
- package/build/internal/cjs/meta.js +122 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +101 -1
- package/build/internal/cjs/schemas.js +168 -21
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -6
- package/build/internal/es/index.mjs +162 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +165 -14
- package/build/internal/es/index.typings.mjs +152 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +237 -4
- package/build/internal/es/meta.mjs +121 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +101 -1
- package/build/internal/es/schemas.mjs +166 -21
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
package/build/es/schemas.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/online-programs-v3-section-sections.schemas.ts
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
var CreateSectionRequest = z.object({
|
|
3
|
+
var CreateSectionRequest = /* @__PURE__ */ z.object({
|
|
4
4
|
section: z.object({
|
|
5
5
|
_id: z.string().describe("Section ID.").regex(
|
|
6
6
|
/^[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}$/,
|
|
@@ -55,7 +55,7 @@ var CreateSectionRequest = z.object({
|
|
|
55
55
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
56
56
|
}).optional()
|
|
57
57
|
});
|
|
58
|
-
var CreateSectionResponse = z.object({
|
|
58
|
+
var CreateSectionResponse = /* @__PURE__ */ z.object({
|
|
59
59
|
_id: z.string().describe("Section ID.").regex(
|
|
60
60
|
/^[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}$/,
|
|
61
61
|
"Must be a valid GUID"
|
|
@@ -102,7 +102,7 @@ var CreateSectionResponse = z.object({
|
|
|
102
102
|
).optional()
|
|
103
103
|
}).describe("Custom field data for the section.").optional()
|
|
104
104
|
});
|
|
105
|
-
var
|
|
105
|
+
var BulkCreateSectionsRequest = /* @__PURE__ */ z.object({
|
|
106
106
|
sections: z.array(
|
|
107
107
|
z.object({
|
|
108
108
|
_id: z.string().describe("Section ID.").regex(
|
|
@@ -159,7 +159,7 @@ var BulkCreateSectionRequest = z.object({
|
|
|
159
159
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
160
160
|
}).optional()
|
|
161
161
|
});
|
|
162
|
-
var
|
|
162
|
+
var BulkCreateSectionsResponse = /* @__PURE__ */ z.object({
|
|
163
163
|
results: z.array(
|
|
164
164
|
z.object({
|
|
165
165
|
itemMetadata: z.object({
|
|
@@ -239,7 +239,144 @@ var BulkCreateSectionResponse = z.object({
|
|
|
239
239
|
).optional()
|
|
240
240
|
}).describe("Summary of the bulk create operation.").optional()
|
|
241
241
|
});
|
|
242
|
-
var
|
|
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
|
+
action: z.enum(["UNKNOWN_ACTION_TYPE", "INSERT", "UPDATE", "DELETE"]).describe("Action associated with the bulk result.").optional()
|
|
369
|
+
})
|
|
370
|
+
).optional(),
|
|
371
|
+
bulkActionMetadata: z.object({
|
|
372
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
373
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
374
|
+
undetailedFailures: z.number().int().describe(
|
|
375
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
376
|
+
).optional()
|
|
377
|
+
}).describe("Summary of the bulk create operation.").optional()
|
|
378
|
+
});
|
|
379
|
+
var GetSectionRequest = /* @__PURE__ */ z.object({
|
|
243
380
|
sectionId: z.string().describe("ID of the Section to retrieve.").regex(
|
|
244
381
|
/^[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}$/,
|
|
245
382
|
"Must be a valid GUID"
|
|
@@ -249,7 +386,7 @@ var GetSectionRequest = z.object({
|
|
|
249
386
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
250
387
|
}).optional()
|
|
251
388
|
});
|
|
252
|
-
var GetSectionResponse = z.object({
|
|
389
|
+
var GetSectionResponse = /* @__PURE__ */ z.object({
|
|
253
390
|
_id: z.string().describe("Section ID.").regex(
|
|
254
391
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
255
392
|
"Must be a valid GUID"
|
|
@@ -296,7 +433,7 @@ var GetSectionResponse = z.object({
|
|
|
296
433
|
).optional()
|
|
297
434
|
}).describe("Custom field data for the section.").optional()
|
|
298
435
|
});
|
|
299
|
-
var UpdateSectionRequest = z.object({
|
|
436
|
+
var UpdateSectionRequest = /* @__PURE__ */ z.object({
|
|
300
437
|
_id: z.string().describe("Section ID.").regex(
|
|
301
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}$/,
|
|
302
439
|
"Must be a valid GUID"
|
|
@@ -357,7 +494,7 @@ var UpdateSectionRequest = z.object({
|
|
|
357
494
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
358
495
|
}).optional()
|
|
359
496
|
});
|
|
360
|
-
var UpdateSectionResponse = z.object({
|
|
497
|
+
var UpdateSectionResponse = /* @__PURE__ */ z.object({
|
|
361
498
|
_id: z.string().describe("Section ID.").regex(
|
|
362
499
|
/^[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}$/,
|
|
363
500
|
"Must be a valid GUID"
|
|
@@ -404,14 +541,14 @@ var UpdateSectionResponse = z.object({
|
|
|
404
541
|
).optional()
|
|
405
542
|
}).describe("Custom field data for the section.").optional()
|
|
406
543
|
});
|
|
407
|
-
var DeleteSectionRequest = z.object({
|
|
544
|
+
var DeleteSectionRequest = /* @__PURE__ */ z.object({
|
|
408
545
|
sectionId: z.string().describe("ID of the section to delete.").regex(
|
|
409
546
|
/^[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}$/,
|
|
410
547
|
"Must be a valid GUID"
|
|
411
548
|
)
|
|
412
549
|
});
|
|
413
|
-
var DeleteSectionResponse = z.object({});
|
|
414
|
-
var QuerySectionsRequest = z.object({
|
|
550
|
+
var DeleteSectionResponse = /* @__PURE__ */ z.object({});
|
|
551
|
+
var QuerySectionsRequest = /* @__PURE__ */ z.object({
|
|
415
552
|
query: z.intersection(
|
|
416
553
|
z.object({
|
|
417
554
|
filter: z.record(z.string(), z.any()).describe(
|
|
@@ -420,7 +557,13 @@ var QuerySectionsRequest = z.object({
|
|
|
420
557
|
sort: z.array(
|
|
421
558
|
z.object({
|
|
422
559
|
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
423
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
560
|
+
order: z.enum(["ASC", "DESC"]).optional(),
|
|
561
|
+
origin: z.object({
|
|
562
|
+
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
563
|
+
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
564
|
+
}).describe(
|
|
565
|
+
"Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
|
|
566
|
+
).optional()
|
|
424
567
|
})
|
|
425
568
|
).max(5).optional()
|
|
426
569
|
}),
|
|
@@ -446,7 +589,7 @@ var QuerySectionsRequest = z.object({
|
|
|
446
589
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
447
590
|
}).optional()
|
|
448
591
|
});
|
|
449
|
-
var QuerySectionsResponse = z.object({
|
|
592
|
+
var QuerySectionsResponse = /* @__PURE__ */ z.object({
|
|
450
593
|
sections: z.array(
|
|
451
594
|
z.object({
|
|
452
595
|
_id: z.string().describe("Section ID.").regex(
|
|
@@ -516,7 +659,7 @@ var QuerySectionsResponse = z.object({
|
|
|
516
659
|
).optional().nullable()
|
|
517
660
|
}).describe("Paging metadata.").optional()
|
|
518
661
|
});
|
|
519
|
-
var ListSectionsRequest = z.object({
|
|
662
|
+
var ListSectionsRequest = /* @__PURE__ */ z.object({
|
|
520
663
|
programId: z.string().describe("Program ID to list sections for.").regex(
|
|
521
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}$/,
|
|
522
665
|
"Must be a valid GUID"
|
|
@@ -526,7 +669,7 @@ var ListSectionsRequest = z.object({
|
|
|
526
669
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
527
670
|
}).optional()
|
|
528
671
|
});
|
|
529
|
-
var ListSectionsResponse = z.object({
|
|
672
|
+
var ListSectionsResponse = /* @__PURE__ */ z.object({
|
|
530
673
|
sections: z.array(
|
|
531
674
|
z.object({
|
|
532
675
|
_id: z.string().describe("Section ID.").regex(
|
|
@@ -580,7 +723,7 @@ var ListSectionsResponse = z.object({
|
|
|
580
723
|
})
|
|
581
724
|
).max(1e3).optional()
|
|
582
725
|
});
|
|
583
|
-
var CloneSectionRequest = z.object({
|
|
726
|
+
var CloneSectionRequest = /* @__PURE__ */ z.object({
|
|
584
727
|
sectionId: z.string().describe("ID of the section to clone.").regex(
|
|
585
728
|
/^[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}$/,
|
|
586
729
|
"Must be a valid GUID"
|
|
@@ -589,7 +732,7 @@ var CloneSectionRequest = z.object({
|
|
|
589
732
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
590
733
|
}).optional()
|
|
591
734
|
});
|
|
592
|
-
var CloneSectionResponse = z.object({
|
|
735
|
+
var CloneSectionResponse = /* @__PURE__ */ z.object({
|
|
593
736
|
section: z.object({
|
|
594
737
|
_id: z.string().describe("Section ID.").regex(
|
|
595
738
|
/^[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}$/,
|
|
@@ -641,7 +784,7 @@ var CloneSectionResponse = z.object({
|
|
|
641
784
|
}).describe("Custom field data for the section.").optional()
|
|
642
785
|
}).describe("Cloned section.").optional()
|
|
643
786
|
});
|
|
644
|
-
var MoveSectionRequest = z.object({
|
|
787
|
+
var MoveSectionRequest = /* @__PURE__ */ z.object({
|
|
645
788
|
options: z.object({
|
|
646
789
|
sectionId: z.string().describe("ID of the section to move.").regex(
|
|
647
790
|
/^[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}$/,
|
|
@@ -657,7 +800,7 @@ var MoveSectionRequest = z.object({
|
|
|
657
800
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
658
801
|
}).optional()
|
|
659
802
|
});
|
|
660
|
-
var MoveSectionResponse = z.object({
|
|
803
|
+
var MoveSectionResponse = /* @__PURE__ */ z.object({
|
|
661
804
|
section: z.object({
|
|
662
805
|
_id: z.string().describe("Section ID.").regex(
|
|
663
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}$/,
|
|
@@ -709,7 +852,7 @@ var MoveSectionResponse = z.object({
|
|
|
709
852
|
}).describe("Custom field data for the section.").optional()
|
|
710
853
|
}).describe("Moved section.").optional()
|
|
711
854
|
});
|
|
712
|
-
var PublishSectionRequest = z.object({
|
|
855
|
+
var PublishSectionRequest = /* @__PURE__ */ z.object({
|
|
713
856
|
options: z.object({
|
|
714
857
|
sectionId: z.string().describe("ID of the section to publish.").regex(
|
|
715
858
|
/^[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}$/,
|
|
@@ -719,7 +862,7 @@ var PublishSectionRequest = z.object({
|
|
|
719
862
|
fields: z.array(z.enum(["TOTAL_STEPS"])).max(1).optional()
|
|
720
863
|
}).optional()
|
|
721
864
|
});
|
|
722
|
-
var PublishSectionResponse = z.object({
|
|
865
|
+
var PublishSectionResponse = /* @__PURE__ */ z.object({
|
|
723
866
|
section: z.object({
|
|
724
867
|
_id: z.string().describe("Section ID.").regex(
|
|
725
868
|
/^[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}$/,
|
|
@@ -774,6 +917,8 @@ var PublishSectionResponse = z.object({
|
|
|
774
917
|
export {
|
|
775
918
|
BulkCreateSectionRequest,
|
|
776
919
|
BulkCreateSectionResponse,
|
|
920
|
+
BulkCreateSectionsRequest,
|
|
921
|
+
BulkCreateSectionsResponse,
|
|
777
922
|
CloneSectionRequest,
|
|
778
923
|
CloneSectionResponse,
|
|
779
924
|
CreateSectionRequest,
|