@salesforce/lds-adapters-cdp-data-transform 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 (33) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cdp-data-transform.js +2250 -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/createDataTransform.d.ts +32 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteDataTransform.d.ts +14 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getDataTransform.d.ts +30 -0
  7. package/dist/es/es2018/types/src/generated/adapters/updateDataTransform.d.ts +33 -0
  8. package/dist/es/es2018/types/src/generated/adapters/validateDataTransforms.d.ts +43 -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/deleteSsotDataTransformsByDataTransformNameOrId.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/resources/getSsotDataTransformsByDataTransformNameOrId.d.ts +19 -0
  13. package/dist/es/es2018/types/src/generated/resources/postSsotDataTransforms.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/resources/postSsotDataTransformsValidation.d.ts +31 -0
  15. package/dist/es/es2018/types/src/generated/resources/putSsotDataTransformsByDataTransformNameOrId.d.ts +34 -0
  16. package/dist/es/es2018/types/src/generated/types/BaseActionRepresentation.d.ts +31 -0
  17. package/dist/es/es2018/types/src/generated/types/CdpAssetBaseRepresentation.d.ts +67 -0
  18. package/dist/es/es2018/types/src/generated/types/CdpErrorRepresentation.d.ts +31 -0
  19. package/dist/es/es2018/types/src/generated/types/CdpUserRepresentation.d.ts +34 -0
  20. package/dist/es/es2018/types/src/generated/types/DataObjectFieldRepresentation.d.ts +40 -0
  21. package/dist/es/es2018/types/src/generated/types/DataObjectRepresentation.d.ts +46 -0
  22. package/dist/es/es2018/types/src/generated/types/DataTransformDefinitionRepresentation.d.ts +44 -0
  23. package/dist/es/es2018/types/src/generated/types/DataTransformInputRepresentation.d.ts +70 -0
  24. package/dist/es/es2018/types/src/generated/types/DataTransformRepresentation.d.ts +97 -0
  25. package/dist/es/es2018/types/src/generated/types/DataTransformValidationRepresentation.d.ts +33 -0
  26. package/dist/es/es2018/types/src/generated/types/ScheduleRepresentation.d.ts +31 -0
  27. package/dist/es/es2018/types/src/generated/types/TransformValidationIssueRepresentation.d.ts +34 -0
  28. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  29. package/package.json +66 -0
  30. package/sfdc/index.d.ts +1 -0
  31. package/sfdc/index.js +2347 -0
  32. package/src/raml/api.raml +451 -0
  33. package/src/raml/luvio.raml +48 -0
@@ -0,0 +1,451 @@
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/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
+ 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
+ BaseActionRepresentation:
192
+ description: Base Action Urls
193
+ type: object
194
+ properties:
195
+ refreshStatusAction:
196
+ description: Url to Refresh Status Action
197
+ type: string
198
+ retryAction:
199
+ description: Url to Retry Action
200
+ type: string
201
+ DataTransformDefinitionRepresentation:
202
+ description: Representation of batch data transform Node
203
+ discriminator: type
204
+ type: object
205
+ properties:
206
+ outputDataObjects:
207
+ description: Output Data Objects that are part of the data transform
208
+ type: array
209
+ items:
210
+ type: DataObjectRepresentation
211
+ type:
212
+ description: Definition type
213
+ type: string
214
+ enum:
215
+ - Dbt
216
+ - Sql
217
+ - Stl
218
+ version:
219
+ description: batch data transform version
220
+ type: string
221
+ CdpErrorRepresentation:
222
+ description: Error response representation
223
+ type: object
224
+ properties:
225
+ errorCode:
226
+ description: Error Code
227
+ type: string
228
+ message:
229
+ description: Message stating the reason for error, if any
230
+ type: string
231
+ ScheduleRepresentation:
232
+ description: Representation of Save Node
233
+ type: object
234
+ properties:
235
+ schedule:
236
+ description: Schedule cron expression
237
+ type: string
238
+ url:
239
+ description: Url to Data Transform schedule
240
+ type: string
241
+ DataTransformRepresentation:
242
+ description: A Data Prep batch data transform.
243
+ discriminatorValue: type
244
+ type: CdpAssetBaseRepresentation
245
+ properties:
246
+ actionUrls:
247
+ description: Actions available for the Data Transform
248
+ type: BaseActionRepresentation
249
+ capabilities?:
250
+ description: Requested capabilities on a data transform
251
+ type: object
252
+ properties:
253
+ //:
254
+ type: boolean
255
+ creationType:
256
+ description: The creation type of the data transform
257
+ type: string
258
+ enum:
259
+ - Custom
260
+ - System
261
+ dataSpaceName?:
262
+ description: Data space for the Data Transform
263
+ type: string
264
+ definition:
265
+ description: Data Transform definition
266
+ type: DataTransformDefinitionRepresentation
267
+ description?:
268
+ description: Description
269
+ type: string
270
+ lastRunDate?:
271
+ description: Last run date
272
+ type: string
273
+ lastRunErrorCode?:
274
+ description: Last run error code
275
+ type: CdpErrorRepresentation
276
+ lastRunErrorMessage?:
277
+ description: The error message for the last run of the transform. Set if last
278
+ run ended in failure/partial_failure
279
+ type: string
280
+ lastRunStatus?:
281
+ description: The last run status
282
+ type: string
283
+ enum:
284
+ - Canceled
285
+ - Failure
286
+ - InProgress
287
+ - None
288
+ - PartialFailure
289
+ - PartiallyCanceled
290
+ - Pending
291
+ - RebuildFailure
292
+ - RebuildPending
293
+ - RebuildSuccess
294
+ - Rebuilding
295
+ - SkippedNoChanges
296
+ - Success
297
+ schedule?:
298
+ description: The schedule cron expression current dataflow.
299
+ type: ScheduleRepresentation
300
+ status:
301
+ description: The status of the Data Transform
302
+ type: string
303
+ enum:
304
+ - Active
305
+ - Deleting
306
+ - Error
307
+ - Processing
308
+ tags?:
309
+ description: Tags of a data transforms - consumer specific metadata/event
310
+ info
311
+ type: object
312
+ properties:
313
+ //:
314
+ type: string
315
+ type:
316
+ description: Type of Data Transform
317
+ type: string
318
+ enum:
319
+ - Batch
320
+ - Streaming
321
+ version?:
322
+ description: Version
323
+ format: double
324
+ type: number
325
+ DataTransformInputRepresentation:
326
+ description: Input representation for creating a Data Transform
327
+ type: object
328
+ properties:
329
+ capabilities?:
330
+ description: A map of capabilities that can be requested for a data transform
331
+ type: object
332
+ properties:
333
+ //:
334
+ type: boolean
335
+ creationType:
336
+ description: The creation type of the data transform
337
+ type: string
338
+ enum:
339
+ - Custom
340
+ - System
341
+ currencyIsoCode?:
342
+ description: The currency iso code of the data transform
343
+ type: string
344
+ dataSpaceName?:
345
+ description: The data space the data transform belongs to
346
+ type: string
347
+ definition:
348
+ description: Definition of the data transform. Can be batch or streaming
349
+ type: object
350
+ properties:
351
+ //:
352
+ type: any
353
+ description?:
354
+ description: Description of the data transform
355
+ type: string
356
+ label?:
357
+ description: Label of the data transform
358
+ type: string
359
+ name?:
360
+ description: Name of the data transform
361
+ type: string
362
+ primarySource?:
363
+ description: The primary source for transform when there are table joins
364
+ type: string
365
+ tags?:
366
+ description: A JSON blob of tags for consumers to add metadata/event info
367
+ to the transforms they create
368
+ type: object
369
+ properties:
370
+ //:
371
+ type: string
372
+ type:
373
+ description: Type of data transform - streaming or batch
374
+ type: string
375
+ enum:
376
+ - Batch
377
+ - Streaming
378
+
379
+ /ssot:
380
+ /data-transforms-validation:
381
+ post:
382
+ displayName: postCdpDataTransformValidation
383
+ description: Validate the data transform
384
+ responses:
385
+ '200':
386
+ description: Success
387
+ body:
388
+ application/json:
389
+ type: DataTransformValidationRepresentation
390
+ body:
391
+ application/json:
392
+ type: DataTransformInputRepresentation
393
+ (oas-body-name): input
394
+ /data-transforms:
395
+ post:
396
+ displayName: postCdpDataTransformCollection
397
+ description: Create a new data transform
398
+ responses:
399
+ '200':
400
+ description: Success
401
+ body:
402
+ application/json:
403
+ type: DataTransformRepresentation
404
+ queryParameters:
405
+ filterGroup:
406
+ type: string
407
+ required: false
408
+ body:
409
+ application/json:
410
+ type: DataTransformInputRepresentation
411
+ (oas-body-name): dataTransformObject
412
+ /data-transforms/{dataTransformNameOrId}:
413
+ get:
414
+ displayName: getCdpDataTransform
415
+ description: Get a data transform
416
+ responses:
417
+ '200':
418
+ description: Success
419
+ body:
420
+ application/json:
421
+ type: DataTransformRepresentation
422
+ queryParameters:
423
+ filterGroup:
424
+ type: string
425
+ required: false
426
+ delete:
427
+ displayName: deleteCdpDataTransform
428
+ description: Delete a data transform
429
+ responses:
430
+ '200':
431
+ description: Success
432
+ put:
433
+ displayName: putCdpDataTransform
434
+ description: Put a data transform
435
+ responses:
436
+ '200':
437
+ description: Success
438
+ body:
439
+ application/json:
440
+ type: DataTransformRepresentation
441
+ queryParameters:
442
+ filterGroup:
443
+ type: string
444
+ required: false
445
+ body:
446
+ application/json:
447
+ type: DataTransformInputRepresentation
448
+ (oas-body-name): dataTransformObject
449
+ uriParameters:
450
+ dataTransformNameOrId:
451
+ type: string
@@ -0,0 +1,48 @@
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
+ CdpAssetBaseRepresentation:
22
+ (luvio.key):
23
+ name: name
24
+
25
+ /ssot:
26
+ /data-transforms-validation:
27
+ post:
28
+ (luvio.method): get
29
+ (luvio.adapter):
30
+ name: validateDataTransforms
31
+ /data-transforms:
32
+ post:
33
+ (luvio.adapter):
34
+ name: createDataTransform
35
+ /data-transforms/{dataTransformNameOrId}:
36
+ get:
37
+ (luvio.adapter):
38
+ name: getDataTransform
39
+ (luvio.key):
40
+ name: urlParams.dataTransformNameOrId
41
+ delete:
42
+ (luvio.adapter):
43
+ name: deleteDataTransform
44
+ (luvio.key):
45
+ name: urlParams.dataTransformNameOrId
46
+ put:
47
+ (luvio.adapter):
48
+ name: updateDataTransform