@salesforce/lds-adapters-industries-service-excellence 1.309.0-dev10 → 1.309.0-dev12
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/industries-service-excellence.js +26 -5
- package/dist/es/es2018/types/src/generated/adapters/getEinsteinRecommendedItems.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceExcellenceActionLauncherRecommendations.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/types/ActionLauncherConversationInputRepresentation.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/ActionLauncherRecommendationsInputRepresentation.d.ts +4 -3
- package/package.json +4 -4
- package/sfdc/index.js +31 -10
- package/src/raml/api.raml +3 -1
|
@@ -92,6 +92,29 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
function validate$c(obj, path = 'ActionLauncherConversationInputRepresentation') {
|
|
96
|
+
const v_error = (() => {
|
|
97
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
99
|
+
}
|
|
100
|
+
if (obj.id !== undefined) {
|
|
101
|
+
const obj_id = obj.id;
|
|
102
|
+
const path_id = path + '.id';
|
|
103
|
+
if (typeof obj_id !== 'string') {
|
|
104
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (obj.type !== undefined) {
|
|
108
|
+
const obj_type = obj.type;
|
|
109
|
+
const path_type = path + '.type';
|
|
110
|
+
if (typeof obj_type !== 'string') {
|
|
111
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
})();
|
|
115
|
+
return v_error === undefined ? null : v_error;
|
|
116
|
+
}
|
|
117
|
+
|
|
95
118
|
const VERSION$6 = "169e7784dec2d40ca1669e854a2a19f2";
|
|
96
119
|
function validate$b(obj, path = 'ActionLauncherIntentActionsMappingOutputRepresentation') {
|
|
97
120
|
const v_error = (() => {
|
|
@@ -456,11 +479,9 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
456
479
|
const config = {};
|
|
457
480
|
typeCheckConfig$6(untrustedConfig, config, getEinsteinRecommendedItems_ConfigPropertyMetadata);
|
|
458
481
|
const untrustedConfig_conversation = untrustedConfig.conversation;
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
config.conversation = untrustedConfig_conversation_object;
|
|
463
|
-
}
|
|
482
|
+
const referenceActionLauncherConversationInputRepresentationValidationError = validate$c(untrustedConfig_conversation);
|
|
483
|
+
if (referenceActionLauncherConversationInputRepresentationValidationError === null) {
|
|
484
|
+
config.conversation = untrustedConfig_conversation;
|
|
464
485
|
}
|
|
465
486
|
return config;
|
|
466
487
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
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
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ActionLauncherConversationInputRepresentation as types_ActionLauncherConversationInputRepresentation_ActionLauncherConversationInputRepresentation } from '../types/ActionLauncherConversationInputRepresentation';
|
|
3
4
|
import { ResourceRequestConfig as resources_postConnectServiceExcellenceActionLauncherRecommendations_ResourceRequestConfig } from '../resources/postConnectServiceExcellenceActionLauncherRecommendations';
|
|
4
5
|
import { ActionLauncherRecommendationsOutputRepresentation as types_ActionLauncherRecommendationsOutputRepresentation_ActionLauncherRecommendationsOutputRepresentation } from '../types/ActionLauncherRecommendationsOutputRepresentation';
|
|
5
6
|
export declare const adapterName = "getEinsteinRecommendedItems";
|
|
@@ -8,7 +9,7 @@ export declare const getEinsteinRecommendedItems_ConfigPropertyNames: adapter$45
|
|
|
8
9
|
export interface GetEinsteinRecommendedItemsConfig {
|
|
9
10
|
catalogId?: string;
|
|
10
11
|
deploymentName?: string;
|
|
11
|
-
conversation:
|
|
12
|
+
conversation: types_ActionLauncherConversationInputRepresentation_ActionLauncherConversationInputRepresentation;
|
|
12
13
|
intents: Array<string>;
|
|
13
14
|
limit: number;
|
|
14
15
|
mode: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ActionLauncherConversationInputRepresentation as types_ActionLauncherConversationInputRepresentation_ActionLauncherConversationInputRepresentation } from '../types/ActionLauncherConversationInputRepresentation';
|
|
1
2
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
3
|
import { ActionLauncherRecommendationsOutputRepresentation as types_ActionLauncherRecommendationsOutputRepresentation_ActionLauncherRecommendationsOutputRepresentation } from '../types/ActionLauncherRecommendationsOutputRepresentation';
|
|
3
4
|
export interface ResourceRequestConfig {
|
|
@@ -6,7 +7,7 @@ export interface ResourceRequestConfig {
|
|
|
6
7
|
deploymentName?: string;
|
|
7
8
|
};
|
|
8
9
|
body: {
|
|
9
|
-
conversation:
|
|
10
|
+
conversation: types_ActionLauncherConversationInputRepresentation_ActionLauncherConversationInputRepresentation;
|
|
10
11
|
intents: Array<string>;
|
|
11
12
|
limit: number;
|
|
12
13
|
mode: string;
|
package/dist/es/es2018/types/src/generated/types/ActionLauncherConversationInputRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "5e89960b6e122c21fc1b092cbf76cec4";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ActionLauncherConversationInputRepresentation, existing: ActionLauncherConversationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionLauncherConversationInputRepresentationNormalized;
|
|
@@ -15,9 +15,9 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
*/
|
|
16
16
|
export interface ActionLauncherConversationInputRepresentationNormalized {
|
|
17
17
|
/** set the conversation ID */
|
|
18
|
-
id
|
|
18
|
+
id?: string;
|
|
19
19
|
/** set the conversation type */
|
|
20
|
-
type
|
|
20
|
+
type?: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Input representation to extract and process conversation ID
|
|
@@ -26,6 +26,6 @@ export interface ActionLauncherConversationInputRepresentationNormalized {
|
|
|
26
26
|
* (none)
|
|
27
27
|
*/
|
|
28
28
|
export interface ActionLauncherConversationInputRepresentation {
|
|
29
|
-
id
|
|
30
|
-
type
|
|
29
|
+
id?: string;
|
|
30
|
+
type?: string;
|
|
31
31
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ActionLauncherConversationInputRepresentation as ActionLauncherConversationInputRepresentation_ActionLauncherConversationInputRepresentation } from './ActionLauncherConversationInputRepresentation';
|
|
1
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "5eddb0de413b7fe7ac6e9a4b85b18df6";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: ActionLauncherRecommendationsInputRepresentation, existing: ActionLauncherRecommendationsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionLauncherRecommendationsInputRepresentationNormalized;
|
|
@@ -15,7 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
16
|
*/
|
|
16
17
|
export interface ActionLauncherRecommendationsInputRepresentationNormalized {
|
|
17
18
|
/** set conversation(id and type) */
|
|
18
|
-
conversation:
|
|
19
|
+
conversation: ActionLauncherConversationInputRepresentation_ActionLauncherConversationInputRepresentation;
|
|
19
20
|
/** set the intents for deriving recommendations */
|
|
20
21
|
intents: Array<string>;
|
|
21
22
|
/** set the limit denoting the total recommendations to be fetched */
|
|
@@ -30,7 +31,7 @@ export interface ActionLauncherRecommendationsInputRepresentationNormalized {
|
|
|
30
31
|
* (none)
|
|
31
32
|
*/
|
|
32
33
|
export interface ActionLauncherRecommendationsInputRepresentation {
|
|
33
|
-
conversation:
|
|
34
|
+
conversation: ActionLauncherConversationInputRepresentation_ActionLauncherConversationInputRepresentation;
|
|
34
35
|
intents: Array<string>;
|
|
35
36
|
limit: number;
|
|
36
37
|
mode: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-service-excellence",
|
|
3
|
-
"version": "1.309.0-
|
|
3
|
+
"version": "1.309.0-dev12",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "This is LDS adapters for all service excellence related connect APIs",
|
|
6
6
|
"main": "dist/es/es2018/industries-service-excellence.js",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"test": "nx build:karma && karma start --single-run"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salesforce/lds-bindings": "^1.309.0-
|
|
45
|
+
"@salesforce/lds-bindings": "^1.309.0-dev12"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.309.0-
|
|
49
|
-
"@salesforce/lds-karma": "^1.309.0-
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.309.0-dev12",
|
|
49
|
+
"@salesforce/lds-karma": "^1.309.0-dev12"
|
|
50
50
|
},
|
|
51
51
|
"nx": {
|
|
52
52
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate$
|
|
105
|
+
function validate$c(obj, path = 'ActionLaunchInputRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -141,7 +141,7 @@ function validate$b(obj, path = 'ActionLaunchInputRepresentation') {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
const VERSION$6 = "bbe6b4e653df40e51fd6dfc3260c4327";
|
|
144
|
-
function validate$
|
|
144
|
+
function validate$b(obj, path = 'ActionLaunchStatusRepresentation') {
|
|
145
145
|
const v_error = (() => {
|
|
146
146
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
147
147
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -204,7 +204,7 @@ function equals$6(existing, incoming) {
|
|
|
204
204
|
}
|
|
205
205
|
const ingest$5 = function ActionLaunchStatusRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
206
206
|
if (process.env.NODE_ENV !== 'production') {
|
|
207
|
-
const validateError = validate$
|
|
207
|
+
const validateError = validate$b(input);
|
|
208
208
|
if (validateError !== null) {
|
|
209
209
|
throw validateError;
|
|
210
210
|
}
|
|
@@ -270,7 +270,7 @@ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createAction
|
|
|
270
270
|
function typeCheckConfig$5(untrustedConfig) {
|
|
271
271
|
const config = {};
|
|
272
272
|
const untrustedConfig_actionLaunchDetails = untrustedConfig.actionLaunchDetails;
|
|
273
|
-
const referenceActionLaunchInputRepresentationValidationError = validate$
|
|
273
|
+
const referenceActionLaunchInputRepresentationValidationError = validate$c(untrustedConfig_actionLaunchDetails);
|
|
274
274
|
if (referenceActionLaunchInputRepresentationValidationError === null) {
|
|
275
275
|
config.actionLaunchDetails = untrustedConfig_actionLaunchDetails;
|
|
276
276
|
}
|
|
@@ -318,6 +318,29 @@ const createActionLaunchDetailsAdapterFactory = (luvio) => {
|
|
|
318
318
|
};
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
+
function validate$a(obj, path = 'ActionLauncherConversationInputRepresentation') {
|
|
322
|
+
const v_error = (() => {
|
|
323
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
324
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
325
|
+
}
|
|
326
|
+
if (obj.id !== undefined) {
|
|
327
|
+
const obj_id = obj.id;
|
|
328
|
+
const path_id = path + '.id';
|
|
329
|
+
if (typeof obj_id !== 'string') {
|
|
330
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if (obj.type !== undefined) {
|
|
334
|
+
const obj_type = obj.type;
|
|
335
|
+
const path_type = path + '.type';
|
|
336
|
+
if (typeof obj_type !== 'string') {
|
|
337
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
})();
|
|
341
|
+
return v_error === undefined ? null : v_error;
|
|
342
|
+
}
|
|
343
|
+
|
|
321
344
|
const VERSION$5 = "169e7784dec2d40ca1669e854a2a19f2";
|
|
322
345
|
function validate$9(obj, path = 'ActionLauncherIntentActionsMappingOutputRepresentation') {
|
|
323
346
|
const v_error = (() => {
|
|
@@ -682,11 +705,9 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
682
705
|
const config = {};
|
|
683
706
|
typeCheckConfig$6(untrustedConfig, config, getEinsteinRecommendedItems_ConfigPropertyMetadata);
|
|
684
707
|
const untrustedConfig_conversation = untrustedConfig.conversation;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
config.conversation = untrustedConfig_conversation_object;
|
|
689
|
-
}
|
|
708
|
+
const referenceActionLauncherConversationInputRepresentationValidationError = validate$a(untrustedConfig_conversation);
|
|
709
|
+
if (referenceActionLauncherConversationInputRepresentationValidationError === null) {
|
|
710
|
+
config.conversation = untrustedConfig_conversation;
|
|
690
711
|
}
|
|
691
712
|
return config;
|
|
692
713
|
}
|
|
@@ -1753,4 +1774,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1753
1774
|
});
|
|
1754
1775
|
|
|
1755
1776
|
export { createActionLaunchDetails, getEinsteinRecommendedItems, getRecentActions, getRecentActions_imperative, getServiceCatalogItems, getServiceCatalogItems_imperative, getUserPreference, getUserPreference_imperative, setUserPreference };
|
|
1756
|
-
// version: 1.309.0-
|
|
1777
|
+
// version: 1.309.0-dev12-9b91cf52fb
|
package/src/raml/api.raml
CHANGED
|
@@ -64,12 +64,14 @@ types:
|
|
|
64
64
|
id:
|
|
65
65
|
description: set the conversation ID
|
|
66
66
|
type: string
|
|
67
|
+
required: false
|
|
67
68
|
type:
|
|
68
69
|
description: set the conversation type
|
|
69
70
|
type: string
|
|
70
71
|
enum:
|
|
71
72
|
- MessagingSession
|
|
72
73
|
- VoiceCall
|
|
74
|
+
required: false
|
|
73
75
|
ActionLauncherIntentActionsMappingOutputRepresentation:
|
|
74
76
|
description: Output representation for intents and actions mapping
|
|
75
77
|
type: object
|
|
@@ -89,7 +91,7 @@ types:
|
|
|
89
91
|
properties:
|
|
90
92
|
conversation:
|
|
91
93
|
description: set conversation(id and type)
|
|
92
|
-
type:
|
|
94
|
+
type: ActionLauncherConversationInputRepresentation
|
|
93
95
|
intents:
|
|
94
96
|
description: set the intents for deriving recommendations
|
|
95
97
|
type: array
|