@osdk/foundry.connectivity 2.17.0 → 2.19.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @osdk/foundry.connectivity
2
2
 
3
+ ## 2.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 539c731: Regenerate Platform SDKs
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [539c731]
12
+ - @osdk/foundry.orchestration@2.19.0
13
+ - @osdk/foundry.filesystem@2.19.0
14
+ - @osdk/foundry.datasets@2.19.0
15
+ - @osdk/foundry.core@2.19.0
16
+
17
+ ## 2.18.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 98ec492: Update Platform SDKs
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [98ec492]
26
+ - @osdk/foundry.orchestration@2.18.0
27
+ - @osdk/foundry.filesystem@2.18.0
28
+ - @osdk/foundry.datasets@2.18.0
29
+ - @osdk/foundry.core@2.18.0
30
+
3
31
  ## 2.17.0
4
32
 
5
33
  ### Minor Changes
@@ -103,6 +103,8 @@ export type ConnectionConfiguration = ({
103
103
  } & S3ConnectionConfiguration) | ({
104
104
  type: "rest";
105
105
  } & RestConnectionConfiguration) | ({
106
+ type: "snowflake";
107
+ } & SnowflakeConnectionConfiguration) | ({
106
108
  type: "jdbc";
107
109
  } & JdbcConnectionConfiguration);
108
110
  /**
@@ -171,6 +173,8 @@ export type CreateConnectionRequestConnectionConfiguration = ({
171
173
  } & CreateConnectionRequestS3ConnectionConfiguration) | ({
172
174
  type: "rest";
173
175
  } & CreateConnectionRequestRestConnectionConfiguration) | ({
176
+ type: "snowflake";
177
+ } & CreateConnectionRequestSnowflakeConnectionConfiguration) | ({
174
178
  type: "jdbc";
175
179
  } & CreateConnectionRequestJdbcConnectionConfiguration);
176
180
  /**
@@ -280,6 +284,40 @@ export interface CreateConnectionRequestSecretsNames {
280
284
  export interface CreateConnectionRequestSecretsWithPlaintextValues {
281
285
  secrets: Record<SecretName, PlaintextValue>;
282
286
  }
287
+ /**
288
+ * Log Safety: UNSAFE
289
+ */
290
+ export type CreateConnectionRequestSnowflakeAuthenticationMode = ({
291
+ type: "externalOauth";
292
+ } & CreateConnectionRequestSnowflakeExternalOauth) | ({
293
+ type: "keyPair";
294
+ } & CreateConnectionRequestSnowflakeKeyPairAuthentication) | ({
295
+ type: "basic";
296
+ } & CreateConnectionRequestBasicCredentials);
297
+ /**
298
+ * Log Safety: UNSAFE
299
+ */
300
+ export interface CreateConnectionRequestSnowflakeConnectionConfiguration {
301
+ schema?: string;
302
+ database?: string;
303
+ role?: string;
304
+ accountIdentifier: string;
305
+ jdbcProperties: Record<string, string>;
306
+ warehouse?: string;
307
+ authenticationMode: CreateConnectionRequestSnowflakeAuthenticationMode;
308
+ }
309
+ /**
310
+ * Log Safety: SAFE
311
+ */
312
+ export interface CreateConnectionRequestSnowflakeExternalOauth {
313
+ }
314
+ /**
315
+ * Log Safety: UNSAFE
316
+ */
317
+ export interface CreateConnectionRequestSnowflakeKeyPairAuthentication {
318
+ privateKey: CreateConnectionRequestEncryptedProperty;
319
+ user: string;
320
+ }
283
321
  /**
284
322
  * Log Safety: UNSAFE
285
323
  */
