@squonk/data-manager-client 1.1.0 → 1.1.1

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.
Files changed (96) hide show
  1. package/accounting/accounting.cjs +16 -12
  2. package/accounting/accounting.cjs.map +1 -1
  3. package/accounting/accounting.d.ts +8 -8
  4. package/accounting/accounting.js +13 -9
  5. package/accounting/accounting.js.map +1 -1
  6. package/admin/admin.cjs +19 -14
  7. package/admin/admin.cjs.map +1 -1
  8. package/admin/admin.d.ts +23 -23
  9. package/admin/admin.js +10 -5
  10. package/admin/admin.js.map +1 -1
  11. package/application/application.cjs +12 -10
  12. package/application/application.cjs.map +1 -1
  13. package/application/application.d.ts +6 -6
  14. package/application/application.js +10 -8
  15. package/application/application.js.map +1 -1
  16. package/{chunk-3O5KIRV4.js → chunk-3RNIDX7T.js} +1 -1
  17. package/{chunk-3O5KIRV4.js.map → chunk-3RNIDX7T.js.map} +1 -1
  18. package/chunk-LNYWU37B.cjs +13 -0
  19. package/chunk-LNYWU37B.cjs.map +1 -0
  20. package/chunk-LT4O36DN.js +13 -0
  21. package/chunk-LT4O36DN.js.map +1 -0
  22. package/{chunk-IUEU2LYC.cjs → chunk-UZTHSGDT.cjs} +1 -1
  23. package/chunk-UZTHSGDT.cjs.map +1 -0
  24. package/{custom-instance-5c7b6971.d.ts → custom-instance-b5dd9223.d.ts} +259 -98
  25. package/dataset/dataset.cjs +29 -32
  26. package/dataset/dataset.cjs.map +1 -1
  27. package/dataset/dataset.d.ts +24 -24
  28. package/dataset/dataset.js +19 -22
  29. package/dataset/dataset.js.map +1 -1
  30. package/exchange-rate/exchange-rate.cjs +22 -18
  31. package/exchange-rate/exchange-rate.cjs.map +1 -1
  32. package/exchange-rate/exchange-rate.d.ts +16 -16
  33. package/exchange-rate/exchange-rate.js +16 -12
  34. package/exchange-rate/exchange-rate.js.map +1 -1
  35. package/file/file.cjs +15 -15
  36. package/file/file.cjs.map +1 -1
  37. package/file/file.d.ts +13 -13
  38. package/file/file.js +10 -10
  39. package/file/file.js.map +1 -1
  40. package/index.cjs +2 -2
  41. package/index.cjs.map +1 -1
  42. package/index.d.ts +1 -1
  43. package/index.js +1 -1
  44. package/index.js.map +1 -1
  45. package/instance/instance.cjs +17 -15
  46. package/instance/instance.cjs.map +1 -1
  47. package/instance/instance.d.ts +18 -18
  48. package/instance/instance.js +10 -8
  49. package/instance/instance.js.map +1 -1
  50. package/job/job.cjs +16 -14
  51. package/job/job.cjs.map +1 -1
  52. package/job/job.d.ts +8 -8
  53. package/job/job.js +13 -11
  54. package/job/job.js.map +1 -1
  55. package/metadata/metadata.cjs +14 -15
  56. package/metadata/metadata.cjs.map +1 -1
  57. package/metadata/metadata.d.ts +12 -12
  58. package/metadata/metadata.js +10 -11
  59. package/metadata/metadata.js.map +1 -1
  60. package/package.json +12 -12
  61. package/project/project.cjs +28 -29
  62. package/project/project.cjs.map +1 -1
  63. package/project/project.d.ts +29 -29
  64. package/project/project.js +16 -17
  65. package/project/project.js.map +1 -1
  66. package/src/accounting/accounting.ts +14 -13
  67. package/src/admin/admin.ts +10 -9
  68. package/src/application/application.ts +10 -10
  69. package/src/data-manager-api.schemas.ts +206 -27
  70. package/src/dataset/dataset.ts +22 -24
  71. package/src/exchange-rate/exchange-rate.ts +18 -19
  72. package/src/file/file.ts +10 -10
  73. package/src/instance/instance.ts +10 -10
  74. package/src/job/job.ts +14 -13
  75. package/src/metadata/metadata.ts +10 -11
  76. package/src/project/project.ts +18 -19
  77. package/src/queryMutator.ts +12 -0
  78. package/src/task/task.ts +10 -9
  79. package/src/type/type.ts +6 -5
  80. package/src/user/user.ts +14 -13
  81. package/task/task.cjs +13 -12
  82. package/task/task.cjs.map +1 -1
  83. package/task/task.d.ts +8 -8
  84. package/task/task.js +10 -9
  85. package/task/task.js.map +1 -1
  86. package/type/type.cjs +8 -4
  87. package/type/type.cjs.map +1 -1
  88. package/type/type.d.ts +4 -4
  89. package/type/type.js +7 -3
  90. package/type/type.js.map +1 -1
  91. package/user/user.cjs +17 -13
  92. package/user/user.cjs.map +1 -1
  93. package/user/user.d.ts +11 -11
  94. package/user/user.js +13 -9
  95. package/user/user.js.map +1 -1
  96. package/chunk-IUEU2LYC.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Generated by orval v6.10.0 🍺
