kuzzle 2.16.0 → 2.16.4

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 (51) hide show
  1. package/lib/api/httpRoutes.js +1 -1
  2. package/lib/api/openApiGenerator.d.ts +2 -1
  3. package/lib/api/openApiGenerator.js +28 -30
  4. package/lib/api/openapi/document/count.yaml +47 -0
  5. package/lib/api/openapi/document/create.yaml +46 -0
  6. package/lib/api/openapi/document/createOrReplace.yaml +61 -0
  7. package/lib/api/openapi/document/delete.yaml +67 -0
  8. package/lib/api/openapi/document/deleteByQuery.yaml +90 -0
  9. package/lib/api/openapi/document/exists.yaml +35 -0
  10. package/lib/api/openapi/document/get.yaml +68 -0
  11. package/lib/api/openapi/{documents/document.d.ts → document/index.d.ts} +0 -1
  12. package/lib/api/openapi/{documents/document.js → document/index.js} +13 -15
  13. package/lib/api/openapi/document/replace.yaml +66 -0
  14. package/lib/api/openapi/document/scroll.yaml +49 -0
  15. package/lib/api/openapi/document/update.yaml +78 -0
  16. package/lib/api/openapi/index.d.ts +2 -0
  17. package/lib/api/openapi/index.js +18 -0
  18. package/lib/api/openapi/payloads.yaml +32 -0
  19. package/lib/api/request/kuzzleRequest.d.ts +64 -30
  20. package/lib/api/request/kuzzleRequest.js +135 -29
  21. package/lib/api/request/requestContext.d.ts +22 -17
  22. package/lib/api/request/requestContext.js +109 -44
  23. package/lib/api/request/requestInput.d.ts +24 -19
  24. package/lib/api/request/requestInput.js +175 -115
  25. package/lib/api/request/requestResponse.d.ts +8 -12
  26. package/lib/api/request/requestResponse.js +29 -35
  27. package/lib/core/backend/backendController.js +0 -3
  28. package/lib/core/plugin/plugin.js +18 -8
  29. package/lib/core/plugin/pluginsManager.js +2 -4
  30. package/lib/kuzzle/kuzzle.js +5 -9
  31. package/lib/{api/openapi/tools.d.ts → util/readYamlFile.d.ts} +1 -1
  32. package/lib/{api/openapi/tools.js → util/readYamlFile.js} +1 -1
  33. package/package-lock.json +22 -22
  34. package/package.json +6 -21
  35. package/.kuzzlerc.sample +0 -988
  36. package/CONTRIBUTING.md +0 -116
  37. package/bin/.lib/colorOutput.js +0 -71
  38. package/bin/.upgrades/connectors/es.js +0 -90
  39. package/bin/.upgrades/connectors/redis.js +0 -112
  40. package/bin/.upgrades/lib/connectorContext.js +0 -38
  41. package/bin/.upgrades/lib/context.js +0 -142
  42. package/bin/.upgrades/lib/formatters.js +0 -103
  43. package/bin/.upgrades/lib/inquirerExtended.js +0 -46
  44. package/bin/.upgrades/lib/logger.js +0 -99
  45. package/bin/.upgrades/lib/progressBar.js +0 -70
  46. package/bin/.upgrades/versions/v1/checkConfiguration.js +0 -85
  47. package/bin/.upgrades/versions/v1/index.js +0 -35
  48. package/bin/.upgrades/versions/v1/upgradeCache.js +0 -149
  49. package/bin/.upgrades/versions/v1/upgradeStorage.js +0 -450
  50. package/protocols/available/.gitignore +0 -4
  51. package/protocols/enabled/.gitignore +0 -4
@@ -34,7 +34,7 @@ const {
34
34
  OpenApiDocumentGet,
35
35
  OpenApiDocumentCreate,
36
36
  OpenApiDocumentCreateOrReplace,
37
- } = require('../api/openapi/documents/document');
37
+ } = require('./openapi/document');
38
38
 
39
39
 
