@etsoo/smarterp-core 1.0.0 → 1.0.1

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.
Files changed (187) hide show
  1. package/__tests__/tsconfig.json +13 -12
  2. package/lib/{mjs/AppApi.js → AppApi.js} +1 -1
  3. package/lib/{mjs/CoreApp.d.ts → CoreApp.d.ts} +12 -7
  4. package/lib/{mjs/CoreApp.js → CoreApp.js} +22 -6
  5. package/lib/{mjs/PublicApi.js → PublicApi.js} +2 -2
  6. package/lib/{mjs/UserApi.js → UserApi.js} +1 -1
  7. package/lib/components/index.d.ts +1 -0
  8. package/lib/components/index.js +2 -0
  9. package/lib/components/org/OrgTiplist.d.ts +36 -0
  10. package/lib/components/org/OrgTiplist.js +22 -0
  11. package/lib/dto/org/OrgListDto.d.ts +12 -0
  12. package/lib/{cjs/i18n → i18n}/en.json +10 -0
  13. package/lib/{mjs/i18n → i18n}/zh-Hans.json +10 -0
  14. package/lib/{mjs/i18n → i18n}/zh-Hant.json +10 -0
  15. package/package.json +18 -8
  16. package/src/AppApi.ts +1 -1
  17. package/src/CoreApp.ts +16 -7
  18. package/src/components/index.ts +2 -0
  19. package/src/components/org/OrgTiplist.tsx +73 -0
  20. package/src/dto/org/OrgListDto.ts +7 -1
  21. package/src/i18n/en.json +10 -0
  22. package/src/i18n/zh-Hans.json +10 -0
  23. package/src/i18n/zh-Hant.json +10 -0
  24. package/tsconfig.json +6 -5
  25. package/lib/cjs/AppApi.js +0 -54
  26. package/lib/cjs/CoreApp.d.ts +0 -58
  27. package/lib/cjs/CoreApp.js +0 -68
  28. package/lib/cjs/MemberApi.js +0 -45
  29. package/lib/cjs/OrgApi.js +0 -110
  30. package/lib/cjs/PublicApi.js +0 -143
  31. package/lib/cjs/UserApi.js +0 -68
  32. package/lib/cjs/dto/IdentityType.js +0 -25
  33. package/lib/cjs/dto/app/AppData.js +0 -2
  34. package/lib/cjs/dto/app/AppListDto.js +0 -2
  35. package/lib/cjs/dto/app/AppPurchasedQueryData.js +0 -2
  36. package/lib/cjs/dto/app/AppQueryData.js +0 -2
  37. package/lib/cjs/dto/member/MemberListDto.js +0 -2
  38. package/lib/cjs/dto/member/MemberQueryDto.js +0 -2
  39. package/lib/cjs/dto/org/OrgGetMyData.js +0 -2
  40. package/lib/cjs/dto/org/OrgListDto.d.ts +0 -6
  41. package/lib/cjs/dto/org/OrgListDto.js +0 -2
  42. package/lib/cjs/dto/org/OrgQueryDto.js +0 -2
  43. package/lib/cjs/dto/org/OrgReadDto.js +0 -2
  44. package/lib/cjs/dto/org/OrgUpdateReadDto.js +0 -2
  45. package/lib/cjs/dto/public/CurrencyItem.js +0 -2
  46. package/lib/cjs/dto/public/PlaceCommon.js +0 -2
  47. package/lib/cjs/dto/public/PlaceLocation.js +0 -2
  48. package/lib/cjs/dto/public/RegionData.js +0 -2
  49. package/lib/cjs/dto/user/AuditHistoryDto.js +0 -2
  50. package/lib/cjs/dto/user/DeviceListDto.js +0 -2
  51. package/lib/cjs/i18n/CoreCulture.js +0 -52
  52. package/lib/cjs/i18n/zh-Hans.json +0 -40
  53. package/lib/cjs/i18n/zh-Hant.json +0 -40
  54. package/lib/cjs/index.js +0 -59
  55. package/lib/cjs/rq/app/AppGetMyRQ.js +0 -2
  56. package/lib/cjs/rq/app/AppListRQ.js +0 -2
  57. package/lib/cjs/rq/app/AppPurchasedQueryRQ.js +0 -2
  58. package/lib/cjs/rq/app/AppQueryRQ.js +0 -2
  59. package/lib/cjs/rq/member/MemberListRQ.js +0 -2
  60. package/lib/cjs/rq/member/MemberQueryRQ.js +0 -2
  61. package/lib/cjs/rq/org/OrgCreateRQ.js +0 -2
  62. package/lib/cjs/rq/org/OrgGetMyRQ.js +0 -2
  63. package/lib/cjs/rq/org/OrgListRQ.js +0 -2
  64. package/lib/cjs/rq/org/OrgQueryRQ.js +0 -2
  65. package/lib/cjs/rq/org/OrgUpdateRQ.js +0 -2
  66. package/lib/cjs/rq/public/CreateBarcodeRQ.js +0 -2
  67. package/lib/cjs/rq/public/PinyinRQ.js +0 -21
  68. package/lib/cjs/rq/public/PlaceQueryRQ.js +0 -21
  69. package/lib/cjs/rq/user/AuditHistoryRQ.js +0 -2
  70. package/lib/mjs/AppApi.d.ts +0 -48
  71. package/lib/mjs/MemberApi.d.ts +0 -38
  72. package/lib/mjs/OrgApi.d.ts +0 -95
  73. package/lib/mjs/PublicApi.d.ts +0 -105
  74. package/lib/mjs/UserApi.d.ts +0 -53
  75. package/lib/mjs/dto/IdentityType.d.ts +0 -21
  76. package/lib/mjs/dto/app/AppData.d.ts +0 -31
  77. package/lib/mjs/dto/app/AppListDto.d.ts +0 -6
  78. package/lib/mjs/dto/app/AppPurchasedQueryData.d.ts +0 -28
  79. package/lib/mjs/dto/app/AppQueryData.d.ts +0 -42
  80. package/lib/mjs/dto/member/MemberListDto.d.ts +0 -6
  81. package/lib/mjs/dto/member/MemberQueryDto.d.ts +0 -35
  82. package/lib/mjs/dto/org/OrgGetMyData.d.ts +0 -21
  83. package/lib/mjs/dto/org/OrgListDto.d.ts +0 -6
  84. package/lib/mjs/dto/org/OrgQueryDto.d.ts +0 -39
  85. package/lib/mjs/dto/org/OrgReadDto.d.ts +0 -47
  86. package/lib/mjs/dto/org/OrgUpdateReadDto.d.ts +0 -39
  87. package/lib/mjs/dto/public/CurrencyItem.d.ts +0 -31
  88. package/lib/mjs/dto/public/PlaceCommon.d.ts +0 -43
  89. package/lib/mjs/dto/public/PlaceLocation.d.ts +0 -14
  90. package/lib/mjs/dto/public/RegionData.d.ts +0 -36
  91. package/lib/mjs/dto/user/AuditHistoryDto.d.ts +0 -26
  92. package/lib/mjs/dto/user/DeviceListDto.d.ts +0 -8
  93. package/lib/mjs/i18n/CoreCulture.d.ts +0 -44
  94. package/lib/mjs/i18n/en.json +0 -40
  95. package/lib/mjs/index.d.ts +0 -39
  96. package/lib/mjs/rq/app/AppGetMyRQ.d.ts +0 -19
  97. package/lib/mjs/rq/app/AppListRQ.d.ts +0 -18
  98. package/lib/mjs/rq/app/AppPurchasedQueryRQ.d.ts +0 -17
  99. package/lib/mjs/rq/app/AppQueryRQ.d.ts +0 -6
  100. package/lib/mjs/rq/member/MemberListRQ.d.ts +0 -18
  101. package/lib/mjs/rq/member/MemberQueryRQ.d.ts +0 -10
  102. package/lib/mjs/rq/org/OrgCreateRQ.d.ts +0 -37
  103. package/lib/mjs/rq/org/OrgGetMyRQ.d.ts +0 -11
  104. package/lib/mjs/rq/org/OrgListRQ.d.ts +0 -12
  105. package/lib/mjs/rq/org/OrgQueryRQ.d.ts +0 -11
  106. package/lib/mjs/rq/org/OrgUpdateRQ.d.ts +0 -37
  107. package/lib/mjs/rq/public/CreateBarcodeRQ.d.ts +0 -56
  108. package/lib/mjs/rq/public/PinyinRQ.d.ts +0 -38
  109. package/lib/mjs/rq/public/PlaceQueryRQ.d.ts +0 -58
  110. package/lib/mjs/rq/user/AuditHistoryRQ.d.ts +0 -19
  111. package/tsconfig.cjs.json +0 -19
  112. /package/lib/{cjs/AppApi.d.ts → AppApi.d.ts} +0 -0
  113. /package/lib/{cjs/MemberApi.d.ts → MemberApi.d.ts} +0 -0
  114. /package/lib/{mjs/MemberApi.js → MemberApi.js} +0 -0
  115. /package/lib/{cjs/OrgApi.d.ts → OrgApi.d.ts} +0 -0
  116. /package/lib/{mjs/OrgApi.js → OrgApi.js} +0 -0
  117. /package/lib/{cjs/PublicApi.d.ts → PublicApi.d.ts} +0 -0
  118. /package/lib/{cjs/UserApi.d.ts → UserApi.d.ts} +0 -0
  119. /package/lib/{cjs/dto → dto}/IdentityType.d.ts +0 -0
  120. /package/lib/{mjs/dto → dto}/IdentityType.js +0 -0
  121. /package/lib/{cjs/dto → dto}/app/AppData.d.ts +0 -0
  122. /package/lib/{mjs/dto → dto}/app/AppData.js +0 -0
  123. /package/lib/{cjs/dto → dto}/app/AppListDto.d.ts +0 -0
  124. /package/lib/{mjs/dto → dto}/app/AppListDto.js +0 -0
  125. /package/lib/{cjs/dto → dto}/app/AppPurchasedQueryData.d.ts +0 -0
  126. /package/lib/{mjs/dto → dto}/app/AppPurchasedQueryData.js +0 -0
  127. /package/lib/{cjs/dto → dto}/app/AppQueryData.d.ts +0 -0
  128. /package/lib/{mjs/dto → dto}/app/AppQueryData.js +0 -0
  129. /package/lib/{cjs/dto → dto}/member/MemberListDto.d.ts +0 -0
  130. /package/lib/{mjs/dto → dto}/member/MemberListDto.js +0 -0
  131. /package/lib/{cjs/dto → dto}/member/MemberQueryDto.d.ts +0 -0
  132. /package/lib/{mjs/dto → dto}/member/MemberQueryDto.js +0 -0
  133. /package/lib/{cjs/dto → dto}/org/OrgGetMyData.d.ts +0 -0
  134. /package/lib/{mjs/dto → dto}/org/OrgGetMyData.js +0 -0
  135. /package/lib/{mjs/dto → dto}/org/OrgListDto.js +0 -0
  136. /package/lib/{cjs/dto → dto}/org/OrgQueryDto.d.ts +0 -0
  137. /package/lib/{mjs/dto → dto}/org/OrgQueryDto.js +0 -0
  138. /package/lib/{cjs/dto → dto}/org/OrgReadDto.d.ts +0 -0
  139. /package/lib/{mjs/dto → dto}/org/OrgReadDto.js +0 -0
  140. /package/lib/{cjs/dto → dto}/org/OrgUpdateReadDto.d.ts +0 -0
  141. /package/lib/{mjs/dto → dto}/org/OrgUpdateReadDto.js +0 -0
  142. /package/lib/{cjs/dto → dto}/public/CurrencyItem.d.ts +0 -0
  143. /package/lib/{mjs/dto → dto}/public/CurrencyItem.js +0 -0
  144. /package/lib/{cjs/dto → dto}/public/PlaceCommon.d.ts +0 -0
  145. /package/lib/{mjs/dto → dto}/public/PlaceCommon.js +0 -0
  146. /package/lib/{cjs/dto → dto}/public/PlaceLocation.d.ts +0 -0
  147. /package/lib/{mjs/dto → dto}/public/PlaceLocation.js +0 -0
  148. /package/lib/{cjs/dto → dto}/public/RegionData.d.ts +0 -0
  149. /package/lib/{mjs/dto → dto}/public/RegionData.js +0 -0
  150. /package/lib/{cjs/dto → dto}/user/AuditHistoryDto.d.ts +0 -0
  151. /package/lib/{mjs/dto → dto}/user/AuditHistoryDto.js +0 -0
  152. /package/lib/{cjs/dto → dto}/user/DeviceListDto.d.ts +0 -0
  153. /package/lib/{mjs/dto → dto}/user/DeviceListDto.js +0 -0
  154. /package/lib/{cjs/i18n → i18n}/CoreCulture.d.ts +0 -0
  155. /package/lib/{mjs/i18n → i18n}/CoreCulture.js +0 -0
  156. /package/lib/{cjs/index.d.ts → index.d.ts} +0 -0
  157. /package/lib/{mjs/index.js → index.js} +0 -0
  158. /package/lib/{cjs/rq → rq}/app/AppGetMyRQ.d.ts +0 -0
  159. /package/lib/{mjs/rq → rq}/app/AppGetMyRQ.js +0 -0
  160. /package/lib/{cjs/rq → rq}/app/AppListRQ.d.ts +0 -0
  161. /package/lib/{mjs/rq → rq}/app/AppListRQ.js +0 -0
  162. /package/lib/{cjs/rq → rq}/app/AppPurchasedQueryRQ.d.ts +0 -0
  163. /package/lib/{mjs/rq → rq}/app/AppPurchasedQueryRQ.js +0 -0
  164. /package/lib/{cjs/rq → rq}/app/AppQueryRQ.d.ts +0 -0
  165. /package/lib/{mjs/rq → rq}/app/AppQueryRQ.js +0 -0
  166. /package/lib/{cjs/rq → rq}/member/MemberListRQ.d.ts +0 -0
  167. /package/lib/{mjs/rq → rq}/member/MemberListRQ.js +0 -0
  168. /package/lib/{cjs/rq → rq}/member/MemberQueryRQ.d.ts +0 -0
  169. /package/lib/{mjs/rq → rq}/member/MemberQueryRQ.js +0 -0
  170. /package/lib/{cjs/rq → rq}/org/OrgCreateRQ.d.ts +0 -0
  171. /package/lib/{mjs/rq → rq}/org/OrgCreateRQ.js +0 -0
  172. /package/lib/{cjs/rq → rq}/org/OrgGetMyRQ.d.ts +0 -0
  173. /package/lib/{mjs/rq → rq}/org/OrgGetMyRQ.js +0 -0
  174. /package/lib/{cjs/rq → rq}/org/OrgListRQ.d.ts +0 -0
  175. /package/lib/{mjs/rq → rq}/org/OrgListRQ.js +0 -0
  176. /package/lib/{cjs/rq → rq}/org/OrgQueryRQ.d.ts +0 -0
  177. /package/lib/{mjs/rq → rq}/org/OrgQueryRQ.js +0 -0
  178. /package/lib/{cjs/rq → rq}/org/OrgUpdateRQ.d.ts +0 -0
  179. /package/lib/{mjs/rq → rq}/org/OrgUpdateRQ.js +0 -0
  180. /package/lib/{cjs/rq → rq}/public/CreateBarcodeRQ.d.ts +0 -0
  181. /package/lib/{mjs/rq → rq}/public/CreateBarcodeRQ.js +0 -0
  182. /package/lib/{cjs/rq → rq}/public/PinyinRQ.d.ts +0 -0
  183. /package/lib/{mjs/rq → rq}/public/PinyinRQ.js +0 -0
  184. /package/lib/{cjs/rq → rq}/public/PlaceQueryRQ.d.ts +0 -0
  185. /package/lib/{mjs/rq → rq}/public/PlaceQueryRQ.js +0 -0
  186. /package/lib/{cjs/rq → rq}/user/AuditHistoryRQ.d.ts +0 -0
  187. /package/lib/{mjs/rq → rq}/user/AuditHistoryRQ.js +0 -0
