@trycourier/courier
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -62,3 +62,3 @@ "use strict"; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, options.httpClient.put("/profiles/" + params.profileId, { | ||
case 0: return [4 /*yield*/, options.httpClient.put("/profiles/" + params.recipientId, { | ||
profile: params.profile | ||
@@ -78,3 +78,3 @@ })]; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, options.httpClient.post("/profiles/" + params.profileId, { | ||
case 0: return [4 /*yield*/, options.httpClient.post("/profiles/" + params.recipientId, { | ||
profile: params.profile | ||
@@ -94,3 +94,3 @@ })]; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, options.httpClient.get("/profiles/" + params.profileId)]; | ||
case 0: return [4 /*yield*/, options.httpClient.get("/profiles/" + params.recipientId)]; | ||
case 1: | ||
@@ -97,0 +97,0 @@ res = _a.sent(); |
@@ -27,3 +27,3 @@ export declare type HttpMethodClient = <T>(url: string, body?: object) => Promise<{ | ||
export interface ICourierProfilePutParameters { | ||
profileId: string; | ||
recipientId: string; | ||
profile: object; | ||
@@ -35,3 +35,3 @@ } | ||
export interface ICourierProfilePostParameters { | ||
profileId: string; | ||
recipientId: string; | ||
profile: object; | ||
@@ -43,3 +43,3 @@ } | ||
export interface ICourierProfileGetParameters { | ||
profileId: string; | ||
recipientId: string; | ||
} | ||
@@ -46,0 +46,0 @@ export interface ICourierProfileGetResponse { |
{ | ||
"name": "@trycourier/courier", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A node.js module for communicating with the Courier REST API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -31,3 +31,3 @@ # `@trycourier/courier` | ||
const replaceRes = await courier.replaceProfile({ | ||
profileId: "<PROFILE_ID>", | ||
recipientId: "<PROFILE_ID>", | ||
profile: { | ||
@@ -41,3 +41,3 @@ email: "example@example.com" | ||
const mergeRes = await courier.mergeProfile({ | ||
profileId: "<PROFILE_ID>", | ||
recipientId: "<PROFILE_ID>", | ||
profile: { | ||
@@ -51,3 +51,3 @@ "sms": "555-555-5555" | ||
const { profile } = await courier.getProfile({ | ||
profileId: "<PROFILE_ID>" | ||
recipientId: "<PROFILE_ID>" | ||
}); | ||
@@ -54,0 +54,0 @@ console.log(profile); |
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
11533