@trycourier/courier
Advanced tools
Comparing version 4.5.0 to 4.6.0
@@ -52,2 +52,3 @@ "use strict"; | ||
var token_management_1 = require("./token-management"); | ||
var users_1 = require("./users"); | ||
var cancelMessage = function (options) { | ||
@@ -157,4 +158,5 @@ return function (messageId) { return __awaiter(void 0, void 0, void 0, function () { | ||
send: send_1.send(options), | ||
tokenManagement: token_management_1.tokenManagement(options) | ||
tokenManagement: token_management_1.tokenManagement(options), | ||
users: users_1.users(options) | ||
}; | ||
}; |
@@ -11,2 +11,3 @@ import { ICourierClientAccounts } from "./accounts/types"; | ||
import { tokenManagement } from "./token-management"; | ||
import { users } from "./users"; | ||
export interface IInitHttpClientOptions { | ||
@@ -350,3 +351,4 @@ baseUrl: string; | ||
tokenManagement: ReturnType<typeof tokenManagement>; | ||
users: ReturnType<typeof users>; | ||
} | ||
export {}; |
{ | ||
"name": "@trycourier/courier", | ||
"version": "4.5.0", | ||
"version": "4.6.0", | ||
"description": "A node.js module for communicating with the Courier REST API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -826,2 +826,21 @@ [![Courier: Your Complete Communication Stack](https://marketing-assets-public.s3.us-west-1.amazonaws.com/github_nodejs.png)](https://courier.com) | ||
### Users | ||
#### Updating user | ||
```ts | ||
await courier.users.put("<USER_ID>", { | ||
accounts: [{ account_id: "ACCOUNT_ID", profile: { foo: "bar" } }], | ||
profile: { name: "John Doe" }, | ||
}); | ||
``` | ||
#### Updating user accounts | ||
```ts | ||
await courier.users.putAccounts("<USER_ID>", { | ||
accounts: [{ account_id: "ACCOUNT_ID", profile: { foo: "bar" } }], | ||
}); | ||
``` | ||
## License | ||
@@ -828,0 +847,0 @@ |
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
162282
59
3229
852