@ignos/api-client 20240910.0.10302 → 20240911.0.10313

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.
@@ -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>;
@@ -9046,6 +9049,28 @@ export interface IGenerateProductionOrderPdf {
9046
9049
  includeDrawing: boolean;
9047
9050
  }
9048
9051
  export type ProductionOrderPdfType = "Rich" | "Compact";
9052
+ export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
9053
+ labelIds: LabelId[];
9054
+ constructor(data?: IGeneratePrintableLabel);
9055
+ init(_data?: any): void;
9056
+ static fromJS(data: any): GeneratePrintableLabel;
9057
+ toJSON(data?: any): any;
9058
+ }
9059
+ export interface IGeneratePrintableLabel {
9060
+ labelIds: LabelId[];
9061
+ }
9062
+ export declare class LabelId implements ILabelId {
9063
+ parcelId: string;
9064
+ trackingId?: string | null;
9065
+ constructor(data?: ILabelId);
9066
+ init(_data?: any): void;
9067
+ static fromJS(data: any): LabelId;
9068
+ toJSON(data?: any): any;
9069
+ }
9070
+ export interface ILabelId {
9071
+ parcelId: string;
9072
+ trackingId?: string | null;
9073
+ }
9049
9074
  export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
9050
9075
  results: ProductionScheduleOperationDto[];
9051
9076
  continuationToken?: string | null;
@@ -10975,7 +11000,7 @@ export interface IMeasurementFormInstanceOverviewDto {
10975
11000
  supplierData?: MeasurementFormInstanceSupplierDto | null;
10976
11001
  progress: MeasurementFormProgressDto;
10977
11002
  }
10978
- export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved";
11003
+ export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
10979
11004
  export declare class MeasurementFormInstanceSchemaOverviewDto implements IMeasurementFormInstanceSchemaOverviewDto {
10980
11005
  id: string;
10981
11006
  constructor(data?: IMeasurementFormInstanceSchemaOverviewDto);
@@ -13683,6 +13683,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
13683
13683
  }
13684
13684
  return Promise.resolve(null);
13685
13685
  }
13686
+ getPrintableLabels(request) {
13687
+ let url_ = this.baseUrl + "/mes/labels/printable";
13688
+ url_ = url_.replace(/[?&]$/, "");
13689
+ const content_ = JSON.stringify(request);
13690
+ let options_ = {
13691
+ body: content_,
13692
+ method: "POST",
13693
+ headers: {
13694
+ "Content-Type": "application/json",
13695
+ "Accept": "application/json"
13696
+ }
13697
+ };
13698
+ return this.transformOptions(options_).then(transformedOptions_ => {
13699
+ return this.http.fetch(url_, transformedOptions_);
13700
+ }).then((_response) => {
13701
+ return this.processGetPrintableLabels(_response);
13702
+ });
13703
+ }
13704
+ processGetPrintableLabels(response) {
13705
+ const status = response.status;
13706
+ let _headers = {};
13707
+ if (response.headers && response.headers.forEach) {
13708
+ response.headers.forEach((v, k) => _headers[k] = v);
13709
+ }
13710
+ ;
13711
+ if (status === 200) {
13712
+ return response.text().then((_responseText) => {
13713
+ let result200 = null;
13714
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13715
+ result200 = DownloadDto.fromJS(resultData200);
13716
+ return result200;
13717
+ });
13718
+ }
13719
+ else if (status !== 200 && status !== 204) {
13720
+ return response.text().then((_responseText) => {
13721
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13722
+ });
13723
+ }
13724
+ return Promise.resolve(null);
13725
+ }
13686
13726
  }
13687
13727
  export class MesProductionScheduleClient extends AuthorizedApiBase {
13688
13728
  constructor(configuration, baseUrl, http) {
@@ -33117,6 +33157,71 @@ export class GenerateProductionOrderPdf {
33117
33157
  return data;
33118
33158
  }
33119
33159
  }
33160
+ export class GeneratePrintableLabel {
33161
+ constructor(data) {
33162
+ if (data) {
33163
+ for (var property in data) {
33164
+ if (data.hasOwnProperty(property))
33165
+ this[property] = data[property];
33166
+ }
33167
+ }
33168
+ if (!data) {
33169
+ this.labelIds = [];
33170
+ }
33171
+ }
33172
+ init(_data) {
33173
+ if (_data) {
33174
+ if (Array.isArray(_data["labelIds"])) {
33175
+ this.labelIds = [];
33176
+ for (let item of _data["labelIds"])
33177
+ this.labelIds.push(LabelId.fromJS(item));
33178
+ }
33179
+ }
33180
+ }
33181
+ static fromJS(data) {
33182
+ data = typeof data === 'object' ? data : {};
33183
+ let result = new GeneratePrintableLabel();
33184
+ result.init(data);
33185
+ return result;
33186
+ }
33187
+ toJSON(data) {
33188
+ data = typeof data === 'object' ? data : {};
33189
+ if (Array.isArray(this.labelIds)) {
33190
+ data["labelIds"] = [];
33191
+ for (let item of this.labelIds)
33192
+ data["labelIds"].push(item.toJSON());
33193
+ }
33194
+ return data;
33195
+ }
33196
+ }
33197
+ export class LabelId {
33198
+ constructor(data) {
33199
+ if (data) {
33200
+ for (var property in data) {
33201
+ if (data.hasOwnProperty(property))
33202
+ this[property] = data[property];
33203
+ }
33204
+ }
33205
+ }
33206
+ init(_data) {
33207
+ if (_data) {
33208
+ this.parcelId = _data["parcelId"];
33209
+ this.trackingId = _data["trackingId"];
33210
+ }
33211
+ }
33212
+ static fromJS(data) {
33213
+ data = typeof data === 'object' ? data : {};
33214
+ let result = new LabelId();
33215
+ result.init(data);
33216
+ return result;
33217
+ }
33218
+ toJSON(data) {
33219
+ data = typeof data === 'object' ? data : {};
33220
+ data["parcelId"] = this.parcelId;
33221
+ data["trackingId"] = this.trackingId;
33222
+ return data;
33223
+ }
33224
+ }
33120
33225
  export class PagedResultOfProductionScheduleOperationDto {
33121
33226
  constructor(data) {
33122
33227
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240910.0.10302",
3
+ "version": "20240911.0.10313",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -14266,6 +14266,8 @@ export interface IMesProductionOrderClient {
14266
14266
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
14267
14267
 
14268
14268
  getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
14269
+
14270
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
14269
14271
  }
14270
14272
 
14271
14273
  export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
@@ -14627,6 +14629,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
14627
14629
  }
14628
14630
  return Promise.resolve<DownloadDto>(null as any);
14629
14631
  }
14632
+
14633
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
14634
+ let url_ = this.baseUrl + "/mes/labels/printable";
14635
+ url_ = url_.replace(/[?&]$/, "");
14636
+
14637
+ const content_ = JSON.stringify(request);
14638
+
14639
+ let options_: RequestInit = {
14640
+ body: content_,
14641
+ method: "POST",
14642
+ headers: {
14643
+ "Content-Type": "application/json",
14644
+ "Accept": "application/json"
14645
+ }
14646
+ };
14647
+
14648
+ return this.transformOptions(options_).then(transformedOptions_ => {
14649
+ return this.http.fetch(url_, transformedOptions_);
14650
+ }).then((_response: Response) => {
14651
+ return this.processGetPrintableLabels(_response);
14652
+ });
14653
+ }
14654
+
14655
+ protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
14656
+ const status = response.status;
14657
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14658
+ if (status === 200) {
14659
+ return response.text().then((_responseText) => {
14660
+ let result200: any = null;
14661
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14662
+ result200 = DownloadDto.fromJS(resultData200);
14663
+ return result200;
14664
+ });
14665
+ } else if (status !== 200 && status !== 204) {
14666
+ return response.text().then((_responseText) => {
14667
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14668
+ });
14669
+ }
14670
+ return Promise.resolve<DownloadDto>(null as any);
14671
+ }
14630
14672
  }
