@fiado/type-kit 3.309.0 → 3.310.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,14 @@
1
+ import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
2
+ import { EmailLinkExpirationReasonEnum } from '../enums/EmailLinkExpirationReasonEnum';
3
+ /**
4
+ * Un directorio que tiene registrado el correo consultado (búsqueda inversa de backoffice).
5
+ */
6
+ export declare class EmailOwnerItem {
7
+ directoryId: string;
8
+ isVerified: boolean;
9
+ isPrincipal: boolean;
10
+ status: EmailVerificationStatusEnum;
11
+ verifiedAt?: number;
12
+ /** Solo presente cuando status === EXPIRED. */
13
+ expirationReason?: EmailLinkExpirationReasonEnum;
14
+ }
@@ -0,0 +1,45 @@
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.EmailOwnerItem = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const EmailVerificationStatusEnum_1 = require("../enums/EmailVerificationStatusEnum");
15
+ const EmailLinkExpirationReasonEnum_1 = require("../enums/EmailLinkExpirationReasonEnum");
16
+ /**
17
+ * Un directorio que tiene registrado el correo consultado (búsqueda inversa de backoffice).
18
+ */
19
+ class EmailOwnerItem {
20
+ }
21
+ exports.EmailOwnerItem = EmailOwnerItem;
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", String)
25
+ ], EmailOwnerItem.prototype, "directoryId", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", Boolean)
29
+ ], EmailOwnerItem.prototype, "isVerified", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", Boolean)
33
+ ], EmailOwnerItem.prototype, "isPrincipal", void 0);
34
+ __decorate([
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], EmailOwnerItem.prototype, "status", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", Number)
41
+ ], EmailOwnerItem.prototype, "verifiedAt", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], EmailOwnerItem.prototype, "expirationReason", void 0);
@@ -0,0 +1,9 @@
1
+ import { EmailOwnerItem } from './EmailOwnerItem';
2
+ /**
3
+ * Respuesta de la búsqueda inversa (backoffice): qué directorios tienen
4
+ * el correo consultado y en qué estado. El verificado (si existe) va primero.
5
+ */
6
+ export declare class EmailOwnersResponse {
7
+ email: string;
8
+ items: EmailOwnerItem[];
9
+ }
@@ -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.EmailOwnersResponse = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ /**
15
+ * Respuesta de la búsqueda inversa (backoffice): qué directorios tienen
16
+ * el correo consultado y en qué estado. El verificado (si existe) va primero.
17
+ */
18
+ class EmailOwnersResponse {
19
+ }
20
+ exports.EmailOwnersResponse = EmailOwnersResponse;
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], EmailOwnersResponse.prototype, "email", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Array)
28
+ ], EmailOwnersResponse.prototype, "items", void 0);
@@ -13,6 +13,8 @@ export * from './dtos/EmailSetPrincipalResponse';
13
13
  export * from './dtos/EmailDeleteRequest';
14
14
  export * from './dtos/EmailDeleteResponse';
15
15
  export * from './dtos/EmailConfirmRequest';
16
+ export * from './dtos/EmailOwnerItem';
17
+ export * from './dtos/EmailOwnersResponse';
16
18
  export * from './dtos/internal/PrimaryEmailByDirectoryRequest';
17
19
  export * from './dtos/internal/PrimaryEmailResponse';
18
20
  export * from './dtos/internal/EmailsByDirectoryRequest';
@@ -29,6 +29,8 @@ __exportStar(require("./dtos/EmailSetPrincipalResponse"), exports);
29
29
  __exportStar(require("./dtos/EmailDeleteRequest"), exports);
30
30
  __exportStar(require("./dtos/EmailDeleteResponse"), exports);
31
31
  __exportStar(require("./dtos/EmailConfirmRequest"), exports);
32
+ __exportStar(require("./dtos/EmailOwnerItem"), exports);
33
+ __exportStar(require("./dtos/EmailOwnersResponse"), exports);
32
34
  __exportStar(require("./dtos/internal/PrimaryEmailByDirectoryRequest"), exports);
33
35
  __exportStar(require("./dtos/internal/PrimaryEmailResponse"), exports);
34
36
  __exportStar(require("./dtos/internal/EmailsByDirectoryRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.309.0",
3
+ "version": "3.310.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,27 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailVerificationStatusEnum } from '../enums/EmailVerificationStatusEnum';
3
+ import { EmailLinkExpirationReasonEnum } from '../enums/EmailLinkExpirationReasonEnum';
4
+
5
+ /**
6
+ * Un directorio que tiene registrado el correo consultado (búsqueda inversa de backoffice).
7
+ */
8
+ export class EmailOwnerItem {
9
+ @Expose()
10
+ directoryId!: string;
11
+
12
+ @Expose()
13
+ isVerified!: boolean;
14
+
15
+ @Expose()
16
+ isPrincipal!: boolean;
17
+
18
+ @Expose()
19
+ status!: EmailVerificationStatusEnum;
20
+
21
+ @Expose()
22
+ verifiedAt?: number;
23
+
24
+ /** Solo presente cuando status === EXPIRED. */
25
+ @Expose()
26
+ expirationReason?: EmailLinkExpirationReasonEnum;
27
+ }
@@ -0,0 +1,14 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { EmailOwnerItem } from './EmailOwnerItem';
3
+
4
+ /**
5
+ * Respuesta de la búsqueda inversa (backoffice): qué directorios tienen
6
+ * el correo consultado y en qué estado. El verificado (si existe) va primero.
7
+ */
8
+ export class EmailOwnersResponse {
9
+ @Expose()
10
+ email!: string;
11
+
12
+ @Expose()
13
+ items!: EmailOwnerItem[];
14
+ }
@@ -13,6 +13,8 @@ export * from './dtos/EmailSetPrincipalResponse';
13
13
  export * from './dtos/EmailDeleteRequest';
14
14
  export * from './dtos/EmailDeleteResponse';
15
15
  export * from './dtos/EmailConfirmRequest';
16
+ export * from './dtos/EmailOwnerItem';
17
+ export * from './dtos/EmailOwnersResponse';
16
18
  export * from './dtos/internal/PrimaryEmailByDirectoryRequest';
17
19
  export * from './dtos/internal/PrimaryEmailResponse';
18
20
  export * from './dtos/internal/EmailsByDirectoryRequest';