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 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 ResponseLimitType = {
366
+ export type PaginationResponseType = {
367
367
  status?: string | number;
368
368
  data?: any;
369
369
  error?: any;
@@ -30,7 +30,7 @@ export type SearchByType = {
30
30
  order?: "ASC" | "DESC";
31
31
  searchTerm?: string;
32
32
  };
33
- export type ResponseLimitType = {
33
+ export type PaginationResponseType = {
34
34
  status?: string | number;
35
35
  data?: any;
36
36
  error?: any;
@@ -61,5 +61,5 @@ exports.ConstValue = {
61
61
  "Oct",
62
62
  "Nov",
63
63
  "Dec",
64
- ]
64
+ ],
65
65
  };
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {