shred-api-client 2.13.1 → 2.13.3
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/dist/index.d.ts +126 -0
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5056,21 +5056,62 @@ declare const ScoreGoalSchema: z.ZodObject<{
|
|
|
5056
5056
|
average?: number | undefined;
|
|
5057
5057
|
recommended?: string | undefined;
|
|
5058
5058
|
}>;
|
|
5059
|
+
/** Same shape as the recap's: `weight` is the share the metric carries this month. */
|
|
5059
5060
|
declare const ScoreProgressMetricSchema: z.ZodObject<{
|
|
5061
|
+
/**
|
|
5062
|
+
* Deliberately not the enum: a metric added API-side must not break a client that
|
|
5063
|
+
* predates it. Render the array generically and switch on ScoreMetricKey only where
|
|
5064
|
+
* a known metric needs special treatment.
|
|
5065
|
+
*/
|
|
5060
5066
|
key: z.ZodString;
|
|
5067
|
+
/** The share this metric actually carried, after unavailable ones were left out. */
|
|
5068
|
+
weight: z.ZodNumber;
|
|
5061
5069
|
value: z.ZodNumber;
|
|
5062
5070
|
target: z.ZodNumber;
|
|
5071
|
+
ratio: z.ZodNumber;
|
|
5063
5072
|
available: z.ZodBoolean;
|
|
5073
|
+
rating: z.ZodOptional<z.ZodObject<{
|
|
5074
|
+
key: z.ZodString;
|
|
5075
|
+
label: z.ZodString;
|
|
5076
|
+
min: z.ZodNumber;
|
|
5077
|
+
max: z.ZodNumber;
|
|
5078
|
+
}, "strip", z.ZodTypeAny, {
|
|
5079
|
+
label: string;
|
|
5080
|
+
min: number;
|
|
5081
|
+
max: number;
|
|
5082
|
+
key: string;
|
|
5083
|
+
}, {
|
|
5084
|
+
label: string;
|
|
5085
|
+
min: number;
|
|
5086
|
+
max: number;
|
|
5087
|
+
key: string;
|
|
5088
|
+
}>>;
|
|
5064
5089
|
}, "strip", z.ZodTypeAny, {
|
|
5065
5090
|
value: number;
|
|
5066
5091
|
key: string;
|
|
5067
5092
|
target: number;
|
|
5093
|
+
weight: number;
|
|
5094
|
+
ratio: number;
|
|
5068
5095
|
available: boolean;
|
|
5096
|
+
rating?: {
|
|
5097
|
+
label: string;
|
|
5098
|
+
min: number;
|
|
5099
|
+
max: number;
|
|
5100
|
+
key: string;
|
|
5101
|
+
} | undefined;
|
|
5069
5102
|
}, {
|
|
5070
5103
|
value: number;
|
|
5071
5104
|
key: string;
|
|
5072
5105
|
target: number;
|
|
5106
|
+
weight: number;
|
|
5107
|
+
ratio: number;
|
|
5073
5108
|
available: boolean;
|
|
5109
|
+
rating?: {
|
|
5110
|
+
label: string;
|
|
5111
|
+
min: number;
|
|
5112
|
+
max: number;
|
|
5113
|
+
key: string;
|
|
5114
|
+
} | undefined;
|
|
5074
5115
|
}>;
|
|
5075
5116
|
declare const ScoreProjectionSchema: z.ZodObject<{
|
|
5076
5117
|
value: z.ZodNumber;
|
|
@@ -5134,6 +5175,23 @@ declare const ScoreProgressSchema: z.ZodObject<{
|
|
|
5134
5175
|
max: number;
|
|
5135
5176
|
key: string;
|
|
5136
5177
|
}>>;
|
|
5178
|
+
/** The band above `band`. Absent at the top band and without data. */
|
|
5179
|
+
nextBand: z.ZodOptional<z.ZodObject<{
|
|
5180
|
+
key: z.ZodString;
|
|
5181
|
+
label: z.ZodString;
|
|
5182
|
+
min: z.ZodNumber;
|
|
5183
|
+
max: z.ZodNumber;
|
|
5184
|
+
}, "strip", z.ZodTypeAny, {
|
|
5185
|
+
label: string;
|
|
5186
|
+
min: number;
|
|
5187
|
+
max: number;
|
|
5188
|
+
key: string;
|
|
5189
|
+
}, {
|
|
5190
|
+
label: string;
|
|
5191
|
+
min: number;
|
|
5192
|
+
max: number;
|
|
5193
|
+
key: string;
|
|
5194
|
+
}>>;
|
|
5137
5195
|
/** Where the month closes at the pace so far. Absent early in the month, in the first month, or with nothing to measure. */
|
|
5138
5196
|
projection: z.ZodOptional<z.ZodObject<{
|
|
5139
5197
|
value: z.ZodNumber;
|
|
@@ -5171,20 +5229,60 @@ declare const ScoreProgressSchema: z.ZodObject<{
|
|
|
5171
5229
|
} | undefined;
|
|
5172
5230
|
}>>;
|
|
5173
5231
|
metrics: z.ZodArray<z.ZodObject<{
|
|
5232
|
+
/**
|
|
5233
|
+
* Deliberately not the enum: a metric added API-side must not break a client that
|
|
5234
|
+
* predates it. Render the array generically and switch on ScoreMetricKey only where
|
|
5235
|
+
* a known metric needs special treatment.
|
|
5236
|
+
*/
|
|
5174
5237
|
key: z.ZodString;
|
|
5238
|
+
/** The share this metric actually carried, after unavailable ones were left out. */
|
|
5239
|
+
weight: z.ZodNumber;
|
|
5175
5240
|
value: z.ZodNumber;
|
|
5176
5241
|
target: z.ZodNumber;
|
|
5242
|
+
ratio: z.ZodNumber;
|
|
5177
5243
|
available: z.ZodBoolean;
|
|
5244
|
+
rating: z.ZodOptional<z.ZodObject<{
|
|
5245
|
+
key: z.ZodString;
|
|
5246
|
+
label: z.ZodString;
|
|
5247
|
+
min: z.ZodNumber;
|
|
5248
|
+
max: z.ZodNumber;
|
|
5249
|
+
}, "strip", z.ZodTypeAny, {
|
|
5250
|
+
label: string;
|
|
5251
|
+
min: number;
|
|
5252
|
+
max: number;
|
|
5253
|
+
key: string;
|
|
5254
|
+
}, {
|
|
5255
|
+
label: string;
|
|
5256
|
+
min: number;
|
|
5257
|
+
max: number;
|
|
5258
|
+
key: string;
|
|
5259
|
+
}>>;
|
|
5178
5260
|
}, "strip", z.ZodTypeAny, {
|
|
5179
5261
|
value: number;
|
|
5180
5262
|
key: string;
|
|
5181
5263
|
target: number;
|
|
5264
|
+
weight: number;
|
|
5265
|
+
ratio: number;
|
|
5182
5266
|
available: boolean;
|
|
5267
|
+
rating?: {
|
|
5268
|
+
label: string;
|
|
5269
|
+
min: number;
|
|
5270
|
+
max: number;
|
|
5271
|
+
key: string;
|
|
5272
|
+
} | undefined;
|
|
5183
5273
|
}, {
|
|
5184
5274
|
value: number;
|
|
5185
5275
|
key: string;
|
|
5186
5276
|
target: number;
|
|
5277
|
+
weight: number;
|
|
5278
|
+
ratio: number;
|
|
5187
5279
|
available: boolean;
|
|
5280
|
+
rating?: {
|
|
5281
|
+
label: string;
|
|
5282
|
+
min: number;
|
|
5283
|
+
max: number;
|
|
5284
|
+
key: string;
|
|
5285
|
+
} | undefined;
|
|
5188
5286
|
}>, "many">;
|
|
5189
5287
|
history: z.ZodArray<z.ZodObject<{
|
|
5190
5288
|
period: z.ZodString;
|
|
@@ -5248,7 +5346,15 @@ declare const ScoreProgressSchema: z.ZodObject<{
|
|
|
5248
5346
|
value: number;
|
|
5249
5347
|
key: string;
|
|
5250
5348
|
target: number;
|
|
5349
|
+
weight: number;
|
|
5350
|
+
ratio: number;
|
|
5251
5351
|
available: boolean;
|
|
5352
|
+
rating?: {
|
|
5353
|
+
label: string;
|
|
5354
|
+
min: number;
|
|
5355
|
+
max: number;
|
|
5356
|
+
key: string;
|
|
5357
|
+
} | undefined;
|
|
5252
5358
|
}[];
|
|
5253
5359
|
day: number;
|
|
5254
5360
|
daysInMonth: number;
|
|
@@ -5259,6 +5365,12 @@ declare const ScoreProgressSchema: z.ZodObject<{
|
|
|
5259
5365
|
max: number;
|
|
5260
5366
|
key: string;
|
|
5261
5367
|
} | undefined;
|
|
5368
|
+
nextBand?: {
|
|
5369
|
+
label: string;
|
|
5370
|
+
min: number;
|
|
5371
|
+
max: number;
|
|
5372
|
+
key: string;
|
|
5373
|
+
} | undefined;
|
|
5262
5374
|
projection?: {
|
|
5263
5375
|
value: number;
|
|
5264
5376
|
band?: {
|
|
@@ -5289,7 +5401,15 @@ declare const ScoreProgressSchema: z.ZodObject<{
|
|
|
5289
5401
|
value: number;
|
|
5290
5402
|
key: string;
|
|
5291
5403
|
target: number;
|
|
5404
|
+
weight: number;
|
|
5405
|
+
ratio: number;
|
|
5292
5406
|
available: boolean;
|
|
5407
|
+
rating?: {
|
|
5408
|
+
label: string;
|
|
5409
|
+
min: number;
|
|
5410
|
+
max: number;
|
|
5411
|
+
key: string;
|
|
5412
|
+
} | undefined;
|
|
5293
5413
|
}[];
|
|
5294
5414
|
day: number;
|
|
5295
5415
|
daysInMonth: number;
|
|
@@ -5300,6 +5420,12 @@ declare const ScoreProgressSchema: z.ZodObject<{
|
|
|
5300
5420
|
max: number;
|
|
5301
5421
|
key: string;
|
|
5302
5422
|
} | undefined;
|
|
5423
|
+
nextBand?: {
|
|
5424
|
+
label: string;
|
|
5425
|
+
min: number;
|
|
5426
|
+
max: number;
|
|
5427
|
+
key: string;
|
|
5428
|
+
} | undefined;
|
|
5303
5429
|
projection?: {
|
|
5304
5430
|
value: number;
|
|
5305
5431
|
band?: {
|
package/dist/index.js
CHANGED
|
@@ -6376,12 +6376,7 @@ var ScoreGoalSchema = external_exports.object({
|
|
|
6376
6376
|
/** The `key` of the option offered as recommended. */
|
|
6377
6377
|
recommended: external_exports.string().optional()
|
|
6378
6378
|
});
|
|
6379
|
-
var ScoreProgressMetricSchema =
|
|
6380
|
-
key: external_exports.string(),
|
|
6381
|
-
value: external_exports.number(),
|
|
6382
|
-
target: external_exports.number(),
|
|
6383
|
-
available: external_exports.boolean()
|
|
6384
|
-
});
|
|
6379
|
+
var ScoreProgressMetricSchema = ScoreMetricSchema;
|
|
6385
6380
|
var ScoreProjectionSchema = external_exports.object({
|
|
6386
6381
|
value: external_exports.number(),
|
|
6387
6382
|
band: ScoreBandSchema.optional()
|
|
@@ -6398,6 +6393,8 @@ var ScoreProgressSchema = external_exports.object({
|
|
|
6398
6393
|
value: external_exports.number(),
|
|
6399
6394
|
hasData: external_exports.boolean(),
|
|
6400
6395
|
band: ScoreBandSchema.optional(),
|
|
6396
|
+
/** The band above `band`. Absent at the top band and without data. */
|
|
6397
|
+
nextBand: ScoreBandSchema.optional(),
|
|
6401
6398
|
/** Where the month closes at the pace so far. Absent early in the month, in the first month, or with nothing to measure. */
|
|
6402
6399
|
projection: ScoreProjectionSchema.optional(),
|
|
6403
6400
|
metrics: external_exports.array(ScoreProgressMetricSchema),
|