@social-mail/social-mail-web-server 1.16.4 → 1.16.6

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.
@@ -1,7 +1,10 @@
1
1
  import { IEntityQuery } from "@entity-access/entity-access/dist/model/IFilterWithParameter.js";
2
2
  import GeoEntity from "../entities/GeoEntity.js";
3
3
  import ReadOnlyEvents from "./ReadOnlyEvents.js";
4
+ import SocialMailContext from "../SocialMailContext.js";
4
5
  export default class GeoEntitiesEvents extends ReadOnlyEvents<GeoEntity> {
6
+ db: SocialMailContext;
7
+ countries(): IEntityQuery<GeoEntity>;
5
8
  filter(query: IEntityQuery<GeoEntity>): IEntityQuery<GeoEntity>;
6
9
  modify(q: any): any;
7
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GeoEntityEvents.d.ts","sourceRoot":"","sources":["../../../../src/server/model/events/GeoEntityEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iEAAiE,CAAC;AAC/F,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,cAAc,CAAC,SAAS,CAAC;IAEpE,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC;IAO/D,MAAM,CAAC,CAAC,KAAA;CAKX"}
1
+ {"version":3,"file":"GeoEntityEvents.d.ts","sourceRoot":"","sources":["../../../../src/server/model/events/GeoEntityEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iEAAiE,CAAC;AAC/F,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAGjD,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,cAAc,CAAC,SAAS,CAAC;IAGpE,EAAE,EAAE,iBAAiB,CAAC;IAGtB,SAAS;IAIT,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC;IAO/D,MAAM,CAAC,CAAC,KAAA;CAKX"}
@@ -1,5 +1,20 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
1
10
  import ReadOnlyEvents from "./ReadOnlyEvents.js";
11
+ import ExternalQuery from "@entity-access/server-pages/dist/decorators/ExternalQuery.js";
12
+ import Inject from "@entity-access/entity-access/dist/di/di.js";
13
+ import SocialMailContext from "../SocialMailContext.js";
2
14
  export default class GeoEntitiesEvents extends ReadOnlyEvents {
15
+ countries() {
16
+ return this.db.geoEntities.where((x) => x.type === "country");
17
+ }
3
18
  filter(query) {
4
19
  if (this.sessionUser.isAdmin) {
5
20
  return query;
@@ -11,4 +26,14 @@ export default class GeoEntitiesEvents extends ReadOnlyEvents {
11
26
  return q;
12
27
  }
13
28
  }
29
+ __decorate([
30
+ Inject,
31
+ __metadata("design:type", SocialMailContext)
32
+ ], GeoEntitiesEvents.prototype, "db", void 0);
33
+ __decorate([
34
+ ExternalQuery,
35
+ __metadata("design:type", Function),
36
+ __metadata("design:paramtypes", []),
37
+ __metadata("design:returntype", void 0)
38
+ ], GeoEntitiesEvents.prototype, "countries", null);
14
39
  //# sourceMappingURL=GeoEntityEvents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeoEntityEvents.js","sourceRoot":"","sources":["../../../../src/server/model/events/GeoEntityEvents.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,cAAyB;IAEpE,MAAM,CAAC,KAA8B;QACjC,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;YAC3B,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,CAAC;QACJ,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;QACjC,OAAO,CAAC,CAAC;IACb,CAAC;CAEJ"}
1
+ {"version":3,"file":"GeoEntityEvents.js","sourceRoot":"","sources":["../../../../src/server/model/events/GeoEntityEvents.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,aAAa,MAAM,8DAA8D,CAAC;AACzF,OAAO,MAAM,MAAM,4CAA4C,CAAC;AAChE,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,cAAyB;IAMpE,SAAS;QACL,OAAO,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,CAAC,KAA8B;QACjC,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;YAC3B,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,CAAC;QACJ,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;QACjC,OAAO,CAAC,CAAC;IACb,CAAC;CAEJ;AAnBG;IADC,MAAM;8BACH,iBAAiB;6CAAC;AAGtB;IADC,aAAa;;;;kDAGb"}
@@ -14,7 +14,7 @@ export default async function seedUI(config) {
14
14
  await config.saveVersion(UIPackageConfig, {
15
15
  package: "@social-mail/social-mail-client",
16
16
  view: "dist/web/AppIndex",
17
- version: "1.11.8"
17
+ version: "1.11.11"
18
18
  });
19
19
  await config.saveVersion(WebComponentsPackageConfig, {
20
20
  package: "@social-mail/web-components",
@@ -1 +1 @@
1
- {"version":3,"file":"seed-ui.js","sourceRoot":"","sources":["../../../../src/server/seed/ui/seed-ui.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxH,OAAO,UAAU,MAAM,iDAAiD,CAAC;AAEzE,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,MAAM,CAAC,MAAgB;IAEjD,MAAM,MAAM,CAAC,WAAW,CAAC,UAAU,EAAE;QACjC,GAAG,EAAE;YACD,GAAG,EAAE,EAAE;YACP,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;SACb;QACD,GAAG,EAAE;YACD,kBAAkB,EAAE,EAAE;SACzB;KACJ,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,WAAW,CAAC,eAAe,EAAE;QACtC,OAAO,EAAE,iCAAiC;QAC1C,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,QAAQ;KACpB,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,EAAE;QACjD,OAAO,EAAE,6BAA6B;QACtC,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,OAAO;KACnB,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,WAAW,CAAC,mBAAmB,EAAE;QAC1C,OAAO,EAAE,+BAA+B;QACxC,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,OAAO;KACnB,CAAC,CAAC;AAEP,CAAC"}
1
+ {"version":3,"file":"seed-ui.js","sourceRoot":"","sources":["../../../../src/server/seed/ui/seed-ui.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxH,OAAO,UAAU,MAAM,iDAAiD,CAAC;AAEzE,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,MAAM,CAAC,MAAgB;IAEjD,MAAM,MAAM,CAAC,WAAW,CAAC,UAAU,EAAE;QACjC,GAAG,EAAE;YACD,GAAG,EAAE,EAAE;YACP,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;SACb;QACD,GAAG,EAAE;YACD,kBAAkB,EAAE,EAAE;SACzB;KACJ,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,WAAW,CAAC,eAAe,EAAE;QACtC,OAAO,EAAE,iCAAiC;QAC1C,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,SAAS;KACrB,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,EAAE;QACjD,OAAO,EAAE,6BAA6B;QACtC,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,OAAO;KACnB,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,WAAW,CAAC,mBAAmB,EAAE;QAC1C,OAAO,EAAE,+BAA+B;QACxC,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,OAAO;KACnB,CAAC,CAAC;AAEP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.16.4",
3
+ "version": "1.16.6",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,9 +1,20 @@
1
1
  import { IEntityQuery } from "@entity-access/entity-access/dist/model/IFilterWithParameter.js";
2
2
  import GeoEntity from "../entities/GeoEntity.js";
3
3
  import ReadOnlyEvents from "./ReadOnlyEvents.js";
4
+ import ExternalQuery from "@entity-access/server-pages/dist/decorators/ExternalQuery.js";
5
+ import Inject from "@entity-access/entity-access/dist/di/di.js";
6
+ import SocialMailContext from "../SocialMailContext.js";
4
7
 
5
8
  export default class GeoEntitiesEvents extends ReadOnlyEvents<GeoEntity> {
6
9
 
10
+ @Inject
11
+ db: SocialMailContext;
12
+
13
+ @ExternalQuery
14
+ countries() {
15
+ return this.db.geoEntities.where((x) => x.type === "country");
16
+ }
17
+
7
18
  filter(query: IEntityQuery<GeoEntity>): IEntityQuery<GeoEntity> {
8
19
  if (this.sessionUser.isAdmin) {
9
20
  return query;
@@ -17,7 +17,7 @@ export default async function seedUI(config: DBConfig) {
17
17
  await config.saveVersion(UIPackageConfig, {
18
18
  package: "@social-mail/social-mail-client",
19
19
  view: "dist/web/AppIndex",
20
- version: "1.11.8"
20
+ version: "1.11.11"
21
21
  });
22
22
 
23
23
  await config.saveVersion(WebComponentsPackageConfig, {