@rlvt/datasources-openapi-client 1.0.405 → 1.0.407

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.
@@ -5139,7 +5139,7 @@ export declare type InternalResponse_url_string = {
5139
5139
  url: string;
5140
5140
  };
5141
5141
  };
5142
- export declare type InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number_count_number = {
5142
+ 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 = {
5143
5143
  program: string;
5144
5144
  version: string;
5145
5145
  datetime: string;
@@ -5147,643 +5147,303 @@ export declare type InternalResponse_entries_Array_distance_Union_undefined_numb
5147
5147
  code?: number;
5148
5148
  message: string;
5149
5149
  data: {
5150
- entries: {
5151
- distance?: number;
5152
- rlvt_lat?: number;
5153
- rlvt_lng?: number;
5154
- [key: string]: AnyValue;
5155
- }[];
5156
- count: number;
5150
+ current: {
5151
+ name: "configure_name";
5152
+ } | {
5153
+ name: "configure_resource_group_ids";
5154
+ } | {
5155
+ name: "configure_sources";
5156
+ } | {
5157
+ name: "configure_fields";
5158
+ } | {
5159
+ name: "configure_field";
5160
+ field: {
5161
+ name: string;
5162
+ type: FieldMapType;
5163
+ };
5164
+ } | {
5165
+ name: "create_oauth_client";
5166
+ configurationId: string;
5167
+ } | {
5168
+ name: "authorize_oauth_client";
5169
+ slug: string;
5170
+ } | {
5171
+ name: "configure_thresholds";
5172
+ } | {
5173
+ name: "configure_api_key";
5174
+ slug: "partoo";
5175
+ } | {
5176
+ name: "patch";
5177
+ } | {
5178
+ name: "validate";
5179
+ } | {
5180
+ name: "configure_google_tag_manager";
5181
+ } | {
5182
+ name: "configure_reelevant_analytics_script";
5183
+ } | {
5184
+ name: "configure_product_datasource_source";
5185
+ } | {
5186
+ name: "configure_tracking_datasource_source";
5187
+ } | {
5188
+ name: "configure_best_product_query";
5189
+ } | {
5190
+ name: "configure_best_product_field";
5191
+ } | {
5192
+ name: "configure_fetcher";
5193
+ } | {
5194
+ name: "configure_merge_datasource_source";
5195
+ } | {
5196
+ name: "configure_merge_datasource_dependency";
5197
+ } | {
5198
+ name: "configure_merge_mapping";
5199
+ } | {
5200
+ name: "configure_bought_together";
5201
+ } | {
5202
+ name: "configure_top_attributes";
5203
+ } | {
5204
+ name: "configure_destination";
5205
+ type: "smtp";
5206
+ } | {
5207
+ name: "configure_hierarchy";
5208
+ };
5209
+ next: ({
5210
+ name: "configure_name";
5211
+ } | {
5212
+ name: "configure_resource_group_ids";
5213
+ } | {
5214
+ name: "configure_sources";
5215
+ } | {
5216
+ name: "configure_fields";
5217
+ } | {
5218
+ name: "configure_field";
5219
+ field: {
5220
+ name: string;
5221
+ type: FieldMapType;
5222
+ };
5223
+ } | {
5224
+ name: "create_oauth_client";
5225
+ configurationId: string;
5226
+ } | {
5227
+ name: "authorize_oauth_client";
5228
+ slug: string;
5229
+ } | {
5230
+ name: "configure_thresholds";
5231
+ } | {
5232
+ name: "configure_api_key";
5233
+ slug: "partoo";
5234
+ } | {
5235
+ name: "patch";
5236
+ } | {
5237
+ name: "validate";
5238
+ } | {
5239
+ name: "configure_google_tag_manager";
5240
+ } | {
5241
+ name: "configure_reelevant_analytics_script";
5242
+ } | {
5243
+ name: "configure_product_datasource_source";
5244
+ } | {
5245
+ name: "configure_tracking_datasource_source";
5246
+ } | {
5247
+ name: "configure_best_product_query";
5248
+ } | {
5249
+ name: "configure_best_product_field";
5250
+ } | {
5251
+ name: "configure_fetcher";
5252
+ } | {
5253
+ name: "configure_merge_datasource_source";
5254
+ } | {
5255
+ name: "configure_merge_datasource_dependency";
5256
+ } | {
5257
+ name: "configure_merge_mapping";
5258
+ } | {
5259
+ name: "configure_bought_together";
5260
+ } | {
5261
+ name: "configure_top_attributes";
5262
+ } | {
5263
+ name: "configure_destination";
5264
+ type: "smtp";
5265
+ } | {
5266
+ name: "configure_hierarchy";
5267
+ })[];
5157
5268
  };
5158
5269
  };
5159
- export declare type EntityParameterAndGroup = {
5160
- $and: {
5161
- [key: string]: string | number | (false) | (true);
5162
- }[];
5270
+ export declare type SampleObj_Partial = {
5271
+ sample?: {
5272
+ [key: string]: AnyValue;
5273
+ };
5163
5274
  };
5164
- export declare type EntityParameterOrGroup = {
5165
- $or: {
5166
- [key: string]: string | number | (false) | (true);
5167
- }[];
5275
+ export declare type DatasourceSourceOptions = {
5276
+ id: string;
5168
5277
  };
5169
- export declare type EntityParameter = {
5170
- name: string;
5171
- shortDescription: string;
5172
- fullDescription: string | null;
5173
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
5174
- index: number;
5175
- optional?: boolean;
5278
+ export declare type BigQuerySourceOptions = {
5279
+ table: string;
5280
+ dataset: string;
5281
+ privateKey?: string;
5282
+ clientEmail?: string;
5283
+ projectId?: string;
5284
+ query?: string;
5285
+ tableProjectId?: string;
5286
+ timestampField?: string;
5287
+ timestampFieldType?: "datetime" | "timestamp";
5288
+ customOAuthClientId?: string;
5289
+ location?: string;
5176
5290
  };
5177
- export declare type DatagraphEntityDefinitionBody = {
5291
+ export declare type QueriableField_With_Name_Enum_Required_Unique = {
5178
5292
  name: string;
5179
- description?: string | null;
5180
- sql: string | null;
5181
- options: EntityParameter[];
5293
+ enum?: (string | number)[];
5294
+ required: boolean;
5295
+ unique: boolean;
5182
5296
  };
5183
- export declare type QueryEntityBody = {
5184
- options?: {
5185
- [key: string]: string | number | (false) | (true);
5297
+ export declare type UrlSourceOptions = {
5298
+ url: string;
5299
+ format?: {
5300
+ type: "csv";
5301
+ options: {
5302
+ csvDelimiter?: string;
5303
+ csvColumns?: string[];
5304
+ };
5186
5305
  } | {
5187
- $or: ({
5188
- [key: string]: string | number | (false) | (true);
5189
- } | EntityParameterAndGroup)[];
5306
+ type: "ndjson";
5307
+ options: {};
5190
5308
  } | {
5191
- $and: ({
5192
- [key: string]: string | number | (false) | (true);
5193
- } | EntityParameterOrGroup)[];
5309
+ type: "json";
5310
+ options: {
5311
+ rootPath: string;
5312
+ };
5313
+ } | {
5314
+ type: "xml";
5315
+ options: {
5316
+ rootPath: string;
5317
+ };
5318
+ } | {
5319
+ type: "xlsx";
5320
+ options: {};
5321
+ } | {
5322
+ type: "parquet";
5323
+ options: {
5324
+ columnsList?: string[];
5325
+ version?: string;
5326
+ };
5327
+ } | {
5328
+ type: "avro";
5329
+ options: {};
5194
5330
  };
5195
- userIds?: string[];
5196
- entity?: DatagraphEntityDefinitionBody;
5197
- };
5198
- export declare type Document = {};
5199
- export declare enum DatagraphEntityVersionState {
5200
- DRAFT = "draft",
5201
- INACTIVE = "inactive",
5202
- LIVE = "live"
5203
- }
5204
- export declare type EntityAnswer = {
5205
- name: string;
5206
- type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "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";
5207
- };
5208
- export declare type Entity = {
5209
- name: string;
5210
- description: string | null;
5211
- sql: string | null;
5212
- options: EntityParameter[];
5213
- readonly answers: (EntityAnswer[]) & readonlyP;
5214
- };
5215
- export declare type DatagraphEntityVersion = {
5216
- readonly companyId: (ObjectId) & readonlyP;
5217
- readonly state: (DatagraphEntityVersionState) & readonlyP;
5218
- readonly definition: (Entity) & readonlyP;
5219
- };
5220
- export declare type IObjectWithTypegooseFunction = {};
5221
- export declare type Serialize_DatagraphEntity = {
5222
- readonly companyId: (ObjectId) & readonlyP;
5223
- readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5224
- readonly versions: ((ObjectId | (Document & DatagraphEntityVersion & {
5225
- _id: ObjectId;
5226
- } & {
5227
- __v: number;
5228
- } & IObjectWithTypegooseFunction))[]) & readonlyP;
5229
- readonly archivedAt: (string | null) & readonlyP;
5230
- };
5231
- export declare type DatagraphEntity = Serialize_DatagraphEntity & {
5232
- readonly id: (string) & readonlyP;
5233
- } & {
5234
- readonly createdAt: (string) & readonlyP;
5235
- readonly updatedAt: (string) & readonlyP;
5236
- };
5237
- export declare type InternalResponse_DatagraphEntity = {
5238
- program: string;
5239
- version: string;
5240
- datetime: string;
5241
- status: string;
5242
- code?: number;
5243
- message: string;
5244
- data: DatagraphEntity;
5245
- };
5246
- export declare type CreateEntityBody = {
5247
- entity: DatagraphEntityDefinitionBody;
5248
- };
5249
- export declare type InternalResponse_Array_DatagraphEntity = {
5250
- program: string;
5251
- version: string;
5252
- datetime: string;
5253
- status: string;
5254
- code?: number;
5255
- message: string;
5256
- data: DatagraphEntity[];
5257
- };
5258
- export declare type UpdateEntityBody = {
5259
- entity: DatagraphEntityDefinitionBody;
5260
- };
5261
- export declare type CreateSchemaBody = {
5262
- schema: {
5263
- name: string;
5264
- datasourceId: string;
5265
- columns: {
5266
- name: string;
5267
- type: FieldMapType;
5268
- default?: string | number | (false) | (true) | string;
5269
- description?: string;
5270
- }[];
5271
- description?: string;
5272
- indexes?: {
5273
- type: "Index";
5274
- columns: string[];
5275
- description?: string;
5276
- }[];
5277
- virtualColumns?: {
5278
- name: string;
5279
- type: FieldMapType;
5280
- query: string;
5281
- description?: string;
5282
- }[];
5283
- uniqueKeys?: {
5284
- type: "UniqueKey";
5285
- columns: string[];
5286
- description?: string;
5287
- }[];
5288
- relations?: {
5289
- type: "Relation";
5290
- columns: string[];
5291
- reference: {
5292
- table: string;
5293
- datasourceId: string;
5294
- columns: string[];
5331
+ textEncoding?: string;
5332
+ pgpPrivateKey?: string;
5333
+ pgpPassphrase?: string;
5334
+ options?: {
5335
+ method?: "GET" | "PATCH" | "POST" | "PUT";
5336
+ body?: string;
5337
+ headers?: {
5338
+ [key: string]: string;
5339
+ };
5340
+ query?: {
5341
+ [key: string]: string | string[];
5342
+ };
5343
+ oauth?: string;
5344
+ timeout?: number;
5345
+ pagination?: ({
5346
+ type: "query" | "body";
5347
+ value: string;
5348
+ startAt?: number;
5349
+ subtype?: "page" | "offset";
5350
+ } & {
5351
+ maximumPage?: number;
5352
+ }) | ({
5353
+ type: "hypermediaAttribute";
5354
+ value: string;
5355
+ } & {
5356
+ maximumPage?: number;
5357
+ }) | ({
5358
+ type: "pageToken";
5359
+ value: string;
5360
+ param: string;
5361
+ removeParams?: boolean;
5362
+ } & {
5363
+ maximumPage?: number;
5364
+ }) | ({
5365
+ type: "linkHeader";
5366
+ } & {
5367
+ maximumPage?: number;
5368
+ }) | ({
5369
+ type: "entryToken";
5370
+ value: string;
5371
+ param: string;
5372
+ removeParams?: boolean;
5373
+ } & {
5374
+ maximumPage?: number;
5375
+ });
5376
+ variables?: (QueriableField_With_Name_Enum_Required_Unique & {
5377
+ default: string | number | string[] | number[] | {
5378
+ value: string;
5379
+ dynamic: true;
5295
5380
  };
5296
- description?: string;
5297
- }[];
5298
- }[];
5381
+ sortable?: boolean;
5382
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
5383
+ })[];
5384
+ };
5299
5385
  };
5300
- export declare type SchemaValidationIssue = {
5301
- path: (string | number)[];
5302
- message: string;
5303
- code: string;
5386
+ export declare type PgpDecryptionOptions = {
5387
+ pgpPrivateKey?: string;
5388
+ pgpPassphrase?: string;
5304
5389
  };
5305
- export declare type RelationAnalysisResult = {
5306
- fromDatasourceId: string;
5307
- fromTable: string;
5308
- fromColumn: string;
5309
- fromDistinctCount: number | null;
5310
- toDatasourceId: string;
5311
- toTable: string;
5312
- toColumn: string;
5313
- toDistinctCount: number | null;
5314
- matchCount: number | null;
5315
- matchPercentage: number | null;
5316
- error?: string;
5390
+ export declare type SnowflakeSourceOptions = {
5391
+ account: string;
5392
+ username: string;
5393
+ password?: string;
5394
+ warehouse: string;
5395
+ privateKey?: string;
5396
+ schema: string;
5397
+ database: string;
5398
+ table: string;
5399
+ query?: string;
5400
+ timestampColumn?: string;
5317
5401
  };
5318
- export declare type ValidateSchemaResponse = {
5319
- validation: {
5320
- success: true;
5321
- data: {
5322
- name: string;
5323
- datasourceId: string;
5324
- columns: {
5325
- name: string;
5326
- type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "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";
5327
- default?: string | number | (false) | (true) | string;
5328
- description?: string;
5329
- }[];
5330
- description?: string;
5331
- indexes?: {
5332
- type: "Index";
5333
- columns: string[];
5334
- description?: string;
5335
- }[];
5336
- virtualColumns?: {
5337
- name: string;
5338
- type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "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";
5339
- query: string;
5340
- description?: string;
5341
- }[];
5342
- uniqueKeys?: {
5343
- type: "UniqueKey";
5344
- columns: string[];
5345
- description?: string;
5346
- }[];
5347
- relations?: {
5348
- type: "Relation";
5349
- columns: string[];
5350
- reference: {
5351
- table: string;
5352
- datasourceId: string;
5353
- columns: string[];
5354
- };
5355
- description?: string;
5356
- }[];
5357
- }[];
5402
+ export declare type KafkaSourceOptions = {
5403
+ brokers: string[];
5404
+ topic: string;
5405
+ groupPrefix?: string;
5406
+ format?: {
5407
+ type: "csv";
5408
+ options: {
5409
+ csvDelimiter?: string;
5410
+ csvColumns?: string[];
5411
+ };
5358
5412
  } | {
5359
- success: false;
5360
- error: {
5361
- issues: SchemaValidationIssue[];
5413
+ type: "ndjson";
5414
+ options: {};
5415
+ } | {
5416
+ type: "json";
5417
+ options: {
5418
+ rootPath: string;
5419
+ };
5420
+ } | {
5421
+ type: "xml";
5422
+ options: {
5423
+ rootPath: string;
5424
+ };
5425
+ } | {
5426
+ type: "xlsx";
5427
+ options: {};
5428
+ } | {
5429
+ type: "parquet";
5430
+ options: {
5431
+ columnsList?: string[];
5432
+ version?: string;
5362
5433
  };
5434
+ } | {
5435
+ type: "avro";
5436
+ options: {};
5437
+ };
5438
+ textEncoding?: string;
5439
+ username?: string;
5440
+ password?: string;
5441
+ ssl?: boolean;
5442
+ registry?: {
5443
+ url: string;
5444
+ username: string;
5445
+ password: string;
5363
5446
  };
5364
- relations: RelationAnalysisResult[];
5365
- };
5366
- export declare type InternalResponse_ValidateSchemaResponse = {
5367
- program: string;
5368
- version: string;
5369
- datetime: string;
5370
- status: string;
5371
- code?: number;
5372
- message: string;
5373
- data: ValidateSchemaResponse;
5374
- };
5375
- export declare type ValidateSchemaBody = {
5376
- schema: AnyValue;
5377
- };
5378
- export declare enum DatagraphSchemaVersionState {
5379
- DRAFT = "draft",
5380
- LIVE = "live",
5381
- INACTIVE = "inactive"
5382
- }
5383
- export declare type Serialize_DatagraphSchemaVersion = {
5384
- readonly companyId: (ObjectId) & readonlyP;
5385
- readonly state: (DatagraphSchemaVersionState) & readonlyP;
5386
- readonly definition: ({
5387
- name: string;
5388
- datasourceId: string;
5389
- description?: string;
5390
- indexes?: {
5391
- type: "Index";
5392
- columns: string[];
5393
- description?: string;
5394
- }[];
5395
- columns: {
5396
- name: string;
5397
- type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "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";
5398
- default?: string | number | (false) | (true) | string;
5399
- description?: string;
5400
- }[];
5401
- virtualColumns?: {
5402
- name: string;
5403
- type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "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";
5404
- query: string;
5405
- description?: string;
5406
- }[];
5407
- uniqueKeys?: {
5408
- type: "UniqueKey";
5409
- columns: string[];
5410
- description?: string;
5411
- }[];
5412
- relations?: {
5413
- type: "Relation";
5414
- columns: string[];
5415
- reference: {
5416
- table: string;
5417
- datasourceId: string;
5418
- columns: string[];
5419
- };
5420
- description?: string;
5421
- }[];
5422
- }[]) & readonlyP;
5423
- };
5424
- export declare type DatagraphSchemaVersion = Serialize_DatagraphSchemaVersion;
5425
- export declare type InternalResponse_Array_SerializedDatagraphSchema = {
5426
- program: string;
5427
- version: string;
5428
- datetime: string;
5429
- status: string;
5430
- code?: number;
5431
- message: string;
5432
- data: {
5433
- readonly companyId: (ObjectId) & readonlyP;
5434
- readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5435
- readonly versions: ((ObjectId | (Document & DatagraphSchemaVersion & {
5436
- _id: ObjectId;
5437
- } & {
5438
- __v: number;
5439
- } & IObjectWithTypegooseFunction))[]) & readonlyP;
5440
- archivedAt: string | null;
5441
- }[];
5442
- };
5443
- export declare type UpdateSchemaBody = {
5444
- schema: {
5445
- name: string;
5446
- datasourceId: string;
5447
- columns: {
5448
- name: string;
5449
- type: FieldMapType;
5450
- default?: string | number | (false) | (true) | string;
5451
- description?: string;
5452
- }[];
5453
- description?: string;
5454
- indexes?: {
5455
- type: "Index";
5456
- columns: string[];
5457
- description?: string;
5458
- }[];
5459
- virtualColumns?: {
5460
- name: string;
5461
- type: FieldMapType;
5462
- query: string;
5463
- description?: string;
5464
- }[];
5465
- uniqueKeys?: {
5466
- type: "UniqueKey";
5467
- columns: string[];
5468
- description?: string;
5469
- }[];
5470
- relations?: {
5471
- type: "Relation";
5472
- columns: string[];
5473
- reference: {
5474
- table: string;
5475
- datasourceId: string;
5476
- columns: string[];
5477
- };
5478
- description?: string;
5479
- }[];
5480
- }[];
5481
- };
5482
- 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 = {
5483
- program: string;
5484
- version: string;
5485
- datetime: string;
5486
- status: string;
5487
- code?: number;
5488
- message: string;
5489
- data: {
5490
- current: {
5491
- name: "configure_name";
5492
- } | {
5493
- name: "configure_resource_group_ids";
5494
- } | {
5495
- name: "configure_sources";
5496
- } | {
5497
- name: "configure_fields";
5498
- } | {
5499
- name: "configure_field";
5500
- field: {
5501
- name: string;
5502
- type: FieldMapType;
5503
- };
5504
- } | {
5505
- name: "create_oauth_client";
5506
- configurationId: string;
5507
- } | {
5508
- name: "authorize_oauth_client";
5509
- slug: string;
5510
- } | {
5511
- name: "configure_thresholds";
5512
- } | {
5513
- name: "configure_api_key";
5514
- slug: "partoo";
5515
- } | {
5516
- name: "patch";
5517
- } | {
5518
- name: "validate";
5519
- } | {
5520
- name: "configure_google_tag_manager";
5521
- } | {
5522
- name: "configure_reelevant_analytics_script";
5523
- } | {
5524
- name: "configure_product_datasource_source";
5525
- } | {
5526
- name: "configure_tracking_datasource_source";
5527
- } | {
5528
- name: "configure_best_product_query";
5529
- } | {
5530
- name: "configure_best_product_field";
5531
- } | {
5532
- name: "configure_fetcher";
5533
- } | {
5534
- name: "configure_merge_datasource_source";
5535
- } | {
5536
- name: "configure_merge_datasource_dependency";
5537
- } | {
5538
- name: "configure_merge_mapping";
5539
- } | {
5540
- name: "configure_bought_together";
5541
- } | {
5542
- name: "configure_top_attributes";
5543
- } | {
5544
- name: "configure_destination";
5545
- type: "smtp";
5546
- } | {
5547
- name: "configure_hierarchy";
5548
- };
5549
- next: ({
5550
- name: "configure_name";
5551
- } | {
5552
- name: "configure_resource_group_ids";
5553
- } | {
5554
- name: "configure_sources";
5555
- } | {
5556
- name: "configure_fields";
5557
- } | {
5558
- name: "configure_field";
5559
- field: {
5560
- name: string;
5561
- type: FieldMapType;
5562
- };
5563
- } | {
5564
- name: "create_oauth_client";
5565
- configurationId: string;
5566
- } | {
5567
- name: "authorize_oauth_client";
5568
- slug: string;
5569
- } | {
5570
- name: "configure_thresholds";
5571
- } | {
5572
- name: "configure_api_key";
5573
- slug: "partoo";
5574
- } | {
5575
- name: "patch";
5576
- } | {
5577
- name: "validate";
5578
- } | {
5579
- name: "configure_google_tag_manager";
5580
- } | {
5581
- name: "configure_reelevant_analytics_script";
5582
- } | {
5583
- name: "configure_product_datasource_source";
5584
- } | {
5585
- name: "configure_tracking_datasource_source";
5586
- } | {
5587
- name: "configure_best_product_query";
5588
- } | {
5589
- name: "configure_best_product_field";
5590
- } | {
5591
- name: "configure_fetcher";
5592
- } | {
5593
- name: "configure_merge_datasource_source";
5594
- } | {
5595
- name: "configure_merge_datasource_dependency";
5596
- } | {
5597
- name: "configure_merge_mapping";
5598
- } | {
5599
- name: "configure_bought_together";
5600
- } | {
5601
- name: "configure_top_attributes";
5602
- } | {
5603
- name: "configure_destination";
5604
- type: "smtp";
5605
- } | {
5606
- name: "configure_hierarchy";
5607
- })[];
5608
- };
5609
- };
5610
- export declare type SampleObj_Partial = {
5611
- sample?: {
5612
- [key: string]: AnyValue;
5613
- };
5614
- };
5615
- export declare type DatasourceSourceOptions = {
5616
- id: string;
5617
- };
5618
- export declare type BigQuerySourceOptions = {
5619
- table: string;
5620
- dataset: string;
5621
- privateKey?: string;
5622
- clientEmail?: string;
5623
- projectId?: string;
5624
- query?: string;
5625
- tableProjectId?: string;
5626
- timestampField?: string;
5627
- timestampFieldType?: "datetime" | "timestamp";
5628
- customOAuthClientId?: string;
5629
- location?: string;
5630
- };
5631
- export declare type QueriableField_With_Name_Enum_Required_Unique = {
5632
- name: string;
5633
- enum?: (string | number)[];
5634
- required: boolean;
5635
- unique: boolean;
5636
- };
5637
- export declare type UrlSourceOptions = {
5638
- url: string;
5639
- format?: {
5640
- type: "csv";
5641
- options: {
5642
- csvDelimiter?: string;
5643
- csvColumns?: string[];
5644
- };
5645
- } | {
5646
- type: "ndjson";
5647
- options: {};
5648
- } | {
5649
- type: "json";
5650
- options: {
5651
- rootPath: string;
5652
- };
5653
- } | {
5654
- type: "xml";
5655
- options: {
5656
- rootPath: string;
5657
- };
5658
- } | {
5659
- type: "xlsx";
5660
- options: {};
5661
- } | {
5662
- type: "parquet";
5663
- options: {
5664
- columnsList?: string[];
5665
- version?: string;
5666
- };
5667
- } | {
5668
- type: "avro";
5669
- options: {};
5670
- };
5671
- textEncoding?: string;
5672
- pgpPrivateKey?: string;
5673
- pgpPassphrase?: string;
5674
- options?: {
5675
- method?: "GET" | "PATCH" | "POST" | "PUT";
5676
- body?: string;
5677
- headers?: {
5678
- [key: string]: string;
5679
- };
5680
- query?: {
5681
- [key: string]: string | string[];
5682
- };
5683
- oauth?: string;
5684
- timeout?: number;
5685
- pagination?: ({
5686
- type: "query" | "body";
5687
- value: string;
5688
- startAt?: number;
5689
- subtype?: "page" | "offset";
5690
- } & {
5691
- maximumPage?: number;
5692
- }) | ({
5693
- type: "hypermediaAttribute";
5694
- value: string;
5695
- } & {
5696
- maximumPage?: number;
5697
- }) | ({
5698
- type: "pageToken";
5699
- value: string;
5700
- param: string;
5701
- removeParams?: boolean;
5702
- } & {
5703
- maximumPage?: number;
5704
- }) | ({
5705
- type: "linkHeader";
5706
- } & {
5707
- maximumPage?: number;
5708
- }) | ({
5709
- type: "entryToken";
5710
- value: string;
5711
- param: string;
5712
- removeParams?: boolean;
5713
- } & {
5714
- maximumPage?: number;
5715
- });
5716
- variables?: (QueriableField_With_Name_Enum_Required_Unique & {
5717
- default: string | number | string[] | number[] | {
5718
- value: string;
5719
- dynamic: true;
5720
- };
5721
- sortable?: boolean;
5722
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
5723
- })[];
5724
- };
5725
- };
5726
- export declare type PgpDecryptionOptions = {
5727
- pgpPrivateKey?: string;
5728
- pgpPassphrase?: string;
5729
- };
5730
- export declare type SnowflakeSourceOptions = {
5731
- account: string;
5732
- username: string;
5733
- password?: string;
5734
- warehouse: string;
5735
- privateKey?: string;
5736
- schema: string;
5737
- database: string;
5738
- table: string;
5739
- query?: string;
5740
- timestampColumn?: string;
5741
- };
5742
- export declare type KafkaSourceOptions = {
5743
- brokers: string[];
5744
- topic: string;
5745
- groupPrefix?: string;
5746
- format?: {
5747
- type: "csv";
5748
- options: {
5749
- csvDelimiter?: string;
5750
- csvColumns?: string[];
5751
- };
5752
- } | {
5753
- type: "ndjson";
5754
- options: {};
5755
- } | {
5756
- type: "json";
5757
- options: {
5758
- rootPath: string;
5759
- };
5760
- } | {
5761
- type: "xml";
5762
- options: {
5763
- rootPath: string;
5764
- };
5765
- } | {
5766
- type: "xlsx";
5767
- options: {};
5768
- } | {
5769
- type: "parquet";
5770
- options: {
5771
- columnsList?: string[];
5772
- version?: string;
5773
- };
5774
- } | {
5775
- type: "avro";
5776
- options: {};
5777
- };
5778
- textEncoding?: string;
5779
- username?: string;
5780
- password?: string;
5781
- ssl?: boolean;
5782
- registry?: {
5783
- url: string;
5784
- username: string;
5785
- password: string;
5786
- };
5787
5447
  };
5788
5448
  export declare type SourceInput_Without_FieldsRules = {
5789
5449
  filter?: {
@@ -18690,7 +18350,9 @@ export declare type InternalResponse_DatasourceSettings = {
18690
18350
  message: string;
18691
18351
  data: DatasourceSettings;
18692
18352
  };
18353
+ export declare type Document = {};
18693
18354
  export declare type LogLevel = 0 | 1 | 2;
18355
+ export declare type IObjectWithTypegooseFunction = {};
18694
18356
  export declare type InternalResponse_Array_Intersection_Document_Omit_IObjectWithTypegooseFunction = {
18695
18357
  program: string;
18696
18358
  version: string;
@@ -18848,14 +18510,249 @@ export declare type DatasourceVersion = {
18848
18510
  } & {
18849
18511
  readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
18850
18512
  };
18851
- export declare enum DatasourceStatus {
18852
- DRAFT = "draft",
18853
- PUBLISHED = "published",
18854
- UPDATING = "updating",
18855
- PAUSED = "paused",
18856
- ERROR = "error"
18857
- }
18858
- export declare type Serialize_PushDatasource = {
18513
+ export declare enum DatasourceStatus {
18514
+ DRAFT = "draft",
18515
+ PUBLISHED = "published",
18516
+ UPDATING = "updating",
18517
+ PAUSED = "paused",
18518
+ ERROR = "error"
18519
+ }
18520
+ export declare type Serialize_PushDatasource = {
18521
+ name: string;
18522
+ hidden: boolean;
18523
+ readonly template?: (ObjectId | null) & readonlyP;
18524
+ readonly fetcher: ({
18525
+ name: DatasourceFetcherName;
18526
+ params: {};
18527
+ } | {
18528
+ name: "fdj-bets";
18529
+ params: {};
18530
+ } | {
18531
+ name: "renault-prices";
18532
+ params: {};
18533
+ } | {
18534
+ name: "decathlon-product-fallback";
18535
+ params: {};
18536
+ } | {
18537
+ name: "generic-unwind-rows";
18538
+ params: {
18539
+ source: string;
18540
+ destination: string;
18541
+ columnDestination: string;
18542
+ valueType: string;
18543
+ };
18544
+ } | {
18545
+ name: "workflow-events";
18546
+ params: {};
18547
+ } | {
18548
+ name: "expired-product-lifetime";
18549
+ params: {
18550
+ purchaseDatasourceId: string;
18551
+ purchaseQuery: string;
18552
+ purchaseReferenceIdField: string;
18553
+ purchaseTimestampField: string;
18554
+ purchaseClientField: string;
18555
+ temporalities?: {
18556
+ maxLifetime: number;
18557
+ windowStart: number;
18558
+ windowEnd: number;
18559
+ minPurchaseCount?: number;
18560
+ }[];
18561
+ };
18562
+ } | {
18563
+ name: "product-exclusion";
18564
+ params: {
18565
+ mode: "inclusion" | "exclusion";
18566
+ exclusionDatasourceId: string;
18567
+ exclusionIdField: string;
18568
+ productIdField: string;
18569
+ };
18570
+ } | {
18571
+ name: "per-user";
18572
+ params: {};
18573
+ } | {
18574
+ name: "generic-proxy-lock";
18575
+ params: {
18576
+ ttl: number;
18577
+ };
18578
+ } | {
18579
+ name: "generic-proxy-aggregation";
18580
+ params: {
18581
+ targetField: string;
18582
+ aggregationType: "sum" | "avg" | "min" | "max";
18583
+ outputField: string;
18584
+ };
18585
+ }) & readonlyP;
18586
+ storageOptions: {
18587
+ destinations: {
18588
+ type: "bigquery";
18589
+ dataset: string;
18590
+ tableName: string;
18591
+ deduplicateOptions?: {
18592
+ enabled: boolean;
18593
+ };
18594
+ }[];
18595
+ partitionCount: number;
18596
+ segments: {
18597
+ offlineSize: number;
18598
+ offlineReplication: number;
18599
+ realtimeSize: number;
18600
+ realtimeReplication: number;
18601
+ };
18602
+ retention?: {
18603
+ value: number;
18604
+ unit: "DAYS";
18605
+ };
18606
+ };
18607
+ mode: "push";
18608
+ companyId: ObjectId;
18609
+ resourceGroupIds: ObjectId[];
18610
+ readonly configurationUpdatedAt: (string) & readonlyP;
18611
+ readonly archivedAt: (string | null) & readonlyP;
18612
+ versions: (ObjectId | (Document & DatasourceVersion & {
18613
+ _id: ObjectId;
18614
+ } & {
18615
+ __v: number;
18616
+ } & IObjectWithTypegooseFunction))[];
18617
+ status: DatasourceStatus;
18618
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
18619
+ readonly lastFailedIngestion?: (string) & readonlyP;
18620
+ readonly lastFailureReason?: (string) & readonlyP;
18621
+ hierarchy: string[];
18622
+ readonly hasWarnings: (boolean) & readonlyP;
18623
+ };
18624
+ export declare type PushDatasource = Serialize_PushDatasource & {
18625
+ readonly id: (string) & readonlyP;
18626
+ } & {
18627
+ readonly createdAt: (string) & readonlyP;
18628
+ readonly updatedAt: (string) & readonlyP;
18629
+ };
18630
+ export declare type WorkerDatasourceVersion = {
18631
+ readonly id: (string) & readonlyP;
18632
+ type: {
18633
+ name: "analytics";
18634
+ options: {
18635
+ autoExclusions?: boolean;
18636
+ noStats?: boolean;
18637
+ };
18638
+ subtype: "purchases";
18639
+ } | {
18640
+ name: "generic";
18641
+ subtype: DatasourceGenericSubType;
18642
+ } | {
18643
+ name: "crm";
18644
+ subtype: DatasourceCRMSubType;
18645
+ } | {
18646
+ name: "product";
18647
+ subtype: DatasourceProductSubType;
18648
+ } | {
18649
+ name: "location";
18650
+ subtype: DatasourceLocationSubType;
18651
+ } | {
18652
+ name: "analytics";
18653
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
18654
+ } | {
18655
+ name: "push";
18656
+ subtype: "email";
18657
+ } | {
18658
+ name: "loop";
18659
+ subtype: DatasourceLoopSubType;
18660
+ };
18661
+ fieldsMap: {
18662
+ name: string;
18663
+ type: FieldMapType;
18664
+ source?: FieldSource;
18665
+ selected: boolean;
18666
+ ignoreIfMissing?: boolean;
18667
+ metadata?: {
18668
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
18669
+ };
18670
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
18671
+ }[];
18672
+ mode: DatasourceMode;
18673
+ readonly state: (DatasourceVersionState) & readonlyP;
18674
+ readonly pendingSteps?: (({
18675
+ name: "configure_name";
18676
+ } | {
18677
+ name: "configure_resource_group_ids";
18678
+ } | {
18679
+ name: "configure_sources";
18680
+ } | {
18681
+ name: "configure_fields";
18682
+ } | {
18683
+ name: "configure_field";
18684
+ field: {
18685
+ name: string;
18686
+ type: FieldMapType;
18687
+ };
18688
+ } | {
18689
+ name: "create_oauth_client";
18690
+ configurationId: string;
18691
+ } | {
18692
+ name: "authorize_oauth_client";
18693
+ slug: string;
18694
+ } | {
18695
+ name: "configure_thresholds";
18696
+ } | {
18697
+ name: "configure_api_key";
18698
+ slug: "partoo";
18699
+ } | {
18700
+ name: "patch";
18701
+ } | {
18702
+ name: "validate";
18703
+ } | {
18704
+ name: "configure_google_tag_manager";
18705
+ } | {
18706
+ name: "configure_reelevant_analytics_script";
18707
+ } | {
18708
+ name: "configure_product_datasource_source";
18709
+ } | {
18710
+ name: "configure_tracking_datasource_source";
18711
+ } | {
18712
+ name: "configure_best_product_query";
18713
+ } | {
18714
+ name: "configure_best_product_field";
18715
+ } | {
18716
+ name: "configure_fetcher";
18717
+ } | {
18718
+ name: "configure_merge_datasource_source";
18719
+ } | {
18720
+ name: "configure_merge_datasource_dependency";
18721
+ } | {
18722
+ name: "configure_merge_mapping";
18723
+ } | {
18724
+ name: "configure_bought_together";
18725
+ } | {
18726
+ name: "configure_top_attributes";
18727
+ } | {
18728
+ name: "configure_destination";
18729
+ type: "smtp";
18730
+ } | {
18731
+ name: "configure_hierarchy";
18732
+ } | {
18733
+ name: "google_my_business_set_url";
18734
+ urls: {
18735
+ getAccount: string;
18736
+ final: string;
18737
+ };
18738
+ } | {
18739
+ name: "setup_instagram";
18740
+ urls: {
18741
+ getAccount: string;
18742
+ getAccountInfos: string;
18743
+ final: string;
18744
+ };
18745
+ })[]) & readonlyP;
18746
+ 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;
18747
+ readonly requiredFieldsTypes: ({
18748
+ [key: string]: FieldMapType;
18749
+ }[]) & readonlyP;
18750
+ 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;
18751
+ 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;
18752
+ } & {
18753
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
18754
+ };
18755
+ export declare type Serialize_WorkerDatasource = {
18859
18756
  name: string;
18860
18757
  hidden: boolean;
18861
18758
  readonly template?: (ObjectId | null) & readonlyP;
@@ -18930,42 +18827,55 @@ export declare type Serialize_PushDatasource = {
18930
18827
  enabled: boolean;
18931
18828
  };
18932
18829
  }[];
18933
- partitionCount: number;
18934
- segments: {
18935
- offlineSize: number;
18936
- offlineReplication: number;
18937
- realtimeSize: number;
18938
- realtimeReplication: number;
18939
- };
18940
- retention?: {
18941
- value: number;
18942
- unit: "DAYS";
18943
- };
18944
18830
  };
18945
- mode: "push";
18831
+ mode: "worker";
18946
18832
  companyId: ObjectId;
18947
18833
  resourceGroupIds: ObjectId[];
18948
- versions: (ObjectId | (Document & DatasourceVersion & {
18834
+ readonly configurationUpdatedAt: (string) & readonlyP;
18835
+ readonly archivedAt: (string | null) & readonlyP;
18836
+ versions: (ObjectId | (Document & WorkerDatasourceVersion & {
18949
18837
  _id: ObjectId;
18950
18838
  } & {
18951
18839
  __v: number;
18952
18840
  } & IObjectWithTypegooseFunction))[];
18953
- readonly archivedAt: (string | null) & readonlyP;
18954
18841
  status: DatasourceStatus;
18955
- readonly configurationUpdatedAt: (string) & readonlyP;
18956
18842
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
18957
18843
  readonly lastFailedIngestion?: (string) & readonlyP;
18958
18844
  readonly lastFailureReason?: (string) & readonlyP;
18959
18845
  hierarchy: string[];
18960
18846
  readonly hasWarnings: (boolean) & readonlyP;
18847
+ readonly contentVersion: (number) & readonlyP;
18848
+ thresholds: {
18849
+ type: "too_many_invalid_entries";
18850
+ value: number;
18851
+ trigger: {
18852
+ type: "error";
18853
+ value: "too_many_invalid_entries";
18854
+ };
18855
+ }[] | {
18856
+ type: "entries_drop_rate_too_high";
18857
+ value: number;
18858
+ trigger: {
18859
+ type: "warning";
18860
+ value: "entries_drop_rate_too_high";
18861
+ } | {
18862
+ type: "error";
18863
+ value: "entries_drop_rate_too_high";
18864
+ };
18865
+ }[];
18866
+ attempts?: number;
18867
+ readonly lastRunAt: (string | null) & readonlyP;
18868
+ readonly currentLiveVersion: (ObjectId | null) & readonlyP;
18869
+ readonly pausedAt: (string | null) & readonlyP;
18870
+ readonly isPaused: (boolean) & readonlyP;
18961
18871
  };
18962
- export declare type PushDatasource = Serialize_PushDatasource & {
18872
+ export declare type WorkerDatasource = Serialize_WorkerDatasource & {
18963
18873
  readonly id: (string) & readonlyP;
18964
18874
  } & {
18965
18875
  readonly createdAt: (string) & readonlyP;
18966
18876
  readonly updatedAt: (string) & readonlyP;
18967
18877
  };
18968
- export declare type WorkerDatasourceVersion = {
18878
+ export declare type ProxyDatasourceVersion = {
18969
18879
  readonly id: (string) & readonlyP;
18970
18880
  type: {
18971
18881
  name: "analytics";
@@ -19090,7 +19000,7 @@ export declare type WorkerDatasourceVersion = {
19090
19000
  } & {
19091
19001
  readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19092
19002
  };
19093
- export declare type Serialize_WorkerDatasource = {
19003
+ export declare type Serialize_ProxyDatasource = {
19094
19004
  name: string;
19095
19005
  hidden: boolean;
19096
19006
  readonly template?: (ObjectId | null) & readonlyP;
@@ -19156,64 +19066,30 @@ export declare type Serialize_WorkerDatasource = {
19156
19066
  outputField: string;
19157
19067
  };
19158
19068
  }) & readonlyP;
19159
- storageOptions: {
19160
- destinations: {
19161
- type: "bigquery";
19162
- dataset: string;
19163
- tableName: string;
19164
- deduplicateOptions?: {
19165
- enabled: boolean;
19166
- };
19167
- }[];
19168
- };
19169
- mode: "worker";
19069
+ mode: "proxy";
19170
19070
  companyId: ObjectId;
19171
19071
  resourceGroupIds: ObjectId[];
19172
- versions: (ObjectId | (Document & WorkerDatasourceVersion & {
19072
+ readonly configurationUpdatedAt: (string) & readonlyP;
19073
+ readonly archivedAt: (string | null) & readonlyP;
19074
+ versions: (ObjectId | (Document & ProxyDatasourceVersion & {
19173
19075
  _id: ObjectId;
19174
19076
  } & {
19175
19077
  __v: number;
19176
19078
  } & IObjectWithTypegooseFunction))[];
19177
- readonly archivedAt: (string | null) & readonlyP;
19178
19079
  status: DatasourceStatus;
19179
- readonly configurationUpdatedAt: (string) & readonlyP;
19180
19080
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
19181
19081
  readonly lastFailedIngestion?: (string) & readonlyP;
19182
19082
  readonly lastFailureReason?: (string) & readonlyP;
19183
19083
  hierarchy: string[];
19184
19084
  readonly hasWarnings: (boolean) & readonlyP;
19185
- readonly contentVersion: (number) & readonlyP;
19186
- thresholds: {
19187
- type: "too_many_invalid_entries";
19188
- value: number;
19189
- trigger: {
19190
- type: "error";
19191
- value: "too_many_invalid_entries";
19192
- };
19193
- }[] | {
19194
- type: "entries_drop_rate_too_high";
19195
- value: number;
19196
- trigger: {
19197
- type: "warning";
19198
- value: "entries_drop_rate_too_high";
19199
- } | {
19200
- type: "error";
19201
- value: "entries_drop_rate_too_high";
19202
- };
19203
- }[];
19204
- attempts?: number;
19205
- readonly lastRunAt: (string | null) & readonlyP;
19206
- readonly currentLiveVersion: (ObjectId | null) & readonlyP;
19207
- readonly pausedAt: (string | null) & readonlyP;
19208
- readonly isPaused: (boolean) & readonlyP;
19209
19085
  };
19210
- export declare type WorkerDatasource = Serialize_WorkerDatasource & {
19086
+ export declare type ProxyDatasource = Serialize_ProxyDatasource & {
19211
19087
  readonly id: (string) & readonlyP;
19212
19088
  } & {
19213
19089
  readonly createdAt: (string) & readonlyP;
19214
19090
  readonly updatedAt: (string) & readonlyP;
19215
19091
  };
19216
- export declare type ProxyDatasourceVersion = {
19092
+ export declare type IngesterDatasourceVersion = {
19217
19093
  readonly id: (string) & readonlyP;
19218
19094
  type: {
19219
19095
  name: "analytics";
@@ -19338,7 +19214,7 @@ export declare type ProxyDatasourceVersion = {
19338
19214
  } & {
19339
19215
  readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19340
19216
  };
19341
- export declare type Serialize_ProxyDatasource = {
19217
+ export declare type Serialize_IngesterDatasource = {
19342
19218
  name: string;
19343
19219
  hidden: boolean;
19344
19220
  readonly template?: (ObjectId | null) & readonlyP;
@@ -19404,30 +19280,51 @@ export declare type Serialize_ProxyDatasource = {
19404
19280
  outputField: string;
19405
19281
  };
19406
19282
  }) & readonlyP;
19407
- mode: "proxy";
19283
+ storageOptions: {
19284
+ destinations: {
19285
+ type: "bigquery";
19286
+ dataset: string;
19287
+ tableName: string;
19288
+ deduplicateOptions?: {
19289
+ enabled: boolean;
19290
+ };
19291
+ }[];
19292
+ partitionCount: number;
19293
+ segments: {
19294
+ offlineSize: number;
19295
+ offlineReplication: number;
19296
+ realtimeSize: number;
19297
+ realtimeReplication: number;
19298
+ };
19299
+ retention?: {
19300
+ value: number;
19301
+ unit: "DAYS";
19302
+ };
19303
+ };
19304
+ mode: "ingester";
19408
19305
  companyId: ObjectId;
19409
19306
  resourceGroupIds: ObjectId[];
19410
- versions: (ObjectId | (Document & ProxyDatasourceVersion & {
19307
+ readonly configurationUpdatedAt: (string) & readonlyP;
19308
+ readonly archivedAt: (string | null) & readonlyP;
19309
+ versions: (ObjectId | (Document & IngesterDatasourceVersion & {
19411
19310
  _id: ObjectId;
19412
19311
  } & {
19413
19312
  __v: number;
19414
19313
  } & IObjectWithTypegooseFunction))[];
19415
- readonly archivedAt: (string | null) & readonlyP;
19416
19314
  status: DatasourceStatus;
19417
- readonly configurationUpdatedAt: (string) & readonlyP;
19418
19315
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
19419
19316
  readonly lastFailedIngestion?: (string) & readonlyP;
19420
19317
  readonly lastFailureReason?: (string) & readonlyP;
19421
19318
  hierarchy: string[];
19422
19319
  readonly hasWarnings: (boolean) & readonlyP;
19423
19320
  };
19424
- export declare type ProxyDatasource = Serialize_ProxyDatasource & {
19321
+ export declare type IngesterDatasource = Serialize_IngesterDatasource & {
19425
19322
  readonly id: (string) & readonlyP;
19426
19323
  } & {
19427
19324
  readonly createdAt: (string) & readonlyP;
19428
19325
  readonly updatedAt: (string) & readonlyP;
19429
19326
  };
19430
- export declare type IngesterDatasourceVersion = {
19327
+ export declare type PubsubDatasourceVersion = {
19431
19328
  readonly id: (string) & readonlyP;
19432
19329
  type: {
19433
19330
  name: "analytics";
@@ -19552,7 +19449,7 @@ export declare type IngesterDatasourceVersion = {
19552
19449
  } & {
19553
19450
  readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19554
19451
  };
19555
- export declare type Serialize_IngesterDatasource = {
19452
+ export declare type Serialize_PubsubDatasource = {
19556
19453
  name: string;
19557
19454
  hidden: boolean;
19558
19455
  readonly template?: (ObjectId | null) & readonlyP;
@@ -19639,320 +19536,569 @@ export declare type Serialize_IngesterDatasource = {
19639
19536
  unit: "DAYS";
19640
19537
  };
19641
19538
  };
19642
- mode: "ingester";
19643
- companyId: ObjectId;
19644
- resourceGroupIds: ObjectId[];
19645
- versions: (ObjectId | (Document & IngesterDatasourceVersion & {
19646
- _id: ObjectId;
19647
- } & {
19648
- __v: number;
19649
- } & IObjectWithTypegooseFunction))[];
19650
- readonly archivedAt: (string | null) & readonlyP;
19651
- status: DatasourceStatus;
19652
- readonly configurationUpdatedAt: (string) & readonlyP;
19653
- readonly lastSuccessfulIngestion?: (string) & readonlyP;
19654
- readonly lastFailedIngestion?: (string) & readonlyP;
19655
- readonly lastFailureReason?: (string) & readonlyP;
19656
- hierarchy: string[];
19657
- readonly hasWarnings: (boolean) & readonlyP;
19539
+ mode: "pubsub";
19540
+ companyId: ObjectId;
19541
+ resourceGroupIds: ObjectId[];
19542
+ readonly configurationUpdatedAt: (string) & readonlyP;
19543
+ readonly archivedAt: (string | null) & readonlyP;
19544
+ versions: (ObjectId | (Document & PubsubDatasourceVersion & {
19545
+ _id: ObjectId;
19546
+ } & {
19547
+ __v: number;
19548
+ } & IObjectWithTypegooseFunction))[];
19549
+ status: DatasourceStatus;
19550
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
19551
+ readonly lastFailedIngestion?: (string) & readonlyP;
19552
+ readonly lastFailureReason?: (string) & readonlyP;
19553
+ hierarchy: string[];
19554
+ readonly hasWarnings: (boolean) & readonlyP;
19555
+ };
19556
+ export declare type PubsubDatasource = Serialize_PubsubDatasource & {
19557
+ readonly id: (string) & readonlyP;
19558
+ } & {
19559
+ readonly createdAt: (string) & readonlyP;
19560
+ readonly updatedAt: (string) & readonlyP;
19561
+ };
19562
+ export declare type InternalResponse_Array_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19563
+ program: string;
19564
+ version: string;
19565
+ datetime: string;
19566
+ status: string;
19567
+ code?: number;
19568
+ message: string;
19569
+ data: (PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource)[];
19570
+ };
19571
+ export declare type FieldMap_With_Name_Type_Primitive = {
19572
+ name: string;
19573
+ type: FieldMapType;
19574
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19575
+ };
19576
+ export declare type QueriableField = FieldMap_With_Name_Type_Primitive & {
19577
+ required: boolean;
19578
+ unique: boolean;
19579
+ sortable: boolean;
19580
+ enum?: (string | number)[];
19581
+ 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"))[];
19582
+ };
19583
+ 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 = {
19584
+ program: string;
19585
+ version: string;
19586
+ datetime: string;
19587
+ status: string;
19588
+ code?: number;
19589
+ message: string;
19590
+ data: (PushDatasource & {
19591
+ example?: {
19592
+ [key: string]: AnyValue;
19593
+ };
19594
+ queriableFields?: QueriableField[];
19595
+ }) | (WorkerDatasource & {
19596
+ example?: {
19597
+ [key: string]: AnyValue;
19598
+ };
19599
+ queriableFields?: QueriableField[];
19600
+ }) | (ProxyDatasource & {
19601
+ example?: {
19602
+ [key: string]: AnyValue;
19603
+ };
19604
+ queriableFields?: QueriableField[];
19605
+ }) | (IngesterDatasource & {
19606
+ example?: {
19607
+ [key: string]: AnyValue;
19608
+ };
19609
+ queriableFields?: QueriableField[];
19610
+ }) | (PubsubDatasource & {
19611
+ example?: {
19612
+ [key: string]: AnyValue;
19613
+ };
19614
+ queriableFields?: QueriableField[];
19615
+ });
19616
+ };
19617
+ export declare type InternalResponse_example_Record = {
19618
+ program: string;
19619
+ version: string;
19620
+ datetime: string;
19621
+ status: string;
19622
+ code?: number;
19623
+ message: string;
19624
+ data: {
19625
+ example: {
19626
+ [key: string]: AnyValue;
19627
+ };
19628
+ };
19629
+ };
19630
+ export declare type InternalResponse_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19631
+ program: string;
19632
+ version: string;
19633
+ datetime: string;
19634
+ status: string;
19635
+ code?: number;
19636
+ message: string;
19637
+ data: PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource;
19638
+ };
19639
+ export declare type DatasourcePush = {
19640
+ name: "push";
19641
+ subtype: "email";
19642
+ };
19643
+ export declare type DatasourceGeneric = {
19644
+ name: "generic";
19645
+ subtype: DatasourceGenericSubType;
19646
+ };
19647
+ export declare type DatasourceCRM = {
19648
+ name: "crm";
19649
+ subtype: DatasourceCRMSubType;
19650
+ };
19651
+ export declare type DatasourceProduct = {
19652
+ name: "product";
19653
+ subtype: DatasourceProductSubType;
19654
+ };
19655
+ export declare type DatasourceLocation = {
19656
+ name: "location";
19657
+ subtype: DatasourceLocationSubType;
19658
+ };
19659
+ export declare type DatasourceLoop = {
19660
+ name: "loop";
19661
+ subtype: DatasourceLoopSubType;
19662
+ };
19663
+ export declare type InternalResponse_anonymized_number = {
19664
+ program: string;
19665
+ version: string;
19666
+ datetime: string;
19667
+ status: string;
19668
+ code?: number;
19669
+ message: string;
19670
+ data: {
19671
+ anonymized: number;
19672
+ };
19658
19673
  };
19659
- export declare type IngesterDatasource = Serialize_IngesterDatasource & {
19660
- readonly id: (string) & readonlyP;
19661
- } & {
19662
- readonly createdAt: (string) & readonlyP;
19663
- readonly updatedAt: (string) & readonlyP;
19674
+ export declare type InternalResponse_fields_Array_Intersection_FieldMapPlain_rulesPerSources_Record = {
19675
+ program: string;
19676
+ version: string;
19677
+ datetime: string;
19678
+ status: string;
19679
+ code?: number;
19680
+ message: string;
19681
+ data: {
19682
+ fields: ({
19683
+ name: string;
19684
+ type: FieldMapType;
19685
+ source?: FieldSource;
19686
+ selected: boolean;
19687
+ ignoreIfMissing?: boolean;
19688
+ metadata?: {
19689
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19690
+ };
19691
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19692
+ } & {
19693
+ rulesPerSources: {
19694
+ [key: string]: (({
19695
+ name: "static";
19696
+ params: {
19697
+ value: string | number;
19698
+ };
19699
+ } | {
19700
+ name: "path";
19701
+ params: {
19702
+ value: string;
19703
+ };
19704
+ } | {
19705
+ name: "path";
19706
+ params: {
19707
+ fromRoot: true;
19708
+ value: string;
19709
+ };
19710
+ }) | ({
19711
+ name: "static";
19712
+ params: {
19713
+ value: string | number;
19714
+ };
19715
+ } | {
19716
+ name: "path";
19717
+ params: {
19718
+ value: string;
19719
+ };
19720
+ } | {
19721
+ name: "path";
19722
+ params: {
19723
+ fromRoot: true;
19724
+ value: string;
19725
+ };
19726
+ } | {
19727
+ name: "array_find";
19728
+ params: {
19729
+ key: string;
19730
+ operator: "=" | "!=";
19731
+ value: string | number;
19732
+ };
19733
+ } | {
19734
+ name: "array_find";
19735
+ params: {
19736
+ conditions: Condition[];
19737
+ };
19738
+ } | {
19739
+ name: "array_find";
19740
+ params: {
19741
+ key: string;
19742
+ operator: "=" | "!=";
19743
+ valuePath: string;
19744
+ fromFormatted?: boolean;
19745
+ };
19746
+ } | {
19747
+ name: "array_find";
19748
+ params: {
19749
+ conditions: (Condition_Without_Value & {
19750
+ evaluateValue: string;
19751
+ })[];
19752
+ };
19753
+ } | {
19754
+ name: "fallback";
19755
+ params: FieldMapFallbackRulePayload;
19756
+ } | {
19757
+ name: "fallback";
19758
+ params: FieldMapFallbackRulePayload_Without_Path_FromFormatted & {
19759
+ staticValue: string | number | string[] | number[] | {
19760
+ [key: string]: string;
19761
+ } | {
19762
+ [key: string]: number;
19763
+ };
19764
+ };
19765
+ } | {
19766
+ name: "fallback_if";
19767
+ params: FieldMapFallbackRulePayload & {
19768
+ conditions: (Condition | (Condition_Without_Value & {
19769
+ evaluateValue: string;
19770
+ }))[];
19771
+ };
19772
+ } | {
19773
+ name: "exclude_from_record";
19774
+ params: {
19775
+ keys: string[];
19776
+ };
19777
+ } | {
19778
+ name: "decrypt";
19779
+ params: {
19780
+ passwordPrefixPath?: string;
19781
+ };
19782
+ } | {
19783
+ name: "interpolate";
19784
+ params: {
19785
+ value: string;
19786
+ };
19787
+ } | {
19788
+ name: "custom";
19789
+ params: {
19790
+ value: string;
19791
+ };
19792
+ } | {
19793
+ name: "split";
19794
+ params: {
19795
+ separator: string;
19796
+ };
19797
+ } | {
19798
+ name: "case";
19799
+ params: {
19800
+ cases: {
19801
+ conditions: Condition_Without_Path[];
19802
+ value: string;
19803
+ }[];
19804
+ };
19805
+ } | {
19806
+ name: "hash";
19807
+ params: {
19808
+ algorithm: string;
19809
+ salt?: string;
19810
+ };
19811
+ } | {
19812
+ name: "decipher";
19813
+ params: {
19814
+ 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";
19815
+ key: string;
19816
+ iv?: string;
19817
+ inputEncoding?: "hex" | "base64";
19818
+ };
19819
+ }))[];
19820
+ };
19821
+ })[];
19822
+ };
19664
19823
  };
19665
- export declare type PubsubDatasourceVersion = {
19666
- readonly id: (string) & readonlyP;
19667
- type: {
19668
- name: "analytics";
19669
- options: {
19670
- autoExclusions?: boolean;
19671
- noStats?: boolean;
19672
- };
19673
- subtype: "purchases";
19674
- } | {
19675
- name: "generic";
19676
- subtype: DatasourceGenericSubType;
19677
- } | {
19678
- name: "crm";
19679
- subtype: DatasourceCRMSubType;
19680
- } | {
19681
- name: "product";
19682
- subtype: DatasourceProductSubType;
19683
- } | {
19684
- name: "location";
19685
- subtype: DatasourceLocationSubType;
19686
- } | {
19687
- name: "analytics";
19688
- subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
19689
- } | {
19690
- name: "push";
19691
- subtype: "email";
19692
- } | {
19693
- name: "loop";
19694
- subtype: DatasourceLoopSubType;
19824
+ 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 = {
19825
+ program: string;
19826
+ version: string;
19827
+ datetime: string;
19828
+ status: string;
19829
+ code?: number;
19830
+ message: string;
19831
+ data: {
19832
+ bucket: string;
19833
+ path: string;
19834
+ format: {
19835
+ type: "csv";
19836
+ options: {
19837
+ csvDelimiter?: string;
19838
+ csvColumns?: string[];
19839
+ };
19840
+ } | {
19841
+ type: "ndjson";
19842
+ options: {};
19843
+ } | {
19844
+ type: "json";
19845
+ options: {
19846
+ rootPath: string;
19847
+ };
19848
+ } | {
19849
+ type: "xml";
19850
+ options: {
19851
+ rootPath: string;
19852
+ };
19853
+ } | {
19854
+ type: "xlsx";
19855
+ options: {};
19856
+ } | {
19857
+ type: "parquet";
19858
+ options: {
19859
+ columnsList?: string[];
19860
+ version?: string;
19861
+ };
19862
+ } | {
19863
+ type: "avro";
19864
+ options: {};
19865
+ };
19866
+ textEncoding: string;
19867
+ } & PgpDecryptionOptions;
19868
+ };
19869
+ export declare type InternalResponse_password_string = {
19870
+ program: string;
19871
+ version: string;
19872
+ datetime: string;
19873
+ status: string;
19874
+ code?: number;
19875
+ message: string;
19876
+ data: {
19877
+ password: string;
19695
19878
  };
19696
- fieldsMap: {
19879
+ };
19880
+ export declare type CreateSchemaBody = {
19881
+ schema: {
19697
19882
  name: string;
19698
- type: FieldMapType;
19699
- source?: FieldSource;
19700
- selected: boolean;
19701
- ignoreIfMissing?: boolean;
19702
- metadata?: {
19703
- locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19704
- };
19705
- readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19706
- }[];
19707
- mode: DatasourceMode;
19708
- readonly state: (DatasourceVersionState) & readonlyP;
19709
- readonly pendingSteps?: (({
19710
- name: "configure_name";
19711
- } | {
19712
- name: "configure_resource_group_ids";
19713
- } | {
19714
- name: "configure_sources";
19715
- } | {
19716
- name: "configure_fields";
19717
- } | {
19718
- name: "configure_field";
19719
- field: {
19883
+ datasourceId: string;
19884
+ columns: {
19720
19885
  name: string;
19721
19886
  type: FieldMapType;
19722
- };
19723
- } | {
19724
- name: "create_oauth_client";
19725
- configurationId: string;
19726
- } | {
19727
- name: "authorize_oauth_client";
19728
- slug: string;
19729
- } | {
19730
- name: "configure_thresholds";
19731
- } | {
19732
- name: "configure_api_key";
19733
- slug: "partoo";
19734
- } | {
19735
- name: "patch";
19736
- } | {
19737
- name: "validate";
19738
- } | {
19739
- name: "configure_google_tag_manager";
19740
- } | {
19741
- name: "configure_reelevant_analytics_script";
19742
- } | {
19743
- name: "configure_product_datasource_source";
19744
- } | {
19745
- name: "configure_tracking_datasource_source";
19746
- } | {
19747
- name: "configure_best_product_query";
19748
- } | {
19749
- name: "configure_best_product_field";
19750
- } | {
19751
- name: "configure_fetcher";
19752
- } | {
19753
- name: "configure_merge_datasource_source";
19754
- } | {
19755
- name: "configure_merge_datasource_dependency";
19756
- } | {
19757
- name: "configure_merge_mapping";
19758
- } | {
19759
- name: "configure_bought_together";
19760
- } | {
19761
- name: "configure_top_attributes";
19762
- } | {
19763
- name: "configure_destination";
19764
- type: "smtp";
19765
- } | {
19766
- name: "configure_hierarchy";
19767
- } | {
19768
- name: "google_my_business_set_url";
19769
- urls: {
19770
- getAccount: string;
19771
- final: string;
19772
- };
19773
- } | {
19774
- name: "setup_instagram";
19775
- urls: {
19776
- getAccount: string;
19777
- getAccountInfos: string;
19778
- final: string;
19779
- };
19780
- })[]) & readonlyP;
19781
- 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;
19782
- readonly requiredFieldsTypes: ({
19783
- [key: string]: FieldMapType;
19784
- }[]) & readonlyP;
19785
- 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;
19786
- 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;
19787
- } & {
19788
- readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19887
+ default?: string | number | (false) | (true) | string;
19888
+ description?: string;
19889
+ }[];
19890
+ description?: string;
19891
+ indexes?: {
19892
+ type: "Index";
19893
+ columns: string[];
19894
+ description?: string;
19895
+ }[];
19896
+ virtualColumns?: {
19897
+ name: string;
19898
+ type: FieldMapType;
19899
+ query: string;
19900
+ description?: string;
19901
+ }[];
19902
+ uniqueKeys?: {
19903
+ type: "UniqueKey";
19904
+ columns: string[];
19905
+ description?: string;
19906
+ }[];
19907
+ relations?: {
19908
+ type: "Relation";
19909
+ columns: string[];
19910
+ reference: {
19911
+ table: string;
19912
+ datasourceId: string;
19913
+ columns: string[];
19914
+ };
19915
+ description?: string;
19916
+ }[];
19917
+ }[];
19789
19918
  };
19790
- export declare type Serialize_PubsubDatasource = {
19791
- name: string;
19792
- hidden: boolean;
19793
- readonly template?: (ObjectId | null) & readonlyP;
19794
- readonly fetcher: ({
19795
- name: DatasourceFetcherName;
19796
- params: {};
19797
- } | {
19798
- name: "fdj-bets";
19799
- params: {};
19800
- } | {
19801
- name: "renault-prices";
19802
- params: {};
19803
- } | {
19804
- name: "decathlon-product-fallback";
19805
- params: {};
19806
- } | {
19807
- name: "generic-unwind-rows";
19808
- params: {
19809
- source: string;
19810
- destination: string;
19811
- columnDestination: string;
19812
- valueType: string;
19813
- };
19814
- } | {
19815
- name: "workflow-events";
19816
- params: {};
19817
- } | {
19818
- name: "expired-product-lifetime";
19819
- params: {
19820
- purchaseDatasourceId: string;
19821
- purchaseQuery: string;
19822
- purchaseReferenceIdField: string;
19823
- purchaseTimestampField: string;
19824
- purchaseClientField: string;
19825
- temporalities?: {
19826
- maxLifetime: number;
19827
- windowStart: number;
19828
- windowEnd: number;
19829
- minPurchaseCount?: number;
19919
+ export declare type SchemaValidationIssue = {
19920
+ path: (string | number)[];
19921
+ message: string;
19922
+ code: string;
19923
+ };
19924
+ export declare type RelationAnalysisResult = {
19925
+ fromDatasourceId: string;
19926
+ fromTable: string;
19927
+ fromColumn: string;
19928
+ fromDistinctCount: number | null;
19929
+ toDatasourceId: string;
19930
+ toTable: string;
19931
+ toColumn: string;
19932
+ toDistinctCount: number | null;
19933
+ matchCount: number | null;
19934
+ matchPercentage: number | null;
19935
+ error?: string;
19936
+ };
19937
+ export declare type ValidateSchemaResponse = {
19938
+ validation: {
19939
+ success: true;
19940
+ data: {
19941
+ name: string;
19942
+ datasourceId: string;
19943
+ columns: {
19944
+ name: string;
19945
+ type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "locale" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "product_lifetime" | "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";
19946
+ default?: string | number | (false) | (true) | string;
19947
+ description?: string;
19948
+ }[];
19949
+ description?: string;
19950
+ indexes?: {
19951
+ type: "Index";
19952
+ columns: string[];
19953
+ description?: string;
19954
+ }[];
19955
+ virtualColumns?: {
19956
+ name: string;
19957
+ type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "locale" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "product_lifetime" | "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";
19958
+ query: string;
19959
+ description?: string;
19960
+ }[];
19961
+ uniqueKeys?: {
19962
+ type: "UniqueKey";
19963
+ columns: string[];
19964
+ description?: string;
19965
+ }[];
19966
+ relations?: {
19967
+ type: "Relation";
19968
+ columns: string[];
19969
+ reference: {
19970
+ table: string;
19971
+ datasourceId: string;
19972
+ columns: string[];
19973
+ };
19974
+ description?: string;
19830
19975
  }[];
19831
- };
19832
- } | {
19833
- name: "product-exclusion";
19834
- params: {
19835
- mode: "inclusion" | "exclusion";
19836
- exclusionDatasourceId: string;
19837
- exclusionIdField: string;
19838
- productIdField: string;
19839
- };
19840
- } | {
19841
- name: "per-user";
19842
- params: {};
19843
- } | {
19844
- name: "generic-proxy-lock";
19845
- params: {
19846
- ttl: number;
19847
- };
19848
- } | {
19849
- name: "generic-proxy-aggregation";
19850
- params: {
19851
- targetField: string;
19852
- aggregationType: "sum" | "avg" | "min" | "max";
19853
- outputField: string;
19854
- };
19855
- }) & readonlyP;
19856
- storageOptions: {
19857
- destinations: {
19858
- type: "bigquery";
19859
- dataset: string;
19860
- tableName: string;
19861
- deduplicateOptions?: {
19862
- enabled: boolean;
19863
- };
19864
19976
  }[];
19865
- partitionCount: number;
19866
- segments: {
19867
- offlineSize: number;
19868
- offlineReplication: number;
19869
- realtimeSize: number;
19870
- realtimeReplication: number;
19871
- };
19872
- retention?: {
19873
- value: number;
19874
- unit: "DAYS";
19977
+ } | {
19978
+ success: false;
19979
+ error: {
19980
+ issues: SchemaValidationIssue[];
19875
19981
  };
19876
19982
  };
19877
- mode: "pubsub";
19878
- companyId: ObjectId;
19879
- resourceGroupIds: ObjectId[];
19880
- versions: (ObjectId | (Document & PubsubDatasourceVersion & {
19881
- _id: ObjectId;
19882
- } & {
19883
- __v: number;
19884
- } & IObjectWithTypegooseFunction))[];
19885
- readonly archivedAt: (string | null) & readonlyP;
19886
- status: DatasourceStatus;
19887
- readonly configurationUpdatedAt: (string) & readonlyP;
19888
- readonly lastSuccessfulIngestion?: (string) & readonlyP;
19889
- readonly lastFailedIngestion?: (string) & readonlyP;
19890
- readonly lastFailureReason?: (string) & readonlyP;
19891
- hierarchy: string[];
19892
- readonly hasWarnings: (boolean) & readonlyP;
19893
- };
19894
- export declare type PubsubDatasource = Serialize_PubsubDatasource & {
19895
- readonly id: (string) & readonlyP;
19896
- } & {
19897
- readonly createdAt: (string) & readonlyP;
19898
- readonly updatedAt: (string) & readonlyP;
19983
+ relations: RelationAnalysisResult[];
19899
19984
  };
19900
- export declare type InternalResponse_Array_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19985
+ export declare type InternalResponse_ValidateSchemaResponse = {
19901
19986
  program: string;
19902
19987
  version: string;
19903
19988
  datetime: string;
19904
19989
  status: string;
19905
19990
  code?: number;
19906
19991
  message: string;
19907
- data: (PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource)[];
19992
+ data: ValidateSchemaResponse;
19908
19993
  };
19909
- export declare type FieldMap_With_Name_Type_Primitive = {
19910
- name: string;
19911
- type: FieldMapType;
19912
- readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19994
+ export declare type ValidateSchemaBody = {
19995
+ schema: AnyValue;
19913
19996
  };
19914
- export declare type QueriableField = FieldMap_With_Name_Type_Primitive & {
19915
- required: boolean;
19916
- unique: boolean;
19917
- sortable: boolean;
19918
- enum?: (string | number)[];
19919
- 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"))[];
19997
+ export declare enum DatagraphSchemaVersionState {
19998
+ DRAFT = "draft",
19999
+ LIVE = "live",
20000
+ INACTIVE = "inactive"
20001
+ }
20002
+ export declare type Serialize_DatagraphSchemaVersion = {
20003
+ readonly companyId: (ObjectId) & readonlyP;
20004
+ readonly state: (DatagraphSchemaVersionState) & readonlyP;
20005
+ readonly definition: ({
20006
+ name: string;
20007
+ datasourceId: string;
20008
+ description?: string;
20009
+ indexes?: {
20010
+ type: "Index";
20011
+ columns: string[];
20012
+ description?: string;
20013
+ }[];
20014
+ columns: {
20015
+ name: string;
20016
+ type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "locale" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "product_lifetime" | "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";
20017
+ default?: string | number | (false) | (true) | string;
20018
+ description?: string;
20019
+ }[];
20020
+ virtualColumns?: {
20021
+ name: string;
20022
+ type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "locale" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "product_lifetime" | "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";
20023
+ query: string;
20024
+ description?: string;
20025
+ }[];
20026
+ uniqueKeys?: {
20027
+ type: "UniqueKey";
20028
+ columns: string[];
20029
+ description?: string;
20030
+ }[];
20031
+ relations?: {
20032
+ type: "Relation";
20033
+ columns: string[];
20034
+ reference: {
20035
+ table: string;
20036
+ datasourceId: string;
20037
+ columns: string[];
20038
+ };
20039
+ description?: string;
20040
+ }[];
20041
+ }[]) & readonlyP;
19920
20042
  };
19921
- 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 = {
20043
+ export declare type DatagraphSchemaVersion = Serialize_DatagraphSchemaVersion;
20044
+ export declare type InternalResponse_Array_SerializedDatagraphSchema = {
19922
20045
  program: string;
19923
20046
  version: string;
19924
20047
  datetime: string;
19925
20048
  status: string;
19926
20049
  code?: number;
19927
20050
  message: string;
19928
- data: (PushDatasource & {
19929
- example?: {
19930
- [key: string]: AnyValue;
19931
- };
19932
- queriableFields?: QueriableField[];
19933
- }) | (WorkerDatasource & {
19934
- example?: {
19935
- [key: string]: AnyValue;
19936
- };
19937
- queriableFields?: QueriableField[];
19938
- }) | (ProxyDatasource & {
19939
- example?: {
19940
- [key: string]: AnyValue;
19941
- };
19942
- queriableFields?: QueriableField[];
19943
- }) | (IngesterDatasource & {
19944
- example?: {
19945
- [key: string]: AnyValue;
19946
- };
19947
- queriableFields?: QueriableField[];
19948
- }) | (PubsubDatasource & {
19949
- example?: {
19950
- [key: string]: AnyValue;
19951
- };
19952
- queriableFields?: QueriableField[];
19953
- });
20051
+ data: {
20052
+ readonly companyId: (ObjectId) & readonlyP;
20053
+ readonly resourceGroupIds: (ObjectId[]) & readonlyP;
20054
+ archivedAt: string | null;
20055
+ readonly versions: ((ObjectId | (Document & DatagraphSchemaVersion & {
20056
+ _id: ObjectId;
20057
+ } & {
20058
+ __v: number;
20059
+ } & IObjectWithTypegooseFunction))[]) & readonlyP;
20060
+ }[];
19954
20061
  };
19955
- export declare type InternalResponse_example_Record = {
20062
+ export declare type UpdateSchemaBody = {
20063
+ schema: {
20064
+ name: string;
20065
+ datasourceId: string;
20066
+ columns: {
20067
+ name: string;
20068
+ type: FieldMapType;
20069
+ default?: string | number | (false) | (true) | string;
20070
+ description?: string;
20071
+ }[];
20072
+ description?: string;
20073
+ indexes?: {
20074
+ type: "Index";
20075
+ columns: string[];
20076
+ description?: string;
20077
+ }[];
20078
+ virtualColumns?: {
20079
+ name: string;
20080
+ type: FieldMapType;
20081
+ query: string;
20082
+ description?: string;
20083
+ }[];
20084
+ uniqueKeys?: {
20085
+ type: "UniqueKey";
20086
+ columns: string[];
20087
+ description?: string;
20088
+ }[];
20089
+ relations?: {
20090
+ type: "Relation";
20091
+ columns: string[];
20092
+ reference: {
20093
+ table: string;
20094
+ datasourceId: string;
20095
+ columns: string[];
20096
+ };
20097
+ description?: string;
20098
+ }[];
20099
+ }[];
20100
+ };
20101
+ export declare type InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number_count_number = {
19956
20102
  program: string;
19957
20103
  version: string;
19958
20104
  datetime: string;
@@ -19960,260 +20106,119 @@ export declare type InternalResponse_example_Record = {
19960
20106
  code?: number;
19961
20107
  message: string;
19962
20108
  data: {
19963
- example: {
20109
+ entries: {
20110
+ distance?: number;
20111
+ rlvt_lat?: number;
20112
+ rlvt_lng?: number;
19964
20113
  [key: string]: AnyValue;
19965
- };
20114
+ }[];
20115
+ count: number;
19966
20116
  };
19967
20117
  };
19968
- export declare type InternalResponse_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19969
- program: string;
19970
- version: string;
19971
- datetime: string;
19972
- status: string;
19973
- code?: number;
19974
- message: string;
19975
- data: PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource;
20118
+ export declare type EntityParameterAndGroup = {
20119
+ $and: {
20120
+ [key: string]: string | number | (false) | (true);
20121
+ }[];
19976
20122
  };
19977
- export declare type DatasourcePush = {
19978
- name: "push";
19979
- subtype: "email";
20123
+ export declare type EntityParameterOrGroup = {
20124
+ $or: {
20125
+ [key: string]: string | number | (false) | (true);
20126
+ }[];
20127
+ };
20128
+ export declare type EntityParameter = {
20129
+ name: string;
20130
+ shortDescription: string;
20131
+ fullDescription: string | null;
20132
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
20133
+ index: number;
20134
+ optional?: boolean;
20135
+ };
20136
+ export declare type DatagraphEntityDefinitionBody = {
20137
+ name: string;
20138
+ description?: string | null;
20139
+ sql: string | null;
20140
+ options: EntityParameter[];
20141
+ };
20142
+ export declare type QueryEntityBody = {
20143
+ options?: {
20144
+ [key: string]: string | number | (false) | (true);
20145
+ } | {
20146
+ $or: ({
20147
+ [key: string]: string | number | (false) | (true);
20148
+ } | EntityParameterAndGroup)[];
20149
+ } | {
20150
+ $and: ({
20151
+ [key: string]: string | number | (false) | (true);
20152
+ } | EntityParameterOrGroup)[];
20153
+ };
20154
+ userIds?: string[];
20155
+ entity?: DatagraphEntityDefinitionBody;
19980
20156
  };
19981
- export declare type DatasourceGeneric = {
19982
- name: "generic";
19983
- subtype: DatasourceGenericSubType;
20157
+ export declare enum DatagraphEntityVersionState {
20158
+ DRAFT = "draft",
20159
+ INACTIVE = "inactive",
20160
+ LIVE = "live"
20161
+ }
20162
+ export declare type EntityAnswer = {
20163
+ name: string;
20164
+ type: "string" | "number" | "boolean" | "name" | "url" | "datetime" | "datetime_iso" | "description" | "locale" | "address_1" | "address_2" | "address_3" | "address_4" | "city" | "zipcode" | "country" | "latitude" | "longitude" | "reference_id" | "reference_ids" | "product_id" | "price" | "image_url" | "product_lifetime" | "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";
19984
20165
  };
19985
- export declare type DatasourceCRM = {
19986
- name: "crm";
19987
- subtype: DatasourceCRMSubType;
20166
+ export declare type Entity = {
20167
+ name: string;
20168
+ description: string | null;
20169
+ sql: string | null;
20170
+ options: EntityParameter[];
20171
+ readonly answers: (EntityAnswer[]) & readonlyP;
19988
20172
  };
19989
- export declare type DatasourceProduct = {
19990
- name: "product";
19991
- subtype: DatasourceProductSubType;
20173
+ export declare type DatagraphEntityVersion = {
20174
+ readonly companyId: (ObjectId) & readonlyP;
20175
+ readonly state: (DatagraphEntityVersionState) & readonlyP;
20176
+ readonly definition: (Entity) & readonlyP;
20177
+ readonly lastSavedBy?: (ObjectId) & readonlyP;
20178
+ changeDescription?: string;
19992
20179
  };
19993
- export declare type DatasourceLocation = {
19994
- name: "location";
19995
- subtype: DatasourceLocationSubType;
20180
+ export declare type Serialize_DatagraphEntity = {
20181
+ readonly companyId: (ObjectId) & readonlyP;
20182
+ readonly resourceGroupIds: (ObjectId[]) & readonlyP;
20183
+ readonly archivedAt: (string | null) & readonlyP;
20184
+ readonly versions: ((ObjectId | (Document & DatagraphEntityVersion & {
20185
+ _id: ObjectId;
20186
+ } & {
20187
+ __v: number;
20188
+ } & IObjectWithTypegooseFunction))[]) & readonlyP;
19996
20189
  };
19997
- export declare type DatasourceLoop = {
19998
- name: "loop";
19999
- subtype: DatasourceLoopSubType;
20190
+ export declare type DatagraphEntity = Serialize_DatagraphEntity & {
20191
+ readonly id: (string) & readonlyP;
20192
+ } & {
20193
+ readonly createdAt: (string) & readonlyP;
20194
+ readonly updatedAt: (string) & readonlyP;
20000
20195
  };
20001
- export declare type InternalResponse_anonymized_number = {
20196
+ export declare type InternalResponse_DatagraphEntity = {
20002
20197
  program: string;
20003
20198
  version: string;
20004
20199
  datetime: string;
20005
20200
  status: string;
20006
20201
  code?: number;
20007
20202
  message: string;
20008
- data: {
20009
- anonymized: number;
20010
- };
20203
+ data: DatagraphEntity;
20011
20204
  };
20012
- 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 = {
20013
- program: string;
20014
- version: string;
20015
- datetime: string;
20016
- status: string;
20017
- code?: number;
20018
- message: string;
20019
- data: {
20020
- bucket: string;
20021
- path: string;
20022
- format: {
20023
- type: "csv";
20024
- options: {
20025
- csvDelimiter?: string;
20026
- csvColumns?: string[];
20027
- };
20028
- } | {
20029
- type: "ndjson";
20030
- options: {};
20031
- } | {
20032
- type: "json";
20033
- options: {
20034
- rootPath: string;
20035
- };
20036
- } | {
20037
- type: "xml";
20038
- options: {
20039
- rootPath: string;
20040
- };
20041
- } | {
20042
- type: "xlsx";
20043
- options: {};
20044
- } | {
20045
- type: "parquet";
20046
- options: {
20047
- columnsList?: string[];
20048
- version?: string;
20049
- };
20050
- } | {
20051
- type: "avro";
20052
- options: {};
20053
- };
20054
- textEncoding: string;
20055
- } & PgpDecryptionOptions;
20205
+ export declare type CreateEntityBody = {
20206
+ entity: DatagraphEntityDefinitionBody;
20056
20207
  };
20057
- export declare type InternalResponse_password_string = {
20208
+ export declare type InternalResponse_Array_DatagraphEntity = {
20058
20209
  program: string;
20059
20210
  version: string;
20060
20211
  datetime: string;
20061
20212
  status: string;
20062
20213
  code?: number;
20063
20214
  message: string;
20064
- data: {
20065
- password: string;
20066
- };
20215
+ data: DatagraphEntity[];
20067
20216
  };
20068
- export declare type InternalResponse_fields_Array_Intersection_FieldMapPlain_rulesPerSources_Record = {
20069
- program: string;
20070
- version: string;
20071
- datetime: string;
20072
- status: string;
20073
- code?: number;
20074
- message: string;
20075
- data: {
20076
- fields: ({
20077
- name: string;
20078
- type: FieldMapType;
20079
- source?: FieldSource;
20080
- selected: boolean;
20081
- ignoreIfMissing?: boolean;
20082
- metadata?: {
20083
- locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
20084
- };
20085
- readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
20086
- } & {
20087
- rulesPerSources: {
20088
- [key: string]: (({
20089
- name: "static";
20090
- params: {
20091
- value: string | number;
20092
- };
20093
- } | {
20094
- name: "path";
20095
- params: {
20096
- value: string;
20097
- };
20098
- } | {
20099
- name: "path";
20100
- params: {
20101
- fromRoot: true;
20102
- value: string;
20103
- };
20104
- }) | ({
20105
- name: "static";
20106
- params: {
20107
- value: string | number;
20108
- };
20109
- } | {
20110
- name: "path";
20111
- params: {
20112
- value: string;
20113
- };
20114
- } | {
20115
- name: "path";
20116
- params: {
20117
- fromRoot: true;
20118
- value: string;
20119
- };
20120
- } | {
20121
- name: "array_find";
20122
- params: {
20123
- key: string;
20124
- operator: "=" | "!=";
20125
- value: string | number;
20126
- };
20127
- } | {
20128
- name: "array_find";
20129
- params: {
20130
- conditions: Condition[];
20131
- };
20132
- } | {
20133
- name: "array_find";
20134
- params: {
20135
- key: string;
20136
- operator: "=" | "!=";
20137
- valuePath: string;
20138
- fromFormatted?: boolean;
20139
- };
20140
- } | {
20141
- name: "array_find";
20142
- params: {
20143
- conditions: (Condition_Without_Value & {
20144
- evaluateValue: string;
20145
- })[];
20146
- };
20147
- } | {
20148
- name: "fallback";
20149
- params: FieldMapFallbackRulePayload;
20150
- } | {
20151
- name: "fallback";
20152
- params: FieldMapFallbackRulePayload_Without_Path_FromFormatted & {
20153
- staticValue: string | number | string[] | number[] | {
20154
- [key: string]: string;
20155
- } | {
20156
- [key: string]: number;
20157
- };
20158
- };
20159
- } | {
20160
- name: "fallback_if";
20161
- params: FieldMapFallbackRulePayload & {
20162
- conditions: (Condition | (Condition_Without_Value & {
20163
- evaluateValue: string;
20164
- }))[];
20165
- };
20166
- } | {
20167
- name: "exclude_from_record";
20168
- params: {
20169
- keys: string[];
20170
- };
20171
- } | {
20172
- name: "decrypt";
20173
- params: {
20174
- passwordPrefixPath?: string;
20175
- };
20176
- } | {
20177
- name: "interpolate";
20178
- params: {
20179
- value: string;
20180
- };
20181
- } | {
20182
- name: "custom";
20183
- params: {
20184
- value: string;
20185
- };
20186
- } | {
20187
- name: "split";
20188
- params: {
20189
- separator: string;
20190
- };
20191
- } | {
20192
- name: "case";
20193
- params: {
20194
- cases: {
20195
- conditions: Condition_Without_Path[];
20196
- value: string;
20197
- }[];
20198
- };
20199
- } | {
20200
- name: "hash";
20201
- params: {
20202
- algorithm: string;
20203
- salt?: string;
20204
- };
20205
- } | {
20206
- name: "decipher";
20207
- params: {
20208
- 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";
20209
- key: string;
20210
- iv?: string;
20211
- inputEncoding?: "hex" | "base64";
20212
- };
20213
- }))[];
20214
- };
20215
- })[];
20216
- };
20217
+ export declare type UpdateEntityBody = {
20218
+ entity: DatagraphEntityDefinitionBody;
20219
+ };
20220
+ export declare type PublishEntityBody = {
20221
+ changeDescription?: string;
20217
20222
  };
20218
20223
  export declare enum FieldMapRuleName {
20219
20224
  STATIC = "static",