@schemastore/codecov 0.0.3 → 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 +2 -2
  3. package/index.d.ts +134 -29
  4. package/package.json +4 -4
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
@@ -5,8 +5,8 @@
5
5
  This package contains type definitions for codecov.
6
6
 
7
7
  ## Details
8
- Files were exported from https://github.com/ffflorian/schemastore-updater/tree/master/schemas/codecov.
8
+ Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/codecov.
9
9
 
10
10
  ## Additional Details
11
- * Last updated: Mon, Feb 03, 2020, 18:14:51 GMT
11
+ * Last updated: Tue, Jan 17, 2023, 20:16:45 GMT
12
12
  * Dependencies: none
package/index.d.ts CHANGED
@@ -6,8 +6,98 @@
6
6
  */
7
7
 
8
8
  export type Layout =
9
- | any
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.
@@ -36,24 +126,24 @@ export interface JSONSchemaForCodecovConfigurationFiles {
36
126
  allow_pseudo_compare?: boolean;
37
127
  archive?: {
38
128
  uploads?: boolean;
39
- [k: string]: any;
129
+ [k: string]: unknown;
40
130
  };
41
131
  notify?: {
42
132
  after_n_builds?: number;
43
133
  countdown?: number;
44
134
  delay?: number;
45
135
  wait_for_ci?: boolean;
46
- [k: string]: any;
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;
54
- [k: string]: any;
144
+ [k: string]: unknown;
55
145
  };
56
- [k: string]: any;
146
+ [k: string]: unknown;
57
147
  };
58
148
  /**
59
149
  * Coverage configuration. See https://docs.codecov.io/docs/coverage-configuration for details.
@@ -79,7 +169,7 @@ export interface JSONSchemaForCodecovConfigurationFiles {
79
169
  password?: string;
80
170
  nickserv_password?: string;
81
171
  notice?: boolean;
82
- [k: string]: any;
172
+ [k: string]: unknown;
83
173
  };
84
174
  /**
85
175
  * Slack. See https://docs.codecov.io/docs/notifications#section-slack for details.
@@ -93,8 +183,8 @@ export interface JSONSchemaForCodecovConfigurationFiles {
93
183
  base?: "parent" | "pr" | "auto";
94
184
  only_pulls?: boolean;
95
185
  paths?: string[];
96
- attachments?: any;
97
- [k: string]: any;
186
+ attachments?: unknown;
187
+ [k: string]: unknown;
98
188
  };
99
189
  /**
100
190
  * Gitter. See https://docs.codecov.io/docs/notifications#section-gitter for details.
@@ -108,7 +198,7 @@ export interface JSONSchemaForCodecovConfigurationFiles {
108
198
  base?: "parent" | "pr" | "auto";
109
199
  only_pulls?: boolean;
110
200
  paths?: string[];
111
- [k: string]: any;
201
+ [k: string]: unknown;
112
202
  };
113
203
  /**
114
204
  * Hipchat. See https://docs.codecov.io/docs/notifications#section-hipchat for details.
@@ -124,7 +214,7 @@ export interface JSONSchemaForCodecovConfigurationFiles {
124
214
  paths?: string[];
125
215
  card?: boolean;
126
216
  notify?: boolean;
127
- [k: string]: any;
217
+ [k: string]: unknown;
128
218
  };
129
219
  webhook?: {
130
220
  url?: string;
@@ -135,7 +225,7 @@ export interface JSONSchemaForCodecovConfigurationFiles {
135
225
  base?: "parent" | "pr" | "auto";
136
226
  only_pulls?: boolean;
137
227
  paths?: string[];
138
- [k: string]: any;
228
+ [k: string]: unknown;
139
229
  };
140
230
  email?: {
141
231
  url?: string;
@@ -148,9 +238,9 @@ export interface JSONSchemaForCodecovConfigurationFiles {
148
238
  paths?: string[];
149
239
  layout?: Layout;
150
240
  "+to"?: string[];
151
- [k: string]: any;
241
+ [k: string]: unknown;
152
242
  };
153
- [k: string]: any;
243
+ [k: string]: unknown;
154
244
  };
155
245
  /**
156
246
  * Commit status. See https://docs.codecov.io/docs/commit-status for details.
@@ -158,14 +248,17 @@ export interface JSONSchemaForCodecovConfigurationFiles {
158
248
  status?:
159
249
  | boolean
160
250
  | {
161
- project?:
162
- | boolean
163
- | {
164
- [k: string]: any;
165
- };
166
- [k: string]: any;
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
- [k: string]: any;
261
+ [k: string]: unknown;
169
262
  };
170
263
  /**
171
264
  * Ignoring paths. see https://docs.codecov.io/docs/ignoring-paths for details.
@@ -196,18 +289,30 @@ export interface JSONSchemaForCodecovConfigurationFiles {
196
289
  behavior?: "default" | "once" | "new" | "spammy";
197
290
  flags?: Flag[];
198
291
  paths?: string[];
199
- [k: string]: any;
292
+ [k: string]: unknown;
200
293
  }
201
- | {
202
- [k: string]: any;
203
- };
204
- [k: string]: any;
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";
309
+ [k: string]: unknown;
205
310
  }
206
311
  export interface Flag {
207
312
  joined?: boolean;
208
313
  required?: boolean;
209
314
  ignore?: string[];
210
315
  paths?: string[];
211
- assume?: string[];
212
- [k: string]: any;
316
+ assume?: boolean | string[];
317
+ [k: string]: unknown;
213
318
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
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",
6
6
  "main": "index.d.ts",
7
7
  "name": "@schemastore/codecov",
8
- "repository": "https://github.com/ffflorian/schemastore-updater/tree/master/schemas/codecov",
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.3",
12
+ "version": "0.0.9",
13
13
  "typeScriptVersion": "2.2"
14
14
  }