@etsoo/smarterp-core 1.0.1 → 1.0.3

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 (342) 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__/app/TestApp.ts +4 -3
  5. package/__tests__/tsconfig.json +4 -3
  6. package/lib/cjs/AppApi.d.ts +106 -0
  7. package/lib/cjs/AppApi.js +117 -0
  8. package/lib/cjs/AuthCodeApi.d.ts +29 -0
  9. package/lib/cjs/AuthCodeApi.js +50 -0
  10. package/lib/cjs/CoreApp.d.ts +164 -0
  11. package/lib/cjs/CoreApp.js +134 -0
  12. package/lib/cjs/CoreUtils.d.ts +4 -0
  13. package/lib/cjs/CoreUtils.js +2 -0
  14. package/lib/cjs/ICoreServiceApp.d.ts +30 -0
  15. package/lib/cjs/ICoreServiceApp.js +49 -0
  16. package/lib/cjs/MemberApi.d.ts +78 -0
  17. package/lib/cjs/MemberApi.js +91 -0
  18. package/lib/{OrgApi.d.ts → cjs/OrgApi.d.ts} +9 -2
  19. package/lib/cjs/OrgApi.js +119 -0
  20. package/lib/{PublicApi.d.ts → cjs/PublicApi.d.ts} +17 -1
  21. package/lib/cjs/PublicApi.js +161 -0
  22. package/lib/{UserApi.d.ts → cjs/UserApi.d.ts} +30 -1
  23. package/lib/cjs/UserApi.js +103 -0
  24. package/lib/cjs/components/DefaultUI.d.ts +21 -0
  25. package/lib/cjs/components/DefaultUI.js +34 -0
  26. package/lib/cjs/components/app/AppSwitchPopover.d.ts +4 -0
  27. package/lib/cjs/components/app/AppSwitchPopover.js +43 -0
  28. package/lib/cjs/components/index.d.ts +4 -0
  29. package/lib/cjs/components/index.js +23 -0
  30. package/lib/cjs/components/org/OrgSwitchPopover.d.ts +4 -0
  31. package/lib/cjs/components/org/OrgSwitchPopover.js +49 -0
  32. package/lib/{components → cjs/components}/org/OrgTiplist.d.ts +3 -16
  33. package/lib/cjs/components/org/OrgTiplist.js +28 -0
  34. package/lib/cjs/dto/IdentityType.js +25 -0
  35. package/lib/cjs/dto/app/AppData.js +2 -0
  36. package/lib/cjs/dto/app/AppListDto.js +2 -0
  37. package/lib/cjs/dto/app/AppPurchasedQueryData.js +2 -0
  38. package/lib/{dto → cjs/dto}/app/AppQueryData.d.ts +5 -0
  39. package/lib/cjs/dto/app/AppQueryData.js +2 -0
  40. package/lib/cjs/dto/app/AppReadDto.d.ts +62 -0
  41. package/lib/cjs/dto/app/AppReadDto.js +2 -0
  42. package/lib/cjs/dto/app/AppUpdateReadDto.d.ts +35 -0
  43. package/lib/cjs/dto/app/AppUpdateReadDto.js +2 -0
  44. package/lib/cjs/dto/app/CreateApiKeyData.d.ts +16 -0
  45. package/lib/cjs/dto/app/CreateApiKeyData.js +2 -0
  46. package/lib/cjs/dto/authCode/AuthCodeAction.d.ts +12 -0
  47. package/lib/cjs/dto/authCode/AuthCodeAction.js +16 -0
  48. package/lib/cjs/dto/member/MemberListDto.js +2 -0
  49. package/lib/{dto → cjs/dto}/member/MemberQueryDto.d.ts +4 -0
  50. package/lib/cjs/dto/member/MemberQueryDto.js +2 -0
  51. package/lib/cjs/dto/member/MemberReadDto.d.ts +56 -0
  52. package/lib/cjs/dto/member/MemberReadDto.js +2 -0
  53. package/lib/cjs/dto/member/MemberUpdateReadDto.d.ts +39 -0
  54. package/lib/cjs/dto/member/MemberUpdateReadDto.js +2 -0
  55. package/lib/cjs/dto/org/OrgGetMyData.js +2 -0
  56. package/lib/cjs/dto/org/OrgListDto.js +2 -0
  57. package/lib/{dto → cjs/dto}/org/OrgQueryDto.d.ts +8 -0
  58. package/lib/cjs/dto/org/OrgQueryDto.js +2 -0
  59. package/lib/{dto → cjs/dto}/org/OrgReadDto.d.ts +16 -0
  60. package/lib/cjs/dto/org/OrgReadDto.js +2 -0
  61. package/lib/{dto → cjs/dto}/org/OrgUpdateReadDto.d.ts +0 -4
  62. package/lib/cjs/dto/org/OrgUpdateReadDto.js +2 -0
  63. package/lib/cjs/dto/public/CurrencyItem.js +2 -0
  64. package/lib/cjs/dto/public/MemberInvitationDto.d.ts +29 -0
  65. package/lib/cjs/dto/public/MemberInvitationDto.js +2 -0
  66. package/lib/cjs/dto/public/PlaceCommon.js +2 -0
  67. package/lib/cjs/dto/public/PlaceLocation.js +2 -0
  68. package/lib/cjs/dto/public/RegionData.js +2 -0
  69. package/lib/{dto → cjs/dto}/user/AuditHistoryDto.d.ts +8 -4
  70. package/lib/cjs/dto/user/AuditHistoryDto.js +2 -0
  71. package/lib/cjs/dto/user/DeviceListDto.js +2 -0
  72. package/lib/cjs/dto/user/UserIdentifierData.d.ts +27 -0
  73. package/lib/cjs/dto/user/UserIdentifierData.js +2 -0
  74. package/lib/cjs/i18n/CoreCulture.js +52 -0
  75. package/lib/{i18n → cjs/i18n}/en.json +30 -2
  76. package/lib/{i18n → cjs/i18n}/zh-Hans.json +30 -2
  77. package/lib/{i18n → cjs/i18n}/zh-Hant.json +30 -2
  78. package/lib/{index.d.ts → cjs/index.d.ts} +22 -0
  79. package/lib/cjs/index.js +81 -0
  80. package/lib/cjs/rq/app/AppBuyNewRQ.d.ts +26 -0
  81. package/lib/cjs/rq/app/AppBuyNewRQ.js +2 -0
  82. package/lib/cjs/rq/app/AppBuyRQ.d.ts +16 -0
  83. package/lib/cjs/rq/app/AppBuyRQ.js +2 -0
  84. package/lib/cjs/rq/app/AppCreateApiKeyRQ.d.ts +16 -0
  85. package/lib/cjs/rq/app/AppCreateApiKeyRQ.js +2 -0
  86. package/lib/{rq → cjs/rq}/app/AppGetMyRQ.d.ts +1 -1
  87. package/lib/cjs/rq/app/AppGetMyRQ.js +2 -0
  88. package/lib/cjs/rq/app/AppListRQ.js +2 -0
  89. package/lib/cjs/rq/app/AppPurchasedQueryRQ.js +2 -0
  90. package/lib/cjs/rq/app/AppQueryRQ.js +2 -0
  91. package/lib/cjs/rq/app/AppRenewRQ.d.ts +16 -0
  92. package/lib/cjs/rq/app/AppRenewRQ.js +2 -0
  93. package/lib/cjs/rq/app/AppUpdateRQ.d.ts +31 -0
  94. package/lib/cjs/rq/app/AppUpdateRQ.js +2 -0
  95. package/lib/cjs/rq/authCode/SendEmailRQ.d.ts +31 -0
  96. package/lib/cjs/rq/authCode/SendEmailRQ.js +2 -0
  97. package/lib/cjs/rq/authCode/SendSMSRQ.d.ts +27 -0
  98. package/lib/cjs/rq/authCode/SendSMSRQ.js +2 -0
  99. package/lib/cjs/rq/authCode/ValidateRQ.d.ts +17 -0
  100. package/lib/cjs/rq/authCode/ValidateRQ.js +2 -0
  101. package/lib/cjs/rq/member/MemberInviteRQ.d.ts +22 -0
  102. package/lib/cjs/rq/member/MemberInviteRQ.js +2 -0
  103. package/lib/cjs/rq/member/MemberListRQ.js +2 -0
  104. package/lib/cjs/rq/member/MemberQueryRQ.js +2 -0
  105. package/lib/cjs/rq/member/MemberUpdateRQ.d.ts +32 -0
  106. package/lib/cjs/rq/member/MemberUpdateRQ.js +2 -0
  107. package/lib/{rq → cjs/rq}/org/OrgCreateRQ.d.ts +5 -0
  108. package/lib/cjs/rq/org/OrgCreateRQ.js +2 -0
  109. package/lib/cjs/rq/org/OrgGetMyRQ.js +2 -0
  110. package/lib/cjs/rq/org/OrgListRQ.js +2 -0
  111. package/lib/cjs/rq/org/OrgQueryRQ.js +2 -0
  112. package/lib/cjs/rq/org/OrgUpdateRQ.js +2 -0
  113. package/lib/cjs/rq/public/AcceptInvitationRQ.d.ts +16 -0
  114. package/lib/cjs/rq/public/AcceptInvitationRQ.js +2 -0
  115. package/lib/cjs/rq/public/CreateBarcodeRQ.js +2 -0
  116. package/lib/cjs/rq/public/PinyinRQ.js +21 -0
  117. package/lib/cjs/rq/public/PlaceQueryRQ.js +21 -0
  118. package/lib/{rq → cjs/rq}/user/AuditHistoryRQ.d.ts +8 -0
  119. package/lib/cjs/rq/user/AuditHistoryRQ.js +2 -0
  120. package/lib/mjs/AppApi.d.ts +106 -0
  121. package/lib/mjs/AppApi.js +113 -0
  122. package/lib/mjs/AuthCodeApi.d.ts +29 -0
  123. package/lib/mjs/AuthCodeApi.js +46 -0
  124. package/lib/mjs/CoreApp.d.ts +164 -0
  125. package/lib/mjs/CoreApp.js +130 -0
  126. package/lib/mjs/CoreUtils.d.ts +4 -0
  127. package/lib/mjs/ICoreServiceApp.d.ts +30 -0
  128. package/lib/mjs/ICoreServiceApp.js +41 -0
  129. package/lib/mjs/MemberApi.d.ts +78 -0
  130. package/lib/mjs/MemberApi.js +87 -0
  131. package/lib/mjs/OrgApi.d.ts +102 -0
  132. package/lib/{OrgApi.js → mjs/OrgApi.js} +12 -3
  133. package/lib/mjs/PublicApi.d.ts +121 -0
  134. package/lib/{PublicApi.js → mjs/PublicApi.js} +18 -0
  135. package/lib/mjs/UserApi.d.ts +82 -0
  136. package/lib/{UserApi.js → mjs/UserApi.js} +35 -0
  137. package/lib/mjs/components/DefaultUI.d.ts +21 -0
  138. package/lib/mjs/components/DefaultUI.js +31 -0
  139. package/lib/mjs/components/app/AppSwitchPopover.d.ts +4 -0
  140. package/lib/mjs/components/app/AppSwitchPopover.js +37 -0
  141. package/lib/mjs/components/index.d.ts +4 -0
  142. package/lib/mjs/components/index.js +7 -0
  143. package/lib/mjs/components/org/OrgSwitchPopover.d.ts +4 -0
  144. package/lib/mjs/components/org/OrgSwitchPopover.js +43 -0
  145. package/lib/mjs/components/org/OrgTiplist.d.ts +23 -0
  146. package/lib/mjs/components/org/OrgTiplist.js +25 -0
  147. package/lib/mjs/dto/IdentityType.d.ts +21 -0
  148. package/lib/mjs/dto/app/AppData.d.ts +31 -0
  149. package/lib/mjs/dto/app/AppListDto.d.ts +6 -0
  150. package/lib/mjs/dto/app/AppPurchasedQueryData.d.ts +28 -0
  151. package/lib/mjs/dto/app/AppQueryData.d.ts +47 -0
  152. package/lib/mjs/dto/app/AppReadDto.d.ts +62 -0
  153. package/lib/mjs/dto/app/AppUpdateReadDto.d.ts +35 -0
  154. package/lib/mjs/dto/app/CreateApiKeyData.d.ts +16 -0
  155. package/lib/mjs/dto/authCode/AuthCodeAction.d.ts +12 -0
  156. package/lib/mjs/dto/authCode/AuthCodeAction.js +13 -0
  157. package/lib/mjs/dto/member/MemberListDto.d.ts +6 -0
  158. package/lib/mjs/dto/member/MemberQueryDto.d.ts +39 -0
  159. package/lib/mjs/dto/member/MemberReadDto.d.ts +56 -0
  160. package/lib/mjs/dto/member/MemberUpdateReadDto.d.ts +39 -0
  161. package/lib/mjs/dto/org/OrgGetMyData.d.ts +21 -0
  162. package/lib/mjs/dto/org/OrgListDto.d.ts +12 -0
  163. package/lib/mjs/dto/org/OrgQueryDto.d.ts +47 -0
  164. package/lib/mjs/dto/org/OrgReadDto.d.ts +63 -0
  165. package/lib/mjs/dto/org/OrgUpdateReadDto.d.ts +35 -0
  166. package/lib/mjs/dto/public/CurrencyItem.d.ts +31 -0
  167. package/lib/mjs/dto/public/MemberInvitationDto.d.ts +29 -0
  168. package/lib/mjs/dto/public/PlaceCommon.d.ts +43 -0
  169. package/lib/mjs/dto/public/PlaceLocation.d.ts +14 -0
  170. package/lib/mjs/dto/public/RegionData.d.ts +36 -0
  171. package/lib/mjs/dto/user/AuditHistoryDto.d.ts +30 -0
  172. package/lib/mjs/dto/user/DeviceListDto.d.ts +8 -0
  173. package/lib/mjs/dto/user/UserIdentifierData.d.ts +27 -0
  174. package/lib/mjs/i18n/CoreCulture.d.ts +44 -0
  175. package/lib/mjs/i18n/en.json +78 -0
  176. package/lib/mjs/i18n/zh-Hans.json +78 -0
  177. package/lib/mjs/i18n/zh-Hant.json +78 -0
  178. package/lib/mjs/index.d.ts +61 -0
  179. package/lib/{index.js → mjs/index.js} +22 -0
  180. package/lib/mjs/rq/app/AppBuyNewRQ.d.ts +26 -0
  181. package/lib/mjs/rq/app/AppBuyRQ.d.ts +16 -0
  182. package/lib/mjs/rq/app/AppCreateApiKeyRQ.d.ts +16 -0
  183. package/lib/mjs/rq/app/AppGetMyRQ.d.ts +19 -0
  184. package/lib/mjs/rq/app/AppListRQ.d.ts +18 -0
  185. package/lib/mjs/rq/app/AppPurchasedQueryRQ.d.ts +17 -0
  186. package/lib/mjs/rq/app/AppPurchasedQueryRQ.js +1 -0
  187. package/lib/mjs/rq/app/AppQueryRQ.d.ts +6 -0
  188. package/lib/mjs/rq/app/AppQueryRQ.js +1 -0
  189. package/lib/mjs/rq/app/AppRenewRQ.d.ts +16 -0
  190. package/lib/mjs/rq/app/AppRenewRQ.js +1 -0
  191. package/lib/mjs/rq/app/AppUpdateRQ.d.ts +31 -0
  192. package/lib/mjs/rq/app/AppUpdateRQ.js +1 -0
  193. package/lib/mjs/rq/authCode/SendEmailRQ.d.ts +31 -0
  194. package/lib/mjs/rq/authCode/SendEmailRQ.js +1 -0
  195. package/lib/mjs/rq/authCode/SendSMSRQ.d.ts +27 -0
  196. package/lib/mjs/rq/authCode/SendSMSRQ.js +1 -0
  197. package/lib/mjs/rq/authCode/ValidateRQ.d.ts +17 -0
  198. package/lib/mjs/rq/authCode/ValidateRQ.js +1 -0
  199. package/lib/mjs/rq/member/MemberInviteRQ.d.ts +22 -0
  200. package/lib/mjs/rq/member/MemberInviteRQ.js +1 -0
  201. package/lib/mjs/rq/member/MemberListRQ.d.ts +18 -0
  202. package/lib/mjs/rq/member/MemberListRQ.js +1 -0
  203. package/lib/mjs/rq/member/MemberQueryRQ.d.ts +10 -0
  204. package/lib/mjs/rq/member/MemberQueryRQ.js +1 -0
  205. package/lib/mjs/rq/member/MemberUpdateRQ.d.ts +32 -0
  206. package/lib/mjs/rq/member/MemberUpdateRQ.js +1 -0
  207. package/lib/mjs/rq/org/OrgCreateRQ.d.ts +42 -0
  208. package/lib/mjs/rq/org/OrgCreateRQ.js +1 -0
  209. package/lib/mjs/rq/org/OrgGetMyRQ.d.ts +11 -0
  210. package/lib/mjs/rq/org/OrgGetMyRQ.js +1 -0
  211. package/lib/mjs/rq/org/OrgListRQ.d.ts +12 -0
  212. package/lib/mjs/rq/org/OrgListRQ.js +1 -0
  213. package/lib/mjs/rq/org/OrgQueryRQ.d.ts +11 -0
  214. package/lib/mjs/rq/org/OrgQueryRQ.js +1 -0
  215. package/lib/mjs/rq/org/OrgUpdateRQ.d.ts +37 -0
  216. package/lib/mjs/rq/org/OrgUpdateRQ.js +1 -0
  217. package/lib/mjs/rq/public/AcceptInvitationRQ.d.ts +16 -0
  218. package/lib/mjs/rq/public/AcceptInvitationRQ.js +1 -0
  219. package/lib/mjs/rq/public/CreateBarcodeRQ.d.ts +56 -0
  220. package/lib/mjs/rq/public/CreateBarcodeRQ.js +1 -0
  221. package/lib/mjs/rq/public/PinyinRQ.d.ts +38 -0
  222. package/lib/mjs/rq/public/PlaceQueryRQ.d.ts +58 -0
  223. package/lib/mjs/rq/user/AuditHistoryRQ.d.ts +27 -0
  224. package/lib/mjs/rq/user/AuditHistoryRQ.js +1 -0
  225. package/package.json +29 -49
  226. package/src/AppApi.ts +88 -1
  227. package/src/AuthCodeApi.ts +51 -0
  228. package/src/CoreApp.ts +139 -5
  229. package/src/CoreUtils.ts +4 -0
  230. package/src/ICoreServiceApp.ts +62 -0
  231. package/src/MemberApi.ts +61 -2
  232. package/src/OrgApi.ts +13 -3
  233. package/src/PublicApi.ts +24 -1
  234. package/src/UserApi.ts +53 -1
  235. package/src/components/DefaultUI.tsx +37 -0
  236. package/src/components/app/AppSwitchPopover.tsx +83 -0
  237. package/src/components/index.ts +7 -0
  238. package/src/components/org/OrgSwitchPopover.tsx +99 -0
  239. package/src/components/org/OrgTiplist.tsx +29 -33
  240. package/src/dto/app/AppQueryData.ts +6 -0
  241. package/src/dto/app/AppReadDto.ts +75 -0
  242. package/src/dto/app/AppUpdateReadDto.ts +42 -0
  243. package/src/dto/app/CreateApiKeyData.ts +17 -0
  244. package/src/dto/authCode/AuthCodeAction.ts +13 -0
  245. package/src/dto/member/MemberQueryDto.ts +5 -0
  246. package/src/dto/member/MemberReadDto.ts +68 -0
  247. package/src/dto/member/MemberUpdateReadDto.ts +47 -0
  248. package/src/dto/org/OrgQueryDto.ts +10 -0
  249. package/src/dto/org/OrgReadDto.ts +20 -0
  250. package/src/dto/org/OrgUpdateReadDto.ts +0 -5
  251. package/src/dto/public/MemberInvitationDto.ts +34 -0
  252. package/src/dto/user/AuditHistoryDto.ts +9 -4
  253. package/src/dto/user/UserIdentifierData.ts +31 -0
  254. package/src/i18n/en.json +30 -2
  255. package/src/i18n/zh-Hans.json +30 -2
  256. package/src/i18n/zh-Hant.json +30 -2
  257. package/src/index.ts +24 -0
  258. package/src/rq/app/AppBuyNewRQ.ts +29 -0
  259. package/src/rq/app/AppBuyRQ.ts +17 -0
  260. package/src/rq/app/AppCreateApiKeyRQ.ts +17 -0
  261. package/src/rq/app/AppGetMyRQ.ts +1 -1
  262. package/src/rq/app/AppRenewRQ.ts +17 -0
  263. package/src/rq/app/AppUpdateRQ.ts +36 -0
  264. package/src/rq/authCode/SendEmailRQ.ts +36 -0
  265. package/src/rq/authCode/SendSMSRQ.ts +31 -0
  266. package/src/rq/authCode/ValidateRQ.ts +19 -0
  267. package/src/rq/member/MemberInviteRQ.ts +25 -0
  268. package/src/rq/member/MemberUpdateRQ.ts +37 -0
  269. package/src/rq/org/OrgCreateRQ.ts +6 -0
  270. package/src/rq/public/AcceptInvitationRQ.ts +17 -0
  271. package/src/rq/user/AuditHistoryRQ.ts +10 -0
  272. package/tsconfig.cjs.json +20 -0
  273. package/tsconfig.json +1 -1
  274. package/vite.config.mts +12 -0
  275. package/lib/AppApi.d.ts +0 -48
  276. package/lib/AppApi.js +0 -50
  277. package/lib/CoreApp.d.ts +0 -63
  278. package/lib/CoreApp.js +0 -80
  279. package/lib/MemberApi.d.ts +0 -38
  280. package/lib/MemberApi.js +0 -41
  281. package/lib/components/index.d.ts +0 -1
  282. package/lib/components/index.js +0 -2
  283. package/lib/components/org/OrgTiplist.js +0 -22
  284. /package/lib/{dto → cjs/dto}/IdentityType.d.ts +0 -0
  285. /package/lib/{dto → cjs/dto}/app/AppData.d.ts +0 -0
  286. /package/lib/{dto → cjs/dto}/app/AppListDto.d.ts +0 -0
  287. /package/lib/{dto → cjs/dto}/app/AppPurchasedQueryData.d.ts +0 -0
  288. /package/lib/{dto → cjs/dto}/member/MemberListDto.d.ts +0 -0
  289. /package/lib/{dto → cjs/dto}/org/OrgGetMyData.d.ts +0 -0
  290. /package/lib/{dto → cjs/dto}/org/OrgListDto.d.ts +0 -0
  291. /package/lib/{dto → cjs/dto}/public/CurrencyItem.d.ts +0 -0
  292. /package/lib/{dto → cjs/dto}/public/PlaceCommon.d.ts +0 -0
  293. /package/lib/{dto → cjs/dto}/public/PlaceLocation.d.ts +0 -0
  294. /package/lib/{dto → cjs/dto}/public/RegionData.d.ts +0 -0
  295. /package/lib/{dto → cjs/dto}/user/DeviceListDto.d.ts +0 -0
  296. /package/lib/{i18n → cjs/i18n}/CoreCulture.d.ts +0 -0
  297. /package/lib/{rq → cjs/rq}/app/AppListRQ.d.ts +0 -0
  298. /package/lib/{rq → cjs/rq}/app/AppPurchasedQueryRQ.d.ts +0 -0
  299. /package/lib/{rq → cjs/rq}/app/AppQueryRQ.d.ts +0 -0
  300. /package/lib/{rq → cjs/rq}/member/MemberListRQ.d.ts +0 -0
  301. /package/lib/{rq → cjs/rq}/member/MemberQueryRQ.d.ts +0 -0
  302. /package/lib/{rq → cjs/rq}/org/OrgGetMyRQ.d.ts +0 -0
  303. /package/lib/{rq → cjs/rq}/org/OrgListRQ.d.ts +0 -0
  304. /package/lib/{rq → cjs/rq}/org/OrgQueryRQ.d.ts +0 -0
  305. /package/lib/{rq → cjs/rq}/org/OrgUpdateRQ.d.ts +0 -0
  306. /package/lib/{rq → cjs/rq}/public/CreateBarcodeRQ.d.ts +0 -0
  307. /package/lib/{rq → cjs/rq}/public/PinyinRQ.d.ts +0 -0
  308. /package/lib/{rq → cjs/rq}/public/PlaceQueryRQ.d.ts +0 -0
  309. /package/lib/{dto/app/AppData.js → mjs/CoreUtils.js} +0 -0
  310. /package/lib/{dto → mjs/dto}/IdentityType.js +0 -0
  311. /package/lib/{dto/app/AppListDto.js → mjs/dto/app/AppData.js} +0 -0
  312. /package/lib/{dto/app/AppPurchasedQueryData.js → mjs/dto/app/AppListDto.js} +0 -0
  313. /package/lib/{dto/app/AppQueryData.js → mjs/dto/app/AppPurchasedQueryData.js} +0 -0
  314. /package/lib/{dto/member/MemberListDto.js → mjs/dto/app/AppQueryData.js} +0 -0
  315. /package/lib/{dto/member/MemberQueryDto.js → mjs/dto/app/AppReadDto.js} +0 -0
  316. /package/lib/{dto/org/OrgGetMyData.js → mjs/dto/app/AppUpdateReadDto.js} +0 -0
  317. /package/lib/{dto/org/OrgListDto.js → mjs/dto/app/CreateApiKeyData.js} +0 -0
  318. /package/lib/{dto/org/OrgQueryDto.js → mjs/dto/member/MemberListDto.js} +0 -0
  319. /package/lib/{dto/org/OrgReadDto.js → mjs/dto/member/MemberQueryDto.js} +0 -0
  320. /package/lib/{dto/org/OrgUpdateReadDto.js → mjs/dto/member/MemberReadDto.js} +0 -0
  321. /package/lib/{dto/public/CurrencyItem.js → mjs/dto/member/MemberUpdateReadDto.js} +0 -0
  322. /package/lib/{dto/public/PlaceCommon.js → mjs/dto/org/OrgGetMyData.js} +0 -0
  323. /package/lib/{dto/public/PlaceLocation.js → mjs/dto/org/OrgListDto.js} +0 -0
  324. /package/lib/{dto/public/RegionData.js → mjs/dto/org/OrgQueryDto.js} +0 -0
  325. /package/lib/{dto/user/AuditHistoryDto.js → mjs/dto/org/OrgReadDto.js} +0 -0
  326. /package/lib/{dto/user/DeviceListDto.js → mjs/dto/org/OrgUpdateReadDto.js} +0 -0
  327. /package/lib/{rq/app/AppGetMyRQ.js → mjs/dto/public/CurrencyItem.js} +0 -0
  328. /package/lib/{rq/app/AppListRQ.js → mjs/dto/public/MemberInvitationDto.js} +0 -0
  329. /package/lib/{rq/app/AppPurchasedQueryRQ.js → mjs/dto/public/PlaceCommon.js} +0 -0
  330. /package/lib/{rq/app/AppQueryRQ.js → mjs/dto/public/PlaceLocation.js} +0 -0
  331. /package/lib/{rq/member/MemberListRQ.js → mjs/dto/public/RegionData.js} +0 -0
  332. /package/lib/{rq/member/MemberQueryRQ.js → mjs/dto/user/AuditHistoryDto.js} +0 -0
  333. /package/lib/{rq/org/OrgCreateRQ.js → mjs/dto/user/DeviceListDto.js} +0 -0
  334. /package/lib/{rq/org/OrgGetMyRQ.js → mjs/dto/user/UserIdentifierData.js} +0 -0
  335. /package/lib/{i18n → mjs/i18n}/CoreCulture.js +0 -0
  336. /package/lib/{rq/org/OrgListRQ.js → mjs/rq/app/AppBuyNewRQ.js} +0 -0
  337. /package/lib/{rq/org/OrgQueryRQ.js → mjs/rq/app/AppBuyRQ.js} +0 -0
  338. /package/lib/{rq/org/OrgUpdateRQ.js → mjs/rq/app/AppCreateApiKeyRQ.js} +0 -0
  339. /package/lib/{rq/public/CreateBarcodeRQ.js → mjs/rq/app/AppGetMyRQ.js} +0 -0
  340. /package/lib/{rq/user/AuditHistoryRQ.js → mjs/rq/app/AppListRQ.js} +0 -0
  341. /package/lib/{rq → mjs/rq}/public/PinyinRQ.js +0 -0
  342. /package/lib/{rq → mjs/rq}/public/PlaceQueryRQ.js +0 -0
