@loopback/repository 4.0.0-alpha.6 → 4.0.0
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/LICENSE +25 -0
- package/README.md +94 -372
- package/dist/common-types.d.ts +96 -0
- package/dist/common-types.js +24 -0
- package/dist/common-types.js.map +1 -0
- package/dist/connectors/connector.d.ts +48 -0
- package/{lib → dist/connectors}/connector.js +1 -1
- package/dist/connectors/connector.js.map +1 -0
- package/{lib/crud-connector.d.ts → dist/connectors/crud.connector.d.ts} +51 -51
- package/{lib/common-types.js → dist/connectors/crud.connector.js} +2 -2
- package/dist/connectors/crud.connector.js.map +1 -0
- package/dist/connectors/index.d.ts +3 -0
- package/dist/connectors/index.js +11 -0
- package/dist/connectors/index.js.map +1 -0
- package/{lib6/kv-connector.d.ts → dist/connectors/kv.connector.d.ts} +28 -28
- package/{lib/datasource.js → dist/connectors/kv.connector.js} +2 -2
- package/dist/connectors/kv.connector.js.map +1 -0
- package/dist/datasource.d.ts +27 -0
- package/{lib6 → dist}/datasource.js +1 -1
- package/dist/datasource.js.map +1 -0
- package/dist/decorators/index.d.ts +3 -0
- package/dist/decorators/index.js +11 -0
- package/dist/decorators/index.js.map +1 -0
- package/dist/decorators/metadata.d.ts +12 -0
- package/dist/decorators/metadata.js +51 -0
- package/dist/decorators/metadata.js.map +1 -0
- package/dist/decorators/model.decorator.d.ts +40 -0
- package/dist/decorators/model.decorator.js +112 -0
- package/dist/decorators/model.decorator.js.map +1 -0
- package/dist/decorators/repository.decorator.d.ts +106 -0
- package/dist/decorators/repository.decorator.js +114 -0
- package/dist/decorators/repository.decorator.js.map +1 -0
- package/dist/define-model-class.d.ts +55 -0
- package/dist/define-model-class.js +57 -0
- package/dist/define-model-class.js.map +1 -0
- package/dist/define-repository-class.d.ts +119 -0
- package/dist/define-repository-class.js +98 -0
- package/dist/define-repository-class.js.map +1 -0
- package/dist/errors/entity-not-found.error.d.ts +8 -0
- package/dist/errors/entity-not-found.error.js +28 -0
- package/dist/errors/entity-not-found.error.js.map +1 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +10 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/invalid-relation.error.d.ts +10 -0
- package/dist/errors/invalid-relation.error.js +28 -0
- package/dist/errors/invalid-relation.error.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/keys.d.ts +34 -0
- package/dist/keys.js +44 -0
- package/dist/keys.js.map +1 -0
- package/dist/mixins/index.d.ts +1 -0
- package/dist/mixins/index.js +9 -0
- package/dist/mixins/index.js.map +1 -0
- package/dist/mixins/repository.mixin.d.ts +377 -0
- package/dist/mixins/repository.mixin.js +405 -0
- package/dist/mixins/repository.mixin.js.map +1 -0
- package/dist/model.d.ts +232 -0
- package/dist/model.js +367 -0
- package/dist/model.js.map +1 -0
- package/dist/relations/belongs-to/belongs-to.accessor.d.ts +17 -0
- package/dist/relations/belongs-to/belongs-to.accessor.js +40 -0
- package/dist/relations/belongs-to/belongs-to.accessor.js.map +1 -0
- package/dist/relations/belongs-to/belongs-to.decorator.d.ts +11 -0
- package/dist/relations/belongs-to/belongs-to.decorator.js +64 -0
- package/dist/relations/belongs-to/belongs-to.decorator.js.map +1 -0
- package/dist/relations/belongs-to/belongs-to.helpers.d.ts +17 -0
- package/dist/relations/belongs-to/belongs-to.helpers.js +63 -0
- package/dist/relations/belongs-to/belongs-to.helpers.js.map +1 -0
- package/dist/relations/belongs-to/belongs-to.inclusion-resolver.d.ts +14 -0
- package/dist/relations/belongs-to/belongs-to.inclusion-resolver.js +36 -0
- package/dist/relations/belongs-to/belongs-to.inclusion-resolver.js.map +1 -0
- package/dist/relations/belongs-to/belongs-to.repository.d.ts +28 -0
- package/dist/relations/belongs-to/belongs-to.repository.js +33 -0
- package/dist/relations/belongs-to/belongs-to.repository.js.map +1 -0
- package/dist/relations/belongs-to/index.d.ts +4 -0
- package/dist/relations/belongs-to/index.js +12 -0
- package/dist/relations/belongs-to/index.js.map +1 -0
- package/dist/relations/has-many/has-many-through.helpers.d.ts +182 -0
- package/dist/relations/has-many/has-many-through.helpers.js +282 -0
- package/dist/relations/has-many/has-many-through.helpers.js.map +1 -0
- package/dist/relations/has-many/has-many-through.inclusion-resolver.d.ts +16 -0
- package/dist/relations/has-many/has-many-through.inclusion-resolver.js +78 -0
- package/dist/relations/has-many/has-many-through.inclusion-resolver.js.map +1 -0
- package/dist/relations/has-many/has-many-through.repository-factory.d.ts +17 -0
- package/dist/relations/has-many/has-many-through.repository-factory.js +37 -0
- package/dist/relations/has-many/has-many-through.repository-factory.js.map +1 -0
- package/dist/relations/has-many/has-many-through.repository.d.ts +114 -0
- package/dist/relations/has-many/has-many-through.repository.js +103 -0
- package/dist/relations/has-many/has-many-through.repository.js.map +1 -0
- package/dist/relations/has-many/has-many.decorator.d.ts +11 -0
- package/dist/relations/has-many/has-many.decorator.js +36 -0
- package/dist/relations/has-many/has-many.decorator.js.map +1 -0
- package/dist/relations/has-many/has-many.helpers.d.ts +26 -0
- package/dist/relations/has-many/has-many.helpers.js +78 -0
- package/dist/relations/has-many/has-many.helpers.js.map +1 -0
- package/dist/relations/has-many/has-many.inclusion-resolver.d.ts +14 -0
- package/dist/relations/has-many/has-many.inclusion-resolver.js +45 -0
- package/dist/relations/has-many/has-many.inclusion-resolver.js.map +1 -0
- package/dist/relations/has-many/has-many.repository-factory.d.ts +28 -0
- package/dist/relations/has-many/has-many.repository-factory.js +39 -0
- package/dist/relations/has-many/has-many.repository-factory.js.map +1 -0
- package/dist/relations/has-many/has-many.repository.d.ts +54 -0
- package/dist/relations/has-many/has-many.repository.js +38 -0
- package/dist/relations/has-many/has-many.repository.js.map +1 -0
- package/dist/relations/has-many/index.d.ts +6 -0
- package/dist/relations/has-many/index.js +14 -0
- package/dist/relations/has-many/index.js.map +1 -0
- package/dist/relations/has-one/has-one.decorator.d.ts +3 -0
- package/dist/relations/has-one/has-one.decorator.js +37 -0
- package/dist/relations/has-one/has-one.decorator.js.map +1 -0
- package/dist/relations/has-one/has-one.helpers.d.ts +17 -0
- package/dist/relations/has-one/has-one.helpers.js +64 -0
- package/dist/relations/has-one/has-one.helpers.js.map +1 -0
- package/dist/relations/has-one/has-one.inclusion-resolver.d.ts +14 -0
- package/dist/relations/has-one/has-one.inclusion-resolver.js +35 -0
- package/dist/relations/has-one/has-one.inclusion-resolver.js.map +1 -0
- package/dist/relations/has-one/has-one.repository-factory.d.ts +28 -0
- package/dist/relations/has-one/has-one.repository-factory.js +39 -0
- package/dist/relations/has-one/has-one.repository-factory.js.map +1 -0
- package/dist/relations/has-one/has-one.repository.d.ts +53 -0
- package/dist/relations/has-one/has-one.repository.js +45 -0
- package/dist/relations/has-one/has-one.repository.js.map +1 -0
- package/dist/relations/has-one/index.d.ts +3 -0
- package/dist/relations/has-one/index.js +11 -0
- package/dist/relations/has-one/index.js.map +1 -0
- package/dist/relations/index.d.ts +6 -0
- package/dist/relations/index.js +14 -0
- package/dist/relations/index.js.map +1 -0
- package/dist/relations/relation.decorator.d.ts +39 -0
- package/dist/relations/relation.decorator.js +88 -0
- package/dist/relations/relation.decorator.js.map +1 -0
- package/dist/relations/relation.helpers.d.ts +105 -0
- package/dist/relations/relation.helpers.js +298 -0
- package/dist/relations/relation.helpers.js.map +1 -0
- package/dist/relations/relation.types.d.ts +142 -0
- package/dist/relations/relation.types.js +21 -0
- package/dist/relations/relation.types.js.map +1 -0
- package/dist/repositories/constraint-utils.d.ts +49 -0
- package/dist/repositories/constraint-utils.js +87 -0
- package/dist/repositories/constraint-utils.js.map +1 -0
- package/dist/repositories/index.d.ts +5 -0
- package/dist/repositories/index.js +13 -0
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/kv.repository.bridge.d.ts +30 -0
- package/dist/repositories/kv.repository.bridge.js +76 -0
- package/dist/repositories/kv.repository.bridge.js.map +1 -0
- package/dist/repositories/kv.repository.d.ts +74 -0
- package/{lib/crud-connector.js → dist/repositories/kv.repository.js} +2 -2
- package/dist/repositories/kv.repository.js.map +1 -0
- package/dist/repositories/legacy-juggler-bridge.d.ts +305 -0
- package/dist/repositories/legacy-juggler-bridge.js +452 -0
- package/dist/repositories/legacy-juggler-bridge.js.map +1 -0
- package/dist/repositories/repository.d.ts +223 -0
- package/dist/repositories/repository.js +157 -0
- package/dist/repositories/repository.js.map +1 -0
- package/dist/transaction.d.ts +30 -0
- package/dist/transaction.js +18 -0
- package/dist/transaction.js.map +1 -0
- package/dist/type-resolver.d.ts +42 -0
- package/dist/type-resolver.js +61 -0
- package/dist/type-resolver.js.map +1 -0
- package/{lib6 → dist}/types/any.d.ts +1 -1
- package/{lib6 → dist}/types/any.js +3 -2
- package/dist/types/any.js.map +1 -0
- package/{lib6 → dist}/types/array.d.ts +4 -4
- package/{lib → dist}/types/array.js +6 -4
- package/dist/types/array.js.map +1 -0
- package/{lib → dist}/types/boolean.d.ts +1 -1
- package/{lib → dist}/types/boolean.js +3 -2
- package/dist/types/boolean.js.map +1 -0
- package/{lib6 → dist}/types/buffer.d.ts +2 -2
- package/{lib6 → dist}/types/buffer.js +8 -6
- package/dist/types/buffer.js.map +1 -0
- package/{lib → dist}/types/date.d.ts +1 -1
- package/{lib6 → dist}/types/date.js +6 -4
- package/dist/types/date.js.map +1 -0
- package/{lib → dist}/types/index.d.ts +11 -9
- package/dist/types/index.js +49 -0
- package/dist/types/index.js.map +1 -0
- package/{lib6 → dist}/types/model.d.ts +2 -1
- package/{lib → dist}/types/model.js +2 -2
- package/dist/types/model.js.map +1 -0
- package/dist/types/null.d.ts +12 -0
- package/{lib6/types/boolean.js → dist/types/null.js} +12 -11
- package/dist/types/null.js.map +1 -0
- package/{lib6 → dist}/types/number.d.ts +1 -1
- package/{lib6 → dist}/types/number.js +6 -4
- package/dist/types/number.js.map +1 -0
- package/{lib → dist}/types/object.d.ts +1 -1
- package/{lib6 → dist}/types/object.js +7 -6
- package/dist/types/object.js.map +1 -0
- package/{lib → dist}/types/string.d.ts +1 -1
- package/{lib → dist}/types/string.js +3 -2
- package/dist/types/string.js.map +1 -0
- package/{lib → dist}/types/type.d.ts +7 -7
- package/{lib6 → dist}/types/type.js +1 -1
- package/dist/types/type.js.map +1 -0
- package/{lib → dist}/types/union.d.ts +1 -1
- package/{lib6 → dist}/types/union.js +6 -4
- package/dist/types/union.js.map +1 -0
- package/package.json +49 -32
- package/src/common-types.ts +123 -0
- package/src/connectors/connector.ts +70 -0
- package/src/connectors/crud.connector.ts +208 -0
- package/src/connectors/index.ts +8 -0
- package/src/connectors/kv.connector.ts +113 -0
- package/src/datasource.ts +37 -0
- package/src/decorators/index.ts +8 -0
- package/src/decorators/metadata.ts +84 -0
- package/src/decorators/model.decorator.ts +166 -0
- package/src/decorators/repository.decorator.ts +223 -0
- package/src/define-model-class.ts +90 -0
- package/src/define-repository-class.ts +170 -0
- package/src/errors/entity-not-found.error.ts +40 -0
- package/src/errors/index.ts +7 -0
- package/src/errors/invalid-relation.error.ts +39 -0
- package/src/index.ts +36 -0
- package/src/keys.ts +40 -0
- package/{index.d.ts → src/mixins/index.ts} +2 -2
- package/src/mixins/repository.mixin.ts +499 -0
- package/src/model.ts +539 -0
- package/src/relations/belongs-to/belongs-to.accessor.ts +74 -0
- package/src/relations/belongs-to/belongs-to.decorator.ts +81 -0
- package/src/relations/belongs-to/belongs-to.helpers.ts +78 -0
- package/src/relations/belongs-to/belongs-to.inclusion-resolver.ts +71 -0
- package/src/relations/belongs-to/belongs-to.repository.ts +55 -0
- package/src/relations/belongs-to/index.ts +9 -0
- package/src/relations/has-many/has-many-through.helpers.ts +361 -0
- package/src/relations/has-many/has-many-through.inclusion-resolver.ts +135 -0
- package/src/relations/has-many/has-many-through.repository-factory.ts +121 -0
- package/src/relations/has-many/has-many-through.repository.ts +318 -0
- package/src/relations/has-many/has-many.decorator.ts +38 -0
- package/src/relations/has-many/has-many.helpers.ts +100 -0
- package/src/relations/has-many/has-many.inclusion-resolver.ts +88 -0
- package/src/relations/has-many/has-many.repository-factory.ts +76 -0
- package/src/relations/has-many/has-many.repository.ts +118 -0
- package/src/relations/has-many/index.ts +11 -0
- package/src/relations/has-one/has-one.decorator.ts +40 -0
- package/src/relations/has-one/has-one.helpers.ts +84 -0
- package/src/relations/has-one/has-one.inclusion-resolver.ts +65 -0
- package/src/relations/has-one/has-one.repository-factory.ts +72 -0
- package/src/relations/has-one/has-one.repository.ts +127 -0
- package/src/relations/has-one/index.ts +8 -0
- package/src/relations/index.ts +11 -0
- package/src/relations/relation.decorator.ts +90 -0
- package/src/relations/relation.helpers.ts +364 -0
- package/src/relations/relation.types.ts +180 -0
- package/src/repositories/constraint-utils.ts +98 -0
- package/src/repositories/index.ts +10 -0
- package/src/repositories/kv.repository.bridge.ts +97 -0
- package/src/repositories/kv.repository.ts +87 -0
- package/src/repositories/legacy-juggler-bridge.ts +788 -0
- package/src/repositories/repository.ts +441 -0
- package/src/transaction.ts +39 -0
- package/src/type-resolver.ts +98 -0
- package/src/types/any.ts +38 -0
- package/src/types/array.ts +53 -0
- package/src/types/boolean.ts +35 -0
- package/src/types/buffer.ts +53 -0
- package/src/types/date.ts +61 -0
- package/src/types/index.ts +52 -0
- package/src/types/model.ts +24 -0
- package/src/types/null.ts +35 -0
- package/src/types/number.ts +42 -0
- package/src/types/object.ts +53 -0
- package/src/types/string.ts +42 -0
- package/src/types/type.ts +51 -0
- package/src/types/union.ts +55 -0
- package/api-docs/apple-touch-icon-114x114-precomposed.png +0 -0
- package/api-docs/apple-touch-icon-144x144-precomposed.png +0 -0
- package/api-docs/apple-touch-icon-57x57-precomposed.png +0 -0
- package/api-docs/apple-touch-icon-72x72-precomposed.png +0 -0
- package/api-docs/apple-touch-icon-precomposed.png +0 -0
- package/api-docs/apple-touch-icon.png +0 -0
- package/api-docs/css/bootstrap.min.css +0 -9
- package/api-docs/css/code-themes/arta.css +0 -158
- package/api-docs/css/code-themes/ascetic.css +0 -50
- package/api-docs/css/code-themes/brown_paper.css +0 -104
- package/api-docs/css/code-themes/brown_papersq.png +0 -0
- package/api-docs/css/code-themes/dark.css +0 -103
- package/api-docs/css/code-themes/default.css +0 -135
- package/api-docs/css/code-themes/far.css +0 -111
- package/api-docs/css/code-themes/github.css +0 -127
- package/api-docs/css/code-themes/googlecode.css +0 -144
- package/api-docs/css/code-themes/idea.css +0 -121
- package/api-docs/css/code-themes/ir_black.css +0 -104
- package/api-docs/css/code-themes/magula.css +0 -121
- package/api-docs/css/code-themes/monokai.css +0 -114
- package/api-docs/css/code-themes/pojoaque.css +0 -104
- package/api-docs/css/code-themes/pojoaque.jpg +0 -0
- package/api-docs/css/code-themes/rainbow.css +0 -114
- package/api-docs/css/code-themes/school_book.css +0 -111
- package/api-docs/css/code-themes/school_book.png +0 -0
- package/api-docs/css/code-themes/sl-theme.css +0 -45
- package/api-docs/css/code-themes/solarized_dark.css +0 -88
- package/api-docs/css/code-themes/solarized_light.css +0 -88
- package/api-docs/css/code-themes/sunburst.css +0 -158
- package/api-docs/css/code-themes/tomorrow-night-blue.css +0 -52
- package/api-docs/css/code-themes/tomorrow-night-bright.css +0 -51
- package/api-docs/css/code-themes/tomorrow-night-eighties.css +0 -51
- package/api-docs/css/code-themes/tomorrow-night.css +0 -52
- package/api-docs/css/code-themes/tomorrow.css +0 -49
- package/api-docs/css/code-themes/vs.css +0 -86
- package/api-docs/css/code-themes/xcode.css +0 -154
- package/api-docs/css/code-themes/zenburn.css +0 -115
- package/api-docs/css/main.css +0 -139
- package/api-docs/favicon.ico +0 -0
- package/api-docs/fonts/0ihfXUL2emPh0ROJezvraLO3LdcAZYWl9Si6vvxL-qU.woff +0 -0
- package/api-docs/fonts/OsJ2DjdpjqFRVUSto6IffLO3LdcAZYWl9Si6vvxL-qU.woff +0 -0
- package/api-docs/fonts/_aijTyevf54tkVDLy-dlnLO3LdcAZYWl9Si6vvxL-qU.woff +0 -0
- package/api-docs/index.html +0 -17872
- package/api-docs/js/main.js +0 -19
- package/api-docs/js/vendor/bootstrap.min.js +0 -6
- package/api-docs/js/vendor/jquery-1.10.1.min.js +0 -6
- package/api-docs/js/vendor/jquery.scrollTo-1.4.3.1.js +0 -218
- package/api-docs/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js +0 -11
- package/index.js +0 -9
- package/lib/common-types.d.ts +0 -44
- package/lib/common-types.js.map +0 -1
- package/lib/connector.d.ts +0 -12
- package/lib/connector.js.map +0 -1
- package/lib/crud-connector.js.map +0 -1
- package/lib/datasource.d.ts +0 -11
- package/lib/datasource.js.map +0 -1
- package/lib/decorators/model.d.ts +0 -14
- package/lib/decorators/model.js +0 -35
- package/lib/decorators/model.js.map +0 -1
- package/lib/decorators/relation.d.ts +0 -65
- package/lib/decorators/relation.js +0 -126
- package/lib/decorators/relation.js.map +0 -1
- package/lib/decorators/repository.d.ts +0 -61
- package/lib/decorators/repository.js +0 -103
- package/lib/decorators/repository.js.map +0 -1
- package/lib/index.d.ts +0 -15
- package/lib/index.js +0 -19
- package/lib/index.js.map +0 -1
- package/lib/kv-connector.d.ts +0 -77
- package/lib/kv-connector.js +0 -7
- package/lib/kv-connector.js.map +0 -1
- package/lib/kv-repository.d.ts +0 -78
- package/lib/kv-repository.js +0 -7
- package/lib/kv-repository.js.map +0 -1
- package/lib/legacy-juggler-bridge.d.ts +0 -44
- package/lib/legacy-juggler-bridge.js +0 -119
- package/lib/legacy-juggler-bridge.js.map +0 -1
- package/lib/loopback-datasource-juggler.d.ts +0 -666
- package/lib/loopback-datasource-juggler.js +0 -8
- package/lib/loopback-datasource-juggler.js.map +0 -1
- package/lib/mixin.d.ts +0 -43
- package/lib/mixin.js +0 -34
- package/lib/mixin.js.map +0 -1
- package/lib/model.d.ts +0 -127
- package/lib/model.js +0 -187
- package/lib/model.js.map +0 -1
- package/lib/query.d.ts +0 -112
- package/lib/query.js +0 -25
- package/lib/query.js.map +0 -1
- package/lib/repository.d.ts +0 -172
- package/lib/repository.js +0 -127
- package/lib/repository.js.map +0 -1
- package/lib/types/any.d.ts +0 -12
- package/lib/types/any.js +0 -35
- package/lib/types/any.js.map +0 -1
- package/lib/types/array.d.ts +0 -14
- package/lib/types/array.js.map +0 -1
- package/lib/types/boolean.js.map +0 -1
- package/lib/types/buffer.d.ts +0 -14
- package/lib/types/buffer.js +0 -57
- package/lib/types/buffer.js.map +0 -1
- package/lib/types/date.js +0 -60
- package/lib/types/date.js.map +0 -1
- package/lib/types/index.js +0 -33
- package/lib/types/index.js.map +0 -1
- package/lib/types/model.d.ts +0 -11
- package/lib/types/model.js.map +0 -1
- package/lib/types/number.d.ts +0 -12
- package/lib/types/number.js +0 -40
- package/lib/types/number.js.map +0 -1
- package/lib/types/object.js +0 -49
- package/lib/types/object.js.map +0 -1
- package/lib/types/string.js.map +0 -1
- package/lib/types/type.js +0 -7
- package/lib/types/type.js.map +0 -1
- package/lib/types/union.js +0 -51
- package/lib/types/union.js.map +0 -1
- package/lib6/common-types.d.ts +0 -44
- package/lib6/common-types.js +0 -7
- package/lib6/common-types.js.map +0 -1
- package/lib6/connector.d.ts +0 -12
- package/lib6/connector.js +0 -7
- package/lib6/connector.js.map +0 -1
- package/lib6/crud-connector.d.ts +0 -130
- package/lib6/crud-connector.js +0 -7
- package/lib6/crud-connector.js.map +0 -1
- package/lib6/datasource.d.ts +0 -11
- package/lib6/datasource.js.map +0 -1
- package/lib6/decorators/model.d.ts +0 -14
- package/lib6/decorators/model.js +0 -35
- package/lib6/decorators/model.js.map +0 -1
- package/lib6/decorators/relation.d.ts +0 -65
- package/lib6/decorators/relation.js +0 -126
- package/lib6/decorators/relation.js.map +0 -1
- package/lib6/decorators/repository.d.ts +0 -61
- package/lib6/decorators/repository.js +0 -113
- package/lib6/decorators/repository.js.map +0 -1
- package/lib6/index.d.ts +0 -15
- package/lib6/index.js +0 -19
- package/lib6/index.js.map +0 -1
- package/lib6/kv-connector.js +0 -7
- package/lib6/kv-connector.js.map +0 -1
- package/lib6/kv-repository.d.ts +0 -78
- package/lib6/kv-repository.js +0 -7
- package/lib6/kv-repository.js.map +0 -1
- package/lib6/legacy-juggler-bridge.d.ts +0 -44
- package/lib6/legacy-juggler-bridge.js +0 -119
- package/lib6/legacy-juggler-bridge.js.map +0 -1
- package/lib6/loopback-datasource-juggler.d.ts +0 -666
- package/lib6/loopback-datasource-juggler.js +0 -8
- package/lib6/loopback-datasource-juggler.js.map +0 -1
- package/lib6/mixin.d.ts +0 -43
- package/lib6/mixin.js +0 -34
- package/lib6/mixin.js.map +0 -1
- package/lib6/model.d.ts +0 -127
- package/lib6/model.js +0 -187
- package/lib6/model.js.map +0 -1
- package/lib6/query.d.ts +0 -112
- package/lib6/query.js +0 -25
- package/lib6/query.js.map +0 -1
- package/lib6/repository.d.ts +0 -172
- package/lib6/repository.js +0 -127
- package/lib6/repository.js.map +0 -1
- package/lib6/types/any.js.map +0 -1
- package/lib6/types/array.js +0 -53
- package/lib6/types/array.js.map +0 -1
- package/lib6/types/boolean.d.ts +0 -12
- package/lib6/types/boolean.js.map +0 -1
- package/lib6/types/buffer.js.map +0 -1
- package/lib6/types/date.d.ts +0 -12
- package/lib6/types/date.js.map +0 -1
- package/lib6/types/index.d.ts +0 -30
- package/lib6/types/index.js +0 -33
- package/lib6/types/index.js.map +0 -1
- package/lib6/types/model.js +0 -25
- package/lib6/types/model.js.map +0 -1
- package/lib6/types/number.js.map +0 -1
- package/lib6/types/object.d.ts +0 -15
- package/lib6/types/object.js.map +0 -1
- package/lib6/types/string.d.ts +0 -12
- package/lib6/types/string.js +0 -40
- package/lib6/types/string.js.map +0 -1
- package/lib6/types/type.d.ts +0 -38
- package/lib6/types/type.js.map +0 -1
- package/lib6/types/union.d.ts +0 -14
- package/lib6/types/union.js.map +0 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
3
|
+
// Node module: @loopback/repository
|
|
4
|
+
// This file is licensed under the MIT License.
|
|
5
|
+
// License text available at https://opensource.org/licenses/MIT
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.defineKeyValueRepositoryClass = exports.defineCrudRepositoryClass = exports.defineRepositoryClass = void 0;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
|
|
10
|
+
const repositories_1 = require("./repositories");
|
|
11
|
+
/**
|
|
12
|
+
* Create (define) a repository class for the given model.
|
|
13
|
+
*
|
|
14
|
+
* See also `defineCrudRepositoryClass` and `defineKeyValueRepositoryClass`
|
|
15
|
+
* for convenience wrappers providing repository class factory for the default
|
|
16
|
+
* CRUD and KeyValue implementations.
|
|
17
|
+
*
|
|
18
|
+
* **❗️IMPORTANT: The compiler (TypeScript 3.8) is not able to correctly infer
|
|
19
|
+
* generic arguments `M` and `R` from the class constructors provided in
|
|
20
|
+
* function arguments. You must always provide both M and R types explicitly.**
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* const AddressRepository = defineRepositoryClass<
|
|
26
|
+
* typeof Address,
|
|
27
|
+
* DefaultEntityCrudRepository<
|
|
28
|
+
* Address,
|
|
29
|
+
* typeof Address.prototype.id,
|
|
30
|
+
* AddressRelations
|
|
31
|
+
* >,
|
|
32
|
+
* >(Address, DefaultCrudRepository);
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @param modelClass - A model class such as `Address`.
|
|
36
|
+
* @param baseRepositoryClass - Repository implementation to use as the base,
|
|
37
|
+
* e.g. `DefaultCrudRepository`.
|
|
38
|
+
*
|
|
39
|
+
* @typeParam M - Model class constructor (e.g. `typeof Address`)
|
|
40
|
+
* @typeParam R - Repository class (e.g. `DefaultCrudRepository<Address, number>`)
|
|
41
|
+
*/
|
|
42
|
+
function defineRepositoryClass(modelClass, baseRepositoryClass) {
|
|
43
|
+
const repoName = modelClass.name + 'Repository';
|
|
44
|
+
const defineNamedRepo = new Function('ModelCtor', 'BaseRepository', `return class ${repoName} extends BaseRepository {
|
|
45
|
+
constructor(dataSource) {
|
|
46
|
+
super(ModelCtor, dataSource);
|
|
47
|
+
}
|
|
48
|
+
};`);
|
|
49
|
+
const repo = defineNamedRepo(modelClass, baseRepositoryClass);
|
|
50
|
+
assert_1.default.equal(repo.name, repoName);
|
|
51
|
+
return repo;
|
|
52
|
+
}
|
|
53
|
+
exports.defineRepositoryClass = defineRepositoryClass;
|
|
54
|
+
/**
|
|
55
|
+
* Create (define) an entity CRUD repository class for the given model.
|
|
56
|
+
* This function always uses `DefaultCrudRepository` as the base class,
|
|
57
|
+
* use `defineRepositoryClass` if you want to use your own base repository.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
*
|
|
61
|
+
* ```ts
|
|
62
|
+
* const ProductRepository = defineCrudRepositoryClass<
|
|
63
|
+
* Product,
|
|
64
|
+
* typeof Product.prototype.id,
|
|
65
|
+
* ProductRelations
|
|
66
|
+
* >(Product);
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param entityClass - An entity class such as `Product`.
|
|
70
|
+
*
|
|
71
|
+
* @typeParam E - An entity class
|
|
72
|
+
* @typeParam IdType - ID type for the entity
|
|
73
|
+
* @typeParam Relations - Relations for the entity
|
|
74
|
+
*/
|
|
75
|
+
function defineCrudRepositoryClass(entityClass) {
|
|
76
|
+
return defineRepositoryClass(entityClass, repositories_1.DefaultCrudRepository);
|
|
77
|
+
}
|
|
78
|
+
exports.defineCrudRepositoryClass = defineCrudRepositoryClass;
|
|
79
|
+
/**
|
|
80
|
+
* Create (define) a KeyValue repository class for the given entity.
|
|
81
|
+
* This function always uses `DefaultKeyValueRepository` as the base class,
|
|
82
|
+
* use `defineRepositoryClass` if you want to use your own base repository.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
*
|
|
86
|
+
* ```ts
|
|
87
|
+
* const ProductKeyValueRepository = defineKeyValueRepositoryClass(Product);
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @param modelClass - An entity class such as `Product`.
|
|
91
|
+
*
|
|
92
|
+
* @typeParam M - Model class
|
|
93
|
+
*/
|
|
94
|
+
function defineKeyValueRepositoryClass(modelClass) {
|
|
95
|
+
return defineRepositoryClass(modelClass, repositories_1.DefaultKeyValueRepository);
|
|
96
|
+
}
|
|
97
|
+
exports.defineKeyValueRepositoryClass = defineKeyValueRepositoryClass;
|
|
98
|
+
//# sourceMappingURL=define-repository-class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-repository-class.js","sourceRoot":"","sources":["../src/define-repository-class.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,iEAA4B;AAG5B,iDAKwB;AAoDxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,qBAAqB,CAInC,UAAa,EACb,mBAA8C;IAE9C,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,GAAG,YAAY,CAAC;IAChD,MAAM,eAAe,GAAG,IAAI,QAAQ,CAClC,WAAW,EACX,gBAAgB,EAChB,gBAAgB,QAAQ;;;;OAIrB,CACJ,CAAC;IAEF,MAAM,IAAI,GAAG,eAAe,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IAC9D,gBAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAClC,OAAO,IAAI,CAAC;AACd,CAAC;AArBD,sDAqBC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,yBAAyB,CAKvC,WAA2C;IAE3C,OAAO,qBAAqB,CAAC,WAAW,EAAE,oCAAqB,CAAC,CAAC;AACnE,CAAC;AARD,8DAQC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,6BAA6B,CAC3C,UAAyC;IAEzC,OAAO,qBAAqB,CAAC,UAAU,EAAE,wCAAyB,CAAC,CAAC;AACtE,CAAC;AAJD,sEAIC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Entity } from '../model';
|
|
2
|
+
export declare class EntityNotFoundError<ID, Props extends object = {}> extends Error {
|
|
3
|
+
code: string;
|
|
4
|
+
entityName: string;
|
|
5
|
+
entityId: ID;
|
|
6
|
+
constructor(entityOrName: typeof Entity | string, entityId: ID, extraProperties?: Props);
|
|
7
|
+
}
|
|
8
|
+
export declare function isEntityNotFoundError(e: any): e is EntityNotFoundError<any>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright IBM Corp. 2018,2019. All Rights Reserved.
|
|
3
|
+
// Node module: @loopback/repository
|
|
4
|
+
// This file is licensed under the MIT License.
|
|
5
|
+
// License text available at https://opensource.org/licenses/MIT
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.isEntityNotFoundError = exports.EntityNotFoundError = void 0;
|
|
8
|
+
class EntityNotFoundError extends Error {
|
|
9
|
+
constructor(entityOrName, entityId, extraProperties) {
|
|
10
|
+
const entityName = typeof entityOrName === 'string'
|
|
11
|
+
? entityOrName
|
|
12
|
+
: entityOrName.modelName || entityOrName.name;
|
|
13
|
+
const quotedId = JSON.stringify(entityId);
|
|
14
|
+
super(`Entity not found: ${entityName} with id ${quotedId}`);
|
|
15
|
+
Error.captureStackTrace(this, this.constructor);
|
|
16
|
+
this.code = 'ENTITY_NOT_FOUND';
|
|
17
|
+
this.entityName = entityName;
|
|
18
|
+
this.entityId = entityId;
|
|
19
|
+
Object.assign(this, extraProperties);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.EntityNotFoundError = EntityNotFoundError;
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
+
function isEntityNotFoundError(e) {
|
|
25
|
+
return e instanceof EntityNotFoundError;
|
|
26
|
+
}
|
|
27
|
+
exports.isEntityNotFoundError = isEntityNotFoundError;
|
|
28
|
+
//# sourceMappingURL=entity-not-found.error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-not-found.error.js","sourceRoot":"","sources":["../../src/errors/entity-not-found.error.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAIhE,MAAa,mBAAmD,SAAQ,KAAK;IAK3E,YACE,YAAoC,EACpC,QAAY,EACZ,eAAuB;QAEvB,MAAM,UAAU,GACd,OAAO,YAAY,KAAK,QAAQ;YAC9B,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,YAAY,CAAC,SAAS,IAAI,YAAY,CAAC,IAAI,CAAC;QAElD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAE1C,KAAK,CAAC,qBAAqB,UAAU,YAAY,QAAQ,EAAE,CAAC,CAAC;QAE7D,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAEhD,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IACvC,CAAC;CACF;AA3BD,kDA2BC;AAED,8DAA8D;AAC9D,SAAgB,qBAAqB,CAAC,CAAM;IAC1C,OAAO,CAAC,YAAY,mBAAmB,CAAC;AAC1C,CAAC;AAFD,sDAEC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright IBM Corp. 2018. All Rights Reserved.
|
|
3
|
+
// Node module: @loopback/repository
|
|
4
|
+
// This file is licensed under the MIT License.
|
|
5
|
+
// License text available at https://opensource.org/licenses/MIT
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./entity-not-found.error"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./invalid-relation.error"), exports);
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,wEAAyC;AACzC,wEAAyC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RelationType, RelationMetadata } from '../relations';
|
|
2
|
+
export declare class InvalidRelationError<Props extends object = {}> extends Error {
|
|
3
|
+
code: string;
|
|
4
|
+
reason: string;
|
|
5
|
+
relationName: string;
|
|
6
|
+
relationType: RelationType;
|
|
7
|
+
sourceModelName: string;
|
|
8
|
+
constructor(reason: string, relationMeta: RelationMetadata, extraProperties?: Props);
|
|
9
|
+
}
|
|
10
|
+
export declare function isInvalidRelationError(e: any): e is InvalidRelationError<any>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright IBM Corp. 2018,2019. All Rights Reserved.
|
|
3
|
+
// Node module: @loopback/repository
|
|
4
|
+
// This file is licensed under the MIT License.
|
|
5
|
+
// License text available at https://opensource.org/licenses/MIT
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.isInvalidRelationError = exports.InvalidRelationError = void 0;
|
|
8
|
+
class InvalidRelationError extends Error {
|
|
9
|
+
constructor(reason, relationMeta, extraProperties) {
|
|
10
|
+
const { name, type, source } = relationMeta;
|
|
11
|
+
const model = (source === null || source === void 0 ? void 0 : source.modelName) || '<Unknown Model>';
|
|
12
|
+
const message = `Invalid ${type} definition for ${model}#${name}: ${reason}`;
|
|
13
|
+
super(message);
|
|
14
|
+
Error.captureStackTrace(this, this.constructor);
|
|
15
|
+
this.code = 'INVALID_RELATION_DEFINITION';
|
|
16
|
+
this.relationName = name;
|
|
17
|
+
this.relationType = type;
|
|
18
|
+
this.sourceModelName = model;
|
|
19
|
+
Object.assign(this, extraProperties);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.InvalidRelationError = InvalidRelationError;
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
+
function isInvalidRelationError(e) {
|
|
25
|
+
return e instanceof InvalidRelationError;
|
|
26
|
+
}
|
|
27
|
+
exports.isInvalidRelationError = isInvalidRelationError;
|
|
28
|
+
//# sourceMappingURL=invalid-relation.error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-relation.error.js","sourceRoot":"","sources":["../../src/errors/invalid-relation.error.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAIhE,MAAa,oBAAgD,SAAQ,KAAK;IAOxE,YACE,MAAc,EACd,YAA8B,EAC9B,eAAuB;QAEvB,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,GAAG,YAAY,CAAC;QAC1C,MAAM,KAAK,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,KAAI,iBAAiB,CAAC;QACrD,MAAM,OAAO,GAAG,WAAW,IAAI,mBAAmB,KAAK,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QAC7E,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAEhD,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;QAC1C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAE7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IACvC,CAAC;CACF;AA1BD,oDA0BC;AAED,8DAA8D;AAC9D,SAAgB,sBAAsB,CAAC,CAAM;IAC3C,OAAO,CAAC,YAAY,oBAAoB,CAAC;AAC3C,CAAC;AAFD,wDAEC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A common set of interfaces for interacting with databases.
|
|
3
|
+
*
|
|
4
|
+
* This module provides data access facilities to various databases and services
|
|
5
|
+
* as well as the constructs for modeling and accessing those data.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export * from '@loopback/filter';
|
|
10
|
+
export { JSONSchema7 as JsonSchema } from 'json-schema';
|
|
11
|
+
/**
|
|
12
|
+
* Export the DataSource to avoid TypeScript 4.2's complaint about
|
|
13
|
+
* RepositoryMixin as it references `juggler.DataSource`
|
|
14
|
+
*/
|
|
15
|
+
export { DataSource as JugglerDataSource } from 'loopback-datasource-juggler';
|
|
16
|
+
export * from './common-types';
|
|
17
|
+
export * from './connectors';
|
|
18
|
+
export * from './datasource';
|
|
19
|
+
export * from './decorators';
|
|
20
|
+
export * from './define-model-class';
|
|
21
|
+
export * from './define-repository-class';
|
|
22
|
+
export * from './errors';
|
|
23
|
+
export * from './keys';
|
|
24
|
+
export * from './mixins';
|
|
25
|
+
export * from './model';
|
|
26
|
+
export * from './relations';
|
|
27
|
+
export * from './repositories';
|
|
28
|
+
export * from './transaction';
|
|
29
|
+
export * from './type-resolver';
|
|
30
|
+
export * from './types';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright IBM Corp. 2017,2020. All Rights Reserved.
|
|
3
|
+
// Node module: @loopback/repository
|
|
4
|
+
// This file is licensed under the MIT License.
|
|
5
|
+
// License text available at https://opensource.org/licenses/MIT
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.JugglerDataSource = void 0;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
/**
|
|
10
|
+
* A common set of interfaces for interacting with databases.
|
|
11
|
+
*
|
|
12
|
+
* This module provides data access facilities to various databases and services
|
|
13
|
+
* as well as the constructs for modeling and accessing those data.
|
|
14
|
+
*
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
(0, tslib_1.__exportStar)(require("@loopback/filter"), exports);
|
|
18
|
+
/**
|
|
19
|
+
* Export the DataSource to avoid TypeScript 4.2's complaint about
|
|
20
|
+
* RepositoryMixin as it references `juggler.DataSource`
|
|
21
|
+
*/
|
|
22
|
+
var loopback_datasource_juggler_1 = require("loopback-datasource-juggler");
|
|
23
|
+
Object.defineProperty(exports, "JugglerDataSource", { enumerable: true, get: function () { return loopback_datasource_juggler_1.DataSource; } });
|
|
24
|
+
(0, tslib_1.__exportStar)(require("./common-types"), exports);
|
|
25
|
+
(0, tslib_1.__exportStar)(require("./connectors"), exports);
|
|
26
|
+
(0, tslib_1.__exportStar)(require("./datasource"), exports);
|
|
27
|
+
(0, tslib_1.__exportStar)(require("./decorators"), exports);
|
|
28
|
+
(0, tslib_1.__exportStar)(require("./define-model-class"), exports);
|
|
29
|
+
(0, tslib_1.__exportStar)(require("./define-repository-class"), exports);
|
|
30
|
+
(0, tslib_1.__exportStar)(require("./errors"), exports);
|
|
31
|
+
(0, tslib_1.__exportStar)(require("./keys"), exports);
|
|
32
|
+
(0, tslib_1.__exportStar)(require("./mixins"), exports);
|
|
33
|
+
(0, tslib_1.__exportStar)(require("./model"), exports);
|
|
34
|
+
(0, tslib_1.__exportStar)(require("./relations"), exports);
|
|
35
|
+
(0, tslib_1.__exportStar)(require("./repositories"), exports);
|
|
36
|
+
(0, tslib_1.__exportStar)(require("./transaction"), exports);
|
|
37
|
+
(0, tslib_1.__exportStar)(require("./type-resolver"), exports);
|
|
38
|
+
(0, tslib_1.__exportStar)(require("./types"), exports);
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE;;;;;;;GAOG;AAEH,gEAAiC;AAEjC;;;GAGG;AACH,2EAA4E;AAApE,gIAAA,UAAU,OAAqB;AACvC,8DAA+B;AAC/B,4DAA6B;AAC7B,4DAA6B;AAC7B,4DAA6B;AAC7B,oEAAqC;AACrC,yEAA0C;AAC1C,wDAAyB;AACzB,sDAAuB;AACvB,wDAAyB;AACzB,uDAAwB;AACxB,2DAA4B;AAC5B,8DAA+B;AAC/B,6DAA8B;AAC9B,+DAAgC;AAChC,uDAAwB"}
|
package/dist/keys.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Binding tags for repository related bindings
|
|
3
|
+
*/
|
|
4
|
+
export declare namespace RepositoryTags {
|
|
5
|
+
/**
|
|
6
|
+
* Tag for model class bindings
|
|
7
|
+
*/
|
|
8
|
+
const MODEL = "model";
|
|
9
|
+
/**
|
|
10
|
+
* Tag for repository bindings
|
|
11
|
+
*/
|
|
12
|
+
const REPOSITORY = "repository";
|
|
13
|
+
/**
|
|
14
|
+
* Tag for datasource bindings
|
|
15
|
+
*/
|
|
16
|
+
const DATASOURCE = "datasource";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Binding keys and namespaces for repository related bindings
|
|
20
|
+
*/
|
|
21
|
+
export declare namespace RepositoryBindings {
|
|
22
|
+
/**
|
|
23
|
+
* Namespace for model class bindings
|
|
24
|
+
*/
|
|
25
|
+
const MODELS = "models";
|
|
26
|
+
/**
|
|
27
|
+
* Namespace for repository bindings
|
|
28
|
+
*/
|
|
29
|
+
const REPOSITORIES = "repositories";
|
|
30
|
+
/**
|
|
31
|
+
* Namespace for datasource bindings
|
|
32
|
+
*/
|
|
33
|
+
const DATASOURCES = "datasources";
|
|
34
|
+
}
|
package/dist/keys.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
3
|
+
// Node module: @loopback/repository
|
|
4
|
+
// This file is licensed under the MIT License.
|
|
5
|
+
// License text available at https://opensource.org/licenses/MIT
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.RepositoryBindings = exports.RepositoryTags = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Binding tags for repository related bindings
|
|
10
|
+
*/
|
|
11
|
+
var RepositoryTags;
|
|
12
|
+
(function (RepositoryTags) {
|
|
13
|
+
/**
|
|
14
|
+
* Tag for model class bindings
|
|
15
|
+
*/
|
|
16
|
+
RepositoryTags.MODEL = 'model';
|
|
17
|
+
/**
|
|
18
|
+
* Tag for repository bindings
|
|
19
|
+
*/
|
|
20
|
+
RepositoryTags.REPOSITORY = 'repository';
|
|
21
|
+
/**
|
|
22
|
+
* Tag for datasource bindings
|
|
23
|
+
*/
|
|
24
|
+
RepositoryTags.DATASOURCE = 'datasource';
|
|
25
|
+
})(RepositoryTags = exports.RepositoryTags || (exports.RepositoryTags = {}));
|
|
26
|
+
/**
|
|
27
|
+
* Binding keys and namespaces for repository related bindings
|
|
28
|
+
*/
|
|
29
|
+
var RepositoryBindings;
|
|
30
|
+
(function (RepositoryBindings) {
|
|
31
|
+
/**
|
|
32
|
+
* Namespace for model class bindings
|
|
33
|
+
*/
|
|
34
|
+
RepositoryBindings.MODELS = 'models';
|
|
35
|
+
/**
|
|
36
|
+
* Namespace for repository bindings
|
|
37
|
+
*/
|
|
38
|
+
RepositoryBindings.REPOSITORIES = 'repositories';
|
|
39
|
+
/**
|
|
40
|
+
* Namespace for datasource bindings
|
|
41
|
+
*/
|
|
42
|
+
RepositoryBindings.DATASOURCES = 'datasources';
|
|
43
|
+
})(RepositoryBindings = exports.RepositoryBindings || (exports.RepositoryBindings = {}));
|
|
44
|
+
//# sourceMappingURL=keys.js.map
|
package/dist/keys.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE;;GAEG;AACH,IAAiB,cAAc,CAa9B;AAbD,WAAiB,cAAc;IAC7B;;OAEG;IACU,oBAAK,GAAG,OAAO,CAAC;IAC7B;;OAEG;IACU,yBAAU,GAAG,YAAY,CAAC;IACvC;;OAEG;IACU,yBAAU,GAAG,YAAY,CAAC;AACzC,CAAC,EAbgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAa9B;AAED;;GAEG;AACH,IAAiB,kBAAkB,CAalC;AAbD,WAAiB,kBAAkB;IACjC;;OAEG;IACU,yBAAM,GAAG,QAAQ,CAAC;IAC/B;;OAEG;IACU,+BAAY,GAAG,cAAc,CAAC;IAC3C;;OAEG;IACU,8BAAW,GAAG,aAAa,CAAC;AAC3C,CAAC,EAbgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAalC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './repository.mixin';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
3
|
+
// Node module: @loopback/repository
|
|
4
|
+
// This file is licensed under the MIT License.
|
|
5
|
+
// License text available at https://opensource.org/licenses/MIT
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./repository.mixin"), exports);
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mixins/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,kEAAmC"}
|