squarecommonblhelper 9.0.0 → 9.0.2
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.0.2
|
|
19
|
+
|
|
20
|
+
- AuthenticationCommonBL:
|
|
21
|
+
- add recovery_methods in GetUserDetailsV0ResponseZ.
|
|
22
|
+
|
|
23
|
+
### v9.0.1
|
|
24
|
+
|
|
25
|
+
- AuthenticationCommonBL:
|
|
26
|
+
- add user_profile_phone_number_country_code and user_profile_email_verified in GetUserDetailsV0ResponseZ.
|
|
27
|
+
|
|
18
28
|
### v9.0.0
|
|
19
29
|
|
|
20
30
|
- AuthenticationCommonBL:
|
package/dist/authentication.d.ts
CHANGED
|
@@ -27,15 +27,18 @@ declare class AuthenticationCommonBL {
|
|
|
27
27
|
user_profile_id: number;
|
|
28
28
|
user_profile_photo_storage_token: string | null;
|
|
29
29
|
user_profile_email: string | null;
|
|
30
|
+
user_profile_phone_number_country_code: string | null;
|
|
30
31
|
user_profile_phone_number: string | null;
|
|
31
32
|
user_profile_first_name: string | null;
|
|
32
33
|
user_profile_last_name: string | null;
|
|
34
|
+
user_profile_email_verified: string | null;
|
|
33
35
|
};
|
|
34
36
|
apps: string[];
|
|
35
37
|
sessions: {
|
|
36
38
|
app_name: string;
|
|
37
39
|
active_sessions: number;
|
|
38
40
|
}[];
|
|
41
|
+
recovery_methods: Record<string, boolean>;
|
|
39
42
|
};
|
|
40
43
|
};
|
|
41
44
|
log?: any;
|
|
@@ -74,10 +77,10 @@ declare class AuthenticationCommonBL {
|
|
|
74
77
|
user_profile_id: number;
|
|
75
78
|
user_profile_photo_storage_token: string | null;
|
|
76
79
|
user_profile_email: string | null;
|
|
80
|
+
user_profile_phone_number_country_code: string | null;
|
|
77
81
|
user_profile_phone_number: string | null;
|
|
78
82
|
user_profile_first_name: string | null;
|
|
79
83
|
user_profile_last_name: string | null;
|
|
80
|
-
user_profile_phone_number_country_code: string | null;
|
|
81
84
|
user_profile_email_verified: string | null;
|
|
82
85
|
}[];
|
|
83
86
|
affected_count: number;
|
|
@@ -59,23 +59,29 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
59
59
|
user_profile_id: z.ZodNumber;
|
|
60
60
|
user_profile_photo_storage_token: z.ZodNullable<z.ZodString>;
|
|
61
61
|
user_profile_email: z.ZodNullable<z.ZodString>;
|
|
62
|
+
user_profile_phone_number_country_code: z.ZodNullable<z.ZodString>;
|
|
62
63
|
user_profile_phone_number: z.ZodNullable<z.ZodString>;
|
|
63
64
|
user_profile_first_name: z.ZodNullable<z.ZodString>;
|
|
64
65
|
user_profile_last_name: z.ZodNullable<z.ZodString>;
|
|
66
|
+
user_profile_email_verified: z.ZodNullable<z.ZodString>;
|
|
65
67
|
}, "strict", z.ZodTypeAny, {
|
|
66
68
|
user_profile_id: number;
|
|
67
69
|
user_profile_photo_storage_token: string | null;
|
|
68
70
|
user_profile_email: string | null;
|
|
71
|
+
user_profile_phone_number_country_code: string | null;
|
|
69
72
|
user_profile_phone_number: string | null;
|
|
70
73
|
user_profile_first_name: string | null;
|
|
71
74
|
user_profile_last_name: string | null;
|
|
75
|
+
user_profile_email_verified: string | null;
|
|
72
76
|
}, {
|
|
73
77
|
user_profile_id: number;
|
|
74
78
|
user_profile_photo_storage_token: string | null;
|
|
75
79
|
user_profile_email: string | null;
|
|
80
|
+
user_profile_phone_number_country_code: string | null;
|
|
76
81
|
user_profile_phone_number: string | null;
|
|
77
82
|
user_profile_first_name: string | null;
|
|
78
83
|
user_profile_last_name: string | null;
|
|
84
|
+
user_profile_email_verified: string | null;
|
|
79
85
|
}>;
|
|
80
86
|
apps: z.ZodArray<z.ZodString, "many">;
|
|
81
87
|
sessions: z.ZodArray<z.ZodObject<{
|
|
@@ -88,6 +94,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
88
94
|
app_name: string;
|
|
89
95
|
active_sessions: number;
|
|
90
96
|
}>, "many">;
|
|
97
|
+
recovery_methods: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
91
98
|
}, "strict", z.ZodTypeAny, {
|
|
92
99
|
user_id: string;
|
|
93
100
|
username: string;
|
|
@@ -95,15 +102,18 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
95
102
|
user_profile_id: number;
|
|
96
103
|
user_profile_photo_storage_token: string | null;
|
|
97
104
|
user_profile_email: string | null;
|
|
105
|
+
user_profile_phone_number_country_code: string | null;
|
|
98
106
|
user_profile_phone_number: string | null;
|
|
99
107
|
user_profile_first_name: string | null;
|
|
100
108
|
user_profile_last_name: string | null;
|
|
109
|
+
user_profile_email_verified: string | null;
|
|
101
110
|
};
|
|
102
111
|
apps: string[];
|
|
103
112
|
sessions: {
|
|
104
113
|
app_name: string;
|
|
105
114
|
active_sessions: number;
|
|
106
115
|
}[];
|
|
116
|
+
recovery_methods: Record<string, boolean>;
|
|
107
117
|
}, {
|
|
108
118
|
user_id: string;
|
|
109
119
|
username: string;
|
|
@@ -111,15 +121,18 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
111
121
|
user_profile_id: number;
|
|
112
122
|
user_profile_photo_storage_token: string | null;
|
|
113
123
|
user_profile_email: string | null;
|
|
124
|
+
user_profile_phone_number_country_code: string | null;
|
|
114
125
|
user_profile_phone_number: string | null;
|
|
115
126
|
user_profile_first_name: string | null;
|
|
116
127
|
user_profile_last_name: string | null;
|
|
128
|
+
user_profile_email_verified: string | null;
|
|
117
129
|
};
|
|
118
130
|
apps: string[];
|
|
119
131
|
sessions: {
|
|
120
132
|
app_name: string;
|
|
121
133
|
active_sessions: number;
|
|
122
134
|
}[];
|
|
135
|
+
recovery_methods: Record<string, boolean>;
|
|
123
136
|
}>;
|
|
124
137
|
}, "strict", z.ZodTypeAny, {
|
|
125
138
|
main: {
|
|
@@ -129,15 +142,18 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
129
142
|
user_profile_id: number;
|
|
130
143
|
user_profile_photo_storage_token: string | null;
|
|
131
144
|
user_profile_email: string | null;
|
|
145
|
+
user_profile_phone_number_country_code: string | null;
|
|
132
146
|
user_profile_phone_number: string | null;
|
|
133
147
|
user_profile_first_name: string | null;
|
|
134
148
|
user_profile_last_name: string | null;
|
|
149
|
+
user_profile_email_verified: string | null;
|
|
135
150
|
};
|
|
136
151
|
apps: string[];
|
|
137
152
|
sessions: {
|
|
138
153
|
app_name: string;
|
|
139
154
|
active_sessions: number;
|
|
140
155
|
}[];
|
|
156
|
+
recovery_methods: Record<string, boolean>;
|
|
141
157
|
};
|
|
142
158
|
}, {
|
|
143
159
|
main: {
|
|
@@ -147,15 +163,18 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
147
163
|
user_profile_id: number;
|
|
148
164
|
user_profile_photo_storage_token: string | null;
|
|
149
165
|
user_profile_email: string | null;
|
|
166
|
+
user_profile_phone_number_country_code: string | null;
|
|
150
167
|
user_profile_phone_number: string | null;
|
|
151
168
|
user_profile_first_name: string | null;
|
|
152
169
|
user_profile_last_name: string | null;
|
|
170
|
+
user_profile_email_verified: string | null;
|
|
153
171
|
};
|
|
154
172
|
apps: string[];
|
|
155
173
|
sessions: {
|
|
156
174
|
app_name: string;
|
|
157
175
|
active_sessions: number;
|
|
158
176
|
}[];
|
|
177
|
+
recovery_methods: Record<string, boolean>;
|
|
159
178
|
};
|
|
160
179
|
}>;
|
|
161
180
|
}>, "strict", z.ZodTypeAny, {
|
|
@@ -168,15 +187,18 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
168
187
|
user_profile_id: number;
|
|
169
188
|
user_profile_photo_storage_token: string | null;
|
|
170
189
|
user_profile_email: string | null;
|
|
190
|
+
user_profile_phone_number_country_code: string | null;
|
|
171
191
|
user_profile_phone_number: string | null;
|
|
172
192
|
user_profile_first_name: string | null;
|
|
173
193
|
user_profile_last_name: string | null;
|
|
194
|
+
user_profile_email_verified: string | null;
|
|
174
195
|
};
|
|
175
196
|
apps: string[];
|
|
176
197
|
sessions: {
|
|
177
198
|
app_name: string;
|
|
178
199
|
active_sessions: number;
|
|
179
200
|
}[];
|
|
201
|
+
recovery_methods: Record<string, boolean>;
|
|
180
202
|
};
|
|
181
203
|
};
|
|
182
204
|
log?: any;
|
|
@@ -190,15 +212,18 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
190
212
|
user_profile_id: number;
|
|
191
213
|
user_profile_photo_storage_token: string | null;
|
|
192
214
|
user_profile_email: string | null;
|
|
215
|
+
user_profile_phone_number_country_code: string | null;
|
|
193
216
|
user_profile_phone_number: string | null;
|
|
194
217
|
user_profile_first_name: string | null;
|
|
195
218
|
user_profile_last_name: string | null;
|
|
219
|
+
user_profile_email_verified: string | null;
|
|
196
220
|
};
|
|
197
221
|
apps: string[];
|
|
198
222
|
sessions: {
|
|
199
223
|
app_name: string;
|
|
200
224
|
active_sessions: number;
|
|
201
225
|
}[];
|
|
226
|
+
recovery_methods: Record<string, boolean>;
|
|
202
227
|
};
|
|
203
228
|
};
|
|
204
229
|
log?: any;
|
|
@@ -320,20 +345,20 @@ declare const updateProfileDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendSh
|
|
|
320
345
|
user_profile_id: number;
|
|
321
346
|
user_profile_photo_storage_token: string | null;
|
|
322
347
|
user_profile_email: string | null;
|
|
348
|
+
user_profile_phone_number_country_code: string | null;
|
|
323
349
|
user_profile_phone_number: string | null;
|
|
324
350
|
user_profile_first_name: string | null;
|
|
325
351
|
user_profile_last_name: string | null;
|
|
326
|
-
user_profile_phone_number_country_code: string | null;
|
|
327
352
|
user_profile_email_verified: string | null;
|
|
328
353
|
}, {
|
|
329
354
|
user_id: string;
|
|
330
355
|
user_profile_id: number;
|
|
331
356
|
user_profile_photo_storage_token: string | null;
|
|
332
357
|
user_profile_email: string | null;
|
|
358
|
+
user_profile_phone_number_country_code: string | null;
|
|
333
359
|
user_profile_phone_number: string | null;
|
|
334
360
|
user_profile_first_name: string | null;
|
|
335
361
|
user_profile_last_name: string | null;
|
|
336
|
-
user_profile_phone_number_country_code: string | null;
|
|
337
362
|
user_profile_email_verified: string | null;
|
|
338
363
|
}>, "many">;
|
|
339
364
|
affected_count: z.ZodNumber;
|
|
@@ -343,10 +368,10 @@ declare const updateProfileDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendSh
|
|
|
343
368
|
user_profile_id: number;
|
|
344
369
|
user_profile_photo_storage_token: string | null;
|
|
345
370
|
user_profile_email: string | null;
|
|
371
|
+
user_profile_phone_number_country_code: string | null;
|
|
346
372
|
user_profile_phone_number: string | null;
|
|
347
373
|
user_profile_first_name: string | null;
|
|
348
374
|
user_profile_last_name: string | null;
|
|
349
|
-
user_profile_phone_number_country_code: string | null;
|
|
350
375
|
user_profile_email_verified: string | null;
|
|
351
376
|
}[];
|
|
352
377
|
affected_count: number;
|
|
@@ -356,10 +381,10 @@ declare const updateProfileDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendSh
|
|
|
356
381
|
user_profile_id: number;
|
|
357
382
|
user_profile_photo_storage_token: string | null;
|
|
358
383
|
user_profile_email: string | null;
|
|
384
|
+
user_profile_phone_number_country_code: string | null;
|
|
359
385
|
user_profile_phone_number: string | null;
|
|
360
386
|
user_profile_first_name: string | null;
|
|
361
387
|
user_profile_last_name: string | null;
|
|
362
|
-
user_profile_phone_number_country_code: string | null;
|
|
363
388
|
user_profile_email_verified: string | null;
|
|
364
389
|
}[];
|
|
365
390
|
affected_count: number;
|
|
@@ -372,10 +397,10 @@ declare const updateProfileDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendSh
|
|
|
372
397
|
user_profile_id: number;
|
|
373
398
|
user_profile_photo_storage_token: string | null;
|
|
374
399
|
user_profile_email: string | null;
|
|
400
|
+
user_profile_phone_number_country_code: string | null;
|
|
375
401
|
user_profile_phone_number: string | null;
|
|
376
402
|
user_profile_first_name: string | null;
|
|
377
403
|
user_profile_last_name: string | null;
|
|
378
|
-
user_profile_phone_number_country_code: string | null;
|
|
379
404
|
user_profile_email_verified: string | null;
|
|
380
405
|
}[];
|
|
381
406
|
affected_count: number;
|
|
@@ -389,10 +414,10 @@ declare const updateProfileDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendSh
|
|
|
389
414
|
user_profile_id: number;
|
|
390
415
|
user_profile_photo_storage_token: string | null;
|
|
391
416
|
user_profile_email: string | null;
|
|
417
|
+
user_profile_phone_number_country_code: string | null;
|
|
392
418
|
user_profile_phone_number: string | null;
|
|
393
419
|
user_profile_first_name: string | null;
|
|
394
420
|
user_profile_last_name: string | null;
|
|
395
|
-
user_profile_phone_number_country_code: string | null;
|
|
396
421
|
user_profile_email_verified: string | null;
|
|
397
422
|
}[];
|
|
398
423
|
affected_count: number;
|
|
@@ -17,15 +17,18 @@ const GetUserDetailsV0ResponseZ = APIOutputZ.extend({
|
|
|
17
17
|
user_profile_id: z.number(),
|
|
18
18
|
user_profile_photo_storage_token: z.string().nullable(),
|
|
19
19
|
user_profile_email: z.string().nullable(),
|
|
20
|
+
user_profile_phone_number_country_code: z.string().nullable(),
|
|
20
21
|
user_profile_phone_number: z.string().nullable(),
|
|
21
22
|
user_profile_first_name: z.string().nullable(),
|
|
22
23
|
user_profile_last_name: z.string().nullable(),
|
|
24
|
+
user_profile_email_verified: z.string().nullable(),
|
|
23
25
|
}),
|
|
24
26
|
apps: z.array(z.string()),
|
|
25
27
|
sessions: z.array(z.strictObject({
|
|
26
28
|
app_name: z.string(),
|
|
27
29
|
active_sessions: z.number(),
|
|
28
30
|
})),
|
|
31
|
+
recovery_methods: z.record(z.string(), z.boolean()),
|
|
29
32
|
}),
|
|
30
33
|
}),
|
|
31
34
|
});
|