@agendar/shared 0.1.2 → 0.2.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.
Files changed (38) hide show
  1. package/dist/{chunk-VYQXLRJR.js → chunk-7FPQB5UW.js} +97 -37
  2. package/dist/chunk-7FPQB5UW.js.map +1 -0
  3. package/dist/{chunk-SU4TXUAO.js → chunk-CLGTNTZB.js} +79 -37
  4. package/dist/chunk-CLGTNTZB.js.map +1 -0
  5. package/dist/{chunk-MYMUHFW6.js → chunk-LMEE5HXL.js} +79 -37
  6. package/dist/chunk-LMEE5HXL.js.map +1 -0
  7. package/dist/i18n/en.cjs +77 -35
  8. package/dist/i18n/en.cjs.map +1 -1
  9. package/dist/i18n/en.d.cts +73 -32
  10. package/dist/i18n/en.d.ts +73 -32
  11. package/dist/i18n/en.js +1 -1
  12. package/dist/i18n/es.cjs +95 -35
  13. package/dist/i18n/es.cjs.map +1 -1
  14. package/dist/i18n/es.d.cts +91 -32
  15. package/dist/i18n/es.d.ts +91 -32
  16. package/dist/i18n/es.js +1 -1
  17. package/dist/i18n/index.cjs +249 -105
  18. package/dist/i18n/index.cjs.map +1 -1
  19. package/dist/i18n/index.js +3 -3
  20. package/dist/i18n/pt.cjs +77 -35
  21. package/dist/i18n/pt.cjs.map +1 -1
  22. package/dist/i18n/pt.d.cts +73 -32
  23. package/dist/i18n/pt.d.ts +73 -32
  24. package/dist/i18n/pt.js +1 -1
  25. package/dist/schemas/{register-business-owner-form.cjs → sign-up-form.cjs} +43 -16
  26. package/dist/schemas/sign-up-form.cjs.map +1 -0
  27. package/dist/schemas/sign-up-form.d.cts +64 -0
  28. package/dist/schemas/sign-up-form.d.ts +64 -0
  29. package/dist/schemas/{register-business-owner-form.js → sign-up-form.js} +35 -12
  30. package/dist/schemas/sign-up-form.js.map +1 -0
  31. package/package.json +5 -5
  32. package/dist/chunk-MYMUHFW6.js.map +0 -1
  33. package/dist/chunk-SU4TXUAO.js.map +0 -1
  34. package/dist/chunk-VYQXLRJR.js.map +0 -1
  35. package/dist/schemas/register-business-owner-form.cjs.map +0 -1
  36. package/dist/schemas/register-business-owner-form.d.cts +0 -44
  37. package/dist/schemas/register-business-owner-form.d.ts +0 -44
  38. package/dist/schemas/register-business-owner-form.js.map +0 -1
