@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
package/build/es/index.mjs
CHANGED
|
@@ -287,95 +287,6 @@ function bulkCreateSections(payload) {
|
|
|
287
287
|
}
|
|
288
288
|
return __bulkCreateSections;
|
|
289
289
|
}
|
|
290
|
-
function bulkCreateSection(payload) {
|
|
291
|
-
function __bulkCreateSection({ host }) {
|
|
292
|
-
const serializedData = transformPaths(payload, [
|
|
293
|
-
{
|
|
294
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
295
|
-
paths: [
|
|
296
|
-
{ path: "sections.createdDate" },
|
|
297
|
-
{ path: "sections.updatedDate" },
|
|
298
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
299
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
300
|
-
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
301
|
-
{
|
|
302
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
303
|
-
},
|
|
304
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
305
|
-
]
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
309
|
-
paths: [
|
|
310
|
-
{ path: "sections.ordering" },
|
|
311
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
312
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
313
|
-
{
|
|
314
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
318
|
-
},
|
|
319
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
320
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
321
|
-
]
|
|
322
|
-
}
|
|
323
|
-
]);
|
|
324
|
-
const metadata = {
|
|
325
|
-
entityFqdn: "wix.online_programs.v3.section",
|
|
326
|
-
method: "POST",
|
|
327
|
-
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
|
|
328
|
-
packageName: PACKAGE_NAME,
|
|
329
|
-
migrationOptions: {
|
|
330
|
-
optInTransformResponse: true
|
|
331
|
-
},
|
|
332
|
-
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
333
|
-
protoPath: "/v3/bulk/sections/create-deprecated",
|
|
334
|
-
data: serializedData,
|
|
335
|
-
host
|
|
336
|
-
}),
|
|
337
|
-
data: serializedData,
|
|
338
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
339
|
-
{
|
|
340
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
341
|
-
paths: [
|
|
342
|
-
{ path: "results.item.createdDate" },
|
|
343
|
-
{ path: "results.item.updatedDate" },
|
|
344
|
-
{ path: "results.item.description.image.urlExpirationDate" },
|
|
345
|
-
{ path: "results.item.description.video.urlExpirationDate" },
|
|
346
|
-
{
|
|
347
|
-
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
path: "results.item.description.video.posters.urlExpirationDate"
|
|
354
|
-
}
|
|
355
|
-
]
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
359
|
-
paths: [
|
|
360
|
-
{ path: "results.item.ordering" },
|
|
361
|
-
{ path: "results.item.description.image.focalPoint.x" },
|
|
362
|
-
{ path: "results.item.description.image.focalPoint.y" },
|
|
363
|
-
{
|
|
364
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
368
|
-
},
|
|
369
|
-
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
370
|
-
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
371
|
-
]
|
|
372
|
-
}
|
|
373
|
-
])
|
|
374
|
-
};
|
|
375
|
-
return metadata;
|
|
376
|
-
}
|
|
377
|
-
return __bulkCreateSection;
|
|
378
|
-
}
|
|
379
290
|
function getSection(payload) {
|
|
380
291
|
function __getSection({ host }) {
|
|
381
292
|
const metadata = {
|
|
@@ -978,55 +889,6 @@ async function bulkCreateSections2(sections, options) {
|
|
|
978
889
|
throw transformedError;
|
|
979
890
|
}
|
|
980
891
|
}
|
|
981
|
-
async function bulkCreateSection2(sections, options) {
|
|
982
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
983
|
-
const payload = transformPaths2(
|
|
984
|
-
renameKeysFromSDKRequestToRESTRequest({
|
|
985
|
-
sections,
|
|
986
|
-
fields: options?.fields
|
|
987
|
-
}),
|
|
988
|
-
[
|
|
989
|
-
{
|
|
990
|
-
transformFn: transformSDKImageToRESTImage,
|
|
991
|
-
paths: [{ path: "sections.description.image" }]
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
995
|
-
paths: [{ path: "sections.description.video" }]
|
|
996
|
-
}
|
|
997
|
-
]
|
|
998
|
-
);
|
|
999
|
-
const reqOpts = bulkCreateSection(payload);
|
|
1000
|
-
sideEffects?.onSiteCall?.();
|
|
1001
|
-
try {
|
|
1002
|
-
const result = await httpClient.request(reqOpts);
|
|
1003
|
-
sideEffects?.onSuccess?.(result);
|
|
1004
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1005
|
-
transformPaths2(result.data, [
|
|
1006
|
-
{
|
|
1007
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1008
|
-
paths: [{ path: "results.item.description.image" }]
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1012
|
-
paths: [{ path: "results.item.description.video" }]
|
|
1013
|
-
}
|
|
1014
|
-
])
|
|
1015
|
-
);
|
|
1016
|
-
} catch (err) {
|
|
1017
|
-
const transformedError = sdkTransformError(
|
|
1018
|
-
err,
|
|
1019
|
-
{
|
|
1020
|
-
spreadPathsToArguments: {},
|
|
1021
|
-
explicitPathsToArguments: { sections: "$[0]", fields: "$[1].fields" },
|
|
1022
|
-
singleArgumentUnchanged: false
|
|
1023
|
-
},
|
|
1024
|
-
["sections", "options"]
|
|
1025
|
-
);
|
|
1026
|
-
sideEffects?.onError?.(err);
|
|
1027
|
-
throw transformedError;
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
892
|
async function getSection2(sectionId, options) {
|
|
1031
893
|
const { httpClient, sideEffects } = arguments[2];
|
|
1032
894
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1238,9 +1100,7 @@ async function typedQuerySections(query, options) {
|
|
|
1238
1100
|
}
|
|
1239
1101
|
}
|
|
1240
1102
|
var utils = {
|
|
1241
|
-
query:
|
|
1242
|
-
...createQueryUtils()
|
|
1243
|
-
}
|
|
1103
|
+
query: /* @__PURE__ */ createQueryUtils()
|
|
1244
1104
|
};
|
|
1245
1105
|
async function listSections2(programId, options) {
|
|
1246
1106
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -1425,14 +1285,6 @@ function bulkCreateSections3(httpClient) {
|
|
|
1425
1285
|
{ httpClient }
|
|
1426
1286
|
);
|
|
1427
1287
|
}
|
|
1428
|
-
function bulkCreateSection3(httpClient) {
|
|
1429
|
-
return (sections, options) => bulkCreateSection2(
|
|
1430
|
-
sections,
|
|
1431
|
-
options,
|
|
1432
|
-
// @ts-ignore
|
|
1433
|
-
{ httpClient }
|
|
1434
|
-
);
|
|
1435
|
-
}
|
|
1436
1288
|
function getSection3(httpClient) {
|
|
1437
1289
|
return (sectionId, options) => getSection2(
|
|
1438
1290
|
sectionId,
|
|
@@ -1506,7 +1358,7 @@ function publishSection3(httpClient) {
|
|
|
1506
1358
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1507
1359
|
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
1508
1360
|
function customQuerySections(httpClient) {
|
|
1509
|
-
const router = createQueryOverloadRouter({
|
|
1361
|
+
const router = /* @__PURE__ */ createQueryOverloadRouter({
|
|
1510
1362
|
builderQueryFunction: (options) => querySections3(httpClient)(options),
|
|
1511
1363
|
typedQueryFunction: (query, options) => typedQuerySections2(httpClient)(query, options),
|
|
1512
1364
|
hasOptionsParameter: true
|
|
@@ -1518,7 +1370,6 @@ function customQuerySections(httpClient) {
|
|
|
1518
1370
|
}
|
|
1519
1371
|
var createSection4 = /* @__PURE__ */ createRESTModule(createSection3);
|
|
1520
1372
|
var bulkCreateSections4 = /* @__PURE__ */ createRESTModule(bulkCreateSections3);
|
|
1521
|
-
var bulkCreateSection4 = /* @__PURE__ */ createRESTModule(bulkCreateSection3);
|
|
1522
1373
|
var getSection4 = /* @__PURE__ */ createRESTModule(getSection3);
|
|
1523
1374
|
var updateSection4 = /* @__PURE__ */ createRESTModule(updateSection3);
|
|
1524
1375
|
var deleteSection4 = /* @__PURE__ */ createRESTModule(deleteSection3);
|
|
@@ -1536,7 +1387,6 @@ export {
|
|
|
1536
1387
|
SortOrder,
|
|
1537
1388
|
State,
|
|
1538
1389
|
WebhookIdentityType,
|
|
1539
|
-
bulkCreateSection4 as bulkCreateSection,
|
|
1540
1390
|
bulkCreateSections4 as bulkCreateSections,
|
|
1541
1391
|
cloneSection4 as cloneSection,
|
|
1542
1392
|
createSection4 as createSection,
|