@etsoo/appscript 1.5.63 → 1.5.65

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 (196) hide show
  1. package/.github/workflows/main.yml +6 -5
  2. package/README.md +97 -71
  3. package/__tests__/app/CoreApp.ts +141 -143
  4. package/__tests__/app/Culture.ts +23 -23
  5. package/__tests__/app/TestApp.ts +107 -105
  6. package/__tests__/business/BusinessUtils.ts +37 -37
  7. package/__tests__/result/ActionResult.ts +14 -14
  8. package/__tests__/tsconfig.json +16 -16
  9. package/babel.config.json +8 -8
  10. package/lib/cjs/address/AddressAutocomplete.d.ts +1 -1
  11. package/lib/cjs/address/AddressPlace.d.ts +3 -3
  12. package/lib/cjs/address/AddressPlaceBase.d.ts +1 -1
  13. package/lib/cjs/address/AddressRegion.d.ts +2 -2
  14. package/lib/cjs/address/AddressRegion.js +12 -12
  15. package/lib/cjs/address/AddressUtils.d.ts +1 -1
  16. package/lib/cjs/api/AuthApi.d.ts +14 -14
  17. package/lib/cjs/api/AuthApi.js +17 -17
  18. package/lib/cjs/api/BaseApi.d.ts +1 -1
  19. package/lib/cjs/api/EntityApi.d.ts +8 -8
  20. package/lib/cjs/api/EntityApi.js +4 -4
  21. package/lib/cjs/api/dto/AuditLineDto.d.ts +24 -0
  22. package/lib/cjs/api/dto/AuditLineDto.js +2 -0
  23. package/lib/cjs/api/dto/IdLabelDto.d.ts +1 -1
  24. package/lib/cjs/api/dto/IdLabelPrimaryDto.d.ts +1 -1
  25. package/lib/cjs/api/dto/PinDto.d.ts +61 -0
  26. package/lib/cjs/api/dto/PinDto.js +2 -0
  27. package/lib/cjs/api/dto/ResultPayload.d.ts +2 -2
  28. package/lib/cjs/api/rq/AuthRequest.d.ts +1 -1
  29. package/lib/cjs/api/rq/LoginRQ.d.ts +2 -2
  30. package/lib/cjs/api/rq/MergeRQ.d.ts +1 -1
  31. package/lib/cjs/api/rq/QueryRQ.d.ts +2 -2
  32. package/lib/cjs/api/rq/StatusQueryRQ.d.ts +3 -3
  33. package/lib/cjs/api/rq/UpdateModel.d.ts +2 -2
  34. package/lib/cjs/api/rq/UpdateStatusRQ.d.ts +2 -2
  35. package/lib/cjs/app/AppSettings.d.ts +3 -3
  36. package/lib/cjs/bridges/FlutterHost.d.ts +2 -2
  37. package/lib/cjs/bridges/FlutterHost.js +11 -11
  38. package/lib/cjs/business/BusinessTax.js +6 -6
  39. package/lib/cjs/business/BusinessUtils.d.ts +2 -2
  40. package/lib/cjs/business/BusinessUtils.js +5 -5
  41. package/lib/cjs/business/Currency.d.ts +1 -1
  42. package/lib/cjs/business/Currency.js +10 -10
  43. package/lib/cjs/business/ProductUnit.d.ts +1 -1
  44. package/lib/cjs/business/ShoppingCart.d.ts +9 -9
  45. package/lib/cjs/business/ShoppingCart.js +11 -11
  46. package/lib/cjs/custom/CustomField.d.ts +1 -1
  47. package/lib/cjs/custom/CustomFieldData.d.ts +2 -2
  48. package/lib/cjs/i18n/Culture.d.ts +31 -0
  49. package/lib/cjs/i18n/Culture.js +51 -0
  50. package/lib/cjs/index.d.ts +3 -4
  51. package/lib/cjs/index.js +3 -4
  52. package/lib/cjs/result/ActionResult.d.ts +1 -1
  53. package/lib/cjs/result/ActionResultError.d.ts +1 -1
  54. package/lib/cjs/result/ActionResultError.js +3 -3
  55. package/lib/cjs/result/InitCallResult.d.ts +1 -1
  56. package/lib/cjs/state/Culture.d.ts +2 -2
  57. package/lib/cjs/state/User.d.ts +1 -1
  58. package/lib/mjs/address/AddressAutocomplete.d.ts +1 -1
  59. package/lib/mjs/address/AddressPlace.d.ts +3 -3
  60. package/lib/mjs/address/AddressPlaceBase.d.ts +1 -1
  61. package/lib/mjs/address/AddressRegion.d.ts +2 -2
  62. package/lib/mjs/address/AddressRegion.js +13 -13
  63. package/lib/mjs/address/AddressUtils.d.ts +1 -1
  64. package/lib/mjs/address/AddressUtils.js +1 -1
  65. package/lib/mjs/api/AuthApi.d.ts +14 -14
  66. package/lib/mjs/api/AuthApi.js +19 -19
  67. package/lib/mjs/api/BaseApi.d.ts +1 -1
  68. package/lib/mjs/api/EntityApi.d.ts +8 -8
  69. package/lib/mjs/api/EntityApi.js +5 -5
  70. package/lib/mjs/api/dto/AuditLineDto.d.ts +24 -0
  71. package/lib/mjs/api/dto/AuditLineDto.js +1 -0
  72. package/lib/mjs/api/dto/IdLabelDto.d.ts +1 -1
  73. package/lib/mjs/api/dto/IdLabelPrimaryDto.d.ts +1 -1
  74. package/lib/mjs/api/dto/PinDto.d.ts +61 -0
  75. package/lib/mjs/api/dto/PinDto.js +1 -0
  76. package/lib/mjs/api/dto/ResultPayload.d.ts +2 -2
  77. package/lib/mjs/api/rq/AuthRequest.d.ts +1 -1
  78. package/lib/mjs/api/rq/LoginRQ.d.ts +2 -2
  79. package/lib/mjs/api/rq/MergeRQ.d.ts +1 -1
  80. package/lib/mjs/api/rq/QueryRQ.d.ts +2 -2
  81. package/lib/mjs/api/rq/StatusQueryRQ.d.ts +3 -3
  82. package/lib/mjs/api/rq/UpdateModel.d.ts +2 -2
  83. package/lib/mjs/api/rq/UpdateStatusRQ.d.ts +2 -2
  84. package/lib/mjs/app/AppSettings.d.ts +3 -3
  85. package/lib/mjs/bridges/FlutterHost.d.ts +2 -2
  86. package/lib/mjs/bridges/FlutterHost.js +13 -13
  87. package/lib/mjs/business/BusinessTax.js +6 -6
  88. package/lib/mjs/business/BusinessUtils.d.ts +2 -2
  89. package/lib/mjs/business/BusinessUtils.js +5 -5
  90. package/lib/mjs/business/Currency.d.ts +1 -1
  91. package/lib/mjs/business/Currency.js +10 -10
  92. package/lib/mjs/business/ProductUnit.d.ts +1 -1
  93. package/lib/mjs/business/ProductUnit.js +1 -1
  94. package/lib/mjs/business/ShoppingCart.d.ts +9 -9
  95. package/lib/mjs/business/ShoppingCart.js +12 -12
  96. package/lib/mjs/custom/CustomField.d.ts +1 -1
  97. package/lib/mjs/custom/CustomFieldData.d.ts +2 -2
  98. package/lib/mjs/i18n/Culture.d.ts +31 -0
  99. package/lib/mjs/i18n/Culture.js +48 -0
  100. package/lib/mjs/index.d.ts +3 -4
  101. package/lib/mjs/index.js +3 -4
  102. package/lib/mjs/result/ActionResult.d.ts +1 -1
  103. package/lib/mjs/result/ActionResult.js +1 -1
  104. package/lib/mjs/result/ActionResultError.d.ts +1 -1
  105. package/lib/mjs/result/ActionResultError.js +3 -3
  106. package/lib/mjs/result/InitCallResult.d.ts +1 -1
  107. package/lib/mjs/state/Culture.d.ts +2 -2
  108. package/lib/mjs/state/User.d.ts +1 -1
  109. package/package.json +1 -1
  110. package/src/address/AddressAutocomplete.ts +16 -16
  111. package/src/address/AddressCity.ts +12 -12
  112. package/src/address/AddressContinent.ts +35 -35
  113. package/src/address/AddressDistrict.ts +12 -12
  114. package/src/address/AddressLocation.ts +8 -8
  115. package/src/address/AddressPlace.ts +23 -23
  116. package/src/address/AddressPlaceBase.ts +31 -31
  117. package/src/address/AddressRegion.ts +286 -286
  118. package/src/address/AddressState.ts +12 -12
  119. package/src/address/AddressUtils.ts +27 -27
  120. package/src/api/AuthApi.ts +194 -194
  121. package/src/api/BaseApi.ts +13 -13
  122. package/src/api/EntityApi.ts +181 -194
  123. package/src/api/dto/AntiforgeryRequestToken.ts +15 -15
  124. package/src/api/dto/ApiRefreshTokenDto.ts +16 -16
  125. package/src/api/dto/AuditLineDto.ts +27 -0
  126. package/src/api/dto/IdLabelDto.ts +3 -3
  127. package/src/api/dto/IdLabelPrimaryDto.ts +7 -7
  128. package/src/api/dto/InitCallDto.ts +12 -12
  129. package/src/api/dto/PinDto.ts +71 -0
  130. package/src/api/dto/ResultPayload.ts +6 -6
  131. package/src/api/rq/ApiRefreshTokenRQ.ts +8 -8
  132. package/src/api/rq/AuthRequest.ts +40 -40
  133. package/src/api/rq/GetLogInUrlRQ.ts +8 -8
  134. package/src/api/rq/LoginIdRQ.ts +12 -12
  135. package/src/api/rq/LoginRQ.ts +18 -18
  136. package/src/api/rq/MergeRQ.ts +13 -13
  137. package/src/api/rq/QueryPagingData.ts +16 -16
  138. package/src/api/rq/QueryRQ.ts +22 -22
  139. package/src/api/rq/RefreshTokenRQ.ts +4 -4
  140. package/src/api/rq/ResetPasswordRQ.ts +20 -20
  141. package/src/api/rq/SignoutRQ.ts +8 -8
  142. package/src/api/rq/StatusQueryRQ.ts +11 -11
  143. package/src/api/rq/SwitchOrgRQ.ts +8 -8
  144. package/src/api/rq/TokenRQ.ts +4 -4
  145. package/src/api/rq/UpdateModel.ts +12 -12
  146. package/src/api/rq/UpdateStatusRQ.ts +10 -10
  147. package/src/app/AppSettings.ts +27 -27
  148. package/src/app/UserRole.ts +44 -44
  149. package/src/bridges/FlutterHost.ts +92 -97
  150. package/src/bridges/IBridgeHost.ts +49 -51
  151. package/src/business/ApiService.ts +25 -25
  152. package/src/business/BusinessTax.ts +63 -63
  153. package/src/business/BusinessUtils.ts +75 -75
  154. package/src/business/CultureItem.ts +43 -43
  155. package/src/business/Currency.ts +11 -11
  156. package/src/business/DataPrivacy.ts +35 -35
  157. package/src/business/EntityStatus.ts +44 -44
  158. package/src/business/ProductUnit.ts +58 -58
  159. package/src/business/RepeatOption.ts +50 -50
  160. package/src/business/ShoppingCart.ts +696 -706
  161. package/src/custom/CustomField.ts +20 -20
  162. package/src/custom/CustomFieldData.ts +43 -43
  163. package/src/def/ListItem.ts +12 -12
  164. package/src/i18n/Culture.ts +60 -0
  165. package/src/i18n/en.json +244 -244
  166. package/src/i18n/zh-Hans.json +244 -244
  167. package/src/i18n/zh-Hant.json +244 -244
  168. package/src/index.ts +3 -4
  169. package/src/result/ActionResult.ts +19 -19
  170. package/src/result/ActionResultError.ts +30 -30
  171. package/src/result/InitCallResult.ts +21 -21
  172. package/src/state/Culture.ts +3 -3
  173. package/src/state/State.ts +5 -5
  174. package/src/state/User.ts +92 -92
  175. package/tsconfig.cjs.json +17 -17
  176. package/tsconfig.json +17 -17
  177. package/lib/cjs/i18n/CultureUtils.d.ts +0 -13
  178. package/lib/cjs/i18n/CultureUtils.js +0 -32
  179. package/lib/cjs/i18n/en.d.ts +0 -6
  180. package/lib/cjs/i18n/en.js +0 -12
  181. package/lib/cjs/i18n/zhHans.d.ts +0 -6
  182. package/lib/cjs/i18n/zhHans.js +0 -12
  183. package/lib/cjs/i18n/zhHant.d.ts +0 -6
  184. package/lib/cjs/i18n/zhHant.js +0 -12
  185. package/lib/mjs/i18n/CultureUtils.d.ts +0 -13
  186. package/lib/mjs/i18n/CultureUtils.js +0 -29
  187. package/lib/mjs/i18n/en.d.ts +0 -6
  188. package/lib/mjs/i18n/en.js +0 -8
  189. package/lib/mjs/i18n/zhHans.d.ts +0 -6
  190. package/lib/mjs/i18n/zhHans.js +0 -8
  191. package/lib/mjs/i18n/zhHant.d.ts +0 -6
  192. package/lib/mjs/i18n/zhHant.js +0 -8
  193. package/src/i18n/CultureUtils.ts +0 -36
  194. package/src/i18n/en.ts +0 -10
  195. package/src/i18n/zhHans.ts +0 -10
  196. package/src/i18n/zhHant.ts +0 -10
