namirasoft-site 1.4.41 → 1.4.43
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.
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { FilterItem, SortItem } from "namirasoft-core";
|
|
2
2
|
export declare class NSBaseMetaTable_Backend<Row> {
|
|
3
|
+
_get?: (id: string) => Promise<Row>;
|
|
3
4
|
get?: (id: string) => Promise<Row>;
|
|
5
|
+
_list?: (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) => Promise<{
|
|
6
|
+
rows: Row[];
|
|
7
|
+
count: number;
|
|
8
|
+
}>;
|
|
4
9
|
list?: (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) => Promise<{
|
|
5
10
|
rows: Row[];
|
|
6
11
|
count: number;
|
|
7
12
|
}>;
|
|
13
|
+
_create?: (body: any) => Promise<any>;
|
|
14
|
+
create?: (body: any) => Promise<any>;
|
|
15
|
+
_update?: (id: string, body: any) => Promise<Row>;
|
|
16
|
+
update?: (id: string, body: any) => Promise<Row>;
|
|
17
|
+
_delete?: (id: string) => Promise<Row>;
|
|
18
|
+
delete?: (id: string) => Promise<Row>;
|
|
8
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBaseMetaTable_Backend.js","sourceRoot":"","sources":["../src/NSBaseMetaTable_Backend.ts"],"names":[],"mappings":";;;AAEA,MAAa,uBAAuB;
|
|
1
|
+
{"version":3,"file":"NSBaseMetaTable_Backend.js","sourceRoot":"","sources":["../src/NSBaseMetaTable_Backend.ts"],"names":[],"mappings":";;;AAEA,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAAA,CAAC"}
|
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.43",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": ""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"axios": "^1.
|
|
21
|
-
"namirasoft-core": "^1.4.
|
|
20
|
+
"axios": "^1.13.2",
|
|
21
|
+
"namirasoft-core": "^1.4.108"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -2,6 +2,14 @@ import { FilterItem, SortItem } from "namirasoft-core";
|
|
|
2
2
|
|
|
3
3
|
export class NSBaseMetaTable_Backend<Row>
|
|
4
4
|
{
|
|
5
|
+
_get?: (id: string) => Promise<Row>;
|
|
5
6
|
get?: (id: string) => Promise<Row>;
|
|
7
|
+
_list?: (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) => Promise<{ rows: Row[], count: number }>;
|
|
6
8
|
list?: (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) => Promise<{ rows: Row[], count: number }>;
|
|
9
|
+
_create?: (body: any) => Promise<any>;
|
|
10
|
+
create?: (body: any) => Promise<any>;
|
|
11
|
+
_update?: (id: string, body: any) => Promise<Row>;
|
|
12
|
+
update?: (id: string, body: any) => Promise<Row>;
|
|
13
|
+
_delete?: (id: string) => Promise<Row>;
|
|
14
|
+
delete?: (id: string) => Promise<Row>;
|
|
7
15
|
};
|