@tangle-network/agent-integrations 0.40.1 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +6 -6
- package/dist/{chunk-IKCXDQVP.js → chunk-DQADH6DL.js} +2 -2
- package/dist/{chunk-OMLQCESJ.js → chunk-EQB46PIG.js} +7 -1
- package/dist/chunk-EQB46PIG.js.map +1 -0
- package/dist/{chunk-FAFQZJPZ.js → chunk-GA7RAMMB.js} +2 -2
- package/dist/{chunk-JXXPAUCX.js → chunk-JKYPEVMS.js} +51189 -46118
- package/dist/{chunk-JXXPAUCX.js.map → chunk-JKYPEVMS.js.map} +1 -1
- package/dist/{chunk-5QU3YCGR.js → chunk-NY4EII6I.js} +10 -2
- package/dist/chunk-NY4EII6I.js.map +1 -0
- package/dist/{chunk-TC5OMANJ.js → chunk-RFBI7NUC.js} +2 -2
- package/dist/connect/index.d.ts +2 -2
- package/dist/connect/index.js +2 -2
- package/dist/connectors/adapters/index.d.ts +290 -3
- package/dist/connectors/adapters/index.js +82 -2
- package/dist/connectors/index.d.ts +3 -3
- package/dist/connectors/index.js +82 -2
- package/dist/{consumer-Cxcpp_bi.d.ts → consumer-DQiAGxQ2.d.ts} +1 -1
- package/dist/consumer.d.ts +3 -3
- package/dist/consumer.js +2 -2
- package/dist/{core-types-DMDmeutI.d.ts → core-types-17jYpwtm.d.ts} +1 -1
- package/dist/coverage-catalog.d.ts +2 -2
- package/dist/{importers-BAVOQvUf.d.ts → importers-C_mQqIJP.d.ts} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +86 -6
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.js +6 -6
- package/dist/middleware/index.d.ts +2 -2
- package/dist/middleware/index.js +2 -2
- package/dist/registry.d.ts +2 -2
- package/dist/registry.js +6 -6
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +6 -6
- package/dist/specs.d.ts +2 -2
- package/dist/{tangle-id-BMScmNjp.d.ts → tangle-id-CpdEOacl.d.ts} +1 -1
- package/dist/{types-eAvAgnKr.d.ts → types-BLOYLnKZ.d.ts} +10 -3
- package/dist/webhooks/index.d.ts +11 -1
- package/dist/webhooks/index.js +31 -0
- package/dist/webhooks/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-5QU3YCGR.js.map +0 -1
- package/dist/chunk-OMLQCESJ.js.map +0 -1
- /package/dist/{chunk-IKCXDQVP.js.map → chunk-DQADH6DL.js.map} +0 -0
- /package/dist/{chunk-FAFQZJPZ.js.map → chunk-GA7RAMMB.js.map} +0 -0
- /package/dist/{chunk-TC5OMANJ.js.map → chunk-RFBI7NUC.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-IA5GCKM6.js";
|
|
9
9
|
import {
|
|
10
10
|
adapters_exports
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JKYPEVMS.js";
|
|
12
12
|
|
|
13
13
|
// src/activepieces-catalog.ts
|
|
14
14
|
import { readFileSync } from "fs";
|
|
@@ -255,6 +255,12 @@ function createConnectorAdapterProvider(options) {
|
|
|
255
255
|
"config_missing"
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
|
+
if (!auth.authorizationUrl) {
|
|
259
|
+
throw new IntegrationError(
|
|
260
|
+
`Connector ${request.connectorId} uses the ${auth.grantType ?? "authorization_code"} grant and has no authorization URL to redirect to.`,
|
|
261
|
+
"auth_not_supported"
|
|
262
|
+
);
|
|
263
|
+
}
|
|
258
264
|
const scopes = request.requestedScopes && request.requestedScopes.length > 0 ? request.requestedScopes : auth.scopes;
|
|
259
265
|
const url = new URL(auth.authorizationUrl);
|
|
260
266
|
url.searchParams.set("response_type", "code");
|
|
@@ -534,6 +540,8 @@ function mapCategory(category) {
|
|
|
534
540
|
if (category === "spreadsheet") return "database";
|
|
535
541
|
if (category === "doc") return "docs";
|
|
536
542
|
if (category === "commerce") return "workflow";
|
|
543
|
+
if (category === "sales-intelligence") return "crm";
|
|
544
|
+
if (category === "market-intelligence" || category === "hr") return "other";
|
|
537
545
|
return category === "other" ? "other" : category;
|
|
538
546
|
}
|
|
539
547
|
function inferDataClass(category) {
|
|
@@ -4304,4 +4312,4 @@ export {
|
|
|
4304
4312
|
signCapability,
|
|
4305
4313
|
verifyCapabilityToken
|
|
4306
4314
|
};
|
|
4307
|
-
//# sourceMappingURL=chunk-
|
|
4315
|
+
//# sourceMappingURL=chunk-NY4EII6I.js.map
|