@salesforce/lds-adapters-analytics-app-framework 1.308.0-dev1 → 1.308.0-dev3

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 (22) hide show
  1. package/dist/es/es2018/analytics-app-framework.js +909 -319
  2. package/dist/es/es2018/types/src/generated/adapters/createApp.d.ts +3 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getAppActivities.d.ts +28 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getAppActivity.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getApps.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
  8. package/dist/es/es2018/types/src/generated/resources/getAppFrameworkApps.d.ts +1 -0
  9. package/dist/es/es2018/types/src/generated/resources/getAppFrameworkAppsActivitiesByAppIdOrApiName.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/getAppFrameworkAppsActivitiesByAppIdOrApiNameAndId.d.ts +17 -0
  11. package/dist/es/es2018/types/src/generated/resources/postAppFrameworkApps.d.ts +3 -0
  12. package/dist/es/es2018/types/src/generated/types/AppActivityCollectionRepresentation.d.ts +51 -0
  13. package/dist/es/es2018/types/src/generated/types/AppActivityItemInputRepresentation.d.ts +37 -0
  14. package/dist/es/es2018/types/src/generated/types/AppActivityItemRepresentation.d.ts +57 -0
  15. package/dist/es/es2018/types/src/generated/types/AppInputRepresentation.d.ts +10 -1
  16. package/dist/es/es2018/types/src/generated/types/AppRepresentation.d.ts +10 -1
  17. package/dist/es/es2018/types/src/generated/types/AssetCollectionRepresentation.d.ts +4 -4
  18. package/dist/es/es2018/types/src/generated/types/TemplateInputRepresentation.d.ts +4 -1
  19. package/package.json +3 -3
  20. package/sfdc/index.js +1013 -318
  21. package/src/raml/api.raml +140 -0
  22. package/src/raml/luvio.raml +24 -2
package/src/raml/api.raml CHANGED
@@ -25,6 +25,74 @@ annotationTypes:
25
25
  type: string
26
26
  allowedTargets: TypeDeclaration
27
27
  types:
28
+ AppActivityCollectionRepresentation:
29
+ description: Representation for an app's activity or history records.
30
+ type: object
31
+ properties:
32
+ appId:
33
+ description: The ID or fully qualified API name of the app to which
34
+ these activities belong.
35
+ type: string
36
+ items:
37
+ description: The collection of app activity records.
38
+ type: array
39
+ items:
40
+ type: AppActivityItemRepresentation
41
+ AppActivityItemInputRepresentation:
42
+ description: Input representation for creating an app activity record.
43
+ type: object
44
+ properties:
45
+ activityType:
46
+ description: The type of application activity.
47
+ type: string
48
+ enum:
49
+ - Create
50
+ - Delete
51
+ - RefreshData
52
+ - Update
53
+ appId:
54
+ description: The application id.
55
+ type: string
56
+ dominoRuntimeRequestId:
57
+ description: The associated domino runtime request id.
58
+ type: string
59
+ id:
60
+ description: Id of the application activity.
61
+ type: string
62
+ AppActivityItemRepresentation:
63
+ description: Representation for a single app activity record.
64
+ type: object
65
+ properties:
66
+ activityType:
67
+ description: The type of the app activity item.
68
+ type: string
69
+ enum:
70
+ - Create
71
+ - Delete
72
+ - RefreshData
73
+ - Update
74
+ appId:
75
+ description: The application id of the activity record.
76
+ type: string
77
+ id:
78
+ description: The ID of the app activity item record.
79
+ type: string
80
+ runtimeRequest:
81
+ description: The associated domino runtime request associated with the app
82
+ activity item record.
83
+ # TODO: hand-rolled
84
+ # DominoRuntimeRequestRepresentation and it's subtypes and related types come from the
85
+ # json-xform-connect-api modules and are referenced in app-framework-connect-api, which
86
+ # means they don't get created in this raml. For our usage purposes here currently, we
87
+ # don't need this type defined and having it as an open-ended object is sufficient.
88
+ #type: DominoRuntimeRequestRepresentation
89
+ type: object
90
+ properties:
91
+ //:
92
+ type: any # TODO Hand-rolled W-8863405
93
+ url:
94
+ description: The url for the app activity item.
95
+ type: string
28
96
  AppCollectionRepresentation:
29
97
  description: Representation for Next Gen applications.
30
98
  type: object
@@ -50,12 +118,28 @@ types:
50
118
  label:
51
119
  description: The user-facing name of the new folder or application.
52
120
  type: string
121
+ logLevel:
122
+ description: Specifies the runtime logging level for debug.
123
+ required: false # TODO Hand-rolled W-15955585
124
+ type: string
53
125
  name:
54
126
  description: The internal api name of the new application.
55
127
  type: string
128
+ runtimeMethod:
129
+ description: The runtime method async or sync
130
+ required: false # TODO Hand-rolled W-15955585
131
+ type: string
56
132
  templateSourceId:
57
133
  description: Template Id from which to create the app.
58
134
  type: string
135
+ templateType:
136
+ description: The type of the template this app was created from
137
+ type: string
138
+ required: false # TODO Hand-rolled W-15955585
139
+ enum:
140
+ - App
141
+ - Library
142
+ - Unknown
59
143
  templateValues:
