@reachu/database 1.0.159 → 1.0.160
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/ShopifyConnection.js +1 -1
- package/dist/entity/ShopifyConnection.js.map +1 -1
- package/dist/entity/User.d.ts +0 -1
- package/dist/entity/User.js +0 -5
- package/dist/entity/User.js.map +1 -1
- package/dist/migrations/1707768053927-shopify-supplier-delete.d.ts +6 -0
- package/dist/migrations/1707768053927-shopify-supplier-delete.js +33 -0
- package/dist/migrations/1707768053927-shopify-supplier-delete.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +62 -84
- package/package.json +3 -3
- package/src/entity/ShopifyConnection.ts +1 -1
- package/src/entity/User.ts +0 -4
- package/src/migrations/1707768053927-shopify-supplier-delete.ts +18 -0
|
@@ -35,7 +35,7 @@ __decorate([
|
|
|
35
35
|
__metadata("design:type", User_1.default)
|
|
36
36
|
], ShopifyConnection.prototype, "reseller", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
typeorm_1.ManyToOne(() => User_1.default, (user) => user.
|
|
38
|
+
typeorm_1.ManyToOne(() => User_1.default, (user) => user.id, { onDelete: 'CASCADE', nullable: true }),
|
|
39
39
|
typeorm_1.JoinColumn({ name: 'supplier_id', referencedColumnName: 'id' }),
|
|
40
40
|
__metadata("design:type", User_1.default)
|
|
41
41
|
], ShopifyConnection.prototype, "supplier", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShopifyConnection.js","sourceRoot":"","sources":["../../src/entity/ShopifyConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCASiB;AACjB,kDAA0B;AAC1B,kEAA0C;AAI1C,IAAqB,iBAAiB,GAAtC,MAAqB,iBAAkB,SAAQ,sBAAY;CAmC1D,CAAA;AAjCC;IADC,gCAAsB,EAAE;;6CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;oDAAC;AAGhB;IADC,gBAAM,CAA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E,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjF,oBAAU,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,cAAI;mDAAC;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAClB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC1B;AAGZ;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACf;AAGvB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClB;AAlCD,iBAAiB;IAFrC,gBAAM,EAAE;IACR,gBAAM,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;GACb,iBAAiB,CAmCrC;kBAnCoB,iBAAiB"}
|
package/dist/entity/User.d.ts
CHANGED
|
@@ -59,7 +59,6 @@ export default class User extends AuditedModel {
|
|
|
59
59
|
settings: UserSettings;
|
|
60
60
|
woo: WooConnection;
|
|
61
61
|
shopifyReseller: ShopifyConnection;
|
|
62
|
-
shopifySupplier: ShopifyConnection;
|
|
63
62
|
magento: MagentoConnection;
|
|
64
63
|
shippingPackage: ShippingPackage;
|
|
65
64
|
termsAndConditions: boolean;
|
package/dist/entity/User.js
CHANGED
|
@@ -211,11 +211,6 @@ __decorate([
|
|
|
211
211
|
typeorm_1.JoinColumn(),
|
|
212
212
|
__metadata("design:type", ShopifyConnection_1.default)
|
|
213
213
|
], User.prototype, "shopifyReseller", void 0);
|
|
214
|
-
__decorate([
|
|
215
|
-
typeorm_1.OneToOne(() => ShopifyConnection_1.default, (connection) => connection.supplier, { eager: true }),
|
|
216
|
-
typeorm_1.JoinColumn(),
|
|
217
|
-
__metadata("design:type", ShopifyConnection_1.default)
|
|
218
|
-
], User.prototype, "shopifySupplier", void 0);
|
|
219
214
|
__decorate([
|
|
220
215
|
typeorm_1.OneToOne(() => MagentoConnection_entity_1.MagentoConnection, (connection) => connection.user, { eager: true }),
|
|
221
216
|
typeorm_1.JoinColumn(),
|
package/dist/entity/User.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/entity/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAWiB;AACjB,kEAA0C;AAC1C,0DAAkC;AAClC,wDAAgC;AAChC,wDAAgC;AAChC,0DAAkC;AAClC,wEAAgD;AAChD,oDAA4B;AAC5B,oEAA4C;AAC5C,0DAAkC;AAClC,4EAAoD;AACpD,2CAAwC;AAExC,oEAA4C;AAC5C,yEAA+D;AAC/D,0DAAkC;AAClC,kEAA0C;AAC1C,2EAAmD;AACnD,wFAAgE;AAChE,0FAAkE;AAGlE,IAAqB,IAAI,GAAzB,MAAqB,IAAK,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/entity/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAWiB;AACjB,kEAA0C;AAC1C,0DAAkC;AAClC,wDAAgC;AAChC,wDAAgC;AAChC,0DAAkC;AAClC,wEAAgD;AAChD,oDAA4B;AAC5B,oEAA4C;AAC5C,0DAAkC;AAClC,4EAAoD;AACpD,2CAAwC;AAExC,oEAA4C;AAC5C,yEAA+D;AAC/D,0DAAkC;AAClC,kEAA0C;AAC1C,2EAAmD;AACnD,wFAAgE;AAChE,0FAAkE;AAGlE,IAAqB,IAAI,GAAzB,MAAqB,IAAK,SAAQ,sBAAY;IAkO5C,MAAM,CA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AC;IACD,oBAAU,EAAE;8BACG,uBAAa;4CAAC;AAM9B;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACnF,oBAAU,EAAE;;sCACQ;AAIrB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACnF,oBAAU,EAAE;;sCACQ;AAMrB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,sBAAY,EAAE,CAAC,YAA0B,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE;QAChF,OAAO,EAAE,IAAI;KACd,CAAC;IACD,oBAAU,EAAE;;2CACiB;AAM9B;IAJC,kBAAQ,CAAC,GAAG,EAAE,CAAC,uBAAa,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE;QACnF,OAAO,EAAE,IAAI;KACd,CAAC;IACD,oBAAU,EAAE;8BACE,uBAAa;2CAAC;AAhOV,IAAI;IADxB,gBAAM,EAAE;GACY,IAAI,CA0OxB;kBA1OoB,IAAI"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.shopifySupplierDelete1707768053927 = void 0;
|
|
13
|
+
class shopifySupplierDelete1707768053927 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'shopifySupplierDelete1707768053927';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`user\` DROP FOREIGN KEY \`FK_bb09b5baeed0eff98b89cb1ff57\``);
|
|
20
|
+
yield queryRunner.query(`DROP INDEX \`REL_bb09b5baeed0eff98b89cb1ff5\` ON \`user\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`user\` DROP COLUMN \`shopify_supplier_id\``);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
down(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`user\` ADD \`shopify_supplier_id\` int NULL`);
|
|
27
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_bb09b5baeed0eff98b89cb1ff5\` ON \`user\` (\`shopify_supplier_id\`)`);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`user\` ADD CONSTRAINT \`FK_bb09b5baeed0eff98b89cb1ff57\` FOREIGN KEY (\`shopify_supplier_id\`) REFERENCES \`shopify_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.shopifySupplierDelete1707768053927 = shopifySupplierDelete1707768053927;
|
|
33
|
+
//# sourceMappingURL=1707768053927-shopify-supplier-delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1707768053927-shopify-supplier-delete.js","sourceRoot":"","sources":["../../src/migrations/1707768053927-shopify-supplier-delete.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,kCAAkC;IAA/C;QACI,SAAI,GAAG,oCAAoC,CAAA;IAc/C,CAAC;IAZgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;YACpG,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;YACrF,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;QACxF,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;YACrF,MAAM,WAAW,CAAC,KAAK,CAAC,8FAA8F,CAAC,CAAC;YACxH,MAAM,WAAW,CAAC,KAAK,CAAC,gMAAgM,CAAC,CAAC;QAC9N,CAAC;KAAA;CAEJ;AAfD,gFAeC"}
|
|
@@ -1997,7 +1997,7 @@
|
|
|
1997
1997
|
"affectsGlobalScope": false
|
|
1998
1998
|
},
|
|
1999
1999
|
"../src/entity/shopifyconnection.ts": {
|
|
2000
|
-
"version": "
|
|
2000
|
+
"version": "82631ee5fc2ee8c8c4b67894354e79a47878c12d824e39e40d2ac71ba5143588",
|
|
2001
2001
|
"signature": "deaaa620213450b2c981971e6fa519cb8e39ada9d97973a431bc95bcb877e4ea",
|
|
2002
2002
|
"affectsGlobalScope": false
|
|
2003
2003
|
},
|
|
@@ -2236,59 +2236,44 @@
|
|
|
2236
2236
|
"signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86",
|
|
2237
2237
|
"affectsGlobalScope": false
|
|
2238
2238
|
},
|
|
2239
|
-
"../node_modules/@types/
|
|
2240
|
-
"version": "
|
|
2241
|
-
"signature": "
|
|
2242
|
-
"affectsGlobalScope": false
|
|
2243
|
-
},
|
|
2244
|
-
"../node_modules/@types/send/index.d.ts": {
|
|
2245
|
-
"version": "b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a",
|
|
2246
|
-
"signature": "b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a",
|
|
2239
|
+
"../node_modules/@types/range-parser/index.d.ts": {
|
|
2240
|
+
"version": "16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",
|
|
2241
|
+
"signature": "16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",
|
|
2247
2242
|
"affectsGlobalScope": false
|
|
2248
2243
|
},
|
|
2249
2244
|
"../node_modules/@types/qs/index.d.ts": {
|
|
2250
|
-
"version": "
|
|
2251
|
-
"signature": "
|
|
2252
|
-
"affectsGlobalScope": false
|
|
2253
|
-
},
|
|
2254
|
-
"../node_modules/@types/range-parser/index.d.ts": {
|
|
2255
|
-
"version": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
|
|
2256
|
-
"signature": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
|
|
2245
|
+
"version": "ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",
|
|
2246
|
+
"signature": "ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",
|
|
2257
2247
|
"affectsGlobalScope": false
|
|
2258
2248
|
},
|
|
2259
2249
|
"../node_modules/@types/express-serve-static-core/index.d.ts": {
|
|
2260
|
-
"version": "
|
|
2261
|
-
"signature": "
|
|
2250
|
+
"version": "c5dd1fef4cd4aaffc78786047bed5ae6fc1200d19a1946cbc4e2d3ed4d62c8fa",
|
|
2251
|
+
"signature": "c5dd1fef4cd4aaffc78786047bed5ae6fc1200d19a1946cbc4e2d3ed4d62c8fa",
|
|
2262
2252
|
"affectsGlobalScope": true
|
|
2263
2253
|
},
|
|
2264
|
-
"../node_modules/@types/http-errors/index.d.ts": {
|
|
2265
|
-
"version": "b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b",
|
|
2266
|
-
"signature": "b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b",
|
|
2267
|
-
"affectsGlobalScope": false
|
|
2268
|
-
},
|
|
2269
2254
|
"../node_modules/@types/mime/mime.d.ts": {
|
|
2270
|
-
"version": "
|
|
2271
|
-
"signature": "
|
|
2255
|
+
"version": "5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7",
|
|
2256
|
+
"signature": "5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7",
|
|
2272
2257
|
"affectsGlobalScope": false
|
|
2273
2258
|
},
|
|
2274
2259
|
"../node_modules/@types/mime/index.d.ts": {
|
|
2275
|
-
"version": "
|
|
2276
|
-
"signature": "
|
|
2260
|
+
"version": "951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e",
|
|
2261
|
+
"signature": "951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e",
|
|
2277
2262
|
"affectsGlobalScope": false
|
|
2278
2263
|
},
|
|
2279
2264
|
"../node_modules/@types/serve-static/index.d.ts": {
|
|
2280
|
-
"version": "
|
|
2281
|
-
"signature": "
|
|
2265
|
+
"version": "e6f0cb9d8cb2e38bec66e032e73caa3e7c6671f21ed7196acb821aec462051f2",
|
|
2266
|
+
"signature": "e6f0cb9d8cb2e38bec66e032e73caa3e7c6671f21ed7196acb821aec462051f2",
|
|
2282
2267
|
"affectsGlobalScope": false
|
|
2283
2268
|
},
|
|
2284
2269
|
"../node_modules/@types/connect/index.d.ts": {
|
|
2285
|
-
"version": "
|
|
2286
|
-
"signature": "
|
|
2270
|
+
"version": "6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073",
|
|
2271
|
+
"signature": "6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073",
|
|
2287
2272
|
"affectsGlobalScope": false
|
|
2288
2273
|
},
|
|
2289
2274
|
"../node_modules/@types/body-parser/index.d.ts": {
|
|
2290
|
-
"version": "
|
|
2291
|
-
"signature": "
|
|
2275
|
+
"version": "afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90",
|
|
2276
|
+
"signature": "afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90",
|
|
2292
2277
|
"affectsGlobalScope": false
|
|
2293
2278
|
},
|
|
2294
2279
|
"../node_modules/@types/express/index.d.ts": {
|
|
@@ -2597,8 +2582,8 @@
|
|
|
2597
2582
|
"affectsGlobalScope": false
|
|
2598
2583
|
},
|
|
2599
2584
|
"../src/entity/user.ts": {
|
|
2600
|
-
"version": "
|
|
2601
|
-
"signature": "
|
|
2585
|
+
"version": "6c376f3ac5b7427c790de0bb209f2e76fa5bc5dd4506a0c140c31a4ef58e2420",
|
|
2586
|
+
"signature": "6b9c7fe525963bcdeabe5fa5b626148b243f295646a9c830273fb29b8ecc5074",
|
|
2602
2587
|
"affectsGlobalScope": false
|
|
2603
2588
|
},
|
|
2604
2589
|
"../src/entity/apicredential.ts": {
|
|
@@ -3706,29 +3691,34 @@
|
|
|
3706
3691
|
"signature": "a72074750279cd9d5b59cbf8261bce9cdca5d78175126784d33d7a1fedfd3685",
|
|
3707
3692
|
"affectsGlobalScope": false
|
|
3708
3693
|
},
|
|
3694
|
+
"../src/migrations/1707768053927-shopify-supplier-delete.ts": {
|
|
3695
|
+
"version": "075290703e417df99c8ef668cab875c3485d31a67425c6bb507699986a3dfcd8",
|
|
3696
|
+
"signature": "23230908604546eb68260d29a50b83c10e1821357027a8b0b06bd4f6912c45b3",
|
|
3697
|
+
"affectsGlobalScope": false
|
|
3698
|
+
},
|
|
3709
3699
|
"../src/migrations/execute/index.ts": {
|
|
3710
3700
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3711
3701
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3712
3702
|
"affectsGlobalScope": false
|
|
3713
3703
|
},
|
|
3714
3704
|
"../node_modules/@babel/types/lib/index.d.ts": {
|
|
3715
|
-
"version": "
|
|
3716
|
-
"signature": "
|
|
3705
|
+
"version": "3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f",
|
|
3706
|
+
"signature": "3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f",
|
|
3717
3707
|
"affectsGlobalScope": false
|
|
3718
3708
|
},
|
|
3719
3709
|
"../node_modules/@types/babel__generator/index.d.ts": {
|
|
3720
|
-
"version": "
|
|
3721
|
-
"signature": "
|
|
3710
|
+
"version": "cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb",
|
|
3711
|
+
"signature": "cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb",
|
|
3722
3712
|
"affectsGlobalScope": false
|
|
3723
3713
|
},
|
|
3724
3714
|
"../node_modules/@babel/parser/typings/babel-parser.d.ts": {
|
|
3725
|
-
"version": "
|
|
3726
|
-
"signature": "
|
|
3715
|
+
"version": "b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679",
|
|
3716
|
+
"signature": "b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679",
|
|
3727
3717
|
"affectsGlobalScope": false
|
|
3728
3718
|
},
|
|
3729
3719
|
"../node_modules/@types/babel__template/index.d.ts": {
|
|
3730
|
-
"version": "
|
|
3731
|
-
"signature": "
|
|
3720
|
+
"version": "93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9",
|
|
3721
|
+
"signature": "93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9",
|
|
3732
3722
|
"affectsGlobalScope": false
|
|
3733
3723
|
},
|
|
3734
3724
|
"../node_modules/@types/babel__traverse/index.d.ts": {
|
|
@@ -3737,28 +3727,28 @@
|
|
|
3737
3727
|
"affectsGlobalScope": false
|
|
3738
3728
|
},
|
|
3739
3729
|
"../node_modules/@types/babel__core/index.d.ts": {
|
|
3740
|
-
"version": "
|
|
3741
|
-
"signature": "
|
|
3730
|
+
"version": "b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb",
|
|
3731
|
+
"signature": "b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb",
|
|
3742
3732
|
"affectsGlobalScope": false
|
|
3743
3733
|
},
|
|
3744
3734
|
"../node_modules/@types/graceful-fs/index.d.ts": {
|
|
3745
|
-
"version": "
|
|
3746
|
-
"signature": "
|
|
3735
|
+
"version": "bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e",
|
|
3736
|
+
"signature": "bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e",
|
|
3747
3737
|
"affectsGlobalScope": false
|
|
3748
3738
|
},
|
|
3749
3739
|
"../node_modules/@types/istanbul-lib-coverage/index.d.ts": {
|
|
3750
|
-
"version": "
|
|
3751
|
-
"signature": "
|
|
3740
|
+
"version": "8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215",
|
|
3741
|
+
"signature": "8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215",
|
|
3752
3742
|
"affectsGlobalScope": false
|
|
3753
3743
|
},
|
|
3754
3744
|
"../node_modules/@types/istanbul-lib-report/index.d.ts": {
|
|
3755
|
-
"version": "
|
|
3756
|
-
"signature": "
|
|
3745
|
+
"version": "7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee",
|
|
3746
|
+
"signature": "7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee",
|
|
3757
3747
|
"affectsGlobalScope": false
|
|
3758
3748
|
},
|
|
3759
3749
|
"../node_modules/@types/istanbul-reports/index.d.ts": {
|
|
3760
|
-
"version": "
|
|
3761
|
-
"signature": "
|
|
3750
|
+
"version": "f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0",
|
|
3751
|
+
"signature": "f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0",
|
|
3762
3752
|
"affectsGlobalScope": false
|
|
3763
3753
|
},
|
|
3764
3754
|
"../node_modules/jest-diff/build/cleanupsemantic.d.ts": {
|
|
@@ -3802,28 +3792,28 @@
|
|
|
3802
3792
|
"affectsGlobalScope": true
|
|
3803
3793
|
},
|
|
3804
3794
|
"../node_modules/@types/json-schema/index.d.ts": {
|
|
3805
|
-
"version": "
|
|
3806
|
-
"signature": "
|
|
3795
|
+
"version": "f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6",
|
|
3796
|
+
"signature": "f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6",
|
|
3807
3797
|
"affectsGlobalScope": false
|
|
3808
3798
|
},
|
|
3809
3799
|
"../node_modules/@types/prettier/index.d.ts": {
|
|
3810
|
-
"version": "
|
|
3811
|
-
"signature": "
|
|
3800
|
+
"version": "bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621",
|
|
3801
|
+
"signature": "bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621",
|
|
3812
3802
|
"affectsGlobalScope": false
|
|
3813
3803
|
},
|
|
3814
3804
|
"../node_modules/@types/stack-utils/index.d.ts": {
|
|
3815
|
-
"version": "
|
|
3816
|
-
"signature": "
|
|
3805
|
+
"version": "b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298",
|
|
3806
|
+
"signature": "b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298",
|
|
3817
3807
|
"affectsGlobalScope": false
|
|
3818
3808
|
},
|
|
3819
3809
|
"../node_modules/@types/yargs-parser/index.d.ts": {
|
|
3820
|
-
"version": "
|
|
3821
|
-
"signature": "
|
|
3810
|
+
"version": "70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e",
|
|
3811
|
+
"signature": "70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e",
|
|
3822
3812
|
"affectsGlobalScope": false
|
|
3823
3813
|
},
|
|
3824
3814
|
"../node_modules/@types/yargs/index.d.ts": {
|
|
3825
|
-
"version": "
|
|
3826
|
-
"signature": "
|
|
3815
|
+
"version": "149ebd778196c03e9c75b630866543501e0e9e62a146c1a17ce91ade4cdfb0ba",
|
|
3816
|
+
"signature": "149ebd778196c03e9c75b630866543501e0e9e62a146c1a17ce91ade4cdfb0ba",
|
|
3827
3817
|
"affectsGlobalScope": false
|
|
3828
3818
|
},
|
|
3829
3819
|
"../node_modules/@types/zen-observable/index.d.ts": {
|
|
@@ -3934,8 +3924,7 @@
|
|
|
3934
3924
|
"../node_modules/@types/node/http.d.ts",
|
|
3935
3925
|
"../node_modules/@types/node/index.d.ts",
|
|
3936
3926
|
"../node_modules/@types/qs/index.d.ts",
|
|
3937
|
-
"../node_modules/@types/range-parser/index.d.ts"
|
|
3938
|
-
"../node_modules/@types/send/index.d.ts"
|
|
3927
|
+
"../node_modules/@types/range-parser/index.d.ts"
|
|
3939
3928
|
],
|
|
3940
3929
|
"../node_modules/@types/express/index.d.ts": [
|
|
3941
3930
|
"../node_modules/@types/body-parser/index.d.ts",
|
|
@@ -4133,14 +4122,7 @@
|
|
|
4133
4122
|
"../node_modules/@types/node/zlib.d.ts": [
|
|
4134
4123
|
"../node_modules/@types/node/stream.d.ts"
|
|
4135
4124
|
],
|
|
4136
|
-
"../node_modules/@types/send/index.d.ts": [
|
|
4137
|
-
"../node_modules/@types/node/fs.d.ts",
|
|
4138
|
-
"../node_modules/@types/node/index.d.ts",
|
|
4139
|
-
"../node_modules/@types/node/stream.d.ts",
|
|
4140
|
-
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
|
|
4141
|
-
],
|
|
4142
4125
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
4143
|
-
"../node_modules/@types/http-errors/index.d.ts",
|
|
4144
4126
|
"../node_modules/@types/mime/index.d.ts",
|
|
4145
4127
|
"../node_modules/@types/node/http.d.ts",
|
|
4146
4128
|
"../node_modules/@types/node/index.d.ts"
|
|
@@ -6842,6 +6824,9 @@
|
|
|
6842
6824
|
"../src/migrations/1706273488135-promote_to_production_26_01_2024.ts": [
|
|
6843
6825
|
"../node_modules/typeorm/index.d.ts"
|
|
6844
6826
|
],
|
|
6827
|
+
"../src/migrations/1707768053927-shopify-supplier-delete.ts": [
|
|
6828
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6829
|
+
],
|
|
6845
6830
|
"../src/migrations/execute/index.ts": [
|
|
6846
6831
|
"../src/config/connect.ts"
|
|
6847
6832
|
],
|
|
@@ -7093,8 +7078,7 @@
|
|
|
7093
7078
|
"../node_modules/@types/node/http.d.ts",
|
|
7094
7079
|
"../node_modules/@types/node/index.d.ts",
|
|
7095
7080
|
"../node_modules/@types/qs/index.d.ts",
|
|
7096
|
-
"../node_modules/@types/range-parser/index.d.ts"
|
|
7097
|
-
"../node_modules/@types/send/index.d.ts"
|
|
7081
|
+
"../node_modules/@types/range-parser/index.d.ts"
|
|
7098
7082
|
],
|
|
7099
7083
|
"../node_modules/@types/express/index.d.ts": [
|
|
7100
7084
|
"../node_modules/@types/body-parser/index.d.ts",
|
|
@@ -7292,14 +7276,7 @@
|
|
|
7292
7276
|
"../node_modules/@types/node/zlib.d.ts": [
|
|
7293
7277
|
"../node_modules/@types/node/stream.d.ts"
|
|
7294
7278
|
],
|
|
7295
|
-
"../node_modules/@types/send/index.d.ts": [
|
|
7296
|
-
"../node_modules/@types/node/fs.d.ts",
|
|
7297
|
-
"../node_modules/@types/node/index.d.ts",
|
|
7298
|
-
"../node_modules/@types/node/stream.d.ts",
|
|
7299
|
-
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
|
|
7300
|
-
],
|
|
7301
7279
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
7302
|
-
"../node_modules/@types/http-errors/index.d.ts",
|
|
7303
7280
|
"../node_modules/@types/mime/index.d.ts",
|
|
7304
7281
|
"../node_modules/@types/node/http.d.ts",
|
|
7305
7282
|
"../node_modules/@types/node/index.d.ts"
|
|
@@ -9833,6 +9810,9 @@
|
|
|
9833
9810
|
"../src/migrations/1706273488135-promote_to_production_26_01_2024.ts": [
|
|
9834
9811
|
"../node_modules/typeorm/index.d.ts"
|
|
9835
9812
|
],
|
|
9813
|
+
"../src/migrations/1707768053927-shopify-supplier-delete.ts": [
|
|
9814
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9815
|
+
],
|
|
9836
9816
|
"../src/migrations/index.ts": [
|
|
9837
9817
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9838
9818
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10024,7 +10004,6 @@
|
|
|
10024
10004
|
"../node_modules/@types/express-serve-static-core/index.d.ts",
|
|
10025
10005
|
"../node_modules/@types/express/index.d.ts",
|
|
10026
10006
|
"../node_modules/@types/graceful-fs/index.d.ts",
|
|
10027
|
-
"../node_modules/@types/http-errors/index.d.ts",
|
|
10028
10007
|
"../node_modules/@types/istanbul-lib-coverage/index.d.ts",
|
|
10029
10008
|
"../node_modules/@types/istanbul-lib-report/index.d.ts",
|
|
10030
10009
|
"../node_modules/@types/istanbul-reports/index.d.ts",
|
|
@@ -10082,8 +10061,6 @@
|
|
|
10082
10061
|
"../node_modules/@types/prettier/index.d.ts",
|
|
10083
10062
|
"../node_modules/@types/qs/index.d.ts",
|
|
10084
10063
|
"../node_modules/@types/range-parser/index.d.ts",
|
|
10085
|
-
"../node_modules/@types/send/index.d.ts",
|
|
10086
|
-
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts",
|
|
10087
10064
|
"../node_modules/@types/serve-static/index.d.ts",
|
|
10088
10065
|
"../node_modules/@types/stack-utils/index.d.ts",
|
|
10089
10066
|
"../node_modules/@types/yargs-parser/index.d.ts",
|
|
@@ -10734,6 +10711,7 @@
|
|
|
10734
10711
|
"../src/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.ts",
|
|
10735
10712
|
"../src/migrations/1704739930074-test-origin-req.ts",
|
|
10736
10713
|
"../src/migrations/1706273488135-promote_to_production_26_01_2024.ts",
|
|
10714
|
+
"../src/migrations/1707768053927-shopify-supplier-delete.ts",
|
|
10737
10715
|
"../src/migrations/execute/index.ts",
|
|
10738
10716
|
"../src/migrations/index.ts",
|
|
10739
10717
|
"../src/repositories/discount/index.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.160",
|
|
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.160",
|
|
25
|
+
"@reachu/utils": "1.0.160",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -27,7 +27,7 @@ export default class ShopifyConnection extends AuditedModel {
|
|
|
27
27
|
@JoinColumn({ name: 'reseller_id', referencedColumnName: 'id' })
|
|
28
28
|
reseller: User;
|
|
29
29
|
|
|
30
|
-
@ManyToOne(() => User, (user) => user.
|
|
30
|
+
@ManyToOne(() => User, (user) => user.id, { onDelete: 'CASCADE', nullable: true })
|
|
31
31
|
@JoinColumn({ name: 'supplier_id', referencedColumnName: 'id' })
|
|
32
32
|
supplier: User;
|
|
33
33
|
|
package/src/entity/User.ts
CHANGED
|
@@ -169,10 +169,6 @@ export default class User extends AuditedModel {
|
|
|
169
169
|
@JoinColumn()
|
|
170
170
|
shopifyReseller: ShopifyConnection;
|
|
171
171
|
|
|
172
|
-
@OneToOne(() => ShopifyConnection, (connection) => connection.supplier, { eager: true })
|
|
173
|
-
@JoinColumn()
|
|
174
|
-
shopifySupplier: ShopifyConnection;
|
|
175
|
-
|
|
176
172
|
@OneToOne(() => MagentoConnection, (connection) => connection.user, { eager: true })
|
|
177
173
|
@JoinColumn()
|
|
178
174
|
magento: MagentoConnection;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class shopifySupplierDelete1707768053927 implements MigrationInterface {
|
|
4
|
+
name = 'shopifySupplierDelete1707768053927'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`user\` DROP FOREIGN KEY \`FK_bb09b5baeed0eff98b89cb1ff57\``);
|
|
8
|
+
await queryRunner.query(`DROP INDEX \`REL_bb09b5baeed0eff98b89cb1ff5\` ON \`user\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`user\` DROP COLUMN \`shopify_supplier_id\``);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`user\` ADD \`shopify_supplier_id\` int NULL`);
|
|
14
|
+
await queryRunner.query(`CREATE UNIQUE INDEX \`REL_bb09b5baeed0eff98b89cb1ff5\` ON \`user\` (\`shopify_supplier_id\`)`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`user\` ADD CONSTRAINT \`FK_bb09b5baeed0eff98b89cb1ff57\` FOREIGN KEY (\`shopify_supplier_id\`) REFERENCES \`shopify_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|