@bigbinary/neeto-integrations-frontend 4.0.40 → 4.0.42

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.
Files changed (48) hide show
  1. package/app/javascript/src/translations/ar.json +3 -0
  2. package/app/javascript/src/translations/bg.json +3 -0
  3. package/app/javascript/src/translations/ca.json +3 -0
  4. package/app/javascript/src/translations/cs.json +3 -0
  5. package/app/javascript/src/translations/da.json +3 -0
  6. package/app/javascript/src/translations/de.json +3 -0
  7. package/app/javascript/src/translations/en.json +3 -0
  8. package/app/javascript/src/translations/es-MX.json +3 -0
  9. package/app/javascript/src/translations/es.json +3 -0
  10. package/app/javascript/src/translations/et.json +3 -0
  11. package/app/javascript/src/translations/fi.json +3 -0
  12. package/app/javascript/src/translations/fil.json +3 -0
  13. package/app/javascript/src/translations/fr.json +3 -0
  14. package/app/javascript/src/translations/he.json +3 -0
  15. package/app/javascript/src/translations/hi.json +3 -0
  16. package/app/javascript/src/translations/hr.json +3 -0
  17. package/app/javascript/src/translations/hu.json +3 -0
  18. package/app/javascript/src/translations/id.json +3 -0
  19. package/app/javascript/src/translations/it.json +3 -0
  20. package/app/javascript/src/translations/ja.json +3 -0
  21. package/app/javascript/src/translations/ko.json +3 -0
  22. package/app/javascript/src/translations/nl.json +3 -0
  23. package/app/javascript/src/translations/pl.json +3 -0
  24. package/app/javascript/src/translations/pt-BR.json +3 -0
  25. package/app/javascript/src/translations/pt.json +3 -0
  26. package/app/javascript/src/translations/ro.json +3 -0
  27. package/app/javascript/src/translations/ru.json +3 -0
  28. package/app/javascript/src/translations/sk.json +3 -0
  29. package/app/javascript/src/translations/sl.json +3 -0
  30. package/app/javascript/src/translations/sv.json +3 -0
  31. package/app/javascript/src/translations/th.json +3 -0
  32. package/app/javascript/src/translations/tr.json +3 -0
  33. package/app/javascript/src/translations/uk.json +3 -0
  34. package/app/javascript/src/translations/vi.json +3 -0
  35. package/app/javascript/src/translations/zh-CN.json +3 -0
  36. package/app/javascript/src/translations/zh-TW.json +3 -0
  37. package/dist/.ready +1 -1
  38. package/dist/Telnyx.js +20 -6
  39. package/dist/Telnyx.js.map +1 -1
  40. package/dist/cjs/Telnyx.js +20 -6
  41. package/dist/cjs/Telnyx.js.map +1 -1
  42. package/dist/cjs/v2/Telnyx.js +20 -6
  43. package/dist/cjs/v2/Telnyx.js.map +1 -1
  44. package/dist/v2/Telnyx.js +20 -6
  45. package/dist/v2/Telnyx.js.map +1 -1
  46. package/package.json +20 -20
  47. package/typeTemplates-v2/index.d.ts +1 -0
  48. package/types.d.ts +1 -0
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "ملف تعريف الرسائل",
176
176
  "placeholder": "اختر ملف تعريف الرسائل"
177
+ },
178
+ "publicKey": {
179
+ "label": "المفتاح العام"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Профил за съобщения",
176
176
  "placeholder": "Изберете профил за съобщения"
177
+ },
178
+ "publicKey": {
179
+ "label": "Публичен ключ"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Perfil de missatgeria",
176
176
  "placeholder": "Seleccioneu un perfil de missatgeria"
177
+ },
178
+ "publicKey": {
179
+ "label": "Clau pública"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profil zasílání zpráv",
176
176
  "placeholder": "Vyberte profil zasílání zpráv"
177
+ },
178
+ "publicKey": {
179
+ "label": "Veřejný klíč"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Beskedsprofil",
176
176
  "placeholder": "Vælg en beskedsprofil"
177
+ },
178
+ "publicKey": {
179
+ "label": "Offentlig nøgle"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Messaging-Profil",
176
176
  "placeholder": "Wählen Sie ein Messaging-Profil"
177
+ },
178
+ "publicKey": {
179
+ "label": "Öffentlicher Schlüssel"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -121,6 +121,9 @@
121
121
  "label": "Messaging profile",
122
122
  "placeholder": "Select a messaging profile"
123
123
  },
124
+ "publicKey": {
125
+ "label": "Public key"
126
+ },
124
127
  "validations": {
125
128
  "apiKeyRequired": "API key is required.",
126
129
  "messagingProfileIdRequired": "Messaging Profile ID is required.",
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Perfil de mensajería",
176
176
  "placeholder": "Selecciona un perfil de mensajería"
177
+ },
178
+ "publicKey": {
179
+ "label": "Clave pública"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Perfil de mensajería",
176
176
  "placeholder": "Selecciona un perfil de mensajería"
177
+ },
178
+ "publicKey": {
179
+ "label": "Clave pública"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Sõnumiprofiil",
176
176
  "placeholder": "Valige sõnumiprofiil"
177
+ },
178
+ "publicKey": {
179
+ "label": "Avalik võti"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Viestintäprofiili",
176
176
  "placeholder": "Valitse viestintäprofiili"
177
+ },
178
+ "publicKey": {
179
+ "label": "Julkinen avain"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Messaging profile",
176
176
  "placeholder": "Pumili ng isang messaging profile"
177
+ },
178
+ "publicKey": {
179
+ "label": "Pampublikong susi"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profil de messagerie",
176
176
  "placeholder": "Sélectionnez un profil de messagerie"
177
+ },
178
+ "publicKey": {
179
+ "label": "Clé publique"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "פרופיל הודעות",
176
176
  "placeholder": "בחר פרופיל הודעות"
177
+ },
178
+ "publicKey": {
179
+ "label": "מפתח ציבורי"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "मैसेजिंग प्रोफ़ाइल",
176
176
  "placeholder": "एक मैसेजिंग प्रोफ़ाइल चुनें"
177
+ },
178
+ "publicKey": {
179
+ "label": "पब्लिक की"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profil za slanje poruka",
176
176
  "placeholder": "Odaberite profil za slanje poruka"
177
+ },
178
+ "publicKey": {
179
+ "label": "Javni ključ"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -125,6 +125,9 @@
125
125
  "messagingProfile": {
126
126
  "label": "Üzenetküldő profil",
127
127
  "placeholder": "Válasszon egy üzenetküldő profilt"
128
+ },
129
+ "publicKey": {
130
+ "label": "Nyilvános kulcs"
128
131
  }
129
132
  },
130
133
  "steps": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profil pengiriman pesan",
176
176
  "placeholder": "Pilih profil pengiriman pesan"
177
+ },
178
+ "publicKey": {
179
+ "label": "Kunci publik"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profilo di messaggistica",
176
176
  "placeholder": "Seleziona un profilo di messaggistica"
177
+ },
178
+ "publicKey": {
179
+ "label": "Chiave pubblica"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "メッセージングプロファイル",
176
176
  "placeholder": "メッセージングプロファイルを選択"
177
+ },
178
+ "publicKey": {
179
+ "label": "公開鍵"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "메시징 프로필",
176
176
  "placeholder": "메시징 프로필을 선택하세요"
177
+ },
178
+ "publicKey": {
179
+ "label": "공개 키"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Berichtenprofiel",
176
176
  "placeholder": "Selecteer een berichtenprofiel"
177
+ },
178
+ "publicKey": {
179
+ "label": "Officiële sleutel"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profil wiadomości",
176
176
  "placeholder": "Wybierz profil wiadomości"
177
+ },
178
+ "publicKey": {
179
+ "label": "Klucz publiczny"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Perfil de mensagem",
176
176
  "placeholder": "Selecione um perfil de mensagem"
177
+ },
178
+ "publicKey": {
179
+ "label": "Chave pública"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Perfil de mensagens",
176
176
  "placeholder": "Selecione um perfil de mensagens"
177
+ },
178
+ "publicKey": {
179
+ "label": "Chave pública"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profil de mesagerie",
176
176
  "placeholder": "Selectează un profil de mesagerie"
177
+ },
178
+ "publicKey": {
179
+ "label": "Cheia publică"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Профиль сообщений",
176
176
  "placeholder": "Выберите профиль сообщений"
177
+ },
178
+ "publicKey": {
179
+ "label": "Публичный ключ"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profil správ",
176
176
  "placeholder": "Vyberte profil správ"
177
+ },
178
+ "publicKey": {
179
+ "label": "Verejný kľúč"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Profil za sporočanje",
176
176
  "placeholder": "Izberite profil za sporočanje"
177
+ },
178
+ "publicKey": {
179
+ "label": "Javna ključ"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Meddelandeprofil",
176
176
  "placeholder": "Välj en meddelandeprofil"
177
+ },
178
+ "publicKey": {
179
+ "label": "Offentlig nyckel"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "โปรไฟล์การส่งข้อความ",
176
176
  "placeholder": "เลือกโปรไฟล์การส่งข้อความ"
177
+ },
178
+ "publicKey": {
179
+ "label": "คีย์สาธารณะ"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Mesajlaşma profili",
176
176
  "placeholder": "Bir mesajlaşma profili seçin"
177
+ },
178
+ "publicKey": {
179
+ "label": "Açık anahtar"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Профіль повідомлень",
176
176
  "placeholder": "Оберіть профіль повідомлень"
177
+ },
178
+ "publicKey": {
179
+ "label": "Публічний ключ"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "Hồ sơ nhắn tin",
176
176
  "placeholder": "Chọn một hồ sơ nhắn tin"
177
+ },
178
+ "publicKey": {
179
+ "label": "Khóa công khai"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "消息配置文件",
176
176
  "placeholder": "选择一个消息配置文件"
177
+ },
178
+ "publicKey": {
179
+ "label": "公钥"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
@@ -174,6 +174,9 @@
174
174
  "messagingProfile": {
175
175
  "label": "消息配置檔",
176
176
  "placeholder": "選擇一個消息配置檔"
177
+ },
178
+ "publicKey": {
179
+ "label": "公開金鑰"
177
180
  }
178
181
  },
