@ignos/api-client 20260330.95.1 → 20260401.97.1

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.
@@ -2633,6 +2633,24 @@ export declare class InspectMatchCertificateTypesClient extends AuthorizedApiBas
2633
2633
  releaseMaterialCertificateType(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto>;
2634
2634
  protected processReleaseMaterialCertificateType(response: Response): Promise<ImaCertificateTypeDto>;
2635
2635
  }
2636
+ export interface IInspectMatchPurchaseOrderClient {
2637
+ searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
2638
+ getPurchaseOrderLines(purchaseOrder: string): Promise<PurchaseOrderMaterialLinesDto>;
2639
+ getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto>;
2640
+ }
2641
+ export declare class InspectMatchPurchaseOrderClient extends AuthorizedApiBase implements IInspectMatchPurchaseOrderClient {
2642
+ private http;
2643
+ private baseUrl;
2644
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
2645
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
2646
+ });
2647
+ searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
2648
+ protected processSearchPurchaseOrders(response: Response): Promise<PurchaseOrderMaterialSearchResultsDto>;
2649
+ getPurchaseOrderLines(purchaseOrder: string): Promise<PurchaseOrderMaterialLinesDto>;
2650
+ protected processGetPurchaseOrderLines(response: Response): Promise<PurchaseOrderMaterialLinesDto>;
2651
+ getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto>;
2652
+ protected processGetPurchaseOrderLineDetails(response: Response): Promise<PurchaseOrderMaterialLineDetailsDto>;
2653
+ }
2636
2654
  export interface IInspectMatchSpecificationsClient {
2637
2655
  listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
2638
2656
  getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto>;
@@ -6637,6 +6655,7 @@ export interface LocationDto {
6637
6655
  zoneName?: string | null;
6638
6656
  kind: LocationKindDto;
6639
6657
  profile?: string | null;
6658
+ resourceName?: string | null;
6640
6659
  }
6641
6660
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
6642
6661
  export interface BookingRequestListDto {
@@ -6803,6 +6822,7 @@ export interface LocationMaterialDto {
6803
6822
  zoneName?: string | null;
6804
6823
  kind: LocationKindDto;
6805
6824
  profile?: string | null;
6825
+ resourceName?: string | null;
6806
6826
  materialAvailable: number;
6807
6827
  }
6808
6828
  export interface MaterialDesciptionDto {
@@ -8144,6 +8164,44 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
8144
8164
  microExaminationReport?: boolean | null;
8145
8165
  radiologicalReport?: boolean | null;
8146
8166
  }
8167
+ export interface PurchaseOrderMaterialSearchResultsDto {
8168
+ purchaseOrders: string[];
8169
+ }
8170
+ export interface PurchaseOrderMaterialLinesDto {
8171
+ lines: number[];
8172
+ }
8173
+ export interface PurchaseOrderMaterialLineDetailsDto {
8174
+ companyId: string;
8175
+ vendorName?: string | null;
8176
+ goNumber?: string | null;
8177
+ part?: Part | null;
8178
+ purchaseOrder: string;
8179
+ lineNumber?: number | null;
8180
+ dimension?: string | null;
8181
+ vendorBatches: string[];
8182
+ mdsCodeFl?: string | null;
8183
+ typeOfCertificate?: string | null;
8184
+ }
8185
+ export interface Part {
8186
+ partNumber?: string;
8187
+ partRevision?: string | null;
8188
+ partName?: string | null;
8189
+ customerPartNumber?: string | null;
8190
+ customerPartRevision?: string | null;
8191
+ customerPartName?: string | null;
8192
+ vendorPartNumber?: string | null;
8193
+ drawing?: string | null;
8194
+ drawingRevision?: string | null;
8195
+ drawingReference?: string | null;
8196
+ material?: string | null;
8197
+ planner?: User | null;
8198
+ }
8199
+ export interface User {
8200
+ id?: string | null;
8201
+ fullName?: string | null;
8202
+ upn?: string | null;
8203
+ email?: string | null;
8204
+ }
8147
8205
  export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
8148
8206
  specificationId: string;
8149
8207
  version: number;
@@ -21572,6 +21572,134 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
21572
21572
  return Promise.resolve(null);
21573
21573
  }
21574
21574
  }
