@emilgroup/document-sdk 1.37.1-beta.2 → 1.38.1-beta.0

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.
@@ -29,7 +29,7 @@ import { ListSearchableDocumentsResponseClass } from '../models';
29
29
  export const SearchableDocumentsApiAxiosParamCreator = function (configuration?: Configuration) {
30
30
  return {
31
31
  /**
32
- * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
32
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
33
33
  * @summary List searchable documents
34
34
  * @param {string} searchText Text to search in the documents.
35
35
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
@@ -99,7 +99,7 @@ export const SearchableDocumentsApiFp = function(configuration?: Configuration)
99
99
  const localVarAxiosParamCreator = SearchableDocumentsApiAxiosParamCreator(configuration)
100
100
  return {
101
101
  /**
102
- * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
102
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
103
103
  * @summary List searchable documents
104
104
  * @param {string} searchText Text to search in the documents.
105
105
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
@@ -123,7 +123,7 @@ export const SearchableDocumentsApiFactory = function (configuration?: Configura
123
123
  const localVarFp = SearchableDocumentsApiFp(configuration)
124
124
  return {
125
125
  /**
126
- * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
126
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
127
127
  * @summary List searchable documents
128
128
  * @param {string} searchText Text to search in the documents.
129
129
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
@@ -181,7 +181,7 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
181
181
  */
182
182
  export class SearchableDocumentsApi extends BaseAPI {
183
183
  /**
184
- * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
184
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
185
185
  * @summary List searchable documents
186
186
  * @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
187
187
  * @param {*} [options] Override http request option.
@@ -25,7 +25,7 @@ import { UpdateDocTemplateResponseClass } from '../models';
25
25
  */
26
26
  export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Configuration) => {
27
27
  /**
28
- * This will create a document template.
28
+ * This will create a document template. **Required Permissions** \"document-management.documents.create\"
29
29
  * @summary Create the document template
30
30
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
31
31
  * @param {string} [authorization] Bearer Token
@@ -34,7 +34,7 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
34
34
  */
35
35
  createDocTemplate: (createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
36
  /**
37
- * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
37
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.documents.delete\"
38
38
  * @summary Delete the document template
39
39
  * @param {number} id
40
40
  * @param {string} [authorization] Bearer Token
@@ -43,7 +43,7 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
43
43
  */
44
44
  deleteDocTemplate: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
45
  /**
46
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
46
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.documents.view\"
47
47
  * @summary Retrieve the document template
48
48
  * @param {number} id
49
49
  * @param {string} [authorization] Bearer Token
@@ -53,7 +53,7 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
53
53
  */
54
54
  getDocTemplate: (id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
55
  /**
56
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
56
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
57
57
  * @summary List document templates
58
58
  * @param {string} [authorization] Bearer Token
59
59
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -67,7 +67,7 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
67
67
  */
68
68
  listDocTemplates: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
69
  /**
70
- * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
70
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
71
71
  * @summary Update the document template
72
72
  * @param {number} id
73
73
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
@@ -83,7 +83,7 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
83
83
  */
84
84
  export declare const DocumentTemplatesApiFp: (configuration?: Configuration) => {
85
85
  /**
86
- * This will create a document template.
86
+ * This will create a document template. **Required Permissions** \"document-management.documents.create\"
87
87
  * @summary Create the document template
88
88
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
89
89
  * @param {string} [authorization] Bearer Token
@@ -92,7 +92,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
92
92
  */
93
93
  createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDocTemplateResponseClass>>;
94
94
  /**
95
- * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
95
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.documents.delete\"
96
96
  * @summary Delete the document template
97
97
  * @param {number} id
98
98
  * @param {string} [authorization] Bearer Token
@@ -101,7 +101,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
101
101
  */
102
102
  deleteDocTemplate(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
103
103
  /**
104
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
104
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.documents.view\"
105
105
  * @summary Retrieve the document template
106
106
  * @param {number} id
107
107
  * @param {string} [authorization] Bearer Token
@@ -111,7 +111,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
111
111
  */
112
112
  getDocTemplate(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocTemplateResponseClass>>;
113
113
  /**
114
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
114
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
115
115
  * @summary List document templates
116
116
  * @param {string} [authorization] Bearer Token
117
117
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -125,7 +125,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
125
125
  */
126
126
  listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>>;
127
127
  /**
128
- * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
128
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
129
129
  * @summary Update the document template
130
130
  * @param {number} id
131
131
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
@@ -141,7 +141,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
141
141
  */
142
142
  export declare const DocumentTemplatesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
143
143
  /**
144
- * This will create a document template.
144
+ * This will create a document template. **Required Permissions** \"document-management.documents.create\"
145
145
  * @summary Create the document template
146
146
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
147
147
  * @param {string} [authorization] Bearer Token
@@ -150,7 +150,7 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
150
150
  */
151
151
  createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDocTemplateResponseClass>;
152
152
  /**
153
- * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
153
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.documents.delete\"
154
154
  * @summary Delete the document template
155
155
  * @param {number} id
156
156
  * @param {string} [authorization] Bearer Token
@@ -159,7 +159,7 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
159
159
  */
160
160
  deleteDocTemplate(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
161
161
  /**
162
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
162
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.documents.view\"
163
163
  * @summary Retrieve the document template
164
164
  * @param {number} id
165
165
  * @param {string} [authorization] Bearer Token
@@ -169,7 +169,7 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
169
169
  */
170
170
  getDocTemplate(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetDocTemplateResponseClass>;
171
171
  /**
172
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
172
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
173
173
  * @summary List document templates
174
174
  * @param {string} [authorization] Bearer Token
175
175
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -183,7 +183,7 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
183
183
  */
184
184
  listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass>;
185
185
  /**
186
- * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
186
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
187
187
  * @summary Update the document template
188
188
  * @param {number} id
189
189
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
@@ -338,7 +338,7 @@ export interface DocumentTemplatesApiUpdateDocTemplateRequest {
338
338
  */
339
339
  export declare class DocumentTemplatesApi extends BaseAPI {
340
340
  /**
341
- * This will create a document template.
341
+ * This will create a document template. **Required Permissions** \"document-management.documents.create\"
342
342
  * @summary Create the document template
343
343
  * @param {DocumentTemplatesApiCreateDocTemplateRequest} requestParameters Request parameters.
344
344
  * @param {*} [options] Override http request option.
@@ -347,7 +347,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
347
347
  */
348
348
  createDocTemplate(requestParameters: DocumentTemplatesApiCreateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocTemplateResponseClass, any>>;
349
349
  /**
350
- * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
350
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.documents.delete\"
351
351
  * @summary Delete the document template
352
352
  * @param {DocumentTemplatesApiDeleteDocTemplateRequest} requestParameters Request parameters.
353
353
  * @param {*} [options] Override http request option.
@@ -356,7 +356,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
356
356
  */
357
357
  deleteDocTemplate(requestParameters: DocumentTemplatesApiDeleteDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
358
358
  /**
359
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
359
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.documents.view\"
360
360
  * @summary Retrieve the document template
361
361
  * @param {DocumentTemplatesApiGetDocTemplateRequest} requestParameters Request parameters.
362
362
  * @param {*} [options] Override http request option.
@@ -365,7 +365,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
365
365
  */
366
366
  getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocTemplateResponseClass, any>>;
367
367
  /**
368
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
368
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
369
369
  * @summary List document templates
370
370
  * @param {DocumentTemplatesApiListDocTemplatesRequest} requestParameters Request parameters.
371
371
  * @param {*} [options] Override http request option.
@@ -374,7 +374,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
374
374
  */
375
375
  listDocTemplates(requestParameters?: DocumentTemplatesApiListDocTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocTemplatesResponseClass, any>>;
376
376
  /**
377
- * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
377
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
378
378
  * @summary Update the document template
379
379
  * @param {DocumentTemplatesApiUpdateDocTemplateRequest} requestParameters Request parameters.
380
380
  * @param {*} [options] Override http request option.
@@ -93,7 +93,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * This will create a document template.
96
+ * This will create a document template. **Required Permissions** \"document-management.documents.create\"
97
97
  * @summary Create the document template
98
98
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
99
99
  * @param {string} [authorization] Bearer Token
@@ -142,7 +142,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
145
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.documents.delete\"
146
146
  * @summary Delete the document template
147
147
  * @param {number} id
148
148
  * @param {string} [authorization] Bearer Token
@@ -190,7 +190,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
190
190
  });
191
191
  },
192
192
  /**
193
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
193
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.documents.view\"
194
194
  * @summary Retrieve the document template
195
195
  * @param {number} id
196
196
  * @param {string} [authorization] Bearer Token
@@ -242,7 +242,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
242
242
  });
243
243
  },
244
244
  /**
245
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
245
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
246
246
  * @summary List document templates
247
247
  * @param {string} [authorization] Bearer Token
248
248
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -310,7 +310,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
310
310
  });
311
311
  },
312
312
  /**
313
- * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
313
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
314
314
  * @summary Update the document template
315
315
  * @param {number} id
316
316
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
@@ -373,7 +373,7 @@ var DocumentTemplatesApiFp = function (configuration) {
373
373
  var localVarAxiosParamCreator = (0, exports.DocumentTemplatesApiAxiosParamCreator)(configuration);
374
374
  return {
375
375
  /**
376
- * This will create a document template.
376
+ * This will create a document template. **Required Permissions** \"document-management.documents.create\"
377
377
  * @summary Create the document template
378
378
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
379
379
  * @param {string} [authorization] Bearer Token
@@ -394,7 +394,7 @@ var DocumentTemplatesApiFp = function (configuration) {
394
394
  });
395
395
  },
396
396
  /**
397
- * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
397
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.documents.delete\"
398
398
  * @summary Delete the document template
399
399
  * @param {number} id
400
400
  * @param {string} [authorization] Bearer Token
@@ -415,7 +415,7 @@ var DocumentTemplatesApiFp = function (configuration) {
415
415
  });
416
416
  },
417
417
  /**
418
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
418
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.documents.view\"
419
419
  * @summary Retrieve the document template
420
420
  * @param {number} id
421
421
  * @param {string} [authorization] Bearer Token
@@ -437,7 +437,7 @@ var DocumentTemplatesApiFp = function (configuration) {
437
437
  });
438
438
  },
439
439
  /**
440
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
440
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
441
441
  * @summary List document templates
442
442
  * @param {string} [authorization] Bearer Token
443
443
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -463,7 +463,7 @@ var DocumentTemplatesApiFp = function (configuration) {
463
463
  });
464
464
  },
465
465
  /**
466
- * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
466
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
467
467
  * @summary Update the document template
468
468
  * @param {number} id
469
469
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
@@ -495,7 +495,7 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
495
495
  var localVarFp = (0, exports.DocumentTemplatesApiFp)(configuration);
496
496
  return {
497
497
  /**
498
- * This will create a document template.
498
+ * This will create a document template. **Required Permissions** \"document-management.documents.create\"
499
499
  * @summary Create the document template
500
500
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
501
501
  * @param {string} [authorization] Bearer Token
@@ -506,7 +506,7 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
506
506
  return localVarFp.createDocTemplate(createDocTemplateRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
507
507
  },
508
508
  /**
509
- * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
509
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.documents.delete\"
510
510
  * @summary Delete the document template
511
511
  * @param {number} id
512
512
  * @param {string} [authorization] Bearer Token
@@ -517,7 +517,7 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
517
517
  return localVarFp.deleteDocTemplate(id, authorization, options).then(function (request) { return request(axios, basePath); });
518
518
  },
519
519
  /**
520
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
520
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.documents.view\"
521
521
  * @summary Retrieve the document template
522
522
  * @param {number} id
523
523
  * @param {string} [authorization] Bearer Token
@@ -529,7 +529,7 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
529
529
  return localVarFp.getDocTemplate(id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
530
530
  },
531
531
  /**
532
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
532
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
533
533
  * @summary List document templates
534
534
  * @param {string} [authorization] Bearer Token
535
535
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -545,7 +545,7 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
545
545
  return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
546
546
  },
547
547
  /**
548
- * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
548
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
549
549
  * @summary Update the document template
550
550
  * @param {number} id
551
551
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
@@ -571,7 +571,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
571
571
  return _super !== null && _super.apply(this, arguments) || this;
572
572
  }
573
573
  /**
574
- * This will create a document template.
574
+ * This will create a document template. **Required Permissions** \"document-management.documents.create\"
575
575
  * @summary Create the document template
576
576
  * @param {DocumentTemplatesApiCreateDocTemplateRequest} requestParameters Request parameters.
577
577
  * @param {*} [options] Override http request option.
@@ -583,7 +583,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
583
583
  return (0, exports.DocumentTemplatesApiFp)(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
584
584
  };
585
585
  /**
586
- * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
586
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.documents.delete\"
587
587
  * @summary Delete the document template
588
588
  * @param {DocumentTemplatesApiDeleteDocTemplateRequest} requestParameters Request parameters.
589
589
  * @param {*} [options] Override http request option.
@@ -595,7 +595,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
595
595
  return (0, exports.DocumentTemplatesApiFp)(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
596
596
  };
597
597
  /**
598
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
598
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.documents.view\"
599
599
  * @summary Retrieve the document template
600
600
  * @param {DocumentTemplatesApiGetDocTemplateRequest} requestParameters Request parameters.
601
601
  * @param {*} [options] Override http request option.
@@ -607,7 +607,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
607
607
  return (0, exports.DocumentTemplatesApiFp)(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
608
  };
609
609
  /**
610
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
610
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
611
611
  * @summary List document templates
612
612
  * @param {DocumentTemplatesApiListDocTemplatesRequest} requestParameters Request parameters.
613
613
  * @param {*} [options] Override http request option.
@@ -620,7 +620,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
620
620
  return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
621
621
  };
622
622
  /**
623
- * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
623
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
624
624
  * @summary Update the document template
625
625
  * @param {DocumentTemplatesApiUpdateDocTemplateRequest} requestParameters Request parameters.
626
626
  * @param {*} [options] Override http request option.