@@ -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 @@
1
+ export {};
@@ -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 @@
1
+ export {};
@@ -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 @@
1
+ export {};
@@ -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 @@
1
+ export {};
@@ -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 @@
1
+ export {};
@@ -0,0 +1,18 @@
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
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { MemberListRQ } from "./MemberListRQ";
2
+ /**
3
+ * Member query request data
4
+ */
5
+ export type MemberQueryRQ = MemberListRQ & {
6
+ /**
7
+ * Assigned ID
8
+ */
9
+ assignedId?: string;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -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 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ import { EntityStatus } from "@etsoo/appscript";
2
+ /**
3
+ * Create organization request data
4
+ * 创建组织请求数据
5
+ */
6
+ export type OrgCreateRQ = {
7
+ /**
8
+ * Organization name
9
+ * 组织名称
10
+ */
11
+ name: string;
12
+ /**
13
+ * Brand
14
+ * 品牌
15
+ */
16
+ brand?: string;
17
+ /**
18
+ * PIN, unique code
19
+ * PIN,唯一代码
20
+ */
21
+ pin?: string;
22
+ /**
23
+ * Parent id
24
+ * 父级编号
25
+ */
26
+ parentId?: number;
27
+ /**
28
+ * Status
29
+ * 状况
30
+ */
31
+ status?: EntityStatus;
32
+ /**
33
+ * Query keyword
34
+ * 查询关键字
35
+ */
36
+ queryKeyword?: string;
37
+ /**
38
+ * Region
39
+ * 所在区域
40
+ */
41
+ region: string;
42
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Get user's latest accessed organizations request data
3
+ * 获取用户最近访问的机构请求数据
4
+ */
5
+ export type OrgGetMyRQ = {
6
+ /**
7
+ * Max items
8
+ * 最大项数
9
+ */
10
+ maxItems: number;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { StatusQueryRQ } from "@etsoo/appscript";
2
+ /**
3
+ * Organization list request data
4
+ * 机构列表请求数据
5
+ */
6
+ export type OrgListRQ = StatusQueryRQ & {
7
+ /**
8
+ * Parent org ID
9
+ * 父级机构编号
10
+ */
11
+ parentId?: number;
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { OrgListRQ } from "./OrgListRQ";
2
+ /**
3
+ * Organization Query Request data
4
+ * 机构查询请求数据
5
+ */
6
+ export type OrgQueryRQ = OrgListRQ & {
7
+ /**
8
+ * PIN
9
+ */
10
+ pin?: string;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,37 @@
1
+ import { EntityStatus, UpdateModel } from "@etsoo/appscript";
2
+ /**
3
+ * Update organization request data
4
+ * 更新机构请求数据
5
+ */
6
+ export interface OrgUpdateRQ extends UpdateModel {
7
+ /**
8
+ * Organization name
9
+ * 机构名称
10
+ */
11
+ name?: string;
12
+ /**
13
+ * Brand
14
+ * 品牌
15
+ */
16
+ brand?: string;
17
+ /**
18
+ * PIN, unique code
19
+ * PIN,唯一代码
20
+ */
21
+ pin?: string;
22
+ /**
23
+ * Parent id
24
+ * 父级编号
25
+ */
26
+ parentId?: number;
27
+ /**
28
+ * Status
29
+ * 状况
30
+ */
31
+ status?: EntityStatus;
32
+ /**
33
+ * Query keyword
34
+ * 查询关键字
35
+ */
36
+ queryKeyword?: string;
37
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -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 @@
1
+ export {};
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Create Barcode Request data
3
+ * 创建条码请求数据
4
+ */
5
+ export type CreateBarcodeRQ = {
6
+ /**
7
+ * Content
8
+ * 内容
9
+ */
10
+ content: string;
11
+ /**
12
+ * Type
13
+ * 类型
14
+ */
15
+ type?: string;
16
+ /**
17
+ * Background color text format
18
+ * 背景色文本格式
19
+ */
20
+ backgroundText?: string;
21
+ /**
22
+ * Foreground color text format
23
+ * 前景色文本格式
24
+ */
25
+ foregroundText?: string;
26
+ /**
27
+ * Width
28
+ * 宽度
29
+ */
30
+ width: number;
31
+ /**
32
+ * Height
33
+ * 高度
34
+ */
35
+ height: number;
36
+ /**
37
+ * Margin
38
+ * 边距
39
+ */
40
+ margin?: number;
41
+ /**
42
+ * Pure barcode, don't put the content string into the output image
43
+ * 纯条码,不将内容字符串放入输出图像
44
+ */
45
+ pureBarcode?: boolean;
46
+ /**
47
+ * GS1 format
48
+ * GS1格式
49
+ */
50
+ gs1Format?: boolean;
51
+ /**
52
+ * No padding
53
+ * 无填充
54
+ */
55
+ noPadding?: boolean;
56
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,38 @@
1
+ export declare enum PinyinFormatType {
2
+ /**
3
+ * Full Pinyin without tone
4
+ * 不带声调的全拼
5
+ */
6
+ Full = 0,
7
+ /**
8
+ * Initial letter
9
+ * 首字母
10
+ */
11
+ Initial = 1,
12
+ /**
13
+ * Full Pinyin with tone
14
+ * 带声调的全拼
15
+ */
16
+ Tone = 2
17
+ }
18
+ /**
19
+ * Get Pinyin request data
20
+ * 获取拼音请求数据
21
+ */
22
+ export type PinyinRQ = {
23
+ /**
24
+ * Input string
25
+ * 输入的字符串
26
+ */
27
+ input: string;
28
+ /**
29
+ * Return format
30
+ * 返回格式
31
+ */
32
+ format: PinyinFormatType;
33
+ /**
34
+ * Is name
35
+ * 是否为姓名
36
+ */
37
+ isName?: boolean;
38
+ };
@@ -0,0 +1,58 @@
1
+ import { PlaceLocation } from "../../dto/public/PlaceLocation";
2
+ /**
3
+ * API output type
4
+ * API输出类型
5
+ */
6
+ export declare enum ApiOutput {
7
+ JSON = 0,
8
+ XML = 1
9
+ }
10
+ /**
11
+ * API provider
12
+ * 接口供应商
13
+ */
14
+ export declare enum ApiProvider {
15
+ Google = 0,
16
+ Baidu = 1
17
+ }
18
+ /**
19
+ * Place query request
20
+ * 地点查询请求
21
+ */
22
+ export type PlaceQueryRQ = {
23
+ /**
24
+ * Query input
25
+ * 查询输入
26
+ */
27
+ query: string;
28
+ /**
29
+ * Output type
30
+ * 输出类型
31
+ */
32
+ output?: ApiOutput;
33
+ /**
34
+ * API provider
35
+ * 接口供应商
36
+ */
37
+ provider?: ApiProvider;
38
+ /**
39
+ * Language, like zh-CN
40
+ * 语言
41
+ */
42
+ language?: string;
43
+ /**
44
+ * Region or country id, like CN
45
+ * 地区或国家编号
46
+ */
47
+ region?: string;
48
+ /**
49
+ * Center location
50
+ * 中心位置
51
+ */
52
+ location?: PlaceLocation;
53
+ /**
54
+ * Radius in meters
55
+ * 方圆距离,单位为米
56
+ */
57
+ radius?: number;
58
+ };
@@ -0,0 +1,27 @@
1
+ import { QueryRQ } from "@etsoo/appscript";
2
+ /**
3
+ * Audit history request data
4
+ * 操作历史请求数据
5
+ */
6
+ export type AuditHistoryRQ = QueryRQ & {
7
+ /**
8
+ * Device id
9
+ */
10
+ deviceId?: number;
11
+ /**
12
+ * Kind
13
+ */
14
+ kind?: string;
15
+ /**
16
+ * Target id
17
+ */
18
+ targetId?: number;
19
+ /**
20
+ * Creation start
21
+ */
22
+ creationStart?: Date | string;
23
+ /**
24
+ * Creation end
25
+ */
26
+ creationEnd?: Date | string;
27
+ };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,47 +1,27 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
- "main": "lib/index.js",
6
- "module": "lib/index.js",
5
+ "main": "lib/cjs/index.js",
6
+ "module": "lib/mjs/index.js",
7
7
  "exports": {
8
8
  ".": {
9
- "types": "./lib/index.d.ts",
10
- "import": "./lib/index.js"
9
+ "types": "./lib/mjs/index.d.ts",
10
+ "import": "./lib/mjs/index.js",
11
+ "require": "./lib/cjs/index.js"
11
12
  },
12
13
  "./components": {
13
- "types": "./lib/components/index.d.ts",
14
- "import": "./lib/components/index.js"
14
+ "types": "./lib/mjs/components/index.d.ts",
15
+ "import": "./lib/mjs/components/index.js",
16
+ "require": "./lib/cjs/components/index.js"
15
17
  }
16
18
  },
17
19
  "sideEffects": false,
18
20
  "scripts": {
19
- "build": "tsc",
20
- "test": "jest",
21
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json",
22
+ "test": "vitest",
21
23
  "localtest": "set NODE_ENV=local&&jest"
22
24
  },
23
- "jest": {
24
- "automock": false,
25
- "testMatch": [
26
- "<rootDir>/__tests__/**/*.ts"
27
- ],
28
- "testPathIgnorePatterns": [
29
- "<rootDir>/__tests__/app/TestApp.ts"
30
- ],
31
- "testEnvironment": "jsdom",
32
- "moduleFileExtensions": [
33
- "js",
34
- "ts",
35
- "d.ts"
36
- ],
37
- "transform": {
38
- ".+\\.jsx?$": "babel-jest",
39
- ".+\\.tsx?$": "ts-jest"
40
- },
41
- "transformIgnorePatterns": [
42
- "/node_modules/(?!@etsoo/).+\\.js$"
43
- ]
44
- },
45
25
  "repository": {
46
26
  "type": "git",
47
27
  "url": "git+https://github.com/ETSOO/etsoo-smarterp-core.git"
@@ -61,25 +41,25 @@
61
41
  "homepage": "https://github.com/ETSOO/etsoo-smarterp-core#readme",
62
42
  "devDependencies": {
63
43
  "@babel/cli": "^7.26.4",
64
- "@babel/core": "^7.26.0",
65
- "@babel/plugin-transform-runtime": "^7.25.9",
66
- "@babel/preset-env": "^7.26.0",
67
- "@babel/runtime-corejs3": "^7.26.0",
68
- "@types/jest": "^29.5.14",
69
- "@types/react": "^19.0.1",
70
- "@types/react-dom": "^19.0.2",
71
- "jest": "^29.7.0",
72
- "jest-environment-jsdom": "^29.7.0",
73
- "ts-jest": "^29.2.5",
74
- "typescript": "^5.7.2"
44
+ "@babel/core": "^7.26.8",
45
+ "@babel/plugin-transform-runtime": "^7.26.8",
46
+ "@babel/preset-env": "^7.26.8",
47
+ "@babel/runtime-corejs3": "^7.26.7",
48
+ "@types/react": "^18.3.1",
49
+ "@types/react-dom": "^18.3.1",
50
+ "@vitejs/plugin-react": "^4.3.4",
51
+ "jsdom": "^26.0.0",
52
+ "typescript": "^5.7.3",
53
+ "vitest": "^3.0.5"
75
54
  },
76
55
  "dependencies": {
77
- "@etsoo/appscript": "^1.5.79",
78
- "@etsoo/materialui": "^1.4.51",
79
- "@etsoo/react": "^1.8.14",
80
- "@etsoo/shared": "^1.2.55",
81
- "@mui/material": "^6.2.0",
82
- "react": "^19.0.0",
83
- "react-dom": "^19.0.0"
56
+ "@etsoo/appscript": "^1.6.0",
57
+ "@etsoo/materialui": "^1.4.80",
58
+ "@etsoo/react": "^1.8.29",
59
+ "@etsoo/shared": "^1.2.61",
60
+ "@etsoo/toolpad": "^1.0.15",
61
+ "@mui/material": "^6.4.4",
62
+ "react": "^18.3.1",
63
+ "react-dom": "^18.3.1"
84
64
  }
85
65
  }