dff-util 1.2.1 → 1.2.2
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 +34 -0
- package/dist/main/const-type.d.ts +16 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -348,6 +348,40 @@ export type LangCountryType = {
|
|
|
348
348
|
};
|
|
349
349
|
```
|
|
350
350
|
|
|
351
|
+
## Types
|
|
352
|
+
```
|
|
353
|
+
export type ResponseType = {
|
|
354
|
+
status?: string | number;
|
|
355
|
+
data?: any;
|
|
356
|
+
error?: any;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
export type SearchByType = {
|
|
360
|
+
query?: Record<string, any>;
|
|
361
|
+
orderBy?: string;
|
|
362
|
+
order?: "ASC" | "DESC";
|
|
363
|
+
searchTerm?: string;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
export type ResponseLimitType = {
|
|
367
|
+
status?: string | number;
|
|
368
|
+
data?: any;
|
|
369
|
+
error?: any;
|
|
370
|
+
count?: number;
|
|
371
|
+
skip?: number;
|
|
372
|
+
limit?: number;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
export type SearchByLimitType = {
|
|
376
|
+
limit: number;
|
|
377
|
+
skip: number;
|
|
378
|
+
query?: Record<string, any>;
|
|
379
|
+
orderBy?: string;
|
|
380
|
+
order?: "ASC" | "DESC";
|
|
381
|
+
searchTerm?: string;
|
|
382
|
+
};
|
|
383
|
+
```
|
|
384
|
+
|
|
351
385
|
|
|
352
386
|
|
|
353
387
|
## 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 ResponseLimitType = {
|
|
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;
|