taxtank-core 2.0.110 → 2.0.112

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/index.d.ts CHANGED
@@ -1046,7 +1046,6 @@ interface BasiqTokenResponse {
1046
1046
  }
1047
1047
 
1048
1048
  declare class BasiqUser extends AbstractModel {
1049
- name: string;
1050
1049
  externalId: string;
1051
1050
  consentId: string;
1052
1051
  consentExpiryDate: Date;
@@ -1817,8 +1816,6 @@ declare class ClientDetails$1 extends AbstractModel {
1817
1816
  workingHolidayMaker?: ClientDetailsWorkingHolidayMakerEnum;
1818
1817
  dateOfBirth?: Date;
1819
1818
  isGST?: boolean;
1820
- basiqConsentId?: string;
1821
- basiqConsentExpiryDate?: Date;
1822
1819
  deletedAt?: Date;
1823
1820
  createdAt?: Date;
1824
1821
  updatedAt?: Date;
@@ -5992,6 +5989,7 @@ declare abstract class RestService$1<BaseModel, Model extends AbstractModel, Col
5992
5989
  getBy(path: string, values: any): Observable<CollectionModel>;
5993
5990
  getFirst(): Observable<Model>;
5994
5991
  hasInCache(id: number): boolean;
5992
+ fromCache(id: number): Model;
5995
5993
  getArray(): Observable<Model[]>;
5996
5994
  getArrayBy(path: string, values: any): Observable<Model[]>;
5997
5995
  /**
@@ -6151,6 +6149,11 @@ declare class BankConnectionService extends RestService$1<BankConnection, BankCo
6151
6149
  * POST endpoint is using for create and for update.
6152
6150
  */
6153
6151
  post(bankConnection: BankConnection$1): Observable<BankConnection$1>;
6152
+ /**
6153
+ * remove basiq connection to create a new one (because basiq has no update option),
6154
+ * used for upgrade to openBanking and manage shared bank accounts flow
6155
+ */
6156
+ deleteBasiq(connection: BankConnection$1): Observable<any>;
6154
6157
  activate(bankConnection: BankConnection$1): Observable<BankConnection$1>;
6155
6158
  deactivate(bankConnection: BankConnection$1): Observable<BankConnection$1>;
6156
6159
  private listenNotifications;
@@ -6252,11 +6255,6 @@ declare class BasiqService extends RestService$1<BankAccount, BankAccount$1, Ban
6252
6255
  * Listen events from Event Dispatcher service
6253
6256
  */
6254
6257
  listenEvents(): void;
6255
- /**
6256
- * remove basiq connection to create a new one (because basiq has no update option),
6257
- * used for upgrade to openBanking and manage shared bank accounts flow
6258
- */
6259
- deleteBasiq(connection: BankConnection$1): Observable<any>;
6260
6258
  /**
6261
6259
  * listen to notifications to update basiq accounts list
6262
6260
  */
@@ -6271,11 +6269,30 @@ declare enum BasiqMessagesEnum {
6271
6269
  REVOKE_SUCCESS = "Consent to bank feeds has been revoked."
6272
6270
  }
6273
6271
 
6272
+ declare enum UserRolesEnum {
6273
+ FIRM_OWNER = "ROLE_FIRM_OWNER",
6274
+ FIRM_MANAGER = "ROLE_FIRM_MANAGER",
6275
+ FIRM_TOP_MANAGER = "ROLE_FIRM_TOP_MANAGER",
6276
+ CLIENT = "ROLE_CLIENT",
6277
+ EMPLOYEE = "ROLE_EMPLOYEE",
6278
+ ACCOUNTANT = "ROLE_ACCOUNTANT",
6279
+ ADVISOR = "ROLE_ADVISOR",
6280
+ USER = "ROLE_USER",
6281
+ SUBSCRIPTION = "ROLE_USER_SUBSCRIPTION",
6282
+ WORK_TANK = "ROLE_USER_WORK",
6283
+ PROPERTY_TANK = "ROLE_USER_PROPERTY",
6284
+ SOLE_TANK = "ROLE_USER_SOLE",
6285
+ HOLDING_TANK = "ROLE_USER_HOLDING",
6286
+ MONEY_TANK = "ROLE_USER_MONEY",
6287
+ SWITCH_USER = "IS_IMPERSONATOR"
6288
+ }
6289
+
6274
6290
  declare class BasiqUserService extends RestService$1<AbstractModel, BasiqUser, Collection<BasiqUser>> {
6275
6291
  protected endpointUri: string;
6276
6292
  modelClass: typeof BasiqUser;
6277
6293
  collectionClass: typeof Collection;
6278
6294
  disabledMethods: RestMethod[];
6295
+ roles: UserRolesEnum[];
6279
6296
  static basiqApiUrl: string;
6280
6297
  static basiqConsentUrl: string;
6281
6298
  basiqTokenService: BasiqTokenService;
@@ -6286,10 +6303,6 @@ declare class BasiqUserService extends RestService$1<AbstractModel, BasiqUser, C
6286
6303
  * Open basiq consent ui to allow user to log in to bank
6287
6304
  */
6288
6305
  redirectToBasiqConsent(bankId: string, basiqUserId: number): Observable<void>;
6289
- /**
6290
- * Open basiq consent ui to allow user to manage basiq access to his bank data
6291
- */
6292
- redirectToBasiqRevoke(basiqUserId: number): Observable<void>;
6293
6306
  /**
6294
6307
  * redirect to basiq extend consent date to prolong it
6295
6308
  */
@@ -6333,24 +6346,6 @@ declare class BankService extends RestService$1<Bank$1, Bank, Collection<Bank>>
6333
6346
  static ɵprov: i0.ɵɵInjectableDeclaration<BankService>;
6334
6347
  }
6335
6348
 
6336
- declare enum UserRolesEnum {
6337
- FIRM_OWNER = "ROLE_FIRM_OWNER",
6338
- FIRM_MANAGER = "ROLE_FIRM_MANAGER",
6339
- FIRM_TOP_MANAGER = "ROLE_FIRM_TOP_MANAGER",
6340
- CLIENT = "ROLE_CLIENT",
6341
- EMPLOYEE = "ROLE_EMPLOYEE",
6342
- ACCOUNTANT = "ROLE_ACCOUNTANT",
6343
- ADVISOR = "ROLE_ADVISOR",
6344
- USER = "ROLE_USER",
6345
- SUBSCRIPTION = "ROLE_USER_SUBSCRIPTION",
6346
- WORK_TANK = "ROLE_USER_WORK",
6347
- PROPERTY_TANK = "ROLE_USER_PROPERTY",
6348
- SOLE_TANK = "ROLE_USER_SOLE",
6349
- HOLDING_TANK = "ROLE_USER_HOLDING",
6350
- MONEY_TANK = "ROLE_USER_MONEY",
6351
- SWITCH_USER = "IS_IMPERSONATOR"
6352
- }
6353
-
6354
6349
  declare class BudgetService extends RestService$1<Budget$1, Budget, BudgetCollection> {
6355
6350
  modelClass: typeof Budget;
6356
6351
  collectionClass: typeof BudgetCollection;
@@ -11016,6 +11011,7 @@ declare class User extends ObservableModel {
11016
11011
 
11017
11012
  declare class BankConnection extends ObservableModel {
11018
11013
  static className: string;
11014
+ name?: string;
11019
11015
  externalId?: string;
11020
11016
  status?: BankConnectionStatusEnum;
11021
11017
  user?: User;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "2.0.110",
3
+ "version": "2.0.112",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.1.3",