@dchighs/dc-config 0.1.0 → 0.1.1

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Marcuth
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Marcuth
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
@@ -2169,26 +2169,28 @@ export interface MazeIslandReward {
2169
2169
  export interface News {
2170
2170
  "0": The0;
2171
2171
  "1": The1;
2172
- "2": The11;
2173
- "3": The3;
2174
- "4": The1;
2175
- "5": The3;
2176
- "6": The1;
2177
- "7": The3;
2178
- "8": The3;
2179
- "9": The1;
2172
+ "2": The10;
2173
+ "3": The12;
2174
+ "4": The12;
2175
+ "5": The10;
2176
+ "6": The12;
2177
+ "7": The10;
2178
+ "8": The12;
2179
+ "9": The12;
2180
2180
  "10": The10;
2181
2181
  "11": The11;
2182
- "12": The1;
2183
- "13": The1;
2184
- "14": The14;
2182
+ "12": The12;
2183
+ "13": The10;
2184
+ "14": The10;
2185
2185
  "15": The15;
2186
+ "16": The16;
2186
2187
  canvas: Canva[];
2187
2188
  }
2188
2189
  export interface The0 {
2189
2190
  active_platforms: ValueClass;
2190
2191
  allow_island_tutorial: number;
2191
2192
  assets_name: string;
2193
+ direct_to_shop: number;
2192
2194
  end_ts: string;
2193
2195
  hud_button: The0_HudButton;
2194
2196
  id: number;
@@ -2201,6 +2203,7 @@ export interface The0 {
2201
2203
  export interface The0_HudButton {
2202
2204
  file: string;
2203
2205
  title: string;
2206
+ viral_icon_tier: number;
2204
2207
  }
2205
2208
  export interface The0_Slide {
2206
2209
  content_localized_key: string;
@@ -2215,6 +2218,23 @@ export interface The0_Slide {
2215
2218
  times_to_show?: number;
2216
2219
  }
2217
2220
  export interface The1 {
2221
+ active_platforms: ValueClass;
2222
+ allow_island_tutorial: number;
2223
+ assets_name: string;
2224
+ end_ts: string;
2225
+ hud_button: The1_HudButton;
2226
+ id: number;
2227
+ min_level: number;
2228
+ popup_type: string;
2229
+ show_on_startup: number;
2230
+ slides: The0_Slide[];
2231
+ start_ts: string;
2232
+ }
2233
+ export interface The1_HudButton {
2234
+ file: string;
2235
+ title: string;
2236
+ }
2237
+ export interface The10 {
2218
2238
  active_platforms: ValueClass;
2219
2239
  allow_island_tutorial: number;
2220
2240
  assets_name: string;
@@ -2228,10 +2248,10 @@ export interface The1 {
2228
2248
  popup_type: string;
2229
2249
  priority: number | null;
2230
2250
  show_on_startup: number;
2231
- slides: The1_Slide[];
2251
+ slides: The10_Slide[];
2232
2252
  start_ts: string;
2233
2253
  }
2234
- export interface The1_Slide {
2254
+ export interface The10_Slide {
2235
2255
  content_localized_key: string;
2236
2256
  custom_title_localized_key: string;
2237
2257
  header_localized_key: string;
@@ -2279,14 +2299,14 @@ export declare enum Style {
2279
2299
  export declare enum SlideType {
2280
2300
  FullImage = "FullImage"
2281
2301
  }
2282
- export interface The10 {
2302
+ export interface The11 {
2283
2303
  active_platforms: ValueClass;
2284
2304
  allow_island_tutorial: number;
2285
2305
  assets_name: string;
2286
2306
  direct_to_shop: number;
2287
2307
  end_ts: string;
2288
2308
  filter_category: null;
2289
- hud_button: The10_HudButton;
2309
+ hud_button: The0_HudButton;
2290
2310
  id: number;
2291
2311
  label_text_tid: null;
2292
2312
  label_title_tid: null;
@@ -2295,15 +2315,10 @@ export interface The10 {
2295
2315
  popup_type: string;
2296
2316
  priority: null;
2297
2317
  show_on_startup: number;
2298
- slides: The10_Slide[];
2318
+ slides: The11_Slide[];
2299
2319
  start_ts: string;
2300
2320
  }
2301
- export interface The10_HudButton {
2302
- file: string;
2303
- title: string;
2304
- viral_icon_tier: number;
2305
- }
2306
- export interface The10_Slide {
2321
+ export interface The11_Slide {
2307
2322
  content_localized_key: string;
2308
2323
  custom_title_localized_key: string;
2309
2324
  forceClose?: boolean;
@@ -2313,7 +2328,7 @@ export interface The10_Slide {
2313
2328
  times_to_show: number;
2314
2329
  type: SlideType;
2315
2330
  }
2316
- export interface The11 {
2331
+ export interface The12 {
2317
2332
  active_platforms: ValueClass;
2318
2333
  allow_island_tutorial: number;
2319
2334
  assets_name: string;
@@ -2324,10 +2339,10 @@ export interface The11 {
2324
2339
  popup_frequency: string;
2325
2340
  popup_type: string;
2326
2341
  show_on_startup: number;
2327
- slides: The1_Slide[];
2342
+ slides: The11_Slide[];
2328
2343
  start_ts: string;
2329
2344
  }
2330
- export interface The14 {
2345
+ export interface The15 {
2331
2346
  active_platforms: ValueClass;
2332
2347
  allow_island_tutorial: number;
2333
2348
  assets_name: string;
@@ -2342,7 +2357,7 @@ export interface The14 {
2342
2357
  slides: The0_Slide[];
2343
2358
  start_ts: string;
2344
2359
  }
2345
- export interface The15 {
2360
+ export interface The16 {
2346
2361
  active_platforms: ValueClass;
2347
2362
  allow_island_tutorial: number;
2348
2363
  assets_name: string;
@@ -2356,21 +2371,7 @@ export interface The15 {
2356
2371
  popup_type: string;
2357
2372
  priority: null;
2358
2373
  show_on_startup: number;
2359
- slides: The10_Slide[];
2360
- start_ts: string;
2361
- }
2362
- export interface The3 {
2363
- active_platforms: ValueClass;
2364
- allow_island_tutorial: number;
2365
- assets_name: string;
2366
- direct_to_shop: number;
2367
- end_ts: string;
2368
- id: number;
2369
- min_level: number;
2370
- popup_frequency: string;
2371
- popup_type: string;
2372
- show_on_startup: number;
2373
- slides: The10_Slide[];
2374
+ slides: The11_Slide[];
2374
2375
  start_ts: string;
2375
2376
  }
2376
2377
  export interface Canva {
@@ -3323,8 +3324,8 @@ export interface MultiplierTime {
3323
3324
  multiplier_time: number;
3324
3325
  }
3325
3326
  export interface TreeOfLifePowerupRaritySeed {
3326
- rarity: Rarity;
3327
3327
  max_rarity_seeds_per_grade: number[];
3328
+ rarity: Rarity;
3328
3329
  }
3329
3330
  export interface Visual {
3330
3331
  id: number;
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "name": "@dchighs/dc-config",
3
- "version": "0.1.0",
4
- "description": "A library to handle configuration for Dragon City.",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "files": [
9
- "dist/*",
10
- "!/**/__tests__"
11
- ],
12
- "keywords": [
13
- "dragon city",
14
- "dc",
15
- "configuration",
16
- "dc highs"
17
- ],
18
- "scripts": {
19
- "build": "tsc",
20
- "update-dto": "ts-node scripts/update-dto.ts"
21
- },
22
- "author": "Marcuth",
23
- "license": "MIT",
24
- "type": "commonjs",
25
- "devDependencies": {
26
- "@marcuth/env": "^0.0.1",
27
- "@types/node": "^25.0.3",
28
- "quicktype-core": "^23.2.6",
29
- "ts-node": "^10.9.2",
30
- "typescript": "^5.9.3"
31
- },
32
- "dependencies": {
33
- "axios": "^1.13.2"
34
- },
35
- "peerDependencies": {
36
- "@dchighs/dc-core": "^0.3.0"
37
- }
38
- }
1
+ {
2
+ "name": "@dchighs/dc-config",
3
+ "version": "0.1.1",
4
+ "description": "A library to handle configuration for Dragon City.",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist/*",
10
+ "!/**/__tests__"
11
+ ],
12
+ "keywords": [
13
+ "dragon city",
14
+ "dc",
15
+ "configuration",
16
+ "dc highs"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsc",
20
+ "update-dto": "ts-node scripts/update-dto.ts"
21
+ },
22
+ "author": "Marcuth",
23
+ "license": "MIT",
24
+ "type": "commonjs",
25
+ "devDependencies": {
26
+ "@marcuth/env": "^0.0.1",
27
+ "@types/node": "^25.0.3",
28
+ "quicktype-core": "^23.2.6",
29
+ "ts-node": "^10.9.2",
30
+ "typescript": "^5.9.3"
31
+ },
32
+ "dependencies": {
33
+ "axios": "^1.13.2"
34
+ },
35
+ "peerDependencies": {
36
+ "@dchighs/dc-core": "^0.3.0"
37
+ }
38
+ }