@bigbinary/neeto-rules-frontend 0.4.10 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -496,7 +496,7 @@ const initialProps = {
496
496
  {
497
497
  value: "add_tags",
498
498
  label: "Add Tags",
499
- type: "multiSelect", // Types : emailToIds, emailTo, email, dropdown, list, multiSelect, note, date, text, textarea, decimal, number, regex, longText
499
+ type: "multiSelect", // Types : emailToIds, emailTo, email, dropdown, list, multiSelect, note, date, text, textarea, decimal, number, regex, longText, sms, smsToNumbers, smsTo, sendToApi
500
500
  hideSeparator: true,
501
501
  placeholder: "Select tags",
502
502
  dropdownOptions: [
@@ -560,9 +560,9 @@ neetoRulesFrontend allows to pass custom action components from host application
560
560
  },
561
561
  ```
562
562
 
563
- #### 2.10 Custom email templates
563
+ #### 2.10 Custom message templates
564
564
 
565
- neetoRulesFrontend allows to pass predefined email templates from host application. This enables to use templates created using neeto-message-templates-nano. Below is an example for custom email templates which is being sent by neeto-form in action options.
565
+ neetoRulesFrontend allows to pass predefined email, SMS and API templates from host application. This enables to use templates created using neeto-message-templates-nano. Below is an example for custom message template which is being sent by neeto-form in action options.
566
566
 
567
567
  ```jsx
568
568
  {
@@ -28,7 +28,11 @@
28
28
  "as": "as",
29
29
  "delete": "Delete",
30
30
  "viewMore": "View more",
31
- "viewLess": "View less"
31
+ "viewLess": "View less",
32
+ "sms": "SMS",
33
+ "phoneNumber": "Phone number",
34
+ "phoneNumbers": "Phone numbers",
35
+ "data": "Data"
32
36
  },
33
37
  "form": {
34
38
  "noEvents": "A rule without events will run hourly.",
@@ -131,7 +135,13 @@
131
135
  "unchecked": "Unchecked",
132
136
  "text": "Text",
133
137
  "ruleSummary": "Automation rule summary",
134
- "template": "Template"
138
+ "template": "Template",
139
+ "remainingItemsCount": "{{count}} more",
140
+ "endpoint": "Endpoint",
141
+ "key": "Key",
142
+ "value": "Value",
143
+ "addKeyValuePair": "Add new key value pair",
144
+ "additionalData": "Additional data"
135
145
  },
136
146
  "placeholders": {
137
147
  "if": "If",
@@ -141,7 +151,8 @@
141
151
  "selectTags": "Select Tags",
142
152
  "selectOption": "Select option",
143
153
  "value": "Value",
144
- "selectTemplate": "Select a template"
154
+ "selectTemplate": "Select a template",
155
+ "phoneNumberField": "Type phone number and press enter"
145
156
  },
146
157
  "buttons": {
147
158
  "save": "Save",
@@ -183,7 +194,9 @@
183
194
  "slack": {
184
195
  "invalidChannel": "Could not connect to the channel, please select other options.",
185
196
  "errorInIntegration": "Could not connect to Slack! Please check the integration or remove this action otherwise the automation rule will not be able to function as intended."
186
- }
197
+ },
198
+ "invalidPhoneNumber": "Phone number is invalid",
199
+ "invalidUrlEntity": "{{entity}} must be a valid URL"
187
200
  },
188
201
  "conditionVerbs": {
189
202
  "is": "Is",
@@ -281,6 +294,12 @@
281
294
  "shortcuts": {
282
295
  "submit": "Submit field",
283
296
  "cancel": "Cancel"
297
+ },
298
+ "helpTexts": {
299
+ "phoneNumber": "Example: +918888888888"
300
+ },
301
+ "messages": {
302
+ "removeInvalidPhoneNumbers": "Click here to remove invalid phone numbers."
284
303
  }
285
304
  }
286
305
  }