@oasisomniverse/web4-api 2.0.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/README.md +464 -0
- package/docs/README.md +52 -0
- package/docs/auth.md +89 -0
- package/docs/getting-started.md +129 -0
- package/docs/modules/Avatar.md +4160 -0
- package/docs/modules/Bridge.md +394 -0
- package/docs/modules/Chat.md +168 -0
- package/docs/modules/Clan.md +552 -0
- package/docs/modules/Competition.md +594 -0
- package/docs/modules/Data.md +796 -0
- package/docs/modules/EOSIO.md +508 -0
- package/docs/modules/Eggs.md +396 -0
- package/docs/modules/Files.md +312 -0
- package/docs/modules/Gifts.md +306 -0
- package/docs/modules/Health.md +90 -0
- package/docs/modules/Holochain.md +374 -0
- package/docs/modules/HyperDrive.md +3857 -0
- package/docs/modules/Karma.md +644 -0
- package/docs/modules/Keys.md +3303 -0
- package/docs/modules/Map.md +1026 -0
- package/docs/modules/Messaging.md +320 -0
- package/docs/modules/Nft.md +2216 -0
- package/docs/modules/OLand.md +425 -0
- package/docs/modules/ONET.md +442 -0
- package/docs/modules/ONODE.md +504 -0
- package/docs/modules/Provider.md +1396 -0
- package/docs/modules/Search.md +69 -0
- package/docs/modules/Seeds.md +167 -0
- package/docs/modules/Settings.md +533 -0
- package/docs/modules/Share.md +64 -0
- package/docs/modules/Social.md +190 -0
- package/docs/modules/Solana.md +150 -0
- package/docs/modules/Stats.md +359 -0
- package/docs/modules/Subscription.md +437 -0
- package/docs/modules/Video.md +150 -0
- package/docs/modules/Wallet.md +1993 -0
- package/index.d.ts +106 -0
- package/index.js +3 -0
- package/index.mjs +4 -0
- package/package.json +120 -0
- package/src/core/httpClient.js +110 -0
- package/src/core/routeHelper.js +50 -0
- package/src/core/tokenStore.js +52 -0
- package/src/core/types.d.ts +18 -0
- package/src/index.js +46 -0
- package/src/modules/Auth.d.ts +28 -0
- package/src/modules/Auth.js +98 -0
- package/src/modules/Avatar.d.ts +192 -0
- package/src/modules/Avatar.js +143 -0
- package/src/modules/Bridge.d.ts +24 -0
- package/src/modules/Bridge.js +35 -0
- package/src/modules/Cargo.js +35 -0
- package/src/modules/Chat.d.ts +15 -0
- package/src/modules/Chat.js +27 -0
- package/src/modules/Clan.d.ts +36 -0
- package/src/modules/Clan.js +41 -0
- package/src/modules/Competition.d.ts +33 -0
- package/src/modules/Competition.js +39 -0
- package/src/modules/Core.js +27 -0
- package/src/modules/Data.d.ts +36 -0
- package/src/modules/Data.js +41 -0
- package/src/modules/EOSIO.d.ts +33 -0
- package/src/modules/EOSIO.js +39 -0
- package/src/modules/Eggs.d.ts +24 -0
- package/src/modules/Eggs.js +33 -0
- package/src/modules/Files.d.ts +24 -0
- package/src/modules/Files.js +33 -0
- package/src/modules/Gifts.d.ts +24 -0
- package/src/modules/Gifts.js +33 -0
- package/src/modules/Health.d.ts +12 -0
- package/src/modules/Health.js +25 -0
- package/src/modules/Holochain.d.ts +27 -0
- package/src/modules/Holochain.js +35 -0
- package/src/modules/HyperDrive.d.ts +237 -0
- package/src/modules/HyperDrive.js +175 -0
- package/src/modules/Karma.d.ts +42 -0
- package/src/modules/Karma.js +45 -0
- package/src/modules/Keys.d.ts +183 -0
- package/src/modules/Keys.js +139 -0
- package/src/modules/Map.d.ts +75 -0
- package/src/modules/Map.js +65 -0
- package/src/modules/Messaging.d.ts +24 -0
- package/src/modules/Messaging.js +33 -0
- package/src/modules/Nft.d.ts +102 -0
- package/src/modules/Nft.js +85 -0
- package/src/modules/OAPP.js +31 -0
- package/src/modules/OLand.d.ts +27 -0
- package/src/modules/OLand.js +35 -0
- package/src/modules/ONET.d.ts +39 -0
- package/src/modules/ONET.js +43 -0
- package/src/modules/ONODE.d.ts +45 -0
- package/src/modules/ONODE.js +47 -0
- package/src/modules/Provider.d.ts +99 -0
- package/src/modules/Provider.js +83 -0
- package/src/modules/Search.d.ts +9 -0
- package/src/modules/Search.js +23 -0
- package/src/modules/Seeds.d.ts +15 -0
- package/src/modules/Seeds.js +27 -0
- package/src/modules/Settings.d.ts +48 -0
- package/src/modules/Settings.js +47 -0
- package/src/modules/Share.d.ts +9 -0
- package/src/modules/Share.js +23 -0
- package/src/modules/Social.d.ts +18 -0
- package/src/modules/Social.js +29 -0
- package/src/modules/Solana.d.ts +12 -0
- package/src/modules/Solana.js +25 -0
- package/src/modules/Stats.d.ts +30 -0
- package/src/modules/Stats.js +37 -0
- package/src/modules/Subscription.d.ts +36 -0
- package/src/modules/Subscription.js +41 -0
- package/src/modules/Telos.js +39 -0
- package/src/modules/Video.d.ts +15 -0
- package/src/modules/Video.js +27 -0
- package/src/modules/Wallet.d.ts +102 -0
- package/src/modules/Wallet.js +85 -0
- package/src/modules/index.js +79 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class AvatarModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/avatar/inventory */
|
|
8
|
+
addItemToAvatarInventory(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/avatar/add-karma-to-avatar/{avatarId} */
|
|
11
|
+
addKarmaToAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/avatar/add-xp */
|
|
14
|
+
addXp(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** POST api/avatar/authenticate */
|
|
17
|
+
authenticate(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/avatar/inventory/{itemId}/has */
|
|
20
|
+
avatarHasItem(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/avatar/inventory/has-by-name */
|
|
23
|
+
avatarHasItemByName(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** POST api/avatar/create/{model} */
|
|
26
|
+
create(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** POST api/avatar/{avatarId}/sessions */
|
|
29
|
+
createAvatarSession(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** DELETE api/avatar/{id:Guid} */
|
|
32
|
+
delete(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** DELETE api/avatar/delete-by-email/{email} */
|
|
35
|
+
deleteByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
36
|
+
|
|
37
|
+
/** DELETE api/avatar/delete-by-username/{username} */
|
|
38
|
+
deleteByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
39
|
+
|
|
40
|
+
/** POST api/avatar/forgot-password */
|
|
41
|
+
forgotPassword(args?: Record<string, any>): Promise<OASISResponse>;
|
|
42
|
+
|
|
43
|
+
/** GET api/avatar/get-all-avatars */
|
|
44
|
+
getAll(args?: Record<string, any>): Promise<OASISResponse>;
|
|
45
|
+
|
|
46
|
+
/** GET api/avatar/get-all-avatar-details */
|
|
47
|
+
getAllAvatarDetails(args?: Record<string, any>): Promise<OASISResponse>;
|
|
48
|
+
|
|
49
|
+
/** GET api/avatar/get-all-avatar-names/{includeUsernames}/{includeIds} */
|
|
50
|
+
getAllAvatarNames(args?: Record<string, any>): Promise<OASISResponse>;
|
|
51
|
+
|
|
52
|
+
/** GET api/avatar/get-all-avatar-names-grouped-by-name/{includeUsernames}/{includeIds} */
|
|
53
|
+
getAllAvatarNamesGroupedByName(args?: Record<string, any>): Promise<OASISResponse>;
|
|
54
|
+
|
|
55
|
+
/** GET api/avatar/get-avatar-detail-by-id/{id:guid} */
|
|
56
|
+
getAvatarDetail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
57
|
+
|
|
58
|
+
/** GET api/avatar/get-avatar-detail-by-email/{email} */
|
|
59
|
+
getAvatarDetailByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
60
|
+
|
|
61
|
+
/** GET api/avatar/get-avatar-detail-by-username/{username} */
|
|
62
|
+
getAvatarDetailByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
63
|
+
|
|
64
|
+
/** GET api/avatar/inventory */
|
|
65
|
+
getAvatarInventory(args?: Record<string, any>): Promise<OASISResponse>;
|
|
66
|
+
|
|
67
|
+
/** GET api/avatar/inventory/{itemId} */
|
|
68
|
+
getAvatarInventoryItem(args?: Record<string, any>): Promise<OASISResponse>;
|
|
69
|
+
|
|
70
|
+
/** GET api/avatar/get-avatar-portrait-by-email/{email} */
|
|
71
|
+
getAvatarPortraitByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
72
|
+
|
|
73
|
+
/** GET api/avatar/get-avatar-portrait/{id} */
|
|
74
|
+
getAvatarPortraitById(args?: Record<string, any>): Promise<OASISResponse>;
|
|
75
|
+
|
|
76
|
+
/** GET api/avatar/get-avatar-portrait-by-username/{username} */
|
|
77
|
+
getAvatarPortraitByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
78
|
+
|
|
79
|
+
/** GET api/avatar/{avatarId}/sessions */
|
|
80
|
+
getAvatarSessions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
81
|
+
|
|
82
|
+
/** GET api/avatar/{avatarId}/sessions/stats */
|
|
83
|
+
getAvatarSessionStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
84
|
+
|
|
85
|
+
/** GET api/avatar/get-by-email/{email} */
|
|
86
|
+
getByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
87
|
+
|
|
88
|
+
/** GET api/avatar/get-by-id/{id} */
|
|
89
|
+
getById(args?: Record<string, any>): Promise<OASISResponse>;
|
|
90
|
+
|
|
91
|
+
/** GET api/avatar/get-by-username/{username} */
|
|
92
|
+
getByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
93
|
+
|
|
94
|
+
/** GET api/avatar/get-logged-in-avatar */
|
|
95
|
+
getLoggedInAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
96
|
+
|
|
97
|
+
/** GET api/avatar/get-logged-in-avatar-with-xp */
|
|
98
|
+
getLoggedInAvatarWithXp(args?: Record<string, any>): Promise<OASISResponse>;
|
|
99
|
+
|
|
100
|
+
/** GET api/avatar/get-terms */
|
|
101
|
+
getTerms(args?: Record<string, any>): Promise<OASISResponse>;
|
|
102
|
+
|
|
103
|
+
/** GET api/avatar/get-uma-json-by-email/{email} */
|
|
104
|
+
getUmaJsonByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
105
|
+
|
|
106
|
+
/** GET api/avatar/get-uma-json-by-id/{id} */
|
|
107
|
+
getUmaJsonById(args?: Record<string, any>): Promise<OASISResponse>;
|
|
108
|
+
|
|
109
|
+
/** GET api/avatar/get-uma-json-by-username/{username} */
|
|
110
|
+
getUmaJsonByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
111
|
+
|
|
112
|
+
/** POST api/avatar/{avatarId}/{eosioAccountName} */
|
|
113
|
+
linkEOSIOAccountToAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
114
|
+
|
|
115
|
+
/** POST api/avatar/{avatarId}/{holochainAgentID} */
|
|
116
|
+
linkHolochainAgentIDToAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
117
|
+
|
|
118
|
+
/** POST api/avatar/{id:Guid}/{telosAccountName} */
|
|
119
|
+
linkTelosAccountToAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
120
|
+
|
|
121
|
+
/** POST api/avatar/ */
|
|
122
|
+
linkTelosAccountToAvatar2(args?: Record<string, any>): Promise<OASISResponse>;
|
|
123
|
+
|
|
124
|
+
/** POST api/avatar/{avatarId}/sessions/logout-all */
|
|
125
|
+
logoutAllAvatarSessions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
126
|
+
|
|
127
|
+
/** POST api/avatar/{avatarId}/sessions/logout */
|
|
128
|
+
logoutAvatarSessions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
129
|
+
|
|
130
|
+
/** POST api/avatar/refresh-token */
|
|
131
|
+
refreshToken(args?: Record<string, any>): Promise<OASISResponse>;
|
|
132
|
+
|
|
133
|
+
/** POST api/avatar/register */
|
|
134
|
+
register(args?: Record<string, any>): Promise<OASISResponse>;
|
|
135
|
+
|
|
136
|
+
/** DELETE api/avatar/inventory/{itemId} */
|
|
137
|
+
removeItemFromAvatarInventory(args?: Record<string, any>): Promise<OASISResponse>;
|
|
138
|
+
|
|
139
|
+
/** POST api/avatar/remove-karma-from-avatar/{avatarId} */
|
|
140
|
+
removeKarmaFromAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
141
|
+
|
|
142
|
+
/** POST api/avatar/reset-password */
|
|
143
|
+
resetPassword(args?: Record<string, any>): Promise<OASISResponse>;
|
|
144
|
+
|
|
145
|
+
/** POST api/avatar/revoke-token */
|
|
146
|
+
revokeToken(args?: Record<string, any>): Promise<OASISResponse>;
|
|
147
|
+
|
|
148
|
+
/** POST api/avatar/search */
|
|
149
|
+
searchAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
150
|
+
|
|
151
|
+
/** GET api/avatar/inventory/search */
|
|
152
|
+
searchAvatarInventory(args?: Record<string, any>): Promise<OASISResponse>;
|
|
153
|
+
|
|
154
|
+
/** POST api/avatar/inventory/send-to-avatar */
|
|
155
|
+
sendItemToAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
156
|
+
|
|
157
|
+
/** POST api/avatar/inventory/send-to-clan */
|
|
158
|
+
sendItemToClan(args?: Record<string, any>): Promise<OASISResponse>;
|
|
159
|
+
|
|
160
|
+
/** POST api/avatar/set-active-quest */
|
|
161
|
+
setActiveQuest(args?: Record<string, any>): Promise<OASISResponse>;
|
|
162
|
+
|
|
163
|
+
/** POST api/avatar/update-by-id/{id} */
|
|
164
|
+
update(args?: Record<string, any>): Promise<OASISResponse>;
|
|
165
|
+
|
|
166
|
+
/** POST api/avatar/update-avatar-detail-by-id/{id} */
|
|
167
|
+
updateAvatarDetail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
168
|
+
|
|
169
|
+
/** POST api/avatar/update-avatar-detail-by-email/{email} */
|
|
170
|
+
updateAvatarDetailByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
171
|
+
|
|
172
|
+
/** POST api/avatar/update-avatar-detail-by-username/{username} */
|
|
173
|
+
updateAvatarDetailByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
174
|
+
|
|
175
|
+
/** PUT api/avatar/{avatarId}/sessions/{sessionId} */
|
|
176
|
+
updateAvatarSession(args?: Record<string, any>): Promise<OASISResponse>;
|
|
177
|
+
|
|
178
|
+
/** POST api/avatar/update-by-email/{email} */
|
|
179
|
+
updateByEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
180
|
+
|
|
181
|
+
/** POST api/avatar/update-by-username/{username} */
|
|
182
|
+
updateByUsername(args?: Record<string, any>): Promise<OASISResponse>;
|
|
183
|
+
|
|
184
|
+
/** POST api/avatar/upload-avatar-portrait */
|
|
185
|
+
uploadAvatarPortrait(args?: Record<string, any>): Promise<OASISResponse>;
|
|
186
|
+
|
|
187
|
+
/** POST api/avatar/validate-reset-token */
|
|
188
|
+
validateResetToken(args?: Record<string, any>): Promise<OASISResponse>;
|
|
189
|
+
|
|
190
|
+
/** GET api/avatar/verify-email */
|
|
191
|
+
verifyEmail(args?: Record<string, any>): Promise<OASISResponse>;
|
|
192
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
|
|
4
|
+
// Regenerate with: node scripts/generate-modules.js
|
|
5
|
+
|
|
6
|
+
const { makeOperation } = require('../core/routeHelper');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generated wrapper for api/avatar (source: ONODE WebAPI AvatarController.cs).
|
|
10
|
+
* Every method takes a single args object: path-template tokens (e.g. {id})
|
|
11
|
+
* are consumed from it automatically; any remaining keys are sent as the
|
|
12
|
+
* query string (GET/DELETE) or JSON body (POST/PUT).
|
|
13
|
+
*/
|
|
14
|
+
class AvatarModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/avatar/inventory
|
|
19
|
+
this.addItemToAvatarInventory = makeOperation(http, "api/avatar", "POST", "inventory");
|
|
20
|
+
// POST api/avatar/add-karma-to-avatar/{avatarId}
|
|
21
|
+
this.addKarmaToAvatar = makeOperation(http, "api/avatar", "POST", "add-karma-to-avatar/{avatarId}");
|
|
22
|
+
// POST api/avatar/add-xp
|
|
23
|
+
this.addXp = makeOperation(http, "api/avatar", "POST", "add-xp");
|
|
24
|
+
// POST api/avatar/authenticate
|
|
25
|
+
this.authenticate = makeOperation(http, "api/avatar", "POST", "authenticate");
|
|
26
|
+
// GET api/avatar/inventory/{itemId}/has
|
|
27
|
+
this.avatarHasItem = makeOperation(http, "api/avatar", "GET", "inventory/{itemId}/has");
|
|
28
|
+
// GET api/avatar/inventory/has-by-name
|
|
29
|
+
this.avatarHasItemByName = makeOperation(http, "api/avatar", "GET", "inventory/has-by-name");
|
|
30
|
+
// POST api/avatar/create/{model}
|
|
31
|
+
this.create = makeOperation(http, "api/avatar", "POST", "create/{model}");
|
|
32
|
+
// POST api/avatar/{avatarId}/sessions
|
|
33
|
+
this.createAvatarSession = makeOperation(http, "api/avatar", "POST", "{avatarId}/sessions");
|
|
34
|
+
// DELETE api/avatar/{id:Guid}
|
|
35
|
+
this.delete = makeOperation(http, "api/avatar", "DELETE", "{id:Guid}");
|
|
36
|
+
// DELETE api/avatar/delete-by-email/{email}
|
|
37
|
+
this.deleteByEmail = makeOperation(http, "api/avatar", "DELETE", "delete-by-email/{email}");
|
|
38
|
+
// DELETE api/avatar/delete-by-username/{username}
|
|
39
|
+
this.deleteByUsername = makeOperation(http, "api/avatar", "DELETE", "delete-by-username/{username}");
|
|
40
|
+
// POST api/avatar/forgot-password
|
|
41
|
+
this.forgotPassword = makeOperation(http, "api/avatar", "POST", "forgot-password");
|
|
42
|
+
// GET api/avatar/get-all-avatars
|
|
43
|
+
this.getAll = makeOperation(http, "api/avatar", "GET", "get-all-avatars");
|
|
44
|
+
// GET api/avatar/get-all-avatar-details
|
|
45
|
+
this.getAllAvatarDetails = makeOperation(http, "api/avatar", "GET", "get-all-avatar-details");
|
|
46
|
+
// GET api/avatar/get-all-avatar-names/{includeUsernames}/{includeIds}
|
|
47
|
+
this.getAllAvatarNames = makeOperation(http, "api/avatar", "GET", "get-all-avatar-names/{includeUsernames}/{includeIds}");
|
|
48
|
+
// GET api/avatar/get-all-avatar-names-grouped-by-name/{includeUsernames}/{includeIds}
|
|
49
|
+
this.getAllAvatarNamesGroupedByName = makeOperation(http, "api/avatar", "GET", "get-all-avatar-names-grouped-by-name/{includeUsernames}/{includeIds}");
|
|
50
|
+
// GET api/avatar/get-avatar-detail-by-id/{id:guid}
|
|
51
|
+
this.getAvatarDetail = makeOperation(http, "api/avatar", "GET", "get-avatar-detail-by-id/{id:guid}");
|
|
52
|
+
// GET api/avatar/get-avatar-detail-by-email/{email}
|
|
53
|
+
this.getAvatarDetailByEmail = makeOperation(http, "api/avatar", "GET", "get-avatar-detail-by-email/{email}");
|
|
54
|
+
// GET api/avatar/get-avatar-detail-by-username/{username}
|
|
55
|
+
this.getAvatarDetailByUsername = makeOperation(http, "api/avatar", "GET", "get-avatar-detail-by-username/{username}");
|
|
56
|
+
// GET api/avatar/inventory
|
|
57
|
+
this.getAvatarInventory = makeOperation(http, "api/avatar", "GET", "inventory");
|
|
58
|
+
// GET api/avatar/inventory/{itemId}
|
|
59
|
+
this.getAvatarInventoryItem = makeOperation(http, "api/avatar", "GET", "inventory/{itemId}");
|
|
60
|
+
// GET api/avatar/get-avatar-portrait-by-email/{email}
|
|
61
|
+
this.getAvatarPortraitByEmail = makeOperation(http, "api/avatar", "GET", "get-avatar-portrait-by-email/{email}");
|
|
62
|
+
// GET api/avatar/get-avatar-portrait/{id}
|
|
63
|
+
this.getAvatarPortraitById = makeOperation(http, "api/avatar", "GET", "get-avatar-portrait/{id}");
|
|
64
|
+
// GET api/avatar/get-avatar-portrait-by-username/{username}
|
|
65
|
+
this.getAvatarPortraitByUsername = makeOperation(http, "api/avatar", "GET", "get-avatar-portrait-by-username/{username}");
|
|
66
|
+
// GET api/avatar/{avatarId}/sessions/stats
|
|
67
|
+
this.getAvatarSessionStats = makeOperation(http, "api/avatar", "GET", "{avatarId}/sessions/stats");
|
|
68
|
+
// GET api/avatar/{avatarId}/sessions
|
|
69
|
+
this.getAvatarSessions = makeOperation(http, "api/avatar", "GET", "{avatarId}/sessions");
|
|
70
|
+
// GET api/avatar/get-by-email/{email}
|
|
71
|
+
this.getByEmail = makeOperation(http, "api/avatar", "GET", "get-by-email/{email}");
|
|
72
|
+
// GET api/avatar/get-by-id/{id}
|
|
73
|
+
this.getById = makeOperation(http, "api/avatar", "GET", "get-by-id/{id}");
|
|
74
|
+
// GET api/avatar/get-by-username/{username}
|
|
75
|
+
this.getByUsername = makeOperation(http, "api/avatar", "GET", "get-by-username/{username}");
|
|
76
|
+
// GET api/avatar/get-logged-in-avatar
|
|
77
|
+
this.getLoggedInAvatar = makeOperation(http, "api/avatar", "GET", "get-logged-in-avatar");
|
|
78
|
+
// GET api/avatar/get-logged-in-avatar-with-xp
|
|
79
|
+
this.getLoggedInAvatarWithXp = makeOperation(http, "api/avatar", "GET", "get-logged-in-avatar-with-xp");
|
|
80
|
+
// GET api/avatar/get-terms
|
|
81
|
+
this.getTerms = makeOperation(http, "api/avatar", "GET", "get-terms");
|
|
82
|
+
// GET api/avatar/get-uma-json-by-email/{email}
|
|
83
|
+
this.getUmaJsonByEmail = makeOperation(http, "api/avatar", "GET", "get-uma-json-by-email/{email}");
|
|
84
|
+
// GET api/avatar/get-uma-json-by-id/{id}
|
|
85
|
+
this.getUmaJsonById = makeOperation(http, "api/avatar", "GET", "get-uma-json-by-id/{id}");
|
|
86
|
+
// GET api/avatar/get-uma-json-by-username/{username}
|
|
87
|
+
this.getUmaJsonByUsername = makeOperation(http, "api/avatar", "GET", "get-uma-json-by-username/{username}");
|
|
88
|
+
// POST api/avatar/{avatarId}/{eosioAccountName}
|
|
89
|
+
this.linkEOSIOAccountToAvatar = makeOperation(http, "api/avatar", "POST", "{avatarId}/{eosioAccountName}");
|
|
90
|
+
// POST api/avatar/{avatarId}/{holochainAgentID}
|
|
91
|
+
this.linkHolochainAgentIDToAvatar = makeOperation(http, "api/avatar", "POST", "{avatarId}/{holochainAgentID}");
|
|
92
|
+
// POST api/avatar/{id:Guid}/{telosAccountName}
|
|
93
|
+
this.linkTelosAccountToAvatar = makeOperation(http, "api/avatar", "POST", "{id:Guid}/{telosAccountName}");
|
|
94
|
+
// POST api/avatar/
|
|
95
|
+
this.linkTelosAccountToAvatar2 = makeOperation(http, "api/avatar", "POST", "");
|
|
96
|
+
// POST api/avatar/{avatarId}/sessions/logout-all
|
|
97
|
+
this.logoutAllAvatarSessions = makeOperation(http, "api/avatar", "POST", "{avatarId}/sessions/logout-all");
|
|
98
|
+
// POST api/avatar/{avatarId}/sessions/logout
|
|
99
|
+
this.logoutAvatarSessions = makeOperation(http, "api/avatar", "POST", "{avatarId}/sessions/logout");
|
|
100
|
+
// POST api/avatar/register
|
|
101
|
+
this.register = makeOperation(http, "api/avatar", "POST", "register");
|
|
102
|
+
// DELETE api/avatar/inventory/{itemId}
|
|
103
|
+
this.removeItemFromAvatarInventory = makeOperation(http, "api/avatar", "DELETE", "inventory/{itemId}");
|
|
104
|
+
// POST api/avatar/remove-karma-from-avatar/{avatarId}
|
|
105
|
+
this.removeKarmaFromAvatar = makeOperation(http, "api/avatar", "POST", "remove-karma-from-avatar/{avatarId}");
|
|
106
|
+
// POST api/avatar/reset-password
|
|
107
|
+
this.resetPassword = makeOperation(http, "api/avatar", "POST", "reset-password");
|
|
108
|
+
// POST api/avatar/revoke-token
|
|
109
|
+
this.revokeToken = makeOperation(http, "api/avatar", "POST", "revoke-token");
|
|
110
|
+
// POST api/avatar/search
|
|
111
|
+
this.searchAvatar = makeOperation(http, "api/avatar", "POST", "search");
|
|
112
|
+
// GET api/avatar/inventory/search
|
|
113
|
+
this.searchAvatarInventory = makeOperation(http, "api/avatar", "GET", "inventory/search");
|
|
114
|
+
// POST api/avatar/inventory/send-to-avatar
|
|
115
|
+
this.sendItemToAvatar = makeOperation(http, "api/avatar", "POST", "inventory/send-to-avatar");
|
|
116
|
+
// POST api/avatar/inventory/send-to-clan
|
|
117
|
+
this.sendItemToClan = makeOperation(http, "api/avatar", "POST", "inventory/send-to-clan");
|
|
118
|
+
// POST api/avatar/set-active-quest
|
|
119
|
+
this.setActiveQuest = makeOperation(http, "api/avatar", "POST", "set-active-quest");
|
|
120
|
+
// POST api/avatar/update-by-id/{id}
|
|
121
|
+
this.update = makeOperation(http, "api/avatar", "POST", "update-by-id/{id}");
|
|
122
|
+
// POST api/avatar/update-avatar-detail-by-id/{id}
|
|
123
|
+
this.updateAvatarDetail = makeOperation(http, "api/avatar", "POST", "update-avatar-detail-by-id/{id}");
|
|
124
|
+
// POST api/avatar/update-avatar-detail-by-email/{email}
|
|
125
|
+
this.updateAvatarDetailByEmail = makeOperation(http, "api/avatar", "POST", "update-avatar-detail-by-email/{email}");
|
|
126
|
+
// POST api/avatar/update-avatar-detail-by-username/{username}
|
|
127
|
+
this.updateAvatarDetailByUsername = makeOperation(http, "api/avatar", "POST", "update-avatar-detail-by-username/{username}");
|
|
128
|
+
// PUT api/avatar/{avatarId}/sessions/{sessionId}
|
|
129
|
+
this.updateAvatarSession = makeOperation(http, "api/avatar", "PUT", "{avatarId}/sessions/{sessionId}");
|
|
130
|
+
// POST api/avatar/update-by-email/{email}
|
|
131
|
+
this.updateByEmail = makeOperation(http, "api/avatar", "POST", "update-by-email/{email}");
|
|
132
|
+
// POST api/avatar/update-by-username/{username}
|
|
133
|
+
this.updateByUsername = makeOperation(http, "api/avatar", "POST", "update-by-username/{username}");
|
|
134
|
+
// POST api/avatar/upload-avatar-portrait
|
|
135
|
+
this.uploadAvatarPortrait = makeOperation(http, "api/avatar", "POST", "upload-avatar-portrait");
|
|
136
|
+
// POST api/avatar/validate-reset-token
|
|
137
|
+
this.validateResetToken = makeOperation(http, "api/avatar", "POST", "validate-reset-token");
|
|
138
|
+
// GET api/avatar/verify-email
|
|
139
|
+
this.verifyEmail = makeOperation(http, "api/avatar", "GET", "verify-email");
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
module.exports = { AvatarModule };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class BridgeModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/v1/bridge/orders/{orderId:guid}/check-balance */
|
|
8
|
+
checkOrderBalance(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/v1/bridge/orders */
|
|
11
|
+
createOrder(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/v1/bridge/orders/private */
|
|
14
|
+
createPrivateOrder(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/v1/bridge/exchange-rate */
|
|
17
|
+
getExchangeRate(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** POST api/v1/bridge/viewing-keys/audit */
|
|
20
|
+
recordViewingKey(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** POST api/v1/bridge/proofs/verify */
|
|
23
|
+
verifyProof(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
|
|
4
|
+
// Regenerate with: node scripts/generate-modules.js
|
|
5
|
+
|
|
6
|
+
const { makeOperation } = require('../core/routeHelper');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generated wrapper for api/v1/bridge (source: ONODE WebAPI BridgeController.cs).
|
|
10
|
+
* Every method takes a single args object: path-template tokens (e.g. {id})
|
|
11
|
+
* are consumed from it automatically; any remaining keys are sent as the
|
|
12
|
+
* query string (GET/DELETE) or JSON body (POST/PUT).
|
|
13
|
+
*/
|
|
14
|
+
class BridgeModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/v1/bridge/orders/{orderId:guid}/check-balance
|
|
19
|
+
this.checkOrderBalance = makeOperation(http, "api/v1/bridge", "GET", "orders/{orderId:guid}/check-balance");
|
|
20
|
+
// POST api/v1/bridge/orders
|
|
21
|
+
this.createOrder = makeOperation(http, "api/v1/bridge", "POST", "orders");
|
|
22
|
+
// POST api/v1/bridge/orders/private
|
|
23
|
+
this.createPrivateOrder = makeOperation(http, "api/v1/bridge", "POST", "orders/private");
|
|
24
|
+
// GET api/v1/bridge/exchange-rate
|
|
25
|
+
this.getExchangeRate = makeOperation(http, "api/v1/bridge", "GET", "exchange-rate");
|
|
26
|
+
// GET api/v1/bridge/networks
|
|
27
|
+
this.getSupportedNetworks = makeOperation(http, "api/v1/bridge", "GET", "networks");
|
|
28
|
+
// POST api/v1/bridge/viewing-keys/audit
|
|
29
|
+
this.recordViewingKey = makeOperation(http, "api/v1/bridge", "POST", "viewing-keys/audit");
|
|
30
|
+
// POST api/v1/bridge/proofs/verify
|
|
31
|
+
this.verifyProof = makeOperation(http, "api/v1/bridge", "POST", "proofs/verify");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
module.exports = { BridgeModule };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
|
|
4
|
+
// Regenerate with: node scripts/generate-modules.js
|
|
5
|
+
|
|
6
|
+
const { makeOperation } = require('../core/routeHelper');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generated wrapper for api/cargo (source: ONODE WebAPI CargoController.cs).
|
|
10
|
+
* Every method takes a single args object: path-template tokens (e.g. {id})
|
|
11
|
+
* are consumed from it automatically; any remaining keys are sent as the
|
|
12
|
+
* query string (GET/DELETE) or JSON body (POST/PUT).
|
|
13
|
+
*/
|
|
14
|
+
class CargoModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/cargo/AuthenticateAccount
|
|
19
|
+
this.authenticateAccount = makeOperation(http, "api/cargo", "POST", "AuthenticateAccount");
|
|
20
|
+
// POST api/cargo/AuthorizeAccount
|
|
21
|
+
this.authorizeAccount = makeOperation(http, "api/cargo", "POST", "AuthorizeAccount");
|
|
22
|
+
// POST api/cargo/CancelSale
|
|
23
|
+
this.cancelCargoSale = makeOperation(http, "api/cargo", "POST", "CancelSale");
|
|
24
|
+
// GET api/cargo/GetCollectiblesListByProjectId
|
|
25
|
+
this.collectiblesListByProjectId = makeOperation(http, "api/cargo", "GET", "GetCollectiblesListByProjectId");
|
|
26
|
+
// GET api/cargo/GetOrders
|
|
27
|
+
this.getCargoOrders = makeOperation(http, "api/cargo", "GET", "GetOrders");
|
|
28
|
+
// GET api/cargo/GetUserTokensByContract
|
|
29
|
+
this.getUserTokensByContract = makeOperation(http, "api/cargo", "GET", "GetUserTokensByContract");
|
|
30
|
+
// POST api/cargo/PurchaseSale
|
|
31
|
+
this.purchaseCargoSale = makeOperation(http, "api/cargo", "POST", "PurchaseSale");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
module.exports = { CargoModule };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class ChatModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/chat/history/{sessionId} */
|
|
8
|
+
getChatHistory(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/chat/send-message/{sessionId} */
|
|
11
|
+
sendMessage(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/chat/start-new-chat-session */
|
|
14
|
+
startNewChatSession(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
|
|
4
|
+
// Regenerate with: node scripts/generate-modules.js
|
|
5
|
+
|
|
6
|
+
const { makeOperation } = require('../core/routeHelper');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generated wrapper for api/chat (source: ONODE WebAPI ChatController.cs).
|
|
10
|
+
* Every method takes a single args object: path-template tokens (e.g. {id})
|
|
11
|
+
* are consumed from it automatically; any remaining keys are sent as the
|
|
12
|
+
* query string (GET/DELETE) or JSON body (POST/PUT).
|
|
13
|
+
*/
|
|
14
|
+
class ChatModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/chat/history/{sessionId}
|
|
19
|
+
this.getChatHistory = makeOperation(http, "api/chat", "GET", "history/{sessionId}");
|
|
20
|
+
// POST api/chat/send-message/{sessionId}
|
|
21
|
+
this.sendMessage = makeOperation(http, "api/chat", "POST", "send-message/{sessionId}");
|
|
22
|
+
// POST api/chat/start-new-chat-session
|
|
23
|
+
this.startNewChatSession = makeOperation(http, "api/chat", "POST", "start-new-chat-session");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = { ChatModule };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class ClanModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/clan/{clanId:guid}/members/{avatarId:guid} */
|
|
8
|
+
addAvatarToClan(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/clan/ */
|
|
11
|
+
create(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** DELETE api/clan/{clanId:guid} */
|
|
14
|
+
delete(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/clan/{clanId:guid}/inventory */
|
|
17
|
+
getClanInventory(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/clan/{clanId:guid}/members */
|
|
20
|
+
getMembers(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/clan/ */
|
|
23
|
+
list(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** GET api/clan/{clanId:guid} */
|
|
26
|
+
load(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/clan/by-name */
|
|
29
|
+
loadByName(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** DELETE api/clan/{clanId:guid}/members/{avatarId:guid} */
|
|
32
|
+
removeAvatarFromClan(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** PUT api/clan/{clanId:guid} */
|
|
35
|
+
update(args?: Record<string, any>): Promise<OASISResponse>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
|
|
4
|
+
// Regenerate with: node scripts/generate-modules.js
|
|
5
|
+
|
|
6
|
+
const { makeOperation } = require('../core/routeHelper');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generated wrapper for api/clan (source: ONODE WebAPI ClanController.cs).
|
|
10
|
+
* Every method takes a single args object: path-template tokens (e.g. {id})
|
|
11
|
+
* are consumed from it automatically; any remaining keys are sent as the
|
|
12
|
+
* query string (GET/DELETE) or JSON body (POST/PUT).
|
|
13
|
+
*/
|
|
14
|
+
class ClanModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/clan/{clanId:guid}/members/{avatarId:guid}
|
|
19
|
+
this.addAvatarToClan = makeOperation(http, "api/clan", "POST", "{clanId:guid}/members/{avatarId:guid}");
|
|
20
|
+
// POST api/clan/
|
|
21
|
+
this.create = makeOperation(http, "api/clan", "POST", "");
|
|
22
|
+
// DELETE api/clan/{clanId:guid}
|
|
23
|
+
this.delete = makeOperation(http, "api/clan", "DELETE", "{clanId:guid}");
|
|
24
|
+
// GET api/clan/{clanId:guid}/inventory
|
|
25
|
+
this.getClanInventory = makeOperation(http, "api/clan", "GET", "{clanId:guid}/inventory");
|
|
26
|
+
// GET api/clan/{clanId:guid}/members
|
|
27
|
+
this.getMembers = makeOperation(http, "api/clan", "GET", "{clanId:guid}/members");
|
|
28
|
+
// GET api/clan/
|
|
29
|
+
this.list = makeOperation(http, "api/clan", "GET", "");
|
|
30
|
+
// GET api/clan/{clanId:guid}
|
|
31
|
+
this.load = makeOperation(http, "api/clan", "GET", "{clanId:guid}");
|
|
32
|
+
// GET api/clan/by-name
|
|
33
|
+
this.loadByName = makeOperation(http, "api/clan", "GET", "by-name");
|
|
34
|
+
// DELETE api/clan/{clanId:guid}/members/{avatarId:guid}
|
|
35
|
+
this.removeAvatarFromClan = makeOperation(http, "api/clan", "DELETE", "{clanId:guid}/members/{avatarId:guid}");
|
|
36
|
+
// PUT api/clan/{clanId:guid}
|
|
37
|
+
this.update = makeOperation(http, "api/clan", "PUT", "{clanId:guid}");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
module.exports = { ClanModule };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class CompetitionModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/competition/tournaments */
|
|
8
|
+
getActiveTournaments(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/competition/leagues/{competitionType}/{seasonType} */
|
|
11
|
+
getAvailableLeagues(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** GET api/competition/league/{avatarId}/{competitionType}/{seasonType} */
|
|
14
|
+
getAvatarLeague(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** GET api/competition/rank/{avatarId}/{competitionType}/{seasonType} */
|
|
17
|
+
getAvatarRank(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** GET api/competition/leaderboard/{competitionType}/{seasonType} */
|
|
20
|
+
getLeaderboard(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** GET api/competition/my-league/{competitionType}/{seasonType} */
|
|
23
|
+
getMyLeague(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** GET api/competition/my-rank/{competitionType}/{seasonType} */
|
|
26
|
+
getMyRank(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/competition/stats/{competitionType}/{seasonType} */
|
|
29
|
+
getMyStats(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** POST api/competition/tournaments/{tournamentId}/join */
|
|
32
|
+
joinTournament(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
|
|
4
|
+
// Regenerate with: node scripts/generate-modules.js
|
|
5
|
+
|
|
6
|
+
const { makeOperation } = require('../core/routeHelper');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generated wrapper for api/competition (source: ONODE WebAPI CompetitionController.cs).
|
|
10
|
+
* Every method takes a single args object: path-template tokens (e.g. {id})
|
|
11
|
+
* are consumed from it automatically; any remaining keys are sent as the
|
|
12
|
+
* query string (GET/DELETE) or JSON body (POST/PUT).
|
|
13
|
+
*/
|
|
14
|
+
class CompetitionModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/competition/tournaments
|
|
19
|
+
this.getActiveTournaments = makeOperation(http, "api/competition", "GET", "tournaments");
|
|
20
|
+
// GET api/competition/leagues/{competitionType}/{seasonType}
|
|
21
|
+
this.getAvailableLeagues = makeOperation(http, "api/competition", "GET", "leagues/{competitionType}/{seasonType}");
|
|
22
|
+
// GET api/competition/league/{avatarId}/{competitionType}/{seasonType}
|
|
23
|
+
this.getAvatarLeague = makeOperation(http, "api/competition", "GET", "league/{avatarId}/{competitionType}/{seasonType}");
|
|
24
|
+
// GET api/competition/rank/{avatarId}/{competitionType}/{seasonType}
|
|
25
|
+
this.getAvatarRank = makeOperation(http, "api/competition", "GET", "rank/{avatarId}/{competitionType}/{seasonType}");
|
|
26
|
+
// GET api/competition/leaderboard/{competitionType}/{seasonType}
|
|
27
|
+
this.getLeaderboard = makeOperation(http, "api/competition", "GET", "leaderboard/{competitionType}/{seasonType}");
|
|
28
|
+
// GET api/competition/my-league/{competitionType}/{seasonType}
|
|
29
|
+
this.getMyLeague = makeOperation(http, "api/competition", "GET", "my-league/{competitionType}/{seasonType}");
|
|
30
|
+
// GET api/competition/my-rank/{competitionType}/{seasonType}
|
|
31
|
+
this.getMyRank = makeOperation(http, "api/competition", "GET", "my-rank/{competitionType}/{seasonType}");
|
|
32
|
+
// GET api/competition/stats/{competitionType}/{seasonType}
|
|
33
|
+
this.getMyStats = makeOperation(http, "api/competition", "GET", "stats/{competitionType}/{seasonType}");
|
|
34
|
+
// POST api/competition/tournaments/{tournamentId}/join
|
|
35
|
+
this.joinTournament = makeOperation(http, "api/competition", "POST", "tournaments/{tournamentId}/join");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
module.exports = { CompetitionModule };
|