@wix/auto_sdk_online-programs_sections 1.0.15 → 1.0.17
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 +6 -16
- package/build/cjs/index.js +2 -153
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -40
- package/build/cjs/index.typings.js +1 -143
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -7
- package/build/cjs/meta.js +0 -109
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -129
- package/build/cjs/schemas.js +23 -212
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +6 -16
- package/build/es/index.mjs +2 -152
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -40
- package/build/es/index.typings.mjs +1 -142
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -7
- package/build/es/meta.mjs +0 -108
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -129
- package/build/es/schemas.mjs +23 -210
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -16
- package/build/internal/cjs/index.js +2 -153
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +114 -39
- package/build/internal/cjs/index.typings.js +1 -143
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +210 -6
- package/build/internal/cjs/meta.js +0 -109
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -129
- package/build/internal/cjs/schemas.js +23 -212
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +6 -16
- package/build/internal/es/index.mjs +2 -152
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +114 -39
- package/build/internal/es/index.typings.mjs +1 -142
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +210 -6
- package/build/internal/es/meta.mjs +0 -108
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -129
- package/build/internal/es/schemas.mjs +23 -210
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -28,7 +28,6 @@ __export(index_exports, {
|
|
|
28
28
|
SortOrder: () => SortOrder,
|
|
29
29
|
State: () => State,
|
|
30
30
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
31
|
-
bulkCreateSection: () => bulkCreateSection4,
|
|
32
31
|
bulkCreateSections: () => bulkCreateSections4,
|
|
33
32
|
cloneSection: () => cloneSection4,
|
|
34
33
|
createSection: () => createSection4,
|
|
@@ -329,95 +328,6 @@ function bulkCreateSections(payload) {
|
|
|
329
328
|
}
|
|
330
329
|
return __bulkCreateSections;
|
|
331
330
|
}
|
|
332
|
-
function bulkCreateSection(payload) {
|
|
333
|
-
function __bulkCreateSection({ host }) {
|
|
334
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
335
|
-
{
|
|
336
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
337
|
-
paths: [
|
|
338
|
-
{ path: "sections.createdDate" },
|
|
339
|
-
{ path: "sections.updatedDate" },
|
|
340
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
341
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
342
|
-
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
343
|
-
{
|
|
344
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
345
|
-
},
|
|
346
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
347
|
-
]
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
351
|
-
paths: [
|
|
352
|
-
{ path: "sections.ordering" },
|
|
353
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
354
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
355
|
-
{
|
|
356
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
360
|
-
},
|
|
361
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
362
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
363
|
-
]
|
|
364
|
-
}
|
|
365
|
-
]);
|
|
366
|
-
const metadata = {
|
|
367
|
-
entityFqdn: "wix.online_programs.v3.section",
|
|
368
|
-
method: "POST",
|
|
369
|
-
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
|
|
370
|
-
packageName: PACKAGE_NAME,
|
|
371
|
-
migrationOptions: {
|
|
372
|
-
optInTransformResponse: true
|
|
373
|
-
},
|
|
374
|
-
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
375
|
-
protoPath: "/v3/bulk/sections/create-deprecated",
|
|
376
|
-
data: serializedData,
|
|
377
|
-
host
|
|
378
|
-
}),
|
|
379
|
-
data: serializedData,
|
|
380
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
381
|
-
{
|
|
382
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
383
|
-
paths: [
|
|
384
|
-
{ path: "results.item.createdDate" },
|
|
385
|
-
{ path: "results.item.updatedDate" },
|
|
386
|
-
{ path: "results.item.description.image.urlExpirationDate" },
|
|
387
|
-
{ path: "results.item.description.video.urlExpirationDate" },
|
|
388
|
-
{
|
|
389
|
-
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
path: "results.item.description.video.posters.urlExpirationDate"
|
|
396
|
-
}
|
|
397
|
-
]
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
401
|
-
paths: [
|
|
402
|
-
{ path: "results.item.ordering" },
|
|
403
|
-
{ path: "results.item.description.image.focalPoint.x" },
|
|
404
|
-
{ path: "results.item.description.image.focalPoint.y" },
|
|
405
|
-
{
|
|
406
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
410
|
-
},
|
|
411
|
-
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
412
|
-
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
413
|
-
]
|
|
414
|
-
}
|
|
415
|
-
])
|
|
416
|
-
};
|
|
417
|
-
return metadata;
|
|
418
|
-
}
|
|
419
|
-
return __bulkCreateSection;
|
|
420
|
-
}
|
|
421
331
|
function getSection(payload) {
|
|
422
332
|
function __getSection({ host }) {
|
|
423
333
|
const metadata = {
|
|
@@ -1020,55 +930,6 @@ async function bulkCreateSections2(sections, options) {
|
|
|
1020
930
|
throw transformedError;
|
|
1021
931
|
}
|
|
1022
932
|
}
|
|
1023
|
-
async function bulkCreateSection2(sections, options) {
|
|
1024
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1025
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1026
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1027
|
-
sections,
|
|
1028
|
-
fields: options?.fields
|
|
1029
|
-
}),
|
|
1030
|
-
[
|
|
1031
|
-
{
|
|
1032
|
-
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1033
|
-
paths: [{ path: "sections.description.image" }]
|
|
1034
|
-
},
|
|
1035
|
-
{
|
|
1036
|
-
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
1037
|
-
paths: [{ path: "sections.description.video" }]
|
|
1038
|
-
}
|
|
1039
|
-
]
|
|
1040
|
-
);
|
|
1041
|
-
const reqOpts = bulkCreateSection(payload);
|
|
1042
|
-
sideEffects?.onSiteCall?.();
|
|
1043
|
-
try {
|
|
1044
|
-
const result = await httpClient.request(reqOpts);
|
|
1045
|
-
sideEffects?.onSuccess?.(result);
|
|
1046
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1047
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1048
|
-
{
|
|
1049
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1050
|
-
paths: [{ path: "results.item.description.image" }]
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1054
|
-
paths: [{ path: "results.item.description.video" }]
|
|
1055
|
-
}
|
|
1056
|
-
])
|
|
1057
|
-
);
|
|
1058
|
-
} catch (err) {
|
|
1059
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1060
|
-
err,
|
|
1061
|
-
{
|
|
1062
|
-
spreadPathsToArguments: {},
|
|
1063
|
-
explicitPathsToArguments: { sections: "$[0]", fields: "$[1].fields" },
|
|
1064
|
-
singleArgumentUnchanged: false
|
|
1065
|
-
},
|
|
1066
|
-
["sections", "options"]
|
|
1067
|
-
);
|
|
1068
|
-
sideEffects?.onError?.(err);
|
|
1069
|
-
throw transformedError;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
933
|
async function getSection2(sectionId, options) {
|
|
1073
934
|
const { httpClient, sideEffects } = arguments[2];
|
|
1074
935
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1280,9 +1141,7 @@ async function typedQuerySections(query, options) {
|
|
|
1280
1141
|
}
|
|
1281
1142
|
}
|
|
1282
1143
|
var utils = {
|
|
1283
|
-
query:
|
|
1284
|
-
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1285
|
-
}
|
|
1144
|
+
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
1286
1145
|
};
|
|
1287
1146
|
async function listSections2(programId, options) {
|
|
1288
1147
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -1467,14 +1326,6 @@ function bulkCreateSections3(httpClient) {
|
|
|
1467
1326
|
{ httpClient }
|
|
1468
1327
|
);
|
|
1469
1328
|
}
|
|
1470
|
-
function bulkCreateSection3(httpClient) {
|
|
1471
|
-
return (sections, options) => bulkCreateSection2(
|
|
1472
|
-
sections,
|
|
1473
|
-
options,
|
|
1474
|
-
// @ts-ignore
|
|
1475
|
-
{ httpClient }
|
|
1476
|
-
);
|
|
1477
|
-
}
|
|
1478
1329
|
function getSection3(httpClient) {
|
|
1479
1330
|
return (sectionId, options) => getSection2(
|
|
1480
1331
|
sectionId,
|
|
@@ -1548,7 +1399,7 @@ function publishSection3(httpClient) {
|
|
|
1548
1399
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1549
1400
|
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1550
1401
|
function customQuerySections(httpClient) {
|
|
1551
|
-
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1402
|
+
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1552
1403
|
builderQueryFunction: (options) => querySections3(httpClient)(options),
|
|
1553
1404
|
typedQueryFunction: (query, options) => typedQuerySections2(httpClient)(query, options),
|
|
1554
1405
|
hasOptionsParameter: true
|
|
@@ -1560,7 +1411,6 @@ function customQuerySections(httpClient) {
|
|
|
1560
1411
|
}
|
|
1561
1412
|
var createSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSection3);
|
|
1562
1413
|
var bulkCreateSections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSections3);
|
|
1563
|
-
var bulkCreateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateSection3);
|
|
1564
1414
|
var getSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSection3);
|
|
1565
1415
|
var updateSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSection3);
|
|
1566
1416
|
var deleteSection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSection3);
|
|
@@ -1579,7 +1429,6 @@ var querySections4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
1579
1429
|
SortOrder,
|
|
1580
1430
|
State,
|
|
1581
1431
|
WebhookIdentityType,
|
|
1582
|
-
bulkCreateSection,
|
|
1583
1432
|
bulkCreateSections,
|
|
1584
1433
|
cloneSection,
|
|
1585
1434
|
createSection,
|