@reservation-studio/electron-types 0.0.4 → 0.0.6
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/dist/api/index.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
certificates: {
|
|
4
|
-
list(): Promise<CertificateInfo[]>;
|
|
5
|
-
};
|
|
6
|
-
xml: {
|
|
7
|
-
sign(xml: string, certificateId: string, pin?: string): Promise<string>;
|
|
8
|
-
};
|
|
9
|
-
version(): Promise<string>;
|
|
10
|
-
}
|
|
11
|
-
declare const ReservationStudioElectron: ApiInterface;
|
|
1
|
+
import { ApiInterface } from '../interfaces/api.interface';
|
|
2
|
+
export declare const ReservationStudioElectron: ApiInterface;
|
|
12
3
|
declare global {
|
|
13
|
-
|
|
4
|
+
interface Window {
|
|
5
|
+
ReservationStudioElectron: ApiInterface;
|
|
6
|
+
}
|
|
14
7
|
}
|
|
15
|
-
export { ReservationStudioElectron };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CertificateInfo } from './certificate-info.interface';
|
|
2
|
+
export interface ApiInterface {
|
|
3
|
+
/**
|
|
4
|
+
* Represents the certificates functionality for managing and retrieving certificate information.
|
|
5
|
+
*
|
|
6
|
+
* @property {Function} list Retrieves a list of certificates.
|
|
7
|
+
* @returns {Promise<CertificateInfo[]>} A promise that resolves with an array of `CertificateInfo` objects containing details about each certificate.
|
|
8
|
+
*/
|
|
9
|
+
certificates: {
|
|
10
|
+
list(): Promise<CertificateInfo[]>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Provides functionality to handle XML signing operations.
|
|
14
|
+
*
|
|
15
|
+
* @property {Function} sign - Signs an XML string with a specified digital certificate.
|
|
16
|
+
* @param {string} xml - The XML content to be signed.
|
|
17
|
+
* @param {string} certificateId - The identifier of the certificate to use for signing.
|
|
18
|
+
* @param {string} [pin] - Optional PIN code associated with the digital certificate.
|
|
19
|
+
* @returns {Promise<string>} A promise that resolves with the signed XML content as a string.
|
|
20
|
+
*/
|
|
21
|
+
xml: {
|
|
22
|
+
sign(xml: string, certificateId: string, pin?: string): Promise<string>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves the current version of the application.
|
|
26
|
+
*
|
|
27
|
+
* @return {Promise<string>} A promise that resolves to a string representing the version.
|
|
28
|
+
*/
|
|
29
|
+
version(): Promise<string>;
|
|
30
|
+
}
|