@salesforce/lds-adapters-cdp-data-transform 1.344.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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/cdp-data-transform.js +630 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/validateDataTransforms.d.ts +43 -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/postSsotDataTransformsValidation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/CdpUserRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataObjectFieldRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/DataObjectRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/DataTransformInputRepresentation.d.ts +70 -0
- package/dist/es/es2018/types/src/generated/types/DataTransformValidationRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/TransformValidationIssueRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +664 -0
- package/src/raml/api.raml +259 -0
- package/src/raml/luvio.raml +27 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '62.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v62.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
|
+
CdpUserRepresentation:
|
|
29
|
+
description: Represents a user
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
id:
|
|
33
|
+
description: The 18 character user ID
|
|
34
|
+
type: string
|
|
35
|
+
name?:
|
|
36
|
+
description: The name of the user
|
|
37
|
+
type: string
|
|
38
|
+
profilePhotoUrl?:
|
|
39
|
+
description: The Chatter profile photo of the user
|
|
40
|
+
type: string
|
|
41
|
+
CdpAssetBaseRepresentation:
|
|
42
|
+
description: Represents a base Asset
|
|
43
|
+
type: object
|
|
44
|
+
discriminator: id
|
|
45
|
+
properties:
|
|
46
|
+
createdBy?:
|
|
47
|
+
description: Created by
|
|
48
|
+
type: CdpUserRepresentation
|
|
49
|
+
createdDate?:
|
|
50
|
+
description: Created date
|
|
51
|
+
type: string
|
|
52
|
+
id:
|
|
53
|
+
description: The 18 character ID of the asset
|
|
54
|
+
type: string
|
|
55
|
+
label?:
|
|
56
|
+
description: Label of the asset
|
|
57
|
+
type: string
|
|
58
|
+
lastModifiedBy?:
|
|
59
|
+
description: Last modified by
|
|
60
|
+
type: CdpUserRepresentation
|
|
61
|
+
lastModifiedDate?:
|
|
62
|
+
description: Last modified date
|
|
63
|
+
type: string
|
|
64
|
+
name?:
|
|
65
|
+
description: Name of the asset
|
|
66
|
+
type: string
|
|
67
|
+
namespace?:
|
|
68
|
+
description: Namespace of the asset
|
|
69
|
+
type: string
|
|
70
|
+
url?:
|
|
71
|
+
description: Url
|
|
72
|
+
type: string
|
|
73
|
+
TransformValidationIssueRepresentation:
|
|
74
|
+
description: Data transform validation issue representation
|
|
75
|
+
type: object
|
|
76
|
+
properties:
|
|
77
|
+
errorCode?:
|
|
78
|
+
description: Error code
|
|
79
|
+
type: string
|
|
80
|
+
enum:
|
|
81
|
+
- DataTransformLimitExceeded
|
|
82
|
+
- DloNameDoesNotExist
|
|
83
|
+
- DmoOutputValidationError
|
|
84
|
+
- InternalServiceError
|
|
85
|
+
- InvalidDataTransform
|
|
86
|
+
- InvalidDataTransformCapability
|
|
87
|
+
- InvalidDataTransformDataObjects
|
|
88
|
+
- InvalidDataTransformDefMapping
|
|
89
|
+
- InvalidDataTransformDefinition
|
|
90
|
+
- InvalidDataTransformRequest
|
|
91
|
+
- InvalidDataTransformTag
|
|
92
|
+
- InvalidInputPayload
|
|
93
|
+
- InvalidTargetDLO
|
|
94
|
+
- InvalidTargetDMO
|
|
95
|
+
- NameValidationError
|
|
96
|
+
- RestrictedDLO
|
|
97
|
+
- SourceDloNotFound
|
|
98
|
+
- SqlExpressionIsNull
|
|
99
|
+
- StreamingTransformCreateForbidden
|
|
100
|
+
- TagsValidationError
|
|
101
|
+
- TargetDLOIsRebuilding
|
|
102
|
+
- TargetDloNotFound
|
|
103
|
+
- TargetDmoNotFound
|
|
104
|
+
- TargetObjectNameNull
|
|
105
|
+
- TypeValidationError
|
|
106
|
+
errorMessage?:
|
|
107
|
+
description: Error message
|
|
108
|
+
type: string
|
|
109
|
+
errorSeverity:
|
|
110
|
+
description: Error severity
|
|
111
|
+
type: string
|
|
112
|
+
enum:
|
|
113
|
+
- Error
|
|
114
|
+
- Fatal
|
|
115
|
+
- Warning
|
|
116
|
+
DataObjectFieldRepresentation:
|
|
117
|
+
description: Data Object Field
|
|
118
|
+
type: object
|
|
119
|
+
properties:
|
|
120
|
+
isPrimaryKey:
|
|
121
|
+
description: Is Primary Key
|
|
122
|
+
type: boolean
|
|
123
|
+
keyQualifierField:
|
|
124
|
+
description: Key Qualifier Field
|
|
125
|
+
type: string
|
|
126
|
+
label:
|
|
127
|
+
description: Label
|
|
128
|
+
type: string
|
|
129
|
+
name:
|
|
130
|
+
description: Name
|
|
131
|
+
type: string
|
|
132
|
+
type:
|
|
133
|
+
description: Type
|
|
134
|
+
type: string
|
|
135
|
+
enum:
|
|
136
|
+
- Boolean
|
|
137
|
+
- Currency
|
|
138
|
+
- Date
|
|
139
|
+
- DateOnly
|
|
140
|
+
- DateTime
|
|
141
|
+
- Email
|
|
142
|
+
- Number
|
|
143
|
+
- Percent
|
|
144
|
+
- Phone
|
|
145
|
+
- Text
|
|
146
|
+
- Url
|
|
147
|
+
DataObjectRepresentation:
|
|
148
|
+
description: Data Object
|
|
149
|
+
discriminator: type
|
|
150
|
+
type: CdpAssetBaseRepresentation
|
|
151
|
+
properties:
|
|
152
|
+
category:
|
|
153
|
+
description: Category
|
|
154
|
+
type: string
|
|
155
|
+
enum:
|
|
156
|
+
- Engagement
|
|
157
|
+
- Other
|
|
158
|
+
- Profile
|
|
159
|
+
eventDateTimeFieldName?:
|
|
160
|
+
description: Event Date Time Field
|
|
161
|
+
type: string
|
|
162
|
+
fields:
|
|
163
|
+
description: Fields
|
|
164
|
+
type: array
|
|
165
|
+
items:
|
|
166
|
+
type: DataObjectFieldRepresentation
|
|
167
|
+
recordModifiedFieldName?:
|
|
168
|
+
description: Record Modified Field
|
|
169
|
+
type: string
|
|
170
|
+
type:
|
|
171
|
+
description: Type of Data Object
|
|
172
|
+
type: string
|
|
173
|
+
enum:
|
|
174
|
+
- CalculatedInsightObject
|
|
175
|
+
- DataLakeObject
|
|
176
|
+
- DataModelObject
|
|
177
|
+
DataTransformValidationRepresentation:
|
|
178
|
+
description: Data Transform validations and output data object Representation
|
|
179
|
+
type: object
|
|
180
|
+
properties:
|
|
181
|
+
issues?:
|
|
182
|
+
description: List of validation issues
|
|
183
|
+
type: array
|
|
184
|
+
items:
|
|
185
|
+
type: TransformValidationIssueRepresentation
|
|
186
|
+
outputDataObjects?:
|
|
187
|
+
description: Output representation of target object
|
|
188
|
+
type: array
|
|
189
|
+
items:
|
|
190
|
+
type: DataObjectRepresentation
|
|
191
|
+
DataTransformInputRepresentation:
|
|
192
|
+
description: Input representation for creating a Data Transform
|
|
193
|
+
type: object
|
|
194
|
+
properties:
|
|
195
|
+
capabilities?:
|
|
196
|
+
description: A map of capabilities that can be requested for a data transform
|
|
197
|
+
type: object
|
|
198
|
+
properties:
|
|
199
|
+
//:
|
|
200
|
+
type: boolean
|
|
201
|
+
creationType:
|
|
202
|
+
description: The creation type of the data transform
|
|
203
|
+
type: string
|
|
204
|
+
enum:
|
|
205
|
+
- Custom
|
|
206
|
+
- System
|
|
207
|
+
currencyIsoCode?:
|
|
208
|
+
description: The currency iso code of the data transform
|
|
209
|
+
type: string
|
|
210
|
+
dataSpaceName?:
|
|
211
|
+
description: The data space the data transform belongs to
|
|
212
|
+
type: string
|
|
213
|
+
definition:
|
|
214
|
+
description: Definition of the data transform. Can be batch or streaming
|
|
215
|
+
type: object
|
|
216
|
+
properties:
|
|
217
|
+
//:
|
|
218
|
+
type: any
|
|
219
|
+
description?:
|
|
220
|
+
description: Description of the data transform
|
|
221
|
+
type: string
|
|
222
|
+
label?:
|
|
223
|
+
description: Label of the data transform
|
|
224
|
+
type: string
|
|
225
|
+
name?:
|
|
226
|
+
description: Name of the data transform
|
|
227
|
+
type: string
|
|
228
|
+
primarySource?:
|
|
229
|
+
description: The primary source for transform when there are table joins
|
|
230
|
+
type: string
|
|
231
|
+
tags?:
|
|
232
|
+
description: A JSON blob of tags for consumers to add metadata/event info
|
|
233
|
+
to the transforms they create
|
|
234
|
+
type: object
|
|
235
|
+
properties:
|
|
236
|
+
//:
|
|
237
|
+
type: string
|
|
238
|
+
type:
|
|
239
|
+
description: Type of data transform - streaming or batch
|
|
240
|
+
type: string
|
|
241
|
+
enum:
|
|
242
|
+
- Batch
|
|
243
|
+
- Streaming
|
|
244
|
+
|
|
245
|
+
/ssot:
|
|
246
|
+
/data-transforms-validation:
|
|
247
|
+
post:
|
|
248
|
+
displayName: postCdpDataTransformValidation
|
|
249
|
+
description: Validate the data transform
|
|
250
|
+
responses:
|
|
251
|
+
'200':
|
|
252
|
+
description: Success
|
|
253
|
+
body:
|
|
254
|
+
application/json:
|
|
255
|
+
type: DataTransformValidationRepresentation
|
|
256
|
+
body:
|
|
257
|
+
application/json:
|
|
258
|
+
type: DataTransformInputRepresentation
|
|
259
|
+
(oas-body-name): input
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'data-transform'
|
|
8
|
+
(luvio.ttl): 3000000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
TransformValidationIssueRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
DataObjectFieldRepresentation:
|
|
14
|
+
(luvio.opaque): true
|
|
15
|
+
DataObjectRepresentation:
|
|
16
|
+
(luvio.opaque): true
|
|
17
|
+
DataTransformInputRepresentation:
|
|
18
|
+
(luvio.opaque): true
|
|
19
|
+
DataTransformValidationRepresentation:
|
|
20
|
+
(luvio.opaque): true
|
|
21
|
+
|
|
22
|
+
/ssot:
|
|
23
|
+
/data-transforms-validation:
|
|
24
|
+
post:
|
|
25
|
+
(luvio.method): get
|
|
26
|
+
(luvio.adapter):
|
|
27
|
+
name: validateDataTransforms
|