@salesforce/lds-adapters-sales-evfsdk 1.287.0-dev3 → 1.287.0-dev4
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/sales-evfsdk.js +217 -1
- package/dist/es/es2018/types/src/generated/adapters/publishEvent.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectEvfSdkEvent.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/types/ContextualDataInput.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/PublishEventInput.d.ts +7 -6
- package/package.json +3 -3
- package/sfdc/index.js +223 -7
- package/src/raml/api.raml +46 -4
- package/src/raml/luvio.raml +0 -3
|
@@ -91,6 +91,214 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
function validate$3(obj, path = 'ContextualDataInput') {
|
|
95
|
+
const v_error = (() => {
|
|
96
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
97
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
98
|
+
}
|
|
99
|
+
if (obj.clientSession !== undefined) {
|
|
100
|
+
const obj_clientSession = obj.clientSession;
|
|
101
|
+
const path_clientSession = path + '.clientSession';
|
|
102
|
+
let obj_clientSession_union0 = null;
|
|
103
|
+
const obj_clientSession_union0_error = (() => {
|
|
104
|
+
if (typeof obj_clientSession !== 'string') {
|
|
105
|
+
return new TypeError('Expected "string" but received "' + typeof obj_clientSession + '" (at "' + path_clientSession + '")');
|
|
106
|
+
}
|
|
107
|
+
})();
|
|
108
|
+
if (obj_clientSession_union0_error != null) {
|
|
109
|
+
obj_clientSession_union0 = obj_clientSession_union0_error.message;
|
|
110
|
+
}
|
|
111
|
+
let obj_clientSession_union1 = null;
|
|
112
|
+
const obj_clientSession_union1_error = (() => {
|
|
113
|
+
if (obj_clientSession !== null) {
|
|
114
|
+
return new TypeError('Expected "null" but received "' + typeof obj_clientSession + '" (at "' + path_clientSession + '")');
|
|
115
|
+
}
|
|
116
|
+
})();
|
|
117
|
+
if (obj_clientSession_union1_error != null) {
|
|
118
|
+
obj_clientSession_union1 = obj_clientSession_union1_error.message;
|
|
119
|
+
}
|
|
120
|
+
if (obj_clientSession_union0 && obj_clientSession_union1) {
|
|
121
|
+
let message = 'Object doesn\'t match union (at "' + path_clientSession + '")';
|
|
122
|
+
message += '\n' + obj_clientSession_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
123
|
+
message += '\n' + obj_clientSession_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
124
|
+
return new TypeError(message);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (obj.entity !== undefined) {
|
|
128
|
+
const obj_entity = obj.entity;
|
|
129
|
+
const path_entity = path + '.entity';
|
|
130
|
+
let obj_entity_union0 = null;
|
|
131
|
+
const obj_entity_union0_error = (() => {
|
|
132
|
+
if (typeof obj_entity !== 'string') {
|
|
133
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entity + '" (at "' + path_entity + '")');
|
|
134
|
+
}
|
|
135
|
+
})();
|
|
136
|
+
if (obj_entity_union0_error != null) {
|
|
137
|
+
obj_entity_union0 = obj_entity_union0_error.message;
|
|
138
|
+
}
|
|
139
|
+
let obj_entity_union1 = null;
|
|
140
|
+
const obj_entity_union1_error = (() => {
|
|
141
|
+
if (obj_entity !== null) {
|
|
142
|
+
return new TypeError('Expected "null" but received "' + typeof obj_entity + '" (at "' + path_entity + '")');
|
|
143
|
+
}
|
|
144
|
+
})();
|
|
145
|
+
if (obj_entity_union1_error != null) {
|
|
146
|
+
obj_entity_union1 = obj_entity_union1_error.message;
|
|
147
|
+
}
|
|
148
|
+
if (obj_entity_union0 && obj_entity_union1) {
|
|
149
|
+
let message = 'Object doesn\'t match union (at "' + path_entity + '")';
|
|
150
|
+
message += '\n' + obj_entity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
151
|
+
message += '\n' + obj_entity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
152
|
+
return new TypeError(message);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (obj.entityType !== undefined) {
|
|
156
|
+
const obj_entityType = obj.entityType;
|
|
157
|
+
const path_entityType = path + '.entityType';
|
|
158
|
+
let obj_entityType_union0 = null;
|
|
159
|
+
const obj_entityType_union0_error = (() => {
|
|
160
|
+
if (typeof obj_entityType !== 'string') {
|
|
161
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
162
|
+
}
|
|
163
|
+
})();
|
|
164
|
+
if (obj_entityType_union0_error != null) {
|
|
165
|
+
obj_entityType_union0 = obj_entityType_union0_error.message;
|
|
166
|
+
}
|
|
167
|
+
let obj_entityType_union1 = null;
|
|
168
|
+
const obj_entityType_union1_error = (() => {
|
|
169
|
+
if (obj_entityType !== null) {
|
|
170
|
+
return new TypeError('Expected "null" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
171
|
+
}
|
|
172
|
+
})();
|
|
173
|
+
if (obj_entityType_union1_error != null) {
|
|
174
|
+
obj_entityType_union1 = obj_entityType_union1_error.message;
|
|
175
|
+
}
|
|
176
|
+
if (obj_entityType_union0 && obj_entityType_union1) {
|
|
177
|
+
let message = 'Object doesn\'t match union (at "' + path_entityType + '")';
|
|
178
|
+
message += '\n' + obj_entityType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
179
|
+
message += '\n' + obj_entityType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
180
|
+
return new TypeError(message);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (obj.loggedAt !== undefined) {
|
|
184
|
+
obj.loggedAt;
|
|
185
|
+
}
|
|
186
|
+
if (obj.loggerAppName !== undefined) {
|
|
187
|
+
const obj_loggerAppName = obj.loggerAppName;
|
|
188
|
+
const path_loggerAppName = path + '.loggerAppName';
|
|
189
|
+
let obj_loggerAppName_union0 = null;
|
|
190
|
+
const obj_loggerAppName_union0_error = (() => {
|
|
191
|
+
if (typeof obj_loggerAppName !== 'string') {
|
|
192
|
+
return new TypeError('Expected "string" but received "' + typeof obj_loggerAppName + '" (at "' + path_loggerAppName + '")');
|
|
193
|
+
}
|
|
194
|
+
})();
|
|
195
|
+
if (obj_loggerAppName_union0_error != null) {
|
|
196
|
+
obj_loggerAppName_union0 = obj_loggerAppName_union0_error.message;
|
|
197
|
+
}
|
|
198
|
+
let obj_loggerAppName_union1 = null;
|
|
199
|
+
const obj_loggerAppName_union1_error = (() => {
|
|
200
|
+
if (obj_loggerAppName !== null) {
|
|
201
|
+
return new TypeError('Expected "null" but received "' + typeof obj_loggerAppName + '" (at "' + path_loggerAppName + '")');
|
|
202
|
+
}
|
|
203
|
+
})();
|
|
204
|
+
if (obj_loggerAppName_union1_error != null) {
|
|
205
|
+
obj_loggerAppName_union1 = obj_loggerAppName_union1_error.message;
|
|
206
|
+
}
|
|
207
|
+
if (obj_loggerAppName_union0 && obj_loggerAppName_union1) {
|
|
208
|
+
let message = 'Object doesn\'t match union (at "' + path_loggerAppName + '")';
|
|
209
|
+
message += '\n' + obj_loggerAppName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
210
|
+
message += '\n' + obj_loggerAppName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
211
|
+
return new TypeError(message);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
if (obj.loggerName !== undefined) {
|
|
215
|
+
const obj_loggerName = obj.loggerName;
|
|
216
|
+
const path_loggerName = path + '.loggerName';
|
|
217
|
+
let obj_loggerName_union0 = null;
|
|
218
|
+
const obj_loggerName_union0_error = (() => {
|
|
219
|
+
if (typeof obj_loggerName !== 'string') {
|
|
220
|
+
return new TypeError('Expected "string" but received "' + typeof obj_loggerName + '" (at "' + path_loggerName + '")');
|
|
221
|
+
}
|
|
222
|
+
})();
|
|
223
|
+
if (obj_loggerName_union0_error != null) {
|
|
224
|
+
obj_loggerName_union0 = obj_loggerName_union0_error.message;
|
|
225
|
+
}
|
|
226
|
+
let obj_loggerName_union1 = null;
|
|
227
|
+
const obj_loggerName_union1_error = (() => {
|
|
228
|
+
if (obj_loggerName !== null) {
|
|
229
|
+
return new TypeError('Expected "null" but received "' + typeof obj_loggerName + '" (at "' + path_loggerName + '")');
|
|
230
|
+
}
|
|
231
|
+
})();
|
|
232
|
+
if (obj_loggerName_union1_error != null) {
|
|
233
|
+
obj_loggerName_union1 = obj_loggerName_union1_error.message;
|
|
234
|
+
}
|
|
235
|
+
if (obj_loggerName_union0 && obj_loggerName_union1) {
|
|
236
|
+
let message = 'Object doesn\'t match union (at "' + path_loggerName + '")';
|
|
237
|
+
message += '\n' + obj_loggerName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
238
|
+
message += '\n' + obj_loggerName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
239
|
+
return new TypeError(message);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
if (obj.pageContext !== undefined) {
|
|
243
|
+
const obj_pageContext = obj.pageContext;
|
|
244
|
+
const path_pageContext = path + '.pageContext';
|
|
245
|
+
let obj_pageContext_union0 = null;
|
|
246
|
+
const obj_pageContext_union0_error = (() => {
|
|
247
|
+
if (typeof obj_pageContext !== 'string') {
|
|
248
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pageContext + '" (at "' + path_pageContext + '")');
|
|
249
|
+
}
|
|
250
|
+
})();
|
|
251
|
+
if (obj_pageContext_union0_error != null) {
|
|
252
|
+
obj_pageContext_union0 = obj_pageContext_union0_error.message;
|
|
253
|
+
}
|
|
254
|
+
let obj_pageContext_union1 = null;
|
|
255
|
+
const obj_pageContext_union1_error = (() => {
|
|
256
|
+
if (obj_pageContext !== null) {
|
|
257
|
+
return new TypeError('Expected "null" but received "' + typeof obj_pageContext + '" (at "' + path_pageContext + '")');
|
|
258
|
+
}
|
|
259
|
+
})();
|
|
260
|
+
if (obj_pageContext_union1_error != null) {
|
|
261
|
+
obj_pageContext_union1 = obj_pageContext_union1_error.message;
|
|
262
|
+
}
|
|
263
|
+
if (obj_pageContext_union0 && obj_pageContext_union1) {
|
|
264
|
+
let message = 'Object doesn\'t match union (at "' + path_pageContext + '")';
|
|
265
|
+
message += '\n' + obj_pageContext_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
266
|
+
message += '\n' + obj_pageContext_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
267
|
+
return new TypeError(message);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
if (obj.pageUrl !== undefined) {
|
|
271
|
+
const obj_pageUrl = obj.pageUrl;
|
|
272
|
+
const path_pageUrl = path + '.pageUrl';
|
|
273
|
+
let obj_pageUrl_union0 = null;
|
|
274
|
+
const obj_pageUrl_union0_error = (() => {
|
|
275
|
+
if (typeof obj_pageUrl !== 'string') {
|
|
276
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pageUrl + '" (at "' + path_pageUrl + '")');
|
|
277
|
+
}
|
|
278
|
+
})();
|
|
279
|
+
if (obj_pageUrl_union0_error != null) {
|
|
280
|
+
obj_pageUrl_union0 = obj_pageUrl_union0_error.message;
|
|
281
|
+
}
|
|
282
|
+
let obj_pageUrl_union1 = null;
|
|
283
|
+
const obj_pageUrl_union1_error = (() => {
|
|
284
|
+
if (obj_pageUrl !== null) {
|
|
285
|
+
return new TypeError('Expected "null" but received "' + typeof obj_pageUrl + '" (at "' + path_pageUrl + '")');
|
|
286
|
+
}
|
|
287
|
+
})();
|
|
288
|
+
if (obj_pageUrl_union1_error != null) {
|
|
289
|
+
obj_pageUrl_union1 = obj_pageUrl_union1_error.message;
|
|
290
|
+
}
|
|
291
|
+
if (obj_pageUrl_union0 && obj_pageUrl_union1) {
|
|
292
|
+
let message = 'Object doesn\'t match union (at "' + path_pageUrl + '")';
|
|
293
|
+
message += '\n' + obj_pageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
294
|
+
message += '\n' + obj_pageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
295
|
+
return new TypeError(message);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
})();
|
|
299
|
+
return v_error === undefined ? null : v_error;
|
|
300
|
+
}
|
|
301
|
+
|
|
94
302
|
const VERSION$2 = "6cd59f422d42dae130829d614e96fd00";
|
|
95
303
|
function validate$2(obj, path = 'ResponseStatus') {
|
|
96
304
|
const v_error = (() => {
|
|
@@ -255,7 +463,7 @@ function createResourceRequest$1(config) {
|
|
|
255
463
|
|
|
256
464
|
const adapterName$1 = 'publishEvent';
|
|
257
465
|
const publishEvent_ConfigPropertyMetadata = [
|
|
258
|
-
generateParamConfigMetadata('
|
|
466
|
+
generateParamConfigMetadata('contextualData', false, 2 /* Body */, 4 /* Unsupported */),
|
|
259
467
|
generateParamConfigMetadata('feature', true, 2 /* Body */, 0 /* String */),
|
|
260
468
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
261
469
|
generateParamConfigMetadata('score', true, 2 /* Body */, 3 /* Integer */),
|
|
@@ -266,6 +474,14 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(publishEvent
|
|
|
266
474
|
function typeCheckConfig$1(untrustedConfig) {
|
|
267
475
|
const config = {};
|
|
268
476
|
typeCheckConfig$2(untrustedConfig, config, publishEvent_ConfigPropertyMetadata);
|
|
477
|
+
const untrustedConfig_contextualData = untrustedConfig.contextualData;
|
|
478
|
+
const referenceContextualDataInputValidationError = validate$3(untrustedConfig_contextualData);
|
|
479
|
+
if (referenceContextualDataInputValidationError === null) {
|
|
480
|
+
config.contextualData = untrustedConfig_contextualData;
|
|
481
|
+
}
|
|
482
|
+
if (untrustedConfig_contextualData === null) {
|
|
483
|
+
config.contextualData = untrustedConfig_contextualData;
|
|
484
|
+
}
|
|
269
485
|
return config;
|
|
270
486
|
}
|
|
271
487
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1,12 +1,13 @@
|
|
|
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 { ContextualDataInput as types_ContextualDataInput_ContextualDataInput } from '../types/ContextualDataInput';
|
|
3
4
|
import { ResourceRequestConfig as resources_postConnectEvfSdkEvent_ResourceRequestConfig } from '../resources/postConnectEvfSdkEvent';
|
|
4
5
|
import { PublishEventOutput as types_PublishEventOutput_PublishEventOutput } from '../types/PublishEventOutput';
|
|
5
6
|
export declare const adapterName = "publishEvent";
|
|
6
7
|
export declare const publishEvent_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
8
|
export declare const publishEvent_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
9
|
export interface PublishEventConfig {
|
|
9
|
-
|
|
10
|
+
contextualData?: types_ContextualDataInput_ContextualDataInput | null;
|
|
10
11
|
feature: string;
|
|
11
12
|
name: string;
|
|
12
13
|
score: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ContextualDataInput as types_ContextualDataInput_ContextualDataInput } from '../types/ContextualDataInput';
|
|
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 { PublishEventOutput as types_PublishEventOutput_PublishEventOutput } from '../types/PublishEventOutput';
|
|
3
4
|
export interface ResourceRequestConfig {
|
|
4
5
|
body: {
|
|
5
|
-
|
|
6
|
+
contextualData?: types_ContextualDataInput_ContextualDataInput | null;
|
|
6
7
|
feature: string;
|
|
7
8
|
name: string;
|
|
8
9
|
score: number;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 = "c91b3a22bbfd0653d6e782d7329f74b6";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ContextualDataInput, existing: ContextualDataInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContextualDataInputNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ContextualDataInputNormalized, incoming: ContextualDataInputNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ContextualDataInput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation for contextual log data derived from o11y logMeta
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ContextualDataInputNormalized {
|
|
17
|
+
/** The client session id - derived from o11y logMeta */
|
|
18
|
+
clientSession?: string | null;
|
|
19
|
+
/** The recordId of the object - derived from o11y logMeta */
|
|
20
|
+
entity?: string | null;
|
|
21
|
+
/** The sObject type - derived from o11y logMeta */
|
|
22
|
+
entityType?: string | null;
|
|
23
|
+
/** The time when the log was executed on the client side, sinch epoch - derived from o11y logMeta */
|
|
24
|
+
loggedAt?: number;
|
|
25
|
+
/** In the context of which logger app this logline has executed - derived from o11y logMeta */
|
|
26
|
+
loggerAppName?: string | null;
|
|
27
|
+
/** The logger name - derived from o11y logMeta */
|
|
28
|
+
loggerName?: string | null;
|
|
29
|
+
/** The page location - derived from o11y logMeta */
|
|
30
|
+
pageContext?: string | null;
|
|
31
|
+
/** The page url - derived from o11y logMeta */
|
|
32
|
+
pageUrl?: string | null;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Input representation for contextual log data derived from o11y logMeta
|
|
36
|
+
*
|
|
37
|
+
* Keys:
|
|
38
|
+
* (none)
|
|
39
|
+
*/
|
|
40
|
+
export interface ContextualDataInput {
|
|
41
|
+
clientSession?: string | null;
|
|
42
|
+
entity?: string | null;
|
|
43
|
+
entityType?: string | null;
|
|
44
|
+
loggedAt?: number;
|
|
45
|
+
loggerAppName?: string | null;
|
|
46
|
+
loggerName?: string | null;
|
|
47
|
+
pageContext?: string | null;
|
|
48
|
+
pageUrl?: string | null;
|
|
49
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ContextualDataInput as ContextualDataInput_ContextualDataInput } from './ContextualDataInput';
|
|
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 = "8d8085e07ccfccf02411ca4eddae1575";
|
|
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: PublishEventInput, existing: PublishEventInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PublishEventInputNormalized;
|
|
@@ -8,14 +9,14 @@ export declare function equals(existing: PublishEventInputNormalized, incoming:
|
|
|
8
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
10
|
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PublishEventInput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
11
|
/**
|
|
11
|
-
* Input representation for the EVF
|
|
12
|
+
* Input representation for the EVF publish engagement event endpoint
|
|
12
13
|
*
|
|
13
14
|
* Keys:
|
|
14
15
|
* (none)
|
|
15
16
|
*/
|
|
16
17
|
export interface PublishEventInputNormalized {
|
|
17
|
-
/**
|
|
18
|
-
|
|
18
|
+
/** Additional log information derived from o11y logMeta */
|
|
19
|
+
contextualData?: ContextualDataInput_ContextualDataInput | null;
|
|
19
20
|
/** The feature/app the event belongs to - of type EVFFeatureEnum */
|
|
20
21
|
feature: string;
|
|
21
22
|
/** The name of the event i.e. the name of the button clicked, the form name that was submitted etc */
|
|
@@ -26,13 +27,13 @@ export interface PublishEventInputNormalized {
|
|
|
26
27
|
type: string;
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
|
-
* Input representation for the EVF
|
|
30
|
+
* Input representation for the EVF publish engagement event endpoint
|
|
30
31
|
*
|
|
31
32
|
* Keys:
|
|
32
33
|
* (none)
|
|
33
34
|
*/
|
|
34
35
|
export interface PublishEventInput {
|
|
35
|
-
|
|
36
|
+
contextualData?: ContextualDataInput_ContextualDataInput | null;
|
|
36
37
|
feature: string;
|
|
37
38
|
name: string;
|
|
38
39
|
score: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sales-evfsdk",
|
|
3
|
-
"version": "1.287.0-
|
|
3
|
+
"version": "1.287.0-dev4",
|
|
4
4
|
"description": "Einstein Value Framework set of endpoints for UI Analytics",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/sales-evfsdk.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.287.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.287.0-dev4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.287.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.287.0-dev4"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
const VERSION$2 = "6cd59f422d42dae130829d614e96fd00";
|
|
105
|
-
function validate$
|
|
105
|
+
function validate$3(obj, path = 'ResponseStatus') {
|
|
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 + '")');
|
|
@@ -152,7 +152,7 @@ function equals$2(existing, incoming) {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
const VERSION$1 = "944b3e6ec30480d518e5f389303c2957";
|
|
155
|
-
function validate$
|
|
155
|
+
function validate$2(obj, path = 'EventTypesOutput') {
|
|
156
156
|
const v_error = (() => {
|
|
157
157
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
158
158
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -171,7 +171,7 @@ function validate$1(obj, path = 'EventTypesOutput') {
|
|
|
171
171
|
}
|
|
172
172
|
const obj_status = obj.status;
|
|
173
173
|
const path_status = path + '.status';
|
|
174
|
-
const referencepath_statusValidationError = validate$
|
|
174
|
+
const referencepath_statusValidationError = validate$3(obj_status, path_status);
|
|
175
175
|
if (referencepath_statusValidationError !== null) {
|
|
176
176
|
let message = 'Object doesn\'t match ResponseStatus (at "' + path_status + '")\n';
|
|
177
177
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -224,7 +224,7 @@ function equals$1(existing, incoming) {
|
|
|
224
224
|
}
|
|
225
225
|
const ingest$1 = function EventTypesOutputIngest(input, path, luvio, store, timestamp) {
|
|
226
226
|
if (process.env.NODE_ENV !== 'production') {
|
|
227
|
-
const validateError = validate$
|
|
227
|
+
const validateError = validate$2(input);
|
|
228
228
|
if (validateError !== null) {
|
|
229
229
|
throw validateError;
|
|
230
230
|
}
|
|
@@ -373,6 +373,214 @@ const getEventTypesAdapterFactory = (luvio) => function evfSdk__getEventTypes(un
|
|
|
373
373
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
374
374
|
};
|
|
375
375
|
|
|
376
|
+
function validate$1(obj, path = 'ContextualDataInput') {
|
|
377
|
+
const v_error = (() => {
|
|
378
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
379
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
380
|
+
}
|
|
381
|
+
if (obj.clientSession !== undefined) {
|
|
382
|
+
const obj_clientSession = obj.clientSession;
|
|
383
|
+
const path_clientSession = path + '.clientSession';
|
|
384
|
+
let obj_clientSession_union0 = null;
|
|
385
|
+
const obj_clientSession_union0_error = (() => {
|
|
386
|
+
if (typeof obj_clientSession !== 'string') {
|
|
387
|
+
return new TypeError('Expected "string" but received "' + typeof obj_clientSession + '" (at "' + path_clientSession + '")');
|
|
388
|
+
}
|
|
389
|
+
})();
|
|
390
|
+
if (obj_clientSession_union0_error != null) {
|
|
391
|
+
obj_clientSession_union0 = obj_clientSession_union0_error.message;
|
|
392
|
+
}
|
|
393
|
+
let obj_clientSession_union1 = null;
|
|
394
|
+
const obj_clientSession_union1_error = (() => {
|
|
395
|
+
if (obj_clientSession !== null) {
|
|
396
|
+
return new TypeError('Expected "null" but received "' + typeof obj_clientSession + '" (at "' + path_clientSession + '")');
|
|
397
|
+
}
|
|
398
|
+
})();
|
|
399
|
+
if (obj_clientSession_union1_error != null) {
|
|
400
|
+
obj_clientSession_union1 = obj_clientSession_union1_error.message;
|
|
401
|
+
}
|
|
402
|
+
if (obj_clientSession_union0 && obj_clientSession_union1) {
|
|
403
|
+
let message = 'Object doesn\'t match union (at "' + path_clientSession + '")';
|
|
404
|
+
message += '\n' + obj_clientSession_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
405
|
+
message += '\n' + obj_clientSession_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
406
|
+
return new TypeError(message);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
if (obj.entity !== undefined) {
|
|
410
|
+
const obj_entity = obj.entity;
|
|
411
|
+
const path_entity = path + '.entity';
|
|
412
|
+
let obj_entity_union0 = null;
|
|
413
|
+
const obj_entity_union0_error = (() => {
|
|
414
|
+
if (typeof obj_entity !== 'string') {
|
|
415
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entity + '" (at "' + path_entity + '")');
|
|
416
|
+
}
|
|
417
|
+
})();
|
|
418
|
+
if (obj_entity_union0_error != null) {
|
|
419
|
+
obj_entity_union0 = obj_entity_union0_error.message;
|
|
420
|
+
}
|
|
421
|
+
let obj_entity_union1 = null;
|
|
422
|
+
const obj_entity_union1_error = (() => {
|
|
423
|
+
if (obj_entity !== null) {
|
|
424
|
+
return new TypeError('Expected "null" but received "' + typeof obj_entity + '" (at "' + path_entity + '")');
|
|
425
|
+
}
|
|
426
|
+
})();
|
|
427
|
+
if (obj_entity_union1_error != null) {
|
|
428
|
+
obj_entity_union1 = obj_entity_union1_error.message;
|
|
429
|
+
}
|
|
430
|
+
if (obj_entity_union0 && obj_entity_union1) {
|
|
431
|
+
let message = 'Object doesn\'t match union (at "' + path_entity + '")';
|
|
432
|
+
message += '\n' + obj_entity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
433
|
+
message += '\n' + obj_entity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
434
|
+
return new TypeError(message);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
if (obj.entityType !== undefined) {
|
|
438
|
+
const obj_entityType = obj.entityType;
|
|
439
|
+
const path_entityType = path + '.entityType';
|
|
440
|
+
let obj_entityType_union0 = null;
|
|
441
|
+
const obj_entityType_union0_error = (() => {
|
|
442
|
+
if (typeof obj_entityType !== 'string') {
|
|
443
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
444
|
+
}
|
|
445
|
+
})();
|
|
446
|
+
if (obj_entityType_union0_error != null) {
|
|
447
|
+
obj_entityType_union0 = obj_entityType_union0_error.message;
|
|
448
|
+
}
|
|
449
|
+
let obj_entityType_union1 = null;
|
|
450
|
+
const obj_entityType_union1_error = (() => {
|
|
451
|
+
if (obj_entityType !== null) {
|
|
452
|
+
return new TypeError('Expected "null" but received "' + typeof obj_entityType + '" (at "' + path_entityType + '")');
|
|
453
|
+
}
|
|
454
|
+
})();
|
|
455
|
+
if (obj_entityType_union1_error != null) {
|
|
456
|
+
obj_entityType_union1 = obj_entityType_union1_error.message;
|
|
457
|
+
}
|
|
458
|
+
if (obj_entityType_union0 && obj_entityType_union1) {
|
|
459
|
+
let message = 'Object doesn\'t match union (at "' + path_entityType + '")';
|
|
460
|
+
message += '\n' + obj_entityType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
461
|
+
message += '\n' + obj_entityType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
462
|
+
return new TypeError(message);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
if (obj.loggedAt !== undefined) {
|
|
466
|
+
obj.loggedAt;
|
|
467
|
+
}
|
|
468
|
+
if (obj.loggerAppName !== undefined) {
|
|
469
|
+
const obj_loggerAppName = obj.loggerAppName;
|
|
470
|
+
const path_loggerAppName = path + '.loggerAppName';
|
|
471
|
+
let obj_loggerAppName_union0 = null;
|
|
472
|
+
const obj_loggerAppName_union0_error = (() => {
|
|
473
|
+
if (typeof obj_loggerAppName !== 'string') {
|
|
474
|
+
return new TypeError('Expected "string" but received "' + typeof obj_loggerAppName + '" (at "' + path_loggerAppName + '")');
|
|
475
|
+
}
|
|
476
|
+
})();
|
|
477
|
+
if (obj_loggerAppName_union0_error != null) {
|
|
478
|
+
obj_loggerAppName_union0 = obj_loggerAppName_union0_error.message;
|
|
479
|
+
}
|
|
480
|
+
let obj_loggerAppName_union1 = null;
|
|
481
|
+
const obj_loggerAppName_union1_error = (() => {
|
|
482
|
+
if (obj_loggerAppName !== null) {
|
|
483
|
+
return new TypeError('Expected "null" but received "' + typeof obj_loggerAppName + '" (at "' + path_loggerAppName + '")');
|
|
484
|
+
}
|
|
485
|
+
})();
|
|
486
|
+
if (obj_loggerAppName_union1_error != null) {
|
|
487
|
+
obj_loggerAppName_union1 = obj_loggerAppName_union1_error.message;
|
|
488
|
+
}
|
|
489
|
+
if (obj_loggerAppName_union0 && obj_loggerAppName_union1) {
|
|
490
|
+
let message = 'Object doesn\'t match union (at "' + path_loggerAppName + '")';
|
|
491
|
+
message += '\n' + obj_loggerAppName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
492
|
+
message += '\n' + obj_loggerAppName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
493
|
+
return new TypeError(message);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
if (obj.loggerName !== undefined) {
|
|
497
|
+
const obj_loggerName = obj.loggerName;
|
|
498
|
+
const path_loggerName = path + '.loggerName';
|
|
499
|
+
let obj_loggerName_union0 = null;
|
|
500
|
+
const obj_loggerName_union0_error = (() => {
|
|
501
|
+
if (typeof obj_loggerName !== 'string') {
|
|
502
|
+
return new TypeError('Expected "string" but received "' + typeof obj_loggerName + '" (at "' + path_loggerName + '")');
|
|
503
|
+
}
|
|
504
|
+
})();
|
|
505
|
+
if (obj_loggerName_union0_error != null) {
|
|
506
|
+
obj_loggerName_union0 = obj_loggerName_union0_error.message;
|
|
507
|
+
}
|
|
508
|
+
let obj_loggerName_union1 = null;
|
|
509
|
+
const obj_loggerName_union1_error = (() => {
|
|
510
|
+
if (obj_loggerName !== null) {
|
|
511
|
+
return new TypeError('Expected "null" but received "' + typeof obj_loggerName + '" (at "' + path_loggerName + '")');
|
|
512
|
+
}
|
|
513
|
+
})();
|
|
514
|
+
if (obj_loggerName_union1_error != null) {
|
|
515
|
+
obj_loggerName_union1 = obj_loggerName_union1_error.message;
|
|
516
|
+
}
|
|
517
|
+
if (obj_loggerName_union0 && obj_loggerName_union1) {
|
|
518
|
+
let message = 'Object doesn\'t match union (at "' + path_loggerName + '")';
|
|
519
|
+
message += '\n' + obj_loggerName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
520
|
+
message += '\n' + obj_loggerName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
521
|
+
return new TypeError(message);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
if (obj.pageContext !== undefined) {
|
|
525
|
+
const obj_pageContext = obj.pageContext;
|
|
526
|
+
const path_pageContext = path + '.pageContext';
|
|
527
|
+
let obj_pageContext_union0 = null;
|
|
528
|
+
const obj_pageContext_union0_error = (() => {
|
|
529
|
+
if (typeof obj_pageContext !== 'string') {
|
|
530
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pageContext + '" (at "' + path_pageContext + '")');
|
|
531
|
+
}
|
|
532
|
+
})();
|
|
533
|
+
if (obj_pageContext_union0_error != null) {
|
|
534
|
+
obj_pageContext_union0 = obj_pageContext_union0_error.message;
|
|
535
|
+
}
|
|
536
|
+
let obj_pageContext_union1 = null;
|
|
537
|
+
const obj_pageContext_union1_error = (() => {
|
|
538
|
+
if (obj_pageContext !== null) {
|
|
539
|
+
return new TypeError('Expected "null" but received "' + typeof obj_pageContext + '" (at "' + path_pageContext + '")');
|
|
540
|
+
}
|
|
541
|
+
})();
|
|
542
|
+
if (obj_pageContext_union1_error != null) {
|
|
543
|
+
obj_pageContext_union1 = obj_pageContext_union1_error.message;
|
|
544
|
+
}
|
|
545
|
+
if (obj_pageContext_union0 && obj_pageContext_union1) {
|
|
546
|
+
let message = 'Object doesn\'t match union (at "' + path_pageContext + '")';
|
|
547
|
+
message += '\n' + obj_pageContext_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
548
|
+
message += '\n' + obj_pageContext_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
549
|
+
return new TypeError(message);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
if (obj.pageUrl !== undefined) {
|
|
553
|
+
const obj_pageUrl = obj.pageUrl;
|
|
554
|
+
const path_pageUrl = path + '.pageUrl';
|
|
555
|
+
let obj_pageUrl_union0 = null;
|
|
556
|
+
const obj_pageUrl_union0_error = (() => {
|
|
557
|
+
if (typeof obj_pageUrl !== 'string') {
|
|
558
|
+
return new TypeError('Expected "string" but received "' + typeof obj_pageUrl + '" (at "' + path_pageUrl + '")');
|
|
559
|
+
}
|
|
560
|
+
})();
|
|
561
|
+
if (obj_pageUrl_union0_error != null) {
|
|
562
|
+
obj_pageUrl_union0 = obj_pageUrl_union0_error.message;
|
|
563
|
+
}
|
|
564
|
+
let obj_pageUrl_union1 = null;
|
|
565
|
+
const obj_pageUrl_union1_error = (() => {
|
|
566
|
+
if (obj_pageUrl !== null) {
|
|
567
|
+
return new TypeError('Expected "null" but received "' + typeof obj_pageUrl + '" (at "' + path_pageUrl + '")');
|
|
568
|
+
}
|
|
569
|
+
})();
|
|
570
|
+
if (obj_pageUrl_union1_error != null) {
|
|
571
|
+
obj_pageUrl_union1 = obj_pageUrl_union1_error.message;
|
|
572
|
+
}
|
|
573
|
+
if (obj_pageUrl_union0 && obj_pageUrl_union1) {
|
|
574
|
+
let message = 'Object doesn\'t match union (at "' + path_pageUrl + '")';
|
|
575
|
+
message += '\n' + obj_pageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
576
|
+
message += '\n' + obj_pageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
577
|
+
return new TypeError(message);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
})();
|
|
581
|
+
return v_error === undefined ? null : v_error;
|
|
582
|
+
}
|
|
583
|
+
|
|
376
584
|
const VERSION = "8e3c59d1edb1e360b97a3a87ead05a6e";
|
|
377
585
|
function validate(obj, path = 'PublishEventOutput') {
|
|
378
586
|
const v_error = (() => {
|
|
@@ -381,7 +589,7 @@ function validate(obj, path = 'PublishEventOutput') {
|
|
|
381
589
|
}
|
|
382
590
|
const obj_status = obj.status;
|
|
383
591
|
const path_status = path + '.status';
|
|
384
|
-
const referencepath_statusValidationError = validate$
|
|
592
|
+
const referencepath_statusValidationError = validate$3(obj_status, path_status);
|
|
385
593
|
if (referencepath_statusValidationError !== null) {
|
|
386
594
|
let message = 'Object doesn\'t match ResponseStatus (at "' + path_status + '")\n';
|
|
387
595
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -487,7 +695,7 @@ function createResourceRequest(config) {
|
|
|
487
695
|
|
|
488
696
|
const adapterName = 'publishEvent';
|
|
489
697
|
const publishEvent_ConfigPropertyMetadata = [
|
|
490
|
-
generateParamConfigMetadata('
|
|
698
|
+
generateParamConfigMetadata('contextualData', false, 2 /* Body */, 4 /* Unsupported */),
|
|
491
699
|
generateParamConfigMetadata('feature', true, 2 /* Body */, 0 /* String */),
|
|
492
700
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
493
701
|
generateParamConfigMetadata('score', true, 2 /* Body */, 3 /* Integer */),
|
|
@@ -498,6 +706,14 @@ const createResourceParams = /*#__PURE__*/ createResourceParams$2(publishEvent_C
|
|
|
498
706
|
function typeCheckConfig(untrustedConfig) {
|
|
499
707
|
const config = {};
|
|
500
708
|
typeCheckConfig$2(untrustedConfig, config, publishEvent_ConfigPropertyMetadata);
|
|
709
|
+
const untrustedConfig_contextualData = untrustedConfig.contextualData;
|
|
710
|
+
const referenceContextualDataInputValidationError = validate$1(untrustedConfig_contextualData);
|
|
711
|
+
if (referenceContextualDataInputValidationError === null) {
|
|
712
|
+
config.contextualData = untrustedConfig_contextualData;
|
|
713
|
+
}
|
|
714
|
+
if (untrustedConfig_contextualData === null) {
|
|
715
|
+
config.contextualData = untrustedConfig_contextualData;
|
|
716
|
+
}
|
|
501
717
|
return config;
|
|
502
718
|
}
|
|
503
719
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -569,4 +785,4 @@ withDefaultLuvio((luvio) => {
|
|
|
569
785
|
});
|
|
570
786
|
|
|
571
787
|
export { getEventTypes, getEventTypes_imperative, publishEvent };
|
|
572
|
-
// version: 1.287.0-
|
|
788
|
+
// version: 1.287.0-dev4-cfb9f2785
|
package/src/raml/api.raml
CHANGED
|
@@ -25,6 +25,46 @@ annotationTypes:
|
|
|
25
25
|
type: string
|
|
26
26
|
allowedTargets: TypeDeclaration
|
|
27
27
|
types:
|
|
28
|
+
ContextualDataInput:
|
|
29
|
+
description: Input representation for contextual log data derived from o11y logMeta
|
|
30
|
+
type: object
|
|
31
|
+
# todo hand-rolled W-15423698 required=false + added nil as type for each property in contextualDataInput
|
|
32
|
+
properties:
|
|
33
|
+
clientSession:
|
|
34
|
+
description: The client session id - derived from o11y logMeta
|
|
35
|
+
type: string | nil
|
|
36
|
+
required: false
|
|
37
|
+
entity:
|
|
38
|
+
description: The recordId of the object - derived from o11y logMeta
|
|
39
|
+
type: string | nil
|
|
40
|
+
required: false
|
|
41
|
+
entityType:
|
|
42
|
+
description: The sObject type - derived from o11y logMeta
|
|
43
|
+
type: string | nil
|
|
44
|
+
required: false
|
|
45
|
+
loggedAt:
|
|
46
|
+
description: The time when the log was executed on the client side, sinch
|
|
47
|
+
epoch - derived from o11y logMeta
|
|
48
|
+
format: double
|
|
49
|
+
type: number
|
|
50
|
+
required: false
|
|
51
|
+
loggerAppName:
|
|
52
|
+
description: In the context of which logger app this logline has executed
|
|
53
|
+
- derived from o11y logMeta
|
|
54
|
+
type: string | nil
|
|
55
|
+
required: false
|
|
56
|
+
loggerName:
|
|
57
|
+
description: The logger name - derived from o11y logMeta
|
|
58
|
+
type: string | nil
|
|
59
|
+
required: false
|
|
60
|
+
pageContext:
|
|
61
|
+
description: The page location - derived from o11y logMeta
|
|
62
|
+
type: string | nil
|
|
63
|
+
required: false
|
|
64
|
+
pageUrl:
|
|
65
|
+
description: The page url - derived from o11y logMeta
|
|
66
|
+
type: string | nil
|
|
67
|
+
required: false
|
|
28
68
|
EventTypesOutput:
|
|
29
69
|
description: A list of valid event types of the EVF SDK API 1.0 Resource.
|
|
30
70
|
type: object
|
|
@@ -38,12 +78,14 @@ types:
|
|
|
38
78
|
description: Get the status of the HTTP response
|
|
39
79
|
type: ResponseStatus
|
|
40
80
|
PublishEventInput:
|
|
41
|
-
description: Input representation for the EVF
|
|
81
|
+
description: Input representation for the EVF publish engagement event endpoint
|
|
42
82
|
type: object
|
|
43
83
|
properties:
|
|
44
|
-
|
|
45
|
-
description:
|
|
46
|
-
|
|
84
|
+
contextualData:
|
|
85
|
+
description: Additional log information derived from o11y logMeta
|
|
86
|
+
# todo hand-rolled W-15423698 changed from object to ContextualDataInput | nil
|
|
87
|
+
type: ContextualDataInput | nil
|
|
88
|
+
required: false
|
|
47
89
|
feature:
|
|
48
90
|
description: The feature/app the event belongs to - of type EVFFeatureEnum
|
|
49
91
|
type: string
|