@reachu/database 1.0.235 → 1.0.237

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.
@@ -7,6 +7,9 @@ export default class ShopifyConnection extends AuditedModel {
7
7
  reseller: User;
8
8
  supplier: User;
9
9
  accessToken: string;
10
+ expiresIn: number;
11
+ refreshToken: string;
12
+ refreshTokenExpiresIn: number;
10
13
  url: string;
11
14
  currency?: string;
12
15
  carrierId?: string;
@@ -43,6 +43,18 @@ __decorate([
43
43
  typeorm_1.Column('varchar', { nullable: true }),
44
44
  __metadata("design:type", String)
45
45
  ], ShopifyConnection.prototype, "accessToken", void 0);
46
+ __decorate([
47
+ typeorm_1.Column('integer', { nullable: true }),
48
+ __metadata("design:type", Number)
49
+ ], ShopifyConnection.prototype, "expiresIn", void 0);
50
+ __decorate([
51
+ typeorm_1.Column('varchar', { nullable: true }),
52
+ __metadata("design:type", String)
53
+ ], ShopifyConnection.prototype, "refreshToken", void 0);
54
+ __decorate([
55
+ typeorm_1.Column('integer', { nullable: true }),
56
+ __metadata("design:type", Number)
57
+ ], ShopifyConnection.prototype, "refreshTokenExpiresIn", void 0);
46
58
  __decorate([
47
59
  typeorm_1.Column('varchar', { nullable: true }),
48
60
  __metadata("design:type", String)
@@ -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,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2DAClB;AAI1B;IAFC,mBAAS,CAAC,GAAG,EAAE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AAE,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;AA3CD,iBAAiB;IAFrC,gBAAM,EAAE;IACR,gBAAM,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;GACb,iBAAiB,CA4CrC;kBA5CoB,iBAAiB"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class shopifyNewInfo1784156035536 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -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.shopifyNewInfo1784156035536 = void 0;
13
+ class shopifyNewInfo1784156035536 {
14
+ constructor() {
15
+ this.name = 'shopifyNewInfo1784156035536';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`expires_in\` int NULL`);
20
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`refresh_token\` varchar(255) NULL`);
21
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`refresh_token_expires_in\` int NULL`);
22
+ });
23
+ }
24
+ down(queryRunner) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`refresh_token_expires_in\``);
27
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`refresh_token\``);
28
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`expires_in\``);
29
+ });
30
+ }
31
+ }
32
+ exports.shopifyNewInfo1784156035536 = shopifyNewInfo1784156035536;
33
+ //# sourceMappingURL=1784156035536-shopifyNewInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1784156035536-shopifyNewInfo.js","sourceRoot":"","sources":["../../src/migrations/1784156035536-shopifyNewInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAC;IAmBvC,CAAC;IAjBc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;YAC1F,MAAM,WAAW,CAAC,KAAK,CACrB,4EAA4E,CAC7E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,8EAA8E,CAC/E,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CACrB,6EAA6E,CAC9E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YAC5F,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;QAC3F,CAAC;KAAA;CACF;AApBD,kEAoBC"}
@@ -1997,8 +1997,8 @@
1997
1997
  "affectsGlobalScope": false
1998
1998
  },
1999
1999
  "../src/entity/shopifyconnection.ts": {
2000
- "version": "82631ee5fc2ee8c8c4b67894354e79a47878c12d824e39e40d2ac71ba5143588",
2001
- "signature": "deaaa620213450b2c981971e6fa519cb8e39ada9d97973a431bc95bcb877e4ea",
2000
+ "version": "a6b0e42ba34633a1cef282cdc6124f2f47341a5cf54b0f895165168130af6170",
2001
+ "signature": "e1f2fefc79512802543c2a223685caafeaafe1f27fb03a8e8dbe0d5134848d1e",
2002
2002
  "affectsGlobalScope": false
2003
2003
  },
2004
2004
  "../node_modules/@types/node/globals.d.ts": {
@@ -2236,29 +2236,19 @@
2236
2236
  "signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86",
2237
2237
  "affectsGlobalScope": false
2238
2238
  },
2239
- "../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",
2247
- "affectsGlobalScope": false
2248
- },
2249
- "../node_modules/@types/qs/index.d.ts": {
2250
- "version": "630ff11de47d75175f2d1d43cc447068818cb9377324752e01fe0e5fc3f77757",
2251
- "signature": "630ff11de47d75175f2d1d43cc447068818cb9377324752e01fe0e5fc3f77757",
2252
- "affectsGlobalScope": false
2253
- },
2254
2239
  "../node_modules/@types/range-parser/index.d.ts": {
2255
2240
  "version": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
2256
2241
  "signature": "2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",
2257
2242
  "affectsGlobalScope": false
2258
2243
  },
