kuzzle 2.16.0 → 2.16.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/lib/api/httpRoutes.js +1 -1
- package/lib/api/openApiGenerator.js +1 -1
- package/lib/api/openapi/document/count.yaml +47 -0
- package/lib/api/openapi/document/create.yaml +46 -0
- package/lib/api/openapi/document/createOrReplace.yaml +61 -0
- package/lib/api/openapi/document/delete.yaml +67 -0
- package/lib/api/openapi/document/deleteByQuery.yaml +90 -0
- package/lib/api/openapi/document/exists.yaml +35 -0
- package/lib/api/openapi/document/get.yaml +68 -0
- package/lib/api/openapi/{documents/document.d.ts → document/index.d.ts} +0 -0
- package/lib/api/openapi/{documents/document.js → document/index.js} +13 -13
- package/lib/api/openapi/document/replace.yaml +66 -0
- package/lib/api/openapi/document/scroll.yaml +49 -0
- package/lib/api/openapi/document/update.yaml +78 -0
- package/lib/api/openapi/payloads.yaml +32 -0
- package/lib/{api/openapi/tools.d.ts → util/readYamlFile.d.ts} +1 -1
- package/lib/{api/openapi/tools.js → util/readYamlFile.js} +1 -1
- package/package-lock.json +1 -1
- package/package.json +2 -17
- package/.kuzzlerc.sample +0 -988
- package/CONTRIBUTING.md +0 -116
- package/bin/.lib/colorOutput.js +0 -71
- package/bin/.upgrades/connectors/es.js +0 -90
- package/bin/.upgrades/connectors/redis.js +0 -112
- package/bin/.upgrades/lib/connectorContext.js +0 -38
- package/bin/.upgrades/lib/context.js +0 -142
- package/bin/.upgrades/lib/formatters.js +0 -103
- package/bin/.upgrades/lib/inquirerExtended.js +0 -46
- package/bin/.upgrades/lib/logger.js +0 -99
- package/bin/.upgrades/lib/progressBar.js +0 -70
- package/bin/.upgrades/versions/v1/checkConfiguration.js +0 -85
- package/bin/.upgrades/versions/v1/index.js +0 -35
- package/bin/.upgrades/versions/v1/upgradeCache.js +0 -149
- package/bin/.upgrades/versions/v1/upgradeStorage.js +0 -450
- package/protocols/available/.gitignore +0 -4
- package/protocols/enabled/.gitignore +0 -4
|
@@ -0,0 +1,78 @@
|
|
|
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/schemas/DocumentUpdateRequest"
|
|
51
|
+
responses:
|
|
52
|
+
200:
|
|
53
|
+
description: "Updates a document content."
|
|
54
|
+
schema:
|
|
55
|
+
$ref: "#/components/schemas/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"
|
|
@@ -0,0 +1,32 @@
|
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { JSONObject } from '
|
|
1
|
+
import { JSONObject } from '../../index';
|
|
2
2
|
export declare function readYamlFile(path: string): JSONObject;
|
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.1",
|
|
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"
|
|
@@ -118,31 +118,16 @@
|
|
|
118
118
|
},
|
|
119
119
|
"license": "Apache-2.0",
|
|
120
120
|
"files": [
|
|
121
|
-
"bin/**/*.js",
|
|
122
|
-
"bin/**/*.d.ts",
|
|
123
121
|
"lib/**/*.js",
|
|
124
122
|
"lib/**/*.d.ts",
|
|
125
123
|
"lib/**/*.json",
|
|
126
124
|
"lib/**/*.proto",
|
|
127
|
-
"
|
|
128
|
-
"plugins/kuzzle-plugin-cluster/*.d.ts",
|
|
129
|
-
"plugins/kuzzle-plugin-cluster/*.json",
|
|
130
|
-
"plugins/kuzzle-plugin-cluster/LICENSE.md",
|
|
131
|
-
"plugins/kuzzle-plugin-cluster/README.md",
|
|
132
|
-
"plugins/kuzzle-plugin-cluster/.keep",
|
|
133
|
-
"protocols/**/*.js",
|
|
134
|
-
"protocols/**/*.d.ts",
|
|
135
|
-
"protocols/**/*.json",
|
|
136
|
-
"protocols/**/LICENSE.md",
|
|
137
|
-
"protocols/**/README.md",
|
|
138
|
-
"protocols/**/.keep",
|
|
125
|
+
"lib/**/*.yaml",
|
|
139
126
|
"package.json",
|
|
140
127
|
"package-lock.json",
|
|
141
128
|
"index.js",
|
|
142
129
|
"index.d.ts",
|
|
143
|
-
".kuzzlerc.sample",
|
|
144
130
|
"LICENSE.md",
|
|
145
|
-
"CONTRIBUTING.md",
|
|
146
131
|
"README.md"
|
|
147
132
|
]
|
|
148
133
|
}
|