@keboola/api-fixtures 40.0.0 → 42.0.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/dist/index.d.ts CHANGED
@@ -700,7 +700,7 @@ declare const uiAppFixtures: {
700
700
  created: string;
701
701
  isActive: false;
702
702
  isCritical: true;
703
- buildUrl: null;
703
+ buildUrl: string;
704
704
  commitSha: null;
705
705
  })[];
706
706
  };
@@ -752,9 +752,7 @@ declare const getDevBranches: () => DevBranch[];
752
752
  /**
753
753
  * Returns a single non-typed, non-alias `TableDetail` (fresh, no imports yet).
754
754
  *
755
- * The explicit return type surfaces any divergence from the hand-written `TableDetail` in
756
- * `@keboola/api-client` as a TypeScript error. That type is not derived from the OpenAPI
757
- * document, so this annotation and the `satisfies` above are the only mechanical check there is.
755
+ * - The explicit return type surfaces a drift from `TableDetail` as a TypeScript error.
758
756
  */
759
757
  declare const getTable: () => TableDetail;
760
758
  /**
@@ -772,13 +770,16 @@ declare const listTables: () => TableDetail[];
772
770
  */
773
771
  declare const tableFixtures: {
774
772
  fresh: {
775
- id: string;
776
- name: string;
777
- displayName: string;
778
- primaryKey: string[];
779
- metadata: never[];
780
- columns: string[];
781
- columnMetadata: {};
773
+ transactional: boolean;
774
+ indexType: null;
775
+ indexKey: never[];
776
+ distributionType: null;
777
+ distributionKey: never[];
778
+ syntheticPrimaryKeyEnabled: boolean;
779
+ isAliasable: boolean;
780
+ isDescriptionSystemManaged: boolean;
781
+ timestampType: 'MANAGED';
782
+ tableType: string;
782
783
  attributes: never[];
783
784
  bucket: {
784
785
  id: string;
@@ -797,7 +798,7 @@ declare const tableFixtures: {
797
798
  uri: string;
798
799
  backend: 'snowflake';
799
800
  backendPath: never[];
800
- databaseName: null;
801
+ databaseName: string;
801
802
  color: null;
802
803
  idBranch: number;
803
804
  owner: null;
@@ -810,32 +811,32 @@ declare const tableFixtures: {
810
811
  };
811
812
  isTyped: false;
812
813
  isAlias: false;
813
- lastImportDate: null;
814
- lastChangeDate: null;
815
- rowsCount: number;
816
- };
817
- recentlyUpdated: {
814
+ uri: string;
818
815
  id: string;
819
816
  name: string;
820
817
  displayName: string;
818
+ path: string;
821
819
  primaryKey: string[];
822
- metadata: {
823
- id: string;
824
- key: string;
825
- value: string;
826
- provider: string;
827
- timestamp: string;
828
- }[];
820
+ metadata: never[];
829
821
  columns: string[];
830
- columnMetadata: {
831
- order_id: {
832
- id: string;
833
- key: string;
834
- value: string;
835
- provider: string;
836
- timestamp: string;
837
- }[];
838
- };
822
+ columnMetadata: {};
823
+ created: string;
824
+ lastImportDate: null;
825
+ lastChangeDate: null;
826
+ rowsCount: number;
827
+ dataSizeBytes: number;
828
+ };
829
+ recentlyUpdated: {
830
+ transactional: boolean;
831
+ indexType: null;
832
+ indexKey: never[];
833
+ distributionType: null;
834
+ distributionKey: never[];
835
+ syntheticPrimaryKeyEnabled: boolean;
836
+ isAliasable: boolean;
837
+ isDescriptionSystemManaged: boolean;
838
+ timestampType: 'MANAGED';
839
+ tableType: string;
839
840
  attributes: never[];
840
841
  bucket: {
841
842
  id: string;
@@ -854,7 +855,7 @@ declare const tableFixtures: {
854
855
  uri: string;
855
856
  backend: 'snowflake';
856
857
  backendPath: never[];
857
- databaseName: null;
858
+ databaseName: string;
858
859
  color: null;
859
860
  idBranch: number;
860
861
  owner: null;
@@ -867,18 +868,46 @@ declare const tableFixtures: {
867
868
  };
868
869
  isTyped: false;
869
870
  isAlias: false;
871
+ uri: string;
872
+ id: string;
873
+ name: string;
874
+ displayName: string;
875
+ path: string;
876
+ primaryKey: string[];
877
+ metadata: {
878
+ id: string;
879
+ key: string;
880
+ value: string;
881
+ provider: string;
882
+ timestamp: string;
883
+ }[];
884
+ columns: string[];
885
+ columnMetadata: {
886
+ order_id: {
887
+ id: string;
888
+ key: string;
889
+ value: string;
890
+ provider: string;
891
+ timestamp: string;
892
+ }[];
893
+ };
894
+ created: string;
870
895
  lastImportDate: string;
871
896
  lastChangeDate: string;
872
897
  rowsCount: number;
898
+ dataSizeBytes: number;
873
899
  };
874
900
  large: {
875
- id: string;
876
- name: string;
877
- displayName: string;
878
- primaryKey: never[];
879
- metadata: never[];
880
- columns: string[];
881
- columnMetadata: {};
901
+ transactional: boolean;
902
+ indexType: null;
903
+ indexKey: never[];
904
+ distributionType: null;
905
+ distributionKey: never[];
906
+ syntheticPrimaryKeyEnabled: boolean;
907
+ isAliasable: boolean;
908
+ isDescriptionSystemManaged: boolean;
909
+ timestampType: 'MANAGED';
910
+ tableType: string;
882
911
  attributes: never[];
883
912
  bucket: {
884
913
  id: string;
@@ -897,7 +926,7 @@ declare const tableFixtures: {
897
926
  uri: string;
898
927
  backend: 'snowflake';
899
928
  backendPath: never[];
900
- databaseName: null;
929
+ databaseName: string;
901
930
  color: null;
902
931
  idBranch: number;
903
932
  owner: null;
@@ -910,9 +939,20 @@ declare const tableFixtures: {
910
939
  };
911
940
  isTyped: false;
912
941
  isAlias: false;
942
+ uri: string;
943
+ id: string;
944
+ name: string;
945
+ displayName: string;
946
+ path: string;
947
+ primaryKey: never[];
948
+ metadata: never[];
949
+ columns: string[];
950
+ columnMetadata: {};
951
+ created: string;
913
952
  lastImportDate: string;
914
953
  lastChangeDate: string;
915
954
  rowsCount: number;
955
+ dataSizeBytes: number;
916
956
  };
917
957
  };
918
958
  //#endregion
@@ -1027,7 +1067,7 @@ declare const fixtures: {
1027
1067
  created: string;
1028
1068
  isActive: false;
1029
1069
  isCritical: true;
1030
- buildUrl: null;
1070
+ buildUrl: string;
1031
1071
  commitSha: null;
1032
1072
  })[];
1033
1073
  };
@@ -1045,13 +1085,16 @@ declare const fixtures: {
1045
1085
  listTables: typeof listTables;
1046
1086
  fixtures: {
1047
1087
  fresh: {
1048
- id: string;
1049
- name: string;
1050
- displayName: string;
1051
- primaryKey: string[];
1052
- metadata: never[];
1053
- columns: string[];
1054
- columnMetadata: {};
1088
+ transactional: boolean;
1089
+ indexType: null;
1090
+ indexKey: never[];
1091
+ distributionType: null;
1092
+ distributionKey: never[];
1093
+ syntheticPrimaryKeyEnabled: boolean;
1094
+ isAliasable: boolean;
1095
+ isDescriptionSystemManaged: boolean;
1096
+ timestampType: 'MANAGED';
1097
+ tableType: string;
1055
1098
  attributes: never[];
1056
1099
  bucket: {
1057
1100
  id: string;
@@ -1070,7 +1113,7 @@ declare const fixtures: {
1070
1113
  uri: string;
1071
1114
  backend: 'snowflake';
1072
1115
  backendPath: never[];
1073
- databaseName: null;
1116
+ databaseName: string;
1074
1117
  color: null;
1075
1118
  idBranch: number;
1076
1119
  owner: null;
@@ -1083,32 +1126,32 @@ declare const fixtures: {
1083
1126
  };
1084
1127
  isTyped: false;
1085
1128
  isAlias: false;
1086
- lastImportDate: null;
1087
- lastChangeDate: null;
1088
- rowsCount: number;
1089
- };
1090
- recentlyUpdated: {
1129
+ uri: string;
1091
1130
  id: string;
1092
1131
  name: string;
1093
1132
  displayName: string;
1133
+ path: string;
1094
1134
  primaryKey: string[];
1095
- metadata: {
1096
- id: string;
1097
- key: string;
1098
- value: string;
1099
- provider: string;
1100
- timestamp: string;
1101
- }[];
1135
+ metadata: never[];
1102
1136
  columns: string[];
1103
- columnMetadata: {
1104
- order_id: {
1105
- id: string;
1106
- key: string;
1107
- value: string;
1108
- provider: string;
1109
- timestamp: string;
1110
- }[];
1111
- };
1137
+ columnMetadata: {};
1138
+ created: string;
1139
+ lastImportDate: null;
1140
+ lastChangeDate: null;
1141
+ rowsCount: number;
1142
+ dataSizeBytes: number;
1143
+ };
1144
+ recentlyUpdated: {
1145
+ transactional: boolean;
1146
+ indexType: null;
1147
+ indexKey: never[];
1148
+ distributionType: null;
1149
+ distributionKey: never[];
1150
+ syntheticPrimaryKeyEnabled: boolean;
1151
+ isAliasable: boolean;
1152
+ isDescriptionSystemManaged: boolean;
1153
+ timestampType: 'MANAGED';
1154
+ tableType: string;
1112
1155
  attributes: never[];
1113
1156
  bucket: {
1114
1157
  id: string;
@@ -1127,7 +1170,7 @@ declare const fixtures: {
1127
1170
  uri: string;
1128
1171
  backend: 'snowflake';
1129
1172
  backendPath: never[];
1130
- databaseName: null;
1173
+ databaseName: string;
1131
1174
  color: null;
1132
1175
  idBranch: number;
1133
1176
  owner: null;
@@ -1140,18 +1183,46 @@ declare const fixtures: {
1140
1183
  };
1141
1184
  isTyped: false;
1142
1185
  isAlias: false;
1186
+ uri: string;
1187
+ id: string;
1188
+ name: string;
1189
+ displayName: string;
1190
+ path: string;
1191
+ primaryKey: string[];
1192
+ metadata: {
1193
+ id: string;
1194
+ key: string;
1195
+ value: string;
1196
+ provider: string;
1197
+ timestamp: string;
1198
+ }[];
1199
+ columns: string[];
1200
+ columnMetadata: {
1201
+ order_id: {
1202
+ id: string;
1203
+ key: string;
1204
+ value: string;
1205
+ provider: string;
1206
+ timestamp: string;
1207
+ }[];
1208
+ };
1209
+ created: string;
1143
1210
  lastImportDate: string;
1144
1211
  lastChangeDate: string;
1145
1212
  rowsCount: number;
1213
+ dataSizeBytes: number;
1146
1214
  };
1147
1215
  large: {
1148
- id: string;
1149
- name: string;
1150
- displayName: string;
1151
- primaryKey: never[];
1152
- metadata: never[];
1153
- columns: string[];
1154
- columnMetadata: {};
1216
+ transactional: boolean;
1217
+ indexType: null;
1218
+ indexKey: never[];
1219
+ distributionType: null;
1220
+ distributionKey: never[];
1221
+ syntheticPrimaryKeyEnabled: boolean;
1222
+ isAliasable: boolean;
1223
+ isDescriptionSystemManaged: boolean;
1224
+ timestampType: 'MANAGED';
1225
+ tableType: string;
1155
1226
  attributes: never[];
1156
1227
  bucket: {
1157
1228
  id: string;
@@ -1170,7 +1241,7 @@ declare const fixtures: {
1170
1241
  uri: string;
1171
1242
  backend: 'snowflake';
1172
1243
  backendPath: never[];
1173
- databaseName: null;
1244
+ databaseName: string;
1174
1245
  color: null;
1175
1246
  idBranch: number;
1176
1247
  owner: null;
@@ -1183,9 +1254,20 @@ declare const fixtures: {
1183
1254
  };
1184
1255
  isTyped: false;
1185
1256
  isAlias: false;
1257
+ uri: string;
1258
+ id: string;
1259
+ name: string;
1260
+ displayName: string;
1261
+ path: string;
1262
+ primaryKey: never[];
1263
+ metadata: never[];
1264
+ columns: string[];
1265
+ columnMetadata: {};
1266
+ created: string;
1186
1267
  lastImportDate: string;
1187
1268
  lastChangeDate: string;
1188
1269
  rowsCount: number;
1270
+ dataSizeBytes: number;
1189
1271
  };
1190
1272
  };
1191
1273
  };
package/dist/index.js CHANGED
@@ -704,7 +704,7 @@ const appDetail = {
704
704
  created: "2026-08-25 14:02:10",
705
705
  isActive: false,
706
706
  isCritical: true,
707
- buildUrl: null,
707
+ buildUrl: "https://github.com/keboola/kbc-ui/actions/runs/1645",
708
708
  commitSha: null
709
709
  }]
710
710
  };
@@ -793,7 +793,6 @@ const verifyStorageToken = ({ baseUrl = DEFAULT_BASE_URL, features = [] } = {})
793
793
  rowsCount: 0,
794
794
  hasMysql: false,
795
795
  hasSynapse: false,
796
- hasRedshift: false,
797
796
  hasSnowflake: true,
798
797
  hasExasol: false,
799
798
  hasTeradata: false,
@@ -806,15 +805,22 @@ const verifyStorageToken = ({ baseUrl = DEFAULT_BASE_URL, features = [] } = {})
806
805
  billedMonthlyPrice: null,
807
806
  dataRetentionTimeInDays: 30,
808
807
  assignedBackends: ["snowflake"],
809
- fileStorageProvider: "s3"
808
+ fileStorageProvider: "s3",
809
+ timezone: null,
810
+ isBYODB: false,
811
+ usersCount: 1
812
+ },
813
+ organization: {
814
+ id: "org-1",
815
+ created: null
810
816
  },
811
- organization: { id: "org-1" },
812
817
  admin: {
813
818
  id: 100,
814
819
  name: "Admin User",
815
820
  features: [],
816
821
  isOrganizationMember: true,
817
- role: "admin"
822
+ role: "admin",
823
+ isActivated: true
818
824
  },
819
825
  adminOwner: {
820
826
  id: 200,
@@ -838,38 +844,56 @@ const getDevBranches = () => [{
838
844
  }];
839
845
  //#endregion
840
846
  //#region src/clients/storage/tables.ts
841
- const bucket = {
842
- id: "in.c-main",
843
- name: "c-main",
844
- displayName: "Main",
845
- stage: "in",
846
- description: "Main input bucket",
847
- created: "2024-01-15T10:00:00+0100",
848
- lastChangeDate: "2024-06-01T09:00:00+0200",
849
- isMaintenance: false,
850
- isReadOnly: false,
851
- isSnowflakeSharedDatabase: false,
852
- hasExternalSchema: false,
853
- rowsCount: 15e4,
854
- dataSizeBytes: 52428800,
855
- uri: "https://connection.keboola.com/v2/storage/buckets/in.c-main",
856
- backend: "snowflake",
857
- backendPath: [],
858
- databaseName: null,
859
- color: null,
860
- idBranch: 0,
861
- owner: null,
862
- sharing: null,
863
- path: "in.c-main",
864
- tables: "https://connection.keboola.com/v2/storage/buckets/in.c-main/tables",
865
- updated: "2024-06-01T09:00:00+0200",
866
- isLinkedBucket: false,
867
- bucketSharingAllowed: true
847
+ const tableBase = {
848
+ transactional: false,
849
+ indexType: null,
850
+ indexKey: [],
851
+ distributionType: null,
852
+ distributionKey: [],
853
+ syntheticPrimaryKeyEnabled: false,
854
+ isAliasable: true,
855
+ isDescriptionSystemManaged: false,
856
+ timestampType: "MANAGED",
857
+ tableType: "table",
858
+ attributes: [],
859
+ bucket: {
860
+ id: "in.c-main",
861
+ name: "c-main",
862
+ displayName: "Main",
863
+ stage: "in",
864
+ description: "Main input bucket",
865
+ created: "2024-01-15T10:00:00+0100",
866
+ lastChangeDate: "2024-06-01T09:00:00+0200",
867
+ isMaintenance: false,
868
+ isReadOnly: false,
869
+ isSnowflakeSharedDatabase: false,
870
+ hasExternalSchema: false,
871
+ rowsCount: 15e4,
872
+ dataSizeBytes: 52428800,
873
+ uri: "https://connection.keboola.com/v2/storage/buckets/in.c-main",
874
+ backend: "snowflake",
875
+ backendPath: [],
876
+ databaseName: "KEBOOLA_1",
877
+ color: null,
878
+ idBranch: 0,
879
+ owner: null,
880
+ sharing: null,
881
+ path: "in.c-main",
882
+ tables: "https://connection.keboola.com/v2/storage/buckets/in.c-main",
883
+ updated: "2024-06-01T09:00:00+0200",
884
+ isLinkedBucket: false,
885
+ bucketSharingAllowed: true
886
+ },
887
+ isTyped: false,
888
+ isAlias: false
868
889
  };
869
890
  const freshTable = {
891
+ ...tableBase,
892
+ uri: "https://connection.keboola.com/v2/storage/tables/in.c-main.users",
870
893
  id: "in.c-main.users",
871
894
  name: "users",
872
895
  displayName: "Users",
896
+ path: "KEBOOLA_1.c-main.users",
873
897
  primaryKey: ["id"],
874
898
  metadata: [],
875
899
  columns: [
@@ -879,18 +903,19 @@ const freshTable = {
879
903
  "created_at"
880
904
  ],
881
905
  columnMetadata: {},
882
- attributes: [],
883
- bucket,
884
- isTyped: false,
885
- isAlias: false,
906
+ created: "2024-06-01T09:00:00+0200",
886
907
  lastImportDate: null,
887
908
  lastChangeDate: null,
888
- rowsCount: 0
909
+ rowsCount: 0,
910
+ dataSizeBytes: 0
889
911
  };
890
912
  const recentlyUpdatedTable = {
913
+ ...tableBase,
914
+ uri: "https://connection.keboola.com/v2/storage/tables/in.c-main.orders",
891
915
  id: "in.c-main.orders",
892
916
  name: "orders",
893
917
  displayName: "Orders",
918
+ path: "KEBOOLA_1.c-main.orders",
894
919
  primaryKey: ["order_id"],
895
920
  metadata: [{
896
921
  id: "mt1",
@@ -914,18 +939,19 @@ const recentlyUpdatedTable = {
914
939
  provider: "keboola",
915
940
  timestamp: "2024-06-01T09:00:00+0200"
916
941
  }] },
917
- attributes: [],
918
- bucket,
919
- isTyped: false,
920
- isAlias: false,
942
+ created: "2024-01-15T10:00:00+0100",
921
943
  lastImportDate: "2024-06-01T09:00:00+0200",
922
944
  lastChangeDate: "2024-06-01T09:00:00+0200",
923
- rowsCount: 24500
945
+ rowsCount: 24500,
946
+ dataSizeBytes: 10485760
924
947
  };
925
948
  const largeTable = {
949
+ ...tableBase,
950
+ uri: "https://connection.keboola.com/v2/storage/tables/in.c-main.events",
926
951
  id: "in.c-main.events",
927
952
  name: "events",
928
953
  displayName: "Events",
954
+ path: "KEBOOLA_1.c-main.events",
929
955
  primaryKey: [],
930
956
  metadata: [],
931
957
  columns: [
@@ -936,20 +962,16 @@ const largeTable = {
936
962
  "occurred_at"
937
963
  ],
938
964
  columnMetadata: {},
939
- attributes: [],
940
- bucket,
941
- isTyped: false,
942
- isAlias: false,
965
+ created: "2024-01-15T10:00:00+0100",
943
966
  lastImportDate: "2024-03-10T08:30:00+0100",
944
967
  lastChangeDate: "2024-03-10T08:30:00+0100",
945
- rowsCount: 125500
968
+ rowsCount: 125500,
969
+ dataSizeBytes: 41943040
946
970
  };
947
971
  /**
948
972
  * Returns a single non-typed, non-alias `TableDetail` (fresh, no imports yet).
949
973
  *
950
- * The explicit return type surfaces any divergence from the hand-written `TableDetail` in
951
- * `@keboola/api-client` as a TypeScript error. That type is not derived from the OpenAPI
952
- * document, so this annotation and the `satisfies` above are the only mechanical check there is.
974
+ * - The explicit return type surfaces a drift from `TableDetail` as a TypeScript error.
953
975
  */
954
976
  const getTable = () => freshTable;
955
977
  /**