kuzzle 2.29.0 → 2.29.1-beta.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 +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.js +60 -13
- 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,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"
|