node-atol-wrapper 0.0.26 → 0.0.27

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.
@@ -7,24 +7,48 @@ jobs:
7
7
  runs-on: ${{ matrix.os }}
8
8
 
9
9
  strategy:
10
+ fail-fast: false
10
11
  matrix:
11
- os: [windows-2019, ubuntu-latest, macos-latest]
12
- node-version: [12, 14, 16, 18]
12
+ os: [windows-2022, ubuntu-latest, macos-13]
13
+ node-version: [16, 18, 20, 22]
14
+ exclude:
15
+ # Exclude Node 22 on macOS 13 due to compatibility issues
16
+ - os: macos-13
17
+ node-version: 22
13
18
 
14
19
  steps:
15
20
  - name: Checkout
16
- uses: actions/checkout@v3
17
- - if: matrix.os == 'windows-2019'
18
- name: Choco install
19
- uses: crazy-max/ghaction-chocolatey@v2
21
+ uses: actions/checkout@v4
22
+ - if: matrix.os == 'windows-2022'
23
+ name: Setup MSBuild
24
+ uses: microsoft/setup-msbuild@v2
25
+ - if: matrix.os == 'windows-2022'
26
+ name: Setup Windows SDK
27
+ uses: GuillaumeFalourd/setup-windows10-sdk-action@v1.11
20
28
  with:
21
- args: install visualcpp-build-tools -y
29
+ sdk-version: 20348
22
30
  - name: Use Node.js ${{ matrix.node-version }}
23
- uses: actions/setup-node@v3
31
+ uses: actions/setup-node@v4
24
32
  with:
25
33
  node-version: ${{ matrix.node-version }}
34
+ - name: Setup Python for macOS
35
+ if: matrix.os == 'macos-13'
36
+ uses: actions/setup-python@v4
37
+ with:
38
+ python-version: '3.11'
39
+ - name: Install setuptools for macOS
40
+ if: matrix.os == 'macos-13'
41
+ run: |
42
+ python -m pip install --upgrade pip setuptools
43
+ - name: Configure npm for native modules
44
+ if: matrix.os == 'macos-13'
45
+ run: |
46
+ echo "CC=clang" >> $GITHUB_ENV
47
+ echo "CXX=clang++" >> $GITHUB_ENV
48
+ echo "PYTHON=$(which python)" >> $GITHUB_ENV
26
49
  - name: npm install, build
27
50
  run: |
28
51
  npm install --build-from-source
29
52
  env:
30
53
  CI: true
54
+ npm_config_build_from_source: true
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Название
4
4
  =========
5
- Node.js обертка для драйвера торгового оборудования (ДТО) версии `10.10.6.0` от компании [АТОЛ](https://www.atol.ru/)
5
+ Node.js обертка для драйвера торгового оборудования (ДТО) версии `10.10.7.0` от компании [АТОЛ](https://www.atol.ru/)
6
6
 
7
7
  [ Источник ](https://forum.atol.ru/lofiversion/index.php/t34345.html)
8
8
 
package/binding.gyp CHANGED
@@ -62,8 +62,12 @@
62
62
  ]
63
63
  }],
64
64
  ["OS=='mac'", {
65
- 'files': [
66
- "<(module_root_dir)/src/macos-x86_64/fptr10.framework"
65
+ 'conditions': [
66
+ ["target_arch=='x64'", {
67
+ 'files': [
68
+ "<(module_root_dir)/src/macos-x86_64/fptr10.framework"
69
+ ]
70
+ }]
67
71
  ]
68
72
  }],
69
73
  ],
@@ -100,10 +104,22 @@
100
104
  ["OS=='mac'", {
101
105
  "link_settings": {
102
106
  "libraries": [
103
- "<(module_root_dir)/build/Release/fptr10.framework/Versions/A/fptr10",
104
- "-Wl,-rpath,@loader_path",
107
+ "<(module_root_dir)/build/Release/fptr10.framework/Versions/A/fptr10"
105
108
  ],
109
+ "ldflags": [
110
+ "-Wl,-rpath,@loader_path"
111
+ ]
106
112
  },
113
+ "xcode_settings": {
114
+ "OTHER_CPLUSPLUSFLAGS": [
115
+ "-std=c++17",
116
+ "-stdlib=libc++"
117
+ ],
118
+ "OTHER_LDFLAGS": [
119
+ "-stdlib=libc++"
120
+ ],
121
+ "MACOSX_DEPLOYMENT_TARGET": "10.15"
122
+ }
107
123
  }]
108
124
  ],
109
125
  "dependencies" : [ "copy_fptr_libs" ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-atol-wrapper",
3
3
  "description": "Node ATOL DTO 10 wrapper",
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "main": "bindings.js",
6
6
  "types": "bindings.d.ts",
7
7
  "scripts": {
@@ -10,8 +10,8 @@
10
10
  "start": "node ./index.js"
11
11
  },
12
12
  "dependencies": {
13
- "nan": "^2.14.2",
14
- "@mapbox/node-pre-gyp": "^1.0.9"
13
+ "nan": "^2.20.0",
14
+ "@mapbox/node-pre-gyp": "^1.0.11"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "binary": {
@@ -20,7 +20,7 @@
20
20
  "host": "https://your_module.s3-us-west-1.amazonaws.com"
21
21
  },
22
22
  "engines": {
23
- "node": ">= 4.0.0"
23
+ "node": ">= 16.0.0"
24
24
  },
25
25
  "homepage": "https://github.com/farafonov-alexey/node-atol-wrapper",
26
26
  "keywords": [
package/src/libfptr10.h CHANGED
@@ -322,6 +322,7 @@ enum libfptr_error
322
322
  LIBFPTR_ERROR_MINIPOS_NO_FILE_ON_USB_STORE,
323
323
  LIBFPTR_ERROR_MINIPOS_NO_AGENT_FISCAL_PROPERTY,
324
324
  LIBFPTR_ERROR_NO_CONNECTION_WITH_PRINT_SERVICE,
325
+ LIBFPTR_ERROR_UNIVERSAL_COUNTERS_ARE_DISABLED,
325
326
 
326
327
  LIBFPTR_ERROR_BASE_MARKING = 400,
327
328
  LIBFPTR_ERROR_MARKING_CODE_VALIDATION_IN_PROGRESS,
@@ -770,6 +771,14 @@ enum libfptr_param
770
771
  LIBFPTR_PARAM_MARKING_NOT_FORM_REQUEST,
771
772
  LIBFPTR_PARAM_PRINT_ENTITY_TYPE,
772
773
  LIBFPTR_PARAM_RECEIPT_TAPE_PATH_LENGTH,
774
+ LIBFPTR_PARAM_LICENSE_INDEX,
775
+ LIBFPTR_PARAM_IS_LICENSE_VALID,
776
+ LIBFPTR_PARAM_RECEIPT_PERCENTAGE_SIZE,
777
+ LIBFPTR_PARAM_ADDITIONAL_ATTRIBUTE,
778
+ LIBFPTR_PARAM_ADDITIONAL_DATA,
779
+ LIBFPTR_PARAM_ELECTRONICALLY_PAYMENT_METHOD,
780
+ LIBFPTR_PARAM_ELECTRONICALLY_ID,
781
+ LIBFPTR_PARAM_ELECTRONICALLY_ADD_INFO,
773
782
 
774
783
  // certification
775
784
  LIBFPTR_PARAM_LAST_SUCCESS_FNM_UPDATE_KEYS_DATE_TIME,
@@ -807,11 +816,12 @@ enum libfptr_model
807
816
  LIBFPTR_MODEL_ATOL_PT_5F = 89,
808
817
  LIBFPTR_MODEL_KAZNACHEY_FA = 76,
809
818
  LIBFPTR_MODEL_ATOL_1F = 93,
819
+ LIBFPTR_MODEL_ATOL_2F = 96,
810
820
  LIBFPTR_MODEL_ATOL_22v2F = 95,
811
821
  LIBFPTR_MODEL_ATOL_42FA = 70,
812
822
  LIBFPTR_MODEL_ALLIANCE_20F = 50,
813
823
  LIBFPTR_MODEL_ATOL_STB_6F = 94,
814
- LIBFPTR_MODEL_ATOL_35F = 97,
824
+ LIBFPTR_MODEL_ATOL_35F = 97,
815
825
  // certification
816
826
  LIBFPTR_MODEL_ATOL_27_FP7_F = 99,
817
827
  };
@@ -886,6 +896,10 @@ enum libfptr_model
886
896
 
887
897
  #define LIBFPTR_SETTING_LICENSE L"Licenses"
888
898
 
899
+ #define LIBFPTR_SETTING_TIME_ZONE L"TimeZone"
900
+
901
+ #define LIBFPTR_SETTING_REMOTE_TIMEOUT L"RemoteTimeout"
902
+
889
903
  enum libfptr_port
890
904
  {
891
905
  LIBFPTR_PORT_COM = 0,
@@ -1077,7 +1091,8 @@ enum libfptr_payment_type
1077
1091
  LIBFPTR_PT_7,
1078
1092
  LIBFPTR_PT_8,
1079
1093
  LIBFPTR_PT_9,
1080
- LIBFPTR_PT_10
1094
+ LIBFPTR_PT_10,
1095
+ LIBFPTR_PT_ADD_INFO
1081
1096
  };
1082
1097
 
1083
1098
  enum libfptr_tax_type
@@ -1091,11 +1106,11 @@ enum libfptr_tax_type
1091
1106
  LIBFPTR_TAX_NO,
1092
1107
  LIBFPTR_TAX_VAT20,
1093
1108
  LIBFPTR_TAX_VAT120,
1094
- LIBFPTR_TAX_INVALID,
1095
1109
  LIBFPTR_TAX_VAT5,
1096
- LIBFPTR_TAX_VAT105,
1097
1110
  LIBFPTR_TAX_VAT7,
1098
- LIBFPTR_TAX_VAT107
1111
+ LIBFPTR_TAX_VAT105,
1112
+ LIBFPTR_TAX_VAT107,
1113
+ LIBFPTR_TAX_INVALID,
1099
1114
  };
1100
1115
 
1101
1116
  enum libfptr_external_device_type
@@ -1195,6 +1210,7 @@ enum libfptr_fn_data_type
1195
1210
  LIBFPTR_FNDT_MARKING_MODE_STATUS,
1196
1211
  LIBFPTR_FNDT_CHECK_MARK_TIME,
1197
1212
  LIBFPTR_FNDT_RECEIPT_SIZE,
1213
+ LIBFPTR_FNDT_NOTIFICATION_STATUS,
1198
1214
 
1199
1215
  // certification
1200
1216
  LIBFPTR_FNDT_FNM_KEYS_UPDATE_DATE_TIME
@@ -1419,6 +1435,8 @@ enum libfptr_marking_estimated_status
1419
1435
  LIBFPTR_MES_DRY_FOR_SALE,
1420
1436
  LIBFPTR_MES_PIECE_RETURN,
1421
1437
  LIBFPTR_MES_DRY_RETURN,
1438
+ LIBFPTR_MES_PIECE_FOR_SALE,
1439
+ LIBFPTR_MES_DRY_SOLD,
1422
1440
  LIBFPTR_MES_UNCHANGED = 255
1423
1441
  };
1424
1442
 
@@ -1614,6 +1632,23 @@ enum libfptr_print_entity_type
1614
1632
  LIBFPTR_PET_FISCAL_DOCUMENT,
1615
1633
  };
1616
1634
 
1635
+ enum libfptr_time_zone
1636
+ {
1637
+ LIBFPTR_TIME_ZONE_NO = -1,
1638
+ LIBFPTR_TIME_ZONE_DEVICE = 0,
1639
+ LIBFPTR_TIME_ZONE_1 = 1,
1640
+ LIBFPTR_TIME_ZONE_2,
1641
+ LIBFPTR_TIME_ZONE_3,
1642
+ LIBFPTR_TIME_ZONE_4,
1643
+ LIBFPTR_TIME_ZONE_5,
1644
+ LIBFPTR_TIME_ZONE_6,
1645
+ LIBFPTR_TIME_ZONE_7,
1646
+ LIBFPTR_TIME_ZONE_8,
1647
+ LIBFPTR_TIME_ZONE_9,
1648
+ LIBFPTR_TIME_ZONE_10,
1649
+ LIBFPTR_TIME_ZONE_11,
1650
+ };
1651
+
1617
1652
  #define LIBFPTR_UC_OTHERS 4294967295
1618
1653
 
1619
1654
 
