@sandvichxyz/pecans 1.0.2 → 1.0.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/generated/decoders.d.ts +5 -1
- package/dist/generated/decoders.d.ts.map +1 -1
- package/dist/generated/decoders.js +46 -0
- package/dist/generated/decoders.js.map +1 -1
- package/dist/generated/modules/account.js +7 -7
- package/dist/generated/modules/account.js.map +1 -1
- package/dist/generated/modules/answer.d.ts +3 -3
- package/dist/generated/modules/answer.d.ts.map +1 -1
- package/dist/generated/modules/answer.js +7 -7
- package/dist/generated/modules/answer.js.map +1 -1
- package/dist/generated/modules/ask.d.ts +66 -1
- package/dist/generated/modules/ask.d.ts.map +1 -1
- package/dist/generated/modules/ask.js +175 -10
- package/dist/generated/modules/ask.js.map +1 -1
- package/dist/generated/modules/auth.js +4 -4
- package/dist/generated/modules/auth.js.map +1 -1
- package/dist/generated/modules/drawing.js +8 -8
- package/dist/generated/modules/drawing.js.map +1 -1
- package/dist/generated/modules/feed.js +5 -5
- package/dist/generated/modules/feed.js.map +1 -1
- package/dist/generated/modules/forum.d.ts +10 -1
- package/dist/generated/modules/forum.d.ts.map +1 -1
- package/dist/generated/modules/forum.js +36 -18
- package/dist/generated/modules/forum.js.map +1 -1
- package/dist/generated/modules/images.js +4 -4
- package/dist/generated/modules/images.js.map +1 -1
- package/dist/generated/modules/messages.d.ts +21 -0
- package/dist/generated/modules/messages.d.ts.map +1 -1
- package/dist/generated/modules/messages.js +54 -9
- package/dist/generated/modules/messages.js.map +1 -1
- package/dist/generated/modules/notify.js +3 -3
- package/dist/generated/modules/notify.js.map +1 -1
- package/dist/generated/modules/profile.js +7 -7
- package/dist/generated/modules/profile.js.map +1 -1
- package/dist/generated/modules/qa.js +1 -1
- package/dist/generated/modules/qa.js.map +1 -1
- package/dist/generated/modules/settings.d.ts.map +1 -1
- package/dist/generated/modules/settings.js +6 -6
- package/dist/generated/modules/settings.js.map +1 -1
- package/dist/generated/types.d.ts +177 -9
- package/dist/generated/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { ListDataResponse, QuestionMetadata, QuestionText, QuestionTextResponse } from "./types";
|
|
1
|
+
import { AnswersResponse, BumpQuestionResponse, ListDataResponse, QuestionAnswer, QuestionMetadata, QuestionText, QuestionTextResponse, ViewQuestionResponse } from "./types";
|
|
2
|
+
export declare function decodeAnswersResponse(raw: any): AnswersResponse;
|
|
3
|
+
export declare function decodeBumpQuestionResponse(raw: any): BumpQuestionResponse;
|
|
2
4
|
export declare function decodeListDataResponse(raw: any): ListDataResponse;
|
|
5
|
+
export declare function decodeQuestionAnswer(raw: any): QuestionAnswer;
|
|
3
6
|
export declare function decodeQuestionMetadata(raw: any): QuestionMetadata;
|
|
4
7
|
export declare function decodeQuestionText(raw: any): QuestionText;
|
|
5
8
|
export declare function decodeQuestionTextResponse(raw: any): QuestionTextResponse;
|
|
9
|
+
export declare function decodeViewQuestionResponse(raw: any): ViewQuestionResponse;
|
|
6
10
|
//# sourceMappingURL=decoders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoders.d.ts","sourceRoot":"","sources":["../../src/generated/decoders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"decoders.d.ts","sourceRoot":"","sources":["../../src/generated/decoders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE9K,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,GAAG,GAAG,eAAe,CAS/D;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,GAAG,GAAG,oBAAoB,CAOzE;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,GAAG,gBAAgB,CAOjE;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,GAAG,cAAc,CAS7D;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,GAAG,gBAAgB,CAWjE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,GAAG,YAAY,CAKzD;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,GAAG,GAAG,oBAAoB,CAOzE;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,GAAG,GAAG,oBAAoB,CAazE"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.decodeAnswersResponse = decodeAnswersResponse;
|
|
4
|
+
exports.decodeBumpQuestionResponse = decodeBumpQuestionResponse;
|
|
3
5
|
exports.decodeListDataResponse = decodeListDataResponse;
|
|
6
|
+
exports.decodeQuestionAnswer = decodeQuestionAnswer;
|
|
4
7
|
exports.decodeQuestionMetadata = decodeQuestionMetadata;
|
|
5
8
|
exports.decodeQuestionText = decodeQuestionText;
|
|
6
9
|
exports.decodeQuestionTextResponse = decodeQuestionTextResponse;
|
|
10
|
+
exports.decodeViewQuestionResponse = decodeViewQuestionResponse;
|
|
11
|
+
function decodeAnswersResponse(raw) {
|
|
12
|
+
return {
|
|
13
|
+
ok: raw["ok"],
|
|
14
|
+
error: raw["error"],
|
|
15
|
+
profiles: raw["profiles"],
|
|
16
|
+
answers: (raw["answers"] ?? []).map(decodeQuestionAnswer),
|
|
17
|
+
hasMore: raw["hasMore"],
|
|
18
|
+
nextId: raw["nextId"],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function decodeBumpQuestionResponse(raw) {
|
|
22
|
+
return {
|
|
23
|
+
ok: raw["ok"],
|
|
24
|
+
error: raw["error"],
|
|
25
|
+
profiles: raw["profiles"],
|
|
26
|
+
expireTime: raw["it"],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
7
29
|
function decodeListDataResponse(raw) {
|
|
8
30
|
return {
|
|
9
31
|
ok: raw["ok"],
|
|
@@ -12,6 +34,16 @@ function decodeListDataResponse(raw) {
|
|
|
12
34
|
questions: (raw["questions"] ?? []).map(decodeQuestionMetadata),
|
|
13
35
|
};
|
|
14
36
|
}
|
|
37
|
+
function decodeQuestionAnswer(raw) {
|
|
38
|
+
return {
|
|
39
|
+
id: raw["id"],
|
|
40
|
+
body: raw["b"],
|
|
41
|
+
time: raw["t"],
|
|
42
|
+
questionId: raw["q"],
|
|
43
|
+
convoId: raw["mc"],
|
|
44
|
+
unread: raw["in"],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
15
47
|
function decodeQuestionMetadata(raw) {
|
|
16
48
|
return {
|
|
17
49
|
id: raw["id"],
|
|
@@ -38,4 +70,18 @@ function decodeQuestionTextResponse(raw) {
|
|
|
38
70
|
questions: (raw["questions"] ?? []).map(decodeQuestionText),
|
|
39
71
|
};
|
|
40
72
|
}
|
|
73
|
+
function decodeViewQuestionResponse(raw) {
|
|
74
|
+
return {
|
|
75
|
+
ok: raw["ok"],
|
|
76
|
+
error: raw["error"],
|
|
77
|
+
profiles: raw["profiles"],
|
|
78
|
+
id: raw["id"],
|
|
79
|
+
time: raw["time"],
|
|
80
|
+
text: raw["text"],
|
|
81
|
+
isPublic: raw["isPublic"],
|
|
82
|
+
responseCount: raw["responses"],
|
|
83
|
+
user: raw["user"],
|
|
84
|
+
isYours: raw["isYours"],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
41
87
|
//# sourceMappingURL=decoders.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoders.js","sourceRoot":"","sources":["../../src/generated/decoders.ts"],"names":[],"mappings":";;AAGA,wDAOC;AAED,wDAWC;AAED,gDAKC;AAED,gEAOC;
|
|
1
|
+
{"version":3,"file":"decoders.js","sour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MAAM,CAAC;QACjB,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC;QACjB,QAAQ,EAAE,GAAG,CAAC,UAAU,CAAC;QACzB,aAAa,EAAE,GAAG,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC;QACjB,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC;KAC1B,CAAC;AACN,CAAC"}
|
|
@@ -8,12 +8,12 @@ class AccountModule extends runtime_1.Module {
|
|
|
8
8
|
return new runtime_1.Call(this.client, {
|
|
9
9
|
fn: "account.register",
|
|
10
10
|
payload: {
|
|
11
|
-
email: email,
|
|
12
|
-
username: username,
|
|
13
|
-
password1: password,
|
|
14
|
-
password2: password,
|
|
15
|
-
age: true,
|
|
16
|
-
tos: true,
|
|
11
|
+
"email": email,
|
|
12
|
+
"username": username,
|
|
13
|
+
"password1": password,
|
|
14
|
+
"password2": password,
|
|
15
|
+
"age": true,
|
|
16
|
+
"tos": true,
|
|
17
17
|
},
|
|
18
18
|
});
|
|
19
19
|
}
|
|
@@ -21,7 +21,7 @@ class AccountModule extends runtime_1.Module {
|
|
|
21
21
|
return new runtime_1.Call(this.client, {
|
|
22
22
|
fn: "account.activate",
|
|
23
23
|
payload: {
|
|
24
|
-
token: token,
|
|
24
|
+
"token": token,
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/generated/modules/account.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,aAAc,SAAQ,gBAAM;IAC9B,QAAQ,CAAC,KAAa,EAAE,QAAgB,EAAE,QAAgB;QAC7D,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,kBAAkB;YACtB,OAAO,EAAE;gBACL,
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/generated/modules/account.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,aAAc,SAAQ,gBAAM;IAC9B,QAAQ,CAAC,KAAa,EAAE,QAAgB,EAAE,QAAgB;QAC7D,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,kBAAkB;YACtB,OAAO,EAAE;gBACL,OAAO,EAAE,KAAK;gBACd,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,QAAQ;gBACrB,WAAW,EAAE,QAAQ;gBACrB,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;aACd;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,QAAQ,CAAC,KAAa;QACzB,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,kBAAkB;YACtB,OAAO,EAAE;gBACL,OAAO,EAAE,KAAK;aACjB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAvBD,sCAuBC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Call, Module } from "../../runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { AnswerQuestion, AnswerReplyResponse, TCResponse } from "../types";
|
|
3
3
|
import { DismissAction } from "../enums";
|
|
4
4
|
export declare class AnswerModule extends Module {
|
|
5
|
-
fetchNext(): Call<
|
|
5
|
+
fetchNext(): Call<AnswerQuestion>;
|
|
6
6
|
dismissQuestion(questionId: number, action: DismissAction): Call<TCResponse>;
|
|
7
7
|
pollVote(questionId: number, optionNum: number): Call<TCResponse>;
|
|
8
|
-
queueQuestion(questionId: number): Call<
|
|
8
|
+
queueQuestion(questionId: number): Call<AnswerQuestion>;
|
|
9
9
|
reply(questionId: number, text: string): Call<AnswerReplyResponse>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=answer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"answer.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/answer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"answer.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/answer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,qBAAa,YAAa,SAAQ,MAAM;IAC7B,SAAS,IAAI,IAAI,CAAC,cAAc,CAAC;IAOjC,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC;IAU5E,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IAUjE,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC;IASvD,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC;CAS5E"}
|
|
@@ -14,8 +14,8 @@ class AnswerModule extends runtime_1.Module {
|
|
|
14
14
|
return new runtime_1.Call(this.client, {
|
|
15
15
|
fn: "answer.dismissquestion",
|
|
16
16
|
payload: {
|
|
17
|
-
questionId: questionId,
|
|
18
|
-
action: action,
|
|
17
|
+
"questionId": questionId,
|
|
18
|
+
"action": action,
|
|
19
19
|
},
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -23,8 +23,8 @@ class AnswerModule extends runtime_1.Module {
|
|
|
23
23
|
return new runtime_1.Call(this.client, {
|
|
24
24
|
fn: "answer.pollvote",
|
|
25
25
|
payload: {
|
|
26
|
-
questionId: questionId,
|
|
27
|
-
optionNum: optionNum,
|
|
26
|
+
"questionId": questionId,
|
|
27
|
+
"optionNum": optionNum,
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ class AnswerModule extends runtime_1.Module {
|
|
|
32
32
|
return new runtime_1.Call(this.client, {
|
|
33
33
|
fn: "answer.queuequestion",
|
|
34
34
|
payload: {
|
|
35
|
-
questionId: questionId,
|
|
35
|
+
"questionId": questionId,
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -40,8 +40,8 @@ class AnswerModule extends runtime_1.Module {
|
|
|
40
40
|
return new runtime_1.Call(this.client, {
|
|
41
41
|
fn: "answer.reply",
|
|
42
42
|
payload: {
|
|
43
|
-
questionId: questionId,
|
|
44
|
-
text: text,
|
|
43
|
+
"questionId": questionId,
|
|
44
|
+
"text": text,
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"answer.js","sourceRoot":"","sources":["../../../src/generated/modules/answer.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;
|
|
1
|
+
{"version":3,"file":"answer.js","sourceRoot":"","sources":["../../../src/generated/modules/answer.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAI7C,MAAa,YAAa,SAAQ,gBAAM;IAC7B,SAAS;QACZ,OAAO,IAAI,cAAI,CAAiB,IAAI,CAAC,MAAM,EAAE;YACzC,EAAE,EAAE,gBAAgB;YACpB,OAAO,EAAE,EAAE;SACd,CAAC,CAAC;IACP,CAAC;IAEM,eAAe,CAAC,UAAkB,EAAE,MAAqB;QAC5D,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,wBAAwB;YAC5B,OAAO,EAAE;gBACL,YAAY,EAAE,UAAU;gBACxB,QAAQ,EAAE,MAAM;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,QAAQ,CAAC,UAAkB,EAAE,SAAiB;QACjD,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE;gBACL,YAAY,EAAE,UAAU;gBACxB,WAAW,EAAE,SAAS;aACzB;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,aAAa,CAAC,UAAkB;QACnC,OAAO,IAAI,cAAI,CAAiB,IAAI,CAAC,MAAM,EAAE;YACzC,EAAE,EAAE,sBAAsB;YAC1B,OAAO,EAAE;gBACL,YAAY,EAAE,UAAU;aAC3B;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,KAAK,CAAC,UAAkB,EAAE,IAAY;QACzC,OAAO,IAAI,cAAI,CAAsB,IAAI,CAAC,MAAM,EAAE;YAC9C,EAAE,EAAE,cAAc;YAClB,OAAO,EAAE;gBACL,YAAY,EAAE,UAAU;gBACxB,MAAM,EAAE,IAAI;aACf;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA9CD,oCA8CC"}
|
|
@@ -1,6 +1,71 @@
|
|
|
1
1
|
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { ListDataResponse, QuestionData, QuestionMetadata, QuestionTextResponse } from "../types";
|
|
2
|
+
import { AnswersResponse, BumpQuestionResponse, GetResponseResponse, ListDataResponse, PinToggleResponse, PostQuestionBody, QuestionData, QuestionMetadata, QuestionTextResponse, TCResponse, ViewQuestionResponse } from "../types";
|
|
3
3
|
export declare class AskModule extends Module {
|
|
4
|
+
/**
|
|
5
|
+
* Ask a new question, optionally with a poll.
|
|
6
|
+
*
|
|
7
|
+
* @param body - The question text, visibility, and optional poll.
|
|
8
|
+
*/
|
|
9
|
+
postQuestion(body: PostQuestionBody): Call<TCResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* View a single question by id (its public view page).
|
|
12
|
+
*
|
|
13
|
+
* @param questionId - Id of the question to view.
|
|
14
|
+
*/
|
|
15
|
+
viewQuestion(questionId: number): Call<ViewQuestionResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Fetch a single answer/response by its answer id.
|
|
18
|
+
*
|
|
19
|
+
* @param answerId - Id of the answer to fetch.
|
|
20
|
+
*/
|
|
21
|
+
getResponse(answerId: number): Call<GetResponseResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Start a conversation ("respectful rebuttal") in reply to an answer.
|
|
24
|
+
*
|
|
25
|
+
* @param answerId - Id of the answer being replied to.
|
|
26
|
+
* @param content - Body text of the reply.
|
|
27
|
+
* @param unanonymize - Reveal your identity in the conversation.
|
|
28
|
+
*/
|
|
29
|
+
startConversation(answerId: number, content: string, unanonymize?: boolean): Call<TCResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch a page of answers to a question you asked.
|
|
32
|
+
*
|
|
33
|
+
* @param questionId - Id of the question whose answers to fetch.
|
|
34
|
+
* @param mode - Paging mode: "expand" (initial), "expandmore" (older), or "inject" (newer than `refId`).
|
|
35
|
+
* @param refId - Cursor answer id the mode pages relative to (0 for none).
|
|
36
|
+
*/
|
|
37
|
+
getAnswers(questionId: number, mode: string, refId: number): Call<AnswersResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Pin or unpin a question to your profile.
|
|
40
|
+
*
|
|
41
|
+
* @param questionId - Id of the question to pin/unpin.
|
|
42
|
+
* @param pinned - True to pin, false to unpin.
|
|
43
|
+
*/
|
|
44
|
+
pinToggle(questionId: number, pinned: boolean): Call<PinToggleResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Bump a question back to the top of its recipient's queue.
|
|
47
|
+
*
|
|
48
|
+
* @param questionId - Id of the question to bump.
|
|
49
|
+
*/
|
|
50
|
+
bumpQuestion(questionId: number): Call<BumpQuestionResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Delete a question that was asked to you.
|
|
53
|
+
*
|
|
54
|
+
* @param questionId - Id of the question to delete.
|
|
55
|
+
*/
|
|
56
|
+
deleteQuestion(questionId: number): Call<TCResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Delete one of your answers.
|
|
59
|
+
*
|
|
60
|
+
* @param answerId - Id of the answer to delete.
|
|
61
|
+
*/
|
|
62
|
+
deleteAnswer(answerId: number): Call<TCResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Mark an answer as read.
|
|
65
|
+
*
|
|
66
|
+
* @param answerId - Id of the answer to mark read.
|
|
67
|
+
*/
|
|
68
|
+
markAnswerRead(answerId: number): Call<TCResponse>;
|
|
4
69
|
/**
|
|
5
70
|
* List all question headers without body text.
|
|
6
71
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ask.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/ask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ask.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/ask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrO,qBAAa,SAAU,SAAQ,MAAM;IACjC;;;;OAIG;IACI,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC;IAa7D;;;;OAIG;IACI,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC;IASnE;;;;OAIG;IACI,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC;IAS/D;;;;;;OAMG;IACI,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,GAAE,OAAe,GAAG,IAAI,CAAC,UAAU,CAAC;IAW3G;;;;;;OAMG;IACI,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC;IAazF;;;;;OAKG;IACI,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC;IAa9E;;;;OAIG;IACI,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC;IAanE;;;;OAIG;IACI,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IAa3D;;;;OAIG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IAavD;;;;OAIG;IACI,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IAazD;;;;;;OAMG;IACI,QAAQ,IAAI,IAAI,CAAC,gBAAgB,CAAC;IAazC;;;;;OAKG;IACI,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC;IAavD;;;;;;;;OAQG;IACU,cAAc,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;CAWrF"}
|
|
@@ -6,6 +6,171 @@ const runtime_1 = require("../../runtime");
|
|
|
6
6
|
const join_1 = require("../../runtime/join");
|
|
7
7
|
const decoders_1 = require("../decoders");
|
|
8
8
|
class AskModule extends runtime_1.Module {
|
|
9
|
+
/**
|
|
10
|
+
* Ask a new question, optionally with a poll.
|
|
11
|
+
*
|
|
12
|
+
* @param body - The question text, visibility, and optional poll.
|
|
13
|
+
*/
|
|
14
|
+
postQuestion(body) {
|
|
15
|
+
return new runtime_1.Call(this.client, {
|
|
16
|
+
fn: "legacy.askapi",
|
|
17
|
+
payload: {
|
|
18
|
+
"rawEmbeddedJsonLolInternalTechDebt": JSON.stringify(body),
|
|
19
|
+
"name": "postquestion",
|
|
20
|
+
"arg1": "undefined",
|
|
21
|
+
"arg2": "undefined",
|
|
22
|
+
"arg3": "undefined",
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* View a single question by id (its public view page).
|
|
28
|
+
*
|
|
29
|
+
* @param questionId - Id of the question to view.
|
|
30
|
+
*/
|
|
31
|
+
viewQuestion(questionId) {
|
|
32
|
+
return new runtime_1.Call(this.client, {
|
|
33
|
+
fn: "ask.viewquestion",
|
|
34
|
+
payload: {
|
|
35
|
+
"questionId": questionId,
|
|
36
|
+
},
|
|
37
|
+
}, decoders_1.decodeViewQuestionResponse);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Fetch a single answer/response by its answer id.
|
|
41
|
+
*
|
|
42
|
+
* @param answerId - Id of the answer to fetch.
|
|
43
|
+
*/
|
|
44
|
+
getResponse(answerId) {
|
|
45
|
+
return new runtime_1.Call(this.client, {
|
|
46
|
+
fn: "ask.getresponse",
|
|
47
|
+
payload: {
|
|
48
|
+
"answerId": answerId,
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Start a conversation ("respectful rebuttal") in reply to an answer.
|
|
54
|
+
*
|
|
55
|
+
* @param answerId - Id of the answer being replied to.
|
|
56
|
+
* @param content - Body text of the reply.
|
|
57
|
+
* @param unanonymize - Reveal your identity in the conversation.
|
|
58
|
+
*/
|
|
59
|
+
startConversation(answerId, content, unanonymize = false) {
|
|
60
|
+
return new runtime_1.Call(this.client, {
|
|
61
|
+
fn: "ask.startconversation",
|
|
62
|
+
payload: {
|
|
63
|
+
"answerId": answerId,
|
|
64
|
+
"content": content,
|
|
65
|
+
"unanonymize": unanonymize,
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Fetch a page of answers to a question you asked.
|
|
71
|
+
*
|
|
72
|
+
* @param questionId - Id of the question whose answers to fetch.
|
|
73
|
+
* @param mode - Paging mode: "expand" (initial), "expandmore" (older), or "inject" (newer than `refId`).
|
|
74
|
+
* @param refId - Cursor answer id the mode pages relative to (0 for none).
|
|
75
|
+
*/
|
|
76
|
+
getAnswers(questionId, mode, refId) {
|
|
77
|
+
return new runtime_1.Call(this.client, {
|
|
78
|
+
fn: "legacy.askapi",
|
|
79
|
+
payload: {
|
|
80
|
+
"arg1": String(questionId),
|
|
81
|
+
"arg2": mode,
|
|
82
|
+
"arg3": String(refId),
|
|
83
|
+
"rawEmbeddedJsonLolInternalTechDebt": null,
|
|
84
|
+
"name": "getanswers",
|
|
85
|
+
},
|
|
86
|
+
}, decoders_1.decodeAnswersResponse);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Pin or unpin a question to your profile.
|
|
90
|
+
*
|
|
91
|
+
* @param questionId - Id of the question to pin/unpin.
|
|
92
|
+
* @param pinned - True to pin, false to unpin.
|
|
93
|
+
*/
|
|
94
|
+
pinToggle(questionId, pinned) {
|
|
95
|
+
return new runtime_1.Call(this.client, {
|
|
96
|
+
fn: "legacy.askapi",
|
|
97
|
+
payload: {
|
|
98
|
+
"arg1": String(questionId),
|
|
99
|
+
"arg2": (pinned ? "1" : "0"),
|
|
100
|
+
"rawEmbeddedJsonLolInternalTechDebt": null,
|
|
101
|
+
"name": "pintoggle",
|
|
102
|
+
"arg3": "0",
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Bump a question back to the top of its recipient's queue.
|
|
108
|
+
*
|
|
109
|
+
* @param questionId - Id of the question to bump.
|
|
110
|
+
*/
|
|
111
|
+
bumpQuestion(questionId) {
|
|
112
|
+
return new runtime_1.Call(this.client, {
|
|
113
|
+
fn: "legacy.askapi",
|
|
114
|
+
payload: {
|
|
115
|
+
"arg1": String(questionId),
|
|
116
|
+
"arg2": "0",
|
|
117
|
+
"arg3": "0",
|
|
118
|
+
"rawEmbeddedJsonLolInternalTechDebt": null,
|
|
119
|
+
"name": "bumpquestion",
|
|
120
|
+
},
|
|
121
|
+
}, decoders_1.decodeBumpQuestionResponse);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Delete a question that was asked to you.
|
|
125
|
+
*
|
|
126
|
+
* @param questionId - Id of the question to delete.
|
|
127
|
+
*/
|
|
128
|
+
deleteQuestion(questionId) {
|
|
129
|
+
return new runtime_1.Call(this.client, {
|
|
130
|
+
fn: "legacy.askapi",
|
|
131
|
+
payload: {
|
|
132
|
+
"arg1": String(questionId),
|
|
133
|
+
"arg2": "0",
|
|
134
|
+
"arg3": "0",
|
|
135
|
+
"rawEmbeddedJsonLolInternalTechDebt": null,
|
|
136
|
+
"name": "deleteques",
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Delete one of your answers.
|
|
142
|
+
*
|
|
143
|
+
* @param answerId - Id of the answer to delete.
|
|
144
|
+
*/
|
|
145
|
+
deleteAnswer(answerId) {
|
|
146
|
+
return new runtime_1.Call(this.client, {
|
|
147
|
+
fn: "legacy.askapi",
|
|
148
|
+
payload: {
|
|
149
|
+
"arg1": String(answerId),
|
|
150
|
+
"arg2": "0",
|
|
151
|
+
"arg3": "0",
|
|
152
|
+
"rawEmbeddedJsonLolInternalTechDebt": null,
|
|
153
|
+
"name": "deleteanswer",
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Mark an answer as read.
|
|
159
|
+
*
|
|
160
|
+
* @param answerId - Id of the answer to mark read.
|
|
161
|
+
*/
|
|
162
|
+
markAnswerRead(answerId) {
|
|
163
|
+
return new runtime_1.Call(this.client, {
|
|
164
|
+
fn: "legacy.askapi",
|
|
165
|
+
payload: {
|
|
166
|
+
"arg1": String(answerId),
|
|
167
|
+
"arg2": "0",
|
|
168
|
+
"arg3": "0",
|
|
169
|
+
"rawEmbeddedJsonLolInternalTechDebt": null,
|
|
170
|
+
"name": "markanswerread",
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
}
|
|
9
174
|
/**
|
|
10
175
|
* List all question headers without body text.
|
|
11
176
|
*
|
|
@@ -17,11 +182,11 @@ class AskModule extends runtime_1.Module {
|
|
|
17
182
|
return new runtime_1.Call(this.client, {
|
|
18
183
|
fn: "legacy.askapi",
|
|
19
184
|
payload: {
|
|
20
|
-
name: "listdata",
|
|
21
|
-
arg1: "0",
|
|
22
|
-
arg2: "none",
|
|
23
|
-
arg3: "0",
|
|
24
|
-
rawEmbeddedJsonLolInternalTechDebt: null,
|
|
185
|
+
"name": "listdata",
|
|
186
|
+
"arg1": "0",
|
|
187
|
+
"arg2": "none",
|
|
188
|
+
"arg3": "0",
|
|
189
|
+
"rawEmbeddedJsonLolInternalTechDebt": null,
|
|
25
190
|
},
|
|
26
191
|
}, decoders_1.decodeListDataResponse);
|
|
27
192
|
}
|
|
@@ -35,11 +200,11 @@ class AskModule extends runtime_1.Module {
|
|
|
35
200
|
return new runtime_1.Call(this.client, {
|
|
36
201
|
fn: "legacy.askapi",
|
|
37
202
|
payload: {
|
|
38
|
-
arg1: ids.join("x"),
|
|
39
|
-
name: "qtext",
|
|
40
|
-
arg2: "0",
|
|
41
|
-
arg3: "0",
|
|
42
|
-
rawEmbeddedJsonLolInternalTechDebt: null,
|
|
203
|
+
"arg1": ids.join("x"),
|
|
204
|
+
"name": "qtext",
|
|
205
|
+
"arg2": "0",
|
|
206
|
+
"arg3": "0",
|
|
207
|
+
"rawEmbeddedJsonLolInternalTechDebt": null,
|
|
43
208
|
},
|
|
44
209
|
}, decoders_1.decodeQuestionTextResponse);
|
|
45
210
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ask.js","sourceRoot":"","sources":["../../../src/generated/modules/ask.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAC7C,6CAA4C;AAE5C,
|
|
1
|
+
{"version":3,"file":"ask.js","sourceRoot":"","sources":["../../../src/generated/modules/ask.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAC7C,6CAA4C;AAE5C,0CAAgK;AAEhK,MAAa,SAAU,SAAQ,gBAAM;IACjC;;;;OAIG;IACI,YAAY,CAAC,IAAsB;QACtC,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,eAAe;YACnB,OAAO,EAAE;gBACL,oCAAoC,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;gBAC1D,MAAM,EAAE,cAAc;gBACtB,MAAM,EAAE,WAAW;gBACnB,MAAM,EAAE,WAAW;gBACnB,MAAM,EAAE,WAAW;aACtB;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,YAAY,CAAC,UAAkB;QAClC,OAAO,IAAI,cAAI,CAAuB,IAAI,CAAC,MAAM,EAAE;YAC/C,EAAE,EAAE,kBAAkB;YACtB,OAAO,EAAE;gBACL,YAAY,EAAE,UAAU;aAC3B;SACJ,EAAE,qCAA0B,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACI,WAAW,CAAC,QAAgB;QAC/B,OAAO,IAAI,cAAI,CAAsB,IAAI,CAAC,MAAM,EAAE;YAC9C,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE;gBACL,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;;OAMG;IACI,iBAAiB,CAAC,QAAgB,EAAE,OAAe,EAAE,cAAuB,KAAK;QACpF,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,uBAAuB;YAC3B,OAAO,EAAE;gBACL,UAAU,E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;;;;;OAKG;IACI,KAAK,CAAC,GAAa;QACtB,OAAO,IAAI,cAAI,CAAuB,IAAI,CAAC,MAAM,EAAE;YAC/C,EAAE,EAAE,eAAe;YACnB,OAAO,EAAE;gBACL,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC;gBACrB,MAAM,EAAE,OAAO;gBACf,MAAM,EAAE,GAAG;gBACX,MAAM,EAAE,GAAG;gBACX,oCAAoC,EAAE,IAAI;aAC7C;SACJ,EAAE,qCAA0B,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;;OAQG;IACI,KAAK,CAAC,cAAc,CAAC,QAA4B;QACpD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAExD,OAAO,IAAA,aAAM,EACT,QAAQ,EACR,GAAG,CAAC,SAAS,IAAI,EAAE,EACnB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,EACnB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EACX,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAClD,CAAC;IACN,CAAC;CACJ;AA3OD,8BA2OC"}
|
|
@@ -8,9 +8,9 @@ class AuthModule extends runtime_1.Module {
|
|
|
8
8
|
return new runtime_1.Call(this.client, {
|
|
9
9
|
fn: "auth.login",
|
|
10
10
|
payload: {
|
|
11
|
-
nameOrEmail: username,
|
|
12
|
-
password: password,
|
|
13
|
-
client: client,
|
|
11
|
+
"nameOrEmail": username,
|
|
12
|
+
"password": password,
|
|
13
|
+
"client": client,
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -18,7 +18,7 @@ class AuthModule extends runtime_1.Module {
|
|
|
18
18
|
return new runtime_1.Call(this.client, {
|
|
19
19
|
fn: "auth.existingcookie",
|
|
20
20
|
payload: {
|
|
21
|
-
cookie: cookie,
|
|
21
|
+
"cookie": cookie,
|
|
22
22
|
},
|
|
23
23
|
});
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/generated/modules/auth.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,UAAW,SAAQ,gBAAM;IAC3B,KAAK,CAAC,QAAgB,EAAE,QAAgB,EAAE,SAAiB,KAAK;QACnE,OAAO,IAAI,cAAI,CAAgB,IAAI,CAAC,MAAM,EAAE;YACxC,EAAE,EAAE,YAAY;YAChB,OAAO,EAAE;gBACL,
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/generated/modules/auth.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,UAAW,SAAQ,gBAAM;IAC3B,KAAK,CAAC,QAAgB,EAAE,QAAgB,EAAE,SAAiB,KAAK;QACnE,OAAO,IAAI,cAAI,CAAgB,IAAI,CAAC,MAAM,EAAE;YACxC,EAAE,EAAE,YAAY;YAChB,OAAO,EAAE;gBACL,aAAa,EAAE,QAAQ;gBACvB,UAAU,EAAE,QAAQ;gBACpB,QAAQ,EAAE,MAAM;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,cAAc,CAAC,MAAc;QAChC,OAAO,IAAI,cAAI,CAAyB,IAAI,CAAC,MAAM,EAAE;YACjD,EAAE,EAAE,qBAAqB;YACzB,OAAO,EAAE;gBACL,QAAQ,EAAE,MAAM;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AApBD,gCAoBC"}
|
|
@@ -15,9 +15,9 @@ class DrawingModule extends runtime_1.Module {
|
|
|
15
15
|
return new runtime_1.Call(this.client, {
|
|
16
16
|
fn: "legacy.drawing",
|
|
17
17
|
payload: {
|
|
18
|
-
data: data,
|
|
19
|
-
makeActive: makeActive,
|
|
20
|
-
action: "save",
|
|
18
|
+
"data": data,
|
|
19
|
+
"makeActive": makeActive,
|
|
20
|
+
"action": "save",
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -31,8 +31,8 @@ class DrawingModule extends runtime_1.Module {
|
|
|
31
31
|
return new runtime_1.Call(this.client, {
|
|
32
32
|
fn: "legacy.drawing",
|
|
33
33
|
payload: {
|
|
34
|
-
imageId: imageId,
|
|
35
|
-
action: "initial-image-data",
|
|
34
|
+
"imageId": imageId,
|
|
35
|
+
"action": "initial-image-data",
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -46,8 +46,8 @@ class DrawingModule extends runtime_1.Module {
|
|
|
46
46
|
return new runtime_1.Call(this.client, {
|
|
47
47
|
fn: "drawing.send",
|
|
48
48
|
payload: {
|
|
49
|
-
imageId: imageId,
|
|
50
|
-
receiver: receiver,
|
|
49
|
+
"imageId": imageId,
|
|
50
|
+
"receiver": receiver,
|
|
51
51
|
},
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -60,7 +60,7 @@ class DrawingModule extends runtime_1.Module {
|
|
|
60
60
|
return new runtime_1.Call(this.client, {
|
|
61
61
|
fn: "drawing.setactive",
|
|
62
62
|
payload: {
|
|
63
|
-
imageId: imageId,
|
|
63
|
+
"imageId": imageId,
|
|
64
64
|
},
|
|
65
65
|
});
|
|
66
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawing.js","sourceRoot":"","sources":["../../../src/generated/modules/drawing.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,aAAc,SAAQ,gBAAM;IACrC;;;;;;OAMG;IACI,WAAW,CAAC,IAAY,EAAE,aAAsB,KAAK;QACxD,OAAO,IAAI,cAAI,CAAsB,IAAI,CAAC,MAAM,EAAE;YAC9C,EAAE,EAAE,gBAAgB;YACpB,OAAO,EAAE;gBACL,
|
|
1
|
+
{"version":3,"file":"drawing.js","sourceRoot":"","sources":["../../../src/generated/modules/drawing.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,aAAc,SAAQ,gBAAM;IACrC;;;;;;OAMG;IACI,WAAW,CAAC,IAAY,EAAE,aAAsB,KAAK;QACxD,OAAO,IAAI,cAAI,CAAsB,IAAI,CAAC,MAAM,EAAE;YAC9C,EAAE,EAAE,gBAAgB;YACpB,OAAO,EAAE;gBACL,MAAM,EAAE,IAAI;gBACZ,YAAY,EAAE,UAAU;gBACxB,QAAQ,EAAE,MAAM;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,OAAe;QAClC,OAAO,IAAI,cAAI,CAA0B,IAAI,CAAC,MAAM,EAAE;YAClD,EAAE,EAAE,gBAAgB;YACpB,OAAO,EAAE;gBACL,SAAS,EAAE,OAAO;gBAClB,QAAQ,EAAE,oBAAoB;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,OAAe,EAAE,QAAgB;QAChD,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,cAAc;YAClB,OAAO,EAAE;gBACL,SAAS,EAAE,OAAO;gBAClB,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,OAAe;QAC5B,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,mBAAmB;YACvB,OAAO,EAAE;gBACL,SAAS,EAAE,OAAO;aACrB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAhED,sCAgEC"}
|
|
@@ -15,8 +15,8 @@ class FeedModule extends runtime_1.Module {
|
|
|
15
15
|
return new runtime_1.Call(this.client, {
|
|
16
16
|
fn: "feed.start",
|
|
17
17
|
payload: {
|
|
18
|
-
user: user,
|
|
19
|
-
size: size,
|
|
18
|
+
"user": user,
|
|
19
|
+
"size": size,
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -32,9 +32,9 @@ class FeedModule extends runtime_1.Module {
|
|
|
32
32
|
return new runtime_1.Call(this.client, {
|
|
33
33
|
fn: "feed.scroll",
|
|
34
34
|
payload: {
|
|
35
|
-
feedId: feedId,
|
|
36
|
-
numItems: numItems,
|
|
37
|
-
lastId: lastId,
|
|
35
|
+
"feedId": feedId,
|
|
36
|
+
"numItems": numItems,
|
|
37
|
+
"lastId": lastId,
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed.js","sourceRoot":"","sources":["../../../src/generated/modules/feed.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,UAAW,SAAQ,gBAAM;IAClC;;;;;;OAMG;IACI,KAAK,CAAC,IAAmB,EAAE,OAAe,EAAE;QAC/C,OAAO,IAAI,cAAI,CAAe,IAAI,CAAC,MAAM,EAAE;YACvC,EAAE,EAAE,YAAY;YAChB,OAAO,EAAE;gBACL,
|
|
1
|
+
{"version":3,"file":"feed.js","sourceRoot":"","sources":["../../../src/generated/modules/feed.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,UAAW,SAAQ,gBAAM;IAClC;;;;;;OAMG;IACI,KAAK,CAAC,IAAmB,EAAE,OAAe,EAAE;QAC/C,OAAO,IAAI,cAAI,CAAe,IAAI,CAAC,MAAM,EAAE;YACvC,EAAE,EAAE,YAAY;YAChB,OAAO,EAAE;gBACL,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE,IAAI;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,MAAc,EAAE,QAAgB,EAAE,MAAc;QAC1D,OAAO,IAAI,cAAI,CAAqB,IAAI,CAAC,MAAM,EAAE;YAC7C,EAAE,EAAE,aAAa;YACjB,OAAO,EAAE;gBACL,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE,QAAQ;gBACpB,QAAQ,EAAE,MAAM;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AApCD,gCAoCC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { ForumCategoriesResponse, ForumSearchResponse, GetQuoteTextResponse, TCResponse, ThreadListResponse, ViewPostsResponse } from "../types";
|
|
2
|
+
import { ForumCategoriesResponse, ForumSearchResponse, GetQuoteTextResponse, NewThreadResponse, TCResponse, ThreadListResponse, ViewPostsResponse } from "../types";
|
|
3
3
|
export declare class ForumModule extends Module {
|
|
4
|
+
/**
|
|
5
|
+
* Create a new thread in a category.
|
|
6
|
+
*
|
|
7
|
+
* @param category - Id of the category to post the thread in.
|
|
8
|
+
* @param title - Thread title.
|
|
9
|
+
* @param text - Body text of the opening post (UCP markup).
|
|
10
|
+
* @returns The new thread's id.
|
|
11
|
+
*/
|
|
12
|
+
newThread(category: string, title: string, text: string): Call<NewThreadResponse>;
|
|
4
13
|
viewPosts(threadId: number, fetchType: string, postId?: number, reverse?: boolean, includePost?: boolean): Call<ViewPostsResponse>;
|
|
5
14
|
replyThread(text: string, threadId: number): Call<TCResponse>;
|
|
6
15
|
readThread(postId: number, threadId: number): Call<TCResponse>;
|