@reachu/database 1.0.14 → 1.0.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.
Files changed (66) hide show
  1. package/dist/entity/modules/templates/AuthInfo.d.ts +14 -0
  2. package/dist/entity/modules/templates/AuthInfo.js +63 -0
  3. package/dist/entity/modules/templates/AuthInfo.js.map +1 -0
  4. package/dist/entity/modules/templates/AuthMethod.d.ts +8 -0
  5. package/dist/entity/modules/templates/AuthMethod.js +42 -0
  6. package/dist/entity/modules/templates/AuthMethod.js.map +1 -0
  7. package/dist/entity/modules/templates/AuthMethodTemplateChannel.d.ts +14 -0
  8. package/dist/entity/modules/templates/AuthMethodTemplateChannel.js +66 -0
  9. package/dist/entity/modules/templates/AuthMethodTemplateChannel.js.map +1 -0
  10. package/dist/entity/modules/templates/EndpointTemplateChannel.d.ts +7 -0
  11. package/dist/entity/modules/templates/EndpointTemplateChannel.js +37 -0
  12. package/dist/entity/modules/templates/EndpointTemplateChannel.js.map +1 -0
  13. package/dist/entity/modules/templates/TemplateChannel.d.ts +27 -0
  14. package/dist/entity/modules/templates/TemplateChannel.js +126 -0
  15. package/dist/entity/modules/templates/TemplateChannel.js.map +1 -0
  16. package/dist/entity/modules/templates/UserTemplateChannel.d.ts +13 -0
  17. package/dist/entity/modules/templates/UserTemplateChannel.js +57 -0
  18. package/dist/entity/modules/templates/UserTemplateChannel.js.map +1 -0
  19. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.d.ts +12 -0
  20. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js +56 -0
  21. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js.map +1 -0
  22. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.d.ts +12 -0
  23. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js +56 -0
  24. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js.map +1 -0
  25. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.d.ts +12 -0
  26. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js +56 -0
  27. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js.map +1 -0
  28. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.d.ts +12 -0
  29. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js +56 -0
  30. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js.map +1 -0
  31. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.d.ts +11 -0
  32. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js +52 -0
  33. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js.map +1 -0
  34. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.d.ts +11 -0
  35. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js +52 -0
  36. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js.map +1 -0
  37. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.d.ts +12 -0
  38. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js +56 -0
  39. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js.map +1 -0
  40. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.d.ts +12 -0
  41. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js +56 -0
  42. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js.map +1 -0
  43. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.d.ts +12 -0
  44. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js +56 -0
  45. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js.map +1 -0
  46. package/dist/migrations/1680581444059-template.d.ts +6 -0
  47. package/dist/migrations/1680581444059-template.js +111 -0
  48. package/dist/migrations/1680581444059-template.js.map +1 -0
  49. package/dist/tsconfig.tsbuildinfo +287 -0
  50. package/package.json +3 -3
  51. package/src/entity/modules/templates/AuthInfo.ts +48 -0
  52. package/src/entity/modules/templates/AuthMethod.ts +24 -0
  53. package/src/entity/modules/templates/AuthMethodTemplateChannel.ts +52 -0
  54. package/src/entity/modules/templates/EndpointTemplateChannel.ts +27 -0
  55. package/src/entity/modules/templates/TemplateChannel.ts +155 -0
  56. package/src/entity/modules/templates/UserTemplateChannel.ts +51 -0
  57. package/src/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.ts +43 -0
  58. package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.ts +44 -0
  59. package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.ts +43 -0
  60. package/src/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.ts +43 -0
  61. package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.ts +40 -0
  62. package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.ts +40 -0
  63. package/src/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.ts +44 -0
  64. package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.ts +44 -0
  65. package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.ts +44 -0
  66. package/src/migrations/1680581444059-template.ts +96 -0
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.template1680581444059 = void 0;
13
+ class template1680581444059 {
14
+ constructor() {
15
+ this.name = 'template1680581444059';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`CREATE TABLE \`auth_method\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
20
+ yield queryRunner.query(`CREATE TABLE \`endpoint_template_channel\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`user_template_channel_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
21
+ yield queryRunner.query(`CREATE TABLE \`user_template_channel\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`user_id\` int NULL, \`auth_info_id\` int NULL, \`template_channel_id\` int NULL, UNIQUE INDEX \`REL_455258feb4a200be5c8a70b339\` (\`auth_info_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
22
+ yield queryRunner.query(`CREATE TABLE \`reachu_scheme_config_product\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
23
+ yield queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_product\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
24
+ yield queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_product_mapped\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
25
+ yield queryRunner.query(`CREATE TABLE \`reachu_scheme_config_variant\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
26
+ yield queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_variant\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
27
+ yield queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_variant_mapped\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
28
+ yield queryRunner.query(`CREATE TABLE \`reachu_scheme_config_order\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
29
+ yield queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_order\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
30
+ yield queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_order_mapped\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
31
+ yield queryRunner.query(`CREATE TABLE \`template_channel\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`auth_method_template_channel_id\` int NULL, \`reachu_scheme_config_product_id\` int NULL, \`template_channel_scheme_config_product_id\` int NULL, \`template_channel_scheme_config_product_mapped_id\` int NULL, \`reachu_scheme_config_variant_id\` int NULL, \`template_channel_scheme_config_variant_id\` int NULL, \`template_channel_scheme_config_variant_mapped_id\` int NULL, \`reachu_scheme_config_order_id\` int NULL, \`template_channel_scheme_config_order_id\` int NULL, \`template_channel_scheme_config_order_mapped_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
32
+ yield queryRunner.query(`CREATE TABLE \`auth_method_template_channel\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NOT NULL, \`connection\` tinyint NOT NULL DEFAULT 0, \`response\` varchar(21844) NULL, \`auth_method_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
33
+ yield queryRunner.query(`CREATE TABLE \`auth_info\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`token\` varchar(255) NULL, \`api_key\` varchar(255) NULL, \`basic\` varchar(255) NULL, \`public_key\` varchar(255) NULL, \`private_key\` varchar(255) NULL, \`auth_method_template_channel_id\` int NULL, \`user_template_channel_id\` int NULL, UNIQUE INDEX \`REL_683d04174f79d63872cd9abbfd\` (\`user_template_channel_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
34
+ yield queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` ADD CONSTRAINT \`FK_cbd08f071be55e529553f09f874\` FOREIGN KEY (\`user_template_channel_id\`) REFERENCES \`user_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
35
+ yield queryRunner.query(`ALTER TABLE \`user_template_channel\` ADD CONSTRAINT \`FK_114bc8cb4e46a50e8a9626355a7\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
36
+ yield queryRunner.query(`ALTER TABLE \`user_template_channel\` ADD CONSTRAINT \`FK_455258feb4a200be5c8a70b339e\` FOREIGN KEY (\`auth_info_id\`) REFERENCES \`auth_info\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
37
+ yield queryRunner.query(`ALTER TABLE \`user_template_channel\` ADD CONSTRAINT \`FK_912b09a7728135878db3b33de92\` FOREIGN KEY (\`template_channel_id\`) REFERENCES \`template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
38
+ yield queryRunner.query(`ALTER TABLE \`reachu_scheme_config_product\` ADD CONSTRAINT \`FK_80ec149ced8f257a6434c1fdc4e\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
39
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_product\` ADD CONSTRAINT \`FK_4e6c0da15fcb5bf8b74f844648b\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
40
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_product_mapped\` ADD CONSTRAINT \`FK_82186c0f4a69ee515391e82c1da\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
41
+ yield queryRunner.query(`ALTER TABLE \`reachu_scheme_config_variant\` ADD CONSTRAINT \`FK_a550af3fd83c3ca772283b1129e\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
42
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_variant\` ADD CONSTRAINT \`FK_e7aa7e20a010421f18a9f6c3bdd\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
43
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_variant_mapped\` ADD CONSTRAINT \`FK_5ca9c77d9515b7765e9673e3126\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
44
+ yield queryRunner.query(`ALTER TABLE \`reachu_scheme_config_order\` ADD CONSTRAINT \`FK_2ed80e8cd6250b31a68accbfe82\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
45
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_order\` ADD CONSTRAINT \`FK_763d49a32a0c34f6767f794eb78\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
46
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_order_mapped\` ADD CONSTRAINT \`FK_94f86aa13c2f3a48f2bb48f0e6e\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
47
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_326d68a0e78903191bed82d0bff\` FOREIGN KEY (\`auth_method_template_channel_id\`) REFERENCES \`auth_method_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
48
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_207386be2462e09d61c1353426e\` FOREIGN KEY (\`reachu_scheme_config_product_id\`) REFERENCES \`reachu_scheme_config_product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
49
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_3b8814a4f6dfa52d58bd183ef55\` FOREIGN KEY (\`template_channel_scheme_config_product_id\`) REFERENCES \`template_channel_scheme_config_product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
50
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_316373936bf596a2967bf9675c2\` FOREIGN KEY (\`template_channel_scheme_config_product_mapped_id\`) REFERENCES \`template_channel_scheme_config_product_mapped\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
51
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_c9aee887bb40cccca88e89dc18b\` FOREIGN KEY (\`reachu_scheme_config_variant_id\`) REFERENCES \`reachu_scheme_config_variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
52
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_d38276429b2cb065bf67871cb1a\` FOREIGN KEY (\`template_channel_scheme_config_variant_id\`) REFERENCES \`template_channel_scheme_config_variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
53
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_2ad9c7fead69a170d00ad6d24b1\` FOREIGN KEY (\`template_channel_scheme_config_variant_mapped_id\`) REFERENCES \`template_channel_scheme_config_variant_mapped\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
54
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_5d66d1af47756bbaa1f55ba2833\` FOREIGN KEY (\`reachu_scheme_config_order_id\`) REFERENCES \`reachu_scheme_config_order\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
55
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_fe06e511a45ea175c5b144376f3\` FOREIGN KEY (\`template_channel_scheme_config_order_id\`) REFERENCES \`template_channel_scheme_config_order\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
56
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_86aaea9dfc68a30288195d69560\` FOREIGN KEY (\`template_channel_scheme_config_order_mapped_id\`) REFERENCES \`template_channel_scheme_config_order_mapped\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
57
+ yield queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` ADD CONSTRAINT \`FK_023d8f31e6c39f54ce7c73c2692\` FOREIGN KEY (\`auth_method_id\`) REFERENCES \`auth_method\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
58
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD CONSTRAINT \`FK_857c2457632fd40c3b44fcff4cc\` FOREIGN KEY (\`auth_method_template_channel_id\`) REFERENCES \`auth_method_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
59
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD CONSTRAINT \`FK_683d04174f79d63872cd9abbfd2\` FOREIGN KEY (\`user_template_channel_id\`) REFERENCES \`user_template_channel\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
60
+ });
61
+ }
62
+ down(queryRunner) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP FOREIGN KEY \`FK_683d04174f79d63872cd9abbfd2\``);
65
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP FOREIGN KEY \`FK_857c2457632fd40c3b44fcff4cc\``);
66
+ yield queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` DROP FOREIGN KEY \`FK_023d8f31e6c39f54ce7c73c2692\``);
67
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_86aaea9dfc68a30288195d69560\``);
68
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_fe06e511a45ea175c5b144376f3\``);
69
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_5d66d1af47756bbaa1f55ba2833\``);
70
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_2ad9c7fead69a170d00ad6d24b1\``);
71
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_d38276429b2cb065bf67871cb1a\``);
72
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_c9aee887bb40cccca88e89dc18b\``);
73
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_316373936bf596a2967bf9675c2\``);
74
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_3b8814a4f6dfa52d58bd183ef55\``);
75
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_207386be2462e09d61c1353426e\``);
76
+ yield queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_326d68a0e78903191bed82d0bff\``);
77
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_order_mapped\` DROP FOREIGN KEY \`FK_94f86aa13c2f3a48f2bb48f0e6e\``);
78
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_order\` DROP FOREIGN KEY \`FK_763d49a32a0c34f6767f794eb78\``);
79
+ yield queryRunner.query(`ALTER TABLE \`reachu_scheme_config_order\` DROP FOREIGN KEY \`FK_2ed80e8cd6250b31a68accbfe82\``);
80
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_variant_mapped\` DROP FOREIGN KEY \`FK_5ca9c77d9515b7765e9673e3126\``);
81
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_variant\` DROP FOREIGN KEY \`FK_e7aa7e20a010421f18a9f6c3bdd\``);
82
+ yield queryRunner.query(`ALTER TABLE \`reachu_scheme_config_variant\` DROP FOREIGN KEY \`FK_a550af3fd83c3ca772283b1129e\``);
83
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_product_mapped\` DROP FOREIGN KEY \`FK_82186c0f4a69ee515391e82c1da\``);
84
+ yield queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_product\` DROP FOREIGN KEY \`FK_4e6c0da15fcb5bf8b74f844648b\``);
85
+ yield queryRunner.query(`ALTER TABLE \`reachu_scheme_config_product\` DROP FOREIGN KEY \`FK_80ec149ced8f257a6434c1fdc4e\``);
86
+ yield queryRunner.query(`ALTER TABLE \`user_template_channel\` DROP FOREIGN KEY \`FK_912b09a7728135878db3b33de92\``);
87
+ yield queryRunner.query(`ALTER TABLE \`user_template_channel\` DROP FOREIGN KEY \`FK_455258feb4a200be5c8a70b339e\``);
88
+ yield queryRunner.query(`ALTER TABLE \`user_template_channel\` DROP FOREIGN KEY \`FK_114bc8cb4e46a50e8a9626355a7\``);
89
+ yield queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` DROP FOREIGN KEY \`FK_cbd08f071be55e529553f09f874\``);
90
+ yield queryRunner.query(`DROP INDEX \`REL_683d04174f79d63872cd9abbfd\` ON \`auth_info\``);
91
+ yield queryRunner.query(`DROP TABLE \`auth_info\``);
92
+ yield queryRunner.query(`DROP TABLE \`auth_method_template_channel\``);
93
+ yield queryRunner.query(`DROP TABLE \`template_channel\``);
94
+ yield queryRunner.query(`DROP TABLE \`template_channel_scheme_config_order_mapped\``);
95
+ yield queryRunner.query(`DROP TABLE \`template_channel_scheme_config_order\``);
96
+ yield queryRunner.query(`DROP TABLE \`reachu_scheme_config_order\``);
97
+ yield queryRunner.query(`DROP TABLE \`template_channel_scheme_config_variant_mapped\``);
98
+ yield queryRunner.query(`DROP TABLE \`template_channel_scheme_config_variant\``);
99
+ yield queryRunner.query(`DROP TABLE \`reachu_scheme_config_variant\``);
100
+ yield queryRunner.query(`DROP TABLE \`template_channel_scheme_config_product_mapped\``);
101
+ yield queryRunner.query(`DROP TABLE \`template_channel_scheme_config_product\``);
102
+ yield queryRunner.query(`DROP TABLE \`reachu_scheme_config_product\``);
103
+ yield queryRunner.query(`DROP INDEX \`REL_455258feb4a200be5c8a70b339\` ON \`user_template_channel\``);
104
+ yield queryRunner.query(`DROP TABLE \`user_template_channel\``);
105
+ yield queryRunner.query(`DROP TABLE \`endpoint_template_channel\``);
106
+ yield queryRunner.query(`DROP TABLE \`auth_method\``);
107
+ });
108
+ }
109
+ }
110
+ exports.template1680581444059 = template1680581444059;
111
+ //# sourceMappingURL=1680581444059-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1680581444059-template.js","sourceRoot":"","sources":["../../src/migrations/1680581444059-template.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,qBAAqB;IAAlC;QACI,SAAI,GAAG,uBAAuB,CAAA;I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}
@@ -2856,6 +2856,81 @@
2856
2856
  "signature": "9d100a18f26b0c5eb9be2a15350e380b03714e6e2f96b2ff0341a0d0c49d8174",
2857
2857
  "affectsGlobalScope": false
2858
2858
  },
2859
+ "../src/entity/modules/templates/authmethod.ts": {
2860
+ "version": "2d07f3895d7170defc689f7b65a03cb2ae61371ac30333d8ccd7683afcfa424a",
2861
+ "signature": "e739ac5fd48e3670eae18f3bce349e51f474a03d34579b6f03e271d74217b9f0",
2862
+ "affectsGlobalScope": false
2863
+ },
2864
+ "../src/entity/modules/templates/endpointtemplatechannel.ts": {
2865
+ "version": "ef87637c14792e8f2dc5e3a1f074496c74349ee3a9312358b9761af1b3016efc",
2866
+ "signature": "f9b5f0b18353e520f7dab06e19914fd40c90eb8aa671e640c48f333d27a9fd84",
2867
+ "affectsGlobalScope": false
2868
+ },
2869
+ "../src/entity/modules/templates/usertemplatechannel.ts": {
2870
+ "version": "d30027cc5078aaf3f688d641e3490740fe811f9754839bb81e10326fb28ba3c5",
2871
+ "signature": "3057428477650166b0d907b96c0e758f357ec9dfe6c1be82fb8ce27976ee51b7",
2872
+ "affectsGlobalScope": false
2873
+ },
2874
+ "../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": {
2875
+ "version": "9a2d68655273467bb096730dffcf37e2bc2f48730158740b146ff4b4cdf3deaa",
2876
+ "signature": "5fe631cd5c4032607d7a917ff8711062adee853b93212053b270854084bca568",
2877
+ "affectsGlobalScope": false
2878
+ },
2879
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts": {
2880
+ "version": "9b8e6372daf7f396cc5eed57c6ce17a5ca829bcb48b3fc760930680b1e40d067",
2881
+ "signature": "c15d6e6660f17d68878f1bbca0a1d97c8dee2c97ed5771afea83f8c75282bf2b",
2882
+ "affectsGlobalScope": false
2883
+ },
2884
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts": {
2885
+ "version": "40da270b1e1e35b345c9db825a99bcb71b12857eed78f67f3442578239f19ca1",
2886
+ "signature": "54c71592420960c6a0b0ce0beb2be64ce7d115e44e8cef3dcb523a41b4b3f404",
2887
+ "affectsGlobalScope": false
2888
+ },
2889
+ "../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts": {
2890
+ "version": "3a032b11d7a0b53de9784aa90be7a2a181bba951e7be01b45eba37625a596ee2",
2891
+ "signature": "3b7bf3d20b1ff4b4a294e89b42bf9ee9e8649cf4529f48025c22638ae0a97063",
2892
+ "affectsGlobalScope": false
2893
+ },
2894
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts": {
2895
+ "version": "6fd7708b4f0f2506ffc22e664ea9f1298e7009992120af8ffa51076792ea7c5d",
2896
+ "signature": "eaba217931299141fb4a8b07485f4c36ee2e7fad767243f87003883a2bbdd06b",
2897
+ "affectsGlobalScope": false
2898
+ },
2899
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts": {
2900
+ "version": "d10c4c15d37dc16f967aced39551838e30d329810e061cd2d1acf18060a53272",
2901
+ "signature": "d8a2ff39cdc21a2a639e456fb11eb4913d68eceff1112285cb89f87ebaa75f7f",
2902
+ "affectsGlobalScope": false
2903
+ },
2904
+ "../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts": {
2905
+ "version": "7f9a31e5e2ae9c37b43deae14ba7d47d5fe941fd0fb3203d70b8bf8a620b092e",
2906
+ "signature": "22467b3580476674f26837d554b784e8aae0d243d82a3639ad069ebc1139b2b6",
2907
+ "affectsGlobalScope": false
2908
+ },
2909
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts": {
2910
+ "version": "3035f71f765c044dd28de12a2867b4e2468d6b9dc86d2512b6d9b188989c677a",
2911
+ "signature": "87a0bcc2c882e0bc2f496d66d095e43fa1027c9679ab4d17fee48a4bc6b4fd2a",
2912
+ "affectsGlobalScope": false
2913
+ },
2914
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts": {
2915
+ "version": "36428ad86314bcadb4a162c56aae0b32d6193043395a27be9ac4b2315edf8da8",
2916
+ "signature": "71483e0e940e4e87919df3817678a6d67d5a580aaff62d484ebde5d76d64f4c3",
2917
+ "affectsGlobalScope": false
2918
+ },
2919
+ "../src/entity/modules/templates/templatechannel.ts": {
2920
+ "version": "6031d9d75f21e585325455a1266f31ce34a7f9b0dd70b159716ce1f85ee25354",
2921
+ "signature": "e054486a925e1f08e06987da9f637fb13e562c85e791842e8570db7daa1380fe",
2922
+ "affectsGlobalScope": false
2923
+ },
2924
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts": {
2925
+ "version": "27a6515833f3598e888d7a95ff0a03bd33fe2b4ba0061a9f481b335afe3d55f4",
2926
+ "signature": "deb25ca0efbe95c4883a6f86e87554d6da74dcef3c705aa2e6fdbaf63cebd246",
2927
+ "affectsGlobalScope": false
2928
+ },
2929
+ "../src/entity/modules/templates/authinfo.ts": {
2930
+ "version": "ec2a5c2b1643c00493583d0d6aeef6ed5acedf78a0483825da47fe3255c3f786",
2931
+ "signature": "7dd0fb7acd0eb0decbbbb318e1ac3d946b5bad4698a51cd02afbe8c7eea387f0",
2932
+ "affectsGlobalScope": false
2933
+ },
2859
2934
  "../src/examples/app01.ts": {
2860
2935
  "version": "f1b8a1ff65692b8901257c7efc0aa9fff26dd190b73f836f8d351bdd0a9e93e2",
2861
2936
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -3031,6 +3106,11 @@
3031
3106
  "signature": "ba5a1e16d1c447cd3251a21f294b44fa98bbe670b0524ce0d78b597fc24ae050",
3032
3107
  "affectsGlobalScope": false
3033
3108
  },
