@salesforce/lds-adapters-industries-field-service 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.
Files changed (30) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-field-service.js +1287 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/bookAppointmentSlot.d.ts +16 -0
  5. package/dist/es/es2018/types/src/generated/adapters/createProductServiceCampaign.d.ts +15 -0
  6. package/dist/es/es2018/types/src/generated/adapters/createWorkOrders.d.ts +16 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getAppointmentSlots.d.ts +29 -0
  8. package/dist/es/es2018/types/src/generated/adapters/priceItemWithCoverage.d.ts +21 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +10 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectIndustriesFieldServiceAppointmentSchedulingSlotsByServiceAppointmentIdAndSchedulingPolicyId.d.ts +17 -0
  12. package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesFieldServiceProductServiceCampaignItemsFromList.d.ts +12 -0
  13. package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesFieldServiceProductServiceCampaignWorkOrder.d.ts +13 -0
  14. package/dist/es/es2018/types/src/generated/resources/putConnectIndustriesFieldServiceAppointmentSchedulingSlotsByServiceAppointmentIdAndSchedulingPolicyId.d.ts +13 -0
  15. package/dist/es/es2018/types/src/generated/resources/putConnectIndustriesFieldServiceWorkOrderEstimationPriceItem.d.ts +18 -0
  16. package/dist/es/es2018/types/src/generated/types/AppointmentSchedulingRepresentation.d.ts +55 -0
  17. package/dist/es/es2018/types/src/generated/types/AppointmentSlotRepresentation.d.ts +34 -0
  18. package/dist/es/es2018/types/src/generated/types/AssetCoverageInputRepresentation.d.ts +34 -0
  19. package/dist/es/es2018/types/src/generated/types/PriceItemWithCoverageInputRepresentation.d.ts +42 -0
  20. package/dist/es/es2018/types/src/generated/types/PriceItemWithCoverageRepresentation.d.ts +47 -0
  21. package/dist/es/es2018/types/src/generated/types/ProductServiceCampaignItemsFromListInputRepresentation.d.ts +38 -0
  22. package/dist/es/es2018/types/src/generated/types/ProductServiceCampaignItemsFromListRepresentation.d.ts +44 -0
  23. package/dist/es/es2018/types/src/generated/types/WorkOrderForProductServiceCampaignItemInputRepresentation.d.ts +32 -0
  24. package/dist/es/es2018/types/src/generated/types/WorkOrderForProductServiceCampaignItemRepresentation.d.ts +44 -0
  25. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  26. package/package.json +67 -0
  27. package/sfdc/index.d.ts +1 -0
  28. package/sfdc/index.js +1387 -0
  29. package/src/raml/api.raml +251 -0
  30. package/src/raml/luvio.raml +60 -0
