@ai-matrx/records 0.27.0 → 0.29.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/CHANGELOG.md +23 -0
- package/dist/core/index.cjs +17 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +15 -3
- package/dist/core/index.d.ts +15 -3
- package/dist/core/index.js +17 -0
- package/dist/core/index.js.map +1 -1
- package/dist/field-DrOTIPCF.d.cts +3546 -0
- package/dist/field-DrOTIPCF.d.ts +3546 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -3545
- package/dist/index.d.ts +43 -3545
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +17 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +50 -1
- package/dist/react/index.d.ts +50 -1
- package/dist/react/index.js +17 -0
- package/dist/react/index.js.map +1 -1
- package/dist/use-cases/index.cjs +2658 -0
- package/dist/use-cases/index.cjs.map +1 -0
- package/dist/use-cases/index.d.cts +447 -0
- package/dist/use-cases/index.d.ts +447 -0
- package/dist/use-cases/index.js +2642 -0
- package/dist/use-cases/index.js.map +1 -0
- package/package.json +11 -1
package/dist/react/index.cjs
CHANGED
|
@@ -60,6 +60,7 @@ __export(react_exports, {
|
|
|
60
60
|
VALUE_ENVELOPE_KEYS: () => VALUE_ENVELOPE_KEYS,
|
|
61
61
|
asPermissionLevel: () => asPermissionLevel,
|
|
62
62
|
atLeast: () => atLeast,
|
|
63
|
+
bookingPath: () => bookingPath,
|
|
63
64
|
choiceSlug: () => choiceSlug,
|
|
64
65
|
choiceValuesOf: () => choiceValuesOf,
|
|
65
66
|
choicesOf: () => choicesOf,
|
|
@@ -1967,6 +1968,12 @@ var DOORS = {
|
|
|
1967
1968
|
// are server-lane doors and a browser never calls them.
|
|
1968
1969
|
forms: "forms",
|
|
1969
1970
|
formDeclare: "form_declare",
|
|
1971
|
+
// PRODUCTS row 14 — "let clients book a 30-minute consult". A booking page IS an
|
|
1972
|
+
// `anon_form`, so it is opened and closed by `anonPublish` like any other; this is
|
|
1973
|
+
// the owner's list of them with the numbers that make it worth opening. The
|
|
1974
|
+
// VISITOR's three (`booking_public`, `booking_hold`, `booking_confirm`) are
|
|
1975
|
+
// deliberately absent: they are server-lane and a browser never calls them.
|
|
1976
|
+
bookings: "bookings",
|
|
1970
1977
|
// PRODUCTS row 9 — "pull my spreadsheet in". W4-IO built `io_import_open` and
|
|
1971
1978
|
// `io_import_rows`; lane IMPORT gave a run an IDENTITY (the file's sha-256, so
|
|
1972
1979
|
// a re-import doubles nothing), a duplicate key, a policy, per-row outcomes
|
|
@@ -2812,6 +2819,13 @@ function createRecordsClient(config) {
|
|
|
2812
2819
|
"forms"
|
|
2813
2820
|
);
|
|
2814
2821
|
},
|
|
2822
|
+
async bookings(args) {
|
|
2823
|
+
return callDoor(
|
|
2824
|
+
DOORS.bookings,
|
|
2825
|
+
{ p_organization_id: org, p_table_id: args?.table_id ?? null },
|
|
2826
|
+
"bookings"
|
|
2827
|
+
);
|
|
2828
|
+
},
|
|
2815
2829
|
async formDeclare(args) {
|
|
2816
2830
|
return callDoor(
|
|
2817
2831
|
DOORS.formDeclare,
|
|
@@ -4470,6 +4484,9 @@ function mayDrag(level) {
|
|
|
4470
4484
|
}
|
|
4471
4485
|
|
|
4472
4486
|
// src/rule.ts
|
|
4487
|
+
function bookingPath(formId) {
|
|
4488
|
+
return `/b/${formId}`;
|
|
4489
|
+
}
|
|
4473
4490
|
function publicFormPath(formId) {
|
|
4474
4491
|
return `/f/${formId}`;
|
|
4475
4492
|
}
|