Binary file
Binary file
Binary file
Binary file
@@ -774,6 +774,11 @@ enum libfptr_param
774
774
  LIBFPTR_PARAM_LICENSE_INDEX,
775
775
  LIBFPTR_PARAM_IS_LICENSE_VALID,
776
776
  LIBFPTR_PARAM_RECEIPT_PERCENTAGE_SIZE,
777
+ LIBFPTR_PARAM_ADDITIONAL_ATTRIBUTE,
778
+ LIBFPTR_PARAM_ADDITIONAL_DATA,
779
+ LIBFPTR_PARAM_ELECTRONICALLY_PAYMENT_METHOD,
780
+ LIBFPTR_PARAM_ELECTRONICALLY_ID,
781
+ LIBFPTR_PARAM_ELECTRONICALLY_ADD_INFO,
777
782
 
778
783
  // certification
779
784
  LIBFPTR_PARAM_LAST_SUCCESS_FNM_UPDATE_KEYS_DATE_TIME,
@@ -811,11 +816,12 @@ enum libfptr_model
811
816
  LIBFPTR_MODEL_ATOL_PT_5F = 89,
812
817
  LIBFPTR_MODEL_KAZNACHEY_FA = 76,
813
818
  LIBFPTR_MODEL_ATOL_1F = 93,
819
+ LIBFPTR_MODEL_ATOL_2F = 96,
814
820
  LIBFPTR_MODEL_ATOL_22v2F = 95,
815
821
  LIBFPTR_MODEL_ATOL_42FA = 70,
816
822
  LIBFPTR_MODEL_ALLIANCE_20F = 50,
817
823
  LIBFPTR_MODEL_ATOL_STB_6F = 94,
818
- LIBFPTR_MODEL_ATOL_35F = 97,
824
+ LIBFPTR_MODEL_ATOL_35F = 97,
819
825
  // certification
820
826
  LIBFPTR_MODEL_ATOL_27_FP7_F = 99,
821
827
  };
@@ -890,6 +896,10 @@ enum libfptr_model
890
896
 
891
897
  #define LIBFPTR_SETTING_LICENSE L"Licenses"
892
898
 
899
+ #define LIBFPTR_SETTING_TIME_ZONE L"TimeZone"
900
+
901
+ #define LIBFPTR_SETTING_REMOTE_TIMEOUT L"RemoteTimeout"
902
+
893
903
  enum libfptr_port
894
904
  {
895
905
  LIBFPTR_PORT_COM = 0,
@@ -1081,7 +1091,8 @@ enum libfptr_payment_type
1081
1091
  LIBFPTR_PT_7,
1082
1092
  LIBFPTR_PT_8,
1083
1093
  LIBFPTR_PT_9,
1084
- LIBFPTR_PT_10
1094
+ LIBFPTR_PT_10,
1095
+ LIBFPTR_PT_ADD_INFO
1085
1096
  };
1086
1097
 
1087
1098
  enum libfptr_tax_type
