@pax2pay/model-banking 0.1.654 → 0.1.655

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 (74) hide show
  1. package/Backup/Rule.ts +13 -9
  2. package/Organization/Creatable.ts +1 -1
  3. package/Organization/index.ts +1 -1
  4. package/Rule/State/Transaction.ts +2 -2
  5. package/Rule/State/index.ts +2 -2
  6. package/Rule/index.ts +7 -36
  7. package/Rule/type.ts +5 -2
  8. package/Transaction/Note.ts +10 -2
  9. package/dist/cjs/Audit.d.ts +1 -1
  10. package/dist/cjs/Backup/Rule.d.ts +1 -1
  11. package/dist/cjs/Backup/Rule.js +12 -9
  12. package/dist/cjs/Backup/Rule.js.map +1 -1
  13. package/dist/cjs/Organization/Creatable.d.ts +1 -1
  14. package/dist/cjs/Organization/index.d.ts +1 -1
  15. package/dist/cjs/Rule/State/Transaction.d.ts +2 -2
  16. package/dist/cjs/Rule/State/Transaction.js.map +1 -1
  17. package/dist/cjs/Rule/State/index.d.ts +3 -3
  18. package/dist/cjs/Rule/State/index.js.map +1 -1
  19. package/dist/cjs/Rule/index.d.ts +8 -14
  20. package/dist/cjs/Rule/index.js +6 -33
  21. package/dist/cjs/Rule/index.js.map +1 -1
  22. package/dist/cjs/Rule/type.d.ts +2 -2
  23. package/dist/cjs/Rule/type.js +2 -2
  24. package/dist/cjs/Rule/type.js.map +1 -1
  25. package/dist/cjs/Transaction/Note.d.ts +10 -2
  26. package/dist/cjs/Transaction/Note.js.map +1 -1
  27. package/dist/cjs/User/Access/Permission.d.ts +4 -4
  28. package/dist/cjs/User/Access/index.d.ts +3 -3
  29. package/dist/cjs/User/JWT/Payload.d.ts +12 -12
  30. package/dist/cjs/User/index.d.ts +6 -6
  31. package/dist/mjs/Audit.d.ts +1 -1
  32. package/dist/mjs/Backup/Rule.d.ts +1 -1
  33. package/dist/mjs/Backup/Rule.js +12 -9
  34. package/dist/mjs/Backup/Rule.js.map +1 -1
  35. package/dist/mjs/Organization/Creatable.d.ts +1 -1
  36. package/dist/mjs/Organization/index.d.ts +1 -1
  37. package/dist/mjs/Rule/State/Transaction.d.ts +2 -2
  38. package/dist/mjs/Rule/State/Transaction.js.map +1 -1
  39. package/dist/mjs/Rule/State/index.d.ts +3 -3
  40. package/dist/mjs/Rule/State/index.js.map +1 -1
  41. package/dist/mjs/Rule/index.d.ts +8 -14
  42. package/dist/mjs/Rule/index.js +6 -33
  43. package/dist/mjs/Rule/index.js.map +1 -1
  44. package/dist/mjs/Rule/type.d.ts +2 -2
  45. package/dist/mjs/Rule/type.js +2 -2
  46. package/dist/mjs/Rule/type.js.map +1 -1
  47. package/dist/mjs/Transaction/Note.d.ts +10 -2
  48. package/dist/mjs/Transaction/Note.js.map +1 -1
  49. package/dist/mjs/User/Access/Permission.d.ts +4 -4
  50. package/dist/mjs/User/Access/index.d.ts +3 -3
  51. package/dist/mjs/User/JWT/Payload.d.ts +12 -12
  52. package/dist/mjs/User/index.d.ts +6 -6
  53. package/package.json +1 -1
  54. package/Rule/Base.ts +0 -43
  55. package/Rule/Other.ts +0 -47
  56. package/Rule/control.ts +0 -7
  57. package/dist/cjs/Rule/Base.d.ts +0 -27
  58. package/dist/cjs/Rule/Base.js +0 -36
  59. package/dist/cjs/Rule/Base.js.map +0 -1
  60. package/dist/cjs/Rule/Other.d.ts +0 -20
  61. package/dist/cjs/Rule/Other.js +0 -42
  62. package/dist/cjs/Rule/Other.js.map +0 -1
  63. package/dist/cjs/Rule/control.d.ts +0 -4
  64. package/dist/cjs/Rule/control.js +0 -8
  65. package/dist/cjs/Rule/control.js.map +0 -1
  66. package/dist/mjs/Rule/Base.d.ts +0 -27
  67. package/dist/mjs/Rule/Base.js +0 -33
  68. package/dist/mjs/Rule/Base.js.map +0 -1
  69. package/dist/mjs/Rule/Other.d.ts +0 -20
  70. package/dist/mjs/Rule/Other.js +0 -39
  71. package/dist/mjs/Rule/Other.js.map +0 -1
  72. package/dist/mjs/Rule/control.d.ts +0 -4
  73. package/dist/mjs/Rule/control.js +0 -5
  74. package/dist/mjs/Rule/control.js.map +0 -1
