dff-util 1.4.3 → 1.4.5
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.
- package/README.md +26 -5
- package/dist/main/const-keys.d.ts +1 -0
- package/dist/main/const-keys.js +1 -0
- package/dist/main/const-type.d.ts +19 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ Select a topic below to view its reference and examples.
|
|
|
45
45
|
| :--- | :--- | :--- | :--- | :--- |
|
|
46
46
|
| [LangDirType](#common-types) | [OrderType](#common-types) | [ThemeType](#common-types) | [UnixTimestampType](#common-types) | [OptionType](#common-types) |
|
|
47
47
|
| [FileType](#common-types) | [ResponseType](#request-and-response-types) | [SearchType](#request-and-response-types) | [KeyValueType](#request-and-response-types) | [JsonValueType](#request-and-response-types) |
|
|
48
|
-
| [RequestBodyType](#request-and-response-types) | [
|
|
48
|
+
| [RequestBodyType](#request-and-response-types) | [RequestParamType](#request-and-response-types) | [RequestByIdType](#request-and-response-types) | [SessionUser](#session-user-sessionuser) | [SessionInfo](#session-information-sessioninfo) |
|
|
49
49
|
|
|
50
50
|
**[Constants and validation](#constants-and-validation)**
|
|
51
51
|
|
|
@@ -1211,13 +1211,33 @@ export type KeyValueType = {
|
|
|
1211
1211
|
[key: string]: any;
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
|
-
|
|
1215
|
-
export type RequestBodyType = Record<string, JsonValueType>;
|
|
1216
|
-
export type RequestQueryType = Record<string, string | number | boolean | null>;
|
|
1214
|
+
|
|
1217
1215
|
export type RequestByIdType = {
|
|
1218
|
-
id: string
|
|
1216
|
+
id: string;
|
|
1219
1217
|
};
|
|
1220
1218
|
|
|
1219
|
+
export type RequestByNameType = {
|
|
1220
|
+
name: string;
|
|
1221
|
+
};
|
|
1222
|
+
|
|
1223
|
+
export type RequestByTypeType = {
|
|
1224
|
+
type: string;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
export type RequestByCodeType = {
|
|
1228
|
+
code: string;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
export type PubSubEventType = {
|
|
1232
|
+
id: string;
|
|
1233
|
+
name?: string;
|
|
1234
|
+
raw?: string;
|
|
1235
|
+
};
|
|
1236
|
+
|
|
1237
|
+
export type JsonValueType = string | number | boolean | null | JsonValueType[] | { [key: string]: JsonValueType };
|
|
1238
|
+
export type RequestBodyType = Record<string, JsonValueType>;
|
|
1239
|
+
export type RequestParamType = Record<string, string | number | boolean | null>;
|
|
1240
|
+
|
|
1221
1241
|
```
|
|
1222
1242
|
|
|
1223
1243
|
### Session user (SessionUser)
|
|
@@ -1250,6 +1270,7 @@ export type SessionInfo = {
|
|
|
1250
1270
|
iat?: number;
|
|
1251
1271
|
exp?: number;
|
|
1252
1272
|
key: string;
|
|
1273
|
+
createdAt: string;
|
|
1253
1274
|
};
|
|
1254
1275
|
```
|
|
1255
1276
|
|
package/dist/main/const-keys.js
CHANGED
|
@@ -104,6 +104,7 @@ exports.ConstKeys = {
|
|
|
104
104
|
HELLO: 'HELLO',
|
|
105
105
|
THANK_YOU: 'THANK_YOU',
|
|
106
106
|
TRY_AGAIN: 'TRY_AGAIN',
|
|
107
|
+
NOT_STARTED: 'NOT_STARTED',
|
|
107
108
|
UNDER_MAINTENANCE: 'UNDER_MAINTENANCE',
|
|
108
109
|
FEATURE_COMING_SOON: 'FEATURE_COMING_SOON',
|
|
109
110
|
CONTACT_SUPPORT: 'CONTACT_SUPPORT',
|
|
@@ -11,6 +11,7 @@ export type SessionInfo = {
|
|
|
11
11
|
iat?: number;
|
|
12
12
|
exp?: number;
|
|
13
13
|
key: string;
|
|
14
|
+
createdAt: string;
|
|
14
15
|
};
|
|
15
16
|
export type SessionUser = {
|
|
16
17
|
id: string;
|
|
@@ -46,14 +47,28 @@ export type SearchType = {
|
|
|
46
47
|
export type KeyValueType = {
|
|
47
48
|
[key: string]: any;
|
|
48
49
|
};
|
|
50
|
+
export type RequestByIdType = {
|
|
51
|
+
id: string;
|
|
52
|
+
};
|
|
53
|
+
export type RequestByNameType = {
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
export type RequestByTypeType = {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
export type RequestByCodeType = {
|
|
60
|
+
code: string;
|
|
61
|
+
};
|
|
62
|
+
export type PubSubEventType = {
|
|
63
|
+
id: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
raw?: string;
|
|
66
|
+
};
|
|
49
67
|
export type JsonValueType = string | number | boolean | null | JsonValueType[] | {
|
|
50
68
|
[key: string]: JsonValueType;
|
|
51
69
|
};
|
|
52
70
|
export type RequestBodyType = Record<string, JsonValueType>;
|
|
53
|
-
export type
|
|
54
|
-
export type RequestByIdType = {
|
|
55
|
-
id: string | number;
|
|
56
|
-
};
|
|
71
|
+
export type RequestParamType = Record<string, string | number | boolean | null>;
|
|
57
72
|
export type CountryType = {
|
|
58
73
|
code: string;
|
|
59
74
|
name: string;
|