groupdocs-parser-cloud 23.10.0 → 25.9.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.
@@ -1,4 +1,4 @@
1
- /**
2
- * Package version
3
- */
4
- export declare const PackageVersion: string;
1
+ /**
2
+ * Package version
3
+ */
4
+ export declare const PackageVersion: string;
@@ -1,29 +1,30 @@
1
- "use strict";
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2003-2023 Aspose Pty Ltd
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- /**
27
- * Package version
28
- */
29
- exports.PackageVersion = "23.7.0";
1
+ "use strict";
2
+ /*
3
+ * The MIT License (MIT)
4
+ *
5
+ * Copyright (c) Aspose Pty Ltd
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.PackageVersion = void 0;
27
+ /**
28
+ * Package version
29
+ */
30
+ exports.PackageVersion = "25.9.0";
@@ -1,270 +1,269 @@
1
- /// <reference types="node" />
2
- import http = require("http");
3
- import { Configuration } from "./configuration";
4
- import * as model from "./model";
5
- export * from "./model";
6
- export * from "./configuration";
7
- /**
8
- * GroupDocs.Parser Cloud API
9
- */
10
- export declare class FileApi {
11
- /**
12
- * Creates new instance of FileApi
13
- * @param appSid Application identifier (App SID).
14
- * @param appKey Application private key (App Key).
15
- */
16
- static fromKeys(appSid: string, appKey: string): FileApi;
17
- /**
18
- * Creates new instance of FileApi
19
- * @param config API configuration.
20
- */
21
- static fromConfig(config: Configuration): FileApi;
22
- /**
23
- * Configuration
24
- */
25
- private configuration;
26
- /**
27
- * @param config Configuration.
28
- */
29
- private constructor();
30
- /**
31
- * Copy file
32
- * @param requestObj contains request parameters
33
- */
34
- copyFile(requestObj: model.CopyFileRequest): Promise<http.IncomingMessage>;
35
- /**
36
- * Delete file
37
- * @param requestObj contains request parameters
38
- */
39
- deleteFile(requestObj: model.DeleteFileRequest): Promise<http.IncomingMessage>;
40
- /**
41
- * Download file
42
- * @param requestObj contains request parameters
43
- */
44
- downloadFile(requestObj: model.DownloadFileRequest): Promise<Buffer>;
45
- /**
46
- * Move file
47
- * @param requestObj contains request parameters
48
- */
49
- moveFile(requestObj: model.MoveFileRequest): Promise<http.IncomingMessage>;
50
- /**
51
- * Upload file
52
- * @param requestObj contains request parameters
53
- */
54
- uploadFile(requestObj: model.UploadFileRequest): Promise<model.FilesUploadResult>;
55
- }
56
- /**
57
- * GroupDocs.Parser Cloud API
58
- */
59
- export declare class FolderApi {
60
- /**
61
- * Creates new instance of FolderApi
62
- * @param appSid Application identifier (App SID).
63
- * @param appKey Application private key (App Key).
64
- */
65
- static fromKeys(appSid: string, appKey: string): FolderApi;
66
- /**
67
- * Creates new instance of FolderApi
68
- * @param config API configuration.
69
- */
70
- static fromConfig(config: Configuration): FolderApi;
71
- /**
72
- * Configuration
73
- */
74
- private configuration;
75
- /**
76
- * @param config Configuration.
77
- */
78
- private constructor();
79
- /**
80
- * Copy folder
81
- * @param requestObj contains request parameters
82
- */
83
- copyFolder(requestObj: model.CopyFolderRequest): Promise<http.IncomingMessage>;
84
- /**
85
- * Create the folder
86
- * @param requestObj contains request parameters
87
- */
88
- createFolder(requestObj: model.CreateFolderRequest): Promise<http.IncomingMessage>;
89
- /**
90
- * Delete folder
91
- * @param requestObj contains request parameters
92
- */
93
- deleteFolder(requestObj: model.DeleteFolderRequest): Promise<http.IncomingMessage>;
94
- /**
95
- * Get all files and folders within a folder
96
- * @param requestObj contains request parameters
97
- */
98
- getFilesList(requestObj: model.GetFilesListRequest): Promise<model.FilesList>;
99
- /**
100
- * Move folder
101
- * @param requestObj contains request parameters
102
- */
103
- moveFolder(requestObj: model.MoveFolderRequest): Promise<http.IncomingMessage>;
104
- }
105
- /**
106
- * GroupDocs.Parser Cloud API
107
- */
108
- export declare class InfoApi {
109
- /**
110
- * Creates new instance of InfoApi
111
- * @param appSid Application identifier (App SID).
112
- * @param appKey Application private key (App Key).
113
- */
114
- static fromKeys(appSid: string, appKey: string): InfoApi;
115
- /**
116
- * Creates new instance of InfoApi
117
- * @param config API configuration.
118
- */
119
- static fromConfig(config: Configuration): InfoApi;
120
- /**
121
- * Configuration
122
- */
123
- private configuration;
124
- /**
125
- * @param config Configuration.
126
- */
127
- private constructor();
128
- /**
129
- * Retrieve a container items (relative paths) from document to work with formats that contain attachments, ZIP archives etc.
130
- * @param requestObj contains request parameters
131
- */
132
- container(requestObj: model.ContainerRequest): Promise<model.ContainerResult>;
133
- /**
134
- * Retrieve information about document.
135
- * @param requestObj contains request parameters
136
- */
137
- getInfo(requestObj: model.GetInfoRequest): Promise<model.InfoResult>;
138
- /**
139
- * List supported file formats.
140
- * @param requestObj contains request parameters
141
- */
142
- getSupportedFileFormats(): Promise<model.FormatsResult>;
143
- }
144
- /**
145
- * GroupDocs.Parser Cloud API
146
- */
147
- export declare class ParseApi {
148
- /**
149
- * Creates new instance of ParseApi
150
- * @param appSid Application identifier (App SID).
151
- * @param appKey Application private key (App Key).
152
- */
153
- static fromKeys(appSid: string, appKey: string): ParseApi;
154
- /**
155
- * Creates new instance of ParseApi
156
- * @param config API configuration.
157
- */
158
- static fromConfig(config: Configuration): ParseApi;
159
- /**
160
- * Configuration
161
- */
162
- private configuration;
163
- /**
164
- * @param config Configuration.
165
- */
166
- private constructor();
167
- /**
168
- * Extract barcodes from document.
169
- * @param requestObj contains request parameters
170
- */
171
- barcodes(requestObj: model.BarcodesRequest): Promise<model.BarcodesResult>;
172
- /**
173
- * Extract images from document.
174
- * @param requestObj contains request parameters
175
- */
176
- images(requestObj: model.ImagesRequest): Promise<model.ImagesResult>;
177
- /**
178
- * Extract document data by a predefined template.
179
- * @param requestObj contains request parameters
180
- */
181
- parse(requestObj: model.ParseRequest): Promise<model.ParseResult>;
182
- /**
183
- * Extract text from document.
184
- * @param requestObj contains request parameters
185
- */
186
- text(requestObj: model.TextRequest): Promise<model.TextResult>;
187
- }
188
- /**
189
- * GroupDocs.Parser Cloud API
190
- */
191
- export declare class StorageApi {
192
- /**
193
- * Creates new instance of StorageApi
194
- * @param appSid Application identifier (App SID).
195
- * @param appKey Application private key (App Key).
196
- */
197
- static fromKeys(appSid: string, appKey: string): StorageApi;
198
- /**
199
- * Creates new instance of StorageApi
200
- * @param config API configuration.
201
- */
202
- static fromConfig(config: Configuration): StorageApi;
203
- /**
204
- * Configuration
205
- */
206
- private configuration;
207
- /**
208
- * @param config Configuration.
209
- */
210
- private constructor();
211
- /**
212
- * Get disc usage
213
- * @param requestObj contains request parameters
214
- */
215
- getDiscUsage(requestObj: model.GetDiscUsageRequest): Promise<model.DiscUsage>;
216
- /**
217
- * Get file versions
218
- * @param requestObj contains request parameters
219
- */
220
- getFileVersions(requestObj: model.GetFileVersionsRequest): Promise<model.FileVersions>;
221
- /**
222
- * Check if file or folder exists
223
- * @param requestObj contains request parameters
224
- */
225
- objectExists(requestObj: model.ObjectExistsRequest): Promise<model.ObjectExist>;
226
- /**
227
- * Check if storage exists
228
- * @param requestObj contains request parameters
229
- */
230
- storageExists(requestObj: model.StorageExistsRequest): Promise<model.StorageExist>;
231
- }
232
- /**
233
- * GroupDocs.Parser Cloud API
234
- */
235
- export declare class TemplateApi {
236
- /**
237
- * Creates new instance of TemplateApi
238
- * @param appSid Application identifier (App SID).
239
- * @param appKey Application private key (App Key).
240
- */
241
- static fromKeys(appSid: string, appKey: string): TemplateApi;
242
- /**
243
- * Creates new instance of TemplateApi
244
- * @param config API configuration.
245
- */
246
- static fromConfig(config: Configuration): TemplateApi;
247
- /**
248
- * Configuration
249
- */
250
- private configuration;
251
- /**
252
- * @param config Configuration.
253
- */
254
- private constructor();
255
- /**
256
- * Create or update document template.
257
- * @param requestObj contains request parameters
258
- */
259
- createTemplate(requestObj: model.CreateTemplateRequest): Promise<model.TemplateResult>;
260
- /**
261
- * Delete document template.
262
- * @param requestObj contains request parameters
263
- */
264
- deleteTemplate(requestObj: model.DeleteTemplateRequest): Promise<http.IncomingMessage>;
265
- /**
266
- * Retrieve document template.
267
- * @param requestObj contains request parameters
268
- */
269
- getTemplate(requestObj: model.GetTemplateRequest): Promise<model.Template>;
270
- }
1
+ import axios = require("axios");
2
+ import { Configuration } from "./configuration";
3
+ import * as model from "./model";
4
+ export * from "./model";
5
+ export * from "./configuration";
6
+ /**
7
+ * GroupDocs.Parser Cloud API
8
+ */
9
+ export declare class FileApi {
10
+ /**
11
+ * Creates new instance of FileApi
12
+ * @param appSid Application identifier (App SID).
13
+ * @param appKey Application private key (App Key).
14
+ */
15
+ static fromKeys(appSid: string, appKey: string): FileApi;
16
+ /**
17
+ * Creates new instance of FileApi
18
+ * @param config API configuration.
19
+ */
20
+ static fromConfig(config: Configuration): FileApi;
21
+ /**
22
+ * Configuration
23
+ */
24
+ private configuration;
25
+ /**
26
+ * @param config Configuration.
27
+ */
28
+ private constructor();
29
+ /**
30
+ * Copy file
31
+ * @param requestObj contains request parameters
32
+ */
33
+ copyFile(requestObj: model.CopyFileRequest): Promise<axios.AxiosResponse>;
34
+ /**
35
+ * Delete file
36
+ * @param requestObj contains request parameters
37
+ */
38
+ deleteFile(requestObj: model.DeleteFileRequest): Promise<axios.AxiosResponse>;
39
+ /**
40
+ * Download file
41
+ * @param requestObj contains request parameters
42
+ */
43
+ downloadFile(requestObj: model.DownloadFileRequest): Promise<Buffer>;
44
+ /**
45
+ * Move file
46
+ * @param requestObj contains request parameters
47
+ */
48
+ moveFile(requestObj: model.MoveFileRequest): Promise<axios.AxiosResponse>;
49
+ /**
50
+ * Upload file
51
+ * @param requestObj contains request parameters
52
+ */
53
+ uploadFile(requestObj: model.UploadFileRequest): Promise<model.FilesUploadResult>;
54
+ }
55
+ /**
56
+ * GroupDocs.Parser Cloud API
57
+ */
58
+ export declare class FolderApi {
59
+ /**
60
+ * Creates new instance of FolderApi
61
+ * @param appSid Application identifier (App SID).
62
+ * @param appKey Application private key (App Key).
63
+ */
64
+ static fromKeys(appSid: string, appKey: string): FolderApi;
65
+ /**
66
+ * Creates new instance of FolderApi
67
+ * @param config API configuration.
68
+ */
69
+ static fromConfig(config: Configuration): FolderApi;
70
+ /**
71
+ * Configuration
72
+ */
73
+ private configuration;
74
+ /**
75
+ * @param config Configuration.
76
+ */
77
+ private constructor();
78
+ /**
79
+ * Copy folder
80
+ * @param requestObj contains request parameters
81
+ */
82
+ copyFolder(requestObj: model.CopyFolderRequest): Promise<axios.AxiosResponse>;
83
+ /**
84
+ * Create the folder
85
+ * @param requestObj contains request parameters
86
+ */
87
+ createFolder(requestObj: model.CreateFolderRequest): Promise<axios.AxiosResponse>;
88
+ /**
89
+ * Delete folder
90
+ * @param requestObj contains request parameters
91
+ */
92
+ deleteFolder(requestObj: model.DeleteFolderRequest): Promise<axios.AxiosResponse>;
93
+ /**
94
+ * Get all files and folders within a folder
95
+ * @param requestObj contains request parameters
96
+ */
97
+ getFilesList(requestObj: model.GetFilesListRequest): Promise<model.FilesList>;
98
+ /**
99
+ * Move folder
100
+ * @param requestObj contains request parameters
101
+ */
102
+ moveFolder(requestObj: model.MoveFolderRequest): Promise<axios.AxiosResponse>;
103
+ }
104
+ /**
105
+ * GroupDocs.Parser Cloud API
106
+ */
107
+ export declare class InfoApi {
108
+ /**
109
+ * Creates new instance of InfoApi
110
+ * @param appSid Application identifier (App SID).
111
+ * @param appKey Application private key (App Key).
112
+ */
113
+ static fromKeys(appSid: string, appKey: string): InfoApi;
114
+ /**
115
+ * Creates new instance of InfoApi
116
+ * @param config API configuration.
117
+ */
118
+ static fromConfig(config: Configuration): InfoApi;
119
+ /**
120
+ * Configuration
121
+ */
122
+ private configuration;
123
+ /**
124
+ * @param config Configuration.
125
+ */
126
+ private constructor();
127
+ /**
128
+ * Retrieve a container items (relative paths) from document to work with formats that contain attachments, ZIP archives etc.
129
+ * @param requestObj contains request parameters
130
+ */
131
+ container(requestObj: model.ContainerRequest): Promise<model.ContainerResult>;
132
+ /**
133
+ * Retrieve information about document.
134
+ * @param requestObj contains request parameters
135
+ */
136
+ getInfo(requestObj: model.GetInfoRequest): Promise<model.InfoResult>;
137
+ /**
138
+ * List supported file formats.
139
+ * @param requestObj contains request parameters
140
+ */
141
+ getSupportedFileFormats(): Promise<model.FormatsResult>;
142
+ }
143
+ /**
144
+ * GroupDocs.Parser Cloud API
145
+ */
146
+ export declare class ParseApi {
147
+ /**
148
+ * Creates new instance of ParseApi
149
+ * @param appSid Application identifier (App SID).
150
+ * @param appKey Application private key (App Key).
151
+ */
152
+ static fromKeys(appSid: string, appKey: string): ParseApi;
153
+ /**
154
+ * Creates new instance of ParseApi
155
+ * @param config API configuration.
156
+ */
157
+ static fromConfig(config: Configuration): ParseApi;
158
+ /**
159
+ * Configuration
160
+ */
161
+ private configuration;
162
+ /**
163
+ * @param config Configuration.
164
+ */
165
+ private constructor();
166
+ /**
167
+ * Extract barcodes from document.
168
+ * @param requestObj contains request parameters
169
+ */
170
+ barcodes(requestObj: model.BarcodesRequest): Promise<model.BarcodesResult>;
171
+ /**
172
+ * Extract images from document.
173
+ * @param requestObj contains request parameters
174
+ */
175
+ images(requestObj: model.ImagesRequest): Promise<model.ImagesResult>;
176
+ /**
177
+ * Extract document data by a predefined template.
178
+ * @param requestObj contains request parameters
179
+ */
180
+ parse(requestObj: model.ParseRequest): Promise<model.ParseResult>;
181
+ /**
182
+ * Extract text from document.
183
+ * @param requestObj contains request parameters
184
+ */
185
+ text(requestObj: model.TextRequest): Promise<model.TextResult>;
186
+ }
187
+ /**
188
+ * GroupDocs.Parser Cloud API
189
+ */
190
+ export declare class StorageApi {
191
+ /**
192
+ * Creates new instance of StorageApi
193
+ * @param appSid Application identifier (App SID).
194
+ * @param appKey Application private key (App Key).
195
+ */
196
+ static fromKeys(appSid: string, appKey: string): StorageApi;
197
+ /**
198
+ * Creates new instance of StorageApi
199
+ * @param config API configuration.
200
+ */
201
+ static fromConfig(config: Configuration): StorageApi;
202
+ /**
203
+ * Configuration
204
+ */
205
+ private configuration;
206
+ /**
207
+ * @param config Configuration.
208
+ */
209
+ private constructor();
210
+ /**
211
+ * Get disc usage
212
+ * @param requestObj contains request parameters
213
+ */
214
+ getDiscUsage(requestObj: model.GetDiscUsageRequest): Promise<model.DiscUsage>;
215
+ /**
216
+ * Get file versions
217
+ * @param requestObj contains request parameters
218
+ */
219
+ getFileVersions(requestObj: model.GetFileVersionsRequest): Promise<model.FileVersions>;
220
+ /**
221
+ * Check if file or folder exists
222
+ * @param requestObj contains request parameters
223
+ */
224
+ objectExists(requestObj: model.ObjectExistsRequest): Promise<model.ObjectExist>;
225
+ /**
226
+ * Check if storage exists
227
+ * @param requestObj contains request parameters
228
+ */
229
+ storageExists(requestObj: model.StorageExistsRequest): Promise<model.StorageExist>;
230
+ }
231
+ /**
232
+ * GroupDocs.Parser Cloud API
233
+ */
234
+ export declare class TemplateApi {
235
+ /**
236
+ * Creates new instance of TemplateApi
237
+ * @param appSid Application identifier (App SID).
238
+ * @param appKey Application private key (App Key).
239
+ */
240
+ static fromKeys(appSid: string, appKey: string): TemplateApi;
241
+ /**
242
+ * Creates new instance of TemplateApi
243
+ * @param config API configuration.
244
+ */
245
+ static fromConfig(config: Configuration): TemplateApi;
246
+ /**
247
+ * Configuration
248
+ */
249
+ private configuration;
250
+ /**
251
+ * @param config Configuration.
252
+ */
253
+ private constructor();
254
+ /**
255
+ * Create or update document template.
256
+ * @param requestObj contains request parameters
257
+ */
258
+ createTemplate(requestObj: model.CreateTemplateRequest): Promise<model.TemplateResult>;
259
+ /**
260
+ * Delete document template.
261
+ * @param requestObj contains request parameters
262
+ */
263
+ deleteTemplate(requestObj: model.DeleteTemplateRequest): Promise<axios.AxiosResponse>;
264
+ /**
265
+ * Retrieve document template.
266
+ * @param requestObj contains request parameters
267
+ */
268
+ getTemplate(requestObj: model.GetTemplateRequest): Promise<model.Template>;
269
+ }