@adminiumjs/manifest 0.3.70 → 0.3.72

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.
Files changed (79) hide show
  1. package/dist/adjust.d.ts +1 -0
  2. package/dist/adjust.d.ts.map +1 -1
  3. package/dist/adjust.js +9 -1
  4. package/dist/adjust.js.map +1 -1
  5. package/dist/booking-calendar.d.ts +65 -0
  6. package/dist/booking-calendar.d.ts.map +1 -0
  7. package/dist/booking-calendar.js +122 -0
  8. package/dist/booking-calendar.js.map +1 -0
  9. package/dist/booking.d.ts +128 -1
  10. package/dist/booking.d.ts.map +1 -1
  11. package/dist/booking.js +188 -1
  12. package/dist/booking.js.map +1 -1
  13. package/dist/compose.d.ts.map +1 -1
  14. package/dist/compose.js +1 -0
  15. package/dist/compose.js.map +1 -1
  16. package/dist/connected-accounts.d.ts +26 -0
  17. package/dist/connected-accounts.d.ts.map +1 -0
  18. package/dist/connected-accounts.js +57 -0
  19. package/dist/connected-accounts.js.map +1 -0
  20. package/dist/embed.d.ts +101 -0
  21. package/dist/embed.d.ts.map +1 -0
  22. package/dist/embed.js +138 -0
  23. package/dist/embed.js.map +1 -0
  24. package/dist/forms.d.ts +2 -0
  25. package/dist/forms.d.ts.map +1 -1
  26. package/dist/forms.js +2 -1
  27. package/dist/forms.js.map +1 -1
  28. package/dist/holders.d.ts +67 -0
  29. package/dist/holders.d.ts.map +1 -0
  30. package/dist/holders.js +122 -0
  31. package/dist/holders.js.map +1 -0
  32. package/dist/index.d.ts +6 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +6 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/instance.d.ts +4 -1
  37. package/dist/instance.d.ts.map +1 -1
  38. package/dist/instance.js +3 -0
  39. package/dist/instance.js.map +1 -1
  40. package/dist/modules.d.ts.map +1 -1
  41. package/dist/modules.js +13 -0
  42. package/dist/modules.js.map +1 -1
  43. package/dist/outbox.d.ts +12 -0
  44. package/dist/outbox.d.ts.map +1 -1
  45. package/dist/outbox.js +63 -0
  46. package/dist/outbox.js.map +1 -1
  47. package/dist/people.d.ts +4 -0
  48. package/dist/people.d.ts.map +1 -1
  49. package/dist/people.js +10 -0
  50. package/dist/people.js.map +1 -1
  51. package/dist/public-access.d.ts +9 -0
  52. package/dist/public-access.d.ts.map +1 -1
  53. package/dist/public-access.js +47 -1
  54. package/dist/public-access.js.map +1 -1
  55. package/dist/review.d.ts +1 -1
  56. package/dist/review.d.ts.map +1 -1
  57. package/dist/review.js +4 -2
  58. package/dist/review.js.map +1 -1
  59. package/dist/roles.d.ts.map +1 -1
  60. package/dist/roles.js +3 -1
  61. package/dist/roles.js.map +1 -1
  62. package/dist/saved-parts.d.ts +24 -0
  63. package/dist/saved-parts.d.ts.map +1 -1
  64. package/dist/saved-parts.js +14 -3
  65. package/dist/saved-parts.js.map +1 -1
  66. package/dist/schema.d.ts +960 -14
  67. package/dist/schema.d.ts.map +1 -1
  68. package/dist/schema.js +54 -2
  69. package/dist/schema.js.map +1 -1
  70. package/dist/shipping.d.ts +88 -0
  71. package/dist/shipping.d.ts.map +1 -0
  72. package/dist/shipping.js +128 -0
  73. package/dist/shipping.js.map +1 -0
  74. package/dist/states.d.ts +2 -2
  75. package/dist/words.d.ts +1 -1
  76. package/dist/words.d.ts.map +1 -1
  77. package/dist/words.js +112 -0
  78. package/dist/words.js.map +1 -1
  79. package/package.json +2 -2
