@reachu/database 1.0.237 → 1.0.240

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.
@@ -15,4 +15,5 @@ export default class ShopifyConnection extends AuditedModel {
15
15
  carrierId?: string;
16
16
  fulfillmentId?: string;
17
17
  locationId?: string;
18
+ channelHandle?: string;
18
19
  }
@@ -75,6 +75,10 @@ __decorate([
75
75
  typeorm_1.Column('varchar', { nullable: true }),
76
76
  __metadata("design:type", String)
77
77
  ], ShopifyConnection.prototype, "locationId", void 0);
78
+ __decorate([
79
+ typeorm_1.Column('varchar', { nullable: true }),
80
+ __metadata("design:type", String)
81
+ ], ShopifyConnection.prototype, "channelHandle", void 0);
78
82
  ShopifyConnection = __decorate([
79
83
  typeorm_1.Entity(),
80
84
  typeorm_1.Unique(['supplier', 'deletedAt'])
@@ -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;CA4C1D,CAAA;AA1CC;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,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9F,oBAAU,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,cAAI;mDAAC;AAIf;IAFC,mBAAS,CA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AE,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;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACf;AA9CJ,iBAAiB;IAFrC,gBAAM,EAAE;IACR,gBAAM,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;GACb,iBAAiB,CA+CrC;kBA/CoB,iBAAiB"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class prod100820261786408386473 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,43 @@
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.prod100820261786408386473 = void 0;
13
+ class prod100820261786408386473 {
14
+ constructor() {
15
+ this.name = 'prod100820261786408386473';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`DROP INDEX \`idx_imp_deleted\` ON \`imported_product\``);
20
+ yield queryRunner.query(`DROP INDEX \`idx_imp_shopify\` ON \`imported_product\``);
21
+ yield queryRunner.query(`DROP INDEX \`idx_imp_woo\` ON \`imported_product\``);
22
+ yield queryRunner.query(`DROP INDEX \`idx_product_deleted\` ON \`product\``);
23
+ yield queryRunner.query(`DROP INDEX \`idx_product_status_deleted\` ON \`product\``);
24
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`expires_in\` int NULL`);
25
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`refresh_token\` varchar(255) NULL`);
26
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`refresh_token_expires_in\` int NULL`);
27
+ });
28
+ }
29
+ down(queryRunner) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`refresh_token_expires_in\``);
32
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`refresh_token\``);
33
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`expires_in\``);
34
+ yield queryRunner.query(`CREATE INDEX \`idx_product_status_deleted\` ON \`product\` (\`status\`, \`deleted_at\`)`);
35
+ yield queryRunner.query(`CREATE INDEX \`idx_product_deleted\` ON \`product\` (\`deleted_at\`)`);
36
+ yield queryRunner.query(`CREATE INDEX \`idx_imp_woo\` ON \`imported_product\` (\`woo_id\`)`);
37
+ yield queryRunner.query(`CREATE INDEX \`idx_imp_shopify\` ON \`imported_product\` (\`shopify_id\`)`);
38
+ yield queryRunner.query(`CREATE INDEX \`idx_imp_deleted\` ON \`imported_product\` (\`deleted_at\`)`);
39
+ });
40
+ }
41
+ }
42
+ exports.prod100820261786408386473 = prod100820261786408386473;
43
+ //# sourceMappingURL=1786408386473-prod-10-08-2026.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1786408386473-prod-10-08-2026.js","sourceRoot":"","sources":["../../src/migrations/1786408386473-prod-10-08-2026.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,yBAAyB;IAAtC;QACE,SAAI,GAAG,2BAA2B,CAAC;IAmCrC,CAAC;IAjCc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;YAClF,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;YAClF,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;YAC7E,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;YACpF,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;YACzF,MAAM,WAAW,CAAC,KAAK,CACrB,yFAAyF,CAC1F,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;YAChG,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YAC7F,MAAM,WAAW,CAAC,KAAK,CACrB,2EAA2E,CAC5E,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CACrB,2EAA2E,CAC5E,CAAC;QACJ,CAAC;KAAA;CACF;AApCD,8DAoCC"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class shopifyChannelHandle1787327304675 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,29 @@
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.shopifyChannelHandle1787327304675 = void 0;
13
+ class shopifyChannelHandle1787327304675 {
14
+ constructor() {
15
+ this.name = 'shopifyChannelHandle1787327304675';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`channel_handle\` varchar(255) NULL`);
20
+ });
21
+ }
22
+ down(queryRunner) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ yield queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`channel_handle\``);
25
+ });
26
+ }
27
+ }
28
+ exports.shopifyChannelHandle1787327304675 = shopifyChannelHandle1787327304675;
29
+ //# sourceMappingURL=1787327304675-shopifyChannelHandle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1787327304675-shopifyChannelHandle.js","sourceRoot":"","sources":["../../src/migrations/1787327304675-shopifyChannelHandle.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,iCAAiC;IAA9C;QACE,SAAI,GAAG,mCAAmC,CAAC;IAW7C,CAAC;IATc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,6EAA6E,CAC9E,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QAC/F,CAAC;KAAA;CACF;AAZD,8EAYC"}
@@ -8,7 +8,10 @@ declare enum Currency {
8
8
  CZK = "CZK",
9
9
  HUF = "HUF",
10
10
  PLN = "PLN",
11
- RON = "RON"
11
+ RON = "RON",
12
+ DKK = "DKK",
13
+ SEK = "SEK",
14
+ CHF = "CHF"
12
15
  }
