shred-api-client 2.12.0 → 2.12.2

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
@@ -4452,49 +4452,6 @@ declare const ScoreMetricSchema: z.ZodObject<{
4452
4452
  key: string;
4453
4453
  } | undefined;
4454
4454
  }>;
4455
- /** The month's score as if it had ended on `day`. The last point equals the month's value. */
4456
- declare const ScoreDaySchema: z.ZodObject<{
4457
- day: z.ZodNumber;
4458
- value: z.ZodNumber;
4459
- }, "strip", z.ZodTypeAny, {
4460
- value: number;
4461
- day: number;
4462
- }, {
4463
- value: number;
4464
- day: number;
4465
- }>;
4466
- /** The month before, for the day-by-day chart. `value` is the score `trend` is measured from. */
4467
- declare const ScoreComparisonSchema: z.ZodObject<{
4468
- period: z.ZodString;
4469
- periodLabel: z.ZodString;
4470
- value: z.ZodNumber;
4471
- daily: z.ZodArray<z.ZodObject<{
4472
- day: z.ZodNumber;
4473
- value: z.ZodNumber;
4474
- }, "strip", z.ZodTypeAny, {
4475
- value: number;
4476
- day: number;
4477
- }, {
4478
- value: number;
4479
- day: number;
4480
- }>, "many">;
4481
- }, "strip", z.ZodTypeAny, {
4482
- daily: {
4483
- value: number;
4484
- day: number;
4485
- }[];
4486
- value: number;
4487
- period: string;
4488
- periodLabel: string;
4489
- }, {
4490
- daily: {
4491
- value: number;
4492
- day: number;
4493
- }[];
4494
- value: number;
4495
- period: string;
4496
- periodLabel: string;
4497
- }>;
4498
4455
  declare const ScoreSchema: z.ZodObject<{
4499
4456
  value: z.ZodNumber;
4500
4457
  hasData: z.ZodBoolean;
@@ -4591,54 +4548,11 @@ declare const ScoreSchema: z.ZodObject<{
4591
4548
  key: string;
4592
4549
  } | undefined;
4593
4550
  }>, "many">;
