@pax2pay/model-banking 0.1.553 → 0.1.554

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 (141) hide show
  1. package/dist/cjs/pax2pay.d.ts +0 -1
  2. package/dist/cjs/pax2pay.js +1 -3
  3. package/dist/cjs/pax2pay.js.map +1 -1
  4. package/dist/mjs/pax2pay.d.ts +0 -1
  5. package/dist/mjs/pax2pay.js +0 -1
  6. package/dist/mjs/pax2pay.js.map +1 -1
  7. package/package.json +1 -2
  8. package/pax2pay.ts +0 -1
  9. package/Analytics/Configuration/AuditLog.ts +0 -31
  10. package/Analytics/Configuration/Base.ts +0 -31
  11. package/Analytics/Configuration/Ledger/Base.ts +0 -29
  12. package/Analytics/Configuration/Ledger/index.ts +0 -5
  13. package/Analytics/Configuration/Transaction.ts +0 -142
  14. package/Analytics/Configuration/index.ts +0 -14
  15. package/Analytics/Event/AuditLog.ts +0 -20
  16. package/Analytics/Event/Base.ts +0 -12
  17. package/Analytics/Event/Ledger/Account.ts +0 -23
  18. package/Analytics/Event/Ledger/Base.ts +0 -7
  19. package/Analytics/Event/Ledger/Card.ts +0 -21
  20. package/Analytics/Event/Ledger/Operation.ts +0 -28
  21. package/Analytics/Event/Ledger/Organization.ts +0 -20
  22. package/Analytics/Event/Ledger/Rule.ts +0 -38
  23. package/Analytics/Event/Ledger/Transaction.ts +0 -22
  24. package/Analytics/Event/Ledger/User.ts +0 -21
  25. package/Analytics/Event/Ledger/index.ts +0 -19
  26. package/Analytics/Event/index.ts +0 -19
  27. package/Analytics/index.ts +0 -7
  28. package/dist/cjs/Analytics/Configuration/AuditLog.d.ts +0 -32
  29. package/dist/cjs/Analytics/Configuration/AuditLog.js +0 -30
  30. package/dist/cjs/Analytics/Configuration/AuditLog.js.map +0 -1
  31. package/dist/cjs/Analytics/Configuration/Base.d.ts +0 -21
  32. package/dist/cjs/Analytics/Configuration/Base.js +0 -27
  33. package/dist/cjs/Analytics/Configuration/Base.js.map +0 -1
  34. package/dist/cjs/Analytics/Configuration/Ledger/Base.d.ts +0 -31
  35. package/dist/cjs/Analytics/Configuration/Ledger/Base.js +0 -25
  36. package/dist/cjs/Analytics/Configuration/Ledger/Base.js.map +0 -1
  37. package/dist/cjs/Analytics/Configuration/Ledger/index.d.ts +0 -4
  38. package/dist/cjs/Analytics/Configuration/Ledger/index.js +0 -9
  39. package/dist/cjs/Analytics/Configuration/Ledger/index.js.map +0 -1
  40. package/dist/cjs/Analytics/Configuration/Transaction.d.ts +0 -11
  41. package/dist/cjs/Analytics/Configuration/Transaction.js +0 -141
  42. package/dist/cjs/Analytics/Configuration/Transaction.js.map +0 -1
  43. package/dist/cjs/Analytics/Configuration/index.d.ts +0 -13
  44. package/dist/cjs/Analytics/Configuration/index.js +0 -15
  45. package/dist/cjs/Analytics/Configuration/index.js.map +0 -1
  46. package/dist/cjs/Analytics/Event/AuditLog.d.ts +0 -13
  47. package/dist/cjs/Analytics/Event/AuditLog.js +0 -18
  48. package/dist/cjs/Analytics/Event/AuditLog.js.map +0 -1
  49. package/dist/cjs/Analytics/Event/Base.d.ts +0 -14
  50. package/dist/cjs/Analytics/Event/Base.js +0 -3
  51. package/dist/cjs/Analytics/Event/Base.js.map +0 -1
  52. package/dist/cjs/Analytics/Event/Ledger/Account.d.ts +0 -16
  53. package/dist/cjs/Analytics/Event/Ledger/Account.js +0 -20
  54. package/dist/cjs/Analytics/Event/Ledger/Account.js.map +0 -1
  55. package/dist/cjs/Analytics/Event/Ledger/Base.d.ts +0 -6
  56. package/dist/cjs/Analytics/Event/Ledger/Base.js +0 -3
  57. package/dist/cjs/Analytics/Event/Ledger/Base.js.map +0 -1
  58. package/dist/cjs/Analytics/Event/Ledger/Card.d.ts +0 -12
  59. package/dist/cjs/Analytics/Event/Ledger/Card.js +0 -20
  60. package/dist/cjs/Analytics/Event/Ledger/Card.js.map +0 -1
  61. package/dist/cjs/Analytics/Event/Ledger/Operation.d.ts +0 -13
  62. package/dist/cjs/Analytics/Event/Ledger/Operation.js +0 -20
  63. package/dist/cjs/Analytics/Event/Ledger/Operation.js.map +0 -1
  64. package/dist/cjs/Analytics/Event/Ledger/Organization.d.ts +0 -13
  65. package/dist/cjs/Analytics/Event/Ledger/Organization.js +0 -18
  66. package/dist/cjs/Analytics/Event/Ledger/Organization.js.map +0 -1
  67. package/dist/cjs/Analytics/Event/Ledger/Rule.d.ts +0 -18
  68. package/dist/cjs/Analytics/Event/Ledger/Rule.js +0 -25
  69. package/dist/cjs/Analytics/Event/Ledger/Rule.js.map +0 -1
  70. package/dist/cjs/Analytics/Event/Ledger/Transaction.d.ts +0 -14
  71. package/dist/cjs/Analytics/Event/Ledger/Transaction.js +0 -19
  72. package/dist/cjs/Analytics/Event/Ledger/Transaction.js.map +0 -1
  73. package/dist/cjs/Analytics/Event/Ledger/User.d.ts +0 -13
  74. package/dist/cjs/Analytics/Event/Ledger/User.js +0 -18
  75. package/dist/cjs/Analytics/Event/Ledger/User.js.map +0 -1
  76. package/dist/cjs/Analytics/Event/Ledger/index.d.ts +0 -18
  77. package/dist/cjs/Analytics/Event/Ledger/index.js +0 -21
  78. package/dist/cjs/Analytics/Event/Ledger/index.js.map +0 -1
  79. package/dist/cjs/Analytics/Event/index.d.ts +0 -11
  80. package/dist/cjs/Analytics/Event/index.js +0 -11
  81. package/dist/cjs/Analytics/Event/index.js.map +0 -1
  82. package/dist/cjs/Analytics/index.d.ts +0 -6
  83. package/dist/cjs/Analytics/index.js +0 -11
  84. package/dist/cjs/Analytics/index.js.map +0 -1
  85. package/dist/mjs/Analytics/Configuration/AuditLog.d.ts +0 -32
  86. package/dist/mjs/Analytics/Configuration/AuditLog.js +0 -27
  87. package/dist/mjs/Analytics/Configuration/AuditLog.js.map +0 -1
  88. package/dist/mjs/Analytics/Configuration/Base.d.ts +0 -21
  89. package/dist/mjs/Analytics/Configuration/Base.js +0 -24
  90. package/dist/mjs/Analytics/Configuration/Base.js.map +0 -1
  91. package/dist/mjs/Analytics/Configuration/Ledger/Base.d.ts +0 -31
  92. package/dist/mjs/Analytics/Configuration/Ledger/Base.js +0 -22
  93. package/dist/mjs/Analytics/Configuration/Ledger/Base.js.map +0 -1
  94. package/dist/mjs/Analytics/Configuration/Ledger/index.d.ts +0 -4
  95. package/dist/mjs/Analytics/Configuration/Ledger/index.js +0 -6
  96. package/dist/mjs/Analytics/Configuration/Ledger/index.js.map +0 -1
  97. package/dist/mjs/Analytics/Configuration/Transaction.d.ts +0 -11
  98. package/dist/mjs/Analytics/Configuration/Transaction.js +0 -138
  99. package/dist/mjs/Analytics/Configuration/Transaction.js.map +0 -1
  100. package/dist/mjs/Analytics/Configuration/index.d.ts +0 -13
  101. package/dist/mjs/Analytics/Configuration/index.js +0 -12
  102. package/dist/mjs/Analytics/Configuration/index.js.map +0 -1
  103. package/dist/mjs/Analytics/Event/AuditLog.d.ts +0 -13
  104. package/dist/mjs/Analytics/Event/AuditLog.js +0 -15
  105. package/dist/mjs/Analytics/Event/AuditLog.js.map +0 -1
  106. package/dist/mjs/Analytics/Event/Base.d.ts +0 -14
  107. package/dist/mjs/Analytics/Event/Base.js +0 -2
  108. package/dist/mjs/Analytics/Event/Base.js.map +0 -1
  109. package/dist/mjs/Analytics/Event/Ledger/Account.d.ts +0 -16
  110. package/dist/mjs/Analytics/Event/Ledger/Account.js +0 -17
  111. package/dist/mjs/Analytics/Event/Ledger/Account.js.map +0 -1
  112. package/dist/mjs/Analytics/Event/Ledger/Base.d.ts +0 -6
  113. package/dist/mjs/Analytics/Event/Ledger/Base.js +0 -2
  114. package/dist/mjs/Analytics/Event/Ledger/Base.js.map +0 -1
  115. package/dist/mjs/Analytics/Event/Ledger/Card.d.ts +0 -12
  116. package/dist/mjs/Analytics/Event/Ledger/Card.js +0 -17
  117. package/dist/mjs/Analytics/Event/Ledger/Card.js.map +0 -1
  118. package/dist/mjs/Analytics/Event/Ledger/Operation.d.ts +0 -13
  119. package/dist/mjs/Analytics/Event/Ledger/Operation.js +0 -17
  120. package/dist/mjs/Analytics/Event/Ledger/Operation.js.map +0 -1
  121. package/dist/mjs/Analytics/Event/Ledger/Organization.d.ts +0 -13
  122. package/dist/mjs/Analytics/Event/Ledger/Organization.js +0 -15
  123. package/dist/mjs/Analytics/Event/Ledger/Organization.js.map +0 -1
  124. package/dist/mjs/Analytics/Event/Ledger/Rule.d.ts +0 -18
  125. package/dist/mjs/Analytics/Event/Ledger/Rule.js +0 -22
  126. package/dist/mjs/Analytics/Event/Ledger/Rule.js.map +0 -1
  127. package/dist/mjs/Analytics/Event/Ledger/Transaction.d.ts +0 -14
  128. package/dist/mjs/Analytics/Event/Ledger/Transaction.js +0 -16
  129. package/dist/mjs/Analytics/Event/Ledger/Transaction.js.map +0 -1
  130. package/dist/mjs/Analytics/Event/Ledger/User.d.ts +0 -13
  131. package/dist/mjs/Analytics/Event/Ledger/User.js +0 -15
  132. package/dist/mjs/Analytics/Event/Ledger/User.js.map +0 -1
  133. package/dist/mjs/Analytics/Event/Ledger/index.d.ts +0 -18
  134. package/dist/mjs/Analytics/Event/Ledger/index.js +0 -18
  135. package/dist/mjs/Analytics/Event/Ledger/index.js.map +0 -1
  136. package/dist/mjs/Analytics/Event/index.d.ts +0 -11
  137. package/dist/mjs/Analytics/Event/index.js +0 -8
  138. package/dist/mjs/Analytics/Event/index.js.map +0 -1
  139. package/dist/mjs/Analytics/index.d.ts +0 -6
  140. package/dist/mjs/Analytics/index.js +0 -8
  141. package/dist/mjs/Analytics/index.js.map +0 -1
