@likewatt/models 1.73.0 → 1.74.0

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.
@@ -42,6 +42,14 @@ export declare class Site {
42
42
  endDate?: Date | string;
43
43
  automaticUpdateError?: string | null;
44
44
  automaticUpdateErrorHint?: RetryHint | null;
45
+ /**
46
+ * Structured error code (e.g. 'SGT500', 'UPSTREAM_5XX', 'NETWORK', '404',
47
+ * 'SGT589'). Source of truth for the frontend retry-policy classifier;
48
+ * preferred over regex-parsing the `[CODE] message` prefix in
49
+ * `automaticUpdateError`, which remains for backward-compat with sites
50
+ * persisted before this field existed.
51
+ */
52
+ automaticUpdateErrorCode?: string | null;
45
53
  automaticUpdateRetryAt?: Date | null;
46
54
  scenario?: string;
47
55
  user?: string;
package/dist/core/Site.js CHANGED
@@ -226,6 +226,13 @@ __decorate([
226
226
  (0, class_validator_1.IsEnum)(RetryHint_1.RetryHint),
227
227
  __metadata("design:type", Object)
228
228
  ], Site.prototype, "automaticUpdateErrorHint", void 0);
229
+ __decorate([
230
+ (0, swagger_1.ApiPropertyOptional)(),
231
+ (0, mongoose_1.Prop)({ type: String, required: false }),
232
+ (0, class_validator_1.IsOptional)(),
233
+ (0, class_validator_1.IsString)(),
234
+ __metadata("design:type", Object)
235
+ ], Site.prototype, "automaticUpdateErrorCode", void 0);
229
236
  __decorate([
230
237
  (0, swagger_1.ApiPropertyOptional)(),
231
238
  (0, mongoose_1.Prop)({ type: Date, required: false }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.73.0",
3
+ "version": "1.74.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {