@etsoo/smarterp-crm 1.0.0
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/.gitattributes +2 -0
- package/.github/workflows/main.yml +60 -0
- package/LICENSE +21 -0
- package/README.md +17 -0
- package/__tests__/PersonApi.ts +15 -0
- package/__tests__/app/TestApp.ts +139 -0
- package/__tests__/tsconfig.json +20 -0
- package/babel.config.json +11 -0
- package/lib/cjs/CrmApp.d.ts +186 -0
- package/lib/cjs/CrmApp.js +170 -0
- package/lib/cjs/PersonApi.d.ts +38 -0
- package/lib/cjs/PersonApi.js +45 -0
- package/lib/cjs/PersonProfileApi.d.ts +54 -0
- package/lib/cjs/PersonProfileApi.js +63 -0
- package/lib/cjs/components/index.d.ts +1 -0
- package/lib/cjs/components/index.js +18 -0
- package/lib/cjs/components/person/PersonTiplist.d.ts +28 -0
- package/lib/cjs/components/person/PersonTiplist.js +27 -0
- package/lib/cjs/dto/person/AddressItem.d.ts +36 -0
- package/lib/cjs/dto/person/AddressItem.js +12 -0
- package/lib/cjs/dto/person/CategoryItem.d.ts +16 -0
- package/lib/cjs/dto/person/CategoryItem.js +2 -0
- package/lib/cjs/dto/person/ContactItem.d.ts +30 -0
- package/lib/cjs/dto/person/ContactItem.js +2 -0
- package/lib/cjs/dto/person/MaritalStatus.d.ts +36 -0
- package/lib/cjs/dto/person/MaritalStatus.js +40 -0
- package/lib/cjs/dto/person/PersonDegree.d.ts +26 -0
- package/lib/cjs/dto/person/PersonDegree.js +30 -0
- package/lib/cjs/dto/person/PersonEducation.d.ts +111 -0
- package/lib/cjs/dto/person/PersonEducation.js +115 -0
- package/lib/cjs/dto/person/PersonListDto.d.ts +6 -0
- package/lib/cjs/dto/person/PersonListDto.js +2 -0
- package/lib/cjs/dto/person/PersonQueryData.d.ts +24 -0
- package/lib/cjs/dto/person/PersonQueryData.js +2 -0
- package/lib/cjs/dto/person/PersonReadDto.d.ts +206 -0
- package/lib/cjs/dto/person/PersonReadDto.js +2 -0
- package/lib/cjs/dto/person/PersonTitle.d.ts +36 -0
- package/lib/cjs/dto/person/PersonTitle.js +40 -0
- package/lib/cjs/dto/personProfile/PersonProfileKind.d.ts +26 -0
- package/lib/cjs/dto/personProfile/PersonProfileKind.js +30 -0
- package/lib/cjs/dto/personProfile/PersonProfileListData.d.ts +16 -0
- package/lib/cjs/dto/personProfile/PersonProfileListData.js +2 -0
- package/lib/cjs/dto/personProfile/PersonProfileQueryData.d.ts +43 -0
- package/lib/cjs/dto/personProfile/PersonProfileQueryData.js +2 -0
- package/lib/cjs/dto/personProfile/PersonProfileUpdateReadData.d.ts +73 -0
- package/lib/cjs/dto/personProfile/PersonProfileUpdateReadData.js +2 -0
- package/lib/cjs/dto/personProfile/PersonProfileViewData.d.ts +5 -0
- package/lib/cjs/dto/personProfile/PersonProfileViewData.js +2 -0
- package/lib/cjs/i18n/CrmCulture.d.ts +244 -0
- package/lib/cjs/i18n/CrmCulture.js +23 -0
- package/lib/cjs/i18n/en.json +74 -0
- package/lib/cjs/i18n/zh-Hans.json +74 -0
- package/lib/cjs/i18n/zh-Hant.json +74 -0
- package/lib/cjs/index.d.ts +20 -0
- package/lib/cjs/index.js +40 -0
- package/lib/cjs/rq/person/PersonListRQ.d.ts +6 -0
- package/lib/cjs/rq/person/PersonListRQ.js +2 -0
- package/lib/cjs/rq/person/PersonQueryRQ.d.ts +6 -0
- package/lib/cjs/rq/person/PersonQueryRQ.js +2 -0
- package/lib/cjs/rq/personProfile/PersonProfileCreateRQ.d.ts +73 -0
- package/lib/cjs/rq/personProfile/PersonProfileCreateRQ.js +2 -0
- package/lib/cjs/rq/personProfile/PersonProfileListRQ.d.ts +48 -0
- package/lib/cjs/rq/personProfile/PersonProfileListRQ.js +2 -0
- package/lib/cjs/rq/personProfile/PersonProfileQueryRQ.d.ts +12 -0
- package/lib/cjs/rq/personProfile/PersonProfileQueryRQ.js +2 -0
- package/lib/mjs/CrmApp.d.ts +186 -0
- package/lib/mjs/CrmApp.js +165 -0
- package/lib/mjs/PersonApi.d.ts +38 -0
- package/lib/mjs/PersonApi.js +41 -0
- package/lib/mjs/PersonProfileApi.d.ts +54 -0
- package/lib/mjs/PersonProfileApi.js +59 -0
- package/lib/mjs/components/index.d.ts +1 -0
- package/lib/mjs/components/index.js +2 -0
- package/lib/mjs/components/person/PersonTiplist.d.ts +28 -0
- package/lib/mjs/components/person/PersonTiplist.js +24 -0
- package/lib/mjs/dto/person/AddressItem.d.ts +36 -0
- package/lib/mjs/dto/person/AddressItem.js +11 -0
- package/lib/mjs/dto/person/CategoryItem.d.ts +16 -0
- package/lib/mjs/dto/person/CategoryItem.js +1 -0
- package/lib/mjs/dto/person/ContactItem.d.ts +30 -0
- package/lib/mjs/dto/person/ContactItem.js +1 -0
- package/lib/mjs/dto/person/MaritalStatus.d.ts +36 -0
- package/lib/mjs/dto/person/MaritalStatus.js +37 -0
- package/lib/mjs/dto/person/PersonDegree.d.ts +26 -0
- package/lib/mjs/dto/person/PersonDegree.js +27 -0
- package/lib/mjs/dto/person/PersonEducation.d.ts +111 -0
- package/lib/mjs/dto/person/PersonEducation.js +112 -0
- package/lib/mjs/dto/person/PersonListDto.d.ts +6 -0
- package/lib/mjs/dto/person/PersonListDto.js +1 -0
- package/lib/mjs/dto/person/PersonQueryData.d.ts +24 -0
- package/lib/mjs/dto/person/PersonQueryData.js +1 -0
- package/lib/mjs/dto/person/PersonReadDto.d.ts +206 -0
- package/lib/mjs/dto/person/PersonReadDto.js +1 -0
- package/lib/mjs/dto/person/PersonTitle.d.ts +36 -0
- package/lib/mjs/dto/person/PersonTitle.js +37 -0
- package/lib/mjs/dto/personProfile/PersonProfileKind.d.ts +26 -0
- package/lib/mjs/dto/personProfile/PersonProfileKind.js +27 -0
- package/lib/mjs/dto/personProfile/PersonProfileListData.d.ts +16 -0
- package/lib/mjs/dto/personProfile/PersonProfileListData.js +1 -0
- package/lib/mjs/dto/personProfile/PersonProfileQueryData.d.ts +43 -0
- package/lib/mjs/dto/personProfile/PersonProfileQueryData.js +1 -0
- package/lib/mjs/dto/personProfile/PersonProfileUpdateReadData.d.ts +73 -0
- package/lib/mjs/dto/personProfile/PersonProfileUpdateReadData.js +1 -0
- package/lib/mjs/dto/personProfile/PersonProfileViewData.d.ts +5 -0
- package/lib/mjs/dto/personProfile/PersonProfileViewData.js +1 -0
- package/lib/mjs/i18n/CrmCulture.d.ts +460 -0
- package/lib/mjs/i18n/CrmCulture.js +20 -0
- package/lib/mjs/i18n/en.json +74 -0
- package/lib/mjs/i18n/zh-Hans.json +74 -0
- package/lib/mjs/i18n/zh-Hant.json +74 -0
- package/lib/mjs/index.d.ts +20 -0
- package/lib/mjs/index.js +24 -0
- package/lib/mjs/rq/person/PersonListRQ.d.ts +6 -0
- package/lib/mjs/rq/person/PersonListRQ.js +1 -0
- package/lib/mjs/rq/person/PersonQueryRQ.d.ts +6 -0
- package/lib/mjs/rq/person/PersonQueryRQ.js +1 -0
- package/lib/mjs/rq/personProfile/PersonProfileCreateRQ.d.ts +73 -0
- package/lib/mjs/rq/personProfile/PersonProfileCreateRQ.js +1 -0
- package/lib/mjs/rq/personProfile/PersonProfileListRQ.d.ts +48 -0
- package/lib/mjs/rq/personProfile/PersonProfileListRQ.js +1 -0
- package/lib/mjs/rq/personProfile/PersonProfileQueryRQ.d.ts +12 -0
- package/lib/mjs/rq/personProfile/PersonProfileQueryRQ.js +1 -0
- package/package.json +64 -0
- package/src/CrmApp.ts +270 -0
- package/src/PersonApi.ts +50 -0
- package/src/PersonProfileApi.ts +81 -0
- package/src/components/index.ts +2 -0
- package/src/components/person/PersonTiplist.tsx +75 -0
- package/src/dto/person/AddressItem.ts +39 -0
- package/src/dto/person/CategoryItem.ts +17 -0
- package/src/dto/person/ContactItem.ts +38 -0
- package/src/dto/person/MaritalStatus.ts +41 -0
- package/src/dto/person/PersonDegree.ts +29 -0
- package/src/dto/person/PersonEducation.ts +131 -0
- package/src/dto/person/PersonListDto.ts +7 -0
- package/src/dto/person/PersonQueryData.ts +28 -0
- package/src/dto/person/PersonReadDto.ts +242 -0
- package/src/dto/person/PersonTitle.ts +41 -0
- package/src/dto/personProfile/PersonProfileKind.ts +29 -0
- package/src/dto/personProfile/PersonProfileListData.ts +17 -0
- package/src/dto/personProfile/PersonProfileQueryData.ts +50 -0
- package/src/dto/personProfile/PersonProfileUpdateReadData.ts +86 -0
- package/src/dto/personProfile/PersonProfileViewData.ts +5 -0
- package/src/i18n/CrmCulture.ts +21 -0
- package/src/i18n/en.json +74 -0
- package/src/i18n/zh-Hans.json +74 -0
- package/src/i18n/zh-Hant.json +74 -0
- package/src/index.ts +30 -0
- package/src/rq/person/PersonListRQ.ts +7 -0
- package/src/rq/person/PersonQueryRQ.ts +7 -0
- package/src/rq/personProfile/PersonProfileCreateRQ.ts +86 -0
- package/src/rq/personProfile/PersonProfileListRQ.ts +56 -0
- package/src/rq/personProfile/PersonProfileQueryRQ.ts +13 -0
- package/tsconfig.cjs.json +20 -0
- package/tsconfig.json +20 -0
- package/vite.config.mts +12 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Titles
|
|
3
|
+
* 称谓
|
|
4
|
+
*/
|
|
5
|
+
export declare enum PersonTitle {
|
|
6
|
+
/**
|
|
7
|
+
* Mr.
|
|
8
|
+
* 先生
|
|
9
|
+
*/
|
|
10
|
+
MR = 1,
|
|
11
|
+
/**
|
|
12
|
+
* Ms.
|
|
13
|
+
* 女士
|
|
14
|
+
*/
|
|
15
|
+
MS = 2,
|
|
16
|
+
/**
|
|
17
|
+
* Mrs.
|
|
18
|
+
* 夫人
|
|
19
|
+
*/
|
|
20
|
+
MRS = 3,
|
|
21
|
+
/**
|
|
22
|
+
* Miss
|
|
23
|
+
* 小姐
|
|
24
|
+
*/
|
|
25
|
+
Miss = 4,
|
|
26
|
+
/**
|
|
27
|
+
* Dr.
|
|
28
|
+
* 博士
|
|
29
|
+
*/
|
|
30
|
+
DR = 11,
|
|
31
|
+
/**
|
|
32
|
+
* Prof.
|
|
33
|
+
* 教授
|
|
34
|
+
*/
|
|
35
|
+
Prof = 12
|
|
36
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Titles
|
|
3
|
+
* 称谓
|
|
4
|
+
*/
|
|
5
|
+
export var PersonTitle;
|
|
6
|
+
(function (PersonTitle) {
|
|
7
|
+
/**
|
|
8
|
+
* Mr.
|
|
9
|
+
* 先生
|
|
10
|
+
*/
|
|
11
|
+
PersonTitle[PersonTitle["MR"] = 1] = "MR";
|
|
12
|
+
/**
|
|
13
|
+
* Ms.
|
|
14
|
+
* 女士
|
|
15
|
+
*/
|
|
16
|
+
PersonTitle[PersonTitle["MS"] = 2] = "MS";
|
|
17
|
+
/**
|
|
18
|
+
* Mrs.
|
|
19
|
+
* 夫人
|
|
20
|
+
*/
|
|
21
|
+
PersonTitle[PersonTitle["MRS"] = 3] = "MRS";
|
|
22
|
+
/**
|
|
23
|
+
* Miss
|
|
24
|
+
* 小姐
|
|
25
|
+
*/
|
|
26
|
+
PersonTitle[PersonTitle["Miss"] = 4] = "Miss";
|
|
27
|
+
/**
|
|
28
|
+
* Dr.
|
|
29
|
+
* 博士
|
|
30
|
+
*/
|
|
31
|
+
PersonTitle[PersonTitle["DR"] = 11] = "DR";
|
|
32
|
+
/**
|
|
33
|
+
* Prof.
|
|
34
|
+
* 教授
|
|
35
|
+
*/
|
|
36
|
+
PersonTitle[PersonTitle["Prof"] = 12] = "Prof";
|
|
37
|
+
})(PersonTitle || (PersonTitle = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Person profile kind
|
|
3
|
+
* 个人资料种类
|
|
4
|
+
*/
|
|
5
|
+
export declare enum PersonProfileKind {
|
|
6
|
+
/**
|
|
7
|
+
* Normal
|
|
8
|
+
* 默认
|
|
9
|
+
*/
|
|
10
|
+
Normal = 1,
|
|
11
|
+
/**
|
|
12
|
+
* Schedule
|
|
13
|
+
* 日程
|
|
14
|
+
*/
|
|
15
|
+
Schedule = 106,
|
|
16
|
+
/**
|
|
17
|
+
* Finance
|
|
18
|
+
* 财务
|
|
19
|
+
*/
|
|
20
|
+
Finance = 108,
|
|
21
|
+
/**
|
|
22
|
+
* Agile
|
|
23
|
+
* 敏捷管理
|
|
24
|
+
*/
|
|
25
|
+
Agile = 110
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Person profile kind
|
|
3
|
+
* 个人资料种类
|
|
4
|
+
*/
|
|
5
|
+
export var PersonProfileKind;
|
|
6
|
+
(function (PersonProfileKind) {
|
|
7
|
+
/**
|
|
8
|
+
* Normal
|
|
9
|
+
* 默认
|
|
10
|
+
*/
|
|
11
|
+
PersonProfileKind[PersonProfileKind["Normal"] = 1] = "Normal";
|
|
12
|
+
/**
|
|
13
|
+
* Schedule
|
|
14
|
+
* 日程
|
|
15
|
+
*/
|
|
16
|
+
PersonProfileKind[PersonProfileKind["Schedule"] = 106] = "Schedule";
|
|
17
|
+
/**
|
|
18
|
+
* Finance
|
|
19
|
+
* 财务
|
|
20
|
+
*/
|
|
21
|
+
PersonProfileKind[PersonProfileKind["Finance"] = 108] = "Finance";
|
|
22
|
+
/**
|
|
23
|
+
* Agile
|
|
24
|
+
* 敏捷管理
|
|
25
|
+
*/
|
|
26
|
+
PersonProfileKind[PersonProfileKind["Agile"] = 110] = "Agile";
|
|
27
|
+
})(PersonProfileKind || (PersonProfileKind = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EntityStatus } from "@etsoo/appscript";
|
|
2
|
+
import { PersonProfileKind } from "./PersonProfileKind";
|
|
3
|
+
/**
|
|
4
|
+
* Person profile query data
|
|
5
|
+
* 人员档案查询数据
|
|
6
|
+
*/
|
|
7
|
+
export type PersonProfileQueryData = {
|
|
8
|
+
/**
|
|
9
|
+
* Id
|
|
10
|
+
* 编号
|
|
11
|
+
*/
|
|
12
|
+
id: number;
|
|
13
|
+
/**
|
|
14
|
+
* Kind
|
|
15
|
+
* 类型
|
|
16
|
+
*/
|
|
17
|
+
kind?: PersonProfileKind;
|
|
18
|
+
/**
|
|
19
|
+
* Title
|
|
20
|
+
* 标题
|
|
21
|
+
*/
|
|
22
|
+
title: string;
|
|
23
|
+
/**
|
|
24
|
+
* Happen date
|
|
25
|
+
* 发生日期
|
|
26
|
+
*/
|
|
27
|
+
happenDate?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Happen date end
|
|
30
|
+
* 发生日期结束
|
|
31
|
+
*/
|
|
32
|
+
happenDateEnd?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Status
|
|
35
|
+
* 状况
|
|
36
|
+
*/
|
|
37
|
+
status: EntityStatus;
|
|
38
|
+
/**
|
|
39
|
+
* Creation
|
|
40
|
+
* 登记时间
|
|
41
|
+
*/
|
|
42
|
+
creation: string;
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EntityStatus } from "@etsoo/appscript";
|
|
2
|
+
import { PersonProfileKind } from "./PersonProfileKind";
|
|
3
|
+
/**
|
|
4
|
+
* Person profile update read data
|
|
5
|
+
* 个人档案更新读取数据
|
|
6
|
+
*/
|
|
7
|
+
export type PersonProfileUpdateReadData = {
|
|
8
|
+
/**
|
|
9
|
+
* Id
|
|
10
|
+
* 编号
|
|
11
|
+
*/
|
|
12
|
+
id: number;
|
|
13
|
+
/**
|
|
14
|
+
* Person id
|
|
15
|
+
* 个人编号
|
|
16
|
+
*/
|
|
17
|
+
personId: number;
|
|
18
|
+
/**
|
|
19
|
+
* Other participants
|
|
20
|
+
* 其他参与者
|
|
21
|
+
*/
|
|
22
|
+
persons?: number[];
|
|
23
|
+
/**
|
|
24
|
+
* Order id
|
|
25
|
+
* 订单编号
|
|
26
|
+
*/
|
|
27
|
+
orderId?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Kind
|
|
30
|
+
* 类型
|
|
31
|
+
*/
|
|
32
|
+
kind: PersonProfileKind;
|
|
33
|
+
/**
|
|
34
|
+
* Title
|
|
35
|
+
* 标题
|
|
36
|
+
*/
|
|
37
|
+
title: string;
|
|
38
|
+
/**
|
|
39
|
+
* Comment
|
|
40
|
+
* 评价
|
|
41
|
+
*/
|
|
42
|
+
comment: string;
|
|
43
|
+
/**
|
|
44
|
+
* Location
|
|
45
|
+
* 位置
|
|
46
|
+
*/
|
|
47
|
+
location?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Location id
|
|
50
|
+
* 位置编号
|
|
51
|
+
*/
|
|
52
|
+
locationId?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Happen date
|
|
55
|
+
* 发生日期
|
|
56
|
+
*/
|
|
57
|
+
happenDate: string;
|
|
58
|
+
/**
|
|
59
|
+
* Happen date end
|
|
60
|
+
* 发生日期结束
|
|
61
|
+
*/
|
|
62
|
+
happenDateEnd?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Status
|
|
65
|
+
* 状态
|
|
66
|
+
*/
|
|
67
|
+
status: EntityStatus;
|
|
68
|
+
/**
|
|
69
|
+
* JSON data
|
|
70
|
+
* JSON 数据
|
|
71
|
+
*/
|
|
72
|
+
data?: string;
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|