@itentialopensource/adapter-starburst 0.1.1

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 (71) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +3 -0
  9. package/AUTH.md +33 -0
  10. package/BROKER.md +211 -0
  11. package/CALLS.md +236 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +13 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +646 -0
  18. package/README.md +343 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +19 -0
  21. package/TAB1.md +5 -0
  22. package/TAB2.md +310 -0
  23. package/TROUBLESHOOT.md +47 -0
  24. package/adapter.js +1776 -0
  25. package/adapterBase.js +1452 -0
  26. package/entities/.generic/action.json +214 -0
  27. package/entities/.generic/schema.json +28 -0
  28. package/entities/.system/action.json +50 -0
  29. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  30. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  31. package/entities/.system/schema.json +19 -0
  32. package/entities/.system/schemaTokenReq.json +53 -0
  33. package/entities/.system/schemaTokenResp.json +53 -0
  34. package/entities/Dataproduct/action.json +230 -0
  35. package/entities/Dataproduct/schema.json +29 -0
  36. package/error.json +190 -0
  37. package/metadata.json +72 -0
  38. package/package.json +82 -0
  39. package/pronghorn.json +1391 -0
  40. package/propertiesDecorators.json +14 -0
  41. package/propertiesSchema.json +1666 -0
  42. package/refs?service=git-upload-pack +0 -0
  43. package/report/Starburst.postman_collection.json-OpenApi3Json.json +481 -0
  44. package/report/adapterInfo.json +10 -0
  45. package/report/auto-adapter-openapi.json +443 -0
  46. package/report/creationReport.json +265 -0
  47. package/sampleProperties.json +256 -0
  48. package/test/integration/adapterTestBasicGet.js +83 -0
  49. package/test/integration/adapterTestConnectivity.js +118 -0
  50. package/test/integration/adapterTestIntegration.js +763 -0
  51. package/test/unit/adapterBaseTestUnit.js +1024 -0
  52. package/test/unit/adapterTestUnit.js +1863 -0
  53. package/utils/adapterInfo.js +206 -0
  54. package/utils/addAuth.js +94 -0
  55. package/utils/artifactize.js +146 -0
  56. package/utils/basicGet.js +50 -0
  57. package/utils/checkMigrate.js +63 -0
  58. package/utils/entitiesToDB.js +179 -0
  59. package/utils/findPath.js +74 -0
  60. package/utils/methodDocumentor.js +273 -0
  61. package/utils/modify.js +152 -0
  62. package/utils/packModificationScript.js +35 -0
  63. package/utils/patches2bundledDeps.js +90 -0
  64. package/utils/pre-commit.sh +32 -0
  65. package/utils/removeHooks.js +20 -0
  66. package/utils/setup.js +33 -0
  67. package/utils/taskMover.js +309 -0
  68. package/utils/tbScript.js +239 -0
  69. package/utils/tbUtils.js +489 -0
  70. package/utils/testRunner.js +298 -0
  71. package/utils/troubleshootingAdapter.js +193 -0
Binary file
@@ -0,0 +1,481 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "Starburst",
5
+ "contact": {},
6
+ "version": "1.0"
7
+ },
8
+ "servers": [
9
+ {
10
+ "url": "http:/api/v1/dataProduct",
11
+ "variables": {}
12
+ }
13
+ ],
14
+ "paths": {
15
+ "/products/{dataProductId}/clone": {
16
+ "post": {
17
+ "tags": [
18
+ "Misc"
19
+ ],
20
+ "summary": "cloneDataProduct",
21
+ "operationId": "cloneDataProduct",
22
+ "parameters": [
23
+ {
24
+ "name": "Accept",
25
+ "in": "header",
26
+ "description": "",
27
+ "required": true,
28
+ "style": "simple",
29
+ "schema": {
30
+ "type": "string",
31
+ "example": "application/json"
32
+ }
33
+ },
34
+ {
35
+ "name": "dataProductId",
36
+ "in": "path",
37
+ "description": "",
38
+ "required": true,
39
+ "style": "simple",
40
+ "schema": {
41
+ "type": "string"
42
+ }
43
+ }
44
+ ],
45
+ "requestBody": {
46
+ "description": "",
47
+ "content": {
48
+ "application/json": {
49
+ "schema": {
50
+ "type": "object",
51
+ "example": {}
52
+ },
53
+ "example": {}
54
+ }
55
+ },
56
+ "required": true
57
+ },
58
+ "responses": {
59
+ "200": {
60
+ "description": "",
61
+ "headers": {}
62
+ }
63
+ },
64
+ "deprecated": false
65
+ }
66
+ },
67
+ "/products": {
68
+ "post": {
69
+ "tags": [
70
+ "Misc"
71
+ ],
72
+ "summary": "createDataProduct",
73
+ "operationId": "createDataProduct",
74
+ "parameters": [
75
+ {
76
+ "name": "Accept",
77
+ "in": "header",
78
+ "description": "",
79
+ "required": true,
80
+ "style": "simple",
81
+ "schema": {
82
+ "type": "string",
83
+ "example": "application/json"
84
+ }
85
+ }
86
+ ],
87
+ "requestBody": {
88
+ "description": "",
89
+ "content": {
90
+ "application/json": {
91
+ "schema": {
92
+ "type": "object",
93
+ "example": {}
94
+ },
95
+ "example": {}
96
+ }
97
+ },
98
+ "required": true
99
+ },
100
+ "responses": {
101
+ "200": {
102
+ "description": "",
103
+ "headers": {}
104
+ }
105
+ },
106
+ "deprecated": false
107
+ },
108
+ "get": {
109
+ "tags": [
110
+ "Misc"
111
+ ],
112
+ "summary": "searchDataProducts",
113
+ "operationId": "searchDataProducts",
114
+ "parameters": [
115
+ {
116
+ "name": "searchOptions",
117
+ "in": "query",
118
+ "description": "",
119
+ "required": true,
120
+ "style": "form",
121
+ "explode": true,
122
+ "schema": {
123
+ "type": "string"
124
+ }
125
+ },
126
+ {
127
+ "name": "Accept",
128
+ "in": "header",
129
+ "description": "",
130
+ "required": true,
131
+ "style": "simple",
132
+ "schema": {
133
+ "type": "string",
134
+ "example": "application/json"
135
+ }
136
+ }
137
+ ],
138
+ "responses": {
139
+ "200": {
140
+ "description": "",
141
+ "headers": {}
142
+ }
143
+ },
144
+ "deprecated": false
145
+ }
146
+ },
147
+ "/products/{dataProductId}": {
148
+ "get": {
149
+ "tags": [
150
+ "Misc"
151
+ ],
152
+ "summary": "getDataProduct",
153
+ "operationId": "getDataProduct",
154
+ "parameters": [
155
+ {
156
+ "name": "Accept",
157
+ "in": "header",
158
+ "description": "",
159
+ "required": true,
160
+ "style": "simple",
161
+ "schema": {
162
+ "type": "string",
163
+ "example": "application/json"
164
+ }
165
+ },
166
+ {
167
+ "name": "dataProductId",
168
+ "in": "path",
169
+ "description": "",
170
+ "required": true,
171
+ "style": "simple",
172
+ "schema": {
173
+ "type": "string"
174
+ }
175
+ }
176
+ ],
177
+ "responses": {
178
+ "200": {
179
+ "description": "",
180
+ "headers": {}
181
+ }
182
+ },
183
+ "deprecated": false
184
+ },
185
+ "put": {
186
+ "tags": [
187
+ "Misc"
188
+ ],
189
+ "summary": "updateDataProduct",
190
+ "operationId": "updateDataProduct",
191
+ "parameters": [
192
+ {
193
+ "name": "Accept",
194
+ "in": "header",
195
+ "description": "",
196
+ "required": true,
197
+ "style": "simple",
198
+ "schema": {
199
+ "type": "string",
200
+ "example": "application/json"
201
+ }
202
+ },
203
+ {
204
+ "name": "dataProductId",
205
+ "in": "path",
206
+ "description": "",
207
+ "required": true,
208
+ "style": "simple",
209
+ "schema": {
210
+ "type": "string"
211
+ }
212
+ }
213
+ ],
214
+ "requestBody": {
215
+ "description": "",
216
+ "content": {
217
+ "application/json": {
218
+ "schema": {
219
+ "type": "object",
220
+ "example": {}
221
+ },
222
+ "example": {}
223
+ }
224
+ },
225
+ "required": true
226
+ },
227
+ "responses": {
228
+ "200": {
229
+ "description": "",
230
+ "headers": {}
231
+ }
232
+ },
233
+ "deprecated": false
234
+ }
235
+ },
236
+ "/products/{dataProductId}/materializedViews/{viewName}/refreshMetadata": {
237
+ "get": {
238
+ "tags": [
239
+ "Misc"
240
+ ],
241
+ "summary": "getMaterializedViewRefreshMetadata",
242
+ "operationId": "getMaterializedViewRefreshMetadata",
243
+ "parameters": [
244
+ {
245
+ "name": "Accept",
246
+ "in": "header",
247
+ "description": "",
248
+ "required": true,
249
+ "style": "simple",
250
+ "schema": {
251
+ "type": "string",
252
+ "example": "application/json"
253
+ }
254
+ },
255
+ {
256
+ "name": "dataProductId",
257
+ "in": "path",
258
+ "description": "",
259
+ "required": true,
260
+ "style": "simple",
261
+ "schema": {
262
+ "type": "string"
263
+ }
264
+ },
265
+ {
266
+ "name": "viewName",
267
+ "in": "path",
268
+ "description": "",
269
+ "required": true,
270
+ "style": "simple",
271
+ "schema": {
272
+ "type": "string"
273
+ }
274
+ }
275
+ ],
276
+ "responses": {
277
+ "200": {
278
+ "description": "",
279
+ "headers": {}
280
+ }
281
+ },
282
+ "deprecated": false
283
+ }
284
+ },
285
+ "/openApi": {
286
+ "get": {
287
+ "tags": [
288
+ "Misc"
289
+ ],
290
+ "summary": "getOpenApi",
291
+ "operationId": "getOpenApi",
292
+ "parameters": [
293
+ {
294
+ "name": "Accept",
295
+ "in": "header",
296
+ "description": "",
297
+ "required": true,
298
+ "style": "simple",
299
+ "schema": {
300
+ "type": "string",
301
+ "example": "application/yaml"
302
+ }
303
+ }
304
+ ],
305
+ "responses": {
306
+ "200": {
307
+ "description": "",
308
+ "headers": {}
309
+ }
310
+ },
311
+ "deprecated": false
312
+ }
313
+ },
314
+ "/catalogs": {
315
+ "get": {
316
+ "tags": [
317
+ "Misc"
318
+ ],
319
+ "summary": "getTargetCatalogs",
320
+ "operationId": "getTargetCatalogs",
321
+ "parameters": [
322
+ {
323
+ "name": "Accept",
324
+ "in": "header",
325
+ "description": "",
326
+ "required": true,
327
+ "style": "simple",
328
+ "schema": {
329
+ "type": "string",
330
+ "example": "application/json"
331
+ }
332
+ }
333
+ ],
334
+ "responses": {
335
+ "200": {
336
+ "description": "",
337
+ "headers": {}
338
+ }
339
+ },
340
+ "deprecated": false
341
+ }
342
+ },
343
+ "/products/{dataProductId}/sampleQueries": {
344
+ "get": {
345
+ "tags": [
346
+ "Misc"
347
+ ],
348
+ "summary": "listSampleQueries",
349
+ "operationId": "listSampleQueries",
350
+ "parameters": [
351
+ {
352
+ "name": "Accept",
353
+ "in": "header",
354
+ "description": "",
355
+ "required": true,
356
+ "style": "simple",
357
+ "schema": {
358
+ "type": "string",
359
+ "example": "application/json"
360
+ }
361
+ },
362
+ {
363
+ "name": "dataProductId",
364
+ "in": "path",
365
+ "description": "",
366
+ "required": true,
367
+ "style": "simple",
368
+ "schema": {
369
+ "type": "string"
370
+ }
371
+ }
372
+ ],
373
+ "responses": {
374
+ "200": {
375
+ "description": "",
376
+ "headers": {}
377
+ }
378
+ },
379
+ "deprecated": false
380
+ },
381
+ "put": {
382
+ "tags": [
383
+ "Misc"
384
+ ],
385
+ "summary": "updateSampleQueries",
386
+ "operationId": "updateSampleQueries",
387
+ "parameters": [
388
+ {
389
+ "name": "Accept",
390
+ "in": "header",
391
+ "description": "",
392
+ "required": true,
393
+ "style": "simple",
394
+ "schema": {
395
+ "type": "string",
396
+ "example": "application/json"
397
+ }
398
+ },
399
+ {
400
+ "name": "dataProductId",
401
+ "in": "path",
402
+ "description": "",
403
+ "required": true,
404
+ "style": "simple",
405
+ "schema": {
406
+ "type": "string"
407
+ }
408
+ }
409
+ ],
410
+ "requestBody": {
411
+ "description": "",
412
+ "content": {
413
+ "application/json": {
414
+ "schema": {
415
+ "type": "object",
416
+ "example": {}
417
+ },
418
+ "example": {}
419
+ }
420
+ },
421
+ "required": true
422
+ },
423
+ "responses": {
424
+ "200": {
425
+ "description": "",
426
+ "headers": {}
427
+ }
428
+ },
429
+ "deprecated": false
430
+ }
431
+ },
432
+ "/products/reassignDomain": {
433
+ "post": {
434
+ "tags": [
435
+ "Misc"
436
+ ],
437
+ "summary": "reassignDomainForDataProducts",
438
+ "operationId": "reassignDomainForDataProducts",
439
+ "parameters": [
440
+ {
441
+ "name": "Accept",
442
+ "in": "header",
443
+ "description": "",
444
+ "required": true,
445
+ "style": "simple",
446
+ "schema": {
447
+ "type": "string",
448
+ "example": "application/json"
449
+ }
450
+ }
451
+ ],
452
+ "requestBody": {
453
+ "description": "",
454
+ "content": {
455
+ "application/json": {
456
+ "schema": {
457
+ "type": "object",
458
+ "example": {}
459
+ },
460
+ "example": {}
461
+ }
462
+ },
463
+ "required": true
464
+ },
465
+ "responses": {
466
+ "200": {
467
+ "description": "",
468
+ "headers": {}
469
+ }
470
+ },
471
+ "deprecated": false
472
+ }
473
+ }
474
+ },
475
+ "tags": [
476
+ {
477
+ "name": "Misc",
478
+ "description": ""
479
+ }
480
+ ]
481
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "configLines": 3247,
4
+ "scriptLines": 1783,
5
+ "codeLines": 3230,
6
+ "testLines": 3856,
7
+ "testCases": 181,
8
+ "totalCodeLines": 8869,
9
+ "wfTasks": 36
10
+ }