@merkl/api 0.19.38 → 0.19.39
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/database/api/.generated/drizzle/schema.d.ts +34 -0
- package/dist/database/api/.generated/drizzle/schema.js +2 -0
- package/dist/database/api/.generated/drizzle/schema.ts +2 -0
- package/dist/database/api/.generated/edge.js +7 -3
- package/dist/database/api/.generated/index-browser.js +4 -0
- package/dist/database/api/.generated/index.d.ts +150 -58
- package/dist/database/api/.generated/index.js +7 -3
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +2 -0
- package/dist/database/api/.generated/wasm.js +4 -0
- package/dist/src/eden/index.d.ts +5 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -0
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -0
- package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +2 -0
- package/dist/src/modules/v4/reward/reward.service.js +1 -1
- package/dist/src/modules/v4/router.d.ts +1 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -75,6 +75,7 @@ model CampaignComputedValue {
|
|
75
75
|
model UserComputedValue {
|
76
76
|
id Int @id @default(autoincrement()) // TODO Migrate to something smarter than Int ids
|
77
77
|
stringId String @default("")
|
78
|
+
uuid String @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
78
79
|
campaignId String
|
79
80
|
Campaign Campaign @relation(fields: [campaignId], references: [id])
|
80
81
|
address String @db.Char(42)
|
@@ -298,6 +299,7 @@ model Reward {
|
|
298
299
|
model RewardBreakdown {
|
299
300
|
id Int @id @default(autoincrement())
|
300
301
|
stringId String @default("")
|
302
|
+
uuid String @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
301
303
|
Protocol Protocol? @relation(fields: [protocolId], references: [id])
|
302
304
|
protocolId String?
|
303
305
|
reason String
|
@@ -159,6 +159,7 @@ exports.Prisma.CampaignComputedValueScalarFieldEnum = {
|
|
159
159
|
exports.Prisma.UserComputedValueScalarFieldEnum = {
|
160
160
|
id: 'id',
|
161
161
|
stringId: 'stringId',
|
162
|
+
uuid: 'uuid',
|
162
163
|
campaignId: 'campaignId',
|
163
164
|
address: 'address',
|
164
165
|
reason: 'reason',
|
@@ -292,6 +293,7 @@ exports.Prisma.RewardScalarFieldEnum = {
|
|
292
293
|
exports.Prisma.RewardBreakdownScalarFieldEnum = {
|
293
294
|
id: 'id',
|
294
295
|
stringId: 'stringId',
|
296
|
+
uuid: 'uuid',
|
295
297
|
protocolId: 'protocolId',
|
296
298
|
reason: 'reason',
|
297
299
|
amount: 'amount',
|
@@ -398,6 +400,7 @@ exports.Prisma.CampaignComputedValueOrderByRelevanceFieldEnum = {
|
|
398
400
|
|
399
401
|
exports.Prisma.UserComputedValueOrderByRelevanceFieldEnum = {
|
400
402
|
stringId: 'stringId',
|
403
|
+
uuid: 'uuid',
|
401
404
|
campaignId: 'campaignId',
|
402
405
|
address: 'address',
|
403
406
|
reason: 'reason'
|
@@ -499,6 +502,7 @@ exports.Prisma.RewardOrderByRelevanceFieldEnum = {
|
|
499
502
|
|
500
503
|
exports.Prisma.RewardBreakdownOrderByRelevanceFieldEnum = {
|
501
504
|
stringId: 'stringId',
|
505
|
+
uuid: 'uuid',
|
502
506
|
protocolId: 'protocolId',
|
503
507
|
reason: 'reason',
|
504
508
|
amount: 'amount',
|
package/dist/src/eden/index.d.ts
CHANGED
@@ -3666,6 +3666,7 @@ declare const eden: {
|
|
3666
3666
|
200: {
|
3667
3667
|
id: number;
|
3668
3668
|
reason: string;
|
3669
|
+
uuid: string;
|
3669
3670
|
campaignId: string;
|
3670
3671
|
stringId: string;
|
3671
3672
|
boost: number | null;
|
@@ -7403,6 +7404,7 @@ declare const eden: {
|
|
7403
7404
|
200: {
|
7404
7405
|
id: number;
|
7405
7406
|
reason: string;
|
7407
|
+
uuid: string;
|
7406
7408
|
campaignId: string;
|
7407
7409
|
stringId: string;
|
7408
7410
|
boost: number | null;
|
@@ -12708,6 +12710,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12708
12710
|
200: {
|
12709
12711
|
id: number;
|
12710
12712
|
reason: string;
|
12713
|
+
uuid: string;
|
12711
12714
|
campaignId: string;
|
12712
12715
|
stringId: string;
|
12713
12716
|
boost: number | null;
|
@@ -17329,6 +17332,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17329
17332
|
200: {
|
17330
17333
|
id: number;
|
17331
17334
|
reason: string;
|
17335
|
+
uuid: string;
|
17332
17336
|
campaignId: string;
|
17333
17337
|
stringId: string;
|
17334
17338
|
boost: number | null;
|
@@ -21066,6 +21070,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
21066
21070
|
200: {
|
21067
21071
|
id: number;
|
21068
21072
|
reason: string;
|
21073
|
+
uuid: string;
|
21069
21074
|
campaignId: string;
|
21070
21075
|
stringId: string;
|
21071
21076
|
boost: number | null;
|
package/dist/src/index.d.ts
CHANGED
@@ -17,7 +17,7 @@ export type Reward = Resource<"Reward", "rewardTokenId" | "id", {
|
|
17
17
|
* @description Describes one reward amount for one token and campaign
|
18
18
|
* @see {@link Resource}
|
19
19
|
*/
|
20
|
-
export type RewardBreakdown = Resource<"RewardBreakdown", "id" | "rewardId" | "protocolId" | "stringId">;
|
20
|
+
export type RewardBreakdown = Resource<"RewardBreakdown", "id" | "rewardId" | "protocolId" | "stringId" | "uuid">;
|
21
21
|
/**
|
22
22
|
* Daily Rewards
|
23
23
|
* @description Describes rewards breakdown from the opportunity view
|
@@ -79,6 +79,7 @@ export declare abstract class RewardRepository {
|
|
79
79
|
pending: string;
|
80
80
|
id: number;
|
81
81
|
reason: string;
|
82
|
+
uuid: string;
|
82
83
|
campaignId: string;
|
83
84
|
amount: string;
|
84
85
|
stringId: string;
|
@@ -105,6 +106,7 @@ export declare abstract class RewardRepository {
|
|
105
106
|
pending: string;
|
106
107
|
id: number;
|
107
108
|
reason: string;
|
109
|
+
uuid: string;
|
108
110
|
campaignId: string;
|
109
111
|
amount: string;
|
110
112
|
stringId: string;
|
@@ -405,6 +405,7 @@ export declare abstract class RewardService {
|
|
405
405
|
pending: string;
|
406
406
|
id: number;
|
407
407
|
reason: string;
|
408
|
+
uuid: string;
|
408
409
|
campaignId: string;
|
409
410
|
amount: string;
|
410
411
|
stringId: string;
|
@@ -707,6 +708,7 @@ export declare abstract class RewardService {
|
|
707
708
|
pending: string;
|
708
709
|
id: number;
|
709
710
|
reason: string;
|
711
|
+
uuid: string;
|
710
712
|
campaignId: string;
|
711
713
|
amount: string;
|
712
714
|
stringId: string;
|
@@ -79,7 +79,7 @@ export class RewardService {
|
|
79
79
|
* @returns a RewardBreakdown model
|
80
80
|
*/
|
81
81
|
static formatBreakdown(breakdown) {
|
82
|
-
const { Campaign, id, stringId, rewardId, protocolId, ...rest } = breakdown;
|
82
|
+
const { Campaign, id, stringId, uuid, rewardId, protocolId, ...rest } = breakdown;
|
83
83
|
return {
|
84
84
|
...rest,
|
85
85
|
campaignId: Campaign.campaignId,
|