@pax2pay/model-banking 0.1.347 → 0.1.349

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.
@@ -0,0 +1,30 @@
1
+ import { filter, listener } from "cloudly-analytics-common"
2
+ import { Audit } from "../../Audit"
3
+
4
+ export namespace AuditLog {
5
+ type Selectors = `value.${Exclude<keyof Audit, "resource"> | `resource.${keyof Audit["resource"]}`}`
6
+ export const mapping = {
7
+ auditId: "value.id",
8
+ auditCreated: "value.created",
9
+ resourceId: "value.resource.id",
10
+ resourceType: "value.resource.type",
11
+ resourceAction: "value.resource.action",
12
+ before: { selector: "value.resource.before", transform: "stringify" },
13
+ after: { selector: "value.resource.after", transform: "stringify" },
14
+ by: "value.by",
15
+ messages: "value.messages"
16
+ // eslint-disable-next-line
17
+ } as const satisfies filter.Mapping.RecordWithSelector<Selectors>;
18
+ export type Fields = keyof typeof mapping
19
+ export const schema: listener.BigQueryApi.BaseField<Fields>[] = [
20
+ { name: "auditId", type: "STRING" },
21
+ { name: "auditCreated", type: "TIMESTAMP" },
22
+ { name: "resourceId", type: "STRING" },
23
+ { name: "resourceType", type: "STRING" },
24
+ { name: "resourceAction", type: "STRING" },
25
+ { name: "before", type: "STRING" },
26
+ { name: "after", type: "STRING" },
27
+ { name: "by", type: "STRING" },
28
+ { name: "messages", type: "STRING", mode: "REPEATED" },
29
+ ]
30
+ }
@@ -1,79 +1,11 @@
1
- import { filter, listener } from "cloudly-analytics-common"
1
+ import { AuditLog as ConfigAuditLog } from "./AuditLog"
2
2
  import { Base as ConfigBase } from "./Base"
3
3
  import { Operation as ConfigOperation } from "./Operation"
4
4
  import { Transaction as ConfigTransaction } from "./Transaction"
5
5
 
6
- //cSpell: ignore: paxpay nonprod
7
6
  export namespace Configuration {
8
7
  export import Base = ConfigBase
9
8
  export import Transaction = ConfigTransaction
10
9
  export import Operation = ConfigOperation
11
- export type BigQueryTableConfig = {
12
- projectName: "paxpay-prod" | "paxpay-nonprod"
13
- datasetName: string
14
- tableName: string
15
- }
16
- export function create(
17
- name: string,
18
- mapping: filter.Mapping.RecordWithSelector<string>,
19
- schema: listener.BigQueryApi.BaseField[],
20
- config: BigQueryTableConfig,
21
- filter: string
22
- ): listener.BigQueryBaseConfiguration {
23
- return {
24
- name,
25
- type: "bigquery",
26
- filter: [
27
- {
28
- type: "selectively",
29
- expression: filter,
30
- },
31
- { type: "useragent" },
32
- {
33
- type: "mapping",
34
- mapping: {
35
- ...Base.mapping,
36
- ...mapping,
37
- },
38
- },
39
- ],
40
- batchSize: 10,
41
- batchInterval: 3,
42
- ...config,
43
- tableSchema: [...Base.schema, ...schema],
44
- }
45
- }
46
- export const backup = create(
47
- "backup",
48
- { value: { selector: "value", transform: "stringify" } },
49
- [{ name: "value", type: "STRING" }],
50
- {
51
- projectName: "paxpay-prod",
52
- datasetName: "pays_ledger",
53
- tableName: "backup",
54
- },
55
- "source:pax2pay-worker-banking-ledger realm:within(uk, eu)"
56
- )
57
- export const operation = create(
58
- "operations",
59
- Operation.mapping,
60
- Operation.schema,
61
- {
62
- projectName: "paxpay-prod",
63
- datasetName: "pays_ledger",
64
- tableName: "operations",
65
- },
66
- "source:pax2pay-worker-banking-ledger entity.type:operation realm:within(uk, eu)"
67
- )
68
- export const transaction = create(
69
- "transactions",
70
- Transaction.mapping,
71
- Transaction.schema,
72
- {
73
- projectName: "paxpay-prod",
74
- datasetName: "pays_ledger",
75
- tableName: "transactions",
76
- },
77
- "source:pax2pay-worker-banking-ledger entity.type:transaction realm:within(uk, eu)"
78
- )
10
+ export import AuditLog = ConfigAuditLog
79
11
  }
@@ -0,0 +1,20 @@
1
+ import { isoly } from "isoly"
2
+ import { Audit } from "../../Audit"
3
+ import { Realm } from "../../Realm"
4
+ import { Base } from "./Base"
5
+
6
+ export type AuditLog = Base<Audit> & {
7
+ entity: { type: "auditLog"; id: string }
8
+ action: "created"
9
+ }
10
+ export namespace AuditLog {
11
+ export function create(value: Audit, realm: Realm, action: AuditLog["action"]): AuditLog {
12
+ return {
13
+ realm,
14
+ entity: { type: "auditLog", id: value.id },
15
+ action,
16
+ created: isoly.DateTime.now(),
17
+ value,
18
+ }
19
+ }
20
+ }
@@ -1,10 +1,12 @@
1
+ import { AuditLog as AuditLogEvent } from "./AuditLog"
1
2
  import { Base as EventBase } from "./Base"
2
3
  import { Operation as OperationEvent } from "./Operation"
3
4
  import { Transaction as TransactionEvent } from "./Transaction"
4
5
 
5
- export type Event = (Event.Transaction | Event.Operation) & { version: string }
6
+ export type Event = (Event.Transaction | Event.Operation | Event.AuditLog) & { version: string }
6
7
  export namespace Event {
7
8
  export type Base<T> = EventBase<T>
8
9
  export import Transaction = TransactionEvent
9
10
  export import Operation = OperationEvent
11
+ export import AuditLog = AuditLogEvent
10
12
  }
@@ -1,10 +1,11 @@
1
1
  import { gracely } from "gracely"
2
2
  import { isoly } from "isoly"
3
3
  import { http } from "cloudly-http"
4
+ import { Transaction } from "../../Transaction"
4
5
 
5
6
  export class Buffer {
6
7
  constructor(private readonly client: http.Client) {}
7
- async replace(account: string, currency: isoly.Currency, amount: number): Promise<number | gracely.Error> {
8
- return this.client.put<number>(`/account/${account}/balances/${currency}/buffer`, amount)
8
+ async replace(account: string, currency: isoly.Currency, amount: number): Promise<Transaction | gracely.Error> {
9
+ return this.client.put<Transaction>(`/account/${account}/balances/${currency}/buffer`, amount)
9
10
  }
10
11
  }
@@ -0,0 +1,22 @@
1
+ import { listener } from "cloudly-analytics-common";
2
+ export declare namespace AuditLog {
3
+ const mapping: {
4
+ readonly auditId: "value.id";
5
+ readonly auditCreated: "value.created";
6
+ readonly resourceId: "value.resource.id";
7
+ readonly resourceType: "value.resource.type";
8
+ readonly resourceAction: "value.resource.action";
9
+ readonly before: {
10
+ readonly selector: "value.resource.before";
11
+ readonly transform: "stringify";
12
+ };
13
+ readonly after: {
14
+ readonly selector: "value.resource.after";
15
+ readonly transform: "stringify";
16
+ };
17
+ readonly by: "value.by";
18
+ readonly messages: "value.messages";
19
+ };
20
+ type Fields = keyof typeof mapping;
21
+ const schema: listener.BigQueryApi.BaseField<Fields>[];
22
+ }
@@ -0,0 +1,26 @@
1
+ export var AuditLog;
2
+ (function (AuditLog) {
3
+ AuditLog.mapping = {
4
+ auditId: "value.id",
5
+ auditCreated: "value.created",
6
+ resourceId: "value.resource.id",
7
+ resourceType: "value.resource.type",
8
+ resourceAction: "value.resource.action",
9
+ before: { selector: "value.resource.before", transform: "stringify" },
10
+ after: { selector: "value.resource.after", transform: "stringify" },
11
+ by: "value.by",
12
+ messages: "value.messages"
13
+ };
14
+ AuditLog.schema = [
15
+ { name: "auditId", type: "STRING" },
16
+ { name: "auditCreated", type: "TIMESTAMP" },
17
+ { name: "resourceId", type: "STRING" },
18
+ { name: "resourceType", type: "STRING" },
19
+ { name: "resourceAction", type: "STRING" },
20
+ { name: "before", type: "STRING" },
21
+ { name: "after", type: "STRING" },
22
+ { name: "by", type: "STRING" },
23
+ { name: "messages", type: "STRING", mode: "REPEATED" },
24
+ ];
25
+ })(AuditLog || (AuditLog = {}));
26
+ //# sourceMappingURL=AuditLog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditLog.js","sourceRoot":"../","sources":["Analytics/Configuration/AuditLog.ts"],"names":[],"mappings":"AAGA,MAAM,KAAW,QAAQ,CA0BxB;AA1BD,WAAiB,QAAQ;IAEX,gBAAO,GAAG;QACtB,OAAO,EAAE,UAAU;QACnB,YAAY,EAAE,eAAe;QAC7B,UAAU,EAAE,mBAAmB;QAC/B,YAAY,EAAE,qBAAqB;QACnC,cAAc,EAAE,uBAAuB;QACvC,MAAM,EAAE,EAAE,QAAQ,EAAE,uBAAuB,EAAE,SAAS,EAAE,WAAW,EAAE;QACrE,KAAK,EAAE,EAAE,QAAQ,EAAE,sBAAsB,EAAE,SAAS,EAAE,WAAW,EAAE;QACnE,EAAE,EAAE,UAAU;QACd,QAAQ,EAAE,gBAAgB;KAEsC,CAAC;IAErD,eAAM,GAA6C;QAC/D,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;QACnC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3C,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE;KACtD,CAAA;AACF,CAAC,EA1BgB,QAAQ,KAAR,QAAQ,QA0BxB"}
@@ -1,4 +1,4 @@
1
- import { filter, listener } from "cloudly-analytics-common";
1
+ import { AuditLog as ConfigAuditLog } from "./AuditLog";
2
2
  import { Base as ConfigBase } from "./Base";
3
3
  import { Operation as ConfigOperation } from "./Operation";
4
4
  import { Transaction as ConfigTransaction } from "./Transaction";
@@ -6,13 +6,5 @@ export declare namespace Configuration {
6
6
  export import Base = ConfigBase;
7
7
  export import Transaction = ConfigTransaction;
8
8
  export import Operation = ConfigOperation;
9
- type BigQueryTableConfig = {
10
- projectName: "paxpay-prod" | "paxpay-nonprod";
11
- datasetName: string;
12
- tableName: string;
13
- };
14
- function create(name: string, mapping: filter.Mapping.RecordWithSelector<string>, schema: listener.BigQueryApi.BaseField[], config: BigQueryTableConfig, filter: string): listener.BigQueryBaseConfiguration;
15
- const backup: listener.BigQueryBaseConfiguration;
16
- const operation: listener.BigQueryBaseConfiguration;
17
- const transaction: listener.BigQueryBaseConfiguration;
9
+ export import AuditLog = ConfigAuditLog;
18
10
  }
@@ -1,3 +1,4 @@
1
+ import { AuditLog as ConfigAuditLog } from "./AuditLog";
1
2
  import { Base as ConfigBase } from "./Base";
2
3
  import { Operation as ConfigOperation } from "./Operation";
3
4
  import { Transaction as ConfigTransaction } from "./Transaction";
@@ -6,45 +7,6 @@ export var Configuration;
6
7
  Configuration.Base = ConfigBase;
7
8
  Configuration.Transaction = ConfigTransaction;
8
9
  Configuration.Operation = ConfigOperation;
9
- function create(name, mapping, schema, config, filter) {
10
- return {
11
- name,
12
- type: "bigquery",
13
- filter: [
14
- {
15
- type: "selectively",
16
- expression: filter,
17
- },
18
- { type: "useragent" },
19
- {
20
- type: "mapping",
21
- mapping: {
22
- ...Configuration.Base.mapping,
23
- ...mapping,
24
- },
25
- },
26
- ],
27
- batchSize: 10,
28
- batchInterval: 3,
29
- ...config,
30
- tableSchema: [...Configuration.Base.schema, ...schema],
31
- };
32
- }
33
- Configuration.create = create;
34
- Configuration.backup = create("backup", { value: { selector: "value", transform: "stringify" } }, [{ name: "value", type: "STRING" }], {
35
- projectName: "paxpay-prod",
36
- datasetName: "pays_ledger",
37
- tableName: "backup",
38
- }, "source:pax2pay-worker-banking-ledger realm:within(uk, eu)");
39
- Configuration.operation = create("operations", Configuration.Operation.mapping, Configuration.Operation.schema, {
40
- projectName: "paxpay-prod",
41
- datasetName: "pays_ledger",
42
- tableName: "operations",
43
- }, "source:pax2pay-worker-banking-ledger entity.type:operation realm:within(uk, eu)");
44
- Configuration.transaction = create("transactions", Configuration.Transaction.mapping, Configuration.Transaction.schema, {
45
- projectName: "paxpay-prod",
46
- datasetName: "pays_ledger",
47
- tableName: "transactions",
48
- }, "source:pax2pay-worker-banking-ledger entity.type:transaction realm:within(uk, eu)");
10
+ Configuration.AuditLog = ConfigAuditLog;
49
11
  })(Configuration || (Configuration = {}));
