@adminiumjs/manifest 0.3.74 → 0.3.76
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/automations.d.ts +124 -0
- package/dist/automations.d.ts.map +1 -1
- package/dist/automations.js +61 -1
- package/dist/automations.js.map +1 -1
- package/dist/compose.js +1 -1
- package/dist/compose.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/instance.d.ts +2 -1
- package/dist/instance.d.ts.map +1 -1
- package/dist/instance.js +1 -0
- package/dist/instance.js.map +1 -1
- package/dist/outbox.d.ts +20 -2
- package/dist/outbox.d.ts.map +1 -1
- package/dist/outbox.js +77 -5
- package/dist/outbox.js.map +1 -1
- package/dist/people.d.ts +58 -2
- package/dist/people.d.ts.map +1 -1
- package/dist/people.js +64 -3
- package/dist/people.js.map +1 -1
- package/dist/public-access.d.ts +23 -4
- package/dist/public-access.d.ts.map +1 -1
- package/dist/public-access.js +15 -6
- package/dist/public-access.js.map +1 -1
- package/dist/schema.d.ts +276 -9
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +24 -2
- package/dist/schema.js.map +1 -1
- package/dist/text-messages.d.ts +123 -0
- package/dist/text-messages.d.ts.map +1 -0
- package/dist/text-messages.js +314 -0
- package/dist/text-messages.js.map +1 -0
- package/dist/words.d.ts +6 -1
- package/dist/words.d.ts.map +1 -1
- package/dist/words.js +70 -0
- package/dist/words.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AN APP'S TEXT MESSAGES, AS ITS MANIFEST DECLARES THEM.
|
|
3
|
+
*
|
|
4
|
+
* A text is a template of its own (`textTemplates`), never an email template
|
|
5
|
+
* with fields left empty, so nothing about an installed email changes. An
|
|
6
|
+
* outbox kind is sent as a text when `outbox.channels` says `sms`; one kind has
|
|
7
|
+
* one channel, and "email and text" is two kinds.
|
|
8
|
+
*
|
|
9
|
+
* A text is not private and a phone number gets reassigned, so nothing that
|
|
10
|
+
* opens a door travels by SMS: no sign-in link, no minted link, no code, no QR
|
|
11
|
+
* value. No template asks for a "YES" either, because a provider reads that
|
|
12
|
+
* reply as an opt-in. This file holds that check once: the validator asks it at
|
|
13
|
+
* install and on save, and the send path asks it again for every message.
|
|
14
|
+
*
|
|
15
|
+
* Text consent is its own answer. A kind sent as a text names no mail purpose,
|
|
16
|
+
* so it never inherits a service mail's stop link, and a public form's box for
|
|
17
|
+
* texts (`publicAccess[].textConsent`) is a separate, unticked box that no
|
|
18
|
+
* booking or purchase can depend on.
|
|
19
|
+
*
|
|
20
|
+
* Pure.
|
|
21
|
+
*/
|
|
22
|
+
import { z } from 'zod';
|
|
23
|
+
import { type Outbox } from './outbox.js';
|
|
24
|
+
import { type People, type PublicConsent, type PublicTextConsents } from './people.js';
|
|
25
|
+
import { type ReferenceIssue, type TableIndex } from './refs.js';
|
|
26
|
+
/** The most characters a text template's words may hold, before anything is filled. */
|
|
27
|
+
export declare const TEXT_TEMPLATE_BODY_MAX = 1000;
|
|
28
|
+
/** The most text templates one manifest declares. */
|
|
29
|
+
export declare const TEXT_TEMPLATES_MAX = 32;
|
|
30
|
+
/** The names a template prints a person's minted links under, beyond the outbox's own. */
|
|
31
|
+
export declare const OBJECT_LINK_VARIABLE = "object_link";
|
|
32
|
+
export declare const CALENDAR_GOOGLE_VARIABLE = "calendarGoogle";
|
|
33
|
+
export declare const CALENDAR_OUTLOOK_VARIABLE = "calendarOutlook";
|
|
34
|
+
/**
|
|
35
|
+
* Whether staff read the texts customers send back (`textReplies`). `off` is for
|
|
36
|
+
* an app whose customers may write what nobody should hold in a shared inbox,
|
|
37
|
+
* such as a clinic's patients writing symptoms: nothing is kept, and the sender
|
|
38
|
+
* gets one fixed answer saying the number is not read.
|
|
39
|
+
*/
|
|
40
|
+
export declare const TEXT_REPLIES: readonly ["on", "off"];
|
|
41
|
+
export type TextReplies = (typeof TEXT_REPLIES)[number];
|
|
42
|
+
/** Whether a placeholder reads something that must not leave by text. `codeNames` are the columns the app declares as codes. */
|
|
43
|
+
export declare function readsCredential(name: string, codeNames?: readonly string[]): boolean;
|
|
44
|
+
export declare function asksForYes(text: string): boolean;
|
|
45
|
+
/** Why a text template cannot be sent, whatever fills it. */
|
|
46
|
+
export type TextTemplateRefusal = 'template-empty' | 'credential-in-template' | 'asks-for-yes';
|
|
47
|
+
export type TextTemplateVerdict = {
|
|
48
|
+
ok: true;
|
|
49
|
+
} | {
|
|
50
|
+
ok: false;
|
|
51
|
+
reason: TextTemplateRefusal;
|
|
52
|
+
names?: string[];
|
|
53
|
+
};
|
|
54
|
+
export declare function checkTextTemplate(template: string, codeNames?: readonly string[]): TextTemplateVerdict;
|
|
55
|
+
/** The placeholders of `body` that read a column holding a code, whatever the column is called. */
|
|
56
|
+
export declare function codeNamesIn(body: string, codeColumns: ReadonlySet<string>): string[];
|
|
57
|
+
export declare const textTemplateSchema: z.ZodObject<{
|
|
58
|
+
key: z.ZodString;
|
|
59
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
60
|
+
locales: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
61
|
+
body: z.ZodString;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export type TextTemplate = z.infer<typeof textTemplateSchema>;
|
|
65
|
+
/** Whether an outbox kind is sent as a text. */
|
|
66
|
+
export declare function isTextKind(outbox: Pick<Outbox, 'channels'> | undefined, kind: string): boolean;
|
|
67
|
+
/** Whether a customer is waiting for this text right now, so it may go outside the sending hours. */
|
|
68
|
+
export declare function isWaitingKind(outbox: Pick<Outbox, 'waiting'> | undefined, kind: string): boolean;
|
|
69
|
+
interface TextColumn {
|
|
70
|
+
ref: string;
|
|
71
|
+
type: string;
|
|
72
|
+
nullable?: boolean | undefined;
|
|
73
|
+
default?: unknown;
|
|
74
|
+
rules?: Record<string, unknown> | undefined;
|
|
75
|
+
}
|
|
76
|
+
type TextTable = {
|
|
77
|
+
ref: string;
|
|
78
|
+
columns: readonly TextColumn[];
|
|
79
|
+
};
|
|
80
|
+
/** Everything wrong with the words of the app's text templates. */
|
|
81
|
+
export declare function textTemplateIssues(m: {
|
|
82
|
+
key: string;
|
|
83
|
+
textTemplates?: readonly TextTemplate[] | undefined;
|
|
84
|
+
emailTemplates?: readonly {
|
|
85
|
+
key: string;
|
|
86
|
+
}[] | undefined;
|
|
87
|
+
requiredSchema?: {
|
|
88
|
+
tables: readonly TextTable[];
|
|
89
|
+
} | undefined;
|
|
90
|
+
}): ReferenceIssue[];
|
|
91
|
+
/** Everything wrong with how the outbox sends texts. An outbox that names no text word has nothing here. */
|
|
92
|
+
export declare function outboxTextIssues(m: {
|
|
93
|
+
kind?: string | undefined;
|
|
94
|
+
outbox?: Outbox | undefined;
|
|
95
|
+
textTemplates?: readonly TextTemplate[] | undefined;
|
|
96
|
+
people?: People | undefined;
|
|
97
|
+
requiredSchema?: {
|
|
98
|
+
tables: readonly TextTable[];
|
|
99
|
+
} | undefined;
|
|
100
|
+
}, index: TableIndex): ReferenceIssue[];
|
|
101
|
+
/** Everything wrong with a public entry's box for texts. */
|
|
102
|
+
export declare function publicTextConsentIssues(m: {
|
|
103
|
+
people?: People | undefined;
|
|
104
|
+
publicAccess?: readonly {
|
|
105
|
+
table: string;
|
|
106
|
+
methods: readonly string[];
|
|
107
|
+
writable?: readonly string[] | undefined;
|
|
108
|
+
writableValues?: Readonly<Record<string, unknown>> | undefined;
|
|
109
|
+
defaults?: Readonly<Record<string, unknown>> | undefined;
|
|
110
|
+
requires?: readonly string[] | undefined;
|
|
111
|
+
requiresWhen?: Readonly<Record<string, unknown>> | undefined;
|
|
112
|
+
consent?: PublicConsent | undefined;
|
|
113
|
+
textConsent?: PublicTextConsents | undefined;
|
|
114
|
+
identity?: {
|
|
115
|
+
table: string;
|
|
116
|
+
} | undefined;
|
|
117
|
+
claimedBy?: {
|
|
118
|
+
table: string;
|
|
119
|
+
} | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
}, index: TableIndex): ReferenceIssue[];
|
|
122
|
+
export {};
|
|
123
|
+
//# sourceMappingURL=text-messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-messages.d.ts","sourceRoot":"","sources":["../src/text-messages.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAA8F,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACtI,OAAO,EAAoB,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGzG,OAAO,EAAgC,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/F,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,qDAAqD;AACrD,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,0FAA0F;AAC1F,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,eAAO,MAAM,yBAAyB,oBAAoB,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,YAAY,wBAAyB,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AASxD,gIAAgI;AAChI,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,GAAE,SAAS,MAAM,EAAO,GAAG,OAAO,CAMxF;AAaD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED,6DAA6D;AAC7D,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG,wBAAwB,GAAG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E,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;QACzC,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;QAC7D,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;QACpC,WAAW,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;QAC7C,QAAQ,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,SAAS,CAAC;QACzC,SAAS,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,GAAG,SAAS,CAAC;KAC3C,EAAE,GACH,SAAS,CAAC;CACf,EACD,KAAK,EAAE,UAAU,GAChB,cAAc,EAAE,CAmBlB"}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
/**
|
|
3
|
+
* AN APP'S TEXT MESSAGES, AS ITS MANIFEST DECLARES THEM.
|
|
4
|
+
*
|
|
5
|
+
* A text is a template of its own (`textTemplates`), never an email template
|
|
6
|
+
* with fields left empty, so nothing about an installed email changes. An
|
|
7
|
+
* outbox kind is sent as a text when `outbox.channels` says `sms`; one kind has
|
|
8
|
+
* one channel, and "email and text" is two kinds.
|
|
9
|
+
*
|
|
10
|
+
* A text is not private and a phone number gets reassigned, so nothing that
|
|
11
|
+
* opens a door travels by SMS: no sign-in link, no minted link, no code, no QR
|
|
12
|
+
* value. No template asks for a "YES" either, because a provider reads that
|
|
13
|
+
* reply as an opt-in. This file holds that check once: the validator asks it at
|
|
14
|
+
* install and on save, and the send path asks it again for every message.
|
|
15
|
+
*
|
|
16
|
+
* Text consent is its own answer. A kind sent as a text names no mail purpose,
|
|
17
|
+
* so it never inherits a service mail's stop link, and a public form's box for
|
|
18
|
+
* texts (`publicAccess[].textConsent`) is a separate, unticked box that no
|
|
19
|
+
* booking or purchase can depend on.
|
|
20
|
+
*
|
|
21
|
+
* Pure.
|
|
22
|
+
*/
|
|
23
|
+
import { z } from 'zod';
|
|
24
|
+
import { GROUPED_FORM, isCodeColumn, REVIEW_LINK_VARIABLE, STOP_LINK_VARIABLE, SURVEY_LINK_VARIABLE } from './outbox.js';
|
|
25
|
+
import { textConsentBoxes } from './people.js';
|
|
26
|
+
import { placeholdersIn } from './placeholders.js';
|
|
27
|
+
import { personalColumn } from './public-access.js';
|
|
28
|
+
import { bcp47TagSchema, textOrLabels } from './refs.js';
|
|
29
|
+
/** The most characters a text template's words may hold, before anything is filled. */
|
|
30
|
+
export const TEXT_TEMPLATE_BODY_MAX = 1000;
|
|
31
|
+
/** The most text templates one manifest declares. */
|
|
32
|
+
export const TEXT_TEMPLATES_MAX = 32;
|
|
33
|
+
/** The names a template prints a person's minted links under, beyond the outbox's own. */
|
|
34
|
+
export const OBJECT_LINK_VARIABLE = 'object_link';
|
|
35
|
+
export const CALENDAR_GOOGLE_VARIABLE = 'calendarGoogle';
|
|
36
|
+
export const CALENDAR_OUTLOOK_VARIABLE = 'calendarOutlook';
|
|
37
|
+
/**
|
|
38
|
+
* Whether staff read the texts customers send back (`textReplies`). `off` is for
|
|
39
|
+
* an app whose customers may write what nobody should hold in a shared inbox,
|
|
40
|
+
* such as a clinic's patients writing symptoms: nothing is kept, and the sender
|
|
41
|
+
* gets one fixed answer saying the number is not read.
|
|
42
|
+
*/
|
|
43
|
+
export const TEXT_REPLIES = ['on', 'off'];
|
|
44
|
+
/** Links the engine mints for one person. */
|
|
45
|
+
const MINTED_LINKS = new Set(['signInLink', SURVEY_LINK_VARIABLE, REVIEW_LINK_VARIABLE, STOP_LINK_VARIABLE, OBJECT_LINK_VARIABLE, CALENDAR_GOOGLE_VARIABLE, CALENDAR_OUTLOOK_VARIABLE]);
|
|
46
|
+
const CREDENTIAL_NAME = /(?:^|[_-])(?:code|otp|pin|passcode|password|passwd|token|secret)$|[a-z0-9](?:Code|Otp|Pin|Passcode|Password|Passwd|Token|Secret)$/;
|
|
47
|
+
/** Codes that open nothing. */
|
|
48
|
+
const HARMLESS_CODE = /(?:^|[_-])(?:postal|post|zip|country|currency|area|calling|dial|language|locale|tax|product|sku|item|colou?r)[_-]?code$/i;
|
|
49
|
+
/** Whether a placeholder reads something that must not leave by text. `codeNames` are the columns the app declares as codes. */
|
|
50
|
+
export function readsCredential(name, codeNames = []) {
|
|
51
|
+
if (MINTED_LINKS.has(name))
|
|
52
|
+
return true;
|
|
53
|
+
if (codeNames.some((code) => name === code || name.startsWith(`${code}.`)))
|
|
54
|
+
return true;
|
|
55
|
+
const last = name.slice(name.lastIndexOf('.') + 1);
|
|
56
|
+
if (last === 'qr' || last === GROUPED_FORM)
|
|
57
|
+
return true;
|
|
58
|
+
return CREDENTIAL_NAME.test(last) && !HARMLESS_CODE.test(last);
|
|
59
|
+
}
|
|
60
|
+
/** "Reply YES", in the eight languages a template can be written in. */
|
|
61
|
+
const ASKS_FOR_YES = [
|
|
62
|
+
/\b(?:reply|respond|answer|text|send)\b[^.!?\n]{0,24}\byes\b/iu,
|
|
63
|
+
/\b(?:antworte|antworten)\b[^.!?\n]{0,24}\bja\b/iu,
|
|
64
|
+
/\b(?:svar|send)\b[^.!?\n]{0,24}\bja\b/iu,
|
|
65
|
+
/\b(?:r[ée]ponds|r[ée]pondez|envoyez)\b[^.!?\n]{0,24}\boui\b/iu,
|
|
66
|
+
/\bodpov[eě]z(?:te)?\b[^.!?\n]{0,24}\bano\b/iu,
|
|
67
|
+
/(?:رد|ردّ|أرسل|ارسل)[^.!?؟\n]{0,24}نعم/u,
|
|
68
|
+
/(?:回复|回覆)[^。!?\n]{0,12}(?:是|好)/u,
|
|
69
|
+
];
|
|
70
|
+
export function asksForYes(text) {
|
|
71
|
+
return ASKS_FOR_YES.some((pattern) => pattern.test(text));
|
|
72
|
+
}
|
|
73
|
+
export function checkTextTemplate(template, codeNames = []) {
|
|
74
|
+
if (typeof template !== 'string' || template.trim() === '')
|
|
75
|
+
return { ok: false, reason: 'template-empty' };
|
|
76
|
+
const names = placeholdersIn(template).filter((one) => readsCredential(one.name, codeNames)).map((one) => one.name);
|
|
77
|
+
if (names.length > 0)
|
|
78
|
+
return { ok: false, reason: 'credential-in-template', names: [...new Set(names)] };
|
|
79
|
+
if (asksForYes(template))
|
|
80
|
+
return { ok: false, reason: 'asks-for-yes' };
|
|
81
|
+
return { ok: true };
|
|
82
|
+
}
|
|
83
|
+
/** The placeholders of `body` that read a column holding a code, whatever the column is called. */
|
|
84
|
+
export function codeNamesIn(body, codeColumns) {
|
|
85
|
+
const names = placeholdersIn(body).map((one) => one.name);
|
|
86
|
+
return [...new Set(names.filter((name) => {
|
|
87
|
+
const parts = name.split('.');
|
|
88
|
+
return (parts.length === 1 ? parts : parts.slice(1)).some((part) => codeColumns.has(part));
|
|
89
|
+
}))];
|
|
90
|
+
}
|
|
91
|
+
/** One language of a text: its words, with placeholders. */
|
|
92
|
+
const textContentSchema = z.object({ body: z.string().min(1).max(TEXT_TEMPLATE_BODY_MAX) }).strict();
|
|
93
|
+
export const textTemplateSchema = z
|
|
94
|
+
.object({
|
|
95
|
+
/** `<app key>-<name>`: an app names only its own templates. */
|
|
96
|
+
key: z.string().regex(/^[a-z][a-z0-9-]{1,79}$/, 'a template key is kebab-case'),
|
|
97
|
+
name: textOrLabels,
|
|
98
|
+
/** The text in each language it ships, US English always among them. */
|
|
99
|
+
locales: z
|
|
100
|
+
.record(bcp47TagSchema, textContentSchema)
|
|
101
|
+
.refine((locales) => locales['en-US'] !== undefined, { message: 'a template includes en-US' }),
|
|
102
|
+
})
|
|
103
|
+
.strict();
|
|
104
|
+
/** Whether an outbox kind is sent as a text. */
|
|
105
|
+
export function isTextKind(outbox, kind) {
|
|
106
|
+
return outbox?.channels?.[kind] === 'sms';
|
|
107
|
+
}
|
|
108
|
+
/** Whether a customer is waiting for this text right now, so it may go outside the sending hours. */
|
|
109
|
+
export function isWaitingKind(outbox, kind) {
|
|
110
|
+
return (outbox?.waiting ?? []).includes(kind);
|
|
111
|
+
}
|
|
112
|
+
const REFUSALS = {
|
|
113
|
+
'template-empty': 'a text says something',
|
|
114
|
+
'credential-in-template': 'a text is not private, so it carries no sign-in link, minted link, code or QR value',
|
|
115
|
+
'asks-for-yes': 'a text never asks for a "YES": a provider reads that reply as an opt-in',
|
|
116
|
+
};
|
|
117
|
+
/** Everything wrong with the words of the app's text templates. */
|
|
118
|
+
export function textTemplateIssues(m) {
|
|
119
|
+
const out = [];
|
|
120
|
+
const codeColumns = new Set((m.requiredSchema?.tables ?? []).flatMap((table) => table.columns.filter((column) => isCodeColumn(column)).map((column) => column.ref)));
|
|
121
|
+
const emails = new Set((m.emailTemplates ?? []).map((template) => template.key));
|
|
122
|
+
const seen = new Set();
|
|
123
|
+
(m.textTemplates ?? []).forEach((template, t) => {
|
|
124
|
+
const at = (...rest) => ['textTemplates', t, ...rest];
|
|
125
|
+
if (!template.key.startsWith(`${m.key}-`))
|
|
126
|
+
out.push({ path: at('key'), message: `an app's template key starts with "${m.key}-"` });
|
|
127
|
+
if (seen.has(template.key))
|
|
128
|
+
out.push({ path: at('key'), message: `"${template.key}" is declared twice` });
|
|
129
|
+
if (emails.has(template.key))
|
|
130
|
+
out.push({ path: at('key'), message: `"${template.key}" is also an email template: a kind names one or the other, so give the text a key of its own` });
|
|
131
|
+
seen.add(template.key);
|
|
132
|
+
for (const [locale, content] of Object.entries(template.locales)) {
|
|
133
|
+
const here = at('locales', locale, 'body');
|
|
134
|
+
const verdict = checkTextTemplate(content.body, codeNamesIn(content.body, codeColumns));
|
|
135
|
+
if (!verdict.ok)
|
|
136
|
+
out.push({ path: here, message: verdict.names === undefined ? REFUSALS[verdict.reason] : `${REFUSALS[verdict.reason]}: ${verdict.names.map((name) => `{{${name}}}`).join(', ')}` });
|
|
137
|
+
const placeholders = placeholdersIn(content.body);
|
|
138
|
+
for (const name of new Set(placeholders.map((one) => one.name))) {
|
|
139
|
+
if (name.startsWith('row.'))
|
|
140
|
+
out.push({ path: here, message: `{{${name}}}: a text lists no rows` });
|
|
141
|
+
}
|
|
142
|
+
let rest = '';
|
|
143
|
+
let cursor = 0;
|
|
144
|
+
for (const one of placeholders) {
|
|
145
|
+
rest += content.body.slice(cursor, one.at);
|
|
146
|
+
cursor = one.at + one.whole.length;
|
|
147
|
+
}
|
|
148
|
+
rest += content.body.slice(cursor);
|
|
149
|
+
if (/\{\{|\}\}/.test(rest))
|
|
150
|
+
out.push({ path: here, message: 'a broken placeholder would be sent as it stands: write {{name}}' });
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
return out;
|
|
154
|
+
}
|
|
155
|
+
/** Everything wrong with how the outbox sends texts. An outbox that names no text word has nothing here. */
|
|
156
|
+
export function outboxTextIssues(m, index) {
|
|
157
|
+
const out = [];
|
|
158
|
+
const box = m.outbox;
|
|
159
|
+
if (box === undefined)
|
|
160
|
+
return out;
|
|
161
|
+
const at = (...rest) => ['outbox', ...rest];
|
|
162
|
+
const r = box.recipient;
|
|
163
|
+
if (m.kind === 'add-on') {
|
|
164
|
+
for (const [word, used] of [['channels', box.channels], ['waiting', box.waiting], ['recipient', r.phone ?? r.fallback?.phone]]) {
|
|
165
|
+
if (used !== undefined)
|
|
166
|
+
out.push({ path: at(word), message: 'texts are an app\'s: an add-on\'s outbox sends email' });
|
|
167
|
+
}
|
|
168
|
+
return out;
|
|
169
|
+
}
|
|
170
|
+
/** A text column holding a phone number, which the install must treat as personal data. */
|
|
171
|
+
const phoneColumn = (table, ref, path) => {
|
|
172
|
+
if (table === undefined)
|
|
173
|
+
return;
|
|
174
|
+
const found = index.column(table, ref);
|
|
175
|
+
if (found === undefined) {
|
|
176
|
+
out.push({ path, message: `"${table}" has no column "${ref}"` });
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (found.type !== 'text') {
|
|
180
|
+
out.push({ path, message: `"${table}.${ref}" must be a text column: a number keeps its "+"` });
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const declared = m.requiredSchema?.tables.find((candidate) => candidate.ref === table);
|
|
184
|
+
if (declared !== undefined && personalColumn(declared, ref) === null) {
|
|
185
|
+
out.push({ path, message: `"${table}.${ref}" holds a phone number: mark it personal ("rules": { "personal": true })` });
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
if (r.phone !== undefined) {
|
|
189
|
+
phoneColumn(r.table, r.phone, at('recipient', 'phone'));
|
|
190
|
+
const entry = (m.people ?? []).find((candidate) => candidate.table === r.table);
|
|
191
|
+
if (entry !== undefined && entry.phone !== r.phone) {
|
|
192
|
+
out.push({ path: ['people', (m.people ?? []).indexOf(entry), 'phone'], message: `the outbox texts "${r.table}.${r.phone}" (outbox.recipient.phone), so the people of "${r.table}" have that number: name it here` });
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if (r.fallback?.phone !== undefined) {
|
|
196
|
+
if (r.phone === undefined)
|
|
197
|
+
out.push({ path: at('recipient', 'fallback', 'phone'), message: 'a fallback number stands in for the person\'s own: name it too (outbox.recipient.phone)' });
|
|
198
|
+
phoneColumn(index.column(box.table, r.fallback.via)?.references, r.fallback.phone, at('recipient', 'fallback', 'phone'));
|
|
199
|
+
}
|
|
200
|
+
for (const kind of Object.keys(box.channels ?? {})) {
|
|
201
|
+
if (box.kinds[kind] === undefined)
|
|
202
|
+
out.push({ path: at('channels', kind), message: `"${kind}" is not one of the outbox's kinds` });
|
|
203
|
+
}
|
|
204
|
+
const texts = new Set((m.textTemplates ?? []).map((template) => template.key));
|
|
205
|
+
for (const [kind, template] of Object.entries(box.kinds)) {
|
|
206
|
+
if (!isTextKind(box, kind))
|
|
207
|
+
continue;
|
|
208
|
+
if (!texts.has(template))
|
|
209
|
+
out.push({ path: at('kinds', kind), message: `"${template}" is not one of the app's textTemplates` });
|
|
210
|
+
if (r.phone === undefined)
|
|
211
|
+
out.push({ path: at('channels', kind), message: `"${kind}" is sent as a text: name the column that holds the person's number (outbox.recipient.phone)` });
|
|
212
|
+
// A purpose is a mail's: it brings a stop link and reads an e-mail answer, and neither belongs to a text.
|
|
213
|
+
if (box.purposes?.[kind] !== undefined)
|
|
214
|
+
out.push({ path: at('purposes', kind), message: `"${kind}" is a text: a mail purpose brings an email stop link and an email answer, and neither counts for a text` });
|
|
215
|
+
if ((box.surveyLinks ?? []).includes(kind))
|
|
216
|
+
out.push({ path: at('surveyLinks'), message: `"${kind}" is a text, which carries no survey link` });
|
|
217
|
+
if ((box.reviewLinks?.kinds ?? []).includes(kind))
|
|
218
|
+
out.push({ path: at('reviewLinks', 'kinds'), message: `"${kind}" is a text, which carries no review link` });
|
|
219
|
+
}
|
|
220
|
+
(box.producers ?? []).forEach((producer, p) => {
|
|
221
|
+
if (!isTextKind(box, producer.kind))
|
|
222
|
+
return;
|
|
223
|
+
if (producer.recipient !== undefined)
|
|
224
|
+
out.push({ path: at('producers', p, 'recipient'), message: `"${producer.kind}" is a text, sent to the person's own number (outbox.recipient.phone)` });
|
|
225
|
+
if (producer.replyTo !== undefined)
|
|
226
|
+
out.push({ path: at('producers', p, 'replyTo'), message: `"${producer.kind}" is a text, which has no Reply-To` });
|
|
227
|
+
});
|
|
228
|
+
const waiting = new Set();
|
|
229
|
+
(box.waiting ?? []).forEach((kind, k) => {
|
|
230
|
+
if (waiting.has(kind))
|
|
231
|
+
out.push({ path: at('waiting', k), message: `"${kind}" is named twice` });
|
|
232
|
+
waiting.add(kind);
|
|
233
|
+
if (box.kinds[kind] === undefined)
|
|
234
|
+
out.push({ path: at('waiting', k), message: `"${kind}" is not one of the outbox's kinds` });
|
|
235
|
+
else if (!isTextKind(box, kind))
|
|
236
|
+
out.push({ path: at('waiting', k), message: `"${kind}" is not a text: only a text waits for the sending hours` });
|
|
237
|
+
else if (box.classes?.[kind] !== 'service')
|
|
238
|
+
out.push({ path: at('waiting', k), message: `"${kind}" is not a service text: nobody is waiting for an offer, so it keeps the sending hours` });
|
|
239
|
+
});
|
|
240
|
+
return out;
|
|
241
|
+
}
|
|
242
|
+
/** Everything wrong with a public entry's box for texts. */
|
|
243
|
+
export function publicTextConsentIssues(m, index) {
|
|
244
|
+
const out = [];
|
|
245
|
+
(m.publicAccess ?? []).forEach((entry, e) => {
|
|
246
|
+
const boxes = textConsentBoxes(entry.textConsent);
|
|
247
|
+
const several = Array.isArray(entry.textConsent);
|
|
248
|
+
// One box per class, each with a column of its own: a yes to offers is never read as a yes to service texts.
|
|
249
|
+
if (several) {
|
|
250
|
+
const classes = new Set();
|
|
251
|
+
const columns = new Set();
|
|
252
|
+
boxes.forEach((box, b) => {
|
|
253
|
+
if (classes.has(box.class))
|
|
254
|
+
out.push({ path: ['publicAccess', e, 'textConsent', b, 'class'], message: `two boxes ask about ${box.class} texts: one box per class` });
|
|
255
|
+
classes.add(box.class);
|
|
256
|
+
if (columns.has(box.column))
|
|
257
|
+
out.push({ path: ['publicAccess', e, 'textConsent', b, 'column'], message: `"${entry.table}.${box.column}" is the column of another box: each box has a column of its own` });
|
|
258
|
+
columns.add(box.column);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
boxes.forEach((box, b) => out.push(...boxIssues(m, entry, box, several ? ['publicAccess', e, 'textConsent', b] : ['publicAccess', e, 'textConsent'], index)));
|
|
262
|
+
});
|
|
263
|
+
return out;
|
|
264
|
+
}
|
|
265
|
+
/** Everything wrong with one box for texts of a public entry. */
|
|
266
|
+
function boxIssues(m, entry, box, path, index) {
|
|
267
|
+
const out = [];
|
|
268
|
+
const at = (...rest) => [...path, ...rest];
|
|
269
|
+
const writable = entry.writable ?? [];
|
|
270
|
+
if (!entry.methods.includes('POST') && !entry.methods.includes('PATCH'))
|
|
271
|
+
out.push({ path: at(), message: 'a tick is given on a create or a change: this entry writes nothing' });
|
|
272
|
+
if (entry.consent?.column === box.column)
|
|
273
|
+
out.push({ path: at('column'), message: `"${entry.table}.${box.column}" is the entry's e-mail tick: a yes to mail is not a yes to texts, so the text box has a column of its own` });
|
|
274
|
+
const column = index.column(entry.table, box.column);
|
|
275
|
+
if (column === undefined)
|
|
276
|
+
out.push({ path: at('column'), message: `"${entry.table}" has no column "${box.column}"` });
|
|
277
|
+
else if (column.type !== 'bool')
|
|
278
|
+
out.push({ path: at('column'), message: `"${entry.table}.${box.column}" is not a bool (a tick)` });
|
|
279
|
+
else {
|
|
280
|
+
if (!writable.includes(box.column))
|
|
281
|
+
out.push({ path: at('column'), message: `"${entry.table}.${box.column}" is not writable through this entry, so no tick reaches it` });
|
|
282
|
+
// Unticked: nothing but the person's own tick may set it.
|
|
283
|
+
const preset = entry.defaults?.[box.column] !== undefined || entry.writableValues?.[box.column] !== undefined || (column.default !== undefined && column.default !== false && column.default !== 0 && column.default !== 'false' && column.default !== '0') || ['default', 'copy', 'formula'].some((rule) => column.rules?.[rule] !== undefined);
|
|
284
|
+
if (preset)
|
|
285
|
+
out.push({ path: at('column'), message: `"${entry.table}.${box.column}" starts unticked and only the person ticks it: it takes no default of yes, and nothing else may set it` });
|
|
286
|
+
// Never a condition of booking or buying.
|
|
287
|
+
const required = column.rules?.['required'] !== undefined || column.rules?.['requiredWhen'] !== undefined || (entry.requires ?? []).includes(box.column) || entry.requiresWhen?.[box.column] !== undefined || (column.nullable !== true && column.default === undefined);
|
|
288
|
+
if (required)
|
|
289
|
+
out.push({ path: at('column'), message: `"${entry.table}.${box.column}" is never required to book or buy: make it optional (nullable, or a default of false)` });
|
|
290
|
+
}
|
|
291
|
+
const phone = index.column(entry.table, box.phone);
|
|
292
|
+
if (phone === undefined)
|
|
293
|
+
out.push({ path: at('phone'), message: `"${entry.table}" has no column "${box.phone}"` });
|
|
294
|
+
else if (phone.type !== 'text')
|
|
295
|
+
out.push({ path: at('phone'), message: `"${entry.table}.${box.phone}" is not a text column (a phone number)` });
|
|
296
|
+
// A create gives the number with the answer. A change reads the number the row holds: answering about texts never needs leave to change the number.
|
|
297
|
+
else if (entry.methods.includes('POST') && !writable.includes(box.phone))
|
|
298
|
+
out.push({ path: at('phone'), message: `"${entry.table}.${box.phone}" is not writable through this entry, so the number the answer is for never reaches a new row` });
|
|
299
|
+
for (const [locale, text] of Object.entries(box.wording.text)) {
|
|
300
|
+
if (asksForYes(text))
|
|
301
|
+
out.push({ path: at('wording', 'text', locale), message: REFUSALS['asks-for-yes'] });
|
|
302
|
+
}
|
|
303
|
+
// Kept for a person the erasure can find by that number.
|
|
304
|
+
const person = entry.identity?.table ?? entry.claimedBy?.table ?? entry.table;
|
|
305
|
+
const declared = (m.people ?? []).find((candidate) => candidate.table === person && candidate.kind === 'people');
|
|
306
|
+
if (declared === undefined)
|
|
307
|
+
out.push({ path: at(), message: `a tick is kept for a person: "${person}" is not one of the app's people tables (people), and the entry finds no other (identity, claimedBy)` });
|
|
308
|
+
else if (declared.phone === undefined)
|
|
309
|
+
out.push({ path: at(), message: `a text answer is kept with the person's number: name the column that holds it on "${person}" (people.phone)` });
|
|
310
|
+
else if (person === entry.table && declared.phone !== box.phone)
|
|
311
|
+
out.push({ path: at('phone'), message: `the people of "${person}" keep their number in "${declared.phone}" (people.phone): this box is for that number` });
|
|
312
|
+
return out;
|
|
313
|
+
}
|
|
314
|
+
//# sourceMappingURL=text-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-messages.js","sourceRoot":"","sources":["../src/text-messages.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,oBAAoB,EAAe,MAAM,aAAa,CAAC;AACtI,OAAO,EAAE,gBAAgB,EAA4D,MAAM,aAAa,CAAC;AACzG,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAwC,MAAM,WAAW,CAAC;AAE/F,uFAAuF;AACvF,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAA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,QAAQ,CAAC,CAAC;IACjH,IAAI,QAAQ,KAAK,SAAS;QAAE,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,iCAAiC,MAAM,sGAAsG,EAAE,CAAC,CAAC;SACxM,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS;QAAE,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,qFAAqF,MAAM,kBAAkB,EAAE,CAAC,CAAC;SACnL,IAAI,MAAM,KAAK,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK,KAAK,GAAG,CAAC,KAAK;QAAE,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,kBAAkB,MAAM,2BAA2B,QAAQ,CAAC,KAAK,+CAA+C,EAAE,CAAC,CAAC;IAC5N,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/words.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ export interface ManifestWord {
|
|
|
6
6
|
}
|
|
7
7
|
/** The most a file column took before guests could upload into it: past this, a column needs the release that reads it. */
|
|
8
8
|
export declare const FILE_COLUMN_EARLIER_MAX_BYTES: number;
|
|
9
|
+
/**
|
|
10
|
+
* The first Adminium that reads the words of texts. The one place it is
|
|
11
|
+
* written: if the release number moves, this line moves.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SMS_WORDS_FLOOR = "0.3.76";
|
|
9
14
|
/** The top-level blocks an add-on shares with an app since the install floor. */
|
|
10
15
|
export declare const ADD_ON_INSTALL_BLOCKS: readonly ["pages", "roles", "optionLists", "emailTemplates", "outbox", "documents", "sampleData", "publicAccess", "publicKeys", "navGroups", "seeds", "automations", "addOns"];
|
|
11
16
|
/**
|
|
@@ -14,7 +19,7 @@ export declare const ADD_ON_INSTALL_BLOCKS: readonly ["pages", "roles", "optionL
|
|
|
14
19
|
* runs the word, or it refuses a manifest that uses it — and its tests read
|
|
15
20
|
* this list to see that none is left without one.
|
|
16
21
|
*/
|
|
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", "people.copyEvenIfKept", "addOn.slots.on", "shipping", "shipping.customs", "shipping.customs.lineUnless", "shipping.customs.refunded", "addOn.connect.accounts", "table.connectedAccounts", "roles.accounts"];
|
|
22
|
+
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", "people.copyEvenIfKept", "addOn.slots.on", "shipping", "shipping.customs", "shipping.customs.lineUnless", "shipping.customs.refunded", "addOn.connect.accounts", "table.connectedAccounts", "roles.accounts", "textTemplates", "outbox.channels", "outbox.recipient.phone", "outbox.waiting", "people.phone", "publicAccess.textConsent", "outbox.settings.textName", "outbox.recipient.textPhone", "outbox.columns.textReason", "automations.text", "instance.textMarketingConfirm", "textReplies", "roles.texts"];
|
|
18
23
|
export type ManifestWordName = (typeof INSTALL_FLOOR_WORD_NAMES)[number];
|
|
19
24
|
/**
|
|
20
25
|
* The words that came after the install floor, each with the first Adminium
|
package/dist/words.d.ts.map
CHANGED
|
@@ -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,
|
|
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;;;GAGG;AACH,eAAO,MAAM,eAAe,WAAW,CAAC;AAExC,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,gLAcxB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,ouLA8X3B,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,CAuW3E,CAAC;AAYF,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,GAAG,YAAY,EAAE,CAslBnE"}
|