@gus-eip/loggers 4.1.5 → 4.1.6
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/README.md
CHANGED
|
@@ -71,12 +71,22 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
71
71
|
|
|
72
72
|
## OAP-EIP LOGGER
|
|
73
73
|
|
|
74
|
-
Whenever a new use case
|
|
74
|
+
Whenever any EIP integration (for example: `oap-handlers`, `oap-backend`, `eip-integration-handlers`, `platform-events-listener`, or `gus-middleware-service`) introduces a new use case, event, or component, follow these steps to keep this package as the single source of truth for EIP logging:
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
1. Add the new use case, event and component identifiers to `enum.ts`.
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
2. Add a user-friendly message/label for the use case in `mappings/usecase-mapping.ts`.
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
3. Update `mappings/source-destination-mapping.ts` to include the use case and the corresponding brand(s) with their `source` and `destination` values. If the use case already exists and a newly onboarded brand uses it, add the brand under that existing use case entry.
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
Notes:
|
|
83
|
+
|
|
84
|
+
- The `mappings/source-destination-mapping.ts` file is the ultimate source of truth for EIP logger routing and should accurately reflect brand → use case → (source, destination) mappings.
|
|
85
|
+
- Keep `enum.ts` identifiers stable. Prefer adding new identifiers rather than renaming existing ones to avoid breaking downstream projects.
|
|
86
|
+
|
|
87
|
+
Publishing and downstream updates:
|
|
88
|
+
|
|
89
|
+
- After making changes, bump and publish this package.
|
|
90
|
+
- Then update the dependency version used by the `gus-eip-analytics` repository: set the new package version in the `dev` branch for development deployments and in the `prod` branch for production deployments so downstream services pick up the release.
|
|
91
|
+
|
|
92
|
+
---
|
|
@@ -561,55 +561,55 @@ exports.BRAND_USECASE_MAPPING = [
|
|
|
561
561
|
destination: 'GUS Salesforce',
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
|
-
brands: ['
|
|
564
|
+
brands: ['ARD'],
|
|
565
565
|
usecase: 'ADDITIONAL_DOCUMENTS_REQUIRED',
|
|
566
566
|
source: 'Arden DCRM',
|
|
567
567
|
destination: 'GUS Salesforce',
|
|
568
568
|
},
|
|
569
569
|
{
|
|
570
|
-
brands: ['
|
|
570
|
+
brands: ['ARD'],
|
|
571
571
|
usecase: 'ADDITIONAL_INFORMATION_REQUIRED',
|
|
572
572
|
source: 'Arden DCRM',
|
|
573
573
|
destination: 'GUS Salesforce',
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
|
-
brands: ['
|
|
576
|
+
brands: ['ARD'],
|
|
577
577
|
usecase: 'APPLICATION_INTAKE_CHANGE',
|
|
578
578
|
source: 'Arden DCRM',
|
|
579
579
|
destination: 'GUS Salesforce',
|
|
580
580
|
},
|
|
581
581
|
{
|
|
582
|
-
brands: ['
|
|
582
|
+
brands: ['ARD'],
|
|
583
583
|
usecase: 'CLOSED_LOST_STAGE',
|
|
584
584
|
source: 'Arden DCRM',
|
|
585
585
|
destination: 'GUS Salesforce',
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
|
-
brands: ['
|
|
588
|
+
brands: ['ARD'],
|
|
589
589
|
usecase: 'ENROLMENT_STAGE',
|
|
590
590
|
source: 'Arden DCRM',
|
|
591
591
|
destination: 'GUS Salesforce',
|
|
592
592
|
},
|
|
593
593
|
{
|
|
594
|
-
brands: ['
|
|
594
|
+
brands: ['ARD'],
|
|
595
595
|
usecase: 'OFFER_STAGE',
|
|
596
596
|
source: 'Arden DCRM',
|
|
597
597
|
destination: 'GUS Salesforce',
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
|
-
brands: ['
|
|
600
|
+
brands: ['ARD'],
|
|
601
601
|
usecase: 'PAYMENT_RECEIVED',
|
|
602
602
|
source: 'Arden DCRM',
|
|
603
603
|
destination: 'GUS Salesforce',
|
|
604
604
|
},
|
|
605
605
|
{
|
|
606
|
-
brands: ['
|
|
606
|
+
brands: ['ARD'],
|
|
607
607
|
usecase: 'REJECT_DOCUMENT',
|
|
608
608
|
source: 'Arden DCRM',
|
|
609
609
|
destination: 'GUS Salesforce',
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
|
-
brands: ['
|
|
612
|
+
brands: ['ARD'],
|
|
613
613
|
usecase: 'VISA_STATUS_UPDATE',
|
|
614
614
|
source: 'Arden DCRM',
|
|
615
615
|
destination: 'GUS Salesforce',
|
package/package.json
CHANGED