@salesforce/lds-adapters-industries-omnianalytics 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 (27) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-omnianalytics.js +1870 -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/fetchOmniAnalyticsLogs.d.ts +34 -0
  5. package/dist/es/es2018/types/src/generated/adapters/fetchOmniAnalyticsMetadata.d.ts +30 -0
  6. package/dist/es/es2018/types/src/generated/adapters/storeOmniAnalyticsLogs.d.ts +19 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectOmniAnalyticsAnalyticsMetadata.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectOmniAnalyticsGetAnalyticsLogs.d.ts +22 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectOmniAnalyticsAnalyticsLogs.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogCreateRepresentation.d.ts +47 -0
  13. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogDetailRepresentation.d.ts +46 -0
  14. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogInputRepresentation.d.ts +40 -0
  15. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogsRepresentation.d.ts +33 -0
  16. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsMetadataRepresentation.d.ts +46 -0
  17. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsSettingRepresentation.d.ts +31 -0
  18. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingComponentRepresentation.d.ts +46 -0
  19. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingExternalDefRepresentation.d.ts +46 -0
  20. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingExternalEventDefRepresentation.d.ts +49 -0
  21. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingGroupRepresentation.d.ts +55 -0
  22. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  23. package/package.json +69 -0
  24. package/sfdc/index.d.ts +1 -0
  25. package/sfdc/index.js +1927 -0
  26. package/src/raml/api.raml +377 -0
  27. package/src/raml/luvio.raml +35 -0
