@jsforce/jsforce-node 0.0.1 → 3.0.0-next.2

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 (131) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +54 -0
  3. package/index.d.ts +4 -0
  4. package/index.js +1 -0
  5. package/lib/VERSION.d.ts +2 -0
  6. package/lib/VERSION.js +3 -0
  7. package/lib/api/analytics/types.d.ts +509 -0
  8. package/lib/api/analytics/types.js +2 -0
  9. package/lib/api/analytics.d.ts +163 -0
  10. package/lib/api/analytics.js +342 -0
  11. package/lib/api/apex.d.ts +44 -0
  12. package/lib/api/apex.js +86 -0
  13. package/lib/api/bulk.d.ts +253 -0
  14. package/lib/api/bulk.js +678 -0
  15. package/lib/api/bulk2.d.ts +324 -0
  16. package/lib/api/bulk2.js +800 -0
  17. package/lib/api/chatter.d.ts +133 -0
  18. package/lib/api/chatter.js +248 -0
  19. package/lib/api/metadata/schema.d.ts +16117 -0
  20. package/lib/api/metadata/schema.js +9094 -0
  21. package/lib/api/metadata.d.ts +189 -0
  22. package/lib/api/metadata.js +406 -0
  23. package/lib/api/soap/schema.d.ts +3167 -0
  24. package/lib/api/soap/schema.js +1787 -0
  25. package/lib/api/soap.d.ts +76 -0
  26. package/lib/api/soap.js +155 -0
  27. package/lib/api/streaming/extension.d.ts +94 -0
  28. package/lib/api/streaming/extension.js +151 -0
  29. package/lib/api/streaming.d.ts +160 -0
  30. package/lib/api/streaming.js +252 -0
  31. package/lib/api/tooling.d.ts +284 -0
  32. package/lib/api/tooling.js +202 -0
  33. package/lib/api/wsdl/wsdl2schema.d.ts +1 -0
  34. package/lib/api/wsdl/wsdl2schema.js +354 -0
  35. package/lib/browser/canvas.d.ts +12 -0
  36. package/lib/browser/canvas.js +77 -0
  37. package/lib/browser/client.d.ts +82 -0
  38. package/lib/browser/client.js +244 -0
  39. package/lib/browser/jsonp.d.ts +12 -0
  40. package/lib/browser/jsonp.js +69 -0
  41. package/lib/browser/registry.d.ts +3 -0
  42. package/lib/browser/registry.js +5 -0
  43. package/lib/browser/request.d.ts +10 -0
  44. package/lib/browser/request.js +202 -0
  45. package/lib/cache.d.ts +74 -0
  46. package/lib/cache.js +159 -0
  47. package/lib/connection.d.ts +356 -0
  48. package/lib/connection.js +1153 -0
  49. package/lib/core.d.ts +17 -0
  50. package/lib/core.js +55 -0
  51. package/lib/csv.d.ts +23 -0
  52. package/lib/csv.js +35 -0
  53. package/lib/date.d.ts +82 -0
  54. package/lib/date.js +201 -0
  55. package/lib/http-api.d.ts +75 -0
  56. package/lib/http-api.js +295 -0
  57. package/lib/index.d.ts +13 -0
  58. package/lib/index.js +32 -0
  59. package/lib/jsforce.d.ts +26 -0
  60. package/lib/jsforce.js +67 -0
  61. package/lib/jwtOAuth2.d.ts +8 -0
  62. package/lib/jwtOAuth2.js +23 -0
  63. package/lib/oauth2.d.ts +92 -0
  64. package/lib/oauth2.js +245 -0
  65. package/lib/process.d.ts +157 -0
  66. package/lib/process.js +143 -0
  67. package/lib/query.d.ts +341 -0
  68. package/lib/query.js +817 -0
  69. package/lib/quick-action.d.ts +44 -0
  70. package/lib/quick-action.js +46 -0
  71. package/lib/record-reference.d.ts +46 -0
  72. package/lib/record-reference.js +65 -0
  73. package/lib/record-stream.d.ts +83 -0
  74. package/lib/record-stream.js +233 -0
  75. package/lib/registry/base.d.ts +43 -0
  76. package/lib/registry/base.js +96 -0
  77. package/lib/registry/empty.d.ts +7 -0
  78. package/lib/registry/empty.js +13 -0
  79. package/lib/registry/file.d.ts +11 -0
  80. package/lib/registry/file.js +51 -0
  81. package/lib/registry/index.d.ts +8 -0
  82. package/lib/registry/index.js +21 -0
  83. package/lib/registry/sfdx.d.ts +56 -0
  84. package/lib/registry/sfdx.js +133 -0
  85. package/lib/registry/types.d.ts +47 -0
  86. package/lib/registry/types.js +2 -0
  87. package/lib/request-helper.d.ts +23 -0
  88. package/lib/request-helper.js +102 -0
  89. package/lib/request.d.ts +11 -0
  90. package/lib/request.js +75 -0
  91. package/lib/session-refresh-delegate.d.ts +31 -0
  92. package/lib/session-refresh-delegate.js +69 -0
  93. package/lib/soap.d.ts +60 -0
  94. package/lib/soap.js +257 -0
  95. package/lib/sobject.d.ts +258 -0
  96. package/lib/sobject.js +376 -0
  97. package/lib/soql-builder.d.ts +25 -0
  98. package/lib/soql-builder.js +226 -0
  99. package/lib/transport.d.ts +63 -0
  100. package/lib/transport.js +175 -0
  101. package/lib/types/common.d.ts +560 -0
  102. package/lib/types/common.js +2 -0
  103. package/lib/types/index.d.ts +7 -0
  104. package/lib/types/index.js +23 -0
  105. package/lib/types/projection.d.ts +26 -0
  106. package/lib/types/projection.js +2 -0
  107. package/lib/types/record.d.ts +44 -0
  108. package/lib/types/record.js +2 -0
  109. package/lib/types/schema.d.ts +50 -0
  110. package/lib/types/schema.js +2 -0
  111. package/lib/types/soap.d.ts +43 -0
  112. package/lib/types/soap.js +2 -0
  113. package/lib/types/standard-schema.d.ts +16199 -0
  114. package/lib/types/standard-schema.js +2 -0
  115. package/lib/types/util.d.ts +7 -0
  116. package/lib/types/util.js +2 -0
  117. package/lib/util/formatter.d.ts +8 -0
  118. package/lib/util/formatter.js +24 -0
  119. package/lib/util/function.d.ts +32 -0
  120. package/lib/util/function.js +52 -0
  121. package/lib/util/get-body-size.d.ts +4 -0
  122. package/lib/util/get-body-size.js +39 -0
  123. package/lib/util/logger.d.ts +29 -0
  124. package/lib/util/logger.js +102 -0
  125. package/lib/util/promise.d.ts +19 -0
  126. package/lib/util/promise.js +25 -0
  127. package/lib/util/stream.d.ts +12 -0
  128. package/lib/util/stream.js +88 -0
  129. package/package.json +262 -6
  130. package/typings/faye/index.d.ts +16 -0
  131. package/typings/index.d.ts +1 -0
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2011 Shinichi Tomita <shinichi.tomita@gmail.com>;
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # jsforce
2
+
3
+ Salesforce API Library for JavaScript applications (both on web browser and Node.js)
4
+
5
+ ## Overview
6
+
7
+ JSforce (f.k.a. Node-Salesforce) is an isomorphic JavaScript Library utilizing Salesforce's API: It works both in the browser and with Node.js.
8
+
9
+ It capsulates the access to various APIs provided by Salesforce in asynchronous JavaScript function calls.
10
+
11
+ It also has command line interface (CLI) which gives interactive console (REPL), so you can learn the usage without hassle.
12
+
13
+ Supported Salesforce APIs are the following:
14
+
15
+ - REST API (SOQL, SOSL, describe, etc.)
16
+ - Apex REST
17
+ - Analytics API
18
+ - Bulk API
19
+ - Chatter API
20
+ - Metadata API
21
+ - SOAP API
22
+ - Streaming API
23
+ - Tooling API
24
+
25
+ ## Documentation
26
+
27
+ See documentation in <http://jsforce.github.io/> .
28
+
29
+ ## Releases
30
+
31
+ See [Releases](https://github.com/jsforce/jsforce/releases).
32
+
33
+ ## License
34
+
35
+ See [license](LICENSE) (MIT License).
36
+
37
+ ## Authors
38
+
39
+ - Shinichi Tomita <shinichi.tomita@gmail.com>
40
+
41
+ ## Notes
42
+
43
+ If you have any questions first file it on [issues](https://github.com/jsforce/jsforce/issues) before contacting authors via e-mail.
44
+
45
+ ## How to build/run tests:
46
+ See [DEVELOPING.md](./DEVELOPING.md)
47
+
48
+ ## Contributions
49
+
50
+ Your contributions are welcome: both by reporting issues on [GitHub issues](https://github.com/jsforce/jsforce/issues) or pull-requesting patches.
51
+
52
+ If you want to implement any additional features, to be added to JSforce to our master branch, which may or may not be merged please first check current [opening issues](https://github.com/jsforce/jsforce/issues?q=is%3Aopen) with milestones and confirm whether the feature is on road map or not.
53
+
54
+ If your feature implementation is brand-new or fixing unsupposed bugs in the library's test cases, please include additional test codes in the `test/` directory.
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import './typings';
2
+ import jsforce from './lib/index';
3
+ export * from './lib/index';
4
+ export default jsforce;
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./lib').default;
@@ -0,0 +1,2 @@
1
+ declare const _default: "2.0.0-beta.8";
2
+ export default _default;
package/lib/VERSION.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = '2.0.0-beta.8';
@@ -0,0 +1,509 @@
1
+ export type ReportDescribeResult = {
2
+ attributes: ReportAttributes;
3
+ reportTypeMetadata: ReportTypeMetadata;
4
+ reportExtendedMetadata: ReportExtendedMetadata;
5
+ reportMetadata: ReportMetadata;
6
+ };
7
+ export type ReportTypeMetadata = {
8
+ categories: ReportTypeCategory[];
9
+ dataTypeFilterOperatorMap: {
10
+ [name: string]: Array<{
11
+ name: string;
12
+ label: string;
13
+ }>;
14
+ };
15
+ dateGranularityInfos: Array<{
16
+ name: string;
17
+ label: string;
18
+ }>;
19
+ divisionInfo: {
20
+ defaultValue: string;
21
+ values: Array<{
22
+ label: string;
23
+ value: string;
24
+ }>;
25
+ } | null;
26
+ scopeInfo: {
27
+ defaultValue: string;
28
+ values: Array<{
29
+ allowsDivision: boolean;
30
+ label: string;
31
+ value: string;
32
+ }>;
33
+ };
34
+ standardDateFilterDurationGroups: StandardDateFilterDurationGroup[];
35
+ standardFilterInfos: string[] | null;
36
+ supportsJoinedFormat: boolean;
37
+ };
38
+ type StandardDateFilterDurationGroup = {
39
+ label: string;
40
+ standardDateFilterDurations: StandardDateFilterDuration[];
41
+ };
42
+ type StandardDateFilterDuration = {
43
+ endDate: string;
44
+ label: string;
45
+ startDate: string;
46
+ value: string;
47
+ };
48
+ type ReportTypeCategory = {
49
+ label: string;
50
+ columns: {
51
+ [name: string]: ReportTypeColumn;
52
+ };
53
+ };
54
+ type ReportTypeColumn = {
55
+ allowedInCustomDetailFormula: boolean;
56
+ bucketable: boolean;
57
+ dataType: string;
58
+ entityColumnName: string;
59
+ fieldToFieldFilterable: boolean;
60
+ filterValues: Array<{
61
+ name: string;
62
+ label: string;
63
+ }>;
64
+ filterable: boolean;
65
+ isCustom: boolean;
66
+ isLookup: boolean;
67
+ label: string;
68
+ maxLength: number | null;
69
+ uniqueCountable: boolean;
70
+ };
71
+ type ReportAttributes = {
72
+ type: 'Report';
73
+ describeUrl: string;
74
+ instancesUrl: string;
75
+ reportName: string;
76
+ reportId: string;
77
+ };
78
+ type ReportInstanceAttributes = {
79
+ type: 'ReportInstance';
80
+ completionDate: string | null;
81
+ id: string;
82
+ ownerId: string;
83
+ reportId: string;
84
+ reportName: string;
85
+ requestDate: string;
86
+ status: 'New' | 'Success' | 'Running' | 'Error';
87
+ };
88
+ type ReportResult<Attributes> = {
89
+ attributes: Attributes;
90
+ allData: boolean;
91
+ factMap: {
92
+ [key: string]: FactMap;
93
+ };
94
+ groupingsAcross: {
95
+ groupings: Grouping[];
96
+ } | null;
97
+ groupingsDown: {
98
+ groupings: Grouping[];
99
+ } | null;
100
+ hasDetailRows: boolean;
101
+ reportExtendedMetadata: ReportExtendedMetadata;
102
+ reportMetadata: ReportMetadata;
103
+ };
104
+ export type ReportExecuteResult = ReportResult<ReportAttributes>;
105
+ export type ReportRetrieveResult = ReportResult<ReportInstanceAttributes>;
106
+ type FactMap = {
107
+ aggregates: Array<{
108
+ label: string;
109
+ value: number;
110
+ }>;
111
+ rows?: Array<{
112
+ dataCells: Array<{
113
+ label: string;
114
+ value: any;
115
+ }>;
116
+ }>;
117
+ };
118
+ type Grouping = {
119
+ key: string;
120
+ label: string;
121
+ value: null | string;
122
+ groupings: Grouping[];
123
+ dategroupings?: any[];
124
+ };
125
+ export type ReportAsyncResult = {
126
+ id: string;
127
+ status: 'New' | 'Success' | 'Running' | 'Error';
128
+ url: string;
129
+ ownerId: string;
130
+ completionDate: string;
131
+ hasDetailRows: boolean;
132
+ requestDate: string;
133
+ };
134
+ export type ReportExtendedMetadata = {
135
+ aggregateColumnInfo: {
136
+ [name: string]: AggregateColumnInfo;
137
+ };
138
+ detailColumnInfo: {
139
+ [name: string]: DetailColumnInfo;
140
+ };
141
+ groupingColumnInfo: {
142
+ [name: string]: GroupingColumnInfo;
143
+ };
144
+ historicalColumnInfo?: {
145
+ [name: string]: HistoricalColumnInfo;
146
+ };
147
+ };
148
+ type AggregateColumnInfo = {
149
+ dataType: string;
150
+ label: string;
151
+ downGroupingContext?: string | null;
152
+ acrossGroupingContext?: string | null;
153
+ };
154
+ type DetailColumnInfo = {
155
+ dataType: string;
156
+ entityColumnName: string;
157
+ filterValues: Array<{
158
+ label: string;
159
+ name: string;
160
+ }>;
161
+ filterable: boolean;
162
+ isLookup: boolean;
163
+ label: string;
164
+ uniqueCountable: boolean;
165
+ };
166
+ type GroupingColumnInfo = {
167
+ dataType: string;
168
+ groupingLevel: number;
169
+ label: string;
170
+ };
171
+ type HistoricalColumnInfo = {
172
+ baseField: string;
173
+ historicalColumn: string;
174
+ historicalSnapshotDate: string;
175
+ isHistoricalChange: boolean;
176
+ };
177
+ export type ReportMetadata = {
178
+ aggregates: string[];
179
+ buckets: Bucket[];
180
+ chart: Chart[] | null;
181
+ crossFilters: CrossFilter[];
182
+ customDetailFormula: CustomDetailFormula[];
183
+ customSummaryFormula: CustomSummaryFormula[];
184
+ currency: string | null;
185
+ dashboardSetting: {
186
+ [name: string]: string;
187
+ } | null;
188
+ description: string | null;
189
+ detailColumns: string[];
190
+ developerName: string;
191
+ division: string | null;
192
+ folderId: string | null;
193
+ groupingsAcross: GroupingsAcross[];
194
+ groupingsDown: GroupingsDownElement[];
195
+ hasDetailRows: boolean;
196
+ hasRecordCount: boolean;
197
+ historicalSnapshotDates: string[];
198
+ id: string;
199
+ name: string;
200
+ presentationOptions: {
201
+ hasStackedSummaries: boolean;
202
+ historicalColumns: {
203
+ [name: string]: {
204
+ decreaseIsPositive: boolean;
205
+ showChanges: boolean;
206
+ };
207
+ };
208
+ };
209
+ reportBooleanFilter: string | null;
210
+ reportFilters: ReportFilterDetail[];
211
+ reportFormat: 'TABULAR' | 'SUMMARY' | 'MATRIX' | 'MULTI_BLOCK';
212
+ reportType: {
213
+ label: string;
214
+ type: string;
215
+ };
216
+ scope: string;
217
+ showGrandTotal: boolean;
218
+ showSubtotals: boolean;
219
+ sortBy: Array<{
220
+ sortColumn: string;
221
+ sortOrder: string;
222
+ }>;
223
+ standardDateFilter: StandardDateFilter;
224
+ standardFilters: StandardFilter[];
225
+ supportsRoleHierarchy: boolean;
226
+ topRows?: {
227
+ rowLimit: number;
228
+ direction: string;
229
+ } | null;
230
+ userOrHierarchyFilterId: string | null;
231
+ };
232
+ type Bucket = {
233
+ bucketType: string;
234
+ devloperName: string;
235
+ label: string;
236
+ nullTreatedAsZero: boolean;
237
+ otherBucketLabel: string | null;
238
+ sourceColumnName: string;
239
+ values: BucketFieldValue[];
240
+ };
241
+ type BucketFieldValue = {
242
+ label: string;
243
+ sourceDimensionValues: string[];
244
+ rangeUpperBound: number | null;
245
+ };
246
+ type CrossFilter = {
247
+ criteria: ReportFilterDetail[];
248
+ includesObject: boolean;
249
+ primaryEntityField: string;
250
+ relatedEntity: string;
251
+ relatedEntityJoinField: string;
252
+ };
253
+ type ReportFilterOperator = 'equals' | 'notEqual' | 'lessThan' | 'greaterThan' | 'lessOrEqual' | 'greaterOrEqual' | 'contains' | 'notContain' | 'startsWith' | 'includes' | 'excludes' | 'within';
254
+ type ReportFilterDetail = {
255
+ column: string;
256
+ filterType?: 'fieldToField' | 'fieldValue' | null;
257
+ isRunPageEditable?: boolean;
258
+ operator: ReportFilterOperator;
259
+ value: string;
260
+ };
261
+ type Chart = {
262
+ chartType: string;
263
+ groupings: string;
264
+ hasLegend: boolean;
265
+ showChartValues: boolean;
266
+ summaries: string[];
267
+ summaryAxisLocations: 'X' | 'Y';
268
+ title: string;
269
+ };
270
+ type CustomDetailFormula = {
271
+ decimalPlaces: number | null;
272
+ description: string | null;
273
+ formula: string;
274
+ formulaType: 'date' | 'datetime' | 'number' | 'text';
275
+ label: string;
276
+ };
277
+ type CustomSummaryFormula = {
278
+ label: string;
279
+ description: string | null;
280
+ formulaType: string;
281
+ decimalPlaces: number | null;
282
+ downGroup: string;
283
+ downGroupType: 'all' | 'custom' | 'grand_total';
284
+ acrossGroup: string;
285
+ acrossGroupType: 'all' | 'custom' | 'grand_total';
286
+ formula: string;
287
+ };
288
+ type GroupingsAcross = {
289
+ name: string;
290
+ sortOrder: string;
291
+ dateGranularity: string;
292
+ };
293
+ type GroupingsDownElement = {
294
+ dateGranularity: string;
295
+ name: string;
296
+ sortAggregate: string | null;
297
+ sortOrder: string;
298
+ };
299
+ type StandardDateFilter = {
300
+ column: string;
301
+ durationValue: string;
302
+ endDate: Date | null;
303
+ startDate: Date | null;
304
+ };
305
+ type StandardFilter = {
306
+ name: string;
307
+ value: string;
308
+ };
309
+ type ComponentStatus = {
310
+ dataStatus: 'NODATA' | 'DATA' | 'ERROR';
311
+ errorCode: string | null;
312
+ errorMessage: string | null;
313
+ errorSeverity: 'Error' | 'Warning' | null;
314
+ refreshDate: string | null;
315
+ refreshStatus: 'IDLE' | 'RUNNING';
316
+ };
317
+ export type ReportInfo = {
318
+ id: string;
319
+ name: string;
320
+ url: string;
321
+ describeUrl: string;
322
+ instancesUrl: string;
323
+ };
324
+ export type ReportInstanceInfo = {
325
+ id: string;
326
+ status: 'New' | 'Success' | 'Running' | 'Error';
327
+ url: string;
328
+ ownerId: string;
329
+ hasDetailRows: boolean;
330
+ completionDate: string;
331
+ requestDate: string;
332
+ };
333
+ export type DashboardMetadata = {
334
+ attributes: {
335
+ dashboardId: string;
336
+ dashboardName: string;
337
+ statusUrl: string;
338
+ type: string;
339
+ };
340
+ canChangeRunningUser?: boolean;
341
+ canUseStickyFilter?: boolean;
342
+ chartTheme?: 'light' | 'dark';
343
+ colorPalette?: string;
344
+ components: DashboardComponent[];
345
+ description: string | null;
346
+ developerName: string;
347
+ dashboardType?: 'SpecifiedUser' | 'LoggedInUser' | 'MyTeamUser';
348
+ filters: DashboardFilter[];
349
+ folderId: string;
350
+ id: string;
351
+ layout: DashboardLayout;
352
+ maxFilterOptions?: number;
353
+ name: string;
354
+ runningUser: {
355
+ displayName: string;
356
+ id: string;
357
+ };
358
+ };
359
+ type DashboardComponent = {
360
+ componentData: number;
361
+ footer: string | null;
362
+ header: string | null;
363
+ id: string;
364
+ properties: DashboardComponentProperties;
365
+ reportId: string;
366
+ title: null;
367
+ type: string;
368
+ };
369
+ type DashboardComponentProperties = ReportComponentProperties | VisualforceComponentProperties;
370
+ type ReportComponentVisualizationType = 'Bar' | 'Column' | 'Donut' | 'Funnel' | 'Gauge' | 'Line' | 'Metric' | 'Pie' | 'Scatter' | 'Table' | 'FlexTable';
371
+ type ReportComponentProperties = {
372
+ aggregates: GroupingElement[];
373
+ autoSelectColumns: boolean;
374
+ drillUrl?: string;
375
+ filterColumns: any[];
376
+ groupings: GroupingElement[] | null;
377
+ maxRows: number | null;
378
+ reportFormat?: string;
379
+ sort: SortElement | null;
380
+ useReportChart: boolean;
381
+ visualizationProperties: DashboardComponentVisualizationProperties;
382
+ visualizationType: ReportComponentVisualizationType;
383
+ };
384
+ type GroupingElement = {
385
+ inheritedReportSort?: string;
386
+ name: string;
387
+ sortAggregate?: string | null;
388
+ sortOrder?: string | null;
389
+ };
390
+ type SortElement = {
391
+ inheritedReportSort?: string;
392
+ column: string;
393
+ sortAggregate?: string | null;
394
+ sortOrder?: string | null;
395
+ };
396
+ type VisualforceComponentProperties = {
397
+ pageName: string;
398
+ height: number;
399
+ };
400
+ type DashboardComponentVisualizationProperties = ChartComponentVisualizationProperties | TableComponentVisualizationProperties | FlexTableComponentVisualizationProperties | MetricComponentVisualizationProperties | GaugeComponentVisualizationProperties;
401
+ type ChartComponentVisualizationProperties = {
402
+ axisRange: string;
403
+ decimalPrecision: number;
404
+ displayUnits: ComponentDisplayUnit | null;
405
+ drillURL: string | null;
406
+ groupByType: string;
407
+ legendPosition: 'bottom' | 'right' | 'none';
408
+ showValues: boolean;
409
+ };
410
+ type TableComponentVisualizationProperties = {
411
+ breakPoints: BreakPoint[];
412
+ displayUnits: ComponentDisplayUnit | null;
413
+ drillURL: string | null;
414
+ tableColumns: TableColumn[];
415
+ };
416
+ type FlexTableComponentVisualizationProperties = {
417
+ displayUnits: ComponentDisplayUnit | null;
418
+ drillURL: string | null;
419
+ flexTableType: 'tabular' | 'summary';
420
+ showChatterPhotos?: boolean;
421
+ tableColumns: TableColumn[];
422
+ };
423
+ type MetricComponentVisualizationProperties = {
424
+ breakPoints: BreakPoint[];
425
+ displayUnits: ComponentDisplayUnit | null;
426
+ drillURL: string | null;
427
+ metricLabel: string;
428
+ };
429
+ type GaugeComponentVisualizationProperties = {
430
+ breakPoints: BreakPoint[];
431
+ displayUnits: ComponentDisplayUnit | null;
432
+ drillURL: string | null;
433
+ showPercentages: boolean;
434
+ showTotal: boolean;
435
+ };
436
+ type ComponentDisplayUnit = 'whole' | 'auto' | 'hundreds' | 'thousands' | 'millions' | 'billions' | 'trillions';
437
+ type BreakPoint = {
438
+ aggregateName: string;
439
+ breaks: Array<{
440
+ color: string;
441
+ lowerBound: number;
442
+ upperBound: number;
443
+ }>;
444
+ };
445
+ type TableColumn = {
446
+ column: string;
447
+ isPercent: boolean;
448
+ scale: number | null;
449
+ showTotal: boolean;
450
+ type: 'detail' | 'aggregate' | 'grouping';
451
+ };
452
+ type DashboardLayout = {
453
+ gridLayout: true;
454
+ components: DashboardLayoutComponent[];
455
+ numColumns: number;
456
+ rowHeight: number;
457
+ } | {
458
+ gridLayout: false;
459
+ columns: Array<{
460
+ components: number[];
461
+ }>;
462
+ };
463
+ type DashboardLayoutComponent = {
464
+ colspan: number;
465
+ column: number;
466
+ row: number;
467
+ rowspan: number;
468
+ };
469
+ type DashboardFilter = {
470
+ errorMessage: string | null;
471
+ name: string;
472
+ options: DashboardFilterOption[];
473
+ selectedOption: null;
474
+ };
475
+ type DashboardFilterOperation = 'equals' | 'notEqual' | 'lessThan' | 'greaterThan' | 'lessOrEqual' | 'greaterOrEqual' | 'contains' | 'notContain' | 'startsWith' | 'includes' | 'excludes' | 'within' | 'between';
476
+ type DashboardFilterOption = {
477
+ alias: string | null;
478
+ id: string;
479
+ operation: DashboardFilterOperation;
480
+ value: string | null;
481
+ startValue: string | null;
482
+ endValue: string | null;
483
+ };
484
+ export type DashboardResult = {
485
+ componentData: ComponentData[];
486
+ dashboardMetadata: DashboardMetadata;
487
+ };
488
+ type ComponentData = {
489
+ componentId: string;
490
+ reportResult: ReportExecuteResult;
491
+ status: ComponentStatus;
492
+ };
493
+ export type DashboardStatusResult = {
494
+ componentStatus: Array<{
495
+ componentId: string;
496
+ refreshDate: string | null;
497
+ refreshStatus: string;
498
+ }>;
499
+ };
500
+ export type DashboardRefreshResult = {
501
+ statusUrl: string;
502
+ };
503
+ export type DashboardInfo = {
504
+ id: string;
505
+ name: string;
506
+ statusUrl: string;
507
+ url: string;
508
+ };
509
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });