@keboola/api-fixtures 30.0.0 → 31.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
@@ -11,74 +11,40 @@ declare const appFixtures: {
11
11
  branchId: string;
12
12
  configId: string;
13
13
  type: 'streamlit';
14
- mode: 'prod';
15
14
  url: string;
16
- configVersion: string;
17
15
  production: {
18
- desiredNumber: null;
19
- desiredId: null;
20
- actualNumber: null;
21
- actualId: null;
16
+ desiredDeploymentId: null;
17
+ actualDeploymentId: null;
22
18
  };
23
- undeployedChanges: false;
24
- state: 'NOT_DEPLOYED';
19
+ state: 'notDeployed';
25
20
  };
26
21
  legacyV1Serving: {
27
- id: string;
28
22
  projectId: string;
29
23
  componentId: string;
30
24
  branchId: string;
31
25
  configId: string;
32
- configVersion: string;
33
26
  type: 'streamlit';
34
- mode: 'dev';
35
27
  url: string;
36
- production: {
37
- desiredNumber: null;
38
- desiredId: null;
39
- actualNumber: null;
40
- actualId: null;
41
- };
42
- undeployedChanges: false;
43
- state: 'NOT_DEPLOYED';
44
- };
45
- running: {
46
28
  id: string;
47
- projectId: string;
48
- componentId: string;
49
- branchId: string;
50
- configId: string;
51
- type: 'streamlit';
52
- mode: 'prod';
53
- url: string;
54
- configVersion: string;
55
29
  production: {
56
- desiredNumber: number;
57
- desiredId: string;
58
- actualNumber: number;
59
- actualId: string;
30
+ desiredDeploymentId: null;
31
+ actualDeploymentId: null;
60
32
  };
61
- undeployedChanges: false;
62
- state: 'RUNNING';
33
+ state: 'notDeployed';
63
34
  };
