c2-climbing-x 1.0.103 → 1.0.104

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 });
@@ -24,10 +24,11 @@ export interface IAdminEventComunication {
24
24
  template: Types.ObjectId | IAdminTemplatePush;
25
25
  status: AdminEventComunicationMessageStatus;
26
26
  title: string;
27
- message: string;
27
+ body: string;
28
28
  image?: IFile;
29
29
  redirect?: string;
30
30
  metadata?: Map<string, string>;
31
+ message?: string;
31
32
  };
32
33
  emailContent?: {
33
34
  template: Types.ObjectId | IAdminTemplateEmail;
@@ -35,8 +36,10 @@ export interface IAdminEventComunication {
35
36
  subject: string;
36
37
  bodyHtml: string;
37
38
  addresses: string[];
39
+ message?: string;
38
40
  };
39
41
  status: AdminEventComunicationStatus;
42
+ message?: string;
40
43
  createdAtDateTime: Date;
41
44
  updatedAtDateTime: Date;
42
45
  }
@@ -65,9 +68,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
65
68
  createFromBase64?: {} | undefined;
66
69
  isValid?: {} | undefined;
67
70
  };
71
+ message?: string | undefined;
68
72
  pushContent?: {
69
- message: string;
70
73
  title: string;
74
+ body: string;
71
75
  status: string;
72
76
  template: {
73
77
  prototype?: Types.ObjectId | undefined;
@@ -84,6 +88,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
84
88
  format?: string | undefined;
85
89
  url?: string | undefined;
86
90
  } | undefined;
91
+ message?: string | undefined;
87
92
  redirect?: string | undefined;
88
93
  metadata?: Map<string, string> | undefined;
89
94
  } | undefined;
@@ -101,6 +106,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
101
106
  isValid?: {} | undefined;
102
107
  };
103
108
  addresses: string[];
109
+ message?: string | undefined;
104
110
  } | undefined;
105
111
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
106
112
  account: {
@@ -122,9 +128,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
122
128
  createFromBase64?: {} | undefined;
123
129
  isValid?: {} | undefined;
124
130
  };
131
+ message?: string | undefined;
125
132
  pushContent?: {
126
- message: string;
127
133
  title: string;
134
+ body: string;
128
135
  status: string;
129
136
  template: {
130
137
  prototype?: Types.ObjectId | undefined;
@@ -141,6 +148,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
141
148
  format?: string | undefined;
142
149
  url?: string | undefined;
143
150
  } | undefined;
151
+ message?: string | undefined;
144
152
  redirect?: string | undefined;
145
153
  metadata?: Map<string, string> | undefined;
146
154
  } | undefined;
@@ -158,6 +166,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
158
166
  isValid?: {} | undefined;
159
167
  };
160
168
  addresses: string[];
169
+ message?: string | undefined;
161
170
  } | undefined;
162
171
  }>> & import("mongoose").FlatRecord<{
163
172
  account: {
@@ -179,9 +188,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
179
188
  createFromBase64?: {} | undefined;
180
189
  isValid?: {} | undefined;
181
190
  };
191
+ message?: string | undefined;
182
192
  pushContent?: {
183
- message: string;
184
193
  title: string;
194
+ body: string;
185
195
  status: string;
186
196
  template: {
187
197
  prototype?: Types.ObjectId | undefined;
@@ -198,6 +208,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
198
208
  format?: string | undefined;
199
209
  url?: string | undefined;
200
210
  } | undefined;
211
+ message?: string | undefined;
201
212
  redirect?: string | undefined;
202
213
  metadata?: Map<string, string> | undefined;
203
214
  } | undefined;
@@ -215,6 +226,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
215
226
  isValid?: {} | undefined;
216
227
  };
217
228
  addresses: string[];
229
+ message?: string | undefined;
218
230
  } | undefined;
219
231
  }> & {
220
232
  _id: Types.ObjectId;
@@ -25,10 +25,11 @@ exports.AdminEventComunicationSchema = new mongoose_1.Schema({
25
25
  template: { type: mongoose_1.Types.ObjectId, ref: "admin-template-push", required: true },
26
26
  status: { type: String, enum: AdminEventComunicationMessageStatus, required: true, default: AdminEventComunicationMessageStatus.CREATED },
27
27
  title: { type: String, required: true },
28
- message: { type: String, required: true },
28
+ body: { type: String, required: true },
29
29
  image: { type: File_1.FileSchema, required: false },
30
30
  redirect: { type: String, required: false },
31
- metadata: { type: Map, of: String, required: false }
31
+ metadata: { type: Map, of: String, required: false },
32
+ message: { type: String, required: false },
32
33
  },
33
34
  required: false
34
35
  },
@@ -38,11 +39,13 @@ exports.AdminEventComunicationSchema = new mongoose_1.Schema({
38
39
  status: { type: String, enum: AdminEventComunicationMessageStatus, required: true, default: AdminEventComunicationMessageStatus.CREATED },
39
40
  subject: { type: String, required: true },
40
41
  bodyHtml: { type: String, required: true },
41
- addresses: { type: [String], required: true }
42
+ addresses: { type: [String], required: true },
43
+ message: { type: String, required: false },
42
44
  },
43
45
  required: false
44
46
  },
45
47
  status: { type: String, enum: AdminEventComunicationStatus, required: true, default: AdminEventComunicationStatus.CREATED },
48
+ message: { type: String, required: false },
46
49
  }, {
47
50
  timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
48
51
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-climbing-x",
3
- "version": "1.0.103",
3
+ "version": "1.0.104",
4
4
  "description": "Modelagem TypeScript/Mongoose para o jogo Escalada X (times, campeonatos, fases, rodadas, confrontos, desafios)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",