@bigbinary/neeto-webhooks-frontend 1.4.1 → 1.5.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/dist/index.cjs.js +184 -170
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +185 -171
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Link, useParams, useRouteMatch, Switch, Route } from 'react-router-dom'
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { dateFormat, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
5
5
|
import { HamburgerMenu, Search, Right, Close, Check, Info, MenuHorizontal } from '@bigbinary/neeto-icons';
|
|
6
|
-
import { Button, Typography, Input, Spinner, Tab, Accordion, Tag, NoData, Pane,
|
|
6
|
+
import { Button, Typography, Input, Spinner, Tab, Accordion, Tag, NoData, Pane, Dropdown, Alert } from '@bigbinary/neetoui';
|
|
7
7
|
import { isEmpty, pluck, mergeDeepLeft } from 'ramda';
|
|
8
8
|
import { Neeto } from '@bigbinary/neeto-icons/logos';
|
|
9
9
|
import { QueryClient, QueryCache, QueryClientProvider, useQuery, useQueryClient, useMutation } from 'react-query';
|
|
@@ -4885,6 +4885,51 @@ var useDestroyWebhook = function useDestroyWebhook(options) {
|
|
|
4885
4885
|
});
|
|
4886
4886
|
};
|
|
4887
4887
|
|
|
4888
|
+
function cov_1owqdys1co() {
|
|
4889
|
+
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/constants/urls.js";
|
|
4890
|
+
var hash = "646ee44063db873cac5666e02d3c8fcd3c62f653";
|
|
4891
|
+
var global = new Function("return this")();
|
|
4892
|
+
var gcv = "__coverage__";
|
|
4893
|
+
var coverageData = {
|
|
4894
|
+
path: "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/constants/urls.js",
|
|
4895
|
+
statementMap: {
|
|
4896
|
+
"0": {
|
|
4897
|
+
start: {
|
|
4898
|
+
line: 1,
|
|
4899
|
+
column: 32
|
|
4900
|
+
},
|
|
4901
|
+
end: {
|
|
4902
|
+
line: 1,
|
|
4903
|
+
column: 76
|
|
4904
|
+
}
|
|
4905
|
+
}
|
|
4906
|
+
},
|
|
4907
|
+
fnMap: {},
|
|
4908
|
+
branchMap: {},
|
|
4909
|
+
s: {
|
|
4910
|
+
"0": 0
|
|
4911
|
+
},
|
|
4912
|
+
f: {},
|
|
4913
|
+
b: {},
|
|
4914
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
4915
|
+
hash: "646ee44063db873cac5666e02d3c8fcd3c62f653"
|
|
4916
|
+
};
|
|
4917
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
4918
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
4919
|
+
coverage[path] = coverageData;
|
|
4920
|
+
}
|
|
4921
|
+
var actualCoverage = coverage[path];
|
|
4922
|
+
{
|
|
4923
|
+
// @ts-ignore
|
|
4924
|
+
cov_1owqdys1co = function () {
|
|
4925
|
+
return actualCoverage;
|
|
4926
|
+
};
|
|
4927
|
+
}
|
|
4928
|
+
return actualCoverage;
|
|
4929
|
+
}
|
|
4930
|
+
cov_1owqdys1co();
|
|
4931
|
+
var WEBHOOK_HELP_URL = (cov_1owqdys1co().s[0]++, "https://help.neetocal.com/articles/webhook");
|
|
4932
|
+
|
|
4888
4933
|
function _assertThisInitialized(self) {
|
|
4889
4934
|
if (self === void 0) {
|
|
4890
4935
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -7611,7 +7656,7 @@ instance.loadLanguages;
|
|
|
7611
7656
|
|
|
7612
7657
|
function cov_cbigk78w1() {
|
|
7613
7658
|
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/constants.js";
|
|
7614
|
-
var hash = "
|
|
7659
|
+
var hash = "406540f361b63e66d2909c4920304cefd0c66a31";
|
|
7615
7660
|
var global = new Function("return this")();
|
|
7616
7661
|
var gcv = "__coverage__";
|
|
7617
7662
|
var coverageData = {
|
|
@@ -7646,16 +7691,6 @@ function cov_cbigk78w1() {
|
|
|
7646
7691
|
line: 20,
|
|
7647
7692
|
column: 11
|
|
7648
7693
|
}
|
|
7649
|
-
},
|
|
7650
|
-
"3": {
|
|
7651
|
-
start: {
|
|
7652
|
-
line: 26,
|
|
7653
|
-
column: 2
|
|
7654
|
-
},
|
|
7655
|
-
end: {
|
|
7656
|
-
line: 26,
|
|
7657
|
-
column: 90
|
|
7658
|
-
}
|
|
7659
7694
|
}
|
|
7660
7695
|
},
|
|
7661
7696
|
fnMap: {
|
|
@@ -7712,8 +7747,7 @@ function cov_cbigk78w1() {
|
|
|
7712
7747
|
s: {
|
|
7713
7748
|
"0": 0,
|
|
7714
7749
|
"1": 0,
|
|
7715
|
-
"2": 0
|
|
7716
|
-
"3": 0
|
|
7750
|
+
"2": 0
|
|
7717
7751
|
},
|
|
7718
7752
|
f: {
|
|
7719
7753
|
"0": 0,
|
|
@@ -7721,7 +7755,7 @@ function cov_cbigk78w1() {
|
|
|
7721
7755
|
},
|
|
7722
7756
|
b: {},
|
|
7723
7757
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7724
|
-
hash: "
|
|
7758
|
+
hash: "406540f361b63e66d2909c4920304cefd0c66a31"
|
|
7725
7759
|
};
|
|
7726
7760
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
7727
7761
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -7750,11 +7784,10 @@ var VALIDATION_SCHEMA = function VALIDATION_SCHEMA(webhooks) {
|
|
|
7750
7784
|
secret: yup.string().trim()
|
|
7751
7785
|
});
|
|
7752
7786
|
};
|
|
7753
|
-
var WEBHOOK_SECRET_KEY_HELP_URL = (cov_cbigk78w1().s[3]++, "https://neetocalhelp.neetokb.com/articles/webhooks#securing-webhook-using-a-secret-key");
|
|
7754
7787
|
|
|
7755
7788
|
function cov_t5m44crof() {
|
|
7756
7789
|
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/AddWebhookPane.jsx";
|
|
7757
|
-
var hash = "
|
|
7790
|
+
var hash = "2c9d4342641749ebdaaced093d065c7374a61586";
|
|
7758
7791
|
var global = new Function("return this")();
|
|
7759
7792
|
var gcv = "__coverage__";
|
|
7760
7793
|
var coverageData = {
|
|
@@ -7762,95 +7795,85 @@ function cov_t5m44crof() {
|
|
|
7762
7795
|
statementMap: {
|
|
7763
7796
|
"0": {
|
|
7764
7797
|
start: {
|
|
7765
|
-
line:
|
|
7798
|
+
line: 17,
|
|
7766
7799
|
column: 23
|
|
7767
7800
|
},
|
|
7768
7801
|
end: {
|
|
7769
|
-
line:
|
|
7802
|
+
line: 114,
|
|
7770
7803
|
column: 1
|
|
7771
7804
|
}
|
|
7772
7805
|
},
|
|
7773
7806
|
"1": {
|
|
7774
7807
|
start: {
|
|
7775
|
-
line:
|
|
7808
|
+
line: 25,
|
|
7776
7809
|
column: 16
|
|
7777
7810
|
},
|
|
7778
7811
|
end: {
|
|
7779
|
-
line:
|
|
7812
|
+
line: 25,
|
|
7780
7813
|
column: 32
|
|
7781
7814
|
}
|
|
7782
7815
|
},
|
|
7783
7816
|
"2": {
|
|
7784
7817
|
start: {
|
|
7785
|
-
line:
|
|
7818
|
+
line: 26,
|
|
7786
7819
|
column: 36
|
|
7787
7820
|
},
|
|
7788
7821
|
end: {
|
|
7789
|
-
line:
|
|
7822
|
+
line: 28,
|
|
7790
7823
|
column: 4
|
|
7791
7824
|
}
|
|
7792
7825
|
},
|
|
7793
7826
|
"3": {
|
|
7794
7827
|
start: {
|
|
7795
|
-
line:
|
|
7828
|
+
line: 27,
|
|
7796
7829
|
column: 21
|
|
7797
7830
|
},
|
|
7798
7831
|
end: {
|
|
7799
|
-
line:
|
|
7832
|
+
line: 27,
|
|
7800
7833
|
column: 30
|
|
7801
7834
|
}
|
|
7802
7835
|
},
|
|
7803
7836
|
"4": {
|
|
7804
7837
|
start: {
|
|
7805
|
-
line:
|
|
7838
|
+
line: 29,
|
|
7806
7839
|
column: 42
|
|
7807
7840
|
},
|
|
7808
7841
|
end: {
|
|
7809
|
-
line:
|
|
7842
|
+
line: 29,
|
|
7810
7843
|
column: 74
|
|
7811
7844
|
}
|
|
7812
7845
|
},
|
|
7813
7846
|
"5": {
|
|
7814
7847
|
start: {
|
|
7815
|
-
line:
|
|
7848
|
+
line: 30,
|
|
7816
7849
|
column: 36
|
|
7817
7850
|
},
|
|
7818
7851
|
end: {
|
|
7819
|
-
line:
|
|
7852
|
+
line: 32,
|
|
7820
7853
|
column: 4
|
|
7821
7854
|
}
|
|
7822
7855
|
},
|
|
7823
7856
|
"6": {
|
|
7824
7857
|
start: {
|
|
7825
|
-
line:
|
|
7858
|
+
line: 31,
|
|
7826
7859
|
column: 21
|
|
7827
7860
|
},
|
|
7828
7861
|
end: {
|
|
7829
|
-
line:
|
|
7862
|
+
line: 31,
|
|
7830
7863
|
column: 30
|
|
7831
7864
|
}
|
|
7832
7865
|
},
|
|
7833
7866
|
"7": {
|
|
7834
7867
|
start: {
|
|
7835
|
-
line:
|
|
7868
|
+
line: 33,
|
|
7836
7869
|
column: 22
|
|
7837
7870
|
},
|
|
7838
7871
|
end: {
|
|
7839
|
-
line:
|
|
7872
|
+
line: 33,
|
|
7840
7873
|
column: 30
|
|
7841
7874
|
}
|
|
7842
7875
|
},
|
|
7843
7876
|
"8": {
|
|
7844
|
-
start: {
|
|
7845
|
-
line: 33,
|
|
7846
|
-
column: 21
|
|
7847
|
-
},
|
|
7848
|
-
end: {
|
|
7849
|
-
line: 33,
|
|
7850
|
-
column: 29
|
|
7851
|
-
}
|
|
7852
|
-
},
|
|
7853
|
-
"9": {
|
|
7854
7877
|
start: {
|
|
7855
7878
|
line: 35,
|
|
7856
7879
|
column: 24
|
|
@@ -7860,7 +7883,7 @@ function cov_t5m44crof() {
|
|
|
7860
7883
|
column: 34
|
|
7861
7884
|
}
|
|
7862
7885
|
},
|
|
7863
|
-
"
|
|
7886
|
+
"9": {
|
|
7864
7887
|
start: {
|
|
7865
7888
|
line: 39,
|
|
7866
7889
|
column: 23
|
|
@@ -7870,7 +7893,7 @@ function cov_t5m44crof() {
|
|
|
7870
7893
|
column: 3
|
|
7871
7894
|
}
|
|
7872
7895
|
},
|
|
7873
|
-
"
|
|
7896
|
+
"10": {
|
|
7874
7897
|
start: {
|
|
7875
7898
|
line: 40,
|
|
7876
7899
|
column: 4
|
|
@@ -7880,33 +7903,33 @@ function cov_t5m44crof() {
|
|
|
7880
7903
|
column: 11
|
|
7881
7904
|
}
|
|
7882
7905
|
},
|
|
7883
|
-
"
|
|
7906
|
+
"11": {
|
|
7884
7907
|
start: {
|
|
7885
7908
|
line: 49,
|
|
7886
7909
|
column: 2
|
|
7887
7910
|
},
|
|
7888
7911
|
end: {
|
|
7889
|
-
line:
|
|
7912
|
+
line: 113,
|
|
7890
7913
|
column: 4
|
|
7891
7914
|
}
|
|
7892
7915
|
},
|
|
7893
|
-
"
|
|
7916
|
+
"12": {
|
|
7894
7917
|
start: {
|
|
7895
|
-
line:
|
|
7918
|
+
line: 71,
|
|
7896
7919
|
column: 30
|
|
7897
7920
|
},
|
|
7898
7921
|
end: {
|
|
7899
|
-
line:
|
|
7922
|
+
line: 71,
|
|
7900
7923
|
column: 76
|
|
7901
7924
|
}
|
|
7902
7925
|
},
|
|
7903
|
-
"
|
|
7926
|
+
"13": {
|
|
7904
7927
|
start: {
|
|
7905
|
-
line:
|
|
7928
|
+
line: 75,
|
|
7906
7929
|
column: 10
|
|
7907
7930
|
},
|
|
7908
7931
|
end: {
|
|
7909
|
-
line:
|
|
7932
|
+
line: 109,
|
|
7910
7933
|
column: 13
|
|
7911
7934
|
}
|
|
7912
7935
|
}
|
|
@@ -7916,73 +7939,73 @@ function cov_t5m44crof() {
|
|
|
7916
7939
|
name: "(anonymous_0)",
|
|
7917
7940
|
decl: {
|
|
7918
7941
|
start: {
|
|
7919
|
-
line:
|
|
7942
|
+
line: 17,
|
|
7920
7943
|
column: 23
|
|
7921
7944
|
},
|
|
7922
7945
|
end: {
|
|
7923
|
-
line:
|
|
7946
|
+
line: 17,
|
|
7924
7947
|
column: 24
|
|
7925
7948
|
}
|
|
7926
7949
|
},
|
|
7927
7950
|
loc: {
|
|
7928
7951
|
start: {
|
|
7929
|
-
line:
|
|
7952
|
+
line: 24,
|
|
7930
7953
|
column: 6
|
|
7931
7954
|
},
|
|
7932
7955
|
end: {
|
|
7933
|
-
line:
|
|
7956
|
+
line: 114,
|
|
7934
7957
|
column: 1
|
|
7935
7958
|
}
|
|
7936
7959
|
},
|
|
7937
|
-
line:
|
|
7960
|
+
line: 24
|
|
7938
7961
|
},
|
|
7939
7962
|
"1": {
|
|
7940
7963
|
name: "(anonymous_1)",
|
|
7941
7964
|
decl: {
|
|
7942
7965
|
start: {
|
|
7943
|
-
line:
|
|
7966
|
+
line: 27,
|
|
7944
7967
|
column: 15
|
|
7945
7968
|
},
|
|
7946
7969
|
end: {
|
|
7947
|
-
line:
|
|
7970
|
+
line: 27,
|
|
7948
7971
|
column: 16
|
|
7949
7972
|
}
|
|
7950
7973
|
},
|
|
7951
7974
|
loc: {
|
|
7952
7975
|
start: {
|
|
7953
|
-
line:
|
|
7976
|
+
line: 27,
|
|
7954
7977
|
column: 21
|
|
7955
7978
|
},
|
|
7956
7979
|
end: {
|
|
7957
|
-
line:
|
|
7980
|
+
line: 27,
|
|
7958
7981
|
column: 30
|
|
7959
7982
|
}
|
|
7960
7983
|
},
|
|
7961
|
-
line:
|
|
7984
|
+
line: 27
|
|
7962
7985
|
},
|
|
7963
7986
|
"2": {
|
|
7964
7987
|
name: "(anonymous_2)",
|
|
7965
7988
|
decl: {
|
|
7966
7989
|
start: {
|
|
7967
|
-
line:
|
|
7990
|
+
line: 31,
|
|
7968
7991
|
column: 15
|
|
7969
7992
|
},
|
|
7970
7993
|
end: {
|
|
7971
|
-
line:
|
|
7994
|
+
line: 31,
|
|
7972
7995
|
column: 16
|
|
7973
7996
|
}
|
|
7974
7997
|
},
|
|
7975
7998
|
loc: {
|
|
7976
7999
|
start: {
|
|
7977
|
-
line:
|
|
8000
|
+
line: 31,
|
|
7978
8001
|
column: 21
|
|
7979
8002
|
},
|
|
7980
8003
|
end: {
|
|
7981
|
-
line:
|
|
8004
|
+
line: 31,
|
|
7982
8005
|
column: 30
|
|
7983
8006
|
}
|
|
7984
8007
|
},
|
|
7985
|
-
line:
|
|
8008
|
+
line: 31
|
|
7986
8009
|
},
|
|
7987
8010
|
"3": {
|
|
7988
8011
|
name: "(anonymous_3)",
|
|
@@ -8012,99 +8035,99 @@ function cov_t5m44crof() {
|
|
|
8012
8035
|
name: "(anonymous_4)",
|
|
8013
8036
|
decl: {
|
|
8014
8037
|
start: {
|
|
8015
|
-
line:
|
|
8038
|
+
line: 71,
|
|
8016
8039
|
column: 20
|
|
8017
8040
|
},
|
|
8018
8041
|
end: {
|
|
8019
|
-
line:
|
|
8042
|
+
line: 71,
|
|
8020
8043
|
column: 21
|
|
8021
8044
|
}
|
|
8022
8045
|
},
|
|
8023
8046
|
loc: {
|
|
8024
8047
|
start: {
|
|
8025
|
-
line:
|
|
8048
|
+
line: 71,
|
|
8026
8049
|
column: 30
|
|
8027
8050
|
},
|
|
8028
8051
|
end: {
|
|
8029
|
-
line:
|
|
8052
|
+
line: 71,
|
|
8030
8053
|
column: 76
|
|
8031
8054
|
}
|
|
8032
8055
|
},
|
|
8033
|
-
line:
|
|
8056
|
+
line: 71
|
|
8034
8057
|
},
|
|
8035
8058
|
"5": {
|
|
8036
8059
|
name: "(anonymous_5)",
|
|
8037
8060
|
decl: {
|
|
8038
8061
|
start: {
|
|
8039
|
-
line:
|
|
8062
|
+
line: 74,
|
|
8040
8063
|
column: 9
|
|
8041
8064
|
},
|
|
8042
8065
|
end: {
|
|
8043
|
-
line:
|
|
8066
|
+
line: 74,
|
|
8044
8067
|
column: 10
|
|
8045
8068
|
}
|
|
8046
8069
|
},
|
|
8047
8070
|
loc: {
|
|
8048
8071
|
start: {
|
|
8049
|
-
line:
|
|
8072
|
+
line: 75,
|
|
8050
8073
|
column: 10
|
|
8051
8074
|
},
|
|
8052
8075
|
end: {
|
|
8053
|
-
line:
|
|
8076
|
+
line: 109,
|
|
8054
8077
|
column: 13
|
|
8055
8078
|
}
|
|
8056
8079
|
},
|
|
8057
|
-
line:
|
|
8080
|
+
line: 75
|
|
8058
8081
|
}
|
|
8059
8082
|
},
|
|
8060
8083
|
branchMap: {
|
|
8061
8084
|
"0": {
|
|
8062
8085
|
loc: {
|
|
8063
8086
|
start: {
|
|
8064
|
-
line:
|
|
8087
|
+
line: 29,
|
|
8065
8088
|
column: 16
|
|
8066
8089
|
},
|
|
8067
8090
|
end: {
|
|
8068
|
-
line:
|
|
8091
|
+
line: 29,
|
|
8069
8092
|
column: 37
|
|
8070
8093
|
}
|
|
8071
8094
|
},
|
|
8072
8095
|
type: "default-arg",
|
|
8073
8096
|
locations: [{
|
|
8074
8097
|
start: {
|
|
8075
|
-
line:
|
|
8098
|
+
line: 29,
|
|
8076
8099
|
column: 35
|
|
8077
8100
|
},
|
|
8078
8101
|
end: {
|
|
8079
|
-
line:
|
|
8102
|
+
line: 29,
|
|
8080
8103
|
column: 37
|
|
8081
8104
|
}
|
|
8082
8105
|
}],
|
|
8083
|
-
line:
|
|
8106
|
+
line: 29
|
|
8084
8107
|
},
|
|
8085
8108
|
"1": {
|
|
8086
8109
|
loc: {
|
|
8087
8110
|
start: {
|
|
8088
|
-
line:
|
|
8111
|
+
line: 29,
|
|
8089
8112
|
column: 18
|
|
8090
8113
|
},
|
|
8091
8114
|
end: {
|
|
8092
|
-
line:
|
|
8115
|
+
line: 29,
|
|
8093
8116
|
column: 30
|
|
8094
8117
|
}
|
|
8095
8118
|
},
|
|
8096
8119
|
type: "default-arg",
|
|
8097
8120
|
locations: [{
|
|
8098
8121
|
start: {
|
|
8099
|
-
line:
|
|
8122
|
+
line: 29,
|
|
8100
8123
|
column: 28
|
|
8101
8124
|
},
|
|
8102
8125
|
end: {
|
|
8103
|
-
line:
|
|
8126
|
+
line: 29,
|
|
8104
8127
|
column: 30
|
|
8105
8128
|
}
|
|
8106
8129
|
}],
|
|
8107
|
-
line:
|
|
8130
|
+
line: 29
|
|
8108
8131
|
},
|
|
8109
8132
|
"2": {
|
|
8110
8133
|
loc: {
|
|
@@ -8175,35 +8198,35 @@ function cov_t5m44crof() {
|
|
|
8175
8198
|
"4": {
|
|
8176
8199
|
loc: {
|
|
8177
8200
|
start: {
|
|
8178
|
-
line:
|
|
8201
|
+
line: 57,
|
|
8179
8202
|
column: 11
|
|
8180
8203
|
},
|
|
8181
8204
|
end: {
|
|
8182
|
-
line:
|
|
8205
|
+
line: 57,
|
|
8183
8206
|
column: 66
|
|
8184
8207
|
}
|
|
8185
8208
|
},
|
|
8186
8209
|
type: "cond-expr",
|
|
8187
8210
|
locations: [{
|
|
8188
8211
|
start: {
|
|
8189
|
-
line:
|
|
8212
|
+
line: 57,
|
|
8190
8213
|
column: 30
|
|
8191
8214
|
},
|
|
8192
8215
|
end: {
|
|
8193
|
-
line:
|
|
8216
|
+
line: 57,
|
|
8194
8217
|
column: 47
|
|
8195
8218
|
}
|
|
8196
8219
|
}, {
|
|
8197
8220
|
start: {
|
|
8198
|
-
line:
|
|
8221
|
+
line: 57,
|
|
8199
8222
|
column: 50
|
|
8200
8223
|
},
|
|
8201
8224
|
end: {
|
|
8202
|
-
line:
|
|
8225
|
+
line: 57,
|
|
8203
8226
|
column: 66
|
|
8204
8227
|
}
|
|
8205
8228
|
}],
|
|
8206
|
-
line:
|
|
8229
|
+
line: 57
|
|
8207
8230
|
}
|
|
8208
8231
|
},
|
|
8209
8232
|
s: {
|
|
@@ -8220,8 +8243,7 @@ function cov_t5m44crof() {
|
|
|
8220
8243
|
"10": 0,
|
|
8221
8244
|
"11": 0,
|
|
8222
8245
|
"12": 0,
|
|
8223
|
-
"13": 0
|
|
8224
|
-
"14": 0
|
|
8246
|
+
"13": 0
|
|
8225
8247
|
},
|
|
8226
8248
|
f: {
|
|
8227
8249
|
"0": 0,
|
|
@@ -8239,7 +8261,7 @@ function cov_t5m44crof() {
|
|
|
8239
8261
|
"4": [0, 0]
|
|
8240
8262
|
},
|
|
8241
8263
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
8242
|
-
hash: "
|
|
8264
|
+
hash: "2c9d4342641749ebdaaced093d065c7374a61586"
|
|
8243
8265
|
};
|
|
8244
8266
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
8245
8267
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -8290,15 +8312,14 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8290
8312
|
})),
|
|
8291
8313
|
updateWebhook = _ref5.mutate;
|
|
8292
8314
|
var endpointRef = (cov_t5m44crof().s[7]++, useRef());
|
|
8293
|
-
var
|
|
8294
|
-
var initialValues = (cov_t5m44crof().s[9]++, editingWebhookId ? (cov_t5m44crof().b[2][0]++, webhook) : (cov_t5m44crof().b[2][1]++, {
|
|
8315
|
+
var initialValues = (cov_t5m44crof().s[8]++, editingWebhookId ? (cov_t5m44crof().b[2][0]++, webhook) : (cov_t5m44crof().b[2][1]++, {
|
|
8295
8316
|
endpoint: "",
|
|
8296
8317
|
secret: ""
|
|
8297
8318
|
}));
|
|
8298
|
-
cov_t5m44crof().s[
|
|
8319
|
+
cov_t5m44crof().s[9]++;
|
|
8299
8320
|
var handleSubmit = function handleSubmit(values) {
|
|
8300
8321
|
cov_t5m44crof().f[3]++;
|
|
8301
|
-
cov_t5m44crof().s[
|
|
8322
|
+
cov_t5m44crof().s[10]++;
|
|
8302
8323
|
editingWebhookId ? (cov_t5m44crof().b[3][0]++, updateWebhook({
|
|
8303
8324
|
id: editingWebhookId,
|
|
8304
8325
|
payload: values
|
|
@@ -8307,22 +8328,32 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8307
8328
|
entityType: entityType
|
|
8308
8329
|
})));
|
|
8309
8330
|
};
|
|
8310
|
-
cov_t5m44crof().s[
|
|
8331
|
+
cov_t5m44crof().s[11]++;
|
|
8311
8332
|
return /*#__PURE__*/React.createElement(Pane, {
|
|
8312
8333
|
initialFocusRef: endpointRef,
|
|
8313
8334
|
isOpen: isOpen,
|
|
8314
8335
|
onClose: onClose
|
|
8315
|
-
}, /*#__PURE__*/React.createElement(Pane.Header,
|
|
8336
|
+
}, /*#__PURE__*/React.createElement(Pane.Header, {
|
|
8337
|
+
className: "flex items-center space-x-3"
|
|
8338
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
8339
|
+
"data-cy": "add-new-webhook-pane-header",
|
|
8316
8340
|
style: "h2",
|
|
8317
8341
|
weight: "semibold"
|
|
8318
|
-
}, editingWebhookId ? (cov_t5m44crof().b[4][0]++, t("webhook.edit")) : (cov_t5m44crof().b[4][1]++, t("webhook.add")))
|
|
8342
|
+
}, editingWebhookId ? (cov_t5m44crof().b[4][0]++, t("webhook.edit")) : (cov_t5m44crof().b[4][1]++, t("webhook.add"))), /*#__PURE__*/React.createElement("a", {
|
|
8343
|
+
href: WEBHOOK_HELP_URL,
|
|
8344
|
+
rel: "noreferrer",
|
|
8345
|
+
target: "_blank"
|
|
8346
|
+
}, /*#__PURE__*/React.createElement(Info, {
|
|
8347
|
+
className: "neeto-ui-text-primary-800 mt-0.5 cursor-pointer",
|
|
8348
|
+
size: 20
|
|
8349
|
+
}))), /*#__PURE__*/React.createElement(Form, {
|
|
8319
8350
|
formikProps: {
|
|
8320
8351
|
enableReinitialize: true,
|
|
8321
8352
|
validationSchema: VALIDATION_SCHEMA(webhooks),
|
|
8322
8353
|
initialValues: initialValues,
|
|
8323
8354
|
onSubmit: function onSubmit(values) {
|
|
8324
8355
|
cov_t5m44crof().f[4]++;
|
|
8325
|
-
cov_t5m44crof().s[
|
|
8356
|
+
cov_t5m44crof().s[12]++;
|
|
8326
8357
|
return handleSubmit(VALIDATION_SCHEMA().cast(values));
|
|
8327
8358
|
}
|
|
8328
8359
|
}
|
|
@@ -8330,40 +8361,21 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8330
8361
|
var dirty = _ref6.dirty,
|
|
8331
8362
|
isSubmitting = _ref6.isSubmitting;
|
|
8332
8363
|
cov_t5m44crof().f[5]++;
|
|
8333
|
-
cov_t5m44crof().s[
|
|
8364
|
+
cov_t5m44crof().s[13]++;
|
|
8334
8365
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pane.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
8335
8366
|
className: "w-full space-y-4"
|
|
8336
8367
|
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
8337
8368
|
required: true,
|
|
8369
|
+
"data-cy": "endpoint-input-field",
|
|
8338
8370
|
label: t("webhook.endpoint"),
|
|
8339
8371
|
name: "endpoint",
|
|
8340
8372
|
placeholder: t("webhook.endpointPlaceholder"),
|
|
8341
8373
|
ref: endpointRef
|
|
8342
8374
|
}), /*#__PURE__*/React.createElement(Input$1, {
|
|
8375
|
+
"data-cy": "secret-key-input-field",
|
|
8376
|
+
label: t("webhook.secret"),
|
|
8343
8377
|
name: "secret",
|
|
8344
|
-
placeholder: t("webhook.secretPlaceholder")
|
|
8345
|
-
label: /*#__PURE__*/React.createElement(React.Fragment, null, t("webhook.secret"), /*#__PURE__*/React.createElement("span", {
|
|
8346
|
-
ref: popoverRef
|
|
8347
|
-
}, /*#__PURE__*/React.createElement(Info, {
|
|
8348
|
-
className: "mx-1",
|
|
8349
|
-
size: 18
|
|
8350
|
-
})), /*#__PURE__*/React.createElement(Popover, {
|
|
8351
|
-
position: "right",
|
|
8352
|
-
reference: popoverRef,
|
|
8353
|
-
content: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover.Title, null, t("webhook.secretHelpPopover.title")), /*#__PURE__*/React.createElement(Typography, {
|
|
8354
|
-
lineHeight: "normal",
|
|
8355
|
-
style: "body2"
|
|
8356
|
-
}, t("webhook.secretHelpPopover.description")), /*#__PURE__*/React.createElement("a", {
|
|
8357
|
-
href: WEBHOOK_SECRET_KEY_HELP_URL,
|
|
8358
|
-
rel: "noreferrer",
|
|
8359
|
-
target: "_blank"
|
|
8360
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
8361
|
-
className: "neeto-ui-mt-3",
|
|
8362
|
-
label: t("webhook.secretHelpPopover.linkText"),
|
|
8363
|
-
size: "small",
|
|
8364
|
-
style: "link"
|
|
8365
|
-
})))
|
|
8366
|
-
}))
|
|
8378
|
+
placeholder: t("webhook.secretPlaceholder")
|
|
8367
8379
|
}))), /*#__PURE__*/React.createElement(Pane.Footer, {
|
|
8368
8380
|
className: "flex gap-2"
|
|
8369
8381
|
}, /*#__PURE__*/React.createElement(ActionBlock, {
|
|
@@ -8670,7 +8682,7 @@ var WebhookItem = function WebhookItem(_ref2) {
|
|
|
8670
8682
|
|
|
8671
8683
|
function cov_une6dfv6o() {
|
|
8672
8684
|
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/index.jsx";
|
|
8673
|
-
var hash = "
|
|
8685
|
+
var hash = "5b41c778caf20030622d832ae2adaa3f5f3cb845";
|
|
8674
8686
|
var global = new Function("return this")();
|
|
8675
8687
|
var gcv = "__coverage__";
|
|
8676
8688
|
var coverageData = {
|
|
@@ -8682,7 +8694,7 @@ function cov_une6dfv6o() {
|
|
|
8682
8694
|
column: 17
|
|
8683
8695
|
},
|
|
8684
8696
|
end: {
|
|
8685
|
-
line:
|
|
8697
|
+
line: 127,
|
|
8686
8698
|
column: 1
|
|
8687
8699
|
}
|
|
8688
8700
|
},
|
|
@@ -8902,47 +8914,47 @@ function cov_une6dfv6o() {
|
|
|
8902
8914
|
column: 2
|
|
8903
8915
|
},
|
|
8904
8916
|
end: {
|
|
8905
|
-
line:
|
|
8917
|
+
line: 126,
|
|
8906
8918
|
column: 4
|
|
8907
8919
|
}
|
|
8908
8920
|
},
|
|
8909
8921
|
"23": {
|
|
8910
8922
|
start: {
|
|
8911
|
-
line:
|
|
8923
|
+
line: 76,
|
|
8912
8924
|
column: 29
|
|
8913
8925
|
},
|
|
8914
8926
|
end: {
|
|
8915
|
-
line:
|
|
8927
|
+
line: 76,
|
|
8916
8928
|
column: 58
|
|
8917
8929
|
}
|
|
8918
8930
|
},
|
|
8919
8931
|
"24": {
|
|
8920
8932
|
start: {
|
|
8921
|
-
line:
|
|
8933
|
+
line: 91,
|
|
8922
8934
|
column: 10
|
|
8923
8935
|
},
|
|
8924
8936
|
end: {
|
|
8925
|
-
line:
|
|
8937
|
+
line: 97,
|
|
8926
8938
|
column: 12
|
|
8927
8939
|
}
|
|
8928
8940
|
},
|
|
8929
8941
|
"25": {
|
|
8930
8942
|
start: {
|
|
8931
|
-
line:
|
|
8943
|
+
line: 122,
|
|
8932
8944
|
column: 23
|
|
8933
8945
|
},
|
|
8934
8946
|
end: {
|
|
8935
|
-
line:
|
|
8947
|
+
line: 122,
|
|
8936
8948
|
column: 50
|
|
8937
8949
|
}
|
|
8938
8950
|
},
|
|
8939
8951
|
"26": {
|
|
8940
8952
|
start: {
|
|
8941
|
-
line:
|
|
8953
|
+
line: 123,
|
|
8942
8954
|
column: 24
|
|
8943
8955
|
},
|
|
8944
8956
|
end: {
|
|
8945
|
-
line:
|
|
8957
|
+
line: 123,
|
|
8946
8958
|
column: 57
|
|
8947
8959
|
}
|
|
8948
8960
|
}
|
|
@@ -8966,7 +8978,7 @@ function cov_une6dfv6o() {
|
|
|
8966
8978
|
column: 76
|
|
8967
8979
|
},
|
|
8968
8980
|
end: {
|
|
8969
|
-
line:
|
|
8981
|
+
line: 127,
|
|
8970
8982
|
column: 1
|
|
8971
8983
|
}
|
|
8972
8984
|
},
|
|
@@ -9072,97 +9084,97 @@ function cov_une6dfv6o() {
|
|
|
9072
9084
|
name: "(anonymous_5)",
|
|
9073
9085
|
decl: {
|
|
9074
9086
|
start: {
|
|
9075
|
-
line:
|
|
9087
|
+
line: 76,
|
|
9076
9088
|
column: 23
|
|
9077
9089
|
},
|
|
9078
9090
|
end: {
|
|
9079
|
-
line:
|
|
9091
|
+
line: 76,
|
|
9080
9092
|
column: 24
|
|
9081
9093
|
}
|
|
9082
9094
|
},
|
|
9083
9095
|
loc: {
|
|
9084
9096
|
start: {
|
|
9085
|
-
line:
|
|
9097
|
+
line: 76,
|
|
9086
9098
|
column: 29
|
|
9087
9099
|
},
|
|
9088
9100
|
end: {
|
|
9089
|
-
line:
|
|
9101
|
+
line: 76,
|
|
9090
9102
|
column: 58
|
|
9091
9103
|
}
|
|
9092
9104
|
},
|
|
9093
|
-
line:
|
|
9105
|
+
line: 76
|
|
9094
9106
|
},
|
|
9095
9107
|
"6": {
|
|
9096
9108
|
name: "(anonymous_6)",
|
|
9097
9109
|
decl: {
|
|
9098
9110
|
start: {
|
|
9099
|
-
line:
|
|
9111
|
+
line: 90,
|
|
9100
9112
|
column: 22
|
|
9101
9113
|
},
|
|
9102
9114
|
end: {
|
|
9103
|
-
line:
|
|
9115
|
+
line: 90,
|
|
9104
9116
|
column: 23
|
|
9105
9117
|
}
|
|
9106
9118
|
},
|
|
9107
9119
|
loc: {
|
|
9108
9120
|
start: {
|
|
9109
|
-
line:
|
|
9121
|
+
line: 91,
|
|
9110
9122
|
column: 10
|
|
9111
9123
|
},
|
|
9112
9124
|
end: {
|
|
9113
|
-
line:
|
|
9125
|
+
line: 97,
|
|
9114
9126
|
column: 12
|
|
9115
9127
|
}
|
|
9116
9128
|
},
|
|
9117
|
-
line:
|
|
9129
|
+
line: 91
|
|
9118
9130
|
},
|
|
9119
9131
|
"7": {
|
|
9120
9132
|
name: "(anonymous_7)",
|
|
9121
9133
|
decl: {
|
|
9122
9134
|
start: {
|
|
9123
|
-
line:
|
|
9135
|
+
line: 122,
|
|
9124
9136
|
column: 17
|
|
9125
9137
|
},
|
|
9126
9138
|
end: {
|
|
9127
|
-
line:
|
|
9139
|
+
line: 122,
|
|
9128
9140
|
column: 18
|
|
9129
9141
|
}
|
|
9130
9142
|
},
|
|
9131
9143
|
loc: {
|
|
9132
9144
|
start: {
|
|
9133
|
-
line:
|
|
9145
|
+
line: 122,
|
|
9134
9146
|
column: 23
|
|
9135
9147
|
},
|
|
9136
9148
|
end: {
|
|
9137
|
-
line:
|
|
9149
|
+
line: 122,
|
|
9138
9150
|
column: 50
|
|
9139
9151
|
}
|
|
9140
9152
|
},
|
|
9141
|
-
line:
|
|
9153
|
+
line: 122
|
|
9142
9154
|
},
|
|
9143
9155
|
"8": {
|
|
9144
9156
|
name: "(anonymous_8)",
|
|
9145
9157
|
decl: {
|
|
9146
9158
|
start: {
|
|
9147
|
-
line:
|
|
9159
|
+
line: 123,
|
|
9148
9160
|
column: 18
|
|
9149
9161
|
},
|
|
9150
9162
|
end: {
|
|
9151
|
-
line:
|
|
9163
|
+
line: 123,
|
|
9152
9164
|
column: 19
|
|
9153
9165
|
}
|
|
9154
9166
|
},
|
|
9155
9167
|
loc: {
|
|
9156
9168
|
start: {
|
|
9157
|
-
line:
|
|
9169
|
+
line: 123,
|
|
9158
9170
|
column: 24
|
|
9159
9171
|
},
|
|
9160
9172
|
end: {
|
|
9161
|
-
line:
|
|
9173
|
+
line: 123,
|
|
9162
9174
|
column: 57
|
|
9163
9175
|
}
|
|
9164
9176
|
},
|
|
9165
|
-
line:
|
|
9177
|
+
line: 123
|
|
9166
9178
|
}
|
|
9167
9179
|
},
|
|
9168
9180
|
branchMap: {
|
|
@@ -9316,35 +9328,35 @@ function cov_une6dfv6o() {
|
|
|
9316
9328
|
"5": {
|
|
9317
9329
|
loc: {
|
|
9318
9330
|
start: {
|
|
9319
|
-
line:
|
|
9331
|
+
line: 99,
|
|
9320
9332
|
column: 9
|
|
9321
9333
|
},
|
|
9322
9334
|
end: {
|
|
9323
|
-
line:
|
|
9335
|
+
line: 103,
|
|
9324
9336
|
column: 9
|
|
9325
9337
|
}
|
|
9326
9338
|
},
|
|
9327
9339
|
type: "binary-expr",
|
|
9328
9340
|
locations: [{
|
|
9329
9341
|
start: {
|
|
9330
|
-
line:
|
|
9342
|
+
line: 99,
|
|
9331
9343
|
column: 9
|
|
9332
9344
|
},
|
|
9333
9345
|
end: {
|
|
9334
|
-
line:
|
|
9346
|
+
line: 99,
|
|
9335
9347
|
column: 26
|
|
9336
9348
|
}
|
|
9337
9349
|
}, {
|
|
9338
9350
|
start: {
|
|
9339
|
-
line:
|
|
9351
|
+
line: 100,
|
|
9340
9352
|
column: 10
|
|
9341
9353
|
},
|
|
9342
9354
|
end: {
|
|
9343
|
-
line:
|
|
9355
|
+
line: 102,
|
|
9344
9356
|
column: 16
|
|
9345
9357
|
}
|
|
9346
9358
|
}],
|
|
9347
|
-
line:
|
|
9359
|
+
line: 99
|
|
9348
9360
|
}
|
|
9349
9361
|
},
|
|
9350
9362
|
s: {
|
|
@@ -9396,7 +9408,7 @@ function cov_une6dfv6o() {
|
|
|
9396
9408
|
"5": [0, 0]
|
|
9397
9409
|
},
|
|
9398
9410
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
9399
|
-
hash: "
|
|
9411
|
+
hash: "5b41c778caf20030622d832ae2adaa3f5f3cb845"
|
|
9400
9412
|
};
|
|
9401
9413
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
9402
9414
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -9492,7 +9504,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
9492
9504
|
return /*#__PURE__*/React.createElement("div", {
|
|
9493
9505
|
className: "w-full px-6"
|
|
9494
9506
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9495
|
-
className: "sticky top-0 z-50 w-full bg-white
|
|
9507
|
+
className: "sticky top-0 z-50 w-full bg-white"
|
|
9496
9508
|
}, /*#__PURE__*/React.createElement(Header, _extends({
|
|
9497
9509
|
title: t("webhook.title")
|
|
9498
9510
|
}, (cov_une6dfv6o().b[4][0]++, shouldShowBreadcrumbs) && (cov_une6dfv6o().b[4][1]++, {
|
|
@@ -9505,6 +9517,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
9505
9517
|
}]
|
|
9506
9518
|
}), {
|
|
9507
9519
|
actionBlock: /*#__PURE__*/React.createElement(Button, {
|
|
9520
|
+
"data-cy": "add-new-webhook-button",
|
|
9508
9521
|
label: t("webhook.add"),
|
|
9509
9522
|
onClick: function onClick() {
|
|
9510
9523
|
cov_une6dfv6o().f[5]++;
|
|
@@ -9514,6 +9527,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
9514
9527
|
})
|
|
9515
9528
|
})), /*#__PURE__*/React.createElement(Typography, {
|
|
9516
9529
|
className: "neeto-ui-text-gray-700",
|
|
9530
|
+
"data-cy": "webhook-description-header",
|
|
9517
9531
|
style: "h5",
|
|
9518
9532
|
weight: "normal"
|
|
9519
9533
|
}, t("webhook.description"))), /*#__PURE__*/React.createElement("div", {
|