Skip to content

Commit 7fb2744

Browse files
author
The Ult
committed
fix(samples): add missing UpdatePetByIdAccept and PatchPetByIdAccept exports
The http-resource and http-resource-zod sample variants referenced UpdatePetByIdAccept and PatchPetByIdAccept in their updatePetById and patchPetById signatures but were missing the corresponding type/const definitions, causing TS compilation errors. Added the type unions and const objects after ShowPetByIdAccept in: - src/api/http-resource/pets/pets.service.ts - src/api/http-resource-zod/pets/pets.service.ts - __snapshots__/api/http-resource/pets/pets.service.ts - __snapshots__/api/http-resource-zod/pets/pets.service.ts
1 parent ac5e748 commit 7fb2744

4 files changed

Lines changed: 64 additions & 0 deletions

File tree

samples/angular-app/__snapshots__/api/http-resource-zod/pets/pets.service.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,22 @@ export const ShowPetByIdAccept = {
112112
application_json: 'application/json',
113113
} as const;
114114

115+
export type UpdatePetByIdAccept =
116+
(typeof UpdatePetByIdAccept)[keyof typeof UpdatePetByIdAccept];
117+
118+
export const UpdatePetByIdAccept = {
119+
application_json: 'application/json',
120+
text_plain: 'text/plain',
121+
} as const;
122+
123+
export type PatchPetByIdAccept =
124+
(typeof PatchPetByIdAccept)[keyof typeof PatchPetByIdAccept];
125+
126+
export const PatchPetByIdAccept = {
127+
application_json: 'application/json',
128+
text_plain: 'text/plain',
129+
} as const;
130+
115131
/**
116132
* @experimental httpResource is experimental (Angular v19.2+)
117133
*/

samples/angular-app/__snapshots__/api/http-resource/pets/pets.service.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,22 @@ export const ShowPetByIdAccept = {
109109
application_json: 'application/json',
110110
} as const;
111111

112+
export type UpdatePetByIdAccept =
113+
(typeof UpdatePetByIdAccept)[keyof typeof UpdatePetByIdAccept];
114+
115+
export const UpdatePetByIdAccept = {
116+
application_json: 'application/json',
117+
text_plain: 'text/plain',
118+
} as const;
119+
120+
export type PatchPetByIdAccept =
121+
(typeof PatchPetByIdAccept)[keyof typeof PatchPetByIdAccept];
122+
123+
export const PatchPetByIdAccept = {
124+
application_json: 'application/json',
125+
text_plain: 'text/plain',
126+
} as const;
127+
112128
/**
113129
* @experimental httpResource is experimental (Angular v19.2+)
114130
*/

samples/angular-app/src/api/http-resource-zod/pets/pets.service.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,22 @@ export const ShowPetByIdAccept = {
112112
application_json: 'application/json',
113113
} as const;
114114

115+
export type UpdatePetByIdAccept =
116+
(typeof UpdatePetByIdAccept)[keyof typeof UpdatePetByIdAccept];
117+
118+
export const UpdatePetByIdAccept = {
119+
application_json: 'application/json',
120+
text_plain: 'text/plain',
121+
} as const;
122+
123+
export type PatchPetByIdAccept =
124+
(typeof PatchPetByIdAccept)[keyof typeof PatchPetByIdAccept];
125+
126+
export const PatchPetByIdAccept = {
127+
application_json: 'application/json',
128+
text_plain: 'text/plain',
129+
} as const;
130+
115131
/**
116132
* @experimental httpResource is experimental (Angular v19.2+)
117133
*/

samples/angular-app/src/api/http-resource/pets/pets.service.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,22 @@ export const ShowPetByIdAccept = {
109109
application_json: 'application/json',
110110
} as const;
111111

112+
export type UpdatePetByIdAccept =
113+
(typeof UpdatePetByIdAccept)[keyof typeof UpdatePetByIdAccept];
114+
115+
export const UpdatePetByIdAccept = {
116+
application_json: 'application/json',
117+
text_plain: 'text/plain',
118+
} as const;
119+
120+
export type PatchPetByIdAccept =
121+
(typeof PatchPetByIdAccept)[keyof typeof PatchPetByIdAccept];
122+
123+
export const PatchPetByIdAccept = {
124+
application_json: 'application/json',
125+
text_plain: 'text/plain',
126+
} as const;
127+
112128
/**
113129
* @experimental httpResource is experimental (Angular v19.2+)
114130
*/

0 commit comments

Comments
 (0)