@sassoftware/restaf 5.3.3-2 → 5.3.3-5

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/lib/restaf.js CHANGED
@@ -1751,7 +1751,7 @@ eval("\n\n/** @type {import('.')} */\nvar $gOPD = __webpack_require__(/*! ./gOPD
1751
1751
  /***/ (function(module, exports, __webpack_require__) {
1752
1752
 
1753
1753
  "use strict";
1754
- eval("\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n\n\n//# sourceURL=webpack://restaf/C:/sassoftware/restaf/node_modules/has-flag/index.js?");
1754
+ eval("\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n\n\n//# sourceURL=webpack://restaf/C:/sassoftware/restaf/node_modules/has-flag/index.js?");
1755
1755
 
1756
1756
  /***/ }),
1757
1757
 
@@ -2199,7 +2199,7 @@ eval("\n\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"../../..
2199
2199
  /***/ (function(module, exports, __webpack_require__) {
2200
2200
 
2201
2201
  "use strict";
2202
- eval("\nconst os = __webpack_require__(/*! os */ \"os\");\nconst hasFlag = __webpack_require__(/*! has-flag */ \"../../../node_modules/has-flag/index.js\");\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(stream) {\n\tif (forceColor === false) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\n};\n\n\n//# sourceURL=webpack://restaf/C:/sassoftware/restaf/node_modules/supports-color/index.js?");
2202
+ eval("\nconst os = __webpack_require__(/*! os */ \"os\");\nconst tty = __webpack_require__(/*! tty */ \"tty\");\nconst hasFlag = __webpack_require__(/*! has-flag */ \"../../../node_modules/has-flag/index.js\");\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n\n\n//# sourceURL=webpack://restaf/C:/sassoftware/restaf/node_modules/supports-color/index.js?");
2203
2203
 
2204
2204
  /***/ }),
2205
2205
 
@@ -2302,7 +2302,7 @@ eval("/* harmony import */ var _createReducer__WEBPACK_IMPORTED_MODULE_0__ = __w
2302
2302
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2303
2303
 
2304
2304
  "use strict";
2305
- eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/* harmony import */ var _utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/rootStruct */ \"./utils/rootStruct.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n\n\nvar responseReducer = function responseReducer(action, parentPath) {\n var response = null;\n /* */\n\n if (action.error === true) {\n response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])('error', 'error');\n response.link = action.config.href;\n response.runStatus = 'error';\n response.statusInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* setBadStatus */ \"c\"])(action.payload);\n return response;\n }\n var results = action.payload.data.results;\n var contentType = '';\n if (results.hasOwnProperty('accept') === true) {\n contentType = results.accept;\n } else if (action.payload.headers.hasOwnProperty('content-type') === true) {\n contentType = action.payload.headers['content-type'].split(';')[0].split('+json')[0];\n } else {\n if (action.payload.status === 204) {\n contentType = 'No Content';\n }\n }\n\n // results with a list of items\n if (results.hasOwnProperty('items')) {\n response = itemsReducer(results, parentPath);\n response.resultType = results.accept == undefined ? contentType : results.accept;\n\n // result has links and data\n } else if (results.hasOwnProperty('links')) {\n /* got just links */\n\n response = tLinkReducer(results.links, parentPath);\n var data = _objectSpread({}, results);\n delete data.links;\n // Need to handle the cases as in vnd.sas.data.row.set which return data with no items array\n\n for (var key in data) {\n if (key !== 'version') {\n response.type = 'data'; // change type of link to data\n break;\n }\n }\n response.items = {\n resultType: 'data',\n data: data,\n cmds: null\n };\n response.resultType = contentType;\n\n // plain data case - no links at the top level\n } else {\n response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])('data', 'data');\n response.type = 'data';\n response.resultType = contentType;\n response.items = {\n resultType: contentType,\n /* data : (typeof results === 'string' || typeof results === 'boolean') ? results : Object.assign({}, results),*/\n\n data: _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(results) === 'object' ? Object.assign({}, results) : results,\n cmds: null\n };\n }\n\n /* response.raw = Object.assign( {}, results );*/\n //noinspection JSUnresolvedVariable\n\n response.link = action.config.link.href;\n response.runStatus = 'ready';\n response.statusInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* setGoodStatus */ \"d\"])(action.payload);\n var c = action.config;\n var hc = action.payload.config;\n var temp = hc.url.split('/');\n response.host = \"\".concat(temp[0], \"//\").concat(temp[2]);\n response.iconfig = {\n input: {\n link: _objectSpread({}, c.link),\n payload: c.hasOwnProperty('payload') ? Object.assign({}, c.payload) : {}\n },\n http: {\n url: hc.url,\n payload: {\n headers: [].concat(hc.headers),\n data: hc.data == null ? {} : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(hc.data) === 'object' ? Object.assign({}, hc.data) : hc.data,\n qs: hc.params == null ? {} : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(hc.params) === 'object' ? Object.assign({}, hc.params) : hc.params\n }\n }\n };\n return response;\n};\nfunction tLinkReducer(iLinks, parentPath) {\n var r = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(parentPath[parentPath.length - 1], 'links');\n if (iLinks === null || iLinks.length === 0) {\n return r;\n }\n r.links = setupRelPaths(iLinks, parentPath, 'lcmds');\n r.type = 'links';\n r.scrollCmds = setupRelPaths(iLinks, parentPath, 'scrollCmds');\n return r;\n}\nfunction setupRelPaths(iLinks, parentPath, subType) {\n var subCmds = ['next', 'prev', 'first', 'last'];\n var tlinks;\n if (subType === 'links') {\n tlinks = iLinks;\n } else if (subType === 'cmds' || subType === 'lcmds') {\n tlinks = iLinks.filter(function (l) {\n return !subCmds.includes(l.rel);\n });\n } else if (subType === 'scrollCmds') {\n tlinks = iLinks.filter(function (l) {\n return subCmds.includes(l.rel);\n });\n } else {\n tlinks = iLinks;\n }\n if (subType === 'lcmds') {\n subType = 'links';\n }\n var tSearchPath = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath), [subType]);\n var linksMap = {};\n tlinks.map(function (l) {\n var ts = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(tSearchPath), [l.rel]);\n if (l.hasOwnProperty('title') === false) {\n l.title = l.rel;\n }\n var lx = {\n link: _objectSpread({}, l),\n method: l.method,\n route: ts.join(':/'),\n parentRoute: _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath).join(':/'),\n paginator: subCmds.includes(l.rel)\n };\n linksMap[l.rel] = _objectSpread(_objectSpread({}, Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(l.title, subType)), lx);\n });\n return linksMap;\n}\nfunction itemsReducer(results, parentPath) {\n var idList = [];\n var rows = {};\n var response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(parentPath[parentPath.length - 1], 'links');\n var itemsResponse = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* itemsStruct */ \"a\"])();\n response.resultType = results.accept;\n response.details = setDetails(results);\n if (results.hasOwnProperty('name')) {\n itemsResponse.name = results.name;\n }\n if (results.hasOwnProperty('links')) {\n response.links = setupRelPaths(results.links, parentPath, 'lcmds');\n response.scrollCmds = setupRelPaths(results.links, parentPath, 'scrollCmds');\n }\n if (Array.isArray(results.items) === false) {\n itemsResponse.data = results.items;\n itemsResponse.resultType = results.accept;\n if (results.items.hasOwnProperty('customHandling')) {\n itemsResponse.type = results.items.customHandling;\n response.type = results.items.customHandling;\n } else {\n itemsResponse.type = 'items';\n response.type = 'items';\n }\n response.items = itemsResponse;\n return response;\n }\n if (results.items.length === 0) {\n itemsResponse.resultType = results.accept;\n itemsResponse.data = [];\n itemsResponse.type = 'itemsList';\n response.type = 'itemsList';\n response.items = itemsResponse;\n response.itemsList = [];\n return response;\n } else if (results.items[0].hasOwnProperty('links')) {\n var index = -1;\n var prevName = ''; /* need for models since they allow duplicate names - ugh! */\n var _iterator = _createForOfIteratorHelper(results.items),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n index++;\n var name = void 0;\n if (item.hasOwnProperty('name2')) {\n name = item.name2;\n } else {\n name = item.hasOwnProperty('name') ? item.name : item.hasOwnProperty('id') ? item.id : \"\".concat(index);\n }\n if (prevName === name) {\n var rev = item.hasOwnProperty('id') === true ? item.id : index;\n name = \"\".concat(name, \"_\").concat(rev);\n } else {\n prevName = name;\n }\n idList.push(name);\n var tRoute = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath), ['items', 'data', name]);\n var rowcmds = setupRelPaths(item.links, tRoute, 'cmds');\n var data = _objectSpread({}, item);\n delete data.links;\n var row = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* itemsStruct */ \"a\"])();\n row.type = 'itemRow';\n row.name = name;\n row.resultType = data.hasOwnProperty('contentType') === true ? data['contentType'] : 'unknown';\n row.cmds = rowcmds;\n row.data = data;\n rows[name] = row;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n itemsResponse.data = rows;\n itemsResponse.resultType = results.accept;\n itemsResponse.type = 'itemsList';\n response.itemsList = [].concat(idList);\n response.type = 'itemsList';\n } else {\n itemsResponse.data = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(results.items);\n itemsResponse.resultType = results.accept;\n itemsResponse.type = 'itemsArray';\n response.type = 'itemsArray';\n }\n response.items = itemsResponse;\n return response;\n}\nfunction setDetails(results) {\n var r = _objectSpread({}, results);\n if (r.hasOwnProperty('links')) {\n delete r.links;\n }\n if (r.hasOwnProperty('items')) {\n delete r.items;\n }\n return r;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (responseReducer);\n\n//# sourceURL=webpack://restaf/./reducers/responseReducer.js?");
2305
+ eval("/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../../../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./utils/index.js\");\n/* harmony import */ var _utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/rootStruct */ \"./utils/rootStruct.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n\n\nvar responseReducer = function responseReducer(action, parentPath) {\n var response = null;\n /* */\n\n if (action.error === true) {\n response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])('error', 'error');\n response.link = action.config.href;\n response.runStatus = 'error';\n response.statusInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* setBadStatus */ \"c\"])(action.payload);\n return response;\n }\n var results = action.payload.data.results;\n var contentType = '';\n if (results.hasOwnProperty('accept') === true) {\n contentType = results.accept;\n } else if (action.payload.headers.hasOwnProperty('content-type') === true) {\n contentType = action.payload.headers['content-type'].split(';')[0].split('+json')[0];\n } else {\n if (action.payload.status === 204) {\n contentType = 'No Content';\n }\n }\n\n // results with a list of items\n if (results.hasOwnProperty('items')) {\n response = itemsReducer(results, parentPath);\n response.resultType = results.accept == undefined ? contentType : results.accept;\n\n // result has links and data\n } else if (results.hasOwnProperty('links')) {\n /* got just links */\n\n response = tLinkReducer(results.links, parentPath);\n var data = _objectSpread({}, results);\n delete data.links;\n // Need to handle the cases as in vnd.sas.data.row.set which return data with no items array\n\n for (var key in data) {\n if (key !== 'version') {\n response.type = 'data'; // change type of link to data\n break;\n }\n }\n response.items = {\n resultType: 'data',\n data: data,\n cmds: null\n };\n response.resultType = contentType;\n\n // plain data case - no links at the top level\n } else {\n response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])('data', 'data');\n response.type = 'data';\n response.resultType = contentType;\n response.items = {\n resultType: contentType,\n /* data : (typeof results === 'string' || typeof results === 'boolean') ? results : Object.assign({}, results),*/\n\n data: _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(results) === 'object' ? Object.assign({}, results) : results,\n cmds: null\n };\n }\n\n /* response.raw = Object.assign( {}, results );*/\n //noinspection JSUnresolvedVariable\n\n response.link = action.config.link.href;\n response.runStatus = 'ready';\n response.statusInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[/* setGoodStatus */ \"d\"])(action.payload);\n var c = action.config;\n var hc = action.payload.config;\n var temp = hc.url.split('/');\n response.host = \"\".concat(temp[0], \"//\").concat(temp[2]);\n response.iconfig = {\n input: {\n link: _objectSpread({}, c.link),\n payload: c.hasOwnProperty('payload') ? Object.assign({}, c.payload) : {}\n },\n http: {\n url: hc.url,\n payload: {\n headers: [].concat(hc.headers),\n data: hc.data == null ? {} : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(hc.data) === 'object' ? Object.assign({}, hc.data) : hc.data,\n qs: hc.params == null ? {} : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(hc.params) === 'object' ? Object.assign({}, hc.params) : hc.params\n }\n }\n };\n return response;\n};\nfunction tLinkReducer(iLinks, parentPath) {\n var r = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(parentPath[parentPath.length - 1], 'links');\n if (iLinks === null || iLinks.length === 0) {\n return r;\n }\n r.links = setupRelPaths(iLinks, parentPath, 'lcmds');\n r.type = 'links';\n r.scrollCmds = setupRelPaths(iLinks, parentPath, 'scrollCmds');\n return r;\n}\nfunction setupRelPaths(iLinks, parentPath, subType) {\n var subCmds = ['next', 'prev', 'first', 'last'];\n var tlinks;\n if (subType === 'links') {\n tlinks = iLinks;\n } else if (subType === 'cmds' || subType === 'lcmds') {\n tlinks = iLinks.filter(function (l) {\n return !subCmds.includes(l.rel);\n });\n } else if (subType === 'scrollCmds') {\n tlinks = iLinks.filter(function (l) {\n return subCmds.includes(l.rel);\n });\n } else {\n tlinks = iLinks;\n }\n if (subType === 'lcmds') {\n subType = 'links';\n }\n var tSearchPath = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath), [subType]);\n var linksMap = {};\n tlinks.map(function (l) {\n var ts = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(tSearchPath), [l.rel]);\n if (l.hasOwnProperty('title') === false) {\n l.title = l.rel;\n }\n var lx = {\n link: _objectSpread({}, l),\n method: l.method,\n route: ts.join(':/'),\n parentRoute: _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath).join(':/'),\n paginator: subCmds.includes(l.rel)\n };\n linksMap[l.rel] = _objectSpread(_objectSpread({}, Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(l.title, subType)), lx);\n });\n return linksMap;\n}\nfunction itemsReducer(results, parentPath) {\n var idList = [];\n var rows = {};\n var response = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* tLinkStruct */ \"c\"])(parentPath[parentPath.length - 1], 'links');\n var itemsResponse = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* itemsStruct */ \"a\"])();\n response.resultType = results.accept;\n response.details = setDetails(results);\n if (results.hasOwnProperty('name')) {\n itemsResponse.name = results.name;\n }\n if (results.hasOwnProperty('links')) {\n response.links = setupRelPaths(results.links, parentPath, 'lcmds');\n response.scrollCmds = setupRelPaths(results.links, parentPath, 'scrollCmds');\n }\n if (Array.isArray(results.items) === false) {\n itemsResponse.data = results.items;\n itemsResponse.resultType = results.accept;\n if (results.items.hasOwnProperty('customHandling')) {\n itemsResponse.type = results.items.customHandling;\n response.type = results.items.customHandling;\n } else {\n itemsResponse.type = 'items';\n response.type = 'items';\n }\n response.items = itemsResponse;\n return response;\n }\n if (results.items.length === 0) {\n itemsResponse.resultType = results.accept;\n itemsResponse.data = [];\n itemsResponse.type = 'itemsList';\n response.type = 'itemsList';\n response.items = itemsResponse;\n response.itemsList = [];\n return response;\n } else if (results.items[0].hasOwnProperty('links')) {\n var index = -1;\n var prevName = ''; /* need for models since they allow duplicate names - ugh! */\n var _iterator = _createForOfIteratorHelper(results.items),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n index++;\n var name = void 0;\n if (item.hasOwnProperty('name2')) {\n name = item.name2;\n } else {\n name = item.hasOwnProperty('name') ? item.name : item.hasOwnProperty('id') ? item.id : \"\".concat(index);\n }\n if (prevName === name) {\n var rev = item.hasOwnProperty('id') === true ? item.id : index;\n name = \"\".concat(name, \"_\").concat(rev);\n } else {\n prevName = name;\n }\n idList.push(name);\n var tRoute = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentPath), ['items', 'data', name]);\n var rowcmds = setupRelPaths(item.links, tRoute, 'cmds');\n var data = _objectSpread({}, item);\n delete data.links;\n var row = Object(_utils_rootStruct__WEBPACK_IMPORTED_MODULE_4__[/* itemsStruct */ \"a\"])();\n row.type = 'itemRow';\n row.name = name;\n row.resultType = data.hasOwnProperty('contentType') === true ? data['contentType'] : 'unknown';\n row.cmds = rowcmds;\n row.data = data;\n rows[name] = row;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n itemsResponse.data = rows;\n itemsResponse.resultType = results.accept;\n itemsResponse.type = 'itemsList';\n response.itemsList = [].concat(idList);\n response.type = 'itemsList';\n } else {\n itemsResponse.data = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(results.items);\n itemsResponse.resultType = results.accept;\n itemsResponse.type = 'itemsArray';\n response.type = 'itemsArray';\n }\n response.items = itemsResponse;\n return response;\n}\nfunction setDetails(results) {\n var r = _objectSpread({}, results);\n if (r.hasOwnProperty('links')) {\n delete r.links;\n }\n if (r.hasOwnProperty('items')) {\n delete r.items;\n }\n return r;\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (responseReducer);\n\n//# sourceURL=webpack://restaf/./reducers/responseReducer.js?");
2306
2306
 
2307
2307
  /***/ }),
2308
2308
 
@@ -2536,7 +2536,7 @@ eval("/* harmony import */ var _fixImages__WEBPACK_IMPORTED_MODULE_0__ = __webpa
2536
2536
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2537
2537
 
2538
2538
  "use strict";
2539
- eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return trustedGrant; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return keepAlive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return request; });\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"../../../node_modules/axios/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! qs */ \"../../../node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _fixResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fixResponse */ \"./serverCalls/fixResponse.js\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! https */ \"https\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_5__);\n\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/* eslint-disable no-prototype-builtins */\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n// axios.defaults.withCredentials = true\naxios__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"].interceptors.response.use(function (response) {\n return response;\n}, function (error) {\n return Promise.reject(error);\n});\n\n/* X-Uaa-Csrf */\nfunction trustedGrant(iconfig) {\n var link = iconfig.link;\n var auth1 = Buffer.from(iconfig.clientID + \":\" + iconfig.clientSecret).toString(\"base64\");\n debugger;\n auth1 = \"Basic \" + auth1;\n var baseUrl = patchURL4ns(iconfig, link.href);\n var config = {\n method: link.method,\n baseURL: baseUrl,\n url: link.href,\n /*iconfig.host + link.href,*/\n\n headers: {\n Accept: link.responseType,\n \"Content-Type\": link.type /* Axios seems to be case sensitive */,\n Authorization: auth1\n },\n withCredentials: false,\n data: {\n grant_type: \"password\",\n username: iconfig.user,\n password: iconfig.password\n },\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n transformResponse: function transformResponse(data) {\n return data;\n },\n transformRequest: function transformRequest(data) {\n return qs__WEBPACK_IMPORTED_MODULE_3___default.a.stringify(data);\n }\n };\n var storeConfig = {\n protocol: 'https://',\n sslOption: {}\n };\n //TBD: Need to update the whole flow to be consistent with the storeConfig\n return makeCall(config, iconfig, config);\n}\nfunction request(iconfig) {\n \"use strict\";\n\n var link = iconfig.link,\n logonInfo = iconfig.logonInfo;\n var iLink = _objectSpread({}, link);\n var payload = iconfig.hasOwnProperty(\"payload\") ? iconfig.payload : null;\n var iqs = null;\n var idata = null;\n var iheaders = null;\n var ixsrf = null;\n var casAction = null;\n debugger;\n if (payload !== null) {\n casAction = hasItem(payload, \"action\");\n iqs = hasItem(payload, \"qs\");\n idata = hasItem(payload, \"data\");\n iheaders = hasItem(payload, \"headers\");\n ixsrf = hasItem(payload, \"xsrf\");\n }\n var baseUrl = patchURL4ns(logonInfo, iLink.href);\n // let url = `${l}${iLink.href}`;\n\n // handle casaction upload\n casAction = casAction != null ? casAction.toLowerCase() : null;\n var url = casAction !== null ? \"\".concat(iLink.href, \"/\").concat(casAction) : \"\".concat(iLink.href);\n if (iLink.hasOwnProperty(\"customHandling\") && casAction !== null) {\n // casAction = casAction.toLowerCase();\n if (casAction === \"table.upload\") {\n iLink.method = \"PUT\";\n iLink.type = \"application/octet-stream\";\n iLink.responseType = \"application/json\";\n }\n }\n var config = {\n method: iLink.method,\n baseURL: baseUrl,\n url: url,\n transformResponse: function transformResponse(data) {\n return data;\n },\n validateStatus: function validateStatus(status) {\n /* 304 for state calls */\n debugger;\n return status === 302 || status === 304 || status >= 200 && status < 300;\n }\n };\n config.headers = {};\n if (logonInfo.token !== null) {\n config.headers['Authorization'] = logonInfo.tokenType + \" \" + logonInfo.token;\n } else {\n config.withCredentials = iconfig.withCredentials == null ? true : iconfig.withCredentials;\n }\n var type = fullType(iLink.type);\n if (iLink.hasOwnProperty(\"responseType\")) {\n if (type !== null) {\n config.headers[\"Content-Type\"] = type;\n }\n config.headers.Accept = fullType(iLink.responseType);\n } else if (type !== null) {\n config.headers.Accept = type;\n if (iLink.method === \"PUT\" || iLink.method === \"POST\" || iLink.method === \"PATCH\") {\n config.headers[\"Content-Type\"] = type;\n }\n }\n if (iheaders !== null) {\n for (var ih in iheaders) {\n //noinspection JSUnfilteredForInLoop\n if (ih.toLowerCase() === \"json-parameters\") {\n //noinspection JSUnfilteredForInLoop\n config.headers[ih] = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(iheaders[ih]) === \"object\" ? JSON.stringify(iheaders[ih]) : iheaders[ih];\n } else {\n //noinspection JSUnfilteredForInLoop\n config.headers[ih] = iheaders[ih];\n }\n }\n }\n if (ixsrf !== null) {\n /* TBD: fix parallel calls to get of this conditional */\n var xsrfHeaderName = ixsrf[\"x-csrf-header\"];\n if (xsrfHeaderName != null) {\n config.xsrfCookieName = null;\n config.xsrfHeaderName = xsrfHeaderName;\n // https://github.com/axios/axios/issues/2024\n config.headers[xsrfHeaderName] = ixsrf[xsrfHeaderName];\n }\n if (ixsrf[\"tkhttp-id\"] != null) {\n config.headers[\"tkhttp-id\"] = ixsrf[\"tkhttp-id\"];\n }\n } else {\n if (config.type === 'ADD_SERVICE') {\n config.xsrfHeaderName = 'X_CSRF_TOKEN';\n config.headers['X-CSRF-TOKEN'] = \"Fetch\";\n }\n }\n if (iqs !== null) {\n config.params = _objectSpread({}, iqs);\n }\n config.data = idata === null ? {} : idata;\n config.maxContentLength = 2 * 10063256;\n var httpOptions = iconfig.storeConfig.httpOptions;\n if (httpOptions != null) {\n for (var k in httpOptions) {\n config[k] = httpOptions[k];\n }\n }\n setupProxy(iconfig, config);\n return makeCall(config, iconfig, logonInfo);\n}\n// setup if using reverse proxy server\nfunction setupProxy(iconfig, config) {\n var options = iconfig.logonInfo.options;\n if (options != null && options.proxyServer != null) {\n var proxy = options.proxy;\n if (proxy.pathname != null && proxy.pathname.trim().length > 0) {\n config.url = \"\".concat(proxy.pathname).concat(config.url); //prepend url with proxy path\n }\n\n config.baseURL = \"\".concat(proxy.protocol, \"//\").concat(proxy.host); //override base url\n }\n}\n// patch the url for namespace - useful for k8s to make calls into another namespace\nfunction patchURL4ns(logInfo, link) {\n var host = logInfo.host;\n if (logInfo.options != null && logInfo.options.ns != null) {\n var service = link.split(\"/\")[1];\n host = \"\".concat(logInfo.protocol).concat(service, \".{logInfo.options.ns}.svc.cluster.local\");\n }\n return host;\n}\nfunction makeCall(config, iconfig, storeConfig) {\n if (storeConfig.protocol === \"https://\" && config.agent == null) {\n var opt = storeConfig.sslOptions != null ? storeConfig.sslOptions : {};\n var agent = new https__WEBPACK_IMPORTED_MODULE_5___default.a.Agent(opt);\n config.httpsAgent = agent;\n }\n return new Promise(function (resolve, reject) {\n Object(axios__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(config).then(function (response) {\n parseJSON(response.data).then(function (data) {\n iconfig.data = null; /* get rid of the payload*/\n response.data = {\n results: data,\n iconfig: Object.assign({}, iconfig)\n };\n if (data.hasOwnProperty(\"errorCode\")) {\n //noinspection JSUnresolvedVariable\n response.status = response.data.results.httpStatusCode;\n response.statusText = \"errorCode: \".concat(response.data.results.errorCode);\n reject({\n response: response\n });\n } else {\n resolve(Object(_fixResponse__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(response));\n }\n }).catch(function () {\n iconfig.data = null;\n response.data = {\n results: response.data,\n iconfig: Object.assign({}, iconfig)\n };\n resolve(Object(_fixResponse__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(response));\n });\n }).catch(function (error) {\n reject(error);\n });\n });\n}\nfunction parseJSON(data) {\n //noinspection JSUnusedLocalSymbols\n return new Promise(function (resolve, reject) {\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(data) === \"object\") {\n resolve(data);\n } else {\n var temp = data.replace(/\\r?\\n|\\r/g, \" \");\n try {\n var odata = JSON.parse(temp);\n resolve(odata);\n } catch (err) {\n resolve(data);\n }\n }\n });\n}\nfunction hasItem(payload, name) {\n for (var _i = 0, _Object$keys = Object.keys(payload); _i < _Object$keys.length; _i++) {\n var k = _Object$keys[_i];\n if (k.toUpperCase() === name.toUpperCase()) {\n return payload[k];\n }\n }\n return null;\n}\nfunction fullType(type) {\n var ntype = type;\n if (ntype === undefined || ntype === null) {\n ntype = null;\n } else {\n if (ntype.indexOf(\"application/vnd\") !== -1) {\n if (ntype.indexOf(\"+json\") === -1) {\n ntype = ntype + \"+json\";\n }\n }\n }\n return ntype;\n}\n\n// Code below is for experimenting.\n\nfunction keepAlive(action) {\n return Object(axios__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(action.payload);\n}\n\n\n//# sourceURL=webpack://restaf/./serverCalls/index.js?");
2539
+ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return trustedGrant; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return keepAlive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return request; });\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../../../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! axios */ \"../../../node_modules/axios/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! qs */ \"../../../node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _fixResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fixResponse */ \"./serverCalls/fixResponse.js\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! https */ \"https\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_5__);\n\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n/* eslint-disable no-prototype-builtins */\n/*------------------------------------------------------------------------------------\r\n Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n ---------------------------------------------------------------------------------------*/\n\n\n\n\n\n\n// axios.defaults.withCredentials = true\naxios__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"].interceptors.response.use(function (response) {\n return response;\n}, function (error) {\n return Promise.reject(error);\n});\n\n/* X-Uaa-Csrf */\nfunction trustedGrant(iconfig) {\n var link = iconfig.link;\n var auth1 = Buffer.from(iconfig.clientID + \":\" + iconfig.clientSecret).toString(\"base64\");\n debugger;\n auth1 = \"Basic \" + auth1;\n var baseUrl = patchURL4ns(iconfig, link.href);\n var config = {\n method: link.method,\n baseURL: baseUrl,\n url: link.href,\n /*iconfig.host + link.href,*/\n\n headers: {\n Accept: link.responseType,\n \"Content-Type\": link.type /* Axios seems to be case sensitive */,\n Authorization: auth1\n },\n withCredentials: false,\n data: {\n grant_type: \"password\",\n username: iconfig.user,\n password: iconfig.password\n },\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n transformResponse: function transformResponse(data) {\n return data;\n },\n transformRequest: function transformRequest(data) {\n return qs__WEBPACK_IMPORTED_MODULE_3___default.a.stringify(data);\n }\n };\n var storeConfig = {\n protocol: 'https://',\n sslOption: {}\n };\n //TBD: Need to update the whole flow to be consistent with the storeConfig\n return makeCall(config, iconfig, config);\n}\nfunction request(iconfig) {\n \"use strict\";\n\n var link = iconfig.link,\n logonInfo = iconfig.logonInfo;\n var iLink = _objectSpread({}, link);\n var payload = iconfig.hasOwnProperty(\"payload\") ? iconfig.payload : null;\n var iqs = null;\n var idata = null;\n var iheaders = null;\n var ixsrf = null;\n var casAction = null;\n debugger;\n if (payload !== null) {\n casAction = hasItem(payload, \"action\");\n iqs = hasItem(payload, \"qs\");\n idata = hasItem(payload, \"data\");\n iheaders = hasItem(payload, \"headers\");\n ixsrf = hasItem(payload, \"xsrf\");\n }\n var baseUrl = patchURL4ns(logonInfo, iLink.href);\n // let url = `${l}${iLink.href}`;\n\n // handle casaction upload\n casAction = casAction != null ? casAction.toLowerCase() : null;\n var url = casAction !== null ? \"\".concat(iLink.href, \"/\").concat(casAction) : \"\".concat(iLink.href);\n if (iLink.hasOwnProperty(\"customHandling\") && casAction !== null) {\n // casAction = casAction.toLowerCase();\n if (casAction === \"table.upload\") {\n iLink.method = \"PUT\";\n iLink.type = \"application/octet-stream\";\n iLink.responseType = \"application/json\";\n }\n }\n var config = {\n method: iLink.method,\n baseURL: baseUrl,\n url: url,\n transformResponse: function transformResponse(data) {\n return data;\n },\n validateStatus: function validateStatus(status) {\n /* 304 for state calls */\n debugger;\n return status === 302 || status === 304 || status >= 200 && status < 300;\n }\n };\n config.headers = {};\n if (logonInfo.token !== null) {\n config.headers['Authorization'] = logonInfo.tokenType + \" \" + logonInfo.token;\n } else {\n config.withCredentials = iconfig.withCredentials == null ? true : iconfig.withCredentials;\n }\n var type = fullType(iLink.type);\n if (iLink.hasOwnProperty(\"responseType\")) {\n if (type !== null) {\n config.headers[\"Content-Type\"] = type;\n }\n config.headers.Accept = fullType(iLink.responseType);\n } else if (type !== null) {\n config.headers.Accept = type;\n if (iLink.method === \"PUT\" || iLink.method === \"POST\" || iLink.method === \"PATCH\") {\n config.headers[\"Content-Type\"] = type;\n }\n }\n if (iheaders !== null) {\n for (var ih in iheaders) {\n //noinspection JSUnfilteredForInLoop\n if (ih.toLowerCase() === \"json-parameters\") {\n //noinspection JSUnfilteredForInLoop\n config.headers[ih] = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(iheaders[ih]) === \"object\" ? JSON.stringify(iheaders[ih]) : iheaders[ih];\n } else {\n //noinspection JSUnfilteredForInLoop\n config.headers[ih] = iheaders[ih];\n }\n }\n }\n if (ixsrf !== null) {\n /* TBD: fix parallel calls to get of this conditional */\n var xsrfHeaderName = ixsrf[\"x-csrf-header\"];\n if (xsrfHeaderName != null) {\n config.xsrfCookieName = null;\n config.xsrfHeaderName = xsrfHeaderName;\n // https://github.com/axios/axios/issues/2024\n config.headers[xsrfHeaderName] = ixsrf[xsrfHeaderName];\n }\n if (ixsrf[\"tkhttp-id\"] != null) {\n config.headers[\"tkhttp-id\"] = ixsrf[\"tkhttp-id\"];\n }\n } else {\n if (config.type === 'ADD_SERVICE') {\n config.xsrfHeaderName = 'X_CSRF_TOKEN';\n config.headers['X-CSRF-TOKEN'] = \"Fetch\";\n }\n }\n if (iqs !== null) {\n config.params = _objectSpread({}, iqs);\n }\n config.data = idata === null ? {} : idata;\n config.maxContentLength = 2 * 10063256;\n var httpOptions = iconfig.storeConfig.httpOptions;\n if (httpOptions != null) {\n for (var k in httpOptions) {\n config[k] = httpOptions[k];\n }\n }\n setupProxy(iconfig, config);\n return makeCall(config, iconfig, logonInfo);\n}\n// setup if using reverse proxy server\nfunction setupProxy(iconfig, config) {\n var options = iconfig.logonInfo.options;\n if (options != null && options.proxyServer != null) {\n var proxy = options.proxy;\n if (proxy.pathname != null && proxy.pathname.trim().length > 0) {\n config.url = \"\".concat(proxy.pathname).concat(config.url); //prepend url with proxy path\n }\n config.baseURL = \"\".concat(proxy.protocol, \"//\").concat(proxy.host); //override base url\n }\n}\n// patch the url for namespace - useful for k8s to make calls into another namespace\nfunction patchURL4ns(logInfo, link) {\n var host = logInfo.host;\n if (logInfo.options != null && logInfo.options.ns != null) {\n var service = link.split(\"/\")[1];\n host = \"\".concat(logInfo.protocol).concat(service, \".{logInfo.options.ns}.svc.cluster.local\");\n }\n return host;\n}\nfunction makeCall(config, iconfig, storeConfig) {\n if (storeConfig.protocol === \"https://\" && config.agent == null) {\n var opt = storeConfig.sslOptions != null ? storeConfig.sslOptions : {};\n var agent = new https__WEBPACK_IMPORTED_MODULE_5___default.a.Agent(opt);\n config.httpsAgent = agent;\n }\n return new Promise(function (resolve, reject) {\n Object(axios__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(config).then(function (response) {\n parseJSON(response.data).then(function (data) {\n iconfig.data = null; /* get rid of the payload*/\n response.data = {\n results: data,\n iconfig: Object.assign({}, iconfig)\n };\n if (data.hasOwnProperty(\"errorCode\")) {\n //noinspection JSUnresolvedVariable\n response.status = response.data.results.httpStatusCode;\n response.statusText = \"errorCode: \".concat(response.data.results.errorCode);\n reject({\n response: response\n });\n } else {\n resolve(Object(_fixResponse__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(response));\n }\n }).catch(function () {\n iconfig.data = null;\n response.data = {\n results: response.data,\n iconfig: Object.assign({}, iconfig)\n };\n resolve(Object(_fixResponse__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(response));\n });\n }).catch(function (error) {\n reject(error);\n });\n });\n}\nfunction parseJSON(data) {\n //noinspection JSUnusedLocalSymbols\n return new Promise(function (resolve, reject) {\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(data) === \"object\") {\n resolve(data);\n } else {\n var temp = data.replace(/\\r?\\n|\\r/g, \" \");\n try {\n var odata = JSON.parse(temp);\n resolve(odata);\n } catch (err) {\n resolve(data);\n }\n }\n });\n}\nfunction hasItem(payload, name) {\n for (var _i = 0, _Object$keys = Object.keys(payload); _i < _Object$keys.length; _i++) {\n var k = _Object$keys[_i];\n if (k.toUpperCase() === name.toUpperCase()) {\n return payload[k];\n }\n }\n return null;\n}\nfunction fullType(type) {\n var ntype = type;\n if (ntype === undefined || ntype === null) {\n ntype = null;\n } else {\n if (ntype.indexOf(\"application/vnd\") !== -1) {\n if (ntype.indexOf(\"+json\") === -1) {\n ntype = ntype + \"+json\";\n }\n }\n }\n return ntype;\n}\n\n// Code below is for experimenting.\n\nfunction keepAlive(action) {\n return Object(axios__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(action.payload);\n}\n\n\n//# sourceURL=webpack://restaf/./serverCalls/index.js?");
2540
2540
 
2541
2541
  /***/ }),
2542
2542
 
@@ -2562,7 +2562,7 @@ eval("/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights
2562
2562
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2563
2563
 
2564
2564
  "use strict";
2565
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _iaddServices__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./iaddServices */ \"./store/iaddServices.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _getServiceRoot__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getServiceRoot */ \"./store/getServiceRoot.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n\n\n/**\r\n * @description Add(initialize) services to the store\r\n * @async\r\n * @module addServices\r\n * @category restaf/core\r\n * @param {...any} serviceNames - list of services\r\n * @returns {promise}\r\n * @example\r\n * const {compute, casManagement} = await store.addServices('compute', 'casManagewment);\r\n * \r\n */\nfunction addServices(_x) {\n return _addServices.apply(this, arguments);\n}\nfunction _addServices() {\n _addServices = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store) {\n var _len,\n services,\n _key,\n subList,\n ifolder,\n _iterator,\n _step,\n service,\n _yield$iaddServices,\n folders,\n xsrfTokens,\n xsrf,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n for (_len = _args.length, services = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n services[_key - 1] = _args[_key];\n }\n if (services.includes('casManagement')) {\n // services.push('casManagement/cas');\n services.push('casProxy');\n // services.push('cas-shared-default-http/healthCheck');\n }\n\n // loop for initialized services\n subList = [];\n ifolder = {};\n services.map(function (s) {\n ifolder[s] = Object(_getServiceRoot__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store, s);\n if (ifolder[s] === null) {\n subList.push(s);\n }\n });\n\n // initialize new services\n if (!(subList.length > 0)) {\n _context.next = 30;\n break;\n }\n _iterator = _createForOfIteratorHelper(subList);\n _context.prev = 7;\n _iterator.s();\n case 9:\n if ((_step = _iterator.n()).done) {\n _context.next = 22;\n break;\n }\n service = _step.value;\n _context.next = 13;\n return Object(_iaddServices__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, [service]);\n case 13:\n _yield$iaddServices = _context.sent;\n folders = _yield$iaddServices.folders;\n xsrfTokens = _yield$iaddServices.xsrfTokens;\n xsrf = xsrfTokens[service];\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], service, xsrf, service);\n if (xsrf['tkhttp-id'] != null) {\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], 'tkhttpid', xsrf, service);\n }\n ifolder[service] = folders[service];\n case 20:\n _context.next = 9;\n break;\n case 22:\n _context.next = 27;\n break;\n case 24:\n _context.prev = 24;\n _context.t0 = _context[\"catch\"](7);\n _iterator.e(_context.t0);\n case 27:\n _context.prev = 27;\n _iterator.f();\n return _context.finish(27);\n case 30:\n return _context.abrupt(\"return\", ifolder);\n case 31:\n case \"end\":\n return _context.stop();\n }\n }, _callee, null, [[7, 24, 27, 30]]);\n }));\n return _addServices.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (addServices);\n\n//# sourceURL=webpack://restaf/./store/addServices.js?");
2565
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _iaddServices__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./iaddServices */ \"./store/iaddServices.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _getServiceRoot__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getServiceRoot */ \"./store/getServiceRoot.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n\n\n\n\n\n/**\r\n * @description Add(initialize) services to the store\r\n * @async\r\n * @module addServices\r\n * @category restaf/core\r\n * @param {...any} serviceNames - list of services\r\n * @returns {promise}\r\n * @example\r\n * const {compute, casManagement} = await store.addServices('compute', 'casManagewment);\r\n * \r\n */\nfunction addServices(_x) {\n return _addServices.apply(this, arguments);\n}\nfunction _addServices() {\n _addServices = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store) {\n var _len,\n services,\n _key,\n subList,\n ifolder,\n _iterator,\n _step,\n service,\n _yield$iaddServices,\n folders,\n xsrfTokens,\n xsrf,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n for (_len = _args.length, services = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n services[_key - 1] = _args[_key];\n }\n if (services.includes('casManagement')) {\n // services.push('casManagement/cas');\n services.push('casProxy');\n // services.push('cas-shared-default-http/healthCheck');\n }\n\n // loop for initialized services\n subList = [];\n ifolder = {};\n services.map(function (s) {\n ifolder[s] = Object(_getServiceRoot__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store, s);\n if (ifolder[s] === null) {\n subList.push(s);\n }\n });\n\n // initialize new services\n if (!(subList.length > 0)) {\n _context.next = 30;\n break;\n }\n _iterator = _createForOfIteratorHelper(subList);\n _context.prev = 7;\n _iterator.s();\n case 9:\n if ((_step = _iterator.n()).done) {\n _context.next = 22;\n break;\n }\n service = _step.value;\n _context.next = 13;\n return Object(_iaddServices__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, [service]);\n case 13:\n _yield$iaddServices = _context.sent;\n folders = _yield$iaddServices.folders;\n xsrfTokens = _yield$iaddServices.xsrfTokens;\n xsrf = xsrfTokens[service];\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], service, xsrf, service);\n if (xsrf['tkhttp-id'] != null) {\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], 'tkhttpid', xsrf, service);\n }\n ifolder[service] = folders[service];\n case 20:\n _context.next = 9;\n break;\n case 22:\n _context.next = 27;\n break;\n case 24:\n _context.prev = 24;\n _context.t0 = _context[\"catch\"](7);\n _iterator.e(_context.t0);\n case 27:\n _context.prev = 27;\n _iterator.f();\n return _context.finish(27);\n case 30:\n return _context.abrupt(\"return\", ifolder);\n case 31:\n case \"end\":\n return _context.stop();\n }\n }, _callee, null, [[7, 24, 27, 30]]);\n }));\n return _addServices.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (addServices);\n\n//# sourceURL=webpack://restaf/./store/addServices.js?");
2566
2566
 
