@reachu/database 1.0.165 → 1.0.166
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/Product.entity.d.ts +1 -0
- package/dist/entity/Product.entity.js +4 -0
- package/dist/entity/Product.entity.js.map +1 -1
- package/dist/helpers/products/storage/search.d.ts +1 -0
- package/dist/migrations/1711640105019-product-brand.d.ts +6 -0
- package/dist/migrations/1711640105019-product-brand.js +31 -0
- package/dist/migrations/1711640105019-product-brand.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +96 -50
- package/package.json +3 -3
- package/src/entity/Product.entity.ts +3 -0
- package/src/migrations/1711640105019-product-brand.ts +16 -0
|
@@ -188,6 +188,10 @@ __decorate([
|
|
|
188
188
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
189
189
|
__metadata("design:type", String)
|
|
190
190
|
], Product.prototype, "originVariantId", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], Product.prototype, "brand", void 0);
|
|
191
195
|
__decorate([
|
|
192
196
|
typeorm_1.OneToOne(() => FlatRate_1.default, { eager: true }),
|
|
193
197
|
typeorm_1.JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Product.entity.js","sourceRoot":"","sources":["../../src/entity/Product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAaiB;AACjB,kDAA0B;AAC1B,gEAAwC;AACxC,wDAAgC;AAChC,kEAA0C;AAC1C,sDAA8B;AAC9B,oDAA4B;AAC5B,wDAAgC;AAChC,0DAAkC;AAClC,wEAAgD;AAChD,2CAAwC;AACxC,qDAAoD;AACpD,iDAAuC;AACvC,yFAAiE;AACjE,mDAAgD;AAChD,0EAAkD;AAClD,wEAAgD;AAGhD,IAAa,OAAO,eAApB,MAAa,OAAQ,SAAQ,sBAAY;
|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C;AAQ7B;IANC,mBAAS,CACR,GAAG,EAAE,CAAC,0BAAgB,EACtB,CAAC,gBAAkC,EAAE,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAChE,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB;IACA,oBAAU,EAAE;;iDACwB;AAGrC;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CAClB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qCACxB;AAMd;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,yBAAe,EAAE,CAAC,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE;QAC/F,OAAO,EAAE,KAAK;KACf,CAAC;IACD,oBAAU,EAAE;;gDACsB;AAGnC;IADC,mBAAS,EAAE;;;;8CAIX;AA3KU,OAAO;IADnB,gBAAM,EAAE;GACI,OAAO,CAmMnB;AAnMY,0BAAO"}
|
|
@@ -34,6 +34,7 @@ export declare const findById: (id: any, loggedUser: any) => Promise<{
|
|
|
34
34
|
origin?: string;
|
|
35
35
|
originId?: string;
|
|
36
36
|
originVariantId?: string;
|
|
37
|
+
brand?: string;
|
|
37
38
|
flatRate: import("../../../entity").FlatRate;
|
|
38
39
|
importedProduct: ImportedProduct;
|
|
39
40
|
totalOrders?: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
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.productBrand1711640105019 = void 0;
|
|
13
|
+
class productBrand1711640105019 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'productBrand1711640105019';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`DROP INDEX \`IDX_7e330764fdf1dc12dd5ba35dec\` ON \`channel_user\``);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`product\` ADD \`brand\` varchar(255) NULL`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`brand\``);
|
|
26
|
+
yield queryRunner.query(`CREATE UNIQUE INDEX \`IDX_7e330764fdf1dc12dd5ba35dec\` ON \`channel_user\` (\`channel_user_settings_id\`)`);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.productBrand1711640105019 = productBrand1711640105019;
|
|
31
|
+
//# sourceMappingURL=1711640105019-product-brand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1711640105019-product-brand.js","sourceRoot":"","sources":["../../src/migrations/1711640105019-product-brand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,yBAAyB;IAAtC;QACI,SAAI,GAAG,2BAA2B,CAAA;IAYtC,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YAC7F,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;QACvF,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACzE,MAAM,WAAW,CAAC,KAAK,CAAC,2GAA2G,CAAC,CAAC;QACzI,CAAC;KAAA;CAEJ;AAbD,8DAaC"}
|
|
@@ -2236,44 +2236,59 @@
|
|
|
2236
2236
|
"signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86",
|
|
2237
2237
|
"affectsGlobalScope": false
|
|
2238
2238
|
},
|
|
2239
|
-
"../node_modules/@types/
|
|
2240
|
-
"version": "
|
|
2241
|
-
"signature": "
|
|
2239
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts": {
|
|
2240
|
+
"version": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
|
|
2241
|
+
"signature": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
|
|
2242
|
+
"affectsGlobalScope": false
|
|
2243
|
+
},
|
|
2244
|
+
"../node_modules/@types/send/index.d.ts": {
|
|
2245
|
+
"version": "b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a",
|
|
2246
|
+
"signature": "b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a",
|
|
2242
2247
|
"affectsGlobalScope": false
|
|
2243
2248
|
},
|
|
2244
2249
|
"../node_modules/@types/qs/index.d.ts": {
|
|
2245
|
-
"version": "
|
|
2246
|
-
"signature": "
|
|
2250
|
+
"version": "dcc9081d68c2ade5c51ac7bf5f37cce630359408e713999269b77f611a30d871",
|
|
2251
|
+
"signature": "dcc9081d68c2ade5c51ac7bf5f37cce630359408e713999269b77f611a30d871",
|
|
2252
|
+
"affectsGlobalScope": false
|
|
2253
|
+
},
|
|
2254
|
+
"../node_modules/@types/range-parser/index.d.ts": {
|
|
2255
|
+
"version": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
|
|
2256
|
+
"signature": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
|
|
2247
2257
|
"affectsGlobalScope": false
|
|
2248
2258
|
},
|
|
2249
2259
|
"../node_modules/@types/express-serve-static-core/index.d.ts": {
|
|
2250
|
-
"version": "
|
|
2251
|
-
"signature": "
|
|
2260
|
+
"version": "50072f976cfa86af1a3044f55cd729d992abe39222d2f6cdf929266c77a42b0b",
|
|
2261
|
+
"signature": "50072f976cfa86af1a3044f55cd729d992abe39222d2f6cdf929266c77a42b0b",
|
|
2252
2262
|
"affectsGlobalScope": true
|
|
2253
2263
|
},
|
|
2264
|
+
"../node_modules/@types/http-errors/index.d.ts": {
|
|
2265
|
+
"version": "b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b",
|
|
2266
|
+
"signature": "b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b",
|
|
2267
|
+
"affectsGlobalScope": false
|
|
2268
|
+
},
|
|
2254
2269
|
"../node_modules/@types/mime/mime.d.ts": {
|
|
2255
|
-
"version": "
|
|
2256
|
-
"signature": "
|
|
2270
|
+
"version": "d2a38ad7bb4676e7fd5d058a08105d81ac232c363ee56be0b401fc277d50dbb1",
|
|
2271
|
+
"signature": "d2a38ad7bb4676e7fd5d058a08105d81ac232c363ee56be0b401fc277d50dbb1",
|
|
2257
2272
|
"affectsGlobalScope": false
|
|
2258
2273
|
},
|
|
2259
2274
|
"../node_modules/@types/mime/index.d.ts": {
|
|
2260
|
-
"version": "
|
|
2261
|
-
"signature": "
|
|
2275
|
+
"version": "2ac2e08e0d0ed266849cb9da521c3be170a8bc111d25eeeb668c7dbf0ac4171a",
|
|
2276
|
+
"signature": "2ac2e08e0d0ed266849cb9da521c3be170a8bc111d25eeeb668c7dbf0ac4171a",
|
|
2262
2277
|
"affectsGlobalScope": false
|
|
2263
2278
|
},
|
|
2264
2279
|
"../node_modules/@types/serve-static/index.d.ts": {
|
|
2265
|
-
"version": "
|
|
2266
|
-
"signature": "
|
|
2280
|
+
"version": "34118be360cdd3381bbebbfd4b093c394460c8fc5df40688d58f45d86ab1448b",
|
|
2281
|
+
"signature": "34118be360cdd3381bbebbfd4b093c394460c8fc5df40688d58f45d86ab1448b",
|
|
2267
2282
|
"affectsGlobalScope": false
|
|
2268
2283
|
},
|
|
2269
2284
|
"../node_modules/@types/connect/index.d.ts": {
|
|
2270
|
-
"version": "
|
|
2271
|
-
"signature": "
|
|
2285
|
+
"version": "104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e",
|
|
2286
|
+
"signature": "104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e",
|
|
2272
2287
|
"affectsGlobalScope": false
|
|
2273
2288
|
},
|
|
2274
2289
|
"../node_modules/@types/body-parser/index.d.ts": {
|
|
2275
|
-
"version": "
|
|
2276
|
-
"signature": "
|
|
2290
|
+
"version": "cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c",
|
|
2291
|
+
"signature": "cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c",
|
|
2277
2292
|
"affectsGlobalScope": false
|
|
2278
2293
|
},
|
|
2279
2294
|
"../node_modules/@types/express/index.d.ts": {
|
|
@@ -2512,8 +2527,8 @@
|
|
|
2512
2527
|
"affectsGlobalScope": false
|
|
2513
2528
|
},
|
|
2514
2529
|
"../src/entity/product.entity.ts": {
|
|
2515
|
-
"version": "
|
|
2516
|
-
"signature": "
|
|
2530
|
+
"version": "a94b8f486d87e80a9cfa33a4022e64d1e167ca13867fbbaef92a10b04b318ecc",
|
|
2531
|
+
"signature": "cdea069ff09f8d9332ed1da97af78c14dc733adaf1d77be0cd3e76056692ef0a",
|
|
2517
2532
|
"affectsGlobalScope": false
|
|
2518
2533
|
},
|
|
2519
2534
|
"../src/entity/paymentshopify.ts": {
|
|
@@ -2993,7 +3008,7 @@
|
|
|
2993
3008
|
},
|
|
2994
3009
|
"../src/helpers/products/storage/search.ts": {
|
|
2995
3010
|
"version": "86559e9248f12404f40e1178ba1f06be96eb2092c10fad478dbef4196a0f6df3",
|
|
2996
|
-
"signature": "
|
|
3011
|
+
"signature": "73a67f7a95be0997f573595ae5ad555d2765d061d903cbcf311178491cf4ac73",
|
|
2997
3012
|
"affectsGlobalScope": false
|
|
2998
3013
|
},
|
|
2999
3014
|
"../src/helpers/products/storage/index.ts": {
|
|
@@ -3716,29 +3731,34 @@
|
|
|
3716
3731
|
"signature": "9f5612345e6e3183640df5d3fe9f236c85556134a3b67da39f6adf03c22fd69a",
|
|
3717
3732
|
"affectsGlobalScope": false
|
|
3718
3733
|
},
|
|
3734
|
+
"../src/migrations/1711640105019-product-brand.ts": {
|
|
3735
|
+
"version": "4428bc82b11ed6125f04c778b7fa9d506721dbed69cb604e758c383ddcdd645e",
|
|
3736
|
+
"signature": "a425f51ebe38ae70a413ff58cff0e43efa21ca0485060f63c634255eb175fea6",
|
|
3737
|
+
"affectsGlobalScope": false
|
|
3738
|
+
},
|
|
3719
3739
|
"../src/migrations/execute/index.ts": {
|
|
3720
3740
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3721
3741
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
3722
3742
|
"affectsGlobalScope": false
|
|
3723
3743
|
},
|
|
3724
3744
|
"../node_modules/@babel/types/lib/index.d.ts": {
|
|
3725
|
-
"version": "
|
|
3726
|
-
"signature": "
|
|
3745
|
+
"version": "923c136dcbf20f140c369078a7eb56f6697889d104397d694f70e21dd08b1810",
|
|
3746
|
+
"signature": "923c136dcbf20f140c369078a7eb56f6697889d104397d694f70e21dd08b1810",
|
|
3727
3747
|
"affectsGlobalScope": false
|
|
3728
3748
|
},
|
|
3729
3749
|
"../node_modules/@types/babel__generator/index.d.ts": {
|
|
3730
|
-
"version": "
|
|
3731
|
-
"signature": "
|
|
3750
|
+
"version": "2c8e55457aaf4902941dfdba4061935922e8ee6e120539c9801cd7b400fae050",
|
|
3751
|
+
"signature": "2c8e55457aaf4902941dfdba4061935922e8ee6e120539c9801cd7b400fae050",
|
|
3732
3752
|
"affectsGlobalScope": false
|
|
3733
3753
|
},
|
|
3734
3754
|
"../node_modules/@babel/parser/typings/babel-parser.d.ts": {
|
|
3735
|
-
"version": "
|
|
3736
|
-
"signature": "
|
|
3755
|
+
"version": "8041cfce439ff29d339742389de04c136e3029d6b1817f07b2d7fcbfb7534990",
|
|
3756
|
+
"signature": "8041cfce439ff29d339742389de04c136e3029d6b1817f07b2d7fcbfb7534990",
|
|
3737
3757
|
"affectsGlobalScope": false
|
|
3738
3758
|
},
|
|
3739
3759
|
"../node_modules/@types/babel__template/index.d.ts": {
|
|
3740
|
-
"version": "
|
|
3741
|
-
"signature": "
|
|
3760
|
+
"version": "670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed",
|
|
3761
|
+
"signature": "670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed",
|
|
3742
3762
|
"affectsGlobalScope": false
|
|
3743
3763
|
},
|
|
3744
3764
|
"../node_modules/@types/babel__traverse/index.d.ts": {
|
|
@@ -3747,28 +3767,28 @@
|
|
|
3747
3767
|
"affectsGlobalScope": false
|
|
3748
3768
|
},
|
|
3749
3769
|
"../node_modules/@types/babel__core/index.d.ts": {
|
|
3750
|
-
"version": "
|
|
3751
|
-
"signature": "
|
|
3770
|
+
"version": "069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9",
|
|
3771
|
+
"signature": "069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9",
|
|
3752
3772
|
"affectsGlobalScope": false
|
|
3753
3773
|
},
|
|
3754
3774
|
"../node_modules/@types/graceful-fs/index.d.ts": {
|
|
3755
|
-
"version": "
|
|
3756
|
-
"signature": "
|
|
3775
|
+
"version": "afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5",
|
|
3776
|
+
"signature": "afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5",
|
|
3757
3777
|
"affectsGlobalScope": false
|
|
3758
3778
|
},
|
|
3759
3779
|
"../node_modules/@types/istanbul-lib-coverage/index.d.ts": {
|
|
3760
|
-
"version": "
|
|
3761
|
-
"signature": "
|
|
3780
|
+
"version": "035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245",
|
|
3781
|
+
"signature": "035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245",
|
|
3762
3782
|
"affectsGlobalScope": false
|
|
3763
3783
|
},
|
|
3764
3784
|
"../node_modules/@types/istanbul-lib-report/index.d.ts": {
|
|
3765
|
-
"version": "
|
|
3766
|
-
"signature": "
|
|
3785
|
+
"version": "a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54",
|
|
3786
|
+
"signature": "a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54",
|
|
3767
3787
|
"affectsGlobalScope": false
|
|
3768
3788
|
},
|
|
3769
3789
|
"../node_modules/@types/istanbul-reports/index.d.ts": {
|
|
3770
|
-
"version": "
|
|
3771
|
-
"signature": "
|
|
3790
|
+
"version": "5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434",
|
|
3791
|
+
"signature": "5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434",
|
|
3772
3792
|
"affectsGlobalScope": false
|
|
3773
3793
|
},
|
|
3774
3794
|
"../node_modules/jest-diff/build/cleanupsemantic.d.ts": {
|
|
@@ -3812,28 +3832,28 @@
|
|
|
3812
3832
|
"affectsGlobalScope": true
|
|
3813
3833
|
},
|
|
3814
3834
|
"../node_modules/@types/json-schema/index.d.ts": {
|
|
3815
|
-
"version": "
|
|
3816
|
-
"signature": "
|
|
3835
|
+
"version": "f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1",
|
|
3836
|
+
"signature": "f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1",
|
|
3817
3837
|
"affectsGlobalScope": false
|
|
3818
3838
|
},
|
|
3819
3839
|
"../node_modules/@types/prettier/index.d.ts": {
|
|
3820
|
-
"version": "
|
|
3821
|
-
"signature": "
|
|
3840
|
+
"version": "d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e",
|
|
3841
|
+
"signature": "d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e",
|
|
3822
3842
|
"affectsGlobalScope": false
|
|
3823
3843
|
},
|
|
3824
3844
|
"../node_modules/@types/stack-utils/index.d.ts": {
|
|
3825
|
-
"version": "
|
|
3826
|
-
"signature": "
|
|
3845
|
+
"version": "ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66",
|
|
3846
|
+
"signature": "ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66",
|
|
3827
3847
|
"affectsGlobalScope": false
|
|
3828
3848
|
},
|
|
3829
3849
|
"../node_modules/@types/yargs-parser/index.d.ts": {
|
|
3830
|
-
"version": "
|
|
3831
|
-
"signature": "
|
|
3850
|
+
"version": "bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960",
|
|
3851
|
+
"signature": "bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960",
|
|
3832
3852
|
"affectsGlobalScope": false
|
|
3833
3853
|
},
|
|
3834
3854
|
"../node_modules/@types/yargs/index.d.ts": {
|
|
3835
|
-
"version": "
|
|
3836
|
-
"signature": "
|
|
3855
|
+
"version": "c3e5b75e1af87b8e67e12e21332e708f7eccee6aac6261cfe98ca36652cdcb53",
|
|
3856
|
+
"signature": "c3e5b75e1af87b8e67e12e21332e708f7eccee6aac6261cfe98ca36652cdcb53",
|
|
3837
3857
|
"affectsGlobalScope": false
|
|
3838
3858
|
},
|
|
3839
3859
|
"../node_modules/@types/zen-observable/index.d.ts": {
|
|
@@ -3944,7 +3964,8 @@
|
|
|
3944
3964
|
"../node_modules/@types/node/http.d.ts",
|
|
3945
3965
|
"../node_modules/@types/node/index.d.ts",
|
|
3946
3966
|
"../node_modules/@types/qs/index.d.ts",
|
|
3947
|
-
"../node_modules/@types/range-parser/index.d.ts"
|
|
3967
|
+
"../node_modules/@types/range-parser/index.d.ts",
|
|
3968
|
+
"../node_modules/@types/send/index.d.ts"
|
|
3948
3969
|
],
|
|
3949
3970
|
"../node_modules/@types/express/index.d.ts": [
|
|
3950
3971
|
"../node_modules/@types/body-parser/index.d.ts",
|
|
@@ -4142,7 +4163,14 @@
|
|
|
4142
4163
|
"../node_modules/@types/node/zlib.d.ts": [
|
|
4143
4164
|
"../node_modules/@types/node/stream.d.ts"
|
|
4144
4165
|
],
|
|
4166
|
+
"../node_modules/@types/send/index.d.ts": [
|
|
4167
|
+
"../node_modules/@types/node/fs.d.ts",
|
|
4168
|
+
"../node_modules/@types/node/index.d.ts",
|
|
4169
|
+
"../node_modules/@types/node/stream.d.ts",
|
|
4170
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
|
|
4171
|
+
],
|
|
4145
4172
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
4173
|
+
"../node_modules/@types/http-errors/index.d.ts",
|
|
4146
4174
|
"../node_modules/@types/mime/index.d.ts",
|
|
4147
4175
|
"../node_modules/@types/node/http.d.ts",
|
|
4148
4176
|
"../node_modules/@types/node/index.d.ts"
|
|
@@ -6863,6 +6891,9 @@
|
|
|
6863
6891
|
"../src/migrations/1711562145337-user-channel-settings.ts": [
|
|
6864
6892
|
"../node_modules/typeorm/index.d.ts"
|
|
6865
6893
|
],
|
|
6894
|
+
"../src/migrations/1711640105019-product-brand.ts": [
|
|
6895
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6896
|
+
],
|
|
6866
6897
|
"../src/migrations/execute/index.ts": [
|
|
6867
6898
|
"../src/config/connect.ts"
|
|
6868
6899
|
],
|
|
@@ -7115,7 +7146,8 @@
|
|
|
7115
7146
|
"../node_modules/@types/node/http.d.ts",
|
|
7116
7147
|
"../node_modules/@types/node/index.d.ts",
|
|
7117
7148
|
"../node_modules/@types/qs/index.d.ts",
|
|
7118
|
-
"../node_modules/@types/range-parser/index.d.ts"
|
|
7149
|
+
"../node_modules/@types/range-parser/index.d.ts",
|
|
7150
|
+
"../node_modules/@types/send/index.d.ts"
|
|
7119
7151
|
],
|
|
7120
7152
|
"../node_modules/@types/express/index.d.ts": [
|
|
7121
7153
|
"../node_modules/@types/body-parser/index.d.ts",
|
|
@@ -7313,7 +7345,14 @@
|
|
|
7313
7345
|
"../node_modules/@types/node/zlib.d.ts": [
|
|
7314
7346
|
"../node_modules/@types/node/stream.d.ts"
|
|
7315
7347
|
],
|
|
7348
|
+
"../node_modules/@types/send/index.d.ts": [
|
|
7349
|
+
"../node_modules/@types/node/fs.d.ts",
|
|
7350
|
+
"../node_modules/@types/node/index.d.ts",
|
|
7351
|
+
"../node_modules/@types/node/stream.d.ts",
|
|
7352
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts"
|
|
7353
|
+
],
|
|
7316
7354
|
"../node_modules/@types/serve-static/index.d.ts": [
|
|
7355
|
+
"../node_modules/@types/http-errors/index.d.ts",
|
|
7317
7356
|
"../node_modules/@types/mime/index.d.ts",
|
|
7318
7357
|
"../node_modules/@types/node/http.d.ts",
|
|
7319
7358
|
"../node_modules/@types/node/index.d.ts"
|
|
@@ -9864,6 +9903,9 @@
|
|
|
9864
9903
|
"../src/migrations/1711562145337-user-channel-settings.ts": [
|
|
9865
9904
|
"../node_modules/typeorm/index.d.ts"
|
|
9866
9905
|
],
|
|
9906
|
+
"../src/migrations/1711640105019-product-brand.ts": [
|
|
9907
|
+
"../node_modules/typeorm/index.d.ts"
|
|
9908
|
+
],
|
|
9867
9909
|
"../src/migrations/index.ts": [
|
|
9868
9910
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
9869
9911
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -10056,6 +10098,7 @@
|
|
|
10056
10098
|
"../node_modules/@types/express-serve-static-core/index.d.ts",
|
|
10057
10099
|
"../node_modules/@types/express/index.d.ts",
|
|
10058
10100
|
"../node_modules/@types/graceful-fs/index.d.ts",
|
|
10101
|
+
"../node_modules/@types/http-errors/index.d.ts",
|
|
10059
10102
|
"../node_modules/@types/istanbul-lib-coverage/index.d.ts",
|
|
10060
10103
|
"../node_modules/@types/istanbul-lib-report/index.d.ts",
|
|
10061
10104
|
"../node_modules/@types/istanbul-reports/index.d.ts",
|
|
@@ -10113,6 +10156,8 @@
|
|
|
10113
10156
|
"../node_modules/@types/prettier/index.d.ts",
|
|
10114
10157
|
"../node_modules/@types/qs/index.d.ts",
|
|
10115
10158
|
"../node_modules/@types/range-parser/index.d.ts",
|
|
10159
|
+
"../node_modules/@types/send/index.d.ts",
|
|
10160
|
+
"../node_modules/@types/send/node_modules/@types/mime/index.d.ts",
|
|
10116
10161
|
"../node_modules/@types/serve-static/index.d.ts",
|
|
10117
10162
|
"../node_modules/@types/stack-utils/index.d.ts",
|
|
10118
10163
|
"../node_modules/@types/yargs-parser/index.d.ts",
|
|
@@ -10768,6 +10813,7 @@
|
|
|
10768
10813
|
"../src/migrations/1708027064933-woo-user-delete.ts",
|
|
10769
10814
|
"../src/migrations/1708039535580-order-channel-user.ts",
|
|
10770
10815
|
"../src/migrations/1711562145337-user-channel-settings.ts",
|
|
10816
|
+
"../src/migrations/1711640105019-product-brand.ts",
|
|
10771
10817
|
"../src/migrations/execute/index.ts",
|
|
10772
10818
|
"../src/migrations/index.ts",
|
|
10773
10819
|
"../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.166",
|
|
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.166",
|
|
25
|
+
"@reachu/utils": "1.0.166",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -124,6 +124,9 @@ export class Product extends AuditedModel {
|
|
|
124
124
|
@Column('varchar', { nullable: true })
|
|
125
125
|
originVariantId?: string;
|
|
126
126
|
|
|
127
|
+
@Column('varchar', { nullable: true })
|
|
128
|
+
brand?: string;
|
|
129
|
+
|
|
127
130
|
@OneToOne(() => FlatRate, { eager: true })
|
|
128
131
|
@JoinColumn()
|
|
129
132
|
flatRate: FlatRate;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class productBrand1711640105019 implements MigrationInterface {
|
|
4
|
+
name = 'productBrand1711640105019'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`DROP INDEX \`IDX_7e330764fdf1dc12dd5ba35dec\` ON \`channel_user\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`product\` ADD \`brand\` varchar(255) NULL`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`brand\``);
|
|
13
|
+
await queryRunner.query(`CREATE UNIQUE INDEX \`IDX_7e330764fdf1dc12dd5ba35dec\` ON \`channel_user\` (\`channel_user_settings_id\`)`);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|