2
+ * Generated by orval v6.12.1 🍺
3
3
  * Do not edit manually.
4
4
  * Dataset Manager API
5
5
  * The Dataset Manager API service.
@@ -9,91 +9,253 @@ A service that allows *registered* users to make **Datasets** and associated **M
9
9
  * OpenAPI spec version: 1.0
10
10
  */
11
11
  export type AdminGetServiceErrorsParams = {
12
+ /**
13
+ * Set to include acknowledged items
14
+
15
+ */
12
16
  include_acknowleged?: QIncludeAcknowlegedParameter;
13
17
  };
14
18
 
15
19
  export type GetUserApiLogParams = {
20
+ /**
21
+ * A from (inclusive) date-time. If provided no API calls prior to this will be returned. UTC is assumed if no timezone is provided
22
+
23
+ */
16
24
  from?: QFromParameter;
25
+ /**
26
+ * An until (exclusive) date-time. If provided only API calls made before this will be returned. UTC is assumed if no timezone is provided
27
+
28
+ */
17
29
  until?: QUntilParameter;
18
30
  };
19
31
 
20
32
  export type GetUserAccountParams = {
33
+ /**
34
+ * Set, if you're an admin, to call the endpoint without impersonation
35
+
36
+ */
21
37
  do_not_impersonate?: QDoNotImpersonateParameter;
22
38
  };
23
39
 
24
- export type PatchInstanceParams = { archive?: QInstanceArchiveParameter };
40
+ export type PatchInstanceParams = {
41
+ /**
42
+ * True to archive the instance
43
+ */
44
+ archive?: QInstanceArchiveParameter;
45
+ };
25
46
 
26
- export type GetInstancesParams = { project_id?: QProjectIdParameter };
47
+ export type GetInstancesParams = {
48
+ /**
49
+ * A Project identity
50
+ */
51
+ project_id?: QProjectIdParameter;
52
+ };
27
53
 
28
- export type GetJobExchangeRatesParams = { current?: QCurrentParameter };
54
+ export type GetJobExchangeRatesParams = {
55
+ /**
56
+ * Set to get current
57
+
58
+ */
59
+ current?: QCurrentParameter;
60
+ };
29
61
 
30
62
  export type GetAllJobExchangeRatesParams = {
63
+ /**
64
+ * Only return records where the exchange rate is undefined
65
+
66
+ */
31
67
  only_undefined?: QOnlyUndefinedParameter;
32
68
  };
33
69
 
34
- export type GetJobParams = { project_id?: QProjectIdParameter };
70
+ export type GetJobParams = {
71
+ /**
72
+ * A Project identity
73
+ */
74
+ project_id?: QProjectIdParameter;
75
+ };
35
76
 