3109
+ "../src/migrations/1680581444059-template.ts": {
3110
+ "version": "22a5e4a88dadfd456fe38442b5348ce1de9e0f72a112d1f929bd735377c12c0a",
3111
+ "signature": "1916b85a9f87d6c7564aac30d2c7d984413d110272a707efa012e2b738ae315d",
3112
+ "affectsGlobalScope": false
3113
+ },
3034
3114
  "../src/migrations/execute/index.ts": {
3035
3115
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3036
3116
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -5266,6 +5346,106 @@
5266
5346
  "../node_modules/typeorm/index.d.ts",
5267
5347
  "../src/entity/modules/shopcart/cartitem.ts"
5268
5348
  ],
5349
+ "../src/entity/modules/templates/authinfo.ts": [
5350
+ "../node_modules/typeorm/index.d.ts",
5351
+ "../src/entity/auditedmodel.ts",
5352
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts",
5353
+ "../src/entity/modules/templates/usertemplatechannel.ts"
5354
+ ],
5355
+ "../src/entity/modules/templates/authmethod.ts": [
5356
+ "../node_modules/typeorm/index.d.ts",
5357
+ "../src/entity/auditedmodel.ts",
5358
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts"
5359
+ ],
5360
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts": [
5361
+ "../node_modules/typeorm/index.d.ts",
5362
+ "../src/entity/auditedmodel.ts",
5363
+ "../src/entity/modules/templates/authinfo.ts",
5364
+ "../src/entity/modules/templates/authmethod.ts",
5365
+ "../src/entity/modules/templates/templatechannel.ts"
5366
+ ],
5367
+ "../src/entity/modules/templates/endpointtemplatechannel.ts": [
5368
+ "../node_modules/typeorm/index.d.ts",
5369
+ "../src/entity/auditedmodel.ts",
5370
+ "../src/entity/modules/templates/usertemplatechannel.ts"
5371
+ ],
5372
+ "../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts": [
5373
+ "../node_modules/typeorm/index.d.ts",
5374
+ "../src/entity/auditedmodel.ts",
5375
+ "../src/entity/modules/templates/templatechannel.ts",
5376
+ "../src/entity/user.ts"
5377
+ ],
5378
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts": [
5379
+ "../node_modules/typeorm/index.d.ts",
5380
+ "../src/entity/auditedmodel.ts",
5381
+ "../src/entity/modules/templates/templatechannel.ts",
5382
+ "../src/entity/user.ts"
5383
+ ],
5384
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts": [
5385
+ "../node_modules/typeorm/index.d.ts",
5386
+ "../src/entity/auditedmodel.ts",
5387
+ "../src/entity/modules/templates/templatechannel.ts",
5388
+ "../src/entity/user.ts"
5389
+ ],
5390
+ "../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": [
5391
+ "../node_modules/typeorm/index.d.ts",
5392
+ "../src/entity/auditedmodel.ts",
5393
+ "../src/entity/modules/templates/templatechannel.ts",
5394
+ "../src/entity/user.ts"
5395
+ ],
5396
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts": [
5397
+ "../node_modules/typeorm/index.d.ts",
5398
+ "../src/entity/auditedmodel.ts",
5399
+ "../src/entity/modules/templates/templatechannel.ts",
5400
+ "../src/entity/user.ts"
5401
+ ],
5402
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts": [
5403
+ "../node_modules/typeorm/index.d.ts",
5404
+ "../src/entity/auditedmodel.ts",
5405
+ "../src/entity/modules/templates/templatechannel.ts",
5406
+ "../src/entity/user.ts"
5407
+ ],
5408
+ "../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts": [
5409
+ "../node_modules/typeorm/index.d.ts",
5410
+ "../src/entity/auditedmodel.ts",
5411
+ "../src/entity/modules/templates/templatechannel.ts",
5412
+ "../src/entity/user.ts"
5413
+ ],
5414
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts": [
5415
+ "../node_modules/typeorm/index.d.ts",
5416
+ "../src/entity/auditedmodel.ts",
5417
+ "../src/entity/modules/templates/templatechannel.ts",
5418
+ "../src/entity/user.ts"
5419
+ ],
5420
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts": [
5421
+ "../node_modules/typeorm/index.d.ts",
5422
+ "../src/entity/auditedmodel.ts",
5423
+ "../src/entity/modules/templates/templatechannel.ts",
5424
+ "../src/entity/user.ts"
5425
+ ],
5426
+ "../src/entity/modules/templates/templatechannel.ts": [
5427
+ "../node_modules/typeorm/index.d.ts",
5428
+ "../src/entity/auditedmodel.ts",
5429
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts",
5430
+ "../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
5431
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
5432
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
5433
+ "../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts",
5434
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts",
5435
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts",
5436
+ "../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts",
5437
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts",
5438
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts",
5439
+ "../src/entity/modules/templates/usertemplatechannel.ts"
5440
+ ],
5441
+ "../src/entity/modules/templates/usertemplatechannel.ts": [
5442
+ "../node_modules/typeorm/index.d.ts",
5443
+ "../src/entity/auditedmodel.ts",
5444
+ "../src/entity/modules/templates/authinfo.ts",
5445
+ "../src/entity/modules/templates/endpointtemplatechannel.ts",
5446
+ "../src/entity/modules/templates/templatechannel.ts",
5447
+ "../src/entity/user.ts"
5448
+ ],
5269
5449
  "../src/entity/notification.ts": [
5270
5450
  "../node_modules/typeorm/index.d.ts",
5271
5451
  "../src/entity/auditedmodel.ts",
@@ -5630,6 +5810,9 @@
5630
5810
  "../src/migrations/1679329902116-promote_to_production_2023_03_20.ts": [
5631
5811
  "../node_modules/typeorm/index.d.ts"
5632
5812
  ],
5813
+ "../src/migrations/1680581444059-template.ts": [
5814
+ "../node_modules/typeorm/index.d.ts"
5815
+ ],
5633
5816
  "../src/migrations/execute/index.ts": [
5634
5817
  "../src/config/connect.ts"
5635
5818
  ],
@@ -7773,6 +7956,91 @@
7773
7956
  "../src/entity/modules/shopcart/pricedata.ts": [
7774
7957
  "../src/entity/modules/shopcart/cartitem.ts"
7775
7958
  ],
7959
+ "../src/entity/modules/templates/authinfo.ts": [
7960
+ "../src/entity/auditedmodel.ts",
7961
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts",
7962
+ "../src/entity/modules/templates/usertemplatechannel.ts"
7963
+ ],
7964
+ "../src/entity/modules/templates/authmethod.ts": [
7965
+ "../src/entity/auditedmodel.ts",
7966
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts"
7967
+ ],
7968
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts": [
7969
+ "../src/entity/auditedmodel.ts",
7970
+ "../src/entity/modules/templates/authinfo.ts",
7971
+ "../src/entity/modules/templates/authmethod.ts",
7972
+ "../src/entity/modules/templates/templatechannel.ts"
7973
+ ],
7974
+ "../src/entity/modules/templates/endpointtemplatechannel.ts": [
7975
+ "../src/entity/auditedmodel.ts",
7976
+ "../src/entity/modules/templates/usertemplatechannel.ts"
7977
+ ],
7978
+ "../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts": [
7979
+ "../src/entity/auditedmodel.ts",
7980
+ "../src/entity/modules/templates/templatechannel.ts",
7981
+ "../src/entity/user.ts"
7982
+ ],
7983
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts": [
7984
+ "../src/entity/auditedmodel.ts",
7985
+ "../src/entity/modules/templates/templatechannel.ts",
7986
+ "../src/entity/user.ts"
7987
+ ],
7988
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts": [
7989
+ "../src/entity/auditedmodel.ts",
7990
+ "../src/entity/modules/templates/templatechannel.ts",
7991
+ "../src/entity/user.ts"
7992
+ ],
7993
+ "../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": [
7994
+ "../src/entity/auditedmodel.ts",
7995
+ "../src/entity/modules/templates/templatechannel.ts",
7996
+ "../src/entity/user.ts"
7997
+ ],
7998
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts": [
7999
+ "../src/entity/auditedmodel.ts",
8000
+ "../src/entity/modules/templates/templatechannel.ts",
8001
+ "../src/entity/user.ts"
8002
+ ],
8003
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts": [
8004
+ "../src/entity/auditedmodel.ts",
8005
+ "../src/entity/modules/templates/templatechannel.ts",
8006
+ "../src/entity/user.ts"
8007
+ ],
8008
+ "../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts": [
8009
+ "../src/entity/auditedmodel.ts",
8010
+ "../src/entity/modules/templates/templatechannel.ts",
8011
+ "../src/entity/user.ts"
8012
+ ],
8013
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts": [
8014
+ "../src/entity/auditedmodel.ts",
8015
+ "../src/entity/modules/templates/templatechannel.ts",
8016
+ "../src/entity/user.ts"
8017
+ ],
8018
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts": [
8019
+ "../src/entity/auditedmodel.ts",
8020
+ "../src/entity/modules/templates/templatechannel.ts",
8021
+ "../src/entity/user.ts"
8022
+ ],
8023
+ "../src/entity/modules/templates/templatechannel.ts": [
8024
+ "../src/entity/auditedmodel.ts",
8025
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts",
8026
+ "../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
8027
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
8028
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
8029
+ "../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts",
8030
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts",
8031
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts",
8032
+ "../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts",
8033
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts",
8034
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts",
8035
+ "../src/entity/modules/templates/usertemplatechannel.ts"
8036
+ ],
8037
+ "../src/entity/modules/templates/usertemplatechannel.ts": [
8038
+ "../src/entity/auditedmodel.ts",
8039
+ "../src/entity/modules/templates/authinfo.ts",
8040
+ "../src/entity/modules/templates/endpointtemplatechannel.ts",
8041
+ "../src/entity/modules/templates/templatechannel.ts",
8042
+ "../src/entity/user.ts"
8043
+ ],
7776
8044
  "../src/entity/notification.ts": [
7777
8045
  "../src/entity/auditedmodel.ts",
7778
8046
  "../src/entity/order.ts",
@@ -8077,6 +8345,9 @@
8077
8345
  "../src/migrations/1679329902116-promote_to_production_2023_03_20.ts": [
8078
8346
  "../node_modules/typeorm/index.d.ts"
8079
8347
  ],
8348
+ "../src/migrations/1680581444059-template.ts": [
8349
+ "../node_modules/typeorm/index.d.ts"
8350
+ ],
8080
8351
  "../src/migrations/index.ts": [
8081
8352
  "../src/migrations/1628474597284-initialschema.ts",
8082
8353
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -8718,6 +8989,21 @@
8718
8989
  "../src/entity/modules/shopcart/checkoutbillingaddress.ts",
8719
8990
  "../src/entity/modules/shopcart/checkoutshippingaddress.ts",
8720
8991
  "../src/entity/modules/shopcart/pricedata.ts",
8992
+ "../src/entity/modules/templates/authinfo.ts",
8993
+ "../src/entity/modules/templates/authmethod.ts",
8994
+ "../src/entity/modules/templates/authmethodtemplatechannel.ts",
8995
+ "../src/entity/modules/templates/endpointtemplatechannel.ts",
8996
+ "../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
8997
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
8998
+ "../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
8999
+ "../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts",
9000
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts",
9001
+ "../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts",
9002
+ "../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts",
9003
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts",
9004
+ "../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts",
9005
+ "../src/entity/modules/templates/templatechannel.ts",
9006
+ "../src/entity/modules/templates/usertemplatechannel.ts",
8721
9007
  "../src/entity/notification.ts",
8722
9008
  "../src/entity/option.ts",
8723
9009
  "../src/entity/order.ts",
@@ -8804,6 +9090,7 @@
8804
9090
  "../src/migrations/1677764464274-task-1032v2.ts",
8805
9091
  "../src/migrations/1678115824175-task-1098v1.ts",
8806
9092
  "../src/migrations/1679329902116-promote_to_production_2023_03_20.ts",
9093
+ "../src/migrations/1680581444059-template.ts",
8807
9094
  "../src/migrations/execute/index.ts",
8808
9095
  "../src/migrations/index.ts",
8809
9096
  "../src/repositories/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "reachu-database",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "author": "reachu",
22
22
  "license": "ISC",
23
23
  "dependencies": {
24
- "@reachu/logger": "1.0.14",
25
- "@reachu/utils": "1.0.14",
24
+ "@reachu/logger": "1.0.15",
25
+ "@reachu/utils": "1.0.15",
26
26
  "dotenv": "8.0.0",
27
27
  "express": "4.17.1",
28
28
  "mysql2": "1.5.2",
@@ -0,0 +1,48 @@
1
+ import {
2
+ Entity,
3
+ PrimaryGeneratedColumn,
4
+ Column,
5
+ DeleteDateColumn,
6
+ ManyToOne,
7
+ JoinColumn,
8
+ OneToOne,
9
+ } from 'typeorm';
10
+ import AuditedModel from '../../AuditedModel';
11
+ import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
12
+ import UserTemplateChannel from './UserTemplateChannel';
13
+
14
+ @Entity()
15
+ export default class AuthInfo extends AuditedModel {
16
+ @PrimaryGeneratedColumn()
17
+ id: number;
18
+
19
+ @DeleteDateColumn()
20
+ deletedAt: Date;
21
+
22
+ @Column('varchar', { nullable: true })
23
+ token: string;
24
+
25
+ @Column('varchar', { nullable: true })
26
+ apiKey: string;
27
+
28
+ @Column('varchar', { nullable: true })
29
+ basic: string;
30
+
31
+ @Column('varchar', { nullable: true })
32
+ publicKey: string;
33
+
34
+ @Column('varchar', { nullable: true })
35
+ privateKey: string;
36
+
37
+ @ManyToOne(
38
+ () => AuthMethodTemplateChannel,
39
+ (authMethodTemplateChannel: AuthMethodTemplateChannel) => authMethodTemplateChannel.authInfo,
40
+ { eager: true, onDelete: 'CASCADE' },
41
+ )
42
+ @JoinColumn()
43
+ authMethodTemplateChannel: AuthMethodTemplateChannel;
44
+
45
+ @OneToOne(() => UserTemplateChannel, { eager: true })
46
+ @JoinColumn()
47
+ userTemplateChannel: UserTemplateChannel;
48
+ }
@@ -0,0 +1,24 @@
1
+ import { Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn, OneToMany } from 'typeorm';
2
+ import AuditedModel from '../../AuditedModel';
3
+ import AuthMethodTemplateChannel from './AuthMethodTemplateChannel';
4
+
5
+ @Entity()
6
+ export default class AuthMethod extends AuditedModel {
7
+ @PrimaryGeneratedColumn()
8
+ id: number;
9
+
10
+ @DeleteDateColumn()
11
+ deletedAt: Date;
12
+
13
+ @Column('varchar', { nullable: false })
14
+ name: string;
15
+
16
+ @OneToMany(
17
+ () => AuthMethodTemplateChannel,
18
+ (authMethodTemplateChannel: AuthMethodTemplateChannel) => authMethodTemplateChannel.authMethod,
19
+ {
20
+ cascade: true,
21
+ },
22
+ )
23
+ authMethodTemplateChannel: AuthMethodTemplateChannel[];
24
+ }
@@ -0,0 +1,52 @@
1
+ import {
2
+ Entity,
3
+ PrimaryGeneratedColumn,
4
+ Column,
5
+ DeleteDateColumn,
6
+ OneToMany,
7
+ ManyToOne,
8
+ JoinColumn,
9
+ } from 'typeorm';
10
+ import AuditedModel from '../../AuditedModel';
11
+ import AuthInfo from './AuthInfo';
12
+ import AuthMethod from './AuthMethod';
13
+ import TemplateChannel from './TemplateChannel';
14
+
15
+ @Entity()
16
+ export default class AuthMethodTemplateChannel extends AuditedModel {
17
+ @PrimaryGeneratedColumn()
18
+ id: number;
19
+
20
+ @DeleteDateColumn()
21
+ deletedAt: Date;
22
+
23
+ @Column('varchar', { nullable: false })
24
+ url: string;
25
+
26
+ @Column({ type: 'boolean', default: false })
27
+ connection: boolean;
28
+
29
+ @Column('varchar', { length: '21844', nullable: true })
30
+ response: string;
31
+
32
+ @OneToMany(() => AuthInfo, (authInfo: AuthInfo) => authInfo.authMethodTemplateChannel, {
33
+ cascade: true,
34
+ })
35
+ authInfo: AuthInfo[];
36
+
37
+ @ManyToOne(() => AuthMethod, (authMethod: AuthMethod) => authMethod.authMethodTemplateChannel, {
38
+ eager: true,
39
+ onDelete: 'CASCADE',
40
+ })
41
+ @JoinColumn()
42
+ authMethod: AuthMethod;
43
+
44
+ @OneToMany(
45
+ () => TemplateChannel,
46
+ (templateChannel: TemplateChannel) => templateChannel.authMethodTemplateChannel,
47
+ {
48
+ cascade: true,
49
+ },
50
+ )
51
+ templateChannel: TemplateChannel[];
52
+ }