@driveup/schema 0.3.14 → 0.3.15
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/lib/profile/student/program/training/training-cost.view.entity.js +2 -1
- package/lib/profile/student/program/training/training-cost.view.entity.js.map +1 -1
- package/lib/profile/student/program/training/training.view.entity.js +3 -1
- package/lib/profile/student/program/training/training.view.entity.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TrainingCostViewEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const training_sessions_view_entity_1 = require("./training-sessions.view.entity");
|
|
14
15
|
let TrainingCostViewEntity = class TrainingCostViewEntity {
|
|
15
16
|
};
|
|
16
17
|
exports.TrainingCostViewEntity = TrainingCostViewEntity;
|
|
@@ -37,7 +38,7 @@ __decorate([
|
|
|
37
38
|
exports.TrainingCostViewEntity = TrainingCostViewEntity = __decorate([
|
|
38
39
|
(0, typeorm_1.ViewEntity)({
|
|
39
40
|
name: 'training_cost_view',
|
|
40
|
-
dependsOn: [
|
|
41
|
+
dependsOn: [training_sessions_view_entity_1.TrainingSessionsViewEntity],
|
|
41
42
|
expression: `
|
|
42
43
|
SELECT
|
|
43
44
|
t.id AS trainingId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"training-cost.view.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/training/training-cost.view.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiD;
|
|
1
|
+
{"version":3,"file":"training-cost.view.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/training/training-cost.view.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiD;AAEjD,mFAA6E;AAmCtE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAiClC,CAAA;AAjCY,wDAAsB;AAMlC;IADC,IAAA,oBAAU,GAAE;;0DACM;AAMnB;IADC,IAAA,oBAAU,GAAE;;yDACK;AAMlB;IADC,IAAA,oBAAU,GAAE;;2DACO;AAMpB;IADC,IAAA,oBAAU,GAAE;;2DACO;AAQpB;IADC,IAAA,oBAAU,GAAE;;oDACA;iCAhCD,sBAAsB;IAjClC,IAAA,oBAAU,EAAC;QACX,IAAI,EAAE,oBAAoB;QAC1B,SAAS,EAAE,CAAC,0DAA0B,CAAC;QACvC,UAAU,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BX;KACD,CAAC;GACW,sBAAsB,CAiClC"}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TrainingViewEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const training_sessions_view_entity_1 = require("./training-sessions.view.entity");
|
|
15
|
+
const training_cost_view_entity_1 = require("./training-cost.view.entity");
|
|
14
16
|
// training balance = (training cost) + (total paid) - (sum of refunds)
|
|
15
17
|
// training cost = (administration fee) + (total sessions costs) - (sum of discounts)
|
|
16
18
|
let TrainingViewEntity = class TrainingViewEntity {
|
|
@@ -39,7 +41,7 @@ __decorate([
|
|
|
39
41
|
exports.TrainingViewEntity = TrainingViewEntity = __decorate([
|
|
40
42
|
(0, typeorm_1.ViewEntity)({
|
|
41
43
|
name: 'training_view',
|
|
42
|
-
dependsOn: [
|
|
44
|
+
dependsOn: [training_sessions_view_entity_1.TrainingSessionsViewEntity, training_cost_view_entity_1.TrainingCostViewEntity],
|
|
43
45
|
expression: `
|
|
44
46
|
SELECT
|
|
45
47
|
t.id AS trainingId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"training.view.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/training/training.view.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiD;AAEjD,uEAAuE;AACvE,qFAAqF;AAuB9E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAgC9B,CAAA;AAhCY,gDAAkB;AAM9B;IADC,IAAA,oBAAU,GAAE;;sDACM;AAMnB;IADC,IAAA,oBAAU,GAAE;;qDACK;AAMlB;IADC,IAAA,oBAAU,GAAE;;uDACO;AAMpB;IADC,IAAA,oBAAU,GAAE;;uDACO;AAOpB;IADC,IAAA,oBAAU,GAAE;;mDACG;6BA/BJ,kBAAkB;IArB9B,IAAA,oBAAU,EAAC;QACX,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"training.view.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/training/training.view.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiD;AAEjD,mFAA6E;AAC7E,2EAAqE;AAErE,uEAAuE;AACvE,qFAAqF;AAuB9E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAgC9B,CAAA;AAhCY,gDAAkB;AAM9B;IADC,IAAA,oBAAU,GAAE;;sDACM;AAMnB;IADC,IAAA,oBAAU,GAAE;;qDACK;AAMlB;IADC,IAAA,oBAAU,GAAE;;uDACO;AAMpB;IADC,IAAA,oBAAU,GAAE;;uDACO;AAOpB;IADC,IAAA,oBAAU,GAAE;;mDACG;6BA/BJ,kBAAkB;IArB9B,IAAA,oBAAU,EAAC;QACX,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,CAAC,0DAA0B,EAAE,kDAAsB,CAAC;QAC/D,UAAU,EAAE;;;;;;;;;;;;;;;;EAgBX;KACD,CAAC;GACW,kBAAkB,CAgC9B"}
|