64
- undeployedChanges: {
35
+ running: {
65
36
  id: string;
66
37
  projectId: string;
67
38
  componentId: string;
68
39
  branchId: string;
69
40
  configId: string;
70
41
  type: 'streamlit';
71
- mode: 'prod';
72
42
  url: string;
73
- configVersion: string;
74
43
  production: {
75
- desiredNumber: number;
76
- desiredId: string;
77
- actualNumber: number;
78
- actualId: string;
44
+ desiredDeploymentId: string;
45
+ actualDeploymentId: string;
79
46
  };
80
- undeployedChanges: true;
81
- state: 'RUNNING';
47
+ state: 'running';
82
48
  };
83
49
  promoting: {
84
50
  id: string;
@@ -87,55 +53,40 @@ declare const appFixtures: {
87
53
  branchId: string;
88
54
  configId: string;
89
55
  type: 'streamlit';
90
- mode: 'prod';
91
56
  url: string;
92
- configVersion: string;
93
57
  production: {
94
- desiredNumber: number;
95
- desiredId: string;
96
- actualNumber: number;
97
- actualId: string;
58
+ desiredDeploymentId: string;
59
+ actualDeploymentId: string;
98
60
  };
99
- undeployedChanges: true;
100
- state: 'RUNNING';
61
+ state: 'running';
101
62
  };
102
- sleeping: {
63
+ suspended: {
103
64
  id: string;
104
65
  projectId: string;
105
66
  componentId: string;
106
67
  branchId: string;
107
68
  configId: string;
108
69
  type: 'streamlit';
109
- mode: 'prod';
110
70
  url: string;
111
- configVersion: string;
112
71
  production: {
113
- desiredNumber: number;
114
- desiredId: string;
115
- actualNumber: number;
116
- actualId: string;
72
+ desiredDeploymentId: string;
73
+ actualDeploymentId: string;
117
74
  };
118
- undeployedChanges: false;
119
- state: 'SLEEPING';
75
+ state: 'suspended';
120
76
  };
121
- suspended: {
77
+ disabled: {
122
78
  id: string;
123
79
  projectId: string;
124
80
  componentId: string;
125
81
  branchId: string;
126
82
  configId: string;
127
83
  type: 'streamlit';
128
- mode: 'prod';
129
84
  url: string;
130
- configVersion: string;
131
85
  production: {
132
- desiredNumber: number;
133
- desiredId: string;
134
- actualNumber: number;
135
- actualId: string;
86
+ desiredDeploymentId: string;
87
+ actualDeploymentId: string;
136
88
  };
137
- undeployedChanges: false;
138
- state: 'SUSPENDED';
89
+ state: 'disabled';
139
90
  };
140
91
  };
141
92
  declare const getApp: () => App;
@@ -145,65 +96,55 @@ declare const listApps: () => App[];
145
96
  declare const deploymentFixtures: {
146
97
  archived: {
147
98
  id: string;
148
- number: number;
149
- configId: string;
150
99
  configVersion: string;
151
100
  gitCommitSha: null;
152
- size: 'tiny';
153
- buildState: 'PREBUILT';
154
- runState: 'STOPPED';
101
+ runtimeSize: 'tiny';
102
+ buildState: 'ready';
103
+ runState: 'stopped';
155
104
  archived: true;
156
105
  archivedAt: string;
157
106
  createdAt: string;
158
107
  };
159
108
  live: {
160
109
  id: string;
161
- number: number;
162
- configId: string;
163
110
  configVersion: string;
164
111
  gitCommitSha: null;
165
- size: 'small';
166
- buildState: 'PREBUILT';
167
- runState: 'RUNNING';
112
+ runtimeSize: 'small';
113
+ buildState: 'ready';
114
+ runState: 'running';
168
115
  archived: false;
169
116
  archivedAt: null;
170
117
  createdAt: string;
171
118
  };
172
119
  staged: {
173
120
  id: string;
174
- number: number;
175
- configId: string;
176
121
  configVersion: string;
177
122
  gitCommitSha: null;
178
- size: 'small';
179
- buildState: 'PREBUILT';
180
- runState: 'NEVER_RUN';
123
+ runtimeSize: 'small';
124
+ buildState: 'ready';
125
+ runState: 'neverRun';
181
126
  archived: false;
182
127
  archivedAt: null;
183
128
  createdAt: string;
184
129
  };
185
130
  buildFailed: {
186
131
  id: string;
187
- number: number;
188
- configId: string;
189
132
  configVersion: string;
190
133
  gitCommitSha: null;
191
- size: 'small';
192
- buildState: 'FAILED';
193
- runState: 'NEVER_RUN';
134
+ runtimeSize: 'small';
135
+ buildState: 'failed';
136
+ runState: 'neverRun';
194
137
  archived: false;
195
138
  archivedAt: null;
196
139
  createdAt: string;
197
140
  };
198
141
  runFailed: {
199
142
  id: string;
200
- number: number;
201
- configId: string;
202
143
  configVersion: string;
203
144
  gitCommitSha: null;
204
- size: 'small';
205
- buildState: 'PREBUILT';
206
- runState: 'FAILED';
145
+ runtimeSize: 'small';
146
+ buildState: 'ready';
147
+ runState: 'failed';
207
148
  archived: false;
208
149
  archivedAt: null;
209
150
  createdAt: string;
@@ -211,16 +152,16 @@ declare const deploymentFixtures: {
211
152
  };
212
153
  declare const getDeployment: () => Deployment;
213
154
  /**
214
- * One continuous history: #1 retired, #2 serving, #3 staged, #4 failed to build, #5 built but its
215
- * run failed.
155
+ * One continuous history: the oldest deleted, the next serving, then one staged, one that failed to
156
+ * build and one that built but whose run failed.
216
157
  *
217
- * All five, because `runFixtures.failed` names #5 as its deployment — a list that left the failed
218
- * ones out could not be joined to the runs, which is the join a timeline is built from.
158
+ * All five, because `runFixtures.failed` names the last one as its deployment — a list that left
159
+ * the failed ones out could not be joined to the runs, which is the join a timeline is built from.
219
160
  *
220
- * Returned in ascending `number` order. The endpoint does not specify an order, so consumers must
221
- * sort for themselves — this order is a fixture convention, not a contract to rely on, and it is
222
- * ascending on purpose: a consumer that assumes newest-first gets the wrong answer here rather
223
- * than in production.
161
+ * Returned oldest first. The endpoint does not specify an order, so consumers must sort for
162
+ * themselves — this order is a fixture convention, not a contract to rely on, and it is oldest
163
+ * first on purpose: a consumer that assumes newest-first gets the wrong answer here rather than in
164
+ * production.
224
165
  */
225
166
  declare const listDeployments: () => Deployment[];
226
167
  //#endregion
@@ -1030,74 +971,40 @@ declare const fixtures: {
1030
971
  branchId: string;
1031
972
  configId: string;
1032
973
  type: 'streamlit';
1033
- mode: 'prod';
1034
974
  url: string;
1035
- configVersion: string;
1036
975
  production: {
1037
- desiredNumber: null;
1038
- desiredId: null;
1039
- actualNumber: null;
1040
- actualId: null;
976
+ desiredDeploymentId: null;
977
+ actualDeploymentId: null;
1041
978
  };
1042
- undeployedChanges: false;
1043
- state: 'NOT_DEPLOYED';
979
+ state: 'notDeployed';
1044
980
  };
1045
981
  legacyV1Serving: {
1046
- id: string;
1047
982
  projectId: string;
1048
983
  componentId: string;
1049
984
  branchId: string;
1050
985
  configId: string;
1051
- configVersion: string;
1052
986
  type: 'streamlit';
1053
- mode: 'dev';
1054
987
  url: string;
1055
- production: {
1056
- desiredNumber: null;
1057
- desiredId: null;
1058
- actualNumber: null;
1059
- actualId: null;
1060
- };
1061
- undeployedChanges: false;
1062
- state: 'NOT_DEPLOYED';
1063
- };
1064
- running: {
1065
988
  id: string;
1066
- projectId: string;
1067
- componentId: string;
1068
- branchId: string;
1069
- configId: string;
1070
- type: 'streamlit';
1071
- mode: 'prod';
1072
- url: string;
1073
- configVersion: string;
1074
989
  production: {
1075
- desiredNumber: number;
1076
- desiredId: string;
1077
- actualNumber: number;
1078
- actualId: string;
990
+ desiredDeploymentId: null;
991
+ actualDeploymentId: null;
1079
992
  };
1080
- undeployedChanges: false;
1081
- state: 'RUNNING';
993
+ state: 'notDeployed';
1082
994
  };
1083
- undeployedChanges: {
995
+ running: {
1084
996
  id: string;
1085
997
  projectId: string;
1086
998
  componentId: string;
1087
999
  branchId: string;
1088
1000
  configId: string;
1089
1001
  type: 'streamlit';
1090
- mode: 'prod';
1091
1002
  url: string;
1092
- configVersion: string;
1093
1003
  production: {
1094
- desiredNumber: number;
1095
- desiredId: string;
1096
- actualNumber: number;
1097
- actualId: string;
1004
+ desiredDeploymentId: string;
1005
+ actualDeploymentId: string;
1098
1006
  };
1099
- undeployedChanges: true;
1100
- state: 'RUNNING';
1007
+ state: 'running';
1101
1008
  };
1102
1009
  promoting: {
1103
1010
  id: string;
@@ -1106,55 +1013,40 @@ declare const fixtures: {
1106
1013
  branchId: string;
1107
1014
  configId: string;
1108
1015
  type: 'streamlit';
1109
- mode: 'prod';
1110
1016
  url: string;
1111
- configVersion: string;
1112
1017
  production: {
1113
- desiredNumber: number;
1114
- desiredId: string;
1115
- actualNumber: number;
1116
- actualId: string;
1018
+ desiredDeploymentId: string;
1019
+ actualDeploymentId: string;
1117
1020
  };
1118
- undeployedChanges: true;
1119
- state: 'RUNNING';
1021
+ state: 'running';
1120
1022
  };
1121
- sleeping: {
1023
+ suspended: {
1122
1024
  id: string;
1123
1025
  projectId: string;
1124
1026
  componentId: string;
1125
1027
  branchId: string;
1126
1028
  configId: string;
1127
1029
  type: 'streamlit';
1128
- mode: 'prod';
1129
1030
  url: string;
1130
- configVersion: string;
1131
1031
  production: {
1132
- desiredNumber: number;
1133
- desiredId: string;
1134
- actualNumber: number;
1135
- actualId: string;
1032
+ desiredDeploymentId: string;
1033
+ actualDeploymentId: string;
1136
1034
  };
1137
- undeployedChanges: false;
1138
- state: 'SLEEPING';
1035
+ state: 'suspended';
1139
1036
  };
1140
- suspended: {
1037
+ disabled: {
1141
1038
  id: string;
1142
1039
  projectId: string;
1143
1040
  componentId: string;
1144
1041
  branchId: string;
1145
1042
  configId: string;
1146
1043
  type: 'streamlit';
1147
- mode: 'prod';
1148
1044
  url: string;
1149
- configVersion: string;
1150
1045
  production: {
1151
- desiredNumber: number;
1152
- desiredId: string;
1153
- actualNumber: number;
1154
- actualId: string;
1046
+ desiredDeploymentId: string;
1047
+ actualDeploymentId: string;
1155
1048
  };
1156
- undeployedChanges: false;
1157
- state: 'SUSPENDED';
1049
+ state: 'disabled';
1158
1050
  };
1159
1051
  };
1160
1052
  };
@@ -1164,65 +1056,55 @@ declare const fixtures: {
1164
1056
  fixtures: {
1165
1057
  archived: {
1166
1058
  id: string;
1167
- number: number;
1168
- configId: string;
1169
1059
  configVersion: string;
1170
1060
  gitCommitSha: null;
1171
- size: 'tiny';
1172
- buildState: 'PREBUILT';
1173
- runState: 'STOPPED';
1061
+ runtimeSize: 'tiny';
1062
+ buildState: 'ready';
1063
+ runState: 'stopped';
1174
1064
  archived: true;
1175
1065
  archivedAt: string;
1176
1066
  createdAt: string;
1177
1067
  };
1178
1068
  live: {
1179
1069
  id: string;
1180
- number: number;
1181
- configId: string;
1182
1070
  configVersion: string;
1183
1071
  gitCommitSha: null;
1184
- size: 'small';
1185
- buildState: 'PREBUILT';
1186
- runState: 'RUNNING';
1072
+ runtimeSize: 'small';
1073
+ buildState: 'ready';
1074
+ runState: 'running';
1187
1075
  archived: false;
1188
1076
  archivedAt: null;
1189
1077
  createdAt: string;
1190
1078
  };
1191
1079
  staged: {
1192
1080
  id: string;
1193
- number: number;
1194
- configId: string;
1195
1081
  configVersion: string;
1196
1082
  gitCommitSha: null;
1197
- size: 'small';
1198
- buildState: 'PREBUILT';
1199
- runState: 'NEVER_RUN';
1083
+ runtimeSize: 'small';
1084
+ buildState: 'ready';
1085
+ runState: 'neverRun';
1200
1086
  archived: false;
1201
1087
  archivedAt: null;
1202
1088
  createdAt: string;
1203
1089
  };
1204
1090
  buildFailed: {
1205
1091
  id: string;
1206
- number: number;
1207
- configId: string;
1208
1092
  configVersion: string;
1209
1093
  gitCommitSha: null;
1210
- size: 'small';
1211
- buildState: 'FAILED';
1212
- runState: 'NEVER_RUN';
1094
+ runtimeSize: 'small';
1095
+ buildState: 'failed';
1096
+ runState: 'neverRun';
1213
1097
  archived: false;
1214
1098
  archivedAt: null;
1215
1099
  createdAt: string;
1216
1100
  };
1217
1101
  runFailed: {
1218
1102
  id: string;
1219
- number: number;
1220
- configId: string;
1221
1103
  configVersion: string;
1222
1104
  gitCommitSha: null;
1223
- size: 'small';
1224
- buildState: 'PREBUILT';
1225
- runState: 'FAILED';
1105
+ runtimeSize: 'small';
1106
+ buildState: 'ready';
1107
+ runState: 'failed';
1226
1108
  archived: false;
1227
1109
  archivedAt: null;
1228
1110
  createdAt: string;