shred-api-client 2.13.2 → 2.13.4

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 CHANGED
@@ -4880,6 +4880,23 @@ declare const ScoreRecapSchema: z.ZodObject<{
4880
4880
  /** The neighbouring months that can be opened, taken from `history`. Absent at either edge. */
4881
4881
  previousPeriod: z.ZodOptional<z.ZodString>;
4882
4882
  nextPeriod: z.ZodOptional<z.ZodString>;
4883
+ /** The whole score scale, lowest first. */
4884
+ bands: z.ZodArray<z.ZodObject<{
4885
+ key: z.ZodString;
4886
+ label: z.ZodString;
4887
+ min: z.ZodNumber;
4888
+ max: z.ZodNumber;
4889
+ }, "strip", z.ZodTypeAny, {
4890
+ label: string;
4891
+ min: number;
4892
+ max: number;
4893
+ key: string;
4894
+ }, {
4895
+ label: string;
4896
+ min: number;
4897
+ max: number;
4898
+ key: string;
4899
+ }>, "many">;
4883
4900
  }, "strip", z.ZodTypeAny, {
4884
4901
  history: {
4885
4902
  value: number;
@@ -4927,6 +4944,12 @@ declare const ScoreRecapSchema: z.ZodObject<{
4927
4944
  pointsToNextBand?: number | undefined;
4928
4945
  trend?: number | undefined;
4929
4946
  };
4947
+ bands: {
4948
+ label: string;
4949
+ min: number;
4950
+ max: number;
4951
+ key: string;
4952
+ }[];
4930
4953
  previousPeriod?: string | undefined;
4931
4954
  nextPeriod?: string | undefined;
4932
4955
  }, {
@@ -4976,6 +4999,12 @@ declare const ScoreRecapSchema: z.ZodObject<{
4976
4999
  pointsToNextBand?: number | undefined;
4977
5000
  trend?: number | undefined;
4978
5001
  };
5002
+ bands: {
5003
+ label: string;
5004
+ min: number;
5005
+ max: number;
5006
+ key: string;
5007
+ }[];
4979
5008
  previousPeriod?: string | undefined;
4980
5009
  nextPeriod?: string | undefined;
4981
5010
  }>;
@@ -5056,21 +5085,62 @@ declare const ScoreGoalSchema: z.ZodObject<{
5056
5085
  average?: number | undefined;
5057
5086
  recommended?: string | undefined;
5058
5087
  }>;
5088
+ /** Same shape as the recap's: `weight` is the share the metric carries this month. */
5059
5089
  declare const ScoreProgressMetricSchema: z.ZodObject<{
5090
+ /**
5091
+ * Deliberately not the enum: a metric added API-side must not break a client that
5092
+ * predates it. Render the array generically and switch on ScoreMetricKey only where
5093
+ * a known metric needs special treatment.
5094
+ */
5060
5095
  key: z.ZodString;
5096
+ /** The share this metric actually carried, after unavailable ones were left out. */
5097
+ weight: z.ZodNumber;
5061
5098
  value: z.ZodNumber;
5062
5099
  target: z.ZodNumber;
5100
+ ratio: z.ZodNumber;
5063
5101
  available: z.ZodBoolean;
5102
+ rating: z.ZodOptional<z.ZodObject<{
5103
+ key: z.ZodString;
5104
+ label: z.ZodString;
5105
+ min: z.ZodNumber;
5106
+ max: z.ZodNumber;
5107
+ }, "strip", z.ZodTypeAny, {
5108
+ label: string;
5109
+ min: number;
5110
+ max: number;
5111
+ key: string;
5112
+ }, {
5113
+ label: string;
5114
+ min: number;
5115
+ max: number;
5116
+ key: string;
5117
+ }>>;
5064
5118
  }, "strip", z.ZodTypeAny, {
5065
5119
  value: number;
5066
5120
  key: string;
5067
5121
  target: number;
5122
+ weight: number;
5123
+ ratio: number;
5068
5124
  available: boolean;
5125
+ rating?: {
5126
+ label: string;
5127
+ min: number;
5128
+ max: number;
5129
+ key: string;
5130
+ } | undefined;
5069
5131
  }, {
5070
5132
  value: number;
5071
5133
  key: string;
5072
5134
  target: number;
5135
+ weight: number;
5136
+ ratio: number;
5073
5137
  available: boolean;
5138
+ rating?: {
5139
+ label: string;
5140
+ min: number;
5141
+ max: number;
5142
+ key: string;
5143
+ } | undefined;
5074
5144
  }>;
5075
5145
  declare const ScoreProjectionSchema: z.ZodObject<{
5076
5146
  value: z.ZodNumber;
@@ -5188,20 +5258,60 @@ declare const ScoreProgressSchema: z.ZodObject<{
5188
5258
  } | undefined;
5189
5259
  }>>;
5190
5260
  metrics: z.ZodArray<z.ZodObject<{
5261
+ /**
5262
+ * Deliberately not the enum: a metric added API-side must not break a client that
5263
+ * predates it. Render the array generically and switch on ScoreMetricKey only where
5264
+ * a known metric needs special treatment.
5265
+ */
5191
5266
  key: z.ZodString;
5267
+ /** The share this metric actually carried, after unavailable ones were left out. */
5268
+ weight: z.ZodNumber;
5192
5269
  value: z.ZodNumber;
5193
5270
  target: z.ZodNumber;
5271
+ ratio: z.ZodNumber;
5194
5272
  available: z.ZodBoolean;
5273
+ rating: z.ZodOptional<z.ZodObject<{
5274
+ key: z.ZodString;
5275
+ label: z.ZodString;
5276
+ min: z.ZodNumber;
5277
+ max: z.ZodNumber;
5278
+ }, "strip", z.ZodTypeAny, {
5279
+ label: string;
5280
+ min: number;
5281
+ max: number;
5282
+ key: string;
5283
+ }, {
5284
+ label: string;
5285
+ min: number;
5286
+ max: number;
5287
+ key: string;
5288
+ }>>;
5195
5289
  }, "strip", z.ZodTypeAny, {
5196
5290
  value: number;
5197
5291
  key: string;
5198
5292
  target: number;
5293
+ weight: number;
5294
+ ratio: number;
5199
5295
  available: boolean;
5296
+ rating?: {
5297
+ label: string;
5298
+ min: number;
5299
+ max: number;
5300
+ key: string;
5301
+ } | undefined;
5200
5302
  }, {
5201
5303
  value: number;
5202
5304
  key: string;
5203
5305
  target: number;
5306
+ weight: number;
5307
+ ratio: number;
5204
5308
  available: boolean;
5309
+ rating?: {
5310
+ label: string;
5311
+ min: number;
5312
+ max: number;
5313
+ key: string;
5314
+ } | undefined;
5205
5315
  }>, "many">;
5206
5316
  history: z.ZodArray<z.ZodObject<{
5207
5317
  period: z.ZodString;
@@ -5265,7 +5375,15 @@ declare const ScoreProgressSchema: z.ZodObject<{
5265
5375
  value: number;
5266
5376
  key: string;
5267
5377
  target: number;
5378
+ weight: number;
5379
+ ratio: number;
5268
5380
  available: boolean;
5381
+ rating?: {
5382
+ label: string;
5383
+ min: number;
5384
+ max: number;
5385
+ key: string;
5386
+ } | undefined;
5269
5387
  }[];
5270
5388
  day: number;
5271
5389
  daysInMonth: number;
@@ -5312,7 +5430,15 @@ declare const ScoreProgressSchema: z.ZodObject<{
5312
5430
  value: number;
5313
5431
  key: string;
5314
5432
  target: number;
5433
+ weight: number;
5434
+ ratio: number;
5315
5435
  available: boolean;
5436
+ rating?: {
5437
+ label: string;
5438
+ min: number;
5439
+ max: number;
5440
+ key: string;
5441
+ } | undefined;
5316
5442
  }[];
5317
5443
  day: number;
5318
5444
  daysInMonth: number;
package/dist/index.js CHANGED
@@ -6356,7 +6356,9 @@ var ScoreRecapSchema = external_exports.object({
6356
6356
  history: external_exports.array(ScoreHistoryEntrySchema),
6357
6357
  /** The neighbouring months that can be opened, taken from `history`. Absent at either edge. */
6358
6358
  previousPeriod: external_exports.string().optional(),
6359
- nextPeriod: external_exports.string().optional()
6359
+ nextPeriod: external_exports.string().optional(),
6360
+ /** The whole score scale, lowest first. */
6361
+ bands: external_exports.array(ScoreBandSchema)
6360
6362
  });
6361
6363
  var ScoreGoalOptionSchema = external_exports.object({
6362
6364
  key: external_exports.string(),
@@ -6376,12 +6378,7 @@ var ScoreGoalSchema = external_exports.object({
6376
6378
  /** The `key` of the option offered as recommended. */
6377
6379
  recommended: external_exports.string().optional()
6378
6380
  });
6379
- var ScoreProgressMetricSchema = external_exports.object({
6380
- key: external_exports.string(),
6381
- value: external_exports.number(),
6382
- target: external_exports.number(),
6383
- available: external_exports.boolean()
6384
- });
6381
+ var ScoreProgressMetricSchema = ScoreMetricSchema;
6385
6382
  var ScoreProjectionSchema = external_exports.object({
6386
6383
  value: external_exports.number(),
6387
6384
  band: ScoreBandSchema.optional()