taxtank-core 0.31.53 → 0.31.55
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/esm2020/lib/collections/collection.mjs +5 -2
- package/esm2020/lib/models/client/client-invite.mjs +2 -2
- package/esm2020/lib/models/dictionary/dictionary.mjs +1 -1
- package/esm2020/lib/services/http/income-source/income-source-messages.enum.mjs +10 -0
- package/esm2020/lib/services/http/income-source/index.mjs +2 -1
- package/fesm2015/taxtank-core.mjs +15 -2
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +15 -2
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/collection.d.ts +3 -0
- package/lib/models/client/client-invite.d.ts +1 -1
- package/lib/services/http/income-source/income-source-messages.enum.d.ts +8 -0
- package/lib/services/http/income-source/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -51,6 +51,9 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
|
|
|
51
51
|
diff(items: Model[]): this;
|
|
52
52
|
minBy(path: string): Model;
|
|
53
53
|
maxBy(path: string): Model;
|
|
54
|
+
/**
|
|
55
|
+
* float math issues https://stackoverflow.com/questions/12511057/float-sum-with-javascript
|
|
56
|
+
*/
|
|
54
57
|
reduce(callback: (sum: number, item: Model) => number, init?: number): number;
|
|
55
58
|
slice(from: number, to: number): this;
|
|
56
59
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientInvite as ClientInviteBase } from '../../db/Models/firm/client-invite';
|
|
2
2
|
import { RegistrationInvite } from '../registration-invite/registration-invite';
|
|
3
3
|
import { Firm } from '../firm/firm';
|
|
4
|
-
import { User } from '../user
|
|
4
|
+
import { User } from '../user';
|
|
5
5
|
export declare class ClientInvite extends ClientInviteBase {
|
|
6
6
|
sentOn: Date;
|
|
7
7
|
updatedAt: Date;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum IncomeSourceMessagesEnum {
|
|
2
|
+
CREATED = "Employment details have been created",
|
|
3
|
+
UPDATED = "Employment details have been updated.",
|
|
4
|
+
DELETED = "This employer, and the related forecasts, have been deleted.",
|
|
5
|
+
CLOSE_ERROR = "End date can`t be before your final payment, please enter a date on or after the xx/xx/xxxx",
|
|
6
|
+
DELETE_CONFIRM = "Are you sure you want to delete employer?",
|
|
7
|
+
DELETE_ERROR = "You have received payments from this employer so it cannot be deleted. Instead please select the edit icon and add an end date."
|
|
8
|
+
}
|