Commit Graph

803 Commits

Author SHA1 Message Date
alexandercerutti
4f83b18133 Reordered requires for packages and internal files 2018-09-12 12:26:07 +02:00
alexandercerutti
18750acd9b Moved _generateStringFile method outside the class as function generateStringFile, changed its implementation 2018-09-12 12:26:02 +02:00
alexandercerutti
0971cdb780 Autocomplete returns effective number of added structures 2018-09-12 00:53:06 +02:00
alexandercerutti
a121fd84ea Added format and relevanceDateFormat optional parameters for expiration and relevance; changed dateToW3CString() 2018-09-11 22:37:58 +02:00
alexandercerutti
8c3482a562 Fixed adding of locations and beacons only if array has at least 1 element 2018-09-11 22:09:37 +02:00
alexandercerutti
4a790d4161 Changed validation method in barcode; added function 'getValidated' to obtain validation content 2018-09-11 19:28:13 +02:00
alexandercerutti
b3e8ea1e4a Added check in localize for lang 2018-09-11 19:25:33 +02:00
alexandercerutti
9c436b2c48 Improved check in nfc adding 2018-09-09 16:53:21 +02:00
alexandercerutti
4bc46510dc Improved check for maxDistance, to check if the converted value is NaN 2018-09-09 16:53:12 +02:00
alexandercerutti
d9a276026e Improved check on dates; added genericDebug to show debug messages 2018-09-09 16:01:54 +02:00
alexandercerutti
fba65ed639 Renamed 'quantity' argument in 'amount' in fields 2018-09-09 16:00:17 +02:00
alexandercerutti
4e1bc5c3fb Now excluding fields with the same key 2018-08-29 19:54:15 +02:00
alexandercerutti
458ef1c481 Added working examples for barcode, localization, fields and expiration with working pass models and webserver 2018-08-29 18:38:22 +02:00
alexandercerutti
b9ede238c2 Added new line in messages.js 2018-08-29 18:32:53 +02:00
alexandercerutti
6502ba2e24 Removed useless try-catch 2018-08-28 15:39:43 +02:00
alexandercerutti
cdc23ecc22 Added comment for nfc method 2018-08-28 15:36:15 +02:00
alexandercerutti
7f43325751 Added some comments, fixed barcode problem when not valid, refactored a condition 2018-08-28 15:07:30 +02:00
alexandercerutti
04c379f9dd Changed way to set authenticationToken as required when webServiceURL is provided 2018-08-28 15:06:10 +02:00
alexandercerutti
50c2dc2b73 Added debug for barcode methods 2018-08-28 15:05:35 +02:00
alexandercerutti
d7c003149a Changed schema passing method to strings instead of constants;
Added schema name resolution function in schema.js and schemas list
2018-08-28 02:05:25 +02:00
alexandercerutti
5e2dd8a674 Added the left valid fields to field structure schema 2018-08-28 01:48:57 +02:00
alexandercerutti
dbb5dcc2a5 Added nfc method to push nfc properties to be patched 2018-08-28 01:48:19 +02:00
alexandercerutti
8313d9e9a0 Removed __filterOptions and added filter function in schema to filter the valid options;
Added structure for nfc dictionary
2018-08-28 01:47:49 +02:00
alexandercerutti
854ceddb04 Changed types in schema for attributedValue and value to accept multiple types 2018-08-27 16:24:05 +02:00
alexandercerutti
b8e6eec016 Now isValid for schema validation, prints the message when debug is on;
Added dependency of debug
2018-08-27 14:10:30 +02:00
alexandercerutti
788245b140 Applied some changes for schema for a more correct validation 2018-08-27 14:00:02 +02:00
alexandercerutti
9e812e9d10 Version 1.2.0 2018-08-27 00:24:54 +02:00
alexandercerutti
5b533c8d00 Moved to index.js getter and setter of transitType; Removed from fields.js the class created specifically 2018-08-27 00:23:58 +02:00
alexandercerutti
3c56659697 Fixed condition for transitType 2018-08-26 12:40:03 +02:00
alexandercerutti
a874171e2c Removed basicStructure and boardingStructure in schema for passDict with common fields and transitType 2018-08-26 12:16:51 +02:00
alexandercerutti
4ea50c5d95 Removed early return in _patch since not needed (this.props is not the only property to be checked in _patch) 2018-08-26 12:15:26 +02:00
alexandercerutti
4e3fa748c1 Added conditional pushing or replacing of fields inside fieldsName, based on this.shouldOverwrite 2018-08-26 12:15:26 +02:00
alexandercerutti
04b5058f3a Added StringField class for transitType field;
Added parsing specific for transit inside _patch method that throws
Renamed fields.area in fieldsName
2018-08-26 12:15:11 +02:00
alexandercerutti
6b4ec893d8 Changed implementation inside __parseSettings for the certificates to throw in case of necessity 2018-08-26 12:02:13 +02:00
alexandercerutti
eeb925b2a5 Improved parsing details in dateToW3CString to accept hours, minutes and seconds and different date formats 2018-08-26 11:59:41 +02:00
alexandercerutti
e7c5a9a3bc Now location accepts also no translations passed to the function to include the languge 2018-08-26 11:58:08 +02:00
alexandercerutti
d240d1a128 Fixed typo for error message 2018-08-26 11:56:46 +02:00
alexandercerutti
9c58529687 Changed return type of dateToW3CString in case of error; Changed the dependend chunk of code 2018-08-23 23:33:00 +02:00
alexandercerutti
09626f9885 Fixed comments 2018-08-23 23:28:39 +02:00
alexandercerutti
137b9ab841 Changed implementation of __parsePEM; Now it does not return anymore an object but the value;
Moved __parsePEM outside of Pass class as parsePEM function;
2018-08-23 22:44:57 +02:00
alexandercerutti
7d9cd5e1af Removed old filter 2018-08-23 20:04:47 +02:00
alexandercerutti
589ed66773 Removed warning messages 2018-08-23 13:47:21 +02:00
alexandercerutti
eeaee7eae8 Changed implementation of __barcodeAutocomplete and __autogenBarcode;
Now the first calls the second to generate all the (missing) structures;
Renamed __autogenBarcode in __barcodeAutogen
Moved __barcodeChooseBackward under __barcodeAutogen
2018-08-23 13:46:24 +02:00
alexandercerutti
5ab3b365dd Fixed comments 2018-08-23 13:41:36 +02:00
alexandercerutti
88464f7764 Removed async dependency 2018-08-22 23:38:11 +02:00
alexandercerutti
2d6c278c93 Changed inner certificates mapping to a clearer implementation 2018-08-22 23:07:18 +02:00
alexandercerutti
bb31ded884 _parseSettings now throws on error;
Removed async.concat for Promise.all implementation;
2018-08-22 23:01:58 +02:00
alexandercerutti
db74f3d407 Removed Promise returning template function to be executed for each buffer for a reduce implementation 2018-08-22 23:01:13 +02:00
alexandercerutti
3eac7a4cb5 Added some comments inside the function; renamed _passExtractor without low dash 2018-08-22 22:35:43 +02:00
alexandercerutti
f1f42c2f69 Reordered methods 2018-08-22 16:53:11 +02:00