@@ -2,13 +2,13 @@
2
2
  * API Refresh Token Request data
3
3
  */
4
4
  export type ApiRefreshTokenRQ = {
5
- /**
6
- * Refresh token
7
- */
8
- token: string;
5
+ /**
6
+ * Refresh token
7
+ */
8
+ token: string;
9
9
 
10
- /**
11
- * Application ID, 0 for core system
12
- */
13
- appId?: number;
10
+ /**
11
+ * Application ID, 0 for core system
12
+ */
13
+ appId?: number;
14
14
  };
@@ -3,51 +3,51 @@
3
3
  * 程序认证请求对象
4
4
  */
5
5
  export type AuthRequest = {
6
- /**
7
- * Application ID
8
- * 应用编号
9
- */
10
- appId: number;
6
+ /**
7
+ * Application ID
8
+ * 应用编号
9
+ */
10
+ appId: number;
11
11
 
12
- /**
13
- * Application key
14
- * 应用键值
15
- */
16
- appKey: string;
12
+ /**
13
+ * Application key
14
+ * 应用键值
15
+ */
16
+ appKey: string;
17
17
 
18
- /**
19
- * login hint (user login name)
20
- * 登录提示(个人登录名)
21
- */
22
- loginHint?: string;
18
+ /**
19
+ * login hint (user login name)
20
+ * 登录提示(个人登录名)
21
+ */
22
+ loginHint?: string;
23
23
 
24
- /**
25
- * Redirect URI
26
- * 重定向URI
27
- */
28
- redirectUri: string;
24
+ /**
25
+ * Redirect URI
26
+ * 重定向URI
27
+ */
28
+ redirectUri: string;
29
29
 
30
- /**
31
- * Response type, code or token
32
- * 响应类型,代码或令牌
33
- */
34
- responseType: 'code' | 'token';
30
+ /**
31
+ * Response type, code or token
32
+ * 响应类型,代码或令牌
33
+ */
34
+ responseType: "code" | "token";
35
35
 
36
- /**
37
- * Scope
38
- * 作用域
39
- */
40
- scope: string;
36
+ /**
37
+ * Scope
38
+ * 作用域
39
+ */
40
+ scope: string;
41
41
 
42
- /**
43
- * State value
44
- * 状态值
45
- */
46
- state: string;
42
+ /**
43
+ * State value
44
+ * 状态值
45
+ */
46
+ state: string;
47
47
 
48
- /**
49
- * Signature
50
- * 签名
51
- */
52
- sign: string;
48
+ /**
49
+ * Signature
50
+ * 签名
51
+ */
52
+ sign: string;
53
53
  };