4594
- /** Served on the recap's `current` only. */
4595
- daily: z.ZodOptional<z.ZodArray<z.ZodObject<{
4596
- day: z.ZodNumber;
4597
- value: z.ZodNumber;
4598
- }, "strip", z.ZodTypeAny, {
4599
- value: number;
4600
- day: number;
4601
- }, {
4602
- value: number;
4603
- day: number;
4604
- }>, "many">>;
4605
- /** Absent when the month before predates the customer's first project. */
4606
- comparison: z.ZodOptional<z.ZodObject<{
4607
- period: z.ZodString;
4608
- periodLabel: z.ZodString;
4609
- value: z.ZodNumber;
4610
- daily: z.ZodArray<z.ZodObject<{
4611
- day: z.ZodNumber;
4612
- value: z.ZodNumber;
4613
- }, "strip", z.ZodTypeAny, {
4614
- value: number;
4615
- day: number;
4616
- }, {
4617
- value: number;
4618
- day: number;
4619
- }>, "many">;
4620
- }, "strip", z.ZodTypeAny, {
4621
- daily: {
4622
- value: number;
4623
- day: number;
4624
- }[];
4625
- value: number;
4626
- period: string;
4627
- periodLabel: string;
4628
- }, {
4629
- daily: {
4630
- value: number;
4631
- day: number;
4632
- }[];
4633
- value: number;
4634
- period: string;
4635
- periodLabel: string;
4636
- }>>;
4637
4551
  }, "strip", z.ZodTypeAny, {
4638
4552
  value: number;
4553
+ hasData: boolean;
4639
4554
  period: string;
4640
4555
  periodLabel: string;
4641
- hasData: boolean;
4642
4556
  computedAt: number;
4643
4557
  metrics: {
4644
4558
  value: number;
@@ -4654,10 +4568,6 @@ declare const ScoreSchema: z.ZodObject<{
4654
4568
  key: string;
4655
4569
  } | undefined;
4656
4570
  }[];
4657
- daily?: {
4658
- value: number;
4659
- day: number;
4660
- }[] | undefined;
4661
4571
  band?: {
4662
4572
  label: string;
4663
4573
  min: number;
@@ -4672,20 +4582,11 @@ declare const ScoreSchema: z.ZodObject<{
4672
4582
  } | undefined;
4673
4583
  pointsToNextBand?: number | undefined;
4674
4584
  trend?: number | undefined;
4675
- comparison?: {
4676
- daily: {
4677
- value: number;
4678
- day: number;
4679
- }[];
4680
- value: number;
4681
- period: string;
4682
- periodLabel: string;
4683
- } | undefined;
4684
4585
  }, {
4685
4586
  value: number;
4587
+ hasData: boolean;
4686
4588
  period: string;
4687
4589
  periodLabel: string;
4688
- hasData: boolean;
4689
4590
  computedAt: number;
4690
4591
  metrics: {
4691
4592
  value: number;
@@ -4701,10 +4602,6 @@ declare const ScoreSchema: z.ZodObject<{
4701
4602
  key: string;
4702
4603
  } | undefined;
4703
4604
  }[];
4704
- daily?: {
4705
- value: number;
4706
- day: number;
4707
- }[] | undefined;
4708
4605
  band?: {
4709
4606
  label: string;
4710
4607
  min: number;
@@ -4719,15 +4616,6 @@ declare const ScoreSchema: z.ZodObject<{
4719
4616
  } | undefined;
4720
4617
  pointsToNextBand?: number | undefined;
4721
4618
  trend?: number | undefined;
4722
- comparison?: {
4723
- daily: {
4724
- value: number;
4725
- day: number;
4726
- }[];
4727
- value: number;
4728
- period: string;
4729
- periodLabel: string;
4730
- } | undefined;
4731
4619
  }>;
4732
4620
  declare const ScoreHistoryEntrySchema: z.ZodObject<{
4733
4621
  period: z.ZodString;
@@ -4867,54 +4755,11 @@ declare const ScoreRecapSchema: z.ZodObject<{
4867
4755
  key: string;
4868
4756
  } | undefined;
4869
4757
  }>, "many">;
4870
- /** Served on the recap's `current` only. */
4871
- daily: z.ZodOptional<z.ZodArray<z.ZodObject<{
4872
- day: z.ZodNumber;
4873
- value: z.ZodNumber;
4874
- }, "strip", z.ZodTypeAny, {
4875
- value: number;
4876
- day: number;
4877
- }, {
4878
- value: number;
4879
- day: number;
4880
- }>, "many">>;
4881
- /** Absent when the month before predates the customer's first project. */
4882
- comparison: z.ZodOptional<z.ZodObject<{
4883
- period: z.ZodString;
4884
- periodLabel: z.ZodString;
4885
- value: z.ZodNumber;
4886
- daily: z.ZodArray<z.ZodObject<{
4887
- day: z.ZodNumber;
4888
- value: z.ZodNumber;
4889
- }, "strip", z.ZodTypeAny, {
4890
- value: number;
4891
- day: number;
4892
- }, {
4893
- value: number;
4894
- day: number;
4895
- }>, "many">;
4896
- }, "strip", z.ZodTypeAny, {
4897
- daily: {
4898
- value: number;
4899
- day: number;
4900
- }[];
4901
- value: number;
4902
- period: string;
4903
- periodLabel: string;
4904
- }, {
4905
- daily: {
4906
- value: number;
4907
- day: number;
4908
- }[];
4909
- value: number;
4910
- period: string;
4911
- periodLabel: string;
4912
- }>>;
4913
4758
  }, "strip", z.ZodTypeAny, {
4914
4759
  value: number;
4760
+ hasData: boolean;
4915
4761
  period: string;
4916
4762
  periodLabel: string;
4917
- hasData: boolean;
4918
4763
  computedAt: number;
4919
4764
  metrics: {
4920
4765
  value: number;
@@ -4930,10 +4775,6 @@ declare const ScoreRecapSchema: z.ZodObject<{
4930
4775
  key: string;
4931
4776
  } | undefined;
4932
4777
  }[];
4933
- daily?: {
4934
- value: number;
4935
- day: number;
4936
- }[] | undefined;
4937
4778
  band?: {
4938
4779
  label: string;
4939
4780
  min: number;
@@ -4948,20 +4789,11 @@ declare const ScoreRecapSchema: z.ZodObject<{
4948
4789
  } | undefined;
4949
4790
  pointsToNextBand?: number | undefined;
4950
4791
  trend?: number | undefined;
4951
- comparison?: {
4952
- daily: {
4953
- value: number;
4954
- day: number;
4955
- }[];
4956
- value: number;
4957
- period: string;
4958
- periodLabel: string;
4959
- } | undefined;
4960
4792
  }, {
4961
4793
  value: number;
4794
+ hasData: boolean;
4962
4795
  period: string;
4963
4796
  periodLabel: string;
4964
- hasData: boolean;
4965
4797
  computedAt: number;
4966
4798
  metrics: {
4967
4799
  value: number;
@@ -4977,10 +4809,6 @@ declare const ScoreRecapSchema: z.ZodObject<{
4977
4809
  key: string;
4978
4810
  } | undefined;
4979
4811
  }[];
4980
- daily?: {
4981
- value: number;
4982
- day: number;
4983
- }[] | undefined;
4984
4812
  band?: {
4985
4813
  label: string;
4986
4814
  min: number;
@@ -4995,15 +4823,6 @@ declare const ScoreRecapSchema: z.ZodObject<{
4995
4823
  } | undefined;
4996
4824
  pointsToNextBand?: number | undefined;
4997
4825
  trend?: number | undefined;
4998
- comparison?: {
4999
- daily: {
5000
- value: number;
5001
- day: number;
5002
- }[];
5003
- value: number;
5004
- period: string;
5005
- periodLabel: string;
5006
- } | undefined;
5007
4826
  }>;
5008
4827
  /** Oldest first. Months before the customer's first project are absent, not zero. */
5009
4828
  history: z.ZodArray<z.ZodObject<{
@@ -5064,9 +4883,9 @@ declare const ScoreRecapSchema: z.ZodObject<{
5064
4883
  }[];
5065
4884
  current: {
5066
4885
  value: number;
4886
+ hasData: boolean;
5067
4887
  period: string;
5068
4888
  periodLabel: string;
5069
- hasData: boolean;
5070
4889
  computedAt: number;
5071
4890
  metrics: {
5072
4891
  value: number;
@@ -5082,10 +4901,6 @@ declare const ScoreRecapSchema: z.ZodObject<{
5082
4901
  key: string;
5083
4902
  } | undefined;
5084
4903
  }[];
5085
- daily?: {
5086
- value: number;
5087
- day: number;
5088
- }[] | undefined;
5089
4904
  band?: {
5090
4905
  label: string;
5091
4906
  min: number;
@@ -5100,15 +4915,6 @@ declare const ScoreRecapSchema: z.ZodObject<{
5100
4915
  } | undefined;
5101
4916
  pointsToNextBand?: number | undefined;
5102
4917
  trend?: number | undefined;
5103
- comparison?: {
5104
- daily: {
5105
- value: number;
5106
- day: number;
5107
- }[];
5108
- value: number;
5109
- period: string;
5110
- periodLabel: string;
5111
- } | undefined;
5112
4918
  };
5113
4919
  previousPeriod?: string | undefined;
5114
4920
  nextPeriod?: string | undefined;
@@ -5126,9 +4932,9 @@ declare const ScoreRecapSchema: z.ZodObject<{
5126
4932
  }[];
5127
4933
  current: {
5128
4934
  value: number;
4935
+ hasData: boolean;
5129
4936
  period: string;
5130
4937
  periodLabel: string;
5131
- hasData: boolean;
5132
4938
  computedAt: number;
5133
4939
  metrics: {
5134
4940
  value: number;
@@ -5144,10 +4950,6 @@ declare const ScoreRecapSchema: z.ZodObject<{
5144
4950
  key: string;
5145
4951
  } | undefined;
5146
4952
  }[];
5147
- daily?: {
5148
- value: number;
5149
- day: number;
5150
- }[] | undefined;
5151
4953
  band?: {
5152
4954
  label: string;
5153
4955
  min: number;
@@ -5162,15 +4964,6 @@ declare const ScoreRecapSchema: z.ZodObject<{
5162
4964
  } | undefined;
5163
4965
  pointsToNextBand?: number | undefined;
5164
4966
  trend?: number | undefined;
5165
- comparison?: {
5166
- daily: {
5167
- value: number;
5168
- day: number;
5169
- }[];
5170
- value: number;
5171
- period: string;
5172
- periodLabel: string;
5173
- } | undefined;
5174
4967
  };
5175
4968
  previousPeriod?: string | undefined;
5176
4969
  nextPeriod?: string | undefined;
@@ -5205,6 +4998,7 @@ declare const ScoreGoalSchema: z.ZodObject<{
5205
4998
  /** Projects a month over the last `averageMonths` closed months; absent when there are none. */
5206
4999
  average: z.ZodOptional<z.ZodNumber>;
5207
5000
  averageMonths: z.ZodNumber;
5001
+ min: z.ZodNumber;
5208
5002
  options: z.ZodArray<z.ZodObject<{
5209
5003
  key: z.ZodString;
5210
5004
  label: z.ZodString;
@@ -5226,6 +5020,7 @@ declare const ScoreGoalSchema: z.ZodObject<{
5226
5020
  key: string;
5227
5021
  target: number;
5228
5022
  }[];
5023
+ min: number;
5229
5024
  current: number;
5230
5025
  averageMonths: number;
5231
5026
  next?: {
@@ -5240,6 +5035,7 @@ declare const ScoreGoalSchema: z.ZodObject<{
5240
5035
  key: string;
5241
5036
  target: number;
5242
5037
  }[];
5038
+ min: number;
5243
5039
  current: number;
5244
5040
  averageMonths: number;
5245
5041
  next?: {
@@ -5249,14 +5045,168 @@ declare const ScoreGoalSchema: z.ZodObject<{
5249
5045
  average?: number | undefined;
5250
5046
  recommended?: string | undefined;
5251
5047
  }>;
5048
+ declare const ScoreProgressMetricSchema: z.ZodObject<{
5049
+ key: z.ZodString;
5050
+ value: z.ZodNumber;
5051
+ target: z.ZodNumber;
5052
+ available: z.ZodBoolean;
5053
+ }, "strip", z.ZodTypeAny, {
5054
+ value: number;
5055
+ key: string;
5056
+ target: number;
5057
+ available: boolean;
5058
+ }, {
5059
+ value: number;
5060
+ key: string;
5061
+ target: number;
5062
+ available: boolean;
5063
+ }>;
5064
+ declare const ScoreProgressSchema: z.ZodObject<{
5065
+ period: z.ZodString;
5066
+ periodLabel: z.ZodString;
5067
+ computedAt: z.ZodNumber;
5068
+ value: z.ZodNumber;
5069
+ hasData: z.ZodBoolean;
5070
+ band: z.ZodOptional<z.ZodObject<{
5071
+ key: z.ZodString;
5072
+ label: z.ZodString;
5073
+ min: z.ZodNumber;
5074
+ max: z.ZodNumber;
5075
+ }, "strip", z.ZodTypeAny, {
5076
+ label: string;
5077
+ min: number;
5078
+ max: number;
5079
+ key: string;
5080
+ }, {
5081
+ label: string;
5082
+ min: number;
5083
+ max: number;
5084
+ key: string;
5085
+ }>>;
5086
+ metrics: z.ZodArray<z.ZodObject<{
5087
+ key: z.ZodString;
5088
+ value: z.ZodNumber;
5089
+ target: z.ZodNumber;
5090
+ available: z.ZodBoolean;
5091
+ }, "strip", z.ZodTypeAny, {
5092
+ value: number;
5093
+ key: string;
5094
+ target: number;
5095
+ available: boolean;
5096
+ }, {
5097
+ value: number;
5098
+ key: string;
5099
+ target: number;
5100
+ available: boolean;
5101
+ }>, "many">;
5102
+ history: z.ZodArray<z.ZodObject<{
5103
+ period: z.ZodString;
5104
+ label: z.ZodString;
5105
+ value: z.ZodNumber;
5106
+ band: z.ZodOptional<z.ZodObject<{
5107
+ key: z.ZodString;
5108
+ label: z.ZodString;
5109
+ min: z.ZodNumber;
5110
+ max: z.ZodNumber;
5111
+ }, "strip", z.ZodTypeAny, {
5112
+ label: string;
5113
+ min: number;
5114
+ max: number;
5115
+ key: string;
5116
+ }, {
5117
+ label: string;
5118
+ min: number;
5119
+ max: number;
5120
+ key: string;
5121
+ }>>;
5122
+ }, "strip", z.ZodTypeAny, {
5123
+ value: number;
5124
+ label: string;
5125
+ period: string;
5126
+ band?: {
5127
+ label: string;
5128
+ min: number;
5129
+ max: number;
5130
+ key: string;
5131
+ } | undefined;
5132
+ }, {
5133
+ value: number;
5134
+ label: string;
5135
+ period: string;
5136
+ band?: {
5137
+ label: string;
5138
+ min: number;
5139
+ max: number;
5140
+ key: string;
5141
+ } | undefined;
5142
+ }>, "many">;
5143
+ }, "strip", z.ZodTypeAny, {
5144
+ value: number;
5145
+ history: {
5146
+ value: number;
5147
+ label: string;
5148
+ period: string;
5149
+ band?: {
5150
+ label: string;
5151
+ min: number;
5152
+ max: number;
5153
+ key: string;
5154
+ } | undefined;
5155
+ }[];
5156
+ hasData: boolean;
5157
+ period: string;
5158
+ periodLabel: string;
5159
+ computedAt: number;
5160
+ metrics: {
5161
+ value: number;
5162
+ key: string;
5163
+ target: number;
5164
+ available: boolean;
5165
+ }[];
5166
+ band?: {
5167
+ label: string;
5168
+ min: number;
5169
+ max: number;
5170
+ key: string;
5171
+ } | undefined;
5172
+ }, {
5173
+ value: number;
5174
+ history: {
5175
+ value: number;
5176
+ label: string;
5177
+ period: string;
5178
+ band?: {
5179
+ label: string;
5180
+ min: number;
5181
+ max: number;
5182
+ key: string;
5183
+ } | undefined;
5184
+ }[];
5185
+ hasData: boolean;
5186
+ period: string;
5187
+ periodLabel: string;
5188
+ computedAt: number;
5189
+ metrics: {
5190
+ value: number;
5191
+ key: string;
5192
+ target: number;
5193
+ available: boolean;
5194
+ }[];
5195
+ band?: {
5196
+ label: string;
5197
+ min: number;
5198
+ max: number;
5199
+ key: string;
5200
+ } | undefined;
5201
+ }>;
5252
5202
  type ScoreMetricKey = z.infer<typeof ScoreMetricKeySchema>;
5253
5203
  type ScoreBand = z.infer<typeof ScoreBandSchema>;
5254
5204
  type ScoreMetric = z.infer<typeof ScoreMetricSchema>;
5255
5205
  type Score = z.infer<typeof ScoreSchema>;
5256
5206
  type ScoreHistoryEntry = z.infer<typeof ScoreHistoryEntrySchema>;
5257
5207
  type ScoreRecap = z.infer<typeof ScoreRecapSchema>;
5258
- type ScoreDay = z.infer<typeof ScoreDaySchema>;
5259
- type ScoreComparison = z.infer<typeof ScoreComparisonSchema>;
5208
+ type ScoreProgressMetric = z.infer<typeof ScoreProgressMetricSchema>;
5209
+ type ScoreProgress = z.infer<typeof ScoreProgressSchema>;
5260
5210
  type ScoreGoalOption = z.infer<typeof ScoreGoalOptionSchema>;
5261
5211
  type ScoreGoal = z.infer<typeof ScoreGoalSchema>;
5262
5212
 
@@ -5267,11 +5217,12 @@ interface IAPI$1 {
5267
5217
  * and a month still being lived is rejected.
5268
5218
  */
5269
5219
  getRecap: (context: Context, period?: string) => Promise<ScoreRecap>;
5220
+ getProgress: (context: Context) => Promise<ScoreProgress>;
5270
5221
  /** The caller's monthly project goal, the options and their recent average. */
5271
5222
  getGoal: (context: Context) => Promise<ScoreGoal>;
5272
5223
  /**
5273
- * Chooses a goal, which starts next month. `target` must be one of the options;
5274
- * choosing the goal in effect cancels a pending one. Answers with the updated goal.
5224
+ * Chooses a goal, which starts next month. `target` must be a whole number of at least
5225
+ * `min`; choosing the goal in effect cancels a pending one. Answers with the updated goal.
5275
5226
  */
5276
5227
  setGoal: (context: Context, target: number) => Promise<ScoreGoal>;
5277
5228
  }
@@ -5280,6 +5231,10 @@ declare const Endpoints$1: {
5280
5231
  uri: string;
5281
5232
  method: string;
5282
5233
  };
5234
+ GetProgress: {
5235
+ uri: string;
5236
+ method: string;
5237
+ };
5283
5238
  GetGoal: {
5284
5239
  uri: string;
5285
5240
  method: string;
@@ -5293,10 +5248,6 @@ declare const Endpoints$1: {
5293
5248
  type index$3_Score = Score;
5294
5249
  type index$3_ScoreBand = ScoreBand;
5295
5250
  declare const index$3_ScoreBandSchema: typeof ScoreBandSchema;
5296
- type index$3_ScoreComparison = ScoreComparison;
5297
- declare const index$3_ScoreComparisonSchema: typeof ScoreComparisonSchema;
5298
- type index$3_ScoreDay = ScoreDay;
5299
- declare const index$3_ScoreDaySchema: typeof ScoreDaySchema;
5300
5251
  type index$3_ScoreGoal = ScoreGoal;
5301
5252
  type index$3_ScoreGoalOption = ScoreGoalOption;
5302
5253
  declare const index$3_ScoreGoalOptionSchema: typeof ScoreGoalOptionSchema;
@@ -5307,10 +5258,14 @@ type index$3_ScoreMetric = ScoreMetric;
5307
5258
  type index$3_ScoreMetricKey = ScoreMetricKey;
5308
5259
  declare const index$3_ScoreMetricKeySchema: typeof ScoreMetricKeySchema;
5309
5260
  declare const index$3_ScoreMetricSchema: typeof ScoreMetricSchema;
5261
+ type index$3_ScoreProgress = ScoreProgress;
5262
+ type index$3_ScoreProgressMetric = ScoreProgressMetric;
5263
+ declare const index$3_ScoreProgressMetricSchema: typeof ScoreProgressMetricSchema;
5264
+ declare const index$3_ScoreProgressSchema: typeof ScoreProgressSchema;
5310
5265
  declare const index$3_ScoreRecapSchema: typeof ScoreRecapSchema;
5311
5266
  declare const index$3_ScoreSchema: typeof ScoreSchema;
5312
5267
  declare namespace index$3 {
5313
- export { Endpoints$1 as Endpoints, type ScoreRecap as Entity, type IAPI$1 as IAPI, type index$3_Score as Score, type index$3_ScoreBand as ScoreBand, index$3_ScoreBandSchema as ScoreBandSchema, type index$3_ScoreComparison as ScoreComparison, index$3_ScoreComparisonSchema as ScoreComparisonSchema, type index$3_ScoreDay as ScoreDay, index$3_ScoreDaySchema as ScoreDaySchema, type index$3_ScoreGoal as ScoreGoal, type index$3_ScoreGoalOption as ScoreGoalOption, index$3_ScoreGoalOptionSchema as ScoreGoalOptionSchema, index$3_ScoreGoalSchema as ScoreGoalSchema, type index$3_ScoreHistoryEntry as ScoreHistoryEntry, index$3_ScoreHistoryEntrySchema as ScoreHistoryEntrySchema, type index$3_ScoreMetric as ScoreMetric, type index$3_ScoreMetricKey as ScoreMetricKey, index$3_ScoreMetricKeySchema as ScoreMetricKeySchema, index$3_ScoreMetricSchema as ScoreMetricSchema, index$3_ScoreRecapSchema as ScoreRecapSchema, index$3_ScoreSchema as ScoreSchema };
5268
+ export { Endpoints$1 as Endpoints, type ScoreRecap as Entity, type IAPI$1 as IAPI, type index$3_Score as Score, type index$3_ScoreBand as ScoreBand, index$3_ScoreBandSchema as ScoreBandSchema, type index$3_ScoreGoal as ScoreGoal, type index$3_ScoreGoalOption as ScoreGoalOption, index$3_ScoreGoalOptionSchema as ScoreGoalOptionSchema, index$3_ScoreGoalSchema as ScoreGoalSchema, type index$3_ScoreHistoryEntry as ScoreHistoryEntry, index$3_ScoreHistoryEntrySchema as ScoreHistoryEntrySchema, type index$3_ScoreMetric as ScoreMetric, type index$3_ScoreMetricKey as ScoreMetricKey, index$3_ScoreMetricKeySchema as ScoreMetricKeySchema, index$3_ScoreMetricSchema as ScoreMetricSchema, type index$3_ScoreProgress as ScoreProgress, type index$3_ScoreProgressMetric as ScoreProgressMetric, index$3_ScoreProgressMetricSchema as ScoreProgressMetricSchema, index$3_ScoreProgressSchema as ScoreProgressSchema, index$3_ScoreRecapSchema as ScoreRecapSchema, index$3_ScoreSchema as ScoreSchema };
5314
5269
  }
5315
5270
 
5316
5271
  /**
package/dist/index.js CHANGED
@@ -6287,6 +6287,7 @@ var ShredU_api_default = ShredUAPI;
6287
6287
  // src/model/score/Score.api.ts
6288
6288
  var Endpoints10 = {
6289
6289
  GetRecap: { uri: "/score/", method: "GET" },
6290
+ GetProgress: { uri: "/score/progress/", method: "GET" },
6290
6291
  GetGoal: { uri: "/score/goal/", method: "GET" },
6291
6292
  SetGoal: { uri: "/score/goal/", method: "PUT" }
6292
6293
  };
@@ -6318,16 +6319,6 @@ var ScoreMetricSchema = external_exports.object({
6318
6319
  available: external_exports.boolean(),
6319
6320
  rating: ScoreBandSchema.optional()
6320
6321
  });
6321
- var ScoreDaySchema = external_exports.object({
6322
- day: external_exports.number(),
6323
- value: external_exports.number()
6324
- });
6325
- var ScoreComparisonSchema = external_exports.object({
6326
- period: external_exports.string(),
6327
- periodLabel: external_exports.string(),
6328
- value: external_exports.number(),
6329
- daily: external_exports.array(ScoreDaySchema)
6330
- });
6331
6322
  var ScoreSchema = external_exports.object({
6332
6323
  value: external_exports.number(),
6333
6324
  hasData: external_exports.boolean(),
@@ -6338,11 +6329,7 @@ var ScoreSchema = external_exports.object({
6338
6329
  pointsToNextBand: external_exports.number().optional(),
6339
6330
  trend: external_exports.number().optional(),
6340
6331
  computedAt: external_exports.number(),
6341
- metrics: external_exports.array(ScoreMetricSchema),
6342
- /** Served on the recap's `current` only. */
6343
- daily: external_exports.array(ScoreDaySchema).optional(),
6344
- /** Absent when the month before predates the customer's first project. */
6345
- comparison: ScoreComparisonSchema.optional()
6332
+ metrics: external_exports.array(ScoreMetricSchema)
6346
6333
  });
6347
6334
  var ScoreHistoryEntrySchema = external_exports.object({
6348
6335
  period: external_exports.string(),
@@ -6371,10 +6358,27 @@ var ScoreGoalSchema = external_exports.object({
6371
6358
  /** Projects a month over the last `averageMonths` closed months; absent when there are none. */
6372
6359
  average: external_exports.number().optional(),
6373
6360
  averageMonths: external_exports.number(),
6361
+ min: external_exports.number(),
6374
6362
  options: external_exports.array(ScoreGoalOptionSchema),
6375
6363
  /** The `key` of the option offered as recommended. */
6376
6364
  recommended: external_exports.string().optional()
6377
6365
  });
6366
+ var ScoreProgressMetricSchema = external_exports.object({
6367
+ key: external_exports.string(),
6368
+ value: external_exports.number(),
6369
+ target: external_exports.number(),
6370
+ available: external_exports.boolean()
6371
+ });
6372
+ var ScoreProgressSchema = external_exports.object({
6373
+ period: external_exports.string(),
6374
+ periodLabel: external_exports.string(),
6375
+ computedAt: external_exports.number(),
6376
+ value: external_exports.number(),
6377
+ hasData: external_exports.boolean(),
6378
+ band: ScoreBandSchema.optional(),
6379
+ metrics: external_exports.array(ScoreProgressMetricSchema),
6380
+ history: external_exports.array(ScoreHistoryEntrySchema)
6381
+ });
6378
6382
 
6379
6383
  // src/api/Score.api.ts
6380
6384
  var ScoreAPI = class {
@@ -6394,6 +6398,10 @@ var ScoreAPI = class {
6394
6398
  ScoreRecapSchema
6395
6399
  );
6396
6400
  }
6401
+ async getProgress(ctx) {
6402
+ const { uri, method } = Endpoints10.GetProgress;
6403
+ return this.clientHTTP.makeRequest(this.env, uri, method, null, ctx, ScoreProgressSchema);
6404
+ }
6397
6405
  async getGoal(ctx) {
6398
6406
  const { uri, method } = Endpoints10.GetGoal;
6399
6407
  return this.clientHTTP.makeRequest(this.env, uri, method, null, ctx, ScoreGoalSchema);
@@ -7209,13 +7217,13 @@ var score_exports = {};
7209
7217
  __export(score_exports, {
7210
7218
  Endpoints: () => Endpoints10,
7211
7219
  ScoreBandSchema: () => ScoreBandSchema,
7212
- ScoreComparisonSchema: () => ScoreComparisonSchema,
7213
- ScoreDaySchema: () => ScoreDaySchema,
7214
7220
  ScoreGoalOptionSchema: () => ScoreGoalOptionSchema,
7215
7221
  ScoreGoalSchema: () => ScoreGoalSchema,
7216
7222
  ScoreHistoryEntrySchema: () => ScoreHistoryEntrySchema,
7217
7223
  ScoreMetricKeySchema: () => ScoreMetricKeySchema,
7218
7224
  ScoreMetricSchema: () => ScoreMetricSchema,
7225
+ ScoreProgressMetricSchema: () => ScoreProgressMetricSchema,
7226
+ ScoreProgressSchema: () => ScoreProgressSchema,
7219
7227
  ScoreRecapSchema: () => ScoreRecapSchema,
7220
7228
  ScoreSchema: () => ScoreSchema
7221
7229
  });