@merkl/api 0.17.0 → 0.17.1

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.
@@ -1223,8 +1223,17 @@ declare const eden: {
1223
1223
  query?: Record<string, unknown> | undefined;
1224
1224
  fetch?: RequestInit | undefined;
1225
1225
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1226
- [x: string]: any;
1227
- 200: any;
1226
+ 200: {
1227
+ name: string;
1228
+ url: string;
1229
+ description: string;
1230
+ id: string;
1231
+ tags: string[];
1232
+ icon: string;
1233
+ dailyRewards?: number | undefined;
1234
+ numberOfLiveCampaigns?: number | undefined;
1235
+ opportunityLiveTags?: string[] | undefined;
1236
+ } | null;
1228
1237
  }>>;
1229
1238
  patch: (body: {
1230
1239
  name?: string | undefined;
@@ -1238,8 +1247,14 @@ declare const eden: {
1238
1247
  query?: Record<string, unknown> | undefined;
1239
1248
  fetch?: RequestInit | undefined;
1240
1249
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1241
- [x: string]: any;
1242
- 200: any;
1250
+ 200: {
1251
+ name: string;
1252
+ url: string;
1253
+ description: string;
1254
+ id: string;
1255
+ tags: string[];
1256
+ icon: string;
1257
+ };
1243
1258
  }>>;
1244
1259
  }) & {
1245
1260
  index: {
@@ -1256,8 +1271,18 @@ declare const eden: {
1256
1271
  };
1257
1272
  fetch?: RequestInit | undefined;
1258
1273
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1259
- [x: string]: any;
1260
- 200: any;
1274
+ 200: ({
1275
+ name: string;
1276
+ url: string;
1277
+ description: string;
1278
+ id: string;
1279
+ tags: string[];
1280
+ icon: string;
1281
+ } & {
1282
+ dailyRewards?: number | undefined;
1283
+ numberOfLiveCampaigns?: number | undefined;
1284
+ opportunityLiveTags?: string[] | undefined;
1285
+ })[];
1261
1286
  }>>;
1262
1287
  post: (body: {
1263
1288
  name: string;
@@ -1273,8 +1298,14 @@ declare const eden: {
1273
1298
  query?: Record<string, unknown> | undefined;
1274
1299
  fetch?: RequestInit | undefined;
1275
1300
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1276
- [x: string]: any;
1277
- 200: any;
1301
+ 200: {
1302
+ name: string;
1303
+ url: string;
1304
+ description: string;
1305
+ id: string;
1306
+ tags: string[];
1307
+ icon: string;
1308
+ };
1278
1309
  }>>;
1279
1310
  };
1280
1311
  count: {
@@ -1283,8 +1314,7 @@ declare const eden: {
1283
1314
  query?: Record<string, unknown> | undefined;
1284
1315
  fetch?: RequestInit | undefined;
1285
1316
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1286
- [x: string]: any;
1287
- 200: any;
1317
+ 200: number;
1288
1318
  }>>;
1289
1319
  };
1290
1320
  };
@@ -4506,8 +4536,17 @@ declare const eden: {
4506
4536
  query?: Record<string, unknown> | undefined;
4507
4537
  fetch?: RequestInit | undefined;
4508
4538
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4509
- [x: string]: any;
4510
- 200: any;
4539
+ 200: {
4540
+ name: string;
4541
+ url: string;
4542
+ description: string;
4543
+ id: string;
4544
+ tags: string[];
4545
+ icon: string;
4546
+ dailyRewards?: number | undefined;
4547
+ numberOfLiveCampaigns?: number | undefined;
4548
+ opportunityLiveTags?: string[] | undefined;
4549
+ } | null;
4511
4550
  }>>;
4512
4551
  patch: (body: {
4513
4552
  name?: string | undefined;
@@ -4521,8 +4560,14 @@ declare const eden: {
4521
4560
  query?: Record<string, unknown> | undefined;
4522
4561
  fetch?: RequestInit | undefined;
4523
4562
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4524
- [x: string]: any;
4525
- 200: any;
4563
+ 200: {
4564
+ name: string;
4565
+ url: string;
4566
+ description: string;
4567
+ id: string;
4568
+ tags: string[];
4569
+ icon: string;
4570
+ };
4526
4571
  }>>;
4527
4572
  }) & {
4528
4573
  index: {
@@ -4539,8 +4584,18 @@ declare const eden: {
4539
4584
  };
4540
4585
  fetch?: RequestInit | undefined;
4541
4586
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4542
- [x: string]: any;
4543
- 200: any;
4587
+ 200: ({
4588
+ name: string;
4589
+ url: string;
4590
+ description: string;
4591
+ id: string;
4592
+ tags: string[];
4593
+ icon: string;
4594
+ } & {
4595
+ dailyRewards?: number | undefined;
4596
+ numberOfLiveCampaigns?: number | undefined;
4597
+ opportunityLiveTags?: string[] | undefined;
4598
+ })[];
4544
4599
  }>>;
4545
4600
  post: (body: {
4546
4601
  name: string;
@@ -4556,8 +4611,14 @@ declare const eden: {
4556
4611
  query?: Record<string, unknown> | undefined;
4557
4612
  fetch?: RequestInit | undefined;
4558
4613
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4559
- [x: string]: any;
4560
- 200: any;
4614
+ 200: {
4615
+ name: string;
4616
+ url: string;
4617
+ description: string;
4618
+ id: string;
4619
+ tags: string[];
4620
+ icon: string;
4621
+ };
4561
4622
  }>>;
4562
4623
  };
4563
4624
  count: {
@@ -4566,8 +4627,7 @@ declare const eden: {
4566
4627
  query?: Record<string, unknown> | undefined;
4567
4628
  fetch?: RequestInit | undefined;
4568
4629
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4569
- [x: string]: any;
4570
- 200: any;
4630
+ 200: number;
4571
4631
  }>>;
4572
4632
  };
4573
4633
  };
@@ -8645,8 +8705,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8645
8705
  };
8646
8706
  headers: unknown;
8647
8707
  response: {
8648
- [x: string]: any;
8649
- 200: any;
8708
+ 200: ({
8709
+ name: string;
8710
+ url: string;
8711
+ description: string;
8712
+ id: string;
8713
+ tags: string[];
8714
+ icon: string;
8715
+ } & {
8716
+ dailyRewards?: number | undefined;
8717
+ numberOfLiveCampaigns?: number | undefined;
8718
+ opportunityLiveTags?: string[] | undefined;
8719
+ })[];
8650
8720
  };
8651
8721
  };