13
16
  export declare const currencies: Currency[];
14
17
  export default Currency;
@@ -13,6 +13,9 @@ var Currency;
13
13
  Currency["HUF"] = "HUF";
14
14
  Currency["PLN"] = "PLN";
15
15
  Currency["RON"] = "RON";
16
+ Currency["DKK"] = "DKK";
17
+ Currency["SEK"] = "SEK";
18
+ Currency["CHF"] = "CHF";
16
19
  })(Currency || (Currency = {}));
17
20
  exports.currencies = [
18
21
  Currency.EUR,
@@ -24,6 +27,9 @@ exports.currencies = [
24
27
  Currency.HUF,
25
28
  Currency.PLN,
26
29
  Currency.RON,
30
+ Currency.DKK,
31
+ Currency.SEK,
32
+ Currency.CHF,
27
33
  ];
28
34
  exports.default = Currency;
29
35
  //# sourceMappingURL=Currency.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/staticData/Currency.ts"],"names":[],"mappings":";;;AAAA,IAAK,QAWJ;AAXD,WAAK,QAAQ;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EAXI,QAAQ,KAAR,QAAQ,QAWZ;AAEY,QAAA,UAAU,GAAG;IACxB,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;CACb,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/staticData/Currency.ts"],"names":[],"mappings":";;;AAAA,IAAK,QAcJ;AAdD,WAAK,QAAQ;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EAdI,QAAQ,KAAR,QAAQ,QAcZ;AAEY,QAAA,UAAU,GAAG;IACxB,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;IACZ,QAAQ,CAAC,GAAG;CACb,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -1997,8 +1997,8 @@
1997
1997
  "affectsGlobalScope": false
1998
1998
  },
1999
1999
  "../src/entity/shopifyconnection.ts": {
2000
- "version": "a6b0e42ba34633a1cef282cdc6124f2f47341a5cf54b0f895165168130af6170",
2001
- "signature": "e1f2fefc79512802543c2a223685caafeaafe1f27fb03a8e8dbe0d5134848d1e",
2000
+ "version": "3104258d18a975718c2f64da9d07633b50bed41a588d28588c6585fa95aeaceb",
2001
+ "signature": "30bec438d6d0dc09aa27ce1ca22a0133fcd991315de92292f23a06342d264420",
2002
2002
  "affectsGlobalScope": false
2003
2003
  },
2004
2004
  "../node_modules/@types/node/globals.d.ts": {
@@ -2427,8 +2427,8 @@
2427
2427
  "affectsGlobalScope": false
2428
2428
  },
