@salesforce/lds-adapters-industries-decision-matrix-designer 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 (30) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-decision-matrix-designer.js +1119 -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/getColumns.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getRows.d.ts +30 -0
  6. package/dist/es/es2018/types/src/generated/adapters/saveColumns.d.ts +17 -0
  7. package/dist/es/es2018/types/src/generated/adapters/saveRows.d.ts +18 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectOmnistudioDecisionMatricesColumnsByMatrixId.d.ts +15 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectOmnistudioDecisionMatricesVersionsRowsByMatrixIdAndVersionId.d.ts +20 -0
  12. package/dist/es/es2018/types/src/generated/resources/postConnectOmnistudioDecisionMatricesColumnsByMatrixId.d.ts +16 -0
  13. package/dist/es/es2018/types/src/generated/resources/postConnectOmnistudioDecisionMatricesVersionsRowsByMatrixIdAndVersionId.d.ts +17 -0
  14. package/dist/es/es2018/types/src/generated/types/Columns.d.ts +38 -0
  15. package/dist/es/es2018/types/src/generated/types/DecisionMatrixColumnOutputRepresentation.d.ts +46 -0
  16. package/dist/es/es2018/types/src/generated/types/DecisionMatrixColumnRepresentation.d.ts +49 -0
  17. package/dist/es/es2018/types/src/generated/types/DecisionMatrixColumnsInputRepresentation.d.ts +29 -0
  18. package/dist/es/es2018/types/src/generated/types/DecisionMatrixColumnsOutputRepresentation.d.ts +30 -0
  19. package/dist/es/es2018/types/src/generated/types/DecisionMatrixOutputRepresentation.d.ts +47 -0
  20. package/dist/es/es2018/types/src/generated/types/DecisionMatrixRowInputRepresentation.d.ts +41 -0
  21. package/dist/es/es2018/types/src/generated/types/DecisionMatrixRowOutputRepresentation.d.ts +38 -0
  22. package/dist/es/es2018/types/src/generated/types/DecisionMatrixRowsInputRepresentation.d.ts +32 -0
  23. package/dist/es/es2018/types/src/generated/types/DecisionMatrixRowsOutputRepresentation.d.ts +36 -0
  24. package/dist/es/es2018/types/src/generated/types/RowsInput.d.ts +38 -0
  25. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  26. package/package.json +75 -0
  27. package/sfdc/index.d.ts +1 -0
  28. package/sfdc/index.js +1165 -0
  29. package/src/raml/api.raml +274 -0
  30. package/src/raml/luvio.raml +45 -0
