dff-util 1.2.1 → 1.2.3

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
@@ -162,7 +162,15 @@ ConstValue = {
162
162
  "Oct",
163
163
  "Nov",
164
164
  "Dec",
165
- ]
165
+ ],
166
+
167
+ HTTP_METHODS: {
168
+ GET: "GET",
169
+ POST: "POST",
170
+ PUT: "PUT",
171
+ DELETE: "DELETE"
172
+ }
173
+
166
174
 
167
175
  };
168
176
  ```
@@ -348,6 +356,40 @@ export type LangCountryType = {
348
356
  };
349
357
  ```
350
358
 
359
+ ## Types
360
+ ```
361
+ export type ResponseType = {
362
+ status?: string | number;
363
+ data?: any;
364
+ error?: any;
365
+ };
366
+
367
+ export type SearchByType = {
368
+ query?: Record<string, any>;
369
+ orderBy?: string;
370
+ order?: "ASC" | "DESC";
371
+ searchTerm?: string;
372
+ };
373
+
374
+ export type PaginationResponseType = {
375
+ status?: string | number;
376
+ data?: any;
377
+ error?: any;
378
+ count?: number;
379
+ skip?: number;
380
+ limit?: number;
381
+ };
382
+
383
+ export type SearchByLimitType = {
384
+ limit: number;
385
+ skip: number;
386
+ query?: Record<string, any>;
387
+ orderBy?: string;
388
+ order?: "ASC" | "DESC";
389
+ searchTerm?: string;
390
+ };
391
+ ```
392
+
351
393
 
352
394
 
353
395
  ## ConstMessages
@@ -23,14 +23,28 @@ export type ResponseType = {
23
23
  status?: string | number;
24
24
  data?: any;
25
25
  error?: any;
26
- total?: number;
26
+ };
27
+ export type SearchByType = {
28
+ query?: Record<string, any>;
29
+ orderBy?: string;
30
+ order?: "ASC" | "DESC";
31
+ searchTerm?: string;
32
+ };
33
+ export type PaginationResponseType = {
34
+ status?: string | number;
35
+ data?: any;
36
+ error?: any;
37
+ count?: number;
38
+ skip?: number;
39
+ limit?: number;
27
40
  };
28
41
  export type SearchByLimitType = {
29
42
  limit: number;
30
43
  skip: number;
31
44
  query?: Record<string, any>;
32
45
  orderBy?: string;
33
- order: "ASC" | "DESC";
46
+ order?: "ASC" | "DESC";
47
+ searchTerm?: string;
34
48
  };
35
49
  export type CountryType = {
36
50
  code: string;
@@ -42,4 +42,10 @@ export declare const ConstValue: {
42
42
  LIGHT: string;
43
43
  DARK: string;
44
44
  MonthNames: string[];
45
+ HTTP_METHODS: {
46
+ GET: string;
47
+ POST: string;
48
+ PUT: string;
49
+ DELETE: string;
50
+ };
45
51
  };
@@ -61,5 +61,11 @@ exports.ConstValue = {
61
61
  "Oct",
62
62
  "Nov",
63
63
  "Dec",
64
- ]
64
+ ],
65
+ HTTP_METHODS: {
66
+ GET: "GET",
67
+ POST: "POST",
68
+ PUT: "PUT",
69
+ DELETE: "DELETE"
70
+ }
65
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {