@emilgroup/document-sdk-node 1.2.0 → 1.2.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 (123) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/document-templates-api.ts +88 -94
  4. package/api/documents-api.ts +152 -34
  5. package/api/layouts-api.ts +52 -28
  6. package/api/search-keywords-api.ts +168 -0
  7. package/api/searchable-document-owners-api.ts +26 -22
  8. package/api/searchable-documents-api.ts +16 -12
  9. package/api.ts +2 -0
  10. package/base.ts +1 -1
  11. package/dist/api/document-templates-api.d.ts +82 -78
  12. package/dist/api/document-templates-api.js +73 -67
  13. package/dist/api/documents-api.d.ts +93 -29
  14. package/dist/api/documents-api.js +121 -23
  15. package/dist/api/layouts-api.d.ts +52 -30
  16. package/dist/api/layouts-api.js +43 -23
  17. package/dist/api/search-keywords-api.d.ts +96 -0
  18. package/dist/api/search-keywords-api.js +229 -0
  19. package/dist/api/searchable-document-owners-api.d.ts +23 -19
  20. package/dist/api/searchable-document-owners-api.js +16 -12
  21. package/dist/api/searchable-documents-api.d.ts +16 -12
  22. package/dist/api/searchable-documents-api.js +14 -10
  23. package/dist/api.d.ts +1 -0
  24. package/dist/api.js +1 -0
  25. package/dist/base.js +1 -1
  26. package/dist/models/create-doc-template-request-dto.d.ts +10 -4
  27. package/dist/models/create-doc-template-response-class.d.ts +25 -0
  28. package/dist/models/create-doc-template-response-class.js +15 -0
  29. package/dist/models/create-document-request-dto.d.ts +20 -8
  30. package/dist/models/create-document-sync-response-class.d.ts +25 -0
  31. package/dist/models/create-document-sync-response-class.js +15 -0
  32. package/dist/models/create-html-template-dto.d.ts +1 -1
  33. package/dist/models/create-layout-request-dto.d.ts +10 -10
  34. package/dist/models/create-layout-response-class.d.ts +25 -0
  35. package/dist/models/create-layout-response-class.js +15 -0
  36. package/dist/models/create-presigned-post-request-dto.d.ts +127 -0
  37. package/dist/models/create-presigned-post-request-dto.js +51 -0
  38. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  39. package/dist/models/create-presigned-post-response-class.js +15 -0
  40. package/dist/models/delete-layout-request-dto.d.ts +1 -1
  41. package/dist/models/delete-request-dto.d.ts +1 -1
  42. package/dist/models/delete-response-class.d.ts +24 -0
  43. package/dist/models/delete-response-class.js +15 -0
  44. package/dist/models/doc-template-class.d.ts +25 -19
  45. package/dist/models/document-class.d.ts +20 -8
  46. package/dist/models/download-document-request-dto.d.ts +2 -2
  47. package/dist/models/get-doc-template-request-dto.d.ts +1 -1
  48. package/dist/models/get-doc-template-response-class.d.ts +1 -1
  49. package/dist/models/get-document-download-url-response-class.d.ts +1 -1
  50. package/dist/models/get-layout-request-dto.d.ts +1 -1
  51. package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
  52. package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
  53. package/dist/models/html-template-class.d.ts +7 -7
  54. package/dist/models/index.d.ts +14 -0
  55. package/dist/models/index.js +14 -0
  56. package/dist/models/layout-class.d.ts +11 -11
  57. package/dist/models/list-doc-template-request-dto.d.ts +48 -0
  58. package/dist/models/list-doc-template-request-dto.js +15 -0
  59. package/dist/models/list-doc-templates-response-class.d.ts +1 -1
  60. package/dist/models/list-documents-response-class.d.ts +1 -1
  61. package/dist/models/list-layouts-response-class.d.ts +1 -1
  62. package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
  63. package/dist/models/list-search-keywords-request-dto.js +15 -0
  64. package/dist/models/list-search-keywords-response-class.d.ts +24 -0
  65. package/dist/models/list-search-keywords-response-class.js +15 -0
  66. package/dist/models/list-searchable-document-owners-response-class.d.ts +3 -2
  67. package/dist/models/list-searchable-documents-request-dto.d.ts +2 -2
  68. package/dist/models/list-searchable-documents-response-class.d.ts +5 -4
  69. package/dist/models/searchable-document-class.d.ts +66 -0
  70. package/dist/models/searchable-document-class.js +15 -0
  71. package/dist/models/searchable-document-owner-class.d.ts +30 -0
  72. package/dist/models/searchable-document-owner-class.js +15 -0
  73. package/dist/models/update-doc-template-request-dto.d.ts +16 -10
  74. package/dist/models/update-doc-template-response-class.d.ts +1 -1
  75. package/dist/models/update-document-request-dto.d.ts +10 -4
  76. package/dist/models/update-document-response-class.d.ts +25 -0
  77. package/dist/models/update-document-response-class.js +15 -0
  78. package/dist/models/update-html-template-dto.d.ts +42 -0
  79. package/dist/models/update-html-template-dto.js +21 -0
  80. package/dist/models/update-layout-request-dto.d.ts +15 -15
  81. package/dist/models/update-layout-response-class.d.ts +1 -1
  82. package/models/create-doc-template-request-dto.ts +10 -4
  83. package/models/create-doc-template-response-class.ts +31 -0
  84. package/models/create-document-request-dto.ts +20 -8
  85. package/models/create-document-sync-response-class.ts +31 -0
  86. package/models/create-html-template-dto.ts +1 -1
  87. package/models/create-layout-request-dto.ts +10 -10
  88. package/models/create-layout-response-class.ts +31 -0
  89. package/models/create-presigned-post-request-dto.ts +137 -0
  90. package/models/create-presigned-post-response-class.ts +36 -0
  91. package/models/delete-layout-request-dto.ts +1 -1
  92. package/models/delete-request-dto.ts +1 -1
  93. package/models/delete-response-class.ts +30 -0
  94. package/models/doc-template-class.ts +25 -19
  95. package/models/document-class.ts +20 -8
  96. package/models/download-document-request-dto.ts +2 -2
  97. package/models/get-doc-template-request-dto.ts +1 -1
  98. package/models/get-doc-template-response-class.ts +1 -1
  99. package/models/get-document-download-url-response-class.ts +1 -1
  100. package/models/get-layout-request-dto.ts +1 -1
  101. package/models/get-signed-s3-key-url-response-class.ts +30 -0
  102. package/models/html-template-class.ts +7 -7
  103. package/models/index.ts +14 -0
  104. package/models/layout-class.ts +11 -11
  105. package/models/list-doc-template-request-dto.ts +54 -0
  106. package/models/list-doc-templates-response-class.ts +1 -1
  107. package/models/list-documents-response-class.ts +1 -1
  108. package/models/list-layouts-response-class.ts +1 -1
  109. package/models/list-search-keywords-request-dto.ts +30 -0
  110. package/models/list-search-keywords-response-class.ts +30 -0
  111. package/models/list-searchable-document-owners-response-class.ts +3 -2
  112. package/models/list-searchable-documents-request-dto.ts +2 -2
  113. package/models/list-searchable-documents-response-class.ts +5 -4
  114. package/models/searchable-document-class.ts +72 -0
  115. package/models/searchable-document-owner-class.ts +36 -0
  116. package/models/update-doc-template-request-dto.ts +16 -10
  117. package/models/update-doc-template-response-class.ts +1 -1
  118. package/models/update-document-request-dto.ts +10 -4
  119. package/models/update-document-response-class.ts +31 -0
  120. package/models/update-html-template-dto.ts +51 -0
  121. package/models/update-layout-request-dto.ts +15 -15
  122. package/models/update-layout-response-class.ts +1 -1
  123. package/package.json +1 -1
