@resolveio/server-lib 20.13.6 → 20.13.8

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.
@@ -20,6 +20,10 @@ var schema = {
20
20
  type: Date,
21
21
  optional: true
22
22
  },
23
+ expiresAt: {
24
+ type: Date,
25
+ optional: true
26
+ },
23
27
  message: {
24
28
  type: String
25
29
  }
@@ -41,6 +45,7 @@ function initializeCollection() {
41
45
  bypassSession: true
42
46
  });
43
47
  exports.AppStatus = model.collection_main;
48
+ exports.AppStatus.createIndex({ expiresAt: 1 }, { expireAfterSeconds: 0 });
44
49
  }
45
50
  else {
46
51
  setImmediate(function () {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/app-status.collection.ts"],"names":[],"mappings":";;;AACA,2DAAsF;AAEtF,gEAA0D;AAE1D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAES,QAAA,SAAS,GAA2C,IAAI,CAAC;AAEpE,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,sCAAe,IAAI,sCAAe,CAAC,SAAS,EAAE,IAAI,iCAAiB,EAAE,CAAC;QACzE,IAAM,KAAK,GAAG,iCAAiB,CAAC,MAAM,CAAiB;YACtD,cAAc,EAAE,cAAc;YAC9B,MAAM,EAAE,MAAM;YACd,oBAAoB,EAAE,KAAK;YAC3B,gBAAgB,EAAE,KAAK;YACvB,yBAAyB,EAAE,EAAE;YAC7B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,KAAK;YACjB,WAAW,EAAE,IAAI;YACjB,iBAAiB,EAAE,IAAI;YACvB,aAAa,EAAE,IAAI;SACnB,CAAC,CAAC;QACH,iBAAS,GAAG,KAAK,CAAC,eAAe,CAAC;IACnC,CAAC;SACI,CAAC;QACL,YAAY,CAAC;YACZ,oBAAoB,EAAE,CAAC;QACxB,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC","file":"app-status.collection.js","sourcesContent":[" \nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { AppStatusModel } from '../models/app-status.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tmessage: {\n\t\ttype: String\n\t}\n};\n\nexport let AppStatus: MongoManagerCollection<AppStatusModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<AppStatusModel>({\n\t\t\tcollectionName: 'app-statuses',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null,\n\t\t\tbypassSession: true\n\t\t});\n\t\tAppStatus = model.collection_main;\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/app-status.collection.ts"],"names":[],"mappings":";;;AACA,2DAAsF;AAEtF,gEAA0D;AAE1D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAES,QAAA,SAAS,GAA2C,IAAI,CAAC;AAEpE,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,sCAAe,IAAI,sCAAe,CAAC,SAAS,EAAE,IAAI,iCAAiB,EAAE,CAAC;QACzE,IAAM,KAAK,GAAG,iCAAiB,CAAC,MAAM,CAAiB;YACtD,cAAc,EAAE,cAAc;YAC9B,MAAM,EAAE,MAAM;YACd,oBAAoB,EAAE,KAAK;YAC3B,gBAAgB,EAAE,KAAK;YACvB,yBAAyB,EAAE,EAAE;YAC7B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,KAAK;YACjB,WAAW,EAAE,IAAI;YACjB,iBAAiB,EAAE,IAAI;YACvB,aAAa,EAAE,IAAI;SACnB,CAAC,CAAC;QACH,iBAAS,GAAG,KAAK,CAAC,eAAe,CAAC;QAClC,iBAAS,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,CAAC,EAAC,CAAC,CAAC;IAChE,CAAC;SACI,CAAC;QACL,YAAY,CAAC;YACZ,oBAAoB,EAAE,CAAC;QACxB,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC","file":"app-status.collection.js","sourcesContent":[" \nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { AppStatusModel } from '../models/app-status.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\texpiresAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tmessage: {\n\t\ttype: String\n\t}\n};\n\nexport let AppStatus: MongoManagerCollection<AppStatusModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<AppStatusModel>({\n\t\t\tcollectionName: 'app-statuses',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null,\n\t\t\tbypassSession: true\n\t\t});\n\t\tAppStatus = model.collection_main;\n\t\tAppStatus.createIndex({expiresAt: 1}, {expireAfterSeconds: 0});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import { CollectionDocument } from './collection-document.model';
2
2
  export interface AppStatusModel extends CollectionDocument {
3
3
  message: string;
4
+ expiresAt?: Date;
4
5
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/models/app-status.model.ts"],"names":[],"mappings":"","file":"app-status.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface AppStatusModel extends CollectionDocument {\n\tmessage: string;\n}"]}
1
+ {"version":3,"sources":["../../src/models/app-status.model.ts"],"names":[],"mappings":"","file":"app-status.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface AppStatusModel extends CollectionDocument {\n\tmessage: string;\n\texpiresAt?: Date;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "20.13.6",
3
+ "version": "20.13.8",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -1,15 +1,31 @@
1
- <style type="text/css">
2
- * {
3
- font-size: 14px;
4
- font-family: Arial;
5
- }
6
- </style>
7
-
8
- Hello {{fullname}},
9
- <br><br>
10
- {{user}} has created an account for you.<br><br>
11
-
12
- <a href="{{url}}" style="background-color:#76b530;border:1px solid #1e3650;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;">Click here to enroll</a>
13
- <br><br>
14
- Link:<br>
15
- {{url}}
1
+ <table role="presentation" data-resolveio-email-wrapper="true" width="100%" cellpadding="0" cellspacing="0" style="background-color: #f2f2f2; margin: 0; padding: 36px 0;">
2
+ <tr>
3
+ <td align="center" style="padding: 0 16px;">
4
+ <table role="presentation" width="640" cellpadding="0" cellspacing="0" style="width: 640px; max-width: 640px; background-color: #ffffff; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);">
5
+ <tr>
6
+ <td style="background-color: #0b0b0b; color: #ffffff; padding: 22px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
7
+ <div style="font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;">ResolveIO</div>
8
+ <div style="font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #bfbfbf; margin-top: 6px;">Operational Intelligence</div>
9
+ </td>
10
+ </tr>
11
+ <tr>
12
+ <td style="padding: 30px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.7; color: #111111;">
13
+ <div style="font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: #111111;">Welcome to ResolveIO</div>
14
+ <div style="font-size: 15px; margin: 0 0 18px; color: #333333;">Hi {{ fullname }}, {{ user }} just created your account.</div>
15
+ <div style="margin: 0 0 22px; padding: 16px 18px; background-color: #f4f4f4; border-radius: 12px; color: #222222;">
16
+ <div style="font-size: 14px; margin: 0;">Set your password to activate your access and get started.</div>
17
+ </div>
18
+ <a href="{{ url }}" style="background-color: #111111; border: 1px solid #111111; border-radius: 10px; color: #ffffff; display: inline-block; font-size: 14px; font-weight: 700; line-height: 44px; text-align: center; text-decoration: none; width: 220px; -webkit-text-size-adjust: none">Activate Account</a>
19
+ <div style="margin-top: 18px; font-size: 12px; color: #666666;">If the button does not work, copy and paste this link:</div>
20
+ <div style="margin-top: 6px; font-size: 12px; color: #111111; word-break: break-all;">{{ url }}</div>
21
+ </td>
22
+ </tr>
23
+ <tr>
24
+ <td style="padding: 18px 28px; background-color: #f7f7f7; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; color: #666666;">
25
+ ResolveIO - Need a hand? Reply to this email and we'll jump in.
26
+ </td>
27
+ </tr>
28
+ </table>
29
+ </td>
30
+ </tr>
31
+ </table>
@@ -1,15 +1,32 @@
1
- <style type="text/css">
2
- * {
3
- font-size: 14px;
4
- font-family: Arial;
5
- }
6
- </style>
7
-
8
- Hello {{userToChangePassword}},
9
- <br><br>
10
- {{userWhoResetPassword}} has reset your password.<br><br>
11
-
12
- <a href="{{url}}" style="background-color:#76b530;border:1px solid #1e3650;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;">Click here to change your password</a>
13
- <br><br>
14
- Link:<br>
15
- {{url}}
1
+ <table role="presentation" data-resolveio-email-wrapper="true" width="100%" cellpadding="0" cellspacing="0" style="background-color: #f2f2f2; margin: 0; padding: 36px 0;">
2
+ <tr>
3
+ <td align="center" style="padding: 0 16px;">
4
+ <table role="presentation" width="640" cellpadding="0" cellspacing="0" style="width: 640px; max-width: 640px; background-color: #ffffff; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);">
5
+ <tr>
6
+ <td style="background-color: #0b0b0b; color: #ffffff; padding: 22px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
7
+ <div style="font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;">ResolveIO</div>
8
+ <div style="font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #bfbfbf; margin-top: 6px;">Operational Intelligence</div>
9
+ </td>
10
+ </tr>
11
+ <tr>
12
+ <td style="padding: 30px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.7; color: #111111;">
13
+ <div style="font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: #111111;">Reset your password</div>
14
+ <div style="font-size: 15px; margin: 0 0 18px; color: #333333;">Hi {{ userToChangePassword }}, {{ userWhoResetPassword }} reset your password.</div>
15
+ <div style="margin: 0 0 22px; padding: 16px 18px; background-color: #f4f4f4; border-radius: 12px; color: #222222;">
16
+ <div style="font-size: 14px; margin: 0;">Use the button below to choose a new password.</div>
17
+ </div>
18
+ <a href="{{ url }}" style="background-color: #111111; border: 1px solid #111111; border-radius: 10px; color: #ffffff; display: inline-block; font-size: 14px; font-weight: 700; line-height: 44px; text-align: center; text-decoration: none; width: 220px; -webkit-text-size-adjust: none">Reset Password</a>
19
+ <div style="margin-top: 18px; font-size: 12px; color: #666666;">If you did not request this, you can safely ignore this email.</div>
20
+ <div style="margin-top: 10px; font-size: 12px; color: #666666;">Direct link:</div>
21
+ <div style="margin-top: 6px; font-size: 12px; color: #111111; word-break: break-all;">{{ url }}</div>
22
+ </td>
23
+ </tr>
24
+ <tr>
25
+ <td style="padding: 18px 28px; background-color: #f7f7f7; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; color: #666666;">
26
+ ResolveIO - Need a hand? Reply to this email and we'll jump in.
27
+ </td>
28
+ </tr>
29
+ </table>
30
+ </td>
31
+ </tr>
32
+ </table>
@@ -15,12 +15,24 @@
15
15
  border: 1px solid gray;
16
16
  }
17
17
  .tg {border-collapse:collapse;border-spacing:0;border-color:#999;}
18
- .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#444;background-color:#F7FDFA;border-top-width:1px;border-bottom-width:1px;}
18
+ .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#444;background-color:#f7f7f7;border-top-width:1px;border-bottom-width:1px;}
19
19
  .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#fff;background-color:black;border-top-width:1px;border-bottom-width:1px;}
20
20
  .tg .tg-baqh{text-align:left;vertical-align:top}
21
21
  .tg .tg-yw4l{vertical-align:top;}
22
22
  </style>
23
23
 
24
+ <table role="presentation" data-resolveio-email-wrapper="true" width="100%" cellpadding="0" cellspacing="0" style="background-color: #f2f2f2; margin: 0; padding: 36px 0;">
25
+ <tr>
26
+ <td align="center" style="padding: 0 16px;">
27
+ <table role="presentation" width="640" cellpadding="0" cellspacing="0" style="width: 640px; max-width: 640px; background-color: #ffffff; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);">
28
+ <tr>
29
+ <td style="background-color: #0b0b0b; color: #ffffff; padding: 22px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
30
+ <div style="font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;">ResolveIO</div>
31
+ <div style="font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #bfbfbf; margin-top: 6px;">Operational Intelligence</div>
32
+ </td>
33
+ </tr>
34
+ <tr>
35
+ <td style="padding: 30px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.7; color: #111111;">
24
36
  Support ticket #{{support_ticket_number_string}} has been deleted.
25
37
 
26
38
  <br><br>
@@ -31,10 +43,21 @@ Support ticket #{{support_ticket_number_string}} has been deleted.
31
43
  <th class="tg-yw4l" style="padding: 0; margin: 0; border-left: 1px solid #999;">
32
44
  <img src="{{logo}}" style="width: auto; height: 90px; background-color: white; margin-left: -10px; margin-bottom: -10px;" alt="Logo">
33
45
  </th>
34
- <th class="tg-yw4l" style="min-width: 800px; max-width: 800px; font-size: 20px; color: white; text-align: right; padding: 30px;">Support Ticket</th>
46
+ <th class="tg-yw4l" style="width: 100%; max-width: 100%; font-size: 20px; color: white; text-align: right; padding: 30px;">Support Ticket</th>
35
47
  </tr>
36
48
  </thead>
37
49
  <tbody>
38
50
  </tbody>
39
51
  </table>
40
- </div>
52
+ </div>
53
+ </td>
54
+ </tr>
55
+ <tr>
56
+ <td style="padding: 18px 28px; background-color: #f7f7f7; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; color: #666666;">
57
+ ResolveIO - Need a hand? Reply to this email and we'll jump in.
58
+ </td>
59
+ </tr>
60
+ </table>
61
+ </td>
62
+ </tr>
63
+ </table>
@@ -15,12 +15,24 @@
15
15
  border: 1px solid gray;
16
16
  }
17
17
  .tg {border-collapse:collapse;border-spacing:0;border-color:#999;}
18
- .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#444;background-color:#F7FDFA;border-top-width:1px;border-bottom-width:1px;}
18
+ .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#444;background-color:#f7f7f7;border-top-width:1px;border-bottom-width:1px;}
19
19
  .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:black;background-color:white;border-top-width:1px;border-bottom-width:1px;}
20
20
  .tg .tg-baqh{text-align:left;vertical-align:top}
21
21
  .tg .tg-yw4l{vertical-align:top;}
22
22
  </style>
23
23
 
24
+ <table role="presentation" data-resolveio-email-wrapper="true" width="100%" cellpadding="0" cellspacing="0" style="background-color: #f2f2f2; margin: 0; padding: 36px 0;">
25
+ <tr>
26
+ <td align="center" style="padding: 0 16px;">
27
+ <table role="presentation" width="640" cellpadding="0" cellspacing="0" style="width: 640px; max-width: 640px; background-color: #ffffff; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);">
28
+ <tr>
29
+ <td style="background-color: #0b0b0b; color: #ffffff; padding: 22px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
30
+ <div style="font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;">ResolveIO</div>
31
+ <div style="font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #bfbfbf; margin-top: 6px;">Operational Intelligence</div>
32
+ </td>
33
+ </tr>
34
+ <tr>
35
+ <td style="padding: 30px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.7; color: #111111;">
24
36
  Hello {{user}},
25
37
  <br><br>
26
38
  Support ticket: #{{support_ticket_number_string}} has been modified by {{user_name}}.
@@ -35,7 +47,7 @@ Support ticket: #{{support_ticket_number_string}} has been modified by {{user_na
35
47
  <th class="tg-yw4l" style="padding: 0; margin: 0; border-left: 1px solid #999;">
36
48
  <img src="{{logo}}" style="width: 130px; height: auto; background-color: white; margin-left: -10px; margin-bottom: -10px;" alt="Logo">
37
49
  </th>
38
- <th class="tg-yw4l" style="min-width: 800px; max-width: 800px; font-size: 20px; color: gray; text-align: right; padding: 30px; border-right: 1px solid #999;">Support Ticket</th>
50
+ <th class="tg-yw4l" style="width: 100%; max-width: 100%; font-size: 20px; color: gray; text-align: right; padding: 30px; border-right: 1px solid #999;">Support Ticket</th>
39
51
  </tr>
40
52
  </thead>
41
53
  <tbody>
@@ -53,7 +65,7 @@ Support ticket: #{{support_ticket_number_string}} has been modified by {{user_na
53
65
  </tr>
54
66
  <tr>
55
67
  <td class="tg-baqh" style="min-width: 30%; max-width: 30%; font-weight: bold;">Issue <br>Description</td>
56
- <td class="tg-baqh" style="min-width: 60%; max-width: 60%;"><pre style="width: 750px; background-color: #F7FDFA;">{{issue}}</pre></td>
68
+ <td class="tg-baqh" style="min-width: 60%; max-width: 60%;"><pre style="width: 100%; max-width: 100%; background-color: #f7f7f7;">{{issue}}</pre></td>
57
69
  </tr>
58
70
  <tr>
59
71
  <td class="tg-baqh" style="min-width: 30%; max-width: 30%; font-weight: bold;">Priority</td>
@@ -80,7 +92,7 @@ Support ticket: #{{support_ticket_number_string}} has been modified by {{user_na
80
92
  <thead>
81
93
  <tr>
82
94
  <th class="tg-yw4l" style="min-width: 130px; max-width: 130px; padding: 0; margin: 0; border-left: 1px solid #999;">&nbsp;</th>
83
- <th class="tg-yw4l" style="min-width: 800px; max-width: 800px; font-size: 20px; color: gray; text-align: right; padding: 30px; padding-right: 20px; border-right: 1px solid #999;">Change Log</th>
95
+ <th class="tg-yw4l" style="width: 100%; max-width: 100%; font-size: 20px; color: gray; text-align: right; padding: 30px; padding-right: 20px; border-right: 1px solid #999;">Change Log</th>
84
96
  </tr>
85
97
  </thead>
86
98
  <tbody>
@@ -91,11 +103,11 @@ Support ticket: #{{support_ticket_number_string}} has been modified by {{user_na
91
103
  </tr>
92
104
  <tr>
93
105
  <td class="tg-baqh" style="min-width: 30%; max-width: 30%; font-weight: bold; padding-right: 30px;">Old:</td>
94
- <td class="tg-baqh" style="min-width: 60%; max-width: 60%; text-align: left;"><pre style="width: 750px; background-color:#F7FDFA">{{oldValue}}</pre></td>
106
+ <td class="tg-baqh" style="min-width: 60%; max-width: 60%; text-align: left;"><pre style="width: 100%; max-width: 100%; background-color:#f7f7f7">{{oldValue}}</pre></td>
95
107
  </tr>
96
108
  <tr>
97
109
  <td class="tg-baqh" style="min-width: 30%; max-width: 30%; font-weight: bold; padding-right: 30px;">New:</td>
98
- <td class="tg-baqh" style="min-width: 60%; max-width: 60%; text-align: left;"><pre style="width: 750px; background-color:#F7FDFA">{{newValue}}</pre></td>
110
+ <td class="tg-baqh" style="min-width: 60%; max-width: 60%; text-align: left;"><pre style="width: 100%; max-width: 100%; background-color:#f7f7f7">{{newValue}}</pre></td>
99
111
  </tr>
100
112
  {{/each}}
101
113
  </tbody>
@@ -108,7 +120,7 @@ Support ticket: #{{support_ticket_number_string}} has been modified by {{user_na
108
120
  <thead>
109
121
  <tr>
110
122
  <th class="tg-yw4l" style="min-width: 130px; max-width: 130px; padding: 0; margin: 0; border-left: 1px solid #999;">&nbsp;</th>
111
- <th class="tg-yw4l" style="min-width: 800px; max-width: 800px; font-size: 20px; color: gray; text-align: right; padding: 30px; padding-right: 20px; border-right: 1px solid #999;">Most Recent Message</th>
123
+ <th class="tg-yw4l" style="width: 100%; max-width: 100%; font-size: 20px; color: gray; text-align: right; padding: 30px; padding-right: 20px; border-right: 1px solid #999;">Most Recent Message</th>
112
124
  </tr>
113
125
  </thead>
114
126
  <tbody>
@@ -128,7 +140,7 @@ Support ticket: #{{support_ticket_number_string}} has been modified by {{user_na
128
140
  <td class="tg-baqh" style="min-width: 30%; max-width: 30%; font-weight: bold; padding-right: 30px;">
129
141
  Message:
130
142
  </td>
131
- <td class="tg-baqh" style="min-width: 60%; max-width: 60%; text-align: left;"><pre style="width: 750px; background-color:#F7FDFA">{{lastMessage.message}}</pre></td>
143
+ <td class="tg-baqh" style="min-width: 60%; max-width: 60%; text-align: left;"><pre style="width: 100%; max-width: 100%; background-color:#f7f7f7">{{lastMessage.message}}</pre></td>
132
144
  </tr>
133
145
  </tbody>
134
146
  </table>
@@ -138,10 +150,21 @@ Support ticket: #{{support_ticket_number_string}} has been modified by {{user_na
138
150
  {{#if url_ticket}}
139
151
  <div>
140
152
  <a href="{{url_ticket}}"
141
- style="background-color:#76b530;border:1px solid #1e3650;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;">Go to Ticket</a>
153
+ style="background-color: #111111;border: 1px solid #111111;border-radius: 10px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;">Go to Ticket</a>
142
154
  </div>
143
155
  {{/if}}
144
156
 
145
157
  <br><br><br>
146
158
  Thanks,<br>
147
- ResolveIO Support Team
159
+ ResolveIO Support Team
160
+ </td>
161
+ </tr>
162
+ <tr>
163
+ <td style="padding: 18px 28px; background-color: #f7f7f7; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; color: #666666;">
164
+ ResolveIO - Need a hand? Reply to this email and we'll jump in.
165
+ </td>
166
+ </tr>
167
+ </table>
168
+ </td>
169
+ </tr>
170
+ </table>
@@ -15,12 +15,24 @@
15
15
  border: 1px solid gray;
16
16
  }
17
17
  .tg {border-collapse:collapse;border-spacing:0;border-color:#999;}
18
- .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#444;background-color:#F7FDFA;border-top-width:1px;border-bottom-width:1px;}
18
+ .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#444;background-color:#f7f7f7;border-top-width:1px;border-bottom-width:1px;}
19
19
  .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#fff;background-color:black;border-top-width:1px;border-bottom-width:1px;}
20
20
  .tg .tg-baqh{text-align:left;vertical-align:top}
21
21
  .tg .tg-yw4l{vertical-align:top;}
22
22
  </style>
23
23
 
24
+ <table role="presentation" data-resolveio-email-wrapper="true" width="100%" cellpadding="0" cellspacing="0" style="background-color: #f2f2f2; margin: 0; padding: 36px 0;">
25
+ <tr>
26
+ <td align="center" style="padding: 0 16px;">
27
+ <table role="presentation" width="640" cellpadding="0" cellspacing="0" style="width: 640px; max-width: 640px; background-color: #ffffff; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);">
28
+ <tr>
29
+ <td style="background-color: #0b0b0b; color: #ffffff; padding: 22px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
30
+ <div style="font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;">ResolveIO</div>
31
+ <div style="font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #bfbfbf; margin-top: 6px;">Operational Intelligence</div>
32
+ </td>
33
+ </tr>
34
+ <tr>
35
+ <td style="padding: 30px 28px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.7; color: #111111;">
24
36
  New support ticket #{{support_ticket_number_string}} has been created by {{user_created}}.
25
37
  <br><br>
26
38
  <div id="containter">
@@ -30,7 +42,7 @@ New support ticket #{{support_ticket_number_string}} has been created by {{user_
30
42
  <th class="tg-yw4l" style="padding: 0; margin: 0; border-left: 1px solid #999;">
31
43
  <img src="{{logo}}" style="width: auto; height: 90px; background-color: white; margin-left: -10px; margin-bottom: -10px;" alt="Logo">
32
44
  </th>
33
- <th class="tg-yw4l" style="min-width: 800px; max-width: 800px; font-size: 20px; color: white; text-align: right; padding: 30px;">Support Ticket</th>
45
+ <th class="tg-yw4l" style="width: 100%; max-width: 100%; font-size: 20px; color: white; text-align: right; padding: 30px;">Support Ticket</th>
34
46
  </tr>
35
47
  </thead>
36
48
  <tbody>
@@ -68,4 +80,15 @@ New support ticket #{{support_ticket_number_string}} has been created by {{user_
68
80
  </tr>
69
81
  </tbody>
70
82
  </table>
71
- </div>
83
+ </div>
84
+ </td>
85
+ </tr>
86
+ <tr>
87
+ <td style="padding: 18px 28px; background-color: #f7f7f7; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; color: #666666;">
88
+ ResolveIO - Need a hand? Reply to this email and we'll jump in.
89
+ </td>
90
+ </tr>
91
+ </table>
92
+ </td>
93
+ </tr>
94
+ </table>
@@ -6,7 +6,7 @@ function loadAppStatusPublications(subscriptionManager) {
6
6
  subscriptionManager.publications({
7
7
  appstatus: {
8
8
  function: function () {
9
- return app_status_collection_1.AppStatus.findOne();
9
+ return app_status_collection_1.AppStatus.findOne({}, { sort: { createdAt: -1 } });
10
10
  },
11
11
  collections: ['app-statuses']
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/publications/app-status.ts"],"names":[],"mappings":";;AAGA,8DASC;AAXD,8EAAiE;AAEjE,SAAgB,yBAAyB,CAAC,mBAAwC;IACjF,mBAAmB,CAAC,YAAY,CAAC;QAChC,SAAS,EAAE;YACV,QAAQ,EAAE;gBACT,OAAO,iCAAS,CAAC,OAAO,EAAE,CAAC;YAC5B,CAAC;YACD,WAAW,EAAE,CAAC,cAAc,CAAC;SAC7B;KACD,CAAC,CAAC;AACJ,CAAC","file":"app-status.js","sourcesContent":["import { SubscriptionManager } from '../managers/subscription.manager';\nimport { AppStatus } from '../collections/app-status.collection';\n\nexport function loadAppStatusPublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tappstatus: {\n\t\t\tfunction: function() {\n\t\t\t\treturn AppStatus.findOne();\n\t\t\t},\n\t\t\tcollections: ['app-statuses']\n\t\t}\n\t});\n}"]}
1
+ {"version":3,"sources":["../../src/publications/app-status.ts"],"names":[],"mappings":";;AAGA,8DASC;AAXD,8EAAiE;AAEjE,SAAgB,yBAAyB,CAAC,mBAAwC;IACjF,mBAAmB,CAAC,YAAY,CAAC;QAChC,SAAS,EAAE;YACV,QAAQ,EAAE;gBACT,OAAO,iCAAS,CAAC,OAAO,CAAC,EAAE,EAAE,EAAC,IAAI,EAAE,EAAC,SAAS,EAAE,CAAC,CAAC,EAAC,EAAC,CAAC,CAAC;YACvD,CAAC;YACD,WAAW,EAAE,CAAC,cAAc,CAAC;SAC7B;KACD,CAAC,CAAC;AACJ,CAAC","file":"app-status.js","sourcesContent":["import { SubscriptionManager } from '../managers/subscription.manager';\nimport { AppStatus } from '../collections/app-status.collection';\n\nexport function loadAppStatusPublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tappstatus: {\n\t\t\tfunction: function() {\n\t\t\t\treturn AppStatus.findOne({}, {sort: {createdAt: -1}});\n\t\t\t},\n\t\t\tcollections: ['app-statuses']\n\t\t}\n\t});\n}\n"]}