@shisyamo4131/air-firebase-v2
v2.2.0
Published
Firestore base model with schema-aware class definition for FireModel
Downloads
62
Maintainers
Readme
��#� �F�i�r�e�M�o�d�e�l� �A�P�I� ��0�0�0�0�0�0
�
�
�
�F�i�r�e�s�t�o�r�e� ��0�0�0�[�n0_0�0n0�0�0�0�0�0�0 ��F�i�r�e�M�o�d�e�l�� �k0��Y0�0 �A�P�I� ��0�0�0�0�0�0g0Y00T.z�0�0�0�0�0�0�0�0�0�0n0��f�0�e,g���0uO�g0~0h0�0f0D0~0Y00
�
�
�
�-�-�-�
�
�
�
�#�#� �=��� ��0�0�0�[pe �/� �S�t�a�t�i�c� �P�r�o�p�e�r�t�i�e�s�
�
�
�
�#�#�#� ��a�d�a�p�t�e�r��
�
�
�
�F�i�r�e�s�t�o�r�e� �n0 �C�R�U�D� �_j���0�leQY0�0�0�0�0�0�00
�
�
�
�-� �F�i�r�e�s�t�o�r�e� �C�R�U�D� �a�d�a�p�t�e�r� �i�n�j�e�c�t�e�d� �i�n�t�o� �F�i�r�e�M�o�d�e�l�.�
�
�-� ��8^o0 ��s�e�t�A�d�a�p�t�e�r�(�)�� �g0-��[U0�0~0Y00
�
�
�
�#�#�#� ��c�o�n�f�i�g��
�
�
�
�F�i�r�e�M�o�d�e�l� �n0�R\O-��[0
�
�
�
�-� �C�o�n�f�i�g�u�r�a�t�i�o�n� �o�b�j�e�c�t� �f�o�r� �c�u�s�t�o�m�i�z�i�n�g� �F�i�r�e�M�o�d�e�l� �b�e�h�a�v�i�o�r�.�
�
�
�
�#�#�#� ��c�o�l�l�e�c�t�i�o�n�P�a�t�h��
�
�
�
��{t�[a�h0j0�0 �F�i�r�e�s�t�o�r�e� ��0�0�0�0�0�0n0�0�00
�
�
�
�-� �T�h�e� �b�a�s�e� �p�a�t�h� �o�f� �t�h�e� �F�i�r�e�s�t�o�r�e� �c�o�l�l�e�c�t�i�o�n� �m�a�n�a�g�e�d� �b�y� �t�h�i�s� �m�o�d�e�l�.�
�
�
�
�#�#�#� ��u�s�e�A�u�t�o�n�u�m�b�e�r��
�
�
�
���R�cju_j��n0 g�R�0�0�00
�
�
�
�-� �E�n�a�b�l�e� �a�u�t�o�m�a�t�i�c� �n�u�m�b�e�r�i�n�g� �u�s�i�n�g� �t�h�e� �A�u�t�o�n�u�m�b�e�r�s� �d�o�c�u�m�e�n�t�.�
�
�
�
�#�#�#� ��l�o�g�i�c�a�l�D�e�l�e�t�e��
�
�
�
�֊tJRd�_j��n0 g�R�0�0�00
�
�
�
�-� �I�f� �t�r�u�e�,� �d�o�c�u�m�e�n�t�s� �a�r�e� �a�r�c�h�i�v�e�d� �i�n�s�t�e�a�d� �o�f� �p�e�r�m�a�n�e�n�t�l�y� �d�e�l�e�t�e�d�.�
�
�
�
�#�#�#� ��c�l�a�s�s�P�r�o�p�s��
�
�
�
��0�0�0L0cd0�0�0�0�0�0n0�[��0�0�0�0�0�00
�
�
�
�-� �D�e�f�i�n�i�t�i�o�n� �o�f� �t�h�e� �p�r�o�p�e�r�t�i�e�s� �t�h�a�t� �t�h�i�s� �m�o�d�e�l� �m�a�n�a�g�e�s�.�
�
�-� �T�0�0�0�0�0o0 ��t�y�p�e��,� ��d�e�f�a�u�l�t��,� ��r�e�q�u�i�r�e�d��,� ��c�u�s�t�o�m�C�l�a�s�s��,� ��v�a�l�i�d�a�t�o�r�� ��0+T�0�0S0h0L0g0M0~0Y00
�
�
�
�#�#�#� ��h�a�s�M�a�n�y��
�
�
�
�S0n0�0�0�0L0��h0j0�0P[�0�0�0�0�0�0n0�[�M�R0
�
�
�
�-� �D�e�f�i�n�e�s� �c�h�i�l�d� �c�o�l�l�e�c�t�i�o�n�s� �t�h�a�t� �d�e�p�e�n�d� �o�n� �t�h�i�s� �m�o�d�e�l�'�s� �d�o�c�u�m�e�n�t�s�.�
�
�
�
�#�#�#� ��t�o�k�e�n�F�i�e�l�d�s��
�
�
�
��t�o�k�e�n�M�a�p�� ��0ubY0�0�[a��0�0�0�0�0n0�0�0�00
�
�
�
�-� �L�i�s�t� �o�f� �f�i�e�l�d�s� �u�s�e�d� �t�o� �g�e�n�e�r�a�t�e� �a� ��t�o�k�e�n�M�a�p�� �f�o�r� �N�-�G�r�a�m� �s�e�a�r�c�h�.�
�
�
�
�-�-�-�
�
�
�
�#�#� �=��� ��0�0�0�0�0�0�0�0�0�0�0 �/� �I�n�s�t�a�n�c�e� �P�r�o�p�e�r�t�i�e�s�
�
�
�
�#�#�#� ��d�o�c�I�d��,� ��u�i�d��
�
�
�
�F�i�r�e�s�t�o�r�e� �n0�0�0�0�0�0�0 �I�D�0J0�0s0�0�0�0�0j0i0n0��#� �I�D�0
�
�
�
�-� �D�o�c�u�m�e�n�t� �I�D� �a�n�d� �u�s�e�r�/�e�n�t�i�t�y� �i�d�e�n�t�i�f�i�e�r�.�
�
�
�
�#�#�#� ��c�r�e�a�t�e�d�A�t��,� ��u�p�d�a�t�e�d�A�t��
�
�
�
�\Ob�eBfh0�gB}�f�e�eBf0
�
�
�
�-� �C�r�e�a�t�i�o�n� �a�n�d� �l�a�s�t� �u�p�d�a�t�e� �t�i�m�e�s�t�a�m�p�s�.�
�
�
�
�#�#�#� ��l�i�s�t�e�n�e�r��
�
�
�
��0�0�0�0�0�0�0�0�0�0��pe0
�
�
�
�-� �F�i�r�e�s�t�o�r�e� �u�n�s�u�b�s�c�r�i�b�e� �f�u�n�c�t�i�o�n� �f�o�r� �d�o�c�u�m�e�n�t� �l�i�s�t�e�n�e�r�.�
�
�
�
�#�#�#� ��d�o�c�s��
�
�
�
��s�u�b�s�c�r�i�b�e�D�o�c�s�(�)�� �k0�0c0f0����U0�0f0D0�0�0�0�0�0�0�0n0M�R0
�
�
�
�-� �A�r�r�a�y� �o�f� �d�o�c�u�m�e�n�t�s� �b�e�i�n�g� �o�b�s�e�r�v�e�d� �i�n� �r�e�a�l�-�t�i�m�e�.�
�
�
�
�-�-�-�
�
�
�
�#�#� �=�'� ��0�0�0�0 �/� �M�e�t�h�o�d�s�
�
�
�
�_���Nh��vj0�0�0�0�0�N��h0㉬�0s�0}o0�0�0�0�0�0�0�Sgq �_�
�
�
�
�-� ��s�e�t�A�d�a�p�t�e�r�(�a�d�a�p�t�e�r�)����0�0�0�0�0�0-��[
�
�-� ��g�e�t�A�d�a�p�t�e�r�(�)����0�0�0�0�0�S�_
�
�-� ��s�e�t�C�o�n�f�i�g�(�c�o�n�f�i�g�)���-��[n0�leQ
�
�-� ��g�e�t�C�o�n�f�i�g�(�)���-��[n0�S�_
�
�-� ��g�e�t�C�o�l�l�e�c�t�i�o�n�P�a�t�h�(�p�r�e�f�i�x�)����0�0�0�0�0�0�0�NM0�0�0�S�_
�
�
�
�-� ��c�r�e�a�t�e�(�)����0�0�0�0�0�0\Ob
�
�-� ��f�e�t�c�h�(�)�� �/� ��f�e�t�c�h�D�o�c�(�)����S�_W0f0ꁫ�k0�S f �/� ��e�0�0�0�0�0�0ԏtS
�
�-� ��u�p�d�a�t�e�(�)���F�i�r�e�s�t�o�r�e� �k0�f�e
�
�-� ��d�e�l�e�t�e�(�)���JRd�~0_0o0�0�0�0�0�0
�
�-� ��r�e�s�t�o�r�e�(�)����0�0�0�0�0K0�0�_CQ
�
�
�
�-� ��s�u�b�s�c�r�i�b�e�(�)�� �/� ��u�n�s�u�b�s�c�r�i�b�e�(�)����0�0�0�0�0�0����n0���Y�0\Pbk
�
�-� ��s�u�b�s�c�r�i�b�e�D�o�c�s�(�)����0�0�0�0�0�0����
�
�-� ��c�r�e�a�t�e�T�o�k�e�n�M�a�p�Q�u�e�r�i�e�s�(�)���N�-�G�r�a�m� �i"}ag�N\Ob
�
�-� ��v�a�l�i�d�a�t�e�(�)����0�0�0�0�0�0�0�0�0�0
�
�
�
�-�-�-�
�
�
�
��gB}�f�e�e:� �2�0�2�5� �t^ �3� �g �2�6� ��e
�
�
