@emilgroup/document-sdk-node 1.1.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 (111) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/document-templates-api.ts +84 -92
  4. package/api/documents-api.ts +16 -107
  5. package/api/layouts-api.ts +52 -28
  6. package/api/search-keywords-api.ts +12 -8
  7. package/api/searchable-document-owners-api.ts +8 -4
  8. package/api/searchable-documents-api.ts +16 -12
  9. package/base.ts +3 -3
  10. package/dist/api/document-templates-api.d.ts +78 -75
  11. package/dist/api/document-templates-api.js +73 -67
  12. package/dist/api/documents-api.d.ts +16 -61
  13. package/dist/api/documents-api.js +8 -93
  14. package/dist/api/layouts-api.d.ts +52 -30
  15. package/dist/api/layouts-api.js +43 -23
  16. package/dist/api/search-keywords-api.d.ts +12 -8
  17. package/dist/api/search-keywords-api.js +11 -7
  18. package/dist/api/searchable-document-owners-api.d.ts +8 -4
  19. package/dist/api/searchable-document-owners-api.js +8 -4
  20. package/dist/api/searchable-documents-api.d.ts +16 -12
  21. package/dist/api/searchable-documents-api.js +14 -10
  22. package/dist/base.d.ts +1 -1
  23. package/dist/base.js +3 -3
  24. package/dist/models/create-doc-template-request-dto.d.ts +3 -3
  25. package/dist/models/create-doc-template-response-class.d.ts +1 -1
  26. package/dist/models/create-document-request-dto.d.ts +11 -11
  27. package/dist/models/create-document-sync-response-class.d.ts +25 -0
  28. package/dist/models/create-document-sync-response-class.js +15 -0
  29. package/dist/models/create-layout-request-dto.d.ts +10 -10
  30. package/dist/models/create-layout-response-class.d.ts +25 -0
  31. package/dist/models/create-layout-response-class.js +15 -0
  32. package/dist/models/create-presigned-post-request-dto.d.ts +10 -10
  33. package/dist/models/create-presigned-post-response-class.d.ts +2 -2
  34. package/dist/models/delete-layout-request-dto.d.ts +1 -1
  35. package/dist/models/delete-request-dto.d.ts +1 -1
  36. package/dist/models/delete-response-class.d.ts +24 -0
  37. package/dist/models/delete-response-class.js +15 -0
  38. package/dist/models/doc-template-class.d.ts +2 -2
  39. package/dist/models/document-class.d.ts +8 -8
  40. package/dist/models/download-document-request-dto.d.ts +2 -2
  41. package/dist/models/get-doc-template-request-dto.d.ts +1 -1
  42. package/dist/models/get-doc-template-response-class.d.ts +1 -1
  43. package/dist/models/get-document-download-url-response-class.d.ts +1 -1
  44. package/dist/models/get-layout-request-dto.d.ts +1 -1
  45. package/dist/models/html-template-class.d.ts +1 -1
  46. package/dist/models/index.d.ts +8 -0
  47. package/dist/models/index.js +8 -0
  48. package/dist/models/layout-class.d.ts +1 -1
  49. package/dist/models/list-doc-template-request-dto.d.ts +48 -0
  50. package/dist/models/list-doc-template-request-dto.js +15 -0
  51. package/dist/models/list-doc-templates-response-class.d.ts +1 -1
  52. package/dist/models/list-documents-response-class.d.ts +1 -1
  53. package/dist/models/list-layouts-response-class.d.ts +1 -1
  54. package/dist/models/list-search-keywords-request-dto.d.ts +1 -1
  55. package/dist/models/list-search-keywords-response-class.d.ts +1 -1
  56. package/dist/models/list-searchable-document-owners-response-class.d.ts +3 -2
  57. package/dist/models/list-searchable-documents-request-dto.d.ts +2 -2
  58. package/dist/models/list-searchable-documents-response-class.d.ts +5 -4
  59. package/dist/models/searchable-document-class.d.ts +66 -0
  60. package/dist/models/searchable-document-class.js +15 -0
  61. package/dist/models/searchable-document-owner-class.d.ts +30 -0
  62. package/dist/models/searchable-document-owner-class.js +15 -0
  63. package/dist/models/update-doc-template-request-dto.d.ts +7 -7
  64. package/dist/models/update-doc-template-response-class.d.ts +1 -1
  65. package/dist/models/update-document-request-dto.d.ts +5 -5
  66. package/dist/models/update-document-response-class.d.ts +25 -0
  67. package/dist/models/update-document-response-class.js +15 -0
  68. package/dist/models/update-html-template-dto.d.ts +42 -0
  69. package/dist/models/update-html-template-dto.js +21 -0
  70. package/dist/models/update-layout-request-dto.d.ts +15 -15
  71. package/dist/models/update-layout-response-class.d.ts +1 -1
  72. package/models/create-doc-template-request-dto.ts +3 -3
  73. package/models/create-doc-template-response-class.ts +1 -1
  74. package/models/create-document-request-dto.ts +11 -11
  75. package/models/create-document-sync-response-class.ts +31 -0
  76. package/models/create-layout-request-dto.ts +10 -10
  77. package/models/create-layout-response-class.ts +31 -0
  78. package/models/create-presigned-post-request-dto.ts +10 -10
  79. package/models/create-presigned-post-response-class.ts +2 -2
  80. package/models/delete-layout-request-dto.ts +1 -1
  81. package/models/delete-request-dto.ts +1 -1
  82. package/models/delete-response-class.ts +30 -0
  83. package/models/doc-template-class.ts +2 -2
  84. package/models/document-class.ts +8 -8
  85. package/models/download-document-request-dto.ts +2 -2
  86. package/models/get-doc-template-request-dto.ts +1 -1
  87. package/models/get-doc-template-response-class.ts +1 -1
  88. package/models/get-document-download-url-response-class.ts +1 -1
  89. package/models/get-layout-request-dto.ts +1 -1
  90. package/models/html-template-class.ts +1 -1
  91. package/models/index.ts +8 -0
  92. package/models/layout-class.ts +1 -1
  93. package/models/list-doc-template-request-dto.ts +54 -0
  94. package/models/list-doc-templates-response-class.ts +1 -1
  95. package/models/list-documents-response-class.ts +1 -1
  96. package/models/list-layouts-response-class.ts +1 -1
  97. package/models/list-search-keywords-request-dto.ts +1 -1
  98. package/models/list-search-keywords-response-class.ts +1 -1
  99. package/models/list-searchable-document-owners-response-class.ts +3 -2
  100. package/models/list-searchable-documents-request-dto.ts +2 -2
  101. package/models/list-searchable-documents-response-class.ts +5 -4
  102. package/models/searchable-document-class.ts +72 -0
  103. package/models/searchable-document-owner-class.ts +36 -0
  104. package/models/update-doc-template-request-dto.ts +7 -7
  105. package/models/update-doc-template-response-class.ts +1 -1
  106. package/models/update-document-request-dto.ts +5 -5
  107. package/models/update-document-response-class.ts +31 -0
  108. package/models/update-html-template-dto.ts +51 -0
  109. package/models/update-layout-request-dto.ts +15 -15
  110. package/models/update-layout-response-class.ts +1 -1
  111. package/package.json +2 -2
