Skip to content

Commit

Permalink
Use customgrouping3, removed possibility to use query string
Browse files Browse the repository at this point in the history
  • Loading branch information
Duc Nguyen committed Oct 18, 2023
1 parent f39cf14 commit c31416f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## [2.0.0] - 2023-10-18
### Changed
- Removed dependencies on `http`, `bluebird`, `request`
- Use customgrouping3 instead of customgrouping for categorization

## Removed
- Possibility to use a query string

## [1.4.1] - 2022-12-12
### Changed
Expand Down
2 changes: 1 addition & 1 deletion lib/MessageApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class Message extends CMTypes.MessageEnvelope {
*/
public setMessage(to: string[], from: string, message: string, reference: string = undefined): Message {
const msg = new CMTypes.Message();
msg.customGrouping = "text-sdk-javascript";
msg.customGrouping3 = "text-sdk-javascript";
msg.from = from;
msg.body = new CMTypes.MessageBody();
msg.body.type = "AUTO";
Expand Down
11 changes: 3 additions & 8 deletions typescript-node-client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@ export class Message {
/**
* The custom grouping field is an optional field that can be used to tag messages. These tags will be used by other CM products, like the Transactions API. Despite not being immediately visible to you yet, custom groupings can already be assigned. Applying custom grouping names to messages helps filter your messages.With up to three levels of custom grouping fields that can be set, subsets of messages can be further broken down. The custom grouping name can be up to 100 characters of your choosing. It’s recommended to limit the number of unique custom groupings to 1000. Please contact support in case you would like to exceed this number.
*/
'customGrouping'?: string;
'customGrouping3'?: string;
/**
* The allowed channels field forces a message to only use certain routes. In this field you can define a list of which channels you want your message to use. Not defining any channels will be interpreted as allowing all channels.
*/
Expand Down Expand Up @@ -1964,8 +1964,8 @@ export class Message {
"type": "Array<Recipient>"
},
{
"name": "customGrouping",
"baseName": "customGrouping",
"name": "customGrouping3",
"baseName": "customGrouping3",
"type": "string"
},
{
Expand Down Expand Up @@ -2310,7 +2310,6 @@ export enum MessagesApiApiKeys {
export class MessagesApi {
protected _basePath = defaultBasePath;
protected defaultHeaders : any = {};
protected _useQuerystring : boolean = false;

protected authentications = {
'default': <Authentication>new VoidAuth(),
Expand All @@ -2329,10 +2328,6 @@ export class MessagesApi {
}
}

set useQuerystring(value: boolean) {
this._useQuerystring = value;
}

set basePath(basePath: string) {
this._basePath = basePath;
}
Expand Down

0 comments on commit c31416f

Please sign in to comment.