@sandvichxyz/pecans 1.1.2 → 1.1.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/client.d.ts +38 -0
- package/dist/generated/client.d.ts.map +1 -0
- package/dist/generated/client.js +121 -0
- package/dist/generated/client.js.map +1 -0
- package/dist/generated/decoders.d.ts +14 -0
- package/dist/generated/decoders.d.ts.map +1 -0
- package/dist/generated/decoders.js +120 -0
- package/dist/generated/decoders.js.map +1 -0
- package/dist/generated/encoders.d.ts +4 -0
- package/dist/generated/encoders.d.ts.map +1 -0
- package/dist/generated/encoders.js +25 -0
- package/dist/generated/encoders.js.map +1 -0
- package/dist/generated/enums.d.ts +12 -0
- package/dist/generated/enums.d.ts.map +1 -0
- package/dist/generated/enums.js +18 -0
- package/dist/generated/enums.js.map +1 -0
- package/dist/generated/index.d.ts +22 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +39 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/modules/account.d.ts +7 -0
- package/dist/generated/modules/account.d.ts.map +1 -0
- package/dist/generated/modules/account.js +30 -0
- package/dist/generated/modules/account.js.map +1 -0
- package/dist/generated/modules/answer.d.ts +38 -0
- package/dist/generated/modules/answer.d.ts.map +1 -0
- package/dist/generated/modules/answer.js +89 -0
- package/dist/generated/modules/answer.js.map +1 -0
- package/dist/generated/modules/ask.d.ts +95 -0
- package/dist/generated/modules/ask.d.ts.map +1 -0
- package/dist/generated/modules/ask.js +226 -0
- package/dist/generated/modules/ask.js.map +1 -0
- package/dist/generated/modules/auth.d.ts +28 -0
- package/dist/generated/modules/auth.d.ts.map +1 -0
- package/dist/generated/modules/auth.js +53 -0
- package/dist/generated/modules/auth.js.map +1 -0
- package/dist/generated/modules/dashboard.d.ts +11 -0
- package/dist/generated/modules/dashboard.d.ts.map +1 -0
- package/dist/generated/modules/dashboard.js +20 -0
- package/dist/generated/modules/dashboard.js.map +1 -0
- package/dist/generated/modules/drawing.d.ts +33 -0
- package/dist/generated/modules/drawing.d.ts.map +1 -0
- package/dist/generated/modules/drawing.js +69 -0
- package/dist/generated/modules/drawing.js.map +1 -0
- package/dist/generated/modules/feed.d.ts +22 -0
- package/dist/generated/modules/feed.d.ts.map +1 -0
- package/dist/generated/modules/feed.js +43 -0
- package/dist/generated/modules/feed.js.map +1 -0
- package/dist/generated/modules/forum.d.ts +96 -0
- package/dist/generated/modules/forum.d.ts.map +1 -0
- package/dist/generated/modules/forum.js +193 -0
- package/dist/generated/modules/forum.js.map +1 -0
- package/dist/generated/modules/images.d.ts +27 -0
- package/dist/generated/modules/images.d.ts.map +1 -0
- package/dist/generated/modules/images.js +53 -0
- package/dist/generated/modules/images.js.map +1 -0
- package/dist/generated/modules/messages.d.ts +59 -0
- package/dist/generated/modules/messages.d.ts.map +1 -0
- package/dist/generated/modules/messages.js +119 -0
- package/dist/generated/modules/messages.js.map +1 -0
- package/dist/generated/modules/navbar.d.ts +11 -0
- package/dist/generated/modules/navbar.d.ts.map +1 -0
- package/dist/generated/modules/navbar.js +20 -0
- package/dist/generated/modules/navbar.js.map +1 -0
- package/dist/generated/modules/notify.d.ts +27 -0
- package/dist/generated/modules/notify.d.ts.map +1 -0
- package/dist/generated/modules/notify.js +51 -0
- package/dist/generated/modules/notify.js.map +1 -0
- package/dist/generated/modules/profile.d.ts +42 -0
- package/dist/generated/modules/profile.d.ts.map +1 -0
- package/dist/generated/modules/profile.js +87 -0
- package/dist/generated/modules/profile.js.map +1 -0
- package/dist/generated/modules/qa.d.ts +12 -0
- package/dist/generated/modules/qa.d.ts.map +1 -0
- package/dist/generated/modules/qa.js +23 -0
- package/dist/generated/modules/qa.js.map +1 -0
- package/dist/generated/modules/settings.d.ts +23 -0
- package/dist/generated/modules/settings.d.ts.map +1 -0
- package/dist/generated/modules/settings.js +44 -0
- package/dist/generated/modules/settings.js.map +1 -0
- package/dist/generated/modules/stories.d.ts +16 -0
- package/dist/generated/modules/stories.d.ts.map +1 -0
- package/dist/generated/modules/stories.js +35 -0
- package/dist/generated/modules/stories.js.map +1 -0
- package/dist/generated/types.d.ts +956 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/generated/types.js +4 -0
- package/dist/generated/types.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/call.d.ts +19 -0
- package/dist/runtime/call.d.ts.map +1 -0
- package/dist/runtime/call.js +26 -0
- package/dist/runtime/call.js.map +1 -0
- package/dist/runtime/client.d.ts +27 -0
- package/dist/runtime/client.d.ts.map +1 -0
- package/dist/runtime/client.js +90 -0
- package/dist/runtime/client.js.map +1 -0
- package/dist/runtime/index.d.ts +6 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +22 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/join.d.ts +2 -0
- package/dist/runtime/join.d.ts.map +1 -0
- package/dist/runtime/join.js +14 -0
- package/dist/runtime/join.js.map +1 -0
- package/dist/runtime/module.d.ts +7 -0
- package/dist/runtime/module.d.ts.map +1 -0
- package/dist/runtime/module.js +27 -0
- package/dist/runtime/module.js.map +1 -0
- package/dist/runtime/transform.d.ts +19 -0
- package/dist/runtime/transform.d.ts.map +1 -0
- package/dist/runtime/transform.js +40 -0
- package/dist/runtime/transform.js.map +1 -0
- package/dist/runtime/types.d.ts +19 -0
- package/dist/runtime/types.d.ts.map +1 -0
- package/dist/runtime/types.js +3 -0
- package/dist/runtime/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseClient } from "../runtime";
|
|
2
|
+
import { AccountModule } from "./modules/account";
|
|
3
|
+
import { AnswerModule } from "./modules/answer";
|
|
4
|
+
import { AskModule } from "./modules/ask";
|
|
5
|
+
import { AuthModule } from "./modules/auth";
|
|
6
|
+
import { DashboardModule } from "./modules/dashboard";
|
|
7
|
+
import { DrawingModule } from "./modules/drawing";
|
|
8
|
+
import { FeedModule } from "./modules/feed";
|
|
9
|
+
import { ForumModule } from "./modules/forum";
|
|
10
|
+
import { ImagesModule } from "./modules/images";
|
|
11
|
+
import { MessagesModule } from "./modules/messages";
|
|
12
|
+
import { NavbarModule } from "./modules/navbar";
|
|
13
|
+
import { NotifyModule } from "./modules/notify";
|
|
14
|
+
import { ProfileModule } from "./modules/profile";
|
|
15
|
+
import { QaModule } from "./modules/qa";
|
|
16
|
+
import { SettingsModule } from "./modules/settings";
|
|
17
|
+
import { StoriesModule } from "./modules/stories";
|
|
18
|
+
export declare class Client extends BaseClient {
|
|
19
|
+
#private;
|
|
20
|
+
constructor(auth?: string);
|
|
21
|
+
get account(): AccountModule;
|
|
22
|
+
get answer(): AnswerModule;
|
|
23
|
+
get ask(): AskModule;
|
|
24
|
+
get auth(): AuthModule;
|
|
25
|
+
get dashboard(): DashboardModule;
|
|
26
|
+
get drawing(): DrawingModule;
|
|
27
|
+
get feed(): FeedModule;
|
|
28
|
+
get forum(): ForumModule;
|
|
29
|
+
get images(): ImagesModule;
|
|
30
|
+
get messages(): MessagesModule;
|
|
31
|
+
get navbar(): NavbarModule;
|
|
32
|
+
get notify(): NotifyModule;
|
|
33
|
+
get profile(): ProfileModule;
|
|
34
|
+
get qa(): QaModule;
|
|
35
|
+
get settings(): SettingsModule;
|
|
36
|
+
get stories(): StoriesModule;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/generated/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAA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,QAAQ,IAAI,cAAc,CAEpC;IAED,IAAW,OAAO,IAAI,aAAa,CAElC;CACJ"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _Client_account, _Client_answer, _Client_ask, _Client_auth, _Client_dashboard, _Client_drawing, _Client_feed, _Client_forum, _Client_images, _Client_messages, _Client_navbar, _Client_notify, _Client_profile, _Client_qa, _Client_settings, _Client_stories;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Client = void 0;
|
|
16
|
+
/* Generated by pecans-spec. Do not edit. */
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const account_1 = require("./modules/account");
|
|
19
|
+
const answer_1 = require("./modules/answer");
|
|
20
|
+
const ask_1 = require("./modules/ask");
|
|
21
|
+
const auth_1 = require("./modules/auth");
|
|
22
|
+
const dashboard_1 = require("./modules/dashboard");
|
|
23
|
+
const drawing_1 = require("./modules/drawing");
|
|
24
|
+
const feed_1 = require("./modules/feed");
|
|
25
|
+
const forum_1 = require("./modules/forum");
|
|
26
|
+
const images_1 = require("./modules/images");
|
|
27
|
+
const messages_1 = require("./modules/messages");
|
|
28
|
+
const navbar_1 = require("./modules/navbar");
|
|
29
|
+
const notify_1 = require("./modules/notify");
|
|
30
|
+
const profile_1 = require("./modules/profile");
|
|
31
|
+
const qa_1 = require("./modules/qa");
|
|
32
|
+
const settings_1 = require("./modules/settings");
|
|
33
|
+
const stories_1 = require("./modules/stories");
|
|
34
|
+
class Client extends runtime_1.BaseClient {
|
|
35
|
+
constructor(auth) {
|
|
36
|
+
super(auth);
|
|
37
|
+
_Client_account.set(this, void 0);
|
|
38
|
+
_Client_answer.set(this, void 0);
|
|
39
|
+
_Client_ask.set(this, void 0);
|
|
40
|
+
_Client_auth.set(this, void 0);
|
|
41
|
+
_Client_dashboard.set(this, void 0);
|
|
42
|
+
_Client_drawing.set(this, void 0);
|
|
43
|
+
_Client_feed.set(this, void 0);
|
|
44
|
+
_Client_forum.set(this, void 0);
|
|
45
|
+
_Client_images.set(this, void 0);
|
|
46
|
+
_Client_messages.set(this, void 0);
|
|
47
|
+
_Client_navbar.set(this, void 0);
|
|
48
|
+
_Client_notify.set(this, void 0);
|
|
49
|
+
_Client_profile.set(this, void 0);
|
|
50
|
+
_Client_qa.set(this, void 0);
|
|
51
|
+
_Client_settings.set(this, void 0);
|
|
52
|
+
_Client_stories.set(this, void 0);
|
|
53
|
+
__classPrivateFieldSet(this, _Client_account, new account_1.AccountModule(this), "f");
|
|
54
|
+
__classPrivateFieldSet(this, _Client_answer, new answer_1.AnswerModule(this), "f");
|
|
55
|
+
__classPrivateFieldSet(this, _Client_ask, new ask_1.AskModule(this), "f");
|
|
56
|
+
__classPrivateFieldSet(this, _Client_auth, new auth_1.AuthModule(this), "f");
|
|
57
|
+
__classPrivateFieldSet(this, _Client_dashboard, new dashboard_1.DashboardModule(this), "f");
|
|
58
|
+
__classPrivateFieldSet(this, _Client_drawing, new drawing_1.DrawingModule(this), "f");
|
|
59
|
+
__classPrivateFieldSet(this, _Client_feed, new feed_1.FeedModule(this), "f");
|
|
60
|
+
__classPrivateFieldSet(this, _Client_forum, new forum_1.ForumModule(this), "f");
|
|
61
|
+
__classPrivateFieldSet(this, _Client_images, new images_1.ImagesModule(this), "f");
|
|
62
|
+
__classPrivateFieldSet(this, _Client_messages, new messages_1.MessagesModule(this), "f");
|
|
63
|
+
__classPrivateFieldSet(this, _Client_navbar, new navbar_1.NavbarModule(this), "f");
|
|
64
|
+
__classPrivateFieldSet(this, _Client_notify, new notify_1.NotifyModule(this), "f");
|
|
65
|
+
__classPrivateFieldSet(this, _Client_profile, new profile_1.ProfileModule(this), "f");
|
|
66
|
+
__classPrivateFieldSet(this, _Client_qa, new qa_1.QaModule(this), "f");
|
|
67
|
+
__classPrivateFieldSet(this, _Client_settings, new settings_1.SettingsModule(this), "f");
|
|
68
|
+
__classPrivateFieldSet(this, _Client_stories, new stories_1.StoriesModule(this), "f");
|
|
69
|
+
}
|
|
70
|
+
get account() {
|
|
71
|
+
return __classPrivateFieldGet(this, _Client_account, "f");
|
|
72
|
+
}
|
|
73
|
+
get answer() {
|
|
74
|
+
return __classPrivateFieldGet(this, _Client_answer, "f");
|
|
75
|
+
}
|
|
76
|
+
get ask() {
|
|
77
|
+
return __classPrivateFieldGet(this, _Client_ask, "f");
|
|
78
|
+
}
|
|
79
|
+
get auth() {
|
|
80
|
+
return __classPrivateFieldGet(this, _Client_auth, "f");
|
|
81
|
+
}
|
|
82
|
+
get dashboard() {
|
|
83
|
+
return __classPrivateFieldGet(this, _Client_dashboard, "f");
|
|
84
|
+
}
|
|
85
|
+
get drawing() {
|
|
86
|
+
return __classPrivateFieldGet(this, _Client_drawing, "f");
|
|
87
|
+
}
|
|
88
|
+
get feed() {
|
|
89
|
+
return __classPrivateFieldGet(this, _Client_feed, "f");
|
|
90
|
+
}
|
|
91
|
+
get forum() {
|
|
92
|
+
return __classPrivateFieldGet(this, _Client_forum, "f");
|
|
93
|
+
}
|
|
94
|
+
get images() {
|
|
95
|
+
return __classPrivateFieldGet(this, _Client_images, "f");
|
|
96
|
+
}
|
|
97
|
+
get messages() {
|
|
98
|
+
return __classPrivateFieldGet(this, _Client_messages, "f");
|
|
99
|
+
}
|
|
100
|
+
get navbar() {
|
|
101
|
+
return __classPrivateFieldGet(this, _Client_navbar, "f");
|
|
102
|
+
}
|
|
103
|
+
get notify() {
|
|
104
|
+
return __classPrivateFieldGet(this, _Client_notify, "f");
|
|
105
|
+
}
|
|
106
|
+
get profile() {
|
|
107
|
+
return __classPrivateFieldGet(this, _Client_profile, "f");
|
|
108
|
+
}
|
|
109
|
+
get qa() {
|
|
110
|
+
return __classPrivateFieldGet(this, _Client_qa, "f");
|
|
111
|
+
}
|
|
112
|
+
get settings() {
|
|
113
|
+
return __classPrivateFieldGet(this, _Client_settings, "f");
|
|
114
|
+
}
|
|
115
|
+
get stories() {
|
|
116
|
+
return __classPrivateFieldGet(this, _Client_stories, "f");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.Client = Client;
|
|
120
|
+
_Client_account = new WeakMap(), _Client_answer = new WeakMap(), _Client_ask = new WeakMap(), _Client_auth = new WeakMap(), _Client_dashboard = new WeakMap(), _Client_drawing = new WeakMap(), _Client_feed = new WeakMap(), _Client_forum = new WeakMap(), _Client_images = new WeakMap(), _Client_messages = new WeakMap(), _Client_navbar = new WeakMap(), _Client_notify = new WeakMap(), _Client_profile = new WeakMap(), _Client_qa = new WeakMap(), _Client_settings = new WeakMap(), _Client_stories = new WeakMap();
|
|
121
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/generated/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAA4C;AAC5C,wCAAwC;AACxC,+CAAkD;AAClD,6CAAgD;AAChD,uCAA0C;AAC1C,yCAA4C;AAC5C,mDAAsD;AACtD,+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S,CAAC;IACzB,CAAC;IAED,IAAW,EAAE;QACT,OAAO,uBAAA,IAAI,kBAAI,CAAC;IACpB,CAAC;IAED,IAAW,QAAQ;QACf,OAAO,uBAAA,IAAI,wBAAU,CAAC;IAC1B,CAAC;IAED,IAAW,OAAO;QACd,OAAO,uBAAA,IAAI,uBAAS,CAAC;IACzB,CAAC;CACJ;AArGD,wBAqGC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnswersResponse, BumpQuestionResponse, ListDataResponse, QuestionAnswer, QuestionMetadata, QuestionText, QuestionTextResponse, StoriesViewListResponse, Story, StoryLine, StoryText, ViewQuestionResponse } from "./types";
|
|
2
|
+
export declare function decodeAnswersResponse(raw: any): AnswersResponse;
|
|
3
|
+
export declare function decodeBumpQuestionResponse(raw: any): BumpQuestionResponse;
|
|
4
|
+
export declare function decodeListDataResponse(raw: any): ListDataResponse;
|
|
5
|
+
export declare function decodeQuestionAnswer(raw: any): QuestionAnswer;
|
|
6
|
+
export declare function decodeQuestionMetadata(raw: any): QuestionMetadata;
|
|
7
|
+
export declare function decodeQuestionText(raw: any): QuestionText;
|
|
8
|
+
export declare function decodeQuestionTextResponse(raw: any): QuestionTextResponse;
|
|
9
|
+
export declare function decodeStoriesViewListResponse(raw: any): StoriesViewListResponse;
|
|
10
|
+
export declare function decodeStory(raw: any): Story;
|
|
11
|
+
export declare function decodeStoryLine(raw: any): StoryLine;
|
|
12
|
+
export declare function decodeStoryText(raw: any): StoryText;
|
|
13
|
+
export declare function decodeViewQuestionResponse(raw: any): ViewQuestionResponse;
|
|
14
|
+
//# sourceMappingURL=decoders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decoders.d.ts","sourceRoot":"","sources":["../../src/generated/decoders.ts"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,EACL,SAAS,EACT,SAAS,EACT,oBAAoB,EACvB,MAAM,SAAS,CAAC;AAGjB,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,6BAA6B,CAAC,GAAG,EAAE,GAAG,GAAG,uBAAuB,CAO/E;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,CAM3C;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAKnD;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAMnD;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,GAAG,GAAG,oBAAoB,CAazE"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.decodeAnswersResponse = decodeAnswersResponse;
|
|
4
|
+
exports.decodeBumpQuestionResponse = decodeBumpQuestionResponse;
|
|
5
|
+
exports.decodeListDataResponse = decodeListDataResponse;
|
|
6
|
+
exports.decodeQuestionAnswer = decodeQuestionAnswer;
|
|
7
|
+
exports.decodeQuestionMetadata = decodeQuestionMetadata;
|
|
8
|
+
exports.decodeQuestionText = decodeQuestionText;
|
|
9
|
+
exports.decodeQuestionTextResponse = decodeQuestionTextResponse;
|
|
10
|
+
exports.decodeStoriesViewListResponse = decodeStoriesViewListResponse;
|
|
11
|
+
exports.decodeStory = decodeStory;
|
|
12
|
+
exports.decodeStoryLine = decodeStoryLine;
|
|
13
|
+
exports.decodeStoryText = decodeStoryText;
|
|
14
|
+
exports.decodeViewQuestionResponse = decodeViewQuestionResponse;
|
|
15
|
+
const transform_1 = require("../runtime/transform");
|
|
16
|
+
function decodeAnswersResponse(raw) {
|
|
17
|
+
return {
|
|
18
|
+
ok: raw["ok"],
|
|
19
|
+
error: raw["error"],
|
|
20
|
+
profiles: raw["profiles"],
|
|
21
|
+
answers: (raw["answers"] ?? []).map(decodeQuestionAnswer),
|
|
22
|
+
hasMore: raw["hasMore"],
|
|
23
|
+
nextId: raw["nextId"],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function decodeBumpQuestionResponse(raw) {
|
|
27
|
+
return {
|
|
28
|
+
ok: raw["ok"],
|
|
29
|
+
error: raw["error"],
|
|
30
|
+
profiles: raw["profiles"],
|
|
31
|
+
expireTime: raw["it"],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function decodeListDataResponse(raw) {
|
|
35
|
+
return {
|
|
36
|
+
ok: raw["ok"],
|
|
37
|
+
error: raw["error"],
|
|
38
|
+
profiles: raw["profiles"],
|
|
39
|
+
questions: (raw["questions"] ?? []).map(decodeQuestionMetadata),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function decodeQuestionAnswer(raw) {
|
|
43
|
+
return {
|
|
44
|
+
id: raw["id"],
|
|
45
|
+
body: raw["b"],
|
|
46
|
+
time: raw["t"],
|
|
47
|
+
questionId: raw["q"],
|
|
48
|
+
convoId: raw["mc"],
|
|
49
|
+
unread: raw["in"],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function decodeQuestionMetadata(raw) {
|
|
53
|
+
return {
|
|
54
|
+
id: raw["id"],
|
|
55
|
+
isActive: raw["ia"],
|
|
56
|
+
replyCount: raw["r"],
|
|
57
|
+
newReplyCount: raw["nr"],
|
|
58
|
+
expireTime: raw["it"],
|
|
59
|
+
creationTime: raw["at"],
|
|
60
|
+
isPublic: raw["p"],
|
|
61
|
+
questionType: raw["t"],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function decodeQuestionText(raw) {
|
|
65
|
+
return {
|
|
66
|
+
id: raw["id"],
|
|
67
|
+
text: raw["b"],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function decodeQuestionTextResponse(raw) {
|
|
71
|
+
return {
|
|
72
|
+
ok: raw["ok"],
|
|
73
|
+
error: raw["error"],
|
|
74
|
+
profiles: raw["profiles"],
|
|
75
|
+
questions: (raw["questions"] ?? []).map(decodeQuestionText),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function decodeStoriesViewListResponse(raw) {
|
|
79
|
+
return {
|
|
80
|
+
ok: raw["ok"],
|
|
81
|
+
error: raw["error"],
|
|
82
|
+
profiles: raw["profiles"],
|
|
83
|
+
stories: (raw["stories"] ?? []).map(decodeStory),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function decodeStory(raw) {
|
|
87
|
+
return {
|
|
88
|
+
userId: raw["userId"],
|
|
89
|
+
background: raw["background"],
|
|
90
|
+
text: raw["text"] == null ? raw["text"] : decodeStoryText(raw["text"]),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function decodeStoryLine(raw) {
|
|
94
|
+
return {
|
|
95
|
+
value: raw["value"],
|
|
96
|
+
color: raw["color"] == null ? raw["color"] : (0, transform_1.tupleUnpack)(raw["color"], ["r", "g", "b"]),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function decodeStoryText(raw) {
|
|
100
|
+
return {
|
|
101
|
+
top: raw["top"] == null ? raw["top"] : decodeStoryLine(raw["top"]),
|
|
102
|
+
middle: raw["middle"] == null ? raw["middle"] : decodeStoryLine(raw["middle"]),
|
|
103
|
+
bottom: raw["bottom"] == null ? raw["bottom"] : decodeStoryLine(raw["bottom"]),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function decodeViewQuestionResponse(raw) {
|
|
107
|
+
return {
|
|
108
|
+
ok: raw["ok"],
|
|
109
|
+
error: raw["error"],
|
|
110
|
+
profiles: raw["profiles"],
|
|
111
|
+
id: raw["id"],
|
|
112
|
+
time: raw["time"],
|
|
113
|
+
text: raw["text"],
|
|
114
|
+
isPublic: raw["isPublic"],
|
|
115
|
+
responseCount: raw["responses"],
|
|
116
|
+
user: raw["user"],
|
|
117
|
+
isYours: raw["isYours"],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=decoders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decoders.js","sourceRoot":"","sources":["../../src/generated/decoders.ts"],"names":[],"mappings":";;AAiBA,sDASC;AAED,gEAOC;AAED,wDAOC;AAED,oDASC;AAED,wDAWC;AAED,gDAKC;AAED,gEAOC;AAED,sEAOC;AAED,kCAMC;AAED,0CAKC;AAED,0CAMC;AAED,gEAaC;AApHD,oDAAmD;AAEnD,SAAgB,qBAAqB,CAAC,GAAQ;IAC1C,OAAO;QACH,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC;QACb,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;QACnB,QAAQ,EAAE,GAAG,CAAC,UAAU,CAAC;QACzB,OAAO,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC;QACzD,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC;QACvB,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC;KACxB,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,GAAQ;IAC/C,OAAO;QACH,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC;QACb,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;QACnB,QAAQ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Ae,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAYrD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAMrD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.encodeStoryLine = encodeStoryLine;
|
|
4
|
+
exports.encodeStoryText = encodeStoryText;
|
|
5
|
+
const transform_1 = require("../runtime/transform");
|
|
6
|
+
function encodeStoryLine(value) {
|
|
7
|
+
return {
|
|
8
|
+
value: value.value,
|
|
9
|
+
color: value.color == null
|
|
10
|
+
? value.color
|
|
11
|
+
: (0, transform_1.bitfieldPack)(value.color, [
|
|
12
|
+
{ name: "r", offset: 16, width: 8 },
|
|
13
|
+
{ name: "g", offset: 8, width: 8 },
|
|
14
|
+
{ name: "b", offset: 0, width: 8 },
|
|
15
|
+
]),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function encodeStoryText(value) {
|
|
19
|
+
return {
|
|
20
|
+
top: value.top == null ? value.top : encodeStoryLine(value.top),
|
|
21
|
+
middle: value.middle == null ? value.middle : encodeStoryLine(value.middle),
|
|
22
|
+
bottom: value.bottom == null ? value.bottom : encodeStoryLine(value.bottom),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=encoders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encoders.js","sourceRoot":"","sources":["../../src/generated/encoders.ts"],"names":[],"mappings":";;AAIA,0CAYC;AAED,0CAMC;AAtBD,oDAAoD;AAEpD,SAAgB,eAAe,CAAC,KAAgB;IAC5C,OAAO;QACH,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,KAAK,EACD,KAAK,CAAC,KAAK,IAAI,IAAI;YACf,CAAC,CAAC,KAAK,CAAC,KAAK;YACb,CAAC,CAAC,IAAA,wBAAY,EAAC,KAAK,CAAC,KAAK,EAAE;gBACtB,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;gBACnC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;gBAClC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;aACrC,CAAC;KACf,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,KAAgB;IAC5C,OAAO;QACH,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC;QAC/D,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC;QAC3E,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC;KAC9E,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/generated/enums.ts"],"names":[],"mappings":"AACA,oBAAY,OAAO;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED,oBAAY,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;CACpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DismissAction = exports.Feature = void 0;
|
|
4
|
+
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
+
var Feature;
|
|
6
|
+
(function (Feature) {
|
|
7
|
+
Feature["FEED"] = "feed";
|
|
8
|
+
Feature["ASK"] = "ask";
|
|
9
|
+
Feature["FORUM"] = "forum";
|
|
10
|
+
Feature["CHAT"] = "chat";
|
|
11
|
+
})(Feature || (exports.Feature = Feature = {}));
|
|
12
|
+
var DismissAction;
|
|
13
|
+
(function (DismissAction) {
|
|
14
|
+
DismissAction["SNOOZE"] = "SNOOZE";
|
|
15
|
+
DismissAction["DISCARD"] = "DISCARD";
|
|
16
|
+
DismissAction["UNSAVE"] = "UNSAVE";
|
|
17
|
+
})(DismissAction || (exports.DismissAction = DismissAction = {}));
|
|
18
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/generated/enums.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,IAAY,OAKX;AALD,WAAY,OAAO;IACf,wBAAa,CAAA;IACb,sBAAW,CAAA;IACX,0BAAe,CAAA;IACf,wBAAa,CAAA;AACjB,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACrB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from "./types";
|
|
2
|
+
export * from "./enums";
|
|
3
|
+
export * from "./decoders";
|
|
4
|
+
export * from "./encoders";
|
|
5
|
+
export * from "./client";
|
|
6
|
+
export * from "./modules/account";
|
|
7
|
+
export * from "./modules/answer";
|
|
8
|
+
export * from "./modules/ask";
|
|
9
|
+
export * from "./modules/auth";
|
|
10
|
+
export * from "./modules/dashboard";
|
|
11
|
+
export * from "./modules/drawing";
|
|
12
|
+
export * from "./modules/feed";
|
|
13
|
+
export * from "./modules/forum";
|
|
14
|
+
export * from "./modules/images";
|
|
15
|
+
export * from "./modules/messages";
|
|
16
|
+
export * from "./modules/navbar";
|
|
17
|
+
export * from "./modules/notify";
|
|
18
|
+
export * from "./modules/profile";
|
|
19
|
+
export * from "./modules/qa";
|
|
20
|
+
export * from "./modules/settings";
|
|
21
|
+
export * from "./modules/stories";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* Generated by pecans-spec. Do not edit. */
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./enums"), exports);
|
|
20
|
+
__exportStar(require("./decoders"), exports);
|
|
21
|
+
__exportStar(require("./encoders"), exports);
|
|
22
|
+
__exportStar(require("./client"), exports);
|
|
23
|
+
__exportStar(require("./modules/account"), exports);
|
|
24
|
+
__exportStar(require("./modules/answer"), exports);
|
|
25
|
+
__exportStar(require("./modules/ask"), exports);
|
|
26
|
+
__exportStar(require("./modules/auth"), exports);
|
|
27
|
+
__exportStar(require("./modules/dashboard"), exports);
|
|
28
|
+
__exportStar(require("./modules/drawing"), exports);
|
|
29
|
+
__exportStar(require("./modules/feed"), exports);
|
|
30
|
+
__exportStar(require("./modules/forum"), exports);
|
|
31
|
+
__exportStar(require("./modules/images"), exports);
|
|
32
|
+
__exportStar(require("./modules/messages"), exports);
|
|
33
|
+
__exportStar(require("./modules/navbar"), exports);
|
|
34
|
+
__exportStar(require("./modules/notify"), exports);
|
|
35
|
+
__exportStar(require("./modules/profile"), exports);
|
|
36
|
+
__exportStar(require("./modules/qa"), exports);
|
|
37
|
+
__exportStar(require("./modules/settings"), exports);
|
|
38
|
+
__exportStar(require("./modules/stories"), exports);
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA4C;AAC5C,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,6CAA2B;AAC3B,2CAAyB;AACzB,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,sDAAoC;AACpC,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,oDAAkC;AAClC,+CAA6B;AAC7B,qDAAmC;AACnC,oDAAkC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Call, Module } from "../../runtime";
|
|
2
|
+
import { TCResponse } from "../types";
|
|
3
|
+
export declare class AccountModule extends Module {
|
|
4
|
+
register(email: string, username: string, password: string): Call<TCResponse>;
|
|
5
|
+
activate(token: string): Call<TCResponse>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,qBAAa,aAAc,SAAQ,MAAM;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IAc7E,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;CAQnD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountModule = void 0;
|
|
4
|
+
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
+
const runtime_1 = require("../../runtime");
|
|
6
|
+
class AccountModule extends runtime_1.Module {
|
|
7
|
+
register(email, username, password) {
|
|
8
|
+
return new runtime_1.Call(this.client, {
|
|
9
|
+
fn: "account.register",
|
|
10
|
+
payload: {
|
|
11
|
+
email: email,
|
|
12
|
+
username: username,
|
|
13
|
+
password1: password,
|
|
14
|
+
password2: password,
|
|
15
|
+
age: true,
|
|
16
|
+
tos: true,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
activate(token) {
|
|
21
|
+
return new runtime_1.Call(this.client, {
|
|
22
|
+
fn: "account.activate",
|
|
23
|
+
payload: {
|
|
24
|
+
token: token,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AccountModule = AccountModule;
|
|
30
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +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,KAAK,EAAE,KAAK;gBACZ,QAAQ,EAAE,QAAQ;gBAClB,SAAS,EAAE,QAAQ;gBACnB,SAAS,EAAE,QAAQ;gBACnB,GAAG,EAAE,IAAI;gBACT,GAAG,EAAE,IAAI;aACZ;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,KAAK,EAAE,KAAK;aACf;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAvBD,sCAuBC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Call, Module } from "../../runtime";
|
|
2
|
+
import { AnswerQuestion, AnswerReplyResponse, SavedQuestionsResponse, TCResponse } from "../types";
|
|
3
|
+
import { DismissAction } from "../enums";
|
|
4
|
+
export declare class AnswerModule extends Module {
|
|
5
|
+
/**
|
|
6
|
+
* Get the next question to answer. `error` will `"END_REACHED"` if there are
|
|
7
|
+
* no questions to answer.
|
|
8
|
+
*/
|
|
9
|
+
fetchNext(): Call<AnswerQuestion>;
|
|
10
|
+
/**
|
|
11
|
+
* Get the list of questions the user has saved for later.
|
|
12
|
+
*/
|
|
13
|
+
listSavedQuestions(): Call<SavedQuestionsResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Flag a question for review by the moderators.
|
|
16
|
+
*/
|
|
17
|
+
flagQuestion(questionId: number): Call<TCResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Dismiss a question from the answer queue. The `action` parameter
|
|
20
|
+
* determines whether the question is snoozed, discarded, or unsaved.
|
|
21
|
+
*/
|
|
22
|
+
dismissQuestion(questionId: number, action: DismissAction): Call<TCResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Vote on a poll question. The `optionNum` parameter is the index of the
|
|
25
|
+
* option to vote for, starting at 0.
|
|
26
|
+
*/
|
|
27
|
+
pollVote(questionId: number, optionNum: number): Call<TCResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Queue a question for answering. The question will queued to be answered by
|
|
30
|
+
* the user, and will be returned by the next call to `fetchNext()`.
|
|
31
|
+
*/
|
|
32
|
+
queueQuestion(questionId: number): Call<AnswerQuestion>;
|
|
33
|
+
/**
|
|
34
|
+
* Reply to a question. The `text` parameter is the reply text (UCP markup).
|
|
35
|
+
*/
|
|
36
|
+
reply(questionId: number, text: string): Call<AnswerReplyResponse>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=answer.d.ts.map
|
|
@@ -0,0 +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,EAAE,cAAc,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,qBAAa,YAAa,SAAQ,MAAM;IACpC;;;OAGG;IACI,SAAS,IAAI,IAAI,CAAC,cAAc,CAAC;IAOxC;;OAEG;IACI,kBAAkB,IAAI,IAAI,CAAC,sBAAsB,CAAC;IAOzD;;OAEG;IACI,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IASzD;;;OAGG;IACI,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC;IAUnF;;;OAGG;IACI,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IAUxE;;;OAGG;IACI,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC;IAS9D;;OAEG;IACI,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC;CAS5E"}
|