@arkyn/server 2.2.15 → 3.0.1-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api/arkynLogRequest.d.ts +55 -0
- package/dist/api/arkynLogRequest.d.ts.map +1 -0
- package/dist/api/arkynLogRequest.js +82 -0
- package/dist/api/deleteRequest.d.ts +1 -1
- package/dist/api/deleteRequest.d.ts.map +1 -1
- package/dist/api/getRequest.d.ts +1 -1
- package/dist/api/getRequest.d.ts.map +1 -1
- package/dist/api/makeRequest.d.ts +2 -2
- package/dist/api/makeRequest.d.ts.map +1 -1
- package/dist/api/makeRequest.js +18 -18
- package/dist/api/patchRequest.d.ts +1 -1
- package/dist/api/patchRequest.d.ts.map +1 -1
- package/dist/api/postRequest.d.ts +1 -1
- package/dist/api/postRequest.d.ts.map +1 -1
- package/dist/api/putRequest.d.ts +1 -1
- package/dist/api/putRequest.d.ts.map +1 -1
- package/dist/config/apiInstance.d.ts +5 -5
- package/dist/config/arkynLogInstance.d.ts +44 -0
- package/dist/config/arkynLogInstance.d.ts.map +1 -0
- package/dist/config/arkynLogInstance.js +49 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/mapper/arkynLogRequestMapper.d.ts +30 -0
- package/dist/mapper/arkynLogRequestMapper.d.ts.map +1 -0
- package/dist/mapper/arkynLogRequestMapper.js +44 -0
- package/dist/services/decodeRequestBody.d.ts +1 -1
- package/dist/services/decodeRequestBody.d.ts.map +1 -1
- package/dist/services/formParse.d.ts +18 -1
- package/dist/services/formParse.d.ts.map +1 -1
- package/dist/services/getCaller.d.ts.map +1 -1
- package/dist/services/getCaller.js +41 -15
- package/dist/services/getScopedParams.d.ts +1 -1
- package/dist/services/getScopedParams.d.ts.map +1 -1
- package/dist/services/httpDebug.d.ts.map +1 -1
- package/dist/services/httpDebug.js +0 -1
- package/dist/types/ApiResponseDTO.d.ts +17 -0
- package/dist/types/ApiResponseDTO.d.ts.map +1 -0
- package/dist/types/ApiResponseDTO.js +1 -0
- package/package.json +2 -5
- package/src/api/arkynLogRequest.ts +118 -0
- package/src/api/deleteRequest.ts +1 -1
- package/src/api/getRequest.ts +1 -1
- package/src/api/makeRequest.ts +21 -20
- package/src/api/patchRequest.ts +1 -1
- package/src/api/postRequest.ts +1 -1
- package/src/api/putRequest.ts +1 -1
- package/src/config/arkynLogInstance.ts +70 -0
- package/src/index.ts +1 -2
- package/src/mapper/arkynLogRequestMapper.ts +73 -0
- package/src/services/decodeRequestBody.ts +2 -1
- package/src/services/formParse.ts +18 -1
- package/src/services/getCaller.ts +54 -20
- package/src/services/getScopedParams.ts +4 -2
- package/src/services/httpDebug.ts +0 -1
- package/src/types/ApiResponseDTO.ts +19 -0
- package/dist/api/inboxFlowRequest.d.ts +0 -40
- package/dist/api/inboxFlowRequest.d.ts.map +0 -1
- package/dist/api/inboxFlowRequest.js +0 -63
- package/dist/config/inboxFlowInstance.d.ts +0 -44
- package/dist/config/inboxFlowInstance.d.ts.map +0 -1
- package/dist/config/inboxFlowInstance.js +0 -46
- package/dist/services/sendFileToS3.d.ts +0 -4
- package/dist/services/sendFileToS3.d.ts.map +0 -1
- package/dist/services/sendFileToS3.js +0 -105
- package/src/api/inboxFlowRequest.ts +0 -76
- package/src/config/inboxFlowInstance.ts +0 -65
- package/src/services/sendFileToS3.ts +0 -131
package/README.md
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
type ConfigProps = {
|
|
2
|
+
rawUrl: string;
|
|
3
|
+
status: number;
|
|
4
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
5
|
+
token: string | null;
|
|
6
|
+
elapsedTime: number;
|
|
7
|
+
requestHeaders: Record<string, string>;
|
|
8
|
+
requestBody: Record<string, string>;
|
|
9
|
+
queryParams: Record<string, string>;
|
|
10
|
+
responseHeaders: Record<string, string>;
|
|
11
|
+
responseBody: Record<string, string>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Sends a request to the inbox flow API with the provided configuration.
|
|
15
|
+
*
|
|
16
|
+
* @param config - The configuration object for the request.
|
|
17
|
+
* @param config.rawUrl - The raw URL of the request.
|
|
18
|
+
* @param config.status - The HTTP status code associated with the request.
|
|
19
|
+
* @param config.method - The HTTP method used for the request. Can be "POST", "GET", "PUT", "DELETE", or "PATCH".
|
|
20
|
+
* @param config.token - The authentication token for the request.
|
|
21
|
+
* @param config.elapsedTime - The elapsed time for the request in milliseconds.
|
|
22
|
+
* @param config.requestHeaders - The headers sent with the request.
|
|
23
|
+
* @param config.requestBody - The body of the request, if applicable.
|
|
24
|
+
* @param config.queryParams - The query parameters for the request.
|
|
25
|
+
* @param config.responseHeaders - The headers received in the response.
|
|
26
|
+
* @param config.responseBody - The body of the response received.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* - This function retrieves the inbox flow configuration using `InboxFlowInstance.getInboxConfig()`.
|
|
30
|
+
* - If the configuration is not available, the function will return early without performing any action.
|
|
31
|
+
* - In a development environment (`NODE_ENV === "development"`), the function will also return early.
|
|
32
|
+
* - The request is sent as a POST request to the inbox API URL with the provided configuration details.
|
|
33
|
+
* - If an error occurs during the request, it will be logged using the `httpDebug` service.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const config = {
|
|
38
|
+
* rawUrl: "https://example.com/api/data",
|
|
39
|
+
* status: 200,
|
|
40
|
+
* method: "GET",
|
|
41
|
+
* token: "auth-token-123",
|
|
42
|
+
* elapsedTime: "150ms",
|
|
43
|
+
* requestHeaders: { "Accept": "application/json", "Authorization": "Bearer token123" },
|
|
44
|
+
* requestBody: {},
|
|
45
|
+
* queryParams: { "page": "1", "limit": "10" },
|
|
46
|
+
* responseHeaders: { "Content-Type": "application/json" },
|
|
47
|
+
* responseBody: { "data": "example response" }
|
|
48
|
+
* };
|
|
49
|
+
*
|
|
50
|
+
* await arkynLogRequest(config);
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
declare function arkynLogRequest(config: ConfigProps): Promise<void>;
|
|
54
|
+
export { arkynLogRequest };
|
|
55
|
+
//# sourceMappingURL=arkynLogRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arkynLogRequest.d.ts","sourceRoot":"","sources":["../../src/api/arkynLogRequest.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,iBAAe,eAAe,CAAC,MAAM,EAAE,WAAW,iBA0DjD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ArkynLogInstance } from "../config/arkynLogInstance";
|
|
2
|
+
import { httpDebug } from "../services/httpDebug";
|
|
3
|
+
/**
|
|
4
|
+
* Sends a request to the inbox flow API with the provided configuration.
|
|
5
|
+
*
|
|
6
|
+
* @param config - The configuration object for the request.
|
|
7
|
+
* @param config.rawUrl - The raw URL of the request.
|
|
8
|
+
* @param config.status - The HTTP status code associated with the request.
|
|
9
|
+
* @param config.method - The HTTP method used for the request. Can be "POST", "GET", "PUT", "DELETE", or "PATCH".
|
|
10
|
+
* @param config.token - The authentication token for the request.
|
|
11
|
+
* @param config.elapsedTime - The elapsed time for the request in milliseconds.
|
|
12
|
+
* @param config.requestHeaders - The headers sent with the request.
|
|
13
|
+
* @param config.requestBody - The body of the request, if applicable.
|
|
14
|
+
* @param config.queryParams - The query parameters for the request.
|
|
15
|
+
* @param config.responseHeaders - The headers received in the response.
|
|
16
|
+
* @param config.responseBody - The body of the response received.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* - This function retrieves the inbox flow configuration using `InboxFlowInstance.getInboxConfig()`.
|
|
20
|
+
* - If the configuration is not available, the function will return early without performing any action.
|
|
21
|
+
* - In a development environment (`NODE_ENV === "development"`), the function will also return early.
|
|
22
|
+
* - The request is sent as a POST request to the inbox API URL with the provided configuration details.
|
|
23
|
+
* - If an error occurs during the request, it will be logged using the `httpDebug` service.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const config = {
|
|
28
|
+
* rawUrl: "https://example.com/api/data",
|
|
29
|
+
* status: 200,
|
|
30
|
+
* method: "GET",
|
|
31
|
+
* token: "auth-token-123",
|
|
32
|
+
* elapsedTime: "150ms",
|
|
33
|
+
* requestHeaders: { "Accept": "application/json", "Authorization": "Bearer token123" },
|
|
34
|
+
* requestBody: {},
|
|
35
|
+
* queryParams: { "page": "1", "limit": "10" },
|
|
36
|
+
* responseHeaders: { "Content-Type": "application/json" },
|
|
37
|
+
* responseBody: { "data": "example response" }
|
|
38
|
+
* };
|
|
39
|
+
*
|
|
40
|
+
* await arkynLogRequest(config);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
async function arkynLogRequest(config) {
|
|
44
|
+
const arkynInstance = ArkynLogInstance.getArkynConfig();
|
|
45
|
+
if (!arkynInstance)
|
|
46
|
+
return;
|
|
47
|
+
const { arkynUserToken, arkynApiUrl } = arkynInstance;
|
|
48
|
+
const { elapsedTime, method, queryParams, requestBody, requestHeaders, responseBody, responseHeaders, status, token, rawUrl, } = config;
|
|
49
|
+
// if (process.env.NODE_ENV === "development") return;
|
|
50
|
+
try {
|
|
51
|
+
const url = new URL(rawUrl);
|
|
52
|
+
let protocol = "HTTPS";
|
|
53
|
+
if (url.protocol === "http:")
|
|
54
|
+
protocol = "HTTP";
|
|
55
|
+
const body = JSON.stringify({
|
|
56
|
+
domainUrl: url.protocol + "//" + url.host,
|
|
57
|
+
pathnameUrl: url.pathname,
|
|
58
|
+
status,
|
|
59
|
+
protocol,
|
|
60
|
+
method,
|
|
61
|
+
trafficUserId: null,
|
|
62
|
+
elapsedTime,
|
|
63
|
+
requestHeaders,
|
|
64
|
+
requestBody,
|
|
65
|
+
queryParams,
|
|
66
|
+
responseHeaders,
|
|
67
|
+
responseBody,
|
|
68
|
+
});
|
|
69
|
+
await fetch(arkynApiUrl.replace(":trafficSourceId", arkynInstance.arkynTrafficSourceId), {
|
|
70
|
+
method: "POST",
|
|
71
|
+
body,
|
|
72
|
+
headers: {
|
|
73
|
+
"Content-Type": "application/json",
|
|
74
|
+
Authorization: `Bearer ${arkynUserToken}`,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
catch (err) {
|
|
79
|
+
httpDebug("arkyn log error", "Error sending request", err);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export { arkynLogRequest };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteRequest.d.ts","sourceRoot":"","sources":["../../src/api/deleteRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deleteRequest.d.ts","sourceRoot":"","sources":["../../src/api/deleteRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D;;;;;;;;GAQG;AAEH,iBAAe,aAAa,CAAC,CAAC,GAAG,GAAG,EAClC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAgB,EACzB,IAAI,CAAC,EAAE,GAAG,GACT,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAE5B;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/api/getRequest.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRequest.d.ts","sourceRoot":"","sources":["../../src/api/getRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getRequest.d.ts","sourceRoot":"","sources":["../../src/api/getRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D;;;;;;;GAOG;AAEH,iBAAe,UAAU,CAAC,CAAC,GAAG,GAAG,EAC/B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAE5B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiResponseDTO } from "
|
|
1
|
+
import type { ApiResponseDTO } from "../types/ApiResponseDTO";
|
|
2
2
|
/**
|
|
3
3
|
* Makes an HTTP request using the Fetch API and returns a standardized response.
|
|
4
4
|
*
|
|
@@ -33,6 +33,6 @@ import type { ApiResponseDTO } from "@arkyn/types";
|
|
|
33
33
|
* }
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
declare function makeRequest<T = any>(method: "POST" | "PUT" | "DELETE" | "PATCH" | "GET", url: string,
|
|
36
|
+
declare function makeRequest<T = any>(method: "POST" | "PUT" | "DELETE" | "PATCH" | "GET", url: string, rawHeaders?: HeadersInit, body?: any): Promise<ApiResponseDTO<T>>;
|
|
37
37
|
export { makeRequest };
|
|
38
38
|
//# sourceMappingURL=makeRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeRequest.d.ts","sourceRoot":"","sources":["../../src/api/makeRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"makeRequest.d.ts","sourceRoot":"","sources":["../../src/api/makeRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,iBAAe,WAAW,CAAC,CAAC,GAAG,GAAG,EAChC,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,EACnD,GAAG,EAAE,MAAM,EACX,UAAU,GAAE,WAAgB,EAC5B,IAAI,CAAC,EAAE,GAAG,GACT,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAsE5B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/api/makeRequest.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ArkynLogRequestMapper } from "../mapper/arkynLogRequestMapper";
|
|
2
|
+
import { httpDebug } from "../services/httpDebug";
|
|
3
|
+
import { arkynLogRequest } from "./arkynLogRequest";
|
|
3
4
|
/**
|
|
4
5
|
* Makes an HTTP request using the Fetch API and returns a standardized response.
|
|
5
6
|
*
|
|
@@ -34,7 +35,7 @@ import { inboxFlowRequest } from "./inboxFlowRequest";
|
|
|
34
35
|
* }
|
|
35
36
|
* ```
|
|
36
37
|
*/
|
|
37
|
-
async function makeRequest(method, url,
|
|
38
|
+
async function makeRequest(method, url, rawHeaders = {}, body) {
|
|
38
39
|
const successMessage = {
|
|
39
40
|
POST: "Resource created successfully",
|
|
40
41
|
PUT: "Resource updated successfully",
|
|
@@ -43,14 +44,14 @@ async function makeRequest(method, url, headers = {}, body) {
|
|
|
43
44
|
GET: "Request successful",
|
|
44
45
|
};
|
|
45
46
|
try {
|
|
47
|
+
const startTime = performance.now();
|
|
48
|
+
const headers = { ...rawHeaders, "Content-Type": "application/json" };
|
|
46
49
|
const response = await fetch(url, {
|
|
47
50
|
method,
|
|
48
|
-
headers
|
|
49
|
-
...headers,
|
|
50
|
-
"Content-Type": "application/json",
|
|
51
|
-
},
|
|
51
|
+
headers,
|
|
52
52
|
body: body ? JSON.stringify(body) : undefined,
|
|
53
53
|
});
|
|
54
|
+
const elapsedTime = performance.now() - startTime;
|
|
54
55
|
const status = response.status;
|
|
55
56
|
let data = null;
|
|
56
57
|
try {
|
|
@@ -59,13 +60,18 @@ async function makeRequest(method, url, headers = {}, body) {
|
|
|
59
60
|
catch {
|
|
60
61
|
data = null;
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
+
const logData = ArkynLogRequestMapper.handle({
|
|
64
|
+
elapsedTime,
|
|
63
65
|
method,
|
|
66
|
+
queryParams: new URL(url).searchParams,
|
|
67
|
+
requestHeaders: headers,
|
|
68
|
+
requestBody: body,
|
|
69
|
+
responseBody: data,
|
|
70
|
+
responseHeaders: response.headers,
|
|
64
71
|
status,
|
|
65
|
-
|
|
66
|
-
response: JSON.stringify(data),
|
|
67
|
-
token: headers?.Authorization || "TOKEN_NOT_FOUND",
|
|
72
|
+
url,
|
|
68
73
|
});
|
|
74
|
+
arkynLogRequest(logData);
|
|
69
75
|
if (!response.ok) {
|
|
70
76
|
return {
|
|
71
77
|
success: false,
|
|
@@ -84,13 +90,7 @@ async function makeRequest(method, url, headers = {}, body) {
|
|
|
84
90
|
};
|
|
85
91
|
}
|
|
86
92
|
catch (err) {
|
|
87
|
-
|
|
88
|
-
method,
|
|
89
|
-
request: JSON.stringify(headers),
|
|
90
|
-
response: String(err),
|
|
91
|
-
status: 500,
|
|
92
|
-
token: "TOKEN_NOT_FOUND",
|
|
93
|
-
});
|
|
93
|
+
httpDebug("Network error or request failed", null, err);
|
|
94
94
|
return {
|
|
95
95
|
success: false,
|
|
96
96
|
status: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patchRequest.d.ts","sourceRoot":"","sources":["../../src/api/patchRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"patchRequest.d.ts","sourceRoot":"","sources":["../../src/api/patchRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D;;;;;;;;GAQG;AAEH,iBAAe,YAAY,CAAC,CAAC,GAAG,GAAG,EACjC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,WAAW,YAAK,EACzB,IAAI,EAAE,GAAG,GACR,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAE5B;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postRequest.d.ts","sourceRoot":"","sources":["../../src/api/postRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"postRequest.d.ts","sourceRoot":"","sources":["../../src/api/postRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D;;;;;;;;GAQG;AAEH,iBAAe,WAAW,CAAC,CAAC,GAAG,GAAG,EAChC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,WAAW,YAAK,EACzB,IAAI,EAAE,GAAG,GACR,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAE5B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/api/putRequest.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putRequest.d.ts","sourceRoot":"","sources":["../../src/api/putRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"putRequest.d.ts","sourceRoot":"","sources":["../../src/api/putRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D;;;;;;;;GAQG;AAEH,iBAAe,UAAU,CAAC,CAAC,GAAG,GAAG,EAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,WAAW,YAAK,EACzB,IAAI,EAAE,GAAG,GACR,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAE5B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -46,35 +46,35 @@ declare class ApiInstance {
|
|
|
46
46
|
* @param data - The request data, including optional headers and token.
|
|
47
47
|
* @returns The API response data.
|
|
48
48
|
*/
|
|
49
|
-
GET(route: string, data?: ApiRequestDataWithoutBodyProps): Promise<import("
|
|
49
|
+
GET(route: string, data?: ApiRequestDataWithoutBodyProps): Promise<import("../types/ApiResponseDTO").ApiResponseDTO<any>>;
|
|
50
50
|
/**
|
|
51
51
|
* Sends a POST request to the specified route.
|
|
52
52
|
* @param route - The API route to send the POST request to.
|
|
53
53
|
* @param data - The request data, including body, optional headers, and token.
|
|
54
54
|
* @returns The API response data.
|
|
55
55
|
*/
|
|
56
|
-
POST(route: string, data?: ApiRequestDataWithBodyProps): Promise<import("
|
|
56
|
+
POST(route: string, data?: ApiRequestDataWithBodyProps): Promise<import("../types/ApiResponseDTO").ApiResponseDTO<any>>;
|
|
57
57
|
/**
|
|
58
58
|
* Sends a PUT request to the specified route.
|
|
59
59
|
* @param route - The API route to send the PUT request to.
|
|
60
60
|
* @param data - The request data, including body, optional headers, and token.
|
|
61
61
|
* @returns The API response data.
|
|
62
62
|
*/
|
|
63
|
-
PUT(route: string, data?: ApiRequestDataWithBodyProps): Promise<import("
|
|
63
|
+
PUT(route: string, data?: ApiRequestDataWithBodyProps): Promise<import("../types/ApiResponseDTO").ApiResponseDTO<any>>;
|
|
64
64
|
/**
|
|
65
65
|
* Sends a PATCH request to the specified route.
|
|
66
66
|
* @param route - The API route to send the PATCH request to.
|
|
67
67
|
* @param data - The request data, including body, optional headers, and token.
|
|
68
68
|
* @returns The API response data.
|
|
69
69
|
*/
|
|
70
|
-
PATCH(route: string, data?: ApiRequestDataWithBodyProps): Promise<import("
|
|
70
|
+
PATCH(route: string, data?: ApiRequestDataWithBodyProps): Promise<import("../types/ApiResponseDTO").ApiResponseDTO<any>>;
|
|
71
71
|
/**
|
|
72
72
|
* Sends a DELETE request to the specified route.
|
|
73
73
|
* @param route - The API route to send the DELETE request to.
|
|
74
74
|
* @param data - The request data, including body, optional headers, and token.
|
|
75
75
|
* @returns The API response data.
|
|
76
76
|
*/
|
|
77
|
-
DELETE(route: string, data?: ApiRequestDataWithBodyProps): Promise<import("
|
|
77
|
+
DELETE(route: string, data?: ApiRequestDataWithBodyProps): Promise<import("../types/ApiResponseDTO").ApiResponseDTO<any>>;
|
|
78
78
|
}
|
|
79
79
|
export { ApiInstance };
|
|
80
80
|
//# sourceMappingURL=apiInstance.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
type ArkynConfigProps = {
|
|
2
|
+
arkynTrafficSourceId: string;
|
|
3
|
+
arkynUserToken: string;
|
|
4
|
+
arkynApiUrl: string;
|
|
5
|
+
};
|
|
6
|
+
type SetArkynConfigProps = {
|
|
7
|
+
arkynTrafficSourceId: string;
|
|
8
|
+
arkynUserToken: string;
|
|
9
|
+
arkynLogBaseApiUrl?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The `ArkynLogInstance` class manages the configuration for the arkyn flow.
|
|
13
|
+
* It allows you to set and retrieve the arkyn configuration, including the traffic source ID,
|
|
14
|
+
* user token, and API URL.
|
|
15
|
+
*/
|
|
16
|
+
declare class ArkynLogInstance {
|
|
17
|
+
private static arkynConfig?;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the configuration for the arkyn. This method initializes the arkyn configuration
|
|
20
|
+
* with the provided `arkynConfig` values. If the configuration has already been set,
|
|
21
|
+
* the method will return early without making any changes.
|
|
22
|
+
*
|
|
23
|
+
* @param arkynConfig - An object containing the arkyn configuration properties.
|
|
24
|
+
* @param arkynConfig.arkynTrafficSourceId - The key used to identify the arkyn.
|
|
25
|
+
* @param arkynConfig.arkynUserToken - The user token for authenticating with the arkyn.
|
|
26
|
+
* @param arkynConfig.arkynLogBaseApiUrl - (Optional) The API URL for the arkyn. If not provided,
|
|
27
|
+
* a default URL will be used.
|
|
28
|
+
*/
|
|
29
|
+
static setArkynConfig(arkynConfig: SetArkynConfigProps): void;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves the current arkyn configuration for the ArkynLogInstance.
|
|
32
|
+
*
|
|
33
|
+
* @returns {ArkynConfigProps | undefined} The current arkyn configuration if set,
|
|
34
|
+
* or `undefined` if no configuration has been initialized.
|
|
35
|
+
*/
|
|
36
|
+
static getArkynConfig(): ArkynConfigProps | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Resets the arkyn configuration to `undefined`.
|
|
39
|
+
* This method can be used to clear the current configuration.
|
|
40
|
+
*/
|
|
41
|
+
static resetArkynConfig(): void;
|
|
42
|
+
}
|
|
43
|
+
export { ArkynLogInstance };
|
|
44
|
+
//# sourceMappingURL=arkynLogInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arkynLogInstance.d.ts","sourceRoot":"","sources":["../../src/config/arkynLogInstance.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AAEH,cAAM,gBAAgB;IACpB,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAmB;IAE9C;;;;;;;;;;OAUG;IAEH,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,mBAAmB;IAgBtD;;;;;OAKG;IACH,MAAM,CAAC,cAAc,IAAI,gBAAgB,GAAG,SAAS;IAIrD;;;OAGG;IAEH,MAAM,CAAC,gBAAgB;CAGxB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `ArkynLogInstance` class manages the configuration for the arkyn flow.
|
|
3
|
+
* It allows you to set and retrieve the arkyn configuration, including the traffic source ID,
|
|
4
|
+
* user token, and API URL.
|
|
5
|
+
*/
|
|
6
|
+
class ArkynLogInstance {
|
|
7
|
+
static arkynConfig;
|
|
8
|
+
/**
|
|
9
|
+
* Sets the configuration for the arkyn. This method initializes the arkyn configuration
|
|
10
|
+
* with the provided `arkynConfig` values. If the configuration has already been set,
|
|
11
|
+
* the method will return early without making any changes.
|
|
12
|
+
*
|
|
13
|
+
* @param arkynConfig - An object containing the arkyn configuration properties.
|
|
14
|
+
* @param arkynConfig.arkynTrafficSourceId - The key used to identify the arkyn.
|
|
15
|
+
* @param arkynConfig.arkynUserToken - The user token for authenticating with the arkyn.
|
|
16
|
+
* @param arkynConfig.arkynLogBaseApiUrl - (Optional) The API URL for the arkyn. If not provided,
|
|
17
|
+
* a default URL will be used.
|
|
18
|
+
*/
|
|
19
|
+
static setArkynConfig(arkynConfig) {
|
|
20
|
+
if (!!this.arkynConfig)
|
|
21
|
+
return;
|
|
22
|
+
let defaultArkynURL = `https://logs-arkyn-flow-logs.vw6wo7.easypanel.host`;
|
|
23
|
+
let arkynLogBaseApiUrl = arkynConfig.arkynLogBaseApiUrl || defaultArkynURL;
|
|
24
|
+
arkynLogBaseApiUrl =
|
|
25
|
+
arkynLogBaseApiUrl + "/http-traffic-records/:trafficSourceId";
|
|
26
|
+
this.arkynConfig = {
|
|
27
|
+
arkynTrafficSourceId: arkynConfig.arkynTrafficSourceId,
|
|
28
|
+
arkynUserToken: arkynConfig.arkynUserToken,
|
|
29
|
+
arkynApiUrl: arkynLogBaseApiUrl,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves the current arkyn configuration for the ArkynLogInstance.
|
|
34
|
+
*
|
|
35
|
+
* @returns {ArkynConfigProps | undefined} The current arkyn configuration if set,
|
|
36
|
+
* or `undefined` if no configuration has been initialized.
|
|
37
|
+
*/
|
|
38
|
+
static getArkynConfig() {
|
|
39
|
+
return this.arkynConfig;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Resets the arkyn configuration to `undefined`.
|
|
43
|
+
* This method can be used to clear the current configuration.
|
|
44
|
+
*/
|
|
45
|
+
static resetArkynConfig() {
|
|
46
|
+
this.arkynConfig = undefined;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export { ArkynLogInstance };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ApiInstance } from "./config/apiInstance";
|
|
2
|
-
export {
|
|
2
|
+
export { ArkynLogInstance } from "./config/arkynLogInstance";
|
|
3
3
|
export { BadGateway } from "./http/badResponses/badGateway";
|
|
4
4
|
export { BadRequest } from "./http/badResponses/badRequest";
|
|
5
5
|
export { Conflict } from "./http/badResponses/conflict";
|
|
@@ -22,5 +22,4 @@ export { getCaller } from "./services/getCaller";
|
|
|
22
22
|
export { getScopedParams } from "./services/getScopedParams";
|
|
23
23
|
export { httpDebug } from "./services/httpDebug";
|
|
24
24
|
export { SchemaValidator } from "./services/schemaValidator";
|
|
25
|
-
export { sendFileToS3 } from "./services/sendFileToS3";
|
|
26
25
|
//# 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,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAG9E,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAG1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// config
|
|
2
2
|
export { ApiInstance } from "./config/apiInstance";
|
|
3
|
-
export {
|
|
3
|
+
export { ArkynLogInstance } from "./config/arkynLogInstance";
|
|
4
4
|
// http bad responses
|
|
5
5
|
export { BadGateway } from "./http/badResponses/badGateway";
|
|
6
6
|
export { BadRequest } from "./http/badResponses/badRequest";
|
|
@@ -26,4 +26,3 @@ export { getCaller } from "./services/getCaller";
|
|
|
26
26
|
export { getScopedParams } from "./services/getScopedParams";
|
|
27
27
|
export { httpDebug } from "./services/httpDebug";
|
|
28
28
|
export { SchemaValidator } from "./services/schemaValidator";
|
|
29
|
-
export { sendFileToS3 } from "./services/sendFileToS3";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type InputProps = {
|
|
2
|
+
status: number;
|
|
3
|
+
url: string;
|
|
4
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
5
|
+
requestHeaders: HeadersInit;
|
|
6
|
+
responseHeaders: HeadersInit;
|
|
7
|
+
requestBody: any;
|
|
8
|
+
elapsedTime: number;
|
|
9
|
+
responseBody: any;
|
|
10
|
+
queryParams: URLSearchParams;
|
|
11
|
+
};
|
|
12
|
+
type OutputProps = {
|
|
13
|
+
rawUrl: string;
|
|
14
|
+
status: number;
|
|
15
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
16
|
+
token: string | null;
|
|
17
|
+
elapsedTime: number;
|
|
18
|
+
requestHeaders: Record<string, string>;
|
|
19
|
+
requestBody: Record<string, string>;
|
|
20
|
+
queryParams: Record<string, string>;
|
|
21
|
+
responseHeaders: Record<string, string>;
|
|
22
|
+
responseBody: any;
|
|
23
|
+
};
|
|
24
|
+
declare class ArkynLogRequestMapper {
|
|
25
|
+
private static mapHeaders;
|
|
26
|
+
private static mapQueryParams;
|
|
27
|
+
static handle(props: InputProps): OutputProps;
|
|
28
|
+
}
|
|
29
|
+
export { ArkynLogRequestMapper };
|
|
30
|
+
//# sourceMappingURL=arkynLogRequestMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arkynLogRequestMapper.d.ts","sourceRoot":"","sources":["../../src/mapper/arkynLogRequestMapper.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpD,cAAc,EAAE,WAAW,CAAC;IAC5B,eAAe,EAAE,WAAW,CAAC;IAC7B,WAAW,EAAE,GAAG,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,eAAe,CAAC;CAC9B,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,YAAY,EAAE,GAAG,CAAC;CACnB,CAAC;AAEF,cAAM,qBAAqB;IACzB,OAAO,CAAC,MAAM,CAAC,UAAU;IAkBzB,OAAO,CAAC,MAAM,CAAC,cAAc;IAY7B,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW;CAc9C;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
class ArkynLogRequestMapper {
|
|
2
|
+
static mapHeaders(headers) {
|
|
3
|
+
if (headers instanceof Headers) {
|
|
4
|
+
return Object.fromEntries(headers.entries());
|
|
5
|
+
}
|
|
6
|
+
else if (typeof headers === "object") {
|
|
7
|
+
return Object.entries(headers).reduce((acc, [key, value]) => {
|
|
8
|
+
if (typeof value === "string") {
|
|
9
|
+
acc[key] = value;
|
|
10
|
+
}
|
|
11
|
+
else if (Array.isArray(value)) {
|
|
12
|
+
acc[key] = value.join(", ");
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
acc[key] = JSON.stringify(value);
|
|
16
|
+
}
|
|
17
|
+
return acc;
|
|
18
|
+
}, {});
|
|
19
|
+
}
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
static mapQueryParams(queryParams) {
|
|
23
|
+
const params = {};
|
|
24
|
+
queryParams.forEach((value, key) => {
|
|
25
|
+
params[key] = value;
|
|
26
|
+
});
|
|
27
|
+
return params;
|
|
28
|
+
}
|
|
29
|
+
static handle(props) {
|
|
30
|
+
return {
|
|
31
|
+
rawUrl: props.url,
|
|
32
|
+
status: props.status,
|
|
33
|
+
method: props.method,
|
|
34
|
+
token: null,
|
|
35
|
+
elapsedTime: props.elapsedTime,
|
|
36
|
+
requestHeaders: this.mapHeaders(props.requestHeaders),
|
|
37
|
+
requestBody: props.requestBody || null,
|
|
38
|
+
queryParams: this.mapQueryParams(props.queryParams),
|
|
39
|
+
responseHeaders: this.mapHeaders(props.responseHeaders),
|
|
40
|
+
responseBody: props.responseBody || null,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export { ArkynLogRequestMapper };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decodeRequestBody.d.ts","sourceRoot":"","sources":["../../src/services/decodeRequestBody.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decodeRequestBody.d.ts","sourceRoot":"","sources":["../../src/services/decodeRequestBody.ts"],"names":[],"mappings":"AAEA,KAAK,yBAAyB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAEpE;;;;;;;;;;;;GAYG;AAEH,QAAA,MAAM,iBAAiB,EAAE,yBAsBxB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { 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;
|
|
2
19
|
/**
|
|
3
20
|
* Parses form data using a Zod schema and returns the result.
|
|
4
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formParse.d.ts","sourceRoot":"","sources":["../../src/services/formParse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"formParse.d.ts","sourceRoot":"","sources":["../../src/services/formParse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAElC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,iBAAS,SAAS,CAAC,CAAC,SAAS,cAAc,EAAE,CAC3C,QAAQ,EACR,MAAM,EACP,EAAE,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAmB5B;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCaller.d.ts","sourceRoot":"","sources":["../../src/services/getCaller.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"getCaller.d.ts","sourceRoot":"","sources":["../../src/services/getCaller.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,iBAAS,SAAS;;;EAkEjB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|