@extrahorizon/javascript-sdk 8.2.0 → 8.2.1-dev-49-61b4511
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/CHANGELOG.md +1182 -1161
- package/README.md +108 -119
- package/build/index.cjs.js +1 -1
- package/build/index.mjs +1 -1
- package/build/types/btoa.d.ts +6 -6
- package/build/types/client.d.ts +136 -136
- package/build/types/constants.d.ts +15 -15
- package/build/types/errorHandler.d.ts +2 -2
- package/build/types/errors.d.ts +332 -332
- package/build/types/http/client.d.ts +2 -2
- package/build/types/http/index.d.ts +4 -4
- package/build/types/http/interceptors.d.ts +9 -9
- package/build/types/http/oAuth1Signature.d.ts +14 -14
- package/build/types/http/oauth1.d.ts +3 -3
- package/build/types/http/oauth2.d.ts +3 -3
- package/build/types/http/proxy.d.ts +3 -3
- package/build/types/http/types.d.ts +331 -331
- package/build/types/http/utils.d.ts +21 -21
- package/build/types/index.d.ts +9 -9
- package/build/types/mock.d.ts +43 -43
- package/build/types/mockType.d.ts +1547 -1511
- package/build/types/parseStoredCredentials.d.ts +11 -11
- package/build/types/rql/index.d.ts +16 -16
- package/build/types/rql/parser.d.ts +1 -1
- package/build/types/rql/types.d.ts +168 -168
- package/build/types/services/auth/applications/index.d.ts +5 -5
- package/build/types/services/auth/applications/types.d.ts +260 -190
- package/build/types/services/auth/index.d.ts +3 -3
- package/build/types/services/auth/oauth1/index.d.ts +5 -5
- package/build/types/services/auth/oauth1/types.d.ts +63 -63
- package/build/types/services/auth/oauth2/index.d.ts +5 -5
- package/build/types/services/auth/oauth2/types.d.ts +52 -52
- package/build/types/services/auth/oidc/index.d.ts +5 -5
- package/build/types/services/auth/oidc/loginAttempts/index.d.ts +5 -5
- package/build/types/services/auth/oidc/loginAttempts/types.d.ts +67 -67
- package/build/types/services/auth/oidc/providers/index.d.ts +5 -5
- package/build/types/services/auth/oidc/providers/types.d.ts +144 -144
- package/build/types/services/auth/oidc/types.d.ts +40 -40
- package/build/types/services/auth/types.d.ts +39 -39
- package/build/types/services/auth/users/index.d.ts +5 -5
- package/build/types/services/auth/users/types.d.ts +121 -121
- package/build/types/services/configurations/general.d.ts +5 -5
- package/build/types/services/configurations/groups.d.ts +5 -5
- package/build/types/services/configurations/index.d.ts +10 -10
- package/build/types/services/configurations/patients.d.ts +5 -5
- package/build/types/services/configurations/staff.d.ts +5 -5
- package/build/types/services/configurations/types.d.ts +222 -222
- package/build/types/services/configurations/users.d.ts +5 -5
- package/build/types/services/data/comments.d.ts +5 -5
- package/build/types/services/data/documents.d.ts +5 -5
- package/build/types/services/data/index.d.ts +13 -13
- package/build/types/services/data/indexes.d.ts +5 -5
- package/build/types/services/data/infrastructure.d.ts +10 -10
- package/build/types/services/data/json-schema.d.ts +121 -121
- package/build/types/services/data/properties.d.ts +5 -5
- package/build/types/services/data/schemas.d.ts +5 -5
- package/build/types/services/data/statuses.d.ts +5 -5
- package/build/types/services/data/transitions.d.ts +5 -5
- package/build/types/services/data/types.d.ts +899 -899
- package/build/types/services/dispatchers/actions/index.d.ts +5 -5
- package/build/types/services/dispatchers/actions/types.d.ts +78 -78
- package/build/types/services/dispatchers/dispatchers/index.d.ts +5 -5
- package/build/types/services/dispatchers/dispatchers/types.d.ts +111 -111
- package/build/types/services/dispatchers/index.d.ts +7 -7
- package/build/types/services/dispatchers/types.d.ts +2 -2
- package/build/types/services/events/events.d.ts +5 -5
- package/build/types/services/events/health.d.ts +9 -9
- package/build/types/services/events/index.d.ts +6 -6
- package/build/types/services/events/subscriptions.d.ts +5 -5
- package/build/types/services/events/types.d.ts +90 -90
- package/build/types/services/files/files.d.ts +5 -5
- package/build/types/services/files/formHelpers.d.ts +3 -3
- package/build/types/services/files/index.d.ts +6 -6
- package/build/types/services/files/settings/index.d.ts +5 -5
- package/build/types/services/files/settings/types.d.ts +38 -38
- package/build/types/services/files/tokens.d.ts +5 -5
- package/build/types/services/files/types.d.ts +185 -185
- package/build/types/services/helpers.d.ts +7 -7
- package/build/types/services/http-client.d.ts +22 -22
- package/build/types/services/index.d.ts +15 -15
- package/build/types/services/localizations/countries.d.ts +5 -5
- package/build/types/services/localizations/health.d.ts +9 -9
- package/build/types/services/localizations/index.d.ts +4 -4
- package/build/types/services/localizations/languages.d.ts +5 -5
- package/build/types/services/localizations/localizations.d.ts +5 -5
- package/build/types/services/localizations/types.d.ts +145 -145
- package/build/types/services/logs/access/index.d.ts +5 -5
- package/build/types/services/logs/access/types.d.ts +41 -41
- package/build/types/services/logs/index.d.ts +3 -3
- package/build/types/services/logs/types.d.ts +4 -4
- package/build/types/services/mails/index.d.ts +3 -3
- package/build/types/services/mails/mails.d.ts +5 -5
- package/build/types/services/mails/types.d.ts +141 -141
- package/build/types/services/notifications/health.d.ts +9 -9
- package/build/types/services/notifications/index.d.ts +7 -7
- package/build/types/services/notifications/notifications.d.ts +5 -5
- package/build/types/services/notifications/settings.d.ts +5 -5
- package/build/types/services/notifications/types.d.ts +222 -222
- package/build/types/services/payments/appStore.d.ts +5 -5
- package/build/types/services/payments/appStoreSubscriptions.d.ts +5 -5
- package/build/types/services/payments/health.d.ts +9 -9
- package/build/types/services/payments/index.d.ts +15 -15
- package/build/types/services/payments/orders.d.ts +5 -5
- package/build/types/services/payments/playStore.d.ts +5 -5
- package/build/types/services/payments/playStoreHistory.d.ts +5 -5
- package/build/types/services/payments/playStoreSubscriptions.d.ts +5 -5
- package/build/types/services/payments/products.d.ts +5 -5
- package/build/types/services/payments/stripe.d.ts +5 -5
- package/build/types/services/payments/subscriptions.d.ts +5 -5
- package/build/types/services/payments/types.d.ts +1189 -1189
- package/build/types/services/profiles/groups.d.ts +5 -5
- package/build/types/services/profiles/health.d.ts +9 -9
- package/build/types/services/profiles/index.d.ts +9 -9
- package/build/types/services/profiles/logs.d.ts +5 -5
- package/build/types/services/profiles/profiles.d.ts +5 -5
- package/build/types/services/profiles/types.d.ts +370 -369
- package/build/types/services/tasks/api/index.d.ts +5 -5
- package/build/types/services/tasks/api/types.d.ts +146 -146
- package/build/types/services/tasks/apiRequests/index.d.ts +5 -5
- package/build/types/services/tasks/apiRequests/logs/index.d.ts +5 -5
- package/build/types/services/tasks/apiRequests/logs/types.d.ts +25 -25
- package/build/types/services/tasks/apiRequests/types.d.ts +83 -83
- package/build/types/services/tasks/functions/index.d.ts +5 -5
- package/build/types/services/tasks/functions/types.d.ts +27 -27
- package/build/types/services/tasks/index.d.ts +15 -15
- package/build/types/services/tasks/logs/index.d.ts +5 -5
- package/build/types/services/tasks/logs/types.d.ts +28 -28
- package/build/types/services/tasks/schedules/index.d.ts +5 -5
- package/build/types/services/tasks/schedules/types.d.ts +88 -88
- package/build/types/services/tasks/tasks.d.ts +5 -5
- package/build/types/services/tasks/types.d.ts +107 -107
- package/build/types/services/templates/index.d.ts +3 -3
- package/build/types/services/templates/templates.d.ts +5 -5
- package/build/types/services/templates/types.d.ts +202 -202
- package/build/types/services/types.d.ts +77 -77
- package/build/types/services/users/activationRequests/index.d.ts +4 -4
- package/build/types/services/users/activationRequests/types.d.ts +70 -70
- package/build/types/services/users/forgotPasswordRequests/index.d.ts +4 -4
- package/build/types/services/users/forgotPasswordRequests/types.d.ts +70 -70
- package/build/types/services/users/globalRoles.d.ts +5 -5
- package/build/types/services/users/groupRoles.d.ts +5 -5
- package/build/types/services/users/health.d.ts +9 -9
- package/build/types/services/users/index.d.ts +16 -16
- package/build/types/services/users/settings/index.d.ts +4 -4
- package/build/types/services/users/settings/types.d.ts +47 -47
- package/build/types/services/users/types.d.ts +1202 -1055
- package/build/types/services/users/users.d.ts +5 -5
- package/build/types/sha1.d.ts +11 -11
- package/build/types/types.d.ts +102 -102
- package/build/types/utils.d.ts +4 -4
- package/build/types/version.d.ts +1 -1
- package/package.json +62 -62
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpInstance } from '../../../http/types';
|
|
2
|
-
import { HttpClient } from '../../http-client';
|
|
3
|
-
import { ApiService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => ApiService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import { HttpInstance } from '../../../http/types';
|
|
2
|
+
import { HttpClient } from '../../http-client';
|
|
3
|
+
import { ApiService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => ApiService;
|
|
5
|
+
export default _default;
|
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
import { OptionsBase } from '../../types';
|
|
2
|
-
export interface ApiService {
|
|
3
|
-
/**
|
|
4
|
-
* ## Execute a GET request towards an API function
|
|
5
|
-
*
|
|
6
|
-
* **Default Permissions:**
|
|
7
|
-
* - Any party may execute API functions with the `public` permission mode
|
|
8
|
-
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
9
|
-
*
|
|
10
|
-
* **Global Permissions:**
|
|
11
|
-
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
12
|
-
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
13
|
-
*
|
|
14
|
-
* @template T
|
|
15
|
-
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
16
|
-
* @param path {@link string} - The targeted route within the Function
|
|
17
|
-
* @param options {@link OptionsBase} - Additional options for the request.
|
|
18
|
-
* @returns {T} - A user defined type defining the response from the API function
|
|
19
|
-
*/
|
|
20
|
-
get<T>(functionName: string, path: string, options: OptionsBase): Promise<T>;
|
|
21
|
-
/**
|
|
22
|
-
* ## Execute a POST request towards an API function
|
|
23
|
-
*
|
|
24
|
-
* **Default Permissions:**
|
|
25
|
-
* - Any party may execute API functions with the `public` permission mode
|
|
26
|
-
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
27
|
-
*
|
|
28
|
-
* **Global Permissions:**
|
|
29
|
-
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
30
|
-
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
31
|
-
*
|
|
32
|
-
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
33
|
-
* @param path {@link string} - The targeted route within the Function
|
|
34
|
-
* @param data {@link U} - The data to be sent to the Function, the type may be user defined
|
|
35
|
-
* @param options {@link OptionsBase} - Additional options for the request
|
|
36
|
-
* @returns {@link T} - The response return from the Function, the type may be user defined
|
|
37
|
-
*/
|
|
38
|
-
post<T, U>(functionName: string, path: string, data: U, options: OptionsBase): Promise<T>;
|
|
39
|
-
/**
|
|
40
|
-
* ## Execute a PUT request towards an API function
|
|
41
|
-
*
|
|
42
|
-
* **Default Permissions:**
|
|
43
|
-
* - Any party may execute API functions with the `public` permission mode
|
|
44
|
-
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
45
|
-
*
|
|
46
|
-
* **Global Permissions:**
|
|
47
|
-
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
48
|
-
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
49
|
-
*
|
|
50
|
-
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
51
|
-
* @param path {@link string} - The targeted route within the Function
|
|
52
|
-
* @param data {@link U} - The data to be sent to the Function, the type may be user defined
|
|
53
|
-
* @param options {@link OptionsBase} - Additional options for the request
|
|
54
|
-
* @returns {@link T} - The response return from the Function, the type may be user defined
|
|
55
|
-
*/
|
|
56
|
-
put<T, U>(functionName: string, path: string, data: U, options: OptionsBase): Promise<T>;
|
|
57
|
-
/**
|
|
58
|
-
* ## Execute a DELETE request towards an API function
|
|
59
|
-
*
|
|
60
|
-
* **Default Permissions:**
|
|
61
|
-
* - Any party may execute API functions with the `public` permission mode
|
|
62
|
-
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
63
|
-
*
|
|
64
|
-
* **Global Permissions:**
|
|
65
|
-
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
66
|
-
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
67
|
-
*
|
|
68
|
-
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
69
|
-
* @param path {@link string} - The targeted route within the Function
|
|
70
|
-
* @param options {@link OptionsBase} - Additional options for the request
|
|
71
|
-
* @returns {@link T} - The response return from the Function, the type may be user defined
|
|
72
|
-
*/
|
|
73
|
-
delete<T>(functionName: string, path: string, options: OptionsBase): Promise<T>;
|
|
74
|
-
/**
|
|
75
|
-
* ## Execute a PATCH request towards an API function
|
|
76
|
-
*
|
|
77
|
-
* **Default Permissions:**
|
|
78
|
-
* - Any party may execute API functions with the `public` permission mode
|
|
79
|
-
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
80
|
-
*
|
|
81
|
-
* **Global Permissions:**
|
|
82
|
-
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
83
|
-
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
84
|
-
*
|
|
85
|
-
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
86
|
-
* @param path {@link string} - The targeted route within the Function
|
|
87
|
-
* @param data {@link U} - The data to be sent to the Function, the type may be user defined
|
|
88
|
-
* @param options {@link OptionsBase} - Additional options for the request
|
|
89
|
-
* @returns {@link T} - The response return from the Function, the type may be user defined
|
|
90
|
-
*/
|
|
91
|
-
patch<T, U>(functionName: string, path: string, data: U, options: OptionsBase): Promise<T>;
|
|
92
|
-
}
|
|
93
|
-
export interface ApiFunctionRequestObject {
|
|
94
|
-
/** The payload formation version of the AWS API Gateway. */
|
|
95
|
-
version: '2.0';
|
|
96
|
-
/** The path portion of the URL that comes after the Function name. */
|
|
97
|
-
rawPath: string;
|
|
98
|
-
/** The unprocessed query string of the incoming HTTP request including the starting question mark. */
|
|
99
|
-
rawQueryString: string;
|
|
100
|
-
/**
|
|
101
|
-
* The headers of the incoming HTTP request.
|
|
102
|
-
* It is structured as an object, where each key-value pair corresponds to a header name and its value.
|
|
103
|
-
* */
|
|
104
|
-
headers: Record<string, string>;
|
|
105
|
-
requestContext: {
|
|
106
|
-
http: {
|
|
107
|
-
/** The HTTP method used to target the API function. */
|
|
108
|
-
method: ApiFunctionRequestMethod;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
/** The body of the incoming HTTP request as string. It can be Base64-encoded based on the isBase64Encoded property. */
|
|
112
|
-
body: string;
|
|
113
|
-
/** The isBase64Encoded property indicates if the body property of the request object has been Base64-encoded. */
|
|
114
|
-
isBase64Encoded: boolean;
|
|
115
|
-
}
|
|
116
|
-
export interface ApiFunctionResponseObject {
|
|
117
|
-
/**
|
|
118
|
-
* The statusCode field resolves to the status code in the HTTP response.
|
|
119
|
-
* The value can be in the 200 - 499 range.
|
|
120
|
-
* */
|
|
121
|
-
statusCode: number;
|
|
122
|
-
/**
|
|
123
|
-
* The headers field resolves to the headers in the HTTP response.
|
|
124
|
-
* It is structured as an object, where each key-value pair corresponds to a header name and its value.
|
|
125
|
-
* */
|
|
126
|
-
headers?: Record<string, string>;
|
|
127
|
-
/**
|
|
128
|
-
* The body field resolves to the body in the HTTP response.
|
|
129
|
-
* In order to include binary data within a body, such as images or audio files, it is necessary to convert it into a Base64 string and assign it to the body field of the response object. Additionally, the isBase64Encoded field must be set to true.
|
|
130
|
-
* If the response body does not contain binary data, you can directly include the data in its original format.
|
|
131
|
-
*/
|
|
132
|
-
body?: any;
|
|
133
|
-
/**
|
|
134
|
-
* The isBase64Encoded field must be set to true if the body field of the response object is a Base64 encoded string representing the raw response body.
|
|
135
|
-
* */
|
|
136
|
-
isBase64Encoded?: boolean;
|
|
137
|
-
}
|
|
138
|
-
export declare enum ApiFunctionRequestMethod {
|
|
139
|
-
'GET' = "GET",
|
|
140
|
-
'POST' = "POST",
|
|
141
|
-
'PUT' = "PUT",
|
|
142
|
-
'DELETE' = "DELETE",
|
|
143
|
-
'PATCH' = "PATCH",
|
|
144
|
-
'OPTIONS' = "OPTIONS",
|
|
145
|
-
'HEAD' = "HEAD"
|
|
146
|
-
}
|
|
1
|
+
import { OptionsBase } from '../../types';
|
|
2
|
+
export interface ApiService {
|
|
3
|
+
/**
|
|
4
|
+
* ## Execute a GET request towards an API function
|
|
5
|
+
*
|
|
6
|
+
* **Default Permissions:**
|
|
7
|
+
* - Any party may execute API functions with the `public` permission mode
|
|
8
|
+
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
9
|
+
*
|
|
10
|
+
* **Global Permissions:**
|
|
11
|
+
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
12
|
+
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
13
|
+
*
|
|
14
|
+
* @template T
|
|
15
|
+
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
16
|
+
* @param path {@link string} - The targeted route within the Function
|
|
17
|
+
* @param options {@link OptionsBase} - Additional options for the request.
|
|
18
|
+
* @returns {T} - A user defined type defining the response from the API function
|
|
19
|
+
*/
|
|
20
|
+
get<T>(functionName: string, path: string, options: OptionsBase): Promise<T>;
|
|
21
|
+
/**
|
|
22
|
+
* ## Execute a POST request towards an API function
|
|
23
|
+
*
|
|
24
|
+
* **Default Permissions:**
|
|
25
|
+
* - Any party may execute API functions with the `public` permission mode
|
|
26
|
+
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
27
|
+
*
|
|
28
|
+
* **Global Permissions:**
|
|
29
|
+
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
30
|
+
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
31
|
+
*
|
|
32
|
+
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
33
|
+
* @param path {@link string} - The targeted route within the Function
|
|
34
|
+
* @param data {@link U} - The data to be sent to the Function, the type may be user defined
|
|
35
|
+
* @param options {@link OptionsBase} - Additional options for the request
|
|
36
|
+
* @returns {@link T} - The response return from the Function, the type may be user defined
|
|
37
|
+
*/
|
|
38
|
+
post<T, U>(functionName: string, path: string, data: U, options: OptionsBase): Promise<T>;
|
|
39
|
+
/**
|
|
40
|
+
* ## Execute a PUT request towards an API function
|
|
41
|
+
*
|
|
42
|
+
* **Default Permissions:**
|
|
43
|
+
* - Any party may execute API functions with the `public` permission mode
|
|
44
|
+
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
45
|
+
*
|
|
46
|
+
* **Global Permissions:**
|
|
47
|
+
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
48
|
+
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
49
|
+
*
|
|
50
|
+
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
51
|
+
* @param path {@link string} - The targeted route within the Function
|
|
52
|
+
* @param data {@link U} - The data to be sent to the Function, the type may be user defined
|
|
53
|
+
* @param options {@link OptionsBase} - Additional options for the request
|
|
54
|
+
* @returns {@link T} - The response return from the Function, the type may be user defined
|
|
55
|
+
*/
|
|
56
|
+
put<T, U>(functionName: string, path: string, data: U, options: OptionsBase): Promise<T>;
|
|
57
|
+
/**
|
|
58
|
+
* ## Execute a DELETE request towards an API function
|
|
59
|
+
*
|
|
60
|
+
* **Default Permissions:**
|
|
61
|
+
* - Any party may execute API functions with the `public` permission mode
|
|
62
|
+
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
63
|
+
*
|
|
64
|
+
* **Global Permissions:**
|
|
65
|
+
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
66
|
+
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
67
|
+
*
|
|
68
|
+
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
69
|
+
* @param path {@link string} - The targeted route within the Function
|
|
70
|
+
* @param options {@link OptionsBase} - Additional options for the request
|
|
71
|
+
* @returns {@link T} - The response return from the Function, the type may be user defined
|
|
72
|
+
*/
|
|
73
|
+
delete<T>(functionName: string, path: string, options: OptionsBase): Promise<T>;
|
|
74
|
+
/**
|
|
75
|
+
* ## Execute a PATCH request towards an API function
|
|
76
|
+
*
|
|
77
|
+
* **Default Permissions:**
|
|
78
|
+
* - Any party may execute API functions with the `public` permission mode
|
|
79
|
+
* - Any authenticated user may execute API functions with the `allUsers` permission mode
|
|
80
|
+
*
|
|
81
|
+
* **Global Permissions:**
|
|
82
|
+
* - `EXECUTE_API_FUNCTION` - A user may execute all API functions
|
|
83
|
+
* - `EXECUTE_API_FUNCTION:{FUNCTION_NAME}` - A user may execute the API function specified by the FUNCTION_NAME
|
|
84
|
+
*
|
|
85
|
+
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
86
|
+
* @param path {@link string} - The targeted route within the Function
|
|
87
|
+
* @param data {@link U} - The data to be sent to the Function, the type may be user defined
|
|
88
|
+
* @param options {@link OptionsBase} - Additional options for the request
|
|
89
|
+
* @returns {@link T} - The response return from the Function, the type may be user defined
|
|
90
|
+
*/
|
|
91
|
+
patch<T, U>(functionName: string, path: string, data: U, options: OptionsBase): Promise<T>;
|
|
92
|
+
}
|
|
93
|
+
export interface ApiFunctionRequestObject {
|
|
94
|
+
/** The payload formation version of the AWS API Gateway. */
|
|
95
|
+
version: '2.0';
|
|
96
|
+
/** The path portion of the URL that comes after the Function name. */
|
|
97
|
+
rawPath: string;
|
|
98
|
+
/** The unprocessed query string of the incoming HTTP request including the starting question mark. */
|
|
99
|
+
rawQueryString: string;
|
|
100
|
+
/**
|
|
101
|
+
* The headers of the incoming HTTP request.
|
|
102
|
+
* It is structured as an object, where each key-value pair corresponds to a header name and its value.
|
|
103
|
+
* */
|
|
104
|
+
headers: Record<string, string>;
|
|
105
|
+
requestContext: {
|
|
106
|
+
http: {
|
|
107
|
+
/** The HTTP method used to target the API function. */
|
|
108
|
+
method: ApiFunctionRequestMethod;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
/** The body of the incoming HTTP request as string. It can be Base64-encoded based on the isBase64Encoded property. */
|
|
112
|
+
body: string;
|
|
113
|
+
/** The isBase64Encoded property indicates if the body property of the request object has been Base64-encoded. */
|
|
114
|
+
isBase64Encoded: boolean;
|
|
115
|
+
}
|
|
116
|
+
export interface ApiFunctionResponseObject {
|
|
117
|
+
/**
|
|
118
|
+
* The statusCode field resolves to the status code in the HTTP response.
|
|
119
|
+
* The value can be in the 200 - 499 range.
|
|
120
|
+
* */
|
|
121
|
+
statusCode: number;
|
|
122
|
+
/**
|
|
123
|
+
* The headers field resolves to the headers in the HTTP response.
|
|
124
|
+
* It is structured as an object, where each key-value pair corresponds to a header name and its value.
|
|
125
|
+
* */
|
|
126
|
+
headers?: Record<string, string>;
|
|
127
|
+
/**
|
|
128
|
+
* The body field resolves to the body in the HTTP response.
|
|
129
|
+
* In order to include binary data within a body, such as images or audio files, it is necessary to convert it into a Base64 string and assign it to the body field of the response object. Additionally, the isBase64Encoded field must be set to true.
|
|
130
|
+
* If the response body does not contain binary data, you can directly include the data in its original format.
|
|
131
|
+
*/
|
|
132
|
+
body?: any;
|
|
133
|
+
/**
|
|
134
|
+
* The isBase64Encoded field must be set to true if the body field of the response object is a Base64 encoded string representing the raw response body.
|
|
135
|
+
* */
|
|
136
|
+
isBase64Encoded?: boolean;
|
|
137
|
+
}
|
|
138
|
+
export declare enum ApiFunctionRequestMethod {
|
|
139
|
+
'GET' = "GET",
|
|
140
|
+
'POST' = "POST",
|
|
141
|
+
'PUT' = "PUT",
|
|
142
|
+
'DELETE' = "DELETE",
|
|
143
|
+
'PATCH' = "PATCH",
|
|
144
|
+
'OPTIONS' = "OPTIONS",
|
|
145
|
+
'HEAD' = "HEAD"
|
|
146
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpInstance } from '../../../http/types';
|
|
2
|
-
import { HttpClient } from '../../http-client';
|
|
3
|
-
import { ApiRequestService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => ApiRequestService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import { HttpInstance } from '../../../http/types';
|
|
2
|
+
import { HttpClient } from '../../http-client';
|
|
3
|
+
import { ApiRequestService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => ApiRequestService;
|
|
5
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpInstance } from '../../../../http/types';
|
|
2
|
-
import { HttpClient } from '../../../http-client';
|
|
3
|
-
import { ApiRequestLogsService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => ApiRequestLogsService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import { HttpInstance } from '../../../../http/types';
|
|
2
|
+
import { HttpClient } from '../../../http-client';
|
|
3
|
+
import { ApiRequestLogsService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => ApiRequestLogsService;
|
|
5
|
+
export default _default;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { ObjectId, OptionsWithRql } from '../../../types';
|
|
2
|
-
import { LogLine } from '../../logs/types';
|
|
3
|
-
export interface ApiRequestLogsService {
|
|
4
|
-
/**
|
|
5
|
-
* ## Retrieve a list of logs for an API Request
|
|
6
|
-
*
|
|
7
|
-
* **Global Permissions:**
|
|
8
|
-
* - `VIEW_API_FUNCTION_REQUEST_LOGS` - **Required** for this endpoint
|
|
9
|
-
*
|
|
10
|
-
* @param apiRequestId {@link string} The id of the targeted API Request
|
|
11
|
-
* @param options {@link OptionsWithRql} - Additional options for the request
|
|
12
|
-
* @returns An array of API Request logs {@link LogLine LineLog[]}
|
|
13
|
-
*/
|
|
14
|
-
find(apiRequestId: ObjectId, options?: OptionsWithRql): Promise<LogLine[]>;
|
|
15
|
-
/**
|
|
16
|
-
* ## Retrieve the first queried API Request log
|
|
17
|
-
*
|
|
18
|
-
* **Global Permissions:**
|
|
19
|
-
* - `VIEW_API_FUNCTION_REQUEST_LOGS` - **Required** for this endpoint
|
|
20
|
-
*
|
|
21
|
-
* @param apiRequestId {@link string} The id of the targeted API Request
|
|
22
|
-
* @param options {@link OptionsWithRql} - Additional options for the request
|
|
23
|
-
* @returns The first element of the queried API Request logs {@link LogLine} */
|
|
24
|
-
findFirst(apiRequestId: ObjectId, options?: OptionsWithRql): Promise<LogLine>;
|
|
25
|
-
}
|
|
1
|
+
import { ObjectId, OptionsWithRql } from '../../../types';
|
|
2
|
+
import { LogLine } from '../../logs/types';
|
|
3
|
+
export interface ApiRequestLogsService {
|
|
4
|
+
/**
|
|
5
|
+
* ## Retrieve a list of logs for an API Request
|
|
6
|
+
*
|
|
7
|
+
* **Global Permissions:**
|
|
8
|
+
* - `VIEW_API_FUNCTION_REQUEST_LOGS` - **Required** for this endpoint
|
|
9
|
+
*
|
|
10
|
+
* @param apiRequestId {@link string} The id of the targeted API Request
|
|
11
|
+
* @param options {@link OptionsWithRql} - Additional options for the request
|
|
12
|
+
* @returns An array of API Request logs {@link LogLine LineLog[]}
|
|
13
|
+
*/
|
|
14
|
+
find(apiRequestId: ObjectId, options?: OptionsWithRql): Promise<LogLine[]>;
|
|
15
|
+
/**
|
|
16
|
+
* ## Retrieve the first queried API Request log
|
|
17
|
+
*
|
|
18
|
+
* **Global Permissions:**
|
|
19
|
+
* - `VIEW_API_FUNCTION_REQUEST_LOGS` - **Required** for this endpoint
|
|
20
|
+
*
|
|
21
|
+
* @param apiRequestId {@link string} The id of the targeted API Request
|
|
22
|
+
* @param options {@link OptionsWithRql} - Additional options for the request
|
|
23
|
+
* @returns The first element of the queried API Request logs {@link LogLine} */
|
|
24
|
+
findFirst(apiRequestId: ObjectId, options?: OptionsWithRql): Promise<LogLine>;
|
|
25
|
+
}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { FindAllIterator } from '../../helpers';
|
|
2
|
-
import { ObjectId, OptionsWithRql, PagedResultWithPager } from '../../types';
|
|
3
|
-
import { ApiFunctionRequestMethod } from '../api/types';
|
|
4
|
-
import { ApiRequestLogsService } from './logs/types';
|
|
5
|
-
export interface ApiRequestService {
|
|
6
|
-
/**
|
|
7
|
-
* ## Retrieve a paged list of API Requests
|
|
8
|
-
*
|
|
9
|
-
* **Global Permissions:**
|
|
10
|
-
* - `VIEW_API_FUNCTION_REQUESTS` - Allows a user to view API Requests
|
|
11
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
12
|
-
* @returns A paged list of API Requests {@link PagedResultWithPager PagedResultWithPager<ApiRequest>}
|
|
13
|
-
*/
|
|
14
|
-
find(options?: OptionsWithRql): Promise<PagedResultWithPager<ApiRequest>>;
|
|
15
|
-
/**
|
|
16
|
-
* ## Retrieve a list of all API Requests
|
|
17
|
-
*
|
|
18
|
-
* **Global Permissions:**
|
|
19
|
-
* - `VIEW_API_FUNCTION_REQUESTS` - Allows a user to view API Requests
|
|
20
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
21
|
-
* @returns An array of API Requests {@link ApiRequest ApiRequest[]}
|
|
22
|
-
* @throws {@link Error} Do not pass in limit operator with findAll
|
|
23
|
-
*/
|
|
24
|
-
findAll(options?: OptionsWithRql): Promise<ApiRequest[]>;
|
|
25
|
-
/**
|
|
26
|
-
* ## Retrieve a paged list of API Requests
|
|
27
|
-
*
|
|
28
|
-
* **Global Permissions:**
|
|
29
|
-
* - `VIEW_API_FUNCTION_REQUESTS` - Allows a user to view API Requests
|
|
30
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
31
|
-
* @returns An iterator for the queried API Requests {@link FindAllIterator FindAllIterator<ApiRequest>}
|
|
32
|
-
*/
|
|
33
|
-
findAllIterator(options?: OptionsWithRql): FindAllIterator<ApiRequest>;
|
|
34
|
-
/**
|
|
35
|
-
* ## Retrieve the first queried API Request
|
|
36
|
-
*
|
|
37
|
-
* **Global Permissions:**
|
|
38
|
-
* - `VIEW_API_FUNCTION_REQUESTS` - Allows a user to view API Requests
|
|
39
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
40
|
-
* @returns The first element of the queried API Requests {@link ApiRequest}
|
|
41
|
-
*/
|
|
42
|
-
findFirst(options?: OptionsWithRql): Promise<ApiRequest>;
|
|
43
|
-
logs: ApiRequestLogsService;
|
|
44
|
-
}
|
|
45
|
-
export interface ApiRequest {
|
|
46
|
-
/** The Extra Horizon document id */
|
|
47
|
-
id: ObjectId;
|
|
48
|
-
/** The unique identifier amongst all Functions */
|
|
49
|
-
functionName: string;
|
|
50
|
-
/** The HTTP method used to target the API function. */
|
|
51
|
-
method: ApiFunctionRequestMethod;
|
|
52
|
-
/** The path portion of the URL that comes after the Function name. */
|
|
53
|
-
path: string;
|
|
54
|
-
/** The id of the user making the request */
|
|
55
|
-
userId?: ObjectId;
|
|
56
|
-
/** The application id of the oAuth application */
|
|
57
|
-
applicationId?: ObjectId;
|
|
58
|
-
/** The status code of the API Function's response or of a thrown error during its lifecycle */
|
|
59
|
-
statusCode: number;
|
|
60
|
-
/** The time the API Function was executed */
|
|
61
|
-
timestamp: Date;
|
|
62
|
-
/** The duration of the API Function execution in seconds */
|
|
63
|
-
duration: number;
|
|
64
|
-
/** An error thrown during the lifecycle of the API Function's execution */
|
|
65
|
-
error?: ApiRequestError;
|
|
66
|
-
}
|
|
67
|
-
export interface ApiRequestError {
|
|
68
|
-
/** The name of the caught error */
|
|
69
|
-
name: string;
|
|
70
|
-
/** The message of the caught error */
|
|
71
|
-
message: string;
|
|
72
|
-
/** The error type defines where the error occurred during the API Function lifecycle and can have one of the following values:
|
|
73
|
-
* - `invocation` - errors that occur before invocation of the API Function
|
|
74
|
-
* - `runtime` - errors that occur during the execution of the API Function
|
|
75
|
-
* - `response` - errors that occur during the response validation after the API Function has been executed
|
|
76
|
-
*/
|
|
77
|
-
type: ApiRequestErrorType;
|
|
78
|
-
}
|
|
79
|
-
export declare enum ApiRequestErrorType {
|
|
80
|
-
INVOCATION = "invocation",
|
|
81
|
-
RUNTIME = "runtime",
|
|
82
|
-
RESPONSE = "response"
|
|
83
|
-
}
|
|
1
|
+
import { FindAllIterator } from '../../helpers';
|
|
2
|
+
import { ObjectId, OptionsWithRql, PagedResultWithPager } from '../../types';
|
|
3
|
+
import { ApiFunctionRequestMethod } from '../api/types';
|
|
4
|
+
import { ApiRequestLogsService } from './logs/types';
|
|
5
|
+
export interface ApiRequestService {
|
|
6
|
+
/**
|
|
7
|
+
* ## Retrieve a paged list of API Requests
|
|
8
|
+
*
|
|
9
|
+
* **Global Permissions:**
|
|
10
|
+
* - `VIEW_API_FUNCTION_REQUESTS` - Allows a user to view API Requests
|
|
11
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
12
|
+
* @returns A paged list of API Requests {@link PagedResultWithPager PagedResultWithPager<ApiRequest>}
|
|
13
|
+
*/
|
|
14
|
+
find(options?: OptionsWithRql): Promise<PagedResultWithPager<ApiRequest>>;
|
|
15
|
+
/**
|
|
16
|
+
* ## Retrieve a list of all API Requests
|
|
17
|
+
*
|
|
18
|
+
* **Global Permissions:**
|
|
19
|
+
* - `VIEW_API_FUNCTION_REQUESTS` - Allows a user to view API Requests
|
|
20
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
21
|
+
* @returns An array of API Requests {@link ApiRequest ApiRequest[]}
|
|
22
|
+
* @throws {@link Error} Do not pass in limit operator with findAll
|
|
23
|
+
*/
|
|
24
|
+
findAll(options?: OptionsWithRql): Promise<ApiRequest[]>;
|
|
25
|
+
/**
|
|
26
|
+
* ## Retrieve a paged list of API Requests
|
|
27
|
+
*
|
|
28
|
+
* **Global Permissions:**
|
|
29
|
+
* - `VIEW_API_FUNCTION_REQUESTS` - Allows a user to view API Requests
|
|
30
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
31
|
+
* @returns An iterator for the queried API Requests {@link FindAllIterator FindAllIterator<ApiRequest>}
|
|
32
|
+
*/
|
|
33
|
+
findAllIterator(options?: OptionsWithRql): FindAllIterator<ApiRequest>;
|
|
34
|
+
/**
|
|
35
|
+
* ## Retrieve the first queried API Request
|
|
36
|
+
*
|
|
37
|
+
* **Global Permissions:**
|
|
38
|
+
* - `VIEW_API_FUNCTION_REQUESTS` - Allows a user to view API Requests
|
|
39
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
40
|
+
* @returns The first element of the queried API Requests {@link ApiRequest}
|
|
41
|
+
*/
|
|
42
|
+
findFirst(options?: OptionsWithRql): Promise<ApiRequest>;
|
|
43
|
+
logs: ApiRequestLogsService;
|
|
44
|
+
}
|
|
45
|
+
export interface ApiRequest {
|
|
46
|
+
/** The Extra Horizon document id */
|
|
47
|
+
id: ObjectId;
|
|
48
|
+
/** The unique identifier amongst all Functions */
|
|
49
|
+
functionName: string;
|
|
50
|
+
/** The HTTP method used to target the API function. */
|
|
51
|
+
method: ApiFunctionRequestMethod;
|
|
52
|
+
/** The path portion of the URL that comes after the Function name. */
|
|
53
|
+
path: string;
|
|
54
|
+
/** The id of the user making the request */
|
|
55
|
+
userId?: ObjectId;
|
|
56
|
+
/** The application id of the oAuth application */
|
|
57
|
+
applicationId?: ObjectId;
|
|
58
|
+
/** The status code of the API Function's response or of a thrown error during its lifecycle */
|
|
59
|
+
statusCode: number;
|
|
60
|
+
/** The time the API Function was executed */
|
|
61
|
+
timestamp: Date;
|
|
62
|
+
/** The duration of the API Function execution in seconds */
|
|
63
|
+
duration: number;
|
|
64
|
+
/** An error thrown during the lifecycle of the API Function's execution */
|
|
65
|
+
error?: ApiRequestError;
|
|
66
|
+
}
|
|
67
|
+
export interface ApiRequestError {
|
|
68
|
+
/** The name of the caught error */
|
|
69
|
+
name: string;
|
|
70
|
+
/** The message of the caught error */
|
|
71
|
+
message: string;
|
|
72
|
+
/** The error type defines where the error occurred during the API Function lifecycle and can have one of the following values:
|
|
73
|
+
* - `invocation` - errors that occur before invocation of the API Function
|
|
74
|
+
* - `runtime` - errors that occur during the execution of the API Function
|
|
75
|
+
* - `response` - errors that occur during the response validation after the API Function has been executed
|
|
76
|
+
*/
|
|
77
|
+
type: ApiRequestErrorType;
|
|
78
|
+
}
|
|
79
|
+
export declare enum ApiRequestErrorType {
|
|
80
|
+
INVOCATION = "invocation",
|
|
81
|
+
RUNTIME = "runtime",
|
|
82
|
+
RESPONSE = "response"
|
|
83
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpInstance } from '../../../http/types';
|
|
2
|
-
import { HttpClient } from '../../http-client';
|
|
3
|
-
import { FunctionsService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => FunctionsService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import { HttpInstance } from '../../../http/types';
|
|
2
|
+
import { HttpClient } from '../../http-client';
|
|
3
|
+
import { FunctionsService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => FunctionsService;
|
|
5
|
+
export default _default;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { OptionsBase } from '../../types';
|
|
2
|
-
import { Task } from '../types';
|
|
3
|
-
export interface FunctionsService {
|
|
4
|
-
/**
|
|
5
|
-
* ## Execute a Function directly
|
|
6
|
-
*
|
|
7
|
-
* A Function may be executed directly, the function will be executed synchronously and the response may be awaited by the caller.
|
|
8
|
-
*
|
|
9
|
-
* **Default Permissions:**
|
|
10
|
-
* - Any party may execute Functions with the `public` permission mode
|
|
11
|
-
* - Any authenticated user may execute Functions with the `allUsers` permission mode
|
|
12
|
-
*
|
|
13
|
-
* **Global Permissions:**
|
|
14
|
-
* - `EXECUTE_TASK_FUNCTION` - A user may execute all Functions
|
|
15
|
-
* - `EXECUTE_TASK_FUNCTION:{FUNCTION_NAME}` - A user may execute the Function specified by the FUNCTION_NAME
|
|
16
|
-
*
|
|
17
|
-
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
18
|
-
* @param data {@link U} - The data to be sent to the Function, the type may be specified by the user
|
|
19
|
-
* @param options {@link OptionsBase} - Additional options for the request
|
|
20
|
-
* @returns {@link DirectExecutionResponse} - The response returned from the Function, the response data and results may be user defined
|
|
21
|
-
*/
|
|
22
|
-
execute<T = any, U = any>(functionName: string, data?: U, options?: OptionsBase): Promise<DirectExecutionResponse<T, U>>;
|
|
23
|
-
}
|
|
24
|
-
export interface DirectExecutionResponse<T, U> extends Task<U> {
|
|
25
|
-
/** The result of the Function execution, this may be user defined */
|
|
26
|
-
result: T;
|
|
27
|
-
}
|
|
1
|
+
import { OptionsBase } from '../../types';
|
|
2
|
+
import { Task } from '../types';
|
|
3
|
+
export interface FunctionsService {
|
|
4
|
+
/**
|
|
5
|
+
* ## Execute a Function directly
|
|
6
|
+
*
|
|
7
|
+
* A Function may be executed directly, the function will be executed synchronously and the response may be awaited by the caller.
|
|
8
|
+
*
|
|
9
|
+
* **Default Permissions:**
|
|
10
|
+
* - Any party may execute Functions with the `public` permission mode
|
|
11
|
+
* - Any authenticated user may execute Functions with the `allUsers` permission mode
|
|
12
|
+
*
|
|
13
|
+
* **Global Permissions:**
|
|
14
|
+
* - `EXECUTE_TASK_FUNCTION` - A user may execute all Functions
|
|
15
|
+
* - `EXECUTE_TASK_FUNCTION:{FUNCTION_NAME}` - A user may execute the Function specified by the FUNCTION_NAME
|
|
16
|
+
*
|
|
17
|
+
* @param functionName {@link string} - The functionName property serves as the unique identifier amongst all Functions
|
|
18
|
+
* @param data {@link U} - The data to be sent to the Function, the type may be specified by the user
|
|
19
|
+
* @param options {@link OptionsBase} - Additional options for the request
|
|
20
|
+
* @returns {@link DirectExecutionResponse} - The response returned from the Function, the response data and results may be user defined
|
|
21
|
+
*/
|
|
22
|
+
execute<T = any, U = any>(functionName: string, data?: U, options?: OptionsBase): Promise<DirectExecutionResponse<T, U>>;
|
|
23
|
+
}
|
|
24
|
+
export interface DirectExecutionResponse<T, U> extends Task<U> {
|
|
25
|
+
/** The result of the Function execution, this may be user defined */
|
|
26
|
+
result: T;
|
|
27
|
+
}
|