Move schemas to separate module

This commit is contained in:
Rory& 2025-10-14 09:30:52 +02:00
parent 58d92080d5
commit 0da7169b00
147 changed files with 78 additions and 52 deletions

85
.idea/workspace.xml generated
View File

@ -4,12 +4,21 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="bf10e7c6-8c33-4385-b571-3e96ac86a389" name="Changes" comment="" /> <list default="true" id="bf10e7c6-8c33-4385-b571-3e96ac86a389" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/extra/admin-api/Spacebar.AdminAPI/Program.cs" beforeDir="false" afterPath="$PROJECT_DIR$/extra/admin-api/Spacebar.AdminAPI/Program.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/extra/admin-api/Spacebar.AdminAPI/Services/AuthenticationService.cs" beforeDir="false" afterPath="$PROJECT_DIR$/extra/admin-api/Spacebar.AdminAPI/Services/AuthenticationService.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/extra/admin-api/Spacebar.AdminApi.Models/UserModel.cs" beforeDir="false" afterPath="$PROJECT_DIR$/extra/admin-api/Spacebar.AdminApi.Models/UserModel.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/extra/admin-api/Utilities/Spacebar.AdminAPI.TestClient/Layout/NavMenu.razor" beforeDir="false" afterPath="$PROJECT_DIR$/extra/admin-api/Utilities/Spacebar.AdminAPI.TestClient/Layout/NavMenu.razor" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" /> <option name="LAST_RESOLUTION" value="IGNORE" />
</component> </component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="HighlightingSettingsPerFile"> <component name="HighlightingSettingsPerFile">
<setting file="file://$USER_HOME$/.cache/JetBrains/WebStorm2024.3/javascript/typings/node/20.17.10/node_modules/@types/node/crypto.d.ts" root0="SKIP_INSPECTION" /> <setting file="file://$USER_HOME$/.cache/JetBrains/WebStorm2024.3/javascript/typings/node/20.17.10/node_modules/@types/node/crypto.d.ts" root0="SKIP_INSPECTION" />
<setting file="file://$PROJECT_DIR$/node_modules/@types/amqplib/index.d.ts" root0="SKIP_INSPECTION" /> <setting file="file://$PROJECT_DIR$/node_modules/@types/amqplib/index.d.ts" root0="SKIP_INSPECTION" />
@ -30,41 +39,54 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent"><![CDATA[{ <component name="PropertiesComponent">{
"keyToString": { &quot;keyToString&quot;: {
"NIXITCH_NIXPKGS_CONFIG": "/etc/nix/nixpkgs-config.nix", &quot;NIXITCH_NIXPKGS_CONFIG&quot;: &quot;/etc/nix/nixpkgs-config.nix&quot;,
"NIXITCH_NIX_CONF_DIR": "", &quot;NIXITCH_NIX_CONF_DIR&quot;: &quot;&quot;,
"NIXITCH_NIX_OTHER_STORES": "", &quot;NIXITCH_NIX_OTHER_STORES&quot;: &quot;&quot;,
"NIXITCH_NIX_PATH": "/home/Rory/.nix-defexpr/channels:nixpkgs=/nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source", &quot;NIXITCH_NIX_PATH&quot;: &quot;/home/Rory/.nix-defexpr/channels:nixpkgs=/nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source&quot;,
"NIXITCH_NIX_PROFILES": "/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/Rory /home/Rory/.local/state/nix/profile /nix/profile /home/Rory/.nix-profile", &quot;NIXITCH_NIX_PROFILES&quot;: &quot;/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/Rory /home/Rory/.local/state/nix/profile /nix/profile /home/Rory/.nix-profile&quot;,
"NIXITCH_NIX_REMOTE": "", &quot;NIXITCH_NIX_REMOTE&quot;: &quot;&quot;,
"NIXITCH_NIX_USER_PROFILE_DIR": "/nix/var/nix/profiles/per-user/Rory", &quot;NIXITCH_NIX_USER_PROFILE_DIR&quot;: &quot;/nix/var/nix/profiles/per-user/Rory&quot;,
"Node.js.Server.ts.executor": "Debug", &quot;Node.js.Server.ts.executor&quot;: &quot;Debug&quot;,
"RunOnceActivity.ShowReadmeOnStart": "true", &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
"javascript.nodejs.core.library.configured.version": "20.17.0", &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
"javascript.nodejs.core.library.typings.version": "20.17.10", &quot;javascript.nodejs.core.library.configured.version&quot;: &quot;24.8.0&quot;,
"last_opened_file_path": "/home/Rory/git/spacebar/server/src/admin-api/routes/v0", &quot;javascript.nodejs.core.library.typings.version&quot;: &quot;24.7.0&quot;,
"node.js.detected.package.eslint": "true", &quot;last_opened_file_path&quot;: &quot;/home/Rory/git/spacebar/server/src/admin-api/routes/v0&quot;,
"node.js.selected.package.eslint": "(autodetect)", &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
"node.js.selected.package.tslint": "(autodetect)", &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
"nodejs_interpreter_path": "/nix/store/dcdc33kdjdhjnzg6rkmd0cx4kpwl8cac-nodejs-20.17.0/bin/node", &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
"nodejs_package_manager_path": "npm", &quot;nodejs_interpreter_path&quot;: &quot;node&quot;,
"npm.Start API.executor": "Run", &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
"npm.Start CDN.executor": "Run", &quot;npm.Start API.executor&quot;: &quot;Run&quot;,
"npm.Start Gateway.executor": "Run", &quot;npm.Start CDN.executor&quot;: &quot;Run&quot;,
"npm.build.executor": "Run", &quot;npm.Start Gateway.executor&quot;: &quot;Run&quot;,
"npm.start.executor": "Debug", &quot;npm.build.executor&quot;: &quot;Run&quot;,
"prettierjs.PrettierConfiguration.Package": "/home/Rory/git/spacebar/server/node_modules/prettier", &quot;npm.start.executor&quot;: &quot;Debug&quot;,
"settings.editor.selected.configurable": "preferences.pluginManager", &quot;prettierjs.PrettierConfiguration.Package&quot;: &quot;/home/Rory/git/spacebar/server/node_modules/prettier&quot;,
"ts.external.directory.path": "/home/Rory/git/spacebar/server/node_modules/typescript/lib" &quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
&quot;ts.external.directory.path&quot;: &quot;/home/Rory/git/spacebar/server-master/node_modules/typescript/lib&quot;
},
&quot;keyToStringList&quot;: {
&quot;GitStage.ChangesTree.GroupingKeys&quot;: [
&quot;directory&quot;,
&quot;module&quot;,
&quot;repository&quot;
]
} }
}]]></component> }</component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src/admin-api/routes/v0" /> <recent name="$PROJECT_DIR$/src/admin-api/routes/v0" />
<recent name="$PROJECT_DIR$/src" /> <recent name="$PROJECT_DIR$/src" />
<recent name="$PROJECT_DIR$/src/api/routes/channels/#channel_id/messages" /> <recent name="$PROJECT_DIR$/src/api/routes/channels/#channel_id/messages" />
</key> </key>
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src" />
<recent name="$PROJECT_DIR$/src/api/routes/store/published-listings/applications/#application_id" />
<recent name="$PROJECT_DIR$/src/api/routes/store/published-listings/skus/#sku_id" />
</key>
</component> </component>
<component name="RunDashboard"> <component name="RunDashboard">
<option name="configurationTypes"> <option name="configurationTypes">
@ -85,7 +107,7 @@
<component name="SharedIndexes"> <component name="SharedIndexes">
<attachedChunks> <attachedChunks>
<set> <set>
<option value="bundled-js-predefined-d6986cc7102b-deb605915726-JavaScript-WS-243.22562.112" /> <option value="bundled-js-predefined-d6986cc7102b-9c94529fcfe0-JavaScript-WS-252.26199.162" />
</set> </set>
</attachedChunks> </attachedChunks>
</component> </component>
@ -108,6 +130,9 @@
<workItem from="1735256039333" duration="390000" /> <workItem from="1735256039333" duration="390000" />
<workItem from="1735256441657" duration="58156000" /> <workItem from="1735256441657" duration="58156000" />
<workItem from="1735848116134" duration="80763000" /> <workItem from="1735848116134" duration="80763000" />
<workItem from="1759868659577" duration="8847000" />
<workItem from="1760044946282" duration="43683000" />
<workItem from="1760402350251" duration="18740000" />
</task> </task>
<servers /> <servers />
</component> </component>

View File

@ -120,6 +120,7 @@
"@spacebar/gateway": "dist/gateway", "@spacebar/gateway": "dist/gateway",
"@spacebar/util": "dist/util", "@spacebar/util": "dist/util",
"@spacebar/webrtc": "dist/webrtc", "@spacebar/webrtc": "dist/webrtc",
"@spacebar/schemas": "dist/schemas",
"lambert-server": "dist/util/util/lambert-server" "lambert-server": "dist/util/util/lambert-server"
}, },
"optionalDependencies": { "optionalDependencies": {

View File

@ -94,7 +94,7 @@ const Excluded = [
function main() { function main() {
const program = TJS.programFromConfig( const program = TJS.programFromConfig(
path.join(__dirname, "..", "tsconfig.json"), path.join(__dirname, "..", "tsconfig.json"),
walk(path.join(__dirname, "..", "src", "util", "schemas")), walk(path.join(__dirname, "..", "src", "schemas")),
); );
const generator = TJS.buildGenerator(program, settings); const generator = TJS.buildGenerator(program, settings);
if (!generator || !program) return; if (!generator || !program) return;

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { ConnectedAccountTokenData } from "../interfaces"; import { ConnectedAccountTokenData } from "../util/interfaces";
export interface ConnectedAccountSchema { export interface ConnectedAccountSchema {
external_id: string; external_id: string;

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { Tuple } from "lambert-server"; import { Tuple } from "lambert-server*";
export const PayloadSchema = { export const PayloadSchema = {
op: Number, op: Number,

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { ChannelModifySchema } from "."; import { ChannelModifySchema } from "./index";
export interface GuildCreateSchema { export interface GuildCreateSchema {
/** /**

View File

@ -25,7 +25,6 @@ const SchemaPath = path.join(
__dirname, __dirname,
"..", "..",
"..", "..",
"..",
"assets", "assets",
"schemas.json", "schemas.json",
); );

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { Embed } from "../entities"; import { Embed } from "../util/entities";
import { import {
MessageCreateAttachment, MessageCreateAttachment,
PollCreationSchema, PollCreationSchema,

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { Attachment } from "../../entities"; import { Attachment } from "../../util/entities";
export enum AccountStandingState { export enum AccountStandingState {
ALL_GOOD = 100, ALL_GOOD = 100,

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { StringStringDictionary } from "../../util"; import { StringStringDictionary } from "../../util/util";
// TODO: Clean up // TODO: Clean up
export type CollectiblesCategoriesResponse = CollectiblesCategoryItem[]; export type CollectiblesCategoriesResponse = CollectiblesCategoryItem[];

Some files were not shown because too many files have changed in this diff Show More