@pax2pay/model-banking 0.1.30 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Client/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as gracely from "gracely"
2
2
  import * as isoly from "isoly"
3
+ import { userwidgets } from "@userwidgets/model"
3
4
  import * as http from "cloudly-http"
4
5
  import * as rest from "cloudly-rest"
5
6
  import { Accounts } from "./Accounts"
@@ -23,16 +24,7 @@ export class Client extends rest.Client<gracely.Error> {
23
24
  realm?: string
24
25
  organization?: string
25
26
  entityTags: EntityTags = { application: {}, organization: {}, user: {} }
26
- readonly userwidgets = {
27
- me: new ClientMe(this.client),
28
- user: new ClientUser(this.client, this.entityTags),
29
- application: new ClientApplication(this.client, this.entityTags),
30
- organization: new ClientOrganization(this.client, this.entityTags),
31
- set onUnauthorized(callback: (client: rest.Client<never>) => Promise<boolean>) {
32
- this.client.onUnauthorized = callback
33
- },
34
- client: this as Client,
35
- }
27
+ readonly userwidgets = new userwidgets.ClientCollection(this.client, "/widgets")
36
28
  readonly accounts = new Accounts(this.client)
37
29
  readonly operations = new Operations(this.client)
38
30
  readonly organizations = new Organizations(this.client)
@@ -1,5 +1,6 @@
1
1
  import * as gracely from "gracely";
2
2
  import * as isoly from "isoly";
3
+ import { userwidgets } from "@userwidgets/model";
3
4
  import * as http from "cloudly-http";
4
5
  import * as rest from "cloudly-rest";
5
6
  import { Accounts } from "./Accounts";
@@ -21,14 +22,7 @@ export declare class Client extends rest.Client<gracely.Error> {
21
22
  realm?: string;
22
23
  organization?: string;
23
24
  entityTags: EntityTags;
24
- readonly userwidgets: {
25
- me: ClientMe;
26
- user: ClientUser;
27
- application: ClientApplication;
28
- organization: ClientOrganization;
29
- onUnauthorized: (client: rest.Client<never>) => Promise<boolean>;
30
- client: Client;
31
- };
25
+ readonly userwidgets: userwidgets.ClientCollection;
32
26
  readonly accounts: Accounts;
33
27
  readonly operations: Operations;
34
28
  readonly organizations: Organizations;
@@ -1,3 +1,4 @@
1
+ import { userwidgets } from "@userwidgets/model";
1
2
  import * as http from "cloudly-http";
2
3
  import * as rest from "cloudly-rest";
3
4
  import { Accounts } from "./Accounts";
@@ -14,16 +15,7 @@ export class Client extends rest.Client {
14
15
  constructor() {
15
16
  super(...arguments);
16
17
  this.entityTags = { application: {}, organization: {}, user: {} };
17
- this.userwidgets = {
18
- me: new ClientMe(this.client),
19
- user: new ClientUser(this.client, this.entityTags),
20
- application: new ClientApplication(this.client, this.entityTags),
21
- organization: new ClientOrganization(this.client, this.entityTags),
22
- set onUnauthorized(callback) {
23
- this.client.onUnauthorized = callback;
24
- },
25
- client: this,
26
- };
18
+ this.userwidgets = new userwidgets.ClientCollection(this.client, "/widgets");
27
19
  this.accounts = new Accounts(this.client);
28
20
  this.operations = new Operations(this.client);
29
21
  this.organizations = new Organizations(this.client);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AACpC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAA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E,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;QACxC,OAAO,MAAoB,CAAA;IAC5B,CAAC;CACD;AACD,WAAiB,MAAM;IAET,kBAAW,GAAG,iBAAiB,CAAA;IAE/B,mBAAY,GAAG,kBAAkB,CAAA;IAEjC,SAAE,GAAG,QAAQ,CAAA;IAEb,WAAI,GAAG,UAAU,CAAA;AAE/B,CAAC,EAVgB,MAAM,KAAN,MAAM,QAUtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",
@@ -68,7 +68,7 @@
68
68
  "typescript": "^5.0.4"
69
69
  },
70
70
  "dependencies": {
71
- "@userwidgets/model": "^0.2.3",
71
+ "@userwidgets/model": "^0.2.4",
72
72
  "cloudly-http": "^0.1.5",
73
73
  "cloudly-rest": "^0.1.2",
74
74
  "cryptly": "^3.0.4",