@salesforce/lds-adapters-analytics-wave 1.466.0 → 1.468.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 (26) hide show
  1. package/dist/es/es2018/analytics-wave.js +5643 -4239
  2. package/dist/es/es2018/types/src/generated/adapters/archiveAssets.d.ts +16 -0
  3. package/dist/es/es2018/types/src/generated/adapters/deleteComponent.d.ts +14 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getPlatformAuditCheckFindings.d.ts +34 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
  7. package/dist/es/es2018/types/src/generated/resources/deleteWaveDashboardsByDashboardIdOrApiName.d.ts +12 -0
  8. package/dist/es/es2018/types/src/generated/resources/getWaveDashboardsByDashboardIdOrApiName.d.ts +15 -0
  9. package/dist/es/es2018/types/src/generated/resources/getWavePlatformAuditChecksFindingsByAuditIdAndCheckId.d.ts +24 -0
  10. package/dist/es/es2018/types/src/generated/resources/postWaveAssetsArchive.d.ts +13 -0
  11. package/dist/es/es2018/types/src/generated/types/AnalyticsAssetArchivalInputRepresentation.d.ts +31 -0
  12. package/dist/es/es2018/types/src/generated/types/AnalyticsAssetArchivalResultRepresentation.d.ts +43 -0
  13. package/dist/es/es2018/types/src/generated/types/AnalyticsAssetsArchivalInputRepresentation.d.ts +32 -0
  14. package/dist/es/es2018/types/src/generated/types/AnalyticsAssetsArchivalInputWrapperRepresentation.d.ts +29 -0
  15. package/dist/es/es2018/types/src/generated/types/AnalyticsAssetsArchivalOutputRepresentation.d.ts +53 -0
  16. package/dist/es/es2018/types/src/generated/types/DependencyRepresentation.d.ts +7 -2
  17. package/dist/es/es2018/types/src/generated/types/PlatformAuditCheckFindingRepresentation.d.ts +44 -0
  18. package/dist/es/es2018/types/src/generated/types/PlatformAuditCheckFindingsRepresentation.d.ts +36 -0
  19. package/dist/es/es2018/types/src/generated/types/PlatformAuditCheckRepresentation.d.ts +1 -1
  20. package/dist/es/es2018/types/src/generated/types/PlatformAuditUrgencyRepresentation.d.ts +3 -3
  21. package/dist/es/es2018/types/src/generated/types/WaveUserRepresentation.d.ts +4 -1
  22. package/dist/es/es2018/types/src/raml-artifacts/adapters/archiveAssets/buildNetworkSnapshot.d.ts +4 -0
  23. package/package.json +3 -3
  24. package/sfdc/index.js +7588 -6166
  25. package/src/raml/api.raml +298 -5
  26. package/src/raml/luvio.raml +30 -0
package/src/raml/api.raml CHANGED
@@ -177,6 +177,99 @@ types:
177
177
  value:
178
178
  description: The value of the advanced property
179
179
  type: string # TODO: hand rolled
