dff-util 1.2.2 → 1.2.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 +2 -2
- package/dist/main/const-type.d.ts +1 -1
- package/dist/main/const-value.js +1 -1
- package/dist/main/http.d.ts +6 -0
- package/dist/main/http.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ ConstValue = {
|
|
|
162
162
|
"Oct",
|
|
163
163
|
"Nov",
|
|
164
164
|
"Dec",
|
|
165
|
-
]
|
|
165
|
+
],
|
|
166
166
|
|
|
167
167
|
};
|
|
168
168
|
```
|
|
@@ -363,7 +363,7 @@ export type SearchByType = {
|
|
|
363
363
|
searchTerm?: string;
|
|
364
364
|
};
|
|
365
365
|
|
|
366
|
-
export type
|
|
366
|
+
export type PaginationResponseType = {
|
|
367
367
|
status?: string | number;
|
|
368
368
|
data?: any;
|
|
369
369
|
error?: any;
|
package/dist/main/const-value.js
CHANGED
package/dist/main/http.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ export declare const BaseHeaders: {
|
|
|
14
14
|
authorization: null;
|
|
15
15
|
'x-request-id': null;
|
|
16
16
|
};
|
|
17
|
+
export declare const HttpMethods: {
|
|
18
|
+
GET: string;
|
|
19
|
+
POST: string;
|
|
20
|
+
PUT: string;
|
|
21
|
+
DELETE: string;
|
|
22
|
+
};
|
|
17
23
|
export declare class Http {
|
|
18
24
|
static API_BASE_URL: string;
|
|
19
25
|
static TOKEN_URL: string;
|
package/dist/main/http.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Http = exports.BaseHeaders = exports.HttpHeaders = exports.RespType = void 0;
|
|
12
|
+
exports.Http = exports.HttpMethods = exports.BaseHeaders = exports.HttpHeaders = exports.RespType = void 0;
|
|
13
13
|
const util_1 = require("./util");
|
|
14
14
|
var RespType;
|
|
15
15
|
(function (RespType) {
|
|
@@ -28,6 +28,12 @@ exports.BaseHeaders = {
|
|
|
28
28
|
authorization: null,
|
|
29
29
|
'x-request-id': null,
|
|
30
30
|
};
|
|
31
|
+
exports.HttpMethods = {
|
|
32
|
+
GET: "GET",
|
|
33
|
+
POST: "POST",
|
|
34
|
+
PUT: "PUT",
|
|
35
|
+
DELETE: "DELETE"
|
|
36
|
+
};
|
|
31
37
|
class Http {
|
|
32
38
|
static RespData(response_1) {
|
|
33
39
|
return __awaiter(this, arguments, void 0, function* (response, type = RespType.JSON) {
|