@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.
Files changed (116) hide show
  1. package/README.md +464 -0
  2. package/docs/README.md +52 -0
  3. package/docs/auth.md +89 -0
  4. package/docs/getting-started.md +129 -0
  5. package/docs/modules/Avatar.md +4160 -0
  6. package/docs/modules/Bridge.md +394 -0
  7. package/docs/modules/Chat.md +168 -0
  8. package/docs/modules/Clan.md +552 -0
  9. package/docs/modules/Competition.md +594 -0
  10. package/docs/modules/Data.md +796 -0
  11. package/docs/modules/EOSIO.md +508 -0
  12. package/docs/modules/Eggs.md +396 -0
  13. package/docs/modules/Files.md +312 -0
  14. package/docs/modules/Gifts.md +306 -0
  15. package/docs/modules/Health.md +90 -0
  16. package/docs/modules/Holochain.md +374 -0
  17. package/docs/modules/HyperDrive.md +3857 -0
  18. package/docs/modules/Karma.md +644 -0
  19. package/docs/modules/Keys.md +3303 -0
  20. package/docs/modules/Map.md +1026 -0
  21. package/docs/modules/Messaging.md +320 -0
  22. package/docs/modules/Nft.md +2216 -0
  23. package/docs/modules/OLand.md +425 -0
  24. package/docs/modules/ONET.md +442 -0
  25. package/docs/modules/ONODE.md +504 -0
  26. package/docs/modules/Provider.md +1396 -0
  27. package/docs/modules/Search.md +69 -0
  28. package/docs/modules/Seeds.md +167 -0
  29. package/docs/modules/Settings.md +533 -0
  30. package/docs/modules/Share.md +64 -0
  31. package/docs/modules/Social.md +190 -0
  32. package/docs/modules/Solana.md +150 -0
  33. package/docs/modules/Stats.md +359 -0
  34. package/docs/modules/Subscription.md +437 -0
  35. package/docs/modules/Video.md +150 -0
  36. package/docs/modules/Wallet.md +1993 -0
  37. package/index.d.ts +106 -0
  38. package/index.js +3 -0
  39. package/index.mjs +4 -0
  40. package/package.json +120 -0
  41. package/src/core/httpClient.js +110 -0
  42. package/src/core/routeHelper.js +50 -0
  43. package/src/core/tokenStore.js +52 -0
  44. package/src/core/types.d.ts +18 -0
  45. package/src/index.js +46 -0
  46. package/src/modules/Auth.d.ts +28 -0
  47. package/src/modules/Auth.js +98 -0
  48. package/src/modules/Avatar.d.ts +192 -0
  49. package/src/modules/Avatar.js +143 -0
  50. package/src/modules/Bridge.d.ts +24 -0
  51. package/src/modules/Bridge.js +35 -0
  52. package/src/modules/Cargo.js +35 -0
  53. package/src/modules/Chat.d.ts +15 -0
  54. package/src/modules/Chat.js +27 -0
  55. package/src/modules/Clan.d.ts +36 -0
  56. package/src/modules/Clan.js +41 -0
  57. package/src/modules/Competition.d.ts +33 -0
  58. package/src/modules/Competition.js +39 -0
  59. package/src/modules/Core.js +27 -0
  60. package/src/modules/Data.d.ts +36 -0
  61. package/src/modules/Data.js +41 -0
  62. package/src/modules/EOSIO.d.ts +33 -0
  63. package/src/modules/EOSIO.js +39 -0
  64. package/src/modules/Eggs.d.ts +24 -0
  65. package/src/modules/Eggs.js +33 -0
  66. package/src/modules/Files.d.ts +24 -0
  67. package/src/modules/Files.js +33 -0
  68. package/src/modules/Gifts.d.ts +24 -0
  69. package/src/modules/Gifts.js +33 -0
  70. package/src/modules/Health.d.ts +12 -0
  71. package/src/modules/Health.js +25 -0
  72. package/src/modules/Holochain.d.ts +27 -0
  73. package/src/modules/Holochain.js +35 -0
  74. package/src/modules/HyperDrive.d.ts +237 -0
  75. package/src/modules/HyperDrive.js +175 -0
  76. package/src/modules/Karma.d.ts +42 -0
  77. package/src/modules/Karma.js +45 -0
  78. package/src/modules/Keys.d.ts +183 -0
  79. package/src/modules/Keys.js +139 -0
  80. package/src/modules/Map.d.ts +75 -0
  81. package/src/modules/Map.js +65 -0
  82. package/src/modules/Messaging.d.ts +24 -0
  83. package/src/modules/Messaging.js +33 -0
  84. package/src/modules/Nft.d.ts +102 -0
  85. package/src/modules/Nft.js +85 -0
  86. package/src/modules/OAPP.js +31 -0
  87. package/src/modules/OLand.d.ts +27 -0
  88. package/src/modules/OLand.js +35 -0
  89. package/src/modules/ONET.d.ts +39 -0
  90. package/src/modules/ONET.js +43 -0
  91. package/src/modules/ONODE.d.ts +45 -0
  92. package/src/modules/ONODE.js +47 -0
  93. package/src/modules/Provider.d.ts +99 -0
  94. package/src/modules/Provider.js +83 -0
  95. package/src/modules/Search.d.ts +9 -0
  96. package/src/modules/Search.js +23 -0
  97. package/src/modules/Seeds.d.ts +15 -0
  98. package/src/modules/Seeds.js +27 -0
  99. package/src/modules/Settings.d.ts +48 -0
  100. package/src/modules/Settings.js +47 -0
  101. package/src/modules/Share.d.ts +9 -0
  102. package/src/modules/Share.js +23 -0
  103. package/src/modules/Social.d.ts +18 -0
  104. package/src/modules/Social.js +29 -0
  105. package/src/modules/Solana.d.ts +12 -0
  106. package/src/modules/Solana.js +25 -0
  107. package/src/modules/Stats.d.ts +30 -0
  108. package/src/modules/Stats.js +37 -0
  109. package/src/modules/Subscription.d.ts +36 -0
  110. package/src/modules/Subscription.js +41 -0
  111. package/src/modules/Telos.js +39 -0
  112. package/src/modules/Video.d.ts +15 -0
  113. package/src/modules/Video.js +27 -0
  114. package/src/modules/Wallet.d.ts +102 -0
  115. package/src/modules/Wallet.js +85 -0
  116. package/src/modules/index.js +79 -0
@@ -0,0 +1,1026 @@
1
+ # Map — `oasis.map`
2
+
3
+ Source controller: [`MapController.cs`](https://github.com/NextGenSoftwareUK/OASIS2/blob/main/ONODE/NextGenSoftware.OASIS.API.ONODE.WebAPI/Controllers/MapController.cs)
4
+ Route prefix: `api/map`
5
+ 22 operation(s).
6
+
7
+ Every method takes a single args object: any key matching a `{token}` in the route is substituted into the URL; everything else becomes the query string (GET/DELETE) or JSON body (POST/PUT). Every call resolves to the standard OASIS envelope:
8
+
9
+ ```ts
10
+ {
11
+ isError: boolean;
12
+ isWarning: boolean;
13
+ message: string;
14
+ errorCode?: string;
15
+ result: T; // see each endpoint's Response section below
16
+ }
17
+ ```
18
+
19
+ ## Operations
20
+
21
+ ### `createAndDrawRouteOnMapBetweenHolons`
22
+
23
+ Create and draw a route on the map between two holons.
24
+
25
+ **POST** `api/map/CreateAndDrawRouteOnMapBetweenHolons/{holonDNA}`
26
+
27
+ Route parameters:
28
+
29
+ | Field | Type |
30
+ | --- | --- |
31
+ | `holonDNA` | `HolonDNA` |
32
+
33
+ **Request**
34
+
35
+ No request body.
36
+
37
+ **Response**
38
+
39
+ Standard `OASISResult` envelope (see top of this page) with:
40
+
41
+ `result` type: `bool`
42
+
43
+ **Example**
44
+
45
+ ```js
46
+ const { isError, message, result } = await oasis.map.createAndDrawRouteOnMapBetweenHolons({
47
+ holonDNA: '<holonDNA>'
48
+ });
49
+ if (isError) throw new Error(message);
50
+ console.log(result);
51
+ ```
52
+
53
+ Example response:
54
+
55
+ ```json
56
+ {
57
+ "isError": false,
58
+ "message": "",
59
+ "result": true
60
+ }
61
+ ```
62
+
63
+ ---
64
+
65
+ ### `createAndDrawRouteOnMapBeweenPoints`
66
+
67
+ Create and draw a route on the map between two points.
68
+
69
+ **POST** `api/map/CreateAndDrawRouteOnMapBeweenPoints/{points}`
70
+
71
+ Route parameters:
72
+
73
+ | Field | Type |
74
+ | --- | --- |
75
+ | `points` | `MapPoints` |
76
+
77
+ **Request**
78
+
79
+ No request body.
80
+
81
+ **Response**
82
+
83
+ Standard `OASISResult` envelope (see top of this page) with:
84
+
85
+ `result` type: `bool`
86
+
87
+ **Example**
88
+
89
+ ```js
90
+ const { isError, message, result } = await oasis.map.createAndDrawRouteOnMapBeweenPoints({
91
+ points: '<points>'
92
+ });
93
+ if (isError) throw new Error(message);
94
+ console.log(result);
95
+ ```
96
+
97
+ Example response:
98
+
99
+ ```json
100
+ {
101
+ "isError": false,
102
+ "message": "",
103
+ "result": true
104
+ }
105
+ ```
106
+
107
+ ---
108
+
109
+ ### `draw2DSpriteOnHUD`
110
+
111
+ Draw a 2D sprint on the Our World HUD.
112
+
113
+ **POST** `api/map/Draw2DSpriteOnHUD/{sprite}/{x}/{y}`
114
+
115
+ Route parameters:
116
+
117
+ | Field | Type |
118
+ | --- | --- |
119
+ | `sprite` | `string` |
120
+ | `x` | `float` |
121
+ | `y` | `float` |
122
+
123
+ **Request**
124
+
125
+ No request body.
126
+
127
+ **Response**
128
+
129
+ Standard `OASISResult` envelope (see top of this page) with:
130
+
131
+ `result` type: `bool`
132
+
133
+ **Example**
134
+
135
+ ```js
136
+ const { isError, message, result } = await oasis.map.draw2DSpriteOnHUD({
137
+ sprite: '<sprite>',
138
+ x: '<x>',
139
+ y: '<y>'
140
+ });
141
+ if (isError) throw new Error(message);
142
+ console.log(result);
143
+ ```
144
+
145
+ Example response:
146
+
147
+ ```json
148
+ {
149
+ "isError": false,
150
+ "message": "",
151
+ "result": true
152
+ }
153
+ ```
154
+
155
+ ---
156
+
157
+ ### `draw2DSpriteOnMap`
158
+
159
+ Draw a 2D sprint on the map.
160
+
161
+ **POST** `api/map/Draw2DSpriteOnMap/{sprite}/{x}/{y}`
162
+
163
+ Route parameters:
164
+
165
+ | Field | Type |
166
+ | --- | --- |
167
+ | `sprite` | `string` |
168
+ | `x` | `float` |
169
+ | `y` | `float` |
170
+
171
+ **Request**
172
+
173
+ No request body.
174
+
175
+ **Response**
176
+
177
+ Standard `OASISResult` envelope (see top of this page) with:
178
+
179
+ `result` type: `bool`
180
+
181
+ **Example**
182
+
183
+ ```js
184
+ const { isError, message, result } = await oasis.map.draw2DSpriteOnMap({
185
+ sprite: '<sprite>',
186
+ x: '<x>',
187
+ y: '<y>'
188
+ });
189
+ if (isError) throw new Error(message);
190
+ console.log(result);
191
+ ```
192
+
193
+ Example response:
194
+
195
+ ```json
196
+ {
197
+ "isError": false,
198
+ "message": "",
199
+ "result": true
200
+ }
201
+ ```
202
+
203
+ ---
204
+
205
+ ### `draw3DObjectOnMap`
206
+
207
+ Draw a 3D object on the map.
208
+
209
+ **POST** `api/map/Draw3DObjectOnMap/{obj}/{x}/{y}`
210
+
211
+ Route parameters:
212
+
213
+ | Field | Type |
214
+ | --- | --- |
215
+ | `obj` | `string` |
216
+ | `x` | `float` |
217
+ | `y` | `float` |
218
+
219
+ **Request**
220
+
221
+ No request body.
222
+
223
+ **Response**
224
+
225
+ Standard `OASISResult` envelope (see top of this page) with:
226
+
227
+ `result` type: `bool`
228
+
229
+ **Example**
230
+
231
+ ```js
232
+ const { isError, message, result } = await oasis.map.draw3DObjectOnMap({
233
+ obj: '<obj>',
234
+ x: '<x>',
235
+ y: '<y>'
236
+ });
237
+ if (isError) throw new Error(message);
238
+ console.log(result);
239
+ ```
240
+
241
+ Example response:
242
+
243
+ ```json
244
+ {
245
+ "isError": false,
246
+ "message": "",
247
+ "result": true
248
+ }
249
+ ```
250
+
251
+ ---
252
+
253
+ ### `getMapStats`
254
+
255
+ Get map statistics for the current avatar
256
+
257
+ **GET** `api/map/stats`
258
+
259
+ **Request**
260
+
261
+ No request body.
262
+
263
+ **Response**
264
+
265
+ Standard `OASISResult` envelope (see top of this page) with:
266
+
267
+ `result` type: `Dictionary<string, object>` - a key/value map keyed by `string`, each value a `object`.
268
+
269
+ **Example**
270
+
271
+ ```js
272
+ const { isError, message, result } = await oasis.map.getMapStats({});
273
+ if (isError) throw new Error(message);
274
+ console.log(result);
275
+ ```
276
+
277
+ Example response:
278
+
279
+ ```json
280
+ {
281
+ "isError": false,
282
+ "message": "",
283
+ "result": { "<string>": {} }
284
+ }
285
+ ```
286
+
287
+ ---
288
+
289
+ ### `getNearbyLocations`
290
+
291
+ Get nearby locations for the current avatar
292
+
293
+ **GET** `api/map/nearby`
294
+
295
+ **Request**
296
+
297
+ Query parameters:
298
+
299
+ | Field | Type |
300
+ | --- | --- |
301
+ | `latitude` | `double` |
302
+ | `longitude` | `double` |
303
+ | `radiusKm` | `double (optional)` |
304
+
305
+ **Response**
306
+
307
+ Standard `OASISResult` envelope (see top of this page) with:
308
+
309
+ `result` type: `MapLocation` (array)
310
+
311
+ | Field | Type |
312
+ | --- | --- |
313
+ | `Id` | `Guid` |
314
+ | `Name` | `string` |
315
+ | `Description` | `string` |
316
+ | `Latitude` | `double` |
317
+ | `Longitude` | `double` |
318
+ | `Type` | `LocationType` |
319
+ | `IsActive` | `bool` |
320
+ | `Metadata` | `Dictionary<string, object>` |
321
+
322
+ **Example**
323
+
324
+ ```js
325
+ const { isError, message, result } = await oasis.map.getNearbyLocations({
326
+ latitude: 1.0,
327
+ longitude: 1.0,
328
+ radiusKm: 1.0
329
+ });
330
+ if (isError) throw new Error(message);
331
+ console.log(result);
332
+ ```
333
+
334
+ Example response:
335
+
336
+ ```json
337
+ {
338
+ "isError": false,
339
+ "message": "",
340
+ "result": [{ "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Name": "example string", "Description": "example string", "Latitude": 1.0, "Longitude": 1.0, "Type": { }, "IsActive": true, "Metadata": { "<string>": {} } }]
341
+ }
342
+ ```
343
+
344
+ ---
345
+
346
+ ### `getVisitHistory`
347
+
348
+ Get visit history for the current avatar
349
+
350
+ **GET** `api/map/visit-history`
351
+
352
+ **Request**
353
+
354
+ Query parameters:
355
+
356
+ | Field | Type |
357
+ | --- | --- |
358
+ | `limit` | `int (optional)` |
359
+ | `offset` | `int (optional)` |
360
+
361
+ **Response**
362
+
363
+ Standard `OASISResult` envelope (see top of this page) with:
364
+
365
+ `result` type: `MapVisit` (array)
366
+
367
+ | Field | Type |
368
+ | --- | --- |
369
+ | `Id` | `Guid` |
370
+ | `AvatarId` | `Guid` |
371
+ | `LocationId` | `Guid` |
372
+ | `Purpose` | `string` |
373
+ | `VisitedAt` | `DateTime` |
374
+
375
+ **Example**
376
+
377
+ ```js
378
+ const { isError, message, result } = await oasis.map.getVisitHistory({
379
+ limit: 1,
380
+ offset: 1
381
+ });
382
+ if (isError) throw new Error(message);
383
+ console.log(result);
384
+ ```
385
+
386
+ Example response:
387
+
388
+ ```json
389
+ {
390
+ "isError": false,
391
+ "message": "",
392
+ "result": [{ "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "AvatarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "LocationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Purpose": "example string", "VisitedAt": "2026-01-01T00:00:00Z" }]
393
+ }
394
+ ```
395
+
396
+ ---
397
+
398
+ ### `highlightBuildingOnMap`
399
+
400
+ Highlight a building on the map.
401
+
402
+ **POST** `api/map/HighlightBuildingOnMap/{building}`
403
+
404
+ Route parameters:
405
+
406
+ | Field | Type |
407
+ | --- | --- |
408
+ | `building` | `Building` |
409
+
410
+ **Request**
411
+
412
+ No request body.
413
+
414
+ **Response**
415
+
416
+ Standard `OASISResult` envelope (see top of this page) with:
417
+
418
+ `result` type: `bool`
419
+
420
+ **Example**
421
+
422
+ ```js
423
+ const { isError, message, result } = await oasis.map.highlightBuildingOnMap({
424
+ building: '<building>'
425
+ });
426
+ if (isError) throw new Error(message);
427
+ console.log(result);
428
+ ```
429
+
430
+ Example response:
431
+
432
+ ```json
433
+ {
434
+ "isError": false,
435
+ "message": "",
436
+ "result": true
437
+ }
438
+ ```
439
+
440
+ ---
441
+
442
+ ### `pamMapDown`
443
+
444
+ Pam the map down.
445
+
446
+ **POST** `api/map/PamMapDown/{value}`
447
+
448
+ Route parameters:
449
+
450
+ | Field | Type |
451
+ | --- | --- |
452
+ | `value` | `float` |
453
+
454
+ **Request**
455
+
456
+ No request body.
457
+
458
+ **Response**
459
+
460
+ Standard `OASISResult` envelope (see top of this page) with:
461
+
462
+ `result` type: `bool`
463
+
464
+ **Example**
465
+
466
+ ```js
467
+ const { isError, message, result } = await oasis.map.pamMapDown({
468
+ value: '<value>'
469
+ });
470
+ if (isError) throw new Error(message);
471
+ console.log(result);
472
+ ```
473
+
474
+ Example response:
475
+
476
+ ```json
477
+ {
478
+ "isError": false,
479
+ "message": "",
480
+ "result": true
481
+ }
482
+ ```
483
+
484
+ ---
485
+
486
+ ### `pamMapLeft`
487
+
488
+ Pam the map left.
489
+
490
+ **POST** `api/map/PamMapLeft/{value}`
491
+
492
+ Route parameters:
493
+
494
+ | Field | Type |
495
+ | --- | --- |
496
+ | `value` | `float` |
497
+
498
+ **Request**
499
+
500
+ No request body.
501
+
502
+ **Response**
503
+
504
+ Standard `OASISResult` envelope (see top of this page) with:
505
+
506
+ `result` type: `bool`
507
+
508
+ **Example**
509
+
510
+ ```js
511
+ const { isError, message, result } = await oasis.map.pamMapLeft({
512
+ value: '<value>'
513
+ });
514
+ if (isError) throw new Error(message);
515
+ console.log(result);
516
+ ```
517
+
518
+ Example response:
519
+
520
+ ```json
521
+ {
522
+ "isError": false,
523
+ "message": "",
524
+ "result": true
525
+ }
526
+ ```
527
+
528
+ ---
529
+
530
+ ### `pamMapRight`
531
+
532
+ Pam the map right.
533
+
534
+ **POST** `api/map/PamMapRight/{value}`
535
+
536
+ Route parameters:
537
+
538
+ | Field | Type |
539
+ | --- | --- |
540
+ | `value` | `float` |
541
+
542
+ **Request**
543
+
544
+ No request body.
545
+
546
+ **Response**
547
+
548
+ Standard `OASISResult` envelope (see top of this page) with:
549
+
550
+ `result` type: `bool`
551
+
552
+ **Example**
553
+
554
+ ```js
555
+ const { isError, message, result } = await oasis.map.pamMapRight({
556
+ value: '<value>'
557
+ });
558
+ if (isError) throw new Error(message);
559
+ console.log(result);
560
+ ```
561
+
562
+ Example response:
563
+
564
+ ```json
565
+ {
566
+ "isError": false,
567
+ "message": "",
568
+ "result": true
569
+ }
570
+ ```
571
+
572
+ ---
573
+
574
+ ### `pamMapUp`
575
+
576
+ Pam the map up.
577
+
578
+ **POST** `api/map/PamMapUp/{value}`
579
+
580
+ Route parameters:
581
+
582
+ | Field | Type |
583
+ | --- | --- |
584
+ | `value` | `float` |
585
+
586
+ **Request**
587
+
588
+ No request body.
589
+
590
+ **Response**
591
+
592
+ Standard `OASISResult` envelope (see top of this page) with:
593
+
594
+ `result` type: `bool`
595
+
596
+ **Example**
597
+
598
+ ```js
599
+ const { isError, message, result } = await oasis.map.pamMapUp({
600
+ value: '<value>'
601
+ });
602
+ if (isError) throw new Error(message);
603
+ console.log(result);
604
+ ```
605
+
606
+ Example response:
607
+
608
+ ```json
609
+ {
610
+ "isError": false,
611
+ "message": "",
612
+ "result": true
613
+ }
614
+ ```
615
+
616
+ ---
617
+
618
+ ### `search`
619
+
620
+ Search the map for locations, points of interest, and other map features
621
+
622
+ **POST** `api/map/search`
623
+
624
+ **Request**
625
+
626
+ Body type: `LocationType`
627
+
628
+ _No fields._
629
+
630
+ **Response**
631
+
632
+ Standard `OASISResult` envelope (see top of this page) with:
633
+
634
+ `result` type: `MapLocation` (array)
635
+
636
+ | Field | Type |
637
+ | --- | --- |
638
+ | `Id` | `Guid` |
639
+ | `Name` | `string` |
640
+ | `Description` | `string` |
641
+ | `Latitude` | `double` |
642
+ | `Longitude` | `double` |
643
+ | `Type` | `LocationType` |
644
+ | `IsActive` | `bool` |
645
+ | `Metadata` | `Dictionary<string, object>` |
646
+
647
+ **Example**
648
+
649
+ ```js
650
+ const { isError, message, result } = await oasis.map.search({
651
+ query: 'example string',
652
+ latitude: '<latitude>',
653
+ longitude: '<longitude>',
654
+ radiusKm: '<radiusKm>'
655
+ });
656
+ if (isError) throw new Error(message);
657
+ console.log(result);
658
+ ```
659
+
660
+ Example response:
661
+
662
+ ```json
663
+ {
664
+ "isError": false,
665
+ "message": "",
666
+ "result": [{ "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "Name": "example string", "Description": "example string", "Latitude": 1.0, "Longitude": 1.0, "Type": { }, "IsActive": true, "Metadata": { "<string>": {} } }]
667
+ }
668
+ ```
669
+
670
+ ---
671
+
672
+ ### `selectBuildingOnMap`
673
+
674
+ Select building on map.
675
+
676
+ **POST** `api/map/SelectBuildingOnMap/{building}`
677
+
678
+ Route parameters:
679
+
680
+ | Field | Type |
681
+ | --- | --- |
682
+ | `building` | `Building` |
683
+
684
+ **Request**
685
+
686
+ No request body.
687
+
688
+ **Response**
689
+
690
+ Standard `OASISResult` envelope (see top of this page) with:
691
+
692
+ `result` type: `bool`
693
+
694
+ **Example**
695
+
696
+ ```js
697
+ const { isError, message, result } = await oasis.map.selectBuildingOnMap({
698
+ building: '<building>'
699
+ });
700
+ if (isError) throw new Error(message);
701
+ console.log(result);
702
+ ```
703
+
704
+ Example response:
705
+
706
+ ```json
707
+ {
708
+ "isError": false,
709
+ "message": "",
710
+ "result": true
711
+ }
712
+ ```
713
+
714
+ ---
715
+
716
+ ### `selectHolonOnMap`
717
+
718
+ Select holon on map.
719
+
720
+ **POST** `api/map/SelectHolonOnMap/{holon}`
721
+
722
+ Route parameters:
723
+
724
+ | Field | Type |
725
+ | --- | --- |
726
+ | `holon` | `Holon` |
727
+
728
+ **Request**
729
+
730
+ No request body.
731
+
732
+ **Response**
733
+
734
+ Standard `OASISResult` envelope (see top of this page) with:
735
+
736
+ `result` type: `bool`
737
+
738
+ **Example**
739
+
740
+ ```js
741
+ const { isError, message, result } = await oasis.map.selectHolonOnMap({
742
+ holon: '<holon>'
743
+ });
744
+ if (isError) throw new Error(message);
745
+ console.log(result);
746
+ ```
747
+
748
+ Example response:
749
+
750
+ ```json
751
+ {
752
+ "isError": false,
753
+ "message": "",
754
+ "result": true
755
+ }
756
+ ```
757
+
758
+ ---
759
+
760
+ ### `selectQuestOnMap`
761
+
762
+ Select quest on map.
763
+
764
+ **POST** `api/map/SelectQuestOnMap/{quest}`
765
+
766
+ Route parameters:
767
+
768
+ | Field | Type |
769
+ | --- | --- |
770
+ | `quest` | `Quest` |
771
+
772
+ **Request**
773
+
774
+ No request body.
775
+
776
+ **Response**
777
+
778
+ Standard `OASISResult` envelope (see top of this page) with:
779
+
780
+ `result` type: `bool`
781
+
782
+ **Example**
783
+
784
+ ```js
785
+ const { isError, message, result } = await oasis.map.selectQuestOnMap({
786
+ quest: '<quest>'
787
+ });
788
+ if (isError) throw new Error(message);
789
+ console.log(result);
790
+ ```
791
+
792
+ Example response:
793
+
794
+ ```json
795
+ {
796
+ "isError": false,
797
+ "message": "",
798
+ "result": true
799
+ }
800
+ ```
801
+
802
+ ---
803
+
804
+ ### `visitLocation`
805
+
806
+ Visit a location
807
+
808
+ **POST** `api/map/visit/{locationId}`
809
+
810
+ Route parameters:
811
+
812
+ | Field | Type |
813
+ | --- | --- |
814
+ | `locationId` | `Guid` |
815
+
816
+ **Request**
817
+
818
+ Body fields:
819
+
820
+ | Field | Type |
821
+ | --- | --- |
822
+ | `purpose` | `string (optional)` |
823
+
824
+ **Response**
825
+
826
+ Standard `OASISResult` envelope (see top of this page) with:
827
+
828
+ `result` type: `bool`
829
+
830
+ **Example**
831
+
832
+ ```js
833
+ const { isError, message, result } = await oasis.map.visitLocation({
834
+ locationId: '<locationId>',
835
+ purpose: 'example string'
836
+ });
837
+ if (isError) throw new Error(message);
838
+ console.log(result);
839
+ ```
840
+
841
+ Example response:
842
+
843
+ ```json
844
+ {
845
+ "isError": false,
846
+ "message": "",
847
+ "result": true
848
+ }
849
+ ```
850
+
851
+ ---
852
+
853
+ ### `zoomMapIn`
854
+
855
+ Zoom map in.
856
+
857
+ **POST** `api/map/ZoomMapIn/{value}`
858
+
859
+ Route parameters:
860
+
861
+ | Field | Type |
862
+ | --- | --- |
863
+ | `value` | `float` |
864
+
865
+ **Request**
866
+
867
+ No request body.
868
+
869
+ **Response**
870
+
871
+ Standard `OASISResult` envelope (see top of this page) with:
872
+
873
+ `result` type: `bool`
874
+
875
+ **Example**
876
+
877
+ ```js
878
+ const { isError, message, result } = await oasis.map.zoomMapIn({
879
+ value: '<value>'
880
+ });
881
+ if (isError) throw new Error(message);
882
+ console.log(result);
883
+ ```
884
+
885
+ Example response:
886
+
887
+ ```json
888
+ {
889
+ "isError": false,
890
+ "message": "",
891
+ "result": true
892
+ }
893
+ ```
894
+
895
+ ---
896
+
897
+ ### `zoomMapOut`
898
+
899
+ Zoom map out.
900
+
901
+ **POST** `api/map/ZoomMapOut/{value}`
902
+
903
+ Route parameters:
904
+
905
+ | Field | Type |
906
+ | --- | --- |
907
+ | `value` | `float` |
908
+
909
+ **Request**
910
+
911
+ No request body.
912
+
913
+ **Response**
914
+
915
+ Standard `OASISResult` envelope (see top of this page) with:
916
+
917
+ `result` type: `bool`
918
+
919
+ **Example**
920
+
921
+ ```js
922
+ const { isError, message, result } = await oasis.map.zoomMapOut({
923
+ value: '<value>'
924
+ });
925
+ if (isError) throw new Error(message);
926
+ console.log(result);
927
+ ```
928
+
929
+ Example response:
930
+
931
+ ```json
932
+ {
933
+ "isError": false,
934
+ "message": "",
935
+ "result": true
936
+ }
937
+ ```
938
+
939
+ ---
940
+
941
+ ### `zoomToHolonOnMap`
942
+
943
+ Zoom to holon on map.
944
+
945
+ **POST** `api/map/ZoomToHolonOnMap/{holon}`
946
+
947
+ Route parameters:
948
+
949
+ | Field | Type |
950
+ | --- | --- |
951
+ | `holon` | `Holon` |
952
+
953
+ **Request**
954
+
955
+ No request body.
956
+
957
+ **Response**
958
+
959
+ Standard `OASISResult` envelope (see top of this page) with:
960
+
961
+ `result` type: `bool`
962
+
963
+ **Example**
964
+
965
+ ```js
966
+ const { isError, message, result } = await oasis.map.zoomToHolonOnMap({
967
+ holon: '<holon>'
968
+ });
969
+ if (isError) throw new Error(message);
970
+ console.log(result);
971
+ ```
972
+
973
+ Example response:
974
+
975
+ ```json
976
+ {
977
+ "isError": false,
978
+ "message": "",
979
+ "result": true
980
+ }
981
+ ```
982
+
983
+ ---
984
+
985
+ ### `zoomToQuestOnMap`
986
+
987
+ Zoom to quest on map.
988
+
989
+ **POST** `api/map/ZoomToQuestOnMap/{quest}`
990
+
991
+ Route parameters:
992
+
993
+ | Field | Type |
994
+ | --- | --- |
995
+ | `quest` | `Quest` |
996
+
997
+ **Request**
998
+
999
+ No request body.
1000
+
1001
+ **Response**
1002
+
1003
+ Standard `OASISResult` envelope (see top of this page) with:
1004
+
1005
+ `result` type: `bool`
1006
+
1007
+ **Example**
1008
+
1009
+ ```js
1010
+ const { isError, message, result } = await oasis.map.zoomToQuestOnMap({
1011
+ quest: '<quest>'
1012
+ });
1013
+ if (isError) throw new Error(message);
1014
+ console.log(result);
1015
+ ```
1016
+
1017
+ Example response:
1018
+
1019
+ ```json
1020
+ {
1021
+ "isError": false,
1022
+ "message": "",
1023
+ "result": true
1024
+ }
1025
+ ```
1026
+