36
77
  export type GetJobByVersionParams = {
78
+ /**
79
+ * The Collection for a Job, i.e. "im-test"
80
+
81
+ */
37
82
  collection: QJobCollectionParameter;
83
+ /**
84
+ * The Job, i.e. "nop"
85
+
86
+ */
38
87
  job: QJobJobParameter;
88
+ /**
89
+ * The version of a Job, i.e. "1.0.0"
90
+
91
+ */
39
92
  version: QJobVersionParameter;
93
+ /**
94
+ * A Project identity
95
+ */
40
96
  project_id?: QProjectIdParameter;
41
97
  };
42
98
 
43
- export type GetJobsParams = { project_id?: QProjectIdParameter };
99
+ export type GetJobsParams = {
100
+ /**
101
+ * A Project identity
102
+ */
103
+ project_id?: QProjectIdParameter;
104
+ };
44
105
 
45
- export type GetApplicationExchangeRatesParams = { current?: QCurrentParameter };
106
+ export type GetApplicationExchangeRatesParams = {
107
+ /**
108
+ * Set to get current
109
+
110
+ */
111
+ current?: QCurrentParameter;
112
+ };
46
113
 
47
114
  export type GetAllApplicationExchangeRatesParams = {
115
+ /**
116
+ * Only return records where the exchange rate is undefined
117
+
118
+ */
48
119
  only_undefined?: QOnlyUndefinedParameter;
49
120
  };
50
121
 
51
122
  export type GetTaskParams = {
123
+ /**
124
+ * Maximum number of events to return. If provided, can be 1 or more.
125
+
126
+ */
52
127
  event_limit?: QEventLimitParameter;
128
+ /**
129
+ * The ordinal of a previously received event. If set, only events subsequent to the ordinal provided will be returned. Providing a value of 0 will result in retrieving the first and subsequent events.
130
+
131
+ */
53
132
  event_prior_ordinal?: QEventPriorOrdinalParameter;
54
133
  };
55
134
 
56
135
  export type GetTasksParams = {
136
+ /**
137
+ * Set true if you want to exclude 'done' tasks, i.e. just see those that are still running.
138
+
139
+ */
57
140
  exclude_done?: QExcludeDoneParameter;
141
+ /**
142
+ * Set to a dot-separated string of purpose enumerations, i.e. `INSTANCE`, `FILE` or `DATASET`. To exclude file and dataset tasks set to `FILE.DATASET`
143
+
144
+ */
58
145
  exclude_purpose?: QExcludePurposeParameter;
146
+ /**
147
+ * A Project identity
148
+ */
59
149
  project_id?: QProjectIdParameter;
60
150
  };
61
151
 
62
152
  export type DeleteUnmanagedFileParams = {
153
+ /**
154
+ * A project file.
155
+
156
+ */
63
157
  file: QFileParameter;
158
+ /**
159
+ * A project path. If provided it must begin `/` and refers to a path where `/` represents the project's root directory
160
+
161
+ */
64
162
  path?: QFilePathParameter;
163
+ /**
164
+ * The Project identity
165
+ */
65
166
  project_id: QFileProjectIdParameter;
66
167
  };
67
168
 
68
169
  export type GetFilesParams = {
170
+ /**
171
+ * The Project identity
172
+ */
69
173
  project_id: QFileProjectIdParameter;
174
+ /**
175
+ * A project path. If provided it must begin `/` and refers to a path where `/` represents the project's root directory
176
+
177
+ */
70
178
  path?: QFilePathParameter;
179
+ /**
180
+ * Whether to include hidden files and directories
181
+ */
71
182
  include_hidden?: QIncludeHiddenParameter;
72
183
  };
73
184
 
74
185
  export type DeleteDatasetParams = {
186
+ /**
187
+ * Whether to convert Project managed file instances to unmanaged files
188
+
189
+ */
75
190
  keep_project_files?: QKeepProjectFilesParameter;
76
191
  };
77
192
 
78
- export type GetVersionsParams = { include_deleted?: QIncludeDeletedParameter };
193
+ export type GetVersionsParams = {
194
+ /**
195
+ * Whether to include records that are deleted
196
+ */
197
+ include_deleted?: QIncludeDeletedParameter;
198
+ };
79
199
 
