@glissandoo/lib 1.61.0 → 1.61.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/functions/auth.js +2 -1
- package/functions/communication.js +2 -1
- package/functions/communicationComment.js +2 -1
- package/functions/customer.js +2 -1
- package/functions/customerGroup.js +2 -1
- package/functions/event.js +5 -2
- package/functions/eventPlayer.js +5 -2
- package/functions/eventRepertory.js +2 -1
- package/functions/federation.js +2 -1
- package/functions/federationPartnership.js +2 -1
- package/functions/group.js +2 -1
- package/functions/groupPlayer.js +2 -1
- package/functions/groupRepertory.js +2 -1
- package/functions/index.js +5 -2
- package/functions/jwt.js +2 -1
- package/functions/misc.js +2 -1
- package/functions/notification.js +2 -1
- package/functions/partner.js +2 -1
- package/functions/partnership.js +2 -1
- package/functions/partnershipGroup.js +2 -1
- package/functions/partnershipPlan.js +2 -1
- package/functions/regions.js +128 -124
- package/functions/subscription.js +2 -1
- package/functions/user.js +2 -1
- package/helpers/appScenes.js +5 -2
- package/helpers/audios.js +9 -5
- package/helpers/auth.js +9 -5
- package/helpers/badges.js +19 -10
- package/helpers/collections.js +5 -2
- package/helpers/countries.js +4 -1
- package/helpers/dlinks.js +5 -2
- package/helpers/errors.js +5 -2
- package/helpers/fileSections/index.js +8 -5
- package/helpers/fileSections/orders.js +16 -11
- package/helpers/glissandooAdmin.js +6 -2
- package/helpers/instruments/index.js +6 -3
- package/helpers/instruments/lists.js +19 -11
- package/helpers/musicStyles/index.js +36 -29
- package/helpers/musicStyles/orders.js +179 -174
- package/helpers/notifications/index.js +122 -119
- package/helpers/notifications/placeholders.js +26 -18
- package/helpers/objects.js +23 -15
- package/helpers/payments.js +8 -5
- package/helpers/plans.js +9 -6
- package/helpers/rates.js +6 -2
- package/helpers/reasons.js +21 -17
- package/helpers/slate.js +12 -5
- package/helpers/styles.js +4 -1
- package/helpers/ts-extras/array-includes.js +5 -1
- package/helpers/ts-extras/as-mutable.js +5 -1
- package/helpers/ts-extras/assert-error.js +5 -1
- package/helpers/ts-extras/index.js +33 -15
- package/helpers/ts-extras/is-defined.js +5 -1
- package/helpers/ts-extras/is-empty.js +5 -1
- package/helpers/ts-extras/is-finite.js +4 -1
- package/helpers/ts-extras/is-infinite.js +5 -1
- package/helpers/ts-extras/is-integer.js +4 -1
- package/helpers/ts-extras/is-present.js +5 -1
- package/helpers/ts-extras/is-safe-integer.js +4 -1
- package/helpers/ts-extras/object-entries.js +4 -1
- package/helpers/ts-extras/object-from-entries.js +4 -1
- package/helpers/ts-extras/object-has-own.js +5 -1
- package/helpers/ts-extras/object-keys.js +4 -1
- package/helpers/ts-extras/set-has.js +5 -1
- package/helpers/types.js +5 -2
- package/helpers/utils.d.ts +1 -0
- package/helpers/utils.js +23 -8
- package/lang/index.js +51 -42
- package/models/Communication/Comment/index.js +12 -5
- package/models/Communication/Comment/types.js +2 -1
- package/models/Communication/index.js +21 -15
- package/models/Communication/types.js +7 -4
- package/models/Counters/Group/Analytics/index.js +12 -5
- package/models/Counters/Group/Analytics/types.js +5 -2
- package/models/Counters/Group/index.js +8 -2
- package/models/Counters/Group/types.js +2 -1
- package/models/Counters/event.js +8 -2
- package/models/Counters/index.js +8 -2
- package/models/Counters/types.js +2 -1
- package/models/Customer/Group/index.js +14 -7
- package/models/Customer/Group/types.js +2 -1
- package/models/Customer/basic.js +10 -4
- package/models/Customer/index.js +11 -5
- package/models/Customer/types.js +5 -2
- package/models/Evento/Player/basic.js +11 -10
- package/models/Evento/Player/index.js +19 -12
- package/models/Evento/Player/types.js +7 -4
- package/models/Evento/Repertory/index.js +10 -3
- package/models/Evento/Repertory/types.js +2 -1
- package/models/Evento/basic.js +18 -12
- package/models/Evento/index.js +38 -32
- package/models/Evento/promoter.js +8 -2
- package/models/Evento/tiny.js +9 -9
- package/models/Evento/types.js +17 -14
- package/models/Federation/Partnership/index.js +10 -3
- package/models/Federation/Partnership/types.js +2 -1
- package/models/Federation/index.js +13 -7
- package/models/Federation/types.js +2 -1
- package/models/Group/Analytics/index.js +12 -5
- package/models/Group/Analytics/types.js +5 -2
- package/models/Group/Event/index.js +12 -6
- package/models/Group/Event/types.js +2 -1
- package/models/Group/Player/Event/index.js +18 -11
- package/models/Group/Player/Event/types.js +2 -1
- package/models/Group/Player/Log/index.js +8 -2
- package/models/Group/Player/Log/types.js +2 -1
- package/models/Group/Player/index.js +25 -18
- package/models/Group/Player/types.js +5 -2
- package/models/Group/Repertory/File/Section/index.js +16 -12
- package/models/Group/Repertory/File/Section/types.js +5 -2
- package/models/Group/Repertory/File/index.js +12 -11
- package/models/Group/Repertory/File/types.js +2 -1
- package/models/Group/Repertory/FilePath/index.js +15 -12
- package/models/Group/Repertory/index.js +32 -25
- package/models/Group/Repertory/types.js +5 -2
- package/models/Group/StageTemplate/index.js +8 -2
- package/models/Group/StageTemplate/types.js +2 -1
- package/models/Group/basic.js +11 -5
- package/models/Group/index.js +47 -41
- package/models/Group/types.js +17 -14
- package/models/Instrument/group.js +11 -6
- package/models/Instrument/index.js +9 -8
- package/models/Metrics/index.js +16 -10
- package/models/Metrics/types.js +2 -1
- package/models/Model/index.js +6 -7
- package/models/Model/lang.js +10 -5
- package/models/MusicStyle/index.js +10 -9
- package/models/Notification/index.js +8 -2
- package/models/Notification/types.js +5 -2
- package/models/Partner/basic.js +12 -6
- package/models/Partner/index.js +10 -4
- package/models/Partner/tiny.js +8 -2
- package/models/Partner/types.js +5 -2
- package/models/Partnership/Group/index.js +12 -5
- package/models/Partnership/Group/types.js +2 -1
- package/models/Partnership/Partner/Subscription/index.js +15 -8
- package/models/Partnership/Partner/Subscription/types.js +5 -2
- package/models/Partnership/Partner/index.js +10 -3
- package/models/Partnership/Partner/types.js +2 -1
- package/models/Partnership/Payment/index.js +8 -2
- package/models/Partnership/Payment/types.js +2 -1
- package/models/Partnership/Plan/basic.js +18 -12
- package/models/Partnership/Plan/index.js +10 -3
- package/models/Partnership/Plan/types.js +5 -2
- package/models/Partnership/basic.js +10 -4
- package/models/Partnership/index.js +11 -5
- package/models/Partnership/types.js +7 -4
- package/models/Payment/basic.js +13 -7
- package/models/Payment/index.js +8 -2
- package/models/Payment/types.js +7 -4
- package/models/Player/basic.js +10 -4
- package/models/Player/types.js +2 -1
- package/models/Repertory/basic.js +8 -2
- package/models/Repertory/types.js +2 -1
- package/models/User/Group/index.js +15 -8
- package/models/User/Group/types.js +2 -1
- package/models/User/Notification/index.js +22 -16
- package/models/User/Notification/types.js +2 -1
- package/models/User/basic.js +10 -4
- package/models/User/index.js +24 -18
- package/models/User/types.js +15 -12
- package/models/WebhookEvent/index.js +8 -2
- package/models/WebhookEvent/types.js +5 -2
- package/package.json +1 -1
- package/types/firestore.js +5 -2
- package/types/messagebirdChatWidget.js +2 -1
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const lodash_1 = require("lodash");
|
|
7
|
+
const placeholders_1 = require("../../../helpers/notifications/placeholders");
|
|
8
|
+
const utils_1 = require("../../../helpers/utils");
|
|
9
|
+
const lang_1 = require("../../../lang");
|
|
10
|
+
const Model_1 = __importDefault(require("../../Model"));
|
|
11
|
+
class Notification extends Model_1.default {
|
|
12
|
+
constructor(doc, lang = lang_1.defaultLocale) {
|
|
8
13
|
super(doc);
|
|
14
|
+
this.getTranslationByAction = (key) => {
|
|
15
|
+
const translation = (0, lang_1.getTranslation)(`${this.action}.${key}`, this.lang);
|
|
16
|
+
return !translation
|
|
17
|
+
? this.action
|
|
18
|
+
: (0, placeholders_1.replaceKeysNotification)(translation, this.meta, this.lang);
|
|
19
|
+
};
|
|
9
20
|
this.lang = lang;
|
|
10
21
|
}
|
|
11
|
-
getTranslationByAction = (key) => {
|
|
12
|
-
const translation = getTranslation(`${this.action}.${key}`, this.lang);
|
|
13
|
-
return !translation
|
|
14
|
-
? this.action
|
|
15
|
-
: replaceKeysNotification(translation, this.meta, this.lang);
|
|
16
|
-
};
|
|
17
22
|
// Uso para consultas
|
|
18
23
|
get references() {
|
|
19
24
|
return this.data.references || [];
|
|
20
25
|
}
|
|
21
26
|
get userId() {
|
|
22
|
-
return this.ref.path.split('/')
|
|
27
|
+
return (0, utils_1.at)(this.ref.path.split('/'), 1) || '';
|
|
23
28
|
}
|
|
24
29
|
get photoURL() {
|
|
25
30
|
return this.data.photoURL;
|
|
@@ -31,7 +36,7 @@ export default class Notification extends Model {
|
|
|
31
36
|
return this.data.action;
|
|
32
37
|
}
|
|
33
38
|
get cleanPhotoURL() {
|
|
34
|
-
return this.isAvatar ? replaceVarsBrackets(this.photoURL, this.meta) : this.photoURL;
|
|
39
|
+
return this.isAvatar ? (0, placeholders_1.replaceVarsBrackets)(this.photoURL, this.meta) : this.photoURL;
|
|
35
40
|
}
|
|
36
41
|
get isAvatar() {
|
|
37
42
|
return this.photoURL.slice(0, 1) === '[' && this.photoURL.slice(-1) === ']';
|
|
@@ -41,7 +46,7 @@ export default class Notification extends Model {
|
|
|
41
46
|
return null;
|
|
42
47
|
}
|
|
43
48
|
const params = this.photoURL.substr(1).slice(0, -1).split('.');
|
|
44
|
-
return get(this.meta, [params[0], params[1]]) || null;
|
|
49
|
+
return (0, lodash_1.get)(this.meta, [params[0], params[1]]) || null;
|
|
45
50
|
}
|
|
46
51
|
get title() {
|
|
47
52
|
return this.getTranslationByAction('title');
|
|
@@ -74,3 +79,4 @@ export default class Notification extends Model {
|
|
|
74
79
|
return this.readedAt !== null;
|
|
75
80
|
}
|
|
76
81
|
}
|
|
82
|
+
exports.default = Notification;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/User/basic.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const lang_1 = require("../../lang");
|
|
7
|
+
const lang_2 = __importDefault(require("../Model/lang"));
|
|
8
|
+
class UserBasic extends lang_2.default {
|
|
9
|
+
constructor(doc, lang = lang_1.defaultLocale) {
|
|
5
10
|
super(doc, lang);
|
|
6
11
|
}
|
|
7
12
|
get tinyInfo() {
|
|
@@ -27,3 +32,4 @@ export default class UserBasic extends ModelWithLang {
|
|
|
27
32
|
return this.data.photoURL;
|
|
28
33
|
}
|
|
29
34
|
}
|
|
35
|
+
exports.default = UserBasic;
|
package/models/User/index.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const lodash_1 = require("lodash");
|
|
7
|
+
const collections_1 = require("../../helpers/collections");
|
|
8
|
+
const glissandooAdmin_1 = require("../../helpers/glissandooAdmin");
|
|
9
|
+
const objects_1 = require("../../helpers/objects");
|
|
10
|
+
const utils_1 = require("../../helpers/utils");
|
|
11
|
+
const lang_1 = require("../../lang");
|
|
12
|
+
const basic_1 = __importDefault(require("./basic"));
|
|
13
|
+
const types_1 = require("./types");
|
|
14
|
+
class User extends basic_1.default {
|
|
10
15
|
constructor(doc) {
|
|
11
|
-
super(doc, doc.get('language') || defaultLocale);
|
|
16
|
+
super(doc, doc.get('language') || lang_1.defaultLocale);
|
|
12
17
|
}
|
|
13
18
|
get name() {
|
|
14
19
|
return this.data.name;
|
|
@@ -29,13 +34,13 @@ export default class User extends UserBasic {
|
|
|
29
34
|
return this.data.email;
|
|
30
35
|
}
|
|
31
36
|
get hasRegistrationComplete() {
|
|
32
|
-
return isString(this.displayName) && isString(this.photoURL) && isString(this.email);
|
|
37
|
+
return (0, lodash_1.isString)(this.displayName) && (0, lodash_1.isString)(this.photoURL) && (0, lodash_1.isString)(this.email);
|
|
33
38
|
}
|
|
34
39
|
get role() {
|
|
35
40
|
return this.data.role;
|
|
36
41
|
}
|
|
37
42
|
get isSuperAdmin() {
|
|
38
|
-
return this.role === UserRole.SuperAdmin;
|
|
43
|
+
return this.role === types_1.UserRole.SuperAdmin;
|
|
39
44
|
}
|
|
40
45
|
get description() {
|
|
41
46
|
return this.data.description || null;
|
|
@@ -56,7 +61,7 @@ export default class User extends UserBasic {
|
|
|
56
61
|
return this.data.notifications || 0;
|
|
57
62
|
}
|
|
58
63
|
get language() {
|
|
59
|
-
return this.data.language || defaultLocale;
|
|
64
|
+
return this.data.language || lang_1.defaultLocale;
|
|
60
65
|
}
|
|
61
66
|
get createdAt() {
|
|
62
67
|
return this.data.createdAt;
|
|
@@ -80,10 +85,10 @@ export default class User extends UserBasic {
|
|
|
80
85
|
return this.data.birthDate;
|
|
81
86
|
}
|
|
82
87
|
get notificationSettings() {
|
|
83
|
-
return this.data.notificationSettings || enumToObj(UserNotificationSettings, true);
|
|
88
|
+
return this.data.notificationSettings || (0, utils_1.enumToObj)(types_1.UserNotificationSettings, true);
|
|
84
89
|
}
|
|
85
90
|
get emailSettings() {
|
|
86
|
-
return this.data.emailSettings || enumToObj(UserEmailSettings, true);
|
|
91
|
+
return this.data.emailSettings || (0, utils_1.enumToObj)(types_1.UserEmailSettings, true);
|
|
87
92
|
}
|
|
88
93
|
get isActive() {
|
|
89
94
|
return !this.isDeleted && this.hasRegistrationComplete;
|
|
@@ -92,7 +97,7 @@ export default class User extends UserBasic {
|
|
|
92
97
|
return this.data.deletedAt || null;
|
|
93
98
|
}
|
|
94
99
|
get isDeleted() {
|
|
95
|
-
return !this.exists || !isNull(this.deletedAt);
|
|
100
|
+
return !this.exists || !(0, lodash_1.isNull)(this.deletedAt);
|
|
96
101
|
}
|
|
97
102
|
get appConfig() {
|
|
98
103
|
return this.data.appConfig || {};
|
|
@@ -113,7 +118,7 @@ export default class User extends UserBasic {
|
|
|
113
118
|
return this.data.lastWebLoginAt || null;
|
|
114
119
|
}
|
|
115
120
|
get glissandooAdminUrl() {
|
|
116
|
-
return getGlissandooAdminEntityURL(CollectionNames.User, this.id);
|
|
121
|
+
return (0, glissandooAdmin_1.getGlissandooAdminEntityURL)(collections_1.CollectionNames.User, this.id);
|
|
117
122
|
}
|
|
118
123
|
get customerIds() {
|
|
119
124
|
return this.data.customerIds || [];
|
|
@@ -122,6 +127,7 @@ export default class User extends UserBasic {
|
|
|
122
127
|
return this.data.devices || {};
|
|
123
128
|
}
|
|
124
129
|
get devicesList() {
|
|
125
|
-
return mapToArray(this.devices);
|
|
130
|
+
return (0, objects_1.mapToArray)(this.devices);
|
|
126
131
|
}
|
|
127
132
|
}
|
|
133
|
+
exports.default = User;
|
package/models/User/types.js
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserEventsFilter = exports.UserEmailSettings = exports.UserNotificationSettings = exports.UserAppConfig = exports.UserRegisterVia = exports.UserRole = void 0;
|
|
4
|
+
var UserRole;
|
|
2
5
|
(function (UserRole) {
|
|
3
6
|
UserRole["SuperAdmin"] = "admin";
|
|
4
7
|
UserRole["User"] = "user";
|
|
5
|
-
})(UserRole || (UserRole = {}));
|
|
6
|
-
|
|
8
|
+
})(UserRole = exports.UserRole || (exports.UserRole = {}));
|
|
9
|
+
var UserRegisterVia;
|
|
7
10
|
(function (UserRegisterVia) {
|
|
8
11
|
UserRegisterVia["Web"] = "web";
|
|
9
12
|
UserRegisterVia["App"] = "app";
|
|
10
|
-
})(UserRegisterVia || (UserRegisterVia = {}));
|
|
11
|
-
|
|
13
|
+
})(UserRegisterVia = exports.UserRegisterVia || (exports.UserRegisterVia = {}));
|
|
14
|
+
var UserAppConfig;
|
|
12
15
|
(function (UserAppConfig) {
|
|
13
16
|
UserAppConfig["DefaultGroupId"] = "default_group_id";
|
|
14
17
|
UserAppConfig["DefaultEventsFilter"] = "default_events_filter";
|
|
15
|
-
})(UserAppConfig || (UserAppConfig = {}));
|
|
16
|
-
|
|
18
|
+
})(UserAppConfig = exports.UserAppConfig || (exports.UserAppConfig = {}));
|
|
19
|
+
var UserNotificationSettings;
|
|
17
20
|
(function (UserNotificationSettings) {
|
|
18
21
|
UserNotificationSettings["AttendanceConfirmed"] = "enabled_attendance_confirmed";
|
|
19
22
|
UserNotificationSettings["AttendanceDeclined"] = "enabled_attendance_declined";
|
|
20
23
|
UserNotificationSettings["InterestConfirmed"] = "enabled_interest_confirmed";
|
|
21
24
|
UserNotificationSettings["InterestLost"] = "enabled_interest_lost";
|
|
22
|
-
})(UserNotificationSettings || (UserNotificationSettings = {}));
|
|
23
|
-
|
|
25
|
+
})(UserNotificationSettings = exports.UserNotificationSettings || (exports.UserNotificationSettings = {}));
|
|
26
|
+
var UserEmailSettings;
|
|
24
27
|
(function (UserEmailSettings) {
|
|
25
28
|
UserEmailSettings["ReminderBiweeklyEvents"] = "enabled_reminder_biweekly_events";
|
|
26
|
-
})(UserEmailSettings || (UserEmailSettings = {}));
|
|
27
|
-
|
|
29
|
+
})(UserEmailSettings = exports.UserEmailSettings || (exports.UserEmailSettings = {}));
|
|
30
|
+
var UserEventsFilter;
|
|
28
31
|
(function (UserEventsFilter) {
|
|
29
32
|
UserEventsFilter[UserEventsFilter["Month"] = 1] = "Month";
|
|
30
33
|
UserEventsFilter[UserEventsFilter["Trimonth"] = 3] = "Trimonth";
|
|
31
34
|
UserEventsFilter[UserEventsFilter["SemiAnnual"] = 6] = "SemiAnnual";
|
|
32
35
|
UserEventsFilter[UserEventsFilter["Annual"] = 12] = "Annual";
|
|
33
36
|
UserEventsFilter[UserEventsFilter["Always"] = 1000] = "Always";
|
|
34
|
-
})(UserEventsFilter || (UserEventsFilter = {}));
|
|
37
|
+
})(UserEventsFilter = exports.UserEventsFilter || (exports.UserEventsFilter = {}));
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Model_1 = __importDefault(require("../Model"));
|
|
7
|
+
class WebhookEvent extends Model_1.default {
|
|
3
8
|
constructor(doc) {
|
|
4
9
|
super(doc);
|
|
5
10
|
}
|
|
@@ -16,3 +21,4 @@ export default class WebhookEvent extends Model {
|
|
|
16
21
|
return this.data.createdAt;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
24
|
+
exports.default = WebhookEvent;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookEventSource = void 0;
|
|
4
|
+
var WebhookEventSource;
|
|
2
5
|
(function (WebhookEventSource) {
|
|
3
6
|
WebhookEventSource["stripe"] = "stripe";
|
|
4
7
|
WebhookEventSource["messageBird"] = "messageBird";
|
|
5
8
|
WebhookEventSource["gocardless"] = "gocardless";
|
|
6
|
-
})(WebhookEventSource || (WebhookEventSource = {}));
|
|
9
|
+
})(WebhookEventSource = exports.WebhookEventSource || (exports.WebhookEventSource = {}));
|
package/package.json
CHANGED
package/types/firestore.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/*!
|
|
2
3
|
* Copyright 2020 Google LLC
|
|
3
4
|
*
|
|
@@ -13,6 +14,8 @@
|
|
|
13
14
|
* See the License for the specific language governing permissions and
|
|
14
15
|
* limitations under the License.
|
|
15
16
|
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GrpcStatus = void 0;
|
|
16
19
|
/**
|
|
17
20
|
* The v1beta1 Veneer client. This client provides access to to the underlying
|
|
18
21
|
* Firestore v1beta1 RPCs.
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
/**
|
|
33
36
|
* Status codes returned by Firestore's gRPC calls.
|
|
34
37
|
*/
|
|
35
|
-
|
|
38
|
+
var GrpcStatus;
|
|
36
39
|
(function (GrpcStatus) {
|
|
37
40
|
GrpcStatus[GrpcStatus["OK"] = 0] = "OK";
|
|
38
41
|
GrpcStatus[GrpcStatus["CANCELLED"] = 1] = "CANCELLED";
|
|
@@ -51,4 +54,4 @@ export var GrpcStatus;
|
|
|
51
54
|
GrpcStatus[GrpcStatus["UNAVAILABLE"] = 14] = "UNAVAILABLE";
|
|
52
55
|
GrpcStatus[GrpcStatus["DATA_LOSS"] = 15] = "DATA_LOSS";
|
|
53
56
|
GrpcStatus[GrpcStatus["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED";
|
|
54
|
-
})(GrpcStatus || (GrpcStatus = {}));
|
|
57
|
+
})(GrpcStatus = exports.GrpcStatus || (exports.GrpcStatus = {}));
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|