14631
14673
 
14632
14674
  export interface IMesProductionScheduleClient {
@@ -41152,6 +41194,93 @@ export interface IGenerateProductionOrderPdf {
41152
41194
 
41153
41195
  export type ProductionOrderPdfType = "Rich" | "Compact";
41154
41196
 
41197
+ export class GeneratePrintableLabel implements IGeneratePrintableLabel {
41198
+ labelIds!: LabelId[];
41199
+
41200
+ constructor(data?: IGeneratePrintableLabel) {
41201
+ if (data) {
41202
+ for (var property in data) {
41203
+ if (data.hasOwnProperty(property))
41204
+ (<any>this)[property] = (<any>data)[property];
41205
+ }
41206
+ }
41207
+ if (!data) {
41208
+ this.labelIds = [];
41209
+ }
41210
+ }
41211
+
41212
+ init(_data?: any) {
41213
+ if (_data) {
41214
+ if (Array.isArray(_data["labelIds"])) {
41215
+ this.labelIds = [] as any;
41216
+ for (let item of _data["labelIds"])
41217
+ this.labelIds!.push(LabelId.fromJS(item));
41218
+ }
41219
+ }
41220
+ }
41221
+
41222
+ static fromJS(data: any): GeneratePrintableLabel {
41223
+ data = typeof data === 'object' ? data : {};
41224
+ let result = new GeneratePrintableLabel();
41225
+ result.init(data);
41226
+ return result;
41227
+ }
41228
+
41229
+ toJSON(data?: any) {
41230
+ data = typeof data === 'object' ? data : {};
41231
+ if (Array.isArray(this.labelIds)) {
41232
+ data["labelIds"] = [];
41233
+ for (let item of this.labelIds)
41234
+ data["labelIds"].push(item.toJSON());
41235
+ }
41236
+ return data;
41237
+ }
41238
+ }
41239
+
41240
+ export interface IGeneratePrintableLabel {
41241
+ labelIds: LabelId[];
41242
+ }
41243
+
41244
+ export class LabelId implements ILabelId {
41245
+ parcelId!: string;
41246
+ trackingId?: string | null;
41247
+
41248
+ constructor(data?: ILabelId) {
41249
+ if (data) {
41250
+ for (var property in data) {
41251
+ if (data.hasOwnProperty(property))
41252
+ (<any>this)[property] = (<any>data)[property];
41253
+ }
41254
+ }
41255
+ }
41256
+
41257
+ init(_data?: any) {
41258
+ if (_data) {
41259
+ this.parcelId = _data["parcelId"];
41260
+ this.trackingId = _data["trackingId"];
41261
+ }
41262
+ }
41263
+
41264
+ static fromJS(data: any): LabelId {
41265
+ data = typeof data === 'object' ? data : {};
41266
+ let result = new LabelId();
41267
+ result.init(data);
41268
+ return result;
41269
+ }
41270
+
41271
+ toJSON(data?: any) {
41272
+ data = typeof data === 'object' ? data : {};
41273
+ data["parcelId"] = this.parcelId;
41274
+ data["trackingId"] = this.trackingId;
41275
+ return data;
41276
+ }
41277
+ }
41278
+
41279
+ export interface ILabelId {
41280
+ parcelId: string;
41281
+ trackingId?: string | null;
41282
+ }
41283
+
41155
41284
  export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
41156
41285
  results!: ProductionScheduleOperationDto[];
41157
41286
  continuationToken?: string | null;
@@ -46880,7 +47009,7 @@ export interface IMeasurementFormInstanceOverviewDto {
46880
47009
  progress: MeasurementFormProgressDto;
46881
47010
  }
46882
47011
 
46883
- export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved";
47012
+ export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
46884
47013
 
46885
47014
  export class MeasurementFormInstanceSchemaOverviewDto implements IMeasurementFormInstanceSchemaOverviewDto {
46886
47015
  id!: string;