@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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +470 -13
- 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/dist/runtime/composables/mongocampSearch.mjs +4 -4
- package/dist/runtime/composables/mongocampStorage.mjs +1 -2
- package/dist/runtime/composables/mongocampUrl.mjs +1 -1
- package/package.json +8 -8
|
@@ -2,14 +2,14 @@
|
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { SchemaAnalysisFieldType } from './SchemaAnalysisFieldType';
|
|
12
|
+
import type { SchemaAnalysisFieldType } from './SchemaAnalysisFieldType';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -53,6 +53,10 @@ export interface SchemaAnalysisField {
|
|
|
53
53
|
*/
|
|
54
54
|
subFields?: Array<SchemaAnalysisField>;
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the SchemaAnalysisField interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfSchemaAnalysisField(value: object): boolean;
|
|
56
60
|
export declare function SchemaAnalysisFieldFromJSON(json: any): SchemaAnalysisField;
|
|
57
61
|
export declare function SchemaAnalysisFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysisField;
|
|
58
62
|
export declare function SchemaAnalysisFieldToJSON(value?: SchemaAnalysisField | null): any;
|
|
@@ -2,7 +2,15 @@ import { exists } from "../runtime.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
SchemaAnalysisFieldTypeFromJSON,
|
|
4
4
|
SchemaAnalysisFieldTypeToJSON
|
|
5
|
-
} from "./SchemaAnalysisFieldType";
|
|
5
|
+
} from "./SchemaAnalysisFieldType.mjs";
|
|
6
|
+
export function instanceOfSchemaAnalysisField(value) {
|
|
7
|
+
let isInstance = true;
|
|
8
|
+
isInstance = isInstance && "name" in value;
|
|
9
|
+
isInstance = isInstance && "fullName" in value;
|
|
10
|
+
isInstance = isInstance && "count" in value;
|
|
11
|
+
isInstance = isInstance && "percentageOfParent" in value;
|
|
12
|
+
return isInstance;
|
|
13
|
+
}
|
|
6
14
|
export function SchemaAnalysisFieldFromJSON(json) {
|
|
7
15
|
return SchemaAnalysisFieldFromJSONTyped(json, false);
|
|
8
16
|
}
|
|
@@ -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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,6 +34,10 @@ export interface SchemaAnalysisFieldType {
|
|
|
34
34
|
*/
|
|
35
35
|
percentageOfParent: number;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SchemaAnalysisFieldType interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSchemaAnalysisFieldType(value: object): boolean;
|
|
37
41
|
export declare function SchemaAnalysisFieldTypeFromJSON(json: any): SchemaAnalysisFieldType;
|
|
38
42
|
export declare function SchemaAnalysisFieldTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysisFieldType;
|
|
39
43
|
export declare function SchemaAnalysisFieldTypeToJSON(value?: SchemaAnalysisFieldType | null): any;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export function instanceOfSchemaAnalysisFieldType(value) {
|
|
2
|
+
let isInstance = true;
|
|
3
|
+
isInstance = isInstance && "fieldType" in value;
|
|
4
|
+
isInstance = isInstance && "count" in value;
|
|
5
|
+
isInstance = isInstance && "percentageOfParent" in value;
|
|
6
|
+
return isInstance;
|
|
7
|
+
}
|
|
1
8
|
export function SchemaAnalysisFieldTypeFromJSON(json) {
|
|
2
9
|
return SchemaAnalysisFieldTypeFromJSONTyped(json, false);
|
|
3
10
|
}
|
|
@@ -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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -42,6 +42,10 @@ export interface SettingsResponse {
|
|
|
42
42
|
[key: string]: string;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the SettingsResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfSettingsResponse(value: object): boolean;
|
|
45
49
|
export declare function SettingsResponseFromJSON(json: any): SettingsResponse;
|
|
46
50
|
export declare function SettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsResponse;
|
|
47
51
|
export declare function SettingsResponseToJSON(value?: SettingsResponse | null): any;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { exists } from "../runtime.mjs";
|
|
2
|
+
export function instanceOfSettingsResponse(value) {
|
|
3
|
+
let isInstance = true;
|
|
4
|
+
isInstance = isInstance && "configurations" in value;
|
|
5
|
+
return isInstance;
|
|
6
|
+
}
|
|
2
7
|
export function SettingsResponseFromJSON(json) {
|
|
3
8
|
return SettingsResponseFromJSONTyped(json, false);
|
|
4
9
|
}
|
|
@@ -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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,6 +30,10 @@ export interface UpdateFileInformationRequest {
|
|
|
30
30
|
[key: string]: string;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the UpdateFileInformationRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfUpdateFileInformationRequest(value: object): boolean;
|
|
33
37
|
export declare function UpdateFileInformationRequestFromJSON(json: any): UpdateFileInformationRequest;
|
|
34
38
|
export declare function UpdateFileInformationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFileInformationRequest;
|
|
35
39
|
export declare function UpdateFileInformationRequestToJSON(value?: UpdateFileInformationRequest | null): any;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { exists } from "../runtime.mjs";
|
|
2
|
+
export function instanceOfUpdateFileInformationRequest(value) {
|
|
3
|
+
let isInstance = true;
|
|
4
|
+
return isInstance;
|
|
5
|
+
}
|
|
2
6
|
export function UpdateFileInformationRequestFromJSON(json) {
|
|
3
7
|
return UpdateFileInformationRequestFromJSONTyped(json, false);
|
|
4
8
|
}
|
|
@@ -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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -32,6 +32,10 @@ export interface UpdateRequest {
|
|
|
32
32
|
[key: string]: string;
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the UpdateRequest interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfUpdateRequest(value: object): boolean;
|
|
35
39
|
export declare function UpdateRequestFromJSON(json: any): UpdateRequest;
|
|
36
40
|
export declare function UpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRequest;
|
|
37
41
|
export declare function UpdateRequestToJSON(value?: UpdateRequest | null): any;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export function instanceOfUpdateRequest(value) {
|
|
2
|
+
let isInstance = true;
|
|
3
|
+
isInstance = isInstance && "document" in value;
|
|
4
|
+
isInstance = isInstance && "filter" in value;
|
|
5
|
+
return isInstance;
|
|
6
|
+
}
|
|
1
7
|
export function UpdateRequestFromJSON(json) {
|
|
2
8
|
return UpdateRequestFromJSONTyped(json, false);
|
|
3
9
|
}
|
|
@@ -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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,6 +40,10 @@ export interface UpdateResponse {
|
|
|
40
40
|
*/
|
|
41
41
|
matchedCount: number;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the UpdateResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfUpdateResponse(value: object): boolean;
|
|
43
47
|
export declare function UpdateResponseFromJSON(json: any): UpdateResponse;
|
|
44
48
|
export declare function UpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResponse;
|
|
45
49
|
export declare function UpdateResponseToJSON(value?: UpdateResponse | null): any;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { exists } from "../runtime.mjs";
|
|
2
|
+
export function instanceOfUpdateResponse(value) {
|
|
3
|
+
let isInstance = true;
|
|
4
|
+
isInstance = isInstance && "wasAcknowledged" in value;
|
|
5
|
+
isInstance = isInstance && "modifiedCount" in value;
|
|
6
|
+
isInstance = isInstance && "matchedCount" in value;
|
|
7
|
+
return isInstance;
|
|
8
|
+
}
|
|
2
9
|
export function UpdateResponseFromJSON(json) {
|
|
3
10
|
return UpdateResponseFromJSONTyped(json, false);
|
|
4
11
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Grant } from './Grant';
|
|
12
|
+
import type { Grant } from './Grant';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -29,6 +29,10 @@ export interface UpdateRoleRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
collectionGrants?: Array<Grant>;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateRoleRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateRoleRequest(value: object): boolean;
|
|
32
36
|
export declare function UpdateRoleRequestFromJSON(json: any): UpdateRoleRequest;
|
|
33
37
|
export declare function UpdateRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoleRequest;
|
|
34
38
|
export declare function UpdateRoleRequestToJSON(value?: UpdateRoleRequest | null): any;
|
|
@@ -2,7 +2,12 @@ import { exists } from "../runtime.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
GrantFromJSON,
|
|
4
4
|
GrantToJSON
|
|
5
|
-
} from "./Grant";
|
|
5
|
+
} from "./Grant.mjs";
|
|
6
|
+
export function instanceOfUpdateRoleRequest(value) {
|
|
7
|
+
let isInstance = true;
|
|
8
|
+
isInstance = isInstance && "isAdmin" in value;
|
|
9
|
+
return isInstance;
|
|
10
|
+
}
|
|
6
11
|
export function UpdateRoleRequestFromJSON(json) {
|
|
7
12
|
return UpdateRoleRequestFromJSONTyped(json, false);
|
|
8
13
|
}
|
|
@@ -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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,6 +40,10 @@ export interface UserInformation {
|
|
|
40
40
|
*/
|
|
41
41
|
roles?: Array<string>;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the UserInformation interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfUserInformation(value: object): boolean;
|
|
43
47
|
export declare function UserInformationFromJSON(json: any): UserInformation;
|
|
44
48
|
export declare function UserInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserInformation;
|
|
45
49
|
export declare function UserInformationToJSON(value?: UserInformation | null): any;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { exists } from "../runtime.mjs";
|
|
2
|
+
export function instanceOfUserInformation(value) {
|
|
3
|
+
let isInstance = true;
|
|
4
|
+
isInstance = isInstance && "userId" in value;
|
|
5
|
+
isInstance = isInstance && "password" in value;
|
|
6
|
+
return isInstance;
|
|
7
|
+
}
|
|
2
8
|
export function UserInformationFromJSON(json) {
|
|
3
9
|
return UserInformationFromJSONTyped(json, false);
|
|
4
10
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Grant } from './Grant';
|
|
12
|
+
import type { Grant } from './Grant';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -47,6 +47,10 @@ export interface UserProfile {
|
|
|
47
47
|
*/
|
|
48
48
|
grants?: Array<Grant>;
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the UserProfile interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfUserProfile(value: object): boolean;
|
|
50
54
|
export declare function UserProfileFromJSON(json: any): UserProfile;
|
|
51
55
|
export declare function UserProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserProfile;
|
|
52
56
|
export declare function UserProfileToJSON(value?: UserProfile | null): any;
|
|
@@ -2,7 +2,13 @@ import { exists } from "../runtime.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
GrantFromJSON,
|
|
4
4
|
GrantToJSON
|
|
5
|
-
} from "./Grant";
|
|
5
|
+
} from "./Grant.mjs";
|
|
6
|
+
export function instanceOfUserProfile(value) {
|
|
7
|
+
let isInstance = true;
|
|
8
|
+
isInstance = isInstance && "user" in value;
|
|
9
|
+
isInstance = isInstance && "isAdmin" in value;
|
|
10
|
+
return isInstance;
|
|
11
|
+
}
|
|
6
12
|
export function UserProfileFromJSON(json) {
|
|
7
13
|
return UserProfileFromJSONTyped(json, false);
|
|
8
14
|
}
|
|
@@ -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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,6 +34,10 @@ export interface Version {
|
|
|
34
34
|
*/
|
|
35
35
|
builtAt: Date;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Version interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfVersion(value: object): boolean;
|
|
37
41
|
export declare function VersionFromJSON(json: any): Version;
|
|
38
42
|
export declare function VersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Version;
|
|
39
43
|
export declare function VersionToJSON(value?: Version | null): any;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export function instanceOfVersion(value) {
|
|
2
|
+
let isInstance = true;
|
|
3
|
+
isInstance = isInstance && "name" in value;
|
|
4
|
+
isInstance = isInstance && "version" in value;
|
|
5
|
+
isInstance = isInstance && "builtAt" in value;
|
|
6
|
+
return isInstance;
|
|
7
|
+
}
|
|
1
8
|
export function VersionFromJSON(json) {
|
|
2
9
|
return VersionFromJSONTyped(json, false);
|
|
3
10
|
}
|
|
@@ -19,8 +19,6 @@ export * from './JsonValueBoolean';
|
|
|
19
19
|
export * from './JsonValueString';
|
|
20
20
|
export * from './Login';
|
|
21
21
|
export * from './LoginResult';
|
|
22
|
-
export * from './Measurement';
|
|
23
|
-
export * from './Metric';
|
|
24
22
|
export * from './MongoAggregateRequest';
|
|
25
23
|
export * from './MongoCampConfiguration';
|
|
26
24
|
export * from './MongoFindRequest';
|
|
@@ -19,8 +19,6 @@ export * from "./JsonValueBoolean.mjs";
|
|
|
19
19
|
export * from "./JsonValueString.mjs";
|
|
20
20
|
export * from "./Login.mjs";
|
|
21
21
|
export * from "./LoginResult.mjs";
|
|
22
|
-
export * from "./Measurement.mjs";
|
|
23
|
-
export * from "./Metric.mjs";
|
|
24
22
|
export * from "./MongoAggregateRequest.mjs";
|
|
25
23
|
export * from "./MongoCampConfiguration.mjs";
|
|
26
24
|
export * from "./MongoFindRequest.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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,17 +10,57 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export declare const BASE_PATH: string;
|
|
13
|
+
export interface ConfigurationParameters {
|
|
14
|
+
basePath?: string;
|
|
15
|
+
fetchApi?: FetchAPI;
|
|
16
|
+
middleware?: Middleware[];
|
|
17
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
apiKey?: string | ((name: string) => string);
|
|
21
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
+
headers?: HTTPHeaders;
|
|
23
|
+
credentials?: RequestCredentials;
|
|
24
|
+
}
|
|
25
|
+
export declare class Configuration {
|
|
26
|
+
private configuration;
|
|
27
|
+
constructor(configuration?: ConfigurationParameters);
|
|
28
|
+
set config(configuration: Configuration);
|
|
29
|
+
get basePath(): string;
|
|
30
|
+
get fetchApi(): FetchAPI | undefined;
|
|
31
|
+
get middleware(): Middleware[];
|
|
32
|
+
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
+
get username(): string | undefined;
|
|
34
|
+
get password(): string | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string) | undefined;
|
|
36
|
+
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
+
get headers(): HTTPHeaders | undefined;
|
|
38
|
+
get credentials(): RequestCredentials | undefined;
|
|
39
|
+
}
|
|
40
|
+
export declare const DefaultConfig: Configuration;
|
|
13
41
|
/**
|
|
14
42
|
* This is the base class for all generated API classes.
|
|
15
43
|
*/
|
|
16
44
|
export declare class BaseAPI {
|
|
17
45
|
protected configuration: Configuration;
|
|
46
|
+
private static readonly jsonRegex;
|
|
18
47
|
private middleware;
|
|
19
48
|
constructor(configuration?: Configuration);
|
|
20
49
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
21
50
|
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
22
51
|
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
23
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Check if the given MIME is a JSON MIME.
|
|
54
|
+
* JSON MIME examples:
|
|
55
|
+
* application/json
|
|
56
|
+
* application/json; charset=UTF8
|
|
57
|
+
* APPLICATION/JSON
|
|
58
|
+
* application/vnd.company+json
|
|
59
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
63
|
+
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
24
64
|
private createFetchParams;
|
|
25
65
|
private fetchApi;
|
|
26
66
|
/**
|
|
@@ -29,6 +69,16 @@ export declare class BaseAPI {
|
|
|
29
69
|
*/
|
|
30
70
|
private clone;
|
|
31
71
|
}
|
|
72
|
+
export declare class ResponseError extends Error {
|
|
73
|
+
response: Response;
|
|
74
|
+
name: "ResponseError";
|
|
75
|
+
constructor(response: Response, msg?: string);
|
|
76
|
+
}
|
|
77
|
+
export declare class FetchError extends Error {
|
|
78
|
+
cause: Error;
|
|
79
|
+
name: "FetchError";
|
|
80
|
+
constructor(cause: Error, msg?: string);
|
|
81
|
+
}
|
|
32
82
|
export declare class RequiredError extends Error {
|
|
33
83
|
field: string;
|
|
34
84
|
name: "RequiredError";
|
|
@@ -41,42 +91,26 @@ export declare const COLLECTION_FORMATS: {
|
|
|
41
91
|
pipes: string;
|
|
42
92
|
};
|
|
43
93
|
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
44
|
-
export interface ConfigurationParameters {
|
|
45
|
-
basePath?: string;
|
|
46
|
-
fetchApi?: FetchAPI;
|
|
47
|
-
middleware?: Middleware[];
|
|
48
|
-
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
49
|
-
username?: string;
|
|
50
|
-
password?: string;
|
|
51
|
-
apiKey?: string | ((name: string) => string);
|
|
52
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
53
|
-
headers?: HTTPHeaders;
|
|
54
|
-
credentials?: RequestCredentials;
|
|
55
|
-
}
|
|
56
|
-
export declare class Configuration {
|
|
57
|
-
private configuration;
|
|
58
|
-
constructor(configuration?: ConfigurationParameters);
|
|
59
|
-
get basePath(): string;
|
|
60
|
-
get fetchApi(): FetchAPI | undefined;
|
|
61
|
-
get middleware(): Middleware[];
|
|
62
|
-
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
63
|
-
get username(): string | undefined;
|
|
64
|
-
get password(): string | undefined;
|
|
65
|
-
get apiKey(): ((name: string) => string) | undefined;
|
|
66
|
-
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
67
|
-
get headers(): HTTPHeaders | undefined;
|
|
68
|
-
get credentials(): RequestCredentials | undefined;
|
|
69
|
-
}
|
|
70
94
|
export type Json = any;
|
|
71
95
|
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
72
96
|
export type HTTPHeaders = {
|
|
73
97
|
[key: string]: string;
|
|
74
98
|
};
|
|
75
99
|
export type HTTPQuery = {
|
|
76
|
-
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | HTTPQuery;
|
|
100
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
77
101
|
};
|
|
78
102
|
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
+
export type HTTPRequestInit = {
|
|
104
|
+
headers?: HTTPHeaders;
|
|
105
|
+
method: HTTPMethod;
|
|
106
|
+
credentials?: RequestCredentials;
|
|
107
|
+
body?: HTTPBody;
|
|
108
|
+
};
|
|
79
109
|
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
+
export type InitOverrideFunction = (requestContext: {
|
|
111
|
+
init: HTTPRequestInit;
|
|
112
|
+
context: RequestOpts;
|
|
113
|
+
}) => Promise<RequestInit>;
|
|
80
114
|
export interface FetchParams {
|
|
81
115
|
url: string;
|
|
82
116
|
init: RequestInit;
|
|
@@ -106,9 +140,17 @@ export interface ResponseContext {
|
|
|
106
140
|
init: RequestInit;
|
|
107
141
|
response: Response;
|
|
108
142
|
}
|
|
143
|
+
export interface ErrorContext {
|
|
144
|
+
fetch: FetchAPI;
|
|
145
|
+
url: string;
|
|
146
|
+
init: RequestInit;
|
|
147
|
+
error: unknown;
|
|
148
|
+
response?: Response;
|
|
149
|
+
}
|
|
109
150
|
export interface Middleware {
|
|
110
151
|
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
111
152
|
post?(context: ResponseContext): Promise<Response | void>;
|
|
153
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
|
112
154
|
}
|
|
113
155
|
export interface ApiResponse<T> {
|
|
114
156
|
raw: Response;
|