taxtank-core 0.32.91 → 0.32.93

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.
Files changed (26) hide show
  1. package/esm2022/lib/db/Models/firm/client-invite.mjs +1 -1
  2. package/esm2022/lib/forms/firm/client-movement.form.mjs +3 -3
  3. package/esm2022/lib/forms/firm/firm-invite.form.mjs +1 -1
  4. package/esm2022/lib/models/client/client-invite.mjs +1 -5
  5. package/esm2022/lib/models/holding/holding.mjs +4 -5
  6. package/esm2022/lib/services/http/bank/bank-connection/bank-connection.service.mjs +2 -2
  7. package/esm2022/lib/services/http/chat/message.service.mjs +2 -2
  8. package/esm2022/lib/services/http/firm/client-movement/client-movement-messages.enum.mjs +8 -0
  9. package/esm2022/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -2
  10. package/esm2022/lib/services/http/firm/client-movement/index.mjs +2 -1
  11. package/esm2022/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +2 -2
  12. package/esm2022/lib/services/http/subscription/service-subscription/subscription.service.mjs +2 -2
  13. package/fesm2022/taxtank-core.mjs +20 -15
  14. package/fesm2022/taxtank-core.mjs.map +1 -1
  15. package/lib/db/Models/firm/client-invite.d.ts +1 -2
  16. package/lib/forms/firm/firm-invite.form.d.ts +2 -2
  17. package/lib/models/client/client-invite.d.ts +0 -2
  18. package/lib/models/holding/holding.d.ts +0 -1
  19. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +0 -1
  20. package/lib/services/http/chat/message.service.d.ts +0 -1
  21. package/lib/services/http/firm/client-movement/client-movement-messages.enum.d.ts +6 -0
  22. package/lib/services/http/firm/client-movement/client-movement.service.d.ts +1 -0
  23. package/lib/services/http/firm/client-movement/index.d.ts +1 -0
  24. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts +0 -1
  25. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts +0 -1
  26. package/package.json +1 -1
@@ -5,7 +5,6 @@ import { RegistrationInvite } from '../user/registration-invite';
5
5
  import { ObservableModel } from '../observable-model';
6
6
  import { FirmBranchInterface } from '../../../models/firm/firm-branch.interface';
7
7
  import { Firm } from './firm';
8
- import { Address } from '../address';
9
8
  export declare class ClientInvite extends ObservableModel {
10
9
  static className: string;
11
10
  type?: ClientInviteTypeEnum;
@@ -15,7 +14,7 @@ export declare class ClientInvite extends ObservableModel {
15
14
  employee?: User;
16
15
  client?: User;
17
16
  registrationInvite?: RegistrationInvite;
18
- address?: Address;
17
+ address?: string;
19
18
  firm?: Firm;
20
19
  firmBranch?: FirmBranchInterface;
21
20
  }
@@ -1,8 +1,8 @@
1
1
  import { FormControl, FormGroup } from '@angular/forms';
2
2
  import { AbstractForm, ControlsInterface } from '../abstract.form';
3
- import { Address, ClientInvite } from '../../models';
3
+ import { ClientInvite } from '../../models';
4
4
  interface ClientInvitePutControlsInterface extends ControlsInterface {
5
- address: FormControl<Address>;
5
+ address: FormControl<string>;
6
6
  registrationInvite: FormGroup<{
7
7
  firstName: FormControl<string>;
8
8
  lastName: FormControl<string>;
@@ -2,14 +2,12 @@ import { ClientInvite as ClientInviteBase } from '../../db/Models/firm/client-in
2
2
  import { RegistrationInvite } from '../registration-invite/registration-invite';
3
3
  import { User } from '../user';
4
4
  import { Firm, FirmBranch } from '../firm';
5
- import { Address } from '../address';
6
5
  export declare class ClientInvite extends ClientInviteBase {
7
6
  sentOn: Date;
8
7
  updatedAt: Date;
9
8
  client: User;
10
9
  employee: User;
11
10
  registrationInvite: RegistrationInvite;
12
- address: Address;
13
11
  firm: Firm;
14
12
  firmBranch: FirmBranch;
15
13
  /**
@@ -28,7 +28,6 @@ export declare class Holding extends AbstractModel {
28
28
  get purchaseValue(): number;
29
29
  /**
30
30
  * Get current market price
31
- * @TODO vik/alex no need to pass holdingType, should come from backend
32
31
  */
33
32
  get marketValue(): number;
34
33
  /**
@@ -15,7 +15,6 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
15
15
  collectionClass: typeof Collection;
16
16
  endpointUri: string;
17
17
  disabledMethods: RestMethod[];
18
- mercureTopic: string;
19
18
  constructor(environment: any);
20
19
  listenEvents(): void;
21
20
  /**
@@ -13,7 +13,6 @@ export declare class MessageService extends RestService<MessageBase, Message, Me
13
13
  collectionClass: typeof MessageCollection;
14
14
  endpointUri: string;
15
15
  disabledMethods: RestMethod[];
16
- mercureTopic: string;
17
16
  constructor(environment: any);
18
17
  listenEvents(): void;
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
@@ -0,0 +1,6 @@
1
+ export declare enum ClientMovementMessagesEnum {
2
+ CREATED = "Client accepted",
3
+ UPDATED = "Client transferred",
4
+ DELETED = "Client deleted",
5
+ CONFIRM_DELETE = "Are you sure you want to delete this client?"
6
+ }
@@ -20,6 +20,7 @@ export declare class ClientMovementService extends RestService<ClientMovementBas
20
20
  getTTAdvisor(): Observable<ClientMovement>;
21
21
  getActiveByFirmType(type: FirmTypeEnum): Observable<ClientMovementCollection>;
22
22
  /**
23
+ * @TODO use simple put when backend refactored (inner movements shouldn't create a new movement)
23
24
  * Method is using for transfer client between employees.
24
25
  * On backend we close passed movement and create a new one instead
25
26
  */
@@ -1 +1,2 @@
1
1
  export * from './client-movement.service';
2
+ export * from './client-movement-messages.enum';
@@ -10,7 +10,6 @@ export declare class ServicePaymentMethodService extends RestService<ServicePaym
10
10
  protected endpointUri: string;
11
11
  collectionClass: typeof Collection;
12
12
  modelClass: typeof ServicePaymentMethod;
13
- mercureTopic: string;
14
13
  constructor(environment: any);
15
14
  listenEvents(): void;
16
15
  /**
@@ -16,7 +16,6 @@ export declare class SubscriptionService extends RestService<ServiceSubscription
16
16
  modelClass: typeof ServiceSubscription;
17
17
  collectionClass: typeof ServiceSubscriptionCollection;
18
18
  disabledMethods: RestMethod[];
19
- mercureTopic: string;
20
19
  constructor(http: HttpClient, environment: any);
21
20
  listenEvents(): void;
22
21
  startTrial(subscription: ServiceSubscription): Observable<ServiceSubscription>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.32.91",
3
+ "version": "0.32.93",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",