@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.cjs.js
CHANGED
|
@@ -4914,6 +4914,51 @@ var useDestroyWebhook = function useDestroyWebhook(options) {
|
|
|
4914
4914
|
});
|
|
4915
4915
|
};
|
|
4916
4916
|
|
|
4917
|
+
function cov_1owqdys1co() {
|
|
4918
|
+
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/constants/urls.js";
|
|
4919
|
+
var hash = "646ee44063db873cac5666e02d3c8fcd3c62f653";
|
|
4920
|
+
var global = new Function("return this")();
|
|
4921
|
+
var gcv = "__coverage__";
|
|
4922
|
+
var coverageData = {
|
|
4923
|
+
path: "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/constants/urls.js",
|
|
4924
|
+
statementMap: {
|
|
4925
|
+
"0": {
|
|
4926
|
+
start: {
|
|
4927
|
+
line: 1,
|
|
4928
|
+
column: 32
|
|
4929
|
+
},
|
|
4930
|
+
end: {
|
|
4931
|
+
line: 1,
|
|
4932
|
+
column: 76
|
|
4933
|
+
}
|
|
4934
|
+
}
|
|
4935
|
+
},
|
|
4936
|
+
fnMap: {},
|
|
4937
|
+
branchMap: {},
|
|
4938
|
+
s: {
|
|
4939
|
+
"0": 0
|
|
4940
|
+
},
|
|
4941
|
+
f: {},
|
|
4942
|
+
b: {},
|
|
4943
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
4944
|
+
hash: "646ee44063db873cac5666e02d3c8fcd3c62f653"
|
|
4945
|
+
};
|
|
4946
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
4947
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
4948
|
+
coverage[path] = coverageData;
|
|
4949
|
+
}
|
|
4950
|
+
var actualCoverage = coverage[path];
|
|
4951
|
+
{
|
|
4952
|
+
// @ts-ignore
|
|
4953
|
+
cov_1owqdys1co = function () {
|
|
4954
|
+
return actualCoverage;
|
|
4955
|
+
};
|
|
4956
|
+
}
|
|
4957
|
+
return actualCoverage;
|
|
4958
|
+
}
|
|
4959
|
+
cov_1owqdys1co();
|
|
4960
|
+
var WEBHOOK_HELP_URL = (cov_1owqdys1co().s[0]++, "https://help.neetocal.com/articles/webhook");
|
|
4961
|
+
|
|
4917
4962
|
function _assertThisInitialized(self) {
|
|
4918
4963
|
if (self === void 0) {
|
|
4919
4964
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -7640,7 +7685,7 @@ instance.loadLanguages;
|
|
|
7640
7685
|
|
|
7641
7686
|
function cov_cbigk78w1() {
|
|
7642
7687
|
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/constants.js";
|
|
7643
|
-
var hash = "
|
|
7688
|
+
var hash = "406540f361b63e66d2909c4920304cefd0c66a31";
|
|
7644
7689
|
var global = new Function("return this")();
|
|
7645
7690
|
var gcv = "__coverage__";
|
|
7646
7691
|
var coverageData = {
|
|
@@ -7675,16 +7720,6 @@ function cov_cbigk78w1() {
|
|
|
7675
7720
|
line: 20,
|
|
7676
7721
|
column: 11
|
|
7677
7722
|
}
|
|
7678
|
-
},
|
|
7679
|
-
"3": {
|
|
7680
|
-
start: {
|
|
7681
|
-
line: 26,
|
|
7682
|
-
column: 2
|
|
7683
|
-
},
|
|
7684
|
-
end: {
|
|
7685
|
-
line: 26,
|
|
7686
|
-
column: 90
|
|
7687
|
-
}
|
|
7688
7723
|
}
|
|
7689
7724
|
},
|
|
7690
7725
|
fnMap: {
|
|
@@ -7741,8 +7776,7 @@ function cov_cbigk78w1() {
|
|
|
7741
7776
|
s: {
|
|
7742
7777
|
"0": 0,
|
|
7743
7778
|
"1": 0,
|
|
7744
|
-
"2": 0
|
|
7745
|
-
"3": 0
|
|
7779
|
+
"2": 0
|
|
7746
7780
|
},
|
|
7747
7781
|
f: {
|
|
7748
7782
|
"0": 0,
|
|
@@ -7750,7 +7784,7 @@ function cov_cbigk78w1() {
|
|
|
7750
7784
|
},
|
|
7751
7785
|
b: {},
|
|
7752
7786
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7753
|
-
hash: "
|
|
7787
|
+
hash: "406540f361b63e66d2909c4920304cefd0c66a31"
|
|
7754
7788
|
};
|
|
7755
7789
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
7756
7790
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -7779,11 +7813,10 @@ var VALIDATION_SCHEMA = function VALIDATION_SCHEMA(webhooks) {
|
|
|
7779
7813
|
secret: yup__namespace.string().trim()
|
|
7780
7814
|
});
|
|
7781
7815
|
};
|
|
7782
|
-
var WEBHOOK_SECRET_KEY_HELP_URL = (cov_cbigk78w1().s[3]++, "https://neetocalhelp.neetokb.com/articles/webhooks#securing-webhook-using-a-secret-key");
|
|
7783
7816
|
|
|
7784
7817
|
function cov_t5m44crof() {
|
|
7785
7818
|
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/AddWebhookPane.jsx";
|
|
7786
|
-
var hash = "
|
|
7819
|
+
var hash = "2c9d4342641749ebdaaced093d065c7374a61586";
|
|
7787
7820
|
var global = new Function("return this")();
|
|
7788
7821
|
var gcv = "__coverage__";
|
|
7789
7822
|
var coverageData = {
|
|
@@ -7791,95 +7824,85 @@ function cov_t5m44crof() {
|
|
|
7791
7824
|
statementMap: {
|
|
7792
7825
|
"0": {
|
|
7793
7826
|
start: {
|
|
7794
|
-
line:
|
|
7827
|
+
line: 17,
|
|
7795
7828
|
column: 23
|
|
7796
7829
|
},
|
|
7797
7830
|
end: {
|
|
7798
|
-
line:
|
|
7831
|
+
line: 114,
|
|
7799
7832
|
column: 1
|
|
7800
7833
|
}
|
|
7801
7834
|
},
|
|
7802
7835
|
"1": {
|
|
7803
7836
|
start: {
|
|
7804
|
-
line:
|
|
7837
|
+
line: 25,
|
|
7805
7838
|
column: 16
|
|
7806
7839
|
},
|
|
7807
7840
|
end: {
|
|
7808
|
-
line:
|
|
7841
|
+
line: 25,
|
|
7809
7842
|
column: 32
|
|
7810
7843
|
}
|
|
7811
7844
|
},
|
|
7812
7845
|
"2": {
|
|
7813
7846
|
start: {
|
|
7814
|
-
line:
|
|
7847
|
+
line: 26,
|
|
7815
7848
|
column: 36
|
|
7816
7849
|
},
|
|
7817
7850
|
end: {
|
|
7818
|
-
line:
|
|
7851
|
+
line: 28,
|
|
7819
7852
|
column: 4
|
|
7820
7853
|
}
|
|
7821
7854
|
},
|
|
7822
7855
|
"3": {
|
|
7823
7856
|
start: {
|
|
7824
|
-
line:
|
|
7857
|
+
line: 27,
|
|
7825
7858
|
column: 21
|
|
7826
7859
|
},
|
|
7827
7860
|
end: {
|
|
7828
|
-
line:
|
|
7861
|
+
line: 27,
|
|
7829
7862
|
column: 30
|
|
7830
7863
|
}
|
|
7831
7864
|
},
|
|
7832
7865
|
"4": {
|
|
7833
7866
|
start: {
|
|
7834
|
-
line:
|
|
7867
|
+
line: 29,
|
|
7835
7868
|
column: 42
|
|
7836
7869
|
},
|
|
7837
7870
|
end: {
|
|
7838
|
-
line:
|
|
7871
|
+
line: 29,
|
|
7839
7872
|
column: 74
|
|
7840
7873
|
}
|
|
7841
7874
|
},
|
|
7842
7875
|
"5": {
|
|
7843
7876
|
start: {
|
|
7844
|
-
line:
|
|
7877
|
+
line: 30,
|
|
7845
7878
|
column: 36
|
|
7846
7879
|
},
|
|
7847
7880
|
end: {
|
|
7848
|
-
line:
|
|
7881
|
+
line: 32,
|
|
7849
7882
|
column: 4
|
|
7850
7883
|
}
|
|
7851
7884
|
},
|
|
7852
7885
|
"6": {
|
|
7853
7886
|
start: {
|
|
7854
|
-
line:
|
|
7887
|
+
line: 31,
|
|
7855
7888
|
column: 21
|
|
7856
7889
|
},
|
|
7857
7890
|
end: {
|
|
7858
|
-
line:
|
|
7891
|
+
line: 31,
|
|
7859
7892
|
column: 30
|
|
7860
7893
|
}
|
|
7861
7894
|
},
|
|
7862
7895
|
"7": {
|
|
7863
7896
|
start: {
|
|
7864
|
-
line:
|
|
7897
|
+
line: 33,
|
|
7865
7898
|
column: 22
|
|
7866
7899
|
},
|
|
7867
7900
|
end: {
|
|
7868
|
-
line:
|
|
7901
|
+
line: 33,
|
|
7869
7902
|
column: 30
|
|
7870
7903
|
}
|
|
7871
7904
|
},
|
|
7872
7905
|
"8": {
|
|
7873
|
-
start: {
|
|
7874
|
-
line: 33,
|
|
7875
|
-
column: 21
|
|
7876
|
-
},
|
|
7877
|
-
end: {
|
|
7878
|
-
line: 33,
|
|
7879
|
-
column: 29
|
|
7880
|
-
}
|
|
7881
|
-
},
|
|
7882
|
-
"9": {
|
|
7883
7906
|
start: {
|
|
7884
7907
|
line: 35,
|
|
7885
7908
|
column: 24
|
|
@@ -7889,7 +7912,7 @@ function cov_t5m44crof() {
|
|
|
7889
7912
|
column: 34
|
|
7890
7913
|
}
|
|
7891
7914
|
},
|
|
7892
|
-
"
|
|
7915
|
+
"9": {
|
|
7893
7916
|
start: {
|
|
7894
7917
|
line: 39,
|
|
7895
7918
|
column: 23
|
|
@@ -7899,7 +7922,7 @@ function cov_t5m44crof() {
|
|
|
7899
7922
|
column: 3
|
|
7900
7923
|
}
|
|
7901
7924
|
},
|
|
7902
|
-
"
|
|
7925
|
+
"10": {
|
|
7903
7926
|
start: {
|
|
7904
7927
|
line: 40,
|
|
7905
7928
|
column: 4
|
|
@@ -7909,33 +7932,33 @@ function cov_t5m44crof() {
|
|
|
7909
7932
|
column: 11
|
|
7910
7933
|
}
|
|
7911
7934
|
},
|
|
7912
|
-
"
|
|
7935
|
+
"11": {
|
|
7913
7936
|
start: {
|
|
7914
7937
|
line: 49,
|
|
7915
7938
|
column: 2
|
|
7916
7939
|
},
|
|
7917
7940
|
end: {
|
|
7918
|
-
line:
|
|
7941
|
+
line: 113,
|
|
7919
7942
|
column: 4
|
|
7920
7943
|
}
|
|
7921
7944
|
},
|
|
7922
|
-
"
|
|
7945
|
+
"12": {
|
|
7923
7946
|
start: {
|
|
7924
|
-
line:
|
|
7947
|
+
line: 71,
|
|
7925
7948
|
column: 30
|
|
7926
7949
|
},
|
|
7927
7950
|
end: {
|
|
7928
|
-
line:
|
|
7951
|
+
line: 71,
|
|
7929
7952
|
column: 76
|
|
7930
7953
|
}
|
|
7931
7954
|
},
|
|
7932
|
-
"
|
|
7955
|
+
"13": {
|
|
7933
7956
|
start: {
|
|
7934
|
-
line:
|
|
7957
|
+
line: 75,
|
|
7935
7958
|
column: 10
|
|
7936
7959
|
},
|
|
7937
7960
|
end: {
|
|
7938
|
-
line:
|
|
7961
|
+
line: 109,
|
|
7939
7962
|
column: 13
|
|
7940
7963
|
}
|
|
7941
7964
|
}
|
|
@@ -7945,73 +7968,73 @@ function cov_t5m44crof() {
|
|
|
7945
7968
|
name: "(anonymous_0)",
|
|
7946
7969
|
decl: {
|
|
7947
7970
|
start: {
|
|
7948
|
-
line:
|
|
7971
|
+
line: 17,
|
|
7949
7972
|
column: 23
|
|
7950
7973
|
},
|
|
7951
7974
|
end: {
|
|
7952
|
-
line:
|
|
7975
|
+
line: 17,
|
|
7953
7976
|
column: 24
|
|
7954
7977
|
}
|
|
7955
7978
|
},
|
|
7956
7979
|
loc: {
|
|
7957
7980
|
start: {
|
|
7958
|
-
line:
|
|
7981
|
+
line: 24,
|
|
7959
7982
|
column: 6
|
|
7960
7983
|
},
|
|
7961
7984
|
end: {
|
|
7962
|
-
line:
|
|
7985
|
+
line: 114,
|
|
7963
7986
|
column: 1
|
|
7964
7987
|
}
|
|
7965
7988
|
},
|
|
7966
|
-
line:
|
|
7989
|
+
line: 24
|
|
7967
7990
|
},
|
|
7968
7991
|
"1": {
|
|
7969
7992
|
name: "(anonymous_1)",
|
|
7970
7993
|
decl: {
|
|
7971
7994
|
start: {
|
|
7972
|
-
line:
|
|
7995
|
+
line: 27,
|
|
7973
7996
|
column: 15
|
|
7974
7997
|
},
|
|
7975
7998
|
end: {
|
|
7976
|
-
line:
|
|
7999
|
+
line: 27,
|
|
7977
8000
|
column: 16
|
|
7978
8001
|
}
|
|
7979
8002
|
},
|
|
7980
8003
|
loc: {
|
|
7981
8004
|
start: {
|
|
7982
|
-
line:
|
|
8005
|
+
line: 27,
|
|
7983
8006
|
column: 21
|
|
7984
8007
|
},
|
|
7985
8008
|
end: {
|
|
7986
|
-
line:
|
|
8009
|
+
line: 27,
|
|
7987
8010
|
column: 30
|
|
7988
8011
|
}
|
|
7989
8012
|
},
|
|
7990
|
-
line:
|
|
8013
|
+
line: 27
|
|
7991
8014
|
},
|
|
7992
8015
|
"2": {
|
|
7993
8016
|
name: "(anonymous_2)",
|
|
7994
8017
|
decl: {
|
|
7995
8018
|
start: {
|
|
7996
|
-
line:
|
|
8019
|
+
line: 31,
|
|
7997
8020
|
column: 15
|
|
7998
8021
|
},
|
|
7999
8022
|
end: {
|
|
8000
|
-
line:
|
|
8023
|
+
line: 31,
|
|
8001
8024
|
column: 16
|
|
8002
8025
|
}
|
|
8003
8026
|
},
|
|
8004
8027
|
loc: {
|
|
8005
8028
|
start: {
|
|
8006
|
-
line:
|
|
8029
|
+
line: 31,
|
|
8007
8030
|
column: 21
|
|
8008
8031
|
},
|
|
8009
8032
|
end: {
|
|
8010
|
-
line:
|
|
8033
|
+
line: 31,
|
|
8011
8034
|
column: 30
|
|
8012
8035
|
}
|
|
8013
8036
|
},
|
|
8014
|
-
line:
|
|
8037
|
+
line: 31
|
|
8015
8038
|
},
|
|
8016
8039
|
"3": {
|
|
8017
8040
|
name: "(anonymous_3)",
|
|
@@ -8041,99 +8064,99 @@ function cov_t5m44crof() {
|
|
|
8041
8064
|
name: "(anonymous_4)",
|
|
8042
8065
|
decl: {
|
|
8043
8066
|
start: {
|
|
8044
|
-
line:
|
|
8067
|
+
line: 71,
|
|
8045
8068
|
column: 20
|
|
8046
8069
|
},
|
|
8047
8070
|
end: {
|
|
8048
|
-
line:
|
|
8071
|
+
line: 71,
|
|
8049
8072
|
column: 21
|
|
8050
8073
|
}
|
|
8051
8074
|
},
|
|
8052
8075
|
loc: {
|
|
8053
8076
|
start: {
|
|
8054
|
-
line:
|
|
8077
|
+
line: 71,
|
|
8055
8078
|
column: 30
|
|
8056
8079
|
},
|
|
8057
8080
|
end: {
|
|
8058
|
-
line:
|
|
8081
|
+
line: 71,
|
|
8059
8082
|
column: 76
|
|
8060
8083
|
}
|
|
8061
8084
|
},
|
|
8062
|
-
line:
|
|
8085
|
+
line: 71
|
|
8063
8086
|
},
|
|
8064
8087
|
"5": {
|
|
8065
8088
|
name: "(anonymous_5)",
|
|
8066
8089
|
decl: {
|
|
8067
8090
|
start: {
|
|
8068
|
-
line:
|
|
8091
|
+
line: 74,
|
|
8069
8092
|
column: 9
|
|
8070
8093
|
},
|
|
8071
8094
|
end: {
|
|
8072
|
-
line:
|
|
8095
|
+
line: 74,
|
|
8073
8096
|
column: 10
|
|
8074
8097
|
}
|
|
8075
8098
|
},
|
|
8076
8099
|
loc: {
|
|
8077
8100
|
start: {
|
|
8078
|
-
line:
|
|
8101
|
+
line: 75,
|
|
8079
8102
|
column: 10
|
|
8080
8103
|
},
|
|
8081
8104
|
end: {
|
|
8082
|
-
line:
|
|
8105
|
+
line: 109,
|
|
8083
8106
|
column: 13
|
|
8084
8107
|
}
|
|
8085
8108
|
},
|
|
8086
|
-
line:
|
|
8109
|
+
line: 75
|
|
8087
8110
|
}
|
|
8088
8111
|
},
|
|
8089
8112
|
branchMap: {
|
|
8090
8113
|
"0": {
|
|
8091
8114
|
loc: {
|
|
8092
8115
|
start: {
|
|
8093
|
-
line:
|
|
8116
|
+
line: 29,
|
|
8094
8117
|
column: 16
|
|
8095
8118
|
},
|
|
8096
8119
|
end: {
|
|
8097
|
-
line:
|
|
8120
|
+
line: 29,
|
|
8098
8121
|
column: 37
|
|
8099
8122
|
}
|
|
8100
8123
|
},
|
|
8101
8124
|
type: "default-arg",
|
|
8102
8125
|
locations: [{
|
|
8103
8126
|
start: {
|
|
8104
|
-
line:
|
|
8127
|
+
line: 29,
|
|
8105
8128
|
column: 35
|
|
8106
8129
|
},
|
|
8107
8130
|
end: {
|
|
8108
|
-
line:
|
|
8131
|
+
line: 29,
|
|
8109
8132
|
column: 37
|
|
8110
8133
|
}
|
|
8111
8134
|
}],
|
|
8112
|
-
line:
|
|
8135
|
+
line: 29
|
|
8113
8136
|
},
|
|
8114
8137
|
"1": {
|
|
8115
8138
|
loc: {
|
|
8116
8139
|
start: {
|
|
8117
|
-
line:
|
|
8140
|
+
line: 29,
|
|
8118
8141
|
column: 18
|
|
8119
8142
|
},
|
|
8120
8143
|
end: {
|
|
8121
|
-
line:
|
|
8144
|
+
line: 29,
|
|
8122
8145
|
column: 30
|
|
8123
8146
|
}
|
|
8124
8147
|
},
|
|
8125
8148
|
type: "default-arg",
|
|
8126
8149
|
locations: [{
|
|
8127
8150
|
start: {
|
|
8128
|
-
line:
|
|
8151
|
+
line: 29,
|
|
8129
8152
|
column: 28
|
|
8130
8153
|
},
|
|
8131
8154
|
end: {
|
|
8132
|
-
line:
|
|
8155
|
+
line: 29,
|
|
8133
8156
|
column: 30
|
|
8134
8157
|
}
|
|
8135
8158
|
}],
|
|
8136
|
-
line:
|
|
8159
|
+
line: 29
|
|
8137
8160
|
},
|
|
8138
8161
|
"2": {
|
|
8139
8162
|
loc: {
|
|
@@ -8204,35 +8227,35 @@ function cov_t5m44crof() {
|
|
|
8204
8227
|
"4": {
|
|
8205
8228
|
loc: {
|
|
8206
8229
|
start: {
|
|
8207
|
-
line:
|
|
8230
|
+
line: 57,
|
|
8208
8231
|
column: 11
|
|
8209
8232
|
},
|
|
8210
8233
|
end: {
|
|
8211
|
-
line:
|
|
8234
|
+
line: 57,
|
|
8212
8235
|
column: 66
|
|
8213
8236
|
}
|
|
8214
8237
|
},
|
|
8215
8238
|
type: "cond-expr",
|
|
8216
8239
|
locations: [{
|
|
8217
8240
|
start: {
|
|
8218
|
-
line:
|
|
8241
|
+
line: 57,
|
|
8219
8242
|
column: 30
|
|
8220
8243
|
},
|
|
8221
8244
|
end: {
|
|
8222
|
-
line:
|
|
8245
|
+
line: 57,
|
|
8223
8246
|
column: 47
|
|
8224
8247
|
}
|
|
8225
8248
|
}, {
|
|
8226
8249
|
start: {
|
|
8227
|
-
line:
|
|
8250
|
+
line: 57,
|
|
8228
8251
|
column: 50
|
|
8229
8252
|
},
|
|
8230
8253
|
end: {
|
|
8231
|
-
line:
|
|
8254
|
+
line: 57,
|
|
8232
8255
|
column: 66
|
|
8233
8256
|
}
|
|
8234
8257
|
}],
|
|
8235
|
-
line:
|
|
8258
|
+
line: 57
|
|
8236
8259
|
}
|
|
8237
8260
|
},
|
|
8238
8261
|
s: {
|
|
@@ -8249,8 +8272,7 @@ function cov_t5m44crof() {
|
|
|
8249
8272
|
"10": 0,
|
|
8250
8273
|
"11": 0,
|
|
8251
8274
|
"12": 0,
|
|
8252
|
-
"13": 0
|
|
8253
|
-
"14": 0
|
|
8275
|
+
"13": 0
|
|
8254
8276
|
},
|
|
8255
8277
|
f: {
|
|
8256
8278
|
"0": 0,
|
|
@@ -8268,7 +8290,7 @@ function cov_t5m44crof() {
|
|
|
8268
8290
|
"4": [0, 0]
|
|
8269
8291
|
},
|
|
8270
8292
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
8271
|
-
hash: "
|
|
8293
|
+
hash: "2c9d4342641749ebdaaced093d065c7374a61586"
|
|
8272
8294
|
};
|
|
8273
8295
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
8274
8296
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -8319,15 +8341,14 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8319
8341
|
})),
|
|
8320
8342
|
updateWebhook = _ref5.mutate;
|
|
8321
8343
|
var endpointRef = (cov_t5m44crof().s[7]++, React.useRef());
|
|
8322
|
-
var
|
|
8323
|
-
var initialValues = (cov_t5m44crof().s[9]++, editingWebhookId ? (cov_t5m44crof().b[2][0]++, webhook) : (cov_t5m44crof().b[2][1]++, {
|
|
8344
|
+
var initialValues = (cov_t5m44crof().s[8]++, editingWebhookId ? (cov_t5m44crof().b[2][0]++, webhook) : (cov_t5m44crof().b[2][1]++, {
|
|
8324
8345
|
endpoint: "",
|
|
8325
8346
|
secret: ""
|
|
8326
8347
|
}));
|
|
8327
|
-
cov_t5m44crof().s[
|
|
8348
|
+
cov_t5m44crof().s[9]++;
|
|
8328
8349
|
var handleSubmit = function handleSubmit(values) {
|
|
8329
8350
|
cov_t5m44crof().f[3]++;
|
|
8330
|
-
cov_t5m44crof().s[
|
|
8351
|
+
cov_t5m44crof().s[10]++;
|
|
8331
8352
|
editingWebhookId ? (cov_t5m44crof().b[3][0]++, updateWebhook({
|
|
8332
8353
|
id: editingWebhookId,
|
|
8333
8354
|
payload: values
|
|
@@ -8336,22 +8357,32 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8336
8357
|
entityType: entityType
|
|
8337
8358
|
})));
|
|
8338
8359
|
};
|
|
8339
|
-
cov_t5m44crof().s[
|
|
8360
|
+
cov_t5m44crof().s[11]++;
|
|
8340
8361
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Pane, {
|
|
8341
8362
|
initialFocusRef: endpointRef,
|
|
8342
8363
|
isOpen: isOpen,
|
|
8343
8364
|
onClose: onClose
|
|
8344
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header,
|
|
8365
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, {
|
|
8366
|
+
className: "flex items-center space-x-3"
|
|
8367
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
8368
|
+
"data-cy": "add-new-webhook-pane-header",
|
|
8345
8369
|
style: "h2",
|
|
8346
8370
|
weight: "semibold"
|
|
8347
|
-
}, editingWebhookId ? (cov_t5m44crof().b[4][0]++, t("webhook.edit")) : (cov_t5m44crof().b[4][1]++, t("webhook.add")))
|
|
8371
|
+
}, editingWebhookId ? (cov_t5m44crof().b[4][0]++, t("webhook.edit")) : (cov_t5m44crof().b[4][1]++, t("webhook.add"))), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
8372
|
+
href: WEBHOOK_HELP_URL,
|
|
8373
|
+
rel: "noreferrer",
|
|
8374
|
+
target: "_blank"
|
|
8375
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Info, {
|
|
8376
|
+
className: "neeto-ui-text-primary-800 mt-0.5 cursor-pointer",
|
|
8377
|
+
size: 20
|
|
8378
|
+
}))), /*#__PURE__*/React__default["default"].createElement(formik.Form, {
|
|
8348
8379
|
formikProps: {
|
|
8349
8380
|
enableReinitialize: true,
|
|
8350
8381
|
validationSchema: VALIDATION_SCHEMA(webhooks),
|
|
8351
8382
|
initialValues: initialValues,
|
|
8352
8383
|
onSubmit: function onSubmit(values) {
|
|
8353
8384
|
cov_t5m44crof().f[4]++;
|
|
8354
|
-
cov_t5m44crof().s[
|
|
8385
|
+
cov_t5m44crof().s[12]++;
|
|
8355
8386
|
return handleSubmit(VALIDATION_SCHEMA().cast(values));
|
|
8356
8387
|
}
|
|
8357
8388
|
}
|
|
@@ -8359,40 +8390,21 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
|
|
|
8359
8390
|
var dirty = _ref6.dirty,
|
|
8360
8391
|
isSubmitting = _ref6.isSubmitting;
|
|
8361
8392
|
cov_t5m44crof().f[5]++;
|
|
8362
|
-
cov_t5m44crof().s[
|
|
8393
|
+
cov_t5m44crof().s[13]++;
|
|
8363
8394
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8364
8395
|
className: "w-full space-y-4"
|
|
8365
8396
|
}, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
8366
8397
|
required: true,
|
|
8398
|
+
"data-cy": "endpoint-input-field",
|
|
8367
8399
|
label: t("webhook.endpoint"),
|
|
8368
8400
|
name: "endpoint",
|
|
8369
8401
|
placeholder: t("webhook.endpointPlaceholder"),
|
|
8370
8402
|
ref: endpointRef
|
|
8371
8403
|
}), /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
8404
|
+
"data-cy": "secret-key-input-field",
|
|
8405
|
+
label: t("webhook.secret"),
|
|
8372
8406
|
name: "secret",
|
|
8373
|
-
placeholder: t("webhook.secretPlaceholder")
|
|
8374
|
-
label: /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, t("webhook.secret"), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8375
|
-
ref: popoverRef
|
|
8376
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Info, {
|
|
8377
|
-
className: "mx-1",
|
|
8378
|
-
size: 18
|
|
8379
|
-
})), /*#__PURE__*/React__default["default"].createElement(neetoui.Popover, {
|
|
8380
|
-
position: "right",
|
|
8381
|
-
reference: popoverRef,
|
|
8382
|
-
content: /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Popover.Title, null, t("webhook.secretHelpPopover.title")), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
8383
|
-
lineHeight: "normal",
|
|
8384
|
-
style: "body2"
|
|
8385
|
-
}, t("webhook.secretHelpPopover.description")), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
8386
|
-
href: WEBHOOK_SECRET_KEY_HELP_URL,
|
|
8387
|
-
rel: "noreferrer",
|
|
8388
|
-
target: "_blank"
|
|
8389
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
8390
|
-
className: "neeto-ui-mt-3",
|
|
8391
|
-
label: t("webhook.secretHelpPopover.linkText"),
|
|
8392
|
-
size: "small",
|
|
8393
|
-
style: "link"
|
|
8394
|
-
})))
|
|
8395
|
-
}))
|
|
8407
|
+
placeholder: t("webhook.secretPlaceholder")
|
|
8396
8408
|
}))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Footer, {
|
|
8397
8409
|
className: "flex gap-2"
|
|
8398
8410
|
}, /*#__PURE__*/React__default["default"].createElement(formik.ActionBlock, {
|
|
@@ -8699,7 +8711,7 @@ var WebhookItem = function WebhookItem(_ref2) {
|
|
|
8699
8711
|
|
|
8700
8712
|
function cov_une6dfv6o() {
|
|
8701
8713
|
var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/index.jsx";
|
|
8702
|
-
var hash = "
|
|
8714
|
+
var hash = "5b41c778caf20030622d832ae2adaa3f5f3cb845";
|
|
8703
8715
|
var global = new Function("return this")();
|
|
8704
8716
|
var gcv = "__coverage__";
|
|
8705
8717
|
var coverageData = {
|
|
@@ -8711,7 +8723,7 @@ function cov_une6dfv6o() {
|
|
|
8711
8723
|
column: 17
|
|
8712
8724
|
},
|
|
8713
8725
|
end: {
|
|
8714
|
-
line:
|
|
8726
|
+
line: 127,
|
|
8715
8727
|
column: 1
|
|
8716
8728
|
}
|
|
8717
8729
|
},
|
|
@@ -8931,47 +8943,47 @@ function cov_une6dfv6o() {
|
|
|
8931
8943
|
column: 2
|
|
8932
8944
|
},
|
|
8933
8945
|
end: {
|
|
8934
|
-
line:
|
|
8946
|
+
line: 126,
|
|
8935
8947
|
column: 4
|
|
8936
8948
|
}
|
|
8937
8949
|
},
|
|
8938
8950
|
"23": {
|
|
8939
8951
|
start: {
|
|
8940
|
-
line:
|
|
8952
|
+
line: 76,
|
|
8941
8953
|
column: 29
|
|
8942
8954
|
},
|
|
8943
8955
|
end: {
|
|
8944
|
-
line:
|
|
8956
|
+
line: 76,
|
|
8945
8957
|
column: 58
|
|
8946
8958
|
}
|
|
8947
8959
|
},
|
|
8948
8960
|
"24": {
|
|
8949
8961
|
start: {
|
|
8950
|
-
line:
|
|
8962
|
+
line: 91,
|
|
8951
8963
|
column: 10
|
|
8952
8964
|
},
|
|
8953
8965
|
end: {
|
|
8954
|
-
line:
|
|
8966
|
+
line: 97,
|
|
8955
8967
|
column: 12
|
|
8956
8968
|
}
|
|
8957
8969
|
},
|
|
8958
8970
|
"25": {
|
|
8959
8971
|
start: {
|
|
8960
|
-
line:
|
|
8972
|
+
line: 122,
|
|
8961
8973
|
column: 23
|
|
8962
8974
|
},
|
|
8963
8975
|
end: {
|
|
8964
|
-
line:
|
|
8976
|
+
line: 122,
|
|
8965
8977
|
column: 50
|
|
8966
8978
|
}
|
|
8967
8979
|
},
|
|
8968
8980
|
"26": {
|
|
8969
8981
|
start: {
|
|
8970
|
-
line:
|
|
8982
|
+
line: 123,
|
|
8971
8983
|
column: 24
|
|
8972
8984
|
},
|
|
8973
8985
|
end: {
|
|
8974
|
-
line:
|
|
8986
|
+
line: 123,
|
|
8975
8987
|
column: 57
|
|
8976
8988
|
}
|
|
8977
8989
|
}
|
|
@@ -8995,7 +9007,7 @@ function cov_une6dfv6o() {
|
|
|
8995
9007
|
column: 76
|
|
8996
9008
|
},
|
|
8997
9009
|
end: {
|
|
8998
|
-
line:
|
|
9010
|
+
line: 127,
|
|
8999
9011
|
column: 1
|
|
9000
9012
|
}
|
|
9001
9013
|
},
|
|
@@ -9101,97 +9113,97 @@ function cov_une6dfv6o() {
|
|
|
9101
9113
|
name: "(anonymous_5)",
|
|
9102
9114
|
decl: {
|
|
9103
9115
|
start: {
|
|
9104
|
-
line:
|
|
9116
|
+
line: 76,
|
|
9105
9117
|
column: 23
|
|
9106
9118
|
},
|
|
9107
9119
|
end: {
|
|
9108
|
-
line:
|
|
9120
|
+
line: 76,
|
|
9109
9121
|
column: 24
|
|
9110
9122
|
}
|
|
9111
9123
|
},
|
|
9112
9124
|
loc: {
|
|
9113
9125
|
start: {
|
|
9114
|
-
line:
|
|
9126
|
+
line: 76,
|
|
9115
9127
|
column: 29
|
|
9116
9128
|
},
|
|
9117
9129
|
end: {
|
|
9118
|
-
line:
|
|
9130
|
+
line: 76,
|
|
9119
9131
|
column: 58
|
|
9120
9132
|
}
|
|
9121
9133
|
},
|
|
9122
|
-
line:
|
|
9134
|
+
line: 76
|
|
9123
9135
|
},
|
|
9124
9136
|
"6": {
|
|
9125
9137
|
name: "(anonymous_6)",
|
|
9126
9138
|
decl: {
|
|
9127
9139
|
start: {
|
|
9128
|
-
line:
|
|
9140
|
+
line: 90,
|
|
9129
9141
|
column: 22
|
|
9130
9142
|
},
|
|
9131
9143
|
end: {
|
|
9132
|
-
line:
|
|
9144
|
+
line: 90,
|
|
9133
9145
|
column: 23
|
|
9134
9146
|
}
|
|
9135
9147
|
},
|
|
9136
9148
|
loc: {
|
|
9137
9149
|
start: {
|
|
9138
|
-
line:
|
|
9150
|
+
line: 91,
|
|
9139
9151
|
column: 10
|
|
9140
9152
|
},
|
|
9141
9153
|
end: {
|
|
9142
|
-
line:
|
|
9154
|
+
line: 97,
|
|
9143
9155
|
column: 12
|
|
9144
9156
|
}
|
|
9145
9157
|
},
|
|
9146
|
-
line:
|
|
9158
|
+
line: 91
|
|
9147
9159
|
},
|
|
9148
9160
|
"7": {
|
|
9149
9161
|
name: "(anonymous_7)",
|
|
9150
9162
|
decl: {
|
|
9151
9163
|
start: {
|
|
9152
|
-
line:
|
|
9164
|
+
line: 122,
|
|
9153
9165
|
column: 17
|
|
9154
9166
|
},
|
|
9155
9167
|
end: {
|
|
9156
|
-
line:
|
|
9168
|
+
line: 122,
|
|
9157
9169
|
column: 18
|
|
9158
9170
|
}
|
|
9159
9171
|
},
|
|
9160
9172
|
loc: {
|
|
9161
9173
|
start: {
|
|
9162
|
-
line:
|
|
9174
|
+
line: 122,
|
|
9163
9175
|
column: 23
|
|
9164
9176
|
},
|
|
9165
9177
|
end: {
|
|
9166
|
-
line:
|
|
9178
|
+
line: 122,
|
|
9167
9179
|
column: 50
|
|
9168
9180
|
}
|
|
9169
9181
|
},
|
|
9170
|
-
line:
|
|
9182
|
+
line: 122
|
|
9171
9183
|
},
|
|
9172
9184
|
"8": {
|
|
9173
9185
|
name: "(anonymous_8)",
|
|
9174
9186
|
decl: {
|
|
9175
9187
|
start: {
|
|
9176
|
-
line:
|
|
9188
|
+
line: 123,
|
|
9177
9189
|
column: 18
|
|
9178
9190
|
},
|
|
9179
9191
|
end: {
|
|
9180
|
-
line:
|
|
9192
|
+
line: 123,
|
|
9181
9193
|
column: 19
|
|
9182
9194
|
}
|
|
9183
9195
|
},
|
|
9184
9196
|
loc: {
|
|
9185
9197
|
start: {
|
|
9186
|
-
line:
|
|
9198
|
+
line: 123,
|
|
9187
9199
|
column: 24
|
|
9188
9200
|
},
|
|
9189
9201
|
end: {
|
|
9190
|
-
line:
|
|
9202
|
+
line: 123,
|
|
9191
9203
|
column: 57
|
|
9192
9204
|
}
|
|
9193
9205
|
},
|
|
9194
|
-
line:
|
|
9206
|
+
line: 123
|
|
9195
9207
|
}
|
|
9196
9208
|
},
|
|
9197
9209
|
branchMap: {
|
|
@@ -9345,35 +9357,35 @@ function cov_une6dfv6o() {
|
|
|
9345
9357
|
"5": {
|
|
9346
9358
|
loc: {
|
|
9347
9359
|
start: {
|
|
9348
|
-
line:
|
|
9360
|
+
line: 99,
|
|
9349
9361
|
column: 9
|
|
9350
9362
|
},
|
|
9351
9363
|
end: {
|
|
9352
|
-
line:
|
|
9364
|
+
line: 103,
|
|
9353
9365
|
column: 9
|
|
9354
9366
|
}
|
|
9355
9367
|
},
|
|
9356
9368
|
type: "binary-expr",
|
|
9357
9369
|
locations: [{
|
|
9358
9370
|
start: {
|
|
9359
|
-
line:
|
|
9371
|
+
line: 99,
|
|
9360
9372
|
column: 9
|
|
9361
9373
|
},
|
|
9362
9374
|
end: {
|
|
9363
|
-
line:
|
|
9375
|
+
line: 99,
|
|
9364
9376
|
column: 26
|
|
9365
9377
|
}
|
|
9366
9378
|
}, {
|
|
9367
9379
|
start: {
|
|
9368
|
-
line:
|
|
9380
|
+
line: 100,
|
|
9369
9381
|
column: 10
|
|
9370
9382
|
},
|
|
9371
9383
|
end: {
|
|
9372
|
-
line:
|
|
9384
|
+
line: 102,
|
|
9373
9385
|
column: 16
|
|
9374
9386
|
}
|
|
9375
9387
|
}],
|
|
9376
|
-
line:
|
|
9388
|
+
line: 99
|
|
9377
9389
|
}
|
|
9378
9390
|
},
|
|
9379
9391
|
s: {
|
|
@@ -9425,7 +9437,7 @@ function cov_une6dfv6o() {
|
|
|
9425
9437
|
"5": [0, 0]
|
|
9426
9438
|
},
|
|
9427
9439
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
9428
|
-
hash: "
|
|
9440
|
+
hash: "5b41c778caf20030622d832ae2adaa3f5f3cb845"
|
|
9429
9441
|
};
|
|
9430
9442
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
9431
9443
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -9521,7 +9533,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
9521
9533
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9522
9534
|
className: "w-full px-6"
|
|
9523
9535
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9524
|
-
className: "sticky top-0 z-50 w-full bg-white
|
|
9536
|
+
className: "sticky top-0 z-50 w-full bg-white"
|
|
9525
9537
|
}, /*#__PURE__*/React__default["default"].createElement(Header, _extends({
|
|
9526
9538
|
title: t("webhook.title")
|
|
9527
9539
|
}, (cov_une6dfv6o().b[4][0]++, shouldShowBreadcrumbs) && (cov_une6dfv6o().b[4][1]++, {
|
|
@@ -9534,6 +9546,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
9534
9546
|
}]
|
|
9535
9547
|
}), {
|
|
9536
9548
|
actionBlock: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
9549
|
+
"data-cy": "add-new-webhook-button",
|
|
9537
9550
|
label: t("webhook.add"),
|
|
9538
9551
|
onClick: function onClick() {
|
|
9539
9552
|
cov_une6dfv6o().f[5]++;
|
|
@@ -9543,6 +9556,7 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
9543
9556
|
})
|
|
9544
9557
|
})), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
9545
9558
|
className: "neeto-ui-text-gray-700",
|
|
9559
|
+
"data-cy": "webhook-description-header",
|
|
9546
9560
|
style: "h5",
|
|
9547
9561
|
weight: "normal"
|
|
9548
9562
|
}, t("webhook.description"))), /*#__PURE__*/React__default["default"].createElement("div", {
|