@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.
Files changed (217) hide show
  1. package/__tests__/OrgApi.ts +6 -3
  2. package/__tests__/PublicApi.ts +3 -1
  3. package/__tests__/UserApi.ts +1 -1
  4. package/__tests__/tsconfig.json +12 -10
  5. package/lib/cjs/AppApi.d.ts +59 -1
  6. package/lib/cjs/AppApi.js +64 -1
  7. package/lib/cjs/AuthCodeApi.d.ts +29 -0
  8. package/lib/cjs/AuthCodeApi.js +50 -0
  9. package/lib/cjs/CoreApp.d.ts +116 -10
  10. package/lib/cjs/CoreApp.js +72 -6
  11. package/lib/cjs/CoreUtils.d.ts +4 -0
  12. package/lib/cjs/CoreUtils.js +2 -0
  13. package/lib/cjs/ICoreServiceApp.d.ts +30 -0
  14. package/lib/cjs/ICoreServiceApp.js +49 -0
  15. package/lib/cjs/MemberApi.d.ts +41 -1
  16. package/lib/cjs/MemberApi.js +46 -0
  17. package/lib/cjs/OrgApi.d.ts +9 -2
  18. package/lib/cjs/OrgApi.js +12 -3
  19. package/lib/cjs/PublicApi.d.ts +17 -1
  20. package/lib/cjs/PublicApi.js +20 -2
  21. package/lib/cjs/UserApi.d.ts +30 -1
  22. package/lib/cjs/UserApi.js +36 -1
  23. package/lib/cjs/components/DefaultUI.d.ts +21 -0
  24. package/lib/cjs/components/DefaultUI.js +34 -0
  25. package/lib/cjs/components/app/AppSwitchPopover.d.ts +4 -0
  26. package/lib/cjs/components/app/AppSwitchPopover.js +43 -0
  27. package/lib/cjs/components/index.d.ts +4 -0
  28. package/lib/cjs/components/index.js +23 -0
  29. package/lib/cjs/components/org/OrgSwitchPopover.d.ts +4 -0
  30. package/lib/cjs/components/org/OrgSwitchPopover.js +49 -0
  31. package/lib/cjs/components/org/OrgTiplist.d.ts +23 -0
  32. package/lib/cjs/components/org/OrgTiplist.js +28 -0
  33. package/lib/cjs/dto/app/AppQueryData.d.ts +5 -0
  34. package/lib/cjs/dto/app/AppReadDto.d.ts +62 -0
  35. package/lib/cjs/dto/app/AppReadDto.js +2 -0
  36. package/lib/cjs/dto/app/AppUpdateReadDto.d.ts +35 -0
  37. package/lib/cjs/dto/app/AppUpdateReadDto.js +2 -0
  38. package/lib/cjs/dto/app/CreateApiKeyData.d.ts +16 -0
  39. package/lib/cjs/dto/app/CreateApiKeyData.js +2 -0
  40. package/lib/cjs/dto/authCode/AuthCodeAction.d.ts +12 -0
  41. package/lib/cjs/dto/authCode/AuthCodeAction.js +16 -0
  42. package/lib/cjs/dto/member/MemberQueryDto.d.ts +4 -0
  43. package/lib/cjs/dto/member/MemberReadDto.d.ts +56 -0
  44. package/lib/cjs/dto/member/MemberReadDto.js +2 -0
  45. package/lib/cjs/dto/member/MemberUpdateReadDto.d.ts +39 -0
  46. package/lib/cjs/dto/member/MemberUpdateReadDto.js +2 -0
  47. package/lib/cjs/dto/org/OrgListDto.d.ts +7 -1
  48. package/lib/cjs/dto/org/OrgQueryDto.d.ts +8 -0
  49. package/lib/cjs/dto/org/OrgReadDto.d.ts +16 -0
  50. package/lib/cjs/dto/org/OrgUpdateReadDto.d.ts +0 -4
  51. package/lib/cjs/dto/public/MemberInvitationDto.d.ts +29 -0
  52. package/lib/cjs/dto/public/MemberInvitationDto.js +2 -0
  53. package/lib/cjs/dto/user/AuditHistoryDto.d.ts +8 -4
  54. package/lib/cjs/dto/user/UserIdentifierData.d.ts +27 -0
  55. package/lib/cjs/dto/user/UserIdentifierData.js +2 -0
  56. package/lib/cjs/i18n/en.json +40 -2
  57. package/lib/cjs/i18n/zh-Hans.json +40 -2
  58. package/lib/cjs/i18n/zh-Hant.json +40 -2
  59. package/lib/cjs/index.d.ts +22 -0
  60. package/lib/cjs/index.js +22 -0
  61. package/lib/cjs/rq/app/AppBuyNewRQ.d.ts +26 -0
  62. package/lib/cjs/rq/app/AppBuyNewRQ.js +2 -0
  63. package/lib/cjs/rq/app/AppBuyRQ.d.ts +16 -0
  64. package/lib/cjs/rq/app/AppBuyRQ.js +2 -0
  65. package/lib/cjs/rq/app/AppCreateApiKeyRQ.d.ts +16 -0
  66. package/lib/cjs/rq/app/AppCreateApiKeyRQ.js +2 -0
  67. package/lib/cjs/rq/app/AppGetMyRQ.d.ts +1 -1
  68. package/lib/cjs/rq/app/AppRenewRQ.d.ts +16 -0
  69. package/lib/cjs/rq/app/AppRenewRQ.js +2 -0
  70. package/lib/cjs/rq/app/AppUpdateRQ.d.ts +31 -0
  71. package/lib/cjs/rq/app/AppUpdateRQ.js +2 -0
  72. package/lib/cjs/rq/authCode/SendEmailRQ.d.ts +31 -0
  73. package/lib/cjs/rq/authCode/SendEmailRQ.js +2 -0
  74. package/lib/cjs/rq/authCode/SendSMSRQ.d.ts +27 -0
  75. package/lib/cjs/rq/authCode/SendSMSRQ.js +2 -0
  76. package/lib/cjs/rq/authCode/ValidateRQ.d.ts +17 -0
  77. package/lib/cjs/rq/authCode/ValidateRQ.js +2 -0
  78. package/lib/cjs/rq/member/MemberInviteRQ.d.ts +22 -0
  79. package/lib/cjs/rq/member/MemberInviteRQ.js +2 -0
  80. package/lib/cjs/rq/member/MemberUpdateRQ.d.ts +32 -0
  81. package/lib/cjs/rq/member/MemberUpdateRQ.js +2 -0
  82. package/lib/cjs/rq/org/OrgCreateRQ.d.ts +5 -0
  83. package/lib/cjs/rq/public/AcceptInvitationRQ.d.ts +16 -0
  84. package/lib/cjs/rq/public/AcceptInvitationRQ.js +2 -0
  85. package/lib/cjs/rq/user/AuditHistoryRQ.d.ts +8 -0
  86. package/lib/mjs/AppApi.d.ts +59 -1
  87. package/lib/mjs/AppApi.js +64 -1
  88. package/lib/mjs/AuthCodeApi.d.ts +29 -0
  89. package/lib/mjs/AuthCodeApi.js +46 -0
  90. package/lib/mjs/CoreApp.d.ts +116 -10
  91. package/lib/mjs/CoreApp.js +73 -7
  92. package/lib/mjs/CoreUtils.d.ts +4 -0
  93. package/lib/mjs/CoreUtils.js +1 -0
  94. package/lib/mjs/ICoreServiceApp.d.ts +30 -0
  95. package/lib/mjs/ICoreServiceApp.js +41 -0
  96. package/lib/mjs/MemberApi.d.ts +41 -1
  97. package/lib/mjs/MemberApi.js +46 -0
  98. package/lib/mjs/OrgApi.d.ts +9 -2
  99. package/lib/mjs/OrgApi.js +12 -3
  100. package/lib/mjs/PublicApi.d.ts +17 -1
  101. package/lib/mjs/PublicApi.js +20 -2
  102. package/lib/mjs/UserApi.d.ts +30 -1
  103. package/lib/mjs/UserApi.js +36 -1
  104. package/lib/mjs/components/DefaultUI.d.ts +21 -0
  105. package/lib/mjs/components/DefaultUI.js +31 -0
  106. package/lib/mjs/components/app/AppSwitchPopover.d.ts +4 -0
  107. package/lib/mjs/components/app/AppSwitchPopover.js +37 -0
  108. package/lib/mjs/components/index.d.ts +4 -0
  109. package/lib/mjs/components/index.js +7 -0
  110. package/lib/mjs/components/org/OrgSwitchPopover.d.ts +4 -0
  111. package/lib/mjs/components/org/OrgSwitchPopover.js +43 -0
  112. package/lib/mjs/components/org/OrgTiplist.d.ts +23 -0
  113. package/lib/mjs/components/org/OrgTiplist.js +25 -0
  114. package/lib/mjs/dto/app/AppQueryData.d.ts +5 -0
  115. package/lib/mjs/dto/app/AppReadDto.d.ts +62 -0
  116. package/lib/mjs/dto/app/AppReadDto.js +1 -0
  117. package/lib/mjs/dto/app/AppUpdateReadDto.d.ts +35 -0
  118. package/lib/mjs/dto/app/AppUpdateReadDto.js +1 -0
  119. package/lib/mjs/dto/app/CreateApiKeyData.d.ts +16 -0
  120. package/lib/mjs/dto/app/CreateApiKeyData.js +1 -0
  121. package/lib/mjs/dto/authCode/AuthCodeAction.d.ts +12 -0
  122. package/lib/mjs/dto/authCode/AuthCodeAction.js +13 -0
  123. package/lib/mjs/dto/member/MemberQueryDto.d.ts +4 -0
  124. package/lib/mjs/dto/member/MemberReadDto.d.ts +56 -0
  125. package/lib/mjs/dto/member/MemberReadDto.js +1 -0
  126. package/lib/mjs/dto/member/MemberUpdateReadDto.d.ts +39 -0
  127. package/lib/mjs/dto/member/MemberUpdateReadDto.js +1 -0
  128. package/lib/mjs/dto/org/OrgListDto.d.ts +7 -1
  129. package/lib/mjs/dto/org/OrgQueryDto.d.ts +8 -0
  130. package/lib/mjs/dto/org/OrgReadDto.d.ts +16 -0
  131. package/lib/mjs/dto/org/OrgUpdateReadDto.d.ts +0 -4
  132. package/lib/mjs/dto/public/MemberInvitationDto.d.ts +29 -0
  133. package/lib/mjs/dto/public/MemberInvitationDto.js +1 -0
  134. package/lib/mjs/dto/user/AuditHistoryDto.d.ts +8 -4
  135. package/lib/mjs/dto/user/UserIdentifierData.d.ts +27 -0
  136. package/lib/mjs/dto/user/UserIdentifierData.js +1 -0
  137. package/lib/mjs/i18n/en.json +40 -2
  138. package/lib/mjs/i18n/zh-Hans.json +40 -2
  139. package/lib/mjs/i18n/zh-Hant.json +40 -2
  140. package/lib/mjs/index.d.ts +22 -0
  141. package/lib/mjs/index.js +22 -0
  142. package/lib/mjs/rq/app/AppBuyNewRQ.d.ts +26 -0
  143. package/lib/mjs/rq/app/AppBuyNewRQ.js +1 -0
  144. package/lib/mjs/rq/app/AppBuyRQ.d.ts +16 -0
  145. package/lib/mjs/rq/app/AppBuyRQ.js +1 -0
  146. package/lib/mjs/rq/app/AppCreateApiKeyRQ.d.ts +16 -0
  147. package/lib/mjs/rq/app/AppCreateApiKeyRQ.js +1 -0
  148. package/lib/mjs/rq/app/AppGetMyRQ.d.ts +1 -1
  149. package/lib/mjs/rq/app/AppRenewRQ.d.ts +16 -0
  150. package/lib/mjs/rq/app/AppRenewRQ.js +1 -0
  151. package/lib/mjs/rq/app/AppUpdateRQ.d.ts +31 -0
  152. package/lib/mjs/rq/app/AppUpdateRQ.js +1 -0
  153. package/lib/mjs/rq/authCode/SendEmailRQ.d.ts +31 -0
  154. package/lib/mjs/rq/authCode/SendEmailRQ.js +1 -0
  155. package/lib/mjs/rq/authCode/SendSMSRQ.d.ts +27 -0
  156. package/lib/mjs/rq/authCode/SendSMSRQ.js +1 -0
  157. package/lib/mjs/rq/authCode/ValidateRQ.d.ts +17 -0
  158. package/lib/mjs/rq/authCode/ValidateRQ.js +1 -0
  159. package/lib/mjs/rq/member/MemberInviteRQ.d.ts +22 -0
  160. package/lib/mjs/rq/member/MemberInviteRQ.js +1 -0
  161. package/lib/mjs/rq/member/MemberUpdateRQ.d.ts +32 -0
  162. package/lib/mjs/rq/member/MemberUpdateRQ.js +1 -0
  163. package/lib/mjs/rq/org/OrgCreateRQ.d.ts +5 -0
  164. package/lib/mjs/rq/public/AcceptInvitationRQ.d.ts +16 -0
  165. package/lib/mjs/rq/public/AcceptInvitationRQ.js +1 -0
  166. package/lib/mjs/rq/user/AuditHistoryRQ.d.ts +8 -0
  167. package/package.json +26 -36
  168. package/src/AppApi.ts +89 -2
  169. package/src/AuthCodeApi.ts +51 -0
  170. package/src/CoreApp.ts +152 -9
  171. package/src/CoreUtils.ts +4 -0
  172. package/src/ICoreServiceApp.ts +62 -0
  173. package/src/MemberApi.ts +61 -2
  174. package/src/OrgApi.ts +13 -3
  175. package/src/PublicApi.ts +24 -1
  176. package/src/UserApi.ts +53 -1
  177. package/src/components/DefaultUI.tsx +37 -0
  178. package/src/components/app/AppSwitchPopover.tsx +83 -0
  179. package/src/components/index.ts +9 -0
  180. package/src/components/org/OrgSwitchPopover.tsx +99 -0
  181. package/src/components/org/OrgTiplist.tsx +69 -0
  182. package/src/dto/app/AppQueryData.ts +6 -0
  183. package/src/dto/app/AppReadDto.ts +75 -0
  184. package/src/dto/app/AppUpdateReadDto.ts +42 -0
  185. package/src/dto/app/CreateApiKeyData.ts +17 -0
  186. package/src/dto/authCode/AuthCodeAction.ts +13 -0
  187. package/src/dto/member/MemberQueryDto.ts +5 -0
  188. package/src/dto/member/MemberReadDto.ts +68 -0
  189. package/src/dto/member/MemberUpdateReadDto.ts +47 -0
  190. package/src/dto/org/OrgListDto.ts +7 -1
  191. package/src/dto/org/OrgQueryDto.ts +10 -0
  192. package/src/dto/org/OrgReadDto.ts +20 -0
  193. package/src/dto/org/OrgUpdateReadDto.ts +0 -5
  194. package/src/dto/public/MemberInvitationDto.ts +34 -0
  195. package/src/dto/user/AuditHistoryDto.ts +9 -4
  196. package/src/dto/user/UserIdentifierData.ts +31 -0
  197. package/src/i18n/en.json +40 -2
  198. package/src/i18n/zh-Hans.json +40 -2
  199. package/src/i18n/zh-Hant.json +40 -2
  200. package/src/index.ts +24 -0
  201. package/src/rq/app/AppBuyNewRQ.ts +29 -0
  202. package/src/rq/app/AppBuyRQ.ts +17 -0
  203. package/src/rq/app/AppCreateApiKeyRQ.ts +17 -0
  204. package/src/rq/app/AppGetMyRQ.ts +1 -1
  205. package/src/rq/app/AppRenewRQ.ts +17 -0
  206. package/src/rq/app/AppUpdateRQ.ts +36 -0
  207. package/src/rq/authCode/SendEmailRQ.ts +36 -0
  208. package/src/rq/authCode/SendSMSRQ.ts +31 -0
  209. package/src/rq/authCode/ValidateRQ.ts +19 -0
  210. package/src/rq/member/MemberInviteRQ.ts +25 -0
  211. package/src/rq/member/MemberUpdateRQ.ts +37 -0
  212. package/src/rq/org/OrgCreateRQ.ts +6 -0
  213. package/src/rq/public/AcceptInvitationRQ.ts +17 -0
  214. package/src/rq/user/AuditHistoryRQ.ts +10 -0
  215. package/tsconfig.cjs.json +4 -3
  216. package/tsconfig.json +5 -4
  217. package/vite.config.mts +12 -0
