├── .editorconfig ├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── build.yml │ └── test.yml ├── .gitignore ├── .prettierrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docs ├── .vuepress │ └── config.js ├── CNAME ├── README.md ├── deploy.sh └── guide │ ├── digging-deeper │ └── plugins.md │ ├── model │ ├── accessors.md │ ├── decorators.md │ └── getting-started.md │ ├── prologue │ ├── getting-started.md │ ├── installation.md │ ├── sponsors.md │ └── what-is-vuex-orm.md │ ├── relationships │ ├── getting-started.md │ ├── one-to-many.md │ ├── one-to-one.md │ └── polymorphic.md │ └── repository │ ├── deleting-data.md │ ├── getting-started.md │ ├── inserting-data.md │ ├── retrieving-data.md │ └── updating-data.md ├── jest.config.js ├── logo-vuex-orm.png ├── package.json ├── rollup.config.js ├── scripts ├── build.mjs └── release.mjs ├── src ├── connection │ └── Connection.ts ├── data │ └── Data.ts ├── database │ └── Database.ts ├── events │ └── Events.ts ├── helpers │ └── Helpers.ts ├── index.cjs.ts ├── index.ts ├── interpreter │ └── Interpreter.ts ├── model │ ├── Model.ts │ ├── ModelConstructor.ts │ ├── attributes │ │ ├── Attribute.ts │ │ ├── relations │ │ │ ├── BelongsTo.ts │ │ │ ├── HasMany.ts │ │ │ ├── HasManyBy.ts │ │ │ ├── HasOne.ts │ │ │ ├── MorphOne.ts │ │ │ ├── MorphTo.ts │ │ │ └── Relation.ts │ │ └── types │ │ │ ├── Attr.ts │ │ │ ├── Boolean.ts │ │ │ ├── Number.ts │ │ │ ├── String.ts │ │ │ ├── Type.ts │ │ │ └── Uid.ts │ └── decorators │ │ ├── Contracts.ts │ │ ├── NonEnumerable.ts │ │ └── attributes │ │ ├── relations │ │ ├── BelongsTo.ts │ │ ├── HasMany.ts │ │ ├── HasManyBy.ts │ │ ├── HasOne.ts │ │ ├── MorphOne.ts │ │ └── MorphTo.ts │ │ └── types │ │ ├── Attr.ts │ │ ├── Bool.ts │ │ ├── Num.ts │ │ ├── Str.ts │ │ └── Uid.ts ├── modules │ ├── Module.ts │ ├── Mutations.ts │ ├── RootModule.ts │ ├── RootState.ts │ └── State.ts ├── plugin │ └── Plugin.ts ├── polyfills │ └── Polyfills.ts ├── query │ ├── Options.ts │ └── Query.ts ├── repository │ └── Repository.ts ├── schema │ └── Schema.ts ├── store │ └── Store.ts ├── support │ └── Utils.ts └── types │ ├── global.d.ts │ ├── index.ts │ └── vuex.ts ├── test ├── Helpers.ts ├── feature │ ├── helpers │ │ └── helpers.spec.ts │ ├── plugin │ │ └── plugin.spec.ts │ ├── relations │ │ ├── belongs_to_retrieve.spec.ts │ │ ├── belongs_to_save.spec.ts │ │ ├── belongs_to_save_custom_key.spec.ts │ │ ├── belongs_to_save_uid.spec.ts │ │ ├── constraints │ │ │ └── constraints.spec.ts │ │ ├── eager_loads │ │ │ ├── eager_loads_all.spec.ts │ │ │ └── eager_loads_recursive.spec.ts │ │ ├── has_many_by_retrieve.spec.ts │ │ ├── has_many_by_save.spec.ts │ │ ├── has_many_by_save_custom_key.spec.ts │ │ ├── has_many_by_save_uid.spec.ts │ │ ├── has_many_retrieve.spec.ts │ │ ├── has_many_save.spec.ts │ │ ├── has_many_save_custom_key.spec.ts │ │ ├── has_many_save_uid.spec.ts │ │ ├── has_one_retrieve.spec.ts │ │ ├── has_one_save.spec.ts │ │ ├── has_one_save_custom_key.spec.ts │ │ ├── has_one_save_uid.spec.ts │ │ ├── lazy_loads │ │ │ └── lazy_eager_load.spec.ts │ │ ├── mitigations │ │ │ ├── _fixtures │ │ │ │ ├── circular_relations_phone.ts │ │ │ │ └── circular_relations_user.ts │ │ │ └── circular_relations.spec.ts │ │ ├── morph_one_retrieve.spec.ts │ │ ├── morph_one_save.spec.ts │ │ ├── morph_one_save_custom_key.spec.ts │ │ ├── morph_one_save_uid.spec.ts │ │ ├── morph_to_retrieve.spec.ts │ │ ├── morph_to_save.spec.ts │ │ ├── morph_to_save_custom_key.spec.ts │ │ ├── morph_to_save_uid.spec.ts │ │ └── nested │ │ │ ├── nested_relations.spec.ts │ │ │ └── nested_revive.spec.ts │ ├── repository │ │ ├── delete.spec.ts │ │ ├── destroy.spec.ts │ │ ├── destroy_composite_key.spec.ts │ │ ├── flush.spec.ts │ │ ├── fresh.spec.ts │ │ ├── fresh_composite_key.spec.ts │ │ ├── fresh_uid.spec.ts │ │ ├── insert.spec.ts │ │ ├── insert_composite_key.spec.ts │ │ ├── insert_uid.spec.ts │ │ ├── new.spec.ts │ │ ├── retrieves_all.spec.ts │ │ ├── retrieves_find.spec.ts │ │ ├── retrieves_limit.spec.ts │ │ ├── retrieves_offset.spec.ts │ │ ├── retrieves_order_by.spec.ts │ │ ├── retrieves_revive.spec.ts │ │ ├── retrieves_where.spec.ts │ │ ├── retrieves_where_or.spec.ts │ │ ├── save.spec.ts │ │ └── update.spec.ts │ └── repository_custom │ │ └── custom_repository.spec.ts ├── performance │ └── save_has_many_relation.spec.ts ├── regression │ └── normalizing_nested_relations_missing_parent_model.spec.ts ├── setup.ts └── unit │ ├── VuexORM.spec.ts │ ├── decorators │ └── NonEnumerable.spec.ts │ ├── events │ └── Events.spec.ts │ ├── model │ ├── Model.spec.ts │ ├── Model_Attrs_Boolean.spec.ts │ ├── Model_Attrs_Number.spec.ts │ ├── Model_Attrs_String.spec.ts │ ├── Model_Attrs_UID.spec.ts │ ├── Model_Fields.spec.ts │ ├── Model_Keys.spec.ts │ ├── Model_Relations.spec.ts │ ├── Model_Sanitize.spec.ts │ └── Model_Serialization.spec.ts │ ├── repository │ └── Repository.spec.ts │ └── support │ ├── Utils_Clone_Deep.spec.ts │ ├── Utils_Order_By.spec.ts │ └── Utils_Size.spec.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: kiaking 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/README.md -------------------------------------------------------------------------------- /docs/.vuepress/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/.vuepress/config.js -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | next.vuex-orm.org 2 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/deploy.sh -------------------------------------------------------------------------------- /docs/guide/digging-deeper/plugins.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/digging-deeper/plugins.md -------------------------------------------------------------------------------- /docs/guide/model/accessors.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/model/accessors.md -------------------------------------------------------------------------------- /docs/guide/model/decorators.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/model/decorators.md -------------------------------------------------------------------------------- /docs/guide/model/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/model/getting-started.md -------------------------------------------------------------------------------- /docs/guide/prologue/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/prologue/getting-started.md -------------------------------------------------------------------------------- /docs/guide/prologue/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/prologue/installation.md -------------------------------------------------------------------------------- /docs/guide/prologue/sponsors.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/prologue/sponsors.md -------------------------------------------------------------------------------- /docs/guide/prologue/what-is-vuex-orm.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/prologue/what-is-vuex-orm.md -------------------------------------------------------------------------------- /docs/guide/relationships/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/relationships/getting-started.md -------------------------------------------------------------------------------- /docs/guide/relationships/one-to-many.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/relationships/one-to-many.md -------------------------------------------------------------------------------- /docs/guide/relationships/one-to-one.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/relationships/one-to-one.md -------------------------------------------------------------------------------- /docs/guide/relationships/polymorphic.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/relationships/polymorphic.md -------------------------------------------------------------------------------- /docs/guide/repository/deleting-data.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/repository/deleting-data.md -------------------------------------------------------------------------------- /docs/guide/repository/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/repository/getting-started.md -------------------------------------------------------------------------------- /docs/guide/repository/inserting-data.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/repository/inserting-data.md -------------------------------------------------------------------------------- /docs/guide/repository/retrieving-data.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/repository/retrieving-data.md -------------------------------------------------------------------------------- /docs/guide/repository/updating-data.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/docs/guide/repository/updating-data.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/jest.config.js -------------------------------------------------------------------------------- /logo-vuex-orm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/logo-vuex-orm.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/rollup.config.js -------------------------------------------------------------------------------- /scripts/build.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/scripts/build.mjs -------------------------------------------------------------------------------- /scripts/release.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/scripts/release.mjs -------------------------------------------------------------------------------- /src/connection/Connection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/connection/Connection.ts -------------------------------------------------------------------------------- /src/data/Data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/data/Data.ts -------------------------------------------------------------------------------- /src/database/Database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/database/Database.ts -------------------------------------------------------------------------------- /src/events/Events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/events/Events.ts -------------------------------------------------------------------------------- /src/helpers/Helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/helpers/Helpers.ts -------------------------------------------------------------------------------- /src/index.cjs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/index.cjs.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interpreter/Interpreter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/interpreter/Interpreter.ts -------------------------------------------------------------------------------- /src/model/Model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/Model.ts -------------------------------------------------------------------------------- /src/model/ModelConstructor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/ModelConstructor.ts -------------------------------------------------------------------------------- /src/model/attributes/Attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/Attribute.ts -------------------------------------------------------------------------------- /src/model/attributes/relations/BelongsTo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/relations/BelongsTo.ts -------------------------------------------------------------------------------- /src/model/attributes/relations/HasMany.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/relations/HasMany.ts -------------------------------------------------------------------------------- /src/model/attributes/relations/HasManyBy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/relations/HasManyBy.ts -------------------------------------------------------------------------------- /src/model/attributes/relations/HasOne.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/relations/HasOne.ts -------------------------------------------------------------------------------- /src/model/attributes/relations/MorphOne.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/relations/MorphOne.ts -------------------------------------------------------------------------------- /src/model/attributes/relations/MorphTo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/relations/MorphTo.ts -------------------------------------------------------------------------------- /src/model/attributes/relations/Relation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/relations/Relation.ts -------------------------------------------------------------------------------- /src/model/attributes/types/Attr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/types/Attr.ts -------------------------------------------------------------------------------- /src/model/attributes/types/Boolean.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/types/Boolean.ts -------------------------------------------------------------------------------- /src/model/attributes/types/Number.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/types/Number.ts -------------------------------------------------------------------------------- /src/model/attributes/types/String.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/types/String.ts -------------------------------------------------------------------------------- /src/model/attributes/types/Type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/types/Type.ts -------------------------------------------------------------------------------- /src/model/attributes/types/Uid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/attributes/types/Uid.ts -------------------------------------------------------------------------------- /src/model/decorators/Contracts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/Contracts.ts -------------------------------------------------------------------------------- /src/model/decorators/NonEnumerable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/NonEnumerable.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/relations/BelongsTo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/relations/BelongsTo.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/relations/HasMany.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/relations/HasMany.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/relations/HasManyBy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/relations/HasManyBy.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/relations/HasOne.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/relations/HasOne.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/relations/MorphOne.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/relations/MorphOne.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/relations/MorphTo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/relations/MorphTo.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/types/Attr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/types/Attr.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/types/Bool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/types/Bool.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/types/Num.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/types/Num.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/types/Str.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/types/Str.ts -------------------------------------------------------------------------------- /src/model/decorators/attributes/types/Uid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/model/decorators/attributes/types/Uid.ts -------------------------------------------------------------------------------- /src/modules/Module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/modules/Module.ts -------------------------------------------------------------------------------- /src/modules/Mutations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/modules/Mutations.ts -------------------------------------------------------------------------------- /src/modules/RootModule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/modules/RootModule.ts -------------------------------------------------------------------------------- /src/modules/RootState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/modules/RootState.ts -------------------------------------------------------------------------------- /src/modules/State.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/modules/State.ts -------------------------------------------------------------------------------- /src/plugin/Plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/plugin/Plugin.ts -------------------------------------------------------------------------------- /src/polyfills/Polyfills.ts: -------------------------------------------------------------------------------- 1 | import 'core-js/es/array/includes' 2 | -------------------------------------------------------------------------------- /src/query/Options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/query/Options.ts -------------------------------------------------------------------------------- /src/query/Query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/query/Query.ts -------------------------------------------------------------------------------- /src/repository/Repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/repository/Repository.ts -------------------------------------------------------------------------------- /src/schema/Schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/schema/Schema.ts -------------------------------------------------------------------------------- /src/store/Store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/store/Store.ts -------------------------------------------------------------------------------- /src/support/Utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/support/Utils.ts -------------------------------------------------------------------------------- /src/types/global.d.ts: -------------------------------------------------------------------------------- 1 | declare var __DEV__: boolean 2 | -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- 1 | export type Constructor = { 2 | new (...args: any[]): T 3 | } 4 | -------------------------------------------------------------------------------- /src/types/vuex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/src/types/vuex.ts -------------------------------------------------------------------------------- /test/Helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/Helpers.ts -------------------------------------------------------------------------------- /test/feature/helpers/helpers.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/helpers/helpers.spec.ts -------------------------------------------------------------------------------- /test/feature/plugin/plugin.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/plugin/plugin.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/belongs_to_retrieve.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/belongs_to_retrieve.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/belongs_to_save.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/belongs_to_save.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/belongs_to_save_custom_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/belongs_to_save_custom_key.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/belongs_to_save_uid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/belongs_to_save_uid.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/constraints/constraints.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/constraints/constraints.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/eager_loads/eager_loads_all.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/eager_loads/eager_loads_all.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/eager_loads/eager_loads_recursive.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/eager_loads/eager_loads_recursive.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_many_by_retrieve.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_many_by_retrieve.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_many_by_save.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_many_by_save.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_many_by_save_custom_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_many_by_save_custom_key.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_many_by_save_uid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_many_by_save_uid.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_many_retrieve.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_many_retrieve.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_many_save.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_many_save.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_many_save_custom_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_many_save_custom_key.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_many_save_uid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_many_save_uid.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_one_retrieve.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_one_retrieve.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_one_save.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_one_save.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_one_save_custom_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_one_save_custom_key.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/has_one_save_uid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/has_one_save_uid.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/lazy_loads/lazy_eager_load.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/lazy_loads/lazy_eager_load.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/mitigations/_fixtures/circular_relations_phone.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/mitigations/_fixtures/circular_relations_phone.ts -------------------------------------------------------------------------------- /test/feature/relations/mitigations/_fixtures/circular_relations_user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/mitigations/_fixtures/circular_relations_user.ts -------------------------------------------------------------------------------- /test/feature/relations/mitigations/circular_relations.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/mitigations/circular_relations.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/morph_one_retrieve.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/morph_one_retrieve.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/morph_one_save.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/morph_one_save.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/morph_one_save_custom_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/morph_one_save_custom_key.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/morph_one_save_uid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/morph_one_save_uid.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/morph_to_retrieve.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/morph_to_retrieve.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/morph_to_save.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/morph_to_save.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/morph_to_save_custom_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/morph_to_save_custom_key.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/morph_to_save_uid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/morph_to_save_uid.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/nested/nested_relations.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/nested/nested_relations.spec.ts -------------------------------------------------------------------------------- /test/feature/relations/nested/nested_revive.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/relations/nested/nested_revive.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/delete.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/delete.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/destroy.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/destroy.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/destroy_composite_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/destroy_composite_key.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/flush.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/flush.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/fresh.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/fresh.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/fresh_composite_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/fresh_composite_key.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/fresh_uid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/fresh_uid.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/insert.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/insert.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/insert_composite_key.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/insert_composite_key.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/insert_uid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/insert_uid.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/new.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/new.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/retrieves_all.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/retrieves_all.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/retrieves_find.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/retrieves_find.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/retrieves_limit.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/retrieves_limit.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/retrieves_offset.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/retrieves_offset.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/retrieves_order_by.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/retrieves_order_by.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/retrieves_revive.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/retrieves_revive.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/retrieves_where.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/retrieves_where.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/retrieves_where_or.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/retrieves_where_or.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/save.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/save.spec.ts -------------------------------------------------------------------------------- /test/feature/repository/update.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository/update.spec.ts -------------------------------------------------------------------------------- /test/feature/repository_custom/custom_repository.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/feature/repository_custom/custom_repository.spec.ts -------------------------------------------------------------------------------- /test/performance/save_has_many_relation.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/performance/save_has_many_relation.spec.ts -------------------------------------------------------------------------------- /test/regression/normalizing_nested_relations_missing_parent_model.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/regression/normalizing_nested_relations_missing_parent_model.spec.ts -------------------------------------------------------------------------------- /test/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/setup.ts -------------------------------------------------------------------------------- /test/unit/VuexORM.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/VuexORM.spec.ts -------------------------------------------------------------------------------- /test/unit/decorators/NonEnumerable.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/decorators/NonEnumerable.spec.ts -------------------------------------------------------------------------------- /test/unit/events/Events.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/events/Events.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Attrs_Boolean.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Attrs_Boolean.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Attrs_Number.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Attrs_Number.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Attrs_String.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Attrs_String.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Attrs_UID.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Attrs_UID.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Fields.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Fields.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Keys.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Keys.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Relations.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Relations.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Sanitize.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Sanitize.spec.ts -------------------------------------------------------------------------------- /test/unit/model/Model_Serialization.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/model/Model_Serialization.spec.ts -------------------------------------------------------------------------------- /test/unit/repository/Repository.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/repository/Repository.spec.ts -------------------------------------------------------------------------------- /test/unit/support/Utils_Clone_Deep.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/support/Utils_Clone_Deep.spec.ts -------------------------------------------------------------------------------- /test/unit/support/Utils_Order_By.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/support/Utils_Order_By.spec.ts -------------------------------------------------------------------------------- /test/unit/support/Utils_Size.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/test/unit/support/Utils_Size.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vuex-orm/vuex-orm-next/HEAD/yarn.lock --------------------------------------------------------------------------------