@ignos/api-client 20240917.0.10396 → 20241004.0.10504

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.
@@ -124,6 +124,19 @@ export declare class CustomersClient extends AuthorizedApiBase implements ICusto
124
124
  deleteCustomerMappings(): Promise<void>;
125
125
  protected processDeleteCustomerMappings(response: Response): Promise<void>;
126
126
  }
127
+ export interface IGuestsClient {
128
+ getGuestLoginInfo(search: string | undefined): Promise<GuestLoginInfoDto>;
129
+ }
130
+ export declare class GuestsClient extends AuthorizedApiBase implements IGuestsClient {
131
+ private http;
132
+ private baseUrl;
133
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
134
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
135
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
136
+ });
137
+ getGuestLoginInfo(search: string | undefined): Promise<GuestLoginInfoDto>;
138
+ protected processGetGuestLoginInfo(response: Response): Promise<GuestLoginInfoDto>;
139
+ }
127
140
  export interface IPresentationClient {
128
141
  getComponentSettings(componentId: string): Promise<ComponentSettingsDto>;
129
142
  }
@@ -1570,6 +1583,19 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
1570
1583
  createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
1571
1584
  protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto>;
1572
1585
  }
1586
+ export interface IInventoryClient {
1587
+ listVendorBatches(request: ListVendorBatches): Promise<VendorBatchLookupDto[]>;
1588
+ }
1589
+ export declare class InventoryClient extends AuthorizedApiBase implements IInventoryClient {
1590
+ private http;
1591
+ private baseUrl;
1592
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
1593
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1594
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1595
+ });
1596
+ listVendorBatches(request: ListVendorBatches): Promise<VendorBatchLookupDto[]>;
1597
+ protected processListVendorBatches(response: Response): Promise<VendorBatchLookupDto[]>;
1598
+ }
1573
1599
  export interface IMesClient {
1574
1600
  getWorkerDetailsForCurrentUser(): Promise<WorkerDto>;
1575
1601
  }
