@dchighs/dc-config-mapper 0.5.11 → 0.5.12

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.
@@ -51,5 +51,6 @@ export declare class ChestsMapper {
51
51
  default_reward_id: number;
52
52
  pool_size: number;
53
53
  gatcha_ids: number[] | undefined;
54
+ foreground_asset: string | undefined;
54
55
  }>[];
55
56
  }
@@ -132,6 +132,7 @@ export declare const chestSchema: z.ZodPipe<z.ZodObject<{
132
132
  pool_size: z.ZodNumber;
133
133
  gatcha_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
134
134
  instant: z.ZodAny;
135
+ foreground_asset: z.ZodOptional<z.ZodString>;
135
136
  }, z.core.$strict>, z.ZodTransform<{
136
137
  id: number;
137
138
  type: string;
@@ -178,6 +179,7 @@ export declare const chestSchema: z.ZodPipe<z.ZodObject<{
178
179
  default_reward_id: number;
179
180
  pool_size: number;
180
181
  gatcha_ids: number[] | undefined;
182
+ foreground_asset: string | undefined;
181
183
  }, {
182
184
  id: number;
183
185
  type: string;
@@ -225,4 +227,5 @@ export declare const chestSchema: z.ZodPipe<z.ZodObject<{
225
227
  instant: any;
226
228
  description_key?: string | undefined;
227
229
  gatcha_ids?: number[] | undefined;
230
+ foreground_asset?: string | undefined;
228
231
  }>>;
@@ -16,6 +16,7 @@ exports.chestSchema = zod_1.z.object({
16
16
  pool_size: zod_1.z.number(),
17
17
  gatcha_ids: zod_1.z.array(zod_1.z.number()).optional(),
18
18
  instant: zod_1.z.any(),
19
+ foreground_asset: zod_1.z.string().optional(),
19
20
  }).strict().transform((data) => {
20
21
  return {
21
22
  id: data.id,
@@ -29,5 +30,6 @@ exports.chestSchema = zod_1.z.object({
29
30
  default_reward_id: data.default_reward,
30
31
  pool_size: data.pool_size,
31
32
  gatcha_ids: data.gatcha_ids,
33
+ foreground_asset: data.foreground_asset,
32
34
  };
33
35
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dchighs/dc-config-mapper",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "A opined library to restructure and populate configuration for Dragon City.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -25,6 +25,9 @@
25
25
  "license": "MIT",
26
26
  "type": "commonjs",
27
27
  "devDependencies": {
28
+ "@dchighs/dc-config": "file:../dc-config",
29
+ "@dchighs/dc-core": "file:../dc-core",
30
+ "@dchighs/dc-localization": "file:../dc-localization",
28
31
  "@marcuth/env": "^0.0.1",
29
32
  "@types/lodash": "^4.17.24",
30
33
  "@types/node": "^25.3.3",
@@ -40,8 +43,8 @@
40
43
  "zod": "^4.3.6"
41
44
  },
42
45
  "peerDependencies": {
43
- "@dchighs/dc-config": "file:../dc-config",
44
- "@dchighs/dc-core": "file:../dc-core",
45
- "@dchighs/dc-localization": "file:../dc-localization"
46
+ "@dchighs/dc-config": "*",
47
+ "@dchighs/dc-core": "*",
48
+ "@dchighs/dc-localization": "*"
46
49
  }
47
50
  }