@wix/auto_sdk_online-programs_sections 1.0.13 → 1.0.14
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 +49 -31
- package/build/cjs/index.js +8 -145
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +164 -122
- package/build/cjs/index.typings.js +8 -137
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +84 -70
- package/build/cjs/meta.js +8 -109
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -92
- package/build/cjs/schemas.js +270 -294
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +49 -31
- package/build/es/index.mjs +8 -144
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +164 -122
- package/build/es/index.typings.mjs +8 -136
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +84 -70
- package/build/es/meta.mjs +8 -108
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -92
- package/build/es/schemas.mjs +270 -292
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +49 -31
- package/build/internal/cjs/index.js +8 -145
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +164 -122
- package/build/internal/cjs/index.typings.js +8 -137
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +84 -70
- package/build/internal/cjs/meta.js +8 -109
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -92
- package/build/internal/cjs/schemas.js +270 -294
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +49 -31
- package/build/internal/es/index.mjs +8 -144
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +164 -122
- package/build/internal/es/index.typings.mjs +8 -136
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +84 -70
- package/build/internal/es/meta.mjs +8 -108
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -92
- package/build/internal/es/schemas.mjs +270 -292
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -101,6 +101,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
|
|
|
101
101
|
{
|
|
102
102
|
srcPath: "/program-sections-service",
|
|
103
103
|
destPath: ""
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
srcPath: "/online-programs/v3/sections",
|
|
107
|
+
destPath: "/v3/sections"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
srcPath: "/online-programs/v3/bulk/sections",
|
|
111
|
+
destPath: "/v3/bulk/sections"
|
|
104
112
|
}
|
|
105
113
|
]
|
|
106
114
|
};
|
|
@@ -279,95 +287,6 @@ function bulkCreateSection(payload) {
|
|
|
279
287
|
}
|
|
280
288
|
return __bulkCreateSection;
|
|
281
289
|
}
|
|
282
|
-
function bulkCreateSectionMigration(payload) {
|
|
283
|
-
function __bulkCreateSectionMigration({ host }) {
|
|
284
|
-
const serializedData = transformPaths(payload, [
|
|
285
|
-
{
|
|
286
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
287
|
-
paths: [
|
|
288
|
-
{ path: "sections.createdDate" },
|
|
289
|
-
{ path: "sections.updatedDate" },
|
|
290
|
-
{ path: "sections.description.image.urlExpirationDate" },
|
|
291
|
-
{ path: "sections.description.video.urlExpirationDate" },
|
|
292
|
-
{ path: "sections.description.video.resolutions.urlExpirationDate" },
|
|
293
|
-
{
|
|
294
|
-
path: "sections.description.video.resolutions.poster.urlExpirationDate"
|
|
295
|
-
},
|
|
296
|
-
{ path: "sections.description.video.posters.urlExpirationDate" }
|
|
297
|
-
]
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
301
|
-
paths: [
|
|
302
|
-
{ path: "sections.ordering" },
|
|
303
|
-
{ path: "sections.description.image.focalPoint.x" },
|
|
304
|
-
{ path: "sections.description.image.focalPoint.y" },
|
|
305
|
-
{
|
|
306
|
-
path: "sections.description.video.resolutions.poster.focalPoint.x"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
path: "sections.description.video.resolutions.poster.focalPoint.y"
|
|
310
|
-
},
|
|
311
|
-
{ path: "sections.description.video.posters.focalPoint.x" },
|
|
312
|
-
{ path: "sections.description.video.posters.focalPoint.y" }
|
|
313
|
-
]
|
|
314
|
-
}
|
|
315
|
-
]);
|
|
316
|
-
const metadata = {
|
|
317
|
-
entityFqdn: "wix.online_programs.v3.section",
|
|
318
|
-
method: "POST",
|
|
319
|
-
methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
|
|
320
|
-
packageName: PACKAGE_NAME,
|
|
321
|
-
migrationOptions: {
|
|
322
|
-
optInTransformResponse: true
|
|
323
|
-
},
|
|
324
|
-
url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
|
|
325
|
-
protoPath: "/v3/bulk/sections/create/migration",
|
|
326
|
-
data: serializedData,
|
|
327
|
-
host
|
|
328
|
-
}),
|
|
329
|
-
data: serializedData,
|
|
330
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
331
|
-
{
|
|
332
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
333
|
-
paths: [
|
|
334
|
-
{ path: "results.item.createdDate" },
|
|
335
|
-
{ path: "results.item.updatedDate" },
|
|
336
|
-
{ path: "results.item.description.image.urlExpirationDate" },
|
|
337
|
-
{ path: "results.item.description.video.urlExpirationDate" },
|
|
338
|
-
{
|
|
339
|
-
path: "results.item.description.video.resolutions.urlExpirationDate"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
path: "results.item.description.video.resolutions.poster.urlExpirationDate"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
path: "results.item.description.video.posters.urlExpirationDate"
|
|
346
|
-
}
|
|
347
|
-
]
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
351
|
-
paths: [
|
|
352
|
-
{ path: "results.item.ordering" },
|
|
353
|
-
{ path: "results.item.description.image.focalPoint.x" },
|
|
354
|
-
{ path: "results.item.description.image.focalPoint.y" },
|
|
355
|
-
{
|
|
356
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.x"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
path: "results.item.description.video.resolutions.poster.focalPoint.y"
|
|
360
|
-
},
|
|
361
|
-
{ path: "results.item.description.video.posters.focalPoint.x" },
|
|
362
|
-
{ path: "results.item.description.video.posters.focalPoint.y" }
|
|
363
|
-
]
|
|
364
|
-
}
|
|
365
|
-
])
|
|
366
|
-
};
|
|
367
|
-
return metadata;
|
|
368
|
-
}
|
|
369
|
-
return __bulkCreateSectionMigration;
|
|
370
|
-
}
|
|
371
290
|
function getSection(payload) {
|
|
372
291
|
function __getSection({ host }) {
|
|
373
292
|
const metadata = {
|
|
@@ -961,52 +880,6 @@ async function bulkCreateSection2(sections, options) {
|
|
|
961
880
|
throw transformedError;
|
|
962
881
|
}
|
|
963
882
|
}
|
|
964
|
-
async function bulkCreateSectionMigration2(sections) {
|
|
965
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
966
|
-
const payload = transformPaths2(
|
|
967
|
-
renameKeysFromSDKRequestToRESTRequest({ sections }),
|
|
968
|
-
[
|
|
969
|
-
{
|
|
970
|
-
transformFn: transformSDKImageToRESTImage,
|
|
971
|
-
paths: [{ path: "sections.description.image" }]
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
975
|
-
paths: [{ path: "sections.description.video" }]
|
|
976
|
-
}
|
|
977
|
-
]
|
|
978
|
-
);
|
|
979
|
-
const reqOpts = bulkCreateSectionMigration(payload);
|
|
980
|
-
sideEffects?.onSiteCall?.();
|
|
981
|
-
try {
|
|
982
|
-
const result = await httpClient.request(reqOpts);
|
|
983
|
-
sideEffects?.onSuccess?.(result);
|
|
984
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
985
|
-
transformPaths2(result.data, [
|
|
986
|
-
{
|
|
987
|
-
transformFn: transformRESTImageToSDKImage,
|
|
988
|
-
paths: [{ path: "results.item.description.image" }]
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
992
|
-
paths: [{ path: "results.item.description.video" }]
|
|
993
|
-
}
|
|
994
|
-
])
|
|
995
|
-
);
|
|
996
|
-
} catch (err) {
|
|
997
|
-
const transformedError = sdkTransformError(
|
|
998
|
-
err,
|
|
999
|
-
{
|
|
1000
|
-
spreadPathsToArguments: {},
|
|
1001
|
-
explicitPathsToArguments: { sections: "$[0]" },
|
|
1002
|
-
singleArgumentUnchanged: false
|
|
1003
|
-
},
|
|
1004
|
-
["sections"]
|
|
1005
|
-
);
|
|
1006
|
-
sideEffects?.onError?.(err);
|
|
1007
|
-
throw transformedError;
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
883
|
async function getSection2(sectionId, options) {
|
|
1011
884
|
const { httpClient, sideEffects } = arguments[2];
|
|
1012
885
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1397,7 +1270,6 @@ export {
|
|
|
1397
1270
|
State,
|
|
1398
1271
|
WebhookIdentityType,
|
|
1399
1272
|
bulkCreateSection2 as bulkCreateSection,
|
|
1400
|
-
bulkCreateSectionMigration2 as bulkCreateSectionMigration,
|
|
1401
1273
|
cloneSection2 as cloneSection,
|
|
1402
1274
|
createSection2 as createSection,
|
|
1403
1275
|
deleteSection2 as deleteSection,
|