@fragus/sam-types 1.0.25 → 1.0.28

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.25",
2
+ "version": "1.0.28",
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,3 +17,8 @@ export interface IUserListRecord {
17
17
  localeCode?: string
18
18
  departmentName?: string
19
19
  }
20
+
21
+ export interface IUserListRecordWithProvider extends IUserListRecord {
22
+ providerId: number
23
+ providerName: string
24
+ }
@@ -1,16 +1,20 @@
1
1
  export interface IBlacklistedVehicleRequest {
2
- id?: number
3
- brand: string
4
- model: string
5
- fuelType: string
2
+ id?: number
3
+ brand: string
4
+ model: string
5
+ fuelType: string
6
6
  }
7
7
 
8
8
  export interface IBlacklistedVehicleResponse {
9
- id: number
10
- brand: string
11
- model: string
12
- fuelType: string
13
- parentRecord?: boolean
9
+ id: number
10
+ brand: string
11
+ model: string
12
+ fuelType: string
13
+ }
14
+
15
+ export interface IBlacklistedVehicleListRecord extends IBlacklistedVehicleResponse {
16
+ providerId: number
17
+ providerName: string
14
18
  }
15
19
 
16
20
  export type BlacklistedVehicleOrderByType = keyof IBlacklistedVehicleRequest
@@ -1,12 +1,8 @@
1
1
  /**
2
2
  * Used in Superadmin for Warranty Expiration Conditions text management
3
3
  */
4
- export interface WarrantyExpirationConditionResponse {
5
- /**
6
- * Unique ID of the condition text entry
7
- * (primary key)
8
- */
9
- conditionTextId: number
4
+
5
+ export interface WarrantyExpirationConditionRequest {
10
6
  /**
11
7
  * The actual text of the condition that will be shown in PDF
12
8
  */
@@ -21,6 +17,14 @@ export interface WarrantyExpirationConditionResponse {
21
17
  * Used to link the condition text to the correct ServiceContract
22
18
  */
23
19
  v4ProductId: number
20
+ }
21
+
22
+ export interface WarrantyExpirationConditionResponse extends WarrantyExpirationConditionRequest {
23
+ /**
24
+ * Unique ID of the condition text entry
25
+ * (primary key)
26
+ */
27
+ conditionTextId: number
24
28
  /**
25
29
  * Email of the user who last updated the condition text
26
30
  */