@major-tech/resource-client 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +67 -0
- package/dist/base.cjs +67 -0
- package/dist/base.cjs.map +7 -0
- package/dist/base.d.ts +20 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +41 -0
- package/dist/base.js.map +1 -0
- package/dist/clients/api-custom.cjs +44 -0
- package/dist/clients/api-custom.cjs.map +7 -0
- package/dist/clients/api-custom.d.ts +11 -0
- package/dist/clients/api-custom.d.ts.map +1 -0
- package/dist/clients/api-custom.js +17 -0
- package/dist/clients/api-custom.js.map +1 -0
- package/dist/clients/hubspot.cjs +43 -0
- package/dist/clients/hubspot.cjs.map +7 -0
- package/dist/clients/hubspot.d.ts +13 -0
- package/dist/clients/hubspot.d.ts.map +1 -0
- package/dist/clients/hubspot.js +16 -0
- package/dist/clients/hubspot.js.map +1 -0
- package/dist/clients/postgres.cjs +41 -0
- package/dist/clients/postgres.cjs.map +7 -0
- package/dist/clients/postgres.d.ts +6 -0
- package/dist/clients/postgres.d.ts.map +1 -0
- package/dist/clients/postgres.js +14 -0
- package/dist/clients/postgres.js.map +1 -0
- package/dist/clients/s3.cjs +41 -0
- package/dist/clients/s3.cjs.map +7 -0
- package/dist/clients/s3.d.ts +8 -0
- package/dist/clients/s3.d.ts.map +1 -0
- package/dist/clients/s3.js +14 -0
- package/dist/clients/s3.js.map +1 -0
- package/dist/errors.cjs +38 -0
- package/dist/errors.cjs.map +7 -0
- package/dist/errors.d.ts +10 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +15 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.cjs +37 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/api-custom.cjs +17 -0
- package/dist/schemas/api-custom.cjs.map +7 -0
- package/dist/schemas/api-custom.d.ts +21 -0
- package/dist/schemas/api-custom.d.ts.map +1 -0
- package/dist/schemas/api-custom.js +2 -0
- package/dist/schemas/api-custom.js.map +1 -0
- package/dist/schemas/api-hubspot.cjs +17 -0
- package/dist/schemas/api-hubspot.cjs.map +7 -0
- package/dist/schemas/api-hubspot.d.ts +20 -0
- package/dist/schemas/api-hubspot.d.ts.map +1 -0
- package/dist/schemas/api-hubspot.js +2 -0
- package/dist/schemas/api-hubspot.js.map +1 -0
- package/dist/schemas/common.cjs +17 -0
- package/dist/schemas/common.cjs.map +7 -0
- package/dist/schemas/common.d.ts +66 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +2 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/index.cjs +25 -0
- package/dist/schemas/index.cjs.map +7 -0
- package/dist/schemas/index.d.ts +17 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +9 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/postgres.cjs +17 -0
- package/dist/schemas/postgres.cjs.map +7 -0
- package/dist/schemas/postgres.d.ts +28 -0
- package/dist/schemas/postgres.d.ts.map +1 -0
- package/dist/schemas/postgres.js +2 -0
- package/dist/schemas/postgres.js.map +1 -0
- package/dist/schemas/request.cjs +17 -0
- package/dist/schemas/request.cjs.map +7 -0
- package/dist/schemas/request.d.ts +15 -0
- package/dist/schemas/request.d.ts.map +1 -0
- package/dist/schemas/request.js +2 -0
- package/dist/schemas/request.js.map +1 -0
- package/dist/schemas/response.cjs +17 -0
- package/dist/schemas/response.cjs.map +7 -0
- package/dist/schemas/response.d.ts +51 -0
- package/dist/schemas/response.d.ts.map +1 -0
- package/dist/schemas/response.js +2 -0
- package/dist/schemas/response.js.map +1 -0
- package/dist/schemas/s3.cjs +17 -0
- package/dist/schemas/s3.cjs.map +7 -0
- package/dist/schemas/s3.d.ts +41 -0
- package/dist/schemas/s3.d.ts.map +1 -0
- package/dist/schemas/s3.js +2 -0
- package/dist/schemas/s3.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/errors.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Error thrown when resource invocation fails\n * Contains the error message and optional HTTP status code\n */\nexport class ResourceInvokeError extends Error {\n readonly httpStatus?: number;\n readonly requestId?: string;\n\n constructor(\n message: string,\n httpStatus?: number,\n requestId?: string\n ) {\n super(message);\n this.name = \"ResourceInvokeError\";\n this.httpStatus = httpStatus;\n this.requestId = requestId;\n }\n}\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;;;;;AAIM,MAAO,4BAA4B,MAAK;EAJ9C,OAI8C;;;EACnC;EACA;EAET,YACE,SACA,YACA,WAAkB;AAElB,UAAM,OAAO;AACb,SAAK,OAAO;AACZ,SAAK,aAAa;AAClB,SAAK,YAAY;EACnB;;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error thrown when resource invocation fails
|
|
3
|
+
* Contains the error message and optional HTTP status code
|
|
4
|
+
*/
|
|
5
|
+
export declare class ResourceInvokeError extends Error {
|
|
6
|
+
readonly httpStatus?: number;
|
|
7
|
+
readonly requestId?: string;
|
|
8
|
+
constructor(message: string, httpStatus?: number, requestId?: string);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;gBAG1B,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM;CAOrB"}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error thrown when resource invocation fails
|
|
3
|
+
* Contains the error message and optional HTTP status code
|
|
4
|
+
*/
|
|
5
|
+
export class ResourceInvokeError extends Error {
|
|
6
|
+
httpStatus;
|
|
7
|
+
requestId;
|
|
8
|
+
constructor(message, httpStatus, requestId) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = "ResourceInvokeError";
|
|
11
|
+
this.httpStatus = httpStatus;
|
|
12
|
+
this.requestId = requestId;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IACnC,UAAU,CAAU;IACpB,SAAS,CAAU;IAE5B,YACE,OAAe,EACf,UAAmB,EACnB,SAAkB;QAElB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
__export(index_exports, {
|
|
22
|
+
BaseResourceClient: () => import_base.BaseResourceClient,
|
|
23
|
+
CustomApiResourceClient: () => import_api_custom.CustomApiResourceClient,
|
|
24
|
+
HubSpotResourceClient: () => import_hubspot.HubSpotResourceClient,
|
|
25
|
+
PostgresResourceClient: () => import_postgres.PostgresResourceClient,
|
|
26
|
+
ResourceInvokeError: () => import_errors.ResourceInvokeError,
|
|
27
|
+
S3ResourceClient: () => import_s3.S3ResourceClient
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
|
+
__reExport(index_exports, require("./schemas"), module.exports);
|
|
31
|
+
var import_base = require("./base");
|
|
32
|
+
var import_errors = require("./errors");
|
|
33
|
+
var import_postgres = require("./clients/postgres");
|
|
34
|
+
var import_api_custom = require("./clients/api-custom");
|
|
35
|
+
var import_hubspot = require("./clients/hubspot");
|
|
36
|
+
var import_s3 = require("./clients/s3");
|
|
37
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Export all schemas and types\nexport * from \"./schemas\";\n\n// Export base client and config\nexport { BaseResourceClient, type BaseClientConfig } from \"./base\";\n\n// Export errors\nexport { ResourceInvokeError } from \"./errors\";\n\n// Export individual clients\nexport { PostgresResourceClient } from \"./clients/postgres\";\nexport { CustomApiResourceClient } from \"./clients/api-custom\";\nexport { HubSpotResourceClient } from \"./clients/hubspot\";\nexport { S3ResourceClient } from \"./clients/s3\";\n\n// Re-export common response types for convenience\nexport type {\n DatabaseInvokeResponse,\n ApiInvokeResponse,\n StorageInvokeResponse,\n BaseInvokeSuccess,\n} from \"./schemas/response\";\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;AACA,0BAAc,sBADd;AAIA,kBAA0D;AAG1D,oBAAoC;AAGpC,sBAAuC;AACvC,wBAAwC;AACxC,qBAAsC;AACtC,gBAAiC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./schemas";
|
|
2
|
+
export { BaseResourceClient, type BaseClientConfig } from "./base";
|
|
3
|
+
export { ResourceInvokeError } from "./errors";
|
|
4
|
+
export { PostgresResourceClient } from "./clients/postgres";
|
|
5
|
+
export { CustomApiResourceClient } from "./clients/api-custom";
|
|
6
|
+
export { HubSpotResourceClient } from "./clients/hubspot";
|
|
7
|
+
export { S3ResourceClient } from "./clients/s3";
|
|
8
|
+
export type { DatabaseInvokeResponse, ApiInvokeResponse, StorageInvokeResponse, BaseInvokeSuccess, } from "./schemas/response";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAG1B,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,YAAY,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Export all schemas and types
|
|
2
|
+
export * from "./schemas";
|
|
3
|
+
// Export base client and config
|
|
4
|
+
export { BaseResourceClient } from "./base";
|
|
5
|
+
// Export errors
|
|
6
|
+
export { ResourceInvokeError } from "./errors";
|
|
7
|
+
// Export individual clients
|
|
8
|
+
export { PostgresResourceClient } from "./clients/postgres";
|
|
9
|
+
export { CustomApiResourceClient } from "./clients/api-custom";
|
|
10
|
+
export { HubSpotResourceClient } from "./clients/hubspot";
|
|
11
|
+
export { S3ResourceClient } from "./clients/s3";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,cAAc,WAAW,CAAC;AAE1B,gCAAgC;AAChC,OAAO,EAAE,kBAAkB,EAAyB,MAAM,QAAQ,CAAC;AAEnE,gBAAgB;AAChB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,4BAA4B;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var api_custom_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(api_custom_exports);
|
|
17
|
+
//# sourceMappingURL=api-custom.cjs.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BodyPayload, HttpMethod, QueryParams } from "./common";
|
|
2
|
+
/**
|
|
3
|
+
* Payload for invoking a custom API resource
|
|
4
|
+
*/
|
|
5
|
+
export interface ApiCustomPayload {
|
|
6
|
+
type: "api";
|
|
7
|
+
subtype: "custom";
|
|
8
|
+
/** HTTP method to use */
|
|
9
|
+
method: HttpMethod;
|
|
10
|
+
/** Path to append to the resource's base URL */
|
|
11
|
+
path: string;
|
|
12
|
+
/** Optional query parameters */
|
|
13
|
+
query?: QueryParams;
|
|
14
|
+
/** Optional additional headers to include */
|
|
15
|
+
headers?: Record<string, string>;
|
|
16
|
+
/** Optional request body */
|
|
17
|
+
body?: BodyPayload;
|
|
18
|
+
/** Optional timeout in milliseconds (default: 30000) */
|
|
19
|
+
timeoutMs?: number;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=api-custom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-custom.d.ts","sourceRoot":"","sources":["../../src/schemas/api-custom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,QAAQ,CAAC;IAClB,yBAAyB;IACzB,MAAM,EAAE,UAAU,CAAC;IACnB,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,4BAA4B;IAC5B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-custom.js","sourceRoot":"","sources":["../../src/schemas/api-custom.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var api_hubspot_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(api_hubspot_exports);
|
|
17
|
+
//# sourceMappingURL=api-hubspot.cjs.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { JsonBody, HttpMethod, QueryParams } from "./common";
|
|
2
|
+
/**
|
|
3
|
+
* Payload for invoking a HubSpot API resource
|
|
4
|
+
* Note: HubSpot authentication is handled automatically by the API
|
|
5
|
+
*/
|
|
6
|
+
export interface ApiHubSpotPayload {
|
|
7
|
+
type: "api";
|
|
8
|
+
subtype: "hubspot";
|
|
9
|
+
/** HTTP method to use */
|
|
10
|
+
method: HttpMethod;
|
|
11
|
+
/** HubSpot API path (e.g., "/crm/v3/objects/deals") */
|
|
12
|
+
path: string;
|
|
13
|
+
/** Optional query parameters */
|
|
14
|
+
query?: QueryParams;
|
|
15
|
+
/** Optional JSON body (HubSpot typically uses JSON) */
|
|
16
|
+
body?: JsonBody;
|
|
17
|
+
/** Optional timeout in milliseconds (default: 30000) */
|
|
18
|
+
timeoutMs?: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=api-hubspot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-hubspot.d.ts","sourceRoot":"","sources":["../../src/schemas/api-hubspot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,SAAS,CAAC;IACnB,yBAAyB;IACzB,MAAM,EAAE,UAAU,CAAC;IACnB,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,uDAAuD;IACvD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-hubspot.js","sourceRoot":"","sources":["../../src/schemas/api-hubspot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var common_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(common_exports);
|
|
17
|
+
//# sourceMappingURL=common.cjs.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP methods supported by API resources
|
|
3
|
+
*/
|
|
4
|
+
export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
5
|
+
/**
|
|
6
|
+
* Query parameters for HTTP requests
|
|
7
|
+
* Values can be single strings or arrays of strings
|
|
8
|
+
*/
|
|
9
|
+
export type QueryParams = Record<string, string | string[]>;
|
|
10
|
+
/**
|
|
11
|
+
* JSON body payload
|
|
12
|
+
*/
|
|
13
|
+
export interface JsonBody {
|
|
14
|
+
type: "json";
|
|
15
|
+
value: unknown;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Plain text body payload
|
|
19
|
+
*/
|
|
20
|
+
export interface TextBody {
|
|
21
|
+
type: "text";
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Binary/bytes body payload (base64 encoded)
|
|
26
|
+
*/
|
|
27
|
+
export interface BytesBody {
|
|
28
|
+
type: "bytes";
|
|
29
|
+
base64: string;
|
|
30
|
+
contentType: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Discriminated union of all body payload types
|
|
34
|
+
*/
|
|
35
|
+
export type BodyPayload = JsonBody | TextBody | BytesBody;
|
|
36
|
+
/**
|
|
37
|
+
* API result body - JSON response
|
|
38
|
+
*/
|
|
39
|
+
export interface ApiResultBodyJson {
|
|
40
|
+
kind: "json";
|
|
41
|
+
value: unknown;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* API result body - text response
|
|
45
|
+
*/
|
|
46
|
+
export interface ApiResultBodyText {
|
|
47
|
+
kind: "text";
|
|
48
|
+
value: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* API result body - binary response (base64 encoded)
|
|
52
|
+
*/
|
|
53
|
+
export interface ApiResultBodyBytes {
|
|
54
|
+
kind: "bytes";
|
|
55
|
+
base64: string;
|
|
56
|
+
contentType: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Complete API result with status and body
|
|
60
|
+
*/
|
|
61
|
+
export interface ApiResult {
|
|
62
|
+
kind: "api";
|
|
63
|
+
status: number;
|
|
64
|
+
body: ApiResultBodyJson | ApiResultBodyText | ApiResultBodyBytes;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;CAClE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var index_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(index_exports);
|
|
18
|
+
__reExport(index_exports, require("./common"), module.exports);
|
|
19
|
+
__reExport(index_exports, require("./postgres"), module.exports);
|
|
20
|
+
__reExport(index_exports, require("./s3"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("./api-custom"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("./api-hubspot"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./request"), module.exports);
|
|
24
|
+
__reExport(index_exports, require("./response"), module.exports);
|
|
25
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/schemas/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Re-export all types\nexport * from \"./common\";\nexport * from \"./postgres\";\nexport * from \"./s3\";\nexport * from \"./api-custom\";\nexport * from \"./api-hubspot\";\nexport * from \"./request\";\nexport * from \"./response\";\n\n// Import for discriminated union\nimport type { ApiCustomPayload } from \"./api-custom\";\nimport type { ApiHubSpotPayload } from \"./api-hubspot\";\nimport type { DbPostgresPayload } from \"./postgres\";\nimport type { StorageS3Payload } from \"./s3\";\n\n/**\n * Discriminated union of all resource payload types\n * Use the 'subtype' field to narrow the type\n */\nexport type ResourceInvokePayload =\n | ApiCustomPayload\n | DbPostgresPayload\n | ApiHubSpotPayload\n | StorageS3Payload;\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;AACA,0BAAc,qBADd;AAEA,0BAAc,uBAFd;AAGA,0BAAc,iBAHd;AAIA,0BAAc,yBAJd;AAKA,0BAAc,0BALd;AAMA,0BAAc,sBANd;AAOA,0BAAc,uBAPd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./common";
|
|
2
|
+
export * from "./postgres";
|
|
3
|
+
export * from "./s3";
|
|
4
|
+
export * from "./api-custom";
|
|
5
|
+
export * from "./api-hubspot";
|
|
6
|
+
export * from "./request";
|
|
7
|
+
export * from "./response";
|
|
8
|
+
import type { ApiCustomPayload } from "./api-custom";
|
|
9
|
+
import type { ApiHubSpotPayload } from "./api-hubspot";
|
|
10
|
+
import type { DbPostgresPayload } from "./postgres";
|
|
11
|
+
import type { StorageS3Payload } from "./s3";
|
|
12
|
+
/**
|
|
13
|
+
* Discriminated union of all resource payload types
|
|
14
|
+
* Use the 'subtype' field to narrow the type
|
|
15
|
+
*/
|
|
16
|
+
export type ResourceInvokePayload = ApiCustomPayload | DbPostgresPayload | ApiHubSpotPayload | StorageS3Payload;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC;AACrB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAG3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAC7B,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Re-export all types
|
|
2
|
+
export * from "./common";
|
|
3
|
+
export * from "./postgres";
|
|
4
|
+
export * from "./s3";
|
|
5
|
+
export * from "./api-custom";
|
|
6
|
+
export * from "./api-hubspot";
|
|
7
|
+
export * from "./request";
|
|
8
|
+
export * from "./response";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC;AACrB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var postgres_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(postgres_exports);
|
|
17
|
+
//# sourceMappingURL=postgres.cjs.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Primitive types allowed as database query parameters
|
|
3
|
+
*/
|
|
4
|
+
export type DbParamPrimitive = string | number | boolean | null;
|
|
5
|
+
/**
|
|
6
|
+
* Payload for invoking a PostgreSQL database resource
|
|
7
|
+
*/
|
|
8
|
+
export interface DbPostgresPayload {
|
|
9
|
+
type: "database";
|
|
10
|
+
subtype: "postgresql";
|
|
11
|
+
/** SQL query to execute */
|
|
12
|
+
sql: string;
|
|
13
|
+
/** Optional positional parameters for the query */
|
|
14
|
+
params?: DbParamPrimitive[];
|
|
15
|
+
/** Optional timeout in milliseconds */
|
|
16
|
+
timeoutMs?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Result from a database query execution
|
|
20
|
+
*/
|
|
21
|
+
export interface DbResult {
|
|
22
|
+
kind: "database";
|
|
23
|
+
/** Array of row objects returned by the query */
|
|
24
|
+
rows: Record<string, unknown>[];
|
|
25
|
+
/** Number of rows affected by the query (for INSERT, UPDATE, DELETE) */
|
|
26
|
+
rowsAffected?: number;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=postgres.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../src/schemas/postgres.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,YAAY,CAAC;IACtB,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,mDAAmD;IACnD,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres.js","sourceRoot":"","sources":["../../src/schemas/postgres.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var request_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(request_exports);
|
|
17
|
+
//# sourceMappingURL=request.cjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ResourceInvokePayload } from "./";
|
|
2
|
+
/**
|
|
3
|
+
* Request envelope for resource invocation
|
|
4
|
+
*/
|
|
5
|
+
export interface InvokeRequest {
|
|
6
|
+
/** The resource-specific payload */
|
|
7
|
+
payload: ResourceInvokePayload;
|
|
8
|
+
/**
|
|
9
|
+
* Invocation key - reused across multiple invocations of the same query.
|
|
10
|
+
* Can be searched in the source code for tracking purposes.
|
|
11
|
+
* Format: letters, numbers, and . _ : - (must start with letter or number)
|
|
12
|
+
*/
|
|
13
|
+
invocationKey: string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/schemas/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,IAAI,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,OAAO,EAAE,qBAAqB,CAAC;IAC/B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/schemas/request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var response_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(response_exports);
|
|
17
|
+
//# sourceMappingURL=response.cjs.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ApiResult } from "./common";
|
|
2
|
+
import type { DbResult } from "./postgres";
|
|
3
|
+
import type { StorageS3Result } from "./s3";
|
|
4
|
+
/**
|
|
5
|
+
* Union of all possible resource invocation result types
|
|
6
|
+
*/
|
|
7
|
+
export type ResourceInvokeSuccess = ApiResult | DbResult | StorageS3Result;
|
|
8
|
+
/**
|
|
9
|
+
* Base successful invocation response - generic over result type
|
|
10
|
+
*/
|
|
11
|
+
export interface BaseInvokeSuccess<T> {
|
|
12
|
+
ok: true;
|
|
13
|
+
/** Unique ID for this request */
|
|
14
|
+
requestId: string;
|
|
15
|
+
/** The result data from the resource */
|
|
16
|
+
result: T;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Successful invocation response (any resource type)
|
|
20
|
+
*/
|
|
21
|
+
export type InvokeSuccess = BaseInvokeSuccess<ResourceInvokeSuccess>;
|
|
22
|
+
/**
|
|
23
|
+
* Failed invocation response
|
|
24
|
+
*/
|
|
25
|
+
export interface InvokeFailure {
|
|
26
|
+
ok: false;
|
|
27
|
+
/** Unique ID for this request */
|
|
28
|
+
requestId: string;
|
|
29
|
+
/** Error details */
|
|
30
|
+
error: {
|
|
31
|
+
message: string;
|
|
32
|
+
httpStatus?: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Response envelope for resource invocation (any resource type)
|
|
37
|
+
*/
|
|
38
|
+
export type InvokeResponse = InvokeSuccess | InvokeFailure;
|
|
39
|
+
/**
|
|
40
|
+
* Response from database resource invocation
|
|
41
|
+
*/
|
|
42
|
+
export type DatabaseInvokeResponse = BaseInvokeSuccess<DbResult> | InvokeFailure;
|
|
43
|
+
/**
|
|
44
|
+
* Response from API resource invocation (custom or HubSpot)
|
|
45
|
+
*/
|
|
46
|
+
export type ApiInvokeResponse = BaseInvokeSuccess<ApiResult> | InvokeFailure;
|
|
47
|
+
/**
|
|
48
|
+
* Response from S3 storage resource invocation
|
|
49
|
+
*/
|
|
50
|
+
export type StorageInvokeResponse = BaseInvokeSuccess<StorageS3Result> | InvokeFailure;
|
|
51
|
+
//# sourceMappingURL=response.d.ts.map
|