(dataType)
| 753 | } |
| 754 | |
| 755 | function _isBasicDataType(dataType) { |
| 756 | try { |
| 757 | const types = [ |
| 758 | 'Object', |
| 759 | 'ACL', |
| 760 | 'DateTime', |
| 761 | 'Boolean', |
| 762 | 'EncryptedText', |
| 763 | 'URL', |
| 764 | 'Email', |
| 765 | 'Text', |
| 766 | 'File', |
| 767 | 'Number', |
| 768 | 'GeoPoint', |
| 769 | ]; |
| 770 | |
| 771 | if (types.indexOf(dataType) > -1) { |
| 772 | return true; |
| 773 | } |
| 774 | |
| 775 | return false; |
| 776 | } catch (err) { |
| 777 | winston.log('error', { |
| 778 | error: String(err), |
| 779 | stack: new Error().stack, |
| 780 | }); |
| 781 | } |
| 782 | } |
| 783 | |
| 784 | function _generateId(document, reqType) { |
| 785 | try { |