@salesforce/lds-adapters-service-gis 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/service-gis.js +1670 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createGisExternalAuthIdentityProvider.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/adapters/getGisExternalAuthAccessToken.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getGisExternalAuthIdentityProviders.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getGisExtlMapObjectConfig.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getGisRelatedObjectConfig.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +10 -0
- package/dist/es/es2018/types/src/generated/resources/getGisAuthGisExternalAccessToken.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getGisAuthGisExternalAuthIdentityProviders.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getGisConfigGisExtlMapObjectConfig.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getGisConfigGisRelatedObjectConfig.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postGisAuthGisExternalAuthIdentityProvider.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/ErrorResponse.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/GisExternalAccessTokenOutputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/GisExternalAuthIdentityProviderCollectionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/GisExternalAuthIdentityProviderInputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/GisExternalAuthIdentityProviderOutputRepresentation.d.ts +56 -0
- package/dist/es/es2018/types/src/generated/types/GisExtlMapObjectConfigCollectionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/GisExtlMapObjectConfigOutputRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/GisRelatedObjectConfigCollectionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/GisRelatedObjectConfigOutputRepresentation.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +68 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1750 -0
- package/src/raml/api.raml +270 -0
- package/src/raml/luvio.raml +77 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '65.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
|
+
ErrorResponse:
|
|
29
|
+
description: Error response
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
code:
|
|
33
|
+
description: Error code
|
|
34
|
+
type: string
|
|
35
|
+
message:
|
|
36
|
+
description: Error message
|
|
37
|
+
type: string
|
|
38
|
+
GisExternalAccessTokenOutputRepresentation:
|
|
39
|
+
description: Output representation for an External GIS authentication token
|
|
40
|
+
type: object
|
|
41
|
+
properties:
|
|
42
|
+
expiresIn:
|
|
43
|
+
description: The token expiration time
|
|
44
|
+
type: integer
|
|
45
|
+
token:
|
|
46
|
+
description: The access token used to authenticate against GIS services (e.g.,
|
|
47
|
+
'esri')
|
|
48
|
+
type: string
|
|
49
|
+
type:
|
|
50
|
+
description: The type of token (e.g., 'Bearer')
|
|
51
|
+
type: string
|
|
52
|
+
GisExternalAuthIdentityProviderCollectionRepresentation:
|
|
53
|
+
description: Represents collection of Gis ExternalProviders
|
|
54
|
+
type: object
|
|
55
|
+
properties:
|
|
56
|
+
count:
|
|
57
|
+
description: Gis ExternalProvider total count
|
|
58
|
+
type: integer
|
|
59
|
+
gisExternalAuthIdentityProviderOutputRepresentation:
|
|
60
|
+
description: Gis ExternalProviders list
|
|
61
|
+
type: array
|
|
62
|
+
items:
|
|
63
|
+
type: GisExternalAuthIdentityProviderOutputRepresentation
|
|
64
|
+
GisExternalAuthIdentityProviderInputRepresentation:
|
|
65
|
+
description: Input representation for creating a GIS External Auth Identity Provider
|
|
66
|
+
type: object
|
|
67
|
+
properties:
|
|
68
|
+
authType:
|
|
69
|
+
description: Selected authentication method
|
|
70
|
+
type: string
|
|
71
|
+
baseUrl:
|
|
72
|
+
description: Base URL for the map provider API
|
|
73
|
+
type: string
|
|
74
|
+
clientId:
|
|
75
|
+
description: Client ID for authentication
|
|
76
|
+
type: string
|
|
77
|
+
clientSecret:
|
|
78
|
+
description: Client secret for authentication
|
|
79
|
+
type: string
|
|
80
|
+
gisProvider:
|
|
81
|
+
description: Selected map provider
|
|
82
|
+
type: string
|
|
83
|
+
name:
|
|
84
|
+
description: Name of the GIS Authentication setup
|
|
85
|
+
type: string
|
|
86
|
+
GisExternalAuthIdentityProviderOutputRepresentation:
|
|
87
|
+
description: Output representation for External Auth Identity Provider
|
|
88
|
+
type: object
|
|
89
|
+
properties:
|
|
90
|
+
authType:
|
|
91
|
+
description: Selected map provider
|
|
92
|
+
type: string
|
|
93
|
+
baseUrl:
|
|
94
|
+
description: Identity provider base url
|
|
95
|
+
type: string
|
|
96
|
+
clientId:
|
|
97
|
+
description: Client ID for authentication
|
|
98
|
+
type: string
|
|
99
|
+
fullName:
|
|
100
|
+
description: External Auth Identity Provider full name
|
|
101
|
+
type: string
|
|
102
|
+
gisProvider:
|
|
103
|
+
description: Selected map provider
|
|
104
|
+
type: string
|
|
105
|
+
id:
|
|
106
|
+
description: External Auth Identity Provider ID
|
|
107
|
+
type: string
|
|
108
|
+
label:
|
|
109
|
+
description: Label for External Auth Identity Provider
|
|
110
|
+
type: string
|
|
111
|
+
GisExtlMapObjectConfigCollectionRepresentation:
|
|
112
|
+
description: Represents collection of GIS External Map Object Configurations
|
|
113
|
+
type: object
|
|
114
|
+
properties:
|
|
115
|
+
count:
|
|
116
|
+
description: Total count of GIS External Map Object Configurations
|
|
117
|
+
type: integer
|
|
118
|
+
gisExtlMapObjectConfigs:
|
|
119
|
+
description: List of GIS External Map Object Configurations
|
|
120
|
+
type: array
|
|
121
|
+
items:
|
|
122
|
+
type: GisExtlMapObjectConfigOutputRepresentation
|
|
123
|
+
GisExtlMapObjectConfigOutputRepresentation:
|
|
124
|
+
description: Output representation for GIS External Map Object Configuration
|
|
125
|
+
type: object
|
|
126
|
+
properties:
|
|
127
|
+
defaultMapId:
|
|
128
|
+
description: Default map ID for the object
|
|
129
|
+
type: string
|
|
130
|
+
id:
|
|
131
|
+
description: Entity ID
|
|
132
|
+
type: string
|
|
133
|
+
mapIdFieldName:
|
|
134
|
+
description: Field name for the map ID
|
|
135
|
+
type: string | nil
|
|
136
|
+
objectName:
|
|
137
|
+
description: Name of the object (e.g., "WorkOrder")
|
|
138
|
+
type: string
|
|
139
|
+
recordType:
|
|
140
|
+
description: Type of the record (e.g., "All")
|
|
141
|
+
type: string | nil
|
|
142
|
+
GisRelatedObjectConfigCollectionRepresentation:
|
|
143
|
+
description: Represents collection of Map Object Configurations
|
|
144
|
+
type: object
|
|
145
|
+
properties:
|
|
146
|
+
count:
|
|
147
|
+
description: Map Object Configurations total count
|
|
148
|
+
type: integer
|
|
149
|
+
gisRelatedObjectConfigOutputRepresentation:
|
|
150
|
+
description: Map Object Configurations list
|
|
151
|
+
type: array
|
|
152
|
+
items:
|
|
153
|
+
type: GisRelatedObjectConfigOutputRepresentation
|
|
154
|
+
GisRelatedObjectConfigOutputRepresentation:
|
|
155
|
+
description: Output representation for Map Object Configuration
|
|
156
|
+
type: object
|
|
157
|
+
properties:
|
|
158
|
+
defaultColor:
|
|
159
|
+
description: Default color for map objects
|
|
160
|
+
type: string
|
|
161
|
+
defaultIcon:
|
|
162
|
+
description: Default icon for map objects
|
|
163
|
+
type: string
|
|
164
|
+
fieldName:
|
|
165
|
+
description: Field name for location data
|
|
166
|
+
type: string
|
|
167
|
+
fieldType:
|
|
168
|
+
description: Type of location field (geographic data type)
|
|
169
|
+
type: string
|
|
170
|
+
id:
|
|
171
|
+
description: Entity ID
|
|
172
|
+
type: string
|
|
173
|
+
objectName:
|
|
174
|
+
description: Name of the object to be configured
|
|
175
|
+
type: string
|
|
176
|
+
recordTypeId:
|
|
177
|
+
description: Record type ID for the map object configuration
|
|
178
|
+
type: string
|
|
179
|
+
recordType:
|
|
180
|
+
description: Record type for the map object configuration
|
|
181
|
+
type: string
|
|
182
|
+
referenceObjectName:
|
|
183
|
+
description: Reference object name for location data
|
|
184
|
+
type: string
|
|
185
|
+
/gis:
|
|
186
|
+
/auth:
|
|
187
|
+
/GisExternalAccessToken:
|
|
188
|
+
get:
|
|
189
|
+
displayName: getGisExternalAuthAccessToken
|
|
190
|
+
description: Get an authentication access token for GIS services (e.g., 'esri')
|
|
191
|
+
responses:
|
|
192
|
+
'200':
|
|
193
|
+
description: Success
|
|
194
|
+
body:
|
|
195
|
+
application/json:
|
|
196
|
+
type: GisExternalAccessTokenOutputRepresentation
|
|
197
|
+
queryParameters:
|
|
198
|
+
authSettingsId:
|
|
199
|
+
description: Authentication settings related
|
|
200
|
+
type: string
|
|
201
|
+
/GisExternalAuthIdentityProvider:
|
|
202
|
+
post:
|
|
203
|
+
displayName: createGisExternalAuthIdentityProvider
|
|
204
|
+
description: Create Gis ExternalAuthIdentityProviders.
|
|
205
|
+
responses:
|
|
206
|
+
'200':
|
|
207
|
+
description: Success
|
|
208
|
+
body:
|
|
209
|
+
application/json:
|
|
210
|
+
type: GisExternalAuthIdentityProviderOutputRepresentation
|
|
211
|
+
body:
|
|
212
|
+
application/json:
|
|
213
|
+
type: GisExternalAuthIdentityProviderInputRepresentation
|
|
214
|
+
(oas-body-name): gisExternalAuthIdentityProviderInputRepresentation
|
|
215
|
+
/GisExternalAuthIdentityProviders:
|
|
216
|
+
get:
|
|
217
|
+
displayName: getGisExternalAuthIdentityProviders
|
|
218
|
+
description: Gets Gis ExternalAuthIdentityProviders.
|
|
219
|
+
responses:
|
|
220
|
+
'200':
|
|
221
|
+
description: Success
|
|
222
|
+
body:
|
|
223
|
+
application/json:
|
|
224
|
+
type: GisExternalAuthIdentityProviderCollectionRepresentation
|
|
225
|
+
queryParameters:
|
|
226
|
+
limitByProfile:
|
|
227
|
+
description: Limits the settings for profile or not
|
|
228
|
+
type: boolean
|
|
229
|
+
/config:
|
|
230
|
+
/GisExtlMapObjectConfig:
|
|
231
|
+
get:
|
|
232
|
+
displayName: getGisExtlMapObjectConfig
|
|
233
|
+
description: Fetches the display mapping configuration for a specific object
|
|
234
|
+
and record type.
|
|
235
|
+
responses:
|
|
236
|
+
'200':
|
|
237
|
+
description: Success
|
|
238
|
+
body:
|
|
239
|
+
application/json:
|
|
240
|
+
type: GisExtlMapObjectConfigCollectionRepresentation
|
|
241
|
+
queryParameters:
|
|
242
|
+
id:
|
|
243
|
+
description: Filter by object id
|
|
244
|
+
type: string
|
|
245
|
+
required: false
|
|
246
|
+
objectName:
|
|
247
|
+
description: The name of the object to get mapping configuration for (e.g.,
|
|
248
|
+
"WorkOrder")
|
|
249
|
+
type: string
|
|
250
|
+
required: false
|
|
251
|
+
/GisRelatedObjectConfig:
|
|
252
|
+
get:
|
|
253
|
+
displayName: getGisRelatedObjectConfig
|
|
254
|
+
description: Get a list of all map object configurations, optionally filtered
|
|
255
|
+
by objectName.
|
|
256
|
+
responses:
|
|
257
|
+
'200':
|
|
258
|
+
description: Success
|
|
259
|
+
body:
|
|
260
|
+
application/json:
|
|
261
|
+
type: GisRelatedObjectConfigCollectionRepresentation
|
|
262
|
+
queryParameters:
|
|
263
|
+
id:
|
|
264
|
+
description: Filter by object id
|
|
265
|
+
type: string
|
|
266
|
+
required: false
|
|
267
|
+
objectName:
|
|
268
|
+
description: Filter by object name
|
|
269
|
+
type: string
|
|
270
|
+
required: false
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
title: GIS Service API Overlay
|
|
3
|
+
extends: ./api.raml
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'gis'
|
|
8
|
+
(luvio.ttl): 1000
|
|
9
|
+
|
|
10
|
+
# Type definitions with TTL
|
|
11
|
+
types:
|
|
12
|
+
# GIS External Auth Identity Provider types
|
|
13
|
+
GisExternalAuthIdentityProviderCollectionRepresentation:
|
|
14
|
+
(luvio.ttl): 300
|
|
15
|
+
|
|
16
|
+
GisExternalAuthIdentityProviderOutputRepresentation:
|
|
17
|
+
(luvio.ttl): 300
|
|
18
|
+
(luvio.key):
|
|
19
|
+
id: id
|
|
20
|
+
|
|
21
|
+
GisExternalAuthIdentityProviderInputRepresentation:
|
|
22
|
+
(luvio.ttl): 300
|
|
23
|
+
|
|
24
|
+
GisExternalAuthIdentityProviderCredential:
|
|
25
|
+
(luvio.ttl): 300
|
|
26
|
+
|
|
27
|
+
GisExternalAuthIdentityProviderParameter:
|
|
28
|
+
(luvio.ttl): 300
|
|
29
|
+
|
|
30
|
+
GisExternalAccessTokenOutputRepresentation:
|
|
31
|
+
(luvio.ttl): 300
|
|
32
|
+
|
|
33
|
+
# GIS Config types
|
|
34
|
+
GisExtlMapObjectConfigOutputRepresentation:
|
|
35
|
+
(luvio.ttl): 300
|
|
36
|
+
(luvio.key):
|
|
37
|
+
id: id
|
|
38
|
+
|
|
39
|
+
GisExtlMapObjectConfigCollectionRepresentation:
|
|
40
|
+
(luvio.ttl): 300
|
|
41
|
+
|
|
42
|
+
GisRelatedObjectConfigOutputRepresentation:
|
|
43
|
+
(luvio.ttl): 300
|
|
44
|
+
(luvio.key):
|
|
45
|
+
id: id
|
|
46
|
+
|
|
47
|
+
GisRelatedObjectConfigCollectionRepresentation:
|
|
48
|
+
(luvio.ttl): 300
|
|
49
|
+
|
|
50
|
+
# Endpoint configurations - Only include customizations that don't override base endpoints
|
|
51
|
+
/gis/auth:
|
|
52
|
+
# GisExternalAuthIdentityProvider endpoints
|
|
53
|
+
/GisExternalAuthIdentityProvider:
|
|
54
|
+
post:
|
|
55
|
+
(luvio.adapter):
|
|
56
|
+
name: createGisExternalAuthIdentityProvider
|
|
57
|
+
|
|
58
|
+
/GisExternalAuthIdentityProviders:
|
|
59
|
+
get:
|
|
60
|
+
(luvio.adapter):
|
|
61
|
+
name: getGisExternalAuthIdentityProviders
|
|
62
|
+
|
|
63
|
+
/GisExternalAccessToken:
|
|
64
|
+
get:
|
|
65
|
+
(luvio.adapter):
|
|
66
|
+
name: getGisExternalAuthAccessToken
|
|
67
|
+
|
|
68
|
+
/gis/config:
|
|
69
|
+
/GisExtlMapObjectConfig:
|
|
70
|
+
get:
|
|
71
|
+
(luvio.adapter):
|
|
72
|
+
name: getGisExtlMapObjectConfig
|
|
73
|
+
|
|
74
|
+
/GisRelatedObjectConfig:
|
|
75
|
+
get:
|
|
76
|
+
(luvio.adapter):
|
|
77
|
+
name: getGisRelatedObjectConfig
|