@ignos/api-client 20260811.217.1 → 20260811.219.1-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.
@@ -20579,8 +20579,6 @@ export class MoveNotificationsClient extends AuthorizedApiBase implements IMoveN
20579
20579
  export interface IMoveParcelsClient {
20580
20580
 
20581
20581
  searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
20582
-
20583
- searchParcelsV2(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
20584
20582
  }
20585
20583
 
20586
20584
  export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcelsClient {
@@ -20631,45 +20629,6 @@ export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcels
20631
20629
  }
20632
20630
  return Promise.resolve<SearchParcelDto[]>(null as any);
20633
20631
  }
20634
-
20635
- searchParcelsV2(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]> {
20636
- let url_ = this.baseUrl + "/move/parcel/search/v2?";
20637
- if (input !== undefined && input !== null)
20638
- url_ += "input=" + encodeURIComponent("" + input) + "&";
20639
- if (pageSize !== undefined && pageSize !== null)
20640
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
20641
- url_ = url_.replace(/[?&]$/, "");
20642
-
20643
- let options_: RequestInit = {
20644
- method: "GET",
20645
- headers: {
20646
- "Accept": "application/json"
20647
- }
20648
- };
20649
-
20650
- return this.transformOptions(options_).then(transformedOptions_ => {
20651
- return this.http.fetch(url_, transformedOptions_);
20652
- }).then((_response: Response) => {
20653
- return this.processSearchParcelsV2(_response);
20654
- });
20655
- }
20656
-
20657
- protected processSearchParcelsV2(response: Response): Promise<SearchParcelDto[]> {
20658
- const status = response.status;
20659
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
20660
- if (status === 200) {
20661
- return response.text().then((_responseText) => {
20662
- let result200: any = null;
20663
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SearchParcelDto[];
20664
- return result200;
20665
- });
20666
- } else if (status !== 200 && status !== 204) {
20667
- return response.text().then((_responseText) => {
20668
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20669
- });
20670
- }
20671
- return Promise.resolve<SearchParcelDto[]>(null as any);
20672
- }
20673
20632
  }
20674
20633
 
20675
20634
  export interface IMoveTrackingClient {
@@ -21959,6 +21918,8 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
21959
21918
  export interface IMesOrMoveClient {
21960
21919
 
21961
21920
  getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
21921
+
21922
+ postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
21962
21923
  }
21963
21924
 
21964
21925
  export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
@@ -22009,6 +21970,45 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
22009
21970
  }
22010
21971
  return Promise.resolve<DownloadDto>(null as any);
22011
21972
  }
21973
+
21974
+ postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]> {
21975
+ let url_ = this.baseUrl + "/mes/productionorders/list";
21976
+ url_ = url_.replace(/[?&]$/, "");
21977
+
21978
+ const content_ = JSON.stringify(request);
21979
+
21980
+ let options_: RequestInit = {
21981
+ body: content_,
21982
+ method: "POST",
21983
+ headers: {
21984
+ "Content-Type": "application/json",
21985
+ "Accept": "application/json"
21986
+ }
21987
+ };
21988
+
21989
+ return this.transformOptions(options_).then(transformedOptions_ => {
21990
+ return this.http.fetch(url_, transformedOptions_);
21991
+ }).then((_response: Response) => {
21992
+ return this.processPostListProductionOrders(_response);
21993
+ });
21994
+ }
21995
+
21996
+ protected processPostListProductionOrders(response: Response): Promise<ProductionOrderListDto[]> {
21997
+ const status = response.status;
21998
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21999
+ if (status === 200) {
22000
+ return response.text().then((_responseText) => {
22001
+ let result200: any = null;
22002
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProductionOrderListDto[];
22003
+ return result200;
22004
+ });
22005
+ } else if (status !== 200 && status !== 204) {
22006
+ return response.text().then((_responseText) => {
22007
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22008
+ });
22009
+ }
22010
+ return Promise.resolve<ProductionOrderListDto[]>(null as any);
22011
+ }
22012
22012
  }
22013
22013
 
22014
22014
  export interface IMesPlannerClient {
@@ -22460,18 +22460,13 @@ export interface IMesProductionOrderAttachmentClient {
22460
22460
  * @param notes (optional)
22461
22461
  * @param url (optional)
22462
22462
  */
22463
- upload(id: string, type: ProductionOrderAttachmentType | undefined, description: string | null | undefined, file: FileParameter | null | undefined, notes: string | null | undefined, url: string | null | undefined): Promise<void>;
22463
+ upload(id: string, type: ProductionOrderAttachmentType | undefined, description: string | null | undefined, file: FileParameter | null | undefined, notes: string | null | undefined, url: string | null | undefined): Promise<FileResponse>;
22464
22464
 
22465
- getAttachments(id: string): Promise<ProductionOrderAttachmentDto[]>;
22466
-
22467
- /**
22468
- * Update an existing Note or Url attachment in place
22469
- */
22470
- updateAttachment(id: string, attachmentId: number, request: UpdateProductionOrderAttachmentRequest): Promise<void>;
22465
+ getAttachments(id: string): Promise<WorkOrderAttachmentDto[]>;
22471
22466
 
22472
22467
  getAttachmentFile(id: string, attachmentId: number): Promise<FileResponse>;
22473
22468
 
22474
- deleteAttachment(id: string, attachmentId: number): Promise<void>;
22469
+ deleteAttachment(id: string, attachmentId: number): Promise<FileResponse>;
22475
22470
  }
22476
22471
 
22477
22472
  export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implements IMesProductionOrderAttachmentClient {
@@ -22492,7 +22487,7 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
22492
22487
  * @param notes (optional)
22493
22488
  * @param url (optional)
22494
22489
  */
22495
- upload(id: string, type: ProductionOrderAttachmentType | undefined, description: string | null | undefined, file: FileParameter | null | undefined, notes: string | null | undefined, url: string | null | undefined): Promise<void> {
22490
+ upload(id: string, type: ProductionOrderAttachmentType | undefined, description: string | null | undefined, file: FileParameter | null | undefined, notes: string | null | undefined, url: string | null | undefined): Promise<FileResponse> {
22496
22491
  let url_ = this.baseUrl + "/mes/productionorders/{id}/attachments";
22497
22492
  if (id === undefined || id === null)
22498
22493
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -22517,6 +22512,7 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
22517
22512
  body: content_,
22518
22513
  method: "POST",
22519
22514
  headers: {
22515
+ "Accept": "application/octet-stream"
22520
22516
  }
22521
22517
  };
22522
22518
 
@@ -22527,22 +22523,29 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
22527
22523
  });
22528
22524
  }
22529
22525
 
22530
- protected processUpload(response: Response): Promise<void> {
22526
+ protected processUpload(response: Response): Promise<FileResponse> {
22531
22527
  const status = response.status;
22532
22528
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22533
- if (status === 204) {
22534
- return response.text().then((_responseText) => {
22535
- return;
22536
- });
22529
+ if (status === 200 || status === 206) {
22530
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
22531
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
22532
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
22533
+ if (fileName) {
22534
+ fileName = decodeURIComponent(fileName);
22535
+ } else {
22536
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
22537
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
22538
+ }
22539
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
22537
22540
  } else if (status !== 200 && status !== 204) {
22538
22541
  return response.text().then((_responseText) => {
22539
22542
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22540
22543
  });
22541
22544
  }
22542
- return Promise.resolve<void>(null as any);
22545
+ return Promise.resolve<FileResponse>(null as any);
22543
22546
  }
22544
22547
 
22545
- getAttachments(id: string): Promise<ProductionOrderAttachmentDto[]> {
22548
+ getAttachments(id: string): Promise<WorkOrderAttachmentDto[]> {
22546
22549
  let url_ = this.baseUrl + "/mes/productionorders/{id}/attachments";
22547
22550
  if (id === undefined || id === null)
22548
22551
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -22563,13 +22566,13 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
22563
22566
  });
22564
22567
  }
22565
22568
 
22566
- protected processGetAttachments(response: Response): Promise<ProductionOrderAttachmentDto[]> {
22569
+ protected processGetAttachments(response: Response): Promise<WorkOrderAttachmentDto[]> {
22567
22570
  const status = response.status;
22568
22571
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22569
22572
  if (status === 200) {
22570
22573
  return response.text().then((_responseText) => {
22571
22574
  let result200: any = null;
22572
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProductionOrderAttachmentDto[];
22575
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as WorkOrderAttachmentDto[];
22573
22576
  return result200;
22574
22577
  });
22575
22578
  } else if (status !== 200 && status !== 204) {
@@ -22577,52 +22580,7 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
22577
22580
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22578
22581
  });
22579
22582
  }
22580
- return Promise.resolve<ProductionOrderAttachmentDto[]>(null as any);
22581
- }
22582
-
22583
- /**
22584
- * Update an existing Note or Url attachment in place
22585
- */
22586
- updateAttachment(id: string, attachmentId: number, request: UpdateProductionOrderAttachmentRequest): Promise<void> {
22587
- let url_ = this.baseUrl + "/mes/productionorders/{id}/attachments/{attachmentId}";
22588
- if (id === undefined || id === null)
22589
- throw new globalThis.Error("The parameter 'id' must be defined.");
22590
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22591
- if (attachmentId === undefined || attachmentId === null)
22592
- throw new globalThis.Error("The parameter 'attachmentId' must be defined.");
22593
- url_ = url_.replace("{attachmentId}", encodeURIComponent("" + attachmentId));
22594
- url_ = url_.replace(/[?&]$/, "");
22595
-
22596
- const content_ = JSON.stringify(request);
22597
-
22598
- let options_: RequestInit = {
22599
- body: content_,
22600
- method: "PUT",
22601
- headers: {
22602
- "Content-Type": "application/json",
22603
- }
22604
- };
22605
-
22606
- return this.transformOptions(options_).then(transformedOptions_ => {
22607
- return this.http.fetch(url_, transformedOptions_);
22608
- }).then((_response: Response) => {
22609
- return this.processUpdateAttachment(_response);
22610
- });
22611
- }
22612
-
22613
- protected processUpdateAttachment(response: Response): Promise<void> {
22614
- const status = response.status;
22615
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22616
- if (status === 204) {
22617
- return response.text().then((_responseText) => {
22618
- return;
22619
- });
22620
- } else if (status !== 200 && status !== 204) {
22621
- return response.text().then((_responseText) => {
22622
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22623
- });
22624
- }
22625
- return Promise.resolve<void>(null as any);
22583
+ return Promise.resolve<WorkOrderAttachmentDto[]>(null as any);
22626
22584
  }
22627
22585
 
22628
22586
  getAttachmentFile(id: string, attachmentId: number): Promise<FileResponse> {
@@ -22671,7 +22629,7 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
22671
22629
  return Promise.resolve<FileResponse>(null as any);
22672
22630
  }
22673
22631
 
22674
- deleteAttachment(id: string, attachmentId: number): Promise<void> {
22632
+ deleteAttachment(id: string, attachmentId: number): Promise<FileResponse> {
22675
22633
  let url_ = this.baseUrl + "/mes/productionorders/{id}/attachments/{attachmentId}";
22676
22634
  if (id === undefined || id === null)
22677
22635
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -22684,6 +22642,7 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
22684
22642
  let options_: RequestInit = {
22685
22643
  method: "DELETE",
22686
22644
  headers: {
22645
+ "Accept": "application/octet-stream"
22687
22646
  }
22688
22647
  };
22689
22648
 
@@ -22694,26 +22653,31 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
22694
22653
  });
22695
22654
  }
22696
22655
 
22697
- protected processDeleteAttachment(response: Response): Promise<void> {
22656
+ protected processDeleteAttachment(response: Response): Promise<FileResponse> {
22698
22657
  const status = response.status;
22699
22658
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22700
- if (status === 204) {
22701
- return response.text().then((_responseText) => {
22702
- return;
22703
- });
22659
+ if (status === 200 || status === 206) {
22660
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
22661
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
22662
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
22663
+ if (fileName) {
22664
+ fileName = decodeURIComponent(fileName);
22665
+ } else {
22666
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
22667
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
22668
+ }
22669
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
22704
22670
  } else if (status !== 200 && status !== 204) {
22705
22671
  return response.text().then((_responseText) => {
22706
22672
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22707
22673
  });
22708
22674
  }
22709
- return Promise.resolve<void>(null as any);
22675
+ return Promise.resolve<FileResponse>(null as any);
22710
22676
  }
22711
22677
  }
22712
22678
 
22713
22679
  export interface IMesProductionOrderClient {
22714
22680
 
22715
- listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
22716
-
22717
22681
  getProductionOrder(id: string): Promise<ProductionOrderDto>;
22718
22682
 
22719
22683
  getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
@@ -22743,45 +22707,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
22743
22707
  this.baseUrl = baseUrl ?? "";
22744
22708
  }
22745
22709
 
22746
- listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]> {
22747
- let url_ = this.baseUrl + "/mes/productionorders/list";
22748
- url_ = url_.replace(/[?&]$/, "");
22749
-
22750
- const content_ = JSON.stringify(request);
22751
-
22752
- let options_: RequestInit = {
22753
- body: content_,
22754
- method: "POST",
22755
- headers: {
22756
- "Content-Type": "application/json",
22757
- "Accept": "application/json"
22758
- }
22759
- };
22760
-
22761
- return this.transformOptions(options_).then(transformedOptions_ => {
22762
- return this.http.fetch(url_, transformedOptions_);
22763
- }).then((_response: Response) => {
22764
- return this.processListProductionOrders(_response);
22765
- });
22766
- }
22767
-
22768
- protected processListProductionOrders(response: Response): Promise<ProductionOrderListDto[]> {
22769
- const status = response.status;
22770
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22771
- if (status === 200) {
22772
- return response.text().then((_responseText) => {
22773
- let result200: any = null;
22774
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProductionOrderListDto[];
22775
- return result200;
22776
- });
22777
- } else if (status !== 200 && status !== 204) {
22778
- return response.text().then((_responseText) => {
22779
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22780
- });
22781
- }
22782
- return Promise.resolve<ProductionOrderListDto[]>(null as any);
22783
- }
22784
-
22785
22710
  getProductionOrder(id: string): Promise<ProductionOrderDto> {
22786
22711
  let url_ = this.baseUrl + "/mes/productionorders/{id}";
22787
22712
  if (id === undefined || id === null)
@@ -25207,28 +25132,334 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase imp
25207
25132
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25208
25133
  if (status === 200) {
25209
25134
  return response.text().then((_responseText) => {
25210
- let result200: any = null;
25211
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
25212
- return result200;
25135
+ let result200: any = null;
25136
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
25137
+ return result200;
25138
+ });
25139
+ } else if (status !== 200 && status !== 204) {
25140
+ return response.text().then((_responseText) => {
25141
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25142
+ });
25143
+ }
25144
+ return Promise.resolve<ImaSpecificationDto>(null as any);
25145
+ }
25146
+
25147
+ updateSpecification(id: string, version: number | null | undefined, dto: ImaUpdateSpecificationDto): Promise<ImaSpecificationDto> {
25148
+ let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
25149
+ if (id === undefined || id === null)
25150
+ throw new globalThis.Error("The parameter 'id' must be defined.");
25151
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
25152
+ if (version !== undefined && version !== null)
25153
+ url_ += "version=" + encodeURIComponent("" + version) + "&";
25154
+ url_ = url_.replace(/[?&]$/, "");
25155
+
25156
+ const content_ = JSON.stringify(dto);
25157
+
25158
+ let options_: RequestInit = {
25159
+ body: content_,
25160
+ method: "PUT",
25161
+ headers: {
25162
+ "Content-Type": "application/json",
25163
+ "Accept": "application/json"
25164
+ }
25165
+ };
25166
+
25167
+ return this.transformOptions(options_).then(transformedOptions_ => {
25168
+ return this.http.fetch(url_, transformedOptions_);
25169
+ }).then((_response: Response) => {
25170
+ return this.processUpdateSpecification(_response);
25171
+ });
25172
+ }
25173
+
25174
+ protected processUpdateSpecification(response: Response): Promise<ImaSpecificationDto> {
25175
+ const status = response.status;
25176
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25177
+ if (status === 200) {
25178
+ return response.text().then((_responseText) => {
25179
+ let result200: any = null;
25180
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
25181
+ return result200;
25182
+ });
25183
+ } else if (status !== 200 && status !== 204) {
25184
+ return response.text().then((_responseText) => {
25185
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25186
+ });
25187
+ }
25188
+ return Promise.resolve<ImaSpecificationDto>(null as any);
25189
+ }
25190
+
25191
+ deleteSpecification(id: string, version: number | null | undefined): Promise<void> {
25192
+ let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
25193
+ if (id === undefined || id === null)
25194
+ throw new globalThis.Error("The parameter 'id' must be defined.");
25195
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
25196
+ if (version !== undefined && version !== null)
25197
+ url_ += "version=" + encodeURIComponent("" + version) + "&";
25198
+ url_ = url_.replace(/[?&]$/, "");
25199
+
25200
+ let options_: RequestInit = {
25201
+ method: "DELETE",
25202
+ headers: {
25203
+ }
25204
+ };
25205
+
25206
+ return this.transformOptions(options_).then(transformedOptions_ => {
25207
+ return this.http.fetch(url_, transformedOptions_);
25208
+ }).then((_response: Response) => {
25209
+ return this.processDeleteSpecification(_response);
25210
+ });
25211
+ }
25212
+
25213
+ protected processDeleteSpecification(response: Response): Promise<void> {
25214
+ const status = response.status;
25215
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25216
+ if (status === 204) {
25217
+ return response.text().then((_responseText) => {
25218
+ return;
25219
+ });
25220
+ } else if (status !== 200 && status !== 204) {
25221
+ return response.text().then((_responseText) => {
25222
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25223
+ });
25224
+ }
25225
+ return Promise.resolve<void>(null as any);
25226
+ }
25227
+ }
25228
+
25229
+ export interface IInspectMatchSpecificationsClient {
25230
+
25231
+ getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto>;
25232
+
25233
+ listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
25234
+ }
25235
+
25236
+ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implements IInspectMatchSpecificationsClient {
25237
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
25238
+ private baseUrl: string;
25239
+
25240
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
25241
+ super(configuration);
25242
+ this.http = http ? http : window as any;
25243
+ this.baseUrl = baseUrl ?? "";
25244
+ }
25245
+
25246
+ getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto> {
25247
+ let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
25248
+ if (id === undefined || id === null)
25249
+ throw new globalThis.Error("The parameter 'id' must be defined.");
25250
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
25251
+ if (version !== undefined && version !== null)
25252
+ url_ += "version=" + encodeURIComponent("" + version) + "&";
25253
+ url_ = url_.replace(/[?&]$/, "");
25254
+
25255
+ let options_: RequestInit = {
25256
+ method: "GET",
25257
+ headers: {
25258
+ "Accept": "application/json"
25259
+ }
25260
+ };
25261
+
25262
+ return this.transformOptions(options_).then(transformedOptions_ => {
25263
+ return this.http.fetch(url_, transformedOptions_);
25264
+ }).then((_response: Response) => {
25265
+ return this.processGetSpecification(_response);
25266
+ });
25267
+ }
25268
+
25269
+ protected processGetSpecification(response: Response): Promise<ImaSpecificationDto> {
25270
+ const status = response.status;
25271
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25272
+ if (status === 200) {
25273
+ return response.text().then((_responseText) => {
25274
+ let result200: any = null;
25275
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
25276
+ return result200;
25277
+ });
25278
+ } else if (status !== 200 && status !== 204) {
25279
+ return response.text().then((_responseText) => {
25280
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25281
+ });
25282
+ }
25283
+ return Promise.resolve<ImaSpecificationDto>(null as any);
25284
+ }
25285
+
25286
+ listSpecifications(): Promise<ImaSpecificationLiteDto[]> {
25287
+ let url_ = this.baseUrl + "/inspect/match/specifications/list";
25288
+ url_ = url_.replace(/[?&]$/, "");
25289
+
25290
+ let options_: RequestInit = {
25291
+ method: "GET",
25292
+ headers: {
25293
+ "Accept": "application/json"
25294
+ }
25295
+ };
25296
+
25297
+ return this.transformOptions(options_).then(transformedOptions_ => {
25298
+ return this.http.fetch(url_, transformedOptions_);
25299
+ }).then((_response: Response) => {
25300
+ return this.processListSpecifications(_response);
25301
+ });
25302
+ }
25303
+
25304
+ protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]> {
25305
+ const status = response.status;
25306
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25307
+ if (status === 200) {
25308
+ return response.text().then((_responseText) => {
25309
+ let result200: any = null;
25310
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationLiteDto[];
25311
+ return result200;
25312
+ });
25313
+ } else if (status !== 200 && status !== 204) {
25314
+ return response.text().then((_responseText) => {
25315
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25316
+ });
25317
+ }
25318
+ return Promise.resolve<ImaSpecificationLiteDto[]>(null as any);
25319
+ }
25320
+ }
25321
+
25322
+ export interface IInspectSchemaCreatorClient {
25323
+
25324
+ getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
25325
+
25326
+ /**
25327
+ * Creates the initial creator state for a schema version. Returns 409 if
25328
+ state already exists; the caller should re-fetch it instead of writing.
25329
+ */
25330
+ createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
25331
+
25332
+ updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
25333
+
25334
+ /**
25335
+ * Starts a full drawing AI parse: clears every element and locks the
25336
+ schema for every viewer until it completes. If one is already in
25337
+ progress, returns that instead of starting a second one.
25338
+ */
25339
+ requestFullDrawingParse(id: string): Promise<SchemaCreatorStateDto>;
25340
+
25341
+ /**
25342
+ * Stamps the creator state's balloons onto the schema's drawing PDF and
25343
+ returns a temporary download link.
25344
+ */
25345
+ exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
25346
+
25347
+ /**
25348
+ * Starts an async snip resolve; the result is delivered through the
25349
+ SchemaCreatorSnipResolved SignalR notification.
25350
+ * @param image (optional)
25351
+ */
25352
+ resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse>;
25353
+ }
25354
+
25355
+ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
25356
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
25357
+ private baseUrl: string;
25358
+
25359
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
25360
+ super(configuration);
25361
+ this.http = http ? http : window as any;
25362
+ this.baseUrl = baseUrl ?? "";
25363
+ }
25364
+
25365
+ getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto> {
25366
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
25367
+ if (id === undefined || id === null)
25368
+ throw new globalThis.Error("The parameter 'id' must be defined.");
25369
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
25370
+ url_ = url_.replace(/[?&]$/, "");
25371
+
25372
+ let options_: RequestInit = {
25373
+ method: "GET",
25374
+ headers: {
25375
+ "Accept": "application/json"
25376
+ }
25377
+ };
25378
+
25379
+ return this.transformOptions(options_).then(transformedOptions_ => {
25380
+ return this.http.fetch(url_, transformedOptions_);
25381
+ }).then((_response: Response) => {
25382
+ return this.processGetSchemaCreatorState(_response);
25383
+ });
25384
+ }
25385
+
25386
+ protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
25387
+ const status = response.status;
25388
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25389
+ if (status === 200) {
25390
+ return response.text().then((_responseText) => {
25391
+ let result200: any = null;
25392
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
25393
+ return result200;
25394
+ });
25395
+ } else if (status !== 200 && status !== 204) {
25396
+ return response.text().then((_responseText) => {
25397
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25398
+ });
25399
+ }
25400
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
25401
+ }
25402
+
25403
+ /**
25404
+ * Creates the initial creator state for a schema version. Returns 409 if
25405
+ state already exists; the caller should re-fetch it instead of writing.
25406
+ */
25407
+ createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
25408
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
25409
+ if (id === undefined || id === null)
25410
+ throw new globalThis.Error("The parameter 'id' must be defined.");
25411
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
25412
+ url_ = url_.replace(/[?&]$/, "");
25413
+
25414
+ const content_ = JSON.stringify(state);
25415
+
25416
+ let options_: RequestInit = {
25417
+ body: content_,
25418
+ method: "POST",
25419
+ headers: {
25420
+ "Content-Type": "application/json",
25421
+ "Accept": "application/json"
25422
+ }
25423
+ };
25424
+
25425
+ return this.transformOptions(options_).then(transformedOptions_ => {
25426
+ return this.http.fetch(url_, transformedOptions_);
25427
+ }).then((_response: Response) => {
25428
+ return this.processCreateSchemaCreatorState(_response);
25429
+ });
25430
+ }
25431
+
25432
+ protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
25433
+ const status = response.status;
25434
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25435
+ if (status === 201) {
25436
+ return response.text().then((_responseText) => {
25437
+ let result201: any = null;
25438
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
25439
+ return result201;
25440
+ });
25441
+ } else if (status === 409) {
25442
+ return response.text().then((_responseText) => {
25443
+ let result409: any = null;
25444
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
25445
+ return throwException("A server side error occurred.", status, _responseText, _headers, result409);
25213
25446
  });
25214
25447
  } else if (status !== 200 && status !== 204) {
25215
25448
  return response.text().then((_responseText) => {
25216
25449
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25217
25450
  });
25218
25451
  }
