@sassoftware/restaflib 5.5.1-3 → 5.5.1-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/restaflib.js +1 -1
- package/lib/restaflib.js +1 -1
- package/package.json +1 -1
package/dist/restaflib.js
CHANGED
|
@@ -642,7 +642,7 @@ eval("{/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK
|
|
|
642
642
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
643
643
|
|
|
644
644
|
"use strict";
|
|
645
|
-
eval("{/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\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 _jobRunBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jobRunBase */ \"./jobRunBase.js\");\n/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n*/\n\n\n\n\n\n/**\r\n * @description Prepare data for runCompute(@async)\r\n * @private\r\n * @module spBase\r\n * \r\n * @param {object} store - restaf store\r\n * @param {string} jobDefinition - jogdefinition name\r\n * @param {object} args - arguments to pass to the job definition\r\n * @param {string} src - source code to run\r\n * @param {string} jobDefUri - job definition URI to use(overrides jobDefinition name)\r\n * \r\n * @returns {object} computeSummary object\r\n * \r\n */\nfunction
|
|
645
|
+
eval("{/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\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 _jobRunBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jobRunBase */ \"./jobRunBase.js\");\n/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n*/\n\n\n\n\n\n/**\r\n * @description Prepare data for runCompute(@async)\r\n * @private\r\n * @module spBase\r\n * \r\n * @param {object} store - restaf store\r\n * @param {string} jobDefinition - jogdefinition name\r\n * @param {object} args - arguments to pass to the job definition\r\n * @param {string} src - source code to run\r\n * @param {string} jobDefUri - job definition URI to use(overrides jobDefinition name)\r\n * \r\n * @returns {object} computeSummary object\r\n * \r\n */\nfunction jobRun(_x, _x2, _x3) {\n return _jobRun.apply(this, arguments);\n}\nfunction _jobRun() {\n _jobRun = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(store, jobName, args) {\n var _yield$store$addServi, jobExecution, jobDefinitionUri, jobRequest, payload, jobSummary, _t;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function (_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 1;\n return store.addServices('jobExecution');\n case 1:\n _yield$store$addServi = _context.sent;\n jobExecution = _yield$store$addServi.jobExecution;\n _context.prev = 2;\n _context.next = 3;\n return findJobDefinition(store, jobExecution, jobName);\n case 3:\n jobDefinitionUri = _context.sent;\n jobRequest = {\n jobDefinitionUri: jobDefinitionUri,\n arguments: args\n };\n payload = {\n data: jobRequest\n }; // jesRun will ignore the jobName and use thejobDefinitionUri\n debugger;\n _context.next = 4;\n return (0,_jobRunBase__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(store, payload);\n case 4:\n jobSummary = _context.sent;\n return _context.abrupt(\"return\", jobSummary);\n case 5:\n _context.prev = 5;\n _t = _context[\"catch\"](2);\n throw _t;\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee, null, [[2, 5]]);\n }));\n return _jobRun.apply(this, arguments);\n}\nfunction findJobDefinition(_x4, _x5, _x6) {\n return _findJobDefinition.apply(this, arguments);\n}\nfunction _findJobDefinition() {\n _findJobDefinition = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee2(store, jobExecution, jobName) {\n var uri, payload, rafLink, jobList, id, _uri, _t2;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function (_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n uri = null;\n payload = {\n qs: {\n filter: \"eq(name,'\".concat(jobName, \"')\")\n }\n };\n rafLink = jobExecution.links('jobs');\n debugger;\n _context2.prev = 1;\n _context2.next = 2;\n return store.apiCall(rafLink, payload);\n case 2:\n jobList = _context2.sent;\n id = jobList.itemsList(0);\n _uri = jobList.items(id, 'data', 'jobRequest', 'jobDefinitionUri');\n return _context2.abrupt(\"return\", _uri);\n case 3:\n _context2.prev = 3;\n _t2 = _context2[\"catch\"](1);\n throw \"Error: \".concat(name, \" not found in the system\");\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2, null, [[1, 3]]);\n }));\n return _findJobDefinition.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (jobRun);\n\n//# sourceURL=webpack://restaflib/./jobRun.js?\n}");
|
|
646
646
|
|
|
647
647
|
/***/ }),
|
|
648
648
|
|
package/lib/restaflib.js
CHANGED
|
@@ -621,7 +621,7 @@ eval("{/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* har
|
|
|
621
621
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
622
622
|
|
|
623
623
|
"use strict";
|
|
624
|
-
eval("{/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* 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 _jobRunBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jobRunBase */ \"./jobRunBase.js\");\n/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n*/\n\n\n\n\n\n/**\r\n * @description Prepare data for runCompute(@async)\r\n * @private\r\n * @module spBase\r\n * \r\n * @param {object} store - restaf store\r\n * @param {string} jobDefinition - jogdefinition name\r\n * @param {object} args - arguments to pass to the job definition\r\n * @param {string} src - source code to run\r\n * @param {string} jobDefUri - job definition URI to use(overrides jobDefinition name)\r\n * \r\n * @returns {object} computeSummary object\r\n * \r\n */\nfunction
|
|
624
|
+
eval("{/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* 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 _jobRunBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jobRunBase */ \"./jobRunBase.js\");\n/*\r\n * Copyright © 2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.\r\n * SPDX-License-Identifier: Apache-2.0\r\n*/\n\n\n\n\n\n/**\r\n * @description Prepare data for runCompute(@async)\r\n * @private\r\n * @module spBase\r\n * \r\n * @param {object} store - restaf store\r\n * @param {string} jobDefinition - jogdefinition name\r\n * @param {object} args - arguments to pass to the job definition\r\n * @param {string} src - source code to run\r\n * @param {string} jobDefUri - job definition URI to use(overrides jobDefinition name)\r\n * \r\n * @returns {object} computeSummary object\r\n * \r\n */\nfunction jobRun(_x, _x2, _x3) {\n return _jobRun.apply(this, arguments);\n}\nfunction _jobRun() {\n _jobRun = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(store, jobName, args) {\n var _yield$store$addServi, jobExecution, jobDefinitionUri, jobRequest, payload, jobSummary, _t;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function (_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 1;\n return store.addServices('jobExecution');\n case 1:\n _yield$store$addServi = _context.sent;\n jobExecution = _yield$store$addServi.jobExecution;\n _context.prev = 2;\n _context.next = 3;\n return findJobDefinition(store, jobExecution, jobName);\n case 3:\n jobDefinitionUri = _context.sent;\n jobRequest = {\n jobDefinitionUri: jobDefinitionUri,\n arguments: args\n };\n payload = {\n data: jobRequest\n }; // jesRun will ignore the jobName and use thejobDefinitionUri\n debugger;\n _context.next = 4;\n return (0,_jobRunBase__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(store, payload);\n case 4:\n jobSummary = _context.sent;\n return _context.abrupt(\"return\", jobSummary);\n case 5:\n _context.prev = 5;\n _t = _context[\"catch\"](2);\n throw _t;\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee, null, [[2, 5]]);\n }));\n return _jobRun.apply(this, arguments);\n}\nfunction findJobDefinition(_x4, _x5, _x6) {\n return _findJobDefinition.apply(this, arguments);\n}\nfunction _findJobDefinition() {\n _findJobDefinition = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee2(store, jobExecution, jobName) {\n var uri, payload, rafLink, jobList, id, _uri, _t2;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function (_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n uri = null;\n payload = {\n qs: {\n filter: \"eq(name,'\".concat(jobName, \"')\")\n }\n };\n rafLink = jobExecution.links('jobs');\n debugger;\n _context2.prev = 1;\n _context2.next = 2;\n return store.apiCall(rafLink, payload);\n case 2:\n jobList = _context2.sent;\n id = jobList.itemsList(0);\n _uri = jobList.items(id, 'data', 'jobRequest', 'jobDefinitionUri');\n return _context2.abrupt(\"return\", _uri);\n case 3:\n _context2.prev = 3;\n _t2 = _context2[\"catch\"](1);\n throw \"Error: \".concat(name, \" not found in the system\");\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2, null, [[1, 3]]);\n }));\n return _findJobDefinition.apply(this, arguments);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (jobRun);\n\n//# sourceURL=webpack://restaflib/./jobRun.js?\n}");
|
|
625
625
|
|
|
626
626
|
/***/ }),
|
|
627
627
|
|