taxtank-core 0.23.8 → 0.24.0
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/bundles/taxtank-core.umd.js +57 -13
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/forms/index.js +2 -3
- package/esm2015/lib/forms/user/index.js +4 -0
- package/esm2015/lib/forms/user/user-invite.form.js +16 -0
- package/esm2015/lib/models/service-subscription/service-subscription.js +11 -4
- package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +23 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/taxtank-core.js +51 -14
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/forms/index.d.ts +1 -2
- package/lib/forms/user/index.d.ts +3 -0
- package/lib/forms/user/user-invite.form.d.ts +8 -0
- package/lib/models/service-subscription/service-subscription.d.ts +5 -2
- package/lib/services/http/user/users-invite/users-invite.service.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/forms/index.d.ts
CHANGED
|
@@ -10,8 +10,7 @@ export * from './client/client-income-types.form';
|
|
|
10
10
|
export * from './login/login.form';
|
|
11
11
|
export * from './register/register-client.form';
|
|
12
12
|
export * from './register/register-firm.form';
|
|
13
|
-
export * from './user
|
|
14
|
-
export * from './user/reset-password.form';
|
|
13
|
+
export * from './user';
|
|
15
14
|
export * from './vehicle/vehicle.form';
|
|
16
15
|
export * from './vehicle/vehicle-claim.form';
|
|
17
16
|
export * from './report/my-tax';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractForm } from '../abstract.form';
|
|
2
|
+
import { RegistrationInvite } from '../../models/registration-invite/registration-invite';
|
|
3
|
+
/**
|
|
4
|
+
* Form for inviting an unregistered user
|
|
5
|
+
*/
|
|
6
|
+
export declare class UserInviteForm extends AbstractForm<RegistrationInvite> {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
@@ -22,8 +22,7 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
|
|
|
22
22
|
*/
|
|
23
23
|
get description(): string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* and for user we add check for endDate
|
|
25
|
+
* A subscription is considered active if the end date has not yet arrived and its status is "Active" or "Past due"
|
|
27
26
|
*/
|
|
28
27
|
get isActive(): boolean;
|
|
29
28
|
get daysRemain(): number;
|
|
@@ -62,4 +61,8 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
|
|
|
62
61
|
* impossible to update, only prolong or buy new
|
|
63
62
|
*/
|
|
64
63
|
isArchived(): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Case when payment was failed, but user has a time to update payment method
|
|
66
|
+
*/
|
|
67
|
+
isPastDue(): boolean;
|
|
65
68
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RestService } from '../../rest/rest.service';
|
|
2
|
+
import { RegistrationInvite as RegistrationInviteBase } from '../../../../db/Models/user/registration-invite';
|
|
3
|
+
import { RegistrationInvite } from '../../../../models/registration-invite/registration-invite';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Service to work with invitations for unregistered users
|
|
7
|
+
*/
|
|
8
|
+
export declare class UsersInviteService extends RestService<RegistrationInviteBase, RegistrationInvite> {
|
|
9
|
+
modelClass: typeof RegistrationInvite;
|
|
10
|
+
url: string;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersInviteService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UsersInviteService>;
|
|
13
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -367,6 +367,7 @@ export * from './lib/services/http/user/user.service';
|
|
|
367
367
|
export * from './lib/services/user/user-switcher.service';
|
|
368
368
|
export * from './lib/services/http/user/user-event-setting/user-event-setting.service';
|
|
369
369
|
export * from './lib/services/http/user/user-event-type/user-event-type.service';
|
|
370
|
+
export * from './lib/services/http/user/users-invite/users-invite.service';
|
|
370
371
|
export * from './lib/services/http/vehicle/vehicle.service';
|
|
371
372
|
export * from './lib/services/http/vehicle/vehicle-claim.service';
|
|
372
373
|
export * from './lib/services/http/vehicle/vehicle-logbook.service';
|