@rlvt/datasources-openapi-client 1.0.368 → 1.0.369

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -401,6 +401,16 @@ export declare type Serialize_DatasourceTemplate = {
401
401
  outputField: string;
402
402
  };
403
403
  }) & readonlyP;
404
+ storageOptions?: {
405
+ destinations: {
406
+ type: "bigquery";
407
+ dataset: string;
408
+ tableName: string;
409
+ deduplicateOptions?: {
410
+ enabled: boolean;
411
+ };
412
+ }[];
413
+ };
404
414
  mode: DatasourceMode;
405
415
  };
406
416
  version: {
@@ -4335,6 +4345,14 @@ export declare type Serialize_DatasourceTemplate = {
4335
4345
  };
4336
4346
  }) & readonlyP;
4337
4347
  storageOptions?: {
4348
+ destinations: {
4349
+ type: "bigquery";
4350
+ dataset: string;
4351
+ tableName: string;
4352
+ deduplicateOptions?: {
4353
+ enabled: boolean;
4354
+ };
4355
+ }[];
4338
4356
  partitionCount: number;
4339
4357
  segments: {
4340
4358
  offlineSize: number;
@@ -4346,11 +4364,6 @@ export declare type Serialize_DatasourceTemplate = {
4346
4364
  value: number;
4347
4365
  unit: "DAYS";
4348
4366
  };
4349
- destinations: {
4350
- type: "bigquery";
4351
- dataset: string;
4352
- tableName: string;
4353
- }[];
4354
4367
  };
4355
4368
  mode: DatasourceMode;
4356
4369
  };
@@ -4758,6 +4771,14 @@ export declare type Serialize_DatasourceTemplate = {
4758
4771
  };
4759
4772
  }) & readonlyP;
4760
4773
  storageOptions?: {
4774
+ destinations: {
4775
+ type: "bigquery";
4776
+ dataset: string;
4777
+ tableName: string;
4778
+ deduplicateOptions?: {
4779
+ enabled: boolean;
4780
+ };
4781
+ }[];
4761
4782
  partitionCount: number;
4762
4783
  segments: {
4763
4784
  offlineSize: number;
@@ -4769,11 +4790,6 @@ export declare type Serialize_DatasourceTemplate = {
4769
4790
  value: number;
4770
4791
  unit: "DAYS";
4771
4792
  };
4772
- destinations: {
4773
- type: "bigquery";
4774
- dataset: string;
4775
- tableName: string;
4776
- }[];
4777
4793
  };
4778
4794
  mode: DatasourceMode;
4779
4795
  };
@@ -4925,6 +4941,69 @@ export declare type InternalResponse_Array_string = {
4925
4941
  message: string;
4926
4942
  data: string[];
4927
4943
  };
4944
+ export declare type InternalResponse_ = {
4945
+ program: string;
4946
+ version: string;
4947
+ datetime: string;
4948
+ status: string;
4949
+ code?: number;
4950
+ message: string;
4951
+ data: {};
4952
+ };
4953
+ export declare enum DatasourceType {
4954
+ GENERIC = "generic",
4955
+ LOCATION = "location",
4956
+ PRODUCT = "product",
4957
+ ANALYTICS = "analytics",
4958
+ CRM = "crm",
4959
+ PUSH = "push",
4960
+ LOOP = "loop"
4961
+ }
4962
+ export declare type InternalResponse = {
4963
+ program: string;
4964
+ version: string;
4965
+ datetime: string;
4966
+ status: string;
4967
+ code?: number;
4968
+ message: string;
4969
+ data: {
4970
+ [key: string]: AnyValue;
4971
+ };
4972
+ };
4973
+ export declare type TestTokenStep = {
4974
+ name: string;
4975
+ status: "success" | "failed";
4976
+ durationMs: number;
4977
+ detail?: {
4978
+ [key: string]: AnyValue;
4979
+ };
4980
+ error?: string;
4981
+ };
4982
+ export declare type TestTokenResult = {
4983
+ success: boolean;
4984
+ steps: TestTokenStep[];
4985
+ };
4986
+ export declare type InternalResponse_TestTokenResult = {
4987
+ program: string;
4988
+ version: string;
4989
+ datetime: string;
4990
+ status: string;
4991
+ code?: number;
4992
+ message: string;
4993
+ data: TestTokenResult;
4994
+ };
4995
+ export declare type InternalResponse_cacheKey_string_deleted_Union_false_true = {
4996
+ program: string;
4997
+ version: string;
4998
+ datetime: string;
4999
+ status: string;
5000
+ code?: number;
5001
+ message: string;
5002
+ data: {
5003
+ cacheKey: string;
5004
+ deleted: boolean;
5005
+ };
5006
+ };
4928
5007
  export declare type ObjectId = string;
