@pax2pay/model-banking 0.1.246 → 0.1.247
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/Organization/index.ts +4 -2
- package/Rule/Rule.ts +2 -0
- package/Rule/State/Organization.ts +4 -0
- package/Rule/State/index.ts +7 -1
- package/Rule/index.ts +1 -0
- package/dist/Organization/index.d.ts +2 -1
- package/dist/Organization/index.js +3 -2
- package/dist/Organization/index.js.map +1 -1
- package/dist/Rule/Rule.d.ts +1 -0
- package/dist/Rule/Rule.js +1 -0
- package/dist/Rule/Rule.js.map +1 -1
- package/dist/Rule/State/Organization.d.ts +3 -0
- package/dist/Rule/State/Organization.js +3 -0
- package/dist/Rule/State/Organization.js.map +1 -0
- package/dist/Rule/State/index.d.ts +5 -1
- package/dist/Rule/State/index.js +4 -1
- package/dist/Rule/State/index.js.map +1 -1
- package/dist/Rule/index.d.ts +1 -0
- package/dist/Rule/index.js.map +1 -1
- package/package.json +1 -1
package/Organization/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { Realm } from "../Realm"
|
|
3
|
-
import { Rule } from "../Rule"
|
|
3
|
+
import { Rule, type as ruleType } from "../Rule/Rule"
|
|
4
4
|
import { Changeable as OrganizationChangeable } from "./Changeable"
|
|
5
5
|
import { Contact as OrganizationContact } from "./Contact"
|
|
6
6
|
|
|
@@ -10,14 +10,16 @@ export interface Organization {
|
|
|
10
10
|
realm: Realm
|
|
11
11
|
rules: Rule[]
|
|
12
12
|
contact?: Organization.Contact
|
|
13
|
+
groups?: string[]
|
|
13
14
|
}
|
|
14
15
|
export namespace Organization {
|
|
15
16
|
export const type = isly.object<Organization>({
|
|
16
17
|
name: isly.string(),
|
|
17
18
|
code: isly.string(new RegExp(/^[A-Za-z0-9\-_]+$/)),
|
|
18
19
|
realm: Realm.type,
|
|
19
|
-
rules:
|
|
20
|
+
rules: ruleType.array(),
|
|
20
21
|
contact: OrganizationContact.type.optional(),
|
|
22
|
+
groups: isly.string().array().optional(),
|
|
21
23
|
})
|
|
22
24
|
export const is = type.is
|
|
23
25
|
export const flaw = type.flaw
|
package/Rule/Rule.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface Rule {
|
|
|
7
7
|
type: Kind
|
|
8
8
|
condition: string
|
|
9
9
|
flags: string[]
|
|
10
|
+
groups?: string[]
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export const actions = ["review", "reject", "flag"] as const
|
|
@@ -21,6 +22,7 @@ export const type = isly.object<Rule>({
|
|
|
21
22
|
type: isly.string(kinds),
|
|
22
23
|
condition: isly.string(),
|
|
23
24
|
flags: isly.string().array(),
|
|
25
|
+
groups: isly.string().array().optional(),
|
|
24
26
|
})
|
|
25
27
|
export const is = type.is
|
|
26
28
|
export const flaw = type.flaw
|
package/Rule/State/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Account as StateAccount } from "./Account"
|
|
|
4
4
|
import { Authorization as StateAuthorization } from "./Authorization"
|
|
5
5
|
import { Card as StateCard } from "./Card"
|
|
6
6
|
import { Data as StateData } from "./Data"
|
|
7
|
+
import { Organization as StateOrganization } from "./Organization"
|
|
7
8
|
import { Partial as StatePartial } from "./Partial"
|
|
8
9
|
import { Transaction as StateTransaction } from "./Transaction"
|
|
9
10
|
|
|
@@ -13,6 +14,7 @@ export interface State {
|
|
|
13
14
|
transaction: StateTransaction
|
|
14
15
|
authorization?: StateAuthorization
|
|
15
16
|
card?: StateCard
|
|
17
|
+
organization?: StateOrganization
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export namespace State {
|
|
@@ -23,7 +25,8 @@ export namespace State {
|
|
|
23
25
|
days: StateAccount.Days,
|
|
24
26
|
transaction: ModelTransaction.Creatable,
|
|
25
27
|
authorization?: StateAuthorization,
|
|
26
|
-
card?: StateCard
|
|
28
|
+
card?: StateCard,
|
|
29
|
+
organization?: StateOrganization
|
|
27
30
|
): State {
|
|
28
31
|
return {
|
|
29
32
|
data,
|
|
@@ -31,6 +34,7 @@ export namespace State {
|
|
|
31
34
|
transaction: Transaction.from(transaction),
|
|
32
35
|
authorization,
|
|
33
36
|
card,
|
|
37
|
+
organization,
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
export type Partial = StatePartial
|
|
@@ -50,5 +54,7 @@ export namespace State {
|
|
|
50
54
|
}
|
|
51
55
|
export type Transaction = StateTransaction
|
|
52
56
|
export const Transaction = StateTransaction
|
|
57
|
+
export type Organization = StateOrganization
|
|
58
|
+
export const Organization = StateOrganization
|
|
53
59
|
export type Data = StateData
|
|
54
60
|
}
|
package/Rule/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Realm } from "../Realm";
|
|
3
|
-
import { Rule } from "../Rule";
|
|
3
|
+
import { Rule } from "../Rule/Rule";
|
|
4
4
|
import { Changeable as OrganizationChangeable } from "./Changeable";
|
|
5
5
|
import { Contact as OrganizationContact } from "./Contact";
|
|
6
6
|
export interface Organization {
|
|
@@ -9,6 +9,7 @@ export interface Organization {
|
|
|
9
9
|
realm: Realm;
|
|
10
10
|
rules: Rule[];
|
|
11
11
|
contact?: Organization.Contact;
|
|
12
|
+
groups?: string[];
|
|
12
13
|
}
|
|
13
14
|
export declare namespace Organization {
|
|
14
15
|
const type: isly.object.ExtendableType<Organization>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Realm } from "../Realm";
|
|
3
|
-
import {
|
|
3
|
+
import { type as ruleType } from "../Rule/Rule";
|
|
4
4
|
import { Changeable as OrganizationChangeable } from "./Changeable";
|
|
5
5
|
import { Contact as OrganizationContact } from "./Contact";
|
|
6
6
|
export var Organization;
|
|
@@ -9,8 +9,9 @@ export var Organization;
|
|
|
9
9
|
name: isly.string(),
|
|
10
10
|
code: isly.string(new RegExp(/^[A-Za-z0-9\-_]+$/)),
|
|
11
11
|
realm: Realm.type,
|
|
12
|
-
rules:
|
|
12
|
+
rules: ruleType.array(),
|
|
13
13
|
contact: OrganizationContact.type.optional(),
|
|
14
|
+
groups: isly.string().array().optional(),
|
|
14
15
|
});
|
|
15
16
|
Organization.is = Organization.type.is;
|
|
16
17
|
Organization.flaw = Organization.type.flaw;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Organization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Organization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAQ,IAAI,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAU1D,MAAM,KAAW,YAAY,CAmB5B;AAnBD,WAAiB,YAAY;IACf,iBAAI,GAAG,IAAI,CAAC,MAAM,CAAe;QAC7C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAClD,KAAK,EAAE,KAAK,CAAC,IAAI;QACjB,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE;QACvB,OAAO,EAAE,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC5C,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC,CAAA;IACW,eAAE,GAAG,aAAA,IAAI,CAAC,EAAE,CAAA;IACZ,iBAAI,GAAG,aAAA,IAAI,CAAC,IAAI,CAAA;IAEhB,uBAAU,GAAG,sBAAsB,CAAA;IAEnC,oBAAO,GAAG,mBAAmB,CAAA;AAK3C,CAAC,EAnBgB,YAAY,KAAZ,YAAY,QAmB5B"}
|
package/dist/Rule/Rule.d.ts
CHANGED
package/dist/Rule/Rule.js
CHANGED
package/dist/Rule/Rule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.js","sourceRoot":"../","sources":["Rule/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Rule.js","sourceRoot":"../","sources":["Rule/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAY3B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;AAE5D,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,CAAU,CAAA;AAGtE,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAO;IACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IACxB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IAC5B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAA;AACF,MAAM,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,CAAA;AACzB,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Organization.js","sourceRoot":"../","sources":["Rule/State/Organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAGtE,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAA"}
|
|
@@ -4,6 +4,7 @@ import { Account as StateAccount } from "./Account";
|
|
|
4
4
|
import { Authorization as StateAuthorization } from "./Authorization";
|
|
5
5
|
import { Card as StateCard } from "./Card";
|
|
6
6
|
import { Data as StateData } from "./Data";
|
|
7
|
+
import { Organization as StateOrganization } from "./Organization";
|
|
7
8
|
import { Partial as StatePartial } from "./Partial";
|
|
8
9
|
import { Transaction as StateTransaction } from "./Transaction";
|
|
9
10
|
export interface State {
|
|
@@ -12,9 +13,10 @@ export interface State {
|
|
|
12
13
|
transaction: StateTransaction;
|
|
13
14
|
authorization?: StateAuthorization;
|
|
14
15
|
card?: StateCard;
|
|
16
|
+
organization?: StateOrganization;
|
|
15
17
|
}
|
|
16
18
|
export declare namespace State {
|
|
17
|
-
function from(data: StateData, account: ModelAccount, transactions: StateAccount.Transactions, days: StateAccount.Days, transaction: ModelTransaction.Creatable, authorization?: StateAuthorization, card?: StateCard): State;
|
|
19
|
+
function from(data: StateData, account: ModelAccount, transactions: StateAccount.Transactions, days: StateAccount.Days, transaction: ModelTransaction.Creatable, authorization?: StateAuthorization, card?: StateCard, organization?: StateOrganization): State;
|
|
18
20
|
type Partial = StatePartial;
|
|
19
21
|
const Partial: typeof StatePartial;
|
|
20
22
|
type Authorization = StateAuthorization;
|
|
@@ -32,5 +34,7 @@ export declare namespace State {
|
|
|
32
34
|
}
|
|
33
35
|
type Transaction = StateTransaction;
|
|
34
36
|
const Transaction: typeof StateTransaction;
|
|
37
|
+
type Organization = StateOrganization;
|
|
38
|
+
const Organization: typeof import("../../Organization").Organization;
|
|
35
39
|
type Data = StateData;
|
|
36
40
|
}
|
package/dist/Rule/State/index.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { Account as StateAccount } from "./Account";
|
|
2
2
|
import { Authorization as StateAuthorization } from "./Authorization";
|
|
3
3
|
import { Card as StateCard } from "./Card";
|
|
4
|
+
import { Organization as StateOrganization } from "./Organization";
|
|
4
5
|
import { Partial as StatePartial } from "./Partial";
|
|
5
6
|
import { Transaction as StateTransaction } from "./Transaction";
|
|
6
7
|
export var State;
|
|
7
8
|
(function (State) {
|
|
8
|
-
function from(data, account, transactions, days, transaction, authorization, card) {
|
|
9
|
+
function from(data, account, transactions, days, transaction, authorization, card, organization) {
|
|
9
10
|
return {
|
|
10
11
|
data,
|
|
11
12
|
account: State.Account.from(account, transactions, days),
|
|
12
13
|
transaction: State.Transaction.from(transaction),
|
|
13
14
|
authorization,
|
|
14
15
|
card,
|
|
16
|
+
organization,
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
State.from = from;
|
|
@@ -20,5 +22,6 @@ export var State;
|
|
|
20
22
|
State.Card = StateCard;
|
|
21
23
|
State.Account = StateAccount;
|
|
22
24
|
State.Transaction = StateTransaction;
|
|
25
|
+
State.Organization = StateOrganization;
|
|
23
26
|
})(State || (State = {}));
|
|
24
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/State/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/State/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE1C,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAW/D,MAAM,KAAW,KAAK,CAwCrB;AAxCD,WAAiB,KAAK;IACrB,SAAgB,IAAI,CACnB,IAAe,EACf,OAAqB,EACrB,YAAuC,EACvC,IAAuB,EACvB,WAAuC,EACvC,aAAkC,EAClC,IAAgB,EAChB,YAAgC;QAEhC,OAAO;YACN,IAAI;YACJ,OAAO,EAAE,MAAA,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC;YAClD,WAAW,EAAE,MAAA,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;YAC1C,aAAa;YACb,IAAI;YACJ,YAAY;SACZ,CAAA;IACF,CAAC;IAlBe,UAAI,OAkBnB,CAAA;IAEY,aAAO,GAAG,YAAY,CAAA;IAEtB,mBAAa,GAAG,kBAAkB,CAAA;IAElC,UAAI,GAAG,SAAS,CAAA;IAKhB,aAAO,GAAG,YAAY,CAAA;IAMtB,iBAAW,GAAG,gBAAgB,CAAA;IAE9B,kBAAY,GAAG,iBAAiB,CAAA;AAE9C,CAAC,EAxCgB,KAAK,KAAL,KAAK,QAwCrB"}
|
package/dist/Rule/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare namespace Rule {
|
|
|
23
23
|
type Transaction = RuleState.Transaction;
|
|
24
24
|
type Data = RuleState.Data;
|
|
25
25
|
type Partial = RuleState.Partial;
|
|
26
|
+
type Organization = RuleState.Organization;
|
|
26
27
|
}
|
|
27
28
|
const type: import("isly/dist/cjs/object").object.ExtendableType<ModelRule.Rule>;
|
|
28
29
|
const is: import("isly/dist/cjs/Type").Type.IsFunction<ModelRule.Rule>;
|
package/dist/Rule/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CAwCpB;AAxCD,WAAiB,IAAI;IACP,YAAO,GAAG,SAAS,CAAC,OAAO,CAAA;IAE3B,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IAGvB,UAAK,GAAG,SAAS,CAAA;IAkBjB,SAAI,GAAG,SAAS,CAAC,IAAI,CAAA;IACrB,OAAE,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,CAAA;IACtB,SAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;IACvC,SAAgB,QAAQ,CACvB,KAAa,EACb,KAAY,EACZ,MAA+C;QAE/C,MAAM,MAAM,GAA2B,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;QAC3E,KAAK,CAAC,OAAO,CACZ,CAAC,CAAC,EAAE,CACH,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;YAC5F,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACzB,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IAZe,aAAQ,WAYvB,CAAA;AACF,CAAC,EAxCgB,IAAI,KAAJ,IAAI,QAwCpB"}
|