@arkyn/types 2.0.1-beta.12 → 2.0.1-beta.13
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/dist/index.d.ts +5 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -13
- package/dist/server/api/ApiResponseDTO.d.ts +17 -0
- package/dist/server/api/ApiResponseDTO.d.ts.map +1 -0
- package/dist/shared/validations/validateCep.d.ts +3 -0
- package/dist/shared/validations/validateCep.d.ts.map +1 -0
- package/dist/shared/validations/validateCnpj.d.ts +3 -0
- package/dist/shared/validations/validateCnpj.d.ts.map +1 -0
- package/dist/shared/validations/validateCpf.d.ts +1 -1
- package/dist/shared/validations/validateCpf.d.ts.map +1 -1
- package/dist/shared/validations/validateDate.d.ts +1 -1
- package/dist/shared/validations/validateDate.d.ts.map +1 -1
- package/dist/shared/validations/validatePassword.d.ts +3 -0
- package/dist/shared/validations/validatePassword.d.ts.map +1 -0
- package/dist/shared/validations/validatePhone.d.ts +1 -1
- package/dist/shared/validations/validatePhone.d.ts.map +1 -1
- package/dist/shared/validations/validateRg.d.ts +3 -0
- package/dist/shared/validations/validateRg.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +6 -14
- package/src/server/api/ApiResponseDTO.ts +19 -0
- package/src/shared/validations/validateCep.ts +3 -0
- package/src/shared/validations/validateCnpj.ts +3 -0
- package/src/shared/validations/validateCpf.ts +1 -1
- package/src/shared/validations/validateDate.ts +1 -1
- package/src/shared/validations/validatePassword.ts +3 -0
- package/src/shared/validations/validatePhone.ts +1 -1
- package/src/shared/validations/validateRg.ts +3 -0
- package/dist/api/DeleteDTO.d.ts +0 -12
- package/dist/api/DeleteDTO.d.ts.map +0 -1
- package/dist/api/GetDTO.d.ts +0 -15
- package/dist/api/GetDTO.d.ts.map +0 -1
- package/dist/api/InstanceConstructorProps.d.ts +0 -11
- package/dist/api/InstanceConstructorProps.d.ts.map +0 -1
- package/dist/api/MonitoringErrorsDTO.d.ts +0 -10
- package/dist/api/MonitoringErrorsDTO.d.ts.map +0 -1
- package/dist/api/PatchDTO.d.ts +0 -11
- package/dist/api/PatchDTO.d.ts.map +0 -1
- package/dist/api/PostDTO.d.ts +0 -11
- package/dist/api/PostDTO.d.ts.map +0 -1
- package/dist/api/PostDTO.js +0 -1
- package/dist/api/PutDTO.d.ts +0 -11
- package/dist/api/PutDTO.d.ts.map +0 -1
- package/dist/api/PutDTO.js +0 -1
- package/dist/api/config/InboxFlowDTO.d.ts +0 -6
- package/dist/api/config/InboxFlowDTO.d.ts.map +0 -1
- package/dist/api/config/InboxFlowDTO.js +0 -1
- package/dist/api/config/RedisDTO.d.ts +0 -7
- package/dist/api/config/RedisDTO.d.ts.map +0 -1
- package/dist/api/config/RedisDTO.js +0 -1
- package/dist/api/config/ResponseDTO.d.ts +0 -8
- package/dist/api/config/ResponseDTO.d.ts.map +0 -1
- package/dist/api/config/ResponseDTO.js +0 -1
- package/dist/server/httpResponse.d.ts +0 -22
- package/dist/server/httpResponse.d.ts.map +0 -1
- package/dist/server/httpResponse.js +0 -1
- package/src/api/DeleteDTO.ts +0 -18
- package/src/api/GetDTO.ts +0 -23
- package/src/api/InstanceConstructorProps.ts +0 -14
- package/src/api/MonitoringErrorsDTO.ts +0 -12
- package/src/api/PatchDTO.ts +0 -22
- package/src/api/PostDTO.ts +0 -22
- package/src/api/PutDTO.ts +0 -22
- package/src/api/config/InboxFlowDTO.ts +0 -6
- package/src/api/config/RedisDTO.ts +0 -7
- package/src/api/config/ResponseDTO.ts +0 -8
- package/src/server/httpResponse.ts +0 -19
- /package/dist/{api/DeleteDTO.js → server/api/ApiResponseDTO.js} +0 -0
- /package/dist/{api/GetDTO.js → shared/validations/validateCep.js} +0 -0
- /package/dist/{api/InstanceConstructorProps.js → shared/validations/validateCnpj.js} +0 -0
- /package/dist/{api/MonitoringErrorsDTO.js → shared/validations/validatePassword.js} +0 -0
- /package/dist/{api/PatchDTO.js → shared/validations/validateRg.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -1,13 +1,3 @@
|
|
1
|
-
export * from "./api/config/InboxFlowDTO";
|
2
|
-
export * from "./api/config/RedisDTO";
|
3
|
-
export * from "./api/config/ResponseDTO";
|
4
|
-
export * from "./api/DeleteDTO";
|
5
|
-
export * from "./api/GetDTO";
|
6
|
-
export * from "./api/InstanceConstructorProps";
|
7
|
-
export * from "./api/MonitoringErrorsDTO";
|
8
|
-
export * from "./api/PatchDTO";
|
9
|
-
export * from "./api/PostDTO";
|
10
|
-
export * from "./api/PutDTO";
|
11
1
|
export * from "./components/AlertProps";
|
12
2
|
export * from "./components/AudioUploadProps";
|
13
3
|
export * from "./components/BadgeProps";
|
@@ -45,7 +35,7 @@ export * from "./components/TooltipProps";
|
|
45
35
|
export * from "./hooks/Drawer";
|
46
36
|
export * from "./hooks/Modal";
|
47
37
|
export * from "./hooks/Toast";
|
48
|
-
export * from "./server/
|
38
|
+
export * from "./server/api/ApiResponseDTO";
|
49
39
|
export * from "./server/services/decodeRequestBody";
|
50
40
|
export * from "./server/services/formParse";
|
51
41
|
export * from "./server/services/getScopedParams";
|
@@ -66,7 +56,11 @@ export * from "./shared/services/calculateCardInstallment";
|
|
66
56
|
export * from "./shared/services/maskSensitiveData";
|
67
57
|
export * from "./shared/services/removeCurrencySymbols";
|
68
58
|
export * from "./shared/services/truncateLargeFields";
|
59
|
+
export * from "./shared/validations/validateCep";
|
60
|
+
export * from "./shared/validations/validateCnpj";
|
69
61
|
export * from "./shared/validations/validateCpf";
|
70
62
|
export * from "./shared/validations/validateDate";
|
71
63
|
export * from "./shared/validations/validatePhone";
|
64
|
+
export * from "./shared/validations/validateRg";
|
65
|
+
export * from "./shared/validations/validatePassword";
|
72
66
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,6BAA6B,CAAC;AAE5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAG/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,2CAA2C,CAAC;AAE1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC"}
|
package/dist/index.js
CHANGED
@@ -1,14 +1,3 @@
|
|
1
|
-
// Api
|
2
|
-
export * from "./api/config/InboxFlowDTO";
|
3
|
-
export * from "./api/config/RedisDTO";
|
4
|
-
export * from "./api/config/ResponseDTO";
|
5
|
-
export * from "./api/DeleteDTO";
|
6
|
-
export * from "./api/GetDTO";
|
7
|
-
export * from "./api/InstanceConstructorProps";
|
8
|
-
export * from "./api/MonitoringErrorsDTO";
|
9
|
-
export * from "./api/PatchDTO";
|
10
|
-
export * from "./api/PostDTO";
|
11
|
-
export * from "./api/PutDTO";
|
12
1
|
// Components
|
13
2
|
export * from "./components/AlertProps";
|
14
3
|
export * from "./components/AudioUploadProps";
|
@@ -48,8 +37,8 @@ export * from "./components/TooltipProps";
|
|
48
37
|
export * from "./hooks/Drawer";
|
49
38
|
export * from "./hooks/Modal";
|
50
39
|
export * from "./hooks/Toast";
|
51
|
-
//
|
52
|
-
export * from "./server/
|
40
|
+
// server
|
41
|
+
export * from "./server/api/ApiResponseDTO";
|
53
42
|
export * from "./server/services/decodeRequestBody";
|
54
43
|
export * from "./server/services/formParse";
|
55
44
|
export * from "./server/services/getScopedParams";
|
@@ -71,6 +60,10 @@ export * from "./shared/services/calculateCardInstallment";
|
|
71
60
|
export * from "./shared/services/maskSensitiveData";
|
72
61
|
export * from "./shared/services/removeCurrencySymbols";
|
73
62
|
export * from "./shared/services/truncateLargeFields";
|
63
|
+
export * from "./shared/validations/validateCep";
|
64
|
+
export * from "./shared/validations/validateCnpj";
|
74
65
|
export * from "./shared/validations/validateCpf";
|
75
66
|
export * from "./shared/validations/validateDate";
|
76
67
|
export * from "./shared/validations/validatePhone";
|
68
|
+
export * from "./shared/validations/validateRg";
|
69
|
+
export * from "./shared/validations/validatePassword";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
type ApiSuccessResponse<T = any> = {
|
2
|
+
success: true;
|
3
|
+
status: number;
|
4
|
+
message: string;
|
5
|
+
response: T;
|
6
|
+
cause: null;
|
7
|
+
};
|
8
|
+
type ApiFailedResponse = {
|
9
|
+
success: false;
|
10
|
+
status: number;
|
11
|
+
message: string;
|
12
|
+
response: any;
|
13
|
+
cause: string | Error | null;
|
14
|
+
};
|
15
|
+
type ApiResponseDTO<T = any> = ApiSuccessResponse<T> | ApiFailedResponse;
|
16
|
+
export type { ApiResponseDTO };
|
17
|
+
//# sourceMappingURL=ApiResponseDTO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ApiResponseDTO.d.ts","sourceRoot":"","sources":["../../../src/server/api/ApiResponseDTO.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI;IACjC,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,CAAC;IACZ,KAAK,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,KAAK,cAAc,CAAC,CAAC,GAAG,GAAG,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC;AAEzE,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validateCep.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validateCep.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;AAEvD,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validateCnpj.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validateCnpj.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;AAEzD,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validateCpf.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validateCpf.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"validateCpf.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validateCpf.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;AAEvD,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
@@ -3,6 +3,6 @@ type ValidateDateConfig = {
|
|
3
3
|
minYear?: number;
|
4
4
|
maxYear?: number;
|
5
5
|
};
|
6
|
-
type ValidateDateFunction = (
|
6
|
+
type ValidateDateFunction = (rawDate: string, config?: ValidateDateConfig) => boolean;
|
7
7
|
export type { ValidateDateFunction };
|
8
8
|
//# sourceMappingURL=validateDate.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validateDate.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validateDate.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG,CAC1B,
|
1
|
+
{"version":3,"file":"validateDate.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validateDate.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG,CAC1B,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,kBAAkB,KACxB,OAAO,CAAC;AAEb,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validatePassword.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validatePassword.ts"],"names":[],"mappings":"AAAA,KAAK,wBAAwB,GAAG,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;AAEjE,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validatePhone.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validatePhone.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"validatePhone.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validatePhone.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;AAE3D,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validateRg.d.ts","sourceRoot":"","sources":["../../../src/shared/validations/validateRg.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;AAErD,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -1,15 +1,3 @@
|
|
1
|
-
// Api
|
2
|
-
export * from "./api/config/InboxFlowDTO";
|
3
|
-
export * from "./api/config/RedisDTO";
|
4
|
-
export * from "./api/config/ResponseDTO";
|
5
|
-
export * from "./api/DeleteDTO";
|
6
|
-
export * from "./api/GetDTO";
|
7
|
-
export * from "./api/InstanceConstructorProps";
|
8
|
-
export * from "./api/MonitoringErrorsDTO";
|
9
|
-
export * from "./api/PatchDTO";
|
10
|
-
export * from "./api/PostDTO";
|
11
|
-
export * from "./api/PutDTO";
|
12
|
-
|
13
1
|
// Components
|
14
2
|
export * from "./components/AlertProps";
|
15
3
|
export * from "./components/AudioUploadProps";
|
@@ -51,8 +39,8 @@ export * from "./hooks/Drawer";
|
|
51
39
|
export * from "./hooks/Modal";
|
52
40
|
export * from "./hooks/Toast";
|
53
41
|
|
54
|
-
//
|
55
|
-
export * from "./server/
|
42
|
+
// server
|
43
|
+
export * from "./server/api/ApiResponseDTO";
|
56
44
|
|
57
45
|
export * from "./server/services/decodeRequestBody";
|
58
46
|
export * from "./server/services/formParse";
|
@@ -79,6 +67,10 @@ export * from "./shared/services/maskSensitiveData";
|
|
79
67
|
export * from "./shared/services/removeCurrencySymbols";
|
80
68
|
export * from "./shared/services/truncateLargeFields";
|
81
69
|
|
70
|
+
export * from "./shared/validations/validateCep";
|
71
|
+
export * from "./shared/validations/validateCnpj";
|
82
72
|
export * from "./shared/validations/validateCpf";
|
83
73
|
export * from "./shared/validations/validateDate";
|
84
74
|
export * from "./shared/validations/validatePhone";
|
75
|
+
export * from "./shared/validations/validateRg";
|
76
|
+
export * from "./shared/validations/validatePassword";
|
@@ -0,0 +1,19 @@
|
|
1
|
+
type ApiSuccessResponse<T = any> = {
|
2
|
+
success: true;
|
3
|
+
status: number;
|
4
|
+
message: string;
|
5
|
+
response: T;
|
6
|
+
cause: null;
|
7
|
+
};
|
8
|
+
|
9
|
+
type ApiFailedResponse = {
|
10
|
+
success: false;
|
11
|
+
status: number;
|
12
|
+
message: string;
|
13
|
+
response: any;
|
14
|
+
cause: string | Error | null;
|
15
|
+
};
|
16
|
+
|
17
|
+
type ApiResponseDTO<T = any> = ApiSuccessResponse<T> | ApiFailedResponse;
|
18
|
+
|
19
|
+
export type { ApiResponseDTO };
|
package/dist/api/DeleteDTO.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
3
|
-
type ConfigProps = {
|
4
|
-
headers?: RequestInit["headers"];
|
5
|
-
body?: any;
|
6
|
-
inbox_flow?: InboxFlowDTO;
|
7
|
-
token?: string;
|
8
|
-
};
|
9
|
-
type DeleteDTO = (url: string, config: ConfigProps) => Promise<ResponseDTO>;
|
10
|
-
type InstanceDeleteDTO = (url: string, config?: ConfigProps) => Promise<ResponseDTO>;
|
11
|
-
export type { DeleteDTO, InstanceDeleteDTO };
|
12
|
-
//# sourceMappingURL=DeleteDTO.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DeleteDTO.d.ts","sourceRoot":"","sources":["../../src/api/DeleteDTO.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;AAE5E,KAAK,iBAAiB,GAAG,CACvB,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/api/GetDTO.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { RedisDTO } from "./config/RedisDTO";
|
3
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
4
|
-
type ConfigProps = {
|
5
|
-
headers?: RequestInit["headers"];
|
6
|
-
token?: string;
|
7
|
-
cached?: boolean;
|
8
|
-
cached_type?: "url" | "url-token";
|
9
|
-
inbox_flow?: InboxFlowDTO;
|
10
|
-
redis_config?: RedisDTO;
|
11
|
-
};
|
12
|
-
type GetDTO = (url: string, config: ConfigProps) => Promise<ResponseDTO>;
|
13
|
-
type InstanceGetDTO = (url: string, config?: Omit<ConfigProps, "inbox_flow" | "redis_config">) => Promise<ResponseDTO>;
|
14
|
-
export type { GetDTO, InstanceGetDTO };
|
15
|
-
//# sourceMappingURL=GetDTO.d.ts.map
|
package/dist/api/GetDTO.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GetDTO.d.ts","sourceRoot":"","sources":["../../src/api/GetDTO.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IAElC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,YAAY,CAAC,EAAE,QAAQ,CAAC;CACzB,CAAC;AAEF,KAAK,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;AAEzE,KAAK,cAAc,GAAG,CACpB,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,cAAc,CAAC,KACtD,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { RedisDTO } from "./config/RedisDTO";
|
3
|
-
type InstanceConstructorProps = {
|
4
|
-
base_url?: string;
|
5
|
-
cached?: boolean;
|
6
|
-
cached_type?: "url" | "url-token";
|
7
|
-
inbox_flow?: InboxFlowDTO;
|
8
|
-
redis_config?: RedisDTO;
|
9
|
-
};
|
10
|
-
export type { InstanceConstructorProps };
|
11
|
-
//# sourceMappingURL=InstanceConstructorProps.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"InstanceConstructorProps.d.ts","sourceRoot":"","sources":["../../src/api/InstanceConstructorProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IAElC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,YAAY,CAAC,EAAE,QAAQ,CAAC;CACzB,CAAC;AAEF,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { Params } from "@remix-run/react";
|
2
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
3
|
-
type ConfigProps = {
|
4
|
-
request: Request;
|
5
|
-
params: Params;
|
6
|
-
inbox_flow: InboxFlowDTO;
|
7
|
-
};
|
8
|
-
type MonitoringErrorsDTO = (error: any, config: ConfigProps) => Promise<void>;
|
9
|
-
export type { MonitoringErrorsDTO };
|
10
|
-
//# sourceMappingURL=MonitoringErrorsDTO.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"MonitoringErrorsDTO.d.ts","sourceRoot":"","sources":["../../src/api/MonitoringErrorsDTO.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,YAAY,CAAC;CAC1B,CAAC;AAEF,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE9E,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
package/dist/api/PatchDTO.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
3
|
-
type ConfigProps = {
|
4
|
-
headers?: RequestInit["headers"];
|
5
|
-
inbox_flow?: InboxFlowDTO;
|
6
|
-
token?: string;
|
7
|
-
};
|
8
|
-
type PatchDTO = (url: string, data: any, config: ConfigProps) => Promise<ResponseDTO>;
|
9
|
-
type InstancePatchDTO = (url: string, data: any, config?: ConfigProps) => Promise<ResponseDTO>;
|
10
|
-
export type { PatchDTO, InstancePatchDTO };
|
11
|
-
//# sourceMappingURL=PatchDTO.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PatchDTO.d.ts","sourceRoot":"","sources":["../../src/api/PatchDTO.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,QAAQ,GAAG,CACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,KAAK,gBAAgB,GAAG,CACtB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC"}
|
package/dist/api/PostDTO.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
3
|
-
type ConfigProps = {
|
4
|
-
headers?: RequestInit["headers"];
|
5
|
-
inbox_flow?: InboxFlowDTO;
|
6
|
-
token?: string;
|
7
|
-
};
|
8
|
-
type PostDTO = (url: string, data: any, config: ConfigProps) => Promise<ResponseDTO>;
|
9
|
-
type InstancePostDTO = (url: string, data: any, config?: ConfigProps) => Promise<ResponseDTO>;
|
10
|
-
export type { PostDTO, InstancePostDTO };
|
11
|
-
//# sourceMappingURL=PostDTO.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PostDTO.d.ts","sourceRoot":"","sources":["../../src/api/PostDTO.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,OAAO,GAAG,CACb,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,KAAK,eAAe,GAAG,CACrB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/api/PostDTO.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/dist/api/PutDTO.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
3
|
-
type ConfigProps = {
|
4
|
-
headers?: RequestInit["headers"];
|
5
|
-
inbox_flow?: InboxFlowDTO;
|
6
|
-
token?: string;
|
7
|
-
};
|
8
|
-
type PutDTO = (url: string, data: any, config: ConfigProps) => Promise<ResponseDTO>;
|
9
|
-
type InstancePutDTO = (url: string, data: any, config?: ConfigProps) => Promise<ResponseDTO>;
|
10
|
-
export type { PutDTO, InstancePutDTO };
|
11
|
-
//# sourceMappingURL=PutDTO.d.ts.map
|
package/dist/api/PutDTO.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PutDTO.d.ts","sourceRoot":"","sources":["../../src/api/PutDTO.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,MAAM,GAAG,CACZ,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,KAAK,cAAc,GAAG,CACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/api/PutDTO.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"InboxFlowDTO.d.ts","sourceRoot":"","sources":["../../../src/api/config/InboxFlowDTO.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RedisDTO.d.ts","sourceRoot":"","sources":["../../../src/api/config/RedisDTO.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ResponseDTO.d.ts","sourceRoot":"","sources":["../../../src/api/config/ResponseDTO.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
type HttpResponse = {
|
2
|
-
status: number;
|
3
|
-
cause: Error["cause"] | null;
|
4
|
-
success: false;
|
5
|
-
name: string;
|
6
|
-
message: string;
|
7
|
-
};
|
8
|
-
type HttpDataResponse = {
|
9
|
-
success: boolean;
|
10
|
-
status: number;
|
11
|
-
fieldErrors?: {
|
12
|
-
[x: string]: string;
|
13
|
-
};
|
14
|
-
fields?: {
|
15
|
-
[x: string]: string;
|
16
|
-
};
|
17
|
-
data?: any;
|
18
|
-
name: string;
|
19
|
-
message?: string;
|
20
|
-
};
|
21
|
-
export type { HttpResponse, HttpDataResponse };
|
22
|
-
//# sourceMappingURL=httpResponse.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"httpResponse.d.ts","sourceRoot":"","sources":["../../src/server/httpResponse.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,KAAK,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACtC,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACjC,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/src/api/DeleteDTO.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
3
|
-
|
4
|
-
type ConfigProps = {
|
5
|
-
headers?: RequestInit["headers"];
|
6
|
-
body?: any;
|
7
|
-
inbox_flow?: InboxFlowDTO;
|
8
|
-
token?: string;
|
9
|
-
};
|
10
|
-
|
11
|
-
type DeleteDTO = (url: string, config: ConfigProps) => Promise<ResponseDTO>;
|
12
|
-
|
13
|
-
type InstanceDeleteDTO = (
|
14
|
-
url: string,
|
15
|
-
config?: ConfigProps
|
16
|
-
) => Promise<ResponseDTO>;
|
17
|
-
|
18
|
-
export type { DeleteDTO, InstanceDeleteDTO };
|
package/src/api/GetDTO.ts
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { RedisDTO } from "./config/RedisDTO";
|
3
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
4
|
-
|
5
|
-
type ConfigProps = {
|
6
|
-
headers?: RequestInit["headers"];
|
7
|
-
token?: string;
|
8
|
-
|
9
|
-
cached?: boolean;
|
10
|
-
cached_type?: "url" | "url-token";
|
11
|
-
|
12
|
-
inbox_flow?: InboxFlowDTO;
|
13
|
-
redis_config?: RedisDTO;
|
14
|
-
};
|
15
|
-
|
16
|
-
type GetDTO = (url: string, config: ConfigProps) => Promise<ResponseDTO>;
|
17
|
-
|
18
|
-
type InstanceGetDTO = (
|
19
|
-
url: string,
|
20
|
-
config?: Omit<ConfigProps, "inbox_flow" | "redis_config">
|
21
|
-
) => Promise<ResponseDTO>;
|
22
|
-
|
23
|
-
export type { GetDTO, InstanceGetDTO };
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { RedisDTO } from "./config/RedisDTO";
|
3
|
-
|
4
|
-
type InstanceConstructorProps = {
|
5
|
-
base_url?: string;
|
6
|
-
|
7
|
-
cached?: boolean;
|
8
|
-
cached_type?: "url" | "url-token";
|
9
|
-
|
10
|
-
inbox_flow?: InboxFlowDTO;
|
11
|
-
redis_config?: RedisDTO;
|
12
|
-
};
|
13
|
-
|
14
|
-
export type { InstanceConstructorProps };
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { Params } from "@remix-run/react";
|
2
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
3
|
-
|
4
|
-
type ConfigProps = {
|
5
|
-
request: Request;
|
6
|
-
params: Params;
|
7
|
-
inbox_flow: InboxFlowDTO;
|
8
|
-
};
|
9
|
-
|
10
|
-
type MonitoringErrorsDTO = (error: any, config: ConfigProps) => Promise<void>;
|
11
|
-
|
12
|
-
export type { MonitoringErrorsDTO };
|
package/src/api/PatchDTO.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
3
|
-
|
4
|
-
type ConfigProps = {
|
5
|
-
headers?: RequestInit["headers"];
|
6
|
-
inbox_flow?: InboxFlowDTO;
|
7
|
-
token?: string;
|
8
|
-
};
|
9
|
-
|
10
|
-
type PatchDTO = (
|
11
|
-
url: string,
|
12
|
-
data: any,
|
13
|
-
config: ConfigProps
|
14
|
-
) => Promise<ResponseDTO>;
|
15
|
-
|
16
|
-
type InstancePatchDTO = (
|
17
|
-
url: string,
|
18
|
-
data: any,
|
19
|
-
config?: ConfigProps
|
20
|
-
) => Promise<ResponseDTO>;
|
21
|
-
|
22
|
-
export type { PatchDTO, InstancePatchDTO };
|
package/src/api/PostDTO.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
3
|
-
|
4
|
-
type ConfigProps = {
|
5
|
-
headers?: RequestInit["headers"];
|
6
|
-
inbox_flow?: InboxFlowDTO;
|
7
|
-
token?: string;
|
8
|
-
};
|
9
|
-
|
10
|
-
type PostDTO = (
|
11
|
-
url: string,
|
12
|
-
data: any,
|
13
|
-
config: ConfigProps
|
14
|
-
) => Promise<ResponseDTO>;
|
15
|
-
|
16
|
-
type InstancePostDTO = (
|
17
|
-
url: string,
|
18
|
-
data: any,
|
19
|
-
config?: ConfigProps
|
20
|
-
) => Promise<ResponseDTO>;
|
21
|
-
|
22
|
-
export type { PostDTO, InstancePostDTO };
|
package/src/api/PutDTO.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import type { InboxFlowDTO } from "./config/InboxFlowDTO";
|
2
|
-
import type { ResponseDTO } from "./config/ResponseDTO";
|
3
|
-
|
4
|
-
type ConfigProps = {
|
5
|
-
headers?: RequestInit["headers"];
|
6
|
-
inbox_flow?: InboxFlowDTO;
|
7
|
-
token?: string;
|
8
|
-
};
|
9
|
-
|
10
|
-
type PutDTO = (
|
11
|
-
url: string,
|
12
|
-
data: any,
|
13
|
-
config: ConfigProps
|
14
|
-
) => Promise<ResponseDTO>;
|
15
|
-
|
16
|
-
type InstancePutDTO = (
|
17
|
-
url: string,
|
18
|
-
data: any,
|
19
|
-
config?: ConfigProps
|
20
|
-
) => Promise<ResponseDTO>;
|
21
|
-
|
22
|
-
export type { PutDTO, InstancePutDTO };
|
@@ -1,19 +0,0 @@
|
|
1
|
-
type HttpResponse = {
|
2
|
-
status: number;
|
3
|
-
cause: Error["cause"] | null;
|
4
|
-
success: false;
|
5
|
-
name: string;
|
6
|
-
message: string;
|
7
|
-
};
|
8
|
-
|
9
|
-
type HttpDataResponse = {
|
10
|
-
success: boolean;
|
11
|
-
status: number;
|
12
|
-
fieldErrors?: { [x: string]: string };
|
13
|
-
fields?: { [x: string]: string };
|
14
|
-
data?: any;
|
15
|
-
name: string;
|
16
|
-
message?: string;
|
17
|
-
};
|
18
|
-
|
19
|
-
export type { HttpResponse, HttpDataResponse };
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|