bc-minecraft-bedrock-types 1.3.8 → 1.3.13

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 (56) hide show
  1. package/lib/src/General/Boolean.d.ts +3 -3
  2. package/lib/src/General/Boolean.js +8 -4
  3. package/lib/src/General/Boolean.js.map +1 -1
  4. package/lib/src/General/Float.d.ts +1 -3
  5. package/lib/src/General/Float.js +1 -3
  6. package/lib/src/General/Float.js.map +1 -1
  7. package/lib/src/General/Integer.d.ts +1 -1
  8. package/lib/src/General/Integer.js +1 -1
  9. package/lib/src/General/Integer.js.map +1 -1
  10. package/lib/src/General/Json.d.ts +3 -1
  11. package/lib/src/General/Json.js +3 -1
  12. package/lib/src/General/Json.js.map +1 -1
  13. package/lib/src/General/String.d.ts +1 -1
  14. package/lib/src/General/String.js +1 -1
  15. package/lib/src/General/String.js.map +1 -1
  16. package/lib/src/General/{include.d.ts → index.d.ts} +0 -0
  17. package/lib/src/General/{include.js → index.js} +1 -1
  18. package/lib/src/General/index.js.map +1 -0
  19. package/lib/src/Minecraft/Filter/Domain.d.ts +4 -3
  20. package/lib/src/Minecraft/Filter/Domain.js +19 -0
  21. package/lib/src/Minecraft/Filter/Domain.js.map +1 -1
  22. package/lib/src/Minecraft/Filter/Filter.d.ts +10 -16
  23. package/lib/src/Minecraft/Filter/Filter.js.map +1 -1
  24. package/lib/src/Minecraft/Filter/Operator.d.ts +11 -3
  25. package/lib/src/Minecraft/Filter/Operator.js +29 -0
  26. package/lib/src/Minecraft/Filter/Operator.js.map +1 -1
  27. package/lib/src/Minecraft/Filter/{include.d.ts → index.d.ts} +0 -0
  28. package/lib/src/Minecraft/Filter/{include.js → index.js} +1 -1
  29. package/lib/src/Minecraft/Filter/index.js.map +1 -0
  30. package/lib/src/Minecraft/Selector/ScoreAttribute.d.ts +1 -1
  31. package/lib/src/Minecraft/Selector/ValueAttribute.d.ts +1 -1
  32. package/lib/src/Minecraft/Selector/{include.d.ts → index.d.ts} +0 -0
  33. package/lib/src/Minecraft/Selector/{include.js → index.js} +1 -1
  34. package/lib/src/Minecraft/Selector/index.js.map +1 -0
  35. package/lib/src/Minecraft/index.d.ts +5 -0
  36. package/lib/src/Minecraft/{include.js → index.js} +3 -3
  37. package/lib/src/Minecraft/index.js.map +1 -0
  38. package/lib/src/Types/Conditional.d.ts +1 -1
  39. package/lib/src/Types/Conditional.js +1 -1
  40. package/lib/src/Types/Definition.d.ts +3 -3
  41. package/lib/src/Types/Definition.js +3 -3
  42. package/lib/src/Types/DocumentLocation.d.ts +1 -1
  43. package/lib/src/Types/DocumentLocation.js +1 -1
  44. package/lib/src/Types/{include.d.ts → index.d.ts} +0 -0
  45. package/lib/src/Types/{include.js → index.js} +1 -1
  46. package/lib/src/Types/index.js.map +1 -0
  47. package/lib/src/main.d.ts +3 -3
  48. package/lib/src/main.js +3 -3
  49. package/lib/src/main.js.map +1 -1
  50. package/package.json +3 -3
  51. package/lib/src/General/include.js.map +0 -1
  52. package/lib/src/Minecraft/Filter/include.js.map +0 -1
  53. package/lib/src/Minecraft/Selector/include.js.map +0 -1
  54. package/lib/src/Minecraft/include.d.ts +0 -5
  55. package/lib/src/Minecraft/include.js.map +0 -1
  56. package/lib/src/Types/include.js.map +0 -1
