@gymspace/shared 1.2.22 → 1.3.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/index.mjs CHANGED
@@ -15,106 +15,6 @@ var TemplateType = {
15
15
  PROMPT: "PROMPT"
16
16
  };
17
17
 
18
- // src/enums.ts
19
- var UserType = /* @__PURE__ */ ((UserType2) => {
20
- UserType2["OWNER"] = "owner";
21
- UserType2["COLLABORATOR"] = "collaborator";
22
- return UserType2;
23
- })(UserType || {});
24
- var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
25
- SubscriptionStatus2["ACTIVE"] = "active";
26
- SubscriptionStatus2["INACTIVE"] = "inactive";
27
- SubscriptionStatus2["EXPIRED"] = "expired";
28
- SubscriptionStatus2["PAUSED"] = "paused";
29
- SubscriptionStatus2["PENDING_UPGRADE"] = "pending_upgrade";
30
- return SubscriptionStatus2;
31
- })(SubscriptionStatus || {});
32
- var CollaboratorStatus = /* @__PURE__ */ ((CollaboratorStatus2) => {
33
- CollaboratorStatus2["PENDING"] = "pending";
34
- CollaboratorStatus2["ACTIVE"] = "active";
35
- CollaboratorStatus2["INACTIVE"] = "inactive";
36
- return CollaboratorStatus2;
37
- })(CollaboratorStatus || {});
38
- var InvitationStatus = /* @__PURE__ */ ((InvitationStatus2) => {
39
- InvitationStatus2["PENDING"] = "pending";
40
- InvitationStatus2["ACCEPTED"] = "accepted";
41
- InvitationStatus2["CANCELLED"] = "cancelled";
42
- InvitationStatus2["EXPIRED"] = "expired";
43
- return InvitationStatus2;
44
- })(InvitationStatus || {});
45
- var ClientStatus = /* @__PURE__ */ ((ClientStatus2) => {
46
- ClientStatus2["ACTIVE"] = "active";
47
- ClientStatus2["INACTIVE"] = "inactive";
48
- return ClientStatus2;
49
- })(ClientStatus || {});
50
- var PlanStatus = /* @__PURE__ */ ((PlanStatus2) => {
51
- PlanStatus2["ACTIVE"] = "active";
52
- PlanStatus2["INACTIVE"] = "inactive";
53
- PlanStatus2["ARCHIVED"] = "archived";
54
- return PlanStatus2;
55
- })(PlanStatus || {});
56
- var PlanType = /* @__PURE__ */ ((PlanType2) => {
57
- PlanType2["BASIC"] = "BASIC";
58
- PlanType2["PREMIUM"] = "PREMIUM";
59
- PlanType2["ENTERPRISE"] = "ENTERPRISE";
60
- return PlanType2;
61
- })(PlanType || {});
62
- var ContractStatus = /* @__PURE__ */ ((ContractStatus2) => {
63
- ContractStatus2["PENDING"] = "pending";
64
- ContractStatus2["ACTIVE"] = "active";
65
- ContractStatus2["EXPIRING_SOON"] = "expiring_soon";
66
- ContractStatus2["EXPIRED"] = "expired";
67
- ContractStatus2["CANCELLED"] = "cancelled";
68
- ContractStatus2["FOR_RENEW"] = "for_renew";
69
- ContractStatus2["SUSPENDED"] = "suspended";
70
- ContractStatus2["GRACE_PERIOD"] = "grace_period";
71
- ContractStatus2["TERMINATED"] = "terminated";
72
- return ContractStatus2;
73
- })(ContractStatus || {});
74
- var CancellationReason = /* @__PURE__ */ ((CancellationReason2) => {
75
- CancellationReason2["PRICE_TOO_HIGH"] = "PRICE_TOO_HIGH";
76
- CancellationReason2["NOT_USING_SERVICE"] = "NOT_USING_SERVICE";
77
- CancellationReason2["MOVING_LOCATION"] = "MOVING_LOCATION";
78
- CancellationReason2["FINANCIAL_ISSUES"] = "FINANCIAL_ISSUES";
79
- CancellationReason2["SERVICE_DISSATISFACTION"] = "SERVICE_DISSATISFACTION";
80
- CancellationReason2["TEMPORARY_BREAK"] = "TEMPORARY_BREAK";
81
- CancellationReason2["OTHER"] = "OTHER";
82
- return CancellationReason2;
83
- })(CancellationReason || {});
84
- var SuspensionType = /* @__PURE__ */ ((SuspensionType2) => {
85
- SuspensionType2["VACATION"] = "vacation";
86
- SuspensionType2["MEDICAL"] = "medical";
87
- SuspensionType2["FINANCIAL"] = "financial";
88
- SuspensionType2["OTHER"] = "other";
89
- return SuspensionType2;
90
- })(SuspensionType || {});
91
- var PaymentFrequency = /* @__PURE__ */ ((PaymentFrequency2) => {
92
- PaymentFrequency2["MONTHLY"] = "monthly";
93
- PaymentFrequency2["QUARTERLY"] = "quarterly";
94
- PaymentFrequency2["ANNUAL"] = "annual";
95
- return PaymentFrequency2;
96
- })(PaymentFrequency || {});
97
- var AssetStatus = /* @__PURE__ */ ((AssetStatus2) => {
98
- AssetStatus2["ACTIVE"] = "active";
99
- AssetStatus2["DELETED"] = "deleted";
100
- return AssetStatus2;
101
- })(AssetStatus || {});
102
- var AssetCategory = /* @__PURE__ */ ((AssetCategory2) => {
103
- AssetCategory2["MEDICAL_DOCUMENT"] = "medical_document";
104
- AssetCategory2["IDENTIFICATION"] = "identification";
105
- AssetCategory2["INSURANCE"] = "insurance";
106
- AssetCategory2["CONTRACT_COPY"] = "contract_copy";
107
- AssetCategory2["OTHER"] = "other";
108
- return AssetCategory2;
109
- })(AssetCategory || {});
110
- var ContractAssetType = /* @__PURE__ */ ((ContractAssetType2) => {
111
- ContractAssetType2["PAYMENT_RECEIPT"] = "payment_receipt";
112
- ContractAssetType2["CONTRACT_DOCUMENT"] = "contract_document";
113
- ContractAssetType2["IDENTIFICATION"] = "identification";
114
- ContractAssetType2["OTHER"] = "other";
115
- return ContractAssetType2;
116
- })(ContractAssetType || {});
117
-
118
18
  // src/constants/template-codes.constants.ts
119
19
  var TEMPLATE_CODES = {
120
20
  WELCOME: TemplateCode.WELCOME,
@@ -431,8 +331,53 @@ var ACTIVITY_MESSAGE_VARIABLES = [
431
331
  category: "activity",
432
332
  required: false,
433
333
  formatter: "number"
334
+ },
335
+ {
336
+ name: "activityLocation",
337
+ placeholder: "{{activityLocation}}",
338
+ description: "Ubicaci\xF3n de la actividad",
339
+ example: "Av. Principal 123",
340
+ category: "activity",
341
+ required: false,
342
+ formatter: "text"
343
+ },
344
+ {
345
+ name: "timeUntilActivity",
346
+ placeholder: "{{timeUntilActivity}}",
347
+ description: "Tiempo restante hasta la actividad",
348
+ example: "2 horas",
349
+ category: "activity",
350
+ required: false,
351
+ formatter: "text"
434
352
  }
435
353
  ];
354
+ var VARIABLE_CONTEXT_MAP = {
355
+ bulk: BULK_MESSAGE_VARIABLES,
356
+ activity: [...BULK_MESSAGE_VARIABLES, ...ACTIVITY_MESSAGE_VARIABLES],
357
+ event: BULK_MESSAGE_VARIABLES,
358
+ // Para futuros eventos
359
+ reminder: BULK_MESSAGE_VARIABLES
360
+ // Para futuros recordatorios
361
+ };
362
+ function getVariablesByContext(context) {
363
+ return VARIABLE_CONTEXT_MAP[context] || BULK_MESSAGE_VARIABLES;
364
+ }
365
+ function validateVariablesInContext(message, context) {
366
+ const variablePattern = /{{(\w+)}}/g;
367
+ const matches = message.matchAll(variablePattern);
368
+ const invalidVariables = [];
369
+ const validVariables = getVariablesByContext(context).map((v) => v.name);
370
+ for (const match of matches) {
371
+ const variableName = match[1];
372
+ if (!validVariables.includes(variableName)) {
373
+ invalidVariables.push(variableName);
374
+ }
375
+ }
376
+ return {
377
+ valid: invalidVariables.length === 0,
378
+ invalidVariables
379
+ };
380
+ }
436
381
  var BULK_MESSAGE_VARIABLE_CATEGORIES = {
437
382
  client: "Cliente",
438
383
  gym: "Gimnasio",
@@ -625,6 +570,163 @@ var HEADERS = {
625
570
  REQUEST_ID: "X-Request-Id"
626
571
  };
627
572
 
573
+ // src/enums.ts
574
+ var UserType = /* @__PURE__ */ ((UserType2) => {
575
+ UserType2["OWNER"] = "owner";
576
+ UserType2["COLLABORATOR"] = "collaborator";
577
+ return UserType2;
578
+ })(UserType || {});
579
+ var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
580
+ SubscriptionStatus2["ACTIVE"] = "active";
581
+ SubscriptionStatus2["INACTIVE"] = "inactive";
582
+ SubscriptionStatus2["EXPIRED"] = "expired";
583
+ SubscriptionStatus2["PAUSED"] = "paused";
584
+ SubscriptionStatus2["PENDING_UPGRADE"] = "pending_upgrade";
585
+ return SubscriptionStatus2;
586
+ })(SubscriptionStatus || {});
587
+ var CollaboratorStatus = /* @__PURE__ */ ((CollaboratorStatus2) => {
588
+ CollaboratorStatus2["PENDING"] = "pending";
589
+ CollaboratorStatus2["ACTIVE"] = "active";
590
+ CollaboratorStatus2["INACTIVE"] = "inactive";
591
+ return CollaboratorStatus2;
592
+ })(CollaboratorStatus || {});
593
+ var InvitationStatus = /* @__PURE__ */ ((InvitationStatus2) => {
594
+ InvitationStatus2["PENDING"] = "pending";
595
+ InvitationStatus2["ACCEPTED"] = "accepted";
596
+ InvitationStatus2["CANCELLED"] = "cancelled";
597
+ InvitationStatus2["EXPIRED"] = "expired";
598
+ return InvitationStatus2;
599
+ })(InvitationStatus || {});
600
+ var ClientStatus = /* @__PURE__ */ ((ClientStatus2) => {
601
+ ClientStatus2["ACTIVE"] = "active";
602
+ ClientStatus2["INACTIVE"] = "inactive";
603
+ return ClientStatus2;
604
+ })(ClientStatus || {});
605
+ var PlanStatus = /* @__PURE__ */ ((PlanStatus2) => {
606
+ PlanStatus2["ACTIVE"] = "active";
607
+ PlanStatus2["INACTIVE"] = "inactive";
608
+ PlanStatus2["ARCHIVED"] = "archived";
609
+ return PlanStatus2;
610
+ })(PlanStatus || {});
611
+ var PlanType = /* @__PURE__ */ ((PlanType2) => {
612
+ PlanType2["BASIC"] = "BASIC";
613
+ PlanType2["PREMIUM"] = "PREMIUM";
614
+ PlanType2["ENTERPRISE"] = "ENTERPRISE";
615
+ return PlanType2;
616
+ })(PlanType || {});
617
+ var ContractStatus = /* @__PURE__ */ ((ContractStatus2) => {
618
+ ContractStatus2["PENDING"] = "pending";
619
+ ContractStatus2["ACTIVE"] = "active";
620
+ ContractStatus2["EXPIRING_SOON"] = "expiring_soon";
621
+ ContractStatus2["EXPIRED"] = "expired";
622
+ ContractStatus2["CANCELLED"] = "cancelled";
623
+ ContractStatus2["FOR_RENEW"] = "for_renew";
624
+ ContractStatus2["SUSPENDED"] = "suspended";
625
+ ContractStatus2["GRACE_PERIOD"] = "grace_period";
626
+ ContractStatus2["TERMINATED"] = "terminated";
627
+ return ContractStatus2;
628
+ })(ContractStatus || {});
629
+ var CancellationReason = /* @__PURE__ */ ((CancellationReason2) => {
630
+ CancellationReason2["PRICE_TOO_HIGH"] = "PRICE_TOO_HIGH";
631
+ CancellationReason2["NOT_USING_SERVICE"] = "NOT_USING_SERVICE";
632
+ CancellationReason2["MOVING_LOCATION"] = "MOVING_LOCATION";
633
+ CancellationReason2["FINANCIAL_ISSUES"] = "FINANCIAL_ISSUES";
634
+ CancellationReason2["SERVICE_DISSATISFACTION"] = "SERVICE_DISSATISFACTION";
635
+ CancellationReason2["TEMPORARY_BREAK"] = "TEMPORARY_BREAK";
636
+ CancellationReason2["OTHER"] = "OTHER";
637
+ return CancellationReason2;
638
+ })(CancellationReason || {});
639
+ var SuspensionType = /* @__PURE__ */ ((SuspensionType2) => {
640
+ SuspensionType2["VACATION"] = "vacation";
641
+ SuspensionType2["MEDICAL"] = "medical";
642
+ SuspensionType2["FINANCIAL"] = "financial";
643
+ SuspensionType2["OTHER"] = "other";
644
+ return SuspensionType2;
645
+ })(SuspensionType || {});
646
+ var PaymentFrequency = /* @__PURE__ */ ((PaymentFrequency2) => {
647
+ PaymentFrequency2["MONTHLY"] = "monthly";
648
+ PaymentFrequency2["QUARTERLY"] = "quarterly";
649
+ PaymentFrequency2["ANNUAL"] = "annual";
650
+ return PaymentFrequency2;
651
+ })(PaymentFrequency || {});
652
+ var AssetStatus = /* @__PURE__ */ ((AssetStatus2) => {
653
+ AssetStatus2["ACTIVE"] = "active";
654
+ AssetStatus2["DELETED"] = "deleted";
655
+ return AssetStatus2;
656
+ })(AssetStatus || {});
657
+ var AssetCategory = /* @__PURE__ */ ((AssetCategory2) => {
658
+ AssetCategory2["MEDICAL_DOCUMENT"] = "medical_document";
659
+ AssetCategory2["IDENTIFICATION"] = "identification";
660
+ AssetCategory2["INSURANCE"] = "insurance";
661
+ AssetCategory2["CONTRACT_COPY"] = "contract_copy";
662
+ AssetCategory2["OTHER"] = "other";
663
+ return AssetCategory2;
664
+ })(AssetCategory || {});
665
+ var ContractAssetType = /* @__PURE__ */ ((ContractAssetType2) => {
666
+ ContractAssetType2["PAYMENT_RECEIPT"] = "payment_receipt";
667
+ ContractAssetType2["CONTRACT_DOCUMENT"] = "contract_document";
668
+ ContractAssetType2["IDENTIFICATION"] = "identification";
669
+ ContractAssetType2["OTHER"] = "other";
670
+ return ContractAssetType2;
671
+ })(ContractAssetType || {});
672
+
673
+ // src/events/whatsapp.events.ts
674
+ var WHATSAPP_EVENTS = {
675
+ MESSAGE_SEND: "whatsapp/message.send",
676
+ MESSAGE_RECEIVED: "whatsapp/message.received",
677
+ CONNECTION_UPDATE: "whatsapp/connection.update"
678
+ };
679
+
680
+ // src/events/bulk-messaging.events.ts
681
+ var BULK_MESSAGING_EVENTS = {
682
+ SEND_BULK_MESSAGES: "whatsapp/bulk-messages.send"
683
+ };
684
+
685
+ // src/events/activity.events.ts
686
+ var ACTIVITY_EVENTS = {
687
+ SEND_ACTIVITY_NOTIFICATION: "activity/notification.send"
688
+ };
689
+ var templateGenerationRequestSchema = z.object({
690
+ templateCode: z.string(),
691
+ templateMetadata: z.object({
692
+ title: z.string(),
693
+ description: z.string(),
694
+ variables: z.array(z.string()),
695
+ exampleValues: z.record(z.string())
696
+ }),
697
+ userPrompt: z.string().optional(),
698
+ language: z.string().default("es")
699
+ });
700
+ var aiGeneratedTemplateSchema = z.object({
701
+ message: z.string().describe("Mensaje generado con variables en formato {{variable}}"),
702
+ tone: z.enum(["professional", "friendly", "casual", "urgent"]).describe("Tono del mensaje"),
703
+ usedVariables: z.array(z.string()).describe("Variables utilizadas en el mensaje"),
704
+ suggestions: z.array(z.string()).optional().describe("Sugerencias adicionales")
705
+ });
706
+ var bulkMessageGenerationRequestSchema = z.object({
707
+ prompt: z.string().describe("Prompt or context for message generation"),
708
+ tone: z.enum(["promotional", "informational", "reminder", "greeting", "friendly"]).optional().describe("Tone of the message"),
709
+ includeVariables: z.array(z.string()).optional().describe("Variables to include in the message"),
710
+ additionalRequirements: z.string().optional().describe("Additional requirements for the message"),
711
+ language: z.string().default("es").describe("Language for generation")
712
+ });
713
+ var bulkMessageSchema = z.object({
714
+ message: z.string().describe("Generated message with variables"),
715
+ tone: z.enum(["promotional", "informational", "reminder", "greeting", "friendly"]).describe("Tone of the message"),
716
+ usedVariables: z.array(z.string()).describe("Variables used in the message"),
717
+ suggestions: z.array(z.string()).optional().describe("Additional message suggestions")
718
+ });
719
+ var activityNotificationGenerationRequestSchema = z.object({
720
+ prompt: z.string().describe("Prompt or context for notification generation"),
721
+ tone: z.enum(["friendly", "formal", "urgent", "motivational", "reminder"]).optional().describe("Tone of the notification"),
722
+ currentMessage: z.string().optional().describe("Current message to improve or use as reference"),
723
+ additionalRequirements: z.string().optional().describe("Additional requirements for the notification"),
724
+ language: z.string().default("es").describe("Language for generation")
725
+ });
726
+ var activityNotificationSchema = z.object({
727
+ message: z.string().describe("Generated notification message with activity variables")
728
+ });
729
+
628
730
  // src/utils/roleHelpers.ts
629
731
  var RoleNames = /* @__PURE__ */ ((RoleNames2) => {
630
732
  RoleNames2["ADMIN"] = "Admin";
@@ -716,64 +818,38 @@ function getRoleCapabilities(roleName) {
716
818
  }
717
819
  }
718
820
 
719
- // src/events/whatsapp.events.ts
720
- var WHATSAPP_EVENTS = {
721
- MESSAGE_SEND: "whatsapp/message.send",
722
- MESSAGE_RECEIVED: "whatsapp/message.received",
723
- CONNECTION_UPDATE: "whatsapp/connection.update"
724
- };
725
-
726
- // src/events/bulk-messaging.events.ts
727
- var BULK_MESSAGING_EVENTS = {
728
- GENERATE_BULK_MESSAGE: "whatsapp/bulk-message.generate",
729
- SEND_BULK_MESSAGES: "whatsapp/bulk-messages.send"
730
- };
731
-
732
- // src/events/activity.events.ts
733
- var ACTIVITY_EVENTS = {
734
- SEND_ACTIVITY_NOTIFICATION: "activity/notification.send"
735
- };
736
- var templateGenerationRequestSchema = z.object({
737
- templateCode: z.string(),
738
- templateMetadata: z.object({
739
- title: z.string(),
740
- description: z.string(),
741
- variables: z.array(z.string()),
742
- exampleValues: z.record(z.string())
743
- }),
744
- userPrompt: z.string().optional(),
745
- language: z.string().default("es")
746
- });
747
- var aiGeneratedTemplateSchema = z.object({
748
- message: z.string().describe("Mensaje generado con variables en formato {{variable}}"),
749
- tone: z.enum(["professional", "friendly", "casual", "urgent"]).describe("Tono del mensaje"),
750
- usedVariables: z.array(z.string()).describe("Variables utilizadas en el mensaje"),
751
- suggestions: z.array(z.string()).optional().describe("Sugerencias adicionales")
752
- });
753
- var bulkMessageGenerationRequestSchema = z.object({
754
- prompt: z.string().describe("Prompt or context for message generation"),
755
- tone: z.enum(["promotional", "informational", "reminder", "greeting", "friendly"]).optional().describe("Tone of the message"),
756
- includeVariables: z.array(z.string()).optional().describe("Variables to include in the message"),
757
- additionalRequirements: z.string().optional().describe("Additional requirements for the message"),
758
- language: z.string().default("es").describe("Language for generation")
759
- });
760
- var bulkMessageSchema = z.object({
761
- message: z.string().describe("Generated message with variables"),
762
- tone: z.enum(["promotional", "informational", "reminder", "greeting", "friendly"]).describe("Tone of the message"),
763
- usedVariables: z.array(z.string()).describe("Variables used in the message"),
764
- suggestions: z.array(z.string()).optional().describe("Additional message suggestions")
765
- });
766
- var activityNotificationGenerationRequestSchema = z.object({
767
- prompt: z.string().describe("Prompt or context for notification generation"),
768
- tone: z.enum(["friendly", "formal", "urgent", "motivational", "reminder"]).optional().describe("Tone of the notification"),
769
- currentMessage: z.string().optional().describe("Current message to improve or use as reference"),
770
- additionalRequirements: z.string().optional().describe("Additional requirements for the notification"),
771
- language: z.string().default("es").describe("Language for generation")
772
- });
773
- var activityNotificationSchema = z.object({
774
- message: z.string().describe("Generated notification message with activity variables")
775
- });
821
+ // src/utils/phone.utils.ts
822
+ function normalizePhoneForEvolution(phoneNumber) {
823
+ if (!phoneNumber) {
824
+ throw new Error("Phone number is required");
825
+ }
826
+ let cleaned = phoneNumber.replace(/[^\d+]/g, "");
827
+ if (cleaned.startsWith("+")) {
828
+ cleaned = cleaned.substring(1);
829
+ }
830
+ if (cleaned.length === 9) {
831
+ return `+51${cleaned}`;
832
+ }
833
+ if (cleaned.length === 11 && cleaned.startsWith("51")) {
834
+ return `+${cleaned}`;
835
+ }
836
+ if (cleaned.length === 12 && cleaned.startsWith("051")) {
837
+ return `+${cleaned.substring(1)}`;
838
+ }
839
+ if (!cleaned.startsWith("+")) {
840
+ return `+${cleaned}`;
841
+ }
842
+ return cleaned;
843
+ }
844
+ function isValidPeruvianPhone(phoneNumber) {
845
+ try {
846
+ const normalized = normalizePhoneForEvolution(phoneNumber);
847
+ return /^\+51[9]\d{8}$/.test(normalized);
848
+ } catch {
849
+ return false;
850
+ }
851
+ }
776
852
 
777
- export { ACTIVITY_EVENTS, ACTIVITY_MESSAGE_VARIABLES, AssetCategory, AssetStatus, BULK_MESSAGE_VARIABLES, BULK_MESSAGE_VARIABLE_CATEGORIES, BULK_MESSAGING_EVENTS, CACHE_TTL, CancellationReason, ClientStatus, CollaboratorStatus, ContractAssetType, ContractStatus, DATE_FORMATS, FILE_LIMITS, HEADERS, InvitationStatus, PAGINATION_DEFAULTS, PERMISSIONS, PaymentFrequency, PlanStatus, PlanType, ROLE_NAMES, ROLE_PERMISSIONS, RoleNames, SubscriptionStatus, SuspensionType, TEMPLATE_CODES, TEMPLATE_METADATA, TemplateCode, TemplateType, UserType, WHATSAPP_EVENTS, WHATSAPP_TEMPLATE_EVENTS, activityNotificationGenerationRequestSchema, activityNotificationSchema, aiGeneratedTemplateSchema, bulkMessageGenerationRequestSchema, bulkMessageSchema, canAccessFeature, getRoleCapabilities, getRoleDescription, getRoleDisplayName, isAdminRole, isEncargadoRole, templateGenerationRequestSchema };
853
+ export { ACTIVITY_EVENTS, ACTIVITY_MESSAGE_VARIABLES, AssetCategory, AssetStatus, BULK_MESSAGE_VARIABLES, BULK_MESSAGE_VARIABLE_CATEGORIES, BULK_MESSAGING_EVENTS, CACHE_TTL, CancellationReason, ClientStatus, CollaboratorStatus, ContractAssetType, ContractStatus, DATE_FORMATS, FILE_LIMITS, HEADERS, InvitationStatus, PAGINATION_DEFAULTS, PERMISSIONS, PaymentFrequency, PlanStatus, PlanType, ROLE_NAMES, ROLE_PERMISSIONS, RoleNames, SubscriptionStatus, SuspensionType, TEMPLATE_CODES, TEMPLATE_METADATA, TemplateCode, TemplateType, UserType, VARIABLE_CONTEXT_MAP, WHATSAPP_EVENTS, WHATSAPP_TEMPLATE_EVENTS, activityNotificationGenerationRequestSchema, activityNotificationSchema, aiGeneratedTemplateSchema, bulkMessageGenerationRequestSchema, bulkMessageSchema, canAccessFeature, getRoleCapabilities, getRoleDescription, getRoleDisplayName, getVariablesByContext, isAdminRole, isEncargadoRole, isValidPeruvianPhone, normalizePhoneForEvolution, templateGenerationRequestSchema, validateVariablesInContext };
778
854
  //# sourceMappingURL=index.mjs.map
779
855
  //# sourceMappingURL=index.mjs.map