c2-climbing-x 1.0.97 → 1.0.99

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.
@@ -10,18 +10,18 @@ export declare enum AdminEventComunicationStatus {
10
10
  ERROR = "ERROR",
11
11
  DONE = "DONE"
12
12
  }
13
- export declare enum AdminMessageStatus {
13
+ export declare enum AdminEventComunicationMessageStatus {
14
14
  CREATED = "CREATED",
15
15
  SENT = "SENT",
16
16
  DELIVERED = "DELIVERED",
17
17
  READ = "READ"
18
18
  }
19
- export interface IAccountNotification {
19
+ export interface IAdminEventComunication {
20
20
  account: Types.ObjectId | IAccount;
21
21
  comunication: Types.ObjectId | IAdminComunication;
22
22
  pushContent?: {
23
23
  template: Types.ObjectId | IAdminTemplatePush;
24
- status: AdminMessageStatus;
24
+ status: AdminEventComunicationMessageStatus;
25
25
  title: string;
26
26
  message: string;
27
27
  image?: IFile;
@@ -30,7 +30,7 @@ export interface IAccountNotification {
30
30
  };
31
31
  emailContent?: {
32
32
  template: Types.ObjectId | IAdminTemplateEmail;
33
- status: AdminMessageStatus;
33
+ status: AdminEventComunicationMessageStatus;
34
34
  subject: string;
35
35
  bodyHtml: string;
36
36
  };
@@ -38,7 +38,7 @@ export interface IAccountNotification {
38
38
  createdAtDateTime: Date;
39
39
  updatedAtDateTime: Date;
40
40
  }
41
- export declare const AccountNotificationSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
41
+ export declare const AdminEventComunicationSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
42
42
  timestamps: {
43
43
  createdAt: string;
44
44
  updatedAt: string;
@@ -67,8 +67,8 @@ export declare const AccountNotificationSchema: Schema<any, import("mongoose").M
67
67
  };
68
68
  pushContent?: {
69
69
  message: string;
70
- status: string;
71
70
  title: string;
71
+ status: string;
72
72
  template: {
73
73
  prototype?: Types.ObjectId | undefined;
74
74
  cacheHexString?: unknown;
@@ -129,8 +129,8 @@ export declare const AccountNotificationSchema: Schema<any, import("mongoose").M
129
129
  };
130
130
  pushContent?: {
131
131
  message: string;
132
- status: string;
133
132
  title: string;
133
+ status: string;
134
134
  template: {
135
135
  prototype?: Types.ObjectId | undefined;
136
136
  cacheHexString?: unknown;
@@ -191,8 +191,8 @@ export declare const AccountNotificationSchema: Schema<any, import("mongoose").M
191
191
  };
192
192
  pushContent?: {
193
193
  message: string;
194
- status: string;
195
194
  title: string;
195
+ status: string;
196
196
  template: {
197
197
  prototype?: Types.ObjectId | undefined;
198
198
  cacheHexString?: unknown;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountNotificationSchema = exports.AdminMessageStatus = exports.AdminEventComunicationStatus = void 0;
3
+ exports.AdminEventComunicationSchema = exports.AdminEventComunicationMessageStatus = exports.AdminEventComunicationStatus = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const AdminTemplatePush_1 = require("./AdminTemplatePush");
6
6
  const AdminTemplateEmail_1 = require("./AdminTemplateEmail");
@@ -11,14 +11,14 @@ var AdminEventComunicationStatus;
11
11
  AdminEventComunicationStatus["ERROR"] = "ERROR";
12
12
  AdminEventComunicationStatus["DONE"] = "DONE";
13
13
  })(AdminEventComunicationStatus || (exports.AdminEventComunicationStatus = AdminEventComunicationStatus = {}));
14
- var AdminMessageStatus;
15
- (function (AdminMessageStatus) {
16
- AdminMessageStatus["CREATED"] = "CREATED";
17
- AdminMessageStatus["SENT"] = "SENT";
18
- AdminMessageStatus["DELIVERED"] = "DELIVERED";
19
- AdminMessageStatus["READ"] = "READ";
20
- })(AdminMessageStatus || (exports.AdminMessageStatus = AdminMessageStatus = {}));
21
- exports.AccountNotificationSchema = new mongoose_1.Schema({
14
+ var AdminEventComunicationMessageStatus;
15
+ (function (AdminEventComunicationMessageStatus) {
16
+ AdminEventComunicationMessageStatus["CREATED"] = "CREATED";
17
+ AdminEventComunicationMessageStatus["SENT"] = "SENT";
18
+ AdminEventComunicationMessageStatus["DELIVERED"] = "DELIVERED";
19
+ AdminEventComunicationMessageStatus["READ"] = "READ";
20
+ })(AdminEventComunicationMessageStatus || (exports.AdminEventComunicationMessageStatus = AdminEventComunicationMessageStatus = {}));
21
+ exports.AdminEventComunicationSchema = new mongoose_1.Schema({
22
22
  account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
23
23
  comunication: { type: mongoose_1.Types.ObjectId, ref: "admin-comunication", required: true },
24
24
  pushContent: {
@@ -49,5 +49,5 @@ exports.AccountNotificationSchema = new mongoose_1.Schema({
49
49
  }, {
50
50
  timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
51
51
  });
52
- exports.AccountNotificationSchema.index({ account: 1 }, { unique: false });
53
- exports.AccountNotificationSchema.index({ account: 1, status: 1 }, { unique: false });
52
+ exports.AdminEventComunicationSchema.index({ account: 1 }, { unique: false });
53
+ exports.AdminEventComunicationSchema.index({ account: 1, status: 1 }, { unique: false });
@@ -25,9 +25,9 @@ export declare const AdminTemplatePushSchema: Schema<any, import("mongoose").Mod
25
25
  createdAtDateTime: Date;
26
26
  updatedAtDateTime: Date;
27
27
  name: string;
28
- status: string;
29
28
  title: string;
30
29
  body: string;
30
+ status: string;
31
31
  image?: {
32
32
  contentType: string;
33
33
  description: string;
@@ -40,9 +40,9 @@ export declare const AdminTemplatePushSchema: Schema<any, import("mongoose").Mod
40
40
  createdAtDateTime: Date;
41
41
  updatedAtDateTime: Date;
42
42
  name: string;
43
- status: string;
44
43
  title: string;
45
44
  body: string;
45
+ status: string;
46
46
  image?: {
47
47
  contentType: string;
48
48
  description: string;
@@ -55,9 +55,9 @@ export declare const AdminTemplatePushSchema: Schema<any, import("mongoose").Mod
55
55
  createdAtDateTime: Date;
56
56
  updatedAtDateTime: Date;
57
57
  name: string;
58
- status: string;
59
58
  title: string;
60
59
  body: string;
60
+ status: string;
61
61
  image?: {
62
62
  contentType: string;
63
63
  description: string;
@@ -1,5 +1,9 @@
1
1
  export * from "./Access";
2
2
  export * from "./Account";
3
+ export * from "./AdminComunication";
4
+ export * from "./AdminEventComunication";
5
+ export * from "./AdminTemplateEmail";
6
+ export * from "./AdminTemplatePush";
3
7
  export * from "./Challenge";
4
8
  export * from "./ChallengeRound";
5
9
  export * from "./Championship";
@@ -8,8 +12,6 @@ export * from "./ChampionshipMatch";
8
12
  export * from "./ChampionshipPhase";
9
13
  export * from "./ChampionshipRound";
10
14
  export * from "./File";
11
- export * from "./AdminComunication";
12
- export * from "./AdminEventComunication";
13
15
  export * from "./Team";
14
16
  export * from "./Ticket";
15
17
  export * from "./TicketGuess";
@@ -16,6 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Access"), exports);
18
18
  __exportStar(require("./Account"), exports);
19
+ __exportStar(require("./AdminComunication"), exports);
20
+ __exportStar(require("./AdminEventComunication"), exports);
21
+ __exportStar(require("./AdminTemplateEmail"), exports);
22
+ __exportStar(require("./AdminTemplatePush"), exports);
19
23
  __exportStar(require("./Challenge"), exports);
20
24
  __exportStar(require("./ChallengeRound"), exports);
21
25
  __exportStar(require("./Championship"), exports);
@@ -24,8 +28,6 @@ __exportStar(require("./ChampionshipMatch"), exports);
24
28
  __exportStar(require("./ChampionshipPhase"), exports);
25
29
  __exportStar(require("./ChampionshipRound"), exports);
26
30
  __exportStar(require("./File"), exports);
27
- __exportStar(require("./AdminComunication"), exports);
28
- __exportStar(require("./AdminEventComunication"), exports);
29
31
  __exportStar(require("./Team"), exports);
30
32
  __exportStar(require("./Ticket"), exports);
31
33
  __exportStar(require("./TicketGuess"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-climbing-x",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
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",