@squonk/data-manager-client 1.2.8 → 2.0.0-alpha.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 (122) hide show
  1. package/README.md +1 -1
  2. package/accounting/accounting.cjs +51 -8
  3. package/accounting/accounting.cjs.map +1 -1
  4. package/accounting/accounting.d.cts +61 -10
  5. package/accounting/accounting.d.ts +61 -10
  6. package/accounting/accounting.js +49 -6
  7. package/accounting/accounting.js.map +1 -1
  8. package/admin/admin.cjs +67 -24
  9. package/admin/admin.cjs.map +1 -1
  10. package/admin/admin.d.cts +75 -24
  11. package/admin/admin.d.ts +75 -24
  12. package/admin/admin.js +56 -13
  13. package/admin/admin.js.map +1 -1
  14. package/application/application.cjs +35 -6
  15. package/application/application.cjs.map +1 -1
  16. package/application/application.d.cts +42 -8
  17. package/application/application.d.ts +42 -8
  18. package/application/application.js +34 -5
  19. package/application/application.js.map +1 -1
  20. package/{chunk-UKA7G3OB.js → chunk-EBOQPVLG.js} +2 -2
  21. package/{chunk-UKA7G3OB.js.map → chunk-EBOQPVLG.js.map} +1 -1
  22. package/{chunk-J22A7LHX.cjs → chunk-TKLTUR4R.cjs} +2 -2
  23. package/chunk-TKLTUR4R.cjs.map +1 -0
  24. package/configuration/configuration.cjs +19 -4
  25. package/configuration/configuration.cjs.map +1 -1
  26. package/configuration/configuration.d.cts +23 -6
  27. package/configuration/configuration.d.ts +23 -6
  28. package/configuration/configuration.js +19 -4
  29. package/configuration/configuration.js.map +1 -1
  30. package/dataset/dataset.cjs +93 -22
  31. package/dataset/dataset.cjs.map +1 -1
  32. package/dataset/dataset.d.cts +105 -20
  33. package/dataset/dataset.d.ts +105 -20
  34. package/dataset/dataset.js +83 -12
  35. package/dataset/dataset.js.map +1 -1
  36. package/exchange-rate/exchange-rate.cjs +71 -14
  37. package/exchange-rate/exchange-rate.cjs.map +1 -1
  38. package/exchange-rate/exchange-rate.d.cts +83 -15
  39. package/exchange-rate/exchange-rate.d.ts +83 -15
  40. package/exchange-rate/exchange-rate.js +65 -8
  41. package/exchange-rate/exchange-rate.js.map +1 -1
  42. package/file-and-path/file-and-path.cjs +45 -16
  43. package/file-and-path/file-and-path.cjs.map +1 -1
  44. package/file-and-path/file-and-path.d.cts +53 -19
  45. package/file-and-path/file-and-path.d.ts +53 -19
  46. package/file-and-path/file-and-path.js +39 -10
  47. package/file-and-path/file-and-path.js.map +1 -1
  48. package/index.cjs +2 -2
  49. package/index.cjs.map +1 -1
  50. package/index.d.cts +2102 -2
  51. package/index.d.ts +2102 -2
  52. package/index.js +1 -1
  53. package/index.js.map +1 -1
  54. package/instance/instance.cjs +45 -16
  55. package/instance/instance.cjs.map +1 -1
  56. package/instance/instance.d.cts +48 -14
  57. package/instance/instance.d.ts +48 -14
  58. package/instance/instance.js +38 -9
  59. package/instance/instance.js.map +1 -1
  60. package/inventory/inventory.cjs +56 -0
  61. package/inventory/inventory.cjs.map +1 -0
  62. package/inventory/inventory.d.cts +50 -0
  63. package/inventory/inventory.d.ts +50 -0
  64. package/inventory/inventory.js +56 -0
  65. package/inventory/inventory.js.map +1 -0
  66. package/inventory/package.json +7 -0
  67. package/job/job.cjs +51 -8
  68. package/job/job.cjs.map +1 -1
  69. package/job/job.d.cts +61 -10
  70. package/job/job.d.ts +61 -10
  71. package/job/job.js +49 -6
  72. package/job/job.js.map +1 -1
  73. package/metadata/metadata.cjs +39 -10
  74. package/metadata/metadata.cjs.map +1 -1
  75. package/metadata/metadata.d.cts +45 -11
  76. package/metadata/metadata.d.ts +45 -11
  77. package/metadata/metadata.js +36 -7
  78. package/metadata/metadata.js.map +1 -1
  79. package/package.json +11 -11
  80. package/project/project.cjs +131 -26
  81. package/project/project.cjs.map +1 -1
  82. package/project/project.d.cts +166 -30
  83. package/project/project.d.ts +166 -30
  84. package/project/project.js +119 -14
  85. package/project/project.js.map +1 -1
  86. package/src/accounting/accounting.ts +137 -23
  87. package/src/admin/admin.ts +149 -51
  88. package/src/application/application.ts +94 -19
  89. package/src/configuration/configuration.ts +51 -15
  90. package/src/custom-instance.ts +3 -4
  91. package/src/data-manager-api.schemas.ts +115 -13
  92. package/src/dataset/dataset.ts +234 -46
  93. package/src/exchange-rate/exchange-rate.ts +186 -33
  94. package/src/file-and-path/file-and-path.ts +104 -39
  95. package/src/instance/instance.ts +99 -34
  96. package/src/inventory/inventory.ts +140 -0
  97. package/src/job/job.ts +139 -23
  98. package/src/metadata/metadata.ts +98 -25
  99. package/src/project/project.ts +313 -60
  100. package/src/task/task.ts +97 -22
  101. package/src/type/type.ts +51 -15
  102. package/src/user/user.ts +138 -26
  103. package/task/task.cjs +37 -8
  104. package/task/task.cjs.map +1 -1
  105. package/task/task.d.cts +44 -10
  106. package/task/task.d.ts +44 -10
  107. package/task/task.js +35 -6
  108. package/task/task.js.map +1 -1
  109. package/type/type.cjs +19 -4
  110. package/type/type.cjs.map +1 -1
  111. package/type/type.d.cts +23 -6
  112. package/type/type.d.ts +23 -6
  113. package/type/type.js +19 -4
  114. package/type/type.js.map +1 -1
  115. package/user/user.cjs +53 -10
  116. package/user/user.cjs.map +1 -1
  117. package/user/user.d.cts +63 -12
  118. package/user/user.d.ts +63 -12
  119. package/user/user.js +49 -6
  120. package/user/user.js.map +1 -1
  121. package/chunk-J22A7LHX.cjs.map +0 -1
  122. package/custom-instance-37ed2460.d.ts +0 -2014
