@etsoo/smarterp-core 1.0.0

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 (226) hide show
  1. package/.github/workflows/main.yml +60 -0
  2. package/LICENSE +21 -0
  3. package/README.md +17 -0
  4. package/__tests__/OrgApi.ts +132 -0
  5. package/__tests__/PublicApi.ts +130 -0
  6. package/__tests__/UserApi.ts +29 -0
  7. package/__tests__/app/TestApp.ts +138 -0
  8. package/__tests__/tsconfig.json +18 -0
  9. package/babel.config.json +11 -0
  10. package/lib/cjs/AppApi.d.ts +48 -0
  11. package/lib/cjs/AppApi.js +54 -0
  12. package/lib/cjs/CoreApp.d.ts +58 -0
  13. package/lib/cjs/CoreApp.js +68 -0
  14. package/lib/cjs/MemberApi.d.ts +38 -0
  15. package/lib/cjs/MemberApi.js +45 -0
  16. package/lib/cjs/OrgApi.d.ts +95 -0
  17. package/lib/cjs/OrgApi.js +110 -0
  18. package/lib/cjs/PublicApi.d.ts +105 -0
  19. package/lib/cjs/PublicApi.js +143 -0
  20. package/lib/cjs/UserApi.d.ts +53 -0
  21. package/lib/cjs/UserApi.js +68 -0
  22. package/lib/cjs/dto/IdentityType.d.ts +21 -0
  23. package/lib/cjs/dto/IdentityType.js +25 -0
  24. package/lib/cjs/dto/app/AppData.d.ts +31 -0
  25. package/lib/cjs/dto/app/AppData.js +2 -0
  26. package/lib/cjs/dto/app/AppListDto.d.ts +6 -0
  27. package/lib/cjs/dto/app/AppListDto.js +2 -0
  28. package/lib/cjs/dto/app/AppPurchasedQueryData.d.ts +28 -0
  29. package/lib/cjs/dto/app/AppPurchasedQueryData.js +2 -0
  30. package/lib/cjs/dto/app/AppQueryData.d.ts +42 -0
  31. package/lib/cjs/dto/app/AppQueryData.js +2 -0
  32. package/lib/cjs/dto/member/MemberListDto.d.ts +6 -0
  33. package/lib/cjs/dto/member/MemberListDto.js +2 -0
  34. package/lib/cjs/dto/member/MemberQueryDto.d.ts +35 -0
  35. package/lib/cjs/dto/member/MemberQueryDto.js +2 -0
  36. package/lib/cjs/dto/org/OrgGetMyData.d.ts +21 -0
  37. package/lib/cjs/dto/org/OrgGetMyData.js +2 -0
  38. package/lib/cjs/dto/org/OrgListDto.d.ts +6 -0
  39. package/lib/cjs/dto/org/OrgListDto.js +2 -0
  40. package/lib/cjs/dto/org/OrgQueryDto.d.ts +39 -0
  41. package/lib/cjs/dto/org/OrgQueryDto.js +2 -0
  42. package/lib/cjs/dto/org/OrgReadDto.d.ts +47 -0
  43. package/lib/cjs/dto/org/OrgReadDto.js +2 -0
  44. package/lib/cjs/dto/org/OrgUpdateReadDto.d.ts +39 -0
  45. package/lib/cjs/dto/org/OrgUpdateReadDto.js +2 -0
  46. package/lib/cjs/dto/public/CurrencyItem.d.ts +31 -0
  47. package/lib/cjs/dto/public/CurrencyItem.js +2 -0
  48. package/lib/cjs/dto/public/PlaceCommon.d.ts +43 -0
  49. package/lib/cjs/dto/public/PlaceCommon.js +2 -0
  50. package/lib/cjs/dto/public/PlaceLocation.d.ts +14 -0
  51. package/lib/cjs/dto/public/PlaceLocation.js +2 -0
  52. package/lib/cjs/dto/public/RegionData.d.ts +36 -0
  53. package/lib/cjs/dto/public/RegionData.js +2 -0
  54. package/lib/cjs/dto/user/AuditHistoryDto.d.ts +26 -0
  55. package/lib/cjs/dto/user/AuditHistoryDto.js +2 -0
  56. package/lib/cjs/dto/user/DeviceListDto.d.ts +8 -0
  57. package/lib/cjs/dto/user/DeviceListDto.js +2 -0
  58. package/lib/cjs/i18n/CoreCulture.d.ts +44 -0
  59. package/lib/cjs/i18n/CoreCulture.js +52 -0
  60. package/lib/cjs/i18n/en.json +40 -0
  61. package/lib/cjs/i18n/zh-Hans.json +40 -0
  62. package/lib/cjs/i18n/zh-Hant.json +40 -0
  63. package/lib/cjs/index.d.ts +39 -0
  64. package/lib/cjs/index.js +59 -0
  65. package/lib/cjs/rq/app/AppGetMyRQ.d.ts +19 -0
  66. package/lib/cjs/rq/app/AppGetMyRQ.js +2 -0
  67. package/lib/cjs/rq/app/AppListRQ.d.ts +18 -0
  68. package/lib/cjs/rq/app/AppListRQ.js +2 -0
  69. package/lib/cjs/rq/app/AppPurchasedQueryRQ.d.ts +17 -0
  70. package/lib/cjs/rq/app/AppPurchasedQueryRQ.js +2 -0
  71. package/lib/cjs/rq/app/AppQueryRQ.d.ts +6 -0
  72. package/lib/cjs/rq/app/AppQueryRQ.js +2 -0
  73. package/lib/cjs/rq/member/MemberListRQ.d.ts +18 -0
  74. package/lib/cjs/rq/member/MemberListRQ.js +2 -0
  75. package/lib/cjs/rq/member/MemberQueryRQ.d.ts +10 -0
  76. package/lib/cjs/rq/member/MemberQueryRQ.js +2 -0
  77. package/lib/cjs/rq/org/OrgCreateRQ.d.ts +37 -0
  78. package/lib/cjs/rq/org/OrgCreateRQ.js +2 -0
  79. package/lib/cjs/rq/org/OrgGetMyRQ.d.ts +11 -0
  80. package/lib/cjs/rq/org/OrgGetMyRQ.js +2 -0
  81. package/lib/cjs/rq/org/OrgListRQ.d.ts +12 -0
  82. package/lib/cjs/rq/org/OrgListRQ.js +2 -0
  83. package/lib/cjs/rq/org/OrgQueryRQ.d.ts +11 -0
  84. package/lib/cjs/rq/org/OrgQueryRQ.js +2 -0
  85. package/lib/cjs/rq/org/OrgUpdateRQ.d.ts +37 -0
  86. package/lib/cjs/rq/org/OrgUpdateRQ.js +2 -0
  87. package/lib/cjs/rq/public/CreateBarcodeRQ.d.ts +56 -0
  88. package/lib/cjs/rq/public/CreateBarcodeRQ.js +2 -0
  89. package/lib/cjs/rq/public/PinyinRQ.d.ts +38 -0
  90. package/lib/cjs/rq/public/PinyinRQ.js +21 -0
  91. package/lib/cjs/rq/public/PlaceQueryRQ.d.ts +58 -0
  92. package/lib/cjs/rq/public/PlaceQueryRQ.js +21 -0
  93. package/lib/cjs/rq/user/AuditHistoryRQ.d.ts +19 -0
  94. package/lib/cjs/rq/user/AuditHistoryRQ.js +2 -0
  95. package/lib/mjs/AppApi.d.ts +48 -0
  96. package/lib/mjs/AppApi.js +50 -0
  97. package/lib/mjs/CoreApp.d.ts +58 -0
  98. package/lib/mjs/CoreApp.js +64 -0
  99. package/lib/mjs/MemberApi.d.ts +38 -0
  100. package/lib/mjs/MemberApi.js +41 -0
  101. package/lib/mjs/OrgApi.d.ts +95 -0
  102. package/lib/mjs/OrgApi.js +106 -0
  103. package/lib/mjs/PublicApi.d.ts +105 -0
  104. package/lib/mjs/PublicApi.js +139 -0
  105. package/lib/mjs/UserApi.d.ts +53 -0
  106. package/lib/mjs/UserApi.js +64 -0
  107. package/lib/mjs/dto/IdentityType.d.ts +21 -0
  108. package/lib/mjs/dto/IdentityType.js +22 -0
  109. package/lib/mjs/dto/app/AppData.d.ts +31 -0
  110. package/lib/mjs/dto/app/AppData.js +1 -0
  111. package/lib/mjs/dto/app/AppListDto.d.ts +6 -0
  112. package/lib/mjs/dto/app/AppListDto.js +1 -0
  113. package/lib/mjs/dto/app/AppPurchasedQueryData.d.ts +28 -0
  114. package/lib/mjs/dto/app/AppPurchasedQueryData.js +1 -0
  115. package/lib/mjs/dto/app/AppQueryData.d.ts +42 -0
  116. package/lib/mjs/dto/app/AppQueryData.js +1 -0
  117. package/lib/mjs/dto/member/MemberListDto.d.ts +6 -0
  118. package/lib/mjs/dto/member/MemberListDto.js +1 -0
  119. package/lib/mjs/dto/member/MemberQueryDto.d.ts +35 -0
  120. package/lib/mjs/dto/member/MemberQueryDto.js +1 -0
  121. package/lib/mjs/dto/org/OrgGetMyData.d.ts +21 -0
  122. package/lib/mjs/dto/org/OrgGetMyData.js +1 -0
  123. package/lib/mjs/dto/org/OrgListDto.d.ts +6 -0
  124. package/lib/mjs/dto/org/OrgListDto.js +1 -0
  125. package/lib/mjs/dto/org/OrgQueryDto.d.ts +39 -0
  126. package/lib/mjs/dto/org/OrgQueryDto.js +1 -0
  127. package/lib/mjs/dto/org/OrgReadDto.d.ts +47 -0
  128. package/lib/mjs/dto/org/OrgReadDto.js +1 -0
  129. package/lib/mjs/dto/org/OrgUpdateReadDto.d.ts +39 -0
  130. package/lib/mjs/dto/org/OrgUpdateReadDto.js +1 -0
  131. package/lib/mjs/dto/public/CurrencyItem.d.ts +31 -0
  132. package/lib/mjs/dto/public/CurrencyItem.js +1 -0
  133. package/lib/mjs/dto/public/PlaceCommon.d.ts +43 -0
  134. package/lib/mjs/dto/public/PlaceCommon.js +1 -0
  135. package/lib/mjs/dto/public/PlaceLocation.d.ts +14 -0
  136. package/lib/mjs/dto/public/PlaceLocation.js +1 -0
  137. package/lib/mjs/dto/public/RegionData.d.ts +36 -0
  138. package/lib/mjs/dto/public/RegionData.js +1 -0
  139. package/lib/mjs/dto/user/AuditHistoryDto.d.ts +26 -0
  140. package/lib/mjs/dto/user/AuditHistoryDto.js +1 -0
  141. package/lib/mjs/dto/user/DeviceListDto.d.ts +8 -0
  142. package/lib/mjs/dto/user/DeviceListDto.js +1 -0
  143. package/lib/mjs/i18n/CoreCulture.d.ts +44 -0
  144. package/lib/mjs/i18n/CoreCulture.js +49 -0
  145. package/lib/mjs/i18n/en.json +40 -0
  146. package/lib/mjs/i18n/zh-Hans.json +40 -0
  147. package/lib/mjs/i18n/zh-Hant.json +40 -0
  148. package/lib/mjs/index.d.ts +39 -0
  149. package/lib/mjs/index.js +43 -0
  150. package/lib/mjs/rq/app/AppGetMyRQ.d.ts +19 -0
  151. package/lib/mjs/rq/app/AppGetMyRQ.js +1 -0
  152. package/lib/mjs/rq/app/AppListRQ.d.ts +18 -0
  153. package/lib/mjs/rq/app/AppListRQ.js +1 -0
  154. package/lib/mjs/rq/app/AppPurchasedQueryRQ.d.ts +17 -0
  155. package/lib/mjs/rq/app/AppPurchasedQueryRQ.js +1 -0
  156. package/lib/mjs/rq/app/AppQueryRQ.d.ts +6 -0
  157. package/lib/mjs/rq/app/AppQueryRQ.js +1 -0
  158. package/lib/mjs/rq/member/MemberListRQ.d.ts +18 -0
  159. package/lib/mjs/rq/member/MemberListRQ.js +1 -0
  160. package/lib/mjs/rq/member/MemberQueryRQ.d.ts +10 -0
  161. package/lib/mjs/rq/member/MemberQueryRQ.js +1 -0
  162. package/lib/mjs/rq/org/OrgCreateRQ.d.ts +37 -0
  163. package/lib/mjs/rq/org/OrgCreateRQ.js +1 -0
  164. package/lib/mjs/rq/org/OrgGetMyRQ.d.ts +11 -0
  165. package/lib/mjs/rq/org/OrgGetMyRQ.js +1 -0
  166. package/lib/mjs/rq/org/OrgListRQ.d.ts +12 -0
  167. package/lib/mjs/rq/org/OrgListRQ.js +1 -0
  168. package/lib/mjs/rq/org/OrgQueryRQ.d.ts +11 -0
  169. package/lib/mjs/rq/org/OrgQueryRQ.js +1 -0
  170. package/lib/mjs/rq/org/OrgUpdateRQ.d.ts +37 -0
  171. package/lib/mjs/rq/org/OrgUpdateRQ.js +1 -0
  172. package/lib/mjs/rq/public/CreateBarcodeRQ.d.ts +56 -0
  173. package/lib/mjs/rq/public/CreateBarcodeRQ.js +1 -0
  174. package/lib/mjs/rq/public/PinyinRQ.d.ts +38 -0
  175. package/lib/mjs/rq/public/PinyinRQ.js +18 -0
  176. package/lib/mjs/rq/public/PlaceQueryRQ.d.ts +58 -0
  177. package/lib/mjs/rq/public/PlaceQueryRQ.js +18 -0
  178. package/lib/mjs/rq/user/AuditHistoryRQ.d.ts +19 -0
  179. package/lib/mjs/rq/user/AuditHistoryRQ.js +1 -0
  180. package/package.json +75 -0
  181. package/src/AppApi.ts +66 -0
  182. package/src/CoreApp.ts +75 -0
  183. package/src/MemberApi.ts +51 -0
  184. package/src/OrgApi.ts +134 -0
  185. package/src/PublicApi.ts +183 -0
  186. package/src/UserApi.ts +77 -0
  187. package/src/dto/IdentityType.ts +23 -0
  188. package/src/dto/app/AppData.ts +35 -0
  189. package/src/dto/app/AppListDto.ts +7 -0
  190. package/src/dto/app/AppPurchasedQueryData.ts +32 -0
  191. package/src/dto/app/AppQueryData.ts +49 -0
  192. package/src/dto/member/MemberListDto.ts +7 -0
  193. package/src/dto/member/MemberQueryDto.ts +43 -0
  194. package/src/dto/org/OrgGetMyData.ts +23 -0
  195. package/src/dto/org/OrgListDto.ts +7 -0
  196. package/src/dto/org/OrgQueryDto.ts +47 -0
  197. package/src/dto/org/OrgReadDto.ts +57 -0
  198. package/src/dto/org/OrgUpdateReadDto.ts +47 -0
  199. package/src/dto/public/CurrencyItem.ts +35 -0
  200. package/src/dto/public/PlaceCommon.ts +52 -0
  201. package/src/dto/public/PlaceLocation.ts +15 -0
  202. package/src/dto/public/RegionData.ts +41 -0
  203. package/src/dto/user/AuditHistoryDto.ts +30 -0
  204. package/src/dto/user/DeviceListDto.ts +8 -0
  205. package/src/i18n/CoreCulture.ts +84 -0
  206. package/src/i18n/en.json +40 -0
  207. package/src/i18n/zh-Hans.json +40 -0
  208. package/src/i18n/zh-Hant.json +40 -0
  209. package/src/index.ts +54 -0
  210. package/src/rq/app/AppGetMyRQ.ts +21 -0
  211. package/src/rq/app/AppListRQ.ts +20 -0
  212. package/src/rq/app/AppPurchasedQueryRQ.ts +19 -0
  213. package/src/rq/app/AppQueryRQ.ts +7 -0
  214. package/src/rq/member/MemberListRQ.ts +21 -0
  215. package/src/rq/member/MemberQueryRQ.ts +11 -0
  216. package/src/rq/org/OrgCreateRQ.ts +43 -0
  217. package/src/rq/org/OrgGetMyRQ.ts +11 -0
  218. package/src/rq/org/OrgListRQ.ts +13 -0
  219. package/src/rq/org/OrgQueryRQ.ts +12 -0
  220. package/src/rq/org/OrgUpdateRQ.ts +43 -0
  221. package/src/rq/public/CreateBarcodeRQ.ts +65 -0
  222. package/src/rq/public/PinyinRQ.ts +43 -0
  223. package/src/rq/public/PlaceQueryRQ.ts +67 -0
  224. package/src/rq/user/AuditHistoryRQ.ts +22 -0
  225. package/tsconfig.cjs.json +19 -0
  226. package/tsconfig.json +19 -0
