@rlvt/datasources-openapi-client 1.0.369 → 1.0.370

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5135,179 +5135,7 @@ export declare type InternalResponse_url_string = {
5135
5135
  url: string;
5136
5136
  };
5137
5137
  };
5138
- export declare type CreateSchemaBody = {
5139
- schema: {
5140
- name: string;
5141
- datasourceId: string;
5142
- columns: {
5143
- name: string;
5144
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5145
- nullable: boolean;
5146
- default?: string | number | (false) | (true) | string;
5147
- description?: string;
5148
- }[];
5149
- description?: string;
5150
- virtualColumns?: {
5151
- name: string;
5152
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5153
- query: string;
5154
- nullable: boolean;
5155
- description?: string;
5156
- }[];
5157
- uniqueKeys?: {
5158
- type: "UniqueKey";
5159
- columns: string[];
5160
- description?: string;
5161
- }[];
5162
- indexes?: {
5163
- type: "Index";
5164
- columns: string[];
5165
- description?: string;
5166
- }[];
5167
- relations?: {
5168
- type: "Relation";
5169
- columns: string[];
5170
- reference: {
5171
- table: string;
5172
- datasourceId: string;
5173
- columns: string[];
5174
- };
5175
- description?: string;
5176
- }[];
5177
- }[];
5178
- };
5179
- export declare type SchemaValidationIssue = {
5180
- path: (string | number)[];
5181
- message: string;
5182
- code: string;
5183
- };
5184
- export declare type RelationAnalysisResult = {
5185
- fromDatasourceId: string;
5186
- fromTable: string;
5187
- fromColumn: string;
5188
- fromDistinctCount: number | null;
5189
- toDatasourceId: string;
5190
- toTable: string;
5191
- toColumn: string;
5192
- toDistinctCount: number | null;
5193
- matchCount: number | null;
5194
- matchPercentage: number | null;
5195
- error?: string;
5196
- };
5197
- export declare type ValidateSchemaResponse = {
5198
- validation: {
5199
- success: true;
5200
- data: {
5201
- name: string;
5202
- datasourceId: string;
5203
- columns: {
5204
- name: string;
5205
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5206
- nullable: boolean;
5207
- default?: string | number | (false) | (true) | string;
5208
- description?: string;
5209
- }[];
5210
- description?: string;
5211
- virtualColumns?: {
5212
- name: string;
5213
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5214
- query: string;
5215
- nullable: boolean;
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" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5275
- default?: string | number | (false) | (true) | string;
5276
- description?: string;
5277
- nullable: boolean;
5278
- }[];
5279
- virtualColumns?: {
5280
- name: string;
5281
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5282
- query: string;
5283
- nullable: boolean;
5284
- description?: string;
5285
- }[];
5286
- uniqueKeys?: {
5287
- type: "UniqueKey";
5288
- columns: string[];
5289
- description?: string;
5290
- }[];
5291
- indexes?: {
5292
- type: "Index";
5293
- columns: string[];
5294
- description?: string;
5295
- }[];
5296
- relations?: {
5297
- type: "Relation";
5298
- columns: string[];
5299
- reference: {
5300
- table: string;
5301
- datasourceId: string;
5302
- columns: string[];
5303
- };
5304
- description?: string;
5305
- }[];
5306
- }[]) & readonlyP;
5307
- };
5308
- export declare type DatagraphSchemaVersion = Serialize_DatagraphSchemaVersion;
5309
- export declare type IObjectWithTypegooseFunction = {};
5310
- export declare type InternalResponse_Array_SerializedDatagraphSchema = {
5138
+ export declare type InternalResponse_current_Union_null_name_CONFIGURE_NAME_name_CONFIGURE_RESOURCE_GROUP_IDS_name_CONFIGURE_SOURCES_name_CONFIGURE_FIELDS_name_CONFIGURE_FIELD_field_name_string_type_Union_STRING_NUMBER_DATETIME_DATETIME_ISO_BOOLEAN_ADDRESS_1_ADDRESS_2_ADDRESS_3_ADDRESS_4_CITY_ZIPCODE_COUNTRY_LATITUDE_LONGITUDE_REFERENCE_ID_REFERENCE_IDS_PRODUCT_ID_PRICE_URL_IMAGE_URL_NAME_DESCRIPTION_PRODUCT_LIFETIME_LOCALE_ARRAY_STRING_ARRAY_NUMBER_RECORD_STRING_RECORD_NUMBER_COMPANY_ID_EVENT_NAME_EVENT_ID_USER_TMP_ID_USER_AGENT_WORKFLOW_ID_WORKFLOW_VERSION_ID_WORKFLOW_EVENT_MODE_TRANSACTION_ID_TRANSACTION_SOURCE_TRANSACTION_METADATA_PRODUCT_QUANTITY_WORKFLOW_PURCHASE_USER_WORKFLOW_USER_WORKFLOW_ONSITE_USER_USER_BIRTHDAY_USER_AGE_LOOP_EMAIL_CONTACT_ID_LOOP_WEB_CONTACT_ID_LOOP_MOBILE_CONTACT_ID_name_CREATE_OAUTH_CLIENT_configurationId_string_name_AUTHORIZE_OAUTH_CLIENT_slug_string_name_CONFIGURE_THRESHOLDS_name_CONFIGURE_API_KEY_slug_partoo_name_PATCH_name_VALIDATE_name_CONFIGURE_GOOGLE_TAG_MANAGER_name_CONFIGURE_REELEVANT_ANALYTICS_SCRIPT_name_CONFIGURE_PRODUCT_DATASOURCE_SOURCE_name_CONFIGURE_TRACKING_DATASOURCE_SOURCE_name_CONFIGURE_BEST_PRODUCT_QUERY_name_CONFIGURE_BEST_PRODUCT_FIELD_name_CONFIGURE_FETCHER_name_CONFIGURE_MERGE_DATASOURCE_SOURCE_name_CONFIGURE_MERGE_DATASOURCE_DEPENDENCY_name_CONFIGURE_MERGE_MAPPING_name_CONFIGURE_BOUGHT_TOGETHER_name_CONFIGURE_TOP_ATTRIBUTES_name_CONFIGURE_DESTINATION_type_smtp_name_CONFIGURE_HIERARCHY_next_Array_Union_name_CONFIGURE_NAME_name_CONFIGURE_RESOURCE_GROUP_IDS_name_CONFIGURE_SOURCES_name_CONFIGURE_FIELDS_name_CONFIGURE_FIELD_field_name_string_type_Union_STRING_NUMBER_DATETIME_DATETIME_ISO_BOOLEAN_ADDRESS_1_ADDRESS_2_ADDRESS_3_ADDRESS_4_CITY_ZIPCODE_COUNTRY_LATITUDE_LONGITUDE_REFERENCE_ID_REFERENCE_IDS_PRODUCT_ID_PRICE_URL_IMAGE_URL_NAME_DESCRIPTION_PRODUCT_LIFETIME_LOCALE_ARRAY_STRING_ARRAY_NUMBER_RECORD_STRING_RECORD_NUMBER_COMPANY_ID_EVENT_NAME_EVENT_ID_USER_TMP_ID_USER_AGENT_WORKFLOW_ID_WORKFLOW_VERSION_ID_WORKFLOW_EVENT_MODE_TRANSACTION_ID_TRANSACTION_SOURCE_TRANSACTION_METADATA_PRODUCT_QUANTITY_WORKFLOW_PURCHASE_USER_WORKFLOW_USER_WORKFLOW_ONSITE_USER_USER_BIRTHDAY_USER_AGE_LOOP_EMAIL_CONTACT_ID_LOOP_WEB_CONTACT_ID_LOOP_MOBILE_CONTACT_ID_name_CREATE_OAUTH_CLIENT_configurationId_string_name_AUTHORIZE_OAUTH_CLIENT_slug_string_name_CONFIGURE_THRESHOLDS_name_CONFIGURE_API_KEY_slug_partoo_name_PATCH_name_VALIDATE_name_CONFIGURE_GOOGLE_TAG_MANAGER_name_CONFIGURE_REELEVANT_ANALYTICS_SCRIPT_name_CONFIGURE_PRODUCT_DATASOURCE_SOURCE_name_CONFIGURE_TRACKING_DATASOURCE_SOURCE_name_CONFIGURE_BEST_PRODUCT_QUERY_name_CONFIGURE_BEST_PRODUCT_FIELD_name_CONFIGURE_FETCHER_name_CONFIGURE_MERGE_DATASOURCE_SOURCE_name_CONFIGURE_MERGE_DATASOURCE_DEPENDENCY_name_CONFIGURE_MERGE_MAPPING_name_CONFIGURE_BOUGHT_TOGETHER_name_CONFIGURE_TOP_ATTRIBUTES_name_CONFIGURE_DESTINATION_type_smtp_name_CONFIGURE_HIERARCHY = {
5311
5139
  program: string;
5312
5140
  version: string;
5313
5141
  datetime: string;
@@ -5315,150 +5143,19 @@ export declare type InternalResponse_Array_SerializedDatagraphSchema = {
5315
5143
  code?: number;
5316
5144
  message: string;
5317
5145
  data: {
5318
- readonly companyId: (ObjectId) & readonlyP;
5319
- readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5320
- readonly versions: ((ObjectId | (Document & DatagraphSchemaVersion & {
5321
- _id: ObjectId;
5322
- } & {
5323
- __v: number;
5324
- } & IObjectWithTypegooseFunction))[]) & readonlyP;
5325
- archivedAt: string | null;
5326
- }[];
5327
- };
5328
- export declare type UpdateSchemaBody = {
5329
- schema: {
5330
- name: string;
5331
- datasourceId: string;
5332
- columns: {
5333
- name: string;
5334
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5335
- nullable: boolean;
5336
- default?: string | number | (false) | (true) | string;
5337
- description?: string;
5338
- }[];
5339
- description?: string;
5340
- virtualColumns?: {
5341
- name: string;
5342
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5343
- query: string;
5344
- nullable: boolean;
5345
- description?: string;
5346
- }[];
5347
- uniqueKeys?: {
5348
- type: "UniqueKey";
5349
- columns: string[];
5350
- description?: string;
5351
- }[];
5352
- indexes?: {
5353
- type: "Index";
5354
- columns: string[];
5355
- description?: string;
5356
- }[];
5357
- relations?: {
5358
- type: "Relation";
5359
- columns: string[];
5360
- reference: {
5361
- table: string;
5362
- datasourceId: string;
5363
- columns: string[];
5364
- };
5365
- description?: string;
5366
- }[];
5367
- }[];
5368
- };
5369
- export declare enum DatagraphEntityVersionState {
5370
- DRAFT = "draft",
5371
- INACTIVE = "inactive",
5372
- LIVE = "live"
5373
- }
5374
- export declare type EntityParameter = {
5375
- name: string;
5376
- shortDescription: string;
5377
- fullDescription: string | null;
5378
- primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
5379
- index: number;
5380
- };
5381
- export declare type EntityAnswer = {
5382
- name: string;
5383
- type: "string" | "boolean" | "datetime" | "integer" | "date" | "decimal" | "text";
5384
- };
5385
- export declare type Entity = {
5386
- name: string;
5387
- sql: string | null;
5388
- options: EntityParameter[];
5389
- readonly answers: (EntityAnswer[]) & readonlyP;
5390
- };
5391
- export declare type DatagraphEntityVersion = {
5392
- readonly companyId: (ObjectId) & readonlyP;
5393
- readonly state: (DatagraphEntityVersionState) & readonlyP;
5394
- readonly definition: (Entity) & readonlyP;
5395
- };
5396
- export declare type Serialize_DatagraphEntity = {
5397
- readonly companyId: (ObjectId) & readonlyP;
5398
- readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5399
- readonly versions: ((ObjectId | (Document & DatagraphEntityVersion & {
5400
- _id: ObjectId;
5401
- } & {
5402
- __v: number;
5403
- } & IObjectWithTypegooseFunction))[]) & readonlyP;
5404
- readonly archivedAt: (string | null) & readonlyP;
5405
- };
5406
- export declare type DatagraphEntity = Serialize_DatagraphEntity & {
5407
- readonly id: (string) & readonlyP;
5408
- } & {
5409
- readonly createdAt: (string) & readonlyP;
5410
- readonly updatedAt: (string) & readonlyP;
5411
- };
5412
- export declare type InternalResponse_DatagraphEntity = {
5413
- program: string;
5414
- version: string;
5415
- datetime: string;
5416
- status: string;
5417
- code?: number;
5418
- message: string;
5419
- data: DatagraphEntity;
5420
- };
5421
- export declare type DatagraphEntityDefinitionBody = {
5422
- name: string;
5423
- sql: string | null;
5424
- options: EntityParameter[];
5425
- };
5426
- export declare type CreateEntityBody = {
5427
- entity: DatagraphEntityDefinitionBody;
5428
- };
5429
- export declare type InternalResponse_Array_DatagraphEntity = {
5430
- program: string;
5431
- version: string;
5432
- datetime: string;
5433
- status: string;
5434
- code?: number;
5435
- message: string;
5436
- data: DatagraphEntity[];
5437
- };
5438
- export declare type UpdateEntityBody = {
5439
- entity: DatagraphEntityDefinitionBody;
5440
- };
5441
- 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 = {
5442
- program: string;
5443
- version: string;
5444
- datetime: string;
5445
- status: string;
5446
- code?: number;
5447
- message: string;
5448
- data: {
5449
- current: {
5450
- name: "configure_name";
5451
- } | {
5452
- name: "configure_resource_group_ids";
5453
- } | {
5454
- name: "configure_sources";
5455
- } | {
5456
- name: "configure_fields";
5457
- } | {
5458
- name: "configure_field";
5459
- field: {
5460
- name: string;
5461
- type: FieldMapType;
5146
+ current: {
5147
+ name: "configure_name";
5148
+ } | {
5149
+ name: "configure_resource_group_ids";
5150
+ } | {
5151
+ name: "configure_sources";
5152
+ } | {
5153
+ name: "configure_fields";
5154
+ } | {
5155
+ name: "configure_field";
5156
+ field: {
5157
+ name: string;
5158
+ type: FieldMapType;
5462
5159
  };
5463
5160
  } | {
5464
5161
  name: "create_oauth_client";
@@ -18682,7 +18379,9 @@ export declare type InternalResponse_DatasourceSettings = {
18682
18379
  message: string;
18683
18380
  data: DatasourceSettings;
18684
18381
  };
18382
+ export declare type Document = {};
18685
18383
  export declare type LogLevel = 0 | 1 | 2;
18384
+ export declare type IObjectWithTypegooseFunction = {};
18686
18385
  export declare type InternalResponse_Array_Intersection_Document_Omit_IObjectWithTypegooseFunction = {
18687
18386
  program: string;
18688
18387
  version: string;
@@ -18937,14 +18636,14 @@ export declare type Serialize_PushDatasource = {
18937
18636
  mode: "push";
18938
18637
  companyId: ObjectId;
18939
18638
  resourceGroupIds: ObjectId[];
18639
+ readonly configurationUpdatedAt: (string) & readonlyP;
18640
+ readonly archivedAt: (string | null) & readonlyP;
18940
18641
  versions: (ObjectId | (Document & DatasourceVersion & {
18941
18642
  _id: ObjectId;
18942
18643
  } & {
18943
18644
  __v: number;
18944
18645
  } & IObjectWithTypegooseFunction))[];
18945
- readonly archivedAt: (string | null) & readonlyP;
18946
18646
  status: DatasourceStatus;
18947
- readonly configurationUpdatedAt: (string) & readonlyP;
18948
18647
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
18949
18648
  readonly lastFailedIngestion?: (string) & readonlyP;
18950
18649
  readonly lastFailureReason?: (string) & readonlyP;
@@ -19161,14 +18860,14 @@ export declare type Serialize_WorkerDatasource = {
19161
18860
  mode: "worker";
19162
18861
  companyId: ObjectId;
19163
18862
  resourceGroupIds: ObjectId[];
18863
+ readonly configurationUpdatedAt: (string) & readonlyP;
18864
+ readonly archivedAt: (string | null) & readonlyP;
19164
18865
  versions: (ObjectId | (Document & WorkerDatasourceVersion & {
19165
18866
  _id: ObjectId;
19166
18867
  } & {
19167
18868
  __v: number;
19168
18869
  } & IObjectWithTypegooseFunction))[];
19169
- readonly archivedAt: (string | null) & readonlyP;
19170
18870
  status: DatasourceStatus;
19171
- readonly configurationUpdatedAt: (string) & readonlyP;
19172
18871
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
19173
18872
  readonly lastFailedIngestion?: (string) & readonlyP;
19174
18873
  readonly lastFailureReason?: (string) & readonlyP;
@@ -19399,14 +19098,14 @@ export declare type Serialize_ProxyDatasource = {
19399
19098
  mode: "proxy";
19400
19099
  companyId: ObjectId;
19401
19100
  resourceGroupIds: ObjectId[];
19101
+ readonly configurationUpdatedAt: (string) & readonlyP;
19102
+ readonly archivedAt: (string | null) & readonlyP;
19402
19103
  versions: (ObjectId | (Document & ProxyDatasourceVersion & {
19403
19104
  _id: ObjectId;
19404
19105
  } & {
19405
19106
  __v: number;
19406
19107
  } & IObjectWithTypegooseFunction))[];
19407
- readonly archivedAt: (string | null) & readonlyP;
19408
19108
  status: DatasourceStatus;
19409
- readonly configurationUpdatedAt: (string) & readonlyP;
19410
19109
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
19411
19110
  readonly lastFailedIngestion?: (string) & readonlyP;
19412
19111
  readonly lastFailureReason?: (string) & readonlyP;
@@ -19634,14 +19333,14 @@ export declare type Serialize_IngesterDatasource = {
19634
19333
  mode: "ingester";
19635
19334
  companyId: ObjectId;
19636
19335
  resourceGroupIds: ObjectId[];
19336
+ readonly configurationUpdatedAt: (string) & readonlyP;
19337
+ readonly archivedAt: (string | null) & readonlyP;
19637
19338
  versions: (ObjectId | (Document & IngesterDatasourceVersion & {
19638
19339
  _id: ObjectId;
19639
19340
  } & {
19640
19341
  __v: number;
19641
19342
  } & IObjectWithTypegooseFunction))[];
19642
- readonly archivedAt: (string | null) & readonlyP;
19643
19343
  status: DatasourceStatus;
19644
- readonly configurationUpdatedAt: (string) & readonlyP;
19645
19344
  readonly lastSuccessfulIngestion?: (string) & readonlyP;
19646
19345
  readonly lastFailedIngestion?: (string) & readonlyP;
19647
19346
  readonly lastFailureReason?: (string) & readonlyP;
@@ -19820,131 +19519,553 @@ export declare type Serialize_PubsubDatasource = {
19820
19519
  windowEnd: number;
19821
19520
  minPurchaseCount?: number;
19822
19521
  }[];
19823
- };
19824
- } | {
19825
- name: "product-exclusion";
19826
- params: {
19827
- mode: "inclusion" | "exclusion";
19828
- exclusionDatasourceId: string;
19829
- exclusionIdField: string;
19830
- productIdField: string;
19831
- };
19832
- } | {
19833
- name: "per-user";
19834
- params: {};
19835
- } | {
19836
- name: "generic-proxy-lock";
19837
- params: {
19838
- ttl: number;
19839
- };
19840
- } | {
19841
- name: "generic-proxy-aggregation";
19842
- params: {
19843
- targetField: string;
19844
- aggregationType: "sum" | "avg" | "min" | "max";
19845
- outputField: string;
19846
- };
19847
- }) & readonlyP;
19848
- storageOptions: {
19849
- destinations: {
19850
- type: "bigquery";
19851
- dataset: string;
19852
- tableName: string;
19853
- deduplicateOptions?: {
19854
- enabled: boolean;
19855
- };
19522
+ };
19523
+ } | {
19524
+ name: "product-exclusion";
19525
+ params: {
19526
+ mode: "inclusion" | "exclusion";
19527
+ exclusionDatasourceId: string;
19528
+ exclusionIdField: string;
19529
+ productIdField: string;
19530
+ };
19531
+ } | {
19532
+ name: "per-user";
19533
+ params: {};
19534
+ } | {
19535
+ name: "generic-proxy-lock";
19536
+ params: {
19537
+ ttl: number;
19538
+ };
19539
+ } | {
19540
+ name: "generic-proxy-aggregation";
19541
+ params: {
19542
+ targetField: string;
19543
+ aggregationType: "sum" | "avg" | "min" | "max";
19544
+ outputField: string;
19545
+ };
19546
+ }) & readonlyP;
19547
+ storageOptions: {
19548
+ destinations: {
19549
+ type: "bigquery";
19550
+ dataset: string;
19551
+ tableName: string;
19552
+ deduplicateOptions?: {
19553
+ enabled: boolean;
19554
+ };
19555
+ }[];
19556
+ partitionCount: number;
19557
+ segments: {
19558
+ offlineSize: number;
19559
+ offlineReplication: number;
19560
+ realtimeSize: number;
19561
+ realtimeReplication: number;
19562
+ };
19563
+ retention?: {
19564
+ value: number;
19565
+ unit: "DAYS";
19566
+ };
19567
+ };
19568
+ mode: "pubsub";
19569
+ companyId: ObjectId;
19570
+ resourceGroupIds: ObjectId[];
19571
+ readonly configurationUpdatedAt: (string) & readonlyP;
19572
+ readonly archivedAt: (string | null) & readonlyP;
19573
+ versions: (ObjectId | (Document & PubsubDatasourceVersion & {
19574
+ _id: ObjectId;
19575
+ } & {
19576
+ __v: number;
19577
+ } & IObjectWithTypegooseFunction))[];
19578
+ status: DatasourceStatus;
19579
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
19580
+ readonly lastFailedIngestion?: (string) & readonlyP;
19581
+ readonly lastFailureReason?: (string) & readonlyP;
19582
+ hierarchy: string[];
19583
+ readonly hasWarnings: (boolean) & readonlyP;
19584
+ };
19585
+ export declare type PubsubDatasource = Serialize_PubsubDatasource & {
19586
+ readonly id: (string) & readonlyP;
19587
+ } & {
19588
+ readonly createdAt: (string) & readonlyP;
19589
+ readonly updatedAt: (string) & readonlyP;
19590
+ };
19591
+ export declare type InternalResponse_Array_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19592
+ program: string;
19593
+ version: string;
19594
+ datetime: string;
19595
+ status: string;
19596
+ code?: number;
19597
+ message: string;
19598
+ data: (PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource)[];
19599
+ };
19600
+ export declare type FieldMap_With_Name_Type_Primitive = {
19601
+ name: string;
19602
+ type: FieldMapType;
19603
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19604
+ };
19605
+ export declare type QueriableField = FieldMap_With_Name_Type_Primitive & {
19606
+ required: boolean;
19607
+ unique: boolean;
19608
+ sortable: boolean;
19609
+ enum?: (string | number)[];
19610
+ allowedOperators: (("$eq" | "$ne" | "$contains" | "$notcontains" | "$startswith" | "$endswith" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "startswith" | "endswith" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$rangefuture" | "$rangepast" | "$nrangefuture" | "$nrangepast" | "rangefuture" | "rangepast" | "nrangefuture" | "nrangepast") | ("$eq" | "$ne" | "$contains" | "$notcontains" | "$startswith" | "$endswith" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "startswith" | "endswith" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$rangefuture" | "$rangepast" | "$nrangefuture" | "$nrangepast" | "rangefuture" | "rangepast" | "nrangefuture" | "nrangepast"))[];
19611
+ };
19612
+ export declare type InternalResponse_Union_Intersection_PushDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_WorkerDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_ProxyDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_IngesterDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_PubsubDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField = {
19613
+ program: string;
19614
+ version: string;
19615
+ datetime: string;
19616
+ status: string;
19617
+ code?: number;
19618
+ message: string;
19619
+ data: (PushDatasource & {
19620
+ example?: {
19621
+ [key: string]: AnyValue;
19622
+ };
19623
+ queriableFields?: QueriableField[];
19624
+ }) | (WorkerDatasource & {
19625
+ example?: {
19626
+ [key: string]: AnyValue;
19627
+ };
19628
+ queriableFields?: QueriableField[];
19629
+ }) | (ProxyDatasource & {
19630
+ example?: {
19631
+ [key: string]: AnyValue;
19632
+ };
19633
+ queriableFields?: QueriableField[];
19634
+ }) | (IngesterDatasource & {
19635
+ example?: {
19636
+ [key: string]: AnyValue;
19637
+ };
19638
+ queriableFields?: QueriableField[];
19639
+ }) | (PubsubDatasource & {
19640
+ example?: {
19641
+ [key: string]: AnyValue;
19642
+ };
19643
+ queriableFields?: QueriableField[];
19644
+ });
19645
+ };
19646
+ export declare type InternalResponse_example_Record = {
19647
+ program: string;
19648
+ version: string;
19649
+ datetime: string;
19650
+ status: string;
19651
+ code?: number;
19652
+ message: string;
19653
+ data: {
19654
+ example: {
19655
+ [key: string]: AnyValue;
19656
+ };
19657
+ };
19658
+ };
19659
+ export declare type InternalResponse_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19660
+ program: string;
19661
+ version: string;
19662
+ datetime: string;
19663
+ status: string;
19664
+ code?: number;
19665
+ message: string;
19666
+ data: PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource;
19667
+ };
19668
+ export declare type DatasourcePush = {
19669
+ name: "push";
19670
+ subtype: "email";
19671
+ };
19672
+ export declare type DatasourceGeneric = {
19673
+ name: "generic";
19674
+ subtype: DatasourceGenericSubType;
19675
+ };
19676
+ export declare type DatasourceCRM = {
19677
+ name: "crm";
19678
+ subtype: DatasourceCRMSubType;
19679
+ };
19680
+ export declare type DatasourceProduct = {
19681
+ name: "product";
19682
+ subtype: DatasourceProductSubType;
19683
+ };
19684
+ export declare type DatasourceLocation = {
19685
+ name: "location";
19686
+ subtype: DatasourceLocationSubType;
19687
+ };
19688
+ export declare type DatasourceLoop = {
19689
+ name: "loop";
19690
+ subtype: DatasourceLoopSubType;
19691
+ };
19692
+ export declare type InternalResponse_Intersection_bucket_string_path_string_format_Union_type_csv_options_csvDelimiter_Union_undefined_string_csvColumns_Union_undefined_Array_string_type_ndjson_options__type_json_options_rootPath_string_type_xml_options_rootPath_string_type_xlsx_options__type_parquet_options_columnsList_Union_undefined_Array_string_version_Union_undefined_string_type_avro_options__textEncoding_string_PgpDecryptionOptions = {
19693
+ program: string;
19694
+ version: string;
19695
+ datetime: string;
19696
+ status: string;
19697
+ code?: number;
19698
+ message: string;
19699
+ data: {
19700
+ bucket: string;
19701
+ path: string;
19702
+ format: {
19703
+ type: "csv";
19704
+ options: {
19705
+ csvDelimiter?: string;
19706
+ csvColumns?: string[];
19707
+ };
19708
+ } | {
19709
+ type: "ndjson";
19710
+ options: {};
19711
+ } | {
19712
+ type: "json";
19713
+ options: {
19714
+ rootPath: string;
19715
+ };
19716
+ } | {
19717
+ type: "xml";
19718
+ options: {
19719
+ rootPath: string;
19720
+ };
19721
+ } | {
19722
+ type: "xlsx";
19723
+ options: {};
19724
+ } | {
19725
+ type: "parquet";
19726
+ options: {
19727
+ columnsList?: string[];
19728
+ version?: string;
19729
+ };
19730
+ } | {
19731
+ type: "avro";
19732
+ options: {};
19733
+ };
19734
+ textEncoding: string;
19735
+ } & PgpDecryptionOptions;
19736
+ };
19737
+ export declare type InternalResponse_password_string = {
19738
+ program: string;
19739
+ version: string;
19740
+ datetime: string;
19741
+ status: string;
19742
+ code?: number;
19743
+ message: string;
19744
+ data: {
19745
+ password: string;
19746
+ };
19747
+ };
19748
+ export declare type InternalResponse_fields_Array_Intersection_FieldMapPlain_rulesPerSources_Record = {
19749
+ program: string;
19750
+ version: string;
19751
+ datetime: string;
19752
+ status: string;
19753
+ code?: number;
19754
+ message: string;
19755
+ data: {
19756
+ fields: ({
19757
+ name: string;
19758
+ type: FieldMapType;
19759
+ source?: FieldSource;
19760
+ selected: boolean;
19761
+ ignoreIfMissing?: boolean;
19762
+ metadata?: {
19763
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19764
+ };
19765
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19766
+ } & {
19767
+ rulesPerSources: {
19768
+ [key: string]: (({
19769
+ name: "static";
19770
+ params: {
19771
+ value: string | number;
19772
+ };
19773
+ } | {
19774
+ name: "path";
19775
+ params: {
19776
+ value: string;
19777
+ };
19778
+ } | {
19779
+ name: "path";
19780
+ params: {
19781
+ fromRoot: true;
19782
+ value: string;
19783
+ };
19784
+ }) | ({
19785
+ name: "static";
19786
+ params: {
19787
+ value: string | number;
19788
+ };
19789
+ } | {
19790
+ name: "path";
19791
+ params: {
19792
+ value: string;
19793
+ };
19794
+ } | {
19795
+ name: "path";
19796
+ params: {
19797
+ fromRoot: true;
19798
+ value: string;
19799
+ };
19800
+ } | {
19801
+ name: "array_find";
19802
+ params: {
19803
+ key: string;
19804
+ operator: "=" | "!=";
19805
+ value: string | number;
19806
+ };
19807
+ } | {
19808
+ name: "array_find";
19809
+ params: {
19810
+ conditions: Condition[];
19811
+ };
19812
+ } | {
19813
+ name: "array_find";
19814
+ params: {
19815
+ key: string;
19816
+ operator: "=" | "!=";
19817
+ valuePath: string;
19818
+ fromFormatted?: boolean;
19819
+ };
19820
+ } | {
19821
+ name: "array_find";
19822
+ params: {
19823
+ conditions: (Condition_Without_Value & {
19824
+ evaluateValue: string;
19825
+ })[];
19826
+ };
19827
+ } | {
19828
+ name: "fallback";
19829
+ params: FieldMapFallbackRulePayload;
19830
+ } | {
19831
+ name: "fallback";
19832
+ params: FieldMapFallbackRulePayload_Without_Path_FromFormatted & {
19833
+ staticValue: string | number | string[] | number[] | {
19834
+ [key: string]: string;
19835
+ } | {
19836
+ [key: string]: number;
19837
+ };
19838
+ };
19839
+ } | {
19840
+ name: "fallback_if";
19841
+ params: FieldMapFallbackRulePayload & {
19842
+ conditions: (Condition | (Condition_Without_Value & {
19843
+ evaluateValue: string;
19844
+ }))[];
19845
+ };
19846
+ } | {
19847
+ name: "exclude_from_record";
19848
+ params: {
19849
+ keys: string[];
19850
+ };
19851
+ } | {
19852
+ name: "decrypt";
19853
+ params: {
19854
+ passwordPrefixPath?: string;
19855
+ };
19856
+ } | {
19857
+ name: "interpolate";
19858
+ params: {
19859
+ value: string;
19860
+ };
19861
+ } | {
19862
+ name: "custom";
19863
+ params: {
19864
+ value: string;
19865
+ };
19866
+ } | {
19867
+ name: "split";
19868
+ params: {
19869
+ separator: string;
19870
+ };
19871
+ } | {
19872
+ name: "case";
19873
+ params: {
19874
+ cases: {
19875
+ conditions: Condition_Without_Path[];
19876
+ value: string;
19877
+ }[];
19878
+ };
19879
+ } | {
19880
+ name: "hash";
19881
+ params: {
19882
+ algorithm: string;
19883
+ salt?: string;
19884
+ };
19885
+ } | {
19886
+ name: "decipher";
19887
+ params: {
19888
+ algorithm: "aes-128-cbc" | "aes-192-cbc" | "aes-256-cbc" | "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm" | "aes-128-ctr" | "aes-192-ctr" | "aes-256-ctr" | "aes-128-ecb" | "aes-192-ecb" | "aes-256-ecb";
19889
+ key: string;
19890
+ iv?: string;
19891
+ inputEncoding?: "hex" | "base64";
19892
+ };
19893
+ }))[];
19894
+ };
19895
+ })[];
19896
+ };
19897
+ };
19898
+ export declare type CreateSchemaBody = {
19899
+ schema: {
19900
+ name: string;
19901
+ datasourceId: string;
19902
+ columns: {
19903
+ name: string;
19904
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19905
+ nullable: boolean;
19906
+ default?: string | number | (false) | (true) | string;
19907
+ description?: string;
19908
+ }[];
19909
+ description?: string;
19910
+ indexes?: {
19911
+ type: "Index";
19912
+ columns: string[];
19913
+ description?: string;
19914
+ }[];
19915
+ virtualColumns?: {
19916
+ name: string;
19917
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19918
+ query: string;
19919
+ nullable: boolean;
19920
+ description?: string;
19921
+ }[];
19922
+ uniqueKeys?: {
19923
+ type: "UniqueKey";
19924
+ columns: string[];
19925
+ description?: string;
19926
+ }[];
19927
+ relations?: {
19928
+ type: "Relation";
19929
+ columns: string[];
19930
+ reference: {
19931
+ table: string;
19932
+ datasourceId: string;
19933
+ columns: string[];
19934
+ };
19935
+ description?: string;
19936
+ }[];
19937
+ }[];
19938
+ };
19939
+ export declare type SchemaValidationIssue = {
19940
+ path: (string | number)[];
19941
+ message: string;
19942
+ code: string;
19943
+ };
19944
+ export declare type RelationAnalysisResult = {
19945
+ fromDatasourceId: string;
19946
+ fromTable: string;
19947
+ fromColumn: string;
19948
+ fromDistinctCount: number | null;
19949
+ toDatasourceId: string;
19950
+ toTable: string;
19951
+ toColumn: string;
19952
+ toDistinctCount: number | null;
19953
+ matchCount: number | null;
19954
+ matchPercentage: number | null;
19955
+ error?: string;
19956
+ };
19957
+ export declare type ValidateSchemaResponse = {
19958
+ validation: {
19959
+ success: true;
19960
+ data: {
19961
+ name: string;
19962
+ datasourceId: string;
19963
+ columns: {
19964
+ name: string;
19965
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19966
+ nullable: boolean;
19967
+ default?: string | number | (false) | (true) | string;
19968
+ description?: string;
19969
+ }[];
19970
+ description?: string;
19971
+ indexes?: {
19972
+ type: "Index";
19973
+ columns: string[];
19974
+ description?: string;
19975
+ }[];
19976
+ virtualColumns?: {
19977
+ name: string;
19978
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19979
+ query: string;
19980
+ nullable: boolean;
19981
+ description?: string;
19982
+ }[];
19983
+ uniqueKeys?: {
19984
+ type: "UniqueKey";
19985
+ columns: string[];
19986
+ description?: string;
19987
+ }[];
19988
+ relations?: {
19989
+ type: "Relation";
19990
+ columns: string[];
19991
+ reference: {
19992
+ table: string;
19993
+ datasourceId: string;
19994
+ columns: string[];
19995
+ };
19996
+ description?: string;
19997
+ }[];
19856
19998
  }[];
19857
- partitionCount: number;
19858
- segments: {
19859
- offlineSize: number;
19860
- offlineReplication: number;
19861
- realtimeSize: number;
19862
- realtimeReplication: number;
19863
- };
19864
- retention?: {
19865
- value: number;
19866
- unit: "DAYS";
19999
+ } | {
20000
+ success: false;
20001
+ error: {
20002
+ issues: SchemaValidationIssue[];
19867
20003
  };
19868
20004
  };
19869
- mode: "pubsub";
19870
- companyId: ObjectId;
19871
- resourceGroupIds: ObjectId[];
19872
- versions: (ObjectId | (Document & PubsubDatasourceVersion & {
19873
- _id: ObjectId;
19874
- } & {
19875
- __v: number;
19876
- } & IObjectWithTypegooseFunction))[];
19877
- readonly archivedAt: (string | null) & readonlyP;
19878
- status: DatasourceStatus;
19879
- readonly configurationUpdatedAt: (string) & readonlyP;
19880
- readonly lastSuccessfulIngestion?: (string) & readonlyP;
19881
- readonly lastFailedIngestion?: (string) & readonlyP;
19882
- readonly lastFailureReason?: (string) & readonlyP;
19883
- hierarchy: string[];
19884
- readonly hasWarnings: (boolean) & readonlyP;
19885
- };
19886
- export declare type PubsubDatasource = Serialize_PubsubDatasource & {
19887
- readonly id: (string) & readonlyP;
19888
- } & {
19889
- readonly createdAt: (string) & readonlyP;
19890
- readonly updatedAt: (string) & readonlyP;
20005
+ relations: RelationAnalysisResult[];
19891
20006
  };
19892
- export declare type InternalResponse_Array_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
20007
+ export declare type InternalResponse_ValidateSchemaResponse = {
19893
20008
  program: string;
19894
20009
  version: string;
19895
20010
  datetime: string;
19896
20011
  status: string;
19897
20012
  code?: number;
19898
20013
  message: string;
19899
- data: (PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource)[];
19900
- };
19901
- export declare type FieldMap_With_Name_Type_Primitive = {
19902
- name: string;
19903
- type: FieldMapType;
19904
- readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
20014
+ data: ValidateSchemaResponse;
19905
20015
  };
19906
- export declare type QueriableField = FieldMap_With_Name_Type_Primitive & {
19907
- required: boolean;
19908
- unique: boolean;
19909
- sortable: boolean;
19910
- enum?: (string | number)[];
19911
- 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"))[];
20016
+ export declare type ValidateSchemaBody = {
20017
+ schema: AnyValue;
19912
20018
  };
19913
- 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 = {
19914
- program: string;
19915
- version: string;
19916
- datetime: string;
19917
- status: string;
19918
- code?: number;
19919
- message: string;
19920
- data: (PushDatasource & {
19921
- example?: {
19922
- [key: string]: AnyValue;
19923
- };
19924
- queriableFields?: QueriableField[];
19925
- }) | (WorkerDatasource & {
19926
- example?: {
19927
- [key: string]: AnyValue;
19928
- };
19929
- queriableFields?: QueriableField[];
19930
- }) | (ProxyDatasource & {
19931
- example?: {
19932
- [key: string]: AnyValue;
19933
- };
19934
- queriableFields?: QueriableField[];
19935
- }) | (IngesterDatasource & {
19936
- example?: {
19937
- [key: string]: AnyValue;
19938
- };
19939
- queriableFields?: QueriableField[];
19940
- }) | (PubsubDatasource & {
19941
- example?: {
19942
- [key: string]: AnyValue;
19943
- };
19944
- queriableFields?: QueriableField[];
19945
- });
20019
+ export declare enum DatagraphSchemaVersionState {
20020
+ DRAFT = "draft",
20021
+ LIVE = "live",
20022
+ INACTIVE = "inactive"
20023
+ }
20024
+ export declare type Serialize_DatagraphSchemaVersion = {
20025
+ readonly companyId: (ObjectId) & readonlyP;
20026
+ readonly state: (DatagraphSchemaVersionState) & readonlyP;
20027
+ readonly definition: ({
20028
+ name: string;
20029
+ datasourceId: string;
20030
+ description?: string;
20031
+ indexes?: {
20032
+ type: "Index";
20033
+ columns: string[];
20034
+ description?: string;
20035
+ }[];
20036
+ columns: {
20037
+ name: string;
20038
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20039
+ default?: string | number | (false) | (true) | string;
20040
+ description?: string;
20041
+ nullable: boolean;
20042
+ }[];
20043
+ virtualColumns?: {
20044
+ name: string;
20045
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20046
+ query: string;
20047
+ nullable: boolean;
20048
+ description?: string;
20049
+ }[];
20050
+ uniqueKeys?: {
20051
+ type: "UniqueKey";
20052
+ columns: string[];
20053
+ description?: string;
20054
+ }[];
20055
+ relations?: {
20056
+ type: "Relation";
20057
+ columns: string[];
20058
+ reference: {
20059
+ table: string;
20060
+ datasourceId: string;
20061
+ columns: string[];
20062
+ };
20063
+ description?: string;
20064
+ }[];
20065
+ }[]) & readonlyP;
19946
20066
  };
19947
- export declare type InternalResponse_example_Record = {
20067
+ export declare type DatagraphSchemaVersion = Serialize_DatagraphSchemaVersion;
20068
+ export declare type InternalResponse_Array_SerializedDatagraphSchema = {
19948
20069
  program: string;
19949
20070
  version: string;
19950
20071
  datetime: string;
@@ -19952,249 +20073,128 @@ export declare type InternalResponse_example_Record = {
19952
20073
  code?: number;
19953
20074
  message: string;
19954
20075
  data: {
19955
- example: {
19956
- [key: string]: AnyValue;
19957
- };
19958
- };
20076
+ readonly companyId: (ObjectId) & readonlyP;
20077
+ readonly resourceGroupIds: (ObjectId[]) & readonlyP;
20078
+ archivedAt: string | null;
20079
+ readonly versions: ((ObjectId | (Document & DatagraphSchemaVersion & {
20080
+ _id: ObjectId;
20081
+ } & {
20082
+ __v: number;
20083
+ } & IObjectWithTypegooseFunction))[]) & readonlyP;
20084
+ }[];
19959
20085
  };
19960
- export declare type InternalResponse_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19961
- program: string;
19962
- version: string;
19963
- datetime: string;
19964
- status: string;
19965
- code?: number;
19966
- message: string;
19967
- data: PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource;
20086
+ export declare type UpdateSchemaBody = {
20087
+ schema: {
20088
+ name: string;
20089
+ datasourceId: string;
20090
+ columns: {
20091
+ name: string;
20092
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20093
+ nullable: boolean;
20094
+ default?: string | number | (false) | (true) | string;
20095
+ description?: string;
20096
+ }[];
20097
+ description?: string;
20098
+ indexes?: {
20099
+ type: "Index";
20100
+ columns: string[];
20101
+ description?: string;
20102
+ }[];
20103
+ virtualColumns?: {
20104
+ name: string;
20105
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
20106
+ query: string;
20107
+ nullable: boolean;
20108
+ description?: string;
20109
+ }[];
20110
+ uniqueKeys?: {
20111
+ type: "UniqueKey";
20112
+ columns: string[];
20113
+ description?: string;
20114
+ }[];
20115
+ relations?: {
20116
+ type: "Relation";
20117
+ columns: string[];
20118
+ reference: {
20119
+ table: string;
20120
+ datasourceId: string;
20121
+ columns: string[];
20122
+ };
20123
+ description?: string;
20124
+ }[];
20125
+ }[];
19968
20126
  };
19969
- export declare type DatasourcePush = {
19970
- name: "push";
19971
- subtype: "email";
20127
+ export declare enum DatagraphEntityVersionState {
20128
+ DRAFT = "draft",
20129
+ INACTIVE = "inactive",
20130
+ LIVE = "live"
20131
+ }
20132
+ export declare type EntityParameter = {
20133
+ name: string;
20134
+ shortDescription: string;
20135
+ fullDescription: string | null;
20136
+ primitive: "string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}";
20137
+ index: number;
19972
20138
  };
19973
- export declare type DatasourceGeneric = {
19974
- name: "generic";
19975
- subtype: DatasourceGenericSubType;
20139
+ export declare type EntityAnswer = {
20140
+ name: string;
20141
+ type: "string" | "boolean" | "datetime" | "date" | "text" | "decimal" | "integer";
19976
20142
  };
19977
- export declare type DatasourceCRM = {
19978
- name: "crm";
19979
- subtype: DatasourceCRMSubType;
20143
+ export declare type Entity = {
20144
+ name: string;
20145
+ sql: string | null;
20146
+ options: EntityParameter[];
20147
+ readonly answers: (EntityAnswer[]) & readonlyP;
19980
20148
  };
19981
- export declare type DatasourceProduct = {
19982
- name: "product";
19983
- subtype: DatasourceProductSubType;
20149
+ export declare type DatagraphEntityVersion = {
20150
+ readonly companyId: (ObjectId) & readonlyP;
20151
+ readonly state: (DatagraphEntityVersionState) & readonlyP;
20152
+ readonly definition: (Entity) & readonlyP;
19984
20153
  };
19985
- export declare type DatasourceLocation = {
19986
- name: "location";
19987
- subtype: DatasourceLocationSubType;
20154
+ export declare type Serialize_DatagraphEntity = {
20155
+ readonly companyId: (ObjectId) & readonlyP;
20156
+ readonly resourceGroupIds: (ObjectId[]) & readonlyP;
20157
+ readonly archivedAt: (string | null) & readonlyP;
20158
+ readonly versions: ((ObjectId | (Document & DatagraphEntityVersion & {
20159
+ _id: ObjectId;
20160
+ } & {
20161
+ __v: number;
20162
+ } & IObjectWithTypegooseFunction))[]) & readonlyP;
19988
20163
  };
19989
- export declare type DatasourceLoop = {
19990
- name: "loop";
19991
- subtype: DatasourceLoopSubType;
20164
+ export declare type DatagraphEntity = Serialize_DatagraphEntity & {
20165
+ readonly id: (string) & readonlyP;
20166
+ } & {
20167
+ readonly createdAt: (string) & readonlyP;
20168
+ readonly updatedAt: (string) & readonlyP;
19992
20169
  };
19993
- export declare type InternalResponse_Intersection_bucket_string_path_string_format_Union_type_csv_options_csvDelimiter_Union_undefined_string_csvColumns_Union_undefined_Array_string_type_ndjson_options__type_json_options_rootPath_string_type_xml_options_rootPath_string_type_xlsx_options__type_parquet_options_columnsList_Union_undefined_Array_string_version_Union_undefined_string_type_avro_options__textEncoding_string_PgpDecryptionOptions = {
20170
+ export declare type InternalResponse_DatagraphEntity = {
19994
20171
  program: string;
19995
20172
  version: string;
19996
20173
  datetime: string;
19997
20174
  status: string;
19998
20175
  code?: number;
19999
20176
  message: string;
20000
- data: {
20001
- bucket: string;
20002
- path: string;
20003
- format: {
20004
- type: "csv";
20005
- options: {
20006
- csvDelimiter?: string;
20007
- csvColumns?: string[];
20008
- };
20009
- } | {
20010
- type: "ndjson";
20011
- options: {};
20012
- } | {
20013
- type: "json";
20014
- options: {
20015
- rootPath: string;
20016
- };
20017
- } | {
20018
- type: "xml";
20019
- options: {
20020
- rootPath: string;
20021
- };
20022
- } | {
20023
- type: "xlsx";
20024
- options: {};
20025
- } | {
20026
- type: "parquet";
20027
- options: {
20028
- columnsList?: string[];
20029
- version?: string;
20030
- };
20031
- } | {
20032
- type: "avro";
20033
- options: {};
20034
- };
20035
- textEncoding: string;
20036
- } & PgpDecryptionOptions;
20177
+ data: DatagraphEntity;
20037
20178
  };
20038
- export declare type InternalResponse_password_string = {
20039
- program: string;
20040
- version: string;
20041
- datetime: string;
20042
- status: string;
20043
- code?: number;
20044
- message: string;
20045
- data: {
20046
- password: string;
20047
- };
20179
+ export declare type DatagraphEntityDefinitionBody = {
20180
+ name: string;
20181
+ sql: string | null;
20182
+ options: EntityParameter[];
20048
20183
  };
20049
- export declare type InternalResponse_fields_Array_Intersection_FieldMapPlain_rulesPerSources_Record = {
20184
+ export declare type CreateEntityBody = {
20185
+ entity: DatagraphEntityDefinitionBody;
20186
+ };
20187
+ export declare type InternalResponse_Array_DatagraphEntity = {
20050
20188
  program: string;
20051
20189
  version: string;
20052
20190
  datetime: string;
20053
20191
  status: string;
20054
20192
  code?: number;
20055
20193
  message: string;
20056
- data: {
20057
- fields: ({
20058
- name: string;
20059
- type: FieldMapType;
20060
- source?: FieldSource;
20061
- selected: boolean;
20062
- ignoreIfMissing?: boolean;
20063
- metadata?: {
20064
- locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
20065
- };
20066
- readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
20067
- } & {
20068
- rulesPerSources: {
20069
- [key: string]: (({
20070
- name: "static";
20071
- params: {
20072
- value: string | number;
20073
- };
20074
- } | {
20075
- name: "path";
20076
- params: {
20077
- value: string;
20078
- };
20079
- } | {
20080
- name: "path";
20081
- params: {
20082
- fromRoot: true;
20083
- value: string;
20084
- };
20085
- }) | ({
20086
- name: "static";
20087
- params: {
20088
- value: string | number;
20089
- };
20090
- } | {
20091
- name: "path";
20092
- params: {
20093
- value: string;
20094
- };
20095
- } | {
20096
- name: "path";
20097
- params: {
20098
- fromRoot: true;
20099
- value: string;
20100
- };
20101
- } | {
20102
- name: "array_find";
20103
- params: {
20104
- key: string;
20105
- operator: "=" | "!=";
20106
- value: string | number;
20107
- };
20108
- } | {
20109
- name: "array_find";
20110
- params: {
20111
- conditions: Condition[];
20112
- };
20113
- } | {
20114
- name: "array_find";
20115
- params: {
20116
- key: string;
20117
- operator: "=" | "!=";
20118
- valuePath: string;
20119
- fromFormatted?: boolean;
20120
- };
20121
- } | {
20122
- name: "array_find";
20123
- params: {
20124
- conditions: (Condition_Without_Value & {
20125
- evaluateValue: string;
20126
- })[];
20127
- };
20128
- } | {
20129
- name: "fallback";
20130
- params: FieldMapFallbackRulePayload;
20131
- } | {
20132
- name: "fallback";
20133
- params: FieldMapFallbackRulePayload_Without_Path_FromFormatted & {
20134
- staticValue: string | number | string[] | number[] | {
20135
- [key: string]: string;
20136
- } | {
20137
- [key: string]: number;
20138
- };
20139
- };
20140
- } | {
20141
- name: "fallback_if";
20142
- params: FieldMapFallbackRulePayload & {
20143
- conditions: (Condition | (Condition_Without_Value & {
20144
- evaluateValue: string;
20145
- }))[];
20146
- };
20147
- } | {
20148
- name: "exclude_from_record";
20149
- params: {
20150
- keys: string[];
20151
- };
20152
- } | {
20153
- name: "decrypt";
20154
- params: {
20155
- passwordPrefixPath?: string;
20156
- };
20157
- } | {
20158
- name: "interpolate";
20159
- params: {
20160
- value: string;
20161
- };
20162
- } | {
20163
- name: "custom";
20164
- params: {
20165
- value: string;
20166
- };
20167
- } | {
20168
- name: "split";
20169
- params: {
20170
- separator: string;
20171
- };
20172
- } | {
20173
- name: "case";
20174
- params: {
20175
- cases: {
20176
- conditions: Condition_Without_Path[];
20177
- value: string;
20178
- }[];
20179
- };
20180
- } | {
20181
- name: "hash";
20182
- params: {
20183
- algorithm: string;
20184
- salt?: string;
20185
- };
20186
- } | {
20187
- name: "decipher";
20188
- params: {
20189
- 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";
20190
- key: string;
20191
- iv?: string;
20192
- inputEncoding?: "hex" | "base64";
20193
- };
20194
- }))[];
20195
- };
20196
- })[];
20197
- };
20194
+ data: DatagraphEntity[];
20195
+ };
20196
+ export declare type UpdateEntityBody = {
20197
+ entity: DatagraphEntityDefinitionBody;
20198
20198
  };
20199
20199
  export declare enum FieldMapRuleName {
20200
20200
  STATIC = "static",