@proficient/client
Advanced tools
Comparing version 0.3.2 to 0.4.0
export { Proficient } from './Proficient'; | ||
export type { ApiCredentials } from './types'; | ||
export type { Agent, Interaction, InteractionCreateParams, InteractionParticipant, Message, MessageCreateParams, MessageResendParams, MessageSendResponse, } from '@proficient/api'; | ||
export type { Agent, Interaction, InteractionCreateParams, InteractionParticipant, Message, MessageCreateParams, MessageReplyParams, } from '@proficient/api'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -58,2 +58,3 @@ "use strict"; | ||
this.axiosInstance = axios_1.default.create({ | ||
// TODO: Update | ||
baseURL: 'http://localhost:8080/client', | ||
@@ -60,0 +61,0 @@ headers: __assign({ 'Content-Type': 'application/json', 'X-PROFICIENT-API-KEY': credentials.apiKey, 'X-PROFICIENT-USER-EXTERNAL-ID': credentials.userExternalId }, (credentials.userHmac ? { 'X-PROFICIENT-USER-HMAC': credentials.userHmac } : {})), |
@@ -1,2 +0,2 @@ | ||
import type { ClientApi, MessageCreateParams } from '@proficient/api'; | ||
import type { ClientApi, MessageCreateParams, MessageReplyParams } from '@proficient/api'; | ||
import type { RequestSender } from '../RequestSender'; | ||
@@ -11,4 +11,5 @@ export declare class Messages { | ||
get(messageId: string): Promise<import("@proficient/api").Message>; | ||
create(params: MessageCreateParams): Promise<import("@proficient/api").MessageSendResponse>; | ||
create(params: MessageCreateParams): Promise<import("@proficient/api").Message>; | ||
reply(messageId: string, params: MessageReplyParams): Promise<import("@proficient/api").Message>; | ||
} | ||
//# sourceMappingURL=Messages.d.ts.map |
@@ -59,3 +59,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var resource; | ||
var response; | ||
return __generator(this, function (_a) { | ||
@@ -65,4 +65,4 @@ switch (_a.label) { | ||
case 1: | ||
resource = _a.sent(); | ||
return [2 /*return*/, resource]; | ||
response = _a.sent(); | ||
return [2 /*return*/, response]; | ||
} | ||
@@ -74,3 +74,3 @@ }); | ||
return __awaiter(this, void 0, void 0, function () { | ||
var resource; | ||
var response; | ||
return __generator(this, function (_a) { | ||
@@ -80,4 +80,4 @@ switch (_a.label) { | ||
case 1: | ||
resource = _a.sent(); | ||
return [2 /*return*/, resource]; | ||
response = _a.sent(); | ||
return [2 /*return*/, response]; | ||
} | ||
@@ -87,4 +87,17 @@ }); | ||
}; | ||
Messages.prototype.reply = function (messageId, params) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var response; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.rs.post("/messages/".concat(messageId, "/reply"), params)]; | ||
case 1: | ||
response = _a.sent(); | ||
return [2 /*return*/, response]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return Messages; | ||
}()); | ||
exports.Messages = Messages; |
{ | ||
"name": "@proficient/client", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"main": "./dist/index.js", | ||
@@ -24,3 +24,3 @@ "source": "./src/index.ts", | ||
"dependencies": { | ||
"@proficient/api": "0.15.1", | ||
"@proficient/api": "0.16.0", | ||
"axios": "^1.3.2" | ||
@@ -27,0 +27,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26595
475
+ Added@proficient/api@0.16.0(transitive)
- Removed@proficient/api@0.15.1(transitive)
Updated@proficient/api@0.16.0