@squidcloud/backend 1.0.4 → 1.0.6
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/backend/src/service.d.ts +2 -2
- package/dist/common/src/regions.d.ts +16 -3
- package/dist/index.js +5 -5
- package/dist/typescript-client/src/collection-reference.d.ts +5 -3
- package/dist/typescript-client/src/collection-reference.factory.d.ts +3 -1
- package/dist/typescript-client/src/document-reference.d.ts +3 -1
- package/dist/typescript-client/src/index.d.ts +5 -2
- package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +35 -0
- package/dist/typescript-client/src/query/query-builder.factory.d.ts +10 -17
- package/dist/typescript-client/src/squid.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Squid } from '@squidcloud/client';
|
|
2
|
-
import { AuthWithApiKey, AuthWithBearer, Logger, RunContext, SecretKey, SecretValue, ServiceConfig,
|
|
2
|
+
import { AuthWithApiKey, AuthWithBearer, Logger, RunContext, SecretKey, SecretValue, ServiceConfig, SupportedSquidRegion, WebhookResponse } from '@squidcloud/common';
|
|
3
3
|
export declare class SquidService {
|
|
4
4
|
readonly secrets: Record<SecretKey, SecretValue>;
|
|
5
5
|
readonly logger: Logger;
|
|
6
6
|
private readonly backendApiKey;
|
|
7
7
|
readonly context: RunContext;
|
|
8
8
|
readonly codeDir: string;
|
|
9
|
-
readonly region:
|
|
9
|
+
readonly region: SupportedSquidRegion;
|
|
10
10
|
private readonly auth;
|
|
11
11
|
constructor(config: ServiceConfig);
|
|
12
12
|
get squid(): Squid;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type SquidCloudId = 'aws' | 'gcp' | 'azure';
|
|
2
|
+
export type SupportedSquidRegion = 'us-east-1.aws' | 'local';
|
|
3
|
+
export declare const supportedSquidRegions: Array<SupportedSquidRegion>;
|
|
4
|
+
export interface SquidCloudRegion {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
4
7
|
}
|
|
8
|
+
export interface SquidSupportedCloud {
|
|
9
|
+
id: SquidCloudId;
|
|
10
|
+
name: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
regions: Array<SquidCloudRegion>;
|
|
13
|
+
tooltip?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const squidSupportedCloudMap: Record<SquidCloudId, SquidSupportedCloud>;
|
|
16
|
+
export declare function convertToSquidRegion(cloudId: SquidCloudId, region: string, isDev?: boolean): SupportedSquidRegion;
|
|
17
|
+
export declare const squidSupportedClouds: Array<SquidSupportedCloud>;
|