@@ -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
- "roleHRManager": "人事經理",
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
  }
@@ -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/cjs/index.js CHANGED
@@ -19,40 +19,62 @@ __exportStar(require("./dto/app/AppData"), exports);
19
19
  __exportStar(require("./dto/app/AppListDto"), exports);
20
20
  __exportStar(require("./dto/app/AppPurchasedQueryData"), exports);
21
21
  __exportStar(require("./dto/app/AppQueryData"), exports);
22
+ __exportStar(require("./dto/app/AppReadDto"), exports);
23
+ __exportStar(require("./dto/app/AppUpdateReadDto"), exports);
24
+ __exportStar(require("./dto/app/CreateApiKeyData"), exports);
25
+ __exportStar(require("./dto/authCode/AuthCodeAction"), exports);
22
26
  __exportStar(require("./dto/member/MemberListDto"), exports);
23
27
  __exportStar(require("./dto/member/MemberQueryDto"), exports);
28
+ __exportStar(require("./dto/member/MemberReadDto"), exports);
29
+ __exportStar(require("./dto/member/MemberUpdateReadDto"), exports);
24
30
  __exportStar(require("./dto/org/OrgGetMyData"), exports);
25
31
  __exportStar(require("./dto/org/OrgListDto"), exports);
26
32
  __exportStar(require("./dto/org/OrgQueryDto"), exports);