@@ -0,0 +1,88 @@
1
+ /**
2
+ * `shipping` — where an app keeps what a carrier needs to know about an order.
3
+ *
4
+ * ```json
5
+ * "shipping": {
6
+ * "orders": [{
7
+ * "table": "orders",
8
+ * "reference": "number",
9
+ * "address": { "name": "ship_name", "lines": ["ship_line1", "ship_line2"], "city": "ship_city",
10
+ * "region": "ship_region", "postcode": "ship_postcode", "country": "ship_country",
11
+ * "phone": "ship_phone", "email": "ship_email", "company": "ship_company" }
12
+ * }]
13
+ * }
14
+ * ```
15
+ *
16
+ * The server reads the address from these columns, so a request can never name
17
+ * where a parcel goes. An app without this block has not been updated for real
18
+ * carriers, and the engine refuses it one: a released app sends a sample
19
+ * address, and a real carrier would buy a label for it.
20
+ *
21
+ * `name`, `lines` (one to three), `city`, `postcode`, `country` and `reference`
22
+ * are required, the rest optional, and a table is named once. `tracking` and
23
+ * `carrier` name text columns the engine fills once a real label is bought; it
24
+ * never moves the order's status.
25
+ *
26
+ * Pure.
27
+ */
28
+ import { z } from 'zod';
29
+ import { type ReferenceIssue, type TableIndex } from './refs.js';
30
+ export declare const shippingOrderSchema: z.ZodObject<{
31
+ table: z.ZodString;
32
+ reference: z.ZodString;
33
+ address: z.ZodObject<{
34
+ name: z.ZodString;
35
+ lines: z.ZodArray<z.ZodString>;
36
+ city: z.ZodString;
37
+ region: z.ZodOptional<z.ZodString>;
38
+ postcode: z.ZodString;
39
+ country: z.ZodString;
40
+ phone: z.ZodOptional<z.ZodString>;
41
+ email: z.ZodOptional<z.ZodString>;
42
+ company: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strict>;
44
+ tracking: z.ZodOptional<z.ZodString>;
45
+ carrier: z.ZodOptional<z.ZodString>;
46
+ returns: z.ZodOptional<z.ZodObject<{
47
+ table: z.ZodString;
48
+ order: z.ZodString;
49
+ status: z.ZodString;
50
+ approved: z.ZodArray<z.ZodString>;
51
+ }, z.core.$strict>>;
52
+ }, z.core.$strict>;
53
+ export declare const shippingSchema: z.ZodObject<{
54
+ orders: z.ZodArray<z.ZodObject<{
55
+ table: z.ZodString;
56
+ reference: z.ZodString;
57
+ address: z.ZodObject<{
58
+ name: z.ZodString;
59
+ lines: z.ZodArray<z.ZodString>;
60
+ city: z.ZodString;
61
+ region: z.ZodOptional<z.ZodString>;
62
+ postcode: z.ZodString;
63
+ country: z.ZodString;
64
+ phone: z.ZodOptional<z.ZodString>;
65
+ email: z.ZodOptional<z.ZodString>;
66
+ company: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>;
68
+ tracking: z.ZodOptional<z.ZodString>;
69
+ carrier: z.ZodOptional<z.ZodString>;
70
+ returns: z.ZodOptional<z.ZodObject<{
71
+ table: z.ZodString;
72
+ order: z.ZodString;
73
+ status: z.ZodString;
74
+ approved: z.ZodArray<z.ZodString>;
75
+ }, z.core.$strict>>;
76
+ }, z.core.$strict>>;
77
+ }, z.core.$strict>;
78
+ export type Shipping = z.infer<typeof shippingSchema>;
79
+ export type ShippingOrder = z.infer<typeof shippingOrderSchema>;
80
+ export type ShippingAddressColumns = ShippingOrder['address'];
81
+ /** Everything wrong with an app's `shipping`, checked against its own tables and columns. */
82
+ export declare function shippingIssues<C extends {
83
+ ref: string;
84
+ type: string;
85
+ }>(m: {
86
+ shipping?: Shipping | undefined;
87
+ }, index: TableIndex<C>): ReferenceIssue[];
88
+ //# sourceMappingURL=shipping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping.d.ts","sourceRoot":"","sources":["../src/shipping.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAuB5E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;kBAwBrB,CAAC;AAEZ,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;kBAIhB,CAAC;AAEZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;AAE9D,6FAA6F;AAC7F,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,cAAc,EAAE,CAmCtJ"}
@@ -0,0 +1,128 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ /**
3
+ * `shipping` — where an app keeps what a carrier needs to know about an order.
4
+ *
5
+ * ```json
6
+ * "shipping": {
7
+ * "orders": [{
8
+ * "table": "orders",
9
+ * "reference": "number",
10
+ * "address": { "name": "ship_name", "lines": ["ship_line1", "ship_line2"], "city": "ship_city",
11
+ * "region": "ship_region", "postcode": "ship_postcode", "country": "ship_country",
12
+ * "phone": "ship_phone", "email": "ship_email", "company": "ship_company" }
13
+ * }]
14
+ * }
15
+ * ```
16
+ *
17
+ * The server reads the address from these columns, so a request can never name
18
+ * where a parcel goes. An app without this block has not been updated for real
19
+ * carriers, and the engine refuses it one: a released app sends a sample
20
+ * address, and a real carrier would buy a label for it.
21
+ *
22
+ * `name`, `lines` (one to three), `city`, `postcode`, `country` and `reference`
23
+ * are required, the rest optional, and a table is named once. `tracking` and
24
+ * `carrier` name text columns the engine fills once a real label is bought; it
25
+ * never moves the order's status.
26
+ *
27
+ * Pure.
28
+ */
29
+ import { z } from 'zod';
30
+ import { refSchema } from './refs.js';
31
+ /** What may hold a line of an address: words, or a fixed list (a country picked from one). */
32
+ const ADDRESS_TYPES = ['text', 'enum'];
33
+ /** What a bought label's number and carrier are written into. */
34
+ const TEXT_TYPES = ['text'];
35
+ /** What may hold an order's reference: `MP-4118`, or a plain number. */
36
+ const REFERENCE_TYPES = ['text', 'int', 'bigint', 'uuid'];
37
+ const shippingAddressSchema = z
38
+ .object({
39
+ name: refSchema,
40
+ lines: z.array(refSchema).min(1).max(3),
41
+ city: refSchema,
42
+ region: refSchema.optional(),
43
+ postcode: refSchema,
44
+ country: refSchema,
45
+ phone: refSchema.optional(),
46
+ email: refSchema.optional(),
47
+ company: refSchema.optional(),
48
+ })
49
+ .strict();
50
+ export const shippingOrderSchema = z
51
+ .object({
52
+ table: refSchema,
53
+ reference: refSchema,
54
+ address: shippingAddressSchema,
55
+ /** Where a bought label's tracking number is written, for the order's own screens and mail. */
56
+ tracking: refSchema.optional(),
57
+ /** Where the name of the company moving the parcel is written. */
58
+ carrier: refSchema.optional(),
59
+ /**
60
+ * An app that takes returns: which table, the column naming the order, its
61
+ * status, and the states a return label may be bought in. Without this
62
+ * block the engine sells no return label for this order.
63
+ */
64
+ returns: z
65
+ .object({
66
+ table: refSchema,
67
+ order: refSchema,
68
+ status: refSchema,
69
+ approved: z.array(z.string().min(1).max(64)).min(1).max(8),
70
+ })
71
+ .strict()
72
+ .optional(),
73
+ })
74
+ .strict();
75
+ export const shippingSchema = z
76
+ .object({
77
+ orders: z.array(shippingOrderSchema).min(1).max(8),
78
+ })
79
+ .strict();
80
+ /** Everything wrong with an app's `shipping`, checked against its own tables and columns. */
81
+ export function shippingIssues(m, index) {
82
+ const out = [];
83
+ const seen = new Set();
84
+ (m.shipping?.orders ?? []).forEach((order, o) => {
85
+ const at = (...rest) => ['shipping', 'orders', o, ...rest];
86
+ if (seen.has(order.table))
87
+ out.push({ path: at('table'), message: `"${order.table}" is named twice` });
88
+ seen.add(order.table);
89
+ if (index.table(order.table) === undefined) {
90
+ out.push({ path: at('table'), message: `"${order.table}" is not a table of this app` });
91
+ return;
92
+ }
93
+ const column = (ref, types, path) => {
94
+ const found = index.column(order.table, ref);
95
+ if (found === undefined)
96
+ out.push({ path, message: `"${order.table}" has no column "${ref}"` });
97
+ else if (!types.includes(found.type))
98
+ out.push({ path, message: `"${order.table}.${ref}" is a ${found.type} column, which cannot hold this` });
99
+ };
100
+ column(order.reference, REFERENCE_TYPES, at('reference'));
101
+ if (order.tracking !== undefined)
102
+ column(order.tracking, TEXT_TYPES, at('tracking'));
103
+ if (order.carrier !== undefined)
104
+ column(order.carrier, TEXT_TYPES, at('carrier'));
105
+ const { lines, ...single } = order.address;
106
+ for (const [field, ref] of Object.entries(single))
107
+ if (ref !== undefined)
108
+ column(ref, ADDRESS_TYPES, at('address', field));
109
+ lines.forEach((ref, l) => {
110
+ column(ref, ADDRESS_TYPES, at('address', 'lines', l));
111
+ if (lines.indexOf(ref) !== l)
112
+ out.push({ path: at('address', 'lines', l), message: `"${ref}" is named twice` });
113
+ });
114
+ if (order.returns !== undefined) {
115
+ const { table, order: link, status } = order.returns;
116
+ if (index.table(table) === undefined)
117
+ out.push({ path: at('returns', 'table'), message: `"${table}" is not a table of this app` });
118
+ else {
119
+ if (index.column(table, link) === undefined)
120
+ out.push({ path: at('returns', 'order'), message: `"${table}" has no column "${link}"` });
121
+ if (index.column(table, status) === undefined)
122
+ out.push({ path: at('returns', 'status'), message: `"${table}" has no column "${status}"` });
123
+ }
124
+ }
125
+ });
126
+ return out;
127
+ }
128
+ //# sourceMappingURL=shipping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping.js","sourceRoot":"","sources":["../src/shipping.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAwC,MAAM,WAAW,CAAC;AAE5E,8FAA8F;AAC9F,MAAM,aAAa,GAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1D,iEAAiE;AACjE,MAAM,UAAU,GAAsB,CAAC,MAAM,CAAC,CAAC;AAC/C,wEAAwE;AACxE,MAAM,eAAe,GAAsB,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AAE7E,MAAM,qBAAqB,GAAG,CAAC;KAC5B,MAAM,CAAC;IACN,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC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,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC;YACrD,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;gBAAE,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,KAAK,8BAA8B,EAAE,CAAC,CAAC;iBAC9H,CAAC;gBACJ,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,SAAS;oBAAE,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,KAAK,oBAAoB,IAAI,GAAG,EAAE,CAAC,CAAC;gBACvI,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,SAAS;oBAAE,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,KAAK,oBAAoB,MAAM,GAAG,EAAE,CAAC,CAAC;YAC9I,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC"}
package/dist/states.d.ts CHANGED
@@ -203,8 +203,8 @@ export declare const lateMoveSchema: z.ZodObject<{
203
203
  moment: z.ZodType<Moment, unknown, z.core.$ZodTypeInternals<Moment, unknown>>;
204
204
  within: z.ZodType<MomentOffset, unknown, z.core.$ZodTypeInternals<MomentOffset, unknown>>;
205
205
  mode: z.ZodEnum<{
206
- refuse: "refuse";
207
206
  flag: "flag";
207
+ refuse: "refuse";
208
208
  }>;
209
209
  flag: z.ZodOptional<z.ZodString>;
210
210
  refuse: z.ZodOptional<z.ZodEnum<{
@@ -426,8 +426,8 @@ export declare const statesSchema: z.ZodObject<{
426
426
  moment: z.ZodType<Moment, unknown, z.core.$ZodTypeInternals<Moment, unknown>>;
427
427
  within: z.ZodType<MomentOffset, unknown, z.core.$ZodTypeInternals<MomentOffset, unknown>>;
428
428
  mode: z.ZodEnum<{
429
- refuse: "refuse";
430
429
  flag: "flag";
430
+ refuse: "refuse";
431
431
  }>;
432
432
  flag: z.ZodOptional<z.ZodString>;
433
433
  refuse: z.ZodOptional<z.ZodEnum<{
package/dist/words.d.ts CHANGED
@@ -14,7 +14,7 @@ export declare const ADD_ON_INSTALL_BLOCKS: readonly ["pages", "roles", "optionL
14
14
  * runs the word, or it refuses a manifest that uses it — and its tests read
15
15
  * this list to see that none is left without one.
16
16
  */
17
- export declare const INSTALL_FLOOR_WORD_NAMES: readonly ["pages", "roles", "optionLists", "emailTemplates", "outbox", "documents", "sampleData", "publicAccess", "publicKeys", "navGroups", "seeds", "automations", "addOns", "requiredSchema.prefixed", "addOn.settingsTable", "addOn.ledgers", "addOn.adjuster", "addOn.words", "addOn.recordTabs", "addOn.hostApi.2", "addOn.lookUp", "ledger.decides", "table.indexes", "table.postings", "table.adjust", "states.actions", "states.planned", "column.addOnLink", "column.addOnLink.default", "column.tableRef", "column.announce", "column.plainText", "column.customerKey", "column.codeLast4", "code.givenByLedger", "rollup.capUnless", "rollup.latest", "roles.tables", "roles.writableFrom", "toolbar.links", "config.tabs", "config.bulk", "sampleData.addOns", "sampleData.people", "app.seeds", "table.occupies", "sequence.sample", "email.onlyWith", "email.onlyWithout", "outbox.pages.app", "rows.pair", "unlockBy.self", "availability.words", "addOn.steps", "addOn.assistant", "automations.addOnStep", "email.showWhen", "placeholder.backup", "frontend.mobile", "column.staff", "table.belongs", "table.private", "belongs.throughPrivate", "shape.create", "table.appGrants", "roles.rows", "rows.several", "listing.while", "states.handOver", "app.modules", "roles.names", "app.maps", "automations.staffRecipient", "automations.perSpell", "automations.urgent", "automations.digest", "digest.reach", "digest.sum", "digest.by", "digest.target", "digest.within", "automations.stepName", "automations.many", "automations.replyTo", "automations.lead", "automations.leadAlone", "automations.listed", "automations.staffName", "automations.recordUrl", "automations.was", "automations.settingAmount", "automations.settingValue", "automations.daysAfter", "automations.settingElse", "outbox.replyTo", "outbox.onDelete", "column.mentions", "column.place", "column.area", "column.linkable", "linkable.same", "column.file", "config.board", "board.toolbar", "board.secondAmount", "board.daysLabel", "states.notPast", "states.moveOnCreate", "publicAccess.requiresWhen", "frontend.records", "nav.offRail", "navLinks", "outbox.staffName", "card.module", "card.columnLabels", "link.staffPath", "column.changes", "rows.notBy", "rows.via", "rows.notThrough", "states.carries", "table.removal", "column.history", "bounds.other", "bounds.now", "stamp.strict", "requiredWhen.stamp", "outbox.classes", "automations.emailClass", "people", "table.keep", "publicAccess.consent", "automations.more", "addOn.forms", "publicAccess.forms", "outbox.purposes", "outbox.surveyLinks", "publicAccess.forms.source", "addOn.chat", "publicAccess.chat", "addOn.landing", "step.person", "step.recordBy", "step.recordWhere", "step.help", "step.recordTokens", "publicAccess.appColumn", "people.addOnCopies", "table.expire", "column.band", "stamp.addWorkingDays", "formula.ceilFloor", "table.check", "addOn.checker", "addOn.panels", "publicAccess.uploads", "file.upload", "file.tiff", "file.large", "file.assetKinds", "publicAccess.assets", "publicAccess.ownLink", "publicAccess.sessionRead", "people.copyDetails", "publicAccess.ownDelete", "roles.addOnPages", "agrees.length", "people.addOnCopyFrom", "email.rowPicture", "roles.addOnActions", "appGrants.more", "roles.privacyPeople", "roles.paymentsRefund", "config.columns", "addOn.scope", "frontend.instances", "page.envelope", "page.views", "app.provenance", "app.icon", "apps.requires", "instance", "column.time", "column.precision", "column.hidden", "column.yesNo", "column.name", "relation.label", "relation.remove", "relation.noConstraint", "table.exclude", "table.existingCustomers", "table.switchedOff", "table.name", "table.schema", "optionList.description", "email.kind", "email.category", "email.brand", "email.attachments", "automations.webhook", "automations.documentRender", "automations.fixedAddress", "automations.purpose", "automations.watch", "documents.options", "documents.trigger", "documents.deliver", "reports", "invoiceLayouts", "scheduledReports", "payments", "publicAccess.put", "publicAccess.delete", "publicAccess.batch", "publicAccess.path", "publicAccess.pagination", "publicAccess.rateLimit", "publicAccess.response", "publicAccess.filterable", "publicAccess.searchable", "publicAccess.orderable", "publicAccess.via", "publicAccess.count", "publicAccess.appPagination", "automations.words", "table.review", "table.review.proved", "addOn.reviews", "appGrants.appColumn", "states.supersedes", "sampleData.addOns.assets", "sampleData.productAssets", "form.referenceScope", "stamp.notEarlier", "states.starts", "publicAccess.requireSettingIn", "payments.appPayables", "payments.payableExtras", "states.waitsForPayment", "publicAccess.pay", "states.noPaymentInFlight", "publicAccess.requirePayments", "outbox.producerPayments", "outbox.manyProducers", "payments.statusSet", "addOn.sources", "provides.lead-source", "addOn.leads", "people.lead", "addOn.slots.on"];
17
+ export declare const INSTALL_FLOOR_WORD_NAMES: readonly ["pages", "roles", "optionLists", "emailTemplates", "outbox", "documents", "sampleData", "publicAccess", "publicKeys", "navGroups", "seeds", "automations", "addOns", "requiredSchema.prefixed", "addOn.settingsTable", "addOn.ledgers", "addOn.adjuster", "addOn.words", "addOn.recordTabs", "recordTab.presence", "addOn.hostApi.2", "addOn.lookUp", "ledger.decides", "table.indexes", "table.postings", "table.adjust", "states.actions", "states.planned", "column.addOnLink", "column.addOnLink.default", "column.tableRef", "column.announce", "column.plainText", "column.customerKey", "column.codeLast4", "code.givenByLedger", "addOn.framedPage", "lookup.held", "adjuster.vouchers.held", "rollup.capUnless", "rollup.latest", "roles.tables", "roles.writableFrom", "toolbar.links", "config.tabs", "config.bulk", "sampleData.addOns", "sampleData.people", "app.seeds", "table.occupies", "sequence.sample", "email.onlyWith", "email.onlyWithout", "outbox.pages.app", "rows.pair", "unlockBy.self", "availability.words", "addOn.steps", "addOn.assistant", "automations.addOnStep", "email.showWhen", "placeholder.backup", "frontend.mobile", "column.staff", "table.belongs", "table.private", "belongs.throughPrivate", "shape.create", "table.appGrants", "roles.rows", "rows.several", "listing.while", "states.handOver", "app.modules", "roles.names", "app.maps", "automations.staffRecipient", "automations.perSpell", "automations.urgent", "automations.digest", "digest.reach", "digest.sum", "digest.by", "digest.target", "digest.within", "automations.stepName", "automations.many", "automations.replyTo", "automations.lead", "automations.leadAlone", "automations.listed", "automations.staffName", "automations.recordUrl", "automations.was", "automations.settingAmount", "automations.settingValue", "automations.daysAfter", "automations.settingElse", "outbox.replyTo", "outbox.onDelete", "column.mentions", "column.place", "column.area", "column.linkable", "linkable.same", "column.file", "config.board", "board.toolbar", "board.secondAmount", "board.daysLabel", "states.notPast", "states.moveOnCreate", "publicAccess.requiresWhen", "frontend.records", "nav.offRail", "navLinks", "outbox.staffName", "card.module", "card.columnLabels", "link.staffPath", "column.changes", "rows.notBy", "rows.via", "rows.notThrough", "states.carries", "table.removal", "column.history", "bounds.other", "bounds.now", "stamp.strict", "requiredWhen.stamp", "outbox.classes", "automations.emailClass", "people", "table.keep", "publicAccess.consent", "automations.more", "addOn.forms", "publicAccess.forms", "outbox.purposes", "outbox.surveyLinks", "publicAccess.forms.source", "addOn.chat", "publicAccess.chat", "addOn.landing", "step.person", "step.recordBy", "step.recordWhere", "step.help", "step.recordTokens", "publicAccess.appColumn", "publicAccess.heldBy", "publicAccess.forget.copies", "people.addOnCopies", "table.expire", "table.holders", "column.band", "stamp.addWorkingDays", "formula.ceilFloor", "table.check", "addOn.checker", "addOn.panels", "publicAccess.uploads", "file.upload", "file.tiff", "file.large", "file.assetKinds", "publicAccess.assets", "publicAccess.ownLink", "publicAccess.sessionRead", "people.copyDetails", "publicAccess.ownDelete", "roles.addOnPages", "agrees.length", "people.addOnCopyFrom", "email.rowPicture", "roles.addOnActions", "appGrants.more", "roles.privacyPeople", "roles.paymentsRefund", "roles.shippingGrants", "config.columns", "addOn.scope", "frontend.instances", "frontend.embed", "page.envelope", "page.views", "app.provenance", "app.icon", "apps.requires", "instance", "column.time", "column.precision", "column.hidden", "column.yesNo", "column.name", "relation.label", "relation.remove", "relation.noConstraint", "table.exclude", "table.existingCustomers", "table.switchedOff", "table.name", "table.schema", "optionList.description", "email.kind", "email.category", "email.brand", "email.attachments", "automations.webhook", "automations.documentRender", "automations.fixedAddress", "automations.purpose", "automations.watch", "documents.options", "documents.trigger", "documents.deliver", "reports", "invoiceLayouts", "scheduledReports", "payments", "publicAccess.put", "publicAccess.delete", "publicAccess.batch", "publicAccess.path", "publicAccess.pagination", "publicAccess.rateLimit", "publicAccess.response", "publicAccess.filterable", "publicAccess.searchable", "publicAccess.orderable", "publicAccess.via", "publicAccess.count", "publicAccess.appPagination", "automations.words", "table.review", "table.review.proved", "table.booking.buffer", "table.booking.busy", "table.booking.anyone", "table.booking.hours.within", "table.booking.windowFor", "table.booking.placedFrom", "outbox.reviewLinks", "table.booking.calendar", "emailTemplate.calendar", "publicAccess.consent.no", "payments.refundOnStaff", "table.booking.sync", "addOn.reviews", "appGrants.appColumn", "states.supersedes", "sampleData.addOns.assets", "sampleData.productAssets", "form.referenceScope", "stamp.notEarlier", "states.starts", "publicAccess.requireSettingIn", "payments.appPayables", "payments.payableExtras", "states.waitsForPayment", "publicAccess.pay", "states.noPaymentInFlight", "publicAccess.requirePayments", "outbox.producerPayments", "outbox.manyProducers", "payments.statusSet", "addOn.sources", "provides.lead-source", "addOn.leads", "people.lead", "addOn.slots.on", "shipping", "addOn.connect.accounts", "table.connectedAccounts", "roles.accounts"];
18
18
  export type ManifestWordName = (typeof INSTALL_FLOOR_WORD_NAMES)[number];
19
19
  /**
20
20
  * The words that came after the install floor, each with the first Adminium
@@ -1 +1 @@
1
- {"version":3,"file":"words.d.ts","sourceRoot":"","sources":["../src/words.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,YAAY;IAC3B,8FAA8F;IAC9F,IAAI,EAAE,gBAAgB,CAAC;IACvB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;CACd;AAOD,2HAA2H;AAC3H,eAAO,MAAM,6BAA6B,QAAmB,CAAC;AAE9D,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,gLAcxB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,+wJAiU3B,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CA0T3E,CAAC;AAYF,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,GAAG,YAAY,EAAE,CA0hBnE"}
1
+ {"version":3,"file":"words.d.ts","sourceRoot":"","sources":["../src/words.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,YAAY;IAC3B,8FAA8F;IAC9F,IAAI,EAAE,gBAAgB,CAAC;IACvB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;CACd;AAOD,2HAA2H;AAC3H,eAAO,MAAM,6BAA6B,QAAmB,CAAC;AAE9D,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,gLAcxB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,q1KAmW3B,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAqV3E,CAAC;AAYF,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,GAAG,YAAY,EAAE,CA0jBnE"}
package/dist/words.js CHANGED
@@ -49,6 +49,7 @@ export const INSTALL_FLOOR_WORD_NAMES = [
49
49
  'addOn.adjuster',
50
50
  'addOn.words',
51
51
  'addOn.recordTabs',
52
+ 'recordTab.presence',
52
53
  'addOn.hostApi.2',
53
54
  'addOn.lookUp',
54
55
  'ledger.decides',
@@ -65,6 +66,9 @@ export const INSTALL_FLOOR_WORD_NAMES = [
65
66
  'column.customerKey',
66
67
  'column.codeLast4',
67
68
  'code.givenByLedger',
69
+ 'addOn.framedPage',
70
+ 'lookup.held',
71
+ 'adjuster.vouchers.held',
68
72
  'rollup.capUnless',
69
73
  'rollup.latest',
70
74
  'roles.tables',
@@ -196,8 +200,12 @@ export const INSTALL_FLOOR_WORD_NAMES = [
196
200
  // An add-on's entry held to the rows of the app whose key serves it; a copy of a person on an add-on's table; an add-on's
197
201
  // own rows let go some days after a moment of theirs.
198
202
  'publicAccess.appColumn',
203
+ 'publicAccess.heldBy',
204
+ 'publicAccess.forget.copies',
199
205
  'people.addOnCopies',
200
206
  'table.expire',
207
+ // Who holds a row of value: what "delete my details" keeps while it is worth something.
208
+ 'table.holders',
201
209
  // A link filled with the band a number falls in; a date so many working days on; a formula rounded up or down.
202
210
  'column.band',
203
211
  'stamp.addWorkingDays',
@@ -241,12 +249,15 @@ export const INSTALL_FLOOR_WORD_NAMES = [
241
249
  'roles.privacyPeople',
242
250
  // An app role that gives back the money paid online for the app's own records (`payments:@:refund`).
243
251
  'roles.paymentsRefund',
252
+ // An app role that books, cancels or declares customs for the app's own labels (`shipping:@:book`, `:cancel`, `:customs`).
253
+ 'roles.shippingGrants',
244
254
  // The columns a records page's list opens on, in order (`config.columns`).
245
255
  'config.columns',
246
256
  // An add-on kept once per server rather than installed per database.
247
257
  'addOn.scope',
248
258
  // A side that serves every install of its app (it sends the install it is).
249
259
  'frontend.instances',
260
+ 'frontend.embed',
250
261
  // A self-made app's page as a person arranged it, its shared views, and where the file was saved.
251
262
  'page.envelope',
252
263
  'page.views',
@@ -319,6 +330,22 @@ export const INSTALL_FLOOR_WORD_NAMES = [
319
330
  'table.review',
320
331
  // Whether a reviewed row's person proved who they are: a row's own link reviews only a proved one.
321
332
  'table.review.proved',
333
+ // A booking's clean-up time, the times a person is away, how "anyone" is given a person, whose hours cap whose, and who the window holds.
334
+ 'table.booking.buffer',
335
+ 'table.booking.busy',
336
+ 'table.booking.anyone',
337
+ 'table.booking.hours.within',
338
+ 'table.booking.windowFor',
339
+ 'table.booking.placedFrom',
340
+ // A review link only the review mails carry; a calendar entry on a booking and on a mail; a public box that says no;
341
+ // a studio's cancel refunded whoever pressed it.
342
+ 'outbox.reviewLinks',
343
+ 'table.booking.calendar',
344
+ 'emailTemplate.calendar',
345
+ 'publicAccess.consent.no',
346
+ 'payments.refundOnStaff',
347
+ // Bookings out to, and busy times in from, each person's connected calendar.
348
+ 'table.booking.sync',
322
349
  'addOn.reviews',
323
350
  'appGrants.appColumn',
324
351
  // A new row that moves the earlier rows sharing its link on (a proof sent again).
@@ -362,6 +389,13 @@ export const INSTALL_FLOOR_WORD_NAMES = [
362
389
  'people.lead',
363
390
  // A record action Adminium's own record page shows on a kind of declared table (a companies table's "Fill in details").
364
391
  'addOn.slots.on',
392
+ // Where an app's orders keep what a carrier needs: without it, the engine calls no real carrier for the app.
393
+ 'shipping',
394
+ // An add-on whose people each connect their own outside account, and the app's table those people are rows of.
395
+ 'addOn.connect.accounts',
396
+ 'table.connectedAccounts',
397
+ // An app role that connects, sends a link for or disconnects a row's outside account.
398
+ 'roles.accounts',
365
399
  ];
366
400
  /**
367
401
  * The words that came after the install floor, each with the first Adminium
@@ -552,8 +586,14 @@ export const WORD_FLOORS = {
552
586
  // rows that expire. The release that reads them is the one that holds an add-on's foreign keys to its own tables
553
587
  // (`HOST_REFERENCES_FLOOR` in `schema.ts`, moved with it at the release).
554
588
  'publicAccess.appColumn': '0.3.43',
589
+ 'publicAccess.heldBy': '0.3.71',
590
+ 'publicAccess.forget.copies': '0.3.71',
591
+ 'addOn.framedPage': '0.3.71',
592
+ 'lookup.held': '0.3.71',
593
+ 'adjuster.vouchers.held': '0.3.71',
555
594
  'people.addOnCopies': '0.3.43',
556
595
  'table.expire': '0.3.43',
596
+ 'table.holders': '0.3.71',
557
597
  // The band a number falls in, a date counted in working days, and a formula's ceil and floor: read by the same release.
558
598
  'column.band': '0.3.43',
559
599
  'stamp.addWorkingDays': '0.3.43',
@@ -590,10 +630,14 @@ export const WORD_FLOORS = {
590
630
  'appGrants.more': '0.3.47',
591
631
  'roles.privacyPeople': '0.3.47',
592
632
  'roles.paymentsRefund': '0.3.60',
633
+ // A release before refuses the grant.
634
+ 'roles.shippingGrants': '0.3.72',
593
635
  // A release before ignores the key, and the list opens on the columns Adminium picks.
594
636
  'config.columns': '0.3.47',
595
637
  'addOn.scope': '0.3.49',
596
638
  'frontend.instances': '0.3.49',
639
+ // Screens a listed website may frame: a release before refuses the key.
640
+ 'frontend.embed': '0.3.71',
597
641
  // What a file saved from a dashboard carries, and the fields its tables and mails need: a release before refuses each key.
598
642
  'page.envelope': '0.3.49',
599
643
  'page.views': '0.3.49',
@@ -671,6 +715,10 @@ export const WORD_FLOORS = {
671
715
  'addOn.leads': '0.3.66',
672
716
  'people.lead': '0.3.66',
673
717
  'addOn.slots.on': '0.3.66',
718
+ 'shipping': '0.3.72',
719
+ 'addOn.connect.accounts': '0.3.71',
720
+ 'table.connectedAccounts': '0.3.71',
721
+ 'roles.accounts': '0.3.71',
674
722
  // A release before refuses the keys (and pages from a file not made on an Adminium).
675
723
  'publicAccess.filterable': '0.3.68',
676
724
  'publicAccess.searchable': '0.3.68',
@@ -681,6 +729,19 @@ export const WORD_FLOORS = {
681
729
  'automations.words': '0.3.68',
682
730
  'table.review': '0.3.68',
683
731
  'table.review.proved': '0.3.70',
732
+ 'table.booking.buffer': '0.3.71',
733
+ 'recordTab.presence': '0.3.71',
734
+ 'table.booking.busy': '0.3.71',
735
+ 'table.booking.anyone': '0.3.71',
736
+ 'table.booking.hours.within': '0.3.71',
737
+ 'table.booking.windowFor': '0.3.71',
738
+ 'table.booking.placedFrom': '0.3.71',
739
+ 'outbox.reviewLinks': '0.3.71',
740
+ 'table.booking.calendar': '0.3.71',
741
+ 'emailTemplate.calendar': '0.3.71',
742
+ 'publicAccess.consent.no': '0.3.71',
743
+ 'payments.refundOnStaff': '0.3.71',
744
+ 'table.booking.sync': '0.3.71',
684
745
  'addOn.reviews': '0.3.68',
685
746
  'appGrants.appColumn': '0.3.68',
686
747
  };
@@ -711,10 +772,14 @@ export function installFloorWords(document) {
711
772
  const block = isDoc(document['addOn']) ? document['addOn'] : {};
712
773
  if (block['settingsTable'] !== undefined)
713
774
  out.push({ word: 'addOn.settingsTable', path: 'addOn.settingsTable' });
775
+ if (block['framedPage'] !== undefined)
776
+ out.push({ word: 'addOn.framedPage', path: 'addOn.framedPage' });
714
777
  if (block['ledgers'] !== undefined)
715
778
  out.push({ word: 'addOn.ledgers', path: 'addOn.ledgers' });
716
779
  if (block['adjuster'] !== undefined)
717
780
  out.push({ word: 'addOn.adjuster', path: 'addOn.adjuster' });
781
+ if (isDoc(block['adjuster']) && isDoc(block['adjuster']['vouchers']) && block['adjuster']['vouchers']['held'] !== undefined)
782
+ out.push({ word: 'adjuster.vouchers.held', path: 'addOn.adjuster.vouchers.held' });
718
783
  if (block['checker'] !== undefined)
719
784
  out.push({ word: 'addOn.checker', path: 'addOn.checker' });
720
785
  if (block['panels'] !== undefined)
@@ -723,6 +788,12 @@ export function installFloorWords(document) {
723
788
  out.push({ word: 'addOn.words', path: 'addOn.words' });
724
789
  if (block['recordTabs'] !== undefined)
725
790
  out.push({ word: 'addOn.recordTabs', path: 'addOn.recordTabs' });
791
+ if (Array.isArray(block['recordTabs'])) {
792
+ block['recordTabs'].forEach((tab, index) => {
793
+ if (isDoc(tab) && tab['presence'] !== undefined)
794
+ out.push({ word: 'recordTab.presence', path: `addOn.recordTabs.${String(index)}.presence` });
795
+ });
796
+ }
726
797
  // Pages that also need the data kit.
727
798
  if (block['hostApi'] === 2)
728
799
  out.push({ word: 'addOn.hostApi.2', path: 'addOn.hostApi' });
@@ -744,6 +815,8 @@ export function installFloorWords(document) {
744
815
  out.push({ word: 'addOn.scope', path: 'addOn.scope' });
745
816
  if (block['sources'] !== undefined)
746
817
  out.push({ word: 'addOn.sources', path: 'addOn.sources' });
818
+ if (isDoc(block['connect']) && block['connect']['accounts'] !== undefined)
819
+ out.push({ word: 'addOn.connect.accounts', path: 'addOn.connect.accounts' });
747
820
  if (block['leads'] !== undefined)
748
821
  out.push({ word: 'addOn.leads', path: 'addOn.leads' });
749
822
  // A fill the generated record page draws: the kind of table it acts on, and its words and icon.
@@ -831,6 +904,8 @@ export function installFloorWords(document) {
831
904
  // A side that serves every install of its app.
832
905
  if (isDoc(frontend) && frontend['instances'] !== undefined)
833
906
  out.push({ word: 'frontend.instances', path: `frontends.${String(f)}.instances` });
907
+ if (isDoc(frontend) && frontend['embed'] !== undefined)
908
+ out.push({ word: 'frontend.embed', path: `frontends.${String(f)}.embed` });
834
909
  });
835
910
  // An entry of the app's section that is not a page.
836
911
  if (document['navLinks'] !== undefined)
@@ -846,6 +921,10 @@ export function installFloorWords(document) {
846
921
  out.push({ word: 'roles.privacyPeople', path: `roles.${String(r)}.permissions.${String(g)}` });
847
922
  if (grant === 'payments:@:refund')
848
923
  out.push({ word: 'roles.paymentsRefund', path: `roles.${String(r)}.permissions.${String(g)}` });
924
+ if (typeof grant === 'string' && /^shipping:@:(book|cancel|customs)$/.test(grant))
925
+ out.push({ word: 'roles.shippingGrants', path: `roles.${String(r)}.permissions.${String(g)}` });
926
+ if (typeof grant === 'string' && grant.startsWith('accounts:@:'))
927
+ out.push({ word: 'roles.accounts', path: `roles.${String(r)}.permissions.${String(g)}` });
849
928
  });
850
929
  });
851
930
  // What only a file made on an Adminium carries.
@@ -873,6 +952,10 @@ export function installFloorWords(document) {
873
952
  out.push({ word: 'payments.payableExtras', path: `payments.payables.${String(p)}` });
874
953
  if (status !== null && status['set'] !== undefined)
875
954
  out.push({ word: 'payments.statusSet', path: `payments.payables.${String(p)}.status.set` });
955
+ const refundOn = isDoc(payable['refundOn']) ? payable['refundOn'] : null;
956
+ if (refundOn !== null && ((isDoc(refundOn['before']) && refundOn['before']['binds'] !== undefined) || list(refundOn['moves']).some((move) => isDoc(move) && list(move['by']).includes('staff')))) {
957
+ out.push({ word: 'payments.refundOnStaff', path: `payments.payables.${String(p)}.refundOn` });
958
+ }
876
959
  });
877
960
  // A row removed through a public entry of an app (an add-on's own link says `publicAccess.ownDelete`).
878
961
  list(document['publicAccess']).forEach((entry, e) => {
@@ -894,11 +977,15 @@ export function installFloorWords(document) {
894
977
  if (isDoc(entry) && entry['lead'] !== undefined)
895
978
  out.push({ word: 'people.lead', path: `people.${String(e)}.lead` });
896
979
  });
980
+ if (document['shipping'] !== undefined)
981
+ out.push({ word: 'shipping', path: 'shipping' });
897
982
  }
898
983
  // An agreement on a text's length, on an entry or on its child rows (two levels).
899
984
  list(document['publicAccess']).forEach((entry, e) => {
900
985
  if (isDoc(entry) && entry['pay'] !== undefined)
901
986
  out.push({ word: 'publicAccess.pay', path: `publicAccess.${String(e)}.pay` });
987
+ if (isDoc(entry) && isDoc(entry['consent']) && entry['consent']['means'] !== undefined)
988
+ out.push({ word: 'publicAccess.consent.no', path: `publicAccess.${String(e)}.consent.means` });
902
989
  if (isDoc(entry) && entry['requirePayments'] !== undefined)
903
990
  out.push({ word: 'publicAccess.requirePayments', path: `publicAccess.${String(e)}.requirePayments` });
904
991
  // A choice in the settings row that must hold one of some values.
@@ -934,6 +1021,17 @@ export function installFloorWords(document) {
934
1021
  out.push({ word: 'table.review', path: `${at}.review` });
935
1022
  if (isDoc(table['review']) && table['review']['proved'] !== undefined)
936
1023
  out.push({ word: 'table.review.proved', path: `${at}.review.proved` });
1024
+ if (isDoc(table['booking'])) {
1025
+ const booking = table['booking'];
1026
+ for (const [name, word] of [['buffer', 'table.booking.buffer'], ['busy', 'table.booking.busy'], ['anyone', 'table.booking.anyone'], ['windowFor', 'table.booking.windowFor'], ['sync', 'table.booking.sync'], ['placedFrom', 'table.booking.placedFrom']]) {
1027
+ if (booking[name] !== undefined)
1028
+ out.push({ word, path: `${at}.booking.${name}` });
1029
+ }
1030
+ if (isDoc(booking['hours']) && isDoc(booking['hours']['own']) && booking['hours']['own']['within'] !== undefined)
1031
+ out.push({ word: 'table.booking.hours.within', path: `${at}.booking.hours.own.within` });
1032
+ }
1033
+ if (isDoc(table['booking']) && table['booking']['calendar'] !== undefined)
1034
+ out.push({ word: 'table.booking.calendar', path: `${at}.booking.calendar` });
937
1035
  if (table['belongs'] !== undefined)
938
1036
  out.push({ word: 'table.belongs', path: `${at}.belongs` });
939
1037
  list(table['belongs']).forEach((way, w) => {
@@ -953,6 +1051,8 @@ export function installFloorWords(document) {
953
1051
  });
954
1052
  if (table['builtOn'] !== undefined && isDoc(table['states']) && table['states']['create'] !== undefined)
955
1053
  out.push({ word: 'shape.create', path: `${at}.states.create` });
1054
+ if (table['connectedAccounts'] !== undefined)
1055
+ out.push({ word: 'table.connectedAccounts', path: `${at}.connectedAccounts` });
956
1056
  if (table['appGrants'] !== undefined)
957
1057
  out.push({ word: 'table.appGrants', path: `${at}.appGrants` });
958
1058
  if (isDoc(table['appGrants']) && table['appGrants']['appColumn'] !== undefined)
@@ -972,6 +1072,8 @@ export function installFloorWords(document) {
972
1072
  out.push({ word: 'table.keep', path: `${at}.keep` });
973
1073
  if (table['expire'] !== undefined)
974
1074
  out.push({ word: 'table.expire', path: `${at}.expire` });
1075
+ if (table['holders'] !== undefined)
1076
+ out.push({ word: 'table.holders', path: `${at}.holders` });
975
1077
  if (isDoc(table['states']) && table['states']['actions'] !== undefined)
976
1078
  out.push({ word: 'states.actions', path: `${at}.states.actions` });
977
1079
  list(isDoc(table['states']) ? table['states']['actions'] : undefined).forEach((action, a) => {
@@ -1049,6 +1151,8 @@ export function installFloorWords(document) {
1049
1151
  }
1050
1152
  if (isDoc(rules['code']) && rules['code']['givenByLedger'] !== undefined)
1051
1153
  out.push({ word: 'code.givenByLedger', path: `${here}.code.givenByLedger` });
1154
+ if (isDoc(rules['lookup']) && rules['lookup']['held'] !== undefined)
1155
+ out.push({ word: 'lookup.held', path: `${here}.lookup.held` });
1052
1156
  if (isDoc(rules['rollup']) && rules['rollup']['capUnless'] !== undefined)
1053
1157
  out.push({ word: 'rollup.capUnless', path: `${here}.rollup.capUnless` });
1054
1158
  if (isDoc(rules['sequence']) && rules['sequence']['sample'] !== undefined)
@@ -1174,6 +1278,8 @@ export function installFloorWords(document) {
1174
1278
  });
1175
1279
  }
1176
1280
  list(document['emailTemplates']).forEach((template, t) => {
1281
+ if (isDoc(template) && template['calendar'] !== undefined)
1282
+ out.push({ word: 'emailTemplate.calendar', path: `emailTemplates.${String(t)}.calendar` });
1177
1283
  for (const key of ['kind', 'category', 'brand', 'attachments']) {
1178
1284
  if (isDoc(template) && template[key] !== undefined)
1179
1285
  out.push({ word: `email.${key}`, path: `emailTemplates.${String(t)}.${key}` });
@@ -1251,6 +1357,8 @@ export function installFloorWords(document) {
1251
1357
  out.push({ word: 'outbox.purposes', path: 'outbox.purposes' });
1252
1358
  if (outbox['surveyLinks'] !== undefined)
1253
1359
  out.push({ word: 'outbox.surveyLinks', path: 'outbox.surveyLinks' });
1360
+ if (outbox['reviewLinks'] !== undefined)
1361
+ out.push({ word: 'outbox.reviewLinks', path: 'outbox.reviewLinks' });
1254
1362
  if (list(outbox['producers']).length > OUTBOX_PRODUCERS_BEFORE)
1255
1363
  out.push({ word: 'outbox.manyProducers', path: 'outbox.producers' });
1256
1364
  list(outbox['producers']).forEach((producer, p) => {
@@ -1425,6 +1533,10 @@ export function installFloorWords(document) {
1425
1533
  out.push({ word: 'publicAccess.forms.source', path: `publicAccess.${String(e)}.source` });
1426
1534
  if (isDoc(entry) && entry['appColumn'] !== undefined)
1427
1535
  out.push({ word: 'publicAccess.appColumn', path: `publicAccess.${String(e)}.appColumn` });
1536
+ if (isDoc(entry) && entry['heldBy'] !== undefined)
1537
+ out.push({ word: 'publicAccess.heldBy', path: `publicAccess.${String(e)}.heldBy` });
1538
+ if (isDoc(entry) && isDoc(entry['forget']) && entry['forget']['copies'] !== undefined)
1539
+ out.push({ word: 'publicAccess.forget.copies', path: `publicAccess.${String(e)}.forget.copies` });
1428
1540
  // A guest's uploads, on the entry or on any level of its child rows.
1429
1541
  const uploadsIn = (node, path) => {
1430
1542
  if (!isDoc(node))