@@ -0,0 +1,251 @@
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
+ AppointmentSchedulingRepresentation:
29
+ description: Output Representation Of The Appointment Scheduling Response
30
+ type: object
31
+ properties:
32
+ appointmentSlots:
33
+ description: The details of the slots available for the service appointment
34
+ type: array
35
+ items:
36
+ type: AppointmentSlotRepresentation
37
+ errorCode:
38
+ description: The code of the error due to which the scheduling request failed
39
+ type: string
40
+ errorMessage:
41
+ description: The details of the error if the scheduling operation was unsuccessful
42
+ type: string
43
+ isSuccess:
44
+ description: Specifies if the scheduling operation was successful (true) or
45
+ not (false)
46
+ type: boolean
47
+ resourceId:
48
+ description: The details of the service resource assigned
49
+ type: string
50
+ serviceAppointmentId:
51
+ description: The details of the service appointment
52
+ type: string
53
+ AppointmentSlotRepresentation:
54
+ description: Output Representation Of The Appointment Slot Response For The Service
55
+ Appointment Request
56
+ type: object
57
+ properties:
58
+ finishInterval:
59
+ description: Service Appointment Slot Finish Interval
60
+ type: string
61
+ grade:
62
+ description: Service Appointment Slot Grade
63
+ format: double
64
+ type: number
65
+ startInterval:
66
+ description: Service Appointment Slot Start Interval
67
+ type: string
68
+ AssetCoverageInputRepresentation:
69
+ description: Input representation for Coverage
70
+ type: object
71
+ properties:
72
+ contractIds:
73
+ description: The list of contracts
74
+ type: array
75
+ items:
76
+ type: string
77
+ entitlementIds:
78
+ description: The list of entitlements
79
+ type: array
80
+ items:
81
+ type: string
82
+ warrantyIds:
83
+ description: The list of warranties
84
+ type: array
85
+ items:
86
+ type: string
87
+ PriceItemWithCoverageInputRepresentation:
88
+ description: Input representation to Price an Entity with Coverage
89
+ type: object
90
+ properties:
91
+ assetCoverageMap:
92
+ description: The map of assets and associated coverages
93
+ type: object
94
+ properties:
95
+ //:
96
+ type: AssetCoverageInputRepresentation
97
+ childItems:
98
+ description: The list of child items to be priced
99
+ type: array
100
+ items:
101
+ type: string
102
+ itemId:
103
+ description: The item Id to be priced
104
+ type: string
105
+ pricingProcedure:
106
+ description: The pricing procedure to be used
107
+ type: string
108
+ PriceItemWithCoverageRepresentation:
109
+ description: Output representation of the error response for the price item with
110
+ coverage request.
111
+ type: object
112
+ properties:
113
+ errorCode:
114
+ description: The code of the error due to which the request failed.
115
+ type: string
116
+ errorMessage:
117
+ description: The details of the error if the operation was unsuccessful.
118
+ type: string
119
+ isSuccess:
120
+ description: Specifies if the operation was successful (true) or not (false)
121
+ type: boolean
122
+ itemId:
123
+ description: The details of the item being processed.
124
+ type: string
125
+ ProductServiceCampaignItemsFromListInputRepresentation:
126
+ description: Input representation to create product service campaign items for
127
+ each actionable list member in an actionable list.
128
+ type: object
129
+ properties:
130
+ actionableListId:
131
+ description: The ID of the Actionable List record.
132
+ type: string
133
+ ProductServiceCampaignItemsFromListRepresentation:
134
+ description: Output representation of the error response for the product service
135
+ campaign items creation request.
136
+ type: object
137
+ properties:
138
+ errorCode:
139
+ description: The code of the error due to which the request failed.
140
+ type: string | nil
141
+ errorMessage:
142
+ description: The details of the error if the operation was unsuccessful.
143
+ type: string | nil
144
+ isSuccess:
145
+ description: Specifies if the operation was successful (true) or not (false)
146
+ type: boolean
147
+ WorkOrderForProductServiceCampaignItemInputRepresentation:
148
+ description: Input representation to create work orders for each specified product
149
+ service campaign item or each product service campaign item in a product service
150
+ campaign.
151
+ type: object
152
+ properties:
153
+ productServiceCampaignId:
154
+ description: The ID of the Product Service Campaign record.
155
+ type: string
156
+ required: false
157
+ productServiceCampaignItemIds:
158
+ description: The List of IDs of Product Service Campaign Items
159
+ type: array
160
+ required: false
161
+ items:
162
+ type: string | nil
163
+ WorkOrderForProductServiceCampaignItemRepresentation:
164
+ description: Output representation of the work orders that are created for product
165
+ service campaign items.
166
+ type: object
167
+ properties:
168
+ errorCode:
169
+ description: The code of the error due to which the request failed.
170
+ type: string
171
+ required: false
172
+ errorMessage:
173
+ description: The details of the error if the operation was unsuccessful.
174
+ type: string
175
+ required: false
176
+ isSuccess:
177
+ description: Specifies if the operation was successful (true) or not (false)
178
+ type: boolean
179
+ /connect/industries-field-service:
180
+ /appointment-scheduling/slots/{serviceAppointmentId}/{schedulingPolicyId}:
181
+ get:
182
+ displayName: getAppointmentSlots
183
+ description: Get Service Appointment Slots
184
+ responses:
185
+ '200':
186
+ description: Success
187
+ body:
188
+ application/json:
189
+ type: AppointmentSchedulingRepresentation
190
+ put:
191
+ displayName: bookAppointmentSlot
192
+ description: Book Service Appointment Slot
193
+ responses:
194
+ '200':
195
+ description: Success
196
+ body:
197
+ application/json:
198
+ type: AppointmentSchedulingRepresentation
199
+ uriParameters:
200
+ serviceAppointmentId:
201
+ type: string
202
+ required: true
203
+ schedulingPolicyId:
204
+ type: string
205
+ required: true
206
+ /product-service-campaign:
207
+ /items-from-list:
208
+ post:
209
+ displayName: postCreateProductServiceCampaignItems
210
+ description: Creates Product Service Campaign Items for the Given Actionable
211
+ List
212
+ responses:
213
+ '200':
214
+ description: Success
215
+ body:
216
+ application/json:
217
+ type: ProductServiceCampaignItemsFromListRepresentation
218
+ body:
219
+ application/json:
220
+ type: ProductServiceCampaignItemsFromListInputRepresentation
221
+ (oas-body-name): createPSCIInput
222
+ /work-order:
223
+ post:
224
+ displayName: postCreateWorkOrders
225
+ description: Creates a work order for each specified product service campaign
226
+ item or each product service campaign item in a specified product service
227
+ campaign.
228
+ responses:
229
+ '200':
230
+ description: Success
231
+ body:
232
+ application/json:
233
+ type: WorkOrderForProductServiceCampaignItemRepresentation
234
+ body:
235
+ application/json:
236
+ type: WorkOrderForProductServiceCampaignItemInputRepresentation
237
+ (oas-body-name): createWorkOrdersInput
238
+ /work-order-estimation/price-item:
239
+ put:
240
+ displayName: putPriceItemWithCoverage
241
+ description: Price Item with Coverage.
242
+ responses:
243
+ '200':
244
+ description: Success
245
+ body:
246
+ application/json:
247
+ type: PriceItemWithCoverageRepresentation
248
+ body:
249
+ application/json:
250
+ type: PriceItemWithCoverageInputRepresentation
251
+ (oas-body-name): priceItemWithCoverageInput
@@ -0,0 +1,60 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'field-service'
8
+ (luvio.ttl): 1000
9
+
10
+ types:
11
+ ProductServiceCampaignItemsFromListInputRepresentation:
12
+ (luvio.ttl): 300
13
+ (luvio.key):
14
+ id: actionableListId
15
+ ProductServiceCampaignItemsFromListRepresentation:
16
+ (luvio.ttl): 300
17
+ (luvio.key):
18
+ isSuccess: isSuccess
19
+ PriceItemWithCoverageRepresentation:
20
+ (luvio.ttl): 300
21
+ (luvio.key):
22
+ itemId: itemId
23
+ AppointmentSchedulingRepresentation:
24
+ (luvio.ttl): 1000
25
+ (luvio.key):
26
+ id: serviceAppointmentId
27
+ (luvio.updateAvailable):
28
+ name: notifyAppointmentSchedulingUpdateAvailable
29
+ parameters:
30
+ id: serviceAppointmentId
31
+ WorkOrderForProductServiceCampaignItemInputRepresentation:
32
+ (luvio.ttl): 300
33
+ WorkOrderForProductServiceCampaignItemRepresentation:
34
+ (luvio.ttl): 300
35
+ (luvio.key):
36
+ id: isSuccess
37
+
38
+ /connect/industries-field-service:
39
+ /product-service-campaign:
40
+ /items-from-list:
41
+ post:
42
+ (luvio.adapter):
43
+ name: createProductServiceCampaign
44
+ /work-order:
45
+ post:
46
+ (luvio.adapter):
47
+ name: createWorkOrders
48
+ /work-order-estimation/price-item:
49
+ put:
50
+ (luvio.adapter):
51
+ name: priceItemWithCoverage
52
+ /appointment-scheduling/slots/{serviceAppointmentId}/{schedulingPolicyId}:
53
+ get:
54
+ (luvio.adapter):
55
+ name: getAppointmentSlots
56
+ (luvio.key):
57
+ id: urlParams.serviceAppointmentId
58
+ put:
59
+ (luvio.adapter):
60
+ name: bookAppointmentSlot