@ignos/api-client 20260326.91.1 → 20260327.93.1

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.
@@ -146,6 +146,69 @@ export declare class PresentationClient extends AuthorizedApiBase implements IPr
146
146
  getComponentSettings(componentId: string): Promise<ComponentSettingsDto>;
147
147
  protected processGetComponentSettings(response: Response): Promise<ComponentSettingsDto>;
148
148
  }
149
+ export interface ISpatialClient {
150
+ listBuildingFloors(floor: string | null | undefined): Promise<BuildingFloorDto[]>;
151
+ createBuildingFloor(request: CreateBuildingFloor): Promise<BuildingFloorDto>;
152
+ getBuildingFloor(name: string, floor: string): Promise<BuildingFloorDto>;
153
+ updateBuildingFloor(name: string, floor: string, request: UpdateBuildingFloorRequest): Promise<BuildingFloorDto>;
154
+ deleteBuildingFloor(name: string, floor: string): Promise<void>;
155
+ listGates(): Promise<GateDto[]>;
156
+ createGate(request: CreateGate): Promise<GateDto>;
157
+ getGate(name: string): Promise<GateDto>;
158
+ updateGate(name: string, request: UpdateGateRequest): Promise<GateDto>;
159
+ deleteGate(name: string): Promise<void>;
160
+ listResources(buildingFloorId: string | null | undefined): Promise<ApplicationSpatialResourceDto[]>;
161
+ createResource(request: CreateResource): Promise<ApplicationSpatialResourceDto>;
162
+ getResource(externalId: string): Promise<ApplicationSpatialResourceDto>;
163
+ updateResource(externalId: string, request: UpdateResourceRequest): Promise<ApplicationSpatialResourceDto>;
164
+ deleteResource(externalId: string): Promise<void>;
165
+ getFactory(): Promise<FactoryDto>;
166
+ updateFactory(request: UpdateFactory): Promise<FactoryDto>;
167
+ deleteFactory(): Promise<void>;
168
+ }
169
+ export declare class SpatialClient extends AuthorizedApiBase implements ISpatialClient {
170
+ private http;
171
+ private baseUrl;
172
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
173
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
174
+ });
175
+ listBuildingFloors(floor: string | null | undefined): Promise<BuildingFloorDto[]>;
176
+ protected processListBuildingFloors(response: Response): Promise<BuildingFloorDto[]>;
177
+ createBuildingFloor(request: CreateBuildingFloor): Promise<BuildingFloorDto>;
178
+ protected processCreateBuildingFloor(response: Response): Promise<BuildingFloorDto>;
179
+ getBuildingFloor(name: string, floor: string): Promise<BuildingFloorDto>;
180
+ protected processGetBuildingFloor(response: Response): Promise<BuildingFloorDto>;
181
+ updateBuildingFloor(name: string, floor: string, request: UpdateBuildingFloorRequest): Promise<BuildingFloorDto>;
182
+ protected processUpdateBuildingFloor(response: Response): Promise<BuildingFloorDto>;
183
+ deleteBuildingFloor(name: string, floor: string): Promise<void>;
184
+ protected processDeleteBuildingFloor(response: Response): Promise<void>;
185
+ listGates(): Promise<GateDto[]>;
186
+ protected processListGates(response: Response): Promise<GateDto[]>;
187
+ createGate(request: CreateGate): Promise<GateDto>;
188
+ protected processCreateGate(response: Response): Promise<GateDto>;
189
+ getGate(name: string): Promise<GateDto>;
190
+ protected processGetGate(response: Response): Promise<GateDto>;
191
+ updateGate(name: string, request: UpdateGateRequest): Promise<GateDto>;
192
+ protected processUpdateGate(response: Response): Promise<GateDto>;
193
+ deleteGate(name: string): Promise<void>;
194
+ protected processDeleteGate(response: Response): Promise<void>;
195
+ listResources(buildingFloorId: string | null | undefined): Promise<ApplicationSpatialResourceDto[]>;
196
+ protected processListResources(response: Response): Promise<ApplicationSpatialResourceDto[]>;
197
+ createResource(request: CreateResource): Promise<ApplicationSpatialResourceDto>;
198
+ protected processCreateResource(response: Response): Promise<ApplicationSpatialResourceDto>;
199
+ getResource(externalId: string): Promise<ApplicationSpatialResourceDto>;
200
+ protected processGetResource(response: Response): Promise<ApplicationSpatialResourceDto>;
201
+ updateResource(externalId: string, request: UpdateResourceRequest): Promise<ApplicationSpatialResourceDto>;
202
+ protected processUpdateResource(response: Response): Promise<ApplicationSpatialResourceDto>;
203
+ deleteResource(externalId: string): Promise<void>;
204
+ protected processDeleteResource(response: Response): Promise<void>;
205
+ getFactory(): Promise<FactoryDto>;
206
+ protected processGetFactory(response: Response): Promise<FactoryDto>;
207
+ updateFactory(request: UpdateFactory): Promise<FactoryDto>;
208
+ protected processUpdateFactory(response: Response): Promise<FactoryDto>;
209
+ deleteFactory(): Promise<void>;
210
+ protected processDeleteFactory(response: Response): Promise<void>;
211
+ }
149
212
  export interface IMachineUtilizationClient {
150
213
  /**
151
214
  * Get machine utilization data. Historic utilizations start from now, whereas the start for current utilization is
@@ -3325,6 +3388,102 @@ export interface ComponentSettingsDto {
3325
3388
  componentId?: string | null;
3326
3389
  disabledFields?: string[] | null;
3327
3390
  }
3391
+ export interface BuildingFloorDto {
3392
+ id: string;
3393
+ companyId?: string | null;
3394
+ name: string;
3395
+ floor: string;
3396
+ description?: string | null;
3397
+ featureCollection: FeatureCollection;
3398
+ }
3399
+ export interface GeoJSONObject {
3400
+ bbox?: number[] | null;
3401
+ crs?: ICRSObject | null;
3402
+ type?: GeoJSONObjectType;
3403
+ }
3404
+ export interface FeatureCollection extends GeoJSONObject {
3405
+ type?: GeoJSONObjectType;
3406
+ features?: Feature[] | null;
3407
+ }
3408
+ export type GeoJSONObjectType = "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection" | "Feature" | "FeatureCollection";
3409
+ export interface FeatureOfIGeometryObjectAndIDictionaryOfStringAndObject extends GeoJSONObject {
3410
+ type?: GeoJSONObjectType;
3411
+ id?: string | null;
3412
+ geometry?: IGeometryObject | null;
3413
+ properties?: {
3414
+ [key: string]: any;
3415
+ } | null;
3416
+ }
3417
+ export interface FeatureOfIGeometryObject extends FeatureOfIGeometryObjectAndIDictionaryOfStringAndObject {
3418
+ }
3419
+ export interface Feature extends FeatureOfIGeometryObject {
3420
+ }
3421
+ export interface IGeometryObject {
3422
+ type?: GeoJSONObjectType;
3423
+ }
3424
+ export interface ICRSObject {
3425
+ type?: CRSType;
3426
+ }
3427
+ export type CRSType = 0 | 1 | 2;
3428
+ export interface CreateBuildingFloor {
3429
+ name?: string;
3430
+ floor?: string;
3431
+ description?: string | null;
3432
+ featureCollection?: FeatureCollection;
3433
+ }
3434
+ export interface UpdateBuildingFloorRequest {
3435
+ description?: string | null;
3436
+ featureCollection?: FeatureCollection;
3437
+ }
3438
+ export interface GateDto {
3439
+ id: string;
3440
+ companyId?: string | null;
3441
+ name: string;
3442
+ description?: string | null;
3443
+ featureCollection: FeatureCollection;
3444
+ }
3445
+ export interface CreateGate {
3446
+ name?: string;
3447
+ description?: string | null;
3448
+ featureCollection?: FeatureCollection;
3449
+ }
3450
+ export interface UpdateGateRequest {
3451
+ description?: string | null;
3452
+ featureCollection?: FeatureCollection;
3453
+ }
3454
+ export interface ApplicationSpatialResourceDto {
3455
+ id: string;
3456
+ companyId?: string | null;
3457
+ externalId: string;
3458
+ buildingFloorId: string;
3459
+ featureCollection: FeatureCollection;
3460
+ }
3461
+ export interface CreateResource {
3462
+ externalId?: string;
3463
+ buildingFloorId?: string;
3464
+ featureCollection?: FeatureCollection;
3465
+ }
3466
+ export interface UpdateResourceRequest {
3467
+ buildingFloorId?: string;
3468
+ featureCollection?: FeatureCollection;
3469
+ }
3470
+ export interface FactoryDto {
3471
+ id: string;
3472
+ companyId?: string | null;
3473
+ centerPoint: Point;
3474
+ }
3475
+ export interface Point extends GeoJSONObject {
3476
+ type?: GeoJSONObjectType;
3477
+ coordinates?: IPosition | null;
3478
+ }
3479
+ export interface IPosition {
3480
+ altitude?: number | null;
3481
+ latitude?: number;
3482
+ longitude?: number;
3483
+ }
3484
+ export interface UpdateFactory {
3485
+ centerPoint?: Point;
3486
+ }
3328
3487
  export interface UtilizationListDto {
3329
3488
  machines?: MachineUtilizationDto[] | null;
3330
3489
  }