@@ -97,7 +97,8 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
100
+ * This will create a layout.
101
+ * @summary Create the layout
101
102
  * @param {CreateLayoutRequestDto} createLayoutRequestDto
102
103
  * @param {string} [authorization] Bearer Token
103
104
  * @param {*} [options] Override http request option.
@@ -145,7 +146,8 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
145
146
  });
146
147
  },
147
148
  /**
148
- *
149
+ * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
150
+ * @summary Delete the layout
149
151
  * @param {number} id
150
152
  * @param {string} [authorization] Bearer Token
151
153
  * @param {*} [options] Override http request option.
@@ -192,9 +194,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
192
194
  });
193
195
  },
194
196
  /**
195
- *
197
+ * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
198
+ * @summary Retrieve the layout
196
199
  * @param {string} id
197
- * @param {number} id2 Layout id
200
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
198
201
  * @param {string} [authorization] Bearer Token
199
202
  * @param {*} [options] Override http request option.
200
203
  * @throws {RequiredError}
@@ -245,7 +248,8 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
245
248
  });
246
249
  },
247
250
  /**
248
- *
251
+ * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
252
+ * @summary List layouts
249
253
  * @param {string} [authorization] Bearer Token
250
254
  * @param {number} [pageSize] Page size
251
255
  * @param {string} [pageToken] Page token
@@ -312,7 +316,8 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
312
316
  });
313
317
  },
314
318
  /**
315
- *
319
+ * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
320
+ * @summary Update the layout
316
321
  * @param {number} id
317
322
  * @param {UpdateLayoutRequestDto} updateLayoutRequestDto
318
323
  * @param {string} [authorization] Bearer Token
@@ -374,7 +379,8 @@ var LayoutsApiFp = function (configuration) {
374
379
  var localVarAxiosParamCreator = (0, exports.LayoutsApiAxiosParamCreator)(configuration);
375
380
  return {
376
381
  /**
377
- *
382
+ * This will create a layout.
383
+ * @summary Create the layout
378
384
  * @param {CreateLayoutRequestDto} createLayoutRequestDto
379
385
  * @param {string} [authorization] Bearer Token
380
386
  * @param {*} [options] Override http request option.
@@ -394,7 +400,8 @@ var LayoutsApiFp = function (configuration) {
394
400
  });
395
401
  },
396
402
  /**
397
- *
403
+ * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
404
+ * @summary Delete the layout
398
405
  * @param {number} id
399
406
  * @param {string} [authorization] Bearer Token
400
407
  * @param {*} [options] Override http request option.
@@ -414,9 +421,10 @@ var LayoutsApiFp = function (configuration) {
414
421
  });
415
422
  },
416
423
  /**
417
- *
424
+ * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
425
+ * @summary Retrieve the layout
418
426
  * @param {string} id
419
- * @param {number} id2 Layout id
427
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
420
428
  * @param {string} [authorization] Bearer Token
421
429
  * @param {*} [options] Override http request option.
422
430
  * @throws {RequiredError}
@@ -435,7 +443,8 @@ var LayoutsApiFp = function (configuration) {
435
443
  });
436
444
  },
437
445
  /**
438
- *
446
+ * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
447
+ * @summary List layouts
439
448
  * @param {string} [authorization] Bearer Token
440
449
  * @param {number} [pageSize] Page size
441
450
  * @param {string} [pageToken] Page token
@@ -460,7 +469,8 @@ var LayoutsApiFp = function (configuration) {
460
469
  });
461
470
  },
462
471
  /**
463
- *
472
+ * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
473
+ * @summary Update the layout
464
474
  * @param {number} id
465
475
  * @param {UpdateLayoutRequestDto} updateLayoutRequestDto
466
476
  * @param {string} [authorization] Bearer Token
@@ -491,7 +501,8 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
491
501
  var localVarFp = (0, exports.LayoutsApiFp)(configuration);
492
502
  return {
493
503
  /**
494
- *
504
+ * This will create a layout.
505
+ * @summary Create the layout
495
506
  * @param {CreateLayoutRequestDto} createLayoutRequestDto
496
507
  * @param {string} [authorization] Bearer Token
497
508
  * @param {*} [options] Override http request option.
@@ -501,7 +512,8 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
501
512
  return localVarFp.createLayout(createLayoutRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
502
513
  },
503
514
  /**
504
- *
515
+ * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
516
+ * @summary Delete the layout
505
517
  * @param {number} id
506
518
  * @param {string} [authorization] Bearer Token
507
519
  * @param {*} [options] Override http request option.
@@ -511,9 +523,10 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
511
523
  return localVarFp.deleteLayout(id, authorization, options).then(function (request) { return request(axios, basePath); });
512
524
  },
513
525
  /**
514
- *
526
+ * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
527
+ * @summary Retrieve the layout
515
528
  * @param {string} id
516
- * @param {number} id2 Layout id
529
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
517
530
  * @param {string} [authorization] Bearer Token
518
531
  * @param {*} [options] Override http request option.
519
532
  * @throws {RequiredError}
@@ -522,7 +535,8 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
522
535
  return localVarFp.getLayout(id, id2, authorization, options).then(function (request) { return request(axios, basePath); });
523
536
  },
524
537
  /**
525
- *
538
+ * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
539
+ * @summary List layouts
526
540
  * @param {string} [authorization] Bearer Token
527
541
  * @param {number} [pageSize] Page size
528
542
  * @param {string} [pageToken] Page token
@@ -537,7 +551,8 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
537
551
  return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
538
552
  },
539
553
  /**
540
- *
554
+ * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
555
+ * @summary Update the layout
541
556
  * @param {number} id
542
557
  * @param {UpdateLayoutRequestDto} updateLayoutRequestDto
543
558
  * @param {string} [authorization] Bearer Token
@@ -562,7 +577,8 @@ var LayoutsApi = /** @class */ (function (_super) {
562
577
  return _super !== null && _super.apply(this, arguments) || this;
563
578
  }
564
579
  /**
565
- *
580
+ * This will create a layout.
581
+ * @summary Create the layout
566
582
  * @param {LayoutsApiCreateLayoutRequest} requestParameters Request parameters.
567
583
  * @param {*} [options] Override http request option.
568
584
  * @throws {RequiredError}
@@ -573,7 +589,8 @@ var LayoutsApi = /** @class */ (function (_super) {
573
589
  return (0, exports.LayoutsApiFp)(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
574
590
  };
575
591
  /**
576
- *
592
+ * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
593
+ * @summary Delete the layout
577
594
  * @param {LayoutsApiDeleteLayoutRequest} requestParameters Request parameters.
578
595
  * @param {*} [options] Override http request option.
579
596
  * @throws {RequiredError}
@@ -584,7 +601,8 @@ var LayoutsApi = /** @class */ (function (_super) {
584
601
  return (0, exports.LayoutsApiFp)(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
585
602
  };
586
603
  /**
587
- *
604
+ * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
605
+ * @summary Retrieve the layout
588
606
  * @param {LayoutsApiGetLayoutRequest} requestParameters Request parameters.
589
607
  * @param {*} [options] Override http request option.
590
608
  * @throws {RequiredError}
@@ -595,7 +613,8 @@ var LayoutsApi = /** @class */ (function (_super) {
595
613
  return (0, exports.LayoutsApiFp)(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
596
614
  };
597
615
  /**
598
- *
616
+ * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
617
+ * @summary List layouts
599
618
  * @param {LayoutsApiListLayoutsRequest} requestParameters Request parameters.
600
619
  * @param {*} [options] Override http request option.
601
620
  * @throws {RequiredError}
@@ -607,7 +626,8 @@ var LayoutsApi = /** @class */ (function (_super) {
607
626
  return (0, exports.LayoutsApiFp)(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
627
  };
609
628
  /**
610
- *
629
+ * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
630
+ * @summary Update the layout
611
631
  * @param {LayoutsApiUpdateLayoutRequest} requestParameters Request parameters.
612
632
  * @param {*} [options] Override http request option.
613
633
  * @throws {RequiredError}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { ListSearchKeywordsResponseClass } from '../models';
16
+ /**
17
+ * SearchKeywordsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const SearchKeywordsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
23
+ * @summary List keywords
24
+ * @param {string} searchText Text to search in the documents.
25
+ * @param {string} [authorization] Bearer Token
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ listSearchKeywords: (searchText: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ };
31
+ /**
32
+ * SearchKeywordsApi - functional programming interface
33
+ * @export
34
+ */
35
+ export declare const SearchKeywordsApiFp: (configuration?: Configuration) => {
36
+ /**
37
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
38
+ * @summary List keywords
39
+ * @param {string} searchText Text to search in the documents.
40
+ * @param {string} [authorization] Bearer Token
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchKeywordsResponseClass>>;
45
+ };
46
+ /**
47
+ * SearchKeywordsApi - factory interface
48
+ * @export
49
+ */
50
+ export declare const SearchKeywordsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
51
+ /**
52
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
53
+ * @summary List keywords
54
+ * @param {string} searchText Text to search in the documents.
55
+ * @param {string} [authorization] Bearer Token
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<ListSearchKeywordsResponseClass>;
60
+ };
61
+ /**
62
+ * Request parameters for listSearchKeywords operation in SearchKeywordsApi.
63
+ * @export
64
+ * @interface SearchKeywordsApiListSearchKeywordsRequest
65
+ */
66
+ export interface SearchKeywordsApiListSearchKeywordsRequest {
67
+ /**
68
+ * Text to search in the documents.
69
+ * @type {string}
70
+ * @memberof SearchKeywordsApiListSearchKeywords
71
+ */
72
+ readonly searchText: string;
73
+ /**
74
+ * Bearer Token
75
+ * @type {string}
76
+ * @memberof SearchKeywordsApiListSearchKeywords
77
+ */
78
+ readonly authorization?: string;
79
+ }
80
+ /**
81
+ * SearchKeywordsApi - object-oriented interface
82
+ * @export
83
+ * @class SearchKeywordsApi
84
+ * @extends {BaseAPI}
85
+ */
86
+ export declare class SearchKeywordsApi extends BaseAPI {
87
+ /**
88
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
89
+ * @summary List keywords
90
+ * @param {SearchKeywordsApiListSearchKeywordsRequest} requestParameters Request parameters.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof SearchKeywordsApi
94
+ */
95
+ listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any>>;
96
+ }
@@ -0,0 +1,229 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.SearchKeywordsApi = exports.SearchKeywordsApiFactory = exports.SearchKeywordsApiFp = exports.SearchKeywordsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * SearchKeywordsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var SearchKeywordsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
101
+ * @summary List keywords
102
+ * @param {string} searchText Text to search in the documents.
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ listSearchKeywords: function (searchText, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'searchText' is not null or undefined
115
+ (0, common_1.assertParamExists)('listSearchKeywords', 'searchText', searchText);
116
+ localVarPath = "/documentservice/v1/search-keywords";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (searchText !== undefined) {
133
+ localVarQueryParameter['searchText'] = searchText;
134
+ }
135
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
+ }
138
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
141
+ return [2 /*return*/, {
142
+ url: (0, common_1.toPathString)(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ }];
145
+ }
146
+ });
147
+ });
148
+ },
149
+ };
150
+ };
151
+ exports.SearchKeywordsApiAxiosParamCreator = SearchKeywordsApiAxiosParamCreator;
152
+ /**
153
+ * SearchKeywordsApi - functional programming interface
154
+ * @export
155
+ */
156
+ var SearchKeywordsApiFp = function (configuration) {
157
+ var localVarAxiosParamCreator = (0, exports.SearchKeywordsApiAxiosParamCreator)(configuration);
158
+ return {
159
+ /**
160
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
161
+ * @summary List keywords
162
+ * @param {string} searchText Text to search in the documents.
163
+ * @param {string} [authorization] Bearer Token
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ listSearchKeywords: function (searchText, authorization, options) {
168
+ return __awaiter(this, void 0, void 0, function () {
169
+ var localVarAxiosArgs;
170
+ return __generator(this, function (_a) {
171
+ switch (_a.label) {
172
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchKeywords(searchText, authorization, options)];
173
+ case 1:
174
+ localVarAxiosArgs = _a.sent();
175
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
176
+ }
177
+ });
178
+ });
179
+ },
180
+ };
181
+ };
182
+ exports.SearchKeywordsApiFp = SearchKeywordsApiFp;
183
+ /**
184
+ * SearchKeywordsApi - factory interface
185
+ * @export
186
+ */
187
+ var SearchKeywordsApiFactory = function (configuration, basePath, axios) {
188
+ var localVarFp = (0, exports.SearchKeywordsApiFp)(configuration);
189
+ return {
190
+ /**
191
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
192
+ * @summary List keywords
193
+ * @param {string} searchText Text to search in the documents.
194
+ * @param {string} [authorization] Bearer Token
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ listSearchKeywords: function (searchText, authorization, options) {
199
+ return localVarFp.listSearchKeywords(searchText, authorization, options).then(function (request) { return request(axios, basePath); });
200
+ },
201
+ };
202
+ };
203
+ exports.SearchKeywordsApiFactory = SearchKeywordsApiFactory;
204
+ /**
205
+ * SearchKeywordsApi - object-oriented interface
206
+ * @export
207
+ * @class SearchKeywordsApi
208
+ * @extends {BaseAPI}
209
+ */
210
+ var SearchKeywordsApi = /** @class */ (function (_super) {
211
+ __extends(SearchKeywordsApi, _super);
212
+ function SearchKeywordsApi() {
213
+ return _super !== null && _super.apply(this, arguments) || this;
214
+ }
215
+ /**
216
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
217
+ * @summary List keywords
218
+ * @param {SearchKeywordsApiListSearchKeywordsRequest} requestParameters Request parameters.
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ * @memberof SearchKeywordsApi
222
+ */
223
+ SearchKeywordsApi.prototype.listSearchKeywords = function (requestParameters, options) {
224
+ var _this = this;
225
+ return (0, exports.SearchKeywordsApiFp)(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
226
+ };
227
+ return SearchKeywordsApi;
228
+ }(base_1.BaseAPI));
229
+ exports.SearchKeywordsApi = SearchKeywordsApi;
@@ -19,7 +19,8 @@ import { ListSearchableDocumentOwnersResponseClass } from '../models';
19
19
  */
20
20
  export declare const SearchableDocumentOwnersApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
- *
22
+ * Returns the list of the searchable document owners.
23
+ * @summary List searchable document owners
23
24
  * @param {string} [authorization] Bearer Token
24
25
  * @param {number} [pageSize] Page size
25
26
  * @param {string} [pageToken] Page token
@@ -30,7 +31,7 @@ export declare const SearchableDocumentOwnersApiAxiosParamCreator: (configuratio
30
31
  * @param {*} [options] Override http request option.
31
32
  * @throws {RequiredError}
32
33
  */
33
- listSearchableDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ listSearchableDocumentOwners: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
35
  };
35
36
  /**
36
37
  * SearchableDocumentOwnersApi - functional programming interface
@@ -38,7 +39,8 @@ export declare const SearchableDocumentOwnersApiAxiosParamCreator: (configuratio
38
39
  */
39
40
  export declare const SearchableDocumentOwnersApiFp: (configuration?: Configuration) => {
40
41
  /**
41
- *
42
+ * Returns the list of the searchable document owners.
43
+ * @summary List searchable document owners
42
44
  * @param {string} [authorization] Bearer Token
43
45
  * @param {number} [pageSize] Page size
44
46
  * @param {string} [pageToken] Page token
@@ -49,7 +51,7 @@ export declare const SearchableDocumentOwnersApiFp: (configuration?: Configurati
49
51
  * @param {*} [options] Override http request option.
50
52
  * @throws {RequiredError}
51
53
  */
52
- listSearchableDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>>;
54
+ listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>>;
53
55
  };
54
56
  /**
55
57
  * SearchableDocumentOwnersApi - factory interface
@@ -57,7 +59,8 @@ export declare const SearchableDocumentOwnersApiFp: (configuration?: Configurati
57
59
  */
58
60
  export declare const SearchableDocumentOwnersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
59
61
  /**
60
- *
62
+ * Returns the list of the searchable document owners.
63
+ * @summary List searchable document owners
61
64
  * @param {string} [authorization] Bearer Token
62
65
  * @param {number} [pageSize] Page size
63
66
  * @param {string} [pageToken] Page token
@@ -68,54 +71,54 @@ export declare const SearchableDocumentOwnersApiFactory: (configuration?: Config
68
71
  * @param {*} [options] Override http request option.
69
72
  * @throws {RequiredError}
70
73
  */
71
- listSearchableDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass>;
74
+ listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass>;
72
75
  };
73
76
  /**
74
- * Request parameters for listSearchableDocuments operation in SearchableDocumentOwnersApi.
77
+ * Request parameters for listSearchableDocumentOwners operation in SearchableDocumentOwnersApi.
75
78
  * @export
76
- * @interface SearchableDocumentOwnersApiListSearchableDocumentsRequest
79
+ * @interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest
77
80
  */
78
- export interface SearchableDocumentOwnersApiListSearchableDocumentsRequest {
81
+ export interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest {
79
82
  /**
80
83
  * Bearer Token
81
84
  * @type {string}
82
- * @memberof SearchableDocumentOwnersApiListSearchableDocuments
85
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
83
86
  */
84
87
  readonly authorization?: string;
85
88
  /**
86
89
  * Page size
87
90
  * @type {number}
88
- * @memberof SearchableDocumentOwnersApiListSearchableDocuments
91
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
89
92
  */
90
93
  readonly pageSize?: number;
91
94
  /**
92
95
  * Page token
93
96
  * @type {string}
94
- * @memberof SearchableDocumentOwnersApiListSearchableDocuments
97
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
95
98
  */
96
99
  readonly pageToken?: string;
97
100
  /**
98
101
  * List filter
99
102
  * @type {string}
100
- * @memberof SearchableDocumentOwnersApiListSearchableDocuments
103
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
101
104
  */
102
105
  readonly filter?: string;
103
106
  /**
104
107
  * Search query
105
108
  * @type {string}
106
- * @memberof SearchableDocumentOwnersApiListSearchableDocuments
109
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
107
110
  */
108
111
  readonly search?: string;
109
112
  /**
110
113
  * Ordering criteria
111
114
  * @type {string}
112
- * @memberof SearchableDocumentOwnersApiListSearchableDocuments
115
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
113
116
  */
114
117
  readonly order?: string;
115
118
  /**
116
119
  * Extra fields to fetch
117
120
  * @type {string}
118
- * @memberof SearchableDocumentOwnersApiListSearchableDocuments
121
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
119
122
  */
120
123
  readonly expand?: string;
121
124
  }
@@ -127,11 +130,12 @@ export interface SearchableDocumentOwnersApiListSearchableDocumentsRequest {
127
130
  */
128
131
  export declare class SearchableDocumentOwnersApi extends BaseAPI {
129
132
  /**
130
- *
131
- * @param {SearchableDocumentOwnersApiListSearchableDocumentsRequest} requestParameters Request parameters.
133
+ * Returns the list of the searchable document owners.
134
+ * @summary List searchable document owners
135
+ * @param {SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest} requestParameters Request parameters.
132
136
  * @param {*} [options] Override http request option.
133
137
  * @throws {RequiredError}
134
138
  * @memberof SearchableDocumentOwnersApi
135
139
  */
136
- listSearchableDocuments(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any>>;
140
+ listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any>>;
137
141
  }