@wix/himalaya-cli 0.1656.0 → 0.1657.0
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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/pricing-plans/src/index.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/checkout.mjs +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-pricing-plans.mjs +10 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{3912fa5f6ddb60106c630fb5e48edbf12ebfd57c616d8b7aee0d32088cd3bbdf.bin → c04dd5fc5ad48e6b19678d4313159302e9a513ada94bfe515d8dfd5a54d46f5d.bin} +1 -1
- package/dist/browser-plane/sw.js +5 -5
- package/dist/cli.mjs +46 -45
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/getting-started.md +4 -1
- package/guides/himi-skill.md +4 -1
- package/guides/index.json +12 -0
- package/guides/recipe-auth.md +120 -0
- package/guides/recipe-checkout.md +108 -0
- package/guides/sdk-reference.json +21 -3
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +2151 -2596
- package/templates/beauty-salon/l10n/en.json +208 -180
- package/templates/beauty-salon/l10n/he.json +300 -138
- package/templates/beauty-salon/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/beauty-salon/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/beauty-salon/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/beauty-salon/tokens.json +17 -1
- package/templates/branded-lite/dev/index.ts +2272 -2685
- package/templates/branded-lite/l10n/en.json +225 -52
- package/templates/branded-lite/l10n/he.json +305 -39
- package/templates/branded-lite/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/branded-lite/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/branded-lite/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/branded-lite/tokens.json +5 -1
- package/templates/community-club/l10n/en.json +6 -1
- package/templates/community-club/l10n/he.json +23 -2
- package/templates/community-club/tokens.json +17 -1
- package/templates/events-meetups/l10n/en.json +6 -1
- package/templates/events-meetups/l10n/he.json +23 -2
- package/templates/events-meetups/tokens.json +17 -1
- package/templates/gym-fitness/dev/index.ts +2149 -2594
- package/templates/gym-fitness/l10n/en.json +215 -77
- package/templates/gym-fitness/l10n/he.json +300 -59
- package/templates/gym-fitness/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/gym-fitness/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/gym-fitness/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/gym-fitness/tokens.json +17 -1
- package/templates/nonprofit-cause/dev/index.ts +2163 -2608
- package/templates/nonprofit-cause/l10n/en.json +216 -38
- package/templates/nonprofit-cause/l10n/he.json +300 -30
- package/templates/nonprofit-cause/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/nonprofit-cause/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/nonprofit-cause/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/nonprofit-cause/tokens.json +17 -1
- package/templates/podcast-creator/dev/index.ts +2147 -2592
- package/templates/podcast-creator/l10n/en.json +216 -38
- package/templates/podcast-creator/l10n/he.json +300 -30
- package/templates/podcast-creator/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/podcast-creator/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/podcast-creator/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/podcast-creator/tokens.json +17 -1
- package/templates/portfolio-creative/l10n/en.json +15 -8
- package/templates/portfolio-creative/l10n/he.json +28 -6
- package/templates/portfolio-creative/tokens.json +17 -1
- package/templates/restaurant/l10n/en.json +14 -7
- package/templates/restaurant/l10n/he.json +28 -6
- package/templates/restaurant/tokens.json +17 -1
- package/templates/retail-store/l10n/en.json +15 -8
- package/templates/retail-store/l10n/he.json +28 -6
- package/templates/retail-store/tokens.json +17 -1
- package/templates/yoga-studio/dev/index.ts +2204 -2649
- package/templates/yoga-studio/l10n/en.json +216 -43
- package/templates/yoga-studio/l10n/he.json +300 -30
- package/templates/yoga-studio/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/yoga-studio/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/yoga-studio/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/yoga-studio/tokens.json +17 -1
- package/templates/beauty-salon/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/branded-lite/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/gym-fitness/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/nonprofit-cause/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/podcast-creator/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/yoga-studio/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
|
@@ -123,6 +123,22 @@ export interface WixPlanOrderPricing {
|
|
|
123
123
|
discount?: string;
|
|
124
124
|
total?: string;
|
|
125
125
|
currency?: string;
|
|
126
|
+
/** Plan price captured at purchase (legacy priceDetails wire shape). */
|
|
127
|
+
planPrice?: string;
|
|
128
|
+
subscription?: WixPlanPricing["subscription"];
|
|
129
|
+
singlePaymentForDuration?: WixPlanPricing["singlePaymentForDuration"];
|
|
130
|
+
singlePaymentUnlimited?: boolean;
|
|
131
|
+
prices?: Array<{
|
|
132
|
+
duration?: {
|
|
133
|
+
cycleFrom?: number;
|
|
134
|
+
numberOfCycles?: number;
|
|
135
|
+
};
|
|
136
|
+
price?: {
|
|
137
|
+
total?: string;
|
|
138
|
+
currency?: string;
|
|
139
|
+
formattedTotal?: string;
|
|
140
|
+
};
|
|
141
|
+
}>;
|
|
126
142
|
}
|
|
127
143
|
/** The plan order's current billing cycle. `endedDate` is the next-payment /
|
|
128
144
|
* period-end date — the date a NEXT_PAYMENT_DATE cancel takes effect, and what
|
|
@@ -138,6 +154,8 @@ export interface WixPlanOrder {
|
|
|
138
154
|
planId?: string;
|
|
139
155
|
planName?: string;
|
|
140
156
|
planDescription?: string;
|
|
157
|
+
/** Plan price captured when this order was created. */
|
|
158
|
+
planPrice?: string;
|
|
141
159
|
subscriptionId?: string;
|
|
142
160
|
buyer?: WixPlanOrderBuyer;
|
|
143
161
|
pricing?: WixPlanOrderPricing;
|
|
@@ -153,6 +171,13 @@ export interface WixPlanOrder {
|
|
|
153
171
|
/** Earliest the order can end (set while paused/cancel-at-period-end). */
|
|
154
172
|
earliestEndDate?: string;
|
|
155
173
|
createdDate?: string;
|
|
174
|
+
autoRenewCanceled?: boolean;
|
|
175
|
+
cancellation?: {
|
|
176
|
+
requestedDate?: string;
|
|
177
|
+
cause?: string;
|
|
178
|
+
effectiveAt?: string;
|
|
179
|
+
};
|
|
180
|
+
priceDetails?: WixPlanOrderPricing & WixPlanPricing;
|
|
156
181
|
}
|
|
157
182
|
export interface WixListPlanOrdersResponse {
|
|
158
183
|
orders: WixPlanOrder[];
|
|
@@ -176,6 +201,7 @@ export interface ListMyPlanOrdersOptions {
|
|
|
176
201
|
* `limit got 100, expected 50 or less`. Measured, not assumed. */
|
|
177
202
|
limit?: number;
|
|
178
203
|
offset?: number;
|
|
204
|
+
fieldSet?: string;
|
|
179
205
|
}
|
|
180
206
|
/** List the CURRENT MEMBER's own plan orders — GET /pricing-plans/v2/member/orders
|
|
181
207
|
* (`MemberOrdersService.ListOrders`, `PRICING_PLANS.READ_OWN_ORDERS`). Returns
|
|
@@ -202,6 +228,17 @@ export declare function listMyPlanOrders(opts?: ListMyPlanOrdersOptions, readOpt
|
|
|
202
228
|
export interface WixGetPlanOrderResponse {
|
|
203
229
|
order: WixPlanOrder;
|
|
204
230
|
}
|
|
231
|
+
/** Read a purchased order belonging to the authenticated member. `orderId` is required.
|
|
232
|
+
* Rejects for a missing order or denied access; never fall back to the owner route.
|
|
233
|
+
* @scope member — requires a signed-in site member reading their own order. */
|
|
234
|
+
export declare function getMyPlanOrder(orderId: string, readOptions?: WixCallOptions): Promise<WixGetPlanOrderResponse>;
|
|
235
|
+
/** Request cancellation of the member's own purchased order. Both `orderId` and
|
|
236
|
+
* `effectiveAt` are required: immediately ends access now; next payment date ends
|
|
237
|
+
* access after the current paid term. The server enforces cancellation policy.
|
|
238
|
+
* Resolves without a body on acceptance; re-read the order to confirm its state.
|
|
239
|
+
* A rejection leaves the order unconfirmed and must not be shown as canceled.
|
|
240
|
+
* @scope member — requires a signed-in site member canceling their own order. */
|
|
241
|
+
export declare function requestCancellation(orderId: string, effectiveAt: "IMMEDIATELY" | "NEXT_PAYMENT_DATE"): Promise<void>;
|
|
205
242
|
/** Fetch a single plan order — GET /pricing-plans/v2/orders/{id}. Detail source. */
|
|
206
243
|
export declare function getPlanOrder(orderId: string, readOptions?: WixCallOptions): Promise<WixGetPlanOrderResponse>;
|
|
207
244
|
export interface WixCancelPlanOrderResponse {
|
|
@@ -104,7 +104,8 @@ function listMyPlanOrders(opts = {}, readOptions) {
|
|
|
104
104
|
const qs = [
|
|
105
105
|
...(opts.statuses ?? []).map((s2) => `orderStatuses=${encodeURIComponent(s2)}`),
|
|
106
106
|
...opts.limit === void 0 ? [] : [`limit=${opts.limit}`],
|
|
107
|
-
...opts.offset === void 0 ? [] : [`offset=${opts.offset}`]
|
|
107
|
+
...opts.offset === void 0 ? [] : [`offset=${opts.offset}`],
|
|
108
|
+
...opts.fieldSet === void 0 ? [] : [`fieldSet=${encodeURIComponent(opts.fieldSet)}`]
|
|
108
109
|
];
|
|
109
110
|
const path = "/pricing-plans/v2/member/orders" + (qs.length ? `?${qs.join("&")}` : "");
|
|
110
111
|
return wixCall("GET", path, void 0, readOptions);
|
|
@@ -1608,7 +1608,8 @@ function listMyPlanOrders(opts = {}, readOptions) {
|
|
|
1608
1608
|
const qs = [
|
|
1609
1609
|
...(opts.statuses ?? []).map((s2) => `orderStatuses=${encodeURIComponent(s2)}`),
|
|
1610
1610
|
...opts.limit === void 0 ? [] : [`limit=${opts.limit}`],
|
|
1611
|
-
...opts.offset === void 0 ? [] : [`offset=${opts.offset}`]
|
|
1611
|
+
...opts.offset === void 0 ? [] : [`offset=${opts.offset}`],
|
|
1612
|
+
...opts.fieldSet === void 0 ? [] : [`fieldSet=${encodeURIComponent(opts.fieldSet)}`]
|
|
1612
1613
|
];
|
|
1613
1614
|
const path = "/pricing-plans/v2/member/orders" + (qs.length ? `?${qs.join("&")}` : "");
|
|
1614
1615
|
return wixCall("GET", path, void 0, readOptions);
|
|
@@ -37,11 +37,18 @@ function listMyPlanOrders(opts = {}, readOptions) {
|
|
|
37
37
|
const qs = [
|
|
38
38
|
...(opts.statuses ?? []).map((s) => `orderStatuses=${encodeURIComponent(s)}`),
|
|
39
39
|
...opts.limit === void 0 ? [] : [`limit=${opts.limit}`],
|
|
40
|
-
...opts.offset === void 0 ? [] : [`offset=${opts.offset}`]
|
|
40
|
+
...opts.offset === void 0 ? [] : [`offset=${opts.offset}`],
|
|
41
|
+
...opts.fieldSet === void 0 ? [] : [`fieldSet=${encodeURIComponent(opts.fieldSet)}`]
|
|
41
42
|
];
|
|
42
43
|
const path = "/pricing-plans/v2/member/orders" + (qs.length ? `?${qs.join("&")}` : "");
|
|
43
44
|
return wixCall("GET", path, void 0, readOptions);
|
|
44
45
|
}
|
|
46
|
+
function getMyPlanOrder(orderId, readOptions) {
|
|
47
|
+
return wixCall("GET", `/pricing-plans/v2/member/orders/${encodeURIComponent(orderId)}`, void 0, readOptions);
|
|
48
|
+
}
|
|
49
|
+
function requestCancellation(orderId, effectiveAt) {
|
|
50
|
+
return wixCall("POST", `/pricing-plans/v2/member/orders/${encodeURIComponent(orderId)}/cancel`, { effectiveAt });
|
|
51
|
+
}
|
|
45
52
|
function getPlanOrder(orderId, readOptions) {
|
|
46
53
|
return wixCall("GET", `/pricing-plans/v2/orders/${encodeURIComponent(orderId)}`, void 0, readOptions);
|
|
47
54
|
}
|
|
@@ -64,6 +71,7 @@ export {
|
|
|
64
71
|
archivePlan,
|
|
65
72
|
cancelPlanOrder,
|
|
66
73
|
createOnlineOrder,
|
|
74
|
+
getMyPlanOrder,
|
|
67
75
|
getOnlineOrderPreview,
|
|
68
76
|
getPlan,
|
|
69
77
|
getPlanOrder,
|
|
@@ -72,6 +80,7 @@ export {
|
|
|
72
80
|
listPlans,
|
|
73
81
|
listPublicPlans,
|
|
74
82
|
pausePlanOrder,
|
|
83
|
+
requestCancellation,
|
|
75
84
|
resumePlanOrder,
|
|
76
85
|
setPlanVisibility
|
|
77
86
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2503650
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 23064
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/c04dd5fc5ad48e6b19678d4313159302e9a513ada94bfe515d8dfd5a54d46f5d.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-DcKBnnEn.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "c04dd5fc5ad48e6b19678d4313159302e9a513ada94bfe515d8dfd5a54d46f5d",
|
|
85
|
+
"file": "preview-deferred/c04dd5fc5ad48e6b19678d4313159302e9a513ada94bfe515d8dfd5a54d46f5d.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|