@doctocar/tooling 0.3.1-37 → 0.3.1-40
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/dist/firebase/firestore/types/configs/FirestoreNotificationEventsPublicConfigDocument.type.d.ts +2 -1
- package/dist/firebase/firestore/utils/stubs/configs/firestoreNotificationEventsPublicConfigDocumentStub.js +22 -0
- package/dist/notifications/enums/NotificationEventCategory.d.ts +4 -0
- package/dist/notifications/enums/NotificationEventCategory.js +8 -0
- package/dist/notifications/enums/index.d.ts +1 -0
- package/dist/notifications/enums/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { NotificationChannels, NotificationEvent } from "../../../../notifications";
|
|
1
|
+
import type { NotificationChannels, NotificationEvent, NotificationEventCategory } from "../../../../notifications";
|
|
2
2
|
import type { FirestoreConfigMetadata } from "./FirestoreConfigMetadata.type";
|
|
3
3
|
export type FirestoreNotificationEventsPublicConfigDocument = {
|
|
4
4
|
metadata: FirestoreConfigMetadata;
|
|
5
5
|
data: {
|
|
6
6
|
events: Record<NotificationEvent, {
|
|
7
7
|
enabled: boolean;
|
|
8
|
+
category: NotificationEventCategory;
|
|
8
9
|
userConfigurableChannels: Partial<NotificationChannels>;
|
|
9
10
|
defaultChannels: NotificationChannels;
|
|
10
11
|
deliveryRules: {
|
|
@@ -16,6 +16,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
16
16
|
// Customer
|
|
17
17
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_UPCOMING_REMINDER]: {
|
|
18
18
|
enabled: true,
|
|
19
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
19
20
|
userConfigurableChannels: {},
|
|
20
21
|
defaultChannels: {
|
|
21
22
|
email: false,
|
|
@@ -26,6 +27,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
26
27
|
},
|
|
27
28
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_STARTED]: {
|
|
28
29
|
enabled: true,
|
|
30
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
29
31
|
userConfigurableChannels: {},
|
|
30
32
|
defaultChannels: {
|
|
31
33
|
email: false,
|
|
@@ -36,6 +38,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
36
38
|
},
|
|
37
39
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_COMPLETED_BY_PROFESSIONAL]: {
|
|
38
40
|
enabled: true,
|
|
41
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
39
42
|
userConfigurableChannels: {},
|
|
40
43
|
defaultChannels: {
|
|
41
44
|
email: false,
|
|
@@ -46,6 +49,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
46
49
|
},
|
|
47
50
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_CANCELED]: {
|
|
48
51
|
enabled: true,
|
|
52
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
49
53
|
userConfigurableChannels: {},
|
|
50
54
|
defaultChannels: {
|
|
51
55
|
email: false,
|
|
@@ -56,6 +60,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
56
60
|
},
|
|
57
61
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_NEW_MESSAGE_RECEIVED]: {
|
|
58
62
|
enabled: true,
|
|
63
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
59
64
|
userConfigurableChannels: {},
|
|
60
65
|
defaultChannels: {
|
|
61
66
|
email: false,
|
|
@@ -66,6 +71,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
66
71
|
},
|
|
67
72
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_CONFIRMED]: {
|
|
68
73
|
enabled: true,
|
|
74
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
69
75
|
userConfigurableChannels: {},
|
|
70
76
|
defaultChannels: {
|
|
71
77
|
email: false,
|
|
@@ -76,6 +82,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
76
82
|
},
|
|
77
83
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_REVIEW_REQUESTED]: {
|
|
78
84
|
enabled: true,
|
|
85
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
79
86
|
userConfigurableChannels: {},
|
|
80
87
|
defaultChannels: {
|
|
81
88
|
email: false,
|
|
@@ -86,6 +93,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
86
93
|
},
|
|
87
94
|
[notifications_1.CustomerNotificationEventType.CUSTOMER_ORDER_ISSUE_REPORTED_CONFIRMATION]: {
|
|
88
95
|
enabled: true,
|
|
96
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
89
97
|
userConfigurableChannels: {},
|
|
90
98
|
defaultChannels: {
|
|
91
99
|
email: false,
|
|
@@ -97,6 +105,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
97
105
|
// Professional
|
|
98
106
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_UPCOMING_REMINDER]: {
|
|
99
107
|
enabled: true,
|
|
108
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
100
109
|
userConfigurableChannels: {},
|
|
101
110
|
defaultChannels: {
|
|
102
111
|
email: false,
|
|
@@ -107,6 +116,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
107
116
|
},
|
|
108
117
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_CANCELED]: {
|
|
109
118
|
enabled: true,
|
|
119
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
110
120
|
userConfigurableChannels: {},
|
|
111
121
|
defaultChannels: {
|
|
112
122
|
email: false,
|
|
@@ -117,6 +127,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
117
127
|
},
|
|
118
128
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_NEW_MESSAGE_RECEIVED]: {
|
|
119
129
|
enabled: true,
|
|
130
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
120
131
|
userConfigurableChannels: {},
|
|
121
132
|
defaultChannels: {
|
|
122
133
|
email: false,
|
|
@@ -127,6 +138,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
127
138
|
},
|
|
128
139
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_NEW_ORDER_RECEIVED]: {
|
|
129
140
|
enabled: true,
|
|
141
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
130
142
|
userConfigurableChannels: {},
|
|
131
143
|
defaultChannels: {
|
|
132
144
|
email: false,
|
|
@@ -137,6 +149,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
137
149
|
},
|
|
138
150
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_COMPLETED_BY_PROFESSIONAL]: {
|
|
139
151
|
enabled: true,
|
|
152
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
140
153
|
userConfigurableChannels: {},
|
|
141
154
|
defaultChannels: {
|
|
142
155
|
email: false,
|
|
@@ -147,6 +160,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
147
160
|
},
|
|
148
161
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_ORDER_ISSUE_REPORTED_CONFIRMATION]: {
|
|
149
162
|
enabled: true,
|
|
163
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
150
164
|
userConfigurableChannels: {},
|
|
151
165
|
defaultChannels: {
|
|
152
166
|
email: false,
|
|
@@ -157,6 +171,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
157
171
|
},
|
|
158
172
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_WELCOME]: {
|
|
159
173
|
enabled: true,
|
|
174
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
160
175
|
userConfigurableChannels: {},
|
|
161
176
|
defaultChannels: {
|
|
162
177
|
email: false,
|
|
@@ -167,6 +182,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
167
182
|
},
|
|
168
183
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_IS_NOW_BOOKABLE]: {
|
|
169
184
|
enabled: true,
|
|
185
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
170
186
|
userConfigurableChannels: {},
|
|
171
187
|
defaultChannels: {
|
|
172
188
|
email: false,
|
|
@@ -177,6 +193,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
177
193
|
},
|
|
178
194
|
[notifications_1.ProfessionalNotificationEventType.PROFESSIONAL_IS_NOT_BOOKABLE_ANYMORE]: {
|
|
179
195
|
enabled: true,
|
|
196
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
180
197
|
userConfigurableChannels: {},
|
|
181
198
|
defaultChannels: {
|
|
182
199
|
email: false,
|
|
@@ -188,6 +205,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
188
205
|
// Entity
|
|
189
206
|
[notifications_1.EntityNotificationEventType.SERVICE_PROVIDER_ENTITY_ONBOARDING_COMPLETED]: {
|
|
190
207
|
enabled: true,
|
|
208
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
191
209
|
userConfigurableChannels: {},
|
|
192
210
|
defaultChannels: {
|
|
193
211
|
email: false,
|
|
@@ -198,6 +216,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
198
216
|
},
|
|
199
217
|
[notifications_1.EntityNotificationEventType.ENTITY_VAT_VERIFICATION_FAILED]: {
|
|
200
218
|
enabled: true,
|
|
219
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
201
220
|
userConfigurableChannels: {},
|
|
202
221
|
defaultChannels: {
|
|
203
222
|
email: false,
|
|
@@ -208,6 +227,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
208
227
|
},
|
|
209
228
|
[notifications_1.EntityNotificationEventType.ENTITY_VAT_VERIFICATION_SUCCEEDED]: {
|
|
210
229
|
enabled: true,
|
|
230
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
211
231
|
userConfigurableChannels: {},
|
|
212
232
|
defaultChannels: {
|
|
213
233
|
email: false,
|
|
@@ -218,6 +238,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
218
238
|
},
|
|
219
239
|
[notifications_1.EntityNotificationEventType.SERVICE_PROVIDER_ENTITY_IS_NOT_COMPLIANT_ANYMORE]: {
|
|
220
240
|
enabled: true,
|
|
241
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
221
242
|
userConfigurableChannels: {},
|
|
222
243
|
defaultChannels: {
|
|
223
244
|
email: false,
|
|
@@ -228,6 +249,7 @@ function firestoreNotificationEventsPublicConfigDocumentStub(overwrite = {}) {
|
|
|
228
249
|
},
|
|
229
250
|
[notifications_1.EntityNotificationEventType.SERVICE_PROVIDER_ENTITY_IS_NOW_COMPLIANT]: {
|
|
230
251
|
enabled: true,
|
|
252
|
+
category: notifications_1.NotificationEventCategory.TRANSACTIONAL,
|
|
231
253
|
userConfigurableChannels: {},
|
|
232
254
|
defaultChannels: {
|
|
233
255
|
email: false,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationEventCategory = void 0;
|
|
4
|
+
var NotificationEventCategory;
|
|
5
|
+
(function (NotificationEventCategory) {
|
|
6
|
+
NotificationEventCategory["TRANSACTIONAL"] = "TRANSACTIONAL";
|
|
7
|
+
NotificationEventCategory["MARKETING"] = "MARKETING";
|
|
8
|
+
})(NotificationEventCategory || (exports.NotificationEventCategory = NotificationEventCategory = {}));
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CustomerNotificationEventType"), exports);
|
|
18
18
|
__exportStar(require("./ProfessionalNotificationEventType"), exports);
|
|
19
19
|
__exportStar(require("./EntityNotificationEventType"), exports);
|
|
20
|
+
__exportStar(require("./NotificationEventCategory"), exports);
|