@loopback/repository 2.5.1 → 2.9.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/CHANGELOG.md +57 -0
- package/dist/decorators/metadata.d.ts +1 -1
- package/dist/decorators/metadata.js +6 -6
- package/dist/decorators/metadata.js.map +1 -1
- package/dist/decorators/model.decorator.d.ts +1 -1
- package/dist/decorators/model.decorator.js +10 -10
- package/dist/decorators/model.decorator.js.map +1 -1
- package/dist/decorators/repository.decorator.js +4 -4
- package/dist/decorators/repository.decorator.js.map +1 -1
- package/dist/define-model-class.d.ts +2 -2
- package/dist/mixins/repository.mixin.d.ts +82 -43
- package/dist/mixins/repository.mixin.js +52 -15
- package/dist/mixins/repository.mixin.js.map +1 -1
- package/dist/model.js +3 -2
- package/dist/model.js.map +1 -1
- package/dist/query.d.ts +30 -0
- package/dist/query.js +50 -0
- package/dist/query.js.map +1 -1
- package/dist/relations/belongs-to/belongs-to.decorator.js +2 -2
- package/dist/relations/belongs-to/belongs-to.decorator.js.map +1 -1
- package/dist/relations/belongs-to/belongs-to.repository.d.ts +1 -1
- package/dist/relations/has-many/has-many-through-repository.factory.d.ts +11 -0
- package/dist/relations/has-many/has-many-through-repository.factory.js +28 -0
- package/dist/relations/has-many/has-many-through-repository.factory.js.map +1 -0
- package/dist/relations/has-many/has-many-through.helpers.d.ts +87 -14
- package/dist/relations/has-many/has-many-through.helpers.js +114 -20
- package/dist/relations/has-many/has-many-through.helpers.js.map +1 -1
- package/dist/relations/has-many/has-many-through.repository.d.ts +38 -2
- package/dist/relations/has-many/has-many-through.repository.js +71 -0
- package/dist/relations/has-many/has-many-through.repository.js.map +1 -1
- package/dist/relations/has-many/has-many.helpers.js +3 -2
- package/dist/relations/has-many/has-many.helpers.js.map +1 -1
- package/dist/relations/has-many/has-many.repository.d.ts +1 -1
- package/dist/relations/has-many/index.d.ts +4 -2
- package/dist/relations/has-many/index.js +4 -2
- package/dist/relations/has-many/index.js.map +1 -1
- package/dist/relations/has-one/has-one.helpers.js +2 -1
- package/dist/relations/has-one/has-one.helpers.js.map +1 -1
- package/dist/relations/has-one/has-one.repository.d.ts +1 -1
- package/dist/relations/relation.decorator.js +7 -7
- package/dist/relations/relation.decorator.js.map +1 -1
- package/dist/relations/relation.types.d.ts +1 -1
- package/dist/relations/relation.types.js +2 -2
- package/dist/relations/relation.types.js.map +1 -1
- package/dist/repositories/constraint-utils.d.ts +10 -0
- package/dist/repositories/constraint-utils.js +16 -1
- package/dist/repositories/constraint-utils.js.map +1 -1
- package/dist/repositories/legacy-juggler-bridge.d.ts +33 -2
- package/dist/repositories/legacy-juggler-bridge.js +34 -0
- package/dist/repositories/legacy-juggler-bridge.js.map +1 -1
- package/dist/type-resolver.js +2 -1
- package/dist/type-resolver.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/null.js +1 -1
- package/dist/types/null.js.map +1 -1
- package/package.json +14 -12
- package/src/decorators/metadata.ts +1 -1
- package/src/decorators/model.decorator.ts +1 -1
- package/src/decorators/repository.decorator.ts +1 -1
- package/src/define-model-class.ts +2 -2
- package/src/mixins/repository.mixin.ts +70 -41
- package/src/model.ts +2 -2
- package/src/query.ts +55 -0
- package/src/relations/belongs-to/belongs-to.decorator.ts +1 -1
- package/src/relations/belongs-to/belongs-to.repository.ts +1 -1
- package/src/relations/has-many/has-many-through-repository.factory.ts +100 -0
- package/src/relations/has-many/has-many-through.helpers.ts +138 -21
- package/src/relations/has-many/has-many-through.repository.ts +174 -2
- package/src/relations/has-many/has-many.helpers.ts +2 -3
- package/src/relations/has-many/has-many.repository.ts +1 -1
- package/src/relations/has-many/index.ts +4 -2
- package/src/relations/has-one/has-one.helpers.ts +1 -2
- package/src/relations/has-one/has-one.repository.ts +1 -1
- package/src/relations/relation.decorator.ts +2 -2
- package/src/relations/relation.types.ts +1 -1
- package/src/repositories/constraint-utils.ts +17 -0
- package/src/repositories/legacy-juggler-bridge.ts +59 -1
- package/src/type-resolver.ts +2 -1
- package/src/types/index.ts +1 -1
- package/src/types/null.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Count, DataObject, Entity, Filter, Options, Where } from '../..';
|
|
1
|
+
import { Count, DataObject, Entity, EntityCrudRepository, Filter, Getter, Options, Where } from '../..';
|
|
2
2
|
/**
|
|
3
3
|
* CRUD operations for a target repository of a HasManyThrough relation
|
|
4
4
|
*
|
|
@@ -53,7 +53,7 @@ export interface HasManyThroughRepository<Target extends Entity, TargetID, Throu
|
|
|
53
53
|
link(targetModelId: TargetID, options?: Options & {
|
|
54
54
|
throughData?: DataObject<Through>;
|
|
55
55
|
throughOptions?: Options;
|
|
56
|
-
}): Promise<
|
|
56
|
+
}): Promise<void>;
|
|
57
57
|
/**
|
|
58
58
|
* Removes an association to an existing target model instance
|
|
59
59
|
* @param targetModelId - The target model to unlink
|
|
@@ -64,3 +64,39 @@ export interface HasManyThroughRepository<Target extends Entity, TargetID, Throu
|
|
|
64
64
|
throughOptions?: Options;
|
|
65
65
|
}): Promise<void>;
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* a class for CRUD operations for hasManyThrough relation.
|
|
69
|
+
*
|
|
70
|
+
* Warning: The hasManyThrough interface is experimental and is subject to change.
|
|
71
|
+
* If backwards-incompatible changes are made, a new major version may not be
|
|
72
|
+
* released.
|
|
73
|
+
*/
|
|
74
|
+
export declare class DefaultHasManyThroughRepository<TargetEntity extends Entity, TargetID, TargetRepository extends EntityCrudRepository<TargetEntity, TargetID>, ThroughEntity extends Entity, ThroughID, ThroughRepository extends EntityCrudRepository<ThroughEntity, ThroughID>> implements HasManyThroughRepository<TargetEntity, TargetID, ThroughEntity> {
|
|
75
|
+
getTargetRepository: Getter<TargetRepository>;
|
|
76
|
+
getThroughRepository: Getter<ThroughRepository>;
|
|
77
|
+
getTargetConstraintFromThroughModels: (throughInstances: ThroughEntity[]) => DataObject<TargetEntity>;
|
|
78
|
+
getTargetKeys: (throughInstances: ThroughEntity[]) => TargetID[];
|
|
79
|
+
getThroughConstraintFromSource: () => DataObject<ThroughEntity>;
|
|
80
|
+
getThroughConstraintFromTarget: (targetID: TargetID[]) => DataObject<ThroughEntity>;
|
|
81
|
+
constructor(getTargetRepository: Getter<TargetRepository>, getThroughRepository: Getter<ThroughRepository>, getTargetConstraintFromThroughModels: (throughInstances: ThroughEntity[]) => DataObject<TargetEntity>, getTargetKeys: (throughInstances: ThroughEntity[]) => TargetID[], getThroughConstraintFromSource: () => DataObject<ThroughEntity>, getThroughConstraintFromTarget: (targetID: TargetID[]) => DataObject<ThroughEntity>);
|
|
82
|
+
create(targetModelData: DataObject<TargetEntity>, options?: Options & {
|
|
83
|
+
throughData?: DataObject<ThroughEntity>;
|
|
84
|
+
throughOptions?: Options;
|
|
85
|
+
}): Promise<TargetEntity>;
|
|
86
|
+
find(filter?: Filter<TargetEntity>, options?: Options & {
|
|
87
|
+
throughOptions?: Options;
|
|
88
|
+
}): Promise<TargetEntity[]>;
|
|
89
|
+
delete(where?: Where<TargetEntity>, options?: Options & {
|
|
90
|
+
throughOptions?: Options;
|
|
91
|
+
}): Promise<Count>;
|
|
92
|
+
patch(dataObject: DataObject<TargetEntity>, where?: Where<TargetEntity>, options?: Options & {
|
|
93
|
+
throughOptions?: Options;
|
|
94
|
+
}): Promise<Count>;
|
|
95
|
+
link(targetId: TargetID, options?: Options & {
|
|
96
|
+
throughData?: DataObject<ThroughEntity>;
|
|
97
|
+
throughOptions?: Options;
|
|
98
|
+
}): Promise<void>;
|
|
99
|
+
unlink(targetId: TargetID, options?: Options & {
|
|
100
|
+
throughOptions?: Options;
|
|
101
|
+
}): Promise<void>;
|
|
102
|
+
}
|
|
@@ -4,4 +4,75 @@
|
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DefaultHasManyThroughRepository = void 0;
|
|
8
|
+
const __1 = require("../..");
|
|
9
|
+
/**
|
|
10
|
+
* a class for CRUD operations for hasManyThrough relation.
|
|
11
|
+
*
|
|
12
|
+
* Warning: The hasManyThrough interface is experimental and is subject to change.
|
|
13
|
+
* If backwards-incompatible changes are made, a new major version may not be
|
|
14
|
+
* released.
|
|
15
|
+
*/
|
|
16
|
+
class DefaultHasManyThroughRepository {
|
|
17
|
+
constructor(getTargetRepository, getThroughRepository, getTargetConstraintFromThroughModels, getTargetKeys, getThroughConstraintFromSource, getThroughConstraintFromTarget) {
|
|
18
|
+
this.getTargetRepository = getTargetRepository;
|
|
19
|
+
this.getThroughRepository = getThroughRepository;
|
|
20
|
+
this.getTargetConstraintFromThroughModels = getTargetConstraintFromThroughModels;
|
|
21
|
+
this.getTargetKeys = getTargetKeys;
|
|
22
|
+
this.getThroughConstraintFromSource = getThroughConstraintFromSource;
|
|
23
|
+
this.getThroughConstraintFromTarget = getThroughConstraintFromTarget;
|
|
24
|
+
}
|
|
25
|
+
async create(targetModelData, options) {
|
|
26
|
+
const targetRepository = await this.getTargetRepository();
|
|
27
|
+
const targetInstance = await targetRepository.create(targetModelData, options);
|
|
28
|
+
await this.link(targetInstance.getId(), options);
|
|
29
|
+
return targetInstance;
|
|
30
|
+
}
|
|
31
|
+
async find(filter, options) {
|
|
32
|
+
const targetRepository = await this.getTargetRepository();
|
|
33
|
+
const throughRepository = await this.getThroughRepository();
|
|
34
|
+
const sourceConstraint = this.getThroughConstraintFromSource();
|
|
35
|
+
const throughInstances = await throughRepository.find(__1.constrainFilter(undefined, sourceConstraint), options === null || options === void 0 ? void 0 : options.throughOptions);
|
|
36
|
+
const targetConstraint = this.getTargetConstraintFromThroughModels(throughInstances);
|
|
37
|
+
return targetRepository.find(__1.constrainFilter(filter, targetConstraint), options);
|
|
38
|
+
}
|
|
39
|
+
async delete(where, options) {
|
|
40
|
+
const targetRepository = await this.getTargetRepository();
|
|
41
|
+
const throughRepository = await this.getThroughRepository();
|
|
42
|
+
const sourceConstraint = this.getThroughConstraintFromSource();
|
|
43
|
+
const throughInstances = await throughRepository.find(__1.constrainFilter(undefined, sourceConstraint), options === null || options === void 0 ? void 0 : options.throughOptions);
|
|
44
|
+
const targetFkValues = this.getTargetKeys(throughInstances);
|
|
45
|
+
// delete through instances that have the targets that are going to be deleted
|
|
46
|
+
const throughFkConstraint = this.getThroughConstraintFromTarget(targetFkValues);
|
|
47
|
+
await throughRepository.deleteAll(__1.constrainWhereOr({}, [sourceConstraint, throughFkConstraint]));
|
|
48
|
+
// delete target(s)
|
|
49
|
+
const targetConstraint = this.getTargetConstraintFromThroughModels(throughInstances);
|
|
50
|
+
return targetRepository.deleteAll(__1.constrainWhere(where, targetConstraint), options);
|
|
51
|
+
}
|
|
52
|
+
// only allows patch target instances for now
|
|
53
|
+
async patch(dataObject, where, options) {
|
|
54
|
+
const targetRepository = await this.getTargetRepository();
|
|
55
|
+
const throughRepository = await this.getThroughRepository();
|
|
56
|
+
const sourceConstraint = this.getThroughConstraintFromSource();
|
|
57
|
+
const throughInstances = await throughRepository.find(__1.constrainFilter(undefined, sourceConstraint), options === null || options === void 0 ? void 0 : options.throughOptions);
|
|
58
|
+
const targetConstraint = this.getTargetConstraintFromThroughModels(throughInstances);
|
|
59
|
+
return targetRepository.updateAll(__1.constrainDataObject(dataObject, targetConstraint), __1.constrainWhere(where, targetConstraint), options);
|
|
60
|
+
}
|
|
61
|
+
async link(targetId, options) {
|
|
62
|
+
var _a;
|
|
63
|
+
const throughRepository = await this.getThroughRepository();
|
|
64
|
+
const sourceConstraint = this.getThroughConstraintFromSource();
|
|
65
|
+
const targetConstraint = this.getThroughConstraintFromTarget([targetId]);
|
|
66
|
+
const constraints = { ...targetConstraint, ...sourceConstraint };
|
|
67
|
+
await throughRepository.create(__1.constrainDataObject((_a = options === null || options === void 0 ? void 0 : options.throughData) !== null && _a !== void 0 ? _a : {}, constraints), options === null || options === void 0 ? void 0 : options.throughOptions);
|
|
68
|
+
}
|
|
69
|
+
async unlink(targetId, options) {
|
|
70
|
+
const throughRepository = await this.getThroughRepository();
|
|
71
|
+
const sourceConstraint = this.getThroughConstraintFromSource();
|
|
72
|
+
const targetConstraint = this.getThroughConstraintFromTarget([targetId]);
|
|
73
|
+
const constraints = { ...targetConstraint, ...sourceConstraint };
|
|
74
|
+
await throughRepository.deleteAll(__1.constrainDataObject({}, constraints), options === null || options === void 0 ? void 0 : options.throughOptions);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.DefaultHasManyThroughRepository = DefaultHasManyThroughRepository;
|
|
7
78
|
//# sourceMappingURL=has-many-through.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-many-through.repository.js","sourceRoot":"","sources":["../../../src/relations/has-many/has-many-through.repository.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE"}
|
|
1
|
+
{"version":3,"file":"has-many-through.repository.js","sourceRoot":"","sources":["../../../src/relations/has-many/has-many-through.repository.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,6BAae;AAgGf;;;;;;GAMG;AACH,MAAa,+BAA+B;IAQ1C,YACS,mBAA6C,EAC7C,oBAA+C,EAC/C,oCAEsB,EACtB,aAAgE,EAChE,8BAA+D,EAC/D,8BAEuB;QATvB,wBAAmB,GAAnB,mBAAmB,CAA0B;QAC7C,yBAAoB,GAApB,oBAAoB,CAA2B;QAC/C,yCAAoC,GAApC,oCAAoC,CAEd;QACtB,kBAAa,GAAb,aAAa,CAAmD;QAChE,mCAA8B,GAA9B,8BAA8B,CAAiC;QAC/D,mCAA8B,GAA9B,8BAA8B,CAEP;IAC7B,CAAC;IAEJ,KAAK,CAAC,MAAM,CACV,eAAyC,EACzC,OAGC;QAED,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC1D,MAAM,cAAc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8BAA8B,EAAE,CAAC;QAC/D,MAAM,gBAAgB,GAAG,IAAI,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QACzE,MAAM,WAAW,GAAG,EAAC,GAAG,gBAAgB,EAAE,GAAG,gBAAgB,EAAC,CAAC;QAC/D,MAAM,iBAAiB,CAAC,MAAM,CAC5B,uBAAmB,OACjB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,EAAE,EAC1B,WAAwC,CACzC,EACD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CACxB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CACV,QAAkB,EAClB,OAEC;QAED,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5D,MAAM,gBAAgB,GAAG,IAAI,CAAC,8BAA8B,EAAE,CAAC;QAC/D,MAAM,gBAAgB,GAAG,IAAI,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QACzE,MAAM,WAAW,GAAG,EAAC,GAAG,gBAAgB,EAAE,GAAG,gBAAgB,EAAC,CAAC;QAC/D,MAAM,iBAAiB,CAAC,SAAS,CAC/B,uBAAmB,CAAC,EAAE,EAAE,WAAwC,CAAC,EACjE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CACxB,CAAC;IACJ,CAAC;CACF;AAtJD,0EAsJC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/repository
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -20,10 +20,11 @@ const debug = debug_1.default('loopback:repository:has-many-helpers');
|
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
22
|
function resolveHasManyMetadata(relationMeta) {
|
|
23
|
+
var _a;
|
|
23
24
|
// some checks and relationMeta.keyFrom are handled in here
|
|
24
25
|
relationMeta = resolveHasManyMetaHelper(relationMeta);
|
|
25
26
|
const targetModel = relationMeta.target();
|
|
26
|
-
const targetModelProperties = targetModel.definition
|
|
27
|
+
const targetModelProperties = (_a = targetModel.definition) === null || _a === void 0 ? void 0 : _a.properties;
|
|
27
28
|
const sourceModel = relationMeta.source;
|
|
28
29
|
if (relationMeta.keyTo && targetModelProperties[relationMeta.keyTo]) {
|
|
29
30
|
// The explicit cast is needed because of a limitation of type inference
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-many.helpers.js","sourceRoot":"","sources":["../../../src/relations/has-many/has-many.helpers.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"has-many.helpers.js","sourceRoot":"","sources":["../../../src/relations/has-many/has-many.helpers.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,0DAAiC;AACjC,mCAAiC;AACjC,yCAAkD;AAClD,uDAAmD;AACnD,sDAAkE;AAElE,MAAM,KAAK,GAAG,eAAY,CAAC,sCAAsC,CAAC,CAAC;AAWnE;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACpC,YAA+B;;IAE/B,2DAA2D;IAC3D,YAAY,GAAG,wBAAwB,CAAC,YAAY,CAAC,CAAC;IAEtD,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC;IAC1C,MAAM,qBAAqB,SAAG,WAAW,CAAC,UAAU,0CAAE,UAAU,CAAC;IAEjE,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,CAAC;IAExC,IAAI,YAAY,CAAC,KAAK,IAAI,qBAAqB,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;QACnE,wEAAwE;QACxE,OAAO,YAAyC,CAAC;KAClD;IAED,KAAK,CACH,2CAA2C,EA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AO,GAAG,YAAY,CAAC,OAAO,CAAC;KAChC;SAAM;QACL,OAAO,GAAG,WAAW,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;KAC5C;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,EAAC,OAAO,EAAC,CAAsB,CAAC;AACrE,CAAC;AA5BD,4DA4BC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export * from './has-many.decorator';
|
|
2
|
-
export * from './has-many.repository';
|
|
3
1
|
export * from './has-many-repository.factory';
|
|
2
|
+
export * from './has-many-through-repository.factory';
|
|
3
|
+
export * from './has-many-through.repository';
|
|
4
|
+
export * from './has-many.decorator';
|
|
4
5
|
export * from './has-many.inclusion-resolver';
|
|
6
|
+
export * from './has-many.repository';
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
tslib_1.__exportStar(require("./has-many.decorator"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./has-many.repository"), exports);
|
|
10
8
|
tslib_1.__exportStar(require("./has-many-repository.factory"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./has-many-through-repository.factory"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./has-many-through.repository"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./has-many.decorator"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./has-many.inclusion-resolver"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./has-many.repository"), exports);
|
|
12
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/relations/has-many/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,+DAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/relations/has-many/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,wEAA8C;AAC9C,gFAAsD;AACtD,wEAA8C;AAC9C,+DAAqC;AACrC,wEAA8C;AAC9C,gEAAsC"}
|
|
@@ -20,6 +20,7 @@ const debug = debug_1.default('loopback:repository:has-one-helpers');
|
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
22
|
function resolveHasOneMetadata(relationMeta) {
|
|
23
|
+
var _a;
|
|
23
24
|
if (relationMeta.type !== relation_types_1.RelationType.hasOne) {
|
|
24
25
|
const reason = 'relation type must be HasOne';
|
|
25
26
|
throw new errors_1.InvalidRelationError(reason, relationMeta);
|
|
@@ -29,7 +30,7 @@ function resolveHasOneMetadata(relationMeta) {
|
|
|
29
30
|
throw new errors_1.InvalidRelationError(reason, relationMeta);
|
|
30
31
|
}
|
|
31
32
|
const targetModel = relationMeta.target();
|
|
32
|
-
const targetModelProperties = targetModel.definition
|
|
33
|
+
const targetModelProperties = (_a = targetModel.definition) === null || _a === void 0 ? void 0 : _a.properties;
|
|
33
34
|
const sourceModel = relationMeta.source;
|
|
34
35
|
if (!sourceModel || !sourceModel.modelName) {
|
|
35
36
|
const reason = 'source model must be defined';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-one.helpers.js","sourceRoot":"","sources":["../../../src/relations/has-one/has-one.helpers.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,0DAAiC;AACjC,mCAAiC;AACjC,yCAAkD;AAClD,uDAAmD;AACnD,sDAAiE;AAEjE,MAAM,KAAK,GAAG,eAAY,CAAC,qCAAqC,CAAC,CAAC;AAWlE;;;;;;GAMG;AACH,SAAgB,qBAAqB,CACnC,YAA8B
|
|
1
|
+
{"version":3,"file":"has-one.helpers.js","source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AAC,CAAC,CAAC;KAC5C;IAED,iEAAiE;IACjE,qCAAqC;IACrC,IAAI,YAAY,CAAC,KAAK,IAAI,qBAAqB,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;QACnE,wEAAwE;QACxE,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,EAAC,OAAO,EAAC,CAA6B,CAAC;KAC3E;IAED,KAAK,CACH,2CAA2C,EAC3C,WAAW,CAAC,SAAS,EACrB,WAAW,CACZ,CAAC;IACF,MAAM,aAAa,GAAG,kBAAS,CAAC,WAAW,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC;IAC/D,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAElE,IAAI,CAAC,oBAAoB,EAAE;QACzB,MAAM,MAAM,GAAG,gBAAgB,WAAW,CAAC,IAAI,yCAAyC,aAAa,EAAE,CAAC;QACxG,MAAM,IAAI,6BAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;KACtD;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,EAAC,OAAO,EAAE,KAAK,EAAE,aAAa,EAAC,CAAC,CAAC;AACtE,CAAC;AAtDD,sDAsDC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,
|
|
2
|
+
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/repository
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.referencesMany = exports.referencesOne = exports.embedsMany = exports.embedsOne = exports.getModelRelations = exports.relation = exports.RELATIONS_KEY = void 0;
|
|
8
|
-
const
|
|
8
|
+
const core_1 = require("@loopback/core");
|
|
9
9
|
const decorators_1 = require("../decorators");
|
|
10
10
|
const relation_types_1 = require("./relation.types");
|
|
11
11
|
exports.RELATIONS_KEY = 'loopback:relations';
|
|
@@ -16,7 +16,7 @@ exports.RELATIONS_KEY = 'loopback:relations';
|
|
|
16
16
|
*/
|
|
17
17
|
function relation(definition) {
|
|
18
18
|
// Apply relation definition to the model class
|
|
19
|
-
return
|
|
19
|
+
return core_1.PropertyDecoratorFactory.createDecorator(exports.RELATIONS_KEY, definition, {
|
|
20
20
|
decoratorName: '@relation',
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -44,7 +44,7 @@ exports.getModelRelations = getModelRelations;
|
|
|
44
44
|
*/
|
|
45
45
|
function embedsOne(definition) {
|
|
46
46
|
const rel = Object.assign({ type: relation_types_1.RelationType.embedsOne }, definition);
|
|
47
|
-
return
|
|
47
|
+
return core_1.PropertyDecoratorFactory.createDecorator(exports.RELATIONS_KEY, rel, {
|
|
48
48
|
decoratorName: '@embedsOne',
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ exports.embedsOne = embedsOne;
|
|
|
56
56
|
*/
|
|
57
57
|
function embedsMany(definition) {
|
|
58
58
|
const rel = Object.assign({ type: relation_types_1.RelationType.embedsMany }, definition);
|
|
59
|
-
return
|
|
59
|
+
return core_1.PropertyDecoratorFactory.createDecorator(exports.RELATIONS_KEY, rel, {
|
|
60
60
|
decoratorName: '@embedsMany',
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -68,7 +68,7 @@ exports.embedsMany = embedsMany;
|
|
|
68
68
|
*/
|
|
69
69
|
function referencesOne(definition) {
|
|
70
70
|
const rel = Object.assign({ type: relation_types_1.RelationType.referencesOne }, definition);
|
|
71
|
-
return
|
|
71
|
+
return core_1.PropertyDecoratorFactory.createDecorator(exports.RELATIONS_KEY, rel, {
|
|
72
72
|
decoratorName: '@referencesOne',
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -80,7 +80,7 @@ exports.referencesOne = referencesOne;
|
|
|
80
80
|
*/
|
|
81
81
|
function referencesMany(definition) {
|
|
82
82
|
const rel = Object.assign({ type: relation_types_1.RelationType.referencesMany }, definition);
|
|
83
|
-
return
|
|
83
|
+
return core_1.PropertyDecoratorFactory.createDecorator(exports.RELATIONS_KEY, rel, {
|
|
84
84
|
decoratorName: '@referencesMany',
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relation.decorator.js","sourceRoot":"","sources":["../../src/relations/relation.decorator.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE
|
|
1
|
+
{"version":3,"file":"relation.decorator.js","sourceRoot":"","sources":["../../src/relations/relation.decorator.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAAwD;AACxD,8CAAmD;AAEnD,qDAA8C;AAEjC,QAAA,aAAa,GAAG,oBAAoB,CAAC;AAElD;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,UAAmB;IAC1C,+CAA+C;IAC/C,OAAO,+BAAwB,CAAC,eAAe,CAAC,qBAAa,EAAE,UAAU,EAAE;QACzE,aAAa,EAAE,WAAW;KAC3B,CAAC,CAAC;AACL,CAAC;AALD,4BAKC;AAED;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,SAAuB;IAEvB,iDAAiD;IACjD,MAAM,QAAQ,GAAG,iCAAoB,CAAC,SAAS,CAAC,CAAC;IACjD,OAAO,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,SAAS,KAAI,EAAE,CAAC;AACnC,CAAC;AAND,8CAMC;AAED,EAAE;AACF,oEAAoE;AACpE,6DAA6D;AAC7D,EAAE;AAEF;;;;GAIG;AACH,SAAgB,SAAS,CAAC,UAAmB;IAC3C,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,6BAAY,CAAC,SAAS,EAAC,EAAE,UAAU,CAAC,CAAC;IACtE,OAAO,+BAAwB,CAAC,eAAe,CAAC,qBAAa,EAAE,GAAG,EAAE;QAClE,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC;AALD,8BAKC;AAED;;;;GAIG;AACH,SAAgB,UAAU,CAAC,UAAmB;IAC5C,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,6BAAY,CAAC,UAAU,EAAC,EAAE,UAAU,CAAC,CAAC;IACvE,OAAO,+BAAwB,CAAC,eAAe,CAAC,qBAAa,EAAE,GAAG,EAAE;QAClE,aAAa,EAAE,aAAa;KAC7B,CAAC,CAAC;AACL,CAAC;AALD,gCAKC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAC,UAAmB;IAC/C,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,6BAAY,CAAC,aAAa,EAAC,EAAE,UAAU,CAAC,CAAC;IAC1E,OAAO,+BAAwB,CAAC,eAAe,CAAC,qBAAa,EAAE,GAAG,EAAE;QAClE,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC;AALD,sCAKC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,UAAmB;IAChD,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,6BAAY,CAAC,cAAc,EAAC,EAAE,UAAU,CAAC,CAAC;IAC3E,OAAO,+BAAwB,CAAC,eAAe,CAAC,qBAAa,EAAE,GAAG,EAAE;QAClE,aAAa,EAAE,iBAAiB;KACjC,CAAC,CAAC;AACL,CAAC;AALD,wCAKC"}
|
|
@@ -119,7 +119,7 @@ export interface HasOneDefinition extends RelationDefinitionBase {
|
|
|
119
119
|
* A union type describing all possible Relation metadata objects.
|
|
120
120
|
*/
|
|
121
121
|
export declare type RelationMetadata = HasManyDefinition | BelongsToDefinition | HasOneDefinition | RelationDefinitionBase;
|
|
122
|
-
export { Getter } from '@loopback/
|
|
122
|
+
export { Getter } from '@loopback/core';
|
|
123
123
|
/**
|
|
124
124
|
* @returns An array of resolved values, the items must be ordered in the same
|
|
125
125
|
* way as `sourceEntities`. The resolved value can be one of:
|
|
@@ -16,6 +16,6 @@ var RelationType;
|
|
|
16
16
|
RelationType["referencesMany"] = "referencesMany";
|
|
17
17
|
})(RelationType = exports.RelationType || (exports.RelationType = {}));
|
|
18
18
|
// Re-export Getter so that users don't have to import from @loopback/context
|
|
19
|
-
var
|
|
20
|
-
Object.defineProperty(exports, "Getter", { enumerable: true, get: function () { return
|
|
19
|
+
var core_1 = require("@loopback/core");
|
|
20
|
+
Object.defineProperty(exports, "Getter", { enumerable: true, get: function () { return core_1.Getter; } });
|
|
21
21
|
//# sourceMappingURL=relation.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relation.types.js","sourceRoot":"","sources":["../../src/relations/relation.types.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAOhE,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,yCAAyB,CAAA;IACzB,+CAA+B,CAAA;IAC/B,iDAAiC,CAAA;AACnC,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AA0ID,6EAA6E;AAC7E,
|
|
1
|
+
{"version":3,"file":"relation.types.js","sourceRoot":"","sources":["../../src/relations/relation.types.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAOhE,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,yCAAyB,CAAA;IACzB,+CAA+B,CAAA;IAC/B,iDAAiC,CAAA;AACnC,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AA0ID,6EAA6E;AAC7E,uCAAsC;AAA9B,8FAAA,MAAM,OAAA"}
|
|
@@ -19,6 +19,16 @@ export declare function constrainFilter<T extends object>(originalFilter: Filter
|
|
|
19
19
|
* the original filter
|
|
20
20
|
*/
|
|
21
21
|
export declare function constrainWhere<T extends object>(originalWhere: Where<T> | undefined, constraint: Where<T>): Where<T>;
|
|
22
|
+
/**
|
|
23
|
+
* A utility function which takes a where filter and enforces constraint(s)
|
|
24
|
+
* on it with OR clause
|
|
25
|
+
* @param originalWhere - the where filter to apply the constrain(s) to
|
|
26
|
+
* @param constraint - the constraint which is to be applied on the filter with
|
|
27
|
+
* or clause
|
|
28
|
+
* @returns Filter the modified filter with the constraint, otherwise
|
|
29
|
+
* the original filter
|
|
30
|
+
*/
|
|
31
|
+
export declare function constrainWhereOr<T extends object>(originalWhere: Where<T> | undefined, constraint: Where<T>[]): Where<T>;
|
|
22
32
|
/**
|
|
23
33
|
* A utility function which takes a model instance data and enforces constraint(s)
|
|
24
34
|
* on it
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.constrainDataObjects = exports.constrainDataObject = exports.constrainWhere = exports.constrainFilter = void 0;
|
|
7
|
+
exports.constrainDataObjects = exports.constrainDataObject = exports.constrainWhereOr = exports.constrainWhere = exports.constrainFilter = void 0;
|
|
8
8
|
const lodash_1 = require("lodash");
|
|
9
9
|
const query_1 = require("../query");
|
|
10
10
|
/**
|
|
@@ -35,6 +35,21 @@ function constrainWhere(originalWhere, constraint) {
|
|
|
35
35
|
return builder.impose(constraint).build();
|
|
36
36
|
}
|
|
37
37
|
exports.constrainWhere = constrainWhere;
|
|
38
|
+
/**
|
|
39
|
+
* A utility function which takes a where filter and enforces constraint(s)
|
|
40
|
+
* on it with OR clause
|
|
41
|
+
* @param originalWhere - the where filter to apply the constrain(s) to
|
|
42
|
+
* @param constraint - the constraint which is to be applied on the filter with
|
|
43
|
+
* or clause
|
|
44
|
+
* @returns Filter the modified filter with the constraint, otherwise
|
|
45
|
+
* the original filter
|
|
46
|
+
*/
|
|
47
|
+
function constrainWhereOr(originalWhere, constraint) {
|
|
48
|
+
const where = lodash_1.cloneDeep(originalWhere);
|
|
49
|
+
const builder = new query_1.WhereBuilder(where);
|
|
50
|
+
return builder.or(constraint).build();
|
|
51
|
+
}
|
|
52
|
+
exports.constrainWhereOr = constrainWhereOr;
|
|
38
53
|
/**
|
|
39
54
|
* A utility function which takes a model instance data and enforces constraint(s)
|
|
40
55
|
* on it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constraint-utils.js","sourceRoot":"","sources":["../../src/repositories/constraint-utils.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,mCAAiC;AAGjC,oCAAoE;AAEpE;;;;;;;GAOG;AACH,SAAgB,eAAe,CAC7B,cAAqC,EACrC,UAAqB;IAErB,MAAM,MAAM,GAAG,kBAAS,CAAC,cAAc,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,IAAI,qBAAa,CAAI,MAAM,CAAC,CAAC;IAC7C,OAAO,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAC;AAC5C,CAAC;AAPD,0CAOC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAC5B,aAAmC,EACnC,UAAoB;IAEpB,MAAM,KAAK,GAAG,kBAAS,CAAC,aAAa,CAAC,CAAC;IACvC,MAAM,OAAO,GAAG,IAAI,oBAAY,CAAI,KAAK,CAAC,CAAC;IAC3C,OAAO,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAC;AAC5C,CAAC;AAPD,wCAOC;AACD;;;;;;;GAO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AAC,CAAC;AACvE,CAAC;AALD,oDAKC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Getter } from '@loopback/
|
|
1
|
+
import { Getter } from '@loopback/core';
|
|
2
2
|
import legacy from 'loopback-datasource-juggler';
|
|
3
3
|
import { AnyObject, Command, Count, DataObject, NamedParameters, Options, PositionalParameters } from '../common-types';
|
|
4
4
|
import { Entity, Model } from '../model';
|
|
5
5
|
import { Filter, FilterExcludingWhere, Inclusion, Where } from '../query';
|
|
6
|
-
import { BelongsToAccessor, HasManyRepositoryFactory, HasOneRepositoryFactory, InclusionResolver } from '../relations';
|
|
6
|
+
import { BelongsToAccessor, HasManyRepositoryFactory, HasManyThroughRepositoryFactory, HasOneRepositoryFactory, InclusionResolver } from '../relations';
|
|
7
7
|
import { IsolationLevel, Transaction } from '../transaction';
|
|
8
8
|
import { EntityCrudRepository, TransactionalEntityRepository } from './repository';
|
|
9
9
|
export declare namespace juggler {
|
|
@@ -96,6 +96,37 @@ export declare class DefaultCrudRepository<T extends Entity, ID, Relations exten
|
|
|
96
96
|
* @param targetRepo - Target repository instance
|
|
97
97
|
*/
|
|
98
98
|
protected createHasManyRepositoryFactoryFor<Target extends Entity, TargetID, ForeignKeyType>(relationName: string, targetRepoGetter: Getter<EntityCrudRepository<Target, TargetID>>): HasManyRepositoryFactory<Target, ForeignKeyType>;
|
|
99
|
+
/**
|
|
100
|
+
* Function to create a constrained hasManyThrough relation repository factory
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* class CustomerRepository extends DefaultCrudRepository<
|
|
105
|
+
* Customer,
|
|
106
|
+
* typeof Customer.prototype.id,
|
|
107
|
+
* CustomerRelations
|
|
108
|
+
* > {
|
|
109
|
+
* public readonly cartItems: HasManyRepositoryFactory<CartItem, typeof Customer.prototype.id>;
|
|
110
|
+
*
|
|
111
|
+
* constructor(
|
|
112
|
+
* protected db: juggler.DataSource,
|
|
113
|
+
* cartItemRepository: EntityCrudRepository<CartItem, typeof, CartItem.prototype.id>,
|
|
114
|
+
* throughRepository: EntityCrudRepository<Through, typeof Through.prototype.id>,
|
|
115
|
+
* ) {
|
|
116
|
+
* super(Customer, db);
|
|
117
|
+
* this.cartItems = this.createHasManyThroughRepositoryFactoryFor(
|
|
118
|
+
* 'cartItems',
|
|
119
|
+
* cartItemRepository,
|
|
120
|
+
* );
|
|
121
|
+
* }
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* @param relationName - Name of the relation defined on the source model
|
|
126
|
+
* @param targetRepo - Target repository instance
|
|
127
|
+
* @param throughRepo - Through repository instance
|
|
128
|
+
*/
|
|
129
|
+
protected createHasManyThroughRepositoryFactoryFor<Target extends Entity, TargetID, Through extends Entity, ThroughID, ForeignKeyType>(relationName: string, targetRepoGetter: Getter<EntityCrudRepository<Target, TargetID>>, throughRepoGetter: Getter<EntityCrudRepository<Through, ThroughID>>): HasManyThroughRepositoryFactory<Target, TargetID, Through, ForeignKeyType>;
|
|
99
130
|
/**
|
|
100
131
|
* @deprecated
|
|
101
132
|
* Function to create a belongs to accessor
|
|
@@ -181,6 +181,40 @@ class DefaultCrudRepository {
|
|
|
181
181
|
const meta = this.entityClass.definition.relations[relationName];
|
|
182
182
|
return relations_1.createHasManyRepositoryFactory(meta, targetRepoGetter);
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Function to create a constrained hasManyThrough relation repository factory
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* ```ts
|
|
189
|
+
* class CustomerRepository extends DefaultCrudRepository<
|
|
190
|
+
* Customer,
|
|
191
|
+
* typeof Customer.prototype.id,
|
|
192
|
+
* CustomerRelations
|
|
193
|
+
* > {
|
|
194
|
+
* public readonly cartItems: HasManyRepositoryFactory<CartItem, typeof Customer.prototype.id>;
|
|
195
|
+
*
|
|
196
|
+
* constructor(
|
|
197
|
+
* protected db: juggler.DataSource,
|
|
198
|
+
* cartItemRepository: EntityCrudRepository<CartItem, typeof, CartItem.prototype.id>,
|
|
199
|
+
* throughRepository: EntityCrudRepository<Through, typeof Through.prototype.id>,
|
|
200
|
+
* ) {
|
|
201
|
+
* super(Customer, db);
|
|
202
|
+
* this.cartItems = this.createHasManyThroughRepositoryFactoryFor(
|
|
203
|
+
* 'cartItems',
|
|
204
|
+
* cartItemRepository,
|
|
205
|
+
* );
|
|
206
|
+
* }
|
|
207
|
+
* }
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* @param relationName - Name of the relation defined on the source model
|
|
211
|
+
* @param targetRepo - Target repository instance
|
|
212
|
+
* @param throughRepo - Through repository instance
|
|
213
|
+
*/
|
|
214
|
+
createHasManyThroughRepositoryFactoryFor(relationName, targetRepoGetter, throughRepoGetter) {
|
|
215
|
+
const meta = this.entityClass.definition.relations[relationName];
|
|
216
|
+
return relations_1.createHasManyThroughRepositoryFactory(meta, targetRepoGetter, throughRepoGetter);
|
|
217
|
+
}
|
|
184
218
|
/**
|
|
185
219
|
* @deprecated
|
|
186
220
|
* Function to create a belongs to accessor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-juggler-bridge.js","sourceRoot":"","sources":["../../src/repositories/legacy-juggler-bridge.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,4DAA4B;AAC5B,sGAAiD;AAWjD,sCAA8C;AAC9C,oCAKkB;AAElB,4CAYsB;AAEtB,oDAA6D;AAM7D,IAAiB,OAAO,CAYvB;AAZD,WAAiB,OAAO;IACtB,sDAAsD;IACxC,kBAAU,GAAG,qCAAM,CAAC,UAAU,CAAC;IAC/B,iBAAS,GAAG,qCAAM,CAAC,SAAS,CAAC;IAE7B,sBAAc,GAAG,qCAAM,CAAC,cAAc,CAAC;IACvC,qBAAa,GAAG,qCAAM,CAAC,aAAa,CAAC;IAInD,qCAAqC;IACvB,sBAAc,GAAG,qCAAM,CA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
2
|
+
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/repository
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -28,6 +28,7 @@ exports.isTypeResolver = isTypeResolver;
|
|
|
28
28
|
/**
|
|
29
29
|
* A boxed type for `null`
|
|
30
30
|
*/
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
31
32
|
function Null() {
|
|
32
33
|
return null;
|
|
33
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-resolver.js","sourceRoot":"","sources":["../src/type-resolver.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AA4BhE;;;GAGG;AACH,SAAgB,cAAc;AAC5B,8DAA8D;AAC9D,EAAO;IAEP,wCAAwC;IACxC,IAAI,OAAO,EAAE,KAAK,UAAU;QAAE,OAAO,KAAK,CAAC;IAE3C,gDAAgD;IAChD,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;QAAE,OAAO,KAAK,CAAC;IAE/C,6DAA6D;IAC7D,IAAI,aAAa,CAAC,EAAE,CAAC;QAAE,OAAO,KAAK,CAAC;IAEpC,2EAA2E;IAE3E,OAAO,IAAI,CAAC;AACd,CAAC;AAhBD,wCAgBC;AAED;;GAEG;AACH,SAAgB,IAAI;IAClB,OAAO,IAAI,CAAC;AACd,CAAC;AAFD,oBAEC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,EAAY;IACxC,OAAO;IACL,UAAU;IACV,EAAE,KAAK,MAAM;QACb,EAAE,KAAK,OAAO;QACd,EAAE,KAAK,MAAM;QACb,UAAU;QACV,EAAE,KAAK,MAAM;QACb,EAAE,KAAK,KAAK;QACZ,EAAE,KAAK,IAAI;QACX,EAAE,KAAK,MAAM;QACb,EAAE,KAAK,MAAM;Q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D,sCAgBC;AAcD,SAAgB,WAAW,CAAI,EAA8B;IAC3D,OAAO,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACxC,CAAC;AAFD,kCAEC"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2017. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. 2017,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/repository
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAEhE;;;;;;;;;;;GAWG;AACH,+BAA8B;AAoB5B,wFApBM,aAAO,OAoBN;AAnBT,mCAAkC;AAoBhC,0FApBM,iBAAS,OAoBN;AAnBX,uCAAsC;AAcpC,4FAdM,qBAAW,OAcN;AAbb,qCAAoC;AAgBlC,2FAhBM,mBAAU,OAgBN;AAfZ,iCAAgC;AAc9B,yFAdM,eAAQ,OAcN;AAbV,mCAAkC;AAkBhC,0FAlBM,iBAAS,OAkBN;AAjBX,iCAAgC;AAkB9B,yFAlBM,eAAQ,OAkBN;AAjBV,qCAAoC;AAUlC,2FAVM,mBAAU,OAUN;AATZ,qCAAoC;AAiBlC,2FAjBM,mBAAU,OAiBN;AAhBZ,qCAAoC;AAMlC,2FANM,mBAAU,OAMN;AAJZ,mCAAkC;AAWhC,0FAXM,iBAAS,OAWN;AAME,QAAA,MAAM,GAAG,IAAI,mBAAU,EAAE,CAAC;AAC1B,QAAA,OAAO,GAAG,IAAI,qBAAW,EAAE,CAAC;AAC5B,QAAA,MAAM,GAAG,IAAI,mBAAU,EAAE,CAAC;AAC1B,QAAA,IAAI,GAAG,IAAI,eAAQ,EAAE,CAAC;AACtB,QAAA,MAAM,GAAG,IAAI,mBAAU,EAAE,CAAC;AAC1B,QAAA,GAAG,GAAG,IAAI,aAAO,EAAE,CAAC;AACpB,QAAA,IAAI,GAAG,IAAI,eAAQ,EAAE,CAAC"}
|
package/dist/types/null.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp.
|
|
2
|
+
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/repository
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/types/null.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"null.js","sourceRoot":"","sources":["../../src/types/null.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"null.js","sourceRoot":"","sources":["../../src/types/null.ts"],"names":[],"mappings":";AAAA,iDAAiD;AACjD,oCAAoC;AACpC,+CAA+C;AAC/C,gEAAgE;;;AAIhE,uDAAuD;AAEvD;;GAEG;AACH,MAAa,QAAQ;IAArB;QACW,SAAI,GAAG,SAAS,CAAC;IAqB5B,CAAC;IAnBC,UAAU,CAAC,KAAU;QACnB,OAAO,KAAK,KAAK,IAAI,CAAC;IACxB,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED,WAAW,CAAC,KAAU;QACpB,OAAO,KAAK,IAAI,IAAI,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,KAAU;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,KAAiC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAtBD,4BAsBC"}
|