@@ -0,0 +1,377 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '60.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
+ OmniAnalyticsLogCreateRepresentation:
29
+ description: Mock Description
30
+ type: object
31
+ properties:
32
+ eventPublishStatus:
33
+ description: The platform event publish status if enabled
34
+ type: string
35
+ required: false
36
+ externalStatusMesg:
37
+ description: A descriptive status message from external analytics vendors
38
+ if enabled
39
+ type: string
40
+ required: false
41
+ internalEventId:
42
+ description: A 36 character unique identifier for the Omni Analytics log record
43
+ created for internal events if enabled
44
+ type: string
45
+ required: false
46
+ responseId:
47
+ description: A descriptive status message from external analytics vendors
48
+ if enabled
49
+ type: string
50
+ OmniAnalyticsLogDetailRepresentation:
51
+ description: Mock Description
52
+ type: object
53
+ properties:
54
+ applicationLogDate:
55
+ description: The date and time at which the Omni Analytics log was generated
56
+ by the application’s action
57
+ type: string
58
+ applicationName:
59
+ description: Specifies the name of the application.
60
+ type: string
61
+ componentId:
62
+ description: The record ID within the context of the associated application's
63
+ component that can be used to retrieve the omni analytics log
64
+ type: string
65
+ componentType:
66
+ description: Specifies the name of the component type.
67
+ type: string
68
+ eventType:
69
+ description: Specifies a component event type, such as a specific application
70
+ action like a page load or button clicked, of the associated application
71
+ component.
72
+ type: string
73
+ name:
74
+ description: A name to identify the Omni Analytics log record
75
+ type: string
76
+ omniAnalyticsLog:
77
+ description: The contents of the Omni Analytics log as a Json string
78
+ type: string
79
+ OmniAnalyticsLogInputRepresentation:
80
+ description: Mock Description
81
+ type: object
82
+ properties:
83
+ analyticsLog:
84
+ description: The contents of the Omni Analytics log as a Json string
85
+ type: string
86
+ analyticsLogDate:
87
+ description: The date and time at which the Omni Analytics log was generated
88
+ by the application’s action
89
+ type: string
90
+ analyticsLogOwnerId:
91
+ description: The 18 character Salesforce user id of the user who will own
92
+ the analytics log. If not specified, will default to the user in whose context
93
+ the call is being made.
94
+ type: string
95
+ componentId:
96
+ description: The record Id of the component like an Omniscript, Card or IntegrationProcedure
97
+ whose analytics logs are being written
98
+ type: string
99
+ eventType:
100
+ description: The event type generated by the component. This gets stored in
101
+ the primary filter field in DES for internal events
102
+ type: string
103
+ OmniAnalyticsLogsRepresentation:
104
+ description: Mock Description
105
+ type: object
106
+ properties:
107
+ actionLogs:
108
+ description: A list of OmniAnalyticsLogDetailRepresentation
109
+ type: array
110
+ items:
111
+ type: OmniAnalyticsLogDetailRepresentation
112
+ queryMore:
113
+ description: A string that can be passed to the next call to fetch the next
114
+ batch of OmniAnalytics Log records
115
+ type: string
116
+ required: false
117
+ OmniAnalyticsMetadataRepresentation:
118
+ description: Mock Description
119
+ type: object
120
+ properties:
121
+ omniAnalyticsSettings:
122
+ description: The list of org wide Omni Analytics settings
123
+ type: array
124
+ required: false
125
+ items:
126
+ type: OmniAnalyticsSettingRepresentation
127
+ trackingComponents:
128
+ description: A list of OmniAnalyticsTrackingComponentRepresentation
129
+ type: array
130
+ required: false
131
+ items:
132
+ type: OmniAnalyticsTrackingComponentRepresentation
133
+ trackingExternalDefintions:
134
+ description: A list of OmniAnalyticsTrackingExternalDefRepresentation
135
+ type: array
136
+ required: false
137
+ items:
138
+ type: OmniAnalyticsTrackingExternalDefRepresentation
139
+ trackingExternalEventDefintions:
140
+ description: A list of OmniAnalyticsTrackingExternalEventDefRepresentation
141
+ type: array
142
+ required: false
143
+ items:
144
+ type: OmniAnalyticsTrackingExternalEventDefRepresentation
145
+ trackingGroups:
146
+ description: A list of OmniAnalyticsTrackingGroupRepresentation
147
+ type: array
148
+ required: false
149
+ items:
150
+ type: OmniAnalyticsTrackingGroupRepresentation
151
+ OmniAnalyticsSettingRepresentation:
152
+ description: Mock Description
153
+ type: object
154
+ properties:
155
+ name:
156
+ description: Name of the Omni Analytics setting
157
+ type: string
158
+ value:
159
+ description: Value of the setting
160
+ type: string
161
+ required: false
162
+ OmniAnalyticsTrackingComponentRepresentation:
163
+ description: Mock Description
164
+ type: object
165
+ properties:
166
+ componentType:
167
+ description: Specifies the type of component being tracked, for example, OmniScript
168
+ or FlexCard.
169
+ type: string
170
+ required: false
171
+ componentVersion:
172
+ description: The version of the component that is being tracked.
173
+ type: string
174
+ identifier:
175
+ description: The 18 character Salesforce record Identifier
176
+ type: string
177
+ componentIdentifier:
178
+ description: The 18 character Salesforce record Identifier of the associated actual component like an Omniscript or Flexcard
179
+ type: string
180
+ name:
181
+ description: A unique name for the tracking component definition.
182
+ type: string
183
+ omniTrackingCompGroupId:
184
+ description: The parent tracking group definition identifier associated with
185
+ tracking component definition.
186
+ type: string
187
+ required: false
188
+ omniTrackingComponentDefKey:
189
+ description: A UUID generated internally by Salesforce to uniquely identify
190
+ a record across all orgs.
191
+ type: string
192
+ required: false
193
+ OmniAnalyticsTrackingExternalDefRepresentation:
194
+ description: Mock Description
195
+ type: object
196
+ properties:
197
+ description:
198
+ description: Description of the external tracking configuration
199
+ type: string
200
+ identifier:
201
+ description: The 18 character Salesforce record Identifier
202
+ type: string
203
+ isActive:
204
+ description: Indicates whether the External tracking configuration is active
205
+ (true) or not (false). The default value is true.
206
+ type: string
207
+ required: false
208
+ name:
209
+ description: The unique name for the External tracking configuration.
210
+ type: string
211
+ omniExtTrackingDefKey:
212
+ description: A UUID generated internally by Salesforce to uniquely identify
213
+ a record across all orgs.
214
+ type: string
215
+ trackingFrameworkInformation:
216
+ description: JSON format containing information about an external service,
217
+ such as the API call and input parameter names.
218
+ type: string
219
+ required: false
220
+ trackingServiceProvider:
221
+ description: The external tracking service provider doing the tracking. Google
222
+ is an example of an external tracking service provider that can consume
223
+ Omni Analytics data.
224
+ type: string
225
+ required: false
226
+ OmniAnalyticsTrackingExternalEventDefRepresentation:
227
+ description: Mock Description
228
+ type: object
229
+ properties:
230
+ componentType:
231
+ description: The component type being tracked
232
+ type: string
233
+ required: false
234
+ description:
235
+ description: Description of the external tracking configuration event type
236
+ type: string
237
+ identifier:
238
+ description: The 18 character Salesforce record Identifier
239
+ type: string
240
+ inclusionRule:
241
+ description: Rules for evaluating data from the event payload that decide
242
+ if the event is sent.
243
+ type: string
244
+ name:
245
+ description: Name of the external tracking configuration event type
246
+ type: string
247
+ omniExtTrackingDefId:
248
+ description: The parent external tracking configuration Identified
249
+ type: string
250
+ required: false
251
+ omniExtTrackingEventDefKey:
252
+ description: A UUID generated internally by Salesforce to uniquely identify
253
+ a record across all orgs
254
+ type: string
255
+ required: false
256
+ payloadTemplate:
257
+ description: The payload template structure with placeholders for runtime
258
+ data. This is used at runtime to generate the actual payload to be sent
259
+ to the external Analytics service.
260
+ type: string
261
+ required: false
262
+ OmniAnalyticsTrackingGroupRepresentation:
263
+ description: Mock Description
264
+ type: object
265
+ properties:
266
+ description:
267
+ description: Description of the Omni Analytics tracking group
268
+ type: string
269
+ required: false
270
+ endDate:
271
+ description: Date when the group became inactive and is ready for deletion
272
+ type: string
273
+ required: false
274
+ groupType:
275
+ description: 'The group type. Possible values: Internal, External'
276
+ type: string
277
+ identifier:
278
+ description: The 18 character Salesforce record Identifier
279
+ type: string
280
+ isActive:
281
+ description: Indicates whether the group is active (true) or not (false).
282
+ The default value is true.
283
+ type: string
284
+ maxAgeInDays:
285
+ description: The maximum number of days the group and its analytics data is
286
+ active beyond which the data is deleted.
287
+ type: string
288
+ required: false
289
+ name:
290
+ description: A unique name for the tracking group.
291
+ type: string
292
+ omniExtTrackingDefId:
293
+ description: The external tracking configuration definition Identifier associated
294
+ with the tracking group definition.
295
+ type: string
296
+ required: false
297
+ omniTrackingGroupKey:
298
+ description: A UUID generated internally by Salesforce to uniquely identify
299
+ a record across all orgs.
300
+ type: string
301
+ startDate:
302
+ description: Date when the group became active
303
+ type: string
304
+ required: false
305
+ /connect/omni-analytics:
306
+ /analytics-logs:
307
+ post:
308
+ displayName: storeOmniAnalyticsLogs
309
+ description: Store Omni Analytics Logs
310
+ responses:
311
+ '200':
312
+ description: Success
313
+ body:
314
+ application/json:
315
+ type: OmniAnalyticsLogCreateRepresentation
316
+ body:
317
+ application/json:
318
+ type: OmniAnalyticsLogInputRepresentation
319
+ (oas-body-name): omniAnalyticsLogDefinition
320
+ /analytics-metadata:
321
+ get:
322
+ displayName: fetchOmniAnalyticsMetadata
323
+ description: Retrieve Omni Analytics Metadata
324
+ responses:
325
+ '200':
326
+ description: Success
327
+ body:
328
+ application/json:
329
+ type: OmniAnalyticsMetadataRepresentation
330
+ queryParameters:
331
+ externalTrackingDefName:
332
+ type: string
333
+ required: false
334
+ fetchSettings:
335
+ type: boolean
336
+ required: false
337
+ groupName:
338
+ type: string
339
+ required: false
340
+ isActive:
341
+ type: boolean
342
+ required: false
343
+ /get-analytics-logs:
344
+ get:
345
+ displayName: fetchOmniAnalyticsLogs
346
+ description: Retrieve Omni Analytics Logs
347
+ responses:
348
+ '200':
349
+ description: Success
350
+ body:
351
+ application/json:
352
+ type: OmniAnalyticsLogsRepresentation
353
+ queryParameters:
354
+ applicationName:
355
+ type: string
356
+ required: false
357
+ componentId:
358
+ type: string
359
+ required: false
360
+ componentType:
361
+ type: string
362
+ required: false
363
+ createdAfter:
364
+ type: string
365
+ required: false
366
+ createdBefore:
367
+ type: string
368
+ required: false
369
+ eventType:
370
+ type: string
371
+ required: false
372
+ pagesize:
373
+ type: integer
374
+ required: false
375
+ queryMore:
376
+ type: string
377
+ required: false
@@ -0,0 +1,35 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'omnianalytics'
8
+
9
+ types:
10
+ OmniAnalyticsLogCreateRepresentation:
11
+ (luvio.ttl): 10000
12
+ (luvio.key):
13
+ responseId: responseId
14
+
15
+ OmniAnalyticsMetadataRepresentation:
16
+ (luvio.ttl): 60000
17
+
18
+ OmniAnalyticsLogsRepresentation:
19
+ (luvio.ttl): 10000
20
+
21
+ /connect/omni-analytics:
22
+ /get-analytics-logs:
23
+ get:
24
+ (luvio.adapter):
25
+ name: fetchOmniAnalyticsLogs
26
+
27
+ /analytics-logs:
28
+ post:
29
+ (luvio.adapter):
30
+ name: storeOmniAnalyticsLogs
31
+
32
+ /analytics-metadata:
33
+ get:
34
+ (luvio.adapter):
35
+ name: fetchOmniAnalyticsMetadata