60
144
  description: The runtime template values to use during application creation,
61
145
  as specified by the individual template.
@@ -72,6 +156,9 @@ types:
72
156
  description: Representation for a single app.
73
157
  type: object
74
158
  properties:
159
+ activitiesUrl:
160
+ description: Url to get collection of most recent installation activities
161
+ type: string
75
162
  applicationStatus:
76
163
  description: The status of this app.
77
164
  type: string
@@ -102,6 +189,9 @@ types:
102
189
  lastModifiedDate:
103
190
  description: When this app was last modified.
104
191
  type: string
192
+ latestActivityUrl:
193
+ description: Url to get the most recent activity.
194
+ type: string
105
195
  name:
106
196
  description: The dev name of this app.
107
197
  type: string
@@ -111,6 +201,13 @@ types:
111
201
  templateSourceId:
112
202
  description: The ID od the template used to create this app.
113
203
  type: string
204
+ templateType:
205
+ description: The type of the template used to create the app.
206
+ type: string
207
+ enum:
208
+ - App
209
+ - Library
210
+ - Unknown
114
211
  templateValues:
115
212
  description: The Variable Values (Answers to Questions) used to customize
116
213
  the app install.
@@ -304,6 +401,10 @@ types:
304
401
  description: The Template layout definition file.
305
402
  required: false # TODO Hand-rolled W-15955585
306
403
  type: string
404
+ maxAppCount:
405
+ description: The maximum number of apps that can be creatd from this template.
406
+ required: false # TODO Hand-rolled W-15955585
407
+ type: integer
307
408
  name:
308
409
  description: The Template name.
309
410
  type: string
@@ -332,6 +433,7 @@ types:
332
433
  enum:
333
434
  - App
334
435
  - Library
436
+ - Unknown
335
437
  variableDefinition:
336
438
  description: The Template variables file
337
439
  required: false # TODO Hand-rolled W-15955585
@@ -507,6 +609,13 @@ types:
507
609
  templateSourceId:
508
610
  type: string
509
611
  required: false
612
+ type:
613
+ type: string
614
+ required: false
615
+ enum:
616
+ - App
617
+ - Library
618
+ - Unknown
510
619
  post:
511
620
  displayName: postAppFrameworkAppCollection
512
621
  description: Creates an app from a template
@@ -540,6 +649,37 @@ types:
540
649
  appIdOrApiName:
541
650
  type: string
542
651
  required: true
652
+ /apps/{appIdOrApiName}/activities:
653
+ get:
654
+ displayName: getAppFrameworkAppActivityCollection
655
+ description: Get a list of app activity records
656
+ responses:
657
+ '200':
658
+ description: Success
659
+ body:
660
+ application/json:
661
+ type: AppActivityCollectionRepresentation
662
+ uriParameters:
663
+ appIdOrApiName:
664
+ type: string
665
+ required: true
666
+ /{id}:
667
+ get:
668
+ displayName: getAppFrameworkAppActivityItem
669
+ description: Get a specific App's activity
670
+ responses:
671
+ '200':
672
+ description: Success
673
+ body:
674
+ application/json:
675
+ type: AppActivityItemRepresentation
676
+ uriParameters:
677
+ appIdOrApiName:
678
+ type: string
679
+ required: true
680
+ id:
681
+ type: string
682
+ required: true
543
683
  /apps/{appIdOrApiName}/assets:
544
684
  get:
545
685
  displayName: getAppFrameworkAppAssetCollection
@@ -8,6 +8,15 @@ uses:
8
8
  (luvio.ttl): 2592000000
9
9
 
10
10
  types:
11
+ AppActivityCollectionRepresentation:
12
+ (luvio.ttl): 5000
13
+ (luvio.key):
14
+ appId: appId
15
+ AppActivityItemRepresentation:
16
+ (luvio.ttl): 5000
17
+ (luvio.key):
18
+ appId: appId
19
+ id: id
11
20
  AppCollectionRepresentation:
12
21
  (luvio.ttl): 5000
13
22
  AppRepresentation:
@@ -21,7 +30,7 @@ types:
21
30
  AssetCollectionRepresentation:
22
31
  (luvio.ttl): 5000
23
32
  (luvio.key):
24
- id: appId
33
+ appId: appId
25
34
  AssetRepresentation:
26
35
  (luvio.ttl): 5000
27
36
  (luvio.key):
@@ -61,7 +70,20 @@ types:
61
70
  (luvio.adapter):
62
71
  name: getAppAssets
63
72
  (luvio.key):
64
- id: urlParams.appIdOrApiName
73
+ appId: urlParams.appIdOrApiName
74
+ /apps/{appIdOrApiName}/activities:
75
+ get:
76
+ (luvio.adapter):
77
+ name: getAppActivities
78
+ (luvio.key):
79
+ appId: urlParams.appIdOrApiName
80
+ /apps/{appIdOrApiName}/activities/{id}:
81
+ get:
82
+ (luvio.adapter):
83
+ name: getAppActivity
84
+ (luvio.key):
85
+ appId: urlParams.appIdOrApiName
86
+ id: urlParams.id
65
87
  /templates:
66
88
  get:
67
89
  (luvio.adapter):