21575
+ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
21576
+ constructor(configuration, baseUrl, http) {
21577
+ super(configuration);
21578
+ this.http = http ? http : window;
21579
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
21580
+ }
21581
+ searchPurchaseOrders(input) {
21582
+ let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
21583
+ if (input === null)
21584
+ throw new globalThis.Error("The parameter 'input' cannot be null.");
21585
+ else if (input !== undefined)
21586
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
21587
+ url_ = url_.replace(/[?&]$/, "");
21588
+ let options_ = {
21589
+ method: "GET",
21590
+ headers: {
21591
+ "Accept": "application/json"
21592
+ }
21593
+ };
21594
+ return this.transformOptions(options_).then(transformedOptions_ => {
21595
+ return this.http.fetch(url_, transformedOptions_);
21596
+ }).then((_response) => {
21597
+ return this.processSearchPurchaseOrders(_response);
21598
+ });
21599
+ }
21600
+ processSearchPurchaseOrders(response) {
21601
+ const status = response.status;
21602
+ let _headers = {};
21603
+ if (response.headers && response.headers.forEach) {
21604
+ response.headers.forEach((v, k) => _headers[k] = v);
21605
+ }
21606
+ ;
21607
+ if (status === 200) {
21608
+ return response.text().then((_responseText) => {
21609
+ let result200 = null;
21610
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21611
+ return result200;
21612
+ });
21613
+ }
21614
+ else if (status !== 200 && status !== 204) {
21615
+ return response.text().then((_responseText) => {
21616
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21617
+ });
21618
+ }
21619
+ return Promise.resolve(null);
21620
+ }
21621
+ getPurchaseOrderLines(purchaseOrder) {
21622
+ let url_ = this.baseUrl + "/inspect/match/purchase-order/lines/{purchaseOrder}";
21623
+ if (purchaseOrder === undefined || purchaseOrder === null)
21624
+ throw new globalThis.Error("The parameter 'purchaseOrder' must be defined.");
21625
+ url_ = url_.replace("{purchaseOrder}", encodeURIComponent("" + purchaseOrder));
21626
+ url_ = url_.replace(/[?&]$/, "");
21627
+ let options_ = {
21628
+ method: "GET",
21629
+ headers: {
21630
+ "Accept": "application/json"
21631
+ }
21632
+ };
21633
+ return this.transformOptions(options_).then(transformedOptions_ => {
21634
+ return this.http.fetch(url_, transformedOptions_);
21635
+ }).then((_response) => {
21636
+ return this.processGetPurchaseOrderLines(_response);
21637
+ });
21638
+ }
21639
+ processGetPurchaseOrderLines(response) {
21640
+ const status = response.status;
21641
+ let _headers = {};
21642
+ if (response.headers && response.headers.forEach) {
21643
+ response.headers.forEach((v, k) => _headers[k] = v);
21644
+ }
21645
+ ;
21646
+ if (status === 200) {
21647
+ return response.text().then((_responseText) => {
21648
+ let result200 = null;
21649
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21650
+ return result200;
21651
+ });
21652
+ }
21653
+ else if (status !== 200 && status !== 204) {
21654
+ return response.text().then((_responseText) => {
21655
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21656
+ });
21657
+ }
21658
+ return Promise.resolve(null);
21659
+ }
21660
+ getPurchaseOrderLineDetails(purchaseOrder, lineNumber) {
21661
+ let url_ = this.baseUrl + "/inspect/match/purchase-order/line-details/{purchaseOrder}/{lineNumber}";
21662
+ if (purchaseOrder === undefined || purchaseOrder === null)
21663
+ throw new globalThis.Error("The parameter 'purchaseOrder' must be defined.");
21664
+ url_ = url_.replace("{purchaseOrder}", encodeURIComponent("" + purchaseOrder));
21665
+ if (lineNumber === undefined || lineNumber === null)
21666
+ throw new globalThis.Error("The parameter 'lineNumber' must be defined.");
21667
+ url_ = url_.replace("{lineNumber}", encodeURIComponent("" + lineNumber));
21668
+ url_ = url_.replace(/[?&]$/, "");
21669
+ let options_ = {
21670
+ method: "GET",
21671
+ headers: {
21672
+ "Accept": "application/json"
21673
+ }
21674
+ };
21675
+ return this.transformOptions(options_).then(transformedOptions_ => {
21676
+ return this.http.fetch(url_, transformedOptions_);
21677
+ }).then((_response) => {
21678
+ return this.processGetPurchaseOrderLineDetails(_response);
21679
+ });
21680
+ }
21681
+ processGetPurchaseOrderLineDetails(response) {
21682
+ const status = response.status;
21683
+ let _headers = {};
21684
+ if (response.headers && response.headers.forEach) {
21685
+ response.headers.forEach((v, k) => _headers[k] = v);
21686
+ }
21687
+ ;
21688
+ if (status === 200) {
21689
+ return response.text().then((_responseText) => {
21690
+ let result200 = null;
21691
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21692
+ return result200;
21693
+ });
21694
+ }
21695
+ else if (status !== 200 && status !== 204) {
21696
+ return response.text().then((_responseText) => {
21697
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21698
+ });
21699
+ }
21700
+ return Promise.resolve(null);
21701
+ }
21702
+ }
21575
21703
  export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
