c2-climbing-x 1.0.99 → 1.0.101

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.
@@ -21,8 +21,6 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
21
21
  updatedAt: string;
22
22
  };
23
23
  }, {
24
- createdAtDateTime: Date;
25
- updatedAtDateTime: Date;
26
24
  name: string;
27
25
  status: string;
28
26
  description?: string | undefined;
@@ -45,8 +43,6 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
45
43
  isValid?: {} | undefined;
46
44
  } | undefined;
47
45
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
48
- createdAtDateTime: Date;
49
- updatedAtDateTime: Date;
50
46
  name: string;
51
47
  status: string;
52
48
  description?: string | undefined;
@@ -69,8 +65,6 @@ export declare const AdminComunicationSchema: Schema<any, import("mongoose").Mod
69
65
  isValid?: {} | undefined;
70
66
  } | undefined;
71
67
  }>> & import("mongoose").FlatRecord<{
72
- createdAtDateTime: Date;
73
- updatedAtDateTime: Date;
74
68
  name: string;
75
69
  status: string;
76
70
  description?: string | undefined;
@@ -14,8 +14,6 @@ exports.AdminComunicationSchema = new mongoose_1.Schema({
14
14
  templateEmail: { type: mongoose_1.Types.ObjectId, ref: "admin-template-email", required: false },
15
15
  templatePush: { type: mongoose_1.Types.ObjectId, ref: "admin-template-push", required: false },
16
16
  status: { type: String, enum: AdminComunicationStatus, required: true, default: AdminComunicationStatus.DRAFT },
17
- createdAtDateTime: { type: Date, required: true },
18
- updatedAtDateTime: { type: Date, required: true }
19
17
  }, {
20
18
  timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
21
19
  });
@@ -33,6 +33,7 @@ export interface IAdminEventComunication {
33
33
  status: AdminEventComunicationMessageStatus;
34
34
  subject: string;
35
35
  bodyHtml: string;
36
+ addresses: string[];
36
37
  };
37
38
  status: AdminEventComunicationStatus;
38
39
  createdAtDateTime: Date;
@@ -44,8 +45,6 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
44
45
  updatedAt: string;
45
46
  };
46
47
  }, {
47
- createdAtDateTime: Date;
48
- updatedAtDateTime: Date;
49
48
  account: {
50
49
  prototype?: Types.ObjectId | undefined;
51
50
  cacheHexString?: unknown;
@@ -79,13 +78,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
79
78
  isValid?: {} | undefined;
80
79
  };
81
80
  image?: {
82
- prototype?: Types.ObjectId | undefined;
83
- cacheHexString?: unknown;
84
- generate?: {} | undefined;
85
- createFromTime?: {} | undefined;
86
- createFromHexString?: {} | undefined;
87
- createFromBase64?: {} | undefined;
88
- isValid?: {} | undefined;
81
+ contentType: string;
82
+ description: string;
83
+ format?: string | undefined;
84
+ url?: string | undefined;
89
85
  } | undefined;
90
86
  redirect?: string | undefined;
91
87
  metadata?: Map<string, string> | undefined;
@@ -106,8 +102,6 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
106
102
  addresses: string[];
107
103
  } | undefined;
108
104
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
109
- createdAtDateTime: Date;
110
- updatedAtDateTime: Date;
111
105
  account: {
112
106
  prototype?: Types.ObjectId | undefined;
113
107
  cacheHexString?: unknown;
@@ -141,13 +135,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
141
135
  isValid?: {} | undefined;
142
136
  };
143
137
  image?: {
144
- prototype?: Types.ObjectId | undefined;
145
- cacheHexString?: unknown;
146
- generate?: {} | undefined;
147
- createFromTime?: {} | undefined;
148
- createFromHexString?: {} | undefined;
149
- createFromBase64?: {} | undefined;
150
- isValid?: {} | undefined;
138
+ contentType: string;
139
+ description: string;
140
+ format?: string | undefined;
141
+ url?: string | undefined;
151
142
  } | undefined;
152
143
  redirect?: string | undefined;
153
144
  metadata?: Map<string, string> | undefined;
@@ -168,8 +159,6 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
168
159
  addresses: string[];
169
160
  } | undefined;