80
200
  export type GetDatasetsParams = {
201
+ /**
202
+ * Whether to include records that are deleted
203
+ */
81
204
  include_deleted?: QIncludeDeletedParameter;
205
+ /**
206
+ * Filter the datasets by username
207
+
208
+ */
82
209
  username?: QUsernameParameter;
210
+ /**
211
+ * Filter the datasets by the supplied mime_type.
212
+
213
+ */
83
214
  dataset_mime_type?: QDatasetMimeTypeParameter;
215
+ /**
216
+ * Filter the datasets by a comma separated list of owners
217
+
218
+ */
84
219
  owners?: QOwnersParameter;
220
+ /**
221
+ * Filter the datasets by a comma separated list of editors
222
+
223
+ */
85
224
  editors?: QEditorsParameter;
225
+ /**
226
+ * JSON string containing a list of label/value pairs for the datasets to be filtered by. If the value is set to null, then only the label is matched. If both the label and value are set, then both are matched. e.g. '{"label1": null, "label2": "value2"}'
227
+
228
+ */
86
229
  labels?: QLabelsParameter;
87
230
  };
88
231
 
89
232
  export type GetProjectFileWithTokenParams = {
233
+ /**
234
+ * A token
235
+ */
90
236
  token?: QTokenParameter;
237
+ /**
238
+ * A project path. If provided it must begin `/` and refers to a path where `/` represents the project's root directory
239
+
240
+ */
91
241
  path?: QFilePathParameter;
242
+ /**
243
+ * A project file.
244
+
245
+ */
92
246
  file: QFileParameter;
93
247
  };
94
248
 
95
249
  export type GetProjectFileParams = {
250
+ /**
251
+ * A project path. If provided it must begin `/` and refers to a path where `/` represents the project's root directory
252
+
253
+ */
96
254
  path?: QFilePathParameter;
255
+ /**
256
+ * A project file.
257
+
258
+ */
97
259
  file: QFileParameter;
98
260
  };
99
261
 
@@ -542,7 +704,7 @@ export interface UserAccountDetail {
542
704
 
543
705
  */
544
706
  export type TypeSummaryFormatterOptionsType =
545
- typeof TypeSummaryFormatterOptionsType[keyof typeof TypeSummaryFormatterOptionsType];
707
+ (typeof TypeSummaryFormatterOptionsType)[keyof typeof TypeSummaryFormatterOptionsType];
546
708
 
547
709
  // eslint-disable-next-line @typescript-eslint/no-redeclare
548
710
  export const TypeSummaryFormatterOptionsType = {
@@ -589,7 +751,7 @@ export interface TypeSummary {
589
751
 
590
752
  */
591
753
  export type TaskSummaryProcessingStage =
592
- typeof TaskSummaryProcessingStage[keyof typeof TaskSummaryProcessingStage];
754
+ (typeof TaskSummaryProcessingStage)[keyof typeof TaskSummaryProcessingStage];
593
755
 
594
756
  // eslint-disable-next-line @typescript-eslint/no-redeclare
595
757
  export const TaskSummaryProcessingStage = {
@@ -638,7 +800,8 @@ export interface TaskSummary {
638
800
  * The task state. The typical state sequence is `PENDING`, then `STARTED` and finally `SUCCESS`
639
801
 
640
802
  */
641
- export type TaskStateState = typeof TaskStateState[keyof typeof TaskStateState];
803
+ export type TaskStateState =
804
+ (typeof TaskStateState)[keyof typeof TaskStateState];
642
805
 
643
806
  // eslint-disable-next-line @typescript-eslint/no-redeclare
644
807
  export const TaskStateState = {
@@ -669,7 +832,8 @@ export interface TaskIdentity {
669
832
  * The level of the message, a typical logging framework value
670
833
 
671
834
  */
672
- export type TaskEventLevel = typeof TaskEventLevel[keyof typeof TaskEventLevel];
835
+ export type TaskEventLevel =
836
+ (typeof TaskEventLevel)[keyof typeof TaskEventLevel];
673
837
 
674
838
  // eslint-disable-next-line @typescript-eslint/no-redeclare
675
839
  export const TaskEventLevel = {
@@ -696,7 +860,7 @@ export interface TaskEvent {
696
860
  }
697
861
 
698
862
  export type ServiceErrorSummarySeverity =
699
- typeof ServiceErrorSummarySeverity[keyof typeof ServiceErrorSummarySeverity];
863
+ (typeof ServiceErrorSummarySeverity)[keyof typeof ServiceErrorSummarySeverity];
700
864
 
701
865
  // eslint-disable-next-line @typescript-eslint/no-redeclare
702
866
  export const ServiceErrorSummarySeverity = {
@@ -782,6 +946,17 @@ export interface ProjectDetail {
782
946
  files?: ProjectFileDetail[];
783
947
  }
784
948
 
949
+ export interface JobReplacement {
950
+ collection: string;
951
+ job: string;
952
+ }
953
+
954
+ /**
955
+ * A list of Jobs, collection and job that are either replacing or being replaced
956
+
957
+ */
958
+ export type JobReplacements = JobReplacement[];
959
+
785
960
  export interface JobOrderDetail {
786
961
  options: string[];
787
962
  }
@@ -806,7 +981,7 @@ export interface JobVariables {
806
981
 
807
982
  */
808
983
  export type JobSummaryImageType =
809
- typeof JobSummaryImageType[keyof typeof JobSummaryImageType];
984
+ (typeof JobSummaryImageType)[keyof typeof JobSummaryImageType];
810
985
 
811
986
  // eslint-disable-next-line @typescript-eslint/no-redeclare
812
987
  export const JobSummaryImageType = {
@@ -862,6 +1037,8 @@ export interface JobSummary {
862
1037
  Where there is no remedy for a given reason the remedy will be "There is no remedy".
863
1038
  */
864
1039
  disabled_remedy?: string;
1040
+ replaces?: JobReplacements;
1041
+ replaced_by?: JobReplacements;
865
1042
  }
866
1043
 
867
1044
  export interface JobManifestDetail {
@@ -905,7 +1082,7 @@ export interface JobApplication {
905
1082
 
906
1083
  */
907
1084
  export type InstanceSummaryJobImageType =
908
- typeof InstanceSummaryJobImageType[keyof typeof InstanceSummaryJobImageType];
1085
+ (typeof InstanceSummaryJobImageType)[keyof typeof InstanceSummaryJobImageType];
909
1086
 
910
1087
  // eslint-disable-next-line @typescript-eslint/no-redeclare
911
1088
  export const InstanceSummaryJobImageType = {
@@ -919,7 +1096,7 @@ The initial phase, indicating that the Instance is preparing to run, is `PENDING
919
1096
 
920
1097
  */
921
1098
  export type InstanceSummaryPhase =
922
- typeof InstanceSummaryPhase[keyof typeof InstanceSummaryPhase];
1099
+ (typeof InstanceSummaryPhase)[keyof typeof InstanceSummaryPhase];
923
1100
 
924
1101
  // eslint-disable-next-line @typescript-eslint/no-redeclare
925
1102
  export const InstanceSummaryPhase = {
@@ -938,7 +1115,7 @@ export const InstanceSummaryPhase = {
938
1115
 
939
1116
  */
940
1117
  export type InstanceSummaryApplicationType =
941
- typeof InstanceSummaryApplicationType[keyof typeof InstanceSummaryApplicationType];
1118
+ (typeof InstanceSummaryApplicationType)[keyof typeof InstanceSummaryApplicationType];
942
1119
 
943
1120
  // eslint-disable-next-line @typescript-eslint/no-redeclare
944
1121
  export const InstanceSummaryApplicationType = {
@@ -1094,7 +1271,7 @@ export type DatasetVersionSummaryLabels = { [key: string]: any };
1094
1271
 
1095
1272
  */
1096
1273
  export type DatasetVersionSummaryProcessingStage =
1097
- typeof DatasetVersionSummaryProcessingStage[keyof typeof DatasetVersionSummaryProcessingStage];
1274
+ (typeof DatasetVersionSummaryProcessingStage)[keyof typeof DatasetVersionSummaryProcessingStage];
1098
1275
 
1099
1276
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1100
1277
  export const DatasetVersionSummaryProcessingStage = {
@@ -1171,7 +1348,7 @@ export type DatasetVersionDetailLabels = { [key: string]: any };
1171
1348
 
1172
1349
  */
1173
1350
  export type DatasetVersionDetailProcessingStage =
1174
- typeof DatasetVersionDetailProcessingStage[keyof typeof DatasetVersionDetailProcessingStage];
1351
+ (typeof DatasetVersionDetailProcessingStage)[keyof typeof DatasetVersionDetailProcessingStage];
1175
1352
 
1176
1353
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1177
1354
  export const DatasetVersionDetailProcessingStage = {
@@ -1290,7 +1467,7 @@ export interface ApplicationImageVariants {
1290
1467
 
1291
1468
  */
1292
1469
  export type ApiLogDetailMethod =
1293
- typeof ApiLogDetailMethod[keyof typeof ApiLogDetailMethod];
1470
+ (typeof ApiLogDetailMethod)[keyof typeof ApiLogDetailMethod];
1294
1471
 
1295
1472
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1296
1473
  export const ApiLogDetailMethod = {
@@ -1364,7 +1541,7 @@ export interface TasksGetResponse {
1364
1541
 
1365
1542
  */
1366
1543
  export type TaskGetResponsePurpose =
1367
- typeof TaskGetResponsePurpose[keyof typeof TaskGetResponsePurpose];
1544
+ (typeof TaskGetResponsePurpose)[keyof typeof TaskGetResponsePurpose];
1368
1545
 
1369
1546
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1370
1547
  export const TaskGetResponsePurpose = {
@@ -1439,7 +1616,7 @@ export interface JobsGetResponse {
1439
1616
 
1440
1617
  */
1441
1618
  export type JobGetResponseImageType =
1442
- typeof JobGetResponseImageType[keyof typeof JobGetResponseImageType];
1619
+ (typeof JobGetResponseImageType)[keyof typeof JobGetResponseImageType];
1443
1620
 
1444
1621
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1445
1622
  export const JobGetResponseImageType = {
@@ -1516,10 +1693,12 @@ export interface JobGetResponse {
1516
1693
  Where there is no remedy for a given reason the remedy will be "There is no remedy".
1517
1694
  */
1518
1695
  disabled_remedy?: string;
1696
+ replaces?: JobReplacements;
1697
+ replaced_by?: JobReplacements;
1519
1698
  }
1520
1699
 
1521
1700
  export type InstanceTaskPurpose =
1522
- typeof InstanceTaskPurpose[keyof typeof InstanceTaskPurpose];
1701
+ (typeof InstanceTaskPurpose)[keyof typeof InstanceTaskPurpose];
1523
1702
 
1524
1703
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1525
1704
  export const InstanceTaskPurpose = {
@@ -1541,7 +1720,7 @@ export interface InstancesGetResponse {
1541
1720
 
1542
1721
  */
1543
1722
  export type InstanceGetResponseJobImageType =
1544
- typeof InstanceGetResponseJobImageType[keyof typeof InstanceGetResponseJobImageType];
1723
+ (typeof InstanceGetResponseJobImageType)[keyof typeof InstanceGetResponseJobImageType];
1545
1724
 
1546
1725
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1547
1726
  export const InstanceGetResponseJobImageType = {
@@ -1555,7 +1734,7 @@ The initial phase, indicating that the Instance is preparing to run, is `PENDING
1555
1734
 
1556
1735
  */
1557
1736
  export type InstanceGetResponsePhase =
1558
- typeof InstanceGetResponsePhase[keyof typeof InstanceGetResponsePhase];
1737
+ (typeof InstanceGetResponsePhase)[keyof typeof InstanceGetResponsePhase];
1559
1738
 
1560
1739
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1561
1740
  export const InstanceGetResponsePhase = {
@@ -1574,7 +1753,7 @@ export const InstanceGetResponsePhase = {
1574
1753
 
1575
1754
  */
1576
1755
  export type InstanceGetResponseApplicationType =
1577
- typeof InstanceGetResponseApplicationType[keyof typeof InstanceGetResponseApplicationType];
1756
+ (typeof InstanceGetResponseApplicationType)[keyof typeof InstanceGetResponseApplicationType];
1578
1757
 
1579
1758
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1580
1759
  export const InstanceGetResponseApplicationType = {
@@ -1764,7 +1943,7 @@ export type DatasetVersionDeleteResponse = TaskIdentity;
1764
1943
 
1765
1944
  */
1766
1945
  export type DatasetSchemaGetResponseType =
1767
- typeof DatasetSchemaGetResponseType[keyof typeof DatasetSchemaGetResponseType];
1946
+ (typeof DatasetSchemaGetResponseType)[keyof typeof DatasetSchemaGetResponseType];
1768
1947
 
1769
1948
  // eslint-disable-next-line @typescript-eslint/no-redeclare
1770
1949
  export const DatasetSchemaGetResponseType = {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Generated by orval v6.10.0 🍺
2
+ * Generated by orval v6.12.1 🍺
3
3
  * Do not edit manually.
4
4
  * Dataset Manager API
5
5
  * The Dataset Manager API service.
@@ -33,6 +33,7 @@ import type {
33
33
  } from "../data-manager-api.schemas";
34
34
  import { customInstance } from ".././custom-instance";
35
35
  import type { ErrorType } from ".././custom-instance";
36
+ import { queryMutator } from ".././queryMutator";
36
37
 
37
38
  // eslint-disable-next-line
38
39
  type SecondParameter<T extends (...args: any) => any> = T extends (
@@ -267,15 +268,15 @@ export const useGetDatasets = <
267
268
  signal,
268
269
  }) => getDatasets(params, requestOptions, signal);
269
270
 
271
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
272
+
270
273
  const query = useQuery<
271
274
  Awaited<ReturnType<typeof getDatasets>>,
272
275
  TError,
273
276
  TData
274
- >(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & {
275
- queryKey: QueryKey;
276
- };
277
+ >(customOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
277
278
 
278
- query.queryKey = queryKey;
279
+ query.queryKey = customOptions.queryKey;
279
280
 
280
281
  return query;
281
282
  };
@@ -333,16 +334,15 @@ export const useGetVersions = <
333
334
  signal,
334
335
  }) => getVersions(datasetId, params, requestOptions, signal);
335
336
 
337
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
338
+
336
339
  const query = useQuery<
337
340
  Awaited<ReturnType<typeof getVersions>>,
338
341
  TError,
339
342
  TData
340
- >(queryKey, queryFn, {
341
- enabled: !!datasetId,
342
- ...queryOptions,
343
- }) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
343
+ >(customOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
344
344
 
345
- query.queryKey = queryKey;
345
+ query.queryKey = customOptions.queryKey;
346
346
 
347
347
  return query;
348
348
  };
@@ -462,16 +462,15 @@ export const useDownloadDataset = <
462
462
  signal,
463
463
  }) => downloadDataset(datasetId, datasetVersion, requestOptions, signal);
464
464
 
465
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
466
+
465
467
  const query = useQuery<
466
468
  Awaited<ReturnType<typeof downloadDataset>>,
467
469
  TError,
468
470
  TData
469
- >(queryKey, queryFn, {
470
- enabled: !!(datasetId && datasetVersion),
471
- ...queryOptions,
472
- }) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
471
+ >(customOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
473
472
 
474
- query.queryKey = queryKey;
473
+ query.queryKey = customOptions.queryKey;
475
474
 
476
475
  return query;
477
476
  };
@@ -636,16 +635,15 @@ export const useGetDatasetDigest = <
636
635
  Awaited<ReturnType<typeof getDatasetDigest>>
637
636
  > = ({ signal }) => getDatasetDigest(datasetDigest, requestOptions, signal);
638
637
 
638
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
639
+
639
640
  const query = useQuery<
640
641
  Awaited<ReturnType<typeof getDatasetDigest>>,
641
642
  TError,
642
643
  TData
643
- >(queryKey, queryFn, {
644
- enabled: !!datasetDigest,
645
- ...queryOptions,
646
- }) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
644
+ >(customOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
647
645
 
648
- query.queryKey = queryKey;
646
+ query.queryKey = customOptions.queryKey;
649
647
 
650
648
  return query;
651
649
  };
@@ -705,13 +703,13 @@ export const useGetSchema = <
705
703
  signal,
706
704
  }) => getSchema(datasetId, datasetVersion, requestOptions, signal);
707
705
 
706
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
707
+
708
708
  const query = useQuery<Awaited<ReturnType<typeof getSchema>>, TError, TData>(
709
- queryKey,
710
- queryFn,
711
- { enabled: !!(datasetId && datasetVersion), ...queryOptions }
709
+ customOptions
712
710
  ) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
713
711
 
714
- query.queryKey = queryKey;
712
+ query.queryKey = customOptions.queryKey;
715
713
 
716
714
  return query;
717
715
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Generated by orval v6.10.0 🍺
2
+ * Generated by orval v6.12.1 🍺
3
3
  * Do not edit manually.
4
4
  * Dataset Manager API
5
5
  * The Dataset Manager API service.
@@ -29,6 +29,7 @@ import type {
29
29
  } from "../data-manager-api.schemas";
30
30
  import { customInstance } from ".././custom-instance";
31
31
  import type { ErrorType } from ".././custom-instance";
32
+ import { queryMutator } from ".././queryMutator";
32
33
 
33
34
  // eslint-disable-next-line
34
35
  type SecondParameter<T extends (...args: any) => any> = T extends (
@@ -90,15 +91,15 @@ export const useGetAllApplicationExchangeRates = <
90
91
  > = ({ signal }) =>
91
92
  getAllApplicationExchangeRates(params, requestOptions, signal);
92
93
 
94
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
95
+
93
96
  const query = useQuery<
94
97
  Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,
95
98
  TError,
96
99
  TData
97
- >(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & {
98
- queryKey: QueryKey;
99
- };
100
+ >(customOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
100
101
 
101
- query.queryKey = queryKey;
102
+ query.queryKey = customOptions.queryKey;
102
103
 
103
104
  return query;
104
105
  };
@@ -231,16 +232,15 @@ export const useGetApplicationExchangeRates = <
231
232
  > = ({ signal }) =>
232
233
  getApplicationExchangeRates(applicationId, params, requestOptions, signal);
233
234
 
235
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
236
+
234
237
  const query = useQuery<
235
238
  Awaited<ReturnType<typeof getApplicationExchangeRates>>,
236
239
  TError,
237
240
  TData
238
- >(queryKey, queryFn, {
239
- enabled: !!applicationId,
240
- ...queryOptions,
241
- }) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
241
+ >(customOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
242
242
 
243
- query.queryKey = queryKey;
243
+ query.queryKey = customOptions.queryKey;
244
244
 
245
245
  return query;
246
246
  };
@@ -293,15 +293,15 @@ export const useGetAllJobExchangeRates = <
293
293
  Awaited<ReturnType<typeof getAllJobExchangeRates>>
294
294
  > = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);
295
295
 
296
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
297
+
296
298
  const query = useQuery<
297
299
  Awaited<ReturnType<typeof getAllJobExchangeRates>>,
298
300
  TError,
299
301
  TData
300
- >(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & {
301
- queryKey: QueryKey;
302
- };
302
+ >(customOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
303
303
 
304
- query.queryKey = queryKey;
304
+ query.queryKey = customOptions.queryKey;
305
305
 
306
306
  return query;
307
307
  };
@@ -425,16 +425,15 @@ export const useGetJobExchangeRates = <
425
425
  > = ({ signal }) =>
426
426
  getJobExchangeRates(jobId, params, requestOptions, signal);
427
427
 
428
+ const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
429
+
428
430
  const query = useQuery<
429
431
  Awaited<ReturnType<typeof getJobExchangeRates>>,
430
432
  TError,
431
433
  TData
432
- >(queryKey, queryFn, { enabled: !!jobId, ...queryOptions }) as UseQueryResult<
433
- TData,
434
- TError
435
- > & { queryKey: QueryKey };
434
+ >(customOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
436
435
 
437
- query.queryKey = queryKey;
436
+ query.queryKey = customOptions.queryKey;
438
437
 
439
438
  return query;
440
439
  };