node-atol-wrapper 0.0.24 → 0.0.26
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 +1 -1
- package/binding.gyp +7 -0
- package/package.json +1 -1
- package/src/libfptr10.h +146 -4
- package/src/linux-arm64/libfptr10.so +0 -0
- package/src/linux-arm64/libudev.so.1 +0 -0
- package/src/linux-arm64/libusb-1.0.so.0 +0 -0
- package/src/linux-armhf/libfptr10.so +0 -0
- package/src/linux-x64/libfptr10.so +0 -0
- package/src/linux-x86/libfptr10.so +0 -0
- package/src/macos-x86_64/fptr10.framework/Versions/A/Headers/libfptr10.h +2023 -0
- package/src/macos-x86_64/fptr10.framework/Versions/A/Headers/libfptr10_objc.h +1657 -0
- package/src/macos-x86_64/fptr10.framework/Versions/A/Resources/Info.plist +2 -2
- package/src/macos-x86_64/fptr10.framework/Versions/A/fptr10 +0 -0
- package/src/win-x64/fptr10.dll +0 -0
- package/src/win-x64/fptr10.lib +0 -0
- package/src/win-x86/fptr10.dll +0 -0
- package/src/win-x86/fptr10.lib +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Название
|
|
4
4
|
=========
|
|
5
|
-
Node.js обертка для драйвера торгового оборудования (ДТО) версии
|
|
5
|
+
Node.js обертка для драйвера торгового оборудования (ДТО) версии `10.10.6.0` от компании [АТОЛ](https://www.atol.ru/)
|
|
6
6
|
|
|
7
7
|
[ Источник ](https://forum.atol.ru/lofiversion/index.php/t34345.html)
|
|
8
8
|
|
package/binding.gyp
CHANGED
|
@@ -51,6 +51,13 @@
|
|
|
51
51
|
'<(module_root_dir)/src/linux-armhf/libudev.so.1',
|
|
52
52
|
'<(module_root_dir)/src/linux-armhf/libusb-1.0.so.0',
|
|
53
53
|
],
|
|
54
|
+
}],
|
|
55
|
+
["arch=='arm64'", {
|
|
56
|
+
'files': [
|
|
57
|
+
'<(module_root_dir)/src/linux-arm64/libfptr10.so',
|
|
58
|
+
'<(module_root_dir)/src/linux-arm64/libudev.so.1',
|
|
59
|
+
'<(module_root_dir)/src/linux-arm64/libusb-1.0.so.0',
|
|
60
|
+
],
|
|
54
61
|
}]
|
|
55
62
|
]
|
|
56
63
|
}],
|
package/package.json
CHANGED
package/src/libfptr10.h
CHANGED
|
@@ -314,6 +314,14 @@ enum libfptr_error
|
|
|
314
314
|
LIBFPTR_ERROR_OVERLAY_DATA_OVERFLOW,
|
|
315
315
|
LIBFPTR_ERROR_INVALID_MODULE_ADDRESS,
|
|
316
316
|
LIBFPTR_ERROR_ECR_MODEL_NOT_SUPPORTED,
|
|
317
|
+
LIBFPTR_ERROR_PAID_NOT_REQUIRED,
|
|
318
|
+
LIBFPTR_ERROR_NON_PRINTABLE_CHAR,
|
|
319
|
+
LIBFPTR_ERROR_INVALID_USER_TAG,
|
|
320
|
+
LIBFPTR_ERROR_COMMODITIES_TABLE_ITERATION_STOPPED,
|
|
321
|
+
LIBFPTR_ERROR_COMMODITIES_TABLE_INVALID_CSV_FORMAT,
|
|
322
|
+
LIBFPTR_ERROR_MINIPOS_NO_FILE_ON_USB_STORE,
|
|
323
|
+
LIBFPTR_ERROR_MINIPOS_NO_AGENT_FISCAL_PROPERTY,
|
|
324
|
+
LIBFPTR_ERROR_NO_CONNECTION_WITH_PRINT_SERVICE,
|
|
317
325
|
|
|
318
326
|
LIBFPTR_ERROR_BASE_MARKING = 400,
|
|
319
327
|
LIBFPTR_ERROR_MARKING_CODE_VALIDATION_IN_PROGRESS,
|
|
@@ -718,7 +726,7 @@ enum libfptr_param
|
|
|
718
726
|
LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT,
|
|
719
727
|
LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR_DESCRIPTION,
|
|
720
728
|
LIBFPTR_PARAM_FN_CONTAINS_KEYS_UPDATER_SERVER_URI,
|
|
721
|
-
|
|
729
|
+
LIBFPTR_PARAM_CLEAR_MARKING_TABLE,
|
|
722
730
|
LIBFPTR_PARAM_MODULE_ADDRESS,
|
|
723
731
|
LIBFPTR_PARAM_SEGMENT_ADDRESS,
|
|
724
732
|
LIBFPTR_PARAM_LAST_SUCCESSFUL_OKP,
|
|
@@ -732,6 +740,41 @@ enum libfptr_param
|
|
|
732
740
|
LIBFPTR_PARAM_PRINT_UPDATE_FNM_KEYS_REPORT,
|
|
733
741
|
LIBFPTR_PARAM_FN_KEYS_UPDATER_SERVER_URI,
|
|
734
742
|
LIBFPTR_PARAM_DOCUMENT_ELECTRONICALLY,
|
|
743
|
+
LIBFPTR_PARAM_FORMAT_TEXT,
|
|
744
|
+
LIBFPTR_PARAM_RECEIPT_SIZE,
|
|
745
|
+
LIBFPTR_PARAM_MARK_SIZE,
|
|
746
|
+
LIBFPTR_PARAM_MCU_TEMPERATURE,
|
|
747
|
+
LIBFPTR_PARAM_DATA_FOR_SEND_IS_EMPTY,
|
|
748
|
+
LIBFPTR_PARAM_AVAILABLE_CLOSING,
|
|
749
|
+
LIBFPTR_PARAM_AVAILABLE_CANCELLATION,
|
|
750
|
+
LIBFPTR_PARAM_AVAILABLE_POSITION_ADDING,
|
|
751
|
+
LIBFPTR_PARAM_AVAILABLE_PAYMENT,
|
|
752
|
+
LIBFPTR_PARAM_AVAILABLE_TOTAL,
|
|
753
|
+
LIBFPTR_PARAM_AVAILABLE_ATTRIBUTES_ADDING,
|
|
754
|
+
LIBFPTR_PARAM_OPERATOR_REGISTERED,
|
|
755
|
+
LIBFPTR_PARAM_DEVICE_PLATFORM_VERSION,
|
|
756
|
+
LIBFPTR_PARAM_GUID,
|
|
757
|
+
LIBFPTR_PARAM_PATTERN_REGISTERS,
|
|
758
|
+
LIBFPTR_PARAM_PATTERN_TAGS,
|
|
759
|
+
LIBFPTR_PARAM_PATTERN_SETTINGS,
|
|
760
|
+
LIBFPTR_PARAM_VENDING,
|
|
761
|
+
LIBFPTR_PARAM_CATERING,
|
|
762
|
+
LIBFPTR_PARAM_WHOLESALE,
|
|
763
|
+
LIBFPTR_PARAM_REGISTRATION_POSITION_FORM,
|
|
764
|
+
LIBFPTR_PARAM_MERGE_POSITIONS,
|
|
765
|
+
LIBFPTR_PARAM_DATAFLASH_JEDEC_ID,
|
|
766
|
+
LIBFPTR_PARAM_DATAFLASH_NAME,
|
|
767
|
+
LIBFPTR_PARAM_DATAFLASH_SIZE,
|
|
768
|
+
LIBFPTR_PARAM_FRAM_EEPROM_NAME,
|
|
769
|
+
LIBFPTR_PARAM_FRAM_EEPROM_SIZE,
|
|
770
|
+
LIBFPTR_PARAM_MARKING_NOT_FORM_REQUEST,
|
|
771
|
+
LIBFPTR_PARAM_PRINT_ENTITY_TYPE,
|
|
772
|
+
LIBFPTR_PARAM_RECEIPT_TAPE_PATH_LENGTH,
|
|
773
|
+
|
|
774
|
+
// certification
|
|
775
|
+
LIBFPTR_PARAM_LAST_SUCCESS_FNM_UPDATE_KEYS_DATE_TIME,
|
|
776
|
+
LIBFPTR_PARAM_LAST_ATTEMPTION_FNM_UPDATE_KEYS_DATE_TIME,
|
|
777
|
+
LIBFPTR_PARAM_COUNT_ATTEMPTION_FNM_UPDATE_KEYS,
|
|
735
778
|
|
|
736
779
|
LIBFPTR_PARAM_LAST
|
|
737
780
|
};
|
|
@@ -752,6 +795,7 @@ enum libfptr_model
|
|
|
752
795
|
LIBFPTR_MODEL_ATOL_50F = 80,
|
|
753
796
|
LIBFPTR_MODEL_ATOL_52F = 64,
|
|
754
797
|
LIBFPTR_MODEL_ATOL_55F = 62,
|
|
798
|
+
LIBFPTR_MODEL_ATOL_55v2F = 66,
|
|
755
799
|
LIBFPTR_MODEL_ATOL_60F = 75,
|
|
756
800
|
LIBFPTR_MODEL_ATOL_77F = 69,
|
|
757
801
|
LIBFPTR_MODEL_ATOL_90F = 72,
|
|
@@ -764,6 +808,12 @@ enum libfptr_model
|
|
|
764
808
|
LIBFPTR_MODEL_KAZNACHEY_FA = 76,
|
|
765
809
|
LIBFPTR_MODEL_ATOL_1F = 93,
|
|
766
810
|
LIBFPTR_MODEL_ATOL_22v2F = 95,
|
|
811
|
+
LIBFPTR_MODEL_ATOL_42FA = 70,
|
|
812
|
+
LIBFPTR_MODEL_ALLIANCE_20F = 50,
|
|
813
|
+
LIBFPTR_MODEL_ATOL_STB_6F = 94,
|
|
814
|
+
LIBFPTR_MODEL_ATOL_35F = 97,
|
|
815
|
+
// certification
|
|
816
|
+
LIBFPTR_MODEL_ATOL_27_FP7_F = 99,
|
|
767
817
|
};
|
|
768
818
|
|
|
769
819
|
#define LIBFPTR_SETTING_LIBRARY_PATH L"LibraryPath"
|
|
@@ -822,6 +872,20 @@ enum libfptr_model
|
|
|
822
872
|
|
|
823
873
|
#define LIBFPTR_SETTING_SILENT_REBOOT L"SilentReboot"
|
|
824
874
|
|
|
875
|
+
#define LIBFPTR_SETTING_GUI_PARAMETERS L"GuiParametersMapping"
|
|
876
|
+
|
|
877
|
+
#define LIBFPTR_SETTING_GUI_PATTERN_REG L"PatternParameters"
|
|
878
|
+
|
|
879
|
+
#define LIBFPTR_SETTING_AUTO_TIME_SYNC L"AutoTimeSync"
|
|
880
|
+
|
|
881
|
+
#define LIBFPTR_SETTING_AUTO_TIME_SYNC_TIME L"AutoTimeSyncTime"
|
|
882
|
+
|
|
883
|
+
#define LIBFPTR_SETTING_LOG_PATHS L"LogPaths"
|
|
884
|
+
|
|
885
|
+
#define LIBFPTR_SETTING_MERGE_RECEIPT_ITEMS L"MergeReceiptItems"
|
|
886
|
+
|
|
887
|
+
#define LIBFPTR_SETTING_LICENSE L"Licenses"
|
|
888
|
+
|
|
825
889
|
enum libfptr_port
|
|
826
890
|
{
|
|
827
891
|
LIBFPTR_PORT_COM = 0,
|
|
@@ -1028,6 +1092,10 @@ enum libfptr_tax_type
|
|
|
1028
1092
|
LIBFPTR_TAX_VAT20,
|
|
1029
1093
|
LIBFPTR_TAX_VAT120,
|
|
1030
1094
|
LIBFPTR_TAX_INVALID,
|
|
1095
|
+
LIBFPTR_TAX_VAT5,
|
|
1096
|
+
LIBFPTR_TAX_VAT105,
|
|
1097
|
+
LIBFPTR_TAX_VAT7,
|
|
1098
|
+
LIBFPTR_TAX_VAT107
|
|
1031
1099
|
};
|
|
1032
1100
|
|
|
1033
1101
|
enum libfptr_external_device_type
|
|
@@ -1093,6 +1161,12 @@ enum libfptr_kkt_data_type
|
|
|
1093
1161
|
LIBFPTR_DT_MCU_INFO,
|
|
1094
1162
|
LIBFPTR_DT_MODULE_ADDRESS,
|
|
1095
1163
|
LIBFPTR_DT_CACHE_REQUISITES,
|
|
1164
|
+
LIBFPTR_DT_DEPARTMENT_SUM,
|
|
1165
|
+
LIBFPTR_DT_MCU_TEMPERATURE,
|
|
1166
|
+
LIBFPTR_DT_AVAILABLE_OPERATIONS,
|
|
1167
|
+
LIBFPTR_DT_PATTERN_PARAMETERS,
|
|
1168
|
+
LIBFPTR_DT_RECEIPT_TAPE_PATH_LENGTH,
|
|
1169
|
+
LIBFPTR_DT_LAST_DATA_TYPE
|
|
1096
1170
|
};
|
|
1097
1171
|
|
|
1098
1172
|
enum libfptr_fn_data_type
|
|
@@ -1119,7 +1193,11 @@ enum libfptr_fn_data_type
|
|
|
1119
1193
|
LIBFPTR_FNDT_ISM_ERRORS,
|
|
1120
1194
|
LIBFPTR_FNDT_ISM_EXCHANGE_STATUS,
|
|
1121
1195
|
LIBFPTR_FNDT_MARKING_MODE_STATUS,
|
|
1122
|
-
LIBFPTR_FNDT_CHECK_MARK_TIME
|
|
1196
|
+
LIBFPTR_FNDT_CHECK_MARK_TIME,
|
|
1197
|
+
LIBFPTR_FNDT_RECEIPT_SIZE,
|
|
1198
|
+
|
|
1199
|
+
// certification
|
|
1200
|
+
LIBFPTR_FNDT_FNM_KEYS_UPDATE_DATE_TIME
|
|
1123
1201
|
};
|
|
1124
1202
|
|
|
1125
1203
|
enum libfptr_ffd_version
|
|
@@ -1462,7 +1540,8 @@ enum libfptr_mark_checking_type_in_cash
|
|
|
1462
1540
|
LIBFPTR_MCT_AUTONOMOUS = 0,
|
|
1463
1541
|
LIBFPTR_MCT_WAIT_FOR_RESULT,
|
|
1464
1542
|
LIBFPTR_MCT_RESULT_NOT_WAIT,
|
|
1465
|
-
LIBFPTR_MCT_QUERY_NOT_SEND
|
|
1543
|
+
LIBFPTR_MCT_QUERY_NOT_SEND,
|
|
1544
|
+
LIBFPTR_MCT_QUERY_NOT_FORM
|
|
1466
1545
|
};
|
|
1467
1546
|
|
|
1468
1547
|
enum libfptr_mark_checking_stage_in_cash
|
|
@@ -1484,6 +1563,57 @@ enum libfptr_silent_reboot
|
|
|
1484
1563
|
LIBFPTR_SILENT_REBOOT_BEFORE_SESSION_OPEN
|
|
1485
1564
|
};
|
|
1486
1565
|
|
|
1566
|
+
enum libfptr_platform_version
|
|
1567
|
+
{
|
|
1568
|
+
LIBFPTR_PLATFORM_UNKNOWN = 0,
|
|
1569
|
+
LIBFPTR_PLATFORM_25 = 25,
|
|
1570
|
+
LIBFPTR_PLATFORM_50 = 50,
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
enum libfptr_registration_position_form
|
|
1574
|
+
{
|
|
1575
|
+
LIBFPTR_RPF_ELECTRONIC_AND_PRINT = 0,
|
|
1576
|
+
LIBFPTR_RPF_ONLY_ELECTRONIC,
|
|
1577
|
+
LIBFPTR_RPF_ONLY_PRINT,
|
|
1578
|
+
};
|
|
1579
|
+
|
|
1580
|
+
enum libfptr_merge_receipt_items
|
|
1581
|
+
{
|
|
1582
|
+
LIBFPTR_MERGE_RECEIPT_NO = 0,
|
|
1583
|
+
LIBFPTR_MERGE_RECEIPT_ALL,
|
|
1584
|
+
LIBFPTR_MERGE_RECEIPT_MARK_ONLY,
|
|
1585
|
+
};
|
|
1586
|
+
|
|
1587
|
+
enum libfptr_license
|
|
1588
|
+
{
|
|
1589
|
+
LIBFPTR_LIC_BASE_FISCAL = 1,
|
|
1590
|
+
LIBFPTR_LIC_WRITE_FW,
|
|
1591
|
+
LIBFPTR_LIC_TAX_20,
|
|
1592
|
+
LIBFPTR_LIC_FFD_1_1,
|
|
1593
|
+
LIBFPTR_LIC_MARK_CODE,
|
|
1594
|
+
LIBFPTR_LIC_EXT_FUNC,
|
|
1595
|
+
LIBFPTR_LIC_TEMPLATE,
|
|
1596
|
+
LIBFPTR_LIC_PRINT_BMP,
|
|
1597
|
+
LIBFPTR_LIC_DISABLE_PF,
|
|
1598
|
+
LIBFPTR_LIC_FFD_1_2,
|
|
1599
|
+
LIBFPTR_LIC_FR_WORK,
|
|
1600
|
+
LIBFPTR_LIC_WEB,
|
|
1601
|
+
LIBFPTR_LIC_FFD_1_1_2,
|
|
1602
|
+
LIBFPTR_LIC_TEST_LAB,
|
|
1603
|
+
LIBFPTR_LIC_WEB_REQ,
|
|
1604
|
+
LIBFPTR_LIC_RELESE,
|
|
1605
|
+
LIBFPTR_LIC_EXT_PRINT,
|
|
1606
|
+
LIBFPTR_LIC_OSU,
|
|
1607
|
+
LIBFPTR_LIC_EXT_FISCAL,
|
|
1608
|
+
};
|
|
1609
|
+
|
|
1610
|
+
enum libfptr_print_entity_type
|
|
1611
|
+
{
|
|
1612
|
+
LIBFPTR_PET_STRINGS = 0,
|
|
1613
|
+
LIBFPTR_PET_PICTURES,
|
|
1614
|
+
LIBFPTR_PET_FISCAL_DOCUMENT,
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1487
1617
|
#define LIBFPTR_UC_OTHERS 4294967295
|
|
1488
1618
|
|
|
1489
1619
|
|
|
@@ -1498,6 +1628,9 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_create_with_id(libfptr_handle *ha
|
|
|
1498
1628
|
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_set_settings(libfptr_handle handle,
|
|
1499
1629
|
const wchar_t *settings);
|
|
1500
1630
|
|
|
1631
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_validate_merge_position_support(libfptr_handle handle,
|
|
1632
|
+
wchar_t *value, int size);
|
|
1633
|
+
|
|
1501
1634
|
DTOX_SHARED_EXPORT void DTOX_SHARED_CCA libfptr_destroy(libfptr_handle *handle);
|
|
1502
1635
|
|
|
1503
1636
|
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_settings(libfptr_handle handle, wchar_t *value,
|
|
@@ -1649,7 +1782,6 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cash_income(libfptr_handle handle
|
|
|
1649
1782
|
|
|
1650
1783
|
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cash_outcome(libfptr_handle handle);
|
|
1651
1784
|
|
|
1652
|
-
|
|
1653
1785
|
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_open_receipt(libfptr_handle handle);
|
|
1654
1786
|
|
|
1655
1787
|
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cancel_receipt(libfptr_handle handle);
|
|
@@ -1869,6 +2001,16 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_last_document_journal(libfptr
|
|
|
1869
2001
|
|
|
1870
2002
|
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_change_label(libfptr_handle handle, const wchar_t *label);
|
|
1871
2003
|
|
|
2004
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_is_param_available(libfptr_handle handle, int param_id);
|
|
2005
|
+
|
|
2006
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_error_recommendation(libfptr_handle handle, wchar_t *value, int size);
|
|
2007
|
+
|
|
2008
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_find_document_in_journal(libfptr_handle handle);
|
|
2009
|
+
|
|
2010
|
+
// certification
|
|
2011
|
+
|
|
2012
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_run_fn_command(libfptr_handle handle);
|
|
2013
|
+
|
|
1872
2014
|
#ifdef __cplusplus
|
|
1873
2015
|
}
|
|
1874
2016
|
#endif
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|