21576
21704
  constructor(configuration, baseUrl, http) {
21577
21705
  super(configuration);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260330.95.1",
3
+ "version": "20260401.97.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -23081,6 +23081,144 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
23081
23081
  }
23082
23082
  }
23083
23083
 
23084
+ export interface IInspectMatchPurchaseOrderClient {
23085
+
23086
+ searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
23087
+
23088
+ getPurchaseOrderLines(purchaseOrder: string): Promise<PurchaseOrderMaterialLinesDto>;
23089
+
23090
+ getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto>;
23091
+ }
23092
+
23093
+ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase implements IInspectMatchPurchaseOrderClient {
23094
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
23095
+ private baseUrl: string;
23096
+
23097
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
23098
+ super(configuration);
23099
+ this.http = http ? http : window as any;
23100
+ this.baseUrl = baseUrl ?? "";
23101
+ }
23102
+
23103
+ searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto> {
23104
+ let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
23105
+ if (input === null)
23106
+ throw new globalThis.Error("The parameter 'input' cannot be null.");
23107
+ else if (input !== undefined)
23108
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
23109
+ url_ = url_.replace(/[?&]$/, "");
23110
+
23111
+ let options_: RequestInit = {
23112
+ method: "GET",
23113
+ headers: {
23114
+ "Accept": "application/json"
23115
+ }
23116
+ };
23117
+
23118
+ return this.transformOptions(options_).then(transformedOptions_ => {
23119
+ return this.http.fetch(url_, transformedOptions_);
23120
+ }).then((_response: Response) => {
23121
+ return this.processSearchPurchaseOrders(_response);
23122
+ });
23123
+ }
23124
+
23125
+ protected processSearchPurchaseOrders(response: Response): Promise<PurchaseOrderMaterialSearchResultsDto> {
23126
+ const status = response.status;
23127
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23128
+ if (status === 200) {
23129
+ return response.text().then((_responseText) => {
23130
+ let result200: any = null;
23131
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PurchaseOrderMaterialSearchResultsDto;
23132
+ return result200;
23133
+ });
23134
+ } else if (status !== 200 && status !== 204) {
23135
+ return response.text().then((_responseText) => {
23136
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23137
+ });
23138
+ }
23139
+ return Promise.resolve<PurchaseOrderMaterialSearchResultsDto>(null as any);
23140
+ }
23141
+
23142
+ getPurchaseOrderLines(purchaseOrder: string): Promise<PurchaseOrderMaterialLinesDto> {
23143
+ let url_ = this.baseUrl + "/inspect/match/purchase-order/lines/{purchaseOrder}";
23144
+ if (purchaseOrder === undefined || purchaseOrder === null)
23145
+ throw new globalThis.Error("The parameter 'purchaseOrder' must be defined.");
23146
+ url_ = url_.replace("{purchaseOrder}", encodeURIComponent("" + purchaseOrder));
23147
+ url_ = url_.replace(/[?&]$/, "");
23148
+
23149
+ let options_: RequestInit = {
23150
+ method: "GET",
23151
+ headers: {
23152
+ "Accept": "application/json"
23153
+ }
23154
+ };
23155
+
23156
+ return this.transformOptions(options_).then(transformedOptions_ => {
23157
+ return this.http.fetch(url_, transformedOptions_);
23158
+ }).then((_response: Response) => {
23159
+ return this.processGetPurchaseOrderLines(_response);
23160
+ });
23161
+ }
23162
+
23163
+ protected processGetPurchaseOrderLines(response: Response): Promise<PurchaseOrderMaterialLinesDto> {
23164
+ const status = response.status;
23165
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23166
+ if (status === 200) {
23167
+ return response.text().then((_responseText) => {
23168
+ let result200: any = null;
23169
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PurchaseOrderMaterialLinesDto;
23170
+ return result200;
23171
+ });
23172
+ } else if (status !== 200 && status !== 204) {
23173
+ return response.text().then((_responseText) => {
23174
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23175
+ });
23176
+ }
23177
+ return Promise.resolve<PurchaseOrderMaterialLinesDto>(null as any);
23178
+ }
23179
+
23180
+ getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto> {
23181
+ let url_ = this.baseUrl + "/inspect/match/purchase-order/line-details/{purchaseOrder}/{lineNumber}";
23182
+ if (purchaseOrder === undefined || purchaseOrder === null)
23183
+ throw new globalThis.Error("The parameter 'purchaseOrder' must be defined.");
23184
+ url_ = url_.replace("{purchaseOrder}", encodeURIComponent("" + purchaseOrder));
23185
+ if (lineNumber === undefined || lineNumber === null)
23186
+ throw new globalThis.Error("The parameter 'lineNumber' must be defined.");
23187
+ url_ = url_.replace("{lineNumber}", encodeURIComponent("" + lineNumber));
23188
+ url_ = url_.replace(/[?&]$/, "");
23189
+
23190
+ let options_: RequestInit = {
23191
+ method: "GET",
23192
+ headers: {
23193
+ "Accept": "application/json"
23194
+ }
23195
+ };
23196
+
23197
+ return this.transformOptions(options_).then(transformedOptions_ => {
23198
+ return this.http.fetch(url_, transformedOptions_);
23199
+ }).then((_response: Response) => {
23200
+ return this.processGetPurchaseOrderLineDetails(_response);
23201
+ });
23202
+ }
23203
+
23204
+ protected processGetPurchaseOrderLineDetails(response: Response): Promise<PurchaseOrderMaterialLineDetailsDto> {
23205
+ const status = response.status;
23206
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23207
+ if (status === 200) {
23208
+ return response.text().then((_responseText) => {
23209
+ let result200: any = null;
23210
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PurchaseOrderMaterialLineDetailsDto;
23211
+ return result200;
23212
+ });
23213
+ } else if (status !== 200 && status !== 204) {
23214
+ return response.text().then((_responseText) => {
23215
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23216
+ });
23217
+ }
23218
+ return Promise.resolve<PurchaseOrderMaterialLineDetailsDto>(null as any);
23219
+ }
23220
+ }
23221
+
23084
23222
  export interface IInspectMatchSpecificationsClient {
23085
23223
 
23086
23224
  listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
@@ -33149,6 +33287,7 @@ export interface LocationDto {
33149
33287
  zoneName?: string | null;
33150
33288
  kind: LocationKindDto;
33151
33289
  profile?: string | null;
33290
+ resourceName?: string | null;
33152
33291
  }
33153
33292
 
33154
33293
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
@@ -33342,6 +33481,7 @@ export interface LocationMaterialDto {
33342
33481
  zoneName?: string | null;
33343
33482
  kind: LocationKindDto;
33344
33483
  profile?: string | null;
33484
+ resourceName?: string | null;
33345
33485
  materialAvailable: number;
33346
33486
  }
33347
33487
 
@@ -34852,6 +34992,49 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
34852
34992
  radiologicalReport?: boolean | null;
34853
34993
  }