@@ -17,12 +17,15 @@ index.ts
17
17
  models/create-doc-template-request-dto.ts
18
18
  models/create-doc-template-response-class.ts
19
19
  models/create-document-request-dto.ts
20
+ models/create-document-sync-response-class.ts
20
21
  models/create-html-template-dto.ts
21
22
  models/create-layout-request-dto.ts
23
+ models/create-layout-response-class.ts
22
24
  models/create-presigned-post-request-dto.ts
23
25
  models/create-presigned-post-response-class.ts
24
26
  models/delete-layout-request-dto.ts
25
27
  models/delete-request-dto.ts
28
+ models/delete-response-class.ts
26
29
  models/doc-template-class.ts
27
30
  models/document-class.ts
28
31
  models/download-document-request-dto.ts
@@ -35,6 +38,7 @@ models/get-signed-s3-key-url-response-class.ts
35
38
  models/html-template-class.ts
36
39
  models/index.ts
37
40
  models/layout-class.ts
41
+ models/list-doc-template-request-dto.ts
38
42
  models/list-doc-templates-response-class.ts
39
43
  models/list-documents-response-class.ts
40
44
  models/list-layouts-response-class.ts
@@ -44,9 +48,13 @@ models/list-search-keywords-response-class.ts
44
48
  models/list-searchable-document-owners-response-class.ts
45
49
  models/list-searchable-documents-request-dto.ts
46
50
  models/list-searchable-documents-response-class.ts
51
+ models/searchable-document-class.ts
52
+ models/searchable-document-owner-class.ts
47
53
  models/update-doc-template-request-dto.ts
48
54
  models/update-doc-template-response-class.ts
49
55
  models/update-document-request-dto.ts
56
+ models/update-document-response-class.ts
57
+ models/update-html-template-dto.ts
50
58
  models/update-layout-request-dto.ts
51
59
  models/update-layout-response-class.ts
52
60
  package.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/document-sdk-node@1.1.0 --save
20
+ npm install @emilgroup/document-sdk-node@1.2.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.1.0
24
+ yarn add @emilgroup/document-sdk-node@1.2.1
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -25,6 +25,8 @@ import { CreateDocTemplateRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateDocTemplateResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
28
30
  import { GetDocTemplateResponseClass } from '../models';
29
31
  // @ts-ignore
30
32
  import { ListDocTemplatesResponseClass } from '../models';
@@ -43,7 +45,8 @@ const FormData = require('form-data');
43
45
  export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: Configuration) {
44
46
  return {
45
47
  /**
46
- *
48
+ * This will create a document template.
49
+ * @summary Create the document template
47
50
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
48
51
  * @param {string} [authorization] Bearer Token
49
52
  * @param {*} [options] Override http request option.
@@ -89,7 +92,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
89
92
  };
90
93
  },
91
94
  /**
92
- *
95
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
96
+ * @summary Delete the document template
93
97
  * @param {number} id
94
98
  * @param {string} [authorization] Bearer Token
95
99
  * @param {*} [options] Override http request option.
@@ -133,19 +137,17 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
133
137
  };
134
138
  },
135
139
  /**
136
- *
137
- * @param {string} id
138
- * @param {number} id2 Template id
140
+ * 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.
141
+ * @summary Retrieve the document template
142
+ * @param {number} id
139
143
  * @param {string} [authorization] Bearer Token
140
- * @param {string} [expand]
144
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
141
145
  * @param {*} [options] Override http request option.
142
146
  * @throws {RequiredError}
143
147
  */
144
- getDocTemplate: async (id: string, id2: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ getDocTemplate: async (id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
145
149
  // verify required parameter 'id' is not null or undefined
146
150
  assertParamExists('getDocTemplate', 'id', id)
147
- // verify required parameter 'id2' is not null or undefined
148
- assertParamExists('getDocTemplate', 'id2', id2)
149
151
  const localVarPath = `/documentservice/v1/doc-templates/{id}`
150
152
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
151
153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -165,10 +167,6 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
165
167
  // http bearer authentication required
166
168
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
167
169
 
168
- if (id2 !== undefined) {
169
- localVarQueryParameter['id'] = id2;
170
- }
171
-
172
170
  if (expand !== undefined) {
173
171
  localVarQueryParameter['expand'] = expand;
174
172
  }
@@ -189,18 +187,18 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
189
187
  };
190
188
  },
191
189
  /**
192
- *
190
+ * 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.
191
+ * @summary List document templates
193
192
  * @param {string} [authorization] Bearer Token
194
- * @param {number} [pageSize] Page size
195
- * @param {string} [pageToken] Page token
196
- * @param {string} [filter] List filter
197
- * @param {string} [search] Search query
198
- * @param {string} [order] Ordering criteria
199
- * @param {string} [expand] Extra fields to fetch
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
194
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
195
+ * @param {string} [filter] Filter response by productSlug, slug and name.
196
+ * @param {string} [order] Order response by createdAt.
197
+ * @param {string} [expand] Expand response by bodyTemplate.
200
198
  * @param {*} [options] Override http request option.
201
199
  * @throws {RequiredError}
202
200
  */
203
- listDocTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ listDocTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
202
  const localVarPath = `/documentservice/v1/doc-templates`;
205
203
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
204
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -231,10 +229,6 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
231
229
  localVarQueryParameter['filter'] = filter;
232
230
  }
233
231
 
234
- if (search !== undefined) {
235
- localVarQueryParameter['search'] = search;
236
- }
237
-
238
232
  if (order !== undefined) {
239
233
  localVarQueryParameter['order'] = order;
240
234
  }
@@ -259,7 +253,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
259
253
  };