2244
+ "../node_modules/@types/qs/index.d.ts": {
2245
+ "version": "93a3b8e57c68e348fc4054b245bd7cf4893225f56c991028844b693c2fa8c03c",
2246
+ "signature": "93a3b8e57c68e348fc4054b245bd7cf4893225f56c991028844b693c2fa8c03c",
2247
+ "affectsGlobalScope": false
2248
+ },
2259
2249
  "../node_modules/@types/express-serve-static-core/index.d.ts": {
2260
- "version": "a45c25e77c911c1f2a04cade78f6f42b4d7d896a3882d4e226efd3a3fcd5f2c4",
2261
- "signature": "a45c25e77c911c1f2a04cade78f6f42b4d7d896a3882d4e226efd3a3fcd5f2c4",
2250
+ "version": "d2f7baf43dfa349d4010cbd9d64d84cdf3ec26c65fa5f44c8f74f052bedd0b49",
2251
+ "signature": "d2f7baf43dfa349d4010cbd9d64d84cdf3ec26c65fa5f44c8f74f052bedd0b49",
2262
2252
  "affectsGlobalScope": true
2263
2253
  },
2264
2254
  "../node_modules/@types/http-errors/index.d.ts": {
@@ -2267,8 +2257,8 @@
2267
2257
  "affectsGlobalScope": false
2268
2258
  },
2269
2259
  "../node_modules/@types/serve-static/index.d.ts": {
2270
- "version": "0e13570a7e86c6d83dd92e81758a930f63747483e2cd34ef36fcdb47d1f9726a",
2271
- "signature": "0e13570a7e86c6d83dd92e81758a930f63747483e2cd34ef36fcdb47d1f9726a",
2260
+ "version": "168d88e14e0d81fe170e0dadd38ae9d217476c11435ea640ddb9b7382bdb6c1f",
2261
+ "signature": "168d88e14e0d81fe170e0dadd38ae9d217476c11435ea640ddb9b7382bdb6c1f",
2272
2262
  "affectsGlobalScope": false
2273
2263
  },
2274
2264
  "../node_modules/@types/connect/index.d.ts": {
@@ -3966,24 +3956,29 @@
3966
3956
  "signature": "5f2f5c2a712fdfeea4d54adf87b5791b93bb1b5084ea3f9d6569e4f06a239b47",
3967
3957
  "affectsGlobalScope": false
3968
3958
  },
3959
+ "../src/migrations/1784156035536-shopifynewinfo.ts": {
3960
+ "version": "c20a1caea99ee0f76ea9edc242e957ec4a2a2861b8209c2984d4f2aa19b7d356",
3961
+ "signature": "cd6d9f5e016004a1cc08319f0e3c295aeeb9176ec44888e209b80642aa7ab7a2",
3962
+ "affectsGlobalScope": false
3963
+ },
3969
3964
  "../src/migrations/execute/index.ts": {
3970
3965
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3971
3966
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
3972
3967
  "affectsGlobalScope": false
3973
3968
  },
3974
3969
  "../node_modules/@babel/types/lib/index.d.ts": {
3975
- "version": "7983487d0fbefb9b6ccc94390e8c826328d87e21cd4a62ea5b4c6b8f99f32550",
3976
- "signature": "7983487d0fbefb9b6ccc94390e8c826328d87e21cd4a62ea5b4c6b8f99f32550",
3970
+ "version": "556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9",
3971
+ "signature": "556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9",
3977
3972
  "affectsGlobalScope": false
3978
3973
  },
3979
3974
  "../node_modules/@types/babel__generator/index.d.ts": {
3980
- "version": "2c8e55457aaf4902941dfdba4061935922e8ee6e120539c9801cd7b400fae050",
3981
- "signature": "2c8e55457aaf4902941dfdba4061935922e8ee6e120539c9801cd7b400fae050",
3975
+ "version": "b6d03c9cfe2cf0ba4c673c209fcd7c46c815b2619fd2aad59fc4229aaef2ed43",
3976
+ "signature": "b6d03c9cfe2cf0ba4c673c209fcd7c46c815b2619fd2aad59fc4229aaef2ed43",
3982
3977
  "affectsGlobalScope": false
3983
3978
  },
3984
3979
  "../node_modules/@babel/parser/typings/babel-parser.d.ts": {
3985
- "version": "a7c8d34006fa93c600dc791fc4fc099fe67f28377b23626f4467675146be080e",
3986
- "signature": "a7c8d34006fa93c600dc791fc4fc099fe67f28377b23626f4467675146be080e",
3980
+ "version": "95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958",
3981
+ "signature": "95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958",
3987
3982
  "affectsGlobalScope": false
3988
3983
  },
