@sfxcode/nuxt-mongocamp-server 0.8.8 → 0.9.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/module.json +1 -1
- package/dist/module.mjs +466 -11
- package/dist/runtime/api/apis/AdminApi.d.ts +26 -26
- package/dist/runtime/api/apis/AdminApi.mjs +145 -49
- package/dist/runtime/api/apis/ApplicationApi.d.ts +10 -50
- package/dist/runtime/api/apis/ApplicationApi.mjs +47 -128
- package/dist/runtime/api/apis/AuthApi.d.ts +18 -18
- package/dist/runtime/api/apis/AuthApi.mjs +93 -29
- package/dist/runtime/api/apis/BucketApi.d.ts +10 -10
- package/dist/runtime/api/apis/BucketApi.mjs +49 -17
- package/dist/runtime/api/apis/CollectionApi.d.ts +22 -22
- package/dist/runtime/api/apis/CollectionApi.mjs +121 -41
- package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -12
- package/dist/runtime/api/apis/DatabaseApi.mjs +61 -21
- package/dist/runtime/api/apis/DocumentApi.d.ts +22 -22
- package/dist/runtime/api/apis/DocumentApi.mjs +121 -41
- package/dist/runtime/api/apis/FileApi.d.ts +16 -16
- package/dist/runtime/api/apis/FileApi.mjs +85 -29
- package/dist/runtime/api/apis/IndexApi.d.ts +18 -18
- package/dist/runtime/api/apis/IndexApi.mjs +97 -33
- package/dist/runtime/api/apis/InformationApi.d.ts +4 -4
- package/dist/runtime/api/apis/InformationApi.mjs +9 -1
- package/dist/runtime/api/apis/JobsApi.d.ts +14 -14
- package/dist/runtime/api/apis/JobsApi.mjs +73 -25
- package/dist/runtime/api/models/BucketInformation.d.ts +5 -1
- package/dist/runtime/api/models/BucketInformation.mjs +8 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +5 -1
- package/dist/runtime/api/models/CollectionStatus.mjs +17 -0
- package/dist/runtime/api/models/DatabaseInfo.d.ts +5 -1
- package/dist/runtime/api/models/DatabaseInfo.mjs +9 -0
- package/dist/runtime/api/models/DeleteResponse.d.ts +5 -1
- package/dist/runtime/api/models/DeleteResponse.mjs +6 -0
- package/dist/runtime/api/models/ErrorDescription.d.ts +5 -1
- package/dist/runtime/api/models/ErrorDescription.mjs +7 -0
- package/dist/runtime/api/models/FileInformation.d.ts +5 -1
- package/dist/runtime/api/models/FileInformation.mjs +10 -0
- package/dist/runtime/api/models/Grant.d.ts +5 -1
- package/dist/runtime/api/models/Grant.mjs +9 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +6 -2
- package/dist/runtime/api/models/IndexCreateRequest.mjs +6 -1
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +5 -1
- package/dist/runtime/api/models/IndexCreateResponse.mjs +5 -0
- package/dist/runtime/api/models/IndexDropResponse.d.ts +5 -1
- package/dist/runtime/api/models/IndexDropResponse.mjs +5 -0
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +5 -1
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +4 -0
- package/dist/runtime/api/models/InsertResponse.d.ts +5 -1
- package/dist/runtime/api/models/InsertResponse.mjs +5 -0
- package/dist/runtime/api/models/JobConfig.d.ts +5 -1
- package/dist/runtime/api/models/JobConfig.mjs +10 -0
- package/dist/runtime/api/models/JobInformation.d.ts +5 -1
- package/dist/runtime/api/models/JobInformation.mjs +10 -0
- package/dist/runtime/api/models/JsonSchema.d.ts +6 -2
- package/dist/runtime/api/models/JsonSchema.mjs +8 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +5 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +8 -0
- package/dist/runtime/api/models/JsonValueAny.d.ts +5 -1
- package/dist/runtime/api/models/JsonValueAny.mjs +5 -0
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +5 -1
- package/dist/runtime/api/models/JsonValueBoolean.mjs +5 -0
- package/dist/runtime/api/models/JsonValueString.d.ts +5 -1
- package/dist/runtime/api/models/JsonValueString.mjs +5 -0
- package/dist/runtime/api/models/Login.d.ts +5 -1
- package/dist/runtime/api/models/Login.mjs +6 -0
- package/dist/runtime/api/models/LoginResult.d.ts +6 -2
- package/dist/runtime/api/models/LoginResult.mjs +8 -1
- package/dist/runtime/api/models/Metric.mjs +1 -1
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +6 -2
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +6 -1
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +5 -1
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +9 -0
- package/dist/runtime/api/models/MongoFindRequest.d.ts +5 -1
- package/dist/runtime/api/models/MongoFindRequest.mjs +7 -0
- package/dist/runtime/api/models/MongoIndex.d.ts +5 -1
- package/dist/runtime/api/models/MongoIndex.mjs +15 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +5 -1
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +5 -0
- package/dist/runtime/api/models/PipelineStage.d.ts +5 -1
- package/dist/runtime/api/models/PipelineStage.mjs +6 -0
- package/dist/runtime/api/models/Role.d.ts +6 -2
- package/dist/runtime/api/models/Role.mjs +7 -1
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +6 -2
- package/dist/runtime/api/models/SchemaAnalysis.mjs +8 -1
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +6 -2
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +9 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +5 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +7 -0
- package/dist/runtime/api/models/SettingsResponse.d.ts +5 -1
- package/dist/runtime/api/models/SettingsResponse.mjs +5 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +5 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +4 -0
- package/dist/runtime/api/models/UpdateRequest.d.ts +5 -1
- package/dist/runtime/api/models/UpdateRequest.mjs +6 -0
- package/dist/runtime/api/models/UpdateResponse.d.ts +5 -1
- package/dist/runtime/api/models/UpdateResponse.mjs +7 -0
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +6 -2
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +6 -1
- package/dist/runtime/api/models/UserInformation.d.ts +5 -1
- package/dist/runtime/api/models/UserInformation.mjs +6 -0
- package/dist/runtime/api/models/UserProfile.d.ts +6 -2
- package/dist/runtime/api/models/UserProfile.mjs +7 -1
- package/dist/runtime/api/models/Version.d.ts +5 -1
- package/dist/runtime/api/models/Version.mjs +7 -0
- package/dist/runtime/api/models/index.d.ts +0 -2
- package/dist/runtime/api/models/index.mjs +0 -2
- package/dist/runtime/api/runtime.d.ts +71 -29
- package/dist/runtime/api/runtime.mjs +154 -72
- package/dist/runtime/composables/mongocampApi.mjs +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,53 @@
|
|
|
1
1
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export class Configuration {
|
|
3
|
+
constructor(configuration = {}) {
|
|
4
|
+
this.configuration = configuration;
|
|
5
|
+
}
|
|
6
|
+
set config(configuration) {
|
|
7
|
+
this.configuration = configuration;
|
|
8
|
+
}
|
|
9
|
+
get basePath() {
|
|
10
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
11
|
+
}
|
|
12
|
+
get fetchApi() {
|
|
13
|
+
return this.configuration.fetchApi;
|
|
14
|
+
}
|
|
15
|
+
get middleware() {
|
|
16
|
+
return this.configuration.middleware || [];
|
|
17
|
+
}
|
|
18
|
+
get queryParamsStringify() {
|
|
19
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
20
|
+
}
|
|
21
|
+
get username() {
|
|
22
|
+
return this.configuration.username;
|
|
23
|
+
}
|
|
24
|
+
get password() {
|
|
25
|
+
return this.configuration.password;
|
|
26
|
+
}
|
|
27
|
+
get apiKey() {
|
|
28
|
+
const apiKey = this.configuration.apiKey;
|
|
29
|
+
if (apiKey) {
|
|
30
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
31
|
+
}
|
|
32
|
+
return void 0;
|
|
33
|
+
}
|
|
34
|
+
get accessToken() {
|
|
35
|
+
const accessToken = this.configuration.accessToken;
|
|
36
|
+
if (accessToken) {
|
|
37
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
38
|
+
}
|
|
39
|
+
return void 0;
|
|
40
|
+
}
|
|
41
|
+
get headers() {
|
|
42
|
+
return this.configuration.headers;
|
|
43
|
+
}
|
|
44
|
+
get credentials() {
|
|
45
|
+
return this.configuration.credentials;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export const DefaultConfig = new Configuration();
|
|
49
|
+
const _BaseAPI = class {
|
|
50
|
+
constructor(configuration = DefaultConfig) {
|
|
5
51
|
this.configuration = configuration;
|
|
6
52
|
this.fetchApi = async (url, init) => {
|
|
7
53
|
let fetchParams = { url, init };
|
|
@@ -13,7 +59,29 @@ export class BaseAPI {
|
|
|
13
59
|
}) || fetchParams;
|
|
14
60
|
}
|
|
15
61
|
}
|
|
16
|
-
let response =
|
|
62
|
+
let response = void 0;
|
|
63
|
+
try {
|
|
64
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
for (const middleware of this.middleware) {
|
|
67
|
+
if (middleware.onError) {
|
|
68
|
+
response = await middleware.onError({
|
|
69
|
+
fetch: this.fetchApi,
|
|
70
|
+
url: fetchParams.url,
|
|
71
|
+
init: fetchParams.init,
|
|
72
|
+
error: e,
|
|
73
|
+
response: response ? response.clone() : void 0
|
|
74
|
+
}) || response;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (response === void 0) {
|
|
78
|
+
if (e instanceof Error) {
|
|
79
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
80
|
+
} else {
|
|
81
|
+
throw e;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
17
85
|
for (const middleware of this.middleware) {
|
|
18
86
|
if (middleware.post) {
|
|
19
87
|
response = await middleware.post({
|
|
@@ -41,38 +109,91 @@ export class BaseAPI {
|
|
|
41
109
|
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
42
110
|
return this.withMiddleware(...middlewares);
|
|
43
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Check if the given MIME is a JSON MIME.
|
|
114
|
+
* JSON MIME examples:
|
|
115
|
+
* application/json
|
|
116
|
+
* application/json; charset=UTF8
|
|
117
|
+
* APPLICATION/JSON
|
|
118
|
+
* application/vnd.company+json
|
|
119
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
120
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
121
|
+
*/
|
|
122
|
+
isJsonMime(mime) {
|
|
123
|
+
if (!mime) {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
return _BaseAPI.jsonRegex.test(mime);
|
|
127
|
+
}
|
|
44
128
|
async request(context, initOverrides) {
|
|
45
|
-
const { url, init } = this.createFetchParams(context, initOverrides);
|
|
129
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
46
130
|
const response = await this.fetchApi(url, init);
|
|
47
|
-
if (response.status >= 200 && response.status < 300) {
|
|
131
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
48
132
|
return response;
|
|
49
133
|
}
|
|
50
|
-
throw response;
|
|
134
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
51
135
|
}
|
|
52
|
-
createFetchParams(context, initOverrides) {
|
|
136
|
+
async createFetchParams(context, initOverrides) {
|
|
53
137
|
let url = this.configuration.basePath + context.path;
|
|
54
138
|
if (context.query !== void 0 && Object.keys(context.query).length !== 0) {
|
|
55
139
|
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
56
140
|
}
|
|
57
|
-
const body = typeof FormData !== "undefined" && context.body instanceof FormData || context.body instanceof URLSearchParams || isBlob(context.body) ? context.body : JSON.stringify(context.body);
|
|
58
141
|
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
59
|
-
|
|
142
|
+
Object.keys(headers).forEach((key) => headers[key] === void 0 ? delete headers[key] : {});
|
|
143
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
144
|
+
const initParams = {
|
|
60
145
|
method: context.method,
|
|
61
146
|
headers,
|
|
62
|
-
body,
|
|
63
|
-
credentials: this.configuration.credentials
|
|
64
|
-
|
|
147
|
+
body: context.body,
|
|
148
|
+
credentials: this.configuration.credentials
|
|
149
|
+
};
|
|
150
|
+
const overriddenInit = {
|
|
151
|
+
...initParams,
|
|
152
|
+
...await initOverrideFn({
|
|
153
|
+
init: initParams,
|
|
154
|
+
context
|
|
155
|
+
})
|
|
156
|
+
};
|
|
157
|
+
const init = {
|
|
158
|
+
...overriddenInit,
|
|
159
|
+
body: isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body) ? overriddenInit.body : JSON.stringify(overriddenInit.body)
|
|
65
160
|
};
|
|
66
161
|
return { url, init };
|
|
67
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
165
|
+
* and then shallow cloning data members.
|
|
166
|
+
*/
|
|
68
167
|
clone() {
|
|
69
168
|
const constructor = this.constructor;
|
|
70
169
|
const next = new constructor(this.configuration);
|
|
71
170
|
next.middleware = this.middleware.slice();
|
|
72
171
|
return next;
|
|
73
172
|
}
|
|
74
|
-
}
|
|
173
|
+
};
|
|
174
|
+
export let BaseAPI = _BaseAPI;
|
|
175
|
+
BaseAPI.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
|
|
75
176
|
;
|
|
177
|
+
function isBlob(value) {
|
|
178
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
179
|
+
}
|
|
180
|
+
function isFormData(value) {
|
|
181
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
182
|
+
}
|
|
183
|
+
export class ResponseError extends Error {
|
|
184
|
+
constructor(response, msg) {
|
|
185
|
+
super(msg);
|
|
186
|
+
this.response = response;
|
|
187
|
+
this.name = "ResponseError";
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
export class FetchError extends Error {
|
|
191
|
+
constructor(cause, msg) {
|
|
192
|
+
super(msg);
|
|
193
|
+
this.cause = cause;
|
|
194
|
+
this.name = "FetchError";
|
|
195
|
+
}
|
|
196
|
+
}
|
|
76
197
|
export class RequiredError extends Error {
|
|
77
198
|
constructor(field, msg) {
|
|
78
199
|
super(msg);
|
|
@@ -86,69 +207,30 @@ export const COLLECTION_FORMATS = {
|
|
|
86
207
|
tsv: " ",
|
|
87
208
|
pipes: "|"
|
|
88
209
|
};
|
|
89
|
-
export class Configuration {
|
|
90
|
-
constructor(configuration = {}) {
|
|
91
|
-
this.configuration = configuration;
|
|
92
|
-
}
|
|
93
|
-
get basePath() {
|
|
94
|
-
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
95
|
-
}
|
|
96
|
-
get fetchApi() {
|
|
97
|
-
return this.configuration.fetchApi;
|
|
98
|
-
}
|
|
99
|
-
get middleware() {
|
|
100
|
-
return this.configuration.middleware || [];
|
|
101
|
-
}
|
|
102
|
-
get queryParamsStringify() {
|
|
103
|
-
return this.configuration.queryParamsStringify || querystring;
|
|
104
|
-
}
|
|
105
|
-
get username() {
|
|
106
|
-
return this.configuration.username;
|
|
107
|
-
}
|
|
108
|
-
get password() {
|
|
109
|
-
return this.configuration.password;
|
|
110
|
-
}
|
|
111
|
-
get apiKey() {
|
|
112
|
-
const apiKey = this.configuration.apiKey;
|
|
113
|
-
if (apiKey) {
|
|
114
|
-
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
115
|
-
}
|
|
116
|
-
return void 0;
|
|
117
|
-
}
|
|
118
|
-
get accessToken() {
|
|
119
|
-
const accessToken = this.configuration.accessToken;
|
|
120
|
-
if (accessToken) {
|
|
121
|
-
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
122
|
-
}
|
|
123
|
-
return void 0;
|
|
124
|
-
}
|
|
125
|
-
get headers() {
|
|
126
|
-
return this.configuration.headers;
|
|
127
|
-
}
|
|
128
|
-
get credentials() {
|
|
129
|
-
return this.configuration.credentials;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
210
|
export function exists(json, key) {
|
|
133
211
|
const value = json[key];
|
|
134
212
|
return value !== null && value !== void 0;
|
|
135
213
|
}
|
|
136
214
|
export function querystring(params, prefix = "") {
|
|
137
|
-
return Object.keys(params).map((key) =>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(
|
|
151
|
-
}
|
|
215
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
216
|
+
}
|
|
217
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
218
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
219
|
+
if (value instanceof Array) {
|
|
220
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
221
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
222
|
+
}
|
|
223
|
+
if (value instanceof Set) {
|
|
224
|
+
const valueAsArray = Array.from(value);
|
|
225
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
226
|
+
}
|
|
227
|
+
if (value instanceof Date) {
|
|
228
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
229
|
+
}
|
|
230
|
+
if (value instanceof Object) {
|
|
231
|
+
return querystring(value, fullKey);
|
|
232
|
+
}
|
|
233
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
152
234
|
}
|
|
153
235
|
export function mapValues(data, fn) {
|
|
154
236
|
return Object.keys(data).reduce(
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
IndexApi,
|
|
12
12
|
InformationApi,
|
|
13
13
|
JobsApi
|
|
14
|
-
} from "../api";
|
|
14
|
+
} from "../api/index.mjs";
|
|
15
15
|
import { useMongocampUrl } from "./mongocampUrl.mjs";
|
|
16
16
|
import { useMongocampStorage } from "./mongocampStorage.mjs";
|
|
17
17
|
export function useMongocampApi() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"failOnWarn": false
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@nuxt/kit": "^3.
|
|
21
|
+
"@nuxt/kit": "^3.4.1",
|
|
22
22
|
"@vueuse/nuxt": "^9.13.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@iconify-json/mdi": "^1.1.50",
|
|
26
26
|
"@nuxtjs/eslint-config-typescript": "12.0.0",
|
|
27
|
-
"@nuxt/module-builder": "^0.
|
|
28
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
27
|
+
"@nuxt/module-builder": "^0.3.0",
|
|
28
|
+
"@openapitools/openapi-generator-cli": "^2.6.0",
|
|
29
29
|
"@types/node": "^18.15.11",
|
|
30
30
|
"@unocss/nuxt": "^0.51.4",
|
|
31
31
|
"defu": "^6.1.2",
|
|
32
32
|
"jiti": "^1.18.2",
|
|
33
|
-
"nuxt": "^3.
|
|
33
|
+
"nuxt": "^3.4.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "nuxi dev --port 3333 playground",
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
|
|
39
39
|
"lint:show": "eslint ./src/runtime",
|
|
40
40
|
"lint:fix": "eslint --fix ./src/runtime",
|
|
41
|
-
"api-codegen": "openapi-generator-cli generate -i
|
|
41
|
+
"api-codegen": "openapi-generator-cli generate -i http://173.249.2.248:30103/docs/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
|
|
42
42
|
}
|
|
43
43
|
}
|