bitsnap-automations 0.1.0 → 0.1.1

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/logic.js CHANGED
@@ -1 +1 @@
1
- export { R as ACTION_CATALOG, z as ACTION_KINDS, P as AI_DECISION_MODES, r as DEFAULT_SCENARIO_FILTERS, B as DELAY_MAX_SECONDS, V as DELAY_MIN_SECONDS, H as EVENT_GROUP_ORDER, U as FILTER_APPS, W as MAX_ACTIONS_PER_SCENARIO, G as PICKER_APPS, K as RUN_STATUSES, q as RUN_STATUS_FILTERS, J as actionApp, Y as actionDefinition, l as actionErrors, u as availablePlaceholders, d as baseProductName, t as createAutomationsLabels, n as createLabelDateFormat, f as delayFromSeconds, p as delayToSeconds, m as emptyActionDraft, h as emptyScenarioDraft, g as firstActionWithError, _ as groupEvents, v as groupProductResults, i as hasActiveFilters, y as insertAt, F as learningProgressKey, b as moveItem, x as ownTextFromTemplate, S as parseFieldPath, C as parsePlaceholderError, w as placeholderErrorFromDetail, a as presentCategories, T as productNameFrom, E as rootProductId, I as ruleDestination, D as sameDraft, O as sameEmailTemplateRef, o as templateMatches, s as templateRequirements, c as templatesInCategory, k as unitSeconds, A as unknownActionDraft, j as urlHost, L as validateAiDecisionConfig, M as validateDelay, N as validateScenarioDraft } from "./chunks/logic-C_-LFO2j.js";
1
+ export { H as ACTION_CATALOG, U as ACTION_KINDS, R as AI_DECISION_MODES, r as DEFAULT_SCENARIO_FILTERS, W as DELAY_MAX_SECONDS, G as DELAY_MIN_SECONDS, K as EVENT_GROUP_ORDER, q as FILTER_APPS, J as MAX_ACTIONS_PER_SCENARIO, Y as PICKER_APPS, X as RUN_STATUSES, Z as RUN_STATUS_FILTERS, Q as actionApp, $ as actionDefinition, l as actionErrors, u as availablePlaceholders, d as baseProductName, t as createAutomationsLabels, n as createLabelDateFormat, f as delayFromSeconds, p as delayToSeconds, m as emptyActionDraft, h as emptyScenarioDraft, g as eventHasForm, _ as firstActionWithError, v as groupEvents, y as groupProductResults, i as hasActiveFilters, b as insertAt, z as learningProgressKey, x as moveItem, S as ownTextFromTemplate, C as parseFieldPath, w as parsePlaceholderError, T as picksNegativePersona, E as placeholderErrorFromDetail, a as presentCategories, D as productNameFrom, O as rootProductId, B as ruleDestination, k as sameDraft, A as sameEmailTemplateRef, o as templateMatches, s as templateRequirements, c as templatesInCategory, j as unitSeconds, M as unknownActionDraft, N as urlHost, V as validateAiDecisionConfig, P as validateDelay, F as validateScenarioDraft, I as withNegativePersonaRule, L as withTriggerEvent } from "./chunks/logic-DYkm-4Pc.js";
package/messages/en.json CHANGED
@@ -304,9 +304,14 @@
304
304
  "subscriptions": "Subscriptions",
305
305
  "access": "Access",
306
306
  "cart": "Cart",
307
- "testimonials": "Reviews"
307
+ "testimonials": "Reviews",
308
+ "personas": "Personas"
308
309
  },
