@rlvt/datasources-openapi-client 0.0.0-4e9c3cd → 0.0.0-51b8efe

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.
@@ -1,147 +1,139 @@
1
1
  declare type readonlyP = {
2
- readonly?: undefined;
2
+ readonly?: '__readonly';
3
3
  };
4
4
  declare type writeonlyP = {
5
- writeonly?: undefined;
6
- };
7
- declare type Id<T> = {} & {
8
- [P in keyof T]: T[P];
5
+ writeonly?: '__writeonly';
9
6
  };
10
7
  declare type Primitive = string | Function | number | boolean | Symbol | undefined | null | Date;
11
- declare type Without<T, V, WithNevers = {
12
- [K in keyof T]: Exclude<T[K], undefined> extends V ? never : (T[K] extends Record<string, unknown> ? Without<T[K], V> : T[K]);
13
- }> = Id<Pick<WithNevers, {
14
- [K in keyof WithNevers]: WithNevers[K] extends never ? never : K;
15
- }[keyof WithNevers]>>;
16
- declare type RemoveReadonly<T> = T extends Primitive ? T : T extends Array<infer U> ? RemoveReadonly<U>[] : {
17
- [key in keyof T]: 'readonly' extends keyof T[key] ? never : T[key] extends infer TP ? RemoveReadonly<TP> : never;
18
- };
19
- export declare type WithoutReadonly<T> = Without<RemoveReadonly<T>, never>;
20
- declare type RemoveWriteonly<T> = T extends Primitive ? T : T extends Array<infer U> ? RemoveWriteonly<U>[] : {
21
- [key in keyof T]: 'writeonly' extends keyof T[key] ? never : T[key] extends infer TP ? RemoveWriteonly<TP> : never;
22
- };
23
- export declare type WithoutWriteonly<T> = Without<RemoveWriteonly<T>, never>;
8
+ declare type PropsWithoutReadonly<T> = {
9
+ [key in keyof T]: T[key] extends readonlyP ? NonNullable<T[key]['readonly']> extends '__readonly' ? never : key : key;
10
+ }[keyof T];
11
+ export declare type WithoutReadonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutReadonly<U>[] : {
12
+ [key in keyof Pick<T, PropsWithoutReadonly<T>>]: Pick<T, PropsWithoutReadonly<T>>[key] extends any ? WithoutReadonly<Pick<T, PropsWithoutReadonly<T>>[key]> : never;
13
+ } : never;
14
+ declare type PropsWithoutWriteonly<T> = {
15
+ [key in keyof T]: T[key] extends writeonlyP ? NonNullable<T[key]['writeonly']> extends '__writeonly' ? never : key : key;
16
+ }[keyof T];
17
+ export declare type WithoutWriteonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutWriteonly<U>[] : {
18
+ [key in keyof Pick<T, PropsWithoutWriteonly<T>>]: Pick<T, PropsWithoutWriteonly<T>>[key] extends any ? WithoutWriteonly<Pick<T, PropsWithoutWriteonly<T>>[key]> : never;
19
+ } : never;
20
+ export declare type Pick__readonlycompanyId_string_readonlyresourceGroupIds_string_Array_username_string_or_undefined_tokenUrl_string_or_undefined_authorizeUrl_string_or_undefined_password_string_or_undefined_refreshToken_string_or_undefined_accessToken_string_or_undefined___NonFunctionPropertyNames_Pick_OAuthClient_companyId_or_resourceGroupIds_or_username_or_tokenUrl_or_authorizeUrl_or_password_or_refreshToken_or_accessToken_or_getRedirectUri_or_getCallbackUri_or_toJSON_or_getTokensFromCode_or_storeAccessToken___ = {
21
+ readonly companyId: (string) & readonlyP;
22
+ readonly resourceGroupIds: (string[]) & readonlyP;
23
+ username?: string;
24
+ tokenUrl?: string;
25
+ authorizeUrl?: string;
26
+ password?: (string) & writeonlyP;
27
+ refreshToken?: (string) & writeonlyP;
28
+ accessToken?: (string) & writeonlyP;
29
+ };
30
+ export declare type __x_string__string__ = {
31
+ [key: string]: string;
32
+ };
24
33
  export declare enum AuthenticationMode {
25
34
  PASSWORD = "password",
26
35
  CLIENT_CREDENTIALS = "client_credentials",
27
- REFRESH_TOKEN = "refresh_token"
36
+ REFRESH_TOKEN = "refresh_token",
37
+ ACCESS_TOKEN = "access_token"
28
38
  }
29
- export declare type SerializedOAuthClientConfiguration = {
30
- 'slug'?: string;
31
- 'clientId': string;
32
- 'clientSecret': (string) & writeonlyP;
33
- 'scopes': (string)[];
34
- 'authorizeUrl': string;
35
- 'tokenUrl': string;
36
- 'mode'?: AuthenticationMode;
37
- };
38
- export declare type SerializedOAuthClient = {
39
- readonly 'id': (string) & readonlyP;
40
- readonly 'companyId': (string) & readonlyP;
41
- readonly 'resourceGroupIds': ((string)[]) & readonlyP;
42
- 'configuration': string | SerializedOAuthClientConfiguration;
43
- 'username'?: string;
44
- 'password'?: (string) & writeonlyP;
45
- };
46
- export declare type Pick_SerializedOAuthClient_companyId_or_resourceGroupIds_or_username_or_password_or_id_ = {
47
- readonly 'companyId': (string) & readonlyP;
48
- readonly 'resourceGroupIds': ((string)[]) & readonlyP;
49
- 'username'?: string;
50
- 'password'?: (string) & writeonlyP;
51
- readonly 'id': (string) & readonlyP;
52
- };
53
- export declare type Partial_Pick_SerializedOAuthClient_companyId_or_resourceGroupIds_or_username_or_password_or_id__ = {
54
- readonly 'companyId'?: (string) & readonlyP;
55
- readonly 'resourceGroupIds'?: ((string)[]) & readonlyP;
56
- 'username'?: string;
57
- 'password'?: (string) & writeonlyP;
58
- readonly 'id'?: (string) & readonlyP;
59
- };
60
- export declare type Partial_SerializedOAuthClientConfiguration_ = {
61
- 'slug'?: string;
62
- 'clientId'?: string;
63
- 'clientSecret'?: (string) & writeonlyP;
64
- 'scopes'?: (string)[];
65
- 'authorizeUrl'?: string;
66
- 'tokenUrl'?: string;
67
- 'mode'?: AuthenticationMode;
39
+ export declare type Pick__tokenUrl_string_authorizeUrl_string_or_undefined_clientId_string_clientSecret_string_scopes_string_Array_authorizeUrlQueryParams___x_string__string___or_undefined_mode_OAuthClientConfiguration_tokenUrl_or_authorizeUrl_or_toJSON_or_clientId_or_clientSecret_or_scopes_or_authorizeUrlQueryParams_or_mode_or_accessTokenHeader___ = {
40
+ tokenUrl: string;
41
+ authorizeUrl?: string;
42
+ clientId: string;
43
+ clientSecret: (string) & writeonlyP;
44
+ scopes: string[];
45
+ authorizeUrlQueryParams?: __x_string__string__;
46
+ mode?: AuthenticationMode;
47
+ accessTokenHeader?: string;
48
+ };
49
+ export declare type OAuthClientConfiguration = Pick__tokenUrl_string_authorizeUrl_string_or_undefined_clientId_string_clientSecret_string_scopes_string_Array_authorizeUrlQueryParams___x_string__string___or_undefined_mode_OAuthClientConfiguration_tokenUrl_or_authorizeUrl_or_toJSON_or_clientId_or_clientSecret_or_scopes_or_authorizeUrlQueryParams_or_mode_or_accessTokenHeader___;
50
+ export declare type OAuthClient = Pick__readonlycompanyId_string_readonlyresourceGroupIds_string_Array_username_string_or_undefined_tokenUrl_string_or_undefined_authorizeUrl_string_or_undefined_password_string_or_undefined_refreshToken_string_or_undefined_accessToken_string_or_undefined___NonFunctionPropertyNames_Pick_OAuthClient_companyId_or_resourceGroupIds_or_username_or_tokenUrl_or_authorizeUrl_or_password_or_refreshToken_or_accessToken_or_getRedirectUri_or_getCallbackUri_or_toJSON_or_getTokensFromCode_or_storeAccessToken___ & {
51
+ readonly id: (string) & readonlyP;
52
+ } & {
53
+ configuration: string | OAuthClientConfiguration;
54
+ };
55
+ export declare type Pick_OAuthClient_companyId_or_resourceGroupIds_or_username_or_tokenUrl_or_authorizeUrl_or_password_or_refreshToken_or_accessToken_or_getRedirectUri_or_getCallbackUri_or_toJSON_or_getTokensFromCode_or_storeAccessToken_ = Pick__readonlycompanyId_string_readonlyresourceGroupIds_string_Array_username_string_or_undefined_tokenUrl_string_or_undefined_authorizeUrl_string_or_undefined_password_string_or_undefined_refreshToken_string_or_undefined_accessToken_string_or_undefined___NonFunctionPropertyNames_Pick_OAuthClient_companyId_or_resourceGroupIds_or_username_or_tokenUrl_or_authorizeUrl_or_password_or_refreshToken_or_accessToken_or_getRedirectUri_or_getCallbackUri_or_toJSON_or_getTokensFromCode_or_storeAccessToken___ & {
56
+ readonly id: (string) & readonlyP;
57
+ } & {
58
+ configuration: string | OAuthClientConfiguration;
59
+ };
60
+ export declare type Partial_Pick_Pick__tokenUrl_string_authorizeUrl_string_or_undefined_clientId_string_clientSecret_string_scopes_string_Array_authorizeUrlQueryParams___x_string__string___or_undefined_mode_OAuthClientConfiguration_tokenUrl_or_authorizeUrl_or_toJSON_or_clientId_or_clientSecret_or_scopes_or_authorizeUrlQueryParams_or_mode_or_accessTokenHeader____ = {
61
+ tokenUrl?: string;
62
+ authorizeUrl?: string;
63
+ clientId?: string;
64
+ clientSecret?: (string) & writeonlyP;
65
+ scopes?: string[];
66
+ authorizeUrlQueryParams?: __x_string__string__;
67
+ mode?: AuthenticationMode;
68
+ accessTokenHeader?: string;
69
+ };
70
+ export declare type Partial_Pick__tokenUrl_string_authorizeUrl_string_or_undefined_clientId_string_clientSecret_string_scopes_string_Array_authorizeUrlQueryParams___x_string__string___or_undefined_mode_OAuthClientConfiguration_tokenUrl_or_authorizeUrl_or_toJSON_or_clientId_or_clientSecret_or_scopes_or_authorizeUrlQueryParams_or_mode_or_accessTokenHeader____ = {
71
+ tokenUrl?: string;
72
+ authorizeUrl?: string;
73
+ clientId?: string;
74
+ clientSecret?: (string) & writeonlyP;
75
+ scopes?: string[];
76
+ authorizeUrlQueryParams?: __x_string__string__;
77
+ mode?: AuthenticationMode;
78
+ accessTokenHeader?: string;
68
79
  };
69
80
  export declare enum DatasourceMode {
70
81
  INGESTER = "ingester",
71
82
  WORKER = "worker",
72
83
  PROXY = "proxy"
73
84
  }
74
- export declare enum DatasourceVersionState {
75
- LIVE = "LIVE",
76
- DRAFT = "DRAFT",
77
- SCHEDULED = "SCHEDULED",
78
- INACTIVE = "INACTIVE"
85
+ export declare enum DatasourceFetcherName {
86
+ WORKER = "worker",
87
+ INGESTER = "ingester",
88
+ PROXY = "proxy",
89
+ TRACKING = "tracking"
79
90
  }
80
- export declare type AggregationStep = {
81
- 'name': 'unwind';
82
- 'params': {
83
- 'src': string;
84
- 'dest': string;
85
- 'allowEmpty'?: boolean;
86
- };
91
+ export declare type __ = {};
92
+ export declare type _name_DatasourceFetcherName_params_____ = {
93
+ name: DatasourceFetcherName;
94
+ params: __;
87
95
  };
88
- export declare type WorkerApiOptions_ = {
89
- 'oauth'?: string;
90
- 'pagination'?: {
91
- 'type': 'query';
92
- 'value': string;
93
- } | {
94
- 'type': 'hypermediaAttribute';
95
- 'value': string;
96
- } | {
97
- 'type': 'pageToken';
98
- 'value': string;
99
- 'param': string;
100
- };
101
- 'method'?: 'GET' | 'PATCH' | 'POST' | 'PUT';
102
- 'body'?: string;
103
- 'headers'?: {
104
- [key: string]: string;
105
- };
106
- 'query'?: {
107
- [key: string]: string;
108
- };
96
+ export declare type _datasourceIdStores_string_datasourceIdStock_string__ = {
97
+ datasourceIdStores: string;
98
+ datasourceIdStock: string;
109
99
  };
110
- export declare type WorkerApiOptions = WorkerApiOptions_;
111
- export declare type DatasourceGeneric = {
112
- 'name': 'generic';
113
- 'subtype': 'user';
100
+ export declare type _name_DatasourceCustomFetcherName_CARREFOUR_STORES_RETAILS_params__datasourceIdStores_string_datasourceIdStock_string____ = {
101
+ name: "carrefour-stores-retails";
102
+ params: _datasourceIdStores_string_datasourceIdStock_string__;
114
103
  };
115
- export declare type DatasourceProduct = {
116
- 'name': 'product';
117
- 'subtype': 'user';
104
+ export declare type _datasourceIdStores_string__ = {
105
+ datasourceIdStores: string;
118
106
  };
119
- export declare enum DatasourceLocationSubType {
120
- USER = "user",
121
- GOOGLE_MY_BUSINESS = "google_my_business"
122
- }
123
- export declare type DatasourceLocation = {
124
- 'name': 'location';
125
- 'subtype': DatasourceLocationSubType;
107
+ export declare type _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_FUEL_params__datasourceIdStores_string____ = {
108
+ name: "carrefour-stores-with-fuel";
109
+ params: _datasourceIdStores_string__;
126
110
  };
127
- export declare enum DatasourceFormat {
128
- CSV = "csv",
129
- NDJSON = "ndjson",
130
- JSON = "json",
131
- XML = "xml",
132
- XLSX = "xlsx"
133
- }
134
- export declare type DatasourceFormatOptions = {
135
- [key: string]: string;
111
+ export declare type _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_DRIVE_SLOTS_params__datasourceIdStores_string____ = {
112
+ name: "carrefour-stores-with-drive-slots";
113
+ params: _datasourceIdStores_string__;
136
114
  };
137
- export declare type Format = {
138
- 'type': DatasourceFormat;
139
- 'options': DatasourceFormatOptions;
115
+ export declare type _datasourceIdAvailablity_string__ = {
116
+ datasourceIdAvailablity: string;
117
+ };
118
+ export declare type _name_DatasourceCustomFetcherName_BEST_WESTERN_HOTELS_params__datasourceIdAvailablity_string____ = {
119
+ name: "best-western-hotels";
120
+ params: _datasourceIdAvailablity_string__;
121
+ };
122
+ export declare type _name_DatasourceCustomFetcherName_FDJ_BETS_params_____ = {
123
+ name: "fdj-bets";
124
+ params: __;
125
+ };
126
+ export declare type _datasourceIdSizes_string__ = {
127
+ datasourceIdSizes: string;
128
+ };
129
+ export declare type _name_DatasourceCustomFetcherName_SARENZA_SIZES_params__datasourceIdSizes_string____ = {
130
+ name: "sarenza-sizes";
131
+ params: _datasourceIdSizes_string__;
140
132
  };
141
- export declare type AnyValue = any;
142
133
  export declare enum FieldMapType {
143
134
  STRING = "string",
144
135
  NUMBER = "number",
136
+ DATETIME = "datetime",
145
137
  ADDRESS_1 = "address_1",
146
138
  ADDRESS_2 = "address_2",
147
139
  ADDRESS_3 = "address_3",
@@ -165,810 +157,2200 @@ export declare enum FieldMapType {
165
157
  COMPANY_ID = "company_id",
166
158
  EVENT_NAME = "event_name",
167
159
  USER_TMP_ID = "user_tmp_id",
168
- USER_AGENT = "user_agent"
160
+ USER_AGENT = "user_agent",
161
+ WORKFLOW_ID = "workflow_id",
162
+ WORKFLOW_VERSION_ID = "workflow_version_id",
163
+ WORKFLOW_USER = "workflow_user"
169
164
  }
170
- export declare type AutomaticStep = {
171
- 'name': 'google_my_business_set_url';
172
- 'urls': {
173
- 'getAccount': string;
174
- 'final': string;
175
- };
165
+ export declare type _trackingDatasourceId_string_productDatasourceId_string_productDatasourceIdFieldType_FieldMapType_excludedEventName_string_fallbackEventName_string_fallbackEventDuration_number__ = {
166
+ trackingDatasourceId: string;
167
+ productDatasourceId: string;
168
+ productDatasourceIdFieldType: FieldMapType;
169
+ excludedEventName: string;
170
+ fallbackEventName: string;
171
+ fallbackEventDuration: number;
176
172
  };
177
- export declare type FirstFieldMapRule = {
178
- 'name': 'static' | 'path';
179
- 'params': {
180
- 'value': string;
181
- };
173
+ export declare type _name_FieldMapType_excludedEventName_string_fallbackEventName_string_fallbackEventDuration_number____ = {
174
+ name: "recommender";
175
+ params: _trackingDatasourceId_string_productDatasourceId_string_productDatasourceIdFieldType_FieldMapType_excludedEventName_string_fallbackEventName_string_fallbackEventDuration_number__;
176
+ };
177
+ export declare type _name_DatasourceCustomFetcherName_RENAULT_PRICES_params_____ = {
178
+ name: "renault-prices";
179
+ params: __;
180
+ };
181
+ export declare type _mode_DatasourceCustomFetcherName_RENAULT_PRICES_params______or_undefined__ = {
182
+ mode: DatasourceMode;
183
+ readonly fetcher?: (_name_DatasourceFetcherName_params_____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_RETAILS_params__datasourceIdStores_string_datasourceIdStock_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_FUEL_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_DRIVE_SLOTS_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_BEST_WESTERN_HOTELS_params__datasourceIdAvailablity_string____ | _name_DatasourceCustomFetcherName_FDJ_BETS_params_____ | _name_DatasourceCustomFetcherName_SARENZA_SIZES_params__datasourceIdSizes_string____ | _name_FieldMapType_excludedEventName_string_fallbackEventName_string_fallbackEventDuration_number____ | _name_DatasourceCustomFetcherName_RENAULT_PRICES_params_____) & readonlyP;
184
+ };
185
+ export declare enum DatasourceGenericSubType {
186
+ USER = "user",
187
+ RECOMMENDER = "recommender"
188
+ }
189
+ export declare type _name_DatasourceGenericSubType__ = {
190
+ name: "generic";
191
+ subtype: DatasourceGenericSubType;
192
+ };
193
+ export declare enum DatasourceProductSubType {
194
+ USER = "user",
195
+ SHOPIFY = "shopify",
196
+ BEST_PRODUCT = "best_product"
197
+ }
198
+ export declare type _name_DatasourceProductSubType__ = {
199
+ name: "product";
200
+ subtype: DatasourceProductSubType;
201
+ };
202
+ export declare enum DatasourceLocationSubType {
203
+ USER = "user",
204
+ GOOGLE_MY_BUSINESS = "google_my_business",
205
+ PARTOO = "partoo"
206
+ }
207
+ export declare type _name_DatasourceLocationSubType__ = {
208
+ name: "location";
209
+ subtype: DatasourceLocationSubType;
182
210
  };
211
+ export declare type Pick_Condition_path_or_operator_ = {
212
+ path: string;
213
+ operator: "=" | ">=" | "<=" | "!=";
214
+ };
215
+ export declare type FieldMapFallbackRulePayload = {
216
+ fromFormatted?: true;
217
+ valuePath?: string;
218
+ exit?: true;
219
+ path: string;
220
+ };
221
+ export declare type Pick_FieldMapFallbackRulePayload_valuePath_or_exit_ = {
222
+ valuePath?: string;
223
+ exit?: true;
224
+ };
225
+ export declare type Condition = {
226
+ path: string;
227
+ operator: "=" | ">=" | "<=" | "!=";
228
+ value: string | number | (false) | (true);
229
+ };
230
+ export declare enum FieldSource {
231
+ USER = "user",
232
+ MISSING_FIELDS = "missing_fields",
233
+ AGGREGATION = "aggregation"
234
+ }
183
235
  export declare type FieldMap = {
184
- 'name': string;
185
- 'type': FieldMapType;
186
- 'selected': boolean;
187
- 'rules': (FirstFieldMapRule | FirstFieldMapRule | {
188
- 'name': 'array_find';
189
- 'params': {
190
- 'key': string;
191
- 'operator': '=';
192
- 'value': string;
236
+ name: string;
237
+ type: FieldMapType;
238
+ selected: boolean;
239
+ rules: (({
240
+ name: "static" | "path";
241
+ params: {
242
+ value: string;
243
+ };
244
+ } | {
245
+ name: "path";
246
+ params: {
247
+ fromRoot: true;
248
+ value: string;
249
+ };
250
+ }) | ({
251
+ name: "static" | "path";
252
+ params: {
253
+ value: string;
193
254
  };
194
255
  } | {
195
- 'name': 'fallback';
196
- 'params': {
197
- 'path': string;
256
+ name: "path";
257
+ params: {
258
+ fromRoot: true;
259
+ value: string;
198
260
  };
199
261
  } | {
200
- 'name': 'exclude_from_record';
201
- 'params': {
202
- 'keys': (string)[];
262
+ name: "array_find";
263
+ params: {
264
+ key: string;
265
+ operator: "=";
266
+ value: string | number;
203
267
  };
204
268
  } | {
205
- 'name': 'decrypt';
206
- 'params': {};
207
- })[];
208
- readonly 'primitive': ('string' | 'number' | 'string[]' | 'number[]' | 'string{}' | 'number{}') & readonlyP;
209
- };
210
- export declare type Pick_WorkerDatasourceVersion__mode_or_state_or_batchSize_or_aggregationPipeline_or_detectMissingFields_or_apiOptions_or_refresh_or_isAPI_or_fileName_or_type_or_urls_or_url_or_format_or_textEncoding_or_sample_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ = {
211
- 'mode': DatasourceMode;
212
- readonly 'state': (DatasourceVersionState) & readonlyP;
213
- 'batchSize': number;
214
- 'aggregationPipeline': (AggregationStep)[];
215
- 'detectMissingFields': boolean;
216
- 'apiOptions'?: WorkerApiOptions;
217
- 'refresh': {
218
- 'freq': number;
219
- } | {
220
- 'cron': string;
221
- };
222
- readonly 'isAPI': (boolean) & readonlyP;
223
- readonly 'fileName'?: (string) & readonlyP;
224
- 'type': DatasourceGeneric | DatasourceProduct | DatasourceLocation;
225
- 'urls': (string)[];
226
- 'url'?: string;
227
- 'format': Format;
228
- 'textEncoding': string;
229
- 'sample'?: {
230
- [key: string]: AnyValue;
231
- };
232
- 'pendingSteps'?: ({
233
- 'name': 'configure_name' | 'configure_source' | 'configure_fieldsmap' | 'configure_thresholds' | 'configure_content' | 'patch' | 'validate';
269
+ name: "array_find";
270
+ params: {
271
+ key: string;
272
+ operator: "=";
273
+ valuePath: string;
274
+ };
234
275
  } | {
235
- 'name': 'configure_field';
236
- 'field': {
237
- 'name': string;
238
- 'type': FieldMapType;
276
+ name: "array_find";
277
+ params: {
278
+ conditions: (Pick_Condition_path_or_operator_ & {
279
+ evaluateValue: string;
280
+ })[];
239
281
  };
240
282
  } | {
241
- 'name': 'configure_oauth';
242
- 'configurationId': string;
243
- } | AutomaticStep)[];
244
- 'fieldsMap': (FieldMap)[];
245
- readonly 'availableFieldsTypes': ((FieldMapType)[]) & readonlyP;
246
- readonly 'requiredFieldsTypes': (((FieldMapType)[])[]) & readonlyP;
247
- readonly 'uniqueFieldsTypes': ((FieldMapType)[]) & readonlyP;
248
- 'fetchTransformer': '';
283
+ name: "fallback";
284
+ params: FieldMapFallbackRulePayload;
285
+ } | {
286
+ name: "fallback";
287
+ params: Pick_FieldMapFallbackRulePayload_valuePath_or_exit_ & {
288
+ staticValue: string | number | string[] | {
289
+ [key: string]: string;
290
+ } | number[] | {
291
+ [key: string]: number;
292
+ };
293
+ };
294
+ } | {
295
+ name: "fallback_if";
296
+ params: FieldMapFallbackRulePayload & {
297
+ conditions: (Condition | (Pick_Condition_path_or_operator_ & {
298
+ evaluateValue: string;
299
+ }))[];
300
+ };
301
+ } | {
302
+ name: "exclude_from_record";
303
+ params: {
304
+ keys: string[];
305
+ };
306
+ } | {
307
+ name: "decrypt";
308
+ params: {
309
+ passwordPrefixPath?: string;
310
+ };
311
+ } | {
312
+ name: "interpolate";
313
+ params: {
314
+ value: string;
315
+ };
316
+ }))[];
317
+ source?: FieldSource;
318
+ readonly primitive: ("string" | "number" | "datetime" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
249
319
  };
250
- export declare type ObjectId = {
251
- 'generationTime': number;
320
+ export declare type DatasourceHealth = 0 | 1 | 2;
321
+ export declare type _type_query_value_string__ = {
322
+ type: "query";
323
+ value: string;
252
324
  };
253
- export declare type Document = AnyValue;
254
- export declare type Pick_WorkerDatasource_mode_ = {
255
- 'mode': DatasourceMode;
325
+ export declare type _type_hypermediaAttribute_value_string__ = {
326
+ type: "hypermediaAttribute";
327
+ value: string;
328
+ };
329
+ export declare type _type_pageToken_value_string_param_string__ = {
330
+ type: "pageToken";
331
+ value: string;
332
+ param: string;
333
+ };
334
+ export declare type _type_linkHeader__ = {
335
+ type: "linkHeader";
256
336
  };
257
- export declare type Partial_Pick_WorkerDatasourceVersion_aggregationPipeline_or_detectMissingFields_or_apiOptions_or_refresh_or_type_or_urls_or_format_or_textEncoding_or_sample_or_fieldsMap__ = {
258
- 'aggregationPipeline'?: (AggregationStep)[];
259
- 'detectMissingFields'?: boolean;
260
- 'apiOptions'?: WorkerApiOptions;
261
- 'refresh'?: {
262
- 'freq': number;
337
+ export declare type Pick__oauth_string_or_undefined_pagination__type_query_value_string___or__type_hypermediaAttribute_value_string___or__type_pageToken_value_string_param_string___or__type_linkHeader___or_undefined_method_GET_or_PATCH_or_POST_or_PUT_or_undefined_body_string_or_undefined_headers___x_string__string___or_undefined_query___x_string__string___or_undefined___NonFunctionPropertyNames_WorkerApiOptions__ = {
338
+ oauth?: string;
339
+ pagination?: _type_query_value_string__ | _type_hypermediaAttribute_value_string__ | _type_pageToken_value_string_param_string__ | _type_linkHeader__;
340
+ method?: "GET" | "PATCH" | "POST" | "PUT";
341
+ body?: string;
342
+ headers?: __x_string__string__;
343
+ query?: __x_string__string__;
344
+ };
345
+ export declare type AnyValue = any | null;
346
+ export declare type __x_string__unknown__ = {
347
+ [key: string]: AnyValue;
348
+ };
349
+ export declare enum DatasourceFormat {
350
+ CSV = "csv",
351
+ NDJSON = "ndjson",
352
+ JSON = "json",
353
+ XML = "xml",
354
+ XLSX = "xlsx"
355
+ }
356
+ export declare type _type_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined__ = {
357
+ type: DatasourceFormat;
358
+ options: __x_string__string__;
359
+ overrided?: boolean;
360
+ };
361
+ export declare type _freq_number__ = {
362
+ freq: number;
363
+ };
364
+ export declare type _cron_string__ = {
365
+ cron: string;
366
+ };
367
+ export declare type _datasourceIds_string_Array__ = {
368
+ datasourceIds: string[];
369
+ };
370
+ export declare type _type__name_AggregationStep_Array_or_undefined_refresh__freq_number___or__cron_string___or__datasourceIds_string_Array___or_undefined_detectMissingFields_boolean_or_undefined_maximumEntries_number_or_undefined__ = {
371
+ type?: _name_DatasourceGenericSubType__ | _name_DatasourceProductSubType__ | _name_DatasourceLocationSubType__;
372
+ fieldsMap?: FieldMap[];
373
+ readonly health?: (DatasourceHealth) & readonlyP;
374
+ apiOptions?: Pick__oauth_string_or_undefined_pagination__type_query_value_string___or__type_hypermediaAttribute_value_string___or__type_pageToken_value_string_param_string___or__type_linkHeader___or_undefined_method_GET_or_PATCH_or_POST_or_PUT_or_undefined_body_string_or_undefined_headers___x_string__string___or_undefined_query___x_string__string___or_undefined___NonFunctionPropertyNames_WorkerApiOptions__;
375
+ sample?: __x_string__unknown__;
376
+ textEncoding?: string;
377
+ urls?: string[];
378
+ format?: _type_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined__;
379
+ aggregationPipeline?: ({
380
+ name: "unwind";
381
+ params: {
382
+ src: string;
383
+ dest: string;
384
+ allowEmpty?: boolean;
385
+ };
263
386
  } | {
264
- 'cron': string;
265
- };
266
- 'type'?: DatasourceGeneric | DatasourceProduct | DatasourceLocation;
267
- 'urls'?: (string)[];
268
- 'format'?: Format;
269
- 'textEncoding'?: string;
270
- 'sample'?: {
271
- [key: string]: AnyValue;
272
- };
273
- 'fieldsMap'?: (FieldMap)[];
387
+ name: "extra_data_fields";
388
+ params: {
389
+ fieldNames: string[];
390
+ };
391
+ } | {
392
+ name: "merge";
393
+ params: {
394
+ fieldNames: string[];
395
+ datasourceId: string;
396
+ query: string;
397
+ };
398
+ } | {
399
+ name: "count";
400
+ params: {
401
+ fieldNames: string[];
402
+ datasourceId: string;
403
+ query: string;
404
+ };
405
+ })[];
406
+ refresh?: _freq_number__ | _cron_string__ | _datasourceIds_string_Array__;
407
+ detectMissingFields?: boolean;
408
+ maximumEntries?: number;
274
409
  };
275
- export declare type Pick_ProxyDatasource_mode_ = {
276
- 'mode': DatasourceMode;
410
+ export declare type _datasource__mode_AggregationStep_Array_or_undefined_refresh__freq_number___or__cron_string___or__datasourceIds_string_Array___or_undefined_detectMissingFields_boolean_or_undefined_maximumEntries_number_or_undefined____ = {
411
+ datasource: _mode_DatasourceCustomFetcherName_RENAULT_PRICES_params______or_undefined__;
412
+ version: _type__name_AggregationStep_Array_or_undefined_refresh__freq_number___or__cron_string___or__datasourceIds_string_Array___or_undefined_detectMissingFields_boolean_or_undefined_maximumEntries_number_or_undefined__;
277
413
  };
278
- export declare type ProxyApiOptions_ = {
279
- 'oauth'?: string;
280
- 'method'?: 'GET' | 'PATCH' | 'POST' | 'PUT';
281
- 'body'?: string;
282
- 'headers'?: {
283
- [key: string]: string;
284
- };
285
- 'query'?: {
286
- [key: string]: string;
287
- };
288
- 'sampleVariables'?: {
289
- [key: string]: string | number;
290
- };
414
+ export declare type Pick_QueriableField_name_or_enum_or_required_or_unique_ = {
415
+ name: string;
416
+ enum?: (string | number)[];
417
+ required: boolean;
418
+ unique: boolean;
291
419
  };
292
- export declare type ProxyApiOptions = ProxyApiOptions_;
293
- export declare type ProxyRefresh = {
294
- 'freq': number;
295
- };
296
- export declare type Partial_Pick_ProxyDatasourceVersion_apiOptions_or_refresh_or_type_or_urls_or_format_or_textEncoding_or_sample_or_fieldsMap__ = {
297
- 'apiOptions'?: ProxyApiOptions;
298
- 'refresh'?: ProxyRefresh;
299
- 'type'?: DatasourceGeneric | DatasourceProduct | DatasourceLocation;
300
- 'urls'?: (string)[];
301
- 'format'?: Format;
302
- 'textEncoding'?: string;
303
- 'sample'?: {
304
- [key: string]: AnyValue;
305
- };
306
- 'fieldsMap'?: (FieldMap)[];
420
+ export declare type Pick__oauth_string_or_undefined_method_GET_or_PATCH_or_POST_or_PUT_or_undefined_body_string_or_undefined_headers___x_string__string___or_undefined_query___x_string__string___or_undefined_variables_VariableDefinition_Array_or_undefined___NonFunctionPropertyNames_ProxyApiOptions__ = {
421
+ oauth?: string;
422
+ method?: "GET" | "PATCH" | "POST" | "PUT";
423
+ body?: string;
424
+ headers?: __x_string__string__;
425
+ query?: __x_string__string__;
426
+ variables?: (Pick_QueriableField_name_or_enum_or_required_or_unique_ & {
427
+ default: string | number | string[] | number[];
428
+ primitive: "string" | "number" | "datetime" | "string[]" | "number[]" | "string{}" | "number{}";
429
+ })[];
430
+ };
431
+ export declare type _type__name_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined___or_undefined_refresh__freq_number___or_undefined__ = {
432
+ type?: _name_DatasourceGenericSubType__;
433
+ fieldsMap?: FieldMap[];
434
+ readonly health?: (DatasourceHealth) & readonlyP;
435
+ apiOptions?: Pick__oauth_string_or_undefined_method_GET_or_PATCH_or_POST_or_PUT_or_undefined_body_string_or_undefined_headers___x_string__string___or_undefined_query___x_string__string___or_undefined_variables_VariableDefinition_Array_or_undefined___NonFunctionPropertyNames_ProxyApiOptions__;
436
+ sample?: __x_string__unknown__;
437
+ textEncoding?: string;
438
+ urls?: string[];
439
+ format?: _type_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined__;
440
+ refresh?: _freq_number__;
441
+ };
442
+ export declare type _datasource__mode_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined___or_undefined_refresh__freq_number___or_undefined____ = {
443
+ datasource: _mode_DatasourceCustomFetcherName_RENAULT_PRICES_params______or_undefined__;
444
+ version: _type__name_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined___or_undefined_refresh__freq_number___or_undefined__;
445
+ };
446
+ export declare type _offlineSize_number_realtimeSize_number__ = {
447
+ offlineSize: number;
448
+ realtimeSize: number;
449
+ };
450
+ export declare type _value_number_unit_DAYS__ = {
451
+ value: number;
452
+ unit: "DAYS";
307
453
  };
308
- export declare type Pick_IngesterDatasource_mode_ = {
309
- 'mode': DatasourceMode;
454
+ export declare type _partitionCount_number_segments__offlineSize_number_realtimeSize_number___retention__value_number_unit_DAYS___destinations__type_bigquery_dataset_string_tableName_string___Array__ = {
455
+ partitionCount: number;
456
+ segments: _offlineSize_number_realtimeSize_number__;
457
+ retention: _value_number_unit_DAYS__;
458
+ destinations: {
459
+ type: "bigquery";
460
+ dataset: string;
461
+ tableName: string;
462
+ }[];
463
+ };
464
+ export declare type _mode_DatasourceCustomFetcherName_RENAULT_PRICES_params______or_undefined_storageOptions__partitionCount_number_segments__offlineSize_number_realtimeSize_number___retention__value_number_unit_DAYS___destinations__type_bigquery_dataset_string_tableName_string___Array___or_undefined__ = {
465
+ mode: DatasourceMode;
466
+ readonly fetcher?: (_name_DatasourceFetcherName_params_____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_RETAILS_params__datasourceIdStores_string_datasourceIdStock_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_FUEL_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_DRIVE_SLOTS_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_BEST_WESTERN_HOTELS_params__datasourceIdAvailablity_string____ | _name_DatasourceCustomFetcherName_FDJ_BETS_params_____ | _name_DatasourceCustomFetcherName_SARENZA_SIZES_params__datasourceIdSizes_string____ | _name_FieldMapType_excludedEventName_string_fallbackEventName_string_fallbackEventDuration_number____ | _name_DatasourceCustomFetcherName_RENAULT_PRICES_params_____) & readonlyP;
467
+ storageOptions?: _partitionCount_number_segments__offlineSize_number_realtimeSize_number___retention__value_number_unit_DAYS___destinations__type_bigquery_dataset_string_tableName_string___Array__;
310
468
  };
311
469
  export declare enum DatasourceAnalyticsSubType {
312
470
  REELEVANT = "reelevant",
313
- GOOGLE_ANALYTICS = "google_analytics"
471
+ GOOGLE_TAG_MANAGER = "google_tag_manager",
472
+ SHOPIFY = "shopify",
473
+ SCENARIO_EVENTS = "scenario_events",
474
+ WORKFLOW_EVENTS = "workflow_events"
314
475
  }
315
- export declare type DatasourceAnalytics = {
316
- 'name': 'analytics';
317
- 'subtype': DatasourceAnalyticsSubType;
476
+ export declare type _name_DatasourceAnalyticsSubType__ = {
477
+ name: "analytics";
478
+ subtype: DatasourceAnalyticsSubType;
318
479
  };
319
480
  export declare enum IngesterFieldIndex {
320
481
  NONE = "none",
321
482
  METRIC = "metric",
322
- INVERTED = "inverted"
483
+ INVERTED = "inverted",
484
+ RAW_VALUE_FORWARD = "raw_value_forward"
323
485
  }
324
486
  export declare type IngesterFieldMap = {
325
- 'index': IngesterFieldIndex;
326
- 'sortable': boolean;
327
- 'name': string;
328
- 'type': FieldMapType;
329
- 'selected': boolean;
330
- 'rules': (FirstFieldMapRule | FirstFieldMapRule | {
331
- 'name': 'array_find';
332
- 'params': {
333
- 'key': string;
334
- 'operator': '=';
335
- 'value': string;
487
+ index: IngesterFieldIndex;
488
+ sortable: boolean;
489
+ name: string;
490
+ type: FieldMapType;
491
+ selected: boolean;
492
+ rules: (({
493
+ name: "static" | "path";
494
+ params: {
495
+ value: string;
336
496
  };
337
497
  } | {
338
- 'name': 'fallback';
339
- 'params': {
340
- 'path': string;
498
+ name: "path";
499
+ params: {
500
+ fromRoot: true;
501
+ value: string;
502
+ };
503
+ }) | ({
504
+ name: "static" | "path";
505
+ params: {
506
+ value: string;
341
507
  };
342
508
  } | {
343
- 'name': 'exclude_from_record';
344
- 'params': {
345
- 'keys': (string)[];
509
+ name: "path";
510
+ params: {
511
+ fromRoot: true;
512
+ value: string;
346
513
  };
347
514
  } | {
348
- 'name': 'decrypt';
349
- 'params': {};
350
- })[];
351
- readonly 'primitive': ('string' | 'number' | 'string[]' | 'number[]' | 'string{}' | 'number{}') & readonlyP;
352
- };
353
- export declare type Partial_Pick_IngesterDatasourceVersion_DatasourceVersionBaseFields__ = {
354
- 'type'?: DatasourceAnalytics;
355
- 'fieldsMap'?: (IngesterFieldMap)[];
356
- };
357
- export declare type Pick_DatasourceTemplate__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____id_or_slug_or_name_or_createdAt_or_updatedAt_or_template_or_steps_or_icon_or_categories_ = {
358
- readonly 'id': (string) & readonlyP;
359
- 'slug': string;
360
- 'name': string;
361
- readonly 'createdAt': (Date) & readonlyP;
362
- readonly 'updatedAt': (Date) & readonlyP;
363
- 'template': {
364
- 'datasource': Pick_WorkerDatasource_mode_;
365
- 'version': Partial_Pick_WorkerDatasourceVersion_aggregationPipeline_or_detectMissingFields_or_apiOptions_or_refresh_or_type_or_urls_or_format_or_textEncoding_or_sample_or_fieldsMap__;
366
- } | {
367
- 'datasource': Pick_ProxyDatasource_mode_;
368
- 'version': Partial_Pick_ProxyDatasourceVersion_apiOptions_or_refresh_or_type_or_urls_or_format_or_textEncoding_or_sample_or_fieldsMap__;
369
- } | {
370
- 'datasource': Pick_IngesterDatasource_mode_ & {
371
- 'storageOptions'?: {
372
- 'retention': number;
373
- 'replicasPerPartition': number;
374
- 'timeField': {
375
- 'name': string;
376
- 'unit': 'SECONDS';
377
- };
515
+ name: "array_find";
516
+ params: {
517
+ key: string;
518
+ operator: "=";
519
+ value: string | number;
520
+ };
521
+ } | {
522
+ name: "array_find";
523
+ params: {
524
+ key: string;
525
+ operator: "=";
526
+ valuePath: string;
527
+ };
528
+ } | {
529
+ name: "array_find";
530
+ params: {
531
+ conditions: (Pick_Condition_path_or_operator_ & {
532
+ evaluateValue: string;
533
+ })[];
534
+ };
535
+ } | {
536
+ name: "fallback";
537
+ params: FieldMapFallbackRulePayload;
538
+ } | {
539
+ name: "fallback";
540
+ params: Pick_FieldMapFallbackRulePayload_valuePath_or_exit_ & {
541
+ staticValue: string | number | string[] | {
542
+ [key: string]: string;
543
+ } | number[] | {
544
+ [key: string]: number;
378
545
  };
379
546
  };
380
- 'version': Partial_Pick_IngesterDatasourceVersion_DatasourceVersionBaseFields__;
381
- };
382
- 'steps': ({
383
- 'name': 'configure_name' | 'configure_source' | 'configure_fieldsmap' | 'configure_thresholds' | 'configure_content' | 'patch' | 'validate';
384
- } | {
385
- 'name': 'configure_field';
386
- 'field': {
387
- 'name': string;
388
- 'type': FieldMapType;
389
- };
390
- } | {
391
- 'name': 'configure_oauth';
392
- 'configurationId': string;
393
- } | AutomaticStep)[];
394
- 'icon': string;
395
- 'categories': (string)[];
396
- };
397
- export declare type DatasourceTemplate = Pick_DatasourceTemplate__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____id_or_slug_or_name_or_createdAt_or_updatedAt_or_template_or_steps_or_icon_or_categories_;
398
- export declare type Pick_WorkerDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ = {
399
- 'companyId': string;
400
- 'resourceGroupIds': (string)[];
401
- readonly 'id': (string) & readonlyP;
402
- 'mode': DatasourceMode;
403
- 'name': string;
404
- readonly 'createdAt': (Date) & readonlyP;
405
- readonly 'updatedAt': (Date) & readonlyP;
406
- 'versions': (Pick_WorkerDatasourceVersion__mode_or_state_or_batchSize_or_aggregationPipeline_or_detectMissingFields_or_apiOptions_or_refresh_or_isAPI_or_fileName_or_type_or_urls_or_url_or_format_or_textEncoding_or_sample_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
407
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
408
- })[];
409
- readonly 'contentVersion': (number) & readonlyP;
410
- 'thresholds': ({
411
- 'type': 'too_many_invalid_entries';
412
- 'value': number;
413
- 'trigger': {
414
- 'type': 'error';
415
- 'value': 'too_many_invalid_entries';
416
- };
417
- } | {
418
- 'type': 'entries_drop_rate_too_high';
419
- 'value': number;
420
- 'trigger': {
421
- 'type': 'warning';
422
- 'value': 'entries_drop_rate_too_high';
423
- } | {
424
- 'type': 'error';
425
- 'value': 'entries_drop_rate_too_high';
547
+ } | {
548
+ name: "fallback_if";
549
+ params: FieldMapFallbackRulePayload & {
550
+ conditions: (Condition | (Pick_Condition_path_or_operator_ & {
551
+ evaluateValue: string;
552
+ }))[];
553
+ };
554
+ } | {
555
+ name: "exclude_from_record";
556
+ params: {
557
+ keys: string[];
558
+ };
559
+ } | {
560
+ name: "decrypt";
561
+ params: {
562
+ passwordPrefixPath?: string;
563
+ };
564
+ } | {
565
+ name: "interpolate";
566
+ params: {
567
+ value: string;
568
+ };
569
+ }))[];
570
+ source?: FieldSource;
571
+ readonly primitive: ("string" | "number" | "datetime" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
572
+ };
573
+ export declare type _type__name_DatasourceHealth_or_undefined__ = {
574
+ type?: _name_DatasourceAnalyticsSubType__;
575
+ fieldsMap?: IngesterFieldMap[];
576
+ readonly health?: (DatasourceHealth) & readonlyP;
577
+ };
578
+ export declare type _datasource__mode_DatasourceHealth_or_undefined____ = {
579
+ datasource: _mode_DatasourceCustomFetcherName_RENAULT_PRICES_params______or_undefined_storageOptions__partitionCount_number_segments__offlineSize_number_realtimeSize_number___retention__value_number_unit_DAYS___destinations__type_bigquery_dataset_string_tableName_string___Array___or_undefined__;
580
+ version: _type__name_DatasourceHealth_or_undefined__;
581
+ };
582
+ export declare enum StepName {
583
+ CONFIGURE_NAME = "configure_name",
584
+ CONFIGURE_RESOURCE_GROUP_IDS = "configure_resource_group_ids",
585
+ CONFIGURE_SOURCE = "configure_source",
586
+ CONFIGURE_FIELDSMAP = "configure_fieldsmap",
587
+ CONFIGURE_FIELD = "configure_field",
588
+ CREATE_OAUTH_CLIENT = "create_oauth_client",
589
+ AUTHORIZE_OAUTH_CLIENT = "authorize_oauth_client",
590
+ CONFIGURE_THRESHOLDS = "configure_thresholds",
591
+ CONFIGURE_CONTENT = "configure_content",
592
+ CONFIGURE_API_KEY = "configure_api_key",
593
+ PATCH = "patch",
594
+ VALIDATE = "validate",
595
+ CONFIGURE_SHOPIFY_SHOP_NAME = "configure_shopify_shop_name",
596
+ INJECT_SHOPIFY_ANALYTICS_SCRIPT = "inject_shopify_analytics_script",
597
+ CONFIGURE_SHOPIFY_ANALYTICS_SCRIPT = "configure_shopify_analytics_script",
598
+ CONFIGURE_GOOGLE_TAG_MANAGER = "configure_google_tag_manager",
599
+ CONFIGURE_REELEVANT_ANALYTICS_SCRIPT = "configure_reelevant_analytics_script",
600
+ CONFIGURE_TWITTER = "configure_twitter",
601
+ CONFIGURE_PRODUCT_DATASOURCE_SOURCE = "configure_product_datasource_source",
602
+ CONFIGURE_TRACKING_DATASOURCE_SOURCE = "configure_tracking_datasource_source",
603
+ CONFIGURE_BEST_PRODUCT_QUERY = "configure_best_product_query",
604
+ CONFIGURE_BEST_PRODUCT_FIELD = "configure_best_product_field"
605
+ }
606
+ export declare type _failed_to_pull_StepName__ = {
607
+ failed_to_pull: StepName;
608
+ fatal: StepName;
609
+ };
610
+ export declare type _configure_name__AutomaticStepName__Array_or_undefined__ = {
611
+ configure_name?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
612
+ configure_resource_group_ids?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
613
+ configure_source?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
614
+ configure_fieldsmap?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
615
+ configure_field?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
616
+ create_oauth_client?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
617
+ authorize_oauth_client?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
618
+ configure_thresholds?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
619
+ configure_content?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
620
+ configure_api_key?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
621
+ patch?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
622
+ validate?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
623
+ configure_shopify_shop_name?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
624
+ inject_shopify_analytics_script?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
625
+ configure_shopify_analytics_script?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
626
+ configure_google_tag_manager?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
627
+ configure_reelevant_analytics_script?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
628
+ configure_twitter?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
629
+ configure_product_datasource_source?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
630
+ configure_tracking_datasource_source?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
631
+ configure_best_product_query?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
632
+ configure_best_product_field?: ("configure_name" | "configure_resource_group_ids" | "configure_source" | "configure_fieldsmap" | "configure_field" | "create_oauth_client" | "authorize_oauth_client" | "configure_thresholds" | "configure_content" | "configure_api_key" | "patch" | "validate" | "configure_shopify_shop_name" | "inject_shopify_analytics_script" | "configure_shopify_analytics_script" | "configure_google_tag_manager" | "configure_reelevant_analytics_script" | "configure_twitter" | "configure_product_datasource_source" | "configure_tracking_datasource_source" | "configure_best_product_query" | "configure_best_product_field" | "google_my_business_set_url" | "setup_instagram")[];
633
+ };
634
+ export declare type Pick__name_string_icon_string_slug_string_categories_string_Array_feature_string_or_undefined_template__datasource__mode_DatasourceTemplate__ = {
635
+ name: string;
636
+ icon: string;
637
+ slug: string;
638
+ categories: string[];
639
+ feature?: string;
640
+ template: _datasource__mode_AggregationStep_Array_or_undefined_refresh__freq_number___or__cron_string___or__datasourceIds_string_Array___or_undefined_detectMissingFields_boolean_or_undefined_maximumEntries_number_or_undefined____ | _datasource__mode_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined___or_undefined_refresh__freq_number___or_undefined____ | _datasource__mode_DatasourceHealth_or_undefined____;
641
+ steps: ({
642
+ name: "configure_name";
643
+ } | {
644
+ name: "configure_resource_group_ids";
645
+ } | {
646
+ name: "configure_source";
647
+ mode?: "url" | "file";
648
+ } | {
649
+ name: "configure_fieldsmap";
650
+ } | {
651
+ name: "configure_field";
652
+ field: {
653
+ name: string;
654
+ type: FieldMapType;
655
+ };
656
+ } | {
657
+ name: "create_oauth_client";
658
+ configurationId: string;
659
+ } | {
660
+ name: "authorize_oauth_client";
661
+ slug: string;
662
+ } | {
663
+ name: "configure_thresholds";
664
+ } | {
665
+ name: "configure_content";
666
+ } | {
667
+ name: "configure_api_key";
668
+ slug: "partoo";
669
+ } | {
670
+ name: "patch";
671
+ } | {
672
+ name: "validate";
673
+ } | {
674
+ name: "configure_shopify_shop_name";
675
+ configurationId: string;
676
+ } | {
677
+ name: "inject_shopify_analytics_script";
678
+ configurationId: string;
679
+ } | {
680
+ name: "configure_shopify_analytics_script";
681
+ } | {
682
+ name: "configure_google_tag_manager";
683
+ } | {
684
+ name: "configure_reelevant_analytics_script";
685
+ } | {
686
+ name: "configure_twitter";
687
+ } | {
688
+ name: "configure_product_datasource_source";
689
+ } | {
690
+ name: "configure_tracking_datasource_source";
691
+ } | {
692
+ name: "configure_best_product_query";
693
+ } | {
694
+ name: "configure_best_product_field";
695
+ } | {
696
+ name: "google_my_business_set_url";
697
+ urls: {
698
+ getAccount: string;
699
+ final: string;
700
+ };
701
+ } | {
702
+ name: "setup_instagram";
703
+ urls: {
704
+ getAccount: string;
705
+ getAccountInfos: string;
706
+ final: string;
426
707
  };
427
708
  })[];
428
- readonly 'lastRunAt': (Date) & readonlyP;
429
- readonly 'pausedAt': (Date) & readonlyP;
430
- readonly 'isPaused': (boolean) & readonlyP;
431
- 'template'?: ObjectId | Document & DatasourceTemplate;
432
- readonly 'configurationUpdatedAt': (Date) & readonlyP;
433
- readonly 'archivedAt': (Date) & readonlyP;
434
- };
435
- export declare enum SortOrder {
436
- DESCEND = "descend",
437
- ASCEND = "ascend"
709
+ errorsToStep: _failed_to_pull_StepName__;
710
+ stepDependencies: _configure_name__AutomaticStepName__Array_or_undefined__;
711
+ standaloneSteps: StepName[];
712
+ };
713
+ export declare type DatasourceTemplate = Pick__name_string_icon_string_slug_string_categories_string_Array_feature_string_or_undefined_template__datasource__mode_DatasourceTemplate__ & {
714
+ readonly id: (string) & readonlyP;
715
+ } & {
716
+ readonly createdAt: (Date) & readonlyP;
717
+ readonly updatedAt: (Date) & readonlyP;
718
+ };
719
+ export declare type Pick_Pick__mode_IngesterDatasourceVersion___mode_or_state_or_type_or_fieldsMap_or_pendingSteps_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_undefined_ = {
720
+ mode: "ingester";
721
+ readonly state: ("LIVE" | "DRAFT") & readonlyP;
722
+ type: _name_DatasourceAnalyticsSubType__;
723
+ fieldsMap: IngesterFieldMap[];
724
+ readonly pendingSteps?: (({
725
+ name: "configure_name";
726
+ } | {
727
+ name: "configure_resource_group_ids";
728
+ } | {
729
+ name: "configure_source";
730
+ mode?: "url" | "file";
731
+ } | {
732
+ name: "configure_fieldsmap";
733
+ } | {
734
+ name: "configure_field";
735
+ field: {
736
+ name: string;
737
+ type: FieldMapType;
738
+ };
739
+ } | {
740
+ name: "create_oauth_client";
741
+ configurationId: string;
742
+ } | {
743
+ name: "authorize_oauth_client";
744
+ slug: string;
745
+ } | {
746
+ name: "configure_thresholds";
747
+ } | {
748
+ name: "configure_content";
749
+ } | {
750
+ name: "configure_api_key";
751
+ slug: "partoo";
752
+ } | {
753
+ name: "patch";
754
+ } | {
755
+ name: "validate";
756
+ } | {
757
+ name: "configure_shopify_shop_name";
758
+ configurationId: string;
759
+ } | {
760
+ name: "inject_shopify_analytics_script";
761
+ configurationId: string;
762
+ } | {
763
+ name: "configure_shopify_analytics_script";
764
+ } | {
765
+ name: "configure_google_tag_manager";
766
+ } | {
767
+ name: "configure_reelevant_analytics_script";
768
+ } | {
769
+ name: "configure_twitter";
770
+ } | {
771
+ name: "configure_product_datasource_source";
772
+ } | {
773
+ name: "configure_tracking_datasource_source";
774
+ } | {
775
+ name: "configure_best_product_query";
776
+ } | {
777
+ name: "configure_best_product_field";
778
+ } | {
779
+ name: "google_my_business_set_url";
780
+ urls: {
781
+ getAccount: string;
782
+ final: string;
783
+ };
784
+ } | {
785
+ name: "setup_instagram";
786
+ urls: {
787
+ getAccount: string;
788
+ getAccountInfos: string;
789
+ final: string;
790
+ };
791
+ })[]) & readonlyP;
792
+ readonly availableFieldsTypes: (FieldMapType[]) & readonlyP;
793
+ readonly requiredFieldsTypes: (FieldMapType[][]) & readonlyP;
794
+ readonly uniqueFieldsTypes: (FieldMapType[]) & readonlyP;
795
+ };
796
+ export declare enum DatasourceStatus {
797
+ DRAFT = "draft",
798
+ PUBLISHING = "publishing",
799
+ PUBLISHED = "published",
800
+ UPDATING = "updating",
801
+ PAUSED = "paused",
802
+ ERROR = "error"
438
803
  }
439
- export declare enum SortBy {
440
- CREATEDAT = "createdAt",
441
- NAME = "name",
442
- LASTRUNAT = "lastRunAt",
443
- CONFIGURATIONUPDATEDAT = "configurationUpdatedAt"
804
+ export declare type Pick___id_string_companyId_string_resourceGroupIds_string_Array_mode_DatasourceStatus_readonlyhasWarnings_boolean___companyId_or_resourceGroupIds_or_mode_or_name_or_template_or_fetcher_or_storageOptions_or_versions_or_configurationUpdatedAt_or_archivedAt_or_status_or_hasWarnings_or_undefined_ = {
805
+ companyId: string;
806
+ resourceGroupIds: string[];
807
+ mode: "ingester";
808
+ name: string;
809
+ readonly template?: (string) & readonlyP;
810
+ readonly fetcher: (_name_DatasourceFetcherName_params_____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_RETAILS_params__datasourceIdStores_string_datasourceIdStock_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_FUEL_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_DRIVE_SLOTS_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_BEST_WESTERN_HOTELS_params__datasourceIdAvailablity_string____ | _name_DatasourceCustomFetcherName_FDJ_BETS_params_____ | _name_DatasourceCustomFetcherName_SARENZA_SIZES_params__datasourceIdSizes_string____ | _name_FieldMapType_excludedEventName_string_fallbackEventName_string_fallbackEventDuration_number____ | _name_DatasourceCustomFetcherName_RENAULT_PRICES_params_____) & readonlyP;
811
+ storageOptions: _partitionCount_number_segments__offlineSize_number_realtimeSize_number___retention__value_number_unit_DAYS___destinations__type_bigquery_dataset_string_tableName_string___Array__;
812
+ versions: (Pick_Pick__mode_IngesterDatasourceVersion___mode_or_state_or_type_or_fieldsMap_or_pendingSteps_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_undefined_ & {
813
+ readonly health: ("OK" | "WARNING" | "ERROR") & readonlyP;
814
+ })[];
815
+ readonly configurationUpdatedAt: (string) & readonlyP;
816
+ readonly archivedAt: (Date | null) & readonlyP;
817
+ status: DatasourceStatus;
818
+ readonly hasWarnings: (boolean) & readonlyP;
819
+ };
820
+ export declare type IngesterDatasource = Pick___id_string_companyId_string_resourceGroupIds_string_Array_mode_DatasourceStatus_readonlyhasWarnings_boolean___companyId_or_resourceGroupIds_or_mode_or_name_or_template_or_fetcher_or_storageOptions_or_versions_or_configurationUpdatedAt_or_archivedAt_or_status_or_hasWarnings_or_undefined_ & {
821
+ readonly id: (string) & readonlyP;
822
+ } & {
823
+ readonly createdAt: (Date) & readonlyP;
824
+ readonly updatedAt: (Date) & readonlyP;
825
+ };
826
+ export declare enum DatasourceVersionState {
827
+ LIVE = "LIVE",
828
+ DRAFT = "DRAFT",
829
+ SCHEDULED = "SCHEDULED",
830
+ INACTIVE = "INACTIVE"
444
831
  }
445
- export declare type Pick_ProxyDatasourceVersion__mode_or_state_or_apiOptions_or_refresh_or_type_or_urls_or_url_or_format_or_textEncoding_or_sample_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ = {
446
- 'mode': DatasourceMode;
447
- readonly 'state': ('LIVE' | 'DRAFT' | 'INACTIVE') & readonlyP;
448
- 'apiOptions'?: ProxyApiOptions;
449
- 'refresh': ProxyRefresh;
450
- 'type': DatasourceGeneric | DatasourceProduct | DatasourceLocation;
451
- 'urls': (string)[];
452
- 'url'?: string;
453
- 'format': Format;
454
- 'textEncoding': string;
455
- 'sample'?: {
456
- [key: string]: AnyValue;
457
- };
458
- 'pendingSteps'?: ({
459
- 'name': 'configure_name' | 'configure_source' | 'configure_fieldsmap' | 'configure_thresholds' | 'configure_content' | 'patch' | 'validate';
460
- } | {
461
- 'name': 'configure_field';
462
- 'field': {
463
- 'name': string;
464
- 'type': FieldMapType;
465
- };
466
- } | {
467
- 'name': 'configure_oauth';
468
- 'configurationId': string;
469
- } | AutomaticStep)[];
470
- 'fieldsMap': (FieldMap)[];
471
- readonly 'availableFieldsTypes': ((FieldMapType)[]) & readonlyP;
472
- readonly 'requiredFieldsTypes': (((FieldMapType)[])[]) & readonlyP;
473
- readonly 'uniqueFieldsTypes': ((FieldMapType)[]) & readonlyP;
474
- 'fetchTransformer': '';
475
- };
476
- export declare type Pick_ProxyDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ = {
477
- 'companyId': string;
478
- 'resourceGroupIds': (string)[];
479
- readonly 'id': (string) & readonlyP;
480
- 'mode': DatasourceMode;
481
- 'name': string;
482
- readonly 'createdAt': (Date) & readonlyP;
483
- readonly 'updatedAt': (Date) & readonlyP;
484
- 'versions': (Pick_ProxyDatasourceVersion__mode_or_state_or_apiOptions_or_refresh_or_type_or_urls_or_url_or_format_or_textEncoding_or_sample_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
485
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
832
+ export declare type Pick_WorkerDatasourceVersion__mode_or_state_or_type_or_fieldsMap_or_health_or_apiOptions_or_sample_or_textEncoding_or_format_or_aggregationPipeline_or_refresh_or_detectMissingFields_or_maximumEntries_or_pendingSteps_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_batchSize_or_undefined_ = {
833
+ mode: "worker";
834
+ readonly state: (DatasourceVersionState) & readonlyP;
835
+ type: _name_DatasourceGenericSubType__ | _name_DatasourceProductSubType__ | _name_DatasourceLocationSubType__;
836
+ fieldsMap: FieldMap[];
837
+ readonly health: ("OK" | "WARNING" | "ERROR") & readonlyP;
838
+ apiOptions?: Pick__oauth_string_or_undefined_pagination__type_query_value_string___or__type_hypermediaAttribute_value_string___or__type_pageToken_value_string_param_string___or__type_linkHeader___or_undefined_method_GET_or_PATCH_or_POST_or_PUT_or_undefined_body_string_or_undefined_headers___x_string__string___or_undefined_query___x_string__string___or_undefined___NonFunctionPropertyNames_WorkerApiOptions__;
839
+ sample?: __x_string__unknown__;
840
+ textEncoding: string;
841
+ format: _type_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined__;
842
+ aggregationPipeline: ({
843
+ name: "unwind";
844
+ params: {
845
+ src: string;
846
+ dest: string;
847
+ allowEmpty?: boolean;
848
+ };
849
+ } | {
850
+ name: "extra_data_fields";
851
+ params: {
852
+ fieldNames: string[];
853
+ };
854
+ } | {
855
+ name: "merge";
856
+ params: {
857
+ fieldNames: string[];
858
+ datasourceId: string;
859
+ query: string;
860
+ };
861
+ } | {
862
+ name: "count";
863
+ params: {
864
+ fieldNames: string[];
865
+ datasourceId: string;
866
+ query: string;
867
+ };
486
868
  })[];
487
- 'template'?: ObjectId | Document & DatasourceTemplate;
488
- readonly 'configurationUpdatedAt': (Date) & readonlyP;
489
- readonly 'archivedAt': (Date) & readonlyP;
490
- };
491
- export declare type Pick_Pick_WorkerDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ = {
492
- 'companyId': string;
493
- 'resourceGroupIds': (string)[];
494
- readonly 'id': (string) & readonlyP;
495
- 'mode': DatasourceMode;
496
- 'name': string;
497
- readonly 'createdAt': (Date) & readonlyP;
498
- readonly 'updatedAt': (Date) & readonlyP;
499
- readonly 'contentVersion': (number) & readonlyP;
500
- 'thresholds': ({
501
- 'type': 'too_many_invalid_entries';
502
- 'value': number;
503
- 'trigger': {
504
- 'type': 'error';
505
- 'value': 'too_many_invalid_entries';
506
- };
507
- } | {
508
- 'type': 'entries_drop_rate_too_high';
509
- 'value': number;
510
- 'trigger': {
511
- 'type': 'warning';
512
- 'value': 'entries_drop_rate_too_high';
869
+ refresh: _freq_number__ | _cron_string__ | _datasourceIds_string_Array__;
870
+ detectMissingFields: boolean;
871
+ maximumEntries?: number;
872
+ readonly pendingSteps?: (({
873
+ name: "configure_name";
874
+ } | {
875
+ name: "configure_resource_group_ids";
876
+ } | {
877
+ name: "configure_source";
878
+ mode?: "url" | "file";
879
+ } | {
880
+ name: "configure_fieldsmap";
881
+ } | {
882
+ name: "configure_field";
883
+ field: {
884
+ name: string;
885
+ type: FieldMapType;
886
+ };
887
+ } | {
888
+ name: "create_oauth_client";
889
+ configurationId: string;
890
+ } | {
891
+ name: "authorize_oauth_client";
892
+ slug: string;
893
+ } | {
894
+ name: "configure_thresholds";
895
+ } | {
896
+ name: "configure_content";
897
+ } | {
898
+ name: "configure_api_key";
899
+ slug: "partoo";
900
+ } | {
901
+ name: "patch";
902
+ } | {
903
+ name: "validate";
904
+ } | {
905
+ name: "configure_shopify_shop_name";
906
+ configurationId: string;
907
+ } | {
908
+ name: "inject_shopify_analytics_script";
909
+ configurationId: string;
910
+ } | {
911
+ name: "configure_shopify_analytics_script";
912
+ } | {
913
+ name: "configure_google_tag_manager";
914
+ } | {
915
+ name: "configure_reelevant_analytics_script";
916
+ } | {
917
+ name: "configure_twitter";
918
+ } | {
919
+ name: "configure_product_datasource_source";
920
+ } | {
921
+ name: "configure_tracking_datasource_source";
922
+ } | {
923
+ name: "configure_best_product_query";
924
+ } | {
925
+ name: "configure_best_product_field";
926
+ } | {
927
+ name: "google_my_business_set_url";
928
+ urls: {
929
+ getAccount: string;
930
+ final: string;
931
+ };
932
+ } | {
933
+ name: "setup_instagram";
934
+ urls: {
935
+ getAccount: string;
936
+ getAccountInfos: string;
937
+ final: string;
938
+ };
939
+ })[]) & readonlyP;
940
+ readonly availableFieldsTypes: (FieldMapType[]) & readonlyP;
941
+ readonly requiredFieldsTypes: (FieldMapType[][]) & readonlyP;
942
+ readonly uniqueFieldsTypes: (FieldMapType[]) & readonlyP;
943
+ batchSize: number;
944
+ };
945
+ export declare type Pick___id_string_companyId_string_resourceGroupIds_string_Array_mode_Threshold_Array_lastRunAt_Date_or_null_currentLiveVersion_string_or_null_pausedAt_Date_or_null_readonlyisPaused_boolean___companyId_or_resourceGroupIds_or_mode_or_name_or_template_or_fetcher_or_versions_or_configurationUpdatedAt_or_archivedAt_or_status_or_hasWarnings_or_contentVersion_or_thresholds_or_lastRunAt_or_currentLiveVersion_or_pausedAt_or_isPaused_or_undefined_ = {
946
+ companyId: string;
947
+ resourceGroupIds: string[];
948
+ mode: "worker";
949
+ name: string;
950
+ readonly template?: (string) & readonlyP;
951
+ readonly fetcher: (_name_DatasourceFetcherName_params_____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_RETAILS_params__datasourceIdStores_string_datasourceIdStock_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_FUEL_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_DRIVE_SLOTS_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_BEST_WESTERN_HOTELS_params__datasourceIdAvailablity_string____ | _name_DatasourceCustomFetcherName_FDJ_BETS_params_____ | _name_DatasourceCustomFetcherName_SARENZA_SIZES_params__datasourceIdSizes_string____ | _name_FieldMapType_excludedEventName_string_fallbackEventName_string_fallbackEventDuration_number____ | _name_DatasourceCustomFetcherName_RENAULT_PRICES_params_____) & readonlyP;
952
+ versions: ((Pick_WorkerDatasourceVersion__mode_or_state_or_type_or_fieldsMap_or_health_or_apiOptions_or_sample_or_textEncoding_or_format_or_aggregationPipeline_or_refresh_or_detectMissingFields_or_maximumEntries_or_pendingSteps_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_batchSize_or_undefined_ & {
953
+ fileName: string;
954
+ isAPI: false;
955
+ }) | (Pick_WorkerDatasourceVersion__mode_or_state_or_type_or_fieldsMap_or_health_or_apiOptions_or_sample_or_textEncoding_or_format_or_aggregationPipeline_or_refresh_or_detectMissingFields_or_maximumEntries_or_pendingSteps_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_batchSize_or_undefined_ & {
956
+ url: string;
957
+ urls: string[];
958
+ isAPI: true;
959
+ }))[];
960
+ readonly configurationUpdatedAt: (string) & readonlyP;
961
+ readonly archivedAt: (Date | null) & readonlyP;
962
+ status: DatasourceStatus;
963
+ readonly hasWarnings: (boolean) & readonlyP;
964
+ readonly contentVersion: (number) & readonlyP;
965
+ thresholds: ({
966
+ type: "too_many_invalid_entries";
967
+ value: number;
968
+ trigger: {
969
+ type: "error";
970
+ value: "too_many_invalid_entries";
971
+ };
972
+ } | {
973
+ type: "entries_drop_rate_too_high";
974
+ value: number;
975
+ trigger: {
976
+ type: "warning";
977
+ value: "entries_drop_rate_too_high";
513
978
  } | {
514
- 'type': 'error';
515
- 'value': 'entries_drop_rate_too_high';
979
+ type: "error";
980
+ value: "entries_drop_rate_too_high";
516
981
  };
517
982
  })[];
518
- readonly 'lastRunAt': (Date) & readonlyP;
519
- readonly 'pausedAt': (Date) & readonlyP;
520
- readonly 'isPaused': (boolean) & readonlyP;
521
- 'template'?: ObjectId | Document & DatasourceTemplate;
522
- readonly 'configurationUpdatedAt': (Date) & readonlyP;
523
- readonly 'archivedAt': (Date) & readonlyP;
524
- };
525
- export declare type Pick_Pick_IngesterDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined_ = {
526
- 'companyId': string;
527
- 'resourceGroupIds': (string)[];
528
- readonly 'id': (string) & readonlyP;
529
- 'mode': DatasourceMode;
530
- 'name': string;
531
- readonly 'createdAt': (Date) & readonlyP;
532
- readonly 'updatedAt': (Date) & readonlyP;
533
- 'template'?: ObjectId | Document & DatasourceTemplate;
534
- readonly 'configurationUpdatedAt': (Date) & readonlyP;
535
- readonly 'archivedAt': (Date) & readonlyP;
536
- 'storageOptions': {
537
- 'retention': number;
538
- 'replicasPerPartition': number;
539
- 'timeField': {
540
- 'name': string;
541
- 'unit': 'SECONDS';
983
+ readonly lastRunAt: (Date | null) & readonlyP;
984
+ readonly currentLiveVersion: (string | null) & readonlyP;
985
+ readonly pausedAt: (Date | null) & readonlyP;
986
+ readonly isPaused: (boolean) & readonlyP;
987
+ };
988
+ export declare type WorkerDatasource = Pick___id_string_companyId_string_resourceGroupIds_string_Array_mode_Threshold_Array_lastRunAt_Date_or_null_currentLiveVersion_string_or_null_pausedAt_Date_or_null_readonlyisPaused_boolean___companyId_or_resourceGroupIds_or_mode_or_name_or_template_or_fetcher_or_versions_or_configurationUpdatedAt_or_archivedAt_or_status_or_hasWarnings_or_contentVersion_or_thresholds_or_lastRunAt_or_currentLiveVersion_or_pausedAt_or_isPaused_or_undefined_ & {
989
+ readonly id: (string) & readonlyP;
990
+ } & {
991
+ readonly createdAt: (Date) & readonlyP;
992
+ readonly updatedAt: (Date) & readonlyP;
993
+ };
994
+ export declare type Pick_Pick__mode_ProxyDatasourceVersion___mode_or_state_or_type_or_fieldsMap_or_apiOptions_or_sample_or_textEncoding_or_urls_or_format_or_refresh_or_url_or_pendingSteps_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_undefined_ = {
995
+ mode: "proxy";
996
+ readonly state: ("LIVE" | "DRAFT" | "INACTIVE") & readonlyP;
997
+ type: _name_DatasourceGenericSubType__;
998
+ fieldsMap: FieldMap[];
999
+ apiOptions?: Pick__oauth_string_or_undefined_method_GET_or_PATCH_or_POST_or_PUT_or_undefined_body_string_or_undefined_headers___x_string__string___or_undefined_query___x_string__string___or_undefined_variables_VariableDefinition_Array_or_undefined___NonFunctionPropertyNames_ProxyApiOptions__;
1000
+ sample?: __x_string__unknown__;
1001
+ textEncoding: string;
1002
+ urls: string[];
1003
+ format: _type_DatasourceFormat_options___x_string__string___overrided_boolean_or_undefined__;
1004
+ refresh: _freq_number__;
1005
+ readonly url?: (string) & readonlyP;
1006
+ readonly pendingSteps?: (({
1007
+ name: "configure_name";
1008
+ } | {
1009
+ name: "configure_resource_group_ids";
1010
+ } | {
1011
+ name: "configure_source";
1012
+ mode?: "url" | "file";
1013
+ } | {
1014
+ name: "configure_fieldsmap";
1015
+ } | {
1016
+ name: "configure_field";
1017
+ field: {
1018
+ name: string;
1019
+ type: FieldMapType;
542
1020
  };
543
- };
1021
+ } | {
1022
+ name: "create_oauth_client";
1023
+ configurationId: string;
1024
+ } | {
1025
+ name: "authorize_oauth_client";
1026
+ slug: string;
1027
+ } | {
1028
+ name: "configure_thresholds";
1029
+ } | {
1030
+ name: "configure_content";
1031
+ } | {
1032
+ name: "configure_api_key";
1033
+ slug: "partoo";
1034
+ } | {
1035
+ name: "patch";
1036
+ } | {
1037
+ name: "validate";
1038
+ } | {
1039
+ name: "configure_shopify_shop_name";
1040
+ configurationId: string;
1041
+ } | {
1042
+ name: "inject_shopify_analytics_script";
1043
+ configurationId: string;
1044
+ } | {
1045
+ name: "configure_shopify_analytics_script";
1046
+ } | {
1047
+ name: "configure_google_tag_manager";
1048
+ } | {
1049
+ name: "configure_reelevant_analytics_script";
1050
+ } | {
1051
+ name: "configure_twitter";
1052
+ } | {
1053
+ name: "configure_product_datasource_source";
1054
+ } | {
1055
+ name: "configure_tracking_datasource_source";
1056
+ } | {
1057
+ name: "configure_best_product_query";
1058
+ } | {
1059
+ name: "configure_best_product_field";
1060
+ } | {
1061
+ name: "google_my_business_set_url";
1062
+ urls: {
1063
+ getAccount: string;
1064
+ final: string;
1065
+ };
1066
+ } | {
1067
+ name: "setup_instagram";
1068
+ urls: {
1069
+ getAccount: string;
1070
+ getAccountInfos: string;
1071
+ final: string;
1072
+ };
1073
+ })[]) & readonlyP;
1074
+ readonly availableFieldsTypes: (FieldMapType[]) & readonlyP;
1075
+ readonly requiredFieldsTypes: (FieldMapType[][]) & readonlyP;
1076
+ readonly uniqueFieldsTypes: (FieldMapType[]) & readonlyP;
544
1077
  };
545
- export declare type Pick_IngesterDatasourceVersion__mode_or_state_or_type_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ = {
546
- 'mode': DatasourceMode;
547
- readonly 'state': ('LIVE' | 'DRAFT') & readonlyP;
548
- 'type': DatasourceAnalytics;
549
- 'pendingSteps'?: ({
550
- 'name': 'configure_name' | 'configure_source' | 'configure_fieldsmap' | 'configure_thresholds' | 'configure_content' | 'patch' | 'validate';
551
- } | {
552
- 'name': 'configure_field';
553
- 'field': {
554
- 'name': string;
555
- 'type': FieldMapType;
556
- };
557
- } | {
558
- 'name': 'configure_oauth';
559
- 'configurationId': string;
560
- } | AutomaticStep)[];
561
- 'fieldsMap': (IngesterFieldMap)[];
562
- readonly 'availableFieldsTypes': ((FieldMapType)[]) & readonlyP;
563
- readonly 'requiredFieldsTypes': (((FieldMapType)[])[]) & readonlyP;
564
- readonly 'uniqueFieldsTypes': ((FieldMapType)[]) & readonlyP;
565
- 'fetchTransformer': '';
566
- };
567
- export declare type Pick_Pick_ProxyDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ = {
568
- 'companyId': string;
569
- 'resourceGroupIds': (string)[];
570
- readonly 'id': (string) & readonlyP;
571
- 'mode': DatasourceMode;
572
- 'name': string;
573
- readonly 'createdAt': (Date) & readonlyP;
574
- readonly 'updatedAt': (Date) & readonlyP;
575
- 'template'?: ObjectId | Document & DatasourceTemplate;
576
- readonly 'configurationUpdatedAt': (Date) & readonlyP;
577
- readonly 'archivedAt': (Date) & readonlyP;
578
- };
579
- export declare type Partial_Pick_SerializedDatasourceWithVersion_resourceGroupIds_or_mode_or_name_or_type_or_fieldsMap_or_fetchTransformer__ = {
580
- 'resourceGroupIds'?: (string)[];
581
- 'mode'?: DatasourceMode;
582
- 'name'?: string;
583
- 'type'?: DatasourceGeneric | DatasourceProduct | DatasourceLocation | DatasourceAnalytics;
584
- 'fieldsMap'?: (FieldMap)[] | (IngesterFieldMap)[];
585
- 'fetchTransformer'?: '';
586
- };
587
- export declare type Pick_IngesterDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined_ = {
588
- 'companyId': string;
589
- 'resourceGroupIds': (string)[];
590
- readonly 'id': (string) & readonlyP;
591
- 'mode': DatasourceMode;
592
- 'name': string;
593
- readonly 'createdAt': (Date) & readonlyP;
594
- readonly 'updatedAt': (Date) & readonlyP;
595
- 'versions': (Pick_IngesterDatasourceVersion__mode_or_state_or_type_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
596
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
1078
+ export declare type Pick___id_string_companyId_string_resourceGroupIds_string_Array_mode_DatasourceStatus_readonlyhasWarnings_boolean___companyId_or_resourceGroupIds_or_mode_or_name_or_template_or_fetcher_or_versions_or_configurationUpdatedAt_or_archivedAt_or_status_or_hasWarnings_or_undefined_ = {
1079
+ companyId: string;
1080
+ resourceGroupIds: string[];
1081
+ mode: "proxy";
1082
+ name: string;
1083
+ readonly template?: (string) & readonlyP;
1084
+ readonly fetcher: (_name_DatasourceFetcherName_params_____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_RETAILS_params__datasourceIdStores_string_datasourceIdStock_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_FUEL_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_CARREFOUR_STORES_WITH_DRIVE_SLOTS_params__datasourceIdStores_string____ | _name_DatasourceCustomFetcherName_BEST_WESTERN_HOTELS_params__datasourceIdAvailablity_string____ | _name_DatasourceCustomFetcherName_FDJ_BETS_params_____ | _name_DatasourceCustomFetcherName_SARENZA_SIZES_params__datasourceIdSizes_string____ | _name_FieldMapType_excludedEventName_string_fallbackEventName_string_fallbackEventDuration_number____ | _name_DatasourceCustomFetcherName_RENAULT_PRICES_params_____) & readonlyP;
1085
+ versions: (Pick_Pick__mode_ProxyDatasourceVersion___mode_or_state_or_type_or_fieldsMap_or_apiOptions_or_sample_or_textEncoding_or_urls_or_format_or_refresh_or_url_or_pendingSteps_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_undefined_ & {
1086
+ readonly health: ("OK" | "WARNING" | "ERROR") & readonlyP;
597
1087
  })[];
598
- 'template'?: ObjectId | Document & DatasourceTemplate;
599
- readonly 'configurationUpdatedAt': (Date) & readonlyP;
600
- readonly 'archivedAt': (Date) & readonlyP;
601
- 'storageOptions': {
602
- 'retention': number;
603
- 'replicasPerPartition': number;
604
- 'timeField': {
605
- 'name': string;
606
- 'unit': 'SECONDS';
607
- };
1088
+ readonly configurationUpdatedAt: (string) & readonlyP;
1089
+ readonly archivedAt: (Date | null) & readonlyP;
1090
+ status: DatasourceStatus;
1091
+ readonly hasWarnings: (boolean) & readonlyP;
1092
+ };
1093
+ export declare type ProxyDatasource = Pick___id_string_companyId_string_resourceGroupIds_string_Array_mode_DatasourceStatus_readonlyhasWarnings_boolean___companyId_or_resourceGroupIds_or_mode_or_name_or_template_or_fetcher_or_versions_or_configurationUpdatedAt_or_archivedAt_or_status_or_hasWarnings_or_undefined_ & {
1094
+ readonly id: (string) & readonlyP;
1095
+ } & {
1096
+ readonly createdAt: (Date) & readonlyP;
1097
+ readonly updatedAt: (Date) & readonlyP;
1098
+ };
1099
+ export declare type DatasourceGeneric = {
1100
+ name: "generic";
1101
+ subtype: DatasourceGenericSubType;
1102
+ };
1103
+ export declare type DatasourceProduct = {
1104
+ name: "product";
1105
+ subtype: DatasourceProductSubType;
1106
+ };
1107
+ export declare type DatasourceLocation = {
1108
+ name: "location";
1109
+ subtype: DatasourceLocationSubType;
1110
+ };
1111
+ export declare type DatasourceAnalytics = {
1112
+ name: "analytics";
1113
+ subtype: DatasourceAnalyticsSubType;
1114
+ };
1115
+ export declare type QueriableField = {
1116
+ required: boolean;
1117
+ unique: boolean;
1118
+ sortable: boolean;
1119
+ enum?: (string | number)[];
1120
+ allowedOperators: (("$eq" | "$ne" | "$contains" | "$notcontains" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$range" | "range") | ("$eq" | "$ne" | "$contains" | "$notcontains" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$range" | "range"))[];
1121
+ name: string;
1122
+ readonly primitive: ("string" | "number" | "datetime" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
1123
+ };
1124
+ export declare enum DatasourceType {
1125
+ GENERIC = "generic",
1126
+ LOCATION = "location",
1127
+ PRODUCT = "product",
1128
+ ANALYTICS = "analytics"
1129
+ }
1130
+ export declare type Document = AnyValue;
1131
+ export declare type LogLevel = 0 | 1 | 2;
1132
+ export declare type Pick__companyId_string_payload_unknown_type_DatasourceLog_companyId_or_toJSON_or_payload_or_type_or_contentVersion_or_datasourceId_or_date_or_level_or_entryIndex___ = {
1133
+ companyId: string;
1134
+ payload: AnyValue;
1135
+ type: "too_many_invalid_entries" | "entries_drop_rate_too_high" | "failed_to_pull" | "fatal" | "entries_drop_rate_too_high" | "refresh_time_too_small" | "missing_fields" | "start" | "end" | "content_update" | "geocoding_address" | "geocoding_country" | "invalid_type" | "invalid_unwind_source" | "required_values_empty";
1136
+ contentVersion: number;
1137
+ datasourceId: string;
1138
+ date: string;
1139
+ level: LogLevel;
1140
+ entryIndex?: number;
1141
+ };
1142
+ export declare type DatasourceLog = Pick__companyId_string_payload_unknown_type_DatasourceLog_companyId_or_toJSON_or_payload_or_type_or_contentVersion_or_datasourceId_or_date_or_level_or_entryIndex___ & {
1143
+ readonly id: (string) & readonlyP;
1144
+ } & {
1145
+ version: string;
1146
+ };
1147
+ export declare type DatasourceFormatOptions = {
1148
+ [key: string]: string;
1149
+ };
1150
+ export declare type WorkerApiOptions = Pick__oauth_string_or_undefined_pagination__type_query_value_string___or__type_hypermediaAttribute_value_string___or__type_pageToken_value_string_param_string___or__type_linkHeader___or_undefined_method_GET_or_PATCH_or_POST_or_PUT_or_undefined_body_string_or_undefined_headers___x_string__string___or_undefined_query___x_string__string___or_undefined___NonFunctionPropertyNames_WorkerApiOptions__;
1151
+ export declare type Format = {
1152
+ type: DatasourceFormat;
1153
+ options: DatasourceFormatOptions;
1154
+ overrided?: boolean;
1155
+ };
1156
+ export declare type Partial_Pick_WorkerDatasourceVersion_apiOptions_or_sample_or_textEncoding_or_format__ = {
1157
+ apiOptions?: WorkerApiOptions;
1158
+ sample?: {
1159
+ [key: string]: AnyValue;
608
1160
  };
1161
+ textEncoding?: string;
1162
+ format?: Format;
609
1163
  };
610
- export declare type Partial_WorkerDatasourceVersion__ = {
611
- 'companyId'?: string;
612
- 'resourceGroupIds'?: (string)[];
613
- readonly 'id'?: (string) & readonlyP;
614
- 'mode'?: DatasourceMode;
615
- 'name'?: string;
616
- readonly 'createdAt'?: (Date) & readonlyP;
617
- readonly 'updatedAt'?: (Date) & readonlyP;
618
- readonly 'contentVersion'?: (number) & readonlyP;
619
- 'thresholds'?: ({
620
- 'type': 'too_many_invalid_entries';
621
- 'value': number;
622
- 'trigger': {
623
- 'type': 'error';
624
- 'value': 'too_many_invalid_entries';
625
- };
626
- } | {
627
- 'type': 'entries_drop_rate_too_high';
628
- 'value': number;
629
- 'trigger': {
630
- 'type': 'warning';
631
- 'value': 'entries_drop_rate_too_high';
632
- } | {
633
- 'type': 'error';
634
- 'value': 'entries_drop_rate_too_high';
1164
+ export declare type Partial_Pick_WorkerDatasourceVersion_textEncoding_or_format__ = {
1165
+ textEncoding?: string;
1166
+ format?: Format;
1167
+ };
1168
+ export declare type Partial_Pick_PullDatasourceVersion_sample_or_textEncoding_or_format__ = {
1169
+ sample?: {
1170
+ [key: string]: AnyValue;
1171
+ };
1172
+ textEncoding?: string;
1173
+ format?: Format;
1174
+ };
1175
+ export declare type Partial_Pick_WorkerDatasourceVersion_aggregationPipeline_or_refresh_or_detectMissingFields_or_batchSize__ = {
1176
+ aggregationPipeline?: ({
1177
+ name: "unwind";
1178
+ params: {
1179
+ src: string;
1180
+ dest: string;
1181
+ allowEmpty?: boolean;
1182
+ };
1183
+ } | {
1184
+ name: "extra_data_fields";
1185
+ params: {
1186
+ fieldNames: string[];
1187
+ };
1188
+ } | {
1189
+ name: "merge";
1190
+ params: {
1191
+ fieldNames: string[];
1192
+ datasourceId: string;
1193
+ query: string;
1194
+ };
1195
+ } | {
1196
+ name: "count";
1197
+ params: {
1198
+ fieldNames: string[];
1199
+ datasourceId: string;
1200
+ query: string;
635
1201
  };
636
1202
  })[];
637
- readonly 'lastRunAt'?: (Date) & readonlyP;
638
- readonly 'pausedAt'?: (Date) & readonlyP;
639
- readonly 'isPaused'?: (boolean) & readonlyP;
640
- 'template'?: ObjectId | Document & DatasourceTemplate;
641
- readonly 'configurationUpdatedAt'?: (Date) & readonlyP;
642
- readonly 'archivedAt'?: (Date) & readonlyP;
643
- readonly 'state'?: (DatasourceVersionState) & readonlyP;
644
- 'batchSize'?: number;
645
- 'aggregationPipeline'?: (AggregationStep)[];
646
- 'detectMissingFields'?: boolean;
647
- 'apiOptions'?: WorkerApiOptions;
648
- 'refresh'?: {
649
- 'freq': number;
650
- } | {
651
- 'cron': string;
1203
+ refresh?: {
1204
+ freq: number;
1205
+ } | {
1206
+ cron: string;
1207
+ } | {
1208
+ datasourceIds: string[];
652
1209
  };
653
- readonly 'isAPI'?: (boolean) & readonlyP;
654
- readonly 'fileName'?: (string) & readonlyP;
655
- 'type'?: DatasourceGeneric | DatasourceProduct | DatasourceLocation;
656
- 'urls'?: (string)[];
657
- 'url'?: string;
658
- 'format'?: Format;
659
- 'textEncoding'?: string;
660
- 'sample'?: {
1210
+ detectMissingFields?: boolean;
1211
+ batchSize?: number;
1212
+ };
1213
+ export declare type ProxyApiOptions = Pick__oauth_string_or_undefined_method_GET_or_PATCH_or_POST_or_PUT_or_undefined_body_string_or_undefined_headers___x_string__string___or_undefined_query___x_string__string___or_undefined_variables_VariableDefinition_Array_or_undefined___NonFunctionPropertyNames_ProxyApiOptions__;
1214
+ export declare type Partial_Pick_ProxyDatasourceVersion_apiOptions_or_sample_or_textEncoding_or_format__ = {
1215
+ apiOptions?: ProxyApiOptions;
1216
+ sample?: {
661
1217
  [key: string]: AnyValue;
662
1218
  };
663
- 'pendingSteps'?: ({
664
- 'name': 'configure_name' | 'configure_source' | 'configure_fieldsmap' | 'configure_thresholds' | 'configure_content' | 'patch' | 'validate';
665
- } | {
666
- 'name': 'configure_field';
667
- 'field': {
668
- 'name': string;
669
- 'type': FieldMapType;
670
- };
671
- } | {
672
- 'name': 'configure_oauth';
673
- 'configurationId': string;
674
- } | AutomaticStep)[];
675
- 'fieldsMap'?: (FieldMap)[];
676
- readonly 'availableFieldsTypes'?: ((FieldMapType)[]) & readonlyP;
677
- readonly 'requiredFieldsTypes'?: (((FieldMapType)[])[]) & readonlyP;
678
- readonly 'uniqueFieldsTypes'?: ((FieldMapType)[]) & readonlyP;
679
- 'fetchTransformer'?: '';
680
- readonly 'health'?: ('OK' | 'WARNING' | 'ERROR') & readonlyP;
681
- };
682
- export declare type Partial_IngesterDatasourceVersion__ = {
683
- 'companyId'?: string;
684
- 'resourceGroupIds'?: (string)[];
685
- readonly 'id'?: (string) & readonlyP;
686
- 'mode'?: DatasourceMode;
687
- 'name'?: string;
688
- readonly 'createdAt'?: (Date) & readonlyP;
689
- readonly 'updatedAt'?: (Date) & readonlyP;
690
- 'template'?: ObjectId | Document & DatasourceTemplate;
691
- readonly 'configurationUpdatedAt'?: (Date) & readonlyP;
692
- readonly 'archivedAt'?: (Date) & readonlyP;
693
- 'storageOptions'?: {
694
- 'retention': number;
695
- 'replicasPerPartition': number;
696
- 'timeField': {
697
- 'name': string;
698
- 'unit': 'SECONDS';
699
- };
700
- };
701
- readonly 'state'?: ('LIVE' | 'DRAFT') & readonlyP;
702
- 'type'?: DatasourceAnalytics;
703
- 'pendingSteps'?: ({
704
- 'name': 'configure_name' | 'configure_source' | 'configure_fieldsmap' | 'configure_thresholds' | 'configure_content' | 'patch' | 'validate';
705
- } | {
706
- 'name': 'configure_field';
707
- 'field': {
708
- 'name': string;
709
- 'type': FieldMapType;
710
- };
711
- } | {
712
- 'name': 'configure_oauth';
713
- 'configurationId': string;
714
- } | AutomaticStep)[];
715
- 'fieldsMap'?: (IngesterFieldMap)[];
716
- readonly 'availableFieldsTypes'?: ((FieldMapType)[]) & readonlyP;
717
- readonly 'requiredFieldsTypes'?: (((FieldMapType)[])[]) & readonlyP;
718
- readonly 'uniqueFieldsTypes'?: ((FieldMapType)[]) & readonlyP;
719
- 'fetchTransformer'?: '';
720
- readonly 'health'?: ('OK' | 'WARNING' | 'ERROR') & readonlyP;
721
- };
722
- export declare type Partial_ProxyDatasourceVersion__ = {
723
- 'companyId'?: string;
724
- 'resourceGroupIds'?: (string)[];
725
- readonly 'id'?: (string) & readonlyP;
726
- 'mode'?: DatasourceMode;
727
- 'name'?: string;
728
- readonly 'createdAt'?: (Date) & readonlyP;
729
- readonly 'updatedAt'?: (Date) & readonlyP;
730
- 'template'?: ObjectId | Document & DatasourceTemplate;
731
- readonly 'configurationUpdatedAt'?: (Date) & readonlyP;
732
- readonly 'archivedAt'?: (Date) & readonlyP;
733
- readonly 'state'?: ('LIVE' | 'DRAFT' | 'INACTIVE') & readonlyP;
734
- 'apiOptions'?: ProxyApiOptions;
735
- 'refresh'?: ProxyRefresh;
736
- 'type'?: DatasourceGeneric | DatasourceProduct | DatasourceLocation;
737
- 'urls'?: (string)[];
738
- 'url'?: string;
739
- 'format'?: Format;
740
- 'textEncoding'?: string;
741
- 'sample'?: {
1219
+ textEncoding?: string;
1220
+ format?: Format;
1221
+ };
1222
+ export declare type ProxyRefresh = {
1223
+ freq: number;
1224
+ };
1225
+ export declare type Pick_ProxyDatasourceVersion_refresh_ = {
1226
+ refresh: ProxyRefresh;
1227
+ };
1228
+ export declare type _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_WorkerApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__ = {
1229
+ urls: string[];
1230
+ ignoreMissingLiveFields?: true;
1231
+ apiOptions?: WorkerApiOptions;
1232
+ sample?: {
742
1233
  [key: string]: AnyValue;
743
1234
  };
744
- 'pendingSteps'?: ({
745
- 'name': 'configure_name' | 'configure_source' | 'configure_fieldsmap' | 'configure_thresholds' | 'configure_content' | 'patch' | 'validate';
1235
+ textEncoding: string;
1236
+ format: Format;
1237
+ };
1238
+ export declare type _file_string_ignoreMissingLiveFields_string_textEncoding_string_format_Format__ = {
1239
+ file: string;
1240
+ ignoreMissingLiveFields?: string;
1241
+ textEncoding: string;
1242
+ format: Format;
1243
+ };
1244
+ export declare type _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____ = {
1245
+ name: string;
1246
+ type: FieldMapType;
1247
+ selected: boolean;
1248
+ rules: (({
1249
+ name: "static" | "path";
1250
+ params: {
1251
+ value: string;
1252
+ };
1253
+ } | {
1254
+ name: "path";
1255
+ params: {
1256
+ fromRoot: true;
1257
+ value: string;
1258
+ };
1259
+ }) | ({
1260
+ name: "static" | "path";
1261
+ params: {
1262
+ value: string;
1263
+ };
1264
+ } | {
1265
+ name: "path";
1266
+ params: {
1267
+ fromRoot: true;
1268
+ value: string;
1269
+ };
1270
+ } | {
1271
+ name: "array_find";
1272
+ params: {
1273
+ key: string;
1274
+ operator: "=";
1275
+ value: string | number;
1276
+ };
1277
+ } | {
1278
+ name: "array_find";
1279
+ params: {
1280
+ key: string;
1281
+ operator: "=";
1282
+ valuePath: string;
1283
+ };
1284
+ } | {
1285
+ name: "array_find";
1286
+ params: {
1287
+ conditions: (Pick_Condition_path_or_operator_ & {
1288
+ evaluateValue: string;
1289
+ })[];
1290
+ };
1291
+ } | {
1292
+ name: "fallback";
1293
+ params: FieldMapFallbackRulePayload;
1294
+ } | {
1295
+ name: "fallback";
1296
+ params: Pick_FieldMapFallbackRulePayload_valuePath_or_exit_ & {
1297
+ staticValue: string | number | string[] | {
1298
+ [key: string]: string;
1299
+ } | number[] | {
1300
+ [key: string]: number;
1301
+ };
1302
+ };
1303
+ } | {
1304
+ name: "fallback_if";
1305
+ params: FieldMapFallbackRulePayload & {
1306
+ conditions: (Condition | (Pick_Condition_path_or_operator_ & {
1307
+ evaluateValue: string;
1308
+ }))[];
1309
+ };
746
1310
  } | {
747
- 'name': 'configure_field';
748
- 'field': {
749
- 'name': string;
750
- 'type': FieldMapType;
1311
+ name: "exclude_from_record";
1312
+ params: {
1313
+ keys: string[];
751
1314
  };
752
1315
  } | {
753
- 'name': 'configure_oauth';
754
- 'configurationId': string;
755
- } | AutomaticStep)[];
756
- 'fieldsMap'?: (FieldMap)[];
757
- readonly 'availableFieldsTypes'?: ((FieldMapType)[]) & readonlyP;
758
- readonly 'requiredFieldsTypes'?: (((FieldMapType)[])[]) & readonlyP;
759
- readonly 'uniqueFieldsTypes'?: ((FieldMapType)[]) & readonlyP;
760
- 'fetchTransformer'?: '';
761
- readonly 'health'?: ('OK' | 'WARNING' | 'ERROR') & readonlyP;
1316
+ name: "decrypt";
1317
+ params: {
1318
+ passwordPrefixPath?: string;
1319
+ };
1320
+ } | {
1321
+ name: "interpolate";
1322
+ params: {
1323
+ value: string;
1324
+ };
1325
+ }))[];
1326
+ source?: FieldSource;
1327
+ readonly primitive: ("string" | "number" | "datetime" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
762
1328
  };
763
- export declare enum StepName {
764
- CONFIGURE_NAME = "configure_name",
765
- CONFIGURE_SOURCE = "configure_source",
766
- CONFIGURE_FIELDSMAP = "configure_fieldsmap",
767
- CONFIGURE_FIELD = "configure_field",
768
- CONFIGURE_OAUTH = "configure_oauth",
769
- CONFIGURE_THRESHOLDS = "configure_thresholds",
770
- CONFIGURE_CONTENT = "configure_content",
771
- PATCH = "patch",
772
- VALIDATE = "validate"
773
- }
774
- export declare type Partial_Pick_PullDatasourceVersion_format_or_textEncoding_or_sample__ = {
775
- 'format'?: Format;
776
- 'textEncoding'?: string;
777
- 'sample'?: {
1329
+ export declare type __x_string__never__ = {};
1330
+ export declare type _sample___key_string__unknown___textEncoding_string_format_Format__ = {
1331
+ sample?: {
778
1332
  [key: string]: AnyValue;
779
1333
  };
1334
+ textEncoding: string;
1335
+ format: Format;
780
1336
  };
781
- export declare type ApiOptions_ = {
782
- 'oauth'?: string;
783
- 'method'?: 'GET' | 'PATCH' | 'POST' | 'PUT';
784
- 'body'?: string;
785
- 'headers'?: {
786
- [key: string]: string;
787
- };
788
- 'query'?: {
789
- [key: string]: string;
1337
+ export declare type _value_string__ = {
1338
+ value: string;
1339
+ };
1340
+ export declare type _aggregationPipeline_AggregationStep_Array_refresh_WorkerRefresh_detectMissingFields_boolean_batchSize_number__ = {
1341
+ aggregationPipeline: ({
1342
+ name: "unwind";
1343
+ params: {
1344
+ src: string;
1345
+ dest: string;
1346
+ allowEmpty?: boolean;
1347
+ };
1348
+ } | {
1349
+ name: "extra_data_fields";
1350
+ params: {
1351
+ fieldNames: string[];
1352
+ };
1353
+ } | {
1354
+ name: "merge";
1355
+ params: {
1356
+ fieldNames: string[];
1357
+ datasourceId: string;
1358
+ query: string;
1359
+ };
1360
+ } | {
1361
+ name: "count";
1362
+ params: {
1363
+ fieldNames: string[];
1364
+ datasourceId: string;
1365
+ query: string;
1366
+ };
1367
+ })[];
1368
+ refresh: {
1369
+ freq: number;
1370
+ } | {
1371
+ cron: string;
1372
+ } | {
1373
+ datasourceIds: string[];
790
1374
  };
1375
+ detectMissingFields: boolean;
1376
+ batchSize: number;
791
1377
  };
792
- export declare type ApiOptions = ApiOptions_;
793
- export declare type Partial_Pick_PullDatasourceVersion_apiOptions_or_format_or_textEncoding__ = {
794
- 'apiOptions'?: ApiOptions;
795
- 'format'?: Format;
796
- 'textEncoding'?: string;
1378
+ export declare type _type_user_or_hashtag_value_string__ = {
1379
+ type: "user" | "hashtag";
1380
+ value: string;
797
1381
  };
798
- export declare type Partial_Pick_WorkerDatasourceVersion_batchSize_or_aggregationPipeline_or_refresh__ = {
799
- 'batchSize'?: number;
800
- 'aggregationPipeline'?: (AggregationStep)[];
801
- 'refresh'?: {
802
- 'freq': number;
803
- } | {
804
- 'cron': string;
1382
+ export declare type _datasourceId_string__ = {
1383
+ datasourceId: string;
1384
+ };
1385
+ export declare type _query_string__ = {
1386
+ query: string;
1387
+ };
1388
+ export declare type _field_string__ = {
1389
+ field: string;
1390
+ };
1391
+ export declare type _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_ProxyApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__ = {
1392
+ urls: string[];
1393
+ ignoreMissingLiveFields?: true;
1394
+ apiOptions?: ProxyApiOptions;
1395
+ sample?: {
1396
+ [key: string]: AnyValue;
805
1397
  };
1398
+ textEncoding: string;
1399
+ format: Format;
806
1400
  };
807
- export declare type Pick_ProxyDatasourceVersion_refresh_ = {
808
- 'refresh': ProxyRefresh;
1401
+ export declare type _refresh_ProxyRefresh__ = {
1402
+ refresh: ProxyRefresh;
809
1403
  };
810
- export declare type LogLevel = 0 | 1 | 2;
811
- export declare type SerializedDatasourceLog = {
812
- 'version': string;
813
- 'companyId': string;
814
- readonly 'id': (string) & readonlyP;
815
- 'payload': {};
816
- readonly 'createdAt': (Date) & readonlyP;
817
- readonly 'updatedAt': (Date) & readonlyP;
818
- 'contentVersion': number;
819
- 'type': 'too_many_invalid_entries' | 'entries_drop_rate_too_high' | 'fatal' | 'entries_drop_rate_too_high' | 'refresh_time_too_small' | 'missing_fields' | 'start' | 'end' | 'content_update' | 'geocoding_address' | 'geocoding_country' | 'invalid_type' | 'invalid_unwind_source' | 'required_values_empty';
820
- 'datasourceId': string;
821
- 'date': Date;
822
- 'level': LogLevel;
823
- 'entryIndex'?: number;
1404
+ export declare type CurrentSteps = {
1405
+ current: ({
1406
+ name: "configure_name";
1407
+ } & {
1408
+ value?: string;
1409
+ }) | ({
1410
+ name: "configure_resource_group_ids";
1411
+ } & {
1412
+ value?: string[];
1413
+ }) | ({
1414
+ name: "configure_source";
1415
+ mode?: "url" | "file";
1416
+ } & {
1417
+ value?: _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_WorkerApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__ | _file_string_ignoreMissingLiveFields_string_textEncoding_string_format_Format__;
1418
+ }) | ({
1419
+ name: "configure_fieldsmap";
1420
+ } & {
1421
+ value?: FieldMap[];
1422
+ }) | ({
1423
+ name: "configure_field";
1424
+ field: {
1425
+ name: string;
1426
+ type: FieldMapType;
1427
+ };
1428
+ } & {
1429
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1430
+ }) | ({
1431
+ name: "create_oauth_client";
1432
+ configurationId: string;
1433
+ } & {
1434
+ value?: __x_string__never__;
1435
+ }) | ({
1436
+ name: "authorize_oauth_client";
1437
+ slug: string;
1438
+ } & {
1439
+ value?: __x_string__never__;
1440
+ }) | ({
1441
+ name: "configure_thresholds";
1442
+ } & {
1443
+ value?: ({
1444
+ type: "too_many_invalid_entries";
1445
+ value: number;
1446
+ trigger: {
1447
+ type: "error";
1448
+ value: "too_many_invalid_entries";
1449
+ };
1450
+ } | {
1451
+ type: "entries_drop_rate_too_high";
1452
+ value: number;
1453
+ trigger: {
1454
+ type: "warning";
1455
+ value: "entries_drop_rate_too_high";
1456
+ } | {
1457
+ type: "error";
1458
+ value: "entries_drop_rate_too_high";
1459
+ };
1460
+ })[];
1461
+ }) | ({
1462
+ name: "configure_content";
1463
+ } & {
1464
+ value?: _sample___key_string__unknown___textEncoding_string_format_Format__;
1465
+ }) | ({
1466
+ name: "configure_api_key";
1467
+ slug: "partoo";
1468
+ } & {
1469
+ value?: _value_string__;
1470
+ }) | ({
1471
+ name: "patch";
1472
+ } & {
1473
+ value?: _aggregationPipeline_AggregationStep_Array_refresh_WorkerRefresh_detectMissingFields_boolean_batchSize_number__;
1474
+ }) | ({
1475
+ name: "validate";
1476
+ } & {
1477
+ value?: __x_string__never__;
1478
+ }) | ({
1479
+ name: "configure_shopify_shop_name";
1480
+ configurationId: string;
1481
+ } & {
1482
+ value?: string;
1483
+ }) | ({
1484
+ name: "configure_twitter";
1485
+ } & {
1486
+ value?: _type_user_or_hashtag_value_string__;
1487
+ }) | ({
1488
+ name: "configure_product_datasource_source";
1489
+ } & {
1490
+ value?: _datasourceId_string__;
1491
+ }) | ({
1492
+ name: "configure_tracking_datasource_source";
1493
+ } & {
1494
+ value?: _datasourceId_string__;
1495
+ }) | ({
1496
+ name: "configure_best_product_query";
1497
+ } & {
1498
+ value?: _query_string__;
1499
+ }) | ({
1500
+ name: "configure_best_product_field";
1501
+ } & {
1502
+ value?: _field_string__;
1503
+ }) | ({
1504
+ name: "configure_name";
1505
+ } & {
1506
+ value?: string;
1507
+ }) | ({
1508
+ name: "configure_resource_group_ids";
1509
+ } & {
1510
+ value?: string[];
1511
+ }) | ({
1512
+ name: "configure_source";
1513
+ mode?: "url" | "file";
1514
+ } & {
1515
+ value?: _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_ProxyApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__;
1516
+ }) | ({
1517
+ name: "configure_fieldsmap";
1518
+ } & {
1519
+ value?: FieldMap[];
1520
+ }) | ({
1521
+ name: "configure_field";
1522
+ field: {
1523
+ name: string;
1524
+ type: FieldMapType;
1525
+ };
1526
+ } & {
1527
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1528
+ }) | ({
1529
+ name: "create_oauth_client";
1530
+ configurationId: string;
1531
+ } & {
1532
+ value?: __x_string__never__;
1533
+ }) | ({
1534
+ name: "authorize_oauth_client";
1535
+ slug: string;
1536
+ } & {
1537
+ value?: __x_string__never__;
1538
+ }) | ({
1539
+ name: "configure_content";
1540
+ } & {
1541
+ value?: _sample___key_string__unknown___textEncoding_string_format_Format__;
1542
+ }) | ({
1543
+ name: "configure_api_key";
1544
+ slug: "partoo";
1545
+ } & {
1546
+ value?: _value_string__;
1547
+ }) | ({
1548
+ name: "patch";
1549
+ } & {
1550
+ value?: _refresh_ProxyRefresh__;
1551
+ }) | ({
1552
+ name: "validate";
1553
+ } & {
1554
+ value?: __x_string__never__;
1555
+ }) | ({
1556
+ name: "configure_name";
1557
+ } & {
1558
+ value?: string;
1559
+ }) | ({
1560
+ name: "configure_resource_group_ids";
1561
+ } & {
1562
+ value?: string[];
1563
+ }) | ({
1564
+ name: "configure_fieldsmap";
1565
+ } & {
1566
+ value?: FieldMap[];
1567
+ }) | ({
1568
+ name: "configure_field";
1569
+ field: {
1570
+ name: string;
1571
+ type: FieldMapType;
1572
+ };
1573
+ } & {
1574
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1575
+ }) | ({
1576
+ name: "validate";
1577
+ } & {
1578
+ value?: __x_string__never__;
1579
+ }) | ({
1580
+ name: "inject_shopify_analytics_script";
1581
+ configurationId: string;
1582
+ } & {
1583
+ value?: string;
1584
+ }) | ({
1585
+ name: "configure_shopify_analytics_script";
1586
+ } & {
1587
+ value?: __x_string__never__;
1588
+ }) | ({
1589
+ name: "configure_google_tag_manager";
1590
+ } & {
1591
+ value?: __x_string__never__;
1592
+ }) | ({
1593
+ name: "configure_reelevant_analytics_script";
1594
+ } & {
1595
+ value?: __x_string__never__;
1596
+ });
1597
+ next: (({
1598
+ name: "configure_name";
1599
+ } & {
1600
+ value?: string;
1601
+ }) | ({
1602
+ name: "configure_resource_group_ids";
1603
+ } & {
1604
+ value?: string[];
1605
+ }) | ({
1606
+ name: "configure_source";
1607
+ mode?: "url" | "file";
1608
+ } & {
1609
+ value?: _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_WorkerApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__ | _file_string_ignoreMissingLiveFields_string_textEncoding_string_format_Format__;
1610
+ }) | ({
1611
+ name: "configure_fieldsmap";
1612
+ } & {
1613
+ value?: FieldMap[];
1614
+ }) | ({
1615
+ name: "configure_field";
1616
+ field: {
1617
+ name: string;
1618
+ type: FieldMapType;
1619
+ };
1620
+ } & {
1621
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1622
+ }) | ({
1623
+ name: "create_oauth_client";
1624
+ configurationId: string;
1625
+ } & {
1626
+ value?: __x_string__never__;
1627
+ }) | ({
1628
+ name: "authorize_oauth_client";
1629
+ slug: string;
1630
+ } & {
1631
+ value?: __x_string__never__;
1632
+ }) | ({
1633
+ name: "configure_thresholds";
1634
+ } & {
1635
+ value?: ({
1636
+ type: "too_many_invalid_entries";
1637
+ value: number;
1638
+ trigger: {
1639
+ type: "error";
1640
+ value: "too_many_invalid_entries";
1641
+ };
1642
+ } | {
1643
+ type: "entries_drop_rate_too_high";
1644
+ value: number;
1645
+ trigger: {
1646
+ type: "warning";
1647
+ value: "entries_drop_rate_too_high";
1648
+ } | {
1649
+ type: "error";
1650
+ value: "entries_drop_rate_too_high";
1651
+ };
1652
+ })[];
1653
+ }) | ({
1654
+ name: "configure_content";
1655
+ } & {
1656
+ value?: _sample___key_string__unknown___textEncoding_string_format_Format__;
1657
+ }) | ({
1658
+ name: "configure_api_key";
1659
+ slug: "partoo";
1660
+ } & {
1661
+ value?: _value_string__;
1662
+ }) | ({
1663
+ name: "patch";
1664
+ } & {
1665
+ value?: _aggregationPipeline_AggregationStep_Array_refresh_WorkerRefresh_detectMissingFields_boolean_batchSize_number__;
1666
+ }) | ({
1667
+ name: "validate";
1668
+ } & {
1669
+ value?: __x_string__never__;
1670
+ }) | ({
1671
+ name: "configure_shopify_shop_name";
1672
+ configurationId: string;
1673
+ } & {
1674
+ value?: string;
1675
+ }) | ({
1676
+ name: "configure_twitter";
1677
+ } & {
1678
+ value?: _type_user_or_hashtag_value_string__;
1679
+ }) | ({
1680
+ name: "configure_product_datasource_source";
1681
+ } & {
1682
+ value?: _datasourceId_string__;
1683
+ }) | ({
1684
+ name: "configure_tracking_datasource_source";
1685
+ } & {
1686
+ value?: _datasourceId_string__;
1687
+ }) | ({
1688
+ name: "configure_best_product_query";
1689
+ } & {
1690
+ value?: _query_string__;
1691
+ }) | ({
1692
+ name: "configure_best_product_field";
1693
+ } & {
1694
+ value?: _field_string__;
1695
+ }) | ({
1696
+ name: "configure_name";
1697
+ } & {
1698
+ value?: string;
1699
+ }) | ({
1700
+ name: "configure_resource_group_ids";
1701
+ } & {
1702
+ value?: string[];
1703
+ }) | ({
1704
+ name: "configure_source";
1705
+ mode?: "url" | "file";
1706
+ } & {
1707
+ value?: _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_ProxyApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__;
1708
+ }) | ({
1709
+ name: "configure_fieldsmap";
1710
+ } & {
1711
+ value?: FieldMap[];
1712
+ }) | ({
1713
+ name: "configure_field";
1714
+ field: {
1715
+ name: string;
1716
+ type: FieldMapType;
1717
+ };
1718
+ } & {
1719
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1720
+ }) | ({
1721
+ name: "create_oauth_client";
1722
+ configurationId: string;
1723
+ } & {
1724
+ value?: __x_string__never__;
1725
+ }) | ({
1726
+ name: "authorize_oauth_client";
1727
+ slug: string;
1728
+ } & {
1729
+ value?: __x_string__never__;
1730
+ }) | ({
1731
+ name: "configure_content";
1732
+ } & {
1733
+ value?: _sample___key_string__unknown___textEncoding_string_format_Format__;
1734
+ }) | ({
1735
+ name: "configure_api_key";
1736
+ slug: "partoo";
1737
+ } & {
1738
+ value?: _value_string__;
1739
+ }) | ({
1740
+ name: "patch";
1741
+ } & {
1742
+ value?: _refresh_ProxyRefresh__;
1743
+ }) | ({
1744
+ name: "validate";
1745
+ } & {
1746
+ value?: __x_string__never__;
1747
+ }) | ({
1748
+ name: "configure_name";
1749
+ } & {
1750
+ value?: string;
1751
+ }) | ({
1752
+ name: "configure_resource_group_ids";
1753
+ } & {
1754
+ value?: string[];
1755
+ }) | ({
1756
+ name: "configure_fieldsmap";
1757
+ } & {
1758
+ value?: FieldMap[];
1759
+ }) | ({
1760
+ name: "configure_field";
1761
+ field: {
1762
+ name: string;
1763
+ type: FieldMapType;
1764
+ };
1765
+ } & {
1766
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1767
+ }) | ({
1768
+ name: "validate";
1769
+ } & {
1770
+ value?: __x_string__never__;
1771
+ }) | ({
1772
+ name: "inject_shopify_analytics_script";
1773
+ configurationId: string;
1774
+ } & {
1775
+ value?: string;
1776
+ }) | ({
1777
+ name: "configure_shopify_analytics_script";
1778
+ } & {
1779
+ value?: __x_string__never__;
1780
+ }) | ({
1781
+ name: "configure_google_tag_manager";
1782
+ } & {
1783
+ value?: __x_string__never__;
1784
+ }) | ({
1785
+ name: "configure_reelevant_analytics_script";
1786
+ } & {
1787
+ value?: __x_string__never__;
1788
+ }))[];
1789
+ previous: (({
1790
+ name: "configure_name";
1791
+ } & {
1792
+ value?: string;
1793
+ }) | ({
1794
+ name: "configure_resource_group_ids";
1795
+ } & {
1796
+ value?: string[];
1797
+ }) | ({
1798
+ name: "configure_source";
1799
+ mode?: "url" | "file";
1800
+ } & {
1801
+ value?: _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_WorkerApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__ | _file_string_ignoreMissingLiveFields_string_textEncoding_string_format_Format__;
1802
+ }) | ({
1803
+ name: "configure_fieldsmap";
1804
+ } & {
1805
+ value?: FieldMap[];
1806
+ }) | ({
1807
+ name: "configure_field";
1808
+ field: {
1809
+ name: string;
1810
+ type: FieldMapType;
1811
+ };
1812
+ } & {
1813
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1814
+ }) | ({
1815
+ name: "create_oauth_client";
1816
+ configurationId: string;
1817
+ } & {
1818
+ value?: __x_string__never__;
1819
+ }) | ({
1820
+ name: "authorize_oauth_client";
1821
+ slug: string;
1822
+ } & {
1823
+ value?: __x_string__never__;
1824
+ }) | ({
1825
+ name: "configure_thresholds";
1826
+ } & {
1827
+ value?: ({
1828
+ type: "too_many_invalid_entries";
1829
+ value: number;
1830
+ trigger: {
1831
+ type: "error";
1832
+ value: "too_many_invalid_entries";
1833
+ };
1834
+ } | {
1835
+ type: "entries_drop_rate_too_high";
1836
+ value: number;
1837
+ trigger: {
1838
+ type: "warning";
1839
+ value: "entries_drop_rate_too_high";
1840
+ } | {
1841
+ type: "error";
1842
+ value: "entries_drop_rate_too_high";
1843
+ };
1844
+ })[];
1845
+ }) | ({
1846
+ name: "configure_content";
1847
+ } & {
1848
+ value?: _sample___key_string__unknown___textEncoding_string_format_Format__;
1849
+ }) | ({
1850
+ name: "configure_api_key";
1851
+ slug: "partoo";
1852
+ } & {
1853
+ value?: _value_string__;
1854
+ }) | ({
1855
+ name: "patch";
1856
+ } & {
1857
+ value?: _aggregationPipeline_AggregationStep_Array_refresh_WorkerRefresh_detectMissingFields_boolean_batchSize_number__;
1858
+ }) | ({
1859
+ name: "validate";
1860
+ } & {
1861
+ value?: __x_string__never__;
1862
+ }) | ({
1863
+ name: "configure_shopify_shop_name";
1864
+ configurationId: string;
1865
+ } & {
1866
+ value?: string;
1867
+ }) | ({
1868
+ name: "configure_twitter";
1869
+ } & {
1870
+ value?: _type_user_or_hashtag_value_string__;
1871
+ }) | ({
1872
+ name: "configure_product_datasource_source";
1873
+ } & {
1874
+ value?: _datasourceId_string__;
1875
+ }) | ({
1876
+ name: "configure_tracking_datasource_source";
1877
+ } & {
1878
+ value?: _datasourceId_string__;
1879
+ }) | ({
1880
+ name: "configure_best_product_query";
1881
+ } & {
1882
+ value?: _query_string__;
1883
+ }) | ({
1884
+ name: "configure_best_product_field";
1885
+ } & {
1886
+ value?: _field_string__;
1887
+ }) | ({
1888
+ name: "configure_name";
1889
+ } & {
1890
+ value?: string;
1891
+ }) | ({
1892
+ name: "configure_resource_group_ids";
1893
+ } & {
1894
+ value?: string[];
1895
+ }) | ({
1896
+ name: "configure_source";
1897
+ mode?: "url" | "file";
1898
+ } & {
1899
+ value?: _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_ProxyApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__;
1900
+ }) | ({
1901
+ name: "configure_fieldsmap";
1902
+ } & {
1903
+ value?: FieldMap[];
1904
+ }) | ({
1905
+ name: "configure_field";
1906
+ field: {
1907
+ name: string;
1908
+ type: FieldMapType;
1909
+ };
1910
+ } & {
1911
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1912
+ }) | ({
1913
+ name: "create_oauth_client";
1914
+ configurationId: string;
1915
+ } & {
1916
+ value?: __x_string__never__;
1917
+ }) | ({
1918
+ name: "authorize_oauth_client";
1919
+ slug: string;
1920
+ } & {
1921
+ value?: __x_string__never__;
1922
+ }) | ({
1923
+ name: "configure_content";
1924
+ } & {
1925
+ value?: _sample___key_string__unknown___textEncoding_string_format_Format__;
1926
+ }) | ({
1927
+ name: "configure_api_key";
1928
+ slug: "partoo";
1929
+ } & {
1930
+ value?: _value_string__;
1931
+ }) | ({
1932
+ name: "patch";
1933
+ } & {
1934
+ value?: _refresh_ProxyRefresh__;
1935
+ }) | ({
1936
+ name: "validate";
1937
+ } & {
1938
+ value?: __x_string__never__;
1939
+ }) | ({
1940
+ name: "configure_name";
1941
+ } & {
1942
+ value?: string;
1943
+ }) | ({
1944
+ name: "configure_resource_group_ids";
1945
+ } & {
1946
+ value?: string[];
1947
+ }) | ({
1948
+ name: "configure_fieldsmap";
1949
+ } & {
1950
+ value?: FieldMap[];
1951
+ }) | ({
1952
+ name: "configure_field";
1953
+ field: {
1954
+ name: string;
1955
+ type: FieldMapType;
1956
+ };
1957
+ } & {
1958
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
1959
+ }) | ({
1960
+ name: "validate";
1961
+ } & {
1962
+ value?: __x_string__never__;
1963
+ }) | ({
1964
+ name: "inject_shopify_analytics_script";
1965
+ configurationId: string;
1966
+ } & {
1967
+ value?: string;
1968
+ }) | ({
1969
+ name: "configure_shopify_analytics_script";
1970
+ } & {
1971
+ value?: __x_string__never__;
1972
+ }) | ({
1973
+ name: "configure_google_tag_manager";
1974
+ } & {
1975
+ value?: __x_string__never__;
1976
+ }) | ({
1977
+ name: "configure_reelevant_analytics_script";
1978
+ } & {
1979
+ value?: __x_string__never__;
1980
+ }))[];
1981
+ available: (({
1982
+ name: "configure_name";
1983
+ } & {
1984
+ value?: string;
1985
+ }) | ({
1986
+ name: "configure_resource_group_ids";
1987
+ } & {
1988
+ value?: string[];
1989
+ }) | ({
1990
+ name: "configure_source";
1991
+ mode?: "url" | "file";
1992
+ } & {
1993
+ value?: _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_WorkerApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__ | _file_string_ignoreMissingLiveFields_string_textEncoding_string_format_Format__;
1994
+ }) | ({
1995
+ name: "configure_fieldsmap";
1996
+ } & {
1997
+ value?: FieldMap[];
1998
+ }) | ({
1999
+ name: "configure_field";
2000
+ field: {
2001
+ name: string;
2002
+ type: FieldMapType;
2003
+ };
2004
+ } & {
2005
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
2006
+ }) | ({
2007
+ name: "create_oauth_client";
2008
+ configurationId: string;
2009
+ } & {
2010
+ value?: __x_string__never__;
2011
+ }) | ({
2012
+ name: "authorize_oauth_client";
2013
+ slug: string;
2014
+ } & {
2015
+ value?: __x_string__never__;
2016
+ }) | ({
2017
+ name: "configure_thresholds";
2018
+ } & {
2019
+ value?: ({
2020
+ type: "too_many_invalid_entries";
2021
+ value: number;
2022
+ trigger: {
2023
+ type: "error";
2024
+ value: "too_many_invalid_entries";
2025
+ };
2026
+ } | {
2027
+ type: "entries_drop_rate_too_high";
2028
+ value: number;
2029
+ trigger: {
2030
+ type: "warning";
2031
+ value: "entries_drop_rate_too_high";
2032
+ } | {
2033
+ type: "error";
2034
+ value: "entries_drop_rate_too_high";
2035
+ };
2036
+ })[];
2037
+ }) | ({
2038
+ name: "configure_content";
2039
+ } & {
2040
+ value?: _sample___key_string__unknown___textEncoding_string_format_Format__;
2041
+ }) | ({
2042
+ name: "configure_api_key";
2043
+ slug: "partoo";
2044
+ } & {
2045
+ value?: _value_string__;
2046
+ }) | ({
2047
+ name: "patch";
2048
+ } & {
2049
+ value?: _aggregationPipeline_AggregationStep_Array_refresh_WorkerRefresh_detectMissingFields_boolean_batchSize_number__;
2050
+ }) | ({
2051
+ name: "validate";
2052
+ } & {
2053
+ value?: __x_string__never__;
2054
+ }) | ({
2055
+ name: "configure_shopify_shop_name";
2056
+ configurationId: string;
2057
+ } & {
2058
+ value?: string;
2059
+ }) | ({
2060
+ name: "configure_twitter";
2061
+ } & {
2062
+ value?: _type_user_or_hashtag_value_string__;
2063
+ }) | ({
2064
+ name: "configure_product_datasource_source";
2065
+ } & {
2066
+ value?: _datasourceId_string__;
2067
+ }) | ({
2068
+ name: "configure_tracking_datasource_source";
2069
+ } & {
2070
+ value?: _datasourceId_string__;
2071
+ }) | ({
2072
+ name: "configure_best_product_query";
2073
+ } & {
2074
+ value?: _query_string__;
2075
+ }) | ({
2076
+ name: "configure_best_product_field";
2077
+ } & {
2078
+ value?: _field_string__;
2079
+ }) | ({
2080
+ name: "configure_name";
2081
+ } & {
2082
+ value?: string;
2083
+ }) | ({
2084
+ name: "configure_resource_group_ids";
2085
+ } & {
2086
+ value?: string[];
2087
+ }) | ({
2088
+ name: "configure_source";
2089
+ mode?: "url" | "file";
2090
+ } & {
2091
+ value?: _urls_string_Array_ignoreMissingLiveFields_true_apiOptions_ProxyApiOptions_sample___key_string__unknown___textEncoding_string_format_Format__;
2092
+ }) | ({
2093
+ name: "configure_fieldsmap";
2094
+ } & {
2095
+ value?: FieldMap[];
2096
+ }) | ({
2097
+ name: "configure_field";
2098
+ field: {
2099
+ name: string;
2100
+ type: FieldMapType;
2101
+ };
2102
+ } & {
2103
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
2104
+ }) | ({
2105
+ name: "create_oauth_client";
2106
+ configurationId: string;
2107
+ } & {
2108
+ value?: __x_string__never__;
2109
+ }) | ({
2110
+ name: "authorize_oauth_client";
2111
+ slug: string;
2112
+ } & {
2113
+ value?: __x_string__never__;
2114
+ }) | ({
2115
+ name: "configure_content";
2116
+ } & {
2117
+ value?: _sample___key_string__unknown___textEncoding_string_format_Format__;
2118
+ }) | ({
2119
+ name: "configure_api_key";
2120
+ slug: "partoo";
2121
+ } & {
2122
+ value?: _value_string__;
2123
+ }) | ({
2124
+ name: "patch";
2125
+ } & {
2126
+ value?: _refresh_ProxyRefresh__;
2127
+ }) | ({
2128
+ name: "validate";
2129
+ } & {
2130
+ value?: __x_string__never__;
2131
+ }) | ({
2132
+ name: "configure_name";
2133
+ } & {
2134
+ value?: string;
2135
+ }) | ({
2136
+ name: "configure_resource_group_ids";
2137
+ } & {
2138
+ value?: string[];
2139
+ }) | ({
2140
+ name: "configure_fieldsmap";
2141
+ } & {
2142
+ value?: FieldMap[];
2143
+ }) | ({
2144
+ name: "configure_field";
2145
+ field: {
2146
+ name: string;
2147
+ type: FieldMapType;
2148
+ };
2149
+ } & {
2150
+ value?: _name_string_type_FieldSource_readonlyprimitive_string_or_number_or_datetime_or_string_Array_or_number_Array_or_string___or_number____;
2151
+ }) | ({
2152
+ name: "validate";
2153
+ } & {
2154
+ value?: __x_string__never__;
2155
+ }) | ({
2156
+ name: "inject_shopify_analytics_script";
2157
+ configurationId: string;
2158
+ } & {
2159
+ value?: string;
2160
+ }) | ({
2161
+ name: "configure_shopify_analytics_script";
2162
+ } & {
2163
+ value?: __x_string__never__;
2164
+ }) | ({
2165
+ name: "configure_google_tag_manager";
2166
+ } & {
2167
+ value?: __x_string__never__;
2168
+ }) | ({
2169
+ name: "configure_reelevant_analytics_script";
2170
+ } & {
2171
+ value?: __x_string__never__;
2172
+ }))[];
824
2173
  };
825
2174
  export declare enum FieldMapRuleName {
826
2175
  STATIC = "static",
827
2176
  PATH = "path",
828
2177
  ARRAY_FIND = "array_find",
829
2178
  FALLBACK = "fallback",
2179
+ FALLBACK_IF = "fallback_if",
830
2180
  EXCLUDE_FROM_RECORD = "exclude_from_record",
831
- DECRYPT = "decrypt"
832
- }
833
- export declare type DatasourceWithVersion = Pick_Pick_WorkerDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ & Pick_WorkerDatasourceVersion__mode_or_state_or_batchSize_or_aggregationPipeline_or_detectMissingFields_or_apiOptions_or_refresh_or_isAPI_or_fileName_or_type_or_urls_or_url_or_format_or_textEncoding_or_sample_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
834
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
835
- } | Pick_Pick_IngesterDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined_ & Pick_IngesterDatasourceVersion__mode_or_state_or_type_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
836
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
837
- } | Pick_Pick_ProxyDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ & Pick_ProxyDatasourceVersion__mode_or_state_or_apiOptions_or_refresh_or_type_or_urls_or_url_or_format_or_textEncoding_or_sample_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
838
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
839
- };
840
- export declare type DatasourceWithVersions = Pick_WorkerDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ | Pick_ProxyDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ | Pick_IngesterDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined_;
841
- export declare type WorkerDatasourceWithVersion = Pick_Pick_WorkerDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ & Pick_WorkerDatasourceVersion__mode_or_state_or_batchSize_or_aggregationPipeline_or_detectMissingFields_or_apiOptions_or_refresh_or_isAPI_or_fileName_or_type_or_urls_or_url_or_format_or_textEncoding_or_sample_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
842
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
843
- };
844
- export declare type WorkerDatasourceWithVersions = Pick_WorkerDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_contentVersion_or_thresholds_or_lastRunAt_or_pausedAt_or_isPaused_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_;
845
- export declare type ProxyDatasourceWithVersion = Pick_Pick_ProxyDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_ & Pick_ProxyDatasourceVersion__mode_or_state_or_apiOptions_or_refresh_or_type_or_urls_or_url_or_format_or_textEncoding_or_sample_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
846
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
847
- };
848
- export declare type ProxyDatasourceWithVersions = Pick_ProxyDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_undefined_;
849
- export declare type IngesterDatasourceWithVersion = Pick_Pick_IngesterDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined__companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined_ & Pick_IngesterDatasourceVersion__mode_or_state_or_type_or_pendingSteps_or_fieldsMap_or_availableFieldsTypes_or_requiredFieldsTypes_or_uniqueFieldsTypes_or_fetchTransformer_or_undefined_ & {
850
- readonly 'health': ('OK' | 'WARNING' | 'ERROR') & readonlyP;
851
- };
852
- export declare type IngesterDatasourceWithVersions = Pick_IngesterDatasource__and__readonlyid_string__readonlycreatedAt_Date__readonlyupdatedAt_Date____companyId_or_resourceGroupIds_or_id_or_mode_or_name_or_createdAt_or_updatedAt_or_versions_or_template_or_configurationUpdatedAt_or_archivedAt_or_storageOptions_or_undefined_;
853
- export declare enum DatasourceType {
854
- GENERIC = "generic",
855
- LOCATION = "location",
856
- PRODUCT = "product",
857
- ANALYTICS = "analytics"
2181
+ DECRYPT = "decrypt",
2182
+ INTERPOLATE = "interpolate"
858
2183
  }
859
2184
  export declare type DatasourceTypeName = DatasourceType;
860
2185
  export declare type DatasourceTypeObject = {
861
- 'name': 'generic';
862
- 'subtype': 'user';
2186
+ name: "generic";
2187
+ subtype: DatasourceGenericSubType;
863
2188
  } | {
864
- 'name': 'product';
865
- 'subtype': 'user';
2189
+ name: "product";
2190
+ subtype: DatasourceProductSubType;
866
2191
  } | {
867
- 'name': 'location';
868
- 'subtype': DatasourceLocationSubType;
869
- };
870
- export declare type StepPayloadWorkerDatasource = {
871
- 'name': 'configure_name';
872
- 'payload': string;
2192
+ name: "location";
2193
+ subtype: DatasourceLocationSubType;
873
2194
  } | {
874
- 'name': 'configure_fieldsmap';
875
- 'payload': (FieldMap)[];
2195
+ name: "analytics";
2196
+ subtype: DatasourceAnalyticsSubType;
2197
+ };
2198
+ export declare type WorkerSteps = {
2199
+ name: "configure_name";
2200
+ payload: string;
876
2201
  } | {
877
- 'name': 'configure_field';
878
- 'payload': FieldMap;
2202
+ name: "configure_resource_group_ids";
2203
+ payload: string[];
879
2204
  } | {
880
- 'name': 'validate';
881
- 'payload': {};
2205
+ name: "configure_source";
2206
+ payload: ({
2207
+ urls: string[];
2208
+ ignoreMissingLiveFields?: true;
2209
+ } & Partial_Pick_WorkerDatasourceVersion_apiOptions_or_sample_or_textEncoding_or_format__) | ({
2210
+ file: string;
2211
+ ignoreMissingLiveFields?: string;
2212
+ } & Partial_Pick_WorkerDatasourceVersion_textEncoding_or_format__);
882
2213
  } | {
883
- 'name': 'configure_content';
884
- 'payload': Partial_Pick_PullDatasourceVersion_format_or_textEncoding_or_sample__;
2214
+ name: "configure_fieldsmap";
2215
+ payload: FieldMap[];
885
2216
  } | {
886
- 'name': 'configure_oauth';
887
- 'payload': string;
2217
+ name: "configure_field";
2218
+ payload: FieldMap;
888
2219
  } | {
889
- 'name': 'configure_source';
890
- 'payload': {
891
- 'urls': (string)[];
892
- } & Partial_Pick_PullDatasourceVersion_apiOptions_or_format_or_textEncoding__;
2220
+ name: "create_oauth_client";
2221
+ payload: {};
893
2222
  } | {
894
- 'name': 'configure_source';
895
- 'payload': {
896
- 'urls': (string)[];
897
- 'apiOptions'?: WorkerApiOptions;
898
- };
2223
+ name: "authorize_oauth_client";
2224
+ payload: {};
899
2225
  } | {
900
- 'name': 'configure_source';
901
- 'payload': {
902
- 'file': string;
903
- };
904
- } | {
905
- 'name': 'configure_thresholds';
906
- 'payload': ({
907
- 'type': 'too_many_invalid_entries';
908
- 'value': number;
909
- 'trigger': {
910
- 'type': 'error';
911
- 'value': 'too_many_invalid_entries';
2226
+ name: "configure_thresholds";
2227
+ payload: ({
2228
+ type: "too_many_invalid_entries";
2229
+ value: number;
2230
+ trigger: {
2231
+ type: "error";
2232
+ value: "too_many_invalid_entries";
912
2233
  };
913
2234
  } | {
914
- 'type': 'entries_drop_rate_too_high';
915
- 'value': number;
916
- 'trigger': {
917
- 'type': 'warning';
918
- 'value': 'entries_drop_rate_too_high';
2235
+ type: "entries_drop_rate_too_high";
2236
+ value: number;
2237
+ trigger: {
2238
+ type: "warning";
2239
+ value: "entries_drop_rate_too_high";
919
2240
  } | {
920
- 'type': 'error';
921
- 'value': 'entries_drop_rate_too_high';
2241
+ type: "error";
2242
+ value: "entries_drop_rate_too_high";
922
2243
  };
923
2244
  })[];
924
2245
  } | {
925
- 'name': 'patch';
926
- 'payload': Partial_Pick_WorkerDatasourceVersion_batchSize_or_aggregationPipeline_or_refresh__;
2246
+ name: "configure_content";
2247
+ payload: Partial_Pick_PullDatasourceVersion_sample_or_textEncoding_or_format__;
2248
+ } | {
2249
+ name: "configure_api_key";
2250
+ payload: {
2251
+ value: string;
2252
+ };
2253
+ } | {
2254
+ name: "patch";
2255
+ payload: Partial_Pick_WorkerDatasourceVersion_aggregationPipeline_or_refresh_or_detectMissingFields_or_batchSize__;
2256
+ } | {
2257
+ name: "validate";
2258
+ payload: {};
2259
+ } | {
2260
+ name: "configure_shopify_shop_name";
2261
+ payload: string;
2262
+ } | {
2263
+ name: "configure_twitter";
2264
+ payload: {
2265
+ type: "user" | "hashtag";
2266
+ value: string;
2267
+ };
2268
+ } | {
2269
+ name: "configure_product_datasource_source";
2270
+ payload: {
2271
+ datasourceId: string;
2272
+ };
2273
+ } | {
2274
+ name: "configure_tracking_datasource_source";
2275
+ payload: {
2276
+ datasourceId: string;
2277
+ };
2278
+ } | {
2279
+ name: "configure_best_product_query";
2280
+ payload: {
2281
+ query: string;
2282
+ };
2283
+ } | {
2284
+ name: "configure_best_product_field";
2285
+ payload: {
2286
+ field: string;
2287
+ };
927
2288
  };
928
- export declare type StepPayloadProxyDatasource = {
929
- 'name': 'configure_name';
930
- 'payload': string;
2289
+ export declare type ProxySteps = {
2290
+ name: "configure_name";
2291
+ payload: string;
2292
+ } | {
2293
+ name: "configure_resource_group_ids";
2294
+ payload: string[];
931
2295
  } | {
932
- 'name': 'configure_fieldsmap';
933
- 'payload': (FieldMap)[];
2296
+ name: "configure_source";
2297
+ payload: {
2298
+ urls: string[];
2299
+ ignoreMissingLiveFields?: true;
2300
+ } & Partial_Pick_ProxyDatasourceVersion_apiOptions_or_sample_or_textEncoding_or_format__;
934
2301
  } | {
935
- 'name': 'configure_field';
936
- 'payload': FieldMap;
2302
+ name: "configure_fieldsmap";
2303
+ payload: FieldMap[];
937
2304
  } | {
938
- 'name': 'validate';
939
- 'payload': {};
2305
+ name: "configure_field";
2306
+ payload: FieldMap;
940
2307
  } | {
941
- 'name': 'configure_content';
942
- 'payload': Partial_Pick_PullDatasourceVersion_format_or_textEncoding_or_sample__;
2308
+ name: "create_oauth_client";
2309
+ payload: {};
943
2310
  } | {
944
- 'name': 'configure_oauth';
945
- 'payload': string;
2311
+ name: "authorize_oauth_client";
2312
+ payload: {};
946
2313
  } | {
947
- 'name': 'configure_source';
948
- 'payload': {
949
- 'urls': (string)[];
950
- } & Partial_Pick_PullDatasourceVersion_apiOptions_or_format_or_textEncoding__;
2314
+ name: "configure_content";
2315
+ payload: Partial_Pick_PullDatasourceVersion_sample_or_textEncoding_or_format__;
951
2316
  } | {
952
- 'name': 'configure_source';
953
- 'payload': {
954
- 'urls': (string)[];
955
- 'apiOptions'?: ProxyApiOptions;
2317
+ name: "configure_api_key";
2318
+ payload: {
2319
+ value: string;
956
2320
  };
957
2321
  } | {
958
- 'name': 'patch';
959
- 'payload': Pick_ProxyDatasourceVersion_refresh_;
2322
+ name: "patch";
2323
+ payload: Pick_ProxyDatasourceVersion_refresh_;
2324
+ } | {
2325
+ name: "validate";
2326
+ payload: {};
960
2327
  };
961
- export declare type StepPayloadIngesterDatasource = {
962
- 'name': 'configure_name';
963
- 'payload': string;
2328
+ export declare type IngesterSteps = {
2329
+ name: "configure_name";
2330
+ payload: string;
2331
+ } | {
2332
+ name: "configure_resource_group_ids";
2333
+ payload: string[];
2334
+ } | {
2335
+ name: "configure_fieldsmap";
2336
+ payload: FieldMap[];
2337
+ } | {
2338
+ name: "configure_field";
2339
+ payload: FieldMap;
2340
+ } | {
2341
+ name: "validate";
2342
+ payload: {};
2343
+ } | {
2344
+ name: "inject_shopify_analytics_script";
2345
+ payload: string;
964
2346
  } | {
965
- 'name': 'configure_fieldsmap';
966
- 'payload': (FieldMap)[];
2347
+ name: "configure_shopify_analytics_script";
2348
+ payload: {};
967
2349
  } | {
968
- 'name': 'configure_field';
969
- 'payload': FieldMap;
2350
+ name: "configure_google_tag_manager";
2351
+ payload: {};
970
2352
  } | {
971
- 'name': 'validate';
972
- 'payload': {};
2353
+ name: "configure_reelevant_analytics_script";
2354
+ payload: {};
973
2355
  };
974
2356
  export {};