@etsoo/smarterp-core 1.0.47 → 1.0.48

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.
@@ -13,6 +13,7 @@ import { OrgGetMyData } from "./dto/org/OrgGetMyData";
13
13
  import { OrgDownloadKind } from "./dto/org/OrgDownloadKind";
14
14
  import { SendEmailMessage } from "./rq/org/SendEmailMessage";
15
15
  import { SendSMSMessage } from "./rq/org/SendSMSMessage";
16
+ import { SendProfileEmailRQ } from "./rq/org/SendProfileEmailRQ";
16
17
  /**
17
18
  * Organization API
18
19
  * 机构接口
@@ -111,6 +112,13 @@ export declare class OrgApi extends EntityApi {
111
112
  * @returns Result
112
113
  */
113
114
  sendSMS(message: SendSMSMessage, payload?: StringIdResultPayload): Promise<import("@etsoo/shared").IdActionResult<string> | undefined>;
115
+ /**
116
+ * Send profile email
117
+ * @param rq Request data
118
+ * @param payload Payload
119
+ * @returns Result
120
+ */
121
+ sendProfileEmail(rq: SendProfileEmailRQ, payload?: ResultPayload): Promise<import("@etsoo/shared").IActionResult<{}> | undefined>;
114
122
  /**
115
123
  * Update
116
124
  * @param rq Request data
package/lib/cjs/OrgApi.js CHANGED
@@ -138,6 +138,15 @@ class OrgApi extends appscript_1.EntityApi {
138
138
  sendSMS(message, payload) {
139
139
  return this.api.post(`${this.flag}/SendSMS`, message, payload);
140
140
  }
141
+ /**
142
+ * Send profile email
143
+ * @param rq Request data
144
+ * @param payload Payload
145
+ * @returns Result
146
+ */
147
+ sendProfileEmail(rq, payload) {
148
+ return this.api.post(`${this.flag}/SendProfileEmail`, rq, payload);
149
+ }
141
150
  /**
142
151
  * Update
143
152
  * @param rq Request data
@@ -49,6 +49,7 @@ export * from "./rq/org/OrgListRQ";
49
49
  export * from "./rq/org/OrgQueryRQ";
50
50
  export * from "./rq/org/OrgUpdateRQ";
51
51
  export * from "./rq/org/SendEmailMessage";
52
+ export * from "./rq/org/SendProfileEmailRQ";
52
53
  export * from "./rq/org/SendSMSMessage";
53
54
  export * from "./rq/public/AcceptInvitationRQ";
54
55
  export * from "./rq/public/CreateBarcodeRQ";
package/lib/cjs/index.js CHANGED
@@ -68,6 +68,7 @@ __exportStar(require("./rq/org/OrgListRQ"), exports);
68
68
  __exportStar(require("./rq/org/OrgQueryRQ"), exports);
69
69
  __exportStar(require("./rq/org/OrgUpdateRQ"), exports);
70
70
  __exportStar(require("./rq/org/SendEmailMessage"), exports);
71
+ __exportStar(require("./rq/org/SendProfileEmailRQ"), exports);
71
72
  __exportStar(require("./rq/org/SendSMSMessage"), exports);
72
73
  __exportStar(require("./rq/public/AcceptInvitationRQ"), exports);
73
74
  __exportStar(require("./rq/public/CreateBarcodeRQ"), exports);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Person profile send email request data
3
+ * 人员档案发送邮件请求数据
4
+ */
5
+ export type SendProfileEmailRQ = {
6
+ /**
7
+ * Profile ID
8
+ * 档案 ID
9
+ */
10
+ id: number;
11
+ /**
12
+ * Persons
13
+ * 人员编号数组
14
+ */
15
+ persons: number[];
16
+ /**
17
+ * Message
18
+ * 留言
19
+ */
20
+ message?: string;
21
+ /**
22
+ * Include attachments or not
23
+ * 是否包含附件
24
+ */
25
+ includeAttachments?: boolean;
26
+ /**
27
+ * Include comments or not
28
+ * 是否包含评论
29
+ */
30
+ includeComments?: boolean;
31
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,6 +13,7 @@ import { OrgGetMyData } from "./dto/org/OrgGetMyData";
13
13
  import { OrgDownloadKind } from "./dto/org/OrgDownloadKind";
14
14
  import { SendEmailMessage } from "./rq/org/SendEmailMessage";
15
15
  import { SendSMSMessage } from "./rq/org/SendSMSMessage";
16
+ import { SendProfileEmailRQ } from "./rq/org/SendProfileEmailRQ";
16
17
  /**
17
18
  * Organization API
18
19
  * 机构接口
@@ -111,6 +112,13 @@ export declare class OrgApi extends EntityApi {
111
112
  * @returns Result
112
113
  */
113
114
  sendSMS(message: SendSMSMessage, payload?: StringIdResultPayload): Promise<import("@etsoo/shared").IdActionResult<string> | undefined>;
115
+ /**
116
+ * Send profile email
117
+ * @param rq Request data
118
+ * @param payload Payload
119
+ * @returns Result
120
+ */
121
+ sendProfileEmail(rq: SendProfileEmailRQ, payload?: ResultPayload): Promise<import("@etsoo/shared").IActionResult<{}> | undefined>;
114
122
  /**
115
123
  * Update
116
124
  * @param rq Request data
package/lib/mjs/OrgApi.js CHANGED
@@ -135,6 +135,15 @@ export class OrgApi extends EntityApi {
135
135
  sendSMS(message, payload) {
136
136
  return this.api.post(`${this.flag}/SendSMS`, message, payload);
137
137
  }
138
+ /**
139
+ * Send profile email
140
+ * @param rq Request data
141
+ * @param payload Payload
142
+ * @returns Result
143
+ */
144
+ sendProfileEmail(rq, payload) {
145
+ return this.api.post(`${this.flag}/SendProfileEmail`, rq, payload);
146
+ }
138
147
  /**
139
148
  * Update
140
149
  * @param rq Request data
@@ -49,6 +49,7 @@ export * from "./rq/org/OrgListRQ";
49
49
  export * from "./rq/org/OrgQueryRQ";
50
50
  export * from "./rq/org/OrgUpdateRQ";
51
51
  export * from "./rq/org/SendEmailMessage";
52
+ export * from "./rq/org/SendProfileEmailRQ";
52
53
  export * from "./rq/org/SendSMSMessage";
53
54
  export * from "./rq/public/AcceptInvitationRQ";
54
55
  export * from "./rq/public/CreateBarcodeRQ";
package/lib/mjs/index.js CHANGED
@@ -52,6 +52,7 @@ export * from "./rq/org/OrgListRQ";
52
52
  export * from "./rq/org/OrgQueryRQ";
53
53
  export * from "./rq/org/OrgUpdateRQ";
54
54
  export * from "./rq/org/SendEmailMessage";
55
+ export * from "./rq/org/SendProfileEmailRQ";
55
56
  export * from "./rq/org/SendSMSMessage";
56
57
  export * from "./rq/public/AcceptInvitationRQ";
57
58
  export * from "./rq/public/CreateBarcodeRQ";
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Person profile send email request data
3
+ * 人员档案发送邮件请求数据
4
+ */
5
+ export type SendProfileEmailRQ = {
6
+ /**
7
+ * Profile ID
8
+ * 档案 ID
9
+ */
10
+ id: number;
11
+ /**
12
+ * Persons
13
+ * 人员编号数组
14
+ */
15
+ persons: number[];
16
+ /**
17
+ * Message
18
+ * 留言
19
+ */
20
+ message?: string;
21
+ /**
22
+ * Include attachments or not
23
+ * 是否包含附件
24
+ */
25
+ includeAttachments?: boolean;
26
+ /**
27
+ * Include comments or not
28
+ * 是否包含评论
29
+ */
30
+ includeComments?: boolean;
31
+ };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -50,11 +50,11 @@
50
50
  "@vitejs/plugin-react": "^4.4.1",
51
51
  "jsdom": "^26.1.0",
52
52
  "typescript": "^5.8.3",
53
- "vitest": "^3.1.1"
53
+ "vitest": "^3.1.2"
54
54
  },
