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 +43 -1
- package/dist/main/const-type.d.ts +16 -2
- package/dist/main/const-value.d.ts +6 -0
- package/dist/main/const-value.js +7 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
|
46
|
+
order?: "ASC" | "DESC";
|
|
47
|
+
searchTerm?: string;
|
|
34
48
|
};
|
|
35
49
|
export type CountryType = {
|
|
36
50
|
code: string;
|
package/dist/main/const-value.js
CHANGED