@wix/auto_sdk_online-programs_sections 1.0.33 → 1.0.35
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 +30 -8
- package/build/cjs/index.js +122 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +130 -11
- package/build/cjs/index.typings.js +4 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -5
- package/build/cjs/meta.js +4 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +30 -8
- package/build/es/index.mjs +118 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +130 -11
- package/build/es/index.typings.mjs +4 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -5
- package/build/es/meta.mjs +4 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +30 -8
- package/build/internal/cjs/index.typings.d.ts +131 -14
- package/build/internal/cjs/meta.d.ts +6 -8
- package/build/internal/es/index.d.mts +30 -8
- package/build/internal/es/index.typings.d.mts +131 -14
- package/build/internal/es/meta.d.mts +6 -8
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
// src/online-programs-v3-section-sections.public.ts
|
|
2
|
+
import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
3
|
+
import { transformRESTFloatToSDKFloat as transformRESTFloatToSDKFloat2 } from "@wix/sdk-runtime/transformations/float";
|
|
4
|
+
import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
|
+
import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
|
+
import { EventDefinition } from "@wix/sdk-types";
|
|
7
|
+
|
|
1
8
|
// src/online-programs-v3-section-sections.universal.ts
|
|
2
9
|
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
10
|
import { queryBuilder } from "@wix/sdk-runtime/query-builder";
|
|
@@ -98,10 +105,6 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
|
|
|
98
105
|
}
|
|
99
106
|
],
|
|
100
107
|
"www.wixapis.com": [
|
|
101
|
-
{
|
|
102
|
-
srcPath: "/program-sections-service",
|
|
103
|
-
destPath: ""
|
|
104
|
-
},
|
|
105
108
|
{
|
|
106
109
|
srcPath: "/online-programs/v3/sections",
|
|
107
110
|
destPath: "/v3/sections"
|
|
@@ -109,6 +112,10 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
|
|
|
109
112
|
{
|
|
110
113
|
srcPath: "/online-programs/v3/bulk/sections",
|
|
111
114
|
destPath: "/v3/bulk/sections"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
srcPath: "/program-sections-service",
|
|
118
|
+
destPath: ""
|
|
112
119
|
}
|
|
113
120
|
]
|
|
114
121
|
};
|
|
@@ -894,9 +901,100 @@ function moveSection3(httpClient) {
|
|
|
894
901
|
{ httpClient }
|
|
895
902
|
);
|
|
896
903
|
}
|
|
904
|
+
var onSectionCloned = /* @__PURE__ */ EventDefinition(
|
|
905
|
+
"wix.online_programs.v3.section_cloned",
|
|
906
|
+
true,
|
|
907
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
908
|
+
transformPaths3(event, [
|
|
909
|
+
{
|
|
910
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
911
|
+
paths: [
|
|
912
|
+
{ path: "data.prototype.createdDate" },
|
|
913
|
+
{ path: "data.prototype.updatedDate" },
|
|
914
|
+
{ path: "data.cloned.createdDate" },
|
|
915
|
+
{ path: "data.cloned.updatedDate" },
|
|
916
|
+
{ path: "metadata.eventTime" }
|
|
917
|
+
]
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
921
|
+
paths: [
|
|
922
|
+
{ path: "data.prototype.ordering" },
|
|
923
|
+
{ path: "data.cloned.ordering" }
|
|
924
|
+
]
|
|
925
|
+
}
|
|
926
|
+
])
|
|
927
|
+
)
|
|
928
|
+
)();
|
|
929
|
+
var onSectionCreated = /* @__PURE__ */ EventDefinition(
|
|
930
|
+
"wix.online_programs.v3.section_created",
|
|
931
|
+
true,
|
|
932
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
933
|
+
transformPaths3(event, [
|
|
934
|
+
{
|
|
935
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
936
|
+
paths: [
|
|
937
|
+
{ path: "entity.createdDate" },
|
|
938
|
+
{ path: "entity.updatedDate" },
|
|
939
|
+
{ path: "metadata.eventTime" }
|
|
940
|
+
]
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
944
|
+
paths: [{ path: "entity.ordering" }]
|
|
945
|
+
}
|
|
946
|
+
])
|
|
947
|
+
)
|
|
948
|
+
)();
|
|
949
|
+
var onSectionDeleted = /* @__PURE__ */ EventDefinition(
|
|
950
|
+
"wix.online_programs.v3.section_deleted",
|
|
951
|
+
true,
|
|
952
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
953
|
+
transformPaths3(event, [
|
|
954
|
+
{
|
|
955
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
956
|
+
paths: [
|
|
957
|
+
{ path: "entity.createdDate" },
|
|
958
|
+
{ path: "entity.updatedDate" },
|
|
959
|
+
{ path: "metadata.eventTime" }
|
|
960
|
+
]
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
964
|
+
paths: [{ path: "entity.ordering" }]
|
|
965
|
+
}
|
|
966
|
+
])
|
|
967
|
+
)
|
|
968
|
+
)();
|
|
969
|
+
var onSectionUpdated = /* @__PURE__ */ EventDefinition(
|
|
970
|
+
"wix.online_programs.v3.section_updated",
|
|
971
|
+
true,
|
|
972
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
973
|
+
transformPaths3(event, [
|
|
974
|
+
{
|
|
975
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
976
|
+
paths: [
|
|
977
|
+
{ path: "entity.createdDate" },
|
|
978
|
+
{ path: "entity.updatedDate" },
|
|
979
|
+
{ path: "metadata.eventTime" },
|
|
980
|
+
{ path: "modifiedFields.createdDate" },
|
|
981
|
+
{ path: "modifiedFields.updatedDate" }
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
986
|
+
paths: [
|
|
987
|
+
{ path: "entity.ordering" },
|
|
988
|
+
{ path: "modifiedFields.ordering" }
|
|
989
|
+
]
|
|
990
|
+
}
|
|
991
|
+
])
|
|
992
|
+
)
|
|
993
|
+
)();
|
|
897
994
|
|
|
898
995
|
// src/online-programs-v3-section-sections.context.ts
|
|
899
996
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
997
|
+
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
900
998
|
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
901
999
|
function customQuerySections(httpClient) {
|
|
902
1000
|
const router = /* @__PURE__ */ createQueryOverloadRouter({
|
|
@@ -918,6 +1016,18 @@ var listSections4 = /* @__PURE__ */ createRESTModule(listSections3);
|
|
|
918
1016
|
var cloneSection4 = /* @__PURE__ */ createRESTModule(cloneSection3);
|
|
919
1017
|
var moveSection4 = /* @__PURE__ */ createRESTModule(moveSection3);
|
|
920
1018
|
var querySections4 = /* @__PURE__ */ createRESTModule(customQuerySections);
|
|
1019
|
+
var onSectionCloned2 = /* @__PURE__ */ createEventModule(
|
|
1020
|
+
onSectionCloned
|
|
1021
|
+
);
|
|
1022
|
+
var onSectionCreated2 = /* @__PURE__ */ createEventModule(
|
|
1023
|
+
onSectionCreated
|
|
1024
|
+
);
|
|
1025
|
+
var onSectionDeleted2 = /* @__PURE__ */ createEventModule(
|
|
1026
|
+
onSectionDeleted
|
|
1027
|
+
);
|
|
1028
|
+
var onSectionUpdated2 = /* @__PURE__ */ createEventModule(
|
|
1029
|
+
onSectionUpdated
|
|
1030
|
+
);
|
|
921
1031
|
export {
|
|
922
1032
|
BulkActionType,
|
|
923
1033
|
DescriptionFieldSet,
|
|
@@ -934,6 +1044,10 @@ export {
|
|
|
934
1044
|
getSection4 as getSection,
|
|
935
1045
|
listSections4 as listSections,
|
|
936
1046
|
moveSection4 as moveSection,
|
|
1047
|
+
onSectionCloned2 as onSectionCloned,
|
|
1048
|
+
onSectionCreated2 as onSectionCreated,
|
|
1049
|
+
onSectionDeleted2 as onSectionDeleted,
|
|
1050
|
+
onSectionUpdated2 as onSectionUpdated,
|
|
937
1051
|
querySections4 as querySections,
|
|
938
1052
|
updateSection4 as updateSection,
|
|
939
1053
|
utils
|