kuzzle 2.29.0 → 2.29.1-beta.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.
- package/lib/api/httpRoutes.js +0 -29
- package/lib/api/openapi/OpenApiManager.js +0 -32
- package/lib/api/openapi/openApiGenerator.js +1 -1
- package/lib/config/default.config.js +13 -0
- package/lib/core/backend/backendOpenApi.js +1 -13
- package/lib/kuzzle/kuzzle.d.ts +133 -0
- package/lib/kuzzle/kuzzle.js +62 -14
- package/lib/types/Global.d.ts +9 -7
- package/lib/types/Global.js +1 -1
- package/lib/types/OpenApiDefinition.d.ts +1 -14
- package/lib/types/config/storageEngine/StorageEngineElasticsearchConfiguration.d.ts +20 -0
- package/package.json +1 -1
- package/lib/api/openapi/components/document/count.yaml +0 -47
- package/lib/api/openapi/components/document/create.yaml +0 -46
- package/lib/api/openapi/components/document/createOrReplace.yaml +0 -61
- package/lib/api/openapi/components/document/delete.yaml +0 -67
- package/lib/api/openapi/components/document/deleteByQuery.yaml +0 -90
- package/lib/api/openapi/components/document/exists.yaml +0 -35
- package/lib/api/openapi/components/document/get.yaml +0 -68
- package/lib/api/openapi/components/document/index.d.ts +0 -24
- package/lib/api/openapi/components/document/index.js +0 -65
- package/lib/api/openapi/components/document/mCreateOrReplace.yaml +0 -93
- package/lib/api/openapi/components/document/replace.yaml +0 -66
- package/lib/api/openapi/components/document/scroll.yaml +0 -49
- package/lib/api/openapi/components/document/update.yaml +0 -78
- package/lib/api/openapi/components/document/validate.yaml +0 -42
- package/lib/api/openapi/components/index.d.ts +0 -3
- package/lib/api/openapi/components/index.js +0 -23
- package/lib/api/openapi/components/payloads.yaml +0 -32
- package/lib/api/openapi/components/security/index.d.ts +0 -2
- package/lib/api/openapi/components/security/index.js +0 -10
- package/lib/api/openapi/components/security/upsertUser.yaml +0 -58
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
DocumentUpdate:
|
|
2
|
-
summary: "Updates a document content."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
required: true
|
|
11
|
-
- in: path
|
|
12
|
-
name: collection
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
required: true
|
|
16
|
-
- in: path
|
|
17
|
-
name: _id
|
|
18
|
-
schema:
|
|
19
|
-
type: string
|
|
20
|
-
required: true
|
|
21
|
-
- in: path
|
|
22
|
-
name: refresh
|
|
23
|
-
schema:
|
|
24
|
-
type: string
|
|
25
|
-
description: "if set to wait_for, Kuzzle will not respond until the deletion has been indexed"
|
|
26
|
-
required: false
|
|
27
|
-
- in: path
|
|
28
|
-
name: silent
|
|
29
|
-
schema:
|
|
30
|
-
type: boolean
|
|
31
|
-
description: "if set, then Kuzzle will not generate notifications. Available since 2.9.2"
|
|
32
|
-
required: false
|
|
33
|
-
- in: path
|
|
34
|
-
name: source
|
|
35
|
-
schema:
|
|
36
|
-
type: boolean
|
|
37
|
-
required: false
|
|
38
|
-
description: "if set to true Kuzzle will return the entire updated document body in the response."
|
|
39
|
-
- in: path
|
|
40
|
-
name: retryOnConflict
|
|
41
|
-
schema:
|
|
42
|
-
type: integer
|
|
43
|
-
description: "conflicts may occur if the same document gets updated multiple times within a short timespan, in a database cluster. You can set the retryOnConflict optional argument (with a retry count), to tell Kuzzle to retry the failing updates the specified amount of times before rejecting the request with an error."
|
|
44
|
-
required: false
|
|
45
|
-
- name: body
|
|
46
|
-
in: "body"
|
|
47
|
-
description: "Updates a document content."
|
|
48
|
-
required: true
|
|
49
|
-
schema:
|
|
50
|
-
$ref: "#/components/document/DocumentUpdateRequest"
|
|
51
|
-
responses:
|
|
52
|
-
200:
|
|
53
|
-
description: "Updates a document content."
|
|
54
|
-
schema:
|
|
55
|
-
$ref: "#/components/document/DocumentUpdateResponse"
|
|
56
|
-
|
|
57
|
-
components:
|
|
58
|
-
schemas:
|
|
59
|
-
DocumentUpdateRequest:
|
|
60
|
-
allOf:
|
|
61
|
-
- type: "object"
|
|
62
|
-
description: "document changes"
|
|
63
|
-
DocumentUpdateResponse:
|
|
64
|
-
allOf:
|
|
65
|
-
- $ref: "#/components/ResponsePayload"
|
|
66
|
-
- type: "object"
|
|
67
|
-
properties:
|
|
68
|
-
result:
|
|
69
|
-
type: "object"
|
|
70
|
-
properties:
|
|
71
|
-
_id:
|
|
72
|
-
type: "string"
|
|
73
|
-
description: "documentId"
|
|
74
|
-
_version:
|
|
75
|
-
type: "integer"
|
|
76
|
-
_source:
|
|
77
|
-
type: string
|
|
78
|
-
description: "partial or entire document"
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
DocumentValidate:
|
|
2
|
-
summary: "Validates data against existing validation rules."
|
|
3
|
-
tags:
|
|
4
|
-
- document
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: index
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
- in: path
|
|
11
|
-
name: collection
|
|
12
|
-
schema:
|
|
13
|
-
type: string
|
|
14
|
-
- in: body
|
|
15
|
-
name: "body"
|
|
16
|
-
description: "Document content to check."
|
|
17
|
-
required: true
|
|
18
|
-
schema:
|
|
19
|
-
$ref: "#/components/document/DocumentValidateRequest"
|
|
20
|
-
responses:
|
|
21
|
-
200:
|
|
22
|
-
description: "Returns the document validation status."
|
|
23
|
-
schema:
|
|
24
|
-
$ref: "#/components/document/DocumentValidateResponse"
|
|
25
|
-
|
|
26
|
-
components:
|
|
27
|
-
schemas:
|
|
28
|
-
DocumentValidateRequest:
|
|
29
|
-
allOf:
|
|
30
|
-
- type: "object"
|
|
31
|
-
description: "document content"
|
|
32
|
-
|
|
33
|
-
DocumentValidateResponse:
|
|
34
|
-
allOf:
|
|
35
|
-
- $ref: "#/components/ResponsePayload"
|
|
36
|
-
- type: "object"
|
|
37
|
-
properties:
|
|
38
|
-
result:
|
|
39
|
-
type: "object"
|
|
40
|
-
properties:
|
|
41
|
-
valid:
|
|
42
|
-
type: "boolean"
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.OpenApiPayloadsDefinitions = void 0;
|
|
18
|
-
const readYamlFile_1 = require("../../../util/readYamlFile");
|
|
19
|
-
__exportStar(require("./document"), exports);
|
|
20
|
-
__exportStar(require("./security"), exports);
|
|
21
|
-
// Document definitions (reusable object for KuzzleRequest and KuzzleResponse)
|
|
22
|
-
exports.OpenApiPayloadsDefinitions = (0, readYamlFile_1.readYamlFile)(__dirname + "/payloads.yaml").definitions;
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
definitions:
|
|
2
|
-
RequestPayload:
|
|
3
|
-
type: "object"
|
|
4
|
-
properties:
|
|
5
|
-
controller:
|
|
6
|
-
type: "string"
|
|
7
|
-
enum: "document"
|
|
8
|
-
action:
|
|
9
|
-
type: "string"
|
|
10
|
-
enum: "foo"
|
|
11
|
-
index:
|
|
12
|
-
type: "string"
|
|
13
|
-
collection:
|
|
14
|
-
type: "string"
|
|
15
|
-
ResponsePayload:
|
|
16
|
-
type: "object"
|
|
17
|
-
properties:
|
|
18
|
-
status:
|
|
19
|
-
type: "integer"
|
|
20
|
-
error:
|
|
21
|
-
type: "object"
|
|
22
|
-
index:
|
|
23
|
-
type: "string"
|
|
24
|
-
collection:
|
|
25
|
-
type: "string"
|
|
26
|
-
controller:
|
|
27
|
-
type: "string"
|
|
28
|
-
action:
|
|
29
|
-
type: "string"
|
|
30
|
-
requestId:
|
|
31
|
-
type: "integer"
|
|
32
|
-
description: "unique request identifie"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OpenApiSecurityUpsertUserComponent = exports.OpenApiSecurityUpsertUser = void 0;
|
|
4
|
-
const readYamlFile_1 = require("../../../../util/readYamlFile");
|
|
5
|
-
// reading the description of the UpsertUser action in the controller security.
|
|
6
|
-
// The yaml objects are then stored in the variables below
|
|
7
|
-
const upsertUserObject = (0, readYamlFile_1.readYamlFile)(__dirname + "/upsertUser.yaml");
|
|
8
|
-
exports.OpenApiSecurityUpsertUser = upsertUserObject.SecurityUpsertUser;
|
|
9
|
-
exports.OpenApiSecurityUpsertUserComponent = upsertUserObject.components.schemas;
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
SecurityUpsertUser:
|
|
2
|
-
summary: "Update or create a user."
|
|
3
|
-
tags:
|
|
4
|
-
- user
|
|
5
|
-
parameters:
|
|
6
|
-
- in: path
|
|
7
|
-
name: _id
|
|
8
|
-
schema:
|
|
9
|
-
type: string
|
|
10
|
-
required: true
|
|
11
|
-
- in: path
|
|
12
|
-
name: refresh
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
description: " if set to wait_for, Kuzzle will not respond until the deletion has been indexed"
|
|
16
|
-
required: false
|
|
17
|
-
- in: path
|
|
18
|
-
name: retryOnConflict
|
|
19
|
-
schema:
|
|
20
|
-
type: integer
|
|
21
|
-
description: "conflicts may occur if the same user gets updated multiple times within a short timespan, in a database cluster. You can set the retryOnConflict optional argument (with a retry count), to tell Kuzzle to retry the failing updates the specified amount of times before rejecting the request with an error."
|
|
22
|
-
required: false
|
|
23
|
-
- name: content
|
|
24
|
-
in: "body"
|
|
25
|
-
description: "Updates a user content."
|
|
26
|
-
required: true
|
|
27
|
-
schema:
|
|
28
|
-
$ref: "#/components/security/SecurityUpsertUserRequest"
|
|
29
|
-
responses:
|
|
30
|
-
200:
|
|
31
|
-
description: "Updates or creates a user."
|
|
32
|
-
schema:
|
|
33
|
-
$ref: "#/components/security/SecurityUpsertUserResponse"
|
|
34
|
-
|
|
35
|
-
components:
|
|
36
|
-
schemas:
|
|
37
|
-
SecurityUpsertUserRequest:
|
|
38
|
-
allOf:
|
|
39
|
-
- type: "object"
|
|
40
|
-
description: "user changes"
|
|
41
|
-
SecurityUpsertUserResponse:
|
|
42
|
-
allOf:
|
|
43
|
-
- $ref: "#/components/ResponsePayload"
|
|
44
|
-
- type: "object"
|
|
45
|
-
properties:
|
|
46
|
-
result:
|
|
47
|
-
type: "object"
|
|
48
|
-
properties:
|
|
49
|
-
_id:
|
|
50
|
-
type: "string"
|
|
51
|
-
description: "userId"
|
|
52
|
-
_version:
|
|
53
|
-
type: "integer"
|
|
54
|
-
_source:
|
|
55
|
-
type: "object"
|
|
56
|
-
description: ' (optional) actualized user content. This property appears only if the "source" option is set to true'
|
|
57
|
-
created:
|
|
58
|
-
type: "boolean"
|