pinia-orm-edge 1.9.2-28661520.9747a33 → 1.9.2-28671617.1e76c05

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 CHANGED
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.75041af1.cjs';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ae01a7ce.cjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class ArrayCast extends CastAttribute {
7
7
  /**
package/dist/casts.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.75041af1.mjs';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ae01a7ce.mjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class ArrayCast extends CastAttribute {
7
7
  /**
package/dist/casts.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.75041af1.js';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ae01a7ce.js';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class ArrayCast extends CastAttribute {
7
7
  /**
@@ -1,8 +1,8 @@
1
- import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.75041af1.cjs';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.75041af1.cjs';
1
+ import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.ae01a7ce.cjs';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.ae01a7ce.cjs';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  /**
8
8
  * Create an Attr attribute property decorator.
@@ -1,8 +1,8 @@
1
- import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.75041af1.mjs';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.75041af1.mjs';
1
+ import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.ae01a7ce.mjs';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.ae01a7ce.mjs';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  /**
8
8
  * Create an Attr attribute property decorator.
@@ -1,8 +1,8 @@
1
- import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.75041af1.js';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.75041af1.js';
1
+ import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.ae01a7ce.js';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.ae01a7ce.js';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  /**
8
8
  * Create an Attr attribute property decorator.
@@ -1,7 +1,7 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.75041af1.cjs';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.ae01a7ce.cjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
7
7
 
@@ -1,7 +1,7 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.75041af1.mjs';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.ae01a7ce.mjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
7
7
 
package/dist/helpers.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.75041af1.js';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.ae01a7ce.js';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
7
7
 
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.75041af1.cjs';
2
- export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.75041af1.cjs';
1
+ import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.ae01a7ce.cjs';
2
+ export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.ae01a7ce.cjs';
3
3
  import { Pinia } from 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare function useRepo<R extends Repository<any>>(repository: R | Constructor<R>, pinia?: Pinia): R;
8
8
  declare function useRepo<M extends Model>(model: Constructor<M>, pinia?: Pinia): Repository<M>;
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.75041af1.mjs';
2
- export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.75041af1.mjs';
1
+ import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.ae01a7ce.mjs';
2
+ export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.ae01a7ce.mjs';
3
3
  import { Pinia } from 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare function useRepo<R extends Repository<any>>(repository: R | Constructor<R>, pinia?: Pinia): R;
8
8
  declare function useRepo<M extends Model>(model: Constructor<M>, pinia?: Pinia): Repository<M>;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.75041af1.js';
2
- export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.75041af1.js';
1
+ import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.ae01a7ce.js';
2
+ export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.ae01a7ce.js';
3
3
  import { Pinia } from 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare function useRepo<R extends Repository<any>>(repository: R | Constructor<R>, pinia?: Pinia): R;
8
8
  declare function useRepo<M extends Model>(model: Constructor<M>, pinia?: Pinia): Repository<M>;
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  /**
7
7
  * Create a cast nanoid/async.
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  /**
7
7
  * Create a cast nanoid/async.
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  /**
7
7
  * Create a cast nanoid/async.
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class UidCast extends CastAttribute {
7
7
  static parameters?: NanoidOptions;
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class UidCast extends CastAttribute {
7
7
  static parameters?: NanoidOptions;
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class UidCast extends CastAttribute {
7
7
  static parameters?: NanoidOptions;
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class UidCast extends CastAttribute {
7
7
  static parameters?: NanoidOptions;
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class UidCast extends CastAttribute {
7
7
  static parameters?: NanoidOptions;
@@ -1,7 +1,7 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
2
2
  import 'pinia';
3
- import '@pinia-orm/normalizr';
4
3
  import '@/composables';
4
+ import '@pinia-orm/normalizr';
5
5
 
6
6
  declare class UidCast extends CastAttribute {
7
7
  static parameters?: NanoidOptions;
@@ -1,7 +1,7 @@
1
1
  import * as pinia from 'pinia';
2
2
  import { PiniaPlugin, Pinia, DefineStoreOptionsBase } from 'pinia';
3
- import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
4
3
  import * as __composables from '@/composables';
4
+ import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
5
5
 
6
6
  interface Constructor<T> {
7
7
  new (...args: any[]): T;
@@ -1775,18 +1775,14 @@ type Item<M extends Model = Model> = M | null;
1775
1775
  type Collection<M extends Model = Model> = M[];
1776
1776
  type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
1777
1777
 
1778
- interface ModelConstructor<M extends Model> extends Constructor<M> {
1779
- newRawInstance(): M;
1780
- }
1781
-
1782
1778
  declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
1783
- save(this: any, records: Elements, triggerQueryAction?: boolean): void;
1784
- insert(this: any, records: Elements, triggerQueryAction?: boolean): void;
1785
- update(this: any, records: Elements, triggerQueryAction?: boolean): void;
1786
- fresh(this: any, records: Elements, triggerQueryAction?: boolean): void;
1787
- destroy(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1788
- delete(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1789
- flush(this: any, _records?: Elements | undefined, triggerQueryAction?: boolean): void;
1779
+ save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1780
+ insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1781
+ update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1782
+ fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1783
+ destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1784
+ delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1785
+ flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
1790
1786
  }>;
1791
1787
  interface DataStoreState {
1792
1788
  data: Record<string, any>;
@@ -1794,6 +1790,10 @@ interface DataStoreState {
1794
1790
  }
1795
1791
  type DataStore = ReturnType<typeof __composables['useDataStore']>;
1796
1792
 
1793
+ interface ModelConstructor<M extends Model> extends Constructor<M> {
1794
+ newRawInstance(): M;
1795
+ }
1796
+
1797
1797
  interface Repository<M extends Model = Model> {
1798
1798
  /**
1799
1799
  * Add a where clause where `field` value is in values.
@@ -1897,13 +1897,13 @@ declare class Repository<M extends Model = Model> {
1897
1897
  * Returns the pinia store used with this model
1898
1898
  */
