@etsoo/smarterp-core 1.0.89 → 1.0.91
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/lib/cjs/OrgApi.d.ts +3 -2
- package/lib/cjs/OrgApi.js +3 -2
- package/lib/cjs/dto/public/PlaceCommon.d.ts +10 -2
- package/lib/mjs/OrgApi.d.ts +3 -2
- package/lib/mjs/OrgApi.js +3 -2
- package/lib/mjs/dto/public/PlaceCommon.d.ts +10 -2
- package/package.json +3 -3
- package/src/OrgApi.ts +11 -2
- package/src/dto/public/PlaceCommon.ts +12 -2
package/lib/cjs/OrgApi.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { OrgQueryDto } from "./dto/org/OrgQueryDto";
|
|
|
6
6
|
import { OrgReadDto } from "./dto/org/OrgReadDto";
|
|
7
7
|
import { OrgUpdateReadDto } from "./dto/org/OrgUpdateReadDto";
|
|
8
8
|
import { OrgListDto } from "./dto/org/OrgListDto";
|
|
9
|
-
import { AntiforgeryRequestToken, CustomCulture, EntityApi, IApp, IdResultPayload, ResultPayload, StringIdResultPayload } from "@etsoo/appscript";
|
|
9
|
+
import { AntiforgeryRequestToken, AppActionData, CustomCulture, EntityApi, IApp, IdResultPayload, ResultPayload, StringIdResultPayload } from "@etsoo/appscript";
|
|
10
10
|
import { OrgListRQ } from "./rq/org/OrgListRQ";
|
|
11
11
|
import { OrgGetMyRQ } from "./rq/org/OrgGetMyRQ";
|
|
12
12
|
import { OrgGetMyData } from "./dto/org/OrgGetMyData";
|
|
@@ -212,10 +212,11 @@ export declare class OrgApi extends EntityApi {
|
|
|
212
212
|
* Upload profle attachments
|
|
213
213
|
* @param id Profile id
|
|
214
214
|
* @param files Files
|
|
215
|
+
* @param action Action data
|
|
215
216
|
* @param payload Payload
|
|
216
217
|
* @returns Result
|
|
217
218
|
*/
|
|
218
|
-
uploadProfileFiles(id: number, files: FileList, payload?: ResultPayload): Promise<import("@etsoo/shared").IActionResult<{}> | undefined>;
|
|
219
|
+
uploadProfileFiles(id: number, files: FileList, action: AppActionData, payload?: ResultPayload): Promise<import("@etsoo/shared").IActionResult<{}> | undefined>;
|
|
219
220
|
/**
|
|
220
221
|
* Update read
|
|
221
222
|
* @param id Id
|
package/lib/cjs/OrgApi.js
CHANGED
|
@@ -252,11 +252,12 @@ class OrgApi extends appscript_1.EntityApi {
|
|
|
252
252
|
* Upload profle attachments
|
|
253
253
|
* @param id Profile id
|
|
254
254
|
* @param files Files
|
|
255
|
+
* @param action Action data
|
|
255
256
|
* @param payload Payload
|
|
256
257
|
* @returns Result
|
|
257
258
|
*/
|
|
258
|
-
uploadProfileFiles(id, files, payload) {
|
|
259
|
-
return this.api.post(`${this.flag}/UploadProfileFiles/${id}`, files, payload);
|
|
259
|
+
uploadProfileFiles(id, files, action, payload) {
|
|
260
|
+
return this.api.post(`${this.flag}/UploadProfileFiles/${id}?action=${encodeURIComponent(JSON.stringify(action))}`, files, payload);
|
|
260
261
|
}
|
|
261
262
|
/**
|
|
262
263
|
* Update read
|
|
@@ -37,7 +37,15 @@ export type PlaceCommon = {
|
|
|
37
37
|
*/
|
|
38
38
|
district?: string;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Route, 路线
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
route?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Street number, 门牌号
|
|
45
|
+
*/
|
|
46
|
+
street?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Postal code, 邮政编码
|
|
49
|
+
*/
|
|
50
|
+
postalCode?: string;
|
|
43
51
|
};
|
package/lib/mjs/OrgApi.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { OrgQueryDto } from "./dto/org/OrgQueryDto";
|
|
|
6
6
|
import { OrgReadDto } from "./dto/org/OrgReadDto";
|
|
7
7
|
import { OrgUpdateReadDto } from "./dto/org/OrgUpdateReadDto";
|
|
8
8
|
import { OrgListDto } from "./dto/org/OrgListDto";
|
|
9
|
-
import { AntiforgeryRequestToken, CustomCulture, EntityApi, IApp, IdResultPayload, ResultPayload, StringIdResultPayload } from "@etsoo/appscript";
|
|
9
|
+
import { AntiforgeryRequestToken, AppActionData, CustomCulture, EntityApi, IApp, IdResultPayload, ResultPayload, StringIdResultPayload } from "@etsoo/appscript";
|
|
10
10
|
import { OrgListRQ } from "./rq/org/OrgListRQ";
|
|
11
11
|
import { OrgGetMyRQ } from "./rq/org/OrgGetMyRQ";
|
|
12
12
|
import { OrgGetMyData } from "./dto/org/OrgGetMyData";
|
|
@@ -212,10 +212,11 @@ export declare class OrgApi extends EntityApi {
|
|
|
212
212
|
* Upload profle attachments
|
|
213
213
|
* @param id Profile id
|
|
214
214
|
* @param files Files
|
|
215
|
+
* @param action Action data
|
|
215
216
|
* @param payload Payload
|
|
216
217
|
* @returns Result
|
|
217
218
|
*/
|
|
218
|
-
uploadProfileFiles(id: number, files: FileList, payload?: ResultPayload): Promise<import("@etsoo/shared").IActionResult<{}> | undefined>;
|
|
219
|
+
uploadProfileFiles(id: number, files: FileList, action: AppActionData, payload?: ResultPayload): Promise<import("@etsoo/shared").IActionResult<{}> | undefined>;
|
|
219
220
|
/**
|
|
220
221
|
* Update read
|
|
221
222
|
* @param id Id
|
package/lib/mjs/OrgApi.js
CHANGED
|
@@ -249,11 +249,12 @@ export class OrgApi extends EntityApi {
|
|
|
249
249
|
* Upload profle attachments
|
|
250
250
|
* @param id Profile id
|
|
251
251
|
* @param files Files
|
|
252
|
+
* @param action Action data
|
|
252
253
|
* @param payload Payload
|
|
253
254
|
* @returns Result
|
|
254
255
|
*/
|
|
255
|
-
uploadProfileFiles(id, files, payload) {
|
|
256
|
-
return this.api.post(`${this.flag}/UploadProfileFiles/${id}`, files, payload);
|
|
256
|
+
uploadProfileFiles(id, files, action, payload) {
|
|
257
|
+
return this.api.post(`${this.flag}/UploadProfileFiles/${id}?action=${encodeURIComponent(JSON.stringify(action))}`, files, payload);
|
|
257
258
|
}
|
|
258
259
|
/**
|
|
259
260
|
* Update read
|
|
@@ -37,7 +37,15 @@ export type PlaceCommon = {
|
|
|
37
37
|
*/
|
|
38
38
|
district?: string;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Route, 路线
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
route?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Street number, 门牌号
|
|
45
|
+
*/
|
|
46
|
+
street?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Postal code, 邮政编码
|
|
49
|
+
*/
|
|
50
|
+
postalCode?: string;
|
|
43
51
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/smarterp-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.91",
|
|
4
4
|
"description": "TypeScript APIs for SmartERP Core",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"vitest": "^3.2.4"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@etsoo/appscript": "^1.6.
|
|
57
|
-
"@etsoo/materialui": "^1.5.
|
|
56
|
+
"@etsoo/appscript": "^1.6.42",
|
|
57
|
+
"@etsoo/materialui": "^1.5.66",
|
|
58
58
|
"@etsoo/react": "^1.8.49",
|
|
59
59
|
"@etsoo/shared": "^1.2.75",
|
|
60
60
|
"@etsoo/toolpad": "^1.0.40",
|
package/src/OrgApi.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { OrgUpdateReadDto } from "./dto/org/OrgUpdateReadDto";
|
|
|
8
8
|
import { OrgListDto } from "./dto/org/OrgListDto";
|
|
9
9
|
import {
|
|
10
10
|
AntiforgeryRequestToken,
|
|
11
|
+
AppActionData,
|
|
11
12
|
CustomCulture,
|
|
12
13
|
EntityApi,
|
|
13
14
|
IApp,
|
|
@@ -326,12 +327,20 @@ export class OrgApi extends EntityApi {
|
|
|
326
327
|
* Upload profle attachments
|
|
327
328
|
* @param id Profile id
|
|
328
329
|
* @param files Files
|
|
330
|
+
* @param action Action data
|
|
329
331
|
* @param payload Payload
|
|
330
332
|
* @returns Result
|
|
331
333
|
*/
|
|
332
|
-
uploadProfileFiles(
|
|
334
|
+
uploadProfileFiles(
|
|
335
|
+
id: number,
|
|
336
|
+
files: FileList,
|
|
337
|
+
action: AppActionData,
|
|
338
|
+
payload?: ResultPayload
|
|
339
|
+
) {
|
|
333
340
|
return this.api.post(
|
|
334
|
-
`${this.flag}/UploadProfileFiles/${id}
|
|
341
|
+
`${this.flag}/UploadProfileFiles/${id}?action=${encodeURIComponent(
|
|
342
|
+
JSON.stringify(action)
|
|
343
|
+
)}`,
|
|
335
344
|
files,
|
|
336
345
|
payload
|
|
337
346
|
);
|
|
@@ -46,7 +46,17 @@ export type PlaceCommon = {
|
|
|
46
46
|
district?: string;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Route, 路线
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
route?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Street number, 门牌号
|
|
55
|
+
*/
|
|
56
|
+
street?: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Postal code, 邮政编码
|
|
60
|
+
*/
|
|
61
|
+
postalCode?: string;
|
|
52
62
|
};
|