@salesforce/lds-adapters-analytics-wave 1.460.0 → 1.462.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 +5599 -3292
  2. package/dist/es/es2018/types/src/generated/adapters/getLatestPlatformAudit.d.ts +26 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getPlatformAudit.d.ts +28 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getPlatformAuditCheck.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getPlatformAuditHistory.d.ts +26 -0
  6. package/dist/es/es2018/types/src/generated/adapters/triggerPlatformAudit.d.ts +14 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +11 -1
  9. package/dist/es/es2018/types/src/generated/resources/getWavePlatformAudit.d.ts +12 -0
  10. package/dist/es/es2018/types/src/generated/resources/getWavePlatformAuditByAuditId.d.ts +16 -0
  11. package/dist/es/es2018/types/src/generated/resources/getWavePlatformAuditChecksByAuditIdAndCheckId.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/resources/getWavePlatformAuditHistory.d.ts +12 -0
  13. package/dist/es/es2018/types/src/generated/resources/postWavePlatformAudit.d.ts +9 -0
  14. package/dist/es/es2018/types/src/generated/types/DependencyRepresentation.d.ts +3 -3
  15. package/dist/es/es2018/types/src/generated/types/PlatformAuditCheckCollectionRepresentation.d.ts +33 -0
  16. package/dist/es/es2018/types/src/generated/types/PlatformAuditCheckRepresentation.d.ts +50 -0
  17. package/dist/es/es2018/types/src/generated/types/PlatformAuditCollectionRepresentation.d.ts +33 -0
  18. package/dist/es/es2018/types/src/generated/types/PlatformAuditFindingRepresentation.d.ts +38 -0
  19. package/dist/es/es2018/types/src/generated/types/PlatformAuditRepresentation.d.ts +72 -0
  20. package/dist/es/es2018/types/src/generated/types/PlatformAuditSnapshotRepresentation.d.ts +63 -0
  21. package/dist/es/es2018/types/src/generated/types/PlatformAuditSummaryRepresentation.d.ts +56 -0
  22. package/dist/es/es2018/types/src/generated/types/PlatformAuditUrgencyRepresentation.d.ts +33 -0
  23. package/package.json +3 -3
  24. package/sfdc/index.js +6466 -4068
  25. package/src/raml/api.raml +332 -0
  26. package/src/raml/luvio.raml +44 -0
package/src/raml/api.raml CHANGED
@@ -1950,6 +1950,7 @@ types:
1950
1950
  lastAccessedDate:
1951
1951
  description: The time at which the asset was last accessed.
1952
1952
  type: string
1953
+ required: false # TODO Hand-rolled W-24324703
1953
1954
  lastModifiedBy:
1954
1955
  description: The user who last modified the asset.
1955
1956
  type: WaveUserRepresentation
@@ -2776,6 +2777,279 @@ types:
2776
2777
  description: The value which indicates whether the user can view an asset.
2777
2778
  type: boolean
2778
2779
  required: false # TODO Hand-rolled W-8253396
