@wix/auto_sdk_online-programs_sections 1.0.12 → 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 +18 -149
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +221 -154
- package/build/cjs/index.typings.js +18 -141
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +89 -77
- package/build/cjs/meta.js +8 -111
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +537 -0
- package/build/cjs/schemas.js +852 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +49 -31
- package/build/es/index.mjs +16 -147
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +221 -154
- package/build/es/index.typings.mjs +16 -139
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +89 -77
- package/build/es/meta.mjs +8 -110
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +537 -0
- package/build/es/schemas.mjs +796 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +49 -31
- package/build/internal/cjs/index.js +18 -149
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +221 -154
- package/build/internal/cjs/index.typings.js +18 -141
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +89 -77
- package/build/internal/cjs/meta.js +8 -111
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +537 -0
- package/build/internal/cjs/schemas.js +852 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +49 -31
- package/build/internal/es/index.mjs +16 -147
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +221 -154
- package/build/internal/es/index.typings.mjs +16 -139
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +89 -77
- package/build/internal/es/meta.mjs +8 -110
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +537 -0
- package/build/internal/es/schemas.mjs +796 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -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 = {
|
|
@@ -813,8 +732,8 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
813
732
|
import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
814
733
|
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
815
734
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
735
|
+
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
816
736
|
var State = /* @__PURE__ */ ((State2) => {
|
|
817
|
-
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
818
737
|
State2["DRAFT"] = "DRAFT";
|
|
819
738
|
State2["PUBLISHED"] = "PUBLISHED";
|
|
820
739
|
return State2;
|
|
@@ -829,7 +748,6 @@ var Enum = /* @__PURE__ */ ((Enum2) => {
|
|
|
829
748
|
return Enum2;
|
|
830
749
|
})(Enum || {});
|
|
831
750
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
832
|
-
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
833
751
|
RequestedFields2["TOTAL_STEPS"] = "TOTAL_STEPS";
|
|
834
752
|
return RequestedFields2;
|
|
835
753
|
})(RequestedFields || {});
|
|
@@ -962,52 +880,6 @@ async function bulkCreateSection2(sections, options) {
|
|
|
962
880
|
throw transformedError;
|
|
963
881
|
}
|
|
964
882
|
}
|
|
965
|
-
async function bulkCreateSectionMigration2(sections) {
|
|
966
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
967
|
-
const payload = transformPaths2(
|
|
968
|
-
renameKeysFromSDKRequestToRESTRequest({ sections }),
|
|
969
|
-
[
|
|
970
|
-
{
|
|
971
|
-
transformFn: transformSDKImageToRESTImage,
|
|
972
|
-
paths: [{ path: "sections.description.image" }]
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
976
|
-
paths: [{ path: "sections.description.video" }]
|
|
977
|
-
}
|
|
978
|
-
]
|
|
979
|
-
);
|
|
980
|
-
const reqOpts = bulkCreateSectionMigration(payload);
|
|
981
|
-
sideEffects?.onSiteCall?.();
|
|
982
|
-
try {
|
|
983
|
-
const result = await httpClient.request(reqOpts);
|
|
984
|
-
sideEffects?.onSuccess?.(result);
|
|
985
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
986
|
-
transformPaths2(result.data, [
|
|
987
|
-
{
|
|
988
|
-
transformFn: transformRESTImageToSDKImage,
|
|
989
|
-
paths: [{ path: "results.item.description.image" }]
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
993
|
-
paths: [{ path: "results.item.description.video" }]
|
|
994
|
-
}
|
|
995
|
-
])
|
|
996
|
-
);
|
|
997
|
-
} catch (err) {
|
|
998
|
-
const transformedError = sdkTransformError(
|
|
999
|
-
err,
|
|
1000
|
-
{
|
|
1001
|
-
spreadPathsToArguments: {},
|
|
1002
|
-
explicitPathsToArguments: { sections: "$[0]" },
|
|
1003
|
-
singleArgumentUnchanged: false
|
|
1004
|
-
},
|
|
1005
|
-
["sections"]
|
|
1006
|
-
);
|
|
1007
|
-
sideEffects?.onError?.(err);
|
|
1008
|
-
throw transformedError;
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
883
|
async function getSection2(sectionId, options) {
|
|
1012
884
|
const { httpClient, sideEffects } = arguments[2];
|
|
1013
885
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1218,6 +1090,11 @@ async function typedQuerySections(query, options) {
|
|
|
1218
1090
|
throw transformedError;
|
|
1219
1091
|
}
|
|
1220
1092
|
}
|
|
1093
|
+
var utils = {
|
|
1094
|
+
query: {
|
|
1095
|
+
...createQueryUtils()
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1221
1098
|
async function listSections2(programId, options) {
|
|
1222
1099
|
const { httpClient, sideEffects } = arguments[2];
|
|
1223
1100
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1393,7 +1270,6 @@ export {
|
|
|
1393
1270
|
State,
|
|
1394
1271
|
WebhookIdentityType,
|
|
1395
1272
|
bulkCreateSection2 as bulkCreateSection,
|
|
1396
|
-
bulkCreateSectionMigration2 as bulkCreateSectionMigration,
|
|
1397
1273
|
cloneSection2 as cloneSection,
|
|
1398
1274
|
createSection2 as createSection,
|
|
1399
1275
|
deleteSection2 as deleteSection,
|
|
@@ -1403,6 +1279,7 @@ export {
|
|
|
1403
1279
|
publishSection2 as publishSection,
|
|
1404
1280
|
querySections2 as querySections,
|
|
1405
1281
|
typedQuerySections,
|
|
1406
|
-
updateSection2 as updateSection
|
|
1282
|
+
updateSection2 as updateSection,
|
|
1283
|
+
utils
|
|
1407
1284
|
};
|
|
1408
1285
|
//# sourceMappingURL=index.typings.mjs.map
|