@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,10 +0,0 @@
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
- };
@@ -1,37 +0,0 @@
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
- };
@@ -1,11 +0,0 @@
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
- };
@@ -1,12 +0,0 @@
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
- };
@@ -1,11 +0,0 @@
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
- };
@@ -1,37 +0,0 @@
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
- }
@@ -1,56 +0,0 @@
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
- };
@@ -1,38 +0,0 @@
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
- };
@@ -1,58 +0,0 @@
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
- };
@@ -1,19 +0,0 @@
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
- * Creation start
13
- */
14
- creationStart?: Date | string;
15
- /**
16
- * Creation end
17
- */
18
- creationEnd?: Date | string;
19
- };
package/tsconfig.cjs.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
- "target": "ES2020",
5
- "allowJs": false,
6
- "module": "NodeNext",
7
- "moduleResolution": "NodeNext",
8
- "resolveJsonModule": true,
9
- "isolatedModules": true,
10
- "outDir": "./lib/cjs",
11
- "noEmit": false,
12
- "declaration": true,
13
- "strict": true,
14
- "esModuleInterop": true,
15
- "skipLibCheck": true,
16
- "forceConsistentCasingInFileNames": true
17
- },
18
- "include": ["src"]
19
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes