node-atol-wrapper 0.0.20 → 0.0.23
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/.github/workflows/nodejs.yml +19 -17
- package/.yarnrc +1 -0
- package/README.md +4 -2
- package/binding.gyp +1 -1
- package/bindings.d.ts +1679 -54
- package/bindings.js +1 -1
- package/package.json +2 -2
- package/src/index.cc +5 -1
- package/src/libfptr10.h +294 -1
- 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/Resources/Info.plist +41 -0
- 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/.travis.yml +0 -49
- package/package-lock.json +0 -484
- package/scripts/build_against_node.sh +0 -7
- package/scripts/install_node.sh +0 -21
package/bindings.js
CHANGED
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.
|
|
4
|
+
"version": "0.0.23",
|
|
5
5
|
"main": "bindings.js",
|
|
6
6
|
"types": "bindings.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"nan": "^2.14.2",
|
|
14
|
-
"node-pre-gyp": "^0.
|
|
14
|
+
"@mapbox/node-pre-gyp": "^1.0.9"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
17
17
|
"binary": {
|
package/src/index.cc
CHANGED
|
@@ -6,5 +6,9 @@ NAN_MODULE_INIT(InitModule) {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
DISABLE_WCAST_FUNCTION_TYPE
|
|
9
|
-
|
|
9
|
+
#if NODE_MAJOR_VERSION >= 10
|
|
10
|
+
NAN_MODULE_WORKER_ENABLED(node_atol_wrapper, InitModule)
|
|
11
|
+
#else
|
|
12
|
+
NODE_MODULE(node_atol_wrapper, InitModule)
|
|
13
|
+
#endif
|
|
10
14
|
DISABLE_WCAST_FUNCTION_TYPE_END
|
package/src/libfptr10.h
CHANGED
|
@@ -302,6 +302,47 @@ enum libfptr_error
|
|
|
302
302
|
LIBFPTR_ERROR_COMMODITIES_TABLE_INVALID_TAG_SIZE,
|
|
303
303
|
LIBFPTR_ERROR_COMMODITIES_TABLE_NO_TAG_DATA,
|
|
304
304
|
LIBFPTR_ERROR_COMMODITIES_TABLE_NO_FREE_MEMORY,
|
|
305
|
+
LIBFPTR_ERROR_INVALID_CACHE,
|
|
306
|
+
LIBFPTR_ERROR_SCHEDULER_NOT_READY,
|
|
307
|
+
LIBFPTR_ERROR_SCHEDULER_INVALID_TASK,
|
|
308
|
+
LIBFPTR_ERROR_MINIPOS_NO_POSITION_PAYMENT,
|
|
309
|
+
LIBFPTR_ERROR_MINIPOS_COMMAND_TIME_OUT,
|
|
310
|
+
LIBFPTR_ERROR_MINIPOS_MODE_FR_DISABLED,
|
|
311
|
+
LIBFPTR_ERROR_ENTRY_NOT_FOUND_IN_OTP,
|
|
312
|
+
LIBFPTR_ERROR_EXCISABLE_COMMODITY_WITHOUT_EXCISE,
|
|
313
|
+
LIBFPTR_ERROR_BARCODE_TYPE_NOT_SUPPORTED,
|
|
314
|
+
LIBFPTR_ERROR_OVERLAY_DATA_OVERFLOW,
|
|
315
|
+
LIBFPTR_ERROR_INVALID_MODULE_ADDRESS,
|
|
316
|
+
LIBFPTR_ERROR_ECR_MODEL_NOT_SUPPORTED,
|
|
317
|
+
|
|
318
|
+
LIBFPTR_ERROR_BASE_MARKING = 400,
|
|
319
|
+
LIBFPTR_ERROR_MARKING_CODE_VALIDATION_IN_PROGRESS,
|
|
320
|
+
LIBFPTR_ERROR_NO_CONNECTION_WITH_SERVER,
|
|
321
|
+
LIBFPTR_ERROR_MARKING_CODE_VALIDATION_CANCELED,
|
|
322
|
+
LIBFPTR_ERROR_INVALID_MARKING_CODE_STATUS,
|
|
323
|
+
LIBFPTR_ERROR_INVALID_GS1,
|
|
324
|
+
LIBFPTR_ERROR_MARKING_WORK_DENIED,
|
|
325
|
+
LIBFPTR_ERROR_MARKING_WORK_TEMPORARY_BLOCKED,
|
|
326
|
+
LIBFPTR_ERROR_MARKS_OVERFLOW,
|
|
327
|
+
LIBFPTR_ERROR_INVALID_MARKING_CODE,
|
|
328
|
+
LIBFPTR_ERROR_INVALID_STATE,
|
|
329
|
+
LIBFPTR_ERROR_OFD_EXCHANGE,
|
|
330
|
+
LIBFPTR_ERROR_INVALID_MEASUREMENT_UNIT,
|
|
331
|
+
LIBFPTR_ERROR_OPERATION_DENIED_IN_CURRENT_FFD,
|
|
332
|
+
LIBFPTR_ERROR_MARKING_OPERATION_DENIED,
|
|
333
|
+
LIBFPTR_ERROR_NO_DATA_TO_SEND,
|
|
334
|
+
LIBFPTR_ERROR_NO_MARKED_POSITION,
|
|
335
|
+
LIBFPTR_ERROR_HAS_NOT_SEND_NOTICES,
|
|
336
|
+
LIBFPTR_ERROR_UPDATE_KEYS_REQUIRED,
|
|
337
|
+
LIBFPTR_ERROR_UPDATE_KEYS_SERVICE,
|
|
338
|
+
LIBFPTR_ERROR_MARK_NOT_CHECKED,
|
|
339
|
+
LIBFPTR_ERROR_MARK_CHECK_TIMEOUT_EXPIRED,
|
|
340
|
+
LIBFPTR_ERROR_NO_MARKING_CODE_IN_TABLE,
|
|
341
|
+
LIBFPTR_ERROR_CHEKING_MARK_IN_PROGRESS,
|
|
342
|
+
LIBFPTR_ERROR_INVALID_SERVER_ADDRESS,
|
|
343
|
+
LIBFPTR_ERROR_UPDATE_KEYS_TIMEOUT,
|
|
344
|
+
LIBFPTR_ERROR_PROPERTY_FOR_MARKING_POSITION_ONLY,
|
|
345
|
+
LIBFPTR_ERROR_MARKING_END = 499,
|
|
305
346
|
|
|
306
347
|
LIBFPTR_ERROR_BASE_WEB = 500,
|
|
307
348
|
LIBFPTR_ERROR_RECEIPT_PARSE_ERROR,
|
|
@@ -633,6 +674,64 @@ enum libfptr_param
|
|
|
633
674
|
LIBFPTR_PARAM_FISCAL_SIGN_ARCHIVE,
|
|
634
675
|
LIBFPTR_PARAM_COMMAND_GROUP,
|
|
635
676
|
LIBFPTR_PARAM_ERROR_CODE,
|
|
677
|
+
LIBFPTR_PARAM_MARKING_WAIT_FOR_VALIDATION_RESULT,
|
|
678
|
+
LIBFPTR_PARAM_MARKING_CODE_STATUS,
|
|
679
|
+
LIBFPTR_PARAM_MARKING_CODE_VALIDATION_RESULT,
|
|
680
|
+
LIBFPTR_PARAM_MARKING_CODE_OFFLINE_VALIDATION_ERROR,
|
|
681
|
+
LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR,
|
|
682
|
+
LIBFPTR_PARAM_MARKING_CODE_VALIDATION_READY,
|
|
683
|
+
LIBFPTR_PARAM_MEASUREMENT_UNIT,
|
|
684
|
+
LIBFPTR_PARAM_MARKING_PROCESSING_MODE,
|
|
685
|
+
LIBFPTR_PARAM_MARKING_FRACTIONAL_QUANTITY,
|
|
686
|
+
LIBFPTR_PARAM_PRODUCT_CODE,
|
|
687
|
+
LIBFPTR_PARAM_TRADE_MARKED_PRODUCTS,
|
|
688
|
+
LIBFPTR_PARAM_INSURANCE_ACTIVITY,
|
|
689
|
+
LIBFPTR_PARAM_PAWN_SHOP_ACTIVITY,
|
|
690
|
+
LIBFPTR_PARAM_TLV_LIST,
|
|
691
|
+
LIBFPTR_PARAM_CHECK_MARKING_SERVER_READY,
|
|
692
|
+
LIBFPTR_PARAM_MARKING_SERVER_RESPONSE_TIME,
|
|
693
|
+
LIBFPTR_PARAM_MARKING_SERVER_ERROR_CODE,
|
|
694
|
+
LIBFPTR_PARAM_MARKING_SERVER_ERROR_DESCRIPTION,
|
|
695
|
+
LIBFPTR_PARAM_ISM_ERROR,
|
|
696
|
+
LIBFPTR_PARAM_ISM_ERROR_TEXT,
|
|
697
|
+
LIBFPTR_PARAM_MARKING_MODE_CHECKING_STATUS,
|
|
698
|
+
LIBFPTR_PARAM_MARK_CHECKING_COUNT,
|
|
699
|
+
LIBFPTR_PARAM_MARK_SOLD_COUNT,
|
|
700
|
+
LIBFPTR_PARAM_NOTICE_IS_BEGIN,
|
|
701
|
+
LIBFPTR_PARAM_NOTICE_FREE_MEMORY,
|
|
702
|
+
LIBFPTR_PARAM_NOTICE_COUNT,
|
|
703
|
+
LIBFPTR_PARAM_MARKING_NOT_SEND_TO_SERVER,
|
|
704
|
+
LIBFPTR_PARAM_DOCUMENT_TYPE,
|
|
705
|
+
LIBFPTR_PARAM_PRINT_REPORT,
|
|
706
|
+
LIBFPTR_PARAM_FN_EXECUTION,
|
|
707
|
+
LIBFPTR_PARAM_MCU_SN,
|
|
708
|
+
LIBFPTR_PARAM_MCU_PART_ID,
|
|
709
|
+
LIBFPTR_PARAM_MCU_PART_NAME,
|
|
710
|
+
LIBFPTR_PARAM_IS_REQUEST_SENT,
|
|
711
|
+
LIBFPTR_PARAM_FN_CHECK_MARK_TIME,
|
|
712
|
+
LIBFPTR_PARAM_SENDING_MARK_TIME,
|
|
713
|
+
LIBFPTR_PARAM_MARKING_SERVER_EXCHANGE_TIME,
|
|
714
|
+
LIBFPTR_PARAM_FULL_SENDING_MARK_TIME,
|
|
715
|
+
LIBFPTR_PARAM_MARK_CHECKING_STATUS_IN_CASH,
|
|
716
|
+
LIBFPTR_PARAM_MARK_CHECKING_TYPE_IN_CASH,
|
|
717
|
+
LIBFPTR_PARAM_MARK_CHECKING_STAGE_IN_CASH,
|
|
718
|
+
LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT,
|
|
719
|
+
LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR_DESCRIPTION,
|
|
720
|
+
LIBFPTR_PARAM_FN_CONTAINS_KEYS_UPDATER_SERVER_URI,
|
|
721
|
+
LIBFPTR_PARAM_MARKING_CODE_CLEAR,
|
|
722
|
+
LIBFPTR_PARAM_MODULE_ADDRESS,
|
|
723
|
+
LIBFPTR_PARAM_SEGMENT_ADDRESS,
|
|
724
|
+
LIBFPTR_PARAM_LAST_SUCCESSFUL_OKP,
|
|
725
|
+
LIBFPTR_PARAM_FN_SERIAL_NUMBER,
|
|
726
|
+
LIBFPTR_PARAM_ECR_REGISTRATION_NUMBER,
|
|
727
|
+
LIBFPTR_PARAM_OFD_VATIN,
|
|
728
|
+
LIBFPTR_PARAM_FNS_URL,
|
|
729
|
+
LIBFPTR_PARAM_MACHINE_NUMBER,
|
|
730
|
+
LIBFPTR_PARAM_MARKING_PRODUCT_ID,
|
|
731
|
+
LIBFPTR_PARAM_TIMEOUT,
|
|
732
|
+
LIBFPTR_PARAM_PRINT_UPDATE_FNM_KEYS_REPORT,
|
|
733
|
+
LIBFPTR_PARAM_FN_KEYS_UPDATER_SERVER_URI,
|
|
734
|
+
LIBFPTR_PARAM_DOCUMENT_ELECTRONICALLY,
|
|
636
735
|
|
|
637
736
|
LIBFPTR_PARAM_LAST
|
|
638
737
|
};
|
|
@@ -649,6 +748,7 @@ enum libfptr_model
|
|
|
649
748
|
LIBFPTR_MODEL_ATOL_27F = 87,
|
|
650
749
|
LIBFPTR_MODEL_ATOL_30F = 61,
|
|
651
750
|
LIBFPTR_MODEL_ATOL_42FS = 77,
|
|
751
|
+
LIBFPTR_MODEL_ATOL_47FA = 48,
|
|
652
752
|
LIBFPTR_MODEL_ATOL_50F = 80,
|
|
653
753
|
LIBFPTR_MODEL_ATOL_52F = 64,
|
|
654
754
|
LIBFPTR_MODEL_ATOL_55F = 62,
|
|
@@ -660,8 +760,10 @@ enum libfptr_model
|
|
|
660
760
|
LIBFPTR_MODEL_ATOL_SIGMA_10 = 86,
|
|
661
761
|
LIBFPTR_MODEL_ATOL_SIGMA_7F = 90,
|
|
662
762
|
LIBFPTR_MODEL_ATOL_SIGMA_8F = 91,
|
|
763
|
+
LIBFPTR_MODEL_ATOL_PT_5F = 89,
|
|
663
764
|
LIBFPTR_MODEL_KAZNACHEY_FA = 76,
|
|
664
765
|
LIBFPTR_MODEL_ATOL_1F = 93,
|
|
766
|
+
LIBFPTR_MODEL_ATOL_22v2F = 95,
|
|
665
767
|
};
|
|
666
768
|
|
|
667
769
|
#define LIBFPTR_SETTING_LIBRARY_PATH L"LibraryPath"
|
|
@@ -714,6 +816,12 @@ enum libfptr_model
|
|
|
714
816
|
|
|
715
817
|
#define LIBFPTR_SETTING_REMOTE_SERVER_CONNECTION_TIMEOUT L"RemoteServerConnectionTimeout"
|
|
716
818
|
|
|
819
|
+
#define LIBFPTR_SETTING_VALIDATE_MARK_WITH_FNM_ONLY L"ValidateMarksWithFnmOnly"
|
|
820
|
+
|
|
821
|
+
#define LIBFPTR_SETTING_AUTO_MEASUREMENT_UNIT L"AutoMeasurementUnit"
|
|
822
|
+
|
|
823
|
+
#define LIBFPTR_SETTING_SILENT_REBOOT L"SilentReboot"
|
|
824
|
+
|
|
717
825
|
enum libfptr_port
|
|
718
826
|
{
|
|
719
827
|
LIBFPTR_PORT_COM = 0,
|
|
@@ -981,6 +1089,10 @@ enum libfptr_kkt_data_type
|
|
|
981
1089
|
LIBFPTR_DT_WIFI_INFO,
|
|
982
1090
|
LIBFPTR_DT_FONT_INFO,
|
|
983
1091
|
LIBFPTR_DT_SOFTLOCK_STATUS,
|
|
1092
|
+
LIBFPTR_DT_LAST_SENT_ISM_NOTICE_DATE_TIME,
|
|
1093
|
+
LIBFPTR_DT_MCU_INFO,
|
|
1094
|
+
LIBFPTR_DT_MODULE_ADDRESS,
|
|
1095
|
+
LIBFPTR_DT_CACHE_REQUISITES,
|
|
984
1096
|
};
|
|
985
1097
|
|
|
986
1098
|
enum libfptr_fn_data_type
|
|
@@ -1003,7 +1115,11 @@ enum libfptr_fn_data_type
|
|
|
1003
1115
|
LIBFPTR_FNDT_ERROR_DETAIL,
|
|
1004
1116
|
LIBFPTR_FNDT_VALIDITY_DAYS,
|
|
1005
1117
|
LIBFPTR_FNDT_FREE_MEMORY,
|
|
1006
|
-
LIBFPTR_FNDT_TOTALS
|
|
1118
|
+
LIBFPTR_FNDT_TOTALS,
|
|
1119
|
+
LIBFPTR_FNDT_ISM_ERRORS,
|
|
1120
|
+
LIBFPTR_FNDT_ISM_EXCHANGE_STATUS,
|
|
1121
|
+
LIBFPTR_FNDT_MARKING_MODE_STATUS,
|
|
1122
|
+
LIBFPTR_FNDT_CHECK_MARK_TIME
|
|
1007
1123
|
};
|
|
1008
1124
|
|
|
1009
1125
|
enum libfptr_ffd_version
|
|
@@ -1012,6 +1128,7 @@ enum libfptr_ffd_version
|
|
|
1012
1128
|
LIBFPTR_FFD_1_0 = 100,
|
|
1013
1129
|
LIBFPTR_FFD_1_0_5 = 105,
|
|
1014
1130
|
LIBFPTR_FFD_1_1 = 110,
|
|
1131
|
+
LIBFPTR_FFD_1_2 = 120
|
|
1015
1132
|
};
|
|
1016
1133
|
|
|
1017
1134
|
enum libfptr_taxation_type
|
|
@@ -1169,6 +1286,7 @@ enum libfptr_script_type
|
|
|
1169
1286
|
LIBFPTR_SCRIPT_EXECUTABLE = 0,
|
|
1170
1287
|
LIBFPTR_SCRIPT_JSON,
|
|
1171
1288
|
LIBFPTR_SCRIPT_SETTINGS,
|
|
1289
|
+
LIBFPTR_SCRIPT_LIBRARY,
|
|
1172
1290
|
};
|
|
1173
1291
|
|
|
1174
1292
|
enum libfptr_uc_layer
|
|
@@ -1206,6 +1324,77 @@ enum libfptr_marking_code_type
|
|
|
1206
1324
|
LIBFPTR_MCT_EGAIS_30,
|
|
1207
1325
|
};
|
|
1208
1326
|
|
|
1327
|
+
enum libfptr_marking_code_type_1_2
|
|
1328
|
+
{
|
|
1329
|
+
LIBFPTR_MCT12_AUTO = 256,
|
|
1330
|
+
LIBFPTR_MCT12_UNKNOWN = 0,
|
|
1331
|
+
LIBFPTR_MCT12_SHORT,
|
|
1332
|
+
LIBFPTR_MCT12_88_CHECK,
|
|
1333
|
+
LIBFPTR_MCT12_44_NO_CHECK,
|
|
1334
|
+
LIBFPTR_MCT12_44_CHECK,
|
|
1335
|
+
LIBFPTR_MCT12_4_NO_CHECK,
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
enum libfptr_marking_estimated_status
|
|
1339
|
+
{
|
|
1340
|
+
LIBFPTR_MES_PIECE_SOLD = 1,
|
|
1341
|
+
LIBFPTR_MES_DRY_FOR_SALE,
|
|
1342
|
+
LIBFPTR_MES_PIECE_RETURN,
|
|
1343
|
+
LIBFPTR_MES_DRY_RETURN,
|
|
1344
|
+
LIBFPTR_MES_UNCHANGED = 255
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
enum libfptr_item_units
|
|
1348
|
+
{
|
|
1349
|
+
LIBFPTR_IU_PIECE = 0,
|
|
1350
|
+
LIBFPTR_IU_GRAM = 10,
|
|
1351
|
+
LIBFPTR_IU_KILOGRAM,
|
|
1352
|
+
LIBFPTR_IU_TON,
|
|
1353
|
+
LIBFPTR_IU_CENTIMETER = 20,
|
|
1354
|
+
LIBFPTR_IU_DECIMETER,
|
|
1355
|
+
LIBFPTR_IU_METER,
|
|
1356
|
+
LIBFPTR_IU_SQUARE_CENTIMETER = 30,
|
|
1357
|
+
LIBFPTR_IU_SQUARE_DECIMETER,
|
|
1358
|
+
LIBFPTR_IU_SQUARE_METER,
|
|
1359
|
+
LIBFPTR_IU_MILLILITER = 40,
|
|
1360
|
+
LIBFPTR_IU_LITER,
|
|
1361
|
+
LIBFPTR_IU_CUBIC_METER,
|
|
1362
|
+
LIBFPTR_IU_KILOWATT_HOUR = 50,
|
|
1363
|
+
LIBFPTR_IU_GKAL,
|
|
1364
|
+
LIBFPTR_IU_DAY = 70,
|
|
1365
|
+
LIBFPTR_IU_HOUR,
|
|
1366
|
+
LIBFPTR_IU_MINUTE,
|
|
1367
|
+
LIBFPTR_IU_SECOND,
|
|
1368
|
+
LIBFPTR_IU_KILOBYTE = 80,
|
|
1369
|
+
LIBFPTR_IU_MEGABYTE,
|
|
1370
|
+
LIBFPTR_IU_GIGABYTE,
|
|
1371
|
+
LIBFPTR_IU_TERABYTE,
|
|
1372
|
+
LIBFPTR_IU_OTHER = 255
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
enum libfptr_mark_operator_item_status
|
|
1376
|
+
{
|
|
1377
|
+
LIBFPTR_OIS_ESTIMATED_STATUS_CORRECT = 1,
|
|
1378
|
+
LIBFPTR_OIS_ESTIMATED_STATUS_INCORRECT,
|
|
1379
|
+
LIBFPTR_OIS_SALE_STOPPED
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
enum libfptr_mark_operator_response_result
|
|
1383
|
+
{
|
|
1384
|
+
LIBFPTR_ORR_CORRECT = 0,
|
|
1385
|
+
LIBFPTR_ORR_INCORRECT,
|
|
1386
|
+
LIBFPTR_ORR_UNRECOGNIZED
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
enum libfptr_fn_check_error_reason
|
|
1390
|
+
{
|
|
1391
|
+
LIBFPTR_CER_CHECKED = 0,
|
|
1392
|
+
LIBFPTR_CER_TYPE_INCORRECT,
|
|
1393
|
+
LIBFPTR_CER_NO_KEYS,
|
|
1394
|
+
LIBFPTR_CER_NO_GS1,
|
|
1395
|
+
LIBFPTR_CER_OTHER
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1209
1398
|
enum libfptr_setting_type
|
|
1210
1399
|
{
|
|
1211
1400
|
LIBFPTR_ST_NUMBER = 0,
|
|
@@ -1219,6 +1408,82 @@ enum libfptr_firmware_type
|
|
|
1219
1408
|
LIBFPTR_FWT_SCRIPTS = 2,
|
|
1220
1409
|
};
|
|
1221
1410
|
|
|
1411
|
+
enum libfptr_marking_mode_checking_status
|
|
1412
|
+
{
|
|
1413
|
+
LIBFPTR_MCS_BLOCK = 0,
|
|
1414
|
+
LIBFPTR_MCS_NO_MARK_FOR_CHECK,
|
|
1415
|
+
LIBFPTR_MCS_MARK_RECEIVE_B1,
|
|
1416
|
+
LIBFPTR_MCS_MARK_STATE_QUERY_B5,
|
|
1417
|
+
LIBFPTR_MCS_MARK_STATE_ANSWER_B6
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
enum libfptr_notice_free_memory
|
|
1421
|
+
{
|
|
1422
|
+
LIBFPTR_NFM_LESS_50_PERCENT = 0,
|
|
1423
|
+
LIBFPTR_NFM_FROM_50_TO_80_PERCENT,
|
|
1424
|
+
LIBFPTR_NFM_FROM_80_TO_90_PERCENT,
|
|
1425
|
+
LIBFPTR_NFM_MORE_90_PERCENT,
|
|
1426
|
+
LIBFPTR_NFM_OUT_OF_MEMORY
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
enum libfptr_document_type
|
|
1430
|
+
{
|
|
1431
|
+
LIBFPTR_DT_CLOSED = 0,
|
|
1432
|
+
LIBFPTR_DT_RECEIPT_SELL = 1,
|
|
1433
|
+
LIBFPTR_DT_RECEIPT_SELL_RETURN = 2,
|
|
1434
|
+
LIBFPTR_DT_RECEIPT_BUY = 3,
|
|
1435
|
+
LIBFPTR_DT_RECEIPT_BUY_RETURN = 4,
|
|
1436
|
+
|
|
1437
|
+
LIBFPTR_DT_OPEN_SHIFT = 5,
|
|
1438
|
+
LIBFPTR_DT_CLOSE_SHIFT = 6,
|
|
1439
|
+
LIBFPTR_DT_REGISTRATION = 7,
|
|
1440
|
+
LIBFPTR_DT_CLOSE_ARCHIVE = 8,
|
|
1441
|
+
LIBFPTR_DT_OFD_EXCHANGE_STATUS = 11,
|
|
1442
|
+
|
|
1443
|
+
LIBFPTR_DT_RECEIPT_SELL_CORRECTION = 12,
|
|
1444
|
+
LIBFPTR_DT_RECEIPT_SELL_RETURN_CORRECTION = 13,
|
|
1445
|
+
LIBFPTR_DT_RECEIPT_BUY_CORRECTION = 14,
|
|
1446
|
+
LIBFPTR_DT_RECEIPT_BUY_RETURN_CORRECTION = 15,
|
|
1447
|
+
|
|
1448
|
+
LIBFPTR_DT_DOCUMENT_SERVICE = 20,
|
|
1449
|
+
LIBFPTR_DT_DOCUMENT_COPY = 21
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
enum libfptr_mark_checking_status_in_cash
|
|
1453
|
+
{
|
|
1454
|
+
LIBFPTR_MCS_NOT_EXECUTED = 0,
|
|
1455
|
+
LIBFPTR_MCS_EXECUTED,
|
|
1456
|
+
LIBFPTR_MCS_IS_OVER,
|
|
1457
|
+
LIBFPTR_MCS_RESULT_IS_RECIEVED
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
enum libfptr_mark_checking_type_in_cash
|
|
1461
|
+
{
|
|
1462
|
+
LIBFPTR_MCT_AUTONOMOUS = 0,
|
|
1463
|
+
LIBFPTR_MCT_WAIT_FOR_RESULT,
|
|
1464
|
+
LIBFPTR_MCT_RESULT_NOT_WAIT,
|
|
1465
|
+
LIBFPTR_MCT_QUERY_NOT_SEND
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1468
|
+
enum libfptr_mark_checking_stage_in_cash
|
|
1469
|
+
{
|
|
1470
|
+
LIBFPTR_MCST_WAITING_FOR_TASK = 0,
|
|
1471
|
+
LIBFPTR_MCST_OPENING_CONNECTION,
|
|
1472
|
+
LIBFPTR_MCST_SENDING,
|
|
1473
|
+
LIBFPTR_MCST_WAITING_FOR_RESULT,
|
|
1474
|
+
LIBFPTR_MCST_GETTING_RESULT,
|
|
1475
|
+
LIBFPTR_MCST_DECODE_RESULT,
|
|
1476
|
+
LIBFPTR_MCST_TASK_IS_OVER,
|
|
1477
|
+
LIBFPTR_MCST_WAITING_FOR_REPEAT
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
enum libfptr_silent_reboot
|
|
1481
|
+
{
|
|
1482
|
+
LIBFPTR_SILENT_REBOOT_NO = 0,
|
|
1483
|
+
LIBFPTR_SILENT_REBOOT_AFTER_SESSION_CLOSE,
|
|
1484
|
+
LIBFPTR_SILENT_REBOOT_BEFORE_SESSION_OPEN
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1222
1487
|
#define LIBFPTR_UC_OTHERS 4294967295
|
|
1223
1488
|
|
|
1224
1489
|
|
|
@@ -1576,6 +1841,34 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_reflection_call(libfptr_handle ha
|
|
|
1576
1841
|
|
|
1577
1842
|
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_remote_server_info(libfptr_handle handle);
|
|
1578
1843
|
|
|
1844
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_begin_marking_code_validation(libfptr_handle handle);
|
|
1845
|
+
|
|
1846
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cancel_marking_code_validation(libfptr_handle handle);
|
|
1847
|
+
|
|
1848
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_marking_code_validation_status(libfptr_handle handle);
|
|
1849
|
+
|
|
1850
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_accept_marking_code(libfptr_handle handle);
|
|
1851
|
+
|
|
1852
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_decline_marking_code(libfptr_handle handle);
|
|
1853
|
+
|
|
1854
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_update_fnm_keys(libfptr_handle handle);
|
|
1855
|
+
|
|
1856
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_write_sales_notice(libfptr_handle handle);
|
|
1857
|
+
|
|
1858
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_check_marking_code_validations_ready(libfptr_handle handle);
|
|
1859
|
+
|
|
1860
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_clear_marking_code_validation_result(libfptr_handle handle);
|
|
1861
|
+
|
|
1862
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_ping_marking_server(libfptr_handle handle);
|
|
1863
|
+
|
|
1864
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_marking_server_status(libfptr_handle handle);
|
|
1865
|
+
|
|
1866
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_is_driver_locked(libfptr_handle handle);
|
|
1867
|
+
|
|
1868
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_last_document_journal(libfptr_handle handle);
|
|
1869
|
+
|
|
1870
|
+
DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_change_label(libfptr_handle handle, const wchar_t *label);
|
|
1871
|
+
|
|
1579
1872
|
#ifdef __cplusplus
|
|
1580
1873
|
}
|
|
1581
1874
|
#endif
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleName</key>
|
|
6
|
+
<string>Драйвер ККТ v.10</string>
|
|
7
|
+
|
|
8
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
9
|
+
<string>ru</string>
|
|
10
|
+
|
|
11
|
+
<key>CFBundleExecutable</key>
|
|
12
|
+
<string>fptr10</string>
|
|
13
|
+
|
|
14
|
+
<key>CFBundleIconFile</key>
|
|
15
|
+
<string></string>
|
|
16
|
+
|
|
17
|
+
<key>CFBundleIdentifier</key>
|
|
18
|
+
<string>ru.atol.drivers10.fptr</string>
|
|
19
|
+
|
|
20
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
21
|
+
<string>6.0</string>
|
|
22
|
+
|
|
23
|
+
<key>CFBundlePackageType</key>
|
|
24
|
+
<string>FMWK</string>
|
|
25
|
+
|
|
26
|
+
<key>CFBundleVersion</key>
|
|
27
|
+
<string>10.9.3.1</string>
|
|
28
|
+
|
|
29
|
+
<key>CFBundleShortVersionString</key>
|
|
30
|
+
<string>10.9.3</string>
|
|
31
|
+
|
|
32
|
+
<key>CSResourcesFileMapped</key>
|
|
33
|
+
<true/>
|
|
34
|
+
|
|
35
|
+
<key>MinimumOSVersion</key>
|
|
36
|
+
<string>8.0</string>
|
|
37
|
+
|
|
38
|
+
<key>LSMinimumOSVersion</key>
|
|
39
|
+
<string>10.12</string>
|
|
40
|
+
</dict>
|
|
41
|
+
</plist>
|
|
Binary file
|
package/src/win-x64/fptr10.dll
CHANGED
|
Binary file
|
package/src/win-x64/fptr10.lib
CHANGED
|
Binary file
|
package/src/win-x86/fptr10.dll
CHANGED
|
Binary file
|
package/src/win-x86/fptr10.lib
CHANGED
|
Binary file
|
package/.travis.yml
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
sudo: true
|
|
2
|
-
|
|
3
|
-
language: generic
|
|
4
|
-
|
|
5
|
-
#dist: precise
|
|
6
|
-
|
|
7
|
-
git:
|
|
8
|
-
depth: 10
|
|
9
|
-
|
|
10
|
-
addons:
|
|
11
|
-
apt:
|
|
12
|
-
sources:
|
|
13
|
-
- ubuntu-toolchain-r-test
|
|
14
|
-
packages:
|
|
15
|
-
# - clang-3.8
|
|
16
|
-
- gcc-6
|
|
17
|
-
- g++-6
|
|
18
|
-
|
|
19
|
-
matrix:
|
|
20
|
-
include:
|
|
21
|
-
# Linux
|
|
22
|
-
- os: linux
|
|
23
|
-
compiler: gcc
|
|
24
|
-
env: NODE_VERSION="8"
|
|
25
|
-
- os: linux
|
|
26
|
-
compiler: gcc
|
|
27
|
-
env: NODE_VERSION="12"
|
|
28
|
-
# OS X
|
|
29
|
-
- os: osx
|
|
30
|
-
compiler: gcc
|
|
31
|
-
env: NODE_VERSION="8"
|
|
32
|
-
- os: osx
|
|
33
|
-
compiler: gcc
|
|
34
|
-
env: NODE_VERSION="12"
|
|
35
|
-
|
|
36
|
-
before_install:
|
|
37
|
-
- source ./scripts/install_node.sh ${NODE_VERSION}
|
|
38
|
-
- if [[ $(uname -s) == 'Linux' ]]; then
|
|
39
|
-
sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-6 /usr/bin/gcc;
|
|
40
|
-
sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-6 /usr/bin/g++;
|
|
41
|
-
fi;
|
|
42
|
-
- gcc --version
|
|
43
|
-
|
|
44
|
-
install:
|
|
45
|
-
# put node-pre-gyp on path
|
|
46
|
-
- export PATH=./node_modules/.bin/:$PATH
|
|
47
|
-
|
|
48
|
-
script:
|
|
49
|
-
- ./scripts/build_against_node.sh;
|