1899
1899
  piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, S, {}, {
1900
- save(this: any, records: Elements, triggerQueryAction?: boolean): void;
1901
- insert(this: any, records: Elements, triggerQueryAction?: boolean): void;
1902
- update(this: any, records: Elements, triggerQueryAction?: boolean): void;
1903
- fresh(this: any, records: Elements, triggerQueryAction?: boolean): void;
1904
- destroy(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1905
- delete(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1906
- flush(this: any, _records?: Elements | undefined, triggerQueryAction?: boolean): void;
1900
+ save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1901
+ insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1902
+ update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1903
+ fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1904
+ destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1905
+ delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1906
+ flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
1907
1907
  }>;
1908
1908
  /**
1909
1909
  * Create a new repository with the given model.
@@ -1,7 +1,7 @@
1
1
  import * as pinia from 'pinia';
2
2
  import { PiniaPlugin, Pinia, DefineStoreOptionsBase } from 'pinia';
3
- import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
4
3
  import * as __composables from '@/composables';
4
+ import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
5
5
 
6
6
  interface Constructor<T> {
7
7
  new (...args: any[]): T;
@@ -1775,18 +1775,14 @@ type Item<M extends Model = Model> = M | null;
1775
1775
  type Collection<M extends Model = Model> = M[];
1776
1776
  type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
1777
1777
 
1778
- interface ModelConstructor<M extends Model> extends Constructor<M> {
1779
- newRawInstance(): M;
1780
- }
1781
-
1782
1778
  declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
1783
- save(this: any, records: Elements, triggerQueryAction?: boolean): void;
1784
- insert(this: any, records: Elements, triggerQueryAction?: boolean): void;
1785
- update(this: any, records: Elements, triggerQueryAction?: boolean): void;
1786
- fresh(this: any, records: Elements, triggerQueryAction?: boolean): void;
1787
- destroy(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1788
- delete(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1789
- flush(this: any, _records?: Elements | undefined, triggerQueryAction?: boolean): void;
1779
+ save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1780
+ insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1781
+ update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1782
+ fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1783
+ destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1784
+ delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1785
+ flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
1790
1786
  }>;
1791
1787
  interface DataStoreState {
1792
1788
  data: Record<string, any>;
@@ -1794,6 +1790,10 @@ interface DataStoreState {
1794
1790
  }
1795
1791
  type DataStore = ReturnType<typeof __composables['useDataStore']>;
1796
1792
 
1793
+ interface ModelConstructor<M extends Model> extends Constructor<M> {
1794
+ newRawInstance(): M;
1795
+ }
1796
+
1797
1797
  interface Repository<M extends Model = Model> {
1798
1798
  /**
1799
1799
  * Add a where clause where `field` value is in values.
@@ -1897,13 +1897,13 @@ declare class Repository<M extends Model = Model> {
1897
1897
  * Returns the pinia store used with this model
1898
1898
  */
1899
1899
  piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, S, {}, {
1900
- save(this: any, records: Elements, triggerQueryAction?: boolean): void;
1901
- insert(this: any, records: Elements, triggerQueryAction?: boolean): void;
1902
- update(this: any, records: Elements, triggerQueryAction?: boolean): void;
1903
- fresh(this: any, records: Elements, triggerQueryAction?: boolean): void;
1904
- destroy(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1905
- delete(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1906
- flush(this: any, _records?: Elements | undefined, triggerQueryAction?: boolean): void;
1900
+ save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1901
+ insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1902
+ update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1903
+ fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1904
+ destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1905
+ delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1906
+ flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
1907
1907
  }>;
1908
1908
  /**
1909
1909
  * Create a new repository with the given model.
@@ -1,7 +1,7 @@
1
1
  import * as pinia from 'pinia';
2
2
  import { PiniaPlugin, Pinia, DefineStoreOptionsBase } from 'pinia';
3
- import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
4
3
  import * as __composables from '@/composables';
4
+ import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
5
5
 
6
6
  interface Constructor<T> {
7
7
  new (...args: any[]): T;
@@ -1775,18 +1775,14 @@ type Item<M extends Model = Model> = M | null;
1775
1775
  type Collection<M extends Model = Model> = M[];
1776
1776
  type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
1777
1777
 
1778
- interface ModelConstructor<M extends Model> extends Constructor<M> {
1779
- newRawInstance(): M;
1780
- }
1781
-
1782
1778
  declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
1783
- save(this: any, records: Elements, triggerQueryAction?: boolean): void;
1784
- insert(this: any, records: Elements, triggerQueryAction?: boolean): void;
1785
- update(this: any, records: Elements, triggerQueryAction?: boolean): void;
1786
- fresh(this: any, records: Elements, triggerQueryAction?: boolean): void;
1787
- destroy(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1788
- delete(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1789
- flush(this: any, _records?: Elements | undefined, triggerQueryAction?: boolean): void;
1779
+ save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1780
+ insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1781
+ update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1782
+ fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1783
+ destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1784
+ delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1785
+ flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
1790
1786
  }>;
1791
1787
  interface DataStoreState {
1792
1788
  data: Record<string, any>;
@@ -1794,6 +1790,10 @@ interface DataStoreState {
1794
1790
  }
1795
1791
  type DataStore = ReturnType<typeof __composables['useDataStore']>;
1796
1792
 
1793
+ interface ModelConstructor<M extends Model> extends Constructor<M> {
1794
+ newRawInstance(): M;
1795
+ }
1796
+
1797
1797
  interface Repository<M extends Model = Model> {
1798
1798
  /**
1799
1799
  * Add a where clause where `field` value is in values.
@@ -1897,13 +1897,13 @@ declare class Repository<M extends Model = Model> {
1897
1897
  * Returns the pinia store used with this model
1898
1898
  */
1899
1899
  piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, S, {}, {
1900
- save(this: any, records: Elements, triggerQueryAction?: boolean): void;
1901
- insert(this: any, records: Elements, triggerQueryAction?: boolean): void;
1902
- update(this: any, records: Elements, triggerQueryAction?: boolean): void;
1903
- fresh(this: any, records: Elements, triggerQueryAction?: boolean): void;
1904
- destroy(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1905
- delete(this: any, ids: (string | number)[], triggerQueryAction?: boolean): void;
1906
- flush(this: any, _records?: Elements | undefined, triggerQueryAction?: boolean): void;
1900
+ save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1901
+ insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1902
+ update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1903
+ fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
1904
+ destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1905
+ delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
1906
+ flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
1907
1907
  }>;
1908
1908
  /**
1909
1909
  * Create a new repository with the given model.
@@ -1,8 +1,8 @@
1
1
  import { V1Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare class UidCast extends CastAttribute {
8
8
  static parameters?: V1Options;
@@ -1,8 +1,8 @@
1
1
  import { V1Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare class UidCast extends CastAttribute {
8
8
  static parameters?: V1Options;
package/dist/uuid/v1.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { V1Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare class UidCast extends CastAttribute {
8
8
  static parameters?: V1Options;
@@ -1,8 +1,8 @@
1
1
  import { V4Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare class UidCast extends CastAttribute {
8
8
  static parameters?: V4Options;
@@ -1,8 +1,8 @@
1
1
  import { V4Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare class UidCast extends CastAttribute {
8
8
  static parameters?: V4Options;
package/dist/uuid/v4.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { V4Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
3
3
  import 'pinia';
4
- import '@pinia-orm/normalizr';
5
4
  import '@/composables';
5
+ import '@pinia-orm/normalizr';
6
6
 
7
7
  declare class UidCast extends CastAttribute {
8
8
  static parameters?: V4Options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinia-orm-edge",
3
- "version": "1.9.2-28661520.9747a33",
3
+ "version": "1.9.2-28671617.1e76c05",
4
4
  "description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.",
5
5
  "keywords": [
6
6
  "vue",
@@ -46,38 +46,38 @@
46
46
  "pinia": "^2.1.7"
47
47
  },
48
48
  "dependencies": {
49
- "@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.2-28661520.9747a33"
49
+ "@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.2-28671617.1e76c05"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@nuxt/eslint-config": "^0.3.13",
53
53
  "@nuxtjs/eslint-config-typescript": "^12.1.0",
54
54
  "@pinia/testing": "^0.1.3",
55
55
  "@size-limit/preset-small-lib": "^11.1.4",
56
- "@types/node": "^20.14.2",
56
+ "@types/node": "^20.14.9",
57
57
  "@types/prettier": "^3.0.0",
58
- "@types/uuid": "^9.0.8",
59
- "@typescript-eslint/parser": "^7.13.0",
58
+ "@types/uuid": "^10.0.0",
59
+ "@typescript-eslint/parser": "^7.15.0",
60
60
  "@vitest/coverage-v8": "^1.6.0",
61
61
  "@vitest/ui": "^1.6.0",
62
62
  "@vue/composition-api": "^1.7.2",
63
63
  "@vue/test-utils": "^2.4.6",
64
64
  "c8": "^10.1.2",
65
65
  "core-js": "^3.37.1",
66
- "eslint": "^9.5.0",
67
- "happy-dom": "^14.12.0",
68
- "mkdist": "^1.5.1",
66
+ "eslint": "^9.6.0",
67
+ "happy-dom": "^14.12.3",
68
+ "mkdist": "^1.5.3",
69
69
  "nanoid": "4.0.2",
70
70
  "pinia": "^2.1.7",
71
71
  "prettier": "^3.3.2",
72
72
  "size-limit": "^11.1.4",
73
73
  "std-env": "^3.7.0",
74
74
  "tsup": "^8.1.0",
75
- "typescript": "^5.4.5",
75
+ "typescript": "^5.5.3",
76
76
  "unbuild": "^2.0.0",
77
77
  "uuid": "^10.0.0",
78
- "vite": "^5.3.1",
78
+ "vite": "^5.3.3",
79
79
  "vitest": "^1.6.0",
80
- "vue": "^3.4.29",
80
+ "vue": "^3.4.31",
81
81
  "vue-demi": "^0.14.8",
82
82
  "vue2": "npm:vue@^2.7.3"
83
83
  },
@@ -100,7 +100,7 @@
100
100
  }
101
101
  ],
102
102
  "volta": {
103
- "node": "20.14.0"
103
+ "node": "20.15.0"
104
104
  },
105
105
  "repository": {
106
106
  "type": "git",