Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions src/providers/7_shifts/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ export const sevenShiftsActions: ProviderActionDefinition[] = [
listUsersAction,
];

export type SevenShiftsActionName = (typeof sevenShiftsActions)[number]["name"];

export const sevenShiftsActionByName: ReadonlyMap<string, ProviderActionDefinition> = new Map(
sevenShiftsActions.map((action) => [action.name, action] as const),
);
3 changes: 1 addition & 2 deletions src/providers/7_shifts/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { CredentialValidationResult } from "../../core/types.ts";
import type { ApiKeyProviderContext, ProviderFetch } from "../provider-runtime.ts";
import type { SevenShiftsActionName } from "./actions.ts";

import {
compactObject,
Expand Down Expand Up @@ -41,7 +40,7 @@ interface SevenShiftsRequestOptions {
signal?: AbortSignal;
}

export const sevenShiftsActionHandlers: Record<SevenShiftsActionName, SevenShiftsActionHandler> = {
export const sevenShiftsActionHandlers: Record<string, SevenShiftsActionHandler> = {
async retrieve_identity(input, context) {
return {
identity: normalizeIdentityResponse(
Expand Down
2 changes: 0 additions & 2 deletions src/providers/abyssale/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,5 +254,3 @@ export const abyssaleActions: ActionDefinition[] = [
),
}),
];

export type AbyssaleActionName = (typeof abyssaleActions)[number]["name"];
3 changes: 1 addition & 2 deletions src/providers/abyssale/executors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { CredentialValidators, ExecutionContext, ProviderExecutors } from "../../core/types.ts";
import type { AbyssaleActionName } from "./actions.ts";

import {
compactObject,
Expand Down Expand Up @@ -29,7 +28,7 @@ interface AbyssaleActionContext {

type AbyssaleActionHandler = (input: Record<string, unknown>, context: AbyssaleActionContext) => Promise<unknown>;

export const abyssaleActionHandlers: Record<AbyssaleActionName, AbyssaleActionHandler> = {
export const abyssaleActionHandlers: Record<string, AbyssaleActionHandler> = {
list_designs(_input, context) {
return listDesigns(context);
},
Expand Down
2 changes: 1 addition & 1 deletion src/providers/accredible_certificates/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,4 @@ export const accredibleCertificatesActions: readonly ActionDefinition[] = [
credential: s.nullable(credentialSchema),
}),
}),
] as const satisfies readonly ActionDefinition[];
];
1 change: 0 additions & 1 deletion src/providers/acculynx/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,4 +483,3 @@ export const acculynxActions: ActionDefinition[] = [
outputSchema: initialAppointmentOutputSchema,
}),
];
export type AcculynxActionName = (typeof acculynxActions)[number]["name"];
3 changes: 1 addition & 2 deletions src/providers/acculynx/executors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { CredentialValidators, ExecutionContext, ProviderExecutors } from "../../core/types.ts";
import type { AcculynxActionName } from "./actions.ts";