@@ -116,12 +116,16 @@ var apiEN = {
116
116
  PROD_200_DELETE: "Product deleted successfully",
117
117
  PROD_200_PROFESSIONALS: "Product professionals updated successfully",
118
118
  PROD_201: "Product created successfully",
119
+ INVITE_001: "Invite code is invalid or already used",
120
+ INVITE_002: "This invite code has expired",
121
+ INVITE_003: "Add a phone or email to invite this professional",
122
+ INVITE_004: "This professional already has app access",
123
+ INVITE_005: "You are already part of this business",
124
+ INVITE_006: "No active invite for this professional",
119
125
  PROF_001: "Failed to create professional",
120
126
  PROF_002: "Professional not found",
121
127
  PROF_003: "Failed to update professional",
122
128
  PROF_004: "Failed to delete professional",
123
- PROF_005: "No pending claim found for this professional",
124
- PROF_006: "Failed to process claim",
125
129
  PROF_007: "One or more services do not belong to this establishment",
126
130
  PROF_008: "Combined commission deductions cannot exceed 100%",
127
131
  PROF_009: "Authenticated user has no establishment context",
@@ -133,8 +137,6 @@ var apiEN = {
133
137
  PROF_015: "Voucher not found",
134
138
  PROF_016: "Voucher is already canceled",
135
139
  PROF_200: "Professional updated successfully",
136
- PROF_200_CLAIM_APPROVED: "Professional claim approved successfully",
137
- PROF_200_CLAIM_REJECTED: "Professional claim rejected successfully",
138
140
  PROF_200_DELETE: "Professional deleted successfully",
139
141
  PROF_200_PAYOUT_CANCELED: "Commission payout canceled successfully",
140
142
  PROF_200_PAYOUT_REGISTERED: "Commission payout registered successfully",
@@ -453,14 +455,47 @@ var appEN = {
453
455
  "auth.signUp.errors.phoneSendRateLimited": "Too many send attempts. Wait a few minutes and try again.",
454
456
  "auth.signUp.errors.invalidPhoneNumber": "Invalid phone number. Check it and try again.",
455
457
  // Onboarding — create establishment
456
- "onboarding.createEstablishment.title": "What should we call your business?",
457
- "onboarding.createEstablishment.subtitle": "Doesn't matter if you work out of your own place or travel to your clients \u2014 we just need a name to get started.",
458
- "onboarding.createEstablishment.name": "Business name",
459
- "onboarding.createEstablishment.namePlaceholder": "e.g. John's Barbershop",
460
- "onboarding.createEstablishment.submit": "Continue",
461
- "onboarding.createEstablishment.submitting": "Creating...",
462
- "onboarding.createEstablishment.errors.nameRequired": "Enter your business name",
463
- "onboarding.createEstablishment.errors.genericError": "An error occurred while creating your business",
458
+ // SignUp invite, Business onboarding gate, Invite management — see
459
+ // docs/adr/0016-signup-creates-user-only-invite-code.md.
460
+ "auth.signUp.invite.link": "I have an invite",
461
+ "auth.signUp.invite.title": "Enter your invite code",
462
+ "auth.signUp.invite.subtitle": "Use the code that was shared with you.",
463
+ "auth.signUp.invite.codeLabel": "Invite code",
464
+ "auth.signUp.invite.codePlaceholder": "e.g. AB3K7Q",
465
+ "auth.signUp.invite.submit": "Validate code",
466
+ "auth.signUp.invite.validating": "Validating...",
467
+ "auth.signUp.invite.errors.invalidFormat": "The code has 6 characters.",
468
+ "auth.signUp.invite.errors.invalid": "Invalid or already used code.",
469
+ "auth.signUp.invite.errors.expired": "This code has expired. Ask for a new invite.",
470
+ "auth.signUp.invite.confirm.title": "You've been invited",
471
+ "auth.signUp.invite.confirm.subtitle": "{{inviter}} invited you to join {{business}}.",
472
+ "auth.signUp.invite.confirm.subtitleNoInviter": "You've been invited to join {{business}}.",
473
+ "auth.signUp.invite.confirm.hint": "Check your details. We'll send a code to confirm your contact.",
474
+ "auth.signUp.invite.confirm.submit": "Continue",
475
+ "onboarding.createBusiness.title": "What should we call your business?",
476
+ "onboarding.createBusiness.subtitle": "Doesn't matter if you work out of your own place or travel to your clients \u2014 we just need a name to get started.",
477
+ "onboarding.createBusiness.name": "Business name",
478
+ "onboarding.createBusiness.namePlaceholder": "e.g. John's Barbershop",
479
+ "onboarding.createBusiness.submit": "Create business",
480
+ "onboarding.createBusiness.submitting": "Creating...",
481
+ "onboarding.createBusiness.errors.genericError": "An error occurred while creating your business.",
482
+ "onboarding.account": "My account",
483
+ "onboarding.logout": "Sign out",
484
+ "professionals.invite.title": "App access",
485
+ "professionals.invite.description": "Generate a code so {{name}} can create an account and access the schedule.",
486
+ "professionals.invite.generate": "Generate invite code",
487
+ "professionals.invite.regenerate": "Generate new code",
488
+ "professionals.invite.revoke": "Cancel invite",
489
+ "professionals.invite.copy": "Copy code",
490
+ "professionals.invite.copied": "Code copied",
491
+ "professionals.invite.share": "Share",
492
+ "professionals.invite.shareMessage": "Hi {{name}}! You've been invited to {{business}} on Agendar. When creating your account, tap \u201CI have an invite\u201D and enter the code {{code}}. Valid until {{date}}.",
493
+ "professionals.invite.expiresAt": "Valid until {{date}}",
494
+ "professionals.invite.noChannel": "Add a phone or email to invite them.",
495
+ "professionals.invite.emailSent": "The code was also sent to {{email}}.",
496
+ "professionals.invite.generateError": "Couldn't generate the invite.",
497
+ "professionals.invite.revokeSuccess": "Invite cancelled",
498
+ "professionals.invite.revokeError": "Couldn't cancel the invite.",
464
499
  // Tab Bar
465
500
  "tab.hint": "Navigate to {{tab}}",
466
501
  "tab.dashboard": "Dashboard",
@@ -469,6 +504,8 @@ var appEN = {
469
504
  "tab.professionals": "Professionals",
470
505
  "tab.people": "People",
471
506
  "tab.discover": "Discover",
507
+ "tab.home": "Home",
508
+ "tab.profile": "Profile",
472
509
  "tab.appointments": "Appointments",
473
510
  "tab.menu": "Menu",
474
511
  "tab.settings": "Settings",
@@ -604,6 +641,9 @@ var appEN = {
604
641
  "legal.privacy.introduction.title": "Introduction",
605
642
  "legal.privacy.introduction.content": "Your privacy matters to Agendar. This policy explains, in plain language, what data we process to run the product and how you can exercise your rights.",
606
643
  "legal.privacy.dataProcessed.title": "Data we process",
644
+ "legal.privacy.dataProcessed.accountTitle": "Account data",
645
+ "legal.privacy.dataProcessed.businessTitle": "Business data",
646
+ "legal.privacy.dataProcessed.usageTitle": "Technical and usage data",
607
647
  "legal.privacy.dataProcessed.account": "Account data such as name, email, phone number, and credentials required for authentication.",
608
648
  "legal.privacy.dataProcessed.business": "Business operational data such as services, professionals, clients, and scheduling records.",
609
649
  "legal.privacy.dataProcessed.usage": "Minimum technical data for security, stability, and abuse prevention, plus product usage data (screens viewed and features used) so we can understand how Agendar is used.",
@@ -641,6 +681,19 @@ var appEN = {
641
681
  "legal.terms.governingLaw.title": "Governing law",
642
682
  "legal.terms.governingLaw.content": "These terms are governed by applicable law in Brazil, without prejudice to consumer legal rights.",
643
683
  "legal.terms.footer": "By using Agendar, you acknowledge that you have read, understood, and agree to be bound by these Terms of Service.",
684
+ "legal.deleteAccount.title": "Account deletion",
685
+ "legal.deleteAccount.introduction": "You can delete your Agendar account and the data associated with it at any time, free of charge. Choose one of the options below.",
686
+ "legal.deleteAccount.howTo.title": "How to request deletion",
687
+ "legal.deleteAccount.howTo.app": "In the app: open Agendar, go to Settings and tap \u201CDelete account\u201D. Confirm to finish.",
688
+ "legal.deleteAccount.howTo.web": "On the web: sign in to Agendar on the web, go to Settings \u2192 Account and click \u201CDelete my account\u201D.",
689
+ "legal.deleteAccount.howTo.email": "By email: if you can no longer access your account, send an email to the address below with your registered email or phone number, asking for deletion. We will reply within 30 days.",
690
+ "legal.deleteAccount.deleted.title": "What is deleted",
691
+ "legal.deleteAccount.deleted.account": "Your account data: name, email, phone number, birthday, photo and sign-in credentials.",
692
+ "legal.deleteAccount.deleted.soleOwner": "If you are the only owner of a business, the whole business is deleted as well: establishments, services, professionals, clients, appointments, tabs and cash register movements.",
693
+ "legal.deleteAccount.deleted.member": "If the business has other owners, or you are only a professional in it, just your membership is removed and the business keeps running for everyone else.",
694
+ "legal.deleteAccount.retained.title": "What may be kept",
695
+ "legal.deleteAccount.retained.content": "Technical and usage data (app usage events and error reports) already sent to our instrumentation providers is kept only for those providers' retention period and is then discarded automatically.",
696
+ "legal.deleteAccount.warning": "Deletion is immediate and permanent: the account and its data cannot be recovered afterwards.",
644
697
  "legal.support.title": "Support",
645
698
  "legal.support.introduction": "We are available to help with product questions, technical issues, and account-related requests.",
646
699
  "legal.support.channel.title": "Support channel",
@@ -717,7 +770,7 @@ var appEN = {
717
770
  "tour.next": "Next",
718
771
  "tour.finish": "Finish",
719
772
  "professionals.tour.tabs.title": "Browse your professionals",
720
- "professionals.tour.tabs.description": "Switch between all professionals, claims, payables, paid and vouchers.",
773
+ "professionals.tour.tabs.description": "Switch between all professionals, payables, paid and vouchers.",
721
774
  "professionals.tour.new.title": "Add a professional",
722
775
  "professionals.tour.new.description": "Create a new professional profile from here.",
723
776
  "services.tour.new.title": "Add a service",
@@ -802,6 +855,10 @@ var appEN = {
802
855
  "clients.detail.appointmentsPerMonth": "Appointments per month",
803
856
  "clients.detail.upcoming": "Upcoming appointments",
804
857
  "clients.detail.bookingHistory": "Booking history",
858
+ "clients.bookingHistory.empty": "No appointments found.",
859
+ "clients.bookingHistory.error": "Could not load the history",
860
+ "clients.bookingHistory.retry": "Try again",
861
+ "clients.bookingHistory.retryHint": "Reloads the booking history",
805
862
  "clients.detail.viewAll": "View all",
806
863
  "clients.detail.notes": "Notes",
807
864
  "clients.detail.newAppointment": "New appointment",
@@ -1043,7 +1100,6 @@ var appEN = {
1043
1100
  "professionals.empty": "No professionals found.",
1044
1101
  "professionals.new": "New professional",
1045
1102
  "professionals.create.professionRole": "Role",
1046
- "professionals.list.pendingClaimsHint": "Opens pending account claims",
1047
1103
  "professionals.list.newProfessionalHint": "Opens form to add a new professional",
1048
1104
  "professionals.searchPlaceholder": "Search professionals",
1049
1105
  "professionals.searchByNamePhoneSpecialization": "Search by name, phone or specialization...",
@@ -1060,6 +1116,10 @@ var appEN = {
1060
1116
  "professionals.detail.metrics.revenue": "Revenue",
1061
1117
  "professionals.detail.upcoming": "Upcoming appointments",
1062
1118
  "professionals.detail.bookingHistory": "Booking history",
1119
+ "professionals.bookingHistory.empty": "No appointments found.",
1120
+ "professionals.bookingHistory.error": "Could not load the history",
1121
+ "professionals.bookingHistory.retry": "Try again",
1122
+ "professionals.bookingHistory.retryHint": "Reloads the booking history",
1063
1123
  "professionals.detail.emptyUpcoming": "No upcoming appointments.",
1064
1124
  "professionals.detail.emptyHistory": "No booking history.",
1065
1125
  "professionals.detail.viewAll": "View all",
@@ -1128,9 +1188,8 @@ var appEN = {
1128
1188
  "professionals.schedules.applyToDays.success": "Configuration applied to selected days",
1129
1189
  "professionals.schedules.applyToDays.error": "Failed to apply configuration to other days",
1130
1190
  "professionals.page.title": "Professionals",
1131
- "professionals.page.subtitle": "Manage professionals, profile details and pending claims.",
1191
+ "professionals.page.subtitle": "Manage professionals, profile details and app access invites.",
1132
1192
  "professionals.tabs.all": "All",
1133
- "professionals.tabs.claims": "Claims",
1134
1193
  "professionals.tabs.payables": "Payables",
1135
1194
  "professionals.tabs.paid": "Paid",
1136
1195
  "professionals.tabs.vouchers": "Vouchers",
@@ -1221,25 +1280,6 @@ var appEN = {
1221
1280
  "professionals.edit.error": "Failed to update professional",
1222
1281
  "professionals.delete.success": "Professional removed successfully",
1223
1282
  "professionals.delete.error": "Failed to remove professional",
1224
- // Pending Claims Screen
1225
- "professionals.claims.title": "Pending claims",
1226
- "professionals.claims.empty": "No pending claims.",
1227
- "professionals.claims.emptyNow": "No pending claims at the moment.",
1228
- "professionals.claims.emptySubtitle": "New account claims from professionals will show up here for you to review.",
1229
- "professionals.claims.loading": "Loading pending claims...",
1230
- "professionals.claims.approve": "Approve",
1231
- "professionals.claims.reject": "Reject",
1232
- "professionals.claims.approveSuccess": "Claim approved",
1233
- "professionals.claims.rejectSuccess": "Claim rejected",
1234
- "professionals.claims.approveError": "Failed to approve claim",
1235
- "professionals.claims.approveHint": "Approves this professional account claim",
1236
- "professionals.claims.rejectHint": "Rejects this professional account claim",
1237
- "professionals.claims.rejectError": "Failed to reject claim",
1238
- "professionals.claims.professional": "Professional",
1239
- "professionals.claims.phone": "Phone",
1240
- "professionals.claims.email": "E-mail",
1241
- "professionals.claims.noPhone": "No phone",
1242
- "professionals.claims.noEmail": "No e-mail",
1243
1283
  "professionals.operational.professional": "Professional",
1244
1284
  "professionals.operational.selectProfessional": "Select a professional",
1245
1285
  "professionals.operational.selectProfessionalPrompt": "Select a professional to continue.",
@@ -1335,6 +1375,7 @@ var appEN = {
1335
1375
  "appointment.status.canceled": "Canceled",
1336
1376
  "appointment.status.noShow": "No-show",
1337
1377
  "appointments.create.success": "Appointment created successfully",
1378
+ "appointments.create.error": "Could not create the appointment",
1338
1379
  "appointments.update.success": "Appointment updated successfully",
1339
1380
  "appointments.delete.success": "Appointment deleted successfully",
1340
1381
  "appointments.save.error": "Could not save the appointment",
@@ -1532,6 +1573,7 @@ var appEN = {
1532
1573
  "common.close": "Close",
1533
1574
  // Appointment Form
1534
1575
  "appointment.new.title": "New Appointment",
1576
+ "appointment.new.dateUnavailable": "Date unavailable",
1535
1577
  "appointment.new.date": "Date *",
1536
1578
  "appointment.new.time": "Time *",
1537
1579
  "appointment.new.selectTime": "Select a time",
@@ -2048,5 +2090,5 @@ var appEN = {
2048
2090
  };
2049
2091
 
2050
2092
  export { appEN };
2051
- //# sourceMappingURL=chunk-SU4TXUAO.js.map
2052
- //# sourceMappingURL=chunk-SU4TXUAO.js.map
2093
+ //# sourceMappingURL=chunk-CLGTNTZB.js.map
2094
+ //# sourceMappingURL=chunk-CLGTNTZB.js.map