@arkyn/types 2.2.14 → 3.0.1-beta.0

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.
Files changed (134) hide show
  1. package/dist/components/BreadcrumbProps.d.ts +1 -1
  2. package/dist/components/BreadcrumbProps.d.ts.map +1 -1
  3. package/dist/components/SelectProps.d.ts +1 -0
  4. package/dist/components/SelectProps.d.ts.map +1 -1
  5. package/dist/index.d.ts +0 -31
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +0 -33
  8. package/package.json +1 -1
  9. package/src/components/SelectProps.ts +1 -0
  10. package/src/index.ts +0 -39
  11. package/dist/server/api/ApiResponseDTO.d.ts +0 -17
  12. package/dist/server/api/ApiResponseDTO.d.ts.map +0 -1
  13. package/dist/server/api/ApiResponseDTO.js +0 -1
  14. package/dist/server/services/decodeRequestBody.d.ts +0 -3
  15. package/dist/server/services/decodeRequestBody.d.ts.map +0 -1
  16. package/dist/server/services/decodeRequestBody.js +0 -1
  17. package/dist/server/services/formParse.d.ts +0 -20
  18. package/dist/server/services/formParse.d.ts.map +0 -1
  19. package/dist/server/services/formParse.js +0 -1
  20. package/dist/server/services/getScopedParams.d.ts +0 -3
  21. package/dist/server/services/getScopedParams.d.ts.map +0 -1
  22. package/dist/server/services/getScopedParams.js +0 -1
  23. package/dist/server/services/sendFileToS3.d.ts +0 -19
  24. package/dist/server/services/sendFileToS3.d.ts.map +0 -1
  25. package/dist/server/services/sendFileToS3.js +0 -1
  26. package/dist/shared/formats/formatDate.d.ts +0 -5
  27. package/dist/shared/formats/formatDate.d.ts.map +0 -1
  28. package/dist/shared/formats/formatDate.js +0 -1
  29. package/dist/shared/formats/formatJsonObject.d.ts +0 -3
  30. package/dist/shared/formats/formatJsonObject.d.ts.map +0 -1
  31. package/dist/shared/formats/formatJsonObject.js +0 -1
  32. package/dist/shared/formats/formatJsonString.d.ts +0 -3
  33. package/dist/shared/formats/formatJsonString.d.ts.map +0 -1
  34. package/dist/shared/formats/formatJsonString.js +0 -1
  35. package/dist/shared/formats/formatToCep.d.ts +0 -3
  36. package/dist/shared/formats/formatToCep.d.ts.map +0 -1
  37. package/dist/shared/formats/formatToCep.js +0 -1
  38. package/dist/shared/formats/formatToCnpj.d.ts +0 -3
  39. package/dist/shared/formats/formatToCnpj.d.ts.map +0 -1
  40. package/dist/shared/formats/formatToCnpj.js +0 -1
  41. package/dist/shared/formats/formatToCpf.d.ts +0 -3
  42. package/dist/shared/formats/formatToCpf.d.ts.map +0 -1
  43. package/dist/shared/formats/formatToCpf.js +0 -1
  44. package/dist/shared/formats/formatToCpfCnpj.d.ts +0 -3
  45. package/dist/shared/formats/formatToCpfCnpj.d.ts.map +0 -1
  46. package/dist/shared/formats/formatToCpfCnpj.js +0 -1
  47. package/dist/shared/formats/formatToCurrency.d.ts +0 -8
  48. package/dist/shared/formats/formatToCurrency.d.ts.map +0 -1
  49. package/dist/shared/formats/formatToCurrency.js +0 -1
  50. package/dist/shared/formats/formatToDate.d.ts +0 -5
  51. package/dist/shared/formats/formatToDate.d.ts.map +0 -1
  52. package/dist/shared/formats/formatToDate.js +0 -1
  53. package/dist/shared/formats/formatToEllipsis.d.ts +0 -3
  54. package/dist/shared/formats/formatToEllipsis.d.ts.map +0 -1
  55. package/dist/shared/formats/formatToEllipsis.js +0 -1
  56. package/dist/shared/formats/formatToHiddenDigits.d.ts +0 -6
  57. package/dist/shared/formats/formatToHiddenDigits.d.ts.map +0 -1
  58. package/dist/shared/formats/formatToHiddenDigits.js +0 -1
  59. package/dist/shared/formats/formatToPhone.d.ts +0 -3
  60. package/dist/shared/formats/formatToPhone.d.ts.map +0 -1
  61. package/dist/shared/formats/formatToPhone.js +0 -1
  62. package/dist/shared/generators/generateColorByString.d.ts +0 -3
  63. package/dist/shared/generators/generateColorByString.d.ts.map +0 -1
  64. package/dist/shared/generators/generateColorByString.js +0 -1
  65. package/dist/shared/services/calculateCardInstallment.d.ts +0 -10
  66. package/dist/shared/services/calculateCardInstallment.d.ts.map +0 -1
  67. package/dist/shared/services/calculateCardInstallment.js +0 -1
  68. package/dist/shared/services/ensureQuotes.d.ts +0 -3
  69. package/dist/shared/services/ensureQuotes.d.ts.map +0 -1
  70. package/dist/shared/services/ensureQuotes.js +0 -1
  71. package/dist/shared/services/maskSensitiveData.d.ts +0 -3
  72. package/dist/shared/services/maskSensitiveData.d.ts.map +0 -1
  73. package/dist/shared/services/maskSensitiveData.js +0 -1
  74. package/dist/shared/services/removeCurrencySymbols.d.ts +0 -3
  75. package/dist/shared/services/removeCurrencySymbols.d.ts.map +0 -1
  76. package/dist/shared/services/removeCurrencySymbols.js +0 -1
  77. package/dist/shared/services/stripHtmlTags.d.ts +0 -3
  78. package/dist/shared/services/stripHtmlTags.d.ts.map +0 -1
  79. package/dist/shared/services/stripHtmlTags.js +0 -1
  80. package/dist/shared/services/truncateLargeFields.d.ts +0 -3
  81. package/dist/shared/services/truncateLargeFields.d.ts.map +0 -1
  82. package/dist/shared/services/truncateLargeFields.js +0 -1
  83. package/dist/shared/validations/validateCep.d.ts +0 -3
  84. package/dist/shared/validations/validateCep.d.ts.map +0 -1
  85. package/dist/shared/validations/validateCep.js +0 -1
  86. package/dist/shared/validations/validateCnpj.d.ts +0 -3
  87. package/dist/shared/validations/validateCnpj.d.ts.map +0 -1
  88. package/dist/shared/validations/validateCnpj.js +0 -1
  89. package/dist/shared/validations/validateCpf.d.ts +0 -3
  90. package/dist/shared/validations/validateCpf.d.ts.map +0 -1
  91. package/dist/shared/validations/validateCpf.js +0 -1
  92. package/dist/shared/validations/validateDate.d.ts +0 -8
  93. package/dist/shared/validations/validateDate.d.ts.map +0 -1
  94. package/dist/shared/validations/validateDate.js +0 -1
  95. package/dist/shared/validations/validatePassword.d.ts +0 -3
  96. package/dist/shared/validations/validatePassword.d.ts.map +0 -1
  97. package/dist/shared/validations/validatePassword.js +0 -1
  98. package/dist/shared/validations/validatePhone.d.ts +0 -3
  99. package/dist/shared/validations/validatePhone.d.ts.map +0 -1
  100. package/dist/shared/validations/validatePhone.js +0 -1
  101. package/dist/shared/validations/validateRg.d.ts +0 -3
  102. package/dist/shared/validations/validateRg.d.ts.map +0 -1
  103. package/dist/shared/validations/validateRg.js +0 -1
  104. package/src/server/api/ApiResponseDTO.ts +0 -19
  105. package/src/server/services/decodeRequestBody.ts +0 -3
  106. package/src/server/services/formParse.ts +0 -20
  107. package/src/server/services/getScopedParams.ts +0 -6
  108. package/src/server/services/sendFileToS3.ts +0 -25
  109. package/src/shared/formats/formatDate.ts +0 -10
  110. package/src/shared/formats/formatJsonObject.ts +0 -3
  111. package/src/shared/formats/formatJsonString.ts +0 -3
  112. package/src/shared/formats/formatToCep.ts +0 -3
  113. package/src/shared/formats/formatToCnpj.ts +0 -3
  114. package/src/shared/formats/formatToCpf.ts +0 -3
  115. package/src/shared/formats/formatToCpfCnpj.ts +0 -3
  116. package/src/shared/formats/formatToCurrency.ts +0 -15
  117. package/src/shared/formats/formatToDate.ts +0 -9
  118. package/src/shared/formats/formatToEllipsis.ts +0 -3
  119. package/src/shared/formats/formatToHiddenDigits.ts +0 -6
  120. package/src/shared/formats/formatToPhone.ts +0 -3
  121. package/src/shared/generators/generateColorByString.ts +0 -3
  122. package/src/shared/services/calculateCardInstallment.ts +0 -10
  123. package/src/shared/services/ensureQuotes.ts +0 -3
  124. package/src/shared/services/maskSensitiveData.ts +0 -6
  125. package/src/shared/services/removeCurrencySymbols.ts +0 -3
  126. package/src/shared/services/stripHtmlTags.ts +0 -3
  127. package/src/shared/services/truncateLargeFields.ts +0 -6
  128. package/src/shared/validations/validateCep.ts +0 -3
  129. package/src/shared/validations/validateCnpj.ts +0 -3
  130. package/src/shared/validations/validateCpf.ts +0 -3
  131. package/src/shared/validations/validateDate.ts +0 -12
  132. package/src/shared/validations/validatePassword.ts +0 -3
  133. package/src/shared/validations/validatePhone.ts +0 -3
  134. package/src/shared/validations/validateRg.ts +0 -3