@@ -2,13 +2,13 @@
2
2
  * Get log in url request data
3
3
  */
4
4
  export type GetLogInUrlRQ = {
5
- /**
6
- * Region
7
- */
8
- region: string;
5
+ /**
6
+ * Region
7
+ */
8
+ region: string;
9
9
 
10
- /**
11
- * Device id
12
- */
13
- device: string;
10
+ /**
11
+ * Device id
12
+ */
13
+ device: string;
14
14
  };
@@ -2,18 +2,18 @@
2
2
  * Login id request data
3
3
  */
4
4
  export type LoginIdRQ = {
5
- /**
6
- * Device id
7
- */
8
- deviceId: string;
5
+ /**
6
+ * Device id
7
+ */
8
+ deviceId: string;
9
9
 
10
- /**
11
- * Username, Email or mobile
12
- */
13
- id: string;
10
+ /**
11
+ * Username, Email or mobile
12
+ */
13
+ id: string;
14
14
 
15
- /**
16
- * Country or region
17
- */
18
- region: string;
15
+ /**
16
+ * Country or region
17
+ */
18
+ region: string;
19
19
  };
@@ -1,27 +1,27 @@
1
- import { AuthRequest } from './AuthRequest';
2
- import { LoginIdRQ } from './LoginIdRQ';
1
+ import { AuthRequest } from "./AuthRequest";
2
+ import { LoginIdRQ } from "./LoginIdRQ";
3
3
 
