dff-util 1.4.3 → 1.4.4

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
@@ -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) | [RequestQueryType](#request-and-response-types) | [RequestByIdType](#request-and-response-types) | [SessionUser](#session-user-sessionuser) | [SessionInfo](#session-information-sessioninfo) |
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
 
@@ -1213,9 +1213,15 @@ export type KeyValueType = {
1213
1213
 
1214
1214
  export type JsonValueType = string | number | boolean | null | JsonValueType[] | { [key: string]: JsonValueType };
1215
1215
  export type RequestBodyType = Record<string, JsonValueType>;
1216
- export type RequestQueryType = Record<string, string | number | boolean | null>;
1216
+ export type RequestParamType = Record<string, string | number | boolean | null>;
1217
1217
  export type RequestByIdType = {
1218
- id: string | number;
1218
+ id: string;
1219
+ };
1220
+
1221
+ export type PubSubEventType = {
1222
+ id: string;
1223
+ name?: string;
1224
+ raw?: string;
1219
1225
  };
1220
1226
 
1221
1227
  ```
@@ -50,9 +50,14 @@ export type JsonValueType = string | number | boolean | null | JsonValueType[] |
50
50
  [key: string]: JsonValueType;
51
51
  };
52
52
  export type RequestBodyType = Record<string, JsonValueType>;
53
- export type RequestQueryType = Record<string, string | number | boolean | null>;
53
+ export type RequestParamType = Record<string, string | number | boolean | null>;
54
54
  export type RequestByIdType = {
55
- id: string | number;
55
+ id: string;
56
+ };
57
+ export type PubSubEventType = {
58
+ id: string;
59
+ name?: string;
60
+ raw?: string;
56
61
  };
57
62
  export type CountryType = {
58
63
  code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {