@dchighs/dc-config 0.1.0 → 0.1.2

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.
@@ -2170,19 +2170,21 @@ export interface News {
2170
2170
  "0": The0;
2171
2171
  "1": The1;
2172
2172
  "2": The11;
2173
- "3": The3;
2173
+ "3": The11;
2174
2174
  "4": The1;
2175
- "5": The3;
2176
- "6": The1;
2177
- "7": The3;
2178
- "8": The3;
2175
+ "5": The11;
2176
+ "6": The11;
2177
+ "7": The1;
2178
+ "8": The11;
2179
2179
  "9": The1;
2180
2180
  "10": The10;
2181
2181
  "11": The11;
2182
2182
  "12": The1;
2183
2183
  "13": The1;
2184
2184
  "14": The14;
2185
- "15": The15;
2185
+ "15": The11;
2186
+ "16": The16;
2187
+ "17": The11;
2186
2188
  canvas: Canva[];
2187
2189
  }
2188
2190
  export interface The0 {
@@ -2236,9 +2238,10 @@ export interface The1_Slide {
2236
2238
  custom_title_localized_key: string;
2237
2239
  header_localized_key: string;
2238
2240
  image_url: string;
2239
- multiple_buttons: MultipleButton[];
2241
+ multiple_buttons?: MultipleButton[];
2240
2242
  times_to_show: number;
2241
2243
  type: SlideType;
2244
+ forceClose?: boolean;
2242
2245
  }
2243
2246
  export interface MultipleButton {
2244
2247
  animation: AnimationNameEnum;
@@ -2295,7 +2298,7 @@ export interface The10 {
2295
2298
  popup_type: string;
2296
2299
  priority: null;
2297
2300
  show_on_startup: number;
2298
- slides: The10_Slide[];
2301
+ slides: The1_Slide[];
2299
2302
  start_ts: string;
2300
2303
  }
2301
2304
  export interface The10_HudButton {
@@ -2303,16 +2306,6 @@ export interface The10_HudButton {
2303
2306
  title: string;
2304
2307
  viral_icon_tier: number;
2305
2308
  }
2306
- export interface The10_Slide {
2307
- content_localized_key: string;
2308
- custom_title_localized_key: string;
2309
- forceClose?: boolean;
2310
- header_localized_key: string;
2311
- image_url: string;
2312
- multiple_buttons?: MultipleButton[];
2313
- times_to_show: number;
2314
- type: SlideType;
2315
- }
2316
2309
  export interface The11 {
2317
2310
  active_platforms: ValueClass;
2318
2311
  allow_island_tutorial: number;
@@ -2342,7 +2335,7 @@ export interface The14 {
2342
2335
  slides: The0_Slide[];
2343
2336
  start_ts: string;
2344
2337
  }
2345
- export interface The15 {
2338
+ export interface The16 {
2346
2339
  active_platforms: ValueClass;
2347
2340
  allow_island_tutorial: number;
2348
2341
  assets_name: string;
@@ -2356,21 +2349,7 @@ export interface The15 {
2356
2349
  popup_type: string;
2357
2350
  priority: null;
2358
2351
  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[];
2352
+ slides: The1_Slide[];
2374
2353
  start_ts: string;
2375
2354
  }
2376
2355
  export interface Canva {
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.2",
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
+ }