2567
2567
  /***/ }),
2568
2568
 
@@ -2575,7 +2575,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_
2575
2575
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2576
2576
 
2577
2577
  "use strict";
2578
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _readXsrfData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./readXsrfData */ \"./store/readXsrfData.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n\n\n/**\r\n * @description make an api call to viya\r\n * @module apiCall\r\n * @category restaf/core\r\n * @param {rafLinkeRel} iroute \r\n * @param {*} payload \r\n * @param {...any} rest \r\n * @returns {promise} returns a rafObject\r\n */\nfunction apiCall(_x, _x2, _x3) {\n return _apiCall.apply(this, arguments);\n}\nfunction _apiCall() {\n _apiCall = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, iroute, payload) {\n var _len,\n rest,\n _key,\n response,\n newXsrf,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n for (_len = _args.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = _args[_key];\n }\n _context.next = 3;\n return _iapiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"].apply(void 0, [store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_CALL */ \"b\"], payload].concat(rest));\n case 3:\n response = _context.sent;\n newXsrf = Object(_readXsrfData__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(response.headers, response.usedService, iroute.route);\n if (newXsrf['x-csrf-header'] != null || newXsrf['tkhttp-id'] != null) {\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], response.usedService, newXsrf);\n }\n if (newXsrf['tkhttp-id'] != null) {\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], 'tkhttpid', newXsrf);\n }\n return _context.abrupt(\"return\", response);\n case 8:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _apiCall.apply(this, arguments);\n}\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCall);\n\n//# sourceURL=webpack://restaf/./store/apiCall.js?");
2578
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/* harmony import */ var _appData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./appData */ \"./store/appData.js\");\n/* harmony import */ var _readXsrfData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./readXsrfData */ \"./store/readXsrfData.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n\n\n/**\r\n * @description make an api call to viya\r\n * @module apiCall\r\n * @category restaf/core\r\n * @param {rafLinkeRel} iroute \r\n * @param {*} payload \r\n * @param {...any} rest \r\n * @returns {promise} returns a rafObject\r\n */\nfunction apiCall(_x, _x2, _x3) {\n return _apiCall.apply(this, arguments);\n}\nfunction _apiCall() {\n _apiCall = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, iroute, payload) {\n var _len,\n rest,\n _key,\n response,\n newXsrf,\n _args = arguments;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n for (_len = _args.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = _args[_key];\n }\n _context.next = 3;\n return _iapiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"].apply(void 0, [store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_CALL */ \"b\"], payload].concat(rest));\n case 3:\n response = _context.sent;\n newXsrf = Object(_readXsrfData__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(response.headers, response.usedService, iroute.route);\n if (newXsrf['x-csrf-header'] != null || newXsrf['tkhttp-id'] != null) {\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], response.usedService, newXsrf);\n }\n if (newXsrf['tkhttp-id'] != null) {\n Object(_appData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, _actionTypes__WEBPACK_IMPORTED_MODULE_3__[/* API_XSRF */ \"h\"], 'tkhttpid', newXsrf);\n }\n return _context.abrupt(\"return\", response);\n case 8:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _apiCall.apply(this, arguments);\n}\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiCall);\n\n//# sourceURL=webpack://restaf/./store/apiCall.js?");
2579
2579
 
2580
2580
  /***/ }),
