@ignos/api-client 20240820.0.10076 → 20240828.0.10152

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.
@@ -1497,10 +1497,10 @@ export declare class MoveParcelsClient extends AuthorizedApiBase implements IMov
1497
1497
  protected processSearchParcels(response: Response): Promise<SearchParcelDto[]>;
1498
1498
  }
1499
1499
  export interface IMoveTrackingClient {
1500
- listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
1501
- getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto>;
1500
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
1501
+ getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
1502
1502
  getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
1503
- listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]>;
1503
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
1504
1504
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
1505
1505
  createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
1506
1506
  deleteTrackingHistory(trackingId: string): Promise<void>;
@@ -1513,13 +1513,13 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
1513
1513
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1514
1514
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1515
1515
  });
1516
- listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
1517
- protected processListTrackingHistory(response: Response): Promise<TrackingHistoryListDto>;
1518
- getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto>;
1519
- protected processGetTrackingHistory(response: Response): Promise<TrackingHistoryDto>;
1516
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
1517
+ protected processListTrackingHistory(response: Response): Promise<TrackingParcelListDto>;
1518
+ getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
1519
+ protected processGetTrackingHistory(response: Response): Promise<TrackingParcelDto>;
1520
1520
  getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
1521
1521
  protected processGetParcelTrackingHistory(response: Response): Promise<TrackingParcelDto>;
1522
- listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]>;
1522
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
1523
1523
  protected processListParcelTrackingHistory(response: Response): Promise<TrackingParcelDto[]>;
1524
1524
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
1525
1525
  protected processCreateTrackingEvents(response: Response): Promise<TrackingHistoryDto[]>;
@@ -2085,6 +2085,35 @@ export declare class CustomerOrdersClient extends AuthorizedApiBase implements I
2085
2085
  listCustomerOrderLines(id: string): Promise<CustomerOrderLineDto[]>;
2086
2086
  protected processListCustomerOrderLines(response: Response): Promise<CustomerOrderLineDto[]>;
2087
2087
  }
2088
+ export interface IErpUsersClient {
2089
+ listUsers(request: ListErpUsers | undefined): Promise<PagedResultOfErpUserDto>;
2090
+ }
2091
+ export declare class ErpUsersClient extends AuthorizedApiBase implements IErpUsersClient {
2092
+ private http;
2093
+ private baseUrl;
2094
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
2095
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
2096
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
2097
+ });
2098
+ listUsers(request: ListErpUsers | undefined): Promise<PagedResultOfErpUserDto>;
2099
+ protected processListUsers(response: Response): Promise<PagedResultOfErpUserDto>;
2100
+ }
2101
+ export interface IProductionPoolsClient {
2102
+ listProductionPools(): Promise<ProductionPoolDto[]>;
2103
+ setProductionPoolContactPerson(request: SetProductionPoolContactPerson): Promise<void>;
2104
+ }
2105
+ export declare class ProductionPoolsClient extends AuthorizedApiBase implements IProductionPoolsClient {
2106
+ private http;
2107
+ private baseUrl;
2108
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
2109
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
2110
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
2111
+ });
2112
+ listProductionPools(): Promise<ProductionPoolDto[]>;
2113
+ protected processListProductionPools(response: Response): Promise<ProductionPoolDto[]>;
2114
+ setProductionPoolContactPerson(request: SetProductionPoolContactPerson): Promise<void>;
2115
+ protected processSetProductionPoolContactPerson(response: Response): Promise<void>;
2116
+ }
2088
2117
  export interface IResourcesClient {
2089
2118
  listAllMachines(): Promise<MachineDto[]>;
2090
2119
  }
