pinia-orm-edge 1.10.0-28876029.ceaaf3e → 1.10.0-28876069.dc9d711
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/dist/casts.d.cts +3 -2
- package/dist/casts.d.mts +3 -2
- package/dist/casts.d.ts +3 -2
- package/dist/decorators.d.cts +4 -3
- package/dist/decorators.d.mts +4 -3
- package/dist/decorators.d.ts +4 -3
- package/dist/helpers.d.cts +3 -2
- package/dist/helpers.d.mts +3 -2
- package/dist/helpers.d.ts +3 -2
- package/dist/index.cjs +27 -8
- package/dist/index.d.cts +8 -17
- package/dist/index.d.mts +8 -17
- package/dist/index.d.ts +8 -17
- package/dist/index.mjs +27 -8
- package/dist/nanoid/async.d.cts +3 -2
- package/dist/nanoid/async.d.mts +3 -2
- package/dist/nanoid/async.d.ts +3 -2
- package/dist/nanoid/index.d.cts +3 -2
- package/dist/nanoid/index.d.mts +3 -2
- package/dist/nanoid/index.d.ts +3 -2
- package/dist/nanoid/non-secure.d.cts +3 -2
- package/dist/nanoid/non-secure.d.mts +3 -2
- package/dist/nanoid/non-secure.d.ts +3 -2
- package/dist/shared/{pinia-orm.fd1280fe.d.cts → pinia-orm.cf7a7464.d.cts} +88 -25
- package/dist/shared/{pinia-orm.fd1280fe.d.mts → pinia-orm.cf7a7464.d.mts} +88 -25
- package/dist/shared/{pinia-orm.fd1280fe.d.ts → pinia-orm.cf7a7464.d.ts} +88 -25
- package/dist/uuid/v1.d.cts +3 -2
- package/dist/uuid/v1.d.mts +3 -2
- package/dist/uuid/v1.d.ts +3 -2
- package/dist/uuid/v4.d.cts +3 -2
- package/dist/uuid/v4.d.mts +3 -2
- package/dist/uuid/v4.d.ts +3 -2
- package/package.json +5 -5
@@ -1,7 +1,8 @@
|
|
1
1
|
import * as pinia from 'pinia';
|
2
|
-
import { PiniaPlugin,
|
3
|
-
import * as
|
2
|
+
import { PiniaPlugin, DefineStoreOptionsBase, DefineSetupStoreOptions, Pinia } from 'pinia';
|
3
|
+
import * as vue_demi from 'vue-demi';
|
4
4
|
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
5
|
+
import * as __composables from '@/composables';
|
5
6
|
|
6
7
|
interface Constructor<T> {
|
7
8
|
new (...args: any[]): T;
|
@@ -29,10 +30,10 @@ declare class WeakCache<K, V extends object> implements Map<K, V> {
|
|
29
30
|
clear(): void;
|
30
31
|
delete(key: K): boolean;
|
31
32
|
forEach(cb: (value: V, key: K, map: Map<K, V>) => void): void;
|
32
|
-
[Symbol.iterator]():
|
33
|
-
entries():
|
34
|
-
keys():
|
35
|
-
values():
|
33
|
+
[Symbol.iterator](): MapIterator<[K, V]>;
|
34
|
+
entries(): MapIterator<[K, V]>;
|
35
|
+
keys(): MapIterator<K>;
|
36
|
+
values(): MapIterator<V>;
|
36
37
|
}
|
37
38
|
|
38
39
|
interface PiniaOrmPluginContext {
|
@@ -59,14 +60,19 @@ interface CacheConfigOptions {
|
|
59
60
|
shared?: boolean;
|
60
61
|
provider?: typeof WeakCache<string, Model[]>;
|
61
62
|
}
|
63
|
+
interface PiniaConfigOptions {
|
64
|
+
storeType?: 'optionStore' | 'setupStore' | string;
|
65
|
+
}
|
62
66
|
interface InstallOptions {
|
63
67
|
model?: ModelConfigOptions;
|
64
68
|
cache?: CacheConfigOptions | boolean;
|
69
|
+
pinia?: PiniaConfigOptions;
|
65
70
|
plugins?: PiniaOrmPlugin[];
|
66
71
|
}
|
67
72
|
interface FilledInstallOptions {
|
68
73
|
model: Required<ModelConfigOptions>;
|
69
74
|
cache: Required<CacheConfigOptions | boolean>;
|
75
|
+
pinia: Required<PiniaConfigOptions>;
|
70
76
|
}
|
71
77
|
interface CreatePiniaOrm {
|
72
78
|
use(plugin: PiniaOrmPlugin): this;
|
@@ -295,6 +301,54 @@ declare class Interpreter {
|
|
295
301
|
private getSchema;
|
296
302
|
}
|
297
303
|
|
304
|
+
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, customOptions?: DefineSetupStoreOptions<string, S, T, any>, query?: Query<any>): pinia.StoreDefinition<string, pinia._UnwrapAll<Pick<{
|
305
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
306
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
307
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
308
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
309
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
310
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
311
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
312
|
+
data: vue_demi.Ref<Record<string, any>>;
|
313
|
+
}, "data">>, Pick<{
|
314
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
315
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
316
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
317
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
318
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
319
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
320
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
321
|
+
data: vue_demi.Ref<Record<string, any>>;
|
322
|
+
}, never>, Pick<{
|
323
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
324
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
325
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
326
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
327
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
328
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
329
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
330
|
+
data: vue_demi.Ref<Record<string, any>>;
|
331
|
+
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
332
|
+
interface DataStoreState {
|
333
|
+
data: Record<string, any>;
|
334
|
+
[s: string]: any;
|
335
|
+
}
|
336
|
+
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
337
|
+
|
338
|
+
declare function useStoreActions(query?: Query): {
|
339
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
340
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
341
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
342
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
343
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
344
|
+
/**
|
345
|
+
* Commit `delete` change to the store.
|
346
|
+
*/
|
347
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
348
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
349
|
+
};
|
350
|
+
type StoreActions = 'insert' | 'flush' | 'delete' | 'update' | 'destroy' | 'save' | 'fresh';
|
351
|
+
|
298
352
|
interface Where<T = Model> {
|
299
353
|
field: WherePrimaryClosure<T> | NonMethodKeys<T> | string | string[];
|
300
354
|
value: WhereSecondaryClosure<T> | any;
|
@@ -408,7 +462,7 @@ declare class Query<M extends Model = Model> {
|
|
408
462
|
/**
|
409
463
|
* Commit a store action and get the data
|
410
464
|
*/
|
411
|
-
protected commit(name:
|
465
|
+
protected commit(name: StoreActions | 'all' | 'get', payload?: any): Record<string, any>;
|
412
466
|
/**
|
413
467
|
* Make meta field visible
|
414
468
|
*/
|
@@ -1426,6 +1480,7 @@ declare class Model {
|
|
1426
1480
|
* to the 'defineStore' function of pinia.
|
1427
1481
|
*/
|
1428
1482
|
protected static piniaOptions: {};
|
1483
|
+
protected static piniaExtend: {};
|
1429
1484
|
/**
|
1430
1485
|
* The mutators for the model.
|
1431
1486
|
*/
|
@@ -1650,6 +1705,10 @@ declare class Model {
|
|
1650
1705
|
* Get the pinia options for this model.
|
1651
1706
|
*/
|
1652
1707
|
$piniaOptions(): {};
|
1708
|
+
/**
|
1709
|
+
* Get the extended functionality.
|
1710
|
+
*/
|
1711
|
+
$piniaExtend(): {};
|
1653
1712
|
/**
|
1654
1713
|
* Get the primary key for this model.
|
1655
1714
|
*/
|
@@ -1787,21 +1846,6 @@ type Item<M extends Model = Model> = M | null;
|
|
1787
1846
|
type Collection<M extends Model = Model> = M[];
|
1788
1847
|
type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
|
1789
1848
|
|
1790
|
-
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
|
1791
|
-
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1792
|
-
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1793
|
-
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1794
|
-
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1795
|
-
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1796
|
-
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1797
|
-
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1798
|
-
}>;
|
1799
|
-
interface DataStoreState {
|
1800
|
-
data: Record<string, any>;
|
1801
|
-
[s: string]: any;
|
1802
|
-
}
|
1803
|
-
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1804
|
-
|
1805
1849
|
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1806
1850
|
newRawInstance(): M;
|
1807
1851
|
}
|
@@ -1908,7 +1952,25 @@ declare class Repository<M extends Model = Model> {
|
|
1908
1952
|
/**
|
1909
1953
|
* Returns the pinia store used with this model
|
1910
1954
|
*/
|
1911
|
-
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string,
|
1955
|
+
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, pinia._UnwrapAll<Pick<{
|
1956
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1957
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1958
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1959
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1960
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1961
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1962
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1963
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1964
|
+
}, "data">>, Pick<{
|
1965
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1966
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1967
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1968
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1969
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1970
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1971
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1972
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1973
|
+
}, never>, Pick<{
|
1912
1974
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1913
1975
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1914
1976
|
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1916,7 +1978,8 @@ declare class Repository<M extends Model = Model> {
|
|
1916
1978
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1917
1979
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1918
1980
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1919
|
-
|
1981
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1982
|
+
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
1920
1983
|
/**
|
1921
1984
|
* Create a new repository with the given model.
|
1922
1985
|
*/
|
@@ -2058,4 +2121,4 @@ declare class Repository<M extends Model = Model> {
|
|
2058
2121
|
flush(): M[];
|
2059
2122
|
}
|
2060
2123
|
|
2061
|
-
export {
|
2124
|
+
export { MorphToMany as $, type AfterHook as A, type BeforeHook as B, type Constructor as C, type DataStoreState as D, type Element as E, type FilledInstallOptions as F, type GroupedCollection as G, type WithKeys as H, type Item as I, Attribute as J, type Dictionary as K, type deleteModes as L, Model as M, type NormalizedData as N, Relation as O, type PiniaOrmPluginContext as P, BelongsTo as Q, Repository as R, type StoreActions as S, BelongsToMany as T, HasMany as U, HasOne as V, WeakCache as W, HasManyBy as X, HasManyThrough as Y, MorphMany as Z, MorphTo as _, type Elements as a, MorphOne as a0, type Casts as a1, CastAttribute as a2, type TypeDefault as a3, Type as a4, Interpreter as a5, Query as a6, type Where as a7, type NonMethodKeys as a8, type GetElementType as a9, type UltimateKeys as aa, type WherePrimaryClosure as ab, type WhereSecondaryClosure as ac, type WhereGroup as ad, type Order as ae, type Group as af, type OrderBy as ag, type GroupBy as ah, type GroupByFields as ai, type OrderDirection as aj, type EagerLoad as ak, type EagerLoadConstraint as al, type Mutator as am, type MutatorFunctions as an, type Mutators as ao, type CacheConfig as ap, type PropertyDecorator as aq, type TypeOptions as ar, type UidOptions as as, type NanoidOptions as at, type Collection as b, useDataStore as c, type DataStore as d, type PiniaOrmPlugin as e, definePiniaOrmPlugin as f, type ModelConfigOptions as g, type CacheConfigOptions as h, type PiniaConfigOptions as i, type InstallOptions as j, type CreatePiniaOrm as k, createORM as l, Database as m, type Schemas as n, Schema as o, plugins as p, type ModelFields as q, registerPlugins as r, type ModelSchemas as s, type ModelRegistries as t, useStoreActions as u, type ModelRegistry as v, type PrimaryKey as w, type ModelOptions as x, type MetaValues as y, type InheritanceTypes as z };
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import * as pinia from 'pinia';
|
2
|
-
import { PiniaPlugin,
|
3
|
-
import * as
|
2
|
+
import { PiniaPlugin, DefineStoreOptionsBase, DefineSetupStoreOptions, Pinia } from 'pinia';
|
3
|
+
import * as vue_demi from 'vue-demi';
|
4
4
|
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
5
|
+
import * as __composables from '@/composables';
|
5
6
|
|
6
7
|
interface Constructor<T> {
|
7
8
|
new (...args: any[]): T;
|
@@ -29,10 +30,10 @@ declare class WeakCache<K, V extends object> implements Map<K, V> {
|
|
29
30
|
clear(): void;
|
30
31
|
delete(key: K): boolean;
|
31
32
|
forEach(cb: (value: V, key: K, map: Map<K, V>) => void): void;
|
32
|
-
[Symbol.iterator]():
|
33
|
-
entries():
|
34
|
-
keys():
|
35
|
-
values():
|
33
|
+
[Symbol.iterator](): MapIterator<[K, V]>;
|
34
|
+
entries(): MapIterator<[K, V]>;
|
35
|
+
keys(): MapIterator<K>;
|
36
|
+
values(): MapIterator<V>;
|
36
37
|
}
|
37
38
|
|
38
39
|
interface PiniaOrmPluginContext {
|
@@ -59,14 +60,19 @@ interface CacheConfigOptions {
|
|
59
60
|
shared?: boolean;
|
60
61
|
provider?: typeof WeakCache<string, Model[]>;
|
61
62
|
}
|
63
|
+
interface PiniaConfigOptions {
|
64
|
+
storeType?: 'optionStore' | 'setupStore' | string;
|
65
|
+
}
|
62
66
|
interface InstallOptions {
|
63
67
|
model?: ModelConfigOptions;
|
64
68
|
cache?: CacheConfigOptions | boolean;
|
69
|
+
pinia?: PiniaConfigOptions;
|
65
70
|
plugins?: PiniaOrmPlugin[];
|
66
71
|
}
|
67
72
|
interface FilledInstallOptions {
|
68
73
|
model: Required<ModelConfigOptions>;
|
69
74
|
cache: Required<CacheConfigOptions | boolean>;
|
75
|
+
pinia: Required<PiniaConfigOptions>;
|
70
76
|
}
|
71
77
|
interface CreatePiniaOrm {
|
72
78
|
use(plugin: PiniaOrmPlugin): this;
|
@@ -295,6 +301,54 @@ declare class Interpreter {
|
|
295
301
|
private getSchema;
|
296
302
|
}
|
297
303
|
|
304
|
+
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, customOptions?: DefineSetupStoreOptions<string, S, T, any>, query?: Query<any>): pinia.StoreDefinition<string, pinia._UnwrapAll<Pick<{
|
305
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
306
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
307
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
308
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
309
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
310
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
311
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
312
|
+
data: vue_demi.Ref<Record<string, any>>;
|
313
|
+
}, "data">>, Pick<{
|
314
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
315
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
316
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
317
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
318
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
319
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
320
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
321
|
+
data: vue_demi.Ref<Record<string, any>>;
|
322
|
+
}, never>, Pick<{
|
323
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
324
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
325
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
326
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
327
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
328
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
329
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
330
|
+
data: vue_demi.Ref<Record<string, any>>;
|
331
|
+
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
332
|
+
interface DataStoreState {
|
333
|
+
data: Record<string, any>;
|
334
|
+
[s: string]: any;
|
335
|
+
}
|
336
|
+
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
337
|
+
|
338
|
+
declare function useStoreActions(query?: Query): {
|
339
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
340
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
341
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
342
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
343
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
344
|
+
/**
|
345
|
+
* Commit `delete` change to the store.
|
346
|
+
*/
|
347
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
348
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
349
|
+
};
|
350
|
+
type StoreActions = 'insert' | 'flush' | 'delete' | 'update' | 'destroy' | 'save' | 'fresh';
|
351
|
+
|
298
352
|
interface Where<T = Model> {
|
299
353
|
field: WherePrimaryClosure<T> | NonMethodKeys<T> | string | string[];
|
300
354
|
value: WhereSecondaryClosure<T> | any;
|
@@ -408,7 +462,7 @@ declare class Query<M extends Model = Model> {
|
|
408
462
|
/**
|
409
463
|
* Commit a store action and get the data
|
410
464
|
*/
|
411
|
-
protected commit(name:
|
465
|
+
protected commit(name: StoreActions | 'all' | 'get', payload?: any): Record<string, any>;
|
412
466
|
/**
|
413
467
|
* Make meta field visible
|
414
468
|
*/
|
@@ -1426,6 +1480,7 @@ declare class Model {
|
|
1426
1480
|
* to the 'defineStore' function of pinia.
|
1427
1481
|
*/
|
1428
1482
|
protected static piniaOptions: {};
|
1483
|
+
protected static piniaExtend: {};
|
1429
1484
|
/**
|
1430
1485
|
* The mutators for the model.
|
1431
1486
|
*/
|
@@ -1650,6 +1705,10 @@ declare class Model {
|
|
1650
1705
|
* Get the pinia options for this model.
|
1651
1706
|
*/
|
1652
1707
|
$piniaOptions(): {};
|
1708
|
+
/**
|
1709
|
+
* Get the extended functionality.
|
1710
|
+
*/
|
1711
|
+
$piniaExtend(): {};
|
1653
1712
|
/**
|
1654
1713
|
* Get the primary key for this model.
|
1655
1714
|
*/
|
@@ -1787,21 +1846,6 @@ type Item<M extends Model = Model> = M | null;
|
|
1787
1846
|
type Collection<M extends Model = Model> = M[];
|
1788
1847
|
type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
|
1789
1848
|
|
1790
|
-
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
|
1791
|
-
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1792
|
-
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1793
|
-
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1794
|
-
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1795
|
-
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1796
|
-
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1797
|
-
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1798
|
-
}>;
|
1799
|
-
interface DataStoreState {
|
1800
|
-
data: Record<string, any>;
|
1801
|
-
[s: string]: any;
|
1802
|
-
}
|
1803
|
-
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1804
|
-
|
1805
1849
|
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1806
1850
|
newRawInstance(): M;
|
1807
1851
|
}
|
@@ -1908,7 +1952,25 @@ declare class Repository<M extends Model = Model> {
|
|
1908
1952
|
/**
|
1909
1953
|
* Returns the pinia store used with this model
|
1910
1954
|
*/
|
1911
|
-
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string,
|
1955
|
+
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, pinia._UnwrapAll<Pick<{
|
1956
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1957
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1958
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1959
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1960
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1961
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1962
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1963
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1964
|
+
}, "data">>, Pick<{
|
1965
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1966
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1967
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1968
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1969
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1970
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1971
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1972
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1973
|
+
}, never>, Pick<{
|
1912
1974
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1913
1975
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1914
1976
|
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1916,7 +1978,8 @@ declare class Repository<M extends Model = Model> {
|
|
1916
1978
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1917
1979
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1918
1980
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1919
|
-
|
1981
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1982
|
+
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
1920
1983
|
/**
|
1921
1984
|
* Create a new repository with the given model.
|
1922
1985
|
*/
|
@@ -2058,4 +2121,4 @@ declare class Repository<M extends Model = Model> {
|
|
2058
2121
|
flush(): M[];
|
2059
2122
|
}
|
2060
2123
|
|
2061
|
-
export {
|
2124
|
+
export { MorphToMany as $, type AfterHook as A, type BeforeHook as B, type Constructor as C, type DataStoreState as D, type Element as E, type FilledInstallOptions as F, type GroupedCollection as G, type WithKeys as H, type Item as I, Attribute as J, type Dictionary as K, type deleteModes as L, Model as M, type NormalizedData as N, Relation as O, type PiniaOrmPluginContext as P, BelongsTo as Q, Repository as R, type StoreActions as S, BelongsToMany as T, HasMany as U, HasOne as V, WeakCache as W, HasManyBy as X, HasManyThrough as Y, MorphMany as Z, MorphTo as _, type Elements as a, MorphOne as a0, type Casts as a1, CastAttribute as a2, type TypeDefault as a3, Type as a4, Interpreter as a5, Query as a6, type Where as a7, type NonMethodKeys as a8, type GetElementType as a9, type UltimateKeys as aa, type WherePrimaryClosure as ab, type WhereSecondaryClosure as ac, type WhereGroup as ad, type Order as ae, type Group as af, type OrderBy as ag, type GroupBy as ah, type GroupByFields as ai, type OrderDirection as aj, type EagerLoad as ak, type EagerLoadConstraint as al, type Mutator as am, type MutatorFunctions as an, type Mutators as ao, type CacheConfig as ap, type PropertyDecorator as aq, type TypeOptions as ar, type UidOptions as as, type NanoidOptions as at, type Collection as b, useDataStore as c, type DataStore as d, type PiniaOrmPlugin as e, definePiniaOrmPlugin as f, type ModelConfigOptions as g, type CacheConfigOptions as h, type PiniaConfigOptions as i, type InstallOptions as j, type CreatePiniaOrm as k, createORM as l, Database as m, type Schemas as n, Schema as o, plugins as p, type ModelFields as q, registerPlugins as r, type ModelSchemas as s, type ModelRegistries as t, useStoreActions as u, type ModelRegistry as v, type PrimaryKey as w, type ModelOptions as x, type MetaValues as y, type InheritanceTypes as z };
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import * as pinia from 'pinia';
|
2
|
-
import { PiniaPlugin,
|
3
|
-
import * as
|
2
|
+
import { PiniaPlugin, DefineStoreOptionsBase, DefineSetupStoreOptions, Pinia } from 'pinia';
|
3
|
+
import * as vue_demi from 'vue-demi';
|
4
4
|
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
5
|
+
import * as __composables from '@/composables';
|
5
6
|
|
6
7
|
interface Constructor<T> {
|
7
8
|
new (...args: any[]): T;
|
@@ -29,10 +30,10 @@ declare class WeakCache<K, V extends object> implements Map<K, V> {
|
|
29
30
|
clear(): void;
|
30
31
|
delete(key: K): boolean;
|
31
32
|
forEach(cb: (value: V, key: K, map: Map<K, V>) => void): void;
|
32
|
-
[Symbol.iterator]():
|
33
|
-
entries():
|
34
|
-
keys():
|
35
|
-
values():
|
33
|
+
[Symbol.iterator](): MapIterator<[K, V]>;
|
34
|
+
entries(): MapIterator<[K, V]>;
|
35
|
+
keys(): MapIterator<K>;
|
36
|
+
values(): MapIterator<V>;
|
36
37
|
}
|
37
38
|
|
38
39
|
interface PiniaOrmPluginContext {
|
@@ -59,14 +60,19 @@ interface CacheConfigOptions {
|
|
59
60
|
shared?: boolean;
|
60
61
|
provider?: typeof WeakCache<string, Model[]>;
|
61
62
|
}
|
63
|
+
interface PiniaConfigOptions {
|
64
|
+
storeType?: 'optionStore' | 'setupStore' | string;
|
65
|
+
}
|
62
66
|
interface InstallOptions {
|
63
67
|
model?: ModelConfigOptions;
|
64
68
|
cache?: CacheConfigOptions | boolean;
|
69
|
+
pinia?: PiniaConfigOptions;
|
65
70
|
plugins?: PiniaOrmPlugin[];
|
66
71
|
}
|
67
72
|
interface FilledInstallOptions {
|
68
73
|
model: Required<ModelConfigOptions>;
|
69
74
|
cache: Required<CacheConfigOptions | boolean>;
|
75
|
+
pinia: Required<PiniaConfigOptions>;
|
70
76
|
}
|
71
77
|
interface CreatePiniaOrm {
|
72
78
|
use(plugin: PiniaOrmPlugin): this;
|
@@ -295,6 +301,54 @@ declare class Interpreter {
|
|
295
301
|
private getSchema;
|
296
302
|
}
|
297
303
|
|
304
|
+
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, customOptions?: DefineSetupStoreOptions<string, S, T, any>, query?: Query<any>): pinia.StoreDefinition<string, pinia._UnwrapAll<Pick<{
|
305
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
306
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
307
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
308
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
309
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
310
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
311
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
312
|
+
data: vue_demi.Ref<Record<string, any>>;
|
313
|
+
}, "data">>, Pick<{
|
314
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
315
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
316
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
317
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
318
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
319
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
320
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
321
|
+
data: vue_demi.Ref<Record<string, any>>;
|
322
|
+
}, never>, Pick<{
|
323
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
324
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
325
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
326
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
327
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
328
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
329
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
330
|
+
data: vue_demi.Ref<Record<string, any>>;
|
331
|
+
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
332
|
+
interface DataStoreState {
|
333
|
+
data: Record<string, any>;
|
334
|
+
[s: string]: any;
|
335
|
+
}
|
336
|
+
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
337
|
+
|
338
|
+
declare function useStoreActions(query?: Query): {
|
339
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
340
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
341
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
342
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
343
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
344
|
+
/**
|
345
|
+
* Commit `delete` change to the store.
|
346
|
+
*/
|
347
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
348
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
349
|
+
};
|
350
|
+
type StoreActions = 'insert' | 'flush' | 'delete' | 'update' | 'destroy' | 'save' | 'fresh';
|
351
|
+
|
298
352
|
interface Where<T = Model> {
|
299
353
|
field: WherePrimaryClosure<T> | NonMethodKeys<T> | string | string[];
|
300
354
|
value: WhereSecondaryClosure<T> | any;
|
@@ -408,7 +462,7 @@ declare class Query<M extends Model = Model> {
|
|
408
462
|
/**
|
409
463
|
* Commit a store action and get the data
|
410
464
|
*/
|
411
|
-
protected commit(name:
|
465
|
+
protected commit(name: StoreActions | 'all' | 'get', payload?: any): Record<string, any>;
|
412
466
|
/**
|
413
467
|
* Make meta field visible
|
414
468
|
*/
|
@@ -1426,6 +1480,7 @@ declare class Model {
|
|
1426
1480
|
* to the 'defineStore' function of pinia.
|
1427
1481
|
*/
|
1428
1482
|
protected static piniaOptions: {};
|
1483
|
+
protected static piniaExtend: {};
|
1429
1484
|
/**
|
1430
1485
|
* The mutators for the model.
|
1431
1486
|
*/
|
@@ -1650,6 +1705,10 @@ declare class Model {
|
|
1650
1705
|
* Get the pinia options for this model.
|
1651
1706
|
*/
|
1652
1707
|
$piniaOptions(): {};
|
1708
|
+
/**
|
1709
|
+
* Get the extended functionality.
|
1710
|
+
*/
|
1711
|
+
$piniaExtend(): {};
|
1653
1712
|
/**
|
1654
1713
|
* Get the primary key for this model.
|
1655
1714
|
*/
|
@@ -1787,21 +1846,6 @@ type Item<M extends Model = Model> = M | null;
|
|
1787
1846
|
type Collection<M extends Model = Model> = M[];
|
1788
1847
|
type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
|
1789
1848
|
|
1790
|
-
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
|
1791
|
-
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1792
|
-
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1793
|
-
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1794
|
-
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1795
|
-
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1796
|
-
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1797
|
-
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1798
|
-
}>;
|
1799
|
-
interface DataStoreState {
|
1800
|
-
data: Record<string, any>;
|
1801
|
-
[s: string]: any;
|
1802
|
-
}
|
1803
|
-
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1804
|
-
|
1805
1849
|
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1806
1850
|
newRawInstance(): M;
|
1807
1851
|
}
|
@@ -1908,7 +1952,25 @@ declare class Repository<M extends Model = Model> {
|
|
1908
1952
|
/**
|
1909
1953
|
* Returns the pinia store used with this model
|
1910
1954
|
*/
|
1911
|
-
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string,
|
1955
|
+
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, pinia._UnwrapAll<Pick<{
|
1956
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1957
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1958
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1959
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1960
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1961
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1962
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1963
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1964
|
+
}, "data">>, Pick<{
|
1965
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1966
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1967
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1968
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1969
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1970
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1971
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1972
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1973
|
+
}, never>, Pick<{
|
1912
1974
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1913
1975
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1914
1976
|
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1916,7 +1978,8 @@ declare class Repository<M extends Model = Model> {
|
|
1916
1978
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1917
1979
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1918
1980
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1919
|
-
|
1981
|
+
data: vue_demi.Ref<Record<string, any>>;
|
1982
|
+
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
1920
1983
|
/**
|
1921
1984
|
* Create a new repository with the given model.
|
1922
1985
|
*/
|
@@ -2058,4 +2121,4 @@ declare class Repository<M extends Model = Model> {
|
|
2058
2121
|
flush(): M[];
|
2059
2122
|
}
|
2060
2123
|
|
2061
|
-
export {
|
2124
|
+
export { MorphToMany as $, type AfterHook as A, type BeforeHook as B, type Constructor as C, type DataStoreState as D, type Element as E, type FilledInstallOptions as F, type GroupedCollection as G, type WithKeys as H, type Item as I, Attribute as J, type Dictionary as K, type deleteModes as L, Model as M, type NormalizedData as N, Relation as O, type PiniaOrmPluginContext as P, BelongsTo as Q, Repository as R, type StoreActions as S, BelongsToMany as T, HasMany as U, HasOne as V, WeakCache as W, HasManyBy as X, HasManyThrough as Y, MorphMany as Z, MorphTo as _, type Elements as a, MorphOne as a0, type Casts as a1, CastAttribute as a2, type TypeDefault as a3, Type as a4, Interpreter as a5, Query as a6, type Where as a7, type NonMethodKeys as a8, type GetElementType as a9, type UltimateKeys as aa, type WherePrimaryClosure as ab, type WhereSecondaryClosure as ac, type WhereGroup as ad, type Order as ae, type Group as af, type OrderBy as ag, type GroupBy as ah, type GroupByFields as ai, type OrderDirection as aj, type EagerLoad as ak, type EagerLoadConstraint as al, type Mutator as am, type MutatorFunctions as an, type Mutators as ao, type CacheConfig as ap, type PropertyDecorator as aq, type TypeOptions as ar, type UidOptions as as, type NanoidOptions as at, type Collection as b, useDataStore as c, type DataStore as d, type PiniaOrmPlugin as e, definePiniaOrmPlugin as f, type ModelConfigOptions as g, type CacheConfigOptions as h, type PiniaConfigOptions as i, type InstallOptions as j, type CreatePiniaOrm as k, createORM as l, Database as m, type Schemas as n, Schema as o, plugins as p, type ModelFields as q, registerPlugins as r, type ModelSchemas as s, type ModelRegistries as t, useStoreActions as u, type ModelRegistry as v, type PrimaryKey as w, type ModelOptions as x, type MetaValues as y, type InheritanceTypes as z };
|
package/dist/uuid/v1.d.cts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import {
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.cf7a7464.cjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '
|
4
|
+
import 'vue-demi';
|
5
5
|
import '@pinia-orm/normalizr';
|
6
|
+
import '@/composables';
|
6
7
|
|
7
8
|
declare class UidCast extends CastAttribute {
|
8
9
|
static parameters?: V1Options;
|
package/dist/uuid/v1.d.mts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import {
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.cf7a7464.mjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '
|
4
|
+
import 'vue-demi';
|
5
5
|
import '@pinia-orm/normalizr';
|
6
|
+
import '@/composables';
|
6
7
|
|
7
8
|
declare class UidCast extends CastAttribute {
|
8
9
|
static parameters?: V1Options;
|
package/dist/uuid/v1.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import {
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.cf7a7464.js';
|
3
3
|
import 'pinia';
|
4
|
-
import '
|
4
|
+
import 'vue-demi';
|
5
5
|
import '@pinia-orm/normalizr';
|
6
|
+
import '@/composables';
|
6
7
|
|
7
8
|
declare class UidCast extends CastAttribute {
|
8
9
|
static parameters?: V1Options;
|
package/dist/uuid/v4.d.cts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import {
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.cf7a7464.cjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '
|
4
|
+
import 'vue-demi';
|
5
5
|
import '@pinia-orm/normalizr';
|
6
|
+
import '@/composables';
|
6
7
|
|
7
8
|
declare class UidCast extends CastAttribute {
|
8
9
|
static parameters?: V4Options;
|