squarecommonblhelper 10.0.0 → 10.1.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
package/dist/authentication.d.ts
CHANGED
|
@@ -65,7 +65,9 @@ declare class AuthenticationCommonBL {
|
|
|
65
65
|
getUserProfilePhotoV0(accessToken: string): Promise<Blob>;
|
|
66
66
|
updateUserProfilePhotoV0(accessToken: string, profilePhoto?: File): Promise<{
|
|
67
67
|
message: string | null;
|
|
68
|
-
data
|
|
68
|
+
data: {
|
|
69
|
+
main: string | null;
|
|
70
|
+
};
|
|
69
71
|
log?: any;
|
|
70
72
|
}>;
|
|
71
73
|
generateAccountBackupCodesV0(accessToken: string): Promise<{
|
package/dist/authentication.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fetchFileData, fetchJSONData } from "squarecommons";
|
|
2
|
-
import { DeleteUserV0ResponseZ, GenerateAccountBackupCodeV0ResponseZ, GetUserDetailsV0ResponseZ, GetUserRecoveryMethodsV0ResponseZ, LogoutAllV0ResponseZ, LogoutAppsV0ResponseZ, SendResetPasswordEmailV0ResponseZ, SendVerificationEmailV0ResponseZ, UpdateProfileDetailsV0ResponseZ, UpdateUsernameV0ResponseZ, UpdateUserRecoveryMethodsV0ResponseZ, ValidateEmailVerificationCodeV0ResponseZ, } from "./types/AuthenticationResponses.js";
|
|
2
|
+
import { DeleteUserV0ResponseZ, GenerateAccountBackupCodeV0ResponseZ, GetUserDetailsV0ResponseZ, GetUserRecoveryMethodsV0ResponseZ, LogoutAllV0ResponseZ, LogoutAppsV0ResponseZ, SendResetPasswordEmailV0ResponseZ, SendVerificationEmailV0ResponseZ, UpdateProfileDetailsV0ResponseZ, UpdateUsernameV0ResponseZ, UpdateUserProfilePhotoV0ResponseZ, UpdateUserRecoveryMethodsV0ResponseZ, ValidateEmailVerificationCodeV0ResponseZ, } from "./types/AuthenticationResponses.js";
|
|
3
3
|
class AuthenticationCommonBL {
|
|
4
4
|
commonBLBaseURL;
|
|
5
5
|
constructor(commonBLBaseURL = "http://localhost:10110") {
|
|
@@ -160,7 +160,7 @@ class AuthenticationCommonBL {
|
|
|
160
160
|
formData,
|
|
161
161
|
// query params
|
|
162
162
|
undefined);
|
|
163
|
-
return data;
|
|
163
|
+
return UpdateUserProfilePhotoV0ResponseZ.parse(data);
|
|
164
164
|
}
|
|
165
165
|
catch (error) {
|
|
166
166
|
throw error;
|
|
@@ -644,4 +644,30 @@ declare const GetUserRecoveryMethodsV0ResponseZ: z.ZodObject<z.objectUtil.extend
|
|
|
644
644
|
log?: any;
|
|
645
645
|
}>;
|
|
646
646
|
type GetUserRecoveryMethodsV0Response = z.infer<typeof GetUserRecoveryMethodsV0ResponseZ>;
|
|
647
|
-
|
|
647
|
+
declare const UpdateUserProfilePhotoV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
|
|
648
|
+
data: z.ZodAny;
|
|
649
|
+
message: z.ZodNullable<z.ZodString>;
|
|
650
|
+
log: z.ZodAny;
|
|
651
|
+
}, {
|
|
652
|
+
data: z.ZodObject<{
|
|
653
|
+
main: z.ZodNullable<z.ZodString>;
|
|
654
|
+
}, "strict", z.ZodTypeAny, {
|
|
655
|
+
main: string | null;
|
|
656
|
+
}, {
|
|
657
|
+
main: string | null;
|
|
658
|
+
}>;
|
|
659
|
+
}>, "strict", z.ZodTypeAny, {
|
|
660
|
+
message: string | null;
|
|
661
|
+
data: {
|
|
662
|
+
main: string | null;
|
|
663
|
+
};
|
|
664
|
+
log?: any;
|
|
665
|
+
}, {
|
|
666
|
+
message: string | null;
|
|
667
|
+
data: {
|
|
668
|
+
main: string | null;
|
|
669
|
+
};
|
|
670
|
+
log?: any;
|
|
671
|
+
}>;
|
|
672
|
+
type UpdateUserProfilePhotoV0Response = z.infer<typeof UpdateUserProfilePhotoV0ResponseZ>;
|
|
673
|
+
export { UpdateUsernameV0ResponseZ, UpdateUsernameV0Response, GetUserDetailsV0ResponseZ, GetUserDetailsV0Response, DeleteUserV0Response, DeleteUserV0ResponseZ, LogoutAllV0Response, LogoutAllV0ResponseZ, LogoutAppsV0Response, LogoutAppsV0ResponseZ, GenerateAccountBackupCodeV0Response, GenerateAccountBackupCodeV0ResponseZ, UpdateProfileDetailsV0ResponseZ, UpdateProfileDetailsV0Response, SendResetPasswordEmailV0ResponseZ, SendResetPasswordEmailV0Response, RecoveryMethodEnumZ, RecoveryMethodEnum, UpdateUserRecoveryMethodsV0ResponseZ, UpdateUserRecoveryMethodsV0Response, SendVerificationEmailV0ResponseZ, SendVerificationEmailV0Response, ValidateEmailVerificationCodeV0ResponseZ, ValidateEmailVerificationCodeV0Response, GetUserRecoveryMethodsV0ResponseZ, GetUserRecoveryMethodsV0Response, UpdateUserProfilePhotoV0ResponseZ, UpdateUserProfilePhotoV0Response, };
|
|
@@ -105,4 +105,9 @@ const GetUserRecoveryMethodsV0ResponseZ = APIOutputZ.extend({
|
|
|
105
105
|
main: z.record(RecoveryMethodEnumZ, z.boolean()),
|
|
106
106
|
}),
|
|
107
107
|
});
|
|
108
|
-
|
|
108
|
+
const UpdateUserProfilePhotoV0ResponseZ = APIOutputZ.extend({
|
|
109
|
+
data: z.strictObject({
|
|
110
|
+
main: z.string().nullable(),
|
|
111
|
+
}),
|
|
112
|
+
});
|
|
113
|
+
export { UpdateUsernameV0ResponseZ, GetUserDetailsV0ResponseZ, DeleteUserV0ResponseZ, LogoutAllV0ResponseZ, LogoutAppsV0ResponseZ, GenerateAccountBackupCodeV0ResponseZ, UpdateProfileDetailsV0ResponseZ, SendResetPasswordEmailV0ResponseZ, RecoveryMethodEnumZ, UpdateUserRecoveryMethodsV0ResponseZ, SendVerificationEmailV0ResponseZ, ValidateEmailVerificationCodeV0ResponseZ, GetUserRecoveryMethodsV0ResponseZ, UpdateUserProfilePhotoV0ResponseZ, };
|