@explorins/pers-shared 2.1.103 → 2.1.105

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.
Files changed (61) hide show
  1. package/dist/cjs/shared-lib/dto/campaign/campaignUserClaim.dto.d.ts +1 -0
  2. package/dist/cjs/shared-lib/dto/campaign/campaignUserClaim.dto.d.ts.map +1 -1
  3. package/dist/cjs/shared-lib/dto/campaign/campaignUserClaim.dto.js +7 -0
  4. package/dist/cjs/shared-lib/dto/campaign/campaignUserClaim.dto.js.map +1 -1
  5. package/dist/cjs/shared-lib/dto/transaction/transaction-bulk-data.request.dto.d.ts +3 -3
  6. package/dist/cjs/shared-lib/dto/transaction/transaction-bulk-data.request.dto.js +9 -9
  7. package/dist/cjs/shared-lib/dto/user/userUploadData.dto.d.ts +3 -3
  8. package/dist/cjs/shared-lib/dto/user/userUploadData.dto.js +14 -14
  9. package/dist/cjs/shared-lib/dto/webhook/webhook.dto.d.ts +6 -6
  10. package/dist/cjs/shared-lib/dto/webhook/webhook.dto.js +52 -52
  11. package/dist/cjs/shared-lib/enum/entity-types.enum.d.ts +100 -0
  12. package/dist/cjs/shared-lib/enum/entity-types.enum.d.ts.map +1 -0
  13. package/dist/cjs/shared-lib/enum/entity-types.enum.js +61 -0
  14. package/dist/cjs/shared-lib/enum/entity-types.enum.js.map +1 -0
  15. package/dist/cjs/shared-lib/enum/index.d.ts +1 -0
  16. package/dist/cjs/shared-lib/enum/index.d.ts.map +1 -1
  17. package/dist/cjs/shared-lib/enum/index.js +2 -0
  18. package/dist/cjs/shared-lib/enum/index.js.map +1 -1
  19. package/dist/cjs/shared-lib/errors/error-codes.d.ts +2 -26
  20. package/dist/cjs/shared-lib/errors/error-codes.d.ts.map +1 -1
  21. package/dist/cjs/shared-lib/errors/error-codes.js +3 -22
  22. package/dist/cjs/shared-lib/errors/error-codes.js.map +1 -1
  23. package/dist/cjs/shared-lib/value-objects/token-balance.value-object.js +2 -2
  24. package/dist/cjs/shared-lib/value-objects/token-balance.value-object.js.map +1 -1
  25. package/dist/cjs/shared-patterns/functions/{helper.functions.d.ts → token-metadata.functions.d.ts} +13 -24
  26. package/dist/cjs/shared-patterns/functions/token-metadata.functions.d.ts.map +1 -0
  27. package/dist/cjs/shared-patterns/functions/{helper.functions.js → token-metadata.functions.js} +14 -58
  28. package/dist/cjs/shared-patterns/functions/token-metadata.functions.js.map +1 -0
  29. package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.d.ts +1 -0
  30. package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.d.ts.map +1 -1
  31. package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.js +6 -0
  32. package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.js.map +1 -1
  33. package/dist/esm/shared-lib/dto/transaction/transaction-bulk-data.request.dto.d.ts +3 -3
  34. package/dist/esm/shared-lib/dto/transaction/transaction-bulk-data.request.dto.js +8 -8
  35. package/dist/esm/shared-lib/dto/user/userUploadData.dto.d.ts +3 -3
  36. package/dist/esm/shared-lib/dto/user/userUploadData.dto.js +10 -10
  37. package/dist/esm/shared-lib/dto/webhook/webhook.dto.d.ts +6 -6
  38. package/dist/esm/shared-lib/dto/webhook/webhook.dto.js +46 -46
  39. package/dist/esm/shared-lib/enum/entity-types.enum.d.ts +100 -0
  40. package/dist/esm/shared-lib/enum/entity-types.enum.d.ts.map +1 -0
  41. package/dist/esm/shared-lib/enum/entity-types.enum.js +58 -0
  42. package/dist/esm/shared-lib/enum/entity-types.enum.js.map +1 -0
  43. package/dist/esm/shared-lib/enum/index.d.ts +1 -0
  44. package/dist/esm/shared-lib/enum/index.d.ts.map +1 -1
  45. package/dist/esm/shared-lib/enum/index.js +2 -0
  46. package/dist/esm/shared-lib/enum/index.js.map +1 -1
  47. package/dist/esm/shared-lib/errors/error-codes.d.ts +2 -26
  48. package/dist/esm/shared-lib/errors/error-codes.d.ts.map +1 -1
  49. package/dist/esm/shared-lib/errors/error-codes.js +2 -22
  50. package/dist/esm/shared-lib/errors/error-codes.js.map +1 -1
  51. package/dist/esm/shared-lib/value-objects/token-balance.value-object.js +1 -1
  52. package/dist/esm/shared-lib/value-objects/token-balance.value-object.js.map +1 -1
  53. package/dist/esm/shared-patterns/functions/{helper.functions.d.ts → token-metadata.functions.d.ts} +13 -24
  54. package/dist/esm/shared-patterns/functions/token-metadata.functions.d.ts.map +1 -0
  55. package/dist/esm/shared-patterns/functions/{helper.functions.js → token-metadata.functions.js} +13 -54
  56. package/dist/esm/shared-patterns/functions/token-metadata.functions.js.map +1 -0
  57. package/package.json +1 -1
  58. package/dist/cjs/shared-patterns/functions/helper.functions.d.ts.map +0 -1
  59. package/dist/cjs/shared-patterns/functions/helper.functions.js.map +0 -1
  60. package/dist/esm/shared-patterns/functions/helper.functions.d.ts.map +0 -1
  61. package/dist/esm/shared-patterns/functions/helper.functions.js.map +0 -1
@@ -6,6 +6,7 @@ import { TriggerSourceDTO } from "./trigger-source.dto";
6
6
  import { ProcessRecordStatus } from "../../enum";
7
7
  export declare class CampaignClaimDTO {
8
8
  id: string;
9
+ externalReferenceId: string | null;
9
10
  createdAt: Date | null;
10
11
  userId: string;
11
12
  campaignId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"campaignUserClaim.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/campaign/campaignUserClaim.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,qBAAa,gBAAgB;IAKzB,EAAE,EAAE,MAAM,CAAM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EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,qBAAa,gBAAgB;IAKzB,EAAE,EAAE,MAAM,CAAM;IAKhB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAQ;IAK1C,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAO9B,MAAM,EAAG,MAAM,CAAC;IAMhB,UAAU,EAAE,MAAM,CAAM;IAOxB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGhC;;OAEG;IAOH,IAAI,EAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAEtB;;OAEG;IAOH,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAc;IAEtC;;OAEG;IAOH,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAO1B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IAQtC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAW1B,MAAM,EAAE,mBAAmB,CAA+B;IAO1D,OAAO,CAAC,EAAE,MAAM,CAAC;IAsCjB,QAAQ,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,WAAW,CAAC;QACvB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,QAAQ,CAAC,EAAE,WAAW,CAAC;QACvB,aAAa,CAAC,EAAE,gBAAgB,CAAC;QACjC,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;KACnC,CAAC;CAEL"}
@@ -19,6 +19,7 @@ const trigger_source_dto_1 = require("./trigger-source.dto");
19
19
  const enum_1 = require("../../enum");
20
20
  class CampaignClaimDTO {
21
21
  id = '';
22
+ externalReferenceId = null;
22
23
  createdAt = null;
23
24
  // New ID-based properties (preferred)
24
25
  userId;
@@ -61,6 +62,12 @@ __decorate([
61
62
  }),
62
63
  __metadata("design:type", String)
63
64
  ], CampaignClaimDTO.prototype, "id", void 0);
