squarecommonblhelper 11.2.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,11 @@ 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
+
18
23
  ### v11.2.0
19
24
 
20
25
  - AuthenticationCommonBL:
@@ -135,11 +135,11 @@ declare class AuthenticationCommonBL {
135
135
  total: number;
136
136
  available: number;
137
137
  generated_at: string;
138
- };
138
+ } | null;
139
139
  email_recovery_details: {
140
140
  expires_at: string;
141
141
  cooldown_reset_at: string;
142
- };
142
+ } | null;
143
143
  };
144
144
  log?: any;
145
145
  }>;
@@ -620,7 +620,7 @@ 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.ZodObject<{
623
+ email_recovery_details: z.ZodNullable<z.ZodObject<{
624
624
  expires_at: z.ZodString;
625
625
  cooldown_reset_at: z.ZodString;
626
626
  }, "strict", z.ZodTypeAny, {
@@ -629,8 +629,8 @@ declare const GetUserRecoveryMethodsV0ResponseZ: z.ZodObject<z.objectUtil.extend
629
629
  }, {
630
630
  expires_at: string;
631
631
  cooldown_reset_at: string;
632
- }>;
633
- backup_code_details: z.ZodObject<{
632
+ }>>;
633
+ backup_code_details: z.ZodNullable<z.ZodObject<{
634
634
  total: z.ZodNumber;
635
635
  available: z.ZodNumber;
636
636
  generated_at: z.ZodString;
@@ -642,29 +642,29 @@ declare const GetUserRecoveryMethodsV0ResponseZ: z.ZodObject<z.objectUtil.extend
642
642
  total: number;
643
643
  available: number;
644
644
  generated_at: string;
645
- }>;
645
+ }>>;
646
646
  }, "strict", z.ZodTypeAny, {
647
647
  main: Partial<Record<"EMAIL" | "BACKUP_CODE", boolean>>;
648
648
  backup_code_details: {
649
649
  total: number;
650
650
  available: number;
651
651
  generated_at: string;
652
- };
652
+ } | null;
653
653
  email_recovery_details: {
654
654
  expires_at: string;
655
655
  cooldown_reset_at: string;
656
- };
656
+ } | null;
657
657
  }, {
658
658
  main: Partial<Record<"EMAIL" | "BACKUP_CODE", boolean>>;
659
659
  backup_code_details: {
660
660
  total: number;
661
661
  available: number;
662
662
  generated_at: string;
663
- };
663
+ } | null;
664
664
  email_recovery_details: {
665
665
  expires_at: string;
666
666
  cooldown_reset_at: string;
667
- };
667
+ } | null;
668
668
  }>;
669
669
  }>, "strict", z.ZodTypeAny, {
670
670
  message: string | null;
@@ -674,11 +674,11 @@ declare const GetUserRecoveryMethodsV0ResponseZ: z.ZodObject<z.objectUtil.extend
674
674
  total: number;
675
675
  available: number;
676
676
  generated_at: string;
677
- };
677
+ } | null;
678
678
  email_recovery_details: {
679
679
  expires_at: string;
680
680
  cooldown_reset_at: string;
681
- };
681
+ } | null;
682
682
  };
683
683
  log?: any;
684
684
  }, {
@@ -689,11 +689,11 @@ declare const GetUserRecoveryMethodsV0ResponseZ: z.ZodObject<z.objectUtil.extend
689
689
  total: number;
690
690
  available: number;
691
691
  generated_at: string;
692
- };
692
+ } | null;
693
693
  email_recovery_details: {
694
694
  expires_at: string;
695
695
  cooldown_reset_at: string;
696
- };
696
+ } | null;
697
697
  };
698
698
  log?: any;
699
699
  }>;
@@ -100,15 +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.strictObject({
103
+ email_recovery_details: z
104
+ .strictObject({
104
105
  expires_at: z.string(),
105
106
  cooldown_reset_at: z.string(),
106
- }),
107
- backup_code_details: z.strictObject({
107
+ })
108
+ .nullable(),
109
+ backup_code_details: z
110
+ .strictObject({
108
111
  total: z.number(),
109
112
  available: z.number(),
110
113
  generated_at: z.string(),
111
- }),
114
+ })
115
+ .nullable(),
112
116
  }),
113
117
  });
114
118
  const UpdateUserProfilePhotoV0ResponseZ = APIOutputZ.extend({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarecommonblhelper",
3
- "version": "11.2.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",