@instructure/quiz-core 17.60.1-rc.6 → 17.60.1-rc.7
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.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import Fetcher from "../../common/util/Fetcher.js";
|
|
4
|
+
var fetcher = new Fetcher();
|
|
5
|
+
export var getAnalysesStatus = /*#__PURE__*/function () {
|
|
6
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(quizId) {
|
|
7
|
+
var filter,
|
|
8
|
+
url,
|
|
9
|
+
_args = arguments;
|
|
10
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
11
|
+
while (1) {
|
|
12
|
+
switch (_context.prev = _context.next) {
|
|
13
|
+
case 0:
|
|
14
|
+
filter = _args.length > 1 && _args[1] !== void 0 ? _args[1] : 'last_attempt';
|
|
15
|
+
url = "/api/quizzes/".concat(quizId, "/analyses/status?filter=").concat(filter);
|
|
16
|
+
_context.next = 4;
|
|
17
|
+
return fetcher.get(url);
|
|
18
|
+
|
|
19
|
+
case 4:
|
|
20
|
+
return _context.abrupt("return", _context.sent);
|
|
21
|
+
|
|
22
|
+
case 5:
|
|
23
|
+
case "end":
|
|
24
|
+
return _context.stop();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, _callee);
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
return function getAnalysesStatus(_x) {
|
|
31
|
+
return _ref.apply(this, arguments);
|
|
32
|
+
};
|
|
33
|
+
}();
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getAnalysesStatus = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _Fetcher = _interopRequireDefault(require("../../common/util/Fetcher.js"));
|
|
15
|
+
|
|
16
|
+
var fetcher = new _Fetcher.default();
|
|
17
|
+
|
|
18
|
+
var getAnalysesStatus = /*#__PURE__*/function () {
|
|
19
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(quizId) {
|
|
20
|
+
var filter,
|
|
21
|
+
url,
|
|
22
|
+
_args = arguments;
|
|
23
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
24
|
+
while (1) {
|
|
25
|
+
switch (_context.prev = _context.next) {
|
|
26
|
+
case 0:
|
|
27
|
+
filter = _args.length > 1 && _args[1] !== void 0 ? _args[1] : 'last_attempt';
|
|
28
|
+
url = "/api/quizzes/".concat(quizId, "/analyses/status?filter=").concat(filter);
|
|
29
|
+
_context.next = 4;
|
|
30
|
+
return fetcher.get(url);
|
|
31
|
+
|
|
32
|
+
case 4:
|
|
33
|
+
return _context.abrupt("return", _context.sent);
|
|
34
|
+
|
|
35
|
+
case 5:
|
|
36
|
+
case "end":
|
|
37
|
+
return _context.stop();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, _callee);
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
return function getAnalysesStatus(_x) {
|
|
44
|
+
return _ref.apply(this, arguments);
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
47
|
+
|
|
48
|
+
exports.getAnalysesStatus = getAnalysesStatus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.60.1-rc.
|
|
3
|
+
"version": "17.60.1-rc.7+bd8e84b98",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@instructure/outcomes-ui": "^2.1.8",
|
|
44
|
-
"@instructure/quiz-common": "17.60.1-rc.
|
|
45
|
-
"@instructure/quiz-i18n": "17.60.1-rc.
|
|
46
|
-
"@instructure/quiz-interactions": "17.60.1-rc.
|
|
47
|
-
"@instructure/quiz-number-input": "17.60.1-rc.
|
|
48
|
-
"@instructure/quiz-rce": "17.60.1-rc.
|
|
44
|
+
"@instructure/quiz-common": "17.60.1-rc.7+bd8e84b98",
|
|
45
|
+
"@instructure/quiz-i18n": "17.60.1-rc.7+bd8e84b98",
|
|
46
|
+
"@instructure/quiz-interactions": "17.60.1-rc.7+bd8e84b98",
|
|
47
|
+
"@instructure/quiz-number-input": "17.60.1-rc.7+bd8e84b98",
|
|
48
|
+
"@instructure/quiz-rce": "17.60.1-rc.7+bd8e84b98",
|
|
49
49
|
"@instructure/ui-a11y-content": "^7.20.0",
|
|
50
50
|
"@instructure/ui-alerts": "^7.20.0",
|
|
51
51
|
"@instructure/ui-avatar": "^7.20.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"eventemitter3": "^3.1.0",
|
|
107
107
|
"humps": "^2.0.0",
|
|
108
108
|
"immutable": "^3.8.1",
|
|
109
|
-
"instructure-validations": "17.60.1-rc.
|
|
109
|
+
"instructure-validations": "17.60.1-rc.7+bd8e84b98",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.0",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"intl": "^1.2.4",
|
|
158
158
|
"jquery": "^2.2.3",
|
|
159
159
|
"most-subject": "^5.3.0",
|
|
160
|
-
"quiz-presets": "17.60.1-rc.
|
|
160
|
+
"quiz-presets": "17.60.1-rc.7+bd8e84b98",
|
|
161
161
|
"react": "^16.8.6",
|
|
162
162
|
"react-addons-test-utils": "^15.6.2",
|
|
163
163
|
"react-dom": "^16.8.6",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"publishConfig": {
|
|
174
174
|
"access": "public"
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "bd8e84b98936ae8e08450357146920b76b08380a"
|
|
177
177
|
}
|