terse-cli 0.3.1 → 0.3.2

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.
@@ -0,0 +1,20 @@
1
+ import { IntegrationType } from "terse-types";
2
+ import { IntegrationModule, type ModuleRenderInput } from "../IntegrationModule.js";
3
+ export declare class ApolloModule extends IntegrationModule<ApolloInstanceData, ApolloSectionContext> {
4
+ readonly type = IntegrationType.APOLLO;
5
+ readonly summaryLabel = "Apollo";
6
+ protected readonly sectionImports: string[];
7
+ fetchInstances(apiKey: string): Promise<ApolloInstanceData[]>;
8
+ instanceId(instance: ApolloInstanceData): string;
9
+ protected get skillsAggregateLines(): readonly string[];
10
+ protected prepareSection(input: ModuleRenderInput<ApolloInstanceData>): ApolloSectionContext;
11
+ }
12
+ export interface ApolloInstanceData {
13
+ id: string;
14
+ displayName: string;
15
+ }
16
+ export interface ApolloSectionContext {
17
+ id: string;
18
+ skillToolType: string;
19
+ }
20
+ //# sourceMappingURL=ApolloModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApolloModule.d.ts","sourceRoot":"","sources":["../../../../../src/providers/typescript/modules/apollo/ApolloModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAE,MAAM,aAAa,CAAA;AAGxD,OAAO,EAAE,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAGnF,qBAAa,YAAa,SAAQ,iBAAiB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;IACzF,QAAQ,CAAC,IAAI,0BAAyB;IACtC,QAAQ,CAAC,YAAY,YAAW;IAChC,SAAS,CAAC,QAAQ,CAAC,cAAc,WAAuC;IAElE,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAKnE,UAAU,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM;IAIhD,SAAS,KAAK,oBAAoB,IAAI,SAAS,MAAM,EAAE,CAEtD;IAED,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,oBAAoB;CAO/F;AAED,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;CACxB"}
@@ -0,0 +1,27 @@
1
+ import { ApiRoutes, IntegrationType } from "terse-types";
2
+ import { fetchWithAuth } from "../../../../api.js";
3
+ import { IntegrationModule } from "../IntegrationModule.js";
4
+ import { buildSkillToolType } from "../moduleHelpers.js";
5
+ export class ApolloModule extends IntegrationModule {
6
+ type = IntegrationType.APOLLO;
7
+ summaryLabel = "Apollo";
8
+ sectionImports = ["ApolloOutputConfig", "TypedSkill"];
9
+ async fetchInstances(apiKey) {
10
+ const instances = await fetchWithAuth(ApiRoutes.APOLLO.INTEGRATIONS, apiKey);
11
+ return instances.map(inst => ({ id: inst.id, displayName: "Apollo" }));
12
+ }
13
+ instanceId(instance) {
14
+ return instance.id;
15
+ }
16
+ get skillsAggregateLines() {
17
+ return [" /** Apollo — enrich people and companies and search for prospects */", " apollo: apolloSkill,"];
18
+ }
19
+ prepareSection(input) {
20
+ const inst = this.requireInstance(input);
21
+ return {
22
+ id: inst.id,
23
+ skillToolType: buildSkillToolType(input.tools)
24
+ };
25
+ }
26
+ }
27
+ //# sourceMappingURL=ApolloModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApolloModule.js","sourceRoot":"","sources":["../../../../../src/providers/typescript/modules/apollo/ApolloModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAA0B,MAAM,yBAAyB,CAAA;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAExD,MAAM,OAAO,YAAa,SAAQ,iBAA2D;IAChF,IAAI,GAAG,eAAe,CAAC,MAAM,CAAA;IAC7B,YAAY,GAAG,QAAQ,CAAA;IACb,cAAc,GAAG,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAA;IAExE,KAAK,CAAC,cAAc,CAAC,MAAc;QAC/B,MAAM,SAAS,GAAG,MAAM,aAAa,CAAsB,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;QACjG,OAAO,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAA;IAC1E,CAAC;IAED,UAAU,CAAC,QAA4B;QACnC,OAAO,QAAQ,CAAC,EAAE,CAAA;IACtB,CAAC;IAED,IAAc,oBAAoB;QAC9B,OAAO,CAAC,0EAA0E,EAAE,0BAA0B,CAAC,CAAA;IACnH,CAAC;IAES,cAAc,CAAC,KAA4C;QACjE,MAAM,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAA;QACxC,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,aAAa,EAAE,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC;SACjD,CAAA;IACL,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -40,8 +40,8 @@
40
40
  "typescript": "^5.0.0",
41
41
  "workflow": "5.0.0-beta.19",
42
42
  "zod": "^4.3.6",
43
- "terse-sdk": "0.3.1",
44
- "terse-types": "0.1.1"
43
+ "terse-sdk": "0.3.2",
44
+ "terse-types": "0.1.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/luxon": "^3.7.1",