@proficient/client
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -1,2 +0,2 @@ | ||
import type { ClientApi, InteractionCreateParams } from '@proficient/api'; | ||
import type { ClientApi, InteractionCreateParams, InteractionUpdateParams } from '@proficient/api'; | ||
import type { RequestSender } from '../RequestSender'; | ||
@@ -15,4 +15,5 @@ export declare class Interactions { | ||
}>; | ||
update(interactionId: string, params: InteractionUpdateParams): Promise<import("@proficient/api").Interaction>; | ||
delete(interactionId: string): Promise<import("@proficient/api").Interaction>; | ||
} | ||
//# sourceMappingURL=Interactions.d.ts.map |
@@ -80,2 +80,12 @@ "use strict"; | ||
}; | ||
Interactions.prototype.update = function (interactionId, params) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.rs.post("/interactions/".concat(interactionId), params)]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Interactions.prototype.delete = function (interactionId) { | ||
@@ -82,0 +92,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@proficient/client", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"main": "./dist/index.js", | ||
@@ -24,3 +24,3 @@ "source": "./src/index.ts", | ||
"dependencies": { | ||
"@proficient/api": "0.20.0", | ||
"@proficient/api": "0.21.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
27962
500
+ Added@proficient/api@0.21.0(transitive)
- Removed@proficient/api@0.20.0(transitive)
Updated@proficient/api@0.21.0