2581
2581
 
@@ -2601,7 +2601,7 @@ eval("/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_0__ = __web
2601
2601
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2602
2602
 
2603
2603
  "use strict";
2604
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n//store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext\nfunction apiSubmit(_x, _x2, _x3, _x4, _x5, _x6, _x7) {\n return _apiSubmit.apply(this, arguments);\n}\nfunction _apiSubmit() {\n _apiSubmit = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, iroute, payload, delay, jobContext, onCompletion, progress) {\n var job, status;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n if (progress) {\n progress('pending', jobContext);\n }\n _context.next = 3;\n return Object(_iapiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_CALL */ \"b\"], payload, 0, null, null, jobContext);\n case 3:\n job = _context.sent;\n if (!job.links('state')) {\n _context.next = 12;\n break;\n }\n _context.next = 7;\n return Object(_jobState__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, job, null, 'wait', delay, progress, jobContext);\n case 7:\n status = _context.sent;\n completion(store, onCompletion, status.data, status.job, jobContext);\n return _context.abrupt(\"return\", status.job);\n case 12:\n completion(store, onCompletion, 'unknown', job, jobContext);\n return _context.abrupt(\"return\", job);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _apiSubmit.apply(this, arguments);\n}\nfunction completion(store, onCompletion, data, job, jobContext) {\n var results = {\n data: data,\n job: job,\n httpCode: job.status\n };\n saveData(store, results, jobContext);\n if (onCompletion) {\n onCompletion(null, results, jobContext);\n }\n}\nfunction saveData(store, results, jobContext) {\n var payload = {\n route: results.job.route,\n data: results.data,\n jobContext: jobContext\n };\n var action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_STATUS */ \"e\"],\n route: jobContext,\n payload: payload\n };\n store.dispatch(action);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiSubmit);\n\n//# sourceURL=webpack://restaf/./store/apiSubmit.js?");
2604
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/* harmony import */ var _iapiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./iapiCall */ \"./store/iapiCall.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n\n//store, iroute, actionType, payload, delay, eventHandler, parentRoute, jobContext\nfunction apiSubmit(_x, _x2, _x3, _x4, _x5, _x6, _x7) {\n return _apiSubmit.apply(this, arguments);\n}\nfunction _apiSubmit() {\n _apiSubmit = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, iroute, payload, delay, jobContext, onCompletion, progress) {\n var job, status;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n if (progress) {\n progress('pending', jobContext);\n }\n _context.next = 3;\n return Object(_iapiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, iroute, _actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_CALL */ \"b\"], payload, 0, null, null, jobContext);\n case 3:\n job = _context.sent;\n if (!job.links('state')) {\n _context.next = 12;\n break;\n }\n _context.next = 7;\n return Object(_jobState__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, job, null, 'wait', delay, progress, jobContext);\n case 7:\n status = _context.sent;\n completion(store, onCompletion, status.data, status.job, jobContext);\n return _context.abrupt(\"return\", status.job);\n case 12:\n completion(store, onCompletion, 'unknown', job, jobContext);\n return _context.abrupt(\"return\", job);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _apiSubmit.apply(this, arguments);\n}\nfunction completion(store, onCompletion, data, job, jobContext) {\n var results = {\n data: data,\n job: job,\n httpCode: job.status\n };\n saveData(store, results, jobContext);\n if (onCompletion) {\n onCompletion(null, results, jobContext);\n }\n}\nfunction saveData(store, results, jobContext) {\n var payload = {\n route: results.job.route,\n data: results.data,\n jobContext: jobContext\n };\n var action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_4__[/* API_STATUS */ \"e\"],\n route: jobContext,\n payload: payload\n };\n store.dispatch(action);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (apiSubmit);\n\n//# sourceURL=webpack://restaf/./store/apiSubmit.js?");
2605
2605
 
