@salesforce/lds-adapters-sales-enablementmeasureconnectfamily 0.1.0-dev1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/sales-enablementmeasureconnectfamily.js +866 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getContributingRecordsInfoForMilestone.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/triggerOnDemandComputation.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectEnablementOnDemandComputationProgramsByProgramId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/ContributingRecordFieldInfoRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ContributingRecordFieldsValueRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/MilestoneProgressContributingRecordsRepresentation.d.ts +52 -0
- package/dist/es/es2018/types/src/generated/types/OnDemandComputationResponseRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +911 -0
- package/src/raml/api.raml +131 -0
- package/src/raml/luvio.raml +26 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '60.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v66.0
|
|
10
|
+
securitySchemes:
|
|
11
|
+
OAuth2:
|
|
12
|
+
type: OAuth 2.0
|
|
13
|
+
settings:
|
|
14
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
15
|
+
accessTokenUri: ''
|
|
16
|
+
authorizationGrants:
|
|
17
|
+
- implicit
|
|
18
|
+
annotationTypes:
|
|
19
|
+
oas-readOnly:
|
|
20
|
+
type: boolean
|
|
21
|
+
allowedTargets: TypeDeclaration
|
|
22
|
+
oas-collectionFormat:
|
|
23
|
+
type: string
|
|
24
|
+
oas-body-name:
|
|
25
|
+
type: string
|
|
26
|
+
allowedTargets: TypeDeclaration
|
|
27
|
+
types:
|
|
28
|
+
OnDemandComputationResponseRepresentation:
|
|
29
|
+
description: OnDemand Computation Response Representation
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
enablementProgramId:
|
|
33
|
+
description: Record Id of Enablement Program for which computation is being
|
|
34
|
+
triggered
|
|
35
|
+
type: string
|
|
36
|
+
MilestoneProgressContributingRecordsRepresentation:
|
|
37
|
+
description: MilestoneProgress Contributing Records Output Representation
|
|
38
|
+
type: object
|
|
39
|
+
properties:
|
|
40
|
+
aggregationField:
|
|
41
|
+
description: Aggregation Field
|
|
42
|
+
type: ContributingRecordFieldInfoRepresentation
|
|
43
|
+
aggregationType:
|
|
44
|
+
description: Indicates milestone aggregation type
|
|
45
|
+
type: string
|
|
46
|
+
enum:
|
|
47
|
+
- Average
|
|
48
|
+
- Count
|
|
49
|
+
- Sum
|
|
50
|
+
dateFilterField:
|
|
51
|
+
description: Date Filter Field
|
|
52
|
+
type: ContributingRecordFieldInfoRepresentation
|
|
53
|
+
displayField:
|
|
54
|
+
description: Display Field
|
|
55
|
+
type: ContributingRecordFieldInfoRepresentation
|
|
56
|
+
inaccessibleRecordCount:
|
|
57
|
+
description: Inaccessible Contributing records count
|
|
58
|
+
type: integer
|
|
59
|
+
measureName:
|
|
60
|
+
description: Measure Name
|
|
61
|
+
type: string
|
|
62
|
+
records:
|
|
63
|
+
description: Contributing records
|
|
64
|
+
type: array
|
|
65
|
+
items:
|
|
66
|
+
type: ContributingRecordFieldsValueRepresentation
|
|
67
|
+
sourceObjectApiName:
|
|
68
|
+
description: Source Object on which the measure is defined
|
|
69
|
+
type: string
|
|
70
|
+
taskMeasureProgressId:
|
|
71
|
+
description: Task measure progress id
|
|
72
|
+
type: string
|
|
73
|
+
ContributingRecordFieldsValueRepresentation:
|
|
74
|
+
description: MilestoneProgress Contributing Record Fields Output Representation
|
|
75
|
+
type: object
|
|
76
|
+
properties:
|
|
77
|
+
aggregationFieldValue:
|
|
78
|
+
description: Aggregation field value
|
|
79
|
+
type: string | nil
|
|
80
|
+
dateFilterFieldValue:
|
|
81
|
+
description: Date filter field value
|
|
82
|
+
type: string | nil
|
|
83
|
+
displayFieldValue:
|
|
84
|
+
description: Display field value
|
|
85
|
+
type: string | nil
|
|
86
|
+
recordId:
|
|
87
|
+
description: Contributing record id
|
|
88
|
+
type: string
|
|
89
|
+
ContributingRecordFieldInfoRepresentation:
|
|
90
|
+
description: Contributing Record Field Info Representation.
|
|
91
|
+
type: object
|
|
92
|
+
properties:
|
|
93
|
+
apiName:
|
|
94
|
+
description: Field Api Name
|
|
95
|
+
type: string | nil
|
|
96
|
+
label:
|
|
97
|
+
description: Field Label
|
|
98
|
+
type: string | nil
|
|
99
|
+
dataType:
|
|
100
|
+
description: Data type of field
|
|
101
|
+
type: string | nil
|
|
102
|
+
/connect:
|
|
103
|
+
/enablement:
|
|
104
|
+
/on-demand-computation/programs/{programId}:
|
|
105
|
+
patch:
|
|
106
|
+
displayName: patchOnDemandComputation
|
|
107
|
+
description: HTTP Patch method to for triggering on demand computation for a given program
|
|
108
|
+
responses:
|
|
109
|
+
'200':
|
|
110
|
+
description: Success
|
|
111
|
+
body:
|
|
112
|
+
application/json:
|
|
113
|
+
type: OnDemandComputationResponseRepresentation
|
|
114
|
+
uriParameters:
|
|
115
|
+
programId:
|
|
116
|
+
type: string
|
|
117
|
+
required: true
|
|
118
|
+
/contributing-records/taskMeasureProgress/{taskMeasureProgressId}:
|
|
119
|
+
get:
|
|
120
|
+
displayName: getMilestoneContributingRecordsInfo
|
|
121
|
+
description: HTTP GET method to fetch contributing records' info for given milestone progress
|
|
122
|
+
responses:
|
|
123
|
+
'200':
|
|
124
|
+
description: Success
|
|
125
|
+
body:
|
|
126
|
+
application/json:
|
|
127
|
+
type: MilestoneProgressContributingRecordsRepresentation
|
|
128
|
+
uriParameters:
|
|
129
|
+
taskMeasureProgressId:
|
|
130
|
+
type: string
|
|
131
|
+
required: true
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'EnablementMeasureConnectFamily'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
OnDemandComputationResponseRepresentation:
|
|
11
|
+
(luvio.ttl): 5000 # 5 seconds
|
|
12
|
+
(luvio.key):
|
|
13
|
+
enablementProgramId: enablementProgramId
|
|
14
|
+
|
|
15
|
+
MilestoneProgressContributingRecordsRepresentation:
|
|
16
|
+
(luvio.ttl): 5000 # 5 seconds
|
|
17
|
+
|
|
18
|
+
/connect/enablement:
|
|
19
|
+
/on-demand-computation/programs/{programId}:
|
|
20
|
+
patch:
|
|
21
|
+
(luvio.adapter):
|
|
22
|
+
name: triggerOnDemandComputation
|
|
23
|
+
/contributing-records/taskMeasureProgress/{taskMeasureProgressId}:
|
|
24
|
+
get:
|
|
25
|
+
(luvio.adapter):
|
|
26
|
+
name: getContributingRecordsInfoForMilestone
|