@cemiar/cemiarlink-sdk 1.0.63 → 1.0.64

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.
@@ -22,6 +22,9 @@ export declare class AdminService {
22
22
  extractVehicles(payload: object): Promise<any>;
23
23
  azureOCRExtraction(payload: object): Promise<AzureOCRResponse[]>;
24
24
  getPdfText(fileContentBase64: string, engine?: string, page?: string): Promise<string[]>;
25
+ authenticatePdf(fileContentBase64: string, password: string): Promise<{
26
+ base64: string;
27
+ }>;
25
28
  sendTextMessage(message: string, phoneNumber: string, name: string, enterprise: string | undefined): Promise<void>;
26
29
  getModuleConfig(): Promise<any>;
27
30
  getReportData<T>(date: string, fileName: string, sheetNumber: number): Promise<T[]>;
@@ -77,6 +77,13 @@ class AdminService {
77
77
  });
78
78
  return response.data;
79
79
  }
80
+ async authenticatePdf(fileContentBase64, password) {
81
+ const response = await this.axiosInstance.post(`pdfReader/authenticatePdf`, {
82
+ base64: fileContentBase64,
83
+ password: password,
84
+ });
85
+ return response.data;
86
+ }
80
87
  async sendTextMessage(message, phoneNumber, name, enterprise) {
81
88
  var _a;
82
89
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cemiar/cemiarlink-sdk",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "CemiarLink SDK to access CemiarLink API services",
5
5
  "engines": {
6
6
  "npm": ">=9.5.1",