vona-module-a-openapi 5.1.4 → 5.1.6
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/bean/bean.openapi.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/service/openapi.d.ts.map +1 -1
- package/dist/types/decorator.d.ts.map +1 -1
- package/dist/types/formMeta.d.ts +9 -0
- package/dist/types/formMeta.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -13
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/order.d.ts +8 -0
- package/dist/types/order.d.ts.map +1 -0
- package/dist/types/permissions.d.ts +6 -6
- package/dist/types/permissions.d.ts.map +1 -1
- package/dist/types/rest.d.ts +23 -60
- package/dist/types/rest.d.ts.map +1 -1
- package/dist/types/zovaJsx.d.ts +2 -0
- package/dist/types/zovaJsx.d.ts.map +1 -0
- package/package.json +6 -5
- package/src/bean/bean.openapi.ts +42 -11
- package/src/service/openapi.ts +114 -24
- package/src/types/decorator.ts +4 -1
- package/src/types/formMeta.ts +9 -0
- package/src/types/index.ts +3 -13
- package/src/types/order.ts +9 -0
- package/src/types/permissions.ts +6 -6
- package/src/types/rest.ts +32 -87
- package/src/types/zovaJsx.ts +6 -0
- package/dist/types/actions.d.ts +0 -18
- package/dist/types/actions.d.ts.map +0 -1
- package/dist/types/behavior.d.ts +0 -11
- package/dist/types/behavior.d.ts.map +0 -1
- package/dist/types/captcha.d.ts +0 -5
- package/dist/types/captcha.d.ts.map +0 -1
- package/dist/types/component.d.ts +0 -14
- package/dist/types/component.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/formProvider.d.ts +0 -19
- package/dist/types/formProvider.d.ts.map +0 -1
- package/dist/types/openapi.d.ts +0 -7
- package/dist/types/openapi.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 -11
- 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/tableProvider.d.ts +0 -9
- package/dist/types/tableProvider.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/actions.ts +0 -18
- package/src/types/behavior.ts +0 -11
- package/src/types/captcha.ts +0 -5
- package/src/types/component.ts +0 -14
- package/src/types/date.ts +0 -25
- package/src/types/formProvider.ts +0 -21
- package/src/types/openapi.ts +0 -7
- package/src/types/resourceMeta.ts +0 -38
- package/src/types/resourcePicker.ts +0 -11
- package/src/types/select.ts +0 -16
- package/src/types/tableProvider.ts +0 -10
- package/src/types/textarea.ts +0 -10
- package/src/types/toggle.ts +0 -3
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { IResourceRecord } from './resource.ts';
|
|
2
|
-
import type { ISelectOptions } from './select.ts';
|
|
3
|
-
import type { ITableQuery } from './table.ts';
|
|
4
|
-
export interface IResourcePickerOptions {
|
|
5
|
-
resource?: keyof IResourceRecord;
|
|
6
|
-
actionPath?: string;
|
|
7
|
-
query?: ITableQuery;
|
|
8
|
-
selectOptions?: ISelectOptions;
|
|
9
|
-
relation?: string;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=resourcePicker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resourcePicker.d.ts","sourceRoot":"","sources":["../../src/types/resourcePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,MAAM,eAAe,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/types/select.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface ISelectChipsOptions {
|
|
2
|
-
column?: boolean;
|
|
3
|
-
filter?: boolean;
|
|
4
|
-
selectedClass?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ISelectOptions {
|
|
7
|
-
mode?: 'default' | 'chips';
|
|
8
|
-
chipsOptions?: ISelectChipsOptions;
|
|
9
|
-
multiple?: boolean;
|
|
10
|
-
chips?: boolean;
|
|
11
|
-
items?: any[];
|
|
12
|
-
itemTitle?: string;
|
|
13
|
-
itemValue?: string;
|
|
14
|
-
itemProps?: string;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/types/select.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TypeTableCellRenderComponentProvider } from './rest.ts';
|
|
2
|
-
export interface ITableProviderComponents {
|
|
3
|
-
actionView?: TypeTableCellRenderComponentProvider;
|
|
4
|
-
currency?: TypeTableCellRenderComponentProvider;
|
|
5
|
-
}
|
|
6
|
-
export interface ITableProvider {
|
|
7
|
-
components?: ITableProviderComponents;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=tableProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableProvider.d.ts","sourceRoot":"","sources":["../../src/types/tableProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AAEtE,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,oCAAoC,CAAC;IAClD,QAAQ,CAAC,EAAE,oCAAoC,CAAC;CACjD;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,wBAAwB,CAAC;CACvC"}
|
package/dist/types/textarea.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface ITextareaOptions {
|
|
2
|
-
autoGrow?: boolean;
|
|
3
|
-
maxRows?: number;
|
|
4
|
-
maxHeight?: number;
|
|
5
|
-
noResize?: boolean;
|
|
6
|
-
rows?: number;
|
|
7
|
-
color?: string;
|
|
8
|
-
bgColor?: string;
|
|
9
|
-
counter?: string | number | true;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -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/actions.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface IResourceActionTableOptions {}
|
|
2
|
-
export interface IResourceActionRowOptions {}
|
|
3
|
-
|
|
4
|
-
export interface TypeResourceActionTableRecord {
|
|
5
|
-
create: IResourceActionTableOptions;
|
|
6
|
-
operationsTable: IResourceActionTableOptions;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface TypeResourceActionRowRecord {
|
|
10
|
-
view: IResourceActionRowOptions;
|
|
11
|
-
update: IResourceActionRowOptions;
|
|
12
|
-
delete: IResourceActionRowOptions;
|
|
13
|
-
operationsRow: IResourceActionRowOptions;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type TypeResourceActionRowRecordRender = {
|
|
17
|
-
[key in keyof TypeResourceActionRowRecord as `action${Capitalize<key>}`]: TypeResourceActionRowRecord[key];
|
|
18
|
-
};
|
package/src/types/behavior.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface IBehaviorRecord {}
|
|
2
|
-
|
|
3
|
-
export type TypeBehaviorRecordSelector<PREFIX extends string> = {
|
|
4
|
-
[K in keyof IBehaviorRecord as K extends `${string}:${PREFIX}${string}` ? K : never]: IBehaviorRecord[K];
|
|
5
|
-
};
|
|
6
|
-
export type TypeBehaviorRecordSelectorKeys<PREFIX extends string> = keyof TypeBehaviorRecordSelector<PREFIX>;
|
|
7
|
-
|
|
8
|
-
export type TypeBehaviorRecordSelectorStrict<PREFIX extends string> = {
|
|
9
|
-
[K in keyof IBehaviorRecord as K extends `${string}:${PREFIX}` ? K : never]: IBehaviorRecord[K];
|
|
10
|
-
};
|
|
11
|
-
export type TypeBehaviorRecordSelectorKeysStrict<PREFIX extends string> = keyof TypeBehaviorRecordSelectorStrict<PREFIX>;
|
package/src/types/captcha.ts
DELETED
package/src/types/component.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface IComponentRecord {}
|
|
2
|
-
export interface ITableCellComponentRecord {}
|
|
3
|
-
|
|
4
|
-
export type TypeComponentRecordSelector<PREFIX extends string> = {
|
|
5
|
-
[K in keyof IComponentRecord as K extends `${string}:${PREFIX}${string}` ? K : never]: IComponentRecord[K];
|
|
6
|
-
};
|
|
7
|
-
export type TypeComponentRecordSelectorKeys<PREFIX extends string> = keyof TypeComponentRecordSelector<PREFIX>;
|
|
8
|
-
|
|
9
|
-
export type TypeComponentRecordSelectorStrict<PREFIX extends string> = {
|
|
10
|
-
[K in keyof IComponentRecord as K extends `${string}:${PREFIX}` ? K : never]: IComponentRecord[K];
|
|
11
|
-
};
|
|
12
|
-
export type TypeComponentRecordSelectorKeysStrict<PREFIX extends string> = keyof TypeComponentRecordSelectorStrict<PREFIX>;
|
|
13
|
-
|
|
14
|
-
export type TypeComponentLayoutRecord = TypeComponentRecordSelector<'layout'>;
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { TypeBehaviorRecordSelectorKeys, TypeBehaviorRecordSelectorKeysStrict } from './behavior.ts';
|
|
2
|
-
import type { TypeComponentRecordSelectorKeysStrict } from './component.ts';
|
|
3
|
-
import type { TypeFormFieldRenderComponentProvider } from './rest.ts';
|
|
4
|
-
|
|
5
|
-
export interface IFormProviderBehaviors {
|
|
6
|
-
formField?: TypeBehaviorRecordSelectorKeysStrict<'formField'>;
|
|
7
|
-
formFieldModel?: TypeBehaviorRecordSelectorKeys<'formFieldModel'>;
|
|
8
|
-
formFieldLayout?: TypeBehaviorRecordSelectorKeys<'formFieldLayout'>;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface IFormProviderComponents {
|
|
12
|
-
formField?: TypeComponentRecordSelectorKeysStrict<'formField'>;
|
|
13
|
-
text?: TypeFormFieldRenderComponentProvider;
|
|
14
|
-
password?: TypeFormFieldRenderComponentProvider;
|
|
15
|
-
currency?: TypeFormFieldRenderComponentProvider;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface IFormProvider {
|
|
19
|
-
components?: IFormProviderComponents;
|
|
20
|
-
behaviors?: IFormProviderBehaviors;
|
|
21
|
-
}
|
package/src/types/openapi.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { IOpenapiPermissions, TypeComponentRecordSelectorKeysStrict, TypeRenderComponentJsx } from 'vona-module-a-openapi';
|
|
2
|
-
|
|
3
|
-
import type { IFormProvider } from './formProvider.ts';
|
|
4
|
-
import type { ITableProvider } from './tableProvider.ts';
|
|
5
|
-
|
|
6
|
-
export type TypeOpenapiPermissions = IOpenapiPermissions | boolean;
|
|
7
|
-
|
|
8
|
-
export interface IOpenapiOptionsResourceMeta {
|
|
9
|
-
/**
|
|
10
|
-
* false: disallow
|
|
11
|
-
* true: public
|
|
12
|
-
* undefined: by api
|
|
13
|
-
* IOpenapiPermissions: specific
|
|
14
|
-
*/
|
|
15
|
-
permissions?: TypeOpenapiPermissions;
|
|
16
|
-
provider?: IOpenapiOptionsResourceMetaProvider;
|
|
17
|
-
form?: IOpenapiOptionsResourceMetaForm;
|
|
18
|
-
table?: IOpenapiOptionsResourceMetaTable;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IOpenapiOptionsResourceMetaForm {
|
|
22
|
-
provider?: IFormProvider;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface IOpenapiOptionsResourceMetaTable {
|
|
26
|
-
provider?: ITableProvider;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface IOpenapiOptionsResourceMetaProvider {
|
|
30
|
-
components?: IOpenapiOptionsResourceMetaProviderComponents;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface IOpenapiOptionsResourceMetaProviderComponents {
|
|
34
|
-
restPage?: TypeComponentRecordSelectorKeysStrict<'restPage'> | TypeRenderComponentJsx;
|
|
35
|
-
restPageEntry?: TypeComponentRecordSelectorKeysStrict<'restPageEntry'> | TypeRenderComponentJsx;
|
|
36
|
-
table?: TypeComponentRecordSelectorKeysStrict<'table'>;
|
|
37
|
-
form?: TypeComponentRecordSelectorKeysStrict<'form'>;
|
|
38
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { IResourceRecord } from './resource.ts';
|
|
2
|
-
import type { ISelectOptions } from './select.ts';
|
|
3
|
-
import type { ITableQuery } from './table.ts';
|
|
4
|
-
|
|
5
|
-
export interface IResourcePickerOptions {
|
|
6
|
-
resource?: keyof IResourceRecord;
|
|
7
|
-
actionPath?: string;
|
|
8
|
-
query?: ITableQuery;
|
|
9
|
-
selectOptions?: ISelectOptions;
|
|
10
|
-
relation?: string;
|
|
11
|
-
}
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TypeTableCellRenderComponentProvider } from './rest.ts';
|
|
2
|
-
|
|
3
|
-
export interface ITableProviderComponents {
|
|
4
|
-
actionView?: TypeTableCellRenderComponentProvider;
|
|
5
|
-
currency?: TypeTableCellRenderComponentProvider;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ITableProvider {
|
|
9
|
-
components?: ITableProviderComponents;
|
|
10
|
-
}
|
package/src/types/textarea.ts
DELETED
package/src/types/toggle.ts
DELETED