taxtank-core 0.32.23 → 0.32.25
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/esm2022/lib/models/client/client-invite.mjs +4 -1
- package/esm2022/lib/models/registration-invite/registration-invite.mjs +4 -1
- package/esm2022/lib/services/account-setup/account-setup.service.mjs +2 -3
- package/esm2022/lib/services/http/rest/rest-old.service.mjs +5 -1
- package/esm2022/lib/services/http/rest/rest.service.mjs +8 -2
- package/esm2022/lib/services/http/user/user.service.mjs +2 -3
- package/fesm2022/taxtank-core.mjs +19 -4
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/models/client/client-invite.d.ts +1 -0
- package/lib/models/registration-invite/registration-invite.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4135,6 +4135,9 @@ var ClientInviteTypeEnum;
|
|
|
4135
4135
|
})(ClientInviteTypeEnum || (ClientInviteTypeEnum = {}));
|
|
4136
4136
|
|
|
4137
4137
|
class RegistrationInvite extends RegistrationInvite$1 {
|
|
4138
|
+
get fullName() {
|
|
4139
|
+
return `${this.firstName} ${this.lastName}`;
|
|
4140
|
+
}
|
|
4138
4141
|
}
|
|
4139
4142
|
__decorate([
|
|
4140
4143
|
Type(() => AppFile)
|
|
@@ -4218,6 +4221,9 @@ class ClientInvite extends ClientInvite$1 {
|
|
|
4218
4221
|
get firstName() {
|
|
4219
4222
|
return this.client ? this.client.firstName : this.registrationInvite?.firstName;
|
|
4220
4223
|
}
|
|
4224
|
+
get fullName() {
|
|
4225
|
+
return this.client ? this.client.fullName : this.registrationInvite?.fullName;
|
|
4226
|
+
}
|
|
4221
4227
|
get email() {
|
|
4222
4228
|
return this.client ? this.client.email : this.registrationInvite?.email;
|
|
4223
4229
|
}
|
|
@@ -10962,10 +10968,16 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10962
10968
|
if (!response[0]) {
|
|
10963
10969
|
return;
|
|
10964
10970
|
}
|
|
10971
|
+
if (method === 'delete') {
|
|
10972
|
+
response.forEach(() => {
|
|
10973
|
+
this.mpService.track(`${method} ${this.modelClass.name}${postfix}`);
|
|
10974
|
+
});
|
|
10975
|
+
return;
|
|
10976
|
+
}
|
|
10965
10977
|
// no other way to check interface
|
|
10966
10978
|
if ('getMpData' in response[0]) {
|
|
10967
10979
|
response.forEach((model) => {
|
|
10968
|
-
this.mpService.track(`${method}${this.modelClass.name}${postfix}`, model['getMpData'](mpData));
|
|
10980
|
+
this.mpService.track(`${method} ${this.modelClass.name}${postfix}`, model['getMpData'](mpData));
|
|
10969
10981
|
});
|
|
10970
10982
|
}
|
|
10971
10983
|
}
|
|
@@ -12557,6 +12569,7 @@ class RestService {
|
|
|
12557
12569
|
if (this.messageDeleted) {
|
|
12558
12570
|
this.toastService.success(this.messageDeleted);
|
|
12559
12571
|
}
|
|
12572
|
+
this.mpService.track(`DELETE ${this.modelClass.name}`);
|
|
12560
12573
|
}));
|
|
12561
12574
|
}
|
|
12562
12575
|
/**
|
|
@@ -12572,6 +12585,9 @@ class RestService {
|
|
|
12572
12585
|
if (this.messageDeletedBatch) {
|
|
12573
12586
|
this.toastService.success(this.messageDeletedBatch);
|
|
12574
12587
|
}
|
|
12588
|
+
models.forEach(() => {
|
|
12589
|
+
this.mpService.track(`DELETE ${this.modelClass.name}`);
|
|
12590
|
+
});
|
|
12575
12591
|
}));
|
|
12576
12592
|
}
|
|
12577
12593
|
/**
|
|
@@ -15504,8 +15520,7 @@ class UserService extends RestService$1 {
|
|
|
15504
15520
|
}));
|
|
15505
15521
|
}
|
|
15506
15522
|
register(data) {
|
|
15507
|
-
return this.http.post(`${this.apiUrl}/registration`, data)
|
|
15508
|
-
.pipe(map((user) => {
|
|
15523
|
+
return this.http.post(`${this.apiUrl}/registration`, data).pipe(map((user) => {
|
|
15509
15524
|
this.mpService.identify(user['id']);
|
|
15510
15525
|
return user;
|
|
15511
15526
|
}));
|
|
@@ -18127,7 +18142,7 @@ class AccountSetupService {
|
|
|
18127
18142
|
]).pipe(map(([employees, invites]) => {
|
|
18128
18143
|
// we always have at least 1 employee (firm owner), so we should check other employees except firm owner
|
|
18129
18144
|
if (employees.length) {
|
|
18130
|
-
employees
|
|
18145
|
+
employees.splice(0, 1);
|
|
18131
18146
|
}
|
|
18132
18147
|
return [...employees, ...invites];
|
|
18133
18148
|
}))));
|