@sfxcode/nuxt-mongocamp-server 1.0.4 → 1.0.6

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 (127) hide show
  1. package/dist/module.d.mts +9 -0
  2. package/dist/module.d.ts +9 -2
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +557 -4
  5. package/dist/runtime/api/apis/AdminApi.d.ts +181 -0
  6. package/dist/runtime/api/apis/AdminApi.mjs +509 -0
  7. package/dist/runtime/api/apis/ApplicationApi.d.ts +65 -0
  8. package/dist/runtime/api/apis/ApplicationApi.mjs +164 -0
  9. package/dist/runtime/api/apis/AuthApi.d.ts +104 -0
  10. package/dist/runtime/api/apis/AuthApi.mjs +296 -0
  11. package/dist/runtime/api/apis/BucketApi.d.ts +67 -0
  12. package/dist/runtime/api/apis/BucketApi.mjs +160 -0
  13. package/dist/runtime/api/apis/CollectionApi.d.ts +161 -0
  14. package/dist/runtime/api/apis/CollectionApi.mjs +435 -0
  15. package/dist/runtime/api/apis/DatabaseApi.d.ts +77 -0
  16. package/dist/runtime/api/apis/DatabaseApi.mjs +196 -0
  17. package/dist/runtime/api/apis/DocumentApi.d.ts +188 -0
  18. package/dist/runtime/api/apis/DocumentApi.mjs +465 -0
  19. package/dist/runtime/api/apis/FileApi.d.ts +125 -0
  20. package/dist/runtime/api/apis/FileApi.mjs +355 -0
  21. package/dist/runtime/api/apis/IndexApi.d.ts +137 -0
  22. package/dist/runtime/api/apis/IndexApi.mjs +367 -0
  23. package/dist/runtime/api/apis/InformationApi.d.ts +28 -0
  24. package/dist/runtime/api/apis/InformationApi.mjs +29 -0
  25. package/dist/runtime/api/apis/JobsApi.d.ts +94 -0
  26. package/dist/runtime/api/apis/JobsApi.mjs +252 -0
  27. package/dist/runtime/api/apis/index.d.ts +11 -0
  28. package/dist/runtime/api/apis/index.mjs +11 -0
  29. package/dist/runtime/api/index.d.ts +3 -0
  30. package/dist/runtime/api/index.mjs +3 -0
  31. package/dist/runtime/api/models/BucketInformation.d.ts +49 -0
  32. package/dist/runtime/api/models/BucketInformation.mjs +36 -0
  33. package/dist/runtime/api/models/CollectionStatus.d.ts +107 -0
  34. package/dist/runtime/api/models/CollectionStatus.mjs +63 -0
  35. package/dist/runtime/api/models/DatabaseInfo.d.ts +57 -0
  36. package/dist/runtime/api/models/DatabaseInfo.mjs +39 -0
  37. package/dist/runtime/api/models/DeleteResponse.d.ts +37 -0
  38. package/dist/runtime/api/models/DeleteResponse.mjs +30 -0
  39. package/dist/runtime/api/models/ErrorDescription.d.ts +43 -0
  40. package/dist/runtime/api/models/ErrorDescription.mjs +33 -0
  41. package/dist/runtime/api/models/FileInformation.d.ts +63 -0
  42. package/dist/runtime/api/models/FileInformation.mjs +42 -0
  43. package/dist/runtime/api/models/Grant.d.ts +55 -0
  44. package/dist/runtime/api/models/Grant.mjs +39 -0
  45. package/dist/runtime/api/models/IndexCreateRequest.d.ts +40 -0
  46. package/dist/runtime/api/models/IndexCreateRequest.mjs +34 -0
  47. package/dist/runtime/api/models/IndexCreateResponse.d.ts +31 -0
  48. package/dist/runtime/api/models/IndexCreateResponse.mjs +27 -0
  49. package/dist/runtime/api/models/IndexDropResponse.d.ts +31 -0
  50. package/dist/runtime/api/models/IndexDropResponse.mjs +27 -0
  51. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +73 -0
  52. package/dist/runtime/api/models/IndexOptionsRequest.mjs +41 -0
  53. package/dist/runtime/api/models/InsertResponse.d.ts +37 -0
  54. package/dist/runtime/api/models/InsertResponse.mjs +30 -0
  55. package/dist/runtime/api/models/JobConfig.d.ts +61 -0
  56. package/dist/runtime/api/models/JobConfig.mjs +42 -0
  57. package/dist/runtime/api/models/JobInformation.d.ts +79 -0
  58. package/dist/runtime/api/models/JobInformation.mjs +49 -0
  59. package/dist/runtime/api/models/JsonSchema.d.ts +46 -0
  60. package/dist/runtime/api/models/JsonSchema.mjs +38 -0
  61. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +59 -0
  62. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +39 -0
  63. package/dist/runtime/api/models/JsonValueAny.d.ts +31 -0
  64. package/dist/runtime/api/models/JsonValueAny.mjs +27 -0
  65. package/dist/runtime/api/models/JsonValueBoolean.d.ts +31 -0
  66. package/dist/runtime/api/models/JsonValueBoolean.mjs +27 -0
  67. package/dist/runtime/api/models/JsonValueString.d.ts +31 -0
  68. package/dist/runtime/api/models/JsonValueString.mjs +27 -0
  69. package/dist/runtime/api/models/Login.d.ts +37 -0
  70. package/dist/runtime/api/models/Login.mjs +30 -0
  71. package/dist/runtime/api/models/LoginResult.d.ts +44 -0
  72. package/dist/runtime/api/models/LoginResult.mjs +37 -0
  73. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +38 -0
  74. package/dist/runtime/api/models/MongoAggregateRequest.mjs +34 -0
  75. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +55 -0
  76. package/dist/runtime/api/models/MongoCampConfiguration.mjs +39 -0
  77. package/dist/runtime/api/models/MongoFindRequest.d.ts +49 -0
  78. package/dist/runtime/api/models/MongoFindRequest.mjs +33 -0
  79. package/dist/runtime/api/models/MongoIndex.d.ts +103 -0
  80. package/dist/runtime/api/models/MongoIndex.mjs +60 -0
  81. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +31 -0
  82. package/dist/runtime/api/models/PasswordUpdateRequest.mjs +27 -0
  83. package/dist/runtime/api/models/PipelineStage.d.ts +37 -0
  84. package/dist/runtime/api/models/PipelineStage.mjs +30 -0
  85. package/dist/runtime/api/models/Role.d.ts +44 -0
  86. package/dist/runtime/api/models/Role.mjs +37 -0
  87. package/dist/runtime/api/models/SchemaAnalysis.d.ts +50 -0
  88. package/dist/runtime/api/models/SchemaAnalysis.mjs +40 -0
  89. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +62 -0
  90. package/dist/runtime/api/models/SchemaAnalysisField.mjs +45 -0
  91. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +43 -0
  92. package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +33 -0
  93. package/dist/runtime/api/models/SettingsResponse.d.ts +51 -0
  94. package/dist/runtime/api/models/SettingsResponse.mjs +34 -0
  95. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +39 -0
  96. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +29 -0
  97. package/dist/runtime/api/models/UpdateRequest.d.ts +41 -0
  98. package/dist/runtime/api/models/UpdateRequest.mjs +30 -0
  99. package/dist/runtime/api/models/UpdateResponse.d.ts +49 -0
  100. package/dist/runtime/api/models/UpdateResponse.mjs +36 -0
  101. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +38 -0
  102. package/dist/runtime/api/models/UpdateRoleRequest.mjs +34 -0
  103. package/dist/runtime/api/models/UserInformation.d.ts +49 -0
  104. package/dist/runtime/api/models/UserInformation.mjs +35 -0
  105. package/dist/runtime/api/models/UserProfile.d.ts +56 -0
  106. package/dist/runtime/api/models/UserProfile.mjs +41 -0
  107. package/dist/runtime/api/models/Version.d.ts +43 -0
  108. package/dist/runtime/api/models/Version.mjs +33 -0
  109. package/dist/runtime/api/models/index.d.ts +39 -0
  110. package/dist/runtime/api/models/index.mjs +39 -0
  111. package/dist/runtime/api/runtime.d.ts +182 -0
  112. package/dist/runtime/api/runtime.mjs +289 -0
  113. package/dist/runtime/composables/mongocampApi.d.ts +14 -0
  114. package/dist/runtime/composables/mongocampApi.mjs +45 -0
  115. package/dist/runtime/composables/mongocampAuth.d.ts +8 -0
  116. package/dist/runtime/composables/mongocampAuth.mjs +28 -0
  117. package/dist/runtime/composables/mongocampSearch.d.ts +11 -0
  118. package/dist/runtime/composables/mongocampSearch.mjs +20 -0
  119. package/dist/runtime/composables/mongocampStorage.d.ts +0 -0
  120. package/dist/runtime/composables/mongocampStorage.mjs +5 -0
  121. package/dist/runtime/composables/mongocampUrl.d.ts +1 -0
  122. package/dist/runtime/composables/mongocampUrl.mjs +5 -0
  123. package/dist/runtime/composables/mongocampUser.d.ts +3 -0
  124. package/dist/runtime/composables/mongocampUser.mjs +4 -0
  125. package/dist/types.d.mts +15 -0
  126. package/dist/types.d.ts +2 -8
  127. package/package.json +14 -13
@@ -0,0 +1,44 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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
+ import type { UserProfile } from './UserProfile';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LoginResult
17
+ */
18
+ export interface LoginResult {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof LoginResult
23
+ */
24
+ authToken: string;
25
+ /**
26
+ *
27
+ * @type {UserProfile}
28
+ * @memberof LoginResult
29
+ */
30
+ userProfile: UserProfile;
31
+ /**
32
+ *
33
+ * @type {Date}
34
+ * @memberof LoginResult
35
+ */
36
+ expirationDate: Date;
37
+ }
38
+ /**
39
+ * Check if a given object implements the LoginResult interface.
40
+ */
41
+ export declare function instanceOfLoginResult(value: object): boolean;
42
+ export declare function LoginResultFromJSON(json: any): LoginResult;
43
+ export declare function LoginResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginResult;
44
+ export declare function LoginResultToJSON(value?: LoginResult | null): any;
@@ -0,0 +1,37 @@
1
+ import {
2
+ UserProfileFromJSON,
3
+ UserProfileToJSON
4
+ } from "./UserProfile.mjs";
5
+ export function instanceOfLoginResult(value) {
6
+ let isInstance = true;
7
+ isInstance = isInstance && "authToken" in value;
8
+ isInstance = isInstance && "userProfile" in value;
9
+ isInstance = isInstance && "expirationDate" in value;
10
+ return isInstance;
11
+ }
12
+ export function LoginResultFromJSON(json) {
13
+ return LoginResultFromJSONTyped(json, false);
14
+ }
15
+ export function LoginResultFromJSONTyped(json, ignoreDiscriminator) {
16
+ if (json === void 0 || json === null) {
17
+ return json;
18
+ }
19
+ return {
20
+ "authToken": json["authToken"],
21
+ "userProfile": UserProfileFromJSON(json["userProfile"]),
22
+ "expirationDate": new Date(json["expirationDate"])
23
+ };
24
+ }
25
+ export function LoginResultToJSON(value) {
26
+ if (value === void 0) {
27
+ return void 0;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ "authToken": value.authToken,
34
+ "userProfile": UserProfileToJSON(value.userProfile),
35
+ "expirationDate": value.expirationDate.toISOString()
36
+ };
37
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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
+ import type { PipelineStage } from './PipelineStage';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MongoAggregateRequest
17
+ */
18
+ export interface MongoAggregateRequest {
19
+ /**
20
+ *
21
+ * @type {Array<PipelineStage>}
22
+ * @memberof MongoAggregateRequest
23
+ */
24
+ pipeline?: Array<PipelineStage>;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof MongoAggregateRequest
29
+ */
30
+ allowDiskUse: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the MongoAggregateRequest interface.
34
+ */
35
+ export declare function instanceOfMongoAggregateRequest(value: object): boolean;
36
+ export declare function MongoAggregateRequestFromJSON(json: any): MongoAggregateRequest;
37
+ export declare function MongoAggregateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoAggregateRequest;
38
+ export declare function MongoAggregateRequestToJSON(value?: MongoAggregateRequest | null): any;
@@ -0,0 +1,34 @@
1
+ import { exists } from "../runtime.mjs";
2
+ import {
3
+ PipelineStageFromJSON,
4
+ PipelineStageToJSON
5
+ } from "./PipelineStage.mjs";
6
+ export function instanceOfMongoAggregateRequest(value) {
7
+ let isInstance = true;
8
+ isInstance = isInstance && "allowDiskUse" in value;
9
+ return isInstance;
10
+ }
11
+ export function MongoAggregateRequestFromJSON(json) {
12
+ return MongoAggregateRequestFromJSONTyped(json, false);
13
+ }
14
+ export function MongoAggregateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
+ if (json === void 0 || json === null) {
16
+ return json;
17
+ }
18
+ return {
19
+ "pipeline": !exists(json, "pipeline") ? void 0 : json["pipeline"].map(PipelineStageFromJSON),
20
+ "allowDiskUse": json["allowDiskUse"]
21
+ };
22
+ }
23
+ export function MongoAggregateRequestToJSON(value) {
24
+ if (value === void 0) {
25
+ return void 0;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ "pipeline": value.pipeline === void 0 ? void 0 : value.pipeline.map(PipelineStageToJSON),
32
+ "allowDiskUse": value.allowDiskUse
33
+ };
34
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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
+ /**
50
+ * Check if a given object implements the MongoCampConfiguration interface.
51
+ */
52
+ export declare function instanceOfMongoCampConfiguration(value: object): boolean;
53
+ export declare function MongoCampConfigurationFromJSON(json: any): MongoCampConfiguration;
54
+ export declare function MongoCampConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoCampConfiguration;
55
+ export declare function MongoCampConfigurationToJSON(value?: MongoCampConfiguration | null): any;
@@ -0,0 +1,39 @@
1
+ export function instanceOfMongoCampConfiguration(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "key" in value;
4
+ isInstance = isInstance && "value" in value;
5
+ isInstance = isInstance && "configType" in value;
6
+ isInstance = isInstance && "comment" in value;
7
+ isInstance = isInstance && "needsRestartForActivation" in value;
8
+ return isInstance;
9
+ }
10
+ export function MongoCampConfigurationFromJSON(json) {
11
+ return MongoCampConfigurationFromJSONTyped(json, false);
12
+ }
13
+ export function MongoCampConfigurationFromJSONTyped(json, ignoreDiscriminator) {
14
+ if (json === void 0 || json === null) {
15
+ return json;
16
+ }
17
+ return {
18
+ "key": json["key"],
19
+ "value": json["value"],
20
+ "configType": json["configType"],
21
+ "comment": json["comment"],
22
+ "needsRestartForActivation": json["needsRestartForActivation"]
23
+ };
24
+ }
25
+ export function MongoCampConfigurationToJSON(value) {
26
+ if (value === void 0) {
27
+ return void 0;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ "key": value.key,
34
+ "value": value.value,
35
+ "configType": value.configType,
36
+ "comment": value.comment,
37
+ "needsRestartForActivation": value.needsRestartForActivation
38
+ };
39
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 MongoFindRequest
16
+ */
17
+ export interface MongoFindRequest {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: string; }}
21
+ * @memberof MongoFindRequest
22
+ */
23
+ filter: {
24
+ [key: string]: string;
25
+ } | null;
26
+ /**
27
+ *
28
+ * @type {{ [key: string]: string; }}
29
+ * @memberof MongoFindRequest
30
+ */
31
+ sort: {
32
+ [key: string]: string;
33
+ } | null;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: string; }}
37
+ * @memberof MongoFindRequest
38
+ */
39
+ projection: {
40
+ [key: string]: string;
41
+ } | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the MongoFindRequest interface.
45
+ */
46
+ export declare function instanceOfMongoFindRequest(value: object): boolean;
47
+ export declare function MongoFindRequestFromJSON(json: any): MongoFindRequest;
48
+ export declare function MongoFindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoFindRequest;
49
+ export declare function MongoFindRequestToJSON(value?: MongoFindRequest | null): any;
@@ -0,0 +1,33 @@
1
+ export function instanceOfMongoFindRequest(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "filter" in value;
4
+ isInstance = isInstance && "sort" in value;
5
+ isInstance = isInstance && "projection" in value;
6
+ return isInstance;
7
+ }
8
+ export function MongoFindRequestFromJSON(json) {
9
+ return MongoFindRequestFromJSONTyped(json, false);
10
+ }
11
+ export function MongoFindRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if (json === void 0 || json === null) {
13
+ return json;
14
+ }
15
+ return {
16
+ "filter": json["filter"],
17
+ "sort": json["sort"],
18
+ "projection": json["projection"]
19
+ };
20
+ }
21
+ export function MongoFindRequestToJSON(value) {
22
+ if (value === void 0) {
23
+ return void 0;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ "filter": value.filter,
30
+ "sort": value.sort,
31
+ "projection": value.projection
32
+ };
33
+ }
@@ -0,0 +1,103 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 MongoIndex
16
+ */
17
+ export interface MongoIndex {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MongoIndex
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof MongoIndex
28
+ */
29
+ fields?: Array<string>;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof MongoIndex
34
+ */
35
+ unique: boolean;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof MongoIndex
40
+ */
41
+ version: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof MongoIndex
46
+ */
47
+ namespace: string;
48
+ /**
49
+ *
50
+ * @type {{ [key: string]: string; }}
51
+ * @memberof MongoIndex
52
+ */
53
+ keys: {
54
+ [key: string]: string;
55
+ } | null;
56
+ /**
57
+ *
58
+ * @type {{ [key: string]: string; }}
59
+ * @memberof MongoIndex
60
+ */
61
+ weights: {
62
+ [key: string]: string;
63
+ } | null;
64
+ /**
65
+ *
66
+ * @type {boolean}
67
+ * @memberof MongoIndex
68
+ */
69
+ expire: boolean;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof MongoIndex
74
+ */
75
+ expireAfterSeconds: number;
76
+ /**
77
+ *
78
+ * @type {boolean}
79
+ * @memberof MongoIndex
80
+ */
81
+ text: boolean;
82
+ /**
83
+ *
84
+ * @type {Date}
85
+ * @memberof MongoIndex
86
+ */
87
+ fetched: Date;
88
+ /**
89
+ *
90
+ * @type {{ [key: string]: string; }}
91
+ * @memberof MongoIndex
92
+ */
93
+ map: {
94
+ [key: string]: string;
95
+ } | null;
96
+ }
97
+ /**
98
+ * Check if a given object implements the MongoIndex interface.
99
+ */
100
+ export declare function instanceOfMongoIndex(value: object): boolean;
101
+ export declare function MongoIndexFromJSON(json: any): MongoIndex;
102
+ export declare function MongoIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoIndex;
103
+ export declare function MongoIndexToJSON(value?: MongoIndex | null): any;
@@ -0,0 +1,60 @@
1
+ import { exists } from "../runtime.mjs";
2
+ export function instanceOfMongoIndex(value) {
3
+ let isInstance = true;
4
+ isInstance = isInstance && "name" in value;
5
+ isInstance = isInstance && "unique" in value;
6
+ isInstance = isInstance && "version" in value;
7
+ isInstance = isInstance && "namespace" in value;
8
+ isInstance = isInstance && "keys" in value;
9
+ isInstance = isInstance && "weights" in value;
10
+ isInstance = isInstance && "expire" in value;
11
+ isInstance = isInstance && "expireAfterSeconds" in value;
12
+ isInstance = isInstance && "text" in value;
13
+ isInstance = isInstance && "fetched" in value;
14
+ isInstance = isInstance && "map" in value;
15
+ return isInstance;
16
+ }
17
+ export function MongoIndexFromJSON(json) {
18
+ return MongoIndexFromJSONTyped(json, false);
19
+ }
20
+ export function MongoIndexFromJSONTyped(json, ignoreDiscriminator) {
21
+ if (json === void 0 || json === null) {
22
+ return json;
23
+ }
24
+ return {
25
+ "name": json["name"],
26
+ "fields": !exists(json, "fields") ? void 0 : json["fields"],
27
+ "unique": json["unique"],
28
+ "version": json["version"],
29
+ "namespace": json["namespace"],
30
+ "keys": json["keys"],
31
+ "weights": json["weights"],
32
+ "expire": json["expire"],
33
+ "expireAfterSeconds": json["expireAfterSeconds"],
34
+ "text": json["text"],
35
+ "fetched": new Date(json["fetched"]),
36
+ "map": json["map"]
37
+ };
38
+ }
39
+ export function MongoIndexToJSON(value) {
40
+ if (value === void 0) {
41
+ return void 0;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ "name": value.name,
48
+ "fields": value.fields,
49
+ "unique": value.unique,
50
+ "version": value.version,
51
+ "namespace": value.namespace,
52
+ "keys": value.keys,
53
+ "weights": value.weights,
54
+ "expire": value.expire,
55
+ "expireAfterSeconds": value.expireAfterSeconds,
56
+ "text": value.text,
57
+ "fetched": value.fetched.toISOString(),
58
+ "map": value.map
59
+ };
60
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 PasswordUpdateRequest
16
+ */
17
+ export interface PasswordUpdateRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PasswordUpdateRequest
22
+ */
23
+ password: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PasswordUpdateRequest interface.
27
+ */
28
+ export declare function instanceOfPasswordUpdateRequest(value: object): boolean;
29
+ export declare function PasswordUpdateRequestFromJSON(json: any): PasswordUpdateRequest;
30
+ export declare function PasswordUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordUpdateRequest;
31
+ export declare function PasswordUpdateRequestToJSON(value?: PasswordUpdateRequest | null): any;
@@ -0,0 +1,27 @@
1
+ export function instanceOfPasswordUpdateRequest(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "password" in value;
4
+ return isInstance;
5
+ }
6
+ export function PasswordUpdateRequestFromJSON(json) {
7
+ return PasswordUpdateRequestFromJSONTyped(json, false);
8
+ }
9
+ export function PasswordUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
10
+ if (json === void 0 || json === null) {
11
+ return json;
12
+ }
13
+ return {
14
+ "password": json["password"]
15
+ };
16
+ }
17
+ export function PasswordUpdateRequestToJSON(value) {
18
+ if (value === void 0) {
19
+ return void 0;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ "password": value.password
26
+ };
27
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 PipelineStage
16
+ */
17
+ export interface PipelineStage {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PipelineStage
22
+ */
23
+ stage: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PipelineStage
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PipelineStage interface.
33
+ */
34
+ export declare function instanceOfPipelineStage(value: object): boolean;
35
+ export declare function PipelineStageFromJSON(json: any): PipelineStage;
36
+ export declare function PipelineStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineStage;
37
+ export declare function PipelineStageToJSON(value?: PipelineStage | null): any;
@@ -0,0 +1,30 @@
1
+ export function instanceOfPipelineStage(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "stage" in value;
4
+ isInstance = isInstance && "value" in value;
5
+ return isInstance;
6
+ }
7
+ export function PipelineStageFromJSON(json) {
8
+ return PipelineStageFromJSONTyped(json, false);
9
+ }
10
+ export function PipelineStageFromJSONTyped(json, ignoreDiscriminator) {
11
+ if (json === void 0 || json === null) {
12
+ return json;
13
+ }
14
+ return {
15
+ "stage": json["stage"],
16
+ "value": json["value"]
17
+ };
18
+ }
19
+ export function PipelineStageToJSON(value) {
20
+ if (value === void 0) {
21
+ return void 0;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ "stage": value.stage,
28
+ "value": value.value
29
+ };
30
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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
+ import type { Grant } from './Grant';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Role
17
+ */
18
+ export interface Role {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Role
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof Role
29
+ */
30
+ isAdmin: boolean;
31
+ /**
32
+ *
33
+ * @type {Array<Grant>}
34
+ * @memberof Role
35
+ */
36
+ collectionGrants?: Array<Grant>;
37
+ }
38
+ /**
39
+ * Check if a given object implements the Role interface.
40
+ */
41
+ export declare function instanceOfRole(value: object): boolean;
42
+ export declare function RoleFromJSON(json: any): Role;
43
+ export declare function RoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Role;
44
+ export declare function RoleToJSON(value?: Role | null): any;