@sfxcode/nuxt-mongocamp-server 0.7.0 → 0.7.2

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 (73) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +24 -21
  3. package/dist/runtime/api/apis/AdminApi.d.ts +10 -10
  4. package/dist/runtime/api/apis/AdminApi.mjs +6 -6
  5. package/dist/runtime/api/apis/ApplicationApi.d.ts +39 -2
  6. package/dist/runtime/api/apis/ApplicationApi.mjs +98 -0
  7. package/dist/runtime/api/apis/AuthApi.d.ts +12 -15
  8. package/dist/runtime/api/apis/AuthApi.mjs +10 -13
  9. package/dist/runtime/api/apis/BucketApi.d.ts +6 -6
  10. package/dist/runtime/api/apis/BucketApi.mjs +3 -3
  11. package/dist/runtime/api/apis/CollectionApi.d.ts +6 -6
  12. package/dist/runtime/api/apis/CollectionApi.mjs +3 -3
  13. package/dist/runtime/api/apis/DatabaseApi.d.ts +4 -4
  14. package/dist/runtime/api/apis/DatabaseApi.mjs +2 -2
  15. package/dist/runtime/api/apis/DocumentApi.d.ts +1 -1
  16. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  17. package/dist/runtime/api/apis/IndexApi.d.ts +1 -1
  18. package/dist/runtime/api/apis/InformationApi.d.ts +1 -1
  19. package/dist/runtime/api/apis/JobsApi.d.ts +6 -6
  20. package/dist/runtime/api/apis/JobsApi.mjs +3 -3
  21. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  22. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  23. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  24. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  25. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  26. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  27. package/dist/runtime/api/models/Grant.d.ts +1 -1
  28. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  29. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  30. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  31. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  32. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  33. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  34. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  35. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  36. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  37. package/dist/runtime/api/models/JsonValueAny.d.ts +27 -0
  38. package/dist/runtime/api/models/JsonValueAny.mjs +22 -0
  39. package/dist/runtime/api/models/JsonValueBoolean.d.ts +27 -0
  40. package/dist/runtime/api/models/JsonValueBoolean.mjs +22 -0
  41. package/dist/runtime/api/models/JsonValueString.d.ts +27 -0
  42. package/dist/runtime/api/models/JsonValueString.mjs +22 -0
  43. package/dist/runtime/api/models/Login.d.ts +1 -1
  44. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  45. package/dist/runtime/api/models/Measurement.d.ts +1 -1
  46. package/dist/runtime/api/models/Metric.d.ts +1 -1
  47. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  48. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +51 -0
  49. package/dist/runtime/api/models/MongoCampConfiguration.mjs +30 -0
  50. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  51. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  52. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  53. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  54. package/dist/runtime/api/models/Role.d.ts +1 -1
  55. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  56. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  57. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  58. package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
  59. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  60. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  61. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  62. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  63. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  64. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  65. package/dist/runtime/api/models/Version.d.ts +1 -1
  66. package/dist/runtime/api/models/index.d.ts +4 -2
  67. package/dist/runtime/api/models/index.mjs +4 -2
  68. package/dist/runtime/api/runtime.d.ts +8 -8
  69. package/dist/runtime/api/runtime.mjs +5 -2
  70. package/dist/runtime/composables/mongocampAuth.d.ts +2 -2
  71. package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
  72. package/dist/types.d.ts +1 -1
  73. package/package.json +11 -8
