@schemastore/codecov 0.0.4 → 0.0.9

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.
Files changed (4) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/index.d.ts +117 -12
  4. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Florian Keller. All rights reserved.
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -8,5 +8,5 @@ This package contains type definitions for codecov.
8
8
  Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/codecov.
9
9
 
10
10
  ## Additional Details
11
- * Last updated: Sat, Jul 04, 2020, 11:00:05 GMT
11
+ * Last updated: Tue, Jan 17, 2023, 20:16:45 GMT
12
12
  * Dependencies: none
package/index.d.ts CHANGED
@@ -8,6 +8,96 @@
8
8
  export type Layout =
9
9
  | unknown
10
10
  | ("header" | "footer" | "diff" | "file" | "files" | "flag" | "flags" | "reach" | "sunburst" | "uncovered");
11
+ export type Default = {
12
+ target?: string | number;
13
+ threshold?: string;
14
+ base?: string;
15
+ flags?: unknown[];
16
+ paths?: unknown[] | string;
17
+ branches?: unknown[];
18
+ if_not_found?: "failure" | "success";
19
+ informational?: boolean;
20
+ only_pulls?: boolean;
21
+ if_ci_failed?: "error" | "success";
22
+ flag_coverage_not_uploaded_behavior?: "include" | "exclude" | "pass";
23
+ [k: string]: unknown;
24
+ } & (
25
+ | {
26
+ target?: string | number;
27
+ threshold?: string;
28
+ base?: string;
29
+ flags?: unknown[];
30
+ paths?: unknown[] | string;
31
+ branches?: unknown[];
32
+ if_not_found?: "failure" | "success";
33
+ informational?: boolean;
34
+ only_pulls?: boolean;
35
+ if_ci_failed?: "error" | "success";
36
+ flag_coverage_not_uploaded_behavior?: "include" | "exclude" | "pass";
37
+ [k: string]: unknown;
38
+ }
39
+ | boolean
40
+ );
41
+ export type Default1 = {
42
+ target?: string | number;
43
+ threshold?: string;
44
+ base?: string;
45
+ flags?: unknown[];
46
+ paths?: unknown[] | string;
47
+ branches?: unknown[];
48
+ if_not_found?: "failure" | "success";
49
+ informational?: boolean;
50
+ only_pulls?: boolean;
51
+ if_ci_failed?: "error" | "success";
52
+ flag_coverage_not_uploaded_behavior?: "include" | "exclude" | "pass";
53
+ [k: string]: unknown;
54
+ } & (
55
+ | {
56
+ target?: string | number;
57
+ threshold?: string;
58
+ base?: string;
59
+ flags?: unknown[];
60
+ paths?: unknown[] | string;
61
+ branches?: unknown[];
62
+ if_not_found?: "failure" | "success";
63
+ informational?: boolean;
64
+ only_pulls?: boolean;
65
+ if_ci_failed?: "error" | "success";
66
+ flag_coverage_not_uploaded_behavior?: "include" | "exclude" | "pass";
67
+ [k: string]: unknown;
68
+ }
69
+ | boolean
70
+ );
71
+ export type Default3 = {
72
+ target?: string | number;
73
+ threshold?: string;
74
+ base?: string;
75
+ flags?: unknown[];
76
+ paths?: unknown[] | string;
77
+ branches?: unknown[];
78
+ if_not_found?: "failure" | "success";
79
+ informational?: boolean;
80
+ only_pulls?: boolean;
81
+ if_ci_failed?: "error" | "success";
82
+ flag_coverage_not_uploaded_behavior?: "include" | "exclude" | "pass";
83
+ [k: string]: unknown;
84
+ } & (
85
+ | {
86
+ target?: string | number;
87
+ threshold?: string;
88
+ base?: string;
89
+ flags?: unknown[];
90
+ paths?: unknown[] | string;
91
+ branches?: unknown[];
92
+ if_not_found?: "failure" | "success";
93
+ informational?: boolean;
94
+ only_pulls?: boolean;
95
+ if_ci_failed?: "error" | "success";
96
+ flag_coverage_not_uploaded_behavior?: "include" | "exclude" | "pass";
97
+ [k: string]: unknown;
98
+ }
99
+ | boolean
100
+ );
11
101
 
12
102
  /**
13
103
  * Schema for codecov.yml files.
@@ -46,8 +136,8 @@ export interface JSONSchemaForCodecovConfigurationFiles {
46
136
  [k: string]: unknown;
47
137
  };
48
138
  ui?: {
49
- hide_density?: string[];
50
- hide_complexity?: string[];
139
+ hide_density?: boolean | string[];
140
+ hide_complexity?: boolean | string[];
51
141
  hide_contextual?: boolean;
52
142
  hide_sunburst?: boolean;
53
143
  hide_search?: boolean;
@@ -158,12 +248,15 @@ export interface JSONSchemaForCodecovConfigurationFiles {
158
248
  status?:
159
249
  | boolean
160
250
  | {
161
- project?:
162
- | boolean
163
- | {
164
- [k: string]: unknown;
165
- };
166
- [k: string]: unknown;
251
+ default_rules?: {
252
+ [k: string]: unknown;
253
+ };
254
+ project?: {
255
+ default?: Default;
256
+ [k: string]: Default1;
257
+ };
258
+ patch?: Default2 | "off";
259
+ changes?: Default3;
167
260
  };
168
261
  [k: string]: unknown;
169
262
  };
@@ -198,9 +291,21 @@ export interface JSONSchemaForCodecovConfigurationFiles {
198
291
  paths?: string[];
199
292
  [k: string]: unknown;
200
293
  }
201
- | {
202
- [k: string]: unknown;
203
- };
294
+ | false;
295
+ [k: string]: unknown;
296
+ }
297
+ export interface Default2 {
298
+ target?: string | number;
299
+ threshold?: string;
300
+ base?: string;
301
+ flags?: unknown[];
302
+ paths?: unknown[] | string;
303
+ branches?: unknown[];
304
+ if_not_found?: "failure" | "success";
305
+ informational?: boolean;
306
+ only_pulls?: boolean;
307
+ if_ci_failed?: "error" | "success";
308
+ flag_coverage_not_uploaded_behavior?: "include" | "exclude" | "pass";
204
309
  [k: string]: unknown;
205
310
  }
206
311
  export interface Flag {
@@ -208,6 +313,6 @@ export interface Flag {
208
313
  required?: boolean;
209
314
  ignore?: string[];
210
315
  paths?: string[];
211
- assume?: string[];
316
+ assume?: boolean | string[];
212
317
  [k: string]: unknown;
213
318
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Florian Keller <github@floriankeller.de>",
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {},
4
4
  "description": "TypeScript definitions for codecov.",
5
5
  "license": "MIT",
@@ -7,8 +7,8 @@
7
7
  "name": "@schemastore/codecov",
8
8
  "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/codecov",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "2b3ad1e138d30addc19062fff8aa6260394dd698fd7a35acf4ae1e1f159c5650",
10
+ "typesPublisherContentHash": "5b4fb50c4c836b2bea2d14a1488829e0f6ae8b659d4d3bf77c75576a2d280e67",
11
11
  "types": "index.d.ts",
12
- "version": "0.0.4",
12
+ "version": "0.0.9",
13
13
  "typeScriptVersion": "2.2"
14
14
  }