zova-module-a-openapi 5.1.11 → 5.1.13
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/.metadata/index.d.ts +23 -0
- package/dist/.metadata/index.d.ts.map +1 -1
- package/dist/bean/bean.resourceProviders.d.ts +8 -0
- package/dist/bean/bean.resourceProviders.d.ts.map +1 -0
- package/dist/bean/sys.sdk.d.ts.map +1 -1
- package/dist/config/config.d.ts +2 -3
- package/dist/config/config.d.ts.map +1 -1
- package/dist/index.js +49 -49
- package/dist/index.js.map +1 -1
- package/dist/lib/schema.d.ts +1 -1
- package/dist/lib/schema.d.ts.map +1 -1
- package/dist/model/sdk.d.ts +2 -2
- package/dist/model/sdk.d.ts.map +1 -1
- package/dist/monkey.d.ts.map +1 -1
- package/dist/types/action.d.ts +17 -4
- package/dist/types/action.d.ts.map +1 -1
- package/dist/types/actions.d.ts +49 -13
- package/dist/types/actions.d.ts.map +1 -1
- package/dist/types/blocks.d.ts +13 -0
- package/dist/types/blocks.d.ts.map +1 -0
- package/dist/types/fieldLayout.d.ts +3 -0
- package/dist/types/fieldLayout.d.ts.map +1 -0
- package/dist/types/formField.d.ts +9 -0
- package/dist/types/formField.d.ts.map +1 -0
- package/dist/types/formMeta.d.ts +9 -0
- package/dist/types/formMeta.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -9
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/permissions.d.ts +3 -7
- package/dist/types/permissions.d.ts.map +1 -1
- package/dist/types/resourceProviders.d.ts +46 -0
- package/dist/types/resourceProviders.d.ts.map +1 -0
- package/dist/types/rest.d.ts +33 -29
- package/dist/types/rest.d.ts.map +1 -1
- package/dist/types/schema.d.ts.map +1 -1
- package/dist/types/sdk.d.ts +0 -2
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/tableCell.d.ts +13 -0
- package/dist/types/tableCell.d.ts.map +1 -0
- package/package.json +6 -5
- package/src/.metadata/index.ts +31 -0
- package/src/bean/bean.resourceProviders.ts +32 -0
- package/src/bean/sys.sdk.ts +11 -2
- package/src/config/config.ts +2 -34
- package/src/lib/schema.ts +11 -6
- package/src/model/sdk.ts +5 -8
- package/src/monkey.ts +5 -1
- package/src/types/action.ts +24 -4
- package/src/types/actions.ts +60 -13
- package/src/types/blocks.ts +14 -0
- package/src/types/fieldLayout.ts +1 -0
- package/src/types/formField.ts +9 -0
- package/src/types/formMeta.ts +9 -0
- package/src/types/index.ts +7 -9
- package/src/types/permissions.ts +4 -7
- package/src/types/resourceProviders.ts +56 -0
- package/src/types/rest.ts +64 -53
- package/src/types/schema.ts +3 -1
- package/src/types/sdk.ts +0 -2
- package/src/types/tableCell.ts +14 -0
- package/dist/types/captcha.d.ts +0 -15
- package/dist/types/captcha.d.ts.map +0 -1
- package/dist/types/date.d.ts +0 -5
- package/dist/types/date.d.ts.map +0 -1
- package/dist/types/jsx.d.ts +0 -9
- package/dist/types/jsx.d.ts.map +0 -1
- package/dist/types/resourceMeta.d.ts +0 -32
- package/dist/types/resourceMeta.d.ts.map +0 -1
- package/dist/types/resourcePicker.d.ts +0 -10
- package/dist/types/resourcePicker.d.ts.map +0 -1
- package/dist/types/select.d.ts +0 -16
- package/dist/types/select.d.ts.map +0 -1
- package/dist/types/textarea.d.ts +0 -11
- package/dist/types/textarea.d.ts.map +0 -1
- package/dist/types/toggle.d.ts +0 -4
- package/dist/types/toggle.d.ts.map +0 -1
- package/src/types/captcha.ts +0 -16
- package/src/types/date.ts +0 -25
- package/src/types/jsx.ts +0 -10
- package/src/types/resourceMeta.ts +0 -37
- package/src/types/resourcePicker.ts +0 -10
- package/src/types/select.ts +0 -16
- package/src/types/textarea.ts +0 -10
- package/src/types/toggle.ts +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/types/textarea.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAClC"}
|
package/dist/types/toggle.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/types/toggle.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CAC5E"}
|
package/src/types/captcha.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface ICaptchaSceneRecord {
|
|
2
|
-
'captcha-simple:simple': never;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface ICaptchaProviderRecord {}
|
|
6
|
-
|
|
7
|
-
export interface ICaptchaOptions {
|
|
8
|
-
scene?: keyof ICaptchaSceneRecord;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ICaptchaData {
|
|
12
|
-
id: string;
|
|
13
|
-
provider: keyof ICaptchaProviderRecord | string;
|
|
14
|
-
token?: unknown;
|
|
15
|
-
payload?: unknown;
|
|
16
|
-
}
|
package/src/types/date.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type TypeDateFormatPreset =
|
|
2
|
-
| 'DATE_SHORT'
|
|
3
|
-
| 'DATE_MED'
|
|
4
|
-
| 'DATE_MED_WITH_WEEKDAY'
|
|
5
|
-
| 'DATE_FULL'
|
|
6
|
-
| 'DATE_HUGE'
|
|
7
|
-
| 'TIME_SIMPLE'
|
|
8
|
-
| 'TIME_WITH_SECONDS'
|
|
9
|
-
| 'TIME_WITH_SHORT_OFFSET'
|
|
10
|
-
| 'TIME_WITH_LONG_OFFSET'
|
|
11
|
-
| 'TIME_24_SIMPLE'
|
|
12
|
-
| 'TIME_24_WITH_SECONDS'
|
|
13
|
-
| 'TIME_24_WITH_SHORT_OFFSET'
|
|
14
|
-
| 'TIME_24_WITH_LONG_OFFSET'
|
|
15
|
-
| 'DATETIME_SHORT'
|
|
16
|
-
| 'DATETIME_MED'
|
|
17
|
-
| 'DATETIME_MED_WITH_WEEKDAY'
|
|
18
|
-
| 'DATETIME_FULL'
|
|
19
|
-
| 'DATETIME_HUGE'
|
|
20
|
-
| 'DATETIME_SHORT_WITH_SECONDS'
|
|
21
|
-
| 'DATETIME_MED_WITH_SECONDS'
|
|
22
|
-
| 'DATETIME_FULL_WITH_SECONDS'
|
|
23
|
-
| 'DATETIME_HUGE_WITH_SECONDS';
|
|
24
|
-
|
|
25
|
-
export type TypeDateFormat = { preset: TypeDateFormatPreset } | string;
|
package/src/types/jsx.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IActionsRecord } from 'zova-module-a-action';
|
|
2
|
-
|
|
3
|
-
import type { TypeActionProvider } from './action.js';
|
|
4
|
-
import 'zova-jsx';
|
|
5
|
-
|
|
6
|
-
declare module 'zova-jsx' {
|
|
7
|
-
export interface ZovaJsx {
|
|
8
|
-
normalizeAction(type: keyof IActionsRecord): TypeActionProvider;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { TypeComponentRecordSelectorKeysStrict } from 'zova';
|
|
2
|
-
import type { IActionsRecord } from 'zova-module-a-action';
|
|
3
|
-
|
|
4
|
-
import type { IOpenapiPermissions } from './permissions.js';
|
|
5
|
-
|
|
6
|
-
export type TypeOpenApiRestResourceScene = 'table' | 'row';
|
|
7
|
-
|
|
8
|
-
export type TypeOpenapiPermissions = IOpenapiPermissions | boolean;
|
|
9
|
-
|
|
10
|
-
export interface IOpenapiOptionsResourceMeta {
|
|
11
|
-
/**
|
|
12
|
-
* false: disallow
|
|
13
|
-
* true: public
|
|
14
|
-
* undefined: by api
|
|
15
|
-
* IOpenapiPermissions: specific
|
|
16
|
-
*/
|
|
17
|
-
permissions?: TypeOpenapiPermissions;
|
|
18
|
-
provider?: IOpenapiOptionsResourceMetaProvider;
|
|
19
|
-
form?: IOpenapiOptionsResourceMetaForm;
|
|
20
|
-
table?: IOpenapiOptionsResourceMetaTable;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IOpenapiOptionsResourceMetaForm {}
|
|
24
|
-
|
|
25
|
-
export interface IOpenapiOptionsResourceMetaTable {}
|
|
26
|
-
|
|
27
|
-
export interface IOpenapiOptionsResourceMetaProvider {
|
|
28
|
-
components?: IOpenapiOptionsResourceMetaProviderComponents;
|
|
29
|
-
actions?: IActionsRecord;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IOpenapiOptionsResourceMetaProviderComponents {
|
|
33
|
-
restPage?: TypeComponentRecordSelectorKeysStrict<'restPage'>;
|
|
34
|
-
restPageEntry?: TypeComponentRecordSelectorKeysStrict<'restPageEntry'>;
|
|
35
|
-
table?: TypeComponentRecordSelectorKeysStrict<'table'>;
|
|
36
|
-
form?: TypeComponentRecordSelectorKeysStrict<'form'>;
|
|
37
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ISelectOptions } from './select.js';
|
|
2
|
-
import type { ITableQuery } from './table.js';
|
|
3
|
-
|
|
4
|
-
export interface IResourcePickerOptions {
|
|
5
|
-
resource?: string;
|
|
6
|
-
actionPath?: string;
|
|
7
|
-
query?: ITableQuery;
|
|
8
|
-
selectOptions?: ISelectOptions;
|
|
9
|
-
relation?: string;
|
|
10
|
-
}
|
package/src/types/select.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface ISelectChipsOptions {
|
|
2
|
-
column?: boolean;
|
|
3
|
-
filter?: boolean;
|
|
4
|
-
selectedClass?: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface ISelectOptions {
|
|
8
|
-
mode?: 'default' | 'chips';
|
|
9
|
-
chipsOptions?: ISelectChipsOptions;
|
|
10
|
-
multiple?: boolean;
|
|
11
|
-
chips?: boolean;
|
|
12
|
-
items?: any[];
|
|
13
|
-
itemTitle?: string;
|
|
14
|
-
itemValue?: string;
|
|
15
|
-
itemProps?: string;
|
|
16
|
-
}
|
package/src/types/textarea.ts
DELETED
package/src/types/toggle.ts
DELETED