@salesforce/lds-adapters-industries-contextrules 1.285.0

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 (27) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-contextrules.js +898 -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/updateContextTagMapping.d.ts +18 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -0
  11. package/dist/es/es2018/types/src/generated/resources/deleteConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberMappingNameByMappingNameAndRuleLibraryApiNameAndVersionNumber.d.ts +14 -0
  12. package/dist/es/es2018/types/src/generated/resources/getConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +16 -0
  13. package/dist/es/es2018/types/src/generated/resources/getConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberMappingNameByMappingNameAndRuleLibraryApiNameAndVersionNumber.d.ts +18 -0
  14. package/dist/es/es2018/types/src/generated/resources/patchConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +17 -0
  15. package/dist/es/es2018/types/src/generated/resources/postConnectContextRulesContextTagMappingsRuleLibraryApiNameVersionNumberByRuleLibraryApiNameAndVersionNumber.d.ts +17 -0
  16. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsCreateUpdateOutputRepresentation.d.ts +38 -0
  17. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsInputRepresentation.d.ts +37 -0
  18. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsListWrapperRepresentation.d.ts +28 -0
  19. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsOverallInputRepresentation.d.ts +29 -0
  20. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsReadOutputRepresentation.d.ts +56 -0
  21. package/dist/es/es2018/types/src/generated/types/RuleLibraryTagMappingsReadOutputRepresentationList.d.ts +30 -0
  22. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  23. package/package.json +67 -0
  24. package/sfdc/index.d.ts +1 -0
  25. package/sfdc/index.js +1004 -0
  26. package/src/raml/api.raml +178 -0
  27. package/src/raml/luvio.raml +46 -0
@@ -0,0 +1,178 @@
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/v61.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
+ /connect/context-rules:
106
+ /context-tag-mappings/rule-library-api-name/{ruleLibraryApiName}/version-number/{versionNumber}:
107
+ get:
108
+ displayName: getRuleLibraryContextTagMappings
109
+ description: Read Tag Mapping
110
+ responses:
111
+ '200':
112
+ description: Success
113
+ body:
114
+ application/json:
115
+ type: RuleLibraryTagMappingsReadOutputRepresentationList
116
+ patch:
117
+ displayName: patchRuleLibraryContextTagMappings
118
+ description: Update Tag Mapping
119
+ responses:
120
+ '200':
121
+ description: Success
122
+ body:
123
+ application/json:
124
+ type: RuleLibraryTagMappingsCreateUpdateOutputRepresentation
125
+ body:
126
+ application/json:
127
+ type: RuleLibraryTagMappingsOverallInputRepresentation
128
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
129
+ #required: false
130
+ (oas-body-name): tagMappingInputRepresentation
131
+ post:
132
+ displayName: postRuleLibraryContextTagMappings
133
+ description: Create Tag Mapping
134
+ responses:
135
+ '200':
136
+ description: Success
137
+ body:
138
+ application/json:
139
+ type: RuleLibraryTagMappingsCreateUpdateOutputRepresentation
140
+ body:
141
+ application/json:
142
+ type: RuleLibraryTagMappingsOverallInputRepresentation
143
+ # TODO: Hand-rolled due to issue #22 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAxyxIv)
144
+ #required: false
145
+ (oas-body-name): tagMappingInputRepresentation
146
+ uriParameters:
147
+ ruleLibraryApiName:
148
+ type: string
149
+ required: true
150
+ versionNumber:
151
+ type: string
152
+ required: true
153
+ /context-tag-mappings/rule-library-api-name/{ruleLibraryApiName}/version-number/{versionNumber}/mapping-name/{mappingName}:
154
+ delete:
155
+ displayName: deleteRuleLibraryContextTagMappingDelete
156
+ description: Delete Tag Mapping
157
+ responses:
158
+ '200':
159
+ description: Success
160
+ get:
161
+ displayName: getRuleLibraryContextTagMappingDelete
162
+ description: get Tag Mapping
163
+ responses:
164
+ '200':
165
+ description: Success
166
+ body:
167
+ application/json:
168
+ type: RuleLibraryTagMappingsReadOutputRepresentation
169
+ uriParameters:
170
+ mappingName:
171
+ type: string
172
+ required: true
173
+ ruleLibraryApiName:
174
+ type: string
175
+ required: true
176
+ versionNumber:
177
+ type: string
178
+ required: true
@@ -0,0 +1,46 @@
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
+
25
+ /connect/context-rules:
26
+ /context-tag-mappings/rule-library-api-name/{ruleLibraryApiName}/version-number/{versionNumber}:
27
+ get:
28
+ (luvio.adapter):
29
+ name: getContextTagMappings
30
+ post:
31
+ (luvio.adapter):
32
+ name: createContextTagMapping
33
+ patch:
34
+ (luvio.adapter):
35
+ name: updateContextTagMapping
36
+ /context-tag-mappings/rule-library-api-name/{ruleLibraryApiName}/version-number/{versionNumber}/mapping-name/{mappingName}:
37
+ get:
38
+ (luvio.adapter):
39
+ name: getContextTagMapping
40
+ (luvio.key):
41
+ id: urlParams.mappingName
42
+ delete:
43
+ (luvio.adapter):
44
+ name: deleteContextTagMapping
45
+ (luvio.key):
46
+ id: urlParams.mappingName