@@ -1,31 +0,0 @@
1
- /**
2
- * Application data
3
- * 程序数据
4
- */
5
- export type AppData = {
6
- /**
7
- * Id
8
- * 编号
9
- */
10
- id: number;
11
- /**
12
- * Application name
13
- * 程序名称
14
- */
15
- name: string;
16
- /**
17
- * Web URL
18
- * Web网址
19
- */
20
- webUrl: string;
21
- /**
22
- * Help URL
23
- * 帮助网址
24
- */
25
- helpUrl?: string;
26
- /**
27
- * Logo
28
- * 图标
29
- */
30
- logo?: string;
31
- };
@@ -1,6 +0,0 @@
1
- import { DataTypes } from "@etsoo/shared";
2
- /**
3
- * Application list data
4
- * 应用列表数据
5
- */
6
- export type AppListDto = DataTypes.IdNameItem & {};
@@ -1,28 +0,0 @@
1
- import { EntityStatus } from "@etsoo/appscript";
2
- import { AppQueryData } from "./AppQueryData";
3
- /**
4
- * Application purchased query data
5
- * 购买的应用查询数据
6
- */
7
- export type AppPurchasedQueryData = AppQueryData & {
8
- /**
9
- * Expiry
10
- * 到期时间
11
- */
12
- expiry?: string | Date;
13
- /**
14
- * Expiry days
15
- * 到期天数
16
- */
17
- expiryDays?: number;
18
- /**
19
- * Status
20
- * 状态
21
- */
22
- status: EntityStatus;
23
- /**
24
- * Creation
25
- * 创建时间
26
- */
27
- creation: string | Date;
28
- };
@@ -1,42 +0,0 @@
1
- import { IdentityType } from "../IdentityType";
2
- /**
3
- * Application query data
4
- * 应用查询数据
5
- */
6
- export type AppQueryData = {
7
- /**
8
- * Id
9
- * 编号
10
- */
11
- id: number;
12
- /**
13
- * Name
14
- * 名称
15
- */
16
- name: string;
17
- /**
18
- * Identity type
19
- * 身份类型
20
- */
21
- identityType: IdentityType;
22
- /**
23
- * Require local URL or not
24
- * 是否需要本地地址
25
- */
26
- requireLocalUrl?: boolean;
27
- /**
28
- * Web URL
29
- * 网页地址
30
- */
31
- webUrl: string;
32
- /**
33
- * Help URL
34
- * 帮助地址
35
- */
36
- helpUrl?: string;
37
- /**
38
- * Logo
39
- * 图标
40
- */
41
- logo?: string;
42
- };
@@ -1,6 +0,0 @@
1
- import { DataTypes } from "@etsoo/shared";
2
- /**
3
- * Member list data
4
- * 成员列表数据
5
- */
6
- export type MemberListDto = DataTypes.IdNameItem & {};
@@ -1,35 +0,0 @@
1
- import { EntityStatus, UserRole } from "@etsoo/appscript";
2
- export type MemberQueryDto = {
3
- /**
4
- * Id
5
- */
6
- id: number;
7
- /**
8
- * Name
9
- */
10
- name: string;
11
- /**
12
- * User role
13
- */
14
- userRole: UserRole;
15
- /**
16
- * Status
17
- */
18
- status: EntityStatus;
19
- /**
20
- * Assigned ID
21
- */
22
- assignedId?: string;
23
- /**
24
- * Is myself
25
- */
26
- isSelf: boolean;
27
- /**
28
- * Is owner
29
- */
30
- isOwner: boolean;
31
- /**
32
- * Creation
33
- */
34
- creation: string | Date;
35
- };
@@ -1,21 +0,0 @@
1
- /**
2
- * Get user's latest accessed organizations data
3
- * 获取用户最近访问的机构数据
4
- */
5
- export type OrgGetMyData = {
6
- /**
7
- * Id
8
- * 编号
9
- */
10
- id: number;
11
- /**
12
- * Name
13
- * 名称
14
- */
15
- name: string;
16
- /**
17
- * Brand
18
- * 品牌
19
- */
20
- brand?: string;
21
- };
@@ -1,6 +0,0 @@
1
- import { DataTypes } from "@etsoo/shared";
2
- /**
3
- * Organization list data
4
- * 机构列表数据
5
- */
6
- export type OrgListDto = DataTypes.IdNameItem & {};
@@ -1,39 +0,0 @@
1
- import { EntityStatus } from "@etsoo/appscript";
2
- /**
3
- * Organization query data
4
- * 机构查询数据
5
- */
6
- export type OrgQueryDto = {
7
- /**
8
- * Id
9
- */
10
- id: number;
11
- /**
12
- * Name
13
- */
14
- name: string;
15
- /**
16
- * Current user is the owner of the organization
17
- */
18
- isOwner: boolean;
19
- /**
20
- * Brand
21
- */
22
- brand?: string;
23
- /**
24
- * Identifier (Tax number)
25
- */
26
- pin?: string;
27
- /**
28
- * Parent Id
29
- */
30
- parentId?: number;
31
- /**
32
- * Status
33
- */
34
- status: EntityStatus;
35
- /**
36
- * Creation
37
- */
38
- creation: Date | string;
39
- };
@@ -1,47 +0,0 @@
1
- import { EntityStatus } from "@etsoo/appscript";
2
- /**
3
- * Organization read for view data
4
- * 机构查看数据
5
- */
6
- export type OrgReadDto = {
7
- /**
8
- * Id
9
- */
10
- id: number;
11
- /**
12
- * Owner name
13
- */
14
- ownerName: string;
15
- /**
16
- * Name
17
- */
18
- name: string;
19
- /**
20
- * Brand
21
- */
22
- brand?: string;
23
- /**
24
- * Logo
25
- */
26
- logo?: string;
27
- /**
28
- * PIN
29
- */
30
- pin?: string;
31
- /**
32
- * Parent name
33
- */
34
- parentName?: string;
35
- /**
36
- * Creation
37
- */
38
- creation: string | Date;
39
- /**
40
- * Status
41
- */
42
- status: EntityStatus;
43
- /**
44
- * Query Keyword
45
- */
46
- queryKeyword?: string;
47
- };
@@ -1,39 +0,0 @@
1
- import { EntityStatus } from "@etsoo/appscript";
2
- /**
3
- * Organization read for update data
4
- * 机构更新数据
5
- */
6
- export type OrgUpdateReadDto = {
7
- /**
8
- * Id
9
- */
10
- id: number;
11
- /**
12
- * Name
13
- */
14
- name: string;
15
- /**
16
- * Brand
17
- */
18
- brand?: string;
19
- /**
20
- * Logo
21
- */
22
- logo?: string;
23
- /**
24
- * PIN
25
- */
26
- pin?: string;
27
- /**
28
- * Parent Id
29
- */
30
- parentId?: number;
31
- /**
32
- * Status
33
- */
34
- status: EntityStatus;
35
- /**
36
- * Query Keyword
37
- */
38
- queryKeyword?: string;
39
- };
@@ -1,31 +0,0 @@
1
- /**
2
- * Currency item
3
- * 货币项目
4
- */
5
- export type CurrencyItem = {
6
- /**
7
- * Id, like CNY
8
- * 编号,如CNY
9
- */
10
- id: string;
11
- /**
12
- * Name, like Chinese Yuan
13
- * 名称,如人民币
14
- */
15
- name: string;
16
- /**
17
- * Native name, like 人民币
18
- * 原生名
19
- */
20
- nativeName: string;
21
- /**
22
- * English name, like Chinese Yuan
23
- * 英文名
24
- */
25
- englishName: string;
26
- /**
27
- * Symbol, like ¥
28
- * 货币符号
29
- */
30
- symbol: string;
31
- };
@@ -1,43 +0,0 @@
1
- import { PlaceLocation } from "./PlaceLocation";
2
- /**
3
- * Common place
4
- * 通用地点
5
- */
6
- export type PlaceCommon = {
7
- /**
8
- * Place id, 地点编号
9
- */
10
- placeId: string;
11
- /**
12
- * Place name, 地名
13
- */
14
- name: string;
15
- /**
16
- * Formatted address, 格式化地址
17
- */
18
- formattedAddress: string;
19
- /**
20
- * Location, 位置
21
- */
22
- location?: PlaceLocation;
23
- /**
24
- * Region, 地区
25
- */
26
- region?: string;
27
- /**
28
- * State, 州省
29
- */
30
- state?: string;
31
- /**
32
- * City, 城市
33
- */
34
- city?: string;
35
- /**
36
- * District, 区县
37
- */
38
- district?: string;
39
- /**
40
- * Postcode, 邮政编码
41
- */
42
- postcode?: string;
43
- };
@@ -1,14 +0,0 @@
1
- /**
2
- * Place location
3
- * 地点位置
4
- */
5
- export type PlaceLocation = {
6
- /**
7
- * Latitude, 纬度
8
- */
9
- Lat: number;
10
- /**
11
- * Longitude, 经度
12
- */
13
- Lng: number;
14
- };
@@ -1,36 +0,0 @@
1
- /**
2
- * Region data
3
- * 区域数据
4
- */
5
- export type RegionData = {
6
- /**
7
- * Id, like CN
8
- * 编号,如CN
9
- */
10
- id: string;
11
- /**
12
- * Id with 3 characters, like CHN
13
- * 3字符编号
14
- */
15
- id3: string;
16
- /**
17
- * Name, like China
18
- * 名称,如中国
19
- */
20
- name: string;
21
- /**
22
- * English name, like China
23
- * 英文名
24
- */
25
- englishName: string;
26
- /**
27
- * Currency id
28
- * 货币编号
29
- */
30
- currency: string;
31
- /**
32
- * Cultures supported
33
- * 支持的文化
34
- */
35
- cultures: string[];
36
- };
@@ -1,26 +0,0 @@
1
- /**
2
- * User audit history
3
- * 用户操作历史数据
4
- */
5
- export type AuditHistoryDto = {
6
- /**
7
- * Id
8
- */
9
- id: number;
10
- /**
11
- * Title
12
- */
13
- title: string;
14
- /**
15
- * Device name
16
- */
17
- deviceName: string;
18
- /**
19
- * JSON data
20
- */
21
- data?: string;
22
- /**
23
- * Creation
24
- */
25
- creation: Date | string;
26
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * Device list data
3
- * 设备列表数据
4
- */
5
- export type DeviceListDto = {
6
- id: number;
7
- name: string;
8
- };
@@ -1,44 +0,0 @@
1
- import { IApp } from "@etsoo/appscript";
2
- /**
3
- * Core culture
4
- */
5
- export declare namespace CoreCulture {
6
- /**
7
- * Get en neutral culture
8
- * @param localResources Local resources
9
- * @returns Full culture
10
- */
11
- const en: (...resources: (object | (() => Promise<object>))[]) => import("@etsoo/shared").DataTypes.CultureDefinition<import("@etsoo/shared").DataTypes.StringRecord>;
12
- /**
13
- * Get zh-Hans neutral cultrue
14
- * @param localResources Local resources
15
- * @returns Full culture
16
- */
17
- const zhHans: (...resources: (object | (() => Promise<object>))[]) => import("@etsoo/shared").DataTypes.CultureDefinition<import("@etsoo/shared").DataTypes.StringRecord>;
18
- /**
19
- * Get zh-Hant neutral cultrue
20
- * @param localResources Local resources
21
- * @returns Full culture
22
- */
23
- const zhHant: (...resources: (object | (() => Promise<object>))[]) => import("@etsoo/shared").DataTypes.CultureDefinition<import("@etsoo/shared").DataTypes.StringRecord>;
24
- /**
25
- * Get the toolpad locale
26
- * @param app Current app
27
- * @returns Result
28
- */
29
- const getToolpadLocale: (app: IApp) => {
30
- accountIconButtonAriaLabel: string;
31
- collapseMenuTitle: string;
32
- collapseNavMenuAriaLabel: string;
33
- darkModeTitle: string;
34
- expandMenuTitle: string;
35
- expandNavMenuAriaLabel: string;
36
- lightModeTitle: string;
37
- signInLabel: string;
38
- signOutLabel: string;
39
- switchModeTitle: string;
40
- switchThemeModeAriaLabel: string;
41
- switchToDarkModeAriaLabel: string;
42
- switchToLightModeAriaLabel: string;
43
- };
44
- }
@@ -1,40 +0,0 @@
1
- {
2
- "accountIconButtonAriaLabel": "Current user",
3
- "app1": "Admin Center",
4
- "app2": "O&M System",
5
- "app3": "Business Mgt.",
6
- "app4": "Finance System",
7
- "app5": "Progress Mgt.",
8
- "brand": "Brand",
9
- "collapseMenu": "Collapse menu",
10
- "collapseNavMenuAriaLabel": "Collapse navigation menu",
11
- "companyNo": "Company No.",
12
- "currentOrg": "Current organization",
13
- "darkMode": "Dark mode",
14
- "expandMenu": "Expand menu",
15
- "expandNavMenuAriaLabel": "Expand navigation menu",
16
- "lightMode": "Light mode",
17
- "orgName": "Org name",
18
- "parentOrg": "Parent org",
19
- "role": "Role",
20
- "roleAdmin": "Admin",
21
- "roleCashier": "Cashier",
22
- "roleFinance": "Finance",
23
- "roleFounder": "Founder",
24
- "roleGuest": "Guest",
25
- "roleHRManager": "HR Manager",
26
- "roleManager": "Manager",
27
- "roleOperator": "Operator",
28
- "roleOutsourcing": "Outsourcing",
29
- "rolePartner": "Channel Partner",
30
- "roleUser": "User",
31
- "smarterp": "SmartERP Cloud",
32
- "signin": "Sign in",
33
- "signout": "Sign out",
34
- "signoutSuccess": "Logout successful, please close the current window",
35
- "switchMode": "Switch mode",
36
- "switchThemeModeAriaLabel": "Switch theme mode",
37
- "switchToDarkModeAriaLabel": "Switch to dark mode",
38
- "switchToLightModeAriaLabel": "Switch to light mode",
39
- "switchOrg": "Switch organization"
40
- }
@@ -1,39 +0,0 @@
1
- export * from "./dto/app/AppData";
2
- export * from "./dto/app/AppListDto";
3
- export * from "./dto/app/AppPurchasedQueryData";
4
- export * from "./dto/app/AppQueryData";
5
- export * from "./dto/member/MemberListDto";
6
- export * from "./dto/member/MemberQueryDto";
7
- export * from "./dto/org/OrgGetMyData";
8
- export * from "./dto/org/OrgListDto";
9
- export * from "./dto/org/OrgQueryDto";
10
- export * from "./dto/org/OrgReadDto";
11
- export * from "./dto/org/OrgUpdateReadDto";
12
- export * from "./dto/public/CurrencyItem";
13
- export * from "./dto/public/PlaceCommon";
14
- export * from "./dto/public/PlaceLocation";
15
- export * from "./dto/public/RegionData";
16
- export * from "./dto/user/AuditHistoryDto";
17
- export * from "./dto/user/DeviceListDto";
18
- export * from "./i18n/CoreCulture";
19
- export * from "./rq/app/AppGetMyRQ";
20
- export * from "./rq/app/AppListRQ";
21
- export * from "./rq/app/AppPurchasedQueryRQ";
22
- export * from "./rq/app/AppQueryRQ";
23
- export * from "./rq/member/MemberListRQ";
24
- export * from "./rq/member/MemberQueryRQ";
25
- export * from "./rq/org/OrgCreateRQ";
26
- export * from "./rq/org/OrgGetMyRQ";
27
- export * from "./rq/org/OrgListRQ";
28
- export * from "./rq/org/OrgQueryRQ";
29
- export * from "./rq/org/OrgUpdateRQ";
30
- export * from "./rq/public/CreateBarcodeRQ";
31
- export * from "./rq/public/PinyinRQ";
32
- export * from "./rq/public/PlaceQueryRQ";
33
- export * from "./rq/user/AuditHistoryRQ";
34
- export * from "./AppApi";
35
- export * from "./CoreApp";
36
- export * from "./MemberApi";
37
- export * from "./OrgApi";
38
- export * from "./PublicApi";
39
- export * from "./UserApi";
@@ -1,19 +0,0 @@
1
- import { IdentityType } from "../../dto/IdentityType";
2
- /**
3
- * Get user's latest accessed applications request data
4
- * 获取用户最近访问的应用请求数据
5
- */
6
- export type AppGetMyRQ = {
7
- /**
8
- * Maximum items
9
- * 最大项数
10
- * @default 10
11
- */
12
- maxItems?: number;
13
- /**
14
- * Identity type
15
- * 身份类型
16
- * @default IdentityType.User
17
- */
18
- identityType?: IdentityType;
19
- };
@@ -1,18 +0,0 @@
1
- import { QueryRQ } from "@etsoo/appscript";
2
- import { IdentityType } from "../../dto/IdentityType";
3
- /**
4
- * Application list request data
5
- * 应用列表请求数据
6
- */
7
- export type AppListRQ = QueryRQ & {
8
- /**
9
- * Identity type
10
- * 身份类型
11
- */
12
- identityType?: IdentityType;
13
- /**
14
- * Require local URL or not
15
- * 是否需要本地地址
16
- */
17
- requireLocalUrl?: boolean;
18
- };
@@ -1,17 +0,0 @@
1
- import { AppListRQ } from "./AppListRQ";
2
- /**
3
- * Application purchased query request data
4
- * 应用已购买查询请求数据
5
- */
6
- export type AppPurchasedQueryRQ = AppListRQ & {
7
- /**
8
- * Expiry date
9
- * 过期日期
10
- */
11
- expiry?: Date | string;
12
- /**
13
- * Expiry days
14
- * 过期天数
15
- */
16
- expiryDays?: number;
17
- };
@@ -1,6 +0,0 @@
1
- import { AppListRQ } from "./AppListRQ";
2
- /**
3
- * Application query request data
4
- * 应用查询请求数据
5
- */
6
- export type AppQueryRQ = AppListRQ & {};
@@ -1,18 +0,0 @@
1
- import { StatusQueryRQ, UserRole } from "@etsoo/appscript";
2
- /**
3
- * Member list request data
4
- */
5
- export type MemberListRQ = StatusQueryRQ & {
6
- /**
7
- * Exclude self user or not
8
- */
9
- excludeSelf?: boolean;
10
- /**
11
- * User role
12
- */
13
- userRole?: UserRole;
14
- /**
15
- * User role start
16
- */
17
- userRoleStart?: UserRole;
18
- };