@@ -1,9 +1,9 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult } from '@tanstack/react-query';
3
- import { ah as DatasetVersionMetaPostBodyBody, bZ as customInstance, bK as DatasetMetaGetResponse, b_ as ErrorType, bV as DmError, ai as DatasetMetaPostBodyBody } from '../custom-instance-37ed2460.js';
1
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
2
+ import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
3
+ import { DatasetVersionMetaPostBodyBody, customInstance, DatasetMetaGetResponse, ErrorType, DmError, DatasetMetaPostBodyBody } from '../index.cjs';
4
4
  import 'axios';
5
5
 
6
- type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
6
+ type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
7
7
  /**
8
8
  * Update parameters or add new annotations of the specified type(s) and to the Metadata for a **Dataset Version**.
9
9
 
@@ -39,7 +39,7 @@ declare const useAddMetadataVersion: <TError = ErrorType<void | DmError>, TConte
39
39
  data: DatasetVersionMetaPostBodyBody;
40
40
  }, TContext> | undefined;
41
41
  request?: SecondParameter<typeof customInstance>;
42
- } | undefined) => _tanstack_react_query.UseMutationResult<DatasetMetaGetResponse, TError, {
42
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<DatasetMetaGetResponse, TError, {
43
43
  datasetId: string;
44
44
  datasetVersion: number;
45
45
  data: DatasetVersionMetaPostBodyBody;
@@ -52,7 +52,7 @@ declare const useAddMetadataVersion: <TError = ErrorType<void | DmError>, TConte
52
52
  declare const getMetadataVersion: (datasetId: string, datasetVersion: number, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetMetaGetResponse>;
53
53
  declare const getGetMetadataVersionQueryKey: (datasetId: string, datasetVersion: number) => readonly ["data-manager-api", `/dataset/${string}/meta/${number}`];
54
54
  declare const getGetMetadataVersionQueryOptions: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
55
- query?: UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> | undefined;
55
+ query?: Partial<UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
56
56
  request?: SecondParameter<typeof customInstance>;
57
57
  } | undefined) => UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> & {
58
58
  queryKey: QueryKey;
@@ -63,11 +63,28 @@ type GetMetadataVersionQueryError = ErrorType<void | DmError>;
63
63
  * @summary Gets the Metadata for a specific Dataset Version
64
64
  */
65
65
  declare const useGetMetadataVersion: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
66
- query?: UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> | undefined;
66
+ query?: Partial<UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
67
67
  request?: SecondParameter<typeof customInstance>;
68
68
  } | undefined) => UseQueryResult<TData, TError> & {
69
69
  queryKey: QueryKey;
70
70
  };
71
+ declare const getGetMetadataVersionSuspenseQueryOptions: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
72
+ query?: Partial<UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
73
+ request?: SecondParameter<typeof customInstance>;
74
+ } | undefined) => UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> & {
75
+ queryKey: QueryKey;
76
+ };
77
+ type GetMetadataVersionSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadataVersion>>>;
78
+ type GetMetadataVersionSuspenseQueryError = ErrorType<void | DmError>;
79
+ /**
80
+ * @summary Gets the Metadata for a specific Dataset Version
81
+ */
82
+ declare const useGetMetadataVersionSuspense: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
83
+ query?: Partial<UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
84
+ request?: SecondParameter<typeof customInstance>;
85
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
86
+ queryKey: QueryKey;
87
+ };
71
88
  /**
72
89
  * Update default parameters or add new labels to the Metadata for the Dataset.
73
90
 
@@ -100,7 +117,7 @@ declare const useAddMetadata: <TError = ErrorType<void | DmError>, TContext = un
100
117
  data: DatasetMetaPostBodyBody;
101
118
  }, TContext> | undefined;
102
119
  request?: SecondParameter<typeof customInstance>;
103
- } | undefined) => _tanstack_react_query.UseMutationResult<DatasetMetaGetResponse, TError, {
120
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<DatasetMetaGetResponse, TError, {
104
121
  datasetId: string;
105
122
  data: DatasetMetaPostBodyBody;
106
123
  }, TContext>;
@@ -112,7 +129,7 @@ declare const useAddMetadata: <TError = ErrorType<void | DmError>, TContext = un
112
129
  declare const getMetadata: (datasetId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetMetaGetResponse>;
113
130
  declare const getGetMetadataQueryKey: (datasetId: string) => readonly ["data-manager-api", `/dataset/${string}/meta`];
114
131
  declare const getGetMetadataQueryOptions: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, options?: {
115
- query?: UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> | undefined;
132
+ query?: Partial<UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
116
133
  request?: SecondParameter<typeof customInstance>;
117
134
  } | undefined) => UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> & {
118
135
  queryKey: QueryKey;
@@ -123,10 +140,27 @@ type GetMetadataQueryError = ErrorType<void | DmError>;
123
140
  * @summary Gets the Metadata for a specific Dataset
124
141
  */
125
142
  declare const useGetMetadata: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, options?: {
126
- query?: UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> | undefined;
143
+ query?: Partial<UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
127
144
  request?: SecondParameter<typeof customInstance>;
128
145
  } | undefined) => UseQueryResult<TData, TError> & {
129
146
  queryKey: QueryKey;
130
147
  };
