@ignos/api-client 20240916.0.10383 → 20240926.0.10453
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.
- package/lib/ignosportal-api.d.ts +68 -3
- package/lib/ignosportal-api.js +198 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +258 -3
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -2429,6 +2455,18 @@ export interface ICurrentCustomerDto {
|
|
|
2429
2455
|
name?: string | null;
|
|
2430
2456
|
logoUrl?: string | null;
|
|
2431
2457
|
}
|
|
2458
|
+
export declare class GuestLoginInfoDto implements IGuestLoginInfoDto {
|
|
2459
|
+
tenantId?: string;
|
|
2460
|
+
customerName?: string;
|
|
2461
|
+
constructor(data?: IGuestLoginInfoDto);
|
|
2462
|
+
init(_data?: any): void;
|
|
2463
|
+
static fromJS(data: any): GuestLoginInfoDto;
|
|
2464
|
+
toJSON(data?: any): any;
|
|
2465
|
+
}
|
|
2466
|
+
export interface IGuestLoginInfoDto {
|
|
2467
|
+
tenantId?: string;
|
|
2468
|
+
customerName?: string;
|
|
2469
|
+
}
|
|
2432
2470
|
export declare class ComponentSettingsDto implements IComponentSettingsDto {
|
|
2433
2471
|
componentId?: string | null;
|
|
2434
2472
|
disabledFields?: string[] | null;
|
|
@@ -8213,7 +8251,7 @@ export interface IBookingStatusUpdateDto {
|
|
|
8213
8251
|
deliveryExceptionToLocationId?: string | null;
|
|
8214
8252
|
deliveryExceptionComment?: string | null;
|
|
8215
8253
|
}
|
|
8216
|
-
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environmental" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack"
|
|
8254
|
+
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environmental" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack";
|
|
8217
8255
|
export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
|
|
8218
8256
|
materialId: string;
|
|
8219
8257
|
materialName: string;
|
|
@@ -8480,6 +8518,30 @@ export interface ILabelUpdateDto {
|
|
|
8480
8518
|
trackingId?: string | null;
|
|
8481
8519
|
comment?: string | null;
|
|
8482
8520
|
}
|
|
8521
|
+
export declare class VendorBatchLookupDto implements IVendorBatchLookupDto {
|
|
8522
|
+
batchNumber?: string;
|
|
8523
|
+
vendorBatchNumber?: string | null;
|
|
8524
|
+
constructor(data?: IVendorBatchLookupDto);
|
|
8525
|
+
init(_data?: any): void;
|
|
8526
|
+
static fromJS(data: any): VendorBatchLookupDto;
|
|
8527
|
+
toJSON(data?: any): any;
|
|
8528
|
+
}
|
|
8529
|
+
export interface IVendorBatchLookupDto {
|
|
8530
|
+
batchNumber?: string;
|
|
8531
|
+
vendorBatchNumber?: string | null;
|
|
8532
|
+
}
|
|
8533
|
+
export declare class ListVendorBatches implements IListVendorBatches {
|
|
8534
|
+
partNumber: string;
|
|
8535
|
+
batchNumbers: string[];
|
|
8536
|
+
constructor(data?: IListVendorBatches);
|
|
8537
|
+
init(_data?: any): void;
|
|
8538
|
+
static fromJS(data: any): ListVendorBatches;
|
|
8539
|
+
toJSON(data?: any): any;
|
|
8540
|
+
}
|
|
8541
|
+
export interface IListVendorBatches {
|
|
8542
|
+
partNumber: string;
|
|
8543
|
+
batchNumbers: string[];
|
|
8544
|
+
}
|
|
8483
8545
|
export declare class WorkerDto implements IWorkerDto {
|
|
8484
8546
|
personnelNumber?: string | null;
|
|
8485
8547
|
badgeId?: string | null;
|
|
@@ -9726,10 +9788,11 @@ export declare class PurchaseOrderDetailsDto implements IPurchaseOrderDetailsDto
|
|
|
9726
9788
|
purchaseOrderLine: number;
|
|
9727
9789
|
deliveryDate?: Date | null;
|
|
9728
9790
|
confirmedDeliveryDate?: Date | null;
|
|
9729
|
-
status?:
|
|
9791
|
+
status?: PurchaseOrderStatusDto | null;
|
|
9730
9792
|
orderer?: ErpUserDto | null;
|
|
9731
9793
|
requester?: ErpUserDto | null;
|
|
9732
9794
|
purchasedQuantity: number;
|
|
9795
|
+
unit?: string | null;
|
|
9733
9796
|
constructor(data?: IPurchaseOrderDetailsDto);
|
|
9734
9797
|
init(_data?: any): void;
|
|
9735
9798
|
static fromJS(data: any): PurchaseOrderDetailsDto;
|
|
@@ -9741,11 +9804,13 @@ export interface IPurchaseOrderDetailsDto {
|
|
|
9741
9804
|
purchaseOrderLine: number;
|
|
9742
9805
|
deliveryDate?: Date | null;
|
|
9743
9806
|
confirmedDeliveryDate?: Date | null;
|
|
9744
|
-
status?:
|
|
9807
|
+
status?: PurchaseOrderStatusDto | null;
|
|
9745
9808
|
orderer?: ErpUserDto | null;
|
|
9746
9809
|
requester?: ErpUserDto | null;
|
|
9747
9810
|
purchasedQuantity: number;
|
|
9811
|
+
unit?: string | null;
|
|
9748
9812
|
}
|
|
9813
|
+
export type PurchaseOrderStatusDto = "None" | "Backorder" | "Received" | "Invoiced" | "Canceled";
|
|
9749
9814
|
export declare class ErpUserDto implements IErpUserDto {
|
|
9750
9815
|
azureAdObjectId?: string | null;
|
|
9751
9816
|
name?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -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);
|
|
@@ -19666,6 +19767,34 @@ export class CurrentCustomerDto {
|
|
|
19666
19767
|
return data;
|
|
19667
19768
|
}
|
|
19668
19769
|
}
|
|
19770
|
+
export class GuestLoginInfoDto {
|
|
19771
|
+
constructor(data) {
|
|
19772
|
+
if (data) {
|
|
19773
|
+
for (var property in data) {
|
|
19774
|
+
if (data.hasOwnProperty(property))
|
|
19775
|
+
this[property] = data[property];
|
|
19776
|
+
}
|
|
19777
|
+
}
|
|
19778
|
+
}
|
|
19779
|
+
init(_data) {
|
|
19780
|
+
if (_data) {
|
|
19781
|
+
this.tenantId = _data["tenantId"];
|
|
19782
|
+
this.customerName = _data["customerName"];
|
|
19783
|
+
}
|
|
19784
|
+
}
|
|
19785
|
+
static fromJS(data) {
|
|
19786
|
+
data = typeof data === 'object' ? data : {};
|
|
19787
|
+
let result = new GuestLoginInfoDto();
|
|
19788
|
+
result.init(data);
|
|
19789
|
+
return result;
|
|
19790
|
+
}
|
|
19791
|
+
toJSON(data) {
|
|
19792
|
+
data = typeof data === 'object' ? data : {};
|
|
19793
|
+
data["tenantId"] = this.tenantId;
|
|
19794
|
+
data["customerName"] = this.customerName;
|
|
19795
|
+
return data;
|
|
19796
|
+
}
|
|
19797
|
+
}
|
|
19669
19798
|
export class ComponentSettingsDto {
|
|
19670
19799
|
constructor(data) {
|
|
19671
19800
|
if (data) {
|
|
@@ -32084,6 +32213,73 @@ export class LabelUpdateDto {
|
|
|
32084
32213
|
return data;
|
|
32085
32214
|
}
|
|
32086
32215
|
}
|
|
32216
|
+
export class VendorBatchLookupDto {
|
|
32217
|
+
constructor(data) {
|
|
32218
|
+
if (data) {
|
|
32219
|
+
for (var property in data) {
|
|
32220
|
+
if (data.hasOwnProperty(property))
|
|
32221
|
+
this[property] = data[property];
|
|
32222
|
+
}
|
|
32223
|
+
}
|
|
32224
|
+
}
|
|
32225
|
+
init(_data) {
|
|
32226
|
+
if (_data) {
|
|
32227
|
+
this.batchNumber = _data["batchNumber"];
|
|
32228
|
+
this.vendorBatchNumber = _data["vendorBatchNumber"];
|
|
32229
|
+
}
|
|
32230
|
+
}
|
|
32231
|
+
static fromJS(data) {
|
|
32232
|
+
data = typeof data === 'object' ? data : {};
|
|
32233
|
+
let result = new VendorBatchLookupDto();
|
|
32234
|
+
result.init(data);
|
|
32235
|
+
return result;
|
|
32236
|
+
}
|
|
32237
|
+
toJSON(data) {
|
|
32238
|
+
data = typeof data === 'object' ? data : {};
|
|
32239
|
+
data["batchNumber"] = this.batchNumber;
|
|
32240
|
+
data["vendorBatchNumber"] = this.vendorBatchNumber;
|
|
32241
|
+
return data;
|
|
32242
|
+
}
|
|
32243
|
+
}
|
|
32244
|
+
export class ListVendorBatches {
|
|
32245
|
+
constructor(data) {
|
|
32246
|
+
if (data) {
|
|
32247
|
+
for (var property in data) {
|
|
32248
|
+
if (data.hasOwnProperty(property))
|
|
32249
|
+
this[property] = data[property];
|
|
32250
|
+
}
|
|
32251
|
+
}
|
|
32252
|
+
if (!data) {
|
|
32253
|
+
this.batchNumbers = [];
|
|
32254
|
+
}
|
|
32255
|
+
}
|
|
32256
|
+
init(_data) {
|
|
32257
|
+
if (_data) {
|
|
32258
|
+
this.partNumber = _data["partNumber"];
|
|
32259
|
+
if (Array.isArray(_data["batchNumbers"])) {
|
|
32260
|
+
this.batchNumbers = [];
|
|
32261
|
+
for (let item of _data["batchNumbers"])
|
|
32262
|
+
this.batchNumbers.push(item);
|
|
32263
|
+
}
|
|
32264
|
+
}
|
|
32265
|
+
}
|
|
32266
|
+
static fromJS(data) {
|
|
32267
|
+
data = typeof data === 'object' ? data : {};
|
|
32268
|
+
let result = new ListVendorBatches();
|
|
32269
|
+
result.init(data);
|
|
32270
|
+
return result;
|
|
32271
|
+
}
|
|
32272
|
+
toJSON(data) {
|
|
32273
|
+
data = typeof data === 'object' ? data : {};
|
|
32274
|
+
data["partNumber"] = this.partNumber;
|
|
32275
|
+
if (Array.isArray(this.batchNumbers)) {
|
|
32276
|
+
data["batchNumbers"] = [];
|
|
32277
|
+
for (let item of this.batchNumbers)
|
|
32278
|
+
data["batchNumbers"].push(item);
|
|
32279
|
+
}
|
|
32280
|
+
return data;
|
|
32281
|
+
}
|
|
32282
|
+
}
|
|
32087
32283
|
export class WorkerDto {
|
|
32088
32284
|
constructor(data) {
|
|
32089
32285
|
if (data) {
|
|
@@ -34634,6 +34830,7 @@ export class PurchaseOrderDetailsDto {
|
|
|
34634
34830
|
this.orderer = _data["orderer"] ? ErpUserDto.fromJS(_data["orderer"]) : undefined;
|
|
34635
34831
|
this.requester = _data["requester"] ? ErpUserDto.fromJS(_data["requester"]) : undefined;
|
|
34636
34832
|
this.purchasedQuantity = _data["purchasedQuantity"];
|
|
34833
|
+
this.unit = _data["unit"];
|
|
34637
34834
|
}
|
|
34638
34835
|
}
|
|
34639
34836
|
static fromJS(data) {
|
|
@@ -34653,6 +34850,7 @@ export class PurchaseOrderDetailsDto {
|
|
|
34653
34850
|
data["orderer"] = this.orderer ? this.orderer.toJSON() : undefined;
|
|
34654
34851
|
data["requester"] = this.requester ? this.requester.toJSON() : undefined;
|
|
34655
34852
|
data["purchasedQuantity"] = this.purchasedQuantity;
|
|
34853
|
+
data["unit"] = this.unit;
|
|
34656
34854
|
return data;
|
|
34657
34855
|
}
|
|
34658
34856
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -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>;
|
|
@@ -21043,6 +21161,46 @@ export interface ICurrentCustomerDto {
|
|
|
21043
21161
|
logoUrl?: string | null;
|
|
21044
21162
|
}
|
|
21045
21163
|
|
|
21164
|
+
export class GuestLoginInfoDto implements IGuestLoginInfoDto {
|
|
21165
|
+
tenantId?: string;
|
|
21166
|
+
customerName?: string;
|
|
21167
|
+
|
|
21168
|
+
constructor(data?: IGuestLoginInfoDto) {
|
|
21169
|
+
if (data) {
|
|
21170
|
+
for (var property in data) {
|
|
21171
|
+
if (data.hasOwnProperty(property))
|
|
21172
|
+
(<any>this)[property] = (<any>data)[property];
|
|
21173
|
+
}
|
|
21174
|
+
}
|
|
21175
|
+
}
|
|
21176
|
+
|
|
21177
|
+
init(_data?: any) {
|
|
21178
|
+
if (_data) {
|
|
21179
|
+
this.tenantId = _data["tenantId"];
|
|
21180
|
+
this.customerName = _data["customerName"];
|
|
21181
|
+
}
|
|
21182
|
+
}
|
|
21183
|
+
|
|
21184
|
+
static fromJS(data: any): GuestLoginInfoDto {
|
|
21185
|
+
data = typeof data === 'object' ? data : {};
|
|
21186
|
+
let result = new GuestLoginInfoDto();
|
|
21187
|
+
result.init(data);
|
|
21188
|
+
return result;
|
|
21189
|
+
}
|
|
21190
|
+
|
|
21191
|
+
toJSON(data?: any) {
|
|
21192
|
+
data = typeof data === 'object' ? data : {};
|
|
21193
|
+
data["tenantId"] = this.tenantId;
|
|
21194
|
+
data["customerName"] = this.customerName;
|
|
21195
|
+
return data;
|
|
21196
|
+
}
|
|
21197
|
+
}
|
|
21198
|
+
|
|
21199
|
+
export interface IGuestLoginInfoDto {
|
|
21200
|
+
tenantId?: string;
|
|
21201
|
+
customerName?: string;
|
|
21202
|
+
}
|
|
21203
|
+
|
|
21046
21204
|
export class ComponentSettingsDto implements IComponentSettingsDto {
|
|
21047
21205
|
componentId?: string | null;
|
|
21048
21206
|
disabledFields?: string[] | null;
|
|
@@ -38627,7 +38785,7 @@ export interface IBookingStatusUpdateDto {
|
|
|
38627
38785
|
deliveryExceptionComment?: string | null;
|
|
38628
38786
|
}
|
|
38629
38787
|
|
|
38630
|
-
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environmental" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack"
|
|
38788
|
+
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environmental" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack";
|
|
38631
38789
|
|
|
38632
38790
|
export class MaterialDesciptionDto implements IMaterialDesciptionDto {
|
|
38633
38791
|
materialId!: string;
|
|
@@ -39545,6 +39703,97 @@ export interface ILabelUpdateDto {
|
|
|
39545
39703
|
comment?: string | null;
|
|
39546
39704
|
}
|
|
39547
39705
|
|
|
39706
|
+
export class VendorBatchLookupDto implements IVendorBatchLookupDto {
|
|
39707
|
+
batchNumber?: string;
|
|
39708
|
+
vendorBatchNumber?: string | null;
|
|
39709
|
+
|
|
39710
|
+
constructor(data?: IVendorBatchLookupDto) {
|
|
39711
|
+
if (data) {
|
|
39712
|
+
for (var property in data) {
|
|
39713
|
+
if (data.hasOwnProperty(property))
|
|
39714
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39715
|
+
}
|
|
39716
|
+
}
|
|
39717
|
+
}
|
|
39718
|
+
|
|
39719
|
+
init(_data?: any) {
|
|
39720
|
+
if (_data) {
|
|
39721
|
+
this.batchNumber = _data["batchNumber"];
|
|
39722
|
+
this.vendorBatchNumber = _data["vendorBatchNumber"];
|
|
39723
|
+
}
|
|
39724
|
+
}
|
|
39725
|
+
|
|
39726
|
+
static fromJS(data: any): VendorBatchLookupDto {
|
|
39727
|
+
data = typeof data === 'object' ? data : {};
|
|
39728
|
+
let result = new VendorBatchLookupDto();
|
|
39729
|
+
result.init(data);
|
|
39730
|
+
return result;
|
|
39731
|
+
}
|
|
39732
|
+
|
|
39733
|
+
toJSON(data?: any) {
|
|
39734
|
+
data = typeof data === 'object' ? data : {};
|
|
39735
|
+
data["batchNumber"] = this.batchNumber;
|
|
39736
|
+
data["vendorBatchNumber"] = this.vendorBatchNumber;
|
|
39737
|
+
return data;
|
|
39738
|
+
}
|
|
39739
|
+
}
|
|
39740
|
+
|
|
39741
|
+
export interface IVendorBatchLookupDto {
|
|
39742
|
+
batchNumber?: string;
|
|
39743
|
+
vendorBatchNumber?: string | null;
|
|
39744
|
+
}
|
|
39745
|
+
|
|
39746
|
+
export class ListVendorBatches implements IListVendorBatches {
|
|
39747
|
+
partNumber!: string;
|
|
39748
|
+
batchNumbers!: string[];
|
|
39749
|
+
|
|
39750
|
+
constructor(data?: IListVendorBatches) {
|
|
39751
|
+
if (data) {
|
|
39752
|
+
for (var property in data) {
|
|
39753
|
+
if (data.hasOwnProperty(property))
|
|
39754
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39755
|
+
}
|
|
39756
|
+
}
|
|
39757
|
+
if (!data) {
|
|
39758
|
+
this.batchNumbers = [];
|
|
39759
|
+
}
|
|
39760
|
+
}
|
|
39761
|
+
|
|
39762
|
+
init(_data?: any) {
|
|
39763
|
+
if (_data) {
|
|
39764
|
+
this.partNumber = _data["partNumber"];
|
|
39765
|
+
if (Array.isArray(_data["batchNumbers"])) {
|
|
39766
|
+
this.batchNumbers = [] as any;
|
|
39767
|
+
for (let item of _data["batchNumbers"])
|
|
39768
|
+
this.batchNumbers!.push(item);
|
|
39769
|
+
}
|
|
39770
|
+
}
|
|
39771
|
+
}
|
|
39772
|
+
|
|
39773
|
+
static fromJS(data: any): ListVendorBatches {
|
|
39774
|
+
data = typeof data === 'object' ? data : {};
|
|
39775
|
+
let result = new ListVendorBatches();
|
|
39776
|
+
result.init(data);
|
|
39777
|
+
return result;
|
|
39778
|
+
}
|
|
39779
|
+
|
|
39780
|
+
toJSON(data?: any) {
|
|
39781
|
+
data = typeof data === 'object' ? data : {};
|
|
39782
|
+
data["partNumber"] = this.partNumber;
|
|
39783
|
+
if (Array.isArray(this.batchNumbers)) {
|
|
39784
|
+
data["batchNumbers"] = [];
|
|
39785
|
+
for (let item of this.batchNumbers)
|
|
39786
|
+
data["batchNumbers"].push(item);
|
|
39787
|
+
}
|
|
39788
|
+
return data;
|
|
39789
|
+
}
|
|
39790
|
+
}
|
|
39791
|
+
|
|
39792
|
+
export interface IListVendorBatches {
|
|
39793
|
+
partNumber: string;
|
|
39794
|
+
batchNumbers: string[];
|
|
39795
|
+
}
|
|
39796
|
+
|
|
39548
39797
|
export class WorkerDto implements IWorkerDto {
|
|
39549
39798
|
personnelNumber?: string | null;
|
|
39550
39799
|
badgeId?: string | null;
|
|
@@ -43329,10 +43578,11 @@ export class PurchaseOrderDetailsDto implements IPurchaseOrderDetailsDto {
|
|
|
43329
43578
|
purchaseOrderLine!: number;
|
|
43330
43579
|
deliveryDate?: Date | null;
|
|
43331
43580
|
confirmedDeliveryDate?: Date | null;
|
|
43332
|
-
status?:
|
|
43581
|
+
status?: PurchaseOrderStatusDto | null;
|
|
43333
43582
|
orderer?: ErpUserDto | null;
|
|
43334
43583
|
requester?: ErpUserDto | null;
|
|
43335
43584
|
purchasedQuantity!: number;
|
|
43585
|
+
unit?: string | null;
|
|
43336
43586
|
|
|
43337
43587
|
constructor(data?: IPurchaseOrderDetailsDto) {
|
|
43338
43588
|
if (data) {
|
|
@@ -43354,6 +43604,7 @@ export class PurchaseOrderDetailsDto implements IPurchaseOrderDetailsDto {
|
|
|
43354
43604
|
this.orderer = _data["orderer"] ? ErpUserDto.fromJS(_data["orderer"]) : <any>undefined;
|
|
43355
43605
|
this.requester = _data["requester"] ? ErpUserDto.fromJS(_data["requester"]) : <any>undefined;
|
|
43356
43606
|
this.purchasedQuantity = _data["purchasedQuantity"];
|
|
43607
|
+
this.unit = _data["unit"];
|
|
43357
43608
|
}
|
|
43358
43609
|
}
|
|
43359
43610
|
|
|
@@ -43375,6 +43626,7 @@ export class PurchaseOrderDetailsDto implements IPurchaseOrderDetailsDto {
|
|
|
43375
43626
|
data["orderer"] = this.orderer ? this.orderer.toJSON() : <any>undefined;
|
|
43376
43627
|
data["requester"] = this.requester ? this.requester.toJSON() : <any>undefined;
|
|
43377
43628
|
data["purchasedQuantity"] = this.purchasedQuantity;
|
|
43629
|
+
data["unit"] = this.unit;
|
|
43378
43630
|
return data;
|
|
43379
43631
|
}
|
|
43380
43632
|
}
|
|
@@ -43385,12 +43637,15 @@ export interface IPurchaseOrderDetailsDto {
|
|
|
43385
43637
|
purchaseOrderLine: number;
|
|
43386
43638
|
deliveryDate?: Date | null;
|
|
43387
43639
|
confirmedDeliveryDate?: Date | null;
|
|
43388
|
-
status?:
|
|
43640
|
+
status?: PurchaseOrderStatusDto | null;
|
|
43389
43641
|
orderer?: ErpUserDto | null;
|
|
43390
43642
|
requester?: ErpUserDto | null;
|
|
43391
43643
|
purchasedQuantity: number;
|
|
43644
|
+
unit?: string | null;
|
|
43392
43645
|
}
|
|
43393
43646
|
|
|
43647
|
+
export type PurchaseOrderStatusDto = "None" | "Backorder" | "Received" | "Invoiced" | "Canceled";
|
|
43648
|
+
|
|
43394
43649
|
export class ErpUserDto implements IErpUserDto {
|
|
43395
43650
|
azureAdObjectId?: string | null;
|
|
43396
43651
|
name?: string | null;
|