From 944d98ffae4f2f38c0260d5efe9d33ccf2d25a7b Mon Sep 17 00:00:00 2001 From: Antoine Sein Date: Wed, 20 Mar 2024 11:36:31 +0100 Subject: [PATCH] DEVEXP-308: Prepare release 0.0.3 with Fax API --- .../integrated-flows-examples/package.json | 2 +- examples/simple-examples/package.json | 2 +- examples/webhooks/package.json | 2 +- packages/conversation/CHANGELOG.md | 26 ++++++++++++++++++- packages/conversation/package.json | 4 +-- packages/fax/CHANGELOG.md | 6 ++++- packages/fax/package.json | 4 +-- packages/numbers/CHANGELOG.md | 12 ++++++--- packages/numbers/package.json | 4 +-- packages/sdk-client/CHANGELOG.md | 17 +++++++----- packages/sdk-client/package.json | 2 +- packages/sdk-core/CHANGELOG.md | 24 +++++++++++++---- packages/sdk-core/package.json | 14 +++++----- packages/sms/CHANGELOG.md | 14 +++++++--- packages/sms/package.json | 4 +-- packages/verification/CHANGELOG.md | 15 +++++++---- packages/verification/package.json | 4 +-- packages/voice/CHANGELOG.md | 17 ++++++++---- packages/voice/package.json | 4 +-- 19 files changed, 122 insertions(+), 55 deletions(-) diff --git a/examples/integrated-flows-examples/package.json b/examples/integrated-flows-examples/package.json index d1c1b797..97e1234a 100644 --- a/examples/integrated-flows-examples/package.json +++ b/examples/integrated-flows-examples/package.json @@ -13,7 +13,7 @@ "verification:app": "yarn compile && node dist/verification/app.js" }, "dependencies": { - "@sinch/sdk-core": "^0.0.2", + "@sinch/sdk-core": "^0.0.3", "@types/node": "^20.8.7", "dotenv": "^16.3.1", "inquirer": "^9.2.14", diff --git a/examples/simple-examples/package.json b/examples/simple-examples/package.json index b85dc5eb..72c15db6 100644 --- a/examples/simple-examples/package.json +++ b/examples/simple-examples/package.json @@ -138,7 +138,7 @@ "voice:conferences:kickAll": "ts-node src/voice/conferences/kickAll.ts" }, "dependencies": { - "@sinch/sdk-core": "^0.0.2", + "@sinch/sdk-core": "^0.0.3", "dotenv": "^16.3.1" }, "devDependencies": { diff --git a/examples/webhooks/package.json b/examples/webhooks/package.json index 6c0b57f4..eefdd190 100644 --- a/examples/webhooks/package.json +++ b/examples/webhooks/package.json @@ -15,7 +15,7 @@ "@nestjs/common": "^10.3.0", "@nestjs/core": "^10.3.0", "@nestjs/platform-express": "^10.3.0", - "@sinch/sdk-core": "^0.0.2", + "@sinch/sdk-core": "^0.0.3", "dotenv": "^16.3.1", "raw-body": "^2.5.2", "reflect-metadata": "^0.1.13", diff --git a/packages/conversation/CHANGELOG.md b/packages/conversation/CHANGELOG.md index d3694e45..5f7b9593 100644 --- a/packages/conversation/CHANGELOG.md +++ b/packages/conversation/CHANGELOG.md @@ -1,4 +1,28 @@ -# Version 0.0.2 +## Version 0.0.3 + - [Feature] Add support for `contact_message_event` for the `injectEvent()` method in the conversation domain + - [Feature] Add composed methods for sending a message: + - `sendCardMessage()` + - `sendCarouselMessage()` + - `sendChoiceMessage()` + - `sendContactInfoMessage()` + - `sendListMessage()` + - `sendLocationMessage()` + - `sendMediaMessage()` + - `sendTemplateMessage()` + - `sendTextMessage()` + - [Feature] Add composed methods for sending an event: + - `sendComposingEvent()` + - `sendComposingEndEvent()` + - `sendCommentReplyEvent()` + - `sendAgentJoinedEvent()` + - `sendAgentLeftEvent()` + - `sendGenericEvent()` + - [Bugfix] Improve `oneOf` handling from the OpenAPI Specification: objects are now mutually exclusive. + - [Feature][Breaking] Remove support for SMS credentials + - [Tech] Conversation callback events models: factorize common properties in a super interface + - [Tech] Update dependency `@sinch/sdk-client` to `0.0.3` + +## Version 0.0.2 - Initial version. Support for: - Conversation App management diff --git a/packages/conversation/package.json b/packages/conversation/package.json index e184afc7..3339d9d7 100644 --- a/packages/conversation/package.json +++ b/packages/conversation/package.json @@ -1,6 +1,6 @@ { "name": "@sinch/conversation", - "version": "0.0.2", + "version": "0.0.3", "description": "Sinch Conversation API", "homepage": "", "repository": { @@ -28,7 +28,7 @@ "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo" }, "dependencies": { - "@sinch/sdk-client": "^0.0.2" + "@sinch/sdk-client": "^0.0.3" }, "devDependencies": {}, "publishConfig": { diff --git a/packages/fax/CHANGELOG.md b/packages/fax/CHANGELOG.md index 995e76b4..f5a00cdf 100644 --- a/packages/fax/CHANGELOG.md +++ b/packages/fax/CHANGELOG.md @@ -1,3 +1,7 @@ ## Version 0.0.3 -- Initial version +- Initial version. Support for: + - Services management + - Fax sending + - Fax on emails + - Callback webhooks diff --git a/packages/fax/package.json b/packages/fax/package.json index a6cf09e9..51b4384b 100644 --- a/packages/fax/package.json +++ b/packages/fax/package.json @@ -1,6 +1,6 @@ { "name": "@sinch/fax", - "version": "0.0.2", + "version": "0.0.3", "description": "Sinch Fax API", "homepage": "", "repository": { @@ -28,7 +28,7 @@ "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests && rimraf tsconfig.build.tsbuildinfo" }, "dependencies": { - "@sinch/sdk-client": "^0.0.2" + "@sinch/sdk-client": "^0.0.3" }, "devDependencies": {}, "publishConfig": { diff --git a/packages/numbers/CHANGELOG.md b/packages/numbers/CHANGELOG.md index 1cd3412f..012a7ae1 100644 --- a/packages/numbers/CHANGELOG.md +++ b/packages/numbers/CHANGELOG.md @@ -1,11 +1,15 @@ +## Version 0.0.3 + - [Tech] Update dependency `@sinch/sdk-client` to `0.0.3` + ## Version 0.0.2 - - Implement the `CallbackProcessor` interface: when receiving an event callback, it's possible to validate the signature header and to revive the request body into an object. + - [Feature] Implement the `CallbackProcessor` interface: when receiving an event callback, it's possible to validate the signature header and to revive the request body into an object. + - [Tech] Update dependency `@sinch/sdk-client` to `0.0.2` ## Version 0.0.1 - - Update dependency to @sinch/sdk-client to `0.0.1` - - Update specification + - [Tech] Update dependency `@sinch/sdk-client` to `0.0.1` + - [Feature] Update specification - ListAvailableRegionsRequestData: `types` became an array - ActiveNumberRequest: added the property `callbackUrl` - `CallbackConfiguration` tag changed to `Callbacks` @@ -13,6 +17,6 @@ - `CallbackPayload` interface created - Add the method `parseNumbersEventNotification` to call when receiving a callback event to transform it into a `CallbackPayload` -# Version 0.0.0 +## Version 0.0.0 - Initial version diff --git a/packages/numbers/package.json b/packages/numbers/package.json index d2aa9d02..9ec987cb 100644 --- a/packages/numbers/package.json +++ b/packages/numbers/package.json @@ -1,6 +1,6 @@ { "name": "@sinch/numbers", - "version": "0.0.2", + "version": "0.0.3", "description": "Sinch Numbers API", "homepage": "", "repository": { @@ -28,7 +28,7 @@ "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests && rimraf tsconfig.build.tsbuildinfo" }, "dependencies": { - "@sinch/sdk-client": "^0.0.2" + "@sinch/sdk-client": "^0.0.3" }, "devDependencies": {}, "publishConfig": { diff --git a/packages/sdk-client/CHANGELOG.md b/packages/sdk-client/CHANGELOG.md index 0310f0a6..065e3749 100644 --- a/packages/sdk-client/CHANGELOG.md +++ b/packages/sdk-client/CHANGELOG.md @@ -1,15 +1,18 @@ +## Version 0.0.3 + - [Bugfix] Do not transform a timestamp to a Date object in the timezone plugin, this is already done in the reviver for API responses (regression from v0.0.2) + ## Version 0.0.2 - - [Feat.] Add interface `CallbackProcessor` to be implemented by each API defining webhooks for callbacks. - - [Feat.] Add `validateSignatureHeader` function to check whether a callback event with a `X-Sinch-Signature` header has been tampered with or not - - [Feat.] Add `Date` reviver for API responses + - [Feature] Add interface `CallbackProcessor` to be implemented by each API defining webhooks for callbacks. + - [Feature] Add `validateSignatureHeader` function to check whether a callback event with a `X-Sinch-Signature` header has been tampered with or not + - [Feature] Add `Date` reviver for API responses ## Version 0.0.1 - - [Feat.] Add method `formatQueryParameter` that take an optional boolean parameter `repeatParamArray` to decide how to represent parameters arrays in the URL as all the APIs are not consistent - - [Tech.] Refactor `imports` and `exports` to break the circular dependencies introduced by the automatic refresh token mechanism - - [Feat.] Add `TimezoneResponse` plugin to the list of default plugins to patch responses where the server doesn't send a timezone in a timestamp property - - [Feat.] Add `validateAuthenticationHeader` function to check whether a callback event has been tampered with or not + - [Feature] Add method `formatQueryParameter` that take an optional boolean parameter `repeatParamArray` to decide how to represent parameters arrays in the URL as all the APIs are not consistent + - [Tech] Refactor `imports` and `exports` to break the circular dependencies introduced by the automatic refresh token mechanism + - [Feature] Add `TimezoneResponse` plugin to the list of default plugins to patch responses where the server doesn't send a timezone in a timestamp property + - [Feature] Add `validateAuthenticationHeader` function to check whether a callback event has been tampered with or not # Version 0.0.0 diff --git a/packages/sdk-client/package.json b/packages/sdk-client/package.json index d72679d2..9e3df8d7 100644 --- a/packages/sdk-client/package.json +++ b/packages/sdk-client/package.json @@ -1,6 +1,6 @@ { "name": "@sinch/sdk-client", - "version": "0.0.2", + "version": "0.0.3", "description": "Core services related to interacting with Sinch API", "homepage": "", "repository": { diff --git a/packages/sdk-core/CHANGELOG.md b/packages/sdk-core/CHANGELOG.md index 71ad4dfc..2f956589 100644 --- a/packages/sdk-core/CHANGELOG.md +++ b/packages/sdk-core/CHANGELOG.md @@ -1,6 +1,20 @@ -## Version 0.0.1 +## Version 0.0.3 +- Update dependency `@sinch/numbers` to version `0.0.3` +- Update dependency `@sinch/sms` to version `0.0.3` +- Update dependency `@sinch/verification` to version `0.0.3` +- Update dependency `@sinch/voice` to version `0.0.3` +- Update dependency `@sinch/conversation` to version `0.0.3` +- Add support for the Fax API with `@sinch/fax` version `0.0.3` + +## Version 0.0.2 +- Update dependency `@sinch/numbers` to version `0.0.2` +- Update dependency `@sinch/sms` to version `0.0.2` +- Update dependency `@sinch/verification` to version `0.0.2` +- Update dependency `@sinch/voice` to version `0.0.2` +- Add support for the Conversation API with `@sinch/conversation` version `0.0.2` - - Update dependency to @sinch/numbers to `0.0.1` - - Update dependency to @sinch/sms to `0.0.1` - - Update dependency to @sinch/verification to `0.0.1` - - Add support for the Voice API with @sinch/voice version `0.0.1` +## Version 0.0.1 + - Update dependency `@sinch/numbers` to version `0.0.1` + - Update dependency `@sinch/sms` to version `0.0.1` + - Update dependency `@sinch/verification` to version `0.0.1` + - Add support for the Voice API with `@sinch/voice` version `0.0.1` diff --git a/packages/sdk-core/package.json b/packages/sdk-core/package.json index fa748760..3624d01c 100644 --- a/packages/sdk-core/package.json +++ b/packages/sdk-core/package.json @@ -1,6 +1,6 @@ { "name": "@sinch/sdk-core", - "version": "0.0.2", + "version": "0.0.3", "description": "Node.js client for the Sinch API platform", "homepage": "", "repository": { @@ -29,12 +29,12 @@ "compile": "tsc --build --verbose" }, "dependencies": { - "@sinch/conversation": "^0.0.2", - "@sinch/fax": "^0.0.2", - "@sinch/numbers": "^0.0.2", - "@sinch/sms": "^0.0.2", - "@sinch/verification": "^0.0.2", - "@sinch/voice": "^0.0.2" + "@sinch/conversation": "^0.0.3", + "@sinch/fax": "^0.0.3", + "@sinch/numbers": "^0.0.3", + "@sinch/sms": "^0.0.3", + "@sinch/verification": "^0.0.3", + "@sinch/voice": "^0.0.3" }, "devDependencies": {}, "publishConfig": { diff --git a/packages/sms/CHANGELOG.md b/packages/sms/CHANGELOG.md index 30c6c142..20909647 100644 --- a/packages/sms/CHANGELOG.md +++ b/packages/sms/CHANGELOG.md @@ -1,9 +1,15 @@ -## Version 0.0.2 +## Version 0.0.3 +- [Tech] Update dependency `@sinch/sdk-client` to `0.0.3` +- [Feature] Add composed methods for sending a batch: + - `sendTextMessage()` + - `sendBinaryMessage()` + - `sendMediaMessage()` +- [Feature][Breaking] Rename method `getByPhoneNumber()` to `getForNumber()` in the delivery-reports domain +## Version 0.0.2 +- [Tech] Update dependency `@sinch/sdk-client` to `0.0.2` - Implement the `CallbackProcessor` interface: when receiving an event callback, it's possible to validate the signature header (always valid for this API) and to revive the request body into an object. - ## Version 0.0.1 - - - Update dependency to @sinch/sdk-client to `0.0.1` + - [Tech] Update dependency `@sinch/sdk-client` to `0.0.1` - Add the method `parseSmsEventNotification` to call when receiving a callback event to transform it into the correct type diff --git a/packages/sms/package.json b/packages/sms/package.json index cdaf04b2..67672d79 100644 --- a/packages/sms/package.json +++ b/packages/sms/package.json @@ -1,6 +1,6 @@ { "name": "@sinch/sms", - "version": "0.0.2", + "version": "0.0.3", "description": "Sinch SMS API", "homepage": "", "repository": { @@ -28,7 +28,7 @@ "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo" }, "dependencies": { - "@sinch/sdk-client": "^0.0.2" + "@sinch/sdk-client": "^0.0.3" }, "devDependencies": {}, "publishConfig": { diff --git a/packages/verification/CHANGELOG.md b/packages/verification/CHANGELOG.md index 38b2e892..5bc5e4ce 100644 --- a/packages/verification/CHANGELOG.md +++ b/packages/verification/CHANGELOG.md @@ -1,4 +1,8 @@ +## Version 0.0.3 +- [Tech] Update dependency `@sinch/sdk-client` to `0.0.3` + ## Version 0.0.2 +- [Tech] Update dependency `@sinch/sdk-client` to `0.0.2` **Breaking changes** - Removal of the method `verifications.start()`, replaced by the methods: @@ -19,10 +23,11 @@ - Move the header validation to the domain with the method `validateAuthenticationHeader` ## Version 0.0.1 - - - Update dependency to @sinch/sdk-client to `0.0.1` - - Add the method `parseVerificationEventNotification` to call when receiving a callback event to transform it into the correct type + - [Tech] Update dependency `@sinch/sdk-client` to `0.0.1` + - [Feature] Add the method `parseVerificationEventNotification` to call when receiving a callback event to transform it into the correct type # Version 0.0.0 - -- Initial version +- Initial version. Support for: + - start verification + - report verification + - get verification status diff --git a/packages/verification/package.json b/packages/verification/package.json index bb9068fd..8732af9b 100644 --- a/packages/verification/package.json +++ b/packages/verification/package.json @@ -1,6 +1,6 @@ { "name": "@sinch/verification", - "version": "0.0.2", + "version": "0.0.3", "description": "Sinch Verification API", "homepage": "", "repository": { @@ -28,7 +28,7 @@ "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo" }, "dependencies": { - "@sinch/sdk-client": "^0.0.2" + "@sinch/sdk-client": "^0.0.3" }, "devDependencies": {}, "publishConfig": { diff --git a/packages/voice/CHANGELOG.md b/packages/voice/CHANGELOG.md index 004a911b..747952a0 100644 --- a/packages/voice/CHANGELOG.md +++ b/packages/voice/CHANGELOG.md @@ -1,7 +1,10 @@ -# Version 0.0.2 +## Version 0.0.3 +- [Tech] Update dependency `@sinch/sdk-client` to `0.0.3` -- [Feat.] [Helpers](./src/models/v1/helper.ts) for SVAML actions and instructions building for ICE, ACE and PIE -- [Feat.] `call()` function is also available under the `conferences` service. +# Version 0.0.2 +- [Tech] Update dependency `@sinch/sdk-client` to `0.0.2` +- [Feature] [Helpers](./src/models/v1/helper.ts) for SVAML actions and instructions building for ICE, ACE and PIE +- [Feature] `call()` function is also available under the `conferences` service. **Breaking changes** - Callbacks management: implementation of the `CallbackProcessor` interface @@ -9,5 +12,9 @@ - Move the header validation to the domain with the method `validateAuthenticationHeader` # Version 0.0.1 - - - Initial version +- Initial version. Support for: + - Voice application management + - Callouts: TTS, Conference and Custom + - Calls management + - Conference management + - Callback webhooks diff --git a/packages/voice/package.json b/packages/voice/package.json index f7e0bac2..f1629f0a 100644 --- a/packages/voice/package.json +++ b/packages/voice/package.json @@ -1,6 +1,6 @@ { "name": "@sinch/voice", - "version": "0.0.2", + "version": "0.0.3", "description": "Sinch Voice API", "homepage": "", "repository": { @@ -28,7 +28,7 @@ "compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests tsconfig.build.tsbuildinfo" }, "dependencies": { - "@sinch/sdk-client": "^0.0.2" + "@sinch/sdk-client": "^0.0.3" }, "devDependencies": {}, "publishConfig": {