@salesforce/lds-adapters-service-milestones 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.
@@ -0,0 +1,131 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '62.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
+ BusinessHoursRepresentation:
29
+ description: Business Hours Description
30
+ type: object
31
+ properties:
32
+ endTime:
33
+ description: End time of the Business Hours
34
+ type: string | nil
35
+ startTime:
36
+ description: Start Time of the Business Hours
37
+ type: string | nil
38
+ MilestoneCompletedRepresentation:
39
+ description: Milestone Completed Description
40
+ type: object
41
+ properties:
42
+ milestoneId:
43
+ description: Id of the Milestone
44
+ type: string | nil
45
+ completed:
46
+ description: Completed Status of the Milestone
47
+ type: boolean | nil
48
+ MilestonesDataManagerRepresentation:
49
+ description: Milestone Data Manager Representation Description
50
+ type: object
51
+ properties:
52
+ actualTimeRemaining:
53
+ description: Get Actual Time Remaining
54
+ type: object
55
+ properties:
56
+ //:
57
+ type: string
58
+ milestoneAgreementTypeMap:
59
+ description: Milestone Agreement Type Map
60
+ type: object
61
+ properties:
62
+ //:
63
+ type: string
64
+ fields:
65
+ description: Get Fields
66
+ type: array
67
+ items:
68
+ type: string
69
+ ignoreBusinessHours:
70
+ description: Get Ignore Business Hours
71
+ type: boolean | nil
72
+ recordIds:
73
+ description: Get Record Ids
74
+ type: array
75
+ items:
76
+ type: string
77
+ slaExitDate:
78
+ description: Get Sla Exit Date
79
+ type: string | nil
80
+ stopStartDate:
81
+ description: Get Stop StartDate
82
+ type: string | nil
83
+ overdueMilestoneIgnoreBusinessHours:
84
+ description: Get Overdue Milestone Ignore Business Hours
85
+ type: boolean | nil
86
+ /connect:
87
+ /milestones/business-hours:
88
+ get:
89
+ displayName: getBusinessHours
90
+ description: Information about business hours
91
+ responses:
92
+ '200':
93
+ description: Success
94
+ body:
95
+ application/json:
96
+ type: BusinessHoursRepresentation
97
+ queryParameters:
98
+ businessHoursId:
99
+ type: string | nil
100
+ required: false
101
+ getNextDayBusinessHours:
102
+ type: boolean | nil
103
+ required: false
104
+ /milestones/milestone-completed:
105
+ put:
106
+ displayName: markMilestoneCompleted
107
+ description: Information about milestone completed
108
+ responses:
109
+ '200':
110
+ description: Success
111
+ body:
112
+ application/json:
113
+ type: MilestoneCompletedRepresentation
114
+ queryParameters:
115
+ milestoneId:
116
+ type: string | nil
117
+ required: false
118
+ /milestones/milestones-data-manager/{recordId}:
119
+ get:
120
+ displayName: getMilestonesDataManager
121
+ description: Information about Milestones Data Manager
122
+ responses:
123
+ '200':
124
+ description: Success
125
+ body:
126
+ application/json:
127
+ type: MilestonesDataManagerRepresentation
128
+ uriParameters:
129
+ recordId:
130
+ type: string
131
+ required: true
@@ -0,0 +1,32 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'Milestones'
8
+
9
+ types:
10
+ BusinessHoursRepresentation:
11
+ (luvio.ttl): 100
12
+ MilestoneCompletedRepresentation:
13
+ (luvio.ttl): 100
14
+ (luvio.opaque): true
15
+ (luvio.key):
16
+ requestId: milestoneId
17
+ MilestonesDataManagerRepresentation:
18
+ (luvio.ttl): 100
19
+
20
+ /connect:
21
+ /milestones/business-hours:
22
+ get:
23
+ (luvio.adapter):
24
+ name: getBusinessHours
25
+ /milestones/milestone-completed:
26
+ put:
27
+ (luvio.adapter):
28
+ name: markMilestoneCompleted
29
+ /milestones/milestones-data-manager/{recordId}:
30
+ get:
31
+ (luvio.adapter):
32
+ name: getMilestonesDataManager