@sfxcode/nuxt-mongocamp-server 0.8.7 → 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.
Files changed (112) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +470 -13
  3. package/dist/runtime/api/apis/AdminApi.d.ts +26 -26
  4. package/dist/runtime/api/apis/AdminApi.mjs +145 -49
  5. package/dist/runtime/api/apis/ApplicationApi.d.ts +10 -50
  6. package/dist/runtime/api/apis/ApplicationApi.mjs +47 -128
  7. package/dist/runtime/api/apis/AuthApi.d.ts +18 -18
  8. package/dist/runtime/api/apis/AuthApi.mjs +93 -29
  9. package/dist/runtime/api/apis/BucketApi.d.ts +10 -10
  10. package/dist/runtime/api/apis/BucketApi.mjs +49 -17
  11. package/dist/runtime/api/apis/CollectionApi.d.ts +22 -22
  12. package/dist/runtime/api/apis/CollectionApi.mjs +121 -41
  13. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -12
  14. package/dist/runtime/api/apis/DatabaseApi.mjs +61 -21
  15. package/dist/runtime/api/apis/DocumentApi.d.ts +22 -22
  16. package/dist/runtime/api/apis/DocumentApi.mjs +121 -41
  17. package/dist/runtime/api/apis/FileApi.d.ts +16 -16
  18. package/dist/runtime/api/apis/FileApi.mjs +85 -29
  19. package/dist/runtime/api/apis/IndexApi.d.ts +18 -18
  20. package/dist/runtime/api/apis/IndexApi.mjs +97 -33
  21. package/dist/runtime/api/apis/InformationApi.d.ts +4 -4
  22. package/dist/runtime/api/apis/InformationApi.mjs +9 -1
  23. package/dist/runtime/api/apis/JobsApi.d.ts +14 -14
  24. package/dist/runtime/api/apis/JobsApi.mjs +73 -25
  25. package/dist/runtime/api/models/BucketInformation.d.ts +5 -1
  26. package/dist/runtime/api/models/BucketInformation.mjs +8 -0
  27. package/dist/runtime/api/models/CollectionStatus.d.ts +5 -1
  28. package/dist/runtime/api/models/CollectionStatus.mjs +17 -0
  29. package/dist/runtime/api/models/DatabaseInfo.d.ts +5 -1
  30. package/dist/runtime/api/models/DatabaseInfo.mjs +9 -0
  31. package/dist/runtime/api/models/DeleteResponse.d.ts +5 -1
  32. package/dist/runtime/api/models/DeleteResponse.mjs +6 -0
  33. package/dist/runtime/api/models/ErrorDescription.d.ts +5 -1
  34. package/dist/runtime/api/models/ErrorDescription.mjs +7 -0
  35. package/dist/runtime/api/models/FileInformation.d.ts +5 -1
  36. package/dist/runtime/api/models/FileInformation.mjs +10 -0
  37. package/dist/runtime/api/models/Grant.d.ts +5 -1
  38. package/dist/runtime/api/models/Grant.mjs +9 -0
  39. package/dist/runtime/api/models/IndexCreateRequest.d.ts +6 -2
  40. package/dist/runtime/api/models/IndexCreateRequest.mjs +6 -1
  41. package/dist/runtime/api/models/IndexCreateResponse.d.ts +5 -1
  42. package/dist/runtime/api/models/IndexCreateResponse.mjs +5 -0
  43. package/dist/runtime/api/models/IndexDropResponse.d.ts +5 -1
  44. package/dist/runtime/api/models/IndexDropResponse.mjs +5 -0
  45. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +5 -1
  46. package/dist/runtime/api/models/IndexOptionsRequest.mjs +4 -0
  47. package/dist/runtime/api/models/InsertResponse.d.ts +5 -1
  48. package/dist/runtime/api/models/InsertResponse.mjs +5 -0
  49. package/dist/runtime/api/models/JobConfig.d.ts +5 -1
  50. package/dist/runtime/api/models/JobConfig.mjs +10 -0
  51. package/dist/runtime/api/models/JobInformation.d.ts +5 -1
  52. package/dist/runtime/api/models/JobInformation.mjs +10 -0
  53. package/dist/runtime/api/models/JsonSchema.d.ts +6 -2
  54. package/dist/runtime/api/models/JsonSchema.mjs +8 -1
  55. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +5 -1
  56. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +8 -0
  57. package/dist/runtime/api/models/JsonValueAny.d.ts +5 -1
  58. package/dist/runtime/api/models/JsonValueAny.mjs +5 -0
  59. package/dist/runtime/api/models/JsonValueBoolean.d.ts +5 -1
  60. package/dist/runtime/api/models/JsonValueBoolean.mjs +5 -0
  61. package/dist/runtime/api/models/JsonValueString.d.ts +5 -1
  62. package/dist/runtime/api/models/JsonValueString.mjs +5 -0
  63. package/dist/runtime/api/models/Login.d.ts +5 -1
  64. package/dist/runtime/api/models/Login.mjs +6 -0
  65. package/dist/runtime/api/models/LoginResult.d.ts +6 -2
  66. package/dist/runtime/api/models/LoginResult.mjs +8 -1
  67. package/dist/runtime/api/models/Metric.mjs +1 -1
  68. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +6 -2
  69. package/dist/runtime/api/models/MongoAggregateRequest.mjs +6 -1
  70. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +5 -1
  71. package/dist/runtime/api/models/MongoCampConfiguration.mjs +9 -0
  72. package/dist/runtime/api/models/MongoFindRequest.d.ts +5 -1
  73. package/dist/runtime/api/models/MongoFindRequest.mjs +7 -0
  74. package/dist/runtime/api/models/MongoIndex.d.ts +5 -1
  75. package/dist/runtime/api/models/MongoIndex.mjs +15 -0
  76. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +5 -1
  77. package/dist/runtime/api/models/PasswordUpdateRequest.mjs +5 -0
  78. package/dist/runtime/api/models/PipelineStage.d.ts +5 -1
  79. package/dist/runtime/api/models/PipelineStage.mjs +6 -0
  80. package/dist/runtime/api/models/Role.d.ts +6 -2
  81. package/dist/runtime/api/models/Role.mjs +7 -1
  82. package/dist/runtime/api/models/SchemaAnalysis.d.ts +6 -2
  83. package/dist/runtime/api/models/SchemaAnalysis.mjs +8 -1
  84. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +6 -2
  85. package/dist/runtime/api/models/SchemaAnalysisField.mjs +9 -1
  86. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +5 -1
  87. package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +7 -0
  88. package/dist/runtime/api/models/SettingsResponse.d.ts +5 -1
  89. package/dist/runtime/api/models/SettingsResponse.mjs +5 -0
  90. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +5 -1
  91. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +4 -0
  92. package/dist/runtime/api/models/UpdateRequest.d.ts +5 -1
  93. package/dist/runtime/api/models/UpdateRequest.mjs +6 -0
  94. package/dist/runtime/api/models/UpdateResponse.d.ts +5 -1
  95. package/dist/runtime/api/models/UpdateResponse.mjs +7 -0
  96. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +6 -2
  97. package/dist/runtime/api/models/UpdateRoleRequest.mjs +6 -1
  98. package/dist/runtime/api/models/UserInformation.d.ts +5 -1
  99. package/dist/runtime/api/models/UserInformation.mjs +6 -0
  100. package/dist/runtime/api/models/UserProfile.d.ts +6 -2
  101. package/dist/runtime/api/models/UserProfile.mjs +7 -1
  102. package/dist/runtime/api/models/Version.d.ts +5 -1
  103. package/dist/runtime/api/models/Version.mjs +7 -0
  104. package/dist/runtime/api/models/index.d.ts +0 -2
  105. package/dist/runtime/api/models/index.mjs +0 -2
  106. package/dist/runtime/api/runtime.d.ts +71 -29
  107. package/dist/runtime/api/runtime.mjs +154 -72
  108. package/dist/runtime/composables/mongocampApi.mjs +1 -1
  109. package/dist/runtime/composables/mongocampSearch.mjs +4 -4
  110. package/dist/runtime/composables/mongocampStorage.mjs +1 -2
  111. package/dist/runtime/composables/mongocampUrl.mjs +1 -1
  112. package/package.json +8 -8
