@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.
- package/dist/src/eden/index.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +1 -0
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -0
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
- package/dist/src/modules/v4/protocol/protocol.repository.js +1 -0
- package/dist/src/modules/v4/router.d.ts +1 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -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;
|
package/dist/src/index.d.ts
CHANGED
@@ -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
|
{
|