2606
2606
  /***/ }),
2607
2607
 
@@ -2835,7 +2835,7 @@ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IM
2835
2835
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2836
2836
 
2837
2837
  "use strict";
2838
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _ijobState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ijobState */ \"./store/ijobState.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n/**\r\n * @category restaf/core\r\n * @description Check status of jobs\r\n * @module jobState\r\n * @async\r\n * \r\n * @param {rafObject} job rafObject of job\r\n * @param {object=} payload usually query to state api\r\n * @param {timeout=} timeout multiple uses to control timeout\r\n * @param {number=} delay delay in seconds.See notes below\r\n * @returns {promise} - object with the status information\r\n * @example\r\n * Notes\r\n * If the service supports long polling, pass the timeout in the payload.qs\r\n * If the service does not support long polling, set timeout to 'wait' and set delay to some time in seconds.\r\n * The library will check for completion every delay seconds. A more advanced way using progressHandler exit is described\r\n * in the tutorial sections.\r\n */\nfunction jobState(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {\n return _jobState.apply(this, arguments);\n}\nfunction _jobState() {\n _jobState = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, job, payload, timeout, delay, progressHandler, jobContext, cas) {\n var waitFlag, tries, status, failed;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n waitFlag = false;\n tries = 1;\n if (timeout === 'wait' || timeout === 'longpoll') {\n tries = 1;\n waitFlag = true;\n } else {\n tries = !timeout ? 1 : timeout;\n }\n case 3:\n _context.next = 5;\n return Object(_ijobState__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, job, payload, delay, waitFlag, progressHandler, jobContext);\n case 5:\n status = _context.sent;\n failed = status.detail.hasOwnProperty('failed');\n if (!(status.running === 0)) {\n _context.next = 16;\n break;\n }\n tries = 0;\n if (!(failed === false && cas != true)) {\n _context.next = 15;\n break;\n }\n _context.next = 12;\n return Object(_apiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, job.links('self'));\n case 12:\n status.jobState.job = _context.sent;\n _context.next = 16;\n break;\n case 15:\n status.jobState.job = job;\n case 16:\n if (--tries > 0) {\n _context.next = 3;\n break;\n }\n case 17:\n return _context.abrupt(\"return\", status.jobState);\n case 18:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _jobState.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (jobState);\n\n//# sourceURL=webpack://restaf/./store/jobState.js?");
2838
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _ijobState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ijobState */ \"./store/ijobState.js\");\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n/**\r\n * @category restaf/core\r\n * @description Check status of jobs\r\n * @module jobState\r\n * @async\r\n * \r\n * @param {rafObject} job rafObject of job\r\n * @param {object=} payload usually query to state api\r\n * @param {timeout=} timeout multiple uses to control timeout\r\n * @param {number=} delay delay in seconds.See notes below\r\n * @returns {promise} - object with the status information\r\n * @example\r\n * Notes\r\n * If the service supports long polling, pass the timeout in the payload.qs\r\n * If the service does not support long polling, set timeout to 'wait' and set delay to some time in seconds.\r\n * The library will check for completion every delay seconds. A more advanced way using progressHandler exit is described\r\n * in the tutorial sections.\r\n */\nfunction jobState(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {\n return _jobState.apply(this, arguments);\n}\nfunction _jobState() {\n _jobState = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, job, payload, timeout, delay, progressHandler, jobContext, cas) {\n var waitFlag, tries, status, failed;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n waitFlag = false;\n tries = 1;\n if (timeout === 'wait' || timeout === 'longpoll') {\n tries = 1;\n waitFlag = true;\n } else {\n tries = !timeout ? 1 : timeout;\n }\n case 3:\n _context.next = 5;\n return Object(_ijobState__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, job, payload, delay, waitFlag, progressHandler, jobContext);\n case 5:\n status = _context.sent;\n failed = status.detail.hasOwnProperty('failed');\n if (!(status.running === 0)) {\n _context.next = 16;\n break;\n }\n tries = 0;\n if (!(failed === false && cas != true)) {\n _context.next = 15;\n break;\n }\n _context.next = 12;\n return Object(_apiCall__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, job.links('self'));\n case 12:\n status.jobState.job = _context.sent;\n _context.next = 16;\n break;\n case 15:\n status.jobState.job = job;\n case 16:\n if (--tries > 0) {\n _context.next = 3;\n break;\n }\n case 17:\n return _context.abrupt(\"return\", status.jobState);\n case 18:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _jobState.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (jobState);\n\n//# sourceURL=webpack://restaf/./store/jobState.js?");
2839
2839
 
