@gymspace/shared 1.2.21 → 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,100 +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 ContractStatus = /* @__PURE__ */ ((ContractStatus2) => {
57
- ContractStatus2["PENDING"] = "pending";
58
- ContractStatus2["ACTIVE"] = "active";
59
- ContractStatus2["EXPIRING_SOON"] = "expiring_soon";
60
- ContractStatus2["EXPIRED"] = "expired";
61
- ContractStatus2["CANCELLED"] = "cancelled";
62
- ContractStatus2["FOR_RENEW"] = "for_renew";
63
- ContractStatus2["SUSPENDED"] = "suspended";
64
- ContractStatus2["GRACE_PERIOD"] = "grace_period";
65
- ContractStatus2["TERMINATED"] = "terminated";
66
- return ContractStatus2;
67
- })(ContractStatus || {});
68
- var CancellationReason = /* @__PURE__ */ ((CancellationReason2) => {
69
- CancellationReason2["PRICE_TOO_HIGH"] = "PRICE_TOO_HIGH";
70
- CancellationReason2["NOT_USING_SERVICE"] = "NOT_USING_SERVICE";
71
- CancellationReason2["MOVING_LOCATION"] = "MOVING_LOCATION";
72
- CancellationReason2["FINANCIAL_ISSUES"] = "FINANCIAL_ISSUES";
73
- CancellationReason2["SERVICE_DISSATISFACTION"] = "SERVICE_DISSATISFACTION";
74
- CancellationReason2["TEMPORARY_BREAK"] = "TEMPORARY_BREAK";
75
- CancellationReason2["OTHER"] = "OTHER";
76
- return CancellationReason2;
77
- })(CancellationReason || {});
78
- var SuspensionType = /* @__PURE__ */ ((SuspensionType2) => {
79
- SuspensionType2["VACATION"] = "vacation";
80
- SuspensionType2["MEDICAL"] = "medical";
81
- SuspensionType2["FINANCIAL"] = "financial";
82
- SuspensionType2["OTHER"] = "other";
83
- return SuspensionType2;
84
- })(SuspensionType || {});
85
- var PaymentFrequency = /* @__PURE__ */ ((PaymentFrequency2) => {
86
- PaymentFrequency2["MONTHLY"] = "monthly";
87
- PaymentFrequency2["QUARTERLY"] = "quarterly";
88
- PaymentFrequency2["ANNUAL"] = "annual";
89
- return PaymentFrequency2;
90
- })(PaymentFrequency || {});
91
- var AssetStatus = /* @__PURE__ */ ((AssetStatus2) => {
92
- AssetStatus2["ACTIVE"] = "active";
93
- AssetStatus2["DELETED"] = "deleted";
94
- return AssetStatus2;
95
- })(AssetStatus || {});
96
- var AssetCategory = /* @__PURE__ */ ((AssetCategory2) => {
97
- AssetCategory2["MEDICAL_DOCUMENT"] = "medical_document";
98
- AssetCategory2["IDENTIFICATION"] = "identification";
99
- AssetCategory2["INSURANCE"] = "insurance";
100
- AssetCategory2["CONTRACT_COPY"] = "contract_copy";
101
- AssetCategory2["OTHER"] = "other";
102
- return AssetCategory2;
103
- })(AssetCategory || {});
104
- var ContractAssetType = /* @__PURE__ */ ((ContractAssetType2) => {
105
- ContractAssetType2["PAYMENT_RECEIPT"] = "payment_receipt";
106
- ContractAssetType2["CONTRACT_DOCUMENT"] = "contract_document";
107
- ContractAssetType2["IDENTIFICATION"] = "identification";
108
- ContractAssetType2["OTHER"] = "other";
109
- return ContractAssetType2;
110
- })(ContractAssetType || {});
111
-
112
18
  // src/constants/template-codes.constants.ts