27
33
  __exportStar(require("./dto/org/OrgReadDto"), exports);
28
34
  __exportStar(require("./dto/org/OrgUpdateReadDto"), exports);
29
35
  __exportStar(require("./dto/public/CurrencyItem"), exports);
36
+ __exportStar(require("./dto/public/MemberInvitationDto"), exports);
30
37
  __exportStar(require("./dto/public/PlaceCommon"), exports);
31
38
  __exportStar(require("./dto/public/PlaceLocation"), exports);
32
39
  __exportStar(require("./dto/public/RegionData"), exports);
33
40
  __exportStar(require("./dto/user/AuditHistoryDto"), exports);
34
41
  __exportStar(require("./dto/user/DeviceListDto"), exports);
42
+ __exportStar(require("./dto/user/UserIdentifierData"), exports);
35
43
  // i18n
36
44
  __exportStar(require("./i18n/CoreCulture"), exports);
37
45
  // RQ
46
+ __exportStar(require("./rq/app/AppBuyNewRQ"), exports);
47
+ __exportStar(require("./rq/app/AppBuyRQ"), exports);
48
+ __exportStar(require("./rq/app/AppCreateApiKeyRQ"), exports);
38
49
  __exportStar(require("./rq/app/AppGetMyRQ"), exports);
39
50
  __exportStar(require("./rq/app/AppListRQ"), exports);
