dff-util 1.3.6 → 1.3.7

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
@@ -279,6 +279,12 @@ export type CountryType = {
279
279
  };
280
280
  ```
281
281
 
282
+ ### List of country and Locaion
283
+ ```
284
+ const countriesList = countries;
285
+
286
+ countries: CountryType[] = [ ..., ..., ... ];
287
+ ```
282
288
  ## LangDirType, OrderType, ThemeType, UnixTimestampType, OptionType, FileType
283
289
  ```
284
290
  export type LangDirType = "ltr" | "rtl";
@@ -335,10 +341,11 @@ export type ResponseType = {
335
341
  total?: number;
336
342
  skip?: number;
337
343
  limit?: number;
338
- };
339
-
340
- export type KeyValueType = {
341
- [key: string]: any;
344
+ meta?: {
345
+ traceId?: string | number;
346
+ timestamp?: string | number;
347
+ duration?: number;
348
+ };
342
349
  }
343
350
 
344
351
  export type SearchType = {
@@ -351,6 +358,17 @@ export type SearchType = {
351
358
  filters?: string;
352
359
  };
353
360
 
361
+ export type KeyValueType = {
362
+ [key: string]: any;
363
+ }
364
+
365
+ export type JsonValueType = string | number | boolean | null | JsonValueType[] | { [key: string]: JsonValueType };
366
+ export type RequestBodyType = Record<string, JsonValueType>;
367
+ export type RequestQueryType = Record<string, string | number | boolean | null>;
368
+ export type RequestByIdType = {
369
+ id: string | number;
370
+ };
371
+
354
372
  ```
355
373
 
356
374
 
@@ -26,6 +26,11 @@ export type ResponseType = {
26
26
  total?: number;
27
27
  skip?: number;
28
28
  limit?: number;
29
+ meta?: {
30
+ traceId?: string | number;
31
+ timestamp?: string | number;
32
+ duration?: number;
33
+ };
29
34
  };
30
35
  export type SearchType = {
31
36
  limit?: number;
@@ -39,6 +44,14 @@ export type SearchType = {
39
44
  export type KeyValueType = {
40
45
  [key: string]: any;
41
46
  };
47
+ export type JsonValueType = string | number | boolean | null | JsonValueType[] | {
48
+ [key: string]: JsonValueType;
49
+ };
50
+ export type RequestBodyType = Record<string, JsonValueType>;
51
+ export type RequestQueryType = Record<string, string | number | boolean | null>;
52
+ export type RequestByIdType = {
53
+ id: string | number;
54
+ };
42
55
  export type CountryType = {
43
56
  code: string;
44
57
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {