taxtank-core 0.29.17 → 0.29.19

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 (65) hide show
  1. package/bundles/taxtank-core.umd.js +135 -32
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/subscription/index.js +4 -1
  4. package/esm2015/lib/collections/subscription/service-price.collection.js +7 -0
  5. package/esm2015/lib/collections/subscription/service-product.collection.js +8 -0
  6. package/esm2015/lib/collections/subscription/service-subscription.collection.js +17 -1
  7. package/esm2015/lib/collections/subscription/subscription-item.collection.js +4 -1
  8. package/esm2015/lib/models/endpoint/endpoints.const.js +3 -1
  9. package/esm2015/lib/models/index.js +2 -1
  10. package/esm2015/lib/models/service-subscription/index.js +6 -0
  11. package/esm2015/lib/models/service-subscription/service-product.js +6 -1
  12. package/esm2015/lib/models/service-subscription/service-subscription.js +12 -2
  13. package/esm2015/lib/services/http/subscription/index.js +2 -1
  14. package/esm2015/lib/services/http/subscription/service-price/service-price.service.js +8 -5
  15. package/esm2015/lib/services/http/subscription/service-product/service-product.service.js +24 -0
  16. package/esm2015/lib/services/http/subscription/service-subscription/subscription.service.js +14 -6
  17. package/fesm2015/taxtank-core.js +104 -28
  18. package/fesm2015/taxtank-core.js.map +1 -1
  19. package/lib/collections/subscription/index.d.ts +3 -0
  20. package/lib/collections/subscription/service-price.collection.d.ts +5 -0
  21. package/lib/collections/subscription/service-product.collection.d.ts +5 -0
  22. package/lib/collections/subscription/service-subscription.collection.d.ts +4 -0
  23. package/lib/collections/subscription/subscription-item.collection.d.ts +2 -1
  24. package/lib/forms/bank/bank-login.form.d.ts.map +1 -0
  25. package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
  26. package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
  27. package/lib/forms/depreciation/index.d.ts.map +1 -0
  28. package/lib/forms/form-validations.enum.d.ts.map +1 -0
  29. package/lib/forms/index.d.ts.map +1 -0
  30. package/lib/forms/login/login.form.d.ts.map +1 -0
  31. package/lib/forms/phone/index.d.ts.map +1 -0
  32. package/lib/forms/phone/phone.form.d.ts.map +1 -0
  33. package/lib/forms/property/index.d.ts.map +1 -0
  34. package/lib/forms/register/register-client.form.d.ts.map +1 -0
  35. package/lib/forms/register/register-firm.form.d.ts.map +1 -0
  36. package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
  37. package/lib/forms/sole/index.d.ts.map +1 -0
  38. package/lib/forms/transaction/index.d.ts.map +1 -0
  39. package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
  40. package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
  41. package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
  42. package/lib/forms/transaction/work-income.form.d.ts.map +1 -0
  43. package/lib/forms/user/index.d.ts.map +1 -0
  44. package/lib/forms/user/password.form.d.ts.map +1 -0
  45. package/lib/forms/user/reset-password.form.d.ts.map +1 -0
  46. package/lib/forms/user/user-invite.form.d.ts.map +1 -0
  47. package/lib/forms/vehicle/index.d.ts.map +1 -0
  48. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
  49. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
  50. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
  51. package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
  52. package/lib/models/index.d.ts +1 -0
  53. package/lib/models/service-subscription/index.d.ts +5 -0
  54. package/lib/models/service-subscription/service-subscription.d.ts +4 -0
  55. package/lib/services/http/subscription/index.d.ts +1 -0
  56. package/lib/services/http/subscription/service-price/service-price.service.d.ts +9 -6
  57. package/lib/services/http/subscription/service-product/service-product.service.d.ts +14 -0
  58. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts +3 -3
  59. package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
  60. package/lib/validators/date-range.validator.d.ts.map +1 -0
  61. package/lib/validators/phone-number.validator.d.ts.map +1 -0
  62. package/lib/validators/required-length.validator.d.ts.map +1 -0
  63. package/package.json +1 -1
  64. package/public-api.d.ts.map +1 -0
  65. package/taxtank-core.d.ts.map +1 -0
@@ -1 +1,4 @@
1
+ export * from './service-price.collection';
2
+ export * from './service-product.collection';
1
3
  export * from './service-subscription.collection';
4
+ export * from './subscription-item.collection';
@@ -0,0 +1,5 @@
1
+ import { Collection } from '../collection';
2
+ import { ServicePrice } from '../../models';
3
+ export declare class ServicePriceCollection extends Collection<ServicePrice> {
4
+ getActive(): this;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Collection } from '../collection';
2
+ import { ServiceProduct } from '../../models';
3
+ export declare class ServiceProductCollection extends Collection<ServiceProduct> {
4
+ getActive(): this;
5
+ }
@@ -1,6 +1,7 @@
1
1
  import { Collection } from '../collection';
2
2
  import { ServiceSubscription } from '../../models/service-subscription/service-subscription';
3
3
  import { SubscriptionItemCollection } from './subscription-item.collection';
4
+ import { Dictionary, ServiceProduct } from '../../models';
4
5
  export declare class ServiceSubscriptionCollection extends Collection<ServiceSubscription> {
5
6
  getActive(): this;
6
7
  getTrials(): this;
@@ -9,4 +10,7 @@ export declare class ServiceSubscriptionCollection extends Collection<ServiceSub
9
10
  getPaid(): this;
10
11
  getActivePaid(): ServiceSubscription;
11
12
  getItems(): SubscriptionItemCollection;
13
+ groupByProduct(products: Collection<ServiceProduct>): Dictionary<ServiceSubscription>;
14
+ findByProduct(product: ServiceProduct): ServiceSubscription;
15
+ hasPropertyTank(): boolean;
12
16
  }
@@ -1,6 +1,7 @@
1
1
  import { Collection } from '../collection';
2
- import { ServiceSubscriptionItem } from '../../models/service-subscription/service-subscription-item';
2
+ import { ServiceProduct, ServiceSubscriptionItem } from '../../models';
3
3
  export declare class SubscriptionItemCollection extends Collection<ServiceSubscriptionItem> {
4
4
  get propertiesItem(): ServiceSubscriptionItem;
5
5
  get propertyQuantity(): number;
6
+ hasProduct(product: ServiceProduct): boolean;
6
7
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank-login.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/bank/bank-login.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE;;;GAGG;AACH,qBAAa,aAAc,SAAQ,YAAY,CAAC,aAAa,CAAC;IAE1D,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,cAAc;CASrC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-income-types.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/client/client-income-types.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAI5E,qBAAa,qBAAsB,SAAQ,YAAY,CAAC,iBAAiB,CAAC;IAC5D,OAAO,CAAC,iBAAiB;gBAAjB,iBAAiB,GAAE,iBAAuD;CAS/F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depreciation.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/depreciation/depreciation.form.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAiB,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3D,qBAAa,gBAAiB,SAAQ,mBAAmB,CAAC,YAAY,CAAC;gBACzD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,OAAO;IAoCjE,MAAM,CAAC,IAAI,GAAE,MAAW,EAAE,qBAAqB,GAAE,OAAe,GAAG,YAAY;CAGhF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/depreciation/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-validations.enum.d.ts","sourceRoot":"","sources":["../../../../projects/tt-core/src/lib/forms/form-validations.enum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,gBAAgB,KAAK;IACrB,eAAe,MAAM;IACrB,aAAa,UAAU;IAEvB,mBAAmB,mEAAmE;CACvF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../projects/tt-core/src/lib/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WAAW,CAAC;AAE1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,kDAAkD,CAAC;AACjE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wBAAwB,CAAC;AAGvC,cAAc,mCAAmC,CAAC;AAElD,cAAc,oBAAoB,CAAC;AAEnC,cAAc,SAAS,CAAC;AAExB,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,QAAQ,CAAC;AAEvB,cAAc,YAAY,CAAC;AAE3B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/login/login.form.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBAAa,SAAU,SAAQ,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CAAC;;CAO7E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/phone/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/phone/phone.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAMjD,qBAAa,SAAU,SAAQ,YAAY,CAAC,KAAK,CAAC;gBAG9C,KAAK,CAAC,EAAE,KAAK;CAQhB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/property/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-client.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/register/register-client.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,qBAAa,kBAAmB,SAAQ,YAAY,CAAC,IAAI,CAAC;gBAEtD,aAAa,CAAC,EAAE,MAAM;IAWxB,MAAM,CAAC,IAAI,GAAE,MAAW,GAAG,IAAI;CAGhC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-firm.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/register/register-firm.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,qBAAa,gBAAiB,SAAQ,YAAY,CAAC,IAAI,CAAC;IAEpD,OAAO,CAAC,QAAQ;gBAAR,QAAQ,EAAE,YAAY,EAC9B,aAAa,CAAC,EAAE,MAAM;IAWxB,MAAM,CAAC,IAAI,GAAE,MAAW,GAAG,IAAI;CAGhC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bas-report.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/sole/bas-report.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAC,+BAA+B,EAAE,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAC,sBAAsB,EAAC,MAAM,2CAA2C,CAAC;AAEjF;;;GAGG;AACH,qBAAa,aAAc,SAAQ,YAAY,CAAC,SAAS,CAAC;IAC5C,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,+BAA+B,EAAE,aAAa,EAAE,sBAAsB;IAoD/J,MAAM,CAAC,IAAI,GAAE,MAAW,GAAG,SAAS;CAGrC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/sole/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/transaction/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.enum.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/transaction/messages.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,qBAAqB,yFAAyF;CAC/G"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-base.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/transaction/transaction-base.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAA0B,MAAM,gBAAgB,CAAC;AAExE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAK/E;;;GAGG;AACH,qBAAa,mBAAmB,CAAC,KAAK,SAAS,eAAe,CAAE,SAAQ,YAAY,CAAC,KAAK,CAAC;IACzF,gBAAgB,EAAE,OAAO,CAAC;gBAEd,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,GAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAA;KAAM;IA6B1G,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,kBAAkB;IAO1B,kBAAkB,IAAI,IAAI;IAkB1B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,eAAe;IAIvB,OAAO,KAAK,MAAM,GAEjB;IAED,OAAO,KAAK,aAAa,GAExB;IAED,OAAO,KAAK,KAAK,GAEhB;IAED;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;CAY3B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/transaction/transaction.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,qBAAqB,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,EAAC,eAAe,EAAgD,MAAM,gBAAgB,CAAC;AAK9F,qBAAa,eAAgB,SAAQ,mBAAmB,CAAC,WAAW,CAAC;gBACvD,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,EAAE,QAAQ,GAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAA;KAAM;IA4BtJ,qBAAqB,CAAC,WAAW,GAAE,WAA2C,GAAG,IAAI;IAUrF,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI7C;;;OAGG;IACH,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,EAAE;IAgB1D,MAAM,CAAC,IAAI,GAAE,MAAW,GAAG,WAAW;CAGvC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"work-income.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/transaction/work-income.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAGL,WAAW,EACX,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AAMzE,qBAAa,cAAe,SAAQ,eAAgB,YAAW,cAAc;gBAC/D,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE;IA0CrG,YAAY;IAKZ,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,cAAc;IAItB,kBAAkB,IAAI,IAAI;IAqB1B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAezB;;;;;;OAMG;IACH,SAAS,IAAI,MAAM;IAMnB,MAAM,CAAC,IAAI,GAAE,MAAW,GAAG,WAAW;CAGvC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/user/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/user/password.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD,qBAAa,YAAa,SAAQ,YAAY,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,CAAC;;CAOlF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-password.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/user/reset-password.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIhD,qBAAa,iBAAkB,SAAQ,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;;CAMnE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-invite.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/user/user-invite.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAI1F;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY,CAAC,kBAAkB,CAAC;;CASnE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/vehicle/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vehicle-claim-details.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/vehicle/vehicle-claim-details.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,YAAY,CAAC,mBAAmB,CAAC;gBAE1E,mBAAmB,EAAE,mBAAmB,EACxC,iBAAiB,EAAE,OAAO;CAU7B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vehicle-claim.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/vehicle/vehicle-claim.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY,CAAC,YAAY,CAAC;IAM5D,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,OAAO;IANjB;;;OAGG;gBAEO,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,mBAAmB;IActC,mBAAmB,IAAI,MAAM;CAG9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vehicle-logbook.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/vehicle/vehicle-logbook.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7D;;;;;;GAMG;AACH,qBAAa,kBAAmB,SAAQ,YAAY,CAAC,cAAc,CAAC;IAQhE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,QAAQ;IARlB,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAM;IAEzC;;;OAGG;gBAEO,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,wBAAwB;IAc5C;;OAEG;IACH,OAAO,CAAC,wBAAwB;CA4BjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vehicle.form.d.ts","sourceRoot":"","sources":["../../../../../projects/tt-core/src/lib/forms/vehicle/vehicle.form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC;;GAEG;AACH,qBAAa,WAAY,SAAQ,YAAY,CAAC,OAAO,CAAC;IAIlD,OAAO,CAAC,OAAO;IAHjB,MAAM,CAAC,aAAa,EAAE,MAAM,CAAM;gBAGxB,OAAO,GAAE,OAAmC;CAMvD"}
@@ -10,6 +10,7 @@ export * from './file';
10
10
  export * from './financial-year';
11
11
  export * from './loan';
12
12
  export * from './notification';
13
+ export * from './service-subscription';
13
14
  export * from './sole';
14
15
  export * from './vehicle';
15
16
  export * from './document';
@@ -0,0 +1,5 @@
1
+ export * from './service-payment';
2
+ export * from './service-price';
3
+ export * from './service-product';
4
+ export * from './service-subscription';
5
+ export * from './service-subscription-item';
@@ -1,11 +1,13 @@
1
1
  import { ServiceSubscription as ServiceSubscriptionBase } from '../../db/Models/subscription/service-subscription';
2
2
  import { ServiceSubscriptionItem } from './service-subscription-item';
3
+ import { ServiceProduct } from './service-product';
3
4
  export declare class ServiceSubscription extends ServiceSubscriptionBase {
4
5
  startDate: Date;
5
6
  endDate: Date;
6
7
  items: ServiceSubscriptionItem[];
7
8
  lastTrialDays: number;
8
9
  get isTrial(): boolean;
10
+ get isPaid(): boolean;
9
11
  get price(): number;
10
12
  /**
11
13
  * get title of subscription
@@ -27,6 +29,7 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
27
29
  */
28
30
  get workTankItem(): ServiceSubscriptionItem;
29
31
  get soleTankItem(): ServiceSubscriptionItem;
32
+ get propertyTankItem(): ServiceSubscriptionItem;
30
33
  hasPropertyTank(): boolean;
31
34
  hasWorkTank(): boolean;
32
35
  /**
@@ -42,6 +45,7 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
42
45
  * Check if current subscription has provided subscription item
43
46
  */
44
47
  hasItem(itemToCheck: ServiceSubscriptionItem): boolean;
48
+ hasProduct(product: ServiceProduct): boolean;
45
49
  /**
46
50
  * Recommended number of properties to buy,
47
51
  * based on the property service product and the number of properties the user has
@@ -1,3 +1,4 @@
1
1
  export * from './service-price/service-price.service';
2
2
  export * from './service-payment/service-payment.service';
3
3
  export * from './service-subscription/subscription.service';
4
+ export * from './service-product/service-product.service';
@@ -1,14 +1,17 @@
1
- import { ServicePrice as ServicePriceBase } from '../../../../db/Models/subscription/service-price';
2
- import { ServicePrice } from '../../../../models/service-subscription/service-price';
3
- import { RestService } from '../../rest/rest-old.service';
1
+ import { ServicePrice as ServicePriceBase } from '../../../../db/Models';
2
+ import { ServicePrice } from '../../../../models';
3
+ import { RestMethod, RestService } from '../../rest';
4
+ import { ServicePriceCollection } from '../../../../collections';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
6
7
  * Service that handling banks logic
7
8
  */
8
- export declare class ServicePriceService extends RestService<ServicePriceBase, ServicePrice> {
9
+ export declare class ServicePriceService extends RestService<ServicePriceBase, ServicePrice, ServicePriceCollection> {
10
+ protected endpointUri: string;
9
11
  modelClass: typeof ServicePrice;
10
- url: string;
11
- isHydra: boolean;
12
+ isApiPlatform: boolean;
13
+ collectionClass: typeof ServicePriceCollection;
14
+ disabledMethods: RestMethod[];
12
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ServicePriceService, never>;
13
16
  static ɵprov: i0.ɵɵInjectableDeclaration<ServicePriceService>;
14
17
  }
@@ -0,0 +1,14 @@
1
+ import { RestMethod, RestService } from '../../rest';
2
+ import { ServiceProduct as ServiceProductBase } from '../../../../db/Models';
3
+ import { ServiceProduct } from '../../../../models';
4
+ import { ServiceProductCollection } from '../../../../collections';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ServiceProductService extends RestService<ServiceProductBase, ServiceProduct, ServiceProductCollection> {
7
+ collectionClass: typeof ServiceProductCollection;
8
+ modelClass: typeof ServiceProduct;
9
+ protected endpointUri: string;
10
+ disabledMethods: RestMethod[];
11
+ isApiPlatform: boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ServiceProductService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<ServiceProductService>;
14
+ }
@@ -2,7 +2,6 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ServiceSubscription } from '../../../../models/service-subscription/service-subscription';
4
4
  import { EventDispatcherService, SseService } from '../../../event';
5
- import { ServiceSubscriptionItem } from '../../../../models/service-subscription/service-subscription-item';
6
5
  import { ToastService } from '../../../toast';
7
6
  import { RestMethod, RestService } from '../../rest';
8
7
  import { ServiceSubscription as ServiceSubscriptionBase } from '../../../../db/Models';
@@ -23,6 +22,7 @@ export declare class SubscriptionService extends RestService<ServiceSubscription
23
22
  collectionClass: typeof ServiceSubscriptionCollection;
24
23
  disabledMethods: RestMethod[];
25
24
  constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, sseService: SseService, toastService: ToastService, environment: any);
25
+ startTrial(subscription: ServiceSubscription): Observable<ServiceSubscription>;
26
26
  getActive(): Observable<ServiceSubscriptionCollection>;
27
27
  getTrials(): Observable<ServiceSubscriptionCollection>;
28
28
  getActiveTrials(): Observable<ServiceSubscriptionCollection>;
@@ -37,11 +37,11 @@ export declare class SubscriptionService extends RestService<ServiceSubscription
37
37
  /**
38
38
  * Get difference between current subscription and selected new subscription
39
39
  */
40
- getProrationCost(items: ServiceSubscriptionItem[]): Observable<number>;
40
+ getProrationCost(subscription: ServiceSubscription): Observable<number>;
41
41
  /**
42
42
  * Change subscription plan
43
43
  */
44
- changeSubscription(items: ServiceSubscriptionItem[]): Observable<object>;
44
+ changeSubscription(subscription: ServiceSubscription): Observable<object>;
45
45
  private listenSubscriptions;
46
46
  static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionService, never>;
47
47
  static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionService>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"at-least-one-enabled.validator.d.ts","sourceRoot":"","sources":["../../../../projects/tt-core/src/lib/validators/at-least-one-enabled.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2D,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEtG;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,CAMzE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-range.validator.d.ts","sourceRoot":"","sources":["../../../../projects/tt-core/src/lib/validators/date-range.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE5E;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,WAAW,CAqB9E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-number.validator.d.ts","sourceRoot":"","sources":["../../../../projects/tt-core/src/lib/validators/phone-number.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI1D;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,CAIlD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"required-length.validator.d.ts","sourceRoot":"","sources":["../../../../projects/tt-core/src/lib/validators/required-length.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE1D;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAQnE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.29.17",
3
+ "version": "0.29.19",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../projects/tt-core/src/public-api.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,cAAc,sBAAsB,CAAC;AAErC;;GAEG;AACH,cAAc,mBAAmB,CAAC;AAElC;;GAEG;AACH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8CAA8C,CAAC;AAE7D,cAAc,kEAAkE,CAAC;AAEjF;;GAEG;AACH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kCAAkC,CAAC;AAEjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAE1D,cAAc,4DAA4D,CAAC;AAC3E,cAAc,uDAAuD,CAAC;AACtE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,mEAAmE,CAAC;AAClF,cAAc,gEAAgE,CAAC;AAC/E,cAAc,0EAA0E,CAAC;AACzF,cAAc,wEAAwE,CAAC;AACvF,cAAc,wDAAwD,CAAC;AACvE,cAAc,iEAAiE,CAAC;AAChF,cAAc,iEAAiE,CAAC;AAChF,cAAc,wDAAwD,CAAC;AACvE,cAAc,iCAAiC,CAAC;AAEhD,cAAc,uDAAuD,CAAC;AACtE,cAAc,kEAAkE,CAAC;AACjF,cAAc,0DAA0D,CAAC;AAEzE,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sDAAsD,CAAC;AACrE,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;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