@nu-art/live-docs-shared 0.401.8 → 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 CHANGED
@@ -1,10 +1,8 @@
1
- import { ApiDefResolver, BodyApi, QueryApi } from '@nu-art/thunderstorm-shared';
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 ApiStruct_LiveDoc = {
4
- v1: {
5
- get: QueryApi<DB_Document, LiveDocReqParams>;
6
- upsert: BodyApi<DB_Document, Request_UpdateDocument>;
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<ApiStruct_LiveDoc>;
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/thunderstorm-shared';
18
+ import { HttpMethod } from '@nu-art/api-types';
19
19
  export const ApiDef_LiveDoc = {
20
- v1: {
21
- get: { method: HttpMethod.GET, path: 'v1/live-docs/unique' },
22
- upsert: { method: HttpMethod.POST, path: 'v1/live-docs/upsert' },
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 "./types.js";
2
- export * from "./api.js";
1
+ export * from './types.js';
2
+ export * from './api.js';
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./types.js";
2
- export * from "./api.js";
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.401.8",
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.401.8",
42
- "@nu-art/firebase-shared": "0.401.8",
43
- "@nu-art/thunderstorm-shared": "0.401.8",
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,7 +47,8 @@
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",
package/types.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { Auditable } from "@nu-art/ts-common";
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: "undo" | "redo";
6
+ change: 'undo' | 'redo';
7
7
  };
8
8
  type Document = {
9
9
  document: string;