@wix/auto_sdk_pricing-plans_plans 1.0.112 → 1.0.113
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.js +60 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -9
- package/build/cjs/index.typings.js +51 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +50 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +22 -22
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +60 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -9
- package/build/es/index.typings.mjs +51 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +50 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +22 -22
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +60 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -9
- package/build/internal/cjs/index.typings.js +51 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +50 -6
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +22 -22
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +60 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +1 -9
- package/build/internal/es/index.typings.mjs +51 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +50 -6
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +22 -22
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -66,16 +66,14 @@ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform
|
|
|
66
66
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
67
67
|
function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
68
68
|
const domainToMappings = {
|
|
69
|
-
"api._api_base_domain_": [
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/plan-proxy",
|
|
72
|
-
destPath: ""
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
69
|
"*.dev.wix-code.com": [
|
|
76
70
|
{
|
|
77
71
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
78
72
|
destPath: "/v2/plans"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
76
|
+
destPath: "/v2/plans"
|
|
79
77
|
}
|
|
80
78
|
],
|
|
81
79
|
"*.pub.wix-code.com": [
|
|
@@ -94,6 +92,10 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
94
92
|
{
|
|
95
93
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
96
94
|
destPath: "/v2/plans"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
98
|
+
destPath: "/v2/plans"
|
|
97
99
|
}
|
|
98
100
|
],
|
|
99
101
|
"editor-flow.wixapps.net": [
|
|
@@ -106,24 +108,40 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
106
108
|
{
|
|
107
109
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
108
110
|
destPath: "/v2/plans"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
114
|
+
destPath: "/v2/plans"
|
|
109
115
|
}
|
|
110
116
|
],
|
|
111
117
|
"blocks._base_domain_": [
|
|
112
118
|
{
|
|
113
119
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
114
120
|
destPath: "/v2/plans"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
124
|
+
destPath: "/v2/plans"
|
|
115
125
|
}
|
|
116
126
|
],
|
|
117
127
|
"create.editorx": [
|
|
118
128
|
{
|
|
119
129
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
120
130
|
destPath: "/v2/plans"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
134
|
+
destPath: "/v2/plans"
|
|
121
135
|
}
|
|
122
136
|
],
|
|
123
137
|
"editor.wixapps.net": [
|
|
124
138
|
{
|
|
125
139
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
126
140
|
destPath: "/v2/plans"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
144
|
+
destPath: "/v2/plans"
|
|
127
145
|
}
|
|
128
146
|
],
|
|
129
147
|
"forums._base_domain_": [
|
|
@@ -159,6 +177,32 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
159
177
|
srcPath: "/pricing-plans/v2/plans",
|
|
160
178
|
destPath: "/v2/plans"
|
|
161
179
|
}
|
|
180
|
+
],
|
|
181
|
+
"apps._base_domain_": [
|
|
182
|
+
{
|
|
183
|
+
srcPath: "/_api/paid-plans/v2/plans",
|
|
184
|
+
destPath: "/v2/plans"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
188
|
+
destPath: "/v2/plans"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"dev._base_domain_": [
|
|
192
|
+
{
|
|
193
|
+
srcPath: "/_api/paid-plans/v2/plans",
|
|
194
|
+
destPath: "/v2/plans"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
198
|
+
destPath: "/v2/plans"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"api._api_base_domain_": [
|
|
202
|
+
{
|
|
203
|
+
srcPath: "/plan-proxy",
|
|
204
|
+
destPath: ""
|
|
205
|
+
}
|
|
162
206
|
]
|
|
163
207
|
};
|
|
164
208
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
@@ -622,9 +666,7 @@ async function typedQueryPublicPlans(query) {
|
|
|
622
666
|
}
|
|
623
667
|
}
|
|
624
668
|
var utils = {
|
|
625
|
-
query:
|
|
626
|
-
...(0, import_query_builder_utils.createQueryUtils)()
|
|
627
|
-
}
|
|
669
|
+
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
628
670
|
};
|
|
629
671
|
async function getPlan2(_id) {
|
|
630
672
|
const { httpClient, sideEffects } = arguments[1];
|
|
@@ -935,7 +977,7 @@ function archivePlan3(httpClient) {
|
|
|
935
977
|
{ httpClient }
|
|
936
978
|
);
|
|
937
979
|
}
|
|
938
|
-
var onPlanBuyerCanCancelUpdated = (0, import_sdk_types.EventDefinition)(
|
|
980
|
+
var onPlanBuyerCanCancelUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
939
981
|
"wix.pricing_plans.plan_buyer_can_cancel_updated",
|
|
940
982
|
true,
|
|
941
983
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -951,7 +993,7 @@ var onPlanBuyerCanCancelUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
951
993
|
])
|
|
952
994
|
)
|
|
953
995
|
)();
|
|
954
|
-
var onPlanCreated = (0, import_sdk_types.EventDefinition)(
|
|
996
|
+
var onPlanCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
955
997
|
"wix.pricing_plans.plan_created",
|
|
956
998
|
true,
|
|
957
999
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -967,7 +1009,7 @@ var onPlanCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
967
1009
|
])
|
|
968
1010
|
)
|
|
969
1011
|
)();
|
|
970
|
-
var onPlanArchived = (0, import_sdk_types.EventDefinition)(
|
|
1012
|
+
var onPlanArchived = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
971
1013
|
"wix.pricing_plans.plan_plan_archived",
|
|
972
1014
|
true,
|
|
973
1015
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -983,7 +1025,7 @@ var onPlanArchived = (0, import_sdk_types.EventDefinition)(
|
|
|
983
1025
|
])
|
|
984
1026
|
)
|
|
985
1027
|
)();
|
|
986
|
-
var onPlanUpdated = (0, import_sdk_types.EventDefinition)(
|
|
1028
|
+
var onPlanUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
987
1029
|
"wix.pricing_plans.plan_updated",
|
|
988
1030
|
true,
|
|
989
1031
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -1005,7 +1047,7 @@ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
|
1005
1047
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1006
1048
|
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1007
1049
|
function customQueryPublicPlans(httpClient) {
|
|
1008
|
-
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1050
|
+
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1009
1051
|
builderQueryFunction: () => queryPublicPlans3(httpClient)(),
|
|
1010
1052
|
typedQueryFunction: (query) => typedQueryPublicPlans2(httpClient)(query),
|
|
1011
1053
|
hasOptionsParameter: false
|
|
@@ -1026,12 +1068,12 @@ var makePlanPrimary4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule
|
|
|
1026
1068
|
var clearPrimary4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(clearPrimary3);
|
|
1027
1069
|
var archivePlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(archivePlan3);
|
|
1028
1070
|
var queryPublicPlans4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPublicPlans);
|
|
1029
|
-
var onPlanBuyerCanCancelUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1071
|
+
var onPlanBuyerCanCancelUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1030
1072
|
onPlanBuyerCanCancelUpdated
|
|
1031
1073
|
);
|
|
1032
|
-
var onPlanCreated2 = (0, import_event_definition_modules.createEventModule)(onPlanCreated);
|
|
1033
|
-
var onPlanArchived2 = (0, import_event_definition_modules.createEventModule)(onPlanArchived);
|
|
1034
|
-
var onPlanUpdated2 = (0, import_event_definition_modules.createEventModule)(onPlanUpdated);
|
|
1074
|
+
var onPlanCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onPlanCreated);
|
|
1075
|
+
var onPlanArchived2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onPlanArchived);
|
|
1076
|
+
var onPlanUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onPlanUpdated);
|
|
1035
1077
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1036
1078
|
0 && (module.exports = {
|
|
1037
1079
|
AppliedAt,
|