@ignos/api-client 20240910.0.10290 → 20240910.0.10291-alpha
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 +25 -0
- package/lib/ignosportal-api.js +105 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +129 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1646,6 +1646,7 @@ export interface IMesProductionOrderClient {
|
|
|
1646
1646
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1647
1647
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1648
1648
|
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
1649
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1649
1650
|
}
|
|
1650
1651
|
export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
1651
1652
|
private http;
|
|
@@ -1670,6 +1671,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
1670
1671
|
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1671
1672
|
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
1672
1673
|
protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto>;
|
|
1674
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1675
|
+
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
1673
1676
|
}
|
|
1674
1677
|
export interface IMesProductionScheduleClient {
|
|
1675
1678
|
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
@@ -9070,6 +9073,28 @@ export interface IGenerateProductionOrderPdf {
|
|
|
9070
9073
|
includeDrawing: boolean;
|
|
9071
9074
|
}
|
|
9072
9075
|
export type ProductionOrderPdfType = "Rich" | "Compact";
|
|
9076
|
+
export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
9077
|
+
labelIds: LabelId[];
|
|
9078
|
+
constructor(data?: IGeneratePrintableLabel);
|
|
9079
|
+
init(_data?: any): void;
|
|
9080
|
+
static fromJS(data: any): GeneratePrintableLabel;
|
|
9081
|
+
toJSON(data?: any): any;
|
|
9082
|
+
}
|
|
9083
|
+
export interface IGeneratePrintableLabel {
|
|
9084
|
+
labelIds: LabelId[];
|
|
9085
|
+
}
|
|
9086
|
+
export declare class LabelId implements ILabelId {
|
|
9087
|
+
parcelId: string;
|
|
9088
|
+
trackingId?: string | null;
|
|
9089
|
+
constructor(data?: ILabelId);
|
|
9090
|
+
init(_data?: any): void;
|
|
9091
|
+
static fromJS(data: any): LabelId;
|
|
9092
|
+
toJSON(data?: any): any;
|
|
9093
|
+
}
|
|
9094
|
+
export interface ILabelId {
|
|
9095
|
+
parcelId: string;
|
|
9096
|
+
trackingId?: string | null;
|
|
9097
|
+
}
|
|
9073
9098
|
export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
9074
9099
|
results: ProductionScheduleOperationDto[];
|
|
9075
9100
|
continuationToken?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -13680,6 +13680,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
13680
13680
|
}
|
|
13681
13681
|
return Promise.resolve(null);
|
|
13682
13682
|
}
|
|
13683
|
+
getPrintableLabels(request) {
|
|
13684
|
+
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
13685
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13686
|
+
const content_ = JSON.stringify(request);
|
|
13687
|
+
let options_ = {
|
|
13688
|
+
body: content_,
|
|
13689
|
+
method: "POST",
|
|
13690
|
+
headers: {
|
|
13691
|
+
"Content-Type": "application/json",
|
|
13692
|
+
"Accept": "application/json"
|
|
13693
|
+
}
|
|
13694
|
+
};
|
|
13695
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13696
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13697
|
+
}).then((_response) => {
|
|
13698
|
+
return this.processGetPrintableLabels(_response);
|
|
13699
|
+
});
|
|
13700
|
+
}
|
|
13701
|
+
processGetPrintableLabels(response) {
|
|
13702
|
+
const status = response.status;
|
|
13703
|
+
let _headers = {};
|
|
13704
|
+
if (response.headers && response.headers.forEach) {
|
|
13705
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13706
|
+
}
|
|
13707
|
+
;
|
|
13708
|
+
if (status === 200) {
|
|
13709
|
+
return response.text().then((_responseText) => {
|
|
13710
|
+
let result200 = null;
|
|
13711
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13712
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
13713
|
+
return result200;
|
|
13714
|
+
});
|
|
13715
|
+
}
|
|
13716
|
+
else if (status !== 200 && status !== 204) {
|
|
13717
|
+
return response.text().then((_responseText) => {
|
|
13718
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13719
|
+
});
|
|
13720
|
+
}
|
|
13721
|
+
return Promise.resolve(null);
|
|
13722
|
+
}
|
|
13683
13723
|
}
|
|
13684
13724
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
13685
13725
|
constructor(configuration, baseUrl, http) {
|
|
@@ -33197,6 +33237,71 @@ export class GenerateProductionOrderPdf {
|
|
|
33197
33237
|
return data;
|
|
33198
33238
|
}
|
|
33199
33239
|
}
|
|
33240
|
+
export class GeneratePrintableLabel {
|
|
33241
|
+
constructor(data) {
|
|
33242
|
+
if (data) {
|
|
33243
|
+
for (var property in data) {
|
|
33244
|
+
if (data.hasOwnProperty(property))
|
|
33245
|
+
this[property] = data[property];
|
|
33246
|
+
}
|
|
33247
|
+
}
|
|
33248
|
+
if (!data) {
|
|
33249
|
+
this.labelIds = [];
|
|
33250
|
+
}
|
|
33251
|
+
}
|
|
33252
|
+
init(_data) {
|
|
33253
|
+
if (_data) {
|
|
33254
|
+
if (Array.isArray(_data["labelIds"])) {
|
|
33255
|
+
this.labelIds = [];
|
|
33256
|
+
for (let item of _data["labelIds"])
|
|
33257
|
+
this.labelIds.push(LabelId.fromJS(item));
|
|
33258
|
+
}
|
|
33259
|
+
}
|
|
33260
|
+
}
|
|
33261
|
+
static fromJS(data) {
|
|
33262
|
+
data = typeof data === 'object' ? data : {};
|
|
33263
|
+
let result = new GeneratePrintableLabel();
|
|
33264
|
+
result.init(data);
|
|
33265
|
+
return result;
|
|
33266
|
+
}
|
|
33267
|
+
toJSON(data) {
|
|
33268
|
+
data = typeof data === 'object' ? data : {};
|
|
33269
|
+
if (Array.isArray(this.labelIds)) {
|
|
33270
|
+
data["labelIds"] = [];
|
|
33271
|
+
for (let item of this.labelIds)
|
|
33272
|
+
data["labelIds"].push(item.toJSON());
|
|
33273
|
+
}
|
|
33274
|
+
return data;
|
|
33275
|
+
}
|
|
33276
|
+
}
|
|
33277
|
+
export class LabelId {
|
|
33278
|
+
constructor(data) {
|
|
33279
|
+
if (data) {
|
|
33280
|
+
for (var property in data) {
|
|
33281
|
+
if (data.hasOwnProperty(property))
|
|
33282
|
+
this[property] = data[property];
|
|
33283
|
+
}
|
|
33284
|
+
}
|
|
33285
|
+
}
|
|
33286
|
+
init(_data) {
|
|
33287
|
+
if (_data) {
|
|
33288
|
+
this.parcelId = _data["parcelId"];
|
|
33289
|
+
this.trackingId = _data["trackingId"];
|
|
33290
|
+
}
|
|
33291
|
+
}
|
|
33292
|
+
static fromJS(data) {
|
|
33293
|
+
data = typeof data === 'object' ? data : {};
|
|
33294
|
+
let result = new LabelId();
|
|
33295
|
+
result.init(data);
|
|
33296
|
+
return result;
|
|
33297
|
+
}
|
|
33298
|
+
toJSON(data) {
|
|
33299
|
+
data = typeof data === 'object' ? data : {};
|
|
33300
|
+
data["parcelId"] = this.parcelId;
|
|
33301
|
+
data["trackingId"] = this.trackingId;
|
|
33302
|
+
return data;
|
|
33303
|
+
}
|
|
33304
|
+
}
|
|
33200
33305
|
export class PagedResultOfProductionScheduleOperationDto {
|
|
33201
33306
|
constructor(data) {
|
|
33202
33307
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -14264,6 +14264,8 @@ export interface IMesProductionOrderClient {
|
|
|
14264
14264
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
14265
14265
|
|
|
14266
14266
|
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
14267
|
+
|
|
14268
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
14267
14269
|
}
|
|
14268
14270
|
|
|
14269
14271
|
export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
@@ -14625,6 +14627,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
14625
14627
|
}
|
|
14626
14628
|
return Promise.resolve<DownloadDto>(null as any);
|
|
14627
14629
|
}
|
|
14630
|
+
|
|
14631
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
|
|
14632
|
+
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
14633
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14634
|
+
|
|
14635
|
+
const content_ = JSON.stringify(request);
|
|
14636
|
+
|
|
14637
|
+
let options_: RequestInit = {
|
|
14638
|
+
body: content_,
|
|
14639
|
+
method: "POST",
|
|
14640
|
+
headers: {
|
|
14641
|
+
"Content-Type": "application/json",
|
|
14642
|
+
"Accept": "application/json"
|
|
14643
|
+
}
|
|
14644
|
+
};
|
|
14645
|
+
|
|
14646
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14647
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
14648
|
+
}).then((_response: Response) => {
|
|
14649
|
+
return this.processGetPrintableLabels(_response);
|
|
14650
|
+
});
|
|
14651
|
+
}
|
|
14652
|
+
|
|
14653
|
+
protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
|
|
14654
|
+
const status = response.status;
|
|
14655
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14656
|
+
if (status === 200) {
|
|
14657
|
+
return response.text().then((_responseText) => {
|
|
14658
|
+
let result200: any = null;
|
|
14659
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14660
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
14661
|
+
return result200;
|
|
14662
|
+
});
|
|
14663
|
+
} else if (status !== 200 && status !== 204) {
|
|
14664
|
+
return response.text().then((_responseText) => {
|
|
14665
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14666
|
+
});
|
|
14667
|
+
}
|
|
14668
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
14669
|
+
}
|
|
14628
14670
|
}
|
|
14629
14671
|
|
|
14630
14672
|
export interface IMesProductionScheduleClient {
|
|
@@ -41257,6 +41299,93 @@ export interface IGenerateProductionOrderPdf {
|
|
|
41257
41299
|
|
|
41258
41300
|
export type ProductionOrderPdfType = "Rich" | "Compact";
|
|
41259
41301
|
|
|
41302
|
+
export class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
41303
|
+
labelIds!: LabelId[];
|
|
41304
|
+
|
|
41305
|
+
constructor(data?: IGeneratePrintableLabel) {
|
|
41306
|
+
if (data) {
|
|
41307
|
+
for (var property in data) {
|
|
41308
|
+
if (data.hasOwnProperty(property))
|
|
41309
|
+
(<any>this)[property] = (<any>data)[property];
|
|
41310
|
+
}
|
|
41311
|
+
}
|
|
41312
|
+
if (!data) {
|
|
41313
|
+
this.labelIds = [];
|
|
41314
|
+
}
|
|
41315
|
+
}
|
|
41316
|
+
|
|
41317
|
+
init(_data?: any) {
|
|
41318
|
+
if (_data) {
|
|
41319
|
+
if (Array.isArray(_data["labelIds"])) {
|
|
41320
|
+
this.labelIds = [] as any;
|
|
41321
|
+
for (let item of _data["labelIds"])
|
|
41322
|
+
this.labelIds!.push(LabelId.fromJS(item));
|
|
41323
|
+
}
|
|
41324
|
+
}
|
|
41325
|
+
}
|
|
41326
|
+
|
|
41327
|
+
static fromJS(data: any): GeneratePrintableLabel {
|
|
41328
|
+
data = typeof data === 'object' ? data : {};
|
|
41329
|
+
let result = new GeneratePrintableLabel();
|
|
41330
|
+
result.init(data);
|
|
41331
|
+
return result;
|
|
41332
|
+
}
|
|
41333
|
+
|
|
41334
|
+
toJSON(data?: any) {
|
|
41335
|
+
data = typeof data === 'object' ? data : {};
|
|
41336
|
+
if (Array.isArray(this.labelIds)) {
|
|
41337
|
+
data["labelIds"] = [];
|
|
41338
|
+
for (let item of this.labelIds)
|
|
41339
|
+
data["labelIds"].push(item.toJSON());
|
|
41340
|
+
}
|
|
41341
|
+
return data;
|
|
41342
|
+
}
|
|
41343
|
+
}
|
|
41344
|
+
|
|
41345
|
+
export interface IGeneratePrintableLabel {
|
|
41346
|
+
labelIds: LabelId[];
|
|
41347
|
+
}
|
|
41348
|
+
|
|
41349
|
+
export class LabelId implements ILabelId {
|
|
41350
|
+
parcelId!: string;
|
|
41351
|
+
trackingId?: string | null;
|
|
41352
|
+
|
|
41353
|
+
constructor(data?: ILabelId) {
|
|
41354
|
+
if (data) {
|
|
41355
|
+
for (var property in data) {
|
|
41356
|
+
if (data.hasOwnProperty(property))
|
|
41357
|
+
(<any>this)[property] = (<any>data)[property];
|
|
41358
|
+
}
|
|
41359
|
+
}
|
|
41360
|
+
}
|
|
41361
|
+
|
|
41362
|
+
init(_data?: any) {
|
|
41363
|
+
if (_data) {
|
|
41364
|
+
this.parcelId = _data["parcelId"];
|
|
41365
|
+
this.trackingId = _data["trackingId"];
|
|
41366
|
+
}
|
|
41367
|
+
}
|
|
41368
|
+
|
|
41369
|
+
static fromJS(data: any): LabelId {
|
|
41370
|
+
data = typeof data === 'object' ? data : {};
|
|
41371
|
+
let result = new LabelId();
|
|
41372
|
+
result.init(data);
|
|
41373
|
+
return result;
|
|
41374
|
+
}
|
|
41375
|
+
|
|
41376
|
+
toJSON(data?: any) {
|
|
41377
|
+
data = typeof data === 'object' ? data : {};
|
|
41378
|
+
data["parcelId"] = this.parcelId;
|
|
41379
|
+
data["trackingId"] = this.trackingId;
|
|
41380
|
+
return data;
|
|
41381
|
+
}
|
|
41382
|
+
}
|
|
41383
|
+
|
|
41384
|
+
export interface ILabelId {
|
|
41385
|
+
parcelId: string;
|
|
41386
|
+
trackingId?: string | null;
|
|
41387
|
+
}
|
|
41388
|
+
|
|
41260
41389
|
export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
41261
41390
|
results!: ProductionScheduleOperationDto[];
|
|
41262
41391
|
continuationToken?: string | null;
|