dff-util 1.4.4 → 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 CHANGED
@@ -1211,19 +1211,33 @@ export type KeyValueType = {
1211
1211
  [key: string]: any;
1212
1212
  }
1213
1213
 
1214
- export type JsonValueType = string | number | boolean | null | JsonValueType[] | { [key: string]: JsonValueType };
1215
- export type RequestBodyType = Record<string, JsonValueType>;
1216
- export type RequestParamType = Record<string, string | number | boolean | null>;
1214
+
1217
1215
  export type RequestByIdType = {
1218
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
+
1221
1231
  export type PubSubEventType = {
1222
1232
  id: string;
1223
1233
  name?: string;
1224
1234
  raw?: string;
1225
1235
  };
1226
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
+
1227
1241
  ```
1228
1242
 
1229
1243
  ### Session user (SessionUser)
@@ -1256,6 +1270,7 @@ export type SessionInfo = {
1256
1270
  iat?: number;
1257
1271
  exp?: number;
1258
1272
  key: string;
1273
+ createdAt: string;
1259
1274
  };
1260
1275
  ```
1261
1276
 
@@ -94,6 +94,7 @@ export declare const ConstKeys: {
94
94
  HELLO: string;
95
95
  THANK_YOU: string;
96
96
  TRY_AGAIN: string;
97
+ NOT_STARTED: string;
97
98
  UNDER_MAINTENANCE: string;
98
99
  FEATURE_COMING_SOON: string;
99
100
  CONTACT_SUPPORT: string;
@@ -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,19 +47,28 @@ export type SearchType = {
46
47
  export type KeyValueType = {
47
48
  [key: string]: any;
48
49
  };
49
- export type JsonValueType = string | number | boolean | null | JsonValueType[] | {
50
- [key: string]: JsonValueType;
51
- };
52
- export type RequestBodyType = Record<string, JsonValueType>;
53
- export type RequestParamType = Record<string, string | number | boolean | null>;
54
50
  export type RequestByIdType = {
55
51
  id: string;
56
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
+ };
57
62
  export type PubSubEventType = {
58
63
  id: string;
59
64
  name?: string;
60
65
  raw?: string;
61
66
  };
67
+ export type JsonValueType = string | number | boolean | null | JsonValueType[] | {
68
+ [key: string]: JsonValueType;
69
+ };
70
+ export type RequestBodyType = Record<string, JsonValueType>;
71
+ export type RequestParamType = Record<string, string | number | boolean | null>;
62
72
  export type CountryType = {
63
73
  code: string;
64
74
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {