squarecommonblhelper 9.2.2 → 9.3.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
CHANGED
|
@@ -15,6 +15,16 @@ helper for common bl for my projects.
|
|
|
15
15
|
|
|
16
16
|
## changelog
|
|
17
17
|
|
|
18
|
+
### v9.3.0
|
|
19
|
+
|
|
20
|
+
- AuthenticationCommonBL:
|
|
21
|
+
- add backup_code_details in GetUserDetailsV0ResponseZ.
|
|
22
|
+
|
|
23
|
+
### v9.2.3
|
|
24
|
+
|
|
25
|
+
- AuthenticationCommonBL:
|
|
26
|
+
- updateUserRecoveryMethodsV0 now compatible with square_common_bl>=6.0.0
|
|
27
|
+
|
|
18
28
|
### v9.2.2
|
|
19
29
|
|
|
20
30
|
- AuthenticationCommonBL:
|
package/dist/authentication.d.ts
CHANGED
package/dist/authentication.js
CHANGED
|
@@ -259,12 +259,12 @@ class AuthenticationCommonBL {
|
|
|
259
259
|
// headers
|
|
260
260
|
{ access_token: accessToken },
|
|
261
261
|
// body
|
|
262
|
-
undefined,
|
|
263
|
-
// query params
|
|
264
262
|
{
|
|
265
263
|
recovery_methods_to_add: recoveryMethodsToAdd,
|
|
266
264
|
recovery_methods_to_remove: recoveryMethodsToRemove,
|
|
267
|
-
}
|
|
265
|
+
},
|
|
266
|
+
// query params
|
|
267
|
+
undefined);
|
|
268
268
|
return updateUserRecoveryMethodsV0ResponseZ.parse(data);
|
|
269
269
|
}
|
|
270
270
|
catch (error) {
|
|
@@ -107,6 +107,19 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
107
107
|
expires_at: string;
|
|
108
108
|
cooldown_reset_at: string;
|
|
109
109
|
}>>;
|
|
110
|
+
backup_code_details: z.ZodNullable<z.ZodObject<{
|
|
111
|
+
total: z.ZodNumber;
|
|
112
|
+
available: z.ZodNumber;
|
|
113
|
+
generated_at: z.ZodNullable<z.ZodString>;
|
|
114
|
+
}, "strict", z.ZodTypeAny, {
|
|
115
|
+
total: number;
|
|
116
|
+
available: number;
|
|
117
|
+
generated_at: string | null;
|
|
118
|
+
}, {
|
|
119
|
+
total: number;
|
|
120
|
+
available: number;
|
|
121
|
+
generated_at: string | null;
|
|
122
|
+
}>>;
|
|
110
123
|
}, "strict", z.ZodTypeAny, {
|
|
111
124
|
user_id: string;
|
|
112
125
|
username: string;
|
|
@@ -130,6 +143,11 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
130
143
|
expires_at: string;
|
|
131
144
|
cooldown_reset_at: string;
|
|
132
145
|
} | null;
|
|
146
|
+
backup_code_details: {
|
|
147
|
+
total: number;
|
|
148
|
+
available: number;
|
|
149
|
+
generated_at: string | null;
|
|
150
|
+
} | null;
|
|
133
151
|
}, {
|
|
134
152
|
user_id: string;
|
|
135
153
|
username: string;
|
|
@@ -153,6 +171,11 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
153
171
|
expires_at: string;
|
|
154
172
|
cooldown_reset_at: string;
|
|
155
173
|
} | null;
|
|
174
|
+
backup_code_details: {
|
|
175
|
+
total: number;
|
|
176
|
+
available: number;
|
|
177
|
+
generated_at: string | null;
|
|
178
|
+
} | null;
|
|
156
179
|
}>;
|
|
157
180
|
}, "strict", z.ZodTypeAny, {
|
|
158
181
|
main: {
|
|
@@ -178,6 +201,11 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
178
201
|
expires_at: string;
|
|
179
202
|
cooldown_reset_at: string;
|
|
180
203
|
} | null;
|
|
204
|
+
backup_code_details: {
|
|
205
|
+
total: number;
|
|
206
|
+
available: number;
|
|
207
|
+
generated_at: string | null;
|
|
208
|
+
} | null;
|
|
181
209
|
};
|
|
182
210
|
}, {
|
|
183
211
|
main: {
|
|
@@ -203,6 +231,11 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
203
231
|
expires_at: string;
|
|
204
232
|
cooldown_reset_at: string;
|
|
205
233
|
} | null;
|
|
234
|
+
backup_code_details: {
|
|
235
|
+
total: number;
|
|
236
|
+
available: number;
|
|
237
|
+
generated_at: string | null;
|
|
238
|
+
} | null;
|
|
206
239
|
};
|
|
207
240
|
}>;
|
|
208
241
|
}>, "strict", z.ZodTypeAny, {
|
|
@@ -231,6 +264,11 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
231
264
|
expires_at: string;
|
|
232
265
|
cooldown_reset_at: string;
|
|
233
266
|
} | null;
|
|
267
|
+
backup_code_details: {
|
|
268
|
+
total: number;
|
|
269
|
+
available: number;
|
|
270
|
+
generated_at: string | null;
|
|
271
|
+
} | null;
|
|
234
272
|
};
|
|
235
273
|
};
|
|
236
274
|
log?: any;
|
|
@@ -260,6 +298,11 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
260
298
|
expires_at: string;
|
|
261
299
|
cooldown_reset_at: string;
|
|
262
300
|
} | null;
|
|
301
|
+
backup_code_details: {
|
|
302
|
+
total: number;
|
|
303
|
+
available: number;
|
|
304
|
+
generated_at: string | null;
|
|
305
|
+
} | null;
|
|
263
306
|
};
|
|
264
307
|
};
|
|
265
308
|
log?: any;
|
|
@@ -33,6 +33,13 @@ const GetUserDetailsV0ResponseZ = APIOutputZ.extend({
|
|
|
33
33
|
email_verification_details: z
|
|
34
34
|
.strictObject({ expires_at: z.string(), cooldown_reset_at: z.string() })
|
|
35
35
|
.nullable(),
|
|
36
|
+
backup_code_details: z
|
|
37
|
+
.strictObject({
|
|
38
|
+
total: z.number(),
|
|
39
|
+
available: z.number(),
|
|
40
|
+
generated_at: z.string().nullable(),
|
|
41
|
+
})
|
|
42
|
+
.nullable(),
|
|
36
43
|
}),
|
|
37
44
|
}),
|
|
38
45
|
});
|