@fiado/type-kit 3.324.0 → 3.325.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.
@@ -1,3 +1,4 @@
1
+ import { AlertClassification } from "../enums/AlertClassificationEnum";
1
2
  export declare class HelpdeskCreateTicketRequest {
2
3
  subject: string;
3
4
  note: string;
@@ -12,4 +13,6 @@ export declare class HelpdeskCreateTicketRequest {
12
13
  tags?: string[];
13
14
  /** GID del grupo de Zendesk al que se asigna (p. ej. Legal). */
14
15
  groupId?: number;
16
+ /** Clasificación explícita del usuario para el asunto; si no va, zendesk-business la calcula. */
17
+ classification?: AlertClassification;
15
18
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.HelpdeskCreateTicketRequest = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const AlertClassificationEnum_1 = require("../enums/AlertClassificationEnum");
14
15
  class HelpdeskCreateTicketRequest {
15
16
  }
16
17
  exports.HelpdeskCreateTicketRequest = HelpdeskCreateTicketRequest;
@@ -62,3 +63,8 @@ __decorate([
62
63
  (0, class_validator_1.IsOptional)(),
63
64
  __metadata("design:type", Number)
64
65
  ], HelpdeskCreateTicketRequest.prototype, "groupId", void 0);
66
+ __decorate([
67
+ (0, class_validator_1.IsEnum)(AlertClassificationEnum_1.AlertClassification),
68
+ (0, class_validator_1.IsOptional)(),
69
+ __metadata("design:type", String)
70
+ ], HelpdeskCreateTicketRequest.prototype, "classification", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.324.0",
3
+ "version": "3.325.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,5 @@
1
- import { IsArray, IsBoolean, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
1
+ import { IsArray, IsBoolean, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
2
+ import { AlertClassification } from "../enums/AlertClassificationEnum";
2
3
 
3
4
  export class HelpdeskCreateTicketRequest {
4
5
 
@@ -43,4 +44,9 @@ export class HelpdeskCreateTicketRequest {
43
44
  @IsOptional()
44
45
  groupId?: number;
45
46
 
47
+ /** Clasificación explícita del usuario para el asunto; si no va, zendesk-business la calcula. */
48
+ @IsEnum(AlertClassification)
49
+ @IsOptional()
50
+ classification?: AlertClassification;
51
+
46
52
  }