@@ -0,0 +1,51 @@
1
+ /**
2
+ * mongocamp-server
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.3.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface MongoCampConfiguration
16
+ */
17
+ export interface MongoCampConfiguration {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MongoCampConfiguration
22
+ */
23
+ key: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MongoCampConfiguration
28
+ */
29
+ value: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MongoCampConfiguration
34
+ */
35
+ configType: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof MongoCampConfiguration
40
+ */
41
+ comment: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof MongoCampConfiguration
46
+ */
47
+ needsRestartForActivation: boolean;
48
+ }
49
+ export declare function MongoCampConfigurationFromJSON(json: any): MongoCampConfiguration;
50
+ export declare function MongoCampConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoCampConfiguration;
51
+ export declare function MongoCampConfigurationToJSON(value?: MongoCampConfiguration | null): any;
@@ -0,0 +1,30 @@
1
+ export function MongoCampConfigurationFromJSON(json) {
2
+ return MongoCampConfigurationFromJSONTyped(json, false);
3
+ }
4
+ export function MongoCampConfigurationFromJSONTyped(json, ignoreDiscriminator) {
5
+ if (json === void 0 || json === null) {
6
+ return json;
7
+ }
8
+ return {
9
+ "key": json["key"],
10
+ "value": json["value"],
11
+ "configType": json["configType"],
12
+ "comment": json["comment"],
13
+ "needsRestartForActivation": json["needsRestartForActivation"]
14
+ };
15
+ }
16
+ export function MongoCampConfigurationToJSON(value) {
17
+ if (value === void 0) {
18
+ return void 0;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ "key": value.key,
25
+ "value": value.value,
26
+ "configType": value.configType,
27
+ "comment": value.comment,
28
+ "needsRestartForActivation": value.needsRestartForActivation
29
+ };
30
+ }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,15 +12,17 @@ export * from './IndexOptionsRequest';
12
12
  export * from './InsertResponse';
13
13
  export * from './JobConfig';
14
14
  export * from './JobInformation';
15
- export * from './JsonResultBoolean';
16
- export * from './JsonResultString';
17
15
  export * from './JsonSchema';
18
16
  export * from './JsonSchemaDefinition';
17
+ export * from './JsonValueAny';
18
+ export * from './JsonValueBoolean';
19
+ export * from './JsonValueString';
19
20
  export * from './Login';
20
21
  export * from './LoginResult';
21
22
  export * from './Measurement';
22
23
  export * from './Metric';
23
24
  export * from './MongoAggregateRequest';
25
+ export * from './MongoCampConfiguration';
24
26
  export * from './MongoFindRequest';
25
27
  export * from './MongoIndex';
26
28
  export * from './PasswordUpdateRequest';
@@ -12,15 +12,17 @@ export * from "./IndexOptionsRequest.mjs";
12
12
  export * from "./InsertResponse.mjs";
13
13
  export * from "./JobConfig.mjs";
14
14
  export * from "./JobInformation.mjs";
15
- export * from "./JsonResultBoolean.mjs";
16
- export * from "./JsonResultString.mjs";
17
15
  export * from "./JsonSchema.mjs";
18
16
  export * from "./JsonSchemaDefinition.mjs";
17
+ export * from "./JsonValueAny.mjs";
18
+ export * from "./JsonValueBoolean.mjs";
19
+ export * from "./JsonValueString.mjs";
19
20
  export * from "./Login.mjs";
20
21
  export * from "./LoginResult.mjs";
21
22
  export * from "./Measurement.mjs";
22
23
  export * from "./Metric.mjs";
23
24
  export * from "./MongoAggregateRequest.mjs";
25
+ export * from "./MongoCampConfiguration.mjs";
24
26
  export * from "./MongoFindRequest.mjs";
25
27
  export * from "./MongoIndex.mjs";
26
28
  export * from "./PasswordUpdateRequest.mjs";
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.2.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -40,7 +40,7 @@ export declare const COLLECTION_FORMATS: {
40
40
  tsv: string;
41
41
  pipes: string;
42
42
  };
