@antelopejs/interface-dms 0.14.7-next.990.g2afafca → 0.14.7-next.993.g1ed3e62

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.
@@ -29,7 +29,16 @@ declare const SessionModel_base: {
29
29
  validate(obj: unknown, options?: import("@antelopejs/interface-database-decorators").ValidateInputOptions): import("@antelopejs/interface-database-decorators").ValidationResult;
30
30
  };
31
31
  export declare class SessionModel extends SessionModel_base {
32
- /** Atomically rotates a token or resolves its immediate predecessor. */
32
+ /**
33
+ * Atomically rotates a token or resolves its immediate predecessor within
34
+ * the rotation grace window. Any other token is a replay of a superseded
35
+ * one: the session is deleted.
36
+ *
37
+ * @param presentedToken A token whose signature the caller verified and
38
+ * whose claims name `sessionId`
39
+ * @returns The session's current token, or `null` when the presented one
40
+ * is refused
41
+ */
33
42
  rotateRefreshToken(sessionId: string, presentedToken: string, refreshToken: string, rotatedAt?: Date): Promise<string | null>;
34
43
  /** Replaces a refresh token without retaining predecessor eligibility. */
35
44
  replaceRefreshToken(sessionId: string, refreshToken: string): Promise<void>;
@@ -61,7 +61,16 @@ function recoverSuccessor(session, presentedToken) {
61
61
  return openRefreshToken(session.sealedRefreshToken, presentedToken);
62
62
  }
63
63
  class SessionModel extends (0, interface_database_decorators_1.BasicDataModel)(sessions_table_1.Session, sessions_table_1.SESSIONS_TABLE_NAME) {
64
- /** Atomically rotates a token or resolves its immediate predecessor. */
64
+ /**
65
+ * Atomically rotates a token or resolves its immediate predecessor within
66
+ * the rotation grace window. Any other token is a replay of a superseded
67
+ * one: the session is deleted.
68
+ *
69
+ * @param presentedToken A token whose signature the caller verified and
70
+ * whose claims name `sessionId`
71
+ * @returns The session's current token, or `null` when the presented one
72
+ * is refused
73
+ */
65
74
  async rotateRefreshToken(sessionId, presentedToken, refreshToken, rotatedAt = new Date()) {
66
75
  const modified = await this.table
67
76
  .getAll(sessionId)
@@ -77,11 +86,13 @@ class SessionModel extends (0, interface_database_decorators_1.BasicDataModel)(s
77
86
  if (modified > 0)
78
87
  return refreshToken;
79
88
  const session = await this.get(sessionId);
80
- if (!session ||
81
- !(0, sessions_model_1.isImmediateRefreshTokenPredecessor)(session, presentedToken, rotatedAt)) {
89
+ if (!session)
82
90
  return null;
91
+ if ((0, sessions_model_1.isImmediateRefreshTokenPredecessor)(session, presentedToken, rotatedAt)) {
92
+ return recoverSuccessor(session, presentedToken);
83
93
  }
84
- return recoverSuccessor(session, presentedToken);
94
+ await this.delete(sessionId);
95
+ return null;
85
96
  }
86
97
  /** Replaces a refresh token without retaining predecessor eligibility. */
87
98
  async replaceRefreshToken(sessionId, refreshToken) {
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.model.js","sourceRoot":"","sources":["../../../../src/auth/db/models/sessions.model.ts"],"names":[],"mappings":";;;;AAAA,6CAKqB;AACrB,6FAA2E;AAC3E,6DAAwE;AACxE,+DAIoC;AAEpC,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAC5C,MAAM,iBAAiB,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAEtC,SAAS,OAAO,CAAC,WAAmB;IAClC,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC;SACxB,MAAM,CAAC,eAAe,GAAG,WAAW,CAAC;SACrC,MAAM,EAAE,CAAC;AACd,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa,EAAE,WAAmB;IAC1D,MAAM,EAAE,GAAG,IAAA,yBAAW,EAAC,aAAa,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,IAAA,4BAAc,EAAC,cAAc,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IACxE,MAAM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,gBAAgB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IACnD,CAAC;IAED,0EAA0E;IAC1E,KAAK,CAAC,mBAAmB,CACvB,SAAiB,EACjB,YAAoB;QAEpB,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;YAC3B,gBAAgB,EAAE,IAAA,iCAAgB,EAAC,YAAY,CAAC;YAChD,kBAAkB,EAAE,IAAI;YACxB,wBAAwB,EAAE,IAAI;YAC9B,qBAAqB,EAAE,IAAI;SAC5B,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,mBAAmB,CAAC,SAAe;QACvC,MAAM,IAAI,CAAC,KAAK;aACb,OAAO,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,SAAS,CAAC;aAC3D,MAAM,EAAE;aACR,GAAG,EAAE,CAAC;IACX,CAAC;IAED,WAAW,CAAC,MAAc;QACxB,OAAO,IAAI,CAAC,KAAK;aACd,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;aACxB,GAAG,EAAE;aACL,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CACZ,GAAG;aACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;aACxC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAClC,CAAC;IACN,CAAC;IAED,cAAc,CAAC,MAAc;QAC3B,OAAO,IAAI,CAAC,KAAK;aACd,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;aACxB,MAAM,EAAE;aACR,GAAG,EAAE;aACL,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;CACF"}
1
+ {"version":3,"file":"sessions.model.js","sourceRoot":"","sources":["../../../../src/auth/db/models/sessions.model.ts"],"names":[],"mappings":";;;;AAAA,6CAKqB;AACrB,6FAA2E;AAC3E,6DAAwE;AACxE,+DAIo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AC;aAC3D,MAAM,EAAE;aACR,GAAG,EAAE,CAAC;IACX,CAAC;IAED,WAAW,CAAC,MAAc;QACxB,OAAO,IAAI,CAAC,KAAK;aACd,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;aACxB,GAAG,EAAE;aACL,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CACZ,GAAG;aACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;aACxC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAClC,CAAC;IACN,CAAC;IAED,cAAc,CAAC,MAAc;QAC3B,OAAO,IAAI,CAAC,KAAK;aACd,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;aACxB,MAAM,EAAE;aACR,GAAG,EAAE;aACL,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;CACF"}
@@ -197,6 +197,16 @@ export type ActionTarget = ({
197
197
  * share link, a token).
198
198
  */
199
199
  copy?: string;
200
+ /**
201
+ * Page of the dashboard opened once the request succeeded, after the
202
+ * success toast: a path starting with `/` (an absolute URL is refused
203
+ * when the target is serialized). Takes the tokens of `url`, plus
204
+ * `{{response.<field>}}`, a field of the JSON response (a dotted path
205
+ * reads a nested one). A field the response lacks leaves the user on
206
+ * the page, with a console warning.
207
+ * @example "/sales/invoices/{{response._id}}"
208
+ */
209
+ redirect?: string;
200
210
  successMessage: string;
201
211
  } | {
202
212
  type: "exportJob";
@@ -285,6 +295,16 @@ export type ActionTargetSerialized = ({
285
295
  * share link, a token).
286
296
  */
287
297
  copy?: string;
298
+ /**
299
+ * Page of the dashboard opened once the request succeeded, after the
300
+ * success toast: a path starting with `/` (an absolute URL is refused
301
+ * when the target is serialized). Takes the tokens of `url`, plus
302
+ * `{{response.<field>}}`, a field of the JSON response (a dotted path
303
+ * reads a nested one). A field the response lacks leaves the user on
304
+ * the page, with a console warning.
305
+ * @example "/sales/invoices/{{response._id}}"
306
+ */
307
+ redirect?: string;
288
308
  successMessage: string;
289
309
  } | {
290
310
  type: "exportJob";
@@ -1,7 +1,9 @@
1
1
  import type { ActionTarget, ActionTargetSerialized } from "../action-target";
2
2
  /**
3
3
  * An action target as the options carry it: a component target is serialized,
4
- * every other kind is plain data already.
4
+ * every other kind is plain data already. Throws on an `api` target whose
5
+ * `redirect` is not a path of the dashboard (one leading `/`, so neither a
6
+ * scheme nor a protocol-relative `//host`).
5
7
  *
6
8
  * @internal
7
9
  */
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.serializeActionTarget = serializeActionTarget;
4
+ const DASHBOARD_PATH = /^\/(?![/\\])/;
4
5
  /**
5
6
  * An action target as the options carry it: a component target is serialized,
6
- * every other kind is plain data already.
7
+ * every other kind is plain data already. Throws on an `api` target whose
8
+ * `redirect` is not a path of the dashboard (one leading `/`, so neither a
9
+ * scheme nor a protocol-relative `//host`).
7
10
  *
8
11
  * @internal
9
12
  */
@@ -13,6 +16,11 @@ function serializeActionTarget(target) {
13
16
  target.type === "sidePanel") {
14
17
  return { ...target, component: target.component.serializeSync() };
15
18
  }
19
+ if (target.type === "api" &&
20
+ target.redirect !== undefined &&
21
+ !DASHBOARD_PATH.test(target.redirect)) {
22
+ throw new Error(`An "api" action target redirects to a path of the dashboard, starting with "/": "${target.redirect}" is not one`);
23
+ }
16
24
  return target;
17
25
  }
18
26
  //# sourceMappingURL=action-target.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-target.js","sourceRoot":"","sources":["../../../src/component-options/internal/action-target.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACH,+BACE,MAAoB;IAEpB,IACE,MAAM,CAAC,IAAI,KAAK,QAAQ;QACxB,MAAM,CAAC,IAAI,KAAK,OAAO;QACvB,MAAM,CAAC,IAAI,KAAK,WAAW,EAC3B,CAAC;QACD,OAAO,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,aAAa,EAAE,EAAE,CAAC;IACpE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"action-target.js","sourceRoot":"","sources":["../../../src/component-options/internal/action-target.ts"],"names":[],"mappings":";;;AAEA,MAAM,cAAc,GAAG,cAAc,CAAC;AAEtC;;;;;;;GAOG;AACH,+BACE,MAAoB;IAEpB,IACE,MAAM,CAAC,IAAI,KAAK,QAAQ;QACxB,MAAM,CAAC,IAAI,KAAK,OAAO;QACvB,MAAM,CAAC,IAAI,KAAK,WAAW,EAC3B,CAAC;QACD,OAAO,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,aAAa,EAAE,EAAE,CAAC;IACpE,CAAC;IACD,IACE,MAAM,CAAC,IAAI,KAAK,KAAK;QACrB,MAAM,CAAC,QAAQ,KAAK,SAAS;QAC7B,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EACrC,CAAC;QACD,MAAM,IAAI,KAAK,CACb,oFAAoF,MAAM,CAAC,QAAQ,cAAc,CAClH,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -18,8 +18,8 @@ export declare function readPageRecord(layout: ComponentInfo | undefined, contex
18
18
  /**
19
19
  * A header button as the page's record leaves it: unchanged when the layout
20
20
  * reads no record or the button does not act on it, left out (`undefined`)
21
- * when the record was not found, its target's `{{record.X}}` filled in
22
- * otherwise.
21
+ * when the record was not found, the `{{record.X}}` of its target's `url`
22
+ * (and of an `api` target's `redirect`) filled in otherwise.
23
23
  *
24
24
  * @internal
25
25
  */
@@ -11,6 +11,7 @@ const targetUrl = (target) => {
11
11
  const url = target?.url;
12
12
  return (0, type_check_1.isString)(url) ? url : undefined;
13
13
  };
14
+ const targetRedirect = (target) => target?.type === "api" ? target.redirect : undefined;
14
15
  const isRecordNode = (value) => !!value && typeof value === "object";
15
16
  function leafAt(record, path) {
16
17
  const value = path
@@ -46,8 +47,7 @@ async function readPageRecord(layout, context) {
46
47
  function isRecordBound(button) {
47
48
  if (button.requiresRecord)
48
49
  return true;
49
- const url = targetUrl(button.target);
50
- return !!url && NAMES_RECORD.test(url);
50
+ return [targetUrl(button.target), targetRedirect(button.target)].some((url) => !!url && NAMES_RECORD.test(url));
51
51
  }
52
52
  /**
53
53
  * A URL with its `{{record.X}}` tokens filled in, each value percent-encoded
@@ -63,8 +63,8 @@ function fillRecordTokens(url, record) {
63
63
  /**
64
64
  * A header button as the page's record leaves it: unchanged when the layout
65
65
  * reads no record or the button does not act on it, left out (`undefined`)
66
- * when the record was not found, its target's `{{record.X}}` filled in
67
- * otherwise.
66
+ * when the record was not found, the `{{record.X}}` of its target's `url`
67
+ * (and of an `api` target's `redirect`) filled in otherwise.
68
68
  *
69
69
  * @internal
70
70
  */
@@ -78,9 +78,10 @@ record) {
78
78
  const { target } = button;
79
79
  if (!target || !("url" in target) || !(0, type_check_1.isString)(target.url))
80
80
  return button;
81
- return {
82
- ...button,
83
- target: { ...target, url: fillRecordTokens(target.url, record) },
84
- };
81
+ const filled = { ...target, url: fillRecordTokens(target.url, record) };
82
+ if (filled.type === "api" && filled.redirect !== undefined) {
83
+ filled.redirect = fillRecordTokens(filled.redirect, record);
84
+ }
85
+ return { ...button, target: filled };
85
86
  }
86
87
  //# sourceMappingURL=page-record.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"page-record.js","sourceRoot":"","sources":["../../../src/page/internal/page-record.ts"],"names":[],"mappings":";;;;AAAA,gEAA6D;AAM7D,gEAIyC;AAEzC,MAAM,YAAY,GAAG,kCAAkC,CAAC;AACxD,MAAM,YAAY,GAAG,iBAAiB,CAAC;AACvC,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,MAAM,SAAS,GAAG,CAChB,MAEa,EACO,EAAE;IACtB,MAAM,GAAG,GAAG,MAAM,EAAE,GAAG,CAAC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EAAE,IAAI,CAAC,CAAC;QACnC,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;GAOG;AACH,wBACE,MAAgC,EAChC,cAAuB;AACvB,wPAAwP;AACxP,MAAqD;IAErD,IAAI,CAAC,cAAc,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;QAAE,OAAO,MAAM,CAAC;IAC7D,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAC9B,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,IAAA,qBAAQ,EAAC,MAAM,CAAC,GAAG,CAAC;QAAE,OAAO,MAAM,CAAC;IAC1E,MAAM,MAAM,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC;IACxE,IAAI,MAAM,CAAC,IAAI,KAAK,KAAK,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3D,MAAM,CAAC,QAAQ,GAAG,gBAAgB,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACvC,CAAC"}
@@ -316,7 +316,7 @@ import {
316
316
  | Method | Signature | Description |
317
317
  | ------ | --------- | ----------- |
318
318
  | `replaceRefreshToken` | `(sessionId: string, refreshToken: string) => Promise<void>` | Makes a token the current one of the session, storing only its hash. Clears the sealed token and the predecessor, so no grace window applies. |
319
- | `rotateRefreshToken` | `(sessionId: string, presentedToken: string, refreshToken: string, rotatedAt?: Date) => Promise<string \| null>` | Replaces the presented token with a new one in one atomic update, and sets `lastActiveAt`. A client that presents the immediate predecessor within the 15-second grace window gets the current token back. Any other token gets `null`. |
319
+ | `rotateRefreshToken` | `(sessionId: string, presentedToken: string, refreshToken: string, rotatedAt?: Date) => Promise<string \| null>` | Replaces the presented token with a new one in one atomic update, and sets `lastActiveAt`. A client that presents the immediate predecessor within the 15-second grace window gets the current token back. Any other token, the predecessor after that window or an older token, is a replay: the session is deleted and the call returns `null`. Pass only a token whose signature you verified and whose claims name `sessionId`. |
320
320
  | `deleteInactiveSince` | `(threshold: Date) => Promise<void>` | Deletes the sessions last active before a date. |
321
321
  | `getByUserId` | `(userId: string) => Promise<Session[]>` | Every session of a user, read through the `userId` index. |
322
322
  | `deleteByUserId` | `(userId: string) => Promise<void>` | Deletes every session of a user. |
@@ -177,6 +177,8 @@ DefaultLayout({
177
177
  });
178
178
  ```
179
179
 
180
+ An `api` button's `redirect` takes the `{{record.X}}` tokens too, filled in the same way, and a button whose `redirect` names one acts on the record. `{{response.<field>}}` is filled by the browser once the call answered: `redirect: "/sites/{{response._id}}?from={{record.address}}"`.
181
+
180
182
  The record travels with the layout, so the header is drawn with it, on the server too, and never waits for it. Like an `availability`, it follows the page URL: the header asks for its buttons again when the route parameters or the query change, and once a write refreshed the page (`refreshPageBlocks()`, which a header button calls after a change, and a form once it saved). Its fields only shape the buttons; the route behind each one still checks the record on its own.
181
183
 
182
184
  #### A record deleted under the page
@@ -78,7 +78,7 @@ A `new` or `edit` `ResourceForm` block over the controller submits to the same r
78
78
 
79
79
  `RowActionConfig` (built-in actions) also takes `label`, `icon` and `confirm` (an `ActionConfirm`: a `ConfirmDialog`, or `{ from }`, a URL answering one for the row, on delete, archive and restore, for a single row); `BulkRowActionConfig` (delete, archive, restore) adds `successMessage`. `CustomRowAction` also takes `confirm`, `permission` (`ButtonPermission`: an action of the table by name, or an `Action`), `permissionId` (an absolute permission id, which wins over `permission`), `color`, `variant`, `showLabel`, `bulk` (`true` or `{ allMatching: true }`: offered on the selection bar, see below) and `deepLink` (a drawer, modal or side panel it opens is kept in the URL as `?record=<id>` (by default for a side panel, which `false` opts out of), or `?<tableId>.record=<id>` on a page with several table views). An action the caller fails the permission for is stripped per request like a custom button; it is only hidden, so the route its target calls must check the permission itself.
80
80
 
81
- A bulk custom action sends the selected ids as a repeated `ids` query parameter, or `allMatching=true` with the table's filters, search and archive view after "Select all N matching". `resolveBulkRowIds(this, ctx, user)`, called from a route of the table's data controller, or `resolveBulkRowIds({ model, tableView }, ctx, user)` (`BulkRowSource`: the model the calling route is given, and the table's `TableViewMeta`) from any other route, a page's included, answers the ids the action covers: the selected ones, or every matching row read like the list reads them, refusing more than `MAX_BULK_MATCHING_ROWS` (413). Either way the caller needs the table's `list` permission (403 otherwise). `BULK_ALL_MATCHING_KEY` is the query flag. The `api` action target also takes `body` (the confirmation's field values merged in) and `copy` (response field copied to the clipboard). `CustomButton` takes `placement` (`"toolbar"`, the default, or `"header"`: drawn in the page header, which the server adds it to); `rowActions.add` takes it too (`AddRowActionConfig`).
81
+ A bulk custom action sends the selected ids as a repeated `ids` query parameter, or `allMatching=true` with the table's filters, search and archive view after "Select all N matching". `resolveBulkRowIds(this, ctx, user)`, called from a route of the table's data controller, or `resolveBulkRowIds({ model, tableView }, ctx, user)` (`BulkRowSource`: the model the calling route is given, and the table's `TableViewMeta`) from any other route, a page's included, answers the ids the action covers: the selected ones, or every matching row read like the list reads them, refusing more than `MAX_BULK_MATCHING_ROWS` (413). Either way the caller needs the table's `list` permission (403 otherwise). `BULK_ALL_MATCHING_KEY` is the query flag. The `api` action target also takes `body` (the confirmation's field values merged in), `copy` (response field copied to the clipboard) and `redirect` (a dashboard path opened on success, taking `{{response.<field>}}` besides the tokens of `url`). `CustomButton` takes `placement` (`"toolbar"`, the default, or `"header"`: drawn in the page header, which the server adds it to); `rowActions.add` takes it too (`AddRowActionConfig`).
82
82
 
83
83
  When several table views share a data controller, each read action of its routes is guarded by the permission ids of every mounted table view, each write action by the writing table view's (`TableViewMeta.actionPermissionIds(action)`; any one suffices). `TableViewMeta.componentBuilders` lists them, `writingComponentBuilders` the ones that write.
84
84
 
@@ -151,7 +151,7 @@ import type { ActionTarget } from "@antelopejs/interface-dms/base/types/action-t
151
151
  | `"external"` | `url: string`, `newTab?: boolean`; the same tokens as `page` |
152
152
  | `"download"` | `url: string`, `filename?: string` (`DownloadActionTarget`); the same tokens as `page`, the file name taking them as written. Fetched with the user's session and saved under `filename`, else the server's `Content-Disposition` name, else the URL's last segment; a failure is toasted |
153
153
  | `"quickAction"` | `id: string` (`category:id`, or the bare id) |
154
- | `"api"` | `url: string`, `method?: "GET" \| "POST" \| "PUT" \| "DELETE" \| "PATCH"`, `body?`, `copy?`, `successMessage: string`; the same tokens as `page` |
154
+ | `"api"` | `url: string`, `method?: "GET" \| "POST" \| "PUT" \| "DELETE" \| "PATCH"`, `body?`, `copy?`, `redirect?: string`, `successMessage: string`; the same tokens as `page`. `redirect` is a dashboard path (starting with `/`, an absolute URL throws when the target is serialized) opened on success; it takes the tokens of `url` plus `{{response.<field>}}` (dotted paths allowed), and a field the response lacks leaves the user on the page |
155
155
  | `"exportJob"` | `url: string`, `method?: "GET" \| "POST"`, `statusUrl?`, `downloadUrl?`, `labels?`; the same tokens as `page`, plus `{{job.id}}` in `statusUrl` and `downloadUrl` |
156
156
 
157
157
  `SidePanelTargetOptions` sets the header the DMS draws above a `sidePanel` target's component: `title` (the action's label by default; `$`: an i18n key), `rowTitle`, the title while a row is open, an i18n key or a literal receiving the row's fields (`"{method} {path}"`), `positionLabel`, an i18n key receiving `{ index }` (from 1) and `{ total }` for the row's position among all the rows the table lists, its count rather than the page loaded (the DMS's "{index} of {total}" by default), and `deepLink`, which keeps the open row in the URL like the action's own `deepLink`. It is on by default for a side panel, `false` opting out (the action's own `deepLink` wins when set), and `notFound` (`SidePanelNotFoundTexts`: `title?`, `description?`), the state the panel draws with a close button when the row a link names answers 404. The panel is non-modal and docked on the right, one at a time with a module's side panels. It is meant for global, page-independent panels (an assistant dock): a detail or record panel opens in a `drawer`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/interface-dms",
3
- "version": "0.14.7-next.990.g2afafca",
3
+ "version": "0.14.7-next.993.g1ed3e62",
4
4
  "description": "Public AntelopeJS interfaces of the DMS: pages, components, permissions, tenancy, auth, notifications and HTML rendering.",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -132,7 +132,7 @@
132
132
  "provenance": true,
133
133
  "registry": "https://registry.npmjs.org/"
134
134
  },
135
- "gitHead": "2afafcaab1a3a505d5aa025b77850f99e73d56ce",
135
+ "gitHead": "1ed3e62b54315cf252ee2805470f0d1c5f3ef1ba",
136
136
  "scripts": {
137
137
  "build": "rimraf dist && antelopejs-tsc",
138
138
  "typecheck": "antelopejs-tsc --noEmit",