@rlvt/datasources-openapi-client 1.0.368 → 1.0.370

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.
@@ -401,6 +401,16 @@ export declare type Serialize_DatasourceTemplate = {
401
401
  outputField: string;
402
402
  };
403
403
  }) & readonlyP;
404
+ storageOptions?: {
405
+ destinations: {
406
+ type: "bigquery";
407
+ dataset: string;
408
+ tableName: string;
409
+ deduplicateOptions?: {
410
+ enabled: boolean;
411
+ };
412
+ }[];
413
+ };
404
414
  mode: DatasourceMode;
405
415
  };
406
416
  version: {
@@ -4335,6 +4345,14 @@ export declare type Serialize_DatasourceTemplate = {
4335
4345
  };
4336
4346
  }) & readonlyP;
4337
4347
  storageOptions?: {
4348
+ destinations: {
4349
+ type: "bigquery";
4350
+ dataset: string;
4351
+ tableName: string;
4352
+ deduplicateOptions?: {
4353
+ enabled: boolean;
4354
+ };
4355
+ }[];
4338
4356
  partitionCount: number;
4339
4357
  segments: {
4340
4358
  offlineSize: number;
@@ -4346,11 +4364,6 @@ export declare type Serialize_DatasourceTemplate = {
4346
4364
  value: number;
4347
4365
  unit: "DAYS";
4348
4366
  };
4349
- destinations: {
4350
- type: "bigquery";
4351
- dataset: string;
4352
- tableName: string;
4353
- }[];
4354
4367
  };
4355
4368
  mode: DatasourceMode;
4356
4369
  };
@@ -4758,6 +4771,14 @@ export declare type Serialize_DatasourceTemplate = {
4758
4771
  };
4759
4772
  }) & readonlyP;
4760
4773
  storageOptions?: {
4774
+ destinations: {
4775
+ type: "bigquery";
4776
+ dataset: string;
4777
+ tableName: string;
4778
+ deduplicateOptions?: {
4779
+ enabled: boolean;
4780
+ };
4781
+ }[];
4761
4782
  partitionCount: number;
4762
4783
  segments: {
4763
4784
  offlineSize: number;
@@ -4769,11 +4790,6 @@ export declare type Serialize_DatasourceTemplate = {
4769
4790
  value: number;
4770
4791
  unit: "DAYS";
4771
4792
  };
4772
- destinations: {
4773
- type: "bigquery";
4774
- dataset: string;
4775
- tableName: string;
4776
- }[];
4777
4793
  };
4778
4794
  mode: DatasourceMode;
4779
4795
  };
@@ -4925,6 +4941,69 @@ export declare type InternalResponse_Array_string = {
4925
4941
  message: string;
4926
4942
  data: string[];
4927
4943
  };
4944
+ export declare type InternalResponse_ = {
4945
+ program: string;
4946
+ version: string;
4947
+ datetime: string;
4948
+ status: string;
4949
+ code?: number;
4950
+ message: string;
4951
+ data: {};
4952
+ };
4953
+ export declare enum DatasourceType {
4954
+ GENERIC = "generic",
4955
+ LOCATION = "location",
4956
+ PRODUCT = "product",
4957
+ ANALYTICS = "analytics",
4958
+ CRM = "crm",
4959
+ PUSH = "push",
4960
+ LOOP = "loop"
4961
+ }
4962
+ export declare type InternalResponse = {
4963
+ program: string;
4964
+ version: string;
4965
+ datetime: string;
4966
+ status: string;
4967
+ code?: number;
4968
+ message: string;
4969
+ data: {
4970
+ [key: string]: AnyValue;
4971
+ };
4972
+ };
4973
+ export declare type TestTokenStep = {
4974
+ name: string;
4975
+ status: "success" | "failed";
4976
+ durationMs: number;
4977
+ detail?: {
4978
+ [key: string]: AnyValue;
4979
+ };
4980
+ error?: string;
4981
+ };
4982
+ export declare type TestTokenResult = {
4983
+ success: boolean;
4984
+ steps: TestTokenStep[];
4985
+ };
4986
+ export declare type InternalResponse_TestTokenResult = {
4987
+ program: string;
4988
+ version: string;
4989
+ datetime: string;
4990
+ status: string;
4991
+ code?: number;
4992
+ message: string;
4993
+ data: TestTokenResult;
4994
+ };
4995
+ export declare type InternalResponse_cacheKey_string_deleted_Union_false_true = {
4996
+ program: string;
4997
+ version: string;
4998
+ datetime: string;
4999
+ status: string;
5000
+ code?: number;
5001
+ message: string;
5002
+ data: {
5003
+ cacheKey: string;
5004
+ deleted: boolean;
5005
+ };
5006
+ };
4928
5007
  export declare type ObjectId = string;
