@tsukilabs/nil-bindings 0.6.10 → 0.7.0
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 +12 -2
- package/dist/src/CheatFillWorldRequest.d.ts +9 -0
- package/dist/src/ffi_QueueEntry.d.ts +8 -0
- package/dist/src/ffi_QueueEntryKind.d.ts +4 -0
- package/dist/src/ffi_RequestId.d.ts +4 -0
- package/dist/src/ffi_Response.d.ts +16 -0
- package/dist/src/ffi_Result.d.ts +13 -0
- package/dist/src/ffi_Status.d.ts +10 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/serde_json/JsonValue.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "0.
|
|
2
|
+
var version = "0.7.0";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/env_Var.ts
|
|
5
5
|
var env_Var = /* @__PURE__ */ function(env_Var) {
|
|
@@ -15,9 +15,19 @@ var env_Var = /* @__PURE__ */ function(env_Var) {
|
|
|
15
15
|
return env_Var;
|
|
16
16
|
}({});
|
|
17
17
|
//#endregion
|
|
18
|
+
//#region src/ffi_Status.ts
|
|
19
|
+
var ffi_Status = /* @__PURE__ */ function(ffi_Status) {
|
|
20
|
+
ffi_Status[ffi_Status["OK"] = 0] = "OK";
|
|
21
|
+
ffi_Status[ffi_Status["ERR_NULL_POINTER"] = 1] = "ERR_NULL_POINTER";
|
|
22
|
+
ffi_Status[ffi_Status["ERR_NOTHING_TO_POLL"] = 2] = "ERR_NOTHING_TO_POLL";
|
|
23
|
+
ffi_Status[ffi_Status["ERR_SERIALIZATION"] = 3] = "ERR_SERIALIZATION";
|
|
24
|
+
ffi_Status[ffi_Status["ERR_UNKNOWN"] = 2147483647] = "ERR_UNKNOWN";
|
|
25
|
+
return ffi_Status;
|
|
26
|
+
}({});
|
|
27
|
+
//#endregion
|
|
18
28
|
//#region src/index.ts
|
|
19
29
|
//! Copyright (C) Call of Nil contributors
|
|
20
30
|
//! SPDX-License-Identifier: AGPL-3.0-only
|
|
21
31
|
var VERSION = version;
|
|
22
32
|
//#endregion
|
|
23
|
-
export { VERSION, env_Var };
|
|
33
|
+
export { VERSION, env_Var, ffi_Status };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//! Copyright (C) Call of Nil contributors
|
|
2
|
+
//! SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
+
|
|
4
|
+
import { ffi_RequestId } from './ffi_RequestId';
|
|
5
|
+
import { ffi_Status } from './ffi_Status';
|
|
6
|
+
import { JsonValue } from './serde_json/JsonValue';
|
|
7
|
+
export type ffi_Response = {
|
|
8
|
+
id: ffi_RequestId;
|
|
9
|
+
} & ({
|
|
10
|
+
"kind": "ok";
|
|
11
|
+
data: JsonValue;
|
|
12
|
+
} | {
|
|
13
|
+
"kind": "err";
|
|
14
|
+
status: ffi_Status;
|
|
15
|
+
error: string;
|
|
16
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//! Copyright (C) Call of Nil contributors
|
|
2
|
+
//! SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
+
|
|
4
|
+
import { ffi_Status } from './ffi_Status';
|
|
5
|
+
import { JsonValue } from './serde_json/JsonValue';
|
|
6
|
+
export type ffi_Result = {
|
|
7
|
+
"kind": "ok";
|
|
8
|
+
data: JsonValue;
|
|
9
|
+
} | {
|
|
10
|
+
"kind": "err";
|
|
11
|
+
status: ffi_Status;
|
|
12
|
+
error: string;
|
|
13
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export type { ChatMessageAuthor } from './ChatMessageAuthor';
|
|
|
53
53
|
export type { ChatMessageContent } from './ChatMessageContent';
|
|
54
54
|
export type { ChatMessageId } from './ChatMessageId';
|
|
55
55
|
export type { ChatMessageKind } from './ChatMessageKind';
|
|
56
|
+
export type { CheatFillWorldRequest } from './CheatFillWorldRequest';
|
|
56
57
|
export type { CheatGetAcademyRecruitQueueRequest } from './CheatGetAcademyRecruitQueueRequest';
|
|
57
58
|
export type { CheatGetAcademyRecruitQueueResponse } from './CheatGetAcademyRecruitQueueResponse';
|
|
58
59
|
export type { CheatGetAcademyRecruitQueuesRequest } from './CheatGetAcademyRecruitQueuesRequest';
|
|
@@ -135,6 +136,12 @@ export type { Ethics } from './Ethics';
|
|
|
135
136
|
export type { EthicTruthAxis } from './EthicTruthAxis';
|
|
136
137
|
export type { Event } from './Event';
|
|
137
138
|
export type { Farm } from './Farm';
|
|
139
|
+
export type { ffi_QueueEntry } from './ffi_QueueEntry';
|
|
140
|
+
export type { ffi_QueueEntryKind } from './ffi_QueueEntryKind';
|
|
141
|
+
export type { ffi_RequestId } from './ffi_RequestId';
|
|
142
|
+
export type { ffi_Response } from './ffi_Response';
|
|
143
|
+
export type { ffi_Result } from './ffi_Result';
|
|
144
|
+
export { ffi_Status } from './ffi_Status';
|
|
138
145
|
export type { Food } from './Food';
|
|
139
146
|
export type { ForwardReportRequest } from './ForwardReportRequest';
|
|
140
147
|
export type { GetAcademyRecruitCatalogRequest } from './GetAcademyRecruitCatalogRequest';
|