@salesforce/lds-adapters-starter-solution-recipes 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 (21) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/starter-solution-recipes.js +1159 -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/postSolutionLibraryRecipes.d.ts +19 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/resources/postConnectSolutionLibraryRecipes.d.ts +16 -0
  8. package/dist/es/es2018/types/src/generated/types/SolutionLibraryErrorRepresentation.d.ts +31 -0
  9. package/dist/es/es2018/types/src/generated/types/SolutionLibraryFilterInputRepresentation.d.ts +34 -0
  10. package/dist/es/es2018/types/src/generated/types/SolutionLibraryInputRepresentation.d.ts +38 -0
  11. package/dist/es/es2018/types/src/generated/types/SolutionLibraryOutputRepresentation.d.ts +54 -0
  12. package/dist/es/es2018/types/src/generated/types/SolutionLibraryPageReferenceRepresentation.d.ts +35 -0
  13. package/dist/es/es2018/types/src/generated/types/SolutionLibraryRecipeRepresentation.d.ts +73 -0
  14. package/dist/es/es2018/types/src/generated/types/SolutionRecipeActionParamsRepresentation.d.ts +63 -0
  15. package/dist/es/es2018/types/src/generated/types/SolutionRecipeActionRepresentation.d.ts +32 -0
  16. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  17. package/package.json +66 -0
  18. package/sfdc/index.d.ts +1 -0
  19. package/sfdc/index.js +1187 -0
  20. package/src/raml/api.raml +227 -0
  21. package/src/raml/luvio.raml +21 -0
