@salesforce/lds-adapters-industries-contextrules 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 (31) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-contextrules.js +1155 -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/createContextTagMapping.d.ts +18 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteContextTagMapping.d.ts +16 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getContextTagMapping.d.ts +30 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getContextTagMappings.d.ts +28 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getUsageTypeDetail.d.ts +28 -0
  9. package/dist/es/es2018/types/src/generated/adapters/updateContextTagMapping.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/resources/deleteConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberMappingNameByMappingNameAndRuleLibraryApiNameAndVersionNumber.d.ts +14 -0
  13. package/dist/es/es2018/types/src/generated/resources/getConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +16 -0
  14. package/dist/es/es2018/types/src/generated/resources/getConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberMappingNameByMappingNameAndRuleLibraryApiNameAndVersionNumber.d.ts +18 -0
  15. package/dist/es/es2018/types/src/generated/resources/getConnectContextRulesUsageTypesByUsageType.d.ts +16 -0
  16. package/dist/es/es2018/types/src/generated/resources/patchConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +17 -0
  17. package/dist/es/es2018/types/src/generated/resources/postConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +17 -0
  18. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsCreateUpdateOutputRepresentation.d.ts +38 -0
  19. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsInputRepresentation.d.ts +37 -0
  20. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsListWrapperRepresentation.d.ts +28 -0
  21. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsOverallInputRepresentation.d.ts +29 -0
  22. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsReadOutputRepresentation.d.ts +56 -0
  23. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsReadOutputRepresentationList.d.ts +30 -0
  24. package/dist/es/es2018/types/src/generated/types/UsageSubtypeOutputRepresentation.d.ts +31 -0
  25. package/dist/es/es2018/types/src/generated/types/UsageTypeOutputRepresentation.d.ts +45 -0
  26. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  27. package/package.json +67 -0
  28. package/sfdc/index.d.ts +1 -0
  29. package/sfdc/index.js +1317 -0
  30. package/src/raml/api.raml +221 -0
  31. package/src/raml/luvio.raml +57 -0
