@pax2pay/model-banking 0.1.245 → 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/Client/Labels.ts +19 -0
- package/Client/index.ts +3 -2
- package/Label.ts +19 -0
- 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/Client/Labels.d.ts +12 -0
- package/dist/Client/Labels.js +19 -0
- package/dist/Client/Labels.js.map +1 -0
- package/dist/Client/index.d.ts +3 -2
- package/dist/Client/index.js +3 -2
- package/dist/Client/index.js.map +1 -1
- package/dist/Label.d.ts +18 -0
- package/dist/Label.js +15 -0
- package/dist/Label.js.map +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/dist/pax2pay.d.ts +1 -1
- package/dist/pax2pay.js +1 -1
- package/dist/pax2pay.js.map +1 -1
- package/package.json +1 -1
- package/pax2pay.ts +1 -1
- package/Client/Flags.ts +0 -19
- package/Flag.ts +0 -8
- package/dist/Client/Flags.d.ts +0 -11
- package/dist/Client/Flags.js +0 -18
- package/dist/Client/Flags.js.map +0 -1
- package/dist/Flag.d.ts +0 -7
- package/dist/Flag.js +0 -3
- package/dist/Flag.js.map +0 -1
package/Client/Labels.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import { Label } from "../Label"
|
|
4
|
+
|
|
5
|
+
export class Labels {
|
|
6
|
+
constructor(private readonly client: http.Client, readonly type: Label.Type) {}
|
|
7
|
+
async create(label: Label): Promise<Label | gracely.Error> {
|
|
8
|
+
return this.client.post<Label>(`/label/${this.type}`, label)
|
|
9
|
+
}
|
|
10
|
+
async replace(label: Label): Promise<Label | gracely.Error> {
|
|
11
|
+
return this.client.put<Label>(`/label/${this.type}`, label)
|
|
12
|
+
}
|
|
13
|
+
async list(): Promise<Label[] | gracely.Error> {
|
|
14
|
+
return this.client.get<Label[]>(`/label/${this.type}`)
|
|
15
|
+
}
|
|
16
|
+
async remove(name: string): Promise<Label | gracely.Error> {
|
|
17
|
+
return this.client.delete(`/label/${this.type}/${name}`)
|
|
18
|
+
}
|
|
19
|
+
}
|
package/Client/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { rest } from "cloudly-rest"
|
|
|
5
5
|
import { Accounts } from "./Accounts"
|
|
6
6
|
import { Cards } from "./Cards"
|
|
7
7
|
import { Exchanges } from "./Exchanges"
|
|
8
|
-
import {
|
|
8
|
+
import { Labels } from "./Labels"
|
|
9
9
|
import { Operations } from "./Operations"
|
|
10
10
|
import { Organizations } from "./Organizations"
|
|
11
11
|
import { Reports } from "./Reports"
|
|
@@ -28,7 +28,8 @@ export class Client extends rest.Client<gracely.Error> {
|
|
|
28
28
|
readonly settlements = new Settlements(this.client)
|
|
29
29
|
readonly transactions = new Transactions(this.client)
|
|
30
30
|
readonly treasury = new Treasury(this.client)
|
|
31
|
-
readonly flags = new
|
|
31
|
+
readonly flags = new Labels(this.client, "flag")
|
|
32
|
+
readonly groups = new Labels(this.client, "group")
|
|
32
33
|
readonly userwidgets = (server: string, application: string) =>
|
|
33
34
|
new userwidgets.ClientCollection(new http.Client(server), { application })
|
|
34
35
|
readonly version = new Version(this.client)
|
package/Label.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
|
|
3
|
+
export interface Label {
|
|
4
|
+
name: string
|
|
5
|
+
color: string
|
|
6
|
+
description: string
|
|
7
|
+
}
|
|
8
|
+
export namespace Label {
|
|
9
|
+
export const type = isly.object<Label>({ name: isly.string(), color: isly.string(), description: isly.string() })
|
|
10
|
+
export const is = type.is
|
|
11
|
+
export const flaw = type.flaw
|
|
12
|
+
export type Type = typeof Type.values[number]
|
|
13
|
+
export namespace Type {
|
|
14
|
+
export const values = ["flag", "group"] as const
|
|
15
|
+
export const type = isly.string(values)
|
|
16
|
+
export const is = type.is
|
|
17
|
+
export const flaw = type.flaw
|
|
18
|
+
}
|
|
19
|
+
}
|
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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Label } from "../Label";
|
|
4
|
+
export declare class Labels {
|
|
5
|
+
private readonly client;
|
|
6
|
+
readonly type: Label.Type;
|
|
7
|
+
constructor(client: http.Client, type: Label.Type);
|
|
8
|
+
create(label: Label): Promise<Label | gracely.Error>;
|
|
9
|
+
replace(label: Label): Promise<Label | gracely.Error>;
|
|
10
|
+
list(): Promise<Label[] | gracely.Error>;
|
|
11
|
+
remove(name: string): Promise<Label | gracely.Error>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class Labels {
|
|
2
|
+
constructor(client, type) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
this.type = type;
|
|
5
|
+
}
|
|
6
|
+
async create(label) {
|
|
7
|
+
return this.client.post(`/label/${this.type}`, label);
|
|
8
|
+
}
|
|
9
|
+
async replace(label) {
|
|
10
|
+
return this.client.put(`/label/${this.type}`, label);
|
|
11
|
+
}
|
|
12
|
+
async list() {
|
|
13
|
+
return this.client.get(`/label/${this.type}`);
|
|
14
|
+
}
|
|
15
|
+
async remove(name) {
|
|
16
|
+
return this.client.delete(`/label/${this.type}/${name}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Labels.js","sourceRoot":"../","sources":["Client/Labels.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,MAAM;IAClB,YAA6B,MAAmB,EAAW,IAAgB;QAA9C,WAAM,GAAN,MAAM,CAAa;QAAW,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAC/E,KAAK,CAAC,MAAM,CAAC,KAAY;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAQ,UAAU,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,CAAA;IAC7D,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,KAAY;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAQ,UAAU,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,CAAA;IAC5D,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,UAAU,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IACvD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAY;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,CAAA;IACzD,CAAC;CACD"}
|
package/dist/Client/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { rest } from "cloudly-rest";
|
|
|
5
5
|
import { Accounts } from "./Accounts";
|
|
6
6
|
import { Cards } from "./Cards";
|
|
7
7
|
import { Exchanges } from "./Exchanges";
|
|
8
|
-
import {
|
|
8
|
+
import { Labels } from "./Labels";
|
|
9
9
|
import { Operations } from "./Operations";
|
|
10
10
|
import { Organizations } from "./Organizations";
|
|
11
11
|
import { Reports } from "./Reports";
|
|
@@ -27,7 +27,8 @@ export declare class Client extends rest.Client<gracely.Error> {
|
|
|
27
27
|
readonly settlements: Settlements;
|
|
28
28
|
readonly transactions: Transactions;
|
|
29
29
|
readonly treasury: Treasury;
|
|
30
|
-
readonly flags:
|
|
30
|
+
readonly flags: Labels;
|
|
31
|
+
readonly groups: Labels;
|
|
31
32
|
readonly userwidgets: (server: string, application: string) => userwidgets.ClientCollection;
|
|
32
33
|
readonly version: Version;
|
|
33
34
|
static create<T = Record<string, any>>(server: string, key?: string, load?: (client: http.Client) => T): Client & T;
|
package/dist/Client/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { rest } from "cloudly-rest";
|
|
|
4
4
|
import { Accounts } from "./Accounts";
|
|
5
5
|
import { Cards } from "./Cards";
|
|
6
6
|
import { Exchanges } from "./Exchanges";
|
|
7
|
-
import {
|
|
7
|
+
import { Labels } from "./Labels";
|
|
8
8
|
import { Operations } from "./Operations";
|
|
9
9
|
import { Organizations } from "./Organizations";
|
|
10
10
|
import { Reports } from "./Reports";
|
|
@@ -26,7 +26,8 @@ export class Client extends rest.Client {
|
|
|
26
26
|
this.settlements = new Settlements(this.client);
|
|
27
27
|
this.transactions = new Transactions(this.client);
|
|
28
28
|
this.treasury = new Treasury(this.client);
|
|
29
|
-
this.flags = new
|
|
29
|
+
this.flags = new Labels(this.client, "flag");
|
|
30
|
+
this.groups = new Labels(this.client, "group");
|
|
30
31
|
this.userwidgets = (server, application) => new userwidgets.ClientCollection(new http.Client(server), { application });
|
|
31
32
|
this.version = new Version(this.client);
|
|
32
33
|
}
|
package/dist/Client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE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{ isly } from "isly";
|
|
2
|
+
export interface Label {
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Label {
|
|
8
|
+
const type: isly.object.ExtendableType<Label>;
|
|
9
|
+
const is: isly.Type.IsFunction<Label>;
|
|
10
|
+
const flaw: isly.Type.FlawFunction;
|
|
11
|
+
type Type = typeof Type.values[number];
|
|
12
|
+
namespace Type {
|
|
13
|
+
const values: readonly ["flag", "group"];
|
|
14
|
+
const type: isly.Type<"group" | "flag">;
|
|
15
|
+
const is: isly.Type.IsFunction<"group" | "flag">;
|
|
16
|
+
const flaw: isly.Type.FlawFunction;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/Label.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export var Label;
|
|
3
|
+
(function (Label) {
|
|
4
|
+
Label.type = isly.object({ name: isly.string(), color: isly.string(), description: isly.string() });
|
|
5
|
+
Label.is = Label.type.is;
|
|
6
|
+
Label.flaw = Label.type.flaw;
|
|
7
|
+
let Type;
|
|
8
|
+
(function (Type) {
|
|
9
|
+
Type.values = ["flag", "group"];
|
|
10
|
+
Type.type = isly.string(Type.values);
|
|
11
|
+
Type.is = Type.type.is;
|
|
12
|
+
Type.flaw = Type.type.flaw;
|
|
13
|
+
})(Type = Label.Type || (Label.Type = {}));
|
|
14
|
+
})(Label || (Label = {}));
|
|
15
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sourceRoot":"../","sources":["Label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,KAAK,CAWrB;AAXD,WAAiB,KAAK;IACR,UAAI,GAAG,IAAI,CAAC,MAAM,CAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IACpG,QAAE,GAAG,MAAA,IAAI,CAAC,EAAE,CAAA;IACZ,UAAI,GAAG,MAAA,IAAI,CAAC,IAAI,CAAA;IAE7B,IAAiB,IAAI,CAKpB;IALD,WAAiB,IAAI;QACP,WAAM,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAA;QACnC,SAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAA,MAAM,CAAC,CAAA;QAC1B,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;QACZ,SAAI,GAAG,KAAA,IAAI,CAAC,IAAI,CAAA;IAC9B,CAAC,EALgB,IAAI,GAAJ,UAAI,KAAJ,UAAI,QAKpB;AACF,CAAC,EAXgB,KAAK,KAAL,KAAK,QAWrB"}
|
|
@@ -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,EA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G,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"}
|
package/dist/pax2pay.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { Identifier } from "./Identifier";
|
|
|
20
20
|
export { Amount } from "./Amount";
|
|
21
21
|
export { Amounts } from "./Amounts";
|
|
22
22
|
export { Report } from "./Report";
|
|
23
|
-
export {
|
|
23
|
+
export { Label } from "./Label";
|
|
24
24
|
export { Identity } from "./Identity";
|
|
25
25
|
export { Key } from "./Key";
|
|
26
26
|
export { Exchange } from "./Exchange";
|
package/dist/pax2pay.js
CHANGED
|
@@ -20,7 +20,7 @@ export { Identifier } from "./Identifier";
|
|
|
20
20
|
export { Amount } from "./Amount";
|
|
21
21
|
export { Amounts } from "./Amounts";
|
|
22
22
|
export { Report } from "./Report";
|
|
23
|
-
export {
|
|
23
|
+
export { Label } from "./Label";
|
|
24
24
|
export { Identity } from "./Identity";
|
|
25
25
|
export { Key } from "./Key";
|
|
26
26
|
export { Exchange } from "./Ex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Q,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
package/package.json
CHANGED
package/pax2pay.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { Identifier } from "./Identifier"
|
|
|
20
20
|
export { Amount } from "./Amount"
|
|
21
21
|
export { Amounts } from "./Amounts"
|
|
22
22
|
export { Report } from "./Report"
|
|
23
|
-
export {
|
|
23
|
+
export { Label } from "./Label"
|
|
24
24
|
export { Identity } from "./Identity"
|
|
25
25
|
export { Key } from "./Key"
|
|
26
26
|
export { Exchange } from "./Exchange"
|
package/Client/Flags.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { gracely } from "gracely"
|
|
2
|
-
import { http } from "cloudly-http"
|
|
3
|
-
import { Flag } from "../Flag"
|
|
4
|
-
|
|
5
|
-
export class Flags {
|
|
6
|
-
constructor(private readonly client: http.Client) {}
|
|
7
|
-
async create(flag: Flag): Promise<Flag | gracely.Error> {
|
|
8
|
-
return this.client.post<Flag>("/flag", flag)
|
|
9
|
-
}
|
|
10
|
-
async replace(flag: Flag): Promise<Flag | gracely.Error> {
|
|
11
|
-
return this.client.put<Flag>("/flag", flag)
|
|
12
|
-
}
|
|
13
|
-
async list(): Promise<Flag[] | gracely.Error> {
|
|
14
|
-
return this.client.get<Flag[]>("/flag")
|
|
15
|
-
}
|
|
16
|
-
async remove(name: string): Promise<Flag | gracely.Error> {
|
|
17
|
-
return this.client.delete(`/flag/${name}`)
|
|
18
|
-
}
|
|
19
|
-
}
|
package/Flag.ts
DELETED
package/dist/Client/Flags.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { gracely } from "gracely";
|
|
2
|
-
import { http } from "cloudly-http";
|
|
3
|
-
import { Flag } from "../Flag";
|
|
4
|
-
export declare class Flags {
|
|
5
|
-
private readonly client;
|
|
6
|
-
constructor(client: http.Client);
|
|
7
|
-
create(flag: Flag): Promise<Flag | gracely.Error>;
|
|
8
|
-
replace(flag: Flag): Promise<Flag | gracely.Error>;
|
|
9
|
-
list(): Promise<Flag[] | gracely.Error>;
|
|
10
|
-
remove(name: string): Promise<Flag | gracely.Error>;
|
|
11
|
-
}
|
package/dist/Client/Flags.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export class Flags {
|
|
2
|
-
constructor(client) {
|
|
3
|
-
this.client = client;
|
|
4
|
-
}
|
|
5
|
-
async create(flag) {
|
|
6
|
-
return this.client.post("/flag", flag);
|
|
7
|
-
}
|
|
8
|
-
async replace(flag) {
|
|
9
|
-
return this.client.put("/flag", flag);
|
|
10
|
-
}
|
|
11
|
-
async list() {
|
|
12
|
-
return this.client.get("/flag");
|
|
13
|
-
}
|
|
14
|
-
async remove(name) {
|
|
15
|
-
return this.client.delete(`/flag/${name}`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=Flags.js.map
|
package/dist/Client/Flags.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flags.js","sourceRoot":"../","sources":["Client/Flags.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,KAAK;IACjB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,IAAU;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,OAAO,EAAE,IAAI,CAAC,CAAA;IAC7C,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,IAAU;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAO,OAAO,EAAE,IAAI,CAAC,CAAA;IAC5C,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,OAAO,CAAC,CAAA;IACxC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAY;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;IAC3C,CAAC;CACD"}
|
package/dist/Flag.d.ts
DELETED
package/dist/Flag.js
DELETED
package/dist/Flag.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flag.js","sourceRoot":"../","sources":["Flag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAO,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA"}
|