4929
5008
  export declare enum AuthenticationMode {
4930
5009
  PASSWORD = "password",
@@ -4986,6 +5065,9 @@ export declare type DatasourceAuth = {
4986
5065
  } & {
4987
5066
  configuration: string | DatasourceAuthConfiguration;
4988
5067
  nextInChainConfiguration?: string;
5068
+ hasRefreshToken?: boolean;
5069
+ hasAccessToken?: boolean;
5070
+ hasPassword?: boolean;
4989
5071
  };
4990
5072
  export declare type InternalResponse_Array_DatasourceAuth = {
4991
5073
  program: string;
@@ -4996,25 +5078,7 @@ export declare type InternalResponse_Array_DatasourceAuth = {
4996
5078
  message: string;
4997
5079
  data: DatasourceAuth[];
4998
5080
  };
4999
- export declare type InternalResponse_ = {
5000
- program: string;
5001
- version: string;
5002
- datetime: string;
5003
- status: string;
5004
- code?: number;
5005
- message: string;
5006
- data: {};
5007
- };
5008
- export declare enum DatasourceType {
5009
- GENERIC = "generic",
5010
- LOCATION = "location",
5011
- PRODUCT = "product",
5012
- ANALYTICS = "analytics",
5013
- CRM = "crm",
5014
- PUSH = "push",
5015
- LOOP = "loop"
5016
- }
5017
- export declare type InternalResponse_Intersection_Serialize_id_string_configuration_Union_string_DatasourceAuthConfiguration_nextInChainConfiguration_Union_undefined_string = {
5081
+ export declare type InternalResponse_Intersection_Serialize_id_string_configuration_Union_string_DatasourceAuthConfiguration_nextInChainConfiguration_Union_undefined_string_hasRefreshToken_Union_undefined_false_true_hasAccessToken_Union_undefined_false_true_hasPassword_Union_undefined_false_true = {
5018
5082
  program: string;
5019
5083
  version: string;
5020
5084
  datetime: string;
@@ -5036,6 +5100,9 @@ export declare type InternalResponse_Intersection_Serialize_id_string_configurat
5036
5100
  } & {
5037
5101
  configuration: string | DatasourceAuthConfiguration;
5038
5102
  nextInChainConfiguration?: string;
5103
+ hasRefreshToken?: boolean;
5104
+ hasAccessToken?: boolean;
5105
+ hasPassword?: boolean;
5039
5106
  };
5040
5107
  };
5041
5108
  export declare type DatasourceAuth_Without_Configuration = {
@@ -5053,15 +5120,9 @@ export declare type DatasourceAuth_Without_Configuration = {
5053
5120
  } & {
5054
5121
  configuration: string | DatasourceAuthConfiguration;
5055
5122
  nextInChainConfiguration?: string;
5056
- };
5057
- export declare type InternalResponse = {
5058
- program: string;
5059
- version: string;
5060
- datetime: string;
5061
- status: string;
5062
- code?: number;
5063
- message: string;
5064
- data: {};
5123
+ hasRefreshToken?: boolean;
5124
+ hasAccessToken?: boolean;
5125
+ hasPassword?: boolean;
5065
5126
  };
5066
5127
  export declare type InternalResponse_url_string = {
5067
5128
  program: string;
@@ -5074,304 +5135,7 @@ export declare type InternalResponse_url_string = {
5074
5135
  url: string;
5075
5136
  };
5076
5137
  };
5077
- export declare type CreateSchemaBody = {
5078
- schema: {
5079
- name: string;
5080
- datasourceId: string;
5081
- columns: {
5082
- name: string;
5083
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5084
- nullable: boolean;
5085
- default?: string | number | (false) | (true) | string;
5086
- description?: string;
5087
- }[];
5088
- description?: string;
5089
- virtualColumns?: {
5090
- name: string;
5091
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5092
- query: string;
5093
- nullable: boolean;
5094
- description?: string;
5095
- }[];
5096
- uniqueKeys?: {
5097
- type: "UniqueKey";
5098
- columns: string[];
5099
- description?: string;
5100
- }[];
5101
- indexes?: {
5102
- type: "Index";
5103
- columns: string[];
5104
- description?: string;
5105
- }[];
5106
- relations?: {
5107
- type: "Relation";
5108
- columns: string[];
5109
- reference: {
5110
- table: string;
5111
- datasourceId: string;
5112
- columns: string[];
5113
- };
5114
- description?: string;
5115
- }[];
5116
- }[];
5117
- };
5118
- export declare type SchemaValidationIssue = {
5119
- path: (string | number)[];
5120
- message: string;
5121
- code: string;
5122
- };
5123
- export declare type RelationAnalysisResult = {
5124
- fromDatasourceId: string;
5125
- fromTable: string;
5126
- fromColumn: string;
5127
- fromDistinctCount: number | null;
5128
- toDatasourceId: string;
5129
- toTable: string;
5130
- toColumn: string;
5131
- toDistinctCount: number | null;
5132
- matchCount: number | null;
5133
- matchPercentage: number | null;
5134
- error?: string;
5135
- };
5136
- export declare type ValidateSchemaResponse = {
5137
- validation: {
5138
- success: true;
5139
- data: {
5140
- name: string;
5141
- datasourceId: string;
5142
- columns: {
5143
- name: string;
5144
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5145
- nullable: boolean;
5146
- default?: string | number | (false) | (true) | string;
5147
- description?: string;
5148
- }[];
5149
- description?: string;
5150
- virtualColumns?: {
5151
- name: string;
5152
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5153
- query: string;
5154
- nullable: boolean;
5155
- description?: string;
5156
- }[];
5157
- uniqueKeys?: {
5158
- type: "UniqueKey";
5159
- columns: string[];
5160
- description?: string;
5161
- }[];
5162
- indexes?: {
5163
- type: "Index";
5164
- columns: string[];
5165
- description?: string;
5166
- }[];
5167
- relations?: {
5168
- type: "Relation";
5169
- columns: string[];
5170
- reference: {
5171
- table: string;
5172
- datasourceId: string;
5173
- columns: string[];
5174
- };
5175
- description?: string;
5176
- }[];
5177
- }[];
5178
- } | {
5179
- success: false;
5180
- error: {
5181
- issues: SchemaValidationIssue[];
5182
- };
5183
- };
5184
- relations: RelationAnalysisResult[];
5185
- };
5186
- export declare type InternalResponse_ValidateSchemaResponse = {
5187
- program: string;
5188
- version: string;
5189
- datetime: string;
5190
- status: string;
5191
- code?: number;
5192
- message: string;
5193
- data: ValidateSchemaResponse;
5194
- };
5195
- export declare type ValidateSchemaBody = {
5196
- schema: AnyValue;
5197
- };
5198
- export declare type Document = {};
5199
- export declare enum DatagraphSchemaVersionState {
5200
- DRAFT = "draft",
5201
- LIVE = "live",
5202
- INACTIVE = "inactive"
5203
- }
5204
- export declare type Serialize_DatagraphSchemaVersion = {
5205
- readonly companyId: (ObjectId) & readonlyP;
5206
- readonly state: (DatagraphSchemaVersionState) & readonlyP;
5207
- readonly definition: ({
5208
- name: string;
5209
- datasourceId: string;
5210
- description?: string;
5211
- columns: {
5212
- name: string;
5213
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5214
- default?: string | number | (false) | (true) | string;
5215
- description?: string;
5216
- nullable: boolean;
5217
- }[];
5218
- virtualColumns?: {
5219
- name: string;
5220
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5221
- query: string;
5222
- nullable: boolean;
5223
- description?: string;
5224
- }[];
5225
- uniqueKeys?: {
5226
- type: "UniqueKey";
5227
- columns: string[];
5228
- description?: string;
5229
- }[];
5230
- indexes?: {
5231
- type: "Index";
5232
- columns: string[];
5233
- description?: string;
5234
- }[];
5235
- relations?: {
5236
- type: "Relation";
5237
- columns: string[];
5238
- reference: {
5239
- table: string;
5240
- datasourceId: string;
5241
- columns: string[];
5242
- };
5243
- description?: string;
5244
- }[];
5245
- }[]) & readonlyP;
5246
- };
5247
- export declare type DatagraphSchemaVersion = Serialize_DatagraphSchemaVersion;
5248
- export declare type IObjectWithTypegooseFunction = {};
5249
- export declare type InternalResponse_Array_SerializedDatagraphSchema = {
5250
- program: string;
5251
- version: string;
5252
- datetime: string;
5253
- status: string;
5254
- code?: number;
5255
- message: string;
5256
- data: {
5257
- readonly companyId: (ObjectId) & readonlyP;
5258
- readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5259
- readonly versions: ((ObjectId | (Document & DatagraphSchemaVersion & {
5260
- _id: ObjectId;
5261
- } & {
5262
- __v: number;
5263
- } & IObjectWithTypegooseFunction))[]) & readonlyP;
5264
- archivedAt: string | null;
5265
- }[];
5266
- };
5267
- export declare type UpdateSchemaBody = {
5268
- schema: {
5269
- name: string;
5270
- datasourceId: string;
5271
- columns: {
5272
- name: string;
5273
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5274
- nullable: boolean;
5275
- default?: string | number | (false) | (true) | string;
5276
- description?: string;
5277
- }[];
5278
- description?: string;
5279
- virtualColumns?: {
5280
- name: string;
5281
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5282
- query: string;
5283
- nullable: boolean;
5284
- description?: string;
5285
- }[];
5286
- uniqueKeys?: {
5287
- type: "UniqueKey";
5288
- columns: string[];
5289
- description?: string;
5290
- }[];
5291
- indexes?: {
5292
- type: "Index";
5293
- columns: string[];
5294
- description?: string;
5295
- }[];
5296
- relations?: {
5297
- type: "Relation";
5298
- columns: string[];
5299
- reference: {
5300
- table: string;
5301
- datasourceId: string;
5302
- columns: string[];
5303
- };
5304
- description?: string;
5305
- }[];
5306
- }[];
5307
- };
5308
- export declare enum DatagraphEntityVersionState {
5309
- DRAFT = "draft",
5310
- INACTIVE = "inactive",
5311
- LIVE = "live"
5312
- }
5313
- export declare type EntityParameter = {
5314
- name: string;
5315
- shortDescription: string;
5316
- fullDescription: string | null;
5317
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
5318
- index: number;
5319
- };
5320
- export declare type EntityAnswer = {
5321
- name: string;
5322
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5323
- };
5324
- export declare type Entity = {
5325
- name: string;
5326
- sql: string | null;
5327
- options: EntityParameter[];
5328
- readonly answers: (EntityAnswer[]) & readonlyP;
5329
- };
5330
- export declare type DatagraphEntityVersion = {
5331
- readonly companyId: (ObjectId) & readonlyP;
5332
- readonly state: (DatagraphEntityVersionState) & readonlyP;
5333
- readonly definition: (Entity) & readonlyP;
5334
- };
5335
- export declare type DatagraphEntity = {
5336
- readonly companyId: (ObjectId) & readonlyP;
5337
- readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5338
- readonly versions: ((ObjectId | (Document & DatagraphEntityVersion & {
5339
- _id: ObjectId;
5340
- } & {
5341
- __v: number;
5342
- } & IObjectWithTypegooseFunction))[]) & readonlyP;
5343
- readonly archivedAt: (string | null) & readonlyP;
5344
- };
5345
- export declare type InternalResponse_DatagraphEntity = {
5346
- program: string;
5347
- version: string;
5348
- datetime: string;
5349
- status: string;
5350
- code?: number;
5351
- message: string;
5352
- data: DatagraphEntity;
5353
- };
5354
- export declare type DatagraphEntityDefinitionBody = {
5355
- name: string;
5356
- sql: string | null;
5357
- options: EntityParameter[];
5358
- };
5359
- export declare type CreateEntityBody = {
5360
- entity: DatagraphEntityDefinitionBody;
5361
- };
5362
- export declare type InternalResponse_Array_DatagraphEntity = {
5363
- program: string;
5364
- version: string;
5365
- datetime: string;
5366
- status: string;
5367
- code?: number;
5368
- message: string;
5369
- data: DatagraphEntity[];
5370
- };
5371
- export declare type UpdateEntityBody = {
5372
- entity: DatagraphEntityDefinitionBody;
5373
- };
5374
- export declare type InternalResponse_current_Union_null_name_CONFIGURE_NAME_name_CONFIGURE_RESOURCE_GROUP_IDS_name_CONFIGURE_SOURCES_name_CONFIGURE_FIELDS_name_CONFIGURE_FIELD_field_name_string_type_Union_STRING_NUMBER_DATETIME_DATETIME_ISO_BOOLEAN_ADDRESS_1_ADDRESS_2_ADDRESS_3_ADDRESS_4_CITY_ZIPCODE_COUNTRY_LATITUDE_LONGITUDE_REFERENCE_ID_REFERENCE_IDS_PRODUCT_ID_PRICE_URL_IMAGE_URL_NAME_DESCRIPTION_PRODUCT_LIFETIME_LOCALE_ARRAY_STRING_ARRAY_NUMBER_RECORD_STRING_RECORD_NUMBER_COMPANY_ID_EVENT_NAME_EVENT_ID_USER_TMP_ID_USER_AGENT_WORKFLOW_ID_WORKFLOW_VERSION_ID_WORKFLOW_EVENT_MODE_TRANSACTION_ID_TRANSACTION_SOURCE_TRANSACTION_METADATA_PRODUCT_QUANTITY_WORKFLOW_PURCHASE_USER_WORKFLOW_USER_WORKFLOW_ONSITE_USER_USER_BIRTHDAY_USER_AGE_LOOP_EMAIL_CONTACT_ID_LOOP_WEB_CONTACT_ID_LOOP_MOBILE_CONTACT_ID_name_CREATE_OAUTH_CLIENT_configurationId_string_name_AUTHORIZE_OAUTH_CLIENT_slug_string_name_CONFIGURE_THRESHOLDS_name_CONFIGURE_API_KEY_slug_partoo_name_PATCH_name_VALIDATE_name_CONFIGURE_GOOGLE_TAG_MANAGER_name_CONFIGURE_REELEVANT_ANALYTICS_SCRIPT_name_CONFIGURE_PRODUCT_DATASOURCE_SOURCE_name_CONFIGURE_TRACKING_DATASOURCE_SOURCE_name_CONFIGURE_BEST_PRODUCT_QUERY_name_CONFIGURE_BEST_PRODUCT_FIELD_name_CONFIGURE_FETCHER_name_CONFIGURE_MERGE_DATASOURCE_SOURCE_name_CONFIGURE_MERGE_DATASOURCE_DEPENDENCY_name_CONFIGURE_MERGE_MAPPING_name_CONFIGURE_BOUGHT_TOGETHER_name_CONFIGURE_TOP_ATTRIBUTES_name_CONFIGURE_DESTINATION_type_smtp_name_CONFIGURE_HIERARCHY_next_Array_Union_name_CONFIGURE_NAME_name_CONFIGURE_RESOURCE_GROUP_IDS_name_CONFIGURE_SOURCES_name_CONFIGURE_FIELDS_name_CONFIGURE_FIELD_field_name_string_type_Union_STRING_NUMBER_DATETIME_DATETIME_ISO_BOOLEAN_ADDRESS_1_ADDRESS_2_ADDRESS_3_ADDRESS_4_CITY_ZIPCODE_COUNTRY_LATITUDE_LONGITUDE_REFERENCE_ID_REFERENCE_IDS_PRODUCT_ID_PRICE_URL_IMAGE_URL_NAME_DESCRIPTION_PRODUCT_LIFETIME_LOCALE_ARRAY_STRING_ARRAY_NUMBER_RECORD_STRING_RECORD_NUMBER_COMPANY_ID_EVENT_NAME_EVENT_ID_USER_TMP_ID_USER_AGENT_WORKFLOW_ID_WORKFLOW_VERSION_ID_WORKFLOW_EVENT_MODE_TRANSACTION_ID_TRANSACTION_SOURCE_TRANSACTION_METADATA_PRODUCT_QUANTITY_WORKFLOW_PURCHASE_USER_WORKFLOW_USER_WORKFLOW_ONSITE_USER_USER_BIRTHDAY_USER_AGE_LOOP_EMAIL_CONTACT_ID_LOOP_WEB_CONTACT_ID_LOOP_MOBILE_CONTACT_ID_name_CREATE_OAUTH_CLIENT_configurationId_string_name_AUTHORIZE_OAUTH_CLIENT_slug_string_name_CONFIGURE_THRESHOLDS_name_CONFIGURE_API_KEY_slug_partoo_name_PATCH_name_VALIDATE_name_CONFIGURE_GOOGLE_TAG_MANAGER_name_CONFIGURE_REELEVANT_ANALYTICS_SCRIPT_name_CONFIGURE_PRODUCT_DATASOURCE_SOURCE_name_CONFIGURE_TRACKING_DATASOURCE_SOURCE_name_CONFIGURE_BEST_PRODUCT_QUERY_name_CONFIGURE_BEST_PRODUCT_FIELD_name_CONFIGURE_FETCHER_name_CONFIGURE_MERGE_DATASOURCE_SOURCE_name_CONFIGURE_MERGE_DATASOURCE_DEPENDENCY_name_CONFIGURE_MERGE_MAPPING_name_CONFIGURE_BOUGHT_TOGETHER_name_CONFIGURE_TOP_ATTRIBUTES_name_CONFIGURE_DESTINATION_type_smtp_name_CONFIGURE_HIERARCHY = {
5138
+ export declare type InternalResponse_current_Union_null_name_CONFIGURE_NAME_name_CONFIGURE_RESOURCE_GROUP_IDS_name_CONFIGURE_SOURCES_name_CONFIGURE_FIELDS_name_CONFIGURE_FIELD_field_name_string_type_Union_STRING_NUMBER_DATETIME_DATETIME_ISO_BOOLEAN_ADDRESS_1_ADDRESS_2_ADDRESS_3_ADDRESS_4_CITY_ZIPCODE_COUNTRY_LATITUDE_LONGITUDE_REFERENCE_ID_REFERENCE_IDS_PRODUCT_ID_PRICE_URL_IMAGE_URL_NAME_DESCRIPTION_PRODUCT_LIFETIME_LOCALE_ARRAY_STRING_ARRAY_NUMBER_RECORD_STRING_RECORD_NUMBER_COMPANY_ID_EVENT_NAME_EVENT_ID_USER_TMP_ID_USER_AGENT_WORKFLOW_ID_WORKFLOW_VERSION_ID_WORKFLOW_EVENT_MODE_TRANSACTION_ID_TRANSACTION_SOURCE_TRANSACTION_METADATA_PRODUCT_QUANTITY_WORKFLOW_PURCHASE_USER_WORKFLOW_USER_WORKFLOW_ONSITE_USER_USER_BIRTHDAY_USER_AGE_LOOP_EMAIL_CONTACT_ID_LOOP_WEB_CONTACT_ID_LOOP_MOBILE_CONTACT_ID_name_CREATE_OAUTH_CLIENT_configurationId_string_name_AUTHORIZE_OAUTH_CLIENT_slug_string_name_CONFIGURE_THRESHOLDS_name_CONFIGURE_API_KEY_slug_partoo_name_PATCH_name_VALIDATE_name_CONFIGURE_GOOGLE_TAG_MANAGER_name_CONFIGURE_REELEVANT_ANALYTICS_SCRIPT_name_CONFIGURE_PRODUCT_DATASOURCE_SOURCE_name_CONFIGURE_TRACKING_DATASOURCE_SOURCE_name_CONFIGURE_BEST_PRODUCT_QUERY_name_CONFIGURE_BEST_PRODUCT_FIELD_name_CONFIGURE_FETCHER_name_CONFIGURE_MERGE_DATASOURCE_SOURCE_name_CONFIGURE_MERGE_DATASOURCE_DEPENDENCY_name_CONFIGURE_MERGE_MAPPING_name_CONFIGURE_BOUGHT_TOGETHER_name_CONFIGURE_TOP_ATTRIBUTES_name_CONFIGURE_DESTINATION_type_smtp_name_CONFIGURE_HIERARCHY_next_Array_Union_name_CONFIGURE_NAME_name_CONFIGURE_RESOURCE_GROUP_IDS_name_CONFIGURE_SOURCES_name_CONFIGURE_FIELDS_name_CONFIGURE_FIELD_field_name_string_type_Union_STRING_NUMBER_DATETIME_DATETIME_ISO_BOOLEAN_ADDRESS_1_ADDRESS_2_ADDRESS_3_ADDRESS_4_CITY_ZIPCODE_COUNTRY_LATITUDE_LONGITUDE_REFERENCE_ID_REFERENCE_IDS_PRODUCT_ID_PRICE_URL_IMAGE_URL_NAME_DESCRIPTION_PRODUCT_LIFETIME_LOCALE_ARRAY_STRING_ARRAY_NUMBER_RECORD_STRING_RECORD_NUMBER_COMPANY_ID_EVENT_NAME_EVENT_ID_USER_TMP_ID_USER_AGENT_WORKFLOW_ID_WORKFLOW_VERSION_ID_WORKFLOW_EVENT_MODE_TRANSACTION_ID_TRANSACTION_SOURCE_TRANSACTION_METADATA_PRODUCT_QUANTITY_WORKFLOW_PURCHASE_USER_WORKFLOW_USER_WORKFLOW_ONSITE_USER_USER_BIRTHDAY_USER_AGE_LOOP_EMAIL_CONTACT_ID_LOOP_WEB_CONTACT_ID_LOOP_MOBILE_CONTACT_ID_name_CREATE_OAUTH_CLIENT_configurationId_string_name_AUTHORIZE_OAUTH_CLIENT_slug_string_name_CONFIGURE_THRESHOLDS_name_CONFIGURE_API_KEY_slug_partoo_name_PATCH_name_VALIDATE_name_CONFIGURE_GOOGLE_TAG_MANAGER_name_CONFIGURE_REELEVANT_ANALYTICS_SCRIPT_name_CONFIGURE_PRODUCT_DATASOURCE_SOURCE_name_CONFIGURE_TRACKING_DATASOURCE_SOURCE_name_CONFIGURE_BEST_PRODUCT_QUERY_name_CONFIGURE_BEST_PRODUCT_FIELD_name_CONFIGURE_FETCHER_name_CONFIGURE_MERGE_DATASOURCE_SOURCE_name_CONFIGURE_MERGE_DATASOURCE_DEPENDENCY_name_CONFIGURE_MERGE_MAPPING_name_CONFIGURE_BOUGHT_TOGETHER_name_CONFIGURE_TOP_ATTRIBUTES_name_CONFIGURE_DESTINATION_type_smtp_name_CONFIGURE_HIERARCHY = {
5375
5139
  program: string;
5376
5140
  version: string;
5377
5141
  datetime: string;
@@ -7271,6 +7035,14 @@ export declare type CurrentSteps = {
7271
7035
  };
7272
7036
  segmentBatchSize?: number;
7273
7037
  sftpPublicKey?: string;
7038
+ destinations?: {
7039
+ type: "bigquery";
7040
+ dataset: string;
7041
+ tableName: string;
7042
+ deduplicateOptions?: {
7043
+ enabled: boolean;
7044
+ };
7045
+ }[];
7274
7046
  };
7275
7047
  }) | ({
7276
7048
  name: "configure_fetcher";
@@ -8710,6 +8482,14 @@ export declare type CurrentSteps = {
8710
8482
  username: string;
8711
8483
  password: string;
8712
8484
  };
8485
+ destinations?: {
8486
+ type: "bigquery";
8487
+ dataset: string;
8488
+ tableName: string;
8489
+ deduplicateOptions?: {
8490
+ enabled: boolean;
8491
+ };
8492
+ }[];
8713
8493
  };
8714
8494
  }) | ({
8715
8495
  name: "configure_fetcher";
@@ -9375,6 +9155,19 @@ export declare type CurrentSteps = {
9375
9155
  value?: {
9376
9156
  value: string;
9377
9157
  };
9158
+ }) | ({
9159
+ name: "patch";
9160
+ } & {
9161
+ value?: {
9162
+ destinations?: {
9163
+ type: "bigquery";
9164
+ dataset: string;
9165
+ tableName: string;
9166
+ deduplicateOptions?: {
9167
+ enabled: boolean;
9168
+ };
9169
+ }[];
9170
+ };
9378
9171
  }) | ({
9379
9172
  name: "configure_fetcher";
9380
9173
  } & {
@@ -10240,6 +10033,14 @@ export declare type CurrentSteps = {
10240
10033
  };
10241
10034
  segmentBatchSize?: number;
10242
10035
  sftpPublicKey?: string;
10036
+ destinations?: {
10037
+ type: "bigquery";
10038
+ dataset: string;
10039
+ tableName: string;
10040
+ deduplicateOptions?: {
10041
+ enabled: boolean;
10042
+ };
10043
+ }[];
10243
10044
  };
10244
10045
  }) | ({
10245
10046
  name: "configure_fetcher";
@@ -11679,6 +11480,14 @@ export declare type CurrentSteps = {
11679
11480
  username: string;
11680
11481
  password: string;
11681
11482
  };
11483
+ destinations?: {
11484
+ type: "bigquery";
11485
+ dataset: string;
11486
+ tableName: string;
11487
+ deduplicateOptions?: {
11488
+ enabled: boolean;
11489
+ };
11490
+ }[];
11682
11491
  };
11683
11492
  }) | ({
11684
11493
  name: "configure_fetcher";
@@ -12344,6 +12153,19 @@ export declare type CurrentSteps = {
12344
12153
  value?: {
12345
12154
  value: string;
12346
12155
  };
12156
+ }) | ({
12157
+ name: "patch";
12158
+ } & {
12159
+ value?: {
12160
+ destinations?: {
12161
+ type: "bigquery";
12162
+ dataset: string;
12163
+ tableName: string;
12164
+ deduplicateOptions?: {
12165
+ enabled: boolean;
12166
+ };
12167
+ }[];
12168
+ };
12347
12169
  }) | ({
12348
12170
  name: "configure_fetcher";
12349
12171
  } & {
@@ -13209,6 +13031,14 @@ export declare type CurrentSteps = {
13209
13031
  };
13210
13032
  segmentBatchSize?: number;
13211
13033
  sftpPublicKey?: string;
13034
+ destinations?: {
13035
+ type: "bigquery";
13036
+ dataset: string;
13037
+ tableName: string;
13038
+ deduplicateOptions?: {
13039
+ enabled: boolean;
13040
+ };
13041
+ }[];
13212
13042
  };
13213
13043
  }) | ({
13214
13044
  name: "configure_fetcher";
@@ -14648,6 +14478,14 @@ export declare type CurrentSteps = {
14648
14478
  username: string;
14649
14479
  password: string;
14650
14480
  };
14481
+ destinations?: {
14482
+ type: "bigquery";
14483
+ dataset: string;
14484
+ tableName: string;
14485
+ deduplicateOptions?: {
14486
+ enabled: boolean;
14487
+ };
14488
+ }[];
14651
14489
  };
14652
14490
  }) | ({
14653
14491
  name: "configure_fetcher";
@@ -15313,6 +15151,19 @@ export declare type CurrentSteps = {
15313
15151
  value?: {
15314
15152
  value: string;
15315
15153
  };
15154
+ }) | ({
15155
+ name: "patch";
15156
+ } & {
15157
+ value?: {
15158
+ destinations?: {
15159
+ type: "bigquery";
15160
+ dataset: string;
15161
+ tableName: string;
15162
+ deduplicateOptions?: {
15163
+ enabled: boolean;
15164
+ };
15165
+ }[];
15166
+ };
15316
15167
  }) | ({
15317
15168
  name: "configure_fetcher";
15318
15169
  } & {
@@ -16178,6 +16029,14 @@ export declare type CurrentSteps = {
16178
16029
  };
16179
16030
  segmentBatchSize?: number;
16180
16031
  sftpPublicKey?: string;
16032
+ destinations?: {
16033
+ type: "bigquery";
16034
+ dataset: string;
16035
+ tableName: string;
16036
+ deduplicateOptions?: {
16037
+ enabled: boolean;
16038
+ };
16039
+ }[];
16181
16040
  };
16182
16041
  }) | ({
16183
16042
  name: "configure_fetcher";
@@ -17617,6 +17476,14 @@ export declare type CurrentSteps = {
17617
17476
  username: string;
17618
17477
  password: string;
17619
17478
  };
17479
+ destinations?: {
17480
+ type: "bigquery";
17481
+ dataset: string;
17482
+ tableName: string;
17483
+ deduplicateOptions?: {
17484
+ enabled: boolean;
17485
+ };
17486
+ }[];
17620
17487
  };
17621
17488
  }) | ({
17622
17489
  name: "configure_fetcher";
@@ -18282,6 +18149,19 @@ export declare type CurrentSteps = {
18282
18149
  value?: {
18283
18150
  value: string;
18284
18151
  };
18152
+ }) | ({
18153
+ name: "patch";
18154
+ } & {
18155
+ value?: {
18156
+ destinations?: {
18157
+ type: "bigquery";
18158
+ dataset: string;
18159
+ tableName: string;
18160
+ deduplicateOptions?: {
18161
+ enabled: boolean;
18162
+ };
18163
+ }[];
18164
+ };
18285
18165
  }) | ({
18286
18166
  name: "configure_fetcher";
18287
18167
  } & {
@@ -18499,7 +18379,9 @@ export declare type InternalResponse_DatasourceSettings = {
18499
18379
  message: string;
18500
18380
  data: DatasourceSettings;
18501
18381
  };
18382
+ export declare type Document = {};
18502
18383
  export declare type LogLevel = 0 | 1 | 2;
18384
+ export declare type IObjectWithTypegooseFunction = {};
18503
18385
  export declare type InternalResponse_Array_Intersection_Document_Omit_IObjectWithTypegooseFunction = {
18504
18386
  program: string;
18505
18387
  version: string;
@@ -18508,7 +18390,7 @@ export declare type InternalResponse_Array_Intersection_Document_Omit_IObjectWit
18508
18390
  code?: number;
18509
18391
  message: string;
18510
18392
  data: (Document & ({
18511
- 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" | "failed_to_refresh_dependents" | "start" | "end" | "content_update" | "geocoding_address" | "geocoding_country" | "invalid_type" | "invalid_line" | "invalid_unwind_source" | "required_values_empty";
18393
+ 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" | "failed_to_refresh_dependents" | "zero_rows_update" | "start" | "end" | "content_update" | "geocoding_address" | "geocoding_country" | "invalid_type" | "invalid_line" | "invalid_unwind_source" | "required_values_empty";
18512
18394
  datasourceId: ObjectId;
18513
18395
  payload: AnyValue;
18514
18396
  date: string;
@@ -18521,56 +18403,1229 @@ export declare type InternalResponse_Array_Intersection_Document_Omit_IObjectWit
18521
18403
  version: string;
18522
18404
  }) & IObjectWithTypegooseFunction)[];
18523
18405
  };
18524
- export declare type PushDatasource = AnyValue;
18525
- export declare type WorkerDatasource = AnyValue;
18526
- export declare type ProxyDatasource = AnyValue;
18527
- export declare type IngesterDatasource = AnyValue;
18528
- export declare type PubsubDatasource = AnyValue;
18529
- export declare type InternalResponse_Array_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
18530
- program: string;
18531
- version: string;
18532
- datetime: string;
18533
- status: string;
18534
- code?: number;
18535
- message: string;
18536
- data: (PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource)[];
18537
- };
18538
- export declare enum DatasourceStatus {
18539
- DRAFT = "draft",
18540
- PUBLISHED = "published",
18541
- UPDATING = "updating",
18542
- PAUSED = "paused",
18543
- ERROR = "error"
18406
+ export declare enum DatasourceLoopSubType {
18407
+ SCORES = "scores",
18408
+ MESSAGING_PLAN = "messaging_plan",
18409
+ AUDIT = "audit"
18544
18410
  }
18545
- export declare type FieldMap_With_Name_Type_Primitive = {
18546
- name: string;
18547
- type: FieldMapType;
18548
- readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
18549
- };
18550
- export declare type QueriableField = FieldMap_With_Name_Type_Primitive & {
18551
- required: boolean;
18552
- unique: boolean;
18553
- sortable: boolean;
18554
- enum?: (string | number)[];
18555
- allowedOperators: (("$eq" | "$ne" | "$contains" | "$notcontains" | "$startswith" | "$endswith" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "startswith" | "endswith" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$rangefuture" | "$rangepast" | "$nrangefuture" | "$nrangepast" | "rangefuture" | "rangepast" | "nrangefuture" | "nrangepast") | ("$eq" | "$ne" | "$contains" | "$notcontains" | "$startswith" | "$endswith" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "startswith" | "endswith" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$rangefuture" | "$rangepast" | "$nrangefuture" | "$nrangepast" | "rangefuture" | "rangepast" | "nrangefuture" | "nrangepast"))[];
18556
- };
18557
- export declare type InternalResponse_Union_Intersection_PushDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_WorkerDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_ProxyDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_IngesterDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_PubsubDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField = {
18558
- program: string;
18559
- version: string;
18560
- datetime: string;
18561
- status: string;
18562
- code?: number;
18563
- message: string;
18564
- data: (PushDatasource & {
18565
- example?: {
18566
- [key: string]: AnyValue;
18411
+ export declare enum DatasourceVersionState {
18412
+ LIVE = "LIVE",
18413
+ DRAFT = "DRAFT",
18414
+ SCHEDULED = "SCHEDULED",
18415
+ INACTIVE = "INACTIVE"
18416
+ }
18417
+ export declare type DatasourceVersion = {
18418
+ readonly id: (string) & readonlyP;
18419
+ type: {
18420
+ name: "analytics";
18421
+ options: {
18422
+ autoExclusions?: boolean;
18423
+ noStats?: boolean;
18567
18424
  };
18568
- queriableFields?: QueriableField[];
18569
- }) | (WorkerDatasource & {
18570
- example?: {
18571
- [key: string]: AnyValue;
18425
+ subtype: "purchases";
18426
+ } | {
18427
+ name: "generic";
18428
+ subtype: DatasourceGenericSubType;
18429
+ } | {
18430
+ name: "crm";
18431
+ subtype: DatasourceCRMSubType;
18432
+ } | {
18433
+ name: "product";
18434
+ subtype: DatasourceProductSubType;
18435
+ } | {
18436
+ name: "location";
18437
+ subtype: DatasourceLocationSubType;
18438
+ } | {
18439
+ name: "analytics";
18440
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
18441
+ } | {
18442
+ name: "push";
18443
+ subtype: "email";
18444
+ } | {
18445
+ name: "loop";
18446
+ subtype: DatasourceLoopSubType;
18447
+ };
18448
+ fieldsMap: {
18449
+ name: string;
18450
+ type: FieldMapType;
18451
+ source?: FieldSource;
18452
+ selected: boolean;
18453
+ ignoreIfMissing?: boolean;
18454
+ metadata?: {
18455
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
18572
18456
  };
18573
- queriableFields?: QueriableField[];
18457
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
18458
+ }[];
18459
+ mode: DatasourceMode;
18460
+ readonly state: (DatasourceVersionState) & readonlyP;
18461
+ readonly pendingSteps?: (({
18462
+ name: "configure_name";
18463
+ } | {
18464
+ name: "configure_resource_group_ids";
18465
+ } | {
18466
+ name: "configure_sources";
18467
+ } | {
18468
+ name: "configure_fields";
18469
+ } | {
18470
+ name: "configure_field";
18471
+ field: {
18472
+ name: string;
18473
+ type: FieldMapType;
18474
+ };
18475
+ } | {
18476
+ name: "create_oauth_client";
18477
+ configurationId: string;
18478
+ } | {
18479
+ name: "authorize_oauth_client";
18480
+ slug: string;
18481
+ } | {
18482
+ name: "configure_thresholds";
18483
+ } | {
18484
+ name: "configure_api_key";
18485
+ slug: "partoo";
18486
+ } | {
18487
+ name: "patch";
18488
+ } | {
18489
+ name: "validate";
18490
+ } | {
18491
+ name: "configure_google_tag_manager";
18492
+ } | {
18493
+ name: "configure_reelevant_analytics_script";
18494
+ } | {
18495
+ name: "configure_product_datasource_source";
18496
+ } | {
18497
+ name: "configure_tracking_datasource_source";
18498
+ } | {
18499
+ name: "configure_best_product_query";
18500
+ } | {
18501
+ name: "configure_best_product_field";
18502
+ } | {
18503
+ name: "configure_fetcher";
18504
+ } | {
18505
+ name: "configure_merge_datasource_source";
18506
+ } | {
18507
+ name: "configure_merge_datasource_dependency";
18508
+ } | {
18509
+ name: "configure_merge_mapping";
18510
+ } | {
18511
+ name: "configure_bought_together";
18512
+ } | {
18513
+ name: "configure_top_attributes";
18514
+ } | {
18515
+ name: "configure_destination";
18516
+ type: "smtp";
18517
+ } | {
18518
+ name: "configure_hierarchy";
18519
+ } | {
18520
+ name: "google_my_business_set_url";
18521
+ urls: {
18522
+ getAccount: string;
18523
+ final: string;
18524
+ };
18525
+ } | {
18526
+ name: "setup_instagram";
18527
+ urls: {
18528
+ getAccount: string;
18529
+ getAccountInfos: string;
18530
+ final: string;
18531
+ };
18532
+ })[]) & readonlyP;
18533
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18534
+ readonly requiredFieldsTypes: ({
18535
+ [key: string]: FieldMapType;
18536
+ }[]) & readonlyP;
18537
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18538
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18539
+ } & {
18540
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
18541
+ };
18542
+ export declare enum DatasourceStatus {
18543
+ DRAFT = "draft",
18544
+ PUBLISHED = "published",
18545
+ UPDATING = "updating",
18546
+ PAUSED = "paused",
18547
+ ERROR = "error"
18548
+ }
18549
+ export declare type Serialize_PushDatasource = {
18550
+ name: string;
18551
+ hidden: boolean;
18552
+ readonly template?: (ObjectId | null) & readonlyP;
18553
+ readonly fetcher: ({
18554
+ name: DatasourceFetcherName;
18555
+ params: {};
18556
+ } | {
18557
+ name: "fdj-bets";
18558
+ params: {};
18559
+ } | {
18560
+ name: "renault-prices";
18561
+ params: {};
18562
+ } | {
18563
+ name: "decathlon-product-fallback";
18564
+ params: {};
18565
+ } | {
18566
+ name: "generic-unwind-rows";
18567
+ params: {
18568
+ source: string;
18569
+ destination: string;
18570
+ columnDestination: string;
18571
+ valueType: string;
18572
+ };
18573
+ } | {
18574
+ name: "workflow-events";
18575
+ params: {};
18576
+ } | {
18577
+ name: "expired-product-lifetime";
18578
+ params: {
18579
+ purchaseDatasourceId: string;
18580
+ purchaseQuery: string;
18581
+ purchaseReferenceIdField: string;
18582
+ purchaseTimestampField: string;
18583
+ purchaseClientField: string;
18584
+ temporalities?: {
18585
+ maxLifetime: number;
18586
+ windowStart: number;
18587
+ windowEnd: number;
18588
+ minPurchaseCount?: number;
18589
+ }[];
18590
+ };
18591
+ } | {
18592
+ name: "product-exclusion";
18593
+ params: {
18594
+ mode: "inclusion" | "exclusion";
18595
+ exclusionDatasourceId: string;
18596
+ exclusionIdField: string;
18597
+ productIdField: string;
18598
+ };
18599
+ } | {
18600
+ name: "per-user";
18601
+ params: {};
18602
+ } | {
18603
+ name: "generic-proxy-lock";
18604
+ params: {
18605
+ ttl: number;
18606
+ };
18607
+ } | {
18608
+ name: "generic-proxy-aggregation";
18609
+ params: {
18610
+ targetField: string;
18611
+ aggregationType: "sum" | "avg" | "min" | "max";
18612
+ outputField: string;
18613
+ };
18614
+ }) & readonlyP;
18615
+ storageOptions: {
18616
+ destinations: {
18617
+ type: "bigquery";
18618
+ dataset: string;
18619
+ tableName: string;
18620
+ deduplicateOptions?: {
18621
+ enabled: boolean;
18622
+ };
18623
+ }[];
18624
+ partitionCount: number;
18625
+ segments: {
18626
+ offlineSize: number;
18627
+ offlineReplication: number;
18628
+ realtimeSize: number;
18629
+ realtimeReplication: number;
18630
+ };
18631
+ retention?: {
18632
+ value: number;
18633
+ unit: "DAYS";
18634
+ };
18635
+ };
18636
+ mode: "push";
18637
+ companyId: ObjectId;
18638
+ resourceGroupIds: ObjectId[];
18639
+ readonly configurationUpdatedAt: (string) & readonlyP;
18640
+ readonly archivedAt: (string | null) & readonlyP;
18641
+ versions: (ObjectId | (Document & DatasourceVersion & {
18642
+ _id: ObjectId;
18643
+ } & {
18644
+ __v: number;
18645
+ } & IObjectWithTypegooseFunction))[];
18646
+ status: DatasourceStatus;
18647
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
18648
+ readonly lastFailedIngestion?: (string) & readonlyP;
18649
+ readonly lastFailureReason?: (string) & readonlyP;
18650
+ hierarchy: string[];
18651
+ readonly hasWarnings: (boolean) & readonlyP;
18652
+ };
18653
+ export declare type PushDatasource = Serialize_PushDatasource & {
18654
+ readonly id: (string) & readonlyP;
18655
+ } & {
18656
+ readonly createdAt: (string) & readonlyP;
18657
+ readonly updatedAt: (string) & readonlyP;
18658
+ };
18659
+ export declare type WorkerDatasourceVersion = {
18660
+ readonly id: (string) & readonlyP;
18661
+ type: {
18662
+ name: "analytics";
18663
+ options: {
18664
+ autoExclusions?: boolean;
18665
+ noStats?: boolean;
18666
+ };
18667
+ subtype: "purchases";
18668
+ } | {
18669
+ name: "generic";
18670
+ subtype: DatasourceGenericSubType;
18671
+ } | {
18672
+ name: "crm";
18673
+ subtype: DatasourceCRMSubType;
18674
+ } | {
18675
+ name: "product";
18676
+ subtype: DatasourceProductSubType;
18677
+ } | {
18678
+ name: "location";
18679
+ subtype: DatasourceLocationSubType;
18680
+ } | {
18681
+ name: "analytics";
18682
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
18683
+ } | {
18684
+ name: "push";
18685
+ subtype: "email";
18686
+ } | {
18687
+ name: "loop";
18688
+ subtype: DatasourceLoopSubType;
18689
+ };
18690
+ fieldsMap: {
18691
+ name: string;
18692
+ type: FieldMapType;
18693
+ source?: FieldSource;
18694
+ selected: boolean;
18695
+ ignoreIfMissing?: boolean;
18696
+ metadata?: {
18697
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
18698
+ };
18699
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
18700
+ }[];
18701
+ mode: DatasourceMode;
18702
+ readonly state: (DatasourceVersionState) & readonlyP;
18703
+ readonly pendingSteps?: (({
18704
+ name: "configure_name";
18705
+ } | {
18706
+ name: "configure_resource_group_ids";
18707
+ } | {
18708
+ name: "configure_sources";
18709
+ } | {
18710
+ name: "configure_fields";
18711
+ } | {
18712
+ name: "configure_field";
18713
+ field: {
18714
+ name: string;
18715
+ type: FieldMapType;
18716
+ };
18717
+ } | {
18718
+ name: "create_oauth_client";
18719
+ configurationId: string;
18720
+ } | {
18721
+ name: "authorize_oauth_client";
18722
+ slug: string;
18723
+ } | {
18724
+ name: "configure_thresholds";
18725
+ } | {
18726
+ name: "configure_api_key";
18727
+ slug: "partoo";
18728
+ } | {
18729
+ name: "patch";
18730
+ } | {
18731
+ name: "validate";
18732
+ } | {
18733
+ name: "configure_google_tag_manager";
18734
+ } | {
18735
+ name: "configure_reelevant_analytics_script";
18736
+ } | {
18737
+ name: "configure_product_datasource_source";
18738
+ } | {
18739
+ name: "configure_tracking_datasource_source";
18740
+ } | {
18741
+ name: "configure_best_product_query";
18742
+ } | {
18743
+ name: "configure_best_product_field";
18744
+ } | {
18745
+ name: "configure_fetcher";
18746
+ } | {
18747
+ name: "configure_merge_datasource_source";
18748
+ } | {
18749
+ name: "configure_merge_datasource_dependency";
18750
+ } | {
18751
+ name: "configure_merge_mapping";
18752
+ } | {
18753
+ name: "configure_bought_together";
18754
+ } | {
18755
+ name: "configure_top_attributes";
18756
+ } | {
18757
+ name: "configure_destination";
18758
+ type: "smtp";
18759
+ } | {
18760
+ name: "configure_hierarchy";
18761
+ } | {
18762
+ name: "google_my_business_set_url";
18763
+ urls: {
18764
+ getAccount: string;
18765
+ final: string;
18766
+ };
18767
+ } | {
18768
+ name: "setup_instagram";
18769
+ urls: {
18770
+ getAccount: string;
18771
+ getAccountInfos: string;
18772
+ final: string;
18773
+ };
18774
+ })[]) & readonlyP;
18775
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18776
+ readonly requiredFieldsTypes: ({
18777
+ [key: string]: FieldMapType;
18778
+ }[]) & readonlyP;
18779
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18780
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18781
+ } & {
18782
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
18783
+ };
18784
+ export declare type Serialize_WorkerDatasource = {
18785
+ name: string;
18786
+ hidden: boolean;
18787
+ readonly template?: (ObjectId | null) & readonlyP;
18788
+ readonly fetcher: ({
18789
+ name: DatasourceFetcherName;
18790
+ params: {};
18791
+ } | {
18792
+ name: "fdj-bets";
18793
+ params: {};
18794
+ } | {
18795
+ name: "renault-prices";
18796
+ params: {};
18797
+ } | {
18798
+ name: "decathlon-product-fallback";
18799
+ params: {};
18800
+ } | {
18801
+ name: "generic-unwind-rows";
18802
+ params: {
18803
+ source: string;
18804
+ destination: string;
18805
+ columnDestination: string;
18806
+ valueType: string;
18807
+ };
18808
+ } | {
18809
+ name: "workflow-events";
18810
+ params: {};
18811
+ } | {
18812
+ name: "expired-product-lifetime";
18813
+ params: {
18814
+ purchaseDatasourceId: string;
18815
+ purchaseQuery: string;
18816
+ purchaseReferenceIdField: string;
18817
+ purchaseTimestampField: string;
18818
+ purchaseClientField: string;
18819
+ temporalities?: {
18820
+ maxLifetime: number;
18821
+ windowStart: number;
18822
+ windowEnd: number;
18823
+ minPurchaseCount?: number;
18824
+ }[];
18825
+ };
18826
+ } | {
18827
+ name: "product-exclusion";
18828
+ params: {
18829
+ mode: "inclusion" | "exclusion";
18830
+ exclusionDatasourceId: string;
18831
+ exclusionIdField: string;
18832
+ productIdField: string;
18833
+ };
18834
+ } | {
18835
+ name: "per-user";
18836
+ params: {};
18837
+ } | {
18838
+ name: "generic-proxy-lock";
18839
+ params: {
18840
+ ttl: number;
18841
+ };
18842
+ } | {
18843
+ name: "generic-proxy-aggregation";
18844
+ params: {
18845
+ targetField: string;
18846
+ aggregationType: "sum" | "avg" | "min" | "max";
18847
+ outputField: string;
18848
+ };
18849
+ }) & readonlyP;
18850
+ storageOptions: {
18851
+ destinations: {
18852
+ type: "bigquery";
18853
+ dataset: string;
18854
+ tableName: string;
18855
+ deduplicateOptions?: {
18856
+ enabled: boolean;
18857
+ };
18858
+ }[];
18859
+ };
18860
+ mode: "worker";
18861
+ companyId: ObjectId;
18862
+ resourceGroupIds: ObjectId[];
18863
+ readonly configurationUpdatedAt: (string) & readonlyP;
18864
+ readonly archivedAt: (string | null) & readonlyP;
18865
+ versions: (ObjectId | (Document & WorkerDatasourceVersion & {
18866
+ _id: ObjectId;
18867
+ } & {
18868
+ __v: number;
18869
+ } & IObjectWithTypegooseFunction))[];
18870
+ status: DatasourceStatus;
18871
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
18872
+ readonly lastFailedIngestion?: (string) & readonlyP;
18873
+ readonly lastFailureReason?: (string) & readonlyP;
18874
+ hierarchy: string[];
18875
+ readonly hasWarnings: (boolean) & readonlyP;
18876
+ readonly contentVersion: (number) & readonlyP;
18877
+ thresholds: {
18878
+ type: "too_many_invalid_entries";
18879
+ value: number;
18880
+ trigger: {
18881
+ type: "error";
18882
+ value: "too_many_invalid_entries";
18883
+ };
18884
+ }[] | {
18885
+ type: "entries_drop_rate_too_high";
18886
+ value: number;
18887
+ trigger: {
18888
+ type: "warning";
18889
+ value: "entries_drop_rate_too_high";
18890
+ } | {
18891
+ type: "error";
18892
+ value: "entries_drop_rate_too_high";
18893
+ };
18894
+ }[];
18895
+ attempts?: number;
18896
+ readonly lastRunAt: (string | null) & readonlyP;
18897
+ readonly currentLiveVersion: (ObjectId | null) & readonlyP;
18898
+ readonly pausedAt: (string | null) & readonlyP;
18899
+ readonly isPaused: (boolean) & readonlyP;
18900
+ };
18901
+ export declare type WorkerDatasource = Serialize_WorkerDatasource & {
18902
+ readonly id: (string) & readonlyP;
18903
+ } & {
18904
+ readonly createdAt: (string) & readonlyP;
18905
+ readonly updatedAt: (string) & readonlyP;
18906
+ };
18907
+ export declare type ProxyDatasourceVersion = {
18908
+ readonly id: (string) & readonlyP;
18909
+ type: {
18910
+ name: "analytics";
18911
+ options: {
18912
+ autoExclusions?: boolean;
18913
+ noStats?: boolean;
18914
+ };
18915
+ subtype: "purchases";
18916
+ } | {
18917
+ name: "generic";
18918
+ subtype: DatasourceGenericSubType;
18919
+ } | {
18920
+ name: "crm";
18921
+ subtype: DatasourceCRMSubType;
18922
+ } | {
18923
+ name: "product";
18924
+ subtype: DatasourceProductSubType;
18925
+ } | {
18926
+ name: "location";
18927
+ subtype: DatasourceLocationSubType;
18928
+ } | {
18929
+ name: "analytics";
18930
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
18931
+ } | {
18932
+ name: "push";
18933
+ subtype: "email";
18934
+ } | {
18935
+ name: "loop";
18936
+ subtype: DatasourceLoopSubType;
18937
+ };
18938
+ fieldsMap: {
18939
+ name: string;
18940
+ type: FieldMapType;
18941
+ source?: FieldSource;
18942
+ selected: boolean;
18943
+ ignoreIfMissing?: boolean;
18944
+ metadata?: {
18945
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
18946
+ };
18947
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
18948
+ }[];
18949
+ mode: DatasourceMode;
18950
+ readonly state: (DatasourceVersionState) & readonlyP;
18951
+ readonly pendingSteps?: (({
18952
+ name: "configure_name";
18953
+ } | {
18954
+ name: "configure_resource_group_ids";
18955
+ } | {
18956
+ name: "configure_sources";
18957
+ } | {
18958
+ name: "configure_fields";
18959
+ } | {
18960
+ name: "configure_field";
18961
+ field: {
18962
+ name: string;
18963
+ type: FieldMapType;
18964
+ };
18965
+ } | {
18966
+ name: "create_oauth_client";
18967
+ configurationId: string;
18968
+ } | {
18969
+ name: "authorize_oauth_client";
18970
+ slug: string;
18971
+ } | {
18972
+ name: "configure_thresholds";
18973
+ } | {
18974
+ name: "configure_api_key";
18975
+ slug: "partoo";
18976
+ } | {
18977
+ name: "patch";
18978
+ } | {
18979
+ name: "validate";
18980
+ } | {
18981
+ name: "configure_google_tag_manager";
18982
+ } | {
18983
+ name: "configure_reelevant_analytics_script";
18984
+ } | {
18985
+ name: "configure_product_datasource_source";
18986
+ } | {
18987
+ name: "configure_tracking_datasource_source";
18988
+ } | {
18989
+ name: "configure_best_product_query";
18990
+ } | {
18991
+ name: "configure_best_product_field";
18992
+ } | {
18993
+ name: "configure_fetcher";
18994
+ } | {
18995
+ name: "configure_merge_datasource_source";
18996
+ } | {
18997
+ name: "configure_merge_datasource_dependency";
18998
+ } | {
18999
+ name: "configure_merge_mapping";
19000
+ } | {
19001
+ name: "configure_bought_together";
19002
+ } | {
19003
+ name: "configure_top_attributes";
19004
+ } | {
19005
+ name: "configure_destination";
19006
+ type: "smtp";
19007
+ } | {
19008
+ name: "configure_hierarchy";
19009
+ } | {
19010
+ name: "google_my_business_set_url";
19011
+ urls: {
19012
+ getAccount: string;
19013
+ final: string;
19014
+ };
19015
+ } | {
19016
+ name: "setup_instagram";
19017
+ urls: {
19018
+ getAccount: string;
19019
+ getAccountInfos: string;
19020
+ final: string;
19021
+ };
19022
+ })[]) & readonlyP;
19023
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19024
+ readonly requiredFieldsTypes: ({
19025
+ [key: string]: FieldMapType;
19026
+ }[]) & readonlyP;
19027
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19028
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19029
+ } & {
19030
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19031
+ };
19032
+ export declare type Serialize_ProxyDatasource = {
19033
+ name: string;
19034
+ hidden: boolean;
19035
+ readonly template?: (ObjectId | null) & readonlyP;
19036
+ readonly fetcher: ({
19037
+ name: DatasourceFetcherName;
19038
+ params: {};
19039
+ } | {
19040
+ name: "fdj-bets";
19041
+ params: {};
19042
+ } | {
19043
+ name: "renault-prices";
19044
+ params: {};
19045
+ } | {
19046
+ name: "decathlon-product-fallback";
19047
+ params: {};
19048
+ } | {
19049
+ name: "generic-unwind-rows";
19050
+ params: {
19051
+ source: string;
19052
+ destination: string;
19053
+ columnDestination: string;
19054
+ valueType: string;
19055
+ };
19056
+ } | {
19057
+ name: "workflow-events";
19058
+ params: {};
19059
+ } | {
19060
+ name: "expired-product-lifetime";
19061
+ params: {
19062
+ purchaseDatasourceId: string;
19063
+ purchaseQuery: string;
19064
+ purchaseReferenceIdField: string;
19065
+ purchaseTimestampField: string;
19066
+ purchaseClientField: string;
19067
+ temporalities?: {
19068
+ maxLifetime: number;
19069
+ windowStart: number;
19070
+ windowEnd: number;
19071
+ minPurchaseCount?: number;
19072
+ }[];
19073
+ };
19074
+ } | {
19075
+ name: "product-exclusion";
19076
+ params: {
19077
+ mode: "inclusion" | "exclusion";
19078
+ exclusionDatasourceId: string;
19079
+ exclusionIdField: string;
19080
+ productIdField: string;
19081
+ };
19082
+ } | {
19083
+ name: "per-user";
19084
+ params: {};
19085
+ } | {
19086
+ name: "generic-proxy-lock";
19087
+ params: {
19088
+ ttl: number;
19089
+ };
19090
+ } | {
19091
+ name: "generic-proxy-aggregation";
19092
+ params: {
19093
+ targetField: string;
19094
+ aggregationType: "sum" | "avg" | "min" | "max";
19095
+ outputField: string;
19096
+ };
19097
+ }) & readonlyP;
19098
+ mode: "proxy";
19099
+ companyId: ObjectId;
19100
+ resourceGroupIds: ObjectId[];
19101
+ readonly configurationUpdatedAt: (string) & readonlyP;
19102
+ readonly archivedAt: (string | null) & readonlyP;
19103
+ versions: (ObjectId | (Document & ProxyDatasourceVersion & {
19104
+ _id: ObjectId;
19105
+ } & {
19106
+ __v: number;
19107
+ } & IObjectWithTypegooseFunction))[];
19108
+ status: DatasourceStatus;
19109
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
19110
+ readonly lastFailedIngestion?: (string) & readonlyP;
19111
+ readonly lastFailureReason?: (string) & readonlyP;
19112
+ hierarchy: string[];
19113
+ readonly hasWarnings: (boolean) & readonlyP;
19114
+ };
19115
+ export declare type ProxyDatasource = Serialize_ProxyDatasource & {
19116
+ readonly id: (string) & readonlyP;
19117
+ } & {
19118
+ readonly createdAt: (string) & readonlyP;
19119
+ readonly updatedAt: (string) & readonlyP;
19120
+ };
19121
+ export declare type IngesterDatasourceVersion = {
19122
+ readonly id: (string) & readonlyP;
19123
+ type: {
19124
+ name: "analytics";
19125
+ options: {
19126
+ autoExclusions?: boolean;
19127
+ noStats?: boolean;
19128
+ };
19129
+ subtype: "purchases";
19130
+ } | {
19131
+ name: "generic";
19132
+ subtype: DatasourceGenericSubType;
19133
+ } | {
19134
+ name: "crm";
19135
+ subtype: DatasourceCRMSubType;
19136
+ } | {
19137
+ name: "product";
19138
+ subtype: DatasourceProductSubType;
19139
+ } | {
19140
+ name: "location";
19141
+ subtype: DatasourceLocationSubType;
19142
+ } | {
19143
+ name: "analytics";
19144
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
19145
+ } | {
19146
+ name: "push";
19147
+ subtype: "email";
19148
+ } | {
19149
+ name: "loop";
19150
+ subtype: DatasourceLoopSubType;
19151
+ };
19152
+ fieldsMap: {
19153
+ name: string;
19154
+ type: FieldMapType;
19155
+ source?: FieldSource;
19156
+ selected: boolean;
19157
+ ignoreIfMissing?: boolean;
19158
+ metadata?: {
19159
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19160
+ };
19161
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19162
+ }[];
19163
+ mode: DatasourceMode;
19164
+ readonly state: (DatasourceVersionState) & readonlyP;
19165
+ readonly pendingSteps?: (({
19166
+ name: "configure_name";
19167
+ } | {
19168
+ name: "configure_resource_group_ids";
19169
+ } | {
19170
+ name: "configure_sources";
19171
+ } | {
19172
+ name: "configure_fields";
19173
+ } | {
19174
+ name: "configure_field";
19175
+ field: {
19176
+ name: string;
19177
+ type: FieldMapType;
19178
+ };
19179
+ } | {
19180
+ name: "create_oauth_client";
19181
+ configurationId: string;
19182
+ } | {
19183
+ name: "authorize_oauth_client";
19184
+ slug: string;
19185
+ } | {
19186
+ name: "configure_thresholds";
19187
+ } | {
19188
+ name: "configure_api_key";
19189
+ slug: "partoo";
19190
+ } | {
19191
+ name: "patch";
19192
+ } | {
19193
+ name: "validate";
19194
+ } | {
19195
+ name: "configure_google_tag_manager";
19196
+ } | {
19197
+ name: "configure_reelevant_analytics_script";
19198
+ } | {
19199
+ name: "configure_product_datasource_source";
19200
+ } | {
19201
+ name: "configure_tracking_datasource_source";
19202
+ } | {
19203
+ name: "configure_best_product_query";
19204
+ } | {
19205
+ name: "configure_best_product_field";
19206
+ } | {
19207
+ name: "configure_fetcher";
19208
+ } | {
19209
+ name: "configure_merge_datasource_source";
19210
+ } | {
19211
+ name: "configure_merge_datasource_dependency";
19212
+ } | {
19213
+ name: "configure_merge_mapping";
19214
+ } | {
19215
+ name: "configure_bought_together";
19216
+ } | {
19217
+ name: "configure_top_attributes";
19218
+ } | {
19219
+ name: "configure_destination";
19220
+ type: "smtp";
19221
+ } | {
19222
+ name: "configure_hierarchy";
19223
+ } | {
19224
+ name: "google_my_business_set_url";
19225
+ urls: {
19226
+ getAccount: string;
19227
+ final: string;
19228
+ };
19229
+ } | {
19230
+ name: "setup_instagram";
19231
+ urls: {
19232
+ getAccount: string;
19233
+ getAccountInfos: string;
19234
+ final: string;
19235
+ };
19236
+ })[]) & readonlyP;
19237
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19238
+ readonly requiredFieldsTypes: ({
19239
+ [key: string]: FieldMapType;
19240
+ }[]) & readonlyP;
19241
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19242
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19243
+ } & {
19244
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19245
+ };
19246
+ export declare type Serialize_IngesterDatasource = {
19247
+ name: string;
19248
+ hidden: boolean;
19249
+ readonly template?: (ObjectId | null) & readonlyP;
19250
+ readonly fetcher: ({
19251
+ name: DatasourceFetcherName;
19252
+ params: {};
19253
+ } | {
19254
+ name: "fdj-bets";
19255
+ params: {};
19256
+ } | {
19257
+ name: "renault-prices";
19258
+ params: {};
19259
+ } | {
19260
+ name: "decathlon-product-fallback";
19261
+ params: {};
19262
+ } | {
19263
+ name: "generic-unwind-rows";
19264
+ params: {
19265
+ source: string;
19266
+ destination: string;
19267
+ columnDestination: string;
19268
+ valueType: string;
19269
+ };
19270
+ } | {
19271
+ name: "workflow-events";
19272
+ params: {};
19273
+ } | {
19274
+ name: "expired-product-lifetime";
19275
+ params: {
19276
+ purchaseDatasourceId: string;
19277
+ purchaseQuery: string;
19278
+ purchaseReferenceIdField: string;
19279
+ purchaseTimestampField: string;
19280
+ purchaseClientField: string;
19281
+ temporalities?: {
19282
+ maxLifetime: number;
19283
+ windowStart: number;
19284
+ windowEnd: number;
19285
+ minPurchaseCount?: number;
19286
+ }[];
19287
+ };
19288
+ } | {
19289
+ name: "product-exclusion";
19290
+ params: {
19291
+ mode: "inclusion" | "exclusion";
19292
+ exclusionDatasourceId: string;
19293
+ exclusionIdField: string;
19294
+ productIdField: string;
19295
+ };
19296
+ } | {
19297
+ name: "per-user";
19298
+ params: {};
19299
+ } | {
19300
+ name: "generic-proxy-lock";
19301
+ params: {
19302
+ ttl: number;
19303
+ };
19304
+ } | {
19305
+ name: "generic-proxy-aggregation";
19306
+ params: {
19307
+ targetField: string;
19308
+ aggregationType: "sum" | "avg" | "min" | "max";
19309
+ outputField: string;
19310
+ };
19311
+ }) & readonlyP;
19312
+ storageOptions: {
19313
+ destinations: {
19314
+ type: "bigquery";
19315
+ dataset: string;
19316
+ tableName: string;
19317
+ deduplicateOptions?: {
19318
+ enabled: boolean;
19319
+ };
19320
+ }[];
19321
+ partitionCount: number;
19322
+ segments: {
19323
+ offlineSize: number;
19324
+ offlineReplication: number;
19325
+ realtimeSize: number;
19326
+ realtimeReplication: number;
19327
+ };
19328
+ retention?: {
19329
+ value: number;
19330
+ unit: "DAYS";
19331
+ };
19332
+ };
19333
+ mode: "ingester";
19334
+ companyId: ObjectId;
19335
+ resourceGroupIds: ObjectId[];
19336
+ readonly configurationUpdatedAt: (string) & readonlyP;
19337
+ readonly archivedAt: (string | null) & readonlyP;
19338
+ versions: (ObjectId | (Document & IngesterDatasourceVersion & {
19339
+ _id: ObjectId;
19340
+ } & {
19341
+ __v: number;
19342
+ } & IObjectWithTypegooseFunction))[];
19343
+ status: DatasourceStatus;
19344
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
19345
+ readonly lastFailedIngestion?: (string) & readonlyP;
19346
+ readonly lastFailureReason?: (string) & readonlyP;
19347
+ hierarchy: string[];
19348
+ readonly hasWarnings: (boolean) & readonlyP;
19349
+ };
19350
+ export declare type IngesterDatasource = Serialize_IngesterDatasource & {
19351
+ readonly id: (string) & readonlyP;
19352
+ } & {
19353
+ readonly createdAt: (string) & readonlyP;
19354
+ readonly updatedAt: (string) & readonlyP;
19355
+ };
19356
+ export declare type PubsubDatasourceVersion = {
19357
+ readonly id: (string) & readonlyP;
19358
+ type: {
19359
+ name: "analytics";
19360
+ options: {
19361
+ autoExclusions?: boolean;
19362
+ noStats?: boolean;
19363
+ };
19364
+ subtype: "purchases";
19365
+ } | {
19366
+ name: "generic";
19367
+ subtype: DatasourceGenericSubType;
19368
+ } | {
19369
+ name: "crm";
19370
+ subtype: DatasourceCRMSubType;
19371
+ } | {
19372
+ name: "product";
19373
+ subtype: DatasourceProductSubType;
19374
+ } | {
19375
+ name: "location";
19376
+ subtype: DatasourceLocationSubType;
19377
+ } | {
19378
+ name: "analytics";
19379
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
19380
+ } | {
19381
+ name: "push";
19382
+ subtype: "email";
19383
+ } | {
19384
+ name: "loop";
19385
+ subtype: DatasourceLoopSubType;
19386
+ };
19387
+ fieldsMap: {
19388
+ name: string;
19389
+ type: FieldMapType;
19390
+ source?: FieldSource;
19391
+ selected: boolean;
19392
+ ignoreIfMissing?: boolean;
19393
+ metadata?: {
19394
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19395
+ };
19396
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19397
+ }[];
19398
+ mode: DatasourceMode;
19399
+ readonly state: (DatasourceVersionState) & readonlyP;
19400
+ readonly pendingSteps?: (({
19401
+ name: "configure_name";
19402
+ } | {
19403
+ name: "configure_resource_group_ids";
19404
+ } | {
19405
+ name: "configure_sources";
19406
+ } | {
19407
+ name: "configure_fields";
19408
+ } | {
19409
+ name: "configure_field";
19410
+ field: {
19411
+ name: string;
19412
+ type: FieldMapType;
19413
+ };
19414
+ } | {
19415
+ name: "create_oauth_client";
19416
+ configurationId: string;
19417
+ } | {
19418
+ name: "authorize_oauth_client";
19419
+ slug: string;
19420
+ } | {
19421
+ name: "configure_thresholds";
19422
+ } | {
19423
+ name: "configure_api_key";
19424
+ slug: "partoo";
19425
+ } | {
19426
+ name: "patch";
19427
+ } | {
19428
+ name: "validate";
19429
+ } | {
19430
+ name: "configure_google_tag_manager";
19431
+ } | {
19432
+ name: "configure_reelevant_analytics_script";
19433
+ } | {
19434
+ name: "configure_product_datasource_source";
19435
+ } | {
19436
+ name: "configure_tracking_datasource_source";
19437
+ } | {
19438
+ name: "configure_best_product_query";
19439
+ } | {
19440
+ name: "configure_best_product_field";
19441
+ } | {
19442
+ name: "configure_fetcher";
19443
+ } | {
19444
+ name: "configure_merge_datasource_source";
19445
+ } | {
19446
+ name: "configure_merge_datasource_dependency";
19447
+ } | {
19448
+ name: "configure_merge_mapping";
19449
+ } | {
19450
+ name: "configure_bought_together";
19451
+ } | {
19452
+ name: "configure_top_attributes";
19453
+ } | {
19454
+ name: "configure_destination";
19455
+ type: "smtp";
19456
+ } | {
19457
+ name: "configure_hierarchy";
19458
+ } | {
19459
+ name: "google_my_business_set_url";
19460
+ urls: {
19461
+ getAccount: string;
19462
+ final: string;
19463
+ };
19464
+ } | {
19465
+ name: "setup_instagram";
19466
+ urls: {
19467
+ getAccount: string;
19468
+ getAccountInfos: string;
19469
+ final: string;
19470
+ };
19471
+ })[]) & readonlyP;
19472
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19473
+ readonly requiredFieldsTypes: ({
19474
+ [key: string]: FieldMapType;
19475
+ }[]) & readonlyP;
19476
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19477
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19478
+ } & {
19479
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19480
+ };
19481
+ export declare type Serialize_PubsubDatasource = {
19482
+ name: string;
19483
+ hidden: boolean;
19484
+ readonly template?: (ObjectId | null) & readonlyP;
19485
+ readonly fetcher: ({
19486
+ name: DatasourceFetcherName;
19487
+ params: {};
19488
+ } | {
19489
+ name: "fdj-bets";
19490
+ params: {};
19491
+ } | {
19492
+ name: "renault-prices";
19493
+ params: {};
19494
+ } | {
19495
+ name: "decathlon-product-fallback";
19496
+ params: {};
19497
+ } | {
19498
+ name: "generic-unwind-rows";
19499
+ params: {
19500
+ source: string;
19501
+ destination: string;
19502
+ columnDestination: string;
19503
+ valueType: string;
19504
+ };
19505
+ } | {
19506
+ name: "workflow-events";
19507
+ params: {};
19508
+ } | {
19509
+ name: "expired-product-lifetime";
19510
+ params: {
19511
+ purchaseDatasourceId: string;
19512
+ purchaseQuery: string;
19513
+ purchaseReferenceIdField: string;
19514
+ purchaseTimestampField: string;
19515
+ purchaseClientField: string;
19516
+ temporalities?: {
19517
+ maxLifetime: number;
19518
+ windowStart: number;
19519
+ windowEnd: number;
19520
+ minPurchaseCount?: number;
19521
+ }[];
19522
+ };
19523
+ } | {
19524
+ name: "product-exclusion";
19525
+ params: {
19526
+ mode: "inclusion" | "exclusion";
19527
+ exclusionDatasourceId: string;
19528
+ exclusionIdField: string;
19529
+ productIdField: string;
19530
+ };
19531
+ } | {
19532
+ name: "per-user";
19533
+ params: {};
19534
+ } | {
19535
+ name: "generic-proxy-lock";
19536
+ params: {
19537
+ ttl: number;
19538
+ };
19539
+ } | {
19540
+ name: "generic-proxy-aggregation";
19541
+ params: {
19542
+ targetField: string;
19543
+ aggregationType: "sum" | "avg" | "min" | "max";
19544
+ outputField: string;
19545
+ };
19546
+ }) & readonlyP;
19547
+ storageOptions: {
19548
+ destinations: {
19549
+ type: "bigquery";
19550
+ dataset: string;
19551
+ tableName: string;
19552
+ deduplicateOptions?: {
19553
+ enabled: boolean;
19554
+ };
19555
+ }[];
19556
+ partitionCount: number;
19557
+ segments: {
19558
+ offlineSize: number;
19559
+ offlineReplication: number;
19560
+ realtimeSize: number;
19561
+ realtimeReplication: number;
19562
+ };
19563
+ retention?: {
19564
+ value: number;
19565
+ unit: "DAYS";
19566
+ };
19567
+ };
19568
+ mode: "pubsub";
19569
+ companyId: ObjectId;
19570
+ resourceGroupIds: ObjectId[];
19571
+ readonly configurationUpdatedAt: (string) & readonlyP;
19572
+ readonly archivedAt: (string | null) & readonlyP;
19573
+ versions: (ObjectId | (Document & PubsubDatasourceVersion & {
19574
+ _id: ObjectId;
19575
+ } & {
19576
+ __v: number;
19577
+ } & IObjectWithTypegooseFunction))[];
19578
+ status: DatasourceStatus;
19579
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
19580
+ readonly lastFailedIngestion?: (string) & readonlyP;
19581
+ readonly lastFailureReason?: (string) & readonlyP;
19582
+ hierarchy: string[];
19583
+ readonly hasWarnings: (boolean) & readonlyP;
19584
+ };
19585
+ export declare type PubsubDatasource = Serialize_PubsubDatasource & {
19586
+ readonly id: (string) & readonlyP;
19587
+ } & {
19588
+ readonly createdAt: (string) & readonlyP;
19589
+ readonly updatedAt: (string) & readonlyP;
19590
+ };
19591
+ export declare type InternalResponse_Array_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19592
+ program: string;
19593
+ version: string;
19594
+ datetime: string;
19595
+ status: string;
19596
+ code?: number;
19597
+ message: string;
19598
+ data: (PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource)[];
19599
+ };
19600
+ export declare type FieldMap_With_Name_Type_Primitive = {
19601
+ name: string;
19602
+ type: FieldMapType;
19603
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19604
+ };
19605
+ export declare type QueriableField = FieldMap_With_Name_Type_Primitive & {
19606
+ required: boolean;
19607
+ unique: boolean;
19608
+ sortable: boolean;
19609
+ enum?: (string | number)[];
19610
+ allowedOperators: (("$eq" | "$ne" | "$contains" | "$notcontains" | "$startswith" | "$endswith" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "startswith" | "endswith" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$rangefuture" | "$rangepast" | "$nrangefuture" | "$nrangepast" | "rangefuture" | "rangepast" | "nrangefuture" | "nrangepast") | ("$eq" | "$ne" | "$contains" | "$notcontains" | "$startswith" | "$endswith" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "startswith" | "endswith" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$rangefuture" | "$rangepast" | "$nrangefuture" | "$nrangepast" | "rangefuture" | "rangepast" | "nrangefuture" | "nrangepast"))[];
19611
+ };
19612
+ export declare type InternalResponse_Union_Intersection_PushDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_WorkerDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_ProxyDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_IngesterDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_PubsubDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField = {
19613
+ program: string;
19614
+ version: string;
19615
+ datetime: string;
19616
+ status: string;
19617
+ code?: number;
19618
+ message: string;
19619
+ data: (PushDatasource & {
19620
+ example?: {
19621
+ [key: string]: AnyValue;
19622
+ };
19623
+ queriableFields?: QueriableField[];
19624
+ }) | (WorkerDatasource & {
19625
+ example?: {
19626
+ [key: string]: AnyValue;
19627
+ };
19628
+ queriableFields?: QueriableField[];
18574
19629
  }) | (ProxyDatasource & {
18575
19630
  example?: {
18576
19631
  [key: string]: AnyValue;
@@ -18585,265 +19640,561 @@ export declare type InternalResponse_Union_Intersection_PushDatasource_example_U
18585
19640
  example?: {
18586
19641
  [key: string]: AnyValue;
18587
19642
  };
18588
- queriableFields?: QueriableField[];
18589
- });
19643
+ queriableFields?: QueriableField[];
19644
+ });
19645
+ };
19646
+ export declare type InternalResponse_example_Record = {
19647
+ program: string;
19648
+ version: string;
19649
+ datetime: string;
19650
+ status: string;
19651
+ code?: number;
19652
+ message: string;
19653
+ data: {
19654
+ example: {
19655
+ [key: string]: AnyValue;
19656
+ };
19657
+ };
19658
+ };
19659
+ export declare type InternalResponse_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19660
+ program: string;
19661
+ version: string;
19662
+ datetime: string;
19663
+ status: string;
19664
+ code?: number;
19665
+ message: string;
19666
+ data: PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource;
19667
+ };
19668
+ export declare type DatasourcePush = {
19669
+ name: "push";
19670
+ subtype: "email";
19671
+ };
19672
+ export declare type DatasourceGeneric = {
19673
+ name: "generic";
19674
+ subtype: DatasourceGenericSubType;
19675
+ };
19676
+ export declare type DatasourceCRM = {
19677
+ name: "crm";
19678
+ subtype: DatasourceCRMSubType;
19679
+ };
19680
+ export declare type DatasourceProduct = {
19681
+ name: "product";
19682
+ subtype: DatasourceProductSubType;
19683
+ };
19684
+ export declare type DatasourceLocation = {
19685
+ name: "location";
19686
+ subtype: DatasourceLocationSubType;
19687
+ };
19688
+ export declare type DatasourceLoop = {
19689
+ name: "loop";
19690
+ subtype: DatasourceLoopSubType;
19691
+ };
19692
+ export declare type InternalResponse_Intersection_bucket_string_path_string_format_Union_type_csv_options_csvDelimiter_Union_undefined_string_csvColumns_Union_undefined_Array_string_type_ndjson_options__type_json_options_rootPath_string_type_xml_options_rootPath_string_type_xlsx_options__type_parquet_options_columnsList_Union_undefined_Array_string_version_Union_undefined_string_type_avro_options__textEncoding_string_PgpDecryptionOptions = {
19693
+ program: string;
19694
+ version: string;
19695
+ datetime: string;
19696
+ status: string;
19697
+ code?: number;
19698
+ message: string;
19699
+ data: {
19700
+ bucket: string;
19701
+ path: string;
19702
+ format: {
19703
+ type: "csv";
19704
+ options: {
19705
+ csvDelimiter?: string;
19706
+ csvColumns?: string[];
19707
+ };
19708
+ } | {
19709
+ type: "ndjson";
19710
+ options: {};
19711
+ } | {
19712
+ type: "json";
19713
+ options: {
19714
+ rootPath: string;
19715
+ };
19716
+ } | {
19717
+ type: "xml";
19718
+ options: {
19719
+ rootPath: string;
19720
+ };
19721
+ } | {
19722
+ type: "xlsx";
19723
+ options: {};
19724
+ } | {
19725
+ type: "parquet";
19726
+ options: {
19727
+ columnsList?: string[];
19728
+ version?: string;
19729
+ };
19730
+ } | {
19731
+ type: "avro";
19732
+ options: {};
19733
+ };
19734
+ textEncoding: string;
19735
+ } & PgpDecryptionOptions;
19736
+ };
19737
+ export declare type InternalResponse_password_string = {
19738
+ program: string;
19739
+ version: string;
19740
+ datetime: string;
19741
+ status: string;
19742
+ code?: number;
19743
+ message: string;
19744
+ data: {
19745
+ password: string;
19746
+ };
19747
+ };
19748
+ export declare type InternalResponse_fields_Array_Intersection_FieldMapPlain_rulesPerSources_Record = {
19749
+ program: string;
19750
+ version: string;
19751
+ datetime: string;
19752
+ status: string;
19753
+ code?: number;
19754
+ message: string;
19755
+ data: {
19756
+ fields: ({
19757
+ name: string;
19758
+ type: FieldMapType;
19759
+ source?: FieldSource;
19760
+ selected: boolean;
19761
+ ignoreIfMissing?: boolean;
19762
+ metadata?: {
19763
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19764
+ };
19765
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19766
+ } & {
19767
+ rulesPerSources: {
19768
+ [key: string]: (({
19769
+ name: "static";
19770
+ params: {
19771
+ value: string | number;
19772
+ };
19773
+ } | {
19774
+ name: "path";
19775
+ params: {
19776
+ value: string;
19777
+ };
19778
+ } | {
19779
+ name: "path";
19780
+ params: {
19781
+ fromRoot: true;
19782
+ value: string;
19783
+ };
19784
+ }) | ({
19785
+ name: "static";
19786
+ params: {
19787
+ value: string | number;
19788
+ };
19789
+ } | {
19790
+ name: "path";
19791
+ params: {
19792
+ value: string;
19793
+ };
19794
+ } | {
19795
+ name: "path";
19796
+ params: {
19797
+ fromRoot: true;
19798
+ value: string;
19799
+ };
19800
+ } | {
19801
+ name: "array_find";
19802
+ params: {
19803
+ key: string;
19804
+ operator: "=" | "!=";
19805
+ value: string | number;
19806
+ };
19807
+ } | {
19808
+ name: "array_find";
19809
+ params: {
19810
+ conditions: Condition[];
19811
+ };
19812
+ } | {
19813
+ name: "array_find";
19814
+ params: {
19815
+ key: string;
19816
+ operator: "=" | "!=";
19817
+ valuePath: string;
19818
+ fromFormatted?: boolean;
19819
+ };
19820
+ } | {
19821
+ name: "array_find";
19822
+ params: {
19823
+ conditions: (Condition_Without_Value & {
19824
+ evaluateValue: string;
19825
+ })[];
19826
+ };
19827
+ } | {
19828
+ name: "fallback";
19829
+ params: FieldMapFallbackRulePayload;
19830
+ } | {
19831
+ name: "fallback";
19832
+ params: FieldMapFallbackRulePayload_Without_Path_FromFormatted & {
19833
+ staticValue: string | number | string[] | number[] | {
19834
+ [key: string]: string;
19835
+ } | {
19836
+ [key: string]: number;
19837
+ };
19838
+ };
19839
+ } | {
19840
+ name: "fallback_if";
19841
+ params: FieldMapFallbackRulePayload & {
19842
+ conditions: (Condition | (Condition_Without_Value & {
19843
+ evaluateValue: string;
19844
+ }))[];
19845
+ };
19846
+ } | {
19847
+ name: "exclude_from_record";
19848
+ params: {
19849
+ keys: string[];
19850
+ };
19851
+ } | {
19852
+ name: "decrypt";
19853
+ params: {
19854
+ passwordPrefixPath?: string;
19855
+ };
19856
+ } | {
19857
+ name: "interpolate";
19858
+ params: {
19859
+ value: string;
19860
+ };
19861
+ } | {
19862
+ name: "custom";
19863
+ params: {
19864
+ value: string;
19865
+ };
19866
+ } | {
19867
+ name: "split";
19868
+ params: {
19869
+ separator: string;
19870
+ };
19871
+ } | {
19872
+ name: "case";
19873
+ params: {
19874
+ cases: {
19875
+ conditions: Condition_Without_Path[];
19876
+ value: string;
19877
+ }[];
19878
+ };
19879
+ } | {
19880
+ name: "hash";
19881
+ params: {
19882
+ algorithm: string;
19883
+ salt?: string;
19884
+ };
19885
+ } | {
19886
+ name: "decipher";
19887
+ params: {
19888
+ algorithm: "aes-128-cbc" | "aes-192-cbc" | "aes-256-cbc" | "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm" | "aes-128-ctr" | "aes-192-ctr" | "aes-256-ctr" | "aes-128-ecb" | "aes-192-ecb" | "aes-256-ecb";
19889
+ key: string;
19890
+ iv?: string;
19891
+ inputEncoding?: "hex" | "base64";
19892
+ };
19893
+ }))[];
19894
+ };
19895
+ })[];
19896
+ };
19897
+ };
19898
+ export declare type CreateSchemaBody = {
19899
+ schema: {
19900
+ name: string;
19901
+ datasourceId: string;
19902
+ columns: {
19903
+ name: string;
19904
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19905
+ nullable: boolean;
19906
+ default?: string | number | (false) | (true) | string;
19907
+ description?: string;
19908
+ }[];
19909
+ description?: string;
19910
+ indexes?: {
19911
+ type: "Index";
19912
+ columns: string[];
19913
+ description?: string;
19914
+ }[];
19915
+ virtualColumns?: {
19916
+ name: string;
19917
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19918
+ query: string;
19919
+ nullable: boolean;
19920
+ description?: string;
19921
+ }[];
19922
+ uniqueKeys?: {
19923
+ type: "UniqueKey";
19924
+ columns: string[];
19925
+ description?: string;
19926
+ }[];
19927
+ relations?: {
19928
+ type: "Relation";
19929
+ columns: string[];
19930
+ reference: {
19931
+ table: string;
19932
+ datasourceId: string;
19933
+ columns: string[];
19934
+ };
19935
+ description?: string;
19936
+ }[];
19937
+ }[];
19938
+ };
19939
+ export declare type SchemaValidationIssue = {
19940
+ path: (string | number)[];
19941
+ message: string;
19942
+ code: string;
19943
+ };
19944
+ export declare type RelationAnalysisResult = {
19945
+ fromDatasourceId: string;
19946
+ fromTable: string;
19947
+ fromColumn: string;
19948
+ fromDistinctCount: number | null;
19949
+ toDatasourceId: string;
19950
+ toTable: string;
19951
+ toColumn: string;
19952
+ toDistinctCount: number | null;
19953
+ matchCount: number | null;
19954
+ matchPercentage: number | null;
19955
+ error?: string;
19956
+ };
19957
+ export declare type ValidateSchemaResponse = {
19958
+ validation: {
19959
+ success: true;
19960
+ data: {
19961
+ name: string;
19962
+ datasourceId: string;
19963
+ columns: {
19964
+ name: string;
19965
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19966
+ nullable: boolean;
19967
+ default?: string | number | (false) | (true) | string;
19968
+ description?: string;
19969
+ }[];
19970
+ description?: string;
19971
+ indexes?: {
19972
+ type: "Index";
19973
+ columns: string[];
19974
+ description?: string;
19975
+ }[];
19976
+ virtualColumns?: {
19977
+ name: string;
19978
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19979
+ query: string;
19980
+ nullable: boolean;
19981
+ description?: string;
19982
+ }[];
19983
+ uniqueKeys?: {
19984
+ type: "UniqueKey";
19985
+ columns: string[];
19986
+ description?: string;
19987
+ }[];
19988
+ relations?: {
19989
+ type: "Relation";
19990
+ columns: string[];
19991
+ reference: {
19992
+ table: string;
19993
+ datasourceId: string;
19994
+ columns: string[];
19995
+ };
19996
+ description?: string;
19997
+ }[];
19998
+ }[];
19999
+ } | {
20000
+ success: false;
20001
+ error: {
20002
+ issues: SchemaValidationIssue[];
20003
+ };
20004
+ };
20005
+ relations: RelationAnalysisResult[];
18590
20006
  };
18591
- export declare type InternalResponse_example_Record = {
20007
+ export declare type InternalResponse_ValidateSchemaResponse = {
18592
20008
  program: string;
18593
20009
  version: string;
18594
20010
  datetime: string;
18595
20011
  status: string;
18596
20012
  code?: number;
18597
20013
  message: string;
18598
- data: {
18599
- example: {
18600
- [key: string]: AnyValue;
18601
- };
18602
- };
20014
+ data: ValidateSchemaResponse;
18603
20015
  };
18604
- export declare type InternalResponse_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
20016
+ export declare type ValidateSchemaBody = {
20017
+ schema: AnyValue;
20018
+ };
20019
+ export declare enum DatagraphSchemaVersionState {
20020
+ DRAFT = "draft",
20021
+ LIVE = "live",
20022
+ INACTIVE = "inactive"
20023
+ }
20024
+ export declare type Serialize_DatagraphSchemaVersion = {
20025
+ readonly companyId: (ObjectId) & readonlyP;
20026
+ readonly state: (DatagraphSchemaVersionState) & readonlyP;
20027
+ readonly definition: ({
20028
+ name: string;
20029
+ datasourceId: string;
20030
+ description?: string;
20031
+ indexes?: {
20032
+ type: "Index";
20033
+ columns: string[];
20034
+ description?: string;
20035
+ }[];
20036
+ columns: {
20037
+ name: string;
20038
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20039
+ default?: string | number | (false) | (true) | string;
20040
+ description?: string;
20041
+ nullable: boolean;
20042
+ }[];
20043
+ virtualColumns?: {
20044
+ name: string;
20045
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20046
+ query: string;
20047
+ nullable: boolean;
20048
+ description?: string;
20049
+ }[];
20050
+ uniqueKeys?: {
20051
+ type: "UniqueKey";
20052
+ columns: string[];
20053
+ description?: string;
20054
+ }[];
20055
+ relations?: {
20056
+ type: "Relation";
20057
+ columns: string[];
20058
+ reference: {
20059
+ table: string;
20060
+ datasourceId: string;
20061
+ columns: string[];
20062
+ };
20063
+ description?: string;
20064
+ }[];
20065
+ }[]) & readonlyP;
20066
+ };
20067
+ export declare type DatagraphSchemaVersion = Serialize_DatagraphSchemaVersion;
20068
+ export declare type InternalResponse_Array_SerializedDatagraphSchema = {
18605
20069
  program: string;
18606
20070
  version: string;
18607
20071
  datetime: string;
18608
20072
  status: string;
18609
20073
  code?: number;
18610
20074
  message: string;
18611
- data: PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource;
20075
+ data: {
20076
+ readonly companyId: (ObjectId) & readonlyP;
20077
+ readonly resourceGroupIds: (ObjectId[]) & readonlyP;
20078
+ archivedAt: string | null;
20079
+ readonly versions: ((ObjectId | (Document & DatagraphSchemaVersion & {
20080
+ _id: ObjectId;
20081
+ } & {
20082
+ __v: number;
20083
+ } & IObjectWithTypegooseFunction))[]) & readonlyP;
20084
+ }[];
18612
20085
  };
18613
- export declare type DatasourcePush = {
18614
- name: "push";
18615
- subtype: "email";
20086
+ export declare type UpdateSchemaBody = {
20087
+ schema: {
20088
+ name: string;
20089
+ datasourceId: string;
20090
+ columns: {
20091
+ name: string;
20092
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20093
+ nullable: boolean;
20094
+ default?: string | number | (false) | (true) | string;
20095
+ description?: string;
20096
+ }[];
20097
+ description?: string;
20098
+ indexes?: {
20099
+ type: "Index";
20100
+ columns: string[];
20101
+ description?: string;
20102
+ }[];
20103
+ virtualColumns?: {
20104
+ name: string;
20105
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20106
+ query: string;
20107
+ nullable: boolean;
20108
+ description?: string;
20109
+ }[];
20110
+ uniqueKeys?: {
20111
+ type: "UniqueKey";
20112
+ columns: string[];
20113
+ description?: string;
20114
+ }[];
20115
+ relations?: {
20116
+ type: "Relation";
20117
+ columns: string[];
20118
+ reference: {
20119
+ table: string;
20120
+ datasourceId: string;
20121
+ columns: string[];
20122
+ };
20123
+ description?: string;
20124
+ }[];
20125
+ }[];
18616
20126
  };
18617
- export declare type DatasourceGeneric = {
18618
- name: "generic";
18619
- subtype: DatasourceGenericSubType;
20127
+ export declare enum DatagraphEntityVersionState {
20128
+ DRAFT = "draft",
20129
+ INACTIVE = "inactive",
20130
+ LIVE = "live"
20131
+ }
20132
+ export declare type EntityParameter = {
20133
+ name: string;
20134
+ shortDescription: string;
20135
+ fullDescription: string | null;
20136
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
20137
+ index: number;
18620
20138
  };
18621
- export declare type DatasourceCRM = {
18622
- name: "crm";
18623
- subtype: DatasourceCRMSubType;
20139
+ export declare type EntityAnswer = {
20140
+ name: string;
20141
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20142
+ };
20143
+ export declare type Entity = {
20144
+ name: string;
20145
+ sql: string | null;
20146
+ options: EntityParameter[];
20147
+ readonly answers: (EntityAnswer[]) & readonlyP;
18624
20148
  };
18625
- export declare type DatasourceProduct = {
18626
- name: "product";
18627
- subtype: DatasourceProductSubType;
20149
+ export declare type DatagraphEntityVersion = {
20150
+ readonly companyId: (ObjectId) & readonlyP;
20151
+ readonly state: (DatagraphEntityVersionState) & readonlyP;
20152
+ readonly definition: (Entity) & readonlyP;
18628
20153
  };
18629
- export declare type DatasourceLocation = {
18630
- name: "location";
18631
- subtype: DatasourceLocationSubType;
20154
+ export declare type Serialize_DatagraphEntity = {
20155
+ readonly companyId: (ObjectId) & readonlyP;
20156
+ readonly resourceGroupIds: (ObjectId[]) & readonlyP;
20157
+ readonly archivedAt: (string | null) & readonlyP;
20158
+ readonly versions: ((ObjectId | (Document & DatagraphEntityVersion & {
20159
+ _id: ObjectId;
20160
+ } & {
20161
+ __v: number;
20162
+ } & IObjectWithTypegooseFunction))[]) & readonlyP;
18632
20163
  };
18633
- export declare enum DatasourceLoopSubType {
18634
- SCORES = "scores",
18635
- MESSAGING_PLAN = "messaging_plan",
18636
- AUDIT = "audit"
18637
- }
18638
- export declare type DatasourceLoop = {
18639
- name: "loop";
18640
- subtype: DatasourceLoopSubType;
20164
+ export declare type DatagraphEntity = Serialize_DatagraphEntity & {
20165
+ readonly id: (string) & readonlyP;
20166
+ } & {
20167
+ readonly createdAt: (string) & readonlyP;
20168
+ readonly updatedAt: (string) & readonlyP;
18641
20169
  };
18642
- export declare type InternalResponse_Intersection_bucket_string_path_string_format_Union_type_csv_options_csvDelimiter_Union_undefined_string_csvColumns_Union_undefined_Array_string_type_ndjson_options__type_json_options_rootPath_string_type_xml_options_rootPath_string_type_xlsx_options__type_parquet_options_columnsList_Union_undefined_Array_string_version_Union_undefined_string_type_avro_options__textEncoding_string_PgpDecryptionOptions = {
20170
+ export declare type InternalResponse_DatagraphEntity = {
18643
20171
  program: string;
18644
20172
  version: string;
18645
20173
  datetime: string;
18646
20174
  status: string;
18647
20175
  code?: number;
18648
20176
  message: string;
18649
- data: {
18650
- bucket: string;
18651
- path: string;
18652
- format: {
18653
- type: "csv";
18654
- options: {
18655
- csvDelimiter?: string;
18656
- csvColumns?: string[];
18657
- };
18658
- } | {
18659
- type: "ndjson";
18660
- options: {};
18661
- } | {
18662
- type: "json";
18663
- options: {
18664
- rootPath: string;
18665
- };
18666
- } | {
18667
- type: "xml";
18668
- options: {
18669
- rootPath: string;
18670
- };
18671
- } | {
18672
- type: "xlsx";
18673
- options: {};
18674
- } | {
18675
- type: "parquet";
18676
- options: {
18677
- columnsList?: string[];
18678
- version?: string;
18679
- };
18680
- } | {
18681
- type: "avro";
18682
- options: {};
18683
- };
18684
- textEncoding: string;
18685
- } & PgpDecryptionOptions;
20177
+ data: DatagraphEntity;
18686
20178
  };
18687
- export declare type InternalResponse_password_string = {
18688
- program: string;
18689
- version: string;
18690
- datetime: string;
18691
- status: string;
18692
- code?: number;
18693
- message: string;
18694
- data: {
18695
- password: string;
18696
- };
20179
+ export declare type DatagraphEntityDefinitionBody = {
20180
+ name: string;
20181
+ sql: string | null;
20182
+ options: EntityParameter[];
18697
20183
  };
18698
- export declare type InternalResponse_fields_Array_Intersection_FieldMapPlain_rulesPerSources_Record = {
20184
+ export declare type CreateEntityBody = {
20185
+ entity: DatagraphEntityDefinitionBody;
20186
+ };
20187
+ export declare type InternalResponse_Array_DatagraphEntity = {
18699
20188
  program: string;
18700
20189
  version: string;
18701
20190
  datetime: string;
18702
20191
  status: string;
18703
20192
  code?: number;
18704
20193
  message: string;
18705
- data: {
18706
- fields: ({
18707
- name: string;
18708
- type: FieldMapType;
18709
- source?: FieldSource;
18710
- selected: boolean;
18711
- ignoreIfMissing?: boolean;
18712
- metadata?: {
18713
- locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
18714
- };
18715
- readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
18716
- } & {
18717
- rulesPerSources: {
18718
- [key: string]: (({
18719
- name: "static";
18720
- params: {
18721
- value: string | number;
18722
- };
18723
- } | {
18724
- name: "path";
18725
- params: {
18726
- value: string;
18727
- };
18728
- } | {
18729
- name: "path";
18730
- params: {
18731
- fromRoot: true;
18732
- value: string;
18733
- };
18734
- }) | ({
18735
- name: "static";
18736
- params: {
18737
- value: string | number;
18738
- };
18739
- } | {
18740
- name: "path";
18741
- params: {
18742
- value: string;
18743
- };
18744
- } | {
18745
- name: "path";
18746
- params: {
18747
- fromRoot: true;
18748
- value: string;
18749
- };
18750
- } | {
18751
- name: "array_find";
18752
- params: {
18753
- key: string;
18754
- operator: "=" | "!=";
18755
- value: string | number;
18756
- };
18757
- } | {
18758
- name: "array_find";
18759
- params: {
18760
- conditions: Condition[];
18761
- };
18762
- } | {
18763
- name: "array_find";
18764
- params: {
18765
- key: string;
18766
- operator: "=" | "!=";
18767
- valuePath: string;
18768
- fromFormatted?: boolean;
18769
- };
18770
- } | {
18771
- name: "array_find";
18772
- params: {
18773
- conditions: (Condition_Without_Value & {
18774
- evaluateValue: string;
18775
- })[];
18776
- };
18777
- } | {
18778
- name: "fallback";
18779
- params: FieldMapFallbackRulePayload;
18780
- } | {
18781
- name: "fallback";
18782
- params: FieldMapFallbackRulePayload_Without_Path_FromFormatted & {
18783
- staticValue: string | number | string[] | number[] | {
18784
- [key: string]: string;
18785
- } | {
18786
- [key: string]: number;
18787
- };
18788
- };
18789
- } | {
18790
- name: "fallback_if";
18791
- params: FieldMapFallbackRulePayload & {
18792
- conditions: (Condition | (Condition_Without_Value & {
18793
- evaluateValue: string;
18794
- }))[];
18795
- };
18796
- } | {
18797
- name: "exclude_from_record";
18798
- params: {
18799
- keys: string[];
18800
- };
18801
- } | {
18802
- name: "decrypt";
18803
- params: {
18804
- passwordPrefixPath?: string;
18805
- };
18806
- } | {
18807
- name: "interpolate";
18808
- params: {
18809
- value: string;
18810
- };
18811
- } | {
18812
- name: "custom";
18813
- params: {
18814
- value: string;
18815
- };
18816
- } | {
18817
- name: "split";
18818
- params: {
18819
- separator: string;
18820
- };
18821
- } | {
18822
- name: "case";
18823
- params: {
18824
- cases: {
18825
- conditions: Condition_Without_Path[];
18826
- value: string;
18827
- }[];
18828
- };
18829
- } | {
18830
- name: "hash";
18831
- params: {
18832
- algorithm: string;
18833
- salt?: string;
18834
- };
18835
- } | {
18836
- name: "decipher";
18837
- params: {
18838
- algorithm: "aes-128-cbc" | "aes-192-cbc" | "aes-256-cbc" | "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm" | "aes-128-ctr" | "aes-192-ctr" | "aes-256-ctr" | "aes-128-ecb" | "aes-192-ecb" | "aes-256-ecb";
18839
- key: string;
18840
- iv?: string;
18841
- inputEncoding?: "hex" | "base64";
18842
- };
18843
- }))[];
18844
- };
18845
- })[];
18846
- };
20194
+ data: DatagraphEntity[];
20195
+ };
20196
+ export declare type UpdateEntityBody = {
20197
+ entity: DatagraphEntityDefinitionBody;
18847
20198
  };
18848
20199
  export declare enum FieldMapRuleName {
18849
20200
  STATIC = "static",
@@ -19558,6 +20909,15 @@ export declare type WorkerSteps = {
19558
20909
  };
19559
20910
  segmentBatchSize?: number;
19560
20911
  sftpPublicKey?: string;
20912
+ } & {
20913
+ destinations?: {
20914
+ type: "bigquery";
20915
+ dataset: string;
20916
+ tableName: string;
20917
+ deduplicateOptions?: {
20918
+ enabled: boolean;
20919
+ };
20920
+ }[];
19561
20921
  };
19562
20922
  } | {
19563
20923
  name: "configure_fetcher";
@@ -20965,6 +22325,15 @@ export declare type IngesterSteps = {
20965
22325
  username: string;
20966
22326
  password: string;
20967
22327
  };
22328
+ } & {
22329
+ destinations?: {
22330
+ type: "bigquery";
22331
+ dataset: string;
22332
+ tableName: string;
22333
+ deduplicateOptions?: {
22334
+ enabled: boolean;
22335
+ };
22336
+ }[];
20968
22337
  };
20969
22338
  } | {
20970
22339
  name: "configure_fetcher";
@@ -21612,6 +22981,18 @@ export declare type PubsubSteps = {
21612
22981
  payload: {
21613
22982
  value: string;
21614
22983
  };
22984
+ } | {
22985
+ name: "patch";
22986
+ payload: {
22987
+ destinations?: {
22988
+ type: "bigquery";
22989
+ dataset: string;
22990
+ tableName: string;
22991
+ deduplicateOptions?: {
22992
+ enabled: boolean;
22993
+ };
22994
+ }[];
22995
+ };
21615
22996
  } | {
21616
22997
  name: "configure_fetcher";
21617
22998
  payload: {
@@ -21785,10 +23166,4 @@ export declare type PushSteps = {
21785
23166
  name: "configure_hierarchy";
21786
23167
  payload: string[];
21787
23168
  };
21788
- export declare enum DatasourceVersionState {
21789
- LIVE = "LIVE",
21790
- DRAFT = "DRAFT",
21791
- SCHEDULED = "SCHEDULED",
21792
- INACTIVE = "INACTIVE"
21793
- }
21794
23169
  export {};