@medyll/idae-idbql 0.124.0 → 0.125.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.
Files changed (2) hide show
  1. package/README.md +19 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -30,12 +30,29 @@ import { createIdbqDb } from '@medyll/idae-idbql';
30
30
  const exampleModel = {
31
31
  messages: {
32
32
  keyPath: "++id, chatId, created_at",
33
- ts: {} as ChatMessage,
33
+ ts: {} as ChatMessage, // this will provide autocompletion
34
34
  },
35
35
  chat: {
36
36
  keyPath: "&chatId, created_at, dateLastMessage",
37
37
  ts: {} as Chat,
38
- template: {},
38
+ template: {
39
+ index: string;
40
+ presentation: CombineElements<keyof CollectionModel<T>['ts']>;
41
+ fields: {
42
+ [K in keyof T]: TplFieldRules;
43
+ field1: 'array-of-string';
44
+ field2: 'string (readonly private)';
45
+ field3: 'text-short'
46
+ field4: 'fks-messages.is'
47
+ };
48
+ fks: {
49
+ [K in TplCollectionName]?: {
50
+ code: K;
51
+ multiple: boolean;
52
+ rules: CombinedArgs;
53
+ };
54
+ };
55
+ };
39
56
  },
40
57
  };
41
58
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@medyll/idae-idbql",
3
3
  "scope": "@medyll",
4
- "version": "0.124.0",
4
+ "version": "0.125.0",
5
5
  "description": "A powerful and flexible IndexedDB query library for TypeScript and JavaScript applications, offering a MongoDB-like query interface, strong TypeScript support, reactive state management, and easy integration with front-end frameworks like Svelte.",
6
6
  "scripts": {
7
7
  "dev": "vite dev",
@@ -44,6 +44,6 @@
44
44
  "types": "./dist/index.d.ts",
45
45
  "type": "module",
46
46
  "dependencies": {
47
- "@medyll/idae-query": "^0.125.0"
47
+ "@medyll/idae-query": "^0.126.0"
48
48
  }
49
49
  }