@pax2pay/model-banking 0.1.523 → 0.1.525
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/Account/Details.ts +13 -0
- package/Client/Accounts/Details.ts +11 -0
- package/Client/Accounts/index.ts +3 -3
- package/Key/Permissions.ts +0 -4
- package/Supplier/index.ts +7 -1
- package/User/Access/Permission.ts +0 -1
- package/dist/cjs/Account/Details.d.ts +9 -0
- package/dist/cjs/Account/Details.js +9 -0
- package/dist/cjs/Account/Details.js.map +1 -1
- package/dist/cjs/Client/Accounts/Details.d.ts +8 -0
- package/dist/cjs/Client/Accounts/Details.js +14 -0
- package/dist/cjs/Client/Accounts/Details.js.map +1 -0
- package/dist/cjs/Client/Accounts/index.d.ts +2 -2
- package/dist/cjs/Client/Accounts/index.js +3 -3
- package/dist/cjs/Client/Accounts/index.js.map +1 -1
- package/dist/cjs/Key/Permissions.js +0 -4
- package/dist/cjs/Key/Permissions.js.map +1 -1
- package/dist/cjs/Supplier/index.d.ts +2 -0
- package/dist/cjs/Supplier/index.js +6 -0
- package/dist/cjs/Supplier/index.js.map +1 -1
- package/dist/cjs/User/Access/Permission.d.ts +4 -4
- package/dist/cjs/User/Access/Permission.js +0 -1
- package/dist/cjs/User/Access/Permission.js.map +1 -1
- package/dist/mjs/Account/Details.d.ts +9 -0
- package/dist/mjs/Account/Details.js +9 -0
- package/dist/mjs/Account/Details.js.map +1 -1
- package/dist/mjs/Client/Accounts/Details.d.ts +8 -0
- package/dist/mjs/Client/Accounts/Details.js +10 -0
- package/dist/mjs/Client/Accounts/Details.js.map +1 -0
- package/dist/mjs/Client/Accounts/index.d.ts +2 -2
- package/dist/mjs/Client/Accounts/index.js +3 -3
- package/dist/mjs/Client/Accounts/index.js.map +1 -1
- package/dist/mjs/Key/Permissions.js +0 -4
- package/dist/mjs/Key/Permissions.js.map +1 -1
- package/dist/mjs/Supplier/index.d.ts +2 -0
- package/dist/mjs/Supplier/index.js +6 -0
- package/dist/mjs/Supplier/index.js.map +1 -1
- package/dist/mjs/User/Access/Permission.d.ts +4 -4
- package/dist/mjs/User/Access/Permission.js +0 -1
- package/dist/mjs/User/Access/Permission.js.map +1 -1
- package/package.json +1 -1
- package/Client/Accounts/Rails.ts +0 -11
- package/dist/cjs/Client/Accounts/Rails.d.ts +0 -9
- package/dist/cjs/Client/Accounts/Rails.js +0 -14
- package/dist/cjs/Client/Accounts/Rails.js.map +0 -1
- package/dist/mjs/Client/Accounts/Rails.d.ts +0 -9
- package/dist/mjs/Client/Accounts/Rails.js +0 -10
- package/dist/mjs/Client/Accounts/Rails.js.map +0 -1
package/Account/Details.ts
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
|
+
import { isoly } from "isoly"
|
|
1
2
|
import { isly } from "isly"
|
|
2
3
|
import { Rail } from "../Rail"
|
|
3
4
|
import { Supplier } from "../Supplier"
|
|
4
5
|
|
|
5
6
|
export interface Details {
|
|
6
7
|
supplier: Supplier
|
|
8
|
+
currencies: isoly.Currency[]
|
|
7
9
|
reference?: string
|
|
8
10
|
addresses: Rail.Address[]
|
|
9
11
|
}
|
|
10
12
|
export namespace Details {
|
|
11
13
|
export const type = isly.object<Details>({
|
|
12
14
|
supplier: Supplier.type,
|
|
15
|
+
currencies: isly.string(isoly.Currency.values).array(),
|
|
13
16
|
reference: isly.string().optional(),
|
|
14
17
|
addresses: Rail.Address.type.array(),
|
|
15
18
|
})
|
|
19
|
+
export interface Creatable {
|
|
20
|
+
supplier: Supplier
|
|
21
|
+
currency: isoly.Currency
|
|
22
|
+
}
|
|
23
|
+
export namespace Creatable {
|
|
24
|
+
export const type = isly.object<Creatable>({
|
|
25
|
+
supplier: Supplier.type,
|
|
26
|
+
currency: isly.string(isoly.Currency.values),
|
|
27
|
+
})
|
|
28
|
+
}
|
|
16
29
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import { Account } from "../../Account"
|
|
4
|
+
|
|
5
|
+
export class Details {
|
|
6
|
+
constructor(private readonly client: http.Client) {}
|
|
7
|
+
|
|
8
|
+
async create(account: string, details: Account.Details.Creatable): Promise<Account.Details | gracely.Error> {
|
|
9
|
+
return this.client.post<Account.Details>(`/account/${account}/details`, details)
|
|
10
|
+
}
|
|
11
|
+
}
|
package/Client/Accounts/index.ts
CHANGED
|
@@ -3,21 +3,21 @@ import { http } from "cloudly-http"
|
|
|
3
3
|
import { Account } from "../../Account"
|
|
4
4
|
import { Buffer } from "./Buffer"
|
|
5
5
|
import { Counterparts } from "./Counterparts"
|
|
6
|
+
import { Details } from "./Details"
|
|
6
7
|
import { History } from "./History"
|
|
7
|
-
import { Rails } from "./Rails"
|
|
8
8
|
import { Rules } from "./Rules"
|
|
9
9
|
import { Status } from "./Status"
|
|
10
10
|
|
|
11
11
|
export class Accounts {
|
|
12
12
|
readonly buffer: Buffer
|
|
13
|
-
readonly
|
|
13
|
+
readonly details: Details
|
|
14
14
|
readonly rules: Rules
|
|
15
15
|
readonly status: Status
|
|
16
16
|
readonly counterparts: Counterparts
|
|
17
17
|
readonly history: History
|
|
18
18
|
constructor(private readonly client: http.Client) {
|
|
19
19
|
this.buffer = new Buffer(this.client)
|
|
20
|
-
this.
|
|
20
|
+
this.details = new Details(this.client)
|
|
21
21
|
this.rules = new Rules(this.client)
|
|
22
22
|
this.status = new Status(this.client)
|
|
23
23
|
this.counterparts = new Counterparts(this.client)
|
package/Key/Permissions.ts
CHANGED
|
@@ -75,10 +75,6 @@ export namespace Permissions {
|
|
|
75
75
|
user: User.Access.Permission.Level.get(permission["user"]) >= 2 || { view: true },
|
|
76
76
|
app: { view: true },
|
|
77
77
|
}
|
|
78
|
-
if (permission["account"])
|
|
79
|
-
result.accounts = User.Access.Permission.Level.get(permission["account"]) >= 2 || {
|
|
80
|
-
view: true,
|
|
81
|
-
}
|
|
82
78
|
if (permission["card"])
|
|
83
79
|
result.cards = User.Access.Permission.Level.get(permission["card"]) >= 2 || {
|
|
84
80
|
view: true,
|
package/Supplier/index.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { isoly } from "isoly"
|
|
1
2
|
import { isly } from "isly"
|
|
2
3
|
|
|
3
4
|
export type Supplier = typeof Supplier.names[number]
|
|
4
|
-
|
|
5
5
|
export namespace Supplier {
|
|
6
6
|
export const names = ["paxgiro", "clearbank", "bankingcircle", "paxgiroCredit"] as const
|
|
7
7
|
export const type = isly.string<Supplier>(names)
|
|
8
|
+
export const currencies: Record<Supplier, isoly.Currency[]> = {
|
|
9
|
+
clearbank: ["GBP"],
|
|
10
|
+
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
11
|
+
paxgiro: ["GBP", "SEK", "USD", "EUR"],
|
|
12
|
+
paxgiroCredit: ["GBP", "SEK", "USD", "EUR"],
|
|
13
|
+
}
|
|
8
14
|
}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { Rail } from "../Rail";
|
|
2
3
|
import { Supplier } from "../Supplier";
|
|
3
4
|
export interface Details {
|
|
4
5
|
supplier: Supplier;
|
|
6
|
+
currencies: isoly.Currency[];
|
|
5
7
|
reference?: string;
|
|
6
8
|
addresses: Rail.Address[];
|
|
7
9
|
}
|
|
8
10
|
export declare namespace Details {
|
|
9
11
|
const type: import("isly/dist/cjs/object").IslyObject<Details, object>;
|
|
12
|
+
interface Creatable {
|
|
13
|
+
supplier: Supplier;
|
|
14
|
+
currency: isoly.Currency;
|
|
15
|
+
}
|
|
16
|
+
namespace Creatable {
|
|
17
|
+
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
18
|
+
}
|
|
10
19
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Details = void 0;
|
|
4
|
+
const isoly_1 = require("isoly");
|
|
4
5
|
const isly_1 = require("isly");
|
|
5
6
|
const Rail_1 = require("../Rail");
|
|
6
7
|
const Supplier_1 = require("../Supplier");
|
|
@@ -8,8 +9,16 @@ var Details;
|
|
|
8
9
|
(function (Details) {
|
|
9
10
|
Details.type = isly_1.isly.object({
|
|
10
11
|
supplier: Supplier_1.Supplier.type,
|
|
12
|
+
currencies: isly_1.isly.string(isoly_1.isoly.Currency.values).array(),
|
|
11
13
|
reference: isly_1.isly.string().optional(),
|
|
12
14
|
addresses: Rail_1.Rail.Address.type.array(),
|
|
13
15
|
});
|
|
16
|
+
let Creatable;
|
|
17
|
+
(function (Creatable) {
|
|
18
|
+
Creatable.type = isly_1.isly.object({
|
|
19
|
+
supplier: Supplier_1.Supplier.type,
|
|
20
|
+
currency: isly_1.isly.string(isoly_1.isoly.Currency.values),
|
|
21
|
+
});
|
|
22
|
+
})(Creatable = Details.Creatable || (Details.Creatable = {}));
|
|
14
23
|
})(Details || (exports.Details = Details = {}));
|
|
15
24
|
//# sourceMappingURL=Details.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../Account/Details.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,kCAA8B;AAC9B,0CAAsC;
|
|
1
|
+
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../Account/Details.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAC3B,kCAA8B;AAC9B,0CAAsC;AAQtC,IAAiB,OAAO,CAiBvB;AAjBD,WAAiB,OAAO;IACV,YAAI,GAAG,WAAI,CAAC,MAAM,CAAU;QACxC,QAAQ,EAAE,mBAAQ,CAAC,IAAI;QACvB,UAAU,EAAE,WAAI,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE;QACtD,SAAS,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,SAAS,EAAE,WAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE;KACpC,CAAC,CAAA;IAKF,IAAiB,SAAS,CAKzB;IALD,WAAiB,SAAS;QACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;YAC1C,QAAQ,EAAE,mBAAQ,CAAC,IAAI;YACvB,QAAQ,EAAE,WAAI,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;SAC5C,CAAC,CAAA;IACH,CAAC,EALgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKzB;AACF,CAAC,EAjBgB,OAAO,uBAAP,OAAO,QAiBvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Account } from "../../Account";
|
|
4
|
+
export declare class Details {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
create(account: string, details: Account.Details.Creatable): Promise<Account.Details | gracely.Error>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Details = void 0;
|
|
4
|
+
class Details {
|
|
5
|
+
client;
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
}
|
|
9
|
+
async create(account, details) {
|
|
10
|
+
return this.client.post(`/account/${account}/details`, details);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.Details = Details;
|
|
14
|
+
//# sourceMappingURL=Details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../Client/Accounts/Details.ts"],"names":[],"mappings":";;;AAIA,MAAa,OAAO;IACU;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,OAAkC;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAkB,YAAY,OAAO,UAAU,EAAE,OAAO,CAAC,CAAA;IACjF,CAAC;CACD;AAND,0BAMC"}
|
|
@@ -3,14 +3,14 @@ import { http } from "cloudly-http";
|
|
|
3
3
|
import { Account } from "../../Account";
|
|
4
4
|
import { Buffer } from "./Buffer";
|
|
5
5
|
import { Counterparts } from "./Counterparts";
|
|
6
|
+
import { Details } from "./Details";
|
|
6
7
|
import { History } from "./History";
|
|
7
|
-
import { Rails } from "./Rails";
|
|
8
8
|
import { Rules } from "./Rules";
|
|
9
9
|
import { Status } from "./Status";
|
|
10
10
|
export declare class Accounts {
|
|
11
11
|
private readonly client;
|
|
12
12
|
readonly buffer: Buffer;
|
|
13
|
-
readonly
|
|
13
|
+
readonly details: Details;
|
|
14
14
|
readonly rules: Rules;
|
|
15
15
|
readonly status: Status;
|
|
16
16
|
readonly counterparts: Counterparts;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Accounts = void 0;
|
|
4
4
|
const Buffer_1 = require("./Buffer");
|
|
5
5
|
const Counterparts_1 = require("./Counterparts");
|
|
6
|
+
const Details_1 = require("./Details");
|
|
6
7
|
const History_1 = require("./History");
|
|
7
|
-
const Rails_1 = require("./Rails");
|
|
8
8
|
const Rules_1 = require("./Rules");
|
|
9
9
|
const Status_1 = require("./Status");
|
|
10
10
|
class Accounts {
|
|
11
11
|
client;
|
|
12
12
|
buffer;
|
|
13
|
-
|
|
13
|
+
details;
|
|
14
14
|
rules;
|
|
15
15
|
status;
|
|
16
16
|
counterparts;
|
|
@@ -18,7 +18,7 @@ class Accounts {
|
|
|
18
18
|
constructor(client) {
|
|
19
19
|
this.client = client;
|
|
20
20
|
this.buffer = new Buffer_1.Buffer(this.client);
|
|
21
|
-
this.
|
|
21
|
+
this.details = new Details_1.Details(this.client);
|
|
22
22
|
this.rules = new Rules_1.Rules(this.client);
|
|
23
23
|
this.status = new Status_1.Status(this.client);
|
|
24
24
|
this.counterparts = new Counterparts_1.Counterparts(this.client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Accounts/index.ts"],"names":[],"mappings":";;;AAGA,qCAAiC;AACjC,iDAA6C;AAC7C,uCAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Accounts/index.ts"],"names":[],"mappings":";;;AAGA,qCAAiC;AACjC,iDAA6C;AAC7C,uCAAmC;AACnC,uCAAmC;AACnC,mCAA+B;AAC/B,qCAAiC;AAEjC,MAAa,QAAQ;IAOS;IANpB,MAAM,CAAQ;IACd,OAAO,CAAS;IAChB,KAAK,CAAO;IACZ,MAAM,CAAQ;IACd,YAAY,CAAc;IAC1B,OAAO,CAAS;IACzB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;QAC/C,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACvC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,YAAY,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,UAAU,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,OAAe;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,YAAY,OAAO,EAAE,CAAC,CAAA;IACvD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAIV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD;AA7BD,4BA6BC"}
|
|
@@ -38,10 +38,6 @@ var Permissions;
|
|
|
38
38
|
user: User_1.User.Access.Permission.Level.get(permission["user"]) >= 2 || { view: true },
|
|
39
39
|
app: { view: true },
|
|
40
40
|
};
|
|
41
|
-
if (permission["account"])
|
|
42
|
-
result.accounts = User_1.User.Access.Permission.Level.get(permission["account"]) >= 2 || {
|
|
43
|
-
view: true,
|
|
44
|
-
};
|
|
45
41
|
if (permission["card"])
|
|
46
42
|
result.cards = User_1.User.Access.Permission.Level.get(permission["card"]) >= 2 || {
|
|
47
43
|
view: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../../Key/Permissions.ts"],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,kCAA8B;AAG9B,IAAiB,WAAW,
|
|
1
|
+
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../../Key/Permissions.ts"],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,kCAA8B;AAG9B,IAAiB,WAAW,CA2G3B;AA3GD,WAAiB,WAAW;IAC3B,SAAgB,SAAS,CAAC,WAAwB;QACjD,OAAO,mBAAW,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;IAC3D,CAAC;IAFe,qBAAS,YAExB,CAAA;IAyCD,SAAgB,IAAI,CAAC,UAAkC;QACtD,IAAI,MAAM,GAAuB,EAAE,CAAA;QACnC,IAAI,WAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAA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,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI;oBAC3E,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;oBACxB,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;oBACvB,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;iBACxB,CAAA;YACF,IAAI,UAAU,CAAC,YAAY,CAAC;gBAC3B,MAAM,CAAC,WAAW,GAAG,WAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;YACvG,IAAI,UAAU,CAAC,aAAa,CAAC;gBAC5B,MAAM,CAAC,YAAY,GAAG,WAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;YACzG,IAAI,UAAU,CAAC,UAAU,CAAC;gBACzB,MAAM,CAAC,QAAQ,GAAG,WAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;QACnG,CAAC;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IA9De,gBAAI,OA8DnB,CAAA;AACF,CAAC,EA3GgB,WAAW,2BAAX,WAAW,QA2G3B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
2
3
|
export type Supplier = typeof Supplier.names[number];
|
|
3
4
|
export declare namespace Supplier {
|
|
4
5
|
const names: readonly ["paxgiro", "clearbank", "bankingcircle", "paxgiroCredit"];
|
|
5
6
|
const type: isly.Type<"paxgiro" | "clearbank" | "bankingcircle" | "paxgiroCredit">;
|
|
7
|
+
const currencies: Record<Supplier, isoly.Currency[]>;
|
|
6
8
|
}
|
|
@@ -6,5 +6,11 @@ var Supplier;
|
|
|
6
6
|
(function (Supplier) {
|
|
7
7
|
Supplier.names = ["paxgiro", "clearbank", "bankingcircle", "paxgiroCredit"];
|
|
8
8
|
Supplier.type = isly_1.isly.string(Supplier.names);
|
|
9
|
+
Supplier.currencies = {
|
|
10
|
+
clearbank: ["GBP"],
|
|
11
|
+
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
12
|
+
paxgiro: ["GBP", "SEK", "USD", "EUR"],
|
|
13
|
+
paxgiroCredit: ["GBP", "SEK", "USD", "EUR"],
|
|
14
|
+
};
|
|
9
15
|
})(Supplier || (exports.Supplier = Supplier = {}));
|
|
10
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Supplier/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Supplier/index.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAG3B,IAAiB,QAAQ,CASxB;AATD,WAAiB,QAAQ;IACX,cAAK,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,CAAU,CAAA;IAC3E,aAAI,GAAG,WAAI,CAAC,MAAM,CAAW,SAAA,KAAK,CAAC,CAAA;IACnC,mBAAU,GAAuC;QAC7D,SAAS,EAAE,CAAC,KAAK,CAAC;QAClB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QACvE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QACrC,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;KAC3C,CAAA;AACF,CAAC,EATgB,QAAQ,wBAAR,QAAQ,QASxB"}
|
|
@@ -15,14 +15,14 @@ export declare namespace Permission {
|
|
|
15
15
|
namespace Collection {
|
|
16
16
|
type Realm = typeof Realm.values[number];
|
|
17
17
|
namespace Realm {
|
|
18
|
-
const values: readonly ["*", "
|
|
18
|
+
const values: readonly ["*", "card", "log", "operation", "organization", "rule", "settlement", "transaction", "treasury"];
|
|
19
19
|
}
|
|
20
20
|
type Global = typeof Global.values[number];
|
|
21
21
|
namespace Global {
|
|
22
22
|
const values: readonly ["user"];
|
|
23
23
|
}
|
|
24
|
-
const values: readonly ["*", "
|
|
25
|
-
const type: isly.Type<"rule" | "card" | "transaction" | "
|
|
24
|
+
const values: readonly ["*", "card", "log", "operation", "organization", "rule", "settlement", "transaction", "treasury", "user"];
|
|
25
|
+
const type: isly.Type<"rule" | "card" | "transaction" | "settlement" | "organization" | "log" | "user" | "operation" | "*" | "treasury">;
|
|
26
26
|
}
|
|
27
|
-
const type: isly.Type<Partial<Record<"rule" | "card" | "transaction" | "
|
|
27
|
+
const type: isly.Type<Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "log" | "user" | "operation" | "*" | "treasury", "read" | "write" | "developer" | "admin">>>;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../../User/Access/Permission.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,qCAAiC;AAGjC,IAAiB,UAAU,
|
|
1
|
+
{"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../../User/Access/Permission.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,qCAAiC;AAGjC,IAAiB,UAAU,CAgD1B;AAhDD,WAAiB,UAAU;IAG1B,SAAgB,KAAK,CAAC,UAAsB,EAAE,SAAqB;QAClE,OAAO,iBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,UAA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QAYrB;QAED,IAAiB,MAAM,CAEtB;QAFD,WAAiB,MAAM;YACT,aAAM,GAAG,CAAC,MAAM,CAAU,CAAA;QACxC,CAAC,EAFgB,MAAM,GAAN,iBAAM,KAAN,iBAAM,QAEtB;QACY,iBAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAU,CAAA;QACrD,eAAI,GAAG,WAAI,CAAC,MAAM,CAAC,WAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EArBgB,UAAU,GAAV,qBAAU,KAAV,qBAAU,QAqB1B;IACY,eAAI,GAAG,WAAI,CAAC,MAAM,CAAa,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;AACzE,CAAC,EAhDgB,UAAU,0BAAV,UAAU,QAgD1B"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { Rail } from "../Rail";
|
|
2
3
|
import { Supplier } from "../Supplier";
|
|
3
4
|
export interface Details {
|
|
4
5
|
supplier: Supplier;
|
|
6
|
+
currencies: isoly.Currency[];
|
|
5
7
|
reference?: string;
|
|
6
8
|
addresses: Rail.Address[];
|
|
7
9
|
}
|
|
8
10
|
export declare namespace Details {
|
|
9
11
|
const type: import("isly/dist/cjs/object").IslyObject<Details, object>;
|
|
12
|
+
interface Creatable {
|
|
13
|
+
supplier: Supplier;
|
|
14
|
+
currency: isoly.Currency;
|
|
15
|
+
}
|
|
16
|
+
namespace Creatable {
|
|
17
|
+
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
18
|
+
}
|
|
10
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
2
3
|
import { Rail } from "../Rail";
|
|
3
4
|
import { Supplier } from "../Supplier";
|
|
@@ -5,8 +6,16 @@ export var Details;
|
|
|
5
6
|
(function (Details) {
|
|
6
7
|
Details.type = isly.object({
|
|
7
8
|
supplier: Supplier.type,
|
|
9
|
+
currencies: isly.string(isoly.Currency.values).array(),
|
|
8
10
|
reference: isly.string().optional(),
|
|
9
11
|
addresses: Rail.Address.type.array(),
|
|
10
12
|
});
|
|
13
|
+
let Creatable;
|
|
14
|
+
(function (Creatable) {
|
|
15
|
+
Creatable.type = isly.object({
|
|
16
|
+
supplier: Supplier.type,
|
|
17
|
+
currency: isly.string(isoly.Currency.values),
|
|
18
|
+
});
|
|
19
|
+
})(Creatable = Details.Creatable || (Details.Creatable = {}));
|
|
11
20
|
})(Details || (Details = {}));
|
|
12
21
|
//# sourceMappingURL=Details.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../Account/Details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../Account/Details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAQtC,MAAM,KAAW,OAAO,CAiBvB;AAjBD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,QAAQ,EAAE,QAAQ,CAAC,IAAI;QACvB,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE;QACtD,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE;KACpC,CAAC,CAAA;IAKF,IAAiB,SAAS,CAKzB;IALD,WAAiB,SAAS;QACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;YAC1C,QAAQ,EAAE,QAAQ,CAAC,IAAI;YACvB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;SAC5C,CAAC,CAAA;IACH,CAAC,EALgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKzB;AACF,CAAC,EAjBgB,OAAO,KAAP,OAAO,QAiBvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Account } from "../../Account";
|
|
4
|
+
export declare class Details {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
create(account: string, details: Account.Details.Creatable): Promise<Account.Details | gracely.Error>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../Client/Accounts/Details.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,OAAO;IACU;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,OAAkC;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAkB,YAAY,OAAO,UAAU,EAAE,OAAO,CAAC,CAAA;IACjF,CAAC;CACD"}
|
|
@@ -3,14 +3,14 @@ import { http } from "cloudly-http";
|
|
|
3
3
|
import { Account } from "../../Account";
|
|
4
4
|
import { Buffer } from "./Buffer";
|
|
5
5
|
import { Counterparts } from "./Counterparts";
|
|
6
|
+
import { Details } from "./Details";
|
|
6
7
|
import { History } from "./History";
|
|
7
|
-
import { Rails } from "./Rails";
|
|
8
8
|
import { Rules } from "./Rules";
|
|
9
9
|
import { Status } from "./Status";
|
|
10
10
|
export declare class Accounts {
|
|
11
11
|
private readonly client;
|
|
12
12
|
readonly buffer: Buffer;
|
|
13
|
-
readonly
|
|
13
|
+
readonly details: Details;
|
|
14
14
|
readonly rules: Rules;
|
|
15
15
|
readonly status: Status;
|
|
16
16
|
readonly counterparts: Counterparts;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Buffer } from "./Buffer";
|
|
2
2
|
import { Counterparts } from "./Counterparts";
|
|
3
|
+
import { Details } from "./Details";
|
|
3
4
|
import { History } from "./History";
|
|
4
|
-
import { Rails } from "./Rails";
|
|
5
5
|
import { Rules } from "./Rules";
|
|
6
6
|
import { Status } from "./Status";
|
|
7
7
|
export class Accounts {
|
|
8
8
|
client;
|
|
9
9
|
buffer;
|
|
10
|
-
|
|
10
|
+
details;
|
|
11
11
|
rules;
|
|
12
12
|
status;
|
|
13
13
|
counterparts;
|
|
@@ -15,7 +15,7 @@ export class Accounts {
|
|
|
15
15
|
constructor(client) {
|
|
16
16
|
this.client = client;
|
|
17
17
|
this.buffer = new Buffer(this.client);
|
|
18
|
-
this.
|
|
18
|
+
this.details = new Details(this.client);
|
|
19
19
|
this.rules = new Rules(this.client);
|
|
20
20
|
this.status = new Status(this.client);
|
|
21
21
|
this.counterparts = new Counterparts(this.client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Accounts/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Accounts/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MA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O,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD"}
|
|
@@ -35,10 +35,6 @@ export var Permissions;
|
|
|
35
35
|
user: User.Access.Permission.Level.get(permission["user"]) >= 2 || { view: true },
|
|
36
36
|
app: { view: true },
|
|
37
37
|
};
|
|
38
|
-
if (permission["account"])
|
|
39
|
-
result.accounts = User.Access.Permission.Level.get(permission["account"]) >= 2 || {
|
|
40
|
-
view: true,
|
|
41
|
-
};
|
|
42
38
|
if (permission["card"])
|
|
43
39
|
result.cards = User.Access.Permission.Level.get(permission["card"]) >= 2 || {
|
|
44
40
|
view: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../../Key/Permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,MAAM,KAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../../Key/Permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,MAAM,KAAW,WAAW,CA2G3B;AA3GD,WAAiB,WAAW;IAC3B,SAAgB,SAAS,CAAC,WAAwB;QACjD,OAAO,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;IAC3D,CAAC;IAFe,qBAAS,YAExB,CAAA;IAyCD,SAAgB,IAAI,CAAC,UAAkC;QACtD,IAAI,MAAM,GAAuB,EAAE,CAAA;QACnC,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACzD,MAAM,GAAG,I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AC3E,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;oBACxB,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;oBACvB,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;iBACxB,CAAA;YACF,IAAI,UAAU,CAAC,YAAY,CAAC;gBAC3B,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;YACvG,IAAI,UAAU,CAAC,aAAa,CAAC;gBAC5B,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;YACzG,IAAI,UAAU,CAAC,UAAU,CAAC;gBACzB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;QACnG,CAAC;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IA9De,gBAAI,OA8DnB,CAAA;AACF,CAAC,EA3GgB,WAAW,KAAX,WAAW,QA2G3B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
2
3
|
export type Supplier = typeof Supplier.names[number];
|
|
3
4
|
export declare namespace Supplier {
|
|
4
5
|
const names: readonly ["paxgiro", "clearbank", "bankingcircle", "paxgiroCredit"];
|
|
5
6
|
const type: isly.Type<"paxgiro" | "clearbank" | "bankingcircle" | "paxgiroCredit">;
|
|
7
|
+
const currencies: Record<Supplier, isoly.Currency[]>;
|
|
6
8
|
}
|
|
@@ -3,5 +3,11 @@ export var Supplier;
|
|
|
3
3
|
(function (Supplier) {
|
|
4
4
|
Supplier.names = ["paxgiro", "clearbank", "bankingcircle", "paxgiroCredit"];
|
|
5
5
|
Supplier.type = isly.string(Supplier.names);
|
|
6
|
+
Supplier.currencies = {
|
|
7
|
+
clearbank: ["GBP"],
|
|
8
|
+
bankingcircle: ["EUR", "GBP", "USD", "DKK", "CHF", "PLN", "SEK", "HUF"],
|
|
9
|
+
paxgiro: ["GBP", "SEK", "USD", "EUR"],
|
|
10
|
+
paxgiroCredit: ["GBP", "SEK", "USD", "EUR"],
|
|
11
|
+
};
|
|
6
12
|
})(Supplier || (Supplier = {}));
|
|
7
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Supplier/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Supplier/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,QAAQ,CASxB;AATD,WAAiB,QAAQ;IACX,cAAK,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,CAAU,CAAA;IAC3E,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW,SAAA,KAAK,CAAC,CAAA;IACnC,mBAAU,GAAuC;QAC7D,SAAS,EAAE,CAAC,KAAK,CAAC;QAClB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QACvE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QACrC,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;KAC3C,CAAA;AACF,CAAC,EATgB,QAAQ,KAAR,QAAQ,QASxB"}
|
|
@@ -15,14 +15,14 @@ export declare namespace Permission {
|
|
|
15
15
|
namespace Collection {
|
|
16
16
|
type Realm = typeof Realm.values[number];
|
|
17
17
|
namespace Realm {
|
|
18
|
-
const values: readonly ["*", "
|
|
18
|
+
const values: readonly ["*", "card", "log", "operation", "organization", "rule", "settlement", "transaction", "treasury"];
|
|
19
19
|
}
|
|
20
20
|
type Global = typeof Global.values[number];
|
|
21
21
|
namespace Global {
|
|
22
22
|
const values: readonly ["user"];
|
|
23
23
|
}
|
|
24
|
-
const values: readonly ["*", "
|
|
25
|
-
const type: isly.Type<"rule" | "card" | "transaction" | "
|
|
24
|
+
const values: readonly ["*", "card", "log", "operation", "organization", "rule", "settlement", "transaction", "treasury", "user"];
|
|
25
|
+
const type: isly.Type<"rule" | "card" | "transaction" | "settlement" | "organization" | "log" | "user" | "operation" | "*" | "treasury">;
|
|
26
26
|
}
|
|
27
|
-
const type: isly.Type<Partial<Record<"rule" | "card" | "transaction" | "
|
|
27
|
+
const type: isly.Type<Partial<Record<"rule" | "card" | "transaction" | "settlement" | "organization" | "log" | "user" | "operation" | "*" | "treasury", "read" | "write" | "developer" | "admin">>>;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../../User/Access/Permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGjC,MAAM,KAAW,UAAU,
|
|
1
|
+
{"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../../User/Access/Permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGjC,MAAM,KAAW,UAAU,CAgD1B;AAh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AAc;gBACd,MAAM;gBACN,YAAY;gBACZ,aAAa;gBACb,UAAU;aACD,CAAA;QACX,CAAC,EAZgB,KAAK,GAAL,gBAAK,KAAL,gBAAK,QAYrB;QAED,IAAiB,MAAM,CAEtB;QAFD,WAAiB,MAAM;YACT,aAAM,GAAG,CAAC,MAAM,CAAU,CAAA;QACxC,CAAC,EAFgB,MAAM,GAAN,iBAAM,KAAN,iBAAM,QAEtB;QACY,iBAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAU,CAAA;QACrD,eAAI,GAAG,IAAI,CAAC,MAAM,CAAC,WAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EArBgB,UAAU,GAAV,qBAAU,KAAV,qBAAU,QAqB1B;IACY,eAAI,GAAG,IAAI,CAAC,MAAM,CAAa,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;AACzE,CAAC,EAhDgB,UAAU,KAAV,UAAU,QAgD1B"}
|
package/package.json
CHANGED
package/Client/Accounts/Rails.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { gracely } from "gracely"
|
|
2
|
-
import { http } from "cloudly-http"
|
|
3
|
-
import { Rail } from "../../Rail"
|
|
4
|
-
import { Supplier } from "../../Supplier"
|
|
5
|
-
|
|
6
|
-
export class Rails {
|
|
7
|
-
constructor(private readonly client: http.Client) {}
|
|
8
|
-
async create(account: string, supplier: Supplier): Promise<Rail | gracely.Error> {
|
|
9
|
-
return this.client.post<Rail>(`/account/${account}/rail`, supplier)
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { gracely } from "gracely";
|
|
2
|
-
import { http } from "cloudly-http";
|
|
3
|
-
import { Rail } from "../../Rail";
|
|
4
|
-
import { Supplier } from "../../Supplier";
|
|
5
|
-
export declare class Rails {
|
|
6
|
-
private readonly client;
|
|
7
|
-
constructor(client: http.Client);
|
|
8
|
-
create(account: string, supplier: Supplier): Promise<Rail | gracely.Error>;
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Rails = void 0;
|
|
4
|
-
class Rails {
|
|
5
|
-
client;
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async create(account, supplier) {
|
|
10
|
-
return this.client.post(`/account/${account}/rail`, supplier);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.Rails = Rails;
|
|
14
|
-
//# sourceMappingURL=Rails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Rails.js","sourceRoot":"","sources":["../../../../Client/Accounts/Rails.ts"],"names":[],"mappings":";;;AAKA,MAAa,KAAK;IACY;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,QAAkB;QAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,YAAY,OAAO,OAAO,EAAE,QAAQ,CAAC,CAAA;IACpE,CAAC;CACD;AALD,sBAKC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { gracely } from "gracely";
|
|
2
|
-
import { http } from "cloudly-http";
|
|
3
|
-
import { Rail } from "../../Rail";
|
|
4
|
-
import { Supplier } from "../../Supplier";
|
|
5
|
-
export declare class Rails {
|
|
6
|
-
private readonly client;
|
|
7
|
-
constructor(client: http.Client);
|
|
8
|
-
create(account: string, supplier: Supplier): Promise<Rail | gracely.Error>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Rails.js","sourceRoot":"","sources":["../../../../Client/Accounts/Rails.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,KAAK;IACY;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,QAAkB;QAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,YAAY,OAAO,OAAO,EAAE,QAAQ,CAAC,CAAA;IACpE,CAAC;CACD"}
|