@corsa-labs/sdk 4.17.0 → 4.19.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.
Files changed (112) hide show
  1. package/dist/ComplianceClient.d.ts +6 -0
  2. package/dist/ComplianceClient.js +9 -0
  3. package/dist/ComplianceClient.js.map +1 -1
  4. package/dist/models/ActionConfigDto.d.ts +19 -0
  5. package/dist/models/ActionConfigDto.js +15 -0
  6. package/dist/models/ActionConfigDto.js.map +1 -0
  7. package/dist/models/ActivateRuleDto.d.ts +6 -0
  8. package/dist/models/ActivateRuleDto.js +3 -0
  9. package/dist/models/ActivateRuleDto.js.map +1 -0
  10. package/dist/models/AggregationFilterDto.d.ts +20 -0
  11. package/dist/models/AggregationFilterDto.js +21 -0
  12. package/dist/models/AggregationFilterDto.js.map +1 -0
  13. package/dist/models/AlertCustomFieldDataDto.d.ts +22 -0
  14. package/dist/models/AlertCustomFieldDataDto.js +3 -0
  15. package/dist/models/AlertCustomFieldDataDto.js.map +1 -0
  16. package/dist/models/AlertDto.d.ts +2 -1
  17. package/dist/models/AlertDto.js.map +1 -1
  18. package/dist/models/BankAccountCustomFieldDataDto.d.ts +22 -0
  19. package/dist/models/BankAccountCustomFieldDataDto.js +3 -0
  20. package/dist/models/BankAccountCustomFieldDataDto.js.map +1 -0
  21. package/dist/models/BankAccountDto.d.ts +2 -1
  22. package/dist/models/BlockchainWalletCustomFieldDataDto.d.ts +22 -0
  23. package/dist/models/BlockchainWalletCustomFieldDataDto.js +3 -0
  24. package/dist/models/BlockchainWalletCustomFieldDataDto.js.map +1 -0
  25. package/dist/models/BlockchainWalletDto.d.ts +2 -1
  26. package/dist/models/ConditionDto.d.ts +146 -0
  27. package/dist/models/ConditionDto.js +81 -0
  28. package/dist/models/ConditionDto.js.map +1 -0
  29. package/dist/models/ConditionResultDto.d.ts +30 -0
  30. package/dist/models/ConditionResultDto.js +3 -0
  31. package/dist/models/ConditionResultDto.js.map +1 -0
  32. package/dist/models/ConditionsDto.d.ts +11 -0
  33. package/dist/models/ConditionsDto.js +3 -0
  34. package/dist/models/ConditionsDto.js.map +1 -0
  35. package/dist/models/CopyRuleTemplateResponseDto.d.ts +3 -0
  36. package/dist/models/CopyRuleTemplateResponseDto.js +3 -0
  37. package/dist/models/CopyRuleTemplateResponseDto.js.map +1 -0
  38. package/dist/models/CorporateClientCustomFieldDataDto.d.ts +40 -0
  39. package/dist/models/CorporateClientCustomFieldDataDto.js +20 -0
  40. package/dist/models/CorporateClientCustomFieldDataDto.js.map +1 -0
  41. package/dist/models/CorporateClientDto.d.ts +2 -1
  42. package/dist/models/CorporateClientDto.js.map +1 -1
  43. package/dist/models/CreateAlertDto.d.ts +2 -1
  44. package/dist/models/CreateAlertDto.js.map +1 -1
  45. package/dist/models/CreateBankAccountDto.d.ts +2 -1
  46. package/dist/models/CreateBankAccountDto.js.map +1 -1
  47. package/dist/models/CreateBlockchainWalletDto.d.ts +2 -1
  48. package/dist/models/CreateCorporateClientDto.d.ts +2 -1
  49. package/dist/models/CreateCorporateClientDto.js.map +1 -1
  50. package/dist/models/CreateIndividualClientDto.d.ts +2 -1
  51. package/dist/models/CreateIndividualClientDto.js.map +1 -1
  52. package/dist/models/CreateRuleDto.d.ts +20 -0
  53. package/dist/models/CreateRuleDto.js +3 -0
  54. package/dist/models/CreateRuleDto.js.map +1 -0
  55. package/dist/models/CreateTransactionDto.d.ts +2 -1
  56. package/dist/models/DisableRuleDto.d.ts +6 -0
  57. package/dist/models/DisableRuleDto.js +3 -0
  58. package/dist/models/DisableRuleDto.js.map +1 -0
  59. package/dist/models/EvaluationRequestDto.d.ts +10 -0
  60. package/dist/models/EvaluationRequestDto.js +3 -0
  61. package/dist/models/EvaluationRequestDto.js.map +1 -0
  62. package/dist/models/EvaluationResultDto.d.ts +27 -0
  63. package/dist/models/EvaluationResultDto.js +15 -0
  64. package/dist/models/EvaluationResultDto.js.map +1 -0
  65. package/dist/models/FactPathDto.d.ts +26 -0
  66. package/dist/models/FactPathDto.js +17 -0
  67. package/dist/models/FactPathDto.js.map +1 -0
  68. package/dist/models/IndividualClientCustomFieldDataDto.d.ts +40 -0
  69. package/dist/models/IndividualClientCustomFieldDataDto.js +20 -0
  70. package/dist/models/IndividualClientCustomFieldDataDto.js.map +1 -0
  71. package/dist/models/IndividualClientDto.d.ts +2 -1
  72. package/dist/models/IndividualClientDto.js.map +1 -1
  73. package/dist/models/ParticipantDto.d.ts +28 -0
  74. package/dist/models/ParticipantDto.js +25 -0
  75. package/dist/models/ParticipantDto.js.map +1 -0
  76. package/dist/models/RuleMatchDto.d.ts +28 -0
  77. package/dist/models/RuleMatchDto.js +15 -0
  78. package/dist/models/RuleMatchDto.js.map +1 -0
  79. package/dist/models/RuleResponseDto.d.ts +18 -0
  80. package/dist/models/RuleResponseDto.js +13 -0
  81. package/dist/models/RuleResponseDto.js.map +1 -0
  82. package/dist/models/RuleTemplateResponseDto.d.ts +12 -0
  83. package/dist/models/RuleTemplateResponseDto.js +3 -0
  84. package/dist/models/RuleTemplateResponseDto.js.map +1 -0
  85. package/dist/models/TransactionCustomFieldDto.d.ts +22 -0
  86. package/dist/models/TransactionCustomFieldDto.js +3 -0
  87. package/dist/models/TransactionCustomFieldDto.js.map +1 -0
  88. package/dist/models/TransactionDto.d.ts +2 -1
  89. package/dist/models/TransactionDto.js.map +1 -1
  90. package/dist/models/UpdateAlertDto.d.ts +2 -1
  91. package/dist/models/UpdateAlertDto.js.map +1 -1
  92. package/dist/models/UpdateBankAccountDto.d.ts +2 -1
  93. package/dist/models/UpdateBankAccountDto.js.map +1 -1
  94. package/dist/models/UpdateBlockchainWalletDto.d.ts +2 -1
  95. package/dist/models/UpdateCorporateClientDto.d.ts +2 -1
  96. package/dist/models/UpdateCorporateClientDto.js.map +1 -1
  97. package/dist/models/UpdateIndividualClientDto.d.ts +2 -1
  98. package/dist/models/UpdateIndividualClientDto.js.map +1 -1
  99. package/dist/models/UpdateRuleDto.d.ts +15 -0
  100. package/dist/models/UpdateRuleDto.js +3 -0
  101. package/dist/models/UpdateRuleDto.js.map +1 -0
  102. package/dist/models/UpdateTransactionDto.d.ts +2 -1
  103. package/dist/services/EvaluationService.d.ts +16 -0
  104. package/dist/services/EvaluationService.js +26 -0
  105. package/dist/services/EvaluationService.js.map +1 -0
  106. package/dist/services/RuleTemplatesService.d.ts +157 -0
  107. package/dist/services/RuleTemplatesService.js +192 -0
  108. package/dist/services/RuleTemplatesService.js.map +1 -0
  109. package/dist/services/RulesService.d.ts +223 -0
  110. package/dist/services/RulesService.js +299 -0
  111. package/dist/services/RulesService.js.map +1 -0
  112. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleTemplateResponseDto.js","sourceRoot":"","sources":["../../models/RuleTemplateResponseDto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ export type TransactionCustomFieldDto = {
2
+ /**
3
+ * The label of the custom field
4
+ */
5
+ label: string;
6
+ /**
7
+ * Value of the custom field. It can be a string, number, boolean, object (JSON), or array of objects. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
8
+ */
9
+ value: (string | number | boolean | Record<string, any>);
10
+ /**
11
+ * Description of the custom field
12
+ */
13
+ description?: string;
14
+ /**
15
+ * Array of possible values for this custom field (enum). Only applies to string and number values.
16
+ */
17
+ possibleValues?: Array<string>;
18
+ /**
19
+ * Whether this custom field is immutable and cannot be changed after creation
20
+ */
21
+ immutable?: boolean;
22
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TransactionCustomFieldDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionCustomFieldDto.js","sourceRoot":"","sources":["../../models/TransactionCustomFieldDto.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  import type { TransactionAmountDto } from './TransactionAmountDto';
2
+ import type { TransactionCustomFieldDto } from './TransactionCustomFieldDto';
2
3
  import type { TransactionIntegrationsDto } from './TransactionIntegrationsDto';
3
4
  import type { TransactionSourceOrDestinationDto } from './TransactionSourceOrDestinationDto';
4
5
  import type { TransactionStatusDto } from './TransactionStatusDto';
@@ -66,7 +67,7 @@ export type TransactionDto = {
66
67
  /**
67
68
  * Custom fields data
68
69
  */
69
- customFields?: Record<string, any>;
70
+ customFields?: Record<string, TransactionCustomFieldDto>;
70
71
  /**
71
72
  * Integrations data for the transaction
72
73
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionDto.js","sourceRoot":"","sources":["../../models/TransactionDto.ts"],"names":[],"mappings":";;;AA8EA,IAAiB,cAAc,CAgB9B;AAhBD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,IAIX;IAJD,WAAY,IAAI;QACZ,2BAAmB,CAAA;QACnB,6BAAqB,CAAA;QACrB,uBAAe,CAAA;IACnB,CAAC,EAJW,IAAI,GAAJ,mBAAI,KAAJ,mBAAI,QAIf;IACD;;OAEG;IACH,IAAY,WAGX;IAHD,WAAY,WAAW;QACnB,0BAAW,CAAA;QACX,4BAAa,CAAA;IACjB,CAAC,EAHW,WAAW,GAAX,0BAAW,KAAX,0BAAW,QAGtB;AACL,CAAC,EAhBgB,cAAc,8BAAd,cAAc,QAgB9B"}
1
+ {"version":3,"file":"TransactionDto.js","sourceRoot":"","sources":["../../models/TransactionDto.ts"],"names":[],"mappings":";;;AA+EA,IAAiB,cAAc,CAgB9B;AAhBD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,IAIX;IAJD,WAAY,IAAI;QACZ,2BAAmB,CAAA;QACnB,6BAAqB,CAAA;QACrB,uBAAe,CAAA;IACnB,CAAC,EAJW,IAAI,GAAJ,mBAAI,KAAJ,mBAAI,QAIf;IACD;;OAEG;IACH,IAAY,WAGX;IAHD,WAAY,WAAW;QACnB,0BAAW,CAAA;QACX,4BAAa,CAAA;IACjB,CAAC,EAHW,WAAW,GAAX,0BAAW,KAAX,0BAAW,QAGtB;AACL,CAAC,EAhBgB,cAAc,8BAAd,cAAc,QAgB9B"}
@@ -1,3 +1,4 @@
1
+ import type { AlertCustomFieldDataDto } from './AlertCustomFieldDataDto';
1
2
  import type { AlertDecisionDto } from './AlertDecisionDto';
2
3
  import type { AlertSourceDto } from './AlertSourceDto';
3
4
  export type UpdateAlertDto = {
@@ -36,7 +37,7 @@ export type UpdateAlertDto = {
36
37
  /**
37
38
  * Custom fields data
38
39
  */
39
- customFields?: Record<string, any>;
40
+ customFields?: Record<string, AlertCustomFieldDataDto>;
40
41
  /**
41
42
  * List of client IDs associated with this alert (maximum 10). Replace the existing clients with the new ones.
42
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateAlertDto.js","sourceRoot":"","sources":["../../models/UpdateAlertDto.ts"],"names":[],"mappings":";;;AA4DA,IAAiB,cAAc,CAmC9B;AAnCD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAInB;IACD;;OAEG;IACH,IAAY,QAaX;IAbD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,uBAAW,CAAA;QACX,6DAAiD,CAAA;QACjD,6EAAiE,CAAA;QACjE,uDAA2C,CAAA;QAC3C,2CAA+B,CAAA;QAC/B,+DAAmD,CAAA;QACnD,+CAAmC,CAAA;QACnC,2BAAe,CAAA;QACf,+CAAmC,CAAA;QACnC,uBAAW,CAAA;QACX,2BAAe,CAAA;IACnB,CAAC,EAbW,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAanB;IACD;;OAEG;IACH,IAAY,MAKX;IALD,WAAY,MAAM;QACd,qBAAW,CAAA;QACX,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;IACzB,CAAC,EALW,MAAM,GAAN,qBAAM,KAAN,qBAAM,QAKjB;AACL,CAAC,EAnCgB,cAAc,8BAAd,cAAc,QAmC9B"}
1
+ {"version":3,"file":"UpdateAlertDto.js","sourceRoot":"","sources":["../../models/UpdateAlertDto.ts"],"names":[],"mappings":";;;AA6DA,IAAiB,cAAc,CAmC9B;AAnCD,WAAiB,cAAc;IAC3B;;OAEG;IACH,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,6BAAiB,CAAA;QACjB,yBAAa,CAAA;IACjB,CAAC,EAJW,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAInB;IACD;;OAEG;IACH,IAAY,QAaX;IAbD,WAAY,QAAQ;QAChB,uBAAW,CAAA;QACX,uBAAW,CAAA;QACX,6DAAiD,CAAA;QACjD,6EAAiE,CAAA;QACjE,uDAA2C,CAAA;QAC3C,2CAA+B,CAAA;QAC/B,+DAAmD,CAAA;QACnD,+CAAmC,CAAA;QACnC,2BAAe,CAAA;QACf,+CAAmC,CAAA;QACnC,uBAAW,CAAA;QACX,2BAAe,CAAA;IACnB,CAAC,EAbW,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAanB;IACD;;OAEG;IACH,IAAY,MAKX;IALD,WAAY,MAAM;QACd,qBAAW,CAAA;QACX,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;IACzB,CAAC,EALW,MAAM,GAAN,qBAAM,KAAN,qBAAM,QAKjB;AACL,CAAC,EAnCgB,cAAc,8BAAd,cAAc,QAmC9B"}
@@ -1,3 +1,4 @@
1
+ import type { BankAccountCustomFieldDataDto } from './BankAccountCustomFieldDataDto';
1
2
  import type { ClientBankAccountRelationDto } from './ClientBankAccountRelationDto';
2
3
  import type { CreateOrUpdateRiskDto } from './CreateOrUpdateRiskDto';
3
4
  export type UpdateBankAccountDto = {
@@ -44,7 +45,7 @@ export type UpdateBankAccountDto = {
44
45
  /**
45
46
  * Custom fields data
46
47
  */
47
- customFields?: Record<string, any>;
48
+ customFields?: Record<string, BankAccountCustomFieldDataDto>;
48
49
  /**
49
50
  * List of clients associated with the bank account (maximum 50)
50
51
  */
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateBankAccountDto.js","sourceRoot":"","sources":["../../models/UpdateBankAccountDto.ts"],"names":[],"mappings":";;;AA4DA,IAAiB,oBAAoB,CASpC;AATD,WAAiB,oBAAoB;IACjC;;OAEG;IACH,IAAY,MAIX;IAJD,WAAY,MAAM;QACd,2BAAiB,CAAA;QACjB,+BAAqB,CAAA;QACrB,2BAAiB,CAAA;IACrB,CAAC,EAJW,MAAM,GAAN,2BAAM,KAAN,2BAAM,QAIjB;AACL,CAAC,EATgB,oBAAoB,oCAApB,oBAAoB,QASpC"}
1
+ {"version":3,"file":"UpdateBankAccountDto.js","sourceRoot":"","sources":["../../models/UpdateBankAccountDto.ts"],"names":[],"mappings":";;;AA6DA,IAAiB,oBAAoB,CASpC;AATD,WAAiB,oBAAoB;IACjC;;OAEG;IACH,IAAY,MAIX;IAJD,WAAY,MAAM;QACd,2BAAiB,CAAA;QACjB,+BAAqB,CAAA;QACrB,2BAAiB,CAAA;IACrB,CAAC,EAJW,MAAM,GAAN,2BAAM,KAAN,2BAAM,QAIjB;AACL,CAAC,EATgB,oBAAoB,oCAApB,oBAAoB,QASpC"}
@@ -1,3 +1,4 @@
1
+ import type { BlockchainWalletCustomFieldDataDto } from './BlockchainWalletCustomFieldDataDto';
1
2
  import type { BlockchainWalletIntegrationsDto } from './BlockchainWalletIntegrationsDto';
2
3
  import type { ClientBlockchainWalletRelationDto } from './ClientBlockchainWalletRelationDto';
3
4
  import type { CreateOrUpdateRiskDto } from './CreateOrUpdateRiskDto';
@@ -17,7 +18,7 @@ export type UpdateBlockchainWalletDto = {
17
18
  /**
18
19
  * Custom fields data
19
20
  */
20
- customFields?: Record<string, any>;
21
+ customFields?: Record<string, BlockchainWalletCustomFieldDataDto>;
21
22
  /**
22
23
  * List of clients associated with the blockchain wallet (maximum 50)
23
24
  */
@@ -2,6 +2,7 @@ import type { CorporateClientAddressDto } from './CorporateClientAddressDto';
2
2
  import type { CorporateClientAdverseMediaDto } from './CorporateClientAdverseMediaDto';
3
3
  import type { CorporateClientApplicationDto } from './CorporateClientApplicationDto';
4
4
  import type { CorporateClientBusinessDto } from './CorporateClientBusinessDto';
5
+ import type { CorporateClientCustomFieldDataDto } from './CorporateClientCustomFieldDataDto';
5
6
  import type { CorporateClientGeneralDto } from './CorporateClientGeneralDto';
6
7
  import type { CorporateClientIntegrationsDto } from './CorporateClientIntegrationsDto';
7
8
  import type { CorporateClientPEPDto } from './CorporateClientPEPDto';
@@ -60,7 +61,7 @@ export type UpdateCorporateClientDto = {
60
61
  /**
61
62
  * Custom fields data
62
63
  */
63
- customFields?: Record<string, any>;
64
+ customFields?: Record<string, CorporateClientCustomFieldDataDto>;
64
65
  /**
65
66
  * Tags to add to the corporate client (maximum 50)
66
67
  */
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateCorporateClientDto.js","sourceRoot":"","sources":["../../models/UpdateCorporateClientDto.ts"],"names":[],"mappings":";;;AA8FA,IAAiB,wBAAwB,CAsBxC;AAtBD,WAAiB,wBAAwB;IACrC;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,uCAAc,KAAd,uCAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aAUX;IAVD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;QACrC,oEAAmD,CAAA;IACvD,CAAC,EAVW,aAAa,GAAb,sCAAa,KAAb,sCAAa,QAUxB;AACL,CAAC,EAtBgB,wBAAwB,wCAAxB,wBAAwB,QAsBxC"}
1
+ {"version":3,"file":"UpdateCorporateClientDto.js","sourceRoot":"","sources":["../../models/UpdateCorporateClientDto.ts"],"names":[],"mappings":";;;AA+FA,IAAiB,wBAAwB,CAsBxC;AAtBD,WAAiB,wBAAwB;IACrC;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,uCAAc,KAAd,uCAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aAUX;IAVD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;QACrC,oEAAmD,CAAA;IACvD,CAAC,EAVW,aAAa,GAAb,sCAAa,KAAb,sCAAa,QAUxB;AACL,CAAC,EAtBgB,wBAAwB,wCAAxB,wBAAwB,QAsBxC"}
@@ -3,6 +3,7 @@ import type { CreateOrUpdateRiskDto } from './CreateOrUpdateRiskDto';
3
3
  import type { IndividualClientAddressDto } from './IndividualClientAddressDto';
4
4
  import type { IndividualClientApplicationInformationDto } from './IndividualClientApplicationInformationDto';
5
5
  import type { IndividualClientContactInformationDto } from './IndividualClientContactInformationDto';
6
+ import type { IndividualClientCustomFieldDataDto } from './IndividualClientCustomFieldDataDto';
6
7
  import type { IndividualClientFinancialInformationDto } from './IndividualClientFinancialInformationDto';
7
8
  import type { IndividualClientGeneralInformationDto } from './IndividualClientGeneralInformationDto';
8
9
  import type { IndividualClientIntegrationsDto } from './IndividualClientIntegrationsDto';
@@ -49,7 +50,7 @@ export type UpdateIndividualClientDto = {
49
50
  /**
50
51
  * Custom fields data
51
52
  */
52
- customFields?: Record<string, any>;
53
+ customFields?: Record<string, IndividualClientCustomFieldDataDto>;
53
54
  /**
54
55
  * Tags to add to the individual client (maximum 50)
55
56
  */
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateIndividualClientDto.js","sourceRoot":"","sources":["../../models/UpdateIndividualClientDto.ts"],"names":[],"mappings":";;;AAmGA,IAAiB,yBAAyB,CAsBzC;AAtBD,WAAiB,yBAAyB;IACtC;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,wCAAc,KAAd,wCAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aAUX;IAVD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;QACrC,oEAAmD,CAAA;IACvD,CAAC,EAVW,aAAa,GAAb,uCAAa,KAAb,uCAAa,QAUxB;AACL,CAAC,EAtBgB,yBAAyB,yCAAzB,yBAAyB,QAsBzC"}
1
+ {"version":3,"file":"UpdateIndividualClientDto.js","sourceRoot":"","sources":["../../models/UpdateIndividualClientDto.ts"],"names":[],"mappings":";;;AAoGA,IAAiB,yBAAyB,CAsBzC;AAtBD,WAAiB,yBAAyB;IACtC;;OAEG;IACH,IAAY,cAGX;IAHD,WAAY,cAAc;QACtB,mCAAiB,CAAA;QACjB,2CAAyB,CAAA;IAC7B,CAAC,EAHW,cAAc,GAAd,wCAAc,KAAd,wCAAc,QAGzB;IACD;;OAEG;IACH,IAAY,aAUX;IAVD,WAAY,aAAa;QACrB,sCAAqB,CAAA;QACrB,0DAAyC,CAAA;QACzC,wCAAuB,CAAA;QACvB,sCAAqB,CAAA;QACrB,4CAA2B,CAAA;QAC3B,kCAAiB,CAAA;QACjB,wDAAuC,CAAA;QACvC,sDAAqC,CAAA;QACrC,oEAAmD,CAAA;IACvD,CAAC,EAVW,aAAa,GAAb,uCAAa,KAAb,uCAAa,QAUxB;AACL,CAAC,EAtBgB,yBAAyB,yCAAzB,yBAAyB,QAsBzC"}
@@ -0,0 +1,15 @@
1
+ import type { ActionConfigDto } from './ActionConfigDto';
2
+ import type { ConditionsDto } from './ConditionsDto';
3
+ export type UpdateRuleDto = {
4
+ name?: string;
5
+ description?: string;
6
+ actions?: Array<ActionConfigDto>;
7
+ /**
8
+ * Rule conditions (IF logic)
9
+ */
10
+ conditions?: ConditionsDto;
11
+ /**
12
+ * Reason for updating the rule (used for audit trail when updating active rules)
13
+ */
14
+ reason?: string;
15
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=UpdateRuleDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateRuleDto.js","sourceRoot":"","sources":["../../models/UpdateRuleDto.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  import type { TransactionAmountDto } from './TransactionAmountDto';
2
+ import type { TransactionCustomFieldDto } from './TransactionCustomFieldDto';
2
3
  import type { TransactionIntegrationsDto } from './TransactionIntegrationsDto';
3
4
  export type UpdateTransactionDto = {
4
5
  /**
@@ -24,5 +25,5 @@ export type UpdateTransactionDto = {
24
25
  /**
25
26
  * Custom fields data
26
27
  */
27
- customFields?: Record<string, any>;
28
+ customFields?: Record<string, TransactionCustomFieldDto>;
28
29
  };
@@ -0,0 +1,16 @@
1
+ import type { EvaluationRequestDto } from '../models/EvaluationRequestDto';
2
+ import type { EvaluationResultDto } from '../models/EvaluationResultDto';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
+ export declare class EvaluationService {
6
+ readonly httpRequest: BaseHttpRequest;
7
+ constructor(httpRequest: BaseHttpRequest);
8
+ /**
9
+ * Evaluate rules against provided transaction
10
+ * Evaluate rules against provided transaction
11
+ * @param requestBody
12
+ * @returns EvaluationResultDto
13
+ * @throws ApiError
14
+ */
15
+ evaluate(requestBody: EvaluationRequestDto): CancelablePromise<EvaluationResultDto>;
16
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EvaluationService = void 0;
4
+ class EvaluationService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * Evaluate rules against provided transaction
11
+ * Evaluate rules against provided transaction
12
+ * @param requestBody
13
+ * @returns EvaluationResultDto
14
+ * @throws ApiError
15
+ */
16
+ evaluate(requestBody) {
17
+ return this.httpRequest.request({
18
+ method: 'POST',
19
+ url: '/v1/evaluation/evaluate',
20
+ body: requestBody,
21
+ mediaType: 'application/json',
22
+ });
23
+ }
24
+ }
25
+ exports.EvaluationService = EvaluationService;
26
+ //# sourceMappingURL=EvaluationService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EvaluationService.js","sourceRoot":"","sources":["../../services/EvaluationService.ts"],"names":[],"mappings":";;;AAQA,MAAa,iBAAiB;IACE;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,QAAQ,CACX,WAAiC;QAEjC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AAnBD,8CAmBC"}
@@ -0,0 +1,157 @@
1
+ import type { CopyRuleTemplateResponseDto } from '../models/CopyRuleTemplateResponseDto';
2
+ import type { RuleTemplateResponseDto } from '../models/RuleTemplateResponseDto';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
+ export declare class RuleTemplatesService {
6
+ readonly httpRequest: BaseHttpRequest;
7
+ constructor(httpRequest: BaseHttpRequest);
8
+ /**
9
+ * List rule templates with pagination
10
+ * List rule templates with pagination
11
+ * @param page Page number to retrieve. If you provide invalid value the default page number will applied
12
+ *
13
+ * **Example:** 1
14
+ *
15
+ *
16
+ * **Default Value:** 1
17
+ *
18
+ *
19
+ * @param limit Number of records per page.
20
+ *
21
+ *
22
+ * **Example:** 20
23
+ *
24
+ *
25
+ *
26
+ * **Default Value:** 20
27
+ *
28
+ *
29
+ *
30
+ * **Max Value:** 100
31
+ *
32
+ *
33
+ * If provided value is greater than max value, max value will be applied.
34
+ *
35
+ * @param filterId Filter by id query param.
36
+ *
37
+ * **Format:** filter.id={$not}:OPERATION:VALUE
38
+ *
39
+ *
40
+ *
41
+ * **Example:** filter.id=$eq:John Doe&filter.id=$in:John Doe
42
+ *
43
+ * **Available Operations**
44
+ * - $eq
45
+ *
46
+ * - $in
47
+ *
48
+ * - $and
49
+ *
50
+ * - $or
51
+ * @param filterName Filter by name query param.
52
+ *
53
+ * **Format:** filter.name={$not}:OPERATION:VALUE
54
+ *
55
+ *
56
+ *
57
+ * **Example:** filter.name=$eq:John Doe&filter.name=$ilike:John Doe
58
+ *
59
+ * **Available Operations**
60
+ * - $eq
61
+ *
62
+ * - $ilike
63
+ *
64
+ * - $in
65
+ *
66
+ * - $and
67
+ *
68
+ * - $or
69
+ * @param filterProducts Filter by products query param.
70
+ *
71
+ * **Format:** filter.products={$not}:OPERATION:VALUE
72
+ *
73
+ *
74
+ *
75
+ * **Example:** filter.products=$contains:John Doe
76
+ *
77
+ * **Available Operations**
78
+ * - $contains
79
+ *
80
+ * - $and
81
+ *
82
+ * - $or
83
+ * @param filterTypologies Filter by typologies query param.
84
+ *
85
+ * **Format:** filter.typologies={$not}:OPERATION:VALUE
86
+ *
87
+ *
88
+ *
89
+ * **Example:** filter.typologies=$contains:John Doe
90
+ *
91
+ * **Available Operations**
92
+ * - $contains
93
+ *
94
+ * - $and
95
+ *
96
+ * - $or
97
+ * @param sortBy Parameter to sort by.
98
+ * To sort by multiple fields, just provide query param multiple types. The order in url defines an order of sorting
99
+ *
100
+ * **Format:** {fieldName}:{DIRECTION}
101
+ *
102
+ *
103
+ * **Example:** sortBy=id:DESC&sortBy=name:DESC
104
+ *
105
+ *
106
+ * **Default Value:** name:ASC
107
+ *
108
+ * **Available Fields**
109
+ * - id
110
+ *
111
+ * - name
112
+ *
113
+ * - updatedAt
114
+ *
115
+ * - createdAt
116
+ *
117
+ * @param search Search term to filter result values
118
+ *
119
+ * **Example:** John
120
+ *
121
+ *
122
+ * **Default Value:** No default value
123
+ *
124
+ *
125
+ * @param searchBy List of fields to search by term to filter result values
126
+ *
127
+ * **Example:** name,description
128
+ *
129
+ *
130
+ * **Default Value:** By default all fields mentioned below will be used to search by term
131
+ *
132
+ * **Available Fields**
133
+ * - name
134
+ *
135
+ * - description
136
+ *
137
+ * @returns any
138
+ * @throws ApiError
139
+ */
140
+ listRuleTemplates(page?: number, limit?: number, filterId?: Array<string>, filterName?: Array<string>, filterProducts?: Array<string>, filterTypologies?: Array<string>, sortBy?: Array<'id:ASC' | 'id:DESC' | 'name:ASC' | 'name:DESC' | 'updatedAt:ASC' | 'updatedAt:DESC' | 'createdAt:ASC' | 'createdAt:DESC'>, search?: string, searchBy?: Array<string>): CancelablePromise<any>;
141
+ /**
142
+ * Get a rule template by ID
143
+ * Get a rule template by ID
144
+ * @param id
145
+ * @returns RuleTemplateResponseDto
146
+ * @throws ApiError
147
+ */
148
+ getRuleTemplate(id: string): CancelablePromise<RuleTemplateResponseDto>;
149
+ /**
150
+ * Copy a rule template to workspace as a draft rule
151
+ * Copy a rule template to workspace as a draft rule
152
+ * @param id
153
+ * @returns CopyRuleTemplateResponseDto
154
+ * @throws ApiError
155
+ */
156
+ copyRuleTemplate(id: string): CancelablePromise<CopyRuleTemplateResponseDto>;
157
+ }
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RuleTemplatesService = void 0;
4
+ class RuleTemplatesService {
5
+ httpRequest;
6
+ constructor(httpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * List rule templates with pagination
11
+ * List rule templates with pagination
12
+ * @param page Page number to retrieve. If you provide invalid value the default page number will applied
13
+ *
14
+ * **Example:** 1
15
+ *
16
+ *
17
+ * **Default Value:** 1
18
+ *
19
+ *
20
+ * @param limit Number of records per page.
21
+ *
22
+ *
23
+ * **Example:** 20
24
+ *
25
+ *
26
+ *
27
+ * **Default Value:** 20
28
+ *
29
+ *
30
+ *
31
+ * **Max Value:** 100
32
+ *
33
+ *
34
+ * If provided value is greater than max value, max value will be applied.
35
+ *
36
+ * @param filterId Filter by id query param.
37
+ *
38
+ * **Format:** filter.id={$not}:OPERATION:VALUE
39
+ *
40
+ *
41
+ *
42
+ * **Example:** filter.id=$eq:John Doe&filter.id=$in:John Doe
43
+ *
44
+ * **Available Operations**
45
+ * - $eq
46
+ *
47
+ * - $in
48
+ *
49
+ * - $and
50
+ *
51
+ * - $or
52
+ * @param filterName Filter by name query param.
53
+ *
54
+ * **Format:** filter.name={$not}:OPERATION:VALUE
55
+ *
56
+ *
57
+ *
58
+ * **Example:** filter.name=$eq:John Doe&filter.name=$ilike:John Doe
59
+ *
60
+ * **Available Operations**
61
+ * - $eq
62
+ *
63
+ * - $ilike
64
+ *
65
+ * - $in
66
+ *
67
+ * - $and
68
+ *
69
+ * - $or
70
+ * @param filterProducts Filter by products query param.
71
+ *
72
+ * **Format:** filter.products={$not}:OPERATION:VALUE
73
+ *
74
+ *
75
+ *
76
+ * **Example:** filter.products=$contains:John Doe
77
+ *
78
+ * **Available Operations**
79
+ * - $contains
80
+ *
81
+ * - $and
82
+ *
83
+ * - $or
84
+ * @param filterTypologies Filter by typologies query param.
85
+ *
86
+ * **Format:** filter.typologies={$not}:OPERATION:VALUE
87
+ *
88
+ *
89
+ *
90
+ * **Example:** filter.typologies=$contains:John Doe
91
+ *
92
+ * **Available Operations**
93
+ * - $contains
94
+ *
95
+ * - $and
96
+ *
97
+ * - $or
98
+ * @param sortBy Parameter to sort by.
99
+ * To sort by multiple fields, just provide query param multiple types. The order in url defines an order of sorting
100
+ *
101
+ * **Format:** {fieldName}:{DIRECTION}
102
+ *
103
+ *
104
+ * **Example:** sortBy=id:DESC&sortBy=name:DESC
105
+ *
106
+ *
107
+ * **Default Value:** name:ASC
108
+ *
109
+ * **Available Fields**
110
+ * - id
111
+ *
112
+ * - name
113
+ *
114
+ * - updatedAt
115
+ *
116
+ * - createdAt
117
+ *
118
+ * @param search Search term to filter result values
119
+ *
120
+ * **Example:** John
121
+ *
122
+ *
123
+ * **Default Value:** No default value
124
+ *
125
+ *
126
+ * @param searchBy List of fields to search by term to filter result values
127
+ *
128
+ * **Example:** name,description
129
+ *
130
+ *
131
+ * **Default Value:** By default all fields mentioned below will be used to search by term
132
+ *
133
+ * **Available Fields**
134
+ * - name
135
+ *
136
+ * - description
137
+ *
138
+ * @returns any
139
+ * @throws ApiError
140
+ */
141
+ listRuleTemplates(page, limit, filterId, filterName, filterProducts, filterTypologies, sortBy, search, searchBy) {
142
+ return this.httpRequest.request({
143
+ method: 'GET',
144
+ url: '/v1/rule-templates',
145
+ query: {
146
+ 'page': page,
147
+ 'limit': limit,
148
+ 'filter.id': filterId,
149
+ 'filter.name': filterName,
150
+ 'filter.products': filterProducts,
151
+ 'filter.typologies': filterTypologies,
152
+ 'sortBy': sortBy,
153
+ 'search': search,
154
+ 'searchBy': searchBy,
155
+ },
156
+ });
157
+ }
158
+ /**
159
+ * Get a rule template by ID
160
+ * Get a rule template by ID
161
+ * @param id
162
+ * @returns RuleTemplateResponseDto
163
+ * @throws ApiError
164
+ */
165
+ getRuleTemplate(id) {
166
+ return this.httpRequest.request({
167
+ method: 'GET',
168
+ url: '/v1/rule-templates/{id}',
169
+ path: {
170
+ 'id': id,
171
+ },
172
+ });
173
+ }
174
+ /**
175
+ * Copy a rule template to workspace as a draft rule
176
+ * Copy a rule template to workspace as a draft rule
177
+ * @param id
178
+ * @returns CopyRuleTemplateResponseDto
179
+ * @throws ApiError
180
+ */
181
+ copyRuleTemplate(id) {
182
+ return this.httpRequest.request({
183
+ method: 'POST',
184
+ url: '/v1/rule-templates/{id}/copy',
185
+ path: {
186
+ 'id': id,
187
+ },
188
+ });
189
+ }
190
+ }
191
+ exports.RuleTemplatesService = RuleTemplatesService;
192
+ //# sourceMappingURL=RuleTemplatesService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleTemplatesService.js","sourceRoot":"","sources":["../../services/RuleTemplatesService.ts"],"names":[],"mappings":";;;AAQA,MAAa,oBAAoB;IACD;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmIG;IACI,iBAAiB,CACpB,IAAa,EACb,KAAc,EACd,QAAwB,EACxB,UAA0B,EAC1B,cAA8B,EAC9B,gBAAgC,EAChC,MAAyI,EACzI,MAAe,EACf,QAAwB;QAExB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oBAAoB;YACzB,KAAK,EAAE;gBACH,MAAM,EAAE,IAAI;gBACZ,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,QAAQ;gBACrB,aAAa,EAAE,UAAU;gBACzB,iBAAiB,EAAE,cAAc;gBACjC,mBAAmB,EAAE,gBAAgB;gBACrC,QAAQ,EAAE,MAAM;gBAChB,QAAQ,EAAE,MAAM;gBAChB,UAAU,EAAE,QAAQ;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,eAAe,CAClB,EAAU;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,gBAAgB,CACnB,EAAU;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,8BAA8B;YACnC,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AArMD,oDAqMC"}