2780
+ PlatformAuditRepresentation: # TODO Hand-rolled W-24314623
2781
+ description: A Platform Audit run and its aggregated health.
2782
+ type: object
2783
+ properties:
2784
+ auditId:
2785
+ description: The ID of the platform audit run.
2786
+ type: string
2787
+ runStatus:
2788
+ description: The runtime status of the platform audit run.
2789
+ type: string
2790
+ enum:
2791
+ - Running
2792
+ - Ready
2793
+ - CompleteWithLimitations
2794
+ - Failed
2795
+ scope:
2796
+ description: The scope of assets covered by the platform audit run.
2797
+ type: string
2798
+ enum:
2799
+ - AllSharedAssets
2800
+ checksTotal:
2801
+ description: The total number of checks fanned out for this audit run.
2802
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
2803
+ format: double
2804
+ type: number
2805
+ checksTerminal:
2806
+ description: The number of checks that have reached a terminal state.
2807
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
2808
+ format: double
2809
+ type: number
2810
+ createdDate:
2811
+ description: The date the platform audit run was created.
2812
+ type: string
2813
+ completedDate:
2814
+ description: The date the platform audit run completed. Null while the run is Running.
2815
+ type: string | nil
2816
+ required: false
2817
+ checks:
2818
+ description: The checks that make up this platform audit run.
2819
+ type: PlatformAuditCheckCollectionRepresentation
2820
+ healthScore:
2821
+ description: The aggregated health score for the run. Null while Running, not yet
2822
+ computed, or suppressed.
2823
+ type: integer | nil
2824
+ required: false
2825
+ verdict:
2826
+ description: The aggregated health verdict for the run. Null while Running or not
2827
+ yet computed.
2828
+ type: string | nil
2829
+ required: false
2830
+ urgency:
2831
+ description: The aggregated health urgency triage, split into critical-now and
2832
+ needs-attention tiers. Omitted when scoring was suppressed or the run is still
2833
+ running.
2834
+ type: PlatformAuditUrgencyRepresentation | nil
2835
+ required: false
2836
+ scoreSuppressed:
2837
+ description: Whether the health score is suppressed for this run.
2838
+ type: boolean | nil
2839
+ required: false
2840
+ PlatformAuditSnapshotRepresentation: # TODO Hand-rolled W-24314623
2841
+ description: Same shape as PlatformAuditRepresentation, returned by the parameterless
2842
+ "get latest" endpoint. Kept as a separate, unkeyed type because LDS wire adapters
2843
+ cannot precompute a normalized cache key for a GET with no URL params, which a
2844
+ type-level (luvio.key) on the response shape requires.
2845
+ type: object
2846
+ properties:
2847
+ auditId:
2848
+ description: The ID of the platform audit run.
2849
+ type: string
2850
+ runStatus:
2851
+ description: The runtime status of the platform audit run.
2852
+ type: string
2853
+ enum:
2854
+ - Running
2855
+ - Ready
2856
+ - CompleteWithLimitations
2857
+ - Failed
2858
+ scope:
2859
+ description: The scope of assets covered by the platform audit run.
2860
+ type: string
2861
+ enum:
2862
+ - AllSharedAssets
2863
+ checksTotal:
2864
+ description: The total number of checks fanned out for this audit run.
2865
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
2866
+ format: double
2867
+ type: number
2868
+ checksTerminal:
2869
+ description: The number of checks that have reached a terminal state.
2870
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
2871
+ format: double
2872
+ type: number
2873
+ createdDate:
2874
+ description: The date the platform audit run was created.
2875
+ type: string
2876
+ completedDate:
2877
+ description: The date the platform audit run completed. Null while the run is Running.
2878
+ type: string | nil
2879
+ required: false
2880
+ checks:
2881
+ description: The checks that make up this platform audit run.
2882
+ type: PlatformAuditCheckCollectionRepresentation
2883
+ healthScore:
2884
+ description: The aggregated health score for the run. Null while Running, not yet
2885
+ computed, or suppressed.
2886
+ type: integer | nil
2887
+ required: false
2888
+ verdict:
2889
+ description: The aggregated health verdict for the run. Null while Running or not
2890
+ yet computed.
2891
+ type: string | nil
2892
+ required: false
2893
+ urgency:
2894
+ description: The aggregated health urgency triage, split into critical-now and
2895
+ needs-attention tiers. Omitted when scoring was suppressed or the run is still
2896
+ running.
2897
+ type: PlatformAuditUrgencyRepresentation | nil
2898
+ required: false
2899
+ scoreSuppressed:
2900
+ description: Whether the health score is suppressed for this run.
2901
+ type: boolean | nil
2902
+ required: false
2903
+ PlatformAuditCheckRepresentation: # TODO Hand-rolled W-24314623
2904
+ description: A single check's result within a platform audit run.
2905
+ type: object
2906
+ properties:
2907
+ checkName:
2908
+ description: The name of the check (e.g. crma-orphans, crma-trace-redundancies).
2909
+ type: string
2910
+ status:
2911
+ description: The runtime status of the check.
2912
+ type: string
2913
+ enum:
2914
+ - Complete
2915
+ - CompleteWithLimitations
2916
+ - Unavailable
2917
+ - Failed
2918
+ coverageScanned:
2919
+ description: The number of assets scanned by this check.
2920
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
2921
+ format: double
2922
+ type: number
2923
+ coverageTotal:
2924
+ description: The total number of assets in scope for this check.
2925
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
2926
+ format: double
2927
+ type: number
2928
+ limitationNote:
2929
+ description: A note describing why coverage was limited. Null unless limited.
2930
+ type: string | nil
2931
+ required: false
2932
+ checkStartedDate:
2933
+ description: The date this check started.
2934
+ type: string | nil
2935
+ required: false
2936
+ checkCompletedDate:
2937
+ description: The date this check completed.
2938
+ type: string | nil
2939
+ required: false
2940
+ resultJson:
2941
+ description: An opaque, per-check payload passed through verbatim.
2942
+ type: string | nil
2943
+ required: false
2944
+ PlatformAuditCheckCollectionRepresentation: # TODO Hand-rolled W-24314623
2945
+ description: A collection of platform audit checks.
2946
+ type: object
2947
+ properties:
2948
+ checks:
2949
+ description: The checks in this collection.
2950
+ type: array
2951
+ items:
2952
+ type: PlatformAuditCheckRepresentation
2953
+ totalSize:
2954
+ description: The total number of checks in this collection.
2955
+ type: integer
2956
+ PlatformAuditFindingRepresentation: # TODO Hand-rolled W-24314623
2957
+ description: One finding surfaced by the aggregator's urgency triage, referencing the
2958
+ asset and check it came from.
2959
+ type: object
2960
+ properties:
2961
+ kind:
2962
+ description: The finding's category (e.g. zombie, unused, stale, or redundant asset).
2963
+ type: string
2964
+ checkName:
2965
+ description: The stable name of the check that surfaced this finding.
2966
+ type: string
2967
+ refId:
2968
+ description: The stable id of the asset the finding points at.
2969
+ type: string
2970
+ displayName:
2971
+ description: The asset's display name, for rendering the finding.
2972
+ type: string
2973
+ PlatformAuditUrgencyRepresentation: # TODO Hand-rolled W-24314623
2974
+ description: The aggregator's two-tier urgency triage over the run's findings.
2975
+ type: object
2976
+ properties:
2977
+ criticalNow:
2978
+ description: Findings the user should act on now, ordered as the aggregator surfaced
2979
+ them.
2980
+ type: array
2981
+ items:
2982
+ type: PlatformAuditFindingRepresentation
2983
+ needsAttention:
2984
+ description: Findings that need attention as standing hygiene, ordered as the
2985
+ aggregator surfaced them.
2986
+ type: array
2987
+ items:
2988
+ type: PlatformAuditFindingRepresentation
2989
+ PlatformAuditSummaryRepresentation: # TODO Hand-rolled W-24314623
2990
+ description: A summarized platform audit run for the history list, without per-check
2991
+ detail or urgency.
2992
+ type: object
2993
+ properties:
2994
+ auditId:
2995
+ description: The ID of the platform audit run.
2996
+ type: string
2997
+ runStatus:
2998
+ description: The runtime status of the platform audit run.
2999
+ type: string
3000
+ enum:
3001
+ - Running
3002
+ - Ready
3003
+ - CompleteWithLimitations
3004
+ - Failed
3005
+ scope:
3006
+ description: The scope of assets covered by the platform audit run.
3007
+ type: string
3008
+ enum:
3009
+ - AllSharedAssets
3010
+ checksTotal:
3011
+ description: The total number of checks fanned out for this audit run.
3012
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
3013
+ format: double
3014
+ type: number
3015
+ checksTerminal:
3016
+ description: The number of checks that have reached a terminal state.
3017
+ # TODO: Hand-rolled from "format: int64, type: integer" due to W-8274943
3018
+ format: double
3019
+ type: number
3020
+ createdDate:
3021
+ description: The date the platform audit run was created.
3022
+ type: string
3023
+ completedDate:
3024
+ description: The date the platform audit run completed. Null while the run is Running.
3025
+ type: string | nil
3026
+ required: false
3027
+ healthScore:
3028
+ description: The aggregated health score for the run. Null while Running, not yet
3029
+ computed, or suppressed.
3030
+ type: integer | nil
3031
+ required: false
3032
+ verdict:
3033
+ description: The aggregated health verdict for the run. Null while Running or not
3034
+ yet computed.
3035
+ type: string | nil
3036
+ required: false
3037
+ scoreSuppressed:
3038
+ description: Whether the health score is suppressed for this run.
3039
+ type: boolean | nil
3040
+ required: false
3041
+ PlatformAuditCollectionRepresentation: # TODO Hand-rolled W-24314623
3042
+ description: The org's platform-audit history, most recent first.
3043
+ type: object
3044
+ properties:
3045
+ audits:
3046
+ description: The org's audit runs, most recent first.
3047
+ type: array
3048
+ items:
3049
+ type: PlatformAuditSummaryRepresentation
3050
+ totalSize:
3051
+ description: The number of audit runs returned.
3052
+ type: integer
2779
3053
  PropertyConditionRepresentation:
2780
3054
  description: A Condition represents a condition under which a connection property will appear in the UI.
2781
3055
  type: object
@@ -7483,6 +7757,64 @@ types:
7483
7757
  - MaxDailySizeMedOutputCon
7484
7758
  - OutputLocalConnectorVolume
7485
7759
  (oas-collectionFormat): csv
7760
+ /platform-audit: # TODO Hand-rolled W-24314623
7761
+ get:
7762
+ description: Get the org's latest platform audit run.
7763
+ responses:
7764
+ '200':
7765
+ description: Success
7766
+ body:
7767
+ application/json:
7768
+ type: PlatformAuditSnapshotRepresentation
7769
+ post:
7770
+ description: Trigger a new platform audit run.
7771
+ responses:
7772
+ '200':
7773
+ description: Success
7774
+ body:
7775
+ application/json:
7776
+ type: PlatformAuditRepresentation
7777
+ /platform-audit/{auditId}: # TODO Hand-rolled W-24314623
7778
+ get:
7779
+ description: Get a specific platform audit run.
7780
+ responses:
7781
+ '200':
7782
+ description: Success
7783
+ body:
7784
+ application/json:
7785
+ type: PlatformAuditRepresentation
7786
+ uriParameters:
7787
+ auditId:
7788
+ type: string
7789
+ required: true
7790
+ /platform-audit/{auditId}/checks/{checkId}: # TODO Hand-rolled W-24314623
7791
+ get:
7792
+ description: Get a single check's result within a platform audit run.
7793
+ responses:
7794
+ '200':
7795
+ description: Success
7796
+ body:
7797
+ application/json:
7798
+ type: PlatformAuditCheckRepresentation
7799
+ uriParameters:
7800
+ auditId:
7801
+ type: string
7802
+ required: true
7803
+ checkId:
7804
+ type: string
7805
+ required: true
7806
+ /platform-audit/history: # TODO Hand-rolled W-24314623
7807
+ get:
7808
+ description: Get the org's platform-audit history, most recent first. Returns an
7809
+ empty collection (not a 404) when no runs exist. The connect resource hardcodes
7810
+ offset=0/limit=200 server-side and ignores client-supplied paging params;
7811
+ see W-24314623 comments before adding offset/limit here.
7812
+ responses:
7813
+ '200':
7814
+ description: Success
7815
+ body:
7816
+ application/json:
7817
+ type: PlatformAuditCollectionRepresentation
7486
7818
  /unsupportedFeatures:
7487
7819
  get:
7488
7820
  description: Retrieves a list of unsupported features for the current environment.
@@ -47,6 +47,29 @@ types:
47
47
  (luvio.ttl): 300
48
48
  DatasetCoverageRepresentation:
49
49
  (luvio.ttl): 300
50
+ PlatformAuditRepresentation: # TODO Hand-rolled W-24314623
51
+ (luvio.ttl): 5000
52
+ (luvio.key):
53
+ id: auditId
54
+ PlatformAuditSnapshotRepresentation: # TODO Hand-rolled W-24314623
55
+ (luvio.ttl): 5000
56
+ # No (luvio.key): getPlatformAuditCheck's URI carries auditId/checkId, but a
57
+ # resource-level key only takes effect if the return type ALSO defines a
58
+ # type-level (luvio.key) (see @luvio/compiler's key-builder.js), and this
59
+ # type's response body has no auditId/checkId field to key on. So this caches
60
+ # by request path only.
61
+ PlatformAuditCheckRepresentation: # TODO Hand-rolled W-24314623
62
+ (luvio.ttl): 300
63
+ PlatformAuditCheckCollectionRepresentation: # TODO Hand-rolled W-24314623
64
+ (luvio.ttl): 300
65
+ PlatformAuditFindingRepresentation: # TODO Hand-rolled W-24314623
66
+ (luvio.ttl): 300
67
+ PlatformAuditUrgencyRepresentation: # TODO Hand-rolled W-24314623
68
+ (luvio.ttl): 300
69
+ PlatformAuditSummaryRepresentation: # TODO Hand-rolled W-24314623
70
+ (luvio.ttl): 300
71
+ PlatformAuditCollectionRepresentation: # TODO Hand-rolled W-24314623
72
+ (luvio.ttl): 300
50
73
  RecipeCollectionRepresentation:
51
74
  (luvio.opaque): true
52
75
  (luvio.ttl): 300
@@ -331,6 +354,27 @@ types:
331
354
  get:
332
355
  (luvio.adapter):
333
356
  name: getAnalyticsLimits
357
+ /platform-audit: # TODO Hand-rolled W-24314623
358
+ get:
359
+ (luvio.adapter):
360
+ name: getLatestPlatformAudit
361
+ post:
362
+ (luvio.adapter):
363
+ name: triggerPlatformAudit
364
+ /platform-audit/{auditId}: # TODO Hand-rolled W-24314623
365
+ get:
366
+ (luvio.adapter):
367
+ name: getPlatformAudit
368
+ (luvio.key):
369
+ id: urlParams.auditId
370
+ /platform-audit/{auditId}/checks/{checkId}: # TODO Hand-rolled W-24314623
371
+ get:
372
+ (luvio.adapter):
373
+ name: getPlatformAuditCheck
374
+ /platform-audit/history: # TODO Hand-rolled W-24314623
375
+ get:
376
+ (luvio.adapter):
377
+ name: getPlatformAuditHistory
334
378
  /unsupportedFeatures:
335
379
  get:
336
380
  (luvio.adapter):