@adminiumjs/manifest 0.3.35 → 0.3.36
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/roles.d.ts +59 -0
- package/dist/roles.d.ts.map +1 -1
- package/dist/roles.js +69 -2
- package/dist/roles.js.map +1 -1
- package/dist/schema.d.ts +61 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/words.d.ts +1 -1
- package/dist/words.d.ts.map +1 -1
- package/dist/words.js +7 -0
- package/dist/words.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { EVERY_COLUMN, appGrantsIssues, appGrantsSchema, declaresAppGrants, hold
|
|
|
13
13
|
export { ROLE_ADD_ON_ACTIONS, roleAddOnTableSchema, roleAddOnTablesSchema, roleLimitSchema, roleLimitsSchema, type RoleAddOnTable, type RoleLimit } from './roles.js';
|
|
14
14
|
export { personPathIssue, personPathSchema } from './roles.js';
|
|
15
15
|
export { changeGuardSchema, changeGuardsSchema, type ChangeGuard } from './change-guards.js';
|
|
16
|
-
export { BELONGS_VIA_MAX_STEPS, ROW_LIMIT_ACTIONS, ROW_REACHES, ROW_REACHES_MAX, STAFF_SET_RULES, belongsSchema, belongsWaySchema, listingWhileSchema, reachList, rowReachSchema, rowReachesSchema, rowsLimitSchema, type BelongsWay, type ListingWhile, type RowReach, type RowReaches, type RowsLimit } from './roles.js';
|
|
16
|
+
export { BELONGS_VIA_MAX_STEPS, NOT_THROUGH_MAX, ROW_LIMIT_ACTIONS, ROW_REACHES, ROW_REACHES_MAX, STAFF_SET_RULES, belongsSchema, belongsWaySchema, listingWhileSchema, listingsOf, notThroughList, reachList, rowReachSchema, rowReachesSchema, rowsLimitSchema, type BelongsWay, type ListingWhile, type RowReach, type RowReaches, type RowsLimit } from './roles.js';
|
|
17
17
|
export { lookUpIssues, lookUpKindSchema, lookUpSchema, type LookUp, type LookUpKind, type LookUpTable } from './look-up.js';
|
|
18
18
|
export { PAGE_FILTER_CONTROLS, pageBulkActionSchema, keptFromStaff, pageBulkSchema, pageConfigIssues, pageFilterControls, pageFiltersSchema, pageTabsSchema, type PageBulkAction, type PageFilterControl, type PageFilters, type PageTabs, } from './page-config.js';
|
|
19
19
|
export { PAGE_BOARD_ONLY_MAX, PAGE_BOARD_ONLY_TYPES, PAGE_BOARD_ONLY_VALUES_MAX, PAGE_BOARD_TOTALS_MAX, PAGE_BOARD_TOTAL_FNS, pageBoardIssues, pageBoardOnlyValues, pageBoardSchema, type PageBoard } from './page-board.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,uBAAuB,CAAC;AAEjD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,aAAa,EACb,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,E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,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,uBAAuB,CAAC;AAEjD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,aAAa,EACb,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,QAAQ,EACR,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,UAAU,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,aAAa,EACb,eAAe,EACf,KAAK,OAAO,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,KAAK,W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EAChB,eAAe,EACf,UAAU,EACV,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,GACf,MAAM,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export { EVERY_COLUMN, appGrantsIssues, appGrantsSchema, declaresAppGrants, hold
|
|
|
14
14
|
export { ROLE_ADD_ON_ACTIONS, roleAddOnTableSchema, roleAddOnTablesSchema, roleLimitSchema, roleLimitsSchema } from './roles.js';
|
|
15
15
|
export { personPathIssue, personPathSchema } from './roles.js';
|
|
16
16
|
export { changeGuardSchema, changeGuardsSchema } from './change-guards.js';
|
|
17
|
-
export { BELONGS_VIA_MAX_STEPS, ROW_LIMIT_ACTIONS, ROW_REACHES, ROW_REACHES_MAX, STAFF_SET_RULES, belongsSchema, belongsWaySchema, listingWhileSchema, reachList, rowReachSchema, rowReachesSchema, rowsLimitSchema } from './roles.js';
|
|
17
|
+
export { BELONGS_VIA_MAX_STEPS, NOT_THROUGH_MAX, ROW_LIMIT_ACTIONS, ROW_REACHES, ROW_REACHES_MAX, STAFF_SET_RULES, belongsSchema, belongsWaySchema, listingWhileSchema, listingsOf, notThroughList, reachList, rowReachSchema, rowReachesSchema, rowsLimitSchema } from './roles.js';
|
|
18
18
|
export { lookUpIssues, lookUpKindSchema, lookUpSchema } from './look-up.js';
|
|
19
19
|
export { PAGE_FILTER_CONTROLS, pageBulkActionSchema, keptFromStaff, pageBulkSchema, pageConfigIssues, pageFilterControls, pageFiltersSchema, pageTabsSchema, } from './page-config.js';
|
|
20
20
|
export { PAGE_BOARD_ONLY_MAX, PAGE_BOARD_ONLY_TYPES, PAGE_BOARD_ONLY_VALUES_MAX, PAGE_BOARD_TOTALS_MAX, PAGE_BOARD_TOTAL_FNS, pageBoardIssues, pageBoardOnlyValues, pageBoardSchema } from './page-board.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot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BAAgB,EAAuC,MAAM,YAAY,CAAC;AACtK,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAoB,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAsF,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAEjD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,aAAa,EACb,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,QAAQ,EACR,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,gBAAg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MAAM,YAAY,CAAC;AACvJ,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,eAAe,EACf,WAAW,EAEX,kBAAkB,EAClB,YAAY,GAcb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAoB,MAAM,qBAAqB,CAAC;AACzF,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,cAAc,GAKf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,GASvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,UAAU,EACV,eAAe,EACf,oBAAoB,GAGrB,MAAM,WAAW,CAAC"}
|
package/dist/roles.d.ts
CHANGED
|
@@ -87,11 +87,27 @@
|
|
|
87
87
|
*
|
|
88
88
|
* Without it, a child row is reached by every way its table and its parent
|
|
89
89
|
* say (a helper listed on the deal, the visit's own rep), as before.
|
|
90
|
+
*
|
|
91
|
+
* `notThrough` on an update (or a delete) reach names a listing the reach
|
|
92
|
+
* does not count: a `through` way of the table, or of a row it hangs off
|
|
93
|
+
* (`via`, up to two links up), whose table is that listing. A helper listed
|
|
94
|
+
* on a deal reads it and its quotes and comments on them, and changes none
|
|
95
|
+
* of them; whoever covers for the deal's owner, and the owner, change them as
|
|
96
|
+
* before —
|
|
97
|
+
*
|
|
98
|
+
* ```json
|
|
99
|
+
* "rows": { "update": { "reach": "own", "notThrough": "deal_members" } }
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* Every other way counts as it did: a staff column, another listing, the
|
|
103
|
+
* rows nobody owns.
|
|
90
104
|
*/
|
|
91
105
|
import { z } from 'zod';
|
|
92
106
|
import { type ColumnShape, type ReferenceIssue, type TableIndex } from './refs.js';
|
|
93
107
|
/** How far one action reaches: the person's own rows, their teams', or every row (only `while` some value). */
|
|
94
108
|
export declare const ROW_REACHES: readonly ["own", "team", "all"];
|
|
109
|
+
/** The most listings one reach's `notThrough` names. */
|
|
110
|
+
export declare const NOT_THROUGH_MAX = 4;
|
|
95
111
|
/**
|
|
96
112
|
* A person a row names: a staff column of the row (`rep_id`), or
|
|
97
113
|
* `<link>.<staff column>`, the staff column of the row one of its links names
|
|
@@ -118,8 +134,13 @@ export declare const rowReachSchema: z.ZodObject<{
|
|
|
118
134
|
by: z.ZodOptional<z.ZodString>;
|
|
119
135
|
notBy: z.ZodOptional<z.ZodString>;
|
|
120
136
|
via: z.ZodOptional<z.ZodString>;
|
|
137
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
121
138
|
}, z.core.$strict>;
|
|
122
139
|
export type RowReach = z.infer<typeof rowReachSchema>;
|
|
140
|
+
/** The listings a reach's `notThrough` names, as a list, however it was written. */
|
|
141
|
+
export declare function notThroughList(reach: {
|
|
142
|
+
notThrough?: string | readonly string[] | undefined;
|
|
143
|
+
}): readonly string[];
|
|
123
144
|
/** The actions a row limit narrows. A create makes a new row: it is held by the links and people it names. */
|
|
124
145
|
export declare const ROW_LIMIT_ACTIONS: readonly ["read", "update", "delete"];
|
|
125
146
|
/** The most reaches one action names. */
|
|
@@ -139,6 +160,7 @@ export declare const rowReachesSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
139
160
|
by: z.ZodOptional<z.ZodString>;
|
|
140
161
|
notBy: z.ZodOptional<z.ZodString>;
|
|
141
162
|
via: z.ZodOptional<z.ZodString>;
|
|
163
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
142
164
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
143
165
|
reach: z.ZodEnum<{
|
|
144
166
|
own: "own";
|
|
@@ -153,6 +175,7 @@ export declare const rowReachesSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
153
175
|
by: z.ZodOptional<z.ZodString>;
|
|
154
176
|
notBy: z.ZodOptional<z.ZodString>;
|
|
155
177
|
via: z.ZodOptional<z.ZodString>;
|
|
178
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
156
179
|
}, z.core.$strict>>]>;
|
|
157
180
|
export type RowReaches = z.infer<typeof rowReachesSchema>;
|
|
158
181
|
/** An action's reaches as a list, whether the manifest wrote one or several. */
|
|
@@ -173,6 +196,7 @@ export declare const rowsLimitSchema: z.ZodObject<{
|
|
|
173
196
|
by: z.ZodOptional<z.ZodString>;
|
|
174
197
|
notBy: z.ZodOptional<z.ZodString>;
|
|
175
198
|
via: z.ZodOptional<z.ZodString>;
|
|
199
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
176
200
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
177
201
|
reach: z.ZodEnum<{
|
|
178
202
|
own: "own";
|
|
@@ -187,6 +211,7 @@ export declare const rowsLimitSchema: z.ZodObject<{
|
|
|
187
211
|
by: z.ZodOptional<z.ZodString>;
|
|
188
212
|
notBy: z.ZodOptional<z.ZodString>;
|
|
189
213
|
via: z.ZodOptional<z.ZodString>;
|
|
214
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
190
215
|
}, z.core.$strict>>]>>;
|
|
191
216
|
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
192
217
|
reach: z.ZodEnum<{
|
|
@@ -202,6 +227,7 @@ export declare const rowsLimitSchema: z.ZodObject<{
|
|
|
202
227
|
by: z.ZodOptional<z.ZodString>;
|
|
203
228
|
notBy: z.ZodOptional<z.ZodString>;
|
|
204
229
|
via: z.ZodOptional<z.ZodString>;
|
|
230
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
205
231
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
206
232
|
reach: z.ZodEnum<{
|
|
207
233
|
own: "own";
|
|
@@ -216,6 +242,7 @@ export declare const rowsLimitSchema: z.ZodObject<{
|
|
|
216
242
|
by: z.ZodOptional<z.ZodString>;
|
|
217
243
|
notBy: z.ZodOptional<z.ZodString>;
|
|
218
244
|
via: z.ZodOptional<z.ZodString>;
|
|
245
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
219
246
|
}, z.core.$strict>>]>>;
|
|
220
247
|
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
221
248
|
reach: z.ZodEnum<{
|
|
@@ -231,6 +258,7 @@ export declare const rowsLimitSchema: z.ZodObject<{
|
|
|
231
258
|
by: z.ZodOptional<z.ZodString>;
|
|
232
259
|
notBy: z.ZodOptional<z.ZodString>;
|
|
233
260
|
via: z.ZodOptional<z.ZodString>;
|
|
261
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
234
262
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
235
263
|
reach: z.ZodEnum<{
|
|
236
264
|
own: "own";
|
|
@@ -245,6 +273,7 @@ export declare const rowsLimitSchema: z.ZodObject<{
|
|
|
245
273
|
by: z.ZodOptional<z.ZodString>;
|
|
246
274
|
notBy: z.ZodOptional<z.ZodString>;
|
|
247
275
|
via: z.ZodOptional<z.ZodString>;
|
|
276
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
248
277
|
}, z.core.$strict>>]>>;
|
|
249
278
|
}, z.core.$strict>;
|
|
250
279
|
export type RowsLimit = z.infer<typeof rowsLimitSchema>;
|
|
@@ -357,6 +386,7 @@ export declare const roleLimitSchema: z.ZodObject<{
|
|
|
357
386
|
by: z.ZodOptional<z.ZodString>;
|
|
358
387
|
notBy: z.ZodOptional<z.ZodString>;
|
|
359
388
|
via: z.ZodOptional<z.ZodString>;
|
|
389
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
360
390
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
361
391
|
reach: z.ZodEnum<{
|
|
362
392
|
own: "own";
|
|
@@ -371,6 +401,7 @@ export declare const roleLimitSchema: z.ZodObject<{
|
|
|
371
401
|
by: z.ZodOptional<z.ZodString>;
|
|
372
402
|
notBy: z.ZodOptional<z.ZodString>;
|
|
373
403
|
via: z.ZodOptional<z.ZodString>;
|
|
404
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
374
405
|
}, z.core.$strict>>]>>;
|
|
375
406
|
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
376
407
|
reach: z.ZodEnum<{
|
|
@@ -386,6 +417,7 @@ export declare const roleLimitSchema: z.ZodObject<{
|
|
|
386
417
|
by: z.ZodOptional<z.ZodString>;
|
|
387
418
|
notBy: z.ZodOptional<z.ZodString>;
|
|
388
419
|
via: z.ZodOptional<z.ZodString>;
|
|
420
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
389
421
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
390
422
|
reach: z.ZodEnum<{
|
|
391
423
|
own: "own";
|
|
@@ -400,6 +432,7 @@ export declare const roleLimitSchema: z.ZodObject<{
|
|
|
400
432
|
by: z.ZodOptional<z.ZodString>;
|
|
401
433
|
notBy: z.ZodOptional<z.ZodString>;
|
|
402
434
|
via: z.ZodOptional<z.ZodString>;
|
|
435
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
403
436
|
}, z.core.$strict>>]>>;
|
|
404
437
|
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
405
438
|
reach: z.ZodEnum<{
|
|
@@ -415,6 +448,7 @@ export declare const roleLimitSchema: z.ZodObject<{
|
|
|
415
448
|
by: z.ZodOptional<z.ZodString>;
|
|
416
449
|
notBy: z.ZodOptional<z.ZodString>;
|
|
417
450
|
via: z.ZodOptional<z.ZodString>;
|
|
451
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
418
452
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
419
453
|
reach: z.ZodEnum<{
|
|
420
454
|
own: "own";
|
|
@@ -429,6 +463,7 @@ export declare const roleLimitSchema: z.ZodObject<{
|
|
|
429
463
|
by: z.ZodOptional<z.ZodString>;
|
|
430
464
|
notBy: z.ZodOptional<z.ZodString>;
|
|
431
465
|
via: z.ZodOptional<z.ZodString>;
|
|
466
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
432
467
|
}, z.core.$strict>>]>>;
|
|
433
468
|
}, z.core.$strict>>;
|
|
434
469
|
}, z.core.$strict>;
|
|
@@ -456,6 +491,7 @@ export declare const roleLimitsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
456
491
|
by: z.ZodOptional<z.ZodString>;
|
|
457
492
|
notBy: z.ZodOptional<z.ZodString>;
|
|
458
493
|
via: z.ZodOptional<z.ZodString>;
|
|
494
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
459
495
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
460
496
|
reach: z.ZodEnum<{
|
|
461
497
|
own: "own";
|
|
@@ -470,6 +506,7 @@ export declare const roleLimitsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
470
506
|
by: z.ZodOptional<z.ZodString>;
|
|
471
507
|
notBy: z.ZodOptional<z.ZodString>;
|
|
472
508
|
via: z.ZodOptional<z.ZodString>;
|
|
509
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
473
510
|
}, z.core.$strict>>]>>;
|
|
474
511
|
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
475
512
|
reach: z.ZodEnum<{
|
|
@@ -485,6 +522,7 @@ export declare const roleLimitsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
485
522
|
by: z.ZodOptional<z.ZodString>;
|
|
486
523
|
notBy: z.ZodOptional<z.ZodString>;
|
|
487
524
|
via: z.ZodOptional<z.ZodString>;
|
|
525
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
488
526
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
489
527
|
reach: z.ZodEnum<{
|
|
490
528
|
own: "own";
|
|
@@ -499,6 +537,7 @@ export declare const roleLimitsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
499
537
|
by: z.ZodOptional<z.ZodString>;
|
|
500
538
|
notBy: z.ZodOptional<z.ZodString>;
|
|
501
539
|
via: z.ZodOptional<z.ZodString>;
|
|
540
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
502
541
|
}, z.core.$strict>>]>>;
|
|
503
542
|
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
504
543
|
reach: z.ZodEnum<{
|
|
@@ -514,6 +553,7 @@ export declare const roleLimitsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
514
553
|
by: z.ZodOptional<z.ZodString>;
|
|
515
554
|
notBy: z.ZodOptional<z.ZodString>;
|
|
516
555
|
via: z.ZodOptional<z.ZodString>;
|
|
556
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
517
557
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
518
558
|
reach: z.ZodEnum<{
|
|
519
559
|
own: "own";
|
|
@@ -528,6 +568,7 @@ export declare const roleLimitsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
528
568
|
by: z.ZodOptional<z.ZodString>;
|
|
529
569
|
notBy: z.ZodOptional<z.ZodString>;
|
|
530
570
|
via: z.ZodOptional<z.ZodString>;
|
|
571
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
531
572
|
}, z.core.$strict>>]>>;
|
|
532
573
|
}, z.core.$strict>>;
|
|
533
574
|
}, z.core.$strict>>;
|
|
@@ -540,6 +581,12 @@ export interface RoleShape {
|
|
|
540
581
|
}
|
|
541
582
|
/** Every `limits` problem across the app's roles. */
|
|
542
583
|
export declare function roleLimitIssues<C extends ColumnShape>(roles: readonly RoleShape[], index: TableIndex<C>, rowTables?: RowTables): ReferenceIssue[];
|
|
584
|
+
/**
|
|
585
|
+
* The listings a table's rows are read through: the table of each of its
|
|
586
|
+
* `through` ways, and of the rows it hangs off (`via`), as far up as a row is
|
|
587
|
+
* followed ({@link BELONGS_VIA_MAX_STEPS} links).
|
|
588
|
+
*/
|
|
589
|
+
export declare function listingsOf<C extends ColumnShape>(ref: string, index: TableIndex<C>, ways: (ref: string) => readonly BelongsWay[]): Set<string>;
|
|
543
590
|
/** What the row checks read of a table beside its columns. */
|
|
544
591
|
export interface BelongsTableShape {
|
|
545
592
|
ref: string;
|
|
@@ -599,6 +646,7 @@ export declare const roleAddOnTableSchema: z.ZodObject<{
|
|
|
599
646
|
by: z.ZodOptional<z.ZodString>;
|
|
600
647
|
notBy: z.ZodOptional<z.ZodString>;
|
|
601
648
|
via: z.ZodOptional<z.ZodString>;
|
|
649
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
602
650
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
603
651
|
reach: z.ZodEnum<{
|
|
604
652
|
own: "own";
|
|
@@ -613,6 +661,7 @@ export declare const roleAddOnTableSchema: z.ZodObject<{
|
|
|
613
661
|
by: z.ZodOptional<z.ZodString>;
|
|
614
662
|
notBy: z.ZodOptional<z.ZodString>;
|
|
615
663
|
via: z.ZodOptional<z.ZodString>;
|
|
664
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
616
665
|
}, z.core.$strict>>]>>;
|
|
617
666
|
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
618
667
|
reach: z.ZodEnum<{
|
|
@@ -628,6 +677,7 @@ export declare const roleAddOnTableSchema: z.ZodObject<{
|
|
|
628
677
|
by: z.ZodOptional<z.ZodString>;
|
|
629
678
|
notBy: z.ZodOptional<z.ZodString>;
|
|
630
679
|
via: z.ZodOptional<z.ZodString>;
|
|
680
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
631
681
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
632
682
|
reach: z.ZodEnum<{
|
|
633
683
|
own: "own";
|
|
@@ -642,6 +692,7 @@ export declare const roleAddOnTableSchema: z.ZodObject<{
|
|
|
642
692
|
by: z.ZodOptional<z.ZodString>;
|
|
643
693
|
notBy: z.ZodOptional<z.ZodString>;
|
|
644
694
|
via: z.ZodOptional<z.ZodString>;
|
|
695
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
645
696
|
}, z.core.$strict>>]>>;
|
|
646
697
|
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
647
698
|
reach: z.ZodEnum<{
|
|
@@ -657,6 +708,7 @@ export declare const roleAddOnTableSchema: z.ZodObject<{
|
|
|
657
708
|
by: z.ZodOptional<z.ZodString>;
|
|
658
709
|
notBy: z.ZodOptional<z.ZodString>;
|
|
659
710
|
via: z.ZodOptional<z.ZodString>;
|
|
711
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
660
712
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
661
713
|
reach: z.ZodEnum<{
|
|
662
714
|
own: "own";
|
|
@@ -671,6 +723,7 @@ export declare const roleAddOnTableSchema: z.ZodObject<{
|
|
|
671
723
|
by: z.ZodOptional<z.ZodString>;
|
|
672
724
|
notBy: z.ZodOptional<z.ZodString>;
|
|
673
725
|
via: z.ZodOptional<z.ZodString>;
|
|
726
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
674
727
|
}, z.core.$strict>>]>>;
|
|
675
728
|
}, z.core.$strict>>;
|
|
676
729
|
}, z.core.$strict>>;
|
|
@@ -706,6 +759,7 @@ export declare const roleAddOnTablesSchema: z.ZodArray<z.ZodObject<{
|
|
|
706
759
|
by: z.ZodOptional<z.ZodString>;
|
|
707
760
|
notBy: z.ZodOptional<z.ZodString>;
|
|
708
761
|
via: z.ZodOptional<z.ZodString>;
|
|
762
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
709
763
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
710
764
|
reach: z.ZodEnum<{
|
|
711
765
|
own: "own";
|
|
@@ -720,6 +774,7 @@ export declare const roleAddOnTablesSchema: z.ZodArray<z.ZodObject<{
|
|
|
720
774
|
by: z.ZodOptional<z.ZodString>;
|
|
721
775
|
notBy: z.ZodOptional<z.ZodString>;
|
|
722
776
|
via: z.ZodOptional<z.ZodString>;
|
|
777
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
723
778
|
}, z.core.$strict>>]>>;
|
|
724
779
|
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
725
780
|
reach: z.ZodEnum<{
|
|
@@ -735,6 +790,7 @@ export declare const roleAddOnTablesSchema: z.ZodArray<z.ZodObject<{
|
|
|
735
790
|
by: z.ZodOptional<z.ZodString>;
|
|
736
791
|
notBy: z.ZodOptional<z.ZodString>;
|
|
737
792
|
via: z.ZodOptional<z.ZodString>;
|
|
793
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
738
794
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
739
795
|
reach: z.ZodEnum<{
|
|
740
796
|
own: "own";
|
|
@@ -749,6 +805,7 @@ export declare const roleAddOnTablesSchema: z.ZodArray<z.ZodObject<{
|
|
|
749
805
|
by: z.ZodOptional<z.ZodString>;
|
|
750
806
|
notBy: z.ZodOptional<z.ZodString>;
|
|
751
807
|
via: z.ZodOptional<z.ZodString>;
|
|
808
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
752
809
|
}, z.core.$strict>>]>>;
|
|
753
810
|
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
754
811
|
reach: z.ZodEnum<{
|
|
@@ -764,6 +821,7 @@ export declare const roleAddOnTablesSchema: z.ZodArray<z.ZodObject<{
|
|
|
764
821
|
by: z.ZodOptional<z.ZodString>;
|
|
765
822
|
notBy: z.ZodOptional<z.ZodString>;
|
|
766
823
|
via: z.ZodOptional<z.ZodString>;
|
|
824
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
767
825
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
768
826
|
reach: z.ZodEnum<{
|
|
769
827
|
own: "own";
|
|
@@ -778,6 +836,7 @@ export declare const roleAddOnTablesSchema: z.ZodArray<z.ZodObject<{
|
|
|
778
836
|
by: z.ZodOptional<z.ZodString>;
|
|
779
837
|
notBy: z.ZodOptional<z.ZodString>;
|
|
780
838
|
via: z.ZodOptional<z.ZodString>;
|
|
839
|
+
notThrough: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
781
840
|
}, z.core.$strict>>]>>;
|
|
782
841
|
}, z.core.$strict>>;
|
|
783
842
|
}, z.core.$strict>>;
|
package/dist/roles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../src/roles.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../src/roles.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAsC,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvH,+GAA+G;AAC/G,eAAO,MAAM,WAAW,iCAAkC,CAAC;AAE3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A;KAAE,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAA;CAAE,EAAE,GAC7N,cAAc,EAAE,CAyBlB;AAKD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,aAAa,EAAE,SAAS,MAAM,EAAE,GAAG,cAAc,EAAE,CAkBlI"}
|
package/dist/roles.js
CHANGED
|
@@ -88,11 +88,27 @@
|
|
|
88
88
|
*
|
|
89
89
|
* Without it, a child row is reached by every way its table and its parent
|
|
90
90
|
* say (a helper listed on the deal, the visit's own rep), as before.
|
|
91
|
+
*
|
|
92
|
+
* `notThrough` on an update (or a delete) reach names a listing the reach
|
|
93
|
+
* does not count: a `through` way of the table, or of a row it hangs off
|
|
94
|
+
* (`via`, up to two links up), whose table is that listing. A helper listed
|
|
95
|
+
* on a deal reads it and its quotes and comments on them, and changes none
|
|
96
|
+
* of them; whoever covers for the deal's owner, and the owner, change them as
|
|
97
|
+
* before —
|
|
98
|
+
*
|
|
99
|
+
* ```json
|
|
100
|
+
* "rows": { "update": { "reach": "own", "notThrough": "deal_members" } }
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* Every other way counts as it did: a staff column, another listing, the
|
|
104
|
+
* rows nobody owns.
|
|
91
105
|
*/
|
|
92
106
|
import { z } from 'zod';
|
|
93
107
|
import { refSchema, scalarSchema, valueFits } from './refs.js';
|
|
94
108
|
/** How far one action reaches: the person's own rows, their teams', or every row (only `while` some value). */
|
|
95
109
|
export const ROW_REACHES = ['own', 'team', 'all'];
|
|
110
|
+
/** The most listings one reach's `notThrough` names. */
|
|
111
|
+
export const NOT_THROUGH_MAX = 4;
|
|
96
112
|
/**
|
|
97
113
|
* A person a row names: a staff column of the row (`rep_id`), or
|
|
98
114
|
* `<link>.<staff column>`, the staff column of the row one of its links names
|
|
@@ -142,13 +158,26 @@ export const rowReachSchema = z
|
|
|
142
158
|
* whoever else the row or its parent names: a manager reaches the visits of the deals her team owns.
|
|
143
159
|
*/
|
|
144
160
|
via: refSchema.optional(),
|
|
161
|
+
/**
|
|
162
|
+
* A change (update or delete) that does not count these listings: a `through` way of the table, or of a parent it
|
|
163
|
+
* hangs off (`via`), whose table is one of them makes no row the person's for this reach. A helper listed on a deal
|
|
164
|
+
* reads it and changes nothing of it; whoever covers for its owner changes it as before.
|
|
165
|
+
*/
|
|
166
|
+
notThrough: z.union([refSchema, z.array(refSchema).min(1).max(NOT_THROUGH_MAX)]).optional(),
|
|
145
167
|
})
|
|
146
168
|
.strict()
|
|
147
169
|
.refine((reach) => reach.via === undefined || reach.by !== undefined, { message: '`via` names the parent whose `by` column judges the row: say `by` too' })
|
|
148
170
|
.refine((reach) => reach.via === undefined || reach.unowned === undefined, { message: 'a reach judged by the parent\'s person takes no `unowned`: a row whose parent names nobody is nobody\'s to reach' })
|
|
149
171
|
.refine((reach) => reach.reach !== 'all' || reach.by === undefined, { message: '`by` narrows the person\'s own rows or their team\'s: with every row, say `while`' })
|
|
150
172
|
.refine((reach) => reach.reach !== 'all' || reach.while !== undefined || reach.notBy !== undefined, { message: 'a reach of every row is no limit: leave the action out, or say `while` or `notBy`' })
|
|
151
|
-
.refine((reach) => reach.reach !== 'all' || reach.unowned === undefined, { message: 'every row includes the rows nobody owns' })
|
|
173
|
+
.refine((reach) => reach.reach !== 'all' || reach.unowned === undefined, { message: 'every row includes the rows nobody owns' })
|
|
174
|
+
.refine((reach) => reach.reach !== 'all' || reach.notThrough === undefined, { message: '`notThrough` takes a listing out of the person\'s own rows or their team\'s: every row is reached by no listing' })
|
|
175
|
+
.refine((reach) => reach.via === undefined || reach.notThrough === undefined, { message: 'a reach judged by the parent\'s person (`via`) counts no listing already: leave `notThrough` out' });
|
|
176
|
+
/** The listings a reach's `notThrough` names, as a list, however it was written. */
|
|
177
|
+
export function notThroughList(reach) {
|
|
178
|
+
const written = reach.notThrough;
|
|
179
|
+
return written === undefined ? [] : typeof written === 'string' ? [written] : written;
|
|
180
|
+
}
|
|
152
181
|
/** The actions a row limit narrows. A create makes a new row: it is held by the links and people it names. */
|
|
153
182
|
export const ROW_LIMIT_ACTIONS = ['read', 'update', 'delete'];
|
|
154
183
|
/** The most reaches one action names. */
|
|
@@ -377,6 +406,21 @@ export function roleLimitIssues(roles, index, rowTables) {
|
|
|
377
406
|
if (issue !== null)
|
|
378
407
|
out.push({ path: where('notBy'), message: `${issue}: \`notBy\` names the person who may not change the row` });
|
|
379
408
|
}
|
|
409
|
+
if (reach.notThrough !== undefined) {
|
|
410
|
+
// A change the listed person may not make; they still read the row, by the listing, as before.
|
|
411
|
+
if (action === 'read')
|
|
412
|
+
out.push({ path: where('notThrough'), message: '`notThrough` holds a change (update or delete): a person listed on a row still reads it' });
|
|
413
|
+
const listings = rowTables?.ways === undefined ? null : listingsOf(ref, index, rowTables.ways);
|
|
414
|
+
const names = notThroughList(reach);
|
|
415
|
+
names.forEach((listing, l) => {
|
|
416
|
+
const at = typeof reach.notThrough === 'string' ? where('notThrough') : [...where('notThrough'), l];
|
|
417
|
+
if (names.indexOf(listing) !== l)
|
|
418
|
+
out.push({ path: at, message: `"${listing}" is named twice` });
|
|
419
|
+
else if (listings !== null && !listings.has(listing)) {
|
|
420
|
+
out.push({ path: at, message: `"${listing}" is no listing "${ref}" is read through: name the table of a "through" way of "${ref}", or of a row it hangs off ("via")` });
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}
|
|
380
424
|
});
|
|
381
425
|
}
|
|
382
426
|
}
|
|
@@ -388,7 +432,7 @@ export function roleLimitIssues(roles, index, rowTables) {
|
|
|
388
432
|
continue;
|
|
389
433
|
const written = limit?.rows?.[action];
|
|
390
434
|
const reach = Array.isArray(written) ? (written.length === 1 ? written[0] : undefined) : written;
|
|
391
|
-
if (reach === undefined || reach.reach !== 'own' || reach.unowned !== undefined || reach.while !== undefined || reach.by !== undefined || reach.notBy !== undefined || reach.via !== undefined) {
|
|
435
|
+
if (reach === undefined || reach.reach !== 'own' || reach.unowned !== undefined || reach.while !== undefined || reach.by !== undefined || reach.notBy !== undefined || reach.via !== undefined || reach.notThrough !== undefined) {
|
|
392
436
|
out.push({ path: ['roles', r, 'limits', ref, 'rows', action], message: `"${ref}" is private: the role's ${action} reaches the person's own rows only ({ "reach": "own" })` });
|
|
393
437
|
}
|
|
394
438
|
}
|
|
@@ -400,6 +444,29 @@ export function roleLimitIssues(roles, index, rowTables) {
|
|
|
400
444
|
});
|
|
401
445
|
return out;
|
|
402
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* The listings a table's rows are read through: the table of each of its
|
|
449
|
+
* `through` ways, and of the rows it hangs off (`via`), as far up as a row is
|
|
450
|
+
* followed ({@link BELONGS_VIA_MAX_STEPS} links).
|
|
451
|
+
*/
|
|
452
|
+
export function listingsOf(ref, index, ways) {
|
|
453
|
+
const out = new Set();
|
|
454
|
+
const walk = (table, steps, seen) => {
|
|
455
|
+
for (const way of ways(table)) {
|
|
456
|
+
if ('through' in way)
|
|
457
|
+
out.add(way.through.table);
|
|
458
|
+
else if ('via' in way && steps < BELONGS_VIA_MAX_STEPS) {
|
|
459
|
+
const link = index.column(table, way.via);
|
|
460
|
+
const parent = link?.type === 'fk' ? link.references : undefined;
|
|
461
|
+
if (parent === undefined || seen.has(parent))
|
|
462
|
+
continue;
|
|
463
|
+
walk(parent, steps + 1, new Set([...seen, table]));
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
walk(ref, 0, new Set([ref]));
|
|
468
|
+
return out;
|
|
469
|
+
}
|
|
403
470
|
export function rowTablesOf(tables) {
|
|
404
471
|
const byRef = new Map(tables.map((table) => [table.ref, table]));
|
|
405
472
|
return {
|