4
4
  /**
5
5
  * Login request data
6
6
  */
7
7
  export type LoginRQ = LoginIdRQ & {
8
- /**
9
- * Password
10
- */
11
- pwd: string;
8
+ /**
9
+ * Password
10
+ */
11
+ pwd: string;
12
12
 
13
- /**
14
- * Organization
15
- */
16
- org?: number;
13
+ /**
14
+ * Organization
15
+ */
16
+ org?: number;
17
17
 
18
- /**
19
- * Time zone
20
- */
21
- timezone?: string;
18
+ /**
19
+ * Time zone
20
+ */
21
+ timezone?: string;
22
22
 
23
- /**
24
- * Authorization request data
25
- */
26
- auth?: AuthRequest;
23
+ /**
24
+ * Authorization request data
25
+ */
26
+ auth?: AuthRequest;
27
27
  };
@@ -1,21 +1,21 @@
1
- import { IdType } from '@etsoo/shared';
1
+ import { IdType } from "@etsoo/shared";
2
2
 
3
3
  /**
4
4
  * Merge request data
5
5
  */
6
6
  export type MergeRQ<T extends IdType = number> = {
7
- /**
8
- * Source id
9
- */
10
- sourceId: T;
7
+ /**
8
+ * Source id
9
+ */
10
+ sourceId: T;
11
11
 
12
- /**
13
- * Target id
14
- */
15
- targetId: T;
12
+ /**
13
+ * Target id
14
+ */
15
+ targetId: T;
16
16
 
17
- /**
18
- * Delete source at the same time
19
- */
20
- deleteSource?: boolean;
17
+ /**
18
+ * Delete source at the same time
19
+ */
20
+ deleteSource?: boolean;
21
21
  };
