c2-climbing-x 1.0.103 → 1.0.105
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.
|
@@ -8,6 +8,7 @@ export declare enum AdminComunicationStatus {
|
|
|
8
8
|
}
|
|
9
9
|
export interface IAdminComunication {
|
|
10
10
|
_id: Types.ObjectId;
|
|
11
|
+
key: string;
|
|
11
12
|
name: string;
|
|
12
13
|
description?: string;
|
|
13
14
|
templateEmail?: Types.ObjectId | IAdminTemplateEmail;
|
|
@@ -25,6 +26,7 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
|
|
|
25
26
|
}, {
|
|
26
27
|
name: string;
|
|
27
28
|
status: string;
|
|
29
|
+
key: string;
|
|
28
30
|
description?: string | undefined;
|
|
29
31
|
templateEmail?: {
|
|
30
32
|
prototype?: Types.ObjectId | undefined;
|
|
@@ -48,6 +50,7 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
|
|
|
48
50
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
49
51
|
name: string;
|
|
50
52
|
status: string;
|
|
53
|
+
key: string;
|
|
51
54
|
description?: string | undefined;
|
|
52
55
|
templateEmail?: {
|
|
53
56
|
prototype?: Types.ObjectId | undefined;
|
|
@@ -71,6 +74,7 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
|
|
|
71
74
|
}>> & import("mongoose").FlatRecord<{
|
|
72
75
|
name: string;
|
|
73
76
|
status: string;
|
|
77
|
+
key: string;
|
|
74
78
|
description?: string | undefined;
|
|
75
79
|
templateEmail?: {
|
|
76
80
|
prototype?: Types.ObjectId | undefined;
|
|
@@ -9,6 +9,7 @@ var AdminComunicationStatus;
|
|
|
9
9
|
AdminComunicationStatus["INACTIVE"] = "INACTIVE";
|
|
10
10
|
})(AdminComunicationStatus || (exports.AdminComunicationStatus = AdminComunicationStatus = {}));
|
|
11
11
|
exports.AdminComunicationSchema = new mongoose_1.Schema({
|
|
12
|
+
key: { type: String, required: true },
|
|
12
13
|
name: { type: String, required: true },
|
|
13
14
|
description: { type: String, required: false },
|
|
14
15
|
templateEmail: { type: mongoose_1.Types.ObjectId, ref: "admin-template-email", required: false },
|
|
@@ -19,3 +20,4 @@ exports.AdminComunicationSchema = new mongoose_1.Schema({
|
|
|
19
20
|
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
20
21
|
});
|
|
21
22
|
exports.AdminComunicationSchema.index({ name: 1 }, { unique: true });
|
|
23
|
+
exports.AdminComunicationSchema.index({ key: 1 }, { unique: true });
|
|
@@ -14,7 +14,8 @@ export declare enum AdminEventComunicationMessageStatus {
|
|
|
14
14
|
CREATED = "CREATED",
|
|
15
15
|
SENT = "SENT",
|
|
16
16
|
DELIVERED = "DELIVERED",
|
|
17
|
-
READ = "READ"
|
|
17
|
+
READ = "READ",
|
|
18
|
+
ERROR = "ERROR"
|
|
18
19
|
}
|
|
19
20
|
export interface IAdminEventComunication {
|
|
20
21
|
_id: Types.ObjectId;
|
|
@@ -24,10 +25,11 @@ export interface IAdminEventComunication {
|
|
|
24
25
|
template: Types.ObjectId | IAdminTemplatePush;
|
|
25
26
|
status: AdminEventComunicationMessageStatus;
|
|
26
27
|
title: string;
|
|
27
|
-
|
|
28
|
+
body: string;
|
|
28
29
|
image?: IFile;
|
|
29
30
|
redirect?: string;
|
|
30
31
|
metadata?: Map<string, string>;
|
|
32
|
+
message?: string;
|
|
31
33
|
};
|
|
32
34
|
emailContent?: {
|
|
33
35
|
template: Types.ObjectId | IAdminTemplateEmail;
|
|
@@ -35,8 +37,10 @@ export interface IAdminEventComunication {
|
|
|
35
37
|
subject: string;
|
|
36
38
|
bodyHtml: string;
|
|
37
39
|
addresses: string[];
|
|
40
|
+
message?: string;
|
|
38
41
|
};
|
|
39
42
|
status: AdminEventComunicationStatus;
|
|
43
|
+
message?: string;
|
|
40
44
|
createdAtDateTime: Date;
|
|
41
45
|
updatedAtDateTime: Date;
|
|
42
46
|
}
|
|
@@ -65,9 +69,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
65
69
|
createFromBase64?: {} | undefined;
|
|
66
70
|
isValid?: {} | undefined;
|
|
67
71
|
};
|
|
72
|
+
message?: string | undefined;
|
|
68
73
|
pushContent?: {
|
|
69
|
-
message: string;
|
|
70
74
|
title: string;
|
|
75
|
+
body: string;
|
|
71
76
|
status: string;
|
|
72
77
|
template: {
|
|
73
78
|
prototype?: Types.ObjectId | undefined;
|
|
@@ -84,6 +89,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
84
89
|
format?: string | undefined;
|
|
85
90
|
url?: string | undefined;
|
|
86
91
|
} | undefined;
|
|
92
|
+
message?: string | undefined;
|
|
87
93
|
redirect?: string | undefined;
|
|
88
94
|
metadata?: Map<string, string> | undefined;
|
|
89
95
|
} | undefined;
|
|
@@ -101,6 +107,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
101
107
|
isValid?: {} | undefined;
|
|
102
108
|
};
|
|
103
109
|
addresses: string[];
|
|
110
|
+
message?: string | undefined;
|
|
104
111
|
} | undefined;
|
|
105
112
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
106
113
|
account: {
|
|
@@ -122,9 +129,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
122
129
|
createFromBase64?: {} | undefined;
|
|
123
130
|
isValid?: {} | undefined;
|
|
124
131
|
};
|
|
132
|
+
message?: string | undefined;
|
|
125
133
|
pushContent?: {
|
|
126
|
-
message: string;
|
|
127
134
|
title: string;
|
|
135
|
+
body: string;
|
|
128
136
|
status: string;
|
|
129
137
|
template: {
|
|
130
138
|
prototype?: Types.ObjectId | undefined;
|
|
@@ -141,6 +149,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
141
149
|
format?: string | undefined;
|
|
142
150
|
url?: string | undefined;
|
|
143
151
|
} | undefined;
|
|
152
|
+
message?: string | undefined;
|
|
144
153
|
redirect?: string | undefined;
|
|
145
154
|
metadata?: Map<string, string> | undefined;
|
|
146
155
|
} | undefined;
|
|
@@ -158,6 +167,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
158
167
|
isValid?: {} | undefined;
|
|
159
168
|
};
|
|
160
169
|
addresses: string[];
|
|
170
|
+
message?: string | undefined;
|
|
161
171
|
} | undefined;
|
|
162
172
|
}>> & import("mongoose").FlatRecord<{
|
|
163
173
|
account: {
|
|
@@ -179,9 +189,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
179
189
|
createFromBase64?: {} | undefined;
|
|
180
190
|
isValid?: {} | undefined;
|
|
181
191
|
};
|
|
192
|
+
message?: string | undefined;
|
|
182
193
|
pushContent?: {
|
|
183
|
-
message: string;
|
|
184
194
|
title: string;
|
|
195
|
+
body: string;
|
|
185
196
|
status: string;
|
|
186
197
|
template: {
|
|
187
198
|
prototype?: Types.ObjectId | undefined;
|
|
@@ -198,6 +209,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
198
209
|
format?: string | undefined;
|
|
199
210
|
url?: string | undefined;
|
|
200
211
|
} | undefined;
|
|
212
|
+
message?: string | undefined;
|
|
201
213
|
redirect?: string | undefined;
|
|
202
214
|
metadata?: Map<string, string> | undefined;
|
|
203
215
|
} | undefined;
|
|
@@ -215,6 +227,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
|
|
|
215
227
|
isValid?: {} | undefined;
|
|
216
228
|
};
|
|
217
229
|
addresses: string[];
|
|
230
|
+
message?: string | undefined;
|
|
218
231
|
} | undefined;
|
|
219
232
|
}> & {
|
|
220
233
|
_id: Types.ObjectId;
|
|
@@ -16,6 +16,7 @@ var AdminEventComunicationMessageStatus;
|
|
|
16
16
|
AdminEventComunicationMessageStatus["SENT"] = "SENT";
|
|
17
17
|
AdminEventComunicationMessageStatus["DELIVERED"] = "DELIVERED";
|
|
18
18
|
AdminEventComunicationMessageStatus["READ"] = "READ";
|
|
19
|
+
AdminEventComunicationMessageStatus["ERROR"] = "ERROR";
|
|
19
20
|
})(AdminEventComunicationMessageStatus || (exports.AdminEventComunicationMessageStatus = AdminEventComunicationMessageStatus = {}));
|
|
20
21
|
exports.AdminEventComunicationSchema = new mongoose_1.Schema({
|
|
21
22
|
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
@@ -25,10 +26,11 @@ exports.AdminEventComunicationSchema = new mongoose_1.Schema({
|
|
|
25
26
|
template: { type: mongoose_1.Types.ObjectId, ref: "admin-template-push", required: true },
|
|
26
27
|
status: { type: String, enum: AdminEventComunicationMessageStatus, required: true, default: AdminEventComunicationMessageStatus.CREATED },
|
|
27
28
|
title: { type: String, required: true },
|
|
28
|
-
|
|
29
|
+
body: { type: String, required: true },
|
|
29
30
|
image: { type: File_1.FileSchema, required: false },
|
|
30
31
|
redirect: { type: String, required: false },
|
|
31
|
-
metadata: { type: Map, of: String, required: false }
|
|
32
|
+
metadata: { type: Map, of: String, required: false },
|
|
33
|
+
message: { type: String, required: false },
|
|
32
34
|
},
|
|
33
35
|
required: false
|
|
34
36
|
},
|
|
@@ -38,11 +40,13 @@ exports.AdminEventComunicationSchema = new mongoose_1.Schema({
|
|
|
38
40
|
status: { type: String, enum: AdminEventComunicationMessageStatus, required: true, default: AdminEventComunicationMessageStatus.CREATED },
|
|
39
41
|
subject: { type: String, required: true },
|
|
40
42
|
bodyHtml: { type: String, required: true },
|
|
41
|
-
addresses: { type: [String], required: true }
|
|
43
|
+
addresses: { type: [String], required: true },
|
|
44
|
+
message: { type: String, required: false },
|
|
42
45
|
},
|
|
43
46
|
required: false
|
|
44
47
|
},
|
|
45
48
|
status: { type: String, enum: AdminEventComunicationStatus, required: true, default: AdminEventComunicationStatus.CREATED },
|
|
49
|
+
message: { type: String, required: false },
|
|
46
50
|
}, {
|
|
47
51
|
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
48
52
|
});
|
package/package.json
CHANGED