40
51
  __exportStar(require("./rq/app/AppPurchasedQueryRQ"), exports);
41
52
  __exportStar(require("./rq/app/AppQueryRQ"), exports);
53
+ __exportStar(require("./rq/app/AppRenewRQ"), exports);
54
+ __exportStar(require("./rq/app/AppUpdateRQ"), exports);
55
+ __exportStar(require("./rq/authCode/SendEmailRQ"), exports);
56
+ __exportStar(require("./rq/authCode/SendSMSRQ"), exports);
57
+ __exportStar(require("./rq/authCode/ValidateRQ"), exports);
58
+ __exportStar(require("./rq/member/MemberInviteRQ"), exports);
42
59
  __exportStar(require("./rq/member/MemberListRQ"), exports);
43
60
  __exportStar(require("./rq/member/MemberQueryRQ"), exports);
61
+ __exportStar(require("./rq/member/MemberUpdateRQ"), exports);
44
62
  __exportStar(require("./rq/org/OrgCreateRQ"), exports);
45
63
  __exportStar(require("./rq/org/OrgGetMyRQ"), exports);
46
64
  __exportStar(require("./rq/org/OrgListRQ"), exports);
47
65
  __exportStar(require("./rq/org/OrgQueryRQ"), exports);
48
66
  __exportStar(require("./rq/org/OrgUpdateRQ"), exports);
