@pax2pay/model-banking 0.1.359 → 0.1.360
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.
- package/Analytics/Configuration/Base.ts +4 -3
- package/Analytics/Configuration/Ledger/Base.ts +2 -1
- package/Analytics/Event/AuditLog.ts +2 -3
- package/Analytics/Event/Base.ts +1 -2
- package/Analytics/Event/Ledger/Account.ts +2 -3
- package/Analytics/Event/Ledger/Operation.ts +2 -3
- package/Analytics/Event/Ledger/Organization.ts +2 -3
- package/Analytics/Event/Ledger/Rule.ts +2 -3
- package/Analytics/Event/Ledger/Transaction.ts +2 -3
- package/dist/Analytics/Configuration/Base.d.ts +4 -3
- package/dist/Analytics/Configuration/Base.js +2 -2
- package/dist/Analytics/Configuration/Base.js.map +1 -1
- package/dist/Analytics/Configuration/Ledger/Base.d.ts +4 -3
- package/dist/Analytics/Configuration/Ledger/Base.js.map +1 -1
- package/dist/Analytics/Configuration/Transaction.d.ts +2 -2
- package/dist/Analytics/Event/AuditLog.d.ts +4 -1
- package/dist/Analytics/Event/AuditLog.js +1 -2
- package/dist/Analytics/Event/AuditLog.js.map +1 -1
- package/dist/Analytics/Event/Base.d.ts +4 -2
- package/dist/Analytics/Event/Ledger/Account.d.ts +4 -1
- package/dist/Analytics/Event/Ledger/Account.js +1 -2
- package/dist/Analytics/Event/Ledger/Account.js.map +1 -1
- package/dist/Analytics/Event/Ledger/Operation.d.ts +4 -1
- package/dist/Analytics/Event/Ledger/Operation.js +1 -2
- package/dist/Analytics/Event/Ledger/Operation.js.map +1 -1
- package/dist/Analytics/Event/Ledger/Organization.d.ts +4 -1
- package/dist/Analytics/Event/Ledger/Organization.js +1 -2
- package/dist/Analytics/Event/Ledger/Organization.js.map +1 -1
- package/dist/Analytics/Event/Ledger/Rule.d.ts +4 -1
- package/dist/Analytics/Event/Ledger/Rule.js +1 -2
- package/dist/Analytics/Event/Ledger/Rule.js.map +1 -1
- package/dist/Analytics/Event/Ledger/Transaction.d.ts +4 -1
- package/dist/Analytics/Event/Ledger/Transaction.js +1 -2
- package/dist/Analytics/Event/Ledger/Transaction.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { filter, listener } from "cloudly-analytics-common"
|
|
2
2
|
import { Event } from "../Event"
|
|
3
|
+
import type { FlattenKeys } from ".";
|
|
3
4
|
|
|
4
5
|
export namespace Base {
|
|
5
|
-
export type Selectors =
|
|
6
|
+
export type Selectors = FlattenKeys<Required<Omit<Event.Base<any>, "value">>>
|
|
6
7
|
| "version"
|
|
7
8
|
| "source"
|
|
8
9
|
export const mapping = {
|
|
9
10
|
realm: "realm",
|
|
10
|
-
entityType: "
|
|
11
|
-
entity: "entity",
|
|
11
|
+
entityType: "entity.type",
|
|
12
|
+
entity: "entity.id",
|
|
12
13
|
action: "action",
|
|
13
14
|
created: "created",
|
|
14
15
|
isError: { selector: "isError", transform: "boolean" },
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { filter, listener } from "cloudly-analytics-common"
|
|
2
2
|
import { Event } from "../../Event"
|
|
3
|
+
import { FlattenKeys } from ".."
|
|
3
4
|
import { Base as ConfigBase } from "../Base"
|
|
4
5
|
|
|
5
6
|
export namespace Base {
|
|
6
|
-
export type Selectors =
|
|
7
|
+
export type Selectors = FlattenKeys<Required<Event.Ledger.Base<any>>>
|
|
7
8
|
| "version"
|
|
8
9
|
| "source"
|
|
9
10
|
export const mapping = {
|
|
@@ -4,15 +4,14 @@ import { Realm } from "../../Realm"
|
|
|
4
4
|
import { Base } from "./Base"
|
|
5
5
|
|
|
6
6
|
export type AuditLog = Base<Audit> & {
|
|
7
|
-
|
|
7
|
+
entity: { type: "auditLog"; id: string }
|
|
8
8
|
action: "created"
|
|
9
9
|
}
|
|
10
10
|
export namespace AuditLog {
|
|
11
11
|
export function create(value: Audit, realm: Realm, action: AuditLog["action"]): AuditLog {
|
|
12
12
|
return {
|
|
13
13
|
realm,
|
|
14
|
-
|
|
15
|
-
entity: value.id,
|
|
14
|
+
entity: { type: "auditLog", id: value.id },
|
|
16
15
|
action,
|
|
17
16
|
created: isoly.DateTime.now(),
|
|
18
17
|
value,
|
package/Analytics/Event/Base.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Realm } from "../../../Realm"
|
|
|
4
4
|
import { Base } from "./Base"
|
|
5
5
|
|
|
6
6
|
export interface Account extends Base<modelAccount> {
|
|
7
|
-
|
|
7
|
+
entity: { type: "account"; id: string }
|
|
8
8
|
action: "created" | "updated"
|
|
9
9
|
meta: { accountKey: string }
|
|
10
10
|
}
|
|
@@ -12,8 +12,7 @@ export namespace Account {
|
|
|
12
12
|
export function create(value: modelAccount, organization: string, realm: Realm, action: Account["action"]): Account {
|
|
13
13
|
return {
|
|
14
14
|
realm,
|
|
15
|
-
entity: value.id,
|
|
16
|
-
entityType: "account",
|
|
15
|
+
entity: { type: "account", id: value.id },
|
|
17
16
|
organization,
|
|
18
17
|
action,
|
|
19
18
|
created: isoly.DateTime.now(),
|
|
@@ -4,7 +4,7 @@ import { Realm } from "../../../Realm"
|
|
|
4
4
|
import { Base } from "./Base"
|
|
5
5
|
|
|
6
6
|
export interface Operation extends Base<modelOperation> {
|
|
7
|
-
|
|
7
|
+
entity: { type: "operation"; id: string }
|
|
8
8
|
action: "created"
|
|
9
9
|
}
|
|
10
10
|
export namespace Operation {
|
|
@@ -17,8 +17,7 @@ export namespace Operation {
|
|
|
17
17
|
): Operation {
|
|
18
18
|
return {
|
|
19
19
|
realm,
|
|
20
|
-
|
|
21
|
-
entity: value.signature ?? "",
|
|
20
|
+
entity: { type: "operation", id: value.signature ?? "" },
|
|
22
21
|
organization,
|
|
23
22
|
account,
|
|
24
23
|
action,
|
|
@@ -4,15 +4,14 @@ import { Realm } from "../../../Realm"
|
|
|
4
4
|
import { Base } from "./Base"
|
|
5
5
|
|
|
6
6
|
export interface Organization extends Base<modelOrganization> {
|
|
7
|
-
|
|
7
|
+
entity: { type: "organization"; id: string }
|
|
8
8
|
action: "created" | "updated"
|
|
9
9
|
}
|
|
10
10
|
export namespace Organization {
|
|
11
11
|
export function create(value: modelOrganization, realm: Realm, action: Organization["action"]): Organization {
|
|
12
12
|
return {
|
|
13
13
|
realm,
|
|
14
|
-
|
|
15
|
-
entity: value.code,
|
|
14
|
+
entity: { type: "organization", id: value.code },
|
|
16
15
|
action,
|
|
17
16
|
created: isoly.DateTime.now(),
|
|
18
17
|
value,
|
|
@@ -4,7 +4,7 @@ import { Rule as modelRule } from "../../../Rule"
|
|
|
4
4
|
import { Base } from "./Base"
|
|
5
5
|
|
|
6
6
|
export interface Rule extends Base<modelRule> {
|
|
7
|
-
|
|
7
|
+
entity: { type: "rule"; id: string }
|
|
8
8
|
action: "created" | "updated" | "removed"
|
|
9
9
|
meta: {
|
|
10
10
|
ruleType: modelRule.Kind
|
|
@@ -22,8 +22,7 @@ export namespace Rule {
|
|
|
22
22
|
): Rule {
|
|
23
23
|
return {
|
|
24
24
|
realm,
|
|
25
|
-
|
|
26
|
-
entity: value.code,
|
|
25
|
+
entity: { type: "rule", id: value.code },
|
|
27
26
|
organization,
|
|
28
27
|
account,
|
|
29
28
|
action,
|
|
@@ -4,7 +4,7 @@ import { Transaction as modelTransaction } from "../../../Transaction"
|
|
|
4
4
|
import { Base } from "./Base"
|
|
5
5
|
|
|
6
6
|
export interface Transaction extends Base<modelTransaction> {
|
|
7
|
-
|
|
7
|
+
entity: { type: "transaction"; id: string }
|
|
8
8
|
action: "created" | "finalized" | "cancelled" | "failed"
|
|
9
9
|
isError?: true
|
|
10
10
|
}
|
|
@@ -12,8 +12,7 @@ export namespace Transaction {
|
|
|
12
12
|
export function create(value: modelTransaction, realm: Realm, action: Transaction["action"]): Transaction {
|
|
13
13
|
return {
|
|
14
14
|
realm,
|
|
15
|
-
|
|
16
|
-
entity: value.id,
|
|
15
|
+
entity: { type: "transaction", id: value.id },
|
|
17
16
|
action,
|
|
18
17
|
...(action == "failed" ? { isError: true } : {}),
|
|
19
18
|
created: isoly.DateTime.now(),
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { listener } from "cloudly-analytics-common";
|
|
2
2
|
import { Event } from "../Event";
|
|
3
|
+
import type { FlattenKeys } from ".";
|
|
3
4
|
export declare namespace Base {
|
|
4
|
-
type Selectors =
|
|
5
|
+
type Selectors = FlattenKeys<Required<Omit<Event.Base<any>, "value">>> | "version" | "source";
|
|
5
6
|
const mapping: {
|
|
6
7
|
readonly realm: "realm";
|
|
7
|
-
readonly entityType: "
|
|
8
|
-
readonly entity: "entity";
|
|
8
|
+
readonly entityType: "entity.type";
|
|
9
|
+
readonly entity: "entity.id";
|
|
9
10
|
readonly action: "action";
|
|
10
11
|
readonly created: "created";
|
|
11
12
|
readonly isError: {
|
|
@@ -2,8 +2,8 @@ export var Base;
|
|
|
2
2
|
(function (Base) {
|
|
3
3
|
Base.mapping = {
|
|
4
4
|
realm: "realm",
|
|
5
|
-
entityType: "
|
|
6
|
-
entity: "entity",
|
|
5
|
+
entityType: "entity.type",
|
|
6
|
+
entity: "entity.id",
|
|
7
7
|
action: "action",
|
|
8
8
|
created: "created",
|
|
9
9
|
isError: { selector: "isError", transform: "boolean" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"../","sources":["Analytics/Configuration/Base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"../","sources":["Analytics/Configuration/Base.ts"],"names":[],"mappings":"AAIA,MAAM,KAAW,IAAI,CA0BpB;AA1BD,WAAiB,IAAI;IAIP,YAAO,GAAG;QACtB,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,aAAa;QACzB,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE;QACtD,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KAEgD,CAAC;IAErD,WAAM,GAA6C;QAC/D,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;QACtC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE;QACtD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;KACnC,CAAA;AACF,CAAC,EA1BgB,IAAI,KAAJ,IAAI,QA0BpB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { listener } from "cloudly-analytics-common";
|
|
2
2
|
import { Event } from "../../Event";
|
|
3
|
+
import { FlattenKeys } from "..";
|
|
3
4
|
export declare namespace Base {
|
|
4
|
-
type Selectors =
|
|
5
|
+
type Selectors = FlattenKeys<Required<Event.Ledger.Base<any>>> | "version" | "source";
|
|
5
6
|
const mapping: {
|
|
6
7
|
readonly organization: "organization";
|
|
7
8
|
readonly account: "account";
|
|
@@ -14,8 +15,8 @@ export declare namespace Base {
|
|
|
14
15
|
readonly transform: "stringify";
|
|
15
16
|
};
|
|
16
17
|
readonly realm: "realm";
|
|
17
|
-
readonly entityType: "
|
|
18
|
-
readonly entity: "entity";
|
|
18
|
+
readonly entityType: "entity.type";
|
|
19
|
+
readonly entity: "entity.id";
|
|
19
20
|
readonly action: "action";
|
|
20
21
|
readonly created: "created";
|
|
21
22
|
readonly isError: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"../","sources":["Analytics/Configuration/Ledger/Base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"../","sources":["Analytics/Configuration/Ledger/Base.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,KAAW,IAAI,CAuBpB;AAvBD,WAAiB,IAAI;IAIP,YAAO,GAAG;QACtB,GAAG,UAAU,CAAC,OAAO;QACrB,YAAY,EAAE,cAAc;QAC5B,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE;QAC9C,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE;KAEY,CAAC;IAErD,WAAM,GAA6C;QAC/D,GAAG,UAAU,CAAC,MAAM;QACpB,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE;QAC1D,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE;QACrD,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE;gBACzD,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;aACjC,EAAC;QACF,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;KACjC,CAAA;AACF,CAAC,EAvBgB,IAAI,KAAJ,IAAI,QAuBpB"}
|
|
@@ -101,8 +101,8 @@ export declare namespace Transaction {
|
|
|
101
101
|
readonly transform: "stringify";
|
|
102
102
|
};
|
|
103
103
|
readonly realm: "realm";
|
|
104
|
-
readonly entityType: "
|
|
105
|
-
readonly entity: "entity";
|
|
104
|
+
readonly entityType: "entity.type";
|
|
105
|
+
readonly entity: "entity.id";
|
|
106
106
|
readonly action: "action";
|
|
107
107
|
readonly created: "created";
|
|
108
108
|
readonly isError: {
|
|
@@ -2,7 +2,10 @@ import { Audit } from "../../Audit";
|
|
|
2
2
|
import { Realm } from "../../Realm";
|
|
3
3
|
import { Base } from "./Base";
|
|
4
4
|
export type AuditLog = Base<Audit> & {
|
|
5
|
-
|
|
5
|
+
entity: {
|
|
6
|
+
type: "auditLog";
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
6
9
|
action: "created";
|
|
7
10
|
};
|
|
8
11
|
export declare namespace AuditLog {
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -2,8 +2,10 @@ import { isoly } from "isoly";
|
|
|
2
2
|
import { Realm } from "../../Realm";
|
|
3
3
|
export type Base<T> = {
|
|
4
4
|
realm: Realm;
|
|
5
|
-
entity:
|
|
6
|
-
|
|
5
|
+
entity: {
|
|
6
|
+
type: string;
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
7
9
|
action: string;
|
|
8
10
|
created: isoly.DateTime;
|
|
9
11
|
isError?: true;
|
|
@@ -2,7 +2,10 @@ import { Account as modelAccount } from "../../../Account";
|
|
|
2
2
|
import { Realm } from "../../../Realm";
|
|
3
3
|
import { Base } from "./Base";
|
|
4
4
|
export interface Account extends Base<modelAccount> {
|
|
5
|
-
|
|
5
|
+
entity: {
|
|
6
|
+
type: "account";
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
6
9
|
action: "created" | "updated";
|
|
7
10
|
meta: {
|
|
8
11
|
accountKey: string;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -2,7 +2,10 @@ import { Operation as modelOperation } from "../../../Operation";
|
|
|
2
2
|
import { Realm } from "../../../Realm";
|
|
3
3
|
import { Base } from "./Base";
|
|
4
4
|
export interface Operation extends Base<modelOperation> {
|
|
5
|
-
|
|
5
|
+
entity: {
|
|
6
|
+
type: "operation";
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
6
9
|
action: "created";
|
|
7
10
|
}
|
|
8
11
|
export declare namespace Operation {
|
|
@@ -4,8 +4,7 @@ export var Operation;
|
|
|
4
4
|
function create(value, realm, action, organization, account) {
|
|
5
5
|
return {
|
|
6
6
|
realm,
|
|
7
|
-
|
|
8
|
-
entity: value.signature ?? "",
|
|
7
|
+
entity: { type: "operation", id: value.signature ?? "" },
|
|
9
8
|
organization,
|
|
10
9
|
account,
|
|
11
10
|
action,
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -2,7 +2,10 @@ import { Organization as modelOrganization } from "../../../Organization";
|
|
|
2
2
|
import { Realm } from "../../../Realm";
|
|
3
3
|
import { Base } from "./Base";
|
|
4
4
|
export interface Organization extends Base<modelOrganization> {
|
|
5
|
-
|
|
5
|
+
entity: {
|
|
6
|
+
type: "organization";
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
6
9
|
action: "created" | "updated";
|
|
7
10
|
}
|
|
8
11
|
export declare namespace Organization {
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -2,7 +2,10 @@ import { Realm } from "../../../Realm";
|
|
|
2
2
|
import { Rule as modelRule } from "../../../Rule";
|
|
3
3
|
import { Base } from "./Base";
|
|
4
4
|
export interface Rule extends Base<modelRule> {
|
|
5
|
-
|
|
5
|
+
entity: {
|
|
6
|
+
type: "rule";
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
6
9
|
action: "created" | "updated" | "removed";
|
|
7
10
|
meta: {
|
|
8
11
|
ruleType: modelRule.Kind;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -2,7 +2,10 @@ import { Realm } from "../../../Realm";
|
|
|
2
2
|
import { Transaction as modelTransaction } from "../../../Transaction";
|
|
3
3
|
import { Base } from "./Base";
|
|
4
4
|
export interface Transaction extends Base<modelTransaction> {
|
|
5
|
-
|
|
5
|
+
entity: {
|
|
6
|
+
type: "transaction";
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
6
9
|
action: "created" | "finalized" | "cancelled" | "failed";
|
|
7
10
|
isError?: true;
|
|
8
11
|
}
|
|
@@ -4,8 +4,7 @@ export var Transaction;
|
|
|
4
4
|
function create(value, realm, action) {
|
|
5
5
|
return {
|
|
6
6
|
realm,
|
|
7
|
-
|
|
8
|
-
entity: value.id,
|
|
7
|
+
entity: { type: "transaction", id: value.id },
|
|
9
8
|
action,
|
|
10
9
|
...(action == "failed" ? { isError: true } : {}),
|
|
11
10
|
created: isoly.DateTime.now(),
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|