zova-module-a-layoutprofile 5.0.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/dist/index.js ADDED
@@ -0,0 +1,111 @@
1
+ import { BeanBase, BeanInfo, BeanScopeBase } from "zova";
2
+ import { BeanModelBase, Model } from "zova-module-a-model";
3
+ import { Api, ApiSchema, BeanApiBase } from "zova-module-a-api";
4
+ import { Scope } from "zova-module-a-bean";
5
+ //#region src/model/layoutprofile.ts
6
+ var _dec$3;
7
+ var _dec2$3;
8
+ var _class$3;
9
+ var ModelLayoutProfile = (_dec$3 = Model({ enableSelector: true }), _dec2$3 = BeanInfo({ module: "a-layoutprofile" }), _dec$3(_class$3 = _dec2$3(_class$3 = class ModelLayoutProfile extends BeanModelBase {
10
+ constructor(...args) {
11
+ super(...args);
12
+ this.layoutKey = void 0;
13
+ }
14
+ async __init__(layoutKey) {
15
+ if (!layoutKey) throw new Error("layout key not specified");
16
+ await super.__init__(layoutKey);
17
+ this.layoutKey = layoutKey;
18
+ }
19
+ load() {
20
+ if (this.$ssr.cookieDisabledOnServer || !this.$passport.isAuthenticated) return;
21
+ if (process.env.CLIENT && this.$ssr.profile === "public" && this.$ssr.isRuntimeSsrPreHydration) return;
22
+ return this.$useStateData({
23
+ queryKey: ["load"],
24
+ queryFn: async () => {
25
+ return await this.scope.api.layoutprofile.load({ query: { layoutKey: this.layoutKey } });
26
+ },
27
+ meta: { disableErrorEffect: true }
28
+ });
29
+ }
30
+ save() {
31
+ return this.$useMutationData({
32
+ mutationKey: ["save"],
33
+ mutationFn: async (profile) => {
34
+ return await this.scope.api.layoutprofile.save({
35
+ layoutKey: this.layoutKey,
36
+ profile
37
+ });
38
+ },
39
+ onSuccess: (profile) => {
40
+ this.$setQueryData(["load"], profile);
41
+ }
42
+ });
43
+ }
44
+ reset() {
45
+ return this.$useMutationData({
46
+ mutationKey: ["reset"],
47
+ mutationFn: async () => {
48
+ return await this.scope.api.layoutprofile.reset({ query: { layoutKey: this.layoutKey } });
49
+ },
50
+ onSuccess: async () => {
51
+ this.$setQueryData(["load"], void 0);
52
+ }
53
+ });
54
+ }
55
+ }) || _class$3) || _class$3);
56
+ //#endregion
57
+ //#region src/api/openapi/baseURL.ts
58
+ var OpenApiBaseURL = (sys) => {
59
+ return sys.util.getOpenApiBaseURL("OPENAPI_BASE_URL_A_LAYOUTPROFILE");
60
+ };
61
+ //#endregion
62
+ //#region src/api/layoutprofile.ts
63
+ var _dec$2;
64
+ var _dec2$2;
65
+ var _class$2;
66
+ /** Layoutprofile_load */
67
+ var ApiApiLayoutprofileloadPath = "/api/layoutprofile/load";
68
+ /** Layoutprofile_save */
69
+ var ApiApiLayoutprofilesavePath = "/api/layoutprofile/save";
70
+ /** Layoutprofile_reset */
71
+ var ApiApiLayoutprofileresetPath = "/api/layoutprofile/reset";
72
+ var ApiLayoutprofile = (_dec$2 = Api(), _dec2$2 = BeanInfo({ module: "a-layoutprofile" }), _dec$2(_class$2 = _dec2$2(_class$2 = class ApiLayoutprofile extends BeanApiBase {
73
+ load(options) {
74
+ return this.$fetch.get("/api/layoutprofile/load", this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
75
+ }
76
+ save(body, options) {
77
+ return this.$fetch.post("/api/layoutprofile/save", body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
78
+ }
79
+ reset(options) {
80
+ return this.$fetch.delete("/api/layoutprofile/reset", this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
81
+ }
82
+ }) || _class$2) || _class$2);
83
+ //#endregion
84
+ //#region src/apiSchema/layoutprofile.ts
85
+ var _dec$1;
86
+ var _dec2$1;
87
+ var _class$1;
88
+ var ApiSchemaLayoutprofile = (_dec$1 = ApiSchema(), _dec2$1 = BeanInfo({ module: "a-layoutprofile" }), _dec$1(_class$1 = _dec2$1(_class$1 = class ApiSchemaLayoutprofile extends BeanBase {
89
+ load(options) {
90
+ return this.$sdk.createApiSchemas("/api/layoutprofile/load", "get", options);
91
+ }
92
+ save(options) {
93
+ return this.$sdk.createApiSchemas("/api/layoutprofile/save", "post", options);
94
+ }
95
+ reset(options) {
96
+ return this.$sdk.createApiSchemas("/api/layoutprofile/reset", "delete", options);
97
+ }
98
+ }) || _class$1) || _class$1);
99
+ //#endregion
100
+ //#region src/.metadata/index.ts
101
+ /** apiSchema: end */
102
+ /** scope: begin */
103
+ var _dec;
104
+ var _dec2;
105
+ var _class;
106
+ var ScopeModuleALayoutprofile = (_dec = Scope(), _dec2 = BeanInfo({ module: "a-layoutprofile" }), _dec(_class = _dec2(_class = class ScopeModuleALayoutprofile extends BeanScopeBase {}) || _class) || _class);
107
+ /** scope: end */
108
+ //#endregion
109
+ export { ApiApiLayoutprofileloadPath, ApiApiLayoutprofileresetPath, ApiApiLayoutprofilesavePath, ApiLayoutprofile, ApiSchemaLayoutprofile, ModelLayoutProfile, OpenApiBaseURL, ScopeModuleALayoutprofile };
110
+
111
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/model/layoutprofile.ts","../src/api/openapi/baseURL.ts","../src/api/layoutprofile.ts","../src/apiSchema/layoutprofile.ts","../src/.metadata/index.ts"],"sourcesContent":["var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanModelBase, Model } from 'zova-module-a-model';\nexport let ModelLayoutProfile = (_dec = Model({\n enableSelector: true\n}), _dec2 = __z_BeanInfo({\n module: \"a-layoutprofile\"\n}), _dec(_class = _dec2(_class = class ModelLayoutProfile extends BeanModelBase {\n constructor(...args) {\n super(...args);\n this.layoutKey = void 0;\n }\n async __init__(layoutKey) {\n if (!layoutKey) throw new Error('layout key not specified');\n await super.__init__(layoutKey);\n this.layoutKey = layoutKey;\n }\n load() {\n if (this.$ssr.cookieDisabledOnServer || !this.$passport.isAuthenticated) return;\n if (process.env.CLIENT && this.$ssr.profile === 'public' && this.$ssr.isRuntimeSsrPreHydration) return;\n return this.$useStateData({\n queryKey: ['load'],\n queryFn: async () => {\n return await this.scope.api.layoutprofile.load({\n query: {\n layoutKey: this.layoutKey\n }\n });\n },\n meta: {\n disableErrorEffect: true\n }\n });\n }\n save() {\n return this.$useMutationData({\n mutationKey: ['save'],\n mutationFn: async profile => {\n return await this.scope.api.layoutprofile.save({\n layoutKey: this.layoutKey,\n profile\n });\n },\n onSuccess: profile => {\n this.$setQueryData(['load'], profile);\n }\n });\n }\n reset() {\n return this.$useMutationData({\n mutationKey: ['reset'],\n mutationFn: async () => {\n return await this.scope.api.layoutprofile.reset({\n query: {\n layoutKey: this.layoutKey\n }\n });\n },\n onSuccess: async () => {\n this.$setQueryData(['load'], undefined);\n }\n });\n }\n}) || _class) || _class);","export const OpenApiBaseURL = sys => {\n return sys.util.getOpenApiBaseURL('OPENAPI_BASE_URL_A_LAYOUTPROFILE');\n};","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { Api, BeanApiBase } from 'zova-module-a-api';\nimport { OpenApiBaseURL } from './openapi/index.js';\n\n/** Layoutprofile_load */\nexport const ApiApiLayoutprofileloadPath = '/api/layoutprofile/load';\n/** Layoutprofile_save */\nexport const ApiApiLayoutprofilesavePath = '/api/layoutprofile/save';\n/** Layoutprofile_reset */\nexport const ApiApiLayoutprofileresetPath = '/api/layoutprofile/reset';\nexport let ApiLayoutprofile = (_dec = Api(), _dec2 = __z_BeanInfo({\n module: \"a-layoutprofile\"\n}), _dec(_class = _dec2(_class = class ApiLayoutprofile extends BeanApiBase {\n load(options) {\n return this.$fetch.get(ApiApiLayoutprofileloadPath, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));\n }\n save(body, options) {\n return this.$fetch.post(ApiApiLayoutprofilesavePath, body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));\n }\n reset(options) {\n return this.$fetch.delete(ApiApiLayoutprofileresetPath, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));\n }\n}) || _class) || _class);","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase } from 'zova';\nimport { ApiSchema } from 'zova-module-a-api';\nimport { ApiApiLayoutprofileloadPath, ApiApiLayoutprofilesavePath, ApiApiLayoutprofileresetPath } from '../api/layoutprofile.js';\nexport let ApiSchemaLayoutprofile = (_dec = ApiSchema(), _dec2 = __z_BeanInfo({\n module: \"a-layoutprofile\"\n}), _dec(_class = _dec2(_class = class ApiSchemaLayoutprofile extends BeanBase {\n load(options) {\n return this.$sdk.createApiSchemas(ApiApiLayoutprofileloadPath, 'get', options);\n }\n save(options) {\n return this.$sdk.createApiSchemas(ApiApiLayoutprofilesavePath, 'post', options);\n }\n reset(options) {\n return this.$sdk.createApiSchemas(ApiApiLayoutprofileresetPath, 'delete', options);\n }\n}) || _class) || _class);","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** model: begin */\nexport * from '../model/layoutprofile.js';\nimport 'zova-module-a-model';\n/** model: end */\n/** model: begin */\n\nimport 'zova';\n/** model: end */\n/** api: begin */\nexport * from '../api/layoutprofile.js';\nimport 'zova';\n\n/** api: end */\n/** api: begin */\n\n/** api: end */\n/** api: begin */\n\nimport 'zova';\n/** api: end */\n/** openapi: begin */\nexport * from '../api/openapi/index.js';\n/** openapi: end */\n/** apiSchema: begin */\nexport * from '../apiSchema/layoutprofile.js';\nimport 'zova';\n\n/** apiSchema: end */\n/** apiSchema: begin */\n\n/** apiSchema: end */\n/** apiSchema: begin */\n\nimport 'zova';\n/** apiSchema: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleALayoutprofile = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-layoutprofile\"\n}), _dec(_class = _dec2(_class = class ScopeModuleALayoutprofile extends BeanScopeBase {}) || _class) || _class);\nimport 'zova';\n\n/** scope: end */"],"mappings":";;;;;AAAA,IA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AAO,IAAA;AAyCjB,IAAW,6BAA6B,OAAO,MAAM,GAAG,QAAQ,SAAa,EAC3E,QAAQ,kBACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,kCAAkC,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK"}
@@ -0,0 +1,37 @@
1
+ import type { IDecoratorModelOptions } from 'zova-module-a-model';
2
+ import { BeanModelBase } from 'zova-module-a-model';
3
+ export interface IModelOptionsLayoutProfile extends IDecoratorModelOptions {
4
+ enableSelector: true;
5
+ }
6
+ export declare class ModelLayoutProfile extends BeanModelBase {
7
+ layoutKey: string;
8
+ protected __init__(layoutKey: string): Promise<void>;
9
+ load(): import("zova-module-a-model").ModelUseQueryReturnType<{
10
+ version: 1;
11
+ schemaFingerprint?: string | undefined;
12
+ columns: {
13
+ key: string;
14
+ visible: boolean;
15
+ width: "auto" | number;
16
+ }[];
17
+ } | undefined, Error> | undefined;
18
+ save(): import("vue").UnwrapNestedRefs<import("@tanstack/vue-query").UseMutationReturnType<{
19
+ version: 1;
20
+ schemaFingerprint?: string | undefined;
21
+ columns: {
22
+ key: string;
23
+ visible: boolean;
24
+ width: "auto" | number;
25
+ }[];
26
+ }, Error, {
27
+ version: 1;
28
+ schemaFingerprint?: string | undefined;
29
+ columns: {
30
+ key: string;
31
+ visible: boolean;
32
+ width: "auto" | number;
33
+ }[];
34
+ }, unknown>>;
35
+ reset(): import("vue").UnwrapNestedRefs<import("@tanstack/vue-query").UseMutationReturnType<unknown, Error, void, unknown>>;
36
+ }
37
+ //# sourceMappingURL=layoutprofile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layoutprofile.d.ts","sourceRoot":"","sources":["../../src/model/layoutprofile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,aAAa,EAAS,MAAM,qBAAqB,CAAC;AAS3D,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,cAAc,EAAE,IAAI,CAAC;CACtB;AAED,qBAGa,kBAAmB,SAAQ,aAAa;IACnD,SAAS,EAAE,MAAM,CAAC;cAEF,QAAQ,CAAC,SAAS,EAAE,MAAM;IAM1C,IAAI;;;;;;;;;IAiBJ,IAAI;;;;;;;;;;;;;;;;;IAkBJ,KAAK;CAaN"}
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "zova-module-a-layoutprofile",
3
+ "version": "5.0.0",
4
+ "description": "",
5
+ "keywords": [
6
+ "Zova Module"
7
+ ],
8
+ "author": "",
9
+ "files": [
10
+ "mock",
11
+ "dist",
12
+ "src",
13
+ "icons",
14
+ "assets",
15
+ "cli"
16
+ ],
17
+ "type": "module",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ },
23
+ "./*": "./*"
24
+ },
25
+ "dependencies": {},
26
+ "title": "a-layoutprofile",
27
+ "scripts": {
28
+ "clean": "rimraf dist tsconfig.build.tsbuildinfo",
29
+ "tsc:publish": "npm run clean && node ../../../../../packages-cli/cli/src/bin/zova.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json"
30
+ }
31
+ }
@@ -0,0 +1,140 @@
1
+ // eslint-disable
2
+ /** model: begin */
3
+ export * from '../model/layoutprofile.js';
4
+ import { IModelOptionsLayoutProfile } from '../model/layoutprofile.js';
5
+ import 'zova-module-a-model';
6
+ declare module 'zova-module-a-model' {
7
+
8
+ export interface IModelRecord {
9
+ 'a-layoutprofile:layoutProfile': IModelOptionsLayoutProfile;
10
+ }
11
+
12
+
13
+ }
14
+ declare module 'zova-module-a-layoutprofile' {
15
+
16
+ export interface ModelLayoutProfile {
17
+ /** @internal */
18
+ get scope(): ScopeModuleALayoutprofile;
19
+ }
20
+
21
+ export interface ModelLayoutProfile {
22
+ get $beanFullName(): 'a-layoutprofile.model.layoutProfile';
23
+ get $onionName(): 'a-layoutprofile:layoutProfile';
24
+ get $onionOptions(): IModelOptionsLayoutProfile;
25
+ }
26
+ }
27
+ /** model: end */
28
+ /** model: begin */
29
+ import type { ModelLayoutProfile } from '../model/layoutprofile.js';
30
+ import 'zova';
31
+ declare module 'zova' {
32
+ export interface IBeanRecordGeneral {
33
+ 'a-layoutprofile.model.layoutProfile': ModelLayoutProfile;
34
+ }
35
+ }
36
+ /** model: end */
37
+ /** api: begin */
38
+ export * from '../api/layoutprofile.js';
39
+
40
+ import 'zova';
41
+ declare module 'zova' {
42
+
43
+
44
+ }
45
+ declare module 'zova-module-a-layoutprofile' {
46
+
47
+ export interface ApiLayoutprofile {
48
+ /** @internal */
49
+ get scope(): ScopeModuleALayoutprofile;
50
+ }
51
+
52
+ export interface ApiLayoutprofile {
53
+ get $beanFullName(): 'a-layoutprofile.api.layoutprofile';
54
+ get $onionName(): 'a-layoutprofile:layoutprofile';
55
+
56
+ }
57
+ }
58
+ /** api: end */
59
+ /** api: begin */
60
+ import type { ApiLayoutprofile } from '../api/layoutprofile.js';
61
+ export interface IModuleApi {
62
+ 'layoutprofile': ApiLayoutprofile;
63
+ }
64
+ /** api: end */
65
+ /** api: begin */
66
+
67
+ import 'zova';
68
+ declare module 'zova' {
69
+ export interface IBeanRecordGeneral {
70
+ 'a-layoutprofile.api.layoutprofile': ApiLayoutprofile;
71
+ }
72
+ }
73
+ /** api: end */
74
+ /** openapi: begin */
75
+ export * from '../api/openapi/index.js';
76
+ /** openapi: end */
77
+ /** apiSchema: begin */
78
+ export * from '../apiSchema/layoutprofile.js';
79
+
80
+ import 'zova';
81
+ declare module 'zova' {
82
+
83
+
84
+ }
85
+ declare module 'zova-module-a-layoutprofile' {
86
+
87
+ export interface ApiSchemaLayoutprofile {
88
+ /** @internal */
89
+ get scope(): ScopeModuleALayoutprofile;
90
+ }
91
+
92
+ export interface ApiSchemaLayoutprofile {
93
+ get $beanFullName(): 'a-layoutprofile.apiSchema.layoutprofile';
94
+ get $onionName(): 'a-layoutprofile:layoutprofile';
95
+
96
+ }
97
+ }
98
+ /** apiSchema: end */
99
+ /** apiSchema: begin */
100
+ import type { ApiSchemaLayoutprofile } from '../apiSchema/layoutprofile.js';
101
+ export interface IModuleApiSchema {
102
+ 'layoutprofile': ApiSchemaLayoutprofile;
103
+ }
104
+ /** apiSchema: end */
105
+ /** apiSchema: begin */
106
+
107
+ import 'zova';
108
+ declare module 'zova' {
109
+ export interface IBeanRecordGeneral {
110
+ 'a-layoutprofile.apiSchema.layoutprofile': ApiSchemaLayoutprofile;
111
+ }
112
+ }
113
+ /** apiSchema: end */
114
+ /** scope: begin */
115
+ import { BeanScopeBase, type BeanScopeUtil } from 'zova';
116
+ import { Scope } from 'zova-module-a-bean';
117
+
118
+ @Scope()
119
+ export class ScopeModuleALayoutprofile extends BeanScopeBase {}
120
+
121
+ export interface ScopeModuleALayoutprofile {
122
+ util: BeanScopeUtil;
123
+ api: IModuleApi;
124
+ apiSchema: IModuleApiSchema;
125
+ }
126
+
127
+ import 'zova';
128
+ declare module 'zova' {
129
+ export interface IBeanScopeRecord {
130
+ 'a-layoutprofile': ScopeModuleALayoutprofile;
131
+ }
132
+
133
+
134
+
135
+
136
+
137
+
138
+ }
139
+
140
+ /** scope: end */
@@ -0,0 +1,2 @@
1
+ export const __ThisModule__ = 'a-layoutprofile';
2
+ export { ScopeModuleALayoutprofile as ScopeModule } from './index.js';
@@ -0,0 +1,67 @@
1
+ import type { IApiActionOptions } from 'zova-module-a-api';
2
+
3
+ import { Api, BeanApiBase } from 'zova-module-a-api';
4
+
5
+ import type { components, paths } from './openapi/index.js';
6
+
7
+ import { OpenApiBaseURL } from './openapi/index.js';
8
+
9
+ /** Layoutprofile_load */
10
+ export const ApiApiLayoutprofileloadPath = '/api/layoutprofile/load';
11
+ export type ApiApiLayoutprofileloadPath = '/api/layoutprofile/load';
12
+ export type ApiApiLayoutprofileloadMethod = 'get';
13
+ export type ApiApiLayoutprofileloadRequestQuery =
14
+ paths[ApiApiLayoutprofileloadPath][ApiApiLayoutprofileloadMethod]['parameters']['query'];
15
+ export type ApiApiLayoutprofileloadResponseBody =
16
+ paths[ApiApiLayoutprofileloadPath][ApiApiLayoutprofileloadMethod]['responses']['200']['content']['application/json']['data'];
17
+
18
+ /** Layoutprofile_save */
19
+ export const ApiApiLayoutprofilesavePath = '/api/layoutprofile/save';
20
+ export type ApiApiLayoutprofilesavePath = '/api/layoutprofile/save';
21
+ export type ApiApiLayoutprofilesaveMethod = 'post';
22
+ export type ApiApiLayoutprofilesaveRequestBody =
23
+ components['schemas']['a-layoutprofile.dto.layoutProfileSave'];
24
+ export type ApiApiLayoutprofilesaveResponseBody =
25
+ paths[ApiApiLayoutprofilesavePath][ApiApiLayoutprofilesaveMethod]['responses']['200']['content']['application/json']['data'];
26
+
27
+ /** Layoutprofile_reset */
28
+ export const ApiApiLayoutprofileresetPath = '/api/layoutprofile/reset';
29
+ export type ApiApiLayoutprofileresetPath = '/api/layoutprofile/reset';
30
+ export type ApiApiLayoutprofileresetMethod = 'delete';
31
+ export type ApiApiLayoutprofileresetRequestQuery =
32
+ paths[ApiApiLayoutprofileresetPath][ApiApiLayoutprofileresetMethod]['parameters']['query'];
33
+ export type ApiApiLayoutprofileresetResponseBody =
34
+ paths[ApiApiLayoutprofileresetPath][ApiApiLayoutprofileresetMethod]['responses']['200']['content']['application/json']['data'];
35
+
36
+ @Api()
37
+ export class ApiLayoutprofile extends BeanApiBase {
38
+ load(
39
+ options: {
40
+ query: ApiApiLayoutprofileloadRequestQuery;
41
+ } & IApiActionOptions,
42
+ ) {
43
+ return this.$fetch.get<any, ApiApiLayoutprofileloadResponseBody>(
44
+ ApiApiLayoutprofileloadPath,
45
+ this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
46
+ );
47
+ }
48
+
49
+ save(body: ApiApiLayoutprofilesaveRequestBody, options?: IApiActionOptions) {
50
+ return this.$fetch.post<any, ApiApiLayoutprofilesaveResponseBody>(
51
+ ApiApiLayoutprofilesavePath,
52
+ body,
53
+ this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
54
+ );
55
+ }
56
+
57
+ reset(
58
+ options: {
59
+ query: ApiApiLayoutprofileresetRequestQuery;
60
+ } & IApiActionOptions,
61
+ ) {
62
+ return this.$fetch.delete<any, ApiApiLayoutprofileresetResponseBody>(
63
+ ApiApiLayoutprofileresetPath,
64
+ this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
65
+ );
66
+ }
67
+ }
@@ -0,0 +1,5 @@
1
+ import type { ZovaSys } from 'zova';
2
+
3
+ export const OpenApiBaseURL = (sys: ZovaSys) => {
4
+ return sys.util.getOpenApiBaseURL('OPENAPI_BASE_URL_A_LAYOUTPROFILE');
5
+ };
@@ -0,0 +1,3 @@
1
+ export * from './baseURL.js';
2
+ export * from './schemas.js';
3
+ export * from './types.js';