@agendar/shared 0.4.0 → 0.5.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/dist/i18n/pt.d.ts CHANGED
@@ -566,8 +566,10 @@ declare const appPT: {
566
566
  "clients.detail.tabs.balance": string;
567
567
  "clients.detail.tabs.appointments": string;
568
568
  "clients.detail.tabs.history": string;
569
+ "clients.detail.tabs.tabs": string;
569
570
  "clients.detail.tabs.packages": string;
570
571
  "clients.detail.tabs.photos": string;
572
+ "clients.detail.tabs.summary": string;
571
573
  "clients.balance.current": string;
572
574
  "clients.balance.addCredit": string;
573
575
  "clients.balance.adjust.title": string;
@@ -611,7 +613,6 @@ declare const appPT: {
611
613
  "clients.detail.contact.emailHint": string;
612
614
  "clients.balance.sheet.closeHint": string;
613
615
  "clients.balance.sheet.amountHint": string;
614
- "clients.tabHistory.dateFormat": string;
615
616
  "clients.tabHistory.productDetail": string;
616
617
  "clients.tabHistory.packageDetail": string;
617
618
  "clients.tabHistory.subtotal": string;
@@ -630,14 +631,219 @@ declare const appPT: {
630
631
  "clients.packageHistory.expandHint": string;
631
632
  "clients.packageHistory.collapseHint": string;
632
633
  "clients.packageHistory.loadError": string;
633
- "clients.emptyTabs.upcoming.title": string;
634
- "clients.emptyTabs.upcoming.subtitle": string;
635
- "clients.emptyTabs.visits.title": string;
636
- "clients.emptyTabs.visits.subtitle": string;
634
+ "clients.emptyTabs.appointments.title": string;
635
+ "clients.emptyTabs.appointments.subtitle": string;
636
+ "clients.tabHistory.meta_one": string;
637
+ "clients.tabHistory.meta_other": string;
638
+ "clients.packageHistory.meta_one": string;
639
+ "clients.packageHistory.meta_other": string;
637
640
  "clients.emptyTabs.tabs.title": string;
638
641
  "clients.emptyTabs.tabs.subtitle": string;
639
642
  "clients.emptyTabs.packages.title": string;
640
643
  "clients.emptyTabs.packages.subtitle": string;
644
+ "appointmentHistory.professional": string;
645
+ "appointmentHistory.time": string;
646
+ "appointmentHistory.duration": string;
647
+ "appointmentHistory.durationValue": string;
648
+ "appointmentHistory.price": string;
649
+ "appointmentHistory.status": string;
650
+ "appointmentHistory.noProfessional": string;
651
+ "appointmentHistory.expandHint": string;
652
+ "appointmentHistory.collapseHint": string;
653
+ "appointmentHistory.upcomingGroup": string;
654
+ "appointmentHistory.pastGroup": string;
655
+ "appointmentHistory.loadError": string;
656
+ "appointmentHistory.client": string;
657
+ "professionals.detail.since": string;
658
+ "professionals.detail.sinceShort": string;
659
+ "professionals.detail.metrics.avgTicket": string;
660
+ "professionals.detail.tabs.appointments": string;
661
+ "professionals.detail.tabs.summary": string;
662
+ "professionals.detail.moreHint": string;
663
+ "professionals.commissions.sections.closings": string;
664
+ "professionals.commissions.sections.vouchers": string;
665
+ "professionals.commissions.sections.rules": string;
666
+ "professionals.commissions.status.inProgress": string;
667
+ "professionals.commissions.status.payable": string;
668
+ "professionals.commissions.status.paid": string;
669
+ "professionals.commissions.status.canceled": string;
670
+ "professionals.commissions.closing.itemsUntilToday_one": string;
671
+ "professionals.commissions.closing.itemsUntilToday_other": string;
672
+ "professionals.commissions.closing.closesOn": string;
673
+ "professionals.commissions.closing.items_one": string;
674
+ "professionals.commissions.closing.items_other": string;
675
+ "professionals.commissions.closing.withoutRule_one": string;
676
+ "professionals.commissions.closing.withoutRule_other": string;
677
+ "professionals.commissions.closing.vouchers": string;
678
+ "professionals.commissions.closing.paidOn": string;
679
+ "professionals.commissions.closing.canceledOn": string;
680
+ "professionals.commissions.closing.viewDetails": string;
681
+ "professionals.commissions.closing.viewDetailsHint": string;
682
+ "professionals.commissions.closing.pay": string;
683
+ "professionals.commissions.closing.payHint": string;
684
+ "professionals.commissions.closing.more": string;
685
+ "professionals.commissions.closing.moreHint": string;
686
+ "professionals.commissions.closing.cancel": string;
687
+ "professionals.commissions.closing.cancelDialog.title": string;
688
+ "professionals.commissions.closing.cancelDialog.description": string;
689
+ "professionals.commissions.closing.cancelSuccess": string;
690
+ "professionals.commissions.closings.emptyTitle": string;
691
+ "professionals.commissions.closings.emptySubtitle": string;
692
+ "professionals.commissions.closings.loadError": string;
693
+ "professionals.commissions.paymentMethod.pix": string;
694
+ "professionals.commissions.paymentMethod.cash": string;
695
+ "professionals.commissions.paymentMethod.bank_transfer": string;
696
+ "professionals.commissions.paymentMethod.other": string;
697
+ "professionals.commissions.detail.subtitlePayable": string;
698
+ "professionals.commissions.detail.subtitleInProgress": string;
699
+ "professionals.commissions.detail.commissions": string;
700
+ "professionals.commissions.detail.vouchers": string;
701
+ "professionals.commissions.detail.net": string;
702
+ "professionals.commissions.detail.withoutRuleCount_one": string;
703
+ "professionals.commissions.detail.withoutRuleCount_other": string;
704
+ "professionals.commissions.detail.withoutRuleNote_one": string;
705
+ "professionals.commissions.detail.withoutRuleNote_other": string;
706
+ "professionals.commissions.detail.filters.all": string;
707
+ "professionals.commissions.detail.filters.withRule": string;
708
+ "professionals.commissions.detail.filters.withoutRule": string;
709
+ "professionals.commissions.detail.filters.vouchers": string;
710
+ "professionals.commissions.detail.withoutRule": string;
711
+ "professionals.commissions.detail.noClient": string;
712
+ "professionals.commissions.detail.voucherIssuedOn": string;
713
+ "professionals.commissions.detail.emptyFilter": string;
714
+ "professionals.commissions.detail.sendPreview": string;
715
+ "professionals.commissions.detail.sendPreviewHint": string;
716
+ "professionals.commissions.detail.payAmount": string;
717
+ "professionals.commissions.detail.previewMessage": string;
718
+ "professionals.commissions.paySheet.title": string;
719
+ "professionals.commissions.paySheet.paymentMethod": string;
720
+ "professionals.commissions.paySheet.withoutRuleNote_one": string;
721
+ "professionals.commissions.paySheet.withoutRuleNote_other": string;
722
+ "professionals.commissions.paySheet.nothingToPay": string;
723
+ "professionals.commissions.paySheet.success": string;
724
+ "professionals.commissions.paySheet.close": string;
725
+ "professionals.commissions.paySheet.closeHint": string;
726
+ "professionals.commissions.rules.headerLabel": string;
727
+ "professionals.commissions.rules.headerTitle": string;
728
+ "professionals.commissions.rules.allSet": string;
729
+ "professionals.commissions.rules.byService": string;
730
+ "professionals.commissions.rules.servicesCount_one": string;
731
+ "professionals.commissions.rules.servicesCount_other": string;
732
+ "professionals.commissions.rules.pendingWithoutRule_one": string;
733
+ "professionals.commissions.rules.pendingWithoutRule_other": string;
734
+ "professionals.commissions.rules.noRuleYet": string;
735
+ "professionals.commissions.rules.perService": string;
736
+ "professionals.commissions.rules.fixedValue": string;
737
+ "professionals.commissions.rules.shared": string;
738
+ "professionals.commissions.rules.editHint": string;
739
+ "professionals.commissions.rules.sharedHint": string;
740
+ "professionals.commissions.rules.sharedDialog.title": string;
741
+ "professionals.commissions.rules.sharedDialog.description": string;
742
+ "professionals.commissions.rules.products": string;
743
+ "professionals.commissions.rules.productsSubtitle": string;
744
+ "professionals.commissions.rules.productsPerProduct": string;
745
+ "professionals.commissions.rules.productsHint": string;
746
+ "professionals.commissions.rules.loadError": string;
747
+ "professionals.commissions.editRule.price": string;
748
+ "professionals.commissions.editRule.percentage": string;
749
+ "professionals.commissions.editRule.fixed": string;
750
+ "professionals.commissions.editRule.decrease": string;
751
+ "professionals.commissions.editRule.decreaseHint": string;
752
+ "professionals.commissions.editRule.increase": string;
753
+ "professionals.commissions.editRule.increaseHint": string;
754
+ "professionals.commissions.editRule.fixedLabel": string;
755
+ "professionals.commissions.editRule.fixedHint": string;
756
+ "professionals.commissions.editRule.preview": string;
757
+ "professionals.commissions.editRule.productPreview": string;
758
+ "professionals.commissions.editRule.pendingNote_one": string;
759
+ "professionals.commissions.editRule.pendingNote_other": string;
760
+ "professionals.commissions.editRule.closingChange": string;
761
+ "professionals.commissions.editRule.save": string;
762
+ "professionals.commissions.editRule.success": string;
763
+ "professionals.commissions.editRule.close": string;
764
+ "professionals.commissions.editRule.closeHint": string;
765
+ "professionals.commissions.editRule.useProductRate": string;
766
+ "professionals.commissions.editRule.useProductRateHint": string;
767
+ "professionals.commissions.detail.defineRule": string;
768
+ "professionals.commissions.detail.defineRuleHint": string;
769
+ "professionals.commissions.detail.fixed": string;
770
+ "professionals.commissions.voucherKind.advance": string;
771
+ "professionals.commissions.voucherKind.transport": string;
772
+ "professionals.commissions.voucherKind.food": string;
773
+ "professionals.commissions.voucherKind.other": string;
774
+ "professionals.commissions.vouchers.openBanner": string;
775
+ "professionals.commissions.vouchers.openSection": string;
776
+ "professionals.commissions.vouchers.discountedSection": string;
777
+ "professionals.commissions.vouchers.count_one": string;
778
+ "professionals.commissions.vouchers.count_other": string;
779
+ "professionals.commissions.vouchers.issuedBy": string;
780
+ "professionals.commissions.vouchers.discountedIn": string;
781
+ "professionals.commissions.vouchers.remaining": string;
782
+ "professionals.commissions.vouchers.status.open": string;
783
+ "professionals.commissions.vouchers.status.partially_applied": string;
784
+ "professionals.commissions.vouchers.status.applied": string;
785
+ "professionals.commissions.vouchers.status.canceled": string;
786
+ "professionals.commissions.vouchers.actionsHint": string;
787
+ "professionals.commissions.vouchers.cancel": string;
788
+ "professionals.commissions.vouchers.cancelDialog.title": string;
789
+ "professionals.commissions.vouchers.cancelDialog.description": string;
790
+ "professionals.commissions.vouchers.cancelSuccess": string;
791
+ "professionals.commissions.vouchers.emptyTitle": string;
792
+ "professionals.commissions.vouchers.emptySubtitle": string;
793
+ "professionals.commissions.vouchers.emptyAction": string;
794
+ "professionals.commissions.vouchers.loadError": string;
795
+ "professionals.commissions.vouchers.new": string;
796
+ "professionals.commissions.vouchers.newHint": string;
797
+ "professionals.commissions.newVoucher.subtitle": string;
798
+ "professionals.commissions.newVoucher.afterVoucher": string;
799
+ "professionals.commissions.newVoucher.issue": string;
800
+ "professionals.commissions.newVoucher.success": string;
801
+ "professionals.commissions.newVoucher.close": string;
802
+ "professionals.commissions.newVoucher.closeHint": string;
803
+ "professionals.commissions.newVoucher.delete": string;
804
+ "professionals.commissions.newVoucher.deleteHint": string;
805
+ "professionals.commissions.receipt.title": string;
806
+ "professionals.commissions.receipt.subtitle": string;
807
+ "professionals.commissions.receipt.heading": string;
808
+ "professionals.commissions.receipt.amountLabel": string;
809
+ "professionals.commissions.receipt.paidOn": string;
810
+ "professionals.commissions.receipt.canceled": string;
811
+ "professionals.commissions.receipt.professional": string;
812
+ "professionals.commissions.receipt.period": string;
813
+ "professionals.commissions.receipt.paymentMethod": string;
814
+ "professionals.commissions.receipt.paidBy": string;
815
+ "professionals.commissions.receipt.notInformed": string;
816
+ "professionals.commissions.receipt.vouchersDiscounted": string;
817
+ "professionals.commissions.receipt.total": string;
818
+ "professionals.commissions.receipt.line": string;
819
+ "professionals.commissions.receipt.whatsapp": string;
820
+ "professionals.commissions.receipt.whatsappHint": string;
821
+ "professionals.commissions.receipt.downloadPdf": string;
822
+ "professionals.commissions.receipt.downloadPdfHint": string;
823
+ "professionals.commissions.receipt.showItems": string;
824
+ "professionals.commissions.receipt.hideItems": string;
825
+ "professionals.commissions.receipt.itemsHint": string;
826
+ "professionals.commissions.receipt.whatsappMessage": string;
827
+ "professionals.commissions.receipt.loadError": string;
828
+ "professionals.commissions.receipt.downloadError": string;
829
+ "professionals.commissions.closing.receipt": string;
830
+ "professionals.commissions.closing.receiptHint": string;
831
+ "professionals.detail.contactHint.whatsapp": string;
832
+ "professionals.detail.contactHint.call": string;
833
+ "professionals.detail.contactHint.email": string;
834
+ "professionals.emptyTabs.appointments.title": string;
835
+ "professionals.emptyTabs.appointments.subtitle": string;
836
+ "professionals.filters.title": string;
837
+ "professionals.filters.open": string;
838
+ "professionals.filters.openHint": string;
839
+ "professionals.filters.activeCount_one": string;
840
+ "professionals.filters.activeCount_other": string;
841
+ "professionals.filters.apply": string;
842
+ "professionals.filters.emptyOptions": string;
843
+ "professionals.emptySearch.title": string;
844
+ "professionals.emptySearch.subtitle": string;
845
+ "professionals.emptySearch.clear": string;
846
+ "professionals.emptyFilter.title": string;
641
847
  "clients.select.title": string;
642
848
  "clients.select.searchPlaceholder": string;
643
849
  "clients.select.newClient": string;
@@ -731,6 +937,7 @@ declare const appPT: {
731
937
  "tabs.columns.quantity": string;
732
938
  "tabs.columns.unitPrice": string;
733
939
  "tabs.columns.professional": string;
940
+ "tabs.columns.seller": string;
734
941
  "tabs.columns.auxiliary": string;
735
942
  "tabs.addAuxiliary": string;
736
943
  "tabs.notes": string;
@@ -768,12 +975,136 @@ declare const appPT: {
768
975
  "tabs.detail.total": string;
769
976
  "tabs.detail.closedAt": string;
770
977
  "tabs.receipt.action": string;
771
- "tabs.receipt.export.title": string;
772
- "tabs.receipt.export.chooseFormat": string;
773
- "tabs.receipt.export.a4": string;
774
- "tabs.receipt.export.fiscal": string;
978
+ "tabs.receipt.downloadPdf": string;
979
+ "tabs.receipt.downloadPdfHint": string;
775
980
  "tabs.receipt.export.success": string;
776
981
  "tabs.receipt.export.error": string;
982
+ "tabs.empty.title": string;
983
+ "tabs.empty.subtitle": string;
984
+ "tabs.empty.closedSubtitle": string;
985
+ "tabs.header.subtitle": string;
986
+ "tabs.header.statusOpen": string;
987
+ "tabs.header.statusClosed": string;
988
+ "tabs.header.statusCanceled": string;
989
+ "tabs.openCard.title": string;
990
+ "tabs.openCard.meta": string;
991
+ "tabs.openCard.empty": string;
992
+ "tabs.openCard.more_one": string;
993
+ "tabs.openCard.more_other": string;
994
+ "tabs.openCard.moreProducts_one": string;
995
+ "tabs.openCard.moreProducts_other": string;
996
+ "tabs.openCard.moreServices_one": string;
997
+ "tabs.openCard.moreServices_other": string;
998
+ "tabs.openCard.addItem": string;
999
+ "tabs.openCard.addItemHint": string;
1000
+ "tabs.openCard.close": string;
1001
+ "tabs.openCard.closeHint": string;
1002
+ "tabs.openCard.openHint": string;
1003
+ "tabs.openCard.locked": string;
1004
+ "tabs.header.title": string;
1005
+ "tabs.header.openedAt": string;
1006
+ "tabs.header.closedAt": string;
1007
+ "tabs.header.canceled": string;
1008
+ "tabs.header.balance": string;
1009
+ "tabs.header.balanceLabel": string;
1010
+ "tabs.header.backHint": string;
1011
+ "tabs.groups.items_one": string;
1012
+ "tabs.groups.items_other": string;
1013
+ "tabs.groups.commission": string;
1014
+ "tabs.groups.unassigned": string;
1015
+ "tabs.groups.unassignedHint": string;
1016
+ "tabs.groups.packages": string;
1017
+ "tabs.item.duration": string;
1018
+ "tabs.item.quantityPrice": string;
1019
+ "tabs.item.discount": string;
1020
+ "tabs.item.editHint": string;
1021
+ "tabs.summary.subtotal_one": string;
1022
+ "tabs.summary.subtotal_other": string;
1023
+ "tabs.summary.discount": string;
1024
+ "tabs.summary.addDiscount": string;
1025
+ "tabs.summary.discountHint": string;
1026
+ "tabs.footer.more": string;
1027
+ "tabs.footer.close": string;
1028
+ "tabs.footer.closeHint": string;
1029
+ "tabs.footer.unassigned_one": string;
1030
+ "tabs.footer.unassigned_other": string;
1031
+ "tabs.addTile.hint": string;
1032
+ "tabs.addSheet.title": string;
1033
+ "tabs.addSheet.services": string;
1034
+ "tabs.addSheet.products": string;
1035
+ "tabs.addSheet.packages": string;
1036
+ "tabs.addSheet.search": string;
1037
+ "tabs.addSheet.professional": string;
1038
+ "tabs.addSheet.professionalHint": string;
1039
+ "tabs.addSheet.chooseProfessional": string;
1040
+ "tabs.addSheet.all": string;
1041
+ "tabs.addSheet.empty": string;
1042
+ "tabs.addSheet.addOne": string;
1043
+ "tabs.addSheet.addOneHint": string;
1044
+ "tabs.addSheet.removeOne": string;
1045
+ "tabs.addSheet.selected": string;
1046
+ "tabs.addSheet.stock": string;
1047
+ "tabs.addSheet.submit_one": string;
1048
+ "tabs.addSheet.submit_other": string;
1049
+ "tabs.addSheet.submitEmpty": string;
1050
+ "tabs.addSheet.needsProfessional": string;
1051
+ "tabs.editSheet.service": string;
1052
+ "tabs.editSheet.product": string;
1053
+ "tabs.editSheet.package": string;
1054
+ "tabs.editSheet.unitPrice": string;
1055
+ "tabs.editSheet.quantity": string;
1056
+ "tabs.editSheet.decrease": string;
1057
+ "tabs.editSheet.increase": string;
1058
+ "tabs.editSheet.soldBy": string;
1059
+ "tabs.editSheet.servedBy": string;
1060
+ "tabs.editSheet.discount": string;
1061
+ "tabs.editSheet.save": string;
1062
+ "tabs.editSheet.remove": string;
1063
+ "tabs.editSheet.pickProfessional": string;
1064
+ "tabs.discount.value": string;
1065
+ "tabs.discount.percent": string;
1066
+ "tabs.discount.modeHint": string;
1067
+ "tabs.discount.saved": string;
1068
+ "tabs.discount.tooHigh": string;
1069
+ "tabs.discount.result": string;
1070
+ "tabs.discountSheet.title": string;
1071
+ "tabs.discountSheet.save": string;
1072
+ "tabs.discountSheet.remove": string;
1073
+ "tabs.payment.title": string;
1074
+ "tabs.payment.subtitle": string;
1075
+ "tabs.payment.total": string;
1076
+ "tabs.payment.useBalance": string;
1077
+ "tabs.payment.balanceAvailable": string;
1078
+ "tabs.payment.remaining": string;
1079
+ "tabs.payment.method": string;
1080
+ "tabs.payment.split": string;
1081
+ "tabs.payment.splitOff": string;
1082
+ "tabs.payment.splitMissing": string;
1083
+ "tabs.payment.splitOver": string;
1084
+ "tabs.payment.splitAmount": string;
1085
+ "tabs.payment.discount": string;
1086
+ "tabs.payment.discountNone": string;
1087
+ "tabs.payment.discountCustom": string;
1088
+ "tabs.payment.receive": string;
1089
+ "tabs.payment.receiveWithBalance": string;
1090
+ "tabs.payment.chooseMethod": string;
1091
+ "tabs.payment.methodHint": string;
1092
+ "tabs.closed.heading": string;
1093
+ "tabs.closed.amountLabel": string;
1094
+ "tabs.closed.paidAt": string;
1095
+ "tabs.closed.client": string;
1096
+ "tabs.closed.commissionOf": string;
1097
+ "tabs.closed.doneHint": string;
1098
+ "tabs.closed.title": string;
1099
+ "tabs.closed.received": string;
1100
+ "tabs.closed.commissions": string;
1101
+ "tabs.closed.scheduleReturn": string;
1102
+ "tabs.closed.scheduleReturnHint": string;
1103
+ "tabs.closed.returnEvery": string;
1104
+ "tabs.closed.suggest": string;
1105
+ "tabs.closed.schedule": string;
1106
+ "tabs.closed.scheduleHint": string;
1107
+ "tabs.closed.done": string;
777
1108
  "breadcrumb.cashRegister": string;
778
1109
  "cashRegister.page.title": string;
779
1110
  "cashRegister.page.subtitle": string;
@@ -920,6 +1251,62 @@ declare const appPT: {
920
1251
  "professionals.schedules.applyToOtherDays": string;
921
1252
  "professionals.schedules.loading": string;
922
1253
  "professionals.schedules.empty": string;
1254
+ "professionals.schedules.summary.days": string;
1255
+ "professionals.schedules.summary.daysValue": string;
1256
+ "professionals.schedules.summary.hours": string;
1257
+ "professionals.schedules.summary.hoursValue": string;
1258
+ "professionals.schedules.legend.working": string;
1259
+ "professionals.schedules.legend.lunch": string;
1260
+ "professionals.schedules.legend.off": string;
1261
+ "professionals.schedules.offDay": string;
1262
+ "professionals.schedules.hint": string;
1263
+ "professionals.schedules.dayHint": string;
1264
+ "professionals.schedules.dragStart": string;
1265
+ "professionals.schedules.dragEnd": string;
1266
+ "professionals.schedules.dragHint": string;
1267
+ "professionals.schedules.daySheet.works": string;
1268
+ "professionals.schedules.daySheet.removeBreak": string;
1269
+ "professionals.schedules.daySheet.removeBreakHint": string;
1270
+ "professionals.schedules.daySheet.close": string;
1271
+ "professionals.schedules.daySheet.closeHint": string;
1272
+ "professionals.schedules.exceptions.title": string;
1273
+ "professionals.schedules.exceptions.add": string;
1274
+ "professionals.schedules.exceptions.addHint": string;
1275
+ "professionals.schedules.exceptions.addDayOff": string;
1276
+ "professionals.schedules.exceptions.addExtraHours": string;
1277
+ "professionals.schedules.exceptions.dayOff": string;
1278
+ "professionals.schedules.exceptions.extraHours": string;
1279
+ "professionals.schedules.exceptions.holiday": string;
1280
+ "professionals.schedules.exceptions.notWorking": string;
1281
+ "professionals.schedules.exceptions.reschedule_one": string;
1282
+ "professionals.schedules.exceptions.reschedule_other": string;
1283
+ "professionals.schedules.exceptions.works": string;
1284
+ "professionals.schedules.exceptions.holidaySuggestion": string;
1285
+ "professionals.schedules.exceptions.holidayHint": string;
1286
+ "professionals.schedules.exceptions.itemHint": string;
1287
+ "professionals.schedules.exceptions.holidayDialog.title": string;
1288
+ "professionals.schedules.exceptions.holidayDialog.description": string;
1289
+ "professionals.schedules.exceptions.holidayDialog.confirm": string;
1290
+ "professionals.schedules.exceptions.removeDayOffTitle": string;
1291
+ "professionals.schedules.exceptions.removeExtraTitle": string;
1292
+ "professionals.schedules.exceptions.removeDescription": string;
1293
+ "professionals.schedules.exceptions.remove": string;
1294
+ "professionals.schedules.exceptions.empty": string;
1295
+ "professionals.schedules.exceptions.loadError": string;
1296
+ "professionals.schedules.extraSheet.subtitle": string;
1297
+ "professionals.schedules.extraSheet.date": string;
1298
+ "professionals.schedules.extraSheet.selectDate": string;
1299
+ "professionals.schedules.extraSheet.selectDateHint": string;
1300
+ "professionals.schedules.extraSheet.reason": string;
1301
+ "professionals.schedules.extraSheet.reasonPlaceholder": string;
1302
+ "professionals.schedules.extraSheet.save": string;
1303
+ "professionals.schedules.extraSheet.invalidTime": string;
1304
+ "professionals.schedules.timeInputHint": string;
1305
+ "professionals.schedules.daySheet.worksHint": string;
1306
+ "professionals.schedules.daySheet.addBreakHint": string;
1307
+ "professionals.schedules.extraSheet.reasonHint": string;
1308
+ "professionals.schedules.extraSheet.success": string;
1309
+ "professionals.schedules.exceptions.removed": string;
923
1310
  "professionals.schedules.create.success": string;
924
1311
  "professionals.schedules.create.error": string;
925
1312
  "professionals.schedules.edit.success": string;
@@ -1169,6 +1556,50 @@ declare const appPT: {
1169
1556
  "absences.form.startDate": string;
1170
1557
  "absences.form.endDate": string;
1171
1558
  "absences.form.reason": string;
1559
+ "absences.type.day_off": string;
1560
+ "absences.form.newTitle": string;
1561
+ "absences.form.subtitleDay": string;
1562
+ "absences.form.close": string;
1563
+ "absences.form.closeHint": string;
1564
+ "absences.form.mode.period": string;
1565
+ "absences.form.mode.hours": string;
1566
+ "absences.form.prevMonth": string;
1567
+ "absences.form.nextMonth": string;
1568
+ "absences.form.monthHint": string;
1569
+ "absences.form.dayHint": string;
1570
+ "absences.form.legendAppointments": string;
1571
+ "absences.form.legendHoliday": string;
1572
+ "absences.form.dayWithAppointments": string;
1573
+ "absences.form.selectPeriodHint": string;
1574
+ "absences.form.observation": string;
1575
+ "absences.form.observationPlaceholder": string;
1576
+ "absences.form.observationHint": string;
1577
+ "absences.form.reasonLabel": string;
1578
+ "absences.form.reasons.medical": string;
1579
+ "absences.form.reasons.personal": string;
1580
+ "absences.form.reasons.bank": string;
1581
+ "absences.form.reasons.other": string;
1582
+ "absences.form.otherPlaceholder": string;
1583
+ "absences.form.saveSingle": string;
1584
+ "absences.form.saveRange_one": string;
1585
+ "absences.form.saveRange_other": string;
1586
+ "absences.form.saveHours": string;
1587
+ "absences.form.absentBlock": string;
1588
+ "absences.form.conflict": string;
1589
+ "absences.form.dragHint": string;
1590
+ "absences.form.blockStart": string;
1591
+ "absences.form.blockEnd": string;
1592
+ "absences.form.blockMove": string;
1593
+ "absences.form.blockAdjustHint": string;
1594
+ "absences.form.changeDay": string;
1595
+ "absences.form.changeDayHint": string;
1596
+ "absences.form.reschedule_one": string;
1597
+ "absences.form.reschedule_other": string;
1598
+ "absences.form.pickProfessional": string;
1599
+ "absences.form.pickProfessionalHint": string;
1600
+ "absences.form.durationHours": string;
1601
+ "absences.form.durationMinutes": string;
1602
+ "absences.form.durationMixed": string;
1172
1603
  "absences.form.save": string;
1173
1604
  "absences.conflict.title": string;
1174
1605
  "absences.conflict.message": string;
@@ -1959,11 +2390,13 @@ declare const appPT: {
1959
2390
  PROF_014: string;
1960
2391
  PROF_015: string;
1961
2392
  PROF_016: string;
2393
+ PROF_017: string;
1962
2394
  PROF_200: string;
1963
2395
  PROF_200_DELETE: string;
1964
2396
  PROF_200_PAYOUT_CANCELED: string;
1965
2397
  PROF_200_PAYOUT_REGISTERED: string;
1966
2398
  PROF_200_VOUCHER_CANCELED: string;
2399
+ PROF_200_COMMISSION_RULE_UPDATED: string;
1967
2400
  PROF_200_VOUCHER_CREATED: string;
1968
2401
  PROF_201: string;
1969
2402
  PROLE_001: string;
@@ -1991,8 +2424,11 @@ declare const appPT: {
1991
2424
  SCHED_005: string;
1992
2425
  SCHED_006: string;
1993
2426
  SCHED_007: string;
2427
+ SCHED_008: string;
1994
2428
  SCHED_200: string;
1995
2429
  SCHED_200_DELETE: string;
2430
+ SCHED_201_EXTRA_HOURS: string;
2431
+ SCHED_200_EXTRA_HOURS_DELETE: string;
1996
2432
  SCHED_201: string;
1997
2433
  SERV_001: string;
1998
2434
  SERV_002: string;
@@ -2036,6 +2472,7 @@ declare const appPT: {
2036
2472
  ABS_003: string;
2037
2473
  ABS_004: string;
2038
2474
  ABS_005: string;
2475
+ ABS_006: string;
2039
2476
  ABS_200: string;
2040
2477
  ABS_200_DELETE: string;
2041
2478
  ABS_201: string;
@@ -2122,6 +2559,8 @@ declare const appPT: {
2122
2559
  TAB_025: string;
2123
2560
  TAB_026: string;
2124
2561
  TAB_027: string;
2562
+ TAB_028: string;
2563
+ TAB_029: string;
2125
2564
  TAB_200_CANCELED: string;
2126
2565
  TAB_200_CLOSED: string;
2127
2566
  TAB_200_ITEM_ADDED: string;
package/dist/i18n/pt.js CHANGED
@@ -1,3 +1,3 @@
1
- export { appPT } from '../chunk-AIMCPYP2.js';
1
+ export { appPT } from '../chunk-V35KHOP7.js';
2
2
  //# sourceMappingURL=pt.js.map
3
3
  //# sourceMappingURL=pt.js.map
@@ -12,7 +12,8 @@ var DEFAULT_ABSENCE_FORM_MESSAGES = {
12
12
  var absenceTypeSchema = zod.z.enum([
13
13
  "temporary_leave",
14
14
  "missed_shift",
15
- "vacation"
15
+ "vacation",
16
+ "day_off"
16
17
  ]);
17
18
  var createAbsenceFormSchema = (messages = {}) => {
18
19
  const resolved = { ...DEFAULT_ABSENCE_FORM_MESSAGES, ...messages };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/core/schemas/absence-form.ts"],"names":["z"],"mappings":";;;;;AASA,IAAM,6BAAA,GAA2D;AAAA,EAC/D,oBAAA,EAAsB,2CAAA;AAAA,EACtB,iBAAA,EAAmB,wCAAA;AAAA,EACnB,eAAA,EAAiB,sCAAA;AAAA,EACjB,sBAAA,EAAwB;AAC1B,CAAA;AAEO,IAAM,iBAAA,GAAoBA,MAAE,IAAA,CAAK;AAAA,EACtC,iBAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,uBAAA,GAA0B,CACrC,QAAA,GAA+C,EAAC,KAC7C;AACH,EAAA,MAAM,QAAA,GAAW,EAAE,GAAG,6BAAA,EAA+B,GAAG,QAAA,EAAS;AAEjE,EAAA,OAAOA,MACJ,MAAA,CAAO;AAAA,IACN,eAAA,EAAiBA,MACd,MAAA,EAAO,CACP,KAAI,CACJ,QAAA,CAAS,SAAS,oBAAoB,CAAA;AAAA,IACzC,IAAA,EAAM,iBAAA;AAAA,IACN,YAAYA,KAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAA,EAAG,SAAS,iBAAiB,CAAA;AAAA,IACxD,UAAUA,KAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAA,EAAG,SAAS,eAAe,CAAA;AAAA,IACpD,MAAA,EAAQA,KAAA,CAAE,MAAA,EAAO,CAAE,GAAA,CAAI,GAAI,CAAA,CAAE,QAAA,EAAS,CAAE,EAAA,CAAGA,KAAA,CAAE,OAAA,CAAQ,EAAE,CAAC;AAAA,GACzD,EACA,MAAA,CAAO,CAAC,SAAS,IAAA,CAAK,QAAA,IAAY,KAAK,UAAA,EAAY;AAAA,IAClD,SAAS,QAAA,CAAS,sBAAA;AAAA,IAClB,IAAA,EAAM,CAAC,UAAU;AAAA,GAClB,CAAA;AACL;AAEO,IAAM,oBAAoB,uBAAA","file":"absence-form.cjs","sourcesContent":["import { z } from \"zod\";\n\nexport interface AbsenceFormSchemaMessages {\n professionalRequired: string;\n startDateRequired: string;\n endDateRequired: string;\n endDateBeforeStartDate: string;\n}\n\nconst DEFAULT_ABSENCE_FORM_MESSAGES: AbsenceFormSchemaMessages = {\n professionalRequired: \"absences.validation.professional.required\",\n startDateRequired: \"absences.validation.startDate.required\",\n endDateRequired: \"absences.validation.endDate.required\",\n endDateBeforeStartDate: \"absences.validation.endDate.beforeStartDate\",\n};\n\nexport const absenceTypeSchema = z.enum([\n \"temporary_leave\",\n \"missed_shift\",\n \"vacation\",\n]);\n\nexport const createAbsenceFormSchema = (\n messages: Partial<AbsenceFormSchemaMessages> = {},\n) => {\n const resolved = { ...DEFAULT_ABSENCE_FORM_MESSAGES, ...messages };\n\n return z\n .object({\n professional_id: z\n .number()\n .int()\n .positive(resolved.professionalRequired),\n type: absenceTypeSchema,\n start_date: z.string().min(1, resolved.startDateRequired),\n end_date: z.string().min(1, resolved.endDateRequired),\n reason: z.string().max(2000).optional().or(z.literal(\"\")),\n })\n .refine((data) => data.end_date >= data.start_date, {\n message: resolved.endDateBeforeStartDate,\n path: [\"end_date\"],\n });\n};\n\nexport const absenceFormSchema = createAbsenceFormSchema();\n\nexport type AbsenceFormValues = z.infer<typeof absenceFormSchema>;\n"]}
1
+ {"version":3,"sources":["../../src/core/schemas/absence-form.ts"],"names":["z"],"mappings":";;;;;AASA,IAAM,6BAAA,GAA2D;AAAA,EAC/D,oBAAA,EAAsB,2CAAA;AAAA,EACtB,iBAAA,EAAmB,wCAAA;AAAA,EACnB,eAAA,EAAiB,sCAAA;AAAA,EACjB,sBAAA,EAAwB;AAC1B,CAAA;AAEO,IAAM,iBAAA,GAAoBA,MAAE,IAAA,CAAK;AAAA,EACtC,iBAAA;AAAA,EACA,cAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,uBAAA,GAA0B,CACrC,QAAA,GAA+C,EAAC,KAC7C;AACH,EAAA,MAAM,QAAA,GAAW,EAAE,GAAG,6BAAA,EAA+B,GAAG,QAAA,EAAS;AAEjE,EAAA,OAAOA,MACJ,MAAA,CAAO;AAAA,IACN,eAAA,EAAiBA,MACd,MAAA,EAAO,CACP,KAAI,CACJ,QAAA,CAAS,SAAS,oBAAoB,CAAA;AAAA,IACzC,IAAA,EAAM,iBAAA;AAAA,IACN,YAAYA,KAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAA,EAAG,SAAS,iBAAiB,CAAA;AAAA,IACxD,UAAUA,KAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAA,EAAG,SAAS,eAAe,CAAA;AAAA,IACpD,MAAA,EAAQA,KAAA,CAAE,MAAA,EAAO,CAAE,GAAA,CAAI,GAAI,CAAA,CAAE,QAAA,EAAS,CAAE,EAAA,CAAGA,KAAA,CAAE,OAAA,CAAQ,EAAE,CAAC;AAAA,GACzD,EACA,MAAA,CAAO,CAAC,SAAS,IAAA,CAAK,QAAA,IAAY,KAAK,UAAA,EAAY;AAAA,IAClD,SAAS,QAAA,CAAS,sBAAA;AAAA,IAClB,IAAA,EAAM,CAAC,UAAU;AAAA,GAClB,CAAA;AACL;AAEO,IAAM,oBAAoB,uBAAA","file":"absence-form.cjs","sourcesContent":["import { z } from \"zod\";\n\nexport interface AbsenceFormSchemaMessages {\n professionalRequired: string;\n startDateRequired: string;\n endDateRequired: string;\n endDateBeforeStartDate: string;\n}\n\nconst DEFAULT_ABSENCE_FORM_MESSAGES: AbsenceFormSchemaMessages = {\n professionalRequired: \"absences.validation.professional.required\",\n startDateRequired: \"absences.validation.startDate.required\",\n endDateRequired: \"absences.validation.endDate.required\",\n endDateBeforeStartDate: \"absences.validation.endDate.beforeStartDate\",\n};\n\nexport const absenceTypeSchema = z.enum([\n \"temporary_leave\",\n \"missed_shift\",\n \"vacation\",\n \"day_off\",\n]);\n\nexport const createAbsenceFormSchema = (\n messages: Partial<AbsenceFormSchemaMessages> = {},\n) => {\n const resolved = { ...DEFAULT_ABSENCE_FORM_MESSAGES, ...messages };\n\n return z\n .object({\n professional_id: z\n .number()\n .int()\n .positive(resolved.professionalRequired),\n type: absenceTypeSchema,\n start_date: z.string().min(1, resolved.startDateRequired),\n end_date: z.string().min(1, resolved.endDateRequired),\n reason: z.string().max(2000).optional().or(z.literal(\"\")),\n })\n .refine((data) => data.end_date >= data.start_date, {\n message: resolved.endDateBeforeStartDate,\n path: [\"end_date\"],\n });\n};\n\nexport const absenceFormSchema = createAbsenceFormSchema();\n\nexport type AbsenceFormValues = z.infer<typeof absenceFormSchema>;\n"]}
@@ -10,6 +10,7 @@ declare const absenceTypeSchema: z.ZodEnum<{
10
10
  temporary_leave: "temporary_leave";
11
11
  missed_shift: "missed_shift";
12
12
  vacation: "vacation";
13
+ day_off: "day_off";
13
14
  }>;
14
15
  declare const createAbsenceFormSchema: (messages?: Partial<AbsenceFormSchemaMessages>) => z.ZodObject<{
15
16
  professional_id: z.ZodNumber;
@@ -17,6 +18,7 @@ declare const createAbsenceFormSchema: (messages?: Partial<AbsenceFormSchemaMess
17
18
  temporary_leave: "temporary_leave";
18
19
  missed_shift: "missed_shift";
19
20
  vacation: "vacation";
21
+ day_off: "day_off";
20
22
  }>;
21
23
  start_date: z.ZodString;
22
24
  end_date: z.ZodString;
@@ -28,6 +30,7 @@ declare const absenceFormSchema: z.ZodObject<{
28
30
  temporary_leave: "temporary_leave";
29
31
  missed_shift: "missed_shift";
30
32
  vacation: "vacation";
33
+ day_off: "day_off";
31
34
  }>;
32
35
  start_date: z.ZodString;
33
36
  end_date: z.ZodString;
@@ -10,6 +10,7 @@ declare const absenceTypeSchema: z.ZodEnum<{
10
10
  temporary_leave: "temporary_leave";
11
11
  missed_shift: "missed_shift";
12
12
  vacation: "vacation";
13
+ day_off: "day_off";
13
14
  }>;
14
15
  declare const createAbsenceFormSchema: (messages?: Partial<AbsenceFormSchemaMessages>) => z.ZodObject<{
15
16
  professional_id: z.ZodNumber;
@@ -17,6 +18,7 @@ declare const createAbsenceFormSchema: (messages?: Partial<AbsenceFormSchemaMess
17
18
  temporary_leave: "temporary_leave";
18
19
  missed_shift: "missed_shift";
19
20
  vacation: "vacation";
21
+ day_off: "day_off";
20
22
  }>;
21
23
  start_date: z.ZodString;
22
24
  end_date: z.ZodString;
@@ -28,6 +30,7 @@ declare const absenceFormSchema: z.ZodObject<{
28
30
  temporary_leave: "temporary_leave";
29
31
  missed_shift: "missed_shift";
30
32
  vacation: "vacation";
33
+ day_off: "day_off";
31
34
  }>;
32
35
  start_date: z.ZodString;
33
36
  end_date: z.ZodString;
@@ -10,7 +10,8 @@ var DEFAULT_ABSENCE_FORM_MESSAGES = {
10
10
  var absenceTypeSchema = z.enum([
11
11
  "temporary_leave",
12
12
  "missed_shift",
13
- "vacation"
13
+ "vacation",
14
+ "day_off"
14
15
  ]);
15
16
  var createAbsenceFormSchema = (messages = {}) => {
16
17
  const resolved = { ...DEFAULT_ABSENCE_FORM_MESSAGES, ...messages };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/core/schemas/absence-form.ts"],"names":[],"mappings":";;;AASA,IAAM,6BAAA,GAA2D;AAAA,EAC/D,oBAAA,EAAsB,2CAAA;AAAA,EACtB,iBAAA,EAAmB,wCAAA;AAAA,EACnB,eAAA,EAAiB,sCAAA;AAAA,EACjB,sBAAA,EAAwB;AAC1B,CAAA;AAEO,IAAM,iBAAA,GAAoB,EAAE,IAAA,CAAK;AAAA,EACtC,iBAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,uBAAA,GAA0B,CACrC,QAAA,GAA+C,EAAC,KAC7C;AACH,EAAA,MAAM,QAAA,GAAW,EAAE,GAAG,6BAAA,EAA+B,GAAG,QAAA,EAAS;AAEjE,EAAA,OAAO,EACJ,MAAA,CAAO;AAAA,IACN,eAAA,EAAiB,EACd,MAAA,EAAO,CACP,KAAI,CACJ,QAAA,CAAS,SAAS,oBAAoB,CAAA;AAAA,IACzC,IAAA,EAAM,iBAAA;AAAA,IACN,YAAY,CAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAA,EAAG,SAAS,iBAAiB,CAAA;AAAA,IACxD,UAAU,CAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAA,EAAG,SAAS,eAAe,CAAA;AAAA,IACpD,MAAA,EAAQ,CAAA,CAAE,MAAA,EAAO,CAAE,GAAA,CAAI,GAAI,CAAA,CAAE,QAAA,EAAS,CAAE,EAAA,CAAG,CAAA,CAAE,OAAA,CAAQ,EAAE,CAAC;AAAA,GACzD,EACA,MAAA,CAAO,CAAC,SAAS,IAAA,CAAK,QAAA,IAAY,KAAK,UAAA,EAAY;AAAA,IAClD,SAAS,QAAA,CAAS,sBAAA;AAAA,IAClB,IAAA,EAAM,CAAC,UAAU;AAAA,GAClB,CAAA;AACL;AAEO,IAAM,oBAAoB,uBAAA","file":"absence-form.js","sourcesContent":["import { z } from \"zod\";\n\nexport interface AbsenceFormSchemaMessages {\n professionalRequired: string;\n startDateRequired: string;\n endDateRequired: string;\n endDateBeforeStartDate: string;\n}\n\nconst DEFAULT_ABSENCE_FORM_MESSAGES: AbsenceFormSchemaMessages = {\n professionalRequired: \"absences.validation.professional.required\",\n startDateRequired: \"absences.validation.startDate.required\",\n endDateRequired: \"absences.validation.endDate.required\",\n endDateBeforeStartDate: \"absences.validation.endDate.beforeStartDate\",\n};\n\nexport const absenceTypeSchema = z.enum([\n \"temporary_leave\",\n \"missed_shift\",\n \"vacation\",\n]);\n\nexport const createAbsenceFormSchema = (\n messages: Partial<AbsenceFormSchemaMessages> = {},\n) => {\n const resolved = { ...DEFAULT_ABSENCE_FORM_MESSAGES, ...messages };\n\n return z\n .object({\n professional_id: z\n .number()\n .int()\n .positive(resolved.professionalRequired),\n type: absenceTypeSchema,\n start_date: z.string().min(1, resolved.startDateRequired),\n end_date: z.string().min(1, resolved.endDateRequired),\n reason: z.string().max(2000).optional().or(z.literal(\"\")),\n })\n .refine((data) => data.end_date >= data.start_date, {\n message: resolved.endDateBeforeStartDate,\n path: [\"end_date\"],\n });\n};\n\nexport const absenceFormSchema = createAbsenceFormSchema();\n\nexport type AbsenceFormValues = z.infer<typeof absenceFormSchema>;\n"]}
1
+ {"version":3,"sources":["../../src/core/schemas/absence-form.ts"],"names":[],"mappings":";;;AASA,IAAM,6BAAA,GAA2D;AAAA,EAC/D,oBAAA,EAAsB,2CAAA;AAAA,EACtB,iBAAA,EAAmB,wCAAA;AAAA,EACnB,eAAA,EAAiB,sCAAA;AAAA,EACjB,sBAAA,EAAwB;AAC1B,CAAA;AAEO,IAAM,iBAAA,GAAoB,EAAE,IAAA,CAAK;AAAA,EACtC,iBAAA;AAAA,EACA,cAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,uBAAA,GAA0B,CACrC,QAAA,GAA+C,EAAC,KAC7C;AACH,EAAA,MAAM,QAAA,GAAW,EAAE,GAAG,6BAAA,EAA+B,GAAG,QAAA,EAAS;AAEjE,EAAA,OAAO,EACJ,MAAA,CAAO;AAAA,IACN,eAAA,EAAiB,EACd,MAAA,EAAO,CACP,KAAI,CACJ,QAAA,CAAS,SAAS,oBAAoB,CAAA;AAAA,IACzC,IAAA,EAAM,iBAAA;AAAA,IACN,YAAY,CAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAA,EAAG,SAAS,iBAAiB,CAAA;AAAA,IACxD,UAAU,CAAA,CAAE,MAAA,GAAS,GAAA,CAAI,CAAA,EAAG,SAAS,eAAe,CAAA;AAAA,IACpD,MAAA,EAAQ,CAAA,CAAE,MAAA,EAAO,CAAE,GAAA,CAAI,GAAI,CAAA,CAAE,QAAA,EAAS,CAAE,EAAA,CAAG,CAAA,CAAE,OAAA,CAAQ,EAAE,CAAC;AAAA,GACzD,EACA,MAAA,CAAO,CAAC,SAAS,IAAA,CAAK,QAAA,IAAY,KAAK,UAAA,EAAY;AAAA,IAClD,SAAS,QAAA,CAAS,sBAAA;AAAA,IAClB,IAAA,EAAM,CAAC,UAAU;AAAA,GAClB,CAAA;AACL;AAEO,IAAM,oBAAoB,uBAAA","file":"absence-form.js","sourcesContent":["import { z } from \"zod\";\n\nexport interface AbsenceFormSchemaMessages {\n professionalRequired: string;\n startDateRequired: string;\n endDateRequired: string;\n endDateBeforeStartDate: string;\n}\n\nconst DEFAULT_ABSENCE_FORM_MESSAGES: AbsenceFormSchemaMessages = {\n professionalRequired: \"absences.validation.professional.required\",\n startDateRequired: \"absences.validation.startDate.required\",\n endDateRequired: \"absences.validation.endDate.required\",\n endDateBeforeStartDate: \"absences.validation.endDate.beforeStartDate\",\n};\n\nexport const absenceTypeSchema = z.enum([\n \"temporary_leave\",\n \"missed_shift\",\n \"vacation\",\n \"day_off\",\n]);\n\nexport const createAbsenceFormSchema = (\n messages: Partial<AbsenceFormSchemaMessages> = {},\n) => {\n const resolved = { ...DEFAULT_ABSENCE_FORM_MESSAGES, ...messages };\n\n return z\n .object({\n professional_id: z\n .number()\n .int()\n .positive(resolved.professionalRequired),\n type: absenceTypeSchema,\n start_date: z.string().min(1, resolved.startDateRequired),\n end_date: z.string().min(1, resolved.endDateRequired),\n reason: z.string().max(2000).optional().or(z.literal(\"\")),\n })\n .refine((data) => data.end_date >= data.start_date, {\n message: resolved.endDateBeforeStartDate,\n path: [\"end_date\"],\n });\n};\n\nexport const absenceFormSchema = createAbsenceFormSchema();\n\nexport type AbsenceFormValues = z.infer<typeof absenceFormSchema>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agendar/shared",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",