@hf-chimera/store 0.0.11 → 0.0.12
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/CHANGELOG.md +6 -0
- package/README.md +121 -150
- package/dist/adapters/react.d.cts +2 -2
- package/dist/adapters/react.d.cts.map +1 -1
- package/dist/adapters/react.d.ts +2 -2
- package/dist/adapters/react.d.ts.map +1 -1
- package/dist/defaults.d.cts +1 -1
- package/dist/defaults.d.cts.map +1 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/defaults.d.ts.map +1 -1
- package/dist/{index-DMo7CTOR.d.ts → index-B6sY7hiW.d.ts} +2 -2
- package/dist/index-B6sY7hiW.d.ts.map +1 -0
- package/dist/{index-C17-Sops.d.ts → index-CTTQ1Hr3.d.ts} +24 -24
- package/dist/index-CTTQ1Hr3.d.ts.map +1 -0
- package/dist/{index-DD4572ZO.d.cts → index-CiER0sxG.d.cts} +2 -2
- package/dist/index-CiER0sxG.d.cts.map +1 -0
- package/dist/{index-CEMc0KLB.d.cts → index-CkaYmEhA.d.cts} +24 -24
- package/dist/index-CkaYmEhA.d.cts.map +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/qb.d.cts +2 -2
- package/dist/qb.d.ts +2 -2
- package/package.json +11 -12
- package/dist/index-C17-Sops.d.ts.map +0 -1
- package/dist/index-CEMc0KLB.d.cts.map +0 -1
- package/dist/index-DD4572ZO.d.cts.map +0 -1
- package/dist/index-DMo7CTOR.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -65,67 +65,90 @@ const store = new ChimeraStore<EntityMap>({
|
|
|
65
65
|
query: {
|
|
66
66
|
defaults: {
|
|
67
67
|
trustQuery: true,
|
|
68
|
-
updateDebounceTimeout: 0,
|
|
69
68
|
// idGetter can be a string (object key) or a function
|
|
70
69
|
// String: Uses the specified property as the ID (e.g., 'id', 'uuid', 'key')
|
|
71
70
|
// Function: Custom ID extraction logic (entityName, value) => string | number
|
|
72
71
|
idGetter: 'id',
|
|
73
|
-
collectionFetcher: async (entityName, params, requestParams) => {
|
|
74
|
-
// Implement your data fetching logic
|
|
75
|
-
const response = await fetch(`/api/${entityName}`, {
|
|
76
|
-
signal: requestParams.signal,
|
|
77
|
-
// Add your request logic here
|
|
78
|
-
});
|
|
79
|
-
return {data: await response.json()};
|
|
80
|
-
},
|
|
81
|
-
itemFetcher: async (entityName, params, requestParams) => {
|
|
82
|
-
const response = await fetch(`/api/${entityName}/${params.id}`, {
|
|
83
|
-
signal: requestParams.signal,
|
|
84
|
-
});
|
|
85
|
-
return {data: await response.json()};
|
|
86
|
-
},
|
|
87
|
-
itemUpdater: async (entityName, item, requestParams) => {
|
|
88
|
-
const response = await fetch(`/api/${entityName}/${item.id}`, {
|
|
89
|
-
method: 'PUT',
|
|
90
|
-
body: JSON.stringify(item),
|
|
91
|
-
signal: requestParams.signal,
|
|
92
|
-
});
|
|
93
|
-
return {data: await response.json()};
|
|
94
|
-
},
|
|
95
|
-
itemDeleter: async (entityName, id, requestParams) => {
|
|
96
|
-
await fetch(`/api/${entityName}/${id}`, {
|
|
97
|
-
method: 'DELETE',
|
|
98
|
-
signal: requestParams.signal,
|
|
99
|
-
});
|
|
100
|
-
return {result: {id, success: true}};
|
|
101
|
-
},
|
|
102
|
-
itemCreator: async (entityName, item, requestParams) => {
|
|
103
|
-
const response = await fetch(`/api/${entityName}`, {
|
|
104
|
-
method: 'POST',
|
|
105
|
-
body: JSON.stringify(item),
|
|
106
|
-
signal: requestParams.signal,
|
|
107
|
-
});
|
|
108
|
-
return {data: await response.json()};
|
|
109
|
-
},
|
|
110
72
|
},
|
|
111
73
|
entities: {
|
|
112
74
|
// Define configuration for each entity in your EntityMap
|
|
113
|
-
//
|
|
114
|
-
// You can override defaults or add entity-specific configuration here
|
|
75
|
+
// Each entity must have its own fetchers, updaters, deleters, and creators
|
|
115
76
|
users: {
|
|
116
|
-
|
|
117
|
-
|
|
77
|
+
collectionFetcher: async (params, requestParams) => {
|
|
78
|
+
const response = await fetch(`/api/users`, {
|
|
79
|
+
signal: requestParams.signal,
|
|
80
|
+
});
|
|
81
|
+
return { data: await response.json() };
|
|
82
|
+
},
|
|
83
|
+
itemFetcher: async (params, requestParams) => {
|
|
84
|
+
const response = await fetch(`/api/users/${params.id}`, {
|
|
85
|
+
signal: requestParams.signal,
|
|
86
|
+
});
|
|
87
|
+
return { data: await response.json() };
|
|
88
|
+
},
|
|
89
|
+
itemUpdater: async (item, requestParams) => {
|
|
90
|
+
const response = await fetch(`/api/users/${item.id}`, {
|
|
91
|
+
method: 'PUT',
|
|
92
|
+
body: JSON.stringify(item),
|
|
93
|
+
signal: requestParams.signal,
|
|
94
|
+
});
|
|
95
|
+
return { data: await response.json() };
|
|
96
|
+
},
|
|
97
|
+
itemDeleter: async (id, requestParams) => {
|
|
98
|
+
await fetch(`/api/users/${id}`, {
|
|
99
|
+
method: 'DELETE',
|
|
100
|
+
signal: requestParams.signal,
|
|
101
|
+
});
|
|
102
|
+
return { result: { id, success: true } };
|
|
103
|
+
},
|
|
104
|
+
itemCreator: async (item, requestParams) => {
|
|
105
|
+
const response = await fetch(`/api/users`, {
|
|
106
|
+
method: 'POST',
|
|
107
|
+
body: JSON.stringify(item),
|
|
108
|
+
signal: requestParams.signal,
|
|
109
|
+
});
|
|
110
|
+
return { data: await response.json() };
|
|
111
|
+
},
|
|
118
112
|
},
|
|
119
113
|
posts: {
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
collectionFetcher: async (params, requestParams) => {
|
|
115
|
+
const response = await fetch(`/api/posts`, {
|
|
116
|
+
signal: requestParams.signal,
|
|
117
|
+
});
|
|
118
|
+
return { data: await response.json() };
|
|
119
|
+
},
|
|
120
|
+
itemFetcher: async (params, requestParams) => {
|
|
121
|
+
const response = await fetch(`/api/posts/${params.id}`, {
|
|
122
|
+
signal: requestParams.signal,
|
|
123
|
+
});
|
|
124
|
+
return { data: await response.json() };
|
|
125
|
+
},
|
|
126
|
+
itemUpdater: async (item, requestParams) => {
|
|
127
|
+
const response = await fetch(`/api/posts/${item.id}`, {
|
|
128
|
+
method: 'PUT',
|
|
129
|
+
body: JSON.stringify(item),
|
|
130
|
+
signal: requestParams.signal,
|
|
131
|
+
});
|
|
132
|
+
return { data: await response.json() };
|
|
133
|
+
},
|
|
134
|
+
itemDeleter: async (id, requestParams) => {
|
|
135
|
+
await fetch(`/api/posts/${id}`, {
|
|
136
|
+
method: 'DELETE',
|
|
137
|
+
signal: requestParams.signal,
|
|
138
|
+
});
|
|
139
|
+
return { result: { id, success: true } };
|
|
140
|
+
},
|
|
141
|
+
itemCreator: async (item, requestParams) => {
|
|
142
|
+
const response = await fetch(`/api/posts`, {
|
|
143
|
+
method: 'POST',
|
|
144
|
+
body: JSON.stringify(item),
|
|
145
|
+
signal: requestParams.signal,
|
|
146
|
+
});
|
|
147
|
+
return { data: await response.json() };
|
|
148
|
+
},
|
|
122
149
|
},
|
|
123
150
|
},
|
|
124
151
|
},
|
|
125
|
-
debug: {
|
|
126
|
-
devMode: true,
|
|
127
|
-
logs: true,
|
|
128
|
-
},
|
|
129
152
|
});
|
|
130
153
|
```
|
|
131
154
|
|
|
@@ -215,7 +238,7 @@ Chimera Store provides a powerful filtering system with support for:
|
|
|
215
238
|
|
|
216
239
|
- **Operators**: `eq`, `neq`, `gt`, `gte`, `lt`, `lte`, `contains`,
|
|
217
240
|
`startsWith`, `endsWith`, `in`, `notIn`
|
|
218
|
-
- **Conjunctions**: `and`, `or`
|
|
241
|
+
- **Conjunctions**: `and`, `or`, `not`
|
|
219
242
|
- **Custom Operators**: Extensible operator system for custom logic
|
|
220
243
|
- **Utility Functions**: Use `chimeraCreateOperator` and
|
|
221
244
|
`chimeraCreateConjunction` to build filters
|
|
@@ -240,28 +263,16 @@ operations.
|
|
|
240
263
|
#### Constructor
|
|
241
264
|
|
|
242
265
|
```typescript
|
|
243
|
-
new ChimeraStore<EntityMap
|
|
244
|
-
:
|
|
245
|
-
Config
|
|
246
|
-
)
|
|
266
|
+
const store = new ChimeraStore<EntityMap>(config)
|
|
247
267
|
```
|
|
248
268
|
|
|
249
269
|
#### Methods
|
|
250
270
|
|
|
251
271
|
- `from<EntityName>(entityName: EntityName)`: Get repository for specific entity
|
|
252
|
-
- `updateOne<EntityName>(entityName: EntityName, item: EntityMap[EntityName])`:
|
|
253
|
-
|
|
254
|
-
-
|
|
255
|
-
|
|
256
|
-
`updateMany<EntityName>(entityName: EntityName, items: Iterable<EntityMap[EntityName]>)`:
|
|
257
|
-
Update multiple items
|
|
258
|
-
|
|
259
|
-
- `deleteOne<EntityName>(entityName: EntityName, id: ChimeraEntityId)`: Delete
|
|
260
|
-
single item
|
|
261
|
-
-
|
|
262
|
-
|
|
263
|
-
`deleteMany<EntityName>(entityName: EntityName, ids: Iterable<ChimeraEntityId>)`:
|
|
264
|
-
Delete multiple items
|
|
272
|
+
- `updateOne<EntityName>(entityName: EntityName, item: EntityMap[EntityName])`: Update single item
|
|
273
|
+
- `updateMany<EntityName>(entityName: EntityName, items: Iterable<EntityMap[EntityName]>)`: Update multiple items
|
|
274
|
+
- `deleteOne<EntityName>(entityName: EntityName, id: ChimeraEntityId)`: Delete single item
|
|
275
|
+
- `deleteMany<EntityName>(entityName: EntityName, ids: Iterable<ChimeraEntityId>)`: Delete multiple items
|
|
265
276
|
|
|
266
277
|
### ChimeraEntityRepository
|
|
267
278
|
|
|
@@ -271,8 +282,7 @@ Entity-specific repository with query capabilities.
|
|
|
271
282
|
|
|
272
283
|
- `createItem(item: DeepPartial<Item>, meta?: any)`: Create new item
|
|
273
284
|
- `getItem(id: ChimeraEntityId, meta?: any)`: Get single item
|
|
274
|
-
- `getCollection(params: ChimeraCollectionParams)`: Get filtered/sorted
|
|
275
|
-
collection
|
|
285
|
+
- `getCollection(params: ChimeraCollectionParams)`: Get filtered/sorted collection
|
|
276
286
|
|
|
277
287
|
### ChimeraItemQuery
|
|
278
288
|
|
|
@@ -290,8 +300,7 @@ Represents a single item query with full CRUD operations.
|
|
|
290
300
|
|
|
291
301
|
- `refetch(force?: boolean)`: Refetch data
|
|
292
302
|
- `update(item: Item, force?: boolean)`: Update item
|
|
293
|
-
- `mutate(mutator: (draft: Item) => Item, force?: boolean)`: Update using
|
|
294
|
-
mutator function
|
|
303
|
+
- `mutate(mutator: (draft: Item) => Item, force?: boolean)`: Update using mutator function
|
|
295
304
|
- `commit(force?: boolean)`: Commit mutable changes
|
|
296
305
|
- `delete(force?: boolean)`: Delete item
|
|
297
306
|
|
|
@@ -367,7 +376,7 @@ const customFilterConfig = {
|
|
|
367
376
|
},
|
|
368
377
|
};
|
|
369
378
|
|
|
370
|
-
const store = new ChimeraStore({
|
|
379
|
+
const store = new ChimeraStore<EntityMap, typeof customFilterConfig.operators>({
|
|
371
380
|
filter: customFilterConfig,
|
|
372
381
|
// ... other config
|
|
373
382
|
});
|
|
@@ -442,7 +451,7 @@ const customOrderConfig = {
|
|
|
442
451
|
primitiveComparator: (a: unknown, b: unknown, nulls: ChimeraOrderNulls) => {
|
|
443
452
|
// Custom comparison logic
|
|
444
453
|
if (typeof a === 'string' && typeof b === 'string') {
|
|
445
|
-
return a.localeCompare(b, undefined, {numeric: true});
|
|
454
|
+
return a.localeCompare(b, undefined, { numeric: true });
|
|
446
455
|
}
|
|
447
456
|
return chimeraDefaultOrderConfig.primitiveComparator(a, b, nulls);
|
|
448
457
|
},
|
|
@@ -494,100 +503,63 @@ try {
|
|
|
494
503
|
### Query Configuration
|
|
495
504
|
|
|
496
505
|
```typescript
|
|
497
|
-
{
|
|
506
|
+
type ConfigExample = {
|
|
498
507
|
query: {
|
|
499
508
|
defaults: {
|
|
500
|
-
trustQuery: boolean
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
:
|
|
518
|
-
Function, // Default item deleter
|
|
519
|
-
itemCreator
|
|
520
|
-
:
|
|
521
|
-
Function, // Default item creator
|
|
509
|
+
trustQuery: boolean; // Trust external data providers
|
|
510
|
+
idGetter: ((entityName: string, value: unknown) => string | number) | string; // Default ID getter
|
|
511
|
+
collectionFetcher?: (params: any, request: {
|
|
512
|
+
signal?: AbortSignal
|
|
513
|
+
}) => Promise<{ data: any[] }>;
|
|
514
|
+
itemFetcher?: (params: any, request: {
|
|
515
|
+
signal?: AbortSignal
|
|
516
|
+
}) => Promise<{ data: any }>;
|
|
517
|
+
itemUpdater?: (item: any, request: { signal?: AbortSignal }) => Promise<{
|
|
518
|
+
data: any
|
|
519
|
+
}>;
|
|
520
|
+
itemDeleter?: (id: string | number, request: {
|
|
521
|
+
signal?: AbortSignal
|
|
522
|
+
}) => Promise<{ result?: any }>;
|
|
523
|
+
itemCreator?: (item: any, request: { signal?: AbortSignal }) => Promise<{
|
|
524
|
+
data: any
|
|
525
|
+
}>;
|
|
522
526
|
// ... batched operations
|
|
523
|
-
}
|
|
524
|
-
,
|
|
527
|
+
};
|
|
525
528
|
entities: {
|
|
526
|
-
[entityName]
|
|
527
|
-
:
|
|
528
|
-
{
|
|
529
|
+
[entityName: string]: {
|
|
529
530
|
// Entity-specific overrides
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
};
|
|
534
535
|
```
|
|
535
536
|
|
|
536
537
|
### Filter Configuration
|
|
537
538
|
|
|
538
539
|
```typescript
|
|
539
|
-
{
|
|
540
|
+
type FilterConfigExample = {
|
|
540
541
|
filter: {
|
|
541
|
-
conjunctions: {
|
|
542
|
-
and: Function,
|
|
543
|
-
or
|
|
544
|
-
:
|
|
545
|
-
Function,
|
|
546
|
-
}
|
|
547
|
-
,
|
|
548
542
|
operators: {
|
|
549
|
-
eq:
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
Function,
|
|
553
|
-
gt
|
|
554
|
-
:
|
|
555
|
-
Function,
|
|
543
|
+
eq: <T>(a: T, b: T) => boolean;
|
|
544
|
+
neq: <T>(a: T, b: T) => boolean;
|
|
545
|
+
gt?: (a: number, b: number) => boolean;
|
|
556
546
|
// ... custom operators
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
}
|
|
547
|
+
};
|
|
548
|
+
getFilterKey?: (input: unknown) => string; // Cache key generator for filters
|
|
549
|
+
getOperatorKey?: (input: unknown) => string; // Cache key generator for operators
|
|
550
|
+
};
|
|
551
|
+
};
|
|
562
552
|
```
|
|
563
553
|
|
|
564
554
|
### Order Configuration
|
|
565
555
|
|
|
566
556
|
```typescript
|
|
567
|
-
{
|
|
557
|
+
type OrderConfigExample = {
|
|
568
558
|
order: {
|
|
569
|
-
primitiveComparator:
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
```
|
|
576
|
-
|
|
577
|
-
### Debug Configuration
|
|
578
|
-
|
|
579
|
-
```typescript
|
|
580
|
-
{
|
|
581
|
-
debug: {
|
|
582
|
-
name: string, // Debug name
|
|
583
|
-
devMode
|
|
584
|
-
:
|
|
585
|
-
boolean, // Development mode
|
|
586
|
-
logs
|
|
587
|
-
:
|
|
588
|
-
boolean, // Enable logging
|
|
589
|
-
}
|
|
590
|
-
}
|
|
559
|
+
primitiveComparator: (a: unknown, b: unknown, nulls: ChimeraOrderNulls) => number; // Custom comparator
|
|
560
|
+
getKey: (input: unknown) => string; // Cache key generator
|
|
561
|
+
};
|
|
562
|
+
};
|
|
591
563
|
```
|
|
592
564
|
|
|
593
565
|
## Performance Considerations
|
|
@@ -607,7 +579,6 @@ try {
|
|
|
607
579
|
### Update Optimization
|
|
608
580
|
|
|
609
581
|
- Batch operations for multiple updates
|
|
610
|
-
- Debounced updates to reduce API calls
|
|
611
582
|
- Optimistic updates for better UX
|
|
612
583
|
|
|
613
584
|
## Browser Support
|
|
@@ -626,11 +597,11 @@ try {
|
|
|
626
597
|
|
|
627
598
|
## License
|
|
628
599
|
|
|
629
|
-
MIT License
|
|
600
|
+
MIT License — see [LICENSE](LICENSE) file for details.
|
|
630
601
|
|
|
631
602
|
## Support
|
|
632
603
|
|
|
633
604
|
- **Issues**: [GitHub Issues](https://github.com/hf-chimera/store/issues)
|
|
634
605
|
- **Documentation**: [GitHub Wiki](https://github.com/hf-chimera/store/wiki)
|
|
635
606
|
- **Discussions
|
|
636
|
-
**: [GitHub Discussions](https://github.com/hf-chimera/store/discussions)
|
|
607
|
+
**: [GitHub Discussions](https://github.com/hf-chimera/store/discussions)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ChimeraItemQuery, F as ChimeraCollectionQuery, Ut as ChimeraEntityId, _ as ChimeraStoreEntityType, b as ChimeraEntityRepository, h as ChimeraStoreEntities, p as AnyChimeraStore, x as ChimeraCollectionParams, y as ChimeraStoreOperatorMap } from "../index-
|
|
2
|
-
import { n as QueryBuilderCreator } from "../index-
|
|
1
|
+
import { C as ChimeraItemQuery, F as ChimeraCollectionQuery, Ut as ChimeraEntityId, _ as ChimeraStoreEntityType, b as ChimeraEntityRepository, h as ChimeraStoreEntities, p as AnyChimeraStore, x as ChimeraCollectionParams, y as ChimeraStoreOperatorMap } from "../index-CkaYmEhA.cjs";
|
|
2
|
+
import { n as QueryBuilderCreator } from "../index-CiER0sxG.cjs";
|
|
3
3
|
import * as react0 from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.cts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"react.d.cts","names":[],"sources":["../../packages/adapters/react/context.tsx","../../packages/adapters/react/hooks.ts"],"sourcesContent":[],"mappings":";;;;;;UAGiB,mCAAmC;SAC5C;;UAGS,oCAAo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G,CCoJxF,sBDpJwF,CCoJjE,CDpJiE,ECoJ9D,UDpJ8D,CAAA,CAAA;CAA1B"}
|
package/dist/adapters/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ChimeraItemQuery, F as ChimeraCollectionQuery, Ut as ChimeraEntityId, _ as ChimeraStoreEntityType, b as ChimeraEntityRepository, h as ChimeraStoreEntities, p as AnyChimeraStore, x as ChimeraCollectionParams, y as ChimeraStoreOperatorMap } from "../index-
|
|
2
|
-
import { n as QueryBuilderCreator } from "../index-
|
|
1
|
+
import { C as ChimeraItemQuery, F as ChimeraCollectionQuery, Ut as ChimeraEntityId, _ as ChimeraStoreEntityType, b as ChimeraEntityRepository, h as ChimeraStoreEntities, p as AnyChimeraStore, x as ChimeraCollectionParams, y as ChimeraStoreOperatorMap } from "../index-CTTQ1Hr3.js";
|
|
2
|
+
import { n as QueryBuilderCreator } from "../index-B6sY7hiW.js";
|
|
3
3
|
import * as react0 from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"react.d.ts","names":[],"sources":["../../packages/adapters/react/context.tsx","../../packages/adapters/react/hooks.ts"],"sourcesContent":[],"mappings":";;;;;;UAGiB,mCAAmC;SAC5C;;UAGS,oCAAoC;EAJpC,QAAA,EAKN,SALM;EAIA,KAAA,EAET,CAFS;;AACN,cAIE,mBAJF,EAIqB,MAAA,CAAA,OAJrB,CAIqB,wBAJrB,CAIqB,eAJrB,CAAA,GAAA,IAAA,CAAA;AACH,cAKK,oBALL,EAAA,CAAA,UAKuC,eALvC,CAAA,CAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAK6E,yBAL7E,CAKuG,CALvG,CAAA,EAAA,GAKyG,MAAA,CAAA,GAAA,CAAA,OALzG;;;AAFS,iBCQD,eDR0B,CAAA,UCQA,eDRA,CAAA,CAAA,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xI0D,CCwIlC,sBDxIkC,CCwIX,CDxIW,ECwIR,UDxIQ,CAAA,ECwIK,uBDxIL,CCwI6B,CDxI7B,CAAA,CAAA;EAAA,oBAAA,EAAA,CAAA,mBCyIrB,oBDzIqB,CCyIA,CDzIA,CAAA,EAAA,OAAA,GAAA,CAAA,CAAA,UAAA,EC0IlD,UD1IkD,EAAA,MAAA,EC4I3D,uBD5I2D,CC4InC,uBD5ImC,CC4IX,CD5IW,CAAA,EC4IP,sBD5IO,CC4IgB,CD5IhB,EC4ImB,UD5InB,CAAA,EC4IgC,ID5IhC,CAAA,GC6I3D,mBD7I2D,CC6IvC,CD7IuC,EC6IpC,sBD7IoC,CC6Ib,CD7Ia,EC6IV,UD7IU,CAAA,EC6IG,uBD7IH,CC6I2B,CD7I3B,CAAA,CAAA,EAAA,IAAA,CAAA,EAAA,OAAA,EAAA,EAAA,GC+I1D,sBD/I0D,CC+InC,sBD/ImC,CC+IZ,CD/IY,EC+IT,UD/IS,CAAA,EC+II,uBD/IJ,CC+I4B,CD/I5B,CAAA,CAAA;EAA+C,cAAA,EAAA,CAAA,mBCgJ1E,oBDhJ0E,CCgJrD,CDhJqD,CAAA,EAAA,OAAA,GAAA,CAAA,CAAA,UAAA,ECiJjG,UDjJiG,EAAA,EAAA,ECkJzG,eDlJyG,EAAA,IAAA,CAAA,ECmJtG,IDnJsG,EAAA,GCoJzG,gBDpJyG,CCoJxF,sBDpJwF,CCoJjE,CDpJiE,ECoJ9D,UDpJ8D,CAAA,CAAA;CAA1B"}
|
package/dist/defaults.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as getKeyFromOperation, Et as chimeraDefaultGetKeyFromFilter, Ft as ChimeraKeyFromFilterGetter, It as ChimeraKeyFromOperatorGetter, St as ChimeraPrimitiveComparator, Tt as chimeraDefaultFilterOperators, Wt as ChimeraEntityMap, Z as ChimeraQueryDefaultsConfig, gt as ChimeraKeyFromOrderGetter, wt as chimeraDefaultFilterConfig } from "./index-
|
|
1
|
+
import { Dt as getKeyFromOperation, Et as chimeraDefaultGetKeyFromFilter, Ft as ChimeraKeyFromFilterGetter, It as ChimeraKeyFromOperatorGetter, St as ChimeraPrimitiveComparator, Tt as chimeraDefaultFilterOperators, Wt as ChimeraEntityMap, Z as ChimeraQueryDefaultsConfig, gt as ChimeraKeyFromOrderGetter, wt as chimeraDefaultFilterConfig } from "./index-CkaYmEhA.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/debug/defaults.d.ts
|
|
4
4
|
declare const chimeraDefaultDebugConfig: {
|
package/dist/defaults.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.cts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"defaults.d.cts","names":[],"sources":["../src/debug/defaults.ts","../src/order/defaults.ts","../src/query/defaults.ts","../src/store/defaults.ts"],"sourcesContent":[],"mappings":";;;cAEa;;;EAAA,IAAA,EAAA,MAAA;;;;cCCA,0BAA0B;cAkB1B,4BAA4B;ADnB5B,cCqBA,yBDjB2B,EAAA;UCoBA;uBAAA;;;;ADxB3B,cEGA,yBFC2B,EAAA;YEmClC,SAAS,2BAA2B,yBAAyB;;;;;cClCtD;EHLA,KAAA,EAAA;;;;ECCA,CAAA;EAkBA,MAAA,EAAA;IAEA,YAAA,EEXyE,0BFc9C;;;;MCrB3B,QAAA,EAAA,CAAA,CAAA,EAAA,MAsCyE,EAAA,CAAA,EAAA,MAAA,EAAA,GAAA,OAAA;MAF5C,UAAA,EAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,GAAA,OAAA;MAAyB,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,EAAA,CAAA,GAAA,EAAA,GAAA,OAAA;MAApD,EAAA,EAAA,CAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,GAAA,EAAA,GAAA,OAAA;MAAT,GAAA,EAAA,CAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,GAAA,EAAA,GAAA,OAAA;MAAQ,EAAA,EAAA,CAAA,CAAA,EAAA,YAAA,SAAA,KAAA,EAAA,GAAA,OAAA,EAAA,IAAA,SAAA,OAAA,EAAA,IAAA,IAAA,EAAA,EAAA,CAAA,CAAA,GAAA,EAAA,CAAA,GAAA,EAAA,GAAA,OAAA;;;;MClCD,KAAA,EAAA,CAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,GAKyE,EAAA,GAAA,OAAA;IAAA,CAAA"}
|
package/dist/defaults.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as getKeyFromOperation, Et as chimeraDefaultGetKeyFromFilter, Ft as ChimeraKeyFromFilterGetter, It as ChimeraKeyFromOperatorGetter, St as ChimeraPrimitiveComparator, Tt as chimeraDefaultFilterOperators, Wt as ChimeraEntityMap, Z as ChimeraQueryDefaultsConfig, gt as ChimeraKeyFromOrderGetter, wt as chimeraDefaultFilterConfig } from "./index-
|
|
1
|
+
import { Dt as getKeyFromOperation, Et as chimeraDefaultGetKeyFromFilter, Ft as ChimeraKeyFromFilterGetter, It as ChimeraKeyFromOperatorGetter, St as ChimeraPrimitiveComparator, Tt as chimeraDefaultFilterOperators, Wt as ChimeraEntityMap, Z as ChimeraQueryDefaultsConfig, gt as ChimeraKeyFromOrderGetter, wt as chimeraDefaultFilterConfig } from "./index-CTTQ1Hr3.js";
|
|
2
2
|
|
|
3
3
|
//#region src/debug/defaults.d.ts
|
|
4
4
|
declare const chimeraDefaultDebugConfig: {
|
package/dist/defaults.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","names":[],"sources":["../src/debug/defaults.ts","../src/order/defaults.ts","../src/query/defaults.ts","../src/store/defaults.ts"],"sourcesContent":[],"mappings":";;;cAEa;;;EAAA,IAAA,EAAA,MAAA;;;;cCCA,0BAA0B;cAkB1B,4BAA4B;ADnB5B,cCqBA,yBDjB2B,EAAA;UCoBA;uBAAA;;;;ADxB3B,cEGA,yBFC2B,EAAA;YEmClC,SAAS,2BAA2B,yBAAyB;;;;;cClCtD;EHLA,KAAA,EAAA;;;;ECCA,CAAA;EAkBA,MAAA,EAAA;IAEA,YAAA,EEXyE,0BFc9C;;;;MCrB3B,QAAA,EAAA,CAAA,CAAA,EAAA,MAsCyE,EAAA,CAAA,EAAA,MAAA,EAAA,GAAA,OAAA;MAF5C,UAAA,EAAA,CAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,GAAA,OAAA;MAAyB,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,EAAA,CAAA,GAAA,EAAA,GAAA,OAAA;MAApD,EAAA,EAAA,CAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,GAAA,EAAA,GAAA,OAAA;MAAT,GAAA,EAAA,CAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,GAAA,EAAA,GAAA,OAAA;MAAQ,EAAA,EAAA,CAAA,CAAA,EAAA,YAAA,SAAA,KAAA,EAAA,GAAA,OAAA,EAAA,IAAA,SAAA,OAAA,EAAA,IAAA,IAAA,EAAA,EAAA,CAAA,CAAA,GAAA,EAAA,CAAA,GAAA,EAAA,GAAA,OAAA;;;;MClCD,KAAA,EAAA,CAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,GAKyE,EAAA,GAAA,OAAA;IAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as ChimeraConjunctionType, Jt as KeysOfType, Nt as ChimeraFilterDescriptor, bt as ChimeraOrderNulls, h as ChimeraStoreEntities, p as AnyChimeraStore, qt as ChimeraPropertyGetter, y as ChimeraStoreOperatorMap, yt as ChimeraOrderDescriptor } from "./index-
|
|
1
|
+
import { At as ChimeraConjunctionType, Jt as KeysOfType, Nt as ChimeraFilterDescriptor, bt as ChimeraOrderNulls, h as ChimeraStoreEntities, p as AnyChimeraStore, qt as ChimeraPropertyGetter, y as ChimeraStoreOperatorMap, yt as ChimeraOrderDescriptor } from "./index-CTTQ1Hr3.js";
|
|
2
2
|
|
|
3
3
|
//#region packages/qb/index.d.ts
|
|
4
4
|
type QueryBuilderCreator<Store extends AnyChimeraStore, Entity extends ChimeraStoreEntities<Store>, OperatorsMap extends ChimeraStoreOperatorMap<Store> = ChimeraStoreOperatorMap<Store>> = (q: ChimeraQueryBuilder<Store, Entity, OperatorsMap>) => any;
|
|
@@ -19,4 +19,4 @@ declare class ChimeraQueryBuilder<Store extends AnyChimeraStore, Entity extends
|
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
21
|
export { QueryBuilderCreator as n, ChimeraQueryBuilder as t };
|
|
22
|
-
//# sourceMappingURL=index-
|
|
22
|
+
//# sourceMappingURL=index-B6sY7hiW.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B6sY7hiW.d.ts","names":[],"sources":["../packages/qb/index.ts"],"sourcesContent":[],"mappings":";;;AAoBY,KAAA,mBAAmB,CAAA,cAChB,eADgB,EAAA,eAEf,oBAFe,CAEM,KAFN,CAAA,EAAA,qBAGT,uBAHS,CAGe,KAHf,CAAA,GAGwB,uBAHxB,CAGgD,KAHhD,CAAA,CAAA,GAAA,CAAA,CAAA,EAIvB,mBAJuB,CAIH,KAJG,EAII,MAJJ,EAIY,YAJZ,CAAA,EAAA,GAAA,GAAA;AAChB,cAKF,mBALE,CAAA,cAMA,eANA,EAAA,eAOC,oBAPD,CAOsB,KAPtB,CAAA,EAAA,qBAQO,uBARP,CAQ+B,KAR/B,CAAA,GAQwC,uBARxC,CAQgE,KARhE,CAAA,CAAA,CAAA;EACsB,QAAA,UAAA;EAArB,OAAA,CAAA,GAAA,EAYT,qBAZS,CAYa,MAZb,CAAA,GAAA,CAAA,MAY8B,MAZ9B,GAAA,MAAA,CAAA,EAAA,IAAA,C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,CAAA,EAAA;IAAmB,MAAA,EAsEjB,uBAtEiB,CAsEO,YAtEP,EAsEqB,MAtErB,CAAA,GAAA,IAAA;IAEd,KAAA,EAqEJ,sBArEuB,CAqEA,MArEA,CAAA,EAAA,GAAA,IAAA;EACjB,CAAA"}
|
|
@@ -93,10 +93,10 @@ declare const chimeraDefaultFilterConfig: {
|
|
|
93
93
|
type ValidEventTypes = string | object;
|
|
94
94
|
type EventNames<T extends ValidEventTypes> = T extends string ? T : keyof T;
|
|
95
95
|
type ArgumentMap<T extends object> = { [K in keyof T]: T[K] extends ((...args: any[]) => void) ? Parameters<T[K]>[0] : T[K] extends any[] ? T[K][0] : T[K] };
|
|
96
|
-
type EventListener<T extends ValidEventTypes, K extends EventNames<T>> = T extends string ? (arg: any) => void : (arg: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]) => void;
|
|
97
|
-
type EventArgs<T extends ValidEventTypes, K extends EventNames<T>> = Parameters<EventListener<T, K>>[0];
|
|
98
|
-
type EventRecord<T extends ValidEventTypes, K extends EventNames<T>> = {
|
|
99
|
-
fn: EventListener<T, K>;
|
|
96
|
+
type EventListener<T extends ValidEventTypes, K$1 extends EventNames<T>> = T extends string ? (arg: any) => void : (arg: ArgumentMap<Exclude<T, string | symbol>>[Extract<K$1, keyof T>]) => void;
|
|
97
|
+
type EventArgs<T extends ValidEventTypes, K$1 extends EventNames<T>> = Parameters<EventListener<T, K$1>>[0];
|
|
98
|
+
type EventRecord<T extends ValidEventTypes, K$1 extends EventNames<T>> = {
|
|
99
|
+
fn: EventListener<T, K$1>;
|
|
100
100
|
once: boolean;
|
|
101
101
|
};
|
|
102
102
|
type EventRecordMap<T extends ValidEventTypes> = { [K in EventNames<T>]?: EventRecord<T, K> | EventRecord<T, K>[] };
|
|
@@ -734,7 +734,7 @@ type ChimeraStoreEntityMap<T extends AnyChimeraStore> = ExtractsStoreGenerics<T>
|
|
|
734
734
|
type ChimeraStoreOperatorMap<T extends AnyChimeraStore> = ExtractsStoreGenerics<T>["operatorMap"];
|
|
735
735
|
type ChimeraStoreEntities<T extends AnyChimeraStore> = keyof ChimeraStoreEntityMap<T> & string;
|
|
736
736
|
type ChimeraStoreOperator<T extends AnyChimeraStore> = keyof ChimeraStoreOperatorMap<T> & string;
|
|
737
|
-
type ChimeraStoreEntityType<T extends AnyChimeraStore, K extends ChimeraStoreEntities<T>> = ChimeraStoreEntityMap<T>[K];
|
|
737
|
+
type ChimeraStoreEntityType<T extends AnyChimeraStore, K$1 extends ChimeraStoreEntities<T>> = ChimeraStoreEntityMap<T>[K$1];
|
|
738
738
|
//#endregion
|
|
739
739
|
//#region src/order/errors.d.ts
|
|
740
740
|
declare class ChimeraOrderError extends ChimeraError {}
|
|
@@ -775,47 +775,47 @@ declare class ChimeraQueryTrustFetchedCollectionError extends ChimeraQueryTrustE
|
|
|
775
775
|
}
|
|
776
776
|
//#endregion
|
|
777
777
|
//#region src/shared/ChimeraWeakValueMap/ChimeraWeakValueMap.d.ts
|
|
778
|
-
type ChimeraWeakValueMapEventMap<K, V extends object> = {
|
|
778
|
+
type ChimeraWeakValueMapEventMap<K$1, V extends object> = {
|
|
779
779
|
/** An item was added to the map */
|
|
780
780
|
set: {
|
|
781
|
-
key: K;
|
|
781
|
+
key: K$1;
|
|
782
782
|
value: V;
|
|
783
|
-
instance: ChimeraWeakValueMap<K, V>;
|
|
783
|
+
instance: ChimeraWeakValueMap<K$1, V>;
|
|
784
784
|
};
|
|
785
785
|
/** An item was removed from the map */
|
|
786
786
|
delete: {
|
|
787
|
-
key: K;
|
|
787
|
+
key: K$1;
|
|
788
788
|
value: V;
|
|
789
|
-
instance: ChimeraWeakValueMap<K, V>;
|
|
789
|
+
instance: ChimeraWeakValueMap<K$1, V>;
|
|
790
790
|
};
|
|
791
791
|
/** Weak reference was automatically collected */
|
|
792
792
|
finalize: {
|
|
793
|
-
key: K;
|
|
794
|
-
instance: ChimeraWeakValueMap<K, V>;
|
|
793
|
+
key: K$1;
|
|
794
|
+
instance: ChimeraWeakValueMap<K$1, V>;
|
|
795
795
|
};
|
|
796
796
|
/** All items were removed from the map */
|
|
797
797
|
clear: {
|
|
798
|
-
instance: ChimeraWeakValueMap<K, V>;
|
|
798
|
+
instance: ChimeraWeakValueMap<K$1, V>;
|
|
799
799
|
};
|
|
800
800
|
};
|
|
801
|
-
declare class ChimeraWeakValueMap<K, V extends object> extends ChimeraEventEmitter<ChimeraWeakValueMapEventMap<K, V>> {
|
|
801
|
+
declare class ChimeraWeakValueMap<K$1, V extends object> extends ChimeraEventEmitter<ChimeraWeakValueMapEventMap<K$1, V>> {
|
|
802
802
|
#private;
|
|
803
803
|
emit(): never;
|
|
804
|
-
constructor(values?: readonly (readonly [K, V])[] | null);
|
|
805
|
-
set(key: K, value: V): this;
|
|
806
|
-
delete(key: K): boolean;
|
|
807
|
-
has(key: K): boolean;
|
|
808
|
-
forEach(callbackFn: (value: V, key: K, map: ChimeraWeakValueMap<K, V>) => void, thisArg?: any): void;
|
|
809
|
-
get(key: K): V | undefined;
|
|
804
|
+
constructor(values?: readonly (readonly [K$1, V])[] | null);
|
|
805
|
+
set(key: K$1, value: V): this;
|
|
806
|
+
delete(key: K$1): boolean;
|
|
807
|
+
has(key: K$1): boolean;
|
|
808
|
+
forEach(callbackFn: (value: V, key: K$1, map: ChimeraWeakValueMap<K$1, V>) => void, thisArg?: any): void;
|
|
809
|
+
get(key: K$1): V | undefined;
|
|
810
810
|
get size(): number;
|
|
811
|
-
entries(): IterableIterator<[K, V]>;
|
|
812
|
-
keys(): IterableIterator<K>;
|
|
811
|
+
entries(): IterableIterator<[K$1, V]>;
|
|
812
|
+
keys(): IterableIterator<K$1>;
|
|
813
813
|
values(): IterableIterator<V>;
|
|
814
|
-
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
814
|
+
[Symbol.iterator](): IterableIterator<[K$1, V]>;
|
|
815
815
|
clear(): void;
|
|
816
816
|
cleanup(): void;
|
|
817
817
|
get rawSize(): number;
|
|
818
818
|
}
|
|
819
819
|
//#endregion
|
|
820
820
|
export { ChimeraQueryEntityBatchedCreator as $, ChimeraFilterError as A, ChimeraConjunctionType as At, ChimeraQueryConfig as B, ChimeraSimplifiedFilter as Bt, ChimeraItemQuery as C, ChimeraSimplifiedOrderDescriptor as Ct, chimeraCreateOperator as D, getKeyFromOperation as Dt, chimeraCreateNot as E, chimeraDefaultGetKeyFromFilter as Et, ChimeraCollectionQuery as F, ChimeraKeyFromFilterGetter as Ft, ChimeraQueryDefaultEntityIdGetter as G, ChimeraIdGetterFunc as Gt, ChimeraQueryDefaultBatchedDeleter as H, ChimeraEntityGetter as Ht, ChimeraCollectionQueryEventMap as I, ChimeraKeyFromOperatorGetter as It, ChimeraQueryDefaultItemDeleter as J, KeysOfType as Jt, ChimeraQueryDefaultEntityIdGetterFunction as K, ChimeraMutationRequester as Kt, ChimeraEntityConfigMap as L, ChimeraOperatorFunction as Lt, ChimeraFilterOperatorNotFoundError as M, ChimeraFilterConfig as Mt, ChimeraError as N, ChimeraFilterDescriptor as Nt, chimeraIsConjunction as O, ChimeraConjunctionDescriptor as Ot, ChimeraInternalError as P, ChimeraFilterOperatorDescriptor as Pt, ChimeraQueryDeletionResult as Q, ChimeraQueryBatchedDeleteResponse as R, ChimeraOperatorMap as Rt, ChimeraStoreConfig as S, ChimeraPrimitiveComparator as St, chimeraCreateConjunction as T, chimeraDefaultFilterOperators as Tt, ChimeraQueryDefaultBatchedUpdater as U, ChimeraEntityId as Ut, ChimeraQueryDefaultBatchedCreator as V, ChimeraSimplifiedOperator as Vt, ChimeraQueryDefaultCollectionFetcher as W, ChimeraEntityMap as Wt, ChimeraQueryDefaultItemUpdater as X, ChimeraQueryDefaultItemFetcher as Y, ChimeraQueryDefaultsConfig as Z, ChimeraStoreEntityType as _, ChimeraOrderByComparator as _t, ChimeraQueryNotSpecifiedError as a, ChimeraQueryEntityFetcherRequestParams as at, ChimeraEntityRepository as b, ChimeraOrderNulls as bt, ChimeraQueryTrustIdMismatchError as c, ChimeraQueryEntityItemDeleter as ct, ChimeraOrderTypeComparisonError as d, ChimeraQueryEntityItemUpdater as dt, ChimeraQueryEntityBatchedDeleter as et, ChimeraOrderTypeError as f, ChimeraQueryFetchingStatable as ft, ChimeraStoreEntityMap as g, ChimeraKeyFromOrderGetter as gt, ChimeraStoreEntities as h, ChimeraQueryItemFetcherResponse as ht, ChimeraQueryIdMismatchError as i, ChimeraQueryEntityConfig as it, ChimeraFilterOperatorError as j, ChimeraFilterChecker as jt, chimeraIsOperator as k, ChimeraConjunctionOperationDescriptor as kt, chimeraCreateOrderBy as l, ChimeraQueryEntityItemFetcher as lt, ChimeraStore as m, ChimeraQueryItemDeleteResponse as mt, ChimeraWeakValueMapEventMap as n, ChimeraQueryEntityCollectionFetcher as nt, ChimeraQueryTrustError as o, ChimeraQueryEntityIdGetter as ot, AnyChimeraStore as p, ChimeraQueryFetchingState as pt, ChimeraQueryDefaultItemCreator as q, ChimeraPropertyGetter as qt, ChimeraQueryError as r, ChimeraQueryEntityCollectionFetcherParams as rt, ChimeraQueryTrustFetchedCollectionError as s, ChimeraQueryEntityItemCreator as st, ChimeraWeakValueMap as t, ChimeraQueryEntityBatchedUpdater as tt, ChimeraOrderError as u, ChimeraQueryEntityItemFetcherParams as ut, ChimeraStoreOperator as v, ChimeraOrderConfig as vt, ChimeraItemQueryEventMap as w, chimeraDefaultFilterConfig as wt, ChimeraCollectionParams as x, ChimeraOrderPriority as xt, ChimeraStoreOperatorMap as y, ChimeraOrderDescriptor as yt, ChimeraQueryCollectionFetcherResponse as z, ChimeraSimplifiedConjunctionOperation as zt };
|
|
821
|
-
//# sourceMappingURL=index-
|
|
821
|
+
//# sourceMappingURL=index-CTTQ1Hr3.d.ts.map
|