@fgv/ts-http-storage 5.1.0-4 → 5.1.0-40
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/tsdoc-metadata.json +1 -1
- package/eslint.config.js +16 -0
- package/package.json +5 -5
- package/.rush/temp/6ab9195b15cc32c9f5e7e6f55bce0a88fab1fac6.tar.log +0 -61
- package/.rush/temp/chunked-rush-logs/ts-http-storage.build.chunks.jsonl +0 -9
- package/.rush/temp/operation/build/all.log +0 -9
- package/.rush/temp/operation/build/log-chunks.jsonl +0 -9
- package/.rush/temp/operation/build/state.json +0 -3
- package/.rush/temp/shrinkwrap-deps.json +0 -656
- package/config/api-extractor.json +0 -36
- package/config/rig.json +0 -10
- package/config/typedoc.json +0 -7
- package/docs/README.md +0 -298
- package/docs/classes/FsStorageProvider.createDirectory.md +0 -20
- package/docs/classes/FsStorageProvider.deleteFile.md +0 -20
- package/docs/classes/FsStorageProvider.getChildren.md +0 -20
- package/docs/classes/FsStorageProvider.getFile.md +0 -20
- package/docs/classes/FsStorageProvider.getItem.md +0 -20
- package/docs/classes/FsStorageProvider.md +0 -147
- package/docs/classes/FsStorageProvider.saveFile.md +0 -22
- package/docs/classes/FsStorageProvider.sync.md +0 -13
- package/docs/classes/FsStorageProviderFactory.forNamespace.md +0 -20
- package/docs/classes/FsStorageProviderFactory.md +0 -69
- package/docs/classes/HttpStorageService.createDirectory.md +0 -20
- package/docs/classes/HttpStorageService.deleteFile.md +0 -20
- package/docs/classes/HttpStorageService.getChildren.md +0 -20
- package/docs/classes/HttpStorageService.getFile.md +0 -20
- package/docs/classes/HttpStorageService.getItem.md +0 -20
- package/docs/classes/HttpStorageService.md +0 -145
- package/docs/classes/HttpStorageService.saveFile.md +0 -20
- package/docs/classes/HttpStorageService.sync.md +0 -20
- package/docs/functions/createStorageRoutes.md +0 -11
- package/docs/functions/normalizeRequestPath.md +0 -11
- package/docs/functions/sanitizeNamespace.md +0 -11
- package/docs/interfaces/ICreateStorageRoutesOptions.logger.md +0 -9
- package/docs/interfaces/ICreateStorageRoutesOptions.md +0 -61
- package/docs/interfaces/ICreateStorageRoutesOptions.providers.md +0 -9
- package/docs/interfaces/IFsStorageProviderFactoryOptions.md +0 -44
- package/docs/interfaces/IFsStorageProviderFactoryOptions.rootPath.md +0 -9
- package/docs/interfaces/IHttpStorageProvider.createDirectory.md +0 -20
- package/docs/interfaces/IHttpStorageProvider.deleteFile.md +0 -20
- package/docs/interfaces/IHttpStorageProvider.getChildren.md +0 -20
- package/docs/interfaces/IHttpStorageProvider.getFile.md +0 -20
- package/docs/interfaces/IHttpStorageProvider.getItem.md +0 -20
- package/docs/interfaces/IHttpStorageProvider.md +0 -115
- package/docs/interfaces/IHttpStorageProvider.saveFile.md +0 -22
- package/docs/interfaces/IHttpStorageProvider.sync.md +0 -13
- package/docs/interfaces/IHttpStorageProviderFactory.forNamespace.md +0 -20
- package/docs/interfaces/IHttpStorageProviderFactory.md +0 -36
- package/docs/interfaces/IStorageFileResponse.contentType.md +0 -9
- package/docs/interfaces/IStorageFileResponse.contents.md +0 -9
- package/docs/interfaces/IStorageFileResponse.md +0 -78
- package/docs/interfaces/IStorageFileResponse.path.md +0 -9
- package/docs/interfaces/IStoragePathRequest.md +0 -61
- package/docs/interfaces/IStoragePathRequest.namespace.md +0 -9
- package/docs/interfaces/IStoragePathRequest.path.md +0 -9
- package/docs/interfaces/IStorageSyncRequest.md +0 -44
- package/docs/interfaces/IStorageSyncRequest.namespace.md +0 -9
- package/docs/interfaces/IStorageSyncResponse.md +0 -44
- package/docs/interfaces/IStorageSyncResponse.synced.md +0 -9
- package/docs/interfaces/IStorageTreeChildrenResponse.children.md +0 -9
- package/docs/interfaces/IStorageTreeChildrenResponse.md +0 -61
- package/docs/interfaces/IStorageTreeChildrenResponse.path.md +0 -9
- package/docs/interfaces/IStorageTreeItem.md +0 -78
- package/docs/interfaces/IStorageTreeItem.name.md +0 -9
- package/docs/interfaces/IStorageTreeItem.path.md +0 -9
- package/docs/interfaces/IStorageTreeItem.type.md +0 -9
- package/docs/interfaces/IStorageWriteFileRequest.contentType.md +0 -9
- package/docs/interfaces/IStorageWriteFileRequest.contents.md +0 -9
- package/docs/interfaces/IStorageWriteFileRequest.md +0 -97
- package/docs/type-aliases/StorageItemType.md +0 -11
- package/docs/type-aliases/StorageNamespace.md +0 -11
- package/docs/variables/storageFileResponse.md +0 -9
- package/docs/variables/storagePathRequest.md +0 -9
- package/docs/variables/storageSyncRequest.md +0 -9
- package/docs/variables/storageTreeChildrenResponse.md +0 -9
- package/docs/variables/storageTreeItem.md +0 -9
- package/docs/variables/storageWriteFileRequest.md +0 -9
- package/etc/ts-http-storage.api.md +0 -184
- package/lib/test/unit/storage/fsProvider.test.d.ts +0 -2
- package/lib/test/unit/storage/fsProvider.test.d.ts.map +0 -1
- package/lib/test/unit/storage/fsProvider.test.js +0 -106
- package/lib/test/unit/storage/fsProvider.test.js.map +0 -1
- package/lib/test/unit/storage/routes.test.d.ts +0 -2
- package/lib/test/unit/storage/routes.test.d.ts.map +0 -1
- package/lib/test/unit/storage/routes.test.js +0 -124
- package/lib/test/unit/storage/routes.test.js.map +0 -1
- package/lib/test/unit/storage/service.test.d.ts +0 -2
- package/lib/test/unit/storage/service.test.d.ts.map +0 -1
- package/lib/test/unit/storage/service.test.js +0 -67
- package/lib/test/unit/storage/service.test.js.map +0 -1
- package/rush-logs/ts-http-storage.build.cache.log +0 -3
- package/rush-logs/ts-http-storage.build.log +0 -9
- package/src/index.ts +0 -28
- package/src/packlets/storage/converters.ts +0 -100
- package/src/packlets/storage/fsProvider.ts +0 -263
- package/src/packlets/storage/index.ts +0 -33
- package/src/packlets/storage/model.ts +0 -113
- package/src/packlets/storage/provider.ts +0 -33
- package/src/packlets/storage/routes.ts +0 -215
- package/src/packlets/storage/service.ts +0 -114
- package/src/test/unit/storage/fsProvider.test.ts +0 -129
- package/src/test/unit/storage/routes.test.ts +0 -165
- package/src/test/unit/storage/service.test.ts +0 -95
- package/temp/build/typescript/ts_l9Fw4VUO.json +0 -1
- package/temp/ts-http-storage.api.json +0 -3103
- package/temp/ts-http-storage.api.md +0 -184
- package/tsconfig.json +0 -7
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"projectFolder": "..",
|
|
4
|
-
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts",
|
|
5
|
-
"bundledPackages": [],
|
|
6
|
-
"apiReport": {
|
|
7
|
-
"enabled": true
|
|
8
|
-
},
|
|
9
|
-
"docModel": {
|
|
10
|
-
"enabled": true
|
|
11
|
-
},
|
|
12
|
-
"dtsRollup": {
|
|
13
|
-
"enabled": true
|
|
14
|
-
},
|
|
15
|
-
"messages": {
|
|
16
|
-
"compilerMessageReporting": {
|
|
17
|
-
"default": {
|
|
18
|
-
"logLevel": "warning"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"extractorMessageReporting": {
|
|
22
|
-
"default": {
|
|
23
|
-
"logLevel": "warning"
|
|
24
|
-
},
|
|
25
|
-
"ae-unresolved-link": {
|
|
26
|
-
"logLevel": "none",
|
|
27
|
-
"addToApiReportFile": true
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"tsdocMessageReporting": {
|
|
31
|
-
"default": {
|
|
32
|
-
"logLevel": "warning"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
package/config/rig.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// The "rig.json" file directs tools to look for their config files in an external package.
|
|
2
|
-
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
|
|
3
|
-
{
|
|
4
|
-
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
|
|
5
|
-
/**
|
|
6
|
-
* (Required) The name of the rig package to inherit from.
|
|
7
|
-
* It should be an NPM package name with the "-rig" suffix.
|
|
8
|
-
*/
|
|
9
|
-
"rigPackageName": "@rushstack/heft-node-rig"
|
|
10
|
-
}
|
package/config/typedoc.json
DELETED
package/docs/README.md
DELETED
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
# @fgv/ts-http-storage
|
|
2
|
-
|
|
3
|
-
Reusable HTTP storage services for FileTree-style backends.
|
|
4
|
-
|
|
5
|
-
## Classes
|
|
6
|
-
|
|
7
|
-
<table><thead><tr><th>
|
|
8
|
-
|
|
9
|
-
Name
|
|
10
|
-
|
|
11
|
-
</th><th>
|
|
12
|
-
|
|
13
|
-
Description
|
|
14
|
-
|
|
15
|
-
</th></tr></thead>
|
|
16
|
-
<tbody>
|
|
17
|
-
<tr><td>
|
|
18
|
-
|
|
19
|
-
[FsStorageProvider](./classes/FsStorageProvider.md)
|
|
20
|
-
|
|
21
|
-
</td><td>
|
|
22
|
-
|
|
23
|
-
Filesystem-backed implementation of IHttpStorageProvider.
|
|
24
|
-
|
|
25
|
-
</td></tr>
|
|
26
|
-
<tr><td>
|
|
27
|
-
|
|
28
|
-
[FsStorageProviderFactory](./classes/FsStorageProviderFactory.md)
|
|
29
|
-
|
|
30
|
-
</td><td>
|
|
31
|
-
|
|
32
|
-
Namespace-aware provider factory backed by filesystem directories.
|
|
33
|
-
|
|
34
|
-
</td></tr>
|
|
35
|
-
<tr><td>
|
|
36
|
-
|
|
37
|
-
[HttpStorageService](./classes/HttpStorageService.md)
|
|
38
|
-
|
|
39
|
-
</td><td>
|
|
40
|
-
|
|
41
|
-
Service layer for storage API operations.
|
|
42
|
-
|
|
43
|
-
</td></tr>
|
|
44
|
-
</tbody></table>
|
|
45
|
-
|
|
46
|
-
## Interfaces
|
|
47
|
-
|
|
48
|
-
<table><thead><tr><th>
|
|
49
|
-
|
|
50
|
-
Name
|
|
51
|
-
|
|
52
|
-
</th><th>
|
|
53
|
-
|
|
54
|
-
Description
|
|
55
|
-
|
|
56
|
-
</th></tr></thead>
|
|
57
|
-
<tbody>
|
|
58
|
-
<tr><td>
|
|
59
|
-
|
|
60
|
-
[IStorageTreeItem](./interfaces/IStorageTreeItem.md)
|
|
61
|
-
|
|
62
|
-
</td><td>
|
|
63
|
-
|
|
64
|
-
Storage tree item metadata.
|
|
65
|
-
|
|
66
|
-
</td></tr>
|
|
67
|
-
<tr><td>
|
|
68
|
-
|
|
69
|
-
[IStorageTreeChildrenResponse](./interfaces/IStorageTreeChildrenResponse.md)
|
|
70
|
-
|
|
71
|
-
</td><td>
|
|
72
|
-
|
|
73
|
-
Response for listing children.
|
|
74
|
-
|
|
75
|
-
</td></tr>
|
|
76
|
-
<tr><td>
|
|
77
|
-
|
|
78
|
-
[IStorageFileResponse](./interfaces/IStorageFileResponse.md)
|
|
79
|
-
|
|
80
|
-
</td><td>
|
|
81
|
-
|
|
82
|
-
Response for reading a file.
|
|
83
|
-
|
|
84
|
-
</td></tr>
|
|
85
|
-
<tr><td>
|
|
86
|
-
|
|
87
|
-
[IStoragePathRequest](./interfaces/IStoragePathRequest.md)
|
|
88
|
-
|
|
89
|
-
</td><td>
|
|
90
|
-
|
|
91
|
-
Request for path-based operations.
|
|
92
|
-
|
|
93
|
-
</td></tr>
|
|
94
|
-
<tr><td>
|
|
95
|
-
|
|
96
|
-
[IStorageWriteFileRequest](./interfaces/IStorageWriteFileRequest.md)
|
|
97
|
-
|
|
98
|
-
</td><td>
|
|
99
|
-
|
|
100
|
-
Request for writing file contents.
|
|
101
|
-
|
|
102
|
-
</td></tr>
|
|
103
|
-
<tr><td>
|
|
104
|
-
|
|
105
|
-
[IStorageSyncRequest](./interfaces/IStorageSyncRequest.md)
|
|
106
|
-
|
|
107
|
-
</td><td>
|
|
108
|
-
|
|
109
|
-
Request for sync operation.
|
|
110
|
-
|
|
111
|
-
</td></tr>
|
|
112
|
-
<tr><td>
|
|
113
|
-
|
|
114
|
-
[IStorageSyncResponse](./interfaces/IStorageSyncResponse.md)
|
|
115
|
-
|
|
116
|
-
</td><td>
|
|
117
|
-
|
|
118
|
-
Sync response metadata.
|
|
119
|
-
|
|
120
|
-
</td></tr>
|
|
121
|
-
<tr><td>
|
|
122
|
-
|
|
123
|
-
[IHttpStorageProvider](./interfaces/IHttpStorageProvider.md)
|
|
124
|
-
|
|
125
|
-
</td><td>
|
|
126
|
-
|
|
127
|
-
Provider contract for storage backends.
|
|
128
|
-
|
|
129
|
-
</td></tr>
|
|
130
|
-
<tr><td>
|
|
131
|
-
|
|
132
|
-
[IHttpStorageProviderFactory](./interfaces/IHttpStorageProviderFactory.md)
|
|
133
|
-
|
|
134
|
-
</td><td>
|
|
135
|
-
|
|
136
|
-
Factory for creating namespace-scoped storage providers.
|
|
137
|
-
|
|
138
|
-
</td></tr>
|
|
139
|
-
<tr><td>
|
|
140
|
-
|
|
141
|
-
[IFsStorageProviderFactoryOptions](./interfaces/IFsStorageProviderFactoryOptions.md)
|
|
142
|
-
|
|
143
|
-
</td><td>
|
|
144
|
-
|
|
145
|
-
Options for creating filesystem-backed storage providers.
|
|
146
|
-
|
|
147
|
-
</td></tr>
|
|
148
|
-
<tr><td>
|
|
149
|
-
|
|
150
|
-
[ICreateStorageRoutesOptions](./interfaces/ICreateStorageRoutesOptions.md)
|
|
151
|
-
|
|
152
|
-
</td><td>
|
|
153
|
-
|
|
154
|
-
Options for creating storage routes.
|
|
155
|
-
|
|
156
|
-
</td></tr>
|
|
157
|
-
</tbody></table>
|
|
158
|
-
|
|
159
|
-
## Type Aliases
|
|
160
|
-
|
|
161
|
-
<table><thead><tr><th>
|
|
162
|
-
|
|
163
|
-
Name
|
|
164
|
-
|
|
165
|
-
</th><th>
|
|
166
|
-
|
|
167
|
-
Description
|
|
168
|
-
|
|
169
|
-
</th></tr></thead>
|
|
170
|
-
<tbody>
|
|
171
|
-
<tr><td>
|
|
172
|
-
|
|
173
|
-
[StorageNamespace](./type-aliases/StorageNamespace.md)
|
|
174
|
-
|
|
175
|
-
</td><td>
|
|
176
|
-
|
|
177
|
-
Namespace identifier for scoped storage.
|
|
178
|
-
|
|
179
|
-
</td></tr>
|
|
180
|
-
<tr><td>
|
|
181
|
-
|
|
182
|
-
[StorageItemType](./type-aliases/StorageItemType.md)
|
|
183
|
-
|
|
184
|
-
</td><td>
|
|
185
|
-
|
|
186
|
-
Storage item type.
|
|
187
|
-
|
|
188
|
-
</td></tr>
|
|
189
|
-
</tbody></table>
|
|
190
|
-
|
|
191
|
-
## Functions
|
|
192
|
-
|
|
193
|
-
<table><thead><tr><th>
|
|
194
|
-
|
|
195
|
-
Name
|
|
196
|
-
|
|
197
|
-
</th><th>
|
|
198
|
-
|
|
199
|
-
Description
|
|
200
|
-
|
|
201
|
-
</th></tr></thead>
|
|
202
|
-
<tbody>
|
|
203
|
-
<tr><td>
|
|
204
|
-
|
|
205
|
-
[normalizeRequestPath](./functions/normalizeRequestPath.md)
|
|
206
|
-
|
|
207
|
-
</td><td>
|
|
208
|
-
|
|
209
|
-
Normalizes a request path to a consistent POSIX format.
|
|
210
|
-
|
|
211
|
-
</td></tr>
|
|
212
|
-
<tr><td>
|
|
213
|
-
|
|
214
|
-
[sanitizeNamespace](./functions/sanitizeNamespace.md)
|
|
215
|
-
|
|
216
|
-
</td><td>
|
|
217
|
-
|
|
218
|
-
Sanitize namespace path segment.
|
|
219
|
-
|
|
220
|
-
</td></tr>
|
|
221
|
-
<tr><td>
|
|
222
|
-
|
|
223
|
-
[createStorageRoutes](./functions/createStorageRoutes.md)
|
|
224
|
-
|
|
225
|
-
</td><td>
|
|
226
|
-
|
|
227
|
-
Builds storage routes for a Hono app.
|
|
228
|
-
|
|
229
|
-
</td></tr>
|
|
230
|
-
</tbody></table>
|
|
231
|
-
|
|
232
|
-
## Variables
|
|
233
|
-
|
|
234
|
-
<table><thead><tr><th>
|
|
235
|
-
|
|
236
|
-
Name
|
|
237
|
-
|
|
238
|
-
</th><th>
|
|
239
|
-
|
|
240
|
-
Description
|
|
241
|
-
|
|
242
|
-
</th></tr></thead>
|
|
243
|
-
<tbody>
|
|
244
|
-
<tr><td>
|
|
245
|
-
|
|
246
|
-
[storageTreeItem](./variables/storageTreeItem.md)
|
|
247
|
-
|
|
248
|
-
</td><td>
|
|
249
|
-
|
|
250
|
-
Converter for IStorageTreeItem.
|
|
251
|
-
|
|
252
|
-
</td></tr>
|
|
253
|
-
<tr><td>
|
|
254
|
-
|
|
255
|
-
[storagePathRequest](./variables/storagePathRequest.md)
|
|
256
|
-
|
|
257
|
-
</td><td>
|
|
258
|
-
|
|
259
|
-
Converter for path-based requests.
|
|
260
|
-
|
|
261
|
-
</td></tr>
|
|
262
|
-
<tr><td>
|
|
263
|
-
|
|
264
|
-
[storageWriteFileRequest](./variables/storageWriteFileRequest.md)
|
|
265
|
-
|
|
266
|
-
</td><td>
|
|
267
|
-
|
|
268
|
-
Converter for write-file requests.
|
|
269
|
-
|
|
270
|
-
</td></tr>
|
|
271
|
-
<tr><td>
|
|
272
|
-
|
|
273
|
-
[storageSyncRequest](./variables/storageSyncRequest.md)
|
|
274
|
-
|
|
275
|
-
</td><td>
|
|
276
|
-
|
|
277
|
-
Converter for sync requests.
|
|
278
|
-
|
|
279
|
-
</td></tr>
|
|
280
|
-
<tr><td>
|
|
281
|
-
|
|
282
|
-
[storageFileResponse](./variables/storageFileResponse.md)
|
|
283
|
-
|
|
284
|
-
</td><td>
|
|
285
|
-
|
|
286
|
-
Converter for file responses.
|
|
287
|
-
|
|
288
|
-
</td></tr>
|
|
289
|
-
<tr><td>
|
|
290
|
-
|
|
291
|
-
[storageTreeChildrenResponse](./variables/storageTreeChildrenResponse.md)
|
|
292
|
-
|
|
293
|
-
</td><td>
|
|
294
|
-
|
|
295
|
-
Converter for children list responses.
|
|
296
|
-
|
|
297
|
-
</td></tr>
|
|
298
|
-
</tbody></table>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > [FsStorageProvider](./FsStorageProvider.md) > createDirectory
|
|
2
|
-
|
|
3
|
-
## FsStorageProvider.createDirectory() method
|
|
4
|
-
|
|
5
|
-
**Signature:**
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
createDirectory(itemPath: string): Promise<Result<IStorageTreeItem>>;
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
**Parameters:**
|
|
12
|
-
|
|
13
|
-
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
-
<tbody>
|
|
15
|
-
<tr><td>itemPath</td><td>string</td><td></td></tr>
|
|
16
|
-
</tbody></table>
|
|
17
|
-
|
|
18
|
-
**Returns:**
|
|
19
|
-
|
|
20
|
-
Promise<Result<[IStorageTreeItem](../interfaces/IStorageTreeItem.md)>>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > [FsStorageProvider](./FsStorageProvider.md) > deleteFile
|
|
2
|
-
|
|
3
|
-
## FsStorageProvider.deleteFile() method
|
|
4
|
-
|
|
5
|
-
**Signature:**
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
deleteFile(itemPath: string): Promise<Result<boolean>>;
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
**Parameters:**
|
|
12
|
-
|
|
13
|
-
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
-
<tbody>
|
|
15
|
-
<tr><td>itemPath</td><td>string</td><td></td></tr>
|
|
16
|
-
</tbody></table>
|
|
17
|
-
|
|
18
|
-
**Returns:**
|
|
19
|
-
|
|
20
|
-
Promise<Result<boolean>>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > [FsStorageProvider](./FsStorageProvider.md) > getChildren
|
|
2
|
-
|
|
3
|
-
## FsStorageProvider.getChildren() method
|
|
4
|
-
|
|
5
|
-
**Signature:**
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
getChildren(itemPath: string): Promise<Result<readonly IStorageTreeItem[]>>;
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
**Parameters:**
|
|
12
|
-
|
|
13
|
-
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
-
<tbody>
|
|
15
|
-
<tr><td>itemPath</td><td>string</td><td></td></tr>
|
|
16
|
-
</tbody></table>
|
|
17
|
-
|
|
18
|
-
**Returns:**
|
|
19
|
-
|
|
20
|
-
Promise<Result<readonly [IStorageTreeItem](../interfaces/IStorageTreeItem.md)[]>>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > [FsStorageProvider](./FsStorageProvider.md) > getFile
|
|
2
|
-
|
|
3
|
-
## FsStorageProvider.getFile() method
|
|
4
|
-
|
|
5
|
-
**Signature:**
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
getFile(itemPath: string): Promise<Result<IStorageFileResponse>>;
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
**Parameters:**
|
|
12
|
-
|
|
13
|
-
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
-
<tbody>
|
|
15
|
-
<tr><td>itemPath</td><td>string</td><td></td></tr>
|
|
16
|
-
</tbody></table>
|
|
17
|
-
|
|
18
|
-
**Returns:**
|
|
19
|
-
|
|
20
|
-
Promise<Result<[IStorageFileResponse](../interfaces/IStorageFileResponse.md)>>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > [FsStorageProvider](./FsStorageProvider.md) > getItem
|
|
2
|
-
|
|
3
|
-
## FsStorageProvider.getItem() method
|
|
4
|
-
|
|
5
|
-
**Signature:**
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
getItem(itemPath: string): Promise<Result<IStorageTreeItem>>;
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
**Parameters:**
|
|
12
|
-
|
|
13
|
-
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
-
<tbody>
|
|
15
|
-
<tr><td>itemPath</td><td>string</td><td></td></tr>
|
|
16
|
-
</tbody></table>
|
|
17
|
-
|
|
18
|
-
**Returns:**
|
|
19
|
-
|
|
20
|
-
Promise<Result<[IStorageTreeItem](../interfaces/IStorageTreeItem.md)>>
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > FsStorageProvider
|
|
2
|
-
|
|
3
|
-
# Class: FsStorageProvider
|
|
4
|
-
|
|
5
|
-
Filesystem-backed implementation of IHttpStorageProvider.
|
|
6
|
-
|
|
7
|
-
**Implements:** [`IHttpStorageProvider`](../interfaces/IHttpStorageProvider.md)
|
|
8
|
-
|
|
9
|
-
## Constructors
|
|
10
|
-
|
|
11
|
-
<table><thead><tr><th>
|
|
12
|
-
|
|
13
|
-
Constructor
|
|
14
|
-
|
|
15
|
-
</th><th>
|
|
16
|
-
|
|
17
|
-
Modifiers
|
|
18
|
-
|
|
19
|
-
</th><th>
|
|
20
|
-
|
|
21
|
-
Description
|
|
22
|
-
|
|
23
|
-
</th></tr></thead>
|
|
24
|
-
<tbody>
|
|
25
|
-
<tr><td>
|
|
26
|
-
|
|
27
|
-
`constructor(rootPath)`
|
|
28
|
-
|
|
29
|
-
</td><td>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</td><td>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</td></tr>
|
|
38
|
-
</tbody></table>
|
|
39
|
-
|
|
40
|
-
## Methods
|
|
41
|
-
|
|
42
|
-
<table><thead><tr><th>
|
|
43
|
-
|
|
44
|
-
Method
|
|
45
|
-
|
|
46
|
-
</th><th>
|
|
47
|
-
|
|
48
|
-
Modifiers
|
|
49
|
-
|
|
50
|
-
</th><th>
|
|
51
|
-
|
|
52
|
-
Description
|
|
53
|
-
|
|
54
|
-
</th></tr></thead>
|
|
55
|
-
<tbody>
|
|
56
|
-
<tr><td>
|
|
57
|
-
|
|
58
|
-
[getItem(itemPath)](./FsStorageProvider.getItem.md)
|
|
59
|
-
|
|
60
|
-
</td><td>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td><td>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</td></tr>
|
|
69
|
-
<tr><td>
|
|
70
|
-
|
|
71
|
-
[getChildren(itemPath)](./FsStorageProvider.getChildren.md)
|
|
72
|
-
|
|
73
|
-
</td><td>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
</td><td>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
</td></tr>
|
|
82
|
-
<tr><td>
|
|
83
|
-
|
|
84
|
-
[getFile(itemPath)](./FsStorageProvider.getFile.md)
|
|
85
|
-
|
|
86
|
-
</td><td>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</td><td>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</td></tr>
|
|
95
|
-
<tr><td>
|
|
96
|
-
|
|
97
|
-
[saveFile(itemPath, contents, contentType)](./FsStorageProvider.saveFile.md)
|
|
98
|
-
|
|
99
|
-
</td><td>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</td><td>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</td></tr>
|
|
108
|
-
<tr><td>
|
|
109
|
-
|
|
110
|
-
[deleteFile(itemPath)](./FsStorageProvider.deleteFile.md)
|
|
111
|
-
|
|
112
|
-
</td><td>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
</td><td>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</td></tr>
|
|
121
|
-
<tr><td>
|
|
122
|
-
|
|
123
|
-
[createDirectory(itemPath)](./FsStorageProvider.createDirectory.md)
|
|
124
|
-
|
|
125
|
-
</td><td>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
</td><td>
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
</td></tr>
|
|
134
|
-
<tr><td>
|
|
135
|
-
|
|
136
|
-
[sync()](./FsStorageProvider.sync.md)
|
|
137
|
-
|
|
138
|
-
</td><td>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
</td><td>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
</td></tr>
|
|
147
|
-
</tbody></table>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > [FsStorageProvider](./FsStorageProvider.md) > saveFile
|
|
2
|
-
|
|
3
|
-
## FsStorageProvider.saveFile() method
|
|
4
|
-
|
|
5
|
-
**Signature:**
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
saveFile(itemPath: string, contents: string, contentType?: string): Promise<Result<IStorageFileResponse>>;
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
**Parameters:**
|
|
12
|
-
|
|
13
|
-
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
-
<tbody>
|
|
15
|
-
<tr><td>itemPath</td><td>string</td><td></td></tr>
|
|
16
|
-
<tr><td>contents</td><td>string</td><td></td></tr>
|
|
17
|
-
<tr><td>contentType</td><td>string</td><td></td></tr>
|
|
18
|
-
</tbody></table>
|
|
19
|
-
|
|
20
|
-
**Returns:**
|
|
21
|
-
|
|
22
|
-
Promise<Result<[IStorageFileResponse](../interfaces/IStorageFileResponse.md)>>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > [FsStorageProvider](./FsStorageProvider.md) > sync
|
|
2
|
-
|
|
3
|
-
## FsStorageProvider.sync() method
|
|
4
|
-
|
|
5
|
-
**Signature:**
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
sync(): Promise<Result<IStorageSyncResponse>>;
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
**Returns:**
|
|
12
|
-
|
|
13
|
-
Promise<Result<[IStorageSyncResponse](../interfaces/IStorageSyncResponse.md)>>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[Home](../README.md) > [FsStorageProviderFactory](./FsStorageProviderFactory.md) > forNamespace
|
|
2
|
-
|
|
3
|
-
## FsStorageProviderFactory.forNamespace() method
|
|
4
|
-
|
|
5
|
-
**Signature:**
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
forNamespace(namespace?: string): Result<IHttpStorageProvider>;
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
**Parameters:**
|
|
12
|
-
|
|
13
|
-
<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
|
|
14
|
-
<tbody>
|
|
15
|
-
<tr><td>namespace</td><td>string</td><td></td></tr>
|
|
16
|
-
</tbody></table>
|
|
17
|
-
|
|
18
|
-
**Returns:**
|
|
19
|
-
|
|
20
|
-
Result<[IHttpStorageProvider](../interfaces/IHttpStorageProvider.md)>
|