65
+ __decorate([
66
+ (0, swagger_1.ApiProperty)({
67
+ description: 'External reference ID for idempotency. Used to prevent duplicate claims. Use case: Stripe payment ID, order ID, webhook event ID, etc.',
68
+ }),
69
+ __metadata("design:type", Object)
70
+ ], CampaignClaimDTO.prototype, "externalReferenceId", void 0);
64
71
  __decorate([
65
72
  (0, swagger_1.ApiProperty)({
66
73
  description: 'The date the campaign user claim was created'
@@ -1 +1 @@
1
- {"version":3,"file":"campaignUserClaim.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/campaign/campaignUserClaim.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAkF;AAClF,+CAA2C;AAC3C,2DAAuD;AACvD,iDAA6C;AAC7C,oEAAgE;AAChE,6DAAwD;AACxD,qCAAiD;AAEjD,MAAa,gBAAgB;IAKzB,EAAE,GAAW,EAAE,CAAC;IAKhB,SAAS,GAAgB,IAAI,CAAC;IAE9B,sCAAsC;IAKtC,MAAM,CAAU;IAMhB,UAAU,GAAW,EAAE,CAAC;IAOxB,UAAU,CAAiB;IAO3B,eAAe,CAAiB;IAEhC,2EAA2E;IAC3E;;OAEG;IAOH,IAAI,CAAkB;IAEtB;;OAEG;IAOH,QAAQ,GAAmB,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;IAEtC;;OAEG;IAOH,QAAQ,CAAkB;IAO1B,eAAe,GAAkB,IAAI,CAAC;IAQtC,QAAQ,CAAiB;IAQzB,SAAS,CAAiB;IAE1B,wCAAwC;IACxC,wBAAwB;IACxB,wCAAwC;IAOxC,MAAM,GAAwB,0BAAmB,CAAC,OAAO,CAAC;IAO1D,OAAO,CAAU;IAEjB,wCAAwC;IACxC,6BAA6B;IAC7B,wCAAwC;IACxC,uDAAuD;IACvD,0EAA0E;IAC1E,sDAAsD;IA+BtD,QAAQ,C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,IAAI,EAAE,IAAA,uBAAa,EAAC,gCAAc,CAAC,EAAE;aACjD;SACJ;KACJ,CAAC;;kDAOA"}
@@ -1,12 +1,12 @@
1
- import { UserUploadDataDto } from "../user/userUploadData.dto";
2
- export declare class TransactionBulkUserUploadDataDto extends UserUploadDataDto {
1
+ import { UserUploadDataDTO } from "../user/userUploadData.dto";
2
+ export declare class TransactionBulkUserUploadDataDTO extends UserUploadDataDTO {
3
3
  amount?: number;
4
4
  tokenAddress?: string;
5
5
  chainId?: number;
6
6
  tokenMetadataIncrementalId?: string | null;
7
7
  }
8
8
  export declare class TransactionBulkDataRequestDTO {
9
- userData: TransactionBulkUserUploadDataDto[];
9
+ userData: TransactionBulkUserUploadDataDTO[];
10
10
  amount?: number;
11
11
  tokenAddress?: string;
12
12
  tokenMetadataIncrementalId?: string | null;
@@ -9,19 +9,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TransactionBulkDataRequestDTO = exports.TransactionBulkUserUploadDataDto = void 0;
12
+ exports.TransactionBulkDataRequestDTO = exports.TransactionBulkUserUploadDataDTO = void 0;
13
13
  const userUploadData_dto_1 = require("../user/userUploadData.dto");
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const class_transformer_1 = require("class-transformer");
16
16
  const class_validator_1 = require("class-validator");
17
17
  const decorators_1 = require("../../decorators");
18
- class TransactionBulkUserUploadDataDto extends userUploadData_dto_1.UserUploadDataDto {
18
+ class TransactionBulkUserUploadDataDTO extends userUploadData_dto_1.UserUploadDataDTO {
19
19
  amount;
20
20
  tokenAddress;
21
21
  chainId;
22
22
  tokenMetadataIncrementalId;
23
23
  }
24
- exports.TransactionBulkUserUploadDataDto = TransactionBulkUserUploadDataDto;
24
+ exports.TransactionBulkUserUploadDataDTO = TransactionBulkUserUploadDataDTO;
25
25
  __decorate([
26
26
  (0, swagger_1.ApiPropertyOptional)({
27
27
  description: 'Amount to mint for this specific user. Overrides global amount if provided.',
@@ -30,7 +30,7 @@ __decorate([
30
30
  (0, decorators_1.OptionalStripNumber)(),
31
31
  (0, class_validator_1.IsNumber)(),
32
32
  __metadata("design:type", Number)
33
- ], TransactionBulkUserUploadDataDto.prototype, "amount", void 0);
33
+ ], TransactionBulkUserUploadDataDTO.prototype, "amount", void 0);
34
34
  __decorate([
35
35
  (0, swagger_1.ApiPropertyOptional)({
36
36
  description: 'Token address for this specific user. Overrides global tokenAddress.',
@@ -40,7 +40,7 @@ __decorate([
40
40
  (0, class_validator_1.IsString)(),
41
41
  (0, class_validator_1.MinLength)(1),
42
42
  __metadata("design:type", String)
43
- ], TransactionBulkUserUploadDataDto.prototype, "tokenAddress", void 0);
43
+ ], TransactionBulkUserUploadDataDTO.prototype, "tokenAddress", void 0);
44
44
  __decorate([
45
45
  (0, swagger_1.ApiPropertyOptional)({
46
46
  description: 'Chain ID for this specific user. Overrides global chainId.',
@@ -49,7 +49,7 @@ __decorate([
49
49
  (0, decorators_1.OptionalStripNumber)(),
50
50
  (0, class_validator_1.IsNumber)(),
51
51
  __metadata("design:type", Number)
52
- ], TransactionBulkUserUploadDataDto.prototype, "chainId", void 0);
52
+ ], TransactionBulkUserUploadDataDTO.prototype, "chainId", void 0);
53
53
  __decorate([
54
54
  (0, swagger_1.ApiPropertyOptional)({
55
55
  description: 'Token metadata incremental ID for this specific user. Overrides global tokenMetadataIncrementalId.',
@@ -59,7 +59,7 @@ __decorate([
59
59
  (0, class_validator_1.IsString)(),
60
60
  (0, class_validator_1.MinLength)(1),
61
61
  __metadata("design:type", Object)
62
- ], TransactionBulkUserUploadDataDto.prototype, "tokenMetadataIncrementalId", void 0);
62
+ ], TransactionBulkUserUploadDataDTO.prototype, "tokenMetadataIncrementalId", void 0);
63
63
  class TransactionBulkDataRequestDTO {
64
64
  userData;
65
65
  amount;
@@ -72,13 +72,13 @@ exports.TransactionBulkDataRequestDTO = TransactionBulkDataRequestDTO;
72
72
  __decorate([
73
73
  (0, swagger_1.ApiProperty)({
74
74
  description: 'Array of user data objects for bulk minting. Each object must conform to the UserUploadDataDto structure.',
75
- type: [TransactionBulkUserUploadDataDto], // Use the specific DTO for Swagger
75
+ type: [TransactionBulkUserUploadDataDTO], // Use the specific DTO for Swagger
76
76
  }),
77
77
  (0, class_validator_1.IsArray)(),
78
78
  (0, class_validator_1.ArrayMinSize)(1) // Ensure there's at least one user data object
79
79
  ,
80
80
  (0, class_validator_1.ValidateNested)({ each: true }),
81
- (0, class_transformer_1.Type)(() => TransactionBulkUserUploadDataDto) // Use the specific DTO for class-transformer and validation
81
+ (0, class_transformer_1.Type)(() => TransactionBulkUserUploadDataDTO) // Use the specific DTO for class-transformer and validation
82
82
  ,
83
83
  __metadata("design:type", Array)
84
84
  ], TransactionBulkDataRequestDTO.prototype, "userData", void 0);
@@ -1,12 +1,12 @@
1
1
  import { UserIdentifierParamsObject as IUserIdentifierObject } from '../../types/unique-user-identifier-keys';
2
- export declare class UserIdentifierObjectDto implements IUserIdentifierObject {
2
+ export declare class UserIdentifierObjectDTO implements IUserIdentifierObject {
3
3
  email?: string;
4
4
  externalId?: string;
5
5
  id?: string;
6
6
  instagramAccountId?: string;
7
7
  wildcard?: string;
8
8
  }
9
- export declare class UserUploadDataDto {
10
- user: UserIdentifierObjectDto;
9
+ export declare class UserUploadDataDTO {
10
+ user: UserIdentifierObjectDTO;
11
11
  }
12
12
  //# sourceMappingURL=userUploadData.dto.d.ts.map
@@ -9,48 +9,48 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UserUploadDataDto = exports.UserIdentifierObjectDto = void 0;
12
+ exports.UserUploadDataDTO = exports.UserIdentifierObjectDTO = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const class_transformer_1 = require("class-transformer");
16
16
  const decorators_1 = require("../../decorators");
17
17
  // This DTO represents the user identification part.
18
18
  // It implements IUserIdentifierObject to align with the shared library type structure.
19
- class UserIdentifierObjectDto {
19
+ class UserIdentifierObjectDTO {
20
20
  email;
21
21
  externalId;
22
22
  id;
23
23
  instagramAccountId;
24
24
  wildcard;
25
25
  }
26
- exports.UserIdentifierObjectDto = UserIdentifierObjectDto;
26
+ exports.UserIdentifierObjectDTO = UserIdentifierObjectDTO;
27
27
  __decorate([
28
28
  (0, swagger_1.ApiPropertyOptional)({ description: 'User email', example: 'user@example.com' }),
29
29
  (0, decorators_1.OptionalStrip)(),
30
30
  (0, class_validator_1.IsEmail)(),
31
31
  __metadata("design:type", String)
32
- ], UserIdentifierObjectDto.prototype, "email", void 0);
32
+ ], UserIdentifierObjectDTO.prototype, "email", void 0);
33
33
  __decorate([
34
34
  (0, swagger_1.ApiPropertyOptional)({ description: 'External User ID' }),
35
35
  (0, decorators_1.OptionalStrip)(),
36
36
  (0, class_validator_1.IsString)(),
37
37
  (0, class_validator_1.MinLength)(1),
38
38
  __metadata("design:type", String)
39
- ], UserIdentifierObjectDto.prototype, "externalId", void 0);
39
+ ], UserIdentifierObjectDTO.prototype, "externalId", void 0);
40
40
  __decorate([
41
41
  (0, swagger_1.ApiPropertyOptional)({ description: 'User ID (from uniqueUserIdentifierKeys)' }),
42
42
  (0, decorators_1.OptionalStrip)(),
43
43
  (0, class_validator_1.IsString)(),
44
44
  (0, class_validator_1.MinLength)(1),
45
45
  __metadata("design:type", String)
46
- ], UserIdentifierObjectDto.prototype, "id", void 0);
46
+ ], UserIdentifierObjectDTO.prototype, "id", void 0);
47
47
  __decorate([
48
48
  (0, swagger_1.ApiPropertyOptional)({ description: 'Instagram Account ID (from uniqueUserIdentifierKeys)' }),
49
49
  (0, decorators_1.OptionalStrip)(),
50
50
  (0, class_validator_1.IsString)(),
51
51
  (0, class_validator_1.MinLength)(1),
52
52
  __metadata("design:type", String)
53
- ], UserIdentifierObjectDto.prototype, "instagramAccountId", void 0);
53
+ ], UserIdentifierObjectDTO.prototype, "instagramAccountId", void 0);
54
54
  __decorate([
55
55
  (0, swagger_1.ApiPropertyOptional)({
56
56
  description: 'Wildcard value for auto-detection of identifier type',
@@ -59,20 +59,20 @@ __decorate([
59
59
  (0, decorators_1.OptionalStrip)(),
60
60
  (0, class_validator_1.IsString)(),
61
61
  __metadata("design:type", String)
62
- ], UserIdentifierObjectDto.prototype, "wildcard", void 0);
62
+ ], UserIdentifierObjectDTO.prototype, "wildcard", void 0);
63
63
  // This DTO represents the data for a single user in a bulk upload scenario.
64
- class UserUploadDataDto {
64
+ class UserUploadDataDTO {
65
65
  user;
66
66
  }
67
- exports.UserUploadDataDto = UserUploadDataDto;
67
+ exports.UserUploadDataDTO = UserUploadDataDTO;
68
68
  __decorate([
69
69
  (0, swagger_1.ApiProperty)({
70
70
  description: 'User identifier object. At least one identifier (e.g., email, id) must be provided. If only wildcard is provided, the system will attempt to detect the identifier type.',
71
- type: () => UserIdentifierObjectDto
71
+ type: () => UserIdentifierObjectDTO
72
72
  }),
73
73
  (0, class_validator_1.IsObject)(),
74
74
  (0, class_validator_1.ValidateNested)(),
75
- (0, class_transformer_1.Type)(() => UserIdentifierObjectDto),
76
- __metadata("design:type", UserIdentifierObjectDto)
77
- ], UserUploadDataDto.prototype, "user", void 0);
75
+ (0, class_transformer_1.Type)(() => UserIdentifierObjectDTO),
76
+ __metadata("design:type", UserIdentifierObjectDTO)
77
+ ], UserUploadDataDTO.prototype, "user", void 0);
78
78
  //# sourceMappingURL=userUploadData.dto.js.map
@@ -3,7 +3,7 @@ export { WebhookAuthType, WebhookMethod, WebhookSource, WebhookExecutionStatus,
3
3
  /**
4
4
  * DTO for creating a webhook
5
5
  */
6
- export declare class CreateWebhookDto {
6
+ export declare class CreateWebhookDTO {
7
7
  name: string;
8
8
  description?: string;
9
9
  targetUrl: string;
@@ -15,16 +15,16 @@ export declare class CreateWebhookDto {
15
15
  inboundSecret?: string;
16
16
  timeoutMs?: number;
17
17
  }
18
- declare const UpdateWebhookDto_base: import("@nestjs/common").Type<Partial<CreateWebhookDto>>;
18
+ declare const UpdateWebhookDTO_base: import("@nestjs/common").Type<Partial<CreateWebhookDTO>>;
19
19
  /**
20
20
  * DTO for updating a webhook (all fields optional)
21
21
  */
22
- export declare class UpdateWebhookDto extends UpdateWebhookDto_base {
22
+ export declare class UpdateWebhookDTO extends UpdateWebhookDTO_base {
23
23
  }
24
24
  /**
25
25
  * DTO for webhook list responses (hides sensitive fields)
26
26
  */
27
- export declare class WebhookDto {
27
+ export declare class WebhookDTO {
28
28
  id: string;
29
29
  name: string;
30
30
  description?: string | null;
@@ -43,7 +43,7 @@ export declare class WebhookDto {
43
43
  /**
44
44
  * DTO for webhook execution history
45
45
  */
46
- export declare class WebhookExecutionDto {
46
+ export declare class WebhookExecutionDTO {
47
47
  id: string;
48
48
  webhookId: string;
49
49
  method: string;
@@ -62,7 +62,7 @@ export declare class WebhookExecutionDto {
62
62
  /**
63
63
  * DTO for webhook callback requests from external systems (e.g., n8n workflow completion)
64
64
  */
65
- export declare class WebhookCallbackDto {
65
+ export declare class WebhookCallbackDTO {
66
66
  status: WebhookCallbackStatus;
67
67
  result?: Record<string, unknown>;
68
68
  error?: string;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.WebhookCallbackDto = exports.WebhookExecutionDto = exports.WebhookDto = exports.UpdateWebhookDto = exports.CreateWebhookDto = exports.WebhookCallbackStatus = exports.WebhookExecutionStatus = exports.WebhookSource = exports.WebhookMethod = exports.WebhookAuthType = void 0;
12
+ exports.WebhookCallbackDTO = exports.WebhookExecutionDTO = exports.WebhookDTO = exports.UpdateWebhookDTO = exports.CreateWebhookDTO = exports.WebhookCallbackStatus = exports.WebhookExecutionStatus = exports.WebhookSource = exports.WebhookMethod = exports.WebhookAuthType = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const webhook_enum_1 = require("../../enum/webhook.enum");
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "WebhookCallbackStatus", { enumerable: true, get:
21
21
  /**
22
22
  * DTO for creating a webhook
23
23
  */
24
- class CreateWebhookDto {
24
+ class CreateWebhookDTO {
25
25
  name;
26
26
  description;
27
27
  targetUrl;
@@ -33,29 +33,29 @@ class CreateWebhookDto {
33
33
  inboundSecret;
34
34
  timeoutMs;
35
35
  }
36
- exports.CreateWebhookDto = CreateWebhookDto;
36
+ exports.CreateWebhookDTO = CreateWebhookDTO;
37
37
  __decorate([
38
38
  (0, swagger_1.ApiProperty)({ description: 'Human-readable name for this webhook', example: 'Stripe Payment Webhook' }),
39
39
  (0, class_validator_1.IsString)(),
40
40
  __metadata("design:type", String)
41
- ], CreateWebhookDto.prototype, "name", void 0);
41
+ ], CreateWebhookDTO.prototype, "name", void 0);
42
42
  __decorate([
43
43
  (0, swagger_1.ApiPropertyOptional)({ description: 'Optional description', example: 'Handles payment confirmations from Stripe' }),
44
44
  (0, class_validator_1.IsString)(),
45
45
  (0, class_validator_1.IsOptional)(),
46
46
  __metadata("design:type", String)
47
- ], CreateWebhookDto.prototype, "description", void 0);
47
+ ], CreateWebhookDTO.prototype, "description", void 0);
48
48
  __decorate([
49
49
  (0, swagger_1.ApiProperty)({ description: 'Target URL where requests will be forwarded', example: 'https://internal-api.example.com/payments/webhook' }),
50
50
  (0, class_validator_1.IsUrl)(),
51
51
  __metadata("design:type", String)
52
- ], CreateWebhookDto.prototype, "targetUrl", void 0);
52
+ ], CreateWebhookDTO.prototype, "targetUrl", void 0);
53
53
  __decorate([
54
54
  (0, swagger_1.ApiPropertyOptional)({ description: 'Whether webhook is active', default: true }),
55
55
  (0, class_validator_1.IsBoolean)(),
56
56
  (0, class_validator_1.IsOptional)(),
57
57
  __metadata("design:type", Boolean)
58
- ], CreateWebhookDto.prototype, "isActive", void 0);
58
+ ], CreateWebhookDTO.prototype, "isActive", void 0);
59
59
  __decorate([
60
60
  (0, swagger_1.ApiPropertyOptional)({
61
61
  description: 'Allowed HTTP methods (defaults to POST only)',
@@ -68,19 +68,19 @@ __decorate([
68
68
  (0, class_validator_1.IsEnum)(webhook_enum_1.WebhookMethod, { each: true }),
69
69
  (0, class_validator_1.IsOptional)(),
70
70
  __metadata("design:type", Array)
71
- ], CreateWebhookDto.prototype, "allowedMethods", void 0);
71
+ ], CreateWebhookDTO.prototype, "allowedMethods", void 0);
72
72
  __decorate([
73
73
  (0, swagger_1.ApiPropertyOptional)({ description: 'Outbound authentication type', enum: webhook_enum_1.WebhookAuthType, default: webhook_enum_1.WebhookAuthType.NONE }),
74
74
  (0, class_validator_1.IsEnum)(webhook_enum_1.WebhookAuthType),
75
75
  (0, class_validator_1.IsOptional)(),
76
76
  __metadata("design:type", String)
77
- ], CreateWebhookDto.prototype, "outboundAuthType", void 0);
77
+ ], CreateWebhookDTO.prototype, "outboundAuthType", void 0);
78
78
  __decorate([
79
79
  (0, swagger_1.ApiPropertyOptional)({ description: 'Outbound authentication credentials (Bearer token)' }),
80
80
  (0, class_validator_1.IsString)(),
81
81
  (0, class_validator_1.IsOptional)(),
82
82
  __metadata("design:type", String)
83
- ], CreateWebhookDto.prototype, "outboundAuthCredentials", void 0);
83
+ ], CreateWebhookDTO.prototype, "outboundAuthCredentials", void 0);
84
84
  __decorate([
85
85
  (0, swagger_1.ApiProperty)({
86
86
  description: 'Allowed inbound sources',
@@ -91,13 +91,13 @@ __decorate([
91
91
  (0, class_validator_1.IsArray)(),
92
92
  (0, class_validator_1.IsEnum)(webhook_enum_1.WebhookSource, { each: true }),
93
93
  __metadata("design:type", Array)
94
- ], CreateWebhookDto.prototype, "inboundAllowedSources", void 0);
94
+ ], CreateWebhookDTO.prototype, "inboundAllowedSources", void 0);
95
95
  __decorate([
96
96
  (0, swagger_1.ApiPropertyOptional)({ description: 'Secret for external source verification (e.g., Stripe signing secret)' }),
97
97
  (0, class_validator_1.IsString)(),
98
98
  (0, class_validator_1.IsOptional)(),
99
99
  __metadata("design:type", String)
100
- ], CreateWebhookDto.prototype, "inboundSecret", void 0);
100
+ ], CreateWebhookDTO.prototype, "inboundSecret", void 0);
101
101
  __decorate([
102
102
  (0, swagger_1.ApiPropertyOptional)({ description: 'Request timeout in milliseconds', default: 30000, minimum: 1000, maximum: 120000 }),
103
103
  (0, class_validator_1.IsNumber)(),
@@ -105,17 +105,17 @@ __decorate([
105
105
  (0, class_validator_1.Max)(120000),
106
106
  (0, class_validator_1.IsOptional)(),
107
107
  __metadata("design:type", Number)
108
- ], CreateWebhookDto.prototype, "timeoutMs", void 0);
108
+ ], CreateWebhookDTO.prototype, "timeoutMs", void 0);
109
109
  /**
110
110
  * DTO for updating a webhook (all fields optional)
111
111
  */
112
- class UpdateWebhookDto extends (0, swagger_1.PartialType)(CreateWebhookDto) {
112
+ class UpdateWebhookDTO extends (0, swagger_1.PartialType)(CreateWebhookDTO) {
113
113
  }
114
- exports.UpdateWebhookDto = UpdateWebhookDto;
114
+ exports.UpdateWebhookDTO = UpdateWebhookDTO;
115
115
  /**
116
116
  * DTO for webhook list responses (hides sensitive fields)
117
117
  */
118
- class WebhookDto {
118
+ class WebhookDTO {
119
119
  id;
120
120
  name;
121
121
  description;
@@ -131,70 +131,70 @@ class WebhookDto {
131
131
  createdAt;
132
132
  updatedAt;
133
133
  }
134
- exports.WebhookDto = WebhookDto;
134
+ exports.WebhookDTO = WebhookDTO;
135
135
  __decorate([
136
136
  (0, swagger_1.ApiProperty)({ description: 'Webhook ID' }),
137
137
  __metadata("design:type", String)
138
- ], WebhookDto.prototype, "id", void 0);
138
+ ], WebhookDTO.prototype, "id", void 0);
139
139
  __decorate([
140
140
  (0, swagger_1.ApiProperty)({ description: 'Human-readable name' }),
141
141
  __metadata("design:type", String)
142
- ], WebhookDto.prototype, "name", void 0);
142
+ ], WebhookDTO.prototype, "name", void 0);
143
143
  __decorate([
144
144
  (0, swagger_1.ApiPropertyOptional)({ description: 'Optional description' }),
145
145
  __metadata("design:type", Object)
146
- ], WebhookDto.prototype, "description", void 0);
146
+ ], WebhookDTO.prototype, "description", void 0);
147
147
  __decorate([
148
148
  (0, swagger_1.ApiProperty)({ description: 'Target URL where requests are forwarded' }),
149
149
  __metadata("design:type", String)
150
- ], WebhookDto.prototype, "targetUrl", void 0);
150
+ ], WebhookDTO.prototype, "targetUrl", void 0);
151
151
  __decorate([
152
152
  (0, swagger_1.ApiProperty)({
153
153
  description: 'Public URL to receive webhook requests (format: {baseUrl}/{apiVersion}/hooks/{projectKey}/{hookId})',
154
154
  example: 'https://api.pers.ninja/v2/hooks/b3245237f5e658af.../550e8400-e29b-41d4-a716-446655440000'
155
155
  }),
156
156
  __metadata("design:type", String)
157
- ], WebhookDto.prototype, "url", void 0);
157
+ ], WebhookDTO.prototype, "url", void 0);
158
158
  __decorate([
159
159
  (0, swagger_1.ApiProperty)({ description: 'Whether webhook is active' }),
160
160
  __metadata("design:type", Boolean)
161
- ], WebhookDto.prototype, "isActive", void 0);
161
+ ], WebhookDTO.prototype, "isActive", void 0);
162
162
  __decorate([
163
163
  (0, swagger_1.ApiProperty)({ description: 'Allowed HTTP methods', enum: webhook_enum_1.WebhookMethod, isArray: true }),
164
164
  __metadata("design:type", Array)
165
- ], WebhookDto.prototype, "allowedMethods", void 0);
165
+ ], WebhookDTO.prototype, "allowedMethods", void 0);
166
166
  __decorate([
167
167
  (0, swagger_1.ApiProperty)({ description: 'Outbound authentication type', enum: webhook_enum_1.WebhookAuthType }),
168
168
  __metadata("design:type", String)
169
- ], WebhookDto.prototype, "outboundAuthType", void 0);
169
+ ], WebhookDTO.prototype, "outboundAuthType", void 0);
170
170
  __decorate([
171
171
  (0, swagger_1.ApiProperty)({ description: 'Whether outbound credentials are configured' }),
172
172
  __metadata("design:type", Boolean)
173
- ], WebhookDto.prototype, "hasOutboundCredentials", void 0);
173
+ ], WebhookDTO.prototype, "hasOutboundCredentials", void 0);
174
174
  __decorate([
175
175
  (0, swagger_1.ApiProperty)({ description: 'Allowed inbound sources', enum: webhook_enum_1.WebhookSource, isArray: true }),
176
176
  __metadata("design:type", Array)
177
- ], WebhookDto.prototype, "inboundAllowedSources", void 0);
177
+ ], WebhookDTO.prototype, "inboundAllowedSources", void 0);
178
178
  __decorate([
179
179
  (0, swagger_1.ApiProperty)({ description: 'Whether inbound secret is configured' }),
180
180
  __metadata("design:type", Boolean)
181
- ], WebhookDto.prototype, "hasInboundSecret", void 0);
181
+ ], WebhookDTO.prototype, "hasInboundSecret", void 0);
182
182
  __decorate([
183
183
  (0, swagger_1.ApiProperty)({ description: 'Request timeout in milliseconds' }),
184
184
  __metadata("design:type", Number)
185
- ], WebhookDto.prototype, "timeoutMs", void 0);
185
+ ], WebhookDTO.prototype, "timeoutMs", void 0);
186
186
  __decorate([
187
187
  (0, swagger_1.ApiProperty)({ description: 'Creation timestamp' }),
188
188
  __metadata("design:type", Date)
189
- ], WebhookDto.prototype, "createdAt", void 0);
189
+ ], WebhookDTO.prototype, "createdAt", void 0);
190
190
  __decorate([
191
191
  (0, swagger_1.ApiProperty)({ description: 'Last update timestamp' }),
192
192
  __metadata("design:type", Date)
193
- ], WebhookDto.prototype, "updatedAt", void 0);
193
+ ], WebhookDTO.prototype, "updatedAt", void 0);
194
194
  /**
195
195
  * DTO for webhook execution history
196
196
  */