113
19
  var TEMPLATE_CODES = {
114
20
  WELCOME: TemplateCode.WELCOME,
@@ -333,7 +239,36 @@ var BULK_MESSAGE_VARIABLES = [
333
239
  required: false,
334
240
  formatter: "currency"
335
241
  },
336
- // Variables de Actividades
242
+ // Variables de Fecha/Hora
243
+ {
244
+ name: "date",
245
+ placeholder: "{{date}}",
246
+ description: "Fecha actual",
247
+ example: "15/10/2024",
248
+ category: "datetime",
249
+ required: false,
250
+ formatter: "date"
251
+ },
252
+ {
253
+ name: "time",
254
+ placeholder: "{{time}}",
255
+ description: "Hora actual",
256
+ example: "14:30",
257
+ category: "datetime",
258
+ required: false,
259
+ formatter: "text"
260
+ },
261
+ {
262
+ name: "dayOfWeek",
263
+ placeholder: "{{dayOfWeek}}",
264
+ description: "D\xEDa de la semana",
265
+ example: "Lunes",
266
+ category: "datetime",
267
+ required: false,
268
+ formatter: "text"
269
+ }
270
+ ];
271
+ var ACTIVITY_MESSAGE_VARIABLES = [
337
272
  {
338
273
  name: "activityName",
339
274
  placeholder: "{{activityName}}",
@@ -397,35 +332,52 @@ var BULK_MESSAGE_VARIABLES = [
397
332
  required: false,
398
333
  formatter: "number"
399
334
  },
400
- // Variables de Fecha/Hora
401
335
  {
402
- name: "date",
403
- placeholder: "{{date}}",
404
- description: "Fecha actual",
405
- example: "15/10/2024",
406
- category: "datetime",
407
- required: false,
408
- formatter: "date"
409
- },
410
- {
411
- name: "time",
412
- placeholder: "{{time}}",
413
- description: "Hora actual",
414
- example: "14:30",
415
- category: "datetime",
336
+ name: "activityLocation",
337
+ placeholder: "{{activityLocation}}",
338
+ description: "Ubicaci\xF3n de la actividad",
339
+ example: "Av. Principal 123",
340
+ category: "activity",
416
341
  required: false,
417
342
  formatter: "text"
418
343
  },
419
344
  {
420
- name: "dayOfWeek",
421
- placeholder: "{{dayOfWeek}}",
422
- description: "D\xEDa de la semana",
423
- example: "Lunes",
424
- category: "datetime",
345
+ name: "timeUntilActivity",
346
+ placeholder: "{{timeUntilActivity}}",
347
+ description: "Tiempo restante hasta la actividad",
348
+ example: "2 horas",
349
+ category: "activity",
425
350
  required: false,
426
351
  formatter: "text"
427
352
  }
428
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
+ }
429
381
  var BULK_MESSAGE_VARIABLE_CATEGORIES = {
430
382
  client: "Cliente",
431
383
  gym: "Gimnasio",
@@ -530,6 +482,10 @@ var PERMISSIONS = {
530
482
  COMMISSIONS_RULES_DELETE: "COMMISSIONS_RULES_DELETE",
531
483
  COMMISSIONS_CALCULATIONS_READ: "COMMISSIONS_CALCULATIONS_READ",
532
484
  COMMISSIONS_REPORTS_VIEW: "COMMISSIONS_REPORTS_VIEW",
485
+ // Catalog
486
+ CATALOG_READ: "CATALOG_READ",
487
+ CATALOG_UPDATE: "CATALOG_UPDATE",
488
+ CATALOG_MANAGE: "CATALOG_MANAGE",
533
489
  // Special permissions
534
490
  SUPER_ADMIN: "SUPER_ADMIN",
535
491
  OWNER: "OWNER",
@@ -614,6 +570,163 @@ var HEADERS = {
614
570
  REQUEST_ID: "X-Request-Id"
615
571
  };
616
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
+
617
730
  // src/utils/roleHelpers.ts
618
731
  var RoleNames = /* @__PURE__ */ ((RoleNames2) => {
619
732
  RoleNames2["ADMIN"] = "Admin";
@@ -705,54 +818,38 @@ function getRoleCapabilities(roleName) {
705
818
  }
706
819
  }
707
820
 
708
- // src/events/whatsapp.events.ts
709
- var WHATSAPP_EVENTS = {
710
- MESSAGE_SEND: "whatsapp/message.send",
711
- MESSAGE_RECEIVED: "whatsapp/message.received",
712
- CONNECTION_UPDATE: "whatsapp/connection.update"
713
- };
714
-
715
- // src/events/bulk-messaging.events.ts
716
- var BULK_MESSAGING_EVENTS = {
717
- GENERATE_BULK_MESSAGE: "whatsapp/bulk-message.generate",
718
- SEND_BULK_MESSAGES: "whatsapp/bulk-messages.send"
719
- };
720
-
721
- // src/events/activity.events.ts
722
- var ACTIVITY_EVENTS = {
723
- SEND_ACTIVITY_NOTIFICATION: "activity/notification.send"
724
- };
725
- var templateGenerationRequestSchema = z.object({
726
- templateCode: z.string(),
727
- templateMetadata: z.object({
728
- title: z.string(),
729
- description: z.string(),
730
- variables: z.array(z.string()),
731
- exampleValues: z.record(z.string())
732
- }),
733
- userPrompt: z.string().optional(),
734
- language: z.string().default("es")
735
- });
736
- var aiGeneratedTemplateSchema = z.object({
737
- message: z.string().describe("Mensaje generado con variables en formato {{variable}}"),
738
- tone: z.enum(["professional", "friendly", "casual", "urgent"]).describe("Tono del mensaje"),
739
- usedVariables: z.array(z.string()).describe("Variables utilizadas en el mensaje"),
740
- suggestions: z.array(z.string()).optional().describe("Sugerencias adicionales")
741
- });
742
- var bulkMessageGenerationRequestSchema = z.object({
743
- prompt: z.string().describe("Prompt or context for message generation"),
744
- tone: z.enum(["promotional", "informational", "reminder", "greeting", "friendly"]).optional().describe("Tone of the message"),
745
- includeVariables: z.array(z.string()).optional().describe("Variables to include in the message"),
746
- additionalRequirements: z.string().optional().describe("Additional requirements for the message"),
747
- language: z.string().default("es").describe("Language for generation")
748
- });
749
- var bulkMessageSchema = z.object({
750
- message: z.string().describe("Generated message with variables"),
751
- tone: z.enum(["promotional", "informational", "reminder", "greeting", "friendly"]).describe("Tone of the message"),
752
- usedVariables: z.array(z.string()).describe("Variables used in the message"),
753
- suggestions: z.array(z.string()).optional().describe("Additional message suggestions")
754
- });
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
+ }
755
852
 
756
- export { ACTIVITY_EVENTS, 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, ROLE_NAMES, ROLE_PERMISSIONS, RoleNames, SubscriptionStatus, SuspensionType, TEMPLATE_CODES, TEMPLATE_METADATA, TemplateCode, TemplateType, UserType, WHATSAPP_EVENTS, WHATSAPP_TEMPLATE_EVENTS, 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 };
757
854
  //# sourceMappingURL=index.mjs.map
758
855
  //# sourceMappingURL=index.mjs.map