You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,7 +17,7 @@ export class InfobipApi implements INodeType {
17
17
group: ['transform'],
18
18
version: 1,
19
19
subtitle: '={{$parameter["operation"]}}',
20
-
description: 'Interact with Infobip SMS API',
20
+
description: 'Interact with Infobip API',
21
21
defaults: {
22
22
name: 'InfobipApi',
23
23
},
@@ -37,19 +37,70 @@ export class InfobipApi implements INodeType {
37
37
type: 'options',
38
38
options: [
39
39
{
40
-
name: 'Send an SMS',
41
-
value: 'sendSms',
42
-
action: 'Send an SMS',
40
+
name: 'Check Delivery Report',
41
+
value: 'checkDeliveryReport',
42
+
action: 'Check delivery report',
43
43
},
44
44
{
45
-
name: 'View SMS Delivery Report',
46
-
value: 'smsDeliveryReport',
47
-
action: 'View sms delivery report',
45
+
name: 'Send Message',
46
+
value: 'sendMessage',
47
+
action: 'Send message',
48
48
},
49
49
],
50
-
default: 'sendSms',
50
+
default: 'sendMessage',
51
51
noDataExpression: true,
52
52
},
53
+
{
54
+
displayName: 'Channel',
55
+
name: 'channel',
56
+
type: 'options',
57
+
options: [
58
+
{
59
+
name: 'RCS',
60
+
value: 'rcs',
61
+
},
62
+
{
63
+
name: 'SMS',
64
+
value: 'sms',
65
+
},
66
+
{
67
+
name: 'Viber',
68
+
value: 'viber',
69
+
},
70
+
{
71
+
name: 'WhatsApp',
72
+
value: 'whatsapp',
73
+
},
74
+
],
75
+
default: 'sms',
76
+
displayOptions: {
77
+
show: {
78
+
operation: [
79
+
'sendMessage',
80
+
],
81
+
},
82
+
},
83
+
description: 'The messaging channel to use',
84
+
},
85
+
{
86
+
displayName: 'Sender',
87
+
name: 'sender',
88
+
type: 'string',
89
+
required: true,
90
+
displayOptions: {
91
+
show: {
92
+
operation: [
93
+
'sendMessage',
94
+
],
95
+
channel: [
96
+
'sms',
97
+
],
98
+
},
99
+
},
100
+
default: '',
101
+
placeholder: 'Enter sender ID',
102
+
description: 'The sender ID',
103
+
},
53
104
{
54
105
displayName: 'Sender',
55
106
name: 'sender',
@@ -58,14 +109,53 @@ export class InfobipApi implements INodeType {
58
109
displayOptions: {
59
110
show: {
60
111
operation: [
61
-
'sendSms',
112
+
'sendMessage',
113
+
],
114
+
channel: [
115
+
'viber',
62
116
],
63
117
},
64
118
},
65
119
default: '',
66
120
placeholder: 'Enter sender ID',
67
121
description: 'The sender ID',
68
122
},
123
+
{
124
+
displayName: 'Sender',
125
+
name: 'sender',
126
+
type: 'string',
127
+
required: true,
128
+
displayOptions: {
129
+
show: {
130
+
operation: [
131
+
'sendMessage',
132
+
],
133
+
channel: [
134
+
'rcs',
135
+
'whatsapp',
136
+
],
137
+
},
138
+
},
139
+
default: '',
140
+
placeholder: 'Enter sender ID',
141
+
description: 'The sender ID',
142
+
},
143
+
{
144
+
displayName: 'To send a WhatsApp message, the user needs to have replied to the conversation in the last 24 hours. You can still start the conversation by sending a template message. <a href="https://www.infobip.com/docs/tutorials/send-whatsapp-template-messages" target="_blank">Learn more</a>',
145
+
name: 'whatsappNotice',
146
+
type: 'notice',
147
+
default: '',
148
+
displayOptions: {
149
+
show: {
150
+
operation: [
151
+
'sendMessage',
152
+
],
153
+
channel: [
154
+
'whatsapp',
155
+
],
156
+
},
157
+
},
158
+
},
69
159
{
70
160
displayName: 'Phone Number',
71
161
name: 'phone',
@@ -74,7 +164,7 @@ export class InfobipApi implements INodeType {
74
164
displayOptions: {
75
165
show: {
76
166
operation: [
77
-
'sendSms',
167
+
'sendMessage',
78
168
],
79
169
},
80
170
},
@@ -91,7 +181,7 @@ export class InfobipApi implements INodeType {
91
181
displayOptions: {
92
182
show: {
93
183
operation: [
94
-
'sendSms',
184
+
'sendMessage',
95
185
],
96
186
},
97
187
},
@@ -107,28 +197,27 @@ export class InfobipApi implements INodeType {
107
197
displayOptions: {
108
198
show: {
109
199
operation: [
110
-
'smsDeliveryReport',
200
+
'checkDeliveryReport',
111
201
],
112
202
},
113
203
},
114
204
default: '',
115
205
placeholder: 'Message ID',
116
-
description: 'Unique identifier of the SMS message whose delivery report you want to retrieve',
206
+
description: 'Unique identifier of the message whose delivery report you want to retrieve',
0 commit comments