25219
- return Promise.resolve<ImaSpecificationDto>(null as any);
25452
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
25220
25453
  }
25221
25454
 
25222
- updateSpecification(id: string, version: number | null | undefined, dto: ImaUpdateSpecificationDto): Promise<ImaSpecificationDto> {
25223
- let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
25455
+ updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
25456
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
25224
25457
  if (id === undefined || id === null)
25225
25458
  throw new globalThis.Error("The parameter 'id' must be defined.");
25226
25459
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
25227
- if (version !== undefined && version !== null)
25228
- url_ += "version=" + encodeURIComponent("" + version) + "&";
25229
25460
  url_ = url_.replace(/[?&]$/, "");
25230
25461
 
25231
- const content_ = JSON.stringify(dto);
25462
+ const content_ = JSON.stringify(state);
25232
25463
 
25233
25464
  let options_: RequestInit = {
25234
25465
  body: content_,
@@ -25242,17 +25473,17 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase imp
25242
25473
  return this.transformOptions(options_).then(transformedOptions_ => {
25243
25474
  return this.http.fetch(url_, transformedOptions_);
25244
25475
  }).then((_response: Response) => {
25245
- return this.processUpdateSpecification(_response);
25476
+ return this.processUpdateSchemaCreatorState(_response);
25246
25477
  });
25247
25478
  }
25248
25479
 
25249
- protected processUpdateSpecification(response: Response): Promise<ImaSpecificationDto> {
25480
+ protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
25250
25481
  const status = response.status;
25251
25482
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25252
25483
  if (status === 200) {
25253
25484
  return response.text().then((_responseText) => {
25254
25485
  let result200: any = null;
25255
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
25486
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
25256
25487
  return result200;
25257
25488
  });
25258
25489
  } else if (status !== 200 && status !== 204) {
@@ -25260,75 +25491,65 @@ export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase imp
25260
25491
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25261
25492
  });
25262
25493
  }
