c2-climbing-x 1.0.102 → 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.
@@ -7,6 +7,8 @@ export declare enum AdminComunicationStatus {
7
7
  INACTIVE = "INACTIVE"
8
8
  }
9
9
  export interface IAdminComunication {
10
+ _id: Types.ObjectId;
11
+ key: string;
10
12
  name: string;
11
13
  description?: string;
12
14
  templateEmail?: Types.ObjectId | IAdminTemplateEmail;
@@ -24,6 +26,7 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
24
26
  }, {
25
27
  name: string;
26
28
  status: string;
29
+ key: string;
27
30
  description?: string | undefined;
28
31
  templateEmail?: {
29
32
  prototype?: Types.ObjectId | undefined;
@@ -47,6 +50,7 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
47
50
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
48
51
  name: string;
49
52
  status: string;
53
+ key: string;
50
54
  description?: string | undefined;
51
55
  templateEmail?: {
52
56
  prototype?: Types.ObjectId | undefined;
@@ -70,6 +74,7 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
70
74
  }>> & import("mongoose").FlatRecord<{
71
75
  name: string;
72
76
  status: string;
77
+ key: string;
73
78
  description?: string | undefined;
74
79
  templateEmail?: {
75
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 });
@@ -17,16 +17,18 @@ export declare enum AdminEventComunicationMessageStatus {
17
17
  READ = "READ"
18
18
  }
19
19
  export interface IAdminEventComunication {
20
+ _id: Types.ObjectId;
20
21
  account: Types.ObjectId | IAccount;
21
22
  comunication: Types.ObjectId | IAdminComunication;
22
23
  pushContent?: {
23
24
  template: Types.ObjectId | IAdminTemplatePush;
24
25
  status: AdminEventComunicationMessageStatus;
25
26
  title: string;
26
- message: string;
27
+ body: string;
27
28
  image?: IFile;
28
29
  redirect?: string;
29
30
  metadata?: Map<string, string>;
31
+ message?: string;
30
32
  };
31
33
  emailContent?: {
32
34
  template: Types.ObjectId | IAdminTemplateEmail;
@@ -34,8 +36,10 @@ export interface IAdminEventComunication {
34
36
  subject: string;
35
37
  bodyHtml: string;
36
38
  addresses: string[];
39
+ message?: string;
37
40
  };
38
41
  status: AdminEventComunicationStatus;
42
+ message?: string;
39
43
  createdAtDateTime: Date;
40
44
  updatedAtDateTime: Date;
41
45
  }
@@ -64,9 +68,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
64
68
  createFromBase64?: {} | undefined;
65
69
  isValid?: {} | undefined;
66
70
  };
71
+ message?: string | undefined;
67
72
  pushContent?: {
68
- message: string;
69
73
  title: string;
74
+ body: string;
70
75
  status: string;
71
76
  template: {
72
77
  prototype?: Types.ObjectId | undefined;
@@ -83,6 +88,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
83
88
  format?: string | undefined;
84
89
  url?: string | undefined;
85
90
  } | undefined;
91
+ message?: string | undefined;
86
92
  redirect?: string | undefined;
87
93
  metadata?: Map<string, string> | undefined;
88
94
  } | undefined;
@@ -100,6 +106,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
100
106
  isValid?: {} | undefined;
101
107
  };
102
108
  addresses: string[];
109
+ message?: string | undefined;
103
110
  } | undefined;
104
111
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
105
112
  account: {
@@ -121,9 +128,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
121
128
  createFromBase64?: {} | undefined;
122
129
  isValid?: {} | undefined;
123
130
  };
131
+ message?: string | undefined;
124
132
  pushContent?: {
125
- message: string;
126
133
  title: string;
134
+ body: string;
127
135
  status: string;
128
136
  template: {
129
137
  prototype?: Types.ObjectId | undefined;
@@ -140,6 +148,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
140
148
  format?: string | undefined;
141
149
  url?: string | undefined;
142
150
  } | undefined;
151
+ message?: string | undefined;
143
152
  redirect?: string | undefined;
144
153
  metadata?: Map<string, string> | undefined;
145
154
  } | undefined;
@@ -157,6 +166,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
157
166
  isValid?: {} | undefined;
158
167
  };
159
168
  addresses: string[];
169
+ message?: string | undefined;
160
170
  } | undefined;
161
171
  }>> & import("mongoose").FlatRecord<{
162
172
  account: {
@@ -178,9 +188,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
178
188
  createFromBase64?: {} | undefined;
179
189
  isValid?: {} | undefined;
180
190
  };
191
+ message?: string | undefined;
181
192
  pushContent?: {
182
- message: string;
183
193
  title: string;
194
+ body: string;
184
195
  status: string;
185
196
  template: {
186
197
  prototype?: Types.ObjectId | undefined;
@@ -197,6 +208,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
197
208
  format?: string | undefined;
198
209
  url?: string | undefined;
199
210
  } | undefined;
211
+ message?: string | undefined;
200
212
  redirect?: string | undefined;
201
213
  metadata?: Map<string, string> | undefined;
202
214
  } | undefined;
@@ -214,6 +226,7 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
214
226
  isValid?: {} | undefined;
215
227
  };
216
228
  addresses: string[];
229
+ message?: string | undefined;
217
230
  } | undefined;
218
231
  }> & {
219
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
  });
@@ -1,10 +1,11 @@
1
- import { Schema } from "mongoose";
1
+ import { Schema, Types } from "mongoose";
2
2
  export declare enum AdminTemplateEmailStatus {
3
3
  DRAFT = "DRAFT",
4
4
  ACTIVE = "ACTIVE",
5
5
  INACTIVE = "INACTIVE"
6
6
  }
7
7
  export interface IAdminTemplateEmail {
8
+ _id: Types.ObjectId;
8
9
  name: string;
9
10
  subject: string;
10
11
  bodyHtml: string;
@@ -33,5 +34,5 @@ export declare const AdminTemplateEmailSchema: Schema<any, import("mongoose").Mo
33
34
  subject: string;
34
35
  bodyHtml: string;
35
36
  }> & {
36
- _id: import("mongoose").Types.ObjectId;
37
+ _id: Types.ObjectId;
37
38
  }>;
@@ -6,6 +6,7 @@ export declare enum AdminTemplatePushStatus {
6
6
  INACTIVE = "INACTIVE"
7
7
  }
8
8
  export interface IAdminTemplatePush {
9
+ _id: Types.ObjectId;
9
10
  name: string;
10
11
  title: string;
11
12
  body: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-climbing-x",
3
- "version": "1.0.102",
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",