Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevarifin14 committed Jan 13, 2025
1 parent e7dd4e4 commit c2ad11a
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 64 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@underdog-protocol/types",
"version": "1.1.103",
"version": "1.2.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
4 changes: 0 additions & 4 deletions src/api/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
transactionSchema,
nftSchema,
projectSchema,
requestSchema,
memberSchema,
orgSchema,
webhookSchema,
Expand Down Expand Up @@ -43,9 +42,6 @@ export const projectPaginatedResponseSchema =

export const nftPaginatedResponseSchema = createPaginatedResponseSchema<typeof nftSchema>(nftSchema);

export const requestPaginatedResponseSchema =
createPaginatedResponseSchema<typeof requestSchema>(requestSchema);

export const transactionPaginatedResponseSchema =
createPaginatedResponseSchema<typeof transactionSchema>(transactionSchema);

Expand Down
1 change: 0 additions & 1 deletion src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export * from "./metadata";
export * from "./nft";
export * from "./collection";
export * from "./transaction";
export * from "./request";
export * from "./org";
export * from "./wallet";
export * from "./webhook";
Expand Down
26 changes: 0 additions & 26 deletions src/models/request.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/validations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from "./project";
export * from "./nft";
export * from "./sft";
export * from "./collection";
export * from "./request";
export * from "./transaction";
export * from "./org";
export * from "./webhook";
Expand Down
27 changes: 0 additions & 27 deletions src/validations/request.ts

This file was deleted.

6 changes: 2 additions & 4 deletions src/validations/webhook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { z } from "zod";

import { paginatedQuerySchema, requestPaginatedResponseSchema, webhookPaginatedResponseSchema } from "../api";
import { paginatedQuerySchema, webhookPaginatedResponseSchema } from "../api";
import { transactionTypesEnumSchema, webhookSchema } from "../models";

export const createWebhookRequestSchema = z.object({
Expand Down Expand Up @@ -30,9 +30,7 @@ export const getWebhookRequestSchema = z.object({
});
export type GetWebhookRequest = z.infer<typeof getWebhookRequestSchema>;

export const getWebhookResponseSchema = webhookSchema.merge(
z.object({ requests: requestPaginatedResponseSchema })
);
export const getWebhookResponseSchema = webhookSchema;
export type GetWebhookResponse = z.infer<typeof getWebhookResponseSchema>;

export const deleteWebhookRequestSchema = z.object({
Expand Down

0 comments on commit c2ad11a

Please sign in to comment.