@@ -0,0 +1,227 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '62.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
+ SolutionLibraryErrorRepresentation:
29
+ description: Represents Solution Library definition
30
+ type: object
31
+ properties:
32
+ code:
33
+ description: Solution Library Error code
34
+ type: string
35
+ message:
36
+ description: Solution Library Error message
37
+ type: string
38
+ SolutionLibraryFilterInputRepresentation:
39
+ description: A Solution Library Filters representation
40
+ type: object
41
+ properties:
42
+ bookMarked:
43
+ description: Filter Bookmarked recipes
44
+ type: boolean
45
+ required: false # TODO Hand-rolled W-15955585
46
+ clouds:
47
+ description: List of Solution Library clouds
48
+ type: array
49
+ required: false # TODO Hand-rolled W-15955585
50
+ items:
51
+ type: string
52
+ markedAsDone:
53
+ description: Sets Filter MarkedAsDone recipes
54
+ type: boolean
55
+ required: false # TODO Hand-rolled W-15955585
56
+ SolutionLibraryInputRepresentation:
57
+ description: A Solution Library Entry
58
+ type: object
59
+ properties:
60
+ currentRecipes:
61
+ description: List of Solution Library recipes currently shown
62
+ type: array
63
+ required: false # TODO Hand-rolled W-15955585
64
+ items:
65
+ type: string
66
+ filters:
67
+ description: Solution Library filters
68
+ type: SolutionLibraryFilterInputRepresentation # TODO Hand-rolled W-15955623
69
+ required: false # TODO Hand-rolled W-15955585
70
+ offset:
71
+ description: Start returning data from the offset position
72
+ type: integer
73
+ required: false # TODO Hand-rolled W-15955585
74
+ section:
75
+ description: Section on solution library ( recommended, more to explore)
76
+ type: string
77
+ SolutionLibraryOutputRepresentation:
78
+ description: Represents Solution Library definition
79
+ type: object
80
+ properties:
81
+ error:
82
+ description: Solution Library Error
83
+ type: SolutionLibraryErrorRepresentation
84
+ required: false
85
+ isSuccess:
86
+ description: Indicates if Solution library recipes can be retrieved
87
+ type: boolean
88
+ recipes:
89
+ description: Solution Library Recipes
90
+ type: array
91
+ required: false
92
+ items:
93
+ type: SolutionLibraryRecipeRepresentation
94
+ SolutionLibraryPageReferenceRepresentation:
95
+ description: Represents Solution Library action param PageReferenceRepresentation
96
+ type: object
97
+ properties:
98
+ attributes:
99
+ description: Solution Library page reference attributes
100
+ type: object
101
+ properties:
102
+ //:
103
+ type: string
104
+ type:
105
+ description: Solution Library page reference type
106
+ type: string
107
+ SolutionLibraryRecipeRepresentation:
108
+ description: Represents Solution Library Recipe definition
109
+ type: object
110
+ properties:
111
+ action:
112
+ description: Solution Library Recipe action
113
+ type: SolutionRecipeActionRepresentation
114
+ description:
115
+ description: Solution Library Recipe Description
116
+ type: string
117
+ icon:
118
+ description: Solution Library Recipe Icon
119
+ type: string
120
+ iconAltText:
121
+ description: Solution Library Recipe IconAltText
122
+ type: string
123
+ iconStyle:
124
+ description: Solution Library Recipe IconStyle
125
+ type: string
126
+ id:
127
+ description: Solution Library recipe Id for GNR
128
+ type: string
129
+ isBookmarked:
130
+ description: Solution Library Recipe Save for later
131
+ type: boolean
132
+ isMarkedAsComplete:
133
+ description: Solution Library Recipe Mark as complete
134
+ type: boolean
135
+ recipeId:
136
+ description: Solution Library Recipe Id
137
+ type: string
138
+ score:
139
+ description: Solution Library Recipe score
140
+ type: integer
141
+ state:
142
+ description: Solution Library Recipe State
143
+ type: string
144
+ tagId:
145
+ description: Solution Library Recipe TagId
146
+ type: array
147
+ items:
148
+ type: string
149
+ title:
150
+ description: Solution Library Recipe Title
151
+ type: string
152
+ SolutionRecipeActionParamsRepresentation:
153
+ description: Represents Solution Library definition
154
+ type: object
155
+ properties:
156
+ id:
157
+ description: Solution Library Action param id
158
+ type: string
159
+ required: false
160
+ index:
161
+ description: Solution Library Recipe action param index
162
+ type: integer
163
+ required: false
164
+ isDeclarative:
165
+ description: Solution Library Recipe action param is declarative
166
+ type: boolean
167
+ required: false
168
+ isFolder:
169
+ description: Solution Library Recipe action param isFolder
170
+ type: boolean
171
+ required: false
172
+ lsf:
173
+ description: Solution Library Recipe action param lsf
174
+ type: string
175
+ required: false
176
+ lsfParams:
177
+ description: Solution Library Recipe action param LSF params
178
+ type: object
179
+ required: false
180
+ properties:
181
+ //:
182
+ type: string
183
+ name:
184
+ description: Solution Library Recipe action param name
185
+ type: string
186
+ required: false
187
+ pageReference:
188
+ description: Solution Library Action param page ref
189
+ type: SolutionLibraryPageReferenceRepresentation
190
+ required: false
191
+ pubSubEvents:
192
+ description: Solution Library Recipe action param pub sub events
193
+ type: string
194
+ required: false
195
+ stepId:
196
+ description: Solution Library Recipe action param stepid
197
+ type: string
198
+ required: false
199
+ url:
200
+ description: Solution Library Recipe action param url
201
+ type: string
202
+ required: false
203
+ SolutionRecipeActionRepresentation:
204
+ description: Represents Solution Recipe Action definition
205
+ type: object
206
+ properties:
207
+ params:
208
+ description: Solution Library Recipe action params
209
+ type: SolutionRecipeActionParamsRepresentation
210
+ required: false
211
+ type:
212
+ description: Solution Library Recipe action type
213
+ type: string
214
+ /connect/solution-library/recipes:
215
+ post:
216
+ displayName: postSolutionLibraryPost
217
+ description: Retrieve list of solution library recipes.
218
+ responses:
219
+ '200':
220
+ description: Success
221
+ body:
222
+ application/json:
223
+ type: SolutionLibraryOutputRepresentation
224
+ body:
225
+ application/json:
226
+ type: SolutionLibraryInputRepresentation # TODO Hand-rolled W-8988522
227
+ (oas-body-name): SolutionLibrarySearchData
@@ -0,0 +1,21 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'solution-recipes'
8
+ (luvio.ttl): 1000
9
+
10
+ types:
11
+ SolutionLibraryOutputRepresentation:
12
+ (luvio.key):
13
+ isSuccess: isSuccess
14
+ SolutionLibraryRecipeRepresentation:
15
+ (luvio.key):
16
+ id: id
17
+
18
+ /connect/solution-library/recipes:
19
+ post:
20
+ (luvio.adapter):
21
+ name: postSolutionLibraryRecipes