@wix/auto_sdk_online-programs_sections 1.0.13 → 1.0.14
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 +49 -31
- package/build/cjs/index.js +8 -145
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +164 -122
- package/build/cjs/index.typings.js +8 -137
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +84 -70
- package/build/cjs/meta.js +8 -109
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -92
- package/build/cjs/schemas.js +270 -294
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +49 -31
- package/build/es/index.mjs +8 -144
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +164 -122
- package/build/es/index.typings.mjs +8 -136
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +84 -70
- package/build/es/meta.mjs +8 -108
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -92
- package/build/es/schemas.mjs +270 -292
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +49 -31
- package/build/internal/cjs/index.js +8 -145
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +164 -122
- package/build/internal/cjs/index.typings.js +8 -137
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +84 -70
- package/build/internal/cjs/meta.js +8 -109
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -92
- package/build/internal/cjs/schemas.js +270 -294
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +49 -31
- package/build/internal/es/index.mjs +8 -144
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +164 -122
- package/build/internal/es/index.typings.mjs +8 -136
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +84 -70
- package/build/internal/es/meta.mjs +8 -108
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -92
- package/build/internal/es/schemas.mjs +270 -292
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,58 +1,64 @@
|
|
|
1
|
-
import { CreateSectionRequest as CreateSectionRequest$1, CreateSectionResponse as CreateSectionResponse$1, BulkCreateSectionRequest as BulkCreateSectionRequest$1, BulkCreateSectionResponse as BulkCreateSectionResponse$1,
|
|
1
|
+
import { CreateSectionRequest as CreateSectionRequest$1, CreateSectionResponse as CreateSectionResponse$1, BulkCreateSectionRequest as BulkCreateSectionRequest$1, BulkCreateSectionResponse as BulkCreateSectionResponse$1, GetSectionRequest as GetSectionRequest$1, GetSectionResponse as GetSectionResponse$1, UpdateSectionRequest as UpdateSectionRequest$1, UpdateSectionResponse as UpdateSectionResponse$1, DeleteSectionRequest as DeleteSectionRequest$1, DeleteSectionResponse as DeleteSectionResponse$1, QuerySectionsRequest as QuerySectionsRequest$1, QuerySectionsResponse as QuerySectionsResponse$1, ListSectionsRequest as ListSectionsRequest$1, ListSectionsResponse as ListSectionsResponse$1, CloneSectionRequest as CloneSectionRequest$1, CloneSectionResponse as CloneSectionResponse$1, MoveSectionRequest as MoveSectionRequest$1, MoveSectionResponse as MoveSectionResponse$1, PublishSectionRequest as PublishSectionRequest$1, PublishSectionResponse as PublishSectionResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A section groups related steps within an online program.
|
|
6
|
+
*
|
|
7
|
+
* Sections can be drafted, published, reordered, and optionally released after a delay from the start of the parent program.
|
|
8
|
+
*/
|
|
4
9
|
interface Section {
|
|
5
10
|
/**
|
|
6
|
-
*
|
|
11
|
+
* Section ID.
|
|
7
12
|
* @format GUID
|
|
8
13
|
* @readonly
|
|
9
14
|
*/
|
|
10
15
|
id?: string | null;
|
|
11
16
|
/**
|
|
12
|
-
*
|
|
17
|
+
* 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.
|
|
13
18
|
* @readonly
|
|
14
19
|
*/
|
|
15
20
|
revision?: string | null;
|
|
16
21
|
/**
|
|
17
|
-
*
|
|
22
|
+
* Date and time the section was created.
|
|
18
23
|
* @readonly
|
|
19
24
|
*/
|
|
20
25
|
createdDate?: Date | null;
|
|
21
26
|
/**
|
|
22
|
-
*
|
|
27
|
+
* Date and time the section was last updated.
|
|
23
28
|
* @readonly
|
|
24
29
|
*/
|
|
25
30
|
updatedDate?: Date | null;
|
|
26
31
|
/**
|
|
27
|
-
* Program
|
|
32
|
+
* Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed.
|
|
28
33
|
* @format GUID
|
|
29
34
|
* @readonly
|
|
35
|
+
* @immutable
|
|
30
36
|
*/
|
|
31
37
|
programId?: string;
|
|
32
|
-
/** title
|
|
38
|
+
/** Section title and deprecated backward-compatibility content fields. */
|
|
33
39
|
description?: Description;
|
|
34
|
-
/**
|
|
40
|
+
/** Publication state of the section. */
|
|
35
41
|
state?: StateWithLiterals;
|
|
36
42
|
/**
|
|
37
|
-
* number of
|
|
43
|
+
* Legacy total number of steps in the section.
|
|
38
44
|
* @readonly
|
|
39
45
|
*/
|
|
40
46
|
oldTotalSteps?: number;
|
|
41
47
|
/**
|
|
42
|
-
* number of
|
|
48
|
+
* Total number of steps in the section.
|
|
43
49
|
* @readonly
|
|
44
50
|
*/
|
|
45
51
|
totalSteps?: number | null;
|
|
46
|
-
/**
|
|
52
|
+
/** Whether participants can access the section as trial content before purchasing the parent program. */
|
|
47
53
|
trialSection?: boolean;
|
|
48
|
-
/**
|
|
54
|
+
/** Position rank used to order sections within a program. To reorder sections, call Move Section. */
|
|
49
55
|
ordering?: number;
|
|
50
56
|
/**
|
|
51
|
-
*
|
|
57
|
+
* Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately.
|
|
52
58
|
* @max 5000
|
|
53
59
|
*/
|
|
54
60
|
delayInDays?: number;
|
|
55
|
-
/**
|
|
61
|
+
/** Custom field data for the section. */
|
|
56
62
|
extendedFields?: ExtendedFields;
|
|
57
63
|
}
|
|
58
64
|
interface Description extends DescriptionMediaOneOf {
|
|
@@ -68,7 +74,11 @@ interface Description extends DescriptionMediaOneOf {
|
|
|
68
74
|
video?: VideoV2;
|
|
69
75
|
/** @maxLength 500 */
|
|
70
76
|
title?: string;
|
|
71
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* @maxLength 10000000
|
|
79
|
+
* @deprecated
|
|
80
|
+
* @targetRemovalDate 2026-06-25
|
|
81
|
+
*/
|
|
72
82
|
details?: string | null;
|
|
73
83
|
}
|
|
74
84
|
/** @oneof */
|
|
@@ -272,40 +282,43 @@ interface UpdateExistingOperation {
|
|
|
272
282
|
/** documents to update */
|
|
273
283
|
documents?: IndexDocument[];
|
|
274
284
|
}
|
|
285
|
+
/** Payload for the Section Updated event. */
|
|
275
286
|
interface SectionUpdated {
|
|
276
|
-
/** Section before update. */
|
|
287
|
+
/** Section before the update. */
|
|
277
288
|
previous?: Section;
|
|
278
|
-
/** Section after update. */
|
|
289
|
+
/** Section after the update. */
|
|
279
290
|
current?: Section;
|
|
280
291
|
}
|
|
292
|
+
/** Payload for the Section Deleted event. */
|
|
281
293
|
interface SectionDeleted {
|
|
282
|
-
/**
|
|
294
|
+
/** Section that was deleted. */
|
|
283
295
|
section?: Section;
|
|
284
296
|
}
|
|
297
|
+
/** Payload for the Section Cloned event. */
|
|
285
298
|
interface SectionCloned {
|
|
286
|
-
/**
|
|
299
|
+
/** Source section used for cloning. */
|
|
287
300
|
prototype?: Section;
|
|
288
|
-
/**
|
|
301
|
+
/** Cloned section. */
|
|
289
302
|
cloned?: Section;
|
|
290
303
|
}
|
|
291
304
|
interface SectionMoved {
|
|
292
305
|
/**
|
|
293
|
-
*
|
|
306
|
+
* ID of the moved section.
|
|
294
307
|
* @format GUID
|
|
295
308
|
*/
|
|
296
309
|
sectionId?: string;
|
|
297
|
-
/** section
|
|
310
|
+
/** New ordering rank assigned to the moved section. */
|
|
298
311
|
newSectionPositionRank?: number;
|
|
299
312
|
}
|
|
300
313
|
interface SectionPublished {
|
|
301
314
|
/**
|
|
302
|
-
*
|
|
315
|
+
* ID of the published section.
|
|
303
316
|
* @format GUID
|
|
304
317
|
*/
|
|
305
318
|
sectionId?: string;
|
|
306
319
|
}
|
|
307
320
|
interface CreateSectionRequest {
|
|
308
|
-
/** Section to
|
|
321
|
+
/** Section to create. Must include `section.program_id`. */
|
|
309
322
|
section: Section;
|
|
310
323
|
/**
|
|
311
324
|
* Predefined sets of fields to return.
|
|
@@ -320,12 +333,12 @@ declare enum RequestedFields {
|
|
|
320
333
|
/** @enumType */
|
|
321
334
|
type RequestedFieldsWithLiterals = RequestedFields | 'TOTAL_STEPS';
|
|
322
335
|
interface CreateSectionResponse {
|
|
323
|
-
/**
|
|
336
|
+
/** Created section. */
|
|
324
337
|
section?: Section;
|
|
325
338
|
}
|
|
326
339
|
interface BulkCreateSectionRequest {
|
|
327
340
|
/**
|
|
328
|
-
* List of sections
|
|
341
|
+
* List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
329
342
|
* @minSize 1
|
|
330
343
|
* @maxSize 100
|
|
331
344
|
*/
|
|
@@ -337,17 +350,17 @@ interface BulkCreateSectionRequest {
|
|
|
337
350
|
fields?: RequestedFieldsWithLiterals[];
|
|
338
351
|
}
|
|
339
352
|
interface BulkCreateSectionResponse {
|
|
340
|
-
/** bulk
|
|
353
|
+
/** Results for the bulk create operation. */
|
|
341
354
|
results?: BulkSectionResult[];
|
|
342
|
-
/** bulk
|
|
355
|
+
/** Summary of the bulk create operation. */
|
|
343
356
|
bulkActionMetadata?: BulkActionMetadata;
|
|
344
357
|
}
|
|
345
358
|
interface BulkSectionResult {
|
|
346
|
-
/**
|
|
359
|
+
/** Metadata for the bulk operation result. */
|
|
347
360
|
itemMetadata?: ItemMetadata;
|
|
348
|
-
/**
|
|
361
|
+
/** Created section. */
|
|
349
362
|
item?: Section;
|
|
350
|
-
/**
|
|
363
|
+
/** Action associated with the bulk result. */
|
|
351
364
|
action?: BulkActionTypeWithLiterals;
|
|
352
365
|
}
|
|
353
366
|
interface ItemMetadata {
|
|
@@ -386,16 +399,16 @@ interface BulkActionMetadata {
|
|
|
386
399
|
}
|
|
387
400
|
interface BulkCreateSectionMigrationRequest {
|
|
388
401
|
/**
|
|
389
|
-
* List of sections
|
|
402
|
+
* List of sections to create.
|
|
390
403
|
* @minSize 1
|
|
391
404
|
* @maxSize 100
|
|
392
405
|
*/
|
|
393
|
-
sections
|
|
406
|
+
sections?: Section[];
|
|
394
407
|
}
|
|
395
408
|
interface BulkCreateSectionMigrationResponse {
|
|
396
|
-
/** bulk
|
|
409
|
+
/** Results for the bulk create operation. */
|
|
397
410
|
results?: BulkSectionResult[];
|
|
398
|
-
/** bulk
|
|
411
|
+
/** Summary of the bulk create operation. */
|
|
399
412
|
bulkActionMetadata?: BulkActionMetadata;
|
|
400
413
|
}
|
|
401
414
|
interface GetSectionRequest {
|
|
@@ -404,7 +417,7 @@ interface GetSectionRequest {
|
|
|
404
417
|
* @format GUID
|
|
405
418
|
*/
|
|
406
419
|
sectionId: string;
|
|
407
|
-
/**
|
|
420
|
+
/** Compatibility option for existing integrations. Current section responses return the section title. */
|
|
408
421
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
409
422
|
/**
|
|
410
423
|
* Predefined sets of fields to return.
|
|
@@ -413,17 +426,19 @@ interface GetSectionRequest {
|
|
|
413
426
|
fields?: RequestedFieldsWithLiterals[];
|
|
414
427
|
}
|
|
415
428
|
declare enum DescriptionFieldSet {
|
|
429
|
+
/** Retained for backward compatibility. Current section responses return the section title. */
|
|
416
430
|
STANDARD = "STANDARD",
|
|
431
|
+
/** Retained for backward compatibility. Current section responses return the section title. */
|
|
417
432
|
EXTENDED = "EXTENDED"
|
|
418
433
|
}
|
|
419
434
|
/** @enumType */
|
|
420
435
|
type DescriptionFieldSetWithLiterals = DescriptionFieldSet | 'STANDARD' | 'EXTENDED';
|
|
421
436
|
interface GetSectionResponse {
|
|
422
|
-
/**
|
|
437
|
+
/** Retrieved section. */
|
|
423
438
|
section?: Section;
|
|
424
439
|
}
|
|
425
440
|
interface UpdateSectionRequest {
|
|
426
|
-
/** Section to
|
|
441
|
+
/** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
|
|
427
442
|
section?: Section;
|
|
428
443
|
/**
|
|
429
444
|
* Predefined sets of fields to return.
|
|
@@ -432,12 +447,12 @@ interface UpdateSectionRequest {
|
|
|
432
447
|
fields?: RequestedFieldsWithLiterals[];
|
|
433
448
|
}
|
|
434
449
|
interface UpdateSectionResponse {
|
|
435
|
-
/** Updated
|
|
450
|
+
/** Updated section. */
|
|
436
451
|
section?: Section;
|
|
437
452
|
}
|
|
438
453
|
interface DeleteSectionRequest {
|
|
439
454
|
/**
|
|
440
|
-
*
|
|
455
|
+
* ID of the section to delete.
|
|
441
456
|
* @format GUID
|
|
442
457
|
*/
|
|
443
458
|
sectionId: string;
|
|
@@ -446,26 +461,26 @@ interface DeleteSectionResponse {
|
|
|
446
461
|
}
|
|
447
462
|
interface DeleteAllProgramSectionsRequest {
|
|
448
463
|
/**
|
|
449
|
-
* Program
|
|
464
|
+
* Program ID to delete sections from.
|
|
450
465
|
* @format GUID
|
|
451
466
|
*/
|
|
452
467
|
programId?: string;
|
|
453
468
|
}
|
|
454
469
|
interface DeleteAllProgramSectionsResponse {
|
|
455
|
-
/** Total
|
|
470
|
+
/** Total number of sections in the program. */
|
|
456
471
|
sectionsTotal?: number;
|
|
457
|
-
/**
|
|
472
|
+
/** Number of sections that were deleted successfully. */
|
|
458
473
|
successfulCount?: number;
|
|
459
|
-
/**
|
|
474
|
+
/** Number of sections that couldn't be deleted. */
|
|
460
475
|
failedCount?: number;
|
|
461
476
|
}
|
|
462
477
|
interface QuerySectionsRequest {
|
|
463
478
|
/** WQL expression. */
|
|
464
479
|
query?: CursorQuery;
|
|
465
|
-
/**
|
|
480
|
+
/** Compatibility option for existing integrations. Current section responses return the section title. */
|
|
466
481
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
467
482
|
/**
|
|
468
|
-
* Program
|
|
483
|
+
* Deprecated. Program ID used to scope the query. Use `query.filter` instead.
|
|
469
484
|
* @deprecated
|
|
470
485
|
* @replacedBy wix.common.CursorQuery
|
|
471
486
|
* @targetRemovalDate 2026-06-30
|
|
@@ -538,9 +553,9 @@ interface CursorPaging {
|
|
|
538
553
|
cursor?: string | null;
|
|
539
554
|
}
|
|
540
555
|
interface QuerySectionsResponse {
|
|
541
|
-
/**
|
|
556
|
+
/** Matching sections. */
|
|
542
557
|
sections?: Section[];
|
|
543
|
-
/** Paging metadata */
|
|
558
|
+
/** Paging metadata. */
|
|
544
559
|
pagingMetadata?: CursorPagingMetadata;
|
|
545
560
|
}
|
|
546
561
|
interface CursorPagingMetadata {
|
|
@@ -570,11 +585,11 @@ interface Cursors {
|
|
|
570
585
|
}
|
|
571
586
|
interface ListSectionsRequest {
|
|
572
587
|
/**
|
|
573
|
-
* Program
|
|
588
|
+
* Program ID to list sections for.
|
|
574
589
|
* @format GUID
|
|
575
590
|
*/
|
|
576
591
|
programId: string;
|
|
577
|
-
/**
|
|
592
|
+
/** Compatibility option for existing integrations. Current section responses return the section title. */
|
|
578
593
|
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
579
594
|
/**
|
|
580
595
|
* Predefined sets of fields to return.
|
|
@@ -584,14 +599,14 @@ interface ListSectionsRequest {
|
|
|
584
599
|
}
|
|
585
600
|
interface ListSectionsResponse {
|
|
586
601
|
/**
|
|
587
|
-
*
|
|
602
|
+
* Sections in the requested program.
|
|
588
603
|
* @maxSize 1000
|
|
589
604
|
*/
|
|
590
605
|
sections?: Section[];
|
|
591
606
|
}
|
|
592
607
|
interface CloneSectionRequest {
|
|
593
608
|
/**
|
|
594
|
-
*
|
|
609
|
+
* ID of the section to clone.
|
|
595
610
|
* @format GUID
|
|
596
611
|
*/
|
|
597
612
|
sectionId: string;
|
|
@@ -602,21 +617,21 @@ interface CloneSectionRequest {
|
|
|
602
617
|
fields?: RequestedFieldsWithLiterals[];
|
|
603
618
|
}
|
|
604
619
|
interface CloneSectionResponse {
|
|
605
|
-
/**
|
|
620
|
+
/** Cloned section. */
|
|
606
621
|
section?: Section;
|
|
607
622
|
}
|
|
608
623
|
interface MoveSectionRequest {
|
|
609
624
|
/**
|
|
610
|
-
*
|
|
625
|
+
* ID of the section to move.
|
|
611
626
|
* @format GUID
|
|
612
627
|
*/
|
|
613
628
|
sectionId?: string;
|
|
614
629
|
/**
|
|
615
|
-
*
|
|
630
|
+
* ID of the section that the moved section should be placed after. Leave empty to move the section to the beginning of the program.
|
|
616
631
|
* @format GUID
|
|
617
632
|
*/
|
|
618
633
|
afterSectionId?: string | null;
|
|
619
|
-
/**
|
|
634
|
+
/** Current revision of the section. */
|
|
620
635
|
revision?: string;
|
|
621
636
|
/**
|
|
622
637
|
* Predefined sets of fields to return.
|
|
@@ -625,16 +640,16 @@ interface MoveSectionRequest {
|
|
|
625
640
|
fields?: RequestedFieldsWithLiterals[];
|
|
626
641
|
}
|
|
627
642
|
interface MoveSectionResponse {
|
|
628
|
-
/**
|
|
643
|
+
/** Moved section. */
|
|
629
644
|
section?: Section;
|
|
630
645
|
}
|
|
631
646
|
interface PublishSectionRequest {
|
|
632
647
|
/**
|
|
633
|
-
*
|
|
648
|
+
* ID of the section to publish.
|
|
634
649
|
* @format GUID
|
|
635
650
|
*/
|
|
636
651
|
sectionId?: string;
|
|
637
|
-
/**
|
|
652
|
+
/** Current revision of the section. */
|
|
638
653
|
revision?: string;
|
|
639
654
|
/**
|
|
640
655
|
* Predefined sets of fields to return.
|
|
@@ -643,38 +658,38 @@ interface PublishSectionRequest {
|
|
|
643
658
|
fields?: RequestedFieldsWithLiterals[];
|
|
644
659
|
}
|
|
645
660
|
interface PublishSectionResponse {
|
|
646
|
-
/** Published section */
|
|
661
|
+
/** Published section. */
|
|
647
662
|
section?: Section;
|
|
648
663
|
}
|
|
649
664
|
interface BulkCloneSectionRequest {
|
|
650
665
|
/**
|
|
651
|
-
*
|
|
666
|
+
* ID of the program that was cloned.
|
|
652
667
|
* @format GUID
|
|
653
668
|
*/
|
|
654
669
|
prototypeProgramId?: string;
|
|
655
670
|
/**
|
|
656
|
-
*
|
|
671
|
+
* ID of the program created by the clone operation.
|
|
657
672
|
* @format GUID
|
|
658
673
|
*/
|
|
659
674
|
clonedProgramId?: string;
|
|
660
675
|
}
|
|
661
676
|
interface BulkCloneSectionResponse {
|
|
662
677
|
/**
|
|
663
|
-
*
|
|
678
|
+
* ID of the program that was cloned.
|
|
664
679
|
* @format GUID
|
|
665
680
|
*/
|
|
666
681
|
prototypeProgramId?: string;
|
|
667
682
|
/**
|
|
668
|
-
*
|
|
683
|
+
* ID of the program created by the clone operation.
|
|
669
684
|
* @format GUID
|
|
670
685
|
*/
|
|
671
686
|
clonedProgramId?: string;
|
|
672
|
-
/**
|
|
687
|
+
/** Mapping from original section IDs to cloned section IDs. */
|
|
673
688
|
prototypeIdToClonedId?: Record<string, string>;
|
|
674
689
|
}
|
|
675
690
|
interface RestoreSectionFromTrashRequest {
|
|
676
691
|
/**
|
|
677
|
-
* section
|
|
692
|
+
* ID of the section to restore.
|
|
678
693
|
* @format GUID
|
|
679
694
|
*/
|
|
680
695
|
sectionId?: string;
|
|
@@ -685,7 +700,7 @@ interface RestoreSectionFromTrashRequest {
|
|
|
685
700
|
fields?: RequestedFieldsWithLiterals[];
|
|
686
701
|
}
|
|
687
702
|
interface RestoreSectionFromTrashResponse {
|
|
688
|
-
/**
|
|
703
|
+
/** Restored section. */
|
|
689
704
|
section?: Section;
|
|
690
705
|
}
|
|
691
706
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -717,7 +732,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
717
732
|
/** If present, indicates the action that triggered the event. */
|
|
718
733
|
originatedFrom?: string | null;
|
|
719
734
|
/**
|
|
720
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
735
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
721
736
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
722
737
|
*/
|
|
723
738
|
entityEventSequence?: string | null;
|
|
@@ -881,7 +896,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
881
896
|
};
|
|
882
897
|
declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
|
|
883
898
|
declare function bulkCreateSection(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionRequest$1, BulkCreateSectionRequest, BulkCreateSectionResponse$1, BulkCreateSectionResponse>;
|
|
884
|
-
declare function bulkCreateSectionMigration(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionMigrationRequest$1, BulkCreateSectionMigrationRequest, BulkCreateSectionMigrationResponse$1, BulkCreateSectionMigrationResponse>;
|
|
885
899
|
declare function getSection(): __PublicMethodMetaInfo<'GET', {
|
|
886
900
|
sectionId: string;
|
|
887
901
|
}, GetSectionRequest$1, GetSectionRequest, GetSectionResponse$1, GetSectionResponse>;
|
|
@@ -899,4 +913,4 @@ declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
|
|
|
899
913
|
declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
|
|
900
914
|
declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
|
|
901
915
|
|
|
902
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, BulkActionType as BulkActionTypeOriginal, type BulkActionTypeWithLiterals as BulkActionTypeWithLiteralsOriginal, type BulkCloneSectionRequest as BulkCloneSectionRequestOriginal, type BulkCloneSectionResponse as BulkCloneSectionResponseOriginal, type BulkCreateSectionMigrationRequest as BulkCreateSectionMigrationRequestOriginal, type BulkCreateSectionMigrationResponse as BulkCreateSectionMigrationResponseOriginal, type BulkCreateSectionRequest as BulkCreateSectionRequestOriginal, type BulkCreateSectionResponse as BulkCreateSectionResponseOriginal, type BulkSectionResult as BulkSectionResultOriginal, type CloneSectionRequest as CloneSectionRequestOriginal, type CloneSectionResponse as CloneSectionResponseOriginal, type CreateSectionRequest as CreateSectionRequestOriginal, type CreateSectionResponse as CreateSectionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteAllProgramSectionsRequest as DeleteAllProgramSectionsRequestOriginal, type DeleteAllProgramSectionsResponse as DeleteAllProgramSectionsResponseOriginal, type DeleteByFilterOperation as DeleteByFilterOperationOriginal, type DeleteByIdsOperation as DeleteByIdsOperationOriginal, type DeleteSectionRequest as DeleteSectionRequestOriginal, type DeleteSectionResponse as DeleteSectionResponseOriginal, DescriptionFieldSet as DescriptionFieldSetOriginal, type DescriptionFieldSetWithLiterals as DescriptionFieldSetWithLiteralsOriginal, type DescriptionMediaOneOf as DescriptionMediaOneOfOriginal, type Description as DescriptionOriginal, type DocumentImage as DocumentImageOriginal, type DocumentPayload as DocumentPayloadOriginal, type DocumentUpdateOperation as DocumentUpdateOperationOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FocalPoint as FocalPointOriginal, type GetSectionRequest as GetSectionRequestOriginal, type GetSectionResponse as GetSectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type IndexDocument as IndexDocumentOriginal, type ItemMetadata as ItemMetadataOriginal, type ListSectionsRequest as ListSectionsRequestOriginal, type ListSectionsResponse as ListSectionsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MoveSectionRequest as MoveSectionRequestOriginal, type MoveSectionResponse as MoveSectionResponseOriginal, type PublishSectionRequest as PublishSectionRequestOriginal, type PublishSectionResponse as PublishSectionResponseOriginal, type QuerySectionsRequest as QuerySectionsRequestOriginal, type QuerySectionsResponse as QuerySectionsResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreSectionFromTrashRequest as RestoreSectionFromTrashRequestOriginal, type RestoreSectionFromTrashResponse as RestoreSectionFromTrashResponseOriginal, type SearchIndexingNotification as SearchIndexingNotificationOriginal, SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal, type SearchIndexingNotificationStateWithLiterals as SearchIndexingNotificationStateWithLiteralsOriginal, type SectionCloned as SectionClonedOriginal, type SectionDeleted as SectionDeletedOriginal, type SectionMoved as SectionMovedOriginal, type Section as SectionOriginal, type SectionPublished as SectionPublishedOriginal, type SectionUpdated as SectionUpdatedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type UpdateByFilterOperation as UpdateByFilterOperationOriginal, type UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOfOriginal, type UpdateDocumentsEvent as UpdateDocumentsEventOriginal, type UpdateExistingOperation as UpdateExistingOperationOriginal, type UpdateSectionRequest as UpdateSectionRequestOriginal, type UpdateSectionResponse as UpdateSectionResponseOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateSection,
|
|
916
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, BulkActionType as BulkActionTypeOriginal, type BulkActionTypeWithLiterals as BulkActionTypeWithLiteralsOriginal, type BulkCloneSectionRequest as BulkCloneSectionRequestOriginal, type BulkCloneSectionResponse as BulkCloneSectionResponseOriginal, type BulkCreateSectionMigrationRequest as BulkCreateSectionMigrationRequestOriginal, type BulkCreateSectionMigrationResponse as BulkCreateSectionMigrationResponseOriginal, type BulkCreateSectionRequest as BulkCreateSectionRequestOriginal, type BulkCreateSectionResponse as BulkCreateSectionResponseOriginal, type BulkSectionResult as BulkSectionResultOriginal, type CloneSectionRequest as CloneSectionRequestOriginal, type CloneSectionResponse as CloneSectionResponseOriginal, type CreateSectionRequest as CreateSectionRequestOriginal, type CreateSectionResponse as CreateSectionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteAllProgramSectionsRequest as DeleteAllProgramSectionsRequestOriginal, type DeleteAllProgramSectionsResponse as DeleteAllProgramSectionsResponseOriginal, type DeleteByFilterOperation as DeleteByFilterOperationOriginal, type DeleteByIdsOperation as DeleteByIdsOperationOriginal, type DeleteSectionRequest as DeleteSectionRequestOriginal, type DeleteSectionResponse as DeleteSectionResponseOriginal, DescriptionFieldSet as DescriptionFieldSetOriginal, type DescriptionFieldSetWithLiterals as DescriptionFieldSetWithLiteralsOriginal, type DescriptionMediaOneOf as DescriptionMediaOneOfOriginal, type Description as DescriptionOriginal, type DocumentImage as DocumentImageOriginal, type DocumentPayload as DocumentPayloadOriginal, type DocumentUpdateOperation as DocumentUpdateOperationOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FocalPoint as FocalPointOriginal, type GetSectionRequest as GetSectionRequestOriginal, type GetSectionResponse as GetSectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type IndexDocument as IndexDocumentOriginal, type ItemMetadata as ItemMetadataOriginal, type ListSectionsRequest as ListSectionsRequestOriginal, type ListSectionsResponse as ListSectionsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MoveSectionRequest as MoveSectionRequestOriginal, type MoveSectionResponse as MoveSectionResponseOriginal, type PublishSectionRequest as PublishSectionRequestOriginal, type PublishSectionResponse as PublishSectionResponseOriginal, type QuerySectionsRequest as QuerySectionsRequestOriginal, type QuerySectionsResponse as QuerySectionsResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreSectionFromTrashRequest as RestoreSectionFromTrashRequestOriginal, type RestoreSectionFromTrashResponse as RestoreSectionFromTrashResponseOriginal, type SearchIndexingNotification as SearchIndexingNotificationOriginal, SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal, type SearchIndexingNotificationStateWithLiterals as SearchIndexingNotificationStateWithLiteralsOriginal, type SectionCloned as SectionClonedOriginal, type SectionDeleted as SectionDeletedOriginal, type SectionMoved as SectionMovedOriginal, type Section as SectionOriginal, type SectionPublished as SectionPublishedOriginal, type SectionUpdated as SectionUpdatedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type UpdateByFilterOperation as UpdateByFilterOperationOriginal, type UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOfOriginal, type UpdateDocumentsEvent as UpdateDocumentsEventOriginal, type UpdateExistingOperation as UpdateExistingOperationOriginal, type UpdateSectionRequest as UpdateSectionRequestOriginal, type UpdateSectionResponse as UpdateSectionResponseOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateSection, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
|
|
@@ -93,6 +93,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
|
|
|
93
93
|
{
|
|
94
94
|
srcPath: "/program-sections-service",
|
|
95
95
|
destPath: ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
srcPath: "/online-programs/v3/sections",
|
|
99
|
+
destPath: "/v3/sections"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
srcPath: "/online-programs/v3/bulk/sections",
|
|
103
|
+
destPath: "/v3/bulk/sections"
|
|
96
104
|
}
|
|
97
105
|
]
|
|
98
106
|
};
|
|
@@ -271,95 +279,6 @@ function bulkCreateSection(payload) {
|
|
|
271
279
|
}
|
|
272
280
|
return __bulkCreateSection;
|
|
273
281
|
}
|
|
274
|
-
function bulkCreateSectionMigration(payload) {
|
|
275
|
-
function __bulkCreateSectionMigration({ host }) {
|
|
276
|
-
const serializedData = transformPaths(payload, [
|
|
277
|
-
{
|
|
278
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
279
|
-
paths: [
|
|
280
|
-
{ path: "sections.createdDate" },
|
|
281
|
-
{ path: "sections.updatedDate" },
|
|
282
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
283
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
284
|
-
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
285
|
-
{
|
|
286
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
287
|
-
},
|
|
288
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
289
|
-
]
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
293
|
-
paths: [
|
|
294
|
-
{ path: "sections.ordering" },
|
|
295
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
296
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
297
|
-
{
|
|
298
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
302
|
-
},
|
|
303
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
304
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
]);
|
|
308
|
-
const metadata = {
|
|
309
|
-
entityFqdn: "wix.online_programs.v3.section",
|
|
310
|
-
method: "POST",
|
|
311
|
-
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
|
|
312
|
-
packageName: PACKAGE_NAME,
|
|
313
|
-
migrationOptions: {
|
|
314
|
-
optInTransformResponse: true
|
|
315
|
-
},
|
|
316
|
-
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
317
|
-
protoPath: "/v3/bulk/sections/create/migration",
|
|
318
|
-
data: serializedData,
|
|
319
|
-
host
|
|
320
|
-
}),
|
|
321
|
-
data: serializedData,
|
|
322
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
323
|
-
{
|
|
324
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
325
|
-
paths: [
|
|
326
|
-
{ path: "results.item.createdDate" },
|
|
327
|
-
{ path: "results.item.updatedDate" },
|
|
328
|
-
{ path: "results.item.description.image.urlExpirationDate" },
|
|
329
|
-
{ path: "results.item.description.video.urlExpirationDate" },
|
|
330
|
-
{
|
|
331
|
-
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
path: "results.item.description.video.posters.urlExpirationDate"
|
|
338
|
-
}
|
|
339
|
-
]
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
343
|
-
paths: [
|
|
344
|
-
{ path: "results.item.ordering" },
|
|
345
|
-
{ path: "results.item.description.image.focalPoint.x" },
|
|
346
|
-
{ path: "results.item.description.image.focalPoint.y" },
|
|
347
|
-
{
|
|
348
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
352
|
-
},
|
|
353
|
-
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
354
|
-
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
355
|
-
]
|
|
356
|
-
}
|
|
357
|
-
])
|
|
358
|
-
};
|
|
359
|
-
return metadata;
|
|
360
|
-
}
|
|
361
|
-
return __bulkCreateSectionMigration;
|
|
362
|
-
}
|
|
363
282
|
function getSection(payload) {
|
|
364
283
|
function __getSection({ host }) {
|
|
365
284
|
const metadata = {
|
|
@@ -887,24 +806,6 @@ function bulkCreateSection2() {
|
|
|
887
806
|
__originalResponseType: null
|
|
888
807
|
};
|
|
889
808
|
}
|
|
890
|
-
function bulkCreateSectionMigration2() {
|
|
891
|
-
const payload = {};
|
|
892
|
-
const getRequestOptions = bulkCreateSectionMigration(payload);
|
|
893
|
-
const getUrl = (context) => {
|
|
894
|
-
const { url } = getRequestOptions(context);
|
|
895
|
-
return url;
|
|
896
|
-
};
|
|
897
|
-
return {
|
|
898
|
-
getUrl,
|
|
899
|
-
httpMethod: "POST",
|
|
900
|
-
path: "/v3/bulk/sections/create/migration",
|
|
901
|
-
pathParams: {},
|
|
902
|
-
__requestType: null,
|
|
903
|
-
__originalRequestType: null,
|
|
904
|
-
__responseType: null,
|
|
905
|
-
__originalResponseType: null
|
|
906
|
-
};
|
|
907
|
-
}
|
|
908
809
|
function getSection2() {
|
|
909
810
|
const payload = { sectionId: ":sectionId" };
|
|
910
811
|
const getRequestOptions = getSection(payload);
|
|
@@ -1059,7 +960,6 @@ export {
|
|
|
1059
960
|
State as StateOriginal,
|
|
1060
961
|
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
1061
962
|
bulkCreateSection2 as bulkCreateSection,
|
|
1062
|
-
bulkCreateSectionMigration2 as bulkCreateSectionMigration,
|
|
1063
963
|
cloneSection2 as cloneSection,
|
|
1064
964
|
createSection2 as createSection,
|
|
1065
965
|
deleteSection2 as deleteSection,
|