@@ -315,32 +353,79 @@ export interface CreateTableImportRequest {
315
353
  /**
316
354
  * Log Safety: UNSAFE
317
355
  */
318
- export interface CreateTableImportRequestJdbcImportConfig {
319
- query: string;
356
+ export interface CreateTableImportRequestDateColumnInitialIncrementalState {
357
+ currentValue: string;
358
+ columnName: string;
359
+ }
360
+ /**
361
+ * Log Safety: UNSAFE
362
+ */
363
+ export interface CreateTableImportRequestDecimalColumnInitialIncrementalState {
364
+ currentValue: string;
365
+ columnName: string;
366
+ }
367
+ /**
368
+ * Log Safety: UNSAFE
369
+ */
370
+ export interface CreateTableImportRequestIntegerColumnInitialIncrementalState {
371
+ currentValue: number;
372
+ columnName: string;
373
+ }
374
+ /**
375
+ * Log Safety: UNSAFE
376
+ */
377
+ export interface CreateTableImportRequestJdbcTableImportConfig {
378
+ initialIncrementalState?: TableImportInitialIncrementalState;
379
+ query: TableImportQuery;
320
380
  }
321
381
  /**
322
382
  * Log Safety: UNSAFE
323
383
  */
324
- export interface CreateTableImportRequestMicrosoftAccessImportConfig {
325
- query: string;
384
+ export interface CreateTableImportRequestLongColumnInitialIncrementalState {
385
+ currentValue: string;
386
+ columnName: string;
326
387
  }
327
388
  /**
328
389
  * Log Safety: UNSAFE
329
390
  */
330
- export interface CreateTableImportRequestMicrosoftSqlServerImportConfig {
331
- query: string;
391
+ export interface CreateTableImportRequestMicrosoftAccessTableImportConfig {
392
+ initialIncrementalState?: TableImportInitialIncrementalState;
393
+ query: TableImportQuery;
332
394
  }
333
395
  /**
334
396
  * Log Safety: UNSAFE
335
397
  */
336
- export interface CreateTableImportRequestOracleImportConfig {
337
- query: string;
398
+ export interface CreateTableImportRequestMicrosoftSqlServerTableImportConfig {
399
+ initialIncrementalState?: TableImportInitialIncrementalState;
400
+ query: TableImportQuery;
338
401
  }
339
402
  /**
340
403
  * Log Safety: UNSAFE
341
404
  */
342
- export interface CreateTableImportRequestPostgreSqlImportConfig {
343
- query: string;
405
+ export interface CreateTableImportRequestOracleTableImportConfig {
406
+ initialIncrementalState?: TableImportInitialIncrementalState;
407
+ query: TableImportQuery;
408
+ }
409
+ /**
410
+ * Log Safety: UNSAFE
411
+ */
412
+ export interface CreateTableImportRequestPostgreSqlTableImportConfig {
413
+ initialIncrementalState?: TableImportInitialIncrementalState;
414
+ query: TableImportQuery;
415
+ }
416
+ /**
417
+ * Log Safety: UNSAFE
418
+ */
419
+ export interface CreateTableImportRequestSnowflakeTableImportConfig {
420
+ initialIncrementalState?: TableImportInitialIncrementalState;
421
+ query: TableImportQuery;
422
+ }
423
+ /**
424
+ * Log Safety: UNSAFE
425
+ */
426
+ export interface CreateTableImportRequestStringColumnInitialIncrementalState {
427
+ currentValue: string;
428
+ columnName: string;
344
429
  }
345
430
  /**
346
431
  * The import configuration for a specific connector type.
@@ -349,15 +434,65 @@ export interface CreateTableImportRequestPostgreSqlImportConfig {
349
434
  */
350
435
  export type CreateTableImportRequestTableImportConfig = ({
351
436
  type: "jdbcImportConfig";
352
- } & CreateTableImportRequestJdbcImportConfig) | ({
437
+ } & CreateTableImportRequestJdbcTableImportConfig) | ({
353
438
  type: "microsoftSqlServerImportConfig";
354
- } & CreateTableImportRequestMicrosoftSqlServerImportConfig) | ({
439
+ } & CreateTableImportRequestMicrosoftSqlServerTableImportConfig) | ({
355
440
  type: "postgreSqlImportConfig";
356
- } & CreateTableImportRequestPostgreSqlImportConfig) | ({
441
+ } & CreateTableImportRequestPostgreSqlTableImportConfig) | ({
357
442
  type: "microsoftAccessImportConfig";
358
- } & CreateTableImportRequestMicrosoftAccessImportConfig) | ({
443
+ } & CreateTableImportRequestMicrosoftAccessTableImportConfig) | ({
444
+ type: "snowflakeImportConfig";
445
+ } & CreateTableImportRequestSnowflakeTableImportConfig) | ({
359
446
  type: "oracleImportConfig";
360
- } & CreateTableImportRequestOracleImportConfig);
447
+ } & CreateTableImportRequestOracleTableImportConfig);
448
+ /**
449
+ * The incremental configuration for a table import enables append-style transactions from the same table without duplication of data.
450
+ You must provide a monotonically increasing column such as a timestamp or id and an initial value for this column.
451
+ An incremental table import will import rows where the value is greater than the largest already imported.
452
+ You can use the '?' character to reference the incremental state value when constructing your query.
453
+ Normally this would be used in a WHERE clause or similar filter applied in order to only sync data with an incremental column value
454
+ larger than the previously observed maximum value stored in the incremental state.
455
+ *
456
+ * Log Safety: UNSAFE
457
+ */
458
+ export type CreateTableImportRequestTableImportInitialIncrementalState = ({
459
+ type: "stringColumnInitialIncrementalState";
460
+ } & CreateTableImportRequestStringColumnInitialIncrementalState) | ({
461
+ type: "dateColumnInitialIncrementalState";
462
+ } & CreateTableImportRequestDateColumnInitialIncrementalState) | ({
463
+ type: "integerColumnInitialIncrementalState";
464
+ } & CreateTableImportRequestIntegerColumnInitialIncrementalState) | ({
465
+ type: "timestampColumnInitialIncrementalState";
466
+ } & CreateTableImportRequestTimestampColumnInitialIncrementalState) | ({
467
+ type: "longColumnInitialIncrementalState";
468
+ } & CreateTableImportRequestLongColumnInitialIncrementalState) | ({
469
+ type: "decimalColumnInitialIncrementalState";
470
+ } & CreateTableImportRequestDecimalColumnInitialIncrementalState);
471
+ /**
472
+ * Log Safety: UNSAFE
473
+ */
474
+ export interface CreateTableImportRequestTimestampColumnInitialIncrementalState {
475
+ currentValue: string;
476
+ columnName: string;
477
+ }
478
+ /**
479
+ * The state for an incremental table import using a column with a date type.
480
+ *
481
+ * Log Safety: UNSAFE
482
+ */
483
+ export interface DateColumnInitialIncrementalState {
484
+ columnName: string;
485
+ currentValue: string;
486
+ }
487
+ /**
488
+ * The state for an incremental table import using a column with a decimal data type.
489
+ *
490
+ * Log Safety: UNSAFE
491
+ */
492
+ export interface DecimalColumnInitialIncrementalState {
493
+ columnName: string;
494
+ currentValue: string;
495
+ }
361
496
  /**
362
497
  * The domain that the connection is allowed to access.
363
498
  *
@@ -549,6 +684,15 @@ export interface FileSizeFilter {
549
684
  export interface HeaderApiKey {
550
685
  headerName: string;
551
686
  }
687
+ /**
688
+ * The state for an incremental table import using a numeric integer datatype.
689
+ *
690
+ * Log Safety: UNSAFE
691
+ */
692
+ export interface IntegerColumnInitialIncrementalState {
693
+ columnName: string;
694
+ currentValue: number;
695
+ }
552
696
  /**
553
697
  * The configuration needed to connect to an external system using the JDBC protocol.
554
698
  *
@@ -565,8 +709,9 @@ export interface JdbcConnectionConfiguration {
565
709
  *
566
710
  * Log Safety: UNSAFE
567
711
  */
568
- export interface JdbcImportConfig {
569
- query: string;
712
+ export interface JdbcTableImportConfig {
713
+ query: TableImportQuery;
714
+ initialIncrementalState?: TableImportInitialIncrementalState;
570
715
  }
571
716
  /**
572
717
  * Log Safety: UNSAFE
@@ -582,21 +727,32 @@ export interface ListTableImportsResponse {
582
727
  data: Array<TableImport>;
583
728
  nextPageToken?: _Core.PageToken;
584
729
  }
730
+ /**
731
+ * The state for an incremental table import using a column with a numeric long datatype.
732
+ *
733
+ * Log Safety: UNSAFE
734
+ */
735
+ export interface LongColumnInitialIncrementalState {
736
+ columnName: string;
737
+ currentValue: string;
738
+ }
585
739
  /**
586
740
  * The import configuration for a Microsoft Access connection.
587
741
  *
588
742
  * Log Safety: UNSAFE
589
743
  */
590
- export interface MicrosoftAccessImportConfig {
591
- query: string;
744
+ export interface MicrosoftAccessTableImportConfig {
745
+ query: TableImportQuery;
746
+ initialIncrementalState?: TableImportInitialIncrementalState;
592
747
  }
593
748
  /**
594
749
  * The import configuration for a Microsoft SQL Server connection.
595
750
  *
596
751
  * Log Safety: UNSAFE
597
752
  */
598
- export interface MicrosoftSqlServerImportConfig {
599
- query: string;
753
+ export interface MicrosoftSqlServerTableImportConfig {
754
+ query: TableImportQuery;
755
+ initialIncrementalState?: TableImportInitialIncrementalState;
600
756
  }
601
757
  /**
602
758
  * The Resource Identifier (RID) of a Network Egress Policy.
@@ -609,8 +765,9 @@ export type NetworkEgressPolicyRid = LooselyBrandedString<"NetworkEgressPolicyRi
609
765
  *
610
766
  * Log Safety: UNSAFE
611
767
  */
612
- export interface OracleImportConfig {
613
- query: string;
768
+ export interface OracleTableImportConfig {
769
+ query: TableImportQuery;
770
+ initialIncrementalState?: TableImportInitialIncrementalState;
614
771
  }
615
772
  /**
616
773
  * Log Safety: DO_NOT_LOG
@@ -621,8 +778,9 @@ export type PlaintextValue = LooselyBrandedString<"PlaintextValue">;
621
778
  *
622
779
  * Log Safety: UNSAFE
623
780
  */
624
- export interface PostgreSqlImportConfig {
625
- query: string;
781
+ export interface PostgreSqlTableImportConfig {
782
+ query: TableImportQuery;
783
+ initialIncrementalState?: TableImportInitialIncrementalState;
626
784
  }
627
785
  /**
628
786
  * Protocol to establish a connection with another system.
@@ -653,6 +811,142 @@ export interface ReplaceFileImportRequest {
653
811
  subfolder?: string;
654
812
  fileImportFilters: Array<FileImportFilter>;
655
813
  }
814
+ /**
815
+ * Log Safety: UNSAFE
816
+ */
817
+ export interface ReplaceTableImportRequest {
818
+ datasetRid: _Datasets.DatasetRid;
819
+ importMode: TableImportMode;
820
+ displayName: TableImportDisplayName;
821
+ allowSchemaChanges?: TableImportAllowSchemaChanges;
822
+ branchName?: _Datasets.BranchName;
823
+ config: ReplaceTableImportRequestTableImportConfig;
824
+ }
825
+ /**
826
+ * Log Safety: UNSAFE
827
+ */
828
+ export interface ReplaceTableImportRequestDateColumnInitialIncrementalState {
829
+ currentValue: string;
830
+ columnName: string;
831
+ }
832
+ /**
833
+ * Log Safety: UNSAFE
834
+ */
835
+ export interface ReplaceTableImportRequestDecimalColumnInitialIncrementalState {
836
+ currentValue: string;
837
+ columnName: string;
838
+ }
839
+ /**
840
+ * Log Safety: UNSAFE
841
+ */
842
+ export interface ReplaceTableImportRequestIntegerColumnInitialIncrementalState {
843
+ currentValue: number;
844
+ columnName: string;
845
+ }
846
+ /**
847
+ * Log Safety: UNSAFE
848
+ */
849
+ export interface ReplaceTableImportRequestJdbcTableImportConfig {
850
+ initialIncrementalState?: TableImportInitialIncrementalState;
851
+ query: TableImportQuery;
852
+ }
853
+ /**
854
+ * Log Safety: UNSAFE
855
+ */
856
+ export interface ReplaceTableImportRequestLongColumnInitialIncrementalState {
857
+ currentValue: string;
858
+ columnName: string;
859
+ }
860
+ /**
861
+ * Log Safety: UNSAFE
862
+ */
863
+ export interface ReplaceTableImportRequestMicrosoftAccessTableImportConfig {
864
+ initialIncrementalState?: TableImportInitialIncrementalState;
865
+ query: TableImportQuery;
866
+ }
867
+ /**
868
+ * Log Safety: UNSAFE
869
+ */
870
+ export interface ReplaceTableImportRequestMicrosoftSqlServerTableImportConfig {
871
+ initialIncrementalState?: TableImportInitialIncrementalState;
872
+ query: TableImportQuery;
873
+ }
874
+ /**
875
+ * Log Safety: UNSAFE
876
+ */
877
+ export interface ReplaceTableImportRequestOracleTableImportConfig {
878
+ initialIncrementalState?: TableImportInitialIncrementalState;
879
+ query: TableImportQuery;
880
+ }
881
+ /**
882
+ * Log Safety: UNSAFE
883
+ */
884
+ export interface ReplaceTableImportRequestPostgreSqlTableImportConfig {
885
+ initialIncrementalState?: TableImportInitialIncrementalState;
886
+ query: TableImportQuery;
887
+ }
888
+ /**
889
+ * Log Safety: UNSAFE
890
+ */
891
+ export interface ReplaceTableImportRequestSnowflakeTableImportConfig {
892
+ initialIncrementalState?: TableImportInitialIncrementalState;
893
+ query: TableImportQuery;
894
+ }
895
+ /**
896
+ * Log Safety: UNSAFE
897
+ */
898
+ export interface ReplaceTableImportRequestStringColumnInitialIncrementalState {
899
+ currentValue: string;
900
+ columnName: string;
901
+ }
902
+ /**
903
+ * The import configuration for a specific connector type.
904
+ *
905
+ * Log Safety: UNSAFE
906
+ */
907
+ export type ReplaceTableImportRequestTableImportConfig = ({
908
+ type: "jdbcImportConfig";
909
+ } & ReplaceTableImportRequestJdbcTableImportConfig) | ({
910
+ type: "microsoftSqlServerImportConfig";
911
+ } & ReplaceTableImportRequestMicrosoftSqlServerTableImportConfig) | ({
912
+ type: "postgreSqlImportConfig";
913
+ } & ReplaceTableImportRequestPostgreSqlTableImportConfig) | ({
914
+ type: "microsoftAccessImportConfig";
915
+ } & ReplaceTableImportRequestMicrosoftAccessTableImportConfig) | ({
916
+ type: "snowflakeImportConfig";
917
+ } & ReplaceTableImportRequestSnowflakeTableImportConfig) | ({
918
+ type: "oracleImportConfig";
919
+ } & ReplaceTableImportRequestOracleTableImportConfig);
920
+ /**
921
+ * The incremental configuration for a table import enables append-style transactions from the same table without duplication of data.
922
+ You must provide a monotonically increasing column such as a timestamp or id and an initial value for this column.
923
+ An incremental table import will import rows where the value is greater than the largest already imported.
924
+ You can use the '?' character to reference the incremental state value when constructing your query.
925
+ Normally this would be used in a WHERE clause or similar filter applied in order to only sync data with an incremental column value
926
+ larger than the previously observed maximum value stored in the incremental state.
927
+ *
928
+ * Log Safety: UNSAFE
929
+ */
930
+ export type ReplaceTableImportRequestTableImportInitialIncrementalState = ({
931
+ type: "stringColumnInitialIncrementalState";
932
+ } & ReplaceTableImportRequestStringColumnInitialIncrementalState) | ({
933
+ type: "dateColumnInitialIncrementalState";
934
+ } & ReplaceTableImportRequestDateColumnInitialIncrementalState) | ({
935
+ type: "integerColumnInitialIncrementalState";
936
+ } & ReplaceTableImportRequestIntegerColumnInitialIncrementalState) | ({
937
+ type: "timestampColumnInitialIncrementalState";
938
+ } & ReplaceTableImportRequestTimestampColumnInitialIncrementalState) | ({
939
+ type: "longColumnInitialIncrementalState";
940
+ } & ReplaceTableImportRequestLongColumnInitialIncrementalState) | ({
941
+ type: "decimalColumnInitialIncrementalState";
942
+ } & ReplaceTableImportRequestDecimalColumnInitialIncrementalState);
943
+ /**
944
+ * Log Safety: UNSAFE
945
+ */
946
+ export interface ReplaceTableImportRequestTimestampColumnInitialIncrementalState {
947
+ currentValue: string;
948
+ columnName: string;
949
+ }
656
950
  /**
657
951
  * The method of authentication for connecting to an external REST system.
658
952
  *
@@ -777,6 +1071,69 @@ This should be used when creating or updating additional secrets for a REST conn
777
1071
  export interface SecretsWithPlaintextValues {
778
1072
  secrets: Record<SecretName, PlaintextValue>;
779
1073
  }
1074
+ /**
1075
+ * Log Safety: UNSAFE
1076
+ */
1077
+ export type SnowflakeAuthenticationMode = ({
1078
+ type: "externalOauth";
1079
+ } & SnowflakeExternalOauth) | ({
1080
+ type: "keyPair";
1081
+ } & SnowflakeKeyPairAuthentication) | ({
1082
+ type: "basic";
1083
+ } & BasicCredentials);
1084
+ /**
1085
+ * The configuration needed to connect to a Snowflake database.
1086
+ *
1087
+ * Log Safety: UNSAFE
1088
+ */
1089
+ export interface SnowflakeConnectionConfiguration {
1090
+ accountIdentifier: string;
1091
+ database?: string;
1092
+ role?: string;
1093
+ schema?: string;
1094
+ warehouse?: string;
1095
+ authenticationMode: SnowflakeAuthenticationMode;
1096
+ jdbcProperties: Record<string, string>;
1097
+ }
1098
+ /**
1099
+ * Use an External OAuth security integration to connect and authenticate to Snowflake.
1100
+ See https://docs.snowflake.com/en/user-guide/oauth-ext-custom
1101
+ *
1102
+ * Log Safety: UNSAFE
1103
+ */
1104
+ export interface SnowflakeExternalOauth {
1105
+ audience: string;
1106
+ issuerUrl: string;
1107
+ subject: ConnectionRid;
1108
+ }
1109
+ /**
1110
+ * Use a key-pair to connect and authenticate to Snowflake.
1111
+ See https://docs.snowflake.com/en/user-guide/key-pair-auth
1112
+ *
1113
+ * Log Safety: UNSAFE
1114
+ */
1115
+ export interface SnowflakeKeyPairAuthentication {
1116
+ user: string;
1117
+ privateKey: EncryptedProperty;
1118
+ }
1119
+ /**
1120
+ * The table import configuration for a Snowflake connection.
1121
+ *
1122
+ * Log Safety: UNSAFE
1123
+ */
1124
+ export interface SnowflakeTableImportConfig {
1125
+ query: TableImportQuery;
1126
+ initialIncrementalState?: TableImportInitialIncrementalState;
1127
+ }
1128
+ /**
1129
+ * The state for an incremental table import using a column with a string data type.
1130
+ *
1131
+ * Log Safety: UNSAFE
1132
+ */
1133
+ export interface StringColumnInitialIncrementalState {
1134
+ columnName: string;
1135
+ currentValue: string;
1136
+ }
780
1137
  /**
781
1138
  * Log Safety: UNSAFE
782
1139
  */
@@ -813,19 +1170,44 @@ export type TableImportAllowSchemaChanges = boolean;
813
1170
  */
814
1171
  export type TableImportConfig = ({
815
1172
  type: "jdbcImportConfig";
816
- } & JdbcImportConfig) | ({
1173
+ } & JdbcTableImportConfig) | ({
817
1174
  type: "microsoftSqlServerImportConfig";
818
- } & MicrosoftSqlServerImportConfig) | ({
1175
+ } & MicrosoftSqlServerTableImportConfig) | ({
819
1176
  type: "postgreSqlImportConfig";
820
- } & PostgreSqlImportConfig) | ({
1177
+ } & PostgreSqlTableImportConfig) | ({
821
1178
  type: "microsoftAccessImportConfig";
822
- } & MicrosoftAccessImportConfig) | ({
1179
+ } & MicrosoftAccessTableImportConfig) | ({
1180
+ type: "snowflakeImportConfig";
1181
+ } & SnowflakeTableImportConfig) | ({
823
1182
  type: "oracleImportConfig";
824
- } & OracleImportConfig);
1183
+ } & OracleTableImportConfig);
825
1184
  /**
826
1185
  * Log Safety: UNSAFE
827
1186
  */
828
1187
  export type TableImportDisplayName = LooselyBrandedString<"TableImportDisplayName">;
1188
+ /**
1189
+ * The incremental configuration for a table import enables append-style transactions from the same table without duplication of data.
1190
+ You must provide a monotonically increasing column such as a timestamp or id and an initial value for this column.
1191
+ An incremental table import will import rows where the value is greater than the largest already imported.
1192
+ You can use the '?' character to reference the incremental state value when constructing your query.
1193
+ Normally this would be used in a WHERE clause or similar filter applied in order to only sync data with an incremental column value
1194
+ larger than the previously observed maximum value stored in the incremental state.
1195
+ *
1196
+ * Log Safety: UNSAFE
1197
+ */
1198
+ export type TableImportInitialIncrementalState = ({
1199
+ type: "stringColumnInitialIncrementalState";
1200
+ } & StringColumnInitialIncrementalState) | ({
1201
+ type: "dateColumnInitialIncrementalState";
1202
+ } & DateColumnInitialIncrementalState) | ({
1203
+ type: "integerColumnInitialIncrementalState";
1204
+ } & IntegerColumnInitialIncrementalState) | ({
1205
+ type: "timestampColumnInitialIncrementalState";
1206
+ } & TimestampColumnInitialIncrementalState) | ({
1207
+ type: "longColumnInitialIncrementalState";
1208
+ } & LongColumnInitialIncrementalState) | ({
1209
+ type: "decimalColumnInitialIncrementalState";
1210
+ } & DecimalColumnInitialIncrementalState);
829
1211
  /**
830
1212
  * Import mode governs how data is read from an external system, and written into a Foundry dataset.
831
1213
  SNAPSHOT: Defines a new dataset state consisting only of data from a particular import execution.
@@ -834,12 +1216,27 @@ APPEND: Purely additive and yields data from previous import executions in addit
834
1216
  * Log Safety: SAFE
835
1217
  */
836
1218
  export type TableImportMode = "SNAPSHOT" | "APPEND";
1219
+ /**
1220
+ * A single SQL query can be executed per sync, which should output a data table
1221
+ and avoid operations like invoking stored procedures.
1222
+ The query results are saved to the output dataset in Foundry.
1223
+ *
1224
+ * Log Safety: UNSAFE
1225
+ */
1226
+ export type TableImportQuery = LooselyBrandedString<"TableImportQuery">;
837
1227
  /**
838
1228
  * The Resource Identifier (RID) of a TableImport (also known as a batch sync).
839
1229
  *
840
1230
  * Log Safety: SAFE
841
1231
  */
842
1232
  export type TableImportRid = LooselyBrandedString<"TableImportRid">;
1233
+ /**
1234
+ * Log Safety: UNSAFE
1235
+ */
1236
+ export interface TimestampColumnInitialIncrementalState {
1237
+ columnName: string;
1238
+ currentValue: string;
1239
+ }
843
1240
  /**
844
1241
  * Log Safety: DO_NOT_LOG
845
1242
  */