@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.
Files changed (108) hide show
  1. package/dist/tsdoc-metadata.json +1 -1
  2. package/eslint.config.js +16 -0
  3. package/package.json +5 -5
  4. package/.rush/temp/6ab9195b15cc32c9f5e7e6f55bce0a88fab1fac6.tar.log +0 -61
  5. package/.rush/temp/chunked-rush-logs/ts-http-storage.build.chunks.jsonl +0 -9
  6. package/.rush/temp/operation/build/all.log +0 -9
  7. package/.rush/temp/operation/build/log-chunks.jsonl +0 -9
  8. package/.rush/temp/operation/build/state.json +0 -3
  9. package/.rush/temp/shrinkwrap-deps.json +0 -656
  10. package/config/api-extractor.json +0 -36
  11. package/config/rig.json +0 -10
  12. package/config/typedoc.json +0 -7
  13. package/docs/README.md +0 -298
  14. package/docs/classes/FsStorageProvider.createDirectory.md +0 -20
  15. package/docs/classes/FsStorageProvider.deleteFile.md +0 -20
  16. package/docs/classes/FsStorageProvider.getChildren.md +0 -20
  17. package/docs/classes/FsStorageProvider.getFile.md +0 -20
  18. package/docs/classes/FsStorageProvider.getItem.md +0 -20
  19. package/docs/classes/FsStorageProvider.md +0 -147
  20. package/docs/classes/FsStorageProvider.saveFile.md +0 -22
  21. package/docs/classes/FsStorageProvider.sync.md +0 -13
  22. package/docs/classes/FsStorageProviderFactory.forNamespace.md +0 -20
  23. package/docs/classes/FsStorageProviderFactory.md +0 -69
  24. package/docs/classes/HttpStorageService.createDirectory.md +0 -20
  25. package/docs/classes/HttpStorageService.deleteFile.md +0 -20
  26. package/docs/classes/HttpStorageService.getChildren.md +0 -20
  27. package/docs/classes/HttpStorageService.getFile.md +0 -20
  28. package/docs/classes/HttpStorageService.getItem.md +0 -20
  29. package/docs/classes/HttpStorageService.md +0 -145
  30. package/docs/classes/HttpStorageService.saveFile.md +0 -20
  31. package/docs/classes/HttpStorageService.sync.md +0 -20
  32. package/docs/functions/createStorageRoutes.md +0 -11
  33. package/docs/functions/normalizeRequestPath.md +0 -11
  34. package/docs/functions/sanitizeNamespace.md +0 -11
  35. package/docs/interfaces/ICreateStorageRoutesOptions.logger.md +0 -9
  36. package/docs/interfaces/ICreateStorageRoutesOptions.md +0 -61
  37. package/docs/interfaces/ICreateStorageRoutesOptions.providers.md +0 -9
  38. package/docs/interfaces/IFsStorageProviderFactoryOptions.md +0 -44
  39. package/docs/interfaces/IFsStorageProviderFactoryOptions.rootPath.md +0 -9
  40. package/docs/interfaces/IHttpStorageProvider.createDirectory.md +0 -20
  41. package/docs/interfaces/IHttpStorageProvider.deleteFile.md +0 -20
  42. package/docs/interfaces/IHttpStorageProvider.getChildren.md +0 -20
  43. package/docs/interfaces/IHttpStorageProvider.getFile.md +0 -20
  44. package/docs/interfaces/IHttpStorageProvider.getItem.md +0 -20
  45. package/docs/interfaces/IHttpStorageProvider.md +0 -115
  46. package/docs/interfaces/IHttpStorageProvider.saveFile.md +0 -22
  47. package/docs/interfaces/IHttpStorageProvider.sync.md +0 -13
  48. package/docs/interfaces/IHttpStorageProviderFactory.forNamespace.md +0 -20
  49. package/docs/interfaces/IHttpStorageProviderFactory.md +0 -36
  50. package/docs/interfaces/IStorageFileResponse.contentType.md +0 -9
  51. package/docs/interfaces/IStorageFileResponse.contents.md +0 -9
  52. package/docs/interfaces/IStorageFileResponse.md +0 -78
  53. package/docs/interfaces/IStorageFileResponse.path.md +0 -9
  54. package/docs/interfaces/IStoragePathRequest.md +0 -61
  55. package/docs/interfaces/IStoragePathRequest.namespace.md +0 -9
  56. package/docs/interfaces/IStoragePathRequest.path.md +0 -9
  57. package/docs/interfaces/IStorageSyncRequest.md +0 -44
  58. package/docs/interfaces/IStorageSyncRequest.namespace.md +0 -9
  59. package/docs/interfaces/IStorageSyncResponse.md +0 -44
  60. package/docs/interfaces/IStorageSyncResponse.synced.md +0 -9
  61. package/docs/interfaces/IStorageTreeChildrenResponse.children.md +0 -9
  62. package/docs/interfaces/IStorageTreeChildrenResponse.md +0 -61
  63. package/docs/interfaces/IStorageTreeChildrenResponse.path.md +0 -9
  64. package/docs/interfaces/IStorageTreeItem.md +0 -78
  65. package/docs/interfaces/IStorageTreeItem.name.md +0 -9
  66. package/docs/interfaces/IStorageTreeItem.path.md +0 -9
  67. package/docs/interfaces/IStorageTreeItem.type.md +0 -9
  68. package/docs/interfaces/IStorageWriteFileRequest.contentType.md +0 -9
  69. package/docs/interfaces/IStorageWriteFileRequest.contents.md +0 -9
  70. package/docs/interfaces/IStorageWriteFileRequest.md +0 -97
  71. package/docs/type-aliases/StorageItemType.md +0 -11
  72. package/docs/type-aliases/StorageNamespace.md +0 -11
  73. package/docs/variables/storageFileResponse.md +0 -9
  74. package/docs/variables/storagePathRequest.md +0 -9
  75. package/docs/variables/storageSyncRequest.md +0 -9
  76. package/docs/variables/storageTreeChildrenResponse.md +0 -9
  77. package/docs/variables/storageTreeItem.md +0 -9
  78. package/docs/variables/storageWriteFileRequest.md +0 -9
  79. package/etc/ts-http-storage.api.md +0 -184
  80. package/lib/test/unit/storage/fsProvider.test.d.ts +0 -2
  81. package/lib/test/unit/storage/fsProvider.test.d.ts.map +0 -1
  82. package/lib/test/unit/storage/fsProvider.test.js +0 -106
  83. package/lib/test/unit/storage/fsProvider.test.js.map +0 -1
  84. package/lib/test/unit/storage/routes.test.d.ts +0 -2
  85. package/lib/test/unit/storage/routes.test.d.ts.map +0 -1
  86. package/lib/test/unit/storage/routes.test.js +0 -124
  87. package/lib/test/unit/storage/routes.test.js.map +0 -1
  88. package/lib/test/unit/storage/service.test.d.ts +0 -2
  89. package/lib/test/unit/storage/service.test.d.ts.map +0 -1
  90. package/lib/test/unit/storage/service.test.js +0 -67
  91. package/lib/test/unit/storage/service.test.js.map +0 -1
  92. package/rush-logs/ts-http-storage.build.cache.log +0 -3
  93. package/rush-logs/ts-http-storage.build.log +0 -9
  94. package/src/index.ts +0 -28
  95. package/src/packlets/storage/converters.ts +0 -100
  96. package/src/packlets/storage/fsProvider.ts +0 -263
  97. package/src/packlets/storage/index.ts +0 -33
  98. package/src/packlets/storage/model.ts +0 -113
  99. package/src/packlets/storage/provider.ts +0 -33
  100. package/src/packlets/storage/routes.ts +0 -215
  101. package/src/packlets/storage/service.ts +0 -114
  102. package/src/test/unit/storage/fsProvider.test.ts +0 -129
  103. package/src/test/unit/storage/routes.test.ts +0 -165
  104. package/src/test/unit/storage/service.test.ts +0 -95
  105. package/temp/build/typescript/ts_l9Fw4VUO.json +0 -1
  106. package/temp/ts-http-storage.api.json +0 -3103
  107. package/temp/ts-http-storage.api.md +0 -184
  108. package/tsconfig.json +0 -7
