@stacksee/analytics 0.9.0 → 0.9.4
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/{axios-gULqh8dv.js → axios-0_CwElpL.js} +2 -2
- package/dist/{bento-node-sdk.esm-C4HG7SVz.js → bento-node-sdk.esm-CWEAoj97.js} +69 -69
- package/dist/core/events/types.d.ts +4 -0
- package/dist/{index-bgxxv-IJ.js → index-zS7gy63J.js} +12 -12
- package/dist/providers/client.js +89 -66
- package/dist/providers/server.js +125 -92
- package/dist/{web-CvEQewPd.js → web-imCcOhDC.js} +7 -7
- package/package.json +5 -5
|
@@ -4,9 +4,9 @@ function Zr() {
|
|
|
4
4
|
if (Tt) return y;
|
|
5
5
|
Tt = 1, Object.defineProperty(y, "__esModule", { value: !0 }), y.PirschEndpoint = y.PIRSCH_URL_LENGTH_LIMIT = y.PIRSCH_IDENTIFICATION_CODE_LENGTH = y.PIRSCH_ACCESS_TOKEN_LENGTH = y.PIRSCH_CLIENT_SECRET_LENGTH = y.PIRSCH_CLIENT_ID_LENGTH = y.PIRSCH_ACCESS_TOKEN_PREFIX = y.PIRSCH_PROXY_HEADERS = y.PIRSCH_REFERRER_QUERY_PARAMETERS = y.PIRSCH_DEFAULT_PROTOCOL = y.PIRSCH_DEFAULT_TIMEOUT = y.PIRSCH_DEFAULT_BASE_URL = void 0, y.PIRSCH_DEFAULT_BASE_URL = "https://api.pirsch.io", y.PIRSCH_DEFAULT_TIMEOUT = 5e3, y.PIRSCH_DEFAULT_PROTOCOL = "https", y.PIRSCH_REFERRER_QUERY_PARAMETERS = ["ref", "referer", "referrer", "source", "utm_source"], y.PIRSCH_PROXY_HEADERS = ["cf-connecting-ip", "x-forwarded-for", "forwarded", "x-real-ip"], y.PIRSCH_ACCESS_TOKEN_PREFIX = "pa_", y.PIRSCH_CLIENT_ID_LENGTH = 32, y.PIRSCH_CLIENT_SECRET_LENGTH = 64, y.PIRSCH_ACCESS_TOKEN_LENGTH = 45, y.PIRSCH_IDENTIFICATION_CODE_LENGTH = 32, y.PIRSCH_URL_LENGTH_LIMIT = 1800;
|
|
6
6
|
var A;
|
|
7
|
-
return function(m) {
|
|
7
|
+
return (function(m) {
|
|
8
8
|
m.AUTHENTICATION = "token", m.HIT = "hit", m.HIT_BATCH = "hit/batch", m.EVENT = "event", m.EVENT_BATCH = "event/batch", m.SESSION = "session", m.SESSION_BATCH = "session/batch", m.DOMAIN = "domain", m.SESSION_DURATION = "statistics/duration/session", m.TIME_ON_PAGE = "statistics/duration/page", m.UTM_SOURCE = "statistics/utm/source", m.UTM_MEDIUM = "statistics/utm/medium", m.UTM_CAMPAIGN = "statistics/utm/campaign", m.UTM_CONTENT = "statistics/utm/content", m.UTM_TERM = "statistics/utm/term", m.TOTAL_VISITORS = "statistics/total", m.VISITORS = "statistics/visitor", m.PAGES = "statistics/page", m.ENTRY_PAGES = "statistics/page/entry", m.EXIT_PAGES = "statistics/page/exit", m.CONVERSION_GOALS = "statistics/goals", m.EVENTS = "statistics/events", m.EVENT_METADATA = "statistics/event/meta", m.LIST_EVENTS = "statistics/event/list", m.EVENTS_PAGES = "statistics/event/page", m.GROWTH_RATE = "statistics/growth", m.ACTIVE_VISITORS = "statistics/active", m.TIME_OF_DAY = "statistics/hours", m.LANGUAGE = "statistics/language", m.REFERRER = "statistics/referrer", m.OS = "statistics/os", m.OS_VERSION = "statistics/os/version", m.BROWSER = "statistics/browser", m.BROWSER_VERSION = "statistics/browser/version", m.COUNTRY = "statistics/country", m.REGION = "statistics/region", m.CITY = "statistics/city", m.PLATFORM = "statistics/platform", m.SCREEN = "statistics/screen", m.KEYWORDS = "statistics/keywords", m.TAG_KEYS = "statistics/tags", m.TAG_DETAILS = "statistics/tag/details", m.LIST_FUNNEL = "/api/v1/funnel", m.FUNNEL = "/api/v1/statistics/funnel";
|
|
9
|
-
}(A || (y.PirschEndpoint = A = {})), y;
|
|
9
|
+
})(A || (y.PirschEndpoint = A = {})), y;
|
|
10
10
|
}
|
|
11
11
|
var _t;
|
|
12
12
|
function sn() {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { c as W, g as ae } from "./_commonjsHelpers-B4e78b8K.js";
|
|
2
2
|
var Z = { exports: {} }, re;
|
|
3
3
|
function se() {
|
|
4
|
-
return re || (re = 1, function(l, c) {
|
|
5
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof W < "u" && W, a = function() {
|
|
4
|
+
return re || (re = 1, (function(l, c) {
|
|
5
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof W < "u" && W, a = (function() {
|
|
6
6
|
function u() {
|
|
7
7
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
8
8
|
}
|
|
9
9
|
return u.prototype = t, new u();
|
|
10
|
-
}();
|
|
10
|
+
})();
|
|
11
11
|
(function(u) {
|
|
12
12
|
(function(i) {
|
|
13
13
|
var p = typeof u < "u" && u || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
14
14
|
typeof W < "u" && W || {}, e = {
|
|
15
15
|
searchParams: "URLSearchParams" in p,
|
|
16
16
|
iterable: "Symbol" in p && "iterator" in Symbol,
|
|
17
|
-
blob: "FileReader" in p && "Blob" in p && function() {
|
|
17
|
+
blob: "FileReader" in p && "Blob" in p && (function() {
|
|
18
18
|
try {
|
|
19
19
|
return new Blob(), !0;
|
|
20
20
|
} catch {
|
|
21
21
|
return !1;
|
|
22
22
|
}
|
|
23
|
-
}(),
|
|
23
|
+
})(),
|
|
24
24
|
formData: "FormData" in p,
|
|
25
25
|
arrayBuffer: "ArrayBuffer" in p
|
|
26
26
|
};
|
|
@@ -198,12 +198,12 @@ function se() {
|
|
|
198
198
|
this.url = n.url, this.credentials = n.credentials, r.headers || (this.headers = new g(n.headers)), this.method = n.method, this.mode = n.mode, this.signal = n.signal, !s && n._bodyInit != null && (s = n._bodyInit, n.bodyUsed = !0);
|
|
199
199
|
} else
|
|
200
200
|
this.url = String(n);
|
|
201
|
-
if (this.credentials = r.credentials || this.credentials || "same-origin", (r.headers || !this.headers) && (this.headers = new g(r.headers)), this.method = Q(r.method || this.method || "GET"), this.mode = r.mode || this.mode || null, this.signal = r.signal || this.signal || function() {
|
|
201
|
+
if (this.credentials = r.credentials || this.credentials || "same-origin", (r.headers || !this.headers) && (this.headers = new g(r.headers)), this.method = Q(r.method || this.method || "GET"), this.mode = r.mode || this.mode || null, this.signal = r.signal || this.signal || (function() {
|
|
202
202
|
if ("AbortController" in p) {
|
|
203
203
|
var h = new AbortController();
|
|
204
204
|
return h.signal;
|
|
205
205
|
}
|
|
206
|
-
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && s)
|
|
206
|
+
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && s)
|
|
207
207
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
208
208
|
if (this._initBody(s), (this.method === "GET" || this.method === "HEAD") && (r.cache === "no-store" || r.cache === "no-cache")) {
|
|
209
209
|
var f = /([?&])_=[^&]*/;
|
|
@@ -338,7 +338,7 @@ function se() {
|
|
|
338
338
|
})(a), a.fetch.ponyfill = !0, delete a.fetch.polyfill;
|
|
339
339
|
var o = t.fetch ? t : a;
|
|
340
340
|
c = o.fetch, c.default = o.fetch, c.fetch = o.fetch, c.Headers = o.Headers, c.Request = o.Request, c.Response = o.Response, l.exports = c;
|
|
341
|
-
}(Z, Z.exports)), Z.exports;
|
|
341
|
+
})(Z, Z.exports)), Z.exports;
|
|
342
342
|
}
|
|
343
343
|
var ue = se();
|
|
344
344
|
const te = /* @__PURE__ */ ae(ue);
|
|
@@ -717,48 +717,48 @@ function R(l) {
|
|
|
717
717
|
}), K(a, t);
|
|
718
718
|
}, R(l);
|
|
719
719
|
}
|
|
720
|
-
var le = /* @__PURE__ */ function(l) {
|
|
720
|
+
var le = /* @__PURE__ */ (function(l) {
|
|
721
721
|
function c(t) {
|
|
722
722
|
var a;
|
|
723
723
|
return t === void 0 && (t = "Too few subscribers"), a = l.call(this, t) || this, a.name = "TooFewSubscribersError", a;
|
|
724
724
|
}
|
|
725
725
|
return D(c, l), c;
|
|
726
|
-
}(/* @__PURE__ */ R(Error)), fe = /* @__PURE__ */ function(l) {
|
|
726
|
+
})(/* @__PURE__ */ R(Error)), fe = /* @__PURE__ */ (function(l) {
|
|
727
727
|
function c(t) {
|
|
728
728
|
var a;
|
|
729
729
|
return t === void 0 && (t = "Too many subscribers"), a = l.call(this, t) || this, a.name = "TooManySubscribersError", a;
|
|
730
730
|
}
|
|
731
731
|
return D(c, l), c;
|
|
732
|
-
}(/* @__PURE__ */ R(Error)), he = /* @__PURE__ */ function(l) {
|
|
732
|
+
})(/* @__PURE__ */ R(Error)), he = /* @__PURE__ */ (function(l) {
|
|
733
733
|
function c(t) {
|
|
734
734
|
var a;
|
|
735
735
|
return t === void 0 && (t = "Too few events"), a = l.call(this, t) || this, a.name = "TooFewEventsError", a;
|
|
736
736
|
}
|
|
737
737
|
return D(c, l), c;
|
|
738
|
-
}(/* @__PURE__ */ R(Error)), pe = /* @__PURE__ */ function(l) {
|
|
738
|
+
})(/* @__PURE__ */ R(Error)), pe = /* @__PURE__ */ (function(l) {
|
|
739
739
|
function c(t) {
|
|
740
740
|
var a;
|
|
741
741
|
return t === void 0 && (t = "Too many events"), a = l.call(this, t) || this, a.name = "TooManyEventsError", a;
|
|
742
742
|
}
|
|
743
743
|
return D(c, l), c;
|
|
744
|
-
}(/* @__PURE__ */ R(Error)), de = /* @__PURE__ */ function(l) {
|
|
744
|
+
})(/* @__PURE__ */ R(Error)), de = /* @__PURE__ */ (function(l) {
|
|
745
745
|
function c(t) {
|
|
746
746
|
var a;
|
|
747
747
|
return t === void 0 && (t = "Too few emails"), a = l.call(this, t) || this, a.name = "TooFewEmailsError", a;
|
|
748
748
|
}
|
|
749
749
|
return D(c, l), c;
|
|
750
|
-
}(/* @__PURE__ */ R(Error)), ye = /* @__PURE__ */ function(l) {
|
|
750
|
+
})(/* @__PURE__ */ R(Error)), ye = /* @__PURE__ */ (function(l) {
|
|
751
751
|
function c(t) {
|
|
752
752
|
var a;
|
|
753
753
|
return t === void 0 && (t = "Too many emails"), a = l.call(this, t) || this, a.name = "TooManyEmailsError", a;
|
|
754
754
|
}
|
|
755
755
|
return D(c, l), c;
|
|
756
|
-
}(/* @__PURE__ */ R(Error)), ve = /* @__PURE__ */ function() {
|
|
756
|
+
})(/* @__PURE__ */ R(Error)), ve = /* @__PURE__ */ (function() {
|
|
757
757
|
function l(t) {
|
|
758
758
|
this._client = void 0, this._maxEmailBatchSize = 100, this._maxBatchSize = 1e3, this._url = "/batch", this._client = t;
|
|
759
759
|
}
|
|
760
760
|
var c = l.prototype;
|
|
761
|
-
return c.importSubscribers = /* @__PURE__ */ function() {
|
|
761
|
+
return c.importSubscribers = /* @__PURE__ */ (function() {
|
|
762
762
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
763
763
|
var i;
|
|
764
764
|
return y().wrap(function(e) {
|
|
@@ -791,7 +791,7 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
791
791
|
return t.apply(this, arguments);
|
|
792
792
|
}
|
|
793
793
|
return a;
|
|
794
|
-
}(), c.importEvents = /* @__PURE__ */ function() {
|
|
794
|
+
})(), c.importEvents = /* @__PURE__ */ (function() {
|
|
795
795
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
796
796
|
var i;
|
|
797
797
|
return y().wrap(function(e) {
|
|
@@ -824,7 +824,7 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
824
824
|
return t.apply(this, arguments);
|
|
825
825
|
}
|
|
826
826
|
return a;
|
|
827
|
-
}(), c.sendTransactionalEmails = /* @__PURE__ */ function() {
|
|
827
|
+
})(), c.sendTransactionalEmails = /* @__PURE__ */ (function() {
|
|
828
828
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
829
829
|
var i;
|
|
830
830
|
return y().wrap(function(e) {
|
|
@@ -857,20 +857,20 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
857
857
|
return t.apply(this, arguments);
|
|
858
858
|
}
|
|
859
859
|
return a;
|
|
860
|
-
}(), l;
|
|
861
|
-
}(), be = /* @__PURE__ */ function(l) {
|
|
860
|
+
})(), l;
|
|
861
|
+
})(), be = /* @__PURE__ */ (function(l) {
|
|
862
862
|
function c(t) {
|
|
863
863
|
var a;
|
|
864
864
|
return t === void 0 && (t = "Not authorized"), a = l.call(this, t) || this, a.name = "NotAuthorizedError", a;
|
|
865
865
|
}
|
|
866
866
|
return D(c, l), c;
|
|
867
|
-
}(/* @__PURE__ */ R(Error)), me = /* @__PURE__ */ function(l) {
|
|
867
|
+
})(/* @__PURE__ */ R(Error)), me = /* @__PURE__ */ (function(l) {
|
|
868
868
|
function c(t) {
|
|
869
869
|
var a;
|
|
870
870
|
return t === void 0 && (t = "You are being rate limited"), a = l.call(this, t) || this, a.name = "RateLimitedError", a;
|
|
871
871
|
}
|
|
872
872
|
return D(c, l), c;
|
|
873
|
-
}(/* @__PURE__ */ R(Error)), we = /* @__PURE__ */ function() {
|
|
873
|
+
})(/* @__PURE__ */ R(Error)), we = /* @__PURE__ */ (function() {
|
|
874
874
|
function l(t) {
|
|
875
875
|
var a;
|
|
876
876
|
this._headers = {}, this._baseUrl = "https://app.bentonow.com/api/v1", this._siteUuid = "", this._logErrors = !1, this._baseUrl = ((a = t.clientOptions) == null ? void 0 : a.baseUrl) || this._baseUrl, this._siteUuid = t.siteUuid, this._headers = this._extractHeaders(t.authentication), this._logErrors = t.logErrors || !1;
|
|
@@ -883,7 +883,7 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
883
883
|
te("" + u._baseUrl + a + "?" + e, {
|
|
884
884
|
method: "GET",
|
|
885
885
|
headers: u._headers
|
|
886
|
-
}).then(/* @__PURE__ */ function() {
|
|
886
|
+
}).then(/* @__PURE__ */ (function() {
|
|
887
887
|
var v = w(/* @__PURE__ */ y().mark(function P(O) {
|
|
888
888
|
return y().wrap(function(_) {
|
|
889
889
|
for (; ; ) switch (_.prev = _.next) {
|
|
@@ -906,7 +906,7 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
906
906
|
return function(P) {
|
|
907
907
|
return v.apply(this, arguments);
|
|
908
908
|
};
|
|
909
|
-
}()).then(function(v) {
|
|
909
|
+
})()).then(function(v) {
|
|
910
910
|
return i(v);
|
|
911
911
|
}).catch(function(v) {
|
|
912
912
|
return p(v);
|
|
@@ -922,7 +922,7 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
922
922
|
"Content-Type": "application/json"
|
|
923
923
|
}),
|
|
924
924
|
body: e
|
|
925
|
-
}).then(/* @__PURE__ */ function() {
|
|
925
|
+
}).then(/* @__PURE__ */ (function() {
|
|
926
926
|
var v = w(/* @__PURE__ */ y().mark(function P(O) {
|
|
927
927
|
return y().wrap(function(_) {
|
|
928
928
|
for (; ; ) switch (_.prev = _.next) {
|
|
@@ -945,7 +945,7 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
945
945
|
return function(P) {
|
|
946
946
|
return v.apply(this, arguments);
|
|
947
947
|
};
|
|
948
|
-
}()).then(function(v) {
|
|
948
|
+
})()).then(function(v) {
|
|
949
949
|
return i(v);
|
|
950
950
|
}).catch(function(v) {
|
|
951
951
|
return p(v);
|
|
@@ -971,7 +971,7 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
971
971
|
}, c._isSuccessfulStatus = function(a) {
|
|
972
972
|
var o = [200, 201];
|
|
973
973
|
return o.includes(a);
|
|
974
|
-
}, c._getErrorForResponse = /* @__PURE__ */ function() {
|
|
974
|
+
}, c._getErrorForResponse = /* @__PURE__ */ (function() {
|
|
975
975
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
976
976
|
var i, p;
|
|
977
977
|
return y().wrap(function(v) {
|
|
@@ -1013,17 +1013,17 @@ var le = /* @__PURE__ */ function(l) {
|
|
|
1013
1013
|
return t.apply(this, arguments);
|
|
1014
1014
|
}
|
|
1015
1015
|
return a;
|
|
1016
|
-
}(), l;
|
|
1017
|
-
}(), L;
|
|
1016
|
+
})(), l;
|
|
1017
|
+
})(), L;
|
|
1018
1018
|
(function(l) {
|
|
1019
1019
|
l.ADD_FIELD = "add_field", l.ADD_TAG = "add_tag", l.CHANGE_EMAIL = "change_email", l.REMOVE_FIELD = "remove_field", l.REMOVE_TAG = "remove_tag", l.SUBSCRIBE = "subscribe", l.UNSUBSCRIBE = "unsubscribe";
|
|
1020
1020
|
})(L || (L = {}));
|
|
1021
|
-
var ge = /* @__PURE__ */ function() {
|
|
1021
|
+
var ge = /* @__PURE__ */ (function() {
|
|
1022
1022
|
function l(t) {
|
|
1023
1023
|
this._client = void 0, this._url = "/fetch/commands", this._client = t;
|
|
1024
1024
|
}
|
|
1025
1025
|
var c = l.prototype;
|
|
1026
|
-
return c.addTag = /* @__PURE__ */ function() {
|
|
1026
|
+
return c.addTag = /* @__PURE__ */ (function() {
|
|
1027
1027
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1028
1028
|
var i;
|
|
1029
1029
|
return y().wrap(function(e) {
|
|
@@ -1054,7 +1054,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1054
1054
|
return t.apply(this, arguments);
|
|
1055
1055
|
}
|
|
1056
1056
|
return a;
|
|
1057
|
-
}(), c.removeTag = /* @__PURE__ */ function() {
|
|
1057
|
+
})(), c.removeTag = /* @__PURE__ */ (function() {
|
|
1058
1058
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1059
1059
|
var i;
|
|
1060
1060
|
return y().wrap(function(e) {
|
|
@@ -1085,7 +1085,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1085
1085
|
return t.apply(this, arguments);
|
|
1086
1086
|
}
|
|
1087
1087
|
return a;
|
|
1088
|
-
}(), c.addField = /* @__PURE__ */ function() {
|
|
1088
|
+
})(), c.addField = /* @__PURE__ */ (function() {
|
|
1089
1089
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1090
1090
|
var i;
|
|
1091
1091
|
return y().wrap(function(e) {
|
|
@@ -1116,7 +1116,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1116
1116
|
return t.apply(this, arguments);
|
|
1117
1117
|
}
|
|
1118
1118
|
return a;
|
|
1119
|
-
}(), c.removeField = /* @__PURE__ */ function() {
|
|
1119
|
+
})(), c.removeField = /* @__PURE__ */ (function() {
|
|
1120
1120
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1121
1121
|
var i;
|
|
1122
1122
|
return y().wrap(function(e) {
|
|
@@ -1147,7 +1147,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1147
1147
|
return t.apply(this, arguments);
|
|
1148
1148
|
}
|
|
1149
1149
|
return a;
|
|
1150
|
-
}(), c.subscribe = /* @__PURE__ */ function() {
|
|
1150
|
+
})(), c.subscribe = /* @__PURE__ */ (function() {
|
|
1151
1151
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1152
1152
|
var i;
|
|
1153
1153
|
return y().wrap(function(e) {
|
|
@@ -1177,7 +1177,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1177
1177
|
return t.apply(this, arguments);
|
|
1178
1178
|
}
|
|
1179
1179
|
return a;
|
|
1180
|
-
}(), c.unsubscribe = /* @__PURE__ */ function() {
|
|
1180
|
+
})(), c.unsubscribe = /* @__PURE__ */ (function() {
|
|
1181
1181
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1182
1182
|
var i;
|
|
1183
1183
|
return y().wrap(function(e) {
|
|
@@ -1207,7 +1207,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1207
1207
|
return t.apply(this, arguments);
|
|
1208
1208
|
}
|
|
1209
1209
|
return a;
|
|
1210
|
-
}(), c.changeEmail = /* @__PURE__ */ function() {
|
|
1210
|
+
})(), c.changeEmail = /* @__PURE__ */ (function() {
|
|
1211
1211
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1212
1212
|
var i;
|
|
1213
1213
|
return y().wrap(function(e) {
|
|
@@ -1238,13 +1238,13 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1238
1238
|
return t.apply(this, arguments);
|
|
1239
1239
|
}
|
|
1240
1240
|
return a;
|
|
1241
|
-
}(), l;
|
|
1242
|
-
}(), Ee = /* @__PURE__ */ function() {
|
|
1241
|
+
})(), l;
|
|
1242
|
+
})(), Ee = /* @__PURE__ */ (function() {
|
|
1243
1243
|
function l(t) {
|
|
1244
1244
|
this._client = void 0, this._url = "/experimental", this._client = t;
|
|
1245
1245
|
}
|
|
1246
1246
|
var c = l.prototype;
|
|
1247
|
-
return c.validateEmail = /* @__PURE__ */ function() {
|
|
1247
|
+
return c.validateEmail = /* @__PURE__ */ (function() {
|
|
1248
1248
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1249
1249
|
var i;
|
|
1250
1250
|
return y().wrap(function(e) {
|
|
@@ -1268,7 +1268,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1268
1268
|
return t.apply(this, arguments);
|
|
1269
1269
|
}
|
|
1270
1270
|
return a;
|
|
1271
|
-
}(), c.guessGender = /* @__PURE__ */ function() {
|
|
1271
|
+
})(), c.guessGender = /* @__PURE__ */ (function() {
|
|
1272
1272
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1273
1273
|
var i;
|
|
1274
1274
|
return y().wrap(function(e) {
|
|
@@ -1287,7 +1287,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1287
1287
|
return t.apply(this, arguments);
|
|
1288
1288
|
}
|
|
1289
1289
|
return a;
|
|
1290
|
-
}(), c.geolocate = /* @__PURE__ */ function() {
|
|
1290
|
+
})(), c.geolocate = /* @__PURE__ */ (function() {
|
|
1291
1291
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1292
1292
|
var i;
|
|
1293
1293
|
return y().wrap(function(e) {
|
|
@@ -1312,7 +1312,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1312
1312
|
return t.apply(this, arguments);
|
|
1313
1313
|
}
|
|
1314
1314
|
return a;
|
|
1315
|
-
}(), c.checkBlacklist = /* @__PURE__ */ function() {
|
|
1315
|
+
})(), c.checkBlacklist = /* @__PURE__ */ (function() {
|
|
1316
1316
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1317
1317
|
var i;
|
|
1318
1318
|
return y().wrap(function(e) {
|
|
@@ -1331,13 +1331,13 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1331
1331
|
return t.apply(this, arguments);
|
|
1332
1332
|
}
|
|
1333
1333
|
return a;
|
|
1334
|
-
}(), l;
|
|
1335
|
-
}(), _e = /* @__PURE__ */ function() {
|
|
1334
|
+
})(), l;
|
|
1335
|
+
})(), _e = /* @__PURE__ */ (function() {
|
|
1336
1336
|
function l(t) {
|
|
1337
1337
|
this._client = void 0, this._url = "/fetch/fields", this._client = t;
|
|
1338
1338
|
}
|
|
1339
1339
|
var c = l.prototype;
|
|
1340
|
-
return c.getFields = /* @__PURE__ */ function() {
|
|
1340
|
+
return c.getFields = /* @__PURE__ */ (function() {
|
|
1341
1341
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o() {
|
|
1342
1342
|
var u;
|
|
1343
1343
|
return y().wrap(function(p) {
|
|
@@ -1362,7 +1362,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1362
1362
|
return t.apply(this, arguments);
|
|
1363
1363
|
}
|
|
1364
1364
|
return a;
|
|
1365
|
-
}(), c.createField = /* @__PURE__ */ function() {
|
|
1365
|
+
})(), c.createField = /* @__PURE__ */ (function() {
|
|
1366
1366
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1367
1367
|
var i;
|
|
1368
1368
|
return y().wrap(function(e) {
|
|
@@ -1389,13 +1389,13 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1389
1389
|
return t.apply(this, arguments);
|
|
1390
1390
|
}
|
|
1391
1391
|
return a;
|
|
1392
|
-
}(), l;
|
|
1393
|
-
}(), Te = /* @__PURE__ */ function() {
|
|
1392
|
+
})(), l;
|
|
1393
|
+
})(), Te = /* @__PURE__ */ (function() {
|
|
1394
1394
|
function l(t) {
|
|
1395
1395
|
this._client = void 0, this._url = "/fetch/responses", this._client = t;
|
|
1396
1396
|
}
|
|
1397
1397
|
var c = l.prototype;
|
|
1398
|
-
return c.getResponses = /* @__PURE__ */ function() {
|
|
1398
|
+
return c.getResponses = /* @__PURE__ */ (function() {
|
|
1399
1399
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1400
1400
|
var i;
|
|
1401
1401
|
return y().wrap(function(e) {
|
|
@@ -1422,13 +1422,13 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1422
1422
|
return t.apply(this, arguments);
|
|
1423
1423
|
}
|
|
1424
1424
|
return a;
|
|
1425
|
-
}(), l;
|
|
1426
|
-
}(), ke = /* @__PURE__ */ function() {
|
|
1425
|
+
})(), l;
|
|
1426
|
+
})(), ke = /* @__PURE__ */ (function() {
|
|
1427
1427
|
function l(t) {
|
|
1428
1428
|
this._client = void 0, this._url = "/fetch/subscribers", this._client = t;
|
|
1429
1429
|
}
|
|
1430
1430
|
var c = l.prototype;
|
|
1431
|
-
return c.getSubscribers = /* @__PURE__ */ function() {
|
|
1431
|
+
return c.getSubscribers = /* @__PURE__ */ (function() {
|
|
1432
1432
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1433
1433
|
var i;
|
|
1434
1434
|
return y().wrap(function(e) {
|
|
@@ -1453,7 +1453,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1453
1453
|
return t.apply(this, arguments);
|
|
1454
1454
|
}
|
|
1455
1455
|
return a;
|
|
1456
|
-
}(), c.createSubscriber = /* @__PURE__ */ function() {
|
|
1456
|
+
})(), c.createSubscriber = /* @__PURE__ */ (function() {
|
|
1457
1457
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1458
1458
|
var i;
|
|
1459
1459
|
return y().wrap(function(e) {
|
|
@@ -1480,13 +1480,13 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1480
1480
|
return t.apply(this, arguments);
|
|
1481
1481
|
}
|
|
1482
1482
|
return a;
|
|
1483
|
-
}(), l;
|
|
1484
|
-
}(), Be = /* @__PURE__ */ function() {
|
|
1483
|
+
})(), l;
|
|
1484
|
+
})(), Be = /* @__PURE__ */ (function() {
|
|
1485
1485
|
function l(t) {
|
|
1486
1486
|
this._client = void 0, this._url = "/fetch/tags", this._client = t;
|
|
1487
1487
|
}
|
|
1488
1488
|
var c = l.prototype;
|
|
1489
|
-
return c.getTags = /* @__PURE__ */ function() {
|
|
1489
|
+
return c.getTags = /* @__PURE__ */ (function() {
|
|
1490
1490
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o() {
|
|
1491
1491
|
var u;
|
|
1492
1492
|
return y().wrap(function(p) {
|
|
@@ -1511,7 +1511,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1511
1511
|
return t.apply(this, arguments);
|
|
1512
1512
|
}
|
|
1513
1513
|
return a;
|
|
1514
|
-
}(), c.createTag = /* @__PURE__ */ function() {
|
|
1514
|
+
})(), c.createTag = /* @__PURE__ */ (function() {
|
|
1515
1515
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1516
1516
|
var i;
|
|
1517
1517
|
return y().wrap(function(e) {
|
|
@@ -1538,17 +1538,17 @@ var ge = /* @__PURE__ */ function() {
|
|
|
1538
1538
|
return t.apply(this, arguments);
|
|
1539
1539
|
}
|
|
1540
1540
|
return a;
|
|
1541
|
-
}(), l;
|
|
1542
|
-
}(), N;
|
|
1541
|
+
})(), l;
|
|
1542
|
+
})(), N;
|
|
1543
1543
|
(function(l) {
|
|
1544
1544
|
l.PURCHASE = "$purchase", l.SUBSCRIBE = "$subscribe", l.TAG = "$tag", l.REMOVE_TAG = "$remove_tag", l.UNSUBSCRIBE = "$unsubscribe", l.UPDATE_FIELDS = "$update_fields";
|
|
1545
1545
|
})(N || (N = {}));
|
|
1546
|
-
var Oe = /* @__PURE__ */ function() {
|
|
1546
|
+
var Oe = /* @__PURE__ */ (function() {
|
|
1547
1547
|
function l(t) {
|
|
1548
1548
|
this._client = void 0, this.Batch = void 0, this.Commands = void 0, this.Experimental = void 0, this.Fields = void 0, this.Forms = void 0, this.Subscribers = void 0, this.Tags = void 0, this._client = new we(t), this.Batch = new ve(this._client), this.Commands = new ge(this._client), this.Experimental = new Ee(this._client), this.Fields = new _e(this._client), this.Forms = new Te(this._client), this.Subscribers = new ke(this._client), this.Tags = new Be(this._client);
|
|
1549
1549
|
}
|
|
1550
1550
|
var c = l.prototype;
|
|
1551
|
-
return c.tagSubscriber = /* @__PURE__ */ function() {
|
|
1551
|
+
return c.tagSubscriber = /* @__PURE__ */ (function() {
|
|
1552
1552
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1553
1553
|
var i;
|
|
1554
1554
|
return y().wrap(function(e) {
|
|
@@ -1576,7 +1576,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
1576
1576
|
return t.apply(this, arguments);
|
|
1577
1577
|
}
|
|
1578
1578
|
return a;
|
|
1579
|
-
}(), c.addSubscriber = /* @__PURE__ */ function() {
|
|
1579
|
+
})(), c.addSubscriber = /* @__PURE__ */ (function() {
|
|
1580
1580
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1581
1581
|
var i;
|
|
1582
1582
|
return y().wrap(function(e) {
|
|
@@ -1602,7 +1602,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
1602
1602
|
return t.apply(this, arguments);
|
|
1603
1603
|
}
|
|
1604
1604
|
return a;
|
|
1605
|
-
}(), c.removeSubscriber = /* @__PURE__ */ function() {
|
|
1605
|
+
})(), c.removeSubscriber = /* @__PURE__ */ (function() {
|
|
1606
1606
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1607
1607
|
var i;
|
|
1608
1608
|
return y().wrap(function(e) {
|
|
@@ -1627,7 +1627,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
1627
1627
|
return t.apply(this, arguments);
|
|
1628
1628
|
}
|
|
1629
1629
|
return a;
|
|
1630
|
-
}(), c.updateFields = /* @__PURE__ */ function() {
|
|
1630
|
+
})(), c.updateFields = /* @__PURE__ */ (function() {
|
|
1631
1631
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1632
1632
|
var i;
|
|
1633
1633
|
return y().wrap(function(e) {
|
|
@@ -1653,7 +1653,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
1653
1653
|
return t.apply(this, arguments);
|
|
1654
1654
|
}
|
|
1655
1655
|
return a;
|
|
1656
|
-
}(), c.trackPurchase = /* @__PURE__ */ function() {
|
|
1656
|
+
})(), c.trackPurchase = /* @__PURE__ */ (function() {
|
|
1657
1657
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1658
1658
|
var i;
|
|
1659
1659
|
return y().wrap(function(e) {
|
|
@@ -1679,7 +1679,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
1679
1679
|
return t.apply(this, arguments);
|
|
1680
1680
|
}
|
|
1681
1681
|
return a;
|
|
1682
|
-
}(), c.track = /* @__PURE__ */ function() {
|
|
1682
|
+
})(), c.track = /* @__PURE__ */ (function() {
|
|
1683
1683
|
var t = /* @__PURE__ */ w(/* @__PURE__ */ y().mark(function o(u) {
|
|
1684
1684
|
var i;
|
|
1685
1685
|
return y().wrap(function(e) {
|
|
@@ -1700,8 +1700,8 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
1700
1700
|
return t.apply(this, arguments);
|
|
1701
1701
|
}
|
|
1702
1702
|
return a;
|
|
1703
|
-
}(), l;
|
|
1704
|
-
}(), Ae = function(c) {
|
|
1703
|
+
})(), l;
|
|
1704
|
+
})(), Ae = function(c) {
|
|
1705
1705
|
this.V1 = void 0, this.V1 = new Oe(c);
|
|
1706
1706
|
};
|
|
1707
1707
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as S, r as F, b as w } from "./axios-
|
|
1
|
+
import { a as S, r as F, b as w } from "./axios-0_CwElpL.js";
|
|
2
2
|
import { a as R } from "./_commonjsHelpers-B4e78b8K.js";
|
|
3
3
|
function I(r, i) {
|
|
4
4
|
for (var _ = 0; _ < i.length; _++) {
|
|
@@ -654,19 +654,19 @@ var k;
|
|
|
654
654
|
function V() {
|
|
655
655
|
if (k) return v;
|
|
656
656
|
k = 1;
|
|
657
|
-
var r = v && v.__createBinding || (Object.create ? function(a, t, s, n) {
|
|
657
|
+
var r = v && v.__createBinding || (Object.create ? (function(a, t, s, n) {
|
|
658
658
|
n === void 0 && (n = s);
|
|
659
659
|
var o = Object.getOwnPropertyDescriptor(t, s);
|
|
660
660
|
(!o || ("get" in o ? !t.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
|
|
661
661
|
return t[s];
|
|
662
662
|
} }), Object.defineProperty(a, n, o);
|
|
663
|
-
} : function(a, t, s, n) {
|
|
663
|
+
}) : (function(a, t, s, n) {
|
|
664
664
|
n === void 0 && (n = s), a[n] = t[s];
|
|
665
|
-
}), i = v && v.__setModuleDefault || (Object.create ? function(a, t) {
|
|
665
|
+
})), i = v && v.__setModuleDefault || (Object.create ? (function(a, t) {
|
|
666
666
|
Object.defineProperty(a, "default", { enumerable: !0, value: t });
|
|
667
|
-
} : function(a, t) {
|
|
667
|
+
}) : function(a, t) {
|
|
668
668
|
a.default = t;
|
|
669
|
-
}), _ = v && v.__importStar || /* @__PURE__ */ function() {
|
|
669
|
+
}), _ = v && v.__importStar || /* @__PURE__ */ (function() {
|
|
670
670
|
var a = function(t) {
|
|
671
671
|
return a = Object.getOwnPropertyNames || function(s) {
|
|
672
672
|
var n = [];
|
|
@@ -680,7 +680,7 @@ function V() {
|
|
|
680
680
|
if (t != null) for (var n = a(t), o = 0; o < n.length; o++) n[o] !== "default" && r(s, t, n[o]);
|
|
681
681
|
return i(s, t), s;
|
|
682
682
|
};
|
|
683
|
-
}(), f = v && v.__awaiter || function(a, t, s, n) {
|
|
683
|
+
})(), f = v && v.__awaiter || function(a, t, s, n) {
|
|
684
684
|
function o(p) {
|
|
685
685
|
return p instanceof s ? p : new s(function(m) {
|
|
686
686
|
m(p);
|
|
@@ -805,20 +805,20 @@ function V() {
|
|
|
805
805
|
}
|
|
806
806
|
var G;
|
|
807
807
|
function D() {
|
|
808
|
-
return G || (G = 1, function(r) {
|
|
809
|
-
var i = g && g.__createBinding || (Object.create ? function(f, l, e, d) {
|
|
808
|
+
return G || (G = 1, (function(r) {
|
|
809
|
+
var i = g && g.__createBinding || (Object.create ? (function(f, l, e, d) {
|
|
810
810
|
d === void 0 && (d = e);
|
|
811
811
|
var c = Object.getOwnPropertyDescriptor(l, e);
|
|
812
812
|
(!c || ("get" in c ? !l.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() {
|
|
813
813
|
return l[e];
|
|
814
814
|
} }), Object.defineProperty(f, d, c);
|
|
815
|
-
} : function(f, l, e, d) {
|
|
815
|
+
}) : (function(f, l, e, d) {
|
|
816
816
|
d === void 0 && (d = e), f[d] = l[e];
|
|
817
|
-
}), _ = g && g.__exportStar || function(f, l) {
|
|
817
|
+
})), _ = g && g.__exportStar || function(f, l) {
|
|
818
818
|
for (var e in f) e !== "default" && !Object.prototype.hasOwnProperty.call(l, e) && i(l, f, e);
|
|
819
819
|
};
|
|
820
820
|
Object.defineProperty(r, "__esModule", { value: !0 }), _(N(), r), _(S(), r), _(V(), r);
|
|
821
|
-
}(g)), g;
|
|
821
|
+
})(g)), g;
|
|
822
822
|
}
|
|
823
823
|
var L = D();
|
|
824
824
|
const Y = /* @__PURE__ */ I({
|