8652
8722
  };
@@ -8660,8 +8730,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8660
8730
  query: unknown;
8661
8731
  headers: unknown;
8662
8732
  response: {
8663
- [x: string]: any;
8664
- 200: any;
8733
+ 200: number;
8665
8734
  };
8666
8735
  };
8667
8736
  };
@@ -8677,8 +8746,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8677
8746
  query: unknown;
8678
8747
  headers: unknown;
8679
8748
  response: {
8680
- [x: string]: any;
8681
- 200: any;
8749
+ 200: {
8750
+ name: string;
8751
+ url: string;
8752
+ description: string;
8753
+ id: string;
8754
+ tags: string[];
8755
+ icon: string;
8756
+ dailyRewards?: number | undefined;
8757
+ numberOfLiveCampaigns?: number | undefined;
8758
+ opportunityLiveTags?: string[] | undefined;
8759
+ } | null;
8682
8760
  };
8683
8761
  };
8684
8762
  };
@@ -8701,8 +8779,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8701
8779
  authorization: string;
8702
8780
  };
8703
8781
  response: {
8704
- [x: string]: any;
8705
- 200: any;
8782
+ 200: {
8783
+ name: string;
8784
+ url: string;
8785
+ description: string;
8786
+ id: string;
8787
+ tags: string[];
8788
+ icon: string;
8789
+ };
8706
8790
  };
8707
8791
  };
8708
8792
  };
@@ -8725,8 +8809,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8725
8809
  authorization: string;
8726
8810
  };
8727
8811
  response: {
8728
- [x: string]: any;
8729
- 200: any;
8812
+ 200: {
8813
+ name: string;
8814
+ url: string;
8815
+ description: string;
8816
+ id: string;
8817
+ tags: string[];
8818
+ icon: string;
8819
+ };
8730
8820
  };
8731
8821
  };
8732
8822
  };
@@ -13354,8 +13444,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13354
13444
  query?: Record<string, unknown> | undefined;
13355
13445
  fetch?: RequestInit | undefined;
13356
13446
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13357
- [x: string]: any;
13358
- 200: any;
13447
+ 200: {
13448
+ name: string;
13449
+ url: string;
13450
+ description: string;
13451
+ id: string;
13452
+ tags: string[];
13453
+ icon: string;
13454
+ dailyRewards?: number | undefined;
13455
+ numberOfLiveCampaigns?: number | undefined;
13456
+ opportunityLiveTags?: string[] | undefined;
13457
+ } | null;
13359
13458
  }>>;
13360
13459
  patch: (body: {
13361
13460
  name?: string | undefined;
@@ -13369,8 +13468,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13369
13468
  query?: Record<string, unknown> | undefined;
13370
13469
  fetch?: RequestInit | undefined;
13371
13470
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13372
- [x: string]: any;
13373
- 200: any;
13471
+ 200: {
13472
+ name: string;
13473
+ url: string;
13474
+ description: string;
13475
+ id: string;
13476
+ tags: string[];
13477
+ icon: string;
13478
+ };
13374
13479
  }>>;
13375
13480
  }) & {
13376
13481
  index: {
@@ -13387,8 +13492,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13387
13492
  };
13388
13493
  fetch?: RequestInit | undefined;
13389
13494
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13390
- [x: string]: any;
13391
- 200: any;
13495
+ 200: ({
13496
+ name: string;
13497
+ url: string;
13498
+ description: string;
13499
+ id: string;
13500
+ tags: string[];
13501
+ icon: string;
13502
+ } & {
13503
+ dailyRewards?: number | undefined;
13504
+ numberOfLiveCampaigns?: number | undefined;
13505
+ opportunityLiveTags?: string[] | undefined;
13506
+ })[];
13392
13507
  }>>;
13393
13508
  post: (body: {
13394
13509
  name: string;
@@ -13404,8 +13519,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13404
13519
  query?: Record<string, unknown> | undefined;
13405
13520
  fetch?: RequestInit | undefined;
13406
13521
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13407
- [x: string]: any;
13408
- 200: any;
13522
+ 200: {
13523
+ name: string;
13524
+ url: string;
13525
+ description: string;
13526
+ id: string;
13527
+ tags: string[];
13528
+ icon: string;
13529
+ };
13409
13530
  }>>;
13410
13531
  };
13411
13532
  count: {
@@ -13414,8 +13535,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13414
13535
  query?: Record<string, unknown> | undefined;
13415
13536
  fetch?: RequestInit | undefined;
13416
13537
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13417
- [x: string]: any;
13418
- 200: any;
13538
+ 200: number;
13419
13539
  }>>;
13420
13540
  };
13421
13541
  };
@@ -16637,8 +16757,17 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16637
16757
  query?: Record<string, unknown> | undefined;
16638
16758
  fetch?: RequestInit | undefined;
16639
16759
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16640
- [x: string]: any;
16641
- 200: any;
16760
+ 200: {
16761
+ name: string;
16762
+ url: string;
16763
+ description: string;
16764
+ id: string;
16765
+ tags: string[];
16766
+ icon: string;
16767
+ dailyRewards?: number | undefined;
16768
+ numberOfLiveCampaigns?: number | undefined;
16769
+ opportunityLiveTags?: string[] | undefined;
16770
+ } | null;
16642
16771
  }>>;
16643
16772
  patch: (body: {
16644
16773
  name?: string | undefined;
@@ -16652,8 +16781,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16652
16781
  query?: Record<string, unknown> | undefined;
16653
16782
  fetch?: RequestInit | undefined;
16654
16783
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16655
- [x: string]: any;
16656
- 200: any;
16784
+ 200: {
16785
+ name: string;
16786
+ url: string;
16787
+ description: string;
16788
+ id: string;
16789
+ tags: string[];
16790
+ icon: string;
16791
+ };
16657
16792
  }>>;
16658
16793
  }) & {
16659
16794
  index: {
@@ -16670,8 +16805,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16670
16805
  };
16671
16806
  fetch?: RequestInit | undefined;
16672
16807
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16673
- [x: string]: any;
16674
- 200: any;
16808
+ 200: ({
16809
+ name: string;
16810
+ url: string;
16811
+ description: string;
16812
+ id: string;
16813
+ tags: string[];
16814
+ icon: string;
16815
+ } & {
16816
+ dailyRewards?: number | undefined;
16817
+ numberOfLiveCampaigns?: number | undefined;
16818
+ opportunityLiveTags?: string[] | undefined;
16819
+ })[];
16675
16820
  }>>;
16676
16821
  post: (body: {
16677
16822
  name: string;
@@ -16687,8 +16832,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16687
16832
  query?: Record<string, unknown> | undefined;
16688
16833
  fetch?: RequestInit | undefined;
16689
16834
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16690
- [x: string]: any;
16691
- 200: any;
16835
+ 200: {
16836
+ name: string;
16837
+ url: string;
16838
+ description: string;
16839
+ id: string;
16840
+ tags: string[];
16841
+ icon: string;
16842
+ };
16692
16843
  }>>;
16693
16844
  };
16694
16845
  count: {
@@ -16697,8 +16848,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16697
16848
  query?: Record<string, unknown> | undefined;
16698
16849
  fetch?: RequestInit | undefined;
16699
16850
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16700
- [x: string]: any;
16701
- 200: any;
16851
+ 200: number;
16702
16852
  }>>;
16703
16853
  };
16704
16854
  };
@@ -1410,8 +1410,18 @@ declare const app: Elysia<"", false, {
1410
1410
  };
1411
1411
  headers: unknown;
1412
1412
  response: {
1413
- [x: string]: any;
1414
- 200: any;
1413
+ 200: ({
1414
+ name: string;
1415
+ url: string;
1416
+ description: string;
1417
+ id: string;
1418
+ tags: string[];
1419
+ icon: string;
1420
+ } & {
1421
+ dailyRewards?: number | undefined;
1422
+ numberOfLiveCampaigns?: number | undefined;
1423
+ opportunityLiveTags?: string[] | undefined;
1424
+ })[];
1415
1425
  };
1416
1426
  };
1417
1427
  };
@@ -1425,8 +1435,7 @@ declare const app: Elysia<"", false, {
1425
1435
  query: unknown;
1426
1436
  headers: unknown;
1427
1437
  response: {
1428
- [x: string]: any;
1429
- 200: any;
1438
+ 200: number;
1430
1439
  };
1431
1440
  };
1432
1441
  };
@@ -1442,8 +1451,17 @@ declare const app: Elysia<"", false, {
1442
1451
  query: unknown;
1443
1452
  headers: unknown;
1444
1453
  response: {
1445
- [x: string]: any;
1446
- 200: any;
1454
+ 200: {
1455
+ name: string;
1456
+ url: string;
1457
+ description: string;
1458
+ id: string;
1459
+ tags: string[];
1460
+ icon: string;
1461
+ dailyRewards?: number | undefined;
1462
+ numberOfLiveCampaigns?: number | undefined;
1463
+ opportunityLiveTags?: string[] | undefined;
1464
+ } | null;
1447
1465
  };
1448
1466
  };
1449
1467
  };
@@ -1466,8 +1484,14 @@ declare const app: Elysia<"", false, {
1466
1484
  authorization: string;
1467
1485
  };
1468
1486
  response: {
1469
- [x: string]: any;
1470
- 200: any;
1487
+ 200: {
1488
+ name: string;
1489
+ url: string;
1490
+ description: string;
1491
+ id: string;
1492
+ tags: string[];
1493
+ icon: string;
1494
+ };
1471
1495
  };
1472
1496
  };
1473
1497
  };
@@ -1490,8 +1514,14 @@ declare const app: Elysia<"", false, {
1490
1514
  authorization: string;
1491
1515
  };
1492
1516
  response: {
1493
- [x: string]: any;
1494
- 200: any;
1517
+ 200: {
1518
+ name: string;
1519
+ url: string;
1520
+ description: string;
1521
+ id: string;
1522
+ tags: string[];
1523
+ icon: string;
1524
+ };
1495
1525
  };
1496
1526
  };
1497
1527
  };
@@ -1,4 +1,2 @@
1
- import type { apiDbClient } from "../../../utils/prisma";
2
1
  export * from "./protocol.model";
3
2
  export * from "./protocol.service";
4
- export declare const initProtocolService: (dbClient: typeof apiDbClient) => any;
@@ -1,10 +1,2 @@
1
- import { initChainService } from "../chain";
2
- import { ProtocolRepository } from "./protocol.repository";
3
- import { ProtocolService } from "./protocol.service";
4
1
  export * from "./protocol.model";
5
2
  export * from "./protocol.service";
6
- export const initProtocolService = (dbClient) => {
7
- const repository = new ProtocolRepository(dbClient);
8
- const chainService = initChainService(dbClient);
9
- return new ProtocolService(repository, chainService);
10
- };
@@ -28,8 +28,18 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
28
28
  };
29
29
  headers: unknown;
30
30
  response: {
31
- [x: string]: any;
32
- 200: any;
31
+ 200: ({
32
+ name: string;
33
+ url: string;
34
+ description: string;
35
+ id: string;
36
+ tags: string[];
37
+ icon: string;
38
+ } & {
39
+ dailyRewards?: number | undefined;
40
+ numberOfLiveCampaigns?: number | undefined;
41
+ opportunityLiveTags?: string[] | undefined;
42
+ })[];
33
43
  };
34
44
  };
35
45
  };
@@ -43,8 +53,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
43
53
  query: unknown;
44
54
  headers: unknown;
