@likewatt/models 1.0.86 → 1.0.87

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.
@@ -2,7 +2,7 @@ export declare class WebhookLog {
2
2
  id: number;
3
3
  endpoint: string;
4
4
  requestBody: string;
5
- responseBody: string;
5
+ responseBody?: string;
6
6
  responseStatus: number;
7
7
  createdOn?: Date;
8
8
  updatedOn?: Date;
@@ -0,0 +1,9 @@
1
+ export declare class WebhookLeadsOutput {
2
+ firstname?: string;
3
+ lastname?: string;
4
+ zip?: string;
5
+ address?: string;
6
+ city?: string;
7
+ email?: string;
8
+ phone?: string;
9
+ }
@@ -0,0 +1,51 @@
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.WebhookLeadsOutput = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class WebhookLeadsOutput {
15
+ }
16
+ exports.WebhookLeadsOutput = WebhookLeadsOutput;
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], WebhookLeadsOutput.prototype, "firstname", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], WebhookLeadsOutput.prototype, "lastname", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], WebhookLeadsOutput.prototype, "zip", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], WebhookLeadsOutput.prototype, "address", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsString)(),
40
+ __metadata("design:type", String)
41
+ ], WebhookLeadsOutput.prototype, "city", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsEmail)(),
45
+ __metadata("design:type", String)
46
+ ], WebhookLeadsOutput.prototype, "email", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, class_validator_1.IsString)(),
50
+ __metadata("design:type", String)
51
+ ], WebhookLeadsOutput.prototype, "phone", void 0);
@@ -0,0 +1,5 @@
1
+ export declare class WebhookOptimEndOutput {
2
+ uuid?: string;
3
+ solution?: string;
4
+ optimization_results?: string;
5
+ }
@@ -0,0 +1,28 @@
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.WebhookOptimEndOutput = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class WebhookOptimEndOutput {
15
+ }
16
+ exports.WebhookOptimEndOutput = WebhookOptimEndOutput;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], WebhookOptimEndOutput.prototype, "uuid", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], WebhookOptimEndOutput.prototype, "solution", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], WebhookOptimEndOutput.prototype, "optimization_results", void 0);
package/dist/index.d.ts CHANGED
@@ -64,3 +64,5 @@ export * from './core/internal/subscription-rate.model';
64
64
  export * from './core/internal/tarif';
65
65
  export * from './core/internal/folder.model';
66
66
  export * as FrontendTypes from './frontend';
67
+ export * from './core/webhookTypes/webhook-leads-output.dto';
68
+ export * from './core/webhookTypes/webhook-optimend-output.dto';
package/dist/index.js CHANGED
@@ -111,3 +111,6 @@ __exportStar(require("./core/internal/tarif"), exports);
111
111
  __exportStar(require("./core/internal/folder.model"), exports);
112
112
  // Frontend types (sans décorateurs)
113
113
  exports.FrontendTypes = __importStar(require("./frontend"));
114
+ // Webhook types
115
+ __exportStar(require("./core/webhookTypes/webhook-leads-output.dto"), exports);
116
+ __exportStar(require("./core/webhookTypes/webhook-optimend-output.dto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {