squarecommonblhelper 11.1.0 → 11.2.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.
package/README.md CHANGED
@@ -15,6 +15,16 @@ helper for common bl for my projects.
15
15
 
16
16
  ## changelog
17
17
 
18
+ ### v11.2.1
19
+
20
+ - AuthenticationCommonBL:
21
+ - fix getUserRecoveryMethodsV0 response type.
22
+
23
+ ### v11.2.0
24
+
25
+ - AuthenticationCommonBL:
26
+ - update getUserRecoveryMethodsV0 response type.
27
+
18
28
  ### v11.1.0
19
29
 
20
30
  - all:
@@ -131,6 +131,15 @@ declare class AuthenticationCommonBL {
131
131
  message: string | null;
132
132
  data: {
133
133
  main: Partial<Record<"EMAIL" | "BACKUP_CODE", boolean>>;
134
+ backup_code_details: {
135
+ total: number;
136
+ available: number;
137
+ generated_at: string;
138
+ } | null;
139
+ email_recovery_details: {
140
+ expires_at: string;
141
+ cooldown_reset_at: string;
142
+ } | null;
134
143
  };
135
144
  log?: any;
136
145
  }>;
@@ -620,21 +620,80 @@ declare const GetUserRecoveryMethodsV0ResponseZ: z.ZodObject<z.objectUtil.extend
620
620
  }, {
621
621
  data: z.ZodObject<{
622
622
  main: z.ZodRecord<z.ZodEnum<["EMAIL", "BACKUP_CODE"]>, z.ZodBoolean>;
623
+ email_recovery_details: z.ZodNullable<z.ZodObject<{
624
+ expires_at: z.ZodString;
625
+ cooldown_reset_at: z.ZodString;
626
+ }, "strict", z.ZodTypeAny, {
627
+ expires_at: string;
628
+ cooldown_reset_at: string;
629
+ }, {
630
+ expires_at: string;
631
+ cooldown_reset_at: string;
632
+ }>>;
633
+ backup_code_details: z.ZodNullable<z.ZodObject<{
634
+ total: z.ZodNumber;
635
+ available: z.ZodNumber;
636
+ generated_at: z.ZodString;
637
+ }, "strict", z.ZodTypeAny, {
638
+ total: number;
639
+ available: number;
640
+ generated_at: string;
641
+ }, {
642
+ total: number;
643
+ available: number;
644
+ generated_at: string;
645
+ }>>;
623
646
  }, "strict", z.ZodTypeAny, {
624
647
  main: Partial<Record<"EMAIL" | "BACKUP_CODE", boolean>>;
648
+ backup_code_details: {
649
+ total: number;
650
+ available: number;
651
+ generated_at: string;
652
+ } | null;
653
+ email_recovery_details: {
654
+ expires_at: string;
655
+ cooldown_reset_at: string;
656
+ } | null;
625
657
  }, {
626
658
  main: Partial<Record<"EMAIL" | "BACKUP_CODE", boolean>>;
659
+ backup_code_details: {
660
+ total: number;
661
+ available: number;
662
+ generated_at: string;
663
+ } | null;
664
+ email_recovery_details: {
665
+ expires_at: string;
666
+ cooldown_reset_at: string;
667
+ } | null;
627
668
  }>;
628
669
  }>, "strict", z.ZodTypeAny, {
629
670
  message: string | null;
630
671
  data: {
631
672
  main: Partial<Record<"EMAIL" | "BACKUP_CODE", boolean>>;
673
+ backup_code_details: {
674
+ total: number;
675
+ available: number;
676
+ generated_at: string;
677
+ } | null;
678
+ email_recovery_details: {
679
+ expires_at: string;
680
+ cooldown_reset_at: string;
681
+ } | null;
632
682
  };
633
683
  log?: any;
634
684
  }, {
635
685
  message: string | null;
636
686
  data: {
637
687
  main: Partial<Record<"EMAIL" | "BACKUP_CODE", boolean>>;
688
+ backup_code_details: {
689
+ total: number;
690
+ available: number;
691
+ generated_at: string;
692
+ } | null;
693
+ email_recovery_details: {
694
+ expires_at: string;
695
+ cooldown_reset_at: string;
696
+ } | null;
638
697
  };
639
698
  log?: any;
640
699
  }>;
@@ -100,6 +100,19 @@ const ValidateEmailVerificationCodeV0ResponseZ = APIOutputZ.extend({
100
100
  const GetUserRecoveryMethodsV0ResponseZ = APIOutputZ.extend({
101
101
  data: z.strictObject({
102
102
  main: z.record(RecoveryMethodEnumZ, z.boolean()),
103
+ email_recovery_details: z
104
+ .strictObject({
105
+ expires_at: z.string(),
106
+ cooldown_reset_at: z.string(),
107
+ })
108
+ .nullable(),
109
+ backup_code_details: z
110
+ .strictObject({
111
+ total: z.number(),
112
+ available: z.number(),
113
+ generated_at: z.string(),
114
+ })
115
+ .nullable(),
103
116
  }),
104
117
  });
105
118
  const UpdateUserProfilePhotoV0ResponseZ = APIOutputZ.extend({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarecommonblhelper",
3
- "version": "11.1.0",
3
+ "version": "11.2.1",
4
4
  "description": "helper for common bl for my projects.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",