@en-solutions/tgm-client-sdk 1.8.2 → 1.8.4
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/esm2022/lib/models/api/component.models.mjs +1 -1
- package/esm2022/lib/models/api/misc.models.mjs +1 -1
- package/esm2022/lib/models/api/unit.models.mjs +1 -1
- package/esm2022/lib/models/enums/type.enums.mjs +2 -2
- package/fesm2022/en-solutions-tgm-client-sdk.mjs +1 -1
- package/fesm2022/en-solutions-tgm-client-sdk.mjs.map +1 -1
- package/lib/models/api/component.models.d.ts +2 -1
- package/lib/models/api/misc.models.d.ts +4 -2
- package/lib/models/api/unit.models.d.ts +1 -0
- package/lib/models/enums/type.enums.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentType, ComponentCategory, ComponentInfoType, ComponentInfoCategory, ComponentInfoStatus, MeteringParameterType, MeteringParameterSubType, AssetPhase } from '../enums';
|
|
2
2
|
import { Failure } from './failure.models';
|
|
3
3
|
import { StrapiFile } from './media.models';
|
|
4
|
+
import { TurbineType } from './misc.models';
|
|
4
5
|
export interface Component {
|
|
5
6
|
id: number;
|
|
6
7
|
name: string;
|
|
@@ -76,7 +77,7 @@ export interface Component {
|
|
|
76
77
|
failures?: Failure[];
|
|
77
78
|
componentChecklistData?: any[];
|
|
78
79
|
componentChecklists?: any[];
|
|
79
|
-
turbineTypes?:
|
|
80
|
+
turbineTypes?: TurbineType[];
|
|
80
81
|
associatedAssets?: any[];
|
|
81
82
|
drawings?: StrapiFile[];
|
|
82
83
|
plan?: StrapiFile;
|
|
@@ -3,7 +3,7 @@ import { StrapiFile } from './media.models';
|
|
|
3
3
|
/**
|
|
4
4
|
* Location entity.
|
|
5
5
|
*
|
|
6
|
-
* Filter by type: use query param `typeOfPremise` with values: Plant, Office, Warehouse, Dam, HybridPlant, Other.
|
|
6
|
+
* Filter by type: use query param `typeOfPremise` with values: Plant, Office, Warehouse, Dam, HybridPlant, Substation, DistributionSubstation, Other.
|
|
7
7
|
* Example: LocationService.getAll({ page: 1, pageSize: 500, typeOfPremise: 'Plant' })
|
|
8
8
|
*/
|
|
9
9
|
export interface Location {
|
|
@@ -18,7 +18,7 @@ export interface Location {
|
|
|
18
18
|
postalCode?: string;
|
|
19
19
|
phoneNumber?: string;
|
|
20
20
|
isHeadQuarters?: boolean;
|
|
21
|
-
typeOfPremise?: 'Plant' | 'Office' | 'Warehouse' | 'Dam' | 'HybridPlant' | 'Other' | string;
|
|
21
|
+
typeOfPremise?: 'Plant' | 'Office' | 'Warehouse' | 'Dam' | 'HybridPlant' | 'Substation' | 'DistributionSubstation' | 'Other' | string;
|
|
22
22
|
region?: 'All' | 'Africa' | 'AsiaAndOceania' | 'Europe' | 'LatinAmerica' | 'NorthAmerica' | string;
|
|
23
23
|
latitude?: string;
|
|
24
24
|
longitude?: string;
|
|
@@ -71,6 +71,8 @@ export interface Location {
|
|
|
71
71
|
surgeChamberDetails?: string;
|
|
72
72
|
isACascadePlant?: boolean;
|
|
73
73
|
revenueStreams?: string;
|
|
74
|
+
substationDetails?: string;
|
|
75
|
+
distributionSubstationDetails?: string;
|
|
74
76
|
reservoirCode?: string;
|
|
75
77
|
normalPoolElevation?: number;
|
|
76
78
|
maximumPoolElevation?: number;
|
|
@@ -230,6 +230,8 @@ export declare const PremiseType: {
|
|
|
230
230
|
readonly WAREHOUSE: "WAREHOUSE";
|
|
231
231
|
readonly DAM: "DAM";
|
|
232
232
|
readonly HYBRID_PLANT: "HYBRID_PLANT";
|
|
233
|
+
readonly SUBSTATION: "SUBSTATION";
|
|
234
|
+
readonly DISTRIBUTION_SUBSTATION: "DISTRIBUTION_SUBSTATION";
|
|
233
235
|
readonly OTHER: "OTHER";
|
|
234
236
|
};
|
|
235
237
|
export type PremiseType = (typeof PremiseType)[keyof typeof PremiseType];
|
package/package.json
CHANGED