@@ -1424,6 +1435,8 @@ enum libfptr_marking_estimated_status
1424
1435
  LIBFPTR_MES_DRY_FOR_SALE,
1425
1436
  LIBFPTR_MES_PIECE_RETURN,
1426
1437
  LIBFPTR_MES_DRY_RETURN,
1438
+ LIBFPTR_MES_PIECE_FOR_SALE,
1439
+ LIBFPTR_MES_DRY_SOLD,
1427
1440
  LIBFPTR_MES_UNCHANGED = 255
1428
1441
  };
1429
1442
 
@@ -1619,6 +1632,23 @@ enum libfptr_print_entity_type
1619
1632
  LIBFPTR_PET_FISCAL_DOCUMENT,
1620
1633
  };
1621
1634
 
1635
+ enum libfptr_time_zone
1636
+ {
1637
+ LIBFPTR_TIME_ZONE_NO = -1,
1638
+ LIBFPTR_TIME_ZONE_DEVICE = 0,
1639
+ LIBFPTR_TIME_ZONE_1 = 1,
1640
+ LIBFPTR_TIME_ZONE_2,
1641
+ LIBFPTR_TIME_ZONE_3,
1642
+ LIBFPTR_TIME_ZONE_4,
1643
+ LIBFPTR_TIME_ZONE_5,
1644
+ LIBFPTR_TIME_ZONE_6,
1645
+ LIBFPTR_TIME_ZONE_7,
1646
+ LIBFPTR_TIME_ZONE_8,
1647
+ LIBFPTR_TIME_ZONE_9,
1648
+ LIBFPTR_TIME_ZONE_10,
1649
+ LIBFPTR_TIME_ZONE_11,
1650
+ };
1651
+
1622
1652
  #define LIBFPTR_UC_OTHERS 4294967295
1623
1653
 
1624
1654
 
@@ -35,6 +35,8 @@
35
35
  #define LIBFPTR_SETTING_AUTO_TIME_SYNC @"AutoTimeSync"
36
36
  #define LIBFPTR_SETTING_AUTO_TIME_SYNC_TIME @"AutoTimeSyncTime"
37
37
  #define LIBFPTR_SETTING_MERGE_RECEIPT_ITEMS @"MergeReceiptItems"
38
+ #define LIBFPTR_SETTING_TIME_ZONE @"TimeZone"
39
+ #define LIBFPTR_SETTING_REMOTE_TIMEOUT @"RemoteTimeout"
38
40
  #define LIBFPTR_MODEL_UNKNOWN 0
39
41
  #define LIBFPTR_MODEL_ATOL_25F 57
40
42
  #define LIBFPTR_MODEL_ATOL_30F 61
@@ -67,6 +69,7 @@
67
69
  #define LIBFPTR_MODEL_ATOL_55V2F 66
68
70
  #define LIBFPTR_MODEL_ATOL_STB_6F 92
69
71
  #define LIBFPTR_MODEL_ATOL_35F 97
72
+ #define LIBFPTR_MODEL_ATOL_2F 96
70
73
  #define LIBFPTR_PORT_BR_1200 1200
71
74
  #define LIBFPTR_PORT_BR_2400 2400
72
75
  #define LIBFPTR_PORT_BR_4800 4800
@@ -581,9 +584,14 @@ enum libfptr_param
581
584
  LIBFPTR_PARAM_LICENSE_INDEX = 65933,
582
585
  LIBFPTR_PARAM_IS_LICENSE_VALID = 65934,
583
586
  LIBFPTR_PARAM_RECEIPT_PERCENTAGE_SIZE = 65935,
