aws-service-stack 0.10.92

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 (140) hide show
  1. package/README.md +20 -0
  2. package/dist/_examples/model/user.model.d.ts +6 -0
  3. package/dist/_examples/model/user.model.js +3 -0
  4. package/dist/_examples/model/user.model.js.map +1 -0
  5. package/dist/controller/base-controller.d.ts +34 -0
  6. package/dist/controller/base-controller.js +151 -0
  7. package/dist/controller/base-controller.js.map +1 -0
  8. package/dist/controller/index.d.ts +1 -0
  9. package/dist/controller/index.js +18 -0
  10. package/dist/controller/index.js.map +1 -0
  11. package/dist/exception/errors.d.ts +32 -0
  12. package/dist/exception/errors.js +46 -0
  13. package/dist/exception/errors.js.map +1 -0
  14. package/dist/exception/exception-handler.d.ts +238 -0
  15. package/dist/exception/exception-handler.js +112 -0
  16. package/dist/exception/exception-handler.js.map +1 -0
  17. package/dist/index.d.ts +6 -0
  18. package/dist/index.js +23 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/model/base.model.d.ts +64 -0
  21. package/dist/model/base.model.js +20 -0
  22. package/dist/model/base.model.js.map +1 -0
  23. package/dist/model/cognito-user.model.d.ts +12 -0
  24. package/dist/model/cognito-user.model.js +3 -0
  25. package/dist/model/cognito-user.model.js.map +1 -0
  26. package/dist/model/filter.model.d.ts +46 -0
  27. package/dist/model/filter.model.js +22 -0
  28. package/dist/model/filter.model.js.map +1 -0
  29. package/dist/model/http.model.d.ts +7 -0
  30. package/dist/model/http.model.js +12 -0
  31. package/dist/model/http.model.js.map +1 -0
  32. package/dist/model/index.d.ts +4 -0
  33. package/dist/model/index.js +21 -0
  34. package/dist/model/index.js.map +1 -0
  35. package/dist/model/schema-validation.d.ts +20 -0
  36. package/dist/model/schema-validation.js +91 -0
  37. package/dist/model/schema-validation.js.map +1 -0
  38. package/dist/provider/apigateway.d.ts +4 -0
  39. package/dist/provider/apigateway.js +28 -0
  40. package/dist/provider/apigateway.js.map +1 -0
  41. package/dist/provider/dynamodb.d.ts +3 -0
  42. package/dist/provider/dynamodb.js +18 -0
  43. package/dist/provider/dynamodb.js.map +1 -0
  44. package/dist/provider/index.d.ts +3 -0
  45. package/dist/provider/index.js +20 -0
  46. package/dist/provider/index.js.map +1 -0
  47. package/dist/provider/opensearch.d.ts +4 -0
  48. package/dist/provider/opensearch.js +34 -0
  49. package/dist/provider/opensearch.js.map +1 -0
  50. package/dist/repositories/base-core.repo.interface.d.ts +129 -0
  51. package/dist/repositories/base-core.repo.interface.js +3 -0
  52. package/dist/repositories/base-core.repo.interface.js.map +1 -0
  53. package/dist/repositories/base-db.repo.d.ts +78 -0
  54. package/dist/repositories/base-db.repo.interface.d.ts +61 -0
  55. package/dist/repositories/base-db.repo.interface.js +3 -0
  56. package/dist/repositories/base-db.repo.interface.js.map +1 -0
  57. package/dist/repositories/base-db.repo.js +471 -0
  58. package/dist/repositories/base-db.repo.js.map +1 -0
  59. package/dist/repositories/base-es.repo.d.ts +31 -0
  60. package/dist/repositories/base-es.repo.interface.d.ts +13 -0
  61. package/dist/repositories/base-es.repo.interface.js +3 -0
  62. package/dist/repositories/base-es.repo.interface.js.map +1 -0
  63. package/dist/repositories/base-es.repo.js +148 -0
  64. package/dist/repositories/base-es.repo.js.map +1 -0
  65. package/dist/repositories/index.d.ts +4 -0
  66. package/dist/repositories/index.js +21 -0
  67. package/dist/repositories/index.js.map +1 -0
  68. package/dist/service/api.services/api.service.d.ts +11 -0
  69. package/dist/service/api.services/api.service.interface.d.ts +8 -0
  70. package/dist/service/api.services/api.service.interface.js +3 -0
  71. package/dist/service/api.services/api.service.interface.js.map +1 -0
  72. package/dist/service/api.services/api.service.js +103 -0
  73. package/dist/service/api.services/api.service.js.map +1 -0
  74. package/dist/service/api.services/index.d.ts +2 -0
  75. package/dist/service/api.services/index.js +19 -0
  76. package/dist/service/api.services/index.js.map +1 -0
  77. package/dist/service/auth.service.d.ts +8 -0
  78. package/dist/service/auth.service.interface.d.ts +6 -0
  79. package/dist/service/auth.service.interface.js +3 -0
  80. package/dist/service/auth.service.interface.js.map +1 -0
  81. package/dist/service/auth.service.js +90 -0
  82. package/dist/service/auth.service.js.map +1 -0
  83. package/dist/service/base.service.d.ts +39 -0
  84. package/dist/service/base.service.interface.d.ts +106 -0
  85. package/dist/service/base.service.interface.js +3 -0
  86. package/dist/service/base.service.interface.js.map +1 -0
  87. package/dist/service/base.service.js +167 -0
  88. package/dist/service/base.service.js.map +1 -0
  89. package/dist/service/index.d.ts +5 -0
  90. package/dist/service/index.js +22 -0
  91. package/dist/service/index.js.map +1 -0
  92. package/dist/service/key-aws.services.d.ts +6 -0
  93. package/dist/service/key-aws.services.js +48 -0
  94. package/dist/service/key-aws.services.js.map +1 -0
  95. package/dist/service/key.services.interface.d.ts +3 -0
  96. package/dist/service/key.services.interface.js +3 -0
  97. package/dist/service/key.services.interface.js.map +1 -0
  98. package/dist/service/socket.service.d.ts +6 -0
  99. package/dist/service/socket.service.interface.d.ts +3 -0
  100. package/dist/service/socket.service.interface.js +3 -0
  101. package/dist/service/socket.service.interface.js.map +1 -0
  102. package/dist/service/socket.service.js +33 -0
  103. package/dist/service/socket.service.js.map +1 -0
  104. package/dist/service/validation.service.interface.d.ts +2 -0
  105. package/dist/service/validation.service.interface.js +3 -0
  106. package/dist/service/validation.service.interface.js.map +1 -0
  107. package/dist/utils/auth.util.d.ts +13 -0
  108. package/dist/utils/auth.util.js +17 -0
  109. package/dist/utils/auth.util.js.map +1 -0
  110. package/dist/utils/dynamodb.utils.d.ts +43 -0
  111. package/dist/utils/dynamodb.utils.js +303 -0
  112. package/dist/utils/dynamodb.utils.js.map +1 -0
  113. package/dist/utils/env.util.d.ts +1 -0
  114. package/dist/utils/env.util.js +14 -0
  115. package/dist/utils/env.util.js.map +1 -0
  116. package/dist/utils/error.util.d.ts +1 -0
  117. package/dist/utils/error.util.js +5 -0
  118. package/dist/utils/error.util.js.map +1 -0
  119. package/dist/utils/file-handler.d.ts +14 -0
  120. package/dist/utils/file-handler.js +216 -0
  121. package/dist/utils/file-handler.js.map +1 -0
  122. package/dist/utils/http.util.d.ts +27 -0
  123. package/dist/utils/http.util.js +133 -0
  124. package/dist/utils/http.util.js.map +1 -0
  125. package/dist/utils/index.d.ts +8 -0
  126. package/dist/utils/index.js +25 -0
  127. package/dist/utils/index.js.map +1 -0
  128. package/dist/utils/json.util.d.ts +1 -0
  129. package/dist/utils/json.util.js +20 -0
  130. package/dist/utils/json.util.js.map +1 -0
  131. package/dist/utils/opensearch.utils.d.ts +40 -0
  132. package/dist/utils/opensearch.utils.js +293 -0
  133. package/dist/utils/opensearch.utils.js.map +1 -0
  134. package/dist/utils/reflection.util.d.ts +20 -0
  135. package/dist/utils/reflection.util.js +154 -0
  136. package/dist/utils/reflection.util.js.map +1 -0
  137. package/dist/utils/validation.util.d.ts +13 -0
  138. package/dist/utils/validation.util.js +90 -0
  139. package/dist/utils/validation.util.js.map +1 -0
  140. package/package.json +106 -0
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ESClientOpenSearch = void 0;
13
+ const opensearch_1 = require("@opensearch-project/opensearch");
14
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
15
+ const aws_1 = require("@opensearch-project/opensearch/aws");
16
+ const index_1 = require("../index");
17
+ const typedi_1 = require("typedi");
18
+ let ESClientOpenSearch = class ESClientOpenSearch extends opensearch_1.Client {
19
+ constructor() {
20
+ super(Object.assign(Object.assign({}, (0, aws_1.AwsSigv4Signer)({
21
+ region: (0, index_1.getEnvVariable)("AWS_REGION", new Error("AWS_REGION_NOT_FOUND")),
22
+ getCredentials: () => {
23
+ const credentialsProvider = (0, credential_provider_node_1.defaultProvider)();
24
+ return credentialsProvider();
25
+ },
26
+ })), { node: (0, index_1.getEnvVariable)("OPENSEARCH_ENDPOINT", new Error("OPENSEARCH_ENDPOINT_NOT_FOUND")) }));
27
+ }
28
+ };
29
+ exports.ESClientOpenSearch = ESClientOpenSearch;
30
+ exports.ESClientOpenSearch = ESClientOpenSearch = __decorate([
31
+ (0, typedi_1.Service)("ESClientOpenSearch"),
32
+ __metadata("design:paramtypes", [])
33
+ ], ESClientOpenSearch);
34
+ //# sourceMappingURL=opensearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opensearch.js","sourceRoot":"","sources":["../../src/provider/opensearch.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAwD;AACxD,gFAAoE;AACpE,4DAAoE;AACpE,oCAA0C;AAC1C,mCAAiC;AAG1B,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,mBAAM;IAC5C;QACE,KAAK,iCACA,IAAA,oBAAc,EAAC;YAChB,MAAM,EAAE,IAAA,sBAAc,EAAC,YAAY,EAAE,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;YACvE,cAAc,EAAE,GAAG,EAAE;gBACnB,MAAM,mBAAmB,GAAG,IAAA,0CAAe,GAAE,CAAC;gBAC9C,OAAO,mBAAmB,EAAE,CAAC;YAC/B,CAAC;SACF,CAAC,KACF,IAAI,EAAE,IAAA,sBAAc,EAAC,qBAAqB,EAAE,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC,IACvF,CAAC;IACL,CAAC;CACF,CAAA;AAbY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,gBAAO,EAAC,oBAAoB,CAAC;;GACjB,kBAAkB,CAa9B"}
@@ -0,0 +1,129 @@
1
+ import { BaseEntity, FilterAndSort, List } from "../model/index.js";
2
+ /**
3
+ * Core repository interface defining standard CRUD and query operations.
4
+ * Designed to be implemented for different data sources such as DynamoDB or OpenSearch.
5
+ */
6
+ export interface CoreRepo<T extends BaseEntity> {
7
+ /**
8
+ * Saves an entity by either creating it (if it does not exist) or updating it (if it does).
9
+ *
10
+ * @param entity - The entity to save.
11
+ * @returns The saved entity.
12
+ */
13
+ save(entity: Partial<T>): Promise<T>;
14
+ /**
15
+ * Saves multiple entities by either creating or updating each one.
16
+ *
17
+ * @param entities - An array of entities to save.
18
+ * @returns An array of saved entities.
19
+ */
20
+ saveMany(entities: Partial<T>[]): Promise<Partial<T>[]>;
21
+ /**
22
+ * Updates an existing entity.
23
+ * Fails if the entity does not exist.
24
+ *
25
+ * @param entity - The entity with updated data.
26
+ * @param fieldNames - The list of field names to update in the entity.
27
+ * @returns The updated entity.
28
+ */
29
+ update(entity: Partial<T>, fieldNames: string[]): Promise<T>;
30
+ /**
31
+ * Updates multiple existing entities.
32
+ *
33
+ * If `fieldNames` is **not provided**, the method performs a **batch update**
34
+ * (e.g., using `BatchWriteItem` in DynamoDB, if supported). In this case, entire entities
35
+ * are replaced or merged as a whole.
36
+ *
37
+ * If `fieldNames` **is provided**, each entity is updated individually, and only the
38
+ * specified fields in `fieldNames` will be modified. This approach avoids overwriting
39
+ * the entire entity and is useful for partial updates.
40
+ *
41
+ * Note:
42
+ * - Entities must already exist in the data store.
43
+ * - Batch update is not truly atomic; some partial updates may occur if errors happen mid-way.
44
+ * - If partial field updates are needed, `fieldNames` must be used.
45
+ *
46
+ * @param entities - An array of entities with partial data to update.
47
+ * @param fieldNames - Optional list of field names to update. If provided, only these fields are updated per entity.
48
+ * @returns An array of successfully updated entities.
49
+ */
50
+ updateMany(entities: Partial<T>[], fieldNames: string[]): Promise<boolean>;
51
+ /**
52
+ * Deletes an entity by its unique identifier.
53
+ *
54
+ * @param id - The ID of the entity to delete.
55
+ * @returns True if the entity was successfully deleted; otherwise, false.
56
+ */
57
+ delete(id: string): Promise<boolean>;
58
+ /**
59
+ * Deletes multiple entities by their unique identifiers.
60
+ *
61
+ * @param ids - An array of entity IDs to delete.
62
+ * @returns True if all entities were successfully deleted; otherwise, false.
63
+ */
64
+ deleteMany(ids: string[]): Promise<boolean>;
65
+ /**
66
+ * Checks whether an entity with the specified ID exists.
67
+ *
68
+ * @param id - The ID of the entity to check.
69
+ * @returns True if the entity exists; otherwise, false.
70
+ */
71
+ exists(id: string): Promise<boolean>;
72
+ /**
73
+ * Retrieves a single entity by its unique identifier.
74
+ *
75
+ * @param id - The ID of the entity to retrieve.
76
+ * @returns The entity if found; otherwise, null.
77
+ */
78
+ findById(id: string): Promise<T | null>;
79
+ /**
80
+ * Retrieves multiple entities by their unique identifiers.
81
+ * Returns only the entities that exist (non-existent IDs are ignored).
82
+ *
83
+ * @param ids - An array of entity IDs to retrieve.
84
+ * @returns An array of entities that were found.
85
+ */
86
+ findByIds(ids: string[]): Promise<T[]>;
87
+ /**
88
+ * Retrieves a list of entities that match the specified filter, sorting, and pagination criteria.
89
+ *
90
+ * @param filter - Filtering, sorting, and pagination options.
91
+ * @returns An array of matching entities.
92
+ */
93
+ find(filter: FilterAndSort): Promise<List<Partial<T>>>;
94
+ /**
95
+ * Retrieves the first matching entity based on the specified filter.
96
+ *
97
+ * @param filter - Filtering criteria.
98
+ * @returns The first matching entity if found; otherwise, null.
99
+ */
100
+ findOne(filter: FilterAndSort): Promise<Partial<T> | null>;
101
+ /**
102
+ * Counts the total number of entities matching the specified filter.
103
+ * Useful for pagination and statistics.
104
+ *
105
+ * @param filter - Filtering criteria.
106
+ * @returns The number of matching entities.
107
+ */
108
+ count(filter: FilterAndSort): Promise<number>;
109
+ /**
110
+ * (Optional) Returns the raw response from the data source.
111
+ * Useful for debugging or exposing advanced querying features (e.g., OpenSearch DSL).
112
+ *
113
+ * @param filter - Filtering and query options.
114
+ * @returns A raw result object from the data source.
115
+ */
116
+ getRaw?(filter: FilterAndSort): Promise<any>;
117
+ /**
118
+ * Adjusts a numeric field in the database by adding or subtracting a specified value.
119
+ * If the field does not exist, it will be initialized to zero before applying the adjustment.
120
+ *
121
+ * @param id - The unique identifier of the item to update.
122
+ * @param fieldName - The name of the numeric field to modify.
123
+ * @param delta - The amount to add (positive) or subtract (negative) from the field.
124
+ * @returns The updated item after the adjustment.
125
+ * @throws Will throw an error if the id is not provided.
126
+ */
127
+ incrementValueByField(entityId: string, fieldName: string, value?: number): Promise<T>;
128
+ decrementValueByField(entityId: string, fieldName: string, value?: number): Promise<T>;
129
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=base-core.repo.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-core.repo.interface.js","sourceRoot":"","sources":["../../src/repositories/base-core.repo.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,78 @@
1
+ import { BaseEntity, BaseRepoDB, DynamoIndexMap, FilterAndSort, List } from "../index";
2
+ export declare class BaseRepoDBImpl<T extends BaseEntity> implements BaseRepoDB<T> {
3
+ private readonly dynamoDb;
4
+ private _tableName;
5
+ private _indexMap;
6
+ private DYNAMO_QUERY_LIMIT;
7
+ constructor(tableName: string, indexMap: DynamoIndexMap);
8
+ incrementValueByField(entityId: string, fieldName: string, value?: number): Promise<T>;
9
+ decrementValueByField(entityId: string, fieldName: string, value?: number): Promise<T>;
10
+ transactWrite?(operations: any[]): Promise<boolean>;
11
+ update(entity: Partial<T>, fieldNames: string[]): Promise<T>;
12
+ updateMany(entityList: Partial<T>[], fieldNames: string[]): Promise<boolean>;
13
+ save(entity: Partial<T>): Promise<T>;
14
+ saveMany(entities: Partial<T>[]): Promise<Partial<T>[]>;
15
+ delete(id: string): Promise<boolean>;
16
+ deleteMany(ids: string[]): Promise<boolean>;
17
+ findById(id: string): Promise<T>;
18
+ findByIds(ids: string[]): Promise<T[]>;
19
+ find(filter: FilterAndSort): Promise<List<Partial<T>>>;
20
+ findOne(filter: FilterAndSort): Promise<T>;
21
+ findByIndex(indexName: string, value: string): Promise<List<Partial<T>>>;
22
+ count(filter: FilterAndSort): Promise<number>;
23
+ exists(id: string): Promise<boolean>;
24
+ getRaw(filter: FilterAndSort): Promise<any>;
25
+ transactionRead<T>(operations: {
26
+ id: string;
27
+ sortKey?: string;
28
+ }[]): Promise<T[]>;
29
+ transactRead?<TResult = any>(operations: any[]): Promise<TResult[]>;
30
+ transactionWrite(operations: {
31
+ create?: {
32
+ tableName: string;
33
+ item: Record<string, any>;
34
+ }[];
35
+ update?: {
36
+ tableName: string;
37
+ key: {
38
+ id: string;
39
+ };
40
+ updateData: Record<string, any>;
41
+ }[];
42
+ delete?: {
43
+ tableName: string;
44
+ key: {
45
+ id: string;
46
+ };
47
+ }[];
48
+ }): Promise<boolean>;
49
+ getTableName(): string;
50
+ setIndexMap(indexMap: DynamoIndexMap): boolean;
51
+ setTableName(tableName: string): boolean;
52
+ getIndexMap(): DynamoIndexMap;
53
+ private incrementOrDecrementFieldValue;
54
+ /**
55
+ * Executes a DynamoDB Query or Scan operation and returns a guaranteed number of results up to the specified limit.
56
+ *
57
+ * DynamoDB's native `Limit` parameter defines the *maximum amount of data* to return, not necessarily the *number of items*,
58
+ * due to its internal 1 MB response size limit. This method continues pagination using `LastEvaluatedKey` until the desired
59
+ * number of items is retrieved or no more results are available.
60
+ *
61
+ * @param queryInput - The DynamoDB QueryCommandInput or ScanCommandInput.
62
+ * @param startKey - Optional key to start the query from (for pagination).
63
+ * @returns A item list of type `T`, guaranteed to contain up to `Limit` items if available.
64
+ */ private sendCommandDeep;
65
+ /**
66
+ * Executes a single DynamoDB Query or Scan command and returns the result as-is.
67
+ *
68
+ * This method sends the provided command input to DynamoDB and returns the items in the response.
69
+ * If a `startKey` is provided, it will be used as the `ExclusiveStartKey` to support pagination.
70
+ *
71
+ * Note: DynamoDB may return fewer items than the specified `Limit`, depending on the 1 MB size cap or internal filtering.
72
+ * This method does not perform deep pagination to fulfill the exact limit.
73
+ *
74
+ * @param commandInput - The DynamoDB QueryCommandInput or ScanCommandInput.
75
+ * @returns A partial item list of type `T`, along with the LastEvaluatedKey if more data is available.
76
+ */
77
+ private sendCommand;
78
+ }
@@ -0,0 +1,61 @@
1
+ import { BaseEntity, DynamoIndexMap } from "../index";
2
+ import { CoreRepo } from "./base-core.repo.interface";
3
+ export interface BaseRepoDB<T extends BaseEntity> extends CoreRepo<T> {
4
+ /**
5
+ * Executes a transactional write operation.
6
+ * This is typically supported by DynamoDB for atomic operations.
7
+ *
8
+ * @param operations - An array of write operations (create, update, delete) to perform atomically.
9
+ * @returns True if the transaction was successful; otherwise, false.
10
+ */
11
+ transactionWrite(operations: {
12
+ create?: {
13
+ tableName: string;
14
+ item: Record<string, any>;
15
+ }[];
16
+ update?: {
17
+ tableName: string;
18
+ key: {
19
+ id: string;
20
+ };
21
+ updateData: Record<string, any>;
22
+ }[];
23
+ delete?: {
24
+ tableName: string;
25
+ key: {
26
+ id: string;
27
+ };
28
+ }[];
29
+ }): Promise<boolean>;
30
+ /**
31
+ * Executes a transactional read operation.
32
+ * This is typically supported by DynamoDB for atomic read operations.
33
+ *
34
+ * @param operations - An array of read operations to perform atomically.
35
+ * @returns An array of results from the transaction.
36
+ */
37
+ transactionRead<T>(operations: {
38
+ id: string;
39
+ sortKey?: string;
40
+ }[]): Promise<T[]>;
41
+ /**
42
+ * (Optional) Executes a transactional write operation.
43
+ * This is typically only supported by DynamoDB.
44
+ *
45
+ * @param operations - An array of write operations to perform atomically.
46
+ * @returns True if the transaction was successful; otherwise, false.
47
+ */
48
+ transactWrite?(operations: any[]): Promise<boolean>;
49
+ /**
50
+ * (Optional) Executes a transactional read operation.
51
+ * This is typically only supported by DynamoDB.
52
+ *
53
+ * @param operations - An array of read operations to perform atomically.
54
+ * @returns An array of results from the transaction.
55
+ */
56
+ transactRead?<TResult = any>(operations: any[]): Promise<TResult[]>;
57
+ setIndexMap(value: DynamoIndexMap): boolean;
58
+ getIndexMap(): DynamoIndexMap;
59
+ setTableName(value: string): boolean;
60
+ getTableName(): string;
61
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=base-db.repo.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-db.repo.interface.js","sourceRoot":"","sources":["../../src/repositories/base-db.repo.interface.ts"],"names":[],"mappings":""}