55
55
  "dependencies": {
56
56
  "@etsoo/appscript": "^1.6.26",
57
- "@etsoo/materialui": "^1.5.31",
57
+ "@etsoo/materialui": "^1.5.32",
58
58
  "@etsoo/react": "^1.8.40",
59
59
  "@etsoo/shared": "^1.2.69",
60
60
  "@etsoo/toolpad": "^1.0.26",
package/src/OrgApi.ts CHANGED
@@ -21,6 +21,7 @@ import { OrgDownloadKind } from "./dto/org/OrgDownloadKind";
21
21
  import { DataTypes } from "@etsoo/shared";
22
22
  import { SendEmailMessage } from "./rq/org/SendEmailMessage";
23
23
  import { SendSMSMessage } from "./rq/org/SendSMSMessage";
24
+ import { SendProfileEmailRQ } from "./rq/org/SendProfileEmailRQ";
24
25
 
25
26
  /**
26
27
  * Organization API
@@ -177,6 +178,16 @@ export class OrgApi extends EntityApi {
177
178
  return this.api.post(`${this.flag}/SendSMS`, message, payload);
178
179
  }
179
180
 
181
+ /**
182
+ * Send profile email
183
+ * @param rq Request data
184
+ * @param payload Payload
185
+ * @returns Result
186
+ */
187
+ sendProfileEmail(rq: SendProfileEmailRQ, payload?: ResultPayload) {
188
+ return this.api.post(`${this.flag}/SendProfileEmail`, rq, payload);
189
+ }
190
+
180
191
  /**
181
192
  * Update
182
193
  * @param rq Request data
package/src/index.ts CHANGED
@@ -62,6 +62,7 @@ export * from "./rq/org/OrgListRQ";
62
62
  export * from "./rq/org/OrgQueryRQ";
63
63
  export * from "./rq/org/OrgUpdateRQ";
64
64
  export * from "./rq/org/SendEmailMessage";
65
+ export * from "./rq/org/SendProfileEmailRQ";
65
66
  export * from "./rq/org/SendSMSMessage";
66
67
 
67
68
  export * from "./rq/public/AcceptInvitationRQ";
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Person profile send email request data
3
+ * 人员档案发送邮件请求数据
4
+ */
5
+ export type SendProfileEmailRQ = {
6
+ /**
7
+ * Profile ID
8
+ * 档案 ID
9
+ */
10
+ id: number;
11
+
12
+ /**
13
+ * Persons
14
+ * 人员编号数组
15
+ */
16
+ persons: number[];
17
+
18
+ /**
19
+ * Message
20
+ * 留言
21
+ */
22
+ message?: string;
23
+
24
+ /**
25
+ * Include attachments or not
26
+ * 是否包含附件
27
+ */
28
+ includeAttachments?: boolean;
29
+
30
+ /**
31
+ * Include comments or not
32
+ * 是否包含评论
33
+ */
34
+ includeComments?: boolean;
35
+ };