-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
64 lines (56 loc) · 1.16 KB
/
types.ts
File metadata and controls
64 lines (56 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
export interface IFivetranRequest {
state: { transactionsCursor: string | undefined };
secrets: {
apiKey: string;
organizationId: string;
startDate?: string;
tableName?: string;
};
bucket: string;
file: string;
}
export interface IFivetranResult {
state: {
transactionsCursor: string;
};
schema: IFivetranSchema;
hasMore: boolean;
}
export interface IFivetranSchemaDef {
primary_key: string[];
}
export interface IFivetranSchema extends Record<string, IFivetranSchemaDef> {}
export interface IFivetranError {
errorMessage: string;
errorType: string;
stackTrace: any;
}
export interface IFetchResponse {
s3Data: {
insert: unknown[];
delete: unknown[];
};
nextCursor: string;
}
export interface IS3CopyResult {
success: boolean;
error?: string;
}
export interface IRobinAnalyticsResult {
meta: {
status_code: number;
status: 'ACCEPTED' | 'BAD_REQUEST' | 'NOT_FOUND';
message: string;
more_info: unknown;
errors: string[];
};
data: {
export_id: string;
report_id: string;
};
}
export interface IDoFetchResult {
success: boolean;
error?: string;
data?: Record<string, string>[];
}