@nu-art/live-docs-shared 0.401.9 → 0.500.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.ts +6 -8
- package/api.js +4 -6
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +7 -6
- package/types.d.ts +2 -2
package/api.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ApiDefResolver, BodyApi, QueryApi } from '@nu-art/
|
|
1
|
+
import { ApiDefResolver, BodyApi, QueryApi } from '@nu-art/api-types';
|
|
2
2
|
import { DB_Document, LiveDocHistoryReqParams, LiveDocReqParams, Request_UpdateDocument } from './types.js';
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
history: QueryApi<DB_Document, LiveDocHistoryReqParams>;
|
|
8
|
-
};
|
|
3
|
+
export type API_LiveDoc = {
|
|
4
|
+
get: QueryApi<DB_Document, LiveDocReqParams>;
|
|
5
|
+
upsert: BodyApi<DB_Document, Request_UpdateDocument>;
|
|
6
|
+
history: QueryApi<DB_Document, LiveDocHistoryReqParams>;
|
|
9
7
|
};
|
|
10
|
-
export declare const ApiDef_LiveDoc: ApiDefResolver<
|
|
8
|
+
export declare const ApiDef_LiveDoc: ApiDefResolver<API_LiveDoc>;
|
package/api.js
CHANGED
|
@@ -15,11 +15,9 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { HttpMethod } from '@nu-art/
|
|
18
|
+
import { HttpMethod } from '@nu-art/api-types';
|
|
19
19
|
export const ApiDef_LiveDoc = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
history: { method: HttpMethod.GET, path: 'v1/live-docs/change-history' }
|
|
24
|
-
}
|
|
20
|
+
get: { method: HttpMethod.GET, path: 'v1/live-docs/unique' },
|
|
21
|
+
upsert: { method: HttpMethod.POST, path: 'v1/live-docs/upsert' },
|
|
22
|
+
history: { method: HttpMethod.GET, path: 'v1/live-docs/change-history' }
|
|
25
23
|
};
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './api.js';
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './api.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/live-docs-shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.500.0",
|
|
4
4
|
"description": "Live docs Shared",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TacB0sS",
|
|
@@ -38,9 +38,8 @@
|
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@nu-art/ts-common": "0.
|
|
42
|
-
"@nu-art/firebase-shared": "0.
|
|
43
|
-
"@nu-art/thunderstorm-shared": "0.401.9",
|
|
41
|
+
"@nu-art/ts-common": "0.500.0",
|
|
42
|
+
"@nu-art/firebase-shared": "0.500.0",
|
|
44
43
|
"firebase": "^11.9.0",
|
|
45
44
|
"firebase-admin": "13.4.0",
|
|
46
45
|
"firebase-functions": "6.3.2",
|
|
@@ -48,12 +47,14 @@
|
|
|
48
47
|
"react-dom": "^18.0.0",
|
|
49
48
|
"react-router-dom": "^6.9.0",
|
|
50
49
|
"moment": "^2.29.4",
|
|
51
|
-
"express": "^4.18.2"
|
|
50
|
+
"express": "^4.18.2",
|
|
51
|
+
"@nu-art/api-types": "{{THUNDERSTORM_VERSION}}"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^18.0.0",
|
|
55
55
|
"@types/express": "^4.17.17",
|
|
56
|
-
"@types/history": "^4.7.2"
|
|
56
|
+
"@types/history": "^4.7.2",
|
|
57
|
+
"@types/request": "^2.48.1"
|
|
57
58
|
},
|
|
58
59
|
"unitConfig": {
|
|
59
60
|
"type": "typescript-lib"
|
package/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Auditable } from
|
|
1
|
+
import { Auditable } from '@nu-art/ts-common';
|
|
2
2
|
export type LiveDocReqParams = {
|
|
3
3
|
key: string;
|
|
4
4
|
};
|
|
5
5
|
export type LiveDocHistoryReqParams = LiveDocReqParams & {
|
|
6
|
-
change:
|
|
6
|
+
change: 'undo' | 'redo';
|
|
7
7
|
};
|
|
8
8
|
type Document = {
|
|
9
9
|
document: string;
|