148
+ declare const getGetMetadataSuspenseQueryOptions: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, options?: {
149
+ query?: Partial<UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
150
+ request?: SecondParameter<typeof customInstance>;
151
+ } | undefined) => UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> & {
152
+ queryKey: QueryKey;
153
+ };
154
+ type GetMetadataSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadata>>>;
155
+ type GetMetadataSuspenseQueryError = ErrorType<void | DmError>;
156
+ /**
157
+ * @summary Gets the Metadata for a specific Dataset
158
+ */
159
+ declare const useGetMetadataSuspense: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, options?: {
160
+ query?: Partial<UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
161
+ request?: SecondParameter<typeof customInstance>;
162
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
163
+ queryKey: QueryKey;
164
+ };
131
165
 
132
- export { AddMetadataMutationBody, AddMetadataMutationError, AddMetadataMutationResult, AddMetadataVersionMutationBody, AddMetadataVersionMutationError, AddMetadataVersionMutationResult, GetMetadataQueryError, GetMetadataQueryResult, GetMetadataVersionQueryError, GetMetadataVersionQueryResult, addMetadata, addMetadataVersion, getAddMetadataMutationOptions, getAddMetadataVersionMutationOptions, getGetMetadataQueryKey, getGetMetadataQueryOptions, getGetMetadataVersionQueryKey, getGetMetadataVersionQueryOptions, getMetadata, getMetadataVersion, useAddMetadata, useAddMetadataVersion, useGetMetadata, useGetMetadataVersion };
166
+ export { type AddMetadataMutationBody, type AddMetadataMutationError, type AddMetadataMutationResult, type AddMetadataVersionMutationBody, type AddMetadataVersionMutationError, type AddMetadataVersionMutationResult, type GetMetadataQueryError, type GetMetadataQueryResult, type GetMetadataSuspenseQueryError, type GetMetadataSuspenseQueryResult, type GetMetadataVersionQueryError, type GetMetadataVersionQueryResult, type GetMetadataVersionSuspenseQueryError, type GetMetadataVersionSuspenseQueryResult, addMetadata, addMetadataVersion, getAddMetadataMutationOptions, getAddMetadataVersionMutationOptions, getGetMetadataQueryKey, getGetMetadataQueryOptions, getGetMetadataSuspenseQueryOptions, getGetMetadataVersionQueryKey, getGetMetadataVersionQueryOptions, getGetMetadataVersionSuspenseQueryOptions, getMetadata, getMetadataVersion, useAddMetadata, useAddMetadataVersion, useGetMetadata, useGetMetadataSuspense, useGetMetadataVersion, useGetMetadataVersionSuspense };
@@ -1,9 +1,9 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult } from '@tanstack/react-query';
3
- import { ah as DatasetVersionMetaPostBodyBody, bZ as customInstance, bK as DatasetMetaGetResponse, b_ as ErrorType, bV as DmError, ai as DatasetMetaPostBodyBody } from '../custom-instance-37ed2460.js';
1
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
2
+ import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
3
+ import { DatasetVersionMetaPostBodyBody, customInstance, DatasetMetaGetResponse, ErrorType, DmError, DatasetMetaPostBodyBody } from '../index.js';
4
4
  import 'axios';
5
5
 
6
- type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
6
+ type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
7
7
  /**
8
8
  * Update parameters or add new annotations of the specified type(s) and to the Metadata for a **Dataset Version**.
9
9
 
@@ -39,7 +39,7 @@ declare const useAddMetadataVersion: <TError = ErrorType<void | DmError>, TConte
39
39
  data: DatasetVersionMetaPostBodyBody;
40
40
  }, TContext> | undefined;
41
41
  request?: SecondParameter<typeof customInstance>;
42
- } | undefined) => _tanstack_react_query.UseMutationResult<DatasetMetaGetResponse, TError, {
42
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<DatasetMetaGetResponse, TError, {
43
43
  datasetId: string;
44
44
  datasetVersion: number;
45
45
  data: DatasetVersionMetaPostBodyBody;
@@ -52,7 +52,7 @@ declare const useAddMetadataVersion: <TError = ErrorType<void | DmError>, TConte
52
52
  declare const getMetadataVersion: (datasetId: string, datasetVersion: number, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetMetaGetResponse>;
53
53
  declare const getGetMetadataVersionQueryKey: (datasetId: string, datasetVersion: number) => readonly ["data-manager-api", `/dataset/${string}/meta/${number}`];
54
54
  declare const getGetMetadataVersionQueryOptions: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
55
- query?: UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> | undefined;
55
+ query?: Partial<UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
56
56
  request?: SecondParameter<typeof customInstance>;
57
57
  } | undefined) => UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> & {
58
58
  queryKey: QueryKey;
@@ -63,11 +63,28 @@ type GetMetadataVersionQueryError = ErrorType<void | DmError>;
63
63
  * @summary Gets the Metadata for a specific Dataset Version
64
64
  */
65
65
  declare const useGetMetadataVersion: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
66
- query?: UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> | undefined;
66
+ query?: Partial<UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
67
67
  request?: SecondParameter<typeof customInstance>;
68
68
  } | undefined) => UseQueryResult<TData, TError> & {
69
69
  queryKey: QueryKey;
70
70
  };
