@khester/create-dynamics-app 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/artifacts/registry.d.ts +4 -3
  2. package/dist/artifacts/registry.d.ts.map +1 -1
  3. package/dist/artifacts/registry.js +122 -12
  4. package/dist/artifacts/registry.js.map +1 -1
  5. package/dist/artifacts/types.d.ts +1 -1
  6. package/dist/artifacts/types.d.ts.map +1 -1
  7. package/dist/index.js +2 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/injectDevTools.d.ts.map +1 -1
  10. package/dist/injectDevTools.js +4 -2
  11. package/dist/injectDevTools.js.map +1 -1
  12. package/dist/scaffold.d.ts +1 -0
  13. package/dist/scaffold.d.ts.map +1 -1
  14. package/dist/scaffold.js +3 -1
  15. package/dist/scaffold.js.map +1 -1
  16. package/package.json +3 -2
  17. package/templates/grid-starter/ARCHITECTURE.md +66 -0
  18. package/templates/grid-starter/README.md +122 -0
  19. package/templates/grid-starter/env.example +16 -0
  20. package/templates/grid-starter/gitignore +6 -0
  21. package/templates/grid-starter/index.html +16 -0
  22. package/templates/grid-starter/package.json +39 -0
  23. package/templates/grid-starter/src/App.tsx +23 -0
  24. package/templates/grid-starter/src/core/services/FetchApiService.ts +117 -0
  25. package/templates/grid-starter/src/core/services/IApiService.ts +37 -0
  26. package/templates/grid-starter/src/core/services/MockApiService.ts +72 -0
  27. package/templates/grid-starter/src/core/services/ServiceFactory.ts +58 -0
  28. package/templates/grid-starter/src/core/services/XrmApiService.ts +135 -0
  29. package/templates/grid-starter/src/core/services/crudLogging.ts +52 -0
  30. package/templates/grid-starter/src/dev-tools/DevPanel.tsx +239 -0
  31. package/templates/grid-starter/src/grid/GridPage.tsx +119 -0
  32. package/templates/grid-starter/src/index.tsx +18 -0
  33. package/templates/grid-starter/src/vite-env.d.ts +15 -0
  34. package/templates/grid-starter/tools/deploy/deploy-webresource.cjs +117 -0
  35. package/templates/grid-starter/tsconfig.json +19 -0
  36. package/templates/grid-starter/vite.config.ts +76 -0
  37. package/templates/pcf-dataset/package.json +3 -1
  38. package/templates/pcf-field/_variants/ValueInput.boolean.tsx +2 -0
  39. package/templates/pcf-field/_variants/ValueInput.date.tsx +2 -0
  40. package/templates/pcf-field/_variants/ValueInput.number.tsx +2 -0
  41. package/templates/pcf-field/_variants/ValueInput.optionset.tsx +77 -0
  42. package/templates/pcf-field/_variants/ValueInput.text.tsx +2 -0
  43. package/templates/pcf-field/index.ts +1 -1
  44. package/templates/pcf-field/package.json +3 -1
  45. package/templates/pcf-field/{{componentName}}Component.tsx +2 -0
  46. package/templates/react-custom-page/ARCHITECTURE.md +75 -0
  47. package/templates/react-custom-page/README.md +74 -568
  48. package/templates/react-custom-page/env.example +16 -0
  49. package/templates/react-custom-page/gitignore +1 -0
  50. package/templates/react-custom-page/index.html +16 -0
  51. package/templates/react-custom-page/package.json +21 -49
  52. package/templates/react-custom-page/src/App.tsx +26 -0
  53. package/templates/react-custom-page/src/core/recordContext.test.ts +30 -0
  54. package/templates/react-custom-page/src/core/recordContext.ts +51 -0
  55. package/templates/react-custom-page/src/core/services/FetchApiService.ts +117 -0
  56. package/templates/react-custom-page/src/core/services/IApiService.ts +37 -0
  57. package/templates/react-custom-page/src/core/services/MockApiService.ts +73 -0
  58. package/templates/react-custom-page/src/core/services/ServiceFactory.ts +58 -0
  59. package/templates/react-custom-page/src/core/services/XrmApiService.ts +135 -0
  60. package/templates/react-custom-page/src/core/services/crudLogging.ts +52 -0
  61. package/templates/react-custom-page/src/dev-tools/DevPanel.tsx +238 -0
  62. package/templates/react-custom-page/src/domain/diff.test.ts +87 -0
  63. package/templates/react-custom-page/src/domain/diff.ts +38 -0
  64. package/templates/react-custom-page/src/example/ExamplePage.tsx +140 -0
  65. package/templates/react-custom-page/src/example/exampleError.ts +36 -0
  66. package/templates/react-custom-page/src/example/hooks/useExampleData.ts +40 -0
  67. package/templates/react-custom-page/src/example/hooks/useExampleForm.ts +99 -0
  68. package/templates/react-custom-page/src/example/mappers/accountMapper.test.ts +38 -0
  69. package/templates/react-custom-page/src/example/mappers/accountMapper.ts +55 -0
  70. package/templates/react-custom-page/src/example/models/Account.ts +74 -0
  71. package/templates/react-custom-page/src/index.tsx +18 -128
  72. package/templates/react-custom-page/src/vite-env.d.ts +15 -0
  73. package/templates/react-custom-page/tools/deploy/deploy-webresource.cjs +117 -0
  74. package/templates/react-custom-page/tsconfig.json +12 -22
  75. package/templates/react-custom-page/vite.config.ts +76 -0
  76. package/templates/starter-page/README.md +38 -0
  77. package/templates/starter-page/_variants/App.dashboard.v8.tsx +46 -0
  78. package/templates/starter-page/_variants/App.form.v8.tsx +59 -0
  79. package/templates/starter-page/_variants/App.master-detail.v8.tsx +61 -0
  80. package/templates/starter-page/_variants/App.panel.v8.tsx +99 -0
  81. package/templates/starter-page/gitignore +5 -0
  82. package/templates/starter-page/package.json +27 -0
  83. package/templates/starter-page/public/index.html +11 -0
  84. package/templates/starter-page/src/index.tsx +10 -0
  85. package/templates/starter-page/src/services/dataverse.ts +30 -0
  86. package/templates/starter-page/tsconfig.json +15 -0
  87. package/templates/starter-page/webpack.config.js +17 -0
  88. package/templates/react-custom-page/deployment/README.md +0 -484
  89. package/templates/react-custom-page/docs/ARCHITECTURE_OVERVIEW.md +0 -506
  90. package/templates/react-custom-page/docs/BEST_PRACTICES.md +0 -723
  91. package/templates/react-custom-page/docs/MIGRATION_GUIDE.md +0 -447
  92. package/templates/react-custom-page/public/index.html +0 -15
  93. package/templates/react-custom-page/scripts/custom-build.js +0 -255
  94. package/templates/react-custom-page/src/components/AccountForm.css +0 -71
  95. package/templates/react-custom-page/src/components/AccountForm.tsx +0 -541
  96. package/templates/react-custom-page/src/components/AccountManagement.css +0 -86
  97. package/templates/react-custom-page/src/components/AccountManagement.tsx +0 -370
  98. package/templates/react-custom-page/src/components/ContactForm.css +0 -48
  99. package/templates/react-custom-page/src/components/ContactForm.tsx +0 -327
  100. package/templates/react-custom-page/src/components/ContactManagement.css +0 -86
  101. package/templates/react-custom-page/src/components/ContactManagement.tsx +0 -357
  102. package/templates/react-custom-page/src/components/Logging/LogDialog.tsx +0 -291
  103. package/templates/react-custom-page/src/components/Logging/LoggingContext.tsx +0 -166
  104. package/templates/react-custom-page/src/components/Logging/LoggingDebugPanel.css +0 -192
  105. package/templates/react-custom-page/src/components/Logging/LoggingDebugPanel.tsx +0 -177
  106. package/templates/react-custom-page/src/components/Logging/LoggingProvider.tsx +0 -3
  107. package/templates/react-custom-page/src/components/Logging/logger.ts +0 -193
  108. package/templates/react-custom-page/src/constants/account.ts +0 -410
  109. package/templates/react-custom-page/src/constants/contact.ts +0 -362
  110. package/templates/react-custom-page/src/models/Account.ts +0 -480
  111. package/templates/react-custom-page/src/models/BaseEntity.ts +0 -204
  112. package/templates/react-custom-page/src/models/Contact.ts +0 -580
  113. package/templates/react-custom-page/src/pcf/ContactControlWrapper.tsx +0 -107
  114. package/templates/react-custom-page/src/pcf/MultiEntityControlWrapper.tsx +0 -205
  115. package/templates/react-custom-page/src/providers/DynamicsProvider.tsx +0 -353
  116. package/templates/react-custom-page/src/services/MockApiService.ts +0 -260
  117. package/templates/react-custom-page/src/services/ServiceFactory.ts +0 -65
  118. package/templates/react-custom-page/src/services/XrmApiService.ts +0 -213
  119. package/templates/react-custom-page/src/styles/index.css +0 -171
  120. package/templates/react-custom-page/tools/metadata-sync/index.js +0 -152
  121. package/templates/react-custom-page/webpack.config.js +0 -57
  122. /package/templates/_shared/dev-tools/auth/{get-token.js → get-token.cjs} +0 -0
@@ -1,193 +0,0 @@
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
- }
@@ -1,410 +0,0 @@
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
- }