@sonolus/core 7.7.1 → 7.9.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 (112) hide show
  1. package/dist/common/core/background/item.d.ts +5 -5
  2. package/dist/common/core/effect/item.d.ts +4 -4
  3. package/dist/common/core/engine/item.d.ts +8 -8
  4. package/dist/common/core/engine/watchData/watchData.d.ts +1 -1
  5. package/dist/common/core/icon.d.ts +24 -0
  6. package/dist/common/core/icon.js +24 -0
  7. package/dist/common/core/index.d.ts +2 -1
  8. package/dist/common/core/index.js +0 -1
  9. package/dist/common/core/level/item.d.ts +5 -5
  10. package/dist/common/core/package/info.d.ts +1 -1
  11. package/dist/common/core/particle/item.d.ts +4 -4
  12. package/dist/common/core/playlist/item.d.ts +2 -2
  13. package/dist/common/core/post/item.d.ts +2 -2
  14. package/dist/common/core/replay/item.d.ts +3 -3
  15. package/dist/common/core/room/item.d.ts +4 -4
  16. package/dist/common/core/server/authenticate.d.ts +4 -4
  17. package/dist/common/core/server/configuration.d.ts +4 -0
  18. package/dist/common/core/server/form.d.ts +3 -0
  19. package/dist/common/core/server/index.d.ts +4 -2
  20. package/dist/common/core/server/info.d.ts +5 -3
  21. package/dist/common/core/server/items/community/comment/comment.d.ts +1 -1
  22. package/dist/common/core/server/items/community/comment/index.d.ts +4 -2
  23. package/dist/common/core/server/items/community/comment/list.d.ts +3 -3
  24. package/dist/common/core/server/items/community/comment/submit.d.ts +10 -0
  25. package/dist/common/core/server/items/community/comment/upload.d.ts +1 -0
  26. package/dist/common/core/server/items/community/index.d.ts +3 -2
  27. package/dist/common/core/server/items/community/info.d.ts +3 -3
  28. package/dist/common/core/server/items/community/submit.d.ts +5 -2
  29. package/dist/common/core/server/items/community/upload.d.ts +1 -0
  30. package/dist/common/core/server/items/community/upload.js +2 -0
  31. package/dist/common/core/server/items/create.d.ts +4 -3
  32. package/dist/common/core/server/items/details.d.ts +8 -6
  33. package/dist/common/core/server/items/index.d.ts +9 -6
  34. package/dist/common/core/server/items/index.js +1 -0
  35. package/dist/common/core/server/items/info.d.ts +5 -5
  36. package/dist/common/core/server/items/leaderboard/details.d.ts +3 -3
  37. package/dist/common/core/server/items/leaderboard/index.d.ts +2 -2
  38. package/dist/common/core/server/items/leaderboard/leaderboard.d.ts +2 -1
  39. package/dist/common/core/server/items/leaderboard/record/details.d.ts +1 -1
  40. package/dist/common/core/server/items/leaderboard/record/index.d.ts +3 -3
  41. package/dist/common/core/server/items/leaderboard/record/list.d.ts +3 -3
  42. package/dist/common/core/server/items/leaderboard/record/record.d.ts +1 -1
  43. package/dist/common/core/server/items/level-result/index.d.ts +3 -0
  44. package/dist/common/core/server/items/level-result/index.js +2 -0
  45. package/dist/common/core/server/items/level-result/info.d.ts +4 -0
  46. package/dist/common/core/server/items/level-result/info.js +2 -0
  47. package/dist/common/core/server/items/level-result/submit.d.ts +9 -0
  48. package/dist/common/core/server/items/level-result/submit.js +2 -0
  49. package/dist/common/core/server/items/level-result/upload.d.ts +1 -0
  50. package/dist/common/core/server/items/level-result/upload.js +2 -0
  51. package/dist/common/core/server/items/list.d.ts +1 -1
  52. package/dist/common/core/server/items/section.d.ts +19 -2
  53. package/dist/common/core/server/items/submit-action.d.ts +10 -0
  54. package/dist/common/core/server/items/submit-action.js +2 -0
  55. package/dist/common/core/server/items/upload-action.d.ts +1 -0
  56. package/dist/common/core/server/items/upload-action.js +2 -0
  57. package/dist/common/core/server/items/upload.d.ts +1 -1
  58. package/dist/common/core/server/message.d.ts +3 -0
  59. package/dist/common/core/server/message.js +2 -0
  60. package/dist/common/core/server/multiplayer/chat-message.d.ts +3 -2
  61. package/dist/common/core/server/multiplayer/commands/add-suggestion-command.d.ts +2 -2
  62. package/dist/common/core/server/multiplayer/commands/remove-user-command.d.ts +2 -1
  63. package/dist/common/core/server/multiplayer/commands/report-user-command.d.ts +2 -1
  64. package/dist/common/core/server/multiplayer/commands/update-lead-command.d.ts +2 -1
  65. package/dist/common/core/server/multiplayer/commands/update-level-command.d.ts +2 -2
  66. package/dist/common/core/server/multiplayer/commands/update-master-command.d.ts +2 -1
  67. package/dist/common/core/server/multiplayer/create-room.d.ts +2 -2
  68. package/dist/common/core/server/multiplayer/events/update-event.d.ts +6 -5
  69. package/dist/common/core/server/multiplayer/events/update-lead-event.d.ts +2 -1
  70. package/dist/common/core/server/multiplayer/events/update-level-event.d.ts +2 -2
  71. package/dist/common/core/server/multiplayer/events/update-master-event.d.ts +2 -1
  72. package/dist/common/core/server/multiplayer/events/update-scoreboard-description-event.d.ts +1 -1
  73. package/dist/common/core/server/multiplayer/index.d.ts +2 -3
  74. package/dist/common/core/server/multiplayer/join-room.d.ts +4 -4
  75. package/dist/common/core/server/multiplayer/result-entry.d.ts +2 -1
  76. package/dist/common/core/server/multiplayer/score-entry.d.ts +2 -1
  77. package/dist/common/core/server/multiplayer/suggestion.d.ts +4 -3
  78. package/dist/common/core/server/multiplayer/user-status-entry.d.ts +2 -1
  79. package/dist/common/core/server/option.d.ts +32 -14
  80. package/dist/common/core/service/authenticate-external.d.ts +5 -3
  81. package/dist/common/core/service/index.d.ts +2 -2
  82. package/dist/common/core/service/user-profile.d.ts +7 -2
  83. package/dist/common/core/{server/multiplayer/level-locator.d.ts → sil.d.ts} +1 -1
  84. package/dist/common/core/sil.js +2 -0
  85. package/dist/common/core/skin/item.d.ts +4 -4
  86. package/dist/common/core/srl.d.ts +4 -0
  87. package/dist/common/core/srl.js +2 -0
  88. package/dist/common/core/text.d.ts +97 -5
  89. package/dist/common/core/text.js +97 -5
  90. package/dist/common/database/background/item.d.ts +6 -6
  91. package/dist/common/database/effect/item.d.ts +5 -5
  92. package/dist/common/database/engine/item.d.ts +9 -9
  93. package/dist/common/database/level/item.d.ts +6 -6
  94. package/dist/common/database/particle/item.d.ts +5 -5
  95. package/dist/common/database/playlist/item.d.ts +3 -3
  96. package/dist/common/database/post/item.d.ts +3 -3
  97. package/dist/common/database/replay/item.d.ts +4 -4
  98. package/dist/common/database/server/server-info.d.ts +2 -2
  99. package/dist/common/database/skin/item.d.ts +5 -5
  100. package/dist/common/version.js +2 -2
  101. package/dist/node/core/resource/compress.d.ts +0 -1
  102. package/dist/node/core/resource/compress.js +2 -0
  103. package/dist/node/core/resource/decompress.d.ts +0 -1
  104. package/dist/node/core/resource/decompress.js +1 -0
  105. package/dist/node/core/resource/hash.d.ts +0 -1
  106. package/dist/node/core/service/keys.d.ts +0 -1
  107. package/package.json +9 -8
  108. package/dist/common/core/resource/index.d.ts +0 -1
  109. package/dist/common/core/resource/srl.d.ts +0 -4
  110. /package/dist/common/core/{resource/index.js → server/configuration.js} +0 -0
  111. /package/dist/common/core/{resource/srl.js → server/items/community/comment/submit.js} +0 -0
  112. /package/dist/common/core/server/{multiplayer/level-locator.js → items/community/comment/upload.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { SRL } from '../resource/srl';
1
+ import { Srl } from '../srl';
2
2
  import { Tag } from '../tag';
3
3
  export type BackgroundItem = {
4
4
  name: string;
@@ -8,8 +8,8 @@ export type BackgroundItem = {
8
8
  subtitle: string;
9
9
  author: string;
10
10
  tags: Tag[];
11
- thumbnail: SRL;
12
- data: SRL;
13
- image: SRL;
14
- configuration: SRL;
11
+ thumbnail: Srl;
12
+ data: Srl;
13
+ image: Srl;
14
+ configuration: Srl;
15
15
  };
@@ -1,4 +1,4 @@
1
- import { SRL } from '../resource/srl';
1
+ import { Srl } from '../srl';
2
2
  import { Tag } from '../tag';
3
3
  export type EffectItem = {
4
4
  name: string;
@@ -8,7 +8,7 @@ export type EffectItem = {
8
8
  subtitle: string;
9
9
  author: string;
10
10
  tags: Tag[];
11
- thumbnail: SRL;
12
- data: SRL;
13
- audio: SRL;
11
+ thumbnail: Srl;
12
+ data: Srl;
13
+ audio: Srl;
14
14
  };
@@ -1,8 +1,8 @@
1
1
  import { BackgroundItem } from '../background/item';
2
2
  import { EffectItem } from '../effect/item';
3
3
  import { ParticleItem } from '../particle/item';
4
- import { SRL } from '../resource/srl';
5
4
  import { SkinItem } from '../skin/item';
5
+ import { Srl } from '../srl';
6
6
  import { Tag } from '../tag';
7
7
  export type EngineItem = {
8
8
  name: string;
@@ -16,11 +16,11 @@ export type EngineItem = {
16
16
  background: BackgroundItem;
17
17
  effect: EffectItem;
18
18
  particle: ParticleItem;
19
- thumbnail: SRL;
20
- playData: SRL;
21
- watchData: SRL;
22
- previewData: SRL;
23
- tutorialData: SRL;
24
- rom?: SRL;
25
- configuration: SRL;
19
+ thumbnail: Srl;
20
+ playData: Srl;
21
+ watchData: Srl;
22
+ previewData: Srl;
23
+ tutorialData: Srl;
24
+ rom?: Srl;
25
+ configuration: Srl;
26
26
  };
@@ -25,6 +25,6 @@ export type EngineWatchData = {
25
25
  };
26
26
  buckets: EngineDataBucket[];
27
27
  archetypes: EngineWatchDataArchetype[];
28
- updateSpawn: number;
28
+ updateSpawn?: number;
29
29
  nodes: EngineDataNode[];
30
30
  };
@@ -13,30 +13,54 @@ export declare const Icon: {
13
13
  readonly ArrowRight: "arrowRight";
14
14
  readonly ArrowUp: "arrowUp";
15
15
  readonly Award: "award";
16
+ readonly Background: "background";
17
+ readonly Bell: "bell";
18
+ readonly BellSlash: "bellSlash";
16
19
  readonly Bookmark: "bookmark";
17
20
  readonly BookmarkHollow: "bookmarkHollow";
18
21
  readonly Check: "check";
22
+ readonly Clock: "clock";
19
23
  readonly Comment: "comment";
20
24
  readonly Crown: "crown";
21
25
  readonly Delete: "delete";
22
26
  readonly Edit: "edit";
27
+ readonly Effect: "effect";
28
+ readonly Engine: "engine";
29
+ readonly Envelope: "envelope";
30
+ readonly EnvelopeOpen: "envelopeOpen";
31
+ readonly Globe: "globe";
23
32
  readonly Heart: "heart";
24
33
  readonly HeartHollow: "heartHollow";
25
34
  readonly Hide: "hide";
35
+ readonly Information: "information";
36
+ readonly Level: "level";
26
37
  readonly Lock: "lock";
27
38
  readonly Medal: "medal";
39
+ readonly Message: "message";
28
40
  readonly Minus: "minus";
29
41
  readonly Options: "options";
42
+ readonly Particle: "particle";
43
+ readonly Pin: "pin";
44
+ readonly Player: "player";
45
+ readonly Playlist: "playlist";
30
46
  readonly Plus: "plus";
47
+ readonly Post: "post";
48
+ readonly Question: "question";
31
49
  readonly Ranking: "ranking";
50
+ readonly Replay: "replay";
32
51
  readonly Reply: "reply";
52
+ readonly Restore: "restore";
53
+ readonly Room: "room";
33
54
  readonly Search: "search";
34
55
  readonly Settings: "settings";
35
56
  readonly Show: "show";
36
57
  readonly Shuffle: "shuffle";
58
+ readonly Skin: "skin";
37
59
  readonly Star: "star";
38
60
  readonly StarHalf: "starHalf";
39
61
  readonly StarHollow: "starHollow";
62
+ readonly Stopwatch: "stopwatch";
63
+ readonly Tag: "tag";
40
64
  readonly ThumbsDown: "thumbsDown";
41
65
  readonly ThumbsDownHollow: "thumbsDownHollow";
42
66
  readonly ThumbsUp: "thumbsUp";
@@ -16,30 +16,54 @@ exports.Icon = {
16
16
  ArrowRight: 'arrowRight',
17
17
  ArrowUp: 'arrowUp',
18
18
  Award: 'award',
19
+ Background: 'background',
20
+ Bell: 'bell',
21
+ BellSlash: 'bellSlash',
19
22
  Bookmark: 'bookmark',
20
23
  BookmarkHollow: 'bookmarkHollow',
21
24
  Check: 'check',
25
+ Clock: 'clock',
22
26
  Comment: 'comment',
23
27
  Crown: 'crown',
24
28
  Delete: 'delete',
25
29
  Edit: 'edit',
30
+ Effect: 'effect',
31
+ Engine: 'engine',
32
+ Envelope: 'envelope',
33
+ EnvelopeOpen: 'envelopeOpen',
34
+ Globe: 'globe',
26
35
  Heart: 'heart',
27
36
  HeartHollow: 'heartHollow',
28
37
  Hide: 'hide',
38
+ Information: 'information',
39
+ Level: 'level',
29
40
  Lock: 'lock',
30
41
  Medal: 'medal',
42
+ Message: 'message',
31
43
  Minus: 'minus',
32
44
  Options: 'options',
45
+ Particle: 'particle',
46
+ Pin: 'pin',
47
+ Player: 'player',
48
+ Playlist: 'playlist',
33
49
  Plus: 'plus',
50
+ Post: 'post',
51
+ Question: 'question',
34
52
  Ranking: 'ranking',
53
+ Replay: 'replay',
35
54
  Reply: 'reply',
55
+ Restore: 'restore',
56
+ Room: 'room',
36
57
  Search: 'search',
37
58
  Settings: 'settings',
38
59
  Show: 'show',
39
60
  Shuffle: 'shuffle',
61
+ Skin: 'skin',
40
62
  Star: 'star',
41
63
  StarHalf: 'starHalf',
42
64
  StarHollow: 'starHollow',
65
+ Stopwatch: 'stopwatch',
66
+ Tag: 'tag',
43
67
  ThumbsDown: 'thumbsDown',
44
68
  ThumbsDownHollow: 'thumbsDownHollow',
45
69
  ThumbsUp: 'thumbsUp',
@@ -12,11 +12,12 @@ export * from './particle';
12
12
  export * from './playlist';
13
13
  export * from './post';
14
14
  export * from './replay';
15
- export * from './resource';
16
15
  export * from './room';
17
16
  export * from './runtimes';
18
17
  export * from './server';
19
18
  export * from './service';
19
+ export { Sil } from './sil';
20
20
  export * from './skin';
21
+ export { Srl } from './srl';
21
22
  export { Tag } from './tag';
22
23
  export * from './text';
@@ -27,7 +27,6 @@ __exportStar(require("./particle"), exports);
27
27
  __exportStar(require("./playlist"), exports);
28
28
  __exportStar(require("./post"), exports);
29
29
  __exportStar(require("./replay"), exports);
30
- __exportStar(require("./resource"), exports);
31
30
  __exportStar(require("./room"), exports);
32
31
  __exportStar(require("./runtimes"), exports);
33
32
  __exportStar(require("./server"), exports);
@@ -2,8 +2,8 @@ import { BackgroundItem } from '../background/item';
2
2
  import { EffectItem } from '../effect/item';
3
3
  import { EngineItem } from '../engine/item';
4
4
  import { ParticleItem } from '../particle/item';
5
- import { SRL } from '../resource/srl';
6
5
  import { SkinItem } from '../skin/item';
6
+ import { Srl } from '../srl';
7
7
  import { Tag } from '../tag';
8
8
  export type UseItem<T> = {
9
9
  useDefault: true;
@@ -25,8 +25,8 @@ export type LevelItem = {
25
25
  useBackground: UseItem<BackgroundItem>;
26
26
  useEffect: UseItem<EffectItem>;
27
27
  useParticle: UseItem<ParticleItem>;
28
- cover: SRL;
29
- bgm: SRL;
30
- preview?: SRL;
31
- data: SRL;
28
+ cover: Srl;
29
+ bgm: Srl;
30
+ preview?: Srl;
31
+ data: Srl;
32
32
  };
@@ -1,3 +1,3 @@
1
1
  export type PackageInfo = {
2
- shouldUpdate: boolean;
2
+ shouldUpdate?: boolean;
3
3
  };
@@ -1,4 +1,4 @@
1
- import { SRL } from '../resource/srl';
1
+ import { Srl } from '../srl';
2
2
  import { Tag } from '../tag';
3
3
  export type ParticleItem = {
4
4
  name: string;
@@ -8,7 +8,7 @@ export type ParticleItem = {
8
8
  subtitle: string;
9
9
  author: string;
10
10
  tags: Tag[];
11
- thumbnail: SRL;
12
- data: SRL;
13
- texture: SRL;
11
+ thumbnail: Srl;
12
+ data: Srl;
13
+ texture: Srl;
14
14
  };
@@ -1,5 +1,5 @@
1
1
  import { LevelItem } from '../level/item';
2
- import { SRL } from '../resource/srl';
2
+ import { Srl } from '../srl';
3
3
  import { Tag } from '../tag';
4
4
  export type PlaylistItem = {
5
5
  name: string;
@@ -10,5 +10,5 @@ export type PlaylistItem = {
10
10
  author: string;
11
11
  tags: Tag[];
12
12
  levels: LevelItem[];
13
- thumbnail?: SRL;
13
+ thumbnail?: Srl;
14
14
  };
@@ -1,4 +1,4 @@
1
- import { SRL } from '../resource/srl';
1
+ import { Srl } from '../srl';
2
2
  import { Tag } from '../tag';
3
3
  export type PostItem = {
4
4
  name: string;
@@ -8,5 +8,5 @@ export type PostItem = {
8
8
  time: number;
9
9
  author: string;
10
10
  tags: Tag[];
11
- thumbnail?: SRL;
11
+ thumbnail?: Srl;
12
12
  };
@@ -1,5 +1,5 @@
1
1
  import { LevelItem } from '../level/item';
2
- import { SRL } from '../resource/srl';
2
+ import { Srl } from '../srl';
3
3
  import { Tag } from '../tag';
4
4
  export type ReplayItem = {
5
5
  name: string;
@@ -10,6 +10,6 @@ export type ReplayItem = {
10
10
  author: string;
11
11
  tags: Tag[];
12
12
  level: LevelItem;
13
- data: SRL;
14
- configuration: SRL;
13
+ data: Srl;
14
+ configuration: Srl;
15
15
  };
@@ -1,4 +1,4 @@
1
- import { SRL } from '../resource/srl';
1
+ import { Srl } from '../srl';
2
2
  import { Tag } from '../tag';
3
3
  export type RoomItem = {
4
4
  name: string;
@@ -6,7 +6,7 @@ export type RoomItem = {
6
6
  subtitle: string;
7
7
  master: string;
8
8
  tags: Tag[];
9
- cover?: SRL;
10
- bgm?: SRL;
11
- preview?: SRL;
9
+ cover?: Srl;
10
+ bgm?: Srl;
11
+ preview?: Srl;
12
12
  };
@@ -1,11 +1,11 @@
1
- import { UserProfile } from '../service/user-profile';
2
- export type AuthenticateServerRequest = {
1
+ import { ServiceUserProfile } from '../service/user-profile';
2
+ export type ServerAuthenticateRequest = {
3
3
  type: 'authenticateServer';
4
4
  address: string;
5
5
  time: number;
6
- userProfile: UserProfile;
6
+ userProfile: ServiceUserProfile;
7
7
  };
8
- export type AuthenticateServerResponse = {
8
+ export type ServerAuthenticateResponse = {
9
9
  session: string;
10
10
  expiration: number;
11
11
  };
@@ -0,0 +1,4 @@
1
+ import { ServerOption } from './option';
2
+ export type ServerConfiguration = {
3
+ options: ServerOption[];
4
+ };
@@ -5,5 +5,8 @@ export type ServerForm = {
5
5
  type: string;
6
6
  title: Text | (string & {});
7
7
  icon?: Icon | (string & {});
8
+ description?: string;
9
+ help?: string;
10
+ requireConfirmation: boolean;
8
11
  options: ServerOption[];
9
12
  };
@@ -1,6 +1,8 @@
1
- export { AuthenticateServerRequest, AuthenticateServerResponse } from './authenticate';
1
+ export { ServerAuthenticateRequest, ServerAuthenticateResponse } from './authenticate';
2
+ export { ServerConfiguration } from './configuration';
2
3
  export { ServerForm } from './form';
3
4
  export { ServerInfo, ServerInfoButton } from './info';
4
5
  export * from './items';
6
+ export { ServerMessage } from './message';
5
7
  export * from './multiplayer';
6
- export { ServerCollectionItemOption, ServerFileOption, ServerMultiOption, ServerOption, ServerSelectOption, ServerServerItemOption, ServerSliderOption, ServerTextAreaOption, ServerTextOption, ServerToggleOption, } from './option';
8
+ export { ServerCollectionItemOption, ServerFileOption, ServerMultiOption, ServerOption, ServerSelectOption, ServerServerItemOption, ServerServerItemsOption, ServerSliderOption, ServerTextAreaOption, ServerTextOption, ServerToggleOption, } from './option';
@@ -1,10 +1,12 @@
1
- import { SRL } from '../resource/srl';
1
+ import { Srl } from '../srl';
2
+ import { ServerConfiguration } from './configuration';
2
3
  export type ServerInfo = {
3
4
  title: string;
4
5
  description?: string;
5
6
  buttons: ServerInfoButton[];
6
- banner?: SRL;
7
+ configuration: ServerConfiguration;
8
+ banner?: Srl;
7
9
  };
8
10
  export type ServerInfoButton = {
9
- type: 'authentication' | 'multiplayer' | 'post' | 'playlist' | 'level' | 'replay' | 'skin' | 'background' | 'effect' | 'particle' | 'engine';
11
+ type: 'authentication' | 'multiplayer' | 'post' | 'playlist' | 'level' | 'replay' | 'skin' | 'background' | 'effect' | 'particle' | 'engine' | 'configuration';
10
12
  };
@@ -1,5 +1,5 @@
1
1
  import { ServerForm } from '../../../form';
2
- export type ItemCommunityComment = {
2
+ export type ServerItemCommunityComment = {
3
3
  name: string;
4
4
  author: string;
5
5
  time: number;
@@ -1,2 +1,4 @@
1
- export { ItemCommunityComment } from './comment';
2
- export { ItemCommunityCommentList } from './list';
1
+ export { ServerItemCommunityComment } from './comment';
2
+ export { ServerItemCommunityCommentList } from './list';
3
+ export { ServerSubmitItemCommunityCommentActionRequest, ServerSubmitItemCommunityCommentActionResponse, } from './submit';
4
+ export { ServerUploadItemCommunityCommentActionResponse } from './upload';
@@ -1,5 +1,5 @@
1
- import { ItemCommunityComment } from './comment';
2
- export type ItemCommunityCommentList = {
1
+ import { ServerItemCommunityComment } from './comment';
2
+ export type ServerItemCommunityCommentList = {
3
3
  pageCount: number;
4
- comments: ItemCommunityComment[];
4
+ comments: ServerItemCommunityComment[];
5
5
  };
@@ -0,0 +1,10 @@
1
+ export type ServerSubmitItemCommunityCommentActionRequest = {
2
+ values: string;
3
+ };
4
+ export type ServerSubmitItemCommunityCommentActionResponse = {
5
+ key: string;
6
+ hashes: string[];
7
+ shouldUpdateCommunity?: boolean;
8
+ shouldUpdateComments?: boolean;
9
+ shouldNavigateCommentsToPage?: number;
10
+ };
@@ -0,0 +1 @@
1
+ export type ServerUploadItemCommunityCommentActionResponse = object;
@@ -1,3 +1,4 @@
1
1
  export * from './comment';
2
- export { ItemCommunityInfo } from './info';
3
- export { SubmitItemCommunityActionRequest, SubmitItemCommunityActionResponse } from './submit';
2
+ export { ServerItemCommunityInfo } from './info';
3
+ export { ServerSubmitItemCommunityActionRequest, ServerSubmitItemCommunityActionResponse, } from './submit';
4
+ export { ServerUploadItemCommunityActionResponse } from './upload';
@@ -1,6 +1,6 @@
1
1
  import { ServerForm } from '../../form';
2
- import { ItemCommunityComment } from './comment/comment';
3
- export type ItemCommunityInfo = {
2
+ import { ServerItemCommunityComment } from './comment/comment';
3
+ export type ServerItemCommunityInfo = {
4
4
  actions: ServerForm[];
5
- topComments: ItemCommunityComment[];
5
+ topComments: ServerItemCommunityComment[];
6
6
  };
@@ -1,7 +1,10 @@
1
- export type SubmitItemCommunityActionRequest = {
1
+ export type ServerSubmitItemCommunityActionRequest = {
2
2
  values: string;
3
3
  };
4
- export type SubmitItemCommunityActionResponse = {
4
+ export type ServerSubmitItemCommunityActionResponse = {
5
+ key: string;
6
+ hashes: string[];
5
7
  shouldUpdateCommunity?: boolean;
8
+ shouldUpdateComments?: boolean;
6
9
  shouldNavigateCommentsToPage?: number;
7
10
  };
@@ -0,0 +1 @@
1
+ export type ServerUploadItemCommunityActionResponse = object;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,9 @@
1
- export type CreateItemRequest = {
1
+ export type ServerCreateItemRequest = {
2
2
  values: string;
3
3
  };
4
- export type CreateItemResponse = {
5
- name: string;
4
+ export type ServerCreateItemResponse = {
6
5
  key: string;
7
6
  hashes: string[];
7
+ shouldUpdateInfo?: boolean;
8
+ shouldNavigateToItem?: string;
8
9
  };
@@ -1,9 +1,11 @@
1
- import { ItemLeaderboard } from './leaderboard/leaderboard';
2
- import { ItemSection } from './section';
3
- export type ItemDetails<T> = {
1
+ import { ServerForm } from '../form';
2
+ import { ServerItemLeaderboard } from './leaderboard/leaderboard';
3
+ import { ServerItemSection } from './section';
4
+ export type ServerItemDetails<T> = {
4
5
  item: T;
5
- description: string;
6
+ description?: string;
7
+ actions: ServerForm[];
6
8
  hasCommunity: boolean;
7
- leaderboards: ItemLeaderboard[];
8
- sections: ItemSection<T>[];
9
+ leaderboards: ServerItemLeaderboard[];
10
+ sections: ServerItemSection[];
9
11
  };
@@ -1,8 +1,11 @@
1
1
  export * from './community';
2
- export { CreateItemRequest, CreateItemResponse } from './create';
3
- export { ItemDetails } from './details';
4
- export { ItemInfo } from './info';
2
+ export { ServerCreateItemRequest, ServerCreateItemResponse } from './create';
3
+ export { ServerItemDetails } from './details';
4
+ export { ServerItemInfo } from './info';
5
5
  export * from './leaderboard';
6
- export { ItemList } from './list';
7
- export { ItemSection } from './section';
8
- export { UploadItemResponse } from './upload';
6
+ export * from './level-result';
7
+ export { ServerItemList } from './list';
8
+ export { ServerItemSection, ServerItemSectionTyped } from './section';
9
+ export { ServerSubmitItemActionRequest, ServerSubmitItemActionResponse } from './submit-action';
10
+ export { ServerUploadItemResponse } from './upload';
11
+ export { ServerUploadItemActionResponse } from './upload-action';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./community"), exports);
18
18
  __exportStar(require("./leaderboard"), exports);
19
+ __exportStar(require("./level-result"), exports);
@@ -1,9 +1,9 @@
1
- import { SRL } from '../../resource/srl';
1
+ import { Srl } from '../../srl';
2
2
  import { ServerForm } from '../form';
3
- import { ItemSection } from './section';
4
- export type ItemInfo<T> = {
3
+ import { ServerItemSection } from './section';
4
+ export type ServerItemInfo = {
5
5
  creates?: ServerForm[];
6
6
  searches?: ServerForm[];
7
- sections: ItemSection<T>[];
8
- banner?: SRL;
7
+ sections: ServerItemSection[];
8
+ banner?: Srl;
9
9
  };
@@ -1,4 +1,4 @@
1
- import { ItemLeaderboardRecord } from './record';
2
- export type ItemLeaderboardDetails = {
3
- topRecords: ItemLeaderboardRecord[];
1
+ import { ServerItemLeaderboardRecord } from './record';
2
+ export type ServerItemLeaderboardDetails = {
3
+ topRecords: ServerItemLeaderboardRecord[];
4
4
  };
@@ -1,3 +1,3 @@
1
- export { ItemLeaderboardDetails } from './details';
2
- export { ItemLeaderboard } from './leaderboard';
1
+ export { ServerItemLeaderboardDetails } from './details';
2
+ export { ServerItemLeaderboard } from './leaderboard';
3
3
  export * from './record';
@@ -1,5 +1,6 @@
1
1
  import { Text } from '../../../text';
2
- export type ItemLeaderboard = {
2
+ export type ServerItemLeaderboard = {
3
3
  name: string;
4
4
  title: Text | (string & {});
5
+ description?: string;
5
6
  };
@@ -1,4 +1,4 @@
1
1
  import { ReplayItem } from '../../../../replay';
2
- export type ItemLeaderboardRecordDetails = {
2
+ export type ServerItemLeaderboardRecordDetails = {
3
3
  replays: ReplayItem[];
4
4
  };
@@ -1,3 +1,3 @@
1
- export { ItemLeaderboardRecordDetails } from './details';
2
- export { ItemLeaderboardRecordList } from './list';
3
- export { ItemLeaderboardRecord } from './record';
1
+ export { ServerItemLeaderboardRecordDetails } from './details';
2
+ export { ServerItemLeaderboardRecordList } from './list';
3
+ export { ServerItemLeaderboardRecord } from './record';
@@ -1,5 +1,5 @@
1
- import { ItemLeaderboardRecord } from './record';
2
- export type ItemLeaderboardRecordList = {
1
+ import { ServerItemLeaderboardRecord } from './record';
2
+ export type ServerItemLeaderboardRecordList = {
3
3
  pageCount: number;
4
- records: ItemLeaderboardRecord[];
4
+ records: ServerItemLeaderboardRecord[];
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Text } from '../../../../text';
2
- export type ItemLeaderboardRecord = {
2
+ export type ServerItemLeaderboardRecord = {
3
3
  name: string;
4
4
  rank: Text | (string & {});
5
5
  player: string;
@@ -0,0 +1,3 @@
1
+ export { ServerLevelResultInfo } from './info';
2
+ export { ServerSubmitLevelResultRequest, ServerSubmitLevelResultResponse } from './submit';
3
+ export { ServerUploadLevelResultResponse } from './upload';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ServerForm } from '../../form';
2
+ export type ServerLevelResultInfo = {
3
+ submits?: ServerForm[];
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { ReplayItem } from '../../../replay/item';
2
+ export type ServerSubmitLevelResultRequest = {
3
+ replay: ReplayItem;
4
+ values: string;
5
+ };
6
+ export type ServerSubmitLevelResultResponse = {
7
+ key: string;
8
+ hashes: string[];
9
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type ServerUploadLevelResultResponse = object;