@@ -3,23 +3,23 @@
3
3
  * 查询分页数据
4
4
  */
5
5
  export type QueryPagingData = {
6
- /**
7
- * Current page
8
- */
9
- currentPage?: number;
6
+ /**
7
+ * Current page
8
+ */
9
+ currentPage?: number;
10
10
 
11
- /**
12
- * Keyset array, same order as the order by fields
13
- */
14
- keysets?: unknown[];
11
+ /**
12
+ * Keyset array, same order as the order by fields
13
+ */
14
+ keysets?: unknown[];
15
15
 
16
- /**
17
- * Batch size
18
- */
19
- batchSize: number;
16
+ /**
17
+ * Batch size
18
+ */
19
+ batchSize: number;
20
20
 
21
- /**
22
- * Order by fields
23
- */
24
- orderBy?: Record<string, boolean>;
21
+ /**
22
+ * Order by fields
23
+ */
24
+ orderBy?: Record<string, boolean>;
25
25
  };
@@ -1,33 +1,33 @@
1
- import { IdType } from '@etsoo/shared';
2
- import { QueryPagingData } from './QueryPagingData';
1
+ import { IdType } from "@etsoo/shared";
2
+ import { QueryPagingData } from "./QueryPagingData";
3
3
 
4
4
  /**
5
5
  * Query request data
6
6
  * com.etsoo.CoreFramework.Models.QueryRQ
7
7
  */
