Skip to content

Commit

Permalink
Bug fix: Firebase moved to Yarn, TsLint, disable build on install (#14)
Browse files Browse the repository at this point in the history
* deleted status

* Version update

* include build

* status and lint update
  • Loading branch information
ernysans authored May 11, 2020
1 parent 0a9c88c commit 1274d5a
Show file tree
Hide file tree
Showing 53 changed files with 3,328 additions and 114 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ build
build/*/*
build/Release
dist/*
lib
lib/*/*
#lib
#lib/*/*

# Dependency directories
node_modules
Expand Down
8 changes: 8 additions & 0 deletions lib/api-request.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const _default: (apiName: string, path: string, body?: any) => Promise<any>;
/**
* Call firebase project base API
* @param apiName
* @param path
* @param body
*/
export default _default;
54 changes: 54 additions & 0 deletions lib/api-request.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/api-request.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions lib/backup.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
declare const _default: (data: {
collection: string;
dataset: string;
del?: boolean;
items: any;
table: string;
updateKey?: string;
}) => Promise<any>;
/**
* Custom backup from Firestore to BigQuery
*
* @param data
* if true, deletes document instead of changing backup to true on document
*/
export default _default;
73 changes: 73 additions & 0 deletions lib/backup.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/backup.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions lib/check-number.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare const _default: (phoneNumber: string | number, isMobile?: boolean) => Promise<string>;
/**
* Check if number is valid and format
*
* @param {string} phoneNumber
* @param {boolean} isMobile
* @returns {string}
*/
export default _default;
46 changes: 46 additions & 0 deletions lib/check-number.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/check-number.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions lib/cleaner.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare const _default: (filter: {
column?: string;
dataset: string;
table: string;
timestamp: string;
}) => Promise<any[]>;
/**
* Big Query Clean Database
* @param filter
*/
export default _default;
56 changes: 56 additions & 0 deletions lib/cleaner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/cleaner.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions lib/firestore.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* Exist Document
* @param collectionId
* @param documentId
*/
export declare const existDocument: (collectionId: string, documentId: string) => Promise<boolean>;
/**
* Get Document
* @param collectionId
* @param documentId
*/
export declare const getDocument: (collectionId: string, documentId: string) => Promise<any>;
/**
* Get services list
* @param {any} options
*/
export declare const getList: (options: {
collectionId: string;
fullResponse?: boolean;
limit?: number;
orderBy?: {
direction: FirebaseFirestore.OrderByDirection;
key: string;
};
where?: {
field: string | FirebaseFirestore.FieldPath;
filter: FirebaseFirestore.WhereFilterOp;
value: any;
}[];
}) => Promise<any>;
Loading

0 comments on commit 1274d5a

Please sign in to comment.