@reservation-studio/electron-types 0.0.28 → 0.0.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 CHANGED
@@ -208,7 +208,7 @@ interface FiscalReceipt {
208
208
  password: string;
209
209
  code?: string;
210
210
  };
211
- uniqueSaleNumber?: string;
211
+ uniqueSaleNumber: string;
212
212
  items: FiscalReceiptItem[];
213
213
  payments: FiscalPayment[];
214
214
  client?: FiscalClient;
@@ -198,6 +198,14 @@ export interface ApiInterface {
198
198
  * @throws {Error} If the device with the specified deviceId is not found.
199
199
  */
200
200
  setDateTime(dateTime: Date, deviceId: string): Promise<boolean>;
201
+ /**
202
+ * Gets the date and time from a fiscal device.
203
+ *
204
+ * @param {string} deviceId - Device identifier from list/scan.
205
+ * @return {Promise<Date>} A promise that resolves to the device date/time.
206
+ * @throws {Error} If the device with the specified deviceId is not found.
207
+ */
208
+ getDateTime(deviceId: string): Promise<Date>;
201
209
  /**
202
210
  * Prints a duplicate of the last receipt using a fiscal device.
203
211
  *
@@ -15,6 +15,7 @@ export interface DeviceCapabilities {
15
15
  withdrawMoney: boolean;
16
16
  getCashAmount: boolean;
17
17
  setDateTime: boolean;
18
+ getDateTime: boolean;
18
19
  getLastFiscalRecord: boolean;
19
20
  getStatus: boolean;
20
21
  };
@@ -54,7 +55,7 @@ export interface FiscalReceipt {
54
55
  /**
55
56
  * The unique sale number
56
57
  */
57
- uniqueSaleNumber?: string;
58
+ uniqueSaleNumber: string;
58
59
  /**
59
60
  * The items in the receipt
60
61
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reservation-studio/electron-types",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "TypeScript типове за ReservationStudioElectron",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.json",