@fgv/ts-http-storage 5.1.0-1
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/.rush/temp/chunked-rush-logs/ts-http-storage.build.chunks.jsonl +9 -0
- package/.rush/temp/fbfcc9487d290993ba47f1d36e9383196e7b12ac.tar.log +61 -0
- package/.rush/temp/operation/build/all.log +9 -0
- package/.rush/temp/operation/build/log-chunks.jsonl +9 -0
- package/.rush/temp/operation/build/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +647 -0
- package/config/api-extractor.json +36 -0
- package/config/rig.json +10 -0
- package/config/typedoc.json +7 -0
- package/dist/ts-http-storage.d.ts +225 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/docs/README.md +298 -0
- package/docs/classes/FsStorageProvider.createDirectory.md +20 -0
- package/docs/classes/FsStorageProvider.getChildren.md +20 -0
- package/docs/classes/FsStorageProvider.getFile.md +20 -0
- package/docs/classes/FsStorageProvider.getItem.md +20 -0
- package/docs/classes/FsStorageProvider.md +134 -0
- package/docs/classes/FsStorageProvider.saveFile.md +22 -0
- package/docs/classes/FsStorageProvider.sync.md +13 -0
- package/docs/classes/FsStorageProviderFactory.forNamespace.md +20 -0
- package/docs/classes/FsStorageProviderFactory.md +69 -0
- package/docs/classes/HttpStorageService.createDirectory.md +20 -0
- package/docs/classes/HttpStorageService.getChildren.md +20 -0
- package/docs/classes/HttpStorageService.getFile.md +20 -0
- package/docs/classes/HttpStorageService.getItem.md +20 -0
- package/docs/classes/HttpStorageService.md +132 -0
- package/docs/classes/HttpStorageService.saveFile.md +20 -0
- package/docs/classes/HttpStorageService.sync.md +20 -0
- package/docs/functions/createStorageRoutes.md +11 -0
- package/docs/functions/normalizeRequestPath.md +11 -0
- package/docs/functions/sanitizeNamespace.md +11 -0
- package/docs/interfaces/ICreateStorageRoutesOptions.logger.md +9 -0
- package/docs/interfaces/ICreateStorageRoutesOptions.md +61 -0
- package/docs/interfaces/ICreateStorageRoutesOptions.providers.md +9 -0
- package/docs/interfaces/IFsStorageProviderFactoryOptions.md +44 -0
- package/docs/interfaces/IFsStorageProviderFactoryOptions.rootPath.md +9 -0
- package/docs/interfaces/IHttpStorageProvider.createDirectory.md +20 -0
- package/docs/interfaces/IHttpStorageProvider.getChildren.md +20 -0
- package/docs/interfaces/IHttpStorageProvider.getFile.md +20 -0
- package/docs/interfaces/IHttpStorageProvider.getItem.md +20 -0
- package/docs/interfaces/IHttpStorageProvider.md +102 -0
- package/docs/interfaces/IHttpStorageProvider.saveFile.md +22 -0
- package/docs/interfaces/IHttpStorageProvider.sync.md +13 -0
- package/docs/interfaces/IHttpStorageProviderFactory.forNamespace.md +20 -0
- package/docs/interfaces/IHttpStorageProviderFactory.md +36 -0
- package/docs/interfaces/IStorageFileResponse.contentType.md +9 -0
- package/docs/interfaces/IStorageFileResponse.contents.md +9 -0
- package/docs/interfaces/IStorageFileResponse.md +78 -0
- package/docs/interfaces/IStorageFileResponse.path.md +9 -0
- package/docs/interfaces/IStoragePathRequest.md +61 -0
- package/docs/interfaces/IStoragePathRequest.namespace.md +9 -0
- package/docs/interfaces/IStoragePathRequest.path.md +9 -0
- package/docs/interfaces/IStorageSyncRequest.md +44 -0
- package/docs/interfaces/IStorageSyncRequest.namespace.md +9 -0
- package/docs/interfaces/IStorageSyncResponse.md +44 -0
- package/docs/interfaces/IStorageSyncResponse.synced.md +9 -0
- package/docs/interfaces/IStorageTreeChildrenResponse.children.md +9 -0
- package/docs/interfaces/IStorageTreeChildrenResponse.md +61 -0
- package/docs/interfaces/IStorageTreeChildrenResponse.path.md +9 -0
- package/docs/interfaces/IStorageTreeItem.md +78 -0
- package/docs/interfaces/IStorageTreeItem.name.md +9 -0
- package/docs/interfaces/IStorageTreeItem.path.md +9 -0
- package/docs/interfaces/IStorageTreeItem.type.md +9 -0
- package/docs/interfaces/IStorageWriteFileRequest.contentType.md +9 -0
- package/docs/interfaces/IStorageWriteFileRequest.contents.md +9 -0
- package/docs/interfaces/IStorageWriteFileRequest.md +97 -0
- package/docs/type-aliases/StorageItemType.md +11 -0
- package/docs/type-aliases/StorageNamespace.md +11 -0
- package/docs/variables/storageFileResponse.md +9 -0
- package/docs/variables/storagePathRequest.md +9 -0
- package/docs/variables/storageSyncRequest.md +9 -0
- package/docs/variables/storageTreeChildrenResponse.md +9 -0
- package/docs/variables/storageTreeItem.md +9 -0
- package/docs/variables/storageWriteFileRequest.md +9 -0
- package/etc/ts-http-storage.api.md +184 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +43 -0
- package/lib/index.js.map +1 -0
- package/lib/packlets/storage/converters.d.ts +33 -0
- package/lib/packlets/storage/converters.d.ts.map +1 -0
- package/lib/packlets/storage/converters.js +81 -0
- package/lib/packlets/storage/converters.js.map +1 -0
- package/lib/packlets/storage/fsProvider.d.ts +47 -0
- package/lib/packlets/storage/fsProvider.d.ts.map +1 -0
- package/lib/packlets/storage/fsProvider.js +260 -0
- package/lib/packlets/storage/fsProvider.js.map +1 -0
- package/lib/packlets/storage/index.d.ts +11 -0
- package/lib/packlets/storage/index.d.ts.map +1 -0
- package/lib/packlets/storage/index.js +48 -0
- package/lib/packlets/storage/index.js.map +1 -0
- package/lib/packlets/storage/model.d.ts +82 -0
- package/lib/packlets/storage/model.d.ts.map +1 -0
- package/lib/packlets/storage/model.js +24 -0
- package/lib/packlets/storage/model.js.map +1 -0
- package/lib/packlets/storage/provider.d.ts +10 -0
- package/lib/packlets/storage/provider.d.ts.map +1 -0
- package/lib/packlets/storage/provider.js +24 -0
- package/lib/packlets/storage/provider.js.map +1 -0
- package/lib/packlets/storage/routes.d.ts +17 -0
- package/lib/packlets/storage/routes.d.ts.map +1 -0
- package/lib/packlets/storage/routes.js +170 -0
- package/lib/packlets/storage/routes.js.map +1 -0
- package/lib/packlets/storage/service.d.ts +20 -0
- package/lib/packlets/storage/service.d.ts.map +1 -0
- package/lib/packlets/storage/service.js +95 -0
- package/lib/packlets/storage/service.js.map +1 -0
- package/lib/test/unit/storage/fsProvider.test.d.ts +2 -0
- package/lib/test/unit/storage/fsProvider.test.d.ts.map +1 -0
- package/lib/test/unit/storage/fsProvider.test.js +106 -0
- package/lib/test/unit/storage/fsProvider.test.js.map +1 -0
- package/lib/test/unit/storage/routes.test.d.ts +2 -0
- package/lib/test/unit/storage/routes.test.d.ts.map +1 -0
- package/lib/test/unit/storage/routes.test.js +124 -0
- package/lib/test/unit/storage/routes.test.js.map +1 -0
- package/lib/test/unit/storage/service.test.d.ts +2 -0
- package/lib/test/unit/storage/service.test.d.ts.map +1 -0
- package/lib/test/unit/storage/service.test.js +67 -0
- package/lib/test/unit/storage/service.test.js.map +1 -0
- package/package.json +66 -0
- package/rush-logs/ts-http-storage.build.cache.log +3 -0
- package/rush-logs/ts-http-storage.build.log +9 -0
- package/src/index.ts +28 -0
- package/src/packlets/storage/converters.ts +100 -0
- package/src/packlets/storage/fsProvider.ts +263 -0
- package/src/packlets/storage/index.ts +33 -0
- package/src/packlets/storage/model.ts +113 -0
- package/src/packlets/storage/provider.ts +33 -0
- package/src/packlets/storage/routes.ts +215 -0
- package/src/packlets/storage/service.ts +114 -0
- package/src/test/unit/storage/fsProvider.test.ts +129 -0
- package/src/test/unit/storage/routes.test.ts +165 -0
- package/src/test/unit/storage/service.test.ts +95 -0
- package/temp/build/typescript/ts_l9Fw4VUO.json +1 -0
- package/temp/ts-http-storage.api.json +3103 -0
- package/temp/ts-http-storage.api.md +184 -0
- package/tsconfig.json +7 -0
|
@@ -0,0 +1,134 @@
|
|
|
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
|
+
[createDirectory(itemPath)](./FsStorageProvider.createDirectory.md)
|
|
111
|
+
|
|
112
|
+
</td><td>
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</td><td>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
</td></tr>
|
|
121
|
+
<tr><td>
|
|
122
|
+
|
|
123
|
+
[sync()](./FsStorageProvider.sync.md)
|
|
124
|
+
|
|
125
|
+
</td><td>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
</td><td>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
</td></tr>
|
|
134
|
+
</tbody></table>
|
|
@@ -0,0 +1,22 @@
|
|
|
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)>>
|
|
@@ -0,0 +1,13 @@
|
|
|
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)>>
|
|
@@ -0,0 +1,20 @@
|
|
|
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)>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[Home](../README.md) > FsStorageProviderFactory
|
|
2
|
+
|
|
3
|
+
# Class: FsStorageProviderFactory
|
|
4
|
+
|
|
5
|
+
Namespace-aware provider factory backed by filesystem directories.
|
|
6
|
+
|
|
7
|
+
**Implements:** [`IHttpStorageProviderFactory`](../interfaces/IHttpStorageProviderFactory.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(options)`
|
|
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
|
+
[forNamespace(namespace)](./FsStorageProviderFactory.forNamespace.md)
|
|
59
|
+
|
|
60
|
+
</td><td>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
</td><td>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td></tr>
|
|
69
|
+
</tbody></table>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [HttpStorageService](./HttpStorageService.md) > createDirectory
|
|
2
|
+
|
|
3
|
+
## HttpStorageService.createDirectory() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
createDirectory(request: IStoragePathRequest): 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>request</td><td>IStoragePathRequest</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<Result<[IStorageTreeItem](../interfaces/IStorageTreeItem.md)>>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [HttpStorageService](./HttpStorageService.md) > getChildren
|
|
2
|
+
|
|
3
|
+
## HttpStorageService.getChildren() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
getChildren(request: IStoragePathRequest): Promise<Result<IStorageTreeChildrenResponse>>;
|
|
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>request</td><td>IStoragePathRequest</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<Result<[IStorageTreeChildrenResponse](../interfaces/IStorageTreeChildrenResponse.md)>>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [HttpStorageService](./HttpStorageService.md) > getFile
|
|
2
|
+
|
|
3
|
+
## HttpStorageService.getFile() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
getFile(request: IStoragePathRequest): 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>request</td><td>IStoragePathRequest</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<Result<[IStorageFileResponse](../interfaces/IStorageFileResponse.md)>>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [HttpStorageService](./HttpStorageService.md) > getItem
|
|
2
|
+
|
|
3
|
+
## HttpStorageService.getItem() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
getItem(request: IStoragePathRequest): 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>request</td><td>IStoragePathRequest</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<Result<[IStorageTreeItem](../interfaces/IStorageTreeItem.md)>>
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
[Home](../README.md) > HttpStorageService
|
|
2
|
+
|
|
3
|
+
# Class: HttpStorageService
|
|
4
|
+
|
|
5
|
+
Service layer for storage API operations.
|
|
6
|
+
|
|
7
|
+
## Constructors
|
|
8
|
+
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Constructor
|
|
12
|
+
|
|
13
|
+
</th><th>
|
|
14
|
+
|
|
15
|
+
Modifiers
|
|
16
|
+
|
|
17
|
+
</th><th>
|
|
18
|
+
|
|
19
|
+
Description
|
|
20
|
+
|
|
21
|
+
</th></tr></thead>
|
|
22
|
+
<tbody>
|
|
23
|
+
<tr><td>
|
|
24
|
+
|
|
25
|
+
`constructor(providers)`
|
|
26
|
+
|
|
27
|
+
</td><td>
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</td></tr>
|
|
36
|
+
</tbody></table>
|
|
37
|
+
|
|
38
|
+
## Methods
|
|
39
|
+
|
|
40
|
+
<table><thead><tr><th>
|
|
41
|
+
|
|
42
|
+
Method
|
|
43
|
+
|
|
44
|
+
</th><th>
|
|
45
|
+
|
|
46
|
+
Modifiers
|
|
47
|
+
|
|
48
|
+
</th><th>
|
|
49
|
+
|
|
50
|
+
Description
|
|
51
|
+
|
|
52
|
+
</th></tr></thead>
|
|
53
|
+
<tbody>
|
|
54
|
+
<tr><td>
|
|
55
|
+
|
|
56
|
+
[getItem(request)](./HttpStorageService.getItem.md)
|
|
57
|
+
|
|
58
|
+
</td><td>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</td><td>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</td></tr>
|
|
67
|
+
<tr><td>
|
|
68
|
+
|
|
69
|
+
[getChildren(request)](./HttpStorageService.getChildren.md)
|
|
70
|
+
|
|
71
|
+
</td><td>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</td><td>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
</td></tr>
|
|
80
|
+
<tr><td>
|
|
81
|
+
|
|
82
|
+
[getFile(request)](./HttpStorageService.getFile.md)
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
</td><td>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td></tr>
|
|
93
|
+
<tr><td>
|
|
94
|
+
|
|
95
|
+
[saveFile(request)](./HttpStorageService.saveFile.md)
|
|
96
|
+
|
|
97
|
+
</td><td>
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
</td><td>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
</td></tr>
|
|
106
|
+
<tr><td>
|
|
107
|
+
|
|
108
|
+
[createDirectory(request)](./HttpStorageService.createDirectory.md)
|
|
109
|
+
|
|
110
|
+
</td><td>
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
</td><td>
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</td></tr>
|
|
119
|
+
<tr><td>
|
|
120
|
+
|
|
121
|
+
[sync(request)](./HttpStorageService.sync.md)
|
|
122
|
+
|
|
123
|
+
</td><td>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
</td><td>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
</td></tr>
|
|
132
|
+
</tbody></table>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [HttpStorageService](./HttpStorageService.md) > saveFile
|
|
2
|
+
|
|
3
|
+
## HttpStorageService.saveFile() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
saveFile(request: IStorageWriteFileRequest): 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>request</td><td>IStorageWriteFileRequest</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<Result<[IStorageFileResponse](../interfaces/IStorageFileResponse.md)>>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[Home](../README.md) > [HttpStorageService](./HttpStorageService.md) > sync
|
|
2
|
+
|
|
3
|
+
## HttpStorageService.sync() method
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
sync(request: IStorageSyncRequest): Promise<Result<IStorageSyncResponse>>;
|
|
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>request</td><td>IStorageSyncRequest</td><td></td></tr>
|
|
16
|
+
</tbody></table>
|
|
17
|
+
|
|
18
|
+
**Returns:**
|
|
19
|
+
|
|
20
|
+
Promise<Result<[IStorageSyncResponse](../interfaces/IStorageSyncResponse.md)>>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[Home](../README.md) > ICreateStorageRoutesOptions
|
|
2
|
+
|
|
3
|
+
# Interface: ICreateStorageRoutesOptions
|
|
4
|
+
|
|
5
|
+
Options for creating storage routes.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Property
|
|
12
|
+
|
|
13
|
+
</th><th>
|
|
14
|
+
|
|
15
|
+
Modifiers
|
|
16
|
+
|
|
17
|
+
</th><th>
|
|
18
|
+
|
|
19
|
+
Type
|
|
20
|
+
|
|
21
|
+
</th><th>
|
|
22
|
+
|
|
23
|
+
Description
|
|
24
|
+
|
|
25
|
+
</th></tr></thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr><td>
|
|
28
|
+
|
|
29
|
+
[providers](./ICreateStorageRoutesOptions.providers.md)
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
32
|
+
|
|
33
|
+
`readonly`
|
|
34
|
+
|
|
35
|
+
</td><td>
|
|
36
|
+
|
|
37
|
+
[IHttpStorageProviderFactory](IHttpStorageProviderFactory.md)
|
|
38
|
+
|
|
39
|
+
</td><td>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td></tr>
|
|
44
|
+
<tr><td>
|
|
45
|
+
|
|
46
|
+
[logger](./ICreateStorageRoutesOptions.logger.md)
|
|
47
|
+
|
|
48
|
+
</td><td>
|
|
49
|
+
|
|
50
|
+
`readonly`
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
ILogger
|
|
55
|
+
|
|
56
|
+
</td><td>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
</tbody></table>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[Home](../README.md) > IFsStorageProviderFactoryOptions
|
|
2
|
+
|
|
3
|
+
# Interface: IFsStorageProviderFactoryOptions
|
|
4
|
+
|
|
5
|
+
Options for creating filesystem-backed storage providers.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
<table><thead><tr><th>
|
|
10
|
+
|
|
11
|
+
Property
|
|
12
|
+
|
|
13
|
+
</th><th>
|
|
14
|
+
|
|
15
|
+
Modifiers
|
|
16
|
+
|
|
17
|
+
</th><th>
|
|
18
|
+
|
|
19
|
+
Type
|
|
20
|
+
|
|
21
|
+
</th><th>
|
|
22
|
+
|
|
23
|
+
Description
|
|
24
|
+
|
|
25
|
+
</th></tr></thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr><td>
|
|
28
|
+
|
|
29
|
+
[rootPath](./IFsStorageProviderFactoryOptions.rootPath.md)
|
|
30
|
+
|
|
31
|
+
</td><td>
|
|
32
|
+
|
|
33
|
+
`readonly`
|
|
34
|
+
|
|
35
|
+
</td><td>
|
|
36
|
+
|
|
37
|
+
string
|
|
38
|
+
|
|
39
|
+
</td><td>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td></tr>
|
|
44
|
+
</tbody></table>
|