namirasoft-node-sequelize 1.4.8 → 1.4.9
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.
|
@@ -24,7 +24,7 @@ export declare abstract class BaseSequelizeDatabase extends BaseDatabase {
|
|
|
24
24
|
}, filters?: FilterItem[] | undefined): Promise<WhereOptions[]>;
|
|
25
25
|
getAdvancedSearchConditions(columns: string[], search: string): WhereOptions[];
|
|
26
26
|
getSortOptions(sorts?: SortItem[] | undefined): Order;
|
|
27
|
-
|
|
27
|
+
seed<Model extends {
|
|
28
28
|
id: string | number;
|
|
29
29
|
}>(app: BaseApplication<any>, file_path: string, seedable_table: BaseSequelizeDatabaseSeedable<Model>, preprocess?: (item: Model) => Model): Promise<void>;
|
|
30
30
|
}
|
|
@@ -112,7 +112,7 @@ class BaseSequelizeDatabase extends namirasoft_node_1.BaseDatabase {
|
|
|
112
112
|
});
|
|
113
113
|
return ans;
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
seed(app, file_path, seedable_table, preprocess) {
|
|
116
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
117
|
if (!preprocess)
|
|
118
118
|
preprocess = i => i;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.9",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"build": ""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@types/node": "^24.
|
|
20
|
+
"@types/node": "^24.3.0",
|
|
21
21
|
"namirasoft-core": "^1.4.81",
|
|
22
|
-
"namirasoft-node": "^1.4.
|
|
22
|
+
"namirasoft-node": "^1.4.114",
|
|
23
23
|
"sequelize": "^6.37.7"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -135,7 +135,7 @@ export abstract class BaseSequelizeDatabase extends BaseDatabase
|
|
|
135
135
|
|
|
136
136
|
return ans;
|
|
137
137
|
}
|
|
138
|
-
public async
|
|
138
|
+
public async seed<Model extends { id: string | number }>(app: BaseApplication<any>, file_path: string, seedable_table: BaseSequelizeDatabaseSeedable<Model>, preprocess?: (item: Model) => Model)
|
|
139
139
|
{
|
|
140
140
|
if (!preprocess)
|
|
141
141
|
preprocess = i => i;
|