docspring-ts 3.2.0 → 3.3.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/README.md +1 -1
- package/dist/apis/Client.js +208 -127
- package/dist/apis/Client.js.map +1 -1
- package/dist/http/isomorphic-fetch.js +1 -1
- package/dist/models/BatchGeneratePdfs201Response.d.ts +1 -0
- package/dist/models/BatchGeneratePdfs201Response.js +6 -0
- package/dist/models/BatchGeneratePdfs201Response.js.map +1 -1
- package/dist/models/CombinedSubmission.d.ts +2 -1
- package/dist/models/CombinedSubmission.js +1 -0
- package/dist/models/CombinedSubmission.js.map +1 -1
- package/dist/models/CreateCombinedSubmissionResponse.d.ts +2 -0
- package/dist/models/CreateCombinedSubmissionResponse.js +12 -0
- package/dist/models/CreateCombinedSubmissionResponse.js.map +1 -1
- package/dist/models/CreateCustomFileResponse.d.ts +1 -0
- package/dist/models/CreateCustomFileResponse.js +6 -0
- package/dist/models/CreateCustomFileResponse.js.map +1 -1
- package/dist/models/CreatePdfSubmissionData.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestEventResponse.d.ts +1 -0
- package/dist/models/CreateSubmissionDataRequestEventResponse.js +6 -0
- package/dist/models/CreateSubmissionDataRequestEventResponse.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestResponse.d.ts +1 -0
- package/dist/models/CreateSubmissionDataRequestResponse.js +6 -0
- package/dist/models/CreateSubmissionDataRequestResponse.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestTokenResponse.d.ts +1 -0
- package/dist/models/CreateSubmissionDataRequestTokenResponse.js +6 -0
- package/dist/models/CreateSubmissionDataRequestTokenResponse.js.map +1 -1
- package/dist/models/CreateSubmissionResponse.d.ts +2 -0
- package/dist/models/CreateSubmissionResponse.js +12 -0
- package/dist/models/CreateSubmissionResponse.js.map +1 -1
- package/dist/models/ForbiddenErrorResponse.d.ts +29 -0
- package/dist/models/ForbiddenErrorResponse.js +44 -0
- package/dist/models/ForbiddenErrorResponse.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +1 -0
- package/dist/models/ObjectSerializer.js +5 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/Submission.d.ts +1 -0
- package/dist/models/Submission.js +1 -0
- package/dist/models/Submission.js.map +1 -1
- package/dist/models/SubmissionBatchData.js.map +1 -1
- package/dist/models/SubmissionPreview.d.ts +1 -0
- package/dist/models/SubmissionPreview.js +1 -0
- package/dist/models/SubmissionPreview.js.map +1 -1
- package/dist/models/all.d.ts +1 -0
- package/dist/models/all.js +1 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ templates with your data, generates PDFs from HTML templates, combines PDFs and
|
|
|
6
6
|
[Documentation](https://docspring.com/docs/) · [API reference](https://docspring.com/docs/api/) ·
|
|
7
7
|
[npm](https://www.npmjs.com/package/docspring-ts) · [Changelog](https://github.com/DocSpring/docspring-typescript/blob/main/CHANGELOG.md)
|
|
8
8
|
|
|
9
|
-
Version 3.
|
|
9
|
+
Version 3.3.0.
|
|
10
10
|
|
|
11
11
|
## Install and configure
|
|
12
12
|
|
package/dist/apis/Client.js
CHANGED
|
@@ -1915,147 +1915,174 @@ var ClientResponseProcessor = (function () {
|
|
|
1915
1915
|
};
|
|
1916
1916
|
ClientResponseProcessor.prototype.batchGeneratePdfsWithHttpInfo = function (response) {
|
|
1917
1917
|
return __awaiter(this, void 0, void 0, function () {
|
|
1918
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
1919
|
-
return __generator(this, function (
|
|
1920
|
-
switch (
|
|
1918
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, body, _0, _1, _2, _3, body, _4, _5, _6, _7, _8, _9;
|
|
1919
|
+
return __generator(this, function (_10) {
|
|
1920
|
+
switch (_10.label) {
|
|
1921
1921
|
case 0:
|
|
1922
1922
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1923
|
-
if (!(0, util_1.isCodeInRange)("
|
|
1923
|
+
if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 2];
|
|
1924
1924
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1925
1925
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1926
1926
|
return [4, response.body.text()];
|
|
1927
1927
|
case 1:
|
|
1928
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1928
|
+
body = _b.apply(_a, [_d.apply(_c, [_10.sent(), contentType]),
|
|
1929
1929
|
"BatchGeneratePdfs201Response", ""]);
|
|
1930
|
-
|
|
1930
|
+
throw new exception_1.ApiException(response.httpStatusCode, "insufficient credits", body, response.headers);
|
|
1931
1931
|
case 2:
|
|
1932
|
-
if (!(0, util_1.isCodeInRange)("
|
|
1932
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
1933
1933
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1934
1934
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1935
1935
|
return [4, response.body.text()];
|
|
1936
1936
|
case 3:
|
|
1937
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1938
|
-
"
|
|
1939
|
-
|
|
1937
|
+
body = _f.apply(_e, [_h.apply(_g, [_10.sent(), contentType]),
|
|
1938
|
+
"ForbiddenErrorResponse", ""]);
|
|
1939
|
+
throw new exception_1.ApiException(response.httpStatusCode, "account suspended", body, response.headers);
|
|
1940
1940
|
case 4:
|
|
1941
|
-
if (!(0, util_1.isCodeInRange)("
|
|
1941
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 6];
|
|
1942
1942
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1943
1943
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1944
1944
|
return [4, response.body.text()];
|
|
1945
1945
|
case 5:
|
|
1946
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1947
|
-
"
|
|
1948
|
-
|
|
1946
|
+
body = _k.apply(_j, [_m.apply(_l, [_10.sent(), contentType]),
|
|
1947
|
+
"BatchGeneratePdfs201Response", ""]);
|
|
1948
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1949
1949
|
case 6:
|
|
1950
|
-
if (!(0, util_1.isCodeInRange)("
|
|
1950
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 8];
|
|
1951
1951
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1952
1952
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1953
1953
|
return [4, response.body.text()];
|
|
1954
1954
|
case 7:
|
|
1955
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
1956
|
-
"
|
|
1957
|
-
|
|
1955
|
+
body = _p.apply(_o, [_r.apply(_q, [_10.sent(), contentType]),
|
|
1956
|
+
"BatchGeneratePdfs201Response", ""]);
|
|
1957
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1958
1958
|
case 8:
|
|
1959
|
-
if (!(0, util_1.isCodeInRange)("
|
|
1959
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 10];
|
|
1960
1960
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1961
1961
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1962
1962
|
return [4, response.body.text()];
|
|
1963
1963
|
case 9:
|
|
1964
|
-
body = _t.apply(_s, [_v.apply(_u, [
|
|
1964
|
+
body = _t.apply(_s, [_v.apply(_u, [_10.sent(), contentType]),
|
|
1965
1965
|
"ErrorResponse", ""]);
|
|
1966
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
1966
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
1967
1967
|
case 10:
|
|
1968
|
-
if (!(
|
|
1968
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 12];
|
|
1969
1969
|
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1970
1970
|
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1971
1971
|
return [4, response.body.text()];
|
|
1972
1972
|
case 11:
|
|
1973
|
-
body = _x.apply(_w, [_z.apply(_y, [
|
|
1973
|
+
body = _x.apply(_w, [_z.apply(_y, [_10.sent(), contentType]),
|
|
1974
|
+
"ErrorOrMultipleErrorsResponse", ""]);
|
|
1975
|
+
throw new exception_1.ApiException(response.httpStatusCode, "array of arrays", body, response.headers);
|
|
1976
|
+
case 12:
|
|
1977
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 14];
|
|
1978
|
+
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1979
|
+
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1980
|
+
return [4, response.body.text()];
|
|
1981
|
+
case 13:
|
|
1982
|
+
body = _1.apply(_0, [_3.apply(_2, [_10.sent(), contentType]),
|
|
1983
|
+
"ErrorResponse", ""]);
|
|
1984
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid JSON", body, response.headers);
|
|
1985
|
+
case 14:
|
|
1986
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 16];
|
|
1987
|
+
_5 = (_4 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1988
|
+
_7 = (_6 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1989
|
+
return [4, response.body.text()];
|
|
1990
|
+
case 15:
|
|
1991
|
+
body = _5.apply(_4, [_7.apply(_6, [_10.sent(), contentType]),
|
|
1974
1992
|
"BatchGeneratePdfs201Response", ""]);
|
|
1975
1993
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1976
|
-
case
|
|
1977
|
-
|
|
1978
|
-
|
|
1994
|
+
case 16:
|
|
1995
|
+
_8 = exception_1.ApiException.bind;
|
|
1996
|
+
_9 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1979
1997
|
return [4, response.getBodyAsAny()];
|
|
1980
|
-
case
|
|
1998
|
+
case 17: throw new (_8.apply(exception_1.ApiException, _9.concat([_10.sent(), response.headers])))();
|
|
1981
1999
|
}
|
|
1982
2000
|
});
|
|
1983
2001
|
});
|
|
1984
2002
|
};
|
|
1985
2003
|
ClientResponseProcessor.prototype.combinePdfsWithHttpInfo = function (response) {
|
|
1986
2004
|
return __awaiter(this, void 0, void 0, function () {
|
|
1987
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
1988
|
-
return __generator(this, function (
|
|
1989
|
-
switch (
|
|
2005
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, body, _0, _1, _2, _3, _4, _5;
|
|
2006
|
+
return __generator(this, function (_6) {
|
|
2007
|
+
switch (_6.label) {
|
|
1990
2008
|
case 0:
|
|
1991
2009
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1992
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2010
|
+
if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 2];
|
|
1993
2011
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1994
2012
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1995
2013
|
return [4, response.body.text()];
|
|
1996
2014
|
case 1:
|
|
1997
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2015
|
+
body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
|
|
1998
2016
|
"CreateCombinedSubmissionResponse", ""]);
|
|
1999
|
-
|
|
2017
|
+
throw new exception_1.ApiException(response.httpStatusCode, "insufficient credits", body, response.headers);
|
|
2000
2018
|
case 2:
|
|
2001
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2019
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
2002
2020
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2003
2021
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2004
2022
|
return [4, response.body.text()];
|
|
2005
2023
|
case 3:
|
|
2006
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2007
|
-
"
|
|
2008
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2024
|
+
body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
|
|
2025
|
+
"ErrorResponse", ""]);
|
|
2026
|
+
throw new exception_1.ApiException(response.httpStatusCode, "test API token used to delete custom files", body, response.headers);
|
|
2009
2027
|
case 4:
|
|
2010
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2028
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 6];
|
|
2011
2029
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2012
2030
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2013
2031
|
return [4, response.body.text()];
|
|
2014
2032
|
case 5:
|
|
2015
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2016
|
-
"
|
|
2017
|
-
|
|
2033
|
+
body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
|
|
2034
|
+
"CreateCombinedSubmissionResponse", ""]);
|
|
2035
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2018
2036
|
case 6:
|
|
2019
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2037
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
|
|
2020
2038
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2021
2039
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2022
2040
|
return [4, response.body.text()];
|
|
2023
2041
|
case 7:
|
|
2024
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
2025
|
-
"
|
|
2026
|
-
throw new exception_1.ApiException(response.httpStatusCode, "invalid
|
|
2042
|
+
body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
|
|
2043
|
+
"MultipleErrorsResponse", ""]);
|
|
2044
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
2027
2045
|
case 8:
|
|
2028
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2046
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 10];
|
|
2029
2047
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2030
2048
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2031
2049
|
return [4, response.body.text()];
|
|
2032
2050
|
case 9:
|
|
2033
|
-
body = _t.apply(_s, [_v.apply(_u, [
|
|
2051
|
+
body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
|
|
2034
2052
|
"ErrorResponse", ""]);
|
|
2035
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2053
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid JSON", body, response.headers);
|
|
2036
2054
|
case 10:
|
|
2037
|
-
if (!(
|
|
2055
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 12];
|
|
2038
2056
|
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2039
2057
|
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2040
2058
|
return [4, response.body.text()];
|
|
2041
2059
|
case 11:
|
|
2042
|
-
body = _x.apply(_w, [_z.apply(_y, [
|
|
2060
|
+
body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
|
|
2061
|
+
"ErrorResponse", ""]);
|
|
2062
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2063
|
+
case 12:
|
|
2064
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
|
|
2065
|
+
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2066
|
+
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2067
|
+
return [4, response.body.text()];
|
|
2068
|
+
case 13:
|
|
2069
|
+
body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
|
|
2043
2070
|
"CreateCombinedSubmissionResponse", ""]);
|
|
2044
2071
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2045
|
-
case
|
|
2046
|
-
|
|
2047
|
-
|
|
2072
|
+
case 14:
|
|
2073
|
+
_4 = exception_1.ApiException.bind;
|
|
2074
|
+
_5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2048
2075
|
return [4, response.getBodyAsAny()];
|
|
2049
|
-
case
|
|
2076
|
+
case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
|
|
2050
2077
|
}
|
|
2051
2078
|
});
|
|
2052
2079
|
});
|
|
2053
2080
|
};
|
|
2054
2081
|
ClientResponseProcessor.prototype.copyTemplateWithHttpInfo = function (response) {
|
|
2055
2082
|
return __awaiter(this, void 0, void 0, function () {
|
|
2056
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2057
|
-
return __generator(this, function (
|
|
2058
|
-
switch (
|
|
2083
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2084
|
+
return __generator(this, function (_u) {
|
|
2085
|
+
switch (_u.label) {
|
|
2059
2086
|
case 0:
|
|
2060
2087
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2061
2088
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2063,32 +2090,41 @@ var ClientResponseProcessor = (function () {
|
|
|
2063
2090
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2064
2091
|
return [4, response.body.text()];
|
|
2065
2092
|
case 1:
|
|
2066
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2093
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2067
2094
|
"TemplatePreview", ""]);
|
|
2068
2095
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2069
2096
|
case 2:
|
|
2070
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2097
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
2071
2098
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2072
2099
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2073
2100
|
return [4, response.body.text()];
|
|
2074
2101
|
case 3:
|
|
2075
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2076
|
-
"
|
|
2077
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2102
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2103
|
+
"ForbiddenErrorResponse", ""]);
|
|
2104
|
+
throw new exception_1.ApiException(response.httpStatusCode, "the plan\'s template limit is reached", body, response.headers);
|
|
2078
2105
|
case 4:
|
|
2079
|
-
if (!(
|
|
2106
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
2080
2107
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2081
2108
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2082
2109
|
return [4, response.body.text()];
|
|
2083
2110
|
case 5:
|
|
2084
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2111
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2112
|
+
"ErrorResponse", ""]);
|
|
2113
|
+
throw new exception_1.ApiException(response.httpStatusCode, "folder not found", body, response.headers);
|
|
2114
|
+
case 6:
|
|
2115
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2116
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2117
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2118
|
+
return [4, response.body.text()];
|
|
2119
|
+
case 7:
|
|
2120
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2085
2121
|
"TemplatePreview", ""]);
|
|
2086
2122
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2087
|
-
case
|
|
2088
|
-
|
|
2089
|
-
|
|
2123
|
+
case 8:
|
|
2124
|
+
_s = exception_1.ApiException.bind;
|
|
2125
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2090
2126
|
return [4, response.getBodyAsAny()];
|
|
2091
|
-
case
|
|
2127
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2092
2128
|
}
|
|
2093
2129
|
});
|
|
2094
2130
|
});
|
|
@@ -2299,9 +2335,9 @@ var ClientResponseProcessor = (function () {
|
|
|
2299
2335
|
};
|
|
2300
2336
|
ClientResponseProcessor.prototype.createHtmlTemplateWithHttpInfo = function (response) {
|
|
2301
2337
|
return __awaiter(this, void 0, void 0, function () {
|
|
2302
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2303
|
-
return __generator(this, function (
|
|
2304
|
-
switch (
|
|
2338
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2339
|
+
return __generator(this, function (_u) {
|
|
2340
|
+
switch (_u.label) {
|
|
2305
2341
|
case 0:
|
|
2306
2342
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2307
2343
|
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
@@ -2309,41 +2345,50 @@ var ClientResponseProcessor = (function () {
|
|
|
2309
2345
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2310
2346
|
return [4, response.body.text()];
|
|
2311
2347
|
case 1:
|
|
2312
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2348
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2313
2349
|
"TemplatePreview", ""]);
|
|
2314
2350
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2315
2351
|
case 2:
|
|
2316
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2352
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
2317
2353
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2318
2354
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2319
2355
|
return [4, response.body.text()];
|
|
2320
2356
|
case 3:
|
|
2321
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2322
|
-
"
|
|
2323
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2357
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2358
|
+
"ForbiddenErrorResponse", ""]);
|
|
2359
|
+
throw new exception_1.ApiException(response.httpStatusCode, "the plan\'s template limit is reached", body, response.headers);
|
|
2324
2360
|
case 4:
|
|
2325
|
-
if (!(
|
|
2361
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
2326
2362
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2327
2363
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2328
2364
|
return [4, response.body.text()];
|
|
2329
2365
|
case 5:
|
|
2330
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2366
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2367
|
+
"ErrorResponse", ""]);
|
|
2368
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2369
|
+
case 6:
|
|
2370
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2371
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2372
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2373
|
+
return [4, response.body.text()];
|
|
2374
|
+
case 7:
|
|
2375
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2331
2376
|
"TemplatePreview", ""]);
|
|
2332
2377
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2333
|
-
case
|
|
2334
|
-
|
|
2335
|
-
|
|
2378
|
+
case 8:
|
|
2379
|
+
_s = exception_1.ApiException.bind;
|
|
2380
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2336
2381
|
return [4, response.getBodyAsAny()];
|
|
2337
|
-
case
|
|
2382
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2338
2383
|
}
|
|
2339
2384
|
});
|
|
2340
2385
|
});
|
|
2341
2386
|
};
|
|
2342
2387
|
ClientResponseProcessor.prototype.createPdfTemplateWithHttpInfo = function (response) {
|
|
2343
2388
|
return __awaiter(this, void 0, void 0, function () {
|
|
2344
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2345
|
-
return __generator(this, function (
|
|
2346
|
-
switch (
|
|
2389
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2390
|
+
return __generator(this, function (_u) {
|
|
2391
|
+
switch (_u.label) {
|
|
2347
2392
|
case 0:
|
|
2348
2393
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2349
2394
|
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
@@ -2351,41 +2396,50 @@ var ClientResponseProcessor = (function () {
|
|
|
2351
2396
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2352
2397
|
return [4, response.body.text()];
|
|
2353
2398
|
case 1:
|
|
2354
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2399
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2355
2400
|
"TemplatePreview", ""]);
|
|
2356
2401
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2357
2402
|
case 2:
|
|
2358
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2403
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
|
|
2359
2404
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2360
2405
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2361
2406
|
return [4, response.body.text()];
|
|
2362
2407
|
case 3:
|
|
2363
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2364
|
-
"
|
|
2365
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2408
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2409
|
+
"ForbiddenErrorResponse", ""]);
|
|
2410
|
+
throw new exception_1.ApiException(response.httpStatusCode, "the plan\'s template limit is reached", body, response.headers);
|
|
2366
2411
|
case 4:
|
|
2367
|
-
if (!(
|
|
2412
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
2368
2413
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2369
2414
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2370
2415
|
return [4, response.body.text()];
|
|
2371
2416
|
case 5:
|
|
2372
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2417
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2418
|
+
"ErrorResponse", ""]);
|
|
2419
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2420
|
+
case 6:
|
|
2421
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2422
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2423
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2424
|
+
return [4, response.body.text()];
|
|
2425
|
+
case 7:
|
|
2426
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2373
2427
|
"TemplatePreview", ""]);
|
|
2374
2428
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2375
|
-
case
|
|
2376
|
-
|
|
2377
|
-
|
|
2429
|
+
case 8:
|
|
2430
|
+
_s = exception_1.ApiException.bind;
|
|
2431
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2378
2432
|
return [4, response.getBodyAsAny()];
|
|
2379
|
-
case
|
|
2433
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2380
2434
|
}
|
|
2381
2435
|
});
|
|
2382
2436
|
});
|
|
2383
2437
|
};
|
|
2384
2438
|
ClientResponseProcessor.prototype.createPdfTemplateFromUploadWithHttpInfo = function (response) {
|
|
2385
2439
|
return __awaiter(this, void 0, void 0, function () {
|
|
2386
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2387
|
-
return __generator(this, function (
|
|
2388
|
-
switch (
|
|
2440
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2441
|
+
return __generator(this, function (_u) {
|
|
2442
|
+
switch (_u.label) {
|
|
2389
2443
|
case 0:
|
|
2390
2444
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2391
2445
|
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
@@ -2393,7 +2447,7 @@ var ClientResponseProcessor = (function () {
|
|
|
2393
2447
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2394
2448
|
return [4, response.body.text()];
|
|
2395
2449
|
case 1:
|
|
2396
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2450
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2397
2451
|
"TemplatePreview", ""]);
|
|
2398
2452
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2399
2453
|
case 2:
|
|
@@ -2402,23 +2456,32 @@ var ClientResponseProcessor = (function () {
|
|
|
2402
2456
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2403
2457
|
return [4, response.body.text()];
|
|
2404
2458
|
case 3:
|
|
2405
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2459
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2406
2460
|
"ErrorResponse", ""]);
|
|
2407
2461
|
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2408
2462
|
case 4:
|
|
2409
|
-
if (!(
|
|
2463
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
|
|
2410
2464
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2411
2465
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2412
2466
|
return [4, response.body.text()];
|
|
2413
2467
|
case 5:
|
|
2414
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2468
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2469
|
+
"ForbiddenErrorResponse", ""]);
|
|
2470
|
+
throw new exception_1.ApiException(response.httpStatusCode, "the plan\'s template limit is reached", body, response.headers);
|
|
2471
|
+
case 6:
|
|
2472
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2473
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2474
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2475
|
+
return [4, response.body.text()];
|
|
2476
|
+
case 7:
|
|
2477
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2415
2478
|
"TemplatePreview", ""]);
|
|
2416
2479
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2417
|
-
case
|
|
2418
|
-
|
|
2419
|
-
|
|
2480
|
+
case 8:
|
|
2481
|
+
_s = exception_1.ApiException.bind;
|
|
2482
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2420
2483
|
return [4, response.getBodyAsAny()];
|
|
2421
|
-
case
|
|
2484
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2422
2485
|
}
|
|
2423
2486
|
});
|
|
2424
2487
|
});
|
|
@@ -2758,51 +2821,69 @@ var ClientResponseProcessor = (function () {
|
|
|
2758
2821
|
};
|
|
2759
2822
|
ClientResponseProcessor.prototype.generatePdfWithHttpInfo = function (response) {
|
|
2760
2823
|
return __awaiter(this, void 0, void 0, function () {
|
|
2761
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2762
|
-
return __generator(this, function (
|
|
2763
|
-
switch (
|
|
2824
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
2825
|
+
return __generator(this, function (_2) {
|
|
2826
|
+
switch (_2.label) {
|
|
2764
2827
|
case 0:
|
|
2765
2828
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2766
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2829
|
+
if (!(0, util_1.isCodeInRange)("402", response.httpStatusCode)) return [3, 2];
|
|
2767
2830
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2768
2831
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2769
2832
|
return [4, response.body.text()];
|
|
2770
2833
|
case 1:
|
|
2771
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2834
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
2772
2835
|
"CreateSubmissionResponse", ""]);
|
|
2773
|
-
|
|
2836
|
+
throw new exception_1.ApiException(response.httpStatusCode, "insufficient credits", body, response.headers);
|
|
2774
2837
|
case 2:
|
|
2775
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2838
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 4];
|
|
2776
2839
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2777
2840
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2778
2841
|
return [4, response.body.text()];
|
|
2779
2842
|
case 3:
|
|
2780
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2781
|
-
"
|
|
2782
|
-
|
|
2843
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
2844
|
+
"CreateSubmissionResponse", ""]);
|
|
2845
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2783
2846
|
case 4:
|
|
2784
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2847
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
|
|
2785
2848
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2786
2849
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2787
2850
|
return [4, response.body.text()];
|
|
2788
2851
|
case 5:
|
|
2789
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2790
|
-
"
|
|
2791
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2852
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
2853
|
+
"Submission422Response", ""]);
|
|
2854
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
2792
2855
|
case 6:
|
|
2793
|
-
if (!(
|
|
2856
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 8];
|
|
2794
2857
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2795
2858
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2796
2859
|
return [4, response.body.text()];
|
|
2797
2860
|
case 7:
|
|
2798
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
2861
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
2862
|
+
"ForbiddenErrorResponse", ""]);
|
|
2863
|
+
throw new exception_1.ApiException(response.httpStatusCode, "live data requests need Starter or higher", body, response.headers);
|
|
2864
|
+
case 8:
|
|
2865
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 10];
|
|
2866
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2867
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2868
|
+
return [4, response.body.text()];
|
|
2869
|
+
case 9:
|
|
2870
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
2871
|
+
"ErrorResponse", ""]);
|
|
2872
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2873
|
+
case 10:
|
|
2874
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
2875
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2876
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2877
|
+
return [4, response.body.text()];
|
|
2878
|
+
case 11:
|
|
2879
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
2799
2880
|
"CreateSubmissionResponse", ""]);
|
|
2800
2881
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2801
|
-
case
|
|
2802
|
-
|
|
2803
|
-
|
|
2882
|
+
case 12:
|
|
2883
|
+
_0 = exception_1.ApiException.bind;
|
|
2884
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2804
2885
|
return [4, response.getBodyAsAny()];
|
|
2805
|
-
case
|
|
2886
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
2806
2887
|
}
|
|
2807
2888
|
});
|
|
2808
2889
|
});
|