chatbot-nc 2.2.68 → 2.2.69

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.
@@ -255,4 +255,9 @@ export declare const AWS: {
255
255
  startMedicalScribe: (param: import("@aws-sdk/client-transcribe").StartMedicalScribeJobCommandInput) => Promise<import("@aws-sdk/client-transcribe").StartMedicalScribeJobCommandOutput | undefined>;
256
256
  startCallAnalytics: (param: import("@aws-sdk/client-transcribe").StartCallAnalyticsJobCommandInput) => Promise<import("@aws-sdk/client-transcribe").StartCallAnalyticsJobCommandOutput | undefined>;
257
257
  };
258
+ Schedule: {
259
+ createSchedule: (params: import("@aws-sdk/client-scheduler").CreateScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").CreateScheduleCommandOutput>;
260
+ updateSchedule: (params: import("@aws-sdk/client-scheduler").UpdateScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").UpdateScheduleCommandOutput>;
261
+ deleteSchedule: (params: import("@aws-sdk/client-scheduler").DeleteScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").DeleteScheduleCommandOutput>;
262
+ };
258
263
  };
@@ -26,6 +26,7 @@ const AWSCodepipeline_1 = require("./services/AWSCodepipeline");
26
26
  const AWSTranslate_1 = require("./services/AWSTranslate");
27
27
  const AWSLambda_1 = require("./services/AWSLambda");
28
28
  const AWSTranscribe_1 = require("./services/AWSTranscribe");
29
+ const AWSScheduler_1 = require("./services/AWSScheduler");
29
30
  exports.AWS = {
30
31
  S3: AWSS3_1.S3,
31
32
  Lambda: AWSLambda_1.Lambda,
@@ -51,6 +52,7 @@ exports.AWS = {
51
52
  Gateway: AWSGateway_1.Gateway,
52
53
  CodePipeline: AWSCodepipeline_1.CodePipeline,
53
54
  Translate: AWSTranslate_1.Translate,
54
- Transcribe: AWSTranscribe_1.Transcribe
55
+ Transcribe: AWSTranscribe_1.Transcribe,
56
+ Schedule: AWSScheduler_1.Schedule
55
57
  };
56
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../aws/index.ts"],"names":[],"mappings":";;;AAAA,4CAAsC;AACtC,4DAAsD;AACtD,wDAAkD;AAClD,8CAAwC;AACxC,8CAAwC;AACxC,8CAAwC;AACxC,4EAAuD;AACvD,wDAAkD;AAClD,wDAAkD;AAClD,wEAAkE;AAClE,sDAAgD;AAChD,qDAAqD;AACrD,4EAAsE;AACtE,0EAAoE;AACpE,8CAAwC;AACxC,4DAAuD;AACvD,wEAAkE;AAClE,gEAA2D;AAC3D,gEAAoD;AACpD,8CAAwC;AACxC,sDAAgD;AAChD,gEAA0D;AAC1D,0DAAoD;AACpD,oDAA8C;AAC9C,4DAAsD;AAGzC,QAAA,GAAG,GAAG;IACf,EAAE,EAAF,UAAE;IACF,MAAM,EAAN,kBAAM;IACN,UAAU,EAAV,0BAAU;IACV,QAAQ,EAAR,sBAAQ;IACR,QAAQ,EAAR,sBAAQ;IACR,GAAG,EAAH,YAAG;IACH,GAAG,EAAH,YAAG;IACH,GAAG,EAAH,YAAG;IACH,GAAG,EAAH,YAAG;IACH,GAAG,EAAH,2BAAG;IACH,QAAQ,EAAR,sBAAQ;IACR,gBAAgB,EAAhB,sCAAgB;IAChB,OAAO,EAAP,oBAAO;IACP,YAAY;IACZ,kBAAkB,EAAlB,0CAAkB;IAClB,iBAAiB,EAAjB,wCAAiB;IACjB,UAAU,EAAV,0BAAU;IACV,eAAe,EAAf,qCAAe;IACf,YAAY,EAAZ,8BAAY;IACZ,KAAK,EAAL,uBAAK;IACL,GAAG,EAAH,YAAG;IACH,OAAO,EAAP,oBAAO;IACP,YAAY,EAAZ,8BAAY;IACZ,SAAS,EAAT,wBAAS;IACT,UAAU,EAAV,0BAAU;CACb,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../aws/index.ts"],"names":[],"mappings":";;;AAAA,4CAAsC;AACtC,4DAAsD;AACtD,wDAAkD;AAClD,8CAAwC;AACxC,8CAAwC;AACxC,8CAAwC;AACxC,4EAAuD;AACvD,wDAAkD;AAClD,wDAAkD;AAClD,wEAAkE;AAClE,sDAAgD;AAChD,qDAAqD;AACrD,4EAAsE;AACtE,0EAAoE;AACpE,8CAAwC;AACxC,4DAAuD;AACvD,wEAAkE;AAClE,gEAA2D;AAC3D,gEAAoD;AACpD,8CAAwC;AACxC,sDAAgD;AAChD,gEAA0D;AAC1D,0DAAoD;AACpD,oDAA8C;AAC9C,4DAAsD;AACtD,0DAAmD;AAItC,QAAA,GAAG,GAAG;IACf,EAAE,EAAF,UAAE;IACF,MAAM,EAAN,kBAAM;IACN,UAAU,EAAV,0BAAU;IACV,QAAQ,EAAR,sBAAQ;IACR,QAAQ,EAAR,sBAAQ;IACR,GAAG,EAAH,YAAG;IACH,GAAG,EAAH,YAAG;IACH,GAAG,EAAH,YAAG;IACH,GAAG,EAAH,YAAG;IACH,GAAG,EAAH,2BAAG;IACH,QAAQ,EAAR,sBAAQ;IACR,gBAAgB,EAAhB,sCAAgB;IAChB,OAAO,EAAP,oBAAO;IACP,YAAY;IACZ,kBAAkB,EAAlB,0CAAkB;IAClB,iBAAiB,EAAjB,wCAAiB;IACjB,UAAU,EAAV,0BAAU;IACV,eAAe,EAAf,qCAAe;IACf,YAAY,EAAZ,8BAAY;IACZ,KAAK,EAAL,uBAAK;IACL,GAAG,EAAH,YAAG;IACH,OAAO,EAAP,oBAAO;IACP,YAAY,EAAZ,8BAAY;IACZ,SAAS,EAAT,wBAAS;IACT,UAAU,EAAV,0BAAU;IACV,QAAQ,EAAR,uBAAQ;CACX,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { CreateScheduleCommandInput, DeleteScheduleCommandInput, UpdateScheduleCommandInput } from "@aws-sdk/client-scheduler";
2
+ export declare const Schedule: {
3
+ createSchedule: (params: CreateScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").CreateScheduleCommandOutput>;
4
+ updateSchedule: (params: UpdateScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").UpdateScheduleCommandOutput>;
5
+ deleteSchedule: (params: DeleteScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").DeleteScheduleCommandOutput>;
6
+ };
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Schedule = void 0;
4
+ const client_scheduler_1 = require("@aws-sdk/client-scheduler"); // ES Modules import
5
+ const environment = (process.env.NODE_ENVIRONMENT || 'Test');
6
+ const awsRegion = (process.env.AWS_DEFAULT_REGION || 'us-east-1');
7
+ const client = new client_scheduler_1.SchedulerClient({ region: awsRegion });
8
+ /**
9
+ * this function is used to create a schedule
10
+ * @param params
11
+ * @returns
12
+ */
13
+ const createSchedule = async (params) => {
14
+ try {
15
+ const command = new client_scheduler_1.CreateScheduleCommand(params);
16
+ const response = await client.send(command);
17
+ console.log("Created new schedule");
18
+ return response;
19
+ }
20
+ catch (error) {
21
+ console.error(error);
22
+ throw error;
23
+ }
24
+ };
25
+ /**
26
+ * This function is used to update the schedule
27
+ * @param params
28
+ * @returns
29
+ */
30
+ const updateSchedule = async (params) => {
31
+ try {
32
+ const command = new client_scheduler_1.UpdateScheduleCommand(params);
33
+ const response = await client.send(command);
34
+ console.log("Updated schedule");
35
+ return response;
36
+ }
37
+ catch (error) {
38
+ console.error(error);
39
+ throw error;
40
+ }
41
+ };
42
+ /**
43
+ * This function is used to delete the schedule
44
+ * @param params
45
+ * @returns
46
+ */
47
+ const deleteSchedule = async (params) => {
48
+ try {
49
+ const command = new client_scheduler_1.DeleteScheduleCommand(params);
50
+ const response = await client.send(command);
51
+ console.log("Deleted schedule");
52
+ return response;
53
+ }
54
+ catch (error) {
55
+ console.error(error);
56
+ throw error;
57
+ }
58
+ };
59
+ exports.Schedule = {
60
+ createSchedule,
61
+ updateSchedule,
62
+ deleteSchedule
63
+ };
64
+ //# sourceMappingURL=AWSScheduler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AWSSchedu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A;AAED;;;;GAIG;AACH,MAAM,cAAc,GAAG,KAAK,EAAE,MAAkC,EAAE,EAAE;IAChE,IAAI,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,wCAAqB,CAAC,MAAM,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAChC,OAAO,QAAQ,CAAC;IACpB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QACpB,MAAM,KAAK,CAAC;IAChB,CAAC;AACL,CAAC,CAAA;AAEY,QAAA,QAAQ,GAAG;IACpB,cAAc;IACd,cAAc;IACd,cAAc;CACjB,CAAA"}
@@ -255,4 +255,9 @@ export declare const AWS: {
255
255
  startMedicalScribe: (param: import("@aws-sdk/client-transcribe").StartMedicalScribeJobCommandInput) => Promise<import("@aws-sdk/client-transcribe").StartMedicalScribeJobCommandOutput | undefined>;
256
256
  startCallAnalytics: (param: import("@aws-sdk/client-transcribe").StartCallAnalyticsJobCommandInput) => Promise<import("@aws-sdk/client-transcribe").StartCallAnalyticsJobCommandOutput | undefined>;
257
257
  };
258
+ Schedule: {
259
+ createSchedule: (params: import("@aws-sdk/client-scheduler").CreateScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").CreateScheduleCommandOutput>;
260
+ updateSchedule: (params: import("@aws-sdk/client-scheduler").UpdateScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").UpdateScheduleCommandOutput>;
261
+ deleteSchedule: (params: import("@aws-sdk/client-scheduler").DeleteScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").DeleteScheduleCommandOutput>;
262
+ };
258
263
  };
@@ -23,6 +23,7 @@ import { CodePipeline } from "./services/AWSCodepipeline";
23
23
  import { Translate } from "./services/AWSTranslate";
24
24
  import { Lambda } from "./services/AWSLambda";
25
25
  import { Transcribe } from "./services/AWSTranscribe";
26
+ import { Schedule } from "./services/AWSScheduler";
26
27
  export const AWS = {
27
28
  S3,
28
29
  Lambda,
@@ -48,6 +49,7 @@ export const AWS = {
48
49
  Gateway,
49
50
  CodePipeline,
50
51
  Translate,
51
- Transcribe
52
+ Transcribe,
53
+ Schedule
52
54
  };
53
55
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../aws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,kCAAkC,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,qDAAqD;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAO,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAO,gCAAgC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAO,4BAA4B,CAAC;AAC3D,OAAO,EAAE,KAAK,EA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/client-scheduler";
2
+ export declare const Schedule: {
3
+ createSchedule: (params: CreateScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").CreateScheduleCommandOutput>;
4
+ updateSchedule: (params: UpdateScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").UpdateScheduleCommandOutput>;
5
+ deleteSchedule: (params: DeleteScheduleCommandInput) => Promise<import("@aws-sdk/client-scheduler").DeleteScheduleCommandOutput>;
6
+ };
@@ -0,0 +1,70 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { CreateScheduleCommand, DeleteScheduleCommand, SchedulerClient, UpdateScheduleCommand } from "@aws-sdk/client-scheduler"; // ES Modules import
11
+ const environment = (process.env.NODE_ENVIRONMENT || 'Test');
12
+ const awsRegion = (process.env.AWS_DEFAULT_REGION || 'us-east-1');
13
+ const client = new SchedulerClient({ region: awsRegion });
14
+ /**
15
+ * this function is used to create a schedule
16
+ * @param params
17
+ * @returns
18
+ */
19
+ const createSchedule = (params) => __awaiter(void 0, void 0, void 0, function* () {
20
+ try {
21
+ const command = new CreateScheduleCommand(params);
22
+ const response = yield client.send(command);
23
+ console.log("Created new schedule");
24
+ return response;
25
+ }
26
+ catch (error) {
27
+ console.error(error);
28
+ throw error;
29
+ }
30
+ });
31
+ /**
32
+ * This function is used to update the schedule
33
+ * @param params
34
+ * @returns
35
+ */
36
+ const updateSchedule = (params) => __awaiter(void 0, void 0, void 0, function* () {
37
+ try {
38
+ const command = new UpdateScheduleCommand(params);
39
+ const response = yield client.send(command);
40
+ console.log("Updated schedule");
41
+ return response;
42
+ }
43
+ catch (error) {
44
+ console.error(error);
45
+ throw error;
46
+ }
47
+ });
48
+ /**
49
+ * This function is used to delete the schedule
50
+ * @param params
51
+ * @returns
52
+ */
53
+ const deleteSchedule = (params) => __awaiter(void 0, void 0, void 0, function* () {
54
+ try {
55
+ const command = new DeleteScheduleCommand(params);
56
+ const response = yield client.send(command);
57
+ console.log("Deleted schedule");
58
+ return response;
59
+ }
60
+ catch (error) {
61
+ console.error(error);
62
+ throw error;
63
+ }
64
+ });
65
+ export const Schedule = {
66
+ createSchedule,
67
+ updateSchedule,
68
+ deleteSchedule
69
+ };
70
+ //# sourceMappingURL=AWSScheduler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AWSScheduler.js","sourceRoot":"","sources":["../../../../aws/services/AWSScheduler.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAA8B,qBAAqB,EAA8B,eAAe,EAAE,qBAAqB,EAA8B,MAAM,2BAA2B,CAAC,CAAC,oBAAoB;AAE1O,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;AAElE,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAG1D;;;;GAIG;AACH,MAAM,cAAc,GAAG,CAAO,MAAkC,EAAE,EAAE;IAChE,IAAI,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACpC,OAAO,QAAQ,CAAC;IACp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ist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -35,6 +35,7 @@
35
35
  "@aws-sdk/client-pinpoint": "^3.292.0",
36
36
  "@aws-sdk/client-pinpoint-sms-voice-v2": "^3.292.0",
37
37
  "@aws-sdk/client-s3": "^3.241.0",
38
+ "@aws-sdk/client-scheduler": "^3.1088.0",
38
39
  "@aws-sdk/client-ses": "^3.844.0",
39
40
  "@aws-sdk/client-sesv2": "^3.264.0",
40
41
  "@aws-sdk/client-sns": "^3.292.0",