180
+ AnalyticsAssetArchivalInputRepresentation: # TODO Hand-rolled W-24741929. Regenerate from Connect api.raml.
181
+ description: An asset to archive.
182
+ type: object
183
+ properties:
184
+ id:
185
+ description: The 18 character asset ID.
186
+ type: string
187
+ type:
188
+ description: The type of the asset.
189
+ type: string
190
+ enum:
191
+ - dashboard
192
+ - lens
193
+ AnalyticsAssetArchivalResultRepresentation: # TODO Hand-rolled W-24741929. Regenerate from Connect api.raml.
194
+ description: The result of archiving a single asset.
195
+ type: object
196
+ properties:
197
+ archived:
198
+ description: Whether the asset is archived after the action.
199
+ type: boolean | nil
200
+ required: false
201
+ errorCode:
202
+ description: The error code, if the action failed for this asset.
203
+ type: string | nil
204
+ required: false
205
+ id:
206
+ description: The 18 character asset ID.
207
+ type: string | nil
208
+ required: false
209
+ message:
210
+ description: The error message, if the action failed for this asset.
211
+ type: string | nil
212
+ required: false
213
+ status:
214
+ description: The status of the action for this asset.
215
+ type: string | nil
216
+ required: false
217
+ type:
218
+ description: The type of the asset.
219
+ type: string | nil
220
+ required: false
221
+ AnalyticsAssetsArchivalInputRepresentation: # TODO Hand-rolled W-24741929. Regenerate from Connect api.raml.
222
+ description: Input representation for archiving assets.
223
+ type: object
224
+ properties:
225
+ archived:
226
+ description: True archives the assets. The server also accepts false, which restores them; LDS callers only archive (restore is done in Analytics Studio).
227
+ type: boolean
228
+ assets:
229
+ description: The assets to archive.
230
+ type: array
231
+ items:
232
+ type: AnalyticsAssetArchivalInputRepresentation
233
+ AnalyticsAssetsArchivalInputWrapperRepresentation: # TODO Hand-rolled W-8334626 W-24741929
234
+ description: Wrapper for the assets archival input representation
235
+ type: object
236
+ properties:
237
+ archivalRequest:
238
+ type: AnalyticsAssetsArchivalInputRepresentation
239
+ description: Assets archival input representation
240
+ AnalyticsAssetsArchivalOutputRepresentation: # TODO Hand-rolled W-24741929. Regenerate from Connect api.raml.
241
+ description: The result of archiving assets.
242
+ type: object
243
+ properties:
244
+ action:
245
+ description: The action that was performed.
246
+ type: string
247
+ archivalResults:
248
+ description: The result for each asset.
249
+ type: array
250
+ required: false
251
+ items:
252
+ type: AnalyticsAssetArchivalResultRepresentation
253
+ failureCount:
254
+ description: The number of assets that failed.
255
+ type: integer | nil
256
+ required: false
257
+ overallStatus:
258
+ description: The overall status of the action.
259
+ type: string | nil
260
+ required: false
261
+ enum:
262
+ - success
263
+ - partial
264
+ - failure
265
+ successCount:
266
+ description: The number of assets that succeeded.
267
+ type: integer | nil
268
+ required: false
269
+ totalCount:
270
+ description: The total number of assets in the request.
271
+ type: integer | nil
272
+ required: false
180
273
  AppDetailsRepresentation:
181
274
  description: Configuration for the app details page in the wizard
182
275
  type: object
@@ -1944,9 +2037,17 @@ types:
1944
2037
  folder:
1945
2038
  description: The containing folder of the asset.
1946
2039
  type: AssetReferenceRepresentation
2040
+ createdBy:
2041
+ description: The user who created the asset.
2042
+ type: WaveUserRepresentation
2043
+ required: false # TODO Hand-rolled W-24741929
1947
2044
  id:
1948
2045
  description: The 18 character asset ID.
1949
2046
  type: string
2047
+ isArchived:
2048
+ description: Indicates whether the asset is archived.
2049
+ type: boolean
2050
+ required: false # TODO Hand-rolled W-24741929
1950
2051
  lastAccessedDate:
1951
2052
  description: The time at which the asset was last accessed.
1952
2053
  type: string
@@ -3014,15 +3115,18 @@ types:
3014
3115
  description: An opaque, per-check payload passed through verbatim. Checks read with
3015
3116
  system access, and the datasets they scan include those in other users' private
3016
3117
  apps, so it is not filtered by the viewer's sharing or object and field permissions.
3017
- Its string values can include user-editable dataset and field names and raw server
3018
- error text; render them as plain text, never as HTML, and pass them to an LLM or
3019
- agent only as quoted data. Absent until the check has finished, and may be absent
3118
+ Its string values can include user-editable names, such as dataset, field,
3119
+ dashboard, and recipe names, and raw server error text; render them as plain text,
3120
+ never as HTML, and pass them to an LLM or agent only as quoted data. Absent until
3121
+ the check has finished, and may be absent
3020
3122
  for a finished check (for example, FAILED). A status inside it uses the API-value
