@emilgroup/document-sdk-node 1.49.1-beta.28 → 1.49.1-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/document-templates-api.ts +35 -20
- package/api/documents-api.ts +77 -44
- package/api/docx-templates-api.ts +42 -24
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +35 -20
- package/api/product-documents-api.ts +42 -24
- package/api/search-keywords-api.ts +7 -4
- package/api/searchable-document-owners-api.ts +7 -4
- package/api/searchable-documents-api.ts +7 -4
- package/base.ts +4 -0
- package/dist/api/document-templates-api.js +56 -38
- package/dist/api/documents-api.js +126 -85
- package/dist/api/docx-templates-api.js +70 -47
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.js +56 -38
- package/dist/api/product-documents-api.js +66 -45
- package/dist/api/search-keywords-api.js +10 -7
- package/dist/api/searchable-document-owners-api.js +10 -7
- package/dist/api/searchable-documents-api.js +10 -7
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/package.json +1 -1
package/api/layouts-api.ts
CHANGED
|
@@ -73,9 +73,12 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
// Only Authorization falls back to the configured token
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
77
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
78
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
79
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
80
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
81
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
79
82
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
80
83
|
}
|
|
81
84
|
|
|
@@ -123,9 +126,12 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
123
126
|
// http bearer authentication required
|
|
124
127
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
128
|
|
|
126
|
-
// Only Authorization falls back to the configured token
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
131
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
132
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
133
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
134
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
129
135
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
136
|
}
|
|
131
137
|
|
|
@@ -177,9 +183,12 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
177
183
|
localVarQueryParameter['id'] = id2;
|
|
178
184
|
}
|
|
179
185
|
|
|
180
|
-
// Only Authorization falls back to the configured token
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
188
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
189
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
190
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
191
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
183
192
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
193
|
}
|
|
185
194
|
|
|
@@ -255,9 +264,12 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
255
264
|
localVarQueryParameter['filters'] = filters;
|
|
256
265
|
}
|
|
257
266
|
|
|
258
|
-
// Only Authorization falls back to the configured token
|
|
259
|
-
|
|
260
|
-
|
|
267
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
268
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
269
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
270
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
271
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
272
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
261
273
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
262
274
|
}
|
|
263
275
|
|
|
@@ -305,9 +317,12 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
305
317
|
// http bearer authentication required
|
|
306
318
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
307
319
|
|
|
308
|
-
// Only Authorization falls back to the configured token
|
|
309
|
-
|
|
310
|
-
|
|
320
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
321
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
322
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
323
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
324
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
325
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
311
326
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
312
327
|
}
|
|
313
328
|
|
|
@@ -656,7 +671,7 @@ export class LayoutsApi extends BaseAPI {
|
|
|
656
671
|
* @memberof LayoutsApi
|
|
657
672
|
*/
|
|
658
673
|
public createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig) {
|
|
659
|
-
return LayoutsApiFp(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
674
|
+
return LayoutsApiFp(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
660
675
|
}
|
|
661
676
|
|
|
662
677
|
/**
|
|
@@ -668,7 +683,7 @@ export class LayoutsApi extends BaseAPI {
|
|
|
668
683
|
* @memberof LayoutsApi
|
|
669
684
|
*/
|
|
670
685
|
public deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig) {
|
|
671
|
-
return LayoutsApiFp(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
686
|
+
return LayoutsApiFp(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
672
687
|
}
|
|
673
688
|
|
|
674
689
|
/**
|
|
@@ -680,7 +695,7 @@ export class LayoutsApi extends BaseAPI {
|
|
|
680
695
|
* @memberof LayoutsApi
|
|
681
696
|
*/
|
|
682
697
|
public getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig) {
|
|
683
|
-
return LayoutsApiFp(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
698
|
+
return LayoutsApiFp(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
684
699
|
}
|
|
685
700
|
|
|
686
701
|
/**
|
|
@@ -692,7 +707,7 @@ export class LayoutsApi extends BaseAPI {
|
|
|
692
707
|
* @memberof LayoutsApi
|
|
693
708
|
*/
|
|
694
709
|
public listLayouts(requestParameters: LayoutsApiListLayoutsRequest = {}, options?: AxiosRequestConfig) {
|
|
695
|
-
return LayoutsApiFp(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
710
|
+
return LayoutsApiFp(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
696
711
|
}
|
|
697
712
|
|
|
698
713
|
/**
|
|
@@ -704,6 +719,6 @@ export class LayoutsApi extends BaseAPI {
|
|
|
704
719
|
* @memberof LayoutsApi
|
|
705
720
|
*/
|
|
706
721
|
public updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig) {
|
|
707
|
-
return LayoutsApiFp(this.configuration).updateLayout(requestParameters.id, requestParameters.updateLayoutRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
722
|
+
return LayoutsApiFp(this.configuration).updateLayout(requestParameters.id, requestParameters.updateLayoutRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
708
723
|
}
|
|
709
724
|
}
|
|
@@ -76,9 +76,12 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
76
76
|
// http bearer authentication required
|
|
77
77
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
78
78
|
|
|
79
|
-
// Only Authorization falls back to the configured token
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
80
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
81
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
82
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
83
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
84
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
82
85
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
83
86
|
}
|
|
84
87
|
|
|
@@ -132,9 +135,12 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
132
135
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
// Only Authorization falls back to the configured token
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
139
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
140
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
141
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
142
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
143
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
138
144
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
139
145
|
}
|
|
140
146
|
|
|
@@ -183,9 +189,12 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
183
189
|
// http bearer authentication required
|
|
184
190
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
185
191
|
|
|
186
|
-
// Only Authorization falls back to the configured token
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
193
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
194
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
195
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
196
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
197
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
198
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
199
|
}
|
|
191
200
|
|
|
@@ -261,9 +270,12 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
261
270
|
localVarQueryParameter['filters'] = filters;
|
|
262
271
|
}
|
|
263
272
|
|
|
264
|
-
// Only Authorization falls back to the configured token
|
|
265
|
-
|
|
266
|
-
|
|
273
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
274
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
275
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
276
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
277
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
278
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
267
279
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
268
280
|
}
|
|
269
281
|
|
|
@@ -343,9 +355,12 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
343
355
|
localVarQueryParameter['filters'] = filters;
|
|
344
356
|
}
|
|
345
357
|
|
|
346
|
-
// Only Authorization falls back to the configured token
|
|
347
|
-
|
|
348
|
-
|
|
358
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
359
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
360
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
361
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
362
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
363
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
349
364
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
350
365
|
}
|
|
351
366
|
|
|
@@ -393,9 +408,12 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
393
408
|
// http bearer authentication required
|
|
394
409
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
395
410
|
|
|
396
|
-
// Only Authorization falls back to the configured token
|
|
397
|
-
|
|
398
|
-
|
|
411
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
412
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
413
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
414
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
415
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
416
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
399
417
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
400
418
|
}
|
|
401
419
|
|
|
@@ -878,7 +896,7 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
878
896
|
* @memberof ProductDocumentsApi
|
|
879
897
|
*/
|
|
880
898
|
public deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig) {
|
|
881
|
-
return ProductDocumentsApiFp(this.configuration).deleteProductDocument(requestParameters.code, requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
899
|
+
return ProductDocumentsApiFp(this.configuration).deleteProductDocument(requestParameters.code, requestParameters.productSlug, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
882
900
|
}
|
|
883
901
|
|
|
884
902
|
/**
|
|
@@ -890,7 +908,7 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
890
908
|
* @memberof ProductDocumentsApi
|
|
891
909
|
*/
|
|
892
910
|
public downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig) {
|
|
893
|
-
return ProductDocumentsApiFp(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, options).then((request) => request(this.axios, this.basePath));
|
|
911
|
+
return ProductDocumentsApiFp(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
894
912
|
}
|
|
895
913
|
|
|
896
914
|
/**
|
|
@@ -902,7 +920,7 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
902
920
|
* @memberof ProductDocumentsApi
|
|
903
921
|
*/
|
|
904
922
|
public getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig) {
|
|
905
|
-
return ProductDocumentsApiFp(this.configuration).getProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
923
|
+
return ProductDocumentsApiFp(this.configuration).getProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
906
924
|
}
|
|
907
925
|
|
|
908
926
|
/**
|
|
@@ -914,7 +932,7 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
914
932
|
* @memberof ProductDocumentsApi
|
|
915
933
|
*/
|
|
916
934
|
public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
|
|
917
|
-
return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
935
|
+
return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
918
936
|
}
|
|
919
937
|
|
|
920
938
|
/**
|
|
@@ -926,7 +944,7 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
926
944
|
* @memberof ProductDocumentsApi
|
|
927
945
|
*/
|
|
928
946
|
public listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig) {
|
|
929
|
-
return ProductDocumentsApiFp(this.configuration).listProductDocumentsByProduct(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
947
|
+
return ProductDocumentsApiFp(this.configuration).listProductDocumentsByProduct(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
930
948
|
}
|
|
931
949
|
|
|
932
950
|
/**
|
|
@@ -938,6 +956,6 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
938
956
|
* @memberof ProductDocumentsApi
|
|
939
957
|
*/
|
|
940
958
|
public uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig) {
|
|
941
|
-
return ProductDocumentsApiFp(this.configuration).uploadProductDocument(requestParameters.productSlug, requestParameters.uploadProductDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
959
|
+
return ProductDocumentsApiFp(this.configuration).uploadProductDocument(requestParameters.productSlug, requestParameters.uploadProductDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
942
960
|
}
|
|
943
961
|
}
|
|
@@ -65,9 +65,12 @@ export const SearchKeywordsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
65
65
|
localVarQueryParameter['searchText'] = searchText;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// Only Authorization falls back to the configured token
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
69
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
70
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
71
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
72
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
73
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
71
74
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
75
|
}
|
|
73
76
|
|
|
@@ -165,6 +168,6 @@ export class SearchKeywordsApi extends BaseAPI {
|
|
|
165
168
|
* @memberof SearchKeywordsApi
|
|
166
169
|
*/
|
|
167
170
|
public listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig) {
|
|
168
|
-
return SearchKeywordsApiFp(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
171
|
+
return SearchKeywordsApiFp(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
169
172
|
}
|
|
170
173
|
}
|
|
@@ -93,9 +93,12 @@ export const SearchableDocumentOwnersApiAxiosParamCreator = function (configurat
|
|
|
93
93
|
localVarQueryParameter['filters'] = filters;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
// Only Authorization falls back to the configured token
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
97
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
98
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
99
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
100
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
101
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
99
102
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
100
103
|
}
|
|
101
104
|
|
|
@@ -247,6 +250,6 @@ export class SearchableDocumentOwnersApi extends BaseAPI {
|
|
|
247
250
|
* @memberof SearchableDocumentOwnersApi
|
|
248
251
|
*/
|
|
249
252
|
public listSearchableDocumentOwners(requestParameters: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest = {}, options?: AxiosRequestConfig) {
|
|
250
|
-
return SearchableDocumentOwnersApiFp(this.configuration).listSearchableDocumentOwners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
253
|
+
return SearchableDocumentOwnersApiFp(this.configuration).listSearchableDocumentOwners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
251
254
|
}
|
|
252
255
|
}
|
|
@@ -77,9 +77,12 @@ export const SearchableDocumentsApiAxiosParamCreator = function (configuration?:
|
|
|
77
77
|
localVarQueryParameter['product'] = product;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
// Only Authorization falls back to the configured token
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
81
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
82
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
83
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
84
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
85
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
83
86
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
84
87
|
}
|
|
85
88
|
|
|
@@ -195,6 +198,6 @@ export class SearchableDocumentsApi extends BaseAPI {
|
|
|
195
198
|
* @memberof SearchableDocumentsApi
|
|
196
199
|
*/
|
|
197
200
|
public listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig) {
|
|
198
|
-
return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
|
|
201
|
+
return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
199
202
|
}
|
|
200
203
|
}
|
package/base.ts
CHANGED
|
@@ -92,6 +92,10 @@ export class BaseAPI {
|
|
|
92
92
|
private username?: string;
|
|
93
93
|
private password?: string;
|
|
94
94
|
|
|
95
|
+
protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig {
|
|
96
|
+
return { ...options };
|
|
97
|
+
}
|
|
98
|
+
|
|
95
99
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
96
100
|
if (configuration) {
|
|
97
101
|
this.configuration = configuration;
|
|
@@ -107,9 +107,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createDocTemplate: function (createDocTemplateRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'createDocTemplateRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('createDocTemplate', 'createDocTemplateRequestDto', createDocTemplateRequestDto);
|
|
@@ -125,14 +126,17 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
128
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
131
|
];
|
|
130
132
|
case 1:
|
|
131
133
|
// authentication bearer required
|
|
132
134
|
// http bearer authentication required
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
140
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
141
|
}
|
|
138
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -159,9 +163,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
159
163
|
deleteDocTemplate: function (id, authorization, options) {
|
|
160
164
|
if (options === void 0) { options = {}; }
|
|
161
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
165
170
|
case 0:
|
|
166
171
|
// verify required parameter 'id' is not null or undefined
|
|
167
172
|
(0, common_1.assertParamExists)('deleteDocTemplate', 'id', id);
|
|
@@ -178,14 +183,17 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
188
|
];
|
|
183
189
|
case 1:
|
|
184
190
|
// authentication bearer required
|
|
185
191
|
// http bearer authentication required
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
_b.sent();
|
|
193
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
197
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
198
|
}
|
|
191
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -211,9 +219,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
211
219
|
getDocTemplate: function (id, authorization, expand, options) {
|
|
212
220
|
if (options === void 0) { options = {}; }
|
|
213
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
223
|
+
var _a;
|
|
224
|
+
return __generator(this, function (_b) {
|
|
225
|
+
switch (_b.label) {
|
|
217
226
|
case 0:
|
|
218
227
|
// verify required parameter 'id' is not null or undefined
|
|
219
228
|
(0, common_1.assertParamExists)('getDocTemplate', 'id', id);
|
|
@@ -233,12 +242,14 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
233
242
|
case 1:
|
|
234
243
|
// authentication bearer required
|
|
235
244
|
// http bearer authentication required
|
|
236
|
-
|
|
245
|
+
_b.sent();
|
|
237
246
|
if (expand !== undefined) {
|
|
238
247
|
localVarQueryParameter['expand'] = expand;
|
|
239
248
|
}
|
|
240
|
-
|
|
241
|
-
|
|
249
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
250
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
251
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
252
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
242
253
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
243
254
|
}
|
|
244
255
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -268,9 +279,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
268
279
|
listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
269
280
|
if (options === void 0) { options = {}; }
|
|
270
281
|
return __awaiter(_this, void 0, void 0, function () {
|
|
271
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
272
|
-
|
|
273
|
-
|
|
282
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
283
|
+
var _a;
|
|
284
|
+
return __generator(this, function (_b) {
|
|
285
|
+
switch (_b.label) {
|
|
274
286
|
case 0:
|
|
275
287
|
localVarPath = "/documentservice/v1/doc-templates";
|
|
276
288
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -287,7 +299,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
287
299
|
case 1:
|
|
288
300
|
// authentication bearer required
|
|
289
301
|
// http bearer authentication required
|
|
290
|
-
|
|
302
|
+
_b.sent();
|
|
291
303
|
if (pageSize !== undefined) {
|
|
292
304
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
293
305
|
}
|
|
@@ -306,8 +318,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
306
318
|
if (expand !== undefined) {
|
|
307
319
|
localVarQueryParameter['expand'] = expand;
|
|
308
320
|
}
|
|
309
|
-
|
|
310
|
-
|
|
321
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
322
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
323
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
324
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
311
325
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
312
326
|
}
|
|
313
327
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -333,9 +347,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
333
347
|
updateDocTemplate: function (id, updateDocTemplateRequestDto, authorization, options) {
|
|
334
348
|
if (options === void 0) { options = {}; }
|
|
335
349
|
return __awaiter(_this, void 0, void 0, function () {
|
|
336
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
337
|
-
|
|
338
|
-
|
|
350
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
351
|
+
var _a;
|
|
352
|
+
return __generator(this, function (_b) {
|
|
353
|
+
switch (_b.label) {
|
|
339
354
|
case 0:
|
|
340
355
|
// verify required parameter 'id' is not null or undefined
|
|
341
356
|
(0, common_1.assertParamExists)('updateDocTemplate', 'id', id);
|
|
@@ -354,14 +369,17 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
354
369
|
// authentication bearer required
|
|
355
370
|
// http bearer authentication required
|
|
356
371
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
357
|
-
// Only Authorization falls back to the configured token
|
|
372
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
373
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
358
374
|
];
|
|
359
375
|
case 1:
|
|
360
376
|
// authentication bearer required
|
|
361
377
|
// http bearer authentication required
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
378
|
+
_b.sent();
|
|
379
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
380
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
381
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
382
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
365
383
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
366
384
|
}
|
|
367
385
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -595,7 +613,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
|
|
|
595
613
|
*/
|
|
596
614
|
DocumentTemplatesApi.prototype.createDocTemplate = function (requestParameters, options) {
|
|
597
615
|
var _this = this;
|
|
598
|
-
return (0, exports.DocumentTemplatesApiFp)(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
616
|
+
return (0, exports.DocumentTemplatesApiFp)(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
599
617
|
};
|
|
600
618
|
/**
|
|
601
619
|
* 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.templates.delete\"
|
|
@@ -607,7 +625,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
|
|
|
607
625
|
*/
|
|
608
626
|
DocumentTemplatesApi.prototype.deleteDocTemplate = function (requestParameters, options) {
|
|
609
627
|
var _this = this;
|
|
610
|
-
return (0, exports.DocumentTemplatesApiFp)(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
628
|
+
return (0, exports.DocumentTemplatesApiFp)(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
611
629
|
};
|
|
612
630
|
/**
|
|
613
631
|
* 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.templates.view\"
|
|
@@ -619,7 +637,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
|
|
|
619
637
|
*/
|
|
620
638
|
DocumentTemplatesApi.prototype.getDocTemplate = function (requestParameters, options) {
|
|
621
639
|
var _this = this;
|
|
622
|
-
return (0, exports.DocumentTemplatesApiFp)(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
640
|
+
return (0, exports.DocumentTemplatesApiFp)(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
623
641
|
};
|
|
624
642
|
/**
|
|
625
643
|
* 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.templates.view\"
|
|
@@ -632,7 +650,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
|
|
|
632
650
|
DocumentTemplatesApi.prototype.listDocTemplates = function (requestParameters, options) {
|
|
633
651
|
var _this = this;
|
|
634
652
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
635
|
-
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); });
|
|
653
|
+
return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
636
654
|
};
|
|
637
655
|
/**
|
|
638
656
|
* 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.templates.update\"
|
|
@@ -644,7 +662,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
|
|
|
644
662
|
*/
|
|
645
663
|
DocumentTemplatesApi.prototype.updateDocTemplate = function (requestParameters, options) {
|
|
646
664
|
var _this = this;
|
|
647
|
-
return (0, exports.DocumentTemplatesApiFp)(this.configuration).updateDocTemplate(requestParameters.id, requestParameters.updateDocTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
665
|
+
return (0, exports.DocumentTemplatesApiFp)(this.configuration).updateDocTemplate(requestParameters.id, requestParameters.updateDocTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
648
666
|
};
|
|
649
667
|
return DocumentTemplatesApi;
|
|
650
668
|
}(base_1.BaseAPI));
|