@ignos/api-client 20260216.51.1-alpha → 20260216.52.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.
@@ -312,6 +312,7 @@ export declare class MeClient extends AuthorizedApiBase implements IMeClient {
312
312
  export interface IUsersClient {
313
313
  listUsers(pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfUserDto>;
314
314
  postListUsers(request: ListUsersRequest | undefined): Promise<PagedResultOfUserDto>;
315
+ listUsersNotSeenAfter(request: ListUsersNotSeenAfterRequest): Promise<PagedResultOfUserDto>;
315
316
  }
316
317
  export declare class UsersClient extends AuthorizedApiBase implements IUsersClient {
317
318
  private http;
@@ -323,6 +324,8 @@ export declare class UsersClient extends AuthorizedApiBase implements IUsersClie
323
324
  protected processListUsers(response: Response): Promise<PagedResultOfUserDto>;
324
325
  postListUsers(request: ListUsersRequest | undefined): Promise<PagedResultOfUserDto>;
325
326
  protected processPostListUsers(response: Response): Promise<PagedResultOfUserDto>;
327
+ listUsersNotSeenAfter(request: ListUsersNotSeenAfterRequest): Promise<PagedResultOfUserDto>;
328
+ protected processListUsersNotSeenAfter(response: Response): Promise<PagedResultOfUserDto>;
326
329
  }
327
330
  export interface IUserAppSettingsClient {
328
331
  getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
@@ -3185,7 +3188,7 @@ export declare class MaterialCertificateChecksClient extends AuthorizedApiBase i
3185
3188
  }
3186
3189
  export interface IMaterialCertificateSpecificationsClient {
3187
3190
  listSpecifications(): Promise<AmcSpecificationLiteDto[]>;
3188
- getSpecification(specificationId: string, version: number): Promise<AmcSpecificationDto>;
3191
+ getSpecification(specificationId: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
3189
3192
  createSpecifications(specificationsRequest: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
3190
3193
  updateSpecifications(specificationsRequest: UpdateAmcSpecificationDto): Promise<AmcSpecificationDto>;
3191
3194
  deleteMaterialCertificateTypes(materialCertificateSpecificationId: string, version: string): Promise<void>;
@@ -3198,7 +3201,7 @@ export declare class MaterialCertificateSpecificationsClient extends AuthorizedA
3198
3201
  });
3199
3202
  listSpecifications(): Promise<AmcSpecificationLiteDto[]>;
3200
3203
  protected processListSpecifications(response: Response): Promise<AmcSpecificationLiteDto[]>;
3201
- getSpecification(specificationId: string, version: number): Promise<AmcSpecificationDto>;
3204
+ getSpecification(specificationId: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
3202
3205
  protected processGetSpecification(response: Response): Promise<AmcSpecificationDto>;
3203
3206
  createSpecifications(specificationsRequest: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
3204
3207
  protected processCreateSpecifications(response: Response): Promise<AmcSpecificationDto>;
@@ -3209,7 +3212,7 @@ export declare class MaterialCertificateSpecificationsClient extends AuthorizedA
3209
3212
  }
3210
3213
  export interface IMaterialCertificateTypesClient {
3211
3214
  listMaterialCertificateTypes(): Promise<AmcTypeLiteDto[]>;
3212
- getMaterialCertificateTypes(typeId: string, version: number): Promise<AmcTypeDto>;
3215
+ getMaterialCertificateTypes(typeId: string, version: number | null | undefined): Promise<AmcTypeDto>;
3213
3216
  createMaterialCertificateTypes(certificatesTypesRequest: CreateAmcTypeRequestDto): Promise<AmcTypeDto>;
3214
3217
  updateMaterialCertificateTypes(certificatesTypesRequest: UpdateAmcTypeDto): Promise<AmcTypeDto>;
3215
3218
  deleteMaterialCertificateTypes(materialCertificateTypeId: string, version: number): Promise<void>;
@@ -3222,7 +3225,7 @@ export declare class MaterialCertificateTypesClient extends AuthorizedApiBase im
3222
3225
  });
3223
3226
  listMaterialCertificateTypes(): Promise<AmcTypeLiteDto[]>;
3224
3227
  protected processListMaterialCertificateTypes(response: Response): Promise<AmcTypeLiteDto[]>;
3225
- getMaterialCertificateTypes(typeId: string, version: number): Promise<AmcTypeDto>;
3228
+ getMaterialCertificateTypes(typeId: string, version: number | null | undefined): Promise<AmcTypeDto>;
3226
3229
  protected processGetMaterialCertificateTypes(response: Response): Promise<AmcTypeDto>;
3227
3230
  createMaterialCertificateTypes(certificatesTypesRequest: CreateAmcTypeRequestDto): Promise<AmcTypeDto>;
3228
3231
  protected processCreateMaterialCertificateTypes(response: Response): Promise<AmcTypeDto>;
@@ -3479,6 +3482,11 @@ export interface ListUsersRequest {
3479
3482
  filter?: string | null;
3480
3483
  continuationToken?: string | null;
3481
3484
  }
3485
+ export interface ListUsersNotSeenAfterRequest {
3486
+ notSeenAfter: Date;
3487
+ pageSize?: number | null;
3488
+ continuationToken?: string | null;
3489
+ }
3482
3490
  export interface RouteCardAppSettings {
3483
3491
  includeDrawingInRouteCardPrint?: boolean;
3484
3492
  routeCardPrintInLandscapeOrientation?: boolean;
@@ -8752,6 +8760,7 @@ export type AmcSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejecte
8752
8760
  export interface AmcSpecificationDto {
8753
8761
  specificationId: string;
8754
8762
  version: number;
8763
+ allVersions: AmcSpecificationVersionDto[];
8755
8764
  name: string;
8756
8765
  number: string;
8757
8766
  revision: string;
@@ -8769,6 +8778,10 @@ export interface AmcSpecificationDto {
8769
8778
  ferriteSpecification: AmcFerriteSpecificationDto;
8770
8779
  heatSpecification: AmcHeatTreatmentSpecificationDto;
8771
8780
  }
8781
+ export interface AmcSpecificationVersionDto {
8782
+ version?: number;
8783
+ status?: AmcSpecificationStatus;
8784
+ }
8772
8785
  export interface AmcChemistrySpecificationDto {
8773
8786
  carbon?: AmcSpecificationLineDto | null;
8774
8787
  manganese?: AmcSpecificationLineDto | null;
@@ -8853,6 +8866,7 @@ export type AmcTypeStatus = "Draft" | "Released" | "Expired" | "Rejected";
8853
8866
  export interface AmcTypeDto {
8854
8867
  typeId: string;
8855
8868
  version: number;
8869
+ allVersions: AmcTypeVersionDto[];
8856
8870
  name: string;
8857
8871
  revision: string;
8858
8872
  status: AmcTypeStatus;
@@ -8865,6 +8879,10 @@ export interface AmcTypeDto {
8865
8879
  updatedById?: string | null;
8866
8880
  checks: AmcTypeChecksDto;
8867
8881
  }
8882
+ export interface AmcTypeVersionDto {
8883
+ version?: number;
8884
+ status?: AmcTypeStatus;
8885
+ }
8868
8886
  export interface AmcTypeChecksDto {
8869
8887
  manufacturer: AmcTypeManufacturerChecksDto;
8870
8888
  signature: AmcTypeSignatureChecksDto;
@@ -1786,6 +1786,45 @@ export class UsersClient extends AuthorizedApiBase {
1786
1786
  }
1787
1787
  return Promise.resolve(null);
1788
1788
  }
1789
+ listUsersNotSeenAfter(request) {
1790
+ let url_ = this.baseUrl + "/users/listdetails";
1791
+ url_ = url_.replace(/[?&]$/, "");
1792
+ const content_ = JSON.stringify(request);
1793
+ let options_ = {
1794
+ body: content_,
1795
+ method: "POST",
1796
+ headers: {
1797
+ "Content-Type": "application/json",
1798
+ "Accept": "application/json"
1799
+ }
1800
+ };
1801
+ return this.transformOptions(options_).then(transformedOptions_ => {
1802
+ return this.http.fetch(url_, transformedOptions_);
1803
+ }).then((_response) => {
1804
+ return this.processListUsersNotSeenAfter(_response);
1805
+ });
1806
+ }
1807
+ processListUsersNotSeenAfter(response) {
1808
+ const status = response.status;
1809
+ let _headers = {};
1810
+ if (response.headers && response.headers.forEach) {
1811
+ response.headers.forEach((v, k) => _headers[k] = v);
1812
+ }
1813
+ ;
1814
+ if (status === 200) {
1815
+ return response.text().then((_responseText) => {
1816
+ let result200 = null;
1817
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1818
+ return result200;
1819
+ });
1820
+ }
1821
+ else if (status !== 200 && status !== 204) {
1822
+ return response.text().then((_responseText) => {
1823
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1824
+ });
1825
+ }
1826
+ return Promise.resolve(null);
1827
+ }
1789
1828
  }
1790
1829
  export class UserAppSettingsClient extends AuthorizedApiBase {
1791
1830
  constructor(configuration, baseUrl, http) {
@@ -25702,13 +25741,12 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
25702
25741
  return Promise.resolve(null);
25703
25742
  }
25704
25743
  getSpecification(specificationId, version) {
25705
- let url_ = this.baseUrl + "/material-certificate/specifications/{specificationId}/{version}";
25744
+ let url_ = this.baseUrl + "/material-certificate/specifications/{specificationId}?";
25706
25745
  if (specificationId === undefined || specificationId === null)
25707
25746
  throw new globalThis.Error("The parameter 'specificationId' must be defined.");
25708
25747
  url_ = url_.replace("{specificationId}", encodeURIComponent("" + specificationId));
25709
- if (version === undefined || version === null)
25710
- throw new globalThis.Error("The parameter 'version' must be defined.");
25711
- url_ = url_.replace("{version}", encodeURIComponent("" + version));
25748
+ if (version !== undefined && version !== null)
25749
+ url_ += "version=" + encodeURIComponent("" + version) + "&";
25712
25750
  url_ = url_.replace(/[?&]$/, "");
25713
25751
  let options_ = {
25714
25752
  method: "GET",
@@ -25903,13 +25941,12 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
25903
25941
  return Promise.resolve(null);
25904
25942
  }
25905
25943
  getMaterialCertificateTypes(typeId, version) {
25906
- let url_ = this.baseUrl + "/material-certificate/types/{typeId}/{version}";
25944
+ let url_ = this.baseUrl + "/material-certificate/types/{typeId}?";
25907
25945
  if (typeId === undefined || typeId === null)
25908
25946
  throw new globalThis.Error("The parameter 'typeId' must be defined.");
25909
25947
  url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
25910
- if (version === undefined || version === null)
25911
- throw new globalThis.Error("The parameter 'version' must be defined.");
25912
- url_ = url_.replace("{version}", encodeURIComponent("" + version));
25948
+ if (version !== undefined && version !== null)
25949
+ url_ += "version=" + encodeURIComponent("" + version) + "&";
25913
25950
  url_ = url_.replace(/[?&]$/, "");
25914
25951
  let options_ = {
25915
25952
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260216.51.1-alpha",
3
+ "version": "20260216.52.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1878,6 +1878,8 @@ export interface IUsersClient {
1878
1878
  listUsers(pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfUserDto>;
1879
1879
 
1880
1880
  postListUsers(request: ListUsersRequest | undefined): Promise<PagedResultOfUserDto>;
1881
+
1882
+ listUsersNotSeenAfter(request: ListUsersNotSeenAfterRequest): Promise<PagedResultOfUserDto>;
1881
1883
  }
1882
1884
 
1883
1885
  export class UsersClient extends AuthorizedApiBase implements IUsersClient {
@@ -1971,6 +1973,45 @@ export class UsersClient extends AuthorizedApiBase implements IUsersClient {
1971
1973
  }
1972
1974
  return Promise.resolve<PagedResultOfUserDto>(null as any);
1973
1975
  }
1976
+
1977
+ listUsersNotSeenAfter(request: ListUsersNotSeenAfterRequest): Promise<PagedResultOfUserDto> {
1978
+ let url_ = this.baseUrl + "/users/listdetails";
1979
+ url_ = url_.replace(/[?&]$/, "");
1980
+
1981
+ const content_ = JSON.stringify(request);
1982
+
1983
+ let options_: RequestInit = {
1984
+ body: content_,
1985
+ method: "POST",
1986
+ headers: {
1987
+ "Content-Type": "application/json",
1988
+ "Accept": "application/json"
1989
+ }
1990
+ };
1991
+
1992
+ return this.transformOptions(options_).then(transformedOptions_ => {
1993
+ return this.http.fetch(url_, transformedOptions_);
1994
+ }).then((_response: Response) => {
1995
+ return this.processListUsersNotSeenAfter(_response);
1996
+ });
1997
+ }
1998
+
1999
+ protected processListUsersNotSeenAfter(response: Response): Promise<PagedResultOfUserDto> {
2000
+ const status = response.status;
2001
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
2002
+ if (status === 200) {
2003
+ return response.text().then((_responseText) => {
2004
+ let result200: any = null;
2005
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PagedResultOfUserDto;
2006
+ return result200;
2007
+ });
2008
+ } else if (status !== 200 && status !== 204) {
2009
+ return response.text().then((_responseText) => {
2010
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2011
+ });
2012
+ }
2013
+ return Promise.resolve<PagedResultOfUserDto>(null as any);
2014
+ }
1974
2015
  }
1975
2016
 
1976
2017
  export interface IUserAppSettingsClient {
@@ -27468,7 +27509,7 @@ export interface IMaterialCertificateSpecificationsClient {
27468
27509
 
27469
27510
  listSpecifications(): Promise<AmcSpecificationLiteDto[]>;
27470
27511
 
27471
- getSpecification(specificationId: string, version: number): Promise<AmcSpecificationDto>;
27512
+ getSpecification(specificationId: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
27472
27513
 
27473
27514
  createSpecifications(specificationsRequest: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
27474
27515
 
@@ -27522,14 +27563,13 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase i
27522
27563
  return Promise.resolve<AmcSpecificationLiteDto[]>(null as any);
27523
27564
  }
27524
27565
 
27525
- getSpecification(specificationId: string, version: number): Promise<AmcSpecificationDto> {
27526
- let url_ = this.baseUrl + "/material-certificate/specifications/{specificationId}/{version}";
27566
+ getSpecification(specificationId: string, version: number | null | undefined): Promise<AmcSpecificationDto> {
27567
+ let url_ = this.baseUrl + "/material-certificate/specifications/{specificationId}?";
27527
27568
  if (specificationId === undefined || specificationId === null)
27528
27569
  throw new globalThis.Error("The parameter 'specificationId' must be defined.");
27529
27570
  url_ = url_.replace("{specificationId}", encodeURIComponent("" + specificationId));
27530
- if (version === undefined || version === null)
27531
- throw new globalThis.Error("The parameter 'version' must be defined.");
27532
- url_ = url_.replace("{version}", encodeURIComponent("" + version));
27571
+ if (version !== undefined && version !== null)
27572
+ url_ += "version=" + encodeURIComponent("" + version) + "&";
27533
27573
  url_ = url_.replace(/[?&]$/, "");
27534
27574
 
27535
27575
  let options_: RequestInit = {
@@ -27684,7 +27724,7 @@ export interface IMaterialCertificateTypesClient {
27684
27724
 
27685
27725
  listMaterialCertificateTypes(): Promise<AmcTypeLiteDto[]>;
27686
27726
 
27687
- getMaterialCertificateTypes(typeId: string, version: number): Promise<AmcTypeDto>;
27727
+ getMaterialCertificateTypes(typeId: string, version: number | null | undefined): Promise<AmcTypeDto>;
27688
27728
 
27689
27729
  createMaterialCertificateTypes(certificatesTypesRequest: CreateAmcTypeRequestDto): Promise<AmcTypeDto>;
27690
27730
 
@@ -27738,14 +27778,13 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase implements
27738
27778
  return Promise.resolve<AmcTypeLiteDto[]>(null as any);
27739
27779
  }
27740
27780
 
27741
- getMaterialCertificateTypes(typeId: string, version: number): Promise<AmcTypeDto> {
27742
- let url_ = this.baseUrl + "/material-certificate/types/{typeId}/{version}";
27781
+ getMaterialCertificateTypes(typeId: string, version: number | null | undefined): Promise<AmcTypeDto> {
27782
+ let url_ = this.baseUrl + "/material-certificate/types/{typeId}?";
27743
27783
  if (typeId === undefined || typeId === null)
27744
27784
  throw new globalThis.Error("The parameter 'typeId' must be defined.");
27745
27785
  url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
27746
- if (version === undefined || version === null)
27747
- throw new globalThis.Error("The parameter 'version' must be defined.");
27748
- url_ = url_.replace("{version}", encodeURIComponent("" + version));
27786
+ if (version !== undefined && version !== null)
27787
+ url_ += "version=" + encodeURIComponent("" + version) + "&";
27749
27788
  url_ = url_.replace(/[?&]$/, "");
27750
27789
 
27751
27790
  let options_: RequestInit = {
@@ -28185,6 +28224,12 @@ export interface ListUsersRequest {
28185
28224
  continuationToken?: string | null;
28186
28225
  }
28187
28226
 
28227
+ export interface ListUsersNotSeenAfterRequest {
28228
+ notSeenAfter: Date;
28229
+ pageSize?: number | null;
28230
+ continuationToken?: string | null;
28231
+ }
28232
+
28188
28233
  export interface RouteCardAppSettings {
28189
28234
  includeDrawingInRouteCardPrint?: boolean;
28190
28235
  routeCardPrintInLandscapeOrientation?: boolean;
@@ -34183,6 +34228,7 @@ export type AmcSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejecte
34183
34228
  export interface AmcSpecificationDto {
34184
34229
  specificationId: string;
34185
34230
  version: number;
34231
+ allVersions: AmcSpecificationVersionDto[];
34186
34232
  name: string;
34187
34233
  number: string;
34188
34234
  revision: string;
@@ -34201,6 +34247,11 @@ export interface AmcSpecificationDto {
34201
34247
  heatSpecification: AmcHeatTreatmentSpecificationDto;
34202
34248
  }
34203
34249
 
34250
+ export interface AmcSpecificationVersionDto {
34251
+ version?: number;
34252
+ status?: AmcSpecificationStatus;
34253
+ }
34254
+
34204
34255
  export interface AmcChemistrySpecificationDto {
34205
34256
  carbon?: AmcSpecificationLineDto | null;
34206
34257
  manganese?: AmcSpecificationLineDto | null;
@@ -34298,6 +34349,7 @@ export type AmcTypeStatus = "Draft" | "Released" | "Expired" | "Rejected";
34298
34349
  export interface AmcTypeDto {
34299
34350
  typeId: string;
34300
34351
  version: number;
34352
+ allVersions: AmcTypeVersionDto[];
34301
34353
  name: string;
34302
34354
  revision: string;
34303
34355
  status: AmcTypeStatus;
@@ -34311,6 +34363,11 @@ export interface AmcTypeDto {
34311
34363
  checks: AmcTypeChecksDto;
34312
34364
  }
34313
34365
 
34366
+ export interface AmcTypeVersionDto {
34367
+ version?: number;
34368
+ status?: AmcTypeStatus;
34369
+ }
34370
+
34314
34371
  export interface AmcTypeChecksDto {
34315
34372
  manufacturer: AmcTypeManufacturerChecksDto;
34316
34373
  signature: AmcTypeSignatureChecksDto;