@wix/auto_sdk_online-programs_sections 1.0.34 → 1.0.36
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 +7 -7
- package/build/cjs/index.js +38 -68
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -186
- package/build/cjs/index.typings.js +33 -58
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -96
- package/build/cjs/meta.js +4 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +7 -7
- package/build/es/index.mjs +38 -68
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -186
- package/build/es/index.typings.mjs +33 -58
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -96
- package/build/es/meta.mjs +4 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +7 -7
- package/build/internal/cjs/index.typings.d.ts +37 -84
- package/build/internal/cjs/meta.d.ts +27 -5
- package/build/internal/es/index.d.mts +7 -7
- package/build/internal/es/index.typings.d.mts +37 -84
- package/build/internal/es/meta.d.mts +27 -5
- package/package.json +2 -2
|
@@ -220,20 +220,11 @@ interface SectionMoved {
|
|
|
220
220
|
interface CreateSectionRequest {
|
|
221
221
|
/** Section to create. Must include `section.programId`. */
|
|
222
222
|
section: Section;
|
|
223
|
-
/**
|
|
224
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
225
|
-
* @maxSize 1
|
|
226
|
-
* @deprecated
|
|
227
|
-
* @targetRemovalDate 2026-12-31
|
|
228
|
-
*/
|
|
229
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
230
223
|
}
|
|
231
224
|
declare enum RequestedFields {
|
|
232
|
-
/** return total number of steps in this section. */
|
|
233
|
-
TOTAL_STEPS = "TOTAL_STEPS"
|
|
234
225
|
}
|
|
235
226
|
/** @enumType */
|
|
236
|
-
type RequestedFieldsWithLiterals = RequestedFields
|
|
227
|
+
type RequestedFieldsWithLiterals = RequestedFields;
|
|
237
228
|
interface CreateSectionResponse {
|
|
238
229
|
/** Created section. */
|
|
239
230
|
section?: Section;
|
|
@@ -245,13 +236,6 @@ interface BulkCreateSectionsRequest {
|
|
|
245
236
|
* @maxSize 100
|
|
246
237
|
*/
|
|
247
238
|
sections: Section[];
|
|
248
|
-
/**
|
|
249
|
-
* Deprecated: This field is ignored.
|
|
250
|
-
* @maxSize 1
|
|
251
|
-
* @deprecated
|
|
252
|
-
* @targetRemovalDate 2026-12-31
|
|
253
|
-
*/
|
|
254
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
255
239
|
}
|
|
256
240
|
interface BulkCreateSectionsResponse {
|
|
257
241
|
/** Results for the bulk create operation. */
|
|
@@ -306,13 +290,6 @@ interface BulkCreateSectionRequest {
|
|
|
306
290
|
* @maxSize 100
|
|
307
291
|
*/
|
|
308
292
|
sections?: Section[];
|
|
309
|
-
/**
|
|
310
|
-
* Deprecated: This field is ignored.
|
|
311
|
-
* @maxSize 1
|
|
312
|
-
* @deprecated
|
|
313
|
-
* @targetRemovalDate 2026-12-31
|
|
314
|
-
*/
|
|
315
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
316
293
|
}
|
|
317
294
|
interface BulkCreateSectionResponse {
|
|
318
295
|
/** Results for the bulk create operation. */
|
|
@@ -326,28 +303,11 @@ interface GetSectionRequest {
|
|
|
326
303
|
* @format GUID
|
|
327
304
|
*/
|
|
328
305
|
sectionId: string;
|
|
329
|
-
/**
|
|
330
|
-
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
331
|
-
* @deprecated
|
|
332
|
-
* @targetRemovalDate 2026-12-31
|
|
333
|
-
*/
|
|
334
|
-
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
335
|
-
/**
|
|
336
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
337
|
-
* @maxSize 1
|
|
338
|
-
* @deprecated
|
|
339
|
-
* @targetRemovalDate 2026-12-31
|
|
340
|
-
*/
|
|
341
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
342
306
|
}
|
|
343
307
|
declare enum DescriptionFieldSet {
|
|
344
|
-
/** Retained for backward compatibility. Current section responses return the section title. */
|
|
345
|
-
STANDARD = "STANDARD",
|
|
346
|
-
/** Retained for backward compatibility. Current section responses return the section title. */
|
|
347
|
-
EXTENDED = "EXTENDED"
|
|
348
308
|
}
|
|
349
309
|
/** @enumType */
|
|
350
|
-
type DescriptionFieldSetWithLiterals = DescriptionFieldSet
|
|
310
|
+
type DescriptionFieldSetWithLiterals = DescriptionFieldSet;
|
|
351
311
|
interface GetSectionResponse {
|
|
352
312
|
/** Retrieved section. */
|
|
353
313
|
section?: Section;
|
|
@@ -355,13 +315,6 @@ interface GetSectionResponse {
|
|
|
355
315
|
interface UpdateSectionRequest {
|
|
356
316
|
/** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
|
|
357
317
|
section?: Section;
|
|
358
|
-
/**
|
|
359
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
360
|
-
* @maxSize 1
|
|
361
|
-
* @deprecated
|
|
362
|
-
* @targetRemovalDate 2026-12-31
|
|
363
|
-
*/
|
|
364
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
365
318
|
}
|
|
366
319
|
interface UpdateSectionResponse {
|
|
367
320
|
/** Updated section. */
|
|
@@ -394,19 +347,6 @@ interface DeleteAllProgramSectionsResponse {
|
|
|
394
347
|
interface QuerySectionsRequest {
|
|
395
348
|
/** WQL expression. */
|
|
396
349
|
query?: CursorQuery;
|
|
397
|
-
/**
|
|
398
|
-
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
399
|
-
* @deprecated
|
|
400
|
-
* @targetRemovalDate 2026-12-31
|
|
401
|
-
*/
|
|
402
|
-
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
403
|
-
/**
|
|
404
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
405
|
-
* @maxSize 1
|
|
406
|
-
* @deprecated
|
|
407
|
-
* @targetRemovalDate 2026-12-31
|
|
408
|
-
*/
|
|
409
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
410
350
|
}
|
|
411
351
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
412
352
|
/**
|
|
@@ -516,19 +456,6 @@ interface ListSectionsRequest {
|
|
|
516
456
|
* @format GUID
|
|
517
457
|
*/
|
|
518
458
|
programId: string;
|
|
519
|
-
/**
|
|
520
|
-
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
521
|
-
* @deprecated
|
|
522
|
-
* @targetRemovalDate 2026-12-31
|
|
523
|
-
*/
|
|
524
|
-
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
525
|
-
/**
|
|
526
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
527
|
-
* @maxSize 1
|
|
528
|
-
* @deprecated
|
|
529
|
-
* @targetRemovalDate 2026-12-31
|
|
530
|
-
*/
|
|
531
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
532
459
|
}
|
|
533
460
|
interface ListSectionsResponse {
|
|
534
461
|
/**
|
|
@@ -543,13 +470,6 @@ interface CloneSectionRequest {
|
|
|
543
470
|
* @format GUID
|
|
544
471
|
*/
|
|
545
472
|
sectionId: string;
|
|
546
|
-
/**
|
|
547
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
548
|
-
* @maxSize 1
|
|
549
|
-
* @deprecated
|
|
550
|
-
* @targetRemovalDate 2026-12-31
|
|
551
|
-
*/
|
|
552
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
553
473
|
}
|
|
554
474
|
interface CloneSectionResponse {
|
|
555
475
|
/** Cloned section. */
|
|
@@ -568,13 +488,6 @@ interface MoveSectionRequest {
|
|
|
568
488
|
afterSectionId?: string | null;
|
|
569
489
|
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
570
490
|
revision?: string;
|
|
571
|
-
/**
|
|
572
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
573
|
-
* @maxSize 1
|
|
574
|
-
* @deprecated
|
|
575
|
-
* @targetRemovalDate 2026-12-31
|
|
576
|
-
*/
|
|
577
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
578
491
|
}
|
|
579
492
|
interface MoveSectionResponse {
|
|
580
493
|
/** Moved section. */
|
|
@@ -612,13 +525,6 @@ interface RestoreSectionFromTrashRequest {
|
|
|
612
525
|
* @format GUID
|
|
613
526
|
*/
|
|
614
527
|
sectionId?: string;
|
|
615
|
-
/**
|
|
616
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
617
|
-
* @maxSize 1
|
|
618
|
-
* @deprecated
|
|
619
|
-
* @targetRemovalDate 2026-12-31
|
|
620
|
-
*/
|
|
621
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
622
528
|
}
|
|
623
529
|
interface RestoreSectionFromTrashResponse {
|
|
624
530
|
/** Restored section. */
|
|
@@ -937,16 +843,7 @@ declare function onSectionUpdated(handler: (event: SectionUpdatedEnvelope) => vo
|
|
|
937
843
|
* @returns Created section.
|
|
938
844
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection
|
|
939
845
|
*/
|
|
940
|
-
declare function createSection(section: NonNullablePaths<Section, `programId`, 0
|
|
941
|
-
interface CreateSectionOptions {
|
|
942
|
-
/**
|
|
943
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
944
|
-
* @maxSize 1
|
|
945
|
-
* @deprecated
|
|
946
|
-
* @targetRemovalDate 2026-12-31
|
|
947
|
-
*/
|
|
948
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
949
|
-
}
|
|
846
|
+
declare function createSection(section: NonNullablePaths<Section, `programId`, 0>): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
950
847
|
/**
|
|
951
848
|
* Creates up to 100 sections in a single API call.
|
|
952
849
|
*
|
|
@@ -964,16 +861,7 @@ interface CreateSectionOptions {
|
|
|
964
861
|
* @applicableIdentity APP
|
|
965
862
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections
|
|
966
863
|
*/
|
|
967
|
-
declare function bulkCreateSections(sections: NonNullablePaths<Section, `programId`, 0>[]
|
|
968
|
-
interface BulkCreateSectionsOptions {
|
|
969
|
-
/**
|
|
970
|
-
* Deprecated: This field is ignored.
|
|
971
|
-
* @maxSize 1
|
|
972
|
-
* @deprecated
|
|
973
|
-
* @targetRemovalDate 2026-12-31
|
|
974
|
-
*/
|
|
975
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
976
|
-
}
|
|
864
|
+
declare function bulkCreateSections(sections: NonNullablePaths<Section, `programId`, 0>[]): Promise<NonNullablePaths<BulkCreateSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.action` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
|
|
977
865
|
/**
|
|
978
866
|
* Retrieves a section.
|
|
979
867
|
* @param sectionId - ID of the Section to retrieve.
|
|
@@ -985,22 +873,7 @@ interface BulkCreateSectionsOptions {
|
|
|
985
873
|
* @returns Retrieved section.
|
|
986
874
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.GetSection
|
|
987
875
|
*/
|
|
988
|
-
declare function getSection(sectionId: string
|
|
989
|
-
interface GetSectionOptions {
|
|
990
|
-
/**
|
|
991
|
-
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
992
|
-
* @deprecated
|
|
993
|
-
* @targetRemovalDate 2026-12-31
|
|
994
|
-
*/
|
|
995
|
-
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
996
|
-
/**
|
|
997
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
998
|
-
* @maxSize 1
|
|
999
|
-
* @deprecated
|
|
1000
|
-
* @targetRemovalDate 2026-12-31
|
|
1001
|
-
*/
|
|
1002
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
1003
|
-
}
|
|
876
|
+
declare function getSection(sectionId: string): Promise<NonNullablePaths<Section, `programId` | `description.title` | `ordering` | `delayInDays`, 1>>;
|
|
1004
877
|
/**
|
|
1005
878
|
* Updates a section.
|
|
1006
879
|
*
|
|
@@ -1068,13 +941,6 @@ interface UpdateSectionOptions {
|
|
|
1068
941
|
/** Custom field data for the section. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls. */
|
|
1069
942
|
extendedFields?: ExtendedFields;
|
|
1070
943
|
};
|
|
1071
|
-
/**
|
|
1072
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1073
|
-
* @maxSize 1
|
|
1074
|
-
* @deprecated
|
|
1075
|
-
* @targetRemovalDate 2026-12-31
|
|
1076
|
-
*/
|
|
1077
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
1078
944
|
}
|
|
1079
945
|
/**
|
|
1080
946
|
* Permanently deletes a section from the public API.
|
|
@@ -1114,19 +980,6 @@ declare function deleteSection(sectionId: string): Promise<void>;
|
|
|
1114
980
|
*/
|
|
1115
981
|
declare function querySections(options?: QuerySectionsOptions): SectionsQueryBuilder;
|
|
1116
982
|
interface QuerySectionsOptions {
|
|
1117
|
-
/**
|
|
1118
|
-
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
1119
|
-
* @deprecated
|
|
1120
|
-
* @targetRemovalDate 2026-12-31
|
|
1121
|
-
*/
|
|
1122
|
-
descriptionFieldSet?: DescriptionFieldSetWithLiterals | undefined;
|
|
1123
|
-
/**
|
|
1124
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1125
|
-
* @maxSize 1
|
|
1126
|
-
* @deprecated
|
|
1127
|
-
* @targetRemovalDate 2026-12-31
|
|
1128
|
-
*/
|
|
1129
|
-
fields?: RequestedFieldsWithLiterals[] | undefined;
|
|
1130
983
|
}
|
|
1131
984
|
interface QueryCursorResult {
|
|
1132
985
|
cursors: Cursors;
|
|
@@ -1296,22 +1149,7 @@ declare const utils: {
|
|
|
1296
1149
|
* @applicableIdentity APP
|
|
1297
1150
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections
|
|
1298
1151
|
*/
|
|
1299
|
-
declare function listSections(programId: string
|
|
1300
|
-
interface ListSectionsOptions {
|
|
1301
|
-
/**
|
|
1302
|
-
* Deprecated: Current section responses always include the section title. This field is ignored.
|
|
1303
|
-
* @deprecated
|
|
1304
|
-
* @targetRemovalDate 2026-12-31
|
|
1305
|
-
*/
|
|
1306
|
-
descriptionFieldSet?: DescriptionFieldSetWithLiterals;
|
|
1307
|
-
/**
|
|
1308
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1309
|
-
* @maxSize 1
|
|
1310
|
-
* @deprecated
|
|
1311
|
-
* @targetRemovalDate 2026-12-31
|
|
1312
|
-
*/
|
|
1313
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
1314
|
-
}
|
|
1152
|
+
declare function listSections(programId: string): Promise<NonNullablePaths<ListSectionsResponse, `sections` | `sections.${number}.programId` | `sections.${number}.description.title` | `sections.${number}.ordering` | `sections.${number}.delayInDays`, 3>>;
|
|
1315
1153
|
/**
|
|
1316
1154
|
* Clones a section.
|
|
1317
1155
|
*
|
|
@@ -1330,16 +1168,7 @@ interface ListSectionsOptions {
|
|
|
1330
1168
|
* @applicableIdentity APP
|
|
1331
1169
|
* @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection
|
|
1332
1170
|
*/
|
|
1333
|
-
declare function cloneSection(sectionId: string
|
|
1334
|
-
interface CloneSectionOptions {
|
|
1335
|
-
/**
|
|
1336
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1337
|
-
* @maxSize 1
|
|
1338
|
-
* @deprecated
|
|
1339
|
-
* @targetRemovalDate 2026-12-31
|
|
1340
|
-
*/
|
|
1341
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
1342
|
-
}
|
|
1171
|
+
declare function cloneSection(sectionId: string): Promise<NonNullablePaths<CloneSectionResponse, `section.programId` | `section.description.title` | `section.ordering` | `section.delayInDays`, 2>>;
|
|
1343
1172
|
/**
|
|
1344
1173
|
* Moves a section within its program.
|
|
1345
1174
|
*
|
|
@@ -1363,13 +1192,6 @@ interface MoveSectionOptions {
|
|
|
1363
1192
|
afterSectionId?: string | null;
|
|
1364
1193
|
/** Current revision of the section. When provided, it must match the current revision to protect against conflicting updates. */
|
|
1365
1194
|
revision?: string;
|
|
1366
|
-
/**
|
|
1367
|
-
* Deprecated: `total_steps` is always returned. This field is ignored.
|
|
1368
|
-
* @maxSize 1
|
|
1369
|
-
* @deprecated
|
|
1370
|
-
* @targetRemovalDate 2026-12-31
|
|
1371
|
-
*/
|
|
1372
|
-
fields?: RequestedFieldsWithLiterals[];
|
|
1373
1195
|
}
|
|
1374
1196
|
|
|
1375
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionRequest, type BulkCreateSectionResponse, type
|
|
1197
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkCloneSectionRequest, type BulkCloneSectionResponse, type BulkCreateSectionRequest, type BulkCreateSectionResponse, type BulkCreateSectionsRequest, type BulkCreateSectionsResponse, type BulkSectionResult, type CloneSectionRequest, type CloneSectionResponse, type CommonQueryWithEntityContext, type CreateSectionRequest, type CreateSectionResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteAllProgramSectionsRequest, type DeleteAllProgramSectionsResponse, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteSectionRequest, type DeleteSectionResponse, type Description, DescriptionFieldSet, type DescriptionFieldSetWithLiterals, type DocumentImage, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type EventMetadata, type ExtendedFields, type GetSectionRequest, type GetSectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type IndexDocument, type ItemMetadata, type ListSectionsRequest, type ListSectionsResponse, type MessageEnvelope, type MoveSectionOptions, type MoveSectionRequest, type MoveSectionResponse, type QuerySectionsOptions, type QuerySectionsRequest, type QuerySectionsResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RestoreSectionFromTrashRequest, type RestoreSectionFromTrashResponse, type SearchIndexingNotification, SearchIndexingNotificationState, type SearchIndexingNotificationStateWithLiterals, type Section, type SectionCloned, type SectionClonedEnvelope, type SectionCreatedEnvelope, type SectionDeleted, type SectionDeletedEnvelope, type SectionMoved, type SectionQuery, type SectionQuerySpec, type SectionUpdated, type SectionUpdatedEnvelope, type SectionsQueryBuilder, type SectionsQueryResult, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateSectionOptions, type UpdateSectionRequest, type UpdateSectionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, onSectionCloned, onSectionCreated, onSectionDeleted, onSectionUpdated, querySections, typedQuerySections, updateSection, utils };
|
|
@@ -139,10 +139,6 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
|
|
|
139
139
|
}
|
|
140
140
|
],
|
|
141
141
|
"www.wixapis.com": [
|
|
142
|
-
{
|
|
143
|
-
srcPath: "/program-sections-service",
|
|
144
|
-
destPath: ""
|
|
145
|
-
},
|
|
146
142
|
{
|
|
147
143
|
srcPath: "/online-programs/v3/sections",
|
|
148
144
|
destPath: "/v3/sections"
|
|
@@ -150,6 +146,10 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
|
|
|
150
146
|
{
|
|
151
147
|
srcPath: "/online-programs/v3/bulk/sections",
|
|
152
148
|
destPath: "/v3/bulk/sections"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
srcPath: "/program-sections-service",
|
|
152
|
+
destPath: ""
|
|
153
153
|
}
|
|
154
154
|
]
|
|
155
155
|
};
|
|
@@ -554,12 +554,9 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
554
554
|
WebhookIdentityType2["APP"] = "APP";
|
|
555
555
|
return WebhookIdentityType2;
|
|
556
556
|
})(WebhookIdentityType || {});
|
|
557
|
-
async function createSection2(section
|
|
558
|
-
const { httpClient, sideEffects } = arguments[
|
|
559
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
560
|
-
section,
|
|
561
|
-
fields: options?.fields
|
|
562
|
-
});
|
|
557
|
+
async function createSection2(section) {
|
|
558
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
559
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ section });
|
|
563
560
|
const reqOpts = createSection(payload);
|
|
564
561
|
sideEffects?.onSiteCall?.();
|
|
565
562
|
try {
|
|
@@ -571,21 +568,18 @@ async function createSection2(section, options) {
|
|
|
571
568
|
err,
|
|
572
569
|
{
|
|
573
570
|
spreadPathsToArguments: {},
|
|
574
|
-
explicitPathsToArguments: { section: "$[0]"
|
|
571
|
+
explicitPathsToArguments: { section: "$[0]" },
|
|
575
572
|
singleArgumentUnchanged: false
|
|
576
573
|
},
|
|
577
|
-
["section"
|
|
574
|
+
["section"]
|
|
578
575
|
);
|
|
579
576
|
sideEffects?.onError?.(err);
|
|
580
577
|
throw transformedError;
|
|
581
578
|
}
|
|
582
579
|
}
|
|
583
|
-
async function bulkCreateSections2(sections
|
|
584
|
-
const { httpClient, sideEffects } = arguments[
|
|
585
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
586
|
-
sections,
|
|
587
|
-
fields: options?.fields
|
|
588
|
-
});
|
|
580
|
+
async function bulkCreateSections2(sections) {
|
|
581
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
582
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ sections });
|
|
589
583
|
const reqOpts = bulkCreateSections(payload);
|
|
590
584
|
sideEffects?.onSiteCall?.();
|
|
591
585
|
try {
|
|
@@ -597,21 +591,19 @@ async function bulkCreateSections2(sections, options) {
|
|
|
597
591
|
err,
|
|
598
592
|
{
|
|
599
593
|
spreadPathsToArguments: {},
|
|
600
|
-
explicitPathsToArguments: { sections: "$[0]"
|
|
594
|
+
explicitPathsToArguments: { sections: "$[0]" },
|
|
601
595
|
singleArgumentUnchanged: false
|
|
602
596
|
},
|
|
603
|
-
["sections"
|
|
597
|
+
["sections"]
|
|
604
598
|
);
|
|
605
599
|
sideEffects?.onError?.(err);
|
|
606
600
|
throw transformedError;
|
|
607
601
|
}
|
|
608
602
|
}
|
|
609
|
-
async function getSection2(sectionId
|
|
610
|
-
const { httpClient, sideEffects } = arguments[
|
|
603
|
+
async function getSection2(sectionId) {
|
|
604
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
611
605
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
612
|
-
sectionId
|
|
613
|
-
descriptionFieldSet: options?.descriptionFieldSet,
|
|
614
|
-
fields: options?.fields
|
|
606
|
+
sectionId
|
|
615
607
|
});
|
|
616
608
|
const reqOpts = getSection(payload);
|
|
617
609
|
sideEffects?.onSiteCall?.();
|
|
@@ -624,14 +616,10 @@ async function getSection2(sectionId, options) {
|
|
|
624
616
|
err,
|
|
625
617
|
{
|
|
626
618
|
spreadPathsToArguments: {},
|
|
627
|
-
explicitPathsToArguments: {
|
|
628
|
-
sectionId: "$[0]",
|
|
629
|
-
descriptionFieldSet: "$[1].descriptionFieldSet",
|
|
630
|
-
fields: "$[1].fields"
|
|
631
|
-
},
|
|
619
|
+
explicitPathsToArguments: { sectionId: "$[0]" },
|
|
632
620
|
singleArgumentUnchanged: false
|
|
633
621
|
},
|
|
634
|
-
["sectionId"
|
|
622
|
+
["sectionId"]
|
|
635
623
|
);
|
|
636
624
|
sideEffects?.onError?.(err);
|
|
637
625
|
throw transformedError;
|
|
@@ -640,8 +628,7 @@ async function getSection2(sectionId, options) {
|
|
|
640
628
|
async function updateSection2(_id, options) {
|
|
641
629
|
const { httpClient, sideEffects } = arguments[2];
|
|
642
630
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
643
|
-
section: { ...options?.section, id: _id }
|
|
644
|
-
fields: options?.fields
|
|
631
|
+
section: { ...options?.section, id: _id }
|
|
645
632
|
});
|
|
646
633
|
const reqOpts = updateSection(payload);
|
|
647
634
|
sideEffects?.onSiteCall?.();
|
|
@@ -654,10 +641,7 @@ async function updateSection2(_id, options) {
|
|
|
654
641
|
err,
|
|
655
642
|
{
|
|
656
643
|
spreadPathsToArguments: { section: "$[1].section" },
|
|
657
|
-
explicitPathsToArguments: {
|
|
658
|
-
"section.id": "$[0]",
|
|
659
|
-
fields: "$[1].fields"
|
|
660
|
-
},
|
|
644
|
+
explicitPathsToArguments: { "section.id": "$[0]" },
|
|
661
645
|
singleArgumentUnchanged: false
|
|
662
646
|
},
|
|
663
647
|
["_id", "options"]
|
|
@@ -765,12 +749,10 @@ async function typedQuerySections(query, options) {
|
|
|
765
749
|
var utils = {
|
|
766
750
|
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
767
751
|
};
|
|
768
|
-
async function listSections2(programId
|
|
769
|
-
const { httpClient, sideEffects } = arguments[
|
|
752
|
+
async function listSections2(programId) {
|
|
753
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
770
754
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
771
|
-
programId
|
|
772
|
-
descriptionFieldSet: options?.descriptionFieldSet,
|
|
773
|
-
fields: options?.fields
|
|
755
|
+
programId
|
|
774
756
|
});
|
|
775
757
|
const reqOpts = listSections(payload);
|
|
776
758
|
sideEffects?.onSiteCall?.();
|
|
@@ -783,24 +765,19 @@ async function listSections2(programId, options) {
|
|
|
783
765
|
err,
|
|
784
766
|
{
|
|
785
767
|
spreadPathsToArguments: {},
|
|
786
|
-
explicitPathsToArguments: {
|
|
787
|
-
programId: "$[0]",
|
|
788
|
-
descriptionFieldSet: "$[1].descriptionFieldSet",
|
|
789
|
-
fields: "$[1].fields"
|
|
790
|
-
},
|
|
768
|
+
explicitPathsToArguments: { programId: "$[0]" },
|
|
791
769
|
singleArgumentUnchanged: false
|
|
792
770
|
},
|
|
793
|
-
["programId"
|
|
771
|
+
["programId"]
|
|
794
772
|
);
|
|
795
773
|
sideEffects?.onError?.(err);
|
|
796
774
|
throw transformedError;
|
|
797
775
|
}
|
|
798
776
|
}
|
|
799
|
-
async function cloneSection2(sectionId
|
|
800
|
-
const { httpClient, sideEffects } = arguments[
|
|
777
|
+
async function cloneSection2(sectionId) {
|
|
778
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
801
779
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
802
|
-
sectionId
|
|
803
|
-
fields: options?.fields
|
|
780
|
+
sectionId
|
|
804
781
|
});
|
|
805
782
|
const reqOpts = cloneSection(payload);
|
|
806
783
|
sideEffects?.onSiteCall?.();
|
|
@@ -813,10 +790,10 @@ async function cloneSection2(sectionId, options) {
|
|
|
813
790
|
err,
|
|
814
791
|
{
|
|
815
792
|
spreadPathsToArguments: {},
|
|
816
|
-
explicitPathsToArguments: { sectionId: "$[0]"
|
|
793
|
+
explicitPathsToArguments: { sectionId: "$[0]" },
|
|
817
794
|
singleArgumentUnchanged: false
|
|
818
795
|
},
|
|
819
|
-
["sectionId"
|
|
796
|
+
["sectionId"]
|
|
820
797
|
);
|
|
821
798
|
sideEffects?.onError?.(err);
|
|
822
799
|
throw transformedError;
|
|
@@ -827,8 +804,7 @@ async function moveSection2(sectionId, options) {
|
|
|
827
804
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
828
805
|
sectionId,
|
|
829
806
|
afterSectionId: options?.afterSectionId,
|
|
830
|
-
revision: options?.revision
|
|
831
|
-
fields: options?.fields
|
|
807
|
+
revision: options?.revision
|
|
832
808
|
});
|
|
833
809
|
const reqOpts = moveSection(payload);
|
|
834
810
|
sideEffects?.onSiteCall?.();
|
|
@@ -844,8 +820,7 @@ async function moveSection2(sectionId, options) {
|
|
|
844
820
|
explicitPathsToArguments: {
|
|
845
821
|
sectionId: "$[0]",
|
|
846
822
|
afterSectionId: "$[1].afterSectionId",
|
|
847
|
-
revision: "$[1].revision"
|
|
848
|
-
fields: "$[1].fields"
|
|
823
|
+
revision: "$[1].revision"
|
|
849
824
|
},
|
|
850
825
|
singleArgumentUnchanged: false
|
|
851
826
|
},
|