@merkl/api 0.10.206 → 0.10.208

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/database/api/.generated/edge.js +5 -4
  2. package/dist/database/api/.generated/index-browser.js +2 -1
  3. package/dist/database/api/.generated/index.d.ts +2 -1
  4. package/dist/database/api/.generated/index.js +5 -4
  5. package/dist/database/api/.generated/package.json +1 -1
  6. package/dist/database/api/.generated/schema.prisma +1 -0
  7. package/dist/database/api/.generated/wasm.js +2 -1
  8. package/dist/src/eden/index.d.ts +8672 -2
  9. package/dist/src/index.d.ts +3358 -1
  10. package/dist/src/index.js +4 -4
  11. package/dist/src/modules/v4/campaign/campaign.model.js +2 -2
  12. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
  13. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
  14. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +31 -1
  15. package/dist/src/modules/v4/protocol/protocol.controller.js +8 -1
  16. package/dist/src/modules/v4/protocol/protocol.model.d.ts +11 -0
  17. package/dist/src/modules/v4/protocol/protocol.model.js +8 -0
  18. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -2
  19. package/dist/src/modules/v4/protocol/protocol.repository.js +12 -3
  20. package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -1
  21. package/dist/src/modules/v4/protocol/protocol.service.js +3 -0
  22. package/dist/src/modules/v4/router.d.ts +33 -3
  23. package/dist/src/routes/v2/merkl.d.ts +4 -4
  24. package/dist/src/routes/v2/router.d.ts +4 -4
  25. package/dist/src/routes/v3/blacklist.d.ts +38 -2
  26. package/dist/src/routes/v3/campaigns.d.ts +41 -2
  27. package/dist/src/routes/v3/campaignsInfo.d.ts +40 -2
  28. package/dist/src/routes/v3/claims.d.ts +1 -1
  29. package/dist/src/routes/v3/multiChainPositions.d.ts +39 -2
  30. package/dist/src/routes/v3/opportunity.d.ts +42 -2
  31. package/dist/src/routes/v3/positions.d.ts +38 -2
  32. package/dist/src/routes/v3/rewards.d.ts +66 -2
  33. package/dist/src/routes/v3/router.d.ts +773 -1
  34. package/dist/src/routes/v3/updates.d.ts +42 -2
  35. package/dist/src/routes/v3/userRewards.d.ts +56 -2
  36. package/dist/tsconfig.package.tsbuildinfo +1 -1
  37. package/package.json +1 -1
  38. package/dist/src/utils/rateLimit.d.ts +0 -63
  39. package/dist/src/utils/rateLimit.js +0 -13
@@ -1,4 +1,4 @@
1
- import type { App } from "../../index";
1
+ import type Elysia from "elysia";
2
2
  export type UpdatesT = {
3
3
  [chainId: number]: {
4
4
  [campaignId: string]: number;
@@ -6,5 +6,45 @@ export type UpdatesT = {
6
6
  };
7
7
  export declare const query: import("@sinclair/typebox").TObject<{}>;
8
8
  export declare const response: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber>>;
9
- declare const _default: (app: App) => any;
9
+ declare const _default: (app: Elysia) => Elysia<"", false, {
10
+ decorator: {};
11
+ store: {};
12
+ derive: {};
13
+ resolve: {};
14
+ }, {
15
+ type: {};
16
+ error: {};
17
+ }, {
18
+ schema: {};
19
+ macro: {};
20
+ macroFn: {};
21
+ }, {
22
+ updates: {
23
+ get: {
24
+ body: unknown;
25
+ params: {};
26
+ query: {};
27
+ headers: unknown;
28
+ response: {
29
+ 200: {
30
+ [x: number]: {
31
+ [campaignId: string]: number;
32
+ };
33
+ };
34
+ readonly 400: {
35
+ message?: string | undefined;
36
+ error: string;
37
+ };
38
+ };
39
+ };
40
+ };
41
+ }, {
42
+ derive: {};
43
+ resolve: {};
44
+ schema: {};
45
+ }, {
46
+ derive: {};
47
+ resolve: {};
48
+ schema: {};
49
+ }>;
10
50
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { App } from "../../index";
1
+ import type Elysia from "elysia";
2
2
  export declare const query: import("@sinclair/typebox").TObject<{
3
3
  chainId: import("@sinclair/typebox").TUnion<import("elysia").TSchema[]>;
4
4
  mainParameter: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -6,5 +6,59 @@ export declare const query: import("@sinclair/typebox").TObject<{
6
6
  rewardToken: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
7
  user: import("@sinclair/typebox").TString;
8
8
  }>;
9
- declare const _default: (app: App) => any;
9
+ declare const _default: (app: Elysia) => Elysia<"", false, {
10
+ decorator: {};
11
+ store: {};
12
+ derive: {};
13
+ resolve: {};
14
+ }, {
15
+ type: {};
16
+ error: {};
17
+ }, {
18
+ schema: {};
19
+ macro: {};
20
+ macroFn: {};
21
+ }, {
22
+ userRewards: {
23
+ get: {
24
+ body: unknown;
25
+ params: {};
26
+ query: {
27
+ mainParameter?: string | undefined;
28
+ rewardToken?: string | undefined;
29
+ proof?: string | undefined;
30
+ chainId: never;
31
+ user: string;
32
+ };
33
+ headers: unknown;
34
+ response: {
35
+ 200: {
36
+ [x: string]: {
37
+ pending?: string | undefined;
38
+ proof?: string[] | undefined;
39
+ symbol: string;
40
+ decimals: number;
41
+ unclaimed: string;
42
+ accumulated: string;
43
+ reasons: {
44
+ [x: string]: {
45
+ pending?: string | undefined;
46
+ unclaimed: string;
47
+ accumulated: string;
48
+ };
49
+ };
50
+ };
51
+ };
52
+ };
53
+ };
54
+ };
55
+ }, {
56
+ derive: {};
57
+ resolve: {};
58
+ schema: {};
59
+ }, {
60
+ derive: {};
61
+ resolve: {};
62
+ schema: {};
63
+ }>;
10
64
  export default _default;