@blackcode_sa/metaestetics-api 1.7.9 → 1.7.10
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/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/services/auth.service.ts +4 -4
- package/src/validations/practitioner.schema.ts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -6128,8 +6128,8 @@ declare class AuthService extends BaseService {
|
|
|
6128
6128
|
signUpPractitioner(data: {
|
|
6129
6129
|
email: string;
|
|
6130
6130
|
password: string;
|
|
6131
|
-
firstName
|
|
6132
|
-
lastName
|
|
6131
|
+
firstName?: string;
|
|
6132
|
+
lastName?: string;
|
|
6133
6133
|
token?: string;
|
|
6134
6134
|
profileData?: Partial<CreatePractitionerData>;
|
|
6135
6135
|
}): Promise<{
|
|
@@ -13128,8 +13128,8 @@ declare const createPractitionerTokenSchema: z.ZodObject<{
|
|
|
13128
13128
|
declare const practitionerSignupSchema: z.ZodObject<{
|
|
13129
13129
|
email: z.ZodString;
|
|
13130
13130
|
password: z.ZodString;
|
|
13131
|
-
firstName: z.ZodString
|
|
13132
|
-
lastName: z.ZodString
|
|
13131
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
13132
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
13133
13133
|
token: z.ZodOptional<z.ZodString>;
|
|
13134
13134
|
profileData: z.ZodOptional<z.ZodObject<{
|
|
13135
13135
|
basicInfo: z.ZodOptional<z.ZodObject<{
|
|
@@ -13167,10 +13167,10 @@ declare const practitionerSignupSchema: z.ZodObject<{
|
|
|
13167
13167
|
certification?: any;
|
|
13168
13168
|
}>>;
|
|
13169
13169
|
}, "strip", z.ZodTypeAny, {
|
|
13170
|
-
firstName: string;
|
|
13171
|
-
lastName: string;
|
|
13172
13170
|
email: string;
|
|
13173
13171
|
password: string;
|
|
13172
|
+
firstName?: string | undefined;
|
|
13173
|
+
lastName?: string | undefined;
|
|
13174
13174
|
token?: string | undefined;
|
|
13175
13175
|
profileData?: {
|
|
13176
13176
|
basicInfo?: {
|
|
@@ -13182,10 +13182,10 @@ declare const practitionerSignupSchema: z.ZodObject<{
|
|
|
13182
13182
|
certification?: any;
|
|
13183
13183
|
} | undefined;
|
|
13184
13184
|
}, {
|
|
13185
|
-
firstName: string;
|
|
13186
|
-
lastName: string;
|
|
13187
13185
|
email: string;
|
|
13188
13186
|
password: string;
|
|
13187
|
+
firstName?: string | undefined;
|
|
13188
|
+
lastName?: string | undefined;
|
|
13189
13189
|
token?: string | undefined;
|
|
13190
13190
|
profileData?: {
|
|
13191
13191
|
basicInfo?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -6128,8 +6128,8 @@ declare class AuthService extends BaseService {
|
|
|
6128
6128
|
signUpPractitioner(data: {
|
|
6129
6129
|
email: string;
|
|
6130
6130
|
password: string;
|
|
6131
|
-
firstName
|
|
6132
|
-
lastName
|
|
6131
|
+
firstName?: string;
|
|
6132
|
+
lastName?: string;
|
|
6133
6133
|
token?: string;
|
|
6134
6134
|
profileData?: Partial<CreatePractitionerData>;
|
|
6135
6135
|
}): Promise<{
|
|
@@ -13128,8 +13128,8 @@ declare const createPractitionerTokenSchema: z.ZodObject<{
|
|
|
13128
13128
|
declare const practitionerSignupSchema: z.ZodObject<{
|
|
13129
13129
|
email: z.ZodString;
|
|
13130
13130
|
password: z.ZodString;
|
|
13131
|
-
firstName: z.ZodString
|
|
13132
|
-
lastName: z.ZodString
|
|
13131
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
13132
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
13133
13133
|
token: z.ZodOptional<z.ZodString>;
|
|
13134
13134
|
profileData: z.ZodOptional<z.ZodObject<{
|
|
13135
13135
|
basicInfo: z.ZodOptional<z.ZodObject<{
|
|
@@ -13167,10 +13167,10 @@ declare const practitionerSignupSchema: z.ZodObject<{
|
|
|
13167
13167
|
certification?: any;
|
|
13168
13168
|
}>>;
|
|
13169
13169
|
}, "strip", z.ZodTypeAny, {
|
|
13170
|
-
firstName: string;
|
|
13171
|
-
lastName: string;
|
|
13172
13170
|
email: string;
|
|
13173
13171
|
password: string;
|
|
13172
|
+
firstName?: string | undefined;
|
|
13173
|
+
lastName?: string | undefined;
|
|
13174
13174
|
token?: string | undefined;
|
|
13175
13175
|
profileData?: {
|
|
13176
13176
|
basicInfo?: {
|
|
@@ -13182,10 +13182,10 @@ declare const practitionerSignupSchema: z.ZodObject<{
|
|
|
13182
13182
|
certification?: any;
|
|
13183
13183
|
} | undefined;
|
|
13184
13184
|
}, {
|
|
13185
|
-
firstName: string;
|
|
13186
|
-
lastName: string;
|
|
13187
13185
|
email: string;
|
|
13188
13186
|
password: string;
|
|
13187
|
+
firstName?: string | undefined;
|
|
13188
|
+
lastName?: string | undefined;
|
|
13189
13189
|
token?: string | undefined;
|
|
13190
13190
|
profileData?: {
|
|
13191
13191
|
basicInfo?: {
|
package/dist/index.js
CHANGED
|
@@ -4183,8 +4183,8 @@ var createPractitionerTokenSchema = import_zod13.z.object({
|
|
|
4183
4183
|
var practitionerSignupSchema = import_zod13.z.object({
|
|
4184
4184
|
email: import_zod13.z.string().email(),
|
|
4185
4185
|
password: import_zod13.z.string().min(8),
|
|
4186
|
-
firstName: import_zod13.z.string().min(2).max(50),
|
|
4187
|
-
lastName: import_zod13.z.string().min(2).max(50),
|
|
4186
|
+
firstName: import_zod13.z.string().min(2).max(50).optional(),
|
|
4187
|
+
lastName: import_zod13.z.string().min(2).max(50).optional(),
|
|
4188
4188
|
token: import_zod13.z.string().optional(),
|
|
4189
4189
|
profileData: import_zod13.z.object({
|
|
4190
4190
|
basicInfo: import_zod13.z.object({
|
|
@@ -7919,8 +7919,8 @@ var AuthService = class extends BaseService {
|
|
|
7919
7919
|
data.profileData = {};
|
|
7920
7920
|
}
|
|
7921
7921
|
const basicInfo = {
|
|
7922
|
-
firstName: data.firstName,
|
|
7923
|
-
lastName: data.lastName,
|
|
7922
|
+
firstName: data.firstName || "",
|
|
7923
|
+
lastName: data.lastName || "",
|
|
7924
7924
|
email: data.email,
|
|
7925
7925
|
phoneNumber: ((_a = data.profileData.basicInfo) == null ? void 0 : _a.phoneNumber) || "",
|
|
7926
7926
|
profileImageUrl: ((_b = data.profileData.basicInfo) == null ? void 0 : _b.profileImageUrl) || "",
|
package/dist/index.mjs
CHANGED
|
@@ -4076,8 +4076,8 @@ var createPractitionerTokenSchema = z13.object({
|
|
|
4076
4076
|
var practitionerSignupSchema = z13.object({
|
|
4077
4077
|
email: z13.string().email(),
|
|
4078
4078
|
password: z13.string().min(8),
|
|
4079
|
-
firstName: z13.string().min(2).max(50),
|
|
4080
|
-
lastName: z13.string().min(2).max(50),
|
|
4079
|
+
firstName: z13.string().min(2).max(50).optional(),
|
|
4080
|
+
lastName: z13.string().min(2).max(50).optional(),
|
|
4081
4081
|
token: z13.string().optional(),
|
|
4082
4082
|
profileData: z13.object({
|
|
4083
4083
|
basicInfo: z13.object({
|
|
@@ -7884,8 +7884,8 @@ var AuthService = class extends BaseService {
|
|
|
7884
7884
|
data.profileData = {};
|
|
7885
7885
|
}
|
|
7886
7886
|
const basicInfo = {
|
|
7887
|
-
firstName: data.firstName,
|
|
7888
|
-
lastName: data.lastName,
|
|
7887
|
+
firstName: data.firstName || "",
|
|
7888
|
+
lastName: data.lastName || "",
|
|
7889
7889
|
email: data.email,
|
|
7890
7890
|
phoneNumber: ((_a = data.profileData.basicInfo) == null ? void 0 : _a.phoneNumber) || "",
|
|
7891
7891
|
profileImageUrl: ((_b = data.profileData.basicInfo) == null ? void 0 : _b.profileImageUrl) || "",
|
package/package.json
CHANGED
|
@@ -884,8 +884,8 @@ export class AuthService extends BaseService {
|
|
|
884
884
|
async signUpPractitioner(data: {
|
|
885
885
|
email: string;
|
|
886
886
|
password: string;
|
|
887
|
-
firstName
|
|
888
|
-
lastName
|
|
887
|
+
firstName?: string;
|
|
888
|
+
lastName?: string;
|
|
889
889
|
token?: string;
|
|
890
890
|
profileData?: Partial<CreatePractitionerData>;
|
|
891
891
|
}): Promise<{
|
|
@@ -996,8 +996,8 @@ export class AuthService extends BaseService {
|
|
|
996
996
|
|
|
997
997
|
// We need to create a full PractitionerBasicInfo object
|
|
998
998
|
const basicInfo: PractitionerBasicInfo = {
|
|
999
|
-
firstName: data.firstName,
|
|
1000
|
-
lastName: data.lastName,
|
|
999
|
+
firstName: data.firstName || "",
|
|
1000
|
+
lastName: data.lastName || "",
|
|
1001
1001
|
email: data.email,
|
|
1002
1002
|
phoneNumber: data.profileData.basicInfo?.phoneNumber || "",
|
|
1003
1003
|
profileImageUrl: data.profileData.basicInfo?.profileImageUrl || "",
|
|
@@ -196,8 +196,8 @@ export const createPractitionerTokenSchema = z.object({
|
|
|
196
196
|
export const practitionerSignupSchema = z.object({
|
|
197
197
|
email: z.string().email(),
|
|
198
198
|
password: z.string().min(8),
|
|
199
|
-
firstName: z.string().min(2).max(50),
|
|
200
|
-
lastName: z.string().min(2).max(50),
|
|
199
|
+
firstName: z.string().min(2).max(50).optional(),
|
|
200
|
+
lastName: z.string().min(2).max(50).optional(),
|
|
201
201
|
token: z.string().optional(),
|
|
202
202
|
profileData: z
|
|
203
203
|
.object({
|