@salesforce/lds-adapters-industries-dataloading 0.131.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.
@@ -0,0 +1,115 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '58.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v58.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
+
28
+ types:
29
+ ObjectCsvDataTemplateRepresentation:
30
+ description: Output representation for csv data template
31
+ type: object
32
+ properties:
33
+ code:
34
+ description: return code
35
+ type: integer
36
+ message:
37
+ description: return message
38
+ type: string
39
+ template:
40
+ description: return template
41
+ type: object
42
+
43
+ FeatureObjectsResultRepresentation:
44
+ description: Output representation for objects for a feature
45
+ type: object
46
+ properties:
47
+ code:
48
+ description: return code
49
+ type: integer
50
+ currentPageNumber:
51
+ description: return currentPageNumber
52
+ type: integer
53
+ currentPageSize:
54
+ description: return currentPageSize
55
+ type: integer
56
+ message:
57
+ description: return message
58
+ type: string
59
+ objects:
60
+ description: return objects
61
+ type: array
62
+ items:
63
+ type: FeatureObjectRepresentation
64
+ totalAvailableItems:
65
+ description: return totalAvailableItems
66
+ type: integer
67
+
68
+ FeatureObjectRepresentation:
69
+ description: Representation for an object in list of objects
70
+ type: object
71
+ properties:
72
+ apiName:
73
+ description: return apiName
74
+ type: string
75
+ label:
76
+ description: return label
77
+ type: string
78
+
79
+ /connect/industries/csv-data-template/{objectApiName}:
80
+ get:
81
+ description: method to get CSV Data Template for an object
82
+ responses:
83
+ '200':
84
+ description: Success
85
+ body:
86
+ application/json:
87
+ type: ObjectCsvDataTemplateRepresentation
88
+ uriParameters:
89
+ objectApiName:
90
+ type: string
91
+ required: true
92
+
93
+ /connect/industries/{featureName}/objects:
94
+ get:
95
+ description: method to get list of objects for feature
96
+ responses:
97
+ '200':
98
+ description: Success
99
+ body:
100
+ application/json:
101
+ type: FeatureObjectsResultRepresentation
102
+ queryParameters:
103
+ limit:
104
+ type: integer
105
+ required: false
106
+ offset:
107
+ type: integer
108
+ required: false
109
+ entityType:
110
+ type: string
111
+ required: true
112
+ uriParameters:
113
+ featureName:
114
+ type: string
115
+ required: true
@@ -0,0 +1,25 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'dataloading'
8
+
9
+ types:
10
+ ObjectCsvDataTemplateRepresentation:
11
+ (luvio.ttl): 300
12
+ (luvio.opaque): true
13
+ FeatureObjectsResultRepresentation:
14
+ (luvio.ttl): 300
15
+ (luvio.opaque): true
16
+
17
+ /connect/industries/csv-data-template/{objectApiName}:
18
+ get:
19
+ (luvio.adapter):
20
+ name: getCsvDataTemplate
21
+
22
+ /connect/industries/{featureName}/objects:
23
+ get:
24
+ (luvio.adapter):
25
+ name: getObjectsForFeature