@ignos/api-client 20260821.233.1 → 20260821.235.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.
@@ -2657,6 +2657,7 @@ export declare class MesPurchaseOrderClient extends AuthorizedApiBase implements
2657
2657
  export interface IMesResourceClient {
2658
2658
  listResourceGroups(includeResources: boolean | undefined): Promise<ResourceGroupDto[]>;
2659
2659
  listResourceGroupResources(id: string): Promise<ProductionResourceDto[]>;
2660
+ listResourceGroupWorkerDetails(id: string): Promise<ResourceGroupWorkerDetailsDto>;
2660
2661
  listDepartments(): Promise<DepartmentDto[]>;
2661
2662
  }
2662
2663
  export declare class MesResourceClient extends AuthorizedApiBase implements IMesResourceClient {
@@ -2669,6 +2670,8 @@ export declare class MesResourceClient extends AuthorizedApiBase implements IMes
2669
2670
  protected processListResourceGroups(response: Response): Promise<ResourceGroupDto[]>;
2670
2671
  listResourceGroupResources(id: string): Promise<ProductionResourceDto[]>;
2671
2672
  protected processListResourceGroupResources(response: Response): Promise<ProductionResourceDto[]>;
2673
+ listResourceGroupWorkerDetails(id: string): Promise<ResourceGroupWorkerDetailsDto>;
2674
+ protected processListResourceGroupWorkerDetails(response: Response): Promise<ResourceGroupWorkerDetailsDto>;
2672
2675
  listDepartments(): Promise<DepartmentDto[]>;
2673
2676
  protected processListDepartments(response: Response): Promise<DepartmentDto[]>;
2674
2677
  }
