@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.
@@ -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?: any[];
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;
@@ -65,6 +65,7 @@ export interface Unit {
65
65
  cover?: StrapiFile | null;
66
66
  plan?: StrapiFile | null;
67
67
  customFields?: Record<string, any>;
68
+ additionalInfo?: Record<string, any>;
68
69
  location?: any;
69
70
  turbineType?: any;
70
71
  properties?: any[];
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@en-solutions/tgm-client-sdk",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "TGM Manager Client SDK for Angular 18 - Type-safe services for all TGM API endpoints",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {