@fragus/sam-types 1.0.43 → 1.0.45

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.43",
2
+ "version": "1.0.45",
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",
@@ -17,7 +17,7 @@ export interface IContractCalculationRequest {
17
17
  providerPayments: number
18
18
  providerShare: number
19
19
  registrationDate: string
20
- registrationNumber: string
20
+ registrationNumber: string | null
21
21
  serviceVariantId: string
22
22
  type: ContractType
23
23
  valueType: ContractValueType
@@ -13,7 +13,7 @@ export interface IEssentialVehicle {
13
13
  registrationDate: Date | string
14
14
  modelYear: number
15
15
  vin: string
16
- registrationNumber: string
16
+ registrationNumber: string | null
17
17
  brandName: string
18
18
  modelName: string
19
19
  fuelTypeName: string
@@ -95,6 +95,7 @@ export interface IContractProviderListItemResponse {
95
95
  disableContractTemplates: boolean
96
96
  fragusContactPersonName: string | null
97
97
  isAllowContractsWithoutVehiclePriceModel: boolean
98
+ isForceEnableCustomContract: boolean
98
99
  isShowLogoOnWeb: boolean
99
100
  isUseWhiteBGOnWeb: boolean
100
101
  isUsingV4PricingTool: boolean
@@ -184,14 +185,3 @@ export interface IContractProviderOverviewDetails {
184
185
  isAllowContractsWithoutVehiclePriceModel: boolean
185
186
  stripeForeignId?: string
186
187
  }
187
-
188
- export interface IPaginatedContractProviderListResponse {
189
- data: IContractProviderListItemResponse[]
190
- nextCursor: number | null
191
- }
192
-
193
- export interface IShallowContractProviderResponse {
194
- contractProviderId: number
195
- administrativeName: string
196
- parentProviderId: number | null
197
- }
@@ -14,7 +14,7 @@ import { VehicleContracts } from './vehicleContracts'
14
14
  export interface Vehicle {
15
15
  id?: number
16
16
  vin?: string
17
- regNumber?: string
17
+ regNumber: string | null
18
18
  regDate?: string
19
19
  brand: Brand
20
20
  model: Model
@@ -60,7 +60,7 @@ export interface Vehicle {
60
60
  export interface IVehicleInfo {
61
61
  // Here we implement based on a lookup on BG64770
62
62
  vehicleRegistryId?: number
63
- registration: string // registration: 'BG64770',
63
+ registration: string | null // registration: 'BG64770',
64
64
  vin: string // vin: 'VF3CCHMZ6GT105374',
65
65
  // type: string // NOTE: Not same as vehicleType, this is vehicle type description like 'GTE Plug-In Hybrid 150 kW (204 hv) DSG-automaatti 4-ovinen'.
66
66
  // @note param "type" renamed to "versionModelType" to avoid confusion with vehicleType