@blackcode_sa/metaestetics-api 1.7.3 → 1.7.5
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/admin/index.d.mts +41 -8
- package/dist/admin/index.d.ts +41 -8
- package/dist/admin/index.js +621 -109
- package/dist/admin/index.mjs +621 -109
- package/dist/index.d.mts +18 -17
- package/dist/index.d.ts +18 -17
- package/dist/index.js +1024 -1014
- package/dist/index.mjs +296 -286
- package/package.json +1 -1
- package/src/admin/aggregation/appointment/appointment.aggregation.service.ts +553 -112
- package/src/admin/calendar/calendar.admin.service.ts +230 -65
- package/src/services/calendar/calendar-refactored.service.ts +2 -0
- package/src/services/media/media.service.ts +330 -0
- package/src/types/calendar/index.ts +1 -0
- package/src/types/index.ts +7 -7
- package/src/validations/schemas.ts +17 -6
package/dist/index.d.mts
CHANGED
|
@@ -5154,7 +5154,8 @@ declare enum CalendarEventStatus {
|
|
|
5154
5154
|
REJECTED = "rejected",// When event is rejected by the clinic administrator or patient
|
|
5155
5155
|
CANCELED = "canceled",// When event is canceled by the patient
|
|
5156
5156
|
RESCHEDULED = "rescheduled",// When event is rescheduled by the clinic administrator
|
|
5157
|
-
COMPLETED = "completed"
|
|
5157
|
+
COMPLETED = "completed",// When event is completed
|
|
5158
|
+
NO_SHOW = "no_show"
|
|
5158
5159
|
}
|
|
5159
5160
|
/**
|
|
5160
5161
|
* Enum for calendar event sync status
|
|
@@ -5349,9 +5350,9 @@ interface User {
|
|
|
5349
5350
|
email: string | null;
|
|
5350
5351
|
roles: UserRole[];
|
|
5351
5352
|
isAnonymous: boolean;
|
|
5352
|
-
createdAt: Timestamp | FieldValue;
|
|
5353
|
-
updatedAt: Timestamp | FieldValue;
|
|
5354
|
-
lastLoginAt: Timestamp | FieldValue;
|
|
5353
|
+
createdAt: Timestamp | FieldValue | (() => FieldValue);
|
|
5354
|
+
updatedAt: Timestamp | FieldValue | (() => FieldValue);
|
|
5355
|
+
lastLoginAt: Timestamp | FieldValue | (() => FieldValue);
|
|
5355
5356
|
patientProfile?: string;
|
|
5356
5357
|
practitionerProfile?: string;
|
|
5357
5358
|
adminProfile?: string;
|
|
@@ -5361,9 +5362,9 @@ interface CreateUserData {
|
|
|
5361
5362
|
email: string | null;
|
|
5362
5363
|
roles: UserRole[];
|
|
5363
5364
|
isAnonymous: boolean;
|
|
5364
|
-
createdAt: FieldValue;
|
|
5365
|
-
updatedAt: FieldValue;
|
|
5366
|
-
lastLoginAt: FieldValue;
|
|
5365
|
+
createdAt: FieldValue | Timestamp | (() => FieldValue);
|
|
5366
|
+
updatedAt: FieldValue | Timestamp | (() => FieldValue);
|
|
5367
|
+
lastLoginAt: FieldValue | Timestamp | (() => FieldValue);
|
|
5367
5368
|
}
|
|
5368
5369
|
type FirebaseUser = User$1;
|
|
5369
5370
|
|
|
@@ -7652,7 +7653,7 @@ declare const emailSchema: z.ZodString;
|
|
|
7652
7653
|
declare const passwordSchema: z.ZodString;
|
|
7653
7654
|
declare const userRoleSchema: z.ZodNativeEnum<typeof UserRole>;
|
|
7654
7655
|
declare const userRolesSchema: z.ZodArray<z.ZodNativeEnum<typeof UserRole>, "many">;
|
|
7655
|
-
declare const timestampSchema: z.ZodType<Timestamp | FieldValue, z.ZodTypeDef, Timestamp | FieldValue>;
|
|
7656
|
+
declare const timestampSchema: z.ZodType<Timestamp | FieldValue | (() => FieldValue), z.ZodTypeDef, Timestamp | FieldValue | (() => FieldValue)>;
|
|
7656
7657
|
/**
|
|
7657
7658
|
* Validaciona šema za clinic admin opcije pri kreiranju
|
|
7658
7659
|
*/
|
|
@@ -7720,31 +7721,31 @@ declare const userSchema: z.ZodObject<{
|
|
|
7720
7721
|
email: z.ZodNullable<z.ZodString>;
|
|
7721
7722
|
roles: z.ZodArray<z.ZodNativeEnum<typeof UserRole>, "many">;
|
|
7722
7723
|
isAnonymous: z.ZodBoolean;
|
|
7723
|
-
createdAt: z.ZodType<Timestamp | FieldValue, z.ZodTypeDef, Timestamp | FieldValue>;
|
|
7724
|
-
updatedAt: z.ZodType<Timestamp | FieldValue, z.ZodTypeDef, Timestamp | FieldValue>;
|
|
7725
|
-
lastLoginAt: z.ZodType<Timestamp | FieldValue, z.ZodTypeDef, Timestamp | FieldValue>;
|
|
7724
|
+
createdAt: z.ZodType<Timestamp | FieldValue | (() => FieldValue), z.ZodTypeDef, Timestamp | FieldValue | (() => FieldValue)>;
|
|
7725
|
+
updatedAt: z.ZodType<Timestamp | FieldValue | (() => FieldValue), z.ZodTypeDef, Timestamp | FieldValue | (() => FieldValue)>;
|
|
7726
|
+
lastLoginAt: z.ZodType<Timestamp | FieldValue | (() => FieldValue), z.ZodTypeDef, Timestamp | FieldValue | (() => FieldValue)>;
|
|
7726
7727
|
patientProfile: z.ZodOptional<z.ZodString>;
|
|
7727
7728
|
practitionerProfile: z.ZodOptional<z.ZodString>;
|
|
7728
7729
|
adminProfile: z.ZodOptional<z.ZodString>;
|
|
7729
7730
|
}, "strip", z.ZodTypeAny, {
|
|
7730
|
-
createdAt: Timestamp | FieldValue;
|
|
7731
|
-
updatedAt: Timestamp | FieldValue;
|
|
7731
|
+
createdAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7732
|
+
updatedAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7732
7733
|
email: string | null;
|
|
7733
7734
|
uid: string;
|
|
7734
7735
|
roles: UserRole[];
|
|
7735
7736
|
isAnonymous: boolean;
|
|
7736
|
-
lastLoginAt: Timestamp | FieldValue;
|
|
7737
|
+
lastLoginAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7737
7738
|
patientProfile?: string | undefined;
|
|
7738
7739
|
practitionerProfile?: string | undefined;
|
|
7739
7740
|
adminProfile?: string | undefined;
|
|
7740
7741
|
}, {
|
|
7741
|
-
createdAt: Timestamp | FieldValue;
|
|
7742
|
-
updatedAt: Timestamp | FieldValue;
|
|
7742
|
+
createdAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7743
|
+
updatedAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7743
7744
|
email: string | null;
|
|
7744
7745
|
uid: string;
|
|
7745
7746
|
roles: UserRole[];
|
|
7746
7747
|
isAnonymous: boolean;
|
|
7747
|
-
lastLoginAt: Timestamp | FieldValue;
|
|
7748
|
+
lastLoginAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7748
7749
|
patientProfile?: string | undefined;
|
|
7749
7750
|
practitionerProfile?: string | undefined;
|
|
7750
7751
|
adminProfile?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -5154,7 +5154,8 @@ declare enum CalendarEventStatus {
|
|
|
5154
5154
|
REJECTED = "rejected",// When event is rejected by the clinic administrator or patient
|
|
5155
5155
|
CANCELED = "canceled",// When event is canceled by the patient
|
|
5156
5156
|
RESCHEDULED = "rescheduled",// When event is rescheduled by the clinic administrator
|
|
5157
|
-
COMPLETED = "completed"
|
|
5157
|
+
COMPLETED = "completed",// When event is completed
|
|
5158
|
+
NO_SHOW = "no_show"
|
|
5158
5159
|
}
|
|
5159
5160
|
/**
|
|
5160
5161
|
* Enum for calendar event sync status
|
|
@@ -5349,9 +5350,9 @@ interface User {
|
|
|
5349
5350
|
email: string | null;
|
|
5350
5351
|
roles: UserRole[];
|
|
5351
5352
|
isAnonymous: boolean;
|
|
5352
|
-
createdAt: Timestamp | FieldValue;
|
|
5353
|
-
updatedAt: Timestamp | FieldValue;
|
|
5354
|
-
lastLoginAt: Timestamp | FieldValue;
|
|
5353
|
+
createdAt: Timestamp | FieldValue | (() => FieldValue);
|
|
5354
|
+
updatedAt: Timestamp | FieldValue | (() => FieldValue);
|
|
5355
|
+
lastLoginAt: Timestamp | FieldValue | (() => FieldValue);
|
|
5355
5356
|
patientProfile?: string;
|
|
5356
5357
|
practitionerProfile?: string;
|
|
5357
5358
|
adminProfile?: string;
|
|
@@ -5361,9 +5362,9 @@ interface CreateUserData {
|
|
|
5361
5362
|
email: string | null;
|
|
5362
5363
|
roles: UserRole[];
|
|
5363
5364
|
isAnonymous: boolean;
|
|
5364
|
-
createdAt: FieldValue;
|
|
5365
|
-
updatedAt: FieldValue;
|
|
5366
|
-
lastLoginAt: FieldValue;
|
|
5365
|
+
createdAt: FieldValue | Timestamp | (() => FieldValue);
|
|
5366
|
+
updatedAt: FieldValue | Timestamp | (() => FieldValue);
|
|
5367
|
+
lastLoginAt: FieldValue | Timestamp | (() => FieldValue);
|
|
5367
5368
|
}
|
|
5368
5369
|
type FirebaseUser = User$1;
|
|
5369
5370
|
|
|
@@ -7652,7 +7653,7 @@ declare const emailSchema: z.ZodString;
|
|
|
7652
7653
|
declare const passwordSchema: z.ZodString;
|
|
7653
7654
|
declare const userRoleSchema: z.ZodNativeEnum<typeof UserRole>;
|
|
7654
7655
|
declare const userRolesSchema: z.ZodArray<z.ZodNativeEnum<typeof UserRole>, "many">;
|
|
7655
|
-
declare const timestampSchema: z.ZodType<Timestamp | FieldValue, z.ZodTypeDef, Timestamp | FieldValue>;
|
|
7656
|
+
declare const timestampSchema: z.ZodType<Timestamp | FieldValue | (() => FieldValue), z.ZodTypeDef, Timestamp | FieldValue | (() => FieldValue)>;
|
|
7656
7657
|
/**
|
|
7657
7658
|
* Validaciona šema za clinic admin opcije pri kreiranju
|
|
7658
7659
|
*/
|
|
@@ -7720,31 +7721,31 @@ declare const userSchema: z.ZodObject<{
|
|
|
7720
7721
|
email: z.ZodNullable<z.ZodString>;
|
|
7721
7722
|
roles: z.ZodArray<z.ZodNativeEnum<typeof UserRole>, "many">;
|
|
7722
7723
|
isAnonymous: z.ZodBoolean;
|
|
7723
|
-
createdAt: z.ZodType<Timestamp | FieldValue, z.ZodTypeDef, Timestamp | FieldValue>;
|
|
7724
|
-
updatedAt: z.ZodType<Timestamp | FieldValue, z.ZodTypeDef, Timestamp | FieldValue>;
|
|
7725
|
-
lastLoginAt: z.ZodType<Timestamp | FieldValue, z.ZodTypeDef, Timestamp | FieldValue>;
|
|
7724
|
+
createdAt: z.ZodType<Timestamp | FieldValue | (() => FieldValue), z.ZodTypeDef, Timestamp | FieldValue | (() => FieldValue)>;
|
|
7725
|
+
updatedAt: z.ZodType<Timestamp | FieldValue | (() => FieldValue), z.ZodTypeDef, Timestamp | FieldValue | (() => FieldValue)>;
|
|
7726
|
+
lastLoginAt: z.ZodType<Timestamp | FieldValue | (() => FieldValue), z.ZodTypeDef, Timestamp | FieldValue | (() => FieldValue)>;
|
|
7726
7727
|
patientProfile: z.ZodOptional<z.ZodString>;
|
|
7727
7728
|
practitionerProfile: z.ZodOptional<z.ZodString>;
|
|
7728
7729
|
adminProfile: z.ZodOptional<z.ZodString>;
|
|
7729
7730
|
}, "strip", z.ZodTypeAny, {
|
|
7730
|
-
createdAt: Timestamp | FieldValue;
|
|
7731
|
-
updatedAt: Timestamp | FieldValue;
|
|
7731
|
+
createdAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7732
|
+
updatedAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7732
7733
|
email: string | null;
|
|
7733
7734
|
uid: string;
|
|
7734
7735
|
roles: UserRole[];
|
|
7735
7736
|
isAnonymous: boolean;
|
|
7736
|
-
lastLoginAt: Timestamp | FieldValue;
|
|
7737
|
+
lastLoginAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7737
7738
|
patientProfile?: string | undefined;
|
|
7738
7739
|
practitionerProfile?: string | undefined;
|
|
7739
7740
|
adminProfile?: string | undefined;
|
|
7740
7741
|
}, {
|
|
7741
|
-
createdAt: Timestamp | FieldValue;
|
|
7742
|
-
updatedAt: Timestamp | FieldValue;
|
|
7742
|
+
createdAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7743
|
+
updatedAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7743
7744
|
email: string | null;
|
|
7744
7745
|
uid: string;
|
|
7745
7746
|
roles: UserRole[];
|
|
7746
7747
|
isAnonymous: boolean;
|
|
7747
|
-
lastLoginAt: Timestamp | FieldValue;
|
|
7748
|
+
lastLoginAt: Timestamp | FieldValue | (() => FieldValue);
|
|
7748
7749
|
patientProfile?: string | undefined;
|
|
7749
7750
|
practitionerProfile?: string | undefined;
|
|
7750
7751
|
adminProfile?: string | undefined;
|