@salesforce/lds-adapters-industries-documentmatrix 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-documentmatrix.js +381 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getDocumentDecision.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectDocumentMatrixDocumentDecisionByDecisionTableId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableDocumentDecisionRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/DocumentDecisionInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DocumentDecisionResponseRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/DocumentTypesRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +74 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +416 -0
- package/src/raml/api.raml +122 -0
- package/src/raml/luvio.raml +19 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '59.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
|
+
DecisionTableDocumentDecisionRepresentation:
|
|
29
|
+
description: Output represenation of for Document Matrix
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
defaultMaximumFileSizeAllowed:
|
|
33
|
+
description: The default value for maximumFileSizeAllowed when its value is
|
|
34
|
+
null in documentTypes output fields.
|
|
35
|
+
type: string
|
|
36
|
+
defaultMaximumFileUploadsAllowed:
|
|
37
|
+
description: The default value for maximumFileUploadsAllowed when its value
|
|
38
|
+
is null in documentTypes output fields.
|
|
39
|
+
type: string
|
|
40
|
+
documentCategoryId:
|
|
41
|
+
description: The Id of DocumentCategory given as an output of Decision Table
|
|
42
|
+
type: string
|
|
43
|
+
documentCategoryLabel:
|
|
44
|
+
description: The Master Label of DocumentCategory given as an output of Decision
|
|
45
|
+
Table
|
|
46
|
+
type: string
|
|
47
|
+
documentTypes:
|
|
48
|
+
description: The document types associated with document category OR given
|
|
49
|
+
as output of Decision Table
|
|
50
|
+
type: array
|
|
51
|
+
items:
|
|
52
|
+
type: DocumentTypesRepresentation
|
|
53
|
+
helpText:
|
|
54
|
+
description: Helptext for document Category uploads.
|
|
55
|
+
type: string
|
|
56
|
+
isRequired:
|
|
57
|
+
description: Represents if upload for the document category is required or
|
|
58
|
+
not.
|
|
59
|
+
type: boolean
|
|
60
|
+
DocumentDecisionInputRepresentation:
|
|
61
|
+
description: Input representation for the connect api
|
|
62
|
+
type: object
|
|
63
|
+
properties:
|
|
64
|
+
inputs:
|
|
65
|
+
description: List of inputs passed to Decision Table. The key should contain
|
|
66
|
+
field name of Decision table and value should contain value of the field
|
|
67
|
+
that is the key. An input may contain multiple fields.
|
|
68
|
+
type: any
|
|
69
|
+
DocumentDecisionResponseRepresentation:
|
|
70
|
+
description: Output representation of Document Matrix Decision
|
|
71
|
+
type: object
|
|
72
|
+
properties:
|
|
73
|
+
decisionTableDocumentDecisions:
|
|
74
|
+
description: The flat data of Decision Table Output.
|
|
75
|
+
type: array
|
|
76
|
+
items:
|
|
77
|
+
type: DecisionTableDocumentDecisionRepresentation
|
|
78
|
+
message:
|
|
79
|
+
description: The message explaining why the request failed.
|
|
80
|
+
type: string
|
|
81
|
+
status:
|
|
82
|
+
description: Indicates whether the request succeeded (true) or failed (false).
|
|
83
|
+
type: string
|
|
84
|
+
DocumentTypesRepresentation:
|
|
85
|
+
description: Output representation of Document Type
|
|
86
|
+
type: object
|
|
87
|
+
properties:
|
|
88
|
+
documentTypeId:
|
|
89
|
+
description: The Id of Document Type that is associated with document category
|
|
90
|
+
type: string
|
|
91
|
+
documentTypeLabel:
|
|
92
|
+
description: The label of Document Type that is associated with document category
|
|
93
|
+
type: string
|
|
94
|
+
maximumFileSizeAllowed:
|
|
95
|
+
description: 'Maximum file size in KBs for a file that can be uploaded for
|
|
96
|
+
a document type '
|
|
97
|
+
type: string
|
|
98
|
+
maximumFileUploadsAllowed:
|
|
99
|
+
description: 'Maximum file uploads that can be uploaded for a document type '
|
|
100
|
+
type: string
|
|
101
|
+
/connect/document-matrix/document-decision/{decisionTableId}:
|
|
102
|
+
post:
|
|
103
|
+
displayName: postDocumentMatrix
|
|
104
|
+
description: Get Document Decision data
|
|
105
|
+
responses:
|
|
106
|
+
'200':
|
|
107
|
+
description: Success
|
|
108
|
+
body:
|
|
109
|
+
application/json:
|
|
110
|
+
type: DocumentDecisionResponseRepresentation
|
|
111
|
+
body:
|
|
112
|
+
application/json:
|
|
113
|
+
description: List of inputs passed to Decision Table. The key should contain
|
|
114
|
+
field name of Decision table and value should contain value of the field
|
|
115
|
+
that is the key. An input may contain multiple fields.
|
|
116
|
+
type: DocumentDecisionInputRepresentation
|
|
117
|
+
(oas-body-name): inputs
|
|
118
|
+
uriParameters:
|
|
119
|
+
decisionTableId:
|
|
120
|
+
description: The Id of Decision Table to be used for decision making.
|
|
121
|
+
type: string
|
|
122
|
+
required: true
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'DocumentMatrix'
|
|
8
|
+
(luvio.ttl): 3600000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
DocumentDecisionResponseRepresentation:
|
|
12
|
+
(luvio.ttl): 300
|
|
13
|
+
(luvio.opaque): true
|
|
14
|
+
|
|
15
|
+
/connect/document-matrix/document-decision/{decisionTableId}:
|
|
16
|
+
post:
|
|
17
|
+
(luvio.method): get
|
|
18
|
+
(luvio.adapter):
|
|
19
|
+
name: getDocumentDecision
|