@fiado/type-kit 3.0.20 → 3.0.22

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 (118) hide show
  1. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  2. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  3. package/bin/funnel/dtos/AttributionCreateRequest.d.ts +20 -0
  4. package/bin/funnel/dtos/AttributionCreateRequest.js +94 -0
  5. package/bin/funnel/dtos/AttributionCreateResponse.d.ts +8 -0
  6. package/bin/funnel/dtos/AttributionCreateResponse.js +9 -0
  7. package/bin/funnel/dtos/AttributionDetailResponse.d.ts +23 -0
  8. package/bin/funnel/dtos/AttributionDetailResponse.js +9 -0
  9. package/bin/funnel/dtos/AttributionListResponse.d.ts +12 -0
  10. package/bin/funnel/dtos/AttributionListResponse.js +9 -0
  11. package/bin/funnel/dtos/AttributionStatsResponse.d.ts +26 -0
  12. package/bin/funnel/dtos/AttributionStatsResponse.js +9 -0
  13. package/bin/funnel/index.d.ts +5 -0
  14. package/bin/funnel/index.js +22 -0
  15. package/bin/index.d.ts +1 -0
  16. package/bin/index.js +19 -8
  17. package/bin/transactionProcessor/dtos/ServicePaymentTransactionItem.d.ts +1 -0
  18. package/package.json +1 -1
  19. package/src/funnel/dtos/AttributionCreateRequest.ts +67 -0
  20. package/src/funnel/dtos/AttributionCreateResponse.ts +8 -0
  21. package/src/funnel/dtos/AttributionDetailResponse.ts +23 -0
  22. package/src/funnel/dtos/AttributionListResponse.ts +13 -0
  23. package/src/funnel/dtos/AttributionStatsResponse.ts +11 -0
  24. package/src/funnel/index.ts +6 -0
  25. package/src/index.ts +1 -0
  26. package/src/transactionProcessor/dtos/ServicePaymentTransactionItem.ts +1 -0
  27. package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
  28. package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
  29. package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
  30. package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
  31. package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
  32. package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
  33. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +0 -13
  34. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +0 -71
  35. package/bin/credit/dtos/CreditBannerStateResponse.d.ts +0 -10
  36. package/bin/credit/dtos/CreditBannerStateResponse.js +0 -6
  37. package/bin/credit/dtos/CreditDetailResponse.d.ts +0 -23
  38. package/bin/credit/dtos/CreditDetailResponse.js +0 -6
  39. package/bin/credit/dtos/CreditEligibilityResponse.d.ts +0 -9
  40. package/bin/credit/dtos/CreditEligibilityResponse.js +0 -6
  41. package/bin/credit/dtos/CreditMovementResponse.d.ts +0 -20
  42. package/bin/credit/dtos/CreditMovementResponse.js +0 -9
  43. package/bin/credit/dtos/CreditRequestCreate.d.ts +0 -4
  44. package/bin/credit/dtos/CreditRequestCreate.js +0 -26
  45. package/bin/credit/dtos/CreditRequestResponse.d.ts +0 -7
  46. package/bin/credit/dtos/CreditRequestResponse.js +0 -6
  47. package/bin/credit/dtos/CreditScheduleResponse.d.ts +0 -18
  48. package/bin/credit/dtos/CreditScheduleResponse.js +0 -9
  49. package/bin/credit/dtos/CreditStatementResponse.d.ts +0 -11
  50. package/bin/credit/dtos/CreditStatementResponse.js +0 -9
  51. package/bin/credit/dtos/EarlyPaymentRequest.d.ts +0 -7
  52. package/bin/credit/dtos/EarlyPaymentRequest.js +0 -37
  53. package/bin/credit/dtos/EarlyPaymentResponse.d.ts +0 -11
  54. package/bin/credit/dtos/EarlyPaymentResponse.js +0 -6
  55. package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +0 -3
  56. package/bin/credit/dtos/internal/CreditBalanceRequest.js +0 -21
  57. package/bin/credit/dtos/internal/CreditBalanceResponse.d.ts +0 -10
  58. package/bin/credit/dtos/internal/CreditBalanceResponse.js +0 -6
  59. package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +0 -11
  60. package/bin/credit/dtos/internal/CreditCollectionRequest.js +0 -59
  61. package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +0 -12
  62. package/bin/credit/dtos/internal/CreditCollectionResponse.js +0 -6
  63. package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +0 -7
  64. package/bin/credit/dtos/internal/CreditDisbursementRequest.js +0 -43
  65. package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +0 -8
  66. package/bin/credit/dtos/internal/CreditDisbursementResponse.js +0 -6
  67. package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +0 -3
  68. package/bin/credit/dtos/internal/CreditProfileRequest.js +0 -23
  69. package/bin/credit/dtos/internal/CreditProfileResponse.d.ts +0 -13
  70. package/bin/credit/dtos/internal/CreditProfileResponse.js +0 -6
  71. package/bin/credit/dtos/internal/CreditQueueMessage.d.ts +0 -9
  72. package/bin/credit/dtos/internal/CreditQueueMessage.js +0 -6
  73. package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +0 -5
  74. package/bin/credit/dtos/internal/CreditReversalRequest.js +0 -31
  75. package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +0 -7
  76. package/bin/credit/dtos/internal/CreditReversalResponse.js +0 -6
  77. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +0 -8
  78. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +0 -46
  79. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +0 -8
  80. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +0 -6
  81. package/bin/credit/dtos/internal/DocumentGenerateRequest.d.ts +0 -10
  82. package/bin/credit/dtos/internal/DocumentGenerateRequest.js +0 -53
  83. package/bin/credit/dtos/internal/DocumentGenerateResponse.d.ts +0 -12
  84. package/bin/credit/dtos/internal/DocumentGenerateResponse.js +0 -6
  85. package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +0 -3
  86. package/bin/credit/dtos/internal/DocumentSignRequest.js +0 -21
  87. package/bin/credit/dtos/internal/LienApplyRequest.d.ts +0 -7
  88. package/bin/credit/dtos/internal/LienApplyRequest.js +0 -45
  89. package/bin/credit/dtos/internal/LienStatusResponse.d.ts +0 -9
  90. package/bin/credit/dtos/internal/LienStatusResponse.js +0 -6
  91. package/bin/credit/enums/CollectionFrequencyEnum.d.ts +0 -5
  92. package/bin/credit/enums/CollectionFrequencyEnum.js +0 -9
  93. package/bin/credit/enums/CreditOperationEnum.d.ts +0 -11
  94. package/bin/credit/enums/CreditOperationEnum.js +0 -15
  95. package/bin/credit/enums/CreditStatusEnum.d.ts +0 -12
  96. package/bin/credit/enums/CreditStatusEnum.js +0 -16
  97. package/bin/credit/enums/DelinquencyLevelEnum.d.ts +0 -9
  98. package/bin/credit/enums/DelinquencyLevelEnum.js +0 -13
  99. package/bin/credit/enums/DocumentTypeEnum.d.ts +0 -8
  100. package/bin/credit/enums/DocumentTypeEnum.js +0 -12
  101. package/bin/credit/enums/OfferStatusEnum.d.ts +0 -8
  102. package/bin/credit/enums/OfferStatusEnum.js +0 -12
  103. package/bin/credit/enums/PaymentTypeEnum.d.ts +0 -9
  104. package/bin/credit/enums/PaymentTypeEnum.js +0 -13
  105. package/bin/credit/enums/ReconciliationStatusEnum.d.ts +0 -6
  106. package/bin/credit/enums/ReconciliationStatusEnum.js +0 -10
  107. package/bin/credit/enums/TransferStatusEnum.d.ts +0 -8
  108. package/bin/credit/enums/TransferStatusEnum.js +0 -12
  109. package/bin/directorySetting/dtos/DirectorySettingCreateResponse.d.ts +0 -0
  110. package/bin/directorySetting/dtos/DirectorySettingCreateResponse.js +0 -0
  111. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
  112. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
  113. package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
  114. package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
  115. package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
  116. package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
  117. package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
  118. package/bin/services/enums/ServiceProviderEnum.js +0 -9
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
9
+ exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
10
+ exports.IsValueValid = IsValueValid;
10
11
  const class_validator_1 = require("class-validator");