3989
3984
  "../node_modules/@types/babel__template/index.d.ts": {
@@ -4194,8 +4189,7 @@
4194
4189
  "../node_modules/@types/node/http.d.ts",
4195
4190
  "../node_modules/@types/node/index.d.ts",
4196
4191
  "../node_modules/@types/qs/index.d.ts",
4197
- "../node_modules/@types/range-parser/index.d.ts",
4198
- "../node_modules/@types/send/index.d.ts"
4192
+ "../node_modules/@types/range-parser/index.d.ts"
4199
4193
  ],
4200
4194
  "../node_modules/@types/express/index.d.ts": [
4201
4195
  "../node_modules/@types/body-parser/index.d.ts",
@@ -4387,17 +4381,10 @@
4387
4381
  "../node_modules/@types/node/zlib.d.ts": [
4388
4382
  "../node_modules/@types/node/stream.d.ts"
4389
4383
  ],
4390
- "../node_modules/@types/send/index.d.ts": [
4391
- "../node_modules/@types/mime/index.d.ts",
4392
- "../node_modules/@types/node/fs.d.ts",
4393
- "../node_modules/@types/node/index.d.ts",
4394
- "../node_modules/@types/node/stream.d.ts"
4395
- ],
4396
4384
  "../node_modules/@types/serve-static/index.d.ts": [
4397
4385
  "../node_modules/@types/http-errors/index.d.ts",
4398
4386
  "../node_modules/@types/node/http.d.ts",
4399
- "../node_modules/@types/node/index.d.ts",
4400
- "../node_modules/@types/send/index.d.ts"
4387
+ "../node_modules/@types/node/index.d.ts"
4401
4388
  ],
4402
4389
  "../node_modules/@types/yargs/index.d.ts": [
4403
4390
  "../node_modules/@types/yargs-parser/index.d.ts"
@@ -7278,6 +7265,9 @@
7278
7265
  "../src/migrations/1776371866384-new-payment-methods.ts": [
7279
7266
  "../node_modules/typeorm/index.d.ts"
7280
7267
  ],
7268
+ "../src/migrations/1784156035536-shopifynewinfo.ts": [
7269
+ "../node_modules/typeorm/index.d.ts"
7270
+ ],
7281
7271
  "../src/migrations/execute/index.ts": [
7282
7272
  "../src/config/connect.ts"
7283
7273
  ],
@@ -7546,8 +7536,7 @@
7546
7536
  "../node_modules/@types/node/http.d.ts",
7547
7537
  "../node_modules/@types/node/index.d.ts",
7548
7538
  "../node_modules/@types/qs/index.d.ts",
7549
- "../node_modules/@types/range-parser/index.d.ts",
7550
- "../node_modules/@types/send/index.d.ts"
7539
+ "../node_modules/@types/range-parser/index.d.ts"
7551
7540
  ],
7552
7541
  "../node_modules/@types/express/index.d.ts": [
7553
7542
  "../node_modules/@types/body-parser/index.d.ts",
@@ -7739,17 +7728,10 @@
7739
7728
  "../node_modules/@types/node/zlib.d.ts": [
7740
7729
  "../node_modules/@types/node/stream.d.ts"
7741
7730
  ],
7742
- "../node_modules/@types/send/index.d.ts": [
7743
- "../node_modules/@types/mime/index.d.ts",
7744
- "../node_modules/@types/node/fs.d.ts",
7745
- "../node_modules/@types/node/index.d.ts",
7746
- "../node_modules/@types/node/stream.d.ts"
7747
- ],
7748
7731
  "../node_modules/@types/serve-static/index.d.ts": [
7749
7732
  "../node_modules/@types/http-errors/index.d.ts",
7750
7733
  "../node_modules/@types/node/http.d.ts",
7751
- "../node_modules/@types/node/index.d.ts",
7752
- "../node_modules/@types/send/index.d.ts"
7734
+ "../node_modules/@types/node/index.d.ts"
7753
7735
  ],
7754
7736
  "../node_modules/@types/yargs/index.d.ts": [
7755
7737
  "../node_modules/@types/yargs-parser/index.d.ts"
@@ -10451,6 +10433,9 @@
10451
10433
  "../src/migrations/1776371866384-new-payment-methods.ts": [
10452
10434
  "../node_modules/typeorm/index.d.ts"
10453
10435
  ],
10436
+ "../src/migrations/1784156035536-shopifynewinfo.ts": [
10437
+ "../node_modules/typeorm/index.d.ts"
10438
+ ],
10454
10439
  "../src/migrations/index.ts": [
10455
10440
  "../src/migrations/1628474597284-initialschema.ts",
10456
10441
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -10664,7 +10649,6 @@
10664
10649
  "../node_modules/@types/istanbul-reports/index.d.ts",
10665
10650
  "../node_modules/@types/jest/index.d.ts",
10666
10651
  "../node_modules/@types/json-schema/index.d.ts",
10667
- "../node_modules/@types/mime/index.d.ts",
10668
10652
  "../node_modules/@types/node/assert.d.ts",
10669
10653
  "../node_modules/@types/node/async_hooks.d.ts",
10670
10654
  "../node_modules/@types/node/base.d.ts",
@@ -10715,7 +10699,6 @@
10715
10699
  "../node_modules/@types/prettier/index.d.ts",
10716
10700
  "../node_modules/@types/qs/index.d.ts",
10717
10701
  "../node_modules/@types/range-parser/index.d.ts",
10718
- "../node_modules/@types/send/index.d.ts",
10719
10702
  "../node_modules/@types/serve-static/index.d.ts",
10720
10703
  "../node_modules/@types/stack-utils/index.d.ts",
10721
10704
  "../node_modules/@types/yargs-parser/index.d.ts",
@@ -11418,6 +11401,7 @@
11418
11401
  "../src/migrations/1759863524877-bigcommerce2.ts",
11419
11402
  "../src/migrations/1760110412811-bigcommerce-importedproduct.ts",
11420
11403
  "../src/migrations/1776371866384-new-payment-methods.ts",
11404
+ "../src/migrations/1784156035536-shopifynewinfo.ts",
11421
11405
  "../src/migrations/execute/index.ts",
11422
11406
  "../src/migrations/index.ts",
11423
11407
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.235",
3
+ "version": "1.0.237",
4
4
  "description": "reachu-database",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,18 +21,21 @@
21
21
  "author": "reachu",
22
22
  "license": "ISC",
23
23
  "dependencies": {
24
- "@reachu/logger": "1.0.235",
25
- "@reachu/utils": "1.0.235",
24
+ "@reachu/logger": "1.0.237",
25
+ "@reachu/utils": "1.0.237",
26
26
  "dotenv": "8.0.0",
27
27
  "eventemitter2": "^6.4.9",
28
28
  "express": "4.17.1",
29
29
  "mysql2": "1.5.2",
30
30
  "shortid": "2.2.16",
31
31
  "sqlite3": "^5.0.2",
32
- "typeorm": "0.2.41",
33
32
  "typeorm-naming-strategies": "1.1.0"
34
33
  },
34
+ "peerDependencies": {
35
+ "typeorm": "0.2.41"
36
+ },
35
37
  "devDependencies": {
38
+ "typeorm": "0.2.41",
36
39
  "@babel/core": "7.12.13",
37
40
  "@babel/plugin-proposal-class-properties": "7.12.1",
38
41
  "@babel/plugin-proposal-decorators": "7.12.12",
@@ -74,7 +77,8 @@
74
77
  "resolutions": {
75
78
  "logform": "2.4.2",
76
79
  "@types/babel__traverse": "7.18.3",
77
- "typeorm": "0.2.41"
80
+ "typeorm": "0.2.41",
81
+ "@types/express-serve-static-core": "4.17.28"
78
82
  },
79
83
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
80
84
  }
@@ -34,6 +34,15 @@ export default class ShopifyConnection extends AuditedModel {
34
34
  @Column('varchar', { nullable: true })
35
35
  accessToken: string;
36
36
 
37
+ @Column('integer', { nullable: true })
38
+ expiresIn: number;
39
+
40
+ @Column('varchar', { nullable: true })
41
+ refreshToken: string;
42
+
43
+ @Column('integer', { nullable: true })
44
+ refreshTokenExpiresIn: number;
45
+
37
46
  @Column('varchar', { nullable: true })
38
47
  url: string;
39
48
 
@@ -0,0 +1,23 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+
3
+ export class shopifyNewInfo1784156035536 implements MigrationInterface {
4
+ name = 'shopifyNewInfo1784156035536';
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`expires_in\` int NULL`);
8
+ await queryRunner.query(
9
+ `ALTER TABLE \`shopify_connection\` ADD \`refresh_token\` varchar(255) NULL`,
10
+ );
11
+ await queryRunner.query(
12
+ `ALTER TABLE \`shopify_connection\` ADD \`refresh_token_expires_in\` int NULL`,
13
+ );
14
+ }
15
+
16
+ public async down(queryRunner: QueryRunner): Promise<void> {
17
+ await queryRunner.query(
18
+ `ALTER TABLE \`shopify_connection\` DROP COLUMN \`refresh_token_expires_in\``,
19
+ );
20
+ await queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`refresh_token\``);
21
+ await queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`expires_in\``);
22
+ }
23
+ }