179
182
  "disconnectionRibbon": {
package/dist/.ready CHANGED
@@ -1 +1 @@
1
- Built at 2026-05-29T14:05:29.538Z
1
+ Built at 2026-06-30T22:05:32.789Z
package/dist/Telnyx.js CHANGED
@@ -102,7 +102,9 @@ var Form = function Form(_ref) {
102
102
  senderOptionsAvailable = _ref.senderOptionsAvailable,
103
103
  formikProps = _ref.formikProps,
104
104
  _ref$initialFocusRef = _ref.initialFocusRef,
105
- initialFocusRef = _ref$initialFocusRef === void 0 ? null : _ref$initialFocusRef;
105
+ initialFocusRef = _ref$initialFocusRef === void 0 ? null : _ref$initialFocusRef,
106
+ _ref$isWebhooksRequir = _ref.isWebhooksRequired,
107
+ isWebhooksRequired = _ref$isWebhooksRequir === void 0 ? false : _ref$isWebhooksRequir;
106
108
  var _useTranslation = useTranslation(),
107
109
  t = _useTranslation.t;
108
110
  var setFieldValue = formikProps.setFieldValue,
@@ -126,6 +128,11 @@ var Form = function Form(_ref) {
126
128
  label: t("neetoIntegrations.telnyx.apiKey"),
127
129
  name: "apiKey",
128
130
  ref: initialFocusRef
131
+ }), isWebhooksRequired && /*#__PURE__*/jsx(Input, {
132
+ required: true,
133
+ "data-testid": "integrations-telnyx-public-key",
134
+ label: t("neetoIntegrations.telnyx.publicKey.label"),
135
+ name: "publicKey"
129
136
  }), senderOptionsAvailable && /*#__PURE__*/jsxs("div", {
130
137
  className: "flex w-full flex-col gap-y-4",
131
138
  children: [/*#__PURE__*/jsxs("div", {
@@ -193,8 +200,10 @@ var buildMessagingProfileOptions = function buildMessagingProfileOptions() {
193
200
  };
194
201
  var buildTelnyxConfigurationValidationSchema = function buildTelnyxConfigurationValidationSchema() {
195
202
  var hasSenderOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
203
+ var isWebhooksRequired = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
196
204
  return yup.object().shape({
197
205
  apiKey: yup.string().required(t("neetoIntegrations.common.required")),
206
+ publicKey: isWebhooksRequired ? yup.string().required(t("neetoIntegrations.common.required")) : yup.string().nullable(),
198
207
  connectionType: yup.string().oneOf(Object.values(CONNECTION_TYPES)).required(t("neetoIntegrations.common.required")),
199
208
  phoneNumber: hasSenderOptions ? yup.mixed().when("connectionType", {
200
209
  is: CONNECTION_TYPES.PHONE_NUMBER,
@@ -255,7 +264,7 @@ var useTelnyxForm = function useTelnyxForm(_ref) {
255
264
  return buildMessagingProfileOptions((_senderOptions$messag = senderOptions === null || senderOptions === void 0 ? void 0 : senderOptions.messagingProfiles) !== null && _senderOptions$messag !== void 0 ? _senderOptions$messag : []);
256
265
  }, [senderOptions]);
257
266
  var initialValues = useMemo(function () {
258
- var _configuration$apiKey, _configuration$connec;
267
+ var _configuration$apiKey, _configuration$connec, _configuration$public;
259
268
  var selectedPhone = _findBy({
260
269
  label: configuration === null || configuration === void 0 ? void 0 : configuration.phoneNumber
261
270
  }, phoneNumberOptions);
@@ -266,7 +275,8 @@ var useTelnyxForm = function useTelnyxForm(_ref) {
266
275
  apiKey: (_configuration$apiKey = configuration === null || configuration === void 0 ? void 0 : configuration.apiKey) !== null && _configuration$apiKey !== void 0 ? _configuration$apiKey : "",
267
276
  connectionType: (_configuration$connec = configuration === null || configuration === void 0 ? void 0 : configuration.connectionType) !== null && _configuration$connec !== void 0 ? _configuration$connec : CONNECTION_TYPES.PHONE_NUMBER,
268
277
  phoneNumber: selectedPhone !== null && selectedPhone !== void 0 ? selectedPhone : null,
269
- messagingProfile: selectedProfile !== null && selectedProfile !== void 0 ? selectedProfile : null
278
+ messagingProfile: selectedProfile !== null && selectedProfile !== void 0 ? selectedProfile : null,
279
+ publicKey: (_configuration$public = configuration === null || configuration === void 0 ? void 0 : configuration.publicKey) !== null && _configuration$public !== void 0 ? _configuration$public : ""
270
280
  };
271
281
  }, [configuration, phoneNumberOptions, messagingProfileOptions]);
272
282
  var hasCredentials = typeof (credentials === null || credentials === void 0 ? void 0 : credentials.apiKey) === "string" && credentials.apiKey.trim().length > 0;
@@ -298,6 +308,7 @@ var useTelnyxForm = function useTelnyxForm(_ref) {
298
308
  payload.messaging_profile_id = (_values$messagingProf = values.messagingProfile) === null || _values$messagingProf === void 0 ? void 0 : _values$messagingProf.value;
299
309
  payload.messaging_profile_name = (_values$messagingProf2 = values.messagingProfile) === null || _values$messagingProf2 === void 0 ? void 0 : _values$messagingProf2.label;
300
310
  }
311
+ if (values.publicKey) payload.public_key = values.publicKey;
301
312
  _context.n = 2;
302
313
  return upsert(payload);
303
314
  case 2:
@@ -327,7 +338,9 @@ var Telnyx = function Telnyx(_ref) {
327
338
  _ref$onClose = _ref.onClose,
328
339
  onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
329
340
  _ref$onConnect = _ref.onConnect,
330
- onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect;
341
+ onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
342
+ _ref$isWebhooksRequir = _ref.isWebhooksRequired,
343
+ isWebhooksRequired = _ref$isWebhooksRequir === void 0 ? false : _ref$isWebhooksRequir;
331
344
  var _useTranslation = useTranslation(),
332
345
  t = _useTranslation.t;
333
346
  var initialFocusRef = useRef();
@@ -346,8 +359,8 @@ var Telnyx = function Telnyx(_ref) {
346
359
  return equals(initialValues, values) || isLoading;
347
360
  };
348
361
  var validationSchema = useMemo(function () {
349
- return buildTelnyxConfigurationValidationSchema(senderOptionsAvailable);
350
- }, [senderOptionsAvailable]);
362
+ return buildTelnyxConfigurationValidationSchema(senderOptionsAvailable, isWebhooksRequired);
363
+ }, [senderOptionsAvailable, isWebhooksRequired]);
351
364
  return /*#__PURE__*/jsx(FormikFormWrapper, {
352
365
  className: "w-full",
353
366
  formikProps: {
@@ -373,6 +386,7 @@ var Telnyx = function Telnyx(_ref) {
373
386
  children: /*#__PURE__*/jsx(Form, {
374
387
  formikProps: formikProps,
375
388
  initialFocusRef: initialFocusRef,
389
+ isWebhooksRequired: isWebhooksRequired,
376
390
  messagingProfileOptions: messagingProfileOptions,
377
391
  phoneNumberOptions: phoneNumberOptions,
378
392
  senderOptionsAvailable: senderOptionsAvailable