2840
2840
  /***/ }),
2841
2841
 
@@ -2861,7 +2861,7 @@ eval("/* harmony import */ var _ijobStateAll__WEBPACK_IMPORTED_MODULE_0__ = __we
2861
2861
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2862
2862
 
2863
2863
  "use strict";
2864
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./request */ \"./store/request.js\");\n/* harmony import */ var _getServices__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getServices */ \"./store/getServices.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/* harmony import */ var _selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction keepViyaAlive(_x, _x2, _x3, _x4, _x5) {\n return _keepViyaAlive.apply(this, arguments);\n}\nfunction _keepViyaAlive() {\n _keepViyaAlive = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, aliveURL, interval, timeout, onTimeout) {\n var keepTimer;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n keepTimer = setInterval(function () {\n ikeepViyaAlive(store, aliveURL);\n }, interval * 1000);\n setTimeout(function () {\n console.log('Note: Stopping keepViyaAlive');\n clearInterval(keepTimer);\n if (onTimeout != null) {\n onTimeout();\n } else {\n var host = Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store.getState()).host;\n var params = \"scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=0,height=0,left=-1000,top=-1000\";\n console.log('timeout');\n window.open(\"\".concat(host, \"/SASLogon/timedout\"), 'Timed Out', params);\n }\n }, timeout * 1000);\n return _context.abrupt(\"return\", true);\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _keepViyaAlive.apply(this, arguments);\n}\nfunction ikeepViyaAlive(_x6, _x7) {\n return _ikeepViyaAlive.apply(this, arguments);\n}\nfunction _ikeepViyaAlive() {\n _ikeepViyaAlive = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(store, aliveURL) {\n var payload, action, services, host, i, s, ixsrf, xsrfHeaderName, _payload, _action;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n if (aliveURL !== null) {\n payload = {\n url: aliveURL,\n method: 'GET',\n headers: {\n Accept: '*/*'\n }\n };\n action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_6__[/* KEEP_ALIVE */ \"q\"],\n route: 'keepAlive',\n payload: payload\n };\n if (aliveURL !== true) {\n store.dispatch(action);\n }\n }\n\n // This keeps the app server session alive\n services = Object(_getServices__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store);\n host = Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store.getState()).host; // This keeps the services alive with their xsrf tokens valid\n i = 0;\n case 4:\n if (!(i < services.length)) {\n _context2.next = 20;\n break;\n }\n s = services[i];\n if (!(s.indexOf('_') === -1)) {\n _context2.next = 17;\n break;\n }\n if (!(s.indexOf('cas-http') === -1)) {\n _context2.next = 17;\n break;\n }\n ixsrf = Object(_getXsrfData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, s);\n /* could be initialization state if null or have no xsrf */\n if (!(ixsrf !== null)) {\n _context2.next = 17;\n break;\n }\n xsrfHeaderName = ixsrf['x-csrf-header'];\n _payload = {\n url: \"\".concat(host, \"/\").concat(s, \"/\"),\n Accept: 'application/json, application/vnd.sas.api+json',\n withCredentials: true,\n method: 'GET',\n xsrfHeaderName: xsrfHeaderName,\n headers: {}\n };\n _payload.headers[xsrfHeaderName] = ixsrf['x-csrf-token'];\n _context2.next = 15;\n return Object(_request__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, _payload);\n case 15:\n _action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_6__[/* KEEP_ALIVE */ \"q\"],\n route: 'keepAlive',\n payload: _payload\n };\n store.dispatch(_action);\n case 17:\n i++;\n _context2.next = 4;\n break;\n case 20:\n return _context2.abrupt(\"return\", true);\n case 21:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _ikeepViyaAlive.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (keepViyaAlive);\n\n//# sourceURL=webpack://restaf/./store/keepViyaAlive.js?");
2864
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./request */ \"./store/request.js\");\n/* harmony import */ var _getServices__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getServices */ \"./store/getServices.js\");\n/* harmony import */ var _getXsrfData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getXsrfData */ \"./store/getXsrfData.js\");\n/* harmony import */ var _selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selectLogonInfo */ \"./store/selectLogonInfo.js\");\n/* harmony import */ var _actionTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../actionTypes */ \"./actionTypes/index.js\");\n\n\n/*\r\n * ------------------------------------------------------------------------------------\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ---------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction keepViyaAlive(_x, _x2, _x3, _x4, _x5) {\n return _keepViyaAlive.apply(this, arguments);\n}\nfunction _keepViyaAlive() {\n _keepViyaAlive = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, aliveURL, interval, timeout, onTimeout) {\n var keepTimer;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n keepTimer = setInterval(function () {\n ikeepViyaAlive(store, aliveURL);\n }, interval * 1000);\n setTimeout(function () {\n console.log('Note: Stopping keepViyaAlive');\n clearInterval(keepTimer);\n if (onTimeout != null) {\n onTimeout();\n } else {\n var host = Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store.getState()).host;\n var params = \"scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=0,height=0,left=-1000,top=-1000\";\n console.log('timeout');\n window.open(\"\".concat(host, \"/SASLogon/timedout\"), 'Timed Out', params);\n }\n }, timeout * 1000);\n return _context.abrupt(\"return\", true);\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _keepViyaAlive.apply(this, arguments);\n}\nfunction ikeepViyaAlive(_x6, _x7) {\n return _ikeepViyaAlive.apply(this, arguments);\n}\nfunction _ikeepViyaAlive() {\n _ikeepViyaAlive = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(store, aliveURL) {\n var payload, action, services, host, i, s, ixsrf, xsrfHeaderName, _payload, _action;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n if (aliveURL !== null) {\n payload = {\n url: aliveURL,\n method: 'GET',\n headers: {\n Accept: '*/*'\n }\n };\n action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_6__[/* KEEP_ALIVE */ \"q\"],\n route: 'keepAlive',\n payload: payload\n };\n if (aliveURL !== true) {\n store.dispatch(action);\n }\n }\n\n // This keeps the app server session alive\n services = Object(_getServices__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store);\n host = Object(_selectLogonInfo__WEBPACK_IMPORTED_MODULE_5__[/* default */ \"a\"])(store.getState()).host; // This keeps the services alive with their xsrf tokens valid\n i = 0;\n case 4:\n if (!(i < services.length)) {\n _context2.next = 20;\n break;\n }\n s = services[i];\n if (!(s.indexOf('_') === -1)) {\n _context2.next = 17;\n break;\n }\n if (!(s.indexOf('cas-http') === -1)) {\n _context2.next = 17;\n break;\n }\n ixsrf = Object(_getXsrfData__WEBPACK_IMPORTED_MODULE_4__[/* default */ \"a\"])(store, s);\n /* could be initialization state if null or have no xsrf */\n if (!(ixsrf !== null)) {\n _context2.next = 17;\n break;\n }\n xsrfHeaderName = ixsrf['x-csrf-header'];\n _payload = {\n url: \"\".concat(host, \"/\").concat(s, \"/\"),\n Accept: 'application/json, application/vnd.sas.api+json',\n withCredentials: true,\n method: 'GET',\n xsrfHeaderName: xsrfHeaderName,\n headers: {}\n };\n _payload.headers[xsrfHeaderName] = ixsrf['x-csrf-token'];\n _context2.next = 15;\n return Object(_request__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, _payload);\n case 15:\n _action = {\n type: _actionTypes__WEBPACK_IMPORTED_MODULE_6__[/* KEEP_ALIVE */ \"q\"],\n route: 'keepAlive',\n payload: _payload\n };\n store.dispatch(_action);\n case 17:\n i++;\n _context2.next = 4;\n break;\n case 20:\n return _context2.abrupt(\"return\", true);\n case 21:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _ikeepViyaAlive.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (keepViyaAlive);\n\n//# sourceURL=webpack://restaf/./store/keepViyaAlive.js?");
2865
2865
 
2866
2866
  /***/ }),
2867
2867
 
