@alwith/module-auth 0.1.0 → 0.1.4
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.
- package/LICENSE +2 -2
- package/README.md +35 -1
- package/THIRD_PARTY_NOTICES.md +32 -2
- package/assets/pets/assets/fonts/GrowYear.woff2 +0 -0
- package/assets/pets/assets/fonts/Outfit-Variable.woff2 +0 -0
- package/assets/pets/card-draw/add-to-album-active.png +0 -0
- package/assets/pets/card-draw/add-to-album-default.png +0 -0
- package/assets/pets/card-draw/add-to-album-hover.png +0 -0
- package/assets/pets/card-draw/album-bg.webp +0 -0
- package/assets/pets/card-draw/album-icon.png +0 -0
- package/assets/pets/card-draw/card-back.webp +0 -0
- package/assets/pets/card-draw/card-star.svg +13 -0
- package/assets/pets/card-draw/dialog-close.png +0 -0
- package/assets/pets/card-draw/download.svg +3 -0
- package/assets/pets/card-draw/empty-pet.png +0 -0
- package/assets/pets/card-draw/gem-plus.svg +4 -0
- package/assets/pets/card-draw/gem.svg +23 -0
- package/assets/pets/card-draw/new-tag.svg +14 -0
- package/assets/pets/card-draw/not-enough-dialog.png +0 -0
- package/assets/pets/card-draw/placeholder-card.png +0 -0
- package/assets/pets/card-draw/proceed-active.png +0 -0
- package/assets/pets/card-draw/proceed-default.png +0 -0
- package/assets/pets/card-draw/proceed-hover.png +0 -0
- package/assets/pets/card-draw/pull-0-active.png +0 -0
- package/assets/pets/card-draw/pull-0-default.png +0 -0
- package/assets/pets/card-draw/pull-0-hover.png +0 -0
- package/assets/pets/card-draw/pull-160-active.png +0 -0
- package/assets/pets/card-draw/pull-160-default.png +0 -0
- package/assets/pets/card-draw/pull-160-hover.png +0 -0
- package/assets/pets/card-draw/pull-1600-active.png +0 -0
- package/assets/pets/card-draw/pull-1600-default.png +0 -0
- package/assets/pets/card-draw/pull-1600-hover.png +0 -0
- package/assets/pets/card-draw/pull-album-icon-transparent.png +0 -0
- package/assets/pets/card-draw/pull-back-transparent.png +0 -0
- package/assets/pets/card-draw/pull-gem.svg +27 -0
- package/assets/pets/card-draw/pull-page-background.png +0 -0
- package/assets/pets/card-draw/pull-texture.png +0 -0
- package/assets/pets/card-draw/pull-vibemon-icon-transparent.png +0 -0
- package/assets/pets/card-draw/rarity-bg-sr.webp +0 -0
- package/assets/pets/card-draw/rarity-bg-ssr.webp +0 -0
- package/assets/pets/card-draw/result-aura.webp +0 -0
- package/assets/pets/card-draw/stage.webp +0 -0
- package/assets/pets/card-draw/wish-default.png +0 -0
- package/assets/pets/card-draw/wish.webp +0 -0
- package/assets/pets/vibemon/album/arrow.svg +12 -0
- package/assets/pets/vibemon/album/book.webp +0 -0
- package/assets/pets/vibemon/album/logo.webp +0 -0
- package/assets/pets/vibemon/album/page-bg.webp +0 -0
- package/assets/pets/vibemon/burst-sheet.png +0 -0
- package/assets/pets/vibemon/chick-armor/config.json +61 -0
- package/assets/pets/vibemon/chick-armor/sprite-sheet.webp +0 -0
- package/assets/pets/vibemon/chick-classic/config.json +61 -0
- package/assets/pets/vibemon/chick-classic/sprite-sheet.webp +0 -0
- package/assets/pets/vibemon/default-cat/config.json +37 -0
- package/assets/pets/vibemon/default-cat/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-cole-f/config.json +137 -0
- package/assets/pets/vibemon/dino-cole-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-cole-m/config.json +137 -0
- package/assets/pets/vibemon/dino-cole-m/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-doux-f/config.json +137 -0
- package/assets/pets/vibemon/dino-doux-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-kira-f/config.json +137 -0
- package/assets/pets/vibemon/dino-kira-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-kira-m/config.json +137 -0
- package/assets/pets/vibemon/dino-kira-m/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-kuro-f/config.json +137 -0
- package/assets/pets/vibemon/dino-kuro-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-kuro-m/config.json +137 -0
- package/assets/pets/vibemon/dino-kuro-m/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-loki-f/config.json +137 -0
- package/assets/pets/vibemon/dino-loki-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-loki-m/config.json +137 -0
- package/assets/pets/vibemon/dino-loki-m/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-mono-f/config.json +137 -0
- package/assets/pets/vibemon/dino-mono-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-mono-m/config.json +137 -0
- package/assets/pets/vibemon/dino-mono-m/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-mort-f/config.json +137 -0
- package/assets/pets/vibemon/dino-mort-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-nico-f/config.json +137 -0
- package/assets/pets/vibemon/dino-nico-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-nico-m/config.json +137 -0
- package/assets/pets/vibemon/dino-nico-m/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-olaf-f/config.json +137 -0
- package/assets/pets/vibemon/dino-olaf-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-olaf-m/config.json +137 -0
- package/assets/pets/vibemon/dino-olaf-m/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-purple-horn/config.json +35 -0
- package/assets/pets/vibemon/dino-purple-horn/sprite-sheet.webp +0 -0
- package/assets/pets/vibemon/dino-sena-f/config.json +137 -0
- package/assets/pets/vibemon/dino-sena-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-sena-m/config.json +137 -0
- package/assets/pets/vibemon/dino-sena-m/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-tard-f/config.json +137 -0
- package/assets/pets/vibemon/dino-tard-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/dino-vita-f/config.json +137 -0
- package/assets/pets/vibemon/dino-vita-f/sprite-sheet.png +0 -0
- package/assets/pets/vibemon/equip/page-bg.webp +0 -0
- package/assets/pets/vibemon/equip/single-pet-toast.png +0 -0
- package/assets/pets/vibemon/guide/arrow.svg +29 -0
- package/assets/pets/vibemon/guide/bubble-texture-home.png +0 -0
- package/assets/pets/vibemon/guide/bubble-texture-pull.png +0 -0
- package/assets/pets/vibemon/guide/hand-shape.svg +3 -0
- package/assets/pets/vibemon/guide/hand-sheen.png +0 -0
- package/assets/pets/vibemon/guide/hand.svg +10 -0
- package/assets/pets/vibemon/guide/mascot.png +0 -0
- package/assets/pets/vibemon/guide/ring.svg +41 -0
- package/assets/pets/vibemon/home/album-icon-hover.png +0 -0
- package/assets/pets/vibemon/home/album-icon.png +0 -0
- package/assets/pets/vibemon/home/album-text.png +0 -0
- package/assets/pets/vibemon/home/home-bg-bak.webp +0 -0
- package/assets/pets/vibemon/home/home-bg.webp +0 -0
- package/assets/pets/vibemon/home/intro.mp4 +0 -0
- package/assets/pets/vibemon/home/pull.mp4 +0 -0
- package/assets/pets/vibemon/home/pull.webm +0 -0
- package/assets/pets/vibemon/home/vibemon-icon-hover.png +0 -0
- package/assets/pets/vibemon/home/vibemon-icon.png +0 -0
- package/assets/pets/vibemon/home/vibemon-text.png +0 -0
- package/assets/pets/vibemon/home/wish-icon-hover.png +0 -0
- package/assets/pets/vibemon/home/wish-icon.png +0 -0
- package/assets/pets/vibemon/home/wish-text.png +0 -0
- package/assets/pets/vibemon/loading/background.webp +0 -0
- package/assets/pets/vibemon/loading/logo.webp +0 -0
- package/assets/pets/vibemon/multi-draw/bg-sr.png +0 -0
- package/assets/pets/vibemon/multi-draw/bg-ssr.png +0 -0
- package/dist/client.d.ts +1 -1
- package/dist/pets/assets.d.ts +35 -0
- package/dist/pets/assets.js +1 -0
- package/dist/pets/client.d.ts +12 -0
- package/dist/pets/client.js +1 -0
- package/dist/pets/core/engine.d.ts +63 -0
- package/dist/pets/core/engine.js +1 -0
- package/dist/pets/core/host.d.ts +112 -0
- package/dist/pets/core/host.js +1 -0
- package/dist/pets/core/index.d.ts +11 -0
- package/dist/pets/core/index.js +1 -0
- package/dist/pets/core/lib/account-state.d.ts +6 -0
- package/dist/pets/core/lib/account-state.js +1 -0
- package/dist/pets/core/lib/bubble-outline.d.ts +18 -0
- package/dist/pets/core/lib/bubble-outline.js +1 -0
- package/dist/pets/core/lib/draw-result.d.ts +22 -0
- package/dist/pets/core/lib/draw-result.js +1 -0
- package/dist/pets/core/lib/endpoints.d.ts +9 -0
- package/dist/pets/core/lib/endpoints.js +1 -0
- package/dist/pets/core/lib/gacha-pools.d.ts +28 -0
- package/dist/pets/core/lib/gacha-pools.js +1 -0
- package/dist/pets/core/lib/loading-progress.d.ts +2 -0
- package/dist/pets/core/lib/loading-progress.js +1 -0
- package/dist/pets/core/lib/pet-animation-sync.d.ts +20 -0
- package/dist/pets/core/lib/pet-animation-sync.js +1 -0
- package/dist/pets/core/lib/pet-bubble-state.d.ts +22 -0
- package/dist/pets/core/lib/pet-bubble-state.js +1 -0
- package/dist/pets/core/lib/pet-drag.d.ts +3 -0
- package/dist/pets/core/lib/pet-drag.js +1 -0
- package/dist/pets/core/lib/pet-presentation.d.ts +6 -0
- package/dist/pets/core/lib/pet-presentation.js +1 -0
- package/dist/pets/core/lib/pet-session-context.d.ts +14 -0
- package/dist/pets/core/lib/pet-session-context.js +1 -0
- package/dist/pets/core/lib/preload-images.d.ts +1 -0
- package/dist/pets/core/lib/preload-images.js +1 -0
- package/dist/pets/core/lib/presentation-readiness.d.ts +15 -0
- package/dist/pets/core/lib/presentation-readiness.js +1 -0
- package/dist/pets/core/lib/rarity.d.ts +2 -0
- package/dist/pets/core/lib/rarity.js +1 -0
- package/dist/pets/core/lib/recharge.d.ts +1 -0
- package/dist/pets/core/lib/recharge.js +1 -0
- package/dist/pets/core/lib/reply-submission.d.ts +10 -0
- package/dist/pets/core/lib/reply-submission.js +1 -0
- package/dist/pets/core/lib/resource-sync.d.ts +8 -0
- package/dist/pets/core/lib/resource-sync.js +1 -0
- package/dist/pets/core/lib/runtime-types.d.ts +1 -0
- package/dist/pets/core/lib/runtime-types.js +0 -0
- package/dist/pets/core/lib/settings.d.ts +22 -0
- package/dist/pets/core/lib/settings.js +1 -0
- package/dist/pets/core/lib/sprite-config.d.ts +4 -0
- package/dist/pets/core/lib/sprite-config.js +1 -0
- package/dist/pets/core/lib/vibemon-resources.d.ts +3 -0
- package/dist/pets/core/lib/vibemon-resources.js +1 -0
- package/dist/pets/core/lib/view-request.d.ts +4 -0
- package/dist/pets/core/lib/view-request.js +1 -0
- package/dist/pets/core/lib/window-frame.d.ts +14 -0
- package/dist/pets/core/lib/window-frame.js +1 -0
- package/dist/pets/core/lib/window-manager.d.ts +3 -0
- package/dist/pets/core/lib/window-manager.js +1 -0
- package/dist/pets/core/session-icon.d.ts +2 -0
- package/dist/pets/core/session-icon.js +5 -0
- package/dist/pets/core/types.d.ts +68 -0
- package/dist/pets/core/types.js +1 -0
- package/dist/pets/host.d.ts +25 -0
- package/dist/pets/host.js +1 -0
- package/dist/pets/index.d.ts +6 -0
- package/dist/pets/index.js +1 -0
- package/dist/pets/react/assets.d.ts +60 -0
- package/dist/pets/react/assets.js +1 -0
- package/dist/pets/react/components/album-view.d.ts +10 -0
- package/dist/pets/react/components/album-view.js +1 -0
- package/dist/pets/react/components/back-to-home.d.ts +7 -0
- package/dist/pets/react/components/back-to-home.js +1 -0
- package/dist/pets/react/components/equip-view.d.ts +18 -0
- package/dist/pets/react/components/equip-view.js +1 -0
- package/dist/pets/react/components/gem-balance.d.ts +7 -0
- package/dist/pets/react/components/gem-balance.js +1 -0
- package/dist/pets/react/components/home-view.d.ts +6 -0
- package/dist/pets/react/components/home-view.js +1 -0
- package/dist/pets/react/components/insufficient-points-dialog.d.ts +4 -0
- package/dist/pets/react/components/insufficient-points-dialog.js +1 -0
- package/dist/pets/react/components/intro-overlay.d.ts +5 -0
- package/dist/pets/react/components/intro-overlay.js +1 -0
- package/dist/pets/react/components/loading-view.d.ts +4 -0
- package/dist/pets/react/components/loading-view.js +1 -0
- package/dist/pets/react/components/lounge-burst.css +38 -0
- package/dist/pets/react/components/onboarding-guide.d.ts +3 -0
- package/dist/pets/react/components/onboarding-guide.js +1 -0
- package/dist/pets/react/components/pet-bubble-background.d.ts +7 -0
- package/dist/pets/react/components/pet-bubble-background.js +1 -0
- package/dist/pets/react/components/pet-mode-button.d.ts +4 -0
- package/dist/pets/react/components/pet-mode-button.js +1 -0
- package/dist/pets/react/components/pet-window.d.ts +2 -0
- package/dist/pets/react/components/pet-window.js +1 -0
- package/dist/pets/react/components/pull-overlay.d.ts +9 -0
- package/dist/pets/react/components/pull-overlay.js +1 -0
- package/dist/pets/react/components/pull-video.d.ts +7 -0
- package/dist/pets/react/components/pull-video.js +1 -0
- package/dist/pets/react/components/pull-view.d.ts +16 -0
- package/dist/pets/react/components/pull-view.js +1 -0
- package/dist/pets/react/components/quick-reply.d.ts +3 -0
- package/dist/pets/react/components/quick-reply.js +2 -0
- package/dist/pets/react/components/session-icon.d.ts +6 -0
- package/dist/pets/react/components/session-icon.js +1 -0
- package/dist/pets/react/components/single-pet-toast.d.ts +6 -0
- package/dist/pets/react/components/single-pet-toast.js +1 -0
- package/dist/pets/react/components/sprite-renderer.d.ts +16 -0
- package/dist/pets/react/components/sprite-renderer.js +1 -0
- package/dist/pets/react/components/vibemon-empty-state.d.ts +3 -0
- package/dist/pets/react/components/vibemon-empty-state.js +1 -0
- package/dist/pets/react/components/vibemon-header.d.ts +16 -0
- package/dist/pets/react/components/vibemon-header.js +1 -0
- package/dist/pets/react/components/vibemon-page.d.ts +1 -0
- package/dist/pets/react/components/vibemon-page.js +1 -0
- package/dist/pets/react/components/vibemon-scene.d.ts +5 -0
- package/dist/pets/react/components/vibemon-scene.js +1 -0
- package/dist/pets/react/components/video-fader.d.ts +23 -0
- package/dist/pets/react/components/video-fader.js +1 -0
- package/dist/pets/react/components/wish-button.d.ts +4 -0
- package/dist/pets/react/components/wish-button.js +1 -0
- package/dist/pets/react/index.d.ts +4 -0
- package/dist/pets/react/index.js +1 -0
- package/dist/pets/react/lib/account-state.d.ts +2 -0
- package/dist/pets/react/lib/account-state.js +1 -0
- package/dist/pets/react/lib/card-image.d.ts +1 -0
- package/dist/pets/react/lib/card-image.js +1 -0
- package/dist/pets/react/lib/resource-sync.d.ts +5 -0
- package/dist/pets/react/lib/resource-sync.js +1 -0
- package/dist/pets/react/lib/utils.d.ts +1 -0
- package/dist/pets/react/lib/utils.js +1 -0
- package/dist/pets/react/locales.d.ts +144 -0
- package/dist/pets/react/locales.js +1 -0
- package/dist/pets/react/styles.css +15 -0
- package/dist/pets/react/ui/button.d.ts +8 -0
- package/dist/pets/react/ui/button.js +1 -0
- package/dist/pets/react/ui/card.d.ts +11 -0
- package/dist/pets/react/ui/card.js +1 -0
- package/dist/pets/react/ui/input-group.d.ts +16 -0
- package/dist/pets/react/ui/input-group.js +1 -0
- package/dist/pets/react/ui/textarea.d.ts +3 -0
- package/dist/pets/react/ui/textarea.js +1 -0
- package/dist/pets/resources.d.ts +30 -0
- package/dist/pets/resources.js +1 -0
- package/dist/pets/selection.d.ts +7 -0
- package/dist/pets/selection.js +1 -0
- package/dist/pets/types.d.ts +221 -0
- package/dist/pets/types.js +0 -0
- package/package.json +52 -4
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
export interface PointAccountData {
|
|
2
|
+
account_uuid: string;
|
|
3
|
+
user_uuid: string;
|
|
4
|
+
available_points: number;
|
|
5
|
+
frozen_points: number;
|
|
6
|
+
total_points: number;
|
|
7
|
+
total_recharged_points: number;
|
|
8
|
+
total_granted_points: number;
|
|
9
|
+
total_consumed_points: number;
|
|
10
|
+
next_expire_time: string;
|
|
11
|
+
next_expire_points: number;
|
|
12
|
+
}
|
|
13
|
+
export interface VibemonFirstVisitResponse {
|
|
14
|
+
first_visit: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface GachaFirstDrawResponse {
|
|
17
|
+
first_draw: boolean;
|
|
18
|
+
}
|
|
19
|
+
export type DrawType = "SINGLE" | "MULTI";
|
|
20
|
+
export type GachaRewardType = "WHITE_CARD" | "VIBEMON";
|
|
21
|
+
export type GachaRarityCode = "SSR" | "SR" | "R" | "UC" | "C";
|
|
22
|
+
export interface GachaPoolSummary {
|
|
23
|
+
uuid: string;
|
|
24
|
+
name: string;
|
|
25
|
+
banner_url: string | null;
|
|
26
|
+
single_cost: number;
|
|
27
|
+
multi_count: number;
|
|
28
|
+
multi_cost: number;
|
|
29
|
+
currency_type: string;
|
|
30
|
+
start_time: string | null;
|
|
31
|
+
end_time: string | null;
|
|
32
|
+
status: number;
|
|
33
|
+
sort_order: number;
|
|
34
|
+
is_default: number;
|
|
35
|
+
}
|
|
36
|
+
export interface GachaPoolRate {
|
|
37
|
+
rarity_uuid: string;
|
|
38
|
+
rarity_code: GachaRarityCode;
|
|
39
|
+
rarity_name: string;
|
|
40
|
+
rate: number;
|
|
41
|
+
display_rate: string;
|
|
42
|
+
}
|
|
43
|
+
interface GachaPoolItemBase {
|
|
44
|
+
uuid: string;
|
|
45
|
+
pool_uuid: string;
|
|
46
|
+
rarity_uuid: string;
|
|
47
|
+
rarity_code: GachaRarityCode;
|
|
48
|
+
rarity_name: string;
|
|
49
|
+
weight: number;
|
|
50
|
+
is_up: number;
|
|
51
|
+
status: number;
|
|
52
|
+
created_time: string;
|
|
53
|
+
updated_time: string;
|
|
54
|
+
}
|
|
55
|
+
export interface GachaPoolVibemonItem extends GachaPoolItemBase {
|
|
56
|
+
reward_type: "VIBEMON";
|
|
57
|
+
exchange_points: null;
|
|
58
|
+
vibemon_uuid: string;
|
|
59
|
+
vibemon_name: string;
|
|
60
|
+
vibemon_cover_url: string;
|
|
61
|
+
vibemon_icon_url: string | null;
|
|
62
|
+
vibemon_background_url: string | null;
|
|
63
|
+
vibemon_pool_card_url: string | null;
|
|
64
|
+
vibemon_sidebar_selected_url: string | null;
|
|
65
|
+
vibemon_sidebar_hover_url: string | null;
|
|
66
|
+
vibemon_sidebar_unselected_url: string | null;
|
|
67
|
+
}
|
|
68
|
+
export interface GachaPoolWhiteCardItem extends GachaPoolItemBase {
|
|
69
|
+
reward_type: "WHITE_CARD";
|
|
70
|
+
exchange_points: number;
|
|
71
|
+
vibemon_uuid: null;
|
|
72
|
+
vibemon_name: null;
|
|
73
|
+
vibemon_cover_url: null;
|
|
74
|
+
vibemon_icon_url: null;
|
|
75
|
+
vibemon_background_url: null;
|
|
76
|
+
vibemon_pool_card_url: null;
|
|
77
|
+
vibemon_sidebar_selected_url: null;
|
|
78
|
+
vibemon_sidebar_hover_url: null;
|
|
79
|
+
vibemon_sidebar_unselected_url: null;
|
|
80
|
+
}
|
|
81
|
+
export type GachaPoolItem = GachaPoolVibemonItem | GachaPoolWhiteCardItem;
|
|
82
|
+
export interface GachaPoolGuarantee {
|
|
83
|
+
target_rarity_code: GachaRarityCode;
|
|
84
|
+
target_rarity_name: string;
|
|
85
|
+
hard_pity_count: number;
|
|
86
|
+
soft_pity_start: number;
|
|
87
|
+
ten_pull_min_rarity_name: string;
|
|
88
|
+
}
|
|
89
|
+
export interface GachaPoolDetailResponse {
|
|
90
|
+
uuid: string;
|
|
91
|
+
name: string;
|
|
92
|
+
description: string | null;
|
|
93
|
+
banner_url: string | null;
|
|
94
|
+
single_cost: number;
|
|
95
|
+
multi_count: number;
|
|
96
|
+
multi_cost: number;
|
|
97
|
+
currency_type: string;
|
|
98
|
+
start_time: string | null;
|
|
99
|
+
end_time: string | null;
|
|
100
|
+
status: number;
|
|
101
|
+
rates: GachaPoolRate[];
|
|
102
|
+
items: GachaPoolItem[];
|
|
103
|
+
guarantee: GachaPoolGuarantee;
|
|
104
|
+
next_single_actual_cost?: number | null;
|
|
105
|
+
next_multi_actual_cost?: number | null;
|
|
106
|
+
first_draw_discount: boolean;
|
|
107
|
+
}
|
|
108
|
+
interface DrawResultItemBase {
|
|
109
|
+
draw_index: number;
|
|
110
|
+
rarity_code: GachaRarityCode;
|
|
111
|
+
rarity_name: string;
|
|
112
|
+
rarity_color: string;
|
|
113
|
+
is_duplicate: boolean;
|
|
114
|
+
duplicate_action: string | null;
|
|
115
|
+
duplicate_value: number;
|
|
116
|
+
is_pity_hit: boolean;
|
|
117
|
+
}
|
|
118
|
+
export interface VibemonDrawResultItem extends DrawResultItemBase {
|
|
119
|
+
reward_type: "VIBEMON";
|
|
120
|
+
exchange_points: null;
|
|
121
|
+
vibemon_uuid: string;
|
|
122
|
+
vibemon_name: string;
|
|
123
|
+
cover_url: string;
|
|
124
|
+
gacha_url: string | null;
|
|
125
|
+
multi_draw_url: string | null;
|
|
126
|
+
sheet_url: string | null;
|
|
127
|
+
layout: string | null;
|
|
128
|
+
icon_url: string | null;
|
|
129
|
+
background_url: string | null;
|
|
130
|
+
pool_card_url: string | null;
|
|
131
|
+
sidebar_selected_url: string | null;
|
|
132
|
+
sidebar_hover_url: string | null;
|
|
133
|
+
sidebar_unselected_url: string | null;
|
|
134
|
+
}
|
|
135
|
+
export interface WhiteCardDrawResultItem extends DrawResultItemBase {
|
|
136
|
+
reward_type: "WHITE_CARD";
|
|
137
|
+
exchange_points: number;
|
|
138
|
+
vibemon_uuid: null;
|
|
139
|
+
vibemon_name: null;
|
|
140
|
+
cover_url: null;
|
|
141
|
+
gacha_url: string | null;
|
|
142
|
+
multi_draw_url: string | null;
|
|
143
|
+
sheet_url: null;
|
|
144
|
+
layout: null;
|
|
145
|
+
icon_url: null;
|
|
146
|
+
background_url: null;
|
|
147
|
+
pool_card_url: null;
|
|
148
|
+
sidebar_selected_url: null;
|
|
149
|
+
sidebar_hover_url: null;
|
|
150
|
+
sidebar_unselected_url: null;
|
|
151
|
+
}
|
|
152
|
+
export type DrawResultItem = VibemonDrawResultItem | WhiteCardDrawResultItem;
|
|
153
|
+
export interface UserGachaStateResponse {
|
|
154
|
+
pool_uuid: string;
|
|
155
|
+
pity_count: number | null;
|
|
156
|
+
hard_pity_count: number | null;
|
|
157
|
+
remaining_to_hard_pity: number | null;
|
|
158
|
+
soft_pity_start: number | null;
|
|
159
|
+
total_draw_count: number;
|
|
160
|
+
}
|
|
161
|
+
export interface DrawResponse {
|
|
162
|
+
order_no: string;
|
|
163
|
+
cost_amount: number;
|
|
164
|
+
currency_type: string;
|
|
165
|
+
results: DrawResultItem[];
|
|
166
|
+
state: UserGachaStateResponse;
|
|
167
|
+
}
|
|
168
|
+
export interface MyVibemonItem {
|
|
169
|
+
vibemon_uuid: string;
|
|
170
|
+
name: string;
|
|
171
|
+
description: string | null;
|
|
172
|
+
rarity_code: string;
|
|
173
|
+
rarity_name: string;
|
|
174
|
+
rarity_color: string;
|
|
175
|
+
category_code: string;
|
|
176
|
+
category_name: string;
|
|
177
|
+
cover_url: string;
|
|
178
|
+
gacha_url: string | null;
|
|
179
|
+
icon_url: string | null;
|
|
180
|
+
background_url: string | null;
|
|
181
|
+
pool_card_url: string | null;
|
|
182
|
+
sidebar_selected_url: string | null;
|
|
183
|
+
sidebar_hover_url: string | null;
|
|
184
|
+
sidebar_unselected_url: string | null;
|
|
185
|
+
is_limited: number;
|
|
186
|
+
is_equipped: boolean;
|
|
187
|
+
obtained_time: string;
|
|
188
|
+
duplicate_count: number;
|
|
189
|
+
}
|
|
190
|
+
export interface VibemonCatalogItem {
|
|
191
|
+
uuid: string;
|
|
192
|
+
name: string;
|
|
193
|
+
description: string | null;
|
|
194
|
+
rarity_uuid: string;
|
|
195
|
+
rarity_code: string;
|
|
196
|
+
rarity_name: string;
|
|
197
|
+
category_uuid: string | null;
|
|
198
|
+
category_name: string | null;
|
|
199
|
+
cover_url: string;
|
|
200
|
+
gacha_url: string;
|
|
201
|
+
multi_draw_url: string;
|
|
202
|
+
icon_url: string | null;
|
|
203
|
+
background_url: string | null;
|
|
204
|
+
pool_card_url: string | null;
|
|
205
|
+
sidebar_selected_url: string | null;
|
|
206
|
+
sidebar_hover_url: string | null;
|
|
207
|
+
sidebar_unselected_url: string | null;
|
|
208
|
+
resource_url: string;
|
|
209
|
+
sheet_url: string;
|
|
210
|
+
layout: string;
|
|
211
|
+
resource_version: number;
|
|
212
|
+
is_limited: number;
|
|
213
|
+
status: number;
|
|
214
|
+
}
|
|
215
|
+
export interface GetMyVibemonsParams {
|
|
216
|
+
rarity_uuid?: string;
|
|
217
|
+
category_uuid?: string;
|
|
218
|
+
equipped?: boolean;
|
|
219
|
+
scene?: string;
|
|
220
|
+
}
|
|
221
|
+
export {};
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwith/module-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,17 +38,42 @@
|
|
|
38
38
|
"types": "./dist/state.d.ts",
|
|
39
39
|
"import": "./dist/state.js",
|
|
40
40
|
"default": "./dist/state.js"
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
|
+
"./pets": {
|
|
43
|
+
"types": "./dist/pets/index.d.ts",
|
|
44
|
+
"import": "./dist/pets/index.js",
|
|
45
|
+
"default": "./dist/pets/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./pets/core": {
|
|
48
|
+
"types": "./dist/pets/core/index.d.ts",
|
|
49
|
+
"import": "./dist/pets/core/index.js",
|
|
50
|
+
"default": "./dist/pets/core/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./pets/react": {
|
|
53
|
+
"types": "./dist/pets/react/index.d.ts",
|
|
54
|
+
"import": "./dist/pets/react/index.js",
|
|
55
|
+
"default": "./dist/pets/react/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./pets/locales": {
|
|
58
|
+
"types": "./dist/pets/react/locales.d.ts",
|
|
59
|
+
"import": "./dist/pets/react/locales.js",
|
|
60
|
+
"default": "./dist/pets/react/locales.js"
|
|
61
|
+
},
|
|
62
|
+
"./pets/styles.css": "./dist/pets/react/styles.css"
|
|
42
63
|
},
|
|
43
64
|
"files": [
|
|
44
65
|
"dist",
|
|
45
66
|
"README.md",
|
|
46
67
|
"LICENSE",
|
|
47
68
|
"THIRD_PARTY_NOTICES.md",
|
|
48
|
-
"licenses"
|
|
69
|
+
"licenses",
|
|
70
|
+
"assets"
|
|
49
71
|
],
|
|
50
72
|
"devDependencies": {
|
|
51
|
-
"typescript": "^7.0.2"
|
|
73
|
+
"typescript": "^7.0.2",
|
|
74
|
+
"@types/bun": "^1.4.2",
|
|
75
|
+
"@types/react": "^19.3.0",
|
|
76
|
+
"@types/react-dom": "^19.3.0"
|
|
52
77
|
},
|
|
53
78
|
"scripts": {
|
|
54
79
|
"test": "bun test src",
|
|
@@ -65,5 +90,28 @@
|
|
|
65
90
|
"type": "git",
|
|
66
91
|
"url": "git+https://github.com/ALwith-ai/alwith-modules.git",
|
|
67
92
|
"directory": "crates/auth/guest-js"
|
|
93
|
+
},
|
|
94
|
+
"dependencies": {
|
|
95
|
+
"@base-ui/react": "^1.8.0",
|
|
96
|
+
"class-variance-authority": "^0.7.1",
|
|
97
|
+
"cn": "^0.4.0",
|
|
98
|
+
"lucide-react": "^1.49.0",
|
|
99
|
+
"motion": "^13.4.6",
|
|
100
|
+
"react-i18next": "^17.0.15",
|
|
101
|
+
"i18next": "^26.4.2",
|
|
102
|
+
"sonner": "^2.0.8",
|
|
103
|
+
"zustand": "^5.0.15"
|
|
104
|
+
},
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"react": "^19.3.0",
|
|
107
|
+
"react-dom": "^19.3.0"
|
|
108
|
+
},
|
|
109
|
+
"peerDependenciesMeta": {
|
|
110
|
+
"react": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"react-dom": {
|
|
114
|
+
"optional": true
|
|
115
|
+
}
|
|
68
116
|
}
|
|
69
117
|
}
|