@etsoo/smarterp-core 1.0.0 → 1.0.2
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/__tests__/OrgApi.ts +6 -3
- package/__tests__/PublicApi.ts +3 -1
- package/__tests__/UserApi.ts +1 -1
- package/__tests__/tsconfig.json +12 -10
- package/lib/cjs/AppApi.d.ts +59 -1
- package/lib/cjs/AppApi.js +64 -1
- package/lib/cjs/AuthCodeApi.d.ts +29 -0
- package/lib/cjs/AuthCodeApi.js +50 -0
- package/lib/cjs/CoreApp.d.ts +116 -10
- package/lib/cjs/CoreApp.js +72 -6
- package/lib/cjs/CoreUtils.d.ts +4 -0
- package/lib/cjs/CoreUtils.js +2 -0
- package/lib/cjs/ICoreServiceApp.d.ts +30 -0
- package/lib/cjs/ICoreServiceApp.js +49 -0
- package/lib/cjs/MemberApi.d.ts +41 -1
- package/lib/cjs/MemberApi.js +46 -0
- package/lib/cjs/OrgApi.d.ts +9 -2
- package/lib/cjs/OrgApi.js +12 -3
- package/lib/cjs/PublicApi.d.ts +17 -1
- package/lib/cjs/PublicApi.js +20 -2
- package/lib/cjs/UserApi.d.ts +30 -1
- package/lib/cjs/UserApi.js +36 -1
- package/lib/cjs/components/DefaultUI.d.ts +21 -0
- package/lib/cjs/components/DefaultUI.js +34 -0
- package/lib/cjs/components/app/AppSwitchPopover.d.ts +4 -0
- package/lib/cjs/components/app/AppSwitchPopover.js +43 -0
- package/lib/cjs/components/index.d.ts +4 -0
- package/lib/cjs/components/index.js +23 -0
- package/lib/cjs/components/org/OrgSwitchPopover.d.ts +4 -0
- package/lib/cjs/components/org/OrgSwitchPopover.js +49 -0
- package/lib/cjs/components/org/OrgTiplist.d.ts +23 -0
- package/lib/cjs/components/org/OrgTiplist.js +28 -0
- package/lib/cjs/dto/app/AppQueryData.d.ts +5 -0
- package/lib/cjs/dto/app/AppReadDto.d.ts +62 -0
- package/lib/cjs/dto/app/AppReadDto.js +2 -0
- package/lib/cjs/dto/app/AppUpdateReadDto.d.ts +35 -0
- package/lib/cjs/dto/app/AppUpdateReadDto.js +2 -0
- package/lib/cjs/dto/app/CreateApiKeyData.d.ts +16 -0
- package/lib/cjs/dto/app/CreateApiKeyData.js +2 -0
- package/lib/cjs/dto/authCode/AuthCodeAction.d.ts +12 -0
- package/lib/cjs/dto/authCode/AuthCodeAction.js +16 -0
- package/lib/cjs/dto/member/MemberQueryDto.d.ts +4 -0
- package/lib/cjs/dto/member/MemberReadDto.d.ts +56 -0
- package/lib/cjs/dto/member/MemberReadDto.js +2 -0
- package/lib/cjs/dto/member/MemberUpdateReadDto.d.ts +39 -0
- package/lib/cjs/dto/member/MemberUpdateReadDto.js +2 -0
- package/lib/cjs/dto/org/OrgListDto.d.ts +7 -1
- package/lib/cjs/dto/org/OrgQueryDto.d.ts +8 -0
- package/lib/cjs/dto/org/OrgReadDto.d.ts +16 -0
- package/lib/cjs/dto/org/OrgUpdateReadDto.d.ts +0 -4
- package/lib/cjs/dto/public/MemberInvitationDto.d.ts +29 -0
- package/lib/cjs/dto/public/MemberInvitationDto.js +2 -0
- package/lib/cjs/dto/user/AuditHistoryDto.d.ts +8 -4
- package/lib/cjs/dto/user/UserIdentifierData.d.ts +27 -0
- package/lib/cjs/dto/user/UserIdentifierData.js +2 -0
- package/lib/cjs/i18n/en.json +40 -2
- package/lib/cjs/i18n/zh-Hans.json +40 -2
- package/lib/cjs/i18n/zh-Hant.json +40 -2
- package/lib/cjs/index.d.ts +22 -0
- package/lib/cjs/index.js +22 -0
- package/lib/cjs/rq/app/AppBuyNewRQ.d.ts +26 -0
- package/lib/cjs/rq/app/AppBuyNewRQ.js +2 -0
- package/lib/cjs/rq/app/AppBuyRQ.d.ts +16 -0
- package/lib/cjs/rq/app/AppBuyRQ.js +2 -0
- package/lib/cjs/rq/app/AppCreateApiKeyRQ.d.ts +16 -0
- package/lib/cjs/rq/app/AppCreateApiKeyRQ.js +2 -0
- package/lib/cjs/rq/app/AppGetMyRQ.d.ts +1 -1
- package/lib/cjs/rq/app/AppRenewRQ.d.ts +16 -0
- package/lib/cjs/rq/app/AppRenewRQ.js +2 -0
- package/lib/cjs/rq/app/AppUpdateRQ.d.ts +31 -0
- package/lib/cjs/rq/app/AppUpdateRQ.js +2 -0
- package/lib/cjs/rq/authCode/SendEmailRQ.d.ts +31 -0
- package/lib/cjs/rq/authCode/SendEmailRQ.js +2 -0
- package/lib/cjs/rq/authCode/SendSMSRQ.d.ts +27 -0
- package/lib/cjs/rq/authCode/SendSMSRQ.js +2 -0
- package/lib/cjs/rq/authCode/ValidateRQ.d.ts +17 -0
- package/lib/cjs/rq/authCode/ValidateRQ.js +2 -0
- package/lib/cjs/rq/member/MemberInviteRQ.d.ts +22 -0
- package/lib/cjs/rq/member/MemberInviteRQ.js +2 -0
- package/lib/cjs/rq/member/MemberUpdateRQ.d.ts +32 -0
- package/lib/cjs/rq/member/MemberUpdateRQ.js +2 -0
- package/lib/cjs/rq/org/OrgCreateRQ.d.ts +5 -0
- package/lib/cjs/rq/public/AcceptInvitationRQ.d.ts +16 -0
- package/lib/cjs/rq/public/AcceptInvitationRQ.js +2 -0
- package/lib/cjs/rq/user/AuditHistoryRQ.d.ts +8 -0
- package/lib/mjs/AppApi.d.ts +59 -1
- package/lib/mjs/AppApi.js +64 -1
- package/lib/mjs/AuthCodeApi.d.ts +29 -0
- package/lib/mjs/AuthCodeApi.js +46 -0
- package/lib/mjs/CoreApp.d.ts +116 -10
- package/lib/mjs/CoreApp.js +73 -7
- package/lib/mjs/CoreUtils.d.ts +4 -0
- package/lib/mjs/CoreUtils.js +1 -0
- package/lib/mjs/ICoreServiceApp.d.ts +30 -0
- package/lib/mjs/ICoreServiceApp.js +41 -0
- package/lib/mjs/MemberApi.d.ts +41 -1
- package/lib/mjs/MemberApi.js +46 -0
- package/lib/mjs/OrgApi.d.ts +9 -2
- package/lib/mjs/OrgApi.js +12 -3
- package/lib/mjs/PublicApi.d.ts +17 -1
- package/lib/mjs/PublicApi.js +20 -2
- package/lib/mjs/UserApi.d.ts +30 -1
- package/lib/mjs/UserApi.js +36 -1
- package/lib/mjs/components/DefaultUI.d.ts +21 -0
- package/lib/mjs/components/DefaultUI.js +31 -0
- package/lib/mjs/components/app/AppSwitchPopover.d.ts +4 -0
- package/lib/mjs/components/app/AppSwitchPopover.js +37 -0
- package/lib/mjs/components/index.d.ts +4 -0
- package/lib/mjs/components/index.js +7 -0
- package/lib/mjs/components/org/OrgSwitchPopover.d.ts +4 -0
- package/lib/mjs/components/org/OrgSwitchPopover.js +43 -0
- package/lib/mjs/components/org/OrgTiplist.d.ts +23 -0
- package/lib/mjs/components/org/OrgTiplist.js +25 -0
- package/lib/mjs/dto/app/AppQueryData.d.ts +5 -0
- package/lib/mjs/dto/app/AppReadDto.d.ts +62 -0
- package/lib/mjs/dto/app/AppReadDto.js +1 -0
- package/lib/mjs/dto/app/AppUpdateReadDto.d.ts +35 -0
- package/lib/mjs/dto/app/AppUpdateReadDto.js +1 -0
- package/lib/mjs/dto/app/CreateApiKeyData.d.ts +16 -0
- package/lib/mjs/dto/app/CreateApiKeyData.js +1 -0
- package/lib/mjs/dto/authCode/AuthCodeAction.d.ts +12 -0
- package/lib/mjs/dto/authCode/AuthCodeAction.js +13 -0
- package/lib/mjs/dto/member/MemberQueryDto.d.ts +4 -0
- package/lib/mjs/dto/member/MemberReadDto.d.ts +56 -0
- package/lib/mjs/dto/member/MemberReadDto.js +1 -0
- package/lib/mjs/dto/member/MemberUpdateReadDto.d.ts +39 -0
- package/lib/mjs/dto/member/MemberUpdateReadDto.js +1 -0
- package/lib/mjs/dto/org/OrgListDto.d.ts +7 -1
- package/lib/mjs/dto/org/OrgQueryDto.d.ts +8 -0
- package/lib/mjs/dto/org/OrgReadDto.d.ts +16 -0
- package/lib/mjs/dto/org/OrgUpdateReadDto.d.ts +0 -4
- package/lib/mjs/dto/public/MemberInvitationDto.d.ts +29 -0
- package/lib/mjs/dto/public/MemberInvitationDto.js +1 -0
- package/lib/mjs/dto/user/AuditHistoryDto.d.ts +8 -4
- package/lib/mjs/dto/user/UserIdentifierData.d.ts +27 -0
- package/lib/mjs/dto/user/UserIdentifierData.js +1 -0
- package/lib/mjs/i18n/en.json +40 -2
- package/lib/mjs/i18n/zh-Hans.json +40 -2
- package/lib/mjs/i18n/zh-Hant.json +40 -2
- package/lib/mjs/index.d.ts +22 -0
- package/lib/mjs/index.js +22 -0
- package/lib/mjs/rq/app/AppBuyNewRQ.d.ts +26 -0
- package/lib/mjs/rq/app/AppBuyNewRQ.js +1 -0
- package/lib/mjs/rq/app/AppBuyRQ.d.ts +16 -0
- package/lib/mjs/rq/app/AppBuyRQ.js +1 -0
- package/lib/mjs/rq/app/AppCreateApiKeyRQ.d.ts +16 -0
- package/lib/mjs/rq/app/AppCreateApiKeyRQ.js +1 -0
- package/lib/mjs/rq/app/AppGetMyRQ.d.ts +1 -1
- package/lib/mjs/rq/app/AppRenewRQ.d.ts +16 -0
- package/lib/mjs/rq/app/AppRenewRQ.js +1 -0
- package/lib/mjs/rq/app/AppUpdateRQ.d.ts +31 -0
- package/lib/mjs/rq/app/AppUpdateRQ.js +1 -0
- package/lib/mjs/rq/authCode/SendEmailRQ.d.ts +31 -0
- package/lib/mjs/rq/authCode/SendEmailRQ.js +1 -0
- package/lib/mjs/rq/authCode/SendSMSRQ.d.ts +27 -0
- package/lib/mjs/rq/authCode/SendSMSRQ.js +1 -0
- package/lib/mjs/rq/authCode/ValidateRQ.d.ts +17 -0
- package/lib/mjs/rq/authCode/ValidateRQ.js +1 -0
- package/lib/mjs/rq/member/MemberInviteRQ.d.ts +22 -0
- package/lib/mjs/rq/member/MemberInviteRQ.js +1 -0
- package/lib/mjs/rq/member/MemberUpdateRQ.d.ts +32 -0
- package/lib/mjs/rq/member/MemberUpdateRQ.js +1 -0
- package/lib/mjs/rq/org/OrgCreateRQ.d.ts +5 -0
- package/lib/mjs/rq/public/AcceptInvitationRQ.d.ts +16 -0
- package/lib/mjs/rq/public/AcceptInvitationRQ.js +1 -0
- package/lib/mjs/rq/user/AuditHistoryRQ.d.ts +8 -0
- package/package.json +26 -36
- package/src/AppApi.ts +89 -2
- package/src/AuthCodeApi.ts +51 -0
- package/src/CoreApp.ts +152 -9
- package/src/CoreUtils.ts +4 -0
- package/src/ICoreServiceApp.ts +62 -0
- package/src/MemberApi.ts +61 -2
- package/src/OrgApi.ts +13 -3
- package/src/PublicApi.ts +24 -1
- package/src/UserApi.ts +53 -1
- package/src/components/DefaultUI.tsx +37 -0
- package/src/components/app/AppSwitchPopover.tsx +83 -0
- package/src/components/index.ts +9 -0
- package/src/components/org/OrgSwitchPopover.tsx +99 -0
- package/src/components/org/OrgTiplist.tsx +69 -0
- package/src/dto/app/AppQueryData.ts +6 -0
- package/src/dto/app/AppReadDto.ts +75 -0
- package/src/dto/app/AppUpdateReadDto.ts +42 -0
- package/src/dto/app/CreateApiKeyData.ts +17 -0
- package/src/dto/authCode/AuthCodeAction.ts +13 -0
- package/src/dto/member/MemberQueryDto.ts +5 -0
- package/src/dto/member/MemberReadDto.ts +68 -0
- package/src/dto/member/MemberUpdateReadDto.ts +47 -0
- package/src/dto/org/OrgListDto.ts +7 -1
- package/src/dto/org/OrgQueryDto.ts +10 -0
- package/src/dto/org/OrgReadDto.ts +20 -0
- package/src/dto/org/OrgUpdateReadDto.ts +0 -5
- package/src/dto/public/MemberInvitationDto.ts +34 -0
- package/src/dto/user/AuditHistoryDto.ts +9 -4
- package/src/dto/user/UserIdentifierData.ts +31 -0
- package/src/i18n/en.json +40 -2
- package/src/i18n/zh-Hans.json +40 -2
- package/src/i18n/zh-Hant.json +40 -2
- package/src/index.ts +24 -0
- package/src/rq/app/AppBuyNewRQ.ts +29 -0
- package/src/rq/app/AppBuyRQ.ts +17 -0
- package/src/rq/app/AppCreateApiKeyRQ.ts +17 -0
- package/src/rq/app/AppGetMyRQ.ts +1 -1
- package/src/rq/app/AppRenewRQ.ts +17 -0
- package/src/rq/app/AppUpdateRQ.ts +36 -0
- package/src/rq/authCode/SendEmailRQ.ts +36 -0
- package/src/rq/authCode/SendSMSRQ.ts +31 -0
- package/src/rq/authCode/ValidateRQ.ts +19 -0
- package/src/rq/member/MemberInviteRQ.ts +25 -0
- package/src/rq/member/MemberUpdateRQ.ts +37 -0
- package/src/rq/org/OrgCreateRQ.ts +6 -0
- package/src/rq/public/AcceptInvitationRQ.ts +17 -0
- package/src/rq/user/AuditHistoryRQ.ts +10 -0
- package/tsconfig.cjs.json +4 -3
- package/tsconfig.json +5 -4
- package/vite.config.mts +12 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EntityStatus, UserRole } from "@etsoo/appscript";
|
|
2
|
+
import { IdentityType } from "../IdentityType";
|
|
3
|
+
/**
|
|
4
|
+
* Member read for view data
|
|
5
|
+
* 读取成员查看数据
|
|
6
|
+
*/
|
|
7
|
+
export type MemberReadDto = {
|
|
8
|
+
/**
|
|
9
|
+
* Id
|
|
10
|
+
*/
|
|
11
|
+
id: number;
|
|
12
|
+
/**
|
|
13
|
+
* Name
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* User role
|
|
18
|
+
*/
|
|
19
|
+
userRole: UserRole;
|
|
20
|
+
/**
|
|
21
|
+
* Identity type
|
|
22
|
+
*/
|
|
23
|
+
identityType: IdentityType;
|
|
24
|
+
/**
|
|
25
|
+
* Custom name
|
|
26
|
+
*/
|
|
27
|
+
localName?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Custom avatar
|
|
30
|
+
*/
|
|
31
|
+
localAvatar?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Assigned id
|
|
34
|
+
*/
|
|
35
|
+
assignedId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Creation
|
|
38
|
+
*/
|
|
39
|
+
creation: string | Date;
|
|
40
|
+
/**
|
|
41
|
+
* Expiry
|
|
42
|
+
*/
|
|
43
|
+
expiry?: string | Date;
|
|
44
|
+
/**
|
|
45
|
+
* Refresh time
|
|
46
|
+
*/
|
|
47
|
+
refreshTime: string | Date;
|
|
48
|
+
/**
|
|
49
|
+
* Status
|
|
50
|
+
*/
|
|
51
|
+
status: EntityStatus;
|
|
52
|
+
/**
|
|
53
|
+
* Inviter
|
|
54
|
+
*/
|
|
55
|
+
inviter?: string;
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EntityStatus, UserRole } from "@etsoo/appscript";
|
|
2
|
+
/**
|
|
3
|
+
* Member read for update data
|
|
4
|
+
* 读取成员更新数据
|
|
5
|
+
*/
|
|
6
|
+
export type MemberUpdateReadDto = {
|
|
7
|
+
/**
|
|
8
|
+
* Id
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* Name
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Is self
|
|
17
|
+
*/
|
|
18
|
+
isSelf: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* User role
|
|
21
|
+
*/
|
|
22
|
+
userRole: UserRole;
|
|
23
|
+
/**
|
|
24
|
+
* Custom name
|
|
25
|
+
*/
|
|
26
|
+
localName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Assigned id
|
|
29
|
+
*/
|
|
30
|
+
assignedId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Expiry
|
|
33
|
+
*/
|
|
34
|
+
expiry?: string | Date;
|
|
35
|
+
/**
|
|
36
|
+
* Status
|
|
37
|
+
*/
|
|
38
|
+
status: EntityStatus;
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,6 +8,10 @@ export type OrgReadDto = {
|
|
|
8
8
|
* Id
|
|
9
9
|
*/
|
|
10
10
|
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current user is the owner of the organization
|
|
13
|
+
*/
|
|
14
|
+
isOwner: boolean;
|
|
11
15
|
/**
|
|
12
16
|
* Owner name
|
|
13
17
|
*/
|
|
@@ -28,6 +32,10 @@ export type OrgReadDto = {
|
|
|
28
32
|
* PIN
|
|
29
33
|
*/
|
|
30
34
|
pin?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Parent id
|
|
37
|
+
*/
|
|
38
|
+
parentId?: number;
|
|
31
39
|
/**
|
|
32
40
|
* Parent name
|
|
33
41
|
*/
|
|
@@ -44,4 +52,12 @@ export type OrgReadDto = {
|
|
|
44
52
|
* Query Keyword
|
|
45
53
|
*/
|
|
46
54
|
queryKeyword?: string;
|
|
55
|
+
/**
|
|
56
|
+
* User status
|
|
57
|
+
*/
|
|
58
|
+
userStatus: EntityStatus;
|
|
59
|
+
/**
|
|
60
|
+
* User expiry
|
|
61
|
+
*/
|
|
62
|
+
userExpiry?: string | Date;
|
|
47
63
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Member invitation data
|
|
3
|
+
*/
|
|
4
|
+
export type MemberInvitationDto = {
|
|
5
|
+
/**
|
|
6
|
+
* Email
|
|
7
|
+
*/
|
|
8
|
+
email: string;
|
|
9
|
+
/**
|
|
10
|
+
* Inviter's name
|
|
11
|
+
*/
|
|
12
|
+
inviter: string;
|
|
13
|
+
/**
|
|
14
|
+
* Organization name
|
|
15
|
+
*/
|
|
16
|
+
orgName: string;
|
|
17
|
+
/**
|
|
18
|
+
* Is expired or not
|
|
19
|
+
*/
|
|
20
|
+
isExpired: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Is accepted or not
|
|
23
|
+
*/
|
|
24
|
+
isAccepted: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* User exists or not
|
|
27
|
+
*/
|
|
28
|
+
userExists: boolean;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,13 +8,17 @@ export type AuditHistoryDto = {
|
|
|
8
8
|
*/
|
|
9
9
|
id: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Kind
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
kind: string;
|
|
14
|
+
/**
|
|
15
|
+
* Culture
|
|
16
|
+
*/
|
|
17
|
+
culture: string;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Title
|
|
16
20
|
*/
|
|
17
|
-
|
|
21
|
+
title: string;
|
|
18
22
|
/**
|
|
19
23
|
* JSON data
|
|
20
24
|
*/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UserIdentifierType } from "@etsoo/appscript";
|
|
2
|
+
/**
|
|
3
|
+
* User identifier data
|
|
4
|
+
* 用户标识数据
|
|
5
|
+
*/
|
|
6
|
+
export type UserIdentifierData = {
|
|
7
|
+
/**
|
|
8
|
+
* Id
|
|
9
|
+
* 编号
|
|
10
|
+
*/
|
|
11
|
+
id: number;
|
|
12
|
+
/**
|
|
13
|
+
* Type
|
|
14
|
+
* 类型
|
|
15
|
+
*/
|
|
16
|
+
type: UserIdentifierType;
|
|
17
|
+
/**
|
|
18
|
+
* Value
|
|
19
|
+
* 值
|
|
20
|
+
*/
|
|
21
|
+
value: string;
|
|
22
|
+
/**
|
|
23
|
+
* Creation
|
|
24
|
+
* 登记时间
|
|
25
|
+
*/
|
|
26
|
+
creation: Date;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/mjs/i18n/en.json
CHANGED
|
@@ -1,40 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"accountIconButtonAriaLabel": "Current user",
|
|
3
|
+
"appKey": "App key",
|
|
4
|
+
"appSecret": "App secret",
|
|
3
5
|
"app1": "Admin Center",
|
|
4
6
|
"app2": "O&M System",
|
|
5
7
|
"app3": "Business Mgt.",
|
|
6
8
|
"app4": "Finance System",
|
|
7
9
|
"app5": "Progress Mgt.",
|
|
10
|
+
"appHelpUrl": "Help URL",
|
|
11
|
+
"appName": "App name",
|
|
12
|
+
"appWebUrl": "Web URL",
|
|
8
13
|
"brand": "Brand",
|
|
14
|
+
"buy": "Buy",
|
|
9
15
|
"collapseMenu": "Collapse menu",
|
|
10
16
|
"collapseNavMenuAriaLabel": "Collapse navigation menu",
|
|
11
17
|
"companyNo": "Company No.",
|
|
12
18
|
"currentOrg": "Current organization",
|
|
19
|
+
"days": "Days",
|
|
13
20
|
"darkMode": "Dark mode",
|
|
21
|
+
"editAvatar": "Edit avatar",
|
|
22
|
+
"editLogo": "Edit logo",
|
|
14
23
|
"expandMenu": "Expand menu",
|
|
15
24
|
"expandNavMenuAriaLabel": "Expand navigation menu",
|
|
25
|
+
"fullName": "Full name",
|
|
26
|
+
"idCustomer": "Customer",
|
|
27
|
+
"idSupplier": "Supplier",
|
|
28
|
+
"idUser": "User/Org.",
|
|
29
|
+
"identityType": "Identity type",
|
|
30
|
+
"inviteMember": "Invite member",
|
|
31
|
+
"inviter": "Inviter",
|
|
16
32
|
"lightMode": "Light mode",
|
|
33
|
+
"monthsUnit": "Months",
|
|
34
|
+
"noCodeId": "Need to resend the verification code, please do not close the add window",
|
|
35
|
+
"oneTimePin": "One Time Pin",
|
|
36
|
+
"oneTimePinEmailTip": "Enter up the One Time Pin just sent to your email address. If you can't find it, please check your spam folder.",
|
|
37
|
+
"oneTimePinMobileTip": "Enter up the One Time Pin just sent to your mobile phone number",
|
|
38
|
+
"org": "Organization",
|
|
17
39
|
"orgName": "Org name",
|
|
40
|
+
"orgPin": "Org No.",
|
|
41
|
+
"orgs": "Organizations",
|
|
42
|
+
"owner": "Owner",
|
|
18
43
|
"parentOrg": "Parent org",
|
|
44
|
+
"preferredName": "Preferred name",
|
|
45
|
+
"refreshTime": "Refresh time",
|
|
19
46
|
"role": "Role",
|
|
20
47
|
"roleAdmin": "Admin",
|
|
48
|
+
"roleAPI": "API User",
|
|
21
49
|
"roleCashier": "Cashier",
|
|
50
|
+
"roleExecutive": "Executive",
|
|
22
51
|
"roleFinance": "Finance",
|
|
23
52
|
"roleFounder": "Founder",
|
|
24
53
|
"roleGuest": "Guest",
|
|
25
|
-
"
|
|
54
|
+
"roleLeader": "Leader",
|
|
26
55
|
"roleManager": "Manager",
|
|
27
56
|
"roleOperator": "Operator",
|
|
28
57
|
"roleOutsourcing": "Outsourcing",
|
|
29
58
|
"rolePartner": "Channel Partner",
|
|
59
|
+
"roleShareholder": "Shareholder",
|
|
30
60
|
"roleUser": "User",
|
|
31
61
|
"smarterp": "SmartERP Cloud",
|
|
32
62
|
"signin": "Sign in",
|
|
33
63
|
"signout": "Sign out",
|
|
34
64
|
"signoutSuccess": "Logout successful, please close the current window",
|
|
65
|
+
"switchApp": "Switch application",
|
|
35
66
|
"switchMode": "Switch mode",
|
|
36
67
|
"switchThemeModeAriaLabel": "Switch theme mode",
|
|
37
68
|
"switchToDarkModeAriaLabel": "Switch to dark mode",
|
|
38
69
|
"switchToLightModeAriaLabel": "Switch to light mode",
|
|
39
|
-
"switchOrg": "Switch organization"
|
|
70
|
+
"switchOrg": "Switch organization",
|
|
71
|
+
"years5": ["1 year", "2 years", "3 years", "4 years", "5 years"],
|
|
72
|
+
"uiTypeEmail": "Email",
|
|
73
|
+
"uiTypeMobile": "Mobile",
|
|
74
|
+
"uiTypeWechat": "WeChat",
|
|
75
|
+
"uiTypeAlipay": "Alipay",
|
|
76
|
+
"uiTypeGoogle": "Google",
|
|
77
|
+
"uiTypeMicrosoft": "Microsoft"
|
|
40
78
|
}
|
|
@@ -1,40 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"accountIconButtonAriaLabel": "当前用户",
|
|
3
|
+
"appKey": "应用键",
|
|
4
|
+
"appSecret": "应用密钥",
|
|
3
5
|
"app1": "管理中心",
|
|
4
6
|
"app2": "运维中心",
|
|
5
7
|
"app3": "业务管理",
|
|
6
8
|
"app4": "财务系统",
|
|
7
9
|
"app5": "进度管理",
|
|
10
|
+
"appHelpUrl": "帮助网址",
|
|
11
|
+
"appName": "应用名称",
|
|
12
|
+
"appWebUrl": "Web网址",
|
|
8
13
|
"brand": "品牌",
|
|
14
|
+
"buy": "购买",
|
|
9
15
|
"collapseMenu": "折叠菜单",
|
|
10
16
|
"collapseNavMenuAriaLabel": "折叠导航菜单",
|
|
11
17
|
"companyNo": "机构编号",
|
|
12
18
|
"currentOrg": "当前机构",
|
|
13
19
|
"darkMode": "深色模式",
|
|
20
|
+
"days": "天数",
|
|
21
|
+
"editAvatar": "修改头像",
|
|
22
|
+
"editLogo": "修改图标",
|
|
14
23
|
"expandMenu": "展开菜单",
|
|
15
24
|
"expandNavMenuAriaLabel": "展开导航菜单",
|
|
25
|
+
"fullName": "全称",
|
|
26
|
+
"idCustomer": "客户",
|
|
27
|
+
"idSupplier": "供应商",
|
|
28
|
+
"idUser": "用户/机构",
|
|
29
|
+
"identityType": "对象身份",
|
|
30
|
+
"inviteMember": "邀请成员",
|
|
31
|
+
"inviter": "邀请人",
|
|
16
32
|
"lightMode": "浅色模式",
|
|
33
|
+
"monthsUnit": "个月",
|
|
34
|
+
"noCodeId": "需要重新发送验证码,请不要关闭添加窗口",
|
|
35
|
+
"oneTimePin": "验证码",
|
|
36
|
+
"oneTimePinEmailTip": "输入刚发送到您电子邮箱的验证码,如果没有找到,请查找垃圾邮件",
|
|
37
|
+
"oneTimePinMobileTip": "输入刚发送到您手机号码的验证码",
|
|
38
|
+
"org": "机构",
|
|
17
39
|
"orgName": "机构名称",
|
|
40
|
+
"orgPin": "机构编号",
|
|
41
|
+
"orgs": "机构",
|
|
42
|
+
"owner": "所有者",
|
|
18
43
|
"parentOrg": "上级机构",
|
|
44
|
+
"preferredName": "首选姓名",
|
|
45
|
+
"refreshTime": "刷新时间",
|
|
19
46
|
"role": "角色",
|
|
20
47
|
"roleAdmin": "管理员",
|
|
48
|
+
"roleAPI": "接口用户",
|
|
21
49
|
"roleCashier": "出纳员",
|
|
50
|
+
"roleExecutive": "高管",
|
|
22
51
|
"roleFinance": "财务经理",
|
|
23
52
|
"roleFounder": "创始人",
|
|
24
53
|
"roleGuest": "访客",
|
|
25
|
-
"
|
|
54
|
+
"roleLeader": "组长",
|
|
26
55
|
"roleManager": "经理",
|
|
27
56
|
"roleOperator": "操作员",
|
|
28
57
|
"roleOutsourcing": "外包",
|
|
29
58
|
"rolePartner": "渠道伙伴",
|
|
59
|
+
"roleShareholder": "股东",
|
|
30
60
|
"roleUser": "用户",
|
|
31
61
|
"smarterp": "司友®云ERP",
|
|
32
62
|
"signin": "登录",
|
|
33
63
|
"signout": "退出",
|
|
34
64
|
"signoutSuccess": "退出成功,请关闭当前窗口",
|
|
65
|
+
"switchApp": "切换应用",
|
|
35
66
|
"switchMode": "切换模式",
|
|
36
67
|
"switchThemeModeAriaLabel": "切换主题模式",
|
|
37
68
|
"switchToDarkModeAriaLabel": "切换到深色模式",
|
|
38
69
|
"switchToLightModeAriaLabel": "切换到浅色模式",
|
|
39
|
-
"switchOrg": "切换机构"
|
|
70
|
+
"switchOrg": "切换机构",
|
|
71
|
+
"years5": ["1年", "2年", "3年", "4年", "5年"],
|
|
72
|
+
"uiTypeEmail": "电子邮箱",
|
|
73
|
+
"uiTypeMobile": "手机号",
|
|
74
|
+
"uiTypeWechat": "微信",
|
|
75
|
+
"uiTypeAlipay": "支付宝",
|
|
76
|
+
"uiTypeGoogle": "谷歌",
|
|
77
|
+
"uiTypeMicrosoft": "微软"
|
|
40
78
|
}
|
|
@@ -1,40 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"accountIconButtonAriaLabel": "當前用戶",
|
|
3
|
+
"appKey": "應用程式鍵",
|
|
4
|
+
"appSecret": "應用金鑰",
|
|
3
5
|
"app1": "管理中心",
|
|
4
6
|
"app2": "運維中心",
|
|
5
7
|
"app3": "業務管理",
|
|
6
8
|
"app4": "財務系統",
|
|
7
9
|
"app5": "進度管理",
|
|
10
|
+
"appHelpUrl": "幫助網址",
|
|
11
|
+
"appName": "應用名稱",
|
|
12
|
+
"appWebUrl": "Web網址",
|
|
8
13
|
"brand": "品牌",
|
|
14
|
+
"buy": "購買",
|
|
9
15
|
"collapseMenu": "折疊菜單",
|
|
10
16
|
"collapseNavMenuAriaLabel": "折疊導航菜單",
|
|
11
17
|
"companyNo": "機構編號",
|
|
12
18
|
"currentOrg": "當前機構",
|
|
13
19
|
"darkMode": "深色模式",
|
|
20
|
+
"days": "天數",
|
|
21
|
+
"editAvatar": "修改頭像",
|
|
22
|
+
"editLogo": "修改圖標",
|
|
14
23
|
"expandMenu": "展開菜單",
|
|
15
24
|
"expandNavMenuAriaLabel": "展開導航菜單",
|
|
25
|
+
"fullName": "全稱",
|
|
16
26
|
"lightMode": "淺色模式",
|
|
27
|
+
"idCustomer": "客戶",
|
|
28
|
+
"idSupplier": "供應商",
|
|
29
|
+
"idUser": "使用者/機構",
|
|
30
|
+
"identityType": "對象身份",
|
|
31
|
+
"inviteMember": "邀請成員",
|
|
32
|
+
"inviter": "邀請人",
|
|
33
|
+
"monthsUnit": "個月",
|
|
34
|
+
"noCodeId": "需要重新發送驗證碼,請不要關閉添加窗口",
|
|
35
|
+
"oneTimePin": "驗證碼",
|
|
36
|
+
"oneTimePinEmailTip": "輸入剛傳送到您電子郵件信箱的驗證碼,如果沒有找到,請檢查垃圾信箱",
|
|
37
|
+
"oneTimePinMobileTip": "輸入剛傳送到您手機號碼的驗證碼",
|
|
38
|
+
"org": "機構",
|
|
17
39
|
"orgName": "機構名稱",
|
|
40
|
+
"orgPin": "機構編號",
|
|
41
|
+
"orgs": "機構",
|
|
42
|
+
"owner": "所有者",
|
|
18
43
|
"parentOrg": "上級機構",
|
|
44
|
+
"preferredName": "首選姓名",
|
|
45
|
+
"refreshTime": "刷新時間",
|
|
19
46
|
"role": "角色",
|
|
20
47
|
"roleAdmin": "管理員",
|
|
48
|
+
"roleAPI": "接口用戶",
|
|
21
49
|
"roleCashier": "出納員",
|
|
50
|
+
"roleExecutive": "高管",
|
|
22
51
|
"roleFinance": "財務經理",
|
|
23
52
|
"roleFounder": "創始人",
|
|
24
53
|
"roleGuest": "訪客",
|
|
25
|
-
"
|
|
54
|
+
"roleLeader": "組長",
|
|
26
55
|
"roleManager": "經理",
|
|
27
56
|
"roleOperator": "操作員",
|
|
28
57
|
"roleOutsourcing": "外包",
|
|
29
58
|
"rolePartner": "渠道夥伴",
|
|
59
|
+
"roleShareholder": "股東",
|
|
30
60
|
"roleUser": "用戶",
|
|
31
61
|
"signin": "登入",
|
|
32
62
|
"signout": "登出",
|
|
33
63
|
"smarterp": "司友®雲ERP",
|
|
34
64
|
"signoutSuccess": "登出成功,請關閉目前視窗",
|
|
65
|
+
"switchApp": "切換應用",
|
|
35
66
|
"switchMode": "切換模式",
|
|
36
67
|
"switchThemeModeAriaLabel": "切換主題模式",
|
|
37
68
|
"switchToDarkModeAriaLabel": "切換到深色模式",
|
|
38
69
|
"switchToLightModeAriaLabel": "切換到淺色模式",
|
|
39
|
-
"switchOrg": "切換機構"
|
|
70
|
+
"switchOrg": "切換機構",
|
|
71
|
+
"years5": ["1年", "2年", "3年", "4年", "5年"],
|
|
72
|
+
"uiTypeEmail": "電子郵件",
|
|
73
|
+
"uiTypeMobile": "手機號碼",
|
|
74
|
+
"uiTypeWechat": "微信",
|
|
75
|
+
"uiTypeAlipay": "支付寶",
|
|
76
|
+
"uiTypeGoogle": "谷歌",
|
|
77
|
+
"uiTypeMicrosoft": "微軟"
|
|
40
78
|
}
|
package/lib/mjs/index.d.ts
CHANGED
|
@@ -2,37 +2,59 @@ export * from "./dto/app/AppData";
|
|
|
2
2
|
export * from "./dto/app/AppListDto";
|
|
3
3
|
export * from "./dto/app/AppPurchasedQueryData";
|
|
4
4
|
export * from "./dto/app/AppQueryData";
|
|
5
|
+
export * from "./dto/app/AppReadDto";
|
|
6
|
+
export * from "./dto/app/AppUpdateReadDto";
|
|
7
|
+
export * from "./dto/app/CreateApiKeyData";
|
|
8
|
+
export * from "./dto/authCode/AuthCodeAction";
|
|
5
9
|
export * from "./dto/member/MemberListDto";
|
|
6
10
|
export * from "./dto/member/MemberQueryDto";
|
|
11
|
+
export * from "./dto/member/MemberReadDto";
|
|
12
|
+
export * from "./dto/member/MemberUpdateReadDto";
|
|
7
13
|
export * from "./dto/org/OrgGetMyData";
|
|
8
14
|
export * from "./dto/org/OrgListDto";
|
|
9
15
|
export * from "./dto/org/OrgQueryDto";
|
|
10
16
|
export * from "./dto/org/OrgReadDto";
|
|
11
17
|
export * from "./dto/org/OrgUpdateReadDto";
|
|
12
18
|
export * from "./dto/public/CurrencyItem";
|
|
19
|
+
export * from "./dto/public/MemberInvitationDto";
|
|
13
20
|
export * from "./dto/public/PlaceCommon";
|
|
14
21
|
export * from "./dto/public/PlaceLocation";
|
|
15
22
|
export * from "./dto/public/RegionData";
|
|
16
23
|
export * from "./dto/user/AuditHistoryDto";
|
|
17
24
|
export * from "./dto/user/DeviceListDto";
|
|
25
|
+
export * from "./dto/user/UserIdentifierData";
|
|
18
26
|
export * from "./i18n/CoreCulture";
|
|
27
|
+
export * from "./rq/app/AppBuyNewRQ";
|
|
28
|
+
export * from "./rq/app/AppBuyRQ";
|
|
29
|
+
export * from "./rq/app/AppCreateApiKeyRQ";
|
|
19
30
|
export * from "./rq/app/AppGetMyRQ";
|
|
20
31
|
export * from "./rq/app/AppListRQ";
|
|
21
32
|
export * from "./rq/app/AppPurchasedQueryRQ";
|
|
22
33
|
export * from "./rq/app/AppQueryRQ";
|
|
34
|
+
export * from "./rq/app/AppRenewRQ";
|
|
35
|
+
export * from "./rq/app/AppUpdateRQ";
|
|
36
|
+
export * from "./rq/authCode/SendEmailRQ";
|
|
37
|
+
export * from "./rq/authCode/SendSMSRQ";
|
|
38
|
+
export * from "./rq/authCode/ValidateRQ";
|
|
39
|
+
export * from "./rq/member/MemberInviteRQ";
|
|
23
40
|
export * from "./rq/member/MemberListRQ";
|
|
24
41
|
export * from "./rq/member/MemberQueryRQ";
|
|
42
|
+
export * from "./rq/member/MemberUpdateRQ";
|
|
25
43
|
export * from "./rq/org/OrgCreateRQ";
|
|
26
44
|
export * from "./rq/org/OrgGetMyRQ";
|
|
27
45
|
export * from "./rq/org/OrgListRQ";
|
|
28
46
|
export * from "./rq/org/OrgQueryRQ";
|
|
29
47
|
export * from "./rq/org/OrgUpdateRQ";
|
|
48
|
+
export * from "./rq/public/AcceptInvitationRQ";
|
|
30
49
|
export * from "./rq/public/CreateBarcodeRQ";
|
|
31
50
|
export * from "./rq/public/PinyinRQ";
|
|
32
51
|
export * from "./rq/public/PlaceQueryRQ";
|
|
33
52
|
export * from "./rq/user/AuditHistoryRQ";
|
|
34
53
|
export * from "./AppApi";
|
|
54
|
+
export * from "./AuthCodeApi";
|
|
35
55
|
export * from "./CoreApp";
|
|
56
|
+
export * from "./CoreUtils";
|
|
57
|
+
export * from "./ICoreServiceApp";
|
|
36
58
|
export * from "./MemberApi";
|
|
37
59
|
export * from "./OrgApi";
|
|
38
60
|
export * from "./PublicApi";
|
package/lib/mjs/index.js
CHANGED
|
@@ -3,40 +3,62 @@ export * from "./dto/app/AppData";
|
|
|
3
3
|
export * from "./dto/app/AppListDto";
|
|
4
4
|
export * from "./dto/app/AppPurchasedQueryData";
|
|
5
5
|
export * from "./dto/app/AppQueryData";
|
|
6
|
+
export * from "./dto/app/AppReadDto";
|
|
7
|
+
export * from "./dto/app/AppUpdateReadDto";
|
|
8
|
+
export * from "./dto/app/CreateApiKeyData";
|
|
9
|
+
export * from "./dto/authCode/AuthCodeAction";
|
|
6
10
|
export * from "./dto/member/MemberListDto";
|
|
7
11
|
export * from "./dto/member/MemberQueryDto";
|
|
12
|
+
export * from "./dto/member/MemberReadDto";
|
|
13
|
+
export * from "./dto/member/MemberUpdateReadDto";
|
|
8
14
|
export * from "./dto/org/OrgGetMyData";
|
|
9
15
|
export * from "./dto/org/OrgListDto";
|
|
10
16
|
export * from "./dto/org/OrgQueryDto";
|
|
11
17
|
export * from "./dto/org/OrgReadDto";
|
|
12
18
|
export * from "./dto/org/OrgUpdateReadDto";
|
|
13
19
|
export * from "./dto/public/CurrencyItem";
|
|
20
|
+
export * from "./dto/public/MemberInvitationDto";
|
|
14
21
|
export * from "./dto/public/PlaceCommon";
|
|
15
22
|
export * from "./dto/public/PlaceLocation";
|
|
16
23
|
export * from "./dto/public/RegionData";
|
|
17
24
|
export * from "./dto/user/AuditHistoryDto";
|
|
18
25
|
export * from "./dto/user/DeviceListDto";
|
|
26
|
+
export * from "./dto/user/UserIdentifierData";
|
|
19
27
|
// i18n
|
|
20
28
|
export * from "./i18n/CoreCulture";
|
|
21
29
|
// RQ
|
|
30
|
+
export * from "./rq/app/AppBuyNewRQ";
|
|
31
|
+
export * from "./rq/app/AppBuyRQ";
|
|
32
|
+
export * from "./rq/app/AppCreateApiKeyRQ";
|
|
22
33
|
export * from "./rq/app/AppGetMyRQ";
|
|
23
34
|
export * from "./rq/app/AppListRQ";
|
|
24
35
|
export * from "./rq/app/AppPurchasedQueryRQ";
|
|
25
36
|
export * from "./rq/app/AppQueryRQ";
|
|
37
|
+
export * from "./rq/app/AppRenewRQ";
|
|
38
|
+
export * from "./rq/app/AppUpdateRQ";
|
|
39
|
+
export * from "./rq/authCode/SendEmailRQ";
|
|
40
|
+
export * from "./rq/authCode/SendSMSRQ";
|
|
41
|
+
export * from "./rq/authCode/ValidateRQ";
|
|
42
|
+
export * from "./rq/member/MemberInviteRQ";
|
|
26
43
|
export * from "./rq/member/MemberListRQ";
|
|
27
44
|
export * from "./rq/member/MemberQueryRQ";
|
|
45
|
+
export * from "./rq/member/MemberUpdateRQ";
|
|
28
46
|
export * from "./rq/org/OrgCreateRQ";
|
|
29
47
|
export * from "./rq/org/OrgGetMyRQ";
|
|
30
48
|
export * from "./rq/org/OrgListRQ";
|
|
31
49
|
export * from "./rq/org/OrgQueryRQ";
|
|
32
50
|
export * from "./rq/org/OrgUpdateRQ";
|
|
51
|
+
export * from "./rq/public/AcceptInvitationRQ";
|
|
33
52
|
export * from "./rq/public/CreateBarcodeRQ";
|
|
34
53
|
export * from "./rq/public/PinyinRQ";
|
|
35
54
|
export * from "./rq/public/PlaceQueryRQ";
|
|
36
55
|
export * from "./rq/user/AuditHistoryRQ";
|
|
37
56
|
// APIs
|
|
38
57
|
export * from "./AppApi";
|
|
58
|
+
export * from "./AuthCodeApi";
|
|
39
59
|
export * from "./CoreApp";
|
|
60
|
+
export * from "./CoreUtils";
|
|
61
|
+
export * from "./ICoreServiceApp";
|
|
40
62
|
export * from "./MemberApi";
|
|
41
63
|
export * from "./OrgApi";
|
|
42
64
|
export * from "./PublicApi";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application buy and creating new organization request data
|
|
3
|
+
* 购买应用并创建新机构请求数据
|
|
4
|
+
*/
|
|
5
|
+
export type AppBuyNewRQ = {
|
|
6
|
+
/**
|
|
7
|
+
* Application ID
|
|
8
|
+
* 应用编号
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* New organization name
|
|
13
|
+
* 新机构名称
|
|
14
|
+
*/
|
|
15
|
+
orgName: string;
|
|
16
|
+
/**
|
|
17
|
+
* New organization PIN
|
|
18
|
+
* 新机构编号
|
|
19
|
+
*/
|
|
20
|
+
orgPin?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Region
|
|
23
|
+
* 所在区域
|
|
24
|
+
*/
|
|
25
|
+
region: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|