@ignos/api-client 20240916.0.10379 → 20240917.0.10396
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 +66 -24
- package/lib/ignosportal-api.js +137 -41
- package/package.json +1 -1
- package/src/ignosportal-api.ts +199 -65
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1718,6 +1718,19 @@ export declare class MesProjectsClient extends AuthorizedApiBase implements IMes
|
|
|
1718
1718
|
listOrderSchedule(request: ListOrderScheduleRequest): Promise<PagedResultOfWorkorderDto>;
|
|
1719
1719
|
protected processListOrderSchedule(response: Response): Promise<PagedResultOfWorkorderDto>;
|
|
1720
1720
|
}
|
|
1721
|
+
export interface IMesPurchaseOrderClient {
|
|
1722
|
+
getPurchaseOrderDetails(purchaseOrderNumber: string, productionOrderNumber: string | undefined): Promise<PurchaseOrderDetailsDto>;
|
|
1723
|
+
}
|
|
1724
|
+
export declare class MesPurchaseOrderClient extends AuthorizedApiBase implements IMesPurchaseOrderClient {
|
|
1725
|
+
private http;
|
|
1726
|
+
private baseUrl;
|
|
1727
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
1728
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
1729
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1730
|
+
});
|
|
1731
|
+
getPurchaseOrderDetails(purchaseOrderNumber: string, productionOrderNumber: string | undefined): Promise<PurchaseOrderDetailsDto>;
|
|
1732
|
+
protected processGetPurchaseOrderDetails(response: Response): Promise<PurchaseOrderDetailsDto>;
|
|
1733
|
+
}
|
|
1721
1734
|
export interface IMesResourceClient {
|
|
1722
1735
|
listResourceGroups(includeResources: boolean | undefined): Promise<ResourceGroupDto[]>;
|
|
1723
1736
|
listResourceGroupResources(id: string): Promise<ProductionResourceDto[]>;
|
|
@@ -9707,6 +9720,59 @@ export interface IListOrderScheduleRequest {
|
|
|
9707
9720
|
pageSize?: number | null;
|
|
9708
9721
|
continuationToken?: string | null;
|
|
9709
9722
|
}
|
|
9723
|
+
export declare class PurchaseOrderDetailsDto implements IPurchaseOrderDetailsDto {
|
|
9724
|
+
purchaseOrderNumber: string;
|
|
9725
|
+
productionOrderNumber: string;
|
|
9726
|
+
purchaseOrderLine: number;
|
|
9727
|
+
deliveryDate?: Date | null;
|
|
9728
|
+
confirmedDeliveryDate?: Date | null;
|
|
9729
|
+
status?: PurchaseOrderStatusDto | null;
|
|
9730
|
+
orderer?: ErpUserDto | null;
|
|
9731
|
+
requester?: ErpUserDto | null;
|
|
9732
|
+
purchasedQuantity: number;
|
|
9733
|
+
unit?: string | null;
|
|
9734
|
+
constructor(data?: IPurchaseOrderDetailsDto);
|
|
9735
|
+
init(_data?: any): void;
|
|
9736
|
+
static fromJS(data: any): PurchaseOrderDetailsDto;
|
|
9737
|
+
toJSON(data?: any): any;
|
|
9738
|
+
}
|
|
9739
|
+
export interface IPurchaseOrderDetailsDto {
|
|
9740
|
+
purchaseOrderNumber: string;
|
|
9741
|
+
productionOrderNumber: string;
|
|
9742
|
+
purchaseOrderLine: number;
|
|
9743
|
+
deliveryDate?: Date | null;
|
|
9744
|
+
confirmedDeliveryDate?: Date | null;
|
|
9745
|
+
status?: PurchaseOrderStatusDto | null;
|
|
9746
|
+
orderer?: ErpUserDto | null;
|
|
9747
|
+
requester?: ErpUserDto | null;
|
|
9748
|
+
purchasedQuantity: number;
|
|
9749
|
+
unit?: string | null;
|
|
9750
|
+
}
|
|
9751
|
+
export type PurchaseOrderStatusDto = "None" | "Backorder" | "Received" | "Invoiced" | "Canceled";
|
|
9752
|
+
export declare class ErpUserDto implements IErpUserDto {
|
|
9753
|
+
azureAdObjectId?: string | null;
|
|
9754
|
+
name?: string | null;
|
|
9755
|
+
upn: string;
|
|
9756
|
+
companyId?: string | null;
|
|
9757
|
+
userSelectedCompanyId?: string | null;
|
|
9758
|
+
personnelNumber?: string | null;
|
|
9759
|
+
badgeId?: string | null;
|
|
9760
|
+
email?: string | null;
|
|
9761
|
+
constructor(data?: IErpUserDto);
|
|
9762
|
+
init(_data?: any): void;
|
|
9763
|
+
static fromJS(data: any): ErpUserDto;
|
|
9764
|
+
toJSON(data?: any): any;
|
|
9765
|
+
}
|
|
9766
|
+
export interface IErpUserDto {
|
|
9767
|
+
azureAdObjectId?: string | null;
|
|
9768
|
+
name?: string | null;
|
|
9769
|
+
upn: string;
|
|
9770
|
+
companyId?: string | null;
|
|
9771
|
+
userSelectedCompanyId?: string | null;
|
|
9772
|
+
personnelNumber?: string | null;
|
|
9773
|
+
badgeId?: string | null;
|
|
9774
|
+
email?: string | null;
|
|
9775
|
+
}
|
|
9710
9776
|
export declare class ResourceGroupDto implements IResourceGroupDto {
|
|
9711
9777
|
id?: string;
|
|
9712
9778
|
name?: string;
|
|
@@ -12024,30 +12090,6 @@ export interface IPagedResultOfErpUserDto {
|
|
|
12024
12090
|
results: ErpUserDto[];
|
|
12025
12091
|
continuationToken?: string | null;
|
|
12026
12092
|
}
|
|
12027
|
-
export declare class ErpUserDto implements IErpUserDto {
|
|
12028
|
-
azureAdObjectId?: string | null;
|
|
12029
|
-
name?: string | null;
|
|
12030
|
-
upn: string;
|
|
12031
|
-
companyId?: string | null;
|
|
12032
|
-
userSelectedCompanyId?: string | null;
|
|
12033
|
-
personnelNumber?: string | null;
|
|
12034
|
-
badgeId?: string | null;
|
|
12035
|
-
email?: string | null;
|
|
12036
|
-
constructor(data?: IErpUserDto);
|
|
12037
|
-
init(_data?: any): void;
|
|
12038
|
-
static fromJS(data: any): ErpUserDto;
|
|
12039
|
-
toJSON(data?: any): any;
|
|
12040
|
-
}
|
|
12041
|
-
export interface IErpUserDto {
|
|
12042
|
-
azureAdObjectId?: string | null;
|
|
12043
|
-
name?: string | null;
|
|
12044
|
-
upn: string;
|
|
12045
|
-
companyId?: string | null;
|
|
12046
|
-
userSelectedCompanyId?: string | null;
|
|
12047
|
-
personnelNumber?: string | null;
|
|
12048
|
-
badgeId?: string | null;
|
|
12049
|
-
email?: string | null;
|
|
12050
|
-
}
|
|
12051
12093
|
export declare class ListErpUsers implements IListErpUsers {
|
|
12052
12094
|
pageSize?: number;
|
|
12053
12095
|
filter?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -13022,7 +13022,7 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
|
13022
13022
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
13023
13023
|
}
|
|
13024
13024
|
getEngineeringChangeOrders(partNumber) {
|
|
13025
|
-
let url_ = this.baseUrl + "/mes/
|
|
13025
|
+
let url_ = this.baseUrl + "/mes/engineering-change-orders?";
|
|
13026
13026
|
if (partNumber === null)
|
|
13027
13027
|
throw new Error("The parameter 'partNumber' cannot be null.");
|
|
13028
13028
|
else if (partNumber !== undefined)
|
|
@@ -14064,6 +14064,58 @@ export class MesProjectsClient extends AuthorizedApiBase {
|
|
|
14064
14064
|
return Promise.resolve(null);
|
|
14065
14065
|
}
|
|
14066
14066
|
}
|
|
14067
|
+
export class MesPurchaseOrderClient extends AuthorizedApiBase {
|
|
14068
|
+
constructor(configuration, baseUrl, http) {
|
|
14069
|
+
super(configuration);
|
|
14070
|
+
this.jsonParseReviver = undefined;
|
|
14071
|
+
this.http = http ? http : window;
|
|
14072
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
14073
|
+
}
|
|
14074
|
+
getPurchaseOrderDetails(purchaseOrderNumber, productionOrderNumber) {
|
|
14075
|
+
let url_ = this.baseUrl + "/mes/purchase-orders/{purchaseOrderNumber}?";
|
|
14076
|
+
if (purchaseOrderNumber === undefined || purchaseOrderNumber === null)
|
|
14077
|
+
throw new Error("The parameter 'purchaseOrderNumber' must be defined.");
|
|
14078
|
+
url_ = url_.replace("{purchaseOrderNumber}", encodeURIComponent("" + purchaseOrderNumber));
|
|
14079
|
+
if (productionOrderNumber === null)
|
|
14080
|
+
throw new Error("The parameter 'productionOrderNumber' cannot be null.");
|
|
14081
|
+
else if (productionOrderNumber !== undefined)
|
|
14082
|
+
url_ += "productionOrderNumber=" + encodeURIComponent("" + productionOrderNumber) + "&";
|
|
14083
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14084
|
+
let options_ = {
|
|
14085
|
+
method: "GET",
|
|
14086
|
+
headers: {
|
|
14087
|
+
"Accept": "application/json"
|
|
14088
|
+
}
|
|
14089
|
+
};
|
|
14090
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14091
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
14092
|
+
}).then((_response) => {
|
|
14093
|
+
return this.processGetPurchaseOrderDetails(_response);
|
|
14094
|
+
});
|
|
14095
|
+
}
|
|
14096
|
+
processGetPurchaseOrderDetails(response) {
|
|
14097
|
+
const status = response.status;
|
|
14098
|
+
let _headers = {};
|
|
14099
|
+
if (response.headers && response.headers.forEach) {
|
|
14100
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14101
|
+
}
|
|
14102
|
+
;
|
|
14103
|
+
if (status === 200) {
|
|
14104
|
+
return response.text().then((_responseText) => {
|
|
14105
|
+
let result200 = null;
|
|
14106
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14107
|
+
result200 = PurchaseOrderDetailsDto.fromJS(resultData200);
|
|
14108
|
+
return result200;
|
|
14109
|
+
});
|
|
14110
|
+
}
|
|
14111
|
+
else if (status !== 200 && status !== 204) {
|
|
14112
|
+
return response.text().then((_responseText) => {
|
|
14113
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14114
|
+
});
|
|
14115
|
+
}
|
|
14116
|
+
return Promise.resolve(null);
|
|
14117
|
+
}
|
|
14118
|
+
}
|
|
14067
14119
|
export class MesResourceClient extends AuthorizedApiBase {
|
|
14068
14120
|
constructor(configuration, baseUrl, http) {
|
|
14069
14121
|
super(configuration);
|
|
@@ -34562,6 +34614,90 @@ export class ListOrderScheduleRequest {
|
|
|
34562
34614
|
return data;
|
|
34563
34615
|
}
|
|
34564
34616
|
}
|
|
34617
|
+
export class PurchaseOrderDetailsDto {
|
|
34618
|
+
constructor(data) {
|
|
34619
|
+
if (data) {
|
|
34620
|
+
for (var property in data) {
|
|
34621
|
+
if (data.hasOwnProperty(property))
|
|
34622
|
+
this[property] = data[property];
|
|
34623
|
+
}
|
|
34624
|
+
}
|
|
34625
|
+
}
|
|
34626
|
+
init(_data) {
|
|
34627
|
+
if (_data) {
|
|
34628
|
+
this.purchaseOrderNumber = _data["purchaseOrderNumber"];
|
|
34629
|
+
this.productionOrderNumber = _data["productionOrderNumber"];
|
|
34630
|
+
this.purchaseOrderLine = _data["purchaseOrderLine"];
|
|
34631
|
+
this.deliveryDate = _data["deliveryDate"] ? new Date(_data["deliveryDate"].toString()) : undefined;
|
|
34632
|
+
this.confirmedDeliveryDate = _data["confirmedDeliveryDate"] ? new Date(_data["confirmedDeliveryDate"].toString()) : undefined;
|
|
34633
|
+
this.status = _data["status"];
|
|
34634
|
+
this.orderer = _data["orderer"] ? ErpUserDto.fromJS(_data["orderer"]) : undefined;
|
|
34635
|
+
this.requester = _data["requester"] ? ErpUserDto.fromJS(_data["requester"]) : undefined;
|
|
34636
|
+
this.purchasedQuantity = _data["purchasedQuantity"];
|
|
34637
|
+
this.unit = _data["unit"];
|
|
34638
|
+
}
|
|
34639
|
+
}
|
|
34640
|
+
static fromJS(data) {
|
|
34641
|
+
data = typeof data === 'object' ? data : {};
|
|
34642
|
+
let result = new PurchaseOrderDetailsDto();
|
|
34643
|
+
result.init(data);
|
|
34644
|
+
return result;
|
|
34645
|
+
}
|
|
34646
|
+
toJSON(data) {
|
|
34647
|
+
data = typeof data === 'object' ? data : {};
|
|
34648
|
+
data["purchaseOrderNumber"] = this.purchaseOrderNumber;
|
|
34649
|
+
data["productionOrderNumber"] = this.productionOrderNumber;
|
|
34650
|
+
data["purchaseOrderLine"] = this.purchaseOrderLine;
|
|
34651
|
+
data["deliveryDate"] = this.deliveryDate ? this.deliveryDate.toISOString() : undefined;
|
|
34652
|
+
data["confirmedDeliveryDate"] = this.confirmedDeliveryDate ? this.confirmedDeliveryDate.toISOString() : undefined;
|
|
34653
|
+
data["status"] = this.status;
|
|
34654
|
+
data["orderer"] = this.orderer ? this.orderer.toJSON() : undefined;
|
|
34655
|
+
data["requester"] = this.requester ? this.requester.toJSON() : undefined;
|
|
34656
|
+
data["purchasedQuantity"] = this.purchasedQuantity;
|
|
34657
|
+
data["unit"] = this.unit;
|
|
34658
|
+
return data;
|
|
34659
|
+
}
|
|
34660
|
+
}
|
|
34661
|
+
export class ErpUserDto {
|
|
34662
|
+
constructor(data) {
|
|
34663
|
+
if (data) {
|
|
34664
|
+
for (var property in data) {
|
|
34665
|
+
if (data.hasOwnProperty(property))
|
|
34666
|
+
this[property] = data[property];
|
|
34667
|
+
}
|
|
34668
|
+
}
|
|
34669
|
+
}
|
|
34670
|
+
init(_data) {
|
|
34671
|
+
if (_data) {
|
|
34672
|
+
this.azureAdObjectId = _data["azureAdObjectId"];
|
|
34673
|
+
this.name = _data["name"];
|
|
34674
|
+
this.upn = _data["upn"];
|
|
34675
|
+
this.companyId = _data["companyId"];
|
|
34676
|
+
this.userSelectedCompanyId = _data["userSelectedCompanyId"];
|
|
34677
|
+
this.personnelNumber = _data["personnelNumber"];
|
|
34678
|
+
this.badgeId = _data["badgeId"];
|
|
34679
|
+
this.email = _data["email"];
|
|
34680
|
+
}
|
|
34681
|
+
}
|
|
34682
|
+
static fromJS(data) {
|
|
34683
|
+
data = typeof data === 'object' ? data : {};
|
|
34684
|
+
let result = new ErpUserDto();
|
|
34685
|
+
result.init(data);
|
|
34686
|
+
return result;
|
|
34687
|
+
}
|
|
34688
|
+
toJSON(data) {
|
|
34689
|
+
data = typeof data === 'object' ? data : {};
|
|
34690
|
+
data["azureAdObjectId"] = this.azureAdObjectId;
|
|
34691
|
+
data["name"] = this.name;
|
|
34692
|
+
data["upn"] = this.upn;
|
|
34693
|
+
data["companyId"] = this.companyId;
|
|
34694
|
+
data["userSelectedCompanyId"] = this.userSelectedCompanyId;
|
|
34695
|
+
data["personnelNumber"] = this.personnelNumber;
|
|
34696
|
+
data["badgeId"] = this.badgeId;
|
|
34697
|
+
data["email"] = this.email;
|
|
34698
|
+
return data;
|
|
34699
|
+
}
|
|
34700
|
+
}
|
|
34565
34701
|
export class ResourceGroupDto {
|
|
34566
34702
|
constructor(data) {
|
|
34567
34703
|
if (data) {
|
|
@@ -39097,46 +39233,6 @@ export class PagedResultOfErpUserDto {
|
|
|
39097
39233
|
return data;
|
|
39098
39234
|
}
|
|
39099
39235
|
}
|
|
39100
|
-
export class ErpUserDto {
|
|
39101
|
-
constructor(data) {
|
|
39102
|
-
if (data) {
|
|
39103
|
-
for (var property in data) {
|
|
39104
|
-
if (data.hasOwnProperty(property))
|
|
39105
|
-
this[property] = data[property];
|
|
39106
|
-
}
|
|
39107
|
-
}
|
|
39108
|
-
}
|
|
39109
|
-
init(_data) {
|
|
39110
|
-
if (_data) {
|
|
39111
|
-
this.azureAdObjectId = _data["azureAdObjectId"];
|
|
39112
|
-
this.name = _data["name"];
|
|
39113
|
-
this.upn = _data["upn"];
|
|
39114
|
-
this.companyId = _data["companyId"];
|
|
39115
|
-
this.userSelectedCompanyId = _data["userSelectedCompanyId"];
|
|
39116
|
-
this.personnelNumber = _data["personnelNumber"];
|
|
39117
|
-
this.badgeId = _data["badgeId"];
|
|
39118
|
-
this.email = _data["email"];
|
|
39119
|
-
}
|
|
39120
|
-
}
|
|
39121
|
-
static fromJS(data) {
|
|
39122
|
-
data = typeof data === 'object' ? data : {};
|
|
39123
|
-
let result = new ErpUserDto();
|
|
39124
|
-
result.init(data);
|
|
39125
|
-
return result;
|
|
39126
|
-
}
|
|
39127
|
-
toJSON(data) {
|
|
39128
|
-
data = typeof data === 'object' ? data : {};
|
|
39129
|
-
data["azureAdObjectId"] = this.azureAdObjectId;
|
|
39130
|
-
data["name"] = this.name;
|
|
39131
|
-
data["upn"] = this.upn;
|
|
39132
|
-
data["companyId"] = this.companyId;
|
|
39133
|
-
data["userSelectedCompanyId"] = this.userSelectedCompanyId;
|
|
39134
|
-
data["personnelNumber"] = this.personnelNumber;
|
|
39135
|
-
data["badgeId"] = this.badgeId;
|
|
39136
|
-
data["email"] = this.email;
|
|
39137
|
-
return data;
|
|
39138
|
-
}
|
|
39139
|
-
}
|
|
39140
39236
|
export class ListErpUsers {
|
|
39141
39237
|
constructor(data) {
|
|
39142
39238
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -13934,7 +13934,7 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase implemen
|
|
|
13934
13934
|
}
|
|
13935
13935
|
|
|
13936
13936
|
getEngineeringChangeOrders(partNumber: string | undefined): Promise<EngineeringChangeOrderDto[]> {
|
|
13937
|
-
let url_ = this.baseUrl + "/mes/
|
|
13937
|
+
let url_ = this.baseUrl + "/mes/engineering-change-orders?";
|
|
13938
13938
|
if (partNumber === null)
|
|
13939
13939
|
throw new Error("The parameter 'partNumber' cannot be null.");
|
|
13940
13940
|
else if (partNumber !== undefined)
|
|
@@ -15037,6 +15037,66 @@ export class MesProjectsClient extends AuthorizedApiBase implements IMesProjects
|
|
|
15037
15037
|
}
|
|
15038
15038
|
}
|
|
15039
15039
|
|
|
15040
|
+
export interface IMesPurchaseOrderClient {
|
|
15041
|
+
|
|
15042
|
+
getPurchaseOrderDetails(purchaseOrderNumber: string, productionOrderNumber: string | undefined): Promise<PurchaseOrderDetailsDto>;
|
|
15043
|
+
}
|
|
15044
|
+
|
|
15045
|
+
export class MesPurchaseOrderClient extends AuthorizedApiBase implements IMesPurchaseOrderClient {
|
|
15046
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
15047
|
+
private baseUrl: string;
|
|
15048
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
15049
|
+
|
|
15050
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
15051
|
+
super(configuration);
|
|
15052
|
+
this.http = http ? http : window as any;
|
|
15053
|
+
this.baseUrl = baseUrl ?? "";
|
|
15054
|
+
}
|
|
15055
|
+
|
|
15056
|
+
getPurchaseOrderDetails(purchaseOrderNumber: string, productionOrderNumber: string | undefined): Promise<PurchaseOrderDetailsDto> {
|
|
15057
|
+
let url_ = this.baseUrl + "/mes/purchase-orders/{purchaseOrderNumber}?";
|
|
15058
|
+
if (purchaseOrderNumber === undefined || purchaseOrderNumber === null)
|
|
15059
|
+
throw new Error("The parameter 'purchaseOrderNumber' must be defined.");
|
|
15060
|
+
url_ = url_.replace("{purchaseOrderNumber}", encodeURIComponent("" + purchaseOrderNumber));
|
|
15061
|
+
if (productionOrderNumber === null)
|
|
15062
|
+
throw new Error("The parameter 'productionOrderNumber' cannot be null.");
|
|
15063
|
+
else if (productionOrderNumber !== undefined)
|
|
15064
|
+
url_ += "productionOrderNumber=" + encodeURIComponent("" + productionOrderNumber) + "&";
|
|
15065
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15066
|
+
|
|
15067
|
+
let options_: RequestInit = {
|
|
15068
|
+
method: "GET",
|
|
15069
|
+
headers: {
|
|
15070
|
+
"Accept": "application/json"
|
|
15071
|
+
}
|
|
15072
|
+
};
|
|
15073
|
+
|
|
15074
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
15075
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
15076
|
+
}).then((_response: Response) => {
|
|
15077
|
+
return this.processGetPurchaseOrderDetails(_response);
|
|
15078
|
+
});
|
|
15079
|
+
}
|
|
15080
|
+
|
|
15081
|
+
protected processGetPurchaseOrderDetails(response: Response): Promise<PurchaseOrderDetailsDto> {
|
|
15082
|
+
const status = response.status;
|
|
15083
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
15084
|
+
if (status === 200) {
|
|
15085
|
+
return response.text().then((_responseText) => {
|
|
15086
|
+
let result200: any = null;
|
|
15087
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15088
|
+
result200 = PurchaseOrderDetailsDto.fromJS(resultData200);
|
|
15089
|
+
return result200;
|
|
15090
|
+
});
|
|
15091
|
+
} else if (status !== 200 && status !== 204) {
|
|
15092
|
+
return response.text().then((_responseText) => {
|
|
15093
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15094
|
+
});
|
|
15095
|
+
}
|
|
15096
|
+
return Promise.resolve<PurchaseOrderDetailsDto>(null as any);
|
|
15097
|
+
}
|
|
15098
|
+
}
|
|
15099
|
+
|
|
15040
15100
|
export interface IMesResourceClient {
|
|
15041
15101
|
|
|
15042
15102
|
listResourceGroups(includeResources: boolean | undefined): Promise<ResourceGroupDto[]>;
|
|
@@ -43263,6 +43323,144 @@ export interface IListOrderScheduleRequest {
|
|
|
43263
43323
|
continuationToken?: string | null;
|
|
43264
43324
|
}
|
|
43265
43325
|
|
|
43326
|
+
export class PurchaseOrderDetailsDto implements IPurchaseOrderDetailsDto {
|
|
43327
|
+
purchaseOrderNumber!: string;
|
|
43328
|
+
productionOrderNumber!: string;
|
|
43329
|
+
purchaseOrderLine!: number;
|
|
43330
|
+
deliveryDate?: Date | null;
|
|
43331
|
+
confirmedDeliveryDate?: Date | null;
|
|
43332
|
+
status?: PurchaseOrderStatusDto | null;
|
|
43333
|
+
orderer?: ErpUserDto | null;
|
|
43334
|
+
requester?: ErpUserDto | null;
|
|
43335
|
+
purchasedQuantity!: number;
|
|
43336
|
+
unit?: string | null;
|
|
43337
|
+
|
|
43338
|
+
constructor(data?: IPurchaseOrderDetailsDto) {
|
|
43339
|
+
if (data) {
|
|
43340
|
+
for (var property in data) {
|
|
43341
|
+
if (data.hasOwnProperty(property))
|
|
43342
|
+
(<any>this)[property] = (<any>data)[property];
|
|
43343
|
+
}
|
|
43344
|
+
}
|
|
43345
|
+
}
|
|
43346
|
+
|
|
43347
|
+
init(_data?: any) {
|
|
43348
|
+
if (_data) {
|
|
43349
|
+
this.purchaseOrderNumber = _data["purchaseOrderNumber"];
|
|
43350
|
+
this.productionOrderNumber = _data["productionOrderNumber"];
|
|
43351
|
+
this.purchaseOrderLine = _data["purchaseOrderLine"];
|
|
43352
|
+
this.deliveryDate = _data["deliveryDate"] ? new Date(_data["deliveryDate"].toString()) : <any>undefined;
|
|
43353
|
+
this.confirmedDeliveryDate = _data["confirmedDeliveryDate"] ? new Date(_data["confirmedDeliveryDate"].toString()) : <any>undefined;
|
|
43354
|
+
this.status = _data["status"];
|
|
43355
|
+
this.orderer = _data["orderer"] ? ErpUserDto.fromJS(_data["orderer"]) : <any>undefined;
|
|
43356
|
+
this.requester = _data["requester"] ? ErpUserDto.fromJS(_data["requester"]) : <any>undefined;
|
|
43357
|
+
this.purchasedQuantity = _data["purchasedQuantity"];
|
|
43358
|
+
this.unit = _data["unit"];
|
|
43359
|
+
}
|
|
43360
|
+
}
|
|
43361
|
+
|
|
43362
|
+
static fromJS(data: any): PurchaseOrderDetailsDto {
|
|
43363
|
+
data = typeof data === 'object' ? data : {};
|
|
43364
|
+
let result = new PurchaseOrderDetailsDto();
|
|
43365
|
+
result.init(data);
|
|
43366
|
+
return result;
|
|
43367
|
+
}
|
|
43368
|
+
|
|
43369
|
+
toJSON(data?: any) {
|
|
43370
|
+
data = typeof data === 'object' ? data : {};
|
|
43371
|
+
data["purchaseOrderNumber"] = this.purchaseOrderNumber;
|
|
43372
|
+
data["productionOrderNumber"] = this.productionOrderNumber;
|
|
43373
|
+
data["purchaseOrderLine"] = this.purchaseOrderLine;
|
|
43374
|
+
data["deliveryDate"] = this.deliveryDate ? this.deliveryDate.toISOString() : <any>undefined;
|
|
43375
|
+
data["confirmedDeliveryDate"] = this.confirmedDeliveryDate ? this.confirmedDeliveryDate.toISOString() : <any>undefined;
|
|
43376
|
+
data["status"] = this.status;
|
|
43377
|
+
data["orderer"] = this.orderer ? this.orderer.toJSON() : <any>undefined;
|
|
43378
|
+
data["requester"] = this.requester ? this.requester.toJSON() : <any>undefined;
|
|
43379
|
+
data["purchasedQuantity"] = this.purchasedQuantity;
|
|
43380
|
+
data["unit"] = this.unit;
|
|
43381
|
+
return data;
|
|
43382
|
+
}
|
|
43383
|
+
}
|
|
43384
|
+
|
|
43385
|
+
export interface IPurchaseOrderDetailsDto {
|
|
43386
|
+
purchaseOrderNumber: string;
|
|
43387
|
+
productionOrderNumber: string;
|
|
43388
|
+
purchaseOrderLine: number;
|
|
43389
|
+
deliveryDate?: Date | null;
|
|
43390
|
+
confirmedDeliveryDate?: Date | null;
|
|
43391
|
+
status?: PurchaseOrderStatusDto | null;
|
|
43392
|
+
orderer?: ErpUserDto | null;
|
|
43393
|
+
requester?: ErpUserDto | null;
|
|
43394
|
+
purchasedQuantity: number;
|
|
43395
|
+
unit?: string | null;
|
|
43396
|
+
}
|
|
43397
|
+
|
|
43398
|
+
export type PurchaseOrderStatusDto = "None" | "Backorder" | "Received" | "Invoiced" | "Canceled";
|
|
43399
|
+
|
|
43400
|
+
export class ErpUserDto implements IErpUserDto {
|
|
43401
|
+
azureAdObjectId?: string | null;
|
|
43402
|
+
name?: string | null;
|
|
43403
|
+
upn!: string;
|
|
43404
|
+
companyId?: string | null;
|
|
43405
|
+
userSelectedCompanyId?: string | null;
|
|
43406
|
+
personnelNumber?: string | null;
|
|
43407
|
+
badgeId?: string | null;
|
|
43408
|
+
email?: string | null;
|
|
43409
|
+
|
|
43410
|
+
constructor(data?: IErpUserDto) {
|
|
43411
|
+
if (data) {
|
|
43412
|
+
for (var property in data) {
|
|
43413
|
+
if (data.hasOwnProperty(property))
|
|
43414
|
+
(<any>this)[property] = (<any>data)[property];
|
|
43415
|
+
}
|
|
43416
|
+
}
|
|
43417
|
+
}
|
|
43418
|
+
|
|
43419
|
+
init(_data?: any) {
|
|
43420
|
+
if (_data) {
|
|
43421
|
+
this.azureAdObjectId = _data["azureAdObjectId"];
|
|
43422
|
+
this.name = _data["name"];
|
|
43423
|
+
this.upn = _data["upn"];
|
|
43424
|
+
this.companyId = _data["companyId"];
|
|
43425
|
+
this.userSelectedCompanyId = _data["userSelectedCompanyId"];
|
|
43426
|
+
this.personnelNumber = _data["personnelNumber"];
|
|
43427
|
+
this.badgeId = _data["badgeId"];
|
|
43428
|
+
this.email = _data["email"];
|
|
43429
|
+
}
|
|
43430
|
+
}
|
|
43431
|
+
|
|
43432
|
+
static fromJS(data: any): ErpUserDto {
|
|
43433
|
+
data = typeof data === 'object' ? data : {};
|
|
43434
|
+
let result = new ErpUserDto();
|
|
43435
|
+
result.init(data);
|
|
43436
|
+
return result;
|
|
43437
|
+
}
|
|
43438
|
+
|
|
43439
|
+
toJSON(data?: any) {
|
|
43440
|
+
data = typeof data === 'object' ? data : {};
|
|
43441
|
+
data["azureAdObjectId"] = this.azureAdObjectId;
|
|
43442
|
+
data["name"] = this.name;
|
|
43443
|
+
data["upn"] = this.upn;
|
|
43444
|
+
data["companyId"] = this.companyId;
|
|
43445
|
+
data["userSelectedCompanyId"] = this.userSelectedCompanyId;
|
|
43446
|
+
data["personnelNumber"] = this.personnelNumber;
|
|
43447
|
+
data["badgeId"] = this.badgeId;
|
|
43448
|
+
data["email"] = this.email;
|
|
43449
|
+
return data;
|
|
43450
|
+
}
|
|
43451
|
+
}
|
|
43452
|
+
|
|
43453
|
+
export interface IErpUserDto {
|
|
43454
|
+
azureAdObjectId?: string | null;
|
|
43455
|
+
name?: string | null;
|
|
43456
|
+
upn: string;
|
|
43457
|
+
companyId?: string | null;
|
|
43458
|
+
userSelectedCompanyId?: string | null;
|
|
43459
|
+
personnelNumber?: string | null;
|
|
43460
|
+
badgeId?: string | null;
|
|
43461
|
+
email?: string | null;
|
|
43462
|
+
}
|
|
43463
|
+
|
|
43266
43464
|
export class ResourceGroupDto implements IResourceGroupDto {
|
|
43267
43465
|
id?: string;
|
|
43268
43466
|
name?: string;
|
|
@@ -50124,70 +50322,6 @@ export interface IPagedResultOfErpUserDto {
|
|
|
50124
50322
|
continuationToken?: string | null;
|
|
50125
50323
|
}
|
|
50126
50324
|
|
|
50127
|
-
export class ErpUserDto implements IErpUserDto {
|
|
50128
|
-
azureAdObjectId?: string | null;
|
|
50129
|
-
name?: string | null;
|
|
50130
|
-
upn!: string;
|
|
50131
|
-
companyId?: string | null;
|
|
50132
|
-
userSelectedCompanyId?: string | null;
|
|
50133
|
-
personnelNumber?: string | null;
|
|
50134
|
-
badgeId?: string | null;
|
|
50135
|
-
email?: string | null;
|
|
50136
|
-
|
|
50137
|
-
constructor(data?: IErpUserDto) {
|
|
50138
|
-
if (data) {
|
|
50139
|
-
for (var property in data) {
|
|
50140
|
-
if (data.hasOwnProperty(property))
|
|
50141
|
-
(<any>this)[property] = (<any>data)[property];
|
|
50142
|
-
}
|
|
50143
|
-
}
|
|
50144
|
-
}
|
|
50145
|
-
|
|
50146
|
-
init(_data?: any) {
|
|
50147
|
-
if (_data) {
|
|
50148
|
-
this.azureAdObjectId = _data["azureAdObjectId"];
|
|
50149
|
-
this.name = _data["name"];
|
|
50150
|
-
this.upn = _data["upn"];
|
|
50151
|
-
this.companyId = _data["companyId"];
|
|
50152
|
-
this.userSelectedCompanyId = _data["userSelectedCompanyId"];
|
|
50153
|
-
this.personnelNumber = _data["personnelNumber"];
|
|
50154
|
-
this.badgeId = _data["badgeId"];
|
|
50155
|
-
this.email = _data["email"];
|
|
50156
|
-
}
|
|
50157
|
-
}
|
|
50158
|
-
|
|
50159
|
-
static fromJS(data: any): ErpUserDto {
|
|
50160
|
-
data = typeof data === 'object' ? data : {};
|
|
50161
|
-
let result = new ErpUserDto();
|
|
50162
|
-
result.init(data);
|
|
50163
|
-
return result;
|
|
50164
|
-
}
|
|
50165
|
-
|
|
50166
|
-
toJSON(data?: any) {
|
|
50167
|
-
data = typeof data === 'object' ? data : {};
|
|
50168
|
-
data["azureAdObjectId"] = this.azureAdObjectId;
|
|
50169
|
-
data["name"] = this.name;
|
|
50170
|
-
data["upn"] = this.upn;
|
|
50171
|
-
data["companyId"] = this.companyId;
|
|
50172
|
-
data["userSelectedCompanyId"] = this.userSelectedCompanyId;
|
|
50173
|
-
data["personnelNumber"] = this.personnelNumber;
|
|
50174
|
-
data["badgeId"] = this.badgeId;
|
|
50175
|
-
data["email"] = this.email;
|
|
50176
|
-
return data;
|
|
50177
|
-
}
|
|
50178
|
-
}
|
|
50179
|
-
|
|
50180
|
-
export interface IErpUserDto {
|
|
50181
|
-
azureAdObjectId?: string | null;
|
|
50182
|
-
name?: string | null;
|
|
50183
|
-
upn: string;
|
|
50184
|
-
companyId?: string | null;
|
|
50185
|
-
userSelectedCompanyId?: string | null;
|
|
50186
|
-
personnelNumber?: string | null;
|
|
50187
|
-
badgeId?: string | null;
|
|
50188
|
-
email?: string | null;
|
|
50189
|
-
}
|
|
50190
|
-
|
|
50191
50325
|
export class ListErpUsers implements IListErpUsers {
|
|
50192
50326
|
pageSize?: number;
|
|
50193
50327
|
filter?: string | null;
|