584
- LIBFPTR_PARAM_LAST_SUCCESS_FNM_UPDATE_KEYS_DATE_TIME = 65936,
585
- LIBFPTR_PARAM_LAST_ATTEMPTION_FNM_UPDATE_KEYS_DATE_TIME = 65937,
586
- LIBFPTR_PARAM_COUNT_ATTEMPTION_FNM_UPDATE_KEYS = 65938,
587
+ LIBFPTR_PARAM_ADDITIONAL_ATTRIBUTE = 65936,
588
+ LIBFPTR_PARAM_ADDITIONAL_DATA = 65937,
589
+ LIBFPTR_PARAM_ELECTRONICALLY_PAYMENT_METHOD = 65938,
590
+ LIBFPTR_PARAM_ELECTRONICALLY_ID = 65939,
591
+ LIBFPTR_PARAM_ELECTRONICALLY_ADD_INFO = 65940,
592
+ LIBFPTR_PARAM_LAST_SUCCESS_FNM_UPDATE_KEYS_DATE_TIME = 65941,
593
+ LIBFPTR_PARAM_LAST_ATTEMPTION_FNM_UPDATE_KEYS_DATE_TIME = 65942,
594
+ LIBFPTR_PARAM_COUNT_ATTEMPTION_FNM_UPDATE_KEYS = 65943,
587
595
  };
588
596
 
589
597
  enum libfptr_error
@@ -1065,6 +1073,7 @@ enum libfptr_payment_type
1065
1073
  LIBFPTR_PT_8 = 7,
1066
1074
  LIBFPTR_PT_9 = 8,
1067
1075
  LIBFPTR_PT_10 = 9,
1076
+ LIBFPTR_PT_ADD_INFO = 10,
1068
1077
  };
1069
1078
 
1070
1079
  enum libfptr_tax_type
@@ -1354,6 +1363,8 @@ enum libfptr_marking_estimated_status
1354
1363
  LIBFPTR_MES_DRY_FOR_SALE = 2,
1355
1364
  LIBFPTR_MES_PIECE_RETURN = 3,
1356
1365
  LIBFPTR_MES_DRY_RETURN = 4,
1366
+ LIBFPTR_MES_PIECE_FOR_SALE = 5,
1367
+ LIBFPTR_MES_DRY_SOLD = 6,
1357
1368
  };
1358
1369
 
1359
1370
  enum libfptr_marking_mode_checking_status
@@ -1477,6 +1488,22 @@ enum libfptr_license
1477
1488
  LIBFPTR_LIC_EXT_FISCAL = 18,
1478
1489
  };
1479
1490
 
1491
+ enum libfptr_time_zone
1492
+ {
1493
+ LIBFPTR_TIME_ZONE_DEVICE = 0,
1494
+ LIBFPTR_TIME_ZONE_1 = 1,
1495
+ LIBFPTR_TIME_ZONE_2 = 2,
1496
+ LIBFPTR_TIME_ZONE_3 = 3,
1497
+ LIBFPTR_TIME_ZONE_4 = 4,
1498
+ LIBFPTR_TIME_ZONE_5 = 5,
1499
+ LIBFPTR_TIME_ZONE_6 = 6,
1500
+ LIBFPTR_TIME_ZONE_7 = 7,
1501
+ LIBFPTR_TIME_ZONE_8 = 8,
1502
+ LIBFPTR_TIME_ZONE_9 = 9,
1503
+ LIBFPTR_TIME_ZONE_10 = 10,
1504
+ LIBFPTR_TIME_ZONE_11 = 11,
1505
+ };
1506
+
1480
1507
  enum libfptr_rpc_server_error
1481
1508
  {
1482
1509
  LIBFPTR_ERROR_BASE_RPC = 600,
@@ -24,10 +24,10 @@
24
24
  <string>FMWK</string>
25
25
 
26
26
  <key>CFBundleVersion</key>
27
- <string>10.10.6.0</string>
27
+ <string>10.10.7.0</string>
28
28
 
29
29
  <key>CFBundleShortVersionString</key>
30
- <string>10.10.6</string>
30
+ <string>10.10.7</string>
31
31
 
32
32
  <key>CSResourcesFileMapped</key>
33
33
  <true/>
Binary file
Binary file
Binary file
Binary file