deepsight.gg 1.0.79

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.
@@ -0,0 +1,225 @@
1
+ import type { ActivityHashes, DamageTypeHashes, InventoryBucketHashes, InventoryItemHashes, StatHashes } from "@deepsight.gg/enums";
2
+
3
+ export enum DeepsightPlugCategory {
4
+ None,
5
+ Intrinsic,
6
+ Perk,
7
+ Mod,
8
+ Subclass,
9
+ Artifact,
10
+ Cosmetic,
11
+ Masterwork,
12
+ Vendor,
13
+ Classified,
14
+ StatusEffect,
15
+ Unknown,
16
+ Extractable,
17
+ Infusion,
18
+ }
19
+
20
+ export enum DeepsightPlugTypeIntrinsic {
21
+ None,
22
+ Frame,
23
+ FrameEnhanced,
24
+ Origin,
25
+ Exotic,
26
+ SparrowEngine,
27
+ }
28
+
29
+ export enum DeepsightPlugTypePerk {
30
+ None,
31
+ Trait,
32
+ TraitEnhanced,
33
+ Exotic,
34
+ Scope,
35
+ Barrel,
36
+ Battery,
37
+ Magazine,
38
+ Grip,
39
+ Stock,
40
+ Blade,
41
+ Guard,
42
+ Bowstring,
43
+ Arrow,
44
+ GrenadeLauncherMagazine,
45
+ Tube,
46
+ Haft,
47
+ Deprecated,
48
+ Dummy,
49
+ Clan,
50
+ Sparrow,
51
+ Ship,
52
+ Ghost,
53
+ TraitLocked,
54
+ EmptyCraftingSocket,
55
+ EmblemAura,
56
+ Random,
57
+ }
58
+
59
+ export enum DeepsightPlugTypeMod {
60
+ None,
61
+ Armor,
62
+ ArmorEmpty,
63
+ Weapon,
64
+ WeaponAdept,
65
+ WeaponEmpty,
66
+ Ghost,
67
+ GhostEmpty,
68
+ Universal,
69
+ UniversalEmpty,
70
+ Deprecated,
71
+ Fallback,
72
+ ArmorLocked,
73
+ ArmorExotic,
74
+ }
75
+
76
+ export enum DeepsightPlugTypeSubclass {
77
+ None,
78
+ Aspect,
79
+ Fragment,
80
+ FragmentEmpty,
81
+ Super,
82
+ Grenade,
83
+ Melee,
84
+ ClassAbility,
85
+ Movement,
86
+ SuperEmpty,
87
+ AspectEmpty,
88
+ GrenadeEmpty,
89
+ MeleeEmpty,
90
+ ClassAbilityEmpty,
91
+ MovementEmpty,
92
+ }
93
+
94
+ export enum DeepsightPlugTypeCosmetic {
95
+ None,
96
+ Shader,
97
+ OrnamentWeapon,
98
+ Memento,
99
+ Emote,
100
+ TransmatEffect,
101
+ GhostShell,
102
+ GhostProjection,
103
+ ShipEngineEffect,
104
+ Tracker,
105
+ ArmorGlow,
106
+ GhostTracker,
107
+ ClanBannerStaff,
108
+ EmblemEmpty,
109
+ Radiance,
110
+ OrnamentDefault,
111
+ MementoEmpty,
112
+ OrnamentArmor,
113
+ OrnamentArmorExotic,
114
+ OrnamentWeaponExotic,
115
+ OrnamentMask,
116
+ ShaderDefault,
117
+ }
118
+
119
+ export enum DeepsightPlugTypeMasterwork {
120
+ None,
121
+ Weapon,
122
+ Armor,
123
+ Ghost,
124
+ ExoticCatalystEmpty,
125
+ ExoticCatalystUpgrade,
126
+ ExoticCatalystAvailable,
127
+ ExoticCatalyst,
128
+ Event,
129
+ ShapedWeapon,
130
+ HolidayOven,
131
+ Authorization,
132
+ EnhancementEmpty,
133
+ Enhancement,
134
+ }
135
+
136
+ export enum DeepsightPlugTypeVendor {
137
+ None,
138
+ HolidayOven,
139
+ }
140
+
141
+ export enum DeepsightPlugTypeExtractable {
142
+ None,
143
+ DeepsightResonance,
144
+ DeepsightActivation,
145
+ }
146
+
147
+ export const DeepsightPlugTypeMap = {
148
+ [DeepsightPlugCategory.None]: null,
149
+ [DeepsightPlugCategory.Classified]: null,
150
+ [DeepsightPlugCategory.Unknown]: null,
151
+ [DeepsightPlugCategory.Intrinsic]: /*%typeof*/ DeepsightPlugTypeIntrinsic,
152
+ [DeepsightPlugCategory.Perk]: /*%typeof*/ DeepsightPlugTypePerk,
153
+ [DeepsightPlugCategory.Mod]: /*%typeof*/ DeepsightPlugTypeMod,
154
+ [DeepsightPlugCategory.Subclass]: /*%typeof*/ DeepsightPlugTypeSubclass,
155
+ [DeepsightPlugCategory.Cosmetic]: /*%typeof*/ DeepsightPlugTypeCosmetic,
156
+ [DeepsightPlugCategory.Masterwork]: /*%typeof*/ DeepsightPlugTypeMasterwork,
157
+ [DeepsightPlugCategory.Artifact]: null,
158
+ [DeepsightPlugCategory.Vendor]: /*%typeof*/ DeepsightPlugTypeVendor,
159
+ [DeepsightPlugCategory.StatusEffect]: null,
160
+ [DeepsightPlugCategory.Infusion]: null,
161
+ [DeepsightPlugCategory.Extractable]: /*%typeof*/ DeepsightPlugTypeExtractable,
162
+ };
163
+
164
+ export type DeepsightPlugType<CATEGORY extends DeepsightPlugCategory = DeepsightPlugCategory> =
165
+ DeepsightPlugCategory extends CATEGORY ? ({ [CATEGORY in DeepsightPlugCategory]: DeepsightPlugType<CATEGORY> } extends infer ALL_CATEGORIES ? ALL_CATEGORIES[keyof ALL_CATEGORIES] : never)
166
+ : (/*<*/typeof /*>*/DeepsightPlugTypeMap)[CATEGORY] extends infer TYPE_ENUM ? TYPE_ENUM[keyof TYPE_ENUM] : never;
167
+
168
+ export interface DeepsightPlugCategorisationGeneric<CATEGORY extends DeepsightPlugCategory = DeepsightPlugCategory> {
169
+ hash: number;
170
+ category: CATEGORY;
171
+ categoryName: string;
172
+ type?: DeepsightPlugType<CATEGORY>;
173
+ typeName?: string;
174
+ fullName: DeepsightPlugFullName<CATEGORY>;
175
+ }
176
+
177
+ export interface DeepsightPlugCategorisationMasterwork extends DeepsightPlugCategorisationGeneric<DeepsightPlugCategory.Masterwork> {
178
+ complete?: boolean;
179
+ stat?: StatHashes;
180
+ value?: number;
181
+ }
182
+
183
+ export interface DeepsightItemInvestmentStatDefinition {
184
+ statTypeHash: number;
185
+ /**
186
+ * Either a static value, or an array of numbers which is how much the total value of stat is from the equipped copies of the mod.
187
+ * IE, [30, 50, 60] for 1, 2, and 3 armour charge mods equipped.
188
+ */
189
+ value: number | number[];
190
+ isConditionallyActive: boolean;
191
+ }
192
+
193
+ export interface DeepsightPlugCategorisationMod extends DeepsightPlugCategorisationGeneric<DeepsightPlugCategory.Mod> {
194
+ adept?: boolean;
195
+ bucketHash?: InventoryBucketHashes;
196
+ raid?: boolean;
197
+ artifice?: boolean;
198
+ activityHash?: ActivityHashes;
199
+ armourChargeStats?: DeepsightItemInvestmentStatDefinition[];
200
+ }
201
+
202
+ export interface DeepsightPlugCategorisationSubclass extends DeepsightPlugCategorisationGeneric<DeepsightPlugCategory.Subclass> {
203
+ damageType?: DamageTypeHashes;
204
+ subclasses?: InventoryItemHashes[];
205
+ affectsClassStat?: true;
206
+ }
207
+
208
+ interface DeepsightPlugCategorisationMap {
209
+ [DeepsightPlugCategory.Masterwork]: DeepsightPlugCategorisationMasterwork;
210
+ [DeepsightPlugCategory.Mod]: DeepsightPlugCategorisationMod;
211
+ [DeepsightPlugCategory.Subclass]: DeepsightPlugCategorisationSubclass;
212
+ }
213
+
214
+ export type DeepsightPlugCategorisation<CATEGORY extends DeepsightPlugCategory = DeepsightPlugCategory> =
215
+ DeepsightPlugCategory extends CATEGORY ? ({ [CATEGORY in DeepsightPlugCategory]: DeepsightPlugCategorisation<CATEGORY> } extends infer ALL_CATEGORIES ? ALL_CATEGORIES[keyof ALL_CATEGORIES] : never)
216
+ : DeepsightPlugCategorisationMap extends { [KEY in CATEGORY]: infer CATEGORISATION } ? CATEGORISATION : DeepsightPlugCategorisationGeneric<CATEGORY>;
217
+
218
+ type ReverseCategoryMap = { [KEY in keyof typeof DeepsightPlugCategory as (typeof DeepsightPlugCategory)[KEY] extends infer ORDINAL extends number ? ORDINAL : never]: KEY }
219
+
220
+ export type DeepsightPlugCategoryName = ReverseCategoryMap[keyof ReverseCategoryMap];
221
+
222
+ export type DeepsightPlugFullName<CATEGORY extends DeepsightPlugCategory = DeepsightPlugCategory> =
223
+ DeepsightPlugCategory extends CATEGORY ? ({ [CATEGORY in DeepsightPlugCategory]: DeepsightPlugFullName<CATEGORY> } extends infer ALL_CATEGORIES ? ALL_CATEGORIES[keyof ALL_CATEGORIES] : never)
224
+ : (/*<*/typeof /*>*/DeepsightPlugTypeMap)[CATEGORY] extends infer TYPE_ENUM ? TYPE_ENUM extends null ? `${ReverseCategoryMap[CATEGORY]}`
225
+ : `${ReverseCategoryMap[CATEGORY]}/${Extract<keyof TYPE_ENUM, string>}` : never;
@@ -0,0 +1,100 @@
1
+ {
2
+ "1801258597": {
3
+ "displayProperties": {
4
+ "name": "Basic"
5
+ },
6
+ "infusionProcess": {
7
+ "baseQualityTransferRatio": 0.5,
8
+ "minimumQualityIncrement": 10
9
+ },
10
+ "hash": 1801258597,
11
+ "index": 6,
12
+ "redacted": false,
13
+ "blacklisted": false,
14
+ "tierType": 0
15
+ },
16
+ "2127292149": {
17
+ "displayProperties": {
18
+ "name": "Rare"
19
+ },
20
+ "infusionProcess": {
21
+ "baseQualityTransferRatio": 0.5,
22
+ "minimumQualityIncrement": 10
23
+ },
24
+ "hash": 2127292149,
25
+ "index": 3,
26
+ "redacted": false,
27
+ "blacklisted": false,
28
+ "tierType": 4
29
+ },
30
+ "2395677314": {
31
+ "displayProperties": {
32
+ "name": "Uncommon"
33
+ },
34
+ "infusionProcess": {
35
+ "baseQualityTransferRatio": 0.5,
36
+ "minimumQualityIncrement": 10
37
+ },
38
+ "hash": 2395677314,
39
+ "index": 2,
40
+ "redacted": false,
41
+ "blacklisted": false,
42
+ "tierType": 3
43
+ },
44
+ "2759499571": {
45
+ "displayProperties": {
46
+ "name": "Exotic"
47
+ },
48
+ "infusionProcess": {
49
+ "baseQualityTransferRatio": 1,
50
+ "minimumQualityIncrement": 4
51
+ },
52
+ "hash": 2759499571,
53
+ "index": 5,
54
+ "redacted": false,
55
+ "blacklisted": false,
56
+ "tierType": 6
57
+ },
58
+ "3340296461": {
59
+ "displayProperties": {
60
+ "name": "Common"
61
+ },
62
+ "infusionProcess": {
63
+ "baseQualityTransferRatio": 0.5,
64
+ "minimumQualityIncrement": 10
65
+ },
66
+ "hash": 3340296461,
67
+ "index": 1,
68
+ "redacted": false,
69
+ "blacklisted": false,
70
+ "tierType": 2
71
+ },
72
+ "3772930460": {
73
+ "displayProperties": {
74
+ "name": "Basic"
75
+ },
76
+ "infusionProcess": {
77
+ "baseQualityTransferRatio": 0.5,
78
+ "minimumQualityIncrement": 10
79
+ },
80
+ "hash": 3772930460,
81
+ "index": 0,
82
+ "redacted": false,
83
+ "blacklisted": false,
84
+ "tierType": 1
85
+ },
86
+ "4008398120": {
87
+ "displayProperties": {
88
+ "name": "Legendary"
89
+ },
90
+ "infusionProcess": {
91
+ "baseQualityTransferRatio": 1,
92
+ "minimumQualityIncrement": 6
93
+ },
94
+ "hash": 4008398120,
95
+ "index": 4,
96
+ "redacted": false,
97
+ "blacklisted": false,
98
+ "tierType": 5
99
+ }
100
+ }