@emilgroup/document-sdk-node 1.28.0 → 1.28.2-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.
- package/.openapi-generator/FILES +36 -0
- package/README.md +2 -2
- package/api/document-templates-api.ts +67 -71
- package/api/documents-api.ts +39 -29
- package/api/docx-templates-api.ts +24 -12
- package/api/layouts-api.ts +20 -10
- package/api/product-documents-api.ts +14 -8
- package/api/search-keywords-api.ts +4 -2
- package/api/searchable-document-owners-api.ts +4 -2
- package/api/searchable-documents-api.ts +16 -16
- package/dist/api/document-templates-api.d.ts +59 -54
- package/dist/api/document-templates-api.js +34 -47
- package/dist/api/documents-api.d.ts +37 -31
- package/dist/api/documents-api.js +9 -11
- package/dist/api/docx-templates-api.d.ts +24 -18
- package/dist/api/layouts-api.d.ts +20 -15
- package/dist/api/product-documents-api.d.ts +15 -12
- package/dist/api/search-keywords-api.d.ts +4 -3
- package/dist/api/searchable-document-owners-api.d.ts +4 -3
- package/dist/api/searchable-documents-api.d.ts +13 -12
- package/dist/api/searchable-documents-api.js +9 -11
- package/dist/models/create-doc-template-request-dto.d.ts +2 -2
- package/dist/models/create-doc-template-response-class.d.ts +25 -0
- package/dist/models/create-doc-template-response-class.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +10 -10
- package/dist/models/create-document-sync-response-class.d.ts +25 -0
- package/dist/models/create-document-sync-response-class.js +15 -0
- package/dist/models/create-layout-response-class.d.ts +25 -0
- package/dist/models/create-layout-response-class.js +15 -0
- package/dist/models/create-presigned-post-request-dto.d.ts +4 -4
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/delete-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/doc-template-class.d.ts +104 -0
- package/dist/models/doc-template-class.js +15 -0
- package/dist/models/document-class.d.ts +171 -0
- package/dist/models/document-class.js +53 -0
- package/dist/models/docx-template-class.d.ts +102 -0
- package/dist/models/docx-template-class.js +15 -0
- package/dist/models/download-document-request-dto.d.ts +30 -0
- package/dist/models/download-document-request-dto.js +15 -0
- package/dist/models/get-doc-template-request-dto.d.ts +30 -0
- package/dist/models/get-doc-template-request-dto.js +15 -0
- package/dist/models/get-doc-template-response-class.d.ts +25 -0
- package/dist/models/get-doc-template-response-class.js +15 -0
- package/dist/models/get-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-document-download-url-response-class.js +15 -0
- package/dist/models/get-docx-template-download-url-response-class.d.ts +24 -0
- package/dist/models/get-docx-template-download-url-response-class.js +15 -0
- package/dist/models/get-docx-template-response-class.d.ts +25 -0
- package/dist/models/get-docx-template-response-class.js +15 -0
- package/dist/models/get-layout-response-class.d.ts +25 -0
- package/dist/models/get-layout-response-class.js +15 -0
- package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-product-document-download-url-response-class.js +15 -0
- package/dist/models/get-product-document-response-class.d.ts +25 -0
- package/dist/models/get-product-document-response-class.js +15 -0
- package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
- package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
- package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
- package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
- package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
- package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
- package/dist/models/html-template-class.d.ts +78 -0
- package/dist/models/html-template-class.js +21 -0
- package/dist/models/index.d.ts +36 -0
- package/dist/models/index.js +36 -0
- package/dist/models/layout-class.d.ts +91 -0
- package/dist/models/layout-class.js +15 -0
- package/dist/models/list-doc-template-request-dto.d.ts +54 -0
- package/dist/models/list-doc-template-request-dto.js +15 -0
- package/dist/models/list-doc-templates-response-class.d.ts +31 -0
- package/dist/models/list-doc-templates-response-class.js +15 -0
- package/dist/models/list-documents-response-class.d.ts +31 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/list-docx-templates-response-class.d.ts +31 -0
- package/dist/models/list-docx-templates-response-class.js +15 -0
- package/dist/models/list-layouts-response-class.d.ts +31 -0
- package/dist/models/list-layouts-response-class.js +15 -0
- package/dist/models/list-search-keywords-response-class.d.ts +24 -0
- package/dist/models/list-search-keywords-response-class.js +15 -0
- package/dist/models/list-searchable-document-owners-request-dto.d.ts +8 -1
- package/dist/models/list-searchable-document-owners-request-dto.js +7 -0
- package/dist/models/list-searchable-document-owners-response-class.d.ts +25 -0
- package/dist/models/list-searchable-document-owners-response-class.js +15 -0
- package/dist/models/list-searchable-documents-request-dto.d.ts +8 -1
- package/dist/models/list-searchable-documents-request-dto.js +7 -0
- package/dist/models/list-searchable-documents-response-class.d.ts +31 -0
- package/dist/models/list-searchable-documents-response-class.js +15 -0
- package/dist/models/searchable-document-class.d.ts +78 -0
- package/dist/models/searchable-document-class.js +15 -0
- package/dist/models/searchable-document-owner-class.d.ts +42 -0
- package/dist/models/searchable-document-owner-class.js +15 -0
- package/dist/models/update-doc-template-request-dto.d.ts +2 -2
- package/dist/models/update-doc-template-response-class.d.ts +25 -0
- package/dist/models/update-doc-template-response-class.js +15 -0
- package/dist/models/update-document-request-dto.d.ts +5 -5
- package/dist/models/update-document-response-class.d.ts +25 -0
- package/dist/models/update-document-response-class.js +15 -0
- package/dist/models/update-docx-template-response-class.d.ts +25 -0
- package/dist/models/update-docx-template-response-class.js +15 -0
- package/dist/models/update-layout-response-class.d.ts +25 -0
- package/dist/models/update-layout-response-class.js +15 -0
- package/dist/models/upload-docx-template-request-dto.d.ts +1 -1
- package/dist/models/upload-product-document-request-dto.d.ts +2 -2
- package/models/create-doc-template-request-dto.ts +2 -2
- package/models/create-doc-template-response-class.ts +31 -0
- package/models/create-document-request-dto.ts +10 -10
- package/models/create-document-sync-response-class.ts +31 -0
- package/models/create-layout-response-class.ts +31 -0
- package/models/create-presigned-post-request-dto.ts +4 -4
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/delete-response-class.ts +30 -0
- package/models/doc-template-class.ts +110 -0
- package/models/document-class.ts +181 -0
- package/models/docx-template-class.ts +108 -0
- package/models/download-document-request-dto.ts +36 -0
- package/models/get-doc-template-request-dto.ts +36 -0
- package/models/get-doc-template-response-class.ts +31 -0
- package/models/get-document-download-url-response-class.ts +30 -0
- package/models/get-docx-template-download-url-response-class.ts +30 -0
- package/models/get-docx-template-response-class.ts +31 -0
- package/models/get-layout-response-class.ts +31 -0
- package/models/get-product-document-download-url-response-class.ts +30 -0
- package/models/get-product-document-response-class.ts +31 -0
- package/models/get-signed-s3-key-url-response-class.ts +30 -0
- package/models/grpc-create-doc-template-request-dto.ts +61 -0
- package/models/grpc-update-doc-template-request-dto.ts +67 -0
- package/models/html-template-class.ts +87 -0
- package/models/index.ts +36 -0
- package/models/layout-class.ts +97 -0
- package/models/list-doc-template-request-dto.ts +60 -0
- package/models/list-doc-templates-response-class.ts +37 -0
- package/models/list-documents-response-class.ts +37 -0
- package/models/list-docx-templates-response-class.ts +37 -0
- package/models/list-layouts-response-class.ts +37 -0
- package/models/list-search-keywords-response-class.ts +30 -0
- package/models/list-searchable-document-owners-request-dto.ts +11 -1
- package/models/list-searchable-document-owners-response-class.ts +31 -0
- package/models/list-searchable-documents-request-dto.ts +11 -1
- package/models/list-searchable-documents-response-class.ts +37 -0
- package/models/searchable-document-class.ts +84 -0
- package/models/searchable-document-owner-class.ts +48 -0
- package/models/update-doc-template-request-dto.ts +2 -2
- package/models/update-doc-template-response-class.ts +31 -0
- package/models/update-document-request-dto.ts +5 -5
- package/models/update-document-response-class.ts +31 -0
- package/models/update-docx-template-response-class.ts +31 -0
- package/models/update-layout-response-class.ts +31 -0
- package/models/upload-docx-template-request-dto.ts +1 -1
- package/models/upload-product-document-request-dto.ts +2 -2
- package/package.json +1 -1
|
@@ -13,7 +13,12 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateDocTemplateRequestDto } from '../models';
|
|
16
|
+
import { CreateDocTemplateResponseClass } from '../models';
|
|
17
|
+
import { DeleteResponseClass } from '../models';
|
|
18
|
+
import { GetDocTemplateResponseClass } from '../models';
|
|
19
|
+
import { ListDocTemplatesResponseClass } from '../models';
|
|
16
20
|
import { UpdateDocTemplateRequestDto } from '../models';
|
|
21
|
+
import { UpdateDocTemplateResponseClass } from '../models';
|
|
17
22
|
/**
|
|
18
23
|
* DocumentTemplatesApi - axios parameter creator
|
|
19
24
|
* @export
|
|
@@ -41,26 +46,26 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
|
|
|
41
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.
|
|
42
47
|
* @summary Retrieve the document template
|
|
43
48
|
* @param {number} id
|
|
44
|
-
* @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.
|
|
45
49
|
* @param {string} [authorization] Bearer Token
|
|
50
|
+
* @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.
|
|
46
51
|
* @param {*} [options] Override http request option.
|
|
47
52
|
* @throws {RequiredError}
|
|
48
53
|
*/
|
|
49
|
-
getDocTemplate: (id: number,
|
|
54
|
+
getDocTemplate: (id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
55
|
/**
|
|
51
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.
|
|
52
57
|
* @summary List document templates
|
|
53
|
-
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
54
|
-
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
55
|
-
* @param {string} filter Filter response by productSlug, slug and name.
|
|
56
|
-
* @param {string} search Search document templates by name | slug
|
|
57
|
-
* @param {string} order Order response by createdAt.
|
|
58
|
-
* @param {string} expand Expand response by bodyTemplate.
|
|
59
58
|
* @param {string} [authorization] Bearer Token
|
|
59
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
60
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
61
|
+
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
62
|
+
* @param {string} [search] Search document templates by name | slug
|
|
63
|
+
* @param {string} [order] Order response by createdAt.
|
|
64
|
+
* @param {string} [expand] Expand response by bodyTemplate.
|
|
60
65
|
* @param {*} [options] Override http request option.
|
|
61
66
|
* @throws {RequiredError}
|
|
62
67
|
*/
|
|
63
|
-
listDocTemplates: (pageSize
|
|
68
|
+
listDocTemplates: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
69
|
/**
|
|
65
70
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
66
71
|
* @summary Update the document template
|
|
@@ -85,7 +90,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
|
|
|
85
90
|
* @param {*} [options] Override http request option.
|
|
86
91
|
* @throws {RequiredError}
|
|
87
92
|
*/
|
|
88
|
-
createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
93
|
+
createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDocTemplateResponseClass>>;
|
|
89
94
|
/**
|
|
90
95
|
* Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
|
|
91
96
|
* @summary Delete the document template
|
|
@@ -94,31 +99,31 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
|
|
|
94
99
|
* @param {*} [options] Override http request option.
|
|
95
100
|
* @throws {RequiredError}
|
|
96
101
|
*/
|
|
97
|
-
deleteDocTemplate(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
102
|
+
deleteDocTemplate(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
98
103
|
/**
|
|
99
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.
|
|
100
105
|
* @summary Retrieve the document template
|
|
101
106
|
* @param {number} id
|
|
102
|
-
* @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.
|
|
103
107
|
* @param {string} [authorization] Bearer Token
|
|
108
|
+
* @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.
|
|
104
109
|
* @param {*} [options] Override http request option.
|
|
105
110
|
* @throws {RequiredError}
|
|
106
111
|
*/
|
|
107
|
-
getDocTemplate(id: number,
|
|
112
|
+
getDocTemplate(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocTemplateResponseClass>>;
|
|
108
113
|
/**
|
|
109
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.
|
|
110
115
|
* @summary List document templates
|
|
111
|
-
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
112
|
-
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
113
|
-
* @param {string} filter Filter response by productSlug, slug and name.
|
|
114
|
-
* @param {string} search Search document templates by name | slug
|
|
115
|
-
* @param {string} order Order response by createdAt.
|
|
116
|
-
* @param {string} expand Expand response by bodyTemplate.
|
|
117
116
|
* @param {string} [authorization] Bearer Token
|
|
117
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
118
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
119
|
+
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
120
|
+
* @param {string} [search] Search document templates by name | slug
|
|
121
|
+
* @param {string} [order] Order response by createdAt.
|
|
122
|
+
* @param {string} [expand] Expand response by bodyTemplate.
|
|
118
123
|
* @param {*} [options] Override http request option.
|
|
119
124
|
* @throws {RequiredError}
|
|
120
125
|
*/
|
|
121
|
-
listDocTemplates(pageSize
|
|
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>>;
|
|
122
127
|
/**
|
|
123
128
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
124
129
|
* @summary Update the document template
|
|
@@ -128,7 +133,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
|
|
|
128
133
|
* @param {*} [options] Override http request option.
|
|
129
134
|
* @throws {RequiredError}
|
|
130
135
|
*/
|
|
131
|
-
updateDocTemplate(id: number, updateDocTemplateRequestDto: UpdateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
136
|
+
updateDocTemplate(id: number, updateDocTemplateRequestDto: UpdateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDocTemplateResponseClass>>;
|
|
132
137
|
};
|
|
133
138
|
/**
|
|
134
139
|
* DocumentTemplatesApi - factory interface
|
|
@@ -143,7 +148,7 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
|
|
|
143
148
|
* @param {*} [options] Override http request option.
|
|
144
149
|
* @throws {RequiredError}
|
|
145
150
|
*/
|
|
146
|
-
createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
151
|
+
createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDocTemplateResponseClass>;
|
|
147
152
|
/**
|
|
148
153
|
* Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
|
|
149
154
|
* @summary Delete the document template
|
|
@@ -152,31 +157,31 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
|
|
|
152
157
|
* @param {*} [options] Override http request option.
|
|
153
158
|
* @throws {RequiredError}
|
|
154
159
|
*/
|
|
155
|
-
deleteDocTemplate(id: number, authorization?: string, options?: any): AxiosPromise<
|
|
160
|
+
deleteDocTemplate(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
156
161
|
/**
|
|
157
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.
|
|
158
163
|
* @summary Retrieve the document template
|
|
159
164
|
* @param {number} id
|
|
160
|
-
* @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.
|
|
161
165
|
* @param {string} [authorization] Bearer Token
|
|
166
|
+
* @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.
|
|
162
167
|
* @param {*} [options] Override http request option.
|
|
163
168
|
* @throws {RequiredError}
|
|
164
169
|
*/
|
|
165
|
-
getDocTemplate(id: number,
|
|
170
|
+
getDocTemplate(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetDocTemplateResponseClass>;
|
|
166
171
|
/**
|
|
167
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.
|
|
168
173
|
* @summary List document templates
|
|
169
|
-
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
170
|
-
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
171
|
-
* @param {string} filter Filter response by productSlug, slug and name.
|
|
172
|
-
* @param {string} search Search document templates by name | slug
|
|
173
|
-
* @param {string} order Order response by createdAt.
|
|
174
|
-
* @param {string} expand Expand response by bodyTemplate.
|
|
175
174
|
* @param {string} [authorization] Bearer Token
|
|
175
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
176
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
177
|
+
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
178
|
+
* @param {string} [search] Search document templates by name | slug
|
|
179
|
+
* @param {string} [order] Order response by createdAt.
|
|
180
|
+
* @param {string} [expand] Expand response by bodyTemplate.
|
|
176
181
|
* @param {*} [options] Override http request option.
|
|
177
182
|
* @throws {RequiredError}
|
|
178
183
|
*/
|
|
179
|
-
listDocTemplates(pageSize
|
|
184
|
+
listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass>;
|
|
180
185
|
/**
|
|
181
186
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
182
187
|
* @summary Update the document template
|
|
@@ -186,7 +191,7 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
|
|
|
186
191
|
* @param {*} [options] Override http request option.
|
|
187
192
|
* @throws {RequiredError}
|
|
188
193
|
*/
|
|
189
|
-
updateDocTemplate(id: number, updateDocTemplateRequestDto: UpdateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
194
|
+
updateDocTemplate(id: number, updateDocTemplateRequestDto: UpdateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateDocTemplateResponseClass>;
|
|
190
195
|
};
|
|
191
196
|
/**
|
|
192
197
|
* Request parameters for createDocTemplate operation in DocumentTemplatesApi.
|
|
@@ -239,17 +244,17 @@ export interface DocumentTemplatesApiGetDocTemplateRequest {
|
|
|
239
244
|
*/
|
|
240
245
|
readonly id: number;
|
|
241
246
|
/**
|
|
242
|
-
*
|
|
247
|
+
* Bearer Token
|
|
243
248
|
* @type {string}
|
|
244
249
|
* @memberof DocumentTemplatesApiGetDocTemplate
|
|
245
250
|
*/
|
|
246
|
-
readonly
|
|
251
|
+
readonly authorization?: string;
|
|
247
252
|
/**
|
|
248
|
-
*
|
|
253
|
+
* 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.
|
|
249
254
|
* @type {string}
|
|
250
255
|
* @memberof DocumentTemplatesApiGetDocTemplate
|
|
251
256
|
*/
|
|
252
|
-
readonly
|
|
257
|
+
readonly expand?: string;
|
|
253
258
|
}
|
|
254
259
|
/**
|
|
255
260
|
* Request parameters for listDocTemplates operation in DocumentTemplatesApi.
|
|
@@ -257,48 +262,48 @@ export interface DocumentTemplatesApiGetDocTemplateRequest {
|
|
|
257
262
|
* @interface DocumentTemplatesApiListDocTemplatesRequest
|
|
258
263
|
*/
|
|
259
264
|
export interface DocumentTemplatesApiListDocTemplatesRequest {
|
|
265
|
+
/**
|
|
266
|
+
* Bearer Token
|
|
267
|
+
* @type {string}
|
|
268
|
+
* @memberof DocumentTemplatesApiListDocTemplates
|
|
269
|
+
*/
|
|
270
|
+
readonly authorization?: string;
|
|
260
271
|
/**
|
|
261
272
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
262
273
|
* @type {number}
|
|
263
274
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
264
275
|
*/
|
|
265
|
-
readonly pageSize
|
|
276
|
+
readonly pageSize?: number;
|
|
266
277
|
/**
|
|
267
278
|
* 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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
268
279
|
* @type {string}
|
|
269
280
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
270
281
|
*/
|
|
271
|
-
readonly pageToken
|
|
282
|
+
readonly pageToken?: string;
|
|
272
283
|
/**
|
|
273
284
|
* Filter response by productSlug, slug and name.
|
|
274
285
|
* @type {string}
|
|
275
286
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
276
287
|
*/
|
|
277
|
-
readonly filter
|
|
288
|
+
readonly filter?: string;
|
|
278
289
|
/**
|
|
279
290
|
* Search document templates by name | slug
|
|
280
291
|
* @type {string}
|
|
281
292
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
282
293
|
*/
|
|
283
|
-
readonly search
|
|
294
|
+
readonly search?: string;
|
|
284
295
|
/**
|
|
285
296
|
* Order response by createdAt.
|
|
286
297
|
* @type {string}
|
|
287
298
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
288
299
|
*/
|
|
289
|
-
readonly order
|
|
300
|
+
readonly order?: string;
|
|
290
301
|
/**
|
|
291
302
|
* Expand response by bodyTemplate.
|
|
292
303
|
* @type {string}
|
|
293
304
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
294
305
|
*/
|
|
295
|
-
readonly expand
|
|
296
|
-
/**
|
|
297
|
-
* Bearer Token
|
|
298
|
-
* @type {string}
|
|
299
|
-
* @memberof DocumentTemplatesApiListDocTemplates
|
|
300
|
-
*/
|
|
301
|
-
readonly authorization?: string;
|
|
306
|
+
readonly expand?: string;
|
|
302
307
|
}
|
|
303
308
|
/**
|
|
304
309
|
* Request parameters for updateDocTemplate operation in DocumentTemplatesApi.
|
|
@@ -340,7 +345,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
340
345
|
* @throws {RequiredError}
|
|
341
346
|
* @memberof DocumentTemplatesApi
|
|
342
347
|
*/
|
|
343
|
-
createDocTemplate(requestParameters: DocumentTemplatesApiCreateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
348
|
+
createDocTemplate(requestParameters: DocumentTemplatesApiCreateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocTemplateResponseClass, any>>;
|
|
344
349
|
/**
|
|
345
350
|
* Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it.
|
|
346
351
|
* @summary Delete the document template
|
|
@@ -349,7 +354,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
349
354
|
* @throws {RequiredError}
|
|
350
355
|
* @memberof DocumentTemplatesApi
|
|
351
356
|
*/
|
|
352
|
-
deleteDocTemplate(requestParameters: DocumentTemplatesApiDeleteDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
357
|
+
deleteDocTemplate(requestParameters: DocumentTemplatesApiDeleteDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
353
358
|
/**
|
|
354
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.
|
|
355
360
|
* @summary Retrieve the document template
|
|
@@ -358,7 +363,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
358
363
|
* @throws {RequiredError}
|
|
359
364
|
* @memberof DocumentTemplatesApi
|
|
360
365
|
*/
|
|
361
|
-
getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
366
|
+
getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocTemplateResponseClass, any>>;
|
|
362
367
|
/**
|
|
363
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.
|
|
364
369
|
* @summary List document templates
|
|
@@ -367,7 +372,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
367
372
|
* @throws {RequiredError}
|
|
368
373
|
* @memberof DocumentTemplatesApi
|
|
369
374
|
*/
|
|
370
|
-
listDocTemplates(requestParameters
|
|
375
|
+
listDocTemplates(requestParameters?: DocumentTemplatesApiListDocTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocTemplatesResponseClass, any>>;
|
|
371
376
|
/**
|
|
372
377
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
373
378
|
* @summary Update the document template
|
|
@@ -376,5 +381,5 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
376
381
|
* @throws {RequiredError}
|
|
377
382
|
* @memberof DocumentTemplatesApi
|
|
378
383
|
*/
|
|
379
|
-
updateDocTemplate(requestParameters: DocumentTemplatesApiUpdateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
384
|
+
updateDocTemplate(requestParameters: DocumentTemplatesApiUpdateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocTemplateResponseClass, any>>;
|
|
380
385
|
}
|
|
@@ -197,12 +197,12 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
197
197
|
* 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.
|
|
198
198
|
* @summary Retrieve the document template
|
|
199
199
|
* @param {number} id
|
|
200
|
-
* @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.
|
|
201
200
|
* @param {string} [authorization] Bearer Token
|
|
201
|
+
* @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.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
getDocTemplate: function (id,
|
|
205
|
+
getDocTemplate: function (id, authorization, expand, options) {
|
|
206
206
|
if (options === void 0) { options = {}; }
|
|
207
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -211,8 +211,6 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
211
211
|
case 0:
|
|
212
212
|
// verify required parameter 'id' is not null or undefined
|
|
213
213
|
(0, common_1.assertParamExists)('getDocTemplate', 'id', id);
|
|
214
|
-
// verify required parameter 'expand' is not null or undefined
|
|
215
|
-
(0, common_1.assertParamExists)('getDocTemplate', 'expand', expand);
|
|
216
214
|
localVarPath = "/documentservice/v1/doc-templates/{id}"
|
|
217
215
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
218
216
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -250,35 +248,23 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
250
248
|
/**
|
|
251
249
|
* 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.
|
|
252
250
|
* @summary List document templates
|
|
253
|
-
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
254
|
-
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
255
|
-
* @param {string} filter Filter response by productSlug, slug and name.
|
|
256
|
-
* @param {string} search Search document templates by name | slug
|
|
257
|
-
* @param {string} order Order response by createdAt.
|
|
258
|
-
* @param {string} expand Expand response by bodyTemplate.
|
|
259
251
|
* @param {string} [authorization] Bearer Token
|
|
252
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
253
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
254
|
+
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
255
|
+
* @param {string} [search] Search document templates by name | slug
|
|
256
|
+
* @param {string} [order] Order response by createdAt.
|
|
257
|
+
* @param {string} [expand] Expand response by bodyTemplate.
|
|
260
258
|
* @param {*} [options] Override http request option.
|
|
261
259
|
* @throws {RequiredError}
|
|
262
260
|
*/
|
|
263
|
-
listDocTemplates: function (pageSize, pageToken, filter, search, order, expand,
|
|
261
|
+
listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
264
262
|
if (options === void 0) { options = {}; }
|
|
265
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
266
264
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
267
265
|
return __generator(this, function (_a) {
|
|
268
266
|
switch (_a.label) {
|
|
269
267
|
case 0:
|
|
270
|
-
// verify required parameter 'pageSize' is not null or undefined
|
|
271
|
-
(0, common_1.assertParamExists)('listDocTemplates', 'pageSize', pageSize);
|
|
272
|
-
// verify required parameter 'pageToken' is not null or undefined
|
|
273
|
-
(0, common_1.assertParamExists)('listDocTemplates', 'pageToken', pageToken);
|
|
274
|
-
// verify required parameter 'filter' is not null or undefined
|
|
275
|
-
(0, common_1.assertParamExists)('listDocTemplates', 'filter', filter);
|
|
276
|
-
// verify required parameter 'search' is not null or undefined
|
|
277
|
-
(0, common_1.assertParamExists)('listDocTemplates', 'search', search);
|
|
278
|
-
// verify required parameter 'order' is not null or undefined
|
|
279
|
-
(0, common_1.assertParamExists)('listDocTemplates', 'order', order);
|
|
280
|
-
// verify required parameter 'expand' is not null or undefined
|
|
281
|
-
(0, common_1.assertParamExists)('listDocTemplates', 'expand', expand);
|
|
282
268
|
localVarPath = "/documentservice/v1/doc-templates";
|
|
283
269
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
284
270
|
if (configuration) {
|
|
@@ -436,17 +422,17 @@ var DocumentTemplatesApiFp = function (configuration) {
|
|
|
436
422
|
* 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.
|
|
437
423
|
* @summary Retrieve the document template
|
|
438
424
|
* @param {number} id
|
|
439
|
-
* @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.
|
|
440
425
|
* @param {string} [authorization] Bearer Token
|
|
426
|
+
* @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.
|
|
441
427
|
* @param {*} [options] Override http request option.
|
|
442
428
|
* @throws {RequiredError}
|
|
443
429
|
*/
|
|
444
|
-
getDocTemplate: function (id,
|
|
430
|
+
getDocTemplate: function (id, authorization, expand, options) {
|
|
445
431
|
return __awaiter(this, void 0, void 0, function () {
|
|
446
432
|
var localVarAxiosArgs;
|
|
447
433
|
return __generator(this, function (_a) {
|
|
448
434
|
switch (_a.label) {
|
|
449
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDocTemplate(id,
|
|
435
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDocTemplate(id, authorization, expand, options)];
|
|
450
436
|
case 1:
|
|
451
437
|
localVarAxiosArgs = _a.sent();
|
|
452
438
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -457,22 +443,22 @@ var DocumentTemplatesApiFp = function (configuration) {
|
|
|
457
443
|
/**
|
|
458
444
|
* 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.
|
|
459
445
|
* @summary List document templates
|
|
460
|
-
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
461
|
-
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
462
|
-
* @param {string} filter Filter response by productSlug, slug and name.
|
|
463
|
-
* @param {string} search Search document templates by name | slug
|
|
464
|
-
* @param {string} order Order response by createdAt.
|
|
465
|
-
* @param {string} expand Expand response by bodyTemplate.
|
|
466
446
|
* @param {string} [authorization] Bearer Token
|
|
447
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
448
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
449
|
+
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
450
|
+
* @param {string} [search] Search document templates by name | slug
|
|
451
|
+
* @param {string} [order] Order response by createdAt.
|
|
452
|
+
* @param {string} [expand] Expand response by bodyTemplate.
|
|
467
453
|
* @param {*} [options] Override http request option.
|
|
468
454
|
* @throws {RequiredError}
|
|
469
455
|
*/
|
|
470
|
-
listDocTemplates: function (pageSize, pageToken, filter, search, order, expand,
|
|
456
|
+
listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
471
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
472
458
|
var localVarAxiosArgs;
|
|
473
459
|
return __generator(this, function (_a) {
|
|
474
460
|
switch (_a.label) {
|
|
475
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocTemplates(pageSize, pageToken, filter, search, order, expand,
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
476
462
|
case 1:
|
|
477
463
|
localVarAxiosArgs = _a.sent();
|
|
478
464
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -538,29 +524,29 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
|
538
524
|
* 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.
|
|
539
525
|
* @summary Retrieve the document template
|
|
540
526
|
* @param {number} id
|
|
541
|
-
* @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.
|
|
542
527
|
* @param {string} [authorization] Bearer Token
|
|
528
|
+
* @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.
|
|
543
529
|
* @param {*} [options] Override http request option.
|
|
544
530
|
* @throws {RequiredError}
|
|
545
531
|
*/
|
|
546
|
-
getDocTemplate: function (id,
|
|
547
|
-
return localVarFp.getDocTemplate(id,
|
|
532
|
+
getDocTemplate: function (id, authorization, expand, options) {
|
|
533
|
+
return localVarFp.getDocTemplate(id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
548
534
|
},
|
|
549
535
|
/**
|
|
550
536
|
* 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.
|
|
551
537
|
* @summary List document templates
|
|
552
|
-
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
553
|
-
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
554
|
-
* @param {string} filter Filter response by productSlug, slug and name.
|
|
555
|
-
* @param {string} search Search document templates by name | slug
|
|
556
|
-
* @param {string} order Order response by createdAt.
|
|
557
|
-
* @param {string} expand Expand response by bodyTemplate.
|
|
558
538
|
* @param {string} [authorization] Bearer Token
|
|
539
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
540
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
541
|
+
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
542
|
+
* @param {string} [search] Search document templates by name | slug
|
|
543
|
+
* @param {string} [order] Order response by createdAt.
|
|
544
|
+
* @param {string} [expand] Expand response by bodyTemplate.
|
|
559
545
|
* @param {*} [options] Override http request option.
|
|
560
546
|
* @throws {RequiredError}
|
|
561
547
|
*/
|
|
562
|
-
listDocTemplates: function (pageSize, pageToken, filter, search, order, expand,
|
|
563
|
-
return localVarFp.listDocTemplates(pageSize, pageToken, filter, search, order, expand,
|
|
548
|
+
listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
549
|
+
return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
564
550
|
},
|
|
565
551
|
/**
|
|
566
552
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -622,7 +608,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
|
|
|
622
608
|
*/
|
|
623
609
|
DocumentTemplatesApi.prototype.getDocTemplate = function (requestParameters, options) {
|
|
624
610
|
var _this = this;
|
|
625
|
-
return (0, exports.DocumentTemplatesApiFp)(this.configuration).getDocTemplate(requestParameters.id, requestParameters.
|
|
611
|
+
return (0, exports.DocumentTemplatesApiFp)(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
626
612
|
};
|
|
627
613
|
/**
|
|
628
614
|
* 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.
|
|
@@ -634,7 +620,8 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
|
|
|
634
620
|
*/
|
|
635
621
|
DocumentTemplatesApi.prototype.listDocTemplates = function (requestParameters, options) {
|
|
636
622
|
var _this = this;
|
|
637
|
-
|
|
623
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
624
|
+
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); });
|
|
638
625
|
};
|
|
639
626
|
/**
|
|
640
627
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|