260
254
  },
261
255
  /**
262
- *
256
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
257
+ * @summary Update the document template
263
258
  * @param {number} id
264
259
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
265
260
  * @param {string} [authorization] Bearer Token
@@ -319,7 +314,8 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
319
314
  const localVarAxiosParamCreator = DocumentTemplatesApiAxiosParamCreator(configuration)
320
315
  return {
321
316
  /**
322
- *
317
+ * This will create a document template.
318
+ * @summary Create the document template
323
319
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
324
320
  * @param {string} [authorization] Bearer Token
325
321
  * @param {*} [options] Override http request option.
@@ -330,47 +326,49 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
330
326
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
331
327
  },
332
328
  /**
333
- *
329
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
330
+ * @summary Delete the document template
334
331
  * @param {number} id
335
332
  * @param {string} [authorization] Bearer Token
336
333
  * @param {*} [options] Override http request option.
337
334
  * @throws {RequiredError}
338
335
  */
339
- async deleteDocTemplate(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
336
+ async deleteDocTemplate(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
340
337
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocTemplate(id, authorization, options);
341
338
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
342
339
  },
343
340
  /**
344
- *
345
- * @param {string} id
346
- * @param {number} id2 Template id
341
+ * 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.
342
+ * @summary Retrieve the document template
343
+ * @param {number} id
347
344
  * @param {string} [authorization] Bearer Token
348
- * @param {string} [expand]
345
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
349
346
  * @param {*} [options] Override http request option.
350
347
  * @throws {RequiredError}
351
348
  */
352
- async getDocTemplate(id: string, id2: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocTemplateResponseClass>> {
353
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDocTemplate(id, id2, authorization, expand, options);
349
+ async getDocTemplate(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocTemplateResponseClass>> {
350
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDocTemplate(id, authorization, expand, options);
354
351
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
355
352
  },
356
353
  /**
357
- *
354
+ * 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.
355
+ * @summary List document templates
358
356
  * @param {string} [authorization] Bearer Token
359
- * @param {number} [pageSize] Page size
360
- * @param {string} [pageToken] Page token
361
- * @param {string} [filter] List filter
362
- * @param {string} [search] Search query
363
- * @param {string} [order] Ordering criteria
364
- * @param {string} [expand] Extra fields to fetch
357
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
358
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
359
+ * @param {string} [filter] Filter response by productSlug, slug and name.
360
+ * @param {string} [order] Order response by createdAt.
361
+ * @param {string} [expand] Expand response by bodyTemplate.
365
362
  * @param {*} [options] Override http request option.
366
363
  * @throws {RequiredError}
367
364
  */
368
- async listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>> {
369
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
365
+ async listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>> {
366
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options);
370
367
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
371
368
  },
372
369
  /**
373
- *
370
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
371
+ * @summary Update the document template
374
372
  * @param {number} id
375
373
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
376
374
  * @param {string} [authorization] Bearer Token
@@ -392,7 +390,8 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
392
390
  const localVarFp = DocumentTemplatesApiFp(configuration)
393
391
  return {
394
392
  /**
395
- *
393
+ * This will create a document template.
394
+ * @summary Create the document template
396
395
  * @param {CreateDocTemplateRequestDto} createDocTemplateRequestDto
397
396
  * @param {string} [authorization] Bearer Token
398
397
  * @param {*} [options] Override http request option.
@@ -402,44 +401,46 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
402
401
  return localVarFp.createDocTemplate(createDocTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
403
402
  },
404
403
  /**
405
- *
404
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
405
+ * @summary Delete the document template
406
406
  * @param {number} id
407
407
  * @param {string} [authorization] Bearer Token
408
408
  * @param {*} [options] Override http request option.
409
409
  * @throws {RequiredError}
410
410
  */
411
- deleteDocTemplate(id: number, authorization?: string, options?: any): AxiosPromise<object> {
411
+ deleteDocTemplate(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
412
412
  return localVarFp.deleteDocTemplate(id, authorization, options).then((request) => request(axios, basePath));
413
413
  },
414
414
  /**
415
- *
416
- * @param {string} id
417
- * @param {number} id2 Template id
415
+ * 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.
416
+ * @summary Retrieve the document template
417
+ * @param {number} id
418
418
  * @param {string} [authorization] Bearer Token
419
- * @param {string} [expand]
419
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
420
420
  * @param {*} [options] Override http request option.
421
421
  * @throws {RequiredError}
422
422
  */
423
- getDocTemplate(id: string, id2: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetDocTemplateResponseClass> {
424
- return localVarFp.getDocTemplate(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
423
+ getDocTemplate(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetDocTemplateResponseClass> {
424
+ return localVarFp.getDocTemplate(id, authorization, expand, options).then((request) => request(axios, basePath));
425
425
  },
426
426
  /**
427
- *
427
+ * 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.
428
+ * @summary List document templates
428
429
  * @param {string} [authorization] Bearer Token
429
- * @param {number} [pageSize] Page size
430
- * @param {string} [pageToken] Page token
431
- * @param {string} [filter] List filter
432
- * @param {string} [search] Search query
433
- * @param {string} [order] Ordering criteria
434
- * @param {string} [expand] Extra fields to fetch
430
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
431
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
432
+ * @param {string} [filter] Filter response by productSlug, slug and name.
433
+ * @param {string} [order] Order response by createdAt.
434
+ * @param {string} [expand] Expand response by bodyTemplate.
435
435
  * @param {*} [options] Override http request option.
436
436
  * @throws {RequiredError}
437
437
  */
438
- listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass> {
439
- return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
438
+ listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass> {
439
+ return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options).then((request) => request(axios, basePath));
440
440
  },
441
441
  /**
442
- *
442
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
443
+ * @summary Update the document template
443
444
  * @param {number} id
444
445
  * @param {UpdateDocTemplateRequestDto} updateDocTemplateRequestDto
445
446
  * @param {string} [authorization] Bearer Token
@@ -502,17 +503,10 @@ export interface DocumentTemplatesApiDeleteDocTemplateRequest {
502
503
  export interface DocumentTemplatesApiGetDocTemplateRequest {
503
504
  /**
504
505
  *
505
- * @type {string}
506
- * @memberof DocumentTemplatesApiGetDocTemplate
507
- */
508
- readonly id: string
509
-
510
- /**
511
- * Template id
512
506
  * @type {number}
513
507
  * @memberof DocumentTemplatesApiGetDocTemplate
514
508
  */
515
- readonly id2: number
509
+ readonly id: number
516
510
 
517
511
  /**
518
512
  * Bearer Token
@@ -522,7 +516,7 @@ export interface DocumentTemplatesApiGetDocTemplateRequest {
522
516
  readonly authorization?: string
523
517
 
524
518
  /**
525
- *
519
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
526
520
  * @type {string}
527
521
  * @memberof DocumentTemplatesApiGetDocTemplate
528
522
  */
@@ -543,42 +537,35 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
543
537
  readonly authorization?: string
544
538
 
545
539
  /**
546
- * Page size
540
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
547
541
  * @type {number}
548
542
  * @memberof DocumentTemplatesApiListDocTemplates
549
543
  */
550
544
  readonly pageSize?: number
551
545
 
552
546
  /**
553
- * Page token
547
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
554
548
  * @type {string}
555
549
  * @memberof DocumentTemplatesApiListDocTemplates
556
550
  */
557
551
  readonly pageToken?: string
558
552
 
559
553
  /**
560
- * List filter
554
+ * Filter response by productSlug, slug and name.
561
555
  * @type {string}
562
556
  * @memberof DocumentTemplatesApiListDocTemplates
563
557
  */
564
558
  readonly filter?: string
565
559
 
566
560
  /**
567
- * Search query
568
- * @type {string}
569
- * @memberof DocumentTemplatesApiListDocTemplates
570
- */
571
- readonly search?: string
572
-
573
- /**
574
- * Ordering criteria
561
+ * Order response by createdAt.
575
562
  * @type {string}
576
563
  * @memberof DocumentTemplatesApiListDocTemplates
577
564
  */
578
565
  readonly order?: string
579
566
 
580
567
  /**
581
- * Extra fields to fetch
568
+ * Expand response by bodyTemplate.
582
569
  * @type {string}
583
570
  * @memberof DocumentTemplatesApiListDocTemplates
584
571
  */
@@ -621,7 +608,8 @@ export interface DocumentTemplatesApiUpdateDocTemplateRequest {
621
608
  */
622
609
  export class DocumentTemplatesApi extends BaseAPI {
623
610
  /**
624
- *
611
+ * This will create a document template.
612
+ * @summary Create the document template
625
613
  * @param {DocumentTemplatesApiCreateDocTemplateRequest} requestParameters Request parameters.
626
614
  * @param {*} [options] Override http request option.
627
615
  * @throws {RequiredError}
@@ -632,7 +620,8 @@ export class DocumentTemplatesApi extends BaseAPI {
632
620
  }
633
621
 
634
622
  /**
635
- *
623
+ * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
624
+ * @summary Delete the document template
636
625
  * @param {DocumentTemplatesApiDeleteDocTemplateRequest} requestParameters Request parameters.
637
626
  * @param {*} [options] Override http request option.
638
627
  * @throws {RequiredError}
@@ -643,29 +632,32 @@ export class DocumentTemplatesApi extends BaseAPI {
643
632
  }
644
633
 
645
634
  /**
646
- *
635
+ * 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.
636
+ * @summary Retrieve the document template
647
637
  * @param {DocumentTemplatesApiGetDocTemplateRequest} requestParameters Request parameters.
648
638
  * @param {*} [options] Override http request option.
649
639
  * @throws {RequiredError}
650
640
  * @memberof DocumentTemplatesApi
651
641
  */
652
642
  public getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig) {
653
- return DocumentTemplatesApiFp(this.configuration).getDocTemplate(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
643
+ return DocumentTemplatesApiFp(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
654
644
  }
655
645
 
656
646
  /**
657
- *
647
+ * 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.
648
+ * @summary List document templates
658
649
  * @param {DocumentTemplatesApiListDocTemplatesRequest} requestParameters Request parameters.
659
650
  * @param {*} [options] Override http request option.
660
651
  * @throws {RequiredError}
661
652
  * @memberof DocumentTemplatesApi
662
653
  */
663
654
  public listDocTemplates(requestParameters: DocumentTemplatesApiListDocTemplatesRequest = {}, options?: AxiosRequestConfig) {
664
- return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
655
+ return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
665
656
  }
666
657
 
667
658
  /**
668
- *
659
+ * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
660
+ * @summary Update the document template
669
661
  * @param {DocumentTemplatesApiUpdateDocTemplateRequest} requestParameters Request parameters.
670
662
  * @param {*} [options] Override http request option.
671
663
  * @throws {RequiredError}