sequelize-typescript-generator 9.0.1 → 9.0.2
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/build/bin/utils.d.ts +1 -1
- package/build/config/IConfig.d.ts +3 -3
- package/build/dialects/Dialect.d.ts +1 -1
- package/package.json +13 -13
package/build/bin/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dialect } from '../dialects/Dialect';
|
|
2
2
|
import { IConfig, TransformCase, TransformMap } from '../config/IConfig';
|
|
3
|
-
export
|
|
3
|
+
export type ArgvType = {
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
};
|
|
6
6
|
export declare const defaultOutputDir = "output-models";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Options } from 'sequelize';
|
|
2
2
|
import { ESLint } from 'eslint';
|
|
3
|
-
export
|
|
3
|
+
export type TransformCase = 'UPPER' | 'LOWER' | 'UNDERSCORE' | 'CAMEL' | 'PASCAL' | 'CONST';
|
|
4
4
|
export declare enum TransformTarget {
|
|
5
5
|
MODEL = "model",
|
|
6
6
|
COLUMN = "column"
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type TransformMap = {
|
|
9
9
|
[key in TransformTarget]: TransformCase;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type TransformFn = (value: string, target: TransformTarget) => string;
|
|
12
12
|
export declare const TransformCases: Set<TransformCase>;
|
|
13
13
|
export interface IConfigMetadata {
|
|
14
14
|
schema?: 'public' | string;
|
|
@@ -45,7 +45,7 @@ export interface ITable {
|
|
|
45
45
|
name: string;
|
|
46
46
|
comment?: string;
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
type DialectName = 'postgres' | 'mysql' | 'mariadb' | 'sqlite' | 'mssql';
|
|
49
49
|
export declare abstract class Dialect {
|
|
50
50
|
/**
|
|
51
51
|
* Accepted dialects
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequelize-typescript-generator",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Automatically generates typescript models compatible with sequelize-typescript library (https://www.npmjs.com/package/sequelize-typescript) directly from your source database.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/spinlud/sequelize-typescript-generator.git#readme",
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/bluebird": "^3.5.
|
|
37
|
+
"@types/bluebird": "^3.5.38",
|
|
38
38
|
"@types/jest": "^28.1.8",
|
|
39
|
-
"@types/node": "^18.11.
|
|
39
|
+
"@types/node": "^18.11.10",
|
|
40
40
|
"@types/pluralize": "0.0.29",
|
|
41
|
-
"@types/validator": "^13.7.
|
|
42
|
-
"@types/yargs": "^17.0.
|
|
41
|
+
"@types/validator": "^13.7.10",
|
|
42
|
+
"@types/yargs": "^17.0.15",
|
|
43
43
|
"jest": "^28.1.3",
|
|
44
|
-
"mariadb": "^3.0.
|
|
44
|
+
"mariadb": "^3.0.2",
|
|
45
45
|
"mysql2": "^2.3.3",
|
|
46
46
|
"pg": "^8.8.0",
|
|
47
47
|
"pg-hstore": "^2.3.4",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"wkx": "^0.5.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@types/eslint": "^8.4.
|
|
57
|
-
"@typescript-eslint/parser": "^5.
|
|
56
|
+
"@types/eslint": "^8.4.10",
|
|
57
|
+
"@typescript-eslint/parser": "^5.45.0",
|
|
58
58
|
"change-case": "^4.1.2",
|
|
59
|
-
"eslint": "^8.
|
|
59
|
+
"eslint": "^8.28.0",
|
|
60
60
|
"pluralize": "^8.0.0",
|
|
61
|
-
"sequelize": "^6.
|
|
61
|
+
"sequelize": "^6.26.0",
|
|
62
62
|
"sequelize-typescript": "^2.1.5",
|
|
63
|
-
"typescript": "^4.
|
|
64
|
-
"yargs": "^17.6.
|
|
63
|
+
"typescript": "^4.9.3",
|
|
64
|
+
"yargs": "^17.6.2"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"typescript": "^4.
|
|
67
|
+
"typescript": "^4.9.3"
|
|
68
68
|
},
|
|
69
69
|
"keywords": [
|
|
70
70
|
"sequelize",
|