@@ -1,12 +0,0 @@
1
- import { AuditLog as ConfigAuditLog } from "./AuditLog";
2
- import { Base as ConfigBase } from "./Base";
3
- import { Ledger as ConfigLedger } from "./Ledger";
4
- import { Transaction as ConfigTransaction } from "./Transaction";
5
- export var Configuration;
6
- (function (Configuration) {
7
- Configuration.Base = ConfigBase;
8
- Configuration.Ledger = ConfigLedger;
9
- Configuration.AuditLog = ConfigAuditLog;
10
- Configuration.Transaction = ConfigTransaction;
11
- })(Configuration || (Configuration = {}));
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Analytics/Configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEhE,MAAM,KAAW,aAAa,CAK7B;AALD,WAAiB,aAAa;IACf,kBAAI,GAAG,UAAU,CAAA;IACjB,oBAAM,GAAG,YAAY,CAAA;IACrB,sBAAQ,GAAG,cAAc,CAAA;IACzB,yBAAW,GAAG,iBAAiB,CAAA;AAC9C,CAAC,EALgB,aAAa,KAAb,aAAa,QAK7B"}
@@ -1,13 +0,0 @@
1
- import { Audit } from "../../Audit";
2
- import { Realm } from "../../Realm";
3
- import { Base } from "./Base";
4
- export type AuditLog = Base<Audit> & {
5
- entity: {
6
- type: "auditLog";
7
- id: string;
8
- };
9
- action: "created";
10
- };
11
- export declare namespace AuditLog {
12
- function create(value: Audit, realm: Realm, action: AuditLog["action"]): AuditLog;
13
- }
@@ -1,15 +0,0 @@
1
- import { isoly } from "isoly";
2
- export var AuditLog;
3
- (function (AuditLog) {
4
- function create(value, realm, action) {
5
- return {
6
- realm,
7
- entity: { type: "auditLog", id: value.id },
8
- action,
9
- created: isoly.DateTime.now(),
10
- value,
11
- };
12
- }
13
- AuditLog.create = create;
14
- })(AuditLog || (AuditLog = {}));
15
- //# sourceMappingURL=AuditLog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuditLog.js","sourceRoot":"","sources":["../../../../Analytics/Event/AuditLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAS7B,MAAM,KAAW,QAAQ,CAUxB;AAVD,WAAiB,QAAQ;IACxB,SAAgB,MAAM,CAAC,KAAY,EAAE,KAAY,EAAE,MAA0B;QAC5E,OAAO;YACN,KAAK;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE;YAC1C,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,KAAK;SACL,CAAA;IACF,CAAC;IARe,eAAM,SAQrB,CAAA;AACF,CAAC,EAVgB,QAAQ,KAAR,QAAQ,QAUxB"}
@@ -1,14 +0,0 @@
1
- import { isoly } from "isoly";
2
- import { Realm } from "../../Realm";
3
- export type Base<T> = {
4
- realm: Realm;
5
- entity: {
6
- type: string;
7
- id: string;
8
- };
9
- action: string;
10
- created: isoly.DateTime;
11
- isError?: true;
12
- meta?: Record<string, unknown>;
13
- value: T;
14
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../../Analytics/Event/Base.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { Account as modelAccount } from "../../../Account";
2
- import { Realm } from "../../../Realm";
3
- import { Base } from "./Base";
4
- export interface Account extends Base<modelAccount> {
5
- entity: {
6
- type: "account";
7
- id: string;
8
- };
9
- action: "created" | "updated";
10
- meta: {
11
- accountKey: string;
12
- };
13
- }
14
- export declare namespace Account {
15
- function create(value: modelAccount, organization: string, realm: Realm, action: Account["action"]): Account;
16
- }
@@ -1,17 +0,0 @@
1
- import { isoly } from "isoly";
2
- export var Account;
3
- (function (Account) {
4
- function create(value, organization, realm, action) {
5
- return {
6
- realm,
7
- entity: { type: "account", id: value.id },
8
- organization,
9
- action,
10
- created: isoly.DateTime.now(),
11
- meta: { accountKey: value.key ?? "" },
12
- value,
13
- };
14
- }
15
- Account.create = create;
16
- })(Account || (Account = {}));
17
- //# sourceMappingURL=Account.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/Account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAU7B,MAAM,KAAW,OAAO,CAYvB;AAZD,WAAiB,OAAO;IACvB,SAAgB,MAAM,CAAC,KAAmB,EAAE,YAAoB,EAAE,KAAY,EAAE,MAAyB;QACxG,OAAO;YACN,KAAK;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE;YACzC,YAAY;YACZ,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,IAAI,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,GAAG,IAAI,EAAE,EAAE;YACrC,KAAK;SACL,CAAA;IACF,CAAC;IAVe,cAAM,SAUrB,CAAA;AACF,CAAC,EAZgB,OAAO,KAAP,OAAO,QAYvB"}
@@ -1,6 +0,0 @@
1
- import { Base as EventBase } from "../Base";
2
- export interface Base<T> extends EventBase<T> {
3
- organization?: string;
4
- account?: string;
5
- meta?: Record<string, string>;
6
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/Base.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import { Card as modelCard } from "../../../Card";
2
- import { Base } from "./Base";
3
- export interface Card extends Base<modelCard> {
4
- entity: {
5
- type: "card";
6
- id: string;
7
- };
8
- action: "created" | "updated" | "cancelled";
9
- }
10
- export declare namespace Card {
11
- function create(value: modelCard, action: Card["action"]): Card;
12
- }
@@ -1,17 +0,0 @@
1
- import { isoly } from "isoly";
2
- export var Card;
3
- (function (Card) {
4
- function create(value, action) {
5
- return {
6
- realm: value.realm,
7
- entity: { type: "card", id: value.id },
8
- organization: value.organization,
9
- account: value.account,
10
- action,
11
- created: isoly.DateTime.now(),
12
- value,
13
- };
14
- }
15
- Card.create = create;
16
- })(Card || (Card = {}));
17
- //# sourceMappingURL=Card.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAQ7B,MAAM,KAAW,IAAI,CAYpB;AAZD,WAAiB,IAAI;IACpB,SAAgB,MAAM,CAAC,KAAgB,EAAE,MAAsB;QAC9D,OAAO;YACN,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE;YACtC,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,KAAK;SACL,CAAA;IACF,CAAC;IAVe,WAAM,SAUrB,CAAA;AACF,CAAC,EAZgB,IAAI,KAAJ,IAAI,QAYpB"}
@@ -1,13 +0,0 @@
1
- import { Operation as modelOperation } from "../../../Operation";
2
- import { Realm } from "../../../Realm";
3
- import { Base } from "./Base";
4
- export interface Operation extends Base<modelOperation> {
5
- entity: {
6
- type: "operation";
7
- id: string;
8
- };
9
- action: "created";
10
- }
11
- export declare namespace Operation {
12
- function create(value: modelOperation, realm: Realm, action: Operation["action"], organization?: string, account?: string): Operation;
13
- }
@@ -1,17 +0,0 @@
1
- import { isoly } from "isoly";
2
- export var Operation;
3
- (function (Operation) {
4
- function create(value, realm, action, organization, account) {
5
- return {
6
- realm,
7
- entity: { type: "operation", id: value.signature ?? "" },
8
- organization,
9
- account,
10
- action,
11
- created: isoly.DateTime.now(),
12
- value,
13
- };
14
- }
15
- Operation.create = create;
16
- })(Operation || (Operation = {}));
17
- //# sourceMappingURL=Operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Operation.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/Operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAS7B,MAAM,KAAW,SAAS,CAkBzB;AAlBD,WAAiB,SAAS;IACzB,SAAgB,MAAM,CACrB,KAAqB,EACrB,KAAY,EACZ,MAA2B,EAC3B,YAAqB,EACrB,OAAgB;QAEhB,OAAO;YACN,KAAK;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,KAAK,CAAC,SAAS,IAAI,EAAE,EAAE;YACxD,YAAY;YACZ,OAAO;YACP,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,KAAK;SACL,CAAA;IACF,CAAC;IAhBe,gBAAM,SAgBrB,CAAA;AACF,CAAC,EAlBgB,SAAS,KAAT,SAAS,QAkBzB"}
@@ -1,13 +0,0 @@
1
- import { Organization as modelOrganization } from "../../../Organization";
2
- import { Realm } from "../../../Realm";
3
- import { Base } from "./Base";
4
- export interface Organization extends Base<modelOrganization> {
5
- entity: {
6
- type: "organization";
7
- id: string;
8
- };
9
- action: "created" | "updated";
10
- }
11
- export declare namespace Organization {
12
- function create(value: modelOrganization, realm: Realm, action: Organization["action"]): Organization;
13
- }
@@ -1,15 +0,0 @@
1
- import { isoly } from "isoly";
2
- export var Organization;
3
- (function (Organization) {
4
- function create(value, realm, action) {
5
- return {
6
- realm,
7
- entity: { type: "organization", id: value.code },
8
- action,
9
- created: isoly.DateTime.now(),
10
- value,
11
- };
12
- }
13
- Organization.create = create;
14
- })(Organization || (Organization = {}));
15
- //# sourceMappingURL=Organization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Organization.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/Organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAS7B,MAAM,KAAW,YAAY,CAU5B;AAVD,WAAiB,YAAY;IAC5B,SAAgB,MAAM,CAAC,KAAwB,EAAE,KAAY,EAAE,MAA8B;QAC5F,OAAO;YACN,KAAK;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE;YAChD,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,KAAK;SACL,CAAA;IACF,CAAC;IARe,mBAAM,SAQrB,CAAA;AACF,CAAC,EAVgB,YAAY,KAAZ,YAAY,QAU5B"}
@@ -1,18 +0,0 @@
1
- import { Realm } from "../../../Realm";
2
- import { Rule as modelRule } from "../../../Rule";
3
- import { Base } from "./Base";
4
- export interface Rule extends Base<modelRule> {
5
- entity: {
6
- type: "rule";
7
- id: string;
8
- };
9
- action: "created" | "updated" | "removed";
10
- meta: {
11
- ruleType: modelRule.Kind;
12
- ruleCategory: modelRule.Category;
13
- ruleAction: modelRule.Action;
14
- };
15
- }
16
- export declare namespace Rule {
17
- function create(value: modelRule, realm: Realm, action: Rule["action"], organization?: string, account?: string): Rule;
18
- }
@@ -1,22 +0,0 @@
1
- import { isoly } from "isoly";
2
- export var Rule;
3
- (function (Rule) {
4
- function create(value, realm, action, organization, account) {
5
- return {
6
- realm,
7
- entity: { type: "rule", id: value.code },
8
- organization,
9
- account,
10
- action,
11
- created: isoly.DateTime.now(),
12
- meta: {
13
- ruleType: value.type,
14
- ruleCategory: value.category,
15
- ruleAction: value.action,
16
- },
17
- value,
18
- };
19
- }
20
- Rule.create = create;
21
- })(Rule || (Rule = {}));
22
- //# sourceMappingURL=Rule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAc7B,MAAM,KAAW,IAAI,CAuBpB;AAvBD,WAAiB,IAAI;IACpB,SAAgB,MAAM,CACrB,KAAgB,EAChB,KAAY,EACZ,MAAsB,EACtB,YAAqB,EACrB,OAAgB;QAEhB,OAAO;YACN,KAAK;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE;YACxC,YAAY;YACZ,OAAO;YACP,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,IAAI,EAAE;gBACL,QAAQ,EAAE,KAAK,CAAC,IAAI;gBACpB,YAAY,EAAE,KAAK,CAAC,QAAQ;gBAC5B,UAAU,EAAE,KAAK,CAAC,MAAM;aACxB;YACD,KAAK;SACL,CAAA;IACF,CAAC;IArBe,WAAM,SAqBrB,CAAA;AACF,CAAC,EAvBgB,IAAI,KAAJ,IAAI,QAuBpB"}
@@ -1,14 +0,0 @@
1
- import { Realm } from "../../../Realm";
2
- import { Transaction as modelTransaction } from "../../../Transaction";
3
- import { Base } from "./Base";
4
- export interface Transaction extends Base<modelTransaction> {
5
- entity: {
6
- type: "transaction";
7
- id: string;
8
- };
9
- action: "created" | "finalized" | "cancelled" | "failed" | "updated";
10
- isError?: true;
11
- }
12
- export declare namespace Transaction {
13
- function create(value: modelTransaction, realm: Realm, action: Transaction["action"]): Transaction;
14
- }
@@ -1,16 +0,0 @@
1
- import { isoly } from "isoly";
2
- export var Transaction;
3
- (function (Transaction) {
4
- function create(value, realm, action) {
5
- return {
6
- realm,
7
- entity: { type: "transaction", id: value.id },
8
- action,
9
- ...(action == "failed" ? { isError: true } : {}),
10
- created: isoly.DateTime.now(),
11
- value,
12
- };
13
- }
14
- Transaction.create = create;
15
- })(Transaction || (Transaction = {}));
16
- //# sourceMappingURL=Transaction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAU7B,MAAM,KAAW,WAAW,CAW3B;AAXD,WAAiB,WAAW;IAC3B,SAAgB,MAAM,CAAC,KAAuB,EAAE,KAAY,EAAE,MAA6B;QAC1F,OAAO;YACN,KAAK;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE;YAC7C,MAAM;YACN,GAAG,CAAC,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAChD,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,KAAK;SACL,CAAA;IACF,CAAC;IATe,kBAAM,SASrB,CAAA;AACF,CAAC,EAXgB,WAAW,KAAX,WAAW,QAW3B"}
@@ -1,13 +0,0 @@
1
- import { userwidgets } from "@userwidgets/model";
2
- import { Realm } from "../../../Realm";
3
- import { Base } from "./Base";
4
- export type User = Base<userwidgets.User> & {
5
- entity: {
6
- type: "user";
7
- id: string;
8
- };
9
- action: "created" | "updated" | "removed";
10
- };
11
- export declare namespace User {
12
- function create(value: userwidgets.User, realm: Realm, action: User["action"]): User;
13
- }
@@ -1,15 +0,0 @@
1
- import { isoly } from "isoly";
2
- export var User;
3
- (function (User) {
4
- function create(value, realm, action) {
5
- return {
6
- realm,
7
- entity: { type: "user", id: value.email },
8
- action,
9
- created: isoly.DateTime.now(),
10
- value,
11
- };
12
- }
13
- User.create = create;
14
- })(User || (User = {}));
15
- //# sourceMappingURL=User.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAU7B,MAAM,KAAW,IAAI,CAUpB;AAVD,WAAiB,IAAI;IACpB,SAAgB,MAAM,CAAC,KAAuB,EAAE,KAAY,EAAE,MAAsB;QACnF,OAAO;YACN,KAAK;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE;YACzC,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,KAAK;SACL,CAAA;IACF,CAAC;IARe,WAAM,SAQrB,CAAA;AACF,CAAC,EAVgB,IAAI,KAAJ,IAAI,QAUpB"}
@@ -1,18 +0,0 @@
1
- import { Account as AccountEvent } from "./Account";
2
- import { Base as EventBase } from "./Base";
3
- import { Card as CardEvent } from "./Card";
4
- import { Operation as OperationEvent } from "./Operation";
5
- import { Organization as OrganizationEvent } from "./Organization";
6
- import { Rule as RuleEvent } from "./Rule";
7
- import { Transaction as TransactionEvent } from "./Transaction";
8
- import { User as UserEvent } from "./User";
9
- export declare namespace Ledger {
10
- type Base<T> = EventBase<T>;
11
- export import Transaction = TransactionEvent;
12
- export import Account = AccountEvent;
13
- export import Organization = OrganizationEvent;
14
- export import Rule = RuleEvent;
15
- export import Operation = OperationEvent;
16
- export import User = UserEvent;
17
- export import Card = CardEvent;
18
- }
@@ -1,18 +0,0 @@
1
- import { Account as AccountEvent } from "./Account";
2
- import { Card as CardEvent } from "./Card";
3
- import { Operation as OperationEvent } from "./Operation";
4
- import { Organization as OrganizationEvent } from "./Organization";
5
- import { Rule as RuleEvent } from "./Rule";
6
- import { Transaction as TransactionEvent } from "./Transaction";
7
- import { User as UserEvent } from "./User";
8
- export var Ledger;
9
- (function (Ledger) {
10
- Ledger.Transaction = TransactionEvent;
11
- Ledger.Account = AccountEvent;
12
- Ledger.Organization = OrganizationEvent;
13
- Ledger.Rule = RuleEvent;
14
- Ledger.Operation = OperationEvent;
15
- Ledger.User = UserEvent;
16
- Ledger.Card = CardEvent;
17
- })(Ledger || (Ledger = {}));
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Analytics/Event/Ledger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AAEnD,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE1C,MAAM,KAAW,MAAM,CAStB;AATD,WAAiB,MAAM;IAER,kBAAW,GAAG,gBAAgB,CAAA;IAC9B,cAAO,GAAG,YAAY,CAAA;IACtB,mBAAY,GAAG,iBAAiB,CAAA;IAChC,WAAI,GAAG,SAAS,CAAA;IAChB,gBAAS,GAAG,cAAc,CAAA;IAC1B,WAAI,GAAG,SAAS,CAAA;IAChB,WAAI,GAAG,SAAS,CAAA;AAC/B,CAAC,EATgB,MAAM,KAAN,MAAM,QAStB"}
@@ -1,11 +0,0 @@
1
- import { AuditLog as AuditLogEvent } from "./AuditLog";
2
- import { Base as EventBase } from "./Base";
3
- import { Ledger as EventLedger } from "./Ledger";
4
- export type Event = (Event.Ledger.Transaction | Event.Ledger.Operation | Event.Ledger.Organization | Event.Ledger.Rule | Event.Ledger.Account | Event.Ledger.Card | Event.Ledger.User | Event.AuditLog) & {
5
- version: string;
6
- };
7
- export declare namespace Event {
8
- type Base<T> = EventBase<T>;
9
- export import Ledger = EventLedger;
10
- export import AuditLog = AuditLogEvent;
11
- }
@@ -1,8 +0,0 @@
1
- import { AuditLog as AuditLogEvent } from "./AuditLog";
2
- import { Ledger as EventLedger } from "./Ledger";
3
- export var Event;
4
- (function (Event) {
5
- Event.Ledger = EventLedger;
6
- Event.AuditLog = AuditLogEvent;
7
- })(Event || (Event = {}));
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Analytics/Event/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAEtD,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,UAAU,CAAA;AAYhD,MAAM,KAAW,KAAK,CAIrB;AAJD,WAAiB,KAAK;IAEP,YAAM,GAAG,WAAW,CAAA;IACpB,cAAQ,GAAG,aAAa,CAAA;AACvC,CAAC,EAJgB,KAAK,KAAL,KAAK,QAIrB"}
@@ -1,6 +0,0 @@
1
- import { Configuration as AnalyticsConfiguration } from "./Configuration";
2
- import { Event as AnalyticsEvent } from "./Event";
3
- export declare namespace Analytics {
4
- export import Event = AnalyticsEvent;
5
- export import Configuration = AnalyticsConfiguration;
6
- }
@@ -1,8 +0,0 @@
1
- import { Configuration as AnalyticsConfiguration } from "./Configuration";
2
- import { Event as AnalyticsEvent } from "./Event";
3
- export var Analytics;
4
- (function (Analytics) {
5
- Analytics.Event = AnalyticsEvent;
6
- Analytics.Configuration = AnalyticsConfiguration;
7
- })(Analytics || (Analytics = {}));
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Analytics/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,SAAS,CAAA;AAEjD,MAAM,KAAW,SAAS,CAGzB;AAHD,WAAiB,SAAS;IACX,eAAK,GAAG,cAAc,CAAA;IACtB,uBAAa,GAAG,sBAAsB,CAAA;AACrD,CAAC,EAHgB,SAAS,KAAT,SAAS,QAGzB"}