pinia-orm-edge 1.9.2-28642708.5cf3de4 → 1.9.2-28644224.417ef5c
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 +1 -1
- package/dist/casts.d.mts +1 -1
- package/dist/casts.d.ts +1 -1
- package/dist/decorators.d.cts +2 -2
- package/dist/decorators.d.mts +2 -2
- package/dist/decorators.d.ts +2 -2
- package/dist/helpers.d.cts +1 -1
- package/dist/helpers.d.mts +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/nanoid/async.d.cts +1 -1
- package/dist/nanoid/async.d.mts +1 -1
- package/dist/nanoid/async.d.ts +1 -1
- package/dist/nanoid/index.d.cts +1 -1
- package/dist/nanoid/index.d.mts +1 -1
- package/dist/nanoid/index.d.ts +1 -1
- package/dist/nanoid/non-secure.d.cts +1 -1
- package/dist/nanoid/non-secure.d.mts +1 -1
- package/dist/nanoid/non-secure.d.ts +1 -1
- package/dist/shared/{pinia-orm.ef8ba408.d.cts → pinia-orm.75041af1.d.cts} +31 -0
- package/dist/shared/{pinia-orm.ef8ba408.d.mts → pinia-orm.75041af1.d.mts} +31 -0
- package/dist/shared/{pinia-orm.ef8ba408.d.ts → pinia-orm.75041af1.d.ts} +31 -0
- package/dist/uuid/v1.d.cts +1 -1
- package/dist/uuid/v1.d.mts +1 -1
- package/dist/uuid/v1.d.ts +1 -1
- package/dist/uuid/v4.d.cts +1 -1
- package/dist/uuid/v4.d.mts +1 -1
- package/dist/uuid/v4.d.ts +1 -1
- package/package.json +14 -14
package/dist/casts.d.cts
CHANGED
package/dist/casts.d.mts
CHANGED
package/dist/casts.d.ts
CHANGED
package/dist/decorators.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
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.
|
2
|
-
export { aq as NanoidOptions } from './shared/pinia-orm.
|
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';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/decorators.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
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.
|
2
|
-
export { aq as NanoidOptions } from './shared/pinia-orm.
|
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';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/decorators.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
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.
|
2
|
-
export { aq as NanoidOptions } from './shared/pinia-orm.
|
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';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/helpers.d.cts
CHANGED
package/dist/helpers.d.mts
CHANGED
package/dist/helpers.d.ts
CHANGED
package/dist/index.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
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.
|
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.
|
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';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
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.
|
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.
|
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';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
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.
|
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.
|
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';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/nanoid/async.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
package/dist/nanoid/async.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
package/dist/nanoid/async.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
package/dist/nanoid/index.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
package/dist/nanoid/index.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
package/dist/nanoid/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
@@ -1794,6 +1794,37 @@ interface DataStoreState {
|
|
1794
1794
|
}
|
1795
1795
|
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1796
1796
|
|
1797
|
+
interface Repository<M extends Model = Model> {
|
1798
|
+
/**
|
1799
|
+
* Add a where clause where `field` value is in values.
|
1800
|
+
*/
|
1801
|
+
whereIn(field: string, values: any[] | Set<any>): Query<M>;
|
1802
|
+
/**
|
1803
|
+
* Add a where clause where `field` value is in values or ...
|
1804
|
+
*/
|
1805
|
+
orWhereIn(field: string, values: any[] | Set<any>): Query<M>;
|
1806
|
+
/**
|
1807
|
+
* Add a where clause where `field` value is not in values or ...
|
1808
|
+
*/
|
1809
|
+
orWhereNotIn(field: string, values: any[] | Set<any>): Query<M>;
|
1810
|
+
/**
|
1811
|
+
* Add a where clause where `field` has not defined values
|
1812
|
+
*/
|
1813
|
+
whereNotIn(field: string, values: any[] | Set<any>): Query<M>;
|
1814
|
+
/**
|
1815
|
+
* Add a where clause to get all results where `field` is null
|
1816
|
+
*/
|
1817
|
+
whereNull(field: string): Query<M>;
|
1818
|
+
/**
|
1819
|
+
* Add a where clause to get all results where `field` is not null
|
1820
|
+
*/
|
1821
|
+
whereNotNull(field: string): Query<M>;
|
1822
|
+
/**
|
1823
|
+
* Find the model with the given id.
|
1824
|
+
*/
|
1825
|
+
find(id: string | number): Item<M>;
|
1826
|
+
find(ids: (string | number)[]): Collection<M>;
|
1827
|
+
}
|
1797
1828
|
declare class Repository<M extends Model = Model> {
|
1798
1829
|
[index: string]: any;
|
1799
1830
|
/**
|
@@ -1794,6 +1794,37 @@ interface DataStoreState {
|
|
1794
1794
|
}
|
1795
1795
|
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1796
1796
|
|
1797
|
+
interface Repository<M extends Model = Model> {
|
1798
|
+
/**
|
1799
|
+
* Add a where clause where `field` value is in values.
|
1800
|
+
*/
|
1801
|
+
whereIn(field: string, values: any[] | Set<any>): Query<M>;
|
1802
|
+
/**
|
1803
|
+
* Add a where clause where `field` value is in values or ...
|
1804
|
+
*/
|
1805
|
+
orWhereIn(field: string, values: any[] | Set<any>): Query<M>;
|
1806
|
+
/**
|
1807
|
+
* Add a where clause where `field` value is not in values or ...
|
1808
|
+
*/
|
1809
|
+
orWhereNotIn(field: string, values: any[] | Set<any>): Query<M>;
|
1810
|
+
/**
|
1811
|
+
* Add a where clause where `field` has not defined values
|
1812
|
+
*/
|
1813
|
+
whereNotIn(field: string, values: any[] | Set<any>): Query<M>;
|
1814
|
+
/**
|
1815
|
+
* Add a where clause to get all results where `field` is null
|
1816
|
+
*/
|
1817
|
+
whereNull(field: string): Query<M>;
|
1818
|
+
/**
|
1819
|
+
* Add a where clause to get all results where `field` is not null
|
1820
|
+
*/
|
1821
|
+
whereNotNull(field: string): Query<M>;
|
1822
|
+
/**
|
1823
|
+
* Find the model with the given id.
|
1824
|
+
*/
|
1825
|
+
find(id: string | number): Item<M>;
|
1826
|
+
find(ids: (string | number)[]): Collection<M>;
|
1827
|
+
}
|
1797
1828
|
declare class Repository<M extends Model = Model> {
|
1798
1829
|
[index: string]: any;
|
1799
1830
|
/**
|
@@ -1794,6 +1794,37 @@ interface DataStoreState {
|
|
1794
1794
|
}
|
1795
1795
|
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1796
1796
|
|
1797
|
+
interface Repository<M extends Model = Model> {
|
1798
|
+
/**
|
1799
|
+
* Add a where clause where `field` value is in values.
|
1800
|
+
*/
|
1801
|
+
whereIn(field: string, values: any[] | Set<any>): Query<M>;
|
1802
|
+
/**
|
1803
|
+
* Add a where clause where `field` value is in values or ...
|
1804
|
+
*/
|
1805
|
+
orWhereIn(field: string, values: any[] | Set<any>): Query<M>;
|
1806
|
+
/**
|
1807
|
+
* Add a where clause where `field` value is not in values or ...
|
1808
|
+
*/
|
1809
|
+
orWhereNotIn(field: string, values: any[] | Set<any>): Query<M>;
|
1810
|
+
/**
|
1811
|
+
* Add a where clause where `field` has not defined values
|
1812
|
+
*/
|
1813
|
+
whereNotIn(field: string, values: any[] | Set<any>): Query<M>;
|
1814
|
+
/**
|
1815
|
+
* Add a where clause to get all results where `field` is null
|
1816
|
+
*/
|
1817
|
+
whereNull(field: string): Query<M>;
|
1818
|
+
/**
|
1819
|
+
* Add a where clause to get all results where `field` is not null
|
1820
|
+
*/
|
1821
|
+
whereNotNull(field: string): Query<M>;
|
1822
|
+
/**
|
1823
|
+
* Find the model with the given id.
|
1824
|
+
*/
|
1825
|
+
find(id: string | number): Item<M>;
|
1826
|
+
find(ids: (string | number)[]): Collection<M>;
|
1827
|
+
}
|
1797
1828
|
declare class Repository<M extends Model = Model> {
|
1798
1829
|
[index: string]: any;
|
1799
1830
|
/**
|
package/dist/uuid/v1.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/uuid/v1.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/uuid/v1.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/uuid/v4.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.cjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/uuid/v4.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.mjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/dist/uuid/v4.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.75041af1.js';
|
3
3
|
import 'pinia';
|
4
4
|
import '@pinia-orm/normalizr';
|
5
5
|
import '@/composables';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pinia-orm-edge",
|
3
|
-
"version": "1.9.2-
|
3
|
+
"version": "1.9.2-28644224.417ef5c",
|
4
4
|
"description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.",
|
5
5
|
"keywords": [
|
6
6
|
"vue",
|
@@ -46,39 +46,39 @@
|
|
46
46
|
"pinia": "^2.1.7"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.2-
|
49
|
+
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.2-28644224.417ef5c"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
|
-
"@nuxt/eslint-config": "^0.3.
|
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.
|
56
|
+
"@types/node": "^20.14.2",
|
57
57
|
"@types/prettier": "^3.0.0",
|
58
58
|
"@types/uuid": "^9.0.8",
|
59
|
-
"@typescript-eslint/parser": "^7.
|
59
|
+
"@typescript-eslint/parser": "^7.13.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
|
-
"c8": "^10.
|
64
|
+
"c8": "^10.1.2",
|
65
65
|
"core-js": "^3.37.1",
|
66
|
-
"eslint": "^9.
|
67
|
-
"happy-dom": "^14.
|
66
|
+
"eslint": "^9.5.0",
|
67
|
+
"happy-dom": "^14.12.0",
|
68
68
|
"mkdist": "^1.5.1",
|
69
69
|
"nanoid": "4.0.2",
|
70
70
|
"pinia": "^2.1.7",
|
71
|
-
"prettier": "^3.2
|
71
|
+
"prettier": "^3.3.2",
|
72
72
|
"size-limit": "^11.1.4",
|
73
73
|
"std-env": "^3.7.0",
|
74
|
-
"tsup": "^8.0
|
74
|
+
"tsup": "^8.1.0",
|
75
75
|
"typescript": "^5.4.5",
|
76
76
|
"unbuild": "^2.0.0",
|
77
77
|
"uuid": "^10.0.0",
|
78
|
-
"vite": "^5.
|
78
|
+
"vite": "^5.3.1",
|
79
79
|
"vitest": "^1.6.0",
|
80
|
-
"vue": "^3.4.
|
81
|
-
"vue-demi": "^0.14.
|
80
|
+
"vue": "^3.4.29",
|
81
|
+
"vue-demi": "^0.14.8",
|
82
82
|
"vue2": "npm:vue@^2.7.3"
|
83
83
|
},
|
84
84
|
"size-limit": [
|
@@ -100,7 +100,7 @@
|
|
100
100
|
}
|
101
101
|
],
|
102
102
|
"volta": {
|
103
|
-
"node": "20.
|
103
|
+
"node": "20.14.0"
|
104
104
|
},
|
105
105
|
"repository": {
|
106
106
|
"type": "git",
|