71
+ declare const getGetMetadataVersionSuspenseQueryOptions: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
72
+ query?: Partial<UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
73
+ request?: SecondParameter<typeof customInstance>;
74
+ } | undefined) => UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> & {
75
+ queryKey: QueryKey;
76
+ };
77
+ type GetMetadataVersionSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadataVersion>>>;
78
+ type GetMetadataVersionSuspenseQueryError = ErrorType<void | DmError>;
79
+ /**
80
+ * @summary Gets the Metadata for a specific Dataset Version
81
+ */
82
+ declare const useGetMetadataVersionSuspense: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
83
+ query?: Partial<UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
84
+ request?: SecondParameter<typeof customInstance>;
85
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
86
+ queryKey: QueryKey;
87
+ };
71
88
  /**
72
89
  * Update default parameters or add new labels to the Metadata for the Dataset.
73
90
 
@@ -100,7 +117,7 @@ declare const useAddMetadata: <TError = ErrorType<void | DmError>, TContext = un
100
117
  data: DatasetMetaPostBodyBody;
101
118
  }, TContext> | undefined;
102
119
  request?: SecondParameter<typeof customInstance>;
103
- } | undefined) => _tanstack_react_query.UseMutationResult<DatasetMetaGetResponse, TError, {
120
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<DatasetMetaGetResponse, TError, {
104
121
  datasetId: string;
105
122
  data: DatasetMetaPostBodyBody;
106
123
  }, TContext>;
@@ -112,7 +129,7 @@ declare const useAddMetadata: <TError = ErrorType<void | DmError>, TContext = un
112
129
  declare const getMetadata: (datasetId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetMetaGetResponse>;
113
130
  declare const getGetMetadataQueryKey: (datasetId: string) => readonly ["data-manager-api", `/dataset/${string}/meta`];
114
131
  declare const getGetMetadataQueryOptions: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, options?: {
115
- query?: UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> | undefined;
132
+ query?: Partial<UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
116
133
  request?: SecondParameter<typeof customInstance>;
117
134
  } | undefined) => UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> & {
118
135
  queryKey: QueryKey;
@@ -123,10 +140,27 @@ type GetMetadataQueryError = ErrorType<void | DmError>;
123
140
  * @summary Gets the Metadata for a specific Dataset
124
141
  */
125
142
  declare const useGetMetadata: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, options?: {
126
- query?: UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> | undefined;
143
+ query?: Partial<UseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
127
144
  request?: SecondParameter<typeof customInstance>;
128
145
  } | undefined) => UseQueryResult<TData, TError> & {
129
146
  queryKey: QueryKey;
130
147
  };
148
+ declare const getGetMetadataSuspenseQueryOptions: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, options?: {
149
+ query?: Partial<UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
150
+ request?: SecondParameter<typeof customInstance>;
151
+ } | undefined) => UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey> & {
152
+ queryKey: QueryKey;
153
+ };
154
+ type GetMetadataSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadata>>>;
155
+ type GetMetadataSuspenseQueryError = ErrorType<void | DmError>;
156
+ /**
157
+ * @summary Gets the Metadata for a specific Dataset
158
+ */
159
+ declare const useGetMetadataSuspense: <TData = DatasetMetaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, options?: {
160
+ query?: Partial<UseSuspenseQueryOptions<DatasetMetaGetResponse, TError, TData, QueryKey>> | undefined;
161
+ request?: SecondParameter<typeof customInstance>;
162
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
163
+ queryKey: QueryKey;
164
+ };
131
165
 
132
- export { AddMetadataMutationBody, AddMetadataMutationError, AddMetadataMutationResult, AddMetadataVersionMutationBody, AddMetadataVersionMutationError, AddMetadataVersionMutationResult, GetMetadataQueryError, GetMetadataQueryResult, GetMetadataVersionQueryError, GetMetadataVersionQueryResult, addMetadata, addMetadataVersion, getAddMetadataMutationOptions, getAddMetadataVersionMutationOptions, getGetMetadataQueryKey, getGetMetadataQueryOptions, getGetMetadataVersionQueryKey, getGetMetadataVersionQueryOptions, getMetadata, getMetadataVersion, useAddMetadata, useAddMetadataVersion, useGetMetadata, useGetMetadataVersion };
166
+ export { type AddMetadataMutationBody, type AddMetadataMutationError, type AddMetadataMutationResult, type AddMetadataVersionMutationBody, type AddMetadataVersionMutationError, type AddMetadataVersionMutationResult, type GetMetadataQueryError, type GetMetadataQueryResult, type GetMetadataSuspenseQueryError, type GetMetadataSuspenseQueryResult, type GetMetadataVersionQueryError, type GetMetadataVersionQueryResult, type GetMetadataVersionSuspenseQueryError, type GetMetadataVersionSuspenseQueryResult, addMetadata, addMetadataVersion, getAddMetadataMutationOptions, getAddMetadataVersionMutationOptions, getGetMetadataQueryKey, getGetMetadataQueryOptions, getGetMetadataSuspenseQueryOptions, getGetMetadataVersionQueryKey, getGetMetadataVersionQueryOptions, getGetMetadataVersionSuspenseQueryOptions, getMetadata, getMetadataVersion, useAddMetadata, useAddMetadataVersion, useGetMetadata, useGetMetadataSuspense, useGetMetadataVersion, useGetMetadataVersionSuspense };
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  customInstance
3
- } from "../chunk-UKA7G3OB.js";
3
+ } from "../chunk-EBOQPVLG.js";
4
4
 
5
5
  // src/metadata/metadata.ts
6
6
  import {
7
7
  useMutation,
8
- useQuery
8
+ useQuery,
9
+ useSuspenseQuery
9
10
  } from "@tanstack/react-query";