@@ -1,11 +1,11 @@
1
- /**The boolean data type, but related to minecraft*/
1
+ /** The boolean data type, but related to minecraft */
2
2
  export declare namespace Boolean {
3
3
  /**Checks if the given text value is a valid boolean
4
4
  * @param value The valued to compare to
5
5
  * @returns True or false if the text represents a boolean*/
6
- function is(value: string): boolean;
6
+ function is(value: string | boolean): boolean;
7
7
  /**Parses the text value to a boolean value
8
8
  * @param value The text value comparing
9
9
  * @returns True or false if the text represents a boolean*/
10
- function parse(value: string): boolean;
10
+ function parse(value: string | boolean): boolean;
11
11
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Boolean = void 0;
4
- /**The boolean data type, but related to minecraft*/
4
+ /** The boolean data type, but related to minecraft */
5
5
  var Boolean;
6
6
  (function (Boolean) {
7
7
  /**Checks if the given text value is a valid boolean
@@ -9,10 +9,12 @@ var Boolean;
9
9
  * @returns True or false if the text represents a boolean*/
10
10
  function is(value) {
11
11
  switch (value) {
12
- case "True":
13
- case "true":
14
- case "False":
15
12
  case "false":
13
+ case "False":
14
+ case "true":
15
+ case "True":
16
+ case false:
17
+ case true:
16
18
  return true;
17
19
  default:
18
20
  return false;
@@ -27,8 +29,10 @@ var Boolean;
27
29
  case "True":
28
30
  case "true":
29
31
  case "1":
32
+ case true:
30
33
  return true;
31
34
  default:
35
+ case false:
32
36
  return false;
33
37
  }
34
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Boolean.js","sourceRoot":"","sources":["../../../src/General/Boolean.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,IAAiB,OAAO,CA+BvB;AA/BD,WAAiB,OAAO;IACtB;;gEAE4D;IAC5D,SAAgB,EAAE,CAAC,KAAa;QAC9B,QAAQ,KAAK,EAAE;YACb,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,OAAO,CAAC;YACb,KAAK,OAAO;gBACV,OAAO,IAAI,CAAC;YAEd;gBACE,OAAO,KAAK,CAAC;SAChB;IACH,CAAC;IAXe,UAAE,KAWjB,CAAA;IAED;;gEAE4D;IAC5D,SAAgB,KAAK,CAAC,KAAa;QACjC,QAAQ,KAAK,EAAE;YACb,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,GAAG;gBACN,OAAO,IAAI,CAAC;YAEd;gBACE,OAAO,KAAK,CAAC;SAChB;IACH,CAAC;IAVe,aAAK,QAUpB,CAAA;AACH,CAAC,EA/BgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA+BvB"}
1
+ {"version":3,"file":"Boolean.js","sourceRoot":"","sources":["../../../src/General/Boolean.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,IAAiB,OAAO,CAmCvB;AAnCD,WAAiB,OAAO;IACtB;;gEAE4D;IAC5D,SAAgB,EAAE,CAAC,KAAuB;QACxC,QAAQ,KAAK,EAAE;YACb,KAAK,OAAO,CAAC;YACb,KAAK,OAAO,CAAC;YACb,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,KAAK,CAAC;YACX,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC;YAEd;gBACE,OAAO,KAAK,CAAC;SAChB;IACH,CAAC;IAbe,UAAE,KAajB,CAAA;IAED;;gEAE4D;IAC5D,SAAgB,KAAK,CAAC,KAAuB;QAC3C,QAAQ,KAAK,EAAE;YACb,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,GAAG,CAAC;YACT,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC;YAEd,QAAQ;YACR,KAAK,KAAK;gBACR,OAAO,KAAK,CAAC;SAChB;IACH,CAAC;IAZe,aAAK,QAYpB,CAAA;AACH,CAAC,EAnCgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAmCvB"}
@@ -1,6 +1,4 @@
1
- /**TODO add documentation
2
- *
3
- */
1
+ /** The namespace for the float type */
4
2
  export declare namespace Float {
5
3
  /**The regex pattern that matches a float */
6
4
  const pattern: RegExp;
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Float = void 0;
4
- /**TODO add documentation
5
- *
6
- */
4
+ /** The namespace for the float type */
7
5
  var Float;
8
6
  (function (Float) {
9
7
  /**The regex pattern that matches a float */
@@ -1 +1 @@
1
- {"version":3,"file":"Float.js","sourceRoot":"","sources":["../../../src/General/Float.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAiB,KAAK,CAUrB;AAVD,WAAiB,KAAK;IACpB,4CAA4C;IAC/B,aAAO,GAAW,aAAa,CAAC;IAE7C;;8DAE0D;IAC1D,SAAgB,EAAE,CAAC,IAAY;QAC7B,OAAO,MAAA,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAFe,QAAE,KAEjB,CAAA;AACH,CAAC,EAVgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAUrB"}
1
+ {"version":3,"file":"Float.js","sourceRoot":"","sources":["../../../src/General/Float.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,IAAiB,KAAK,CAUrB;AAVD,WAAiB,KAAK;IACpB,4CAA4C;IAC/B,aAAO,GAAW,aAAa,CAAC;IAE7C;;8DAE0D;IAC1D,SAAgB,EAAE,CAAC,IAAY;QAC7B,OAAO,MAAA,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAFe,QAAE,KAEjB,CAAA;AACH,CAAC,EAVgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAUrB"}
@@ -1,4 +1,4 @@
1
- /** */
1
+ /** The namespace for the integer type*/
2
2
  export declare namespace Integer {
3
3
  /**The regex pattern that matches a integer */
4
4
  const pattern: RegExp;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Integer = void 0;
4
- /** */
4
+ /** The namespace for the integer type*/
5
5
  var Integer;
6
6
  (function (Integer) {
7
7
  /**The regex pattern that matches a integer */
@@ -1 +1 @@
1
- {"version":3,"file":"Integer.js","sourceRoot":"","sources":["../../../src/General/Integer.ts"],"names":[],"mappings":";;;AAAA,MAAM;AACN,IAAiB,OAAO,CAUvB;AAVD,WAAiB,OAAO;IACtB,8CAA8C;IACjC,eAAO,GAAW,WAAW,CAAC;IAE3C;;gEAE4D;IAC5D,SAAgB,EAAE,CAAC,IAAY;QAC7B,OAAO,QAAA,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAFe,UAAE,KAEjB,CAAA;AACH,CAAC,EAVgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAUvB"}
1
+ {"version":3,"file":"Integer.js","sourceRoot":"","sources":["../../../src/General/Integer.ts"],"names":[],"mappings":";;;AAAA,wCAAwC;AACxC,IAAiB,OAAO,CAUvB;AAVD,WAAiB,OAAO;IACtB,8CAA8C;IACjC,eAAO,GAAW,WAAW,CAAC;IAE3C;;gEAE4D;IAC5D,SAAgB,EAAE,CAAC,IAAY;QAC7B,OAAO,QAAA,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAFe,UAAE,KAEjB,CAAA;AACH,CAAC,EAVgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAUvB"}
@@ -1,4 +1,6 @@
1
- /** */
1
+ /**
2
+ * The namespace for the json values as strings
3
+ */
2
4
  export declare namespace Json {
3
5
  /**Checks if the given text value is a valid json object
4
6
  * @param value The valued to compare to
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Json = void 0;
4
- /** */
4
+ /**
5
+ * The namespace for the json values as strings
6
+ */
5
7
  var Json;
6
8
  (function (Json) {
7
9
  /**Checks if the given text value is a valid json object
@@ -1 +1 @@
1
- {"version":3,"file":"Json.js","sourceRoot":"","sources":["../../../src/General/Json.ts"],"names":[],"mappings":";;;AAAA,MAAM;AACN,IAAiB,IAAI,CAkBpB;AAlBD,WAAiB,IAAI;IACnB;;oEAEgE;IAChE,SAAgB,QAAQ,CAAC,KAAa;QACpC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAE9D,OAAO,KAAK,CAAC;IACf,CAAC;IAJe,aAAQ,WAIvB,CAAA;IAED;;oEAEgE;IAChE,SAAgB,OAAO,CAAC,KAAa;QACnC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAE9D,OAAO,KAAK,CAAC;IACf,CAAC;IAJe,YAAO,UAItB,CAAA;AACH,CAAC,EAlBgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAkBpB"}
1
+ {"version":3,"file":"Json.js","sourceRoot":"","sources":["../../../src/General/Json.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAiB,IAAI,CAkBpB;AAlBD,WAAiB,IAAI;IACnB;;oEAEgE;IAChE,SAAgB,QAAQ,CAAC,KAAa;QACpC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAE9D,OAAO,KAAK,CAAC;IACf,CAAC;IAJe,aAAQ,WAIvB,CAAA;IAED;;oEAEgE;IAChE,SAAgB,OAAO,CAAC,KAAa;QACnC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAE9D,OAAO,KAAK,CAAC;IACf,CAAC;IAJe,YAAO,UAItB,CAAA;AACH,CAAC,EAlBgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAkBpB"}
@@ -1,4 +1,4 @@
1
- /** */
1
+ /** The namespace for the string functions */
2
2
  export declare namespace String {
3
3
  /**Checks if the given text value is a valid string
4
4
  * @param value The valued to compare to
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.String = void 0;
4
- /** */
4
+ /** The namespace for the string functions */
5
5
  var String;
6
6
  (function (String) {
7
7
  /**Checks if the given text value is a valid string
@@ -1 +1 @@
1
- {"version":3,"file":"String.js","sourceRoot":"","sources":["../../../src/General/String.ts"],"names":[],"mappings":";;;AAAA,MAAM;AACN,IAAiB,MAAM,CAatB;AAbD,WAAiB,MAAM;IACrB;;gEAE4D;IAC5D,SAAgB,EAAE,CAAC,KAAa;QAC9B,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACvB,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;gBAAE,OAAO,IAAI,CAAC;YAE9D,OAAO,KAAK,CAAC;SACd;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IARe,SAAE,KAQjB,CAAA;AACH,CAAC,EAbgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAatB"}
1
+ {"version":3,"file":"String.js","sourceRoot":"","sources":["../../../src/General/String.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,IAAiB,MAAM,CAatB;AAbD,WAAiB,MAAM;IACrB;;gEAE4D;IAC5D,SAAgB,EAAE,CAAC,KAAa;QAC9B,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACvB,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;gBAAE,OAAO,IAAI,CAAC;YAE9D,OAAO,KAAK,CAAC;SACd;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IARe,SAAE,KAQjB,CAAA;AACH,CAAC,EAbgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAatB"}
File without changes
@@ -20,4 +20,4 @@ __exportStar(require("./Float"), exports);
20
20
  __exportStar(require("./Integer"), exports);
21
21
  __exportStar(require("./Json"), exports);
22
22
  __exportStar(require("./String"), exports);
23
- //# sourceMappingURL=include.js.map
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/General/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;AAEpB,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB"}
@@ -1,4 +1,5 @@
1
- /**
2
- *
3
- */
1
+ /** The type of domain */
4
2
  export declare type DomainType = "any" | "armor" | "feet" | "hand" | "head" | "leg" | "torso";
3
+ export declare namespace DomainType {
4
+ function parse(text: string): DomainType;
5
+ }
@@ -1,3 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DomainType = void 0;
4
+ var DomainType;
5
+ (function (DomainType) {
6
+ function parse(text) {
7
+ switch (text) {
8
+ case "any":
9
+ case "armor":
10
+ case "feet":
11
+ case "hand":
12
+ case "head":
13
+ case "leg":
14
+ case "torso":
15
+ return text;
16
+ default:
17
+ return "any";
18
+ }
19
+ }
20
+ DomainType.parse = parse;
21
+ })(DomainType = exports.DomainType || (exports.DomainType = {}));
3
22
  //# sourceMappingURL=Domain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Domain.js","sourceRoot":"","sources":["../../../../src/Minecraft/Filter/Domain.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Domain.js","sourceRoot":"","sources":["../../../../src/Minecraft/Filter/Domain.ts"],"names":[],"mappings":";;;AAGA,IAAiB,UAAU,CAgB1B;AAhBD,WAAiB,UAAU;IACzB,SAAgB,KAAK,CAAC,IAAY;QAChC,QAAQ,IAAI,EAAE;YACZ,KAAK,KAAK,CAAC;YACX,KAAK,OAAO,CAAC;YACb,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,MAAM,CAAC;YACZ,KAAK,KAAK,CAAC;YACX,KAAK,OAAO;gBACV,OAAO,IAAI,CAAC;YAEd;gBACE,OAAO,KAAK,CAAC;SAChB;IACH,CAAC;IAde,gBAAK,QAcpB,CAAA;AACH,CAAC,EAhBgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAgB1B"}
@@ -3,33 +3,27 @@ import { TestType } from "./TestType";
3
3
  import { OperatorType } from "./Operator";
4
4
  import { SubjectType } from "./Subject";
5
5
  /**
6
- *
6
+ * The interface for a filter
7
7
  */
8
8
  export interface Filter {
9
- /**
10
- *
11
- */
9
+ /** The type of filter */
12
10
  test: TestType;
13
- /**
14
- *
15
- */
11
+ /** The subject of the filter*/
16
12
  subject?: SubjectType;
17
- /**
18
- *
19
- */
13
+ /** The operator of the filter*/
20
14
  operator?: OperatorType;
21
- /**
22
- *
23
- */
15
+ /** The domain of the filter*/
24
16
  domain?: DomainType;
25
- /**
26
- *
27
- */
17
+ /** The value of the filter*/
28
18
  value?: string | boolean | number;
29
19
  }
20
+ /** The interface for a filter container */
30
21
  export interface FilterContainerType {
22
+ /** any filters to be true */
31
23
  any_of?: FilterItemType;
24
+ /** all filters to be true */
32
25
  all_of?: FilterItemType;
26
+ /** any filters to be false */
33
27
  none_of?: FilterItemType;
34
28
  }
35
29
  export declare type FilterType = FilterItemType | FilterItemType[];
@@ -1 +1 @@
1
- {"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../../../src/Minecraft/Filter/Filter.ts"],"names":[],"mappings":";;;AAwCA;;GAEG;AACH,IAAiB,MAAM,CAqCtB;AArCD,WAAiB,MAAM;IACrB;;;;OAIG;IACH,SAAgB,EAAE,CAAC,KAAU;QAC3B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,OAAO,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;SACvC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IANe,SAAE,KAMjB,CAAA;IAED;;;;;OAKG;IACH,SAAgB,OAAO,CAAC,IAAgB,EAAE,QAAgC;QACxE,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACvB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;YAC1C,OAAO;SACR;QAED,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,OAAO;QAErC,IAAI,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACnB,QAAQ,CAAC,IAAI,CAAC,CAAC;SAChB;QAED,IAAI,GAAG,IAA2B,CAAC;QACnC,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;IAhBe,cAAO,UAgBtB,CAAA;AACH,CAAC,EArCgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAqCtB"}
1
+ {"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../../../src/Minecraft/Filter/Filter.ts"],"names":[],"mappings":";;;AAkCA;;GAEG;AACH,IAAiB,MAAM,CAqCtB;AArCD,WAAiB,MAAM;IACrB;;;;OAIG;IACH,SAAgB,EAAE,CAAC,KAAU;QAC3B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,OAAO,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;SACvC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IANe,SAAE,KAMjB,CAAA;IAED;;;;;OAKG;IACH,SAAgB,OAAO,CAAC,IAAgB,EAAE,QAAgC;QACxE,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACvB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;YAC1C,OAAO;SACR;QAED,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,OAAO;QAErC,IAAI,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACnB,QAAQ,CAAC,IAAI,CAAC,CAAC;SAChB;QAED,IAAI,GAAG,IAA2B,CAAC;QACnC,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;IAhBe,cAAO,UAgBtB,CAAA;AACH,CAAC,EArCgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAqCtB"}
@@ -1,4 +1,12 @@
1
- /**
2
- *
3
- */
1
+ /** The operator type */
4
2
  export declare type OperatorType = "!=" | "<" | "<=" | "<>" | "=" | "==" | ">" | ">=" | "equals" | "not";
3
+ /** The operator type */
4
+ export declare namespace OperatorType {
5
+ /**
6
+ * Parses the given text into a operator type
7
+ * @param text The text to parse
8
+ * @returns The parsed operator type
9
+ * @throws When the text is not a valid operator type
10
+ */
11
+ function parse(text: string): OperatorType;
12
+ }
@@ -1,3 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OperatorType = void 0;
4
+ /** The operator type */
5
+ var OperatorType;
6
+ (function (OperatorType) {
7
+ /**
8
+ * Parses the given text into a operator type
9
+ * @param text The text to parse
10
+ * @returns The parsed operator type
11
+ * @throws When the text is not a valid operator type
12
+ */
13
+ function parse(text) {
14
+ switch (text) {
15
+ case "!=":
16
+ case "<":
17
+ case "<=":
18
+ case "<>":
19
+ case "=":
20
+ case "==":
21
+ case ">":
22
+ case ">=":
23
+ case "equals":
24
+ case "not":
25
+ return text;
26
+ default:
27
+ throw new Error(`Unknown operator type: ${text}`);
28
+ }
29
+ }
30
+ OperatorType.parse = parse;
31
+ })(OperatorType = exports.OperatorType || (exports.OperatorType = {}));
3
32
  //# sourceMappingURL=Operator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../src/Minecraft/Filter/Operator.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../../src/Minecraft/Filter/Operator.ts"],"names":[],"mappings":";;;AAGA,wBAAwB;AACxB,IAAiB,YAAY,CAyB5B;AAzBD,WAAiB,YAAY;IAC3B;;;;;OAKG;IACH,SAAgB,KAAK,CAAC,IAAY;QAChC,QAAQ,IAAI,EAAE;YACZ,KAAK,IAAI,CAAC;YACV,KAAK,GAAG,CAAC;YACT,KAAK,IAAI,CAAC;YACV,KAAK,IAAI,CAAC;YACV,KAAK,GAAG,CAAC;YACT,KAAK,IAAI,CAAC;YACV,KAAK,GAAG,CAAC;YACT,KAAK,IAAI,CAAC;YACV,KAAK,QAAQ,CAAC;YACd,KAAK,KAAK;gBACR,OAAO,IAAI,CAAC;YAEd;gBACE,MAAM,IAAI,KAAK,CAAC,0BAA0B,IAAI,EAAE,CAAC,CAAC;SACrD;IACH,CAAC;IAjBe,kBAAK,QAiBpB,CAAA;AACH,CAAC,EAzBgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAyB5B"}
@@ -20,4 +20,4 @@ __exportStar(require("./Filter"), exports);
20
20
  __exportStar(require("./Operator"), exports);
21
21
  __exportStar(require("./Subject"), exports);
22
22
  __exportStar(require("./TestType"), exports);
23
- //# sourceMappingURL=include.js.map
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Minecraft/Filter/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;AAEpB,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -1,4 +1,4 @@
1
- import { OffsetWord } from "../../Types/include";
1
+ import { OffsetWord } from "../../Types";
2
2
  import { SelectorValueAttribute } from "./ValueAttribute";
3
3
  export declare class SelectorScoreAttribute {
4
4
  /** */
@@ -1,4 +1,4 @@
1
- import { OffsetWord } from "../../Types/include";
1
+ import { OffsetWord } from "../../Types";
2
2
  export declare class SelectorValueAttribute {
3
3
  /** */
4
4
  offset: number;
@@ -19,4 +19,4 @@ __exportStar(require("./ItemAttribute"), exports);
19
19
  __exportStar(require("./ScoreAttribute"), exports);
20
20
  __exportStar(require("./Selector"), exports);
21
21
  __exportStar(require("./ValueAttribute"), exports);
22
- //# sourceMappingURL=include.js.map
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Minecraft/Selector/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;AAEpB,kDAAgC;AAChC,mDAAiC;AACjC,6CAA2B;AAC3B,mDAAiC"}
@@ -0,0 +1,5 @@
1
+ export * as Filter from "./Filter/index";
2
+ export * as Selector from "./Selector/index";
3
+ export * from "./Block";
4
+ export * from "./Coordinate";
5
+ export * from "./Xp";
@@ -16,9 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.Selector = exports.Filter = void 0;
18
18
  /* Auto generated */
19
- exports.Filter = require("./Filter/include");
20
- exports.Selector = require("./Selector/include");
19
+ exports.Filter = require("./Filter/index");
20
+ exports.Selector = require("./Selector/index");
21
21
  __exportStar(require("./Block"), exports);
22
22
  __exportStar(require("./Coordinate"), exports);
23
23
  __exportStar(require("./Xp"), exports);
24
- //# sourceMappingURL=include.js.map
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Minecraft/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,2CAAyC;AACzC,+CAA6C;AAC7C,0CAAwB;AACxB,+CAA6B;AAC7B,uCAAqB"}
@@ -5,7 +5,7 @@ export interface Conditional {
5
5
  [id: string]: string | number;
6
6
  }
7
7
  /**
8
- *
8
+ * The namespace of the conditional
9
9
  */
10
10
  export declare namespace Conditional {
11
11
  /**Returns the idenfitication
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Conditional = void 0;
4
4
  /**
5
- *
5
+ * The namespace of the conditional
6
6
  */
7
7
  var Conditional;
8
8
  (function (Conditional) {
@@ -7,9 +7,9 @@ export interface Definition {
7
7
  /**The namespace that provides functionallity to definitions*/
8
8
  export declare namespace Definition {
9
9
  /**
10
- *
11
- * @param data
12
- * @returns
10
+ * Counts the number of definitions in the given object
11
+ * @param data The object to count the definitions in
12
+ * @returns The number of definitions
13
13
  */
14
14
  function count(data: Definition): number;
15
15
  /**Returns the idenfitication used
@@ -5,9 +5,9 @@ exports.Definition = void 0;
5
5
  var Definition;
6
6
  (function (Definition) {
7
7
  /**
8
- *
9
- * @param data
10
- * @returns
8
+ * Counts the number of definitions in the given object
9
+ * @param data The object to count the definitions in
10
+ * @returns The number of definitions
11
11
  */
12
12
  function count(data) {
13
13
  return Object.getOwnPropertyNames(data).length;
@@ -8,7 +8,7 @@ export declare type DocumentLocation = Position | OffsetWord | JsonPath | number
8
8
  export declare type TextOrDoc = string | {
9
9
  getText(): string;
10
10
  };
11
- /**TODO add documentation
11
+ /**
12
12
  *
13
13
  */
14
14
  export declare namespace DocumentLocation {
@@ -8,7 +8,7 @@ const Range_1 = require("./Range");
8
8
  function ToText(value) {
9
9
  return typeof value === "string" ? value : value.getText();
10
10
  }
11
- /**TODO add documentation
11
+ /**
12
12
  *
13
13
  */
14
14
  var DocumentLocation;
File without changes
@@ -28,4 +28,4 @@ __exportStar(require("./OffsetWord"), exports);
28
28
  __exportStar(require("./Position"), exports);
29
29
  __exportStar(require("./Range"), exports);
30
30
  __exportStar(require("./Version"), exports);
31
- //# sourceMappingURL=include.js.map
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Types/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;AAEpB,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,qDAAmC;AACnC,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,4CAA0B"}
package/lib/src/main.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from "./Modes/Modes";
2
- export * as Types from "./Types/include";
3
- export * as General from "./General/include";
4
- export * as Minecraft from "./Minecraft/include";
2
+ export * as Types from "./Types/";
3
+ export * as General from "./General/";
4
+ export * as Minecraft from "./Minecraft/";
package/lib/src/main.js CHANGED
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.Minecraft = exports.General = exports.Types = void 0;
18
18
  __exportStar(require("./Modes/Modes"), exports);
19
- exports.Types = require("./Types/include");
20
- exports.General = require("./General/include");
21
- exports.Minecraft = require("./Minecraft/include");
19
+ exports.Types = require("./Types/");
20
+ exports.General = require("./General/");
21
+ exports.Minecraft = require("./Minecraft/");
22
22
  //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyC;AACzC,+CAA6C;AAC7C,mDAAiD"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oCAAkC;AAClC,wCAAsC;AACtC,4CAA0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bc-minecraft-bedrock-types",
3
- "version": "1.3.8",
3
+ "version": "1.3.13",
4
4
  "description": "The typescript library that provides default types for minecraft bedrock",
5
5
  "main": "./lib/src/main.js",
6
6
  "types": "./lib/src/main.d.ts",
@@ -38,9 +38,9 @@
38
38
  },
39
39
  "homepage": "https://github.com/Blockception/BC-Minecraft-Bedrock-Command#readme",
40
40
  "devDependencies": {
41
- "@types/chai": "^4.3.1",
41
+ "@types/chai": "^4.3.3",
42
42
  "@types/mocha": "^9.1.1",
43
- "@types/node": "^18.0.6",
43
+ "@types/node": "^18.6.5",
44
44
  "chai": "^4.3.6",
45
45
  "mocha": "^10.0.0",
46
46
  "rimraf": "^3.0.2",
@@ -1 +0,0 @@
1
- {"version":3,"file":"include.js","sourceRoot":"","sources":["../../../src/General/include.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;AAEpB,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"include.js","sourceRoot":"","sources":["../../../../src/Minecraft/Filter/include.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;AAEpB,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"include.js","sourceRoot":"","sources":["../../../../src/Minecraft/Selector/include.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;AAEpB,kDAAgC;AAChC,mDAAiC;AACjC,6CAA2B;AAC3B,mDAAiC"}
@@ -1,5 +0,0 @@
1
- export * as Filter from "./Filter/include";
2
- export * as Selector from "./Selector/include";
3
- export * from "./Block";
4
- export * from "./Coordinate";
5
- export * from "./Xp";
@@ -1 +0,0 @@
1
- {"version":3,"file":"include.js","sourceRoot":"","sources":["../../../src/Minecraft/include.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,6CAA2C;AAC3C,iDAA+C;AAC/C,0CAAwB;AACxB,+CAA6B;AAC7B,uCAAqB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"include.js","sourceRoot":"","sources":["../../../src/Types/include.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;;;;;;;;;;;;;;AAEpB,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,qDAAmC;AACnC,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,4CAA0B"}