@reachu/database 1.0.14 → 1.0.16
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/dist/entity/modules/templates/AuthInfo.d.ts +14 -0
- package/dist/entity/modules/templates/AuthInfo.js +63 -0
- package/dist/entity/modules/templates/AuthInfo.js.map +1 -0
- package/dist/entity/modules/templates/AuthMethod.d.ts +8 -0
- package/dist/entity/modules/templates/AuthMethod.js +42 -0
- package/dist/entity/modules/templates/AuthMethod.js.map +1 -0
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.d.ts +14 -0
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js +66 -0
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.d.ts +7 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.js +37 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/TemplateChannel.d.ts +27 -0
- package/dist/entity/modules/templates/TemplateChannel.js +126 -0
- package/dist/entity/modules/templates/TemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/UserTemplateChannel.d.ts +13 -0
- package/dist/entity/modules/templates/UserTemplateChannel.js +57 -0
- package/dist/entity/modules/templates/UserTemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.d.ts +12 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js +56 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.d.ts +11 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js +52 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.d.ts +11 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js +52 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js.map +1 -0
- package/dist/migrations/1680581444059-template.d.ts +6 -0
- package/dist/migrations/1680581444059-template.js +111 -0
- package/dist/migrations/1680581444059-template.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -0
- package/dist/repositories/index.js +17 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/templates/index.d.ts +46 -0
- package/dist/repositories/templates/index.js +119 -0
- package/dist/repositories/templates/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +335 -4
- package/package.json +3 -3
- package/src/entity/modules/templates/AuthInfo.ts +48 -0
- package/src/entity/modules/templates/AuthMethod.ts +24 -0
- package/src/entity/modules/templates/AuthMethodTemplateChannel.ts +52 -0
- package/src/entity/modules/templates/EndpointTemplateChannel.ts +27 -0
- package/src/entity/modules/templates/TemplateChannel.ts +155 -0
- package/src/entity/modules/templates/UserTemplateChannel.ts +51 -0
- package/src/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.ts +43 -0
- package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.ts +44 -0
- package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.ts +43 -0
- package/src/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.ts +43 -0
- package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.ts +40 -0
- package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.ts +40 -0
- package/src/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.ts +44 -0
- package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.ts +44 -0
- package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.ts +44 -0
- package/src/migrations/1680581444059-template.ts +96 -0
- package/src/repositories/index.ts +36 -0
- package/src/repositories/templates/index.ts +64 -0
|
@@ -2691,9 +2691,89 @@
|
|
|
2691
2691
|
"signature": "cd78fffa99ba9e4df14f7d5933e12b2a2334a1684a148a66e9754b30c96b9ab4",
|
|
2692
2692
|
"affectsGlobalScope": false
|
|
2693
2693
|
},
|
|
2694
|
+
"../src/entity/modules/templates/authmethod.ts": {
|
|
2695
|
+
"version": "2d07f3895d7170defc689f7b65a03cb2ae61371ac30333d8ccd7683afcfa424a",
|
|
2696
|
+
"signature": "e739ac5fd48e3670eae18f3bce349e51f474a03d34579b6f03e271d74217b9f0",
|
|
2697
|
+
"affectsGlobalScope": false
|
|
2698
|
+
},
|
|
2699
|
+
"../src/entity/modules/templates/endpointtemplatechannel.ts": {
|
|
2700
|
+
"version": "ef87637c14792e8f2dc5e3a1f074496c74349ee3a9312358b9761af1b3016efc",
|
|
2701
|
+
"signature": "f9b5f0b18353e520f7dab06e19914fd40c90eb8aa671e640c48f333d27a9fd84",
|
|
2702
|
+
"affectsGlobalScope": false
|
|
2703
|
+
},
|
|
2704
|
+
"../src/entity/modules/templates/usertemplatechannel.ts": {
|
|
2705
|
+
"version": "d30027cc5078aaf3f688d641e3490740fe811f9754839bb81e10326fb28ba3c5",
|
|
2706
|
+
"signature": "3057428477650166b0d907b96c0e758f357ec9dfe6c1be82fb8ce27976ee51b7",
|
|
2707
|
+
"affectsGlobalScope": false
|
|
2708
|
+
},
|
|
2709
|
+
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": {
|
|
2710
|
+
"version": "9a2d68655273467bb096730dffcf37e2bc2f48730158740b146ff4b4cdf3deaa",
|
|
2711
|
+
"signature": "5fe631cd5c4032607d7a917ff8711062adee853b93212053b270854084bca568",
|
|
2712
|
+
"affectsGlobalScope": false
|
|
2713
|
+
},
|
|
2714
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts": {
|
|
2715
|
+
"version": "9b8e6372daf7f396cc5eed57c6ce17a5ca829bcb48b3fc760930680b1e40d067",
|
|
2716
|
+
"signature": "c15d6e6660f17d68878f1bbca0a1d97c8dee2c97ed5771afea83f8c75282bf2b",
|
|
2717
|
+
"affectsGlobalScope": false
|
|
2718
|
+
},
|
|
2719
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts": {
|
|
2720
|
+
"version": "40da270b1e1e35b345c9db825a99bcb71b12857eed78f67f3442578239f19ca1",
|
|
2721
|
+
"signature": "54c71592420960c6a0b0ce0beb2be64ce7d115e44e8cef3dcb523a41b4b3f404",
|
|
2722
|
+
"affectsGlobalScope": false
|
|
2723
|
+
},
|
|
2724
|
+
"../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts": {
|
|
2725
|
+
"version": "3a032b11d7a0b53de9784aa90be7a2a181bba951e7be01b45eba37625a596ee2",
|
|
2726
|
+
"signature": "3b7bf3d20b1ff4b4a294e89b42bf9ee9e8649cf4529f48025c22638ae0a97063",
|
|
2727
|
+
"affectsGlobalScope": false
|
|
2728
|
+
},
|
|
2729
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts": {
|
|
2730
|
+
"version": "6fd7708b4f0f2506ffc22e664ea9f1298e7009992120af8ffa51076792ea7c5d",
|
|
2731
|
+
"signature": "eaba217931299141fb4a8b07485f4c36ee2e7fad767243f87003883a2bbdd06b",
|
|
2732
|
+
"affectsGlobalScope": false
|
|
2733
|
+
},
|
|
2734
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts": {
|
|
2735
|
+
"version": "d10c4c15d37dc16f967aced39551838e30d329810e061cd2d1acf18060a53272",
|
|
2736
|
+
"signature": "d8a2ff39cdc21a2a639e456fb11eb4913d68eceff1112285cb89f87ebaa75f7f",
|
|
2737
|
+
"affectsGlobalScope": false
|
|
2738
|
+
},
|
|
2739
|
+
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts": {
|
|
2740
|
+
"version": "7f9a31e5e2ae9c37b43deae14ba7d47d5fe941fd0fb3203d70b8bf8a620b092e",
|
|
2741
|
+
"signature": "22467b3580476674f26837d554b784e8aae0d243d82a3639ad069ebc1139b2b6",
|
|
2742
|
+
"affectsGlobalScope": false
|
|
2743
|
+
},
|
|
2744
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts": {
|
|
2745
|
+
"version": "3035f71f765c044dd28de12a2867b4e2468d6b9dc86d2512b6d9b188989c677a",
|
|
2746
|
+
"signature": "87a0bcc2c882e0bc2f496d66d095e43fa1027c9679ab4d17fee48a4bc6b4fd2a",
|
|
2747
|
+
"affectsGlobalScope": false
|
|
2748
|
+
},
|
|
2749
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts": {
|
|
2750
|
+
"version": "36428ad86314bcadb4a162c56aae0b32d6193043395a27be9ac4b2315edf8da8",
|
|
2751
|
+
"signature": "71483e0e940e4e87919df3817678a6d67d5a580aaff62d484ebde5d76d64f4c3",
|
|
2752
|
+
"affectsGlobalScope": false
|
|
2753
|
+
},
|
|
2754
|
+
"../src/entity/modules/templates/templatechannel.ts": {
|
|
2755
|
+
"version": "6031d9d75f21e585325455a1266f31ce34a7f9b0dd70b159716ce1f85ee25354",
|
|
2756
|
+
"signature": "e054486a925e1f08e06987da9f637fb13e562c85e791842e8570db7daa1380fe",
|
|
2757
|
+
"affectsGlobalScope": false
|
|
2758
|
+
},
|
|
2759
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts": {
|
|
2760
|
+
"version": "27a6515833f3598e888d7a95ff0a03bd33fe2b4ba0061a9f481b335afe3d55f4",
|
|
2761
|
+
"signature": "deb25ca0efbe95c4883a6f86e87554d6da74dcef3c705aa2e6fdbaf63cebd246",
|
|
2762
|
+
"affectsGlobalScope": false
|
|
2763
|
+
},
|
|
2764
|
+
"../src/entity/modules/templates/authinfo.ts": {
|
|
2765
|
+
"version": "ec2a5c2b1643c00493583d0d6aeef6ed5acedf78a0483825da47fe3255c3f786",
|
|
2766
|
+
"signature": "7dd0fb7acd0eb0decbbbb318e1ac3d946b5bad4698a51cd02afbe8c7eea387f0",
|
|
2767
|
+
"affectsGlobalScope": false
|
|
2768
|
+
},
|
|
2769
|
+
"../src/repositories/templates/index.ts": {
|
|
2770
|
+
"version": "06815fac303298f8c35b0e42d5863251d76cca53542cfb29161e8edc4a8a49c7",
|
|
2771
|
+
"signature": "06c6f83f027a594f26ead185d64f84f988e80a0d6777ec53359fc6e70e9a88b4",
|
|
2772
|
+
"affectsGlobalScope": false
|
|
2773
|
+
},
|
|
2694
2774
|
"../src/repositories/index.ts": {
|
|
2695
|
-
"version": "
|
|
2696
|
-
"signature": "
|
|
2775
|
+
"version": "35cea121f22c1849b0592051ae5d1e3aa705c79be58e2e85f5ddb3163dd483bc",
|
|
2776
|
+
"signature": "15fe7c76f424f729128cbd796df29536cfa656e161d0a6b1a89e29ca9a1a152b",
|
|
2697
2777
|
"affectsGlobalScope": false
|
|
2698
2778
|
},
|
|
2699
2779
|
"../src/subscribers/productsubscriber.ts": {
|
|
@@ -3031,6 +3111,11 @@
|
|
|
3031
3111
|
"signature": "ba5a1e16d1c447cd3251a21f294b44fa98bbe670b0524ce0d78b597fc24ae050",
|
|
3032
3112
|
"affectsGlobalScope": false
|
|
3033
3113
|
},
|
|
3114
|
+
"../src/migrations/1680581444059-template.ts": {
|
|
3115
|
+
"version": "22a5e4a88dadfd456fe38442b5348ce1de9e0f72a112d1f929bd735377c12c0a",
|
|
3116
|
+
"signature": "1916b85a9f87d6c7564aac30d2c7d984413d110272a707efa012e2b738ae315d",
|
|
3117
|
+
"affectsGlobalScope": false
|
|
3118
|
+
},
|
|
3034
3119
|
"../src/migrations/execute/index.ts": {
|
|
3035
3120
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3036
3121
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5266,6 +5351,106 @@
|
|
|
5266
5351
|
"../node_modules/typeorm/index.d.ts",
|
|
5267
5352
|
"../src/entity/modules/shopcart/cartitem.ts"
|
|
5268
5353
|
],
|
|
5354
|
+
"../src/entity/modules/templates/authinfo.ts": [
|
|
5355
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5356
|
+
"../src/entity/auditedmodel.ts",
|
|
5357
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5358
|
+
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
5359
|
+
],
|
|
5360
|
+
"../src/entity/modules/templates/authmethod.ts": [
|
|
5361
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5362
|
+
"../src/entity/auditedmodel.ts",
|
|
5363
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts"
|
|
5364
|
+
],
|
|
5365
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts": [
|
|
5366
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5367
|
+
"../src/entity/auditedmodel.ts",
|
|
5368
|
+
"../src/entity/modules/templates/authinfo.ts",
|
|
5369
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
5370
|
+
"../src/entity/modules/templates/templatechannel.ts"
|
|
5371
|
+
],
|
|
5372
|
+
"../src/entity/modules/templates/endpointtemplatechannel.ts": [
|
|
5373
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5374
|
+
"../src/entity/auditedmodel.ts",
|
|
5375
|
+
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
5376
|
+
],
|
|
5377
|
+
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts": [
|
|
5378
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5379
|
+
"../src/entity/auditedmodel.ts",
|
|
5380
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5381
|
+
"../src/entity/user.ts"
|
|
5382
|
+
],
|
|
5383
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts": [
|
|
5384
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5385
|
+
"../src/entity/auditedmodel.ts",
|
|
5386
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5387
|
+
"../src/entity/user.ts"
|
|
5388
|
+
],
|
|
5389
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts": [
|
|
5390
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5391
|
+
"../src/entity/auditedmodel.ts",
|
|
5392
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5393
|
+
"../src/entity/user.ts"
|
|
5394
|
+
],
|
|
5395
|
+
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": [
|
|
5396
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5397
|
+
"../src/entity/auditedmodel.ts",
|
|
5398
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5399
|
+
"../src/entity/user.ts"
|
|
5400
|
+
],
|
|
5401
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts": [
|
|
5402
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5403
|
+
"../src/entity/auditedmodel.ts",
|
|
5404
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5405
|
+
"../src/entity/user.ts"
|
|
5406
|
+
],
|
|
5407
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts": [
|
|
5408
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5409
|
+
"../src/entity/auditedmodel.ts",
|
|
5410
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5411
|
+
"../src/entity/user.ts"
|
|
5412
|
+
],
|
|
5413
|
+
"../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts": [
|
|
5414
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5415
|
+
"../src/entity/auditedmodel.ts",
|
|
5416
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5417
|
+
"../src/entity/user.ts"
|
|
5418
|
+
],
|
|
5419
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts": [
|
|
5420
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5421
|
+
"../src/entity/auditedmodel.ts",
|
|
5422
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5423
|
+
"../src/entity/user.ts"
|
|
5424
|
+
],
|
|
5425
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts": [
|
|
5426
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5427
|
+
"../src/entity/auditedmodel.ts",
|
|
5428
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5429
|
+
"../src/entity/user.ts"
|
|
5430
|
+
],
|
|
5431
|
+
"../src/entity/modules/templates/templatechannel.ts": [
|
|
5432
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5433
|
+
"../src/entity/auditedmodel.ts",
|
|
5434
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5435
|
+
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
5436
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
5437
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
5438
|
+
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts",
|
|
5439
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts",
|
|
5440
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts",
|
|
5441
|
+
"../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts",
|
|
5442
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts",
|
|
5443
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts",
|
|
5444
|
+
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
5445
|
+
],
|
|
5446
|
+
"../src/entity/modules/templates/usertemplatechannel.ts": [
|
|
5447
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5448
|
+
"../src/entity/auditedmodel.ts",
|
|
5449
|
+
"../src/entity/modules/templates/authinfo.ts",
|
|
5450
|
+
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
5451
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5452
|
+
"../src/entity/user.ts"
|
|
5453
|
+
],
|
|
5269
5454
|
"../src/entity/notification.ts": [
|
|
5270
5455
|
"../node_modules/typeorm/index.d.ts",
|
|
5271
5456
|
"../src/entity/auditedmodel.ts",
|
|
@@ -5630,6 +5815,9 @@
|
|
|
5630
5815
|
"../src/migrations/1679329902116-promote_to_production_2023_03_20.ts": [
|
|
5631
5816
|
"../node_modules/typeorm/index.d.ts"
|
|
5632
5817
|
],
|
|
5818
|
+
"../src/migrations/1680581444059-template.ts": [
|
|
5819
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5820
|
+
],
|
|
5633
5821
|
"../src/migrations/execute/index.ts": [
|
|
5634
5822
|
"../src/config/connect.ts"
|
|
5635
5823
|
],
|
|
@@ -5702,7 +5890,8 @@
|
|
|
5702
5890
|
"../src/entity/wallet.ts",
|
|
5703
5891
|
"../src/entity/wooconnection.ts",
|
|
5704
5892
|
"../src/repositories/shipping/index.ts",
|
|
5705
|
-
"../src/repositories/shopcart/index.ts"
|
|
5893
|
+
"../src/repositories/shopcart/index.ts",
|
|
5894
|
+
"../src/repositories/templates/index.ts"
|
|
5706
5895
|
],
|
|
5707
5896
|
"../src/repositories/shipping/index.ts": [
|
|
5708
5897
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -5719,6 +5908,24 @@
|
|
|
5719
5908
|
"../src/entity/modules/shopcart/checkoutshippingaddress.ts",
|
|
5720
5909
|
"../src/entity/modules/shopcart/pricedata.ts"
|
|
5721
5910
|
],
|
|
5911
|
+
"../src/repositories/templates/index.ts": [
|
|
5912
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5913
|
+
"../src/entity/modules/templates/authinfo.ts",
|
|
5914
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
5915
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
5916
|
+
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
5917
|
+
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
5918
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
5919
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
5920
|
+
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts",
|
|
5921
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts",
|
|
5922
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts",
|
|
5923
|
+
"../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts",
|
|
5924
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts",
|
|
5925
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts",
|
|
5926
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
5927
|
+
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
5928
|
+
],
|
|
5722
5929
|
"../src/staticdata/index.ts": [
|
|
5723
5930
|
"../src/staticdata/channelname.ts",
|
|
5724
5931
|
"../src/staticdata/connectiontype.ts",
|
|
@@ -7773,6 +7980,91 @@
|
|
|
7773
7980
|
"../src/entity/modules/shopcart/pricedata.ts": [
|
|
7774
7981
|
"../src/entity/modules/shopcart/cartitem.ts"
|
|
7775
7982
|
],
|
|
7983
|
+
"../src/entity/modules/templates/authinfo.ts": [
|
|
7984
|
+
"../src/entity/auditedmodel.ts",
|
|
7985
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
7986
|
+
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
7987
|
+
],
|
|
7988
|
+
"../src/entity/modules/templates/authmethod.ts": [
|
|
7989
|
+
"../src/entity/auditedmodel.ts",
|
|
7990
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts"
|
|
7991
|
+
],
|
|
7992
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts": [
|
|
7993
|
+
"../src/entity/auditedmodel.ts",
|
|
7994
|
+
"../src/entity/modules/templates/authinfo.ts",
|
|
7995
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
7996
|
+
"../src/entity/modules/templates/templatechannel.ts"
|
|
7997
|
+
],
|
|
7998
|
+
"../src/entity/modules/templates/endpointtemplatechannel.ts": [
|
|
7999
|
+
"../src/entity/auditedmodel.ts",
|
|
8000
|
+
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
8001
|
+
],
|
|
8002
|
+
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts": [
|
|
8003
|
+
"../src/entity/auditedmodel.ts",
|
|
8004
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8005
|
+
"../src/entity/user.ts"
|
|
8006
|
+
],
|
|
8007
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts": [
|
|
8008
|
+
"../src/entity/auditedmodel.ts",
|
|
8009
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8010
|
+
"../src/entity/user.ts"
|
|
8011
|
+
],
|
|
8012
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts": [
|
|
8013
|
+
"../src/entity/auditedmodel.ts",
|
|
8014
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8015
|
+
"../src/entity/user.ts"
|
|
8016
|
+
],
|
|
8017
|
+
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts": [
|
|
8018
|
+
"../src/entity/auditedmodel.ts",
|
|
8019
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8020
|
+
"../src/entity/user.ts"
|
|
8021
|
+
],
|
|
8022
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts": [
|
|
8023
|
+
"../src/entity/auditedmodel.ts",
|
|
8024
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8025
|
+
"../src/entity/user.ts"
|
|
8026
|
+
],
|
|
8027
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts": [
|
|
8028
|
+
"../src/entity/auditedmodel.ts",
|
|
8029
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8030
|
+
"../src/entity/user.ts"
|
|
8031
|
+
],
|
|
8032
|
+
"../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts": [
|
|
8033
|
+
"../src/entity/auditedmodel.ts",
|
|
8034
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8035
|
+
"../src/entity/user.ts"
|
|
8036
|
+
],
|
|
8037
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts": [
|
|
8038
|
+
"../src/entity/auditedmodel.ts",
|
|
8039
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8040
|
+
"../src/entity/user.ts"
|
|
8041
|
+
],
|
|
8042
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts": [
|
|
8043
|
+
"../src/entity/auditedmodel.ts",
|
|
8044
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8045
|
+
"../src/entity/user.ts"
|
|
8046
|
+
],
|
|
8047
|
+
"../src/entity/modules/templates/templatechannel.ts": [
|
|
8048
|
+
"../src/entity/auditedmodel.ts",
|
|
8049
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
8050
|
+
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
8051
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
8052
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
8053
|
+
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts",
|
|
8054
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts",
|
|
8055
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts",
|
|
8056
|
+
"../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts",
|
|
8057
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts",
|
|
8058
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts",
|
|
8059
|
+
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
8060
|
+
],
|
|
8061
|
+
"../src/entity/modules/templates/usertemplatechannel.ts": [
|
|
8062
|
+
"../src/entity/auditedmodel.ts",
|
|
8063
|
+
"../src/entity/modules/templates/authinfo.ts",
|
|
8064
|
+
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
8065
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8066
|
+
"../src/entity/user.ts"
|
|
8067
|
+
],
|
|
7776
8068
|
"../src/entity/notification.ts": [
|
|
7777
8069
|
"../src/entity/auditedmodel.ts",
|
|
7778
8070
|
"../src/entity/order.ts",
|
|
@@ -8077,6 +8369,9 @@
|
|
|
8077
8369
|
"../src/migrations/1679329902116-promote_to_production_2023_03_20.ts": [
|
|
8078
8370
|
"../node_modules/typeorm/index.d.ts"
|
|
8079
8371
|
],
|
|
8372
|
+
"../src/migrations/1680581444059-template.ts": [
|
|
8373
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8374
|
+
],
|
|
8080
8375
|
"../src/migrations/index.ts": [
|
|
8081
8376
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8082
8377
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -8146,7 +8441,8 @@
|
|
|
8146
8441
|
"../src/entity/wallet.ts",
|
|
8147
8442
|
"../src/entity/wooconnection.ts",
|
|
8148
8443
|
"../src/repositories/shipping/index.ts",
|
|
8149
|
-
"../src/repositories/shopcart/index.ts"
|
|
8444
|
+
"../src/repositories/shopcart/index.ts",
|
|
8445
|
+
"../src/repositories/templates/index.ts"
|
|
8150
8446
|
],
|
|
8151
8447
|
"../src/repositories/shipping/index.ts": [
|
|
8152
8448
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -8163,6 +8459,24 @@
|
|
|
8163
8459
|
"../src/entity/modules/shopcart/checkoutshippingaddress.ts",
|
|
8164
8460
|
"../src/entity/modules/shopcart/pricedata.ts"
|
|
8165
8461
|
],
|
|
8462
|
+
"../src/repositories/templates/index.ts": [
|
|
8463
|
+
"../node_modules/typeorm/index.d.ts",
|
|
8464
|
+
"../src/entity/modules/templates/authinfo.ts",
|
|
8465
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
8466
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
8467
|
+
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
8468
|
+
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
8469
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
8470
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
8471
|
+
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts",
|
|
8472
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts",
|
|
8473
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts",
|
|
8474
|
+
"../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts",
|
|
8475
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts",
|
|
8476
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts",
|
|
8477
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
8478
|
+
"../src/entity/modules/templates/usertemplatechannel.ts"
|
|
8479
|
+
],
|
|
8166
8480
|
"../src/staticdata/index.ts": [
|
|
8167
8481
|
"../src/staticdata/channelname.ts",
|
|
8168
8482
|
"../src/staticdata/connectiontype.ts",
|
|
@@ -8718,6 +9032,21 @@
|
|
|
8718
9032
|
"../src/entity/modules/shopcart/checkoutbillingaddress.ts",
|
|
8719
9033
|
"../src/entity/modules/shopcart/checkoutshippingaddress.ts",
|
|
8720
9034
|
"../src/entity/modules/shopcart/pricedata.ts",
|
|
9035
|
+
"../src/entity/modules/templates/authinfo.ts",
|
|
9036
|
+
"../src/entity/modules/templates/authmethod.ts",
|
|
9037
|
+
"../src/entity/modules/templates/authmethodtemplatechannel.ts",
|
|
9038
|
+
"../src/entity/modules/templates/endpointtemplatechannel.ts",
|
|
9039
|
+
"../src/entity/modules/templates/schemeorder/reachuschemeconfigorder.ts",
|
|
9040
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigorder.ts",
|
|
9041
|
+
"../src/entity/modules/templates/schemeorder/templatechannelschemeconfigordermapped.ts",
|
|
9042
|
+
"../src/entity/modules/templates/schemeproduct/reachuschemeconfigproduct.ts",
|
|
9043
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproduct.ts",
|
|
9044
|
+
"../src/entity/modules/templates/schemeproduct/templatechannelschemeconfigproductmapped.ts",
|
|
9045
|
+
"../src/entity/modules/templates/schemevariant/reachuschemeconfigvariant.ts",
|
|
9046
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariant.ts",
|
|
9047
|
+
"../src/entity/modules/templates/schemevariant/templatechannelschemeconfigvariantmapped.ts",
|
|
9048
|
+
"../src/entity/modules/templates/templatechannel.ts",
|
|
9049
|
+
"../src/entity/modules/templates/usertemplatechannel.ts",
|
|
8721
9050
|
"../src/entity/notification.ts",
|
|
8722
9051
|
"../src/entity/option.ts",
|
|
8723
9052
|
"../src/entity/order.ts",
|
|
@@ -8804,11 +9133,13 @@
|
|
|
8804
9133
|
"../src/migrations/1677764464274-task-1032v2.ts",
|
|
8805
9134
|
"../src/migrations/1678115824175-task-1098v1.ts",
|
|
8806
9135
|
"../src/migrations/1679329902116-promote_to_production_2023_03_20.ts",
|
|
9136
|
+
"../src/migrations/1680581444059-template.ts",
|
|
8807
9137
|
"../src/migrations/execute/index.ts",
|
|
8808
9138
|
"../src/migrations/index.ts",
|
|
8809
9139
|
"../src/repositories/index.ts",
|
|
8810
9140
|
"../src/repositories/shipping/index.ts",
|
|
8811
9141
|
"../src/repositories/shopcart/index.ts",
|
|
9142
|
+
"../src/repositories/templates/index.ts",
|
|
8812
9143
|
"../src/staticdata/channelname.ts",
|
|
8813
9144
|
"../src/staticdata/connectiontype.ts",
|
|
8814
9145
|
"../src/staticdata/currency.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
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.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.16",
|
|
25
|
+
"@reachu/utils": "1.0.16",
|
|
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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Entity,
|
|
3
|
+
PrimaryGeneratedColumn,
|
|
4
|
+
Column,
|
|
5
|
+
DeleteDateColumn,
|
|
6
|
+
ManyToOne,
|
|
7
|
+
JoinColumn,
|
|
8
|
+
} from 'typeorm';
|
|
9
|
+
import AuditedModel from '../../AuditedModel';
|
|
10
|
+
import UserTemplateChannel from './UserTemplateChannel';
|
|
11
|
+
|
|
12
|
+
@Entity()
|
|
13
|
+
export default class EndpointTemplateChannel extends AuditedModel {
|
|
14
|
+
@PrimaryGeneratedColumn()
|
|
15
|
+
id: number;
|
|
16
|
+
|
|
17
|
+
@DeleteDateColumn()
|
|
18
|
+
deletedAt: Date;
|
|
19
|
+
|
|
20
|
+
@ManyToOne(
|
|
21
|
+
() => UserTemplateChannel,
|
|
22
|
+
(userTemplateChannel: UserTemplateChannel) => userTemplateChannel.endpointTemplateChannel,
|
|
23
|
+
{ eager: true, onDelete: 'CASCADE' },
|
|
24
|
+
)
|
|
25
|
+
@JoinColumn()
|
|
26
|
+
userTemplateChannel: UserTemplateChannel;
|
|
27
|
+
}
|