@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
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logger function type definition
|
|
3
|
+
*/
|
|
4
|
+
export type LoggerFunction = (message: string, source?: string) => void;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Centralized logger utility class
|
|
8
|
+
* Provides a singleton logger that can be configured to use different output methods
|
|
9
|
+
*/
|
|
10
|
+
export class Logger {
|
|
11
|
+
private static loggerFunction: LoggerFunction | null = null;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Set the logger function to be used for all logging operations
|
|
15
|
+
* @param loggerFn The function to use for logging
|
|
16
|
+
*/
|
|
17
|
+
public static setLoggerFunction(loggerFn: LoggerFunction): void {
|
|
18
|
+
this.loggerFunction = loggerFn;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Log a message with optional source information
|
|
23
|
+
* @param message The message to log
|
|
24
|
+
* @param source Optional source identifier (e.g., component name, method name)
|
|
25
|
+
*/
|
|
26
|
+
public static log(message: string, source?: string): void {
|
|
27
|
+
if (this.loggerFunction) {
|
|
28
|
+
// Use the configured logger function (typically from LoggingContext)
|
|
29
|
+
this.loggerFunction(message, source);
|
|
30
|
+
} else {
|
|
31
|
+
// Fallback to console.log with formatted output
|
|
32
|
+
const timestamp = new Date().toISOString();
|
|
33
|
+
const sourceText = source ? ` [${source}]` : '';
|
|
34
|
+
console.log(`${timestamp}${sourceText}: ${message}`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Log an error message with optional source information
|
|
40
|
+
* @param message The error message to log
|
|
41
|
+
* @param source Optional source identifier
|
|
42
|
+
* @param error Optional error object for additional details
|
|
43
|
+
*/
|
|
44
|
+
public static error(message: string, source?: string, error?: any): void {
|
|
45
|
+
let errorMessage = `ERROR: ${message}`;
|
|
46
|
+
|
|
47
|
+
if (error) {
|
|
48
|
+
if (error instanceof Error) {
|
|
49
|
+
errorMessage += ` - ${error.message}`;
|
|
50
|
+
if (error.stack) {
|
|
51
|
+
errorMessage += `\nStack: ${error.stack}`;
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
errorMessage += ` - ${JSON.stringify(error, null, 2)}`;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
this.log(errorMessage, source);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Log a warning message with optional source information
|
|
63
|
+
* @param message The warning message to log
|
|
64
|
+
* @param source Optional source identifier
|
|
65
|
+
*/
|
|
66
|
+
public static warn(message: string, source?: string): void {
|
|
67
|
+
this.log(`WARNING: ${message}`, source);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Log debug information (only in development)
|
|
72
|
+
* @param message The debug message to log
|
|
73
|
+
* @param source Optional source identifier
|
|
74
|
+
* @param data Optional data object to include
|
|
75
|
+
*/
|
|
76
|
+
public static debug(message: string, source?: string, data?: any): void {
|
|
77
|
+
// Only log debug messages in development environment
|
|
78
|
+
if (process.env.NODE_ENV === 'development') {
|
|
79
|
+
let debugMessage = `DEBUG: ${message}`;
|
|
80
|
+
|
|
81
|
+
if (data) {
|
|
82
|
+
debugMessage += `\nData: ${JSON.stringify(data, null, 2)}`;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
this.log(debugMessage, source);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Log information about API operations
|
|
91
|
+
* @param operation The API operation being performed
|
|
92
|
+
* @param entity The entity being operated on
|
|
93
|
+
* @param data Optional data related to the operation
|
|
94
|
+
* @param source Optional source identifier
|
|
95
|
+
*/
|
|
96
|
+
public static apiOperation(
|
|
97
|
+
operation: 'CREATE' | 'READ' | 'UPDATE' | 'DELETE' | 'QUERY',
|
|
98
|
+
entity: string,
|
|
99
|
+
data?: any,
|
|
100
|
+
source?: string
|
|
101
|
+
): void {
|
|
102
|
+
let message = `API ${operation}: ${entity}`;
|
|
103
|
+
|
|
104
|
+
if (data) {
|
|
105
|
+
if (operation === 'QUERY') {
|
|
106
|
+
message += `\nQuery: ${data}`;
|
|
107
|
+
} else if (operation === 'CREATE' || operation === 'UPDATE') {
|
|
108
|
+
message += `\nData: ${JSON.stringify(data, null, 2)}`;
|
|
109
|
+
} else if (operation === 'READ' && data.id) {
|
|
110
|
+
message += `\nID: ${data.id}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
this.log(message, source || 'API');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Log FetchXML queries for debugging
|
|
119
|
+
* @param fetchXml The FetchXML query
|
|
120
|
+
* @param source Optional source identifier
|
|
121
|
+
*/
|
|
122
|
+
public static fetchXml(fetchXml: string, source?: string): void {
|
|
123
|
+
this.log(`FetchXML Query:\n${fetchXml}`, source || 'FetchXML');
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Log timing information for performance monitoring
|
|
128
|
+
* @param operation The operation being timed
|
|
129
|
+
* @param startTime The start time (from performance.now())
|
|
130
|
+
* @param source Optional source identifier
|
|
131
|
+
*/
|
|
132
|
+
public static timing(
|
|
133
|
+
operation: string,
|
|
134
|
+
startTime: number,
|
|
135
|
+
source?: string
|
|
136
|
+
): void {
|
|
137
|
+
const duration = performance.now() - startTime;
|
|
138
|
+
this.log(
|
|
139
|
+
`TIMING: ${operation} completed in ${duration.toFixed(2)}ms`,
|
|
140
|
+
source || 'Performance'
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Log validation errors
|
|
146
|
+
* @param entity The entity being validated
|
|
147
|
+
* @param errors Array of validation error messages
|
|
148
|
+
* @param source Optional source identifier
|
|
149
|
+
*/
|
|
150
|
+
public static validation(
|
|
151
|
+
entity: string,
|
|
152
|
+
errors: string[],
|
|
153
|
+
source?: string
|
|
154
|
+
): void {
|
|
155
|
+
const message = `VALIDATION ERRORS for ${entity}:\n${errors.map((error) => `- ${error}`).join('\n')}`;
|
|
156
|
+
this.error(message, source || 'Validation');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Log user interactions for audit trail
|
|
161
|
+
* @param action The user action performed
|
|
162
|
+
* @param details Optional details about the action
|
|
163
|
+
* @param source Optional source identifier
|
|
164
|
+
*/
|
|
165
|
+
public static userAction(
|
|
166
|
+
action: string,
|
|
167
|
+
details?: any,
|
|
168
|
+
source?: string
|
|
169
|
+
): void {
|
|
170
|
+
let message = `USER ACTION: ${action}`;
|
|
171
|
+
|
|
172
|
+
if (details) {
|
|
173
|
+
message += `\nDetails: ${JSON.stringify(details, null, 2)}`;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
this.log(message, source || 'UserAction');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Clear the configured logger function (revert to console.log)
|
|
181
|
+
*/
|
|
182
|
+
public static clearLoggerFunction(): void {
|
|
183
|
+
this.loggerFunction = null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Check if a custom logger function is configured
|
|
188
|
+
* @returns True if a custom logger is set, false if using console.log fallback
|
|
189
|
+
*/
|
|
190
|
+
public static hasCustomLogger(): boolean {
|
|
191
|
+
return this.loggerFunction !== null;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account entity constants for Dynamics 365.
|
|
3
|
+
* Contains entity names and field definitions with metadata.
|
|
4
|
+
*/
|
|
5
|
+
export class AccountConstants {
|
|
6
|
+
/** Entity name for single account */
|
|
7
|
+
public static readonly EntityName: string = 'account';
|
|
8
|
+
|
|
9
|
+
/** Entity collection name for multiple accounts */
|
|
10
|
+
public static readonly EntityCollectionName: string = 'accounts';
|
|
11
|
+
|
|
12
|
+
/** Type: Guid, Primary key for Account records */
|
|
13
|
+
public static readonly PrimaryKey: string = 'accountid';
|
|
14
|
+
|
|
15
|
+
/** Type: String, RequiredLevel: ApplicationRequired, MaxLength: 160, Format: Text */
|
|
16
|
+
public static readonly PrimaryName: string = 'name';
|
|
17
|
+
|
|
18
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
19
|
+
public static readonly AccountCategoryCode: string = 'accountcategorycode';
|
|
20
|
+
|
|
21
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
22
|
+
public static readonly AccountClassificationCode: string =
|
|
23
|
+
'accountclassificationcode';
|
|
24
|
+
|
|
25
|
+
/** Type: String, RequiredLevel: None, MaxLength: 20, Format: Text */
|
|
26
|
+
public static readonly AccountNumber: string = 'accountnumber';
|
|
27
|
+
|
|
28
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
29
|
+
public static readonly AccountRatingCode: string = 'accountratingcode';
|
|
30
|
+
|
|
31
|
+
/** Type: String, RequiredLevel: None, MaxLength: 250, Format: Text */
|
|
32
|
+
public static readonly Address1_AddressTypeCode: string =
|
|
33
|
+
'address1_addresstypecode';
|
|
34
|
+
|
|
35
|
+
/** Type: String, RequiredLevel: None, MaxLength: 80, Format: Text */
|
|
36
|
+
public static readonly Address1_City: string = 'address1_city';
|
|
37
|
+
|
|
38
|
+
/** Type: String, RequiredLevel: None, MaxLength: 80, Format: Text */
|
|
39
|
+
public static readonly Address1_Country: string = 'address1_country';
|
|
40
|
+
|
|
41
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
42
|
+
public static readonly Address1_County: string = 'address1_county';
|
|
43
|
+
|
|
44
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
45
|
+
public static readonly Address1_Fax: string = 'address1_fax';
|
|
46
|
+
|
|
47
|
+
/** Type: Double, RequiredLevel: None, MinValue: -90, MaxValue: 90 */
|
|
48
|
+
public static readonly Address1_Latitude: string = 'address1_latitude';
|
|
49
|
+
|
|
50
|
+
/** Type: String, RequiredLevel: None, MaxLength: 250, Format: Text */
|
|
51
|
+
public static readonly Address1_Line1: string = 'address1_line1';
|
|
52
|
+
|
|
53
|
+
/** Type: String, RequiredLevel: None, MaxLength: 250, Format: Text */
|
|
54
|
+
public static readonly Address1_Line2: string = 'address1_line2';
|
|
55
|
+
|
|
56
|
+
/** Type: String, RequiredLevel: None, MaxLength: 250, Format: Text */
|
|
57
|
+
public static readonly Address1_Line3: string = 'address1_line3';
|
|
58
|
+
|
|
59
|
+
/** Type: Double, RequiredLevel: None, MinValue: -180, MaxValue: 180 */
|
|
60
|
+
public static readonly Address1_Longitude: string = 'address1_longitude';
|
|
61
|
+
|
|
62
|
+
/** Type: String, RequiredLevel: None, MaxLength: 200, Format: Text */
|
|
63
|
+
public static readonly Address1_Name: string = 'address1_name';
|
|
64
|
+
|
|
65
|
+
/** Type: String, RequiredLevel: None, MaxLength: 20, Format: Text */
|
|
66
|
+
public static readonly Address1_PostalCode: string = 'address1_postalcode';
|
|
67
|
+
|
|
68
|
+
/** Type: String, RequiredLevel: None, MaxLength: 100, Format: Text */
|
|
69
|
+
public static readonly Address1_PostOfficeBox: string =
|
|
70
|
+
'address1_postofficebox';
|
|
71
|
+
|
|
72
|
+
/** Type: String, RequiredLevel: None, MaxLength: 100, Format: Text */
|
|
73
|
+
public static readonly Address1_PrimaryContactName: string =
|
|
74
|
+
'address1_primarycontactname';
|
|
75
|
+
|
|
76
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
77
|
+
public static readonly Address1_ShippingMethodCode: string =
|
|
78
|
+
'address1_shippingmethodcode';
|
|
79
|
+
|
|
80
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
81
|
+
public static readonly Address1_StateOrProvince: string =
|
|
82
|
+
'address1_stateorprovince';
|
|
83
|
+
|
|
84
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
85
|
+
public static readonly Address1_Telephone1: string = 'address1_telephone1';
|
|
86
|
+
|
|
87
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
88
|
+
public static readonly Address1_Telephone2: string = 'address1_telephone2';
|
|
89
|
+
|
|
90
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
91
|
+
public static readonly Address1_Telephone3: string = 'address1_telephone3';
|
|
92
|
+
|
|
93
|
+
/** Type: String, RequiredLevel: None, MaxLength: 4, Format: Text */
|
|
94
|
+
public static readonly Address1_UPSZone: string = 'address1_upszone';
|
|
95
|
+
|
|
96
|
+
/** Type: Integer, RequiredLevel: None, MinValue: -2147483648, MaxValue: 2147483647 */
|
|
97
|
+
public static readonly Address1_UTCOffset: string = 'address1_utcoffset';
|
|
98
|
+
|
|
99
|
+
/** Type: Money, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000000 */
|
|
100
|
+
public static readonly CreditLimit: string = 'creditlimit';
|
|
101
|
+
|
|
102
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
103
|
+
public static readonly CreditOnHold: string = 'creditonhold';
|
|
104
|
+
|
|
105
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
106
|
+
public static readonly CustomerSizeCode: string = 'customersizecode';
|
|
107
|
+
|
|
108
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
109
|
+
public static readonly CustomerTypeCode: string = 'customertypecode';
|
|
110
|
+
|
|
111
|
+
/** Type: String, RequiredLevel: None, MaxLength: 2000, Format: TextArea */
|
|
112
|
+
public static readonly Description: string = 'description';
|
|
113
|
+
|
|
114
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
115
|
+
public static readonly DoNotBulkEMail: string = 'donotbulkemail';
|
|
116
|
+
|
|
117
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
118
|
+
public static readonly DoNotEMail: string = 'donotemail';
|
|
119
|
+
|
|
120
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
121
|
+
public static readonly DoNotFax: string = 'donotfax';
|
|
122
|
+
|
|
123
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
124
|
+
public static readonly DoNotPhone: string = 'donotphone';
|
|
125
|
+
|
|
126
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
127
|
+
public static readonly DoNotPostalMail: string = 'donotpostalmail';
|
|
128
|
+
|
|
129
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
130
|
+
public static readonly DoNotSendMM: string = 'donotsendmm';
|
|
131
|
+
|
|
132
|
+
/** Type: String, RequiredLevel: None, MaxLength: 100, Format: Email */
|
|
133
|
+
public static readonly EMailAddress1: string = 'emailaddress1';
|
|
134
|
+
|
|
135
|
+
/** Type: String, RequiredLevel: None, MaxLength: 100, Format: Email */
|
|
136
|
+
public static readonly EMailAddress2: string = 'emailaddress2';
|
|
137
|
+
|
|
138
|
+
/** Type: String, RequiredLevel: None, MaxLength: 100, Format: Email */
|
|
139
|
+
public static readonly EMailAddress3: string = 'emailaddress3';
|
|
140
|
+
|
|
141
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
142
|
+
public static readonly Fax: string = 'fax';
|
|
143
|
+
|
|
144
|
+
/** Type: String, RequiredLevel: None, MaxLength: 200, Format: Text */
|
|
145
|
+
public static readonly FtpSiteURL: string = 'ftpsiteurl';
|
|
146
|
+
|
|
147
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
148
|
+
public static readonly IndustryCode: string = 'industrycode';
|
|
149
|
+
|
|
150
|
+
/** Type: DateTime, RequiredLevel: None, Format: DateOnly */
|
|
151
|
+
public static readonly LastUsedInCampaign: string = 'lastusedincampaign';
|
|
152
|
+
|
|
153
|
+
/** Type: Money, RequiredLevel: None, MinValue: 0, MaxValue: 100000000000000 */
|
|
154
|
+
public static readonly MarketCap: string = 'marketcap';
|
|
155
|
+
|
|
156
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
157
|
+
public static readonly MarketingOnly: string = 'marketingonly';
|
|
158
|
+
|
|
159
|
+
/** Type: Guid, RequiredLevel: None */
|
|
160
|
+
public static readonly MasterId: string = 'masterid';
|
|
161
|
+
|
|
162
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
163
|
+
public static readonly Merged: string = 'merged';
|
|
164
|
+
|
|
165
|
+
/** Type: Guid, RequiredLevel: SystemRequired */
|
|
166
|
+
public static readonly ModifiedBy: string = 'modifiedby';
|
|
167
|
+
|
|
168
|
+
/** Type: DateTime, RequiredLevel: None, Format: DateAndTime */
|
|
169
|
+
public static readonly ModifiedOn: string = 'modifiedon';
|
|
170
|
+
|
|
171
|
+
/** Type: Integer, RequiredLevel: None, MinValue: -2147483648, MaxValue: 2147483647 */
|
|
172
|
+
public static readonly NumberOfEmployees: string = 'numberofemployees';
|
|
173
|
+
|
|
174
|
+
/** Type: Guid, RequiredLevel: ApplicationRequired */
|
|
175
|
+
public static readonly OwnerId: string = 'ownerid';
|
|
176
|
+
|
|
177
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
178
|
+
public static readonly OwnershipCode: string = 'ownershipcode';
|
|
179
|
+
|
|
180
|
+
/** Type: Guid, RequiredLevel: None */
|
|
181
|
+
public static readonly ParentAccountId: string = 'parentaccountid';
|
|
182
|
+
|
|
183
|
+
/** Type: Boolean, RequiredLevel: None */
|
|
184
|
+
public static readonly ParticipatesInWorkflow: string =
|
|
185
|
+
'participatesinworkflow';
|
|
186
|
+
|
|
187
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 5 */
|
|
188
|
+
public static readonly PaymentTermsCode: string = 'paymenttermscode';
|
|
189
|
+
|
|
190
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
191
|
+
public static readonly PreferredAppointmentDayCode: string =
|
|
192
|
+
'preferredappointmentdaycode';
|
|
193
|
+
|
|
194
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
195
|
+
public static readonly PreferredAppointmentTimeCode: string =
|
|
196
|
+
'preferredappointmenttimecode';
|
|
197
|
+
|
|
198
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
199
|
+
public static readonly PreferredContactMethodCode: string =
|
|
200
|
+
'preferredcontactmethodcode';
|
|
201
|
+
|
|
202
|
+
/** Type: Guid, RequiredLevel: None */
|
|
203
|
+
public static readonly PreferredSystemUserId: string =
|
|
204
|
+
'preferredsystemuserid';
|
|
205
|
+
|
|
206
|
+
/** Type: Guid, RequiredLevel: None */
|
|
207
|
+
public static readonly PrimaryContactId: string = 'primarycontactid';
|
|
208
|
+
|
|
209
|
+
/** Type: Money, RequiredLevel: None, MinValue: -922337203685477, MaxValue: 922337203685477 */
|
|
210
|
+
public static readonly Revenue: string = 'revenue';
|
|
211
|
+
|
|
212
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1 */
|
|
213
|
+
public static readonly SharesOutstanding: string = 'sharesoutstanding';
|
|
214
|
+
|
|
215
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
216
|
+
public static readonly ShippingMethodCode: string = 'shippingmethodcode';
|
|
217
|
+
|
|
218
|
+
/** Type: String, RequiredLevel: None, MaxLength: 10, Format: Text */
|
|
219
|
+
public static readonly SIC: string = 'sic';
|
|
220
|
+
|
|
221
|
+
/** Type: Guid, RequiredLevel: None */
|
|
222
|
+
public static readonly SLAId: string = 'slaid';
|
|
223
|
+
|
|
224
|
+
/** Type: State, RequiredLevel: SystemRequired */
|
|
225
|
+
public static readonly StateCode: string = 'statecode';
|
|
226
|
+
|
|
227
|
+
/** Type: Status, RequiredLevel: None */
|
|
228
|
+
public static readonly StatusCode: string = 'statuscode';
|
|
229
|
+
|
|
230
|
+
/** Type: String, RequiredLevel: None, MaxLength: 100, Format: Text */
|
|
231
|
+
public static readonly StockExchange: string = 'stockexchange';
|
|
232
|
+
|
|
233
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
234
|
+
public static readonly Telephone1: string = 'telephone1';
|
|
235
|
+
|
|
236
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
237
|
+
public static readonly Telephone2: string = 'telephone2';
|
|
238
|
+
|
|
239
|
+
/** Type: String, RequiredLevel: None, MaxLength: 50, Format: Text */
|
|
240
|
+
public static readonly Telephone3: string = 'telephone3';
|
|
241
|
+
|
|
242
|
+
/** Type: Integer, RequiredLevel: None, MinValue: 0, MaxValue: 1000000000 */
|
|
243
|
+
public static readonly TerritoryCode: string = 'territorycode';
|
|
244
|
+
|
|
245
|
+
/** Type: String, RequiredLevel: None, MaxLength: 10, Format: Text */
|
|
246
|
+
public static readonly TickerSymbol: string = 'tickersymbol';
|
|
247
|
+
|
|
248
|
+
/** Type: String, RequiredLevel: None, MaxLength: 2083, Format: Url */
|
|
249
|
+
public static readonly WebSiteURL: string = 'websiteurl';
|
|
250
|
+
|
|
251
|
+
/** Type: String, RequiredLevel: None, MaxLength: 200, Format: Text */
|
|
252
|
+
public static readonly YomiName: string = 'yominame';
|
|
253
|
+
|
|
254
|
+
/** Type: Guid, RequiredLevel: SystemRequired */
|
|
255
|
+
public static readonly CreatedBy: string = 'createdby';
|
|
256
|
+
|
|
257
|
+
/** Type: DateTime, RequiredLevel: None, Format: DateAndTime */
|
|
258
|
+
public static readonly CreatedOn: string = 'createdon';
|
|
259
|
+
|
|
260
|
+
/** Type: Guid, RequiredLevel: None */
|
|
261
|
+
public static readonly TransactionCurrencyId: string =
|
|
262
|
+
'transactioncurrencyid';
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Account Category Code OptionSet
|
|
267
|
+
*/
|
|
268
|
+
export enum AccountCategoryCode_OptionSet {
|
|
269
|
+
PreferredCustomer = 1,
|
|
270
|
+
Standard = 2,
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Account Classification Code OptionSet
|
|
275
|
+
*/
|
|
276
|
+
export enum AccountClassificationCode_OptionSet {
|
|
277
|
+
DefaultValue = 1,
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Account Rating Code OptionSet
|
|
282
|
+
*/
|
|
283
|
+
export enum AccountRatingCode_OptionSet {
|
|
284
|
+
DefaultValue = 1,
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Customer Size Code OptionSet
|
|
289
|
+
*/
|
|
290
|
+
export enum CustomerSizeCode_OptionSet {
|
|
291
|
+
DefaultValue = 1,
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Customer Type Code OptionSet
|
|
296
|
+
*/
|
|
297
|
+
export enum CustomerTypeCode_OptionSet {
|
|
298
|
+
Competitor = 1,
|
|
299
|
+
Consultant = 2,
|
|
300
|
+
Customer = 3,
|
|
301
|
+
Investor = 4,
|
|
302
|
+
Partner = 5,
|
|
303
|
+
Influencer = 6,
|
|
304
|
+
Press = 7,
|
|
305
|
+
Prospect = 8,
|
|
306
|
+
Reseller = 9,
|
|
307
|
+
Supplier = 10,
|
|
308
|
+
Vendor = 11,
|
|
309
|
+
Other = 12,
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Industry Code OptionSet
|
|
314
|
+
*/
|
|
315
|
+
export enum IndustryCode_OptionSet {
|
|
316
|
+
Accounting = 1,
|
|
317
|
+
AgricultureAndNonPetrolNaturalResourceExtraction = 2,
|
|
318
|
+
BroadcastingPrintingAndPublishing = 3,
|
|
319
|
+
Brokers = 4,
|
|
320
|
+
BuildingSupplyRetail = 5,
|
|
321
|
+
BusinessServices = 6,
|
|
322
|
+
Consulting = 7,
|
|
323
|
+
ConsumerServices = 8,
|
|
324
|
+
DesignDirectionAndCreativeManagement = 9,
|
|
325
|
+
DistributorsDispatchersAndProcessors = 10,
|
|
326
|
+
DoctorsOfficesAndClinics = 11,
|
|
327
|
+
DurableManufacturing = 12,
|
|
328
|
+
EatingAndDrinkingPlaces = 13,
|
|
329
|
+
EntertainmentRetail = 14,
|
|
330
|
+
EquipmentRentalAndLeasing = 15,
|
|
331
|
+
Financial = 16,
|
|
332
|
+
FoodAndTobaccoProcessing = 17,
|
|
333
|
+
InboundCapitalIntensiveProcessing = 18,
|
|
334
|
+
InboundRepairAndServices = 19,
|
|
335
|
+
Insurance = 20,
|
|
336
|
+
LegalServices = 21,
|
|
337
|
+
NonDurableMerchandiseRetail = 22,
|
|
338
|
+
OutboundConsumerService = 23,
|
|
339
|
+
PetrochemicalExtractionAndDistribution = 24,
|
|
340
|
+
ServiceRetail = 25,
|
|
341
|
+
SIGAffiliations = 26,
|
|
342
|
+
SocialServices = 27,
|
|
343
|
+
SpecialOutboundTradeContractors = 28,
|
|
344
|
+
SpecialtyRealty = 29,
|
|
345
|
+
Transportation = 30,
|
|
346
|
+
UtilityCreationAndDistribution = 31,
|
|
347
|
+
VehicleRetail = 32,
|
|
348
|
+
Wholesale = 33,
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Ownership Code OptionSet
|
|
353
|
+
*/
|
|
354
|
+
export enum OwnershipCode_OptionSet {
|
|
355
|
+
Public = 1,
|
|
356
|
+
Private = 2,
|
|
357
|
+
Subsidiary = 3,
|
|
358
|
+
Other = 4,
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Payment Terms Code OptionSet
|
|
363
|
+
*/
|
|
364
|
+
export enum PaymentTermsCode_OptionSet {
|
|
365
|
+
Net30 = 1,
|
|
366
|
+
TwoTenNet30 = 2,
|
|
367
|
+
Net45 = 3,
|
|
368
|
+
Net60 = 4,
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Preferred Contact Method Code OptionSet
|
|
373
|
+
*/
|
|
374
|
+
export enum PreferredContactMethodCode_OptionSet {
|
|
375
|
+
Any = 1,
|
|
376
|
+
Email = 2,
|
|
377
|
+
Phone = 3,
|
|
378
|
+
Fax = 4,
|
|
379
|
+
Mail = 5,
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Shipping Method Code OptionSet
|
|
384
|
+
*/
|
|
385
|
+
export enum ShippingMethodCode_OptionSet {
|
|
386
|
+
DefaultValue = 1,
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* State Code OptionSet
|
|
391
|
+
*/
|
|
392
|
+
export enum StateCode_OptionSet {
|
|
393
|
+
Active = 0,
|
|
394
|
+
Inactive = 1,
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Status Code OptionSet
|
|
399
|
+
*/
|
|
400
|
+
export enum StatusCode_OptionSet {
|
|
401
|
+
Active = 1,
|
|
402
|
+
Inactive = 2,
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Territory Code OptionSet
|
|
407
|
+
*/
|
|
408
|
+
export enum TerritoryCode_OptionSet {
|
|
409
|
+
DefaultValue = 1,
|
|
410
|
+
}
|