@etsoo/smarterp-core 1.1.72 → 1.1.74

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.
@@ -45,7 +45,7 @@ export declare class DocumentApi extends EntityApi {
45
45
  * @param payload Payload
46
46
  * @returns Result
47
47
  */
48
- list(rq: DocumentListRQ, payload: IApiPayload<DocumentListData[]>): Promise<DocumentListData[] | undefined>;
48
+ list(rq: DocumentListRQ, payload?: IApiPayload<DocumentListData[]>): Promise<DocumentListData[] | undefined>;
49
49
  /**
50
50
  * Query
51
51
  * @param rq Request data
@@ -1,3 +1,4 @@
1
+ import { CustomFieldData } from "@etsoo/appscript";
1
2
  /**
2
3
  * Document list data
3
4
  * 文档列表数据
@@ -13,4 +14,9 @@ export type DocumentListData = {
13
14
  * 标题
14
15
  */
15
16
  title: string;
17
+ /**
18
+ * Parameters fields
19
+ * 自定义参数字段
20
+ */
21
+ parameters?: CustomFieldData[];
16
22
  };
@@ -45,7 +45,7 @@ export declare class DocumentApi extends EntityApi {
45
45
  * @param payload Payload
46
46
  * @returns Result
47
47
  */
48
- list(rq: DocumentListRQ, payload: IApiPayload<DocumentListData[]>): Promise<DocumentListData[] | undefined>;
48
+ list(rq: DocumentListRQ, payload?: IApiPayload<DocumentListData[]>): Promise<DocumentListData[] | undefined>;
49
49
  /**
50
50
  * Query
51
51
  * @param rq Request data
@@ -1,3 +1,4 @@
1
+ import { CustomFieldData } from "@etsoo/appscript";
1
2
  /**
2
3
  * Document list data
3
4
  * 文档列表数据
@@ -13,4 +14,9 @@ export type DocumentListData = {
13
14
  * 标题
14
15
  */
15
16
  title: string;
17
+ /**
18
+ * Parameters fields
19
+ * 自定义参数字段
20
+ */
21
+ parameters?: CustomFieldData[];
16
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.1.72",
3
+ "version": "1.1.74",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -67,7 +67,7 @@ export class DocumentApi extends EntityApi {
67
67
  * @param payload Payload
68
68
  * @returns Result
69
69
  */
70
- list(rq: DocumentListRQ, payload: IApiPayload<DocumentListData[]>) {
70
+ list(rq: DocumentListRQ, payload?: IApiPayload<DocumentListData[]>) {
71
71
  return this.listBase(rq, payload);
72
72
  }
73
73
 
@@ -1,3 +1,5 @@
1
+ import { CustomFieldData } from "@etsoo/appscript";
2
+
1
3
  /**
2
4
  * Document list data
3
5
  * 文档列表数据
@@ -14,4 +16,10 @@ export type DocumentListData = {
14
16
  * 标题
15
17
  */
16
18
  title: string;
19
+
20
+ /**
21
+ * Parameters fields
22
+ * 自定义参数字段
23
+ */
24
+ parameters?: CustomFieldData[];
17
25
  };