@aws-amplify/datastore 3.7.7-unstable.6 → 3.7.7-unstable.9
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.
|
@@ -27857,6 +27857,220 @@ function isnan (val) {
|
|
|
27857
27857
|
|
|
27858
27858
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
|
|
27859
27859
|
|
|
27860
|
+
/***/ }),
|
|
27861
|
+
|
|
27862
|
+
/***/ "../../node_modules/cookie/index.js":
|
|
27863
|
+
/*!*****************************************************!*\
|
|
27864
|
+
!*** /root/amplify-js/node_modules/cookie/index.js ***!
|
|
27865
|
+
\*****************************************************/
|
|
27866
|
+
/*! no static exports found */
|
|
27867
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27868
|
+
|
|
27869
|
+
"use strict";
|
|
27870
|
+
/*!
|
|
27871
|
+
* cookie
|
|
27872
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
27873
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
27874
|
+
* MIT Licensed
|
|
27875
|
+
*/
|
|
27876
|
+
|
|
27877
|
+
|
|
27878
|
+
|
|
27879
|
+
/**
|
|
27880
|
+
* Module exports.
|
|
27881
|
+
* @public
|
|
27882
|
+
*/
|
|
27883
|
+
|
|
27884
|
+
exports.parse = parse;
|
|
27885
|
+
exports.serialize = serialize;
|
|
27886
|
+
|
|
27887
|
+
/**
|
|
27888
|
+
* Module variables.
|
|
27889
|
+
* @private
|
|
27890
|
+
*/
|
|
27891
|
+
|
|
27892
|
+
var decode = decodeURIComponent;
|
|
27893
|
+
var encode = encodeURIComponent;
|
|
27894
|
+
|
|
27895
|
+
/**
|
|
27896
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
27897
|
+
*
|
|
27898
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
27899
|
+
* field-vchar = VCHAR / obs-text
|
|
27900
|
+
* obs-text = %x80-FF
|
|
27901
|
+
*/
|
|
27902
|
+
|
|
27903
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
27904
|
+
|
|
27905
|
+
/**
|
|
27906
|
+
* Parse a cookie header.
|
|
27907
|
+
*
|
|
27908
|
+
* Parse the given cookie header string into an object
|
|
27909
|
+
* The object has the various cookies as keys(names) => values
|
|
27910
|
+
*
|
|
27911
|
+
* @param {string} str
|
|
27912
|
+
* @param {object} [options]
|
|
27913
|
+
* @return {object}
|
|
27914
|
+
* @public
|
|
27915
|
+
*/
|
|
27916
|
+
|
|
27917
|
+
function parse(str, options) {
|
|
27918
|
+
if (typeof str !== 'string') {
|
|
27919
|
+
throw new TypeError('argument str must be a string');
|
|
27920
|
+
}
|
|
27921
|
+
|
|
27922
|
+
var obj = {}
|
|
27923
|
+
var opt = options || {};
|
|
27924
|
+
var pairs = str.split(';')
|
|
27925
|
+
var dec = opt.decode || decode;
|
|
27926
|
+
|
|
27927
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
27928
|
+
var pair = pairs[i];
|
|
27929
|
+
var index = pair.indexOf('=')
|
|
27930
|
+
|
|
27931
|
+
// skip things that don't look like key=value
|
|
27932
|
+
if (index < 0) {
|
|
27933
|
+
continue;
|
|
27934
|
+
}
|
|
27935
|
+
|
|
27936
|
+
var key = pair.substring(0, index).trim()
|
|
27937
|
+
|
|
27938
|
+
// only assign once
|
|
27939
|
+
if (undefined == obj[key]) {
|
|
27940
|
+
var val = pair.substring(index + 1, pair.length).trim()
|
|
27941
|
+
|
|
27942
|
+
// quoted values
|
|
27943
|
+
if (val[0] === '"') {
|
|
27944
|
+
val = val.slice(1, -1)
|
|
27945
|
+
}
|
|
27946
|
+
|
|
27947
|
+
obj[key] = tryDecode(val, dec);
|
|
27948
|
+
}
|
|
27949
|
+
}
|
|
27950
|
+
|
|
27951
|
+
return obj;
|
|
27952
|
+
}
|
|
27953
|
+
|
|
27954
|
+
/**
|
|
27955
|
+
* Serialize data into a cookie header.
|
|
27956
|
+
*
|
|
27957
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
27958
|
+
* http headers. An optional options object specified cookie parameters.
|
|
27959
|
+
*
|
|
27960
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
27961
|
+
* => "foo=bar; httpOnly"
|
|
27962
|
+
*
|
|
27963
|
+
* @param {string} name
|
|
27964
|
+
* @param {string} val
|
|
27965
|
+
* @param {object} [options]
|
|
27966
|
+
* @return {string}
|
|
27967
|
+
* @public
|
|
27968
|
+
*/
|
|
27969
|
+
|
|
27970
|
+
function serialize(name, val, options) {
|
|
27971
|
+
var opt = options || {};
|
|
27972
|
+
var enc = opt.encode || encode;
|
|
27973
|
+
|
|
27974
|
+
if (typeof enc !== 'function') {
|
|
27975
|
+
throw new TypeError('option encode is invalid');
|
|
27976
|
+
}
|
|
27977
|
+
|
|
27978
|
+
if (!fieldContentRegExp.test(name)) {
|
|
27979
|
+
throw new TypeError('argument name is invalid');
|
|
27980
|
+
}
|
|
27981
|
+
|
|
27982
|
+
var value = enc(val);
|
|
27983
|
+
|
|
27984
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
27985
|
+
throw new TypeError('argument val is invalid');
|
|
27986
|
+
}
|
|
27987
|
+
|
|
27988
|
+
var str = name + '=' + value;
|
|
27989
|
+
|
|
27990
|
+
if (null != opt.maxAge) {
|
|
27991
|
+
var maxAge = opt.maxAge - 0;
|
|
27992
|
+
|
|
27993
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
27994
|
+
throw new TypeError('option maxAge is invalid')
|
|
27995
|
+
}
|
|
27996
|
+
|
|
27997
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
27998
|
+
}
|
|
27999
|
+
|
|
28000
|
+
if (opt.domain) {
|
|
28001
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
28002
|
+
throw new TypeError('option domain is invalid');
|
|
28003
|
+
}
|
|
28004
|
+
|
|
28005
|
+
str += '; Domain=' + opt.domain;
|
|
28006
|
+
}
|
|
28007
|
+
|
|
28008
|
+
if (opt.path) {
|
|
28009
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
28010
|
+
throw new TypeError('option path is invalid');
|
|
28011
|
+
}
|
|
28012
|
+
|
|
28013
|
+
str += '; Path=' + opt.path;
|
|
28014
|
+
}
|
|
28015
|
+
|
|
28016
|
+
if (opt.expires) {
|
|
28017
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
28018
|
+
throw new TypeError('option expires is invalid');
|
|
28019
|
+
}
|
|
28020
|
+
|
|
28021
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
28022
|
+
}
|
|
28023
|
+
|
|
28024
|
+
if (opt.httpOnly) {
|
|
28025
|
+
str += '; HttpOnly';
|
|
28026
|
+
}
|
|
28027
|
+
|
|
28028
|
+
if (opt.secure) {
|
|
28029
|
+
str += '; Secure';
|
|
28030
|
+
}
|
|
28031
|
+
|
|
28032
|
+
if (opt.sameSite) {
|
|
28033
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
28034
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
28035
|
+
|
|
28036
|
+
switch (sameSite) {
|
|
28037
|
+
case true:
|
|
28038
|
+
str += '; SameSite=Strict';
|
|
28039
|
+
break;
|
|
28040
|
+
case 'lax':
|
|
28041
|
+
str += '; SameSite=Lax';
|
|
28042
|
+
break;
|
|
28043
|
+
case 'strict':
|
|
28044
|
+
str += '; SameSite=Strict';
|
|
28045
|
+
break;
|
|
28046
|
+
case 'none':
|
|
28047
|
+
str += '; SameSite=None';
|
|
28048
|
+
break;
|
|
28049
|
+
default:
|
|
28050
|
+
throw new TypeError('option sameSite is invalid');
|
|
28051
|
+
}
|
|
28052
|
+
}
|
|
28053
|
+
|
|
28054
|
+
return str;
|
|
28055
|
+
}
|
|
28056
|
+
|
|
28057
|
+
/**
|
|
28058
|
+
* Try decoding a string using a decoding function.
|
|
28059
|
+
*
|
|
28060
|
+
* @param {string} str
|
|
28061
|
+
* @param {function} decode
|
|
28062
|
+
* @private
|
|
28063
|
+
*/
|
|
28064
|
+
|
|
28065
|
+
function tryDecode(str, decode) {
|
|
28066
|
+
try {
|
|
28067
|
+
return decode(str);
|
|
28068
|
+
} catch (e) {
|
|
28069
|
+
return str;
|
|
28070
|
+
}
|
|
28071
|
+
}
|
|
28072
|
+
|
|
28073
|
+
|
|
27860
28074
|
/***/ }),
|
|
27861
28075
|
|
|
27862
28076
|
/***/ "../../node_modules/graphql/error/GraphQLError.mjs":
|
|
@@ -48564,7 +48778,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48564
48778
|
|
|
48565
48779
|
"use strict";
|
|
48566
48780
|
__webpack_require__.r(__webpack_exports__);
|
|
48567
|
-
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/
|
|
48781
|
+
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
|
|
48568
48782
|
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
|
|
48569
48783
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "../../node_modules/universal-cookie/es6/utils.js");
|
|
48570
48784
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
@@ -48681,7 +48895,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48681
48895
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCookies", function() { return parseCookies; });
|
|
48682
48896
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isParsingCookie", function() { return isParsingCookie; });
|
|
48683
48897
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readCookie", function() { return readCookie; });
|
|
48684
|
-
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/
|
|
48898
|
+
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cookie */ "../../node_modules/cookie/index.js");
|
|
48685
48899
|
/* harmony import */ var cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cookie__WEBPACK_IMPORTED_MODULE_0__);
|
|
48686
48900
|
|
|
48687
48901
|
function hasDocumentCookie() {
|
|
@@ -48738,220 +48952,6 @@ function cleanupCookieValue(value) {
|
|
|
48738
48952
|
}
|
|
48739
48953
|
|
|
48740
48954
|
|
|
48741
|
-
/***/ }),
|
|
48742
|
-
|
|
48743
|
-
/***/ "../../node_modules/universal-cookie/node_modules/cookie/index.js":
|
|
48744
|
-
/*!***********************************************************************************!*\
|
|
48745
|
-
!*** /root/amplify-js/node_modules/universal-cookie/node_modules/cookie/index.js ***!
|
|
48746
|
-
\***********************************************************************************/
|
|
48747
|
-
/*! no static exports found */
|
|
48748
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
48749
|
-
|
|
48750
|
-
"use strict";
|
|
48751
|
-
/*!
|
|
48752
|
-
* cookie
|
|
48753
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
48754
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
48755
|
-
* MIT Licensed
|
|
48756
|
-
*/
|
|
48757
|
-
|
|
48758
|
-
|
|
48759
|
-
|
|
48760
|
-
/**
|
|
48761
|
-
* Module exports.
|
|
48762
|
-
* @public
|
|
48763
|
-
*/
|
|
48764
|
-
|
|
48765
|
-
exports.parse = parse;
|
|
48766
|
-
exports.serialize = serialize;
|
|
48767
|
-
|
|
48768
|
-
/**
|
|
48769
|
-
* Module variables.
|
|
48770
|
-
* @private
|
|
48771
|
-
*/
|
|
48772
|
-
|
|
48773
|
-
var decode = decodeURIComponent;
|
|
48774
|
-
var encode = encodeURIComponent;
|
|
48775
|
-
|
|
48776
|
-
/**
|
|
48777
|
-
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
48778
|
-
*
|
|
48779
|
-
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
48780
|
-
* field-vchar = VCHAR / obs-text
|
|
48781
|
-
* obs-text = %x80-FF
|
|
48782
|
-
*/
|
|
48783
|
-
|
|
48784
|
-
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
48785
|
-
|
|
48786
|
-
/**
|
|
48787
|
-
* Parse a cookie header.
|
|
48788
|
-
*
|
|
48789
|
-
* Parse the given cookie header string into an object
|
|
48790
|
-
* The object has the various cookies as keys(names) => values
|
|
48791
|
-
*
|
|
48792
|
-
* @param {string} str
|
|
48793
|
-
* @param {object} [options]
|
|
48794
|
-
* @return {object}
|
|
48795
|
-
* @public
|
|
48796
|
-
*/
|
|
48797
|
-
|
|
48798
|
-
function parse(str, options) {
|
|
48799
|
-
if (typeof str !== 'string') {
|
|
48800
|
-
throw new TypeError('argument str must be a string');
|
|
48801
|
-
}
|
|
48802
|
-
|
|
48803
|
-
var obj = {}
|
|
48804
|
-
var opt = options || {};
|
|
48805
|
-
var pairs = str.split(';')
|
|
48806
|
-
var dec = opt.decode || decode;
|
|
48807
|
-
|
|
48808
|
-
for (var i = 0; i < pairs.length; i++) {
|
|
48809
|
-
var pair = pairs[i];
|
|
48810
|
-
var index = pair.indexOf('=')
|
|
48811
|
-
|
|
48812
|
-
// skip things that don't look like key=value
|
|
48813
|
-
if (index < 0) {
|
|
48814
|
-
continue;
|
|
48815
|
-
}
|
|
48816
|
-
|
|
48817
|
-
var key = pair.substring(0, index).trim()
|
|
48818
|
-
|
|
48819
|
-
// only assign once
|
|
48820
|
-
if (undefined == obj[key]) {
|
|
48821
|
-
var val = pair.substring(index + 1, pair.length).trim()
|
|
48822
|
-
|
|
48823
|
-
// quoted values
|
|
48824
|
-
if (val[0] === '"') {
|
|
48825
|
-
val = val.slice(1, -1)
|
|
48826
|
-
}
|
|
48827
|
-
|
|
48828
|
-
obj[key] = tryDecode(val, dec);
|
|
48829
|
-
}
|
|
48830
|
-
}
|
|
48831
|
-
|
|
48832
|
-
return obj;
|
|
48833
|
-
}
|
|
48834
|
-
|
|
48835
|
-
/**
|
|
48836
|
-
* Serialize data into a cookie header.
|
|
48837
|
-
*
|
|
48838
|
-
* Serialize the a name value pair into a cookie string suitable for
|
|
48839
|
-
* http headers. An optional options object specified cookie parameters.
|
|
48840
|
-
*
|
|
48841
|
-
* serialize('foo', 'bar', { httpOnly: true })
|
|
48842
|
-
* => "foo=bar; httpOnly"
|
|
48843
|
-
*
|
|
48844
|
-
* @param {string} name
|
|
48845
|
-
* @param {string} val
|
|
48846
|
-
* @param {object} [options]
|
|
48847
|
-
* @return {string}
|
|
48848
|
-
* @public
|
|
48849
|
-
*/
|
|
48850
|
-
|
|
48851
|
-
function serialize(name, val, options) {
|
|
48852
|
-
var opt = options || {};
|
|
48853
|
-
var enc = opt.encode || encode;
|
|
48854
|
-
|
|
48855
|
-
if (typeof enc !== 'function') {
|
|
48856
|
-
throw new TypeError('option encode is invalid');
|
|
48857
|
-
}
|
|
48858
|
-
|
|
48859
|
-
if (!fieldContentRegExp.test(name)) {
|
|
48860
|
-
throw new TypeError('argument name is invalid');
|
|
48861
|
-
}
|
|
48862
|
-
|
|
48863
|
-
var value = enc(val);
|
|
48864
|
-
|
|
48865
|
-
if (value && !fieldContentRegExp.test(value)) {
|
|
48866
|
-
throw new TypeError('argument val is invalid');
|
|
48867
|
-
}
|
|
48868
|
-
|
|
48869
|
-
var str = name + '=' + value;
|
|
48870
|
-
|
|
48871
|
-
if (null != opt.maxAge) {
|
|
48872
|
-
var maxAge = opt.maxAge - 0;
|
|
48873
|
-
|
|
48874
|
-
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
48875
|
-
throw new TypeError('option maxAge is invalid')
|
|
48876
|
-
}
|
|
48877
|
-
|
|
48878
|
-
str += '; Max-Age=' + Math.floor(maxAge);
|
|
48879
|
-
}
|
|
48880
|
-
|
|
48881
|
-
if (opt.domain) {
|
|
48882
|
-
if (!fieldContentRegExp.test(opt.domain)) {
|
|
48883
|
-
throw new TypeError('option domain is invalid');
|
|
48884
|
-
}
|
|
48885
|
-
|
|
48886
|
-
str += '; Domain=' + opt.domain;
|
|
48887
|
-
}
|
|
48888
|
-
|
|
48889
|
-
if (opt.path) {
|
|
48890
|
-
if (!fieldContentRegExp.test(opt.path)) {
|
|
48891
|
-
throw new TypeError('option path is invalid');
|
|
48892
|
-
}
|
|
48893
|
-
|
|
48894
|
-
str += '; Path=' + opt.path;
|
|
48895
|
-
}
|
|
48896
|
-
|
|
48897
|
-
if (opt.expires) {
|
|
48898
|
-
if (typeof opt.expires.toUTCString !== 'function') {
|
|
48899
|
-
throw new TypeError('option expires is invalid');
|
|
48900
|
-
}
|
|
48901
|
-
|
|
48902
|
-
str += '; Expires=' + opt.expires.toUTCString();
|
|
48903
|
-
}
|
|
48904
|
-
|
|
48905
|
-
if (opt.httpOnly) {
|
|
48906
|
-
str += '; HttpOnly';
|
|
48907
|
-
}
|
|
48908
|
-
|
|
48909
|
-
if (opt.secure) {
|
|
48910
|
-
str += '; Secure';
|
|
48911
|
-
}
|
|
48912
|
-
|
|
48913
|
-
if (opt.sameSite) {
|
|
48914
|
-
var sameSite = typeof opt.sameSite === 'string'
|
|
48915
|
-
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
48916
|
-
|
|
48917
|
-
switch (sameSite) {
|
|
48918
|
-
case true:
|
|
48919
|
-
str += '; SameSite=Strict';
|
|
48920
|
-
break;
|
|
48921
|
-
case 'lax':
|
|
48922
|
-
str += '; SameSite=Lax';
|
|
48923
|
-
break;
|
|
48924
|
-
case 'strict':
|
|
48925
|
-
str += '; SameSite=Strict';
|
|
48926
|
-
break;
|
|
48927
|
-
case 'none':
|
|
48928
|
-
str += '; SameSite=None';
|
|
48929
|
-
break;
|
|
48930
|
-
default:
|
|
48931
|
-
throw new TypeError('option sameSite is invalid');
|
|
48932
|
-
}
|
|
48933
|
-
}
|
|
48934
|
-
|
|
48935
|
-
return str;
|
|
48936
|
-
}
|
|
48937
|
-
|
|
48938
|
-
/**
|
|
48939
|
-
* Try decoding a string using a decoding function.
|
|
48940
|
-
*
|
|
48941
|
-
* @param {string} str
|
|
48942
|
-
* @param {function} decode
|
|
48943
|
-
* @private
|
|
48944
|
-
*/
|
|
48945
|
-
|
|
48946
|
-
function tryDecode(str, decode) {
|
|
48947
|
-
try {
|
|
48948
|
-
return decode(str);
|
|
48949
|
-
} catch (e) {
|
|
48950
|
-
return str;
|
|
48951
|
-
}
|
|
48952
|
-
}
|
|
48953
|
-
|
|
48954
|
-
|
|
48955
48955
|
/***/ }),
|
|
48956
48956
|
|
|
48957
48957
|
/***/ "../../node_modules/url/url.js":
|
|
@@ -58480,9 +58480,9 @@ function () {
|
|
|
58480
58480
|
/**
|
|
58481
58481
|
* Executes a GraphQL operation
|
|
58482
58482
|
*
|
|
58483
|
-
* @param
|
|
58484
|
-
* @param
|
|
58485
|
-
* @returns
|
|
58483
|
+
* @param options - GraphQL Options
|
|
58484
|
+
* @param [additionalHeaders] - headers to merge in after any `graphql_headers` set in the config
|
|
58485
|
+
* @returns An Observable if the query is a subscription query, else a promise of the graphql result.
|
|
58486
58486
|
*/
|
|
58487
58487
|
|
|
58488
58488
|
|
|
@@ -58532,9 +58532,10 @@ function () {
|
|
|
58532
58532
|
variables: variables,
|
|
58533
58533
|
authMode: authMode
|
|
58534
58534
|
}, headers);
|
|
58535
|
-
}
|
|
58536
58535
|
|
|
58537
|
-
|
|
58536
|
+
default:
|
|
58537
|
+
throw new Error("invalid operation type: " + operationType);
|
|
58538
|
+
}
|
|
58538
58539
|
};
|
|
58539
58540
|
|
|
58540
58541
|
GraphQLAPIClass.prototype._graphql = function (_a, additionalHeaders, initParams) {
|
|
@@ -60309,10 +60310,10 @@ function () {
|
|
|
60309
60310
|
};
|
|
60310
60311
|
/**
|
|
60311
60312
|
* Make a GET request
|
|
60312
|
-
* @param
|
|
60313
|
-
* @param
|
|
60314
|
-
* @param
|
|
60315
|
-
* @return
|
|
60313
|
+
* @param apiName - The api name of the request
|
|
60314
|
+
* @param path - The path of the request
|
|
60315
|
+
* @param [init] - Request extra params
|
|
60316
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60316
60317
|
*/
|
|
60317
60318
|
|
|
60318
60319
|
|
|
@@ -60321,10 +60322,10 @@ function () {
|
|
|
60321
60322
|
};
|
|
60322
60323
|
/**
|
|
60323
60324
|
* Make a POST request
|
|
60324
|
-
* @param
|
|
60325
|
-
* @param
|
|
60326
|
-
* @param
|
|
60327
|
-
* @return
|
|
60325
|
+
* @param apiName - The api name of the request
|
|
60326
|
+
* @param path - The path of the request
|
|
60327
|
+
* @param [init] - Request extra params
|
|
60328
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60328
60329
|
*/
|
|
60329
60330
|
|
|
60330
60331
|
|
|
@@ -60333,10 +60334,10 @@ function () {
|
|
|
60333
60334
|
};
|
|
60334
60335
|
/**
|
|
60335
60336
|
* Make a PUT request
|
|
60336
|
-
* @param
|
|
60337
|
-
* @param
|
|
60338
|
-
* @param
|
|
60339
|
-
* @return
|
|
60337
|
+
* @param apiName - The api name of the request
|
|
60338
|
+
* @param path - The path of the request
|
|
60339
|
+
* @param [init] - Request extra params
|
|
60340
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60340
60341
|
*/
|
|
60341
60342
|
|
|
60342
60343
|
|
|
@@ -60345,10 +60346,10 @@ function () {
|
|
|
60345
60346
|
};
|
|
60346
60347
|
/**
|
|
60347
60348
|
* Make a PATCH request
|
|
60348
|
-
* @param
|
|
60349
|
-
* @param
|
|
60350
|
-
* @param
|
|
60351
|
-
* @return
|
|
60349
|
+
* @param apiName - The api name of the request
|
|
60350
|
+
* @param path - The path of the request
|
|
60351
|
+
* @param [init] - Request extra params
|
|
60352
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60352
60353
|
*/
|
|
60353
60354
|
|
|
60354
60355
|
|
|
@@ -60357,10 +60358,10 @@ function () {
|
|
|
60357
60358
|
};
|
|
60358
60359
|
/**
|
|
60359
60360
|
* Make a DEL request
|
|
60360
|
-
* @param
|
|
60361
|
-
* @param
|
|
60362
|
-
* @param
|
|
60363
|
-
* @return
|
|
60361
|
+
* @param apiName - The api name of the request
|
|
60362
|
+
* @param path - The path of the request
|
|
60363
|
+
* @param [init] - Request extra params
|
|
60364
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60364
60365
|
*/
|
|
60365
60366
|
|
|
60366
60367
|
|
|
@@ -60369,10 +60370,10 @@ function () {
|
|
|
60369
60370
|
};
|
|
60370
60371
|
/**
|
|
60371
60372
|
* Make a HEAD request
|
|
60372
|
-
* @param
|
|
60373
|
-
* @param
|
|
60374
|
-
* @param
|
|
60375
|
-
* @return
|
|
60373
|
+
* @param apiName - The api name of the request
|
|
60374
|
+
* @param path - The path of the request
|
|
60375
|
+
* @param [init] - Request extra params
|
|
60376
|
+
* @return A promise that resolves to an object with response status and JSON data, if successful.
|
|
60376
60377
|
*/
|
|
60377
60378
|
|
|
60378
60379
|
|
|
@@ -60381,8 +60382,8 @@ function () {
|
|
|
60381
60382
|
};
|
|
60382
60383
|
/**
|
|
60383
60384
|
* Checks to see if an error thrown is from an api request cancellation
|
|
60384
|
-
* @param
|
|
60385
|
-
* @return
|
|
60385
|
+
* @param error - Any error
|
|
60386
|
+
* @return If the error was from an api request cancellation
|
|
60386
60387
|
*/
|
|
60387
60388
|
|
|
60388
60389
|
|
|
@@ -60391,8 +60392,9 @@ function () {
|
|
|
60391
60392
|
};
|
|
60392
60393
|
/**
|
|
60393
60394
|
* Cancels an inflight request
|
|
60394
|
-
* @param
|
|
60395
|
-
* @
|
|
60395
|
+
* @param request - request to cancel
|
|
60396
|
+
* @param [message] - custom error message
|
|
60397
|
+
* @return If the request was cancelled
|
|
60396
60398
|
*/
|
|
60397
60399
|
|
|
60398
60400
|
|
|
@@ -60401,8 +60403,8 @@ function () {
|
|
|
60401
60403
|
};
|
|
60402
60404
|
/**
|
|
60403
60405
|
* Getting endpoint for API
|
|
60404
|
-
* @param
|
|
60405
|
-
* @return
|
|
60406
|
+
* @param apiName - The name of the api
|
|
60407
|
+
* @return The endpoint of the api
|
|
60406
60408
|
*/
|
|
60407
60409
|
|
|
60408
60410
|
|
|
@@ -60424,14 +60426,6 @@ function () {
|
|
|
60424
60426
|
APIClass.prototype.getGraphqlOperationType = function (operation) {
|
|
60425
60427
|
return this._graphqlApi.getGraphqlOperationType(operation);
|
|
60426
60428
|
};
|
|
60427
|
-
/**
|
|
60428
|
-
* Executes a GraphQL operation
|
|
60429
|
-
*
|
|
60430
|
-
* @param {GraphQLOptions} GraphQL Options
|
|
60431
|
-
* @param {object} additionalHeaders headers to merge in after any `graphql_headers` set in the config
|
|
60432
|
-
* @returns {Promise<GraphQLResult> | Observable<object>}
|
|
60433
|
-
*/
|
|
60434
|
-
|
|
60435
60429
|
|
|
60436
60430
|
APIClass.prototype.graphql = function (options, additionalHeaders) {
|
|
60437
60431
|
return this._graphqlApi.graphql(options, additionalHeaders);
|