import { compactObject, optionalRecord, optionalString, requiredString } from "../../core/cast.ts";
import {
Expand Down Expand Up @@ -29,7 +28,7 @@ interface AcculynxActionContext {

type AcculynxActionHandler = (input: Record<string, unknown>, context: AcculynxActionContext) => Promise<unknown>;

export const acculynxActionHandlers: Record<AcculynxActionName, AcculynxActionHandler> = {
export const acculynxActionHandlers: Record<string, AcculynxActionHandler> = {
get_company_settings: async (_input, context) => {
const payload = await acculynxRequestJson({
path: companySettingsPath,
Expand Down
203 changes: 0 additions & 203 deletions src/providers/accuweather/runtime.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/providers/active_trail/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export const activeTrailActions: readonly ActionDefinition[] = [
inputSchema: removeGroupMemberInputSchema,
outputSchema: deleteOutputSchema,
}),
] as const satisfies readonly ActionDefinition[];
];

function requireEmailOrSms(schema: JsonSchema): JsonSchema {
return {
Expand Down
2 changes: 0 additions & 2 deletions src/providers/activecampaign/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,3 @@ export const activecampaignActions: ActionDefinition[] = [
),
}),
];

export type ActivecampaignActionName = (typeof activecampaignActions)[number]["name"];
3 changes: 1 addition & 2 deletions src/providers/activecampaign/executors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { CredentialValidators, ExecutionContext, ProviderExecutors } from "../../core/types.ts";
import type { ActivecampaignActionName } from "./actions.ts";

import { compactObject, optionalInteger, optionalRecord, optionalString } from "../../core/cast.ts";
import {
Expand Down Expand Up @@ -39,7 +38,7 @@ interface ActivecampaignRequestOptions {
notFoundAsInvalidInput?: boolean;
}

export const activecampaignActionHandlers: Record<ActivecampaignActionName, ActivecampaignActionHandler> = {
export const activecampaignActionHandlers: Record<string, ActivecampaignActionHandler> = {
get_current_user(input, context) {
return getCurrentUser(input, context);
},
Expand Down
2 changes: 0 additions & 2 deletions src/providers/addressfinder/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,3 @@ export const addressfinderActions: ActionDefinition[] = [
outputSchema: verificationOutputSchema("New Zealand address"),
}),
];

export type AddressfinderActionName = (typeof addressfinderActions)[number]["name"];
3 changes: 1 addition & 2 deletions src/providers/addressfinder/executors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { CredentialValidators, ExecutionContext, ProviderExecutors } from "../../core/types.ts";
import type { AddressfinderActionName } from "./actions.ts";

import { compactObject, optionalBoolean, optionalInteger, optionalRecord, optionalString } from "../../core/cast.ts";
import {
Expand Down Expand Up @@ -29,7 +28,7 @@ type AddressfinderActionHandler = (
context: AddressfinderActionContext,
) => Promise<unknown>;

export const addressfinderActionHandlers: Record<AddressfinderActionName, AddressfinderActionHandler> = {
export const addressfinderActionHandlers: Record<string, AddressfinderActionHandler> = {
find_au_addresses(input, context) {
return executeAutocomplete("au", "/au/address/autocomplete", input, context);
},
Expand Down
2 changes: 0 additions & 2 deletions src/providers/addresszen/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,3 @@ export const addresszenActions: ActionDefinition[] = [
outputSchema: retrieveAddressUsaOutputSchema,
}),
];

export type AddresszenActionName = (typeof addresszenActions)[number]["name"];
3 changes: 1 addition & 2 deletions src/providers/addresszen/executors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { CredentialValidators, ExecutionContext, ProviderExecutors } from "../../core/types.ts";
import type { AddresszenActionName } from "./actions.ts";

import { compactObject, optionalInteger, optionalRecord, optionalString } from "../../core/cast.ts";
import {
Expand All @@ -23,7 +22,7 @@ interface AddresszenActionContext {

type AddresszenActionHandler = (input: Record<string, unknown>, context: AddresszenActionContext) => Promise<unknown>;

export const addresszenActionHandlers: Record<AddresszenActionName, AddresszenActionHandler> = {
export const addresszenActionHandlers: Record<string, AddresszenActionHandler> = {
async get_key_availability(_input, context) {
return requestKeyAvailability(context, "execute");
},
Expand Down
2 changes: 1 addition & 1 deletion src/providers/adobe_commerce/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@ export const adobeCommerceActions: readonly ActionDefinition[] = [
category: categorySchema,
}),
}),
] as const satisfies readonly ActionDefinition[];
];
2 changes: 0 additions & 2 deletions src/providers/adyen/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,3 @@ export const adyenActions: ActionDefinition[] = [
),
}),
];

export type AdyenActionName = (typeof adyenActions)[number]["name"];
3 changes: 1 addition & 2 deletions src/providers/adyen/executors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type {
ProviderExecutors,
ProviderProxyExecutor,
} from "../../core/types.ts";
import type { AdyenActionName } from "./actions.ts";

import { compactObject, nullableString, optionalInteger, optionalRecord, optionalString } from "../../core/cast.ts";
import {
Expand Down Expand Up @@ -40,7 +39,7 @@ interface AdyenListPayload {

type AdyenActionHandler = (input: Record<string, unknown>, context: AdyenActionContext) => Promise<unknown>;

export const adyenActionHandlers: Record<AdyenActionName, AdyenActionHandler> = {
export const adyenActionHandlers: Record<string, AdyenActionHandler> = {
get_api_credential(_input, context) {
return getApiCredential(context);
},
Expand Down
2 changes: 0 additions & 2 deletions src/providers/adyntel/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,3 @@ export const adyntelActions: ProviderActionDefinition[] = [
}),
}),
];

export type AdyntelActionName = (typeof adyntelActions)[number]["name"];
3 changes: 1 addition & 2 deletions src/providers/adyntel/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { CredentialValidationResult } from "../../core/types.ts";
import type { ApiKeyProviderContext } from "../provider-runtime.ts";
import type { AdyntelActionName } from "./actions.ts";

import { optionalInteger, optionalRecord, optionalString } from "../../core/cast.ts";
import {
Expand Down Expand Up @@ -45,7 +44,7 @@ interface AdyntelRequestOptions {
body: Record<string, unknown>;
}

export const adyntelActionHandlers: Record<AdyntelActionName, AdyntelActionHandler> = {
export const adyntelActionHandlers: Record<string, AdyntelActionHandler> = {
search_meta_ads(input, context) {
return requestAdSearch(context, input, "/facebook", [
"company_domain",
Expand Down
Loading
Loading