Skip to content

Commit

Permalink
Revert "feat: added whats app reaction (#964)"
Browse files Browse the repository at this point in the history
This reverts commit db2946f.
  • Loading branch information
manchuck authored Oct 11, 2024
1 parent db2946f commit 97e5448
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 278 deletions.
17 changes: 8 additions & 9 deletions packages/messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,14 @@ for general use will be listed as having 'General Availability'. Channels which
are currently part of a Beta program will be listed as 'Beta'. This table
details the current release status of each channel implemented in this SDK:

| Channel | API Release Status |
|---------------------|:--------------------:|
| SMS | General Availability |
| MMS | General Availability |
| RCS | Beta |
| Facebook Messenger | General Availability |
| WhatsApp | General Availability |
| WhatsApp (reaction) | Beta |
| Viber | General Availability |
| Channel | API Release Status |
|--------------------|:--------------------:|
| SMS | General Availability |
| MMS | General Availability |
| RCS | Beta |
| Facebook Messenger | General Availability |
| WhatsApp | General Availability |
| Viber | General Availability |

[signup]: https://dashboard.nexmo.com/sign-up?utm_source=DEV_REL&utm_medium=github&utm_campaign=node-server-sdk

Expand Down
101 changes: 0 additions & 101 deletions packages/messages/__tests__/__dataSets__/whatsApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ import {
WhatsAppVideoRequest,
UpdateMessageStatus,
UpdateMessageRequest,
WhatsAppReactionRequest,
WhatsAppReactionParams,
WhatsAppReaction,
} from '../../lib';

import { Audio } from '../../lib/classes/WhatsApp/Audio';
Expand Down Expand Up @@ -1038,102 +1035,4 @@ export default [
],
expected: true
},
{
label: 'send reaction',
request: [
'/v1/messages',
'POST',
{
from: '12126875309',
to: '14152739164',
channel: 'whatsapp',
message_type: 'reaction',
client_ref: 'my-ref',
context: {
message_uuid: '1d4723b0-9134-4440-8cf0-e9f39ccb1c6a',
},
webhook_version: 'v1',
webhook_url: 'https://example.com',
reaction: {
action: 'react',
emoji: '😄',
}
} as WhatsAppReactionRequest,
],
response: [
200,
{
message_uuid: '1d4723b0-9134-4440-8cf0-e9f39ccb1c6a',
},
],
method: 'POST',
clientMethod: 'send',
parameters: [
new WhatsAppReaction({
from: '12126875309',
to: '14152739164',
clientRef: 'my-ref',
context: {
messageUUID: '1d4723b0-9134-4440-8cf0-e9f39ccb1c6a',
},
webhookVersion: 'v1',
webhookUrl: 'https://example.com',
reaction: {
action: 'react',
emoji: '😄',
}
} as WhatsAppReactionParams),
],
expected: {
messageUUID: '1d4723b0-9134-4440-8cf0-e9f39ccb1c6a',
} as MessageSuccess,
},
{
label: 'remove reaction',
request: [
'/v1/messages',
'POST',
{
from: '12126875309',
to: '14152739164',
channel: 'whatsapp',
message_type: 'reaction',
client_ref: 'my-ref',
context: {
message_uuid: '1d4723b0-9134-4440-8cf0-e9f39ccb1c6a',
},
webhook_version: 'v1',
webhook_url: 'https://example.com',
reaction: {
action: 'unreact',
}
} as WhatsAppReactionRequest,
],
response: [
200,
{
message_uuid: '1d4723b0-9134-4440-8cf0-e9f39ccb1c6a',
},
],
method: 'POST',
clientMethod: 'send',
parameters: [
new WhatsAppReaction({
from: '12126875309',
to: '14152739164',
clientRef: 'my-ref',
context: {
messageUUID: '1d4723b0-9134-4440-8cf0-e9f39ccb1c6a',
},
webhookVersion: 'v1',
webhookUrl: 'https://example.com',
reaction: {
action: 'unreact',
}
} as WhatsAppReactionParams),
],
expected: {
messageUUID: '1d4723b0-9134-4440-8cf0-e9f39ccb1c6a',
} as MessageSuccess,
}
];
71 changes: 0 additions & 71 deletions packages/messages/lib/classes/WhatsApp/WhatsAppReaction.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/messages/lib/classes/WhatsApp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ export * from './WhatsAppSticker';
export * from './WhatsAppTemplate';
export * from './WhatsAppText';
export * from './WhatsAppVideo';
export * from './WhatsAppReaction';

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions packages/messages/lib/types/Channels/WhatsApp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { WhatsAppStickerParams } from './WhatsAppStickerParams';
import { WhatsAppTemplateParams } from './WhatsAppTemplateParams';
import { WhatsAppTextParams } from './WhatsAppTextParams';
import { WhatsAppVideoParams } from './WhatsAppVideoParams';
import { WhatsAppReactionParams } from './WhatsAppReactionParams';
import { Channels } from '../../../enums';

export * from './WhatsAppAudioParams';
Expand All @@ -24,8 +23,6 @@ export * from './WhatsAppTemplateType';
export * from './WhatsAppTextParams';
export * from './WhatsAppVideoParams';
export * from './WhatsAppParams';
export * from './WhatsAppReactionParams';
export * from './WhatAppReactionType';

/**
* Represents a union type that can be any of the WhatsApp-specific message
Expand All @@ -43,7 +40,6 @@ export type AnyWhatsAppParams =
| WhatsAppStickerParams
| WhatsAppTemplateParams
| WhatsAppTextParams
| WhatsAppReactionParams
| WhatsAppVideoParams;

/**
Expand Down
69 changes: 0 additions & 69 deletions packages/messages/lib/types/Requests/WhatsAppReactionRequest.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/messages/lib/types/Requests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ export * from './WhatsAppStickerIdRequest';
export * from './WhatsAppTemplateRequest';
export * from './WhatsAppTextRequest';
export * from './UpdateMessageRequest';
export * from './WhatsAppReactionRequest';

0 comments on commit 97e5448

Please sign in to comment.