1
1
// This file is auto-generated by @hey-api/openapi-ts
2
2
3
3
import { type Options as ClientOptions , type TDataShape , type Client , formDataBodySerializer } from '@hey-api/client-axios' ;
4
- import type { DeleteData , DeleteResponses , DeleteErrors , GetDocumentTypesData , GetDocumentTypesResponses , GetDocumentTypesErrors , GetFeedTypesData , GetFeedTypesResponses , GetFeedTypesErrors , GetDetailsData , GetDetailsResponses , GetDetailsErrors , GetByStoreData , GetByStoreResponses , GetByStoreErrors , GetPropertyValueExtractorsData , GetPropertyValueExtractorsResponses , GetPropertyValueExtractorsErrors , SaveData , SaveResponses , SaveErrors } from './types.gen' ;
4
+ import type { DeleteV2Data , DeleteV2Responses , DeleteV2Errors , DeleteData , DeleteResponses , DeleteErrors , GetDocumentTypesData , GetDocumentTypesResponses , GetDocumentTypesErrors , GetDocumentTypesV2Data , GetDocumentTypesV2Responses , GetDocumentTypesV2Errors , GetFeedGeneratorsV2Data , GetFeedGeneratorsV2Responses , GetFeedGeneratorsV2Errors , GetFeedTypesData , GetFeedTypesResponses , GetFeedTypesErrors , GetDetailsData , GetDetailsResponses , GetDetailsErrors , GetDetailsV2Data , GetDetailsV2Responses , GetDetailsV2Errors , GetByStoreData , GetByStoreResponses , GetByStoreErrors , GetByStoreV2Data , GetByStoreV2Responses , GetByStoreV2Errors , GetPropertyValueExtractorsData , GetPropertyValueExtractorsResponses , GetPropertyValueExtractorsErrors , GetPropertyValueExtractorsV2Data , GetPropertyValueExtractorsV2Responses , GetPropertyValueExtractorsV2Errors , SaveData , SaveResponses , SaveErrors , SaveV2Data , SaveV2Responses , SaveV2Errors } from './types.gen' ;
5
5
import { client as _heyApiClient } from './client.gen' ;
6
6
7
7
export type Options < TData extends TDataShape = TDataShape , ThrowOnError extends boolean = boolean > = ClientOptions < TData , ThrowOnError > & {
@@ -18,6 +18,28 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
18
18
meta ?: Record < string , unknown > ;
19
19
} ;
20
20
21
+ export const deleteV2 = < ThrowOnError extends boolean = false > ( options ?: Options < DeleteV2Data , ThrowOnError > ) => {
22
+ return ( options ?. client ?? _heyApiClient ) . post < DeleteV2Responses , DeleteV2Errors , ThrowOnError > ( {
23
+ ...formDataBodySerializer ,
24
+ responseType : 'json' ,
25
+ security : [
26
+ {
27
+ scheme : 'bearer' ,
28
+ type : 'http' ,
29
+ } ,
30
+ ] ,
31
+ url : '/umbraco/ucproductfeeds/management/api/v2/setting/delete' ,
32
+ ...options ,
33
+ headers : {
34
+ 'Content-Type' : null ,
35
+ ...options ?. headers ,
36
+ } ,
37
+ } ) ;
38
+ } ;
39
+
40
+ /**
41
+ * @deprecated
42
+ */
21
43
export const delete_ = < ThrowOnError extends boolean = false > ( options ?: Options < DeleteData , ThrowOnError > ) => {
22
44
return ( options ?. client ?? _heyApiClient ) . post < DeleteResponses , DeleteErrors , ThrowOnError > ( {
23
45
...formDataBodySerializer ,
@@ -37,6 +59,9 @@ export const delete_ = <ThrowOnError extends boolean = false>(options?: Options<
37
59
} ) ;
38
60
} ;
39
61
62
+ /**
63
+ * @deprecated
64
+ */
40
65
export const getDocumentTypes = < ThrowOnError extends boolean = false > ( options ?: Options < GetDocumentTypesData , ThrowOnError > ) => {
41
66
return ( options ?. client ?? _heyApiClient ) . get < GetDocumentTypesResponses , GetDocumentTypesErrors , ThrowOnError > ( {
42
67
security : [
@@ -50,6 +75,36 @@ export const getDocumentTypes = <ThrowOnError extends boolean = false>(options?:
50
75
} ) ;
51
76
} ;
52
77
78
+ export const getDocumentTypesV2 = < ThrowOnError extends boolean = false > ( options ?: Options < GetDocumentTypesV2Data , ThrowOnError > ) => {
79
+ return ( options ?. client ?? _heyApiClient ) . get < GetDocumentTypesV2Responses , GetDocumentTypesV2Errors , ThrowOnError > ( {
80
+ security : [
81
+ {
82
+ scheme : 'bearer' ,
83
+ type : 'http' ,
84
+ } ,
85
+ ] ,
86
+ url : '/umbraco/ucproductfeeds/management/api/v2/setting/documenttypes' ,
87
+ ...options ,
88
+ } ) ;
89
+ } ;
90
+
91
+ export const getFeedGeneratorsV2 = < ThrowOnError extends boolean = false > ( options ?: Options < GetFeedGeneratorsV2Data , ThrowOnError > ) => {
92
+ return ( options ?. client ?? _heyApiClient ) . get < GetFeedGeneratorsV2Responses , GetFeedGeneratorsV2Errors , ThrowOnError > ( {
93
+ responseType : 'json' ,
94
+ security : [
95
+ {
96
+ scheme : 'bearer' ,
97
+ type : 'http' ,
98
+ } ,
99
+ ] ,
100
+ url : '/umbraco/ucproductfeeds/management/api/v2/setting/feedgenerators' ,
101
+ ...options ,
102
+ } ) ;
103
+ } ;
104
+
105
+ /**
106
+ * @deprecated
107
+ */
53
108
export const getFeedTypes = < ThrowOnError extends boolean = false > ( options ?: Options < GetFeedTypesData , ThrowOnError > ) => {
54
109
return ( options ?. client ?? _heyApiClient ) . get < GetFeedTypesResponses , GetFeedTypesErrors , ThrowOnError > ( {
55
110
responseType : 'json' ,
@@ -64,6 +119,9 @@ export const getFeedTypes = <ThrowOnError extends boolean = false>(options?: Opt
64
119
} ) ;
65
120
} ;
66
121
122
+ /**
123
+ * @deprecated
124
+ */
67
125
export const getDetails = < ThrowOnError extends boolean = false > ( options : Options < GetDetailsData , ThrowOnError > ) => {
68
126
return ( options . client ?? _heyApiClient ) . get < GetDetailsResponses , GetDetailsErrors , ThrowOnError > ( {
69
127
responseType : 'json' ,
@@ -78,6 +136,23 @@ export const getDetails = <ThrowOnError extends boolean = false>(options: Option
78
136
} ) ;
79
137
} ;
80
138
139
+ export const getDetailsV2 = < ThrowOnError extends boolean = false > ( options : Options < GetDetailsV2Data , ThrowOnError > ) => {
140
+ return ( options . client ?? _heyApiClient ) . get < GetDetailsV2Responses , GetDetailsV2Errors , ThrowOnError > ( {
141
+ responseType : 'json' ,
142
+ security : [
143
+ {
144
+ scheme : 'bearer' ,
145
+ type : 'http' ,
146
+ } ,
147
+ ] ,
148
+ url : '/umbraco/ucproductfeeds/management/api/v2/setting/get/{id}' ,
149
+ ...options ,
150
+ } ) ;
151
+ } ;
152
+
153
+ /**
154
+ * @deprecated
155
+ */
81
156
export const getByStore = < ThrowOnError extends boolean = false > ( options : Options < GetByStoreData , ThrowOnError > ) => {
82
157
return ( options . client ?? _heyApiClient ) . get < GetByStoreResponses , GetByStoreErrors , ThrowOnError > ( {
83
158
responseType : 'json' ,
@@ -92,6 +167,23 @@ export const getByStore = <ThrowOnError extends boolean = false>(options: Option
92
167
} ) ;
93
168
} ;
94
169
170
+ export const getByStoreV2 = < ThrowOnError extends boolean = false > ( options : Options < GetByStoreV2Data , ThrowOnError > ) => {
171
+ return ( options . client ?? _heyApiClient ) . get < GetByStoreV2Responses , GetByStoreV2Errors , ThrowOnError > ( {
172
+ responseType : 'json' ,
173
+ security : [
174
+ {
175
+ scheme : 'bearer' ,
176
+ type : 'http' ,
177
+ } ,
178
+ ] ,
179
+ url : '/umbraco/ucproductfeeds/management/api/v2/setting/getbystore' ,
180
+ ...options ,
181
+ } ) ;
182
+ } ;
183
+
184
+ /**
185
+ * @deprecated
186
+ */
95
187
export const getPropertyValueExtractors = < ThrowOnError extends boolean = false > ( options ?: Options < GetPropertyValueExtractorsData , ThrowOnError > ) => {
96
188
return ( options ?. client ?? _heyApiClient ) . get < GetPropertyValueExtractorsResponses , GetPropertyValueExtractorsErrors , ThrowOnError > ( {
97
189
responseType : 'json' ,
@@ -106,6 +198,23 @@ export const getPropertyValueExtractors = <ThrowOnError extends boolean = false>
106
198
} ) ;
107
199
} ;
108
200
201
+ export const getPropertyValueExtractorsV2 = < ThrowOnError extends boolean = false > ( options ?: Options < GetPropertyValueExtractorsV2Data , ThrowOnError > ) => {
202
+ return ( options ?. client ?? _heyApiClient ) . get < GetPropertyValueExtractorsV2Responses , GetPropertyValueExtractorsV2Errors , ThrowOnError > ( {
203
+ responseType : 'json' ,
204
+ security : [
205
+ {
206
+ scheme : 'bearer' ,
207
+ type : 'http' ,
208
+ } ,
209
+ ] ,
210
+ url : '/umbraco/ucproductfeeds/management/api/v2/setting/propertyvalueextractors' ,
211
+ ...options ,
212
+ } ) ;
213
+ } ;
214
+
215
+ /**
216
+ * @deprecated
217
+ */
109
218
export const save = < ThrowOnError extends boolean = false > ( options ?: Options < SaveData , ThrowOnError > ) => {
110
219
return ( options ?. client ?? _heyApiClient ) . post < SaveResponses , SaveErrors , ThrowOnError > ( {
111
220
responseType : 'json' ,
@@ -122,4 +231,22 @@ export const save = <ThrowOnError extends boolean = false>(options?: Options<Sav
122
231
...options ?. headers ,
123
232
} ,
124
233
} ) ;
234
+ } ;
235
+
236
+ export const saveV2 = < ThrowOnError extends boolean = false > ( options ?: Options < SaveV2Data , ThrowOnError > ) => {
237
+ return ( options ?. client ?? _heyApiClient ) . post < SaveV2Responses , SaveV2Errors , ThrowOnError > ( {
238
+ responseType : 'json' ,
239
+ security : [
240
+ {
241
+ scheme : 'bearer' ,
242
+ type : 'http' ,
243
+ } ,
244
+ ] ,
245
+ url : '/umbraco/ucproductfeeds/management/api/v2/setting/save' ,
246
+ ...options ,
247
+ headers : {
248
+ 'Content-Type' : 'application/json' ,
249
+ ...options ?. headers ,
250
+ } ,
251
+ } ) ;
125
252
} ;
0 commit comments