50
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Analytics/Configuration/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAGhE,MAAM,KAAW,aAAa,CAwE7B;AAxED,WAAiB,aAAa;IACf,kBAAI,GAAG,UAAU,CAAA;IACjB,yBAAW,GAAG,iBAAiB,CAAA;IAC/B,uBAAS,GAAG,eAAe,CAAA;IAMzC,SAAgB,MAAM,CACrB,IAAY,EACZ,OAAkD,EAClD,MAAwC,EACxC,MAA2B,EAC3B,MAAc;QAEd,OAAO;YACN,IAAI;YACJ,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE;gBACP;oBACC,IAAI,EAAE,aAAa;oBACnB,UAAU,EAAE,MAAM;iBAClB;gBACD,EAAE,IAAI,EAAE,WAAW,EAAE;gBACrB;oBACC,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACR,GAAG,cAAA,IAAI,CAAC,OAAO;wBACf,GAAG,OAAO;qBACV;iBACD;aACD;YACD,SAAS,EAAE,EAAE;YACb,aAAa,EAAE,CAAC;YAChB,GAAG,MAAM;YACT,WAAW,EAAE,CAAC,GAAG,cAAA,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC;SACxC,CAAA;IACF,CAAC;IA7Be,oBAAM,SA6BrB,CAAA;IACY,oBAAM,GAAG,MAAM,CAC3B,QAAQ,EACR,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EACxD,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EACnC;QACC,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,QAAQ;KACnB,EACD,2DAA2D,CAC3D,CAAA;IACY,uBAAS,GAAG,MAAM,CAC9B,YAAY,EACZ,cAAA,SAAS,CAAC,OAAO,EACjB,cAAA,SAAS,CAAC,MAAM,EAChB;QACC,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,YAAY;KACvB,EACD,iFAAiF,CACjF,CAAA;IACY,yBAAW,GAAG,MAAM,CAChC,cAAc,EACd,cAAA,WAAW,CAAC,OAAO,EACnB,cAAA,WAAW,CAAC,MAAM,EAClB;QACC,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,cAAc;KACzB,EACD,mFAAmF,CACnF,CAAA;AACF,CAAC,EAxEgB,aAAa,KAAb,aAAa,QAwE7B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Analytics/Configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEhE,MAAM,KAAW,aAAa,CAK7B;AALD,WAAiB,aAAa;IACf,kBAAI,GAAG,UAAU,CAAA;IACjB,yBAAW,GAAG,iBAAiB,CAAA;IAC/B,uBAAS,GAAG,eAAe,CAAA;IAC3B,sBAAQ,GAAG,cAAc,CAAA;AACxC,CAAC,EALgB,aAAa,KAAb,aAAa,QAK7B"}
@@ -0,0 +1,13 @@
1
+ import { Audit } from "../../Audit";
2
+ import { Realm } from "../../Realm";
3
+ import { Base } from "./Base";
4
+ export type AuditLog = Base<Audit> & {
5
+ entity: {
6
+ type: "auditLog";
7
+ id: string;
8
+ };
9
+ action: "created";
10
+ };
11
+ export declare namespace AuditLog {
12
+ function create(value: Audit, realm: Realm, action: AuditLog["action"]): AuditLog;
13
+ }
@@ -0,0 +1,15 @@
1
+ import { isoly } from "isoly";
2
+ export var AuditLog;
3
+ (function (AuditLog) {
4
+ function create(value, realm, action) {
5
+ return {
6
+ realm,
7
+ entity: { type: "auditLog", id: value.id },
8
+ action,
9
+ created: isoly.DateTime.now(),
10
+ value,
11
+ };
12
+ }
13
+ AuditLog.create = create;
14
+ })(AuditLog || (AuditLog = {}));
15
+ //# sourceMappingURL=AuditLog.js.map
@@ -0,0 +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,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"}
@@ -1,11 +1,13 @@
1
+ import { AuditLog as AuditLogEvent } from "./AuditLog";
1
2
  import { Base as EventBase } from "./Base";
2
3
  import { Operation as OperationEvent } from "./Operation";
3
4
  import { Transaction as TransactionEvent } from "./Transaction";
4
- export type Event = (Event.Transaction | Event.Operation) & {
5
+ export type Event = (Event.Transaction | Event.Operation | Event.AuditLog) & {
5
6
  version: string;
6
7
  };
7
8
  export declare namespace Event {
8
9
  type Base<T> = EventBase<T>;
9
10
  export import Transaction = TransactionEvent;
10
11
  export import Operation = OperationEvent;
12
+ export import AuditLog = AuditLogEvent;
11
13
  }
@@ -1,8 +1,10 @@
1
+ import { AuditLog as AuditLogEvent } from "./AuditLog";
1
2
  import { Operation as OperationEvent } from "./Operation";
2
3
  import { Transaction as TransactionEvent } from "./Transaction";
3
4
  export var Event;
4
5
  (function (Event) {
5
6
  Event.Transaction = TransactionEvent;
6
7
  Event.Operation = OperationEvent;
8
+ Event.AuditLog = AuditLogEvent;
7
9
  })(Event || (Event = {}));
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Analytics/Event/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAG/D,MAAM,KAAW,KAAK,CAIrB;AAJD,WAAiB,KAAK;IAEP,iBAAW,GAAG,gBAAgB,CAAA;IAC9B,eAAS,GAAG,cAAc,CAAA;AACzC,CAAC,EAJgB,KAAK,KAAL,KAAK,QAIrB"}
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,SAAS,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAG/D,MAAM,KAAW,KAAK,CAKrB;AALD,WAAiB,KAAK;IAEP,iBAAW,GAAG,gBAAgB,CAAA;IAC9B,eAAS,GAAG,cAAc,CAAA;IAC1B,cAAQ,GAAG,aAAa,CAAA;AACvC,CAAC,EALgB,KAAK,KAAL,KAAK,QAKrB"}
@@ -1,8 +1,9 @@
1
1
  import { gracely } from "gracely";
2
2
  import { isoly } from "isoly";
3
3
  import { http } from "cloudly-http";
4
+ import { Transaction } from "../../Transaction";
4
5
  export declare class Buffer {
5
6
  private readonly client;
6
7
  constructor(client: http.Client);
7
- replace(account: string, currency: isoly.Currency, amount: number): Promise<number | gracely.Error>;
8
+ replace(account: string, currency: isoly.Currency, amount: number): Promise<Transaction | gracely.Error>;
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Buffer.js","sourceRoot":"../","sources":["Client/Accounts/Buffer.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,MAAM;IAClB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,QAAwB,EAAE,MAAc;QACtE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,YAAY,OAAO,aAAa,QAAQ,SAAS,EAAE,MAAM,CAAC,CAAA;IAC1F,CAAC;CACD"}
1
+ {"version":3,"file":"Buffer.js","sourceRoot":"../","sources":["Client/Accounts/Buffer.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,MAAM;IAClB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,QAAwB,EAAE,MAAc;QACtE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAc,YAAY,OAAO,aAAa,QAAQ,SAAS,EAAE,MAAM,CAAC,CAAA;IAC/F,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.347",
3
+ "version": "0.1.349",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",