11
12
  const Status_1 = require("../enums/Status");
12
13
  const UpdateKey_1 = require("../enums/UpdateKey");
@@ -70,4 +71,3 @@ function IsValueValid(validationOptions) {
70
71
  });
71
72
  };
72
73
  }
73
- exports.IsValueValid = IsValueValid;
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
9
+ exports.IsPhoneNumberConstraint = void 0;
10
+ exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
10
11
  const class_validator_1 = require("class-validator");
11
12
  const regex_1 = require("../../helpers/constans/regex");
12
13
  let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
@@ -36,4 +37,3 @@ function IsPhoneNumberFiado(validationOptions) {
36
37
  });
37
38
  };
38
39
  }
39
- exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Request para crear un registro de atribución de AppsFlyer
3
+ */
4
+ export declare class AttributionCreateRequest {
5
+ directoryId: string;
6
+ phoneNumber?: string;
7
+ referralCode?: string;
8
+ promotionName?: string;
9
+ placement?: string;
10
+ campaignMonth?: string;
11
+ sharedBy?: string;
12
+ geoSegment?: string;
13
+ mediaSource?: string;
14
+ campaign?: string;
15
+ clickTime?: string;
16
+ installTime?: string;
17
+ isFirstLaunch?: boolean;
18
+ afStatus?: string;
19
+ shortlink?: string;
20
+ }
@@ -0,0 +1,94 @@
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.AttributionCreateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * Request para crear un registro de atribución de AppsFlyer
16
+ */
17
+ class AttributionCreateRequest {
18
+ }
19
+ exports.AttributionCreateRequest = AttributionCreateRequest;
20
+ __decorate([
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], AttributionCreateRequest.prototype, "directoryId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsString)(),
28
+ __metadata("design:type", String)
29
+ ], AttributionCreateRequest.prototype, "phoneNumber", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsString)(),
33
+ __metadata("design:type", String)
34
+ ], AttributionCreateRequest.prototype, "referralCode", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], AttributionCreateRequest.prototype, "promotionName", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsString)(),
43
+ __metadata("design:type", String)
44
+ ], AttributionCreateRequest.prototype, "placement", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], AttributionCreateRequest.prototype, "campaignMonth", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, class_validator_1.IsString)(),
53
+ __metadata("design:type", String)
54
+ ], AttributionCreateRequest.prototype, "sharedBy", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsString)(),
58
+ __metadata("design:type", String)
59
+ ], AttributionCreateRequest.prototype, "geoSegment", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsOptional)(),
62
+ (0, class_validator_1.IsString)(),
63
+ __metadata("design:type", String)
64
+ ], AttributionCreateRequest.prototype, "mediaSource", void 0);
65
+ __decorate([
66
+ (0, class_validator_1.IsOptional)(),
67
+ (0, class_validator_1.IsString)(),
68
+ __metadata("design:type", String)
69
+ ], AttributionCreateRequest.prototype, "campaign", void 0);
70
+ __decorate([
71
+ (0, class_validator_1.IsOptional)(),
72
+ (0, class_validator_1.IsString)(),
73
+ __metadata("design:type", String)
74
+ ], AttributionCreateRequest.prototype, "clickTime", void 0);
75
+ __decorate([
76
+ (0, class_validator_1.IsOptional)(),
77
+ (0, class_validator_1.IsString)(),
78
+ __metadata("design:type", String)
79
+ ], AttributionCreateRequest.prototype, "installTime", void 0);
80
+ __decorate([
81
+ (0, class_validator_1.IsOptional)(),
82
+ (0, class_validator_1.IsBoolean)(),
83
+ __metadata("design:type", Boolean)
84
+ ], AttributionCreateRequest.prototype, "isFirstLaunch", void 0);
85
+ __decorate([
86
+ (0, class_validator_1.IsOptional)(),
87
+ (0, class_validator_1.IsString)(),
88
+ __metadata("design:type", String)
89
+ ], AttributionCreateRequest.prototype, "afStatus", void 0);
90
+ __decorate([
91
+ (0, class_validator_1.IsOptional)(),
92
+ (0, class_validator_1.IsString)(),
93
+ __metadata("design:type", String)
94
+ ], AttributionCreateRequest.prototype, "shortlink", void 0);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Response de creación de registro de atribución
3
+ */
4
+ export declare class AttributionCreateResponse {
5
+ id: string;
6
+ directoryId: string;
7
+ createdAt: number;
8
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributionCreateResponse = void 0;
4
+ /**
5
+ * Response de creación de registro de atribución
6
+ */
7
+ class AttributionCreateResponse {
8
+ }
9
+ exports.AttributionCreateResponse = AttributionCreateResponse;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Response con detalle completo de un registro de atribución
3
+ */
4
+ export declare class AttributionDetailResponse {
5
+ id: string;
6
+ directoryId: string;
7
+ phoneNumber: string | null;
8
+ referralCode: string | null;
9
+ promotionName: string | null;
10
+ placement: string | null;
11
+ campaignMonth: string | null;
12
+ sharedBy: string | null;
13
+ geoSegment: string | null;
14
+ mediaSource: string | null;
15
+ campaign: string | null;
16
+ clickTime: string | null;
17
+ installTime: string | null;
18
+ isFirstLaunch: boolean | null;
19
+ afStatus: string | null;
20
+ shortlink: string | null;
21
+ createdAt: number;
22
+ updatedAt: number;
23
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributionDetailResponse = void 0;
4
+ /**
5
+ * Response con detalle completo de un registro de atribución
6
+ */
7
+ class AttributionDetailResponse {
8
+ }
9
+ exports.AttributionDetailResponse = AttributionDetailResponse;
@@ -0,0 +1,12 @@
1
+ import { AttributionDetailResponse } from './AttributionDetailResponse';
2
+ /**
3
+ * Response con listado paginado de registros de atribución
4
+ */
5
+ export declare class AttributionListResponse {
6
+ items: AttributionDetailResponse[];
7
+ pagination: {
8
+ page: number;
9
+ limit: number;
10
+ total: number;
11
+ };
12
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributionListResponse = void 0;
4
+ /**
5
+ * Response con listado paginado de registros de atribución
6
+ */
7
+ class AttributionListResponse {
8
+ }
9
+ exports.AttributionListResponse = AttributionListResponse;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Response con estadísticas agregadas de atribución
3
+ */
4
+ export declare class AttributionStatsResponse {
5
+ totalRecords: number;
6
+ byCampaign: {
7
+ campaign: string;
8
+ count: number;
9
+ }[];
10
+ byMediaSource: {
11
+ mediaSource: string;
12
+ count: number;
13
+ }[];
14
+ byGeoSegment: {
15
+ geoSegment: string;
16
+ count: number;
17
+ }[];
18
+ byAfStatus: {
19
+ afStatus: string;
20
+ count: number;
21
+ }[];
22
+ byCampaignMonth: {
23
+ campaignMonth: string;
24
+ count: number;
25
+ }[];
26
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributionStatsResponse = void 0;
4
+ /**
5
+ * Response con estadísticas agregadas de atribución
6
+ */
7
+ class AttributionStatsResponse {
8
+ }
9
+ exports.AttributionStatsResponse = AttributionStatsResponse;
@@ -0,0 +1,5 @@
1
+ export * from './dtos/AttributionCreateRequest';
2
+ export * from './dtos/AttributionCreateResponse';
3
+ export * from './dtos/AttributionDetailResponse';
4
+ export * from './dtos/AttributionListResponse';
5
+ export * from './dtos/AttributionStatsResponse';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // dtos
18
+ __exportStar(require("./dtos/AttributionCreateRequest"), exports);
19
+ __exportStar(require("./dtos/AttributionCreateResponse"), exports);
20
+ __exportStar(require("./dtos/AttributionDetailResponse"), exports);
21
+ __exportStar(require("./dtos/AttributionListResponse"), exports);
22
+ __exportStar(require("./dtos/AttributionStatsResponse"), exports);
package/bin/index.d.ts CHANGED
@@ -61,3 +61,4 @@ export * as Credit from './credit';
61
61
  export * as CreditEngine from './creditEngine';
62
62
  export * as PlatformErrorEvents from './platformErrorEvents';
63
63
  export * as TeamsConnector from './teamsConnector';
64
+ export * as Funnel from './funnel';
package/bin/index.js CHANGED
@@ -15,16 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = exports.Crypto = void 0;
27
- exports.TeamsConnector = exports.PlatformErrorEvents = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = void 0;
37
+ exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = void 0;
28
38
  exports.Crypto = __importStar(require("./crypto"));
29
39
  exports.Account = __importStar(require("./account"));
30
40
  exports.Activity = __importStar(require("./activity"));
@@ -88,3 +98,4 @@ exports.Credit = __importStar(require("./credit"));
88
98
  exports.CreditEngine = __importStar(require("./creditEngine"));
89
99
  exports.PlatformErrorEvents = __importStar(require("./platformErrorEvents"));
90
100
  exports.TeamsConnector = __importStar(require("./teamsConnector"));
101
+ exports.Funnel = __importStar(require("./funnel"));
@@ -7,4 +7,5 @@ export declare class ServicePaymentTransactionItem {
7
7
  currencyId: string;
8
8
  status?: TransactionStatusEnum;
9
9
  relatedProductId?: string;
10
+ metadata?: any;
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.0.20",
3
+ "version": "3.0.22",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,67 @@
1
+ import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator';
2
+
3
+ /**
4
+ * Request para crear un registro de atribución de AppsFlyer
5
+ */
6
+ export class AttributionCreateRequest {
7
+
8
+ @IsNotEmpty()
9
+ @IsString()
10
+ directoryId: string;
11
+
12
+ @IsOptional()
13
+ @IsString()
14
+ phoneNumber?: string;
15
+
16
+ @IsOptional()
17
+ @IsString()
18
+ referralCode?: string;
19
+
20
+ @IsOptional()
21
+ @IsString()
22
+ promotionName?: string;
23
+
24
+ @IsOptional()
25
+ @IsString()
26
+ placement?: string;
27
+
28
+ @IsOptional()
29
+ @IsString()
30
+ campaignMonth?: string;
31
+
32
+ @IsOptional()
33
+ @IsString()
34
+ sharedBy?: string;
35
+
36
+ @IsOptional()
37
+ @IsString()
38
+ geoSegment?: string;
39
+
40
+ @IsOptional()
41
+ @IsString()
42
+ mediaSource?: string;
43
+
44
+ @IsOptional()
45
+ @IsString()
46
+ campaign?: string;
47
+
48
+ @IsOptional()
49
+ @IsString()
50
+ clickTime?: string;
51
+
52
+ @IsOptional()
53
+ @IsString()
54
+ installTime?: string;
55
+
56
+ @IsOptional()
57
+ @IsBoolean()
58
+ isFirstLaunch?: boolean;
59
+
60
+ @IsOptional()
61
+ @IsString()
62
+ afStatus?: string;
63
+
64
+ @IsOptional()
65
+ @IsString()
66
+ shortlink?: string;
67
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Response de creación de registro de atribución
3
+ */
4
+ export class AttributionCreateResponse {
5
+ id: string;
6
+ directoryId: string;
7
+ createdAt: number;
8
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Response con detalle completo de un registro de atribución
3
+ */
4
+ export class AttributionDetailResponse {
5
+ id: string;
6
+ directoryId: string;
7
+ phoneNumber: string | null;
8
+ referralCode: string | null;
9
+ promotionName: string | null;
10
+ placement: string | null;
11
+ campaignMonth: string | null;
12
+ sharedBy: string | null;
13
+ geoSegment: string | null;
14
+ mediaSource: string | null;
15
+ campaign: string | null;
16
+ clickTime: string | null;
17
+ installTime: string | null;
18
+ isFirstLaunch: boolean | null;
19
+ afStatus: string | null;
20
+ shortlink: string | null;
21
+ createdAt: number;
22
+ updatedAt: number;
23
+ }
@@ -0,0 +1,13 @@
1
+ import { AttributionDetailResponse } from './AttributionDetailResponse';
2
+
3
+ /**
4
+ * Response con listado paginado de registros de atribución
5
+ */
6
+ export class AttributionListResponse {
7
+ items: AttributionDetailResponse[];
8
+ pagination: {
9
+ page: number;
10
+ limit: number;
11
+ total: number;
12
+ };
13
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Response con estadísticas agregadas de atribución
3
+ */
4
+ export class AttributionStatsResponse {
5
+ totalRecords: number;
6
+ byCampaign: { campaign: string; count: number }[];
7
+ byMediaSource: { mediaSource: string; count: number }[];
8
+ byGeoSegment: { geoSegment: string; count: number }[];
9
+ byAfStatus: { afStatus: string; count: number }[];
10
+ byCampaignMonth: { campaignMonth: string; count: number }[];
11
+ }
@@ -0,0 +1,6 @@
1
+ // dtos
2
+ export * from './dtos/AttributionCreateRequest';
3
+ export * from './dtos/AttributionCreateResponse';
4
+ export * from './dtos/AttributionDetailResponse';
5
+ export * from './dtos/AttributionListResponse';
6
+ export * from './dtos/AttributionStatsResponse';
package/src/index.ts CHANGED
@@ -61,3 +61,4 @@ export * as Credit from './credit';
61
61
  export * as CreditEngine from './creditEngine';
62
62
  export * as PlatformErrorEvents from './platformErrorEvents';
63
63
  export * as TeamsConnector from './teamsConnector';
64
+ export * as Funnel from './funnel';
@@ -8,4 +8,5 @@ export class ServicePaymentTransactionItem {
8
8
  currencyId: string;
9
9
  status?: TransactionStatusEnum;
10
10
  relatedProductId?: string;
11
+ metadata?: any;
11
12
  }
@@ -1,4 +0,0 @@
1
- export declare class ExternalAccountType {
2
- id?: number;
3
- name?: string;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExternalAccountType = void 0;
4
- class ExternalAccountType {
5
- }
6
- exports.ExternalAccountType = ExternalAccountType;
@@ -1,6 +0,0 @@
1
- import { DocumentSideEnum } from "../../identity";
2
- export declare class CentralPaymentsDocumentImages {
3
- side: DocumentSideEnum;
4
- url: string;
5
- extension: string;
6
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CentralPaymentsDocumentImages = void 0;
4
- class CentralPaymentsDocumentImages {
5
- }
6
- exports.CentralPaymentsDocumentImages = CentralPaymentsDocumentImages;
@@ -1,6 +0,0 @@
1
- import { IdentificationDocument } from "../../identity";
2
- import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
3
- export declare class CentralPaymentsDocumentUploadRequest {
4
- documentInfo: IdentificationDocument;
5
- documentImages: CentralPaymentsDocumentImages[];
6
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CentralPaymentsDocumentUploadRequest = void 0;
4
- class CentralPaymentsDocumentUploadRequest {
5
- }
6
- exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
@@ -1,13 +0,0 @@
1
- export declare class SignUpBackofficeRequest {
2
- name: string;
3
- phoneNumber: string;
4
- countryOfBirth: string;
5
- MEX_DebitAccountWish: boolean;
6
- USA_DebitAccountWish: boolean;
7
- countryOfDomicile: string;
8
- myReferralCode?: string;
9
- referralCode?: string;
10
- groupId?: string;
11
- isAgent: boolean;
12
- agentGroupId?: string;
13
- }
@@ -1,71 +0,0 @@
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.SignUpBackofficeRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class SignUpBackofficeRequest {
15
- }
16
- exports.SignUpBackofficeRequest = SignUpBackofficeRequest;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], SignUpBackofficeRequest.prototype, "name", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
25
- __metadata("design:type", String)
26
- ], SignUpBackofficeRequest.prototype, "phoneNumber", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsString)(),
29
- (0, class_validator_1.IsNotEmpty)(),
30
- __metadata("design:type", String)
31
- ], SignUpBackofficeRequest.prototype, "countryOfBirth", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsBoolean)(),
34
- (0, class_validator_1.IsNotEmpty)(),
35
- __metadata("design:type", Boolean)
36
- ], SignUpBackofficeRequest.prototype, "MEX_DebitAccountWish", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsBoolean)(),
39
- (0, class_validator_1.IsNotEmpty)(),
40
- __metadata("design:type", Boolean)
41
- ], SignUpBackofficeRequest.prototype, "USA_DebitAccountWish", void 0);
42
- __decorate([
43
- (0, class_validator_1.IsString)(),
44
- (0, class_validator_1.IsNotEmpty)(),
45
- __metadata("design:type", String)
46
- ], SignUpBackofficeRequest.prototype, "countryOfDomicile", void 0);
47
- __decorate([
48
- (0, class_validator_1.IsString)(),
49
- (0, class_validator_1.IsOptional)(),
50
- __metadata("design:type", String)
51
- ], SignUpBackofficeRequest.prototype, "myReferralCode", void 0);
52
- __decorate([
53
- (0, class_validator_1.IsString)(),
54
- (0, class_validator_1.IsOptional)(),
55
- __metadata("design:type", String)
56
- ], SignUpBackofficeRequest.prototype, "referralCode", void 0);
57
- __decorate([
58
- (0, class_validator_1.IsString)(),
59
- (0, class_validator_1.IsOptional)(),
60
- __metadata("design:type", String)
61
- ], SignUpBackofficeRequest.prototype, "groupId", void 0);
62
- __decorate([
63
- (0, class_validator_1.IsBoolean)(),
64
- (0, class_validator_1.IsNotEmpty)(),
65
- __metadata("design:type", Boolean)
66
- ], SignUpBackofficeRequest.prototype, "isAgent", void 0);
67
- __decorate([
68
- (0, class_validator_1.IsString)(),
69
- (0, class_validator_1.IsOptional)(),
70
- __metadata("design:type", String)
71
- ], SignUpBackofficeRequest.prototype, "agentGroupId", void 0);
@@ -1,10 +0,0 @@
1
- import { OfferStatusEnum } from "../enums/OfferStatusEnum";
2
- import { CreditStatusEnum } from "../enums/CreditStatusEnum";
3
- export declare class CreditBannerStateResponse {
4
- showBanner: boolean;
5
- bannerType: 'NURTURING' | 'OFFER_AVAILABLE' | 'ACTIVE_CREDIT' | 'NONE';
6
- offerStatus: OfferStatusEnum | null;
7
- creditStatus: CreditStatusEnum | null;
8
- message: string | null;
9
- maxOfferAmount: number | null;
10
- }