@merkl/api 0.10.219 → 0.10.220
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 -3
- package/dist/src/index.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -1
- package/dist/src/modules/v4/protocol/protocol.repository.js +1 -1
- package/dist/src/modules/v4/router.d.ts +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -767,7 +767,7 @@ declare const eden: {
|
|
767
767
|
get: (options: {
|
768
768
|
headers?: Record<string, unknown> | undefined;
|
769
769
|
query: {
|
770
|
-
|
770
|
+
id?: string | undefined;
|
771
771
|
items?: number | undefined;
|
772
772
|
tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
|
773
773
|
page?: number | undefined;
|
@@ -3593,7 +3593,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3593
3593
|
body: unknown;
|
3594
3594
|
params: {};
|
3595
3595
|
query: {
|
3596
|
-
|
3596
|
+
id?: string | undefined;
|
3597
3597
|
items?: number | undefined;
|
3598
3598
|
tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
|
3599
3599
|
page?: number | undefined;
|
@@ -6951,7 +6951,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
6951
6951
|
get: (options: {
|
6952
6952
|
headers?: Record<string, unknown> | undefined;
|
6953
6953
|
query: {
|
6954
|
-
|
6954
|
+
id?: string | undefined;
|
6955
6955
|
items?: number | undefined;
|
6956
6956
|
tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
|
6957
6957
|
page?: number | undefined;
|
package/dist/src/index.d.ts
CHANGED
@@ -854,7 +854,7 @@ declare const app: Elysia<"", false, {
|
|
854
854
|
body: unknown;
|
855
855
|
params: {};
|
856
856
|
query: {
|
857
|
-
|
857
|
+
id?: string | undefined;
|
858
858
|
items?: number | undefined;
|
859
859
|
tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
|
860
860
|
page?: number | undefined;
|
@@ -18,7 +18,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
|
|
18
18
|
body: unknown;
|
19
19
|
params: {};
|
20
20
|
query: {
|
21
|
-
|
21
|
+
id?: string | undefined;
|
22
22
|
items?: number | undefined;
|
23
23
|
tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
|
24
24
|
page?: number | undefined;
|
@@ -22,7 +22,7 @@ export declare const ProtocolResourceDto: import("@sinclair/typebox").TObject<{
|
|
22
22
|
url: import("@sinclair/typebox").TString;
|
23
23
|
}>;
|
24
24
|
export declare const GetProtocolsQueryDto: import("@sinclair/typebox").TObject<{
|
25
|
-
|
25
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
26
26
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
|
27
27
|
AMM: "AMM";
|
28
28
|
ALM: "ALM";
|
@@ -71,7 +71,7 @@ export const ProtocolResourceDto = t.Object({
|
|
71
71
|
url: t.String(),
|
72
72
|
});
|
73
73
|
export const GetProtocolsQueryDto = t.Object({
|
74
|
-
|
74
|
+
id: t.Optional(t.String({ description: "Filter results by name. Useful for searching a protocol to verify its integration" })),
|
75
75
|
tags: t.Optional(t.Array(t.Enum(ProtocolTag, { description: "Filter by protocol tag" }))),
|
76
76
|
page: t.Optional(t.Numeric({ description: "0-indexed page number", default: 0 })),
|
77
77
|
items: t.Optional(t.Numeric({ description: "Number of items returned by page", default: 20 })), // items per page
|
@@ -22,7 +22,7 @@ export class ProtocolRepository {
|
|
22
22
|
static #transformQueryToPrismaFilters(query) {
|
23
23
|
return {
|
24
24
|
where: {
|
25
|
-
|
25
|
+
id: query.id ? { contains: query.id, mode: "insensitive" } : undefined,
|
26
26
|
tags: query.tags ? { hasEvery: query.tags } : undefined,
|
27
27
|
// id: typeof query.id === "string" ? query.id : !!query.id ? { in: query.id } : undefined,
|
28
28
|
},
|
@@ -732,7 +732,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
732
732
|
body: unknown;
|
733
733
|
params: {};
|
734
734
|
query: {
|
735
|
-
|
735
|
+
id?: string | undefined;
|
736
736
|
items?: number | undefined;
|
737
737
|
tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
|
738
738
|
page?: number | undefined;
|