@@ -1,4 +1,4 @@
1
- import type { LinkProps } from "react-router";
1
+ import type { LinkProps } from "@remix-run/react";
2
2
  import type { HTMLAttributes } from "react";
3
3
  type BreadcrumbLinkProps = LinkProps & {
4
4
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"BreadcrumbProps.d.ts","sourceRoot":"","sources":["../../src/components/BreadcrumbProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,mBAAmB,GAAG,SAAS,GAAG;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,wBAAwB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAE5D,YAAY,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"BreadcrumbProps.d.ts","sourceRoot":"","sources":["../../src/components/BreadcrumbProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,mBAAmB,GAAG,SAAS,GAAG;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,wBAAwB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAE5D,YAAY,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,CAAC"}
@@ -13,6 +13,7 @@ type SelectProps = {
13
13
  name: string;
14
14
  value?: string;
15
15
  defaultValue?: string;
16
+ searchPlaceholder?: string;
16
17
  optionMaxHeight?: number;
17
18
  options: {
18
19
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectProps.d.ts","sourceRoot":"","sources":["../../src/components/SelectProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAA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;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAE5C,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,QAAQ,CAAC,EAAE,UAAU,CAAC;IAEtB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC9D,GAAG,IAAI,CACN,mBAAmB,CAAC,gBAAgB,CAAC,EACnC,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,cAAc,GACd,OAAO,GACP,UAAU,GACV,UAAU,CACb,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -35,35 +35,4 @@ export * from "./components/TooltipProps";
35
35
  export * from "./hooks/Drawer";
36
36
  export * from "./hooks/Modal";
37
37
  export * from "./hooks/Toast";
38
- export * from "./server/api/ApiResponseDTO";
39
- export * from "./server/services/decodeRequestBody";
40
- export * from "./server/services/formParse";
41
- export * from "./server/services/getScopedParams";
42
- export * from "./server/services/sendFileToS3";
43
- export * from "./shared/formats/formatDate";
44
- export * from "./shared/formats/formatJsonObject";
45
- export * from "./shared/formats/formatJsonString";
46
- export * from "./shared/formats/formatToCep";
47
- export * from "./shared/formats/formatToCnpj";
48
- export * from "./shared/formats/formatToCpf";
49
- export * from "./shared/formats/formatToCpfCnpj";
50
- export * from "./shared/formats/formatToCurrency";
51
- export * from "./shared/formats/formatToDate";
52
- export * from "./shared/formats/formatToEllipsis";
53
- export * from "./shared/formats/formatToHiddenDigits";
54
- export * from "./shared/formats/formatToPhone";
55
- export * from "./shared/generators/generateColorByString";
56
- export * from "./shared/services/calculateCardInstallment";
57
- export * from "./shared/services/ensureQuotes";
58
- export * from "./shared/services/maskSensitiveData";
59
- export * from "./shared/services/removeCurrencySymbols";
60
- export * from "./shared/services/stripHtmlTags";
61
- export * from "./shared/services/truncateLargeFields";
62
- export * from "./shared/validations/validateCep";
63
- export * from "./shared/validations/validateCnpj";
64
- export * from "./shared/validations/validateCpf";
65
- export * from "./shared/validations/validateDate";
66
- export * from "./shared/validations/validatePassword";
67
- export * from "./shared/validations/validatePhone";
68
- export * from "./shared/validations/validateRg";
69
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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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AC;AAC9B,cAAc,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -36,36 +36,3 @@ export * from "./components/TooltipProps";
36
36
  export * from "./hooks/Drawer";
37
37
  export * from "./hooks/Modal";
38
38
  export * from "./hooks/Toast";
39
- // server
40
- export * from "./server/api/ApiResponseDTO";
41
- export * from "./server/services/decodeRequestBody";
42
- export * from "./server/services/formParse";
43
- export * from "./server/services/getScopedParams";
44
- export * from "./server/services/sendFileToS3";
45
- // shared
46
- export * from "./shared/formats/formatDate";
47
- export * from "./shared/formats/formatJsonObject";
48
- export * from "./shared/formats/formatJsonString";
49
- export * from "./shared/formats/formatToCep";
50
- export * from "./shared/formats/formatToCnpj";
51
- export * from "./shared/formats/formatToCpf";
52
- export * from "./shared/formats/formatToCpfCnpj";
53
- export * from "./shared/formats/formatToCurrency";
54
- export * from "./shared/formats/formatToDate";
55
- export * from "./shared/formats/formatToEllipsis";
56
- export * from "./shared/formats/formatToHiddenDigits";
57
- export * from "./shared/formats/formatToPhone";
58
- export * from "./shared/generators/generateColorByString";
59
- export * from "./shared/services/calculateCardInstallment";
60
- export * from "./shared/services/ensureQuotes";
61
- export * from "./shared/services/maskSensitiveData";
62
- export * from "./shared/services/removeCurrencySymbols";
63
- export * from "./shared/services/stripHtmlTags";
64
- export * from "./shared/services/truncateLargeFields";
65
- export * from "./shared/validations/validateCep";
66
- export * from "./shared/validations/validateCnpj";
67
- export * from "./shared/validations/validateCpf";
68
- export * from "./shared/validations/validateDate";
69
- export * from "./shared/validations/validatePassword";
70
- export * from "./shared/validations/validatePhone";
71
- export * from "./shared/validations/validateRg";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/types",
3
- "version": "2.2.14",
3
+ "version": "3.0.1-beta.0",
4
4
  "main": "./dist/bundle.js",
5
5
  "module": "./src/index.ts",
6
6
  "type": "module",
@@ -18,6 +18,7 @@ type SelectProps = {
18
18
 
19
19
  value?: string;
20
20
  defaultValue?: string;
21
+ searchPlaceholder?: string;
21
22
 
22
23
  optionMaxHeight?: number;
23
24
 
package/src/index.ts CHANGED
@@ -36,42 +36,3 @@ export * from "./components/TooltipProps";
36
36
  export * from "./hooks/Drawer";
37
37
  export * from "./hooks/Modal";
38
38
  export * from "./hooks/Toast";
39
-
40
- // server
41
- export * from "./server/api/ApiResponseDTO";
42
-
43
- export * from "./server/services/decodeRequestBody";
44
- export * from "./server/services/formParse";
45
- export * from "./server/services/getScopedParams";
46
- export * from "./server/services/sendFileToS3";
47
-
48
- // shared
49
- export * from "./shared/formats/formatDate";
50
- export * from "./shared/formats/formatJsonObject";
51
- export * from "./shared/formats/formatJsonString";
52
- export * from "./shared/formats/formatToCep";
53
- export * from "./shared/formats/formatToCnpj";
54
- export * from "./shared/formats/formatToCpf";
55
- export * from "./shared/formats/formatToCpfCnpj";
56
- export * from "./shared/formats/formatToCurrency";
57
- export * from "./shared/formats/formatToDate";
58
- export * from "./shared/formats/formatToEllipsis";
59
- export * from "./shared/formats/formatToHiddenDigits";
60
- export * from "./shared/formats/formatToPhone";
61
-
62
- export * from "./shared/generators/generateColorByString";
63
-
64
- export * from "./shared/services/calculateCardInstallment";
65
- export * from "./shared/services/ensureQuotes";
66
- export * from "./shared/services/maskSensitiveData";
67
- export * from "./shared/services/removeCurrencySymbols";
68
- export * from "./shared/services/stripHtmlTags";
69
- export * from "./shared/services/truncateLargeFields";
70
-
71
- export * from "./shared/validations/validateCep";
72
- export * from "./shared/validations/validateCnpj";
73
- export * from "./shared/validations/validateCpf";
74
- export * from "./shared/validations/validateDate";
75
- export * from "./shared/validations/validatePassword";
76
- export * from "./shared/validations/validatePhone";
77
- export * from "./shared/validations/validateRg";
@@ -1,17 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type DecodeRequestBodyFunction = (request: Request) => Promise<any>;
2
- export type { DecodeRequestBodyFunction };
3
- //# sourceMappingURL=decodeRequestBody.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decodeRequestBody.d.ts","sourceRoot":"","sources":["../../../src/server/services/decodeRequestBody.ts"],"names":[],"mappings":"AAAA,KAAK,yBAAyB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAEpE,YAAY,EAAE,yBAAyB,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=formParse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formParse.d.ts","sourceRoot":"","sources":["../../../src/server/services/formParse.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,3 +0,0 @@
1
- type GetScopedParamsFunction = (request: Request, scope?: string) => URLSearchParams;
2
- export type { GetScopedParamsFunction };
3
- //# sourceMappingURL=getScopedParams.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getScopedParams.d.ts","sourceRoot":"","sources":["../../../src/server/services/getScopedParams.ts"],"names":[],"mappings":"AAAA,KAAK,uBAAuB,GAAG,CAC7B,OAAO,EAAE,OAAO,EAChB,KAAK,CAAC,EAAE,MAAM,KACX,eAAe,CAAC;AAErB,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- type AwsConfig = {
2
- AWS_REGION: string;
3
- AWS_ACCESS_KEY_ID: string;
4
- AWS_SECRET_ACCESS_KEY: string;
5
- AWS_S3_BUCKET: string;
6
- };
7
- type Config = {
8
- maxPartSize?: number;
9
- fileName?: string;
10
- reduceImageQuality?: number;
11
- validateImageSize?: boolean;
12
- validateImageMessage?: string;
13
- };
14
- type SendFileToS3Function = (request: Request, awsConfig: AwsConfig, config?: Config) => Promise<{
15
- url?: string;
16
- error?: string;
17
- }>;
18
- export type { AwsConfig, SendFileToS3Function };
19
- //# sourceMappingURL=sendFileToS3.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sendFileToS3.d.ts","sourceRoot":"","sources":["../../../src/server/services/sendFileToS3.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,KAAK,oBAAoB,GAAG,CAC1B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,MAAM,CAAC,EAAE,MAAM,KACZ,OAAO,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,YAAY,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- type InputFormatTypes = "brazilianDate" | "isoDate" | "timestamp";
2
- type FormatDateFunction = (date: string[], // [date: string, time?: string]
3
- inputFormat: InputFormatTypes, outputFormat: string, timezone?: number) => string;
4
- export type { FormatDateFunction };
5
- //# sourceMappingURL=formatDate.d.ts.map
@@ -1 +0,0 @@
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,EAAE,EAAE,gCAAgC;AAChD,WAAW,EAAE,gBAAgB,EAC7B,YAAY,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,KACd,MAAM,CAAC;AAEZ,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type FormatJsonObjectFunction = (jsonString: any, identLevel: number) => string;
2
- export type { FormatJsonObjectFunction };
3
- //# sourceMappingURL=formatJsonObject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatJsonObject.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatJsonObject.ts"],"names":[],"mappings":"AAAA,KAAK,wBAAwB,GAAG,CAAC,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;AAEhF,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type FormatJsonStringFunction = (jsonString: string) => string;
2
- export type { FormatJsonStringFunction };
3
- //# sourceMappingURL=formatJsonString.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatJsonString.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatJsonString.ts"],"names":[],"mappings":"AAAA,KAAK,wBAAwB,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;AAE/D,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type FormatToCepFunction = (value: string) => string;
2
- export type { FormatToCepFunction };
3
- //# sourceMappingURL=formatToCep.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatToCep.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToCep.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAErD,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type FormatToCnpjFunction = (value: string) => string;
2
- export type { FormatToCnpjFunction };
3
- //# sourceMappingURL=formatToCnpj.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatToCnpj.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToCnpj.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAEtD,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type FormatToCpfFunction = (value: string) => string;
2
- export type { FormatToCpfFunction };
3
- //# sourceMappingURL=formatToCpf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatToCpf.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToCpf.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAErD,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type FormatToCpfCnpjFunction = (value: string) => string;
2
- export type { FormatToCpfCnpjFunction };
3
- //# sourceMappingURL=formatToCpfCnpj.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatToCpfCnpj.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToCpfCnpj.ts"],"names":[],"mappings":"AAAA,KAAK,uBAAuB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAEzD,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import { countryCurrencies } from "@arkyn/templates";
2
- type Currencies = keyof typeof countryCurrencies;
3
- type Config = {
4
- showPrefix?: boolean;
5
- };
6
- type FormatToCurrency = (value: number, currency: Currencies, config?: Config) => string;
7
- export type { FormatToCurrency };
8
- //# sourceMappingURL=formatToCurrency.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatToCurrency.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToCurrency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,KAAK,UAAU,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEjD,KAAK,MAAM,GAAG;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,KAAK,gBAAgB,GAAG,CACtB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,UAAU,EACpB,MAAM,CAAC,EAAE,MAAM,KACZ,MAAM,CAAC;AAEZ,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- import { countryCurrencies } from "@arkyn/templates";
@@ -1,5 +0,0 @@
1
- type InputFormatTypes = "brazilianDate" | "timestamp" | "isoDate";
2
- type FormatToDateFunction = (date: string[], // [date: string, time?: string]
3
- inputFormat: InputFormatTypes, timezone?: number) => Date;
4
- export type { FormatToDateFunction };
5
- //# sourceMappingURL=formatToDate.d.ts.map
@@ -1 +0,0 @@
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,MAAM,EAAE,EAAE,gCAAgC;AAChD,WAAW,EAAE,gBAAgB,EAC7B,QAAQ,CAAC,EAAE,MAAM,KACd,IAAI,CAAC;AAEV,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type FormatToEllipsisFunction = (value: string, maxLength: number) => string;
2
- export type { FormatToEllipsisFunction };
3
- //# sourceMappingURL=formatToEllipsis.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatToEllipsis.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToEllipsis.ts"],"names":[],"mappings":"AAAA,KAAK,wBAAwB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;AAE7E,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- type FormatToHiddenDigitsFunction = (value: string, options: {
2
- range?: number | [number, number];
3
- hider?: string;
4
- }) => string;
5
- export type { FormatToHiddenDigitsFunction };
6
- //# sourceMappingURL=formatToHiddenDigits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatToHiddenDigits.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToHiddenDigits.ts"],"names":[],"mappings":"AAAA,KAAK,4BAA4B,GAAG,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAC3D,MAAM,CAAC;AAEZ,YAAY,EAAE,4BAA4B,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type FormatToPhoneFunction = (prop: string) => string;
2
- export type { FormatToPhoneFunction };
3
- //# sourceMappingURL=formatToPhone.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatToPhone.d.ts","sourceRoot":"","sources":["../../../src/shared/formats/formatToPhone.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AAEtD,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type GenerateColorByStringFunction = (prop: string) => string;
2
- export type { GenerateColorByStringFunction };
3
- //# sourceMappingURL=generateColorByString.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generateColorByString.d.ts","sourceRoot":"","sources":["../../../src/shared/generators/generateColorByString.ts"],"names":[],"mappings":"AAAA,KAAK,6BAA6B,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AAE9D,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- type CalculateCardInstallmentFunction = (props: {
2
- cashPrice: number;
3
- numberInstallments: number;
4
- fees?: number;
5
- }) => {
6
- totalPrice: number;
7
- installmentPrice: number;
8
- };
9
- export type { CalculateCardInstallmentFunction };
10
- //# sourceMappingURL=calculateCardInstallment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calculateCardInstallment.d.ts","sourceRoot":"","sources":["../../../src/shared/services/calculateCardInstallment.ts"],"names":[],"mappings":"AAAA,KAAK,gCAAgC,GAAG,CAAC,KAAK,EAAE;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,KAAK;IACJ,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,YAAY,EAAE,gCAAgC,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type EnsureQuotesFunction = (rawValue: string) => string;
2
- export type { EnsureQuotesFunction };
3
- //# sourceMappingURL=ensureQuotes.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type MaskSensitiveDataFunction = (jsonString: string, sensitiveKeys?: string[]) => string;
2
- export type { MaskSensitiveDataFunction };
3
- //# sourceMappingURL=maskSensitiveData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"maskSensitiveData.d.ts","sourceRoot":"","sources":["../../../src/shared/services/maskSensitiveData.ts"],"names":[],"mappings":"AAAA,KAAK,yBAAyB,GAAG,CAC/B,UAAU,EAAE,MAAM,EAClB,aAAa,CAAC,EAAE,MAAM,EAAE,KACrB,MAAM,CAAC;AAEZ,YAAY,EAAE,yBAAyB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type RemoveCurrencySymbolsFunction = (formattedValue: string) => string;
2
- export type { RemoveCurrencySymbolsFunction };
3
- //# sourceMappingURL=removeCurrencySymbols.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeCurrencySymbols.d.ts","sourceRoot":"","sources":["../../../src/shared/services/removeCurrencySymbols.ts"],"names":[],"mappings":"AAAA,KAAK,6BAA6B,GAAG,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;AAExE,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type StripHtmlTagsFunction = (rawHtml: string) => string;
2
- export type { StripHtmlTagsFunction };
3
- //# sourceMappingURL=stripHtmlTags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stripHtmlTags.d.ts","sourceRoot":"","sources":["../../../src/shared/services/stripHtmlTags.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;AAEzD,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type TruncateLargeFieldsFunction = (jsonString: string, maxLength?: number) => string;
2
- export type { TruncateLargeFieldsFunction };
3
- //# sourceMappingURL=truncateLargeFields.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"truncateLargeFields.d.ts","sourceRoot":"","sources":["../../../src/shared/services/truncateLargeFields.ts"],"names":[],"mappings":"AAAA,KAAK,2BAA2B,GAAG,CACjC,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,KACf,MAAM,CAAC;AAEZ,YAAY,EAAE,2BAA2B,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type ValidateCepFunction = (rawCep: string) => boolean;
2
- export type { ValidateCepFunction };
3
- //# sourceMappingURL=validateCep.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type ValidateCnpjFunction = (rawCnpj: string) => boolean;
2
- export type { ValidateCnpjFunction };
3
- //# sourceMappingURL=validateCnpj.d.ts.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type ValidateCpfFunction = (rawCpf: string) => boolean;
2
- export type { ValidateCpfFunction };
3
- //# sourceMappingURL=validateCpf.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- type ValidateDateConfig = {
2
- inputFormat?: "DD/MM/YYYY" | "MM-DD-YYYY" | "YYYY-MM-DD";
3
- minYear?: number;
4
- maxYear?: number;
5
- };
6
- type ValidateDateFunction = (rawDate: string, config?: ValidateDateConfig) => boolean;
7
- export type { ValidateDateFunction };
8
- //# sourceMappingURL=validateDate.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type ValidatePasswordFunction = (rawPassword: string) => boolean;
2
- export type { ValidatePasswordFunction };
3
- //# sourceMappingURL=validatePassword.d.ts.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type ValidatePhoneFunction = (rawPhone: string) => boolean;
2
- export type { ValidatePhoneFunction };
3
- //# sourceMappingURL=validatePhone.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- type ValidateRgFunction = (rawRg: string) => boolean;
2
- export type { ValidateRgFunction };
3
- //# sourceMappingURL=validateRg.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
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 };
@@ -1,3 +0,0 @@
1
- type DecodeRequestBodyFunction = (request: Request) => Promise<any>;
2
-
3
- export type { DecodeRequestBodyFunction };
@@ -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,6 +0,0 @@
1
- type GetScopedParamsFunction = (
2
- request: Request,
3
- scope?: string
4
- ) => URLSearchParams;
5
-
6
- export type { GetScopedParamsFunction };
@@ -1,25 +0,0 @@
1
- type AwsConfig = {
2
- AWS_REGION: string;
3
- AWS_ACCESS_KEY_ID: string;
4
- AWS_SECRET_ACCESS_KEY: string;
5
- AWS_S3_BUCKET: string;
6
- };
7
-
8
- type Config = {
9
- maxPartSize?: number;
10
- fileName?: string;
11
- reduceImageQuality?: number;
12
- validateImageSize?: boolean;
13
- validateImageMessage?: string;
14
- };
15
-
16
- type SendFileToS3Function = (
17
- request: Request,
18
- awsConfig: AwsConfig,
19
- config?: Config
20
- ) => Promise<{
21
- url?: string;
22
- error?: string;
23
- }>;
24
-
25
- export type { AwsConfig, SendFileToS3Function };
@@ -1,10 +0,0 @@
1
- type InputFormatTypes = "brazilianDate" | "isoDate" | "timestamp";
2
-
3
- type FormatDateFunction = (
4
- date: string[], // [date: string, time?: string]
5
- inputFormat: InputFormatTypes,
6
- outputFormat: string,
7
- timezone?: number
8
- ) => string;
9
-
10
- export type { FormatDateFunction };
@@ -1,3 +0,0 @@
1
- type FormatJsonObjectFunction = (jsonString: any, identLevel: number) => string;
2
-
3
- export type { FormatJsonObjectFunction };
@@ -1,3 +0,0 @@
1
- type FormatJsonStringFunction = (jsonString: string) => string;
2
-
3
- export type { FormatJsonStringFunction };
@@ -1,3 +0,0 @@
1
- type FormatToCepFunction = (value: string) => string;
2
-
3
- export type { FormatToCepFunction };
@@ -1,3 +0,0 @@
1
- type FormatToCnpjFunction = (value: string) => string;
2
-
3
- export type { FormatToCnpjFunction };
@@ -1,3 +0,0 @@
1
- type FormatToCpfFunction = (value: string) => string;
2
-
3
- export type { FormatToCpfFunction };
@@ -1,3 +0,0 @@
1
- type FormatToCpfCnpjFunction = (value: string) => string;
2
-
3
- export type { FormatToCpfCnpjFunction };
@@ -1,15 +0,0 @@
1
- import { countryCurrencies } from "@arkyn/templates";
2
-
3
- type Currencies = keyof typeof countryCurrencies;
4
-
5
- type Config = {
6
- showPrefix?: boolean;
7
- };
8
-
9
- type FormatToCurrency = (
10
- value: number,
11
- currency: Currencies,
12
- config?: Config
13
- ) => string;
14
-
15
- export type { FormatToCurrency };
@@ -1,9 +0,0 @@
1
- type InputFormatTypes = "brazilianDate" | "timestamp" | "isoDate";
2
-
3
- type FormatToDateFunction = (
4
- date: string[], // [date: string, time?: string]
5
- inputFormat: InputFormatTypes,
6
- timezone?: number
7
- ) => Date;
8
-
9
- export type { FormatToDateFunction };
@@ -1,3 +0,0 @@
1
- type FormatToEllipsisFunction = (value: string, maxLength: number) => string;
2
-
3
- export type { FormatToEllipsisFunction };
@@ -1,6 +0,0 @@
1
- type FormatToHiddenDigitsFunction = (
2
- value: string,
3
- options: { range?: number | [number, number]; hider?: string }
4
- ) => string;
5
-
6
- export type { FormatToHiddenDigitsFunction };
@@ -1,3 +0,0 @@
1
- type FormatToPhoneFunction = (prop: string) => string;
2
-
3
- export type { FormatToPhoneFunction };
@@ -1,3 +0,0 @@
1
- type GenerateColorByStringFunction = (prop: string) => string;
2
-
3
- export type { GenerateColorByStringFunction };
@@ -1,10 +0,0 @@
1
- type CalculateCardInstallmentFunction = (props: {
2
- cashPrice: number;
3
- numberInstallments: number;
4
- fees?: number;
5
- }) => {
6
- totalPrice: number;
7
- installmentPrice: number;
8
- };
9
-
10
- export type { CalculateCardInstallmentFunction };
@@ -1,3 +0,0 @@
1
- type EnsureQuotesFunction = (rawValue: string) => string;
2
-
3
- export type { EnsureQuotesFunction };
@@ -1,6 +0,0 @@
1
- type MaskSensitiveDataFunction = (
2
- jsonString: string,
3
- sensitiveKeys?: string[]
4
- ) => string;
5
-
6
- export type { MaskSensitiveDataFunction };
@@ -1,3 +0,0 @@
1
- type RemoveCurrencySymbolsFunction = (formattedValue: string) => string;
2
-
3
- export type { RemoveCurrencySymbolsFunction };
@@ -1,3 +0,0 @@
1
- type StripHtmlTagsFunction = (rawHtml: string) => string;
2
-
3
- export type { StripHtmlTagsFunction };
@@ -1,6 +0,0 @@
1
- type TruncateLargeFieldsFunction = (
2
- jsonString: string,
3
- maxLength?: number
4
- ) => string;
5
-
6
- export type { TruncateLargeFieldsFunction };
@@ -1,3 +0,0 @@
1
- type ValidateCepFunction = (rawCep: string) => boolean;
2
-
3
- export type { ValidateCepFunction };
@@ -1,3 +0,0 @@
1
- type ValidateCnpjFunction = (rawCnpj: string) => boolean;
2
-
3
- export type { ValidateCnpjFunction };
@@ -1,3 +0,0 @@
1
- type ValidateCpfFunction = (rawCpf: string) => boolean;
2
-
3
- export type { ValidateCpfFunction };
@@ -1,12 +0,0 @@
1
- type ValidateDateConfig = {
2
- inputFormat?: "DD/MM/YYYY" | "MM-DD-YYYY" | "YYYY-MM-DD";
3
- minYear?: number;
4
- maxYear?: number;
5
- };
6
-
7
- type ValidateDateFunction = (
8
- rawDate: string,
9
- config?: ValidateDateConfig
10
- ) => boolean;
11
-
12
- export type { ValidateDateFunction };
@@ -1,3 +0,0 @@
1
- type ValidatePasswordFunction = (rawPassword: string) => boolean;
2
-
3
- export type { ValidatePasswordFunction };
@@ -1,3 +0,0 @@
1
- type ValidatePhoneFunction = (rawPhone: string) => boolean;
2
-
3
- export type { ValidatePhoneFunction };
@@ -1,3 +0,0 @@
1
- type ValidateRgFunction = (rawRg: string) => boolean;
2
-
3
- export type { ValidateRgFunction };