@@ -0,0 +1,221 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '61.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
+ RuleLibraryTagMappingsCreateUpdateOutputRepresentation:
29
+ description: Output representation of create and update tag mapping
30
+ type: object
31
+ properties:
32
+ ids:
33
+ description: List of Ids of tag mapping
34
+ type: array
35
+ items:
36
+ type: string
37
+ RuleLibraryTagMappingsInputRepresentation:
38
+ description: Tag mapping input representation
39
+ type: object
40
+ properties:
41
+ mappingName:
42
+ description: Mapping name
43
+ type: string
44
+ sequenceNumber:
45
+ description: Sequence number
46
+ type: integer
47
+ tagName:
48
+ description: Tag Name
49
+ type: string
50
+ usageSubtype:
51
+ description: The usage sub type
52
+ type: string
53
+ RuleLibraryTagMappingsListWrapperRepresentation:
54
+ description: Tag mapping input representation list
55
+ type: object
56
+ properties:
57
+ ruleLibraryTagMappingInputList:
58
+ description: The list of tag mappings
59
+ type: array
60
+ items:
61
+ type: any
62
+ RuleLibraryTagMappingsOverallInputRepresentation:
63
+ description: Tag mapping input representation list
64
+ type: object
65
+ properties:
66
+ contextTagMappings:
67
+ description: The list representation of tag mappings
68
+ type: RuleLibraryTagMappingsListWrapperRepresentation
69
+ RuleLibraryTagMappingsReadOutputRepresentation:
70
+ description: Output representation of read tag mapping
71
+ type: object
72
+ properties:
73
+ id:
74
+ description: Id of the tag mapping
75
+ type: string
76
+ mappingName:
77
+ description: Mapping name
78
+ type: string
79
+ ruleLibraryApiName:
80
+ description: API name of the rule library
81
+ type: string
82
+ sequenceNumber:
83
+ description: Sequence number
84
+ type: integer
85
+ required: false
86
+ tagName:
87
+ description: Tag name
88
+ type: string
89
+ usageSubtype:
90
+ description: Usage subtype
91
+ type: string
92
+ required: false
93
+ versionNumber:
94
+ description: Version number
95
+ type: integer
96
+ RuleLibraryTagMappingsReadOutputRepresentationList:
97
+ description: Output representation list of read tag mapping
98
+ type: object
99
+ properties:
100
+ ruleLibraryTagMappings:
101
+ description: List of RuleLibraryTagMappingsReadOutputRepresentation
102
+ type: array
103
+ items:
104
+ type: RuleLibraryTagMappingsReadOutputRepresentation
105
+ UsageTypeOutputRepresentation:
106
+ description: Output representation of context rule usageType
107
+ type: object
108
+ properties:
109
+ mappingNames:
110
+ description: mapping names
111
+ type: array
112
+ items:
113
+ type: string
114
+ usageSubtypes:
115
+ description: Usage Subtypes
116
+ type: array
117
+ items:
118
+ type: UsageSubtypeOutputRepresentation
119
+ usageType:
120
+ description: Usage type
121
+ type: string
122
+ UsageSubtypeOutputRepresentation:
123
+ description: Output representation of context rule usageSubtype
124
+ type: object
125
+ properties:
126
+ subtypeMappingNames:
127
+ description: subType Mapping names
128
+ type: array
129
+ items:
130
+ type: string
131
+ usageSubtype:
132
+ description: Usage Subtype
133
+ type: string
134
+ /connect/context-rules:
135
+ /context-tag-mappings/rule-library-api-name/{ruleLibraryApiName}/version-number/{versionNumber}:
136
+ get:
137
+ displayName: getRuleLibraryContextTagMappings
138
+ description: Read Tag Mapping
139
+ responses:
140
+ '200':
141
+ description: Success
142
+ body:
143
+ application/json:
144
+ type: RuleLibraryTagMappingsReadOutputRepresentationList
145
+ patch:
146
+ displayName: patchRuleLibraryContextTagMappings
147
+ description: Update Tag Mapping
148
+ responses:
149
+ '200':
150
+ description: Success
151
+ body:
152
+ application/json:
153
+ type: RuleLibraryTagMappingsCreateUpdateOutputRepresentation
154
+ body:
155
+ application/json:
156
+ type: RuleLibraryTagMappingsOverallInputRepresentation
157
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
158
+ #required: false
159
+ (oas-body-name): tagMappingInputRepresentation
160
+ post:
161
+ displayName: postRuleLibraryContextTagMappings
162
+ description: Create Tag Mapping
163
+ responses:
164
+ '200':
165
+ description: Success
166
+ body:
167
+ application/json:
168
+ type: RuleLibraryTagMappingsCreateUpdateOutputRepresentation
169
+ body:
170
+ application/json:
171
+ type: RuleLibraryTagMappingsOverallInputRepresentation
172
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
173
+ #required: false
174
+ (oas-body-name): tagMappingInputRepresentation
175
+ uriParameters:
176
+ ruleLibraryApiName:
177
+ type: string
178
+ required: true
179
+ versionNumber:
180
+ type: string
181
+ required: true
182
+ /context-tag-mappings/rule-library-api-name/{ruleLibraryApiName}/version-number/{versionNumber}/mapping-name/{mappingName}:
183
+ delete:
184
+ displayName: deleteRuleLibraryContextTagMappingDelete
185
+ description: Delete Tag Mapping
186
+ responses:
187
+ '200':
188
+ description: Success
189
+ get:
190
+ displayName: getRuleLibraryContextTagMappingDelete
191
+ description: get Tag Mapping
192
+ responses:
193
+ '200':
194
+ description: Success
195
+ body:
196
+ application/json:
197
+ type: RuleLibraryTagMappingsReadOutputRepresentation
198
+ uriParameters:
199
+ mappingName:
200
+ type: string
201
+ required: true
202
+ ruleLibraryApiName:
203
+ type: string
204
+ required: true
205
+ versionNumber:
206
+ type: string
207
+ required: true
208
+ /usage-types/{usageType}:
209
+ get:
210
+ displayName: getContextRuleUsageType
211
+ description: Get UsageType detail
212
+ responses:
213
+ '200':
214
+ description: Success
215
+ body:
216
+ application/json:
217
+ type: UsageTypeOutputRepresentation
218
+ uriParameters:
219
+ usageType:
220
+ type: string
221
+ required: true
@@ -0,0 +1,57 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'contextrules'
8
+ (luvio.ttl): 360000
9
+
10
+ types:
11
+ RuleLibraryTagMappingsCreateUpdateOutputRepresentation:
12
+ (luvio.ttl): 1000
13
+ (luvio.opaque): true
14
+ (luvio.key):
15
+ id: ids
16
+ RuleLibraryTagMappingsReadOutputRepresentationList:
17
+ (luvio.ttl): 1000
18
+ (luvio.opaque): true
19
+ RuleLibraryTagMappingsReadOutputRepresentation:
20
+ (luvio.ttl): 1000
21
+ (luvio.opaque): true
22
+ (luvio.key):
23
+ id: mappingName
24
+ UsageTypeOutputRepresentation:
25
+ (luvio.ttl): 1000
26
+ (luvio.opaque): true
27
+ (luvio.key):
28
+ id: usageType
29
+
30
+ /connect/context-rules:
31
+ /context-tag-mappings/rule-library-api-name/{ruleLibraryApiName}/version-number/{versionNumber}:
32
+ get:
33
+ (luvio.adapter):
34
+ name: getContextTagMappings
35
+ post:
36
+ (luvio.adapter):
37
+ name: createContextTagMapping
38
+ patch:
39
+ (luvio.adapter):
40
+ name: updateContextTagMapping
41
+ /context-tag-mappings/rule-library-api-name/{ruleLibraryApiName}/version-number/{versionNumber}/mapping-name/{mappingName}:
42
+ get:
43
+ (luvio.adapter):
44
+ name: getContextTagMapping
45
+ (luvio.key):
46
+ id: urlParams.mappingName
47
+ delete:
48
+ (luvio.adapter):
49
+ name: deleteContextTagMapping
50
+ (luvio.key):
51
+ id: urlParams.mappingName
52
+ /usage-types/{usageType}:
53
+ get:
54
+ (luvio.adapter):
55
+ name: getUsageTypeDetail
56
+ (luvio.key):
57
+ id: urlParams.usageType