43
- export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
43
+ export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
44
44
  export interface ConfigurationParameters {
45
45
  basePath?: string;
46
46
  fetchApi?: FetchAPI;
@@ -67,16 +67,16 @@ export declare class Configuration {
67
67
  get headers(): HTTPHeaders | undefined;
68
68
  get credentials(): RequestCredentials | undefined;
69
69
  }
70
- export declare type Json = any;
71
- export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
72
- export declare type HTTPHeaders = {
70
+ export type Json = any;
71
+ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
72
+ export type HTTPHeaders = {
73
73
  [key: string]: string;
74
74
  };
75
- export declare type HTTPQuery = {
75
+ export type HTTPQuery = {
76
76
  [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | HTTPQuery;
77
77
  };
78
- export declare type HTTPBody = Json | FormData | URLSearchParams;
79
- export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
78
+ export type HTTPBody = Json | FormData | URLSearchParams;
79
+ export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
80
80
  export interface FetchParams {
81
81
  url: string;
82
82
  init: RequestInit;
@@ -151,11 +151,14 @@ export function querystring(params, prefix = "") {
151
151
  }).filter((part) => part.length > 0).join("&");
152
152
  }
153
153
  export function mapValues(data, fn) {
154
- return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
154
+ return Object.keys(data).reduce(
155
+ (acc, key) => ({ ...acc, [key]: fn(data[key]) }),
156
+ {}
157
+ );
155
158
  }
156
159
  export function canConsumeForm(consumes) {
157
160
  for (const consume of consumes) {
158
- if (consume.contentType === "multipart/form-data") {
161
+ if ("multipart/form-data" === consume.contentType) {
159
162
  return true;
160
163
  }
161
164
  }
@@ -4,6 +4,6 @@ export declare const useMongocampAuth: () => {
4
4
  logout: () => void;
5
5
  userProfile: () => Promise<UserProfile>;
6
6
  isLoggedIn: import("vue").ComputedRef<boolean>;
7
- userRoles: import("vue").ComputedRef<string[]>;
8
- userGrants: import("vue").ComputedRef<import("../api").Grant[]>;
7
+ userRoles: import("vue").ComputedRef<string[] | undefined>;
8
+ userGrants: import("vue").ComputedRef<import("../api").Grant[] | undefined>;
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import type { FindRequest } from '../api';
2
2
  import { MongoFindRequest } from "../api";
3
3
  export declare const useMongocampSearch: () => {
4
- createFindRequest: (collection: string, searchParameter?: MongoFindRequest, rows?: any, actualPage?: number) => FindRequest;
4
+ createFindRequest: (collection: string, searchParameter?: MongoFindRequest, rows?: number, actualPage?: number) => FindRequest;
5
5
  createSearchParameter: (filter?: object, sort?: object, projection?: object) => MongoFindRequest;
6
6
  };
package/dist/types.d.ts CHANGED
@@ -7,4 +7,4 @@ declare module '@nuxt/schema' {
7
7
  }
8
8
 
9
9
 
10
- export { default } from './module'
10
+ export { ModuleOptions, default } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfxcode/nuxt-mongocamp-server",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -14,17 +14,20 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
+ "build": {
18
+ "failOnWarn": false
19
+ },
17
20
  "devDependencies": {
18
- "@antfu/eslint-config": "^0.27.0",
19
- "@iconify-json/mdi": "^1.1.33",
20
- "@nuxt/kit": "^3.0.0-rc.11",
21
+ "@antfu/eslint-config": "^0.31.0",
22
+ "@iconify-json/mdi": "^1.1.35",
23
+ "@nuxt/kit": "^3.0.0",
21
24
  "@nuxt/module-builder": "latest",
22
25
  "@openapitools/openapi-generator-cli": "^2.5.2",
23
- "@types/node": "^18.7.23",
24
- "@unocss/nuxt": "^0.45.26",
25
- "defu": "^6.1.0",
26
+ "@types/node": "^18.11.9",
27
+ "@unocss/nuxt": "^0.46.5",
28
+ "defu": "^6.1.1",
26
29
  "jiti": "^1.16.0",
27
- "nuxt": "^3.0.0-rc.11"
30
+ "nuxt": "^3.0.0"
28
31
  },
29
32
  "scripts": {
30
33
  "dev": "nuxi dev --port 3333 playground",