@reachu/database 1.0.235 → 1.0.236
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.d.ts +3 -0
- package/dist/entity/ShopifyConnection.js +12 -0
- package/dist/entity/ShopifyConnection.js.map +1 -1
- package/dist/migrations/1784156035536-shopifyNewInfo.d.ts +6 -0
- package/dist/migrations/1784156035536-shopifyNewInfo.js +33 -0
- package/dist/migrations/1784156035536-shopifyNewInfo.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +14 -2
- package/package.json +3 -3
- package/src/entity/ShopifyConnection.ts +9 -0
- package/src/migrations/1784156035536-shopifyNewInfo.ts +23 -0
|
@@ -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,kEAA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,IAAI,EAAE,CAAC;;uDACjB;AAGrB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACR;AAG9B;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;AA3CD,iBAAiB;IAFrC,gBAAM,EAAE;IACR,gBAAM,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;GACb,iBAAiB,CA4CrC;kBA5CoB,iBAAiB"}
|
|
@@ -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": "
|
|
2001
|
-
"signature": "
|
|
2000
|
+
"version": "a6b0e42ba34633a1cef282cdc6124f2f47341a5cf54b0f895165168130af6170",
|
|
2001
|
+
"signature": "e1f2fefc79512802543c2a223685caafeaafe1f27fb03a8e8dbe0d5134848d1e",
|
|
2002
2002
|
"affectsGlobalScope": false
|
|
2003
2003
|
},
|
|
2004
2004
|
"../node_modules/@types/node/globals.d.ts": {
|
|
@@ -3966,6 +3966,11 @@
|
|
|
3966
3966
|
"signature": "5f2f5c2a712fdfeea4d54adf87b5791b93bb1b5084ea3f9d6569e4f06a239b47",
|
|
3967
3967
|
"affectsGlobalScope": false
|
|
3968
3968
|
},
|
|
3969
|
+
"../src/migrations/1784156035536-shopifynewinfo.ts": {
|
|
3970
|
+
"version": "c20a1caea99ee0f76ea9edc242e957ec4a2a2861b8209c2984d4f2aa19b7d356",
|
|
3971
|
+
"signature": "cd6d9f5e016004a1cc08319f0e3c295aeeb9176ec44888e209b80642aa7ab7a2",
|
|
3972
|
+
"affectsGlobalScope": false
|
|
3973
|
+
},
|
|
3969
3974
|
"../src/migrations/execute/index.ts": {
|
|
3970
3975
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3971
3976
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -7278,6 +7283,9 @@
|
|
|
7278
7283
|
"../src/migrations/1776371866384-new-payment-methods.ts": [
|
|
7279
7284
|
"../node_modules/typeorm/index.d.ts"
|
|
7280
7285
|
],
|
|
7286
|
+
"../src/migrations/1784156035536-shopifynewinfo.ts": [
|
|
7287
|
+
"../node_modules/typeorm/index.d.ts"
|
|
7288
|
+
],
|
|
7281
7289
|
"../src/migrations/execute/index.ts": [
|
|
7282
7290
|
"../src/config/connect.ts"
|
|
7283
7291
|
],
|
|
@@ -10451,6 +10459,9 @@
|
|
|
10451
10459
|
"../src/migrations/1776371866384-new-payment-methods.ts": [
|
|
10452
10460
|
"../node_modules/typeorm/index.d.ts"
|
|
10453
10461
|
],
|
|
10462
|
+
"../src/migrations/1784156035536-shopifynewinfo.ts": [
|
|
10463
|
+
"../node_modules/typeorm/index.d.ts"
|
|
10464
|
+
],
|
|
10454
10465
|
"../src/migrations/index.ts": [
|
|
10455
10466
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
10456
10467
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -11418,6 +11429,7 @@
|
|
|
11418
11429
|
"../src/migrations/1759863524877-bigcommerce2.ts",
|
|
11419
11430
|
"../src/migrations/1760110412811-bigcommerce-importedproduct.ts",
|
|
11420
11431
|
"../src/migrations/1776371866384-new-payment-methods.ts",
|
|
11432
|
+
"../src/migrations/1784156035536-shopifynewinfo.ts",
|
|
11421
11433
|
"../src/migrations/execute/index.ts",
|
|
11422
11434
|
"../src/migrations/index.ts",
|
|
11423
11435
|
"../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.236",
|
|
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.236",
|
|
25
|
+
"@reachu/utils": "1.0.236",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"eventemitter2": "^6.4.9",
|
|
28
28
|
"express": "4.17.1",
|
|
@@ -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
|
+
}
|