@t4h.framework/sftp 0.0.0-experimental-c0d4325
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/README.md +186 -0
- package/dist/activities/SftpAppendActivity.d.ts +16 -0
- package/dist/activities/SftpAppendActivity.d.ts.map +1 -0
- package/dist/activities/SftpAppendActivity.js +14 -0
- package/dist/activities/SftpAppendActivity.js.map +1 -0
- package/dist/activities/SftpChmodActivity.d.ts +16 -0
- package/dist/activities/SftpChmodActivity.d.ts.map +1 -0
- package/dist/activities/SftpChmodActivity.js +14 -0
- package/dist/activities/SftpChmodActivity.js.map +1 -0
- package/dist/activities/SftpCopyActivity.d.ts +16 -0
- package/dist/activities/SftpCopyActivity.d.ts.map +1 -0
- package/dist/activities/SftpCopyActivity.js +14 -0
- package/dist/activities/SftpCopyActivity.js.map +1 -0
- package/dist/activities/SftpCwdActivity.d.ts +14 -0
- package/dist/activities/SftpCwdActivity.d.ts.map +1 -0
- package/dist/activities/SftpCwdActivity.js +16 -0
- package/dist/activities/SftpCwdActivity.js.map +1 -0
- package/dist/activities/SftpDeleteActivity.d.ts +16 -0
- package/dist/activities/SftpDeleteActivity.d.ts.map +1 -0
- package/dist/activities/SftpDeleteActivity.js +14 -0
- package/dist/activities/SftpDeleteActivity.js.map +1 -0
- package/dist/activities/SftpDownloadDirActivity.d.ts +15 -0
- package/dist/activities/SftpDownloadDirActivity.d.ts.map +1 -0
- package/dist/activities/SftpDownloadDirActivity.js +16 -0
- package/dist/activities/SftpDownloadDirActivity.js.map +1 -0
- package/dist/activities/SftpExistsActivity.d.ts +16 -0
- package/dist/activities/SftpExistsActivity.d.ts.map +1 -0
- package/dist/activities/SftpExistsActivity.js +16 -0
- package/dist/activities/SftpExistsActivity.js.map +1 -0
- package/dist/activities/SftpGetActivity.d.ts +15 -0
- package/dist/activities/SftpGetActivity.d.ts.map +1 -0
- package/dist/activities/SftpGetActivity.js +16 -0
- package/dist/activities/SftpGetActivity.js.map +1 -0
- package/dist/activities/SftpListActivity.d.ts +30 -0
- package/dist/activities/SftpListActivity.d.ts.map +1 -0
- package/dist/activities/SftpListActivity.js +16 -0
- package/dist/activities/SftpListActivity.js.map +1 -0
- package/dist/activities/SftpMkdirActivity.d.ts +16 -0
- package/dist/activities/SftpMkdirActivity.d.ts.map +1 -0
- package/dist/activities/SftpMkdirActivity.js +14 -0
- package/dist/activities/SftpMkdirActivity.js.map +1 -0
- package/dist/activities/SftpPutActivity.d.ts +16 -0
- package/dist/activities/SftpPutActivity.d.ts.map +1 -0
- package/dist/activities/SftpPutActivity.js +14 -0
- package/dist/activities/SftpPutActivity.js.map +1 -0
- package/dist/activities/SftpRcopyActivity.d.ts +20 -0
- package/dist/activities/SftpRcopyActivity.d.ts.map +1 -0
- package/dist/activities/SftpRcopyActivity.js +18 -0
- package/dist/activities/SftpRcopyActivity.js.map +1 -0
- package/dist/activities/SftpRealPathActivity.d.ts +15 -0
- package/dist/activities/SftpRealPathActivity.d.ts.map +1 -0
- package/dist/activities/SftpRealPathActivity.js +16 -0
- package/dist/activities/SftpRealPathActivity.js.map +1 -0
- package/dist/activities/SftpRenameActivity.d.ts +16 -0
- package/dist/activities/SftpRenameActivity.d.ts.map +1 -0
- package/dist/activities/SftpRenameActivity.js +14 -0
- package/dist/activities/SftpRenameActivity.js.map +1 -0
- package/dist/activities/SftpRmdirActivity.d.ts +16 -0
- package/dist/activities/SftpRmdirActivity.d.ts.map +1 -0
- package/dist/activities/SftpRmdirActivity.js +14 -0
- package/dist/activities/SftpRmdirActivity.js.map +1 -0
- package/dist/activities/SftpStatActivity.d.ts +30 -0
- package/dist/activities/SftpStatActivity.d.ts.map +1 -0
- package/dist/activities/SftpStatActivity.js +16 -0
- package/dist/activities/SftpStatActivity.js.map +1 -0
- package/dist/activities/SftpUploadDirActivity.d.ts +20 -0
- package/dist/activities/SftpUploadDirActivity.d.ts.map +1 -0
- package/dist/activities/SftpUploadDirActivity.js +18 -0
- package/dist/activities/SftpUploadDirActivity.js.map +1 -0
- package/dist/models/Sftp.d.ts +21 -0
- package/dist/models/Sftp.d.ts.map +1 -0
- package/dist/models/Sftp.js +83 -0
- package/dist/models/Sftp.js.map +1 -0
- package/dist/models/SftpClaim.d.ts +34 -0
- package/dist/models/SftpClaim.d.ts.map +1 -0
- package/dist/models/SftpClaim.js +3 -0
- package/dist/models/SftpClaim.js.map +1 -0
- package/dist/models/SftpGetOutput.d.ts +10 -0
- package/dist/models/SftpGetOutput.d.ts.map +1 -0
- package/dist/models/SftpGetOutput.js +10 -0
- package/dist/models/SftpGetOutput.js.map +1 -0
- package/dist/models/SftpListOutput.d.ts +24 -0
- package/dist/models/SftpListOutput.d.ts.map +1 -0
- package/dist/models/SftpListOutput.js +10 -0
- package/dist/models/SftpListOutput.js.map +1 -0
- package/dist/models/SftpStatOutput.d.ts +24 -0
- package/dist/models/SftpStatOutput.d.ts.map +1 -0
- package/dist/models/SftpStatOutput.js +10 -0
- package/dist/models/SftpStatOutput.js.map +1 -0
- package/dist/sftp.d.ts +18 -0
- package/dist/sftp.d.ts.map +1 -0
- package/dist/sftp.js +18 -0
- package/dist/sftp.js.map +1 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# @t4h.framework/sftp
|
|
2
|
+
|
|
3
|
+
SFTP activities, claim, and a high-level client for file operations within workflows.
|
|
4
|
+
|
|
5
|
+
## Claim
|
|
6
|
+
|
|
7
|
+
### SftpClaim
|
|
8
|
+
|
|
9
|
+
Single abstract dependency that backs all SFTP activities. The runtime must provide a concrete implementation.
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { SftpClaim } from '@t4h.framework/sftp'
|
|
13
|
+
|
|
14
|
+
// the runtime provides this:
|
|
15
|
+
// { provide: SftpClaim, value: new MySftpClaimImpl() }
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Sftp
|
|
19
|
+
|
|
20
|
+
High-level SFTP client that wraps every activity behind a simple API. Instantiated with a connection string.
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { Sftp } from '@t4h.framework/sftp'
|
|
24
|
+
import type { Binary } from '@t4h.framework/core'
|
|
25
|
+
|
|
26
|
+
const sftp = new Sftp('sftp://user:pass@sftp.example.com:22')
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### append
|
|
30
|
+
|
|
31
|
+
Appends content to an existing remote file.
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
await sftp.append('/remote/path/file.txt', myBinaryContent) // void
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### chmod
|
|
38
|
+
|
|
39
|
+
Changes the permissions of a remote file or directory.
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
await sftp.chmod('/remote/path/file.txt', 0o755) // void
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### copy
|
|
46
|
+
|
|
47
|
+
Copies a remote file from one path to another.
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
await sftp.copy('/remote/src.txt', '/remote/dest.txt') // void
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### cwd
|
|
54
|
+
|
|
55
|
+
Returns the current working directory on the remote server.
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
const dir = await sftp.cwd() // string
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### delete
|
|
62
|
+
|
|
63
|
+
Deletes a remote file. Pass `true` as the second argument to suppress errors when the file does not exist.
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
await sftp.delete('/remote/path/file.txt') // void
|
|
67
|
+
await sftp.delete('/remote/path/file.txt', true) // void, no error if missing
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### downloadDir
|
|
71
|
+
|
|
72
|
+
Downloads a remote directory as binary content.
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
const content = await sftp.downloadDir('/remote/path') // Binary
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### exists
|
|
79
|
+
|
|
80
|
+
Checks whether a remote path exists. Returns `false` if not found, or its type character (`'d'` directory, `'-'` file, `'l'` symlink).
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
const result = await sftp.exists('/remote/path') // false | 'd' | '-' | 'l'
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### get
|
|
87
|
+
|
|
88
|
+
Downloads a single remote file.
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
const content = await sftp.get('/remote/path/file.txt') // Binary
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### list
|
|
95
|
+
|
|
96
|
+
Lists the contents of a remote directory.
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
const files = await sftp.list('/remote/path') // SftpFileInfo[]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`SftpFileInfo`:
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
type SftpFileInfo = {
|
|
106
|
+
name: string
|
|
107
|
+
type: 'd' | '-' | 'l'
|
|
108
|
+
size: number
|
|
109
|
+
modifyTime: number
|
|
110
|
+
accessTime: number
|
|
111
|
+
rights: { user: string; group: string; other: string }
|
|
112
|
+
owner: number
|
|
113
|
+
group: number
|
|
114
|
+
longname: string
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### mkdir
|
|
119
|
+
|
|
120
|
+
Creates a remote directory. Pass `true` as the second argument to create intermediate directories recursively.
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
await sftp.mkdir('/remote/path/new-dir') // void
|
|
124
|
+
await sftp.mkdir('/remote/path/a/b/c', true) // void, recursive
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### put
|
|
128
|
+
|
|
129
|
+
Uploads content to a remote file.
|
|
130
|
+
|
|
131
|
+
```typescript
|
|
132
|
+
await sftp.put('/remote/path/file.txt', myBinaryContent) // void
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### realPath
|
|
136
|
+
|
|
137
|
+
Resolves the absolute path of a remote path (expanding symlinks, `.`, `..`, etc.).
|
|
138
|
+
|
|
139
|
+
```typescript
|
|
140
|
+
const abs = await sftp.realPath('/remote/./path/../file.txt') // string
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### rename
|
|
144
|
+
|
|
145
|
+
Renames (moves) a remote file or directory.
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
await sftp.rename('/remote/old-name.txt', '/remote/new-name.txt') // void
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### rmdir
|
|
152
|
+
|
|
153
|
+
Removes a remote directory. Pass `true` as the second argument to remove recursively.
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
await sftp.rmdir('/remote/path/empty-dir') // void
|
|
157
|
+
await sftp.rmdir('/remote/path/full-dir', true) // void, recursive
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### stat
|
|
161
|
+
|
|
162
|
+
Returns detailed metadata about a remote path.
|
|
163
|
+
|
|
164
|
+
```typescript
|
|
165
|
+
const info = await sftp.stat('/remote/path/file.txt') // SftpStat
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
`SftpStat`:
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
type SftpStat = {
|
|
172
|
+
mode: number
|
|
173
|
+
uid: number
|
|
174
|
+
gid: number
|
|
175
|
+
size: number
|
|
176
|
+
accessTime: number
|
|
177
|
+
modifyTime: number
|
|
178
|
+
isDirectory: boolean
|
|
179
|
+
isFile: boolean
|
|
180
|
+
isBlockDevice: boolean
|
|
181
|
+
isCharacterDevice: boolean
|
|
182
|
+
isSymbolicLink: boolean
|
|
183
|
+
isFIFO: boolean
|
|
184
|
+
isSocket: boolean
|
|
185
|
+
}
|
|
186
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Binary, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpAppendActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
filepath: string;
|
|
6
|
+
content: Binary;
|
|
7
|
+
};
|
|
8
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
9
|
+
export declare class SftpAppendActivity extends SyncActivity<readonly [sftp: Sftp, filepath: string, content: Binary], SftpAppendActivityInput, void, void> {
|
|
10
|
+
private readonly [CLAIMS_KEY];
|
|
11
|
+
toInput(sftp: Sftp, filepath: string, content: Binary): SftpAppendActivityInput;
|
|
12
|
+
run(payload: SftpAppendActivityInput): void | Promise<void>;
|
|
13
|
+
toOutput(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SftpAppendActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpAppendActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpAppendActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,uBAAuB,GAAG;IACpC,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,QAAA,MAAM,UAAU,eAAwC,CAAA;AAExD,qBAAa,kBAAmB,SAAQ,YAAY,CAClD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EACxD,uBAAuB,EACvB,IAAI,EACJ,IAAI,CACL;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CACZ,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd,uBAAuB;IAInB,GAAG,CAAC,OAAO,EAAE,uBAAuB;IAIpC,QAAQ,IAAI,IAAI;CACxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-append-activity-claims');
|
|
4
|
+
export class SftpAppendActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, filepath, content) {
|
|
7
|
+
return { connectionString: sftp.connectionString, filepath, content };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.append(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput() { }
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SftpAppendActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpAppendActivity.js","sourceRoot":"","sources":["../../src/activities/SftpAppendActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAQlD,MAAM,UAAU,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAA;AAExD,MAAM,OAAO,kBAAmB,SAAQ,YAKvC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CACZ,IAAU,EACV,QAAgB,EAChB,OAAe;QAEf,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAA;IACvE,CAAC;IAEM,GAAG,CAAC,OAAgC;QACzC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC;IAEM,QAAQ,KAAU,CAAC;CAC3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpChmodActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
path: string;
|
|
6
|
+
mode: string | number;
|
|
7
|
+
};
|
|
8
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
9
|
+
export declare class SftpChmodActivity extends SyncActivity<readonly [sftp: Sftp, path: string, mode: string | number], SftpChmodActivityInput, void, void> {
|
|
10
|
+
private readonly [CLAIMS_KEY];
|
|
11
|
+
toInput(sftp: Sftp, path: string, mode: string | number): SftpChmodActivityInput;
|
|
12
|
+
run(payload: SftpChmodActivityInput): void | Promise<void>;
|
|
13
|
+
toOutput(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SftpChmodActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpChmodActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpChmodActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,sBAAsB,GAAG;IACnC,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,UAAU,eAAuC,CAAA;AAEvD,qBAAa,iBAAkB,SAAQ,YAAY,CACjD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,EAC1D,sBAAsB,EACtB,IAAI,EACJ,IAAI,CACL;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CACZ,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,MAAM,GACpB,sBAAsB;IAIlB,GAAG,CAAC,OAAO,EAAE,sBAAsB;IAInC,QAAQ,IAAI,IAAI;CACxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-chmod-activity-claims');
|
|
4
|
+
export class SftpChmodActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, path, mode) {
|
|
7
|
+
return { connectionString: sftp.connectionString, path, mode };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.chmod(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput() { }
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SftpChmodActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpChmodActivity.js","sourceRoot":"","sources":["../../src/activities/SftpChmodActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAQlD,MAAM,UAAU,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAA;AAEvD,MAAM,OAAO,iBAAkB,SAAQ,YAKtC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CACZ,IAAU,EACV,IAAY,EACZ,IAAqB;QAErB,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;IAChE,CAAC;IAEM,GAAG,CAAC,OAA+B;QACxC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAC7C,CAAC;IAEM,QAAQ,KAAU,CAAC;CAC3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpCopyActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
srcPath: string;
|
|
6
|
+
destPath: string;
|
|
7
|
+
};
|
|
8
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
9
|
+
export declare class SftpCopyActivity extends SyncActivity<readonly [sftp: Sftp, srcPath: string, destPath: string], SftpCopyActivityInput, void, void> {
|
|
10
|
+
private readonly [CLAIMS_KEY];
|
|
11
|
+
toInput(sftp: Sftp, srcPath: string, destPath: string): SftpCopyActivityInput;
|
|
12
|
+
run(payload: SftpCopyActivityInput): void | Promise<void>;
|
|
13
|
+
toOutput(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SftpCopyActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpCopyActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpCopyActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,qBAAqB,GAAG;IAClC,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,QAAA,MAAM,UAAU,eAAsC,CAAA;AAEtD,qBAAa,gBAAiB,SAAQ,YAAY,CAChD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,EACxD,qBAAqB,EACrB,IAAI,EACJ,IAAI,CACL;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,qBAAqB;IAIjB,GAAG,CAAC,OAAO,EAAE,qBAAqB;IAIlC,QAAQ,IAAI,IAAI;CACxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-copy-activity-claims');
|
|
4
|
+
export class SftpCopyActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, srcPath, destPath) {
|
|
7
|
+
return { connectionString: sftp.connectionString, srcPath, destPath };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.copy(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput() { }
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SftpCopyActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpCopyActivity.js","sourceRoot":"","sources":["../../src/activities/SftpCopyActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAQlD,MAAM,UAAU,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAA;AAEtD,MAAM,OAAO,gBAAiB,SAAQ,YAKrC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CACZ,IAAU,EACV,OAAe,EACf,QAAgB;QAEhB,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA;IACvE,CAAC;IAEM,GAAG,CAAC,OAA8B;QACvC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC5C,CAAC;IAEM,QAAQ,KAAU,CAAC;CAC3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpCwdActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
};
|
|
6
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
7
|
+
export declare class SftpCwdActivity extends SyncActivity<readonly [sftp: Sftp], SftpCwdActivityInput, string, string> {
|
|
8
|
+
private readonly [CLAIMS_KEY];
|
|
9
|
+
toInput(sftp: Sftp): SftpCwdActivityInput;
|
|
10
|
+
run(payload: SftpCwdActivityInput): string | Promise<string>;
|
|
11
|
+
toOutput(output: string): string;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=SftpCwdActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpCwdActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpCwdActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,QAAA,MAAM,UAAU,eAAqC,CAAA;AAErD,qBAAa,eAAgB,SAAQ,YAAY,CAC/C,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,EACrB,oBAAoB,EACpB,MAAM,EACN,MAAM,CACP;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,oBAAoB;IAIzC,GAAG,CAAC,OAAO,EAAE,oBAAoB;IAIjC,QAAQ,CAAC,MAAM,EAAE,MAAM;CAG/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-cwd-activity-claims');
|
|
4
|
+
export class SftpCwdActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp) {
|
|
7
|
+
return { connectionString: sftp.connectionString };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.cwd(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput(output) {
|
|
13
|
+
return output;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=SftpCwdActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpCwdActivity.js","sourceRoot":"","sources":["../../src/activities/SftpCwdActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAMlD,MAAM,UAAU,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAA;AAErD,MAAM,OAAO,eAAgB,SAAQ,YAKpC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CAAC,IAAU;QACvB,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACpD,CAAC;IAEM,GAAG,CAAC,OAA6B;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAC3C,CAAC;IAEM,QAAQ,CAAC,MAAc;QAC5B,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpDeleteActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
path: string;
|
|
6
|
+
noErrorOK?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
9
|
+
export declare class SftpDeleteActivity extends SyncActivity<readonly [sftp: Sftp, path: string, noErrorOK?: boolean], SftpDeleteActivityInput, void, void> {
|
|
10
|
+
private readonly [CLAIMS_KEY];
|
|
11
|
+
toInput(sftp: Sftp, path: string, noErrorOK?: boolean): SftpDeleteActivityInput;
|
|
12
|
+
run(payload: SftpDeleteActivityInput): void | Promise<void>;
|
|
13
|
+
toOutput(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SftpDeleteActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpDeleteActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpDeleteActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,uBAAuB,GAAG;IACpC,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,QAAA,MAAM,UAAU,eAAwC,CAAA;AAExD,qBAAa,kBAAmB,SAAQ,YAAY,CAClD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,EACxD,uBAAuB,EACvB,IAAI,EACJ,IAAI,CACL;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CACZ,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,OAAO,GAClB,uBAAuB;IAInB,GAAG,CAAC,OAAO,EAAE,uBAAuB;IAIpC,QAAQ,IAAI,IAAI;CACxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-delete-activity-claims');
|
|
4
|
+
export class SftpDeleteActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, path, noErrorOK) {
|
|
7
|
+
return { connectionString: sftp.connectionString, path, noErrorOK };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.delete(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput() { }
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SftpDeleteActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpDeleteActivity.js","sourceRoot":"","sources":["../../src/activities/SftpDeleteActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAQlD,MAAM,UAAU,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAA;AAExD,MAAM,OAAO,kBAAmB,SAAQ,YAKvC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CACZ,IAAU,EACV,IAAY,EACZ,SAAmB;QAEnB,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;IACrE,CAAC;IAEM,GAAG,CAAC,OAAgC;QACzC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC;IAEM,QAAQ,KAAU,CAAC;CAC3B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Binary, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpDownloadDirActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
path: string;
|
|
6
|
+
};
|
|
7
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
8
|
+
export declare class SftpDownloadDirActivity extends SyncActivity<readonly [sftp: Sftp, path: string], SftpDownloadDirActivityInput, Binary, Binary> {
|
|
9
|
+
private readonly [CLAIMS_KEY];
|
|
10
|
+
toInput(sftp: Sftp, path: string): SftpDownloadDirActivityInput;
|
|
11
|
+
run(payload: SftpDownloadDirActivityInput): Binary | Promise<Binary>;
|
|
12
|
+
toOutput(binary: Binary): Binary;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=SftpDownloadDirActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpDownloadDirActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpDownloadDirActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,QAAA,MAAM,UAAU,eAA8C,CAAA;AAE9D,qBAAa,uBAAwB,SAAQ,YAAY,CACvD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EACnC,4BAA4B,EAC5B,MAAM,EACN,MAAM,CACP;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,4BAA4B;IAI/D,GAAG,CAAC,OAAO,EAAE,4BAA4B;IAIzC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;CAGxC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Binary, Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-download-dir-activity-claims');
|
|
4
|
+
export class SftpDownloadDirActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, path) {
|
|
7
|
+
return { connectionString: sftp.connectionString, path };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.downloadDir(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput(binary) {
|
|
13
|
+
return binary;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=SftpDownloadDirActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpDownloadDirActivity.js","sourceRoot":"","sources":["../../src/activities/SftpDownloadDirActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGjE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAOlD,MAAM,UAAU,GAAG,MAAM,CAAC,mCAAmC,CAAC,CAAA;AAE9D,MAAM,OAAO,uBAAwB,SAAQ,YAK5C;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CAAC,IAAU,EAAE,IAAY;QACrC,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAA;IAC1D,CAAC;IAEM,GAAG,CAAC,OAAqC;QAC9C,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;IACnD,CAAC;IAEM,QAAQ,CAAC,MAAc;QAC5B,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpExistsResult = false | 'd' | '-' | 'l';
|
|
4
|
+
export type SftpExistsActivityInput = {
|
|
5
|
+
connectionString: string;
|
|
6
|
+
path: string;
|
|
7
|
+
};
|
|
8
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
9
|
+
export declare class SftpExistsActivity extends SyncActivity<readonly [sftp: Sftp, path: string], SftpExistsActivityInput, SftpExistsResult, SftpExistsResult> {
|
|
10
|
+
private readonly [CLAIMS_KEY];
|
|
11
|
+
toInput(sftp: Sftp, path: string): SftpExistsActivityInput;
|
|
12
|
+
run(payload: SftpExistsActivityInput): SftpExistsResult | Promise<SftpExistsResult>;
|
|
13
|
+
toOutput(output: SftpExistsResult): SftpExistsResult;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SftpExistsActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpExistsActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpExistsActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAEtD,MAAM,MAAM,uBAAuB,GAAG;IACpC,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,QAAA,MAAM,UAAU,eAAwC,CAAA;AAExD,qBAAa,kBAAmB,SAAQ,YAAY,CAClD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EACnC,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,CACjB;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,uBAAuB;IAI1D,GAAG,CAAC,OAAO,EAAE,uBAAuB;IAIpC,QAAQ,CAAC,MAAM,EAAE,gBAAgB;CAGzC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-exists-activity-claims');
|
|
4
|
+
export class SftpExistsActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, path) {
|
|
7
|
+
return { connectionString: sftp.connectionString, path };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.exists(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput(output) {
|
|
13
|
+
return output;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=SftpExistsActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpExistsActivity.js","sourceRoot":"","sources":["../../src/activities/SftpExistsActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AASlD,MAAM,UAAU,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAA;AAExD,MAAM,OAAO,kBAAmB,SAAQ,YAKvC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CAAC,IAAU,EAAE,IAAY;QACrC,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAA;IAC1D,CAAC;IAEM,GAAG,CAAC,OAAgC;QACzC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC;IAEM,QAAQ,CAAC,MAAwB;QACtC,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Binary, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpGetActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
filepath: string;
|
|
6
|
+
};
|
|
7
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
8
|
+
export declare class SftpGetActivity extends SyncActivity<readonly [sftp: Sftp, filepath: string], SftpGetActivityInput, Binary, Binary> {
|
|
9
|
+
private readonly [CLAIMS_KEY];
|
|
10
|
+
toInput(sftp: Sftp, filepath: string): SftpGetActivityInput;
|
|
11
|
+
run(payload: SftpGetActivityInput): Binary | Promise<Binary>;
|
|
12
|
+
toOutput(output: Binary): Binary;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=SftpGetActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpGetActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpGetActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,QAAA,MAAM,UAAU,eAAqC,CAAA;AAErD,qBAAa,eAAgB,SAAQ,YAAY,CAC/C,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,EACvC,oBAAoB,EACpB,MAAM,EACN,MAAM,CACP;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,oBAAoB;IAI3D,GAAG,CAAC,OAAO,EAAE,oBAAoB;IAIjC,QAAQ,CAAC,MAAM,EAAE,MAAM;CAG/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Binary, Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-get-activity-claims');
|
|
4
|
+
export class SftpGetActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, filepath) {
|
|
7
|
+
return { connectionString: sftp.connectionString, filepath };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.get(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput(output) {
|
|
13
|
+
return output;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=SftpGetActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpGetActivity.js","sourceRoot":"","sources":["../../src/activities/SftpGetActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGjE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAOlD,MAAM,UAAU,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAA;AAErD,MAAM,OAAO,eAAgB,SAAQ,YAKpC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CAAC,IAAU,EAAE,QAAgB;QACzC,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,EAAE,CAAA;IAC9D,CAAC;IAEM,GAAG,CAAC,OAA6B;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAC3C,CAAC;IAEM,QAAQ,CAAC,MAAc;QAC5B,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpFileInfo = {
|
|
4
|
+
name: string;
|
|
5
|
+
type: 'd' | '-' | 'l';
|
|
6
|
+
size: number;
|
|
7
|
+
modifyTime: number;
|
|
8
|
+
accessTime: number;
|
|
9
|
+
rights: {
|
|
10
|
+
user: string;
|
|
11
|
+
group: string;
|
|
12
|
+
other: string;
|
|
13
|
+
};
|
|
14
|
+
owner: number;
|
|
15
|
+
group: number;
|
|
16
|
+
longname: string;
|
|
17
|
+
};
|
|
18
|
+
export type SftpListActivityInput = {
|
|
19
|
+
connectionString: string;
|
|
20
|
+
path: string;
|
|
21
|
+
};
|
|
22
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
23
|
+
export declare class SftpListActivity extends SyncActivity<readonly [sftp: Sftp, path: string], SftpListActivityInput, SftpFileInfo[], SftpFileInfo[]> {
|
|
24
|
+
private readonly [CLAIMS_KEY];
|
|
25
|
+
toInput(sftp: Sftp, path: string): SftpListActivityInput;
|
|
26
|
+
run(payload: SftpListActivityInput): SftpFileInfo[] | Promise<SftpFileInfo[]>;
|
|
27
|
+
toOutput(list: SftpFileInfo[]): SftpFileInfo[];
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=SftpListActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpListActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpListActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,QAAA,MAAM,UAAU,eAAsC,CAAA;AAEtD,qBAAa,gBAAiB,SAAQ,YAAY,CAChD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EACnC,qBAAqB,EACrB,YAAY,EAAE,EACd,YAAY,EAAE,CACf;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,qBAAqB;IAIxD,GAAG,CAAC,OAAO,EAAE,qBAAqB;IAIlC,QAAQ,CAAC,IAAI,EAAE,YAAY,EAAE;CAGrC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-list-activity-claims');
|
|
4
|
+
export class SftpListActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, path) {
|
|
7
|
+
return { connectionString: sftp.connectionString, path };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.list(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput(list) {
|
|
13
|
+
return list;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=SftpListActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpListActivity.js","sourceRoot":"","sources":["../../src/activities/SftpListActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAuBlD,MAAM,UAAU,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAA;AAEtD,MAAM,OAAO,gBAAiB,SAAQ,YAKrC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CAAC,IAAU,EAAE,IAAY;QACrC,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAA;IAC1D,CAAC;IAEM,GAAG,CAAC,OAA8B;QACvC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC5C,CAAC;IAEM,QAAQ,CAAC,IAAoB;QAClC,OAAO,IAAI,CAAA;IACb,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpMkdirActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
path: string;
|
|
6
|
+
recursive?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
9
|
+
export declare class SftpMkdirActivity extends SyncActivity<readonly [sftp: Sftp, path: string, recursive?: boolean], SftpMkdirActivityInput, void, void> {
|
|
10
|
+
private readonly [CLAIMS_KEY];
|
|
11
|
+
toInput(sftp: Sftp, path: string, recursive?: boolean): SftpMkdirActivityInput;
|
|
12
|
+
run(payload: SftpMkdirActivityInput): void | Promise<void>;
|
|
13
|
+
toOutput(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SftpMkdirActivity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpMkdirActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SftpMkdirActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAG7C,MAAM,MAAM,sBAAsB,GAAG;IACnC,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,QAAA,MAAM,UAAU,eAAuC,CAAA;AAEvD,qBAAa,iBAAkB,SAAQ,YAAY,CACjD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,EACxD,sBAAsB,EACtB,IAAI,EACJ,IAAI,CACL;IACC,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAiC;IAEvD,OAAO,CACZ,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,OAAO,GAClB,sBAAsB;IAIlB,GAAG,CAAC,OAAO,EAAE,sBAAsB;IAInC,QAAQ,IAAI,IAAI;CACxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Claim, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import { SftpClaim } from '../models/SftpClaim.js';
|
|
3
|
+
const CLAIMS_KEY = Symbol('sftp-mkdir-activity-claims');
|
|
4
|
+
export class SftpMkdirActivity extends SyncActivity {
|
|
5
|
+
[CLAIMS_KEY] = new Claim({ sftp: SftpClaim });
|
|
6
|
+
toInput(sftp, path, recursive) {
|
|
7
|
+
return { connectionString: sftp.connectionString, path, recursive };
|
|
8
|
+
}
|
|
9
|
+
run(payload) {
|
|
10
|
+
return this[CLAIMS_KEY].sftp.mkdir(payload);
|
|
11
|
+
}
|
|
12
|
+
toOutput() { }
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SftpMkdirActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SftpMkdirActivity.js","sourceRoot":"","sources":["../../src/activities/SftpMkdirActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAQlD,MAAM,UAAU,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAA;AAEvD,MAAM,OAAO,iBAAkB,SAAQ,YAKtC;IACkB,CAAC,UAAU,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,OAAO,CACZ,IAAU,EACV,IAAY,EACZ,SAAmB;QAEnB,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;IACrE,CAAC;IAEM,GAAG,CAAC,OAA+B;QACxC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAC7C,CAAC;IAEM,QAAQ,KAAU,CAAC;CAC3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Binary, SyncActivity } from '@t4h.framework/core';
|
|
2
|
+
import type { Sftp } from '../models/Sftp.js';
|
|
3
|
+
export type SftpPutActivityInput = {
|
|
4
|
+
connectionString: string;
|
|
5
|
+
filepath: string;
|
|
6
|
+
content: Binary;
|
|
7
|
+
};
|
|
8
|
+
declare const CLAIMS_KEY: unique symbol;
|
|
9
|
+
export declare class SftpPutActivity extends SyncActivity<readonly [sftp: Sftp, filepath: string, content: Binary], SftpPutActivityInput, void, void> {
|
|
10
|
+
private readonly [CLAIMS_KEY];
|
|
11
|
+
toInput(sftp: Sftp, filepath: string, content: Binary): SftpPutActivityInput;
|
|
12
|
+
run(payload: SftpPutActivityInput): void | Promise<void>;
|
|
13
|
+
toOutput(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SftpPutActivity.d.ts.map
|