@sonoransoftware/sonoran.js 1.0.19 → 1.0.22

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.
Files changed (89) hide show
  1. package/.eslintrc.js +10 -10
  2. package/.github/workflows/npm-publish.yml +34 -34
  3. package/.prettierrc.js +6 -6
  4. package/dist/builders/cad/DispatchCall.d.ts +92 -92
  5. package/dist/builders/cad/DispatchCall.js +144 -144
  6. package/dist/builders/cad/index.d.ts +1 -1
  7. package/dist/builders/cad/index.js +17 -17
  8. package/dist/builders/index.d.ts +1 -1
  9. package/dist/builders/index.js +19 -19
  10. package/dist/constants.d.ts +230 -230
  11. package/dist/constants.js +27 -27
  12. package/dist/errors/LibraryErrors.d.ts +19 -19
  13. package/dist/errors/LibraryErrors.js +47 -47
  14. package/dist/errors/Messages.d.ts +1 -1
  15. package/dist/errors/Messages.js +8 -8
  16. package/dist/errors/index.d.ts +2 -2
  17. package/dist/errors/index.js +18 -18
  18. package/dist/index.d.ts +4 -4
  19. package/dist/index.js +24 -24
  20. package/dist/instance/Instance.d.ts +24 -24
  21. package/dist/instance/Instance.js +139 -139
  22. package/dist/instance/instance.types.d.ts +17 -17
  23. package/dist/instance/instance.types.js +2 -2
  24. package/dist/libs/rest/src/index.d.ts +6 -6
  25. package/dist/libs/rest/src/index.js +22 -22
  26. package/dist/libs/rest/src/lib/REST.d.ts +101 -101
  27. package/dist/libs/rest/src/lib/REST.js +136 -129
  28. package/dist/libs/rest/src/lib/RequestManager.d.ts +59 -59
  29. package/dist/libs/rest/src/lib/RequestManager.js +191 -191
  30. package/dist/libs/rest/src/lib/errors/APIError.d.ts +9 -9
  31. package/dist/libs/rest/src/lib/errors/APIError.js +17 -17
  32. package/dist/libs/rest/src/lib/errors/HTTPError.d.ts +17 -17
  33. package/dist/libs/rest/src/lib/errors/HTTPError.js +23 -23
  34. package/dist/libs/rest/src/lib/errors/RateLimitError.d.ts +13 -13
  35. package/dist/libs/rest/src/lib/errors/RateLimitError.js +19 -19
  36. package/dist/libs/rest/src/lib/errors/index.d.ts +4 -4
  37. package/dist/libs/rest/src/lib/errors/index.js +20 -20
  38. package/dist/libs/rest/src/lib/handlers/IHandler.d.ts +7 -7
  39. package/dist/libs/rest/src/lib/handlers/IHandler.js +2 -2
  40. package/dist/libs/rest/src/lib/handlers/SequentialHandler.d.ts +45 -45
  41. package/dist/libs/rest/src/lib/handlers/SequentialHandler.js +143 -143
  42. package/dist/libs/rest/src/lib/utils/constants.d.ts +533 -527
  43. package/dist/libs/rest/src/lib/utils/constants.js +463 -455
  44. package/dist/libs/rest/src/lib/utils/utils.d.ts +1 -1
  45. package/dist/libs/rest/src/lib/utils/utils.js +22 -22
  46. package/dist/managers/BaseManager.d.ts +14 -14
  47. package/dist/managers/BaseManager.js +18 -18
  48. package/dist/managers/CADActiveUnitsManager.d.ts +15 -15
  49. package/dist/managers/CADActiveUnitsManager.js +38 -38
  50. package/dist/managers/CADManager.d.ts +29 -29
  51. package/dist/managers/CADManager.js +86 -86
  52. package/dist/managers/CADServerManager.d.ts +8 -8
  53. package/dist/managers/CADServerManager.js +28 -28
  54. package/dist/managers/CMSManager.d.ts +101 -101
  55. package/dist/managers/CMSManager.js +266 -266
  56. package/dist/managers/CMSServerManager.d.ts +8 -8
  57. package/dist/managers/CMSServerManager.js +34 -34
  58. package/dist/managers/CacheManager.d.ts +10 -10
  59. package/dist/managers/CacheManager.js +36 -36
  60. package/dist/managers/DataManager.d.ts +31 -31
  61. package/dist/managers/DataManager.js +58 -58
  62. package/dist/structures/Base.d.ts +9 -9
  63. package/dist/structures/Base.js +24 -24
  64. package/dist/structures/CADActiveUnit.d.ts +47 -47
  65. package/dist/structures/CADActiveUnit.js +66 -66
  66. package/dist/structures/CADServer.d.ts +26 -26
  67. package/dist/structures/CADServer.js +15 -15
  68. package/dist/structures/CMSServer.d.ts +18 -18
  69. package/dist/structures/CMSServer.js +12 -12
  70. package/dist/utils/index.d.ts +1 -1
  71. package/dist/utils/index.js +17 -17
  72. package/dist/utils/utils.d.ts +13 -13
  73. package/dist/utils/utils.js +79 -79
  74. package/docs/CAD-Methods-and-Usage.md +58 -58
  75. package/docs/CMS-Methods-and-Usage.md +211 -211
  76. package/docs/REST-Methods-and-Usage.md +46 -46
  77. package/package.json +48 -48
  78. package/readme.md +53 -53
  79. package/src/constants.ts +248 -248
  80. package/src/instance/Instance.ts +121 -121
  81. package/src/instance/instance.types.ts +17 -17
  82. package/src/libs/rest/src/lib/REST.ts +241 -234
  83. package/src/libs/rest/src/lib/RequestManager.ts +260 -260
  84. package/src/libs/rest/src/lib/handlers/SequentialHandler.ts +160 -160
  85. package/src/libs/rest/src/lib/utils/constants.ts +1012 -997
  86. package/src/managers/CADManager.ts +63 -63
  87. package/src/managers/CMSManager.ts +226 -226
  88. package/src/managers/CMSServerManager.ts +32 -32
  89. package/tsconfig.json +71 -71
