@salesforce/lds-adapters-platform-data-seed 1.339.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 (22) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-data-seed.js +685 -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/getDataSeedStatus.d.ts +30 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getUploadPreSignedUrl.d.ts +19 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -0
  8. package/dist/es/es2018/types/src/generated/resources/getPlatformDataSeedV1DataSeedRequest.d.ts +18 -0
  9. package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedGeneratePresignedUploadUrl.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/types/DataSeedRequestObjectRepresentation.d.ts +58 -0
  11. package/dist/es/es2018/types/src/generated/types/DataSeedStatusErrorRepresentation.d.ts +28 -0
  12. package/dist/es/es2018/types/src/generated/types/DataSeedStatusOutputRepresentation.d.ts +32 -0
  13. package/dist/es/es2018/types/src/generated/types/PreSignedUrlBadErrorRepresentation.d.ts +28 -0
  14. package/dist/es/es2018/types/src/generated/types/PreSignedUrlInputRepresentation.d.ts +28 -0
  15. package/dist/es/es2018/types/src/generated/types/PreSignedUrlResultRepresentation.d.ts +41 -0
  16. package/dist/es/es2018/types/src/generated/types/PreSignedUrlServerErrorRepresentation.d.ts +31 -0
  17. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  18. package/package.json +66 -0
  19. package/sfdc/index.d.ts +1 -0
  20. package/sfdc/index.js +723 -0
  21. package/src/raml/api.raml +192 -0
  22. package/src/raml/luvio.raml +24 -0
@@ -0,0 +1,192 @@
1
+ #%RAML 1.0
2
+ title: Salesforce API Platform Cloudbeat
3
+ protocols:
4
+ - HTTPS
5
+
6
+ types:
7
+ DataSeedStatusOutputRepresentation:
8
+ description: Data Seed Response Representation
9
+ type: object
10
+ properties:
11
+ data:
12
+ description: Data Seed Request's History Data List
13
+ type: array
14
+ items:
15
+ type: DataSeedRequestObjectRepresentation
16
+ correlation_id:
17
+ description: Data Seed Request's Correlation ID
18
+ type: string
19
+
20
+ DataSeedRequestObjectRepresentation:
21
+ description: Data Seed Request properties
22
+ type: object
23
+ properties:
24
+ request_id:
25
+ description: Request ID
26
+ type: string
27
+ organization_id:
28
+ description: Organization ID
29
+ type: string
30
+ name:
31
+ description: Request Name
32
+ type: string
33
+ description:
34
+ description: Request Description
35
+ type: string
36
+ job_type:
37
+ description: Request Job Type
38
+ type: string
39
+ status:
40
+ description: Request Status
41
+ type: string
42
+ step:
43
+ description: Request Step
44
+ type: string
45
+ log_text:
46
+ description: Request Log Text
47
+ type: string
48
+ execution_start_time:
49
+ description: Request Execution Start Time
50
+ type: string
51
+ execution_end_time:
52
+ description: Request Execution End Time
53
+ type: string
54
+ created_by:
55
+ description: Request Created By User
56
+ type: string
57
+
58
+ DataSeedStatusErrorRepresentation:
59
+ description: Data Seed Error Representation
60
+ type: object
61
+ properties:
62
+ error:
63
+ description: Data Seed Error Message
64
+ type: string
65
+
66
+ PreSignedUrlInputRepresentation:
67
+ description: Pre Signed Url Input Representation
68
+ type: object
69
+ properties:
70
+ file_name:
71
+ description: File Name
72
+ type: string
73
+
74
+ PreSignedUrlResultRepresentation:
75
+ description: Pre Signed Url Response Representation
76
+ type: object
77
+ properties:
78
+ url:
79
+ description: Pre Signed Url
80
+ type: string
81
+ s3_unique_id:
82
+ description: Url Unique Id
83
+ type: string
84
+
85
+ PreSignedUrlBadErrorRepresentation:
86
+ description: Pre Signed Url Missing Parameters Error Representation
87
+ type: object
88
+ properties:
89
+ error:
90
+ description: Pre Signed Url Bad Request Error Message
91
+ type: string
92
+
93
+ PreSignedUrlServerErrorRepresentation:
94
+ description: Pre Signed Url Server Error Representation
95
+ type: object
96
+ properties:
97
+ error:
98
+ description: Pre Signed Url Server Error Message
99
+ type: string
100
+ correlation_id:
101
+ description: Pre Signed Url Request Correlation Id
102
+ type: string
103
+
104
+ /platform/data-seed/v1:
105
+ /data-seed-request:
106
+ get:
107
+ displayName: DataSeedStatusAPI
108
+ description: For a given requestId return it's status
109
+ headers:
110
+ 'x-client-trace-id':
111
+ type: string
112
+ description: Id to track the request.
113
+ required: true
114
+ 'x-salesforce-region':
115
+ type: string
116
+ description: The region of this request.
117
+ required: true
118
+ 'Org-Url':
119
+ type: string
120
+ description: Org url of the org
121
+ required: true
122
+ 'Access-Token':
123
+ type: string
124
+ description: Access token of url
125
+ required: true
126
+ responses:
127
+ 200:
128
+ description: Returns the success response with request's status.
129
+ body:
130
+ application/json:
131
+ type: DataSeedStatusOutputRepresentation
132
+ 400:
133
+ description: Returns the error if request is not found.
134
+ body:
135
+ application/json:
136
+ type: DataSeedStatusErrorRepresentation
137
+ 403:
138
+ description: Returns the error if request is not found.
139
+ body:
140
+ application/json:
141
+ type: DataSeedStatusErrorRepresentation
142
+ 500:
143
+ description: Returns the error if request is not found.
144
+ body:
145
+ application/json:
146
+ type: DataSeedStatusErrorRepresentation
147
+ /data-seed-generate-presigned-upload-url:
148
+ post:
149
+ displayName: getPreSignedUrl
150
+ description: Add an existing Data Cloud Object as a new Semantic Data Object to a specific Semantic Model.
151
+ headers:
152
+ 'x-client-trace-id':
153
+ type: string
154
+ description: Id to track the request.
155
+ required: true
156
+ 'x-salesforce-region':
157
+ type: string
158
+ description: The region of this request.
159
+ required: true
160
+ 'Org-Url':
161
+ type: string
162
+ description: Org url of the org
163
+ required: true
164
+ 'Access-Token':
165
+ type: string
166
+ description: Access token of url
167
+ required: true
168
+ responses:
169
+ 200:
170
+ description: Returns Pre Signed Url
171
+ body:
172
+ application/json:
173
+ type: PreSignedUrlResultRepresentation
174
+ 400:
175
+ description: Returns the error if request is not found.
176
+ body:
177
+ application/json:
178
+ type: PreSignedUrlBadErrorRepresentation
179
+ 500:
180
+ description: Returns the error if request is not found.
181
+ body:
182
+ application/json:
183
+ type: PreSignedUrlServerErrorRepresentation
184
+ body:
185
+ application/json:
186
+ type: PreSignedUrlInputRepresentation
187
+
188
+ description: |
189
+ Data Seed service owned by AI Data Seeding Platform team that migrate or generates the data to a target org
190
+ mediaType:
191
+ - application/json
192
+ baseUri: api.salesforce.com
@@ -0,0 +1,24 @@
1
+ #%RAML 1.0 Overlay
2
+ extends: ./api.raml
3
+
4
+ uses:
5
+ luvio: luvio://annotations.raml
6
+
7
+ (luvio.keyPrefix): 'data-seed'
8
+
9
+ (luvio.ttl): 30000
10
+ types:
11
+ PreSignedUrlResultRepresentation:
12
+ (luvio.ttl): 300000
13
+ (luvio.key):
14
+ s3_unique_id: s3_unique_id
15
+
16
+ /platform/data-seed/v1:
17
+ /data-seed-request:
18
+ get:
19
+ (luvio.adapter):
20
+ name: getDataSeedStatus
21
+ /data-seed-generate-presigned-upload-url:
22
+ post:
23
+ (luvio.adapter):
24
+ name: getUploadPreSignedUrl