hoshimi-venus 0.5.2 → 0.6.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 (37) hide show
  1. package/out/concert/concert.d.ts +2 -0
  2. package/out/concert/concert.js +5 -0
  3. package/out/concert/concert.js.map +1 -1
  4. package/out/concert/consts/chart_consts.d.ts +1 -0
  5. package/out/concert/consts/chart_consts.js +4 -1
  6. package/out/concert/consts/chart_consts.js.map +1 -1
  7. package/out/concert/partial/actions/action.d.ts +1 -1
  8. package/out/concert/partial/actions/action.js +2 -0
  9. package/out/concert/partial/actions/action.js.map +1 -1
  10. package/out/concert/partial/assignment_a_skill.d.ts +2 -0
  11. package/out/concert/partial/assignment_a_skill.js +35 -0
  12. package/out/concert/partial/assignment_a_skill.js.map +1 -0
  13. package/out/concert/partial/b_check_existence.d.ts +1 -1
  14. package/out/concert/partial/b_check_existence.js +6 -2
  15. package/out/concert/partial/b_check_existence.js.map +1 -1
  16. package/out/concert/partial/c_check_act_skill_stamina.js +3 -0
  17. package/out/concert/partial/c_check_act_skill_stamina.js.map +1 -1
  18. package/out/concert/partial/d_check_act_skill_cool_time.js +3 -0
  19. package/out/concert/partial/d_check_act_skill_cool_time.js.map +1 -1
  20. package/out/concert/partial/e_check_act_skill_possibility.js +3 -0
  21. package/out/concert/partial/e_check_act_skill_possibility.js.map +1 -1
  22. package/out/concert/partial/init_concert.js +1 -0
  23. package/out/concert/partial/init_concert.js.map +1 -1
  24. package/out/main.js +1 -1
  25. package/out/types/card_types.d.ts +3 -3
  26. package/out/types/concert_types.d.ts +13 -12
  27. package/out/types/misc_types.d.ts +2 -2
  28. package/out/types/proto/proto_api.d.ts +834 -834
  29. package/out/types/proto/proto_master.d.ts +265 -265
  30. package/out/types/proto/proto_transaction.d.ts +51 -51
  31. package/out/types/quest_types.d.ts +1 -1
  32. package/out/types/trans_types.d.ts +3 -3
  33. package/out/types/wap/card_waps.d.ts +1 -1
  34. package/out/types/wap/misc_waps.d.ts +2 -2
  35. package/out/types/wap/quest_waps.d.ts +2 -2
  36. package/out/types/wap/skill_waps.d.ts +5 -5
  37. package/package.json +4 -3
@@ -1,5 +1,5 @@
1
1
  import type { HomePositionType, MessageStatusType, MissionStatusType, PhotoImageType, ProfileBackgroundType, ProfileLayoutType, ProfileInformationType, ProfileColorType, ResultRankType, StoryStatusType, TelephoneStatusType, ResourceType, NotificationType, PointType, ParameterType, TutorialType } from './proto_enum';
