@t4h.framework/dev 0.20.1 → 0.21.0
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/CHANGELOG.md +125 -0
- package/dist/Server.js +2 -1
- package/dist/Server.js.map +1 -1
- package/dist/constants/server.d.ts +1 -0
- package/dist/constants/server.js +1 -0
- package/dist/constants/server.js.map +1 -1
- package/dist/integrations/fs.d.ts +7 -3
- package/dist/integrations/fs.js +3 -1
- package/dist/integrations/fs.js.map +1 -1
- package/dist/integrations/http.d.ts +1 -1
- package/dist/integrations/http.js +2 -1
- package/dist/integrations/http.js.map +1 -1
- package/dist/integrations/sftp.d.ts +1 -1
- package/dist/integrations/sftp.js +5 -3
- package/dist/integrations/sftp.js.map +1 -1
- package/dist/models/DevFileBinary.d.ts +1 -0
- package/dist/models/DevFileBinary.js +13 -0
- package/dist/models/DevFileBinary.js.map +1 -1
- package/dist/models/FrameworkConfig.d.ts +2 -7
- package/dist/models/FrameworkConfig.js +1 -1
- package/dist/models/FrameworkConfig.js.map +1 -1
- package/dist/models/claims/DevAssetClaim.d.ts +5 -0
- package/dist/models/claims/DevAssetClaim.js +21 -0
- package/dist/models/claims/DevAssetClaim.js.map +1 -0
- package/dist/models/claims/DevSftpClaim.js +18 -18
- package/dist/models/claims/DevSftpClaim.js.map +1 -1
- package/dist/models/claims/DevSmtpSendEmailClaim.js +2 -1
- package/dist/models/claims/DevSmtpSendEmailClaim.js.map +1 -1
- package/dist/repositories/WorkflowRunActivity.repository.d.ts +2 -1
- package/dist/repositories/WorkflowRunActivity.repository.js +5 -5
- package/dist/repositories/WorkflowRunActivity.repository.js.map +1 -1
- package/dist/repositories/WorkflowRunAsyncActivityPending.repository.d.ts +2 -1
- package/dist/repositories/WorkflowRunAsyncActivityPending.repository.js +7 -9
- package/dist/repositories/WorkflowRunAsyncActivityPending.repository.js.map +1 -1
- package/dist/services/Database.service.d.ts +2 -1
- package/dist/services/Database.service.js +3 -3
- package/dist/services/Database.service.js.map +1 -1
- package/dist/tools/build-tools.d.ts +1 -1
- package/dist/tools/build-tools.js +1 -1
- package/dist/tools/build-tools.js.map +1 -1
- package/dist/tools/copy-assets.d.ts +1 -0
- package/dist/tools/{copy-additional-files.js → copy-assets.js} +3 -3
- package/dist/tools/copy-assets.js.map +1 -0
- package/dist/tools/json-codec.d.ts +3 -0
- package/dist/tools/json-codec.js +8 -3
- package/dist/tools/json-codec.js.map +1 -1
- package/dist/tools/mkdir-out-dir-project-from-ts-config-path-and-json-package-path.d.ts +5 -1
- package/dist/tools/mkdir-out-dir-project-from-ts-config-path-and-json-package-path.js +7 -4
- package/dist/tools/mkdir-out-dir-project-from-ts-config-path-and-json-package-path.js.map +1 -1
- package/dist/tools/resolve-asset-path.d.ts +1 -0
- package/dist/tools/resolve-asset-path.js +12 -0
- package/dist/tools/resolve-asset-path.js.map +1 -0
- package/dist/use-cases/CreateWorkflowRunAsyncActivityPendingCallback.usecase.js +7 -1
- package/dist/use-cases/CreateWorkflowRunAsyncActivityPendingCallback.usecase.js.map +1 -1
- package/dist/use-cases/EnqueueWorkflowRunNextTick.usecase.d.ts +4 -0
- package/dist/use-cases/EnqueueWorkflowRunNextTick.usecase.js +29 -10
- package/dist/use-cases/EnqueueWorkflowRunNextTick.usecase.js.map +1 -1
- package/dist/use-cases/NextTickWorkflowRun.usecase.js +6 -3
- package/dist/use-cases/NextTickWorkflowRun.usecase.js.map +1 -1
- package/dist/workers/app-process.d.ts +2 -0
- package/dist/workers/app-process.js +25 -0
- package/dist/workers/app-process.js.map +1 -1
- package/package.json +23 -23
- package/dist/tools/copy-additional-files.d.ts +0 -1
- package/dist/tools/copy-additional-files.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
# @t4h.framework/dev
|
|
2
2
|
|
|
3
|
+
## 0.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#181](https://github.com/tech4humans-brasil/framework/pull/181) [`9449e4e`](https://github.com/tech4humans-brasil/framework/commit/9449e4e9889f42dea1d52418140f47d25dff0535) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - A credential is a `Secret`, never a string. An env entry declared with
|
|
8
|
+
`type: Secret` hands the workflow the name of the variable; the host binds the
|
|
9
|
+
value where the activity runs, so no input, output or history record holds it.
|
|
10
|
+
|
|
11
|
+
**Breaking**: every field that carries a credential now accepts only a
|
|
12
|
+
`Secret`. Declare the entry with `type: Secret` in your `EnvDesign` and pass it
|
|
13
|
+
whole; `tsc` points at each remaining string.
|
|
14
|
+
|
|
15
|
+
**core**: `Secret` (a `SerializableClass` whose `toString`, `valueOf` and
|
|
16
|
+
`toJSON` throw), `Secret.resolve` and `Secret.read` for hosts, `Secret.FORMAT`
|
|
17
|
+
for the manifest. `EnvDesign` accepts `type: Secret`, refuses a `defaultValue`
|
|
18
|
+
on a secret entry and throws when a `String` entry receives a secret.
|
|
19
|
+
`AsyncActivityCallbackAuth` carries a `Secret` in `secret`, `password`, `token`
|
|
20
|
+
and `value`.
|
|
21
|
+
|
|
22
|
+
**http**: `auth` accepts `{ username, password }`, `{ bearer }` or
|
|
23
|
+
`{ header, value }` besides an `HttpAuth`, all with a `Secret`, and the
|
|
24
|
+
activity writes the header on the host. `clientSecret` and `password` of the
|
|
25
|
+
OAuth2 grants are a `Secret`.
|
|
26
|
+
|
|
27
|
+
**smtp**, **sftp**, **orm**: `connectionString` is a `Secret`. The
|
|
28
|
+
`SftpConnectionString` and `ORMConnectionString` aliases are gone.
|
|
29
|
+
|
|
30
|
+
**hmac**: the callback authorizer reads the secret through `Secret.read`.
|
|
31
|
+
|
|
32
|
+
**dev**: the codec writes a `Secret` by name and binds the env value only where
|
|
33
|
+
an activity runs, reading the input back from the database as the runtime does.
|
|
34
|
+
The SFTP and SMTP claims read the value on connect.
|
|
35
|
+
|
|
36
|
+
**webhook**: documents the `Secret` in `auth`.
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- [#181](https://github.com/tech4humans-brasil/framework/pull/181) [`9449e4e`](https://github.com/tech4humans-brasil/framework/commit/9449e4e9889f42dea1d52418140f47d25dff0535) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Adds an optional `identity` to `Binary`: a key naming these exact bytes, so a
|
|
41
|
+
consumer that materializes a binary can reuse what it already read. Two
|
|
42
|
+
binaries with the same identity must be interchangeable; a subclass that
|
|
43
|
+
cannot promise that leaves it `undefined` and is read every time.
|
|
44
|
+
|
|
45
|
+
**dev**: `DevFileBinary` names a file by path, size and mtime, so an edited
|
|
46
|
+
file gets a new identity and a missing one has none.
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [[`9449e4e`](https://github.com/tech4humans-brasil/framework/commit/9449e4e9889f42dea1d52418140f47d25dff0535), [`9449e4e`](https://github.com/tech4humans-brasil/framework/commit/9449e4e9889f42dea1d52418140f47d25dff0535), [`9449e4e`](https://github.com/tech4humans-brasil/framework/commit/9449e4e9889f42dea1d52418140f47d25dff0535)]:
|
|
49
|
+
- @t4h.framework/core@0.15.0
|
|
50
|
+
- @t4h.framework/fs@0.10.0
|
|
51
|
+
- @t4h.framework/http@0.7.0
|
|
52
|
+
- @t4h.framework/smtp@0.7.0
|
|
53
|
+
- @t4h.framework/sftp@0.8.0
|
|
54
|
+
- @t4h.framework/orm@0.8.0
|
|
55
|
+
- @t4h.framework/hmac@0.3.2
|
|
56
|
+
- @t4h.framework/webhook@0.2.2
|
|
57
|
+
- @t4h.framework/cache@0.6.5
|
|
58
|
+
- @t4h.framework/jwks@0.7.1
|
|
59
|
+
- @t4h.framework/oidc@0.6.5
|
|
60
|
+
|
|
61
|
+
## 0.20.2
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- [#172](https://github.com/tech4humans-brasil/framework/pull/172) [`934d7cf`](https://github.com/tech4humans-brasil/framework/commit/934d7cf97bf6961086c5e89c07ca04a834015d22) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Rejects a `Binary` the dev server cannot address instead of trying to serialize
|
|
66
|
+
it.
|
|
67
|
+
|
|
68
|
+
A `Binary` implemented in the App matched no codec kind and fell through to the
|
|
69
|
+
generic object branch, which walks a `Buffer` one property per byte — around
|
|
70
|
+
100 MB of heap and 8 MB of JSON for a 760 KB file, on every serialization. It
|
|
71
|
+
surfaced as an out-of-memory crash with nothing pointing at the cause, and only
|
|
72
|
+
in development: a published project fails on the same value with a clear error.
|
|
73
|
+
|
|
74
|
+
It now fails the same way, with `Unsupported binary instance`, so the mistake
|
|
75
|
+
shows up while you are writing the workflow. Always take a `Binary` from the
|
|
76
|
+
framework — a response body, `sftp.get`, `read`, `write`, `join`, `asset` — and
|
|
77
|
+
never implement the class yourself.
|
|
78
|
+
|
|
79
|
+
- [#173](https://github.com/tech4humans-brasil/framework/pull/173) [`4e3e687`](https://github.com/tech4humans-brasil/framework/commit/4e3e6879620a057ffc588163936434800590bdfe) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Caps how many workflow runs the dev server advances at the same time.
|
|
80
|
+
|
|
81
|
+
Every child run was scheduled on its own, so a `split` over thousands of blocks
|
|
82
|
+
started every child at once and exhausted the heap before any of them finished
|
|
83
|
+
— a workflow that fans out over a large file could not be tried locally at all.
|
|
84
|
+
|
|
85
|
+
Runs now go through a FIFO queue bounded by
|
|
86
|
+
`WORKFLOW_RUN_NEXT_TICK_CONCURRENCY`. Children still run in parallel, just not
|
|
87
|
+
all at once, which also makes local behaviour closer to what a bounded worker
|
|
88
|
+
pool does when the project is published.
|
|
89
|
+
|
|
90
|
+
- [#174](https://github.com/tech4humans-brasil/framework/pull/174) [`7cd75e4`](https://github.com/tech4humans-brasil/framework/commit/7cd75e4f557d9f5fbe3e486d5a3981186fa38797) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Adds `asset(path)`, which reads a file shipped with the project.
|
|
91
|
+
|
|
92
|
+
Fonts a PDF embeds, images a template draws, a fixed lookup table: they belong
|
|
93
|
+
to the project, not to a run. Reading them with `readFileSync` appears to work
|
|
94
|
+
and then costs dearly, because every primitive persists its input — a value
|
|
95
|
+
holding a `Buffer` is serialized whole, once per activity that receives it, so
|
|
96
|
+
a 1.5 MB font used by a workflow that runs per record is written into the
|
|
97
|
+
history per record. `asset` returns a `Binary`, which travels as a reference
|
|
98
|
+
and is read only where the bytes are needed.
|
|
99
|
+
|
|
100
|
+
Declare the files in `framework.config.ts` under `build.assets` (renamed from
|
|
101
|
+
`build.additionalFiles`, with no fallback — rename the key to keep shipping
|
|
102
|
+
files). `build` now records the copied paths and `publish` sends them, so a
|
|
103
|
+
runtime knows which entries of the artifact are assets. `AssetClaim` is the
|
|
104
|
+
contract each runtime implements.
|
|
105
|
+
|
|
106
|
+
- [#175](https://github.com/tech4humans-brasil/framework/pull/175) [`6e6d3de`](https://github.com/tech4humans-brasil/framework/commit/6e6d3de20895bae1b6faf1bdc32aa4f7c136ef0f) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Adds `HttpBodyRef`, a value in a JSON body resolved when the request is made,
|
|
107
|
+
and a raw `{ binary }` request body.
|
|
108
|
+
|
|
109
|
+
The body of a request is the activity's input, and inputs are persisted. That
|
|
110
|
+
makes two common attachment shapes traps. An encoded file writes the whole file
|
|
111
|
+
into the history, once per request. And a pre-signed URL expires: between
|
|
112
|
+
persisting the input and the request going out there is a queue with no bound
|
|
113
|
+
on how long it holds a message, so a URL minted beforehand can arrive expired.
|
|
114
|
+
|
|
115
|
+
`HttpBodyRef` keeps both out of the history — what is persisted is what the
|
|
116
|
+
subclass serializes, the recipe rather than the result. It is the body
|
|
117
|
+
counterpart of `HttpAuth`, which for the same reason stores how to get a token
|
|
118
|
+
and never the token. `HttpBodyUpload` is the ready-made case: it asks an
|
|
119
|
+
endpoint for a signed destination, uploads the `Binary`, and resolves to the
|
|
120
|
+
URL, configured by data so one class covers any mint-then-upload flow.
|
|
121
|
+
|
|
122
|
+
A `{ binary }` body streams from storage to the wire instead of being buffered.
|
|
123
|
+
|
|
124
|
+
- Updated dependencies [[`7cd75e4`](https://github.com/tech4humans-brasil/framework/commit/7cd75e4f557d9f5fbe3e486d5a3981186fa38797), [`6e6d3de`](https://github.com/tech4humans-brasil/framework/commit/6e6d3de20895bae1b6faf1bdc32aa4f7c136ef0f)]:
|
|
125
|
+
- @t4h.framework/fs@0.9.5
|
|
126
|
+
- @t4h.framework/http@0.6.4
|
|
127
|
+
|
|
3
128
|
## 0.20.1
|
|
4
129
|
|
|
5
130
|
### Patch Changes
|
package/dist/Server.js
CHANGED
|
@@ -60,7 +60,8 @@ export class Server extends EventEmitter {
|
|
|
60
60
|
const { entrypoint, port = DEFAULT_PORT, host = DEFAULT_HOST, vite, } = this.options;
|
|
61
61
|
this.packageJsonPath = await resolvePackageJsonPath(entrypoint);
|
|
62
62
|
const tsConfigPath = await resolveTsconfigFromPackageJsonPath(this.packageJsonPath);
|
|
63
|
-
|
|
63
|
+
const project = await mkdirOutDirProjectFromTsConfigPathAndJsonPackagePath(tsConfigPath, this.packageJsonPath);
|
|
64
|
+
this.outDir = project.outDir;
|
|
64
65
|
const projectDir = path.dirname(this.packageJsonPath);
|
|
65
66
|
const app = createApp({
|
|
66
67
|
appProcess: this.appProcess,
|
package/dist/Server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Server.js","sourceRoot":"","sources":["../src/Server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAItD,OAAO,EAAE,UAAU,EAAoB,MAAM,iBAAiB,CAAA;AAC9D,OAAO,EAAE,YA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J,CAAC;CACF"}
|
|
@@ -9,3 +9,4 @@ export declare const PROJECTS_ROUTES_PREFIX = "/projects";
|
|
|
9
9
|
export declare const DEV_ROUTES_PREFIX = "/_dev";
|
|
10
10
|
export declare const SERVER_URL_ARG = "--server-url=";
|
|
11
11
|
export declare const WORKFLOW_RUN_EVENTS: readonly ["run:created", "run:updated"];
|
|
12
|
+
export declare const WORKFLOW_RUN_NEXT_TICK_CONCURRENCY = 10;
|
package/dist/constants/server.js
CHANGED
|
@@ -9,4 +9,5 @@ export const PROJECTS_ROUTES_PREFIX = '/projects';
|
|
|
9
9
|
export const DEV_ROUTES_PREFIX = '/_dev';
|
|
10
10
|
export const SERVER_URL_ARG = '--server-url=';
|
|
11
11
|
export const WORKFLOW_RUN_EVENTS = ['run:created', 'run:updated'];
|
|
12
|
+
export const WORKFLOW_RUN_NEXT_TICK_CONCURRENCY = 10;
|
|
12
13
|
//# sourceMappingURL=server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/constants/server.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAA;AAEhC,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAA;AAEvC,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,GAAG,IAAI,CAAA;AAElD,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAA;AAE7C,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,CAAA;AAE3C,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAA;AAElD,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAA;AAEjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAA;AAExC,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAA;AAE7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAa,EAAE,aAAa,CAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/constants/server.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAA;AAEhC,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAA;AAEvC,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,GAAG,IAAI,CAAA;AAElD,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAA;AAE7C,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,CAAA;AAE3C,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAA;AAElD,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAA;AAEjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAA;AAExC,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAA;AAE7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAa,EAAE,aAAa,CAAU,CAAA;AAE1E,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,CAAA"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { FileSystemClaim } from '@t4h.framework/fs';
|
|
1
|
+
import { AssetClaim, FileSystemClaim } from '@t4h.framework/fs';
|
|
2
|
+
import { DevAssetClaim } from '../models/claims/DevAssetClaim.js';
|
|
2
3
|
import { DevFileSystemClaim } from '../models/claims/DevFileSystemClaim.js';
|
|
3
|
-
export declare const claims: {
|
|
4
|
+
export declare const claims: ({
|
|
4
5
|
provide: typeof FileSystemClaim;
|
|
5
6
|
value: DevFileSystemClaim;
|
|
6
|
-
}
|
|
7
|
+
} | {
|
|
8
|
+
provide: typeof AssetClaim;
|
|
9
|
+
value: DevAssetClaim;
|
|
10
|
+
})[];
|
package/dist/integrations/fs.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { FileSystemClaim } from '@t4h.framework/fs';
|
|
1
|
+
import { AssetClaim, FileSystemClaim } from '@t4h.framework/fs';
|
|
2
|
+
import { DevAssetClaim } from '../models/claims/DevAssetClaim.js';
|
|
2
3
|
import { DevFileSystemClaim } from '../models/claims/DevFileSystemClaim.js';
|
|
3
4
|
export const claims = [
|
|
4
5
|
{ provide: FileSystemClaim, value: new DevFileSystemClaim() },
|
|
6
|
+
{ provide: AssetClaim, value: new DevAssetClaim() },
|
|
5
7
|
];
|
|
6
8
|
//# sourceMappingURL=fs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../src/integrations/fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../src/integrations/fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAE3E,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,kBAAkB,EAAE,EAAE;IAC7D,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,aAAa,EAAE,EAAE;CACpD,CAAA"}
|
|
@@ -5,4 +5,4 @@ export declare const claims: {
|
|
|
5
5
|
provide: typeof HttpClientRequestClaim;
|
|
6
6
|
value: DevHttpClientRequestClaim;
|
|
7
7
|
}[];
|
|
8
|
-
export declare const kinds: (Kind<"http:body", import("@t4h.framework/core").SerializableClass> | Kind<"oauth2:client-credentials-grant", import("@t4h.framework/core").SerializableClass> | Kind<"oauth2:grant-resource-owner-password", import("@t4h.framework/core").SerializableClass>)[];
|
|
8
|
+
export declare const kinds: (Kind<"http:body", import("@t4h.framework/core").SerializableClass> | Kind<"http:body-upload", import("@t4h.framework/core").SerializableClass> | Kind<"oauth2:client-credentials-grant", import("@t4h.framework/core").SerializableClass> | Kind<"oauth2:grant-resource-owner-password", import("@t4h.framework/core").SerializableClass>)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Body, HttpClientRequestClaim, OAuth2ClientCredentials, OAuth2GrantResourceOwnerPassword, } from '@t4h.framework/http';
|
|
1
|
+
import { Body, HttpBodyUpload, HttpClientRequestClaim, OAuth2ClientCredentials, OAuth2GrantResourceOwnerPassword, } from '@t4h.framework/http';
|
|
2
2
|
import { DevHttpClientRequestClaim } from '../models/claims/DevHttpClientRequestClaim.js';
|
|
3
3
|
import { JSONCodecKindFrameworkSerializableClass as Kind } from '../models/JSONCodecKindFrameworkSerializableClass.js';
|
|
4
4
|
export const claims = [
|
|
@@ -6,6 +6,7 @@ export const claims = [
|
|
|
6
6
|
];
|
|
7
7
|
export const kinds = [
|
|
8
8
|
new Kind('http:body', Body),
|
|
9
|
+
new Kind('http:body-upload', HttpBodyUpload),
|
|
9
10
|
new Kind('oauth2:client-credentials-grant', OAuth2ClientCredentials),
|
|
10
11
|
new Kind('oauth2:grant-resource-owner-password', OAuth2GrantResourceOwnerPassword),
|
|
11
12
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/integrations/http.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,sBAAsB,EACtB,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAA;AACzF,OAAO,EAAE,uCAAuC,IAAI,IAAI,EAAE,MAAM,sDAAsD,CAAA;AAEtH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,EAAE,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAE,IAAI,yBAAyB,EAAE,EAAE;CAC5E,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC;IAC3B,IAAI,IAAI,CAAC,iCAAiC,EAAE,uBAAuB,CAAC;IACpE,IAAI,IAAI,CACN,sCAAsC,EACtC,gCAAgC,CACjC;CACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/integrations/http.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAA;AACzF,OAAO,EAAE,uCAAuC,IAAI,IAAI,EAAE,MAAM,sDAAsD,CAAA;AAEtH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,EAAE,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAE,IAAI,yBAAyB,EAAE,EAAE;CAC5E,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC;IAC3B,IAAI,IAAI,CAAC,kBAAkB,EAAE,cAAc,CAAC;IAC5C,IAAI,IAAI,CAAC,iCAAiC,EAAE,uBAAuB,CAAC;IACpE,IAAI,IAAI,CACN,sCAAsC,EACtC,gCAAgC,CACjC;CACF,CAAA"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { Secret } from '@t4h.framework/core';
|
|
1
2
|
import { SftpBinary, SftpClaim } from '@t4h.framework/sftp';
|
|
2
3
|
import { DevSftpClaim } from '../models/claims/DevSftpClaim.js';
|
|
3
4
|
import { JSONCodecKind } from '../models/JSONCodec.js';
|
|
4
5
|
import { SftpClient } from '../models/SftpClient.js';
|
|
5
6
|
export const claims = [{ provide: SftpClaim, value: new DevSftpClaim() }];
|
|
6
7
|
export const kinds = [
|
|
7
|
-
new JSONCodecKind('sftp:binary', value => value instanceof SftpBinary, (binary) => {
|
|
8
|
+
new JSONCodecKind('sftp:binary', value => value instanceof SftpBinary, async (binary, _options, serializer) => {
|
|
8
9
|
if (!(binary instanceof SftpBinary))
|
|
9
10
|
throw new TypeError('Unsupported binary instance');
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
const { connectionString, file } = binary.toJSON();
|
|
12
|
+
return { connectionString: await serializer(connectionString), file };
|
|
13
|
+
}, async (json, _options, parser) => SftpBinary.from(await parser(json.connectionString), json.file, binary => SftpClient.stream(Secret.read(binary.connectionString), binary.filepath))),
|
|
12
14
|
];
|
|
13
15
|
//# sourceMappingURL=sftp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sftp.js","sourceRoot":"","sources":["../../src/integrations/sftp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,YAAY,EAAE,EAAE,CAAC,CAAA;AAEzE,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,aAAa,CACf,aAAa,EACb,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,UAAU,EACpC,
|
|
1
|
+
{"version":3,"file":"sftp.js","sourceRoot":"","sources":["../../src/integrations/sftp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,YAAY,EAAE,EAAE,CAAC,CAAA;AAEzE,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,aAAa,CACf,aAAa,EACb,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,UAAU,EACpC,KAAK,EAAE,MAAkB,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE;QACjD,IAAI,CAAC,CAAC,MAAM,YAAY,UAAU,CAAC;YACjC,MAAM,IAAI,SAAS,CAAC,6BAA6B,CAAC,CAAA;QAEpD,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,CAAA;QAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,CAAA;IACvE,CAAC,EACD,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAC/B,UAAU,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,CACvE,UAAU,CAAC,MAAM,CACf,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EACpC,MAAM,CAAC,QAAQ,CAChB,CACF,CACJ;CACF,CAAA"}
|
|
@@ -24,6 +24,7 @@ export declare class DevFileBinary extends Binary {
|
|
|
24
24
|
end: number;
|
|
25
25
|
} | undefined, encoding?: BufferEncoding | undefined);
|
|
26
26
|
stream(): Promise<Readable>;
|
|
27
|
+
get identity(): string | undefined;
|
|
27
28
|
static from(file: DevFileBinaryJSON): DevFileBinary;
|
|
28
29
|
static slice(file: Pick<DevFileBinary, 'path' | 'contentType' | 'range'>, range: {
|
|
29
30
|
start: number;
|
|
@@ -25,6 +25,19 @@ export class DevFileBinary extends Binary {
|
|
|
25
25
|
end: this.range.end - 1,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
+
get identity() {
|
|
29
|
+
let stat;
|
|
30
|
+
try {
|
|
31
|
+
stat = fs.statSync(this.path);
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
const file = `dev:${this.path}:${stat.size}:${stat.mtimeMs}`;
|
|
37
|
+
if (!this.range)
|
|
38
|
+
return file;
|
|
39
|
+
return `${file}:${this.range.start}-${this.range.end}`;
|
|
40
|
+
}
|
|
28
41
|
static from(file) {
|
|
29
42
|
return new this(file.path, file.contentType, file.contentLength, file.range, file.encoding);
|
|
30
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevFileBinary.js","sourceRoot":"","sources":["../../src/models/DevFileBinary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAU5C,MAAM,OAAO,aAAc,SAAQ,MAAM;IAErB;IACA;IACA;IACA;IACA;IALlB,YACkB,IAAY,EACZ,WAAmB,EACnB,aAAqB,EACrB,KAAsC,EACtC,QAAyB;QAEzC,KAAK,EAAE,CAAA;QANS,SAAI,GAAJ,IAAI,CAAQ;QACZ,gBAAW,GAAX,WAAW,CAAQ;QACnB,kBAAa,GAAb,aAAa,CAAQ;QACrB,UAAK,GAAL,KAAK,CAAiC;QACtC,aAAQ,GAAR,QAAQ,CAAiB;IAG3C,CAAC;IAEM,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO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
4
|
-
* into the build output (e.g. `['assets/**']`). Patterns must not escape
|
|
5
|
-
* the package root.
|
|
6
|
-
*/
|
|
7
|
-
additionalFiles?: readonly string[];
|
|
2
|
+
assets?: readonly string[];
|
|
8
3
|
};
|
|
9
4
|
export type FrameworkConfig = {
|
|
10
5
|
build?: FrameworkBuildConfig;
|
|
@@ -17,7 +12,7 @@ export type FrameworkConfig = {
|
|
|
17
12
|
* import { defineConfig } from '@t4h.framework/dev/config'
|
|
18
13
|
*
|
|
19
14
|
* export default defineConfig({
|
|
20
|
-
* build: {
|
|
15
|
+
* build: { assets: ['assets/**'] },
|
|
21
16
|
* })
|
|
22
17
|
*/
|
|
23
18
|
export declare function defineConfig(config: FrameworkConfig): FrameworkConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrameworkConfig.js","sourceRoot":"","sources":["../../src/models/FrameworkConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FrameworkConfig.js","sourceRoot":"","sources":["../../src/models/FrameworkConfig.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAAC,MAAuB;IAClD,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import { AssetClaim } from '@t4h.framework/fs';
|
|
3
|
+
import mime from 'mime-types';
|
|
4
|
+
import { resolveAssetPath } from '../../tools/resolve-asset-path.js';
|
|
5
|
+
import { bundleRoot } from '../../workers/app-process.js';
|
|
6
|
+
import { DevFileBinary } from '../DevFileBinary.js';
|
|
7
|
+
export class DevAssetClaim extends AssetClaim {
|
|
8
|
+
async resolve(path) {
|
|
9
|
+
const filepath = resolveAssetPath(bundleRoot(), path);
|
|
10
|
+
const stat = await fs.promises.stat(filepath).catch(() => {
|
|
11
|
+
throw new Error(`Asset "${path}" not found in the project bundle; ` +
|
|
12
|
+
`add it to build.assets in framework.config.ts`);
|
|
13
|
+
});
|
|
14
|
+
return DevFileBinary.from({
|
|
15
|
+
path: filepath,
|
|
16
|
+
contentType: mime.lookup(filepath) || 'application/octet-stream',
|
|
17
|
+
contentLength: stat.size,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=DevAssetClaim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DevAssetClaim.js","sourceRoot":"","sources":["../../../src/models/claims/DevAssetClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,IAAI,MAAM,YAAY,CAAA;AAE7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,MAAM,OAAO,aAAc,SAAQ,UAAU;IACpC,KAAK,CAAC,OAAO,CAAC,IAAY;QAC/B,MAAM,QAAQ,GAAG,gBAAgB,CAAC,UAAU,EAAE,EAAE,IAAI,CAAC,CAAA;QAErD,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE;YACvD,MAAM,IAAI,KAAK,CACb,UAAU,IAAI,qCAAqC;gBACjD,+CAA+C,CAClD,CAAA;QACH,CAAC,CAAC,CAAA;QAEF,OAAO,aAAa,CAAC,IAAI,CAAC;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,0BAA0B;YAChE,aAAa,EAAE,IAAI,CAAC,IAAI;SACzB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -3,7 +3,7 @@ import { createReadStream } from 'node:fs';
|
|
|
3
3
|
import { mkdir, mkdtemp, rm } from 'node:fs/promises';
|
|
4
4
|
import { tmpdir } from 'node:os';
|
|
5
5
|
import { extname, join } from 'node:path';
|
|
6
|
-
import { Claim } from '@t4h.framework/core';
|
|
6
|
+
import { Claim, Secret } from '@t4h.framework/core';
|
|
7
7
|
import { FileSystemClaim } from '@t4h.framework/fs';
|
|
8
8
|
import { SftpBinary, SftpClaim, } from '@t4h.framework/sftp';
|
|
9
9
|
import mime from 'mime-types';
|
|
@@ -16,14 +16,14 @@ export class DevSftpClaim extends SftpClaim {
|
|
|
16
16
|
async stream(content) {
|
|
17
17
|
if (!(content instanceof SftpBinary))
|
|
18
18
|
return content.stream();
|
|
19
|
-
return SftpClient.stream(content.connectionString, content.filepath);
|
|
19
|
+
return SftpClient.stream(Secret.read(content.connectionString), content.filepath);
|
|
20
20
|
}
|
|
21
21
|
async append(input) {
|
|
22
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
22
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
23
23
|
await client.append(await this.stream(input.content), input.filepath);
|
|
24
24
|
}
|
|
25
25
|
async chmod(input) {
|
|
26
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
26
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
27
27
|
const mode = (() => {
|
|
28
28
|
if (typeof input.mode === 'number')
|
|
29
29
|
return input.mode;
|
|
@@ -35,11 +35,11 @@ export class DevSftpClaim extends SftpClaim {
|
|
|
35
35
|
await client.chmod(input.path, mode);
|
|
36
36
|
}
|
|
37
37
|
async cwd(input) {
|
|
38
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
38
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
39
39
|
return await client.cwd();
|
|
40
40
|
}
|
|
41
41
|
async delete(input) {
|
|
42
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
42
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
43
43
|
await client.delete(input.path, input.noErrorOK ?? false);
|
|
44
44
|
}
|
|
45
45
|
async downloadDir(input) {
|
|
@@ -47,7 +47,7 @@ export class DevSftpClaim extends SftpClaim {
|
|
|
47
47
|
const contentDir = join(workDir, 'content');
|
|
48
48
|
const archivePath = join(workDir, 'archive.tar.gz');
|
|
49
49
|
try {
|
|
50
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
50
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
51
51
|
await mkdir(contentDir, { recursive: true });
|
|
52
52
|
await client.downloadDir(input.path, contentDir);
|
|
53
53
|
await create({ gzip: true, file: archivePath, cwd: contentDir }, ['.']);
|
|
@@ -59,21 +59,21 @@ export class DevSftpClaim extends SftpClaim {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
async exists(input) {
|
|
62
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
62
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
63
63
|
return await client.exists(input.path);
|
|
64
64
|
}
|
|
65
65
|
async get(input) {
|
|
66
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
66
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
67
67
|
const stat = await client.stat(input.filepath);
|
|
68
68
|
const contentType = mime.lookup(extname(input.filepath)) || 'application/octet-stream';
|
|
69
69
|
return SftpBinary.from(input.connectionString, {
|
|
70
70
|
filepath: input.filepath,
|
|
71
71
|
contentType,
|
|
72
72
|
contentLength: stat.size,
|
|
73
|
-
}, binary => SftpClient.stream(binary.connectionString, binary.filepath));
|
|
73
|
+
}, binary => SftpClient.stream(Secret.read(binary.connectionString), binary.filepath));
|
|
74
74
|
}
|
|
75
75
|
async list(input) {
|
|
76
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
76
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
77
77
|
const entries = await client.list(input.path);
|
|
78
78
|
return entries.map(entry => {
|
|
79
79
|
const types = ['d', '-', 'l'];
|
|
@@ -83,31 +83,31 @@ export class DevSftpClaim extends SftpClaim {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
async mkdir(input) {
|
|
86
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
86
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
87
87
|
await client.mkdir(input.path, input.recursive ?? false);
|
|
88
88
|
}
|
|
89
89
|
async put(input) {
|
|
90
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
90
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
91
91
|
await client.put(await this.stream(input.content), input.filepath);
|
|
92
92
|
}
|
|
93
93
|
async copy(input) {
|
|
94
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
94
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
95
95
|
await client.rcopy(input.srcPath, input.destPath);
|
|
96
96
|
}
|
|
97
97
|
async realPath(input) {
|
|
98
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
98
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
99
99
|
return await client.realPath(input.path);
|
|
100
100
|
}
|
|
101
101
|
async rename(input) {
|
|
102
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
102
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
103
103
|
await client.rename(input.srcPath, input.destPath);
|
|
104
104
|
}
|
|
105
105
|
async rmdir(input) {
|
|
106
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
106
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
107
107
|
await client.rmdir(input.path, input.recursive ?? false);
|
|
108
108
|
}
|
|
109
109
|
async stat(input) {
|
|
110
|
-
await using client = await SftpClient.connect(input.connectionString);
|
|
110
|
+
await using client = await SftpClient.connect(Secret.read(input.connectionString));
|
|
111
111
|
return (await client.stat(input.path));
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevSftpClaim.js","sourceRoot":"","sources":["../../../src/models/claims/DevSftpClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"DevSftpClaim.js","sourceRoot":"","sources":["../../../src/models/claims/DevSftpClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,UAAU,EACV,SAAS,GAmBV,MAAM,qBAAqB,CAAA;AAC5B,OAAO,IAAI,MAAM,YAAY,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACxB,MAAM,GAAG,IAAI,KAAK,CAAC;QAClC,EAAE,EAAE,eAAe;KACpB,CAAC,CAAA;IAEM,KAAK,CAAC,MAAM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'@t4h.framework/core';
|
|
1
2
|
import { SmtpSendEmailClaim, } from '@t4h.framework/smtp';
|
|
2
3
|
import nodemailer from 'nodemailer';
|
|
3
4
|
export class DevSmtpSendEmailClaim extends SmtpSendEmailClaim {
|
|
4
5
|
getTransport(input) {
|
|
5
|
-
const url = new URL(input.connectionString);
|
|
6
|
+
const url = new URL(Secret.read(input.connectionString));
|
|
6
7
|
const secure = url.protocol === 'smtps:';
|
|
7
8
|
const port = url.port ? Number(url.port) : secure ? 465 : 587;
|
|
8
9
|
return nodemailer.createTransport({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevSmtpSendEmailClaim.js","sourceRoot":"","sources":["../../../src/models/claims/DevSmtpSendEmailClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GAEnB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,MAAM,OAAO,qBAAsB,SAAQ,kBAAkB;IACjD,YAAY,CAAC,KAAiC;QACtD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"DevSmtpSendEmailClaim.js","sourceRoot":"","sources":["../../../src/models/claims/DevSmtpSendEmailClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EACL,kBAAkB,GAEnB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,MAAM,OAAO,qBAAsB,SAAQ,kBAAkB;IACjD,YAAY,CAAC,KAAiC;QACtD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAA;QAExD,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAExC,MAAM,IAAI,GAAG,GAAG,CAAC,IA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Database.service.js';
|
|
3
|
+
import type { JSONCodecReadSecretOptions } from '../tools/json-codec.js';
|
|
3
4
|
export declare class WorkflowRunActivityRepository {
|
|
4
5
|
private readonly database;
|
|
5
6
|
constructor(database: DatabaseService);
|
|
6
7
|
private get db();
|
|
7
8
|
create(activity: WorkflowRunActivity): Promise<void>;
|
|
8
|
-
findById(id: string): Promise<WorkflowRunActivity | undefined>;
|
|
9
|
+
findById(id: string, options?: JSONCodecReadSecretOptions): Promise<WorkflowRunActivity | undefined>;
|
|
9
10
|
findByRunId(runId: string): Promise<WorkflowRunActivity[]>;
|
|
10
11
|
findPageByRunId(runId: string, { limit, offset }?: {
|
|
11
12
|
limit?: number;
|