@@ -6,17 +6,17 @@ export declare namespace Payload {
6
6
  namespace Creatable {
7
7
  const type: import("isly/dist/cjs/object").IslyObject<{
8
8
  sub: string;
9
- permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
9
+ permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
10
10
  realm: "test" | "uk" | "eea";
11
11
  }, object>;
12
12
  const typeZod: zod.ZodObject<{
13
13
  sub: zod.ZodString;
14
14
  permission: zod.ZodRecord<zod.ZodEnum<{
15
- rule: "rule";
16
15
  card: "card";
17
16
  transaction: "transaction";
18
17
  settlement: "settlement";
19
18
  organization: "organization";
19
+ rule: "rule";
20
20
  user: "user";
21
21
  log: "log";
22
22
  operation: "operation";
@@ -42,7 +42,7 @@ export declare namespace Payload {
42
42
  iat: number;
43
43
  iss: string;
44
44
  sub: string;
45
- permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
45
+ permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
46
46
  realm: "test" | "uk" | "eea";
47
47
  token?: string | undefined;
48
48
  }, object>;
@@ -52,11 +52,11 @@ export declare namespace Payload {
52
52
  iss: zod.ZodString;
53
53
  sub: zod.ZodString;
54
54
  permission: zod.ZodRecord<zod.ZodEnum<{
55
- rule: "rule";
56
55
  card: "card";
57
56
  transaction: "transaction";
58
57
  settlement: "settlement";
59
58
  organization: "organization";
59
+ rule: "rule";
60
60
  user: "user";
61
61
  log: "log";
62
62
  operation: "operation";
@@ -83,7 +83,7 @@ export declare namespace Payload {
83
83
  iat: number;
84
84
  iss: string;
85
85
  sub: string;
86
- permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
86
+ permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
87
87
  realm: "test" | "uk" | "eea";
88
88
  id: string;
89
89
  token?: string | undefined;
@@ -92,7 +92,7 @@ export declare namespace Payload {
92
92
  iat: number;
93
93
  iss: string;
94
94
  sub: string;
95
- permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
95
+ permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
96
96
  realm: "test" | "uk" | "eea";
97
97
  token?: string | undefined;
98
98
  }>;
@@ -102,11 +102,11 @@ export declare namespace Payload {
102
102
  iss: zod.ZodString;
103
103
  sub: zod.ZodString;
104
104
  permission: zod.ZodRecord<zod.ZodEnum<{
105
- rule: "rule";
106
105
  card: "card";
107
106
  transaction: "transaction";
108
107
  settlement: "settlement";
109
108
  organization: "organization";
109
+ rule: "rule";
110
110
  user: "user";
111
111
  log: "log";
112
112
  operation: "operation";
@@ -134,7 +134,7 @@ export declare namespace Payload {
134
134
  iat: number;
135
135
  iss: string;
136
136
  sub: string;
137
- permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
137
+ permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
138
138
  realm: "test" | "uk" | "eea";
139
139
  exp: number;
140
140
  token?: string | undefined;
@@ -143,7 +143,7 @@ export declare namespace Payload {
143
143
  iat: number;
144
144
  iss: string;
145
145
  sub: string;
146
- permission: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
146
+ permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
147
147
  realm: "test" | "uk" | "eea";
148
148
  token?: string | undefined;
149
149
  }>;
@@ -153,11 +153,11 @@ export declare namespace Payload {
153
153
  iss: zod.ZodString;
154
154
  sub: zod.ZodString;
155
155
  permission: zod.ZodRecord<zod.ZodEnum<{
156
- rule: "rule";
157
156
  card: "card";
158
157
  transaction: "transaction";
159
158
  settlement: "settlement";
160
159
  organization: "organization";
160
+ rule: "rule";
161
161
  user: "user";
162
162
  log: "log";
163
163
  operation: "operation";
@@ -189,11 +189,11 @@ export declare namespace Payload {
189
189
  iss: zod.ZodString;
190
190
  sub: zod.ZodString;
191
191
  permission: zod.ZodRecord<zod.ZodEnum<{
192
- rule: "rule";
193
192
  card: "card";
194
193
  transaction: "transaction";
195
194
  settlement: "settlement";
196
195
  organization: "organization";
196
+ rule: "rule";
197
197
  user: "user";
198
198
  log: "log";
199
199
  operation: "operation";
@@ -218,11 +218,11 @@ export declare namespace Payload {
218
218
  iss: zod.ZodString;
219
219
  sub: zod.ZodString;
220
220
  permission: zod.ZodRecord<zod.ZodEnum<{
221
- rule: "rule";
222
221
  card: "card";
223
222
  transaction: "transaction";
224
223
  settlement: "settlement";
225
224
  organization: "organization";
225
+ rule: "rule";
226
226
  user: "user";
227
227
  log: "log";
228
228
  operation: "operation";
@@ -70,11 +70,11 @@ export declare namespace User {
70
70
  email: zod.ZodString;
71
71
  access: zod.ZodObject<{
72
72
  uk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
73
- rule: "rule";
74
73
  card: "card";
75
74
  transaction: "transaction";
76
75
  settlement: "settlement";
77
76
  organization: "organization";
77
+ rule: "rule";
78
78
  user: "user";
79
79
  log: "log";
80
80
  operation: "operation";
@@ -87,11 +87,11 @@ export declare namespace User {
87
87
  admin: "admin";
88
88
  }>>>;
89
89
  eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
90
- rule: "rule";
91
90
  card: "card";
92
91
  transaction: "transaction";
93
92
  settlement: "settlement";
94
93
  organization: "organization";
94
+ rule: "rule";
95
95
  user: "user";
96
96
  log: "log";
97
97
  operation: "operation";
@@ -104,11 +104,11 @@ export declare namespace User {
104
104
  admin: "admin";
105
105
  }>>>;
106
106
  test: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
107
- rule: "rule";
108
107
  card: "card";
109
108
  transaction: "transaction";
110
109
  settlement: "settlement";
111
110
  organization: "organization";
111
+ rule: "rule";
112
112
  user: "user";
113
113
  log: "log";
114
114
  operation: "operation";
@@ -133,9 +133,9 @@ export declare namespace User {
133
133
  const type: import("isly/dist/cjs/object").IslyObject<{
134
134
  email: string;
135
135
  access: {
136
- uk?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
137
- eea?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
138
- test?: Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
136
+ uk?: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
137
+ eea?: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
138
+ test?: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
139
139
  "*"?: {
140
140
  user?: "developer" | "read" | "write" | "admin" | undefined;
141
141
  } | undefined;
@@ -38,6 +38,6 @@ export declare namespace Audit {
38
38
  readonly clearbank: readonly ["assessmentFailed", "validationFailed"];
39
39
  };
40
40
  const keys: (keyof typeof value)[];
41
- const type: isly.Type<"clearbank" | "rule" | "account" | "transaction" | "organization" | "settlements" | "user" | "marqeta" | "label" | "route">;
41
+ const type: isly.Type<"clearbank" | "account" | "transaction" | "organization" | "rule" | "settlements" | "user" | "marqeta" | "label" | "route">;
42
42
  }
43
43
  }
@@ -10,7 +10,7 @@ export declare namespace Rule {
10
10
  organization?: string;
11
11
  account?: string;
12
12
  }>;
13
- const addSender: (sender: (backup: Rule) => any | Promise<any>) => (args_0: modelRule.Other, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
13
+ const addSender: (sender: (backup: Rule) => any | Promise<any>) => (args_0: never, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
14
14
  organization?: string;
15
15
  account?: string;
16
16
  } | undefined) => ReturnType<(backup: Rule) => any | Promise<any>>;
@@ -2,15 +2,18 @@ import { isoly } from "isoly";
2
2
  import { Base } from "./Base";
3
3
  export var Rule;
4
4
  (function (Rule) {
5
- Rule.create = (value, action, data) => ({
6
- entityType: "rule",
7
- entity: value.code,
8
- ...data,
9
- action,
10
- created: isoly.DateTime.now(),
11
- meta: `${value.category}.${value.type}.${value.action}`,
12
- value,
13
- });
5
+ Rule.create = (value, action, data) => {
6
+ const rule = value;
7
+ return {
8
+ entityType: "rule",
9
+ entity: rule.code,
10
+ ...data,
11
+ action,
12
+ created: isoly.DateTime.now(),
13
+ meta: `${rule.category}.${rule.type}.${rule.action}`,
14
+ value,
15
+ };
16
+ };
14
17
  Rule.addSender = Base.pipeToSender(Rule.create);
15
18
  })(Rule || (Rule = {}));
16
19
  //# sourceMappingURL=Rule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../Backup/Rule.ts"],"names":[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CAAC,CAAA;IACY,cAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAA,MAAM,CAAC,CAAA;AACnD,CAAC,EAnBgB,IAAI,KAAJ,IAAI,QAmBpB"}
@@ -1,4 +1,4 @@
1
- import { Rule } from "../Rule";
1
+ import type { Rule } from "../Rule";
2
2
  import { Contact } from "./Contact";
3
3
  import { Fx } from "./Fx";
4
4
  import { Risk } from "./Risk";
@@ -1,6 +1,6 @@
1
1
  import { Type } from "../Account/Type";
2
2
  import { Realm } from "../Realm";
3
- import { Rule } from "../Rule";
3
+ import type { Rule } from "../Rule";
4
4
  import { Changeable as OrganizationChangeable } from "./Changeable";
5
5
  import { Contact as OrganizationContact } from "./Contact";
6
6
  import { Creatable as OrganizationCreatable } from "./Creatable";
@@ -4,7 +4,7 @@ import { Transaction as ModelTransaction } from "../../Transaction";
4
4
  import type { Rule } from "../index";
5
5
  export type Transaction = ModelTransaction.Creatable.Resolved & {
6
6
  id: string;
7
- kind: Rule.Base.Kind;
7
+ kind: Rule.Kind;
8
8
  stage: "finalize" | "initiate";
9
9
  amount: number;
10
10
  type: ModelTransaction.Types;
@@ -15,5 +15,5 @@ export type Transaction = ModelTransaction.Creatable.Resolved & {
15
15
  };
16
16
  };
17
17
  export declare namespace Transaction {
18
- function from(account: ModelAccount, transaction: ModelTransaction.Creatable.Resolved | ModelTransaction, kind: Rule.Base.Kind, stage: "finalize" | "initiate"): Transaction;
18
+ function from(account: ModelAccount, transaction: ModelTransaction.Creatable.Resolved | ModelTransaction, kind: Rule.Kind, stage: "finalize" | "initiate"): Transaction;
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../Rule/State/Transaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAenE,MAAM,KAAW,WAAW,CAkB3B;AAlBD,WAAiB,WAAW;IAC3B,SAAgB,IAAI,CACnB,OAAqB,EACrB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C,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC,UAAU,CAAC,QAAQ,EAAE;YACjF,KAAK;YACL,IAAI;YACJ,MAAM;YACN,IAAI,EAAE,gBAAgB,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC;YACrE,QAAQ,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;SACnE,CAAA;IACF,CAAC;IAhBe,gBAAI,OAgBnB,CAAA;AACF,CAAC,EAlBgB,WAAW,KAAX,WAAW,QAkB3B"}
@@ -26,7 +26,7 @@ export declare namespace State {
26
26
  type Outcome = (typeof Outcome.values)[number];
27
27
  namespace Outcome {
28
28
  const values: readonly ["approve", "reject", "review"];
29
- const type: isly.Type<"approve" | "reject" | "review">;
29
+ const type: isly.Type<"review" | "approve" | "reject">;
30
30
  }
31
31
  interface Evaluated extends State {
32
32
  outcomes: globalThis.Partial<Record<Rule.Action, Rule[]>>;
@@ -34,6 +34,6 @@ export declare namespace State {
34
34
  flags: string[];
35
35
  notes: ModelTransaction.Note[];
36
36
  }
37
- function from(account: ModelAccount, address: Rail.Address, transaction: ModelTransaction.Creatable.Resolved | ModelTransaction, kind: Rule.Base.Kind, stage: "finalize" | "initiate", card?: Card, organization?: Organization): State;
38
- const type: Record<ModelTransaction.PreTransaction["type"], Rule.Base.Kind>;
37
+ function from(account: ModelAccount, address: Rail.Address, transaction: ModelTransaction.Creatable.Resolved | ModelTransaction, kind: Rule.Kind, stage: "finalize" | "initiate", card?: Card, organization?: Organization): State;
38
+ const type: Record<ModelTransaction.PreTransaction["type"], Rule.Kind>;
39
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Rule/State/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,OAAO,EAAE,OAAO,IAAI,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A8B,EAC9B,IAAW,EACX,YAA2B;QAE3B,OAAO;YACN,OAAO,EAAE,MAAA,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;YACvC,WAAW,EAAE,MAAA,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC;YAChE,aAAa,EAAE,MAAA,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;YAC9C,IAAI;YACJ,YAAY;SACZ,CAAA;IACF,CAAC;IAhBe,UAAI,OAgBnB,CAAA;IACY,UAAI,GAA+D;QAC/E,aAAa,EAAE,eAAe;QAC9B,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,UAAU;KACpB,CAAA;AACF,CAAC,EAxCgB,KAAK,KAAL,KAAK,QAwCrB"}
@@ -1,23 +1,17 @@
1
1
  import { isly } from "isly";
2
- import { Base as RuleBase } from "./Base";
3
- import { control as ruleControl } from "./control";
4
- import { Other as RuleOther } from "./Other";
5
2
  import { State as RuleState } from "./State";
6
- export type Rule = Rule.Other;
3
+ export type Rule = never;
7
4
  export declare namespace Rule {
8
- export import Other = RuleOther;
9
5
  export import State = RuleState;
10
- export import Base = RuleBase;
11
- export import Kind = Base.Kind;
12
- export import Category = Base.Category;
13
- const control: typeof ruleControl;
6
+ type Kind = (typeof Kind.values)[number];
7
+ namespace Kind {
8
+ const values: readonly ["authorization", "outbound", "inbound", "capture", "refund"];
9
+ const type: isly.Type<"capture" | "refund" | "authorization" | "inbound" | "outbound">;
10
+ }
14
11
  type Action = (typeof Action.values)[number];
15
12
  namespace Action {
16
13
  const values: readonly ["review", "reject", "flag"];
17
- const type: isly.Type<"reject" | "review" | "flag">;
14
+ const type: isly.Type<"review" | "reject" | "flag">;
18
15
  }
19
- const type: import("isly/dist/cjs/object").IslyObject<Other, Base>;
20
- function evaluate(rules: Rule[], state: RuleState): RuleState.Evaluated;
21
- function isLegacy(rule: Rule): boolean;
22
- function fromLegacy(rule: Rule): Rule;
16
+ const type: isly.Type<never>;
23
17
  }
@@ -1,46 +1,19 @@
1
1
  import { isly } from "isly";
2
- import { Base as RuleBase } from "./Base";
3
- import { control as ruleControl } from "./control";
4
- import { Other as RuleOther } from "./Other";
5
2
  import { State as RuleState } from "./State";
6
3
  import { type as ruleType } from "./type";
7
4
  export var Rule;
8
5
  (function (Rule) {
9
- Rule.Other = RuleOther;
10
6
  Rule.State = RuleState;
11
- Rule.Base = RuleBase;
12
- Rule.Kind = Rule.Base.Kind;
13
- Rule.Category = Rule.Base.Category;
14
- Rule.control = ruleControl;
7
+ let Kind;
8
+ (function (Kind) {
9
+ Kind.values = ["authorization", "outbound", "inbound", "capture", "refund"];
10
+ Kind.type = isly.string(Kind.values);
11
+ })(Kind = Rule.Kind || (Rule.Kind = {}));
15
12
  let Action;
16
13
  (function (Action) {
17
- Action.values = [...Rule.Other.Action.values];
14
+ Action.values = ["review", "reject", "flag"];
18
15
  Action.type = isly.string(Action.values);
19
16
  })(Action = Rule.Action || (Rule.Action = {}));
20
17
  Rule.type = ruleType;
21
- function evaluate(rules, state) {
22
- const outcomes = {
23
- review: [],
24
- reject: [],
25
- flag: [],
26
- };
27
- const notes = [];
28
- const evaluated = Rule.Other.evaluate(rules.filter(rule => Rule.Base.Kind.is(state.transaction.kind, rule, state.organization?.groups, state.card?.preset)), state);
29
- notes.push(...evaluated.notes);
30
- outcomes.flag.push(...evaluated.outcomes.flag);
31
- outcomes.review.push(...evaluated.outcomes.review);
32
- outcomes.reject.push(...evaluated.outcomes.reject);
33
- const outcome = outcomes.reject.length > 0 ? "reject" : outcomes.review.length > 0 ? "review" : "approve";
34
- return { ...state, flags: [...evaluated.flags], notes, outcomes, outcome };
35
- }
36
- Rule.evaluate = evaluate;
37
- function isLegacy(rule) {
38
- return !Rule.Base.Category.type.is(rule.category);
39
- }
40
- Rule.isLegacy = isLegacy;
41
- function fromLegacy(rule) {
42
- return isLegacy(rule) ? { ...rule, category: "fincrime" } : rule;
43
- }
44
- Rule.fromLegacy = fromLegacy;
45
18
  })(Rule || (Rule = {}));
46
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAGzC,MAAM,KAAW,IAAI,CAsCpB;AAtCD,WAAiB,IAAI;IACN,UAAK,GAAG,SAAS,CAAA;IACjB,UAAK,GAAG,SAAS,CAAA;IACjB,SAAI,GAAG,QAAQ,CAAA;IACf,SAAI,GAAG,KAAA,IAAI,CAAC,IAAI,CAAA;IAChB,aAAQ,GAAG,KAAA,IAAI,CAAC,QAAQ,CAAA;IACzB,YAAO,GAAG,WAAW,CAAA;IAGlC,IAAiB,MAAM,CAGtB;IAHD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,GAAG,KAAA,KAAK,CAAC,MAAM,CAAC,MAAM,CAAU,CAAA;QAC1C,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,MAAM,CAAC,CAAA;IAChD,CAAC,EAHgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAGtB;IACY,SAAI,GAAG,QAAQ,CAAA;IAC5B,SAAgB,QAAQ,CAAC,KAAa,EAAE,KAAgB;QACvD,MAAM,QAAQ,GAAgC;YAC7C,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,EAAE;SACR,CAAA;QACD,MAAM,KAAK,GAAW,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AAU,CAAC,IAAU;QACpC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;IACjE,CAAC;IAFe,eAAU,aAEzB,CAAA;AACF,CAAC,EAtCgB,IAAI,KAAJ,IAAI,QAsCpB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAGzC,MAAM,KAAW,IAAI,CAapB;AAbD,WAAiB,IAAI;IACN,UAAK,GAAG,SAAS,CAAA;IAE/B,IAAiB,IAAI,CAGpB;IAHD,WAAiB,IAAI;QACP,WAAM,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAA;QAC/E,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO,KAAA,MAAM,CAAC,CAAA;IAC9C,CAAC,EAHgB,IAAI,GAAJ,SAAI,KAAJ,SAAI,QAGpB;IAED,IAAiB,MAAM,CAGtB;IAHD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;QAC9C,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,MAAM,CAAC,CAAA;IAChD,CAAC,EAHgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAGtB;IACY,SAAI,GAAG,QAAQ,CAAA;AAC7B,CAAC,EAbgB,IAAI,KAAJ,IAAI,QAapB"}
@@ -1,2 +1,2 @@
1
- import { Other } from "./Other";
2
- export declare const type: import("isly/dist/cjs/object").IslyObject<Other, import("./Base").Base>;
1
+ import { isly } from "isly";
2
+ export declare const type: isly.Type<never>;
@@ -1,3 +1,3 @@
1
- import { Other } from "./Other";
2
- export const type = Other.type;
1
+ import { isly } from "isly";
2
+ export const type = isly.any();
3
3
  //# sourceMappingURL=type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../Rule/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA"}
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../Rule/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAS,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { isoly } from "isoly";
2
- import type { Rule } from "../Rule";
3
2
  export interface Note extends Note.Creatable {
4
3
  author: string;
5
4
  created: isoly.DateTime;
@@ -10,7 +9,16 @@ export declare namespace Note {
10
9
  text?: string;
11
10
  action?: "approve" | "reject";
12
11
  flags?: string[];
13
- rule?: Rule;
12
+ rule?: {
13
+ action: "reject";
14
+ code: string;
15
+ name: string;
16
+ type: "authorization";
17
+ category: "fincrime";
18
+ condition: "";
19
+ description: string;
20
+ flags: ["category", "merchant"];
21
+ };
14
22
  }
15
23
  namespace Creatable {
16
24
  const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
@@ -1 +1 @@
1
- {"version":3,"file":"Note.js","sourceRoot":"","sources":["../../../Transaction/Note.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAQ3B,MAAM,KAAW,IAAI,CAsBpB;AAtBD,WAAiB,IAAI;IACpB,SAAgB,aAAa,CAAC,IAAe,EAAE,MAAc;QAC5D,OAAO,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,gBAE5B,CAAA;IAgBD,IAAiB,SAAS,CAOzB;IAPD,WAAiB,SAAS;QACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;YAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;YACrD,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;YACvC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;SAC3B,CAAC,CAAA;IACH,CAAC,EAPgB,SAAS,GAAT,cAAS,KAAT,cAAS,QAOzB;IACY,SAAI,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAO;QAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;AACH,CAAC,EA/BgB,IAAI,KAAJ,IAAI,QA+BpB"}
@@ -30,26 +30,26 @@ export declare namespace Permission {
30
30
  }
31
31
  const values: readonly ["*", "card", "log", "operation", "organization", "rule", "settlement", "transaction", "treasury", "user"];
32
32
  const typeZod: zod.ZodEnum<{
33
- rule: "rule";
34
33
  card: "card";
35
34
  transaction: "transaction";
36
35
  settlement: "settlement";
37
36
  organization: "organization";
37
+ rule: "rule";
38
38
  user: "user";
39
39
  log: "log";
40
40
  operation: "operation";
41
41
  "*": "*";
42
42
  treasury: "treasury";
43
43
  }>;
44
- const type: isly.Type<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury">;
44
+ const type: isly.Type<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury">;
45
45
  }
46
- const type: isly.Type<Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>>;
46
+ const type: isly.Type<Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>>;
47
47
  const typeZod: zod.ZodRecord<zod.ZodEnum<{
48
- rule: "rule";
49
48
  card: "card";
50
49
  transaction: "transaction";
51
50
  settlement: "settlement";
52
51
  organization: "organization";
52
+ rule: "rule";
53
53
  user: "user";
54
54
  log: "log";
55
55
  operation: "operation";
@@ -6,11 +6,11 @@ export declare namespace Access {
6
6
  const type: import("isly/dist/cjs/object").IslyObject<object, object>;
7
7
  const typeZod: zod.ZodObject<{
8
8
  uk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
9
- rule: "rule";
10
9
  card: "card";
11
10
  transaction: "transaction";
12
11
  settlement: "settlement";
13
12
  organization: "organization";
13
+ rule: "rule";
14
14
  user: "user";
15
15
  log: "log";
16
16
  operation: "operation";
@@ -23,11 +23,11 @@ export declare namespace Access {
23
23
  admin: "admin";
24
24
  }>>>;
25
25
  eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
26
- rule: "rule";
27
26
  card: "card";
28
27
  transaction: "transaction";
29
28
  settlement: "settlement";
30
29
  organization: "organization";
30
+ rule: "rule";
31
31
  user: "user";
32
32
  log: "log";
33
33
  operation: "operation";
@@ -40,11 +40,11 @@ export declare namespace Access {
40
40
  admin: "admin";
41
41
  }>>>;
42
42
  test: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
43
- rule: "rule";
44
43
  card: "card";
45
44
  transaction: "transaction";
46
45
  settlement: "settlement";
47
46
  organization: "organization";
47
+ rule: "rule";
48
48
  user: "user";
49
49
  log: "log";
50
50
  operation: "operation";