@wix/auto_sdk_online-programs_sections 1.0.35 → 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 +34 -64
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -186
- package/build/cjs/index.typings.js +29 -54
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -96
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +7 -7
- package/build/es/index.mjs +34 -64
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -186
- package/build/es/index.typings.mjs +29 -54
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -96
- 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 };
|
|
@@ -513,12 +513,9 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
513
513
|
WebhookIdentityType2["APP"] = "APP";
|
|
514
514
|
return WebhookIdentityType2;
|
|
515
515
|
})(WebhookIdentityType || {});
|
|
516
|
-
async function createSection2(section
|
|
517
|
-
const { httpClient, sideEffects } = arguments[
|
|
518
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
519
|
-
section,
|
|
520
|
-
fields: options?.fields
|
|
521
|
-
});
|
|
516
|
+
async function createSection2(section) {
|
|
517
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
518
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ section });
|
|
522
519
|
const reqOpts = createSection(payload);
|
|
523
520
|
sideEffects?.onSiteCall?.();
|
|
524
521
|
try {
|
|
@@ -530,21 +527,18 @@ async function createSection2(section, options) {
|
|
|
530
527
|
err,
|
|
531
528
|
{
|
|
532
529
|
spreadPathsToArguments: {},
|
|
533
|
-
explicitPathsToArguments: { section: "$[0]"
|
|
530
|
+
explicitPathsToArguments: { section: "$[0]" },
|
|
534
531
|
singleArgumentUnchanged: false
|
|
535
532
|
},
|
|
536
|
-
["section"
|
|
533
|
+
["section"]
|
|
537
534
|
);
|
|
538
535
|
sideEffects?.onError?.(err);
|
|
539
536
|
throw transformedError;
|
|
540
537
|
}
|
|
541
538
|
}
|
|
542
|
-
async function bulkCreateSections2(sections
|
|
543
|
-
const { httpClient, sideEffects } = arguments[
|
|
544
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
545
|
-
sections,
|
|
546
|
-
fields: options?.fields
|
|
547
|
-
});
|
|
539
|
+
async function bulkCreateSections2(sections) {
|
|
540
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
541
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ sections });
|
|
548
542
|
const reqOpts = bulkCreateSections(payload);
|
|
549
543
|
sideEffects?.onSiteCall?.();
|
|
550
544
|
try {
|
|
@@ -556,21 +550,19 @@ async function bulkCreateSections2(sections, options) {
|
|
|
556
550
|
err,
|
|
557
551
|
{
|
|
558
552
|
spreadPathsToArguments: {},
|
|
559
|
-
explicitPathsToArguments: { sections: "$[0]"
|
|
553
|
+
explicitPathsToArguments: { sections: "$[0]" },
|
|
560
554
|
singleArgumentUnchanged: false
|
|
561
555
|
},
|
|
562
|
-
["sections"
|
|
556
|
+
["sections"]
|
|
563
557
|
);
|
|
564
558
|
sideEffects?.onError?.(err);
|
|
565
559
|
throw transformedError;
|
|
566
560
|
}
|
|
567
561
|
}
|
|
568
|
-
async function getSection2(sectionId
|
|
569
|
-
const { httpClient, sideEffects } = arguments[
|
|
562
|
+
async function getSection2(sectionId) {
|
|
563
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
570
564
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
571
|
-
sectionId
|
|
572
|
-
descriptionFieldSet: options?.descriptionFieldSet,
|
|
573
|
-
fields: options?.fields
|
|
565
|
+
sectionId
|
|
574
566
|
});
|
|
575
567
|
const reqOpts = getSection(payload);
|
|
576
568
|
sideEffects?.onSiteCall?.();
|
|
@@ -583,14 +575,10 @@ async function getSection2(sectionId, options) {
|
|
|
583
575
|
err,
|
|
584
576
|
{
|
|
585
577
|
spreadPathsToArguments: {},
|
|
586
|
-
explicitPathsToArguments: {
|
|
587
|
-
sectionId: "$[0]",
|
|
588
|
-
descriptionFieldSet: "$[1].descriptionFieldSet",
|
|
589
|
-
fields: "$[1].fields"
|
|
590
|
-
},
|
|
578
|
+
explicitPathsToArguments: { sectionId: "$[0]" },
|
|
591
579
|
singleArgumentUnchanged: false
|
|
592
580
|
},
|
|
593
|
-
["sectionId"
|
|
581
|
+
["sectionId"]
|
|
594
582
|
);
|
|
595
583
|
sideEffects?.onError?.(err);
|
|
596
584
|
throw transformedError;
|
|
@@ -599,8 +587,7 @@ async function getSection2(sectionId, options) {
|
|
|
599
587
|
async function updateSection2(_id, options) {
|
|
600
588
|
const { httpClient, sideEffects } = arguments[2];
|
|
601
589
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
602
|
-
section: { ...options?.section, id: _id }
|
|
603
|
-
fields: options?.fields
|
|
590
|
+
section: { ...options?.section, id: _id }
|
|
604
591
|
});
|
|
605
592
|
const reqOpts = updateSection(payload);
|
|
606
593
|
sideEffects?.onSiteCall?.();
|
|
@@ -613,10 +600,7 @@ async function updateSection2(_id, options) {
|
|
|
613
600
|
err,
|
|
614
601
|
{
|
|
615
602
|
spreadPathsToArguments: { section: "$[1].section" },
|
|
616
|
-
explicitPathsToArguments: {
|
|
617
|
-
"section.id": "$[0]",
|
|
618
|
-
fields: "$[1].fields"
|
|
619
|
-
},
|
|
603
|
+
explicitPathsToArguments: { "section.id": "$[0]" },
|
|
620
604
|
singleArgumentUnchanged: false
|
|
621
605
|
},
|
|
622
606
|
["_id", "options"]
|
|
@@ -724,12 +708,10 @@ async function typedQuerySections(query, options) {
|
|
|
724
708
|
var utils = {
|
|
725
709
|
query: /* @__PURE__ */ createQueryUtils()
|
|
726
710
|
};
|
|
727
|
-
async function listSections2(programId
|
|
728
|
-
const { httpClient, sideEffects } = arguments[
|
|
711
|
+
async function listSections2(programId) {
|
|
712
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
729
713
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
730
|
-
programId
|
|
731
|
-
descriptionFieldSet: options?.descriptionFieldSet,
|
|
732
|
-
fields: options?.fields
|
|
714
|
+
programId
|
|
733
715
|
});
|
|
734
716
|
const reqOpts = listSections(payload);
|
|
735
717
|
sideEffects?.onSiteCall?.();
|
|
@@ -742,24 +724,19 @@ async function listSections2(programId, options) {
|
|
|
742
724
|
err,
|
|
743
725
|
{
|
|
744
726
|
spreadPathsToArguments: {},
|
|
745
|
-
explicitPathsToArguments: {
|
|
746
|
-
programId: "$[0]",
|
|
747
|
-
descriptionFieldSet: "$[1].descriptionFieldSet",
|
|
748
|
-
fields: "$[1].fields"
|
|
749
|
-
},
|
|
727
|
+
explicitPathsToArguments: { programId: "$[0]" },
|
|
750
728
|
singleArgumentUnchanged: false
|
|
751
729
|
},
|
|
752
|
-
["programId"
|
|
730
|
+
["programId"]
|
|
753
731
|
);
|
|
754
732
|
sideEffects?.onError?.(err);
|
|
755
733
|
throw transformedError;
|
|
756
734
|
}
|
|
757
735
|
}
|
|
758
|
-
async function cloneSection2(sectionId
|
|
759
|
-
const { httpClient, sideEffects } = arguments[
|
|
736
|
+
async function cloneSection2(sectionId) {
|
|
737
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
760
738
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
761
|
-
sectionId
|
|
762
|
-
fields: options?.fields
|
|
739
|
+
sectionId
|
|
763
740
|
});
|
|
764
741
|
const reqOpts = cloneSection(payload);
|
|
765
742
|
sideEffects?.onSiteCall?.();
|
|
@@ -772,10 +749,10 @@ async function cloneSection2(sectionId, options) {
|
|
|
772
749
|
err,
|
|
773
750
|
{
|
|
774
751
|
spreadPathsToArguments: {},
|
|
775
|
-
explicitPathsToArguments: { sectionId: "$[0]"
|
|
752
|
+
explicitPathsToArguments: { sectionId: "$[0]" },
|
|
776
753
|
singleArgumentUnchanged: false
|
|
777
754
|
},
|
|
778
|
-
["sectionId"
|
|
755
|
+
["sectionId"]
|
|
779
756
|
);
|
|
780
757
|
sideEffects?.onError?.(err);
|
|
781
758
|
throw transformedError;
|
|
@@ -786,8 +763,7 @@ async function moveSection2(sectionId, options) {
|
|
|
786
763
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
787
764
|
sectionId,
|
|
788
765
|
afterSectionId: options?.afterSectionId,
|
|
789
|
-
revision: options?.revision
|
|
790
|
-
fields: options?.fields
|
|
766
|
+
revision: options?.revision
|
|
791
767
|
});
|
|
792
768
|
const reqOpts = moveSection(payload);
|
|
793
769
|
sideEffects?.onSiteCall?.();
|
|
@@ -803,8 +779,7 @@ async function moveSection2(sectionId, options) {
|
|
|
803
779
|
explicitPathsToArguments: {
|
|
804
780
|
sectionId: "$[0]",
|
|
805
781
|
afterSectionId: "$[1].afterSectionId",
|
|
806
|
-
revision: "$[1].revision"
|
|
807
|
-
fields: "$[1].fields"
|
|
782
|
+
revision: "$[1].revision"
|
|
808
783
|
},
|
|
809
784
|
singleArgumentUnchanged: false
|
|
810
785
|
},
|