10
11
  var addMetadataVersion = (datasetId, datasetVersion, datasetVersionMetaPostBodyBody, options) => {
11
12
  const formData = new FormData();
@@ -18,7 +19,7 @@ var addMetadataVersion = (datasetId, datasetVersion, datasetVersionMetaPostBodyB
18
19
  return customInstance(
19
20
  {
20
21
  url: `/dataset/${datasetId}/meta/${datasetVersion}`,
21
- method: "post",
22
+ method: "POST",
22
23
  headers: { "Content-Type": "multipart/form-data" },
23
24
  data: formData
24
25
  },
@@ -41,7 +42,7 @@ var getMetadataVersion = (datasetId, datasetVersion, options, signal) => {
41
42
  return customInstance(
42
43
  {
43
44
  url: `/dataset/${datasetId}/meta/${datasetVersion}`,
44
- method: "get",
45
+ method: "GET",
45
46
  signal
46
47
  },
47
48
  options
@@ -62,6 +63,18 @@ var useGetMetadataVersion = (datasetId, datasetVersion, options) => {
62
63
  query.queryKey = queryOptions.queryKey;
63
64
  return query;
64
65
  };
66
+ var getGetMetadataVersionSuspenseQueryOptions = (datasetId, datasetVersion, options) => {
67
+ const { query: queryOptions, request: requestOptions } = options ?? {};
68
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetMetadataVersionQueryKey(datasetId, datasetVersion);
69
+ const queryFn = ({ signal }) => getMetadataVersion(datasetId, datasetVersion, requestOptions, signal);
70
+ return { queryKey, queryFn, enabled: !!(datasetId && datasetVersion), ...queryOptions };
71
+ };
72
+ var useGetMetadataVersionSuspense = (datasetId, datasetVersion, options) => {
73
+ const queryOptions = getGetMetadataVersionSuspenseQueryOptions(datasetId, datasetVersion, options);
74
+ const query = useSuspenseQuery(queryOptions);
75
+ query.queryKey = queryOptions.queryKey;
76
+ return query;
77
+ };
65
78
  var addMetadata = (datasetId, datasetMetaPostBodyBody, options) => {
66
79
  const formData = new FormData();
67
80
  if (datasetMetaPostBodyBody.meta_properties !== void 0) {
@@ -73,7 +86,7 @@ var addMetadata = (datasetId, datasetMetaPostBodyBody, options) => {
73
86
  return customInstance(
74
87
  {
75
88
  url: `/dataset/${datasetId}/meta`,
76
- method: "post",
89
+ method: "POST",
77
90
  headers: { "Content-Type": "multipart/form-data" },
78
91
  data: formData
79
92
  },
@@ -96,7 +109,7 @@ var getMetadata = (datasetId, options, signal) => {
96
109
  return customInstance(
97
110
  {
98
111
  url: `/dataset/${datasetId}/meta`,
99
- method: "get",
112
+ method: "GET",
100
113
  signal
101
114
  },
102
115
  options
@@ -117,6 +130,18 @@ var useGetMetadata = (datasetId, options) => {
117
130
  query.queryKey = queryOptions.queryKey;
118
131
  return query;
119
132
  };
133
+ var getGetMetadataSuspenseQueryOptions = (datasetId, options) => {
134
+ const { query: queryOptions, request: requestOptions } = options ?? {};
135
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetMetadataQueryKey(datasetId);
136
+ const queryFn = ({ signal }) => getMetadata(datasetId, requestOptions, signal);
137
+ return { queryKey, queryFn, enabled: !!datasetId, ...queryOptions };
138
+ };
139
+ var useGetMetadataSuspense = (datasetId, options) => {
140
+ const queryOptions = getGetMetadataSuspenseQueryOptions(datasetId, options);
141
+ const query = useSuspenseQuery(queryOptions);
142
+ query.queryKey = queryOptions.queryKey;
143
+ return query;
144
+ };
120
145
  export {
121
146
  addMetadata,
122
147
  addMetadataVersion,
@@ -124,13 +149,17 @@ export {
124
149
  getAddMetadataVersionMutationOptions,
125
150
  getGetMetadataQueryKey,
126
151
  getGetMetadataQueryOptions,
152
+ getGetMetadataSuspenseQueryOptions,
127
153
  getGetMetadataVersionQueryKey,
128
154
  getGetMetadataVersionQueryOptions,
155
+ getGetMetadataVersionSuspenseQueryOptions,
129
156
  getMetadata,
130
157
  getMetadataVersion,
131
158
  useAddMetadata,
132
159
  useAddMetadataVersion,
133
160
  useGetMetadata,
134
- useGetMetadataVersion
161
+ useGetMetadataSuspense,
162
+ useGetMetadataVersion,
163
+ useGetMetadataVersionSuspense
135
164
  };
136
165
  //# sourceMappingURL=metadata.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/metadata/metadata.ts"],"sourcesContent":["/**\n * Generated by orval v6.20.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 1.2\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query'\nimport type {\n DatasetMetaGetResponse,\n DatasetMetaPostBodyBody,\n DatasetVersionMetaPostBodyBody,\n DmError\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\n// eslint-disable-next-line\n type SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P,\n) => any\n ? P\n : never;\n\n\n/**\n * Update parameters or add new annotations of the specified type(s) and to the Metadata for a **Dataset Version**.\n\nThe parameters are provided in a list in keyword/arguments\n\nThe annotations are provided in a list in JSON format. For details of the annotations that can be created, see the data-manager-metadata library.\n\n * @summary Update Metadata for the Dataset version\n */\nexport const addMetadataVersion = (\n datasetId: string,\n datasetVersion: number,\n datasetVersionMetaPostBodyBody: DatasetVersionMetaPostBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nif(datasetVersionMetaPostBodyBody.meta_properties !== undefined) {\n formData.append('meta_properties', datasetVersionMetaPostBodyBody.meta_properties)\n }\nif(datasetVersionMetaPostBodyBody.annotations !== undefined) {\n formData.append('annotations', datasetVersionMetaPostBodyBody.annotations)\n }\n\n return customInstance<DatasetMetaGetResponse>(\n {url: `/dataset/${datasetId}/meta/${datasetVersion}`, method: 'post',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getAddMetadataVersionMutationOptions = <TError = ErrorType<DmError | void>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addMetadataVersion>>, TError,{datasetId: string;datasetVersion: number;data: DatasetVersionMetaPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof addMetadataVersion>>, TError,{datasetId: string;datasetVersion: number;data: DatasetVersionMetaPostBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof addMetadataVersion>>, {datasetId: string;datasetVersion: number;data: DatasetVersionMetaPostBodyBody}> = (props) => {\n const {datasetId,datasetVersion,data} = props ?? {};\n\n return addMetadataVersion(datasetId,datasetVersion,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AddMetadataVersionMutationResult = NonNullable<Awaited<ReturnType<typeof addMetadataVersion>>>\n export type AddMetadataVersionMutationBody = DatasetVersionMetaPostBodyBody\n export type AddMetadataVersionMutationError = ErrorType<DmError | void>\n\n /**\n * @summary Update Metadata for the Dataset version\n */\nexport const useAddMetadataVersion = <TError = ErrorType<DmError | void>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addMetadataVersion>>, TError,{datasetId: string;datasetVersion: number;data: DatasetVersionMetaPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAddMetadataVersionMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Returns the Metadata for a **Dataset Version** in JSON format.\n\n * @summary Gets the Metadata for a specific Dataset Version\n */\nexport const getMetadataVersion = (\n datasetId: string,\n datasetVersion: number,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<DatasetMetaGetResponse>(\n {url: `/dataset/${datasetId}/meta/${datasetVersion}`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getGetMetadataVersionQueryKey = (datasetId: string,\n datasetVersion: number,) => {\n \n return [\"data-manager-api\", `/dataset/${datasetId}/meta/${datasetVersion}`] as const;\n }\n\n \nexport const getGetMetadataVersionQueryOptions = <TData = Awaited<ReturnType<typeof getMetadataVersion>>, TError = ErrorType<void | DmError>>(datasetId: string,\n datasetVersion: number, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMetadataVersionQueryKey(datasetId,datasetVersion);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMetadataVersion>>> = ({ signal }) => getMetadataVersion(datasetId,datasetVersion, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(datasetId && datasetVersion), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetMetadataVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadataVersion>>>\nexport type GetMetadataVersionQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Metadata for a specific Dataset Version\n */\nexport const useGetMetadataVersion = <TData = Awaited<ReturnType<typeof getMetadataVersion>>, TError = ErrorType<void | DmError>>(\n datasetId: string,\n datasetVersion: number, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetMetadataVersionQueryOptions(datasetId,datasetVersion,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Update default parameters or add new labels to the Metadata for the Dataset.\n\nThe parameters are provided in a list in keyword/arguments\n\nThe labels are provided in a list in JSON format. For details of the label format, see the data-manager-metadata library,\n\n * @summary Update Metadata for the Dataset\n */\nexport const addMetadata = (\n datasetId: string,\n datasetMetaPostBodyBody: DatasetMetaPostBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nif(datasetMetaPostBodyBody.meta_properties !== undefined) {\n formData.append('meta_properties', datasetMetaPostBodyBody.meta_properties)\n }\nif(datasetMetaPostBodyBody.labels !== undefined) {\n formData.append('labels', datasetMetaPostBodyBody.labels)\n }\n\n return customInstance<DatasetMetaGetResponse>(\n {url: `/dataset/${datasetId}/meta`, method: 'post',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getAddMetadataMutationOptions = <TError = ErrorType<DmError | void>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addMetadata>>, TError,{datasetId: string;data: DatasetMetaPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof addMetadata>>, TError,{datasetId: string;data: DatasetMetaPostBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof addMetadata>>, {datasetId: string;data: DatasetMetaPostBodyBody}> = (props) => {\n const {datasetId,data} = props ?? {};\n\n return addMetadata(datasetId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AddMetadataMutationResult = NonNullable<Awaited<ReturnType<typeof addMetadata>>>\n export type AddMetadataMutationBody = DatasetMetaPostBodyBody\n export type AddMetadataMutationError = ErrorType<DmError | void>\n\n /**\n * @summary Update Metadata for the Dataset\n */\nexport const useAddMetadata = <TError = ErrorType<DmError | void>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addMetadata>>, TError,{datasetId: string;data: DatasetMetaPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAddMetadataMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Returns the Metadata for a Dataset in JSON format.\n\n * @summary Gets the Metadata for a specific Dataset\n */\nexport const getMetadata = (\n datasetId: string,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<DatasetMetaGetResponse>(\n {url: `/dataset/${datasetId}/meta`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getGetMetadataQueryKey = (datasetId: string,) => {\n \n return [\"data-manager-api\", `/dataset/${datasetId}/meta`] as const;\n }\n\n \nexport const getGetMetadataQueryOptions = <TData = Awaited<ReturnType<typeof getMetadata>>, TError = ErrorType<void | DmError>>(datasetId: string, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMetadataQueryKey(datasetId);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMetadata>>> = ({ signal }) => getMetadata(datasetId, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(datasetId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetMetadataQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadata>>>\nexport type GetMetadataQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Metadata for a specific Dataset\n */\nexport const useGetMetadata = <TData = Awaited<ReturnType<typeof getMetadata>>, TError = ErrorType<void | DmError>>(\n datasetId: string, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetMetadataQueryOptions(datasetId,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAqCA,IAAM,qBAAqB,CAC9B,WACA,gBACA,gCACH,YAAsD;AAEjD,QAAM,WAAW,IAAI,SAAS;AACpC,MAAG,+BAA+B,oBAAoB,QAAW;AAChE,aAAS,OAAO,mBAAmB,+BAA+B,eAAe;AAAA,EACjF;AACD,MAAG,+BAA+B,gBAAgB,QA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GG,IAAM,6BAA6B,CAAsF,WAAmB,YAC9I;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aAAY,uBAAuB,SAAS;AAI1E,QAAM,UAAkE,CAAC,EAAE,OAAO,MAAM,YAAY,WAAW,gBAAgB,MAAM;AAMtI,SAAQ,EAAE,UAAU,SAAS,SAAS,CAAC,CAAE,WAAY,GAAG,aAAY;AACvE;AAQO,IAAM,iBAAiB,CAC7B,WAAmB,YAE4C;AAE9D,QAAM,eAAe,2BAA2B,WAAU,OAAO;AAEjE,QAAM,QAAQ,SAAS,YAAY;AAEnC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../src/metadata/metadata.ts"],"sourcesContent":["/**\n * Generated by orval v6.25.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 2.0\n */\nimport {\n useMutation,\n useQuery,\n useSuspenseQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult\n} from '@tanstack/react-query'\nimport type {\n DatasetMetaGetResponse,\n DatasetMetaPostBodyBody,\n DatasetVersionMetaPostBodyBody,\n DmError\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\ntype SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];\n\n\n/**\n * Update parameters or add new annotations of the specified type(s) and to the Metadata for a **Dataset Version**.\n\nThe parameters are provided in a list in keyword/arguments\n\nThe annotations are provided in a list in JSON format. For details of the annotations that can be created, see the data-manager-metadata library.\n\n * @summary Update Metadata for the Dataset version\n */\nexport const addMetadataVersion = (\n datasetId: string,\n datasetVersion: number,\n datasetVersionMetaPostBodyBody: DatasetVersionMetaPostBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nif(datasetVersionMetaPostBodyBody.meta_properties !== undefined) {\n formData.append('meta_properties', datasetVersionMetaPostBodyBody.meta_properties)\n }\nif(datasetVersionMetaPostBodyBody.annotations !== undefined) {\n formData.append('annotations', datasetVersionMetaPostBodyBody.annotations)\n }\n\n return customInstance<DatasetMetaGetResponse>(\n {url: `/dataset/${datasetId}/meta/${datasetVersion}`, method: 'POST',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getAddMetadataVersionMutationOptions = <TError = ErrorType<DmError | void>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addMetadataVersion>>, TError,{datasetId: string;datasetVersion: number;data: DatasetVersionMetaPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof addMetadataVersion>>, TError,{datasetId: string;datasetVersion: number;data: DatasetVersionMetaPostBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof addMetadataVersion>>, {datasetId: string;datasetVersion: number;data: DatasetVersionMetaPostBodyBody}> = (props) => {\n const {datasetId,datasetVersion,data} = props ?? {};\n\n return addMetadataVersion(datasetId,datasetVersion,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AddMetadataVersionMutationResult = NonNullable<Awaited<ReturnType<typeof addMetadataVersion>>>\n export type AddMetadataVersionMutationBody = DatasetVersionMetaPostBodyBody\n export type AddMetadataVersionMutationError = ErrorType<DmError | void>\n\n /**\n * @summary Update Metadata for the Dataset version\n */\nexport const useAddMetadataVersion = <TError = ErrorType<DmError | void>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addMetadataVersion>>, TError,{datasetId: string;datasetVersion: number;data: DatasetVersionMetaPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAddMetadataVersionMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Returns the Metadata for a **Dataset Version** in JSON format.\n\n * @summary Gets the Metadata for a specific Dataset Version\n */\nexport const getMetadataVersion = (\n datasetId: string,\n datasetVersion: number,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<DatasetMetaGetResponse>(\n {url: `/dataset/${datasetId}/meta/${datasetVersion}`, method: 'GET', signal\n },\n options);\n }\n \n\nexport const getGetMetadataVersionQueryKey = (datasetId: string,\n datasetVersion: number,) => {\n return [\"data-manager-api\", `/dataset/${datasetId}/meta/${datasetVersion}`] as const;\n }\n\n \nexport const getGetMetadataVersionQueryOptions = <TData = Awaited<ReturnType<typeof getMetadataVersion>>, TError = ErrorType<void | DmError>>(datasetId: string,\n datasetVersion: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMetadataVersionQueryKey(datasetId,datasetVersion);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMetadataVersion>>> = ({ signal }) => getMetadataVersion(datasetId,datasetVersion, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(datasetId && datasetVersion), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetMetadataVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadataVersion>>>\nexport type GetMetadataVersionQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Metadata for a specific Dataset Version\n */\nexport const useGetMetadataVersion = <TData = Awaited<ReturnType<typeof getMetadataVersion>>, TError = ErrorType<void | DmError>>(\n datasetId: string,\n datasetVersion: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetMetadataVersionQueryOptions(datasetId,datasetVersion,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetMetadataVersionSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getMetadataVersion>>, TError = ErrorType<void | DmError>>(datasetId: string,\n datasetVersion: number, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMetadataVersionQueryKey(datasetId,datasetVersion);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMetadataVersion>>> = ({ signal }) => getMetadataVersion(datasetId,datasetVersion, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(datasetId && datasetVersion), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetMetadataVersionSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadataVersion>>>\nexport type GetMetadataVersionSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Metadata for a specific Dataset Version\n */\nexport const useGetMetadataVersionSuspense = <TData = Awaited<ReturnType<typeof getMetadataVersion>>, TError = ErrorType<void | DmError>>(\n datasetId: string,\n datasetVersion: number, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMetadataVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetMetadataVersionSuspenseQueryOptions(datasetId,datasetVersion,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Update default parameters or add new labels to the Metadata for the Dataset.\n\nThe parameters are provided in a list in keyword/arguments\n\nThe labels are provided in a list in JSON format. For details of the label format, see the data-manager-metadata library,\n\n * @summary Update Metadata for the Dataset\n */\nexport const addMetadata = (\n datasetId: string,\n datasetMetaPostBodyBody: DatasetMetaPostBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nif(datasetMetaPostBodyBody.meta_properties !== undefined) {\n formData.append('meta_properties', datasetMetaPostBodyBody.meta_properties)\n }\nif(datasetMetaPostBodyBody.labels !== undefined) {\n formData.append('labels', datasetMetaPostBodyBody.labels)\n }\n\n return customInstance<DatasetMetaGetResponse>(\n {url: `/dataset/${datasetId}/meta`, method: 'POST',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getAddMetadataMutationOptions = <TError = ErrorType<DmError | void>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addMetadata>>, TError,{datasetId: string;data: DatasetMetaPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof addMetadata>>, TError,{datasetId: string;data: DatasetMetaPostBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof addMetadata>>, {datasetId: string;data: DatasetMetaPostBodyBody}> = (props) => {\n const {datasetId,data} = props ?? {};\n\n return addMetadata(datasetId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AddMetadataMutationResult = NonNullable<Awaited<ReturnType<typeof addMetadata>>>\n export type AddMetadataMutationBody = DatasetMetaPostBodyBody\n export type AddMetadataMutationError = ErrorType<DmError | void>\n\n /**\n * @summary Update Metadata for the Dataset\n */\nexport const useAddMetadata = <TError = ErrorType<DmError | void>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof addMetadata>>, TError,{datasetId: string;data: DatasetMetaPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAddMetadataMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Returns the Metadata for a Dataset in JSON format.\n\n * @summary Gets the Metadata for a specific Dataset\n */\nexport const getMetadata = (\n datasetId: string,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<DatasetMetaGetResponse>(\n {url: `/dataset/${datasetId}/meta`, method: 'GET', signal\n },\n options);\n }\n \n\nexport const getGetMetadataQueryKey = (datasetId: string,) => {\n return [\"data-manager-api\", `/dataset/${datasetId}/meta`] as const;\n }\n\n \nexport const getGetMetadataQueryOptions = <TData = Awaited<ReturnType<typeof getMetadata>>, TError = ErrorType<void | DmError>>(datasetId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMetadataQueryKey(datasetId);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMetadata>>> = ({ signal }) => getMetadata(datasetId, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(datasetId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetMetadataQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadata>>>\nexport type GetMetadataQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Metadata for a specific Dataset\n */\nexport const useGetMetadata = <TData = Awaited<ReturnType<typeof getMetadata>>, TError = ErrorType<void | DmError>>(\n datasetId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetMetadataQueryOptions(datasetId,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetMetadataSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getMetadata>>, TError = ErrorType<void | DmError>>(datasetId: string, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMetadataQueryKey(datasetId);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMetadata>>> = ({ signal }) => getMetadata(datasetId, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(datasetId), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetMetadataSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMetadata>>>\nexport type GetMetadataSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Metadata for a specific Dataset\n */\nexport const useGetMetadataSuspense = <TData = Awaited<ReturnType<typeof getMetadata>>, TError = ErrorType<void | DmError>>(\n datasetId: string, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMetadata>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetMetadataSuspenseQueryOptions(datasetId,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAiCA,IAAM,qBAAqB,CAC9B,WACA,gBACA,gCACH,YAAsD;AAEjD,QAAM,WAAW,IAAI,SAAS;AACpC,MAAG,+BAA+B,oBAAoB,QAAW;AAChE,aAAS,OAAO,mBAAmB,+BAA+B,eAAe;AAAA,EACjF;AACD,MAAG,+BAA+B,gBAAgB,QAAW;AAC5D,aAAS,OAAO,eAAe,+BAA+B,WAAW;AAAA,EACzE;AAEK,SAAO;AAAA,IACP;AAAA,MAAC,KAAK,YAAY,SAAS,SAAS,cAAc;AAAA,MAAI,QAAQ;AAAA,MAC9D,SAAS,EAAC,gBAAgB,sBAAuB;AAAA,MAChD,MAAM;AAAA,IACT;AAAA,IACE;AAAA,EAAO;AACT;AAIG,IAAM,uCAAuC,CAC5B,YACmJ;AAC1K,QAAM,EAAC,UAAU,iBAAiB,SAAS,eAAc,IAAI,WAAW,CAAC;AAKpE,QAAM,aAAgK,CAAC,UAAU;AAC7K,UAAM,EAAC,WAAU,gBAAe,KAAI,IAAI,SAAS,CAAC;AAElD,WAAQ,mBAAmB,WAAU,gBAAe,MAAK,cAAc;AAAA,EACzE;AAKL,SAAQ,EAAE,YAAY,GAAG,gBAAgB;AAAC;AAStC,IAAM,wBAAwB,CACb,YACnB;AAEC,QAAM,kBAAkB,qCAAqC,OAAO;AAEpE,SAAO,YAAY,eAAe;AACpC;AAMG,IAAM,qBAAqB,CAC9B,WACA,gBACH,SAAiD,WAC7C;AAGC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK,YAAY,SAAS,SAAS,cAAc;AAAA,MAAI,QAAQ;AAAA,MAAO;AAAA,IACvE;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,gCAAgC,CAAC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AM,eAAe,2BAA2B,WAAU,OAAO;AAEjE,QAAM,QAAQ,SAAS,YAAY;AAEnC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;AAIO,IAAM,qCAAqC,CAAsF,WAAmB,YACtJ;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aAAY,uBAAuB,SAAS;AAI1E,QAAM,UAAkE,CAAC,EAAE,OAAO,MAAM,YAAY,WAAW,gBAAgB,MAAM;AAMtI,SAAQ,EAAE,UAAU,SAAS,SAAS,CAAC,CAAE,WAAY,GAAG,aAAY;AACvE;AAQO,IAAM,yBAAyB,CACrC,WAAmB,YAEoD;AAEtE,QAAM,eAAe,mCAAmC,WAAU,OAAO;AAEzE,QAAM,QAAQ,iBAAiB,YAAY;AAE3C,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;","names":[]}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.8",
2
+ "version": "2.0.0-alpha.1",
3
3
  "author": "Oliver Dudgeon",
4
4
  "name": "@squonk/data-manager-client",
5
5
  "private": false,
@@ -15,18 +15,18 @@
15
15
  "build": "tsup && node setup-entrypoints.js"
16
16
  },
17
17
  "devDependencies": {
18
- "@tanstack/react-query": "4.35.3",
19
- "@typescript-eslint/eslint-plugin": "6.11.0",
20
- "axios": "1.6.2",
21
- "eslint": "8.53.0",
22
- "eslint-plugin-prettier": "5.0.1",
18
+ "@tanstack/react-query": "5.24.1",
19
+ "@typescript-eslint/eslint-plugin": "7.1.0",
20
+ "axios": "1.6.7",
21
+ "eslint": "8.57.0",
22
+ "eslint-plugin-prettier": "5.1.3",
23
23
  "js-yaml": "4.1.0",
24
- "orval": "6.20.0",
25
- "prettier": "3.1.0",
26
- "ts-morph": "20.0.0",
24
+ "orval": "6.25.0",
25
+ "prettier": "3.2.5",
26
+ "ts-morph": "21.0.1",
27
27
  "tslib": "2.6.2",
28
- "tsup": "7.2.0",
29
- "typescript": "5.2.2"
28
+ "tsup": "8.0.2",
29
+ "typescript": "5.3.3"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@tanstack/react-query": ">=4",