@nu-art/live-docs-shared 0.500.0 → 0.500.6

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 (3) hide show
  1. package/package.json +5 -4
  2. package/types.d.ts +13 -1
  3. package/types.js +17 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/live-docs-shared",
3
- "version": "0.500.0",
3
+ "version": "0.500.6",
4
4
  "description": "Live docs Shared",
5
5
  "keywords": [
6
6
  "TacB0sS",
@@ -38,8 +38,9 @@
38
38
  }
39
39
  ],
40
40
  "dependencies": {
41
- "@nu-art/ts-common": "0.500.0",
42
- "@nu-art/firebase-shared": "0.500.0",
41
+ "@nu-art/ts-common": "0.500.6",
42
+ "@nu-art/db-api-shared": "0.500.6",
43
+ "@nu-art/firebase-shared": "0.500.6",
43
44
  "firebase": "^11.9.0",
44
45
  "firebase-admin": "13.4.0",
45
46
  "firebase-functions": "6.3.2",
@@ -48,7 +49,7 @@
48
49
  "react-router-dom": "^6.9.0",
49
50
  "moment": "^2.29.4",
50
51
  "express": "^4.18.2",
51
- "@nu-art/api-types": "{{THUNDERSTORM_VERSION}}"
52
+ "@nu-art/api-types": "0.500.6"
52
53
  },
53
54
  "devDependencies": {
54
55
  "@types/react": "^18.0.0",
package/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Auditable } from '@nu-art/ts-common';
2
+ import { Database, DB_Object, DB_Prototype, DB_ProtoSeed, VersionsDeclaration } from '@nu-art/db-api-shared';
2
3
  export type LiveDocReqParams = {
3
4
  key: string;
4
5
  };
@@ -8,11 +9,22 @@ export type LiveDocHistoryReqParams = LiveDocReqParams & {
8
9
  type Document = {
9
10
  document: string;
10
11
  };
11
- export type DB_DocumentHistory = Auditable & {
12
+ export declare const LiveDocs_DbKey = "live-docs";
13
+ type DBKey = typeof LiveDocs_DbKey;
14
+ type VersionTypes_LiveDocs = {
15
+ '1.0.0': DB_DocumentHistory;
16
+ };
17
+ type Versions = VersionsDeclaration<['1.0.0'], VersionTypes_LiveDocs>;
18
+ type Dependencies = {};
19
+ type UniqueKeys = 'key';
20
+ type GeneratedProps = never;
21
+ export type DB_DocumentHistory = DB_Object<DBKey> & Auditable & {
12
22
  docs: DB_Document[];
13
23
  key: string;
14
24
  index: number;
15
25
  };
26
+ export type Proto_DocumentHistory = DB_Prototype<DB_ProtoSeed<DB_DocumentHistory, DBKey, GeneratedProps, Versions, UniqueKeys, Dependencies>>;
27
+ export declare const DBDef_DocumentHistory: Database<Proto_DocumentHistory>;
16
28
  export type DB_Document = Auditable & Document & {};
17
29
  export type Request_UpdateDocument = Document & {
18
30
  key: string;
package/types.js CHANGED
@@ -16,4 +16,20 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- export {};
19
+ import { tsValidateMustExist } from '@nu-art/ts-common';
20
+ export const LiveDocs_DbKey = 'live-docs';
21
+ export const DBDef_DocumentHistory = {
22
+ dbKey: LiveDocs_DbKey,
23
+ entityName: 'DocumentHistory',
24
+ versions: ['1.0.0'],
25
+ modifiablePropsValidator: tsValidateMustExist,
26
+ generatedPropsValidator: {},
27
+ uniqueKeys: ['key'],
28
+ frontend: {
29
+ group: 'live-docs',
30
+ name: 'live-docs',
31
+ },
32
+ backend: {
33
+ name: 'live-docs',
34
+ },
35
+ };