From 1c833682576d9aafba85d044f3cc3c5147f87965 Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Fri, 24 Mar 2023 23:27:16 +0800 Subject: [PATCH] feat: update `WEB_VIEW_VERSION` and query hashes --- CHANGELOG.md | 4 ++++ src/constant.ts | 4 ++-- src/types.ts | 58 ++++++++++++++++++++++++------------------------- 3 files changed, 35 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 754a55e..7eb22a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.2 + +feat: update `WEB_VIEW_VERSION` and query hashes + ## 0.3.1 feat: use ID for uniform(https://stat.ink/api-info/salmon-uniform3) diff --git a/src/constant.ts b/src/constant.ts index b146c6a..4671d25 100644 --- a/src/constant.ts +++ b/src/constant.ts @@ -1,9 +1,9 @@ import type { StatInkPostBody, VsHistoryDetail } from "./types.ts"; export const AGENT_NAME = "s3si.ts"; -export const S3SI_VERSION = "0.3.1"; +export const S3SI_VERSION = "0.3.2"; export const NSOAPP_VERSION = "2.5.0"; -export const WEB_VIEW_VERSION = "3.0.0-6049221b"; +export const WEB_VIEW_VERSION = "3.0.0-0742bda0"; export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts"; export const USERAGENT = `${AGENT_NAME}/${S3SI_VERSION} (${S3SI_LINK})`; diff --git a/src/types.ts b/src/types.ts index 23acd88..f493f9c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -2,18 +2,18 @@ import { RankState } from "./state.ts"; export enum Queries { HomeQuery = "22e2fa8294168003c21b00c333c35384", - LatestBattleHistoriesQuery = "4f5f26e64bca394b45345a65a2f383bd", - RegularBattleHistoriesQuery = "d5b795d09e67ce153e622a184b7e7dfa", - BankaraBattleHistoriesQuery = "de4754588109b77dbcb90fbe44b612ee", - XBattleHistoriesQuery = "45c74fefb45a49073207229ca65f0a62", - PrivateBattleHistoriesQuery = "1d6ed57dc8b801863126ad4f351dfb9a", + LatestBattleHistoriesQuery = "0176a47218d830ee447e10af4a287b3f", + RegularBattleHistoriesQuery = "3baef04b095ad8975ea679d722bc17de", + BankaraBattleHistoriesQuery = "0438ea6978ae8bd77c5d1250f4f84803", + XBattleHistoriesQuery = "6796e3cd5dc3ebd51864dc709d899fc5", + PrivateBattleHistoriesQuery = "8e5ae78b194264a6c230e262d069bd28", VsHistoryDetailQuery = "291295ad311b99a6288fc95a5c4cb2d2", - CoopHistoryQuery = "6ed02537e4a65bbb5e7f4f23092f6154", + CoopHistoryQuery = "91b917becd2fa415890f5b47e15ffb15", CoopHistoryDetailQuery = "379f0d9b78b531be53044bcac031b34b", myOutfitCommonDataFilteringConditionQuery = - "d02ab22c9dccc440076055c8baa0fa7a", + "d02ab22c9dccc440076055c8baa0fa7a", myOutfitCommonDataEquipmentsQuery = "d29cd0c2b5e6bac90dd5b817914832f8", - HistoryRecordQuery = "32b6771f94083d8f04848109b7300af5", + HistoryRecordQuery = "f09da9d24d888797fdfb2f060dbdf4ed", ConfigureAnalyticsQuery = "f8ae00773cc412a50dd41a6d9a159ddd", } export type VarsMap = { @@ -682,14 +682,14 @@ export type StatInkCoopPlayer = { number: string; splashtag_title: string | null; uniform?: - | string - | "orange" - | "green" - | "yellow" - | "pink" - | "blue" - | "black" - | "white"; + | string + | "orange" + | "green" + | "yellow" + | "pink" + | "blue" + | "black" + | "white"; special?: string; weapons: (string | null)[]; golden_eggs: number; @@ -754,13 +754,13 @@ export type StatInkPostBody = { test?: "yes" | "no"; uuid: string; lobby: - | "regular" - | "bankara_challenge" - | "bankara_open" - | "xmatch" - | "splatfest_challenge" - | "splatfest_open" - | "private"; + | "regular" + | "bankara_challenge" + | "bankara_open" + | "xmatch" + | "splatfest_challenge" + | "splatfest_open" + | "private"; rule: "nawabari" | "area" | "hoko" | "yagura" | "asari" | "tricolor"; stage: string; weapon: string; @@ -808,12 +808,12 @@ export type StatInkPostBody = { x_power_after?: number | null; fest_power?: number; // Splatfest Power (Pro) fest_dragon?: - | "10x" - | "decuple" - | "100x" - | "dragon" - | "333x" - | "double_dragon"; + | "10x" + | "decuple" + | "100x" + | "dragon" + | "333x" + | "double_dragon"; clout_before?: number; // Splatfest Clout, before the battle clout_after?: number; // Splatfest Clout, after the battle clout_change?: number; // Splatfest Clout, equals to clout_after - clout_before if you know them