@sfxcode/nuxt-mongocamp-server 1.2.0 → 1.2.1
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 +1 -1
- package/dist/runtime/api/apis/AdminApi.mjs +99 -63
- package/dist/runtime/api/apis/ApplicationApi.mjs +22 -13
- package/dist/runtime/api/apis/AuthApi.mjs +19 -13
- package/dist/runtime/api/apis/BucketApi.mjs +22 -13
- package/dist/runtime/api/apis/CollectionApi.mjs +97 -64
- package/dist/runtime/api/apis/DatabaseApi.mjs +23 -14
- package/dist/runtime/api/apis/DocumentApi.d.ts +5 -5
- package/dist/runtime/api/apis/DocumentApi.mjs +151 -91
- package/dist/runtime/api/apis/FileApi.mjs +119 -74
- package/dist/runtime/api/apis/IndexApi.mjs +117 -69
- package/dist/runtime/api/apis/JobsApi.mjs +51 -27
- package/dist/runtime/api/models/BucketInformation.mjs +16 -16
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -2
- package/dist/runtime/api/models/CollectionStatus.mjs +43 -34
- package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
- package/dist/runtime/api/models/DatabaseInfo.mjs +19 -18
- package/dist/runtime/api/models/DeleteResponse.mjs +10 -12
- package/dist/runtime/api/models/ErrorDescription.mjs +13 -14
- package/dist/runtime/api/models/FileInformation.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.mjs +22 -20
- package/dist/runtime/api/models/Grant.mjs +19 -18
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.mjs +9 -13
- package/dist/runtime/api/models/IndexCreateResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexDropResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +20 -25
- package/dist/runtime/api/models/InsertResponse.mjs +9 -13
- package/dist/runtime/api/models/JobConfig.mjs +22 -20
- package/dist/runtime/api/models/JobInformation.mjs +28 -27
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchema.mjs +14 -20
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +18 -19
- package/dist/runtime/api/models/JsonValueAny.mjs +7 -10
- package/dist/runtime/api/models/JsonValueBoolean.mjs +7 -10
- package/dist/runtime/api/models/JsonValueString.mjs +7 -10
- package/dist/runtime/api/models/Login.mjs +10 -12
- package/dist/runtime/api/models/LoginResult.mjs +13 -14
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +9 -13
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +19 -18
- package/dist/runtime/api/models/MongoFindRequest.d.ts +3 -3
- package/dist/runtime/api/models/MongoFindRequest.mjs +13 -14
- package/dist/runtime/api/models/MongoIndex.d.ts +3 -3
- package/dist/runtime/api/models/MongoIndex.mjs +39 -33
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +7 -10
- package/dist/runtime/api/models/PipelineStage.mjs +10 -12
- package/dist/runtime/api/models/Role.mjs +12 -15
- package/dist/runtime/api/models/SchemaAnalysis.mjs +15 -17
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +20 -21
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +13 -14
- package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.mjs +13 -17
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +8 -13
- package/dist/runtime/api/models/UpdateRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateRequest.mjs +10 -12
- package/dist/runtime/api/models/UpdateResponse.mjs +15 -17
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +9 -13
- package/dist/runtime/api/models/UserInformation.mjs +14 -17
- package/dist/runtime/api/models/UserProfile.mjs +16 -19
- package/dist/runtime/api/models/Version.mjs +13 -14
- package/dist/runtime/api/runtime.d.ts +2 -3
- package/dist/runtime/api/runtime.mjs +0 -4
- package/package.json +3 -2
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfUserInformation(value) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
if (!("userId" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("password" in value))
|
|
5
|
+
return false;
|
|
6
|
+
return true;
|
|
7
7
|
}
|
|
8
8
|
export function UserInformationFromJSON(json) {
|
|
9
9
|
return UserInformationFromJSONTyped(json, false);
|
|
10
10
|
}
|
|
11
11
|
export function UserInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
-
if (json
|
|
12
|
+
if (json == null) {
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
16
|
"userId": json["userId"],
|
|
17
17
|
"password": json["password"],
|
|
18
|
-
"apiKey":
|
|
19
|
-
"roles":
|
|
18
|
+
"apiKey": json["apiKey"] == null ? void 0 : json["apiKey"],
|
|
19
|
+
"roles": json["roles"] == null ? void 0 : json["roles"]
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
export function UserInformationToJSON(value) {
|
|
23
|
-
if (value
|
|
24
|
-
return
|
|
25
|
-
}
|
|
26
|
-
if (value === null) {
|
|
27
|
-
return null;
|
|
23
|
+
if (value == null) {
|
|
24
|
+
return value;
|
|
28
25
|
}
|
|
29
26
|
return {
|
|
30
|
-
"userId": value
|
|
31
|
-
"password": value
|
|
32
|
-
"apiKey": value
|
|
33
|
-
"roles": value
|
|
27
|
+
"userId": value["userId"],
|
|
28
|
+
"password": value["password"],
|
|
29
|
+
"apiKey": value["apiKey"],
|
|
30
|
+
"roles": value["roles"]
|
|
34
31
|
};
|
|
35
32
|
}
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
import {
|
|
3
2
|
GrantFromJSON,
|
|
4
3
|
GrantToJSON
|
|
5
4
|
} from "./Grant.mjs";
|
|
6
5
|
export function instanceOfUserProfile(value) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
if (!("user" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("isAdmin" in value))
|
|
9
|
+
return false;
|
|
10
|
+
return true;
|
|
11
11
|
}
|
|
12
12
|
export function UserProfileFromJSON(json) {
|
|
13
13
|
return UserProfileFromJSONTyped(json, false);
|
|
14
14
|
}
|
|
15
15
|
export function UserProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
16
|
-
if (json
|
|
16
|
+
if (json == null) {
|
|
17
17
|
return json;
|
|
18
18
|
}
|
|
19
19
|
return {
|
|
20
20
|
"user": json["user"],
|
|
21
21
|
"isAdmin": json["isAdmin"],
|
|
22
|
-
"apiKey":
|
|
23
|
-
"roles":
|
|
24
|
-
"grants":
|
|
22
|
+
"apiKey": json["apiKey"] == null ? void 0 : json["apiKey"],
|
|
23
|
+
"roles": json["roles"] == null ? void 0 : json["roles"],
|
|
24
|
+
"grants": json["grants"] == null ? void 0 : json["grants"].map(GrantFromJSON)
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export function UserProfileToJSON(value) {
|
|
28
|
-
if (value
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
if (value === null) {
|
|
32
|
-
return null;
|
|
28
|
+
if (value == null) {
|
|
29
|
+
return value;
|
|
33
30
|
}
|
|
34
31
|
return {
|
|
35
|
-
"user": value
|
|
36
|
-
"isAdmin": value
|
|
37
|
-
"apiKey": value
|
|
38
|
-
"roles": value
|
|
39
|
-
"grants": value
|
|
32
|
+
"user": value["user"],
|
|
33
|
+
"isAdmin": value["isAdmin"],
|
|
34
|
+
"apiKey": value["apiKey"],
|
|
35
|
+
"roles": value["roles"],
|
|
36
|
+
"grants": value["grants"] == null ? void 0 : value["grants"].map(GrantToJSON)
|
|
40
37
|
};
|
|
41
38
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
export function instanceOfVersion(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
if (!("name" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("version" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("builtAt" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
7
9
|
}
|
|
8
10
|
export function VersionFromJSON(json) {
|
|
9
11
|
return VersionFromJSONTyped(json, false);
|
|
10
12
|
}
|
|
11
13
|
export function VersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
13
15
|
return json;
|
|
14
16
|
}
|
|
15
17
|
return {
|
|
@@ -19,15 +21,12 @@ export function VersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
export function VersionToJSON(value) {
|
|
22
|
-
if (value
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
if (value === null) {
|
|
26
|
-
return null;
|
|
24
|
+
if (value == null) {
|
|
25
|
+
return value;
|
|
27
26
|
}
|
|
28
27
|
return {
|
|
29
|
-
"name": value
|
|
30
|
-
"version": value
|
|
31
|
-
"builtAt": value
|
|
28
|
+
"name": value["name"],
|
|
29
|
+
"version": value["version"],
|
|
30
|
+
"builtAt": value["builtAt"].toISOString()
|
|
32
31
|
};
|
|
33
32
|
}
|
|
@@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
|
|
17
17
|
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
18
|
username?: string;
|
|
19
19
|
password?: string;
|
|
20
|
-
apiKey?: string | ((name: string) => string);
|
|
20
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
21
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
22
|
headers?: HTTPHeaders;
|
|
23
23
|
credentials?: RequestCredentials;
|
|
@@ -32,7 +32,7 @@ export declare class Configuration {
|
|
|
32
32
|
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
33
|
get username(): string | undefined;
|
|
34
34
|
get password(): string | undefined;
|
|
35
|
-
get apiKey(): ((name: string) => string) | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
36
|
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
37
|
get headers(): HTTPHeaders | undefined;
|
|
38
38
|
get credentials(): RequestCredentials | undefined;
|
|
@@ -122,7 +122,6 @@ export interface RequestOpts {
|
|
|
122
122
|
query?: HTTPQuery;
|
|
123
123
|
body?: HTTPBody;
|
|
124
124
|
}
|
|
125
|
-
export declare function exists(json: any, key: string): boolean;
|
|
126
125
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
127
126
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
128
127
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
@@ -215,10 +215,6 @@ export const COLLECTION_FORMATS = {
|
|
|
215
215
|
tsv: " ",
|
|
216
216
|
pipes: "|"
|
|
217
217
|
};
|
|
218
|
-
export function exists(json, key) {
|
|
219
|
-
const value = json[key];
|
|
220
|
-
return value !== null && value !== void 0;
|
|
221
|
-
}
|
|
222
218
|
export function querystring(params, prefix = "") {
|
|
223
219
|
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
224
220
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"nuxt": "^3.10.3",
|
|
50
50
|
"nuxt-primevue": "^0.3.1",
|
|
51
51
|
"primeicons": "^6.0.1",
|
|
52
|
-
"vitest": "^1.4.0"
|
|
52
|
+
"vitest": "^1.4.0",
|
|
53
|
+
"@openapitools/openapi-generator-cli": "^2.9.0"
|
|
53
54
|
}
|
|
54
55
|
}
|