@qoretechnologies/ts-toolkit 0.5.81 → 0.5.82-pr.121.g35f9300
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/QorusOptions.d.ts +1 -1
- package/dist/QorusOptions.d.ts.map +1 -1
- package/dist/managers/error/Error.d.ts.map +1 -1
- package/dist/managers/error/Error.js.map +1 -1
- package/dist/types/expressions.d.ts +43 -5
- package/dist/types/expressions.d.ts.map +1 -1
- package/dist/types/forms.d.ts +204 -17
- package/dist/types/forms.d.ts.map +1 -1
- package/dist/types/qorus.d.ts +37 -3
- package/dist/types/qorus.d.ts.map +1 -1
- package/dist/utils/validation.d.ts +2 -2
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js.map +1 -1
- package/package.json +3 -3
package/dist/QorusOptions.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QorusOptions.d.ts","sourceRoot":"","sources":["../src/QorusOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"QorusOptions.d.ts","sourceRoot":"","sources":["../src/QorusOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAY5D;;;;;;GAMG;AACH,qBAAa,YAAY;IACvB,mCAAmC;IACnC,IAAI,SAAM;IAEV;;OAEG;IACH,YAAY,EAAE,aAAa,CAAM;gBAErB,QAAQ,EAAE,qBAAqB;IAM3C;;;;OAIG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS;IAM1D,OAAO,CAAC,cAAc;IAStB;;;OAGG;IACH,gBAAgB,IAAI,OAAO;IAa3B;;;OAGG;IACH,MAAM,IAAI,oBAAoB,GAAG,SAAS;IAgB1C;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAUrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAMvB;;;;OAIG;IACH,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;IAanD;;;;OAIG;IACH,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;IAQrD;;;;;OAKG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,qBAAqB,GAAG,SAAS;IAYxE;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO;CAapD;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AAElE,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../src/managers/error/Error.ts"],"names":[],"mappings":"AAAA,cAAM,SAAU,SAAQ,KAAK;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../src/managers/error/Error.ts"],"names":[],"mappings":"AAAA,cAAM,SAAU,SAAQ,KAAK;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,aAAa,EAAE,OAAO,CAAC;gBAEX,WAAW,EAAE,MAAM,EAAE,aAAa,KAAA,EAAE,IAAI,KAAA,EAAE,UAAU,KAAA;CAUjE;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../src/managers/error/Error.ts"],"names":[],"mappings":";;AAAA,MAAM,SAAU,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../src/managers/error/Error.ts"],"names":[],"mappings":";;AAAA,MAAM,SAAU,SAAQ,KAAK;IAK3B,YAAY,WAAmB,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU;;QAC9D,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,gEAAgE;QAChE,MAAA,KAAK,CAAC,iBAAiB,sDAAG,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AAED,kBAAe,SAAS,CAAC"}
|
|
@@ -1,30 +1,68 @@
|
|
|
1
|
+
import type { IQorusAllowedValue, IQorusFormFieldTypedDefaultValue } from './forms';
|
|
1
2
|
import { TQorusType } from './qorus';
|
|
3
|
+
/**
|
|
4
|
+
* One argument of an expression, as `GET /system?action=expressions&context=ui`
|
|
5
|
+
* sends it: the signature's type, merged with Qore's `DataProviderArgInfo` when
|
|
6
|
+
* the expression declares one (qorus `SystemRestClassV8::argInfo()`).
|
|
7
|
+
*/
|
|
2
8
|
export type TQorusExpressionSchemaArg = {
|
|
3
9
|
signature_type_code: string;
|
|
10
|
+
/** The argument's type name as the server spells it (`softstring`, `list<string>`), without the `*` of an optional one. */
|
|
4
11
|
name: string;
|
|
5
12
|
ui_type: TQorusType;
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
/** The element type name of a `list<...>` argument. */
|
|
14
|
+
element_type?: string;
|
|
15
|
+
ui_element_type?: TQorusType;
|
|
16
|
+
/**
|
|
17
|
+
* The description, which an expression without argument info (`value`,
|
|
18
|
+
* `template`) does not send.
|
|
19
|
+
*/
|
|
20
|
+
display_name?: string;
|
|
21
|
+
short_desc?: string;
|
|
8
22
|
desc?: string;
|
|
9
|
-
sensitive
|
|
23
|
+
sensitive?: boolean;
|
|
10
24
|
label_after?: string;
|
|
11
25
|
label_before?: string;
|
|
26
|
+
/** The default as the plain value. */
|
|
12
27
|
default_value?: any;
|
|
13
|
-
|
|
28
|
+
/** The same default, typed for the UI. */
|
|
29
|
+
ui_default_value?: IQorusFormFieldTypedDefaultValue;
|
|
30
|
+
/** A value the argument accepts, as a hint. */
|
|
31
|
+
example_value?: unknown;
|
|
32
|
+
allowed_values?: IQorusAllowedValue[];
|
|
33
|
+
allowed_values_creatable?: boolean;
|
|
34
|
+
/** The values each element of a list argument may take. */
|
|
35
|
+
element_allowed_values?: IQorusAllowedValue[];
|
|
36
|
+
element_allowed_values_creatable?: boolean;
|
|
37
|
+
/** Sent, as `true`, only for an argument that is not optional. */
|
|
38
|
+
required?: boolean;
|
|
14
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* An expression's return type as the server names it: a UI type (`string` is
|
|
42
|
+
* sent as `richtext`), or a generic one with its element type (`list<auto>`,
|
|
43
|
+
* `hash<auto>`).
|
|
44
|
+
*/
|
|
45
|
+
export type TQorusExpressionReturnType = TQorusType | `${'list' | 'hash'}<${string}>`;
|
|
15
46
|
export interface IQorusExpressionSchema {
|
|
16
47
|
desc: string;
|
|
17
48
|
short_desc: string;
|
|
18
49
|
display_name: string;
|
|
19
50
|
name: string;
|
|
20
|
-
return_type:
|
|
51
|
+
return_type: TQorusExpressionReturnType;
|
|
21
52
|
ui_return_type: TQorusType;
|
|
22
53
|
role: number;
|
|
54
|
+
/** `1` for an operator, `2` for a function. */
|
|
23
55
|
type: number;
|
|
24
56
|
varargs: boolean;
|
|
57
|
+
/** `1` for a normal expression, `2` for a logical group (`&&`, `||`). */
|
|
25
58
|
subtype: 1 | 2;
|
|
26
59
|
args: TQorusExpressionSchemaArg[];
|
|
27
60
|
symbol: string;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the data provider can run the expression itself; `false` means it
|
|
63
|
+
* is only evaluated by the client (Qore DataProvider 3.5).
|
|
64
|
+
*/
|
|
65
|
+
supports_pushdown?: boolean;
|
|
28
66
|
from_server?: boolean;
|
|
29
67
|
from_both?: boolean;
|
|
30
68
|
min_args?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expressions.d.ts","sourceRoot":"","sources":["../../src/types/expressions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,MAAM,yBAAyB,GAAG;IACtC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"expressions.d.ts","sourceRoot":"","sources":["../../src/types/expressions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,2HAA2H;IAC3H,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,CAAC;IACpB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE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;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,qBAAqB,GAAG,GAAG,CAAC;IACpC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
package/dist/types/forms.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IReqoreCollectionItemProps } from '@qoretechnologies/reqore/dist/components/Collection/item';
|
|
2
|
-
import { IReqorePanelProps } from '@qoretechnologies/reqore/dist/components/Panel';
|
|
2
|
+
import { IReqorePanelAction, IReqorePanelProps } from '@qoretechnologies/reqore/dist/components/Panel';
|
|
3
3
|
import { TReqoreIntent } from '@qoretechnologies/reqore/dist/constants/theme';
|
|
4
4
|
import { IReqoreAutoFocusRules } from '@qoretechnologies/reqore/dist/hooks/useAutoFocus';
|
|
5
5
|
import { IReqoreIconName } from '@qoretechnologies/reqore/dist/types/icons';
|
|
6
|
-
import {
|
|
6
|
+
import type { DropzoneOptions } from 'react-dropzone';
|
|
7
7
|
import { IQorusExpression, IQorusExpressionSchema } from './expressions';
|
|
8
|
-
import { TQorusType } from './qorus';
|
|
8
|
+
import { TQorusCustomUIType, TQorusType } from './qorus';
|
|
9
9
|
export type TQorusFormOperatorValue = string | string[] | undefined | null;
|
|
10
10
|
export interface IQorusFormField {
|
|
11
11
|
type: TQorusType;
|
|
@@ -17,11 +17,96 @@ export type TQorusForm = {
|
|
|
17
17
|
[optionName: string]: IQorusFormField | undefined;
|
|
18
18
|
} | undefined;
|
|
19
19
|
export type TQorusFlatForm = Record<string, any>;
|
|
20
|
+
/**
|
|
21
|
+
* The `depends_on` grammar, reused wherever something has to be said only in
|
|
22
|
+
* certain states of the SAME form.
|
|
23
|
+
*
|
|
24
|
+
* A bare `name` means the sibling has a value; `!name` means it has none;
|
|
25
|
+
* `name=value` and `name!=value` compare the answer. Top-level entries are an
|
|
26
|
+
* AND, and a nested array is an OR of its own entries.
|
|
27
|
+
*
|
|
28
|
+
* Both halves of a condition are evaluated against the values of one form. A
|
|
29
|
+
* predicate cannot reach into a nested `arg_schema` sub-form or out to its
|
|
30
|
+
* parent: those are separate value scopes, and a condition that silently never
|
|
31
|
+
* fires would be worse than no condition at all.
|
|
32
|
+
*/
|
|
33
|
+
export type TQorusDependencyList = (string | string[])[];
|
|
20
34
|
export interface IQorusFormFieldMessage {
|
|
21
35
|
title?: string;
|
|
22
36
|
content: string;
|
|
23
37
|
intent?: TReqoreIntent;
|
|
38
|
+
/**
|
|
39
|
+
* Show the message only while EVERY entry holds — {@link
|
|
40
|
+
* TQorusDependencyList}.
|
|
41
|
+
*
|
|
42
|
+
* A message declared on a descriptor is otherwise static: it is served with
|
|
43
|
+
* the schema and says the same thing whatever the user has typed. That is
|
|
44
|
+
* right for a note and wrong for a warning about a COMBINATION, because an
|
|
45
|
+
* always-on warning sitting over a valid configuration is one people learn to
|
|
46
|
+
* scroll past — so it is not there when it finally means something.
|
|
47
|
+
*
|
|
48
|
+
* Sent by the Qorus server as `FieldUiMessageInfo::when`.
|
|
49
|
+
*/
|
|
50
|
+
when?: TQorusDependencyList;
|
|
51
|
+
/** Hide the message while every entry holds — the negative form of `when`. */
|
|
52
|
+
unless?: TQorusDependencyList;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* One affordance offered beside a value, as a DESCRIPTOR rather than a node.
|
|
56
|
+
*
|
|
57
|
+
* Allowed values routinely travel through a `JSON.stringify(items)` memo key in
|
|
58
|
+
* the form engines, and a rendered React element is circular through its fibre
|
|
59
|
+
* — putting one on a value throws and takes the whole form down with it. So a
|
|
60
|
+
* descriptor NAMES the component and hands it props; `as` is a function or a
|
|
61
|
+
* memo object, which `JSON.stringify` simply omits.
|
|
62
|
+
*/
|
|
63
|
+
export interface IQorusUiComponentDescriptor {
|
|
64
|
+
/**
|
|
65
|
+
* The component to render. The renderer decides the default.
|
|
66
|
+
*
|
|
67
|
+
* Typed through the component library rather than through `react` directly:
|
|
68
|
+
* `react` is not a dependency of this package, and a published declaration
|
|
69
|
+
* may only import what a consumer installs with it.
|
|
70
|
+
*/
|
|
71
|
+
as?: IReqorePanelAction['as'];
|
|
72
|
+
/** Props handed to it. Keep them JSON-serialisable. */
|
|
73
|
+
props?: Record<string, unknown>;
|
|
24
74
|
}
|
|
75
|
+
/** Where a popover opens, as the placements every renderer accepts. */
|
|
76
|
+
export type TQorusUiPlacement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
77
|
+
/**
|
|
78
|
+
* A tooltip opened from a value's own row: a bare string, or options whose
|
|
79
|
+
* content is a {@link IQorusUiComponentDescriptor} under the same
|
|
80
|
+
* no-React-elements rule.
|
|
81
|
+
*
|
|
82
|
+
* Only the options every renderer honours are named. It is deliberately NOT
|
|
83
|
+
* typed as the component library's own tooltip interface: this package is a
|
|
84
|
+
* dependency of the renderers, and importing their types here made every
|
|
85
|
+
* consumer install a second, older copy of them.
|
|
86
|
+
*/
|
|
87
|
+
export type TQorusUiTooltip = string | {
|
|
88
|
+
content?: string | IQorusUiComponentDescriptor;
|
|
89
|
+
/**
|
|
90
|
+
* What opens it. A hover popover is read-only; a click one is
|
|
91
|
+
* interactive. `focus` opens it from the keyboard, which is the only
|
|
92
|
+
* handler a reader who never uses a pointer can reach.
|
|
93
|
+
*
|
|
94
|
+
* All four the renderers honour, so all four are named here: a value's
|
|
95
|
+
* tooltip is widened by reqraft to its component library's own tooltip
|
|
96
|
+
* options, and a union narrower than that one cannot be re-declared on a
|
|
97
|
+
* type extending this one.
|
|
98
|
+
*/
|
|
99
|
+
handler?: 'hover' | 'click' | 'focus' | 'hoverStay';
|
|
100
|
+
/** Milliseconds a hover must rest before it opens. */
|
|
101
|
+
delay?: number;
|
|
102
|
+
placement?: TQorusUiPlacement;
|
|
103
|
+
title?: string;
|
|
104
|
+
maxWidth?: string;
|
|
105
|
+
maxHeight?: string;
|
|
106
|
+
noArrow?: boolean;
|
|
107
|
+
intent?: TReqoreIntent;
|
|
108
|
+
icon?: IReqoreIconName;
|
|
109
|
+
};
|
|
25
110
|
export interface IQorusAllowedValue<IMetadata extends Record<string, any> = Record<string, any>> {
|
|
26
111
|
display_name: string;
|
|
27
112
|
short_desc?: string;
|
|
@@ -34,29 +119,107 @@ export interface IQorusAllowedValue<IMetadata extends Record<string, any> = Reco
|
|
|
34
119
|
};
|
|
35
120
|
ui_type?: TQorusType;
|
|
36
121
|
type?: TQorusType;
|
|
122
|
+
/**
|
|
123
|
+
* The value is offered but cannot be picked, and the reason is in
|
|
124
|
+
* {@link messages}.
|
|
125
|
+
*
|
|
126
|
+
* Set by whoever already KNOWS — the server, for a sandbox or permission
|
|
127
|
+
* context, a capability of the selected kind, or a requirement in another
|
|
128
|
+
* scope that {@link depends_on} deliberately cannot reach. A renderer must
|
|
129
|
+
* disable and say why rather than hide the value: a value that vanishes takes
|
|
130
|
+
* its own explanation with it, and the reader is left looking for something
|
|
131
|
+
* they were told exists.
|
|
132
|
+
*/
|
|
37
133
|
disabled?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* The value is offered only while EVERY entry holds — {@link
|
|
136
|
+
* TQorusDependencyList}, the same grammar and the same evaluator a FIELD's
|
|
137
|
+
* `depends_on` uses, one level down.
|
|
138
|
+
*
|
|
139
|
+
* For what the form itself can decide. Where the answer depends on something
|
|
140
|
+
* only the server knows, it sends {@link disabled} with a message instead;
|
|
141
|
+
* the two render identically, so a reader never has to know which decided.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```ts
|
|
145
|
+
* // A scheme's cookie-only mode, offered once a cookie name is set:
|
|
146
|
+
* { display_name: 'Cookie', value: { type: 'string', value: 'cookie' },
|
|
147
|
+
* depends_on: ['cookie_name'] }
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
depends_on?: TQorusDependencyList;
|
|
38
151
|
intent?: TReqoreIntent;
|
|
39
152
|
badge?: IReqorePanelProps['badge'];
|
|
40
153
|
messages?: IQorusFormFieldMessage[];
|
|
154
|
+
/**
|
|
155
|
+
* Affordances rendered in the value's BODY, under its description — each one
|
|
156
|
+
* costs a line of its own.
|
|
157
|
+
*/
|
|
41
158
|
actions?: IReqorePanelProps['actions'];
|
|
159
|
+
/**
|
|
160
|
+
* Affordances rendered in the value's TITLE BAR, inline with its name, where
|
|
161
|
+
* a row already reserves the height.
|
|
162
|
+
*
|
|
163
|
+
* Separate from {@link actions} rather than a relocation of it: body actions
|
|
164
|
+
* have been rendered under the description for as long as there have been
|
|
165
|
+
* pickers, and callers size and lay them out on that basis.
|
|
166
|
+
*/
|
|
167
|
+
title_actions?: IQorusUiComponentDescriptor[];
|
|
168
|
+
/**
|
|
169
|
+
* A tooltip on the whole ROW, not on one control inside it. Content that is
|
|
170
|
+
* more than a sentence belongs here rather than in a description, which every
|
|
171
|
+
* row pays for in height whether it is read or not.
|
|
172
|
+
*/
|
|
173
|
+
tooltip?: TQorusUiTooltip;
|
|
42
174
|
icon?: IReqoreIconName;
|
|
43
175
|
image?: string;
|
|
44
176
|
metadata?: IMetadata;
|
|
45
177
|
}
|
|
46
178
|
export type TQorusFormFieldOnChangeEvents = 'refetch';
|
|
179
|
+
/**
|
|
180
|
+
* The options each field type takes in `type_options`.
|
|
181
|
+
*
|
|
182
|
+
* `file` is typed with `react-dropzone`'s options, which is what reqraft's file
|
|
183
|
+
* field hands them to. It is not read through reqraft's own props: reqraft
|
|
184
|
+
* depends on this package, and importing its types here made every consumer
|
|
185
|
+
* install a second, older reqraft.
|
|
186
|
+
*/
|
|
47
187
|
export type IQorusTypeOptionsMapper = {
|
|
48
|
-
file:
|
|
188
|
+
file: DropzoneOptions;
|
|
189
|
+
};
|
|
190
|
+
/** A default written with the type it holds — and, for an expression, `is_expression`. */
|
|
191
|
+
export interface IQorusFormFieldTypedDefaultValue {
|
|
192
|
+
type: TQorusType;
|
|
193
|
+
value?: unknown;
|
|
194
|
+
is_expression?: boolean;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* A default written as the plain value. An object without `type` is a hash
|
|
198
|
+
* value; one WITH `type` is read as a typed default by the form engines, so it
|
|
199
|
+
* cannot be a plain hash.
|
|
200
|
+
*/
|
|
201
|
+
export type TQorusFormFieldPlainDefaultValue = string | number | boolean | null | unknown[] | {
|
|
202
|
+
type?: never;
|
|
203
|
+
[key: string]: unknown;
|
|
49
204
|
};
|
|
205
|
+
/**
|
|
206
|
+
* A field's `default_value`, in either shape the server sends it: the plain
|
|
207
|
+
* value (`"default_value": 512` — Qore's `DataProviderOptionInfo.default_value`
|
|
208
|
+
* is `auto`) or a typed default (`{"type": "bool", "value": {...},
|
|
209
|
+
* "is_expression": true}`).
|
|
210
|
+
*/
|
|
211
|
+
export type TQorusFormFieldDefaultValue = IQorusFormFieldTypedDefaultValue | TQorusFormFieldPlainDefaultValue;
|
|
212
|
+
/**
|
|
213
|
+
* What a field's `ui_type` names: a Qorus type, or an editor the consumer
|
|
214
|
+
* registered in `IQorusCustomUITypes`.
|
|
215
|
+
*/
|
|
216
|
+
export type TQorusFormFieldUIType = TQorusType | TQorusCustomUIType;
|
|
50
217
|
export interface IQorusFormFieldSchemaBase {
|
|
51
218
|
element_type?: TQorusType;
|
|
52
219
|
ui_element_type?: string;
|
|
53
220
|
value?: unknown | IQorusExpression;
|
|
54
221
|
desc?: string;
|
|
55
|
-
default_value?:
|
|
56
|
-
type: TQorusType;
|
|
57
|
-
value?: unknown;
|
|
58
|
-
is_expression?: boolean;
|
|
59
|
-
};
|
|
222
|
+
default_value?: TQorusFormFieldDefaultValue;
|
|
60
223
|
default_value_desc?: string;
|
|
61
224
|
default_value_display_name?: string;
|
|
62
225
|
required?: boolean;
|
|
@@ -81,7 +244,16 @@ export interface IQorusFormFieldSchemaBase {
|
|
|
81
244
|
server_expression_handling?: boolean;
|
|
82
245
|
app?: string;
|
|
83
246
|
action?: string;
|
|
84
|
-
|
|
247
|
+
/**
|
|
248
|
+
* The field is offered only while EVERY entry holds — {@link
|
|
249
|
+
* TQorusDependencyList}.
|
|
250
|
+
*
|
|
251
|
+
* The two halves of the list mix freely (`[['kind=workflow', 'kind=service'],
|
|
252
|
+
* 'name']` — one of the versioned kinds, AND a name to attach a version to),
|
|
253
|
+
* which is what the server sends and what the form engines evaluate. It used
|
|
254
|
+
* to be typed as `string[] | string[][]`, which cannot say that.
|
|
255
|
+
*/
|
|
256
|
+
depends_on?: TQorusDependencyList;
|
|
85
257
|
has_dependents?: boolean;
|
|
86
258
|
on_change?: TQorusFormFieldOnChangeEvents[];
|
|
87
259
|
/**
|
|
@@ -103,15 +275,16 @@ export interface IQorusFormFieldSchemaBase {
|
|
|
103
275
|
* // language picker without an `on_change`/refetch round-trip:
|
|
104
276
|
* {
|
|
105
277
|
* source: {
|
|
278
|
+
* type: 'string',
|
|
106
279
|
* ui_type: 'code-editor',
|
|
107
280
|
* inherit_props: { language: 'lang' },
|
|
108
281
|
* },
|
|
109
282
|
* lang: {
|
|
110
|
-
*
|
|
283
|
+
* type: 'string',
|
|
111
284
|
* default_value: 'qore',
|
|
112
285
|
* allowed_values: [
|
|
113
|
-
* { value: 'qore', display_name: 'Qore' },
|
|
114
|
-
* { value: 'python', display_name: 'Python' },
|
|
286
|
+
* { value: { type: 'string', value: 'qore' }, display_name: 'Qore' },
|
|
287
|
+
* { value: { type: 'string', value: 'python' }, display_name: 'Python' },
|
|
115
288
|
* ],
|
|
116
289
|
* },
|
|
117
290
|
* }
|
|
@@ -123,12 +296,18 @@ export interface IQorusFormFieldSchemaBase {
|
|
|
123
296
|
sort?: number;
|
|
124
297
|
disabled?: boolean;
|
|
125
298
|
readonly?: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* The field belongs to the form but gets no editor of its own: its value is
|
|
301
|
+
* still carried, and can be required through `required_groups`, while other
|
|
302
|
+
* fields supply it. The Qorus server hides a test step's `target` this way.
|
|
303
|
+
*/
|
|
304
|
+
hidden?: boolean;
|
|
126
305
|
intent?: TReqoreIntent;
|
|
127
306
|
metadata?: Record<string, any>;
|
|
128
307
|
rules?: ['valid_identifier'];
|
|
129
308
|
tags?: IReqoreCollectionItemProps['tags'];
|
|
130
309
|
options?: {
|
|
131
|
-
file?:
|
|
310
|
+
file?: DropzoneOptions;
|
|
132
311
|
};
|
|
133
312
|
messages?: IQorusFormFieldMessage[];
|
|
134
313
|
focusRules?: IReqoreAutoFocusRules;
|
|
@@ -148,13 +327,21 @@ export interface IQorusFormFieldSchemaBase {
|
|
|
148
327
|
};
|
|
149
328
|
stretch?: boolean;
|
|
150
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* One field of a form.
|
|
332
|
+
*
|
|
333
|
+
* `type` is how the value is stored; the server sends a list when an option
|
|
334
|
+
* accepts several (Qore's `DataProvider::getInfoAsData()`), and the form
|
|
335
|
+
* engines use the first. `ui_type` names the editor, and is optional: most
|
|
336
|
+
* server schemas carry none, and the engines fall back to `type`.
|
|
337
|
+
*/
|
|
151
338
|
export type TQorusFormFieldSchema = ({
|
|
152
339
|
type: keyof IQorusTypeOptionsMapper;
|
|
153
|
-
ui_type
|
|
340
|
+
ui_type?: keyof IQorusTypeOptionsMapper;
|
|
154
341
|
type_options?: IQorusTypeOptionsMapper[keyof IQorusTypeOptionsMapper];
|
|
155
342
|
} & IQorusFormFieldSchemaBase) | ({
|
|
156
|
-
type: Exclude<TQorusType, keyof IQorusTypeOptionsMapper
|
|
157
|
-
ui_type
|
|
343
|
+
type: Exclude<TQorusType, keyof IQorusTypeOptionsMapper> | TQorusType[];
|
|
344
|
+
ui_type?: Exclude<TQorusFormFieldUIType, keyof IQorusTypeOptionsMapper>;
|
|
158
345
|
} & IQorusFormFieldSchemaBase);
|
|
159
346
|
export interface IQorusFormSchema {
|
|
160
347
|
[optionName: string]: TQorusFormFieldSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/types/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/types/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACvG,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,IAAI,CAAC;AAE3E,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,GAAG,CAAC;IACX,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,EAAE,C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AAW,gBAAgB;IAC/B,CAAC,UAAU,EAAE,MAAM,GAAG,qBAAqB,CAAC;CAC7C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,CAAC,YAAY,EAAE,MAAM,GAAG,kBAAkB,CAAC;CAC5C;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
package/dist/types/qorus.d.ts
CHANGED
|
@@ -1,13 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The kinds of object Qorus manages. An option that selects one is typed with
|
|
3
|
+
* its kind: `{ type: 'api-schema', value: 'customer-api' }`.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the server's metadata object kinds (`MetadataObjectTypeNames` in
|
|
6
|
+
* qorus `Classes/MetadataActionContext.qc`), plus `qog`.
|
|
7
|
+
*/
|
|
8
|
+
export type TQorusInterfaces = 'mapper' | 'workflow' | 'service' | 'job' | 'connection' | 'constant' | 'class' | 'errors' | 'fsm' | 'function' | 'group' | 'mapper-code' | 'queue' | 'pipeline' | 'sla' | 'step' | 'type' | 'value-map' | 'qog' | 'ai-collection' | 'ai-endpoint' | 'ai-guardrail' | 'ai-knowledge-profile' | 'ai-solution-profile' | 'alertrule' | 'alertsilence' | 'api-schema' | 'auth-profile' | 'business-process' | 'config-item-values' | 'event' | 'installed-release' | 'ml-model' | 'release-config' | 'release-script' | 'schema' | 'schema-script' | 'test' | 'test-script';
|
|
9
|
+
export type TQorusStringCompatibleUIType = 'binary' | 'date' | 'email' | 'string' | 'long-string' | 'enum' | 'url' | 'select-string' | 'file-as-string';
|
|
3
10
|
export type TQorusNumberCompatibleUIType = 'int' | 'integer' | 'float' | 'number';
|
|
4
|
-
|
|
11
|
+
/**
|
|
12
|
+
* `select-array` and `multi-select` are the object picker: the server sends
|
|
13
|
+
* `select-array` as a field's `ui_type` (`MapperMetadata.qc`,
|
|
14
|
+
* `QorusMapManager.qc`) and reads a value stored under either name
|
|
15
|
+
* (`lib/misc.ql`), the older one being what the legacy field submitted.
|
|
16
|
+
*/
|
|
17
|
+
export type TQorusListCompatibleUIType = 'list' | 'range' | 'free-list' | 'select-array' | 'multi-select';
|
|
5
18
|
export type TQorusHashCompatibleUIType = 'hash' | 'data' | 'rgbcolor' | 'free-hash';
|
|
6
19
|
export type TQorusNullCompatibleUIType = 'null' | 'nothing';
|
|
7
20
|
export type TQorusAnyCompatibleUIType = 'any' | 'auto';
|
|
8
21
|
export type TQorusBooleanCompatibleUIType = 'bool' | 'boolean';
|
|
9
22
|
export type TQorusSpecialUIType = 'richtext' | 'data-provider' | 'context' | 'file' | 'processor-mappings' | 'tool-catalog' | 'code-editor';
|
|
10
23
|
export type TQorusType = TQorusInterfaces | TQorusStringCompatibleUIType | TQorusNumberCompatibleUIType | TQorusListCompatibleUIType | TQorusHashCompatibleUIType | TQorusNullCompatibleUIType | TQorusAnyCompatibleUIType | TQorusBooleanCompatibleUIType | TQorusSpecialUIType;
|
|
24
|
+
/**
|
|
25
|
+
* Editors a form engine's consumer registers itself, by name. reqraft's
|
|
26
|
+
* `FormEngine` takes `componentOverrides` keyed by `ui_type` and a
|
|
27
|
+
* `rendererOnlyUiTypes` list, so a field's `ui_type` may name an editor this
|
|
28
|
+
* package has never heard of. A consumer declares its names here, and only
|
|
29
|
+
* there, so every other name stays a type error:
|
|
30
|
+
*
|
|
31
|
+
* ```ts
|
|
32
|
+
* declare module '@qoretechnologies/ts-toolkit' {
|
|
33
|
+
* interface IQorusCustomUITypes {
|
|
34
|
+
* 'test-reference': true;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* The values are unused; the keys are the names.
|
|
40
|
+
*/
|
|
41
|
+
export interface IQorusCustomUITypes {
|
|
42
|
+
}
|
|
43
|
+
/** An editor name a consumer registered in {@link IQorusCustomUITypes}. */
|
|
44
|
+
export type TQorusCustomUIType = keyof IQorusCustomUITypes;
|
|
11
45
|
export type QorusProgrammingLanguage = 'qore' | 'python' | 'java';
|
|
12
46
|
export interface QorusConfigItem {
|
|
13
47
|
type: TQorusType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qorus.d.ts","sourceRoot":"","sources":["../../src/types/qorus.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,UAAU,GACV,SAAS,GACT,KAAK,GACL,YAAY,GACZ,UAAU,GACV,OAAO,GACP,QAAQ,GACR,KAAK,GACL,UAAU,GACV,OAAO,GACP,aAAa,GACb,OAAO,GACP,UAAU,GACV,KAAK,GACL,MAAM,GACN,MAAM,GACN,WAAW,GACX,KAAK,GACL,eAAe,GACf,aAAa,GACb,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"qorus.d.ts","sourceRoot":"","sources":["../../src/types/qorus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,UAAU,GACV,SAAS,GACT,KAAK,GACL,YAAY,GACZ,UAAU,GACV,OAAO,GACP,QAAQ,GACR,KAAK,GACL,UAAU,GACV,OAAO,GACP,aAAa,GACb,OAAO,GACP,UAAU,GACV,KAAK,GACL,MAAM,GACN,MAAM,GACN,WAAW,GACX,KAAK,GACL,eAAe,GACf,aAAa,GACb,cAAc,GACd,sBAAsB,GACtB,qBAAqB,GACrB,WAAW,GACX,cAAc,GACd,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,oBAAoB,GACpB,OAAO,GACP,mBAAmB,GACnB,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,QAAQ,GACR,eAAe,GACf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AE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC;CACxB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TQorusType } from '../types/qorus';
|
|
1
2
|
/**
|
|
2
3
|
* Function to trimmed address for a url
|
|
3
4
|
* @param v address url
|
|
@@ -53,7 +54,7 @@ export type TOption = {
|
|
|
53
54
|
op?: TOperatorValue;
|
|
54
55
|
};
|
|
55
56
|
export type TOperatorValue = string | string[] | undefined | null;
|
|
56
|
-
export type TQorusType
|
|
57
|
+
export type { TQorusType };
|
|
57
58
|
type TOptions = {
|
|
58
59
|
[optionName: string]: TOption;
|
|
59
60
|
} | undefined;
|
|
@@ -103,5 +104,4 @@ export type TApiManagerEndpoint = {
|
|
|
103
104
|
type?: TApiManagerEndpointType;
|
|
104
105
|
value?: string;
|
|
105
106
|
};
|
|
106
|
-
export {};
|
|
107
107
|
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,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IAC1B,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC1C;AAED,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,MAAM,CAAC;AACpD,MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,QAAQ,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AAC1C,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAGjC;;;;GAIG;AACI,MAAM,UAAU,GAAG,CAAC,CAAS,EAAE,EAAE;;IACtC,OAAO,CAAA,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,KAAK,CAAC,KAAK,CAAC,0CAAG,CAAC,CAAC,KAAI,EAAE,CAAC;AACpC,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEF;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,QAAwB,EAAgD,EAAE;IACzG,OAAO,IAAA,gBAAO,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AACnD,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B;AAEW,QAAA,aAAa,GAAG;IAC3B,OAAO;IACP,WAAW;IACX,MAAM;IACN,WAAW;IACX,QAAQ;IACR,SAAS;IACT,WAAW;IACX,iBAAiB;IACjB,MAAM;IACN,MAAM;IACN,MAAM;IACN,WAAW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,GAAG,CAAC,KAAc,EAAE,EAAE;IAC/C,IAAI,KAAK,IAAI,IAAA,uBAAe,EAAC,KAAK,CAAC,EAAE;QACnC,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;KACpE;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB;AAGF;;;;GAIG;AACI,MAAM,aAAa,GAAG,CAAC,KAAa,EAA2B,EAAE;;IACtE,MAAM,KAAK,GAAoB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAoB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAChE,IAAI,IAAI;QAAE,OAAO,CAAC,MAAM,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,CAAC,CAAC,mCAAI,IAAI,CAAC,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,CAAC,CAAC,mCAAI,IAAI,CAAC,CAAC;;QAC5D,OAAO,IAAI,CAAC;AACnB,CAAC,CAAC;AALW,QAAA,aAAa,iBAKxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qoretechnologies/ts-toolkit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.82-pr.121.g35f9300",
|
|
4
4
|
"description": "Utility library to interact with Qorus Integration Engine & Qore Language",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"qoretechnologies",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"storybook-addon-outline": "^1.4.2",
|
|
93
93
|
"storybook-dark-mode": "^1.1.2",
|
|
94
94
|
"ts-file-parser": "^0.0.21",
|
|
95
|
-
"ts-jest": "^
|
|
95
|
+
"ts-jest": "^29.4.12",
|
|
96
96
|
"ts-node": "^10.9.1",
|
|
97
97
|
"typedoc": "^0.23.10",
|
|
98
98
|
"typedoc-json-parser": "^7.0.2",
|
|
@@ -103,13 +103,13 @@
|
|
|
103
103
|
"@qoretechnologies/reqore": "<1.0.0"
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@qoretechnologies/reqraft": "^0.7.0",
|
|
107
106
|
"async": "^3.2.4",
|
|
108
107
|
"cron-validator": "^1.3.1",
|
|
109
108
|
"js-yaml": "^4.1.0",
|
|
110
109
|
"lodash": "^4.17.21",
|
|
111
110
|
"openapi-types": "^12.1.3",
|
|
112
111
|
"qs": "^6.11.0",
|
|
112
|
+
"react-dropzone": "^14.3.5",
|
|
113
113
|
"react-markdown": "^8.0.4"
|
|
114
114
|
}
|
|
115
115
|
}
|