@@ -1,36 +1,36 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CacheManager = void 0;
4
- const collection_1 = require("@discordjs/collection");
5
- const DataManager_1 = require("./DataManager");
6
- class CacheManager extends DataManager_1.DataManager {
7
- constructor(instance, holds, iterable) {
8
- super(instance, holds);
9
- this._cache = new collection_1.Collection();
10
- if (iterable) {
11
- for (const item of iterable) {
12
- this._add(item);
13
- }
14
- }
15
- }
16
- get cache() {
17
- return this._cache;
18
- }
19
- _add(data, cache = true, id) {
20
- const existing = this.cache.get(id !== null && id !== void 0 ? id : data.id);
21
- if (existing) {
22
- if (cache) {
23
- existing._patch(data);
24
- return existing;
25
- }
26
- const clone = existing._clone();
27
- clone._patch(data);
28
- return clone;
29
- }
30
- const entry = data;
31
- if (cache)
32
- this.cache.set(id !== null && id !== void 0 ? id : entry.id, entry);
33
- return entry;
34
- }
35
- }
36
- exports.CacheManager = CacheManager;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CacheManager = void 0;
4
+ const collection_1 = require("@discordjs/collection");
5
+ const DataManager_1 = require("./DataManager");
6
+ class CacheManager extends DataManager_1.DataManager {
7
+ constructor(instance, holds, iterable) {
8
+ super(instance, holds);
9
+ this._cache = new collection_1.Collection();
10
+ if (iterable) {
11
+ for (const item of iterable) {
12
+ this._add(item);
13
+ }
14
+ }
15
+ }
16
+ get cache() {
17
+ return this._cache;
18
+ }
19
+ _add(data, cache = true, id) {
20
+ const existing = this.cache.get(id !== null && id !== void 0 ? id : data.id);
21
+ if (existing) {
22
+ if (cache) {
23
+ existing._patch(data);
24
+ return existing;
25
+ }
26
+ const clone = existing._clone();
27
+ clone._patch(data);
28
+ return clone;
29
+ }
30
+ const entry = data;
31
+ if (cache)
32
+ this.cache.set(id !== null && id !== void 0 ? id : entry.id, entry);
33
+ return entry;
34
+ }
35
+ }
36
+ exports.CacheManager = CacheManager;
@@ -1,31 +1,31 @@
1
- import { Instance } from '../instance/Instance';
2
- import { BaseManager } from './BaseManager';
3
- import { Constructable } from '../constants';
4
- import { Collection } from '@discordjs/collection';
5
- interface DataManagerInstanceObject {
6
- id: string;
7
- }
8
- export declare class DataManager<_K, Holds, _R> extends BaseManager {
9
- holds: Constructable<Holds>;
10
- constructor(instance: Instance, holds: any);
11
- /**
12
- * The cache of items for this manager.
13
- * @type {Collection}
14
- * @abstract
15
- */
16
- get cache(): Collection<any, any>;
17
- /**
18
- * Resolves a data entry to a data Object.
19
- * @param idOrInstance The id or instance of something in this Manager
20
- * @returns {?Object} An instance from this Manager
21
- */
22
- resolve(idOrInstance: string | object): object | null;
23
- /**
24
- * Resolves a data entry to an instance id.
25
- * @param {string|Object} idOrInstance The id or instance of something in this Manager
26
- * @returns {?Snowflake}
27
- */
28
- resolveId(idOrInstance: string | DataManagerInstanceObject): string | null;
29
- valueOf(): Collection<any, any>;
30
- }
31
- export {};
1
+ import { Instance } from '../instance/Instance';
2
+ import { BaseManager } from './BaseManager';
3
+ import { Constructable } from '../constants';
4
+ import { Collection } from '@discordjs/collection';
5
+ interface DataManagerInstanceObject {
6
+ id: string;
7
+ }
8
+ export declare class DataManager<_K, Holds, _R> extends BaseManager {
9
+ holds: Constructable<Holds>;
10
+ constructor(instance: Instance, holds: any);
11
+ /**
12
+ * The cache of items for this manager.
13
+ * @type {Collection}
14
+ * @abstract
15
+ */
16
+ get cache(): Collection<any, any>;
17
+ /**
18
+ * Resolves a data entry to a data Object.
19
+ * @param idOrInstance The id or instance of something in this Manager
20
+ * @returns {?Object} An instance from this Manager
21
+ */
22
+ resolve(idOrInstance: string | object): object | null;
23
+ /**
24
+ * Resolves a data entry to an instance id.
25
+ * @param {string|Object} idOrInstance The id or instance of something in this Manager
26
+ * @returns {?Snowflake}
27
+ */
28
+ resolveId(idOrInstance: string | DataManagerInstanceObject): string | null;
29
+ valueOf(): Collection<any, any>;
30
+ }
31
+ export {};
@@ -1,58 +1,58 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataManager = void 0;
4
- const BaseManager_1 = require("./BaseManager");
5
- const errors_1 = require("../errors");
6
- const collection_1 = require("@discordjs/collection");
7
- class DataManager extends BaseManager_1.BaseManager {
8
- constructor(instance, holds) {
9
- super(instance);
10
- /**
11
- * The data structure belonging to this manager.
12
- * @name DataManager#holds
13
- * @type {Function}
14
- * @private
15
- * @readonly
16
- */
17
- this.holds = holds;
18
- }
19
- /**
20
- * The cache of items for this manager.
21
- * @type {Collection}
22
- * @abstract
23
- */
24
- get cache() {
25
- throw new errors_1.GenericError('NOT_IMPLEMENTED', 'get cache', this.constructor.name);
26
- }
27
- /**
28
- * Resolves a data entry to a data Object.
29
- * @param idOrInstance The id or instance of something in this Manager
30
- * @returns {?Object} An instance from this Manager
31
- */
32
- resolve(idOrInstance) {
33
- var _a;
34
- if (this.cache instanceof collection_1.Collection) {
35
- if (typeof idOrInstance === 'object')
36
- return idOrInstance;
37
- if (typeof idOrInstance === 'string')
38
- return (_a = this.cache.get(idOrInstance)) !== null && _a !== void 0 ? _a : null;
39
- }
40
- return null;
41
- }
42
- /**
43
- * Resolves a data entry to an instance id.
44
- * @param {string|Object} idOrInstance The id or instance of something in this Manager
45
- * @returns {?Snowflake}
46
- */
47
- resolveId(idOrInstance) {
48
- if (typeof idOrInstance === 'object')
49
- return idOrInstance.id;
50
- if (typeof idOrInstance === 'string')
51
- return idOrInstance;
52
- return null;
53
- }
54
- valueOf() {
55
- return this.cache;
56
- }
57
- }
58
- exports.DataManager = DataManager;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataManager = void 0;
4
+ const BaseManager_1 = require("./BaseManager");
5
+ const errors_1 = require("../errors");
6
+ const collection_1 = require("@discordjs/collection");
7
+ class DataManager extends BaseManager_1.BaseManager {
8
+ constructor(instance, holds) {
9
+ super(instance);
10
+ /**
11
+ * The data structure belonging to this manager.
12
+ * @name DataManager#holds
13
+ * @type {Function}
14
+ * @private
15
+ * @readonly
16
+ */
17
+ this.holds = holds;
18
+ }
19
+ /**
20
+ * The cache of items for this manager.
21
+ * @type {Collection}
22
+ * @abstract
23
+ */
24
+ get cache() {
25
+ throw new errors_1.GenericError('NOT_IMPLEMENTED', 'get cache', this.constructor.name);
26
+ }
27
+ /**
28
+ * Resolves a data entry to a data Object.
29
+ * @param idOrInstance The id or instance of something in this Manager
30
+ * @returns {?Object} An instance from this Manager
31
+ */
32
+ resolve(idOrInstance) {
33
+ var _a;
34
+ if (this.cache instanceof collection_1.Collection) {
35
+ if (typeof idOrInstance === 'object')
36
+ return idOrInstance;
37
+ if (typeof idOrInstance === 'string')
38
+ return (_a = this.cache.get(idOrInstance)) !== null && _a !== void 0 ? _a : null;
39
+ }
40
+ return null;
41
+ }
42
+ /**
43
+ * Resolves a data entry to an instance id.
44
+ * @param {string|Object} idOrInstance The id or instance of something in this Manager
45
+ * @returns {?Snowflake}
46
+ */
47
+ resolveId(idOrInstance) {
48
+ if (typeof idOrInstance === 'object')
49
+ return idOrInstance.id;
50
+ if (typeof idOrInstance === 'string')
51
+ return idOrInstance;
52
+ return null;
53
+ }
54
+ valueOf() {
55
+ return this.cache;
56
+ }
57
+ }
58
+ exports.DataManager = DataManager;
@@ -1,9 +1,9 @@
1
- import { Instance } from '../instance/Instance';
2
- export declare abstract class Base {
3
- instance: Instance;
4
- constructor(instance: Instance);
5
- _clone(): any;
6
- _patch(data: any): any;
7
- _update(data: any): any;
8
- toJSON(...props: Record<string, boolean | string>[]): unknown;
9
- }
1
+ import { Instance } from '../instance/Instance';
2
+ export declare abstract class Base {
3
+ instance: Instance;
4
+ constructor(instance: Instance);
5
+ _clone(): any;
6
+ _patch(data: any): any;
7
+ _update(data: any): any;
8
+ toJSON(...props: Record<string, boolean | string>[]): unknown;
9
+ }
@@ -1,24 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Base = void 0;
4
- const utils_1 = require("../utils");
5
- class Base {
6
- constructor(instance) {
7
- this.instance = instance;
8
- }
9
- _clone() {
10
- return Object.assign(Object.create(this), this);
11
- }
12
- _patch(data) {
13
- return data;
14
- }
15
- _update(data) {
16
- const clone = this._clone();
17
- this._patch(data);
18
- return clone;
19
- }
20
- toJSON(...props) {
21
- return (0, utils_1.flatten)(this, ...props);
22
- }
23
- }
24
- exports.Base = Base;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Base = void 0;
4
+ const utils_1 = require("../utils");
5
+ class Base {
6
+ constructor(instance) {
7
+ this.instance = instance;
8
+ }
9
+ _clone() {
10
+ return Object.assign(Object.create(this), this);
11
+ }
12
+ _patch(data) {
13
+ return data;
14
+ }
15
+ _update(data) {
16
+ const clone = this._clone();
17
+ this._patch(data);
18
+ return clone;
19
+ }
20
+ toJSON(...props) {
21
+ return (0, utils_1.flatten)(this, ...props);
22
+ }
23
+ }
24
+ exports.Base = Base;
@@ -1,47 +1,47 @@
1
- import { Instance } from '../instance/Instance';
2
- import { Base } from './Base';
3
- export interface CADActiveUnitStruct {
4
- id: number;
5
- accId: string;
6
- status: number;
7
- isPanic: boolean;
8
- location: string;
9
- aop: string;
10
- isDispatch: boolean;
11
- data: CADActiveUnitDataStruct;
12
- }
13
- interface CADActiveUnitStructPartial {
14
- id: number;
15
- accId: string;
16
- status: number;
17
- isPanic: boolean;
18
- location: string;
19
- aop: string;
20
- isDispatch: boolean;
21
- data: Partial<CADActiveUnitDataStruct>;
22
- }
23
- export interface CADActiveUnitDataStruct {
24
- apiId1: string;
25
- apiId2: string;
26
- unitNum: string;
27
- name: string;
28
- district: string;
29
- department: string;
30
- subdivision: string;
31
- rank: string;
32
- group: string;
33
- }
34
- export type CADActiveUnitResolvable = CADActiveUnit | number;
35
- export declare class CADActiveUnit extends Base {
36
- id: number;
37
- accId: string;
38
- status: number;
39
- isPanic: boolean;
40
- location: string;
41
- aop: string;
42
- isDispatch: boolean;
43
- data: CADActiveUnitDataStruct;
44
- constructor(instance: Instance, data: any);
45
- _patch(data: Partial<CADActiveUnitStructPartial>): void;
46
- }
47
- export {};
1
+ import { Instance } from '../instance/Instance';
2
+ import { Base } from './Base';
3
+ export interface CADActiveUnitStruct {
4
+ id: number;
5
+ accId: string;
6
+ status: number;
7
+ isPanic: boolean;
8
+ location: string;
9
+ aop: string;
10
+ isDispatch: boolean;
11
+ data: CADActiveUnitDataStruct;
12
+ }
13
+ interface CADActiveUnitStructPartial {
14
+ id: number;
15
+ accId: string;
16
+ status: number;
17
+ isPanic: boolean;
18
+ location: string;
19
+ aop: string;
20
+ isDispatch: boolean;
21
+ data: Partial<CADActiveUnitDataStruct>;
22
+ }
23
+ export interface CADActiveUnitDataStruct {
24
+ apiId1: string;
25
+ apiId2: string;
26
+ unitNum: string;
27
+ name: string;
28
+ district: string;
29
+ department: string;
30
+ subdivision: string;
31
+ rank: string;
32
+ group: string;
33
+ }
34
+ export type CADActiveUnitResolvable = CADActiveUnit | number;
35
+ export declare class CADActiveUnit extends Base {
36
+ id: number;
37
+ accId: string;
38
+ status: number;
39
+ isPanic: boolean;
40
+ location: string;
41
+ aop: string;
42
+ isDispatch: boolean;
43
+ data: CADActiveUnitDataStruct;
44
+ constructor(instance: Instance, data: any);
45
+ _patch(data: Partial<CADActiveUnitStructPartial>): void;
46
+ }
47
+ export {};
@@ -1,66 +1,66 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CADActiveUnit = void 0;
4
- const Base_1 = require("./Base");
5
- class CADActiveUnit extends Base_1.Base {
6
- constructor(instance, data) {
7
- super(instance);
8
- this.id = -1;
9
- this.accId = '';
10
- this.status = 0;
11
- this.isPanic = false;
12
- this.location = '';
13
- this.aop = '';
14
- this.isDispatch = false;
15
- this.data = {
16
- apiId1: '',
17
- apiId2: '',
18
- unitNum: '',
19
- name: '',
20
- district: '',
21
- department: '',
22
- subdivision: '',
23
- rank: '',
24
- group: ''
25
- };
26
- if (data)
27
- this._patch(data);
28
- }
29
- _patch(data) {
30
- if (data.id !== undefined)
31
- this.id = data.id;
32
- if (data.accId !== undefined)
33
- this.accId = data.accId;
34
- if (data.status !== undefined)
35
- this.status = data.status;
36
- if (data.isPanic !== undefined)
37
- this.isPanic = data.isPanic;
38
- if (data.location !== undefined)
39
- this.location = data.location;
40
- if (data.aop !== undefined)
41
- this.aop = data.aop;
42
- if (data.isDispatch !== undefined)
43
- this.isDispatch = data.isDispatch;
44
- if (data.data !== undefined) {
45
- if (data.data.apiId1 !== undefined)
46
- this.data.apiId1 = data.data.apiId1;
47
- if (data.data.apiId2 !== undefined)
48
- this.data.apiId2 = data.data.apiId2;
49
- if (data.data.unitNum !== undefined)
50
- this.data.unitNum = data.data.unitNum;
51
- if (data.data.name !== undefined)
52
- this.data.name = data.data.name;
53
- if (data.data.district !== undefined)
54
- this.data.district = data.data.district;
55
- if (data.data.department !== undefined)
56
- this.data.department = data.data.department;
57
- if (data.data.subdivision !== undefined)
58
- this.data.subdivision = data.data.subdivision;
59
- if (data.data.rank !== undefined)
60
- this.data.rank = data.data.rank;
61
- if (data.data.group !== undefined)
62
- this.data.group = data.data.group;
63
- }
64
- }
65
- }
66
- exports.CADActiveUnit = CADActiveUnit;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CADActiveUnit = void 0;
4
+ const Base_1 = require("./Base");
5
+ class CADActiveUnit extends Base_1.Base {
6
+ constructor(instance, data) {
7
+ super(instance);
8
+ this.id = -1;
9
+ this.accId = '';
10
+ this.status = 0;
11
+ this.isPanic = false;
12
+ this.location = '';
13
+ this.aop = '';
14
+ this.isDispatch = false;
15
+ this.data = {
16
+ apiId1: '',
17
+ apiId2: '',
18
+ unitNum: '',
19
+ name: '',
20
+ district: '',
21
+ department: '',
22
+ subdivision: '',
23
+ rank: '',
24
+ group: ''
25
+ };
26
+ if (data)
27
+ this._patch(data);
28
+ }
29
+ _patch(data) {
30
+ if (data.id !== undefined)
31
+ this.id = data.id;
32
+ if (data.accId !== undefined)
33
+ this.accId = data.accId;
34
+ if (data.status !== undefined)
35
+ this.status = data.status;
36
+ if (data.isPanic !== undefined)
37
+ this.isPanic = data.isPanic;
38
+ if (data.location !== undefined)
39
+ this.location = data.location;
40
+ if (data.aop !== undefined)
41
+ this.aop = data.aop;
42
+ if (data.isDispatch !== undefined)
43
+ this.isDispatch = data.isDispatch;
44
+ if (data.data !== undefined) {
45
+ if (data.data.apiId1 !== undefined)
46
+ this.data.apiId1 = data.data.apiId1;
47
+ if (data.data.apiId2 !== undefined)
48
+ this.data.apiId2 = data.data.apiId2;
49
+ if (data.data.unitNum !== undefined)
50
+ this.data.unitNum = data.data.unitNum;
51
+ if (data.data.name !== undefined)
52
+ this.data.name = data.data.name;
53
+ if (data.data.district !== undefined)
54
+ this.data.district = data.data.district;
55
+ if (data.data.department !== undefined)
56
+ this.data.department = data.data.department;
57
+ if (data.data.subdivision !== undefined)
58
+ this.data.subdivision = data.data.subdivision;
59
+ if (data.data.rank !== undefined)
60
+ this.data.rank = data.data.rank;
61
+ if (data.data.group !== undefined)
62
+ this.data.group = data.data.group;
63
+ }
64
+ }
65
+ }
66
+ exports.CADActiveUnit = CADActiveUnit;
@@ -1,26 +1,26 @@
1
- import { Instance } from '../instance/Instance';
2
- import { Base } from './Base';
3
- export interface CADServerData {
4
- id: number;
5
- config: CADServerConfig;
6
- }
7
- export interface CADServerConfig {
8
- id: number;
9
- name: string;
10
- description: string;
11
- signal: null;
12
- mapUrl: string;
13
- mapIp: string;
14
- mapPort: string;
15
- differingOutbound: boolean;
16
- outboundIp: string;
17
- listenerPort: string;
18
- enableMap: boolean;
19
- mapType: string;
20
- isStatic: boolean;
21
- }
22
- export declare class CADServer extends Base {
23
- id: number;
24
- config: CADServerConfig;
25
- constructor(instance: Instance, data: CADServerData);
26
- }
1
+ import { Instance } from '../instance/Instance';
2
+ import { Base } from './Base';
3
+ export interface CADServerData {
4
+ id: number;
5
+ config: CADServerConfig;
6
+ }
7
+ export interface CADServerConfig {
8
+ id: number;
9
+ name: string;
10
+ description: string;
11
+ signal: null;
12
+ mapUrl: string;
13
+ mapIp: string;
14
+ mapPort: string;
15
+ differingOutbound: boolean;
16
+ outboundIp: string;
17
+ listenerPort: string;
18
+ enableMap: boolean;
19
+ mapType: string;
20
+ isStatic: boolean;
21
+ }
22
+ export declare class CADServer extends Base {
23
+ id: number;
24
+ config: CADServerConfig;
25
+ constructor(instance: Instance, data: CADServerData);
26
+ }
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CADServer = void 0;
4
- // import { CADActiveUnitsManager } from '../managers/CADActiveUnitsManager';
5
- const Base_1 = require("./Base");
6
- class CADServer extends Base_1.Base {
7
- // public units!: CADActiveUnitsManager;
8
- constructor(instance, data) {
9
- super(instance);
10
- this.id = data.id;
11
- this.config = data.config;
12
- // this.units = new CADActiveUnitsManager(instance, [], this.id);
13
- }
14
- }
15
- exports.CADServer = CADServer;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CADServer = void 0;
4
+ // import { CADActiveUnitsManager } from '../managers/CADActiveUnitsManager';
5
+ const Base_1 = require("./Base");
6
+ class CADServer extends Base_1.Base {
7
+ // public units!: CADActiveUnitsManager;
8
+ constructor(instance, data) {
9
+ super(instance);
10
+ this.id = data.id;
11
+ this.config = data.config;
12
+ // this.units = new CADActiveUnitsManager(instance, [], this.id);
13
+ }
14
+ }
15
+ exports.CADServer = CADServer;