@base44-preview/sdk 0.8.17-pr.70.19d8c0f → 0.8.17-pr.70.d92fc2a
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.
|
@@ -84,16 +84,16 @@ export interface CustomIntegrationsModule {
|
|
|
84
84
|
/**
|
|
85
85
|
* Call a custom integration endpoint.
|
|
86
86
|
*
|
|
87
|
-
* @param slug - The integration's unique identifier
|
|
88
|
-
* @param
|
|
87
|
+
* @param slug - The integration's unique identifier, as defined by the workspace admin.
|
|
88
|
+
* @param operationId - The endpoint in `method:path` format. For example, `"get:/contacts"`, or `"post:/users/{id}"`. The method is the HTTP verb in lowercase and the path matches the OpenAPI specification.
|
|
89
89
|
* @param params - Optional parameters including payload, pathParams, and queryParams.
|
|
90
90
|
* @returns Promise resolving to the integration call response.
|
|
91
91
|
*
|
|
92
92
|
* @throws {Error} If slug is not provided.
|
|
93
|
-
* @throws {Error} If
|
|
94
|
-
* @throws {Base44Error} If the integration or
|
|
93
|
+
* @throws {Error} If operationId is not provided.
|
|
94
|
+
* @throws {Base44Error} If the integration or operation is not found (404).
|
|
95
95
|
* @throws {Base44Error} If the external API call fails (502).
|
|
96
96
|
* @throws {Base44Error} If the request times out (504).
|
|
97
97
|
*/
|
|
98
|
-
call(slug: string,
|
|
98
|
+
call(slug: string, operationId: string, params?: CustomIntegrationCallParams): Promise<CustomIntegrationCallResponse>;
|
|
99
99
|
}
|