pinia-orm-edge 1.10.0-28874500.3e4041b → 1.10.0-28876005.15f5c42

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,4 +1,4 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.90cdba8c.cjs';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.fd1280fe.cjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
package/dist/casts.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.90cdba8c.mjs';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.fd1280fe.mjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
package/dist/casts.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.90cdba8c.js';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.fd1280fe.js';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -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.90cdba8c.cjs';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.90cdba8c.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.fd1280fe.cjs';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.fd1280fe.cjs';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
@@ -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.90cdba8c.mjs';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.90cdba8c.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.fd1280fe.mjs';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.fd1280fe.mjs';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
@@ -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.90cdba8c.js';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.90cdba8c.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.fd1280fe.js';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.fd1280fe.js';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.90cdba8c.cjs';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.fd1280fe.cjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.90cdba8c.mjs';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.fd1280fe.mjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
package/dist/helpers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.90cdba8c.js';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.fd1280fe.js';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
package/dist/index.cjs CHANGED
@@ -3391,6 +3391,7 @@ class Model {
3391
3391
  * by the attributes default value.
3392
3392
  */
3393
3393
  $fill(attributes = {}, options = {}) {
3394
+ var _a, _b;
3394
3395
  const operation = options.operation ?? "get";
3395
3396
  const modelConfig = {
3396
3397
  ...config.model,
@@ -3429,7 +3430,7 @@ class Model {
3429
3430
  }
3430
3431
  this[key] = this[key] ?? keyValue;
3431
3432
  }
3432
- operation === "set" && (this.$self().original[this.$getKey(this, true)] = this.$getAttributes());
3433
+ operation === "set" && (((_a = this.$self().original)[_b = this.$modelEntity()] ?? (_a[_b] = {}))[this.$getKey(this, true)] = this.$getAttributes());
3433
3434
  modelConfig.withMeta && operation === "set" && this.$fillMeta(options.action);
3434
3435
  return this;
3435
3436
  }
@@ -3577,7 +3578,8 @@ class Model {
3577
3578
  * Get the original values of the model instance
3578
3579
  */
3579
3580
  $getOriginal() {
3580
- return this.$self().original[this.$getKey(this, true)];
3581
+ var _a, _b;
3582
+ return ((_a = this.$self().original)[_b = this.$modelEntity()] ?? (_a[_b] = {}))[this.$getKey(this, true)];
3581
3583
  }
3582
3584
  /**
3583
3585
  * Return the model instance with its original state
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.90cdba8c.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.90cdba8c.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.fd1280fe.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.fd1280fe.cjs';
3
3
  import { Pinia } from 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
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.90cdba8c.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.90cdba8c.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.fd1280fe.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.fd1280fe.mjs';
3
3
  import { Pinia } from 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
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.90cdba8c.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.90cdba8c.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.fd1280fe.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.fd1280fe.js';
3
3
  import { Pinia } from 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
package/dist/index.mjs CHANGED
@@ -3389,6 +3389,7 @@ class Model {
3389
3389
  * by the attributes default value.
3390
3390
  */
3391
3391
  $fill(attributes = {}, options = {}) {
3392
+ var _a, _b;
3392
3393
  const operation = options.operation ?? "get";
3393
3394
  const modelConfig = {
3394
3395
  ...config.model,
@@ -3427,7 +3428,7 @@ class Model {
3427
3428
  }
3428
3429
  this[key] = this[key] ?? keyValue;
3429
3430
  }
3430
- operation === "set" && (this.$self().original[this.$getKey(this, true)] = this.$getAttributes());
3431
+ operation === "set" && (((_a = this.$self().original)[_b = this.$modelEntity()] ?? (_a[_b] = {}))[this.$getKey(this, true)] = this.$getAttributes());
3431
3432
  modelConfig.withMeta && operation === "set" && this.$fillMeta(options.action);
3432
3433
  return this;
3433
3434
  }
@@ -3575,7 +3576,8 @@ class Model {
3575
3576
  * Get the original values of the model instance
3576
3577
  */
3577
3578
  $getOriginal() {
3578
- return this.$self().original[this.$getKey(this, true)];
3579
+ var _a, _b;
3580
+ return ((_a = this.$self().original)[_b = this.$modelEntity()] ?? (_a[_b] = {}))[this.$getKey(this, true)];
3579
3581
  }
3580
3582
  /**
3581
3583
  * Return the model instance with its original state
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.cjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.mjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.js';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.cjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.mjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.js';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.cjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.mjs';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.90cdba8c.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.js';
2
2
  import 'pinia';
3
3
  import '@/composables';
4
4
  import '@pinia-orm/normalizr';
@@ -1409,7 +1409,7 @@ declare class Model {
1409
1409
  /**
1410
1410
  * Original model data.
1411
1411
  */
1412
- protected static original: Record<string, any>;
1412
+ protected static original: Record<string, Record<string, Element>>;
1413
1413
  /**
1414
1414
  * The schema for the model. It contains the result of the `fields`
1415
1415
  * method or the attributes defined by decorators.
@@ -1409,7 +1409,7 @@ declare class Model {
1409
1409
  /**
1410
1410
  * Original model data.
1411
1411
  */
1412
- protected static original: Record<string, any>;
1412
+ protected static original: Record<string, Record<string, Element>>;
1413
1413
  /**
1414
1414
  * The schema for the model. It contains the result of the `fields`
1415
1415
  * method or the attributes defined by decorators.
@@ -1409,7 +1409,7 @@ declare class Model {
1409
1409
  /**
1410
1410
  * Original model data.
1411
1411
  */
1412
- protected static original: Record<string, any>;
1412
+ protected static original: Record<string, Record<string, Element>>;
1413
1413
  /**
1414
1414
  * The schema for the model. It contains the result of the `fields`
1415
1415
  * method or the attributes defined by decorators.
@@ -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.90cdba8c.cjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.cjs';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
@@ -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.90cdba8c.mjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.mjs';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
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.90cdba8c.js';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.js';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
@@ -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.90cdba8c.cjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.cjs';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
@@ -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.90cdba8c.mjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.mjs';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
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.90cdba8c.js';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.fd1280fe.js';
3
3
  import 'pinia';
4
4
  import '@/composables';
5
5
  import '@pinia-orm/normalizr';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinia-orm-edge",
3
- "version": "1.10.0-28874500.3e4041b",
3
+ "version": "1.10.0-28876005.15f5c42",
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.10.0-28874500.3e4041b"
49
+ "@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.10.0-28876005.15f5c42"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@nuxt/eslint-config": "^0.3.13",