@squidcloud/client 1.0.24 → 1.0.25
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.
|
@@ -25,6 +25,7 @@ export interface RunConfigurationRequest {
|
|
|
25
25
|
functionToRun: string;
|
|
26
26
|
params: Array<unknown>;
|
|
27
27
|
secrets?: RunSecrets;
|
|
28
|
+
executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
|
|
28
29
|
}
|
|
29
30
|
export type EvaluateRulesFunctionRequest = {
|
|
30
31
|
functionName: ServiceFunctionName;
|
|
@@ -33,6 +34,9 @@ export type EvaluateRulesFunctionRequest = {
|
|
|
33
34
|
export interface LoadJsPayload {
|
|
34
35
|
codeUrl: string;
|
|
35
36
|
}
|
|
37
|
+
export declare const executeFunctionSecureAnnotationType: Array<ExecuteFunctionAnnotationType>;
|
|
38
|
+
export type ExecuteFunctionSecureAnnotationType = 'secureQuery' | 'secureMutation' | 'secureExecutable' | 'secureNamedQuery' | 'secureGraphQL' | 'secureApi';
|
|
39
|
+
export type ExecuteFunctionAnnotationType = 'executable' | 'webhook' | 'scheduler' | 'trigger' | 'transformRead' | 'transformWrite' | 'metadata' | ExecuteFunctionSecureAnnotationType;
|
|
36
40
|
export interface ExecuteFunctionPayload {
|
|
37
41
|
functionName: string;
|
|
38
42
|
params: Array<unknown>;
|
|
@@ -41,7 +45,10 @@ export interface ExecuteFunctionPayload {
|
|
|
41
45
|
secrets?: Record<SecretKey, SecretValue>;
|
|
42
46
|
backendApiKey: string;
|
|
43
47
|
codeDir: string;
|
|
48
|
+
executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
|
|
44
49
|
}
|
|
50
|
+
export declare function transformParams(args: Array<any>, executeFunctionAnnotationType: ExecuteFunctionAnnotationType): unknown[];
|
|
51
|
+
export declare function transformResponse(functionResponse: any, executeFunctionAnnotationType: ExecuteFunctionAnnotationType): any;
|
|
45
52
|
export type WorkerActionType = 'loadJs' | 'executeFunction' | 'ping' | 'terminate';
|
|
46
53
|
export interface ActionRequest {
|
|
47
54
|
action: WorkerActionType;
|
|
@@ -12,6 +12,11 @@ export interface SquidSupportedCloud {
|
|
|
12
12
|
regions: Array<SquidCloudRegion>;
|
|
13
13
|
tooltip?: string;
|
|
14
14
|
}
|
|
15
|
+
export declare const squidSupportedRegionMap: Record<SupportedSquidRegion, SquidCloudRegion>;
|
|
15
16
|
export declare const squidSupportedCloudMap: Record<SquidCloudId, SquidSupportedCloud>;
|
|
16
17
|
export declare function convertToSquidRegion(cloudId: SquidCloudId, region: string, isDev?: boolean): SupportedSquidRegion;
|
|
18
|
+
export declare function convertFromSquidRegion(regionAndCloud: SupportedSquidRegion): {
|
|
19
|
+
cloudId: SquidCloudId;
|
|
20
|
+
region: string;
|
|
21
|
+
};
|
|
17
22
|
export declare const squidSupportedClouds: Array<SquidSupportedCloud>;
|