197
- class WebhookExecutionDto {
197
+ class WebhookExecutionDTO {
198
198
  id;
199
199
  webhookId;
200
200
  method;
@@ -211,72 +211,72 @@ class WebhookExecutionDto {
211
211
  callbackResult;
212
212
  callbackReceivedAt;
213
213
  }
214
- exports.WebhookExecutionDto = WebhookExecutionDto;
214
+ exports.WebhookExecutionDTO = WebhookExecutionDTO;
215
215
  __decorate([
216
216
  (0, swagger_1.ApiProperty)({ description: 'Execution ID' }),
217
217
  __metadata("design:type", String)
218
- ], WebhookExecutionDto.prototype, "id", void 0);
218
+ ], WebhookExecutionDTO.prototype, "id", void 0);
219
219
  __decorate([
220
220
  (0, swagger_1.ApiProperty)({ description: 'Webhook ID' }),
221
221
  __metadata("design:type", String)
222
- ], WebhookExecutionDto.prototype, "webhookId", void 0);
222
+ ], WebhookExecutionDTO.prototype, "webhookId", void 0);
223
223
  __decorate([
224
224
  (0, swagger_1.ApiProperty)({ description: 'HTTP method', example: 'POST' }),
225
225
  __metadata("design:type", String)
226
- ], WebhookExecutionDto.prototype, "method", void 0);
226
+ ], WebhookExecutionDTO.prototype, "method", void 0);
227
227
  __decorate([
228
228
  (0, swagger_1.ApiProperty)({ description: 'Target URL at time of execution' }),
229
229
  __metadata("design:type", String)
230
- ], WebhookExecutionDto.prototype, "targetUrl", void 0);
230
+ ], WebhookExecutionDTO.prototype, "targetUrl", void 0);
231
231
  __decorate([
232
232
  (0, swagger_1.ApiProperty)({ description: 'Execution status', enum: webhook_enum_1.WebhookExecutionStatus }),
233
233
  __metadata("design:type", String)
234
- ], WebhookExecutionDto.prototype, "status", void 0);
234
+ ], WebhookExecutionDTO.prototype, "status", void 0);
235
235
  __decorate([
236
236
  (0, swagger_1.ApiPropertyOptional)({ description: 'HTTP response status code' }),
237
237
  __metadata("design:type", Object)
238
- ], WebhookExecutionDto.prototype, "responseStatusCode", void 0);
238
+ ], WebhookExecutionDTO.prototype, "responseStatusCode", void 0);
239
239
  __decorate([
240
240
  (0, swagger_1.ApiPropertyOptional)({ description: 'Duration in milliseconds' }),
241
241
  __metadata("design:type", Object)
242
- ], WebhookExecutionDto.prototype, "durationMs", void 0);
242
+ ], WebhookExecutionDTO.prototype, "durationMs", void 0);
243
243
  __decorate([
244
244
  (0, swagger_1.ApiProperty)({ description: 'Source IP of the request' }),
245
245
  __metadata("design:type", String)
246
- ], WebhookExecutionDto.prototype, "sourceIp", void 0);
246
+ ], WebhookExecutionDTO.prototype, "sourceIp", void 0);
247
247
  __decorate([
248
248
  (0, swagger_1.ApiPropertyOptional)({ description: 'Error or status message' }),
249
249
  __metadata("design:type", Object)
250
- ], WebhookExecutionDto.prototype, "message", void 0);
250
+ ], WebhookExecutionDTO.prototype, "message", void 0);
251
251
  __decorate([
252
252
  (0, swagger_1.ApiProperty)({ description: 'When execution started' }),
253
253
  __metadata("design:type", Date)
254
- ], WebhookExecutionDto.prototype, "startedAt", void 0);
254
+ ], WebhookExecutionDTO.prototype, "startedAt", void 0);
255
255
  __decorate([
256
256
  (0, swagger_1.ApiPropertyOptional)({ description: 'When execution completed' }),
257
257
  __metadata("design:type", Object)
258
- ], WebhookExecutionDto.prototype, "completedAt", void 0);
258
+ ], WebhookExecutionDTO.prototype, "completedAt", void 0);
259
259
  __decorate([
260
260
  (0, swagger_1.ApiPropertyOptional)({ description: 'Callback status from external workflow', enum: webhook_enum_1.WebhookCallbackStatus, default: webhook_enum_1.WebhookCallbackStatus.NONE }),
261
261
  __metadata("design:type", String)
262
- ], WebhookExecutionDto.prototype, "callbackStatus", void 0);
262
+ ], WebhookExecutionDTO.prototype, "callbackStatus", void 0);
263
263
  __decorate([
264
264
  (0, swagger_1.ApiPropertyOptional)({ description: 'Callback result data from external workflow' }),
265
265
  __metadata("design:type", Object)
266
- ], WebhookExecutionDto.prototype, "callbackResult", void 0);
266
+ ], WebhookExecutionDTO.prototype, "callbackResult", void 0);
267
267
  __decorate([
268
268
  (0, swagger_1.ApiPropertyOptional)({ description: 'When callback was received' }),
269
269
  __metadata("design:type", Object)
270
- ], WebhookExecutionDto.prototype, "callbackReceivedAt", void 0);
270
+ ], WebhookExecutionDTO.prototype, "callbackReceivedAt", void 0);
271
271
  /**
272
272
  * DTO for webhook callback requests from external systems (e.g., n8n workflow completion)
273
273
  */
274
- class WebhookCallbackDto {
274
+ class WebhookCallbackDTO {
275
275
  status;
276
276
  result;
277
277
  error;
278
278
  }
279
- exports.WebhookCallbackDto = WebhookCallbackDto;
279
+ exports.WebhookCallbackDTO = WebhookCallbackDTO;
280
280
  __decorate([
281
281
  (0, swagger_1.ApiProperty)({
282
282
  description: 'Callback status from external workflow',
@@ -285,17 +285,17 @@ __decorate([
285
285
  }),
286
286
  (0, class_validator_1.IsEnum)(webhook_enum_1.WebhookCallbackStatus),
287
287
  __metadata("design:type", String)
288
- ], WebhookCallbackDto.prototype, "status", void 0);
288
+ ], WebhookCallbackDTO.prototype, "status", void 0);
289
289
  __decorate([
290
290
  (0, swagger_1.ApiPropertyOptional)({ description: 'Result data from external workflow' }),
291
291
  (0, class_validator_1.IsObject)(),
292
292
  (0, class_validator_1.IsOptional)(),
293
293
  __metadata("design:type", Object)
294
- ], WebhookCallbackDto.prototype, "result", void 0);
294
+ ], WebhookCallbackDTO.prototype, "result", void 0);
295
295
  __decorate([
296
296
  (0, swagger_1.ApiPropertyOptional)({ description: 'Error message if workflow failed' }),
297
297
  (0, class_validator_1.IsString)(),
298
298
  (0, class_validator_1.IsOptional)(),
299
299
  __metadata("design:type", String)
300
- ], WebhookCallbackDto.prototype, "error", void 0);
300
+ ], WebhookCallbackDTO.prototype, "error", void 0);
301
301
  //# sourceMappingURL=webhook.dto.js.map