@payhos/api 2.0.6 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/model.d.ts +6 -2
  2. package/package.json +1 -1
package/model.d.ts CHANGED
@@ -8,12 +8,16 @@ export interface ApiResponse<T> {
8
8
  export interface Map<T> {
9
9
  [key: string]: T;
10
10
  }
11
+ export interface RecipientItem {
12
+ email: string;
13
+ name?: string;
14
+ }
11
15
  export interface EmailOpts {
12
- recipients: string[];
16
+ recipients: RecipientItem[];
13
17
  subject: string;
14
18
  text?: string;
15
19
  html?: string;
16
- sender: string;
20
+ sender: RecipientItem;
17
21
  attachments?: string[];
18
22
  }
19
23
  export interface SMSOpts {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@payhos/api",
3
3
  "description": "An API package for payhos's API built for JavaScript and Typescript developers",
4
- "version": "2.0.6",
4
+ "version": "2.1.0",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
7
7
  "scripts": {