chatbot-nc 1.0.21 → 1.0.23
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.
- package/dist/cjs/aws/index.d.ts +3 -0
- package/dist/cjs/aws/services/AWSConnect.d.ts +8 -1
- package/dist/cjs/aws/services/AWSConnect.js +21 -2
- package/dist/cjs/aws/services/AWSConnect.js.map +1 -1
- package/dist/cjs/aws/services/AWSConnectCases.d.ts +2 -1
- package/dist/cjs/aws/services/AWSConnectCases.js +18 -0
- package/dist/cjs/aws/services/AWSConnectCases.js.map +1 -1
- package/dist/cjs/aws/services/AWSCustomerProfiles.d.ts +2 -1
- package/dist/cjs/aws/services/AWSCustomerProfiles.js +19 -1
- package/dist/cjs/aws/services/AWSCustomerProfiles.js.map +1 -1
- package/dist/esm/aws/index.d.ts +3 -0
- package/dist/esm/aws/services/AWSConnect.d.ts +8 -1
- package/dist/esm/aws/services/AWSConnect.js +19 -1
- package/dist/esm/aws/services/AWSConnect.js.map +1 -1
- package/dist/esm/aws/services/AWSConnectCases.d.ts +2 -1
- package/dist/esm/aws/services/AWSConnectCases.js +19 -1
- package/dist/esm/aws/services/AWSConnectCases.js.map +1 -1
- package/dist/esm/aws/services/AWSCustomerProfiles.d.ts +2 -1
- package/dist/esm/aws/services/AWSCustomerProfiles.js +20 -2
- package/dist/esm/aws/services/AWSCustomerProfiles.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/aws/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const AWS: {
|
|
|
47
47
|
getContact: (instanceId: string, CID: string) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput | null>;
|
|
48
48
|
startChatContact: (params: import("@aws-sdk/client-connect").StartChatContactCommandInput) => Promise<import("@aws-sdk/client-connect").StartChatContactCommandOutput>;
|
|
49
49
|
startContactStreaming: (params: import("@aws-sdk/client-connect").StartContactStreamingCommandInput) => Promise<import("@aws-sdk/client-connect").StartContactStreamingCommandOutput>;
|
|
50
|
+
getContactAttributes: (params: import("@aws-sdk/client-connect").GetContactAttributesCommandInput) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput>;
|
|
50
51
|
};
|
|
51
52
|
ConnectParticipant: {
|
|
52
53
|
createParticipant: (param: import("@aws-sdk/client-connectparticipant").CreateParticipantConnectionCommandInput) => Promise<import("@aws-sdk/client-connectparticipant").CreateParticipantConnectionCommandOutput>;
|
|
@@ -61,8 +62,10 @@ export declare const AWS: {
|
|
|
61
62
|
};
|
|
62
63
|
CustomerProfile: {
|
|
63
64
|
createCustomerProfile: (params: import("@aws-sdk/client-customer-profiles").CreateProfileCommandInput) => Promise<import("@aws-sdk/client-customer-profiles").CreateProfileCommandOutput | undefined>;
|
|
65
|
+
searchCustomerProfile: (params: import("@aws-sdk/client-customer-profiles").SearchProfilesCommandInput) => Promise<import("@aws-sdk/client-customer-profiles").SearchProfilesCommandOutput | undefined>;
|
|
64
66
|
};
|
|
65
67
|
ConnectCases: {
|
|
66
68
|
createCase: (params: import("@aws-sdk/client-connectcases").CreateCaseCommandInput) => Promise<import("@aws-sdk/client-connectcases").CreateCaseCommandOutput | undefined>;
|
|
69
|
+
getCase: (params: import("@aws-sdk/client-connectcases").SearchCasesCommandInput) => Promise<import("@aws-sdk/client-connectcases").SearchCasesCommandOutput | undefined>;
|
|
67
70
|
};
|
|
68
71
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { StartChatContactCommandInput, StartContactStreamingCommandInput } from "@aws-sdk/client-connect";
|
|
1
|
+
import { StartChatContactCommandInput, StartContactStreamingCommandInput, GetContactAttributesCommandInput } from "@aws-sdk/client-connect";
|
|
2
|
+
/**
|
|
3
|
+
* This is used to get Contact Attribute.
|
|
4
|
+
* @param params parameters to get contact attribute
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare const getContactAttributes: (params: GetContactAttributesCommandInput) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput>;
|
|
2
8
|
export declare const Connect: {
|
|
3
9
|
getContact: (instanceId: string, CID: string) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput | null>;
|
|
4
10
|
startChatContact: (params: StartChatContactCommandInput) => Promise<import("@aws-sdk/client-connect").StartChatContactCommandOutput>;
|
|
5
11
|
startContactStreaming: (params: StartContactStreamingCommandInput) => Promise<import("@aws-sdk/client-connect").StartContactStreamingCommandOutput>;
|
|
12
|
+
getContactAttributes: (params: GetContactAttributesCommandInput) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput>;
|
|
6
13
|
};
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Connect = void 0;
|
|
12
|
+
exports.Connect = exports.getContactAttributes = void 0;
|
|
13
13
|
const client_connect_1 = require("@aws-sdk/client-connect");
|
|
14
14
|
const awsRegion = process.env.AWS_DEFAULT_REGION || 'us-east-1';
|
|
15
15
|
const client = new client_connect_1.ConnectClient({
|
|
@@ -74,9 +74,28 @@ const startContactStreaming = (params) => __awaiter(void 0, void 0, void 0, func
|
|
|
74
74
|
throw error;
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
+
/**
|
|
78
|
+
* This is used to get Contact Attribute.
|
|
79
|
+
* @param params parameters to get contact attribute
|
|
80
|
+
* @returns
|
|
81
|
+
*/
|
|
82
|
+
const getContactAttributes = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
83
|
+
try {
|
|
84
|
+
const command = new client_connect_1.GetContactAttributesCommand(params);
|
|
85
|
+
const response = yield client.send(command);
|
|
86
|
+
console.log('contact Attributes ' + response);
|
|
87
|
+
return response;
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
console.error(error);
|
|
91
|
+
throw new Error('error in aws sdk');
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
exports.getContactAttributes = getContactAttributes;
|
|
77
95
|
exports.Connect = {
|
|
78
96
|
getContact,
|
|
79
97
|
startChatContact,
|
|
80
|
-
startContactStreaming
|
|
98
|
+
startContactStreaming,
|
|
99
|
+
getContactAttributes: exports.getContactAttributes
|
|
81
100
|
};
|
|
82
101
|
//# sourceMappingURL=AWSConnect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSConnect.js","sourceRoot":"","sources":["../../../../aws/services/AWSConnect.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"AWSConnect.js","sourceRoot":"","sources":["../../../../aws/services/AWSConnect.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4DAA+O;AAE/O,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAEhE,MAAM,MAAM,GAAG,IAAI,8BAAa,CAAC;IAC7B,MAAM,EAAE,SAAS;CACpB,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,UAAU,GAAG,CAAO,UAAiB,EAAC,GAAU,EAAE,EAAE;IACtD,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACjC,IAAI;QACA,MAAM,KAAK,GAAE;YACT,UAAU,EAAC,UAAU;YACrB,gBAAgB,EAAC,GAAG;SACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAC,KAAK,CAAC,CAAC;QACnD,MAAM,OAAO,GAAG,IAAI,4CAA2B,CAAC,KAAK,CAAC,CAAC;QACvD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,qBAAqB,GAAG,QAAQ,CAAC,CAAC;QAE9C,OAAO,QAAQ,CAAC;KAEnB;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAClB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G,QAAQ,CAAC,CAAC;QAC9C,OAAO,QAAQ,CAAC;KACnB;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;KACtC;AACL,CAAC,CAAA,CAAA;AAVY,QAAA,oBAAoB,wBAUhC;AAEY,QAAA,OAAO,GAAG;IACnB,UAAU;IACV,gBAAgB;IAChB,qBAAqB;IACrB,oBAAoB,EAApB,4BAAoB;CACvB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CreateCaseCommandInput } from "@aws-sdk/client-connectcases";
|
|
1
|
+
import { CreateCaseCommandInput, SearchCasesCommandInput } from "@aws-sdk/client-connectcases";
|
|
2
2
|
export declare const ConnectCases: {
|
|
3
3
|
createCase: (params: CreateCaseCommandInput) => Promise<import("@aws-sdk/client-connectcases").CreateCaseCommandOutput | undefined>;
|
|
4
|
+
getCase: (params: SearchCasesCommandInput) => Promise<import("@aws-sdk/client-connectcases").SearchCasesCommandOutput | undefined>;
|
|
4
5
|
};
|
|
@@ -30,7 +30,25 @@ const createCase = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
30
30
|
console.log("Error into create the case");
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
+
/**
|
|
34
|
+
* Get Case is used to get single case in AWS Connect
|
|
35
|
+
* @param params Parameter to create the new case
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
const getCase = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
try {
|
|
40
|
+
const command = new client_connectcases_1.SearchCasesCommand(params);
|
|
41
|
+
const data = yield client.send(command);
|
|
42
|
+
console.log("get case response: ", data);
|
|
43
|
+
return data;
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
console.log(error);
|
|
47
|
+
console.log("Error into create the case");
|
|
48
|
+
}
|
|
49
|
+
});
|
|
33
50
|
exports.ConnectCases = {
|
|
34
51
|
createCase,
|
|
52
|
+
getCase
|
|
35
53
|
};
|
|
36
54
|
//# sourceMappingURL=AWSConnectCases.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSConnectCases.js","sourceRoot":"","sources":["../../../../aws/services/AWSConnectCases.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"AWSConnectCases.js","sourceRoot":"","sources":["../../../../aws/services/AWSConnectCases.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAA0J;AAEzJ,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAChE,MAAM,MAAM,GAAG,IAAI,wCAAkB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,UAAU,GAAG,CAAO,MAA8B,EAAE,EAAE;IACzD,IAAI;QAED,MAAM,OAAO,GAAG,IAAI,uCAAiB,CAAC,MAAM,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAC,IAAI,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;KACd;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;KAC5C;AACJ,CAAC,CAAA,CAAA;AAED;;;;GAIG;AACH,MAAM,OAAO,GAAG,CAAO,MAA+B,EAAE,EAAE;IACxD,IAAI;QAED,MAAM,OAAO,GAAG,IAAI,wCAAkB,CAAC,MAAM,CAAC,CAAC;QAC/C,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAC,IAAI,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC;KACd;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;KAC5C;AACJ,CAAC,CAAA,CAAA;AAKa,QAAA,YAAY,GAAG;IACzB,UAAU;IACV,OAAO;CACT,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CreateProfileCommandInput } from "@aws-sdk/client-customer-profiles";
|
|
1
|
+
import { CreateProfileCommandInput, SearchProfilesCommandInput } from "@aws-sdk/client-customer-profiles";
|
|
2
2
|
export declare const CustomerProfile: {
|
|
3
3
|
createCustomerProfile: (params: CreateProfileCommandInput) => Promise<import("@aws-sdk/client-customer-profiles").CreateProfileCommandOutput | undefined>;
|
|
4
|
+
searchCustomerProfile: (params: SearchProfilesCommandInput) => Promise<import("@aws-sdk/client-customer-profiles").SearchProfilesCommandOutput | undefined>;
|
|
4
5
|
};
|
|
@@ -30,7 +30,25 @@ const createCustomerProfile = (params) => __awaiter(void 0, void 0, void 0, func
|
|
|
30
30
|
console.log("Error into create the profile");
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
+
/**
|
|
34
|
+
* Get Customer Profile for customer in AWS Connect
|
|
35
|
+
* @param params Parameter to create the new profile
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
const searchCustomerProfile = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
try {
|
|
40
|
+
const command = new client_customer_profiles_1.SearchProfilesCommand(params);
|
|
41
|
+
const data = yield client.send(command);
|
|
42
|
+
console.log('Get profile response: ', data);
|
|
43
|
+
return data;
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
console.log(error);
|
|
47
|
+
console.log("Error into create the profile");
|
|
48
|
+
}
|
|
49
|
+
});
|
|
33
50
|
exports.CustomerProfile = {
|
|
34
|
-
createCustomerProfile
|
|
51
|
+
createCustomerProfile,
|
|
52
|
+
searchCustomerProfile
|
|
35
53
|
};
|
|
36
54
|
//# sourceMappingURL=AWSCustomerProfiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSCustomerProfiles.js","sourceRoot":"","sources":["../../../../aws/services/AWSCustomerProfiles.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"AWSCustomerProfiles.js","sourceRoot":"","sources":["../../../../aws/services/AWSCustomerProfiles.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gFAAgL;AAE/K,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAChE,MAAM,MAAM,GAAG,IAAI,iDAAsB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,qBAAqB,GAAG,CAAO,MAAiC,EAAE,EAAE;IACvE,IAAI;QAED,MAAM,OAAO,GAAG,IAAI,+CAAoB,CAAC,MAAM,CAAC,CAAC;QACjD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAC,IAAI,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC;KAEd;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;KAC/C;AACJ,CAAC,CAAA,CAAA;AAEA;;;;EAIE;AACF,MAAM,qBAAqB,GAAG,CAAO,MAAkC,EAAE,EAAE;IAC1E,IAAI;QAED,MAAM,OAAO,GAAG,IAAI,gDAAqB,CAAC,MAAM,CAAC,CAAC;QAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAC,IAAI,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC;KAEd;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;KAC/C;AACJ,CAAC,CAAA,CAAA;AAEa,QAAA,eAAe,GAAG;IAC5B,qBAAqB;IACrB,qBAAqB;CACvB,CAAA"}
|
package/dist/esm/aws/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const AWS: {
|
|
|
47
47
|
getContact: (instanceId: string, CID: string) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput | null>;
|
|
48
48
|
startChatContact: (params: import("@aws-sdk/client-connect").StartChatContactCommandInput) => Promise<import("@aws-sdk/client-connect").StartChatContactCommandOutput>;
|
|
49
49
|
startContactStreaming: (params: import("@aws-sdk/client-connect").StartContactStreamingCommandInput) => Promise<import("@aws-sdk/client-connect").StartContactStreamingCommandOutput>;
|
|
50
|
+
getContactAttributes: (params: import("@aws-sdk/client-connect").GetContactAttributesCommandInput) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput>;
|
|
50
51
|
};
|
|
51
52
|
ConnectParticipant: {
|
|
52
53
|
createParticipant: (param: import("@aws-sdk/client-connectparticipant").CreateParticipantConnectionCommandInput) => Promise<import("@aws-sdk/client-connectparticipant").CreateParticipantConnectionCommandOutput>;
|
|
@@ -61,8 +62,10 @@ export declare const AWS: {
|
|
|
61
62
|
};
|
|
62
63
|
CustomerProfile: {
|
|
63
64
|
createCustomerProfile: (params: import("@aws-sdk/client-customer-profiles").CreateProfileCommandInput) => Promise<import("@aws-sdk/client-customer-profiles").CreateProfileCommandOutput | undefined>;
|
|
65
|
+
searchCustomerProfile: (params: import("@aws-sdk/client-customer-profiles").SearchProfilesCommandInput) => Promise<import("@aws-sdk/client-customer-profiles").SearchProfilesCommandOutput | undefined>;
|
|
64
66
|
};
|
|
65
67
|
ConnectCases: {
|
|
66
68
|
createCase: (params: import("@aws-sdk/client-connectcases").CreateCaseCommandInput) => Promise<import("@aws-sdk/client-connectcases").CreateCaseCommandOutput | undefined>;
|
|
69
|
+
getCase: (params: import("@aws-sdk/client-connectcases").SearchCasesCommandInput) => Promise<import("@aws-sdk/client-connectcases").SearchCasesCommandOutput | undefined>;
|
|
67
70
|
};
|
|
68
71
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { StartChatContactCommandInput, StartContactStreamingCommandInput } from "@aws-sdk/client-connect";
|
|
1
|
+
import { StartChatContactCommandInput, StartContactStreamingCommandInput, GetContactAttributesCommandInput } from "@aws-sdk/client-connect";
|
|
2
|
+
/**
|
|
3
|
+
* This is used to get Contact Attribute.
|
|
4
|
+
* @param params parameters to get contact attribute
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare const getContactAttributes: (params: GetContactAttributesCommandInput) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput>;
|
|
2
8
|
export declare const Connect: {
|
|
3
9
|
getContact: (instanceId: string, CID: string) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput | null>;
|
|
4
10
|
startChatContact: (params: StartChatContactCommandInput) => Promise<import("@aws-sdk/client-connect").StartChatContactCommandOutput>;
|
|
5
11
|
startContactStreaming: (params: StartContactStreamingCommandInput) => Promise<import("@aws-sdk/client-connect").StartContactStreamingCommandOutput>;
|
|
12
|
+
getContactAttributes: (params: GetContactAttributesCommandInput) => Promise<import("@aws-sdk/client-connect").GetContactAttributesCommandOutput>;
|
|
6
13
|
};
|
|
@@ -71,9 +71,27 @@ const startContactStreaming = (params) => __awaiter(void 0, void 0, void 0, func
|
|
|
71
71
|
throw error;
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
+
/**
|
|
75
|
+
* This is used to get Contact Attribute.
|
|
76
|
+
* @param params parameters to get contact attribute
|
|
77
|
+
* @returns
|
|
78
|
+
*/
|
|
79
|
+
export const getContactAttributes = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
80
|
+
try {
|
|
81
|
+
const command = new GetContactAttributesCommand(params);
|
|
82
|
+
const response = yield client.send(command);
|
|
83
|
+
console.log('contact Attributes ' + response);
|
|
84
|
+
return response;
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
console.error(error);
|
|
88
|
+
throw new Error('error in aws sdk');
|
|
89
|
+
}
|
|
90
|
+
});
|
|
74
91
|
export const Connect = {
|
|
75
92
|
getContact,
|
|
76
93
|
startChatContact,
|
|
77
|
-
startContactStreaming
|
|
94
|
+
startContactStreaming,
|
|
95
|
+
getContactAttributes
|
|
78
96
|
};
|
|
79
97
|
//# sourceMappingURL=AWSConnect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSConnect.js","sourceRoot":"","sources":["../../../../aws/services/AWSConnect.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,uBAAuB,EAAgC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"AWSConnect.js","sourceRoot":"","sources":["../../../../aws/services/AWSConnect.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,uBAAuB,EAAgC,4BAA4B,EAAuE,MAAM,yBAAyB,CAAC;AAE/O,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAEhE,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC;IAC7B,MAAM,EAAE,SAAS;CACpB,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,UAAU,GAAG,CAAO,UAAiB,EAAC,GAAU,EAAE,EAAE;IACtD,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACjC,IAAI;QACA,MAAM,KAAK,GAAE;YACT,UAAU,EAAC,UAAU;YACrB,gBAAgB,EAAC,GAA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KAEnB;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAClB,MAAM,KAAK,CAAC;KACf;AACL,CAAC,CAAA,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAC,CAAO,MAAuC,EAAC,EAAE;IAC/E,IAAI;QACA,MAAM,OAAO,GAAG,IAAI,2BAA2B,CAAC,MAAM,CAAC,CAAC;QACxD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,qBAAqB,GAAG,QAAQ,CAAC,CAAC;QAC9C,OAAO,QAAQ,CAAC;KACnB;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;KACtC;AACL,CAAC,CAAA,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,UAAU;IACV,gBAAgB;IAChB,qBAAqB;IACrB,oBAAoB;CACvB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CreateCaseCommandInput } from "@aws-sdk/client-connectcases";
|
|
1
|
+
import { CreateCaseCommandInput, SearchCasesCommandInput } from "@aws-sdk/client-connectcases";
|
|
2
2
|
export declare const ConnectCases: {
|
|
3
3
|
createCase: (params: CreateCaseCommandInput) => Promise<import("@aws-sdk/client-connectcases").CreateCaseCommandOutput | undefined>;
|
|
4
|
+
getCase: (params: SearchCasesCommandInput) => Promise<import("@aws-sdk/client-connectcases").SearchCasesCommandOutput | undefined>;
|
|
4
5
|
};
|
|
@@ -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 { ConnectCasesClient, CreateCaseCommand } from "@aws-sdk/client-connectcases";
|
|
10
|
+
import { ConnectCasesClient, CreateCaseCommand, SearchCasesCommand } from "@aws-sdk/client-connectcases";
|
|
11
11
|
const awsRegion = process.env.AWS_DEFAULT_REGION || 'us-east-1';
|
|
12
12
|
const client = new ConnectCasesClient({ region: awsRegion });
|
|
13
13
|
/**
|
|
@@ -27,7 +27,25 @@ const createCase = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
27
27
|
console.log("Error into create the case");
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
+
/**
|
|
31
|
+
* Get Case is used to get single case in AWS Connect
|
|
32
|
+
* @param params Parameter to create the new case
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
const getCase = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
|
+
try {
|
|
37
|
+
const command = new SearchCasesCommand(params);
|
|
38
|
+
const data = yield client.send(command);
|
|
39
|
+
console.log("get case response: ", data);
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
console.log(error);
|
|
44
|
+
console.log("Error into create the case");
|
|
45
|
+
}
|
|
46
|
+
});
|
|
30
47
|
export const ConnectCases = {
|
|
31
48
|
createCase,
|
|
49
|
+
getCase
|
|
32
50
|
};
|
|
33
51
|
//# sourceMappingURL=AWSConnectCases.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSConnectCases.js","sourceRoot":"","sources":["../../../../aws/services/AWSConnectCases.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAA0B,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"AWSConnectCases.js","sourceRoot":"","sources":["../../../../aws/services/AWSConnectCases.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAA0B,kBAAkB,EAA2B,MAAM,8BAA8B,CAAC;AAEzJ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{ CreateProfileCommandInput, SearchProfilesCommandInput } from "@aws-sdk/client-customer-profiles";
|
|
2
2
|
export declare const CustomerProfile: {
|
|
3
3
|
createCustomerProfile: (params: CreateProfileCommandInput) => Promise<import("@aws-sdk/client-customer-profiles").CreateProfileCommandOutput | undefined>;
|
|
4
|
+
searchCustomerProfile: (params: SearchProfilesCommandInput) => Promise<import("@aws-sdk/client-customer-profiles").SearchProfilesCommandOutput | undefined>;
|
|
4
5
|
};
|
|
@@ -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 { CustomerProfilesClient, CreateProfileCommand } from "@aws-sdk/client-customer-profiles";
|
|
10
|
+
import { CustomerProfilesClient, CreateProfileCommand, SearchProfilesCommand, } from "@aws-sdk/client-customer-profiles";
|
|
11
11
|
const awsRegion = process.env.AWS_DEFAULT_REGION || 'us-east-1';
|
|
12
12
|
const client = new CustomerProfilesClient({ region: awsRegion });
|
|
13
13
|
/**
|
|
@@ -27,7 +27,25 @@ const createCustomerProfile = (params) => __awaiter(void 0, void 0, void 0, func
|
|
|
27
27
|
console.log("Error into create the profile");
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
+
/**
|
|
31
|
+
* Get Customer Profile for customer in AWS Connect
|
|
32
|
+
* @param params Parameter to create the new profile
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
const searchCustomerProfile = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
|
+
try {
|
|
37
|
+
const command = new SearchProfilesCommand(params);
|
|
38
|
+
const data = yield client.send(command);
|
|
39
|
+
console.log('Get profile response: ', data);
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
console.log(error);
|
|
44
|
+
console.log("Error into create the profile");
|
|
45
|
+
}
|
|
46
|
+
});
|
|
30
47
|
export const CustomerProfile = {
|
|
31
|
-
createCustomerProfile
|
|
48
|
+
createCustomerProfile,
|
|
49
|
+
searchCustomerProfile
|
|
32
50
|
};
|
|
33
51
|
//# sourceMappingURL=AWSCustomerProfiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSCustomerProfiles.js","sourceRoot":"","sources":["../../../../aws/services/AWSCustomerProfiles.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAA6B,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"AWSCustomerProfiles.js","sourceRoot":"","sources":["../../../../aws/services/AWSCustomerProfiles.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAA6B,qBAAqB,GAA+B,MAAM,mCAAmC,CAAC;AAE/K,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAChE,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,qBAAqB,GAAG,CAAO,MAAiC,EAAE,EAAE;IACvE,IAAI;QAED,MAAM,OAAO,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACjD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAC,IAAI,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC;KAEd;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;KAC/C;AACJ,CAAC,CAAA,CAAA;AAEA;;;;EAIE;AACF,MAAM,qBAAqB,GAAG,CAAO,MAAkC,EAAE,EAAE;IAC1E,I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