4929
5008
  export declare enum AuthenticationMode {
4930
5009
  PASSWORD = "password",
@@ -4986,6 +5065,9 @@ export declare type DatasourceAuth = {
4986
5065
  } & {
4987
5066
  configuration: string | DatasourceAuthConfiguration;
4988
5067
  nextInChainConfiguration?: string;
5068
+ hasRefreshToken?: boolean;
5069
+ hasAccessToken?: boolean;
5070
+ hasPassword?: boolean;
4989
5071
  };
4990
5072
  export declare type InternalResponse_Array_DatasourceAuth = {
4991
5073
  program: string;
@@ -4996,25 +5078,7 @@ export declare type InternalResponse_Array_DatasourceAuth = {
4996
5078
  message: string;
4997
5079
  data: DatasourceAuth[];
4998
5080
  };
4999
- export declare type InternalResponse_ = {
5000
- program: string;
5001
- version: string;
5002
- datetime: string;
5003
- status: string;
5004
- code?: number;
5005
- message: string;
5006
- data: {};
5007
- };
5008
- export declare enum DatasourceType {
5009
- GENERIC = "generic",
5010
- LOCATION = "location",
5011
- PRODUCT = "product",
5012
- ANALYTICS = "analytics",
5013
- CRM = "crm",
5014
- PUSH = "push",
5015
- LOOP = "loop"
5016
- }
5017
- export declare type InternalResponse_Intersection_Serialize_id_string_configuration_Union_string_DatasourceAuthConfiguration_nextInChainConfiguration_Union_undefined_string = {
5081
+ export declare type InternalResponse_Intersection_Serialize_id_string_configuration_Union_string_DatasourceAuthConfiguration_nextInChainConfiguration_Union_undefined_string_hasRefreshToken_Union_undefined_false_true_hasAccessToken_Union_undefined_false_true_hasPassword_Union_undefined_false_true = {
5018
5082
  program: string;
5019
5083
  version: string;
5020
5084
  datetime: string;
@@ -5036,6 +5100,9 @@ export declare type InternalResponse_Intersection_Serialize_id_string_configurat
5036
5100
  } & {
5037
5101
  configuration: string | DatasourceAuthConfiguration;
5038
5102
  nextInChainConfiguration?: string;
5103
+ hasRefreshToken?: boolean;
5104
+ hasAccessToken?: boolean;
5105
+ hasPassword?: boolean;
5039
5106
  };
5040
5107
  };
5041
5108
  export declare type DatasourceAuth_Without_Configuration = {
@@ -5053,15 +5120,9 @@ export declare type DatasourceAuth_Without_Configuration = {
5053
5120
  } & {
5054
5121
  configuration: string | DatasourceAuthConfiguration;
5055
5122
  nextInChainConfiguration?: string;
5056
- };
5057
- export declare type InternalResponse = {
5058
- program: string;
5059
- version: string;
5060
- datetime: string;
5061
- status: string;
5062
- code?: number;
5063
- message: string;
5064
- data: {};
5123
+ hasRefreshToken?: boolean;
5124
+ hasAccessToken?: boolean;
5125
+ hasPassword?: boolean;
5065
5126
  };
5066
5127
  export declare type InternalResponse_url_string = {
5067
5128
  program: string;
@@ -5332,7 +5393,7 @@ export declare type DatagraphEntityVersion = {
5332
5393
  readonly state: (DatagraphEntityVersionState) & readonlyP;
5333
5394
  readonly definition: (Entity) & readonlyP;
5334
5395
  };
5335
- export declare type DatagraphEntity = {
5396
+ export declare type Serialize_DatagraphEntity = {
5336
5397
  readonly companyId: (ObjectId) & readonlyP;
5337
5398
  readonly resourceGroupIds: (ObjectId[]) & readonlyP;
5338
5399
  readonly versions: ((ObjectId | (Document & DatagraphEntityVersion & {
@@ -5342,6 +5403,12 @@ export declare type DatagraphEntity = {
5342
5403
  } & IObjectWithTypegooseFunction))[]) & readonlyP;
5343
5404
  readonly archivedAt: (string | null) & readonlyP;
5344
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
+ };
5345
5412
  export declare type InternalResponse_DatagraphEntity = {
5346
5413
  program: string;
5347
5414
  version: string;
@@ -7271,6 +7338,14 @@ export declare type CurrentSteps = {
7271
7338
  };
7272
7339
  segmentBatchSize?: number;
7273
7340
  sftpPublicKey?: string;
7341
+ destinations?: {
7342
+ type: "bigquery";
7343
+ dataset: string;
7344
+ tableName: string;
7345
+ deduplicateOptions?: {
7346
+ enabled: boolean;
7347
+ };
7348
+ }[];
7274
7349
  };
7275
7350
  }) | ({
7276
7351
  name: "configure_fetcher";
@@ -8710,6 +8785,14 @@ export declare type CurrentSteps = {
8710
8785
  username: string;
8711
8786
  password: string;
8712
8787
  };
8788
+ destinations?: {
8789
+ type: "bigquery";
8790
+ dataset: string;
8791
+ tableName: string;
8792
+ deduplicateOptions?: {
8793
+ enabled: boolean;
8794
+ };
8795
+ }[];
8713
8796
  };
8714
8797
  }) | ({
8715
8798
  name: "configure_fetcher";
@@ -9375,6 +9458,19 @@ export declare type CurrentSteps = {
9375
9458
  value?: {
9376
9459
  value: string;
9377
9460
  };
9461
+ }) | ({
9462
+ name: "patch";
9463
+ } & {
9464
+ value?: {
9465
+ destinations?: {
9466
+ type: "bigquery";
9467
+ dataset: string;
9468
+ tableName: string;
9469
+ deduplicateOptions?: {
9470
+ enabled: boolean;
9471
+ };
9472
+ }[];
9473
+ };
9378
9474
  }) | ({
9379
9475
  name: "configure_fetcher";
9380
9476
  } & {
@@ -10240,6 +10336,14 @@ export declare type CurrentSteps = {
10240
10336
  };
10241
10337
  segmentBatchSize?: number;
10242
10338
  sftpPublicKey?: string;
10339
+ destinations?: {
10340
+ type: "bigquery";
10341
+ dataset: string;
10342
+ tableName: string;
10343
+ deduplicateOptions?: {
10344
+ enabled: boolean;
10345
+ };
10346
+ }[];
10243
10347
  };
10244
10348
  }) | ({
10245
10349
  name: "configure_fetcher";
@@ -11679,6 +11783,14 @@ export declare type CurrentSteps = {
11679
11783
  username: string;
11680
11784
  password: string;
11681
11785
  };
11786
+ destinations?: {
11787
+ type: "bigquery";
11788
+ dataset: string;
11789
+ tableName: string;
11790
+ deduplicateOptions?: {
11791
+ enabled: boolean;
11792
+ };
11793
+ }[];
11682
11794
  };
11683
11795
  }) | ({
11684
11796
  name: "configure_fetcher";
@@ -12344,6 +12456,19 @@ export declare type CurrentSteps = {
12344
12456
  value?: {
12345
12457
  value: string;
12346
12458
  };
12459
+ }) | ({
12460
+ name: "patch";
12461
+ } & {
12462
+ value?: {
12463
+ destinations?: {
12464
+ type: "bigquery";
12465
+ dataset: string;
12466
+ tableName: string;
12467
+ deduplicateOptions?: {
12468
+ enabled: boolean;
12469
+ };
12470
+ }[];
12471
+ };
12347
12472
  }) | ({
12348
12473
  name: "configure_fetcher";
12349
12474
  } & {
@@ -13209,6 +13334,14 @@ export declare type CurrentSteps = {
13209
13334
  };
13210
13335
  segmentBatchSize?: number;
13211
13336
  sftpPublicKey?: string;
13337
+ destinations?: {
13338
+ type: "bigquery";
13339
+ dataset: string;
13340
+ tableName: string;
13341
+ deduplicateOptions?: {
13342
+ enabled: boolean;
13343
+ };
13344
+ }[];
13212
13345
  };
13213
13346
  }) | ({
13214
13347
  name: "configure_fetcher";
@@ -14648,6 +14781,14 @@ export declare type CurrentSteps = {
14648
14781
  username: string;
14649
14782
  password: string;
14650
14783
  };
14784
+ destinations?: {
14785
+ type: "bigquery";
14786
+ dataset: string;
14787
+ tableName: string;
14788
+ deduplicateOptions?: {
14789
+ enabled: boolean;
14790
+ };
14791
+ }[];
14651
14792
  };
14652
14793
  }) | ({
14653
14794
  name: "configure_fetcher";
@@ -15313,6 +15454,19 @@ export declare type CurrentSteps = {
15313
15454
  value?: {
15314
15455
  value: string;
15315
15456
  };
15457
+ }) | ({
15458
+ name: "patch";
15459
+ } & {
15460
+ value?: {
15461
+ destinations?: {
15462
+ type: "bigquery";
15463
+ dataset: string;
15464
+ tableName: string;
15465
+ deduplicateOptions?: {
15466
+ enabled: boolean;
15467
+ };
15468
+ }[];
15469
+ };
15316
15470
  }) | ({
15317
15471
  name: "configure_fetcher";
15318
15472
  } & {
@@ -16178,6 +16332,14 @@ export declare type CurrentSteps = {
16178
16332
  };
16179
16333
  segmentBatchSize?: number;
16180
16334
  sftpPublicKey?: string;
16335
+ destinations?: {
16336
+ type: "bigquery";
16337
+ dataset: string;
16338
+ tableName: string;
16339
+ deduplicateOptions?: {
16340
+ enabled: boolean;
16341
+ };
16342
+ }[];
16181
16343
  };
16182
16344
  }) | ({
16183
16345
  name: "configure_fetcher";
@@ -17617,6 +17779,14 @@ export declare type CurrentSteps = {
17617
17779
  username: string;
17618
17780
  password: string;
17619
17781
  };
17782
+ destinations?: {
17783
+ type: "bigquery";
17784
+ dataset: string;
17785
+ tableName: string;
17786
+ deduplicateOptions?: {
17787
+ enabled: boolean;
17788
+ };
17789
+ }[];
17620
17790
  };
17621
17791
  }) | ({
17622
17792
  name: "configure_fetcher";
@@ -18282,6 +18452,19 @@ export declare type CurrentSteps = {
18282
18452
  value?: {
18283
18453
  value: string;
18284
18454
  };
18455
+ }) | ({
18456
+ name: "patch";
18457
+ } & {
18458
+ value?: {
18459
+ destinations?: {
18460
+ type: "bigquery";
18461
+ dataset: string;
18462
+ tableName: string;
18463
+ deduplicateOptions?: {
18464
+ enabled: boolean;
18465
+ };
18466
+ }[];
18467
+ };
18285
18468
  }) | ({
18286
18469
  name: "configure_fetcher";
18287
18470
  } & {
@@ -18508,7 +18691,7 @@ export declare type InternalResponse_Array_Intersection_Document_Omit_IObjectWit
18508
18691
  code?: number;
18509
18692
  message: string;
18510
18693
  data: (Document & ({
18511
- type: "too_many_invalid_entries" | "entries_drop_rate_too_high" | "failed_to_pull" | "fatal" | "entries_drop_rate_too_high" | "refresh_time_too_small" | "missing_fields" | "failed_to_refresh_dependents" | "start" | "end" | "content_update" | "geocoding_address" | "geocoding_country" | "invalid_type" | "invalid_line" | "invalid_unwind_source" | "required_values_empty";
18694
+ type: "too_many_invalid_entries" | "entries_drop_rate_too_high" | "failed_to_pull" | "fatal" | "entries_drop_rate_too_high" | "refresh_time_too_small" | "missing_fields" | "failed_to_refresh_dependents" | "zero_rows_update" | "start" | "end" | "content_update" | "geocoding_address" | "geocoding_country" | "invalid_type" | "invalid_line" | "invalid_unwind_source" | "required_values_empty";
18512
18695
  datasourceId: ObjectId;
18513
18696
  payload: AnyValue;
18514
18697
  date: string;
@@ -18521,73 +18704,1246 @@ export declare type InternalResponse_Array_Intersection_Document_Omit_IObjectWit
18521
18704
  version: string;
18522
18705
  }) & IObjectWithTypegooseFunction)[];
18523
18706
  };
18524
- export declare type PushDatasource = AnyValue;
18525
- export declare type WorkerDatasource = AnyValue;
18526
- export declare type ProxyDatasource = AnyValue;
18527
- export declare type IngesterDatasource = AnyValue;
18528
- export declare type PubsubDatasource = AnyValue;
18529
- export declare type InternalResponse_Array_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
18530
- program: string;
18531
- version: string;
18532
- datetime: string;
18533
- status: string;
18534
- code?: number;
18535
- message: string;
18536
- data: (PushDatasource | WorkerDatasource | ProxyDatasource | IngesterDatasource | PubsubDatasource)[];
18537
- };
18538
- export declare enum DatasourceStatus {
18539
- DRAFT = "draft",
18540
- PUBLISHED = "published",
18541
- UPDATING = "updating",
18542
- PAUSED = "paused",
18543
- ERROR = "error"
18707
+ export declare enum DatasourceLoopSubType {
18708
+ SCORES = "scores",
18709
+ MESSAGING_PLAN = "messaging_plan",
18710
+ AUDIT = "audit"
18544
18711
  }
18545
- export declare type FieldMap_With_Name_Type_Primitive = {
18546
- name: string;
18547
- type: FieldMapType;
18548
- readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
18549
- };
18550
- export declare type QueriableField = FieldMap_With_Name_Type_Primitive & {
18551
- required: boolean;
18552
- unique: boolean;
18553
- sortable: boolean;
18554
- enum?: (string | number)[];
18555
- allowedOperators: (("$eq" | "$ne" | "$contains" | "$notcontains" | "$startswith" | "$endswith" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "startswith" | "endswith" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$rangefuture" | "$rangepast" | "$nrangefuture" | "$nrangepast" | "rangefuture" | "rangepast" | "nrangefuture" | "nrangepast") | ("$eq" | "$ne" | "$contains" | "$notcontains" | "$startswith" | "$endswith" | "$empty" | "eq" | "ne" | "contains" | "notcontains" | "startswith" | "endswith" | "empty" | "$neq" | "$nne" | "$lt" | "$lte" | "$gt" | "$gte" | "neq" | "nne" | "lt" | "lte" | "gt" | "gte" | "$rangefuture" | "$rangepast" | "$nrangefuture" | "$nrangepast" | "rangefuture" | "rangepast" | "nrangefuture" | "nrangepast"))[];
18556
- };
18557
- export declare type InternalResponse_Union_Intersection_PushDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_WorkerDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_ProxyDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_IngesterDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField_Intersection_PubsubDatasource_example_Union_undefined_Record_queriableFields_Union_undefined_Array_QueriableField = {
18558
- program: string;
18559
- version: string;
18560
- datetime: string;
18561
- status: string;
18562
- code?: number;
18563
- message: string;
18564
- data: (PushDatasource & {
18565
- example?: {
18566
- [key: string]: AnyValue;
18567
- };
18568
- queriableFields?: QueriableField[];
18569
- }) | (WorkerDatasource & {
18570
- example?: {
18571
- [key: string]: AnyValue;
18572
- };
18573
- queriableFields?: QueriableField[];
18574
- }) | (ProxyDatasource & {
18575
- example?: {
18576
- [key: string]: AnyValue;
18712
+ export declare enum DatasourceVersionState {
18713
+ LIVE = "LIVE",
18714
+ DRAFT = "DRAFT",
18715
+ SCHEDULED = "SCHEDULED",
18716
+ INACTIVE = "INACTIVE"
18717
+ }
18718
+ export declare type DatasourceVersion = {
18719
+ readonly id: (string) & readonlyP;
18720
+ type: {
18721
+ name: "analytics";
18722
+ options: {
18723
+ autoExclusions?: boolean;
18724
+ noStats?: boolean;
18577
18725
  };
18578
- queriableFields?: QueriableField[];
18579
- }) | (IngesterDatasource & {
18580
- example?: {
18581
- [key: string]: AnyValue;
18726
+ subtype: "purchases";
18727
+ } | {
18728
+ name: "generic";
18729
+ subtype: DatasourceGenericSubType;
18730
+ } | {
18731
+ name: "crm";
18732
+ subtype: DatasourceCRMSubType;
18733
+ } | {
18734
+ name: "product";
18735
+ subtype: DatasourceProductSubType;
18736
+ } | {
18737
+ name: "location";
18738
+ subtype: DatasourceLocationSubType;
18739
+ } | {
18740
+ name: "analytics";
18741
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
18742
+ } | {
18743
+ name: "push";
18744
+ subtype: "email";
18745
+ } | {
18746
+ name: "loop";
18747
+ subtype: DatasourceLoopSubType;
18748
+ };
18749
+ fieldsMap: {
18750
+ name: string;
18751
+ type: FieldMapType;
18752
+ source?: FieldSource;
18753
+ selected: boolean;
18754
+ ignoreIfMissing?: boolean;
18755
+ metadata?: {
18756
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
18582
18757
  };
18583
- queriableFields?: QueriableField[];
18584
- }) | (PubsubDatasource & {
18585
- example?: {
18586
- [key: string]: AnyValue;
18758
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
18759
+ }[];
18760
+ mode: DatasourceMode;
18761
+ readonly state: (DatasourceVersionState) & readonlyP;
18762
+ readonly pendingSteps?: (({
18763
+ name: "configure_name";
18764
+ } | {
18765
+ name: "configure_resource_group_ids";
18766
+ } | {
18767
+ name: "configure_sources";
18768
+ } | {
18769
+ name: "configure_fields";
18770
+ } | {
18771
+ name: "configure_field";
18772
+ field: {
18773
+ name: string;
18774
+ type: FieldMapType;
18587
18775
  };
18588
- queriableFields?: QueriableField[];
18589
- });
18590
- };
18776
+ } | {
18777
+ name: "create_oauth_client";
18778
+ configurationId: string;
18779
+ } | {
18780
+ name: "authorize_oauth_client";
18781
+ slug: string;
18782
+ } | {
18783
+ name: "configure_thresholds";
18784
+ } | {
18785
+ name: "configure_api_key";
18786
+ slug: "partoo";
18787
+ } | {
18788
+ name: "patch";
18789
+ } | {
18790
+ name: "validate";
18791
+ } | {
18792
+ name: "configure_google_tag_manager";
18793
+ } | {
18794
+ name: "configure_reelevant_analytics_script";
18795
+ } | {
18796
+ name: "configure_product_datasource_source";
18797
+ } | {
18798
+ name: "configure_tracking_datasource_source";
18799
+ } | {
18800
+ name: "configure_best_product_query";
18801
+ } | {
18802
+ name: "configure_best_product_field";
18803
+ } | {
18804
+ name: "configure_fetcher";
18805
+ } | {
18806
+ name: "configure_merge_datasource_source";
18807
+ } | {
18808
+ name: "configure_merge_datasource_dependency";
18809
+ } | {
18810
+ name: "configure_merge_mapping";
18811
+ } | {
18812
+ name: "configure_bought_together";
18813
+ } | {
18814
+ name: "configure_top_attributes";
18815
+ } | {
18816
+ name: "configure_destination";
18817
+ type: "smtp";
18818
+ } | {
18819
+ name: "configure_hierarchy";
18820
+ } | {
18821
+ name: "google_my_business_set_url";
18822
+ urls: {
18823
+ getAccount: string;
18824
+ final: string;
18825
+ };
18826
+ } | {
18827
+ name: "setup_instagram";
18828
+ urls: {
18829
+ getAccount: string;
18830
+ getAccountInfos: string;
18831
+ final: string;
18832
+ };
18833
+ })[]) & readonlyP;
18834
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18835
+ readonly requiredFieldsTypes: ({
18836
+ [key: string]: FieldMapType;
18837
+ }[]) & readonlyP;
18838
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18839
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
18840
+ } & {
18841
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
18842
+ };
18843
+ export declare enum DatasourceStatus {
18844
+ DRAFT = "draft",
18845
+ PUBLISHED = "published",
18846
+ UPDATING = "updating",
18847
+ PAUSED = "paused",
18848
+ ERROR = "error"
18849
+ }
18850
+ export declare type Serialize_PushDatasource = {
18851
+ name: string;
18852
+ hidden: boolean;
18853
+ readonly template?: (ObjectId | null) & readonlyP;
18854
+ readonly fetcher: ({
18855
+ name: DatasourceFetcherName;
18856
+ params: {};
18857
+ } | {
18858
+ name: "fdj-bets";
18859
+ params: {};
18860
+ } | {
18861
+ name: "renault-prices";
18862
+ params: {};
18863
+ } | {
18864
+ name: "decathlon-product-fallback";
18865
+ params: {};
18866
+ } | {
18867
+ name: "generic-unwind-rows";
18868
+ params: {
18869
+ source: string;
18870
+ destination: string;
18871
+ columnDestination: string;
18872
+ valueType: string;
18873
+ };
18874
+ } | {
18875
+ name: "workflow-events";
18876
+ params: {};
18877
+ } | {
18878
+ name: "expired-product-lifetime";
18879
+ params: {
18880
+ purchaseDatasourceId: string;
18881
+ purchaseQuery: string;
18882
+ purchaseReferenceIdField: string;
18883
+ purchaseTimestampField: string;
18884
+ purchaseClientField: string;
18885
+ temporalities?: {
18886
+ maxLifetime: number;
18887
+ windowStart: number;
18888
+ windowEnd: number;
18889
+ minPurchaseCount?: number;
18890
+ }[];
18891
+ };
18892
+ } | {
18893
+ name: "product-exclusion";
18894
+ params: {
18895
+ mode: "inclusion" | "exclusion";
18896
+ exclusionDatasourceId: string;
18897
+ exclusionIdField: string;
18898
+ productIdField: string;
18899
+ };
18900
+ } | {
18901
+ name: "per-user";
18902
+ params: {};
18903
+ } | {
18904
+ name: "generic-proxy-lock";
18905
+ params: {
18906
+ ttl: number;
18907
+ };
18908
+ } | {
18909
+ name: "generic-proxy-aggregation";
18910
+ params: {
18911
+ targetField: string;
18912
+ aggregationType: "sum" | "avg" | "min" | "max";
18913
+ outputField: string;
18914
+ };
18915
+ }) & readonlyP;
18916
+ storageOptions: {
18917
+ destinations: {
18918
+ type: "bigquery";
18919
+ dataset: string;
18920
+ tableName: string;
18921
+ deduplicateOptions?: {
18922
+ enabled: boolean;
18923
+ };
18924
+ }[];
18925
+ partitionCount: number;
18926
+ segments: {
18927
+ offlineSize: number;
18928
+ offlineReplication: number;
18929
+ realtimeSize: number;
18930
+ realtimeReplication: number;
18931
+ };
18932
+ retention?: {
18933
+ value: number;
18934
+ unit: "DAYS";
18935
+ };
18936
+ };
18937
+ mode: "push";
18938
+ companyId: ObjectId;
18939
+ resourceGroupIds: ObjectId[];
18940
+ versions: (ObjectId | (Document & DatasourceVersion & {
18941
+ _id: ObjectId;
18942
+ } & {
18943
+ __v: number;
18944
+ } & IObjectWithTypegooseFunction))[];
18945
+ readonly archivedAt: (string | null) & readonlyP;
18946
+ status: DatasourceStatus;
18947
+ readonly configurationUpdatedAt: (string) & readonlyP;
18948
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
18949
+ readonly lastFailedIngestion?: (string) & readonlyP;
18950
+ readonly lastFailureReason?: (string) & readonlyP;
18951
+ hierarchy: string[];
18952
+ readonly hasWarnings: (boolean) & readonlyP;
18953
+ };
18954
+ export declare type PushDatasource = Serialize_PushDatasource & {
18955
+ readonly id: (string) & readonlyP;
18956
+ } & {
18957
+ readonly createdAt: (string) & readonlyP;
18958
+ readonly updatedAt: (string) & readonlyP;
18959
+ };
18960
+ export declare type WorkerDatasourceVersion = {
18961
+ readonly id: (string) & readonlyP;
18962
+ type: {
18963
+ name: "analytics";
18964
+ options: {
18965
+ autoExclusions?: boolean;
18966
+ noStats?: boolean;
18967
+ };
18968
+ subtype: "purchases";
18969
+ } | {
18970
+ name: "generic";
18971
+ subtype: DatasourceGenericSubType;
18972
+ } | {
18973
+ name: "crm";
18974
+ subtype: DatasourceCRMSubType;
18975
+ } | {
18976
+ name: "product";
18977
+ subtype: DatasourceProductSubType;
18978
+ } | {
18979
+ name: "location";
18980
+ subtype: DatasourceLocationSubType;
18981
+ } | {
18982
+ name: "analytics";
18983
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
18984
+ } | {
18985
+ name: "push";
18986
+ subtype: "email";
18987
+ } | {
18988
+ name: "loop";
18989
+ subtype: DatasourceLoopSubType;
18990
+ };
18991
+ fieldsMap: {
18992
+ name: string;
18993
+ type: FieldMapType;
18994
+ source?: FieldSource;
18995
+ selected: boolean;
18996
+ ignoreIfMissing?: boolean;
18997
+ metadata?: {
18998
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
18999
+ };
19000
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19001
+ }[];
19002
+ mode: DatasourceMode;
19003
+ readonly state: (DatasourceVersionState) & readonlyP;
19004
+ readonly pendingSteps?: (({
19005
+ name: "configure_name";
19006
+ } | {
19007
+ name: "configure_resource_group_ids";
19008
+ } | {
19009
+ name: "configure_sources";
19010
+ } | {
19011
+ name: "configure_fields";
19012
+ } | {
19013
+ name: "configure_field";
19014
+ field: {
19015
+ name: string;
19016
+ type: FieldMapType;
19017
+ };
19018
+ } | {
19019
+ name: "create_oauth_client";
19020
+ configurationId: string;
19021
+ } | {
19022
+ name: "authorize_oauth_client";
19023
+ slug: string;
19024
+ } | {
19025
+ name: "configure_thresholds";
19026
+ } | {
19027
+ name: "configure_api_key";
19028
+ slug: "partoo";
19029
+ } | {
19030
+ name: "patch";
19031
+ } | {
19032
+ name: "validate";
19033
+ } | {
19034
+ name: "configure_google_tag_manager";
19035
+ } | {
19036
+ name: "configure_reelevant_analytics_script";
19037
+ } | {
19038
+ name: "configure_product_datasource_source";
19039
+ } | {
19040
+ name: "configure_tracking_datasource_source";
19041
+ } | {
19042
+ name: "configure_best_product_query";
19043
+ } | {
19044
+ name: "configure_best_product_field";
19045
+ } | {
19046
+ name: "configure_fetcher";
19047
+ } | {
19048
+ name: "configure_merge_datasource_source";
19049
+ } | {
19050
+ name: "configure_merge_datasource_dependency";
19051
+ } | {
19052
+ name: "configure_merge_mapping";
19053
+ } | {
19054
+ name: "configure_bought_together";
19055
+ } | {
19056
+ name: "configure_top_attributes";
19057
+ } | {
19058
+ name: "configure_destination";
19059
+ type: "smtp";
19060
+ } | {
19061
+ name: "configure_hierarchy";
19062
+ } | {
19063
+ name: "google_my_business_set_url";
19064
+ urls: {
19065
+ getAccount: string;
19066
+ final: string;
19067
+ };
19068
+ } | {
19069
+ name: "setup_instagram";
19070
+ urls: {
19071
+ getAccount: string;
19072
+ getAccountInfos: string;
19073
+ final: string;
19074
+ };
19075
+ })[]) & readonlyP;
19076
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19077
+ readonly requiredFieldsTypes: ({
19078
+ [key: string]: FieldMapType;
19079
+ }[]) & readonlyP;
19080
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19081
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19082
+ } & {
19083
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19084
+ };
19085
+ export declare type Serialize_WorkerDatasource = {
19086
+ name: string;
19087
+ hidden: boolean;
19088
+ readonly template?: (ObjectId | null) & readonlyP;
19089
+ readonly fetcher: ({
19090
+ name: DatasourceFetcherName;
19091
+ params: {};
19092
+ } | {
19093
+ name: "fdj-bets";
19094
+ params: {};
19095
+ } | {
19096
+ name: "renault-prices";
19097
+ params: {};
19098
+ } | {
19099
+ name: "decathlon-product-fallback";
19100
+ params: {};
19101
+ } | {
19102
+ name: "generic-unwind-rows";
19103
+ params: {
19104
+ source: string;
19105
+ destination: string;
19106
+ columnDestination: string;
19107
+ valueType: string;
19108
+ };
19109
+ } | {
19110
+ name: "workflow-events";
19111
+ params: {};
19112
+ } | {
19113
+ name: "expired-product-lifetime";
19114
+ params: {
19115
+ purchaseDatasourceId: string;
19116
+ purchaseQuery: string;
19117
+ purchaseReferenceIdField: string;
19118
+ purchaseTimestampField: string;
19119
+ purchaseClientField: string;
19120
+ temporalities?: {
19121
+ maxLifetime: number;
19122
+ windowStart: number;
19123
+ windowEnd: number;
19124
+ minPurchaseCount?: number;
19125
+ }[];
19126
+ };
19127
+ } | {
19128
+ name: "product-exclusion";
19129
+ params: {
19130
+ mode: "inclusion" | "exclusion";
19131
+ exclusionDatasourceId: string;
19132
+ exclusionIdField: string;
19133
+ productIdField: string;
19134
+ };
19135
+ } | {
19136
+ name: "per-user";
19137
+ params: {};
19138
+ } | {
19139
+ name: "generic-proxy-lock";
19140
+ params: {
19141
+ ttl: number;
19142
+ };
19143
+ } | {
19144
+ name: "generic-proxy-aggregation";
19145
+ params: {
19146
+ targetField: string;
19147
+ aggregationType: "sum" | "avg" | "min" | "max";
19148
+ outputField: string;
19149
+ };
19150
+ }) & readonlyP;
19151
+ storageOptions: {
19152
+ destinations: {
19153
+ type: "bigquery";
19154
+ dataset: string;
19155
+ tableName: string;
19156
+ deduplicateOptions?: {
19157
+ enabled: boolean;
19158
+ };
19159
+ }[];
19160
+ };
19161
+ mode: "worker";
19162
+ companyId: ObjectId;
19163
+ resourceGroupIds: ObjectId[];
19164
+ versions: (ObjectId | (Document & WorkerDatasourceVersion & {
19165
+ _id: ObjectId;
19166
+ } & {
19167
+ __v: number;
19168
+ } & IObjectWithTypegooseFunction))[];
19169
+ readonly archivedAt: (string | null) & readonlyP;
19170
+ status: DatasourceStatus;
19171
+ readonly configurationUpdatedAt: (string) & readonlyP;
19172
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
19173
+ readonly lastFailedIngestion?: (string) & readonlyP;
19174
+ readonly lastFailureReason?: (string) & readonlyP;
19175
+ hierarchy: string[];
19176
+ readonly hasWarnings: (boolean) & readonlyP;
19177
+ readonly contentVersion: (number) & readonlyP;
19178
+ thresholds: {
19179
+ type: "too_many_invalid_entries";
19180
+ value: number;
19181
+ trigger: {
19182
+ type: "error";
19183
+ value: "too_many_invalid_entries";
19184
+ };
19185
+ }[] | {
19186
+ type: "entries_drop_rate_too_high";
19187
+ value: number;
19188
+ trigger: {
19189
+ type: "warning";
19190
+ value: "entries_drop_rate_too_high";
19191
+ } | {
19192
+ type: "error";
19193
+ value: "entries_drop_rate_too_high";
19194
+ };
19195
+ }[];
19196
+ attempts?: number;
19197
+ readonly lastRunAt: (string | null) & readonlyP;
19198
+ readonly currentLiveVersion: (ObjectId | null) & readonlyP;
19199
+ readonly pausedAt: (string | null) & readonlyP;
19200
+ readonly isPaused: (boolean) & readonlyP;
19201
+ };
19202
+ export declare type WorkerDatasource = Serialize_WorkerDatasource & {
19203
+ readonly id: (string) & readonlyP;
19204
+ } & {
19205
+ readonly createdAt: (string) & readonlyP;
19206
+ readonly updatedAt: (string) & readonlyP;
19207
+ };
19208
+ export declare type ProxyDatasourceVersion = {
19209
+ readonly id: (string) & readonlyP;
19210
+ type: {
19211
+ name: "analytics";
19212
+ options: {
19213
+ autoExclusions?: boolean;
19214
+ noStats?: boolean;
19215
+ };
19216
+ subtype: "purchases";
19217
+ } | {
19218
+ name: "generic";
19219
+ subtype: DatasourceGenericSubType;
19220
+ } | {
19221
+ name: "crm";
19222
+ subtype: DatasourceCRMSubType;
19223
+ } | {
19224
+ name: "product";
19225
+ subtype: DatasourceProductSubType;
19226
+ } | {
19227
+ name: "location";
19228
+ subtype: DatasourceLocationSubType;
19229
+ } | {
19230
+ name: "analytics";
19231
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
19232
+ } | {
19233
+ name: "push";
19234
+ subtype: "email";
19235
+ } | {
19236
+ name: "loop";
19237
+ subtype: DatasourceLoopSubType;
19238
+ };
19239
+ fieldsMap: {
19240
+ name: string;
19241
+ type: FieldMapType;
19242
+ source?: FieldSource;
19243
+ selected: boolean;
19244
+ ignoreIfMissing?: boolean;
19245
+ metadata?: {
19246
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19247
+ };
19248
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19249
+ }[];
19250
+ mode: DatasourceMode;
19251
+ readonly state: (DatasourceVersionState) & readonlyP;
19252
+ readonly pendingSteps?: (({
19253
+ name: "configure_name";
19254
+ } | {
19255
+ name: "configure_resource_group_ids";
19256
+ } | {
19257
+ name: "configure_sources";
19258
+ } | {
19259
+ name: "configure_fields";
19260
+ } | {
19261
+ name: "configure_field";
19262
+ field: {
19263
+ name: string;
19264
+ type: FieldMapType;
19265
+ };
19266
+ } | {
19267
+ name: "create_oauth_client";
19268
+ configurationId: string;
19269
+ } | {
19270
+ name: "authorize_oauth_client";
19271
+ slug: string;
19272
+ } | {
19273
+ name: "configure_thresholds";
19274
+ } | {
19275
+ name: "configure_api_key";
19276
+ slug: "partoo";
19277
+ } | {
19278
+ name: "patch";
19279
+ } | {
19280
+ name: "validate";
19281
+ } | {
19282
+ name: "configure_google_tag_manager";
19283
+ } | {
19284
+ name: "configure_reelevant_analytics_script";
19285
+ } | {
19286
+ name: "configure_product_datasource_source";
19287
+ } | {
19288
+ name: "configure_tracking_datasource_source";
19289
+ } | {
19290
+ name: "configure_best_product_query";
19291
+ } | {
19292
+ name: "configure_best_product_field";
19293
+ } | {
19294
+ name: "configure_fetcher";
19295
+ } | {
19296
+ name: "configure_merge_datasource_source";
19297
+ } | {
19298
+ name: "configure_merge_datasource_dependency";
19299
+ } | {
19300
+ name: "configure_merge_mapping";
19301
+ } | {
19302
+ name: "configure_bought_together";
19303
+ } | {
19304
+ name: "configure_top_attributes";
19305
+ } | {
19306
+ name: "configure_destination";
19307
+ type: "smtp";
19308
+ } | {
19309
+ name: "configure_hierarchy";
19310
+ } | {
19311
+ name: "google_my_business_set_url";
19312
+ urls: {
19313
+ getAccount: string;
19314
+ final: string;
19315
+ };
19316
+ } | {
19317
+ name: "setup_instagram";
19318
+ urls: {
19319
+ getAccount: string;
19320
+ getAccountInfos: string;
19321
+ final: string;
19322
+ };
19323
+ })[]) & readonlyP;
19324
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19325
+ readonly requiredFieldsTypes: ({
19326
+ [key: string]: FieldMapType;
19327
+ }[]) & readonlyP;
19328
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19329
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19330
+ } & {
19331
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19332
+ };
19333
+ export declare type Serialize_ProxyDatasource = {
19334
+ name: string;
19335
+ hidden: boolean;
19336
+ readonly template?: (ObjectId | null) & readonlyP;
19337
+ readonly fetcher: ({
19338
+ name: DatasourceFetcherName;
19339
+ params: {};
19340
+ } | {
19341
+ name: "fdj-bets";
19342
+ params: {};
19343
+ } | {
19344
+ name: "renault-prices";
19345
+ params: {};
19346
+ } | {
19347
+ name: "decathlon-product-fallback";
19348
+ params: {};
19349
+ } | {
19350
+ name: "generic-unwind-rows";
19351
+ params: {
19352
+ source: string;
19353
+ destination: string;
19354
+ columnDestination: string;
19355
+ valueType: string;
19356
+ };
19357
+ } | {
19358
+ name: "workflow-events";
19359
+ params: {};
19360
+ } | {
19361
+ name: "expired-product-lifetime";
19362
+ params: {
19363
+ purchaseDatasourceId: string;
19364
+ purchaseQuery: string;
19365
+ purchaseReferenceIdField: string;
19366
+ purchaseTimestampField: string;
19367
+ purchaseClientField: string;
19368
+ temporalities?: {
19369
+ maxLifetime: number;
19370
+ windowStart: number;
19371
+ windowEnd: number;
19372
+ minPurchaseCount?: number;
19373
+ }[];
19374
+ };
19375
+ } | {
19376
+ name: "product-exclusion";
19377
+ params: {
19378
+ mode: "inclusion" | "exclusion";
19379
+ exclusionDatasourceId: string;
19380
+ exclusionIdField: string;
19381
+ productIdField: string;
19382
+ };
19383
+ } | {
19384
+ name: "per-user";
19385
+ params: {};
19386
+ } | {
19387
+ name: "generic-proxy-lock";
19388
+ params: {
19389
+ ttl: number;
19390
+ };
19391
+ } | {
19392
+ name: "generic-proxy-aggregation";
19393
+ params: {
19394
+ targetField: string;
19395
+ aggregationType: "sum" | "avg" | "min" | "max";
19396
+ outputField: string;
19397
+ };
19398
+ }) & readonlyP;
19399
+ mode: "proxy";
19400
+ companyId: ObjectId;
19401
+ resourceGroupIds: ObjectId[];
19402
+ versions: (ObjectId | (Document & ProxyDatasourceVersion & {
19403
+ _id: ObjectId;
19404
+ } & {
19405
+ __v: number;
19406
+ } & IObjectWithTypegooseFunction))[];
19407
+ readonly archivedAt: (string | null) & readonlyP;
19408
+ status: DatasourceStatus;
19409
+ readonly configurationUpdatedAt: (string) & readonlyP;
19410
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
19411
+ readonly lastFailedIngestion?: (string) & readonlyP;
19412
+ readonly lastFailureReason?: (string) & readonlyP;
19413
+ hierarchy: string[];
19414
+ readonly hasWarnings: (boolean) & readonlyP;
19415
+ };
19416
+ export declare type ProxyDatasource = Serialize_ProxyDatasource & {
19417
+ readonly id: (string) & readonlyP;
19418
+ } & {
19419
+ readonly createdAt: (string) & readonlyP;
19420
+ readonly updatedAt: (string) & readonlyP;
19421
+ };
19422
+ export declare type IngesterDatasourceVersion = {
19423
+ readonly id: (string) & readonlyP;
19424
+ type: {
19425
+ name: "analytics";
19426
+ options: {
19427
+ autoExclusions?: boolean;
19428
+ noStats?: boolean;
19429
+ };
19430
+ subtype: "purchases";
19431
+ } | {
19432
+ name: "generic";
19433
+ subtype: DatasourceGenericSubType;
19434
+ } | {
19435
+ name: "crm";
19436
+ subtype: DatasourceCRMSubType;
19437
+ } | {
19438
+ name: "product";
19439
+ subtype: DatasourceProductSubType;
19440
+ } | {
19441
+ name: "location";
19442
+ subtype: DatasourceLocationSubType;
19443
+ } | {
19444
+ name: "analytics";
19445
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
19446
+ } | {
19447
+ name: "push";
19448
+ subtype: "email";
19449
+ } | {
19450
+ name: "loop";
19451
+ subtype: DatasourceLoopSubType;
19452
+ };
19453
+ fieldsMap: {
19454
+ name: string;
19455
+ type: FieldMapType;
19456
+ source?: FieldSource;
19457
+ selected: boolean;
19458
+ ignoreIfMissing?: boolean;
19459
+ metadata?: {
19460
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19461
+ };
19462
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19463
+ }[];
19464
+ mode: DatasourceMode;
19465
+ readonly state: (DatasourceVersionState) & readonlyP;
19466
+ readonly pendingSteps?: (({
19467
+ name: "configure_name";
19468
+ } | {
19469
+ name: "configure_resource_group_ids";
19470
+ } | {
19471
+ name: "configure_sources";
19472
+ } | {
19473
+ name: "configure_fields";
19474
+ } | {
19475
+ name: "configure_field";
19476
+ field: {
19477
+ name: string;
19478
+ type: FieldMapType;
19479
+ };
19480
+ } | {
19481
+ name: "create_oauth_client";
19482
+ configurationId: string;
19483
+ } | {
19484
+ name: "authorize_oauth_client";
19485
+ slug: string;
19486
+ } | {
19487
+ name: "configure_thresholds";
19488
+ } | {
19489
+ name: "configure_api_key";
19490
+ slug: "partoo";
19491
+ } | {
19492
+ name: "patch";
19493
+ } | {
19494
+ name: "validate";
19495
+ } | {
19496
+ name: "configure_google_tag_manager";
19497
+ } | {
19498
+ name: "configure_reelevant_analytics_script";
19499
+ } | {
19500
+ name: "configure_product_datasource_source";
19501
+ } | {
19502
+ name: "configure_tracking_datasource_source";
19503
+ } | {
19504
+ name: "configure_best_product_query";
19505
+ } | {
19506
+ name: "configure_best_product_field";
19507
+ } | {
19508
+ name: "configure_fetcher";
19509
+ } | {
19510
+ name: "configure_merge_datasource_source";
19511
+ } | {
19512
+ name: "configure_merge_datasource_dependency";
19513
+ } | {
19514
+ name: "configure_merge_mapping";
19515
+ } | {
19516
+ name: "configure_bought_together";
19517
+ } | {
19518
+ name: "configure_top_attributes";
19519
+ } | {
19520
+ name: "configure_destination";
19521
+ type: "smtp";
19522
+ } | {
19523
+ name: "configure_hierarchy";
19524
+ } | {
19525
+ name: "google_my_business_set_url";
19526
+ urls: {
19527
+ getAccount: string;
19528
+ final: string;
19529
+ };
19530
+ } | {
19531
+ name: "setup_instagram";
19532
+ urls: {
19533
+ getAccount: string;
19534
+ getAccountInfos: string;
19535
+ final: string;
19536
+ };
19537
+ })[]) & readonlyP;
19538
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19539
+ readonly requiredFieldsTypes: ({
19540
+ [key: string]: FieldMapType;
19541
+ }[]) & readonlyP;
19542
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19543
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19544
+ } & {
19545
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19546
+ };
19547
+ export declare type Serialize_IngesterDatasource = {
19548
+ name: string;
19549
+ hidden: boolean;
19550
+ readonly template?: (ObjectId | null) & readonlyP;
19551
+ readonly fetcher: ({
19552
+ name: DatasourceFetcherName;
19553
+ params: {};
19554
+ } | {
19555
+ name: "fdj-bets";
19556
+ params: {};
19557
+ } | {
19558
+ name: "renault-prices";
19559
+ params: {};
19560
+ } | {
19561
+ name: "decathlon-product-fallback";
19562
+ params: {};
19563
+ } | {
19564
+ name: "generic-unwind-rows";
19565
+ params: {
19566
+ source: string;
19567
+ destination: string;
19568
+ columnDestination: string;
19569
+ valueType: string;
19570
+ };
19571
+ } | {
19572
+ name: "workflow-events";
19573
+ params: {};
19574
+ } | {
19575
+ name: "expired-product-lifetime";
19576
+ params: {
19577
+ purchaseDatasourceId: string;
19578
+ purchaseQuery: string;
19579
+ purchaseReferenceIdField: string;
19580
+ purchaseTimestampField: string;
19581
+ purchaseClientField: string;
19582
+ temporalities?: {
19583
+ maxLifetime: number;
19584
+ windowStart: number;
19585
+ windowEnd: number;
19586
+ minPurchaseCount?: number;
19587
+ }[];
19588
+ };
19589
+ } | {
19590
+ name: "product-exclusion";
19591
+ params: {
19592
+ mode: "inclusion" | "exclusion";
19593
+ exclusionDatasourceId: string;
19594
+ exclusionIdField: string;
19595
+ productIdField: string;
19596
+ };
19597
+ } | {
19598
+ name: "per-user";
19599
+ params: {};
19600
+ } | {
19601
+ name: "generic-proxy-lock";
19602
+ params: {
19603
+ ttl: number;
19604
+ };
19605
+ } | {
19606
+ name: "generic-proxy-aggregation";
19607
+ params: {
19608
+ targetField: string;
19609
+ aggregationType: "sum" | "avg" | "min" | "max";
19610
+ outputField: string;
19611
+ };
19612
+ }) & readonlyP;
19613
+ storageOptions: {
19614
+ destinations: {
19615
+ type: "bigquery";
19616
+ dataset: string;
19617
+ tableName: string;
19618
+ deduplicateOptions?: {
19619
+ enabled: boolean;
19620
+ };
19621
+ }[];
19622
+ partitionCount: number;
19623
+ segments: {
19624
+ offlineSize: number;
19625
+ offlineReplication: number;
19626
+ realtimeSize: number;
19627
+ realtimeReplication: number;
19628
+ };
19629
+ retention?: {
19630
+ value: number;
19631
+ unit: "DAYS";
19632
+ };
19633
+ };
19634
+ mode: "ingester";
19635
+ companyId: ObjectId;
19636
+ resourceGroupIds: ObjectId[];
19637
+ versions: (ObjectId | (Document & IngesterDatasourceVersion & {
19638
+ _id: ObjectId;
19639
+ } & {
19640
+ __v: number;
19641
+ } & IObjectWithTypegooseFunction))[];
19642
+ readonly archivedAt: (string | null) & readonlyP;
19643
+ status: DatasourceStatus;
19644
+ readonly configurationUpdatedAt: (string) & readonlyP;
19645
+ readonly lastSuccessfulIngestion?: (string) & readonlyP;
19646
+ readonly lastFailedIngestion?: (string) & readonlyP;
19647
+ readonly lastFailureReason?: (string) & readonlyP;
19648
+ hierarchy: string[];
19649
+ readonly hasWarnings: (boolean) & readonlyP;
19650
+ };
19651
+ export declare type IngesterDatasource = Serialize_IngesterDatasource & {
19652
+ readonly id: (string) & readonlyP;
19653
+ } & {
19654
+ readonly createdAt: (string) & readonlyP;
19655
+ readonly updatedAt: (string) & readonlyP;
19656
+ };
19657
+ export declare type PubsubDatasourceVersion = {
19658
+ readonly id: (string) & readonlyP;
19659
+ type: {
19660
+ name: "analytics";
19661
+ options: {
19662
+ autoExclusions?: boolean;
19663
+ noStats?: boolean;
19664
+ };
19665
+ subtype: "purchases";
19666
+ } | {
19667
+ name: "generic";
19668
+ subtype: DatasourceGenericSubType;
19669
+ } | {
19670
+ name: "crm";
19671
+ subtype: DatasourceCRMSubType;
19672
+ } | {
19673
+ name: "product";
19674
+ subtype: DatasourceProductSubType;
19675
+ } | {
19676
+ name: "location";
19677
+ subtype: DatasourceLocationSubType;
19678
+ } | {
19679
+ name: "analytics";
19680
+ subtype: "reelevant" | "google_tag_manager" | "workflow_events" | "user" | "mutable";
19681
+ } | {
19682
+ name: "push";
19683
+ subtype: "email";
19684
+ } | {
19685
+ name: "loop";
19686
+ subtype: DatasourceLoopSubType;
19687
+ };
19688
+ fieldsMap: {
19689
+ name: string;
19690
+ type: FieldMapType;
19691
+ source?: FieldSource;
19692
+ selected: boolean;
19693
+ ignoreIfMissing?: boolean;
19694
+ metadata?: {
19695
+ locale?: "de" | "fr" | "ja" | "pt" | "nl" | "zh" | "ru" | "es" | "uk" | "en";
19696
+ };
19697
+ readonly primitive: ("string" | "number" | "boolean" | "datetime" | "datetime_iso" | "string[]" | "number[]" | "string{}" | "number{}") & readonlyP;
19698
+ }[];
19699
+ mode: DatasourceMode;
19700
+ readonly state: (DatasourceVersionState) & readonlyP;
19701
+ readonly pendingSteps?: (({
19702
+ name: "configure_name";
19703
+ } | {
19704
+ name: "configure_resource_group_ids";
19705
+ } | {
19706
+ name: "configure_sources";
19707
+ } | {
19708
+ name: "configure_fields";
19709
+ } | {
19710
+ name: "configure_field";
19711
+ field: {
19712
+ name: string;
19713
+ type: FieldMapType;
19714
+ };
19715
+ } | {
19716
+ name: "create_oauth_client";
19717
+ configurationId: string;
19718
+ } | {
19719
+ name: "authorize_oauth_client";
19720
+ slug: string;
19721
+ } | {
19722
+ name: "configure_thresholds";
19723
+ } | {
19724
+ name: "configure_api_key";
19725
+ slug: "partoo";
19726
+ } | {
19727
+ name: "patch";
19728
+ } | {
19729
+ name: "validate";
19730
+ } | {
19731
+ name: "configure_google_tag_manager";
19732
+ } | {
19733
+ name: "configure_reelevant_analytics_script";
19734
+ } | {
19735
+ name: "configure_product_datasource_source";
19736
+ } | {
19737
+ name: "configure_tracking_datasource_source";
19738
+ } | {
19739
+ name: "configure_best_product_query";
19740
+ } | {
19741
+ name: "configure_best_product_field";
19742
+ } | {
19743
+ name: "configure_fetcher";
19744
+ } | {
19745
+ name: "configure_merge_datasource_source";
19746
+ } | {
19747
+ name: "configure_merge_datasource_dependency";
19748
+ } | {
19749
+ name: "configure_merge_mapping";
19750
+ } | {
19751
+ name: "configure_bought_together";
19752
+ } | {
19753
+ name: "configure_top_attributes";
19754
+ } | {
19755
+ name: "configure_destination";
19756
+ type: "smtp";
19757
+ } | {
19758
+ name: "configure_hierarchy";
19759
+ } | {
19760
+ name: "google_my_business_set_url";
19761
+ urls: {
19762
+ getAccount: string;
19763
+ final: string;
19764
+ };
19765
+ } | {
19766
+ name: "setup_instagram";
19767
+ urls: {
19768
+ getAccount: string;
19769
+ getAccountInfos: string;
19770
+ final: string;
19771
+ };
19772
+ })[]) & readonlyP;
19773
+ readonly availableFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19774
+ readonly requiredFieldsTypes: ({
19775
+ [key: string]: FieldMapType;
19776
+ }[]) & readonlyP;
19777
+ readonly uniqueFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19778
+ readonly importantFieldsTypes: (("string"[] & FieldMapType[]) | ("number"[] & FieldMapType[]) | ("datetime"[] & FieldMapType[]) | ("datetime_iso"[] & FieldMapType[]) | ("boolean"[] & FieldMapType[]) | ("address_1"[] & FieldMapType[]) | ("address_2"[] & FieldMapType[]) | ("address_3"[] & FieldMapType[]) | ("address_4"[] & FieldMapType[]) | ("city"[] & FieldMapType[]) | ("zipcode"[] & FieldMapType[]) | ("country"[] & FieldMapType[]) | ("latitude"[] & FieldMapType[]) | ("longitude"[] & FieldMapType[]) | ("reference_id"[] & FieldMapType[]) | ("reference_ids"[] & FieldMapType[]) | ("product_id"[] & FieldMapType[]) | ("price"[] & FieldMapType[]) | ("url"[] & FieldMapType[]) | ("image_url"[] & FieldMapType[]) | ("name"[] & FieldMapType[]) | ("description"[] & FieldMapType[]) | ("product_lifetime"[] & FieldMapType[]) | ("locale"[] & FieldMapType[]) | ("array_string"[] & FieldMapType[]) | ("array_number"[] & FieldMapType[]) | ("record_string"[] & FieldMapType[]) | ("record_number"[] & FieldMapType[]) | ("company_id"[] & FieldMapType[]) | ("event_name"[] & FieldMapType[]) | ("event_id"[] & FieldMapType[]) | ("user_tmp_id"[] & FieldMapType[]) | ("user_agent"[] & FieldMapType[]) | ("workflow_id"[] & FieldMapType[]) | ("workflow_version_id"[] & FieldMapType[]) | ("workflow_event_mode"[] & FieldMapType[]) | ("transaction_id"[] & FieldMapType[]) | ("transaction_source"[] & FieldMapType[]) | ("transaction_metadata"[] & FieldMapType[]) | ("product_quantity"[] & FieldMapType[]) | ("workflow_purchase_user"[] & FieldMapType[]) | ("workflow_user"[] & FieldMapType[]) | ("workflow_onsite_user"[] & FieldMapType[]) | ("user_birthday"[] & FieldMapType[]) | ("user_age"[] & FieldMapType[]) | ("loop_email_contact_id"[] & FieldMapType[]) | ("loop_web_contact_id"[] & FieldMapType[]) | ("loop_mobile_contact_id"[] & FieldMapType[])) & readonlyP;
19779
+ } & {
19780
+ readonly health: ("ERROR" | "WARNING" | "OK") & readonlyP;
19781
+ };
19782
+ export declare type Serialize_PubsubDatasource = {
19783
+ name: string;
19784
+ hidden: boolean;
19785
+ readonly template?: (ObjectId | null) & readonlyP;
19786
+ readonly fetcher: ({
19787
+ name: DatasourceFetcherName;
19788
+ params: {};
19789
+ } | {
19790
+ name: "fdj-bets";
19791
+ params: {};
19792
+ } | {
19793
+ name: "renault-prices";
19794
+ params: {};
19795
+ } | {
19796
+ name: "decathlon-product-fallback";
19797
+ params: {};
19798
+ } | {
19799
+ name: "generic-unwind-rows";
19800
+ params: {
19801
+ source: string;
19802
+ destination: string;
19803
+ columnDestination: string;
19804
+ valueType: string;
19805
+ };
19806
+ } | {
19807
+ name: "workflow-events";
19808
+ params: {};
19809
+ } | {
19810
+ name: "expired-product-lifetime";
19811
+ params: {
19812
+ purchaseDatasourceId: string;
19813
+ purchaseQuery: string;
19814
+ purchaseReferenceIdField: string;
19815
+ purchaseTimestampField: string;
19816
+ purchaseClientField: string;
19817
+ temporalities?: {
19818
+ maxLifetime: number;
19819
+ windowStart: number;
19820
+ windowEnd: number;
19821
+ minPurchaseCount?: number;
19822
+ }[];
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
+ };
19856
+ }[];
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";
19867
+ };
19868
+ };
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;
19891
+ };
19892
+ export declare type InternalResponse_Array_Union_PushDatasource_WorkerDatasource_ProxyDatasource_IngesterDatasource_PubsubDatasource = {
19893
+ program: string;
19894
+ version: string;
19895
+ datetime: string;
19896
+ status: string;
19897
+ code?: number;
19898
+ 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;
19905
+ };
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"))[];
19912
+ };
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
+ });
19946
+ };
18591
19947
  export declare type InternalResponse_example_Record = {
18592
19948
  program: string;
18593
19949
  version: string;
@@ -18630,11 +19986,6 @@ export declare type DatasourceLocation = {
18630
19986
  name: "location";
18631
19987
  subtype: DatasourceLocationSubType;
18632
19988
  };
18633
- export declare enum DatasourceLoopSubType {
18634
- SCORES = "scores",
18635
- MESSAGING_PLAN = "messaging_plan",
18636
- AUDIT = "audit"
18637
- }
18638
19989
  export declare type DatasourceLoop = {
18639
19990
  name: "loop";
18640
19991
  subtype: DatasourceLoopSubType;
@@ -19558,6 +20909,15 @@ export declare type WorkerSteps = {
19558
20909
  };
19559
20910
  segmentBatchSize?: number;
19560
20911
  sftpPublicKey?: string;
20912
+ } & {
20913
+ destinations?: {
20914
+ type: "bigquery";
20915
+ dataset: string;
20916
+ tableName: string;
20917
+ deduplicateOptions?: {
20918
+ enabled: boolean;
20919
+ };
20920
+ }[];
19561
20921
  };
19562
20922
  } | {
19563
20923
  name: "configure_fetcher";
@@ -20965,6 +22325,15 @@ export declare type IngesterSteps = {
20965
22325
  username: string;
20966
22326
  password: string;
20967
22327
  };
22328
+ } & {
22329
+ destinations?: {
22330
+ type: "bigquery";
22331
+ dataset: string;
22332
+ tableName: string;
22333
+ deduplicateOptions?: {
22334
+ enabled: boolean;
22335
+ };
22336
+ }[];
20968
22337
  };
20969
22338
  } | {
20970
22339
  name: "configure_fetcher";
@@ -21612,6 +22981,18 @@ export declare type PubsubSteps = {
21612
22981
  payload: {
21613
22982
  value: string;
21614
22983
  };
22984
+ } | {
22985
+ name: "patch";
22986
+ payload: {
22987
+ destinations?: {
22988
+ type: "bigquery";
22989
+ dataset: string;
22990
+ tableName: string;
22991
+ deduplicateOptions?: {
22992
+ enabled: boolean;
22993
+ };
22994
+ }[];
22995
+ };
21615
22996
  } | {
21616
22997
  name: "configure_fetcher";
21617
22998
  payload: {
@@ -21785,10 +23166,4 @@ export declare type PushSteps = {
21785
23166
  name: "configure_hierarchy";
21786
23167
  payload: string[];
21787
23168
  };
21788
- export declare enum DatasourceVersionState {
21789
- LIVE = "LIVE",
21790
- DRAFT = "DRAFT",
21791
- SCHEDULED = "SCHEDULED",
21792
- INACTIVE = "INACTIVE"
21793
- }
21794
23169
  export {};