chatbot-agentic 1.0.9 → 1.0.10

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.
@@ -22,6 +22,8 @@ export declare const AWS: {
22
22
  Rekognition: {
23
23
  startLableDetection: (data: import("@aws-sdk/client-rekognition").StartLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartLabelDetectionCommandOutput>;
24
24
  getLabelDetection: (data: import("@aws-sdk/client-rekognition").GetLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").GetLabelDetectionCommandOutput>;
25
+ startTextDetection: (data: import("@aws-sdk/client-rekognition").StartTextDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartTextDetectionCommandOutput>;
26
+ getTextDetection: (data: import("@aws-sdk/client-rekognition").GetTextDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").GetTextDetectionCommandOutput>;
25
27
  };
26
28
  Textract: {
27
29
  startDocumentTextDetection: (data: import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandInput) => Promise<import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandOutput>;
@@ -1,5 +1,7 @@
1
- import { GetLabelDetectionCommandInput, StartLabelDetectionCommandInput } from "@aws-sdk/client-rekognition";
1
+ import { GetLabelDetectionCommandInput, GetTextDetectionCommandInput, StartLabelDetectionCommandInput, StartTextDetectionCommandInput } from "@aws-sdk/client-rekognition";
2
2
  export declare const Rekognition: {
3
3
  startLableDetection: (data: StartLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartLabelDetectionCommandOutput>;
4
4
  getLabelDetection: (data: GetLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").GetLabelDetectionCommandOutput>;
5
+ startTextDetection: (data: StartTextDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartTextDetectionCommandOutput>;
6
+ getTextDetection: (data: GetTextDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").GetTextDetectionCommandOutput>;
5
7
  };
@@ -21,6 +21,17 @@ const startLableDetection = async (data) => {
21
21
  throw error;
22
22
  }
23
23
  };
24
+ const startTextDetection = async (data) => {
25
+ try {
26
+ const command = new client_rekognition_1.StartTextDetectionCommand(data);
27
+ const response = await client.send(command);
28
+ return response;
29
+ }
30
+ catch (error) {
31
+ console.info(`error occured while text lable detection`);
32
+ throw error;
33
+ }
34
+ };
24
35
  const getLabelDetection = async (data) => {
25
36
  try {
26
37
  const command = new client_rekognition_1.GetLabelDetectionCommand(data);
@@ -32,8 +43,21 @@ const getLabelDetection = async (data) => {
32
43
  throw error;
33
44
  }
34
45
  };
46
+ const getTextDetection = async (data) => {
47
+ try {
48
+ const command = new client_rekognition_1.GetTextDetectionCommand(data);
49
+ const response = await client.send(command);
50
+ return response;
51
+ }
52
+ catch (error) {
53
+ console.info(`error occured while get text detection details`);
54
+ throw error;
55
+ }
56
+ };
35
57
  exports.Rekognition = {
36
58
  startLableDetection,
37
- getLabelDetection
59
+ getLabelDetection,
60
+ startTextDetection,
61
+ getTextDetection
38
62
  };
39
63
  //# sourceMappingURL=AWSRekognition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AWSRekognition.js","sourceRoot":"","sources":["../../../../aws/services/AWSRekognition.ts"],"names":[],"mappings":";;;AAAA,oEAAsL;AAEtL,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,MAAM,CAAC,CAAC;AAC7D,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,IAAI,sCAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,KAAK,EAAE,IAAoC,EAAG,EAAE;IAC1E,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,+CAA0B,CAAC,IAAI,CAAC,CAAC;QACrD,MAA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AU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC;QAC/D,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA;AAGY,QAAA,WAAW,GAAG;IACxB,mBAAmB;IACnB,iBAAiB;IACjB,kBAAkB;IAClB,gBAAgB;CAClB,CAAA"}
@@ -22,6 +22,8 @@ export declare const AWS: {
22
22
  Rekognition: {
23
23
  startLableDetection: (data: import("@aws-sdk/client-rekognition").StartLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartLabelDetectionCommandOutput>;
24
24
  getLabelDetection: (data: import("@aws-sdk/client-rekognition").GetLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").GetLabelDetectionCommandOutput>;
25
+ startTextDetection: (data: import("@aws-sdk/client-rekognition").StartTextDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartTextDetectionCommandOutput>;
26
+ getTextDetection: (data: import("@aws-sdk/client-rekognition").GetTextDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").GetTextDetectionCommandOutput>;
25
27
  };
26
28
  Textract: {
27
29
  startDocumentTextDetection: (data: import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandInput) => Promise<import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandOutput>;
@@ -1,5 +1,7 @@
1
- import { GetLabelDetectionCommandInput, StartLabelDetectionCommandInput } from "@aws-sdk/client-rekognition";
1
+ import { GetLabelDetectionCommandInput, GetTextDetectionCommandInput, StartLabelDetectionCommandInput, StartTextDetectionCommandInput } from "@aws-sdk/client-rekognition";
2
2
  export declare const Rekognition: {
3
3
  startLableDetection: (data: StartLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartLabelDetectionCommandOutput>;
4
4
  getLabelDetection: (data: GetLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").GetLabelDetectionCommandOutput>;
5
+ startTextDetection: (data: StartTextDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartTextDetectionCommandOutput>;
6
+ getTextDetection: (data: GetTextDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").GetTextDetectionCommandOutput>;
5
7
  };
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { GetLabelDetectionCommand, RekognitionClient, StartLabelDetectionCommand } from "@aws-sdk/client-rekognition";
10
+ import { GetLabelDetectionCommand, GetTextDetectionCommand, RekognitionClient, StartLabelDetectionCommand, StartTextDetectionCommand } from "@aws-sdk/client-rekognition";
11
11
  const environment = (process.env.NODE_ENVIRONMENT || 'Test');
12
12
  const awsRegion = (process.env.AWS_DEFAULT_REGION || 'us-east-1');
13
13
  const client = new RekognitionClient({ region: awsRegion });
@@ -27,6 +27,17 @@ const startLableDetection = (data) => __awaiter(void 0, void 0, void 0, function
27
27
  throw error;
28
28
  }
29
29
  });
30
+ const startTextDetection = (data) => __awaiter(void 0, void 0, void 0, function* () {
31
+ try {
32
+ const command = new StartTextDetectionCommand(data);
33
+ const response = yield client.send(command);
34
+ return response;
35
+ }
36
+ catch (error) {
37
+ console.info(`error occured while text lable detection`);
38
+ throw error;
39
+ }
40
+ });
30
41
  const getLabelDetection = (data) => __awaiter(void 0, void 0, void 0, function* () {
31
42
  try {
32
43
  const command = new GetLabelDetectionCommand(data);
@@ -38,8 +49,21 @@ const getLabelDetection = (data) => __awaiter(void 0, void 0, void 0, function*
38
49
  throw error;
39
50
  }
40
51
  });
52
+ const getTextDetection = (data) => __awaiter(void 0, void 0, void 0, function* () {
53
+ try {
54
+ const command = new GetTextDetectionCommand(data);
55
+ const response = yield client.send(command);
56
+ return response;
57
+ }
58
+ catch (error) {
59
+ console.info(`error occured while get text detection details`);
60
+ throw error;
61
+ }
62
+ });
41
63
  export const Rekognition = {
42
64
  startLableDetection,
43
- getLabelDetection
65
+ getLabelDetection,
66
+ startTextDetection,
67
+ getTextDetection
44
68
  };
45
69
  //# sourceMappingURL=AWSRekognition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AWSRekognition.js","sourceRoot":"","sources":["../../../../aws/services/AWSRekognition.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,wBAAwB,EAAiC,iBAAiB,EAAC,0BAA0B,EAAoC,MAAM,6BAA6B,CAAC;AAEtL,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,MAAM,CAAC,CAAC;AAC7D,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,CAAO,IAAoC,EAAG,EAAE;IAC1E,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACrD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QACpD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA,CAAA;AAED,MAAM,iBAAiB,GAAE,CAAO,IAAkC,EAAG,EAAE;IACrE,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;QA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IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;QACzD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA,CAAA;AAID,MAAM,iBAAiB,GAAG,CAAO,IAAkC,EAAG,EAAE;IACtE,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;QAChE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA,CAAA;AAED,MAAM,gBAAgB,GAAG,CAAO,IAAiC,EAAG,EAAE;IACpE,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC;QAC/D,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA,CAAA;AAGD,MAAM,CAAC,MAAM,WAAW,GAAG;IACxB,mBAAmB;IACnB,iBAAiB;IACjB,kBAAkB;IAClB,gBAAgB;CAClB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatbot-agentic",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",