shred-api-client 2.13.0 → 2.13.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
@@ -5072,10 +5072,50 @@ declare const ScoreProgressMetricSchema: z.ZodObject<{
5072
5072
  target: number;
5073
5073
  available: boolean;
5074
5074
  }>;
5075
+ declare const ScoreProjectionSchema: z.ZodObject<{
5076
+ value: z.ZodNumber;
5077
+ band: z.ZodOptional<z.ZodObject<{
5078
+ key: z.ZodString;
5079
+ label: z.ZodString;
5080
+ min: z.ZodNumber;
5081
+ max: z.ZodNumber;
5082
+ }, "strip", z.ZodTypeAny, {
5083
+ label: string;
5084
+ min: number;
5085
+ max: number;
5086
+ key: string;
5087
+ }, {
5088
+ label: string;
5089
+ min: number;
5090
+ max: number;
5091
+ key: string;
5092
+ }>>;
5093
+ }, "strip", z.ZodTypeAny, {
5094
+ value: number;
5095
+ band?: {
5096
+ label: string;
5097
+ min: number;
5098
+ max: number;
5099
+ key: string;
5100
+ } | undefined;
5101
+ }, {
5102
+ value: number;
5103
+ band?: {
5104
+ label: string;
5105
+ min: number;
5106
+ max: number;
5107
+ key: string;
5108
+ } | undefined;
5109
+ }>;
5075
5110
  declare const ScoreProgressSchema: z.ZodObject<{
5076
5111
  period: z.ZodString;
5077
5112
  periodLabel: z.ZodString;
5078
5113
  computedAt: z.ZodNumber;
5114
+ /** The day of the month in the customer's timezone. */
5115
+ day: z.ZodNumber;
5116
+ daysInMonth: z.ZodNumber;
5117
+ /** No closed month in `history` yet. */
5118
+ isFirstMonth: z.ZodBoolean;
5079
5119
  value: z.ZodNumber;
5080
5120
  hasData: z.ZodBoolean;
5081
5121
  band: z.ZodOptional<z.ZodObject<{
@@ -5094,6 +5134,59 @@ declare const ScoreProgressSchema: z.ZodObject<{
5094
5134
  max: number;
5095
5135
  key: string;
5096
5136
  }>>;
5137
+ /** The band above `band`. Absent at the top band and without data. */
5138
+ nextBand: z.ZodOptional<z.ZodObject<{
5139
+ key: z.ZodString;
5140
+ label: z.ZodString;
5141
+ min: z.ZodNumber;
5142
+ max: z.ZodNumber;
5143
+ }, "strip", z.ZodTypeAny, {
5144
+ label: string;
5145
+ min: number;
5146
+ max: number;
5147
+ key: string;
5148
+ }, {
5149
+ label: string;
5150
+ min: number;
5151
+ max: number;
5152
+ key: string;
5153
+ }>>;
5154
+ /** Where the month closes at the pace so far. Absent early in the month, in the first month, or with nothing to measure. */
5155
+ projection: z.ZodOptional<z.ZodObject<{
5156
+ value: z.ZodNumber;
5157
+ band: z.ZodOptional<z.ZodObject<{
5158
+ key: z.ZodString;
5159
+ label: z.ZodString;
5160
+ min: z.ZodNumber;
5161
+ max: z.ZodNumber;
5162
+ }, "strip", z.ZodTypeAny, {
5163
+ label: string;
5164
+ min: number;
5165
+ max: number;
5166
+ key: string;
5167
+ }, {
5168
+ label: string;
5169
+ min: number;
5170
+ max: number;
5171
+ key: string;
5172
+ }>>;
5173
+ }, "strip", z.ZodTypeAny, {
5174
+ value: number;
5175
+ band?: {
5176
+ label: string;
5177
+ min: number;
5178
+ max: number;
5179
+ key: string;
5180
+ } | undefined;
5181
+ }, {
5182
+ value: number;
5183
+ band?: {
5184
+ label: string;
5185
+ min: number;
5186
+ max: number;
5187
+ key: string;
5188
+ } | undefined;
5189
+ }>>;
5097
5190
  metrics: z.ZodArray<z.ZodObject<{
5098
5191
  key: z.ZodString;
5099
5192
  value: z.ZodNumber;
@@ -5174,12 +5267,30 @@ declare const ScoreProgressSchema: z.ZodObject<{
5174
5267
  target: number;
5175
5268
  available: boolean;
5176
5269
  }[];
5270
+ day: number;
5271
+ daysInMonth: number;
5272
+ isFirstMonth: boolean;
5177
5273
  band?: {
5178
5274
  label: string;
5179
5275
  min: number;
5180
5276
  max: number;
5181
5277
  key: string;
5182
5278
  } | undefined;
5279
+ nextBand?: {
5280
+ label: string;
5281
+ min: number;
5282
+ max: number;
5283
+ key: string;
5284
+ } | undefined;
5285
+ projection?: {
5286
+ value: number;
5287
+ band?: {
5288
+ label: string;
5289
+ min: number;
5290
+ max: number;
5291
+ key: string;
5292
+ } | undefined;
5293
+ } | undefined;
5183
5294
  }, {
5184
5295
  value: number;
5185
5296
  history: {
@@ -5203,12 +5314,30 @@ declare const ScoreProgressSchema: z.ZodObject<{
5203
5314
  target: number;
5204
5315
  available: boolean;
5205
5316
  }[];
5317
+ day: number;
5318
+ daysInMonth: number;
5319
+ isFirstMonth: boolean;
5206
5320
  band?: {
5207
5321
  label: string;
5208
5322
  min: number;
5209
5323
  max: number;
5210
5324
  key: string;
5211
5325
  } | undefined;
5326
+ nextBand?: {
5327
+ label: string;
5328
+ min: number;
5329
+ max: number;
5330
+ key: string;
5331
+ } | undefined;
5332
+ projection?: {
5333
+ value: number;
5334
+ band?: {
5335
+ label: string;
5336
+ min: number;
5337
+ max: number;
5338
+ key: string;
5339
+ } | undefined;
5340
+ } | undefined;
5212
5341
  }>;
5213
5342
  type ScoreMetricKey = z.infer<typeof ScoreMetricKeySchema>;
5214
5343
  type ScoreBand = z.infer<typeof ScoreBandSchema>;
@@ -5217,6 +5346,7 @@ type Score = z.infer<typeof ScoreSchema>;
5217
5346
  type ScoreHistoryEntry = z.infer<typeof ScoreHistoryEntrySchema>;
5218
5347
  type ScoreRecap = z.infer<typeof ScoreRecapSchema>;
5219
5348
  type ScoreProgressMetric = z.infer<typeof ScoreProgressMetricSchema>;
5349
+ type ScoreProjection = z.infer<typeof ScoreProjectionSchema>;
5220
5350
  type ScoreProgress = z.infer<typeof ScoreProgressSchema>;
5221
5351
  type ScoreGoalOption = z.infer<typeof ScoreGoalOptionSchema>;
5222
5352
  type ScoreGoal = z.infer<typeof ScoreGoalSchema>;
@@ -5273,10 +5403,12 @@ type index$3_ScoreProgress = ScoreProgress;
5273
5403
  type index$3_ScoreProgressMetric = ScoreProgressMetric;
5274
5404
  declare const index$3_ScoreProgressMetricSchema: typeof ScoreProgressMetricSchema;
5275
5405
  declare const index$3_ScoreProgressSchema: typeof ScoreProgressSchema;
5406
+ type index$3_ScoreProjection = ScoreProjection;
5407
+ declare const index$3_ScoreProjectionSchema: typeof ScoreProjectionSchema;
5276
5408
  declare const index$3_ScoreRecapSchema: typeof ScoreRecapSchema;
5277
5409
  declare const index$3_ScoreSchema: typeof ScoreSchema;
5278
5410
  declare namespace index$3 {
5279
- 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 };
5411
+ 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, type index$3_ScoreProjection as ScoreProjection, index$3_ScoreProjectionSchema as ScoreProjectionSchema, index$3_ScoreRecapSchema as ScoreRecapSchema, index$3_ScoreSchema as ScoreSchema };
5280
5412
  }
5281
5413
 
5282
5414
  /**
package/dist/index.js CHANGED
@@ -6382,13 +6382,26 @@ var ScoreProgressMetricSchema = external_exports.object({
6382
6382
  target: external_exports.number(),
6383
6383
  available: external_exports.boolean()
6384
6384
  });
6385
+ var ScoreProjectionSchema = external_exports.object({
6386
+ value: external_exports.number(),
6387
+ band: ScoreBandSchema.optional()
6388
+ });
6385
6389
  var ScoreProgressSchema = external_exports.object({
6386
6390
  period: external_exports.string(),
6387
6391
  periodLabel: external_exports.string(),
6388
6392
  computedAt: external_exports.number(),
6393
+ /** The day of the month in the customer's timezone. */
6394
+ day: external_exports.number(),
6395
+ daysInMonth: external_exports.number(),
6396
+ /** No closed month in `history` yet. */
6397
+ isFirstMonth: external_exports.boolean(),
6389
6398
  value: external_exports.number(),
6390
6399
  hasData: external_exports.boolean(),
6391
6400
  band: ScoreBandSchema.optional(),
6401
+ /** The band above `band`. Absent at the top band and without data. */
6402
+ nextBand: ScoreBandSchema.optional(),
6403
+ /** Where the month closes at the pace so far. Absent early in the month, in the first month, or with nothing to measure. */
6404
+ projection: ScoreProjectionSchema.optional(),
6392
6405
  metrics: external_exports.array(ScoreProgressMetricSchema),
6393
6406
  history: external_exports.array(ScoreHistoryEntrySchema)
6394
6407
  });
@@ -7243,6 +7256,7 @@ __export(score_exports, {
7243
7256
  ScoreMetricSchema: () => ScoreMetricSchema,
7244
7257
  ScoreProgressMetricSchema: () => ScoreProgressMetricSchema,
7245
7258
  ScoreProgressSchema: () => ScoreProgressSchema,
7259
+ ScoreProjectionSchema: () => ScoreProjectionSchema,
7246
7260
  ScoreRecapSchema: () => ScoreRecapSchema,
7247
7261
  ScoreSchema: () => ScoreSchema
7248
7262
  });