@ai-grator/api 0.3.82 → 0.3.83

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-grator/api",
3
- "version": "0.3.82",
3
+ "version": "0.3.83",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -48,6 +48,8 @@ export const ReferralAdvertisingMetricsSchema = z.object({
48
48
  registrations: z.number().int().nonnegative(),
49
49
  purchases: z.number().int().nonnegative(),
50
50
  conversionRate: z.number().nonnegative(),
51
+ depositsAmount: z.number().nonnegative(),
52
+ bonusesAmount: z.number().nonnegative(),
51
53
  });
52
54
  export type ReferralAdvertisingMetricsSchemaType = z.infer<typeof ReferralAdvertisingMetricsSchema>;
53
55
 
@@ -61,6 +63,7 @@ export type ReferralAdvertisingPeriodStatsSchemaType = z.infer<typeof ReferralAd
61
63
 
62
64
  export const GetReferralAdvertisingStatsResponseSchema = z.object({
63
65
  periods: z.array(ReferralAdvertisingPeriodStatsSchema),
66
+ totals: ReferralAdvertisingMetricsSchema,
64
67
  });
65
68
  export type GetReferralAdvertisingStatsResponseSchemaType = z.infer<typeof GetReferralAdvertisingStatsResponseSchema>;
66
69
 
@@ -71,6 +74,7 @@ export type ReferralAdvertisingLinkStatsSchemaType = z.infer<typeof ReferralAdve
71
74
 
72
75
  export const GetReferralAdvertisingLinksResponseSchema = z.object({
73
76
  links: z.array(ReferralAdvertisingLinkStatsSchema),
77
+ maxLinks: z.number().int().positive(),
74
78
  });
75
79
  export type GetReferralAdvertisingLinksResponseSchemaType = z.infer<typeof GetReferralAdvertisingLinksResponseSchema>;
76
80
 
@@ -1,6 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  import { TOOL } from '../enums';
3
3
 
4
+ export const REFERRAL_MAX_LINKS_PER_USER = 20;
5
+
4
6
  export const CreateReferralLinkBodySchema = z.object({
5
7
  tool: z.enum(TOOL).optional(),
6
8
  modelUuid: z.uuid().optional(),