forked from rudderlabs/rudder-transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrolPlaneConfig.ts
More file actions
96 lines (86 loc) · 2.27 KB
/
Copy pathcontrolPlaneConfig.ts
File metadata and controls
96 lines (86 loc) · 2.27 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// import type { FixMe } from '../util/types';
import type { UserTransformationInput } from './userTransformation';
export type DestinationDefinition = {
ID: string;
Name: string;
DisplayName: string;
Config: Record<string, unknown>;
ResponseRules?: Record<string, unknown> | null;
};
export type AccountDefinitionConfig = { refreshOAuthToken?: string };
export type AccountDefinition<Config = AccountDefinitionConfig> = {
name: string;
config: Config | null;
authenticationType: string;
};
export type Account<
OptionsT = Record<string, unknown> | null,
SecretT = Record<string, unknown> | null,
AccountDefinitionT = AccountDefinition | null,
> = {
id: string;
options: OptionsT;
secret: SecretT;
accountDefinition?: AccountDefinitionT;
accountDefinitionName: string;
};
export type Destination<
DestinationConfig = Record<string, unknown>,
DeliveryAccountT = Account | null,
DeleteAccountT = Account | null,
> = {
ID: string;
Name: string;
DestinationDefinition: DestinationDefinition;
Config: DestinationConfig;
Enabled: boolean;
WorkspaceID: string;
Transformations: UserTransformationInput[];
RevisionID?: string;
IsProcessorEnabled?: boolean;
IsConnectionEnabled?: boolean;
deliveryAccount?: DeliveryAccountT;
deleteAccount?: DeleteAccountT;
hasDynamicConfig?: boolean; // Flag indicating whether the destination config contains dynamic config patterns
};
export type DestinationConnectionConfig<T> = {
destination: T;
};
export type Connection<T = Record<string, unknown>> = {
sourceId: string;
destinationId: string;
enabled: boolean;
config: T;
processorEnabled?: boolean;
};
export type SourceDefinition = {
ID: string;
Name: string;
Category: string;
Type: string;
};
export type Source = {
ID: string;
OriginalID: string;
Name: string;
SourceDefinition: SourceDefinition;
Config: object;
Enabled: boolean;
WorkspaceID: string;
WriteKey: string;
Transformations?: UserTransformationInput[];
RevisionID?: string;
Destinations?: Destination[];
Transient: boolean;
EventSchemasEnabled: boolean;
DgSourceTrackingPlanConfig: object;
};
export type UserTransformationLibrary = {
VersionID: string;
};
export type Credential = {
id: string;
key: string;
value: string;
isSecret: boolean;
};