omniarena-types 1.35.0 → 1.37.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 (2) hide show
  1. package/dist/index.d.ts +17 -11
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -50,9 +50,7 @@ export type CharacterDto = {
50
50
  export type SkillDto = {
51
51
  id: string;
52
52
  skillId: number;
53
- name: string;
54
53
  description: string;
55
- image: string;
56
54
  userId: string;
57
55
  playerId: string;
58
56
  baseCooldown: number;
@@ -117,18 +115,27 @@ export type SkillUseDto = {
117
115
  skillId: string;
118
116
  order: number;
119
117
  };
120
- export type GameSkin = {
118
+ export type SkinDto = {
121
119
  id: string;
122
- characters: Record<number, CharacterSkin>;
123
- skills: Record<number, SkillSkin>;
124
- pronouns: Record<number, PronounSkin>;
120
+ default: boolean;
121
+ name: string;
122
+ createdAt: Date;
123
+ content: {
124
+ characters: Record<string, CharacterSkin>;
125
+ skills: Record<string, SkillSkin>;
126
+ pronouns: Record<string, PronounSkin>;
127
+ };
128
+ verified: boolean;
129
+ public: boolean;
130
+ creatorId: string;
131
+ updatedAt: Date;
125
132
  };
126
133
  export type CharacterAvatar = 'main' | 'old' | 'masked';
127
134
  export type CharacterSkin = {
128
135
  id: number;
129
136
  name: string;
130
137
  short: string;
131
- avatars: Record<CharacterAvatar, string>;
138
+ avatars: Partial<Record<CharacterAvatar, string>>;
132
139
  pronouns: number;
133
140
  bio: string;
134
141
  };
@@ -146,8 +153,6 @@ export type PronounSkin = {
146
153
  };
147
154
  export type GameSkill = {
148
155
  id: number;
149
- name: string;
150
- image: string;
151
156
  valence: ValenceType;
152
157
  nature: NatureType;
153
158
  persistence: PersistenceType;
@@ -158,8 +163,8 @@ export type GameSkill = {
158
163
  baseDuration: number;
159
164
  baseTags: Tag[];
160
165
  };
161
- export type GameCharacter = CharacterSkin & {
162
- playable: boolean;
166
+ export type GameCharacter = {
167
+ id: number;
163
168
  skills: GameSkill[];
164
169
  };
165
170
  export type UserDto = {
@@ -171,6 +176,7 @@ export type UserDto = {
171
176
  wins: number;
172
177
  losses: number;
173
178
  streak: number;
179
+ skinId: string;
174
180
  };
175
181
  export type PostDto = {
176
182
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniarena-types",
3
- "version": "1.35.0",
3
+ "version": "1.37.0",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [