@reservation-studio/electron-types 0.0.14 → 0.0.16
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/exports.d.ts +4 -0
- package/dist/api/exports.js +20 -0
- package/dist/enums/envirovment.enum.js +21 -0
- package/dist/interfaces/api.interface.js +2 -0
- package/dist/interfaces/certificate-info.interface.js +2 -0
- package/dist/interfaces/fiscal-device.interface.d.ts +1 -1
- package/dist/interfaces/fiscal-device.interface.js +36 -0
- package/dist/interfaces/http.interface.js +2 -0
- package/package.json +3 -3
- package/dist/api/index.d.ts +0 -9
- package/dist/enums/actions.enum.d.ts +0 -26
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../interfaces/api.interface"), exports);
|
|
18
|
+
__exportStar(require("../interfaces/fiscal-device.interface"), exports);
|
|
19
|
+
__exportStar(require("../interfaces/certificate-info.interface"), exports);
|
|
20
|
+
__exportStar(require("../interfaces/http.interface"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnvironmentEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Enumeration representing different application environments.
|
|
6
|
+
*
|
|
7
|
+
* This enum is used to specify and manage various environments in which
|
|
8
|
+
* the application might run, such as local development, staging, and
|
|
9
|
+
* production environments.
|
|
10
|
+
*
|
|
11
|
+
* Members:
|
|
12
|
+
* - LOCAL: Represents the local development environment.
|
|
13
|
+
* - STAGING: Represents the staging environment.
|
|
14
|
+
* - PRODUCTION: Represents the production environment.
|
|
15
|
+
*/
|
|
16
|
+
var EnvironmentEnum;
|
|
17
|
+
(function (EnvironmentEnum) {
|
|
18
|
+
EnvironmentEnum["LOCAL"] = "local";
|
|
19
|
+
EnvironmentEnum["STAGING"] = "staging";
|
|
20
|
+
EnvironmentEnum["PRODUCTION"] = "production";
|
|
21
|
+
})(EnvironmentEnum || (exports.EnvironmentEnum = EnvironmentEnum = {}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FiscalVATGroup = exports.ReversalReason = exports.FiscalPaymentType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Enum for fiscal payment types
|
|
6
|
+
*/
|
|
7
|
+
var FiscalPaymentType;
|
|
8
|
+
(function (FiscalPaymentType) {
|
|
9
|
+
FiscalPaymentType["CASH"] = "cash";
|
|
10
|
+
FiscalPaymentType["CARD"] = "card";
|
|
11
|
+
FiscalPaymentType["CHECK"] = "check";
|
|
12
|
+
FiscalPaymentType["TRANSFER"] = "transfer";
|
|
13
|
+
})(FiscalPaymentType || (exports.FiscalPaymentType = FiscalPaymentType = {}));
|
|
14
|
+
/**
|
|
15
|
+
* Enum for reversal reasons
|
|
16
|
+
*/
|
|
17
|
+
var ReversalReason;
|
|
18
|
+
(function (ReversalReason) {
|
|
19
|
+
ReversalReason["OPERATOR_ERROR"] = "operator-error";
|
|
20
|
+
ReversalReason["REFUND"] = "refund";
|
|
21
|
+
ReversalReason["TAX_BASE_REDUCTION"] = "tax-base-reduction";
|
|
22
|
+
})(ReversalReason || (exports.ReversalReason = ReversalReason = {}));
|
|
23
|
+
/**
|
|
24
|
+
* Enum for fiscal VAT groups
|
|
25
|
+
*/
|
|
26
|
+
var FiscalVATGroup;
|
|
27
|
+
(function (FiscalVATGroup) {
|
|
28
|
+
FiscalVATGroup["A"] = "\u0410";
|
|
29
|
+
FiscalVATGroup["B"] = "\u0411";
|
|
30
|
+
FiscalVATGroup["C"] = "\u0412";
|
|
31
|
+
FiscalVATGroup["D"] = "\u0413";
|
|
32
|
+
FiscalVATGroup["E"] = "\u0414";
|
|
33
|
+
FiscalVATGroup["F"] = "\u0415";
|
|
34
|
+
FiscalVATGroup["G"] = "\u0416";
|
|
35
|
+
FiscalVATGroup["H"] = "\u0417"; // Special rate 4
|
|
36
|
+
})(FiscalVATGroup || (exports.FiscalVATGroup = FiscalVATGroup = {}));
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reservation-studio/electron-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "TypeScript типове за ReservationStudioElectron",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.json",
|
|
7
7
|
"prebuild": "rimraf ./dist",
|
|
8
8
|
"release": "npm run build && npm publish --access public"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
10
|
+
"main": "./dist/api/exports.ts",
|
|
11
|
+
"types": "./dist/api/exports.d.ts",
|
|
11
12
|
"keywords": [
|
|
12
13
|
"typescript",
|
|
13
14
|
"electron",
|
|
14
15
|
"types"
|
|
15
16
|
],
|
|
16
|
-
"sideEffects": false,
|
|
17
17
|
"author": "Venelin Iliev",
|
|
18
18
|
"license": "Proprietary - Reservation.Studio",
|
|
19
19
|
"devDependencies": {
|
package/dist/api/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ApiInterface } from '../interfaces/api.interface';
|
|
2
|
-
export declare const ReservationStudioElectron: ApiInterface;
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
ReservationStudioElectron: ApiInterface;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export * from '../interfaces/api.interface';
|
|
9
|
-
export * from '../interfaces/fiscal-device.interface';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare enum IpcActions {
|
|
2
|
-
FETCH_CERTIFICATES = "certificates:list",
|
|
3
|
-
CHECK_CERTIFICATE_PIN = "certificates:is-valid-pin",
|
|
4
|
-
XML_SIGN = "xml:sign",
|
|
5
|
-
GET_VERSION = "get-version",
|
|
6
|
-
RELOAD_WINDOW = "reload-window",
|
|
7
|
-
ENVIRONMENT = "environment:get",
|
|
8
|
-
HTTP_GET = "http:get",
|
|
9
|
-
HTTP_POST = "http:post",
|
|
10
|
-
FISCAL_LIST = "fiscal:list",
|
|
11
|
-
FISCAL_SET_ACTIVE = "fiscal:set-active",
|
|
12
|
-
FISCAL_GET_ACTIVE = "fiscal:get-active",
|
|
13
|
-
FISCAL_GET_DEVICE_INFO = "fiscal:get-device-info",
|
|
14
|
-
FISCAL_PRINT_RECEIPT = "fiscal:print-receipt",
|
|
15
|
-
FISCAL_PRINT_REVERSAL_RECEIPT = "fiscal:print-reversal-receipt",
|
|
16
|
-
FISCAL_PRINT_TEXT = "fiscal:print-text",
|
|
17
|
-
FISCAL_GET_LAST_RECORD = "fiscal:get-last-record",
|
|
18
|
-
FISCAL_GET_STATUS = "fiscal:get-status",
|
|
19
|
-
FISCAL_PRINT_X_REPORT = "fiscal:print-x-report",
|
|
20
|
-
FISCAL_PRINT_Z_REPORT = "fiscal:print-z-report",
|
|
21
|
-
FISCAL_DEPOSIT_MONEY = "fiscal:deposit-money",
|
|
22
|
-
FISCAL_WITHDRAW_MONEY = "fiscal:withdraw-money",
|
|
23
|
-
FISCAL_GET_CASH_AMOUNT = "fiscal:get-cash-amount",
|
|
24
|
-
FISCAL_SET_DATE_TIME = "fiscal:set-date-time",
|
|
25
|
-
FISCAL_PRINT_DUPLICATE = "fiscal:print-duplicate"
|
|
26
|
-
}
|