309
310
  "events": {
311
+ "PERSONA_ASSIGNED": {
312
+ "label": "Customer got a persona",
313
+ "description": "The customer's persona changed to a new one (set by a rule or by hand)."
314
+ },
310
315
  "CONFIGURATOR_SUBMISSION_CREATED": {
311
316
  "label": "New configurator submission",
312
317
  "description": "A customer submitted a configurator form."
@@ -484,6 +489,12 @@
484
489
  "insert": "Insert:",
485
490
  "insertLabel": "Insert {{placeholder}}",
486
491
  "insertNone": "This event has no placeholders to insert.",
492
+ "insertPersona": "Persona",
493
+ "insertPersonaHint": "The customer reads what you insert. A persona's name is usually just for you and your team, so the description works better in a customer e-mail.",
494
+ "insertAnswers": "Form answers",
495
+ "insertAnswersNeedForm": "Pick a form in the filters above to insert its answers, such as the business type.",
496
+ "insertAnswersFailed": "The form's questions could not be loaded.",
497
+ "insertAnswersHint": "Long answers are cut to 200 characters.",
487
498
  "summaryTemplate": "E-mail from template “{{name}}”",
488
499
  "content": "Content source",
489
500
  "modeTemplate": "Template",
@@ -704,6 +715,30 @@
704
715
  "variantRemove": "Remove {{name}}",
705
716
  "variantSearch": "Search variants…",
706
717
  "variantNone": "No matching variants.",
718
+ "forms": "Form",
719
+ "formsAll": "All forms",
720
+ "formsHint": "If you pick no form, the scenario runs for submissions from every form.",
721
+ "formSearch": "Search forms…",
722
+ "formNone": "No matching forms.",
723
+ "formRemove": "Remove {{name}}",
724
+ "formsLoadFailed": "Could not load the forms.",
725
+ "formDeleted": "Deleted form",
726
+ "personas": "Persona",
727
+ "personasAll": "No persona filter",
728
+ "personasHint": "If you pick personas, the scenario runs only for customers who have one of them.",
729
+ "personasRulesOnly": "On a new submission the persona comes from the rules only, at the moment of the submission. A persona assigned later, by hand or after confirmation, triggers “Customer got a persona”.",
730
+ "personaSearch": "Search personas…",
731
+ "personaNone": "No matching personas.",
732
+ "personaRemove": "Remove {{name}}",
733
+ "personasLoadFailed": "Could not load the personas.",
734
+ "personasEmpty": "You have no personas yet. Describe your customer groups and send each one a different message.",
735
+ "personasEmptyLink": "Add personas",
736
+ "personaNegative": "negative",
737
+ "personaInactive": "{{name}} (inactive)",
738
+ "personaDeleted": "Deleted persona",
739
+ "skipNegative": "Skip the negative persona",
740
+ "skipNegativeHint": "Customers with the persona “{{name}}” will not get this automation.",
741
+ "skipNegativePicked": "The filter picks the persona “{{name}}”, so the scenario does not skip it. Remove it from the filter to skip it again.",
707
742
  "active": "Active",
708
743
  "activeHint": "A turned-off scenario ignores events. Its settings stay.",
709
744
  "actions": "Actions",
@@ -748,6 +783,11 @@
748
783
  "appNotConnected": "This action needs a connected app. Connect it in the Apps tab.",
749
784
  "permissionDenied": "You do not have permission to change automations.",
750
785
  "notFound": "Scenario not found. It may have been deleted.",
786
+ "formsNotApplicable": "This event has no form. Remove the selected forms or change the event.",
787
+ "formsInvalid": "Too many forms selected (50 at most) or a form has a wrong id.",
788
+ "formUnknown": "One of the selected forms no longer exists. Remove it from the filter.",
789
+ "personasInvalid": "Too many personas selected (20 at most) or a persona has a wrong id.",
790
+ "personaUnknown": "One of the selected personas no longer exists. Remove it from the filter.",
751
791
  "server": "The server rejected the value: {{detail}}",
752
792
  "emailTemplateRequired": "Pick an e-mail template or switch to own text.",
753
793
  "emailTemplateMissing": "This e-mail template was deleted. Pick another one or use own text.",
package/messages/pl.json CHANGED
@@ -310,9 +310,14 @@
310
310
  "subscriptions": "Subskrypcje",
311
311
  "access": "Dostęp",
312
312
  "cart": "Koszyk",
313
- "testimonials": "Opinie"
313
+ "testimonials": "Opinie",
314
+ "personas": "Persony"
314
315
  },
315
316
  "events": {
317
+ "PERSONA_ASSIGNED": {
318
+ "label": "Klient dostał personę",
319
+ "description": "Persona klienta zmieniła się na nową (przypisana regułą lub ręcznie)."
320
+ },
316
321
  "CONFIGURATOR_SUBMISSION_CREATED": {
317
322
  "label": "Nowe zgłoszenie z konfiguratora",
318
323
  "description": "Klient wysłał formularz konfiguratora."
@@ -492,6 +497,12 @@
492
497
  "insert": "Wstaw:",
493
498
  "insertLabel": "Wstaw {{placeholder}}",
494
499
  "insertNone": "To zdarzenie nie ma zmiennych do wstawienia.",
500
+ "insertPersona": "Persona",
501
+ "insertPersonaHint": "Klient zobaczy to, co wstawisz. Nazwa persony jest zwykle tylko dla Ciebie i zespołu, więc w mailu do klienta lepiej sprawdzi się opis.",
502
+ "insertAnswers": "Odpowiedzi z formularza",
503
+ "insertAnswersNeedForm": "Wybierz formularz w filtrach wyżej, a wstawisz odpowiedzi z niego, np. formę działalności.",
504
+ "insertAnswersFailed": "Nie udało się wczytać pytań formularza.",
505
+ "insertAnswersHint": "Długie odpowiedzi skracamy do 200 znaków.",
495
506
  "summaryTemplate": "E-mail z szablonu „{{name}}”",
496
507
  "content": "Źródło treści",
497
508
  "modeTemplate": "Szablon",
@@ -716,6 +727,30 @@
716
727
  "variantRemove": "Usuń {{name}}",
717
728
  "variantSearch": "Szukaj wariantu…",
718
729
  "variantNone": "Brak pasujących wariantów.",
730
+ "forms": "Formularz",
731
+ "formsAll": "Wszystkie formularze",
732
+ "formsHint": "Jeśli nie wybierzesz formularza, scenariusz uruchomi się dla zgłoszeń z każdego.",
733
+ "formSearch": "Szukaj formularza…",
734
+ "formNone": "Brak pasujących formularzy.",
735
+ "formRemove": "Usuń {{name}}",
736
+ "formsLoadFailed": "Nie udało się wczytać formularzy.",
737
+ "formDeleted": "Usunięty formularz",
738
+ "personas": "Persona",
739
+ "personasAll": "Bez filtra persony",
740
+ "personasHint": "Jeśli wybierzesz persony, scenariusz uruchomi się tylko dla klientów z jedną z nich.",
741
+ "personasRulesOnly": "Przy nowym zgłoszeniu persona pochodzi tylko z reguł, w chwili zgłoszenia. Personę przypisaną później, ręcznie albo po potwierdzeniu, łapie zdarzenie „Klient dostał personę”.",
742
+ "personaSearch": "Szukaj persony…",
743
+ "personaNone": "Brak pasujących person.",
744
+ "personaRemove": "Usuń {{name}}",
745
+ "personasLoadFailed": "Nie udało się wczytać person.",
746
+ "personasEmpty": "Nie masz jeszcze person. Opisz grupy klientów, a każdej wyślesz inną wiadomość.",
747
+ "personasEmptyLink": "Dodaj persony",
748
+ "personaNegative": "negatywna",
749
+ "personaInactive": "{{name}} (nieaktywna)",
750
+ "personaDeleted": "Usunięta persona",
751
+ "skipNegative": "Pomiń personę negatywną",
752
+ "skipNegativeHint": "Klienci z personą „{{name}}” nie dostaną tej automatyzacji.",
753
+ "skipNegativePicked": "Filtr wybiera personę „{{name}}”, więc scenariusz jej nie pomija. Usuń ją z filtra, aby znów ją pominąć.",
719
754
  "active": "Aktywny",
720
755
  "activeHint": "Wyłączony scenariusz nie reaguje na zdarzenia. Ustawienia zostają.",
721
756
  "actions": "Akcje",
@@ -760,6 +795,11 @@
760
795
  "appNotConnected": "Ta akcja wymaga podłączonej aplikacji. Podłącz ją w zakładce Aplikacje.",
761
796
  "permissionDenied": "Nie masz uprawnień do zmiany automatyzacji.",
762
797
  "notFound": "Nie znaleziono scenariusza. Mógł zostać usunięty.",
798
+ "formsNotApplicable": "To zdarzenie nie dotyczy formularzy. Usuń wybrane formularze albo zmień zdarzenie.",
799
+ "formsInvalid": "Wybrano za dużo formularzy (najwyżej 50) albo formularz ma zły identyfikator.",
800
+ "formUnknown": "Jednego z wybranych formularzy już nie ma. Usuń go z filtra.",
801
+ "personasInvalid": "Wybrano za dużo person (najwyżej 20) albo persona ma zły identyfikator.",
802
+ "personaUnknown": "Jednej z wybranych person już nie ma. Usuń ją z filtra.",
763
803
  "server": "Serwer odrzucił wartość: {{detail}}",
764
804
  "emailTemplateRequired": "Wybierz szablon e-maila albo przełącz na własny tekst.",
765
805
  "emailTemplateMissing": "Ten szablon e-maila został usunięty. Wybierz inny albo użyj własnej treści.",
package/messages.js CHANGED
@@ -338,9 +338,14 @@ const pl = {
338
338
  "subscriptions": "Subskrypcje",
339
339
  "access": "Dostęp",
340
340
  "cart": "Koszyk",
341
- "testimonials": "Opinie"
341
+ "testimonials": "Opinie",
342
+ "personas": "Persony"
342
343
  },
343
344
  "events": {
345
+ "PERSONA_ASSIGNED": {
346
+ "label": "Klient dostał personę",
347
+ "description": "Persona klienta zmieniła się na nową (przypisana regułą lub ręcznie)."
348
+ },
344
349
  "CONFIGURATOR_SUBMISSION_CREATED": {
345
350
  "label": "Nowe zgłoszenie z konfiguratora",
346
351
  "description": "Klient wysłał formularz konfiguratora."
@@ -520,6 +525,12 @@ const pl = {
520
525
  "insert": "Wstaw:",
521
526
  "insertLabel": "Wstaw {{placeholder}}",
522
527
  "insertNone": "To zdarzenie nie ma zmiennych do wstawienia.",
528
+ "insertPersona": "Persona",
529
+ "insertPersonaHint": "Klient zobaczy to, co wstawisz. Nazwa persony jest zwykle tylko dla Ciebie i zespołu, więc w mailu do klienta lepiej sprawdzi się opis.",
530
+ "insertAnswers": "Odpowiedzi z formularza",
531
+ "insertAnswersNeedForm": "Wybierz formularz w filtrach wyżej, a wstawisz odpowiedzi z niego, np. formę działalności.",
532
+ "insertAnswersFailed": "Nie udało się wczytać pytań formularza.",
533
+ "insertAnswersHint": "Długie odpowiedzi skracamy do 200 znaków.",
523
534
  "summaryTemplate": "E-mail z szablonu „{{name}}”",
524
535
  "content": "Źródło treści",
525
536
  "modeTemplate": "Szablon",
@@ -742,6 +753,30 @@ const pl = {
742
753
  "variantRemove": "Usuń {{name}}",
743
754
  "variantSearch": "Szukaj wariantu…",
744
755
  "variantNone": "Brak pasujących wariantów.",
756
+ "forms": "Formularz",
757
+ "formsAll": "Wszystkie formularze",
758
+ "formsHint": "Jeśli nie wybierzesz formularza, scenariusz uruchomi się dla zgłoszeń z każdego.",
759
+ "formSearch": "Szukaj formularza…",
760
+ "formNone": "Brak pasujących formularzy.",
761
+ "formRemove": "Usuń {{name}}",
762
+ "formsLoadFailed": "Nie udało się wczytać formularzy.",
763
+ "formDeleted": "Usunięty formularz",
764
+ "personas": "Persona",
765
+ "personasAll": "Bez filtra persony",
766
+ "personasHint": "Jeśli wybierzesz persony, scenariusz uruchomi się tylko dla klientów z jedną z nich.",
767
+ "personasRulesOnly": "Przy nowym zgłoszeniu persona pochodzi tylko z reguł, w chwili zgłoszenia. Personę przypisaną później, ręcznie albo po potwierdzeniu, łapie zdarzenie „Klient dostał personę”.",
768
+ "personaSearch": "Szukaj persony…",
769
+ "personaNone": "Brak pasujących person.",
770
+ "personaRemove": "Usuń {{name}}",
771
+ "personasLoadFailed": "Nie udało się wczytać person.",
772
+ "personasEmpty": "Nie masz jeszcze person. Opisz grupy klientów, a każdej wyślesz inną wiadomość.",
773
+ "personasEmptyLink": "Dodaj persony",
774
+ "personaNegative": "negatywna",
775
+ "personaInactive": "{{name}} (nieaktywna)",
776
+ "personaDeleted": "Usunięta persona",
777
+ "skipNegative": "Pomiń personę negatywną",
778
+ "skipNegativeHint": "Klienci z personą „{{name}}” nie dostaną tej automatyzacji.",
779
+ "skipNegativePicked": "Filtr wybiera personę „{{name}}”, więc scenariusz jej nie pomija. Usuń ją z filtra, aby znów ją pominąć.",
745
780
  "active": "Aktywny",
746
781
  "activeHint": "Wyłączony scenariusz nie reaguje na zdarzenia. Ustawienia zostają.",
747
782
  "actions": "Akcje",
@@ -786,6 +821,11 @@ const pl = {
786
821
  "appNotConnected": "Ta akcja wymaga podłączonej aplikacji. Podłącz ją w zakładce Aplikacje.",
787
822
  "permissionDenied": "Nie masz uprawnień do zmiany automatyzacji.",
788
823
  "notFound": "Nie znaleziono scenariusza. Mógł zostać usunięty.",
824
+ "formsNotApplicable": "To zdarzenie nie dotyczy formularzy. Usuń wybrane formularze albo zmień zdarzenie.",
825
+ "formsInvalid": "Wybrano za dużo formularzy (najwyżej 50) albo formularz ma zły identyfikator.",
826
+ "formUnknown": "Jednego z wybranych formularzy już nie ma. Usuń go z filtra.",
827
+ "personasInvalid": "Wybrano za dużo person (najwyżej 20) albo persona ma zły identyfikator.",
828
+ "personaUnknown": "Jednej z wybranych person już nie ma. Usuń ją z filtra.",
789
829
  "server": "Serwer odrzucił wartość: {{detail}}",
790
830
  "emailTemplateRequired": "Wybierz szablon e-maila albo przełącz na własny tekst.",
791
831
  "emailTemplateMissing": "Ten szablon e-maila został usunięty. Wybierz inny albo użyj własnej treści.",
@@ -1121,9 +1161,14 @@ const en = {
1121
1161
  "subscriptions": "Subscriptions",
1122
1162
  "access": "Access",
1123
1163
  "cart": "Cart",
1124
- "testimonials": "Reviews"
1164
+ "testimonials": "Reviews",
1165
+ "personas": "Personas"
1125
1166
  },
1126
1167
  "events": {
1168
+ "PERSONA_ASSIGNED": {
1169
+ "label": "Customer got a persona",
1170
+ "description": "The customer's persona changed to a new one (set by a rule or by hand)."
1171
+ },
1127
1172
  "CONFIGURATOR_SUBMISSION_CREATED": {
1128
1173
  "label": "New configurator submission",
1129
1174
  "description": "A customer submitted a configurator form."
@@ -1301,6 +1346,12 @@ const en = {
1301
1346
  "insert": "Insert:",
1302
1347
  "insertLabel": "Insert {{placeholder}}",
1303
1348
  "insertNone": "This event has no placeholders to insert.",
1349
+ "insertPersona": "Persona",
1350
+ "insertPersonaHint": "The customer reads what you insert. A persona's name is usually just for you and your team, so the description works better in a customer e-mail.",
1351
+ "insertAnswers": "Form answers",
1352
+ "insertAnswersNeedForm": "Pick a form in the filters above to insert its answers, such as the business type.",
1353
+ "insertAnswersFailed": "The form's questions could not be loaded.",
1354
+ "insertAnswersHint": "Long answers are cut to 200 characters.",
1304
1355
  "summaryTemplate": "E-mail from template “{{name}}”",
1305
1356
  "content": "Content source",
1306
1357
  "modeTemplate": "Template",
@@ -1519,6 +1570,30 @@ const en = {
1519
1570
  "variantRemove": "Remove {{name}}",
1520
1571
  "variantSearch": "Search variants…",
1521
1572
  "variantNone": "No matching variants.",
1573
+ "forms": "Form",
1574
+ "formsAll": "All forms",
1575
+ "formsHint": "If you pick no form, the scenario runs for submissions from every form.",
1576
+ "formSearch": "Search forms…",
1577
+ "formNone": "No matching forms.",
1578
+ "formRemove": "Remove {{name}}",
1579
+ "formsLoadFailed": "Could not load the forms.",
1580
+ "formDeleted": "Deleted form",
1581
+ "personas": "Persona",
1582
+ "personasAll": "No persona filter",
1583
+ "personasHint": "If you pick personas, the scenario runs only for customers who have one of them.",
1584
+ "personasRulesOnly": "On a new submission the persona comes from the rules only, at the moment of the submission. A persona assigned later, by hand or after confirmation, triggers “Customer got a persona”.",
1585
+ "personaSearch": "Search personas…",
1586
+ "personaNone": "No matching personas.",
1587
+ "personaRemove": "Remove {{name}}",
1588
+ "personasLoadFailed": "Could not load the personas.",
1589
+ "personasEmpty": "You have no personas yet. Describe your customer groups and send each one a different message.",
1590
+ "personasEmptyLink": "Add personas",
1591
+ "personaNegative": "negative",
1592
+ "personaInactive": "{{name}} (inactive)",
1593
+ "personaDeleted": "Deleted persona",
1594
+ "skipNegative": "Skip the negative persona",
1595
+ "skipNegativeHint": "Customers with the persona “{{name}}” will not get this automation.",
1596
+ "skipNegativePicked": "The filter picks the persona “{{name}}”, so the scenario does not skip it. Remove it from the filter to skip it again.",
1522
1597
  "active": "Active",
1523
1598
  "activeHint": "A turned-off scenario ignores events. Its settings stay.",
1524
1599
  "actions": "Actions",
@@ -1563,6 +1638,11 @@ const en = {
1563
1638
  "appNotConnected": "This action needs a connected app. Connect it in the Apps tab.",
1564
1639
  "permissionDenied": "You do not have permission to change automations.",
1565
1640
  "notFound": "Scenario not found. It may have been deleted.",
1641
+ "formsNotApplicable": "This event has no form. Remove the selected forms or change the event.",
1642
+ "formsInvalid": "Too many forms selected (50 at most) or a form has a wrong id.",
1643
+ "formUnknown": "One of the selected forms no longer exists. Remove it from the filter.",
1644
+ "personasInvalid": "Too many personas selected (20 at most) or a persona has a wrong id.",
1645
+ "personaUnknown": "One of the selected personas no longer exists. Remove it from the filter.",
1566
1646
  "server": "The server rejected the value: {{detail}}",
1567
1647
  "emailTemplateRequired": "Pick an e-mail template or switch to own text.",
1568
1648
  "emailTemplateMissing": "This e-mail template was deleted. Pick another one or use own text.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitsnap-automations",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Automations UI of Bitsnap (scenario list, scenario editor with action cards, run history): props-only views, view models and pure logic. The host supplies data, labels, permissions and callbacks.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Piotr Michalik",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "782b31ffe92b2d34a6fbc93f48d29991033c4eb3"
51
+ "gitHead": "e4e9048afd9ea55561808df43491427948f294ba"
52
52
  }