@prismatic-io/components-aws-dynamodb 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,660 @@
1
+ //#region npm-dist/.entry.d.ts
2
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
3
+ key: "aws-dynamodb";
4
+ documentationUrl: "https://prismatic.io/docs/components/aws-dynamodb/";
5
+ public: true;
6
+ display: {
7
+ label: string;
8
+ description: string;
9
+ iconPath: string;
10
+ category: "Data Platforms";
11
+ };
12
+ actions: {
13
+ createItem: import("@prismatic-io/spectral").ActionDefinition<{
14
+ awsRegion: {
15
+ label: string;
16
+ placeholder: string;
17
+ type: "string";
18
+ required: false;
19
+ comments: string;
20
+ example: string;
21
+ dataSource: string;
22
+ clean: (value: unknown, defaultValue?: string) => string;
23
+ };
24
+ tableName: {
25
+ label: string;
26
+ type: "string";
27
+ required: true;
28
+ example: string;
29
+ placeholder: string;
30
+ comments: string;
31
+ dataSource: string;
32
+ clean: (value: unknown, defaultValue?: string) => string;
33
+ };
34
+ item: {
35
+ label: string;
36
+ type: "string";
37
+ collection: "keyvaluelist";
38
+ required: true;
39
+ placeholder: string;
40
+ comments: string;
41
+ example: string;
42
+ };
43
+ itemTypes: {
44
+ label: string;
45
+ type: "string";
46
+ collection: "keyvaluelist";
47
+ required: true;
48
+ model: {
49
+ label: string;
50
+ value: string;
51
+ }[];
52
+ example: string;
53
+ placeholder: string;
54
+ comments: string;
55
+ };
56
+ conditionExpression: {
57
+ label: string;
58
+ type: "string";
59
+ required: false;
60
+ example: string;
61
+ placeholder: string;
62
+ comments: string;
63
+ clean: (value: unknown) => string | undefined;
64
+ };
65
+ expressionAttributeValues: {
66
+ required: false;
67
+ label: string;
68
+ type: "string";
69
+ collection: "keyvaluelist";
70
+ placeholder: string;
71
+ example: string;
72
+ comments: string;
73
+ };
74
+ expressionAttributeValueTypes: {
75
+ required: false;
76
+ label: string;
77
+ type: "string";
78
+ collection: "keyvaluelist";
79
+ model: {
80
+ label: string;
81
+ value: string;
82
+ }[];
83
+ placeholder: string;
84
+ comments: string;
85
+ };
86
+ awsConnection: {
87
+ label: string;
88
+ type: "connection";
89
+ required: true;
90
+ comments: string;
91
+ };
92
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
93
+ data: import("@aws-sdk/client-dynamodb").PutItemCommandOutput;
94
+ }>;
95
+ createTable: import("@prismatic-io/spectral").ActionDefinition<{
96
+ awsRegion: {
97
+ label: string;
98
+ placeholder: string;
99
+ type: "string";
100
+ required: false;
101
+ comments: string;
102
+ example: string;
103
+ dataSource: string;
104
+ clean: (value: unknown, defaultValue?: string) => string;
105
+ };
106
+ tableName: {
107
+ dataSource: undefined;
108
+ label: string;
109
+ type: "string";
110
+ required: true;
111
+ example: string;
112
+ placeholder: string;
113
+ comments: string;
114
+ clean: (value: unknown, defaultValue?: string) => string;
115
+ };
116
+ keySchema: {
117
+ label: string;
118
+ type: "code";
119
+ required: true;
120
+ language: "json";
121
+ example: string;
122
+ comments: string;
123
+ clean: (value: unknown) => object;
124
+ };
125
+ attributeDefinition: {
126
+ label: string;
127
+ type: "code";
128
+ language: "json";
129
+ required: true;
130
+ example: string;
131
+ comments: string;
132
+ clean: (value: unknown) => object;
133
+ };
134
+ billingMode: {
135
+ label: string;
136
+ type: "string";
137
+ required: true;
138
+ default: string;
139
+ model: {
140
+ label: string;
141
+ value: string;
142
+ }[];
143
+ placeholder: string;
144
+ comments: string;
145
+ clean: (value: unknown, defaultValue?: string) => string;
146
+ };
147
+ readCapacityUnits: {
148
+ label: string;
149
+ type: "string";
150
+ required: false;
151
+ example: string;
152
+ placeholder: string;
153
+ comments: string;
154
+ clean: (value: unknown) => number | undefined;
155
+ };
156
+ writeCapacityUnits: {
157
+ label: string;
158
+ type: "string";
159
+ required: false;
160
+ example: string;
161
+ placeholder: string;
162
+ comments: string;
163
+ clean: (value: unknown) => number | undefined;
164
+ };
165
+ awsConnection: {
166
+ label: string;
167
+ type: "connection";
168
+ required: true;
169
+ comments: string;
170
+ };
171
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
172
+ data: import("@aws-sdk/client-dynamodb").CreateTableCommandOutput;
173
+ }>;
174
+ deleteItem: import("@prismatic-io/spectral").ActionDefinition<{
175
+ awsRegion: {
176
+ label: string;
177
+ placeholder: string;
178
+ type: "string";
179
+ required: false;
180
+ comments: string;
181
+ example: string;
182
+ dataSource: string;
183
+ clean: (value: unknown, defaultValue?: string) => string;
184
+ };
185
+ tableName: {
186
+ label: string;
187
+ type: "string";
188
+ required: true;
189
+ example: string;
190
+ placeholder: string;
191
+ comments: string;
192
+ dataSource: string;
193
+ clean: (value: unknown, defaultValue?: string) => string;
194
+ };
195
+ value: {
196
+ label: string;
197
+ type: "string";
198
+ required: true;
199
+ example: string;
200
+ placeholder: string;
201
+ comments: string;
202
+ clean: (value: unknown, defaultValue?: string) => string;
203
+ };
204
+ rangeKeyValue: {
205
+ label: string;
206
+ type: "string";
207
+ required: false;
208
+ example: string;
209
+ placeholder: string;
210
+ comments: string;
211
+ clean: (value: unknown) => string | undefined;
212
+ };
213
+ conditionExpression: {
214
+ label: string;
215
+ type: "string";
216
+ required: false;
217
+ example: string;
218
+ placeholder: string;
219
+ comments: string;
220
+ clean: (value: unknown) => string | undefined;
221
+ };
222
+ expressionAttributeValues: {
223
+ required: false;
224
+ label: string;
225
+ type: "string";
226
+ collection: "keyvaluelist";
227
+ placeholder: string;
228
+ example: string;
229
+ comments: string;
230
+ };
231
+ expressionAttributeValueTypes: {
232
+ required: false;
233
+ label: string;
234
+ type: "string";
235
+ collection: "keyvaluelist";
236
+ model: {
237
+ label: string;
238
+ value: string;
239
+ }[];
240
+ placeholder: string;
241
+ comments: string;
242
+ };
243
+ awsConnection: {
244
+ label: string;
245
+ type: "connection";
246
+ required: true;
247
+ comments: string;
248
+ };
249
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
250
+ data: import("@aws-sdk/client-dynamodb").DeleteItemCommandOutput;
251
+ }>;
252
+ deleteTable: import("@prismatic-io/spectral").ActionDefinition<{
253
+ awsRegion: {
254
+ label: string;
255
+ placeholder: string;
256
+ type: "string";
257
+ required: false;
258
+ comments: string;
259
+ example: string;
260
+ dataSource: string;
261
+ clean: (value: unknown, defaultValue?: string) => string;
262
+ };
263
+ tableName: {
264
+ label: string;
265
+ type: "string";
266
+ required: true;
267
+ example: string;
268
+ placeholder: string;
269
+ comments: string;
270
+ dataSource: string;
271
+ clean: (value: unknown, defaultValue?: string) => string;
272
+ };
273
+ awsConnection: {
274
+ label: string;
275
+ type: "connection";
276
+ required: true;
277
+ comments: string;
278
+ };
279
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
280
+ data: import("@aws-sdk/client-dynamodb").DeleteTableCommandOutput;
281
+ }>;
282
+ describeTable: import("@prismatic-io/spectral").ActionDefinition<{
283
+ awsRegion: {
284
+ label: string;
285
+ placeholder: string;
286
+ type: "string";
287
+ required: false;
288
+ comments: string;
289
+ example: string;
290
+ dataSource: string;
291
+ clean: (value: unknown, defaultValue?: string) => string;
292
+ };
293
+ tableName: {
294
+ label: string;
295
+ type: "string";
296
+ required: true;
297
+ example: string;
298
+ placeholder: string;
299
+ comments: string;
300
+ dataSource: string;
301
+ clean: (value: unknown, defaultValue?: string) => string;
302
+ };
303
+ awsConnection: {
304
+ label: string;
305
+ type: "connection";
306
+ required: true;
307
+ comments: string;
308
+ };
309
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
310
+ data: import("@aws-sdk/client-dynamodb").DescribeTableCommandOutput;
311
+ }>;
312
+ getItem: import("@prismatic-io/spectral").ActionDefinition<{
313
+ awsRegion: {
314
+ label: string;
315
+ placeholder: string;
316
+ type: "string";
317
+ required: false;
318
+ comments: string;
319
+ example: string;
320
+ dataSource: string;
321
+ clean: (value: unknown, defaultValue?: string) => string;
322
+ };
323
+ tableName: {
324
+ label: string;
325
+ type: "string";
326
+ required: true;
327
+ example: string;
328
+ placeholder: string;
329
+ comments: string;
330
+ dataSource: string;
331
+ clean: (value: unknown, defaultValue?: string) => string;
332
+ };
333
+ value: {
334
+ label: string;
335
+ type: "string";
336
+ required: true;
337
+ example: string;
338
+ placeholder: string;
339
+ comments: string;
340
+ clean: (value: unknown, defaultValue?: string) => string;
341
+ };
342
+ rangeKeyValue: {
343
+ label: string;
344
+ type: "string";
345
+ required: false;
346
+ example: string;
347
+ placeholder: string;
348
+ comments: string;
349
+ clean: (value: unknown) => string | undefined;
350
+ };
351
+ awsConnection: {
352
+ label: string;
353
+ type: "connection";
354
+ required: true;
355
+ comments: string;
356
+ };
357
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
358
+ data: {
359
+ result: import("@aws-sdk/client-dynamodb").GetItemCommandOutput;
360
+ found: boolean;
361
+ };
362
+ }>;
363
+ listTables: import("@prismatic-io/spectral").ActionDefinition<{
364
+ awsRegion: {
365
+ label: string;
366
+ placeholder: string;
367
+ type: "string";
368
+ required: false;
369
+ comments: string;
370
+ example: string;
371
+ dataSource: string;
372
+ clean: (value: unknown, defaultValue?: string) => string;
373
+ };
374
+ awsConnection: {
375
+ label: string;
376
+ type: "connection";
377
+ required: true;
378
+ comments: string;
379
+ };
380
+ fetchAll: {
381
+ label: string;
382
+ type: "boolean";
383
+ required: false;
384
+ default: string;
385
+ comments: string;
386
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
387
+ };
388
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
389
+ data: {
390
+ result: string[];
391
+ found: boolean;
392
+ };
393
+ } | {
394
+ data: {
395
+ result: import("@aws-sdk/client-dynamodb").ListTablesCommandOutput;
396
+ found: boolean;
397
+ };
398
+ }>;
399
+ updateItem: import("@prismatic-io/spectral").ActionDefinition<{
400
+ awsRegion: {
401
+ label: string;
402
+ placeholder: string;
403
+ type: "string";
404
+ required: false;
405
+ comments: string;
406
+ example: string;
407
+ dataSource: string;
408
+ clean: (value: unknown, defaultValue?: string) => string;
409
+ };
410
+ tableName: {
411
+ label: string;
412
+ type: "string";
413
+ required: true;
414
+ example: string;
415
+ placeholder: string;
416
+ comments: string;
417
+ dataSource: string;
418
+ clean: (value: unknown, defaultValue?: string) => string;
419
+ };
420
+ value: {
421
+ label: string;
422
+ type: "string";
423
+ required: true;
424
+ example: string;
425
+ placeholder: string;
426
+ comments: string;
427
+ clean: (value: unknown, defaultValue?: string) => string;
428
+ };
429
+ rangeKeyValue: {
430
+ label: string;
431
+ type: "string";
432
+ required: false;
433
+ example: string;
434
+ placeholder: string;
435
+ comments: string;
436
+ clean: (value: unknown) => string | undefined;
437
+ };
438
+ query: {
439
+ label: string;
440
+ type: "string";
441
+ required: true;
442
+ example: string;
443
+ placeholder: string;
444
+ comments: string;
445
+ clean: (value: unknown, defaultValue?: string) => string;
446
+ };
447
+ conditionExpression: {
448
+ label: string;
449
+ type: "string";
450
+ required: false;
451
+ example: string;
452
+ placeholder: string;
453
+ comments: string;
454
+ clean: (value: unknown) => string | undefined;
455
+ };
456
+ queryParams: {
457
+ label: string;
458
+ type: "string";
459
+ collection: "keyvaluelist";
460
+ required: true;
461
+ placeholder: string;
462
+ example: string;
463
+ comments: string;
464
+ };
465
+ queryParamTypes: {
466
+ label: string;
467
+ type: "string";
468
+ collection: "keyvaluelist";
469
+ required: true;
470
+ model: {
471
+ label: string;
472
+ value: string;
473
+ }[];
474
+ placeholder: string;
475
+ comments: string;
476
+ };
477
+ awsConnection: {
478
+ label: string;
479
+ type: "connection";
480
+ required: true;
481
+ comments: string;
482
+ };
483
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
484
+ data: import("@aws-sdk/client-dynamodb").UpdateItemCommandOutput;
485
+ }>;
486
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
487
+ awsRegion: {
488
+ label: string;
489
+ placeholder: string;
490
+ type: "string";
491
+ required: false;
492
+ comments: string;
493
+ example: string;
494
+ dataSource: string;
495
+ clean: (value: unknown, defaultValue?: string) => string;
496
+ };
497
+ statement: {
498
+ label: string;
499
+ type: "string";
500
+ required: true;
501
+ example: string;
502
+ placeholder: string;
503
+ comments: string;
504
+ clean: (value: unknown) => string | undefined;
505
+ };
506
+ parameters: {
507
+ label: string;
508
+ type: "code";
509
+ required: false;
510
+ language: "json";
511
+ default: string;
512
+ comments: string;
513
+ clean: (value: unknown) => object | undefined;
514
+ };
515
+ queryParameters: {
516
+ label: string;
517
+ type: "string";
518
+ collection: "keyvaluelist";
519
+ required: false;
520
+ placeholder: string;
521
+ comments: string;
522
+ clean: (value: unknown) => Record<string, object> | undefined;
523
+ };
524
+ awsConnection: {
525
+ label: string;
526
+ type: "connection";
527
+ required: true;
528
+ comments: string;
529
+ };
530
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
531
+ data: import("@aws-sdk/lib-dynamodb").ExecuteStatementCommandOutput;
532
+ }>;
533
+ queryItems: import("@prismatic-io/spectral").ActionDefinition<{
534
+ awsRegion: {
535
+ label: string;
536
+ placeholder: string;
537
+ type: "string";
538
+ required: false;
539
+ comments: string;
540
+ example: string;
541
+ dataSource: string;
542
+ clean: (value: unknown, defaultValue?: string) => string;
543
+ };
544
+ tableName: {
545
+ label: string;
546
+ type: "string";
547
+ required: true;
548
+ example: string;
549
+ placeholder: string;
550
+ comments: string;
551
+ dataSource: string;
552
+ clean: (value: unknown, defaultValue?: string) => string;
553
+ };
554
+ expressionAttributeValues: {
555
+ required: false;
556
+ label: string;
557
+ type: "string";
558
+ collection: "keyvaluelist";
559
+ placeholder: string;
560
+ example: string;
561
+ comments: string;
562
+ };
563
+ expressionAttributeValueTypes: {
564
+ required: false;
565
+ label: string;
566
+ type: "string";
567
+ collection: "keyvaluelist";
568
+ model: {
569
+ label: string;
570
+ value: string;
571
+ }[];
572
+ placeholder: string;
573
+ comments: string;
574
+ };
575
+ keyConditionExpression: {
576
+ label: string;
577
+ type: "string";
578
+ required: false;
579
+ example: string;
580
+ placeholder: string;
581
+ comments: string;
582
+ clean: (value: unknown) => string | undefined;
583
+ };
584
+ filterExpression: {
585
+ label: string;
586
+ type: "string";
587
+ required: false;
588
+ example: string;
589
+ placeholder: string;
590
+ comments: string;
591
+ clean: (value: unknown) => string | undefined;
592
+ };
593
+ queryParameters: {
594
+ label: string;
595
+ type: "string";
596
+ collection: "keyvaluelist";
597
+ required: false;
598
+ placeholder: string;
599
+ comments: string;
600
+ clean: (value: unknown) => Record<string, object> | undefined;
601
+ };
602
+ awsConnection: {
603
+ label: string;
604
+ type: "connection";
605
+ required: true;
606
+ comments: string;
607
+ };
608
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, any>;
609
+ };
610
+ connections: (import("@prismatic-io/spectral").DefaultConnectionDefinition | import("@prismatic-io/spectral").KeyedConnection<{
611
+ key: "apiKeySecret";
612
+ display: {
613
+ description: string;
614
+ label: string;
615
+ };
616
+ inputs: {
617
+ accessKeyId: {
618
+ label: string;
619
+ placeholder: string;
620
+ type: "string";
621
+ required: true;
622
+ shown: true;
623
+ comments: string;
624
+ example: string;
625
+ };
626
+ secretAccessKey: {
627
+ label: string;
628
+ placeholder: string;
629
+ type: "password";
630
+ required: true;
631
+ shown: true;
632
+ comments: string;
633
+ example: string;
634
+ };
635
+ };
636
+ }, "apiKeySecret">)[];
637
+ dataSources: {
638
+ selectRegion: import("@prismatic-io/spectral").DataSourceDefinition<{}, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
639
+ selectTable: import("@prismatic-io/spectral").DataSourceDefinition<{
640
+ awsConnection: {
641
+ label: string;
642
+ type: "connection";
643
+ required: true;
644
+ comments: string;
645
+ };
646
+ awsRegion: {
647
+ dataSource: undefined;
648
+ model: undefined;
649
+ label: string;
650
+ placeholder: string;
651
+ type: "string";
652
+ required: false;
653
+ comments: string;
654
+ example: string;
655
+ clean: (value: unknown, defaultValue?: string) => string;
656
+ };
657
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
658
+ };
659
+ }>;
660
+ export = _default;
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-aws-dynamodb",
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": "Manage tables and items in Amazon DynamoDB.",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/aws-dynamodb"
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": "echo 'no tests'",
35
+ "prepare": "npm run build",
36
+ "publish:platform": "npm run build && prism components:publish"
37
+ },
38
+ "peerDependencies": {
39
+ "@prismatic-io/spectral": "^10.38.5"
40
+ },
41
+ "dependencies": {
42
+ "@aws-sdk/client-dynamodb": "3.1088.0",
43
+ "@aws-sdk/lib-dynamodb": "3.1088.0",
44
+ "@aws-sdk/client-sts": "3.1088.0"
45
+ },
46
+ "devDependencies": {
47
+ "@biomejs/biome": "2.5.1",
48
+ "@types/node": "^26.6.4",
49
+ "tsdown": "0.22.3",
50
+ "typescript": "6.0.3",
51
+ "vitest": "4.1.9",
52
+ "@prismatic-io/spectral": "^10.38.5",
53
+ "aws-utils": "file:../../packages/aws-utils"
54
+ }
55
+ }