kuzzle 2.16.1 → 2.16.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.
|
@@ -26,7 +26,7 @@ exports.generateOpenApi = void 0;
|
|
|
26
26
|
*/
|
|
27
27
|
const lodash_1 = __importDefault(require("lodash"));
|
|
28
28
|
const package_json_1 = require("./../../package.json");
|
|
29
|
-
const
|
|
29
|
+
const openapi_1 = require("./openapi");
|
|
30
30
|
const inflector_1 = require("./../util/inflector");
|
|
31
31
|
const routeUrlMatch = /:([^/]*)/g;
|
|
32
32
|
/**
|
|
@@ -150,18 +150,18 @@ function generateOpenApi() {
|
|
|
150
150
|
],
|
|
151
151
|
paths: {},
|
|
152
152
|
components: {
|
|
153
|
-
...
|
|
153
|
+
...openapi_1.OpenApiPayloadsDefinitions,
|
|
154
154
|
schemas: {
|
|
155
|
-
...
|
|
156
|
-
...
|
|
157
|
-
...
|
|
158
|
-
...
|
|
159
|
-
...
|
|
160
|
-
...
|
|
161
|
-
...
|
|
162
|
-
...
|
|
163
|
-
...
|
|
164
|
-
...
|
|
155
|
+
...openapi_1.OpenApiDocumentCountComponent,
|
|
156
|
+
...openapi_1.OpenApiDocumentDeleteByQueryComponent,
|
|
157
|
+
...openapi_1.OpenApiDocumentDeleteComponent,
|
|
158
|
+
...openapi_1.OpenApiDocumentScrollComponent,
|
|
159
|
+
...openapi_1.OpenApiDocumentExistsComponent,
|
|
160
|
+
...openapi_1.OpenApiDocumentUpdateComponent,
|
|
161
|
+
...openapi_1.OpenApiDocumentReplaceComponent,
|
|
162
|
+
...openapi_1.OpenApiDocumentGetComponent,
|
|
163
|
+
...openapi_1.OpenApiDocumentCreateOrReplaceComponent,
|
|
164
|
+
...openapi_1.OpenApiDocumentCreateComponent,
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
};
|
|
@@ -18,4 +18,3 @@ export declare const OpenApiDocumentDelete: any;
|
|
|
18
18
|
export declare const OpenApiDocumentDeleteComponent: any;
|
|
19
19
|
export declare const OpenApiDocumentDeleteByQuery: any;
|
|
20
20
|
export declare const OpenApiDocumentDeleteByQueryComponent: any;
|
|
21
|
-
export declare const DefinitionsDocument: any;
|
|
@@ -1,57 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OpenApiDocumentDeleteByQueryComponent = exports.OpenApiDocumentDeleteByQuery = exports.OpenApiDocumentDeleteComponent = exports.OpenApiDocumentDelete = exports.OpenApiDocumentScrollComponent = exports.OpenApiDocumentScroll = exports.OpenApiDocumentUpdateComponent = exports.OpenApiDocumentUpdate = exports.OpenApiDocumentExistsComponent = exports.OpenApiDocumentExists = exports.OpenApiDocumentReplaceComponent = exports.OpenApiDocumentReplace = exports.OpenApiDocumentGetComponent = exports.OpenApiDocumentGet = exports.OpenApiDocumentCreateOrReplaceComponent = exports.OpenApiDocumentCreateOrReplace = exports.OpenApiDocumentCreateComponent = exports.OpenApiDocumentCreate = exports.OpenApiDocumentCountComponent = exports.OpenApiDocumentCount = void 0;
|
|
4
4
|
const readYamlFile_1 = require("../../../util/readYamlFile");
|
|
5
5
|
// reading the description of the Count action in the controller document.
|
|
6
6
|
// The yaml objects are then stored in the variables below
|
|
7
|
-
const countObject = (0, readYamlFile_1.readYamlFile)('
|
|
7
|
+
const countObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/count.yaml');
|
|
8
8
|
exports.OpenApiDocumentCount = countObject.DocumentCount;
|
|
9
9
|
exports.OpenApiDocumentCountComponent = countObject.components.schemas;
|
|
10
10
|
// reading the description of the Create action in the controller document.
|
|
11
11
|
// The yaml objects are then stored in the variables below
|
|
12
|
-
const createObject = (0, readYamlFile_1.readYamlFile)('
|
|
12
|
+
const createObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/create.yaml');
|
|
13
13
|
exports.OpenApiDocumentCreate = createObject.DocumentCreate;
|
|
14
14
|
exports.OpenApiDocumentCreateComponent = createObject.components.schemas;
|
|
15
15
|
// reading the description of the CreateOrReplace action in the controller document.
|
|
16
16
|
// The yaml objects are then stored in the variables below
|
|
17
|
-
const createOrReplaceObject = (0, readYamlFile_1.readYamlFile)('
|
|
17
|
+
const createOrReplaceObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/createOrReplace.yaml');
|
|
18
18
|
exports.OpenApiDocumentCreateOrReplace = createOrReplaceObject.DocumentCreateOrReplace;
|
|
19
19
|
exports.OpenApiDocumentCreateOrReplaceComponent = createOrReplaceObject.components.schemas;
|
|
20
20
|
// reading the description of the Get action in the controller document.
|
|
21
21
|
// The yaml objects are then stored in the variables below
|
|
22
|
-
const getObject = (0, readYamlFile_1.readYamlFile)('
|
|
22
|
+
const getObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/get.yaml');
|
|
23
23
|
exports.OpenApiDocumentGet = getObject.DocumentGet;
|
|
24
24
|
exports.OpenApiDocumentGetComponent = getObject.components.schemas;
|
|
25
25
|
// reading the description of the Replace action in the controller document.
|
|
26
26
|
// The yaml objects are then stored in the variables below
|
|
27
|
-
const replaceObject = (0, readYamlFile_1.readYamlFile)('
|
|
27
|
+
const replaceObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/replace.yaml');
|
|
28
28
|
exports.OpenApiDocumentReplace = replaceObject.DocumentReplace;
|
|
29
29
|
exports.OpenApiDocumentReplaceComponent = replaceObject.components.schemas;
|
|
30
30
|
// reading the description of the Exists action in the controller document.
|
|
31
31
|
// The yaml objects are then stored in the variables below
|
|
32
|
-
const existsObject = (0, readYamlFile_1.readYamlFile)('
|
|
32
|
+
const existsObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/exists.yaml');
|
|
33
33
|
exports.OpenApiDocumentExists = existsObject.DocumentExists;
|
|
34
34
|
exports.OpenApiDocumentExistsComponent = existsObject.components.schemas;
|
|
35
35
|
// reading the description of the Update action in the controller document.
|
|
36
36
|
// The yaml objects are then stored in the variables below
|
|
37
|
-
const updateObject = (0, readYamlFile_1.readYamlFile)('
|
|
37
|
+
const updateObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/update.yaml');
|
|
38
38
|
exports.OpenApiDocumentUpdate = updateObject.DocumentUpdate;
|
|
39
39
|
exports.OpenApiDocumentUpdateComponent = updateObject.components.schemas;
|
|
40
40
|
// reading the description of the Scroll action in the controller document.
|
|
41
41
|
// The yaml objects are then stored in the variables below
|
|
42
|
-
const scrollObject = (0, readYamlFile_1.readYamlFile)('
|
|
42
|
+
const scrollObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/scroll.yaml');
|
|
43
43
|
exports.OpenApiDocumentScroll = scrollObject.DocumentScroll;
|
|
44
44
|
exports.OpenApiDocumentScrollComponent = scrollObject.components.schemas;
|
|
45
45
|
// reading the description of the Delete action in the controller document.
|
|
46
46
|
// The yaml objects are then stored in the variables below
|
|
47
|
-
const deleteObject = (0, readYamlFile_1.readYamlFile)('
|
|
47
|
+
const deleteObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/delete.yaml');
|
|
48
48
|
exports.OpenApiDocumentDelete = deleteObject.DocumentDelete;
|
|
49
49
|
exports.OpenApiDocumentDeleteComponent = deleteObject.components.schemas;
|
|
50
50
|
// reading the description of the DeleteByQuery action in the controller document.
|
|
51
51
|
// The yaml objects are then stored in the variables below
|
|
52
|
-
const deleteByQueryObject = (0, readYamlFile_1.readYamlFile)('
|
|
52
|
+
const deleteByQueryObject = (0, readYamlFile_1.readYamlFile)(__dirname + '/deleteByQuery.yaml');
|
|
53
53
|
exports.OpenApiDocumentDeleteByQuery = deleteByQueryObject.DocumentDeleteByQuery;
|
|
54
54
|
exports.OpenApiDocumentDeleteByQueryComponent = deleteByQueryObject.components.schemas;
|
|
55
|
-
// Document definitions (reusable object for KuzzleRequest and KuzzleResponse)
|
|
56
|
-
exports.DefinitionsDocument = (0, readYamlFile_1.readYamlFile)('./lib/api/openapi/payloads.yaml').definitions;
|
|
57
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.OpenApiPayloadsDefinitions = void 0;
|
|
14
|
+
const readYamlFile_1 = require("../../util/readYamlFile");
|
|
15
|
+
__exportStar(require("./document"), exports);
|
|
16
|
+
// Document definitions (reusable object for KuzzleRequest and KuzzleResponse)
|
|
17
|
+
exports.OpenApiPayloadsDefinitions = (0, readYamlFile_1.readYamlFile)(__dirname + '/payloads.yaml').definitions;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
3
|
"author": "The Kuzzle Team <support@kuzzle.io>",
|
|
4
|
-
"version": "2.16.
|
|
4
|
+
"version": "2.16.2",
|
|
5
5
|
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
|
|
6
6
|
"bin": {
|
|
7
7
|
"kuzzle": "bin/start-kuzzle-server"
|