@blackcode_sa/metaestetics-api 1.7.38 → 1.7.40
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 +67 -3
- package/dist/admin/index.d.ts +67 -3
- package/dist/index.d.mts +354 -14
- package/dist/index.d.ts +354 -14
- package/dist/index.js +180 -150
- package/dist/index.mjs +177 -147
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/types/appointment/index.ts +75 -3
- package/src/validations/appointment.schema.ts +52 -1
package/dist/index.d.ts
CHANGED
|
@@ -4689,6 +4689,70 @@ interface PatientReviewInfo {
|
|
|
4689
4689
|
comment?: string;
|
|
4690
4690
|
reviewedAt: Timestamp;
|
|
4691
4691
|
}
|
|
4692
|
+
/**
|
|
4693
|
+
* Interface for before/after photos and notes per zone
|
|
4694
|
+
*/
|
|
4695
|
+
interface BeforeAfterPerZone {
|
|
4696
|
+
/** URL for before photo or null if not available */
|
|
4697
|
+
before: MediaResource | null;
|
|
4698
|
+
/** URL for after photo or null if not available */
|
|
4699
|
+
after: MediaResource | null;
|
|
4700
|
+
/** Optional note for the zone */
|
|
4701
|
+
note: string | null;
|
|
4702
|
+
}
|
|
4703
|
+
/**
|
|
4704
|
+
* Interface for billing information per zone
|
|
4705
|
+
*/
|
|
4706
|
+
interface BillingPerZone {
|
|
4707
|
+
/** Product name/description */
|
|
4708
|
+
Product: string;
|
|
4709
|
+
/** Product ID */
|
|
4710
|
+
ProductId: string | null;
|
|
4711
|
+
/** Quantity used (can be decimal) */
|
|
4712
|
+
Quantity: number;
|
|
4713
|
+
/** Unit of measurement */
|
|
4714
|
+
UnitOfMeasurement: PricingMeasure;
|
|
4715
|
+
/** Unit price for the product */
|
|
4716
|
+
UnitPrice: number;
|
|
4717
|
+
/** Currency for the unit price */
|
|
4718
|
+
UnitCurency: Currency;
|
|
4719
|
+
/** Calculated subtotal */
|
|
4720
|
+
Subtotal: number;
|
|
4721
|
+
/** Optional billing note */
|
|
4722
|
+
Note: string | null;
|
|
4723
|
+
}
|
|
4724
|
+
/**
|
|
4725
|
+
* Interface for final billing calculations of the appointment
|
|
4726
|
+
*/
|
|
4727
|
+
interface FinalBilling {
|
|
4728
|
+
/** Total of all subtotals from all zones */
|
|
4729
|
+
subtotalAll: number;
|
|
4730
|
+
/** Tax rate as percentage (e.g., 0.20 for 20%) */
|
|
4731
|
+
taxRate: number;
|
|
4732
|
+
/** Calculated tax amount */
|
|
4733
|
+
taxPrice: number;
|
|
4734
|
+
/** Final price including tax */
|
|
4735
|
+
finalPrice: number;
|
|
4736
|
+
/** Total final quantity across all zones */
|
|
4737
|
+
finalQuantity: number;
|
|
4738
|
+
/** Currency for the final billing */
|
|
4739
|
+
currency: Currency;
|
|
4740
|
+
/** Unit of measurement for the final billing */
|
|
4741
|
+
unitOfMeasurement: PricingMeasure;
|
|
4742
|
+
}
|
|
4743
|
+
/**
|
|
4744
|
+
* Interface for appointment metadata containing zone-specific information
|
|
4745
|
+
*/
|
|
4746
|
+
interface AppointmentMetadata {
|
|
4747
|
+
/** Array of selected zones for the appointment */
|
|
4748
|
+
selectedZones: string[] | null;
|
|
4749
|
+
/** Map of zone photos with before/after images and notes */
|
|
4750
|
+
zonePhotos: Record<string, BeforeAfterPerZone> | null;
|
|
4751
|
+
/** Map of billing information per zone */
|
|
4752
|
+
zoneBilling: Record<string, BillingPerZone> | null;
|
|
4753
|
+
/** Final billing calculations for the appointment */
|
|
4754
|
+
finalbilling: FinalBilling | null;
|
|
4755
|
+
}
|
|
4692
4756
|
/**
|
|
4693
4757
|
* Represents a booked appointment, aggregating key information and relevant procedure rules.
|
|
4694
4758
|
*/
|
|
@@ -4768,7 +4832,7 @@ interface Appointment {
|
|
|
4768
4832
|
/** NEW: Flag for soft deletion or archiving */
|
|
4769
4833
|
isArchived?: boolean;
|
|
4770
4834
|
/** NEW: Metadata for the appointment - used for area selection and photos */
|
|
4771
|
-
metadata?:
|
|
4835
|
+
metadata?: AppointmentMetadata;
|
|
4772
4836
|
}
|
|
4773
4837
|
/**
|
|
4774
4838
|
* Data needed to create a new Appointment
|
|
@@ -4837,7 +4901,7 @@ interface UpdateAppointmentData {
|
|
|
4837
4901
|
isArchived?: boolean;
|
|
4838
4902
|
updatedAt?: FieldValue;
|
|
4839
4903
|
/** NEW: For updating metadata */
|
|
4840
|
-
metadata?:
|
|
4904
|
+
metadata?: AppointmentMetadata;
|
|
4841
4905
|
}
|
|
4842
4906
|
/**
|
|
4843
4907
|
* Parameters for searching appointments
|
|
@@ -4875,8 +4939,8 @@ declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4875
4939
|
procedureId: string;
|
|
4876
4940
|
practitionerId: string;
|
|
4877
4941
|
cost: number;
|
|
4878
|
-
clinicBranchId: string;
|
|
4879
4942
|
currency: string;
|
|
4943
|
+
clinicBranchId: string;
|
|
4880
4944
|
initialStatus: AppointmentStatus;
|
|
4881
4945
|
initialPaymentStatus: PaymentStatus;
|
|
4882
4946
|
appointmentStartTime?: any;
|
|
@@ -4887,8 +4951,8 @@ declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4887
4951
|
procedureId: string;
|
|
4888
4952
|
practitionerId: string;
|
|
4889
4953
|
cost: number;
|
|
4890
|
-
clinicBranchId: string;
|
|
4891
4954
|
currency: string;
|
|
4955
|
+
clinicBranchId: string;
|
|
4892
4956
|
initialStatus: AppointmentStatus;
|
|
4893
4957
|
appointmentStartTime?: any;
|
|
4894
4958
|
appointmentEndTime?: any;
|
|
@@ -4899,8 +4963,8 @@ declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4899
4963
|
procedureId: string;
|
|
4900
4964
|
practitionerId: string;
|
|
4901
4965
|
cost: number;
|
|
4902
|
-
clinicBranchId: string;
|
|
4903
4966
|
currency: string;
|
|
4967
|
+
clinicBranchId: string;
|
|
4904
4968
|
initialStatus: AppointmentStatus;
|
|
4905
4969
|
initialPaymentStatus: PaymentStatus;
|
|
4906
4970
|
appointmentStartTime?: any;
|
|
@@ -4911,8 +4975,8 @@ declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4911
4975
|
procedureId: string;
|
|
4912
4976
|
practitionerId: string;
|
|
4913
4977
|
cost: number;
|
|
4914
|
-
clinicBranchId: string;
|
|
4915
4978
|
currency: string;
|
|
4979
|
+
clinicBranchId: string;
|
|
4916
4980
|
initialStatus: AppointmentStatus;
|
|
4917
4981
|
appointmentStartTime?: any;
|
|
4918
4982
|
appointmentEndTime?: any;
|
|
@@ -5035,7 +5099,127 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5035
5099
|
}>>, z.ZodAny]>>;
|
|
5036
5100
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
5037
5101
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
5038
|
-
metadata: z.ZodOptional<z.
|
|
5102
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
5103
|
+
selectedZones: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
5104
|
+
zonePhotos: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5105
|
+
before: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>;
|
|
5106
|
+
after: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>;
|
|
5107
|
+
note: z.ZodNullable<z.ZodString>;
|
|
5108
|
+
}, "strip", z.ZodTypeAny, {
|
|
5109
|
+
before: string | File | Blob | null;
|
|
5110
|
+
after: string | File | Blob | null;
|
|
5111
|
+
note: string | null;
|
|
5112
|
+
}, {
|
|
5113
|
+
before: string | File | Blob | null;
|
|
5114
|
+
after: string | File | Blob | null;
|
|
5115
|
+
note: string | null;
|
|
5116
|
+
}>>>;
|
|
5117
|
+
zoneBilling: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5118
|
+
Product: z.ZodString;
|
|
5119
|
+
ProductId: z.ZodNullable<z.ZodString>;
|
|
5120
|
+
Quantity: z.ZodNumber;
|
|
5121
|
+
UnitOfMeasurement: z.ZodNativeEnum<typeof PricingMeasure>;
|
|
5122
|
+
UnitPrice: z.ZodNumber;
|
|
5123
|
+
UnitCurency: z.ZodNativeEnum<typeof Currency>;
|
|
5124
|
+
Subtotal: z.ZodNumber;
|
|
5125
|
+
Note: z.ZodNullable<z.ZodString>;
|
|
5126
|
+
}, "strip", z.ZodTypeAny, {
|
|
5127
|
+
Product: string;
|
|
5128
|
+
ProductId: string | null;
|
|
5129
|
+
Quantity: number;
|
|
5130
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5131
|
+
UnitPrice: number;
|
|
5132
|
+
UnitCurency: Currency;
|
|
5133
|
+
Subtotal: number;
|
|
5134
|
+
Note: string | null;
|
|
5135
|
+
}, {
|
|
5136
|
+
Product: string;
|
|
5137
|
+
ProductId: string | null;
|
|
5138
|
+
Quantity: number;
|
|
5139
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5140
|
+
UnitPrice: number;
|
|
5141
|
+
UnitCurency: Currency;
|
|
5142
|
+
Subtotal: number;
|
|
5143
|
+
Note: string | null;
|
|
5144
|
+
}>>>;
|
|
5145
|
+
finalbilling: z.ZodNullable<z.ZodObject<{
|
|
5146
|
+
subtotalAll: z.ZodNumber;
|
|
5147
|
+
taxRate: z.ZodNumber;
|
|
5148
|
+
taxPrice: z.ZodNumber;
|
|
5149
|
+
finalPrice: z.ZodNumber;
|
|
5150
|
+
finalQuantity: z.ZodNumber;
|
|
5151
|
+
currency: z.ZodNativeEnum<typeof Currency>;
|
|
5152
|
+
unitOfMeasurement: z.ZodNativeEnum<typeof PricingMeasure>;
|
|
5153
|
+
}, "strip", z.ZodTypeAny, {
|
|
5154
|
+
subtotalAll: number;
|
|
5155
|
+
taxRate: number;
|
|
5156
|
+
taxPrice: number;
|
|
5157
|
+
finalPrice: number;
|
|
5158
|
+
finalQuantity: number;
|
|
5159
|
+
currency: Currency;
|
|
5160
|
+
unitOfMeasurement: PricingMeasure;
|
|
5161
|
+
}, {
|
|
5162
|
+
subtotalAll: number;
|
|
5163
|
+
taxRate: number;
|
|
5164
|
+
taxPrice: number;
|
|
5165
|
+
finalPrice: number;
|
|
5166
|
+
finalQuantity: number;
|
|
5167
|
+
currency: Currency;
|
|
5168
|
+
unitOfMeasurement: PricingMeasure;
|
|
5169
|
+
}>>;
|
|
5170
|
+
}, "strip", z.ZodTypeAny, {
|
|
5171
|
+
selectedZones: string[] | null;
|
|
5172
|
+
zonePhotos: Record<string, {
|
|
5173
|
+
before: string | File | Blob | null;
|
|
5174
|
+
after: string | File | Blob | null;
|
|
5175
|
+
note: string | null;
|
|
5176
|
+
}> | null;
|
|
5177
|
+
zoneBilling: Record<string, {
|
|
5178
|
+
Product: string;
|
|
5179
|
+
ProductId: string | null;
|
|
5180
|
+
Quantity: number;
|
|
5181
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5182
|
+
UnitPrice: number;
|
|
5183
|
+
UnitCurency: Currency;
|
|
5184
|
+
Subtotal: number;
|
|
5185
|
+
Note: string | null;
|
|
5186
|
+
}> | null;
|
|
5187
|
+
finalbilling: {
|
|
5188
|
+
subtotalAll: number;
|
|
5189
|
+
taxRate: number;
|
|
5190
|
+
taxPrice: number;
|
|
5191
|
+
finalPrice: number;
|
|
5192
|
+
finalQuantity: number;
|
|
5193
|
+
currency: Currency;
|
|
5194
|
+
unitOfMeasurement: PricingMeasure;
|
|
5195
|
+
} | null;
|
|
5196
|
+
}, {
|
|
5197
|
+
selectedZones: string[] | null;
|
|
5198
|
+
zonePhotos: Record<string, {
|
|
5199
|
+
before: string | File | Blob | null;
|
|
5200
|
+
after: string | File | Blob | null;
|
|
5201
|
+
note: string | null;
|
|
5202
|
+
}> | null;
|
|
5203
|
+
zoneBilling: Record<string, {
|
|
5204
|
+
Product: string;
|
|
5205
|
+
ProductId: string | null;
|
|
5206
|
+
Quantity: number;
|
|
5207
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5208
|
+
UnitPrice: number;
|
|
5209
|
+
UnitCurency: Currency;
|
|
5210
|
+
Subtotal: number;
|
|
5211
|
+
Note: string | null;
|
|
5212
|
+
}> | null;
|
|
5213
|
+
finalbilling: {
|
|
5214
|
+
subtotalAll: number;
|
|
5215
|
+
taxRate: number;
|
|
5216
|
+
taxPrice: number;
|
|
5217
|
+
finalPrice: number;
|
|
5218
|
+
finalQuantity: number;
|
|
5219
|
+
currency: Currency;
|
|
5220
|
+
unitOfMeasurement: PricingMeasure;
|
|
5221
|
+
} | null;
|
|
5222
|
+
}>>;
|
|
5039
5223
|
}, "strip", z.ZodTypeAny, {
|
|
5040
5224
|
updatedAt?: any;
|
|
5041
5225
|
status?: AppointmentStatus | undefined;
|
|
@@ -5065,7 +5249,33 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5065
5249
|
reviewInfo?: any;
|
|
5066
5250
|
finalizedDetails?: any;
|
|
5067
5251
|
isArchived?: boolean | undefined;
|
|
5068
|
-
metadata?:
|
|
5252
|
+
metadata?: {
|
|
5253
|
+
selectedZones: string[] | null;
|
|
5254
|
+
zonePhotos: Record<string, {
|
|
5255
|
+
before: string | File | Blob | null;
|
|
5256
|
+
after: string | File | Blob | null;
|
|
5257
|
+
note: string | null;
|
|
5258
|
+
}> | null;
|
|
5259
|
+
zoneBilling: Record<string, {
|
|
5260
|
+
Product: string;
|
|
5261
|
+
ProductId: string | null;
|
|
5262
|
+
Quantity: number;
|
|
5263
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5264
|
+
UnitPrice: number;
|
|
5265
|
+
UnitCurency: Currency;
|
|
5266
|
+
Subtotal: number;
|
|
5267
|
+
Note: string | null;
|
|
5268
|
+
}> | null;
|
|
5269
|
+
finalbilling: {
|
|
5270
|
+
subtotalAll: number;
|
|
5271
|
+
taxRate: number;
|
|
5272
|
+
taxPrice: number;
|
|
5273
|
+
finalPrice: number;
|
|
5274
|
+
finalQuantity: number;
|
|
5275
|
+
currency: Currency;
|
|
5276
|
+
unitOfMeasurement: PricingMeasure;
|
|
5277
|
+
} | null;
|
|
5278
|
+
} | undefined;
|
|
5069
5279
|
}, {
|
|
5070
5280
|
updatedAt?: any;
|
|
5071
5281
|
status?: AppointmentStatus | undefined;
|
|
@@ -5095,7 +5305,33 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5095
5305
|
reviewInfo?: any;
|
|
5096
5306
|
finalizedDetails?: any;
|
|
5097
5307
|
isArchived?: boolean | undefined;
|
|
5098
|
-
metadata?:
|
|
5308
|
+
metadata?: {
|
|
5309
|
+
selectedZones: string[] | null;
|
|
5310
|
+
zonePhotos: Record<string, {
|
|
5311
|
+
before: string | File | Blob | null;
|
|
5312
|
+
after: string | File | Blob | null;
|
|
5313
|
+
note: string | null;
|
|
5314
|
+
}> | null;
|
|
5315
|
+
zoneBilling: Record<string, {
|
|
5316
|
+
Product: string;
|
|
5317
|
+
ProductId: string | null;
|
|
5318
|
+
Quantity: number;
|
|
5319
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5320
|
+
UnitPrice: number;
|
|
5321
|
+
UnitCurency: Currency;
|
|
5322
|
+
Subtotal: number;
|
|
5323
|
+
Note: string | null;
|
|
5324
|
+
}> | null;
|
|
5325
|
+
finalbilling: {
|
|
5326
|
+
subtotalAll: number;
|
|
5327
|
+
taxRate: number;
|
|
5328
|
+
taxPrice: number;
|
|
5329
|
+
finalPrice: number;
|
|
5330
|
+
finalQuantity: number;
|
|
5331
|
+
currency: Currency;
|
|
5332
|
+
unitOfMeasurement: PricingMeasure;
|
|
5333
|
+
} | null;
|
|
5334
|
+
} | undefined;
|
|
5099
5335
|
}>, {
|
|
5100
5336
|
updatedAt?: any;
|
|
5101
5337
|
status?: AppointmentStatus | undefined;
|
|
@@ -5125,7 +5361,33 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5125
5361
|
reviewInfo?: any;
|
|
5126
5362
|
finalizedDetails?: any;
|
|
5127
5363
|
isArchived?: boolean | undefined;
|
|
5128
|
-
metadata?:
|
|
5364
|
+
metadata?: {
|
|
5365
|
+
selectedZones: string[] | null;
|
|
5366
|
+
zonePhotos: Record<string, {
|
|
5367
|
+
before: string | File | Blob | null;
|
|
5368
|
+
after: string | File | Blob | null;
|
|
5369
|
+
note: string | null;
|
|
5370
|
+
}> | null;
|
|
5371
|
+
zoneBilling: Record<string, {
|
|
5372
|
+
Product: string;
|
|
5373
|
+
ProductId: string | null;
|
|
5374
|
+
Quantity: number;
|
|
5375
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5376
|
+
UnitPrice: number;
|
|
5377
|
+
UnitCurency: Currency;
|
|
5378
|
+
Subtotal: number;
|
|
5379
|
+
Note: string | null;
|
|
5380
|
+
}> | null;
|
|
5381
|
+
finalbilling: {
|
|
5382
|
+
subtotalAll: number;
|
|
5383
|
+
taxRate: number;
|
|
5384
|
+
taxPrice: number;
|
|
5385
|
+
finalPrice: number;
|
|
5386
|
+
finalQuantity: number;
|
|
5387
|
+
currency: Currency;
|
|
5388
|
+
unitOfMeasurement: PricingMeasure;
|
|
5389
|
+
} | null;
|
|
5390
|
+
} | undefined;
|
|
5129
5391
|
}, {
|
|
5130
5392
|
updatedAt?: any;
|
|
5131
5393
|
status?: AppointmentStatus | undefined;
|
|
@@ -5155,7 +5417,33 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5155
5417
|
reviewInfo?: any;
|
|
5156
5418
|
finalizedDetails?: any;
|
|
5157
5419
|
isArchived?: boolean | undefined;
|
|
5158
|
-
metadata?:
|
|
5420
|
+
metadata?: {
|
|
5421
|
+
selectedZones: string[] | null;
|
|
5422
|
+
zonePhotos: Record<string, {
|
|
5423
|
+
before: string | File | Blob | null;
|
|
5424
|
+
after: string | File | Blob | null;
|
|
5425
|
+
note: string | null;
|
|
5426
|
+
}> | null;
|
|
5427
|
+
zoneBilling: Record<string, {
|
|
5428
|
+
Product: string;
|
|
5429
|
+
ProductId: string | null;
|
|
5430
|
+
Quantity: number;
|
|
5431
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5432
|
+
UnitPrice: number;
|
|
5433
|
+
UnitCurency: Currency;
|
|
5434
|
+
Subtotal: number;
|
|
5435
|
+
Note: string | null;
|
|
5436
|
+
}> | null;
|
|
5437
|
+
finalbilling: {
|
|
5438
|
+
subtotalAll: number;
|
|
5439
|
+
taxRate: number;
|
|
5440
|
+
taxPrice: number;
|
|
5441
|
+
finalPrice: number;
|
|
5442
|
+
finalQuantity: number;
|
|
5443
|
+
currency: Currency;
|
|
5444
|
+
unitOfMeasurement: PricingMeasure;
|
|
5445
|
+
} | null;
|
|
5446
|
+
} | undefined;
|
|
5159
5447
|
}>, {
|
|
5160
5448
|
updatedAt?: any;
|
|
5161
5449
|
status?: AppointmentStatus | undefined;
|
|
@@ -5185,7 +5473,33 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5185
5473
|
reviewInfo?: any;
|
|
5186
5474
|
finalizedDetails?: any;
|
|
5187
5475
|
isArchived?: boolean | undefined;
|
|
5188
|
-
metadata?:
|
|
5476
|
+
metadata?: {
|
|
5477
|
+
selectedZones: string[] | null;
|
|
5478
|
+
zonePhotos: Record<string, {
|
|
5479
|
+
before: string | File | Blob | null;
|
|
5480
|
+
after: string | File | Blob | null;
|
|
5481
|
+
note: string | null;
|
|
5482
|
+
}> | null;
|
|
5483
|
+
zoneBilling: Record<string, {
|
|
5484
|
+
Product: string;
|
|
5485
|
+
ProductId: string | null;
|
|
5486
|
+
Quantity: number;
|
|
5487
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5488
|
+
UnitPrice: number;
|
|
5489
|
+
UnitCurency: Currency;
|
|
5490
|
+
Subtotal: number;
|
|
5491
|
+
Note: string | null;
|
|
5492
|
+
}> | null;
|
|
5493
|
+
finalbilling: {
|
|
5494
|
+
subtotalAll: number;
|
|
5495
|
+
taxRate: number;
|
|
5496
|
+
taxPrice: number;
|
|
5497
|
+
finalPrice: number;
|
|
5498
|
+
finalQuantity: number;
|
|
5499
|
+
currency: Currency;
|
|
5500
|
+
unitOfMeasurement: PricingMeasure;
|
|
5501
|
+
} | null;
|
|
5502
|
+
} | undefined;
|
|
5189
5503
|
}, {
|
|
5190
5504
|
updatedAt?: any;
|
|
5191
5505
|
status?: AppointmentStatus | undefined;
|
|
@@ -5215,7 +5529,33 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5215
5529
|
reviewInfo?: any;
|
|
5216
5530
|
finalizedDetails?: any;
|
|
5217
5531
|
isArchived?: boolean | undefined;
|
|
5218
|
-
metadata?:
|
|
5532
|
+
metadata?: {
|
|
5533
|
+
selectedZones: string[] | null;
|
|
5534
|
+
zonePhotos: Record<string, {
|
|
5535
|
+
before: string | File | Blob | null;
|
|
5536
|
+
after: string | File | Blob | null;
|
|
5537
|
+
note: string | null;
|
|
5538
|
+
}> | null;
|
|
5539
|
+
zoneBilling: Record<string, {
|
|
5540
|
+
Product: string;
|
|
5541
|
+
ProductId: string | null;
|
|
5542
|
+
Quantity: number;
|
|
5543
|
+
UnitOfMeasurement: PricingMeasure;
|
|
5544
|
+
UnitPrice: number;
|
|
5545
|
+
UnitCurency: Currency;
|
|
5546
|
+
Subtotal: number;
|
|
5547
|
+
Note: string | null;
|
|
5548
|
+
}> | null;
|
|
5549
|
+
finalbilling: {
|
|
5550
|
+
subtotalAll: number;
|
|
5551
|
+
taxRate: number;
|
|
5552
|
+
taxPrice: number;
|
|
5553
|
+
finalPrice: number;
|
|
5554
|
+
finalQuantity: number;
|
|
5555
|
+
currency: Currency;
|
|
5556
|
+
unitOfMeasurement: PricingMeasure;
|
|
5557
|
+
} | null;
|
|
5558
|
+
} | undefined;
|
|
5219
5559
|
}>;
|
|
5220
5560
|
/**
|
|
5221
5561
|
* Schema for validating appointment search parameters
|
|
@@ -20061,4 +20401,4 @@ declare const createReviewSchema: z.ZodEffects<z.ZodObject<{
|
|
|
20061
20401
|
} | undefined;
|
|
20062
20402
|
}>;
|
|
20063
20403
|
|
|
20064
|
-
export { APPOINTMENTS_COLLECTION, AUTH_ERRORS, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type Appointment, type AppointmentReminderNotification, AppointmentService, AppointmentStatus, AuthError, AuthService, type BaseDocumentElement, type BaseNotification, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateAppointmentData, type CreateAppointmentHttpData, type CreateAppointmentParams, type CreateBlockingEventParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreatePractitionerInviteData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DynamicTextElement, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, FILLED_DOCUMENTS_COLLECTION, type FileUploadElement, type FilledDocument, type FilledDocumentFileValue, FilledDocumentService, FilledDocumentStatus, FirebaseErrorCode, type FirebaseUser, FoodAllergySubtype, type GamificationInfo, Gender, type HeadingElement, HeadingLevel, Language, type ListElement, ListType, type LocationData, MEDIA_METADATA_COLLECTION, MediaAccessLevel, type MediaMetadata, type MediaResource, MediaService, MedicationAllergySubtype, type MultipleChoiceElement, type Notification, NotificationService, NotificationStatus, NotificationType, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PRACTITIONER_INVITES_COLLECTION, PROCEDURES_COLLECTION, type ParagraphElement, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, PatientRequirementsService, type PatientSensitiveInfo, PatientService, PaymentStatus, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerInvite, type PractitionerInviteFilters, PractitionerInviteService, PractitionerInviteStatus, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureCategorization, ProcedureFamily, type ProcedureInfo, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type Product, ProductService, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type RequesterInfo, type Requirement, RequirementType, type Review, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type Subcategory, SubcategoryService, SubscriptionModel, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeSlot, TimeUnit, TreatmentBenefit, USER_ERRORS, USER_FORMS_SUBCOLLECTION, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateBlockingEventParams, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdatePractitionerInviteData, type UpdateProcedureData, type UpdateSyncedCalendarData, type UpdateVitalStatsData, type User, UserRole, UserService, type ValidationSchema, type VitalStats, type WorkingHours, addAllergySchema, addBlockingConditionSchema, addContraindicationSchema, addMedicationSchema, addressDataSchema, adminInfoSchema, adminTokenSchema, allergySchema, allergySubtypeSchema, appointmentNotificationSchema, appointmentReminderNotificationSchema, baseNotificationSchema, blockingConditionSchema, calendarEventSchema, calendarEventTimeSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicLocationSchema, clinicReviewInfoSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createAppointmentSchema, createBlockingEventSchema, createCalendarEventSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicReviewSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createDraftPractitionerSchema, createFilledDocumentDataSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerReviewSchema, createPractitionerSchema, createPractitionerTokenSchema, createProcedureReviewSchema, createReviewSchema, createUserOptionsSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, filledDocumentSchema, filledDocumentStatusSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicWorkingHoursSchema, practitionerProfileInfoSchema, practitionerReviewInfoSchema, practitionerReviewSchema, practitionerSchema, practitionerSignupSchema, practitionerTokenSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, procedureCategorizationSchema, procedureInfoSchema, procedureReviewInfoSchema, procedureReviewSchema, requesterInfoSchema, requirementInstructionDueNotificationSchema, reviewSchema, searchAppointmentsSchema, searchPatientsSchema, syncedCalendarEventSchema, timeSlotSchema, timestampSchema, updateAllergySchema, updateAppointmentSchema, updateBlockingConditionSchema, updateBlockingEventSchema, updateCalendarEventSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateFilledDocumentDataSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
|
20404
|
+
export { APPOINTMENTS_COLLECTION, AUTH_ERRORS, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type Appointment, type AppointmentMetadata, type AppointmentReminderNotification, AppointmentService, AppointmentStatus, AuthError, AuthService, type BaseDocumentElement, type BaseNotification, type BeforeAfterPerZone, type BillingPerZone, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateAppointmentData, type CreateAppointmentHttpData, type CreateAppointmentParams, type CreateBlockingEventParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreatePractitionerInviteData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DynamicTextElement, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, FILLED_DOCUMENTS_COLLECTION, type FileUploadElement, type FilledDocument, type FilledDocumentFileValue, FilledDocumentService, FilledDocumentStatus, type FinalBilling, FirebaseErrorCode, type FirebaseUser, FoodAllergySubtype, type GamificationInfo, Gender, type HeadingElement, HeadingLevel, Language, type ListElement, ListType, type LocationData, MEDIA_METADATA_COLLECTION, MediaAccessLevel, type MediaMetadata, type MediaResource, MediaService, MedicationAllergySubtype, type MultipleChoiceElement, type Notification, NotificationService, NotificationStatus, NotificationType, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PRACTITIONER_INVITES_COLLECTION, PROCEDURES_COLLECTION, type ParagraphElement, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, PatientRequirementsService, type PatientSensitiveInfo, PatientService, PaymentStatus, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerInvite, type PractitionerInviteFilters, PractitionerInviteService, PractitionerInviteStatus, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureCategorization, ProcedureFamily, type ProcedureInfo, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type Product, ProductService, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type RequesterInfo, type Requirement, RequirementType, type Review, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type Subcategory, SubcategoryService, SubscriptionModel, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeSlot, TimeUnit, TreatmentBenefit, USER_ERRORS, USER_FORMS_SUBCOLLECTION, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateBlockingEventParams, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdatePractitionerInviteData, type UpdateProcedureData, type UpdateSyncedCalendarData, type UpdateVitalStatsData, type User, UserRole, UserService, type ValidationSchema, type VitalStats, type WorkingHours, addAllergySchema, addBlockingConditionSchema, addContraindicationSchema, addMedicationSchema, addressDataSchema, adminInfoSchema, adminTokenSchema, allergySchema, allergySubtypeSchema, appointmentNotificationSchema, appointmentReminderNotificationSchema, baseNotificationSchema, blockingConditionSchema, calendarEventSchema, calendarEventTimeSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicLocationSchema, clinicReviewInfoSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createAppointmentSchema, createBlockingEventSchema, createCalendarEventSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicReviewSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createDraftPractitionerSchema, createFilledDocumentDataSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerReviewSchema, createPractitionerSchema, createPractitionerTokenSchema, createProcedureReviewSchema, createReviewSchema, createUserOptionsSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, filledDocumentSchema, filledDocumentStatusSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicWorkingHoursSchema, practitionerProfileInfoSchema, practitionerReviewInfoSchema, practitionerReviewSchema, practitionerSchema, practitionerSignupSchema, practitionerTokenSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, procedureCategorizationSchema, procedureInfoSchema, procedureReviewInfoSchema, procedureReviewSchema, requesterInfoSchema, requirementInstructionDueNotificationSchema, reviewSchema, searchAppointmentsSchema, searchPatientsSchema, syncedCalendarEventSchema, timeSlotSchema, timestampSchema, updateAllergySchema, updateAppointmentSchema, updateBlockingConditionSchema, updateBlockingEventSchema, updateCalendarEventSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateFilledDocumentDataSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|