@oasisomniverse/web5-api 1.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 +250 -0
- package/docs/README.md +44 -0
- package/docs/modules/Avatar.md +606 -0
- package/docs/modules/CelestialBodies.md +1051 -0
- package/docs/modules/CelestialBodiesMetaData.md +949 -0
- package/docs/modules/CelestialSpaces.md +1051 -0
- package/docs/modules/Chapters.md +955 -0
- package/docs/modules/Competition.md +594 -0
- package/docs/modules/Cosmic.md +3653 -0
- package/docs/modules/Games.md +2619 -0
- package/docs/modules/GeoHotSpots.md +1027 -0
- package/docs/modules/GeoNFTs.md +1049 -0
- package/docs/modules/Health.md +90 -0
- package/docs/modules/Holons.md +1139 -0
- package/docs/modules/HolonsMetaData.md +949 -0
- package/docs/modules/InventoryItems.md +1071 -0
- package/docs/modules/Libraries.md +1052 -0
- package/docs/modules/Missions.md +1286 -0
- package/docs/modules/NFTs.md +1008 -0
- package/docs/modules/OAPPs.md +1190 -0
- package/docs/modules/Parks.md +1079 -0
- package/docs/modules/Plugins.md +1138 -0
- package/docs/modules/Quests.md +1941 -0
- package/docs/modules/Runtimes.md +1112 -0
- package/docs/modules/STAR.md +178 -0
- package/docs/modules/Templates.md +990 -0
- package/docs/modules/Zomes.md +1049 -0
- package/docs/modules/ZomesMetaData.md +949 -0
- package/index.d.ts +97 -0
- package/index.js +3 -0
- package/index.mjs +4 -0
- package/package.json +117 -0
- package/src/core/httpClient.js +110 -0
- package/src/core/routeHelper.js +85 -0
- package/src/core/tokenStore.js +52 -0
- package/src/core/types.d.ts +18 -0
- package/src/index.js +60 -0
- package/src/modules/Auth.d.ts +15 -0
- package/src/modules/Auth.js +62 -0
- package/src/modules/Avatar.d.ts +45 -0
- package/src/modules/Avatar.js +47 -0
- package/src/modules/CelestialBodies.d.ts +72 -0
- package/src/modules/CelestialBodies.js +65 -0
- package/src/modules/CelestialBodiesMetaData.d.ts +69 -0
- package/src/modules/CelestialBodiesMetaData.js +61 -0
- package/src/modules/CelestialSpaces.d.ts +72 -0
- package/src/modules/CelestialSpaces.js +65 -0
- package/src/modules/Chapters.d.ts +66 -0
- package/src/modules/Chapters.js +61 -0
- package/src/modules/Competition.d.ts +33 -0
- package/src/modules/Competition.js +39 -0
- package/src/modules/Cosmic.d.ts +222 -0
- package/src/modules/Cosmic.js +165 -0
- package/src/modules/Games.d.ts +171 -0
- package/src/modules/Games.js +131 -0
- package/src/modules/GeoHotSpots.d.ts +66 -0
- package/src/modules/GeoHotSpots.js +61 -0
- package/src/modules/GeoNFTs.d.ts +72 -0
- package/src/modules/GeoNFTs.js +65 -0
- package/src/modules/Health.d.ts +12 -0
- package/src/modules/Health.js +25 -0
- package/src/modules/Holons.d.ts +78 -0
- package/src/modules/Holons.js +69 -0
- package/src/modules/HolonsMetaData.d.ts +69 -0
- package/src/modules/HolonsMetaData.js +61 -0
- package/src/modules/InventoryItems.d.ts +69 -0
- package/src/modules/InventoryItems.js +63 -0
- package/src/modules/Libraries.d.ts +72 -0
- package/src/modules/Libraries.js +65 -0
- package/src/modules/Missions.d.ts +87 -0
- package/src/modules/Missions.js +75 -0
- package/src/modules/NFTs.d.ts +69 -0
- package/src/modules/NFTs.js +63 -0
- package/src/modules/OAPPs.d.ts +69 -0
- package/src/modules/OAPPs.js +61 -0
- package/src/modules/Parks.d.ts +72 -0
- package/src/modules/Parks.js +65 -0
- package/src/modules/Plugins.d.ts +78 -0
- package/src/modules/Plugins.js +69 -0
- package/src/modules/Quests.d.ts +129 -0
- package/src/modules/Quests.js +101 -0
- package/src/modules/Runtimes.d.ts +81 -0
- package/src/modules/Runtimes.js +69 -0
- package/src/modules/STAR.d.ts +18 -0
- package/src/modules/STAR.js +29 -0
- package/src/modules/Templates.d.ts +72 -0
- package/src/modules/Templates.js +63 -0
- package/src/modules/Zomes.d.ts +72 -0
- package/src/modules/Zomes.js +65 -0
- package/src/modules/ZomesMetaData.d.ts +69 -0
- package/src/modules/ZomesMetaData.js +61 -0
- package/src/modules/index.js +67 -0
|
@@ -0,0 +1,131 @@
|
|
|
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/games (source: STAR WebAPI GamesController.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 GamesModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/games/{id}/activate (query: version)
|
|
19
|
+
this.activateGame = makeOperation(http, "api/games", "POST", "{id}/activate", {"query":["version"]});
|
|
20
|
+
// POST api/games/shared-inventory/add
|
|
21
|
+
this.addItemToInventory = makeOperation(http, "api/games", "POST", "shared-inventory/add");
|
|
22
|
+
// POST api/games/{gameId}/input/bind-keys
|
|
23
|
+
this.bindKeys = makeOperation(http, "api/games", "POST", "{gameId}/input/bind-keys");
|
|
24
|
+
// POST api/games/{id}/clone
|
|
25
|
+
this.cloneGame = makeOperation(http, "api/games", "POST", "{id}/clone");
|
|
26
|
+
// POST api/games/
|
|
27
|
+
this.createGame = makeOperation(http, "api/games", "POST", "");
|
|
28
|
+
// POST api/games/create
|
|
29
|
+
this.createGameWithOptions = makeOperation(http, "api/games", "POST", "create");
|
|
30
|
+
// POST api/games/{id}/deactivate (query: version)
|
|
31
|
+
this.deactivateGame = makeOperation(http, "api/games", "POST", "{id}/deactivate", {"query":["version"]});
|
|
32
|
+
// DELETE api/games/{id}
|
|
33
|
+
this.deleteGame = makeOperation(http, "api/games", "DELETE", "{id}");
|
|
34
|
+
// POST api/games/{id}/download (query: version, downloadPath, reInstall)
|
|
35
|
+
this.downloadGame = makeOperation(http, "api/games", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
|
|
36
|
+
// POST api/games/{id}/edit
|
|
37
|
+
this.editGame = makeOperation(http, "api/games", "POST", "{id}/edit");
|
|
38
|
+
// POST api/games/{gameId}/end
|
|
39
|
+
this.endGame = makeOperation(http, "api/games", "POST", "{gameId}/end");
|
|
40
|
+
// GET api/games/
|
|
41
|
+
this.getAllGames = makeOperation(http, "api/games", "GET", "");
|
|
42
|
+
// GET api/games/karma
|
|
43
|
+
this.getAvatarKarma = makeOperation(http, "api/games", "GET", "karma");
|
|
44
|
+
// GET api/games/cross-game-quests
|
|
45
|
+
this.getCrossGameQuests = makeOperation(http, "api/games", "GET", "cross-game-quests");
|
|
46
|
+
// GET api/games/{id}
|
|
47
|
+
this.getGame = makeOperation(http, "api/games", "GET", "{id}");
|
|
48
|
+
// GET api/games/{id}/versions
|
|
49
|
+
this.getGameVersions = makeOperation(http, "api/games", "GET", "{id}/versions");
|
|
50
|
+
// GET api/games/by-type/{type}
|
|
51
|
+
this.getGamesByType = makeOperation(http, "api/games", "GET", "by-type/{type}");
|
|
52
|
+
// GET api/games/{gameId}/input/bind-keys
|
|
53
|
+
this.getKeyBindings = makeOperation(http, "api/games", "GET", "{gameId}/input/bind-keys");
|
|
54
|
+
// GET api/games/{gameId}/audio/master-volume
|
|
55
|
+
this.getMasterVolume = makeOperation(http, "api/games", "GET", "{gameId}/audio/master-volume");
|
|
56
|
+
// GET api/games/shared-inventory
|
|
57
|
+
this.getSharedInventory = makeOperation(http, "api/games", "GET", "shared-inventory");
|
|
58
|
+
// GET api/games/{gameId}/audio/sound-volume
|
|
59
|
+
this.getSoundVolume = makeOperation(http, "api/games", "GET", "{gameId}/audio/sound-volume");
|
|
60
|
+
// GET api/games/{gameId}/video/setting
|
|
61
|
+
this.getVideoSetting = makeOperation(http, "api/games", "GET", "{gameId}/video/setting");
|
|
62
|
+
// GET api/games/{gameId}/audio/voice-volume
|
|
63
|
+
this.getVoiceVolume = makeOperation(http, "api/games", "GET", "{gameId}/audio/voice-volume");
|
|
64
|
+
// GET api/games/shared-inventory/{itemId}/has
|
|
65
|
+
this.hasItem = makeOperation(http, "api/games", "GET", "shared-inventory/{itemId}/has");
|
|
66
|
+
// GET api/games/shared-inventory/has-by-name (query: itemName)
|
|
67
|
+
this.hasItemByName = makeOperation(http, "api/games", "GET", "shared-inventory/has-by-name", {"query":["itemName"]});
|
|
68
|
+
// POST api/games/{id}/install (query: version, installPath)
|
|
69
|
+
this.installGame = makeOperation(http, "api/games", "POST", "{id}/install", {"query":["version","installPath"]});
|
|
70
|
+
// POST api/games/{gameId}/areas/jump
|
|
71
|
+
this.jumpToArea = makeOperation(http, "api/games", "POST", "{gameId}/areas/jump");
|
|
72
|
+
// POST api/games/{gameId}/levels/{level}/jump
|
|
73
|
+
this.jumpToLevel = makeOperation(http, "api/games", "POST", "{gameId}/levels/{level}/jump");
|
|
74
|
+
// POST api/games/{gameId}/levels/{level}/jump-to-point
|
|
75
|
+
this.jumpToPointInLevel = makeOperation(http, "api/games", "POST", "{gameId}/levels/{level}/jump-to-point");
|
|
76
|
+
// GET api/games/load-all-for-avatar (query: showAllVersions, version)
|
|
77
|
+
this.loadAllGamesForAvatar = makeOperation(http, "api/games", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
|
|
78
|
+
// POST api/games/{gameId}/areas/load
|
|
79
|
+
this.loadArea = makeOperation(http, "api/games", "POST", "{gameId}/areas/load");
|
|
80
|
+
// POST api/games/{gameId}/load
|
|
81
|
+
this.loadGame = makeOperation(http, "api/games", "POST", "{gameId}/load");
|
|
82
|
+
// GET api/games/{id}/load (query: version, holonType)
|
|
83
|
+
this.loadGameById = makeOperation(http, "api/games", "GET", "{id}/load", {"query":["version","holonType"]});
|
|
84
|
+
// GET api/games/load-from-path (query: path, holonType)
|
|
85
|
+
this.loadGameFromPath = makeOperation(http, "api/games", "GET", "load-from-path", {"query":["path","holonType"]});
|
|
86
|
+
// GET api/games/load-from-published (query: publishedFilePath)
|
|
87
|
+
this.loadGameFromPublished = makeOperation(http, "api/games", "GET", "load-from-published", {"query":["publishedFilePath"]});
|
|
88
|
+
// GET api/games/{id}/version/{version}
|
|
89
|
+
this.loadGameVersion = makeOperation(http, "api/games", "GET", "{id}/version/{version}");
|
|
90
|
+
// POST api/games/{gameId}/levels/{level}/load
|
|
91
|
+
this.loadLevel = makeOperation(http, "api/games", "POST", "{gameId}/levels/{level}/load");
|
|
92
|
+
// POST api/games/{id}/publish
|
|
93
|
+
this.publishGame = makeOperation(http, "api/games", "POST", "{id}/publish");
|
|
94
|
+
// DELETE api/games/shared-inventory/{itemId}
|
|
95
|
+
this.removeItemFromInventory = makeOperation(http, "api/games", "DELETE", "shared-inventory/{itemId}");
|
|
96
|
+
// POST api/games/{id}/republish
|
|
97
|
+
this.republishGame = makeOperation(http, "api/games", "POST", "{id}/republish");
|
|
98
|
+
// GET api/games/search (query: query)
|
|
99
|
+
this.searchGames = makeOperation(http, "api/games", "GET", "search", {"query":["query"]});
|
|
100
|
+
// POST api/games/{gameId}/audio/master-volume
|
|
101
|
+
this.setMasterVolume = makeOperation(http, "api/games", "POST", "{gameId}/audio/master-volume");
|
|
102
|
+
// POST api/games/{gameId}/audio/sound-volume
|
|
103
|
+
this.setSoundVolume = makeOperation(http, "api/games", "POST", "{gameId}/audio/sound-volume");
|
|
104
|
+
// POST api/games/{gameId}/video/setting
|
|
105
|
+
this.setVideoSetting = makeOperation(http, "api/games", "POST", "{gameId}/video/setting");
|
|
106
|
+
// POST api/games/{gameId}/audio/voice-volume
|
|
107
|
+
this.setVoiceVolume = makeOperation(http, "api/games", "POST", "{gameId}/audio/voice-volume");
|
|
108
|
+
// POST api/games/{gameId}/ui/credits
|
|
109
|
+
this.showCredits = makeOperation(http, "api/games", "POST", "{gameId}/ui/credits");
|
|
110
|
+
// POST api/games/{gameId}/ui/main-menu
|
|
111
|
+
this.showMainMenu = makeOperation(http, "api/games", "POST", "{gameId}/ui/main-menu");
|
|
112
|
+
// POST api/games/{gameId}/ui/options
|
|
113
|
+
this.showOptions = makeOperation(http, "api/games", "POST", "{gameId}/ui/options");
|
|
114
|
+
// POST api/games/{gameId}/ui/title-screen
|
|
115
|
+
this.showTitleScreen = makeOperation(http, "api/games", "POST", "{gameId}/ui/title-screen");
|
|
116
|
+
// POST api/games/{gameId}/start
|
|
117
|
+
this.startGame = makeOperation(http, "api/games", "POST", "{gameId}/start");
|
|
118
|
+
// POST api/games/{gameId}/areas/{areaId}/unload
|
|
119
|
+
this.unloadArea = makeOperation(http, "api/games", "POST", "{gameId}/areas/{areaId}/unload");
|
|
120
|
+
// POST api/games/{gameId}/unload
|
|
121
|
+
this.unloadGame = makeOperation(http, "api/games", "POST", "{gameId}/unload");
|
|
122
|
+
// POST api/games/{gameId}/levels/{level}/unload
|
|
123
|
+
this.unloadLevel = makeOperation(http, "api/games", "POST", "{gameId}/levels/{level}/unload");
|
|
124
|
+
// POST api/games/{id}/unpublish (query: version)
|
|
125
|
+
this.unpublishGame = makeOperation(http, "api/games", "POST", "{id}/unpublish", {"query":["version"]});
|
|
126
|
+
// PUT api/games/{id}
|
|
127
|
+
this.updateGame = makeOperation(http, "api/games", "PUT", "{id}");
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
module.exports = { GamesModule };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class GeoHotSpotsModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/geoHotSpots/{id}/activate (query: version) */
|
|
8
|
+
activateGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/geoHotSpots/ */
|
|
11
|
+
createGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/geoHotSpots/create */
|
|
14
|
+
createGeoHotSpotWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** POST api/geoHotSpots/{id}/deactivate (query: version) */
|
|
17
|
+
deactivateGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** DELETE api/geoHotSpots/{id} */
|
|
20
|
+
deleteGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** POST api/geoHotSpots/{id}/download (query: version, downloadPath, reInstall) */
|
|
23
|
+
downloadGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** POST api/geoHotSpots/{id}/edit */
|
|
26
|
+
editGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/geoHotSpots/ */
|
|
29
|
+
getAllGeoHotSpots(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** GET api/geoHotSpots/{id} */
|
|
32
|
+
getGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** GET api/geoHotSpots/{id}/versions */
|
|
35
|
+
getGeoHotSpotVersions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
36
|
+
|
|
37
|
+
/** GET api/geoHotSpots/nearby (query: latitude, longitude, radiusKm) */
|
|
38
|
+
getNearbyGeoHotSpots(args?: Record<string, any>): Promise<OASISResponse>;
|
|
39
|
+
|
|
40
|
+
/** GET api/geoHotSpots/load-all-for-avatar (query: showAllVersions, version) */
|
|
41
|
+
loadAllGeoHotSpotsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
42
|
+
|
|
43
|
+
/** GET api/geoHotSpots/{id}/load (query: version, holonType) */
|
|
44
|
+
loadGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
45
|
+
|
|
46
|
+
/** GET api/geoHotSpots/load-from-path (query: path, holonType) */
|
|
47
|
+
loadGeoHotSpotFromPath(args?: Record<string, any>): Promise<OASISResponse>;
|
|
48
|
+
|
|
49
|
+
/** GET api/geoHotSpots/load-from-published (query: publishedFilePath) */
|
|
50
|
+
loadGeoHotSpotFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
|
|
51
|
+
|
|
52
|
+
/** GET api/geoHotSpots/{id}/version/{version} */
|
|
53
|
+
loadGeoHotSpotVersion(args?: Record<string, any>): Promise<OASISResponse>;
|
|
54
|
+
|
|
55
|
+
/** POST api/geoHotSpots/{id}/publish */
|
|
56
|
+
publishGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
57
|
+
|
|
58
|
+
/** POST api/geoHotSpots/{id}/republish (query: version) */
|
|
59
|
+
republishGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
60
|
+
|
|
61
|
+
/** POST api/geoHotSpots/{id}/unpublish (query: version) */
|
|
62
|
+
unpublishGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
63
|
+
|
|
64
|
+
/** PUT api/geoHotSpots/{id} */
|
|
65
|
+
updateGeoHotSpot(args?: Record<string, any>): Promise<OASISResponse>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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/geoHotSpots (source: STAR WebAPI GeoHotSpotsController.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 GeoHotSpotsModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/geoHotSpots/{id}/activate (query: version)
|
|
19
|
+
this.activateGeoHotSpot = makeOperation(http, "api/geoHotSpots", "POST", "{id}/activate", {"query":["version"]});
|
|
20
|
+
// POST api/geoHotSpots/
|
|
21
|
+
this.createGeoHotSpot = makeOperation(http, "api/geoHotSpots", "POST", "");
|
|
22
|
+
// POST api/geoHotSpots/create
|
|
23
|
+
this.createGeoHotSpotWithOptions = makeOperation(http, "api/geoHotSpots", "POST", "create");
|
|
24
|
+
// POST api/geoHotSpots/{id}/deactivate (query: version)
|
|
25
|
+
this.deactivateGeoHotSpot = makeOperation(http, "api/geoHotSpots", "POST", "{id}/deactivate", {"query":["version"]});
|
|
26
|
+
// DELETE api/geoHotSpots/{id}
|
|
27
|
+
this.deleteGeoHotSpot = makeOperation(http, "api/geoHotSpots", "DELETE", "{id}");
|
|
28
|
+
// POST api/geoHotSpots/{id}/download (query: version, downloadPath, reInstall)
|
|
29
|
+
this.downloadGeoHotSpot = makeOperation(http, "api/geoHotSpots", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
|
|
30
|
+
// POST api/geoHotSpots/{id}/edit
|
|
31
|
+
this.editGeoHotSpot = makeOperation(http, "api/geoHotSpots", "POST", "{id}/edit");
|
|
32
|
+
// GET api/geoHotSpots/
|
|
33
|
+
this.getAllGeoHotSpots = makeOperation(http, "api/geoHotSpots", "GET", "");
|
|
34
|
+
// GET api/geoHotSpots/{id}
|
|
35
|
+
this.getGeoHotSpot = makeOperation(http, "api/geoHotSpots", "GET", "{id}");
|
|
36
|
+
// GET api/geoHotSpots/{id}/versions
|
|
37
|
+
this.getGeoHotSpotVersions = makeOperation(http, "api/geoHotSpots", "GET", "{id}/versions");
|
|
38
|
+
// GET api/geoHotSpots/nearby (query: latitude, longitude, radiusKm)
|
|
39
|
+
this.getNearbyGeoHotSpots = makeOperation(http, "api/geoHotSpots", "GET", "nearby", {"query":["latitude","longitude","radiusKm"]});
|
|
40
|
+
// GET api/geoHotSpots/load-all-for-avatar (query: showAllVersions, version)
|
|
41
|
+
this.loadAllGeoHotSpotsForAvatar = makeOperation(http, "api/geoHotSpots", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
|
|
42
|
+
// GET api/geoHotSpots/{id}/load (query: version, holonType)
|
|
43
|
+
this.loadGeoHotSpot = makeOperation(http, "api/geoHotSpots", "GET", "{id}/load", {"query":["version","holonType"]});
|
|
44
|
+
// GET api/geoHotSpots/load-from-path (query: path, holonType)
|
|
45
|
+
this.loadGeoHotSpotFromPath = makeOperation(http, "api/geoHotSpots", "GET", "load-from-path", {"query":["path","holonType"]});
|
|
46
|
+
// GET api/geoHotSpots/load-from-published (query: publishedFilePath)
|
|
47
|
+
this.loadGeoHotSpotFromPublished = makeOperation(http, "api/geoHotSpots", "GET", "load-from-published", {"query":["publishedFilePath"]});
|
|
48
|
+
// GET api/geoHotSpots/{id}/version/{version}
|
|
49
|
+
this.loadGeoHotSpotVersion = makeOperation(http, "api/geoHotSpots", "GET", "{id}/version/{version}");
|
|
50
|
+
// POST api/geoHotSpots/{id}/publish
|
|
51
|
+
this.publishGeoHotSpot = makeOperation(http, "api/geoHotSpots", "POST", "{id}/publish");
|
|
52
|
+
// POST api/geoHotSpots/{id}/republish (query: version)
|
|
53
|
+
this.republishGeoHotSpot = makeOperation(http, "api/geoHotSpots", "POST", "{id}/republish", {"query":["version"]});
|
|
54
|
+
// POST api/geoHotSpots/{id}/unpublish (query: version)
|
|
55
|
+
this.unpublishGeoHotSpot = makeOperation(http, "api/geoHotSpots", "POST", "{id}/unpublish", {"query":["version"]});
|
|
56
|
+
// PUT api/geoHotSpots/{id}
|
|
57
|
+
this.updateGeoHotSpot = makeOperation(http, "api/geoHotSpots", "PUT", "{id}");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
module.exports = { GeoHotSpotsModule };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class GeoNFTsModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/geoNFTs/{id}/activate (query: version) */
|
|
8
|
+
activateGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/geoNFTs/ */
|
|
11
|
+
createGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/geoNFTs/create */
|
|
14
|
+
createGeoNFTWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** POST api/geoNFTs/{id}/deactivate (query: version) */
|
|
17
|
+
deactivateGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** DELETE api/geoNFTs/{id} */
|
|
20
|
+
deleteGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** POST api/geoNFTs/{id}/download (query: version, downloadPath, reInstall) */
|
|
23
|
+
downloadGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** POST api/geoNFTs/{id}/edit */
|
|
26
|
+
editGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/geoNFTs/ */
|
|
29
|
+
getAllGeoNFTs(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** GET api/geoNFTs/{id} */
|
|
32
|
+
getGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** GET api/geoNFTs/by-avatar/{avatarId} */
|
|
35
|
+
getGeoNFTsByAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
36
|
+
|
|
37
|
+
/** GET api/geoNFTs/{id}/versions */
|
|
38
|
+
getGeoNFTVersions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
39
|
+
|
|
40
|
+
/** GET api/geoNFTs/nearby (query: latitude, longitude, radiusKm) */
|
|
41
|
+
getNearbyGeoNFTs(args?: Record<string, any>): Promise<OASISResponse>;
|
|
42
|
+
|
|
43
|
+
/** GET api/geoNFTs/load-all-for-avatar (query: showAllVersions, version) */
|
|
44
|
+
loadAllGeoNFTsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
45
|
+
|
|
46
|
+
/** GET api/geoNFTs/{id}/load (query: version, holonType) */
|
|
47
|
+
loadGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
48
|
+
|
|
49
|
+
/** GET api/geoNFTs/load-from-path (query: path, holonType) */
|
|
50
|
+
loadGeoNFTFromPath(args?: Record<string, any>): Promise<OASISResponse>;
|
|
51
|
+
|
|
52
|
+
/** GET api/geoNFTs/load-from-published (query: publishedFilePath) */
|
|
53
|
+
loadGeoNFTFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
|
|
54
|
+
|
|
55
|
+
/** GET api/geoNFTs/{id}/version/{version} */
|
|
56
|
+
loadGeoNFTVersion(args?: Record<string, any>): Promise<OASISResponse>;
|
|
57
|
+
|
|
58
|
+
/** POST api/geoNFTs/{id}/publish */
|
|
59
|
+
publishGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
60
|
+
|
|
61
|
+
/** POST api/geoNFTs/{id}/republish (query: version) */
|
|
62
|
+
republishGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
63
|
+
|
|
64
|
+
/** GET api/geoNFTs/search (query: query) */
|
|
65
|
+
searchGeoNFTs(args?: Record<string, any>): Promise<OASISResponse>;
|
|
66
|
+
|
|
67
|
+
/** POST api/geoNFTs/{id}/unpublish (query: version) */
|
|
68
|
+
unpublishGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
69
|
+
|
|
70
|
+
/** PUT api/geoNFTs/{id} */
|
|
71
|
+
updateGeoNFT(args?: Record<string, any>): Promise<OASISResponse>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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/geoNFTs (source: STAR WebAPI GeoNFTsController.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 GeoNFTsModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/geoNFTs/{id}/activate (query: version)
|
|
19
|
+
this.activateGeoNFT = makeOperation(http, "api/geoNFTs", "POST", "{id}/activate", {"query":["version"]});
|
|
20
|
+
// POST api/geoNFTs/
|
|
21
|
+
this.createGeoNFT = makeOperation(http, "api/geoNFTs", "POST", "");
|
|
22
|
+
// POST api/geoNFTs/create
|
|
23
|
+
this.createGeoNFTWithOptions = makeOperation(http, "api/geoNFTs", "POST", "create");
|
|
24
|
+
// POST api/geoNFTs/{id}/deactivate (query: version)
|
|
25
|
+
this.deactivateGeoNFT = makeOperation(http, "api/geoNFTs", "POST", "{id}/deactivate", {"query":["version"]});
|
|
26
|
+
// DELETE api/geoNFTs/{id}
|
|
27
|
+
this.deleteGeoNFT = makeOperation(http, "api/geoNFTs", "DELETE", "{id}");
|
|
28
|
+
// POST api/geoNFTs/{id}/download (query: version, downloadPath, reInstall)
|
|
29
|
+
this.downloadGeoNFT = makeOperation(http, "api/geoNFTs", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
|
|
30
|
+
// POST api/geoNFTs/{id}/edit
|
|
31
|
+
this.editGeoNFT = makeOperation(http, "api/geoNFTs", "POST", "{id}/edit");
|
|
32
|
+
// GET api/geoNFTs/
|
|
33
|
+
this.getAllGeoNFTs = makeOperation(http, "api/geoNFTs", "GET", "");
|
|
34
|
+
// GET api/geoNFTs/{id}
|
|
35
|
+
this.getGeoNFT = makeOperation(http, "api/geoNFTs", "GET", "{id}");
|
|
36
|
+
// GET api/geoNFTs/{id}/versions
|
|
37
|
+
this.getGeoNFTVersions = makeOperation(http, "api/geoNFTs", "GET", "{id}/versions");
|
|
38
|
+
// GET api/geoNFTs/by-avatar/{avatarId}
|
|
39
|
+
this.getGeoNFTsByAvatar = makeOperation(http, "api/geoNFTs", "GET", "by-avatar/{avatarId}");
|
|
40
|
+
// GET api/geoNFTs/nearby (query: latitude, longitude, radiusKm)
|
|
41
|
+
this.getNearbyGeoNFTs = makeOperation(http, "api/geoNFTs", "GET", "nearby", {"query":["latitude","longitude","radiusKm"]});
|
|
42
|
+
// GET api/geoNFTs/load-all-for-avatar (query: showAllVersions, version)
|
|
43
|
+
this.loadAllGeoNFTsForAvatar = makeOperation(http, "api/geoNFTs", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
|
|
44
|
+
// GET api/geoNFTs/{id}/load (query: version, holonType)
|
|
45
|
+
this.loadGeoNFT = makeOperation(http, "api/geoNFTs", "GET", "{id}/load", {"query":["version","holonType"]});
|
|
46
|
+
// GET api/geoNFTs/load-from-path (query: path, holonType)
|
|
47
|
+
this.loadGeoNFTFromPath = makeOperation(http, "api/geoNFTs", "GET", "load-from-path", {"query":["path","holonType"]});
|
|
48
|
+
// GET api/geoNFTs/load-from-published (query: publishedFilePath)
|
|
49
|
+
this.loadGeoNFTFromPublished = makeOperation(http, "api/geoNFTs", "GET", "load-from-published", {"query":["publishedFilePath"]});
|
|
50
|
+
// GET api/geoNFTs/{id}/version/{version}
|
|
51
|
+
this.loadGeoNFTVersion = makeOperation(http, "api/geoNFTs", "GET", "{id}/version/{version}");
|
|
52
|
+
// POST api/geoNFTs/{id}/publish
|
|
53
|
+
this.publishGeoNFT = makeOperation(http, "api/geoNFTs", "POST", "{id}/publish");
|
|
54
|
+
// POST api/geoNFTs/{id}/republish (query: version)
|
|
55
|
+
this.republishGeoNFT = makeOperation(http, "api/geoNFTs", "POST", "{id}/republish", {"query":["version"]});
|
|
56
|
+
// GET api/geoNFTs/search (query: query)
|
|
57
|
+
this.searchGeoNFTs = makeOperation(http, "api/geoNFTs", "GET", "search", {"query":["query"]});
|
|
58
|
+
// POST api/geoNFTs/{id}/unpublish (query: version)
|
|
59
|
+
this.unpublishGeoNFT = makeOperation(http, "api/geoNFTs", "POST", "{id}/unpublish", {"query":["version"]});
|
|
60
|
+
// PUT api/geoNFTs/{id}
|
|
61
|
+
this.updateGeoNFT = makeOperation(http, "api/geoNFTs", "PUT", "{id}");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
module.exports = { GeoNFTsModule };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class HealthModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** GET api/health/ */
|
|
8
|
+
get(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** GET api/health/health */
|
|
11
|
+
health(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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/health (source: STAR WebAPI HealthController.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 HealthModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// GET api/health/
|
|
19
|
+
this.get = makeOperation(http, "api/health", "GET", "");
|
|
20
|
+
// GET api/health/health
|
|
21
|
+
this.health = makeOperation(http, "api/health", "GET", "health");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
module.exports = { HealthModule };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
|
|
2
|
+
import type { OASISResponse } from '../core/types';
|
|
3
|
+
|
|
4
|
+
export declare class HolonsModule {
|
|
5
|
+
constructor(http: unknown);
|
|
6
|
+
|
|
7
|
+
/** POST api/holons/{id}/activate (query: version) */
|
|
8
|
+
activateHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
9
|
+
|
|
10
|
+
/** POST api/holons/ */
|
|
11
|
+
createHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
12
|
+
|
|
13
|
+
/** POST api/holons/create */
|
|
14
|
+
createHolonWithOptions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
15
|
+
|
|
16
|
+
/** POST api/holons/{id}/deactivate (query: version) */
|
|
17
|
+
deactivateHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
18
|
+
|
|
19
|
+
/** DELETE api/holons/{id} */
|
|
20
|
+
deleteHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
21
|
+
|
|
22
|
+
/** POST api/holons/{id}/download (query: version, downloadPath, reInstall) */
|
|
23
|
+
downloadHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
24
|
+
|
|
25
|
+
/** POST api/holons/{id}/edit */
|
|
26
|
+
editHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
27
|
+
|
|
28
|
+
/** GET api/holons/ */
|
|
29
|
+
getAllHolons(args?: Record<string, any>): Promise<OASISResponse>;
|
|
30
|
+
|
|
31
|
+
/** GET api/holons/{id} */
|
|
32
|
+
getHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
33
|
+
|
|
34
|
+
/** GET api/holons/by-metadata (query: key, value) */
|
|
35
|
+
getHolonsByMetadata(args?: Record<string, any>): Promise<OASISResponse>;
|
|
36
|
+
|
|
37
|
+
/** GET api/holons/by-parent/{parentId} */
|
|
38
|
+
getHolonsByParent(args?: Record<string, any>): Promise<OASISResponse>;
|
|
39
|
+
|
|
40
|
+
/** GET api/holons/by-status/{status} */
|
|
41
|
+
getHolonsByStatus(args?: Record<string, any>): Promise<OASISResponse>;
|
|
42
|
+
|
|
43
|
+
/** GET api/holons/by-type/{type} */
|
|
44
|
+
getHolonsByType(args?: Record<string, any>): Promise<OASISResponse>;
|
|
45
|
+
|
|
46
|
+
/** GET api/holons/{id}/versions */
|
|
47
|
+
getHolonVersions(args?: Record<string, any>): Promise<OASISResponse>;
|
|
48
|
+
|
|
49
|
+
/** GET api/holons/load-all-for-avatar (query: showAllVersions, version) */
|
|
50
|
+
loadAllHolonsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
|
|
51
|
+
|
|
52
|
+
/** GET api/holons/{id}/load (query: version, holonType) */
|
|
53
|
+
loadHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
54
|
+
|
|
55
|
+
/** GET api/holons/load-from-path (query: path, holonType) */
|
|
56
|
+
loadHolonFromPath(args?: Record<string, any>): Promise<OASISResponse>;
|
|
57
|
+
|
|
58
|
+
/** GET api/holons/load-from-published (query: publishedFilePath) */
|
|
59
|
+
loadHolonFromPublished(args?: Record<string, any>): Promise<OASISResponse>;
|
|
60
|
+
|
|
61
|
+
/** GET api/holons/{id}/version/{version} */
|
|
62
|
+
loadHolonVersion(args?: Record<string, any>): Promise<OASISResponse>;
|
|
63
|
+
|
|
64
|
+
/** POST api/holons/{id}/publish */
|
|
65
|
+
publishHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
66
|
+
|
|
67
|
+
/** POST api/holons/{id}/republish (query: version) */
|
|
68
|
+
republishHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
69
|
+
|
|
70
|
+
/** GET api/holons/search (query: query) */
|
|
71
|
+
searchHolons(args?: Record<string, any>): Promise<OASISResponse>;
|
|
72
|
+
|
|
73
|
+
/** POST api/holons/{id}/unpublish (query: version) */
|
|
74
|
+
unpublishHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
75
|
+
|
|
76
|
+
/** PUT api/holons/{id} */
|
|
77
|
+
updateHolon(args?: Record<string, any>): Promise<OASISResponse>;
|
|
78
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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/holons (source: STAR WebAPI HolonsController.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 HolonsModule {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this._http = http;
|
|
17
|
+
|
|
18
|
+
// POST api/holons/{id}/activate (query: version)
|
|
19
|
+
this.activateHolon = makeOperation(http, "api/holons", "POST", "{id}/activate", {"query":["version"]});
|
|
20
|
+
// POST api/holons/
|
|
21
|
+
this.createHolon = makeOperation(http, "api/holons", "POST", "");
|
|
22
|
+
// POST api/holons/create
|
|
23
|
+
this.createHolonWithOptions = makeOperation(http, "api/holons", "POST", "create");
|
|
24
|
+
// POST api/holons/{id}/deactivate (query: version)
|
|
25
|
+
this.deactivateHolon = makeOperation(http, "api/holons", "POST", "{id}/deactivate", {"query":["version"]});
|
|
26
|
+
// DELETE api/holons/{id}
|
|
27
|
+
this.deleteHolon = makeOperation(http, "api/holons", "DELETE", "{id}");
|
|
28
|
+
// POST api/holons/{id}/download (query: version, downloadPath, reInstall)
|
|
29
|
+
this.downloadHolon = makeOperation(http, "api/holons", "POST", "{id}/download", {"query":["version","downloadPath","reInstall"]});
|
|
30
|
+
// POST api/holons/{id}/edit
|
|
31
|
+
this.editHolon = makeOperation(http, "api/holons", "POST", "{id}/edit");
|
|
32
|
+
// GET api/holons/
|
|
33
|
+
this.getAllHolons = makeOperation(http, "api/holons", "GET", "");
|
|
34
|
+
// GET api/holons/{id}
|
|
35
|
+
this.getHolon = makeOperation(http, "api/holons", "GET", "{id}");
|
|
36
|
+
// GET api/holons/{id}/versions
|
|
37
|
+
this.getHolonVersions = makeOperation(http, "api/holons", "GET", "{id}/versions");
|
|
38
|
+
// GET api/holons/by-metadata (query: key, value)
|
|
39
|
+
this.getHolonsByMetadata = makeOperation(http, "api/holons", "GET", "by-metadata", {"query":["key","value"]});
|
|
40
|
+
// GET api/holons/by-parent/{parentId}
|
|
41
|
+
this.getHolonsByParent = makeOperation(http, "api/holons", "GET", "by-parent/{parentId}");
|
|
42
|
+
// GET api/holons/by-status/{status}
|
|
43
|
+
this.getHolonsByStatus = makeOperation(http, "api/holons", "GET", "by-status/{status}");
|
|
44
|
+
// GET api/holons/by-type/{type}
|
|
45
|
+
this.getHolonsByType = makeOperation(http, "api/holons", "GET", "by-type/{type}");
|
|
46
|
+
// GET api/holons/load-all-for-avatar (query: showAllVersions, version)
|
|
47
|
+
this.loadAllHolonsForAvatar = makeOperation(http, "api/holons", "GET", "load-all-for-avatar", {"query":["showAllVersions","version"]});
|
|
48
|
+
// GET api/holons/{id}/load (query: version, holonType)
|
|
49
|
+
this.loadHolon = makeOperation(http, "api/holons", "GET", "{id}/load", {"query":["version","holonType"]});
|
|
50
|
+
// GET api/holons/load-from-path (query: path, holonType)
|
|
51
|
+
this.loadHolonFromPath = makeOperation(http, "api/holons", "GET", "load-from-path", {"query":["path","holonType"]});
|
|
52
|
+
// GET api/holons/load-from-published (query: publishedFilePath)
|
|
53
|
+
this.loadHolonFromPublished = makeOperation(http, "api/holons", "GET", "load-from-published", {"query":["publishedFilePath"]});
|
|
54
|
+
// GET api/holons/{id}/version/{version}
|
|
55
|
+
this.loadHolonVersion = makeOperation(http, "api/holons", "GET", "{id}/version/{version}");
|
|
56
|
+
// POST api/holons/{id}/publish
|
|
57
|
+
this.publishHolon = makeOperation(http, "api/holons", "POST", "{id}/publish");
|
|
58
|
+
// POST api/holons/{id}/republish (query: version)
|
|
59
|
+
this.republishHolon = makeOperation(http, "api/holons", "POST", "{id}/republish", {"query":["version"]});
|
|
60
|
+
// GET api/holons/search (query: query)
|
|
61
|
+
this.searchHolons = makeOperation(http, "api/holons", "GET", "search", {"query":["query"]});
|
|
62
|
+
// POST api/holons/{id}/unpublish (query: version)
|
|
63
|
+
this.unpublishHolon = makeOperation(http, "api/holons", "POST", "{id}/unpublish", {"query":["version"]});
|
|
64
|
+
// PUT api/holons/{id}
|
|
65
|
+
this.updateHolon = makeOperation(http, "api/holons", "PUT", "{id}");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
module.exports = { HolonsModule };
|