@@ -1673,7 +1699,6 @@ export interface IMesProductionScheduleClient {
1673
1699
  postListProductionScheduleOperations(request: ListProductionScheduleOperationsRequest | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
1674
1700
  getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
1675
1701
  listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
1676
- listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
1677
1702
  startOperations(request: StartOperations): Promise<void>;
1678
1703
  reportOperationProgress(request: ReportOperationProgress): Promise<void>;
1679
1704
  getScheduledWorkSummary(resourceGroup: string | null | undefined, resourceId: string | null | undefined): Promise<ScheduledWorkSummaryDto>;
@@ -1693,8 +1718,6 @@ export declare class MesProductionScheduleClient extends AuthorizedApiBase imple
1693
1718
  protected processGetAvailableProductionScheduleFilters(response: Response): Promise<ProductionScheduleFiltersDto>;
1694
1719
  listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
1695
1720
  protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto>;
1696
- listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
1697
- protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityDto>;
1698
1721
  startOperations(request: StartOperations): Promise<void>;
1699
1722
  protected processStartOperations(response: Response): Promise<void>;
1700
1723
  reportOperationProgress(request: ReportOperationProgress): Promise<void>;
@@ -2429,6 +2452,18 @@ export interface ICurrentCustomerDto {
2429
2452
  name?: string | null;
2430
2453
  logoUrl?: string | null;
2431
2454
  }
2455
+ export declare class GuestLoginInfoDto implements IGuestLoginInfoDto {
2456
+ tenantId?: string;
2457
+ customerName?: string;
2458
+ constructor(data?: IGuestLoginInfoDto);
2459
+ init(_data?: any): void;
2460
+ static fromJS(data: any): GuestLoginInfoDto;
2461
+ toJSON(data?: any): any;
2462
+ }
2463
+ export interface IGuestLoginInfoDto {
2464
+ tenantId?: string;
2465
+ customerName?: string;
2466
+ }
2432
2467
  export declare class ComponentSettingsDto implements IComponentSettingsDto {
2433
2468
  componentId?: string | null;
2434
2469
  disabledFields?: string[] | null;
@@ -5259,6 +5294,8 @@ export declare class MachineErpDataDto implements IMachineErpDataDto {
5259
5294
  workOrderId: string;
5260
5295
  part: PartDto;
5261
5296
  quantity: number;
5297
+ producedQuantity: number;
5298
+ scrappedQuantity: number;
5262
5299
  operation: number;
5263
5300
  plannedTime: number;
5264
5301
  usedTime: number;
@@ -5277,6 +5314,8 @@ export interface IMachineErpDataDto {
5277
5314
  workOrderId: string;
5278
5315
  part: PartDto;
5279
5316
  quantity: number;
5317
+ producedQuantity: number;
5318
+ scrappedQuantity: number;
5280
5319
  operation: number;
5281
5320
  plannedTime: number;
5282
5321
  usedTime: number;
@@ -8213,7 +8252,7 @@ export interface IBookingStatusUpdateDto {
8213
8252
  deliveryExceptionToLocationId?: string | null;
8214
8253
  deliveryExceptionComment?: string | null;
8215
8254
  }
8216
- export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environmental" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
8255
+ export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environmental" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack";
8217
8256
  export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
8218
8257
  materialId: string;
8219
8258
  materialName: string;
@@ -8480,6 +8519,30 @@ export interface ILabelUpdateDto {
8480
8519
  trackingId?: string | null;
8481
8520
  comment?: string | null;
8482
8521
  }
8522
+ export declare class VendorBatchLookupDto implements IVendorBatchLookupDto {
8523
+ batchNumber?: string;
8524
+ vendorBatchNumber?: string | null;
8525
+ constructor(data?: IVendorBatchLookupDto);
8526
+ init(_data?: any): void;
8527
+ static fromJS(data: any): VendorBatchLookupDto;
8528
+ toJSON(data?: any): any;
8529
+ }
8530
+ export interface IVendorBatchLookupDto {
8531
+ batchNumber?: string;
8532
+ vendorBatchNumber?: string | null;
8533
+ }
8534
+ export declare class ListVendorBatches implements IListVendorBatches {
8535
+ partNumber: string;
8536
+ batchNumbers: string[];
8537
+ constructor(data?: IListVendorBatches);
8538
+ init(_data?: any): void;
8539
+ static fromJS(data: any): ListVendorBatches;
8540
+ toJSON(data?: any): any;
8541
+ }
8542
+ export interface IListVendorBatches {
8543
+ partNumber: string;
8544
+ batchNumbers: string[];
8545
+ }
8483
8546
  export declare class WorkerDto implements IWorkerDto {
8484
8547
  personnelNumber?: string | null;
8485
8548
  badgeId?: string | null;
@@ -496,6 +496,55 @@ export class CustomersClient extends AuthorizedApiBase {
496
496
  return Promise.resolve(null);
497
497
  }
498
498
  }
499
+ export class GuestsClient extends AuthorizedApiBase {
500
+ constructor(configuration, baseUrl, http) {
501
+ super(configuration);
502
+ this.jsonParseReviver = undefined;
503
+ this.http = http ? http : window;
504
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
505
+ }
506
+ getGuestLoginInfo(search) {
507
+ let url_ = this.baseUrl + "/guests/search?";
508
+ if (search === null)
509
+ throw new Error("The parameter 'search' cannot be null.");
510
+ else if (search !== undefined)
511
+ url_ += "search=" + encodeURIComponent("" + search) + "&";
512
+ url_ = url_.replace(/[?&]$/, "");
513
+ let options_ = {
514
+ method: "GET",
515
+ headers: {
516
+ "Accept": "application/json"
517
+ }
518
+ };
519
+ return this.transformOptions(options_).then(transformedOptions_ => {
520
+ return this.http.fetch(url_, transformedOptions_);
521
+ }).then((_response) => {
522
+ return this.processGetGuestLoginInfo(_response);
523
+ });
524
+ }
525
+ processGetGuestLoginInfo(response) {
526
+ const status = response.status;
527
+ let _headers = {};
528
+ if (response.headers && response.headers.forEach) {
529
+ response.headers.forEach((v, k) => _headers[k] = v);
530
+ }
531
+ ;
532
+ if (status === 200) {
533
+ return response.text().then((_responseText) => {
534
+ let result200 = null;
535
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
536
+ result200 = GuestLoginInfoDto.fromJS(resultData200);
537
+ return result200;
538
+ });
539
+ }
540
+ else if (status !== 200 && status !== 204) {
541
+ return response.text().then((_responseText) => {
542
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
543
+ });
544
+ }
545
+ return Promise.resolve(null);
546
+ }
547
+ }
499
548
  export class PresentationClient extends AuthorizedApiBase {
500
549
  constructor(configuration, baseUrl, http) {
501
550
  super(configuration);
@@ -12918,6 +12967,58 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12918
12967
  return Promise.resolve(null);
12919
12968
  }
12920
12969
  }
12970
+ export class InventoryClient extends AuthorizedApiBase {
12971
+ constructor(configuration, baseUrl, http) {
12972
+ super(configuration);
12973
+ this.jsonParseReviver = undefined;
12974
+ this.http = http ? http : window;
12975
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
12976
+ }
12977
+ listVendorBatches(request) {
12978
+ let url_ = this.baseUrl + "/mes/inventory/list-vendor-batches";
12979
+ url_ = url_.replace(/[?&]$/, "");
12980
+ const content_ = JSON.stringify(request);
12981
+ let options_ = {
12982
+ body: content_,
12983
+ method: "POST",
12984
+ headers: {
12985
+ "Content-Type": "application/json",
12986
+ "Accept": "application/json"
12987
+ }
12988
+ };
12989
+ return this.transformOptions(options_).then(transformedOptions_ => {
12990
+ return this.http.fetch(url_, transformedOptions_);
12991
+ }).then((_response) => {
12992
+ return this.processListVendorBatches(_response);
12993
+ });
12994
+ }
12995
+ processListVendorBatches(response) {
12996
+ const status = response.status;
12997
+ let _headers = {};
12998
+ if (response.headers && response.headers.forEach) {
12999
+ response.headers.forEach((v, k) => _headers[k] = v);
13000
+ }
13001
+ ;
13002
+ if (status === 200) {
13003
+ return response.text().then((_responseText) => {
13004
+ let result200 = null;
13005
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13006
+ if (Array.isArray(resultData200)) {
13007
+ result200 = [];
13008
+ for (let item of resultData200)
13009
+ result200.push(VendorBatchLookupDto.fromJS(item));
13010
+ }
13011
+ return result200;
13012
+ });
13013
+ }
13014
+ else if (status !== 200 && status !== 204) {
13015
+ return response.text().then((_responseText) => {
13016
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13017
+ });
13018
+ }
13019
+ return Promise.resolve(null);
13020
+ }
13021
+ }
12921
13022
  export class MesClient extends AuthorizedApiBase {
12922
13023
  constructor(configuration, baseUrl, http) {
12923
13024
  super(configuration);
@@ -13825,43 +13926,6 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
13825
13926
  }
13826
13927
  return Promise.resolve(null);
13827
13928
  }
13828
- listMyCurrentWorkActivitiesV2() {
13829
- let url_ = this.baseUrl + "/mes/myactivework/v2";
13830
- url_ = url_.replace(/[?&]$/, "");
13831
- let options_ = {
13832
- method: "GET",
13833
- headers: {
13834
- "Accept": "application/json"
13835
- }
13836
- };
13837
- return this.transformOptions(options_).then(transformedOptions_ => {
13838
- return this.http.fetch(url_, transformedOptions_);
13839
- }).then((_response) => {
13840
- return this.processListMyCurrentWorkActivitiesV2(_response);
13841
- });
13842
- }
13843
- processListMyCurrentWorkActivitiesV2(response) {
13844
- const status = response.status;
13845
- let _headers = {};
13846
- if (response.headers && response.headers.forEach) {
13847
- response.headers.forEach((v, k) => _headers[k] = v);
13848
- }
13849
- ;
13850
- if (status === 200) {
13851
- return response.text().then((_responseText) => {
13852
- let result200 = null;
13853
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13854
- result200 = CurrentWorkActivityDto.fromJS(resultData200);
13855
- return result200;
13856
- });
13857
- }
13858
- else if (status !== 200 && status !== 204) {
13859
- return response.text().then((_responseText) => {
13860
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13861
- });
13862
- }
13863
- return Promise.resolve(null);
13864
- }
13865
13929
  startOperations(request) {
13866
13930
  let url_ = this.baseUrl + "/mes/start-operations";
13867
13931
  url_ = url_.replace(/[?&]$/, "");
@@ -19666,6 +19730,34 @@ export class CurrentCustomerDto {
19666
19730
  return data;
19667
19731
  }
19668
19732
  }
19733
+ export class GuestLoginInfoDto {
19734
+ constructor(data) {
19735
+ if (data) {
19736
+ for (var property in data) {
19737
+ if (data.hasOwnProperty(property))
19738
+ this[property] = data[property];
19739
+ }
19740
+ }
19741
+ }
19742
+ init(_data) {
19743
+ if (_data) {
19744
+ this.tenantId = _data["tenantId"];
19745
+ this.customerName = _data["customerName"];
19746
+ }
19747
+ }
19748
+ static fromJS(data) {
19749
+ data = typeof data === 'object' ? data : {};
19750
+ let result = new GuestLoginInfoDto();
19751
+ result.init(data);
19752
+ return result;
19753
+ }
19754
+ toJSON(data) {
19755
+ data = typeof data === 'object' ? data : {};
19756
+ data["tenantId"] = this.tenantId;
19757
+ data["customerName"] = this.customerName;
19758
+ return data;
19759
+ }
19760
+ }
19669
19761
  export class ComponentSettingsDto {
19670
19762
  constructor(data) {
19671
19763
  if (data) {
@@ -25693,6 +25785,8 @@ export class MachineErpDataDto {
25693
25785
  this.workOrderId = _data["workOrderId"];
25694
25786
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
25695
25787
  this.quantity = _data["quantity"];
25788
+ this.producedQuantity = _data["producedQuantity"];
25789
+ this.scrappedQuantity = _data["scrappedQuantity"];
25696
25790
  this.operation = _data["operation"];
25697
25791
  this.plannedTime = _data["plannedTime"];
25698
25792
  this.usedTime = _data["usedTime"];
@@ -25715,6 +25809,8 @@ export class MachineErpDataDto {
25715
25809
  data["workOrderId"] = this.workOrderId;
25716
25810
  data["part"] = this.part ? this.part.toJSON() : undefined;
25717
25811
  data["quantity"] = this.quantity;
25812
+ data["producedQuantity"] = this.producedQuantity;
25813
+ data["scrappedQuantity"] = this.scrappedQuantity;
25718
25814
  data["operation"] = this.operation;
25719
25815
  data["plannedTime"] = this.plannedTime;
25720
25816
  data["usedTime"] = this.usedTime;
@@ -32084,6 +32180,73 @@ export class LabelUpdateDto {
32084
32180
  return data;
32085
32181
  }
32086
32182
  }
32183
+ export class VendorBatchLookupDto {
32184
+ constructor(data) {
32185
+ if (data) {
32186
+ for (var property in data) {
32187
+ if (data.hasOwnProperty(property))
32188
+ this[property] = data[property];
32189
+ }
32190
+ }
32191
+ }
32192
+ init(_data) {
32193
+ if (_data) {
32194
+ this.batchNumber = _data["batchNumber"];
32195
+ this.vendorBatchNumber = _data["vendorBatchNumber"];
32196
+ }
32197
+ }
32198
+ static fromJS(data) {
32199
+ data = typeof data === 'object' ? data : {};
32200
+ let result = new VendorBatchLookupDto();
32201
+ result.init(data);
32202
+ return result;
32203
+ }
32204
+ toJSON(data) {
32205
+ data = typeof data === 'object' ? data : {};
32206
+ data["batchNumber"] = this.batchNumber;
32207
+ data["vendorBatchNumber"] = this.vendorBatchNumber;
32208
+ return data;
32209
+ }
32210
+ }
32211
+ export class ListVendorBatches {
32212
+ constructor(data) {
32213
+ if (data) {
32214
+ for (var property in data) {
32215
+ if (data.hasOwnProperty(property))
32216
+ this[property] = data[property];
32217
+ }
32218
+ }
32219
+ if (!data) {
32220
+ this.batchNumbers = [];
32221
+ }
32222
+ }
32223
+ init(_data) {
32224
+ if (_data) {
32225
+ this.partNumber = _data["partNumber"];
32226
+ if (Array.isArray(_data["batchNumbers"])) {
32227
+ this.batchNumbers = [];
32228
+ for (let item of _data["batchNumbers"])
32229
+ this.batchNumbers.push(item);
32230
+ }
32231
+ }
32232
+ }
32233
+ static fromJS(data) {
32234
+ data = typeof data === 'object' ? data : {};
32235
+ let result = new ListVendorBatches();
32236
+ result.init(data);
32237
+ return result;
32238
+ }
32239
+ toJSON(data) {
32240
+ data = typeof data === 'object' ? data : {};
32241
+ data["partNumber"] = this.partNumber;
32242
+ if (Array.isArray(this.batchNumbers)) {
32243
+ data["batchNumbers"] = [];
32244
+ for (let item of this.batchNumbers)
32245
+ data["batchNumbers"].push(item);
32246
+ }
32247
+ return data;
32248
+ }
32249
+ }
32087
32250
  export class WorkerDto {
32088
32251
  constructor(data) {
32089
32252
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240917.0.10396",
3
+ "version": "20241004.0.10504",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -569,6 +569,63 @@ export class CustomersClient extends AuthorizedApiBase implements ICustomersClie
569
569
  }
570
570
  }
571
571
 
572
+ export interface IGuestsClient {
573
+
574
+ getGuestLoginInfo(search: string | undefined): Promise<GuestLoginInfoDto>;
575
+ }
576
+
577
+ export class GuestsClient extends AuthorizedApiBase implements IGuestsClient {
578
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
579
+ private baseUrl: string;
580
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
581
+
582
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
583
+ super(configuration);
584
+ this.http = http ? http : window as any;
585
+ this.baseUrl = baseUrl ?? "";
586
+ }
587
+
588
+ getGuestLoginInfo(search: string | undefined): Promise<GuestLoginInfoDto> {
589
+ let url_ = this.baseUrl + "/guests/search?";
590
+ if (search === null)
591
+ throw new Error("The parameter 'search' cannot be null.");
592
+ else if (search !== undefined)
593
+ url_ += "search=" + encodeURIComponent("" + search) + "&";
594
+ url_ = url_.replace(/[?&]$/, "");
595
+
596
+ let options_: RequestInit = {
597
+ method: "GET",
598
+ headers: {
599
+ "Accept": "application/json"
600
+ }
601
+ };
602
+
603
+ return this.transformOptions(options_).then(transformedOptions_ => {
604
+ return this.http.fetch(url_, transformedOptions_);
605
+ }).then((_response: Response) => {
606
+ return this.processGetGuestLoginInfo(_response);
607
+ });
608
+ }
609
+
610
+ protected processGetGuestLoginInfo(response: Response): Promise<GuestLoginInfoDto> {
611
+ const status = response.status;
612
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
613
+ if (status === 200) {
614
+ return response.text().then((_responseText) => {
615
+ let result200: any = null;
616
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
617
+ result200 = GuestLoginInfoDto.fromJS(resultData200);
618
+ return result200;
619
+ });
620
+ } else if (status !== 200 && status !== 204) {
621
+ return response.text().then((_responseText) => {
622
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
623
+ });
624
+ }
625
+ return Promise.resolve<GuestLoginInfoDto>(null as any);
626
+ }
627
+ }
628
+
572
629
  export interface IPresentationClient {
573
630
 
574
631
  getComponentSettings(componentId: string): Promise<ComponentSettingsDto>;
@@ -13805,6 +13862,67 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13805
13862
  }
13806
13863
  }
13807
13864
 
13865
+ export interface IInventoryClient {
13866
+
13867
+ listVendorBatches(request: ListVendorBatches): Promise<VendorBatchLookupDto[]>;
13868
+ }
13869
+
13870
+ export class InventoryClient extends AuthorizedApiBase implements IInventoryClient {
13871
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13872
+ private baseUrl: string;
13873
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
13874
+
13875
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13876
+ super(configuration);
13877
+ this.http = http ? http : window as any;
13878
+ this.baseUrl = baseUrl ?? "";
13879
+ }
13880
+
13881
+ listVendorBatches(request: ListVendorBatches): Promise<VendorBatchLookupDto[]> {
13882
+ let url_ = this.baseUrl + "/mes/inventory/list-vendor-batches";
13883
+ url_ = url_.replace(/[?&]$/, "");
13884
+
13885
+ const content_ = JSON.stringify(request);
13886
+
13887
+ let options_: RequestInit = {
13888
+ body: content_,
13889
+ method: "POST",
13890
+ headers: {
13891
+ "Content-Type": "application/json",
13892
+ "Accept": "application/json"
13893
+ }
13894
+ };
13895
+
13896
+ return this.transformOptions(options_).then(transformedOptions_ => {
13897
+ return this.http.fetch(url_, transformedOptions_);
13898
+ }).then((_response: Response) => {
13899
+ return this.processListVendorBatches(_response);
13900
+ });
13901
+ }
13902
+
13903
+ protected processListVendorBatches(response: Response): Promise<VendorBatchLookupDto[]> {
13904
+ const status = response.status;
13905
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13906
+ if (status === 200) {
13907
+ return response.text().then((_responseText) => {
13908
+ let result200: any = null;
13909
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13910
+ if (Array.isArray(resultData200)) {
13911
+ result200 = [] as any;
13912
+ for (let item of resultData200)
13913
+ result200!.push(VendorBatchLookupDto.fromJS(item));
13914
+ }
13915
+ return result200;
13916
+ });
13917
+ } else if (status !== 200 && status !== 204) {
13918
+ return response.text().then((_responseText) => {
13919
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13920
+ });
13921
+ }
13922
+ return Promise.resolve<VendorBatchLookupDto[]>(null as any);
13923
+ }
13924
+ }
13925
+
13808
13926
  export interface IMesClient {
13809
13927
 
13810
13928
  getWorkerDetailsForCurrentUser(): Promise<WorkerDto>;
@@ -14597,8 +14715,6 @@ export interface IMesProductionScheduleClient {
14597
14715
 
14598
14716
  listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
14599
14717
 
14600
- listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
14601
-
14602
14718
  startOperations(request: StartOperations): Promise<void>;
14603
14719
 
14604
14720
  reportOperationProgress(request: ReportOperationProgress): Promise<void>;
@@ -14789,42 +14905,6 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
14789
14905
  return Promise.resolve<CurrentWorkActivityDto>(null as any);
14790
14906
  }
14791
14907
 
14792
- listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto> {
14793
- let url_ = this.baseUrl + "/mes/myactivework/v2";
14794
- url_ = url_.replace(/[?&]$/, "");
14795
-
14796
- let options_: RequestInit = {
14797
- method: "GET",
14798
- headers: {
14799
- "Accept": "application/json"
14800
- }
14801
- };
14802
-
14803
- return this.transformOptions(options_).then(transformedOptions_ => {
14804
- return this.http.fetch(url_, transformedOptions_);
14805
- }).then((_response: Response) => {
14806
- return this.processListMyCurrentWorkActivitiesV2(_response);
14807
- });
14808
- }
14809
-
14810
- protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityDto> {
14811
- const status = response.status;
14812
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14813
- if (status === 200) {
14814
- return response.text().then((_responseText) => {
14815
- let result200: any = null;
14816
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14817
- result200 = CurrentWorkActivityDto.fromJS(resultData200);
14818
- return result200;
14819
- });
14820
- } else if (status !== 200 && status !== 204) {
14821
- return response.text().then((_responseText) => {
14822
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14823
- });
14824
- }
14825
- return Promise.resolve<CurrentWorkActivityDto>(null as any);
14826
- }
14827
-
14828
14908
  startOperations(request: StartOperations): Promise<void> {
14829
14909
  let url_ = this.baseUrl + "/mes/start-operations";
14830
14910
  url_ = url_.replace(/[?&]$/, "");
@@ -21043,6 +21123,46 @@ export interface ICurrentCustomerDto {
21043
21123
  logoUrl?: string | null;
21044
21124
  }
21045
21125
 
21126
+ export class GuestLoginInfoDto implements IGuestLoginInfoDto {
21127
+ tenantId?: string;
21128
+ customerName?: string;
21129
+
21130
+ constructor(data?: IGuestLoginInfoDto) {
21131
+ if (data) {
21132
+ for (var property in data) {
21133
+ if (data.hasOwnProperty(property))
21134
+ (<any>this)[property] = (<any>data)[property];
21135
+ }
21136
+ }
21137
+ }
21138
+
21139
+ init(_data?: any) {
21140
+ if (_data) {
21141
+ this.tenantId = _data["tenantId"];
21142
+ this.customerName = _data["customerName"];
21143
+ }
21144
+ }
21145
+
21146
+ static fromJS(data: any): GuestLoginInfoDto {
21147
+ data = typeof data === 'object' ? data : {};
21148
+ let result = new GuestLoginInfoDto();
21149
+ result.init(data);
21150
+ return result;
21151
+ }
21152
+
21153
+ toJSON(data?: any) {
21154
+ data = typeof data === 'object' ? data : {};
21155
+ data["tenantId"] = this.tenantId;
21156
+ data["customerName"] = this.customerName;
21157
+ return data;
21158
+ }
21159
+ }
21160
+
21161
+ export interface IGuestLoginInfoDto {
21162
+ tenantId?: string;
21163
+ customerName?: string;
21164
+ }
21165
+
21046
21166
  export class ComponentSettingsDto implements IComponentSettingsDto {
21047
21167
  componentId?: string | null;
21048
21168
  disabledFields?: string[] | null;
@@ -29903,6 +30023,8 @@ export class MachineErpDataDto implements IMachineErpDataDto {
29903
30023
  workOrderId!: string;
29904
30024
  part!: PartDto;
29905
30025
  quantity!: number;
30026
+ producedQuantity!: number;
30027
+ scrappedQuantity!: number;
29906
30028
  operation!: number;
29907
30029
  plannedTime!: number;
29908
30030
  usedTime!: number;
@@ -29930,6 +30052,8 @@ export class MachineErpDataDto implements IMachineErpDataDto {
29930
30052
  this.workOrderId = _data["workOrderId"];
29931
30053
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
29932
30054
  this.quantity = _data["quantity"];
30055
+ this.producedQuantity = _data["producedQuantity"];
30056
+ this.scrappedQuantity = _data["scrappedQuantity"];
29933
30057
  this.operation = _data["operation"];
29934
30058
  this.plannedTime = _data["plannedTime"];
29935
30059
  this.usedTime = _data["usedTime"];
@@ -29954,6 +30078,8 @@ export class MachineErpDataDto implements IMachineErpDataDto {
29954
30078
  data["workOrderId"] = this.workOrderId;
29955
30079
  data["part"] = this.part ? this.part.toJSON() : <any>undefined;
29956
30080
  data["quantity"] = this.quantity;
30081
+ data["producedQuantity"] = this.producedQuantity;
30082
+ data["scrappedQuantity"] = this.scrappedQuantity;
29957
30083
  data["operation"] = this.operation;
29958
30084
  data["plannedTime"] = this.plannedTime;
29959
30085
  data["usedTime"] = this.usedTime;
@@ -29971,6 +30097,8 @@ export interface IMachineErpDataDto {
29971
30097
  workOrderId: string;
29972
30098
  part: PartDto;
29973
30099
  quantity: number;
30100
+ producedQuantity: number;
30101
+ scrappedQuantity: number;
29974
30102
  operation: number;
29975
30103
  plannedTime: number;
29976
30104
  usedTime: number;
@@ -38627,7 +38755,7 @@ export interface IBookingStatusUpdateDto {
38627
38755
  deliveryExceptionComment?: string | null;
38628
38756
  }
38629
38757
 
38630
- export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environmental" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
38758
+ export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environmental" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack";
38631
38759
 
38632
38760
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
38633
38761
  materialId!: string;
@@ -39545,6 +39673,97 @@ export interface ILabelUpdateDto {
39545
39673
  comment?: string | null;
39546
39674
  }
39547
39675
 
39676
+ export class VendorBatchLookupDto implements IVendorBatchLookupDto {
39677
+ batchNumber?: string;
39678
+ vendorBatchNumber?: string | null;
39679
+
39680
+ constructor(data?: IVendorBatchLookupDto) {
39681
+ if (data) {
39682
+ for (var property in data) {
39683
+ if (data.hasOwnProperty(property))
39684
+ (<any>this)[property] = (<any>data)[property];
39685
+ }
39686
+ }
39687
+ }
39688
+
39689
+ init(_data?: any) {
39690
+ if (_data) {
39691
+ this.batchNumber = _data["batchNumber"];
39692
+ this.vendorBatchNumber = _data["vendorBatchNumber"];
39693
+ }
39694
+ }
39695
+
39696
+ static fromJS(data: any): VendorBatchLookupDto {
39697
+ data = typeof data === 'object' ? data : {};
39698
+ let result = new VendorBatchLookupDto();
39699
+ result.init(data);
39700
+ return result;
39701
+ }
39702
+
39703
+ toJSON(data?: any) {
39704
+ data = typeof data === 'object' ? data : {};
39705
+ data["batchNumber"] = this.batchNumber;
39706
+ data["vendorBatchNumber"] = this.vendorBatchNumber;
39707
+ return data;
39708
+ }
39709
+ }
39710
+
39711
+ export interface IVendorBatchLookupDto {
39712
+ batchNumber?: string;
39713
+ vendorBatchNumber?: string | null;
39714
+ }
39715
+
39716
+ export class ListVendorBatches implements IListVendorBatches {
39717
+ partNumber!: string;
39718
+ batchNumbers!: string[];
39719
+
39720
+ constructor(data?: IListVendorBatches) {
39721
+ if (data) {
39722
+ for (var property in data) {
39723
+ if (data.hasOwnProperty(property))
39724
+ (<any>this)[property] = (<any>data)[property];
39725
+ }
39726
+ }
39727
+ if (!data) {
39728
+ this.batchNumbers = [];
39729
+ }
39730
+ }
39731
+
39732
+ init(_data?: any) {
39733
+ if (_data) {
39734
+ this.partNumber = _data["partNumber"];
39735
+ if (Array.isArray(_data["batchNumbers"])) {
39736
+ this.batchNumbers = [] as any;
39737
+ for (let item of _data["batchNumbers"])
39738
+ this.batchNumbers!.push(item);
39739
+ }
39740
+ }
39741
+ }
39742
+
39743
+ static fromJS(data: any): ListVendorBatches {
39744
+ data = typeof data === 'object' ? data : {};
39745
+ let result = new ListVendorBatches();
39746
+ result.init(data);
39747
+ return result;
39748
+ }
39749
+
39750
+ toJSON(data?: any) {
39751
+ data = typeof data === 'object' ? data : {};
39752
+ data["partNumber"] = this.partNumber;
39753
+ if (Array.isArray(this.batchNumbers)) {
39754
+ data["batchNumbers"] = [];
39755
+ for (let item of this.batchNumbers)
39756
+ data["batchNumbers"].push(item);
39757
+ }
39758
+ return data;
39759
+ }
39760
+ }
39761
+
39762
+ export interface IListVendorBatches {
39763
+ partNumber: string;
39764
+ batchNumbers: string[];
39765
+ }
39766
+
39548
39767
  export class WorkerDto implements IWorkerDto {
39549
39768
  personnelNumber?: string | null;
39550
39769
  badgeId?: string | null;