aivilife-contracts 6.13.0 → 6.16.0
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/README.md +10 -0
- package/dist/auth/index.d.mts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +175 -4
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs +175 -4
- package/dist/auth/index.mjs.map +1 -1
- package/dist/box/index.d.mts +6 -6
- package/dist/box/index.d.ts +6 -6
- package/dist/box/index.js +21 -0
- package/dist/box/index.js.map +1 -1
- package/dist/box/index.mjs +21 -0
- package/dist/box/index.mjs.map +1 -1
- package/dist/{index-aJ0LgK9y.d.ts → index-4XXgA487.d.ts} +2 -2
- package/dist/{index-DTlNjTLo.d.mts → index-C3RE1gHB.d.mts} +2 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +216 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +190 -2
- package/dist/index.mjs.map +1 -1
- package/dist/marketing/index.d.mts +396 -3
- package/dist/marketing/index.d.ts +396 -3
- package/dist/marketing/index.js +205 -0
- package/dist/marketing/index.js.map +1 -1
- package/dist/marketing/index.mjs +180 -1
- package/dist/marketing/index.mjs.map +1 -1
- package/dist/{marketing.enums-De2AKo0y.d.mts → marketing.enums-BeTMXVQh.d.mts} +16 -1
- package/dist/{marketing.enums-De2AKo0y.d.ts → marketing.enums-BeTMXVQh.d.ts} +16 -1
- package/dist/notification/index.d.mts +55 -2
- package/dist/notification/index.d.ts +55 -2
- package/dist/notification/index.js +132 -0
- package/dist/notification/index.js.map +1 -1
- package/dist/notification/index.mjs +132 -1
- package/dist/notification/index.mjs.map +1 -1
- package/dist/order/index.d.mts +1 -1
- package/dist/order/index.d.ts +1 -1
- package/dist/order/index.js +21 -0
- package/dist/order/index.js.map +1 -1
- package/dist/order/index.mjs +21 -0
- package/dist/order/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,6 +34,11 @@ const credentials: SignInRequest = {
|
|
|
34
34
|
|
|
35
35
|
### Marketing structures
|
|
36
36
|
|
|
37
|
+
Version `6.16.0` adds the partner bonus dashboard and paginated bonus history:
|
|
38
|
+
period comparisons, zero-filled timeline buckets, personal referral volume,
|
|
39
|
+
cumulative team volume for both binary branches, bonus source context and
|
|
40
|
+
personalized BOX, rank, Extra and weak-branch opportunities.
|
|
41
|
+
|
|
37
42
|
Version `6.5.0` adds binary branch volume statistics for week, month and year
|
|
38
43
|
views. The response contains zero-filled UTC buckets for both branches and
|
|
39
44
|
period totals derived from the immutable payable-volume ledger.
|
|
@@ -146,6 +151,11 @@ import {
|
|
|
146
151
|
} from 'aivilife-contracts/marketing';
|
|
147
152
|
```
|
|
148
153
|
|
|
154
|
+
## 6.14.0
|
|
155
|
+
|
|
156
|
+
- Added the localized current-rank response used by the partner dashboard achievement banner.
|
|
157
|
+
- Rank gift images now resolve through a protected backend content endpoint.
|
|
158
|
+
|
|
149
159
|
## 6.13.0
|
|
150
160
|
|
|
151
161
|
- Added Binary and Matching bonus system-notification types.
|
package/dist/auth/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AuthUser, a as AuthUserSchema, C as ConfirmEmail, b as ConfirmEmailChange, c as ConfirmEmailChangeSchema, d as ConfirmEmailSchema, F as ForgotPassword, e as ForgotPasswordSchema, R as RefreshResponse, f as RefreshResponseSchema, g as RegistrationAvailabilityRequest, h as RegistrationAvailabilityRequestSchema, i as RegistrationAvailabilityResponse, j as RegistrationAvailabilityResponseSchema, k as RegistrationEmailSchema, l as RegistrationLoginSchema, m as RegistrationPasswordSchema, n as RegistrationPhoneNumberSchema, o as RequestEmailChange, p as RequestEmailChangeSchema, q as RequestEmailVerification, r as RequestEmailVerificationSchema, s as ResetPassword, t as ResetPasswordSchema, S as SignInRequest, u as SignInRequestSchema, v as SignInResponse, w as SignInResponseSchema, x as SignUpRequest, y as SignUpRequestSchema, z as SponsoredSignUpRequest, B as SponsoredSignUpRequestSchema, D as SponsoredSignUpResponse, E as SponsoredSignUpResponseSchema } from '../index-
|
|
1
|
+
export { A as AuthUser, a as AuthUserSchema, C as ConfirmEmail, b as ConfirmEmailChange, c as ConfirmEmailChangeSchema, d as ConfirmEmailSchema, F as ForgotPassword, e as ForgotPasswordSchema, R as RefreshResponse, f as RefreshResponseSchema, g as RegistrationAvailabilityRequest, h as RegistrationAvailabilityRequestSchema, i as RegistrationAvailabilityResponse, j as RegistrationAvailabilityResponseSchema, k as RegistrationEmailSchema, l as RegistrationLoginSchema, m as RegistrationPasswordSchema, n as RegistrationPhoneNumberSchema, o as RequestEmailChange, p as RequestEmailChangeSchema, q as RequestEmailVerification, r as RequestEmailVerificationSchema, s as ResetPassword, t as ResetPasswordSchema, S as SignInRequest, u as SignInRequestSchema, v as SignInResponse, w as SignInResponseSchema, x as SignUpRequest, y as SignUpRequestSchema, z as SponsoredSignUpRequest, B as SponsoredSignUpRequestSchema, D as SponsoredSignUpResponse, E as SponsoredSignUpResponseSchema } from '../index-C3RE1gHB.mjs';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../marketing.enums-
|
|
3
|
+
import '../marketing.enums-BeTMXVQh.mjs';
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AuthUser, a as AuthUserSchema, C as ConfirmEmail, b as ConfirmEmailChange, c as ConfirmEmailChangeSchema, d as ConfirmEmailSchema, F as ForgotPassword, e as ForgotPasswordSchema, R as RefreshResponse, f as RefreshResponseSchema, g as RegistrationAvailabilityRequest, h as RegistrationAvailabilityRequestSchema, i as RegistrationAvailabilityResponse, j as RegistrationAvailabilityResponseSchema, k as RegistrationEmailSchema, l as RegistrationLoginSchema, m as RegistrationPasswordSchema, n as RegistrationPhoneNumberSchema, o as RequestEmailChange, p as RequestEmailChangeSchema, q as RequestEmailVerification, r as RequestEmailVerificationSchema, s as ResetPassword, t as ResetPasswordSchema, S as SignInRequest, u as SignInRequestSchema, v as SignInResponse, w as SignInResponseSchema, x as SignUpRequest, y as SignUpRequestSchema, z as SponsoredSignUpRequest, B as SponsoredSignUpRequestSchema, D as SponsoredSignUpResponse, E as SponsoredSignUpResponseSchema } from '../index-
|
|
1
|
+
export { A as AuthUser, a as AuthUserSchema, C as ConfirmEmail, b as ConfirmEmailChange, c as ConfirmEmailChangeSchema, d as ConfirmEmailSchema, F as ForgotPassword, e as ForgotPasswordSchema, R as RefreshResponse, f as RefreshResponseSchema, g as RegistrationAvailabilityRequest, h as RegistrationAvailabilityRequestSchema, i as RegistrationAvailabilityResponse, j as RegistrationAvailabilityResponseSchema, k as RegistrationEmailSchema, l as RegistrationLoginSchema, m as RegistrationPasswordSchema, n as RegistrationPhoneNumberSchema, o as RequestEmailChange, p as RequestEmailChangeSchema, q as RequestEmailVerification, r as RequestEmailVerificationSchema, s as ResetPassword, t as ResetPasswordSchema, S as SignInRequest, u as SignInRequestSchema, v as SignInResponse, w as SignInResponseSchema, x as SignUpRequest, y as SignUpRequestSchema, z as SponsoredSignUpRequest, B as SponsoredSignUpRequestSchema, D as SponsoredSignUpResponse, E as SponsoredSignUpResponseSchema } from '../index-4XXgA487.js';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../marketing.enums-
|
|
3
|
+
import '../marketing.enums-BeTMXVQh.js';
|
package/dist/auth/index.js
CHANGED
|
@@ -143,7 +143,7 @@ zod.z.object({
|
|
|
143
143
|
var DateFromSchema = zod.z.string().datetime().optional();
|
|
144
144
|
var DateToSchema = zod.z.string().datetime().optional();
|
|
145
145
|
var SearchSchema = zod.z.string().trim().min(1).max(255).optional();
|
|
146
|
-
zod.z.object({
|
|
146
|
+
var BaseListQuerySchema = zod.z.object({
|
|
147
147
|
page: PageSchema.optional(),
|
|
148
148
|
limit: LimitSchema.optional(),
|
|
149
149
|
search: SearchSchema,
|
|
@@ -242,9 +242,24 @@ var MarketingBonusPeriod = /* @__PURE__ */ ((MarketingBonusPeriod2) => {
|
|
|
242
242
|
MarketingBonusPeriod2["LAST_7_DAYS"] = "LAST_7_DAYS";
|
|
243
243
|
MarketingBonusPeriod2["LAST_30_DAYS"] = "LAST_30_DAYS";
|
|
244
244
|
MarketingBonusPeriod2["LAST_90_DAYS"] = "LAST_90_DAYS";
|
|
245
|
+
MarketingBonusPeriod2["LAST_365_DAYS"] = "LAST_365_DAYS";
|
|
245
246
|
MarketingBonusPeriod2["ALL_TIME"] = "ALL_TIME";
|
|
246
247
|
return MarketingBonusPeriod2;
|
|
247
248
|
})(MarketingBonusPeriod || {});
|
|
249
|
+
var MarketingBonusTimelineGranularity = /* @__PURE__ */ ((MarketingBonusTimelineGranularity2) => {
|
|
250
|
+
MarketingBonusTimelineGranularity2["DAY"] = "DAY";
|
|
251
|
+
MarketingBonusTimelineGranularity2["WEEK"] = "WEEK";
|
|
252
|
+
MarketingBonusTimelineGranularity2["MONTH"] = "MONTH";
|
|
253
|
+
return MarketingBonusTimelineGranularity2;
|
|
254
|
+
})(MarketingBonusTimelineGranularity || {});
|
|
255
|
+
var MarketingBonusOpportunityType = /* @__PURE__ */ ((MarketingBonusOpportunityType2) => {
|
|
256
|
+
MarketingBonusOpportunityType2["ACTIVATE_BOX"] = "ACTIVATE_BOX";
|
|
257
|
+
MarketingBonusOpportunityType2["RANK_PROGRESS"] = "RANK_PROGRESS";
|
|
258
|
+
MarketingBonusOpportunityType2["EXTRA_PROGRESS"] = "EXTRA_PROGRESS";
|
|
259
|
+
MarketingBonusOpportunityType2["BOX_UPGRADE"] = "BOX_UPGRADE";
|
|
260
|
+
MarketingBonusOpportunityType2["WEAK_BRANCH"] = "WEAK_BRANCH";
|
|
261
|
+
return MarketingBonusOpportunityType2;
|
|
262
|
+
})(MarketingBonusOpportunityType || {});
|
|
248
263
|
var BinaryVolumeStatisticsPeriod = /* @__PURE__ */ ((BinaryVolumeStatisticsPeriod2) => {
|
|
249
264
|
BinaryVolumeStatisticsPeriod2["WEEK"] = "WEEK";
|
|
250
265
|
BinaryVolumeStatisticsPeriod2["MONTH"] = "MONTH";
|
|
@@ -264,11 +279,17 @@ var BinaryCycleTrigger = /* @__PURE__ */ ((BinaryCycleTrigger2) => {
|
|
|
264
279
|
var BinaryBranchSchema = zod.z.enum(BinaryBranch);
|
|
265
280
|
var MarketingMemberStatusSchema = zod.z.enum(MarketingMemberStatus);
|
|
266
281
|
zod.z.enum(MarketingVolumeKind);
|
|
267
|
-
zod.z.enum(MarketingRankRewardType);
|
|
282
|
+
var MarketingRankRewardTypeSchema = zod.z.enum(MarketingRankRewardType);
|
|
268
283
|
var MarketingStructureKindSchema = zod.z.enum(MarketingStructureKind);
|
|
269
284
|
var MarketingPartnerStageSchema = zod.z.enum(MarketingPartnerStage);
|
|
270
285
|
var MarketingBonusTypeSchema = zod.z.enum(MarketingBonusType);
|
|
271
286
|
var MarketingBonusPeriodSchema = zod.z.enum(MarketingBonusPeriod);
|
|
287
|
+
var MarketingBonusTimelineGranularitySchema = zod.z.enum(
|
|
288
|
+
MarketingBonusTimelineGranularity
|
|
289
|
+
);
|
|
290
|
+
zod.z.enum(
|
|
291
|
+
MarketingBonusOpportunityType
|
|
292
|
+
);
|
|
272
293
|
var BinaryVolumeStatisticsPeriodSchema = zod.z.enum(
|
|
273
294
|
BinaryVolumeStatisticsPeriod
|
|
274
295
|
);
|
|
@@ -418,6 +439,26 @@ zod.z.object({
|
|
|
418
439
|
pageCount: zod.z.number().int().nonnegative()
|
|
419
440
|
})
|
|
420
441
|
});
|
|
442
|
+
var CurrentMarketingRankSchema = zod.z.object({
|
|
443
|
+
publicId: PublicIdSchema,
|
|
444
|
+
code: CodeSchema,
|
|
445
|
+
name: zod.z.string().trim().min(1).max(160),
|
|
446
|
+
description: zod.z.string().trim().max(2e3).nullable(),
|
|
447
|
+
rewardType: zod.z.enum(MarketingRankRewardType),
|
|
448
|
+
rewardPv: PvSchema.nullable(),
|
|
449
|
+
rewardName: zod.z.string().trim().max(255).nullable(),
|
|
450
|
+
rewardImageUrl: zod.z.string().nullable()
|
|
451
|
+
});
|
|
452
|
+
var MarketingRankAchievementSchema = CurrentMarketingRankSchema.extend(
|
|
453
|
+
{
|
|
454
|
+
achievementPublicId: PublicIdSchema,
|
|
455
|
+
achievedAt: zod.z.iso.datetime()
|
|
456
|
+
}
|
|
457
|
+
);
|
|
458
|
+
MarketingRankAchievementSchema.nullable();
|
|
459
|
+
zod.z.object({
|
|
460
|
+
publicId: PublicIdSchema
|
|
461
|
+
});
|
|
421
462
|
var PvSchema2 = zod.z.string().regex(/^\d{1,16}\.\d{2}$/);
|
|
422
463
|
var PublicIdSchema2 = zod.z.uuid();
|
|
423
464
|
zod.z.object({
|
|
@@ -572,7 +613,7 @@ var MarketingBonusSummaryItemSchema = zod.z.object({
|
|
|
572
613
|
shareBasisPoints: zod.z.number().int().min(0).max(1e4),
|
|
573
614
|
lastCreditedAt: zod.z.iso.datetime().nullable()
|
|
574
615
|
});
|
|
575
|
-
zod.z.object({
|
|
616
|
+
var MarketingBonusSummaryResponseSchema = zod.z.object({
|
|
576
617
|
period: MarketingBonusPeriodSchema,
|
|
577
618
|
from: zod.z.iso.datetime().nullable(),
|
|
578
619
|
to: zod.z.iso.datetime(),
|
|
@@ -581,6 +622,136 @@ zod.z.object({
|
|
|
581
622
|
items: zod.z.array(MarketingBonusSummaryItemSchema),
|
|
582
623
|
generatedAt: zod.z.iso.datetime()
|
|
583
624
|
});
|
|
625
|
+
var MarketingBonusTimelineItemSchema = zod.z.object({
|
|
626
|
+
type: MarketingBonusTypeSchema,
|
|
627
|
+
amountPv: PvSchema3
|
|
628
|
+
});
|
|
629
|
+
var MarketingBonusTimelinePointSchema = zod.z.object({
|
|
630
|
+
key: zod.z.string().min(1).max(32),
|
|
631
|
+
startedAt: zod.z.iso.datetime(),
|
|
632
|
+
totalPv: PvSchema3,
|
|
633
|
+
items: zod.z.array(MarketingBonusTimelineItemSchema)
|
|
634
|
+
});
|
|
635
|
+
var MarketingBonusVolumesSchema = zod.z.object({
|
|
636
|
+
personalVolumePv: PvSchema3,
|
|
637
|
+
qualifiedReferralCount: zod.z.number().int().nonnegative(),
|
|
638
|
+
teamVolumePv: PvSchema3,
|
|
639
|
+
cumulativeLeftPv: PvSchema3,
|
|
640
|
+
cumulativeRightPv: PvSchema3
|
|
641
|
+
});
|
|
642
|
+
var BonusOpportunityBaseSchema = zod.z.object({
|
|
643
|
+
priority: zod.z.number().int().nonnegative()
|
|
644
|
+
});
|
|
645
|
+
var ActivateBoxOpportunitySchema = BonusOpportunityBaseSchema.extend({
|
|
646
|
+
type: zod.z.literal("ACTIVATE_BOX" /* ACTIVATE_BOX */)
|
|
647
|
+
});
|
|
648
|
+
var RankProgressOpportunitySchema = BonusOpportunityBaseSchema.extend({
|
|
649
|
+
type: zod.z.literal("RANK_PROGRESS" /* RANK_PROGRESS */),
|
|
650
|
+
currentRankName: zod.z.string().min(1).max(160),
|
|
651
|
+
nextRankName: zod.z.string().min(1).max(160),
|
|
652
|
+
weakBranch: BinaryBranchSchema.nullable(),
|
|
653
|
+
currentWeakLegPv: PvSchema3,
|
|
654
|
+
requiredWeakLegPv: PvSchema3,
|
|
655
|
+
remainingPv: PvSchema3,
|
|
656
|
+
progressBasisPoints: zod.z.number().int().min(0).max(1e4),
|
|
657
|
+
rewardType: MarketingRankRewardTypeSchema,
|
|
658
|
+
rewardPv: PvSchema3.nullable(),
|
|
659
|
+
rewardName: zod.z.string().max(255).nullable(),
|
|
660
|
+
rewardImageUrl: zod.z.string().nullable(),
|
|
661
|
+
matchingLevelCount: zod.z.number().int().nonnegative(),
|
|
662
|
+
binaryPayoutLimitPv: PvSchema3.nullable()
|
|
663
|
+
});
|
|
664
|
+
var ExtraProgressOpportunitySchema = BonusOpportunityBaseSchema.extend(
|
|
665
|
+
{
|
|
666
|
+
type: zod.z.literal("EXTRA_PROGRESS" /* EXTRA_PROGRESS */),
|
|
667
|
+
qualifiedReferralCount: zod.z.number().int().nonnegative(),
|
|
668
|
+
progressInCycle: zod.z.number().int().min(0).max(2),
|
|
669
|
+
cycleSize: zod.z.literal(3),
|
|
670
|
+
remainingQualifiedReferrals: zod.z.number().int().min(1).max(3),
|
|
671
|
+
nextQualificationSequence: zod.z.number().int().positive(),
|
|
672
|
+
extraPercent: zod.z.number().int().min(0).max(100)
|
|
673
|
+
}
|
|
674
|
+
);
|
|
675
|
+
var BoxBenefitSnapshotSchema = zod.z.object({
|
|
676
|
+
publicId: zod.z.uuid(),
|
|
677
|
+
code: zod.z.string().min(1).max(64),
|
|
678
|
+
name: zod.z.string().min(1).max(160),
|
|
679
|
+
pvBudget: PvSchema3,
|
|
680
|
+
referralPercent: zod.z.number().int().min(0).max(100),
|
|
681
|
+
binaryPercent: zod.z.number().int().min(0).max(100),
|
|
682
|
+
extraBonusPercent: zod.z.number().int().min(0).max(100),
|
|
683
|
+
structureLevelCount: zod.z.number().int().nonnegative()
|
|
684
|
+
});
|
|
685
|
+
var BoxUpgradeOpportunitySchema = BonusOpportunityBaseSchema.extend({
|
|
686
|
+
type: zod.z.literal("BOX_UPGRADE" /* BOX_UPGRADE */),
|
|
687
|
+
currentBox: BoxBenefitSnapshotSchema,
|
|
688
|
+
nextBox: BoxBenefitSnapshotSchema
|
|
689
|
+
});
|
|
690
|
+
var WeakBranchOpportunitySchema = BonusOpportunityBaseSchema.extend({
|
|
691
|
+
type: zod.z.literal("WEAK_BRANCH" /* WEAK_BRANCH */),
|
|
692
|
+
weakBranch: BinaryBranchSchema,
|
|
693
|
+
leftPv: PvSchema3,
|
|
694
|
+
rightPv: PvSchema3,
|
|
695
|
+
differencePv: PvSchema3
|
|
696
|
+
});
|
|
697
|
+
var MarketingBonusOpportunitySchema = zod.z.discriminatedUnion("type", [
|
|
698
|
+
ActivateBoxOpportunitySchema,
|
|
699
|
+
RankProgressOpportunitySchema,
|
|
700
|
+
ExtraProgressOpportunitySchema,
|
|
701
|
+
BoxUpgradeOpportunitySchema,
|
|
702
|
+
WeakBranchOpportunitySchema
|
|
703
|
+
]);
|
|
704
|
+
zod.z.object({
|
|
705
|
+
summary: MarketingBonusSummaryResponseSchema,
|
|
706
|
+
previousTotalPv: PvSchema3.nullable(),
|
|
707
|
+
changeBasisPoints: zod.z.number().int().nullable(),
|
|
708
|
+
granularity: MarketingBonusTimelineGranularitySchema,
|
|
709
|
+
timeline: zod.z.array(MarketingBonusTimelinePointSchema),
|
|
710
|
+
volumes: MarketingBonusVolumesSchema,
|
|
711
|
+
opportunities: zod.z.array(MarketingBonusOpportunitySchema)
|
|
712
|
+
});
|
|
713
|
+
BaseListQuerySchema.extend({
|
|
714
|
+
type: MarketingBonusTypeSchema.optional(),
|
|
715
|
+
period: MarketingBonusPeriodSchema.optional()
|
|
716
|
+
});
|
|
717
|
+
var MarketingBonusHistorySourceSchema = zod.z.object({
|
|
718
|
+
id: zod.z.number().int().positive(),
|
|
719
|
+
login: zod.z.string().trim().max(255).nullable(),
|
|
720
|
+
fullName: zod.z.string().trim().max(255).nullable()
|
|
721
|
+
});
|
|
722
|
+
var MarketingBonusHistoryCycleSchema = zod.z.object({
|
|
723
|
+
publicId: zod.z.uuid(),
|
|
724
|
+
number: zod.z.number().int().positive(),
|
|
725
|
+
periodStartedAt: zod.z.iso.datetime(),
|
|
726
|
+
periodEndedAt: zod.z.iso.datetime()
|
|
727
|
+
});
|
|
728
|
+
var MarketingBonusHistoryContextSchema = zod.z.object({
|
|
729
|
+
referenceType: zod.z.string().max(100).nullable(),
|
|
730
|
+
referenceId: zod.z.string().max(100).nullable(),
|
|
731
|
+
sourceBoxCode: zod.z.string().max(64).nullable(),
|
|
732
|
+
sourceBoxName: zod.z.string().max(160).nullable(),
|
|
733
|
+
sourcePv: PvSchema3.nullable(),
|
|
734
|
+
appliedPercent: zod.z.number().min(0).max(100).nullable(),
|
|
735
|
+
structureLevel: zod.z.number().int().positive().nullable(),
|
|
736
|
+
binaryCycle: MarketingBonusHistoryCycleSchema.nullable()
|
|
737
|
+
});
|
|
738
|
+
var MarketingBonusHistoryItemSchema = zod.z.object({
|
|
739
|
+
id: zod.z.number().int().positive(),
|
|
740
|
+
type: MarketingBonusTypeSchema,
|
|
741
|
+
amountPv: PvSchema3,
|
|
742
|
+
createdAt: zod.z.iso.datetime(),
|
|
743
|
+
sourceUser: MarketingBonusHistorySourceSchema.nullable(),
|
|
744
|
+
context: MarketingBonusHistoryContextSchema
|
|
745
|
+
});
|
|
746
|
+
zod.z.object({
|
|
747
|
+
items: zod.z.array(MarketingBonusHistoryItemSchema),
|
|
748
|
+
meta: zod.z.object({
|
|
749
|
+
page: zod.z.number().int().positive(),
|
|
750
|
+
limit: zod.z.number().int().positive(),
|
|
751
|
+
total: zod.z.number().int().nonnegative(),
|
|
752
|
+
pageCount: zod.z.number().int().nonnegative()
|
|
753
|
+
})
|
|
754
|
+
});
|
|
584
755
|
var PvSchema4 = zod.z.string().regex(/^\d{1,16}\.\d{2}$/);
|
|
585
756
|
zod.z.object({
|
|
586
757
|
automaticEnabled: zod.z.boolean(),
|
|
@@ -680,7 +851,7 @@ var RegistrationAvailabilityResponseSchema = zod.z.object({
|
|
|
680
851
|
});
|
|
681
852
|
var ActionTokenSchema = zod.z.string().trim().min(40).max(500);
|
|
682
853
|
var RequestEmailVerificationSchema = zod.z.object({
|
|
683
|
-
email: zod.z.
|
|
854
|
+
email: zod.z.string().trim().pipe(zod.z.email())
|
|
684
855
|
});
|
|
685
856
|
var ConfirmEmailSchema = zod.z.object({
|
|
686
857
|
token: ActionTokenSchema
|