@jaypie/constructs 1.2.42 → 1.2.44

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,22 @@
1
+ /**
2
+ * GSI index definition for JaypieDynamoDb.
3
+ *
4
+ * Shape mirrors `@jaypie/fabric`'s IndexDefinition so a single object can be
5
+ * shared between CDK provisioning (here) and runtime model code (fabric).
6
+ * The type is owned locally so `@jaypie/constructs` does not take a runtime
7
+ * dependency on the pre-1.0 `@jaypie/fabric` package.
8
+ *
9
+ * - `pk` fields are combined with a separator to form the partition key attribute
10
+ * - `sk` with one field uses that field directly as the GSI sort key
11
+ * - `sk` with multiple fields produces a composite `{indexName}Sk` attribute
12
+ */
13
+ export interface IndexDefinition {
14
+ /** Name of the index (auto-generated from pk fields if not provided) */
15
+ name?: string;
16
+ /** Partition key fields - combined with separator */
17
+ pk: string[];
18
+ /** Sort key fields - combined with separator when composite */
19
+ sk?: string[];
20
+ /** Advisory: index key is only written when all pk/sk fields are present */
21
+ sparse?: boolean;
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/constructs",
3
- "version": "1.2.42",
3
+ "version": "1.2.44",
4
4
  "description": "CDK constructs for Jaypie applications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,6 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@jaypie/errors": "*",
35
- "@jaypie/fabric": "*",
36
35
  "aws-cdk-lib": "^2.232.1",
37
36
  "cdk-nextjs-standalone": "^4.3.2",
38
37
  "constructs": "^10.4.3",