@@ -1,115 +0,0 @@
1
- [Home](../README.md) > IHttpStorageProvider
2
-
3
- # Interface: IHttpStorageProvider
4
-
5
- Provider contract for storage backends.
6
- All methods are async to support both filesystem and database backends.
7
-
8
- ## Methods
9
-
10
- <table><thead><tr><th>
11
-
12
- Method
13
-
14
- </th><th>
15
-
16
- Modifiers
17
-
18
- </th><th>
19
-
20
- Description
21
-
22
- </th></tr></thead>
23
- <tbody>
24
- <tr><td>
25
-
26
- [getItem(path)](./IHttpStorageProvider.getItem.md)
27
-
28
- </td><td>
29
-
30
-
31
-
32
- </td><td>
33
-
34
-
35
-
36
- </td></tr>
37
- <tr><td>
38
-
39
- [getChildren(path)](./IHttpStorageProvider.getChildren.md)
40
-
41
- </td><td>
42
-
43
-
44
-
45
- </td><td>
46
-
47
-
48
-
49
- </td></tr>
50
- <tr><td>
51
-
52
- [getFile(path)](./IHttpStorageProvider.getFile.md)
53
-
54
- </td><td>
55
-
56
-
57
-
58
- </td><td>
59
-
60
-
61
-
62
- </td></tr>
63
- <tr><td>
64
-
65
- [saveFile(path, contents, contentType)](./IHttpStorageProvider.saveFile.md)
66
-
67
- </td><td>
68
-
69
-
70
-
71
- </td><td>
72
-
73
-
74
-
75
- </td></tr>
76
- <tr><td>
77
-
78
- [deleteFile(path)](./IHttpStorageProvider.deleteFile.md)
79
-
80
- </td><td>
81
-
82
-
83
-
84
- </td><td>
85
-
86
-
87
-
88
- </td></tr>
89
- <tr><td>
90
-
91
- [createDirectory(path)](./IHttpStorageProvider.createDirectory.md)
92
-
93
- </td><td>
94
-
95
-
96
-
97
- </td><td>
98
-
99
-
100
-
101
- </td></tr>
102
- <tr><td>
103
-
104
- [sync()](./IHttpStorageProvider.sync.md)
105
-
106
- </td><td>
107
-
108
-
109
-
110
- </td><td>
111
-
112
-
113
-
114
- </td></tr>
115
- </tbody></table>
@@ -1,22 +0,0 @@
1
- [Home](../README.md) > [IHttpStorageProvider](./IHttpStorageProvider.md) > saveFile
2
-
3
- ## IHttpStorageProvider.saveFile() method
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- saveFile(path: 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>path</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&lt;Result&lt;[IStorageFileResponse](IStorageFileResponse.md)&gt;&gt;
@@ -1,13 +0,0 @@
1
- [Home](../README.md) > [IHttpStorageProvider](./IHttpStorageProvider.md) > sync
2
-
3
- ## IHttpStorageProvider.sync() method
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- sync(): Promise<Result<IStorageSyncResponse>>;
9
- ```
10
-
11
- **Returns:**
12
-
13
- Promise&lt;Result&lt;[IStorageSyncResponse](IStorageSyncResponse.md)&gt;&gt;
@@ -1,20 +0,0 @@
1
- [Home](../README.md) > [IHttpStorageProviderFactory](./IHttpStorageProviderFactory.md) > forNamespace
2
-
3
- ## IHttpStorageProviderFactory.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&lt;[IHttpStorageProvider](IHttpStorageProvider.md)&gt;
@@ -1,36 +0,0 @@
1
- [Home](../README.md) > IHttpStorageProviderFactory
2
-
3
- # Interface: IHttpStorageProviderFactory
4
-
5
- Factory for creating namespace-scoped storage providers.
6
-
7
- ## Methods
8
-
9
- <table><thead><tr><th>
10
-
11
- Method
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
- [forNamespace(namespace)](./IHttpStorageProviderFactory.forNamespace.md)
26
-
27
- </td><td>
28
-
29
-
30
-
31
- </td><td>
32
-
33
-
34
-
35
- </td></tr>
36
- </tbody></table>
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageFileResponse](./IStorageFileResponse.md) > contentType
2
-
3
- ## IStorageFileResponse.contentType property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly contentType: string;
9
- ```
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageFileResponse](./IStorageFileResponse.md) > contents
2
-
3
- ## IStorageFileResponse.contents property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly contents: string;
9
- ```
@@ -1,78 +0,0 @@
1
- [Home](../README.md) > IStorageFileResponse
2
-
3
- # Interface: IStorageFileResponse
4
-
5
- Response for reading a file.
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
- [path](./IStorageFileResponse.path.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
- <tr><td>
45
-
46
- [contents](./IStorageFileResponse.contents.md)
47
-
48
- </td><td>
49
-
50
- `readonly`
51
-
52
- </td><td>
53
-
54
- string
55
-
56
- </td><td>
57
-
58
-
59
-
60
- </td></tr>
61
- <tr><td>
62
-
63
- [contentType](./IStorageFileResponse.contentType.md)
64
-
65
- </td><td>
66
-
67
- `readonly`
68
-
69
- </td><td>
70
-
71
- string
72
-
73
- </td><td>
74
-
75
-
76
-
77
- </td></tr>
78
- </tbody></table>
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageFileResponse](./IStorageFileResponse.md) > path
2
-
3
- ## IStorageFileResponse.path property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly path: string;
9
- ```
@@ -1,61 +0,0 @@
1
- [Home](../README.md) > IStoragePathRequest
2
-
3
- # Interface: IStoragePathRequest
4
-
5
- Request for path-based operations.
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
- [path](./IStoragePathRequest.path.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
- <tr><td>
45
-
46
- [namespace](./IStoragePathRequest.namespace.md)
47
-
48
- </td><td>
49
-
50
- `readonly`
51
-
52
- </td><td>
53
-
54
- string
55
-
56
- </td><td>
57
-
58
-
59
-
60
- </td></tr>
61
- </tbody></table>
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStoragePathRequest](./IStoragePathRequest.md) > namespace
2
-
3
- ## IStoragePathRequest.namespace property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly namespace: string;
9
- ```
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStoragePathRequest](./IStoragePathRequest.md) > path
2
-
3
- ## IStoragePathRequest.path property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly path: string;
9
- ```
@@ -1,44 +0,0 @@
1
- [Home](../README.md) > IStorageSyncRequest
2
-
3
- # Interface: IStorageSyncRequest
4
-
5
- Request for sync operation.
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
- [namespace](./IStorageSyncRequest.namespace.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>
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageSyncRequest](./IStorageSyncRequest.md) > namespace
2
-
3
- ## IStorageSyncRequest.namespace property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly namespace: string;
9
- ```
@@ -1,44 +0,0 @@
1
- [Home](../README.md) > IStorageSyncResponse
2
-
3
- # Interface: IStorageSyncResponse
4
-
5
- Sync response metadata.
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
- [synced](./IStorageSyncResponse.synced.md)
30
-
31
- </td><td>
32
-
33
- `readonly`
34
-
35
- </td><td>
36
-
37
- number
38
-
39
- </td><td>
40
-
41
-
42
-
43
- </td></tr>
44
- </tbody></table>
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageSyncResponse](./IStorageSyncResponse.md) > synced
2
-
3
- ## IStorageSyncResponse.synced property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly synced: number;
9
- ```
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageTreeChildrenResponse](./IStorageTreeChildrenResponse.md) > children
2
-
3
- ## IStorageTreeChildrenResponse.children property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly children: readonly IStorageTreeItem[];
9
- ```
@@ -1,61 +0,0 @@
1
- [Home](../README.md) > IStorageTreeChildrenResponse
2
-
3
- # Interface: IStorageTreeChildrenResponse
4
-
5
- Response for listing children.
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
- [path](./IStorageTreeChildrenResponse.path.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
- <tr><td>
45
-
46
- [children](./IStorageTreeChildrenResponse.children.md)
47
-
48
- </td><td>
49
-
50
- `readonly`
51
-
52
- </td><td>
53
-
54
- readonly [IStorageTreeItem](IStorageTreeItem.md)[]
55
-
56
- </td><td>
57
-
58
-
59
-
60
- </td></tr>
61
- </tbody></table>
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageTreeChildrenResponse](./IStorageTreeChildrenResponse.md) > path
2
-
3
- ## IStorageTreeChildrenResponse.path property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly path: string;
9
- ```
@@ -1,78 +0,0 @@
1
- [Home](../README.md) > IStorageTreeItem
2
-
3
- # Interface: IStorageTreeItem
4
-
5
- Storage tree item metadata.
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
- [path](./IStorageTreeItem.path.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
- <tr><td>
45
-
46
- [name](./IStorageTreeItem.name.md)
47
-
48
- </td><td>
49
-
50
- `readonly`
51
-
52
- </td><td>
53
-
54
- string
55
-
56
- </td><td>
57
-
58
-
59
-
60
- </td></tr>
61
- <tr><td>
62
-
63
- [type](./IStorageTreeItem.type.md)
64
-
65
- </td><td>
66
-
67
- `readonly`
68
-
69
- </td><td>
70
-
71
- [StorageItemType](../type-aliases/StorageItemType.md)
72
-
73
- </td><td>
74
-
75
-
76
-
77
- </td></tr>
78
- </tbody></table>
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageTreeItem](./IStorageTreeItem.md) > name
2
-
3
- ## IStorageTreeItem.name property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly name: string;
9
- ```
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageTreeItem](./IStorageTreeItem.md) > path
2
-
3
- ## IStorageTreeItem.path property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly path: string;
9
- ```
@@ -1,9 +0,0 @@
1
- [Home](../README.md) > [IStorageTreeItem](./IStorageTreeItem.md) > type
2
-
3
- ## IStorageTreeItem.type property
4
-
5
- **Signature:**
6
-
7
- ```typescript
8
- readonly type: StorageItemType;
9
- ```