90dc-core 1.7.7 → 1.7.8

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.
@@ -1,5 +1,6 @@
1
1
  import { Model } from "sequelize-typescript";
2
2
  import { NonConsumableProgram } from "./NonConsumableProgram";
3
+ import { TranslatedNonConsumableProgramWebContent } from "./TranslatedNonConsumableProgramWebContent";
3
4
  export declare class NonConsumableProgramWebContent extends Model {
4
5
  nonConsumableProgramUuid: string;
5
6
  title: string;
@@ -15,4 +16,5 @@ export declare class NonConsumableProgramWebContent extends Model {
15
16
  conclusion: string;
16
17
  testimonials_image_url: string;
17
18
  program: NonConsumableProgram[];
19
+ translatedWebContent: TranslatedNonConsumableProgramWebContent[];
18
20
  }
@@ -4,8 +4,9 @@ var __decorate = this && this.__decorate || function(decorators, target, key, de
4
4
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { BelongsTo, Column, DataType, ForeignKey, Model, PrimaryKey, Table } from "sequelize-typescript";
7
+ import { BelongsTo, Column, DataType, ForeignKey, HasMany, Model, PrimaryKey, Table } from "sequelize-typescript";
8
8
  import { NonConsumableProgram } from "./NonConsumableProgram";
9
+ import { TranslatedNonConsumableProgramWebContent } from "./TranslatedNonConsumableProgramWebContent";
9
10
  export let NonConsumableProgramWebContent = class NonConsumableProgramWebContent extends Model {
10
11
  };
11
12
  __decorate([
@@ -91,6 +92,9 @@ __decorate([
91
92
  __decorate([
92
93
  BelongsTo(()=>NonConsumableProgram)
93
94
  ], NonConsumableProgramWebContent.prototype, "program", void 0);
95
+ __decorate([
96
+ HasMany(()=>TranslatedNonConsumableProgramWebContent)
97
+ ], NonConsumableProgramWebContent.prototype, "translatedWebContent", void 0);
94
98
  NonConsumableProgramWebContent = __decorate([
95
99
  Table
96
100
  ], NonConsumableProgramWebContent);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/dbmodels/nonconsprogram/NonConsumableProgramWebContent.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType,\n ForeignKey,\n Model, PrimaryKey,\n Table,\n} from \"sequelize-typescript\";\nimport {NonConsumableProgram} from \"./NonConsumableProgram\";\n\n@Table\nexport class NonConsumableProgramWebContent extends Model {\n @PrimaryKey\n @ForeignKey(() => NonConsumableProgram)\n @Column({type: DataType.UUID, allowNull: true})\n declare nonConsumableProgramUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare title: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare subtitle: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark3_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare conclusion: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare testimonials_image_url: string;\n\n @BelongsTo(() => NonConsumableProgram)\n declare program: NonConsumableProgram[];\n}\n"],"names":["BelongsTo","Column","DataType","ForeignKey","Model","PrimaryKey","Table","NonConsumableProgram","NonConsumableProgramWebContent","type","UUID","allowNull","TEXT"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,UAAU,EACVC,KAAK,EAAEC,UAAU,EACjBC,KAAK,QACA,uBAAuB;AAC9B,SAAQC,oBAAoB,QAAO,yBAAyB;AAG5D,WAAaC,iCAAN,6CAA6CJ;AA4CpD,EAAC;;IA3CEC;IACAF,WAAW,IAAMI;IACjBN,OAAO;QAACQ,MAAMP,SAASQ,IAAI;QAAEC,WAAW,IAAI;IAAA;GAHlCH;;IAMVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GANrCH;;IASVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GATrCH;;IAYVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAZrCH;;IAeVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAfrCH;;IAkBVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAlBrCH;;IAqBVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GArBrCH;;IAwBVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAxBrCH;;IA2BVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GA3BrCH;;IA8BVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GA9BrCH;;IAiCVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAjCrCH;;IAoCVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GApCrCH;;IAuCVP,OAAO;QAAEQ,MAAMP,SAASU,IAAI;QAAED,WAAW,KAAK;IAAC;GAvCrCH;;IA0CVR,UAAU,IAAMO;GA1CNC;AAAAA;IADZF;GACYE"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/nonconsprogram/NonConsumableProgramWebContent.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType,\n ForeignKey, HasMany,\n Model, PrimaryKey,\n Table,\n} from \"sequelize-typescript\";\nimport {NonConsumableProgram} from \"./NonConsumableProgram\";\nimport {TranslatedNonConsumableProgramWebContent} from \"./TranslatedNonConsumableProgramWebContent\";\n\n@Table\nexport class NonConsumableProgramWebContent extends Model {\n @PrimaryKey\n @ForeignKey(() => NonConsumableProgram)\n @Column({type: DataType.UUID, allowNull: true})\n declare nonConsumableProgramUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare title: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare subtitle: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark3_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare conclusion: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare testimonials_image_url: string;\n\n @BelongsTo(() => NonConsumableProgram)\n declare program: NonConsumableProgram[];\n\n @HasMany(() => TranslatedNonConsumableProgramWebContent)\n declare translatedWebContent: TranslatedNonConsumableProgramWebContent[];\n}\n"],"names":["BelongsTo","Column","DataType","ForeignKey","HasMany","Model","PrimaryKey","Table","NonConsumableProgram","TranslatedNonConsumableProgramWebContent","NonConsumableProgramWebContent","type","UUID","allowNull","TEXT"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,UAAU,EAAEC,OAAO,EACnBC,KAAK,EAAEC,UAAU,EACjBC,KAAK,QACA,uBAAuB;AAC9B,SAAQC,oBAAoB,QAAO,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TranslatedNonConsumableProgramWebContent.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType, Default,\n ForeignKey,\n Model,\n Table,\n} from \"sequelize-typescript\";\nimport {NonConsumableProgramWebContent} from \"./NonConsumableProgramWebContent\";\n\n@Table\nexport class TranslatedNonConsumableProgramWebContent extends Model {\n\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @ForeignKey(() => NonConsumableProgramWebContent)\n @Column(DataType.UUID)\n declare originalWebContentUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare language: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare title: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare subtitle: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark3_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare conclusion: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare testimonials_image_url: string;\n\n @BelongsTo(() => NonConsumableProgramWebContent)\n declare program: NonConsumableProgramWebContent[];\n}\n"],"names":["BelongsTo","Column","DataType","Default","ForeignKey","Model","Table","NonConsumableProgramWebContent","TranslatedNonConsumableProgramWebContent","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT"],"mappings":";;;;;;AAAA,SACIA,SAAS,EACTC,MAAM,EACNC,QAAQ,EAAEC,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AAC;GAhDvCL;;IAmDRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAnDvCL;;IAsDRR,UAAU,IAAMO;GAtDRC;AAAAA;IADZF;GACYE"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/nonconsprogram/TranslatedNonConsumableProgramWebContent.ts"],"sourcesContent":["import {\n BelongsTo,\n Column,\n DataType, Default,\n ForeignKey,\n Model,\n Table,\n} from \"sequelize-typescript\";\nimport {NonConsumableProgramWebContent} from \"./NonConsumableProgramWebContent\";\n\n@Table\nexport class TranslatedNonConsumableProgramWebContent extends Model {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @ForeignKey(() => NonConsumableProgramWebContent)\n @Column(DataType.UUID)\n declare originalWebContentUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare language: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare title: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare subtitle: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare description: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block1_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare block2_image_uri: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark1_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark2_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare checkmark3_text: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare conclusion: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare testimonials_image_url: string;\n\n @BelongsTo(() => NonConsumableProgramWebContent)\n declare program: NonConsumableProgramWebContent[];\n}\n"],"names":["BelongsTo","Column","DataType","Default","ForeignKey","Model","Table","NonConsumableProgramWebContent","TranslatedNonConsumableProgramWebContent","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT"],"mappings":";;;;;;AAAA,SACIA,SAAS,EACTC,MAAM,EACNC,QAAQ,EAAEC,OAAO,EACjBC,UAAU,EACVC,KAAK,EACLC,KAAK,QACF,uBAAuB;AAC9B,SAAQC,8BAA8B,QAAO,mCAAmC;AAGhF,WAAaC,2CAAN,uDAAuDH;AAuD9D,EAAC;;IAtDIF,QAAQD,SAASO,MAAM;IACvBR,OAAO;QACJS,MAAMR,SAASS,IAAI;QACnBC,cAAcV,SAASS,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IACpB;GAPSN;;IAURJ,WAAW,IAAMG;IACjBN,OAAOC,SAASS,IAAI;GAXZH;;IAcRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAdvCL;;IAiBRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAjBvCL;;IAoBRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GApBvCL;;IAuBRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAvBvCL;;IA0BRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GA1BvCL;;IA6BRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GA7BvCL;;IAgCRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAhCvCL;;IAmCRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAnCvCL;;IAsCRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAtCvCL;;IAyCRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAzCvCL;;IA4CRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GA5CvCL;;IA+CRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GA/CvCL;;IAkDRP,OAAO;QAAES,MAAMR,SAASa,IAAI;QAAEF,WAAW,KAAK;IAAC;GAlDvCL;;IAqDRR,UAAU,IAAMO;GArDRC;AAAAA;IADZF;GACYE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "A package that contains utils and interfaces used to create 90dc",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -2,11 +2,12 @@ import {
2
2
  BelongsTo,
3
3
  Column,
4
4
  DataType,
5
- ForeignKey,
5
+ ForeignKey, HasMany,
6
6
  Model, PrimaryKey,
7
7
  Table,
8
8
  } from "sequelize-typescript";
9
9
  import {NonConsumableProgram} from "./NonConsumableProgram";
10
+ import {TranslatedNonConsumableProgramWebContent} from "./TranslatedNonConsumableProgramWebContent";
10
11
 
11
12
  @Table
12
13
  export class NonConsumableProgramWebContent extends Model {
@@ -53,4 +54,7 @@ export class NonConsumableProgramWebContent extends Model {
53
54
 
54
55
  @BelongsTo(() => NonConsumableProgram)
55
56
  declare program: NonConsumableProgram[];
57
+
58
+ @HasMany(() => TranslatedNonConsumableProgramWebContent)
59
+ declare translatedWebContent: TranslatedNonConsumableProgramWebContent[];
56
60
  }
@@ -10,7 +10,6 @@ import {NonConsumableProgramWebContent} from "./NonConsumableProgramWebContent";
10
10
 
11
11
  @Table
12
12
  export class TranslatedNonConsumableProgramWebContent extends Model {
13
-
14
13
  @Default(DataType.UUIDV4)
15
14
  @Column({
16
15
  type: DataType.UUID,