@@ -2926,7 +2926,7 @@ eval("/*\r\n * -----------------------------------------------------------------
2926
2926
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2927
2927
 
2928
2928
  "use strict";
2929
- eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ \"../../../node_modules/axios/index.js\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! https */ \"https\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_4__);\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n\n\nfunction request(_x, _x2, _x3) {\n return _request.apply(this, arguments);\n}\nfunction _request() {\n _request = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(store, payload, reducer) {\n var config, c, opt, agent, r;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n config = _objectSpread({}, payload);\n if (payload.url.indexOf('https') !== -1) {\n c = store.config;\n opt = {};\n if (c.sslOptions != null) {\n opt = c.sslOptions;\n }\n agent = new https__WEBPACK_IMPORTED_MODULE_4___default.a.Agent(opt);\n config.httpsAgent = agent;\n }\n _context.next = 4;\n return Object(axios__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(config);\n case 4:\n r = _context.sent;\n return _context.abrupt(\"return\", reducer == null ? r : reducer(r));\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _request.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (request);\n\n//# sourceURL=webpack://restaf/./store/request.js?");
2929
+ eval("/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../../../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ \"../../../node_modules/axios/index.js\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! https */ \"https\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_4__);\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n\n\nfunction request(_x, _x2, _x3) {\n return _request.apply(this, arguments);\n}\nfunction _request() {\n _request = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(store, payload, reducer) {\n var config, c, opt, agent, r;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n config = _objectSpread({}, payload);\n if (payload.url.indexOf('https') !== -1) {\n c = store.config;\n opt = {};\n if (c.sslOptions != null) {\n opt = c.sslOptions;\n }\n agent = new https__WEBPACK_IMPORTED_MODULE_4___default.a.Agent(opt);\n config.httpsAgent = agent;\n }\n _context.next = 4;\n return Object(axios__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(config);\n case 4:\n r = _context.sent;\n return _context.abrupt(\"return\", reducer == null ? r : reducer(r));\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _request.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (request);\n\n//# sourceURL=webpack://restaf/./store/request.js?");
2930
2930
 
2931
2931
  /***/ }),
2932
2932
 
@@ -2965,7 +2965,7 @@ eval("/* harmony import */ var _extendFolder__WEBPACK_IMPORTED_MODULE_0__ = __we
2965
2965
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2966
2966
 
2967
2967
  "use strict";
2968
- eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n/**\r\n * @Description Run a given action\r\n * @async\r\n * @module runAction\r\n * @category restaf/core\r\n * @param {rafObject} session - cas session\r\n * @param {casPayload} payload - payload for cas actions\r\n * @returns {promise} returns rafObject\r\n * @example\r\n * \r\nlet restaf = require(\"@sassoftware/restaf\");\r\nlet payload = require('./config')();\r\nlet {casSetup} = require(\"@sassoftware/restaflib\");\r\n\r\nlet prtUtil = require(\"./prtUtil\");\r\n\r\nlet store = restaf.initStore({casProxy: true});\r\nasync function example () {\r\n console.log(payload);\r\n let { session } = await casSetup(store, payload, \"cas\");\r\n\r\n let p = {\r\n action: \"echo\",\r\n data : { code: \"data casuser.data1; x=1;put x= ; run; \" }\r\n };\r\n \r\n let r = await store.runAction(session, p);\r\n console.log(JSON.stringify(r.items(), null, 4));\r\n return \"done\";\r\n}\r\n\r\nexample()\r\n .then(r => console.log(r))\r\n .catch(err => console.log(err));\r\n \r\n */\nfunction runAction(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {\n return _runAction.apply(this, arguments);\n}\nfunction _runAction() {\n _runAction = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, session, payload, context, onCompletion, maxTries, delay, progress) {\n var actionResult;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n actionResult = null;\n if (!(maxTries != null)) {\n _context.next = 7;\n break;\n }\n _context.next = 4;\n return submitAction(store, session, payload, context, maxTries, delay, progress);\n case 4:\n actionResult = _context.sent;\n _context.next = 10;\n break;\n case 7:\n _context.next = 9;\n return Object(_apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, session.links('execute'), payload, 0);\n case 9:\n actionResult = _context.sent;\n case 10:\n if (!(casError(actionResult) === true)) {\n _context.next = 13;\n break;\n }\n console.log(JSON.stringify(actionResult.items(), null, 4));\n throw JSON.stringify(actionResult.items('disposition').toJS());\n case 13:\n if (onCompletion != null) {\n onCompletion(context, actionResult);\n }\n return _context.abrupt(\"return\", actionResult);\n case 15:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _runAction.apply(this, arguments);\n}\nfunction casError(actionResult) {\n var statusCode = actionResult.items('disposition', 'statusCode');\n var severity = actionResult.items('disposition', 'severity').toLowerCase();\n return statusCode !== 0 || severity === 'error' ? true : false;\n}\nfunction submitAction(_x9, _x10, _x11, _x12, _x13, _x14, _x15) {\n return _submitAction.apply(this, arguments);\n}\nfunction _submitAction() {\n _submitAction = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(store, session, payload, context, maxTries, delay, progress) {\n var actionPromise, r, result;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n actionPromise = Object(_apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, session.links('execute'), payload, 0);\n _context2.next = 3;\n return Object(_jobState__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, session, null, maxTries, delay, progress, context, true);\n case 3:\n r = _context2.sent;\n result = actionPromise.then(function (result) {\n return result;\n }, function (err) {\n return err;\n });\n return _context2.abrupt(\"return\", result);\n case 6:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _submitAction.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (runAction);\n\n//# sourceURL=webpack://restaf/./store/runAction.js?");
2968
+ eval("/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../../../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _apiCall__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiCall */ \"./store/apiCall.js\");\n/* harmony import */ var _jobState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jobState */ \"./store/jobState.js\");\n/*\r\n * ------------------------------------------------------------------------------------\r\n * * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights reserved * * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * * you may not use this file except in compliance with the License.\r\n * * You may obtain a copy of the License at\r\n * *\r\n * * http://www.apache.org/licenses/LICENSE-2.0\r\n * *\r\n * * Unless required by applicable law or agreed to in writing, software\r\n * * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n * ----------------------------------------------------------------------------------------\r\n *\r\n */\n\n\n\n\n\n\n\n/**\r\n * @Description Run a given action\r\n * @async\r\n * @module runAction\r\n * @category restaf/core\r\n * @param {rafObject} session - cas session\r\n * @param {casPayload} payload - payload for cas actions\r\n * @returns {promise} returns rafObject\r\n * @example\r\n * \r\nlet restaf = require(\"@sassoftware/restaf\");\r\nlet payload = require('./config')();\r\nlet {casSetup} = require(\"@sassoftware/restaflib\");\r\n\r\nlet prtUtil = require(\"./prtUtil\");\r\n\r\nlet store = restaf.initStore({casProxy: true});\r\nasync function example () {\r\n console.log(payload);\r\n let { session } = await casSetup(store, payload, \"cas\");\r\n\r\n let p = {\r\n action: \"echo\",\r\n data : { code: \"data casuser.data1; x=1;put x= ; run; \" }\r\n };\r\n \r\n let r = await store.runAction(session, p);\r\n console.log(JSON.stringify(r.items(), null, 4));\r\n return \"done\";\r\n}\r\n\r\nexample()\r\n .then(r => console.log(r))\r\n .catch(err => console.log(err));\r\n \r\n */\nfunction runAction(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {\n return _runAction.apply(this, arguments);\n}\nfunction _runAction() {\n _runAction = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(store, session, payload, context, onCompletion, maxTries, delay, progress) {\n var actionResult;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n actionResult = null;\n if (!(maxTries != null)) {\n _context.next = 7;\n break;\n }\n _context.next = 4;\n return submitAction(store, session, payload, context, maxTries, delay, progress);\n case 4:\n actionResult = _context.sent;\n _context.next = 10;\n break;\n case 7:\n _context.next = 9;\n return Object(_apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, session.links('execute'), payload, 0);\n case 9:\n actionResult = _context.sent;\n case 10:\n if (!(casError(actionResult) === true)) {\n _context.next = 13;\n break;\n }\n console.log(JSON.stringify(actionResult.items(), null, 4));\n throw JSON.stringify(actionResult.items('disposition').toJS());\n case 13:\n if (onCompletion != null) {\n onCompletion(context, actionResult);\n }\n return _context.abrupt(\"return\", actionResult);\n case 15:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _runAction.apply(this, arguments);\n}\nfunction casError(actionResult) {\n var statusCode = actionResult.items('disposition', 'statusCode');\n var severity = actionResult.items('disposition', 'severity').toLowerCase();\n return statusCode !== 0 || severity === 'error' ? true : false;\n}\nfunction submitAction(_x9, _x0, _x1, _x10, _x11, _x12, _x13) {\n return _submitAction.apply(this, arguments);\n}\nfunction _submitAction() {\n _submitAction = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(store, session, payload, context, maxTries, delay, progress) {\n var actionPromise, r, result;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n actionPromise = Object(_apiCall__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"])(store, session.links('execute'), payload, 0);\n _context2.next = 3;\n return Object(_jobState__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"a\"])(store, session, null, maxTries, delay, progress, context, true);\n case 3:\n r = _context2.sent;\n result = actionPromise.then(function (result) {\n return result;\n }, function (err) {\n return err;\n });\n return _context2.abrupt(\"return\", result);\n case 6:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _submitAction.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"a\"] = (runAction);\n\n//# sourceURL=webpack://restaf/./store/runAction.js?");
2969
2969
 
2970
2970
  /***/ }),
2971
2971
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sassoftware/restaf",
3
- "version": "5.3.3-2",
3
+ "version": "5.3.3-5",
4
4
  "description": "Library for writing SAS Viya application using REST APIs",
5
5
  "author": "Deva Kumaraswamy <deva.kumar@sas.com>",
6
6
  "license": "Apache-2.0",