@@ -0,0 +1,274 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '54.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
+ DecisionMatrixColumnOutputRepresentation:
29
+ description: Represents columns for a decision matrix
30
+ type: object
31
+ properties:
32
+ apiName:
33
+ description: Represents the apiName of a column
34
+ type: string
35
+ columnType:
36
+ description: Represents the columnType of a column
37
+ type: string
38
+ dataType:
39
+ description: Represents the dataType of a column
40
+ type: string
41
+ displaySequence:
42
+ description: Represents the displaySequence of a column
43
+ type: integer | nil
44
+ id:
45
+ description: Represents the id of a column
46
+ type: string
47
+ name:
48
+ description: Represents the name of a column
49
+ type: string
50
+ rangeValues:
51
+ description: Represents the range values of a column
52
+ type: string | nil
53
+ DecisionMatrixColumnRepresentation:
54
+ description: Represents the information to describe a Decision Matrix Column for
55
+ input
56
+ type: object
57
+ properties:
58
+ action:
59
+ description: Represents the action of a column
60
+ type: string
61
+ apiName:
62
+ description: Represents the apiName of a column
63
+ type: string
64
+ columnType:
65
+ description: Represents the columnType of a column
66
+ type: string
67
+ dataType:
68
+ description: Represents the dataType of a column
69
+ type: string
70
+ displaySequence:
71
+ description: Represents the displaySequence of a column
72
+ type: integer
73
+ id:
74
+ description: Represents the id of a column
75
+ type: string
76
+ name:
77
+ description: Represents the name of a column
78
+ type: string
79
+ rangeValues:
80
+ description: Represents the range values of a column
81
+ type: string
82
+ DecisionMatrixColumnsInputRepresentation:
83
+ description: Represents the information to update a Decision Matrix's columns
84
+ type: object
85
+ properties:
86
+ columns:
87
+ description: Represents a list of columns to be updated
88
+ type: array
89
+ items:
90
+ type: object
91
+ DecisionMatrixColumnsOutputRepresentation:
92
+ description: Output Representation of all columns for a Decision Matrix
93
+ type: object
94
+ properties:
95
+ columns:
96
+ description: List of all columns available for a column
97
+ type: array
98
+ items:
99
+ type: DecisionMatrixColumnOutputRepresentation
100
+ DecisionMatrixOutputRepresentation:
101
+ description: Represents the response and its status
102
+ type: object
103
+ properties:
104
+ errorFileId:
105
+ description: Represents the id of the error CSV file.
106
+ type: string | nil
107
+ errors:
108
+ description: Represents errors during CRUD operation.
109
+ type: array
110
+ items:
111
+ type: string
112
+ message:
113
+ description: Represents a message for async vs. sync operation to inform user.
114
+ type: string | nil
115
+ success:
116
+ description: Represents the success of matrix CRUD operation.
117
+ type: boolean
118
+ DecisionMatrixRowInputRepresentation:
119
+ description: Represents the information to describe a Decision Matrix Row for
120
+ input
121
+ type: object
122
+ properties:
123
+ action:
124
+ description: Represents the action to this Decision Matrix Row, null if is
125
+ add
126
+ type: string
127
+ id:
128
+ description: Represents the id of the Decision Matrix Row, null it if is a
129
+ new row
130
+ type: string
131
+ name:
132
+ description: Represents the name of the Decision Matrix Row.
133
+ type: string
134
+ rowData:
135
+ description: Represents the key value pair of the Decision Matrix Row.
136
+ type: object
137
+ properties:
138
+ //:
139
+ type: object
140
+ DecisionMatrixRowOutputRepresentation:
141
+ description: Represents the information to describe a Decision Matrix Row for
142
+ output.
143
+ type: object
144
+ properties:
145
+ id:
146
+ description: Represents the id of the Decision Matrix Row.
147
+ type: string
148
+ name:
149
+ description: Represents the name of the Decision Matrix Row.
150
+ type: string
151
+ rowData:
152
+ description: Represents the key value pair of the Decision Matrix Row.
153
+ type: object
154
+ properties:
155
+ //:
156
+ type: string | number | boolean # TODO W-8252808 hand roll
157
+ DecisionMatrixRowsInputRepresentation:
158
+ description: Represents the information to update a Decision Matrix Version’s
159
+ rows
160
+ type: object
161
+ properties:
162
+ fileId:
163
+ description: Represents the id of the CSV file
164
+ type: string
165
+ required: false # TODO Hand Rolled required false
166
+ rows:
167
+ description: Represents a list of rows to be updated
168
+ type: array
169
+ required: false # TODO Hand Rolled required false
170
+ items:
171
+ type: object
172
+ # TODO Hand Rolled 'RowsInput' W-9311618 and W-9311623
173
+ RowsInput:
174
+ description: A Wrapper around the DecisionMatrixRowsInputRepresentation
175
+ type: object
176
+ properties:
177
+ rowsInput:
178
+ description: The Oas Body Name for RowsInput
179
+ type: DecisionMatrixRowsInputRepresentation
180
+ # TODO Hand Rolled 'Columns' W-9311618 and W-9311623
181
+ Columns:
182
+ description: A Wrapper around the DecisionMatrixColumnsInputRepresentation
183
+ type: object
184
+ properties:
185
+ columns:
186
+ description: The Oas Body Name for RowsInput
187
+ type: DecisionMatrixColumnsInputRepresentation
188
+ DecisionMatrixRowsOutputRepresentation:
189
+ description: A paginated list of rows in a Decision Matrix Version
190
+ type: object
191
+ properties:
192
+ message:
193
+ description: Represents the message which indicates the async process.
194
+ type: string | nil
195
+ rows:
196
+ description: Represents the returned list of rows.
197
+ type: array
198
+ items:
199
+ type: DecisionMatrixRowOutputRepresentation
200
+ totalRows:
201
+ description: Represents the total number of rows.
202
+ type: integer | nil
203
+ /connect/omnistudio/decision-matrices/{matrixId}:
204
+ /columns:
205
+ get:
206
+ description: Get a list of columns Decision Matrix
207
+ responses:
208
+ '200':
209
+ description: Success
210
+ body:
211
+ application/json:
212
+ type: DecisionMatrixColumnsOutputRepresentation
213
+ post:
214
+ description: Save a list of columns for a decision matrix.
215
+ responses:
216
+ '200':
217
+ description: Success
218
+ body:
219
+ application/json:
220
+ type: DecisionMatrixOutputRepresentation
221
+ body:
222
+ application/json:
223
+ # TODO: Hand rolled 'type' to provide a wrapper that uses the oas-body-name
224
+ type: Columns
225
+ (oas-body-name): columns
226
+ # required: false TODO hand roll
227
+ uriParameters:
228
+ matrixId:
229
+ description: Unique ID used to represent a matrix.
230
+ type: string
231
+ required: true
232
+ /versions/{versionId}/rows:
233
+ get:
234
+ description: Get a list of rows or generate a csv file of rows in a Decision
235
+ Matrix Version
236
+ responses:
237
+ '200':
238
+ description: Success
239
+ body:
240
+ application/json:
241
+ type: DecisionMatrixRowsOutputRepresentation
242
+ queryParameters:
243
+ file:
244
+ description: Flag for generating a CSV file
245
+ type: boolean
246
+ required: false
247
+ filter:
248
+ description: Parameter to Apply Filter to Rows
249
+ type: string
250
+ required: false
251
+ post:
252
+ description: Save a list of rows or a CSV file of rows into a decision matrix
253
+ version.
254
+ responses:
255
+ '200':
256
+ description: Success
257
+ body:
258
+ application/json:
259
+ type: DecisionMatrixOutputRepresentation
260
+ body:
261
+ application/json:
262
+ # TODO: Hand rolled 'type' to provide a wrapper that uses the oas-body-name
263
+ type: RowsInput
264
+ (oas-body-name): rowsInput
265
+ # required: false TODO hand roll
266
+ uriParameters:
267
+ matrixId:
268
+ description: Unique ID used to represent a matrix.
269
+ type: string
270
+ required: true
271
+ versionId:
272
+ description: Unique ID used to represent a matrix version.
273
+ type: string
274
+ required: true
@@ -0,0 +1,45 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'decision-matrix-designer'
8
+ (luvio.ttl): 360000
9
+
10
+ types:
11
+ DecisionMatrixOutputRepresentation:
12
+ (luvio.ttl): 1000
13
+ (luvio.key):
14
+ success: success
15
+ DecisionMatrixRowsInputRepresentation:
16
+ (luvio.ttl): 1000
17
+ (luvio.opaque): true
18
+ DecisionMatrixColumnsInputRepresentation:
19
+ (luvio.ttl): 1000
20
+ (luvio.opaque): true
21
+ DecisionMatrixColumnsOutputRepresentation:
22
+ (luvio.ttl): 1000
23
+ (luvio.opaque): true
24
+ DecisionMatrixRowsOutputRepresentation:
25
+ (luvio.ttl): 1000
26
+ (luvio.opaque): true
27
+
28
+ /connect/omnistudio/decision-matrices/{matrixId}:
29
+ /columns:
30
+ get:
31
+ (luvio.adapter):
32
+ name: getColumns
33
+
34
+ post:
35
+ (luvio.adapter):
36
+ name: saveColumns
37
+
38
+ /versions/{versionId}/rows:
39
+ get:
40
+ (luvio.adapter):
41
+ name: getRows
42
+
43
+ post:
44
+ (luvio.adapter):
45
+ name: saveRows