1.0.11 • Published 4 years ago

@primayer/activity-firestore v1.0.11

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
4 years ago

Activity Firestore

usage

import the firestore

import { ActivityFirestore } from "@primayer/activity-firestore";

init

ActivityFirestore.init(config);

add document

ActivityFirestore.add(id, { });

get documents

ActivityFirestore.getCollection(id, (docs) => {
   docs.forEach(doc => {
     
   });
});

get in datetime range

ActivityFirestore.getInRange(id, start, end, (docs) => {
   docs.forEach(doc => {
     
   });
});

watch for doc added

ActivityFirestore.watchCollection(id, (doc) => {

});

clear watch

ActivityFirestore.clearListeners();
ActivityFirestore.clearListener(index);

access the product/type enums for Activities

import { Products, Types } from "@primayer/activity-firestore";
1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago