Skip to content

Commit d05d7d1

Browse files
authored
Merge pull request #10 from telstra/task/attribute-error-on-msg-send
updated type message, subject should be optional
2 parents 1bde519 + d6003d5 commit d05d7d1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.3.20] - 2021-08-23
9+
10+
- Updated type Message, subject should be optional
11+
812
## [0.3.19] - 2021-07-14
913

1014
- Renamed credential key names from TELSTRA_MESSAGING_CLIENT_ID to TELSTRA_CLIENT_ID and TELSTRA_MESSAGING_CLIENT_SECRET to TELSTRA_CLIENT_SECRET

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.3.19",
2+
"version": "0.3.20",
33
"license": "Apache-2.0",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",
@@ -57,4 +57,4 @@
5757
"ajv": "^6.12.6",
5858
"axios": "^0.21.1"
5959
}
60-
}
60+
}

src/messaging/types/MessageTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type TMessage = {
4747
receiptOff?: boolean;
4848
userMsgRef?: string;
4949
type?: TMessageType;
50-
subject: string;
50+
subject?: string;
5151
MMSContent?: Array<TMMSContentObject>;
5252
};
5353

0 commit comments

Comments
 (0)