@merkl/api 0.10.255 → 0.10.256

Sign up to get free protection for your applications and to get access to all the features.
@@ -812,6 +812,7 @@ declare const eden: {
812
812
  get: (options: {
813
813
  headers?: Record<string, unknown> | undefined;
814
814
  query: {
815
+ name?: string | undefined;
815
816
  id?: string | undefined;
816
817
  items?: number | undefined;
817
818
  tags?: string[] | undefined;
@@ -3689,6 +3690,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3689
3690
  body: unknown;
3690
3691
  params: {};
3691
3692
  query: {
3693
+ name?: string | undefined;
3692
3694
  id?: string | undefined;
3693
3695
  items?: number | undefined;
3694
3696
  tags?: string[] | undefined;
@@ -7093,6 +7095,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7093
7095
  get: (options: {
7094
7096
  headers?: Record<string, unknown> | undefined;
7095
7097
  query: {
7098
+ name?: string | undefined;
7096
7099
  id?: string | undefined;
7097
7100
  items?: number | undefined;
7098
7101
  tags?: string[] | undefined;
@@ -906,6 +906,7 @@ declare const app: Elysia<"", false, {
906
906
  body: unknown;
907
907
  params: {};
908
908
  query: {
909
+ name?: string | undefined;
909
910
  id?: string | undefined;
910
911
  items?: number | undefined;
911
912
  tags?: string[] | undefined;
@@ -18,6 +18,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
18
18
  body: unknown;
19
19
  params: {};
20
20
  query: {
21
+ name?: string | undefined;
21
22
  id?: string | undefined;
22
23
  items?: number | undefined;
23
24
  tags?: string[] | undefined;
@@ -17,6 +17,7 @@ export declare const ProtocolResourceDto: import("@sinclair/typebox").TObject<{
17
17
  }>;
18
18
  export declare const GetProtocolsQueryDto: import("@sinclair/typebox").TObject<{
19
19
  id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
21
  tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
21
22
  opportunityTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
23
  page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -79,6 +79,7 @@ export const ProtocolResourceDto = t.Object({
79
79
  });
80
80
  export const GetProtocolsQueryDto = t.Object({
81
81
  id: t.Optional(t.String({ description: "Filter results by name. Useful for searching a protocol to verify its integration" })),
82
+ name: t.Optional(t.String({ description: "Search protocols by name" })),
82
83
  tags: t.Optional(t.Array(t.String())),
83
84
  opportunityTag: t.Optional(t.String({ description: "Filter by underlying opportunities' tag" })),
84
85
  page: t.Optional(t.Numeric({ description: "0-indexed page number", default: 0 })),
@@ -24,6 +24,7 @@ export class ProtocolRepository {
24
24
  where: {
25
25
  id: query.id ? { contains: query.id, mode: "insensitive" } : undefined,
26
26
  tags: query.tags ? { hasEvery: query.tags } : undefined,
27
+ name: query.name ? { contains: query.name, mode: "insensitive" } : undefined,
27
28
  OR: query.opportunityTag // The opportunity tag specified can be either at the protocol level or the opportunity level
28
29
  ? [
29
30
  {
@@ -784,6 +784,7 @@ export declare const v4: Elysia<"/v4", false, {
784
784
  body: unknown;
785
785
  params: {};
786
786
  query: {
787
+ name?: string | undefined;
787
788
  id?: string | undefined;
788
789
  items?: number | undefined;
789
790
  tags?: string[] | undefined;