Skip to content

Commit 709b617

Browse files
authored
Merge pull request #744 from objectstack-ai/copilot/fix-all-ci-errors
2 parents a27e0b5 + fe8c849 commit 709b617

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/spec/src/api/feed-api.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
RemoveReactionResponseSchema,
1717
SubscribeRequestSchema,
1818
SubscribeResponseSchema,
19-
UnsubscribeRequestSchema,
19+
FeedUnsubscribeRequestSchema,
2020
UnsubscribeResponseSchema,
2121
FeedApiErrorCode,
2222
FeedApiContracts,
@@ -482,9 +482,9 @@ describe('SubscribeResponseSchema', () => {
482482
});
483483
});
484484

485-
describe('UnsubscribeRequestSchema', () => {
485+
describe('FeedUnsubscribeRequestSchema', () => {
486486
it('should accept valid unsubscribe params', () => {
487-
const req = UnsubscribeRequestSchema.parse({
487+
const req = FeedUnsubscribeRequestSchema.parse({
488488
object: 'account',
489489
recordId: 'rec_123',
490490
});

packages/spec/src/api/feed-api.zod.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ export type SubscribeResponse = z.infer<typeof SubscribeResponseSchema>;
255255
*
256256
* @example DELETE /api/data/account/rec_123/subscribe
257257
*/
258-
export const UnsubscribeRequestSchema = FeedPathParamsSchema;
259-
export type UnsubscribeRequest = z.infer<typeof UnsubscribeRequestSchema>;
258+
export const FeedUnsubscribeRequestSchema = FeedPathParamsSchema;
259+
export type FeedUnsubscribeRequest = z.infer<typeof FeedUnsubscribeRequestSchema>;
260260

261261
/**
262262
* Response after unsubscribing.
@@ -344,7 +344,7 @@ export const FeedApiContracts = {
344344
unsubscribe: {
345345
method: 'DELETE' as const,
346346
path: '/api/data/:object/:recordId/subscribe',
347-
input: UnsubscribeRequestSchema,
347+
input: FeedUnsubscribeRequestSchema,
348348
output: UnsubscribeResponseSchema,
349349
},
350350
};

0 commit comments

Comments
 (0)