@@ -7844,7 +7873,7 @@ export declare class BookingDto implements IBookingDto {
7844
7873
  parcelKind: ParcelKindDto;
7845
7874
  transportKind: TransportKindDto;
7846
7875
  status: BookingStatusDto;
7847
- items: BookingItemDto[];
7876
+ parcels: BookingParcelDto[];
7848
7877
  fromLocation: LocationDto;
7849
7878
  toLocation: LocationDto;
7850
7879
  created: Date;
@@ -7865,7 +7894,7 @@ export interface IBookingDto {
7865
7894
  parcelKind: ParcelKindDto;
7866
7895
  transportKind: TransportKindDto;
7867
7896
  status: BookingStatusDto;
7868
- items: BookingItemDto[];
7897
+ parcels: BookingParcelDto[];
7869
7898
  fromLocation: LocationDto;
7870
7899
  toLocation: LocationDto;
7871
7900
  created: Date;
@@ -7880,14 +7909,35 @@ export interface IBookingDto {
7880
7909
  export type ParcelKindDto = "Standard" | "OtherInquiries" | "ChipDisposal" | "Garbage";
7881
7910
  export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
7882
7911
  export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Completed";
7883
- export declare class BookingItemDto implements IBookingItemDto {
7884
- trackingId: string;
7885
- palletNumber: number;
7912
+ export declare class BookingParcelDto implements IBookingParcelDto {
7886
7913
  parcelId: string;
7887
7914
  parcelKind: ParcelKindDto;
7915
+ partName?: string | null;
7916
+ partNumber?: string | null;
7917
+ quantity?: number | null;
7888
7918
  material?: string | null;
7889
- comment?: string | null;
7890
7919
  covered: MaterialCoveredDto;
7920
+ items?: BookingItemDto[];
7921
+ constructor(data?: IBookingParcelDto);
7922
+ init(_data?: any): void;
7923
+ static fromJS(data: any): BookingParcelDto;
7924
+ toJSON(data?: any): any;
7925
+ }
7926
+ export interface IBookingParcelDto {
7927
+ parcelId: string;
7928
+ parcelKind: ParcelKindDto;
7929
+ partName?: string | null;
7930
+ partNumber?: string | null;
7931
+ quantity?: number | null;
7932
+ material?: string | null;
7933
+ covered: MaterialCoveredDto;
7934
+ items?: BookingItemDto[];
7935
+ }
7936
+ export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
7937
+ export declare class BookingItemDto implements IBookingItemDto {
7938
+ trackingId: string;
7939
+ palletNumber: number;
7940
+ comment?: string | null;
7891
7941
  toLocationOverride?: LocationDto | null;
7892
7942
  constructor(data?: IBookingItemDto);
7893
7943
  init(_data?: any): void;
@@ -7897,14 +7947,9 @@ export declare class BookingItemDto implements IBookingItemDto {
7897
7947
  export interface IBookingItemDto {
7898
7948
  trackingId: string;
7899
7949
  palletNumber: number;
7900
- parcelId: string;
7901
- parcelKind: ParcelKindDto;
7902
- material?: string | null;
7903
7950
  comment?: string | null;
7904
- covered: MaterialCoveredDto;
7905
7951
  toLocationOverride?: LocationDto | null;
7906
7952
  }
7907
- export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
7908
7953
  export declare class LocationDto implements ILocationDto {
7909
7954
  locationId: string;
7910
7955
  locationName: string;
@@ -8142,27 +8187,48 @@ export interface ISearchParcelItemDto {
8142
8187
  trackingId: string;
8143
8188
  selected: boolean;
8144
8189
  }
8145
- export declare class TrackingHistoryListDto implements ITrackingHistoryListDto {
8146
- results: TrackingHistoryDto[];
8190
+ export declare class TrackingParcelListDto implements ITrackingParcelListDto {
8191
+ results: TrackingParcelDto[];
8147
8192
  continuationToken?: string | null;
8148
- constructor(data?: ITrackingHistoryListDto);
8193
+ constructor(data?: ITrackingParcelListDto);
8149
8194
  init(_data?: any): void;
8150
- static fromJS(data: any): TrackingHistoryListDto;
8195
+ static fromJS(data: any): TrackingParcelListDto;
8151
8196
  toJSON(data?: any): any;
8152
8197
  }
8153
- export interface ITrackingHistoryListDto {
8154
- results: TrackingHistoryDto[];
8198
+ export interface ITrackingParcelListDto {
8199
+ results: TrackingParcelDto[];
8155
8200
  continuationToken?: string | null;
8156
8201
  }
8202
+ export declare class TrackingParcelDto implements ITrackingParcelDto {
8203
+ parcelId: string;
8204
+ parcelKind: ParcelKindDto;
8205
+ partName?: string | null;
8206
+ partNumber?: string | null;
8207
+ quantity?: number | null;
8208
+ material?: string | null;
8209
+ covered?: MaterialCoveredDto | null;
8210
+ items: TrackingHistoryDto[];
8211
+ constructor(data?: ITrackingParcelDto);
8212
+ init(_data?: any): void;
8213
+ static fromJS(data: any): TrackingParcelDto;
8214
+ toJSON(data?: any): any;
8215
+ }
8216
+ export interface ITrackingParcelDto {
8217
+ parcelId: string;
8218
+ parcelKind: ParcelKindDto;
8219
+ partName?: string | null;
8220
+ partNumber?: string | null;
8221
+ quantity?: number | null;
8222
+ material?: string | null;
8223
+ covered?: MaterialCoveredDto | null;
8224
+ items: TrackingHistoryDto[];
8225
+ }
8157
8226
  export declare class TrackingHistoryDto implements ITrackingHistoryDto {
8158
8227
  trackingId: string;
8159
8228
  palletNumber: number;
8160
- parcelKind: ParcelKindDto;
8161
- parcelId: string;
8229
+ activeBooking?: boolean | null;
8162
8230
  currentTracking?: TrackingEventDto | null;
8163
8231
  trackingEvents: TrackingEventDto[];
8164
- material?: string | null;
8165
- activeBooking?: boolean | null;
8166
8232
  constructor(data?: ITrackingHistoryDto);
8167
8233
  init(_data?: any): void;
8168
8234
  static fromJS(data: any): TrackingHistoryDto;
@@ -8171,12 +8237,9 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
8171
8237
  export interface ITrackingHistoryDto {
8172
8238
  trackingId: string;
8173
8239
  palletNumber: number;
8174
- parcelKind: ParcelKindDto;
8175
- parcelId: string;
8240
+ activeBooking?: boolean | null;
8176
8241
  currentTracking?: TrackingEventDto | null;
8177
8242
  trackingEvents: TrackingEventDto[];
8178
- material?: string | null;
8179
- activeBooking?: boolean | null;
8180
8243
  }
8181
8244
  export declare class TrackingEventDto implements ITrackingEventDto {
8182
8245
  id: number;
@@ -8227,31 +8290,15 @@ export interface ITrackingRequestListDto {
8227
8290
  includeActiveBookings?: boolean;
8228
8291
  continuationToken?: string | null;
8229
8292
  }
8230
- export declare class TrackingParcelDto implements ITrackingParcelDto {
8231
- parcelId: string;
8232
- part?: PartDto | null;
8233
- trackingHistory: TrackingHistoryDto[];
8234
- covered: MaterialCoveredDto;
8235
- constructor(data?: ITrackingParcelDto);
8236
- init(_data?: any): void;
8237
- static fromJS(data: any): TrackingParcelDto;
8238
- toJSON(data?: any): any;
8239
- }
8240
- export interface ITrackingParcelDto {
8241
- parcelId: string;
8242
- part?: PartDto | null;
8243
- trackingHistory: TrackingHistoryDto[];
8244
- covered: MaterialCoveredDto;
8245
- }
8246
- export declare class TrackingParcelListDto implements ITrackingParcelListDto {
8293
+ export declare class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
8247
8294
  parcelIds: string[];
8248
8295
  includeActiveBookings: boolean;
8249
- constructor(data?: ITrackingParcelListDto);
8296
+ constructor(data?: ITrackingParcelRequestListDto);
8250
8297
  init(_data?: any): void;
8251
- static fromJS(data: any): TrackingParcelListDto;
8298
+ static fromJS(data: any): TrackingParcelRequestListDto;
8252
8299
  toJSON(data?: any): any;
8253
8300
  }
8254
- export interface ITrackingParcelListDto {
8301
+ export interface ITrackingParcelRequestListDto {
8255
8302
  parcelIds: string[];
8256
8303
  includeActiveBookings: boolean;
8257
8304
  }
@@ -11791,6 +11838,82 @@ export interface ICreateCustomerMapping {
11791
11838
  existingCustomerId: string;
11792
11839
  newCustomerId: string;
11793
11840
  }
11841
+ export declare class PagedResultOfErpUserDto implements IPagedResultOfErpUserDto {
11842
+ results: ErpUserDto[];
11843
+ continuationToken?: string | null;
11844
+ constructor(data?: IPagedResultOfErpUserDto);
11845
+ init(_data?: any): void;
11846
+ static fromJS(data: any): PagedResultOfErpUserDto;
11847
+ toJSON(data?: any): any;
11848
+ }
11849
+ export interface IPagedResultOfErpUserDto {
11850
+ results: ErpUserDto[];
11851
+ continuationToken?: string | null;
11852
+ }
11853
+ export declare class ErpUserDto implements IErpUserDto {
11854
+ azureAdObjectId?: string | null;
11855
+ name?: string | null;
11856
+ upn: string;
11857
+ companyId?: string | null;
11858
+ userSelectedCompanyId?: string | null;
11859
+ personnelNumber?: string | null;
11860
+ badgeId?: string | null;
11861
+ email?: string | null;
11862
+ constructor(data?: IErpUserDto);
11863
+ init(_data?: any): void;
11864
+ static fromJS(data: any): ErpUserDto;
11865
+ toJSON(data?: any): any;
11866
+ }
11867
+ export interface IErpUserDto {
11868
+ azureAdObjectId?: string | null;
11869
+ name?: string | null;
11870
+ upn: string;
11871
+ companyId?: string | null;
11872
+ userSelectedCompanyId?: string | null;
11873
+ personnelNumber?: string | null;
11874
+ badgeId?: string | null;
11875
+ email?: string | null;
11876
+ }
11877
+ export declare class ListErpUsers implements IListErpUsers {
11878
+ pageSize?: number;
11879
+ filter?: string | null;
11880
+ continuationToken?: string | null;
11881
+ constructor(data?: IListErpUsers);
11882
+ init(_data?: any): void;
11883
+ static fromJS(data: any): ListErpUsers;
11884
+ toJSON(data?: any): any;
11885
+ }
11886
+ export interface IListErpUsers {
11887
+ pageSize?: number;
11888
+ filter?: string | null;
11889
+ continuationToken?: string | null;
11890
+ }
11891
+ export declare class ProductionPoolDto implements IProductionPoolDto {
11892
+ name: string;
11893
+ contactPersonUpn?: string | null;
11894
+ id?: string;
11895
+ constructor(data?: IProductionPoolDto);
11896
+ init(_data?: any): void;
11897
+ static fromJS(data: any): ProductionPoolDto;
11898
+ toJSON(data?: any): any;
11899
+ }
11900
+ export interface IProductionPoolDto {
11901
+ name: string;
11902
+ contactPersonUpn?: string | null;
11903
+ id?: string;
11904
+ }
11905
+ export declare class SetProductionPoolContactPerson implements ISetProductionPoolContactPerson {
11906
+ poolId: string;
11907
+ contactPersonUpn?: string | null;
11908
+ constructor(data?: ISetProductionPoolContactPerson);
11909
+ init(_data?: any): void;
11910
+ static fromJS(data: any): SetProductionPoolContactPerson;
11911
+ toJSON(data?: any): any;
11912
+ }
11913
+ export interface ISetProductionPoolContactPerson {
11914
+ poolId: string;
11915
+ contactPersonUpn?: string | null;
11916
+ }
11794
11917
  export declare class UpsertWorkorder implements IUpsertWorkorder {
11795
11918
  workorder: string;
11796
11919
  part: PartDto;