@fiado/type-kit 3.90.0 → 3.91.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.
@@ -0,0 +1,4 @@
1
+ export interface DeleteLeadResponse {
2
+ deleted: boolean;
3
+ leadId: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { LeadStatusEnum } from '../enums/LeadStatusEnum';
2
+ export declare class UpdateLeadRequest {
3
+ name?: string;
4
+ email?: string;
5
+ phone?: string;
6
+ company?: string;
7
+ notes?: string;
8
+ status?: LeadStatusEnum;
9
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UpdateLeadRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const LeadStatusEnum_1 = require("../enums/LeadStatusEnum");
16
+ class UpdateLeadRequest {
17
+ }
18
+ exports.UpdateLeadRequest = UpdateLeadRequest;
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_validator_1.IsOptional)(),
22
+ (0, class_validator_1.IsString)(),
23
+ (0, class_validator_1.MaxLength)(200),
24
+ __metadata("design:type", String)
25
+ ], UpdateLeadRequest.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_validator_1.IsEmail)(),
30
+ __metadata("design:type", String)
31
+ ], UpdateLeadRequest.prototype, "email", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], UpdateLeadRequest.prototype, "phone", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_validator_1.IsString)(),
42
+ (0, class_validator_1.MaxLength)(200),
43
+ __metadata("design:type", String)
44
+ ], UpdateLeadRequest.prototype, "company", void 0);
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsString)(),
49
+ (0, class_validator_1.MaxLength)(500),
50
+ __metadata("design:type", String)
51
+ ], UpdateLeadRequest.prototype, "notes", void 0);
52
+ __decorate([
53
+ (0, class_transformer_1.Expose)(),
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_validator_1.IsEnum)(LeadStatusEnum_1.LeadStatusEnum),
56
+ __metadata("design:type", String)
57
+ ], UpdateLeadRequest.prototype, "status", void 0);
@@ -9,6 +9,8 @@ export * from './dtos/ListProfilesResponse';
9
9
  export * from './dtos/DeleteProfileResponse';
10
10
  export * from './dtos/SaveLeadRequest';
11
11
  export * from './dtos/SaveLeadResponse';
12
+ export * from './dtos/UpdateLeadRequest';
13
+ export * from './dtos/DeleteLeadResponse';
12
14
  export * from './dtos/LeadResponse';
13
15
  export * from './dtos/ListLeadsResponse';
14
16
  export * from './dtos/CreateLeadGroupRequest';
@@ -28,6 +28,8 @@ __exportStar(require("./dtos/DeleteProfileResponse"), exports);
28
28
  // Lead DTOs
29
29
  __exportStar(require("./dtos/SaveLeadRequest"), exports);
30
30
  __exportStar(require("./dtos/SaveLeadResponse"), exports);
31
+ __exportStar(require("./dtos/UpdateLeadRequest"), exports);
32
+ __exportStar(require("./dtos/DeleteLeadResponse"), exports);
31
33
  __exportStar(require("./dtos/LeadResponse"), exports);
32
34
  __exportStar(require("./dtos/ListLeadsResponse"), exports);
33
35
  // Lead Group DTOs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.90.0",
3
+ "version": "3.91.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,4 @@
1
+ export interface DeleteLeadResponse {
2
+ deleted: boolean;
3
+ leadId: string;
4
+ }
@@ -0,0 +1,12 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsString, IsOptional, IsEnum, IsEmail, MaxLength } from 'class-validator';
3
+ import { LeadStatusEnum } from '../enums/LeadStatusEnum';
4
+
5
+ export class UpdateLeadRequest {
6
+ @Expose() @IsOptional() @IsString() @MaxLength(200) name?: string;
7
+ @Expose() @IsOptional() @IsEmail() email?: string;
8
+ @Expose() @IsOptional() @IsString() phone?: string;
9
+ @Expose() @IsOptional() @IsString() @MaxLength(200) company?: string;
10
+ @Expose() @IsOptional() @IsString() @MaxLength(500) notes?: string;
11
+ @Expose() @IsOptional() @IsEnum(LeadStatusEnum) status?: LeadStatusEnum;
12
+ }
@@ -14,6 +14,8 @@ export * from './dtos/DeleteProfileResponse';
14
14
  // Lead DTOs
15
15
  export * from './dtos/SaveLeadRequest';
16
16
  export * from './dtos/SaveLeadResponse';
17
+ export * from './dtos/UpdateLeadRequest';
18
+ export * from './dtos/DeleteLeadResponse';
17
19
  export * from './dtos/LeadResponse';
18
20
  export * from './dtos/ListLeadsResponse';
19
21