@rlvt/datasources-openapi-client 0.0.0-553bdc6 → 0.0.0-59f0afe

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