@ignos/api-client 20251120.0.13297 → 20251209.0.13462-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.
@@ -2669,6 +2669,10 @@ export interface IWorkordersClient {
2669
2669
  * Register end work or setup on a workorder operation.
2670
2670
  */
2671
2671
  stopWorkorderOperationV2(id: string, operation: number, request: StopWorkOperationRequest): Promise<WorkorderOperationEventDto>;
2672
+ /**
2673
+ * Sync work order operation
2674
+ */
2675
+ syncWorkorderOperation(id: string, operation: number, request: SyncWorkorderOperationRequest): Promise<WorkorderOperationEventDto>;
2672
2676
  listActiveWorkorderOperations(): Promise<WorkorderOperationEventDto[]>;
2673
2677
  deleteWorkorderOperationEvent(id: string, operation: number, eventId: string): Promise<void>;
2674
2678
  /**
@@ -2781,6 +2785,11 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
2781
2785
  */
2782
2786
  stopWorkorderOperationV2(id: string, operation: number, request: StopWorkOperationRequest): Promise<WorkorderOperationEventDto>;
2783
2787
  protected processStopWorkorderOperationV2(response: Response): Promise<WorkorderOperationEventDto>;
2788
+ /**
2789
+ * Sync work order operation
2790
+ */
2791
+ syncWorkorderOperation(id: string, operation: number, request: SyncWorkorderOperationRequest): Promise<WorkorderOperationEventDto>;
2792
+ protected processSyncWorkorderOperation(response: Response): Promise<WorkorderOperationEventDto>;
2784
2793
  listActiveWorkorderOperations(): Promise<WorkorderOperationEventDto[]>;
2785
2794
  protected processListActiveWorkorderOperations(response: Response): Promise<WorkorderOperationEventDto[]>;
2786
2795
  deleteWorkorderOperationEvent(id: string, operation: number, eventId: string): Promise<void>;
@@ -4541,6 +4550,8 @@ export declare class MrbTemplateDto implements IMrbTemplateDto {
4541
4550
  sharedAccessUri?: string | null;
4542
4551
  contentIndicator?: string | null;
4543
4552
  noContentIndicator?: string | null;
4553
+ showSerialNumbersOnFrontPage?: boolean;
4554
+ showSerialNumbersOnCoC?: boolean;
4544
4555
  elements: MrbTemplateElementDto[];
4545
4556
  tableOfContents?: MrbTemplateTableOfContentsDto | null;
4546
4557
  constructor(data?: IMrbTemplateDto);
@@ -4559,6 +4570,8 @@ export interface IMrbTemplateDto {
4559
4570
  sharedAccessUri?: string | null;
4560
4571
  contentIndicator?: string | null;
4561
4572
  noContentIndicator?: string | null;
4573
+ showSerialNumbersOnFrontPage?: boolean;
4574
+ showSerialNumbersOnCoC?: boolean;
4562
4575
  elements: MrbTemplateElementDto[];
4563
4576
  tableOfContents?: MrbTemplateTableOfContentsDto | null;
4564
4577
  }
@@ -4731,6 +4744,7 @@ export declare class MrbCompanySettingsDto implements IMrbCompanySettingsDto {
4731
4744
  hideVendorBatchInfo: boolean;
4732
4745
  lotLabel?: string | null;
4733
4746
  vendorBatchLabel?: string | null;
4747
+ ownArticleLabel?: string | null;
4734
4748
  coCStatement?: string | null;
4735
4749
  addressLines: string[];
4736
4750
  sequenceFormat?: string | null;
@@ -4751,6 +4765,7 @@ export interface IMrbCompanySettingsDto {
4751
4765
  hideVendorBatchInfo: boolean;
4752
4766
  lotLabel?: string | null;
4753
4767
  vendorBatchLabel?: string | null;
4768
+ ownArticleLabel?: string | null;
4754
4769
  coCStatement?: string | null;
4755
4770
  addressLines: string[];
4756
4771
  sequenceFormat?: string | null;
@@ -4767,6 +4782,7 @@ export declare class UpsertMrbCompanySettings implements IUpsertMrbCompanySettin
4767
4782
  hideVendorBatchInfo: boolean;
4768
4783
  lotLabel?: string | null;
4769
4784
  vendorBatchLabel?: string | null;
4785
+ ownArticleLabel?: string | null;
4770
4786
  coCStatement?: string | null;
4771
4787
  addressLines: string[];
4772
4788
  sequenceFormat?: string | null;
@@ -4787,6 +4803,7 @@ export interface IUpsertMrbCompanySettings {
4787
4803
  hideVendorBatchInfo: boolean;
4788
4804
  lotLabel?: string | null;
4789
4805
  vendorBatchLabel?: string | null;
4806
+ ownArticleLabel?: string | null;
4790
4807
  coCStatement?: string | null;
4791
4808
  addressLines: string[];
4792
4809
  sequenceFormat?: string | null;
@@ -4832,6 +4849,10 @@ export declare class PartDto implements IPartDto {
4832
4849
  partNumber: string;
4833
4850
  partRevision?: string | null;
4834
4851
  partName?: string | null;
4852
+ customerPartNumber?: string | null;
4853
+ customerPartRevision?: string | null;
4854
+ customerPartName?: string | null;
4855
+ vendorPartNumber?: string | null;
4835
4856
  drawing?: string | null;
4836
4857
  drawingRevision?: string | null;
4837
4858
  material?: string | null;
@@ -4845,6 +4866,10 @@ export interface IPartDto {
4845
4866
  partNumber: string;
4846
4867
  partRevision?: string | null;
4847
4868
  partName?: string | null;
4869
+ customerPartNumber?: string | null;
4870
+ customerPartRevision?: string | null;
4871
+ customerPartName?: string | null;
4872
+ vendorPartNumber?: string | null;
4848
4873
  drawing?: string | null;
4849
4874
  drawingRevision?: string | null;
4850
4875
  material?: string | null;
@@ -14471,6 +14496,44 @@ export interface IStopWorkOperationRequest {
14471
14496
  companyId?: string | null;
14472
14497
  ignoreNotFoundEvents?: boolean | null;
14473
14498
  }
14499
+ export declare class SyncWorkorderOperationRequest implements ISyncWorkorderOperationRequest {
14500
+ workorderDescription?: string | null;
14501
+ operationDescription?: string | null;
14502
+ isSetup: boolean;
14503
+ employee?: EmployeeDto | null;
14504
+ resourceId: string;
14505
+ customerOrder?: CustomerOrderInfoDto | null;
14506
+ part?: PartDto | null;
14507
+ workorderQuantity?: number | null;
14508
+ startTime: Date;
14509
+ endTime?: Date | null;
14510
+ materialPartNumber?: string | null;
14511
+ materialPartName?: string | null;
14512
+ materialItemGroup?: string | null;
14513
+ externalId?: string | null;
14514
+ companyId?: string | null;
14515
+ constructor(data?: ISyncWorkorderOperationRequest);
14516
+ init(_data?: any): void;
14517
+ static fromJS(data: any): SyncWorkorderOperationRequest;
14518
+ toJSON(data?: any): any;
14519
+ }
14520
+ export interface ISyncWorkorderOperationRequest {
14521
+ workorderDescription?: string | null;
14522
+ operationDescription?: string | null;
14523
+ isSetup: boolean;
14524
+ employee?: EmployeeDto | null;
14525
+ resourceId: string;
14526
+ customerOrder?: CustomerOrderInfoDto | null;
14527
+ part?: PartDto | null;
14528
+ workorderQuantity?: number | null;
14529
+ startTime: Date;
14530
+ endTime?: Date | null;
14531
+ materialPartNumber?: string | null;
14532
+ materialPartName?: string | null;
14533
+ materialItemGroup?: string | null;
14534
+ externalId?: string | null;
14535
+ companyId?: string | null;
14536
+ }
14474
14537
  export declare class PagedResultOfWorkorderListDto implements IPagedResultOfWorkorderListDto {
14475
14538
  results: WorkorderListDto[];
14476
14539
  continuationToken?: string | null;
@@ -22832,9 +22832,53 @@ export class WorkordersClient extends AuthorizedApiBase {
22832
22832
  return result200;
22833
22833
  });
22834
22834
  }
22835
- else if (status === 204) {
22835
+ else if (status !== 200 && status !== 204) {
22836
22836
  return response.text().then((_responseText) => {
22837
- return throwException("A server side error occurred.", status, _responseText, _headers);
22837
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22838
+ });
22839
+ }
22840
+ return Promise.resolve(null);
22841
+ }
22842
+ /**
22843
+ * Sync work order operation
22844
+ */
22845
+ syncWorkorderOperation(id, operation, request) {
22846
+ let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/sync";
22847
+ if (id === undefined || id === null)
22848
+ throw new globalThis.Error("The parameter 'id' must be defined.");
22849
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22850
+ if (operation === undefined || operation === null)
22851
+ throw new globalThis.Error("The parameter 'operation' must be defined.");
22852
+ url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
22853
+ url_ = url_.replace(/[?&]$/, "");
22854
+ const content_ = JSON.stringify(request);
22855
+ let options_ = {
22856
+ body: content_,
22857
+ method: "POST",
22858
+ headers: {
22859
+ "Content-Type": "application/json",
22860
+ "Accept": "application/json"
22861
+ }
22862
+ };
22863
+ return this.transformOptions(options_).then(transformedOptions_ => {
22864
+ return this.http.fetch(url_, transformedOptions_);
22865
+ }).then((_response) => {
22866
+ return this.processSyncWorkorderOperation(_response);
22867
+ });
22868
+ }
22869
+ processSyncWorkorderOperation(response) {
22870
+ const status = response.status;
22871
+ let _headers = {};
22872
+ if (response.headers && response.headers.forEach) {
22873
+ response.headers.forEach((v, k) => _headers[k] = v);
22874
+ }
22875
+ ;
22876
+ if (status === 200) {
22877
+ return response.text().then((_responseText) => {
22878
+ let result200 = null;
22879
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22880
+ result200 = WorkorderOperationEventDto.fromJS(resultData200);
22881
+ return result200;
22838
22882
  });
22839
22883
  }
22840
22884
  else if (status !== 200 && status !== 204) {
@@ -27403,6 +27447,8 @@ export class MrbTemplateDto {
27403
27447
  this.sharedAccessUri = _data["sharedAccessUri"];
27404
27448
  this.contentIndicator = _data["contentIndicator"];
27405
27449
  this.noContentIndicator = _data["noContentIndicator"];
27450
+ this.showSerialNumbersOnFrontPage = _data["showSerialNumbersOnFrontPage"];
27451
+ this.showSerialNumbersOnCoC = _data["showSerialNumbersOnCoC"];
27406
27452
  if (Array.isArray(_data["elements"])) {
27407
27453
  this.elements = [];
27408
27454
  for (let item of _data["elements"])
@@ -27429,6 +27475,8 @@ export class MrbTemplateDto {
27429
27475
  data["sharedAccessUri"] = this.sharedAccessUri;
27430
27476
  data["contentIndicator"] = this.contentIndicator;
27431
27477
  data["noContentIndicator"] = this.noContentIndicator;
27478
+ data["showSerialNumbersOnFrontPage"] = this.showSerialNumbersOnFrontPage;
27479
+ data["showSerialNumbersOnCoC"] = this.showSerialNumbersOnCoC;
27432
27480
  if (Array.isArray(this.elements)) {
27433
27481
  data["elements"] = [];
27434
27482
  for (let item of this.elements)
@@ -27797,6 +27845,7 @@ export class MrbCompanySettingsDto {
27797
27845
  this.hideVendorBatchInfo = _data["hideVendorBatchInfo"];
27798
27846
  this.lotLabel = _data["lotLabel"];
27799
27847
  this.vendorBatchLabel = _data["vendorBatchLabel"];
27848
+ this.ownArticleLabel = _data["ownArticleLabel"];
27800
27849
  this.coCStatement = _data["coCStatement"];
27801
27850
  if (Array.isArray(_data["addressLines"])) {
27802
27851
  this.addressLines = [];
@@ -27829,6 +27878,7 @@ export class MrbCompanySettingsDto {
27829
27878
  data["hideVendorBatchInfo"] = this.hideVendorBatchInfo;
27830
27879
  data["lotLabel"] = this.lotLabel;
27831
27880
  data["vendorBatchLabel"] = this.vendorBatchLabel;
27881
+ data["ownArticleLabel"] = this.ownArticleLabel;
27832
27882
  data["coCStatement"] = this.coCStatement;
27833
27883
  if (Array.isArray(this.addressLines)) {
27834
27884
  data["addressLines"] = [];
@@ -27869,6 +27919,7 @@ export class UpsertMrbCompanySettings {
27869
27919
  this.hideVendorBatchInfo = _data["hideVendorBatchInfo"];
27870
27920
  this.lotLabel = _data["lotLabel"];
27871
27921
  this.vendorBatchLabel = _data["vendorBatchLabel"];
27922
+ this.ownArticleLabel = _data["ownArticleLabel"];
27872
27923
  this.coCStatement = _data["coCStatement"];
27873
27924
  if (Array.isArray(_data["addressLines"])) {
27874
27925
  this.addressLines = [];
@@ -27901,6 +27952,7 @@ export class UpsertMrbCompanySettings {
27901
27952
  data["hideVendorBatchInfo"] = this.hideVendorBatchInfo;
27902
27953
  data["lotLabel"] = this.lotLabel;
27903
27954
  data["vendorBatchLabel"] = this.vendorBatchLabel;
27955
+ data["ownArticleLabel"] = this.ownArticleLabel;
27904
27956
  data["coCStatement"] = this.coCStatement;
27905
27957
  if (Array.isArray(this.addressLines)) {
27906
27958
  data["addressLines"] = [];
@@ -28022,6 +28074,10 @@ export class PartDto {
28022
28074
  this.partNumber = _data["partNumber"];
28023
28075
  this.partRevision = _data["partRevision"];
28024
28076
  this.partName = _data["partName"];
28077
+ this.customerPartNumber = _data["customerPartNumber"];
28078
+ this.customerPartRevision = _data["customerPartRevision"];
28079
+ this.customerPartName = _data["customerPartName"];
28080
+ this.vendorPartNumber = _data["vendorPartNumber"];
28025
28081
  this.drawing = _data["drawing"];
28026
28082
  this.drawingRevision = _data["drawingRevision"];
28027
28083
  this.material = _data["material"];
@@ -28039,6 +28095,10 @@ export class PartDto {
28039
28095
  data["partNumber"] = this.partNumber;
28040
28096
  data["partRevision"] = this.partRevision;
28041
28097
  data["partName"] = this.partName;
28098
+ data["customerPartNumber"] = this.customerPartNumber;
28099
+ data["customerPartRevision"] = this.customerPartRevision;
28100
+ data["customerPartName"] = this.customerPartName;
28101
+ data["vendorPartNumber"] = this.vendorPartNumber;
28042
28102
  data["drawing"] = this.drawing;
28043
28103
  data["drawingRevision"] = this.drawingRevision;
28044
28104
  data["material"] = this.material;
@@ -47572,6 +47632,60 @@ export class StopWorkOperationRequest {
47572
47632
  return data;
47573
47633
  }
47574
47634
  }
47635
+ export class SyncWorkorderOperationRequest {
47636
+ constructor(data) {
47637
+ if (data) {
47638
+ for (var property in data) {
47639
+ if (data.hasOwnProperty(property))
47640
+ this[property] = data[property];
47641
+ }
47642
+ }
47643
+ }
47644
+ init(_data) {
47645
+ if (_data) {
47646
+ this.workorderDescription = _data["workorderDescription"];
47647
+ this.operationDescription = _data["operationDescription"];
47648
+ this.isSetup = _data["isSetup"];
47649
+ this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
47650
+ this.resourceId = _data["resourceId"];
47651
+ this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined;
47652
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
47653
+ this.workorderQuantity = _data["workorderQuantity"];
47654
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
47655
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
47656
+ this.materialPartNumber = _data["materialPartNumber"];
47657
+ this.materialPartName = _data["materialPartName"];
47658
+ this.materialItemGroup = _data["materialItemGroup"];
47659
+ this.externalId = _data["externalId"];
47660
+ this.companyId = _data["companyId"];
47661
+ }
47662
+ }
47663
+ static fromJS(data) {
47664
+ data = typeof data === 'object' ? data : {};
47665
+ let result = new SyncWorkorderOperationRequest();
47666
+ result.init(data);
47667
+ return result;
47668
+ }
47669
+ toJSON(data) {
47670
+ data = typeof data === 'object' ? data : {};
47671
+ data["workorderDescription"] = this.workorderDescription;
47672
+ data["operationDescription"] = this.operationDescription;
47673
+ data["isSetup"] = this.isSetup;
47674
+ data["employee"] = this.employee ? this.employee.toJSON() : undefined;
47675
+ data["resourceId"] = this.resourceId;
47676
+ data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined;
47677
+ data["part"] = this.part ? this.part.toJSON() : undefined;
47678
+ data["workorderQuantity"] = this.workorderQuantity;
47679
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
47680
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
47681
+ data["materialPartNumber"] = this.materialPartNumber;
47682
+ data["materialPartName"] = this.materialPartName;
47683
+ data["materialItemGroup"] = this.materialItemGroup;
47684
+ data["externalId"] = this.externalId;
47685
+ data["companyId"] = this.companyId;
47686
+ return data;
47687
+ }
47688
+ }
47575
47689
  export class PagedResultOfWorkorderListDto {
47576
47690
  constructor(data) {
47577
47691
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20251120.0.13297",
3
+ "version": "20251209.0.13462-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -23871,6 +23871,11 @@ export interface IWorkordersClient {
23871
23871
  */
23872
23872
  stopWorkorderOperationV2(id: string, operation: number, request: StopWorkOperationRequest): Promise<WorkorderOperationEventDto>;
23873
23873
 
23874
+ /**
23875
+ * Sync work order operation
23876
+ */
23877
+ syncWorkorderOperation(id: string, operation: number, request: SyncWorkorderOperationRequest): Promise<WorkorderOperationEventDto>;
23878
+
23874
23879
  listActiveWorkorderOperations(): Promise<WorkorderOperationEventDto[]>;
23875
23880
 
23876
23881
  deleteWorkorderOperationEvent(id: string, operation: number, eventId: string): Promise<void>;
@@ -24433,9 +24438,54 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
24433
24438
  result200 = WorkorderOperationEventDto.fromJS(resultData200);
24434
24439
  return result200;
24435
24440
  });
24436
- } else if (status === 204) {
24441
+ } else if (status !== 200 && status !== 204) {
24442
+ return response.text().then((_responseText) => {
24443
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24444
+ });
24445
+ }
24446
+ return Promise.resolve<WorkorderOperationEventDto>(null as any);
24447
+ }
24448
+
24449
+ /**
24450
+ * Sync work order operation
24451
+ */
24452
+ syncWorkorderOperation(id: string, operation: number, request: SyncWorkorderOperationRequest): Promise<WorkorderOperationEventDto> {
24453
+ let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/sync";
24454
+ if (id === undefined || id === null)
24455
+ throw new globalThis.Error("The parameter 'id' must be defined.");
24456
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24457
+ if (operation === undefined || operation === null)
24458
+ throw new globalThis.Error("The parameter 'operation' must be defined.");
24459
+ url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
24460
+ url_ = url_.replace(/[?&]$/, "");
24461
+
24462
+ const content_ = JSON.stringify(request);
24463
+
24464
+ let options_: RequestInit = {
24465
+ body: content_,
24466
+ method: "POST",
24467
+ headers: {
24468
+ "Content-Type": "application/json",
24469
+ "Accept": "application/json"
24470
+ }
24471
+ };
24472
+
24473
+ return this.transformOptions(options_).then(transformedOptions_ => {
24474
+ return this.http.fetch(url_, transformedOptions_);
24475
+ }).then((_response: Response) => {
24476
+ return this.processSyncWorkorderOperation(_response);
24477
+ });
24478
+ }
24479
+
24480
+ protected processSyncWorkorderOperation(response: Response): Promise<WorkorderOperationEventDto> {
24481
+ const status = response.status;
24482
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24483
+ if (status === 200) {
24437
24484
  return response.text().then((_responseText) => {
24438
- return throwException("A server side error occurred.", status, _responseText, _headers);
24485
+ let result200: any = null;
24486
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24487
+ result200 = WorkorderOperationEventDto.fromJS(resultData200);
24488
+ return result200;
24439
24489
  });
24440
24490
  } else if (status !== 200 && status !== 204) {
24441
24491
  return response.text().then((_responseText) => {
@@ -30666,6 +30716,8 @@ export class MrbTemplateDto implements IMrbTemplateDto {
30666
30716
  sharedAccessUri?: string | null;
30667
30717
  contentIndicator?: string | null;
30668
30718
  noContentIndicator?: string | null;
30719
+ showSerialNumbersOnFrontPage?: boolean;
30720
+ showSerialNumbersOnCoC?: boolean;
30669
30721
  elements!: MrbTemplateElementDto[];
30670
30722
  tableOfContents?: MrbTemplateTableOfContentsDto | null;
30671
30723
 
@@ -30693,6 +30745,8 @@ export class MrbTemplateDto implements IMrbTemplateDto {
30693
30745
  this.sharedAccessUri = _data["sharedAccessUri"];
30694
30746
  this.contentIndicator = _data["contentIndicator"];
30695
30747
  this.noContentIndicator = _data["noContentIndicator"];
30748
+ this.showSerialNumbersOnFrontPage = _data["showSerialNumbersOnFrontPage"];
30749
+ this.showSerialNumbersOnCoC = _data["showSerialNumbersOnCoC"];
30696
30750
  if (Array.isArray(_data["elements"])) {
30697
30751
  this.elements = [] as any;
30698
30752
  for (let item of _data["elements"])
@@ -30721,6 +30775,8 @@ export class MrbTemplateDto implements IMrbTemplateDto {
30721
30775
  data["sharedAccessUri"] = this.sharedAccessUri;
30722
30776
  data["contentIndicator"] = this.contentIndicator;
30723
30777
  data["noContentIndicator"] = this.noContentIndicator;
30778
+ data["showSerialNumbersOnFrontPage"] = this.showSerialNumbersOnFrontPage;
30779
+ data["showSerialNumbersOnCoC"] = this.showSerialNumbersOnCoC;
30724
30780
  if (Array.isArray(this.elements)) {
30725
30781
  data["elements"] = [];
30726
30782
  for (let item of this.elements)
@@ -30742,6 +30798,8 @@ export interface IMrbTemplateDto {
30742
30798
  sharedAccessUri?: string | null;
30743
30799
  contentIndicator?: string | null;
30744
30800
  noContentIndicator?: string | null;
30801
+ showSerialNumbersOnFrontPage?: boolean;
30802
+ showSerialNumbersOnCoC?: boolean;
30745
30803
  elements: MrbTemplateElementDto[];
30746
30804
  tableOfContents?: MrbTemplateTableOfContentsDto | null;
30747
30805
  }
@@ -31255,6 +31313,7 @@ export class MrbCompanySettingsDto implements IMrbCompanySettingsDto {
31255
31313
  hideVendorBatchInfo!: boolean;
31256
31314
  lotLabel?: string | null;
31257
31315
  vendorBatchLabel?: string | null;
31316
+ ownArticleLabel?: string | null;
31258
31317
  coCStatement?: string | null;
31259
31318
  addressLines!: string[];
31260
31319
  sequenceFormat?: string | null;
@@ -31285,6 +31344,7 @@ export class MrbCompanySettingsDto implements IMrbCompanySettingsDto {
31285
31344
  this.hideVendorBatchInfo = _data["hideVendorBatchInfo"];
31286
31345
  this.lotLabel = _data["lotLabel"];
31287
31346
  this.vendorBatchLabel = _data["vendorBatchLabel"];
31347
+ this.ownArticleLabel = _data["ownArticleLabel"];
31288
31348
  this.coCStatement = _data["coCStatement"];
31289
31349
  if (Array.isArray(_data["addressLines"])) {
31290
31350
  this.addressLines = [] as any;
@@ -31319,6 +31379,7 @@ export class MrbCompanySettingsDto implements IMrbCompanySettingsDto {
31319
31379
  data["hideVendorBatchInfo"] = this.hideVendorBatchInfo;
31320
31380
  data["lotLabel"] = this.lotLabel;
31321
31381
  data["vendorBatchLabel"] = this.vendorBatchLabel;
31382
+ data["ownArticleLabel"] = this.ownArticleLabel;
31322
31383
  data["coCStatement"] = this.coCStatement;
31323
31384
  if (Array.isArray(this.addressLines)) {
31324
31385
  data["addressLines"] = [];
@@ -31346,6 +31407,7 @@ export interface IMrbCompanySettingsDto {
31346
31407
  hideVendorBatchInfo: boolean;
31347
31408
  lotLabel?: string | null;
31348
31409
  vendorBatchLabel?: string | null;
31410
+ ownArticleLabel?: string | null;
31349
31411
  coCStatement?: string | null;
31350
31412
  addressLines: string[];
31351
31413
  sequenceFormat?: string | null;
@@ -31363,6 +31425,7 @@ export class UpsertMrbCompanySettings implements IUpsertMrbCompanySettings {
31363
31425
  hideVendorBatchInfo!: boolean;
31364
31426
  lotLabel?: string | null;
31365
31427
  vendorBatchLabel?: string | null;
31428
+ ownArticleLabel?: string | null;
31366
31429
  coCStatement?: string | null;
31367
31430
  addressLines!: string[];
31368
31431
  sequenceFormat?: string | null;
@@ -31393,6 +31456,7 @@ export class UpsertMrbCompanySettings implements IUpsertMrbCompanySettings {
31393
31456
  this.hideVendorBatchInfo = _data["hideVendorBatchInfo"];
31394
31457
  this.lotLabel = _data["lotLabel"];
31395
31458
  this.vendorBatchLabel = _data["vendorBatchLabel"];
31459
+ this.ownArticleLabel = _data["ownArticleLabel"];
31396
31460
  this.coCStatement = _data["coCStatement"];
31397
31461
  if (Array.isArray(_data["addressLines"])) {
31398
31462
  this.addressLines = [] as any;
@@ -31427,6 +31491,7 @@ export class UpsertMrbCompanySettings implements IUpsertMrbCompanySettings {
31427
31491
  data["hideVendorBatchInfo"] = this.hideVendorBatchInfo;
31428
31492
  data["lotLabel"] = this.lotLabel;
31429
31493
  data["vendorBatchLabel"] = this.vendorBatchLabel;
31494
+ data["ownArticleLabel"] = this.ownArticleLabel;
31430
31495
  data["coCStatement"] = this.coCStatement;
31431
31496
  if (Array.isArray(this.addressLines)) {
31432
31497
  data["addressLines"] = [];
@@ -31454,6 +31519,7 @@ export interface IUpsertMrbCompanySettings {
31454
31519
  hideVendorBatchInfo: boolean;
31455
31520
  lotLabel?: string | null;
31456
31521
  vendorBatchLabel?: string | null;
31522
+ ownArticleLabel?: string | null;
31457
31523
  coCStatement?: string | null;
31458
31524
  addressLines: string[];
31459
31525
  sequenceFormat?: string | null;
@@ -31588,6 +31654,10 @@ export class PartDto implements IPartDto {
31588
31654
  partNumber!: string;
31589
31655
  partRevision?: string | null;
31590
31656
  partName?: string | null;
31657
+ customerPartNumber?: string | null;
31658
+ customerPartRevision?: string | null;
31659
+ customerPartName?: string | null;
31660
+ vendorPartNumber?: string | null;
31591
31661
  drawing?: string | null;
31592
31662
  drawingRevision?: string | null;
31593
31663
  material?: string | null;
@@ -31607,6 +31677,10 @@ export class PartDto implements IPartDto {
31607
31677
  this.partNumber = _data["partNumber"];
31608
31678
  this.partRevision = _data["partRevision"];
31609
31679
  this.partName = _data["partName"];
31680
+ this.customerPartNumber = _data["customerPartNumber"];
31681
+ this.customerPartRevision = _data["customerPartRevision"];
31682
+ this.customerPartName = _data["customerPartName"];
31683
+ this.vendorPartNumber = _data["vendorPartNumber"];
31610
31684
  this.drawing = _data["drawing"];
31611
31685
  this.drawingRevision = _data["drawingRevision"];
31612
31686
  this.material = _data["material"];
@@ -31626,6 +31700,10 @@ export class PartDto implements IPartDto {
31626
31700
  data["partNumber"] = this.partNumber;
31627
31701
  data["partRevision"] = this.partRevision;
31628
31702
  data["partName"] = this.partName;
31703
+ data["customerPartNumber"] = this.customerPartNumber;
31704
+ data["customerPartRevision"] = this.customerPartRevision;
31705
+ data["customerPartName"] = this.customerPartName;
31706
+ data["vendorPartNumber"] = this.vendorPartNumber;
31629
31707
  data["drawing"] = this.drawing;
31630
31708
  data["drawingRevision"] = this.drawingRevision;
31631
31709
  data["material"] = this.material;
@@ -31638,6 +31716,10 @@ export interface IPartDto {
31638
31716
  partNumber: string;
31639
31717
  partRevision?: string | null;
31640
31718
  partName?: string | null;
31719
+ customerPartNumber?: string | null;
31720
+ customerPartRevision?: string | null;
31721
+ customerPartName?: string | null;
31722
+ vendorPartNumber?: string | null;
31641
31723
  drawing?: string | null;
31642
31724
  drawingRevision?: string | null;
31643
31725
  material?: string | null;
@@ -60836,6 +60918,98 @@ export interface IStopWorkOperationRequest {
60836
60918
  ignoreNotFoundEvents?: boolean | null;
60837
60919
  }
60838
60920
 
60921
+ export class SyncWorkorderOperationRequest implements ISyncWorkorderOperationRequest {
60922
+ workorderDescription?: string | null;
60923
+ operationDescription?: string | null;
60924
+ isSetup!: boolean;
60925
+ employee?: EmployeeDto | null;
60926
+ resourceId!: string;
60927
+ customerOrder?: CustomerOrderInfoDto | null;
60928
+ part?: PartDto | null;
60929
+ workorderQuantity?: number | null;
60930
+ startTime!: Date;
60931
+ endTime?: Date | null;
60932
+ materialPartNumber?: string | null;
60933
+ materialPartName?: string | null;
60934
+ materialItemGroup?: string | null;
60935
+ externalId?: string | null;
60936
+ companyId?: string | null;
60937
+
60938
+ constructor(data?: ISyncWorkorderOperationRequest) {
60939
+ if (data) {
60940
+ for (var property in data) {
60941
+ if (data.hasOwnProperty(property))
60942
+ (this as any)[property] = (data as any)[property];
60943
+ }
60944
+ }
60945
+ }
60946
+
60947
+ init(_data?: any) {
60948
+ if (_data) {
60949
+ this.workorderDescription = _data["workorderDescription"];
60950
+ this.operationDescription = _data["operationDescription"];
60951
+ this.isSetup = _data["isSetup"];
60952
+ this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined as any;
60953
+ this.resourceId = _data["resourceId"];
60954
+ this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined as any;
60955
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined as any;
60956
+ this.workorderQuantity = _data["workorderQuantity"];
60957
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
60958
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined as any;
60959
+ this.materialPartNumber = _data["materialPartNumber"];
60960
+ this.materialPartName = _data["materialPartName"];
60961
+ this.materialItemGroup = _data["materialItemGroup"];
60962
+ this.externalId = _data["externalId"];
60963
+ this.companyId = _data["companyId"];
60964
+ }
60965
+ }
60966
+
60967
+ static fromJS(data: any): SyncWorkorderOperationRequest {
60968
+ data = typeof data === 'object' ? data : {};
60969
+ let result = new SyncWorkorderOperationRequest();
60970
+ result.init(data);
60971
+ return result;
60972
+ }
60973
+
60974
+ toJSON(data?: any) {
60975
+ data = typeof data === 'object' ? data : {};
60976
+ data["workorderDescription"] = this.workorderDescription;
60977
+ data["operationDescription"] = this.operationDescription;
60978
+ data["isSetup"] = this.isSetup;
60979
+ data["employee"] = this.employee ? this.employee.toJSON() : undefined as any;
60980
+ data["resourceId"] = this.resourceId;
60981
+ data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined as any;
60982
+ data["part"] = this.part ? this.part.toJSON() : undefined as any;
60983
+ data["workorderQuantity"] = this.workorderQuantity;
60984
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
60985
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined as any;
60986
+ data["materialPartNumber"] = this.materialPartNumber;
60987
+ data["materialPartName"] = this.materialPartName;
60988
+ data["materialItemGroup"] = this.materialItemGroup;
60989
+ data["externalId"] = this.externalId;
60990
+ data["companyId"] = this.companyId;
60991
+ return data;
60992
+ }
60993
+ }
60994
+
60995
+ export interface ISyncWorkorderOperationRequest {
60996
+ workorderDescription?: string | null;
60997
+ operationDescription?: string | null;
60998
+ isSetup: boolean;
60999
+ employee?: EmployeeDto | null;
61000
+ resourceId: string;
61001
+ customerOrder?: CustomerOrderInfoDto | null;
61002
+ part?: PartDto | null;
61003
+ workorderQuantity?: number | null;
61004
+ startTime: Date;
61005
+ endTime?: Date | null;
61006
+ materialPartNumber?: string | null;
61007
+ materialPartName?: string | null;
61008
+ materialItemGroup?: string | null;
61009
+ externalId?: string | null;
61010
+ companyId?: string | null;
61011
+ }
61012
+
60839
61013
  export class PagedResultOfWorkorderListDto implements IPagedResultOfWorkorderListDto {
60840
61014
  results!: WorkorderListDto[];
60841
61015
  continuationToken?: string | null;