@proficient/client
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -1,2 +0,2 @@ | ||
import type { ClientApi, MessageCreateParams, MessageReplyParams } from '@proficient/api'; | ||
import type { ClientApi, MessageCreateParams, MessageReplyParams, MessageResetParams } from '@proficient/api'; | ||
import type { RequestSender } from '../RequestSender'; | ||
@@ -12,4 +12,5 @@ export declare class Messages { | ||
create(params: MessageCreateParams): Promise<import("@proficient/api").Message>; | ||
reset(messageId: string, params: MessageResetParams): Promise<import("@proficient/api").Message>; | ||
reply(messageId: string, params: MessageReplyParams): Promise<import("@proficient/api").Message>; | ||
} | ||
//# sourceMappingURL=Messages.d.ts.map |
@@ -83,2 +83,15 @@ "use strict"; | ||
}; | ||
Messages.prototype.reset = 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), params)]; | ||
case 1: | ||
response = _a.sent(); | ||
return [2 /*return*/, response]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Messages.prototype.reply = function (messageId, params) { | ||
@@ -85,0 +98,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@proficient/client", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"main": "./dist/index.js", | ||
@@ -24,3 +24,3 @@ "source": "./src/index.ts", | ||
"dependencies": { | ||
"@proficient/api": "0.16.0", | ||
"@proficient/api": "0.17.0", | ||
"axios": "^1.3.2" | ||
@@ -27,0 +27,0 @@ }, |
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
27308
489
+ Added@proficient/api@0.17.0(transitive)
- Removed@proficient/api@0.16.0(transitive)
Updated@proficient/api@0.17.0