@@ -5148,6 +5151,7 @@ export interface ResourceDto {
5148
5151
  export interface DepartmentDto {
5149
5152
  number: string;
5150
5153
  name: string;
5154
+ supervisor?: UserDto | null;
5151
5155
  }
5152
5156
  export type OperationStatusDto = "NotReady" | "Ready" | "Ongoing" | "Completed" | "Stopped";
5153
5157
  export interface WorkOrderTraceMaterialDto {
@@ -8088,6 +8092,10 @@ export interface ProductionResourceDto {
8088
8092
  name?: string | null;
8089
8093
  department?: DepartmentDto | null;
8090
8094
  }
8095
+ export interface ResourceGroupWorkerDetailsDto {
8096
+ supervisor?: UserDto | null;
8097
+ activeWorkers: UserDto[];
8098
+ }
8091
8099
  export interface IotTypeSourceDto {
8092
8100
  id: string;
8093
8101
  name: string;
@@ -9039,7 +9047,7 @@ export interface ImaSpecificationLineDto {
9039
9047
  max?: number | null;
9040
9048
  unit?: ImaUnitDto | null;
9041
9049
  }
9042
- export type ImaUnitDto = "Millimeter" | "Centimeter" | "Meter" | "Inch" | "Kilogram" | "Gram" | "Tonne" | "Pound" | "Megapascal" | "NewtonPerSquareMillimeter" | "KilopoundPerSquareInch" | "PoundPerSquareInch" | "Bar" | "Ppm" | "Percentage" | "WeightPercentage" | "Joule" | "FootPound" | "Celsius" | "Fahrenheit" | "Kelvin" | "Minute" | "Hour";
9050
+ export type ImaUnitDto = "Millimeter" | "Centimeter" | "Meter" | "Inch" | "Kilogram" | "Gram" | "Tonne" | "Pound" | "Megapascal" | "NewtonPerSquareMillimeter" | "KilopoundPerSquareInch" | "PoundPerSquareInch" | "Bar" | "Ppm" | "Percentage" | "WeightPercentage" | "Joule" | "FootPound" | "Celsius" | "Fahrenheit" | "Kelvin" | "Minute" | "Hour" | "BrinellHardness" | "VickersHardness" | "RockwellCHardness" | "RockwellBHardness" | "FerriteNumber" | "FerriteVolumePercentage" | "ElongationPercentage" | "MillilitersPerHundredGrams";
9043
9051
  export interface ImaChemistryCompositeSpecificationDto {
9044
9052
  pren?: ImaSpecificationLineDto | null;
9045
9053
  pren22?: ImaSpecificationLineDto | null;
@@ -22175,6 +22175,45 @@ export class MesResourceClient extends AuthorizedApiBase {
22175
22175
  }
22176
22176
  return Promise.resolve(null);
22177
22177
  }
22178
+ listResourceGroupWorkerDetails(id) {
22179
+ let url_ = this.baseUrl + "/mes/resourcegroups/{id}/worker-details";
22180
+ if (id === undefined || id === null)
22181
+ throw new globalThis.Error("The parameter 'id' must be defined.");
22182
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22183
+ url_ = url_.replace(/[?&]$/, "");
22184
+ let options_ = {
22185
+ method: "GET",
22186
+ headers: {
22187
+ "Accept": "application/json"
22188
+ }
22189
+ };
22190
+ return this.transformOptions(options_).then(transformedOptions_ => {
22191
+ return this.http.fetch(url_, transformedOptions_);
22192
+ }).then((_response) => {
22193
+ return this.processListResourceGroupWorkerDetails(_response);
22194
+ });
22195
+ }
22196
+ processListResourceGroupWorkerDetails(response) {
22197
+ const status = response.status;
22198
+ let _headers = {};
22199
+ if (response.headers && response.headers.forEach) {
22200
+ response.headers.forEach((v, k) => _headers[k] = v);
22201
+ }
22202
+ ;
22203
+ if (status === 200) {
22204
+ return response.text().then((_responseText) => {
22205
+ let result200 = null;
22206
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22207
+ return result200;
22208
+ });
22209
+ }
22210
+ else if (status !== 200 && status !== 204) {
22211
+ return response.text().then((_responseText) => {
22212
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22213
+ });
22214
+ }
22215
+ return Promise.resolve(null);
22216
+ }
22178
22217
  listDepartments() {
22179
22218
  let url_ = this.baseUrl + "/mes/departments";
22180
22219
  url_ = url_.replace(/[?&]$/, "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260821.233.1",
3
+ "version": "20260821.235.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -23617,6 +23617,8 @@ export interface IMesResourceClient {
23617
23617
 
23618
23618
  listResourceGroupResources(id: string): Promise<ProductionResourceDto[]>;
23619
23619
 
23620
+ listResourceGroupWorkerDetails(id: string): Promise<ResourceGroupWorkerDetailsDto>;
23621
+
23620
23622
  listDepartments(): Promise<DepartmentDto[]>;
23621
23623
  }
23622
23624
 
@@ -23707,6 +23709,44 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
23707
23709
  return Promise.resolve<ProductionResourceDto[]>(null as any);
23708
23710
  }
23709
23711
 
23712
+ listResourceGroupWorkerDetails(id: string): Promise<ResourceGroupWorkerDetailsDto> {
23713
+ let url_ = this.baseUrl + "/mes/resourcegroups/{id}/worker-details";
23714
+ if (id === undefined || id === null)
23715
+ throw new globalThis.Error("The parameter 'id' must be defined.");
23716
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
23717
+ url_ = url_.replace(/[?&]$/, "");
23718
+
23719
+ let options_: RequestInit = {
23720
+ method: "GET",
23721
+ headers: {
23722
+ "Accept": "application/json"
23723
+ }
23724
+ };
23725
+
23726
+ return this.transformOptions(options_).then(transformedOptions_ => {
23727
+ return this.http.fetch(url_, transformedOptions_);
23728
+ }).then((_response: Response) => {
23729
+ return this.processListResourceGroupWorkerDetails(_response);
23730
+ });
23731
+ }
23732
+
23733
+ protected processListResourceGroupWorkerDetails(response: Response): Promise<ResourceGroupWorkerDetailsDto> {
23734
+ const status = response.status;
23735
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23736
+ if (status === 200) {
23737
+ return response.text().then((_responseText) => {
23738
+ let result200: any = null;
23739
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceGroupWorkerDetailsDto;
23740
+ return result200;
23741
+ });
23742
+ } else if (status !== 200 && status !== 204) {
23743
+ return response.text().then((_responseText) => {
23744
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23745
+ });
23746
+ }
23747
+ return Promise.resolve<ResourceGroupWorkerDetailsDto>(null as any);
23748
+ }
23749
+
23710
23750
  listDepartments(): Promise<DepartmentDto[]> {
23711
23751
  let url_ = this.baseUrl + "/mes/departments";
23712
23752
  url_ = url_.replace(/[?&]$/, "");
@@ -33180,6 +33220,7 @@ export interface ResourceDto {
33180
33220
  export interface DepartmentDto {
33181
33221
  number: string;
33182
33222
  name: string;
33223
+ supervisor?: UserDto | null;
33183
33224
  }
33184
33225
 
33185
33226
  export type OperationStatusDto = "NotReady" | "Ready" | "Ongoing" | "Completed" | "Stopped";
@@ -36514,6 +36555,11 @@ export interface ProductionResourceDto {
36514
36555
  department?: DepartmentDto | null;
36515
36556
  }
36516
36557
 
36558
+ export interface ResourceGroupWorkerDetailsDto {
36559
+ supervisor?: UserDto | null;
36560
+ activeWorkers: UserDto[];
36561
+ }
36562
+
36517
36563
  export interface IotTypeSourceDto {
36518
36564
  id: string;
36519
36565
  name: string;
@@ -37580,7 +37626,7 @@ export interface ImaSpecificationLineDto {
37580
37626
  unit?: ImaUnitDto | null;
37581
37627
  }
37582
37628
 
37583
- export type ImaUnitDto = "Millimeter" | "Centimeter" | "Meter" | "Inch" | "Kilogram" | "Gram" | "Tonne" | "Pound" | "Megapascal" | "NewtonPerSquareMillimeter" | "KilopoundPerSquareInch" | "PoundPerSquareInch" | "Bar" | "Ppm" | "Percentage" | "WeightPercentage" | "Joule" | "FootPound" | "Celsius" | "Fahrenheit" | "Kelvin" | "Minute" | "Hour";
37629
+ export type ImaUnitDto = "Millimeter" | "Centimeter" | "Meter" | "Inch" | "Kilogram" | "Gram" | "Tonne" | "Pound" | "Megapascal" | "NewtonPerSquareMillimeter" | "KilopoundPerSquareInch" | "PoundPerSquareInch" | "Bar" | "Ppm" | "Percentage" | "WeightPercentage" | "Joule" | "FootPound" | "Celsius" | "Fahrenheit" | "Kelvin" | "Minute" | "Hour" | "BrinellHardness" | "VickersHardness" | "RockwellCHardness" | "RockwellBHardness" | "FerriteNumber" | "FerriteVolumePercentage" | "ElongationPercentage" | "MillilitersPerHundredGrams";
37584
37630
 
37585
37631
  export interface ImaChemistryCompositeSpecificationDto {
37586
37632
  pren?: ImaSpecificationLineDto | null;