@driveup/schema 0.3.13 → 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/index.d.ts CHANGED
@@ -47,9 +47,9 @@ export * from './profile/student/program/training/lesson.entity';
47
47
  export * from './profile/student/program/training/request.entity';
48
48
  export * from './profile/student/program/training/topic.entity';
49
49
  export * from './profile/student/program/training/training.entity';
50
- export * from './profile/student/program/training/training.view.entity';
51
- export * from './profile/student/program/training/training-cost.view.entity';
52
50
  export * from './profile/student/program/training/training-sessions.view.entity';
51
+ export * from './profile/student/program/training/training-cost.view.entity';
52
+ export * from './profile/student/program/training/training.view.entity';
53
53
  export * from './profile/student/program/training/transaction.entity';
54
54
  export * from './profile/student/program/program.entity';
55
55
  export * from './profile/student/student.entity';
package/lib/index.js CHANGED
@@ -68,9 +68,9 @@ __exportStar(require("./profile/student/program/training/lesson.entity"), export
68
68
  __exportStar(require("./profile/student/program/training/request.entity"), exports);
69
69
  __exportStar(require("./profile/student/program/training/topic.entity"), exports);
70
70
  __exportStar(require("./profile/student/program/training/training.entity"), exports);
71
- __exportStar(require("./profile/student/program/training/training.view.entity"), exports);
72
- __exportStar(require("./profile/student/program/training/training-cost.view.entity"), exports);
73
71
  __exportStar(require("./profile/student/program/training/training-sessions.view.entity"), exports);
72
+ __exportStar(require("./profile/student/program/training/training-cost.view.entity"), exports);
73
+ __exportStar(require("./profile/student/program/training/training.view.entity"), exports);
74
74
  __exportStar(require("./profile/student/program/training/transaction.entity"), exports);
75
75
  __exportStar(require("./profile/student/program/program.entity"), exports);
76
76
  __exportStar(require("./profile/student/student.entity"), exports);
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,+DAA6C;AAC7C,iEAA+C;AAC/C,uEAAqD;AACrD,mEAAiD;AACjD,qEAAmD;AACnD,mEA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version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,+DAA6C;AAC7C,iEAA+C;AAC/C,uEAAqD;AACrD,mEAAiD;AACjD,qEAAmD;AACnD,mEAAiD;AACjD,mEAAiD;AACjD,qEAAmD;AACnD,uEAAqD;AACrD,uEAAqD;AACrD,sEAAoD;AACpD,yEAAuD;AACvD,iBAAiB;AACjB,+DAA6C;AAC7C,+DAA6C;AAC7C,gEAA8C;AAC9C,mEAAiD;AACjD,mBAAmB;AACnB,2EAAyD;AACzD,yEAAuD;AACvD,yEAAuD;AACvD,wEAAsD;AACtD,iFAA+D;AAC/D,iFAA+D;AAC/D,wFAAsE;AACtE,qFAAmE;AACnE,oFAAkE;AAClE,sFAAoE;AACpE,oFAAkE;AAClE,iFAA+D;AAC/D,mFAAiE;AACjE,+EAA6D;AAC7D,iFAA+D;AAC/D,2EAAyD;AACzD,+EAA6D;AAC7D,2EAAyD;AACzD,yEAAuD;AACvD,6EAA2D;AAC3D,2EAAyD;AACzD,2EAAyD;AACzD,mEAAiD;AACjD,sBAAsB;AACtB,yEAAuD;AACvD,oBAAoB;AACpB,mFAAiE;AACjE,uFAAqE;AACrE,uFAAqE;AACrE,wFAAsE;AACtE,iFAA+D;AAC/D,mFAAiE;AACjE,oFAAkE;AAClE,kFAAgE;AAChE,qFAAmE;AACnE,mGAAiF;AACjF,+FAA6E;AAC7E,0FAAwE;AACxE,wFAAsE;AACtE,2EAAyD;AACzD,mEAAiD;AACjD,SAAS;AACT,sDAAoC;AACpC,0DAAwC;AACxC,+DAA6C;AAC7C,+DAA6C;AAC7C,8DAA4C;AAC5C,SAAS;AACT,oEAAkD;AAClD,mEAAiD;AACjD,kEAAgD;AAChD,oEAAkD;AAClD,mEAAiD;AACjD,kEAAgD;AAChD,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,gEAA8C;AAC9C,8DAA4C;AAC5C,sDAAoC;AACpC,wDAAsC;AACtC,uDAAqC;AACrC,6DAA2C;AAC3C,uDAAqC;AACrC,qDAAmC;AACnC,6DAA2C;AAC3C,QAAQ;AACR,0DAAwC;AACxC,4DAA0C;AAC1C,4DAA0C;AAC1C,oDAAkC"}
@@ -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: ['training_sessions_view'],
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;AAmC1C,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,wBAAwB,CAAC;QACrC,UAAU,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BX;KACD,CAAC;GACW,sBAAsB,CAiClC"}
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: ['training_sessions_view', 'training_cost_view'],
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,wBAAwB,EAAE,oBAAoB,CAAC;QAC3D,UAAU,EAAE;;;;;;;;;;;;;;;;EAgBX;KACD,CAAC;GACW,kBAAkB,CAgC9B"}
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"}