@@ -34,7 +34,7 @@ import type {
3434
3535export const getStreams = ( ) => [
3636 http . get (
37- '*/v4beta /monitor/streams' ,
37+ '*/v4 /monitor/streams' ,
3838 async ( {
3939 request,
4040 } ) : Promise <
@@ -53,7 +53,7 @@ export const getStreams = () => [
5353 }
5454 ) ,
5555 http . get (
56- '*/v4beta /monitor/streams/:id' ,
56+ '*/v4 /monitor/streams/:id' ,
5757 async ( { params } ) : Promise < StrictResponse < APIErrorResponse | Stream > > => {
5858 const id = Number ( params . id ) ;
5959 const stream = await mswDB . get ( 'streams' , id ) ;
@@ -69,7 +69,7 @@ export const getStreams = () => [
6969
7070export const createStreams = ( mockState : MockState ) => [
7171 http . post (
72- '*/v4beta /monitor/streams' ,
72+ '*/v4 /monitor/streams' ,
7373 async ( { request } ) : Promise < StrictResponse < APIErrorResponse | Stream > > => {
7474 const payload = await request . clone ( ) . json ( ) ;
7575 const destinations = await mswDB . getAll ( 'destinations' ) ;
@@ -94,7 +94,7 @@ export const createStreams = (mockState: MockState) => [
9494 id : stream . id ,
9595 label : stream . label ,
9696 type : 'stream' ,
97- url : `/v4beta /delivery/streams` ,
97+ url : `/v4 /delivery/streams` ,
9898 } ,
9999 } ,
100100 mockState,
@@ -108,7 +108,7 @@ export const createStreams = (mockState: MockState) => [
108108
109109export const updateStream = ( mockState : MockState ) => [
110110 http . put (
111- '*/v4beta /monitor/streams/:id' ,
111+ '*/v4 /monitor/streams/:id' ,
112112 async ( {
113113 params,
114114 request,
@@ -140,7 +140,7 @@ export const updateStream = (mockState: MockState) => [
140140 id : stream . id ,
141141 label : stream . label ,
142142 type : 'stream' ,
143- url : `/v4beta /monitor/streams/${ stream . id } ` ,
143+ url : `/v4 /monitor/streams/${ stream . id } ` ,
144144 } ,
145145 } ,
146146 mockState,
@@ -154,7 +154,7 @@ export const updateStream = (mockState: MockState) => [
154154
155155export const deleteStream = ( mockState : MockState ) => [
156156 http . delete (
157- '*/v4beta /monitor/streams/:id' ,
157+ '*/v4 /monitor/streams/:id' ,
158158 async ( { params } ) : Promise < StrictResponse < APIErrorResponse | { } > > => {
159159 const id = Number ( params . id ) ;
160160 const stream = await mswDB . get ( 'streams' , id ) ;
@@ -172,7 +172,7 @@ export const deleteStream = (mockState: MockState) => [
172172 id : stream . id ,
173173 label : stream . label ,
174174 type : 'domain' ,
175- url : `/v4beta /monitor/streams/${ stream . id } ` ,
175+ url : `/v4 /monitor/streams/${ stream . id } ` ,
176176 } ,
177177 } ,
178178 mockState,
@@ -186,7 +186,7 @@ export const deleteStream = (mockState: MockState) => [
186186
187187export const getDestinations = ( ) => [
188188 http . get (
189- '*/v4beta /monitor/streams/destinations' ,
189+ '*/v4 /monitor/streams/destinations' ,
190190 async ( {
191191 request,
192192 } ) : Promise <
@@ -205,7 +205,7 @@ export const getDestinations = () => [
205205 }
206206 ) ,
207207 http . get (
208- '*/v4beta /monitor/streams/destinations/:id' ,
208+ '*/v4 /monitor/streams/destinations/:id' ,
209209 async ( {
210210 params,
211211 } ) : Promise < StrictResponse < APIErrorResponse | Destination > > => {
@@ -223,7 +223,7 @@ export const getDestinations = () => [
223223
224224export const createDestinations = ( mockState : MockState ) => [
225225 http . post (
226- '*/v4beta /monitor/streams/destinations' ,
226+ '*/v4 /monitor/streams/destinations' ,
227227 async ( {
228228 request,
229229 } ) : Promise < StrictResponse < APIErrorResponse | Destination > > => {
@@ -278,7 +278,7 @@ export const createDestinations = (mockState: MockState) => [
278278 id : destination . id ,
279279 label : destination . label ,
280280 type : 'destination' ,
281- url : `/v4beta /delivery/streams/destinations` ,
281+ url : `/v4 /delivery/streams/destinations` ,
282282 } ,
283283 } ,
284284 mockState,
@@ -292,7 +292,7 @@ export const createDestinations = (mockState: MockState) => [
292292
293293export const updateDestination = ( mockState : MockState ) => [
294294 http . put (
295- '*/v4beta /monitor/streams/destinations/:id' ,
295+ '*/v4 /monitor/streams/destinations/:id' ,
296296 async ( {
297297 params,
298298 request,
@@ -322,7 +322,7 @@ export const updateDestination = (mockState: MockState) => [
322322 id : destination . id ,
323323 label : destination . label ,
324324 type : 'stream' ,
325- url : `/v4beta /monitor/streams/${ destination . id } ` ,
325+ url : `/v4 /monitor/streams/${ destination . id } ` ,
326326 } ,
327327 } ,
328328 mockState,
@@ -336,7 +336,7 @@ export const updateDestination = (mockState: MockState) => [
336336
337337export const deleteDestination = ( mockState : MockState ) => [
338338 http . delete (
339- '*/v4beta /monitor/streams/destinations/:id' ,
339+ '*/v4 /monitor/streams/destinations/:id' ,
340340 async ( { params } ) : Promise < StrictResponse < APIErrorResponse | { } > > => {
341341 const id = Number ( params . id ) ;
342342 const destination = await mswDB . get ( 'destinations' , id ) ;
@@ -367,7 +367,7 @@ export const deleteDestination = (mockState: MockState) => [
367367 id : destination . id ,
368368 label : destination . label ,
369369 type : 'domain' ,
370- url : `/v4beta /monitor/streams/${ destination . id } ` ,
370+ url : `/v4 /monitor/streams/${ destination . id } ` ,
371371 } ,
372372 } ,
373373 mockState,
@@ -381,7 +381,7 @@ export const deleteDestination = (mockState: MockState) => [
381381
382382export const verifyDestination = ( ) => [
383383 http . post (
384- '*/v4beta /monitor/streams/destinations/verify' ,
384+ '*/v4 /monitor/streams/destinations/verify' ,
385385 async ( ) : Promise < StrictResponse < APIErrorResponse | { } > > => {
386386 return makeResponse ( { } , 200 ) ;
387387 }
0 commit comments