1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = exports.methodsToAddFromFirestore = exports.defaultConfig = exports.actionTypes = exports.actionsPrefix = void 0;
|
7 | var actionsPrefix = '@@reduxFirestore';
|
8 | exports.actionsPrefix = actionsPrefix;
|
9 | var actionTypes = {
|
10 | START: "".concat(actionsPrefix, "/START"),
|
11 | ERROR: "".concat(actionsPrefix, "/ERROR"),
|
12 | CLEAR_DATA: "".concat(actionsPrefix, "/CLEAR_DATA"),
|
13 | CLEAR_ERROR: "".concat(actionsPrefix, "/CLEAR_ERROR"),
|
14 | CLEAR_ERRORS: "".concat(actionsPrefix, "/CLEAR_ERRORS"),
|
15 | SET_LISTENER: "".concat(actionsPrefix, "/SET_LISTENER"),
|
16 | UNSET_LISTENER: "".concat(actionsPrefix, "/UNSET_LISTENER"),
|
17 | GET_REQUEST: "".concat(actionsPrefix, "/GET_REQUEST"),
|
18 | GET_SUCCESS: "".concat(actionsPrefix, "/GET_SUCCESS"),
|
19 | GET_FAILURE: "".concat(actionsPrefix, "/GET_FAILURE"),
|
20 | SET_REQUEST: "".concat(actionsPrefix, "/SET_REQUEST"),
|
21 | SET_SUCCESS: "".concat(actionsPrefix, "/SET_SUCCESS"),
|
22 | SET_FAILURE: "".concat(actionsPrefix, "/SET_FAILURE"),
|
23 | ADD_REQUEST: "".concat(actionsPrefix, "/ADD_REQUEST"),
|
24 | ADD_SUCCESS: "".concat(actionsPrefix, "/ADD_SUCCESS"),
|
25 | ADD_FAILURE: "".concat(actionsPrefix, "/ADD_FAILURE"),
|
26 | UPDATE_REQUEST: "".concat(actionsPrefix, "/UPDATE_REQUEST"),
|
27 | UPDATE_SUCCESS: "".concat(actionsPrefix, "/UPDATE_SUCCESS"),
|
28 | UPDATE_FAILURE: "".concat(actionsPrefix, "/UPDATE_FAILURE"),
|
29 | DELETE_REQUEST: "".concat(actionsPrefix, "/DELETE_REQUEST"),
|
30 | DELETE_SUCCESS: "".concat(actionsPrefix, "/DELETE_SUCCESS"),
|
31 | DELETE_FAILURE: "".concat(actionsPrefix, "/DELETE_FAILURE"),
|
32 | ATTACH_LISTENER: "".concat(actionsPrefix, "/ATTACH_LISTENER"),
|
33 | LISTENER_RESPONSE: "".concat(actionsPrefix, "/LISTENER_RESPONSE"),
|
34 | LISTENER_ERROR: "".concat(actionsPrefix, "/LISTENER_ERROR"),
|
35 | ON_SNAPSHOT_REQUEST: "".concat(actionsPrefix, "/ON_SNAPSHOT_REQUEST"),
|
36 | ON_SNAPSHOT_SUCCESS: "".concat(actionsPrefix, "/ON_SNAPSHOT_SUCCESS"),
|
37 | ON_SNAPSHOT_FAILURE: "".concat(actionsPrefix, "/ON_SNAPSHOT_FAILURE"),
|
38 | DOCUMENT_ADDED: "".concat(actionsPrefix, "/DOCUMENT_ADDED"),
|
39 | DOCUMENT_MODIFIED: "".concat(actionsPrefix, "/DOCUMENT_MODIFIED"),
|
40 | DOCUMENT_REMOVED: "".concat(actionsPrefix, "/DOCUMENT_REMOVED"),
|
41 | TRANSACTION_START: "".concat(actionsPrefix, "/TRANSACTION_START"),
|
42 | TRANSACTION_SUCCESS: "".concat(actionsPrefix, "/TRANSACTION_SUCCESS"),
|
43 | TRANSACTION_FAILURE: "".concat(actionsPrefix, "/TRANSACTION_FAILURE")
|
44 | };
|
45 | exports.actionTypes = actionTypes;
|
46 | var defaultConfig = {
|
47 | logListenerError: true,
|
48 | enhancerNamespace: 'firestore',
|
49 | helpersNamespace: null,
|
50 | allowMultipleListeners: false,
|
51 | preserveOnDelete: null,
|
52 | preserveOnListenerError: null,
|
53 | onAttemptCollectionDelete: null,
|
54 | mergeOrdered: true,
|
55 | mergeOrderedDocUpdates: true,
|
56 | mergeOrderedCollectionUpdates: true
|
57 | };
|
58 | exports.defaultConfig = defaultConfig;
|
59 | var methodsToAddFromFirestore = ['collection', 'collectionGroup', 'configureClient', 'doc', 'batch', 'disableNetwork', 'enableNetwork', 'enablePersistence', 'ensureClientConfigured', 'setLogLevel', 'settings'];
|
60 | exports.methodsToAddFromFirestore = methodsToAddFromFirestore;
|
61 | var _default = {
|
62 | actionsPrefix: actionsPrefix,
|
63 | actionTypes: actionTypes,
|
64 | defaultConfig: defaultConfig
|
65 | };
|
66 | exports.default = _default; |
\ | No newline at end of file |