pinia-orm-edge 1.9.2-28642864.5813664 → 1.9.2-28660070.3210918
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.cjs +1 -0
- package/dist/helpers.d.cts +7 -2
- package/dist/helpers.d.mts +7 -2
- package/dist/helpers.d.ts +7 -2
- package/dist/helpers.mjs +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 +2 -2
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.cjs
CHANGED
package/dist/helpers.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { M as Model, b as Collection } from './shared/pinia-orm.
|
1
|
+
import { M as Model, b as Collection } from './shared/pinia-orm.75041af1.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
@@ -6,6 +6,11 @@ import '@/composables';
|
|
6
6
|
type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
|
7
7
|
|
8
8
|
type sorting<T> = ((record: T) => any) | string | [string, 'asc' | 'desc'][];
|
9
|
+
/**
|
10
|
+
* Creates an array of elements, sorted in specified order by the results
|
11
|
+
* of running each element in a collection thru each iteratee.
|
12
|
+
*/
|
13
|
+
declare function useSortBy<T extends Record<string, any>>(collection: T[], sort: sorting<T>, flags?: SortFlags): T[];
|
9
14
|
|
10
15
|
interface UseCollect<M extends Model = Model> {
|
11
16
|
sum: (field: string) => number;
|
@@ -51,4 +56,4 @@ declare function useMax(models: Collection, field: string): number;
|
|
51
56
|
*/
|
52
57
|
declare function usePluck(models: Collection, field: string): any[];
|
53
58
|
|
54
|
-
export { type UseCollect, useCollect, useGroupBy, useKeys, useMax, useMin, usePluck, useSum };
|
59
|
+
export { type UseCollect, type sorting, useCollect, useGroupBy, useKeys, useMax, useMin, usePluck, useSortBy, useSum };
|
package/dist/helpers.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { M as Model, b as Collection } from './shared/pinia-orm.
|
1
|
+
import { M as Model, b as Collection } from './shared/pinia-orm.75041af1.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
@@ -6,6 +6,11 @@ import '@/composables';
|
|
6
6
|
type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
|
7
7
|
|
8
8
|
type sorting<T> = ((record: T) => any) | string | [string, 'asc' | 'desc'][];
|
9
|
+
/**
|
10
|
+
* Creates an array of elements, sorted in specified order by the results
|
11
|
+
* of running each element in a collection thru each iteratee.
|
12
|
+
*/
|
13
|
+
declare function useSortBy<T extends Record<string, any>>(collection: T[], sort: sorting<T>, flags?: SortFlags): T[];
|
9
14
|
|
10
15
|
interface UseCollect<M extends Model = Model> {
|
11
16
|
sum: (field: string) => number;
|
@@ -51,4 +56,4 @@ declare function useMax(models: Collection, field: string): number;
|
|
51
56
|
*/
|
52
57
|
declare function usePluck(models: Collection, field: string): any[];
|
53
58
|
|
54
|
-
export { type UseCollect, useCollect, useGroupBy, useKeys, useMax, useMin, usePluck, useSum };
|
59
|
+
export { type UseCollect, type sorting, useCollect, useGroupBy, useKeys, useMax, useMin, usePluck, useSortBy, useSum };
|
package/dist/helpers.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { M as Model, b as Collection } from './shared/pinia-orm.
|
1
|
+
import { M as Model, b as Collection } from './shared/pinia-orm.75041af1.js';
|
2
2
|
import 'pinia';
|
3
3
|
import '@pinia-orm/normalizr';
|
4
4
|
import '@/composables';
|
@@ -6,6 +6,11 @@ import '@/composables';
|
|
6
6
|
type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
|
7
7
|
|
8
8
|
type sorting<T> = ((record: T) => any) | string | [string, 'asc' | 'desc'][];
|
9
|
+
/**
|
10
|
+
* Creates an array of elements, sorted in specified order by the results
|
11
|
+
* of running each element in a collection thru each iteratee.
|
12
|
+
*/
|
13
|
+
declare function useSortBy<T extends Record<string, any>>(collection: T[], sort: sorting<T>, flags?: SortFlags): T[];
|
9
14
|
|
10
15
|
interface UseCollect<M extends Model = Model> {
|
11
16
|
sum: (field: string) => number;
|
@@ -51,4 +56,4 @@ declare function useMax(models: Collection, field: string): number;
|
|
51
56
|
*/
|
52
57
|
declare function usePluck(models: Collection, field: string): any[];
|
53
58
|
|
54
|
-
export { type UseCollect, useCollect, useGroupBy, useKeys, useMax, useMin, usePluck, useSum };
|
59
|
+
export { type UseCollect, type sorting, useCollect, useGroupBy, useKeys, useMax, useMin, usePluck, useSortBy, useSum };
|
package/dist/helpers.mjs
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-28660070.3210918",
|
4
4
|
"description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.",
|
5
5
|
"keywords": [
|
6
6
|
"vue",
|
@@ -46,7 +46,7 @@
|
|
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-28660070.3210918"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@nuxt/eslint-config": "^0.3.13",
|