45
55
  response: {
46
- [x: string]: any;
47
- 200: any;
56
+ 200: number;
48
57
  };
49
58
  };
50
59
  };
@@ -60,8 +69,17 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
60
69
  query: unknown;
61
70
  headers: unknown;
62
71
  response: {
63
- [x: string]: any;
64
- 200: any;
72
+ 200: {
73
+ name: string;
74
+ url: string;
75
+ description: string;
76
+ id: string;
77
+ tags: string[];
78
+ icon: string;
79
+ dailyRewards?: number | undefined;
80
+ numberOfLiveCampaigns?: number | undefined;
81
+ opportunityLiveTags?: string[] | undefined;
82
+ } | null;
65
83
  };
66
84
  };
67
85
  };
@@ -84,8 +102,14 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
84
102
  authorization: string;
85
103
  };
86
104
  response: {
87
- [x: string]: any;
88
- 200: any;
105
+ 200: {
106
+ name: string;
107
+ url: string;
108
+ description: string;
109
+ id: string;
110
+ tags: string[];
111
+ icon: string;
112
+ };
89
113
  };
90
114
  };
91
115
  };
@@ -108,8 +132,14 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
108
132
  authorization: string;
109
133
  };
110
134
  response: {
111
- [x: string]: any;
112
- 200: any;
135
+ 200: {
136
+ name: string;
137
+ url: string;
138
+ description: string;
139
+ id: string;
140
+ tags: string[];
141
+ icon: string;
142
+ };
113
143
  };
114
144
  };
115
145
  };
@@ -1,30 +1,28 @@
1
1
  import { AuthorizationHeadersDto, BackOfficeGuard } from "../../../guards/BackOffice.guard";
2
- import { apiDbClient } from "../../../utils/prisma";
3
2
  import Elysia, { t } from "elysia";
4
- import { initProtocolService } from ".";
3
+ import { ProtocolService } from ".";
5
4
  import { CreateProtocolDto, GetProtocolsQueryDto, ProtocolIdDto, ProtocolResourceDto, UpdateProtocolDto, } from "./protocol.model";
6
- const protocolService = initProtocolService(apiDbClient);
7
5
  // ─── Protocols Controller ────────────────────────────────────────────────────
8
6
  export const ProtocolController = new Elysia({ prefix: "/protocols", detail: { tags: ["Protocols"] } })
9
7
  // ─── Get Many Protocols ──────────────────────────────────────────────
10
- .get("/", async ({ query }) => await protocolService.findMany(query), {
8
+ .get("/", async ({ query }) => await ProtocolService.findMany(query), {
11
9
  query: GetProtocolsQueryDto,
12
10
  response: t.Array(ProtocolResourceDto),
13
11
  detail: { description: "List protocols supported and integrated by Merkl." },
14
12
  })
15
13
  // ─── Count Protocols ─────────────────────────────────────────────────
16
- .get("/count", async ({ query }) => await protocolService.countMany(query), {
14
+ .get("/count", async ({ query }) => await ProtocolService.countMany(query), {
17
15
  detail: { description: "Get the number of protocols correspoinding to the query." },
18
16
  })
19
17
  // ─── Get A Protocol By Its Id Or Name ────────────────────────────────
20
18
  .get("/:id", async ({ params }) => {
21
- const fromId = await protocolService.getFromId(params.id);
19
+ const fromId = await ProtocolService.getFromId(params.id);
22
20
  if (fromId)
23
21
  return fromId;
24
- return await protocolService.getFromName(params.id);
22
+ return await ProtocolService.getFromName(params.id);
25
23
  }, { detail: { hide: true } })
26
24
  // ─── Update A Protocol ───────────────────────────────────────────────
27
- .patch("/:id", async ({ params, body }) => await protocolService.update(params.id, body), {
25
+ .patch("/:id", async ({ params, body }) => await ProtocolService.update(params.id, body), {
28
26
  params: ProtocolIdDto,
29
27
  body: UpdateProtocolDto,
30
28
  headers: AuthorizationHeadersDto,
@@ -32,7 +30,7 @@ export const ProtocolController = new Elysia({ prefix: "/protocols", detail: { t
32
30
  detail: { hide: true },
33
31
  })
34
32
  // ─── Create A Protocol ───────────────────────────────────────────────
35
- .post("/", async ({ body }) => await protocolService.create(body), {
33
+ .post("/", async ({ body }) => await ProtocolService.create(body), {
36
34
  body: CreateProtocolDto,
37
35
  headers: AuthorizationHeadersDto,
38
36
  beforeHandle: BackOfficeGuard,