@pax2pay/model-banking 0.1.146 → 0.1.148

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,28 @@
1
+ import { isoly } from "isoly"
2
+ import { isly } from "isly"
3
+
4
+ export type Indices =
5
+ | ["currency", isoly.Currency]
6
+ | ["direction", Indices.Direction]
7
+ | ["rail", Indices.Rail]
8
+ | ["status", Indices.Status]
9
+ export namespace Indices {
10
+ const direction = ["inbound", "outbound"] as const
11
+ export type Direction = typeof direction[number]
12
+ const rail = "internal"
13
+ export type Rail = typeof rail
14
+ const status = ["review", "created", "approved", "rejected", "processing", "finalized"] as const
15
+ export type Status = typeof status[number]
16
+ export const type = isly.union(
17
+ isly.tuple<Indices>(isly.string("currency"), isly.fromIs("isoly.Currency", isoly.Currency.is)),
18
+ isly.tuple<Indices>(isly.string("direction"), isly.string(direction)),
19
+ isly.tuple<Indices>(isly.string("rail"), isly.string(rail)),
20
+ isly.tuple<Indices>(isly.string("status"), isly.string(status))
21
+ )
22
+ export const is = type.is
23
+ export const flaw = type.flaw
24
+ export function parse(value: string | undefined): Indices | undefined {
25
+ const indices = value?.split(",")
26
+ return is(indices) ? indices : undefined
27
+ }
28
+ }
@@ -3,6 +3,7 @@ import { isoly } from "isoly"
3
3
  import { http } from "cloudly-http"
4
4
  import * as rest from "cloudly-rest"
5
5
  import { Transaction } from "../../Transaction"
6
+ import { Indices as TransactionIndex } from "./Indices"
6
7
  import { Notes } from "./Notes"
7
8
 
8
9
  export class Transactions extends rest.Collection<gracely.Error> {
@@ -20,7 +21,10 @@ export class Transactions extends rest.Collection<gracely.Error> {
20
21
  index?: Transactions.Index
21
22
  dateRange?: isoly.DateRange
22
23
  }): Promise<(Transaction[] & { cursor?: string | undefined }) | gracely.Error> {
23
- const query = Object.entries({ ...(options?.index ?? {}), ...(options?.dateRange ?? {}) })
24
+ const query = Object.entries({
25
+ ...(options?.index ? { index: options.index.join(",") } : {}),
26
+ ...(options?.dateRange ?? {}),
27
+ })
24
28
  .map(([k, v]) => `${k}=${v}`)
25
29
  .join("&")
26
30
  const path = options?.account ? `/account/${options.account}/transaction` : `/transaction`
@@ -32,9 +36,6 @@ export class Transactions extends rest.Collection<gracely.Error> {
32
36
  }
33
37
 
34
38
  export namespace Transactions {
35
- export type Index =
36
- | { status: "review" | "created" | "approved" | "rejected" | "processing" | "finalized" }
37
- | { currency: isoly.Currency }
38
- | { direction: "inbound" | "outbound" }
39
- | { rail: "internal" }
39
+ export type Index = TransactionIndex
40
+ export const Index = TransactionIndex
40
41
  }
package/Client/index.ts CHANGED
@@ -9,7 +9,7 @@ import { Operations } from "./Operations"
9
9
  import { Organizations } from "./Organizations"
10
10
  import { Rules } from "./Rules"
11
11
  import { Settlements } from "./Settlements"
12
- import { Transactions } from "./Transactions"
12
+ import { Transactions as ClientTransactions } from "./Transactions"
13
13
  import { Treasury } from "./Treasury"
14
14
  import { Version } from "./Version"
15
15
 
@@ -22,7 +22,7 @@ export class Client extends rest.Client<gracely.Error> {
22
22
  readonly organizations = new Organizations(this.client)
23
23
  readonly rules = new Rules(this.client)
24
24
  readonly settlements = new Settlements(this.client)
25
- readonly transactions = new Transactions(this.client)
25
+ readonly transactions = new ClientTransactions(this.client)
26
26
  readonly treasury = new Treasury(this.client)
27
27
  readonly flags = new Flags(this.client)
28
28
  readonly userwidgets = new userwidgets.ClientCollection(this.client, { pathPrefix: "/widgets" })
@@ -41,5 +41,9 @@ export class Client extends rest.Client<gracely.Error> {
41
41
  }
42
42
  }
43
43
  export namespace Client {
44
+ export const Transactions = ClientTransactions
45
+ export namespace Transactions {
46
+ export type Index = ClientTransactions.Index
47
+ }
44
48
  export type Unauthorized = (client: rest.Client<never>) => Promise<boolean>
45
49
  }
@@ -1,6 +1,5 @@
1
1
  import { isoly } from "isoly"
2
2
  import { isly } from "isly"
3
- import { Operation } from "../Operation"
4
3
  import { Rail } from "../Rail"
5
4
 
6
5
  export interface Creatable {
@@ -8,16 +7,13 @@ export interface Creatable {
8
7
  currency: isoly.Currency
9
8
  amount: number
10
9
  description: string
11
- operations?: Operation.Creatable[]
12
10
  }
13
-
14
11
  export namespace Creatable {
15
12
  export const type = isly.object<Creatable>({
16
13
  counterpart: isly.fromIs("Rail", Rail.is),
17
14
  currency: isly.fromIs("isoly.Currency", isoly.Currency.is),
18
15
  amount: isly.number(),
19
16
  description: isly.string(),
20
- operations: isly.array(isly.fromIs("Operation.Creatable", Operation.Creatable.is)).optional(),
21
17
  })
22
18
  export const is = type.is
23
19
  export const flaw = type.flaw
@@ -1,29 +1,19 @@
1
- import { isoly } from "isoly"
1
+ import { isly } from "isly"
2
2
  import { Rail } from "../Rail"
3
3
  import { Creatable as TransactionCreatable } from "./Creatable"
4
4
  import { Reference as TransactionReference } from "./Reference"
5
5
 
6
6
  export interface Incoming extends TransactionCreatable {
7
7
  account: Rail
8
- counterpart: Rail
9
- currency: isoly.Currency
10
- amount: number
11
- reference?: TransactionReference
12
8
  posted: string
13
- description: string
9
+ reference?: TransactionReference
14
10
  }
15
-
16
11
  export namespace Incoming {
17
- export function is(value: any | Incoming): value is Incoming {
18
- return (
19
- value &&
20
- typeof value == "object" &&
21
- Rail.is(value.account) &&
22
- Rail.is(value.counterpart) &&
23
- isoly.Currency.is(value.currency) &&
24
- typeof value.amount == "number" &&
25
- typeof value.posted == "string" &&
26
- typeof value.description == "string"
27
- )
28
- }
12
+ export const type = TransactionCreatable.type.extend<Incoming>({
13
+ account: isly.fromIs("Rail", Rail.is),
14
+ posted: isly.string(),
15
+ reference: TransactionReference.type.optional(),
16
+ })
17
+ export const is = type.is
18
+ export const flaw = type.flaw
29
19
  }
@@ -24,7 +24,6 @@ export interface Transaction extends Transaction.Creatable {
24
24
  oldFlags: string[]
25
25
  notes: Transaction.Note[]
26
26
  }
27
-
28
27
  export namespace Transaction {
29
28
  export type Creatable = TransactionCreatable
30
29
  export const Creatable = TransactionCreatable
@@ -44,15 +43,15 @@ export namespace Transaction {
44
43
  accountId: isly.string(),
45
44
  account: isly.fromIs("Rail", Rail.is),
46
45
  id: isly.fromIs("cryptly.Identifier", cryptly.Identifier.is).readonly(),
47
- reference: isly.fromIs("TransactionReference", Reference.is).readonly().optional(),
46
+ reference: Reference.type.readonly().optional(),
48
47
  posted: isly.string(),
49
48
  transacted: isly.string().optional(),
50
49
  balance: isly.number(),
51
- operations: isly.array(isly.fromIs("Operation", Operation.is)),
50
+ operations: Operation.type.array(),
52
51
  status: Status.type,
53
52
  flags: isly.array(isly.string() || "review"),
54
53
  oldFlags: isly.string().array(),
55
- notes: isly.array(isly.fromIs("TransactionNote", Note.is)),
54
+ notes: Note.type.array(),
56
55
  })
57
56
  export const is = type.is
58
57
  export const flaw = type.flaw
@@ -61,7 +60,8 @@ export namespace Transaction {
61
60
  organization: string,
62
61
  accountId: string,
63
62
  account: Rail,
64
- transaction: Creatable & { operations: Operation.Creatable[] },
63
+ transaction: Creatable,
64
+ operations: Operation.Creatable[],
65
65
  result: number
66
66
  ): Transaction {
67
67
  const id = cryptly.Identifier.generate(8)
@@ -78,7 +78,7 @@ export namespace Transaction {
78
78
  posted: timestamp,
79
79
  balance: result,
80
80
  ...transaction,
81
- operations: transaction.operations.map(o => Operation.fromCreatable(id, o)),
81
+ operations: operations.map(o => Operation.fromCreatable(id, o)),
82
82
  status: "created",
83
83
  flags: [],
84
84
  oldFlags: [],
@@ -88,7 +88,8 @@ export namespace Transaction {
88
88
  export function fromIncoming(
89
89
  organization: string,
90
90
  accountId: string,
91
- transaction: Incoming & { operations: Operation.Creatable[] },
91
+ transaction: Incoming,
92
+ operations: Operation.Creatable[],
92
93
  result: number
93
94
  ): Transaction {
94
95
  const id = cryptly.Identifier.generate(8)
@@ -102,7 +103,7 @@ export namespace Transaction {
102
103
  id: id,
103
104
  balance: result,
104
105
  ...transaction,
105
- operations: transaction.operations.map(o => Operation.fromCreatable(id, o)),
106
+ operations: operations.map(o => Operation.fromCreatable(id, o)),
106
107
  status: "created",
107
108
  flags: [],
108
109
  oldFlags: [],
@@ -0,0 +1,16 @@
1
+ import { isoly } from "isoly";
2
+ import { isly } from "isly";
3
+ export type Indices = ["currency", isoly.Currency] | ["direction", Indices.Direction] | ["rail", Indices.Rail] | ["status", Indices.Status];
4
+ export declare namespace Indices {
5
+ const direction: readonly ["inbound", "outbound"];
6
+ export type Direction = typeof direction[number];
7
+ const rail = "internal";
8
+ export type Rail = typeof rail;
9
+ const status: readonly ["review", "created", "approved", "rejected", "processing", "finalized"];
10
+ export type Status = typeof status[number];
11
+ export const type: isly.Type<Indices>;
12
+ export const is: isly.Type.IsFunction<Indices>;
13
+ export const flaw: isly.Type.FlawFunction;
14
+ export function parse(value: string | undefined): Indices | undefined;
15
+ export {};
16
+ }
@@ -0,0 +1,17 @@
1
+ import { isoly } from "isoly";
2
+ import { isly } from "isly";
3
+ export var Indices;
4
+ (function (Indices) {
5
+ const direction = ["inbound", "outbound"];
6
+ const rail = "internal";
7
+ const status = ["review", "created", "approved", "rejected", "processing", "finalized"];
8
+ Indices.type = isly.union(isly.tuple(isly.string("currency"), isly.fromIs("isoly.Currency", isoly.Currency.is)), isly.tuple(isly.string("direction"), isly.string(direction)), isly.tuple(isly.string("rail"), isly.string(rail)), isly.tuple(isly.string("status"), isly.string(status)));
9
+ Indices.is = Indices.type.is;
10
+ Indices.flaw = Indices.type.flaw;
11
+ function parse(value) {
12
+ const indices = value?.split(",");
13
+ return Indices.is(indices) ? indices : undefined;
14
+ }
15
+ Indices.parse = parse;
16
+ })(Indices || (Indices = {}));
17
+ //# sourceMappingURL=Indices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Indices.js","sourceRoot":"../","sources":["Client/Transactions/Indices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,OAAO,CAmBvB;AAnBD,WAAiB,OAAO;IACvB,MAAM,SAAS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+ import { Indices as TransactionIndex } from "./Indices";
6
7
  import { Notes } from "./Notes";
7
8
  export declare class Transactions extends rest.Collection<gracely.Error> {
8
9
  readonly Notes: Notes;
@@ -19,13 +20,6 @@ export declare class Transactions extends rest.Collection<gracely.Error> {
19
20
  }) | gracely.Error>;
20
21
  }
21
22
  export declare namespace Transactions {
22
- type Index = {
23
- status: "review" | "created" | "approved" | "rejected" | "processing" | "finalized";
24
- } | {
25
- currency: isoly.Currency;
26
- } | {
27
- direction: "inbound" | "outbound";
28
- } | {
29
- rail: "internal";
30
- };
23
+ type Index = TransactionIndex;
24
+ const Index: typeof TransactionIndex;
31
25
  }
@@ -1,4 +1,5 @@
1
1
  import * as rest from "cloudly-rest";
2
+ import { Indices as TransactionIndex } from "./Indices";
2
3
  import { Notes } from "./Notes";
3
4
  export class Transactions extends rest.Collection {
4
5
  constructor(client) {
@@ -9,11 +10,17 @@ export class Transactions extends rest.Collection {
9
10
  return this.client.post(`/account/${account}/transaction`, transaction);
10
11
  }
11
12
  async list(options) {
12
- const query = Object.entries({ ...(options?.index ?? {}), ...(options?.dateRange ?? {}) })
13
+ const query = Object.entries({
14
+ ...(options?.index ? { index: options.index.join(",") } : {}),
15
+ ...(options?.dateRange ?? {}),
16
+ })
13
17
  .map(([k, v]) => `${k}=${v}`)
14
18
  .join("&");
15
19
  const path = options?.account ? `/account/${options.account}/transaction` : `/transaction`;
16
20
  return this.client.get(path + (query && "?" + query), options?.limit ? { limit: options?.limit.toString() } : {});
17
21
  }
18
22
  }
23
+ (function (Transactions) {
24
+ Transactions.Index = TransactionIndex;
25
+ })(Transactions || (Transactions = {}));
19
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Transactions/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,YAAa,S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kBAAK,GAAG,gBAAgB,CAAA;AACtC,CAAC,EAHgB,YAAY,KAAZ,YAAY,QAG5B"}
@@ -9,7 +9,7 @@ import { Operations } from "./Operations";
9
9
  import { Organizations } from "./Organizations";
10
10
  import { Rules } from "./Rules";
11
11
  import { Settlements } from "./Settlements";
12
- import { Transactions } from "./Transactions";
12
+ import { Transactions as ClientTransactions } from "./Transactions";
13
13
  import { Treasury } from "./Treasury";
14
14
  import { Version } from "./Version";
15
15
  export declare class Client extends rest.Client<gracely.Error> {
@@ -21,7 +21,7 @@ export declare class Client extends rest.Client<gracely.Error> {
21
21
  readonly organizations: Organizations;
22
22
  readonly rules: Rules;
23
23
  readonly settlements: Settlements;
24
- readonly transactions: Transactions;
24
+ readonly transactions: ClientTransactions;
25
25
  readonly treasury: Treasury;
26
26
  readonly flags: Flags;
27
27
  readonly userwidgets: userwidgets.ClientCollection;
@@ -29,5 +29,9 @@ export declare class Client extends rest.Client<gracely.Error> {
29
29
  static create<T = Record<string, any>>(server: string, key: string, load?: (client: http.Client) => T): Client & T;
30
30
  }
31
31
  export declare namespace Client {
32
+ const Transactions: typeof ClientTransactions;
33
+ namespace Transactions {
34
+ type Index = ClientTransactions.Index;
35
+ }
32
36
  type Unauthorized = (client: rest.Client<never>) => Promise<boolean>;
33
37
  }
@@ -8,7 +8,7 @@ import { Operations } from "./Operations";
8
8
  import { Organizations } from "./Organizations";
9
9
  import { Rules } from "./Rules";
10
10
  import { Settlements } from "./Settlements";
11
- import { Transactions } from "./Transactions";
11
+ import { Transactions as ClientTransactions } from "./Transactions";
12
12
  import { Treasury } from "./Treasury";
13
13
  import { Version } from "./Version";
14
14
  export class Client extends rest.Client {
@@ -20,7 +20,7 @@ export class Client extends rest.Client {
20
20
  this.organizations = new Organizations(this.client);
21
21
  this.rules = new Rules(this.client);
22
22
  this.settlements = new Settlements(this.client);
23
- this.transactions = new Transactions(this.client);
23
+ this.transactions = new ClientTransactions(this.client);
24
24
  this.treasury = new Treasury(this.client);
25
25
  this.flags = new Flags(this.client);
26
26
  this.userwidgets = new userwidgets.ClientCollection(this.client, { pathPrefix: "/widgets" });
@@ -36,4 +36,7 @@ export class Client extends rest.Client {
36
36
  return result;
37
37
  }
38
38
  }
39
+ (function (Client) {
40
+ Client.Transactions = ClientTransactions;
41
+ })(Client || (Client = {}));
39
42
  //# sourceMappingURL=index.js.map
@@ -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,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,MAAM,OAAO,MAAO,SAAQ,IAAI,CAAC,MAAqB;IAAtD;;QAGU,aAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACpC,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,eAAU,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACxC,kBAAa,GAAG,IAAI,a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AK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,gBAAW,GAAG,IAAI,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAA;QACvF,YAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAa5C,CAAC;IAXA,MAAM,CAAC,MAAM,CAA0B,MAAc,EAAE,GAAW,EAAE,IAAiC;QACpG,IAAI,UAAsC,CAAA;QAC1C,MAAM,MAAM,GAAW,IAAI,MAAM,CAChC,CAAC,UAAU,GAAG,IAAI,IAAI,CAAC,MAAM,CAAgB,MAAM,EAAE,GAAG,EAAE;YACzD,YAAY,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC;SACxG,CAAC,CAAC,CACH,CAAA;QACD,IAAI,IAAI;YACP,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;QACxC,OAAO,MAAoB,CAAA;IAC5B,CAAC;CACD;AACD,WAAiB,MAAM;IACT,mBAAY,GAAG,kBAAkB,CAAA;AAK/C,CAAC,EANgB,MAAM,KAAN,MAAM,QAMtB"}
@@ -1,13 +1,11 @@
1
1
  import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
- import { Operation } from "../Operation";
4
3
  import { Rail } from "../Rail";
5
4
  export interface Creatable {
6
5
  counterpart: Rail;
7
6
  currency: isoly.Currency;
8
7
  amount: number;
9
8
  description: string;
10
- operations?: Operation.Creatable[];
11
9
  }
12
10
  export declare namespace Creatable {
13
11
  const type: isly.object.ExtendableType<Creatable>;
@@ -1,6 +1,5 @@
1
1
  import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
- import { Operation } from "../Operation";
4
3
  import { Rail } from "../Rail";
5
4
  export var Creatable;
6
5
  (function (Creatable) {
@@ -9,7 +8,6 @@ export var Creatable;
9
8
  currency: isly.fromIs("isoly.Currency", isoly.Currency.is),
10
9
  amount: isly.number(),
11
10
  description: isly.string(),
12
- operations: isly.array(isly.fromIs("Operation.Creatable", Operation.Creatable.is)).optional(),
13
11
  });
14
12
  Creatable.is = Creatable.type.is;
15
13
  Creatable.flaw = Creatable.type.flaw;
@@ -1 +1 @@
1
- {"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Transaction/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAU9B,MAAM,KAAW,SAAS,CAWzB;AAXD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QACzC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1D,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;KAC7F,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;IAChB,aAAG,GAAG,UAAA,IAAI,CAAC,GAAG,CAAA;AAC5B,CAAC,EAXgB,SAAS,KAAT,SAAS,QAWzB"}
1
+ {"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Transaction/Creatable.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;AAQ9B,MAAM,KAAW,SAAS,CAUzB;AAVD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QACzC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1D,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;KAC1B,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;IAChB,aAAG,GAAG,UAAA,IAAI,CAAC,GAAG,CAAA;AAC5B,CAAC,EAVgB,SAAS,KAAT,SAAS,QAUzB"}
@@ -1,16 +1,14 @@
1
- import { isoly } from "isoly";
1
+ import { isly } from "isly";
2
2
  import { Rail } from "../Rail";
3
3
  import { Creatable as TransactionCreatable } from "./Creatable";
4
4
  import { Reference as TransactionReference } from "./Reference";
5
5
  export interface Incoming extends TransactionCreatable {
6
6
  account: Rail;
7
- counterpart: Rail;
8
- currency: isoly.Currency;
9
- amount: number;
10
- reference?: TransactionReference;
11
7
  posted: string;
12
- description: string;
8
+ reference?: TransactionReference;
13
9
  }
14
10
  export declare namespace Incoming {
15
- function is(value: any | Incoming): value is Incoming;
11
+ const type: isly.object.ExtendableType<Incoming>;
12
+ const is: isly.Type.IsFunction<Incoming>;
13
+ const flaw: isly.Type.FlawFunction;
16
14
  }
@@ -1,17 +1,15 @@
1
- import { isoly } from "isoly";
1
+ import { isly } from "isly";
2
2
  import { Rail } from "../Rail";
3
+ import { Creatable as TransactionCreatable } from "./Creatable";
4
+ import { Reference as TransactionReference } from "./Reference";
3
5
  export var Incoming;
4
6
  (function (Incoming) {
5
- function is(value) {
6
- return (value &&
7
- typeof value == "object" &&
8
- Rail.is(value.account) &&
9
- Rail.is(value.counterpart) &&
10
- isoly.Currency.is(value.currency) &&
11
- typeof value.amount == "number" &&
12
- typeof value.posted == "string" &&
13
- typeof value.description == "string");
14
- }
15
- Incoming.is = is;
7
+ Incoming.type = TransactionCreatable.type.extend({
8
+ account: isly.fromIs("Rail", Rail.is),
9
+ posted: isly.string(),
10
+ reference: TransactionReference.type.optional(),
11
+ });
12
+ Incoming.is = Incoming.type.is;
13
+ Incoming.flaw = Incoming.type.flaw;
16
14
  })(Incoming || (Incoming = {}));
17
15
  //# sourceMappingURL=Incoming.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Incoming.js","sourceRoot":"../","sources":["Transaction/Incoming.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAc9B,MAAM,KAAW,QAAQ,CAaxB;AAbD,WAAiB,QAAQ;IACxB,SAAgB,EAAE,CAAC,KAAqB;QACvC,OAAO,CACN,KAAK;YACL,OAAO,KAAK,IAAI,QAAQ;YACxB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;YACtB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;YAC1B,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YACjC,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ;YAC/B,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ;YAC/B,OAAO,KAAK,CAAC,WAAW,IAAI,QAAQ,CACpC,CAAA;IACF,CAAC;IAXe,WAAE,KAWjB,CAAA;AACF,CAAC,EAbgB,QAAQ,KAAR,QAAQ,QAaxB"}
1
+ {"version":3,"file":"Incoming.js","sourceRoot":"../","sources":["Transaction/Incoming.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAO/D,MAAM,KAAW,QAAQ,CAQxB;AARD,WAAiB,QAAQ;IACX,aAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAW;QAC9D,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QACrC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC/C,CAAC,CAAA;IACW,WAAE,GAAG,SAAA,IAAI,CAAC,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EARgB,QAAQ,KAAR,QAAQ,QAQxB"}
@@ -41,12 +41,8 @@ export declare namespace Transaction {
41
41
  const is: isly.Type.IsFunction<Transaction>;
42
42
  const flaw: isly.Type.FlawFunction;
43
43
  const get: isly.Type.GetFunction<Transaction>;
44
- function fromCreatable(organization: string, accountId: string, account: Rail, transaction: Creatable & {
45
- operations: Operation.Creatable[];
46
- }, result: number): Transaction;
47
- function fromIncoming(organization: string, accountId: string, transaction: Incoming & {
48
- operations: Operation.Creatable[];
49
- }, result: number): Transaction;
44
+ function fromCreatable(organization: string, accountId: string, account: Rail, transaction: Creatable, operations: Operation.Creatable[], result: number): Transaction;
45
+ function fromIncoming(organization: string, accountId: string, transaction: Incoming, operations: Operation.Creatable[], result: number): Transaction;
50
46
  function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier;
51
47
  function flag(transaction: Transaction, note: Note): void;
52
48
  }
@@ -20,20 +20,20 @@ export var Transaction;
20
20
  accountId: isly.string(),
21
21
  account: isly.fromIs("Rail", Rail.is),
22
22
  id: isly.fromIs("cryptly.Identifier", cryptly.Identifier.is).readonly(),
23
- reference: isly.fromIs("TransactionReference", Transaction.Reference.is).readonly().optional(),
23
+ reference: Transaction.Reference.type.readonly().optional(),
24
24
  posted: isly.string(),
25
25
  transacted: isly.string().optional(),
26
26
  balance: isly.number(),
27
- operations: isly.array(isly.fromIs("Operation", Operation.is)),
27
+ operations: Operation.type.array(),
28
28
  status: Transaction.Status.type,
29
29
  flags: isly.array(isly.string() || "review"),
30
30
  oldFlags: isly.string().array(),
31
- notes: isly.array(isly.fromIs("TransactionNote", Transaction.Note.is)),
31
+ notes: Transaction.Note.type.array(),
32
32
  });
33
33
  Transaction.is = Transaction.type.is;
34
34
  Transaction.flaw = Transaction.type.flaw;
35
35
  Transaction.get = Transaction.type.get;
36
- function fromCreatable(organization, accountId, account, transaction, result) {
36
+ function fromCreatable(organization, accountId, account, transaction, operations, result) {
37
37
  const id = cryptly.Identifier.generate(8);
38
38
  const timestamp = isoly.DateTime.now();
39
39
  if ("id" in transaction)
@@ -48,7 +48,7 @@ export var Transaction;
48
48
  posted: timestamp,
49
49
  balance: result,
50
50
  ...transaction,
51
- operations: transaction.operations.map(o => Operation.fromCreatable(id, o)),
51
+ operations: operations.map(o => Operation.fromCreatable(id, o)),
52
52
  status: "created",
53
53
  flags: [],
54
54
  oldFlags: [],
@@ -56,7 +56,7 @@ export var Transaction;
56
56
  };
57
57
  }
58
58
  Transaction.fromCreatable = fromCreatable;
59
- function fromIncoming(organization, accountId, transaction, result) {
59
+ function fromIncoming(organization, accountId, transaction, operations, result) {
60
60
  const id = cryptly.Identifier.generate(8);
61
61
  if ("id" in transaction)
62
62
  delete transaction.id;
@@ -68,7 +68,7 @@ export var Transaction;
68
68
  id: id,
69
69
  balance: result,
70
70
  ...transaction,
71
- operations: transaction.operations.map(o => Operation.fromCreatable(id, o)),
71
+ operations: operations.map(o => Operation.fromCreatable(id, o)),
72
72
  status: "created",
73
73
  flags: [],
74
74
  oldFlags: [],
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,QAAQ,IAAI,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAC5D,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAC/D,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAkBtD,MAAM,KAAW,WAAW,CA8F3B;AA9FD,WAAiB,WAAW;IAEd,qBAAS,GAAG,oBAAoB,CAAA;IAEhC,oBAAQ,GAAG,mBAAmB,CAAA;IAE9B,qBAAS,GAAG,oBAAoB,CAAA;IAEhC,gBAAI,GAAG,eAAe,CAAA;IAEtB,kBAAM,GAAG,iBAAiB,CAAA;IAI1B,gBAAI,GAAG,YAAA,SAAS,CAAC,IAAI,CAAC,MAAM,CAAc;QACtD,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE;QAC3B,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QAC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AAK,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7G,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAA;IACpC,CAAC;IANe,gBAAI,OAMnB,CAAA;AACF,CAAC,EAhGgB,WAAW,KAAX,WAAW,QAgG3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.146",
3
+ "version": "0.1.148",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",