@acorex-platform/module-application-management-server 0.0.15
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/contracts/src/entities/app-term/app-term.entity.d.ts +2 -0
- package/contracts/src/entities/app-term/app-term.entity.js +470 -0
- package/contracts/src/entities/app-term/app-term.entity.js.map +1 -0
- package/contracts/src/entities/app-term/app-term.types.d.ts +22 -0
- package/contracts/src/entities/app-term/app-term.types.js +3 -0
- package/contracts/src/entities/app-term/app-term.types.js.map +1 -0
- package/contracts/src/entities/app-term/index.d.ts +2 -0
- package/contracts/src/entities/app-term/index.js +6 -0
- package/contracts/src/entities/app-term/index.js.map +1 -0
- package/contracts/src/entities/app-version/app-version.entity.d.ts +2 -0
- package/contracts/src/entities/app-version/app-version.entity.js +324 -0
- package/contracts/src/entities/app-version/app-version.entity.js.map +1 -0
- package/contracts/src/entities/app-version/app-version.types.d.ts +12 -0
- package/contracts/src/entities/app-version/app-version.types.js +3 -0
- package/contracts/src/entities/app-version/app-version.types.js.map +1 -0
- package/contracts/src/entities/app-version/index.d.ts +2 -0
- package/contracts/src/entities/app-version/index.js +6 -0
- package/contracts/src/entities/app-version/index.js.map +1 -0
- package/contracts/src/entities/application/application.entity.d.ts +2 -0
- package/contracts/src/entities/application/application.entity.js +887 -0
- package/contracts/src/entities/application/application.entity.js.map +1 -0
- package/contracts/src/entities/application/application.types.d.ts +24 -0
- package/contracts/src/entities/application/application.types.js +3 -0
- package/contracts/src/entities/application/application.types.js.map +1 -0
- package/contracts/src/entities/application/index.d.ts +2 -0
- package/contracts/src/entities/application/index.js +6 -0
- package/contracts/src/entities/application/index.js.map +1 -0
- package/contracts/src/entities/edition/edition.entity.d.ts +2 -0
- package/contracts/src/entities/edition/edition.entity.js +281 -0
- package/contracts/src/entities/edition/edition.entity.js.map +1 -0
- package/contracts/src/entities/edition/edition.types.d.ts +13 -0
- package/contracts/src/entities/edition/edition.types.js +3 -0
- package/contracts/src/entities/edition/edition.types.js.map +1 -0
- package/contracts/src/entities/edition/index.d.ts +2 -0
- package/contracts/src/entities/edition/index.js +6 -0
- package/contracts/src/entities/edition/index.js.map +1 -0
- package/contracts/src/entities/index.d.ts +4 -0
- package/contracts/src/entities/index.js +8 -0
- package/contracts/src/entities/index.js.map +1 -0
- package/contracts/src/features.keys.d.ts +1 -0
- package/contracts/src/features.keys.js +6 -0
- package/contracts/src/features.keys.js.map +1 -0
- package/contracts/src/index.d.ts +10 -0
- package/contracts/src/index.js +13 -0
- package/contracts/src/index.js.map +1 -0
- package/contracts/src/menu.keys.d.ts +9 -0
- package/contracts/src/menu.keys.js +13 -0
- package/contracts/src/menu.keys.js.map +1 -0
- package/contracts/src/permission.keys.d.ts +8 -0
- package/contracts/src/permission.keys.js +12 -0
- package/contracts/src/permission.keys.js.map +1 -0
- package/contracts/src/root-config.d.ts +45 -0
- package/contracts/src/root-config.js +51 -0
- package/contracts/src/root-config.js.map +1 -0
- package/contracts/src/settings.keys.d.ts +12 -0
- package/contracts/src/settings.keys.js +26 -0
- package/contracts/src/settings.keys.js.map +1 -0
- package/package.json +27 -0
- package/src/index.d.ts +5 -0
- package/src/index.js +13 -0
- package/src/index.js.map +1 -0
- package/src/lib/application-management-server.module.d.ts +2 -0
- package/src/lib/application-management-server.module.js +32 -0
- package/src/lib/application-management-server.module.js.map +1 -0
- package/src/lib/handlers/application-report.handlers.d.ts +14 -0
- package/src/lib/handlers/application-report.handlers.js +40 -0
- package/src/lib/handlers/application-report.handlers.js.map +1 -0
- package/src/lib/queries/application-query.helpers.d.ts +8 -0
- package/src/lib/queries/application-query.helpers.js +46 -0
- package/src/lib/queries/application-query.helpers.js.map +1 -0
- package/src/lib/queries/get-application-versions-chart-data.query.d.ts +3 -0
- package/src/lib/queries/get-application-versions-chart-data.query.js +51 -0
- package/src/lib/queries/get-application-versions-chart-data.query.js.map +1 -0
- package/src/lib/queries/get-application-versions-timeline.query.d.ts +3 -0
- package/src/lib/queries/get-application-versions-timeline.query.js +59 -0
- package/src/lib/queries/get-application-versions-timeline.query.js.map +1 -0
- package/src/lib/reports/application-report-definition.provider.d.ts +4 -0
- package/src/lib/reports/application-report-definition.provider.js +18 -0
- package/src/lib/reports/application-report-definition.provider.js.map +1 -0
- package/src/lib/reports/application-report.definitions.d.ts +8 -0
- package/src/lib/reports/application-report.definitions.js +97 -0
- package/src/lib/reports/application-report.definitions.js.map +1 -0
- package/src/lib/seed/app-term/app-term.mock.data.d.ts +2 -0
- package/src/lib/seed/app-term/app-term.mock.data.js +296 -0
- package/src/lib/seed/app-term/app-term.mock.data.js.map +1 -0
- package/src/lib/seed/app-term/app-term.seed.d.ts +5 -0
- package/src/lib/seed/app-term/app-term.seed.js +31 -0
- package/src/lib/seed/app-term/app-term.seed.js.map +1 -0
- package/src/lib/seed/app-term/index.d.ts +2 -0
- package/src/lib/seed/app-term/index.js +6 -0
- package/src/lib/seed/app-term/index.js.map +1 -0
- package/src/lib/seed/app-version/app-version.mock.data.d.ts +8 -0
- package/src/lib/seed/app-version/app-version.mock.data.js +105 -0
- package/src/lib/seed/app-version/app-version.mock.data.js.map +1 -0
- package/src/lib/seed/app-version/app-version.seed.d.ts +6 -0
- package/src/lib/seed/app-version/app-version.seed.js +34 -0
- package/src/lib/seed/app-version/app-version.seed.js.map +1 -0
- package/src/lib/seed/app-version/index.d.ts +2 -0
- package/src/lib/seed/app-version/index.js +6 -0
- package/src/lib/seed/app-version/index.js.map +1 -0
- package/src/lib/seed/application/application.mock.d.ts +2 -0
- package/src/lib/seed/application/application.mock.js +27 -0
- package/src/lib/seed/application/application.mock.js.map +1 -0
- package/src/lib/seed/application/application.seed.d.ts +5 -0
- package/src/lib/seed/application/application.seed.js +31 -0
- package/src/lib/seed/application/application.seed.js.map +1 -0
- package/src/lib/seed/application/demo-application-logo-url.util.d.ts +1 -0
- package/src/lib/seed/application/demo-application-logo-url.util.js +20 -0
- package/src/lib/seed/application/demo-application-logo-url.util.js.map +1 -0
- package/src/lib/seed/application/index.d.ts +2 -0
- package/src/lib/seed/application/index.js +6 -0
- package/src/lib/seed/application/index.js.map +1 -0
- package/src/lib/seed/application-category/application-category.mock.d.ts +16 -0
- package/src/lib/seed/application-category/application-category.mock.js +78 -0
- package/src/lib/seed/application-category/application-category.mock.js.map +1 -0
- package/src/lib/seed/application-category/application-category.seed.d.ts +6 -0
- package/src/lib/seed/application-category/application-category.seed.js +32 -0
- package/src/lib/seed/application-category/application-category.seed.js.map +1 -0
- package/src/lib/seed/application-category/index.d.ts +2 -0
- package/src/lib/seed/application-category/index.js +6 -0
- package/src/lib/seed/application-category/index.js.map +1 -0
- package/src/lib/seed/application-management-jql.seed-catalog.d.ts +3 -0
- package/src/lib/seed/application-management-jql.seed-catalog.js +22 -0
- package/src/lib/seed/application-management-jql.seed-catalog.js.map +1 -0
- package/src/lib/seed/application-management-seed.provider.d.ts +4 -0
- package/src/lib/seed/application-management-seed.provider.js +18 -0
- package/src/lib/seed/application-management-seed.provider.js.map +1 -0
- package/src/lib/seed/application-management-seed.tokens.d.ts +1 -0
- package/src/lib/seed/application-management-seed.tokens.js +7 -0
- package/src/lib/seed/application-management-seed.tokens.js.map +1 -0
- package/src/lib/seed/application-management.seed-catalog.d.ts +2 -0
- package/src/lib/seed/application-management.seed-catalog.js +21 -0
- package/src/lib/seed/application-management.seed-catalog.js.map +1 -0
- package/src/lib/seed/application-tree-feature-keys.constants.d.ts +40 -0
- package/src/lib/seed/application-tree-feature-keys.constants.js +56 -0
- package/src/lib/seed/application-tree-feature-keys.constants.js.map +1 -0
- package/src/lib/seed/application-tree.data.d.ts +56 -0
- package/src/lib/seed/application-tree.data.js +212 -0
- package/src/lib/seed/application-tree.data.js.map +1 -0
- package/src/lib/seed/edition/edition.mock.d.ts +10 -0
- package/src/lib/seed/edition/edition.mock.js +50 -0
- package/src/lib/seed/edition/edition.mock.js.map +1 -0
- package/src/lib/seed/edition/edition.seed.d.ts +6 -0
- package/src/lib/seed/edition/edition.seed.js +32 -0
- package/src/lib/seed/edition/edition.seed.js.map +1 -0
- package/src/lib/seed/edition/index.d.ts +2 -0
- package/src/lib/seed/edition/index.js +6 -0
- package/src/lib/seed/edition/index.js.map +1 -0
- package/src/lib/seed/index.d.ts +26 -0
- package/src/lib/seed/index.js +28 -0
- package/src/lib/seed/index.js.map +1 -0
- package/src/lib/seed/reports/index.d.ts +1 -0
- package/src/lib/seed/reports/index.js +5 -0
- package/src/lib/seed/reports/index.js.map +1 -0
- package/src/lib/seed/reports/report.mock.d.ts +9 -0
- package/src/lib/seed/reports/report.mock.js +306 -0
- package/src/lib/seed/reports/report.mock.js.map +1 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.APP_TERMS = void 0;
|
|
4
|
+
const seed_1 = require("@acorex-platform/module-common-server/seed");
|
|
5
|
+
const application_mock_1 = require("../application/application.mock");
|
|
6
|
+
const titles = [
|
|
7
|
+
'Workplace Health & Safety Management Platform Terms',
|
|
8
|
+
'Occupational Health & Safety Software Agreement',
|
|
9
|
+
'HR & Safety Compliance Platform Terms',
|
|
10
|
+
'Environmental Health & Safety System Terms',
|
|
11
|
+
'Workplace Safety & Compliance Platform Agreement',
|
|
12
|
+
];
|
|
13
|
+
const contents = [
|
|
14
|
+
`<b>Workplace Health & Safety Management Platform Terms of Service</b>
|
|
15
|
+
|
|
16
|
+
Welcome to <b>Safetyminder</b> ("we," "our," or "us"). By accessing and using our Workplace Health & Safety Management Platform (the "Service"), you agree to abide by these Terms and Conditions. If you do not agree, please refrain from using the Service.
|
|
17
|
+
|
|
18
|
+
<b>1. Service Description</b>
|
|
19
|
+
Safetyminder provides a comprehensive workplace health and safety management platform designed to help organizations comply with WHS regulations, manage incident reporting, conduct risk assessments, and maintain safety documentation.
|
|
20
|
+
|
|
21
|
+
<b>2. User Responsibilities</b>
|
|
22
|
+
• You must provide accurate and complete information for account registration
|
|
23
|
+
• You are responsible for maintaining the confidentiality of your login credentials
|
|
24
|
+
• You must notify us immediately of any unauthorized access to your account
|
|
25
|
+
• You agree to use the Service in compliance with all applicable workplace health and safety laws and regulations
|
|
26
|
+
|
|
27
|
+
<b>3. Data Security & Privacy</b>
|
|
28
|
+
• We implement industry-standard security measures to protect your data
|
|
29
|
+
• All safety incident reports and health records are encrypted and stored securely
|
|
30
|
+
• We comply with relevant data protection regulations including GDPR and local privacy laws
|
|
31
|
+
• You retain ownership of all data you upload to the Service
|
|
32
|
+
|
|
33
|
+
<b>4. Compliance & Reporting</b>
|
|
34
|
+
• The Service assists with WHS compliance but does not guarantee regulatory compliance
|
|
35
|
+
• You remain responsible for ensuring your organization meets all applicable safety regulations
|
|
36
|
+
• We provide reporting tools but you are responsible for the accuracy of data entered
|
|
37
|
+
• Regular backups are performed but you should maintain your own records
|
|
38
|
+
|
|
39
|
+
<b>5. Service Availability</b>
|
|
40
|
+
• We strive for 99.9% uptime but cannot guarantee uninterrupted service
|
|
41
|
+
• Scheduled maintenance will be communicated in advance
|
|
42
|
+
• Emergency maintenance may be required for security updates
|
|
43
|
+
• We are not liable for any losses due to service interruptions
|
|
44
|
+
|
|
45
|
+
<b>6. Termination</b>
|
|
46
|
+
• You may terminate your account at any time
|
|
47
|
+
• We may terminate accounts for violations of these terms
|
|
48
|
+
• Upon termination, you may export your data within 30 days
|
|
49
|
+
• After 30 days, data may be permanently deleted
|
|
50
|
+
|
|
51
|
+
By using Safetyminder, you acknowledge that you have read, understood, and agreed to these Terms and Conditions.`,
|
|
52
|
+
`<b>Occupational Health & Safety Software Agreement</b>
|
|
53
|
+
|
|
54
|
+
This agreement governs your use of <b>Safetyminder</b> ("the Software"), a comprehensive occupational health and safety management system designed to help organizations maintain safe working environments and comply with OHS regulations.
|
|
55
|
+
|
|
56
|
+
<b>1. Software License</b>
|
|
57
|
+
• We grant you a non-exclusive, non-transferable license to use the Software
|
|
58
|
+
• The license is valid for the duration of your subscription
|
|
59
|
+
• You may not reverse engineer, modify, or distribute the Software
|
|
60
|
+
• Access is limited to authorized users within your organization
|
|
61
|
+
|
|
62
|
+
<b>2. OHS Compliance Features</b>
|
|
63
|
+
• Incident reporting and investigation tools
|
|
64
|
+
• Risk assessment and hazard identification modules
|
|
65
|
+
• Safety training management and tracking
|
|
66
|
+
• Compliance reporting and audit trails
|
|
67
|
+
• Personal protective equipment (PPE) tracking
|
|
68
|
+
• Health monitoring and medical surveillance tools
|
|
69
|
+
|
|
70
|
+
<b>3. Data Management</b>
|
|
71
|
+
• All OHS data is stored securely in compliance with industry standards
|
|
72
|
+
• Regular automated backups are performed
|
|
73
|
+
• You maintain ownership of all safety data and records
|
|
74
|
+
• We provide data export capabilities for compliance purposes
|
|
75
|
+
• Historical data is retained according to regulatory requirements
|
|
76
|
+
|
|
77
|
+
<b>4. User Training & Support</b>
|
|
78
|
+
• We provide initial training for system administrators
|
|
79
|
+
• Online documentation and video tutorials are available
|
|
80
|
+
• Technical support is available during business hours
|
|
81
|
+
• Custom training sessions can be arranged for additional fees
|
|
82
|
+
• User guides and best practices are regularly updated
|
|
83
|
+
|
|
84
|
+
<b>5. Regulatory Compliance</b>
|
|
85
|
+
• The Software is designed to support compliance with OHS regulations
|
|
86
|
+
• We regularly update features to reflect regulatory changes
|
|
87
|
+
• You remain responsible for ensuring compliance with local regulations
|
|
88
|
+
• We provide compliance guidance but do not guarantee regulatory compliance
|
|
89
|
+
• Regular compliance audits and reporting tools are included
|
|
90
|
+
|
|
91
|
+
<b>6. Liability & Indemnification</b>
|
|
92
|
+
• We are not liable for any safety incidents or compliance failures
|
|
93
|
+
• You indemnify us against claims arising from your use of the Software
|
|
94
|
+
• Our liability is limited to the amount paid for the Software
|
|
95
|
+
• We do not provide legal or professional safety advice
|
|
96
|
+
|
|
97
|
+
By using Safetyminder, you acknowledge that you have read, understood, and agreed to this Software Agreement.`,
|
|
98
|
+
`<b>HR & Safety Compliance Platform Terms</b>
|
|
99
|
+
|
|
100
|
+
Welcome to <b>Safetyminder</b> ("we," "our," or "us"). This platform integrates human resources management with workplace safety compliance to provide a comprehensive solution for modern organizations.
|
|
101
|
+
|
|
102
|
+
<b>1. Platform Overview</b>
|
|
103
|
+
Safetyminder combines HR management tools with safety compliance features, including:
|
|
104
|
+
• Employee onboarding and safety training tracking
|
|
105
|
+
• Incident reporting and investigation management
|
|
106
|
+
• Safety policy distribution and acknowledgment
|
|
107
|
+
• Compliance reporting and regulatory updates
|
|
108
|
+
• Employee health monitoring and medical records
|
|
109
|
+
• Safety performance metrics and analytics
|
|
110
|
+
|
|
111
|
+
<b>2. Account Management</b>
|
|
112
|
+
• Each organization must designate an administrator
|
|
113
|
+
• Administrators can manage user access and permissions
|
|
114
|
+
• Employee accounts are created through the HR module
|
|
115
|
+
• Access levels are determined by role and responsibility
|
|
116
|
+
• All user activities are logged for audit purposes
|
|
117
|
+
|
|
118
|
+
<b>3. Data Protection & Privacy</b>
|
|
119
|
+
• We comply with all applicable data protection regulations
|
|
120
|
+
• Employee personal information is handled according to privacy laws
|
|
121
|
+
• Health and safety records are stored securely and confidentially
|
|
122
|
+
• Data retention policies comply with regulatory requirements
|
|
123
|
+
• Regular security audits are conducted
|
|
124
|
+
|
|
125
|
+
<b>4. Training & Certification</b>
|
|
126
|
+
• Safety training modules are available for various industries
|
|
127
|
+
• Training completion is tracked and reported
|
|
128
|
+
• Certification tracking for safety qualifications
|
|
129
|
+
• Automated reminders for required training updates
|
|
130
|
+
• Integration with external training providers
|
|
131
|
+
|
|
132
|
+
<b>5. Incident Management</b>
|
|
133
|
+
• Comprehensive incident reporting and investigation tools
|
|
134
|
+
• Root cause analysis and corrective action tracking
|
|
135
|
+
• Regulatory reporting and notification systems
|
|
136
|
+
• Incident trend analysis and prevention strategies
|
|
137
|
+
• Integration with workers' compensation systems
|
|
138
|
+
|
|
139
|
+
<b>6. Compliance Monitoring</b>
|
|
140
|
+
• Real-time compliance status monitoring
|
|
141
|
+
• Automated regulatory update notifications
|
|
142
|
+
• Custom compliance checklists and audits
|
|
143
|
+
• Performance metrics and benchmarking
|
|
144
|
+
• Regulatory change impact assessments
|
|
145
|
+
|
|
146
|
+
<b>7. Support & Maintenance</b>
|
|
147
|
+
• 24/7 technical support for critical issues
|
|
148
|
+
• Regular system updates and feature enhancements
|
|
149
|
+
• Custom development services available
|
|
150
|
+
• Training and consultation services
|
|
151
|
+
• Integration with existing HR and safety systems
|
|
152
|
+
|
|
153
|
+
By using Safetyminder, you acknowledge that you have read, understood, and agreed to these Terms and Conditions.`,
|
|
154
|
+
`<b>Environmental Health & Safety System Terms</b>
|
|
155
|
+
|
|
156
|
+
This agreement governs your use of <b>Safetyminder</b> ("the System"), a comprehensive environmental, health, and safety management platform designed to help organizations manage EHS risks and ensure regulatory compliance.
|
|
157
|
+
|
|
158
|
+
<b>1. System Capabilities</b>
|
|
159
|
+
Safetyminder provides integrated management of:
|
|
160
|
+
• Environmental monitoring and compliance
|
|
161
|
+
• Occupational health and safety management
|
|
162
|
+
• Chemical safety and hazardous materials tracking
|
|
163
|
+
• Waste management and disposal tracking
|
|
164
|
+
• Air quality monitoring and reporting
|
|
165
|
+
• Water quality and discharge monitoring
|
|
166
|
+
• Energy efficiency and sustainability tracking
|
|
167
|
+
|
|
168
|
+
<b>2. Environmental Compliance</b>
|
|
169
|
+
• Environmental permit tracking and renewal management
|
|
170
|
+
• Emissions monitoring and reporting tools
|
|
171
|
+
• Waste generation and disposal tracking
|
|
172
|
+
• Environmental impact assessment tools
|
|
173
|
+
• Sustainability metrics and reporting
|
|
174
|
+
• Regulatory compliance monitoring and alerts
|
|
175
|
+
|
|
176
|
+
<b>3. Health & Safety Management</b>
|
|
177
|
+
• Occupational health monitoring and medical surveillance
|
|
178
|
+
• Personal protective equipment (PPE) management
|
|
179
|
+
• Chemical exposure monitoring and control
|
|
180
|
+
• Ergonomics assessment and improvement tools
|
|
181
|
+
• Industrial hygiene monitoring and sampling
|
|
182
|
+
• Health risk assessment and management
|
|
183
|
+
|
|
184
|
+
<b>4. Data Integration & Reporting</b>
|
|
185
|
+
• Integration with environmental monitoring equipment
|
|
186
|
+
• Real-time data collection and analysis
|
|
187
|
+
• Automated regulatory reporting capabilities
|
|
188
|
+
• Custom dashboard and reporting tools
|
|
189
|
+
• Historical data analysis and trend identification
|
|
190
|
+
• Third-party system integration capabilities
|
|
191
|
+
|
|
192
|
+
<b>5. Risk Management</b>
|
|
193
|
+
• Comprehensive risk assessment tools
|
|
194
|
+
• Hazard identification and control measures
|
|
195
|
+
• Emergency response planning and management
|
|
196
|
+
• Business continuity planning support
|
|
197
|
+
• Insurance and liability management tools
|
|
198
|
+
• Risk communication and stakeholder engagement
|
|
199
|
+
|
|
200
|
+
<b>6. Regulatory Updates</b>
|
|
201
|
+
• Automated regulatory change notifications
|
|
202
|
+
• Impact assessment for regulatory changes
|
|
203
|
+
• Compliance gap analysis tools
|
|
204
|
+
• Regulatory interpretation guidance
|
|
205
|
+
• Best practice recommendations and updates
|
|
206
|
+
|
|
207
|
+
<b>7. Training & Certification</b>
|
|
208
|
+
• EHS training program management
|
|
209
|
+
• Certification tracking and renewal reminders
|
|
210
|
+
• Competency assessment tools
|
|
211
|
+
• Training effectiveness evaluation
|
|
212
|
+
• Continuing education tracking
|
|
213
|
+
|
|
214
|
+
By using Safetyminder, you acknowledge that you have read, understood, and agreed to these System Terms.`,
|
|
215
|
+
`<b>Workplace Safety & Compliance Platform Agreement</b>
|
|
216
|
+
|
|
217
|
+
Welcome to <b>Safetyminder</b> ("we," "our," or "us"). This comprehensive workplace safety and compliance platform is designed to help organizations create safer work environments and maintain regulatory compliance across all aspects of workplace safety.
|
|
218
|
+
|
|
219
|
+
<b>1. Platform Features</b>
|
|
220
|
+
Safetyminder provides integrated tools for:
|
|
221
|
+
• Safety incident reporting and investigation
|
|
222
|
+
• Risk assessment and hazard identification
|
|
223
|
+
• Safety training and competency management
|
|
224
|
+
• Compliance monitoring and reporting
|
|
225
|
+
• Safety performance analytics and benchmarking
|
|
226
|
+
• Emergency response planning and management
|
|
227
|
+
• Safety culture assessment and improvement
|
|
228
|
+
|
|
229
|
+
<b>2. Safety Management Tools</b>
|
|
230
|
+
• Incident reporting with photo and video attachments
|
|
231
|
+
• Investigation workflow with root cause analysis
|
|
232
|
+
• Corrective action tracking and verification
|
|
233
|
+
• Safety observation and near-miss reporting
|
|
234
|
+
• Safety meeting management and documentation
|
|
235
|
+
• Safety committee coordination tools
|
|
236
|
+
• Safety suggestion and improvement tracking
|
|
237
|
+
|
|
238
|
+
<b>3. Risk Assessment & Control</b>
|
|
239
|
+
• Comprehensive risk assessment templates
|
|
240
|
+
• Hazard identification and control measures
|
|
241
|
+
• Job safety analysis (JSA) tools
|
|
242
|
+
• Permit-to-work system management
|
|
243
|
+
• Lockout/tagout procedure tracking
|
|
244
|
+
• Confined space entry management
|
|
245
|
+
• Hot work permit system
|
|
246
|
+
|
|
247
|
+
<b>4. Training & Competency</b>
|
|
248
|
+
• Safety training program development and delivery
|
|
249
|
+
• Competency assessment and certification tracking
|
|
250
|
+
• Training effectiveness evaluation
|
|
251
|
+
• Refresher training scheduling and reminders
|
|
252
|
+
• Training material management and updates
|
|
253
|
+
• Competency matrix development and maintenance
|
|
254
|
+
|
|
255
|
+
<b>5. Compliance & Reporting</b>
|
|
256
|
+
• Regulatory compliance monitoring and reporting
|
|
257
|
+
• Safety performance metrics and KPIs
|
|
258
|
+
• Audit preparation and management tools
|
|
259
|
+
• Regulatory update notifications and impact assessment
|
|
260
|
+
• Compliance gap analysis and remediation planning
|
|
261
|
+
• Industry benchmarking and best practice sharing
|
|
262
|
+
|
|
263
|
+
<b>6. Emergency Management</b>
|
|
264
|
+
• Emergency response plan development and maintenance
|
|
265
|
+
• Emergency contact management and communication
|
|
266
|
+
• Evacuation planning and drill management
|
|
267
|
+
• Emergency equipment and resource tracking
|
|
268
|
+
• Business continuity planning support
|
|
269
|
+
• Crisis communication and stakeholder management
|
|
270
|
+
|
|
271
|
+
<b>7. Analytics & Performance</b>
|
|
272
|
+
• Safety performance analytics and reporting
|
|
273
|
+
• Leading and lagging indicator tracking
|
|
274
|
+
• Trend analysis and predictive modeling
|
|
275
|
+
• Benchmarking against industry standards
|
|
276
|
+
• Safety culture assessment and improvement
|
|
277
|
+
• Return on investment (ROI) analysis
|
|
278
|
+
|
|
279
|
+
By using Safetyminder, you acknowledge that you have read, understood, and agreed to this Platform Agreement.`
|
|
280
|
+
];
|
|
281
|
+
exports.APP_TERMS = Array.from({ length: 5 }).map((element, i) => {
|
|
282
|
+
const publishDate = new Date();
|
|
283
|
+
publishDate.setDate(publishDate.getDate() - i * 7); // Subtract i weeks from the current date
|
|
284
|
+
const application = application_mock_1.APPLICATIONS[i % application_mock_1.APPLICATIONS.length];
|
|
285
|
+
return {
|
|
286
|
+
id: seed_1.AXPDataGenerator.uuid(),
|
|
287
|
+
applicationId: application.id,
|
|
288
|
+
title: titles[i],
|
|
289
|
+
content: contents[i],
|
|
290
|
+
effectiveDate: publishDate.toString(),
|
|
291
|
+
notifyUser: true,
|
|
292
|
+
type: 'term',
|
|
293
|
+
version: 1,
|
|
294
|
+
};
|
|
295
|
+
});
|
|
296
|
+
//# sourceMappingURL=app-term.mock.data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-term.mock.data.js","sourceRoot":"","sources":["../../../../../../../libs/modules/application-management/server/src/lib/seed/app-term/app-term.mock.data.ts"],"names":[],"mappings":";;;AAAA,qEAA6E;AAG7E,sEAA+D;AAE/D,MAAM,MAAM,GAAa;IACvB,qDAAqD;IACrD,iDAAiD;IACjD,uCAAuC;IACvC,4CAA4C;IAC5C,kDAAkD;CACnD,CAAC;AAEF,MAAM,QAAQ,GAAa;IACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iHAqC+G;IAE/G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8GA6C4G;IAE5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iHAuD+G;IAE/G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yGA4DuG;IAEvG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8GAgE4G;CAC7G,CAAC;AAEW,QAAA,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAwB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;IAC3F,MAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC;IAC/B,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,yCAAyC;IAC7F,MAAM,WAAW,GAAG,+BAAY,CAAC,CAAC,GAAG,+BAAY,CAAC,MAAM,CAAC,CAAC;IAE1D,OAAO;QACL,EAAE,EAAE,uBAAgB,CAAC,IAAI,EAAE;QAC3B,aAAa,EAAE,WAAW,CAAC,EAAE;QAC7B,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;QAChB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;QACpB,aAAa,EAAE,WAAW,CAAC,QAAQ,EAAE;QACrC,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AXPDataSeeder, AXPEntitySeedDefinition, AXPEntitySeedStorage } from '@acorex-platform/module-common-server/seed';
|
|
2
|
+
export declare const APP_TERM_ENTITY_NAME = "ApplicationManagement.AppTerm";
|
|
3
|
+
export declare function seedAppTermData(storage: AXPEntitySeedStorage): Promise<void>;
|
|
4
|
+
export declare function createAppTermDataSeeder(storage: AXPEntitySeedStorage): AXPDataSeeder;
|
|
5
|
+
export declare const appTermSeedDefinition: AXPEntitySeedDefinition;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appTermSeedDefinition = exports.APP_TERM_ENTITY_NAME = void 0;
|
|
4
|
+
exports.seedAppTermData = seedAppTermData;
|
|
5
|
+
exports.createAppTermDataSeeder = createAppTermDataSeeder;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const seed_1 = require("@acorex-platform/module-common-server/seed");
|
|
8
|
+
const app_term_mock_data_1 = require("./app-term.mock.data");
|
|
9
|
+
//#region ---- Constants ----
|
|
10
|
+
exports.APP_TERM_ENTITY_NAME = 'ApplicationManagement.AppTerm';
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region ---- Pure seed logic ----
|
|
13
|
+
function seedAppTermData(storage) {
|
|
14
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
yield storage.initial(exports.APP_TERM_ENTITY_NAME, app_term_mock_data_1.APP_TERMS);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function createAppTermDataSeeder(storage) {
|
|
19
|
+
return {
|
|
20
|
+
name: 'AppTermDataSeeder',
|
|
21
|
+
seed: () => seedAppTermData(storage),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
exports.appTermSeedDefinition = (0, seed_1.defineEntitySeed)({
|
|
25
|
+
name: 'AppTermDataSeeder',
|
|
26
|
+
entityName: exports.APP_TERM_ENTITY_NAME,
|
|
27
|
+
rows: app_term_mock_data_1.APP_TERMS,
|
|
28
|
+
seed: seedAppTermData,
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
//# sourceMappingURL=app-term.seed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-term.seed.js","sourceRoot":"","sources":["../../../../../../../libs/modules/application-management/server/src/lib/seed/app-term/app-term.seed.ts"],"names":[],"mappings":";;;AAWA,0CAEC;AAED,0DAKC;;AApBD,qEAA0I;AAC1I,6DAAiD;AAEjD,6BAA6B;AAEhB,QAAA,oBAAoB,GAAG,+BAA+B,CAAC;AAEpE,YAAY;AAEZ,mCAAmC;AAEnC,SAAsB,eAAe,CAAC,OAA6B;;QACjE,MAAM,OAAO,CAAC,OAAO,CAAC,4BAAoB,EAAE,8BAAS,CAAC,CAAC;IACzD,CAAC;CAAA;AAED,SAAgB,uBAAuB,CAAC,OAA6B;IACnE,OAAO;QACL,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC;KACrC,CAAC;AACJ,CAAC;AAEY,QAAA,qBAAqB,GAA4B,IAAA,uBAAgB,EAAC;IAC7E,IAAI,EAAE,mBAAmB;IACzB,UAAU,EAAE,4BAAoB;IAChC,IAAI,EAAE,8BAAS;IACf,IAAI,EAAE,eAAe;CACtB,CAAC,CAAC;AAEH,YAAY"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./app-term.mock.data"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./app-term.seed"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/application-management/server/src/lib/seed/app-term/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,0DAAgC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AXMAppVersionEntityModel } from '@acorex-platform/module-application-management-server/contracts';
|
|
2
|
+
interface AppVersionSeedInput {
|
|
3
|
+
version: string;
|
|
4
|
+
build: number;
|
|
5
|
+
date: Date;
|
|
6
|
+
}
|
|
7
|
+
export declare function generateVersion(currentVersion: AppVersionSeedInput): AXMAppVersionEntityModel[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateVersion = generateVersion;
|
|
4
|
+
const seed_1 = require("@acorex-platform/module-common-server/seed");
|
|
5
|
+
//#endregion
|
|
6
|
+
const changeLogEntries = [
|
|
7
|
+
'Added new dashboard analytics widget with real-time data visualization and customizable charts.',
|
|
8
|
+
'Enhanced user authentication system with multi-factor authentication support.',
|
|
9
|
+
'Implemented advanced search functionality with filters and saved search queries.',
|
|
10
|
+
'Added bulk operations support for data management with batch actions.',
|
|
11
|
+
'Enhanced form builder with new widget types including rich text editor and file upload.',
|
|
12
|
+
'Added notification system with customizable alerts and push notifications.',
|
|
13
|
+
'Implemented data export functionality with multiple format support (PDF, Excel, CSV).',
|
|
14
|
+
'Enhanced user management with role-based permissions and activity tracking.',
|
|
15
|
+
'Added workflow automation with visual workflow designer.',
|
|
16
|
+
'Implemented advanced reporting with custom report builder and data visualization.'
|
|
17
|
+
];
|
|
18
|
+
function generateVersion(currentVersion) {
|
|
19
|
+
const versions = [];
|
|
20
|
+
const currentVersionParts = currentVersion.version.split('.').map(Number);
|
|
21
|
+
const major = currentVersionParts[0];
|
|
22
|
+
const minor = currentVersionParts[1];
|
|
23
|
+
const patch = currentVersionParts[2];
|
|
24
|
+
// Generate versions for the last 12 months with balanced distribution
|
|
25
|
+
const baseDate = new Date(currentVersion.date);
|
|
26
|
+
const monthsToCover = 12; // Cover last 12 months
|
|
27
|
+
// Create a balanced distribution: 2 versions per month on average
|
|
28
|
+
// Some months will have 1, some will have 2, some will have 3 for natural variation
|
|
29
|
+
const versionsPerMonth = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]; // Base: 2 per month
|
|
30
|
+
// Add some variation: randomly add 1 more to some months
|
|
31
|
+
for (let i = 0; i < 4; i++) {
|
|
32
|
+
const randomMonth = seed_1.AXPDataGenerator.number(0, 11);
|
|
33
|
+
versionsPerMonth[randomMonth]++;
|
|
34
|
+
}
|
|
35
|
+
let versionIndex = 0;
|
|
36
|
+
let currentPatch = patch;
|
|
37
|
+
let currentMinor = minor;
|
|
38
|
+
// Generate versions month by month, going backwards from current date
|
|
39
|
+
// monthOffset 0 = current month, monthOffset 11 = 11 months ago
|
|
40
|
+
for (let monthOffset = 0; monthOffset < monthsToCover; monthOffset++) {
|
|
41
|
+
const monthDate = new Date(baseDate);
|
|
42
|
+
monthDate.setMonth(monthDate.getMonth() - monthOffset);
|
|
43
|
+
// Get number of versions for this month (index from end: most recent month = index 0)
|
|
44
|
+
const versionsThisMonth = versionsPerMonth[monthOffset];
|
|
45
|
+
// Distribute versions across the month
|
|
46
|
+
const daysInMonth = new Date(monthDate.getFullYear(), monthDate.getMonth() + 1, 0).getDate();
|
|
47
|
+
for (let v = 0; v < versionsThisMonth; v++) {
|
|
48
|
+
// Calculate version number
|
|
49
|
+
currentPatch--;
|
|
50
|
+
if (currentPatch < 0) {
|
|
51
|
+
currentPatch = 9;
|
|
52
|
+
currentMinor--;
|
|
53
|
+
if (currentMinor < 0) {
|
|
54
|
+
currentMinor = 0;
|
|
55
|
+
currentPatch = 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const versionNumber = `${major}.${currentMinor}.${currentPatch}`;
|
|
59
|
+
// Distribute publish date across the month
|
|
60
|
+
// First version early in month, subsequent versions spread out
|
|
61
|
+
const dayInMonth = Math.floor((v + 1) * (daysInMonth / (versionsThisMonth + 1)));
|
|
62
|
+
const publishDateObj = new Date(monthDate);
|
|
63
|
+
publishDateObj.setDate(dayInMonth);
|
|
64
|
+
// Add some randomness within a 3-day window
|
|
65
|
+
const dayVariation = seed_1.AXPDataGenerator.number(-2, 2);
|
|
66
|
+
publishDateObj.setDate(publishDateObj.getDate() + dayVariation);
|
|
67
|
+
// Ensure date is within the month bounds
|
|
68
|
+
if (publishDateObj.getDate() < 1)
|
|
69
|
+
publishDateObj.setDate(1);
|
|
70
|
+
if (publishDateObj.getDate() > daysInMonth)
|
|
71
|
+
publishDateObj.setDate(daysInMonth);
|
|
72
|
+
// Set time to a random time during the day
|
|
73
|
+
publishDateObj.setHours(seed_1.AXPDataGenerator.number(9, 17));
|
|
74
|
+
publishDateObj.setMinutes(seed_1.AXPDataGenerator.number(0, 59));
|
|
75
|
+
// Generate random change log entries
|
|
76
|
+
const count = seed_1.AXPDataGenerator.number(1, 5);
|
|
77
|
+
const picked = seed_1.AXPDataGenerator.pick(changeLogEntries, count);
|
|
78
|
+
const changeLog = Array.isArray(picked)
|
|
79
|
+
? `<ul>${picked.map(entry => `<li>${entry}</li>`).join('')}</ul>`
|
|
80
|
+
: `<ul><li>${picked}</li></ul>`;
|
|
81
|
+
versions.push({
|
|
82
|
+
id: seed_1.AXPDataGenerator.uuid(),
|
|
83
|
+
versionNumber: versionNumber,
|
|
84
|
+
changeLog: changeLog,
|
|
85
|
+
publishDate: publishDateObj.toISOString(),
|
|
86
|
+
showFirstTimePopup: seed_1.AXPDataGenerator.boolean(),
|
|
87
|
+
});
|
|
88
|
+
versionIndex++;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// Sort by version number (newest first)
|
|
92
|
+
return versions.sort((a, b) => {
|
|
93
|
+
const versionA = a.versionNumber.split('.').map(Number);
|
|
94
|
+
const versionB = b.versionNumber.split('.').map(Number);
|
|
95
|
+
// Compare major version
|
|
96
|
+
if (versionA[0] !== versionB[0])
|
|
97
|
+
return versionB[0] - versionA[0];
|
|
98
|
+
// Compare minor version
|
|
99
|
+
if (versionA[1] !== versionB[1])
|
|
100
|
+
return versionB[1] - versionA[1];
|
|
101
|
+
// Compare patch version
|
|
102
|
+
return versionB[2] - versionA[2];
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=app-version.mock.data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-version.mock.data.js","sourceRoot":"","sources":["../../../../../../../libs/modules/application-management/server/src/lib/seed/app-version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,EAAE,SAAS;gBACpB,WAAW,EAAE,cAAc,CAAC,WAAW,EAAE;gBACzC,kBAAkB,EAAE,uBAAgB,CAAC,OAAO,EAAE;aAC/C,CAAC,CAAC;YAEH,YAAY,EAAE,CAAC;QACjB,CAAC;IACH,CAAC;IAED,wCAAwC;IACxC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC5B,MAAM,QAAQ,GAAG,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACxD,MAAM,QAAQ,GAAG,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAExD,wBAAwB;QACxB,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC;YAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAClE,wBAAwB;QACxB,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC;YAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAClE,wBAAwB;QACxB,OAAO,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AXPDataSeeder, AXPEntitySeedDefinition, AXPEntitySeedStorage } from '@acorex-platform/module-common-server/seed';
|
|
2
|
+
export declare const APP_VERSION_ENTITY_NAME = "ApplicationManagement.AppVersion";
|
|
3
|
+
export declare const APP_VERSIONS: import("../../../../contracts/src").AXMAppVersionEntityModel[];
|
|
4
|
+
export declare function seedAppVersionData(storage: AXPEntitySeedStorage): Promise<void>;
|
|
5
|
+
export declare function createAppVersionDataSeeder(storage: AXPEntitySeedStorage): AXPDataSeeder;
|
|
6
|
+
export declare const appVersionSeedDefinition: AXPEntitySeedDefinition;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appVersionSeedDefinition = exports.APP_VERSIONS = exports.APP_VERSION_ENTITY_NAME = void 0;
|
|
4
|
+
exports.seedAppVersionData = seedAppVersionData;
|
|
5
|
+
exports.createAppVersionDataSeeder = createAppVersionDataSeeder;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const seed_1 = require("@acorex-platform/module-common-server/seed");
|
|
8
|
+
const app_version_mock_data_1 = require("./app-version.mock.data");
|
|
9
|
+
//#region ---- Constants ----
|
|
10
|
+
exports.APP_VERSION_ENTITY_NAME = 'ApplicationManagement.AppVersion';
|
|
11
|
+
const DEFAULT_CURRENT_VERSION = { version: '1.0.0', build: 1, date: new Date() };
|
|
12
|
+
exports.APP_VERSIONS = (0, app_version_mock_data_1.generateVersion)(DEFAULT_CURRENT_VERSION);
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ---- Pure seed logic ----
|
|
15
|
+
function seedAppVersionData(storage) {
|
|
16
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
const versions = (0, app_version_mock_data_1.generateVersion)(DEFAULT_CURRENT_VERSION);
|
|
18
|
+
yield storage.initial(exports.APP_VERSION_ENTITY_NAME, versions);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function createAppVersionDataSeeder(storage) {
|
|
22
|
+
return {
|
|
23
|
+
name: 'AppVersionDataSeeder',
|
|
24
|
+
seed: () => seedAppVersionData(storage),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.appVersionSeedDefinition = (0, seed_1.defineEntitySeed)({
|
|
28
|
+
name: 'AppVersionDataSeeder',
|
|
29
|
+
entityName: exports.APP_VERSION_ENTITY_NAME,
|
|
30
|
+
rows: exports.APP_VERSIONS,
|
|
31
|
+
seed: seedAppVersionData,
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
//# sourceMappingURL=app-version.seed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-version.seed.js","sourceRoot":"","sources":["../../../../../../../libs/modules/application-management/server/src/lib/seed/app-version/app-version.seed.ts"],"names":[],"mappings":";;;AAeA,gDAGC;AAED,gEAKC;;AAzBD,qEAA0I;AAC1I,mEAA0D;AAE1D,6BAA6B;AAEhB,QAAA,uBAAuB,GAAG,kCAAkC,CAAC;AAE1E,MAAM,uBAAuB,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;AAEpE,QAAA,YAAY,GAAG,IAAA,uCAAe,EAAC,uBAAuB,CAAC,CAAC;AAErE,YAAY;AAEZ,mCAAmC;AAEnC,SAAsB,kBAAkB,CAAC,OAA6B;;QACpE,MAAM,QAAQ,GAAG,IAAA,uCAAe,EAAC,uBAAuB,CAAC,CAAC;QAC1D,MAAM,OAAO,CAAC,OAAO,CAAC,+BAAuB,EAAE,QAAQ,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,SAAgB,0BAA0B,CAAC,OAA6B;IACtE,OAAO;QACL,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;KACxC,CAAC;AACJ,CAAC;AAEY,QAAA,wBAAwB,GAA4B,IAAA,uBAAgB,EAAC;IAChF,IAAI,EAAE,sBAAsB;IAC5B,UAAU,EAAE,+BAAuB;IACnC,IAAI,EAAE,oBAAY;IAClB,IAAI,EAAE,kBAAkB;CACzB,CAAC,CAAC;AAEH,YAAY"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./app-version.mock.data"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./app-version.seed"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/application-management/server/src/lib/seed/app-version/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,6DAAmC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.APPLICATIONS = void 0;
|
|
4
|
+
const demo_application_logo_url_util_1 = require("./demo-application-logo-url.util");
|
|
5
|
+
const application_tree_data_1 = require("../application-tree.data");
|
|
6
|
+
const application_category_mock_1 = require("../application-category/application-category.mock");
|
|
7
|
+
const edition_mock_1 = require("../edition/edition.mock");
|
|
8
|
+
//#region ---- Application Data Generation ----
|
|
9
|
+
function categoryAssignment(categoryId) {
|
|
10
|
+
const row = application_category_mock_1.APPLICATION_CATEGORY_MOCKS.find((c) => c.id === categoryId);
|
|
11
|
+
return {
|
|
12
|
+
categoryIds: [categoryId],
|
|
13
|
+
categories: row ? [{ id: row.id, title: row.title }] : [],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function generateApplications() {
|
|
17
|
+
return application_tree_data_1.APPLICATION_TREE.map((appData) => {
|
|
18
|
+
const editionIds = appData.editions.map((edition) => edition.id);
|
|
19
|
+
const editions = edition_mock_1.EDITIONS.filter((edition) => editionIds.includes(edition.id));
|
|
20
|
+
const application = Object.assign(Object.assign(Object.assign(Object.assign({ id: appData.id, code: appData.code, title: appData.title, description: appData.description, version: appData.version }, categoryAssignment(appData.categoryId)), { tags: appData.tags, statusId: appData.statusId, icon: appData.icon, color: appData.color, logo: (0, demo_application_logo_url_util_1.resolveMockApplicationLogoUrl)(appData.id), url: appData.url, documentationUrl: appData.documentationUrl, supportEmail: appData.supportEmail, releaseDate: appData.releaseDate, isPublic: appData.isPublic, editionIds,
|
|
21
|
+
editions }), (appData.stateInfo && { stateInfo: appData.stateInfo })), (appData.auditInfo && { auditInfo: appData.auditInfo }));
|
|
22
|
+
return application;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.APPLICATIONS = generateApplications();
|
|
27
|
+
//# sourceMappingURL=application.mock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.mock.js","sourceRoot":"","sources":["../../../../../../../libs/modules/application-management/server/src/lib/seed/application/application.mock.ts"],"names":[],"mappings":";;;AACA,qFAAiF;AACjF,oEAA4D;AAC5D,iGAA+F;AAC/F,0DAAmD;AAEnD,+CAA+C;AAE/C,SAAS,kBAAkB,CAAC,UAAkB;IAI5C,MAAM,GAAG,GAAG,sDAA0B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC,CAAC;IACxE,OAAO;QACL,WAAW,EAAE,CAAC,UAAU,CAAC;QACzB,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;KAC1D,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB;IAC3B,OAAO,wCAAgB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACtC,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACjE,MAAM,QAAQ,GAAG,uBAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAiD,CAAC;QAE/H,MAAM,WAAW,6DACf,EAAE,EAAE,OAAO,CAAC,EAAE,EACd,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,KAAK,EAAE,OAAO,CAAC,KAAK,EACpB,WAAW,EAAE,OAAO,CAAC,WAAW,EAChC,OAAO,EAAE,OAAO,CAAC,OAAO,IACrB,kBAAkB,CAAC,OAAO,CAAC,UAAU,CAAC,KACzC,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,KAAK,EAAE,OAAO,CAAC,KAAK,EACpB,IAAI,EAAE,IAAA,8DAA6B,EAAC,OAAO,CAAC,EAAE,CAAC,EAC/C,GAAG,EAAE,OAAO,CAAC,GAAG,EAChB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAC1C,YAAY,EAAE,OAAO,CAAC,YAAY,EAClC,WAAW,EAAE,OAAO,CAAC,WAAW,EAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,UAAU;YACV,QAAQ,KACL,CAAC,OAAO,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,GACvD,CAAC,OAAO,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAC3D,CAAC;QAEF,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,YAAY;AAEC,QAAA,YAAY,GAAG,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AXPDataSeeder, AXPEntitySeedDefinition, AXPEntitySeedStorage } from '@acorex-platform/module-common-server/seed';
|
|
2
|
+
export declare const APPLICATION_ENTITY_NAME = "ApplicationManagement.Application";
|
|
3
|
+
export declare function seedApplicationData(storage: AXPEntitySeedStorage): Promise<void>;
|
|
4
|
+
export declare function createApplicationDataSeeder(storage: AXPEntitySeedStorage): AXPDataSeeder;
|
|
5
|
+
export declare const applicationSeedDefinition: AXPEntitySeedDefinition;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.applicationSeedDefinition = exports.APPLICATION_ENTITY_NAME = void 0;
|
|
4
|
+
exports.seedApplicationData = seedApplicationData;
|
|
5
|
+
exports.createApplicationDataSeeder = createApplicationDataSeeder;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const seed_1 = require("@acorex-platform/module-common-server/seed");
|
|
8
|
+
const application_mock_1 = require("./application.mock");
|
|
9
|
+
//#region ---- Constants ----
|
|
10
|
+
exports.APPLICATION_ENTITY_NAME = 'ApplicationManagement.Application';
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region ---- Pure seed logic ----
|
|
13
|
+
function seedApplicationData(storage) {
|
|
14
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
yield storage.initial(exports.APPLICATION_ENTITY_NAME, application_mock_1.APPLICATIONS);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function createApplicationDataSeeder(storage) {
|
|
19
|
+
return {
|
|
20
|
+
name: 'ApplicationDataSeeder',
|
|
21
|
+
seed: () => seedApplicationData(storage),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
exports.applicationSeedDefinition = (0, seed_1.defineEntitySeed)({
|
|
25
|
+
name: 'ApplicationDataSeeder',
|
|
26
|
+
entityName: exports.APPLICATION_ENTITY_NAME,
|
|
27
|
+
rows: application_mock_1.APPLICATIONS,
|
|
28
|
+
seed: seedApplicationData,
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
//# sourceMappingURL=application.seed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.seed.js","sourceRoot":"","sources":["../../../../../../../libs/modules/application-management/server/src/lib/seed/application/application.seed.ts"],"names":[],"mappings":";;;AAWA,kDAEC;AAED,kEAKC;;AApBD,qEAA0I;AAC1I,yDAAkD;AAElD,6BAA6B;AAEhB,QAAA,uBAAuB,GAAG,mCAAmC,CAAC;AAE3E,YAAY;AAEZ,mCAAmC;AAEnC,SAAsB,mBAAmB,CAAC,OAA6B;;QACrE,MAAM,OAAO,CAAC,OAAO,CAAC,+BAAuB,EAAE,+BAAY,CAAC,CAAC;IAC/D,CAAC;CAAA;AAED,SAAgB,2BAA2B,CAAC,OAA6B;IACvE,OAAO;QACL,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC;KACzC,CAAC;AACJ,CAAC;AAEY,QAAA,yBAAyB,GAA4B,IAAA,uBAAgB,EAAC;IACjF,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,+BAAuB;IACnC,IAAI,EAAE,+BAAY;IAClB,IAAI,EAAE,mBAAmB;CAC1B,CAAC,CAAC;AAEH,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveMockApplicationLogoUrl(applicationId: string): string;
|