@arkyn/types 2.0.4 → 2.1.1
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 +3 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -15
- package/dist/shared/formats/formatDate.d.ts +1 -1
- package/dist/shared/formats/formatDate.d.ts.map +1 -1
- package/dist/shared/formats/formatToDate.d.ts +4 -0
- package/dist/shared/formats/formatToDate.d.ts.map +1 -0
- package/dist/shared/services/ensureQuotes.d.ts +3 -0
- package/dist/shared/services/ensureQuotes.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +4 -19
- package/src/shared/formats/formatDate.ts +1 -2
- package/src/shared/formats/formatToDate.ts +9 -0
- package/src/shared/services/ensureQuotes.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/InstanceConstructorProps.js +0 -1
- package/dist/api/MonitoringErrorsDTO.d.ts +0 -10
- package/dist/api/MonitoringErrorsDTO.d.ts.map +0 -1
- package/dist/api/MonitoringErrorsDTO.js +0 -1
- package/dist/api/PatchDTO.d.ts +0 -11
- package/dist/api/PatchDTO.d.ts.map +0 -1
- package/dist/api/PatchDTO.js +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/formParseProps.d.ts +0 -20
- package/dist/server/formParseProps.d.ts.map +0 -1
- package/dist/server/formParseProps.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/formParseProps.ts +0 -20
- package/src/server/httpResponse.ts +0 -19
- /package/dist/{api/DeleteDTO.js → shared/formats/formatToDate.js} +0 -0
- /package/dist/{api/GetDTO.js → shared/services/ensureQuotes.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,6 @@ 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/httpResponse";
|
49
38
|
export * from "./server/api/ApiResponseDTO";
|
50
39
|
export * from "./server/services/decodeRequestBody";
|
51
40
|
export * from "./server/services/formParse";
|
@@ -59,11 +48,13 @@ export * from "./shared/formats/formatToCnpj";
|
|
59
48
|
export * from "./shared/formats/formatToCpf";
|
60
49
|
export * from "./shared/formats/formatToCpfCnpj";
|
61
50
|
export * from "./shared/formats/formatToCurrency";
|
51
|
+
export * from "./shared/formats/formatToDate";
|
62
52
|
export * from "./shared/formats/formatToEllipsis";
|
63
53
|
export * from "./shared/formats/formatToHiddenDigits";
|
64
54
|
export * from "./shared/formats/formatToPhone";
|
65
55
|
export * from "./shared/generators/generateColorByString";
|
66
56
|
export * from "./shared/services/calculateCardInstallment";
|
57
|
+
export * from "./shared/services/ensureQuotes";
|
67
58
|
export * from "./shared/services/maskSensitiveData";
|
68
59
|
export * from "./shared/services/removeCurrencySymbols";
|
69
60
|
export * from "./shared/services/truncateLargeFields";
|
@@ -71,7 +62,7 @@ export * from "./shared/validations/validateCep";
|
|
71
62
|
export * from "./shared/validations/validateCnpj";
|
72
63
|
export * from "./shared/validations/validateCpf";
|
73
64
|
export * from "./shared/validations/validateDate";
|
65
|
+
export * from "./shared/validations/validatePassword";
|
74
66
|
export * from "./shared/validations/validatePhone";
|
75
67
|
export * from "./shared/validations/validateRg";
|
76
|
-
export * from "./shared/validations/validatePassword";
|
77
68
|
//# 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;AAC1C,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,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,2CAA2C,CAAC;AAE1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,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,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC"}
|
package/dist/index.js
CHANGED
@@ -1,15 +1,4 @@
|
|
1
|
-
//
|
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
|
-
// Components
|
1
|
+
// components
|
13
2
|
export * from "./components/AlertProps";
|
14
3
|
export * from "./components/AudioUploadProps";
|
15
4
|
export * from "./components/BadgeProps";
|
@@ -44,12 +33,10 @@ export * from "./components/TabProps";
|
|
44
33
|
export * from "./components/TextareaProps";
|
45
34
|
export * from "./components/ToastProps";
|
46
35
|
export * from "./components/TooltipProps";
|
47
|
-
// Hooks
|
48
36
|
export * from "./hooks/Drawer";
|
49
37
|
export * from "./hooks/Modal";
|
50
38
|
export * from "./hooks/Toast";
|
51
39
|
// server
|
52
|
-
export * from "./server/httpResponse";
|
53
40
|
export * from "./server/api/ApiResponseDTO";
|
54
41
|
export * from "./server/services/decodeRequestBody";
|
55
42
|
export * from "./server/services/formParse";
|
@@ -64,11 +51,13 @@ export * from "./shared/formats/formatToCnpj";
|
|
64
51
|
export * from "./shared/formats/formatToCpf";
|
65
52
|
export * from "./shared/formats/formatToCpfCnpj";
|
66
53
|
export * from "./shared/formats/formatToCurrency";
|
54
|
+
export * from "./shared/formats/formatToDate";
|
67
55
|
export * from "./shared/formats/formatToEllipsis";
|
68
56
|
export * from "./shared/formats/formatToHiddenDigits";
|
69
57
|
export * from "./shared/formats/formatToPhone";
|
70
58
|
export * from "./shared/generators/generateColorByString";
|
71
59
|
export * from "./shared/services/calculateCardInstallment";
|
60
|
+
export * from "./shared/services/ensureQuotes";
|
72
61
|
export * from "./shared/services/maskSensitiveData";
|
73
62
|
export * from "./shared/services/removeCurrencySymbols";
|
74
63
|
export * from "./shared/services/truncateLargeFields";
|
@@ -76,6 +65,6 @@ export * from "./shared/validations/validateCep";
|
|
76
65
|
export * from "./shared/validations/validateCnpj";
|
77
66
|
export * from "./shared/validations/validateCpf";
|
78
67
|
export * from "./shared/validations/validateDate";
|
68
|
+
export * from "./shared/validations/validatePassword";
|
79
69
|
export * from "./shared/validations/validatePhone";
|
80
70
|
export * from "./shared/validations/validateRg";
|
81
|
-
export * from "./shared/validations/validatePassword";
|
@@ -1,4 +1,4 @@
|
|
1
1
|
type InputFormatTypes = "brazilianDate" | "isoDate" | "timestamp";
|
2
|
-
type FormatDateFunction = (date: string, time: string, inputFormat: InputFormatTypes, outputFormat: string, timezone?: number) => string;
|
2
|
+
type FormatDateFunction = (date: [date: string, time: string] | [date: string], inputFormat: InputFormatTypes, outputFormat: string, timezone?: number) => string;
|
3
3
|
export type { FormatDateFunction };
|
4
4
|
//# sourceMappingURL=formatDate.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatDate.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,WAAW,CAAC;AAElE,KAAK,kBAAkB,GAAG,CACxB,IAAI,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatDate.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,WAAW,CAAC;AAElE,KAAK,kBAAkB,GAAG,CACxB,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,EACnD,WAAW,EAAE,gBAAgB,EAC7B,YAAY,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,KACd,MAAM,CAAC;AAEZ,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
type InputFormatTypes = "brazilianDate" | "timestamp" | "isoDate";
|
2
|
+
type FormatToDateFunction = (date: [date: string, time: string] | [date: string], inputFormat: InputFormatTypes, timezone?: number) => Date;
|
3
|
+
export type { FormatToDateFunction };
|
4
|
+
//# sourceMappingURL=formatToDate.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"formatToDate.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToDate.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,eAAe,GAAG,WAAW,GAAG,SAAS,CAAC;AAElE,KAAK,oBAAoB,GAAG,CAC1B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,EACnD,WAAW,EAAE,gBAAgB,EAC7B,QAAQ,CAAC,EAAE,MAAM,KACd,IAAI,CAAC;AAEV,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ensureQuotes.d.ts","sourceRoot":"","sources":["../../../src/shared/services/ensureQuotes.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;AAEzD,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -1,16 +1,4 @@
|
|
1
|
-
//
|
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
|
-
// Components
|
1
|
+
// components
|
14
2
|
export * from "./components/AlertProps";
|
15
3
|
export * from "./components/AudioUploadProps";
|
16
4
|
export * from "./components/BadgeProps";
|
@@ -45,16 +33,11 @@ export * from "./components/TabProps";
|
|
45
33
|
export * from "./components/TextareaProps";
|
46
34
|
export * from "./components/ToastProps";
|
47
35
|
export * from "./components/TooltipProps";
|
48
|
-
|
49
|
-
// Hooks
|
50
36
|
export * from "./hooks/Drawer";
|
51
37
|
export * from "./hooks/Modal";
|
52
38
|
export * from "./hooks/Toast";
|
53
39
|
|
54
40
|
// server
|
55
|
-
|
56
|
-
export * from "./server/httpResponse";
|
57
|
-
|
58
41
|
export * from "./server/api/ApiResponseDTO";
|
59
42
|
|
60
43
|
export * from "./server/services/decodeRequestBody";
|
@@ -71,6 +54,7 @@ export * from "./shared/formats/formatToCnpj";
|
|
71
54
|
export * from "./shared/formats/formatToCpf";
|
72
55
|
export * from "./shared/formats/formatToCpfCnpj";
|
73
56
|
export * from "./shared/formats/formatToCurrency";
|
57
|
+
export * from "./shared/formats/formatToDate";
|
74
58
|
export * from "./shared/formats/formatToEllipsis";
|
75
59
|
export * from "./shared/formats/formatToHiddenDigits";
|
76
60
|
export * from "./shared/formats/formatToPhone";
|
@@ -78,6 +62,7 @@ export * from "./shared/formats/formatToPhone";
|
|
78
62
|
export * from "./shared/generators/generateColorByString";
|
79
63
|
|
80
64
|
export * from "./shared/services/calculateCardInstallment";
|
65
|
+
export * from "./shared/services/ensureQuotes";
|
81
66
|
export * from "./shared/services/maskSensitiveData";
|
82
67
|
export * from "./shared/services/removeCurrencySymbols";
|
83
68
|
export * from "./shared/services/truncateLargeFields";
|
@@ -86,6 +71,6 @@ export * from "./shared/validations/validateCep";
|
|
86
71
|
export * from "./shared/validations/validateCnpj";
|
87
72
|
export * from "./shared/validations/validateCpf";
|
88
73
|
export * from "./shared/validations/validateDate";
|
74
|
+
export * from "./shared/validations/validatePassword";
|
89
75
|
export * from "./shared/validations/validatePhone";
|
90
76
|
export * from "./shared/validations/validateRg";
|
91
|
-
export * from "./shared/validations/validatePassword";
|
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 +0,0 @@
|
|
1
|
-
export {};
|
@@ -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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
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/PatchDTO.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
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,20 +0,0 @@
|
|
1
|
-
import { Schema } from "zod";
|
2
|
-
type SuccessResponse<T extends FormParseProps> = {
|
3
|
-
success: true;
|
4
|
-
data: T[1] extends Schema<infer U> ? U : never;
|
5
|
-
};
|
6
|
-
type ErrorResponse = {
|
7
|
-
success: false;
|
8
|
-
fields: {
|
9
|
-
[x: string]: string;
|
10
|
-
};
|
11
|
-
fieldErrors: {
|
12
|
-
[x: string]: string;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
type FormParseProps = [formData: {
|
16
|
-
[k: string]: any;
|
17
|
-
}, schema: Schema];
|
18
|
-
type FormParseReturnType<T extends FormParseProps> = SuccessResponse<T> | ErrorResponse;
|
19
|
-
export type { FormParseProps, FormParseReturnType };
|
20
|
-
//# sourceMappingURL=formParseProps.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"formParseProps.d.ts","sourceRoot":"","sources":["../../src/server/formParseProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAE7B,KAAK,eAAe,CAAC,CAAC,SAAS,cAAc,IAAI;IAC/C,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;CAChD,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAChC,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC,CAAC;AAEF,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEvE,KAAK,mBAAmB,CAAC,CAAC,SAAS,cAAc,IAC7C,eAAe,CAAC,CAAC,CAAC,GAClB,aAAa,CAAC;AAElB,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
import { Schema } from "zod";
|
@@ -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,20 +0,0 @@
|
|
1
|
-
import { Schema } from "zod";
|
2
|
-
|
3
|
-
type SuccessResponse<T extends FormParseProps> = {
|
4
|
-
success: true;
|
5
|
-
data: T[1] extends Schema<infer U> ? U : never;
|
6
|
-
};
|
7
|
-
|
8
|
-
type ErrorResponse = {
|
9
|
-
success: false;
|
10
|
-
fields: { [x: string]: string };
|
11
|
-
fieldErrors: { [x: string]: string };
|
12
|
-
};
|
13
|
-
|
14
|
-
type FormParseProps = [formData: { [k: string]: any }, schema: Schema];
|
15
|
-
|
16
|
-
type FormParseReturnType<T extends FormParseProps> =
|
17
|
-
| SuccessResponse<T>
|
18
|
-
| ErrorResponse;
|
19
|
-
|
20
|
-
export type { FormParseProps, FormParseReturnType };
|
@@ -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
|