@blackcode_sa/metaestetics-api 1.7.15 → 1.7.17

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.
@@ -188,7 +188,7 @@ interface FilledDocument {
188
188
  createdAt: number;
189
189
  updatedAt: number;
190
190
  values: {
191
- [elementId: string]: any;
191
+ [elementId: string]: any | FilledDocumentFileValue;
192
192
  };
193
193
  status: FilledDocumentStatus;
194
194
  }
@@ -203,6 +203,17 @@ declare enum FilledDocumentStatus {
203
203
  SIGNED = "signed",// Only used for user forms
204
204
  REJECTED = "rejected"
205
205
  }
206
+ /**
207
+ * Interface for file upload results to be stored in filled document values
208
+ */
209
+ interface FilledDocumentFileValue {
210
+ mediaId: string;
211
+ url: string;
212
+ name: string;
213
+ contentType: string;
214
+ size: number;
215
+ uploadedAt: number;
216
+ }
206
217
 
207
218
  /**
208
219
  * Nivoi sertifikacije medicinskog osoblja, poređani od najnižeg do najvišeg
@@ -2436,9 +2447,7 @@ declare class BookingAdmin {
2436
2447
  success: boolean;
2437
2448
  appointmentId?: string;
2438
2449
  appointmentData?: Appointment;
2439
- practitionerCalendarEventId?: string;
2440
- patientCalendarEventId?: string;
2441
- clinicCalendarEventId?: string;
2450
+ calendarEventId?: string;
2442
2451
  error?: string;
2443
2452
  }>;
2444
2453
  private _generateProcedureSummaryInfo;
@@ -188,7 +188,7 @@ interface FilledDocument {
188
188
  createdAt: number;
189
189
  updatedAt: number;
190
190
  values: {
191
- [elementId: string]: any;
191
+ [elementId: string]: any | FilledDocumentFileValue;
192
192
  };
193
193
  status: FilledDocumentStatus;
194
194
  }
@@ -203,6 +203,17 @@ declare enum FilledDocumentStatus {
203
203
  SIGNED = "signed",// Only used for user forms
204
204
  REJECTED = "rejected"
205
205
  }
206
+ /**
207
+ * Interface for file upload results to be stored in filled document values
208
+ */
209
+ interface FilledDocumentFileValue {
210
+ mediaId: string;
211
+ url: string;
212
+ name: string;
213
+ contentType: string;
214
+ size: number;
215
+ uploadedAt: number;
216
+ }
206
217
 
207
218
  /**
208
219
  * Nivoi sertifikacije medicinskog osoblja, poređani od najnižeg do najvišeg
@@ -2436,9 +2447,7 @@ declare class BookingAdmin {
2436
2447
  success: boolean;
2437
2448
  appointmentId?: string;
2438
2449
  appointmentData?: Appointment;
2439
- practitionerCalendarEventId?: string;
2440
- patientCalendarEventId?: string;
2441
- clinicCalendarEventId?: string;
2450
+ calendarEventId?: string;
2442
2451
  error?: string;
2443
2452
  }>;
2444
2453
  private _generateProcedureSummaryInfo;
@@ -6423,9 +6423,8 @@ var BookingAdmin = class {
6423
6423
  this.db.collection(PRACTITIONERS_COLLECTION).doc(practitionerData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
6424
6424
  practitionerCalendarEventData
6425
6425
  );
6426
- const patientCalendarEventId = this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc().id;
6427
6426
  const patientCalendarEventData = {
6428
- id: patientCalendarEventId,
6427
+ id: practitionerCalendarEventId,
6429
6428
  appointmentId: newAppointmentId,
6430
6429
  clinicBranchId: clinicData.id,
6431
6430
  clinicBranchInfo: clinicInfo,
@@ -6444,12 +6443,11 @@ var BookingAdmin = class {
6444
6443
  updatedAt: serverTimestampValue
6445
6444
  };
6446
6445
  batch.set(
6447
- this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc(patientCalendarEventId),
6446
+ this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
6448
6447
  patientCalendarEventData
6449
6448
  );
6450
- const clinicCalendarEventId = this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc().id;
6451
6449
  const clinicCalendarEventData = {
6452
- id: clinicCalendarEventId,
6450
+ id: practitionerCalendarEventId,
6453
6451
  appointmentId: newAppointmentId,
6454
6452
  clinicBranchId: clinicData.id,
6455
6453
  clinicBranchInfo: clinicInfo,
@@ -6470,7 +6468,7 @@ var BookingAdmin = class {
6470
6468
  updatedAt: serverTimestampValue
6471
6469
  };
6472
6470
  batch.set(
6473
- this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc(clinicCalendarEventId),
6471
+ this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
6474
6472
  clinicCalendarEventData
6475
6473
  );
6476
6474
  let initializedFormsInfo = [];
@@ -6558,9 +6556,7 @@ var BookingAdmin = class {
6558
6556
  success: true,
6559
6557
  appointmentId: newAppointmentId,
6560
6558
  appointmentData: newAppointmentData,
6561
- practitionerCalendarEventId,
6562
- patientCalendarEventId,
6563
- clinicCalendarEventId
6559
+ calendarEventId: practitionerCalendarEventId
6564
6560
  };
6565
6561
  } catch (error) {
6566
6562
  console.error(
@@ -6366,9 +6366,8 @@ var BookingAdmin = class {
6366
6366
  this.db.collection(PRACTITIONERS_COLLECTION).doc(practitionerData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
6367
6367
  practitionerCalendarEventData
6368
6368
  );
6369
- const patientCalendarEventId = this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc().id;
6370
6369
  const patientCalendarEventData = {
6371
- id: patientCalendarEventId,
6370
+ id: practitionerCalendarEventId,
6372
6371
  appointmentId: newAppointmentId,
6373
6372
  clinicBranchId: clinicData.id,
6374
6373
  clinicBranchInfo: clinicInfo,
@@ -6387,12 +6386,11 @@ var BookingAdmin = class {
6387
6386
  updatedAt: serverTimestampValue
6388
6387
  };
6389
6388
  batch.set(
6390
- this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc(patientCalendarEventId),
6389
+ this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
6391
6390
  patientCalendarEventData
6392
6391
  );
6393
- const clinicCalendarEventId = this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc().id;
6394
6392
  const clinicCalendarEventData = {
6395
- id: clinicCalendarEventId,
6393
+ id: practitionerCalendarEventId,
6396
6394
  appointmentId: newAppointmentId,
6397
6395
  clinicBranchId: clinicData.id,
6398
6396
  clinicBranchInfo: clinicInfo,
@@ -6413,7 +6411,7 @@ var BookingAdmin = class {
6413
6411
  updatedAt: serverTimestampValue
6414
6412
  };
6415
6413
  batch.set(
6416
- this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc(clinicCalendarEventId),
6414
+ this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
6417
6415
  clinicCalendarEventData
6418
6416
  );
6419
6417
  let initializedFormsInfo = [];
@@ -6501,9 +6499,7 @@ var BookingAdmin = class {
6501
6499
  success: true,
6502
6500
  appointmentId: newAppointmentId,
6503
6501
  appointmentData: newAppointmentData,
6504
- practitionerCalendarEventId,
6505
- patientCalendarEventId,
6506
- clinicCalendarEventId
6502
+ calendarEventId: practitionerCalendarEventId
6507
6503
  };
6508
6504
  } catch (error) {
6509
6505
  console.error(
@@ -712,9 +712,9 @@ var CategoryService = class extends BaseService {
712
712
  const q = (0, import_firestore.query)(this.categoriesRef, (0, import_firestore.where)("isActive", "==", true));
713
713
  const snapshot = await (0, import_firestore.getDocs)(q);
714
714
  return snapshot.docs.map(
715
- (doc9) => ({
716
- id: doc9.id,
717
- ...doc9.data()
715
+ (doc10) => ({
716
+ id: doc10.id,
717
+ ...doc10.data()
718
718
  })
719
719
  );
720
720
  }
@@ -731,9 +731,9 @@ var CategoryService = class extends BaseService {
731
731
  );
732
732
  const snapshot = await (0, import_firestore.getDocs)(q);
733
733
  return snapshot.docs.map(
734
- (doc9) => ({
735
- id: doc9.id,
736
- ...doc9.data()
734
+ (doc10) => ({
735
+ id: doc10.id,
736
+ ...doc10.data()
737
737
  })
738
738
  );
739
739
  }
@@ -823,9 +823,9 @@ var SubcategoryService = class extends BaseService {
823
823
  );
824
824
  const snapshot = await (0, import_firestore2.getDocs)(q);
825
825
  return snapshot.docs.map(
826
- (doc9) => ({
827
- id: doc9.id,
828
- ...doc9.data()
826
+ (doc10) => ({
827
+ id: doc10.id,
828
+ ...doc10.data()
829
829
  })
830
830
  );
831
831
  }
@@ -915,9 +915,9 @@ var TechnologyService = class extends BaseService {
915
915
  const q = (0, import_firestore3.query)(this.getTechnologiesRef(), (0, import_firestore3.where)("isActive", "==", true));
916
916
  const snapshot = await (0, import_firestore3.getDocs)(q);
917
917
  return snapshot.docs.map(
918
- (doc9) => ({
919
- id: doc9.id,
920
- ...doc9.data()
918
+ (doc10) => ({
919
+ id: doc10.id,
920
+ ...doc10.data()
921
921
  })
922
922
  );
923
923
  }
@@ -934,9 +934,9 @@ var TechnologyService = class extends BaseService {
934
934
  );
935
935
  const snapshot = await (0, import_firestore3.getDocs)(q);
936
936
  return snapshot.docs.map(
937
- (doc9) => ({
938
- id: doc9.id,
939
- ...doc9.data()
937
+ (doc10) => ({
938
+ id: doc10.id,
939
+ ...doc10.data()
940
940
  })
941
941
  );
942
942
  }
@@ -953,9 +953,9 @@ var TechnologyService = class extends BaseService {
953
953
  );
954
954
  const snapshot = await (0, import_firestore3.getDocs)(q);
955
955
  return snapshot.docs.map(
956
- (doc9) => ({
957
- id: doc9.id,
958
- ...doc9.data()
956
+ (doc10) => ({
957
+ id: doc10.id,
958
+ ...doc10.data()
959
959
  })
960
960
  );
961
961
  }
@@ -972,9 +972,9 @@ var TechnologyService = class extends BaseService {
972
972
  );
973
973
  const snapshot = await (0, import_firestore3.getDocs)(q);
974
974
  return snapshot.docs.map(
975
- (doc9) => ({
976
- id: doc9.id,
977
- ...doc9.data()
975
+ (doc10) => ({
976
+ id: doc10.id,
977
+ ...doc10.data()
978
978
  })
979
979
  );
980
980
  }
@@ -1322,9 +1322,9 @@ var RequirementService = class extends BaseService {
1322
1322
  const q = (0, import_firestore4.query)(this.requirementsRef, (0, import_firestore4.where)("isActive", "==", true));
1323
1323
  const snapshot = await (0, import_firestore4.getDocs)(q);
1324
1324
  return snapshot.docs.map(
1325
- (doc9) => ({
1326
- id: doc9.id,
1327
- ...doc9.data()
1325
+ (doc10) => ({
1326
+ id: doc10.id,
1327
+ ...doc10.data()
1328
1328
  })
1329
1329
  );
1330
1330
  }
@@ -1341,9 +1341,9 @@ var RequirementService = class extends BaseService {
1341
1341
  );
1342
1342
  const snapshot = await (0, import_firestore4.getDocs)(q);
1343
1343
  return snapshot.docs.map(
1344
- (doc9) => ({
1345
- id: doc9.id,
1346
- ...doc9.data()
1344
+ (doc10) => ({
1345
+ id: doc10.id,
1346
+ ...doc10.data()
1347
1347
  })
1348
1348
  );
1349
1349
  }
@@ -1415,9 +1415,9 @@ var BrandService = class extends BaseService {
1415
1415
  const q = (0, import_firestore5.query)(this.getBrandsRef(), (0, import_firestore5.where)("isActive", "==", true));
1416
1416
  const snapshot = await (0, import_firestore5.getDocs)(q);
1417
1417
  return snapshot.docs.map(
1418
- (doc9) => ({
1419
- id: doc9.id,
1420
- ...doc9.data()
1418
+ (doc10) => ({
1419
+ id: doc10.id,
1420
+ ...doc10.data()
1421
1421
  })
1422
1422
  );
1423
1423
  }
@@ -1500,9 +1500,9 @@ var ProductService = class extends BaseService {
1500
1500
  );
1501
1501
  const snapshot = await (0, import_firestore6.getDocs)(q);
1502
1502
  return snapshot.docs.map(
1503
- (doc9) => ({
1504
- id: doc9.id,
1505
- ...doc9.data()
1503
+ (doc10) => ({
1504
+ id: doc10.id,
1505
+ ...doc10.data()
1506
1506
  })
1507
1507
  );
1508
1508
  }
@@ -1522,9 +1522,9 @@ var ProductService = class extends BaseService {
1522
1522
  const snapshot = await (0, import_firestore6.getDocs)(q);
1523
1523
  products.push(
1524
1524
  ...snapshot.docs.map(
1525
- (doc9) => ({
1526
- id: doc9.id,
1527
- ...doc9.data()
1525
+ (doc10) => ({
1526
+ id: doc10.id,
1527
+ ...doc10.data()
1528
1528
  })
1529
1529
  )
1530
1530
  );
@@ -1721,8 +1721,8 @@ var DocumentationTemplateService = class extends BaseService {
1721
1721
  const q = (0, import_firestore7.query)(versionsCollectionRef, (0, import_firestore7.orderBy)("version", "desc"));
1722
1722
  const querySnapshot = await (0, import_firestore7.getDocs)(q);
1723
1723
  const versions = [];
1724
- querySnapshot.forEach((doc9) => {
1725
- versions.push(doc9.data());
1724
+ querySnapshot.forEach((doc10) => {
1725
+ versions.push(doc10.data());
1726
1726
  });
1727
1727
  return versions;
1728
1728
  }
@@ -1753,9 +1753,9 @@ var DocumentationTemplateService = class extends BaseService {
1753
1753
  const querySnapshot = await (0, import_firestore7.getDocs)(q);
1754
1754
  const templates = [];
1755
1755
  let lastVisible = null;
1756
- querySnapshot.forEach((doc9) => {
1757
- templates.push(doc9.data());
1758
- lastVisible = doc9;
1756
+ querySnapshot.forEach((doc10) => {
1757
+ templates.push(doc10.data());
1758
+ lastVisible = doc10;
1759
1759
  });
1760
1760
  return {
1761
1761
  templates,
@@ -1783,9 +1783,9 @@ var DocumentationTemplateService = class extends BaseService {
1783
1783
  const querySnapshot = await (0, import_firestore7.getDocs)(q);
1784
1784
  const templates = [];
1785
1785
  let lastVisible = null;
1786
- querySnapshot.forEach((doc9) => {
1787
- templates.push(doc9.data());
1788
- lastVisible = doc9;
1786
+ querySnapshot.forEach((doc10) => {
1787
+ templates.push(doc10.data());
1788
+ lastVisible = doc10;
1789
1789
  });
1790
1790
  return {
1791
1791
  templates,
@@ -1812,9 +1812,9 @@ var DocumentationTemplateService = class extends BaseService {
1812
1812
  const querySnapshot = await (0, import_firestore7.getDocs)(q);
1813
1813
  const templates = [];
1814
1814
  let lastVisible = null;
1815
- querySnapshot.forEach((doc9) => {
1816
- templates.push(doc9.data());
1817
- lastVisible = doc9;
1815
+ querySnapshot.forEach((doc10) => {
1816
+ templates.push(doc10.data());
1817
+ lastVisible = doc10;
1818
1818
  });
1819
1819
  return {
1820
1820
  templates,
@@ -1840,15 +1840,20 @@ var DocumentationTemplateService = class extends BaseService {
1840
1840
  }
1841
1841
  const querySnapshot = await (0, import_firestore7.getDocs)(q);
1842
1842
  const templates = [];
1843
- querySnapshot.forEach((doc9) => {
1844
- templates.push(doc9.data());
1843
+ querySnapshot.forEach((doc10) => {
1844
+ templates.push(doc10.data());
1845
1845
  });
1846
1846
  return templates;
1847
1847
  }
1848
1848
  };
1849
1849
 
1850
1850
  // src/services/documentation-templates/filled-document.service.ts
1851
+ var import_firestore10 = require("firebase/firestore");
1852
+
1853
+ // src/services/media/media.service.ts
1851
1854
  var import_firestore8 = require("firebase/firestore");
1855
+ var import_storage2 = require("firebase/storage");
1856
+ var import_firestore9 = require("firebase/firestore");
1852
1857
 
1853
1858
  // src/backoffice/services/documentation-template.service.ts
1854
1859
  var DocumentationTemplateService2 = class {
@@ -629,9 +629,9 @@ var CategoryService = class extends BaseService {
629
629
  const q = query(this.categoriesRef, where("isActive", "==", true));
630
630
  const snapshot = await getDocs(q);
631
631
  return snapshot.docs.map(
632
- (doc9) => ({
633
- id: doc9.id,
634
- ...doc9.data()
632
+ (doc10) => ({
633
+ id: doc10.id,
634
+ ...doc10.data()
635
635
  })
636
636
  );
637
637
  }
@@ -648,9 +648,9 @@ var CategoryService = class extends BaseService {
648
648
  );
649
649
  const snapshot = await getDocs(q);
650
650
  return snapshot.docs.map(
651
- (doc9) => ({
652
- id: doc9.id,
653
- ...doc9.data()
651
+ (doc10) => ({
652
+ id: doc10.id,
653
+ ...doc10.data()
654
654
  })
655
655
  );
656
656
  }
@@ -749,9 +749,9 @@ var SubcategoryService = class extends BaseService {
749
749
  );
750
750
  const snapshot = await getDocs2(q);
751
751
  return snapshot.docs.map(
752
- (doc9) => ({
753
- id: doc9.id,
754
- ...doc9.data()
752
+ (doc10) => ({
753
+ id: doc10.id,
754
+ ...doc10.data()
755
755
  })
756
756
  );
757
757
  }
@@ -852,9 +852,9 @@ var TechnologyService = class extends BaseService {
852
852
  const q = query3(this.getTechnologiesRef(), where3("isActive", "==", true));
853
853
  const snapshot = await getDocs3(q);
854
854
  return snapshot.docs.map(
855
- (doc9) => ({
856
- id: doc9.id,
857
- ...doc9.data()
855
+ (doc10) => ({
856
+ id: doc10.id,
857
+ ...doc10.data()
858
858
  })
859
859
  );
860
860
  }
@@ -871,9 +871,9 @@ var TechnologyService = class extends BaseService {
871
871
  );
872
872
  const snapshot = await getDocs3(q);
873
873
  return snapshot.docs.map(
874
- (doc9) => ({
875
- id: doc9.id,
876
- ...doc9.data()
874
+ (doc10) => ({
875
+ id: doc10.id,
876
+ ...doc10.data()
877
877
  })
878
878
  );
879
879
  }
@@ -890,9 +890,9 @@ var TechnologyService = class extends BaseService {
890
890
  );
891
891
  const snapshot = await getDocs3(q);
892
892
  return snapshot.docs.map(
893
- (doc9) => ({
894
- id: doc9.id,
895
- ...doc9.data()
893
+ (doc10) => ({
894
+ id: doc10.id,
895
+ ...doc10.data()
896
896
  })
897
897
  );
898
898
  }
@@ -909,9 +909,9 @@ var TechnologyService = class extends BaseService {
909
909
  );
910
910
  const snapshot = await getDocs3(q);
911
911
  return snapshot.docs.map(
912
- (doc9) => ({
913
- id: doc9.id,
914
- ...doc9.data()
912
+ (doc10) => ({
913
+ id: doc10.id,
914
+ ...doc10.data()
915
915
  })
916
916
  );
917
917
  }
@@ -1268,9 +1268,9 @@ var RequirementService = class extends BaseService {
1268
1268
  const q = query4(this.requirementsRef, where4("isActive", "==", true));
1269
1269
  const snapshot = await getDocs4(q);
1270
1270
  return snapshot.docs.map(
1271
- (doc9) => ({
1272
- id: doc9.id,
1273
- ...doc9.data()
1271
+ (doc10) => ({
1272
+ id: doc10.id,
1273
+ ...doc10.data()
1274
1274
  })
1275
1275
  );
1276
1276
  }
@@ -1287,9 +1287,9 @@ var RequirementService = class extends BaseService {
1287
1287
  );
1288
1288
  const snapshot = await getDocs4(q);
1289
1289
  return snapshot.docs.map(
1290
- (doc9) => ({
1291
- id: doc9.id,
1292
- ...doc9.data()
1290
+ (doc10) => ({
1291
+ id: doc10.id,
1292
+ ...doc10.data()
1293
1293
  })
1294
1294
  );
1295
1295
  }
@@ -1370,9 +1370,9 @@ var BrandService = class extends BaseService {
1370
1370
  const q = query5(this.getBrandsRef(), where5("isActive", "==", true));
1371
1371
  const snapshot = await getDocs5(q);
1372
1372
  return snapshot.docs.map(
1373
- (doc9) => ({
1374
- id: doc9.id,
1375
- ...doc9.data()
1373
+ (doc10) => ({
1374
+ id: doc10.id,
1375
+ ...doc10.data()
1376
1376
  })
1377
1377
  );
1378
1378
  }
@@ -1464,9 +1464,9 @@ var ProductService = class extends BaseService {
1464
1464
  );
1465
1465
  const snapshot = await getDocs6(q);
1466
1466
  return snapshot.docs.map(
1467
- (doc9) => ({
1468
- id: doc9.id,
1469
- ...doc9.data()
1467
+ (doc10) => ({
1468
+ id: doc10.id,
1469
+ ...doc10.data()
1470
1470
  })
1471
1471
  );
1472
1472
  }
@@ -1486,9 +1486,9 @@ var ProductService = class extends BaseService {
1486
1486
  const snapshot = await getDocs6(q);
1487
1487
  products.push(
1488
1488
  ...snapshot.docs.map(
1489
- (doc9) => ({
1490
- id: doc9.id,
1491
- ...doc9.data()
1489
+ (doc10) => ({
1490
+ id: doc10.id,
1491
+ ...doc10.data()
1492
1492
  })
1493
1493
  )
1494
1494
  );
@@ -1698,8 +1698,8 @@ var DocumentationTemplateService = class extends BaseService {
1698
1698
  const q = query7(versionsCollectionRef, orderBy("version", "desc"));
1699
1699
  const querySnapshot = await getDocs7(q);
1700
1700
  const versions = [];
1701
- querySnapshot.forEach((doc9) => {
1702
- versions.push(doc9.data());
1701
+ querySnapshot.forEach((doc10) => {
1702
+ versions.push(doc10.data());
1703
1703
  });
1704
1704
  return versions;
1705
1705
  }
@@ -1730,9 +1730,9 @@ var DocumentationTemplateService = class extends BaseService {
1730
1730
  const querySnapshot = await getDocs7(q);
1731
1731
  const templates = [];
1732
1732
  let lastVisible = null;
1733
- querySnapshot.forEach((doc9) => {
1734
- templates.push(doc9.data());
1735
- lastVisible = doc9;
1733
+ querySnapshot.forEach((doc10) => {
1734
+ templates.push(doc10.data());
1735
+ lastVisible = doc10;
1736
1736
  });
1737
1737
  return {
1738
1738
  templates,
@@ -1760,9 +1760,9 @@ var DocumentationTemplateService = class extends BaseService {
1760
1760
  const querySnapshot = await getDocs7(q);
1761
1761
  const templates = [];
1762
1762
  let lastVisible = null;
1763
- querySnapshot.forEach((doc9) => {
1764
- templates.push(doc9.data());
1765
- lastVisible = doc9;
1763
+ querySnapshot.forEach((doc10) => {
1764
+ templates.push(doc10.data());
1765
+ lastVisible = doc10;
1766
1766
  });
1767
1767
  return {
1768
1768
  templates,
@@ -1789,9 +1789,9 @@ var DocumentationTemplateService = class extends BaseService {
1789
1789
  const querySnapshot = await getDocs7(q);
1790
1790
  const templates = [];
1791
1791
  let lastVisible = null;
1792
- querySnapshot.forEach((doc9) => {
1793
- templates.push(doc9.data());
1794
- lastVisible = doc9;
1792
+ querySnapshot.forEach((doc10) => {
1793
+ templates.push(doc10.data());
1794
+ lastVisible = doc10;
1795
1795
  });
1796
1796
  return {
1797
1797
  templates,
@@ -1817,8 +1817,8 @@ var DocumentationTemplateService = class extends BaseService {
1817
1817
  }
1818
1818
  const querySnapshot = await getDocs7(q);
1819
1819
  const templates = [];
1820
- querySnapshot.forEach((doc9) => {
1821
- templates.push(doc9.data());
1820
+ querySnapshot.forEach((doc10) => {
1821
+ templates.push(doc10.data());
1822
1822
  });
1823
1823
  return templates;
1824
1824
  }
@@ -1826,16 +1826,39 @@ var DocumentationTemplateService = class extends BaseService {
1826
1826
 
1827
1827
  // src/services/documentation-templates/filled-document.service.ts
1828
1828
  import {
1829
- collection as collection8,
1829
+ collection as collection9,
1830
+ doc as doc9,
1831
+ getDoc as getDoc9,
1832
+ getDocs as getDocs9,
1833
+ setDoc as setDoc3,
1834
+ updateDoc as updateDoc9,
1835
+ query as query9,
1836
+ orderBy as orderBy3,
1837
+ limit as limit3,
1838
+ startAfter as startAfter2
1839
+ } from "firebase/firestore";
1840
+
1841
+ // src/services/media/media.service.ts
1842
+ import { Timestamp as Timestamp2 } from "firebase/firestore";
1843
+ import {
1844
+ ref,
1845
+ uploadBytes,
1846
+ getDownloadURL,
1847
+ deleteObject,
1848
+ getBytes
1849
+ } from "firebase/storage";
1850
+ import {
1830
1851
  doc as doc8,
1831
1852
  getDoc as getDoc8,
1832
- getDocs as getDocs8,
1833
1853
  setDoc as setDoc2,
1834
1854
  updateDoc as updateDoc8,
1855
+ collection as collection8,
1835
1856
  query as query8,
1836
- orderBy as orderBy2,
1857
+ where as where8,
1837
1858
  limit as limit2,
1838
- startAfter as startAfter2
1859
+ getDocs as getDocs8,
1860
+ deleteDoc as deleteDoc2,
1861
+ orderBy as orderBy2
1839
1862
  } from "firebase/firestore";
1840
1863
 
1841
1864
  // src/backoffice/services/documentation-template.service.ts