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.
Files changed (36) hide show
  1. package/lib/api/httpRoutes.js +1 -1
  2. package/lib/api/openApiGenerator.js +1 -1
  3. package/lib/api/openapi/document/count.yaml +47 -0
  4. package/lib/api/openapi/document/create.yaml +46 -0
  5. package/lib/api/openapi/document/createOrReplace.yaml +61 -0
  6. package/lib/api/openapi/document/delete.yaml +67 -0
  7. package/lib/api/openapi/document/deleteByQuery.yaml +90 -0
  8. package/lib/api/openapi/document/exists.yaml +35 -0
  9. package/lib/api/openapi/document/get.yaml +68 -0
  10. package/lib/api/openapi/{documents/document.d.ts → document/index.d.ts} +0 -0
  11. package/lib/api/openapi/{documents/document.js → document/index.js} +13 -13
  12. package/lib/api/openapi/document/replace.yaml +66 -0
  13. package/lib/api/openapi/document/scroll.yaml +49 -0
  14. package/lib/api/openapi/document/update.yaml +78 -0
  15. package/lib/api/openapi/payloads.yaml +32 -0
  16. package/lib/{api/openapi/tools.d.ts → util/readYamlFile.d.ts} +1 -1
  17. package/lib/{api/openapi/tools.js → util/readYamlFile.js} +1 -1
  18. package/package-lock.json +1 -1
  19. package/package.json +2 -17
  20. package/.kuzzlerc.sample +0 -988
  21. package/CONTRIBUTING.md +0 -116
  22. package/bin/.lib/colorOutput.js +0 -71
  23. package/bin/.upgrades/connectors/es.js +0 -90
  24. package/bin/.upgrades/connectors/redis.js +0 -112
  25. package/bin/.upgrades/lib/connectorContext.js +0 -38
  26. package/bin/.upgrades/lib/context.js +0 -142
  27. package/bin/.upgrades/lib/formatters.js +0 -103
  28. package/bin/.upgrades/lib/inquirerExtended.js +0 -46
  29. package/bin/.upgrades/lib/logger.js +0 -99
  30. package/bin/.upgrades/lib/progressBar.js +0 -70
  31. package/bin/.upgrades/versions/v1/checkConfiguration.js +0 -85
  32. package/bin/.upgrades/versions/v1/index.js +0 -35
  33. package/bin/.upgrades/versions/v1/upgradeCache.js +0 -149
  34. package/bin/.upgrades/versions/v1/upgradeStorage.js +0 -450
  35. package/protocols/available/.gitignore +0 -4
  36. 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 'kuzzle-sdk';
1
+ import { JSONObject } from '../../index';
2
2
  export declare function readYamlFile(path: string): JSONObject;
@@ -7,4 +7,4 @@ function readYamlFile(path) {
7
7
  return (0, js_yaml_1.load)((0, fs_1.readFileSync)(path, 'utf-8'));
8
8
  }
9
9
  exports.readYamlFile = readYamlFile;
10
- //# sourceMappingURL=tools.js.map
10
+ //# sourceMappingURL=readYamlFile.js.map
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
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.0",
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
- "plugins/kuzzle-plugin-cluster/*.js",
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
  }