@jay-framework/wix-bookings 0.25.5 → 0.26.1
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/agent-kit/designer/wix-bookings-dashboard-content.md +67 -0
- package/agent-kit/plugin/wix-bookings-setup.md +58 -5
- package/agent-kit/plugin/wix-bookings-troubleshooting.md +29 -3
- package/dist/contracts/booking-flow.jay-contract +27 -0
- package/dist/contracts/booking-flow.jay-contract.d.ts +35 -3
- package/dist/{index.client-DHSnbb5_.d.ts → index.client-oaMPI34g.d.ts} +42 -6
- package/dist/index.client.d.ts +1 -1
- package/dist/index.client.js +661 -117
- package/dist/index.d.ts +2 -2
- package/dist/index.js +60 -144
- package/dist/query-services-B1MS77NZ.js +176 -0
- package/dist/tools.d.ts +4 -2
- package/dist/tools.js +150 -23
- package/package.json +16 -16
- package/plugin.yaml +3 -0
- package/dist/config-loader-sfgwfXPV.js +0 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/wix-bookings",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wix Bookings package for Jay Framework — browse services, pick slots, submit participant details, complete checkout",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"test": "vitest run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@jay-framework/component": "^0.
|
|
47
|
-
"@jay-framework/fullstack-component": "^0.
|
|
48
|
-
"@jay-framework/reactive": "^0.
|
|
49
|
-
"@jay-framework/runtime": "^0.
|
|
50
|
-
"@jay-framework/secure": "^0.
|
|
51
|
-
"@jay-framework/stack-client-runtime": "^0.
|
|
52
|
-
"@jay-framework/stack-server-runtime": "^0.
|
|
53
|
-
"@jay-framework/wix-forms": "^0.
|
|
54
|
-
"@jay-framework/wix-server-client": "^0.
|
|
46
|
+
"@jay-framework/component": "^0.26.1",
|
|
47
|
+
"@jay-framework/fullstack-component": "^0.26.1",
|
|
48
|
+
"@jay-framework/reactive": "^0.26.1",
|
|
49
|
+
"@jay-framework/runtime": "^0.26.1",
|
|
50
|
+
"@jay-framework/secure": "^0.26.1",
|
|
51
|
+
"@jay-framework/stack-client-runtime": "^0.26.1",
|
|
52
|
+
"@jay-framework/stack-server-runtime": "^0.26.1",
|
|
53
|
+
"@jay-framework/wix-forms": "^0.26.1",
|
|
54
|
+
"@jay-framework/wix-server-client": "^0.26.1",
|
|
55
55
|
"@wix/sdk": "^1.21.5",
|
|
56
56
|
"js-yaml": "^4.1.0"
|
|
57
57
|
},
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
"@babel/core": "^7.23.7",
|
|
60
60
|
"@babel/preset-env": "^7.23.8",
|
|
61
61
|
"@babel/preset-typescript": "^7.23.3",
|
|
62
|
-
"@jay-framework/compiler-jay-stack": "^0.
|
|
63
|
-
"@jay-framework/jay-cli": "^0.
|
|
64
|
-
"@jay-framework/jay-stack-cli": "^0.
|
|
65
|
-
"@jay-framework/vite-plugin": "^0.
|
|
62
|
+
"@jay-framework/compiler-jay-stack": "^0.26.1",
|
|
63
|
+
"@jay-framework/jay-cli": "^0.26.1",
|
|
64
|
+
"@jay-framework/jay-stack-cli": "^0.26.1",
|
|
65
|
+
"@jay-framework/vite-plugin": "^0.26.1",
|
|
66
66
|
"@jay-framework/wix-dev-environment": "^0.6.12",
|
|
67
67
|
"nodemon": "^3.0.3",
|
|
68
68
|
"rimraf": "^5.0.5",
|
|
69
69
|
"tslib": "^2.6.2",
|
|
70
70
|
"tsup": "^8.5.1",
|
|
71
71
|
"typescript": "^5.3.3",
|
|
72
|
-
"vite": "^
|
|
73
|
-
"vitest": "^1.
|
|
72
|
+
"vite": "^6.4.4",
|
|
73
|
+
"vitest": "^4.1.11"
|
|
74
74
|
}
|
|
75
75
|
}
|
package/plugin.yaml
CHANGED
|
@@ -6,6 +6,7 @@ contracts:
|
|
|
6
6
|
contract: booking-flow.jay-contract
|
|
7
7
|
component: bookingFlow
|
|
8
8
|
description: Full booking flow (service list, slot picker, form, checkout)
|
|
9
|
+
editingGuide: ./agent-kit/designer/wix-bookings-dashboard-content.md
|
|
9
10
|
|
|
10
11
|
services:
|
|
11
12
|
- name: wix-bookings
|
|
@@ -21,3 +22,5 @@ actions:
|
|
|
21
22
|
action: create-booking.jay-action
|
|
22
23
|
|
|
23
24
|
setup: setupWixBookings
|
|
25
|
+
agentkit: generateWixBookingsAgentKit
|
|
26
|
+
description: Bookings setup and agent-kit service index for dashboard links
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import yaml from "js-yaml";
|
|
4
|
-
const CONFIG_FILE = ".wix-bookings.yaml";
|
|
5
|
-
const WIX_BOOKINGS_APP_ID = "13d21c63-b5ec-5912-8397-c3a5ddb27a97";
|
|
6
|
-
const DEFAULTS = {
|
|
7
|
-
bookingAppId: WIX_BOOKINGS_APP_ID,
|
|
8
|
-
staffResourceTypeId: "",
|
|
9
|
-
slotWindowDays: 14,
|
|
10
|
-
postCheckoutUrl: "/"
|
|
11
|
-
};
|
|
12
|
-
function loadWixBookingsConfig(projectRoot) {
|
|
13
|
-
const configPath = path.join(projectRoot, "config", CONFIG_FILE);
|
|
14
|
-
if (!fs.existsSync(configPath)) {
|
|
15
|
-
return { ...DEFAULTS };
|
|
16
|
-
}
|
|
17
|
-
const raw = yaml.load(fs.readFileSync(configPath, "utf-8"));
|
|
18
|
-
return {
|
|
19
|
-
bookingAppId: raw.bookingAppId || DEFAULTS.bookingAppId,
|
|
20
|
-
staffResourceTypeId: raw.staffResourceTypeId ?? DEFAULTS.staffResourceTypeId,
|
|
21
|
-
slotWindowDays: raw.slotWindowDays ?? DEFAULTS.slotWindowDays,
|
|
22
|
-
postCheckoutUrl: raw.postCheckoutUrl ?? DEFAULTS.postCheckoutUrl
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
loadWixBookingsConfig as l
|
|
27
|
-
};
|