@pax2pay/model-banking 0.1.366 → 0.1.367
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/Event/Ledger/User.ts +21 -0
- package/Analytics/Event/Ledger/index.ts +2 -0
- package/Analytics/Event/index.ts +1 -0
- package/dist/Analytics/Event/Ledger/User.d.ts +13 -0
- package/dist/Analytics/Event/Ledger/User.js +15 -0
- package/dist/Analytics/Event/Ledger/User.js.map +1 -0
- package/dist/Analytics/Event/Ledger/index.d.ts +2 -0
- package/dist/Analytics/Event/Ledger/index.js +2 -0
- package/dist/Analytics/Event/Ledger/index.js.map +1 -1
- package/dist/Analytics/Event/index.d.ts +1 -1
- package/dist/Analytics/Event/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { isoly } from "isoly"
|
|
2
|
+
import { userwidgets } from "@userwidgets/model"
|
|
3
|
+
import { Realm } from "../../../Realm"
|
|
4
|
+
import { Base } from "./Base"
|
|
5
|
+
|
|
6
|
+
export type User = Base<userwidgets.User> & {
|
|
7
|
+
entity: { type: "user"; id: string }
|
|
8
|
+
action: "created" | "updated" | "removed"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export namespace User {
|
|
12
|
+
export function create(value: userwidgets.User, realm: Realm, action: User["action"]): User {
|
|
13
|
+
return {
|
|
14
|
+
realm,
|
|
15
|
+
entity: { type: "user", id: value.email },
|
|
16
|
+
action,
|
|
17
|
+
created: isoly.DateTime.now(),
|
|
18
|
+
value,
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -4,6 +4,7 @@ import { Operation as OperationEvent } from "./Operation"
|
|
|
4
4
|
import { Organization as OrganizationEvent } from "./Organization"
|
|
5
5
|
import { Rule as RuleEvent } from "./Rule"
|
|
6
6
|
import { Transaction as TransactionEvent } from "./Transaction"
|
|
7
|
+
import { User as UserEvent } from "./User"
|
|
7
8
|
|
|
8
9
|
export namespace Ledger {
|
|
9
10
|
export type Base<T> = EventBase<T>
|
|
@@ -12,4 +13,5 @@ export namespace Ledger {
|
|
|
12
13
|
export import Organization = OrganizationEvent
|
|
13
14
|
export import Rule = RuleEvent
|
|
14
15
|
export import Operation = OperationEvent
|
|
16
|
+
export import User = UserEvent
|
|
15
17
|
}
|
package/Analytics/Event/index.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -4,6 +4,7 @@ import { Operation as OperationEvent } from "./Operation";
|
|
|
4
4
|
import { Organization as OrganizationEvent } from "./Organization";
|
|
5
5
|
import { Rule as RuleEvent } from "./Rule";
|
|
6
6
|
import { Transaction as TransactionEvent } from "./Transaction";
|
|
7
|
+
import { User as UserEvent } from "./User";
|
|
7
8
|
export declare namespace Ledger {
|
|
8
9
|
type Base<T> = EventBase<T>;
|
|
9
10
|
export import Transaction = TransactionEvent;
|
|
@@ -11,4 +12,5 @@ export declare namespace Ledger {
|
|
|
11
12
|
export import Organization = OrganizationEvent;
|
|
12
13
|
export import Rule = RuleEvent;
|
|
13
14
|
export import Operation = OperationEvent;
|
|
15
|
+
export import User = UserEvent;
|
|
14
16
|
}
|
|
@@ -3,6 +3,7 @@ import { Operation as OperationEvent } from "./Operation";
|
|
|
3
3
|
import { Organization as OrganizationEvent } from "./Organization";
|
|
4
4
|
import { Rule as RuleEvent } from "./Rule";
|
|
5
5
|
import { Transaction as TransactionEvent } from "./Transaction";
|
|
6
|
+
import { User as UserEvent } from "./User";
|
|
6
7
|
export var Ledger;
|
|
7
8
|
(function (Ledger) {
|
|
8
9
|
Ledger.Transaction = TransactionEvent;
|
|
@@ -10,5 +11,6 @@ export var Ledger;
|
|
|
10
11
|
Ledger.Organization = OrganizationEvent;
|
|
11
12
|
Ledger.Rule = RuleEvent;
|
|
12
13
|
Ledger.Operation = OperationEvent;
|
|
14
|
+
Ledger.User = UserEvent;
|
|
13
15
|
})(Ledger || (Ledger = {}));
|
|
14
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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,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;
|
|
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,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,CAQtB;AARD,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;AAC/B,CAAC,EARgB,MAAM,KAAN,MAAM,QAQtB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuditLog as AuditLogEvent } from "./AuditLog";
|
|
2
2
|
import { Base as EventBase } from "./Base";
|
|
3
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.AuditLog) & {
|
|
4
|
+
export type Event = (Event.Ledger.Transaction | Event.Ledger.Operation | Event.Ledger.Organization | Event.Ledger.Rule | Event.Ledger.Account | Event.Ledger.User | Event.AuditLog) & {
|
|
5
5
|
version: string;
|
|
6
6
|
};
|
|
7
7
|
export declare namespace Event {
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAWhD,MAAM,KAAW,KAAK,CAIrB;AAJD,WAAiB,KAAK;IAEP,YAAM,GAAG,WAAW,CAAA;IACpB,cAAQ,GAAG,aAAa,CAAA;AACvC,CAAC,EAJgB,KAAK,KAAL,KAAK,QAIrB"}
|