@reachu/database 1.0.159 → 1.0.161
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 -3
- package/dist/entity/User.js +0 -11
- package/dist/entity/User.js.map +1 -1
- package/dist/entity/WooConnection.js +1 -1
- package/dist/entity/WooConnection.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/migrations/1708027064933-woo-user-delete.d.ts +6 -0
- package/dist/migrations/1708027064933-woo-user-delete.js +33 -0
- package/dist/migrations/1708027064933-woo-user-delete.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +76 -87
- package/package.json +3 -3
- package/src/entity/ShopifyConnection.ts +1 -1
- package/src/entity/User.ts +0 -8
- package/src/entity/WooConnection.ts +1 -1
- package/src/migrations/1707768053927-shopify-supplier-delete.ts +18 -0
- package/src/migrations/1708027064933-woo-user-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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E,IAAI,EAAE,CAAC;IAC9F,oBAAU,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,cAAI;mDAAC;AAIf;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,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
|
@@ -5,7 +5,6 @@ import Courier from './Courier';
|
|
|
5
5
|
import FlatRate from './FlatRate';
|
|
6
6
|
import ShippingPackage from './ShippingPackage';
|
|
7
7
|
import Check from './Check';
|
|
8
|
-
import WooConnection from './WooConnection';
|
|
9
8
|
import Business from './Business';
|
|
10
9
|
import ShopifyConnection from './ShopifyConnection';
|
|
11
10
|
import ApiCredential from './ApiCredential';
|
|
@@ -57,9 +56,7 @@ export default class User extends AuditedModel {
|
|
|
57
56
|
courier: Courier;
|
|
58
57
|
flatRate: FlatRate;
|
|
59
58
|
settings: UserSettings;
|
|
60
|
-
woo: WooConnection;
|
|
61
59
|
shopifyReseller: ShopifyConnection;
|
|
62
|
-
shopifySupplier: ShopifyConnection;
|
|
63
60
|
magento: MagentoConnection;
|
|
64
61
|
shippingPackage: ShippingPackage;
|
|
65
62
|
termsAndConditions: boolean;
|
package/dist/entity/User.js
CHANGED
|
@@ -20,7 +20,6 @@ const Courier_1 = __importDefault(require("./Courier"));
|
|
|
20
20
|
const FlatRate_1 = __importDefault(require("./FlatRate"));
|
|
21
21
|
const ShippingPackage_1 = __importDefault(require("./ShippingPackage"));
|
|
22
22
|
const Check_1 = __importDefault(require("./Check"));
|
|
23
|
-
const WooConnection_1 = __importDefault(require("./WooConnection"));
|
|
24
23
|
const Business_1 = __importDefault(require("./Business"));
|
|
25
24
|
const ShopifyConnection_1 = __importDefault(require("./ShopifyConnection"));
|
|
26
25
|
const logger_1 = require("@reachu/logger");
|
|
@@ -201,21 +200,11 @@ __decorate([
|
|
|
201
200
|
typeorm_1.JoinColumn(),
|
|
202
201
|
__metadata("design:type", UserSettings_1.default)
|
|
203
202
|
], User.prototype, "settings", void 0);
|
|
204
|
-
__decorate([
|
|
205
|
-
typeorm_1.OneToOne(() => WooConnection_1.default, { eager: true }),
|
|
206
|
-
typeorm_1.JoinColumn(),
|
|
207
|
-
__metadata("design:type", WooConnection_1.default)
|
|
208
|
-
], User.prototype, "woo", void 0);
|
|
209
203
|
__decorate([
|
|
210
204
|
typeorm_1.OneToOne(() => ShopifyConnection_1.default, (connection) => connection.reseller, { eager: true }),
|
|
211
205
|
typeorm_1.JoinColumn(),
|
|
212
206
|
__metadata("design:type", ShopifyConnection_1.default)
|
|
213
207
|
], 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
208
|
__decorate([
|
|
220
209
|
typeorm_1.OneToOne(() => MagentoConnection_entity_1.MagentoConnection, (connection) => connection.user, { eager: true }),
|
|
221
210
|
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;
|
|
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;AAE5B,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;IA8N5C,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,WAAwC;QACrE,eAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;QACzC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,EAAE;QACrB,OAAO,iBAAiB,EA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I,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;AA5NV,IAAI;IADxB,gBAAM,EAAE;GACY,IAAI,CAsOxB;kBAtOoB,IAAI"}
|
|
@@ -41,7 +41,7 @@ __decorate([
|
|
|
41
41
|
__metadata("design:type", Boolean)
|
|
42
42
|
], WooConnection.prototype, "issuplier", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
typeorm_1.ManyToOne(() => User_1.default, (user) => user.
|
|
44
|
+
typeorm_1.ManyToOne(() => User_1.default, (user) => user.id, { onDelete: 'CASCADE' }),
|
|
45
45
|
typeorm_1.JoinColumn(),
|
|
46
46
|
__metadata("design:type", User_1.default)
|
|
47
47
|
], WooConnection.prototype, "user", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WooConnection.js","sourceRoot":"","sources":["../../src/entity/WooConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAwF;AACxF,kDAA0B;AAG1B,IAAqB,aAAa,GAAlC,MAAqB,aAAa;CAsBjC,CAAA;AApBC;IADC,gCAAsB,EAAE;;yCACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;2CACL;AAGb;IADC,gBAAM,CAAC,SAAS,CAAC;;kDACE;AAGpB;IADC,gBAAM,CAAC,SAAS,CAAC;;qDACK;AAGvB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDAClC;AAIpB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"WooConnection.js","sourceRoot":"","sources":["../../src/entity/WooConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAwF;AACxF,kDAA0B;AAG1B,IAAqB,aAAa,GAAlC,MAAqB,aAAa;CAsBjC,CAAA;AApBC;IADC,gCAAsB,EAAE;;yCACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;2CACL;AAGb;IADC,gBAAM,CAAC,SAAS,CAAC;;kDACE;AAGpB;IADC,gBAAM,CAAC,SAAS,CAAC;;qDACK;AAGvB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDAClC;AAIpB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,oBAAU,EAAE;8BACP,cAAI;2CAAC;AArBQ,aAAa;IADjC,gBAAM,EAAE;GACY,aAAa,CAsBjC;kBAtBoB,aAAa"}
|
|
@@ -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"}
|
|
@@ -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.wooUserDelete1708027064933 = void 0;
|
|
13
|
+
class wooUserDelete1708027064933 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'wooUserDelete1708027064933';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`ALTER TABLE \`user\` DROP FOREIGN KEY \`FK_c9bd34a984ea3ad2570defd876a\``);
|
|
20
|
+
yield queryRunner.query(`DROP INDEX \`REL_c9bd34a984ea3ad2570defd876\` ON \`user\``);
|
|
21
|
+
yield queryRunner.query(`ALTER TABLE \`user\` DROP COLUMN \`woo_id\``);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
down(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
yield queryRunner.query(`ALTER TABLE \`user\` ADD \`woo_id\` int NULL`);
|
|
27
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`REL_c9bd34a984ea3ad2570defd876\` ON \`user\` (\`woo_id\`)`);
|
|
28
|
+
yield queryRunner.query(`ALTER TABLE \`user\` ADD CONSTRAINT \`FK_c9bd34a984ea3ad2570defd876a\` FOREIGN KEY (\`woo_id\`) REFERENCES \`woo_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.wooUserDelete1708027064933 = wooUserDelete1708027064933;
|
|
33
|
+
//# sourceMappingURL=1708027064933-woo-user-delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1708027064933-woo-user-delete.js","sourceRoot":"","sources":["../../src/migrations/1708027064933-woo-user-delete.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,0BAA0B;IAAvC;QACI,SAAI,GAAG,4BAA4B,CAAA;IAcvC,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,6CAA6C,CAAC,CAAC;QAC3E,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;YACxE,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAC;YAC3G,MAAM,WAAW,CAAC,KAAK,CAAC,+KAA+K,CAAC,CAAC;QAC7M,CAAC;KAAA;CAEJ;AAfD,gEAeC"}
|
|
@@ -1962,7 +1962,7 @@
|
|
|
1962
1962
|
"affectsGlobalScope": false
|
|
1963
1963
|
},
|
|
1964
1964
|
"../src/entity/wooconnection.ts": {
|
|
1965
|
-
"version": "
|
|
1965
|
+
"version": "f646c151d224ad73d0f5a6ce4d2000ce65837cb1f1c80f2895d27ccbebb5e936",
|
|
1966
1966
|
"signature": "49d6905bbefd95b0be1cbe7bf5b603567da9eb45a122309dd19d57b9b61bf98a",
|
|
1967
1967
|
"affectsGlobalScope": false
|
|
1968
1968
|
},
|
|
@@ -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": "3933d4ed361a456ff24961b9ae5db164ee428775bfc526f5a739a48c3abcd97e",
|
|
2586
|
+
"signature": "9c9bb684b0c6c7b989606d6eb6599dc4359f0fc608adb1130938b50fa67ec259",
|
|
2602
2587
|
"affectsGlobalScope": false
|
|
2603
2588
|
},
|
|
2604
2589
|
"../src/entity/apicredential.ts": {
|
|
@@ -3706,29 +3691,39 @@
|
|
|
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
|
+
},
|
|
3699
|
+
"../src/migrations/1708027064933-woo-user-delete.ts": {
|
|
3700
|
+
"version": "2846084c7341ae2b1496e17e45e68f7c7def72605f959eadada107b318c32d81",
|
|
3701
|
+
"signature": "ff6ad2ee862922eb10effdd0fc84f84dff4f2c44a3c8d9751cceb8d6089ebfc6",
|
|
3702
|
+
"affectsGlobalScope": false
|
|
3703
|
+
},
|
|
3709
3704
|
"../src/migrations/execute/index.ts": {
|
|
3710
3705
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3711
3706
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3712
3707
|
"affectsGlobalScope": false
|
|
3713
3708
|
},
|
|
3714
3709
|
"../node_modules/@babel/types/lib/index.d.ts": {
|
|
3715
|
-
"version": "
|
|
3716
|
-
"signature": "
|
|
3710
|
+
"version": "3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f",
|
|
3711
|
+
"signature": "3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f",
|
|
3717
3712
|
"affectsGlobalScope": false
|
|
3718
3713
|
},
|
|
3719
3714
|
"../node_modules/@types/babel__generator/index.d.ts": {
|
|
3720
|
-
"version": "
|
|
3721
|
-
"signature": "
|
|
3715
|
+
"version": "cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb",
|
|
3716
|
+
"signature": "cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb",
|
|
3722
3717
|
"affectsGlobalScope": false
|
|
3723
3718
|
},
|
|
3724
3719
|
"../node_modules/@babel/parser/typings/babel-parser.d.ts": {
|
|
3725
|
-
"version": "
|
|
3726
|
-
"signature": "
|
|
3720
|
+
"version": "b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679",
|
|
3721
|
+
"signature": "b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679",
|
|
3727
3722
|
"affectsGlobalScope": false
|
|
3728
3723
|
},
|
|
3729
3724
|
"../node_modules/@types/babel__template/index.d.ts": {
|
|
3730
|
-
"version": "
|
|
3731
|
-
"signature": "
|
|
3725
|
+
"version": "93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9",
|
|
3726
|
+
"signature": "93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9",
|
|
3732
3727
|
"affectsGlobalScope": false
|
|
3733
3728
|
},
|
|
3734
3729
|
"../node_modules/@types/babel__traverse/index.d.ts": {
|
|
@@ -3737,28 +3732,28 @@
|
|
|
3737
3732
|
"affectsGlobalScope": false
|
|
3738
3733
|
},
|
|
3739
3734
|
"../node_modules/@types/babel__core/index.d.ts": {
|
|
3740
|
-
"version": "
|
|
3741
|
-
"signature": "
|
|
3735
|
+
"version": "b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb",
|
|
3736
|
+
"signature": "b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb",
|
|
3742
3737
|
"affectsGlobalScope": false
|
|
3743
3738
|
},
|
|
3744
3739
|
"../node_modules/@types/graceful-fs/index.d.ts": {
|
|
3745
|
-
"version": "
|
|
3746
|
-
"signature": "
|
|
3740
|
+
"version": "bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e",
|
|
3741
|
+
"signature": "bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e",
|
|
3747
3742
|
"affectsGlobalScope": false
|
|
3748
3743
|
},
|
|
3749
3744
|
"../node_modules/@types/istanbul-lib-coverage/index.d.ts": {
|
|
3750
|
-
"version": "
|
|
3751
|
-
"signature": "
|
|
3745
|
+
"version": "8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215",
|
|
3746
|
+
"signature": "8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215",
|
|
3752
3747
|
"affectsGlobalScope": false
|
|
3753
3748
|
},
|
|
3754
3749
|
"../node_modules/@types/istanbul-lib-report/index.d.ts": {
|
|
3755
|
-
"version": "
|
|
3756
|
-
"signature": "
|
|
3750
|
+
"version": "7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee",
|
|
3751
|
+
"signature": "7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee",
|
|
3757
3752
|
"affectsGlobalScope": false
|
|
3758
3753
|
},
|
|
3759
3754
|
"../node_modules/@types/istanbul-reports/index.d.ts": {
|
|
3760
|
-
"version": "
|
|
3761
|
-
"signature": "
|
|
3755
|
+
"version": "f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0",
|
|
3756
|
+
"signature": "f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0",
|
|
3762
3757
|
"affectsGlobalScope": false
|
|
3763
3758
|
},
|
|
3764
3759
|
"../node_modules/jest-diff/build/cleanupsemantic.d.ts": {
|
|
@@ -3802,28 +3797,28 @@
|
|
|
3802
3797
|
"affectsGlobalScope": true
|
|
3803
3798
|
},
|
|
3804
3799
|
"../node_modules/@types/json-schema/index.d.ts": {
|
|
3805
|
-
"version": "
|
|
3806
|
-
"signature": "
|
|
3800
|
+
"version": "f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6",
|
|
3801
|
+
"signature": "f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6",
|
|
3807
3802
|
"affectsGlobalScope": false
|
|
3808
3803
|
},
|
|
3809
3804
|
"../node_modules/@types/prettier/index.d.ts": {
|
|
3810
|
-
"version": "
|
|
3811
|
-
"signature": "
|
|
3805
|
+
"version": "bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621",
|
|
3806
|
+
"signature": "bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621",
|
|
3812
3807
|
"affectsGlobalScope": false
|
|
3813
3808
|
},
|
|
3814
3809
|
"../node_modules/@types/stack-utils/index.d.ts": {
|
|
3815
|
-
"version": "
|
|
3816
|
-
"signature": "
|
|
3810
|
+
"version": "b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298",
|
|
3811
|
+
"signature": "b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298",
|
|
3817
3812
|
"affectsGlobalScope": false
|
|
3818
3813
|
},
|
|
3819
3814
|
"../node_modules/@types/yargs-parser/index.d.ts": {
|
|
3820
|
-
"version": "
|
|
3821
|
-
"signature": "
|
|
3815
|
+
"version": "70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e",
|
|
3816
|
+
"signature": "70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e",
|
|
3822
3817
|
"affectsGlobalScope": false
|
|
3823
3818
|
},
|
|
3824
3819
|
"../node_modules/@types/yargs/index.d.ts": {
|
|
3825
|
-
"version": "
|
|
3826
|
-
"signature": "
|
|
3820
|
+
"version": "149ebd778196c03e9c75b630866543501e0e9e62a146c1a17ce91ade4cdfb0ba",
|
|
3821
|
+
"signature": "149ebd778196c03e9c75b630866543501e0e9e62a146c1a17ce91ade4cdfb0ba",
|
|
3827
3822
|
"affectsGlobalScope": false
|
|
3828
3823
|
},
|
|
3829
3824
|
"../node_modules/@types/zen-observable/index.d.ts": {
|
|
@@ -3934,8 +3929,7 @@
|
|
|
3934
3929
|
"../node_modules/@types/node/http.d.ts",
|
|
3935
3930
|
"../node_modules/@types/node/index.d.ts",
|
|
3936
3931
|
"../node_modules/@types/qs/index.d.ts",
|
|
3937
|
-
"../node_modules/@types/range-parser/index.d.ts"
|
|
3938
|
-
"../node_modules/@types/send/index.d.ts"
|
|
3932
|
+
"../node_modules/@types/range-parser/index.d.ts"
|
|
3939
3933
|
],
|
|
3940
3934
|
"../node_modules/@types/express/index.d.ts": [
|
|
3941
3935
|
"../node_modules/@types/body-parser/index.d.ts",
|
|
@@ -4133,14 +4127,7 @@
|
|
|
4133
4127
|
"../node_modules/@types/node/zlib.d.ts": [
|
|
4134
4128
|
"../node_modules/@types/node/stream.d.ts"
|
|
4135
4129
|
],
|
|
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
4130
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
4143
|
-
"../node_modules/@types/http-errors/index.d.ts",
|
|
4144
4131
|
"../node_modules/@types/mime/index.d.ts",
|
|
4145
4132
|
"../node_modules/@types/node/http.d.ts",
|
|
4146
4133
|
"../node_modules/@types/node/index.d.ts"
|
|
@@ -6842,6 +6829,12 @@
|
|
|
6842
6829
|
"../src/migrations/1706273488135-promote_to_production_26_01_2024.ts": [
|
|
6843
6830
|
"../node_modules/typeorm/index.d.ts"
|
|
6844
6831
|
],
|
|
6832
|
+
"../src/migrations/1707768053927-shopify-supplier-delete.ts": [
|
|
6833
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6834
|
+
],
|
|
6835
|
+
"../src/migrations/1708027064933-woo-user-delete.ts": [
|
|
6836
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6837
|
+
],
|
|
6845
6838
|
"../src/migrations/execute/index.ts": [
|
|
6846
6839
|
"../src/config/connect.ts"
|
|
6847
6840
|
],
|
|
@@ -7093,8 +7086,7 @@
|
|
|
7093
7086
|
"../node_modules/@types/node/http.d.ts",
|
|
7094
7087
|
"../node_modules/@types/node/index.d.ts",
|
|
7095
7088
|
"../node_modules/@types/qs/index.d.ts",
|
|
7096
|
-
"../node_modules/@types/range-parser/index.d.ts"
|
|
7097
|
-
"../node_modules/@types/send/index.d.ts"
|
|
7089
|
+
"../node_modules/@types/range-parser/index.d.ts"
|
|
7098
7090
|
],
|
|
7099
7091
|
"../node_modules/@types/express/index.d.ts": [
|
|
7100
7092
|
"../node_modules/@types/body-parser/index.d.ts",
|
|
@@ -7292,14 +7284,7 @@
|
|
|
7292
7284
|
"../node_modules/@types/node/zlib.d.ts": [
|
|
7293
7285
|
"../node_modules/@types/node/stream.d.ts"
|
|
7294
7286
|
],
|
|
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
7287
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
7302
|
-
"../node_modules/@types/http-errors/index.d.ts",
|
|
7303
7288
|
"../node_modules/@types/mime/index.d.ts",
|
|
7304
7289
|
"../node_modules/@types/node/http.d.ts",
|
|
7305
7290
|
"../node_modules/@types/node/index.d.ts"
|
|
@@ -9336,8 +9321,7 @@
|
|
|
9336
9321
|
"../src/entity/shippingpackage.ts",
|
|
9337
9322
|
"../src/entity/shopifyconnection.ts",
|
|
9338
9323
|
"../src/entity/userrole.ts",
|
|
9339
|
-
"../src/entity/usersettings.ts"
|
|
9340
|
-
"../src/entity/wooconnection.ts"
|
|
9324
|
+
"../src/entity/usersettings.ts"
|
|
9341
9325
|
],
|
|
9342
9326
|
"../src/entity/userchannelapikey.ts": [
|
|
9343
9327
|
"../src/entity/auditedmodel.ts",
|
|
@@ -9833,6 +9817,12 @@
|
|
|
9833
9817
|
"../src/migrations/1706273488135-promote_to_production_26_01_2024.ts": [
|
|
9834
9818
|
"../node_modules/typeorm/index.d.ts"
|
|
9835
9819
|
],
|
|
9820
|
+
"../src/migrations/1707768053927-shopify-supplier-delete.ts": [
|
|
9821
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9822
|
+
],
|
|
9823
|
+
"../src/migrations/1708027064933-woo-user-delete.ts": [
|
|
9824
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9825
|
+
],
|
|
9836
9826
|
"../src/migrations/index.ts": [
|
|
9837
9827
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9838
9828
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10024,7 +10014,6 @@
|
|
|
10024
10014
|
"../node_modules/@types/express-serve-static-core/index.d.ts",
|
|
10025
10015
|
"../node_modules/@types/express/index.d.ts",
|
|
10026
10016
|
"../node_modules/@types/graceful-fs/index.d.ts",
|
|
10027
|
-
"../node_modules/@types/http-errors/index.d.ts",
|
|
10028
10017
|
"../node_modules/@types/istanbul-lib-coverage/index.d.ts",
|
|
10029
10018
|
"../node_modules/@types/istanbul-lib-report/index.d.ts",
|
|
10030
10019
|
"../node_modules/@types/istanbul-reports/index.d.ts",
|
|
@@ -10082,8 +10071,6 @@
|
|
|
10082
10071
|
"../node_modules/@types/prettier/index.d.ts",
|
|
10083
10072
|
"../node_modules/@types/qs/index.d.ts",
|
|
10084
10073
|
"../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
10074
|
"../node_modules/@types/serve-static/index.d.ts",
|
|
10088
10075
|
"../node_modules/@types/stack-utils/index.d.ts",
|
|
10089
10076
|
"../node_modules/@types/yargs-parser/index.d.ts",
|
|
@@ -10734,6 +10721,8 @@
|
|
|
10734
10721
|
"../src/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.ts",
|
|
10735
10722
|
"../src/migrations/1704739930074-test-origin-req.ts",
|
|
10736
10723
|
"../src/migrations/1706273488135-promote_to_production_26_01_2024.ts",
|
|
10724
|
+
"../src/migrations/1707768053927-shopify-supplier-delete.ts",
|
|
10725
|
+
"../src/migrations/1708027064933-woo-user-delete.ts",
|
|
10737
10726
|
"../src/migrations/execute/index.ts",
|
|
10738
10727
|
"../src/migrations/index.ts",
|
|
10739
10728
|
"../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.161",
|
|
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.161",
|
|
25
|
+
"@reachu/utils": "1.0.161",
|
|
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
|
@@ -161,18 +161,10 @@ export default class User extends AuditedModel {
|
|
|
161
161
|
@JoinColumn()
|
|
162
162
|
settings: UserSettings;
|
|
163
163
|
|
|
164
|
-
@OneToOne(() => WooConnection, { eager: true })
|
|
165
|
-
@JoinColumn()
|
|
166
|
-
woo: WooConnection;
|
|
167
|
-
|
|
168
164
|
@OneToOne(() => ShopifyConnection, (connection) => connection.reseller, { eager: true })
|
|
169
165
|
@JoinColumn()
|
|
170
166
|
shopifyReseller: ShopifyConnection;
|
|
171
167
|
|
|
172
|
-
@OneToOne(() => ShopifyConnection, (connection) => connection.supplier, { eager: true })
|
|
173
|
-
@JoinColumn()
|
|
174
|
-
shopifySupplier: ShopifyConnection;
|
|
175
|
-
|
|
176
168
|
@OneToOne(() => MagentoConnection, (connection) => connection.user, { eager: true })
|
|
177
169
|
@JoinColumn()
|
|
178
170
|
magento: MagentoConnection;
|
|
@@ -21,7 +21,7 @@ export default class WooConnection {
|
|
|
21
21
|
@Column('boolean', { nullable: true, default: false })
|
|
22
22
|
issuplier?: boolean;
|
|
23
23
|
|
|
24
|
-
@ManyToOne(() => User, (user) => user.
|
|
24
|
+
@ManyToOne(() => User, (user) => user.id, { onDelete: 'CASCADE' })
|
|
25
25
|
@JoinColumn()
|
|
26
26
|
user: User;
|
|
27
27
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class wooUserDelete1708027064933 implements MigrationInterface {
|
|
4
|
+
name = 'wooUserDelete1708027064933'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`user\` DROP FOREIGN KEY \`FK_c9bd34a984ea3ad2570defd876a\``);
|
|
8
|
+
await queryRunner.query(`DROP INDEX \`REL_c9bd34a984ea3ad2570defd876\` ON \`user\``);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`user\` DROP COLUMN \`woo_id\``);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`user\` ADD \`woo_id\` int NULL`);
|
|
14
|
+
await queryRunner.query(`CREATE UNIQUE INDEX \`REL_c9bd34a984ea3ad2570defd876\` ON \`user\` (\`woo_id\`)`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`user\` ADD CONSTRAINT \`FK_c9bd34a984ea3ad2570defd876a\` FOREIGN KEY (\`woo_id\`) REFERENCES \`woo_connection\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|