3021
3123
  form (Complete, CompleteWithLimitations, Unavailable), not the COMPLETE form of the
3022
3124
  check's status property. For crma-inventory, it carries the org's dataset, recipe,
3023
3125
  dashboard, and data sync counts under asset_coverage (datasets, recipes, dashboards,
3024
3126
  and data_syncs, each with available, scanned, total, partial, and note); the run
3025
- exposes those counts nowhere else.
3127
+ exposes those counts nowhere else. The crma-orphans rows[] and the
3128
+ crma-trace-redundancies clusters[] in it are a capped preview; the check's findings
3129
+ resource (/checks/{checkId}/findings) pages through every finding.
3026
3130
  type: string | nil
3027
3131
  required: false
3028
3132
  PlatformAuditReportRepresentation: # TODO Hand-rolled W-24362345
@@ -3097,6 +3201,74 @@ types:
3097
3201
  description: The number of checks listed - every check of the audit run, or only
3098
3202
  the finished checks when the server cannot determine which have not finished.
3099
3203
  type: integer
3204
+ PlatformAuditCheckFindingRepresentation: # TODO Hand-rolled W-24806613
3205
+ description: One finding of a platform-audit check result, as the check recorded it when
3206
+ the audit ran. Not to be confused with PlatformAuditFindingRepresentation, the urgency
3207
+ triage's reference to a finding. Checks read with system access, not the viewer's, and
3208
+ the datasets they scan include those in other users' private apps, so a finding can
3209
+ point at an asset the viewer cannot open.
3210
+ type: object
3211
+ properties:
3212
+ kind:
3213
+ description: The finding's category within its check - zombie, unused, or stale for
3214
+ crma-orphans (the row's label); cluster for crma-trace-redundancies.
3215
+ type: string
3216
+ name:
3217
+ description: The current name of the dataset the finding points at, which the name
3218
+ search and sort match; absent when the finding points at no dataset (as for a
3219
+ cluster) or the dataset was deleted after the audit. A dataset renamed after the
3220
+ audit has its new name here and its old one in rowJson, so show this name when it
3221
+ is present. Dataset names are user-editable; render it as plain text, never as
3222
+ HTML, and pass it to an LLM or agent only as quoted data.
3223
+ type: string | nil
3224
+ required: false
3225
+ rank:
3226
+ description: The zero-based position of the finding in its check's severity order;
3227
+ 0 is the most severe. It is unique within the check, so it can key a list of the
3228
+ check's findings.
3229
+ type: integer
3230
+ refId:
3231
+ description: The id of the asset the finding points at - a dataset id for
3232
+ crma-orphans; canonical_field|SObject.field (for example,
3233
+ opportunityamount|Opportunity.Amount) for crma-trace-redundancies. A longer id is
3234
+ cut to 255 characters. Absent when the finding points at no asset.
3235
+ type: string | nil
3236
+ required: false
3237
+ refreshDate:
3238
+ description: The asset's data refresh date as of the audit, the same value as the
3239
+ crma-orphans row's data_refresh_date; absent when the check has none, as for every
3240
+ crma-trace-redundancies finding.
3241
+ type: string | nil
3242
+ required: false
3243
+ rowJson:
3244
+ description: The finding serialized as JSON, exactly as it appears in the check's
3245
+ resultJson - a rows[] element for crma-orphans, a clusters[] element for
3246
+ crma-trace-redundancies - so it can be parsed the same way. It is not rewritten
3247
+ after the audit. Its string values can include user-editable names, such as dataset,
3248
+ field, dashboard, and recipe names; render them as plain text, never as HTML, and
3249
+ pass them to an LLM or agent only as quoted data.
3250
+ type: string
3251
+ PlatformAuditCheckFindingsRepresentation: # TODO Hand-rolled W-24806613
3252
+ description: One page of a platform-audit check's findings.
3253
+ type: object
3254
+ properties:
3255
+ findings:
3256
+ description: The findings on this page, in the requested order. A page can hold
3257
+ fewer than pageSize findings even when it has a nextPageUrl, because a finding
3258
+ deleted or made inaccessible between the count and the read is skipped.
3259
+ type: array
3260
+ items:
3261
+ type: PlatformAuditCheckFindingRepresentation
3262
+ nextPageUrl:
3263
+ description: The URL of the next page, with the same pageSize, kinds, q, sort, and
3264
+ order; absent on the last page. Pass the value of its page query parameter as the
3265
+ page parameter, with the same other parameters, to get the next page.
3266
+ type: string | nil
3267
+ required: false
3268
+ totalSize:
3269
+ description: The number of the check's findings that match the kinds filter and the
3270
+ q search, across every page.
3271
+ type: integer
3100
3272
  PlatformAuditFindingRepresentation: # TODO Hand-rolled W-24314623
3101
3273
  description: One finding surfaced by the aggregator's urgency triage, referencing the
3102
3274
  asset and check it came from. Findings are not guaranteed to be unique; two
@@ -3139,7 +3311,8 @@ types:
3139
3311
  check contributes only the findings it surfaces, and the number it surfaces is capped
3140
3312
  (currently at most 25 datasets per label for crma-orphans and 10 clusters for
3141
3313
  crma-trace-redundancies; the caps can change), so list lengths are not org-wide
3142
- counts.
3314
+ counts. The check's findings resource (/checks/{checkId}/findings) lists every
3315
+ finding.
3143
3316
  type: object
3144
3317
  properties:
3145
3318
  criticalNow:
@@ -3790,6 +3963,8 @@ types:
3790
3963
  enum:
3791
3964
  - dataflow
3792
3965
  - recipe
3966
+ - dashboard
3967
+ - lens
3793
3968
  RecycleBinCollectionRepresentation: # TODO Hand-rolled W-24090908. New CRM Analytics Data Platform Recycle Bin endpoint; regenerate from Connect api.raml once shipped.
3794
3969
  description: A collection of soft-deleted CRM Analytics Data Platform assets.
3795
3970
  type: object
@@ -5925,6 +6100,10 @@ types:
5925
6100
  description: The 18 character user ID.
5926
6101
  type: string
5927
6102
  required: false # TODO Hand-rolled W-8253396
6103
+ isActive:
6104
+ description: Whether the user is active. Only returned by APIs that look up the user's status.
6105
+ type: boolean
6106
+ required: false # TODO Hand-rolled W-24741929
5928
6107
  name:
5929
6108
  description: The name of the user.
5930
6109
  type: string
@@ -8063,6 +8242,82 @@ types:
8063
8242
  description: The check's name (e.g. crma-orphans). A check has no separate id.
8064
8243
  type: string
8065
8244
  required: true
8245
+ /platform-audit/{auditId}/checks/{checkId}/findings: # TODO Hand-rolled W-24806613
8246
+ get:
8247
+ description: Get one page of a platform-audit check result's findings. Unlike the
8248
+ check's resultJson, whose rows[] or clusters[] are a capped preview, this lists every
8249
+ finding of the check, and the kinds filter, the q search, and the sort apply to the
8250
+ whole list, not one page. Returns 404 when the run or the check does not exist; as for
8251
+ the check resource, that includes an IN_PROGRESS, NOT_FINISHED, or CANCELLED check. A
8252
+ check without findings, such as crma-inventory or a check of a run from before
8253
+ findings were recorded, returns an empty page with totalSize 0. A page token past the
8254
+ end returns an empty page with no nextPageUrl. Returns 400, naming the parameter, for
8255
+ a malformed page token or an invalid pageSize, kinds, q, sort, or order.
8256
+ responses:
8257
+ '200':
8258
+ description: Success
8259
+ body:
8260
+ application/json:
8261
+ type: PlatformAuditCheckFindingsRepresentation
8262
+ queryParameters:
8263
+ kinds:
8264
+ description: Return only these kinds - zombie, unused, or stale for crma-orphans;
8265
+ cluster for crma-trace-redundancies. Matched ignoring case. A kind the check never
8266
+ records matches nothing. Default - every kind.
8267
+ type: array
8268
+ required: false
8269
+ items:
8270
+ type: string
8271
+ enum:
8272
+ - zombie
8273
+ - unused
8274
+ - stale
8275
+ - cluster
8276
+ (oas-collectionFormat): csv
8277
+ order:
8278
+ description: The sort order, asc or desc, matched ignoring case. Default - asc.
8279
+ type: string
8280
+ required: false
8281
+ enum:
8282
+ - asc
8283
+ - desc
8284
+ page:
8285
+ description: The opaque token of the page to return, the page query parameter of
8286
+ the previous page's nextPageUrl. It carries only the position in the list, so pass
8287
+ the same pageSize, kinds, q, sort, and order with it. Default - the first page.
8288
+ type: string
8289
+ required: false
8290
+ pageSize:
8291
+ description: The number of findings per page, 1 to 200. Default - 25.
8292
+ type: integer
8293
+ required: false
8294
+ q:
8295
+ description: Return only findings whose name contains this text, ignoring case -
8296
+ for a dataset finding, the dataset's current name or API name (a dataset deleted
8297
+ after the audit has neither); for a cluster, its refId. Trimmed; at most 255
8298
+ characters, and a blank one is no search. Default - no search.
8299
+ type: string
8300
+ required: false
8301
+ sort:
8302
+ description: The sort key, matched ignoring case - rank (most severe first in asc
8303
+ order), refreshDate, or name (a dataset finding's current name or a cluster's
8304
+ refId, ignoring case, with findings whose dataset was deleted after the audit last
8305
+ in either order). Ties are broken by rank, ascending. Default - rank.
8306
+ type: string
8307
+ required: false
8308
+ enum:
8309
+ - rank
8310
+ - refreshDate
8311
+ - name
8312
+ uriParameters:
8313
+ auditId:
8314
+ description: The ID of the platform audit run (15 or 18 characters).
8315
+ type: string
8316
+ required: true
8317
+ checkId:
8318
+ description: The check's name (e.g. crma-orphans). A check has no separate id.
8319
+ type: string
8320
+ required: true
8066
8321
  /platform-audit/{auditId}/report: # TODO Hand-rolled W-24362345
8067
8322
  get:
8068
8323
  description: Resolve the audit run's already-generated PDF report and return a
@@ -8326,6 +8581,44 @@ types:
8326
8581
  assetId:
8327
8582
  type: string
8328
8583
  required: true
8584
+ # TODO Hand-rolled W-24741929. Archive (move to the Recycle Bin) dashboards and lenses.
8585
+ # Answers 201 even when some assets fail, so callers must check failureCount.
8586
+ /assets/archive:
8587
+ post:
8588
+ description: Archive assets.
8589
+ responses:
8590
+ '201':
8591
+ description: Success
8592
+ body:
8593
+ application/json:
8594
+ type: AnalyticsAssetsArchivalOutputRepresentation
8595
+ body:
8596
+ application/json:
8597
+ type: AnalyticsAssetsArchivalInputWrapperRepresentation
8598
+ (oas-body-name): archivalRequest
8599
+ # TODO Hand-rolled W-24741929. The get is the GET-by-id sibling luvio requires so the
8600
+ # void deleteComponent adapter can evict the cached record by key; no getDashboard adapter is exposed.
8601
+ # The real GET returns DashboardRepresentation; BaseWaveAssetRepresentation is used only for the key.
8602
+ # Components are deleted through this dashboards endpoint (they use 0FK ids), as Analytics Studio does.
8603
+ # The server doesn't check the type: a dashboard id passed here is permanently deleted, not archived.
8604
+ /dashboards/{dashboardIdOrApiName}:
8605
+ get:
8606
+ description: Get a dashboard by ID or API name.
8607
+ responses:
8608
+ '200':
8609
+ description: Success
8610
+ body:
8611
+ application/json:
8612
+ type: BaseWaveAssetRepresentation
8613
+ delete:
8614
+ description: Permanently delete a dashboard component. Only pass component ids; any dashboard id is deleted too.
8615
+ responses:
8616
+ '200':
8617
+ description: Success
8618
+ uriParameters:
8619
+ dashboardIdOrApiName:
8620
+ type: string
8621
+ required: true
8329
8622
  /replicatedDatasets:
8330
8623
  get:
8331
8624
  description: Get a list of all Replicated Datasets.
@@ -10,6 +10,11 @@ uses:
10
10
  types:
11
11
  ActionCollectionRepresentation:
12
12
  (luvio.ttl): 300
13
+ AnalyticsAssetsArchivalOutputRepresentation:
14
+ (luvio.key):
15
+ # This representation is only used in the response of an RPC like endpoint
16
+ # Use action as key since we won't look up this data
17
+ id: action
13
18
  BaseWaveAssetRepresentation:
14
19
  (luvio.ttl): 5000
15
20
  (luvio.key):
@@ -62,6 +67,13 @@ types:
62
67
  (luvio.ttl): 300
63
68
  PlatformAuditCheckCollectionRepresentation: # TODO Hand-rolled W-24314623
64
69
  (luvio.ttl): 300
70
+ # No (luvio.key) on either, for the same reason as PlatformAuditCheckRepresentation: the
71
+ # response has no auditId/checkId to key on, so getPlatformAuditCheckFindings caches each
72
+ # page by its request (path and query params), and each page is a separate entry.
73
+ PlatformAuditCheckFindingRepresentation: # TODO Hand-rolled W-24806613
74
+ (luvio.ttl): 300
75
+ PlatformAuditCheckFindingsRepresentation: # TODO Hand-rolled W-24806613
76
+ (luvio.ttl): 300
65
77
  PlatformAuditFindingRepresentation: # TODO Hand-rolled W-24314623
66
78
  (luvio.ttl): 300
67
79
  PlatformAuditUrgencyRepresentation: # TODO Hand-rolled W-24314623
@@ -387,6 +399,10 @@ types:
387
399
  get:
388
400
  (luvio.adapter):
389
401
  name: getPlatformAuditCheck
402
+ /platform-audit/{auditId}/checks/{checkId}/findings: # TODO Hand-rolled W-24806613
403
+ get:
404
+ (luvio.adapter):
405
+ name: getPlatformAuditCheckFindings
390
406
  /platform-audit/{auditId}/report: # TODO Hand-rolled W-24362345
391
407
  # No (luvio.key): the GET response is a PlatformAuditReportReferenceRepresentation,
392
408
  # which has no auditId field to key on (same reasoning as getPlatformAuditCheck
@@ -475,6 +491,20 @@ types:
475
491
  name: softDeleteAsset
476
492
  (luvio.key):
477
493
  id: urlParams.assetId
494
+ # archiveAssets is an imperative POST that archives dashboards and lenses (restore is done
495
+ # in Analytics Studio). deleteComponent is a void DELETE of a dashboard component; its cache
496
+ # key comes from the GET in api.raml. It hard-deletes any dashboard id, so pass component ids
497
+ # only. See W-24741929.
498
+ /assets/archive:
499
+ post:
500
+ (luvio.adapter):
501
+ name: archiveAssets
502
+ /dashboards/{dashboardIdOrApiName}:
503
+ delete:
504
+ (luvio.adapter):
505
+ name: deleteComponent
506
+ (luvio.key):
507
+ id: urlParams.dashboardIdOrApiName
478
508
  /replicatedDatasets:
479
509
  get:
480
510
  (luvio.adapter):