diff --git a/CHANGELOG.md b/CHANGELOG.md index f211c01..9c5ef72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [2.1.0] - 2024-06-13 +- Update global endpoint +- Fix misc urls in towards the dev docs + ## [2.0.0] - 2023-10-18 ### Added - Use `axios` to send HTTP requests diff --git a/package-lock.json b/package-lock.json index 5576e25..1497014 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@cmdotcom/text-sdk", - "version": "1.4.1", + "version": "2.1.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 75b5d12..b1af64c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cmdotcom/text-sdk", - "version": "2.0.0", + "version": "2.1.0", "description": "Package to make it very easy to send text messages with CM.com", "keywords": [ "cm", diff --git a/spec/api.spec.ts b/spec/api.spec.ts index 56f293e..e037595 100644 --- a/spec/api.spec.ts +++ b/spec/api.spec.ts @@ -10,7 +10,7 @@ import "mocha"; const nock = require('nock'); // Mocking the gateway here. beforeEach(() => { - nock('https://gw.cmtelecom.com') + nock('https://gw.messaging.cm.com') .post('/v1.0/message') .once() //Make sure we don't post twice .reply(200, (uri, requestBody) => { diff --git a/typescript-node-client/api.ts b/typescript-node-client/api.ts index 5891d89..c15804f 100644 --- a/typescript-node-client/api.ts +++ b/typescript-node-client/api.ts @@ -12,7 +12,7 @@ import axios = require('axios'); -let defaultBasePath = 'https://gw.cmtelecom.com'; +let defaultBasePath = 'https://gw.messaging.cm.com'; // =============================================== // This file is autogenerated - Please do not edit @@ -1871,7 +1871,7 @@ export class WhatsappTemplate { */ export class Authentication { /** - * Required: This is the product token for authentication. Visit https://gateway.cmtelecom.com to retrieve your product token. Example: 00000000-0000-0000-0000-000000000000' + * Required: This is the product token for authentication. Visit https://gateway.cm.com to retrieve your product token. Example: 00000000-0000-0000-0000-000000000000' */ 'productToken'?: string; @@ -2061,7 +2061,7 @@ export class MessageResponse { */ 'messageDetails'?: string; /** - * The error code, see https://docs.cmtelecom.com/all-messaging-api/v1.0#send_a_message|responses_&_errors for more details. + * The error code, see https://developers.cm.com/messaging/docs/responses-errors-json for more details. */ 'messageErrorCode'?: number; @@ -2145,7 +2145,7 @@ export class MessagesResponse { */ 'details'?: string; /** - * The error code, see https://docs.cmtelecom.com/all-messaging-api/v1.0#send_a_message|responses_&_errors for more details. + * The error code, see https://developers.cm.com/messaging/docs/responses-errors-json for more details. */ 'errorCode'?: number; /**