2429
2429
  "../src/staticdata/currency.ts": {
2430
- "version": "1e345c2c702890571829fd4e115b4a7c22936f9b3c6c93d8145ba46dc469c486",
2431
- "signature": "0f39ce6662757c37afc7e6ce752b0bba1d9cd09ee1e10d7d354cc9b9ca2d6fed",
2430
+ "version": "0a07f990e93b18d17791d5ae7e442b9366e53af090570a20f8c9846928f39976",
2431
+ "signature": "6b45dca31b2075015520af38d890859e7935cc0ae86b898078911d100da52707",
2432
2432
  "affectsGlobalScope": false
2433
2433
  },
2434
2434
  "../src/entity/price.entity.ts": {
@@ -3961,6 +3961,16 @@
3961
3961
  "signature": "cd6d9f5e016004a1cc08319f0e3c295aeeb9176ec44888e209b80642aa7ab7a2",
3962
3962
  "affectsGlobalScope": false
3963
3963
  },
3964
+ "../src/migrations/1786408386473-prod-10-08-2026.ts": {
3965
+ "version": "d8a0e633a15775ec4912a2cce79bf197353e1e11a7ea06fc913ac976c2867196",
3966
+ "signature": "b89c33bddfe18e675c2b8831c1ddfb8f35b050ac1e4f12a1b7bb0142c977a03e",
3967
+ "affectsGlobalScope": false
3968
+ },
3969
+ "../src/migrations/1787327304675-shopifychannelhandle.ts": {
3970
+ "version": "478fe66260b81c586025921fc43e161e6526e7b01917d5ef0bd72806cce8f541",
3971
+ "signature": "88e76e40091ae70c6271c19433795f312690fda74e328fcdd41c4c745e4afc25",
3972
+ "affectsGlobalScope": false
3973
+ },
3964
3974
  "../src/migrations/execute/index.ts": {
3965
3975
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3966
3976
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -7268,6 +7278,12 @@
7268
7278
  "../src/migrations/1784156035536-shopifynewinfo.ts": [
7269
7279
  "../node_modules/typeorm/index.d.ts"
7270
7280
  ],
7281
+ "../src/migrations/1786408386473-prod-10-08-2026.ts": [
7282
+ "../node_modules/typeorm/index.d.ts"
7283
+ ],
7284
+ "../src/migrations/1787327304675-shopifychannelhandle.ts": [
7285
+ "../node_modules/typeorm/index.d.ts"
7286
+ ],
7271
7287
  "../src/migrations/execute/index.ts": [
7272
7288
  "../src/config/connect.ts"
7273
7289
  ],
@@ -10436,6 +10452,12 @@
10436
10452
  "../src/migrations/1784156035536-shopifynewinfo.ts": [
10437
10453
  "../node_modules/typeorm/index.d.ts"
10438
10454
  ],
10455
+ "../src/migrations/1786408386473-prod-10-08-2026.ts": [
10456
+ "../node_modules/typeorm/index.d.ts"
10457
+ ],
10458
+ "../src/migrations/1787327304675-shopifychannelhandle.ts": [
10459
+ "../node_modules/typeorm/index.d.ts"
10460
+ ],
10439
10461
  "../src/migrations/index.ts": [
10440
10462
  "../src/migrations/1628474597284-initialschema.ts",
10441
10463
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -11402,6 +11424,8 @@
11402
11424
  "../src/migrations/1760110412811-bigcommerce-importedproduct.ts",
11403
11425
  "../src/migrations/1776371866384-new-payment-methods.ts",
11404
11426
  "../src/migrations/1784156035536-shopifynewinfo.ts",
11427
+ "../src/migrations/1786408386473-prod-10-08-2026.ts",
11428
+ "../src/migrations/1787327304675-shopifychannelhandle.ts",
11405
11429
  "../src/migrations/execute/index.ts",
11406
11430
  "../src/migrations/index.ts",
11407
11431
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.237",
3
+ "version": "1.0.240",
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.237",
25
- "@reachu/utils": "1.0.237",
24
+ "@reachu/logger": "1.0.239",
25
+ "@reachu/utils": "1.0.239",
26
26
  "dotenv": "8.0.0",
27
27
  "eventemitter2": "^6.4.9",
28
28
  "express": "4.17.1",
@@ -57,4 +57,7 @@ export default class ShopifyConnection extends AuditedModel {
57
57
 
58
58
  @Column('varchar', { nullable: true })
59
59
  locationId?: string;
60
+
61
+ @Column('varchar', { nullable: true })
62
+ channelHandle?: string;
60
63
  }
@@ -0,0 +1,39 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+
3
+ export class prod100820261786408386473 implements MigrationInterface {
4
+ name = 'prod100820261786408386473';
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`DROP INDEX \`idx_imp_deleted\` ON \`imported_product\``);
8
+ await queryRunner.query(`DROP INDEX \`idx_imp_shopify\` ON \`imported_product\``);
9
+ await queryRunner.query(`DROP INDEX \`idx_imp_woo\` ON \`imported_product\``);
10
+ await queryRunner.query(`DROP INDEX \`idx_product_deleted\` ON \`product\``);
11
+ await queryRunner.query(`DROP INDEX \`idx_product_status_deleted\` ON \`product\``);
12
+ await queryRunner.query(`ALTER TABLE \`shopify_connection\` ADD \`expires_in\` int NULL`);
13
+ await queryRunner.query(
14
+ `ALTER TABLE \`shopify_connection\` ADD \`refresh_token\` varchar(255) NULL`,
15
+ );
16
+ await queryRunner.query(
17
+ `ALTER TABLE \`shopify_connection\` ADD \`refresh_token_expires_in\` int NULL`,
18
+ );
19
+ }
20
+
21
+ public async down(queryRunner: QueryRunner): Promise<void> {
22
+ await queryRunner.query(
23
+ `ALTER TABLE \`shopify_connection\` DROP COLUMN \`refresh_token_expires_in\``,
24
+ );
25
+ await queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`refresh_token\``);
26
+ await queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`expires_in\``);
27
+ await queryRunner.query(
28
+ `CREATE INDEX \`idx_product_status_deleted\` ON \`product\` (\`status\`, \`deleted_at\`)`,
29
+ );
30
+ await queryRunner.query(`CREATE INDEX \`idx_product_deleted\` ON \`product\` (\`deleted_at\`)`);
31
+ await queryRunner.query(`CREATE INDEX \`idx_imp_woo\` ON \`imported_product\` (\`woo_id\`)`);
32
+ await queryRunner.query(
33
+ `CREATE INDEX \`idx_imp_shopify\` ON \`imported_product\` (\`shopify_id\`)`,
34
+ );
35
+ await queryRunner.query(
36
+ `CREATE INDEX \`idx_imp_deleted\` ON \`imported_product\` (\`deleted_at\`)`,
37
+ );
38
+ }
39
+ }
@@ -0,0 +1,15 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+
3
+ export class shopifyChannelHandle1787327304675 implements MigrationInterface {
4
+ name = 'shopifyChannelHandle1787327304675';
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(
8
+ `ALTER TABLE \`shopify_connection\` ADD \`channel_handle\` varchar(255) NULL`,
9
+ );
10
+ }
11
+
12
+ public async down(queryRunner: QueryRunner): Promise<void> {
13
+ await queryRunner.query(`ALTER TABLE \`shopify_connection\` DROP COLUMN \`channel_handle\``);
14
+ }
15
+ }
@@ -9,6 +9,9 @@ enum Currency {
9
9
  HUF = 'HUF',
10
10
  PLN = 'PLN',
11
11
  RON = 'RON',
12
+ DKK = 'DKK',
13
+ SEK = 'SEK',
14
+ CHF = 'CHF',
12
15
  }
13
16
 
14
17
  export const currencies = [
@@ -21,6 +24,9 @@ export const currencies = [
21
24
  Currency.HUF,
22
25
  Currency.PLN,
23
26
  Currency.RON,
27
+ Currency.DKK,
28
+ Currency.SEK,
29
+ Currency.CHF,
24
30
  ];
25
31
 
26
32
  export default Currency;