@qoretechnologies/reqraft 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/ mock.ts +44 -0
- package/__tests__/utils.ts +11 -0
- package/dist/__tests__/ mock.d.ts +23 -0
- package/dist/__tests__/ mock.d.ts.map +1 -0
- package/dist/__tests__/ mock.js +44 -0
- package/dist/__tests__/ mock.js.map +1 -0
- package/dist/__tests__/utils.d.ts +3 -0
- package/dist/__tests__/utils.d.ts.map +1 -0
- package/dist/__tests__/utils.js +60 -0
- package/dist/__tests__/utils.js.map +1 -0
- package/dist/mock/interfaceCategories.json +155 -0
- package/dist/mock/menu.d.ts +70 -0
- package/dist/mock/menu.d.ts.map +1 -0
- package/dist/mock/menu.js +301 -0
- package/dist/mock/menu.js.map +1 -0
- package/dist/src/components/form/fields/Field.d.ts +10 -0
- package/dist/src/components/form/fields/Field.d.ts.map +1 -0
- package/dist/src/components/form/fields/Field.js +44 -0
- package/dist/src/components/form/fields/Field.js.map +1 -0
- package/dist/{components/form → src/components/form/fields}/string/String.d.ts +3 -2
- package/dist/src/components/form/fields/string/String.d.ts.map +1 -0
- package/dist/src/components/form/fields/string/String.js.map +1 -0
- package/dist/src/components/form/fields/string/String.stories.d.ts.map +1 -0
- package/dist/src/components/form/fields/string/String.stories.js.map +1 -0
- package/dist/src/components/menu/Menu.d.ts +31 -0
- package/dist/src/components/menu/Menu.d.ts.map +1 -0
- package/dist/src/components/menu/Menu.js +130 -0
- package/dist/src/components/menu/Menu.js.map +1 -0
- package/dist/src/components/menu/Menu.stories.d.ts +12 -0
- package/dist/src/components/menu/Menu.stories.d.ts.map +1 -0
- package/dist/src/components/menu/Menu.stories.js +159 -0
- package/dist/src/components/menu/Menu.stories.js.map +1 -0
- package/dist/src/contexts/FetchContext.d.ts +10 -0
- package/dist/src/contexts/FetchContext.d.ts.map +1 -0
- package/dist/src/contexts/FetchContext.js +63 -0
- package/dist/src/contexts/FetchContext.js.map +1 -0
- package/dist/src/contexts/ReqraftContext.d.ts +9 -0
- package/dist/src/contexts/ReqraftContext.d.ts.map +1 -0
- package/dist/src/contexts/ReqraftContext.js +11 -0
- package/dist/src/contexts/ReqraftContext.js.map +1 -0
- package/dist/src/contexts/StorageContext.d.ts +11 -0
- package/dist/src/contexts/StorageContext.d.ts.map +1 -0
- package/dist/src/contexts/StorageContext.js +17 -0
- package/dist/src/contexts/StorageContext.js.map +1 -0
- package/dist/src/hooks/useFetch/useFetch.d.ts +21 -0
- package/dist/src/hooks/useFetch/useFetch.d.ts.map +1 -0
- package/dist/src/hooks/useFetch/useFetch.js +106 -0
- package/dist/src/hooks/useFetch/useFetch.js.map +1 -0
- package/dist/src/hooks/useFetch/useFetch.stories.d.ts +9 -0
- package/dist/src/hooks/useFetch/useFetch.stories.d.ts.map +1 -0
- package/dist/src/hooks/useFetch/useFetch.stories.js +177 -0
- package/dist/src/hooks/useFetch/useFetch.stories.js.map +1 -0
- package/dist/src/hooks/useReqraftProperty.d.ts +3 -0
- package/dist/src/hooks/useReqraftProperty.d.ts.map +1 -0
- package/dist/src/hooks/useReqraftProperty.js +16 -0
- package/dist/src/hooks/useReqraftProperty.js.map +1 -0
- package/dist/src/hooks/useStorage/useStorage.d.ts +8 -0
- package/dist/src/hooks/useStorage/useStorage.d.ts.map +1 -0
- package/dist/src/hooks/useStorage/useStorage.js +22 -0
- package/dist/src/hooks/useStorage/useStorage.js.map +1 -0
- package/dist/src/hooks/useStorage/useStorage.stories.d.ts +9 -0
- package/dist/src/hooks/useStorage/useStorage.stories.d.ts.map +1 -0
- package/dist/src/hooks/useStorage/useStorage.stories.js +162 -0
- package/dist/src/hooks/useStorage/useStorage.stories.js.map +1 -0
- package/dist/src/hooks/useValidation.d.ts +3 -0
- package/dist/src/hooks/useValidation.d.ts.map +1 -0
- package/dist/src/hooks/useValidation.js +11 -0
- package/dist/src/hooks/useValidation.js.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +15 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/providers/FetchProvider.d.ts +6 -0
- package/dist/src/providers/FetchProvider.d.ts.map +1 -0
- package/dist/src/providers/FetchProvider.js +112 -0
- package/dist/src/providers/FetchProvider.js.map +1 -0
- package/dist/src/providers/ReqraftProvider.d.ts +10 -0
- package/dist/src/providers/ReqraftProvider.d.ts.map +1 -0
- package/dist/src/providers/ReqraftProvider.js +15 -0
- package/dist/src/providers/ReqraftProvider.js.map +1 -0
- package/dist/src/providers/StorageProvider.d.ts +6 -0
- package/dist/src/providers/StorageProvider.d.ts.map +1 -0
- package/dist/src/providers/StorageProvider.js +55 -0
- package/dist/src/providers/StorageProvider.js.map +1 -0
- package/dist/src/types/Form.d.ts +3 -0
- package/dist/src/types/Form.d.ts.map +1 -0
- package/dist/src/types/Form.js +3 -0
- package/dist/src/types/Form.js.map +1 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils/fetch.d.ts +22 -0
- package/dist/src/utils/fetch.d.ts.map +1 -0
- package/dist/src/utils/fetch.js +140 -0
- package/dist/src/utils/fetch.js.map +1 -0
- package/mock/interfaceCategories.json +155 -0
- package/mock/menu.ts +301 -0
- package/package.json +8 -3
- package/src/components/form/fields/Field.tsx +37 -0
- package/src/components/form/{string → fields/string}/String.stories.tsx +1 -1
- package/src/components/form/{string → fields/string}/String.tsx +3 -2
- package/src/components/menu/Menu.stories.tsx +73 -0
- package/src/components/menu/Menu.tsx +244 -0
- package/src/contexts/FetchContext.tsx +25 -0
- package/src/contexts/ReqraftContext.tsx +16 -0
- package/src/contexts/StorageContext.tsx +33 -0
- package/src/hooks/useFetch/useFetch.stories.tsx +123 -0
- package/src/hooks/useFetch/useFetch.tsx +71 -0
- package/src/hooks/useReqraftProperty.ts +16 -0
- package/src/hooks/useStorage/useStorage.stories.tsx +84 -0
- package/src/hooks/useStorage/useStorage.ts +30 -0
- package/src/hooks/useValidation.ts +9 -0
- package/src/index.tsx +12 -1
- package/src/providers/FetchProvider.tsx +62 -0
- package/src/providers/ReqraftProvider.tsx +33 -0
- package/src/providers/StorageProvider.tsx +80 -0
- package/src/types/Form.ts +57 -0
- package/src/utils/fetch.ts +121 -0
- package/tests.json +1 -1
- package/dist/components/form/string/String.d.ts.map +0 -1
- package/dist/components/form/string/String.js.map +0 -1
- package/dist/components/form/string/String.stories.d.ts.map +0 -1
- package/dist/components/form/string/String.stories.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- /package/dist/{components/form → src/components/form/fields}/string/String.js +0 -0
- /package/dist/{components/form → src/components/form/fields}/string/String.stories.d.ts +0 -0
- /package/dist/{components/form → src/components/form/fields}/string/String.stories.js +0 -0
- /package/dist/{types.d.ts → src/types.d.ts} +0 -0
- /package/dist/{types.js → src/types.js} +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { set } from 'lodash';
|
|
2
|
+
|
|
3
|
+
export const storiesStorageMockEmpty = [
|
|
4
|
+
{
|
|
5
|
+
url: 'https://hq.qoretechnologies.com:8092/api/latest/users/_current_/storage',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
status: 200,
|
|
8
|
+
response: {},
|
|
9
|
+
},
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export const storiesStorageMock = [
|
|
13
|
+
{
|
|
14
|
+
url: 'https://hq.qoretechnologies.com:8092/api/latest/users/_current_/storage',
|
|
15
|
+
method: 'GET',
|
|
16
|
+
status: 200,
|
|
17
|
+
response: {
|
|
18
|
+
'sidebar-size': 350,
|
|
19
|
+
storybook: {
|
|
20
|
+
'some-path': 'This is a storage value',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
url: 'https://hq.qoretechnologies.com:8092/api/latest/users/_current_/',
|
|
26
|
+
method: 'PUT',
|
|
27
|
+
status: 200,
|
|
28
|
+
response: (request) => {
|
|
29
|
+
const body = JSON.parse(request.body);
|
|
30
|
+
|
|
31
|
+
if (body.storage_path && !body.value) {
|
|
32
|
+
body.storage = {
|
|
33
|
+
'sidebar-size': 350,
|
|
34
|
+
storybook: {
|
|
35
|
+
'some-path': 'This is a NEW value',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
set(body.storage, body.storage_path, null);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return body.storage;
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { expect, screen, waitFor } from '@storybook/test';
|
|
2
|
+
|
|
3
|
+
export const sleep = (ms: number) => {
|
|
4
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export async function testsWaitForText(text: string, selector?: string) {
|
|
8
|
+
await waitFor(() => expect(screen.queryAllByText(text, { selector })[0]).toBeInTheDocument(), {
|
|
9
|
+
timeout: 10000,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const storiesStorageMockEmpty: {
|
|
2
|
+
url: string;
|
|
3
|
+
method: string;
|
|
4
|
+
status: number;
|
|
5
|
+
response: {};
|
|
6
|
+
}[];
|
|
7
|
+
export declare const storiesStorageMock: ({
|
|
8
|
+
url: string;
|
|
9
|
+
method: string;
|
|
10
|
+
status: number;
|
|
11
|
+
response: {
|
|
12
|
+
'sidebar-size': number;
|
|
13
|
+
storybook: {
|
|
14
|
+
'some-path': string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
} | {
|
|
18
|
+
url: string;
|
|
19
|
+
method: string;
|
|
20
|
+
status: number;
|
|
21
|
+
response: (request: any) => any;
|
|
22
|
+
})[];
|
|
23
|
+
//# sourceMappingURL=%20mock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":" mock.d.ts","sourceRoot":"","sources":["../../__tests__/ mock.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;;;;;GAOnC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;IAgC9B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.storiesStorageMock = exports.storiesStorageMockEmpty = void 0;
|
|
4
|
+
var lodash_1 = require("lodash");
|
|
5
|
+
exports.storiesStorageMockEmpty = [
|
|
6
|
+
{
|
|
7
|
+
url: 'https://hq.qoretechnologies.com:8092/api/latest/users/_current_/storage',
|
|
8
|
+
method: 'GET',
|
|
9
|
+
status: 200,
|
|
10
|
+
response: {},
|
|
11
|
+
},
|
|
12
|
+
];
|
|
13
|
+
exports.storiesStorageMock = [
|
|
14
|
+
{
|
|
15
|
+
url: 'https://hq.qoretechnologies.com:8092/api/latest/users/_current_/storage',
|
|
16
|
+
method: 'GET',
|
|
17
|
+
status: 200,
|
|
18
|
+
response: {
|
|
19
|
+
'sidebar-size': 350,
|
|
20
|
+
storybook: {
|
|
21
|
+
'some-path': 'This is a storage value',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
url: 'https://hq.qoretechnologies.com:8092/api/latest/users/_current_/',
|
|
27
|
+
method: 'PUT',
|
|
28
|
+
status: 200,
|
|
29
|
+
response: function (request) {
|
|
30
|
+
var body = JSON.parse(request.body);
|
|
31
|
+
if (body.storage_path && !body.value) {
|
|
32
|
+
body.storage = {
|
|
33
|
+
'sidebar-size': 350,
|
|
34
|
+
storybook: {
|
|
35
|
+
'some-path': 'This is a NEW value',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
(0, lodash_1.set)(body.storage, body.storage_path, null);
|
|
39
|
+
}
|
|
40
|
+
return body.storage;
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=%20mock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":" mock.js","sourceRoot":"","sources":["../../__tests__/ mock.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAEhB,QAAA,uBAAuB,GAAG;IACrC;QACE,GAAG,EAAE,yEAAyE;QAC9E,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,EAAE;KACb;CACF,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC;QACE,GAAG,EAAE,yEAAyE;QAC9E,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE;YACR,cAAc,EAAE,GAAG;YACnB,SAAS,EAAE;gBACT,WAAW,EAAE,yBAAyB;aACvC;SACF;KACF;IACD;QACE,GAAG,EAAE,kEAAkE;QACvE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,UAAC,OAAO;YAChB,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAEtC,IAAI,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACrC,IAAI,CAAC,OAAO,GAAG;oBACb,cAAc,EAAE,GAAG;oBACnB,SAAS,EAAE;wBACT,WAAW,EAAE,qBAAqB;qBACnC;iBACF,CAAC;gBACF,IAAA,YAAG,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;YAC7C,CAAC;YAED,OAAO,IAAI,CAAC,OAAO,CAAC;QACtB,CAAC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../__tests__/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,OAAQ,MAAM,qBAE/B,CAAC;AAEF,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,iBAIrE"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.testsWaitForText = exports.sleep = void 0;
|
|
40
|
+
var test_1 = require("@storybook/test");
|
|
41
|
+
var sleep = function (ms) {
|
|
42
|
+
return new Promise(function (resolve) { return setTimeout(resolve, ms); });
|
|
43
|
+
};
|
|
44
|
+
exports.sleep = sleep;
|
|
45
|
+
function testsWaitForText(text, selector) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0: return [4 /*yield*/, (0, test_1.waitFor)(function () { return (0, test_1.expect)(test_1.screen.queryAllByText(text, { selector: selector })[0]).toBeInTheDocument(); }, {
|
|
50
|
+
timeout: 10000,
|
|
51
|
+
})];
|
|
52
|
+
case 1:
|
|
53
|
+
_a.sent();
|
|
54
|
+
return [2 /*return*/];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
exports.testsWaitForText = testsWaitForText;
|
|
60
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../__tests__/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAA0D;AAEnD,IAAM,KAAK,GAAG,UAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,IAAK,OAAA,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,EAAvB,CAAuB,CAAC,CAAC;AAC3D,CAAC,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEF,SAAsB,gBAAgB,CAAC,IAAY,EAAE,QAAiB;;;;wBACpE,qBAAM,IAAA,cAAO,EAAC,cAAM,OAAA,IAAA,aAAM,EAAC,aAAM,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,QAAQ,UAAA,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,EAAxE,CAAwE,EAAE;wBAC5F,OAAO,EAAE,KAAK;qBACf,CAAC,EAAA;;oBAFF,SAEE,CAAC;;;;;CACJ;AAJD,4CAIC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fsm": {
|
|
3
|
+
"singular_display_name": "Qog",
|
|
4
|
+
"display_name": "Qogs",
|
|
5
|
+
"short_desc": "Qogs are no-code logic elements based on finite state machines; they can be used anywhere in Qorus as an alternative to coding",
|
|
6
|
+
"supports_code": false,
|
|
7
|
+
"url_root": "fsms",
|
|
8
|
+
"drafts": 2,
|
|
9
|
+
"items": 49
|
|
10
|
+
},
|
|
11
|
+
"connection": {
|
|
12
|
+
"singular_display_name": "Connection",
|
|
13
|
+
"display_name": "Connections",
|
|
14
|
+
"short_desc": "Connections to remote systems",
|
|
15
|
+
"supports_code": false,
|
|
16
|
+
"url_root": "connections",
|
|
17
|
+
"drafts": 0,
|
|
18
|
+
"items": 25
|
|
19
|
+
},
|
|
20
|
+
"class": {
|
|
21
|
+
"singular_display_name": "Class",
|
|
22
|
+
"display_name": "Classes",
|
|
23
|
+
"short_desc": "Classes that can be used in Qorus interface code",
|
|
24
|
+
"supports_code": true,
|
|
25
|
+
"url_root": "classes",
|
|
26
|
+
"drafts": 0,
|
|
27
|
+
"items": 192
|
|
28
|
+
},
|
|
29
|
+
"errors": {
|
|
30
|
+
"singular_display_name": "Error",
|
|
31
|
+
"display_name": "Errors",
|
|
32
|
+
"short_desc": "Workflow error set definitions",
|
|
33
|
+
"supports_code": false,
|
|
34
|
+
"url_root": "error-sets",
|
|
35
|
+
"drafts": 0,
|
|
36
|
+
"items": 14
|
|
37
|
+
},
|
|
38
|
+
"event": {
|
|
39
|
+
"singular_display_name": "Workflow Sync Event",
|
|
40
|
+
"display_name": "Workflow Sync Events",
|
|
41
|
+
"short_desc": "Workflow synchronization events",
|
|
42
|
+
"supports_code": false,
|
|
43
|
+
"url_root": "events",
|
|
44
|
+
"drafts": 0,
|
|
45
|
+
"items": 9
|
|
46
|
+
},
|
|
47
|
+
"group": {
|
|
48
|
+
"singular_display_name": "Interface Group",
|
|
49
|
+
"display_name": "Interface Groups",
|
|
50
|
+
"short_desc": "Interface groups allow interfaces to be enabled and disabled together as well as enabling views on interfaces to be restricted for certain users",
|
|
51
|
+
"supports_code": false,
|
|
52
|
+
"url_root": "groups",
|
|
53
|
+
"drafts": 0,
|
|
54
|
+
"items": 102
|
|
55
|
+
},
|
|
56
|
+
"job": {
|
|
57
|
+
"singular_display_name": "Scheduled Job",
|
|
58
|
+
"display_name": "Scheduled Jobs",
|
|
59
|
+
"short_desc": "Jobs execute logic on a user-defined schedule",
|
|
60
|
+
"supports_code": true,
|
|
61
|
+
"url_root": "jobs",
|
|
62
|
+
"drafts": 0,
|
|
63
|
+
"items": 91
|
|
64
|
+
},
|
|
65
|
+
"mapper": {
|
|
66
|
+
"singular_display_name": "Mapper",
|
|
67
|
+
"display_name": "Mappers",
|
|
68
|
+
"short_desc": "Mappers are visual data transformation elements",
|
|
69
|
+
"supports_code": false,
|
|
70
|
+
"url_root": "mappers",
|
|
71
|
+
"drafts": 0,
|
|
72
|
+
"items": 37
|
|
73
|
+
},
|
|
74
|
+
"mapper-code": {
|
|
75
|
+
"singular_display_name": "Mapper Code Object",
|
|
76
|
+
"display_name": "Mapper Code",
|
|
77
|
+
"short_desc": "Mapper code elements are classes with methods that can be directly used in mappers for complex data transformation logic",
|
|
78
|
+
"supports_code": true,
|
|
79
|
+
"url_root": "classes",
|
|
80
|
+
"drafts": 0,
|
|
81
|
+
"items": 3
|
|
82
|
+
},
|
|
83
|
+
"pipeline": {
|
|
84
|
+
"singular_display_name": "Data Pipeline",
|
|
85
|
+
"display_name": "Data Pipelines",
|
|
86
|
+
"short_desc": "Data pipelines enable large volumes of data to be processed efficiently",
|
|
87
|
+
"supports_code": false,
|
|
88
|
+
"url_root": "pipelines",
|
|
89
|
+
"drafts": 0,
|
|
90
|
+
"items": 15
|
|
91
|
+
},
|
|
92
|
+
"queue": {
|
|
93
|
+
"singular_display_name": "Asynchronous Step Queue",
|
|
94
|
+
"display_name": "Asynchronous Step Queues",
|
|
95
|
+
"short_desc": "Asynchronous step queues connect the front end to the back end of asynchronous workflow steps",
|
|
96
|
+
"supports_code": false,
|
|
97
|
+
"url_root": "queues",
|
|
98
|
+
"drafts": 0,
|
|
99
|
+
"items": 13
|
|
100
|
+
},
|
|
101
|
+
"service": {
|
|
102
|
+
"singular_display_name": "Service",
|
|
103
|
+
"display_name": "Services",
|
|
104
|
+
"short_desc": "Services are a top-level interfacing object in Qorus",
|
|
105
|
+
"supports_code": true,
|
|
106
|
+
"url_root": "services",
|
|
107
|
+
"drafts": 0,
|
|
108
|
+
"items": 117
|
|
109
|
+
},
|
|
110
|
+
"sla": {
|
|
111
|
+
"singular_display_name": "SLA",
|
|
112
|
+
"display_name": "SLAs",
|
|
113
|
+
"short_desc": "SLAs track technical performance metrics with business impact",
|
|
114
|
+
"supports_code": false,
|
|
115
|
+
"url_root": "slas",
|
|
116
|
+
"drafts": 0,
|
|
117
|
+
"items": 5
|
|
118
|
+
},
|
|
119
|
+
"step": {
|
|
120
|
+
"singular_display_name": "Step",
|
|
121
|
+
"display_name": "Steps",
|
|
122
|
+
"short_desc": "Steps are an atomic execution element in a workflow",
|
|
123
|
+
"supports_code": true,
|
|
124
|
+
"url_root": "steps",
|
|
125
|
+
"drafts": 0,
|
|
126
|
+
"items": 233
|
|
127
|
+
},
|
|
128
|
+
"type": {
|
|
129
|
+
"singular_display_name": "Type",
|
|
130
|
+
"display_name": "Types",
|
|
131
|
+
"short_desc": "Data types",
|
|
132
|
+
"supports_code": false,
|
|
133
|
+
"url_root": "types",
|
|
134
|
+
"drafts": 0,
|
|
135
|
+
"items": 97
|
|
136
|
+
},
|
|
137
|
+
"value-map": {
|
|
138
|
+
"singular_display_name": "Value Map",
|
|
139
|
+
"display_name": "Value Maps",
|
|
140
|
+
"short_desc": "Value maps provide simple mappings from one value to another",
|
|
141
|
+
"supports_code": false,
|
|
142
|
+
"url_root": "valuemaps",
|
|
143
|
+
"drafts": 0,
|
|
144
|
+
"items": 10
|
|
145
|
+
},
|
|
146
|
+
"workflow": {
|
|
147
|
+
"singular_display_name": "Workflow",
|
|
148
|
+
"display_name": "Workflows",
|
|
149
|
+
"short_desc": "Workflows are the primary stateful orchestration interface type in Qorus",
|
|
150
|
+
"supports_code": true,
|
|
151
|
+
"url_root": "workflows",
|
|
152
|
+
"drafts": 0,
|
|
153
|
+
"items": 112
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { IReqoreIconName } from '@qoretechnologies/reqore/dist/types/icons';
|
|
2
|
+
import { TReqraftMenuItem } from '../src';
|
|
3
|
+
export declare const interfaceIcons: Record<string, IReqoreIconName>;
|
|
4
|
+
declare const _default: ({
|
|
5
|
+
label: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
to: string;
|
|
8
|
+
activePaths: string[];
|
|
9
|
+
id: string;
|
|
10
|
+
as: string;
|
|
11
|
+
submenu: TReqraftMenuItem[];
|
|
12
|
+
divider?: undefined;
|
|
13
|
+
href?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
divider: boolean;
|
|
16
|
+
label?: undefined;
|
|
17
|
+
icon?: undefined;
|
|
18
|
+
to?: undefined;
|
|
19
|
+
activePaths?: undefined;
|
|
20
|
+
id?: undefined;
|
|
21
|
+
as?: undefined;
|
|
22
|
+
submenu?: undefined;
|
|
23
|
+
href?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
label: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
href: string;
|
|
28
|
+
activePaths: string[];
|
|
29
|
+
id: string;
|
|
30
|
+
as: string;
|
|
31
|
+
to?: undefined;
|
|
32
|
+
submenu?: undefined;
|
|
33
|
+
divider?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
label: string;
|
|
36
|
+
id: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
submenu: {
|
|
39
|
+
label: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
href: string;
|
|
42
|
+
activePaths: string[];
|
|
43
|
+
id: string;
|
|
44
|
+
as: string;
|
|
45
|
+
}[];
|
|
46
|
+
to?: undefined;
|
|
47
|
+
activePaths?: undefined;
|
|
48
|
+
as?: undefined;
|
|
49
|
+
divider?: undefined;
|
|
50
|
+
href?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
label: string;
|
|
53
|
+
icon: string;
|
|
54
|
+
activePaths: string[];
|
|
55
|
+
id: string;
|
|
56
|
+
submenu: {
|
|
57
|
+
label: string;
|
|
58
|
+
icon: string;
|
|
59
|
+
href: string;
|
|
60
|
+
activePaths: string[];
|
|
61
|
+
id: string;
|
|
62
|
+
as: string;
|
|
63
|
+
}[];
|
|
64
|
+
to?: undefined;
|
|
65
|
+
as?: undefined;
|
|
66
|
+
divider?: undefined;
|
|
67
|
+
href?: undefined;
|
|
68
|
+
})[];
|
|
69
|
+
export default _default;
|
|
70
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../mock/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAsB1D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBA+QE"}
|