@jaypie/dynamodb 0.3.0 → 0.4.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.
@@ -2,7 +2,7 @@ import type { StorableEntity } from "./types.js";
2
2
  /**
3
3
  * Get a single entity by primary key
4
4
  */
5
- export declare const getEntity: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
5
+ export declare const getEntity: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
6
6
  /**
7
7
  * Put (create or replace) an entity
8
8
  * Auto-populates GSI index keys via indexEntity
@@ -27,14 +27,14 @@ export declare function updateEntity({ entity, }: {
27
27
  * Soft delete an entity by setting deletedAt timestamp
28
28
  * Re-indexes with appropriate suffix based on archived/deleted state
29
29
  */
30
- export declare const deleteEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
30
+ export declare const deleteEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, boolean>;
31
31
  /**
32
32
  * Archive an entity by setting archivedAt timestamp
33
33
  * Re-indexes with appropriate suffix based on archived/deleted state
34
34
  */
35
- export declare const archiveEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
35
+ export declare const archiveEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, boolean>;
36
36
  /**
37
37
  * Hard delete an entity (permanently removes from table)
38
38
  * Use with caution - prefer deleteEntity for soft delete
39
39
  */
40
- export declare const destroyEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
40
+ export declare const destroyEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, boolean>;
@@ -5,4 +5,8 @@ export declare const createTableHandler: import("@jaypie/fabric").Service<Record
5
5
  message: string;
6
6
  success: boolean;
7
7
  tableName: string;
8
+ }, {
9
+ message: string;
10
+ success: boolean;
11
+ tableName: string;
8
12
  }>;
@@ -9,4 +9,12 @@ export declare const dockerComposeHandler: import("@jaypie/fabric").Service<Reco
9
9
  DYNAMODB_ENDPOINT: string;
10
10
  DYNAMODB_TABLE_NAME: unknown;
11
11
  };
12
+ }, {
13
+ dockerCompose: string;
14
+ envFile: string;
15
+ envVars: {
16
+ AWS_REGION: string;
17
+ DYNAMODB_ENDPOINT: string;
18
+ DYNAMODB_TABLE_NAME: unknown;
19
+ };
12
20
  }>;
@@ -6,4 +6,9 @@ export declare const statusHandler: import("@jaypie/fabric").Service<Record<stri
6
6
  initialized: boolean;
7
7
  region: string;
8
8
  tableName: string;
9
+ }, {
10
+ endpoint: string;
11
+ initialized: boolean;
12
+ region: string;
13
+ tableName: string;
9
14
  }>;
@@ -18,7 +18,7 @@ export declare function queryByScope({ archived, ascending, deleted, limit, mode
18
18
  * Query a single entity by human-friendly alias
19
19
  * Uses indexAlias GSI
20
20
  */
21
- export declare const queryByAlias: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
21
+ export declare const queryByAlias: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
22
22
  /**
23
23
  * Query parameters for queryByClass
24
24
  */
@@ -55,5 +55,5 @@ export declare function queryByType({ archived, ascending, deleted, limit, model
55
55
  * Query a single entity by external ID
56
56
  * Uses indexXid GSI
57
57
  */
58
- export declare const queryByXid: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
58
+ export declare const queryByXid: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
59
59
  export {};
@@ -2,7 +2,7 @@ import type { StorableEntity } from "./types.js";
2
2
  /**
3
3
  * Get a single entity by primary key
4
4
  */
5
- export declare const getEntity: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
5
+ export declare const getEntity: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
6
6
  /**
7
7
  * Put (create or replace) an entity
8
8
  * Auto-populates GSI index keys via indexEntity
@@ -27,14 +27,14 @@ export declare function updateEntity({ entity, }: {
27
27
  * Soft delete an entity by setting deletedAt timestamp
28
28
  * Re-indexes with appropriate suffix based on archived/deleted state
29
29
  */
30
- export declare const deleteEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
30
+ export declare const deleteEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, boolean>;
31
31
  /**
32
32
  * Archive an entity by setting archivedAt timestamp
33
33
  * Re-indexes with appropriate suffix based on archived/deleted state
34
34
  */
35
- export declare const archiveEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
35
+ export declare const archiveEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, boolean>;
36
36
  /**
37
37
  * Hard delete an entity (permanently removes from table)
38
38
  * Use with caution - prefer deleteEntity for soft delete
39
39
  */
40
- export declare const destroyEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean>;
40
+ export declare const destroyEntity: import("@jaypie/fabric").Service<Record<string, unknown>, boolean, boolean>;
@@ -5,4 +5,8 @@ export declare const createTableHandler: import("@jaypie/fabric").Service<Record
5
5
  message: string;
6
6
  success: boolean;
7
7
  tableName: string;
8
+ }, {
9
+ message: string;
10
+ success: boolean;
11
+ tableName: string;
8
12
  }>;
@@ -9,4 +9,12 @@ export declare const dockerComposeHandler: import("@jaypie/fabric").Service<Reco
9
9
  DYNAMODB_ENDPOINT: string;
10
10
  DYNAMODB_TABLE_NAME: unknown;
11
11
  };
12
+ }, {
13
+ dockerCompose: string;
14
+ envFile: string;
15
+ envVars: {
16
+ AWS_REGION: string;
17
+ DYNAMODB_ENDPOINT: string;
18
+ DYNAMODB_TABLE_NAME: unknown;
19
+ };
12
20
  }>;
@@ -6,4 +6,9 @@ export declare const statusHandler: import("@jaypie/fabric").Service<Record<stri
6
6
  initialized: boolean;
7
7
  region: string;
8
8
  tableName: string;
9
+ }, {
10
+ endpoint: string;
11
+ initialized: boolean;
12
+ region: string;
13
+ tableName: string;
9
14
  }>;
@@ -18,7 +18,7 @@ export declare function queryByScope({ archived, ascending, deleted, limit, mode
18
18
  * Query a single entity by human-friendly alias
19
19
  * Uses indexAlias GSI
20
20
  */
21
- export declare const queryByAlias: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
21
+ export declare const queryByAlias: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
22
22
  /**
23
23
  * Query parameters for queryByClass
24
24
  */
@@ -55,5 +55,5 @@ export declare function queryByType({ archived, ascending, deleted, limit, model
55
55
  * Query a single entity by external ID
56
56
  * Uses indexXid GSI
57
57
  */
58
- export declare const queryByXid: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null>;
58
+ export declare const queryByXid: import("@jaypie/fabric").Service<Record<string, unknown>, StorableEntity | null, StorableEntity | null>;
59
59
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/dynamodb",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/finlaysonstudio/jaypie.git"
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@aws-sdk/client-dynamodb": "^3.726.1",
43
43
  "@aws-sdk/lib-dynamodb": "^3.726.1",
44
- "@jaypie/fabric": "^0.1.0"
44
+ "@jaypie/fabric": "*"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@rollup/plugin-typescript": "^12.1.2",
@@ -49,9 +49,9 @@
49
49
  "typescript": "^5.3.3"
50
50
  },
51
51
  "peerDependencies": {
52
- "@jaypie/errors": "^1.2.1",
53
- "@jaypie/kit": "^1.2.1",
54
- "@jaypie/logger": "^1.2.1",
52
+ "@jaypie/errors": "*",
53
+ "@jaypie/kit": "*",
54
+ "@jaypie/logger": "*",
55
55
  "@modelcontextprotocol/sdk": ">=1.0.0"
56
56
  },
57
57
  "peerDependenciesMeta": {