67
+ __exportStar(require("./rq/public/AcceptInvitationRQ"), exports);
49
68
  __exportStar(require("./rq/public/CreateBarcodeRQ"), exports);
50
69
  __exportStar(require("./rq/public/PinyinRQ"), exports);
51
70
  __exportStar(require("./rq/public/PlaceQueryRQ"), exports);
52
71
  __exportStar(require("./rq/user/AuditHistoryRQ"), exports);
53
72
  // APIs
54
73
  __exportStar(require("./AppApi"), exports);
74
+ __exportStar(require("./AuthCodeApi"), exports);
55
75
  __exportStar(require("./CoreApp"), exports);
76
+ __exportStar(require("./CoreUtils"), exports);
77
+ __exportStar(require("./ICoreServiceApp"), exports);
56
78
  __exportStar(require("./MemberApi"), exports);
57
79
  __exportStar(require("./OrgApi"), exports);
58
80
  __exportStar(require("./PublicApi"), exports);
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Application buy request data
3
+ * 购买应用请求数据
4
+ */
5
+ export type AppBuyRQ = {
6
+ /**
7
+ * Application ID
8
+ * 应用编号
9
+ */
10
+ id: number;
11
+ /**
12
+ * Organization ID
13
+ * 机构编号
14
+ */
15
+ organizationId: number;
16
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * App create API key request data
3
+ * 应用创建API密钥请求数据
4
+ */
5
+ export type AppCreateApiKeyRQ = {
6
+ /**
7
+ * Id
8
+ * 编号
9
+ */
10
+ id: number;
11
+ /**
12
+ * Device Id
13
+ * 设备编号
14
+ */
15
+ deviceId: string;
16
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,5 +15,5 @@ export type AppGetMyRQ = {
15
15
  * 身份类型
16
16
  * @default IdentityType.User
17
17
  */
18
- identityType?: IdentityType;
18
+ identityType: IdentityType;
19
19
  };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Application renew request data
3
+ * 应用续费请求数据
4
+ */
5
+ export type AppRenewRQ = {
6
+ /**
7
+ * Organization application ID
8
+ * 机构应用编号
9
+ */
10
+ id: number;
11
+ /**
12
+ * Months to renew
13
+ * 续费月数
14
+ */
15
+ months: number;
16
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ import { EntityStatus, UpdateModel } from "@etsoo/appscript";
2
+ /**
3
+ * App update request data
4
+ * 应用更新请求数据
5
+ */
6
+ export interface AppUpdateRQ extends UpdateModel {
7
+ /**
8
+ * Local name
9
+ * 本地名称
10
+ */
11
+ localName?: string;
12
+ /**
13
+ * Local Web URL
14
+ * 本地网址
15
+ */
16
+ localUrl?: string;
17
+ /**
18
+ * Local help URL
19
+ * 本地帮助网址
20
+ */
21
+ localHelpUrl?: string;
22
+ /**
23
+ * Local APIs
24
+ * 本地接口
25
+ */
26
+ localApis?: string[];
27
+ /**
28
+ * Status
29
+ */
30
+ status?: EntityStatus;
31
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ import { AuthCodeAction } from "../../dto/authCode/AuthCodeAction";
2
+ /**
3
+ * Send email input request data
4
+ */
5
+ export type SendEmailInputRQ = {
6
+ /**
7
+ * Template/action id
8
+ */
9
+ action: AuthCodeAction;
10
+ /**
11
+ * Email address
12
+ */
13
+ email: string;
14
+ };
15
+ /**
16
+ * Send email request data
17
+ */
18
+ export type SendEmailRQ = SendEmailInputRQ & {
19
+ /**
20
+ * Device id
21
+ */
22
+ deviceId: string;
23
+ /**
24
+ * Country or region
25
+ */
26
+ region: string;
27
+ /**
28
+ * Timezone
29
+ */
30
+ timezone: string;
31
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ import { AuthCodeAction } from "../../dto/authCode/AuthCodeAction";
2
+ /**
3
+ * Send SMS input request data
4
+ */
5
+ export type SendSMSInputRQ = {
6
+ /**
7
+ * Template/action id
8
+ */
9
+ action: AuthCodeAction;
10
+ /**
11
+ * Mobile number
12
+ */
13
+ mobile: string;
14
+ };
15
+ /**
16
+ * Send SMS request data
17
+ */
18
+ export type SendSMSRQ = SendSMSInputRQ & {
19
+ /**
20
+ * Device id
21
+ */
22
+ deviceId: string;
23
+ /**
24
+ * Country or region
25
+ */
26
+ region?: string;
27
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Valiate request data
3
+ */
4
+ export type ValidateRQ = {
5
+ /**
6
+ * Device id
7
+ */
8
+ deviceId: string;
9
+ /**
10
+ * Id
11
+ */
12
+ id: string;
13
+ /**
14
+ * Code
15
+ */
16
+ code: string;
17
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import { UserRole } from "@etsoo/appscript";
2
+ /**
3
+ * Member invite request data
4
+ * 成员邀请请求数据
5
+ */
6
+ export type MemberInviteRQ = {
7
+ /**
8
+ * User role
9
+ * 用户角色
10
+ */
11
+ userRole: UserRole;
12
+ /**
13
+ * Emails
14
+ * 电子信箱
15
+ */
16
+ emails: string[];
17
+ /**
18
+ * Message
19
+ * 留言
20
+ */
21
+ message?: string;
22
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { EntityStatus, UpdateModel, UserRole } from "@etsoo/appscript";
2
+ /**
3
+ * Update member request data
4
+ * 更新成员请求数据
5
+ */
6
+ export interface MemberUpdateRQ extends UpdateModel {
7
+ /**
8
+ * User role
9
+ * 用户角色
10
+ */
11
+ userRole?: UserRole;
12
+ /**
13
+ * Local name
14
+ * 本地名称
15
+ */
16
+ localName?: string;
17
+ /**
18
+ * Assigned id
19
+ * 分配的编号
20
+ */
21
+ assignedId?: string;
22
+ /**
23
+ * Expiry
24
+ * 过期时间
25
+ */
26
+ expiry?: string | Date;
27
+ /**
28
+ * Status
29
+ * 状况
30
+ */
31
+ status?: EntityStatus;
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -34,4 +34,9 @@ export type OrgCreateRQ = {
34
34
  * 查询关键字
35
35
  */
36
36
  queryKeyword?: string;
37
+ /**
38
+ * Region
39
+ * 所在区域
40
+ */
41
+ region: string;
37
42
  };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Accept invitation request data
3
+ * 接受邀请请求数据
4
+ */
5
+ export type AcceptInvitationRQ = {
6
+ /**
7
+ * Invitation ID
8
+ * 邀请编号
9
+ */
10
+ id: string;
11
+ /**
12
+ * Invitation code
13
+ * 邀请码
14
+ */
15
+ code: string;
16
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,14 @@ export type AuditHistoryRQ = QueryRQ & {
8
8
  * Device id
9
9
  */
10
10
  deviceId?: number;
11
+ /**
12
+ * Kind
13
+ */
14
+ kind?: string;
15
+ /**
16
+ * Target id
17
+ */
18
+ targetId?: number;
11
19
  /**
12
20
  * Creation start
13
21
  */
@@ -1,5 +1,5 @@
1
1
  import { IApi, IApiPayload } from "@etsoo/restclient";
2
- import { EntityApi, IApp } from "@etsoo/appscript";
2
+ import { EntityApi, IApp, IdResultPayload, ResultPayload } from "@etsoo/appscript";
3
3
  import { AppGetMyRQ } from "./rq/app/AppGetMyRQ";
4
4
  import { AppQueryData } from "./dto/app/AppQueryData";
5
5
  import { AppListRQ } from "./rq/app/AppListRQ";
@@ -7,6 +7,15 @@ import { AppListDto } from "./dto/app/AppListDto";
7
7
  import { AppQueryRQ } from "./rq/app/AppQueryRQ";
8
8
  import { AppPurchasedQueryRQ } from "./rq/app/AppPurchasedQueryRQ";
9
9
  import { AppPurchasedQueryData } from "./dto/app/AppPurchasedQueryData";
10
+ import { AppBuyNewRQ } from "./rq/app/AppBuyNewRQ";
11
+ import { AppBuyRQ } from "./rq/app/AppBuyRQ";
12
+ import { AppRenewRQ } from "./rq/app/AppRenewRQ";
13
+ import { AppUpdateRQ } from "./rq/app/AppUpdateRQ";
14
+ import { AppUpdateReadDto } from "./dto/app/AppUpdateReadDto";
15
+ import { AppReadDto } from "./dto/app/AppReadDto";
16
+ import { CreateApiKeyData } from "./dto/app/CreateApiKeyData";
17
+ import { IActionResult } from "@etsoo/shared";
18
+ import { AppCreateApiKeyRQ } from "./rq/app/AppCreateApiKeyRQ";
10
19
  /**
11
20
  * Application API
12
21
  */
@@ -17,6 +26,27 @@ export declare class AppApi extends EntityApi {
17
26
  * @param api API
18
27
  */
19
28
  constructor(app: IApp, api?: IApi);
29
+ /**
30
+ * Buy the application
31
+ * @param rq Request data
32
+ * @param payload Payload
33
+ * @returns Result
34
+ */
35
+ buy(rq: AppBuyRQ, payload?: ResultPayload): Promise<IActionResult<{}> | undefined>;
36
+ /**
37
+ * Buy and create new organization
38
+ * @param rq Request data
39
+ * @param payload Payload
40
+ * @returns Result
41
+ */
42
+ buyNew(rq: AppBuyNewRQ, payload?: IdResultPayload): Promise<import("@etsoo/shared").IdActionResult | undefined>;
43
+ /**
44
+ * Create API key
45
+ * @param rq Request data
46
+ * @param payload Payload
47
+ * @returns Result
48
+ */
49
+ createApiKey(rq: AppCreateApiKeyRQ, payload?: IApiPayload<IActionResult<CreateApiKeyData>>): Promise<IActionResult<CreateApiKeyData> | undefined>;
20
50
  /**
21
51
  * Get user's latest accessed applications
22
52
  * @param rq Request data
@@ -45,4 +75,32 @@ export declare class AppApi extends EntityApi {
45
75
  * @returns Result
46
76
  */
47
77
  queryPurchased(rq: AppPurchasedQueryRQ, payload?: IApiPayload<AppPurchasedQueryData[]>): Promise<AppPurchasedQueryData[] | undefined>;
78
+ /**
79
+ * Read
80
+ * @param id Id
81
+ * @param payload Payload
82
+ * @returns Result
83
+ */
84
+ read(id: number, payload?: IApiPayload<AppReadDto>): Promise<AppReadDto | undefined>;
85
+ /**
86
+ * Renew the application
87
+ * @param rq Request data
88
+ * @param payload Payload
89
+ * @returns Result
90
+ */
91
+ renew(rq: AppRenewRQ, payload?: ResultPayload): Promise<IActionResult<{}> | undefined>;
92
+ /**
93
+ * Update the application
94
+ * @param rq Request data
95
+ * @param payload Payload
96
+ * @returns Result
97
+ */
98
+ update(rq: AppUpdateRQ, payload?: ResultPayload): Promise<IActionResult<{}> | undefined>;
99
+ /**
100
+ * Update read
101
+ * @param id Id
102
+ * @param payload Payload
103
+ * @returns Result
104
+ */
105
+ updateRead(id: number, payload?: IApiPayload<AppUpdateReadDto>): Promise<AppUpdateReadDto | undefined>;
48
106
  }