@tsukilabs/nil-bindings 0.6.1 → 0.6.3

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/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.6.1";
2
+ var version = "0.6.3";
3
3
  //#endregion
4
4
  //#region src/env_Var.ts
5
5
  var env_Var = /* @__PURE__ */ function(env_Var) {
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { ManeuverId } from './ManeuverId';
5
+ import { WorldId } from './WorldId';
6
+ export type CancelManeuverRequest = {
7
+ world: WorldId;
8
+ id: ManeuverId;
9
+ };
@@ -8,26 +8,26 @@ import { ReportKind } from './ReportKind';
8
8
  import { Round } from './Round';
9
9
  import { WorldId } from './WorldId';
10
10
  export type Event = {
11
- "kind": "chat-updated";
11
+ "kind": "chat-message";
12
12
  world: WorldId;
13
13
  message: ChatMessage;
14
14
  } | {
15
- "kind": "city-updated";
15
+ "kind": "city";
16
16
  world: WorldId;
17
17
  coord: Coord;
18
18
  } | {
19
19
  "kind": "drop";
20
20
  world: WorldId;
21
21
  } | {
22
- "kind": "military-updated";
22
+ "kind": "military";
23
23
  world: WorldId;
24
24
  player: PlayerId;
25
25
  } | {
26
- "kind": "player-updated";
26
+ "kind": "player";
27
27
  world: WorldId;
28
28
  player: PlayerId;
29
29
  } | {
30
- "kind": "public-city-updated";
30
+ "kind": "public-city";
31
31
  world: WorldId;
32
32
  coord: Coord;
33
33
  } | {
@@ -35,7 +35,7 @@ export type Event = {
35
35
  world: WorldId;
36
36
  report: ReportKind;
37
37
  } | {
38
- "kind": "round-updated";
38
+ "kind": "round";
39
39
  world: WorldId;
40
40
  round: Round;
41
41
  };
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { ArmyId } from './ArmyId';
5
+ import { WorldId } from './WorldId';
6
+ export type GetArmyOwnerRequest = {
7
+ world: WorldId;
8
+ id: ArmyId;
9
+ };
@@ -0,0 +1,5 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Ruler } from './Ruler';
5
+ export type GetArmyOwnerResponse = Ruler;
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { ArmyId } from './ArmyId';
5
+ import { WorldId } from './WorldId';
6
+ export type GetArmyRequest = {
7
+ world: WorldId;
8
+ id: ArmyId;
9
+ };
@@ -0,0 +1,5 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Army } from './Army';
5
+ export type GetArmyResponse = Army;
@@ -0,0 +1,9 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { ManeuverId } from './ManeuverId';
5
+ import { WorldId } from './WorldId';
6
+ export type GetManeuverRequest = {
7
+ world: WorldId;
8
+ id: ManeuverId;
9
+ };
@@ -0,0 +1,5 @@
1
+ //! Copyright (C) Call of Nil contributors
2
+ //! SPDX-License-Identifier: AGPL-3.0-only
3
+
4
+ import { Maneuver } from './Maneuver';
5
+ export type GetManeuverResponse = Maneuver | null;
@@ -43,6 +43,7 @@ export type { BuildingStats } from './BuildingStats';
43
43
  export type { BuildingStatsTable } from './BuildingStatsTable';
44
44
  export type { BuildStep } from './BuildStep';
45
45
  export type { CancelAcademyRecruitOrderRequest } from './CancelAcademyRecruitOrderRequest';
46
+ export type { CancelManeuverRequest } from './CancelManeuverRequest';
46
47
  export type { CancelPrefectureBuildOrderRequest } from './CancelPrefectureBuildOrderRequest';
47
48
  export type { CancelStableRecruitOrderRequest } from './CancelStableRecruitOrderRequest';
48
49
  export type { CancelWorkshopRecruitOrderRequest } from './CancelWorkshopRecruitOrderRequest';
@@ -133,6 +134,10 @@ export type { Food } from './Food';
133
134
  export type { ForwardReportRequest } from './ForwardReportRequest';
134
135
  export type { GetAcademyRecruitCatalogRequest } from './GetAcademyRecruitCatalogRequest';
135
136
  export type { GetAcademyRecruitCatalogResponse } from './GetAcademyRecruitCatalogResponse';
137
+ export type { GetArmyOwnerRequest } from './GetArmyOwnerRequest';
138
+ export type { GetArmyOwnerResponse } from './GetArmyOwnerResponse';
139
+ export type { GetArmyRequest } from './GetArmyRequest';
140
+ export type { GetArmyResponse } from './GetArmyResponse';
136
141
  export type { GetBotCoordsRequest } from './GetBotCoordsRequest';
137
142
  export type { GetBotCoordsResponse } from './GetBotCoordsResponse';
138
143
  export type { GetChatHistoryRequest } from './GetChatHistoryRequest';
@@ -143,6 +148,8 @@ export type { GetCityScoreRequest } from './GetCityScoreRequest';
143
148
  export type { GetCityScoreResponse } from './GetCityScoreResponse';
144
149
  export type { GetContinentSizeRequest } from './GetContinentSizeRequest';
145
150
  export type { GetContinentSizeResponse } from './GetContinentSizeResponse';
151
+ export type { GetManeuverRequest } from './GetManeuverRequest';
152
+ export type { GetManeuverResponse } from './GetManeuverResponse';
146
153
  export type { GetPlayerCoordsRequest } from './GetPlayerCoordsRequest';
147
154
  export type { GetPlayerCoordsResponse } from './GetPlayerCoordsResponse';
148
155
  export type { GetPlayerIdsRequest } from './GetPlayerIdsRequest';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tsukilabs/nil-bindings",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "type": "module",
5
- "packageManager": "pnpm@11.9.0",
5
+ "packageManager": "pnpm@11.11.0",
6
6
  "license": "AGPL-3.0-only",
7
7
  "private": false,
8
8
  "homepage": "https://nil.dev.br",