@spytecgps/nova-orm 1.4.168 → 1.4.170
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/entities/retailTrainingSet.d.ts +6 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/migration/_virtual/_virtual_multi-entry.js +2 -2
- package/dist/syncSchemaFromDump.d.ts +22 -0
- package/dist/types/retail.d.ts +2 -2
- package/package.json +6 -4
- package/schema.sql +3388 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
|
-
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
5
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
|
+
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
10
|
-
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
11
10
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
11
|
+
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface SyncSchemaFromDumpConfig {
|
|
2
|
+
host?: string;
|
|
3
|
+
port?: number;
|
|
4
|
+
username: string;
|
|
5
|
+
password: string;
|
|
6
|
+
database?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Syncs the database schema from a pre-generated SQL dump file.
|
|
10
|
+
* This is significantly faster than TypeORM's synchronize() which needs to
|
|
11
|
+
* introspect all entities and diff the schema.
|
|
12
|
+
*
|
|
13
|
+
* Uses a checksum to skip the sync if the schema is already up to date.
|
|
14
|
+
*
|
|
15
|
+
* The dump file is generated during the nova-orm CI/CD build process and
|
|
16
|
+
* included in the published package.
|
|
17
|
+
*
|
|
18
|
+
* @param config - Database connection configuration
|
|
19
|
+
* @param dumpPath - Optional path to the SQL dump file. Defaults to the dump
|
|
20
|
+
* bundled with the package.
|
|
21
|
+
*/
|
|
22
|
+
export declare function syncSchemaFromDump(config: SyncSchemaFromDumpConfig, dumpPath?: string): Promise<void>;
|
package/dist/types/retail.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { RetailIncidentSeverity, RetailIncidentStatus, RetailIncidentType } from
|
|
|
4
4
|
import { RetailItemStatus } from '../entities/retailItem';
|
|
5
5
|
import { RetailItemEventType } from '../entities/retailItemEvent';
|
|
6
6
|
import { RetailStoreStatus } from '../entities/retailStore';
|
|
7
|
-
import { RetailTrainingSetStatus, RetailTrainingSetType } from '../entities/retailTrainingSet';
|
|
7
|
+
import { RetailTrainingSetSegment, RetailTrainingSetStatus, RetailTrainingSetType } from '../entities/retailTrainingSet';
|
|
8
8
|
import { RetailZoneCategory } from '../entities/retailZone';
|
|
9
|
-
export { RetailItemStatus, RetailIncidentType, RetailIncidentStatus, RetailIncidentSeverity, RetailBleTagStatus, RetailItemEventType, RetailGatewayStatus, RetailZoneCategory, RetailStoreStatus, RetailTrainingSetType, RetailTrainingSetStatus, };
|
|
9
|
+
export { RetailItemStatus, RetailIncidentType, RetailIncidentStatus, RetailIncidentSeverity, RetailBleTagStatus, RetailItemEventType, RetailGatewayStatus, RetailZoneCategory, RetailStoreStatus, RetailTrainingSetType, RetailTrainingSetStatus, RetailTrainingSetSegment, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spytecgps/nova-orm",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.170",
|
|
4
4
|
"description": "ORM with PlanetScale",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -51,19 +51,21 @@
|
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"prepare": "npm run build",
|
|
54
|
-
"test": "
|
|
54
|
+
"test": "yarn jest --clearCache && yarn jest --ci --logHeapUsage --runInBand --reporters=default --reporters=jest-junit --collectCoverage=true",
|
|
55
55
|
"typeorm": "typeorm-ts-node-commonjs",
|
|
56
56
|
"lint": "eslint \"./src/**\"",
|
|
57
57
|
"lint-fix": "eslint \"./src/**\" --fix",
|
|
58
58
|
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
59
59
|
"build": "rimraf dist && rollup -c",
|
|
60
60
|
"copydistfolder": "./scripts/copyDistFolder.sh",
|
|
61
|
-
"schema-
|
|
61
|
+
"generate-schema-dump": "ts-node scripts/generate-schema-dump.ts",
|
|
62
|
+
"schema-sync": "yarn typeorm schema:drop --dataSource ./data-source.ts && yarn typeorm schema:sync --dataSource ./data-source.ts && yarn typeorm migration:run --dataSource ./data-source.ts",
|
|
62
63
|
"package-locally": "rimraf dist && tsc -p tsconfig.json && npm pack"
|
|
63
64
|
},
|
|
64
65
|
"author": "Hapn",
|
|
65
66
|
"license": "ISC",
|
|
66
67
|
"files": [
|
|
67
|
-
"dist/**/*"
|
|
68
|
+
"dist/**/*",
|
|
69
|
+
"schema.sql"
|
|
68
70
|
]
|
|
69
71
|
}
|