@things-factory/shell 10.1.31 → 10.1.34
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-server/index.d.ts +1 -0
- package/dist-server/index.js +1 -0
- package/dist-server/index.js.map +1 -1
- package/dist-server/reversibility/index.d.ts +1 -0
- package/dist-server/reversibility/index.js +5 -0
- package/dist-server/reversibility/index.js.map +1 -0
- package/dist-server/reversibility/reversibility.d.ts +25 -0
- package/dist-server/reversibility/reversibility.js +28 -0
- package/dist-server/reversibility/reversibility.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/dist-server/typeorm/encrypt-transform.d.ts +22 -3
- package/dist-server/typeorm/encrypt-transform.js +51 -35
- package/dist-server/typeorm/encrypt-transform.js.map +1 -1
- package/dist-server/utils/get-query-builder-from-list-params.d.ts +2 -0
- package/dist-server/utils/get-query-builder-from-list-params.js +18 -8
- package/dist-server/utils/get-query-builder-from-list-params.js.map +1 -1
- package/dist-server/utils/keyset-cursor.d.ts +1 -0
- package/dist-server/utils/keyset-cursor.js +4 -2
- package/dist-server/utils/keyset-cursor.js.map +1 -1
- package/package.json +2 -2
- package/tests/encrypt-transform.test.ts +130 -0
package/dist-server/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './bootstrap-hooks.js';
|
|
|
9
9
|
export * from './graphql-local-client.js';
|
|
10
10
|
export * from './service/index.js';
|
|
11
11
|
export * from './refusal/index.js';
|
|
12
|
+
export * from './reversibility/index.js';
|
|
12
13
|
export * from './typeorm/long-text-column.js';
|
|
13
14
|
export * from './typeorm/encrypt-transform.js';
|
|
14
15
|
export * from './typeorm/encrypt-json-transform.js';
|
package/dist-server/index.js
CHANGED
|
@@ -12,6 +12,7 @@ tslib_1.__exportStar(require("./bootstrap-hooks.js"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./graphql-local-client.js"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./service/index.js"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./refusal/index.js"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./reversibility/index.js"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./typeorm/long-text-column.js"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./typeorm/encrypt-transform.js"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./typeorm/encrypt-json-transform.js"), exports);
|
package/dist-server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,gEAAqC;AACrC,4EAAiD;AACjD,qEAA0C;AAC1C,2DAAgC;AAChC,sDAA2B;AAC3B,oEAAyC;AACzC,iEAAsC;AACtC,+DAAoC;AACpC,oEAAyC;AACzC,6DAAkC;AAClC,6DAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,gEAAqC;AACrC,4EAAiD;AACjD,qEAA0C;AAC1C,2DAAgC;AAChC,sDAA2B;AAC3B,oEAAyC;AACzC,iEAAsC;AACtC,+DAAoC;AACpC,oEAAyC;AACzC,6DAAkC;AAClC,6DAAkC;AAClC,mEAAwC;AAExC,wEAA6C;AAC7C,yEAA8C;AAC9C,8EAAmD;AACnD,uEAA4C;AAC5C,uEAA4C","sourcesContent":["export * from './migrations/index.js'\nexport * from './initializers/naming-strategy.js'\nexport * from './initializers/database.js'\nexport * from './utils/index.js'\nexport * from './pubsub.js'\nexport * from './pubsub-log-transport.js'\nexport * from './middlewares/index.js'\nexport * from './bootstrap-hooks.js'\nexport * from './graphql-local-client.js'\nexport * from './service/index.js'\nexport * from './refusal/index.js'\nexport * from './reversibility/index.js'\n\nexport * from './typeorm/long-text-column.js'\nexport * from './typeorm/encrypt-transform.js'\nexport * from './typeorm/encrypt-json-transform.js'\nexport * from './typeorm/json5-transform.js'\nexport * from './typeorm/round-transform.js'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reversibility.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/reversibility/index.ts"],"names":[],"mappings":";;;AAAA,6DAAkC","sourcesContent":["export * from './reversibility.js'\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an operation's effect can be undone (ADR-0064 decision 1).
|
|
3
|
+
*
|
|
4
|
+
* - `irreversible` the effect happens there and then, and there is no way back.
|
|
5
|
+
* - `compensable` it cannot be undone, but the original record stays and a new record corrects it.
|
|
6
|
+
* - `reversible` a paired operation returns to the same state, and no other record holds the id of a
|
|
7
|
+
* removed row (a row made again has a new id).
|
|
8
|
+
* - `unknown` not yet established. A value of its own, so the classifier never guesses a neighbour.
|
|
9
|
+
*
|
|
10
|
+
* Screens ask a destructive confirmation only for `irreversible`.
|
|
11
|
+
*
|
|
12
|
+
* ── 왜 shell 인가 (ADR-0064 보탬, 2026-09-20) ────────────────────────────────
|
|
13
|
+
* operato-plant 가 먼저 적었고 `@things-factory/station` 이 둘째 소비자로 서면서 올라왔다 —
|
|
14
|
+
* `refusal` 이 지난 길과 같다. 자리가 그 옆인 것은 같은 종류의 선언이기 때문이다: **문이 하는 일에
|
|
15
|
+
* 대해 서버가 아는 사실.** 소비처 넷이 이미 shell 을 들고 있다.
|
|
16
|
+
*
|
|
17
|
+
* **worklist 가 아닌 까닭.** 거기에는 이미 `Reversibility` 라는 이름이 있고 그것은 다른 타입이다
|
|
18
|
+
* (`{ reversible: boolean, caveat? }` — 결재 슬롯이 읽는 모양). 「승인을 되돌릴 수 있나」와 「이 문의
|
|
19
|
+
* 효과를 되돌릴 수 있나」는 다른 사실이고, 한 꾸러미에서 한 이름을 두고 다투게 두지 않는다.
|
|
20
|
+
*
|
|
21
|
+
* **화면은 이 상수를 import 하지 않는다.** 화면이 읽는 값은 질의로 오는 문자열이고, shell 의
|
|
22
|
+
* 클라이언트 진입점은 부수 효과를 들고 있어 타입 하나를 위해 지날 자리가 아니다.
|
|
23
|
+
*/
|
|
24
|
+
export declare const REVERSIBILITIES: readonly ["irreversible", "compensable", "reversible", "unknown"];
|
|
25
|
+
export type Reversibility = (typeof REVERSIBILITIES)[number];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REVERSIBILITIES = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Whether an operation's effect can be undone (ADR-0064 decision 1).
|
|
6
|
+
*
|
|
7
|
+
* - `irreversible` the effect happens there and then, and there is no way back.
|
|
8
|
+
* - `compensable` it cannot be undone, but the original record stays and a new record corrects it.
|
|
9
|
+
* - `reversible` a paired operation returns to the same state, and no other record holds the id of a
|
|
10
|
+
* removed row (a row made again has a new id).
|
|
11
|
+
* - `unknown` not yet established. A value of its own, so the classifier never guesses a neighbour.
|
|
12
|
+
*
|
|
13
|
+
* Screens ask a destructive confirmation only for `irreversible`.
|
|
14
|
+
*
|
|
15
|
+
* ── 왜 shell 인가 (ADR-0064 보탬, 2026-09-20) ────────────────────────────────
|
|
16
|
+
* operato-plant 가 먼저 적었고 `@things-factory/station` 이 둘째 소비자로 서면서 올라왔다 —
|
|
17
|
+
* `refusal` 이 지난 길과 같다. 자리가 그 옆인 것은 같은 종류의 선언이기 때문이다: **문이 하는 일에
|
|
18
|
+
* 대해 서버가 아는 사실.** 소비처 넷이 이미 shell 을 들고 있다.
|
|
19
|
+
*
|
|
20
|
+
* **worklist 가 아닌 까닭.** 거기에는 이미 `Reversibility` 라는 이름이 있고 그것은 다른 타입이다
|
|
21
|
+
* (`{ reversible: boolean, caveat? }` — 결재 슬롯이 읽는 모양). 「승인을 되돌릴 수 있나」와 「이 문의
|
|
22
|
+
* 효과를 되돌릴 수 있나」는 다른 사실이고, 한 꾸러미에서 한 이름을 두고 다투게 두지 않는다.
|
|
23
|
+
*
|
|
24
|
+
* **화면은 이 상수를 import 하지 않는다.** 화면이 읽는 값은 질의로 오는 문자열이고, shell 의
|
|
25
|
+
* 클라이언트 진입점은 부수 효과를 들고 있어 타입 하나를 위해 지날 자리가 아니다.
|
|
26
|
+
*/
|
|
27
|
+
exports.REVERSIBILITIES = ['irreversible', 'compensable', 'reversible', 'unknown'];
|
|
28
|
+
//# sourceMappingURL=reversibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reversibility.js","sourceRoot":"","sources":["../../server/reversibility/reversibility.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACU,QAAA,eAAe,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,CAAU,CAAA","sourcesContent":["/**\n * Whether an operation's effect can be undone (ADR-0064 decision 1).\n *\n * - `irreversible` the effect happens there and then, and there is no way back.\n * - `compensable` it cannot be undone, but the original record stays and a new record corrects it.\n * - `reversible` a paired operation returns to the same state, and no other record holds the id of a\n * removed row (a row made again has a new id).\n * - `unknown` not yet established. A value of its own, so the classifier never guesses a neighbour.\n *\n * Screens ask a destructive confirmation only for `irreversible`.\n *\n * ── 왜 shell 인가 (ADR-0064 보탬, 2026-09-20) ────────────────────────────────\n * operato-plant 가 먼저 적었고 `@things-factory/station` 이 둘째 소비자로 서면서 올라왔다 —\n * `refusal` 이 지난 길과 같다. 자리가 그 옆인 것은 같은 종류의 선언이기 때문이다: **문이 하는 일에\n * 대해 서버가 아는 사실.** 소비처 넷이 이미 shell 을 들고 있다.\n *\n * **worklist 가 아닌 까닭.** 거기에는 이미 `Reversibility` 라는 이름이 있고 그것은 다른 타입이다\n * (`{ reversible: boolean, caveat? }` — 결재 슬롯이 읽는 모양). 「승인을 되돌릴 수 있나」와 「이 문의\n * 효과를 되돌릴 수 있나」는 다른 사실이고, 한 꾸러미에서 한 이름을 두고 다투게 두지 않는다.\n *\n * **화면은 이 상수를 import 하지 않는다.** 화면이 읽는 값은 질의로 오는 문자열이고, shell 의\n * 클라이언트 진입점은 부수 효과를 들고 있어 타입 하나를 위해 지날 자리가 아니다.\n */\nexport const REVERSIBILITIES = ['irreversible', 'compensable', 'reversible', 'unknown'] as const\n\nexport type Reversibility = (typeof REVERSIBILITIES)[number]\n"]}
|