34854
34994
 
34995
+ export interface PurchaseOrderMaterialSearchResultsDto {
34996
+ purchaseOrders: string[];
34997
+ }
34998
+
34999
+ export interface PurchaseOrderMaterialLinesDto {
35000
+ lines: number[];
35001
+ }
35002
+
35003
+ export interface PurchaseOrderMaterialLineDetailsDto {
35004
+ companyId: string;
35005
+ vendorName?: string | null;
35006
+ goNumber?: string | null;
35007
+ part?: Part | null;
35008
+ purchaseOrder: string;
35009
+ lineNumber?: number | null;
35010
+ dimension?: string | null;
35011
+ vendorBatches: string[];
35012
+ mdsCodeFl?: string | null;
35013
+ typeOfCertificate?: string | null;
35014
+ }
35015
+
35016
+ export interface Part {
35017
+ partNumber?: string;
35018
+ partRevision?: string | null;
35019
+ partName?: string | null;
35020
+ customerPartNumber?: string | null;
35021
+ customerPartRevision?: string | null;
35022
+ customerPartName?: string | null;
35023
+ vendorPartNumber?: string | null;
35024
+ drawing?: string | null;
35025
+ drawingRevision?: string | null;
35026
+ drawingReference?: string | null;
35027
+ material?: string | null;
35028
+ planner?: User | null;
35029
+ }
35030
+
35031
+ export interface User {
35032
+ id?: string | null;
35033
+ fullName?: string | null;
35034
+ upn?: string | null;
35035
+ email?: string | null;
35036
+ }
35037
+
34855
35038
  export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
34856
35039
  specificationId: string;
34857
35040
  version: number;