170
161
  }>> & import("mongoose").FlatRecord<{
171
- createdAtDateTime: Date;
172
- updatedAtDateTime: Date;
173
162
  account: {
174
163
  prototype?: Types.ObjectId | undefined;
175
164
  cacheHexString?: unknown;
@@ -203,13 +192,10 @@ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose"
203
192
  isValid?: {} | undefined;
204
193
  };
205
194
  image?: {
206
- prototype?: Types.ObjectId | undefined;
207
- cacheHexString?: unknown;
208
- generate?: {} | undefined;
209
- createFromTime?: {} | undefined;
210
- createFromHexString?: {} | undefined;
211
- createFromBase64?: {} | undefined;
212
- isValid?: {} | undefined;
195
+ contentType: string;
196
+ description: string;
197
+ format?: string | undefined;
198
+ url?: string | undefined;
213
199
  } | undefined;
214
200
  redirect?: string | undefined;
215
201
  metadata?: Map<string, string> | undefined;
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdminEventComunicationSchema = exports.AdminEventComunicationMessageStatus = exports.AdminEventComunicationStatus = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
- const AdminTemplatePush_1 = require("./AdminTemplatePush");
6
- const AdminTemplateEmail_1 = require("./AdminTemplateEmail");
5
+ const File_1 = require("./File");
7
6
  var AdminEventComunicationStatus;
8
7
  (function (AdminEventComunicationStatus) {
9
8
  AdminEventComunicationStatus["CREATED"] = "CREATED";
@@ -24,10 +23,10 @@ exports.AdminEventComunicationSchema = new mongoose_1.Schema({
24
23
  pushContent: {
25
24
  type: {
26
25
  template: { type: mongoose_1.Types.ObjectId, ref: "admin-template-push", required: true },
27
- status: { type: String, enum: AdminTemplatePush_1.AdminTemplatePushStatus, required: true, default: AdminTemplatePush_1.AdminTemplatePushStatus.DRAFT },
26
+ status: { type: String, enum: AdminEventComunicationMessageStatus, required: true, default: AdminEventComunicationMessageStatus.CREATED },
28
27
  title: { type: String, required: true },
29
28
  message: { type: String, required: true },
30
- image: { type: mongoose_1.Types.ObjectId, ref: "file", required: false },
29
+ image: { type: File_1.FileSchema, required: false },
31
30
  redirect: { type: String, required: false },
32
31
  metadata: { type: Map, of: String, required: false }
33
32
  },
@@ -36,7 +35,7 @@ exports.AdminEventComunicationSchema = new mongoose_1.Schema({
36
35
  emailContent: {
37
36
  type: {
38
37
  template: { type: mongoose_1.Types.ObjectId, ref: "admin-template-email", required: true },
39
- status: { type: String, enum: AdminTemplateEmail_1.AdminTemplateEmailStatus, required: true, default: AdminTemplateEmail_1.AdminTemplateEmailStatus.DRAFT },
38
+ status: { type: String, enum: AdminEventComunicationMessageStatus, required: true, default: AdminEventComunicationMessageStatus.CREATED },
40
39
  subject: { type: String, required: true },
41
40
  bodyHtml: { type: String, required: true },
42
41
  addresses: { type: [String], required: true }
@@ -44,8 +43,6 @@ exports.AdminEventComunicationSchema = new mongoose_1.Schema({
44
43
  required: false
45
44
  },
46
45
  status: { type: String, enum: AdminEventComunicationStatus, required: true, default: AdminEventComunicationStatus.CREATED },
47
- createdAtDateTime: { type: Date, required: true },
48
- updatedAtDateTime: { type: Date, required: true }
49
46
  }, {
50
47
  timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
51
48
  });
@@ -18,22 +18,16 @@ export declare const AdminTemplateEmailSchema: Schema<any, import("mongoose").Mo
18
18
  updatedAt: string;
19
19
  };
20
20
  }, {
21
- createdAtDateTime: Date;
22
- updatedAtDateTime: Date;
23
21
  name: string;
24
22
  status: string;
25
23
  subject: string;
26
24
  bodyHtml: string;
27
25
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
28
- createdAtDateTime: Date;
29
- updatedAtDateTime: Date;
30
26
  name: string;
31
27
  status: string;
32
28
  subject: string;
33
29
  bodyHtml: string;
34
30
  }>> & import("mongoose").FlatRecord<{
35
- createdAtDateTime: Date;
36
- updatedAtDateTime: Date;
37
31
  name: string;
38
32
  status: string;
39
33
  subject: string;
@@ -13,8 +13,6 @@ exports.AdminTemplateEmailSchema = new mongoose_1.Schema({
13
13
  subject: { type: String, required: true },
14
14
  bodyHtml: { type: String, required: true },
15
15
  status: { type: String, enum: AdminTemplateEmailStatus, required: true, default: AdminTemplateEmailStatus.DRAFT },
16
- createdAtDateTime: { type: Date, required: true },
17
- updatedAtDateTime: { type: Date, required: true }
18
16
  }, {
19
17
  timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
20
18
  });
@@ -22,8 +22,6 @@ export declare const AdminTemplatePushSchema: Schema<any, import("mongoose").Mod
22
22
  updatedAt: string;
23
23
  };
24
24
  }, {
25
- createdAtDateTime: Date;
26
- updatedAtDateTime: Date;
27
25
  name: string;
28
26
  title: string;
29
27
  body: string;
@@ -37,8 +35,6 @@ export declare const AdminTemplatePushSchema: Schema<any, import("mongoose").Mod
37
35
  redirect?: string | undefined;
38
36
  metadata?: Map<string, string> | undefined;
39
37
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
40
- createdAtDateTime: Date;
41
- updatedAtDateTime: Date;
42
38
  name: string;
43
39
  title: string;
44
40
  body: string;
@@ -52,8 +48,6 @@ export declare const AdminTemplatePushSchema: Schema<any, import("mongoose").Mod
52
48
  redirect?: string | undefined;
53
49
  metadata?: Map<string, string> | undefined;
54
50
  }>> & import("mongoose").FlatRecord<{
55
- createdAtDateTime: Date;
56
- updatedAtDateTime: Date;
57
51
  name: string;
58
52
  title: string;
59
53
  body: string;
@@ -17,8 +17,6 @@ exports.AdminTemplatePushSchema = new mongoose_1.Schema({
17
17
  redirect: { type: String, required: false },
18
18
  metadata: { type: Map, of: String, required: false },
19
19
  status: { type: String, enum: AdminTemplatePushStatus, required: true, default: AdminTemplatePushStatus.DRAFT },
20
- createdAtDateTime: { type: Date, required: true },
21
- updatedAtDateTime: { type: Date, required: true }
22
20
  }, {
23
21
  timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
24
22
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-climbing-x",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
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",