@rlvt/datasources-openapi-client 1.0.406 → 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,173 +5139,7 @@ export declare type InternalResponse_url_string = {
5139
5139
  url: string;
5140
5140
  };
5141
5141
  };
5142
- export declare type CreateSchemaBody = {
5143
- schema: {
5144
- name: string;
5145
- datasourceId: string;
5146
- columns: {
5147
- name: string;
5148
- type: FieldMapType;
5149
- default?: string | number | (false) | (true) | string;
5150
- description?: string;
5151
- }[];
5152
- description?: string;
5153
- virtualColumns?: {
5154
- name: string;
5155
- type: FieldMapType;
5156
- query: string;
5157
- description?: string;
5158
- }[];
5159
- uniqueKeys?: {
5160
- type: "UniqueKey";
5161
- columns: string[];
5162
- description?: string;
5163
- }[];
5164
- indexes?: {
5165
- type: "Index";
5166
- columns: string[];
5167
- description?: string;
5168
- }[];
5169
- relations?: {
5170
- type: "Relation";
5171
- columns: string[];
5172
- reference: {
5173
- table: string;
5174
- datasourceId: string;
5175
- columns: string[];
5176
- };
5177
- description?: string;
5178
- }[];
5179
- }[];
5180
- };
5181
- export declare type SchemaValidationIssue = {
5182
- path: (string | number)[];
5183
- message: string;
5184
- code: string;
5185
- };
5186
- export declare type RelationAnalysisResult = {
5187
- fromDatasourceId: string;
5188
- fromTable: string;
5189
- fromColumn: string;
5190
- fromDistinctCount: number | null;
5191
- toDatasourceId: string;
5192
- toTable: string;
5193
- toColumn: string;
5194
- toDistinctCount: number | null;
5195
- matchCount: number | null;
5196
- matchPercentage: number | null;
5197
- error?: string;
5198
- };
5199
- export declare type ValidateSchemaResponse = {
5200
- validation: {
5201
- success: true;
5202
- data: {
5203
- name: string;
5204
- datasourceId: string;
5205
- columns: {
5206
- name: string;
5207
- 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";
5208
- default?: string | number | (false) | (true) | string;
5209
- description?: string;
5210
- }[];
5211
- description?: string;
5212
- virtualColumns?: {
5213
- name: string;
5214
- 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";
5215
- query: string;
5216
- description?: string;
5217
- }[];
5218
- uniqueKeys?: {
5219
- type: "UniqueKey";
5220
- columns: string[];
5221
- description?: string;
5222
- }[];
5223
- indexes?: {
5224
- type: "Index";
5225
- columns: string[];
5226
- description?: string;
5227
- }[];
5228
- relations?: {
5229
- type: "Relation";
5230
- columns: string[];
5231
- reference: {
5232
- table: string;
5233
- datasourceId: string;
5234
- columns: string[];
5235
- };
5236
- description?: string;
5237
- }[];
5238
- }[];
5239
- } | {
5240
- success: false;
5241
- error: {
5242
- issues: SchemaValidationIssue[];
5243
- };
5244
- };
5245
- relations: RelationAnalysisResult[];
5246
- };
5247
- export declare type InternalResponse_ValidateSchemaResponse = {
5248
- program: string;
5249
- version: string;
5250
- datetime: string;
5251
- status: string;
5252
- code?: number;
5253
- message: string;
5254
- data: ValidateSchemaResponse;
5255
- };
5256
- export declare type ValidateSchemaBody = {
5257
- schema: AnyValue;
5258
- };
5259
- export declare type Document = {};
5260
- export declare enum DatagraphSchemaVersionState {
5261
- DRAFT = "draft",
5262
- LIVE = "live",
5263
- INACTIVE = "inactive"
5264
- }
5265
- export declare type Serialize_DatagraphSchemaVersion = {
5266
- readonly companyId: (ObjectId) & readonlyP;
5267
- readonly state: (DatagraphSchemaVersionState) & readonlyP;
5268
- readonly definition: ({
5269
- name: string;
5270
- datasourceId: string;
5271
- description?: string;
5272
- columns: {
5273
- name: string;
5274
- 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";
5275
- default?: string | number | (false) | (true) | string;
5276
- description?: string;
5277
- }[];
5278
- virtualColumns?: {
5279
- name: string;
5280
- 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";
5281
- query: string;
5282
- description?: string;
5283
- }[];
5284
- uniqueKeys?: {
5285
- type: "UniqueKey";
5286
- columns: string[];
5287
- description?: string;
5288
- }[];
5289
- indexes?: {
5290
- type: "Index";
5291
- columns: string[];
5292
- description?: string;
5293
- }[];
5294
- relations?: {
5295
- type: "Relation";
5296
- columns: string[];
5297
- reference: {
5298
- table: string;
5299
- datasourceId: string;
5300
- columns: string[];
5301
- };
5302
- description?: string;
5303
- }[];
5304
- }[]) & readonlyP;
5305
- };
5306
- export declare type DatagraphSchemaVersion = Serialize_DatagraphSchemaVersion;
5307
- export declare type IObjectWithTypegooseFunction = {};
5308
- export declare type InternalResponse_Array_SerializedDatagraphSchema = {
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 = {
5309
5143
  program: string;
5310
5144
  version: string;
5311
5145
  datetime: string;
@@ -5313,193 +5147,19 @@ export declare type InternalResponse_Array_SerializedDatagraphSchema = {
5313
5147
  code?: number;
5314
5148
  message: string;
5315
5149
  data: {
5316
- readonly companyId: (ObjectId) & readonlyP;
5317
- readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5318
- readonly versions: ((ObjectId | (Document & DatagraphSchemaVersion & {
5319
- _id: ObjectId;
5320
- } & {
5321
- __v: number;
5322
- } & IObjectWithTypegooseFunction))[]) & readonlyP;
5323
- archivedAt: string | null;
5324
- }[];
5325
- };
5326
- export declare type UpdateSchemaBody = {
5327
- schema: {
5328
- name: string;
5329
- datasourceId: string;
5330
- columns: {
5331
- name: string;
5332
- type: FieldMapType;
5333
- default?: string | number | (false) | (true) | string;
5334
- description?: string;
5335
- }[];
5336
- description?: string;
5337
- virtualColumns?: {
5338
- name: string;
5339
- type: FieldMapType;
5340
- query: string;
5341
- description?: string;
5342
- }[];
5343
- uniqueKeys?: {
5344
- type: "UniqueKey";
5345
- columns: string[];
5346
- description?: string;
5347
- }[];
5348
- indexes?: {
5349
- type: "Index";
5350
- columns: string[];
5351
- description?: string;
5352
- }[];
5353
- relations?: {
5354
- type: "Relation";
5355
- columns: string[];
5356
- reference: {
5357
- table: string;
5358
- datasourceId: string;
5359
- columns: string[];
5360
- };
5361
- description?: string;
5362
- }[];
5363
- }[];
5364
- };
5365
- export declare type InternalResponse_entries_Array_distance_Union_undefined_number_rlvt_lat_Union_undefined_number_rlvt_lng_Union_undefined_number_count_number = {
5366
- program: string;
5367
- version: string;
5368
- datetime: string;
5369
- status: string;
5370
- code?: number;
5371
- message: string;
5372
- data: {
5373
- entries: {
5374
- distance?: number;
5375
- rlvt_lat?: number;
5376
- rlvt_lng?: number;
5377
- [key: string]: AnyValue;
5378
- }[];
5379
- count: number;
5380
- };
5381
- };
5382
- export declare type EntityParameterAndGroup = {
5383
- $and: {
5384
- [key: string]: string | number | (false) | (true);
5385
- }[];
5386
- };
5387
- export declare type EntityParameterOrGroup = {
5388
- $or: {
5389
- [key: string]: string | number | (false) | (true);
5390
- }[];
5391
- };
5392
- export declare type EntityParameter = {
5393
- name: string;
5394
- shortDescription: string;
5395
- fullDescription: string | null;
5396
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
5397
- index: number;
5398
- optional?: boolean;
5399
- };
5400
- export declare type DatagraphEntityDefinitionBody = {
5401
- name: string;
5402
- description?: string | null;
5403
- sql: string | null;
5404
- options: EntityParameter[];
5405
- };
5406
- export declare type QueryEntityBody = {
5407
- options?: {
5408
- [key: string]: string | number | (false) | (true);
5409
- } | {
5410
- $or: ({
5411
- [key: string]: string | number | (false) | (true);
5412
- } | EntityParameterAndGroup)[];
5413
- } | {
5414
- $and: ({
5415
- [key: string]: string | number | (false) | (true);
5416
- } | EntityParameterOrGroup)[];
5417
- };
5418
- userIds?: string[];
5419
- entity?: DatagraphEntityDefinitionBody;
5420
- };
5421
- export declare enum DatagraphEntityVersionState {
5422
- DRAFT = "draft",
5423
- INACTIVE = "inactive",
5424
- LIVE = "live"
5425
- }
5426
- export declare type EntityAnswer = {
5427
- name: string;
5428
- 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";
5429
- };
5430
- export declare type Entity = {
5431
- name: string;
5432
- description: string | null;
5433
- sql: string | null;
5434
- options: EntityParameter[];
5435
- readonly answers: (EntityAnswer[]) & readonlyP;
5436
- };
5437
- export declare type DatagraphEntityVersion = {
5438
- readonly companyId: (ObjectId) & readonlyP;
5439
- readonly state: (DatagraphEntityVersionState) & readonlyP;
5440
- readonly definition: (Entity) & readonlyP;
5441
- };
5442
- export declare type Serialize_DatagraphEntity = {
5443
- readonly companyId: (ObjectId) & readonlyP;
5444
- readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5445
- readonly versions: ((ObjectId | (Document & DatagraphEntityVersion & {
5446
- _id: ObjectId;
5447
- } & {
5448
- __v: number;
5449
- } & IObjectWithTypegooseFunction))[]) & readonlyP;
5450
- readonly archivedAt: (string | null) & readonlyP;
5451
- };
5452
- export declare type DatagraphEntity = Serialize_DatagraphEntity & {
5453
- readonly id: (string) & readonlyP;
5454
- } & {
5455
- readonly createdAt: (string) & readonlyP;
5456
- readonly updatedAt: (string) & readonlyP;
5457
- };
5458
- export declare type InternalResponse_DatagraphEntity = {
5459
- program: string;
5460
- version: string;
5461
- datetime: string;
5462
- status: string;
5463
- code?: number;
5464
- message: string;
5465
- data: DatagraphEntity;
5466
- };
5467
- export declare type CreateEntityBody = {
5468
- entity: DatagraphEntityDefinitionBody;
5469
- };
5470
- export declare type InternalResponse_Array_DatagraphEntity = {
5471
- program: string;
5472
- version: string;
5473
- datetime: string;
5474
- status: string;
5475
- code?: number;
5476
- message: string;
5477
- data: DatagraphEntity[];
5478
- };
5479
- export declare type UpdateEntityBody = {
5480
- entity: DatagraphEntityDefinitionBody;
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;
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;
5503
5163
  };
5504
5164
  } | {
5505
5165
  name: "create_oauth_client";
@@ -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;
@@ -18945,14 +18607,14 @@ export declare type Serialize_PushDatasource = {
18945
18607
  mode: "push";
18946
18608
  companyId: ObjectId;
18947
18609
  resourceGroupIds: ObjectId[];
18610
+ readonly configurationUpdatedAt: (string) & readonlyP;
18611
+ readonly archivedAt: (string | null) & readonlyP;
18948
18612
  versions: (ObjectId | (Document & DatasourceVersion & {
18949
18613
  _id: ObjectId;
18950
18614
  } & {
18951
18615
  __v: number;
18952
18616
  } & IObjectWithTypegooseFunction))[];
18953
- readonly archivedAt: (string | null) & readonlyP;
18954
18617
  status: DatasourceStatus;
18955
- readonly configurationUpdatedAt: (string) & readonlyP;
18956
18618
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
18957
18619
  readonly lastFailedIngestion?: (string) & readonlyP;
18958
18620
  readonly lastFailureReason?: (string) & readonlyP;
@@ -19169,14 +18831,14 @@ export declare type Serialize_WorkerDatasource = {
19169
18831
  mode: "worker";
19170
18832
  companyId: ObjectId;
19171
18833
  resourceGroupIds: ObjectId[];
18834
+ readonly configurationUpdatedAt: (string) & readonlyP;
18835
+ readonly archivedAt: (string | null) & readonlyP;
19172
18836
  versions: (ObjectId | (Document & WorkerDatasourceVersion & {
19173
18837
  _id: ObjectId;
19174
18838
  } & {
19175
18839
  __v: number;
19176
18840
  } & IObjectWithTypegooseFunction))[];
19177
- readonly archivedAt: (string | null) & readonlyP;
19178
18841
  status: DatasourceStatus;
19179
- readonly configurationUpdatedAt: (string) & readonlyP;
19180
18842
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
19181
18843
  readonly lastFailedIngestion?: (string) & readonlyP;
19182
18844
  readonly lastFailureReason?: (string) & readonlyP;
@@ -19407,14 +19069,14 @@ export declare type Serialize_ProxyDatasource = {
19407
19069
  mode: "proxy";
19408
19070
  companyId: ObjectId;
19409
19071
  resourceGroupIds: ObjectId[];
19072
+ readonly configurationUpdatedAt: (string) & readonlyP;
19073
+ readonly archivedAt: (string | null) & readonlyP;
19410
19074
  versions: (ObjectId | (Document & ProxyDatasourceVersion & {
19411
19075
  _id: ObjectId;
19412
19076
  } & {
19413
19077
  __v: number;
19414
19078
  } & IObjectWithTypegooseFunction))[];
19415
- readonly archivedAt: (string | null) & readonlyP;
19416
19079
  status: DatasourceStatus;
19417
- readonly configurationUpdatedAt: (string) & readonlyP;
19418
19080
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
19419
19081
  readonly lastFailedIngestion?: (string) & readonlyP;
19420
19082
  readonly lastFailureReason?: (string) & readonlyP;
@@ -19642,14 +19304,14 @@ export declare type Serialize_IngesterDatasource = {
19642
19304
  mode: "ingester";
19643
19305
  companyId: ObjectId;
19644
19306
  resourceGroupIds: ObjectId[];
19307
+ readonly configurationUpdatedAt: (string) & readonlyP;
19308
+ readonly archivedAt: (string | null) & readonlyP;
19645
19309
  versions: (ObjectId | (Document & IngesterDatasourceVersion & {
19646
19310
  _id: ObjectId;
19647
19311
  } & {
19648
19312
  __v: number;
19649
19313
  } & IObjectWithTypegooseFunction))[];
19650
- readonly archivedAt: (string | null) & readonlyP;
19651
19314
  status: DatasourceStatus;
19652
- readonly configurationUpdatedAt: (string) & readonlyP;
19653
19315
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
19654
19316
  readonly lastFailedIngestion?: (string) & readonlyP;
19655
19317
  readonly lastFailureReason?: (string) & readonlyP;
@@ -19862,97 +19524,581 @@ export declare type Serialize_PubsubDatasource = {
19862
19524
  enabled: boolean;
19863
19525
  };
19864
19526
  }[];
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";
19527
+ partitionCount: number;
19528
+ segments: {
19529
+ offlineSize: number;
19530
+ offlineReplication: number;
19531
+ realtimeSize: number;
19532
+ realtimeReplication: number;
19533
+ };
19534
+ retention?: {
19535
+ value: number;
19536
+ unit: "DAYS";
19537
+ };
19538
+ };
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
+ };
19673
+ };
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
+ };
19823
+ };
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;
19878
+ };
19879
+ };
19880
+ export declare type CreateSchemaBody = {
19881
+ schema: {
19882
+ name: string;
19883
+ datasourceId: string;
19884
+ columns: {
19885
+ name: string;
19886
+ type: FieldMapType;
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
+ }[];
19918
+ };
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;
19975
+ }[];
19976
+ }[];
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",