@wix/auto_sdk_pricing-plans_plans 1.0.112 → 1.0.114
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 +66 -24
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -9
- package/build/cjs/index.typings.js +57 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +56 -12
- 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 +66 -24
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -9
- package/build/es/index.typings.mjs +57 -15
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +56 -12
- 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 +66 -24
- 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 +57 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +56 -12
- 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 +66 -24
- 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 +57 -15
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +56 -12
- 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,31 +66,23 @@ 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"
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"*.pub.wix-code.com": [
|
|
73
|
+
},
|
|
82
74
|
{
|
|
83
|
-
srcPath: "/_api/
|
|
75
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
84
76
|
destPath: "/v2/plans"
|
|
85
77
|
}
|
|
86
78
|
],
|
|
87
|
-
"*.
|
|
79
|
+
"*.pub.wix-code.com": [
|
|
88
80
|
{
|
|
89
81
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
90
82
|
destPath: "/v2/plans"
|
|
91
83
|
}
|
|
92
84
|
],
|
|
93
|
-
|
|
85
|
+
"*.wixapps.net": [
|
|
94
86
|
{
|
|
95
87
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
96
88
|
destPath: "/v2/plans"
|
|
@@ -106,24 +98,40 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
106
98
|
{
|
|
107
99
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
108
100
|
destPath: "/v2/plans"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
104
|
+
destPath: "/v2/plans"
|
|
109
105
|
}
|
|
110
106
|
],
|
|
111
107
|
"blocks._base_domain_": [
|
|
112
108
|
{
|
|
113
109
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
114
110
|
destPath: "/v2/plans"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
114
|
+
destPath: "/v2/plans"
|
|
115
115
|
}
|
|
116
116
|
],
|
|
117
117
|
"create.editorx": [
|
|
118
118
|
{
|
|
119
119
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
120
120
|
destPath: "/v2/plans"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
124
|
+
destPath: "/v2/plans"
|
|
121
125
|
}
|
|
122
126
|
],
|
|
123
127
|
"editor.wixapps.net": [
|
|
124
128
|
{
|
|
125
129
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
126
130
|
destPath: "/v2/plans"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
134
|
+
destPath: "/v2/plans"
|
|
127
135
|
}
|
|
128
136
|
],
|
|
129
137
|
"forums._base_domain_": [
|
|
@@ -159,6 +167,42 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
159
167
|
srcPath: "/pricing-plans/v2/plans",
|
|
160
168
|
destPath: "/v2/plans"
|
|
161
169
|
}
|
|
170
|
+
],
|
|
171
|
+
_: [
|
|
172
|
+
{
|
|
173
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
174
|
+
destPath: "/v2/plans"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
srcPath: "/_api/paid-plans/v2/plans",
|
|
178
|
+
destPath: "/v2/plans"
|
|
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,
|