@wix/auto_sdk_online-programs_sections 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +18 -6
- package/build/cjs/index.js +161 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +62 -4
- package/build/cjs/index.typings.js +152 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +35 -4
- package/build/cjs/meta.js +122 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +101 -1
- package/build/cjs/schemas.js +148 -1
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +18 -6
- package/build/es/index.mjs +160 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +62 -4
- package/build/es/index.typings.mjs +151 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +35 -4
- package/build/es/meta.mjs +121 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +101 -1
- package/build/es/schemas.mjs +146 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -6
- package/build/internal/cjs/index.js +161 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +62 -4
- package/build/internal/cjs/index.typings.js +152 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +35 -4
- package/build/internal/cjs/meta.js +122 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +101 -1
- package/build/internal/cjs/schemas.js +148 -1
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -6
- package/build/internal/es/index.mjs +160 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +62 -4
- package/build/internal/es/index.typings.mjs +151 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +35 -4
- package/build/internal/es/meta.mjs +121 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +101 -1
- package/build/internal/es/schemas.mjs +146 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Section, CreateSectionOptions, BulkCreateSectionOptions, BulkCreateSectionResponse, GetSectionOptions, UpdateSectionOptions, ListSectionsOptions, ListSectionsResponse, CloneSectionOptions, CloneSectionResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, SectionQuery, QuerySectionsOptions, typedQuerySections, SectionsQueryBuilder } from './index.typings.mjs';
|
|
3
|
-
export { AccountInfo, ActionEvent, ApplicationError, BulkActionMetadata, BulkActionType, BulkActionTypeWithLiterals, BulkCloneSectionRequest, BulkCloneSectionResponse, BulkCreateSectionMigrationRequest, BulkCreateSectionMigrationResponse, BulkCreateSectionRequest, BulkSectionResult, CloneSectionRequest, CommonQueryWithEntityContext, CreateSectionRequest, CreateSectionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteAllProgramSectionsRequest, DeleteAllProgramSectionsResponse, DeleteByFilterOperation, DeleteByIdsOperation, DeleteSectionRequest, DeleteSectionResponse, Description, DescriptionFieldSet, DescriptionFieldSetWithLiterals, DescriptionMediaOneOf, DocumentImage, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EnumWithLiterals, ExtendedFields, FocalPoint, GetSectionRequest, GetSectionResponse, IdentificationData, IdentificationDataIdOneOf, IndexDocument, ItemMetadata, ListSectionsRequest, MessageEnvelope, MoveSectionRequest, PublishSectionRequest, QuerySectionsRequest, QuerySectionsResponse, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, RestoreSectionFromTrashRequest, RestoreSectionFromTrashResponse, SearchIndexingNotification, SearchIndexingNotificationState, SearchIndexingNotificationStateWithLiterals, SectionCloned, SectionDeleted, SectionMoved, SectionPublished, SectionQuerySpec, SectionUpdated, SectionsQueryResult, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateSectionRequest, UpdateSectionResponse, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
|
|
2
|
+
import { Section, CreateSectionOptions, BulkCreateSectionsOptions, BulkCreateSectionsResponse, BulkCreateSectionOptions, BulkCreateSectionResponse, GetSectionOptions, UpdateSectionOptions, ListSectionsOptions, ListSectionsResponse, CloneSectionOptions, CloneSectionResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, SectionQuery, QuerySectionsOptions, typedQuerySections, SectionsQueryBuilder } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, ActionEvent, AddressLocation, ApplicationError, BulkActionMetadata, BulkActionType, BulkActionTypeWithLiterals, BulkCloneSectionRequest, BulkCloneSectionResponse, BulkCreateSectionMigrationRequest, BulkCreateSectionMigrationResponse, BulkCreateSectionRequest, BulkCreateSectionsRequest, BulkSectionResult, CloneSectionRequest, CommonQueryWithEntityContext, CreateSectionRequest, CreateSectionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteAllProgramSectionsRequest, DeleteAllProgramSectionsResponse, DeleteByFilterOperation, DeleteByIdsOperation, DeleteSectionRequest, DeleteSectionResponse, Description, DescriptionFieldSet, DescriptionFieldSetWithLiterals, DescriptionMediaOneOf, DocumentImage, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EnumWithLiterals, ExtendedFields, FocalPoint, GetSectionRequest, GetSectionResponse, IdentificationData, IdentificationDataIdOneOf, IndexDocument, ItemMetadata, ListSectionsRequest, MessageEnvelope, MoveSectionRequest, PublishSectionRequest, QuerySectionsRequest, QuerySectionsResponse, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, RestoreSectionFromTrashRequest, RestoreSectionFromTrashResponse, SearchIndexingNotification, SearchIndexingNotificationState, SearchIndexingNotificationStateWithLiterals, SectionCloned, SectionDeleted, SectionMoved, SectionPublished, SectionQuerySpec, SectionUpdated, SectionsQueryResult, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateSectionRequest, UpdateSectionResponse, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createSection$1(httpClient: HttpClient): CreateSectionSignature;
|
|
6
6
|
interface CreateSectionSignature {
|
|
@@ -9,14 +9,14 @@ interface CreateSectionSignature {
|
|
|
9
9
|
*
|
|
10
10
|
* The section is added to the program identified by `section.program_id`. Provide that program ID in the request. Set `section.description.title` for the section title. `section.description.details`, `section.description.image`, and `section.description.video` are deprecated backward-compatibility fields. The stored ordering value is assigned automatically.
|
|
11
11
|
*
|
|
12
|
-
* To create multiple sections in a single API call, call [Bulk Create
|
|
12
|
+
* To create multiple sections in a single API call, call [Bulk Create Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/bulk-create-sections).
|
|
13
13
|
* @param - Section to create. Must include `section.program_id`.
|
|
14
14
|
* @returns Created section.
|
|
15
15
|
*/
|
|
16
16
|
(section: Section, options?: CreateSectionOptions): Promise<NonNullablePaths<Section, `programId` | `description.title` | `state` | `oldTotalSteps` | `trialSection` | `ordering` | `delayInDays`, 3>>;
|
|
17
17
|
}
|
|
18
|
-
declare function
|
|
19
|
-
interface
|
|
18
|
+
declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature;
|
|
19
|
+
interface BulkCreateSectionsSignature {
|
|
20
20
|
/**
|
|
21
21
|
* Creates up to 100 sections in a single API call.
|
|
22
22
|
*
|
|
@@ -25,6 +25,17 @@ interface BulkCreateSectionSignature {
|
|
|
25
25
|
* To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
|
|
26
26
|
* @param - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
27
27
|
*/
|
|
28
|
+
(sections: Section[], options?: BulkCreateSectionsOptions): Promise<NonNullablePaths<BulkCreateSectionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.programId` | `results.${number}.item.description.title` | `results.${number}.item.state` | `results.${number}.item.oldTotalSteps` | `results.${number}.item.trialSection` | `results.${number}.item.ordering` | `results.${number}.item.delayInDays` | `results.${number}.action` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
29
|
+
}
|
|
30
|
+
declare function bulkCreateSection$1(httpClient: HttpClient): BulkCreateSectionSignature;
|
|
31
|
+
interface BulkCreateSectionSignature {
|
|
32
|
+
/**
|
|
33
|
+
* Deprecated. Use [Bulk Create Sections](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/bulk-create-sections).
|
|
34
|
+
*
|
|
35
|
+
* To create a single section, call [Create Section](https://dev.wix.com/docs/api-reference/business-management/online-programs/sections/create-section).
|
|
36
|
+
* @param - List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
28
39
|
(sections: Section[], options?: BulkCreateSectionOptions): Promise<NonNullablePaths<BulkCreateSectionResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.programId` | `results.${number}.item.description.title` | `results.${number}.item.state` | `results.${number}.item.oldTotalSteps` | `results.${number}.item.trialSection` | `results.${number}.item.ordering` | `results.${number}.item.delayInDays` | `results.${number}.action` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
29
40
|
}
|
|
30
41
|
declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
|
|
@@ -109,6 +120,7 @@ declare function customQuerySections(httpClient: HttpClient): {
|
|
|
109
120
|
(options?: QuerySectionsOptions): SectionsQueryBuilder;
|
|
110
121
|
};
|
|
111
122
|
declare const createSection: MaybeContext<BuildRESTFunction<typeof createSection$1> & typeof createSection$1>;
|
|
123
|
+
declare const bulkCreateSections: MaybeContext<BuildRESTFunction<typeof bulkCreateSections$1> & typeof bulkCreateSections$1>;
|
|
112
124
|
declare const bulkCreateSection: MaybeContext<BuildRESTFunction<typeof bulkCreateSection$1> & typeof bulkCreateSection$1>;
|
|
113
125
|
declare const getSection: MaybeContext<BuildRESTFunction<typeof getSection$1> & typeof getSection$1>;
|
|
114
126
|
declare const updateSection: MaybeContext<BuildRESTFunction<typeof updateSection$1> & typeof updateSection$1>;
|
|
@@ -119,4 +131,4 @@ declare const moveSection: MaybeContext<BuildRESTFunction<typeof moveSection$1>
|
|
|
119
131
|
declare const publishSection: MaybeContext<BuildRESTFunction<typeof publishSection$1> & typeof publishSection$1>;
|
|
120
132
|
declare const querySections: MaybeContext<BuildRESTFunction<typeof customQuerySections> & typeof customQuerySections>;
|
|
121
133
|
|
|
122
|
-
export { BulkCreateSectionOptions, BulkCreateSectionResponse, CloneSectionOptions, CloneSectionResponse, CreateSectionOptions, GetSectionOptions, ListSectionsOptions, ListSectionsResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, QuerySectionsOptions, Section, SectionQuery, SectionsQueryBuilder, UpdateSectionOptions, bulkCreateSection, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
|
|
134
|
+
export { BulkCreateSectionOptions, BulkCreateSectionResponse, BulkCreateSectionsOptions, BulkCreateSectionsResponse, CloneSectionOptions, CloneSectionResponse, CreateSectionOptions, GetSectionOptions, ListSectionsOptions, ListSectionsResponse, MoveSectionOptions, MoveSectionResponse, PublishSectionOptions, PublishSectionResponse, QuerySectionsOptions, Section, SectionQuery, SectionsQueryBuilder, UpdateSectionOptions, bulkCreateSection, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
|
|
@@ -198,6 +198,95 @@ function createSection(payload) {
|
|
|
198
198
|
}
|
|
199
199
|
return __createSection;
|
|
200
200
|
}
|
|
201
|
+
function bulkCreateSections(payload) {
|
|
202
|
+
function __bulkCreateSections({ host }) {
|
|
203
|
+
const serializedData = transformPaths(payload, [
|
|
204
|
+
{
|
|
205
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
206
|
+
paths: [
|
|
207
|
+
{ path: "sections.createdDate" },
|
|
208
|
+
{ path: "sections.updatedDate" },
|
|
209
|
+
{ path: "sections.description.image.urlExpirationDate" },
|
|
210
|
+
{ path: "sections.description.video.urlExpirationDate" },
|
|
211
|
+
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
212
|
+
{
|
|
213
|
+
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
214
|
+
},
|
|
215
|
+
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
220
|
+
paths: [
|
|
221
|
+
{ path: "sections.ordering" },
|
|
222
|
+
{ path: "sections.description.image.focalPoint.x" },
|
|
223
|
+
{ path: "sections.description.image.focalPoint.y" },
|
|
224
|
+
{
|
|
225
|
+
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
229
|
+
},
|
|
230
|
+
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
231
|
+
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
]);
|
|
235
|
+
const metadata = {
|
|
236
|
+
entityFqdn: "wix.online_programs.v3.section",
|
|
237
|
+
method: "POST",
|
|
238
|
+
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections",
|
|
239
|
+
packageName: PACKAGE_NAME,
|
|
240
|
+
migrationOptions: {
|
|
241
|
+
optInTransformResponse: true
|
|
242
|
+
},
|
|
243
|
+
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
244
|
+
protoPath: "/v3/bulk/sections/create",
|
|
245
|
+
data: serializedData,
|
|
246
|
+
host
|
|
247
|
+
}),
|
|
248
|
+
data: serializedData,
|
|
249
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
250
|
+
{
|
|
251
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
252
|
+
paths: [
|
|
253
|
+
{ path: "results.item.createdDate" },
|
|
254
|
+
{ path: "results.item.updatedDate" },
|
|
255
|
+
{ path: "results.item.description.image.urlExpirationDate" },
|
|
256
|
+
{ path: "results.item.description.video.urlExpirationDate" },
|
|
257
|
+
{
|
|
258
|
+
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
path: "results.item.description.video.posters.urlExpirationDate"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
270
|
+
paths: [
|
|
271
|
+
{ path: "results.item.ordering" },
|
|
272
|
+
{ path: "results.item.description.image.focalPoint.x" },
|
|
273
|
+
{ path: "results.item.description.image.focalPoint.y" },
|
|
274
|
+
{
|
|
275
|
+
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
279
|
+
},
|
|
280
|
+
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
281
|
+
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
])
|
|
285
|
+
};
|
|
286
|
+
return metadata;
|
|
287
|
+
}
|
|
288
|
+
return __bulkCreateSections;
|
|
289
|
+
}
|
|
201
290
|
function bulkCreateSection(payload) {
|
|
202
291
|
function __bulkCreateSection({ host }) {
|
|
203
292
|
const serializedData = transformPaths(payload, [
|
|
@@ -241,7 +330,7 @@ function bulkCreateSection(payload) {
|
|
|
241
330
|
optInTransformResponse: true
|
|
242
331
|
},
|
|
243
332
|
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
244
|
-
protoPath: "/v3/bulk/sections/create",
|
|
333
|
+
protoPath: "/v3/bulk/sections/create-deprecated",
|
|
245
334
|
data: serializedData,
|
|
246
335
|
host
|
|
247
336
|
}),
|
|
@@ -452,6 +541,15 @@ function deleteSection(payload) {
|
|
|
452
541
|
}
|
|
453
542
|
function querySections(payload) {
|
|
454
543
|
function __querySections({ host }) {
|
|
544
|
+
const serializedData = transformPaths(payload, [
|
|
545
|
+
{
|
|
546
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
547
|
+
paths: [
|
|
548
|
+
{ path: "query.sort.origin.latitude" },
|
|
549
|
+
{ path: "query.sort.origin.longitude" }
|
|
550
|
+
]
|
|
551
|
+
}
|
|
552
|
+
]);
|
|
455
553
|
const metadata = {
|
|
456
554
|
entityFqdn: "wix.online_programs.v3.section",
|
|
457
555
|
method: "POST",
|
|
@@ -462,10 +560,10 @@ function querySections(payload) {
|
|
|
462
560
|
},
|
|
463
561
|
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
464
562
|
protoPath: "/v3/sections/query",
|
|
465
|
-
data:
|
|
563
|
+
data: serializedData,
|
|
466
564
|
host
|
|
467
565
|
}),
|
|
468
|
-
data:
|
|
566
|
+
data: serializedData,
|
|
469
567
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
470
568
|
{
|
|
471
569
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -831,6 +929,55 @@ async function createSection2(section, options) {
|
|
|
831
929
|
throw transformedError;
|
|
832
930
|
}
|
|
833
931
|
}
|
|
932
|
+
async function bulkCreateSections2(sections, options) {
|
|
933
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
934
|
+
const payload = transformPaths2(
|
|
935
|
+
renameKeysFromSDKRequestToRESTRequest({
|
|
936
|
+
sections,
|
|
937
|
+
fields: options?.fields
|
|
938
|
+
}),
|
|
939
|
+
[
|
|
940
|
+
{
|
|
941
|
+
transformFn: transformSDKImageToRESTImage,
|
|
942
|
+
paths: [{ path: "sections.description.image" }]
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
946
|
+
paths: [{ path: "sections.description.video" }]
|
|
947
|
+
}
|
|
948
|
+
]
|
|
949
|
+
);
|
|
950
|
+
const reqOpts = bulkCreateSections(payload);
|
|
951
|
+
sideEffects?.onSiteCall?.();
|
|
952
|
+
try {
|
|
953
|
+
const result = await httpClient.request(reqOpts);
|
|
954
|
+
sideEffects?.onSuccess?.(result);
|
|
955
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
956
|
+
transformPaths2(result.data, [
|
|
957
|
+
{
|
|
958
|
+
transformFn: transformRESTImageToSDKImage,
|
|
959
|
+
paths: [{ path: "results.item.description.image" }]
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
963
|
+
paths: [{ path: "results.item.description.video" }]
|
|
964
|
+
}
|
|
965
|
+
])
|
|
966
|
+
);
|
|
967
|
+
} catch (err) {
|
|
968
|
+
const transformedError = sdkTransformError(
|
|
969
|
+
err,
|
|
970
|
+
{
|
|
971
|
+
spreadPathsToArguments: {},
|
|
972
|
+
explicitPathsToArguments: { sections: "$[0]", fields: "$[1].fields" },
|
|
973
|
+
singleArgumentUnchanged: false
|
|
974
|
+
},
|
|
975
|
+
["sections", "options"]
|
|
976
|
+
);
|
|
977
|
+
sideEffects?.onError?.(err);
|
|
978
|
+
throw transformedError;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
834
981
|
async function bulkCreateSection2(sections, options) {
|
|
835
982
|
const { httpClient, sideEffects } = arguments[2];
|
|
836
983
|
const payload = transformPaths2(
|
|
@@ -1270,6 +1417,14 @@ function createSection3(httpClient) {
|
|
|
1270
1417
|
{ httpClient }
|
|
1271
1418
|
);
|
|
1272
1419
|
}
|
|
1420
|
+
function bulkCreateSections3(httpClient) {
|
|
1421
|
+
return (sections, options) => bulkCreateSections2(
|
|
1422
|
+
sections,
|
|
1423
|
+
options,
|
|
1424
|
+
// @ts-ignore
|
|
1425
|
+
{ httpClient }
|
|
1426
|
+
);
|
|
1427
|
+
}
|
|
1273
1428
|
function bulkCreateSection3(httpClient) {
|
|
1274
1429
|
return (sections, options) => bulkCreateSection2(
|
|
1275
1430
|
sections,
|
|
@@ -1362,6 +1517,7 @@ function customQuerySections(httpClient) {
|
|
|
1362
1517
|
return overloadedQuery;
|
|
1363
1518
|
}
|
|
1364
1519
|
var createSection4 = /* @__PURE__ */ createRESTModule(createSection3);
|
|
1520
|
+
var bulkCreateSections4 = /* @__PURE__ */ createRESTModule(bulkCreateSections3);
|
|
1365
1521
|
var bulkCreateSection4 = /* @__PURE__ */ createRESTModule(bulkCreateSection3);
|
|
1366
1522
|
var getSection4 = /* @__PURE__ */ createRESTModule(getSection3);
|
|
1367
1523
|
var updateSection4 = /* @__PURE__ */ createRESTModule(updateSection3);
|
|
@@ -1381,6 +1537,7 @@ export {
|
|
|
1381
1537
|
State,
|
|
1382
1538
|
WebhookIdentityType,
|
|
1383
1539
|
bulkCreateSection4 as bulkCreateSection,
|
|
1540
|
+
bulkCreateSections4 as bulkCreateSections,
|
|
1384
1541
|
cloneSection4 as cloneSection,
|
|
1385
1542
|
createSection4 as createSection,
|
|
1386
1543
|
deleteSection4 as deleteSection,
|