@merkl/api 0.21.25 → 0.21.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/eden/index.d.ts +3 -3
- package/dist/src/index.d.ts +1 -1
- package/dist/src/modules/v4/router.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.js +5 -3
- package/dist/src/modules/v4/user/user.model.d.ts +1 -1
- package/dist/src/modules/v4/user/user.model.js +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -3446,9 +3446,9 @@ declare const eden: {
|
|
3446
3446
|
headers?: Record<string, unknown> | undefined;
|
3447
3447
|
query: {
|
3448
3448
|
test?: boolean | undefined;
|
3449
|
+
chainIds?: string[] | undefined;
|
3449
3450
|
reloadChainId?: number | undefined;
|
3450
3451
|
claimableOnly?: boolean | undefined;
|
3451
|
-
chainIds: string[];
|
3452
3452
|
};
|
3453
3453
|
fetch?: RequestInit | undefined;
|
3454
3454
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
@@ -9784,9 +9784,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9784
9784
|
};
|
9785
9785
|
query: {
|
9786
9786
|
test?: boolean | undefined;
|
9787
|
+
chainIds?: string[] | undefined;
|
9787
9788
|
reloadChainId?: number | undefined;
|
9788
9789
|
claimableOnly?: boolean | undefined;
|
9789
|
-
chainIds: string[];
|
9790
9790
|
};
|
9791
9791
|
headers: unknown;
|
9792
9792
|
response: {
|
@@ -15882,9 +15882,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15882
15882
|
headers?: Record<string, unknown> | undefined;
|
15883
15883
|
query: {
|
15884
15884
|
test?: boolean | undefined;
|
15885
|
+
chainIds?: string[] | undefined;
|
15885
15886
|
reloadChainId?: number | undefined;
|
15886
15887
|
claimableOnly?: boolean | undefined;
|
15887
|
-
chainIds: string[];
|
15888
15888
|
};
|
15889
15889
|
fetch?: RequestInit | undefined;
|
15890
15890
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
package/dist/src/index.d.ts
CHANGED
@@ -4207,9 +4207,9 @@ declare const app: Elysia<"", false, {
|
|
4207
4207
|
};
|
4208
4208
|
query: {
|
4209
4209
|
test?: boolean | undefined;
|
4210
|
+
chainIds?: string[] | undefined;
|
4210
4211
|
reloadChainId?: number | undefined;
|
4211
4212
|
claimableOnly?: boolean | undefined;
|
4212
|
-
chainIds: string[];
|
4213
4213
|
};
|
4214
4214
|
headers: unknown;
|
4215
4215
|
response: {
|
@@ -4077,9 +4077,9 @@ export declare const v4: Elysia<"/v4", false, {
|
|
4077
4077
|
};
|
4078
4078
|
query: {
|
4079
4079
|
test?: boolean | undefined;
|
4080
|
+
chainIds?: string[] | undefined;
|
4080
4081
|
reloadChainId?: number | undefined;
|
4081
4082
|
claimableOnly?: boolean | undefined;
|
4082
|
-
chainIds: string[];
|
4083
4083
|
};
|
4084
4084
|
headers: unknown;
|
4085
4085
|
response: {
|
@@ -213,9 +213,9 @@ export declare const UserController: Elysia<"/users", false, {
|
|
213
213
|
};
|
214
214
|
query: {
|
215
215
|
test?: boolean | undefined;
|
216
|
+
chainIds?: string[] | undefined;
|
216
217
|
reloadChainId?: number | undefined;
|
217
218
|
claimableOnly?: boolean | undefined;
|
218
|
-
chainIds: string[];
|
219
219
|
};
|
220
220
|
headers: unknown;
|
221
221
|
response: {
|
@@ -47,9 +47,11 @@ export const UserController = new Elysia({ prefix: "/users", detail: { tags: ["U
|
|
47
47
|
params.address = throwOnInvalidRequiredAddress(params.address);
|
48
48
|
if (!!query.reloadChainId)
|
49
49
|
throwOnUnsupportedChainId(query.reloadChainId);
|
50
|
-
query.chainIds = query
|
51
|
-
|
52
|
-
|
50
|
+
query.chainIds = query?.chainIds?.flatMap(x => x.split(","));
|
51
|
+
if (!!query.chainIds?.length) {
|
52
|
+
for (const chainId of query.chainIds) {
|
53
|
+
throwOnUnsupportedChainId(Number(chainId));
|
54
|
+
}
|
53
55
|
}
|
54
56
|
},
|
55
57
|
})
|
@@ -44,7 +44,7 @@ export declare const UserUniqueDto: import("@sinclair/typebox").TObject<{
|
|
44
44
|
address: import("@sinclair/typebox").TString;
|
45
45
|
}>;
|
46
46
|
export declare const OptionalChainIdDto: import("@sinclair/typebox").TObject<{
|
47
|
-
chainIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString
|
47
|
+
chainIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
48
48
|
reloadChainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
49
49
|
test: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
50
50
|
claimableOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
@@ -39,7 +39,7 @@ export const UserUniqueDto = t.Object({
|
|
39
39
|
address: t.String(),
|
40
40
|
});
|
41
41
|
export const OptionalChainIdDto = t.Object({
|
42
|
-
chainIds: t.Array(t.String()),
|
42
|
+
chainIds: t.Optional(t.Array(t.String())),
|
43
43
|
reloadChainId: t.Optional(t.Numeric()),
|
44
44
|
test: t.Optional(t.Boolean({ description: "Include test token rewards" })),
|
45
45
|
claimableOnly: t.Optional(t.Boolean({ description: "Include only claimable rewards (to avoid transferring zero amounts)" })),
|