@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
|
@@ -1149,10 +1149,6 @@ interface PlansQueryBuilder {
|
|
|
1149
1149
|
* @param string - String to compare against. Case-insensitive.
|
|
1150
1150
|
*/
|
|
1151
1151
|
startsWith: (propertyName: '_id' | 'slug', value: string) => PlansQueryBuilder;
|
|
1152
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
1153
|
-
* @param values - List of values to compare against.
|
|
1154
|
-
*/
|
|
1155
|
-
hasSome: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any[]) => PlansQueryBuilder;
|
|
1156
1152
|
in: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: any) => PlansQueryBuilder;
|
|
1157
1153
|
exists: (propertyName: '_id' | 'primary' | '_createdDate' | '_updatedDate' | 'slug', value: boolean) => PlansQueryBuilder;
|
|
1158
1154
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
@@ -1225,11 +1221,7 @@ type PlanQuery = {
|
|
|
1225
1221
|
};
|
|
1226
1222
|
};
|
|
1227
1223
|
declare const utils: {
|
|
1228
|
-
query:
|
|
1229
|
-
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Plan, PlanQuerySpec, PlanQuery>;
|
|
1230
|
-
Filter: _wix_sdk_types.FilterFactory<Plan, PlanQuerySpec>;
|
|
1231
|
-
Sort: _wix_sdk_types.SortFactory<PlanQuerySpec>;
|
|
1232
|
-
};
|
|
1224
|
+
query: _wix_sdk_types.QueryHelpers<Plan, PlanQuerySpec, PlanQuery>;
|
|
1233
1225
|
};
|
|
1234
1226
|
/**
|
|
1235
1227
|
* Retrieves a pricing plan by ID.
|
|
@@ -16,16 +16,14 @@ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths
|
|
|
16
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
17
|
function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
18
18
|
const domainToMappings = {
|
|
19
|
-
"api._api_base_domain_": [
|
|
20
|
-
{
|
|
21
|
-
srcPath: "/plan-proxy",
|
|
22
|
-
destPath: ""
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
19
|
"*.dev.wix-code.com": [
|
|
26
20
|
{
|
|
27
21
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
28
22
|
destPath: "/v2/plans"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
26
|
+
destPath: "/v2/plans"
|
|
29
27
|
}
|
|
30
28
|
],
|
|
31
29
|
"*.pub.wix-code.com": [
|
|
@@ -44,6 +42,10 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
44
42
|
{
|
|
45
43
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
46
44
|
destPath: "/v2/plans"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
48
|
+
destPath: "/v2/plans"
|
|
47
49
|
}
|
|
48
50
|
],
|
|
49
51
|
"editor-flow.wixapps.net": [
|
|
@@ -56,24 +58,40 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
56
58
|
{
|
|
57
59
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
58
60
|
destPath: "/v2/plans"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
64
|
+
destPath: "/v2/plans"
|
|
59
65
|
}
|
|
60
66
|
],
|
|
61
67
|
"blocks._base_domain_": [
|
|
62
68
|
{
|
|
63
69
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
64
70
|
destPath: "/v2/plans"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
74
|
+
destPath: "/v2/plans"
|
|
65
75
|
}
|
|
66
76
|
],
|
|
67
77
|
"create.editorx": [
|
|
68
78
|
{
|
|
69
79
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
70
80
|
destPath: "/v2/plans"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
84
|
+
destPath: "/v2/plans"
|
|
71
85
|
}
|
|
72
86
|
],
|
|
73
87
|
"editor.wixapps.net": [
|
|
74
88
|
{
|
|
75
89
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
76
90
|
destPath: "/v2/plans"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
94
|
+
destPath: "/v2/plans"
|
|
77
95
|
}
|
|
78
96
|
],
|
|
79
97
|
"forums._base_domain_": [
|
|
@@ -109,6 +127,32 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
109
127
|
srcPath: "/pricing-plans/v2/plans",
|
|
110
128
|
destPath: "/v2/plans"
|
|
111
129
|
}
|
|
130
|
+
],
|
|
131
|
+
"apps._base_domain_": [
|
|
132
|
+
{
|
|
133
|
+
srcPath: "/_api/paid-plans/v2/plans",
|
|
134
|
+
destPath: "/v2/plans"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
138
|
+
destPath: "/v2/plans"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"dev._base_domain_": [
|
|
142
|
+
{
|
|
143
|
+
srcPath: "/_api/paid-plans/v2/plans",
|
|
144
|
+
destPath: "/v2/plans"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
148
|
+
destPath: "/v2/plans"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"api._api_base_domain_": [
|
|
152
|
+
{
|
|
153
|
+
srcPath: "/plan-proxy",
|
|
154
|
+
destPath: ""
|
|
155
|
+
}
|
|
112
156
|
]
|
|
113
157
|
};
|
|
114
158
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -572,9 +616,7 @@ async function typedQueryPublicPlans(query) {
|
|
|
572
616
|
}
|
|
573
617
|
}
|
|
574
618
|
var utils = {
|
|
575
|
-
query:
|
|
576
|
-
...createQueryUtils()
|
|
577
|
-
}
|
|
619
|
+
query: /* @__PURE__ */ createQueryUtils()
|
|
578
620
|
};
|
|
579
621
|
async function getPlan2(_id) {
|
|
580
622
|
const { httpClient, sideEffects } = arguments[1];
|