@@ -1,7 +1,53 @@
1
1
  export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
2
- const isBlob = (value) => typeof Blob !== "undefined" && value instanceof Blob;
3
- export class BaseAPI {
4
- constructor(configuration = new Configuration()) {
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 = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
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
- const init = {
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
- ...initOverrides
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
- const fullKey = prefix + (prefix.length ? `[${key}]` : key);
139
- const value = params[key];
140
- if (value instanceof Array) {
141
- const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
142
- return `${encodeURIComponent(fullKey)}=${multiValue}`;
143
- }
144
- if (value instanceof Date) {
145
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
146
- }
147
- if (value instanceof Object) {
148
- return querystring(value, fullKey);
149
- }
150
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
151
- }).filter((part) => part.length > 0).join("&");
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() {
@@ -1,18 +1,18 @@
1
- import { useMongocampApi } from "./mongocampApi.mjs";
2
1
  import { useRuntimeConfig } from "#app";
2
+ import { useMongocampApi } from "./mongocampApi.mjs";
3
3
  export function useMongocampSearch() {
4
4
  const { documentApi } = useMongocampApi();
5
5
  const config = useRuntimeConfig();
6
6
  const mongoFindRequest = (filter = {}, sort = {}, projection = {}) => {
7
7
  return { filter, sort, projection };
8
8
  };
9
- const findRequest = (collection, searchParameter = mongoFindRequest(), rows = config.mongocamp?.paginationSize, actualPage = 1) => {
9
+ const findRequest = (collection, searchParameter = mongoFindRequest(), rows = config.public.mongocamp?.paginationSize, actualPage = 1) => {
10
10
  return { collectionName: collection, mongoFindRequest: searchParameter, rowsPerPage: rows, page: actualPage };
11
11
  };
12
- async function findAll(collectionName, page = 1, sort = void 0, projection = void 0, rowsPerPage = config.mongocamp?.paginationSize) {
12
+ function findAll(collectionName, page = 1, sort = void 0, projection = void 0, rowsPerPage = config.public.mongocamp?.paginationSize) {
13
13
  return documentApi.listDocuments({ collectionName, sort, projection, page, rowsPerPage });
14
14
  }
15
- async function findByField(collectionName, field, value, page = 1, sort = void 0, projection = void 0, rowsPerPage = config.mongocamp?.paginationSize) {
15
+ function findByField(collectionName, field, value, page = 1, sort = void 0, projection = void 0, rowsPerPage = config.public.mongocamp?.paginationSize) {
16
16
  const expression = `${field}: ${value}`;
17
17
  return documentApi.listDocuments({ collectionName, filter: expression, sort, projection, page, rowsPerPage });
18
18
  }
@@ -1,6 +1,5 @@
1
1
  import { useSessionStorage } from "@vueuse/core";
2
2
  export function useMongocampStorage() {
3
3
  const profile = { user: "", isAdmin: false };
4
- const state = useSessionStorage("mongocamp", { token: "", profile });
5
- return state;
4
+ return useSessionStorage("mongocamp", { token: "", profile });
6
5
  }
@@ -1,5 +1,5 @@
1
1
  import { useRuntimeConfig } from "#app";
2
2
  export function useMongocampUrl() {
3
3
  const config = useRuntimeConfig();
4
- return config.mongocamp?.url;
4
+ return config.public.mongocamp?.url;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfxcode/nuxt-mongocamp-server",
3
- "version": "0.8.7",
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.3.3",
21
+ "@nuxt/kit": "^3.4.1",
22
22
  "@vueuse/nuxt": "^9.13.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@antfu/eslint-config": "^0.38.4",
26
25
  "@iconify-json/mdi": "^1.1.50",
27
- "@nuxt/module-builder": "^0.2.1",
28
- "@openapitools/openapi-generator-cli": "^2.5.2",
26
+ "@nuxtjs/eslint-config-typescript": "12.0.0",
27
+ "@nuxt/module-builder": "^0.3.0",
28
+ "@openapitools/openapi-generator-cli": "^2.6.0",
29
29
  "@types/node": "^18.15.11",
30
- "@unocss/nuxt": "^0.50.6",
30
+ "@unocss/nuxt": "^0.51.4",
31
31
  "defu": "^6.1.2",
32
32
  "jiti": "^1.18.2",
33
- "nuxt": "^3.3.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 https://showcase.mongocamp.dev/docs/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
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
  }