40
40
  const routes = [
@@ -1,6 +1,7 @@
1
+ import { JSONObject } from '../../index';
1
2
  /**
2
3
  * Generates JSON OpenApi object
3
4
  *
4
5
  * @returns {object} openApi object
5
6
  */
6
- export declare function generateOpenApi(): any;
7
+ export declare function generateOpenApi(): JSONObject;
@@ -1,9 +1,4 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.generateOpenApi = void 0;
7
2
  /*
8
3
  * Kuzzle, a backend software, self-hostable and ready to use
9
4
  * to power modern apps
@@ -24,13 +19,18 @@ exports.generateOpenApi = void 0;
24
19
  * See the License for the specific language governing permissions and
25
20
  * limitations under the License.
26
21
  */
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.generateOpenApi = void 0;
27
27
  const lodash_1 = __importDefault(require("lodash"));
28
- const package_json_1 = require("./../../package.json");
29
- const document_1 = require("./openapi/documents/document");
30
- const inflector_1 = require("./../util/inflector");
28
+ const package_json_1 = require("../../package.json");
29
+ const openapi_1 = require("./openapi");
30
+ const inflector_1 = require("../util/inflector");
31
31
  const routeUrlMatch = /:([^/]*)/g;
32
32
  /**
33
- * Genrate basic openApi Controller
33
+ * Generate basic openApi Controller
34
34
  */
35
35
  function generateController(route, response) {
36
36
  if (route.controller !== undefined) {
@@ -47,7 +47,7 @@ function generateController(route, response) {
47
47
  }
48
48
  }
49
49
  /**
50
- * Genrate basic openApi Summary
50
+ * Generate basic openApi Summary
51
51
  */
52
52
  function generateSummary(route) {
53
53
  if (route.openapi.description === undefined) {
@@ -58,7 +58,7 @@ function generateSummary(route) {
58
58
  }
59
59
  }
60
60
  /**
61
- * Genrate basic openApi Parameters
61
+ * Generate basic openApi Parameters
62
62
  */
63
63
  function generateParameters(route) {
64
64
  if (route.openapi.parameters === undefined) {
@@ -80,7 +80,7 @@ function generateParameters(route) {
80
80
  }
81
81
  }
82
82
  /**
83
- * Genrate basic openApi Response
83
+ * Generate basic openApi Response
84
84
  */
85
85
  function generateResponse(route) {
86
86
  if (route.openapi.responses === undefined) {
@@ -96,22 +96,20 @@ function generateResponse(route) {
96
96
  *
97
97
  * @returns {object} openApi object
98
98
  */
99
- /* eslint-disable @typescript-eslint/no-unused-vars */
100
99
  function generateOpenApi() {
101
- /* eslint-enable @typescript-eslint/no-unused-vars */
102
100
  const routes = [];
103
- global.kuzzle.config.http.routes.forEach(_route => routes.push({ ..._route }));
104
- global.kuzzle.pluginsManager.routes.forEach(_route => routes.push({ ..._route }));
101
+ global.kuzzle.config.http.routes.forEach(route => routes.push({ ...route }));
102
+ global.kuzzle.pluginsManager.routes.forEach(route => routes.push({ ...route }));
105
103
  /* eslint-disable sort-keys */
106
104
  const response = {
107
105
  swagger: '2.0',
108
106
  info: {
109
107
  title: 'Kuzzle API',
110
- description: 'The Kuzzle HTTP API',
108
+ description: 'Kuzzle HTTP API definition',
111
109
  contact: {
112
110
  name: 'Kuzzle team',
113
- url: 'http://kuzzle.io',
114
- email: 'hello@kuzzle.io',
111
+ url: 'https://kuzzle.io',
112
+ email: 'support@kuzzle.io',
115
113
  discord: 'http://join.discord.kuzzle.io'
116
114
  },
117
115
  license: {
@@ -150,18 +148,18 @@ function generateOpenApi() {
150
148
  ],
151
149
  paths: {},
152
150
  components: {
153
- ...document_1.DefinitionsDocument,
151
+ ...openapi_1.OpenApiPayloadsDefinitions,
154
152
  schemas: {
155
- ...document_1.OpenApiDocumentCountComponent,
156
- ...document_1.OpenApiDocumentDeleteByQueryComponent,
157
- ...document_1.OpenApiDocumentDeleteComponent,
158
- ...document_1.OpenApiDocumentScrollComponent,
159
- ...document_1.OpenApiDocumentExistsComponent,
160
- ...document_1.OpenApiDocumentUpdateComponent,
161
- ...document_1.OpenApiDocumentReplaceComponent,
162
- ...document_1.OpenApiDocumentGetComponent,
163
- ...document_1.OpenApiDocumentCreateOrReplaceComponent,
164
- ...document_1.OpenApiDocumentCreateComponent,
153
+ ...openapi_1.OpenApiDocumentCountComponent,
154
+ ...openapi_1.OpenApiDocumentDeleteByQueryComponent,
155
+ ...openapi_1.OpenApiDocumentDeleteComponent,
156
+ ...openapi_1.OpenApiDocumentScrollComponent,
157
+ ...openapi_1.OpenApiDocumentExistsComponent,
158
+ ...openapi_1.OpenApiDocumentUpdateComponent,
159
+ ...openapi_1.OpenApiDocumentReplaceComponent,
160
+ ...openapi_1.OpenApiDocumentGetComponent,
161
+ ...openapi_1.OpenApiDocumentCreateOrReplaceComponent,
162
+ ...openapi_1.OpenApiDocumentCreateComponent,
165
163
  }
166
164
  }
167
165
  };
@@ -0,0 +1,47 @@
1
+ DocumentCount:
2
+ summary: "Counts documents in a collection."
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: "Counts documents in a collection."
17
+ required: true
18
+ schema:
19
+ $ref: "#/components/schemas/DocumentCountRequest"
20
+ responses:
21
+ 200:
22
+ description: "Counts documents in a collection."
23
+ schema:
24
+ $ref: "#/components/schemas/DocumentCountResponse"
25
+
26
+ components:
27
+ schemas:
28
+ DocumentCountRequest:
29
+ allOf:
30
+ - type: "object"
31
+ properties:
32
+ query:
33
+ type: "object"
34
+ properties:
35
+ match_all:
36
+ type: "object"
37
+
38
+ DocumentCountResponse:
39
+ allOf:
40
+ - $ref: "#/components/ResponsePayload"
41
+ - type: "object"
42
+ properties:
43
+ result:
44
+ type: "object"
45
+ properties:
46
+ count:
47
+ type: "integer"
@@ -0,0 +1,46 @@
1
+ DocumentCreate:
2
+ summary: "Creates a new document in the persistent data storage."
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
+ - name: body
15
+ in: "body"
16
+ description: "Creates a new document in the persistent data storage."
17
+ required: true
18
+ schema:
19
+ $ref: "#/components/schemas/DocumentCreateRequest"
20
+ responses:
21
+ 200:
22
+ description: "Creates a new document in the persistent data storage."
23
+ schema:
24
+ $ref: "#/components/schemas/DocumentCreateResponse"
25
+
26
+ components:
27
+ schemas:
28
+ DocumentCreateRequest:
29
+ allOf:
30
+ - type: "object"
31
+ description: "document content"
32
+ DocumentCreateResponse:
33
+ allOf:
34
+ - $ref: "#/components/ResponsePayload"
35
+ - type: "object"
36
+ properties:
37
+ result:
38
+ type: "object"
39
+ properties:
40
+ _id:
41
+ type: "string"
42
+ description: "documentId"
43
+ _version:
44
+ type: "integer"
45
+ _sources:
46
+ type: "object"
@@ -0,0 +1,61 @@
1
+ DocumentCreateOrReplace:
2
+ summary: "Creates a new document in the persistent data storage, or replaces its content if it already exists."
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: integer
20
+ required: true
21
+ - in: path
22
+ name: refresh
23
+ schema:
24
+ type: string
25
+ required: false
26
+ - name: body
27
+ in: "body"
28
+ description: "Creates a new document in the persistent data storage, or replaces its content if it already exists."
29
+ required: true
30
+ schema:
31
+ $ref: "#/components/schemas/DocumentCreateOrReplaceRequest"
32
+ responses:
33
+ 200:
34
+ description: "Creates a new document in the persistent data storage, or replaces its content if it already exists."
35
+ schema:
36
+ $ref: "#/components/schemas/DocumentCreateOrReplaceResponse"
37
+
38
+ components:
39
+ schemas:
40
+ DocumentCreateOrReplaceRequest:
41
+ allOf:
42
+ - type: "object"
43
+ description: "document content"
44
+ DocumentCreateOrReplaceResponse:
45
+ allOf:
46
+ - $ref: "#/components/ResponsePayload"
47
+ - type: "object"
48
+ properties:
49
+ result:
50
+ type: "object"
51
+ properties:
52
+ _id:
53
+ type: "string"
54
+ description: "documentId"
55
+ _version:
56
+ type: "integer"
57
+ _sources:
58
+ type: "object"
59
+ description: "document content"
60
+ created:
61
+ type: "boolean"
@@ -0,0 +1,67 @@
1
+ DocumentDelete:
2
+ summary: "Deletes a document."
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: documentId
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: source
29
+ schema:
30
+ type: boolean
31
+ description: "if set to true Kuzzle will return the deleted document body in the response."
32
+ required: false
33
+ - in: path
34
+ name: silent
35
+ schema:
36
+ type: boolean
37
+ description: "if set, then Kuzzle will not generate notifications. Available since 2.9.2"
38
+ required: false
39
+ responses:
40
+ 200:
41
+ description: "Deletes a document."
42
+ schema:
43
+ $ref: "#/components/schemas/DocumentDeleteResponse"
44
+
45
+ components:
46
+ schemas:
47
+ DocumentDeleteRequest:
48
+ allOf:
49
+ - type: "object"
50
+ properties:
51
+ _id:
52
+ type: "string"
53
+ description: "documentId"
54
+ refresh:
55
+ type: "string"
56
+ description: " if set to wait_for, Kuzzle will not respond until the created/replaced document is indexed"
57
+ DocumentDeleteResponse:
58
+ allOf:
59
+ - $ref: "#/components/ResponsePayload"
60
+ - type: "object"
61
+ properties:
62
+ result:
63
+ type: "object"
64
+ properties:
65
+ _id:
66
+ type: "string"
67
+ description: "documentId"
@@ -0,0 +1,90 @@
1
+ DocumentDeleteByQuery:
2
+ summary: "Deletes documents matching the provided search query."
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: documentId
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: source
29
+ schema:
30
+ type: boolean
31
+ description: "if set to true Kuzzle will return the deleted document body in the response."
32
+ required: false
33
+ - in: path
34
+ name: silent
35
+ schema:
36
+ type: boolean
37
+ description: "if set, then Kuzzle will not generate notifications. Available since 2.9.2"
38
+ required: false
39
+ - in: path
40
+ name: lang
41
+ schema:
42
+ type: string
43
+ description: "specify the query language to use. By default, it's elasticsearch but koncorde can also be used."
44
+ required: false
45
+ - name: body
46
+ in: "body"
47
+ description: "Deletes documents matching the provided search query."
48
+ required: true
49
+ schema:
50
+ $ref: "#/components/schemas/DocumentDeleteByQueryRequest"
51
+ responses:
52
+ 200:
53
+ description: "Deletes documents matching the provided search query."
54
+ schema:
55
+ $ref: "#/components/schemas/DocumentDeleteByQueryResponse"
56
+
57
+ components:
58
+ schemas:
59
+ DocumentDeleteByQueryRequest:
60
+ allOf:
61
+ - type: "object"
62
+ properties:
63
+ body:
64
+ type: "object"
65
+ properties:
66
+ query:
67
+ type: "object"
68
+ description: "documents matching this search query will be deleted. Uses the ElasticSearch Query DSL syntax."
69
+ DocumentDeleteByQueryResponse:
70
+ allOf:
71
+ - $ref: "#/components/ResponsePayload"
72
+ - type: "object"
73
+ properties:
74
+ result:
75
+ type: "object"
76
+ properties:
77
+ documents:
78
+ type: array
79
+ items:
80
+ type: object
81
+ properties:
82
+ _id:
83
+ type: string
84
+ _source:
85
+ type: object
86
+ description: Document content, Present only if 'source' parameter is set to true.
87
+ ids:
88
+ type: "array"
89
+ items:
90
+ type: "string"
@@ -0,0 +1,35 @@
1
+ DocumentExists:
2
+ summary: "Checks if a document exists."
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: integer
20
+ required: true
21
+ responses:
22
+ 200:
23
+ description: "Checks if a document exists."
24
+ schema:
25
+ $ref: "#/components/schemas/DocumentExistsResponse"
26
+
27
+ components:
28
+ schemas:
29
+ DocumentExistsResponse:
30
+ allOf:
31
+ - $ref: "#/components/ResponsePayload"
32
+ - type: "object"
33
+ properties:
34
+ result:
35
+ type: "boolean"
@@ -0,0 +1,68 @@
1
+ DocumentGet:
2
+ summary: "Gets a document."
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: documentId
18
+ schema:
19
+ type: string
20
+ required: true
21
+ responses:
22
+ 200:
23
+ description: "Gets a document."
24
+ schema:
25
+ $ref: "#/components/schemas/DocumentGetResponse"
26
+
27
+ components:
28
+ schemas:
29
+ DocumentGetResponse:
30
+ allOf:
31
+ - $ref: "#/components/ResponsePayload"
32
+ - type: "object"
33
+ properties:
34
+ result:
35
+ type: "object"
36
+ properties:
37
+ _id:
38
+ type: "string"
39
+ description: "documentId"
40
+ _version:
41
+ type: "integer"
42
+ _sources:
43
+ type: "object"
44
+ description: "document content"
45
+ properties:
46
+ name:
47
+ type: "object"
48
+ properties:
49
+ first:
50
+ type: "string"
51
+ last:
52
+ type: "string"
53
+ _kuzzle_info:
54
+ type: "object"
55
+ description: "Information about the Kuzzle documents"
56
+ properties:
57
+ author:
58
+ type: string
59
+ createdAt:
60
+ type: integer
61
+ updatedAt:
62
+ type:
63
+ - integer
64
+ - null
65
+ updater:
66
+ type:
67
+ - integer
68
+ - null
@@ -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.DefinitionsDocument = 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
- const tools_1 = require("../tools");
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
+ 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, tools_1.readYamlFile)('./lib/api/openapi/documents/count.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/create.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/createOrReplace.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/get.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/replace.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/exists.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/update.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/scroll.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/delete.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/documents/deleteByQuery.yaml');
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, tools_1.readYamlFile)('./lib/api/openapi/payloads.yaml').definitions;
57
- //# sourceMappingURL=document.js.map
55
+ //# sourceMappingURL=index.js.map