@khester/create-dynamics-app 1.0.8 → 1.1.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/bin/create-dynamics-app.js +1 -1
- package/dist/index.js +140 -15
- package/dist/index.js.map +1 -1
- package/dist/utils/consultingHelpers.d.ts +13 -0
- package/dist/utils/consultingHelpers.d.ts.map +1 -0
- package/dist/utils/consultingHelpers.js +569 -0
- package/dist/utils/consultingHelpers.js.map +1 -0
- package/dist/utils/copyTemplate.d.ts.map +1 -1
- package/dist/utils/copyTemplate.js.map +1 -1
- package/dist/utils/initGit.d.ts.map +1 -1
- package/dist/utils/initGit.js.map +1 -1
- package/dist/utils/installDependencies.d.ts.map +1 -1
- package/dist/utils/installDependencies.js +3 -2
- package/dist/utils/installDependencies.js.map +1 -1
- package/dist/utils/updatePackageJson.d.ts +1 -1
- package/dist/utils/updatePackageJson.d.ts.map +1 -1
- package/dist/utils/updatePackageJson.js +11 -1
- package/dist/utils/updatePackageJson.js.map +1 -1
- package/package.json +1 -1
- package/templates/dynamics-365-starter/INTEGRATION_TEST_RESULTS.md +302 -0
- package/templates/dynamics-365-starter/PHASE_4_COMPLETION_SUMMARY.md +305 -0
- package/templates/dynamics-365-starter/README.md +566 -137
- package/templates/dynamics-365-starter/deployment/QUICKSTART-MAC.md +507 -0
- package/templates/dynamics-365-starter/deployment/QUICKSTART-WINDOWS.md +372 -0
- package/templates/dynamics-365-starter/deployment/README.md +484 -0
- package/templates/dynamics-365-starter/deployment/pipelines/README.md +375 -0
- package/templates/dynamics-365-starter/deployment/pipelines/azure-pipelines.yml +330 -0
- package/templates/dynamics-365-starter/deployment/pipelines/github-actions.yml +422 -0
- package/templates/dynamics-365-starter/deployment/pipelines/jenkins.groovy +636 -0
- package/templates/dynamics-365-starter/deployment/scripts/deploy.ps1 +417 -0
- package/templates/dynamics-365-starter/deployment/scripts/deploy.sh +582 -0
- package/templates/dynamics-365-starter/deployment/scripts/team-onboarding.ps1 +486 -0
- package/templates/dynamics-365-starter/deployment/scripts/team-onboarding.sh +567 -0
- package/templates/dynamics-365-starter/deployment/scripts/validate-setup.ps1 +703 -0
- package/templates/dynamics-365-starter/deployment/scripts/validate-setup.sh +671 -0
- package/templates/dynamics-365-starter/docs/ARCHITECTURE_OVERVIEW.md +506 -0
- package/templates/dynamics-365-starter/docs/BEST_PRACTICES.md +723 -0
- package/templates/dynamics-365-starter/docs/MIGRATION_GUIDE.md +447 -0
- package/templates/dynamics-365-starter/docs/team-standards/README.md +273 -0
- package/templates/dynamics-365-starter/docs/team-standards/client-onboarding.md +577 -0
- package/templates/dynamics-365-starter/docs/team-standards/code-review-checklist.md +359 -0
- package/templates/dynamics-365-starter/docs/team-standards/coding-standards.md +700 -0
- package/templates/dynamics-365-starter/docs/team-standards/cross-platform-team-guide.md +736 -0
- package/templates/dynamics-365-starter/docs/team-standards/development-workflows.md +727 -0
- package/templates/dynamics-365-starter/docs/troubleshooting/common-errors.md +758 -0
- package/templates/dynamics-365-starter/docs/troubleshooting/platform-specific-issues.md +878 -0
- package/templates/dynamics-365-starter/package.json +22 -1
- package/templates/dynamics-365-starter/public/index.html +8 -11
- package/templates/dynamics-365-starter/scripts/custom-build.js +255 -0
- package/templates/dynamics-365-starter/src/client-project-template/README.md +234 -0
- package/templates/dynamics-365-starter/src/client-project-template/config/client.template.json +114 -0
- package/templates/dynamics-365-starter/src/client-project-template/config/environments/template.json +186 -0
- package/templates/dynamics-365-starter/src/client-project-template/scripts/client-setup.js +667 -0
- package/templates/dynamics-365-starter/src/components/AccountForm.css +71 -0
- package/templates/dynamics-365-starter/src/components/AccountForm.tsx +541 -0
- package/templates/dynamics-365-starter/src/components/AccountManagement.css +86 -0
- package/templates/dynamics-365-starter/src/components/AccountManagement.tsx +370 -0
- package/templates/dynamics-365-starter/src/components/ContactForm.tsx +149 -63
- package/templates/dynamics-365-starter/src/components/ContactManagement.tsx +153 -63
- package/templates/dynamics-365-starter/src/components/Logging/LogDialog.tsx +291 -0
- package/templates/dynamics-365-starter/src/components/Logging/LoggingContext.tsx +166 -0
- package/templates/dynamics-365-starter/src/components/Logging/LoggingDebugPanel.css +192 -0
- package/templates/dynamics-365-starter/src/components/Logging/LoggingDebugPanel.tsx +177 -0
- package/templates/dynamics-365-starter/src/components/Logging/LoggingProvider.tsx +3 -0
- package/templates/dynamics-365-starter/src/components/Logging/logger.ts +193 -0
- package/templates/dynamics-365-starter/src/constants/account.ts +410 -0
- package/templates/dynamics-365-starter/src/constants/contact.ts +362 -0
- package/templates/dynamics-365-starter/src/examples/README.md +52 -0
- package/templates/dynamics-365-starter/src/examples/component-examples/opportunity-management.tsx +625 -0
- package/templates/dynamics-365-starter/src/examples/entity-examples/opportunity-model.ts +545 -0
- package/templates/dynamics-365-starter/src/examples/integration-examples/custom-pcf-wrapper.tsx +722 -0
- package/templates/dynamics-365-starter/src/examples/workflow-examples/sales-workflow.ts +662 -0
- package/templates/dynamics-365-starter/src/index.tsx +107 -19
- package/templates/dynamics-365-starter/src/models/Account.ts +480 -0
- package/templates/dynamics-365-starter/src/models/BaseEntity.ts +204 -0
- package/templates/dynamics-365-starter/src/models/Contact.ts +580 -0
- package/templates/dynamics-365-starter/src/page-templates/EntityDashboard.tsx +519 -0
- package/templates/dynamics-365-starter/src/page-templates/EntityDetailPage.tsx +456 -0
- package/templates/dynamics-365-starter/src/page-templates/EntityListPage.tsx +406 -0
- package/templates/dynamics-365-starter/src/page-templates/RelatedEntitiesPage.tsx +578 -0
- package/templates/dynamics-365-starter/src/page-templates/SearchPage.tsx +629 -0
- package/templates/dynamics-365-starter/src/pcf/ContactControlWrapper.tsx +75 -22
- package/templates/dynamics-365-starter/src/pcf/MultiEntityControlWrapper.tsx +205 -0
- package/templates/dynamics-365-starter/src/providers/DynamicsProvider.tsx +297 -80
- package/templates/dynamics-365-starter/src/services/MockApiService.ts +260 -0
- package/templates/dynamics-365-starter/src/services/ServiceFactory.ts +65 -0
- package/templates/dynamics-365-starter/src/services/XrmApiService.ts +213 -0
- package/templates/dynamics-365-starter/src/styles/index.css +74 -7
- package/templates/dynamics-365-starter/tools/entity-generator/index.js +168 -0
- package/templates/dynamics-365-starter/tools/entity-generator/templates/constants.template.ts +124 -0
- package/templates/dynamics-365-starter/tools/entity-generator/templates/form.template.css +283 -0
- package/templates/dynamics-365-starter/tools/entity-generator/templates/form.template.tsx +275 -0
- package/templates/dynamics-365-starter/tools/entity-generator/templates/management.template.css +204 -0
- package/templates/dynamics-365-starter/tools/entity-generator/templates/management.template.tsx +413 -0
- package/templates/dynamics-365-starter/tools/entity-generator/templates/model.template.ts +250 -0
- package/templates/dynamics-365-starter/tools/metadata-sync/d365-client.js +410 -0
- package/templates/dynamics-365-starter/tools/metadata-sync/index.js +512 -0
- package/templates/dynamics-365-starter/tools/metadata-sync/type-generator.js +675 -0
- package/templates/dynamics-365-starter/tsconfig.json +11 -8
- package/templates/dynamics-365-starter/webpack.config.js +8 -9
- package/templates/power-pages-starter/README.md +7 -1
- package/templates/power-pages-starter/public/index.html +8 -11
- package/templates/power-pages-starter/src/components/ContactForm.tsx +60 -41
- package/templates/power-pages-starter/src/index.tsx +3 -3
- package/templates/power-pages-starter/src/providers/PowerPagesProvider.tsx +46 -23
- package/templates/power-pages-starter/tsconfig.json +3 -9
- package/templates/power-pages-starter/webpack.config.js +8 -3
package/templates/dynamics-365-starter/src/client-project-template/config/environments/template.json
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{environmentName}}",
|
|
3
|
+
"type": "{{environmentType}}",
|
|
4
|
+
"description": "{{environmentDescription}}",
|
|
5
|
+
"lastUpdated": "{{currentDate}}",
|
|
6
|
+
"dynamics365": {
|
|
7
|
+
"orgUrl": "{{orgUrl}}",
|
|
8
|
+
"webApiUrl": "{{webApiUrl}}",
|
|
9
|
+
"version": "9.2",
|
|
10
|
+
"region": "{{region}}",
|
|
11
|
+
"tenantId": "{{tenantId}}",
|
|
12
|
+
"dataverse": {
|
|
13
|
+
"environmentId": "{{environmentId}}",
|
|
14
|
+
"uniqueName": "{{uniqueName}}"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"authentication": {
|
|
18
|
+
"type": "{{authType}}",
|
|
19
|
+
"clientId": "{{clientId}}",
|
|
20
|
+
"clientSecret": "{{clientSecret}}",
|
|
21
|
+
"redirectUri": "{{redirectUri}}",
|
|
22
|
+
"scopes": [
|
|
23
|
+
"https://{{orgDomain}}.crm.dynamics.com/user_impersonation"
|
|
24
|
+
],
|
|
25
|
+
"authority": "https://login.microsoftonline.com/{{tenantId}}"
|
|
26
|
+
},
|
|
27
|
+
"security": {
|
|
28
|
+
"enableAuditLogging": true,
|
|
29
|
+
"requireMFA": "{{requireMFA}}",
|
|
30
|
+
"sessionTimeout": {{sessionTimeout}},
|
|
31
|
+
"enableConditionalAccess": true,
|
|
32
|
+
"allowedIPs": [
|
|
33
|
+
{{#each allowedIPs}}
|
|
34
|
+
"{{this}}"{{#unless @last}},{{/unless}}
|
|
35
|
+
{{/each}}
|
|
36
|
+
],
|
|
37
|
+
"dataLossPreventionEnabled": true,
|
|
38
|
+
"encryptionAtRest": true,
|
|
39
|
+
"encryptionInTransit": true
|
|
40
|
+
},
|
|
41
|
+
"performance": {
|
|
42
|
+
"enableCaching": {{enableCaching}},
|
|
43
|
+
"cacheTimeout": {{cacheTimeout}},
|
|
44
|
+
"batchSize": {{batchSize}},
|
|
45
|
+
"timeoutMs": {{timeoutMs}},
|
|
46
|
+
"retryAttempts": {{retryAttempts}},
|
|
47
|
+
"retryDelayMs": {{retryDelayMs}},
|
|
48
|
+
"enableCompression": true,
|
|
49
|
+
"enableCDN": {{enableCDN}}
|
|
50
|
+
},
|
|
51
|
+
"monitoring": {
|
|
52
|
+
"enableApplicationInsights": true,
|
|
53
|
+
"instrumentationKey": "{{instrumentationKey}}",
|
|
54
|
+
"logLevel": "{{logLevel}}",
|
|
55
|
+
"enableMetrics": true,
|
|
56
|
+
"enableTracing": true,
|
|
57
|
+
"enableProfiling": false,
|
|
58
|
+
"alertRules": [
|
|
59
|
+
{
|
|
60
|
+
"name": "High Error Rate",
|
|
61
|
+
"condition": "exceptions/hour > 10",
|
|
62
|
+
"severity": "Critical",
|
|
63
|
+
"enabled": true
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "Slow Response Time",
|
|
67
|
+
"condition": "avg(requests/duration) > 5000",
|
|
68
|
+
"severity": "Warning",
|
|
69
|
+
"enabled": true
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"backup": {
|
|
74
|
+
"enabled": {{backupEnabled}},
|
|
75
|
+
"frequency": "{{backupFrequency}}",
|
|
76
|
+
"retentionDays": {{backupRetentionDays}},
|
|
77
|
+
"storageAccount": "{{backupStorageAccount}}",
|
|
78
|
+
"enablePointInTimeRestore": {{enablePointInTimeRestore}}
|
|
79
|
+
},
|
|
80
|
+
"networking": {
|
|
81
|
+
"enableVNet": {{enableVNet}},
|
|
82
|
+
"subnetId": "{{subnetId}}",
|
|
83
|
+
"enablePrivateEndpoint": {{enablePrivateEndpoint}},
|
|
84
|
+
"enableServiceEndpoint": {{enableServiceEndpoint}},
|
|
85
|
+
"firewallRules": [
|
|
86
|
+
{{#each firewallRules}}
|
|
87
|
+
{
|
|
88
|
+
"name": "{{name}}",
|
|
89
|
+
"startIP": "{{startIP}}",
|
|
90
|
+
"endIP": "{{endIP}}",
|
|
91
|
+
"enabled": {{enabled}}
|
|
92
|
+
}{{#unless @last}},{{/unless}}
|
|
93
|
+
{{/each}}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"deployment": {
|
|
97
|
+
"strategy": "{{deploymentStrategy}}",
|
|
98
|
+
"slots": [
|
|
99
|
+
{{#each deploymentSlots}}
|
|
100
|
+
{
|
|
101
|
+
"name": "{{name}}",
|
|
102
|
+
"enabled": {{enabled}},
|
|
103
|
+
"percentage": {{percentage}}
|
|
104
|
+
}{{#unless @last}},{{/unless}}
|
|
105
|
+
{{/each}}
|
|
106
|
+
],
|
|
107
|
+
"rollbackEnabled": {{rollbackEnabled}},
|
|
108
|
+
"healthCheckUrl": "{{healthCheckUrl}}",
|
|
109
|
+
"warmupEnabled": {{warmupEnabled}},
|
|
110
|
+
"preDeploymentSteps": [
|
|
111
|
+
{{#each preDeploymentSteps}}
|
|
112
|
+
"{{this}}"{{#unless @last}},{{/unless}}
|
|
113
|
+
{{/each}}
|
|
114
|
+
],
|
|
115
|
+
"postDeploymentSteps": [
|
|
116
|
+
{{#each postDeploymentSteps}}
|
|
117
|
+
"{{this}}"{{#unless @last}},{{/unless}}
|
|
118
|
+
{{/each}}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"integrations": {
|
|
122
|
+
"keyVault": {
|
|
123
|
+
"enabled": {{keyVaultEnabled}},
|
|
124
|
+
"vaultUrl": "{{keyVaultUrl}}",
|
|
125
|
+
"secrets": [
|
|
126
|
+
{{#each keyVaultSecrets}}
|
|
127
|
+
"{{this}}"{{#unless @last}},{{/unless}}
|
|
128
|
+
{{/each}}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"servicebus": {
|
|
132
|
+
"enabled": {{serviceBusEnabled}},
|
|
133
|
+
"connectionString": "{{serviceBusConnectionString}}",
|
|
134
|
+
"queues": [
|
|
135
|
+
{{#each serviceBusQueues}}
|
|
136
|
+
"{{this}}"{{#unless @last}},{{/unless}}
|
|
137
|
+
{{/each}}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"storage": {
|
|
141
|
+
"enabled": {{storageEnabled}},
|
|
142
|
+
"accountName": "{{storageAccountName}}",
|
|
143
|
+
"containerName": "{{storageContainerName}}",
|
|
144
|
+
"enableStaticWebsite": {{enableStaticWebsite}}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"customSettings": {
|
|
148
|
+
{{#each customSettings}}
|
|
149
|
+
"{{@key}}": "{{this}}"{{#unless @last}},{{/unless}}
|
|
150
|
+
{{/each}}
|
|
151
|
+
},
|
|
152
|
+
"featureFlags": {
|
|
153
|
+
{{#each featureFlags}}
|
|
154
|
+
"{{@key}}": {{this}}{{#unless @last}},{{/unless}}
|
|
155
|
+
{{/each}}
|
|
156
|
+
},
|
|
157
|
+
"notifications": {
|
|
158
|
+
"deploymentSuccess": {
|
|
159
|
+
"enabled": true,
|
|
160
|
+
"channels": ["email", "teams"],
|
|
161
|
+
"recipients": [
|
|
162
|
+
{{#each notificationRecipients}}
|
|
163
|
+
"{{this}}"{{#unless @last}},{{/unless}}
|
|
164
|
+
{{/each}}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"deploymentFailure": {
|
|
168
|
+
"enabled": true,
|
|
169
|
+
"channels": ["email", "teams", "sms"],
|
|
170
|
+
"recipients": [
|
|
171
|
+
{{#each notificationRecipients}}
|
|
172
|
+
"{{this}}"{{#unless @last}},{{/unless}}
|
|
173
|
+
{{/each}}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"healthCheckFailure": {
|
|
177
|
+
"enabled": true,
|
|
178
|
+
"channels": ["email", "teams"],
|
|
179
|
+
"recipients": [
|
|
180
|
+
{{#each notificationRecipients}}
|
|
181
|
+
"{{this}}"{{#unless @last}},{{/unless}}
|
|
182
|
+
{{/each}}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|