@kohost/api-client 3.0.0-beta.60 → 3.0.0-beta.61

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kohost/api-client",
3
- "version": "3.0.0-beta.60",
3
+ "version": "3.0.0-beta.61",
4
4
  "description": "API client, models, schemas, commands, and events for Kohost applications",
5
5
  "author": "Ian Rogers",
6
6
  "readme": "README.md",
@@ -1,17 +0,0 @@
1
- const Event = require("./Event");
2
-
3
- class SystemSpaceTypeUpdatedEvent extends Event {
4
- constructor(space) {
5
- super(space);
6
- }
7
-
8
- get name() {
9
- return "SystemSpaceTypeUpdated";
10
- }
11
-
12
- get routingKey() {
13
- return `spaceType.${this.keyId}.updated`;
14
- }
15
- }
16
-
17
- module.exports = SystemSpaceTypeUpdatedEvent;
@@ -1,36 +0,0 @@
1
- // Create the Space Type Model
2
- // Originally used for hotel room type e.g. Double Queen
3
- const schemas = require("../utils/schema");
4
- const schema = require("../schemas/spaceType.json");
5
- const Kohost = require("./Kohost");
6
-
7
- schemas.add(schema);
8
- const validator = schemas.compile(schema);
9
-
10
- class SpaceType extends Kohost {
11
- /**
12
- * @typedef {import("../schemas/SpaceTypeSchema").SpaceType} SpaceTypeType
13
- * Create a SpaceType instance.
14
- * @constructor
15
- * @param {SpaceTypeType} spaceType - The spaceType object of type SpaceType.
16
- */
17
- constructor(spaceType) {
18
- super(spaceType);
19
- }
20
- }
21
-
22
- Object.defineProperty(SpaceType.prototype, "schema", {
23
- value: schema,
24
- });
25
-
26
- Object.defineProperty(SpaceType.prototype, "validator", {
27
- get: function () {
28
- return validator;
29
- },
30
- });
31
-
32
- Object.defineProperty(SpaceType, "validProperties", {
33
- value: Object.keys(schema.properties),
34
- });
35
-
36
- module.exports = SpaceType;