8
8
  export type QueryRQ<T extends IdType = number> = {
9
- /**
10
- * Number id
11
- */
12
- id?: T;
9
+ /**
10
+ * Number id
11
+ */
12
+ id?: T;
13
13
 
14
- /**
15
- * Included ids
16
- */
17
- ids?: T[];
14
+ /**
15
+ * Included ids
16
+ */
17
+ ids?: T[];
18
18
 
19
- /**
20
- * Excluded ids
21
- */
22
- excludedIds?: T[];
19
+ /**
20
+ * Excluded ids
21
+ */
22
+ excludedIds?: T[];
23
23
 
24
- /**
25
- * Filter keyword
26
- */
27
- keyword?: string;
24
+ /**
25
+ * Filter keyword
26
+ */
27
+ keyword?: string;
28
28
 
29
- /**
30
- * Query paging data or items to read
31
- */
32
- queryPaging?: QueryPagingData | number;
29
+ /**
30
+ * Query paging data or items to read
31
+ */
32
+ queryPaging?: QueryPagingData | number;
33
33
  };
@@ -2,8 +2,8 @@
2
2
  * Refresh token request data
3
3
  */
4
4
  export type RefreshTokenRQ = {
5
- /**
6
- * Device id
7
- */
8
- deviceId: string;
5
+ /**
6
+ * Device id
7
+ */
8
+ deviceId: string;
9
9
  };
@@ -1,26 +1,26 @@
1
1
  export type ResetPasswordRQ = {
2
- /**
3
- * Email or mobile
4
- */
5
- id: string;
2
+ /**
3
+ * Email or mobile
4
+ */
5
+ id: string;
6
6
 
7
- /**
8
- * Verification code id
9
- */
10
- codeId: string;
7
+ /**
8
+ * Verification code id
9
+ */
10
+ codeId: string;
11
11
 
12
- /**
13
- * Device id
14
- */
15
- deviceId: string;
12
+ /**
13
+ * Device id
14
+ */
15
+ deviceId: string;
16
16
 
17
- /**
18
- * New password
19
- */
20
- password: string;
17
+ /**
18
+ * New password
19
+ */
20
+ password: string;
21
21
 
22
- /**
23
- * Country or region
24
- */
25
- region: string;
22
+ /**
23
+ * Country or region
24
+ */
25
+ region: string;
26
26
  };
@@ -2,13 +2,13 @@
2
2
  * Signout request data
3
3
  */
4
4
  export type SignoutRQ = {
5
- /**
6
- * Device id
7
- */
8
- readonly deviceId: string;
5
+ /**
6
+ * Device id
7
+ */
8
+ readonly deviceId: string;
9
9
 
10
- /**
11
- * Refresh token
12
- */
13
- readonly token: string;
10
+ /**
11
+ * Refresh token
12
+ */
13
+ readonly token: string;
14
14
  };
@@ -1,19 +1,19 @@
1
- import { IdType } from '@etsoo/shared';
2
- import { QueryRQ } from './QueryRQ';
3
- import { EntityStatus } from '../../business/EntityStatus';
1
+ import { IdType } from "@etsoo/shared";
2
+ import { QueryRQ } from "./QueryRQ";
3
+ import { EntityStatus } from "../../business/EntityStatus";
4
4
 
5
5
  /**
6
6
  * Query with status request data
7
7
  * com.etsoo.CoreFramework.Models.QueryRQ
8
8
  */
9
9
  export type StatusQueryRQ<T extends IdType = number> = QueryRQ<T> & {
10
- /**
11
- * Disabled or not, null for all, true for disabled (> EntityStatus.Approved), false for enabled (<= 100)
12
- */
13
- disabled?: boolean;
10
+ /**
11
+ * Disabled or not, null for all, true for disabled (> EntityStatus.Approved), false for enabled (<= 100)
12
+ */
13
+ disabled?: boolean;
14
14
 
15
- /**
16
- * Status
17
- */
18
- status?: EntityStatus;
15
+ /**
16
+ * Status
17
+ */
18
+ status?: EntityStatus;
19
19
  };
@@ -2,13 +2,13 @@
2
2
  * Switch organization request data
3
3
  */
4
4
  export type SwitchOrgRQ = {
5
- /**
6
- * Target organization id
7
- */
8
- organizationId: number;
5
+ /**
6
+ * Target organization id
7
+ */
8
+ organizationId: number;
9
9
 
10
- /**
11
- * From organization id
12
- */
13
- fromOrganizationId: number;
10
+ /**
11
+ * From organization id
12
+ */
13
+ fromOrganizationId: number;
14
14
  };
@@ -2,8 +2,8 @@
2
2
  * Token request data
3
3
  */
4
4
  export type TokenRQ = {
5
- /**
6
- * Refresh token
7
- */
8
- token: string;
5
+ /**
6
+ * Refresh token
7
+ */
8
+ token: string;
9
9
  };
@@ -1,20 +1,20 @@
1
- import { IdType } from '@etsoo/shared';
1
+ import { IdType } from "@etsoo/shared";
2
2
 
3
3
  /**
4
4
  * Update model
5
5
  * 更新模型
6
6
  */
7
7
  export interface UpdateModel<T extends IdType = number> {
8
- /**
9
- * Id
10
- * 编号
11
- */
12
- id: T;
8
+ /**
9
+ * Id
10
+ * 编号
11
+ */
12
+ id: T;
13
13
 
14
- /**
15
- * Changed (modified) fields
16
- * 'Exclude' items from a union type while 'omit' items from an object type.
17
- * 更改的字段,注意 'Exclude' 用于联合类型,'omit' 用于对象类型。
18
- */
19
- changedFields?: Exclude<keyof this, 'changedFields'>[];
14
+ /**
15
+ * Changed (modified) fields
16
+ * 'Exclude' items from a union type while 'omit' items from an object type.
17
+ * 更改的字段,注意 'Exclude' 用于联合类型,'omit' 用于对象类型。
18
+ */
19
+ changedFields?: Exclude<keyof this, "changedFields">[];
20
20
  }
@@ -1,17 +1,17 @@
1
- import { IdType } from '@etsoo/shared';
2
- import { EntityStatus } from '../../business/EntityStatus';
1
+ import { IdType } from "@etsoo/shared";
2
+ import { EntityStatus } from "../../business/EntityStatus";
3
3
 
4
4
  /**
5
5
  * Update status request data
6
6
  */
7
7
  export type UpdateStatusRQ = {
8
- /**
9
- * Id
10
- */
11
- id: IdType;
8
+ /**
9
+ * Id
10
+ */
11
+ id: IdType;
12
12
 
13
- /**
14
- * New status
15
- */
16
- status: EntityStatus;
13
+ /**
14
+ * New status
15
+ */
16
+ status: EntityStatus;
17
17
  };
@@ -1,38 +1,38 @@
1
- import { DataTypes } from '@etsoo/shared';
2
- import { AddressRegion } from '../address/AddressRegion';
3
- import { IExternalSettings } from './ExternalSettings';
1
+ import { DataTypes } from "@etsoo/shared";
2
+ import { AddressRegion } from "../address/AddressRegion";
3
+ import { IExternalSettings } from "./ExternalSettings";
4
4
 
5
5
  /**
6
6
  * App settings interface
7
7
  */
8
8
  export interface IAppSettings extends IExternalSettings {
9
- /**
10
- * Supported country/region ids
11
- */
12
- readonly regions: string[];
9
+ /**
10
+ * Supported country/region ids
11
+ */
12
+ readonly regions: string[];
13
13
 
14
- /**
15
- * Supported cultures
16
- */
17
- readonly cultures: DataTypes.CultureDefinition[];
14
+ /**
15
+ * Supported cultures
16
+ */
17
+ readonly cultures: DataTypes.CultureDefinition[];
18
18
 
19
- /**
20
- * Detected culture
21
- */
22
- readonly detectedCulture: string;
19
+ /**
20
+ * Detected culture
21
+ */
22
+ readonly detectedCulture: string;
23
23
 
24
- /**
25
- * Time zone
26
- */
27
- timeZone?: string;
24
+ /**
25
+ * Time zone
26
+ */
27
+ timeZone?: string;
28
28
 
29
- /**
30
- * Current country or region
31
- */
32
- currentRegion: AddressRegion;
29
+ /**
30
+ * Current country or region
31
+ */
32
+ currentRegion: AddressRegion;
33
33
 
34
- /**
35
- * Current culture
36
- */
37
- currentCulture: DataTypes.CultureDefinition;
34
+ /**
35
+ * Current culture
36
+ */
37
+ currentCulture: DataTypes.CultureDefinition;
38
38
  }