@salesforce/lds-adapters-service-serviceplan 1.308.0-dev4 → 1.308.0-dev6
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/dist/es/es2018/service-serviceplan.js +945 -187
- package/dist/es/es2018/types/src/generated/adapters/generateServicePlan.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/adapters/getGenerationRequest.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getServicePlan.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -2
- package/dist/es/es2018/types/src/generated/resources/getConnectServicePlanGenerationRequestsByRequestId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectServicePlanServicePlanDetailsByRecordId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServicePlanGenerationRequests.d.ts +5 -4
- package/dist/es/es2018/types/src/generated/types/ServicePlanDetailsOutputRepresentation.d.ts +59 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanDetailsRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationInputParamRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/{ServicePlanGenerationSyncOutputRepresentation.d.ts → ServicePlanGenerationOutputRepresentation.d.ts} +18 -20
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepDetailsRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepRepresentation.d.ts +10 -13
- package/package.json +3 -3
- package/sfdc/index.js +1019 -192
- package/src/raml/api.raml +130 -21
- package/src/raml/luvio.raml +23 -3
- package/dist/es/es2018/types/src/generated/adapters/generateSync.d.ts +0 -20
package/src/raml/api.raml
CHANGED
|
@@ -82,6 +82,87 @@ types:
|
|
|
82
82
|
type: array
|
|
83
83
|
items:
|
|
84
84
|
type: ServicePlanStepExecutionSummaryRepresentation
|
|
85
|
+
ServicePlanDetailsOutputRepresentation:
|
|
86
|
+
description: Represent the service plan details
|
|
87
|
+
type: object
|
|
88
|
+
properties:
|
|
89
|
+
plan:
|
|
90
|
+
description: The Service Plan Details
|
|
91
|
+
type: ServicePlanDetailsRepresentation
|
|
92
|
+
planRequestId:
|
|
93
|
+
description: The record ID of plan request passed to this Connect API
|
|
94
|
+
type: string
|
|
95
|
+
reason:
|
|
96
|
+
description: The reason of the Service Plan Details
|
|
97
|
+
type: string
|
|
98
|
+
enum:
|
|
99
|
+
- CannotGetPlanDetails
|
|
100
|
+
- None
|
|
101
|
+
reasonDetails:
|
|
102
|
+
description: The reason details of the Service Plan Details
|
|
103
|
+
type: string | nil
|
|
104
|
+
status:
|
|
105
|
+
description: The status of the Service Plan Details
|
|
106
|
+
type: string
|
|
107
|
+
enum:
|
|
108
|
+
- Error
|
|
109
|
+
- Success
|
|
110
|
+
ServicePlanDetailsRepresentation:
|
|
111
|
+
description: Service Plan representation
|
|
112
|
+
type: object
|
|
113
|
+
properties:
|
|
114
|
+
createdDate:
|
|
115
|
+
description: Created Date
|
|
116
|
+
type: string | nil
|
|
117
|
+
executionStatus:
|
|
118
|
+
description: Execution Status
|
|
119
|
+
type: string | nil
|
|
120
|
+
enum:
|
|
121
|
+
- Completed
|
|
122
|
+
- Failed
|
|
123
|
+
- InProgress
|
|
124
|
+
- New
|
|
125
|
+
feedbackId:
|
|
126
|
+
description: Feedback ID
|
|
127
|
+
type: string | nil
|
|
128
|
+
clientFeatureId:
|
|
129
|
+
description: clientFeature ID
|
|
130
|
+
type: string | nil
|
|
131
|
+
planId:
|
|
132
|
+
description: Plan ID
|
|
133
|
+
type: string | nil
|
|
134
|
+
servicePlanSteps:
|
|
135
|
+
description: Service Plan Steps
|
|
136
|
+
type: array
|
|
137
|
+
items:
|
|
138
|
+
type: ServicePlanStepDetailsRepresentation
|
|
139
|
+
topic:
|
|
140
|
+
description: Topic
|
|
141
|
+
type: string | nil
|
|
142
|
+
ServicePlanStepDetailsRepresentation:
|
|
143
|
+
description: Service Plan step representation
|
|
144
|
+
type: object
|
|
145
|
+
properties:
|
|
146
|
+
executionStatus:
|
|
147
|
+
description: Step execution state
|
|
148
|
+
type: string
|
|
149
|
+
enum:
|
|
150
|
+
- Completed
|
|
151
|
+
- Failed
|
|
152
|
+
- InProgress
|
|
153
|
+
- New
|
|
154
|
+
groupName:
|
|
155
|
+
description: Group Name
|
|
156
|
+
type: string | nil
|
|
157
|
+
order:
|
|
158
|
+
description: Step order
|
|
159
|
+
type: integer
|
|
160
|
+
stepId:
|
|
161
|
+
description: Step ID
|
|
162
|
+
type: string
|
|
163
|
+
stepName:
|
|
164
|
+
description: Step name
|
|
165
|
+
type: string
|
|
85
166
|
ServicePlanGenerationInputMapRepresentation:
|
|
86
167
|
description: Represents a request for generating a service plan
|
|
87
168
|
type: object
|
|
@@ -102,7 +183,7 @@ types:
|
|
|
102
183
|
properties:
|
|
103
184
|
//:
|
|
104
185
|
type: string
|
|
105
|
-
|
|
186
|
+
generationMode:
|
|
106
187
|
description: Plan generation mode
|
|
107
188
|
type: string
|
|
108
189
|
enum:
|
|
@@ -127,7 +208,7 @@ types:
|
|
|
127
208
|
sessionKey:
|
|
128
209
|
description: Session Key used to communicate with LLM
|
|
129
210
|
type: string | nil
|
|
130
|
-
|
|
211
|
+
ServicePlanGenerationOutputRepresentation:
|
|
131
212
|
description: Represent the service plan generation result
|
|
132
213
|
type: object
|
|
133
214
|
properties:
|
|
@@ -145,7 +226,7 @@ types:
|
|
|
145
226
|
type: string | nil
|
|
146
227
|
plan:
|
|
147
228
|
description: The generated service plan
|
|
148
|
-
type: ServicePlanOutputRepresentation
|
|
229
|
+
type: ServicePlanOutputRepresentation | nil
|
|
149
230
|
reason:
|
|
150
231
|
description: The reason of the service plan creation request job failure
|
|
151
232
|
type: string
|
|
@@ -155,9 +236,6 @@ types:
|
|
|
155
236
|
- None
|
|
156
237
|
- ThresholdError
|
|
157
238
|
- ThresholdNotMet
|
|
158
|
-
reasonDetails:
|
|
159
|
-
description: The details of the service plan creation request job failure
|
|
160
|
-
type: string | nil
|
|
161
239
|
recordId:
|
|
162
240
|
description: The record this plan generation was requested for
|
|
163
241
|
type: string
|
|
@@ -266,21 +344,18 @@ types:
|
|
|
266
344
|
description: Represent a step of a generated Service Plan
|
|
267
345
|
type: object
|
|
268
346
|
properties:
|
|
269
|
-
|
|
270
|
-
description:
|
|
271
|
-
type:
|
|
272
|
-
functionName:
|
|
273
|
-
description: The name of the service plan step
|
|
274
|
-
type: string
|
|
347
|
+
groupName:
|
|
348
|
+
description: The group name of service plan step
|
|
349
|
+
type: string | nil
|
|
275
350
|
id:
|
|
276
351
|
description: Generated Plan Step ID
|
|
277
352
|
type: string
|
|
278
|
-
|
|
279
|
-
description:
|
|
280
|
-
type: string
|
|
281
|
-
|
|
282
|
-
description:
|
|
283
|
-
type:
|
|
353
|
+
name:
|
|
354
|
+
description: The name of service plan step
|
|
355
|
+
type: string | nil
|
|
356
|
+
order:
|
|
357
|
+
description: Order in which this action will be executed
|
|
358
|
+
type: integer
|
|
284
359
|
/connect/service-plan:
|
|
285
360
|
/execute/{planOrStepId}:
|
|
286
361
|
get:
|
|
@@ -311,15 +386,21 @@ types:
|
|
|
311
386
|
required: true
|
|
312
387
|
/generationRequests:
|
|
313
388
|
post:
|
|
314
|
-
displayName:
|
|
315
|
-
description:
|
|
389
|
+
displayName: postServicePlanGeneration
|
|
390
|
+
description: Trigger the generation of a service plan for a case
|
|
316
391
|
responses:
|
|
317
392
|
'200':
|
|
318
393
|
description: Success
|
|
319
394
|
body:
|
|
320
395
|
application/json:
|
|
321
|
-
type:
|
|
396
|
+
type: ServicePlanGenerationOutputRepresentation
|
|
322
397
|
queryParameters:
|
|
398
|
+
processingMode:
|
|
399
|
+
type: string
|
|
400
|
+
required: false
|
|
401
|
+
enum:
|
|
402
|
+
- Async
|
|
403
|
+
- Sync
|
|
323
404
|
recordId:
|
|
324
405
|
type: string
|
|
325
406
|
required: false
|
|
@@ -327,3 +408,31 @@ types:
|
|
|
327
408
|
application/json:
|
|
328
409
|
type: ServicePlanGenerationInputParamRepresentation
|
|
329
410
|
(oas-body-name): servicePlanGenerationRequest
|
|
411
|
+
/generationRequests/{requestId}:
|
|
412
|
+
get:
|
|
413
|
+
displayName: getServicePlanGenerationRequest
|
|
414
|
+
description: Retrieve the status of a service plan generation request
|
|
415
|
+
responses:
|
|
416
|
+
'200':
|
|
417
|
+
description: Success
|
|
418
|
+
body:
|
|
419
|
+
application/json:
|
|
420
|
+
type: ServicePlanGenerationOutputRepresentation
|
|
421
|
+
uriParameters:
|
|
422
|
+
requestId:
|
|
423
|
+
type: string
|
|
424
|
+
required: true
|
|
425
|
+
/servicePlanDetails/{recordId}:
|
|
426
|
+
get:
|
|
427
|
+
displayName: getServicePlanDetails
|
|
428
|
+
description: Returns Service Plan details
|
|
429
|
+
responses:
|
|
430
|
+
'200':
|
|
431
|
+
description: Success
|
|
432
|
+
body:
|
|
433
|
+
application/json:
|
|
434
|
+
type: ServicePlanDetailsOutputRepresentation
|
|
435
|
+
uriParameters:
|
|
436
|
+
recordId:
|
|
437
|
+
type: string
|
|
438
|
+
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -14,9 +14,9 @@ types:
|
|
|
14
14
|
(luvio.opaque): true
|
|
15
15
|
ServicePlanGenerationSessionInformationOutputRepresentation:
|
|
16
16
|
(luvio.opaque): true
|
|
17
|
-
|
|
17
|
+
ServicePlanGenerationOutputRepresentation:
|
|
18
18
|
(luvio.key):
|
|
19
|
-
id:
|
|
19
|
+
id: id
|
|
20
20
|
(luvio.ttl): 1000
|
|
21
21
|
ServicePlanOutputRepresentation:
|
|
22
22
|
(luvio.opaque): true
|
|
@@ -33,6 +33,14 @@ types:
|
|
|
33
33
|
ServicePlanExecutionOutputRepresentation:
|
|
34
34
|
(luvio.key):
|
|
35
35
|
id: executionStatus
|
|
36
|
+
ServicePlanDetailsRepresentation:
|
|
37
|
+
(luvio.opaque): true
|
|
38
|
+
ServicePlanStepDetailsRepresentation:
|
|
39
|
+
(luvio.opaque): true
|
|
40
|
+
ServicePlanDetailsOutputRepresentation:
|
|
41
|
+
(luvio.key):
|
|
42
|
+
id: planRequestId
|
|
43
|
+
(luvio.ttl): 1000
|
|
36
44
|
|
|
37
45
|
/connect/service-plan:
|
|
38
46
|
/execute/{planOrStepId}:
|
|
@@ -42,4 +50,16 @@ types:
|
|
|
42
50
|
/generationRequests:
|
|
43
51
|
post:
|
|
44
52
|
(luvio.adapter):
|
|
45
|
-
name:
|
|
53
|
+
name: generateServicePlan
|
|
54
|
+
/generationRequests/{requestId}:
|
|
55
|
+
get:
|
|
56
|
+
(luvio.adapter):
|
|
57
|
+
name: getGenerationRequest
|
|
58
|
+
(luvio.key):
|
|
59
|
+
id: urlParams.requestId
|
|
60
|
+
/servicePlanDetails/{recordId}:
|
|
61
|
+
get:
|
|
62
|
+
(luvio.adapter):
|
|
63
|
+
name: getServicePlan
|
|
64
|
+
(luvio.key):
|
|
65
|
+
id: urlParams.recordId
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
-
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import { ResourceRequestConfig as resources_postConnectServicePlanGenerationRequests_ResourceRequestConfig } from '../resources/postConnectServicePlanGenerationRequests';
|
|
4
|
-
import { ServicePlanGenerationSyncOutputRepresentation as types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation } from '../types/ServicePlanGenerationSyncOutputRepresentation';
|
|
5
|
-
export declare const adapterName = "generateSync";
|
|
6
|
-
export declare const generateSync_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
-
export declare const generateSync_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
-
export interface GenerateSyncConfig {
|
|
9
|
-
recordId?: string;
|
|
10
|
-
additionalContext: {
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
};
|
|
13
|
-
mode: string;
|
|
14
|
-
source: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const createResourceParams: (config: GenerateSyncConfig) => resources_postConnectServicePlanGenerationRequests_ResourceRequestConfig;
|
|
17
|
-
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GenerateSyncConfig>): adapter$45$utils_Untrusted<GenerateSyncConfig>;
|
|
18
|
-
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GenerateSyncConfig | null;
|
|
19
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GenerateSyncConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation, any>>;
|
|
20
|
-
export declare const generateSyncAdapterFactory: $64$luvio_engine_AdapterFactory<GenerateSyncConfig, types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation>;
|