@fragus/sam-types 1.0.80 → 1.0.81

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.80",
2
+ "version": "1.0.81",
3
3
  "name": "@fragus/sam-types",
4
4
  "description": "Typescript interfaces for all types used to communicate between SAM client(s) and the SAM API",
5
5
  "author": "Fragus",
@@ -27,15 +27,6 @@ export interface IContractFilterOptions {
27
27
  activeTypes: TContractObject[]
28
28
  }
29
29
 
30
- export interface IContractStatusCount {
31
- contractState: ContractState
32
- count: number
33
- }
34
-
35
- export interface IContractProductTypeCountResponse {
36
- [contractObjectType: string]: number
37
- }
38
-
39
30
  export interface IContractFilterParams {
40
31
  contractStates: ContractState[]
41
32
  contractObjectType: TContractObject // Renamed from contractProduct.
@@ -56,3 +47,12 @@ export interface IWarrantyFilterParams {
56
47
  created: IContractFilterDate
57
48
  expired: IContractFilterDate
58
49
  }
50
+
51
+ export interface IContractCountersResponse {
52
+ /** Count of contracts grouped by state (excludes Draft) */
53
+ perState: Partial<Record<ContractState, number>>
54
+ /** Number of Active contracts expiring within 90 days */
55
+ expiring: number
56
+ /** Number of Expired/Terminated contracts ready for settlement (action > 30 days ago) */
57
+ forSettlement: number
58
+ }
package/types/locale.d.ts CHANGED
@@ -22,3 +22,15 @@ export interface Locale {
22
22
  * @deprecated 'en-GB'
23
23
  */
24
24
  export type IsoLocale = 'da-DK' | 'sv-SE' | 'fi-FI' | 'nb-NO' | 'en' | 'en-GB' // NOTE: 'en-GB' is deprecated.
25
+
26
+ export interface LocaleRecord {
27
+ name: string
28
+ nameLocal: string
29
+ defaultFormat: {
30
+ currency?: string
31
+ date?: string
32
+ mileage?: string
33
+ }
34
+ }
35
+
36
+ export type LocaleRecords = Record<IsoLocale, LocaleRecord>