@pax2pay/model-banking 0.1.537 → 0.1.538

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/Audit.ts CHANGED
@@ -47,6 +47,7 @@ export namespace Audit {
47
47
  | "create"
48
48
  | "remove"
49
49
  | "update"
50
+ | "inactivate"
50
51
  route: "create"
51
52
  clearbank: "assessmentFailed" | "validationFailed"
52
53
  }
package/Backup/Base.ts CHANGED
@@ -16,7 +16,7 @@ export type Base<T> = {
16
16
  export namespace Base {
17
17
  export type Action = typeof Action.values[number]
18
18
  export namespace Action {
19
- export const values = ["created", "updated", "cancelled", "removed"] as const
19
+ export const values = ["created", "updated", "cancelled", "removed", "inactivated"] as const
20
20
  }
21
21
  export type Data = { realm?: Realm; organization?: string; account?: string; isError?: true; meta?: any }
22
22
  export type Create<T, B extends Base<T>, D extends Data = Record<string, never>> = (...args: [T, Action, D?]) => B
@@ -10,7 +10,7 @@ export declare namespace Audit {
10
10
  account: "buffer" | "counterpart-remove" | "counterpart-replace" | "listener-create" | "listener-remove" | "rail-create" | "rail-remove" | "rail-replace" | "rule-create" | "rule-remove" | "rule-replace" | "create" | "status" | "operation" | "remove" | "update";
11
11
  label: "create" | "remove" | "replace";
12
12
  transaction: "operation" | "cancel" | "system" | "update" | "note";
13
- organization: "group-replace" | "listener-create" | "listener-remove" | "rule-create" | "rule-remove" | "rule-replace" | "create" | "remove" | "update";
13
+ organization: "group-replace" | "listener-create" | "listener-remove" | "rule-create" | "rule-remove" | "rule-replace" | "create" | "remove" | "update" | "inactivate";
14
14
  route: "create";
15
15
  clearbank: "assessmentFailed" | "validationFailed";
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Audit.js","sourceRoot":"","sources":["../../Audit.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAG3B,IAAiB,KAAK,CAqDrB;AArDD,WAAiB,KAAK;IAiDrB,IAAiB,QAAQ,CAGxB;IAHD,WAAiB,QAAQ;QACX,eAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,CAAU,CAAA;QAC5D,aAAI,GAAG,WAAI,CAAC,MAAM,CAAC,SAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EAHgB,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAGxB;AACF,CAAC,EArDgB,KAAK,qBAAL,KAAK,QAqDrB"}
1
+ {"version":3,"file":"Audit.js","sourceRoot":"","sources":["../../Audit.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAG3B,IAAiB,KAAK,CAsDrB;AAtDD,WAAiB,KAAK;IAkDrB,IAAiB,QAAQ,CAGxB;IAHD,WAAiB,QAAQ;QACX,eAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,CAAU,CAAA;QAC5D,aAAI,GAAG,WAAI,CAAC,MAAM,CAAC,SAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EAHgB,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAGxB;AACF,CAAC,EAtDgB,KAAK,qBAAL,KAAK,QAsDrB"}
@@ -11,5 +11,5 @@ export interface Account extends Base<modelAccount> {
11
11
  }
12
12
  export declare namespace Account {
13
13
  const create: Base.Create<modelAccount, Account>;
14
- const addSender: (sender: (backup: Account) => any | Promise<any>) => (args_0: modelAccount, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Account) => any | Promise<any>>;
14
+ const addSender: (sender: (backup: Account) => any | Promise<any>) => (args_0: modelAccount, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Account) => any | Promise<any>>;
15
15
  }
@@ -15,7 +15,7 @@ export type Base<T> = {
15
15
  export declare namespace Base {
16
16
  type Action = typeof Action.values[number];
17
17
  namespace Action {
18
- const values: readonly ["created", "updated", "cancelled", "removed"];
18
+ const values: readonly ["created", "updated", "cancelled", "removed", "inactivated"];
19
19
  }
20
20
  type Data = {
21
21
  realm?: Realm;
@@ -5,7 +5,7 @@ var Base;
5
5
  (function (Base) {
6
6
  let Action;
7
7
  (function (Action) {
8
- Action.values = ["created", "updated", "cancelled", "removed"];
8
+ Action.values = ["created", "updated", "cancelled", "removed", "inactivated"];
9
9
  })(Action = Base.Action || (Base.Action = {}));
10
10
  function pipeToSender(mapper) {
11
11
  return sender => (...args) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../Backup/Base.ts"],"names":[],"mappings":";;;AAeA,IAAiB,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IAEpB,IAAiB,MAAM,CAEtB;IAFD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,CAAU,CAAA;IAC9E,CAAC,EAFgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAEtB;IAGD,SAAgB,YAAY,CAC3B,MAA4B;QAE5B,OAAO,MAAM,CAAC,EAAE,CACf,CAAC,GAAG,IAAI,EAAE,EAAE;YACX,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAA;YAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA;QACtB,CAAC,CAAA;IACH,CAAC;IARe,iBAAY,eAQ3B,CAAA;AACF,CAAC,EAhBgB,IAAI,oBAAJ,IAAI,QAgBpB"}
1
+ {"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../Backup/Base.ts"],"names":[],"mappings":";;;AAeA,IAAiB,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IAEpB,IAAiB,MAAM,CAEtB;IAFD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAU,CAAA;IAC7F,CAAC,EAFgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAEtB;IAGD,SAAgB,YAAY,CAC3B,MAA4B;QAE5B,OAAO,MAAM,CAAC,EAAE,CACf,CAAC,GAAG,IAAI,EAAE,EAAE;YACX,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAA;YAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA;QACtB,CAAC,CAAA;IACH,CAAC;IARe,iBAAY,eAQ3B,CAAA;AACF,CAAC,EAhBgB,IAAI,oBAAJ,IAAI,QAgBpB"}
@@ -10,5 +10,5 @@ export interface Card extends Base<modelCard> {
10
10
  }
11
11
  export declare namespace Card {
12
12
  const create: Base.Create<modelCard, Card>;
13
- const addSender: (sender: (backup: Card) => any | Promise<any>) => (args_0: modelCard, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Card) => any | Promise<any>>;
13
+ const addSender: (sender: (backup: Card) => any | Promise<any>) => (args_0: modelCard, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Card) => any | Promise<any>>;
14
14
  }
@@ -9,7 +9,7 @@ export declare namespace Operation {
9
9
  const create: Base.Create<modelOperation, Operation, {
10
10
  organization: string;
11
11
  }>;
12
- const addSender: (sender: (backup: Operation) => any | Promise<any>) => (args_0: modelOperation, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: {
12
+ const addSender: (sender: (backup: Operation) => any | Promise<any>) => (args_0: modelOperation, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
13
13
  organization: string;
14
14
  } | undefined) => ReturnType<(backup: Operation) => any | Promise<any>>;
15
15
  }
@@ -9,5 +9,5 @@ export interface Organization extends Base<modelOrganization> {
9
9
  }
10
10
  export declare namespace Organization {
11
11
  const create: Base.Create<modelOrganization, Organization>;
12
- const addSender: (sender: (backup: Organization) => any | Promise<any>) => (args_0: modelOrganization, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Organization) => any | Promise<any>>;
12
+ const addSender: (sender: (backup: Organization) => any | Promise<any>) => (args_0: modelOrganization, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Organization) => any | Promise<any>>;
13
13
  }
@@ -10,7 +10,7 @@ export declare namespace Rule {
10
10
  organization?: string;
11
11
  account?: string;
12
12
  }>;
13
- const addSender: (sender: (backup: Rule) => any | Promise<any>) => (args_0: modelRule, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: {
13
+ const addSender: (sender: (backup: Rule) => any | Promise<any>) => (args_0: modelRule, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
14
14
  organization?: string;
15
15
  account?: string;
16
16
  } | undefined) => ReturnType<(backup: Rule) => any | Promise<any>>;
@@ -18,7 +18,7 @@ export declare namespace Transaction {
18
18
  }>;
19
19
  const addSender: (sender: (backup: Transaction) => any | Promise<any>) => (args_0: modelTransaction & {
20
20
  state?: any;
21
- }, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: {
21
+ }, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
22
22
  isError?: true;
23
23
  meta?: any;
24
24
  } | undefined) => ReturnType<(backup: Transaction) => any | Promise<any>>;
@@ -9,7 +9,7 @@ export declare namespace User {
9
9
  const create: Base.Create<userwidgets.User, User, {
10
10
  realm: Realm;
11
11
  }>;
12
- const addSender: (sender: (backup: User) => any | Promise<any>) => (args_0: userwidgets.User, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: {
12
+ const addSender: (sender: (backup: User) => any | Promise<any>) => (args_0: userwidgets.User, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
13
13
  realm: Realm;
14
14
  } | undefined) => ReturnType<(backup: User) => any | Promise<any>>;
15
15
  }
@@ -10,7 +10,7 @@ export declare namespace Audit {
10
10
  account: "buffer" | "counterpart-remove" | "counterpart-replace" | "listener-create" | "listener-remove" | "rail-create" | "rail-remove" | "rail-replace" | "rule-create" | "rule-remove" | "rule-replace" | "create" | "status" | "operation" | "remove" | "update";
11
11
  label: "create" | "remove" | "replace";
12
12
  transaction: "operation" | "cancel" | "system" | "update" | "note";
13
- organization: "group-replace" | "listener-create" | "listener-remove" | "rule-create" | "rule-remove" | "rule-replace" | "create" | "remove" | "update";
13
+ organization: "group-replace" | "listener-create" | "listener-remove" | "rule-create" | "rule-remove" | "rule-replace" | "create" | "remove" | "update" | "inactivate";
14
14
  route: "create";
15
15
  clearbank: "assessmentFailed" | "validationFailed";
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Audit.js","sourceRoot":"","sources":["../../Audit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,KAAK,CAqDrB;AArDD,WAAiB,KAAK;IAiDrB,IAAiB,QAAQ,CAGxB;IAHD,WAAiB,QAAQ;QACX,eAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,CAAU,CAAA;QAC5D,aAAI,GAAG,IAAI,CAAC,MAAM,CAAC,SAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EAHgB,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAGxB;AACF,CAAC,EArDgB,KAAK,KAAL,KAAK,QAqDrB"}
1
+ {"version":3,"file":"Audit.js","sourceRoot":"","sources":["../../Audit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,KAAK,CAsDrB;AAtDD,WAAiB,KAAK;IAkDrB,IAAiB,QAAQ,CAGxB;IAHD,WAAiB,QAAQ;QACX,eAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,CAAU,CAAA;QAC5D,aAAI,GAAG,IAAI,CAAC,MAAM,CAAC,SAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EAHgB,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAGxB;AACF,CAAC,EAtDgB,KAAK,KAAL,KAAK,QAsDrB"}
@@ -11,5 +11,5 @@ export interface Account extends Base<modelAccount> {
11
11
  }
12
12
  export declare namespace Account {
13
13
  const create: Base.Create<modelAccount, Account>;
14
- const addSender: (sender: (backup: Account) => any | Promise<any>) => (args_0: modelAccount, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Account) => any | Promise<any>>;
14
+ const addSender: (sender: (backup: Account) => any | Promise<any>) => (args_0: modelAccount, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Account) => any | Promise<any>>;
15
15
  }
@@ -15,7 +15,7 @@ export type Base<T> = {
15
15
  export declare namespace Base {
16
16
  type Action = typeof Action.values[number];
17
17
  namespace Action {
18
- const values: readonly ["created", "updated", "cancelled", "removed"];
18
+ const values: readonly ["created", "updated", "cancelled", "removed", "inactivated"];
19
19
  }
20
20
  type Data = {
21
21
  realm?: Realm;
@@ -2,7 +2,7 @@ export var Base;
2
2
  (function (Base) {
3
3
  let Action;
4
4
  (function (Action) {
5
- Action.values = ["created", "updated", "cancelled", "removed"];
5
+ Action.values = ["created", "updated", "cancelled", "removed", "inactivated"];
6
6
  })(Action = Base.Action || (Base.Action = {}));
7
7
  function pipeToSender(mapper) {
8
8
  return sender => (...args) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../Backup/Base.ts"],"names":[],"mappings":"AAeA,MAAM,KAAW,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IAEpB,IAAiB,MAAM,CAEtB;IAFD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,CAAU,CAAA;IAC9E,CAAC,EAFgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAEtB;IAGD,SAAgB,YAAY,CAC3B,MAA4B;QAE5B,OAAO,MAAM,CAAC,EAAE,CACf,CAAC,GAAG,IAAI,EAAE,EAAE;YACX,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAA;YAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA;QACtB,CAAC,CAAA;IACH,CAAC;IARe,iBAAY,eAQ3B,CAAA;AACF,CAAC,EAhBgB,IAAI,KAAJ,IAAI,QAgBpB"}
1
+ {"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../Backup/Base.ts"],"names":[],"mappings":"AAeA,MAAM,KAAW,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IAEpB,IAAiB,MAAM,CAEtB;IAFD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAU,CAAA;IAC7F,CAAC,EAFgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAEtB;IAGD,SAAgB,YAAY,CAC3B,MAA4B;QAE5B,OAAO,MAAM,CAAC,EAAE,CACf,CAAC,GAAG,IAAI,EAAE,EAAE;YACX,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAA;YAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA;QACtB,CAAC,CAAA;IACH,CAAC;IARe,iBAAY,eAQ3B,CAAA;AACF,CAAC,EAhBgB,IAAI,KAAJ,IAAI,QAgBpB"}
@@ -10,5 +10,5 @@ export interface Card extends Base<modelCard> {
10
10
  }
11
11
  export declare namespace Card {
12
12
  const create: Base.Create<modelCard, Card>;
13
- const addSender: (sender: (backup: Card) => any | Promise<any>) => (args_0: modelCard, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Card) => any | Promise<any>>;
13
+ const addSender: (sender: (backup: Card) => any | Promise<any>) => (args_0: modelCard, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Card) => any | Promise<any>>;
14
14
  }
@@ -9,7 +9,7 @@ export declare namespace Operation {
9
9
  const create: Base.Create<modelOperation, Operation, {
10
10
  organization: string;
11
11
  }>;
12
- const addSender: (sender: (backup: Operation) => any | Promise<any>) => (args_0: modelOperation, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: {
12
+ const addSender: (sender: (backup: Operation) => any | Promise<any>) => (args_0: modelOperation, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
13
13
  organization: string;
14
14
  } | undefined) => ReturnType<(backup: Operation) => any | Promise<any>>;
15
15
  }
@@ -9,5 +9,5 @@ export interface Organization extends Base<modelOrganization> {
9
9
  }
10
10
  export declare namespace Organization {
11
11
  const create: Base.Create<modelOrganization, Organization>;
12
- const addSender: (sender: (backup: Organization) => any | Promise<any>) => (args_0: modelOrganization, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Organization) => any | Promise<any>>;
12
+ const addSender: (sender: (backup: Organization) => any | Promise<any>) => (args_0: modelOrganization, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: Record<string, never> | undefined) => ReturnType<(backup: Organization) => any | Promise<any>>;
13
13
  }
@@ -10,7 +10,7 @@ export declare namespace Rule {
10
10
  organization?: string;
11
11
  account?: string;
12
12
  }>;
13
- const addSender: (sender: (backup: Rule) => any | Promise<any>) => (args_0: modelRule, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: {
13
+ const addSender: (sender: (backup: Rule) => any | Promise<any>) => (args_0: modelRule, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
14
14
  organization?: string;
15
15
  account?: string;
16
16
  } | undefined) => ReturnType<(backup: Rule) => any | Promise<any>>;
@@ -18,7 +18,7 @@ export declare namespace Transaction {
18
18
  }>;
19
19
  const addSender: (sender: (backup: Transaction) => any | Promise<any>) => (args_0: modelTransaction & {
20
20
  state?: any;
21
- }, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: {
21
+ }, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
22
22
  isError?: true;
23
23
  meta?: any;
24
24
  } | undefined) => ReturnType<(backup: Transaction) => any | Promise<any>>;
@@ -9,7 +9,7 @@ export declare namespace User {
9
9
  const create: Base.Create<userwidgets.User, User, {
10
10
  realm: Realm;
11
11
  }>;
12
- const addSender: (sender: (backup: User) => any | Promise<any>) => (args_0: userwidgets.User, args_1: "created" | "cancelled" | "updated" | "removed", args_2?: {
12
+ const addSender: (sender: (backup: User) => any | Promise<any>) => (args_0: userwidgets.User, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
13
13
  realm: Realm;
14
14
  } | undefined) => ReturnType<(backup: User) => any | Promise<any>>;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.537",
3
+ "version": "0.1.538",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",