@prismatic-io/components-aws-redshift 0.0.0-stage → 0.1.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.
@@ -0,0 +1,422 @@
1
+ //#region npm-dist/.entry.d.ts
2
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
3
+ key: "aws-redshift";
4
+ public: true;
5
+ display: {
6
+ label: string;
7
+ description: string;
8
+ iconPath: string;
9
+ category: "Application Connectors";
10
+ };
11
+ documentationUrl: "https://prismatic.io/docs/components/aws-redshift/";
12
+ connections: (import("@prismatic-io/spectral").DefaultConnectionDefinition | import("@prismatic-io/spectral").KeyedConnection<{
13
+ key: "awsAccessKeySecret";
14
+ display: {
15
+ label: string;
16
+ description: string;
17
+ };
18
+ inputs: {
19
+ accessKeyId: {
20
+ label: string;
21
+ type: "string";
22
+ required: true;
23
+ comments: string;
24
+ example: string;
25
+ placeholder: string;
26
+ };
27
+ secretAccessKey: {
28
+ label: string;
29
+ type: "password";
30
+ required: true;
31
+ comments: string;
32
+ example: string;
33
+ };
34
+ };
35
+ }, "awsAccessKeySecret">)[];
36
+ dataSources: {
37
+ selectRegion: import("@prismatic-io/spectral").DataSourceDefinition<{}, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
38
+ };
39
+ actions: {
40
+ describeStatement: import("@prismatic-io/spectral").ActionDefinition<{
41
+ awsConnection: {
42
+ label: string;
43
+ type: "connection";
44
+ required: true;
45
+ comments: string;
46
+ };
47
+ statementId: {
48
+ label: string;
49
+ type: "string";
50
+ required: true;
51
+ comments: string;
52
+ example: string;
53
+ placeholder: string;
54
+ clean: (value: unknown, defaultValue?: string) => string;
55
+ };
56
+ awsRegion: {
57
+ required: true;
58
+ label: string;
59
+ placeholder: string;
60
+ type: "string";
61
+ comments: string;
62
+ example: string;
63
+ dataSource: string;
64
+ clean: (value: unknown, defaultValue?: string) => string;
65
+ };
66
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
67
+ data: import("@aws-sdk/client-redshift-data").DescribeStatementCommandOutput;
68
+ }>;
69
+ executeStatement: import("@prismatic-io/spectral").ActionDefinition<{
70
+ awsConnection: {
71
+ label: string;
72
+ type: "connection";
73
+ required: true;
74
+ comments: string;
75
+ };
76
+ sqlStatement: {
77
+ label: string;
78
+ type: "code";
79
+ language: "sql";
80
+ required: true;
81
+ comments: string;
82
+ example: string;
83
+ placeholder: string;
84
+ clean: (value: unknown, defaultValue?: string) => string;
85
+ };
86
+ databaseName: {
87
+ label: string;
88
+ type: "string";
89
+ required: true;
90
+ comments: string;
91
+ example: string;
92
+ placeholder: string;
93
+ clean: (value: unknown, defaultValue?: string) => string;
94
+ };
95
+ awsRegion: {
96
+ required: true;
97
+ label: string;
98
+ placeholder: string;
99
+ type: "string";
100
+ comments: string;
101
+ example: string;
102
+ dataSource: string;
103
+ clean: (value: unknown, defaultValue?: string) => string;
104
+ };
105
+ workgroupName: {
106
+ label: string;
107
+ type: "string";
108
+ required: false;
109
+ comments: string;
110
+ example: string;
111
+ placeholder: string;
112
+ clean: (value: unknown) => string | undefined;
113
+ };
114
+ clusterIdentifier: {
115
+ label: string;
116
+ type: "string";
117
+ required: false;
118
+ comments: string;
119
+ example: string;
120
+ placeholder: string;
121
+ clean: (value: unknown) => string | undefined;
122
+ };
123
+ getStatementResult: {
124
+ label: string;
125
+ type: "boolean";
126
+ required: false;
127
+ comments: string;
128
+ example: string;
129
+ default: string;
130
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
131
+ };
132
+ databaseUser: {
133
+ label: string;
134
+ type: "string";
135
+ required: false;
136
+ comments: string;
137
+ example: string;
138
+ placeholder: string;
139
+ clean: (value: unknown) => string | undefined;
140
+ };
141
+ secretArn: {
142
+ label: string;
143
+ type: "string";
144
+ required: false;
145
+ comments: string;
146
+ example: string;
147
+ placeholder: string;
148
+ clean: (value: unknown) => string | undefined;
149
+ };
150
+ sqlParameters: {
151
+ label: string;
152
+ type: "string";
153
+ collection: "keyvaluelist";
154
+ required: false;
155
+ comments: string;
156
+ example: string;
157
+ clean: (sqlParameters: unknown) => import("@aws-sdk/client-redshift-data").SqlParameter[] | undefined;
158
+ };
159
+ additionalFields: {
160
+ label: string;
161
+ required: boolean;
162
+ comments: string;
163
+ inputs: {
164
+ statementName: {
165
+ label: string;
166
+ type: "string";
167
+ required: false;
168
+ comments: string;
169
+ example: string;
170
+ placeholder: string;
171
+ clean: (value: unknown) => string | undefined;
172
+ };
173
+ resultFormat: {
174
+ label: string;
175
+ type: "string";
176
+ required: false;
177
+ default: string;
178
+ comments: string;
179
+ example: string;
180
+ placeholder: string;
181
+ model: {
182
+ label: string;
183
+ value: string;
184
+ }[];
185
+ clean: (value: unknown) => import("@aws-sdk/client-redshift-data").ResultFormatString | undefined;
186
+ };
187
+ sessionKeepAliveSeconds: {
188
+ label: string;
189
+ type: "string";
190
+ required: false;
191
+ comments: string;
192
+ example: string;
193
+ placeholder: string;
194
+ clean: (value: unknown) => number | undefined;
195
+ };
196
+ clientToken: {
197
+ label: string;
198
+ type: "string";
199
+ required: false;
200
+ comments: string;
201
+ example: string;
202
+ placeholder: string;
203
+ clean: (value: unknown) => string | undefined;
204
+ };
205
+ sessionId: {
206
+ label: string;
207
+ type: "string";
208
+ required: false;
209
+ comments: string;
210
+ example: string;
211
+ placeholder: string;
212
+ clean: (value: unknown) => string | undefined;
213
+ };
214
+ };
215
+ } & {
216
+ type: "structuredObject";
217
+ };
218
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
219
+ data: {
220
+ executeStatement: import("@aws-sdk/client-redshift-data").ExecuteStatementCommandOutput;
221
+ statementResults?: import("@aws-sdk/client-redshift-data").GetStatementResultCommandOutput | null;
222
+ };
223
+ }>;
224
+ getStatementResult: import("@prismatic-io/spectral").ActionDefinition<{
225
+ awsConnection: {
226
+ label: string;
227
+ type: "connection";
228
+ required: true;
229
+ comments: string;
230
+ };
231
+ statementId: {
232
+ comments: string;
233
+ label: string;
234
+ type: "string";
235
+ required: true;
236
+ example: string;
237
+ placeholder: string;
238
+ clean: (value: unknown, defaultValue?: string) => string;
239
+ };
240
+ awsRegion: {
241
+ required: true;
242
+ label: string;
243
+ placeholder: string;
244
+ type: "string";
245
+ comments: string;
246
+ example: string;
247
+ dataSource: string;
248
+ clean: (value: unknown, defaultValue?: string) => string;
249
+ };
250
+ nextToken: {
251
+ label: string;
252
+ type: "string";
253
+ required: false;
254
+ comments: string;
255
+ example: string;
256
+ placeholder: string;
257
+ clean: (value: unknown) => string | undefined;
258
+ };
259
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
260
+ data: import("@aws-sdk/client-redshift-data").GetStatementResultCommandOutput;
261
+ }>;
262
+ listStatements: import("@prismatic-io/spectral").ActionDefinition<{
263
+ awsConnection: {
264
+ label: string;
265
+ type: "connection";
266
+ required: true;
267
+ comments: string;
268
+ };
269
+ awsRegion: {
270
+ required: true;
271
+ label: string;
272
+ placeholder: string;
273
+ type: "string";
274
+ comments: string;
275
+ example: string;
276
+ dataSource: string;
277
+ clean: (value: unknown, defaultValue?: string) => string;
278
+ };
279
+ status: {
280
+ label: string;
281
+ type: "string";
282
+ required: true;
283
+ comments: string;
284
+ example: string;
285
+ model: {
286
+ label: string;
287
+ value: string;
288
+ }[];
289
+ default: string;
290
+ clean: (value: unknown) => import("@aws-sdk/client-redshift-data").StatusString;
291
+ };
292
+ filters: {
293
+ label: string;
294
+ required: boolean;
295
+ comments: string;
296
+ inputs: {
297
+ databaseName: {
298
+ required: false;
299
+ comments: string;
300
+ label: string;
301
+ type: "string";
302
+ example: string;
303
+ placeholder: string;
304
+ clean: (value: unknown, defaultValue?: string) => string;
305
+ };
306
+ workgroupName: {
307
+ required: false;
308
+ comments: string;
309
+ label: string;
310
+ type: "string";
311
+ example: string;
312
+ placeholder: string;
313
+ clean: (value: unknown) => string | undefined;
314
+ };
315
+ clusterIdentifier: {
316
+ required: false;
317
+ comments: string;
318
+ label: string;
319
+ type: "string";
320
+ example: string;
321
+ placeholder: string;
322
+ clean: (value: unknown) => string | undefined;
323
+ };
324
+ statementName: {
325
+ comments: string;
326
+ label: string;
327
+ type: "string";
328
+ required: false;
329
+ example: string;
330
+ placeholder: string;
331
+ clean: (value: unknown) => string | undefined;
332
+ };
333
+ };
334
+ } & {
335
+ type: "structuredObject";
336
+ };
337
+ fetchAll: {
338
+ label: string;
339
+ type: "boolean";
340
+ comments: string;
341
+ required: false;
342
+ default: string;
343
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
344
+ };
345
+ pagination: {
346
+ label: string;
347
+ required: boolean;
348
+ comments: string;
349
+ inputs: {
350
+ nextToken: {
351
+ label: string;
352
+ type: "string";
353
+ required: false;
354
+ comments: string;
355
+ example: string;
356
+ placeholder: string;
357
+ clean: (value: unknown) => string | undefined;
358
+ };
359
+ maxResults: {
360
+ label: string;
361
+ type: "string";
362
+ required: false;
363
+ comments: string;
364
+ example: string;
365
+ placeholder: string;
366
+ clean: (value: unknown) => number | undefined;
367
+ };
368
+ };
369
+ } & {
370
+ type: "structuredObject";
371
+ };
372
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
373
+ data: import("@aws-sdk/client-redshift-data").ListStatementsCommandOutput;
374
+ }>;
375
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
376
+ awsConnection: {
377
+ label: string;
378
+ type: "connection";
379
+ required: true;
380
+ comments: string;
381
+ };
382
+ awsRegion: {
383
+ required: true;
384
+ label: string;
385
+ placeholder: string;
386
+ type: "string";
387
+ comments: string;
388
+ example: string;
389
+ dataSource: string;
390
+ clean: (value: unknown, defaultValue?: string) => string;
391
+ };
392
+ body: {
393
+ label: string;
394
+ type: "code";
395
+ language: "json";
396
+ required: true;
397
+ comments: string;
398
+ example: string;
399
+ clean: (value: unknown, defaultValue?: string) => string;
400
+ };
401
+ action: {
402
+ label: string;
403
+ type: "string";
404
+ required: true;
405
+ comments: string;
406
+ example: string;
407
+ placeholder: string;
408
+ model: {
409
+ label: string;
410
+ value: string;
411
+ }[];
412
+ clean: (value: unknown, defaultValue?: string) => string;
413
+ };
414
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
415
+ data: any;
416
+ }>;
417
+ };
418
+ hooks: {
419
+ error: (error: unknown) => unknown;
420
+ };
421
+ }>;
422
+ export = _default;
package/package.json CHANGED
@@ -1,6 +1,58 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-aws-redshift",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "main": "./npm-dist/index.cjs",
5
+ "types": "./npm-dist/index.d.cts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./npm-dist/index.d.cts",
9
+ "default": "./npm-dist/index.cjs"
10
+ }
11
+ },
12
+ "description": "Execute SQL statements and manage data in Amazon Redshift using the AWS Redshift Data API",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/aws-redshift"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "files": [
23
+ "npm-dist",
24
+ "dist"
25
+ ],
26
+ "prismatic": {
27
+ "component": "./dist/index.js"
28
+ },
29
+ "scripts": {
30
+ "lint": "biome lint --write .",
31
+ "format": "biome format --write .",
32
+ "build": "npm run format && npm run lint && tsdown",
33
+ "typecheck": "tsc --noEmit",
34
+ "test": "vitest run",
35
+ "generate:manifest": "npm run build && npx @prismatic-io/spectral component-manifest",
36
+ "generate:manifest:dev": "npm run build && npx @prismatic-io/spectral component-manifest --skip-signature-verify",
37
+ "prepare": "npm run build",
38
+ "publish:platform": "npm run build && prism components:publish"
39
+ },
40
+ "peerDependencies": {
41
+ "@prismatic-io/spectral": "^10.38.5"
42
+ },
43
+ "dependencies": {
44
+ "@aws-sdk/client-redshift-data": "3.1088.0",
45
+ "aws4": "^1.13.2",
46
+ "@aws-sdk/client-sts": "3.1088.0"
47
+ },
48
+ "devDependencies": {
49
+ "@biomejs/biome": "2.5.1",
50
+ "@types/aws4": "^1.11.6",
51
+ "@types/node": "^25.5.0",
52
+ "tsdown": "0.22.3",
53
+ "typescript": "6.0.3",
54
+ "vitest": "4.1.9",
55
+ "@prismatic-io/spectral": "^10.38.5",
56
+ "aws-utils": "file:../../packages/aws-utils"
57
+ }
58
+ }