@@ -0,0 +1,11 @@
1
+ import { MemberListRQ } from "./MemberListRQ";
2
+
3
+ /**
4
+ * Member query request data
5
+ */
6
+ export type MemberQueryRQ = MemberListRQ & {
7
+ /**
8
+ * Assigned ID
9
+ */
10
+ assignedId?: string;
11
+ };
@@ -0,0 +1,43 @@
1
+ import { EntityStatus } from "@etsoo/appscript";
2
+
3
+ /**
4
+ * Create organization request data
5
+ * 创建组织请求数据
6
+ */
7
+ export type OrgCreateRQ = {
8
+ /**
9
+ * Organization name
10
+ * 组织名称
11
+ */
12
+ name: string;
13
+
14
+ /**
15
+ * Brand
16
+ * 品牌
17
+ */
18
+ brand?: string;
19
+
20
+ /**
21
+ * PIN, unique code
22
+ * PIN,唯一代码
23
+ */
24
+ pin?: string;
25
+
26
+ /**
27
+ * Parent id
28
+ * 父级编号
29
+ */
30
+ parentId?: number;
31
+
32
+ /**
33
+ * Status
34
+ * 状况
35
+ */
36
+ status?: EntityStatus;
37
+
38
+ /**
39
+ * Query keyword
40
+ * 查询关键字
41
+ */
42
+ queryKeyword?: string;
43
+ };
@@ -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,13 @@
1
+ import { StatusQueryRQ } from "@etsoo/appscript";
2
+
3
+ /**
4
+ * Organization list request data
5
+ * 机构列表请求数据
6
+ */
7
+ export type OrgListRQ = StatusQueryRQ & {
8
+ /**
9
+ * Parent org ID
10
+ * 父级机构编号
11
+ */
12
+ parentId?: number;
13
+ };
@@ -0,0 +1,12 @@
1
+ import { OrgListRQ } from "./OrgListRQ";
2
+
3
+ /**
4
+ * Organization Query Request data
5
+ * 机构查询请求数据
6
+ */
7
+ export type OrgQueryRQ = OrgListRQ & {
8
+ /**
9
+ * PIN
10
+ */
11
+ pin?: string;
12
+ };
@@ -0,0 +1,43 @@
1
+ import { EntityStatus, UpdateModel } from "@etsoo/appscript";
2
+
3
+ /**
4
+ * Update organization request data
5
+ * 更新机构请求数据
6
+ */
7
+ export interface OrgUpdateRQ extends UpdateModel {
8
+ /**
9
+ * Organization name
10
+ * 机构名称
11
+ */
12
+ name?: string;
13
+
14
+ /**
15
+ * Brand
16
+ * 品牌
17
+ */
18
+ brand?: string;
19
+
20
+ /**
21
+ * PIN, unique code
22
+ * PIN,唯一代码
23
+ */
24
+ pin?: string;
25
+
26
+ /**
27
+ * Parent id
28
+ * 父级编号
29
+ */
30
+ parentId?: number;
31
+
32
+ /**
33
+ * Status
34
+ * 状况
35
+ */
36
+ status?: EntityStatus;
37
+
38
+ /**
39
+ * Query keyword
40
+ * 查询关键字
41
+ */
42
+ queryKeyword?: string;
43
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Create Barcode Request data
3
+ * 创建条码请求数据
4
+ */
5
+ export type CreateBarcodeRQ = {
6
+ /**
7
+ * Content
8
+ * 内容
9
+ */
10
+ content: string;
11
+
12
+ /**
13
+ * Type
14
+ * 类型
15
+ */
16
+ type?: string;
17
+
18
+ /**
19
+ * Background color text format
20
+ * 背景色文本格式
21
+ */
22
+ backgroundText?: string;
23
+
24
+ /**
25
+ * Foreground color text format
26
+ * 前景色文本格式
27
+ */
28
+ foregroundText?: string;
29
+
30
+ /**
31
+ * Width
32
+ * 宽度
33
+ */
34
+ width: number;
35
+
36
+ /**
37
+ * Height
38
+ * 高度
39
+ */
40
+ height: number;
41
+
42
+ /**
43
+ * Margin
44
+ * 边距
45
+ */
46
+ margin?: number;
47
+
48
+ /**
49
+ * Pure barcode, don't put the content string into the output image
50
+ * 纯条码,不将内容字符串放入输出图像
51
+ */
52
+ pureBarcode?: boolean;
53
+
54
+ /**
55
+ * GS1 format
56
+ * GS1格式
57
+ */
58
+ gs1Format?: boolean;
59
+
60
+ /**
61
+ * No padding
62
+ * 无填充
63
+ */
64
+ noPadding?: boolean;
65
+ };
@@ -0,0 +1,43 @@
1
+ export enum PinyinFormatType {
2
+ /**
3
+ * Full Pinyin without tone
4
+ * 不带声调的全拼
5
+ */
6
+ Full,
7
+
8
+ /**
9
+ * Initial letter
10
+ * 首字母
11
+ */
12
+ Initial,
13
+
14
+ /**
15
+ * Full Pinyin with tone
16
+ * 带声调的全拼
17
+ */
18
+ Tone
19
+ }
20
+
21
+ /**
22
+ * Get Pinyin request data
23
+ * 获取拼音请求数据
24
+ */
25
+ export type PinyinRQ = {
26
+ /**
27
+ * Input string
28
+ * 输入的字符串
29
+ */
30
+ input: string;
31
+
32
+ /**
33
+ * Return format
34
+ * 返回格式
35
+ */
36
+ format: PinyinFormatType;
37
+
38
+ /**
39
+ * Is name
40
+ * 是否为姓名
41
+ */
42
+ isName?: boolean;
43
+ };
@@ -0,0 +1,67 @@
1
+ import { PlaceLocation } from "../../dto/public/PlaceLocation";
2
+
3
+ /**
4
+ * API output type
5
+ * API输出类型
6
+ */
7
+ export enum ApiOutput {
8
+ JSON,
9
+ XML
10
+ }
11
+
12
+ /**
13
+ * API provider
14
+ * 接口供应商
15
+ */
16
+ export enum ApiProvider {
17
+ Google,
18
+ Baidu
19
+ }
20
+
21
+ /**
22
+ * Place query request
23
+ * 地点查询请求
24
+ */
25
+ export type PlaceQueryRQ = {
26
+ /**
27
+ * Query input
28
+ * 查询输入
29
+ */
30
+ query: string;
31
+
32
+ /**
33
+ * Output type
34
+ * 输出类型
35
+ */
36
+ output?: ApiOutput;
37
+
38
+ /**
39
+ * API provider
40
+ * 接口供应商
41
+ */
42
+ provider?: ApiProvider;
43
+
44
+ /**
45
+ * Language, like zh-CN
46
+ * 语言
47
+ */
48
+ language?: string;
49
+
50
+ /**
51
+ * Region or country id, like CN
52
+ * 地区或国家编号
53
+ */
54
+ region?: string;
55
+
56
+ /**
57
+ * Center location
58
+ * 中心位置
59
+ */
60
+ location?: PlaceLocation;
61
+
62
+ /**
63
+ * Radius in meters
64
+ * 方圆距离,单位为米
65
+ */
66
+ radius?: number;
67
+ };
@@ -0,0 +1,22 @@
1
+ import { QueryRQ } from "@etsoo/appscript";
2
+
3
+ /**
4
+ * Audit history request data
5
+ * 操作历史请求数据
6
+ */
7
+ export type AuditHistoryRQ = QueryRQ & {
8
+ /**
9
+ * Device id
10
+ */
11
+ deviceId?: number;
12
+
13
+ /**
14
+ * Creation start
15
+ */
16
+ creationStart?: Date | string;
17
+
18
+ /**
19
+ * Creation end
20
+ */
21
+ creationEnd?: Date | string;
22
+ };
@@ -0,0 +1,19 @@
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
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+ "target": "ES2020",
5
+ "allowJs": false,
6
+ "module": "ESNext",
7
+ "moduleResolution": "Node10",
8
+ "resolveJsonModule": true,
9
+ "isolatedModules": true,
10
+ "outDir": "./lib/mjs",
11
+ "noEmit": false,
12
+ "declaration": true,
13
+ "strict": true,
14
+ "esModuleInterop": true,
15
+ "skipLibCheck": true,
16
+ "forceConsistentCasingInFileNames": true
17
+ },
18
+ "include": ["src"]
19
+ }