2
- export declare type Payslip = {
2
+ export type Payslip = {
3
3
  managerLevel: number;
4
4
  loginDays: number;
5
5
  absenceDays: number;
@@ -25,7 +25,7 @@ export declare type Payslip = {
25
25
  year: number;
26
26
  month: number;
27
27
  };
28
- export declare type User = {
28
+ export type User = {
29
29
  name: string;
30
30
  managerExp: string;
31
31
  deckSequence: string;
@@ -54,17 +54,17 @@ export declare type User = {
54
54
  managerLevel: number;
55
55
  cardSupportMaxNumber: number;
56
56
  };
57
- export declare type UserAccessory = {
57
+ export type UserAccessory = {
58
58
  accessoryId: string;
59
59
  amount: string;
60
60
  };
61
- export declare type UserArea = {
61
+ export type UserArea = {
62
62
  areaId: string;
63
63
  clearQuestCount: number;
64
64
  dailyClearCount: number;
65
65
  lastClearedTime: string;
66
66
  };
67
- export declare type UserCard = {
67
+ export type UserCard = {
68
68
  cardId: string;
69
69
  totalExp: string;
70
70
  rarityTotalExp: number;
@@ -109,7 +109,7 @@ export declare type UserCard = {
109
109
  basePhotoEquipableCount: number;
110
110
  rank: number;
111
111
  };
112
- export declare type UserCharacter = {
112
+ export type UserCharacter = {
113
113
  characterId: string;
114
114
  activityExp: string;
115
115
  activityStamina: number;
@@ -128,28 +128,28 @@ export declare type UserCharacter = {
128
128
  activityLevel: number;
129
129
  audienceCandidateAmount: number;
130
130
  };
131
- export declare type UserCharacterMusic = {
131
+ export type UserCharacterMusic = {
132
132
  characterId: string;
133
133
  musicId: string;
134
134
  masteryPoint: number;
135
135
  masteryLevel: number;
136
136
  };
137
- export declare type UserCostume = {
137
+ export type UserCostume = {
138
138
  costumeId: string;
139
139
  checked: boolean;
140
140
  obtainedTime: string;
141
141
  };
142
- export declare type UserDecoration = {
142
+ export type UserDecoration = {
143
143
  decorationId: string;
144
144
  };
145
- export declare type UserEmblem = {
145
+ export type UserEmblem = {
146
146
  emblemId: string;
147
147
  };
148
- export declare type UserHair = {
148
+ export type UserHair = {
149
149
  hairId: string;
150
150
  checked: boolean;
151
151
  };
152
- export declare type UserHierarchy = {
152
+ export type UserHierarchy = {
153
153
  bestDetailGradeId: string;
154
154
  currentFixedPoint: string;
155
155
  currentVariablePoint: string;
@@ -158,46 +158,46 @@ export declare type UserHierarchy = {
158
158
  receivedRewardIds: string[];
159
159
  receivedDivisionRewardIds: string[];
160
160
  };
161
- export declare type UserHomePosition = {
161
+ export type UserHomePosition = {
162
162
  homePositionType: HomePositionType;
163
163
  characterId: string;
164
164
  };
165
- export declare type UserHomeTalk = {
165
+ export type UserHomeTalk = {
166
166
  homeTalkId: string;
167
167
  };
168
- export declare type UserItem = {
168
+ export type UserItem = {
169
169
  itemId: string;
170
170
  expiredTime: string;
171
171
  amount: string;
172
172
  };
173
- export declare type UserLoginBonus = {
173
+ export type UserLoginBonus = {
174
174
  loginBonusId: string;
175
175
  lastLoginTime: string;
176
176
  loginCount: number;
177
177
  receiveCount: number;
178
178
  loginBonusTextId: string;
179
179
  };
180
- export declare type UserMessage = {
180
+ export type UserMessage = {
181
181
  messageId: string;
182
182
  messageStatusType: MessageStatusType;
183
183
  selectMessageDetailIds: string[];
184
184
  arrivedTime: string;
185
185
  };
186
- export declare type UserMessageSchedule = {
186
+ export type UserMessageSchedule = {
187
187
  messageId: string;
188
188
  scheduledTime: string;
189
189
  };
190
- export declare type UserMission = {
190
+ export type UserMission = {
191
191
  missionId: string;
192
192
  currentThreshold: string;
193
193
  progress: string;
194
194
  statusType: MissionStatusType;
195
195
  lastUpdateTime: string;
196
196
  };
197
- export declare type UserMusic = {
197
+ export type UserMusic = {
198
198
  musicId: string;
199
199
  };
200
- export declare type UserPhoto = {
200
+ export type UserPhoto = {
201
201
  photoId: string;
202
202
  assetId: string;
203
203
  imageType: PhotoImageType;
@@ -214,18 +214,18 @@ export declare type UserPhoto = {
214
214
  focusCharacterId: string;
215
215
  photoRecipeId: string;
216
216
  };
217
- export declare type UserPhotoAbility = {
217
+ export type UserPhotoAbility = {
218
218
  photoAbilityId: string;
219
219
  effectValue: string;
220
220
  missionId: string;
221
221
  grade: number;
222
222
  isAvailable: boolean;
223
223
  };
224
- export declare type UserPhotoRecipe = {
224
+ export type UserPhotoRecipe = {
225
225
  photoRecipeId: string;
226
226
  amount: string;
227
227
  };
228
- export declare type UserProfile = {
228
+ export type UserProfile = {
229
229
  favoriteCardId: string;
230
230
  favoritePhotoId: string;
231
231
  favoriteCharacterIds: string[];
@@ -239,7 +239,7 @@ export declare type UserProfile = {
239
239
  informationType: ProfileInformationType;
240
240
  colorType: ProfileColorType;
241
241
  };
242
- export declare type UserQuest = {
242
+ export type UserQuest = {
243
243
  questId: string;
244
244
  dailyClearCount: number;
245
245
  lastClearedTime: string;
@@ -252,41 +252,41 @@ export declare type UserQuest = {
252
252
  currentRankingSeasonID: string;
253
253
  highestScoreRank: ResultRankType;
254
254
  };
255
- export declare type UserStory = {
255
+ export type UserStory = {
256
256
  storyId: string;
257
257
  statusType: StoryStatusType;
258
258
  isInvalid: boolean;
259
259
  };
260
- export declare type UserTelephone = {
260
+ export type UserTelephone = {
261
261
  telephoneId: string;
262
262
  unlockedTime: string;
263
263
  scheduledTime: string;
264
264
  telephoneStatusType: TelephoneStatusType;
265
265
  };
266
- export declare type ConsumptionResult = {
266
+ export type ConsumptionResult = {
267
267
  resourceType: ResourceType;
268
268
  resourceId: string;
269
269
  amount: number;
270
270
  beforeAmount: string;
271
271
  afterAmount: string;
272
272
  };
273
- export declare type MasterTag = {
273
+ export type MasterTag = {
274
274
  version: string;
275
275
  masterTagPacks: MasterTagPack[];
276
276
  };
277
- export declare type MasterTagPack = {
277
+ export type MasterTagPack = {
278
278
  type: string;
279
279
  fileName: string;
280
280
  fileSize: number;
281
281
  cryptoKey: string;
282
282
  downloadUrl: string;
283
283
  };
284
- export declare type Reward = {
284
+ export type Reward = {
285
285
  resourceType: ResourceType;
286
286
  resourceId: string;
287
287
  amount: string;
288
288
  };
289
- export declare type RewardResult = {
289
+ export type RewardResult = {
290
290
  resourceType: ResourceType;
291
291
  resourceId: string;
292
292
  amount: number;
@@ -298,23 +298,23 @@ export declare type RewardResult = {
298
298
  duplicateRewardResults: RewardResult[];
299
299
  additionalGifts: Reward[];
300
300
  };
301
- export declare type UserBalance = {
301
+ export type UserBalance = {
302
302
  freeBalance: number;
303
303
  paidBalance: number;
304
304
  };
305
- export declare type UserBuddy = {
305
+ export type UserBuddy = {
306
306
  dailyRentalAmount: string;
307
307
  };
308
- export declare type UserCardSupport = {
308
+ export type UserCardSupport = {
309
309
  number: number;
310
310
  cardId: string;
311
311
  removableTime: string;
312
312
  };
313
- export declare type UserDeck = {
313
+ export type UserDeck = {
314
314
  number: number;
315
315
  name: string;
316
316
  };
317
- export declare type UserDeckPosition = {
317
+ export type UserDeckPosition = {
318
318
  number: number;
319
319
  position: number;
320
320
  cardId: string;
@@ -324,13 +324,13 @@ export declare type UserDeckPosition = {
324
324
  costumeId: string;
325
325
  hairId: string;
326
326
  };
327
- export declare type UserGachaButton = {
327
+ export type UserGachaButton = {
328
328
  gachaButtonId: string;
329
329
  drawTime: string;
330
330
  todayCount: number;
331
331
  totalCount: number;
332
332
  };
333
- export declare type UserGift = {
333
+ export type UserGift = {
334
334
  giftId: string;
335
335
  resourceType: ResourceType;
336
336
  resourceId: string;
@@ -340,10 +340,10 @@ export declare type UserGift = {
340
340
  limitTime: string;
341
341
  photoGift: PhotoGift;
342
342
  };
343
- export declare type PhotoGift = {
343
+ export type PhotoGift = {
344
344
  name: string;
345
345
  };
346
- export declare type UserGiftHistory = {
346
+ export type UserGiftHistory = {
347
347
  giftId: string;
348
348
  resourceType: ResourceType;
349
349
  resourceId: string;
@@ -353,39 +353,39 @@ export declare type UserGiftHistory = {
353
353
  receivedTime: string;
354
354
  photoGift: PhotoGiftHistory;
355
355
  };
356
- export declare type PhotoGiftHistory = {
356
+ export type PhotoGiftHistory = {
357
357
  name: string;
358
358
  };
359
- export declare type UserInvite = {
359
+ export type UserInvite = {
360
360
  inviteCode: string;
361
361
  receivedHostRewardTotalAmount: string;
362
362
  };
363
- export declare type UserNotification = {
363
+ export type UserNotification = {
364
364
  notificationType: NotificationType;
365
365
  valid: boolean;
366
366
  startTime: string;
367
367
  };
368
- export declare type UserPhotoReport = {
368
+ export type UserPhotoReport = {
369
369
  photos: UserPhoto[];
370
370
  received: boolean;
371
371
  };
372
- export declare type UserPoint = {
372
+ export type UserPoint = {
373
373
  pointType: PointType;
374
374
  amount: string;
375
375
  };
376
- export declare type TwitterInfo = {
376
+ export type TwitterInfo = {
377
377
  twitterUserID: string;
378
378
  twitterScreenName: string;
379
379
  };
380
- export declare type UserPublic = {
380
+ export type UserPublic = {
381
381
  serverUserId: string;
382
382
  publicUserId: string;
383
383
  };
384
- export declare type UserStaff = {
384
+ export type UserStaff = {
385
385
  parameterType: ParameterType;
386
386
  level: number;
387
387
  };
388
- export declare type UserTotalCount = {
388
+ export type UserTotalCount = {
389
389
  loginCount: string;
390
390
  marketExchangeCount: string;
391
391
  photoShootCount: string;
@@ -399,7 +399,7 @@ export declare type UserTotalCount = {
399
399
  guildCheckInCount: string;
400
400
  photoRetouchCount: string;
401
401
  };
402
- export declare type UserTutorial = {
402
+ export type UserTutorial = {
403
403
  tutorialType: TutorialType;
404
404
  step: string;
405
405
  };
@@ -1,5 +1,5 @@
1
1
  import { AttributeType } from "./proto/proto_enum";
2
- export declare type QuestBase = {
2
+ export type QuestBase = {
3
3
  id: string;
4
4
  stageId: string;
5
5
  musicId: string;
@@ -1,12 +1,12 @@
1
1
  import { UserCard } from "./card_types";
2
- export declare type TransDeck = {
2
+ export type TransDeck = {
3
3
  name: string;
4
4
  userCards: {
5
5
  index: number;
6
6
  card: UserCard;
7
7
  }[];
8
8
  };
9
- export declare type TransCard = {
9
+ export type TransCard = {
10
10
  cardId: string;
11
11
  level: number;
12
12
  rarity: number;
@@ -20,7 +20,7 @@ export declare type TransCard = {
20
20
  mental: number;
21
21
  technique: number;
22
22
  };
23
- export declare type CustomNote = {
23
+ export type CustomNote = {
24
24
  ingamePos: number;
25
25
  sequence: number;
26
26
  privilege: "normal" | "opponent";
@@ -1,7 +1,7 @@
1
1
  import { AttributeType } from "../proto/proto_enum";
2
2
  import { Card } from "../proto/proto_master";
3
3
  import { WapSkill } from "./skill_waps";
4
- export declare type WapCard = Card & {
4
+ export type WapCard = Card & {
5
5
  skill1: WapSkill;
6
6
  skill2: WapSkill;
7
7
  skill3: WapSkill;
@@ -1,8 +1,8 @@
1
1
  import { LiveBeat } from "../proto/proto_api";
2
- export declare type WapLiveBeat = Omit<LiveBeat, "score"> & {
2
+ export type WapLiveBeat = Omit<LiveBeat, "score"> & {
3
3
  score: number;
4
4
  };
5
- export declare type WapPhotoAbility = {
5
+ export type WapPhotoAbility = {
6
6
  photoAbilityId: string;
7
7
  effectValue: string;
8
8
  missionId: string;
@@ -2,12 +2,12 @@ import { AttributeType } from "../proto/proto_enum";
2
2
  import { MusicChartPattern } from "../proto/proto_master";
3
3
  import { QuestBase } from "../quest_types";
4
4
  import { WapLiveAbility } from "./skill_waps";
5
- export declare type WapQuest = QuestBase & {
5
+ export type WapQuest = QuestBase & {
6
6
  musicName: string;
7
7
  musicChartPatterns: WapMusicChartPattern[];
8
8
  liveBonuses?: WapLiveAbility[];
9
9
  getLaneType: (index: number) => AttributeType;
10
10
  };
11
- export declare type WapMusicChartPattern = MusicChartPattern & {
11
+ export type WapMusicChartPattern = MusicChartPattern & {
12
12
  sequence: number;
13
13
  };
@@ -1,24 +1,24 @@
1
1
  import { SkillCategoryType } from "../proto/proto_enum";
2
2
  import { Skill, SkillLevel, SkillTrigger, SkillDetail, SkillEfficacy, SkillTarget, LiveAbilityLevel } from "../proto/proto_master";
3
- export declare type WapSkill = Skill & {
3
+ export type WapSkill = Skill & {
4
4
  wapSkillLevels: WapSkillLevel[];
5
5
  };
6
- export declare type WapSkillLevel = SkillLevel & {
6
+ export type WapSkillLevel = SkillLevel & {
7
7
  trigger?: SkillTrigger;
8
8
  wapSkillDetails: WapSkillDetail[];
9
9
  categoryType: SkillCategoryType;
10
10
  name: string;
11
11
  assetId: string;
12
12
  };
13
- export declare type WapSkillDetail = SkillDetail & {
13
+ export type WapSkillDetail = SkillDetail & {
14
14
  trigger?: SkillTrigger;
15
15
  efficacy: WapSkillEfficacy;
16
16
  };
17
- export declare type WapSkillEfficacy = SkillEfficacy & {
17
+ export type WapSkillEfficacy = SkillEfficacy & {
18
18
  skillTarget?: SkillTarget;
19
19
  duration: number;
20
20
  isInstant: boolean;
21
21
  };
22
- export declare type WapLiveAbility = LiveAbilityLevel & {
22
+ export type WapLiveAbility = LiveAbilityLevel & {
23
23
  skill: WapSkillLevel;
24
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoshimi-venus",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "author": "vibbit (https://github.com/MalitsPlus)",
5
5
  "description": "Venus System Library (tentative)",
6
6
  "keywords": [],
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "build": "tsc",
23
- "test": "echo \"Error: no test specified\" && exit 1"
23
+ "test": "npx ts-node test/test.ts"
24
24
  },
25
25
  "dependencies": {
26
26
  "lodash": "^4.17.21",
@@ -29,6 +29,7 @@
29
29
  "devDependencies": {
30
30
  "@types/lodash": "^4.14.191",
31
31
  "@types/node": "^18.11.2",
32
- "@types/uuid": "^9.0.0"
32
+ "@types/uuid": "^9.0.0",
33
+ "ts-node": "^10.9.1"
33
34
  }
34
35
  }