25263
- return Promise.resolve<ImaSpecificationDto>(null as any);
25494
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
25264
25495
  }
25265
25496
 
25266
- deleteSpecification(id: string, version: number | null | undefined): Promise<void> {
25267
- let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
25497
+ /**
25498
+ * Starts a full drawing AI parse: clears every element and locks the
25499
+ schema for every viewer until it completes. If one is already in
25500
+ progress, returns that instead of starting a second one.
25501
+ */
25502
+ requestFullDrawingParse(id: string): Promise<SchemaCreatorStateDto> {
25503
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/fullparse";
25268
25504
  if (id === undefined || id === null)
25269
25505
  throw new globalThis.Error("The parameter 'id' must be defined.");
25270
25506
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
25271
- if (version !== undefined && version !== null)
25272
- url_ += "version=" + encodeURIComponent("" + version) + "&";
25273
25507
  url_ = url_.replace(/[?&]$/, "");
25274
25508
 
25275
25509
  let options_: RequestInit = {
25276
- method: "DELETE",
25510
+ method: "POST",
25277
25511
  headers: {
25512
+ "Accept": "application/json"
25278
25513
  }
25279
25514
  };
25280
25515
 
25281
25516
  return this.transformOptions(options_).then(transformedOptions_ => {
25282
25517
  return this.http.fetch(url_, transformedOptions_);
25283
25518
  }).then((_response: Response) => {
25284
- return this.processDeleteSpecification(_response);
25519
+ return this.processRequestFullDrawingParse(_response);
25285
25520
  });
25286
25521
  }
25287
25522
 
25288
- protected processDeleteSpecification(response: Response): Promise<void> {
25523
+ protected processRequestFullDrawingParse(response: Response): Promise<SchemaCreatorStateDto> {
25289
25524
  const status = response.status;
25290
25525
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25291
- if (status === 204) {
25526
+ if (status === 200) {
25292
25527
  return response.text().then((_responseText) => {
25293
- return;
25528
+ let result200: any = null;
25529
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
25530
+ return result200;
25294
25531
  });
25295
25532
  } else if (status !== 200 && status !== 204) {
25296
25533
  return response.text().then((_responseText) => {
25297
25534
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25298
25535
  });
25299
25536
  }
25300
- return Promise.resolve<void>(null as any);
25301
- }
25302
- }
25303
-
25304
- export interface IInspectMatchSpecificationsClient {
25305
-
25306
- getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto>;
25307
-
25308
- listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
25309
- }
25310
-
25311
- export class InspectMatchSpecificationsClient extends AuthorizedApiBase implements IInspectMatchSpecificationsClient {
25312
- private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
25313
- private baseUrl: string;
25314
-
25315
- constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
25316
- super(configuration);
25317
- this.http = http ? http : window as any;
25318
- this.baseUrl = baseUrl ?? "";
25537
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
25319
25538
  }
25320
25539
 
25321
- getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto> {
25322
- let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
25540
+ /**
25541
+ * Stamps the creator state's balloons onto the schema's drawing PDF and
25542
+ returns a temporary download link.
25543
+ */
25544
+ exportSchemaCreatorDrawing(id: string): Promise<DownloadDto> {
25545
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
25323
25546
  if (id === undefined || id === null)
25324
25547
  throw new globalThis.Error("The parameter 'id' must be defined.");
25325
25548
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
25326
- if (version !== undefined && version !== null)
25327
- url_ += "version=" + encodeURIComponent("" + version) + "&";
25328
25549
  url_ = url_.replace(/[?&]$/, "");
25329
25550
 
25330
25551
  let options_: RequestInit = {
25331
- method: "GET",
25552
+ method: "POST",
25332
25553
  headers: {
25333
25554
  "Accept": "application/json"
25334
25555
  }
@@ -25337,17 +25558,17 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
25337
25558
  return this.transformOptions(options_).then(transformedOptions_ => {
25338
25559
  return this.http.fetch(url_, transformedOptions_);
25339
25560
  }).then((_response: Response) => {
25340
- return this.processGetSpecification(_response);
25561
+ return this.processExportSchemaCreatorDrawing(_response);
25341
25562
  });
25342
25563
  }
25343
25564
 
25344
- protected processGetSpecification(response: Response): Promise<ImaSpecificationDto> {
25565
+ protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto> {
25345
25566
  const status = response.status;
25346
25567
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25347
25568
  if (status === 200) {
25348
25569
  return response.text().then((_responseText) => {
25349
25570
  let result200: any = null;
25350
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
25571
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
25351
25572
  return result200;
25352
25573
  });
25353
25574
  } else if (status !== 200 && status !== 204) {
@@ -25355,42 +25576,63 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
25355
25576
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25356
25577
  });
25357
25578
  }
25358
- return Promise.resolve<ImaSpecificationDto>(null as any);
25579
+ return Promise.resolve<DownloadDto>(null as any);
25359
25580
  }
25360
25581
 
25361
- listSpecifications(): Promise<ImaSpecificationLiteDto[]> {
25362
- let url_ = this.baseUrl + "/inspect/match/specifications/list";
25582
+ /**
25583
+ * Starts an async snip resolve; the result is delivered through the
25584
+ SchemaCreatorSnipResolved SignalR notification.
25585
+ * @param image (optional)
25586
+ */
25587
+ resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse> {
25588
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/resolvesnip";
25589
+ if (id === undefined || id === null)
25590
+ throw new globalThis.Error("The parameter 'id' must be defined.");
25591
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
25592
+ if (elementId === undefined || elementId === null)
25593
+ throw new globalThis.Error("The parameter 'elementId' must be defined.");
25594
+ url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
25363
25595
  url_ = url_.replace(/[?&]$/, "");
25364
25596
 
25597
+ const content_ = new FormData();
25598
+ if (image !== null && image !== undefined)
25599
+ content_.append("image", image.data, image.fileName ? image.fileName : "image");
25600
+
25365
25601
  let options_: RequestInit = {
25366
- method: "GET",
25602
+ body: content_,
25603
+ method: "POST",
25367
25604
  headers: {
25368
- "Accept": "application/json"
25605
+ "Accept": "application/octet-stream"
25369
25606
  }
25370
25607
  };
25371
25608
 
25372
25609
  return this.transformOptions(options_).then(transformedOptions_ => {
25373
25610
  return this.http.fetch(url_, transformedOptions_);
25374
25611
  }).then((_response: Response) => {
25375
- return this.processListSpecifications(_response);
25612
+ return this.processResolveSchemaCreatorSnip(_response);
25376
25613
  });
25377
25614
  }
25378
25615
 
25379
- protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]> {
25616
+ protected processResolveSchemaCreatorSnip(response: Response): Promise<FileResponse> {
25380
25617
  const status = response.status;
25381
25618
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25382
- if (status === 200) {
25383
- return response.text().then((_responseText) => {
25384
- let result200: any = null;
25385
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationLiteDto[];
25386
- return result200;
25387
- });
25619
+ if (status === 200 || status === 206) {
25620
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
25621
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
25622
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
25623
+ if (fileName) {
25624
+ fileName = decodeURIComponent(fileName);
25625
+ } else {
25626
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
25627
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
25628
+ }
25629
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
25388
25630
  } else if (status !== 200 && status !== 204) {
25389
25631
  return response.text().then((_responseText) => {
25390
25632
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25391
25633
  });
25392
25634
  }
25393
- return Promise.resolve<ImaSpecificationLiteDto[]>(null as any);
25635
+ return Promise.resolve<FileResponse>(null as any);
25394
25636
  }
25395
25637
  }
25396
25638
 
@@ -35536,10 +35778,6 @@ export interface SearchParcelDto {
35536
35778
  items: SearchParcelItemDto[];
35537
35779
  partName?: string | null;
35538
35780
  partNumber?: string | null;
35539
- status?: WorkorderStatus | null;
35540
- startDate?: Date | null;
35541
- endDate?: Date | null;
35542
- deliveryDate?: Date | null;
35543
35781
  }
35544
35782
 
35545
35783
  export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
@@ -35764,6 +36002,41 @@ export interface LabelId {
35764
36002
  trackingId?: string | null;
35765
36003
  }
35766
36004
 
36005
+ export interface ProductionOrderListDto {
36006
+ id: string;
36007
+ companyId?: string | null;
36008
+ part?: PartDto | null;
36009
+ quantity: number;
36010
+ unit?: string | null;
36011
+ status: WorkorderStatus;
36012
+ plannedStart?: Date | null;
36013
+ plannedEnd?: Date | null;
36014
+ producedQuantity: number;
36015
+ scrappedQuantity: number;
36016
+ deliveryLocation?: WarehouseLocationDto | null;
36017
+ project?: WorkOrderProjectDto | null;
36018
+ startDate?: Date | null;
36019
+ endDate?: Date | null;
36020
+ deliveryDate?: Date | null;
36021
+ bomPosition?: string | null;
36022
+ orderReference?: OrderReferenceDto | null;
36023
+ customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
36024
+ }
36025
+
36026
+ export interface OrderReferenceDto {
36027
+ orderReferenceType?: OrderReferenceTypeDto;
36028
+ orderNumber?: string;
36029
+ orderLineNumber?: number | null;
36030
+ }
36031
+
36032
+ export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
36033
+
36034
+ export interface ListProductionOrdersRequest {
36035
+ search: string;
36036
+ searchType: SearchTypeDto;
36037
+ maxResults?: number | null;
36038
+ }
36039
+
35767
36040
  export interface PlannerPlanDto {
35768
36041
  resourceGroupId: string;
35769
36042
  sequence: PlannerOperationDto[];
@@ -35881,56 +36154,16 @@ export interface SetProgramStatus {
35881
36154
 
35882
36155
  export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
35883
36156
 
35884
- export interface UpdateProductionOrderAttachmentRequest {
35885
- type?: ProductionOrderAttachmentType;
35886
- description: string;
35887
- notes?: string | null;
35888
- url?: string | null;
35889
- }
35890
-
35891
- export interface ProductionOrderAttachmentDto {
35892
- attachmentId: number;
36157
+ export interface WorkOrderAttachmentDto {
36158
+ createdBy?: UserDto | null;
36159
+ created?: Date | null;
36160
+ modifiedBy?: UserDto | null;
36161
+ modified?: Date | null;
36162
+ attachmentId?: number | null;
35893
36163
  name?: string | null;
35894
36164
  fileName?: string | null;
35895
36165
  notes?: string | null;
35896
- attachmentType?: ProductionOrderAttachmentType | null;
35897
- addedBy?: string | null;
35898
- canDelete: boolean;
35899
- }
35900
-
35901
- export interface ProductionOrderListDto {
35902
- id: string;
35903
- companyId?: string | null;
35904
- part?: PartDto | null;
35905
- quantity: number;
35906
- unit?: string | null;
35907
- status: WorkorderStatus;
35908
- plannedStart?: Date | null;
35909
- plannedEnd?: Date | null;
35910
- producedQuantity: number;
35911
- scrappedQuantity: number;
35912
- deliveryLocation?: WarehouseLocationDto | null;
35913
- project?: WorkOrderProjectDto | null;
35914
- startDate?: Date | null;
35915
- endDate?: Date | null;
35916
- deliveryDate?: Date | null;
35917
- bomPosition?: string | null;
35918
- orderReference?: OrderReferenceDto | null;
35919
- customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
35920
- }
35921
-
35922
- export interface OrderReferenceDto {
35923
- orderReferenceType?: OrderReferenceTypeDto;
35924
- orderNumber?: string;
35925
- orderLineNumber?: number | null;
35926
- }
35927
-
35928
- export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
35929
-
35930
- export interface ListProductionOrdersRequest {
35931
- search: string;
35932
- searchType: SearchTypeDto;
35933
- maxResults?: number | null;
36166
+ attachmentType?: string | null;
35934
36167
  }
35935
36168
 
35936
36169
  export interface ProductionOrderDto {
@@ -35993,18 +36226,6 @@ export interface ProductionOrderOperationDto {
35993
36226
  setupStatus?: OperationStatusDto | null;
35994
36227
  }
35995
36228
 
35996
- export interface WorkOrderAttachmentDto {
35997
- createdBy?: UserDto | null;
35998
- created?: Date | null;
35999
- modifiedBy?: UserDto | null;
36000
- modified?: Date | null;
36001
- attachmentId?: number | null;
36002
- name?: string | null;
36003
- fileName?: string | null;
36004
- notes?: string | null;
36005
- attachmentType?: string | null;
36006
- }
36007
-
36008
36229
  export interface ProductionOrderBomDto {
36009
36230
  position: string;
36010
36231
  lineNumber: number;
@@ -37573,6 +37794,95 @@ export interface ImaSpecificationLiteDto {
37573
37794
  isDeleted: boolean;
37574
37795
  }
37575
37796
 
37797
+ export interface SchemaCreatorStateDto {
37798
+ settings: SchemaCreatorSettingsDto;
37799
+ elements: SchemaCreatorElementDto[];
37800
+ fullParse?: SchemaCreatorFullParseStatusDto | null;
37801
+ }
37802
+
37803
+ export interface SchemaCreatorSettingsDto {
37804
+ unit?: UnitOfMeasureDto;
37805
+ tolerance?: GeneralToleranceDto;
37806
+ balloonSize?: number;
37807
+ }
37808
+
37809
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
37810
+
37811
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
37812
+
37813
+ export interface SchemaCreatorElementDto {
37814
+ id: string;
37815
+ kind: SchemaCreatorElementKindDto;
37816
+ drawings: SchemaCreatorElementDrawingsDto;
37817
+ isDirty?: boolean | null;
37818
+ values?: SchemaCreatorElementValuesDto | null;
37819
+ parseResult?: SchemaCreatorSnipResultDto | null;
37820
+ }
37821
+
37822
+ export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
37823
+
37824
+ export interface SchemaCreatorElementDrawingsDto {
37825
+ square: SchemaCreatorDrawingDto;
37826
+ circle: SchemaCreatorDrawingDto;
37827
+ textId: string;
37828
+ }
37829
+
37830
+ export interface SchemaCreatorDrawingDto {
37831
+ rect: SchemaCreatorRectDto;
37832
+ pageIndex: number;
37833
+ annotationId: string;
37834
+ rotation?: number | null;
37835
+ unrotatedRect?: SchemaCreatorRectDto | null;
37836
+ }
37837
+
37838
+ export interface SchemaCreatorRectDto {
37839
+ origin: SchemaCreatorPointDto;
37840
+ size: SchemaCreatorSizeDto;
37841
+ }
37842
+
37843
+ export interface SchemaCreatorPointDto {
37844
+ x: number;
37845
+ y: number;
37846
+ }
37847
+
37848
+ export interface SchemaCreatorSizeDto {
37849
+ width: number;
37850
+ height: number;
37851
+ }
37852
+
37853
+ export interface SchemaCreatorElementValuesDto {
37854
+ reference: number;
37855
+ nominal?: number | null;
37856
+ nominalText?: string | null;
37857
+ plusTolerance?: number | null;
37858
+ minusTolerance?: number | null;
37859
+ coatingThickness?: number | null;
37860
+ measurementFrequency: MeasurementFrequency;
37861
+ measurementFrequencyParameter?: number | null;
37862
+ type?: string | null;
37863
+ count?: number | null;
37864
+ comment?: string | null;
37865
+ canCopy: boolean;
37866
+ visibleToCustomer: boolean;
37867
+ isDocumentedExternally: boolean;
37868
+ }
37869
+
37870
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
37871
+
37872
+ export interface SchemaCreatorSnipResultDto {
37873
+ nominal?: number | null;
37874
+ nominalText?: string | null;
37875
+ plusTolerance?: number | null;
37876
+ minusTolerance?: number | null;
37877
+ coatingThickness?: number | null;
37878
+ count?: number | null;
37879
+ }
37880
+
37881
+ export interface SchemaCreatorFullParseStatusDto {
37882
+ inProgress: boolean;
37883
+ startedAt?: Date | null;
37884
+ }
37885
+
37576
37886
  export interface MeasurementFormSchemaDto {
37577
37887
  id: string;
37578
37888
  versionId: number;
@@ -37607,12 +37917,8 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
37607
37917
 
37608
37918
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
37609
37919
 
37610
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
37611
-
37612
37920
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
37613
37921
 
37614
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
37615
-
37616
37922
  export interface MeasurementFormSchemaAttachmentDto {
37617
37923
  url: string;
37618
37924
  title: string;
@@ -37663,8 +37969,6 @@ export interface MeasurementFormGroupedElementDto {
37663
37969
  validationErrorMessage?: string | null;
37664
37970
  }
37665
37971
 
37666
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
37667
-
37668
37972
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
37669
37973
 
37670
37974
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";