Commit Graph

50 Commits

Author SHA1 Message Date
nuts-n-bits
9565bf0944 update beacon and location methods to use overload
Signed-off-by: nuts-n-bits <nuts-n-bits@outlook.com>
2019-12-14 16:08:58 +01:00
Alexander Cerutti
78baf78750 Small improvements 2019-12-06 00:23:55 +01:00
Alexander Cerutti
356e68378a Improved schemas in the project 2019-12-05 23:55:28 +01:00
Alexander Cerutti
9aa151ebb3 Removed @ from personalizationLogo search 2019-07-27 00:51:25 +02:00
Alexander Cerutti
eecfdb048f Added support for personalization / Rewards Enrollment passes 2019-07-27 00:41:48 +02:00
Alexander Cerutti
492f5239df Small improvements and fixes 2019-07-25 21:41:16 +02:00
Alexander Cerutti
4ec86415bf Fixed problem with localization files path/fileNames 2019-07-11 23:31:48 +02:00
Alexander Cerutti
f9c7686a5e Added schema-validation for props in pass.json before importing;
Added to props also the other props of pass.json
2019-07-07 15:11:06 +02:00
Alexander Cerutti
60f9e8320b Improved passFile props assignment 2019-07-01 23:50:50 +02:00
Alexander Cerutti
8b6f1ba948 Cleanup 2019-07-01 23:50:49 +02:00
Alexander Cerutti
35789a3d34 Added NFC_INVALID message 2019-07-01 23:50:49 +02:00
Alexander Cerutti
1226bb21c7 Removed forgotter useless parameters and fixed nfc method to accept null;
Added null to more signatures;
2019-07-01 23:50:49 +02:00
Alexander Cerutti
4546774916 Improved how pass props are loaded from overrides and pass.json 2019-07-01 23:50:48 +02:00
Alexander Cerutti
c61921721e Added BRC_NO_POOL error 2019-07-01 23:50:48 +02:00
Alexander Cerutti
a5ac1e13a4 Added props getter to get a copy of current props 2019-07-01 23:50:48 +02:00
Alexander Cerutti
dba3a7a02a Renamed _props to a symbol-property 2019-07-01 23:50:47 +02:00
Alexander Cerutti
e4c39d837a Removed barcodes autocompletion 2019-07-01 23:50:47 +02:00
Alexander Cerutti
c5a8de4964 Renamed barcode to barcodes and backward for barcodes to barcode 2019-07-01 23:50:47 +02:00
Alexander Cerutti
5babdf6854 Removed assignLength;
Removed passing of undefined to get the current value;
2019-07-01 23:50:46 +02:00
Alexander Cerutti
003b584221 Set back beacons and locations to overwrite the current properties;
Merged beacons and locations relevancy logic
2019-07-01 23:50:46 +02:00
Alexander Cerutti
b410a435df Unified date processing of expiration and relevantDate 2019-07-01 23:50:45 +02:00
Alexander Cerutti
a981571c42 Fixed beacons and locations content getting 2019-07-01 23:50:45 +02:00
Alexander Cerutti
75b22daf73 Removed selected patching based on type for a direct replacement of the properties 2019-07-01 23:50:45 +02:00
Alexander Cerutti
05193aa32a Added support to fetching current values of non-overrides props 2019-07-01 23:50:44 +02:00
Alexander Cerutti
9f924bbdcd Added support for pass.json properties to be inserted in _props 2019-07-01 23:50:44 +02:00
Alexander Cerutti
91c6ff1b94 Small Improvements to comments and code 2019-07-01 23:50:41 +02:00
Alexander Cerutti
894266de28 Improved security checks;
Added back the formatted messages and added new ones;
2019-07-01 23:35:08 +02:00
Alexander Cerutti
c733a4ea58 Added optimization for creation of FieldsArray 2019-07-01 23:35:06 +02:00
Alexander Cerutti
816f315fca Small improvements 2019-07-01 23:35:06 +02:00
Alexander Cerutti
8a6b473f84 Replaced Archiver with yazl;
Changed generate interface to return directly the stream;
2019-06-17 23:38:36 +02:00
Alexander Cerutti
7befe2ab98 Improved types 2019-06-16 11:47:51 +02:00
Alexander Cerutti
f5cb43827e Fixed schema names 2019-06-15 23:57:18 +02:00
Alexander Cerutti
734a9abc3b Improved Localize comments and signature 2019-06-15 23:39:33 +02:00
Alexander Cerutti
1668678f7c Splitted relevance method in beacons, locations, relevantDate and maxDistance as override 2019-06-15 23:34:46 +02:00
Alexander Cerutti
2c2e4ef79d Added PassWithLengthField interface 2019-06-15 23:33:06 +02:00
Alexander Cerutti
97ac79f2f4 Indentation fix 2019-06-15 22:08:21 +02:00
Alexander Cerutti
978b5699ce Improved internal typings 2019-06-15 19:07:43 +02:00
Alexander Cerutti
5c5e573fde Recreated Barcodes functions to accept a string and an object 2019-06-15 19:07:34 +02:00
Alexander Cerutti
3bf14be4a6 Added Pass fields as property (for typescript) 2019-06-12 23:27:49 +02:00
Alexander Cerutti
5213b5e190 Changed pass.json props patching 2019-06-12 23:26:44 +02:00
Alexander Cerutti
9ed541dca7 Removed String-Date and its format on methods that uses dates for native Date object 2019-06-12 23:23:37 +02:00
Alexander Cerutti
79a55f64d4 Fixed wrong variables, added initialization 2019-06-09 23:41:20 +02:00
Alexander Cerutti
91008de66e Changed pass _sign to accept signerkey content 2019-06-09 12:23:04 +02:00
Alexander Cerutti
688b4da4f7 Changed _patch method to accept Buffer and return patched buffer 2019-06-09 12:22:16 +02:00
Alexander Cerutti
d562053a14 Removed unused methods hasValidType, _parseSettings, readCertificates, etc. 2019-06-09 12:12:48 +02:00
Alexander Cerutti
70b42509c3 Changed generate method: removed 2019-06-09 12:04:39 +02:00
Alexander Cerutti
38d1ccbfb2 Removed unused imported dependencies 2019-06-09 12:00:54 +02:00
Alexander Cerutti
8a841301fa Changed Pass constructor to conform to the new architecture; 2019-06-09 11:51:33 +02:00
Alexander Cerutti
ffdaf8ac61 Added more return types 2019-06-07 20:48:54 +02:00
Alexander Cerutti
9609187fa5 Moved pass.json to typescript; Removed load method from pass implementation 2019-06-07 20:47:05 +02:00