@ignos/api-client 20260212.46.1 → 20260213.48.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.
- package/lib/ignosportal-api.d.ts +77 -4
- package/lib/ignosportal-api.js +225 -8
- package/package.json +1 -1
- package/src/ignosportal-api.ts +301 -12
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -319,6 +319,7 @@ export declare class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
|
319
319
|
export interface IUsersClient {
|
|
320
320
|
listUsers(pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfUserDto>;
|
|
321
321
|
postListUsers(request: ListUsersRequest | undefined): Promise<PagedResultOfUserDto>;
|
|
322
|
+
listTenantUsers(request: ListTenantUsersRequest | undefined): Promise<PagedResultOfTenantUserDto>;
|
|
322
323
|
}
|
|
323
324
|
export declare class UsersClient extends AuthorizedApiBase implements IUsersClient {
|
|
324
325
|
private http;
|
|
@@ -331,6 +332,8 @@ export declare class UsersClient extends AuthorizedApiBase implements IUsersClie
|
|
|
331
332
|
protected processListUsers(response: Response): Promise<PagedResultOfUserDto>;
|
|
332
333
|
postListUsers(request: ListUsersRequest | undefined): Promise<PagedResultOfUserDto>;
|
|
333
334
|
protected processPostListUsers(response: Response): Promise<PagedResultOfUserDto>;
|
|
335
|
+
listTenantUsers(request: ListTenantUsersRequest | undefined): Promise<PagedResultOfTenantUserDto>;
|
|
336
|
+
protected processListTenantUsers(response: Response): Promise<PagedResultOfTenantUserDto>;
|
|
334
337
|
}
|
|
335
338
|
export interface IUserAppSettingsClient {
|
|
336
339
|
getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
|
|
@@ -3265,7 +3268,7 @@ export declare class MaterialCertificateChecksClient extends AuthorizedApiBase i
|
|
|
3265
3268
|
}
|
|
3266
3269
|
export interface IMaterialCertificateSpecificationsClient {
|
|
3267
3270
|
listSpecifications(): Promise<AmcSpecificationLiteDto[]>;
|
|
3268
|
-
getSpecification(specificationId: string, version: number): Promise<AmcSpecificationDto>;
|
|
3271
|
+
getSpecification(specificationId: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
|
|
3269
3272
|
createSpecifications(specificationsRequest: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3270
3273
|
updateSpecifications(specificationsRequest: UpdateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3271
3274
|
deleteMaterialCertificateTypes(materialCertificateSpecificationId: string, version: string): Promise<void>;
|
|
@@ -3279,7 +3282,7 @@ export declare class MaterialCertificateSpecificationsClient extends AuthorizedA
|
|
|
3279
3282
|
});
|
|
3280
3283
|
listSpecifications(): Promise<AmcSpecificationLiteDto[]>;
|
|
3281
3284
|
protected processListSpecifications(response: Response): Promise<AmcSpecificationLiteDto[]>;
|
|
3282
|
-
getSpecification(specificationId: string, version: number): Promise<AmcSpecificationDto>;
|
|
3285
|
+
getSpecification(specificationId: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
|
|
3283
3286
|
protected processGetSpecification(response: Response): Promise<AmcSpecificationDto>;
|
|
3284
3287
|
createSpecifications(specificationsRequest: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3285
3288
|
protected processCreateSpecifications(response: Response): Promise<AmcSpecificationDto>;
|
|
@@ -3290,7 +3293,7 @@ export declare class MaterialCertificateSpecificationsClient extends AuthorizedA
|
|
|
3290
3293
|
}
|
|
3291
3294
|
export interface IMaterialCertificateTypesClient {
|
|
3292
3295
|
listMaterialCertificateTypes(): Promise<AmcTypeLiteDto[]>;
|
|
3293
|
-
getMaterialCertificateTypes(typeId: string, version: number): Promise<AmcTypeDto>;
|
|
3296
|
+
getMaterialCertificateTypes(typeId: string, version: number | null | undefined): Promise<AmcTypeDto>;
|
|
3294
3297
|
createMaterialCertificateTypes(certificatesTypesRequest: CreateAmcTypeRequestDto): Promise<AmcTypeDto>;
|
|
3295
3298
|
updateMaterialCertificateTypes(certificatesTypesRequest: UpdateAmcTypeDto): Promise<AmcTypeDto>;
|
|
3296
3299
|
deleteMaterialCertificateTypes(materialCertificateTypeId: string, version: number): Promise<void>;
|
|
@@ -3304,7 +3307,7 @@ export declare class MaterialCertificateTypesClient extends AuthorizedApiBase im
|
|
|
3304
3307
|
});
|
|
3305
3308
|
listMaterialCertificateTypes(): Promise<AmcTypeLiteDto[]>;
|
|
3306
3309
|
protected processListMaterialCertificateTypes(response: Response): Promise<AmcTypeLiteDto[]>;
|
|
3307
|
-
getMaterialCertificateTypes(typeId: string, version: number): Promise<AmcTypeDto>;
|
|
3310
|
+
getMaterialCertificateTypes(typeId: string, version: number | null | undefined): Promise<AmcTypeDto>;
|
|
3308
3311
|
protected processGetMaterialCertificateTypes(response: Response): Promise<AmcTypeDto>;
|
|
3309
3312
|
createMaterialCertificateTypes(certificatesTypesRequest: CreateAmcTypeRequestDto): Promise<AmcTypeDto>;
|
|
3310
3313
|
protected processCreateMaterialCertificateTypes(response: Response): Promise<AmcTypeDto>;
|
|
@@ -3971,6 +3974,48 @@ export interface IListUsersRequest {
|
|
|
3971
3974
|
filter?: string | null;
|
|
3972
3975
|
continuationToken?: string | null;
|
|
3973
3976
|
}
|
|
3977
|
+
export declare class PagedResultOfTenantUserDto implements IPagedResultOfTenantUserDto {
|
|
3978
|
+
results: TenantUserDto[];
|
|
3979
|
+
continuationToken?: string | null;
|
|
3980
|
+
constructor(data?: IPagedResultOfTenantUserDto);
|
|
3981
|
+
init(_data?: any): void;
|
|
3982
|
+
static fromJS(data: any): PagedResultOfTenantUserDto;
|
|
3983
|
+
toJSON(data?: any): any;
|
|
3984
|
+
}
|
|
3985
|
+
export interface IPagedResultOfTenantUserDto {
|
|
3986
|
+
results: TenantUserDto[];
|
|
3987
|
+
continuationToken?: string | null;
|
|
3988
|
+
}
|
|
3989
|
+
export declare class TenantUserDto implements ITenantUserDto {
|
|
3990
|
+
id?: string;
|
|
3991
|
+
fullName?: string;
|
|
3992
|
+
upn?: string;
|
|
3993
|
+
isBetaTester?: boolean | null;
|
|
3994
|
+
lastSeen?: Date;
|
|
3995
|
+
constructor(data?: ITenantUserDto);
|
|
3996
|
+
init(_data?: any): void;
|
|
3997
|
+
static fromJS(data: any): TenantUserDto;
|
|
3998
|
+
toJSON(data?: any): any;
|
|
3999
|
+
}
|
|
4000
|
+
export interface ITenantUserDto {
|
|
4001
|
+
id?: string;
|
|
4002
|
+
fullName?: string;
|
|
4003
|
+
upn?: string;
|
|
4004
|
+
isBetaTester?: boolean | null;
|
|
4005
|
+
lastSeen?: Date;
|
|
4006
|
+
}
|
|
4007
|
+
export declare class ListTenantUsersRequest implements IListTenantUsersRequest {
|
|
4008
|
+
pageSize?: number | null;
|
|
4009
|
+
continuationToken?: string | null;
|
|
4010
|
+
constructor(data?: IListTenantUsersRequest);
|
|
4011
|
+
init(_data?: any): void;
|
|
4012
|
+
static fromJS(data: any): ListTenantUsersRequest;
|
|
4013
|
+
toJSON(data?: any): any;
|
|
4014
|
+
}
|
|
4015
|
+
export interface IListTenantUsersRequest {
|
|
4016
|
+
pageSize?: number | null;
|
|
4017
|
+
continuationToken?: string | null;
|
|
4018
|
+
}
|
|
3974
4019
|
export declare class RouteCardAppSettings implements IRouteCardAppSettings {
|
|
3975
4020
|
includeDrawingInRouteCardPrint?: boolean;
|
|
3976
4021
|
routeCardPrintInLandscapeOrientation?: boolean;
|
|
@@ -17019,6 +17064,7 @@ export type AmcSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejecte
|
|
|
17019
17064
|
export declare class AmcSpecificationDto implements IAmcSpecificationDto {
|
|
17020
17065
|
specificationId: string;
|
|
17021
17066
|
version: number;
|
|
17067
|
+
allVersions: AmcSpecificationVersionDto[];
|
|
17022
17068
|
name: string;
|
|
17023
17069
|
number: string;
|
|
17024
17070
|
revision: string;
|
|
@@ -17043,6 +17089,7 @@ export declare class AmcSpecificationDto implements IAmcSpecificationDto {
|
|
|
17043
17089
|
export interface IAmcSpecificationDto {
|
|
17044
17090
|
specificationId: string;
|
|
17045
17091
|
version: number;
|
|
17092
|
+
allVersions: AmcSpecificationVersionDto[];
|
|
17046
17093
|
name: string;
|
|
17047
17094
|
number: string;
|
|
17048
17095
|
revision: string;
|
|
@@ -17060,6 +17107,18 @@ export interface IAmcSpecificationDto {
|
|
|
17060
17107
|
ferriteSpecification: AmcFerriteSpecificationDto;
|
|
17061
17108
|
heatSpecification: AmcHeatTreatmentSpecificationDto;
|
|
17062
17109
|
}
|
|
17110
|
+
export declare class AmcSpecificationVersionDto implements IAmcSpecificationVersionDto {
|
|
17111
|
+
version?: number;
|
|
17112
|
+
status?: AmcSpecificationStatus;
|
|
17113
|
+
constructor(data?: IAmcSpecificationVersionDto);
|
|
17114
|
+
init(_data?: any): void;
|
|
17115
|
+
static fromJS(data: any): AmcSpecificationVersionDto;
|
|
17116
|
+
toJSON(data?: any): any;
|
|
17117
|
+
}
|
|
17118
|
+
export interface IAmcSpecificationVersionDto {
|
|
17119
|
+
version?: number;
|
|
17120
|
+
status?: AmcSpecificationStatus;
|
|
17121
|
+
}
|
|
17063
17122
|
export declare class AmcChemistrySpecificationDto implements IAmcChemistrySpecificationDto {
|
|
17064
17123
|
carbon?: AmcSpecificationLineDto | null;
|
|
17065
17124
|
manganese?: AmcSpecificationLineDto | null;
|
|
@@ -17257,6 +17316,7 @@ export type AmcTypeStatus = "Draft" | "Released" | "Expired" | "Rejected";
|
|
|
17257
17316
|
export declare class AmcTypeDto implements IAmcTypeDto {
|
|
17258
17317
|
typeId: string;
|
|
17259
17318
|
version: number;
|
|
17319
|
+
allVersions: AmcTypeVersionDto[];
|
|
17260
17320
|
name: string;
|
|
17261
17321
|
revision: string;
|
|
17262
17322
|
status: AmcTypeStatus;
|
|
@@ -17276,6 +17336,7 @@ export declare class AmcTypeDto implements IAmcTypeDto {
|
|
|
17276
17336
|
export interface IAmcTypeDto {
|
|
17277
17337
|
typeId: string;
|
|
17278
17338
|
version: number;
|
|
17339
|
+
allVersions: AmcTypeVersionDto[];
|
|
17279
17340
|
name: string;
|
|
17280
17341
|
revision: string;
|
|
17281
17342
|
status: AmcTypeStatus;
|
|
@@ -17288,6 +17349,18 @@ export interface IAmcTypeDto {
|
|
|
17288
17349
|
updatedById?: string | null;
|
|
17289
17350
|
checks: AmcTypeChecksDto;
|
|
17290
17351
|
}
|
|
17352
|
+
export declare class AmcTypeVersionDto implements IAmcTypeVersionDto {
|
|
17353
|
+
version?: number;
|
|
17354
|
+
status?: AmcTypeStatus;
|
|
17355
|
+
constructor(data?: IAmcTypeVersionDto);
|
|
17356
|
+
init(_data?: any): void;
|
|
17357
|
+
static fromJS(data: any): AmcTypeVersionDto;
|
|
17358
|
+
toJSON(data?: any): any;
|
|
17359
|
+
}
|
|
17360
|
+
export interface IAmcTypeVersionDto {
|
|
17361
|
+
version?: number;
|
|
17362
|
+
status?: AmcTypeStatus;
|
|
17363
|
+
}
|
|
17291
17364
|
export declare class AmcTypeChecksDto implements IAmcTypeChecksDto {
|
|
17292
17365
|
manufacturer: AmcTypeManufacturerChecksDto;
|
|
17293
17366
|
signature: AmcTypeSignatureChecksDto;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1856,6 +1856,46 @@ export class UsersClient extends AuthorizedApiBase {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
return Promise.resolve(null);
|
|
1858
1858
|
}
|
|
1859
|
+
listTenantUsers(request) {
|
|
1860
|
+
let url_ = this.baseUrl + "/users/listdetails";
|
|
1861
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1862
|
+
const content_ = JSON.stringify(request);
|
|
1863
|
+
let options_ = {
|
|
1864
|
+
body: content_,
|
|
1865
|
+
method: "POST",
|
|
1866
|
+
headers: {
|
|
1867
|
+
"Content-Type": "application/json",
|
|
1868
|
+
"Accept": "application/json"
|
|
1869
|
+
}
|
|
1870
|
+
};
|
|
1871
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1872
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1873
|
+
}).then((_response) => {
|
|
1874
|
+
return this.processListTenantUsers(_response);
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
processListTenantUsers(response) {
|
|
1878
|
+
const status = response.status;
|
|
1879
|
+
let _headers = {};
|
|
1880
|
+
if (response.headers && response.headers.forEach) {
|
|
1881
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1882
|
+
}
|
|
1883
|
+
;
|
|
1884
|
+
if (status === 200) {
|
|
1885
|
+
return response.text().then((_responseText) => {
|
|
1886
|
+
let result200 = null;
|
|
1887
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1888
|
+
result200 = PagedResultOfTenantUserDto.fromJS(resultData200);
|
|
1889
|
+
return result200;
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
else if (status !== 200 && status !== 204) {
|
|
1893
|
+
return response.text().then((_responseText) => {
|
|
1894
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1897
|
+
return Promise.resolve(null);
|
|
1898
|
+
}
|
|
1859
1899
|
}
|
|
1860
1900
|
export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
1861
1901
|
constructor(configuration, baseUrl, http) {
|
|
@@ -26836,13 +26876,12 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
26836
26876
|
return Promise.resolve(null);
|
|
26837
26877
|
}
|
|
26838
26878
|
getSpecification(specificationId, version) {
|
|
26839
|
-
let url_ = this.baseUrl + "/material-certificate/specifications/{specificationId}
|
|
26879
|
+
let url_ = this.baseUrl + "/material-certificate/specifications/{specificationId}?";
|
|
26840
26880
|
if (specificationId === undefined || specificationId === null)
|
|
26841
26881
|
throw new globalThis.Error("The parameter 'specificationId' must be defined.");
|
|
26842
26882
|
url_ = url_.replace("{specificationId}", encodeURIComponent("" + specificationId));
|
|
26843
|
-
if (version
|
|
26844
|
-
|
|
26845
|
-
url_ = url_.replace("{version}", encodeURIComponent("" + version));
|
|
26883
|
+
if (version !== undefined && version !== null)
|
|
26884
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
26846
26885
|
url_ = url_.replace(/[?&]$/, "");
|
|
26847
26886
|
let options_ = {
|
|
26848
26887
|
method: "GET",
|
|
@@ -27046,13 +27085,12 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase {
|
|
|
27046
27085
|
return Promise.resolve(null);
|
|
27047
27086
|
}
|
|
27048
27087
|
getMaterialCertificateTypes(typeId, version) {
|
|
27049
|
-
let url_ = this.baseUrl + "/material-certificate/types/{typeId}
|
|
27088
|
+
let url_ = this.baseUrl + "/material-certificate/types/{typeId}?";
|
|
27050
27089
|
if (typeId === undefined || typeId === null)
|
|
27051
27090
|
throw new globalThis.Error("The parameter 'typeId' must be defined.");
|
|
27052
27091
|
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
27053
|
-
if (version
|
|
27054
|
-
|
|
27055
|
-
url_ = url_.replace("{version}", encodeURIComponent("" + version));
|
|
27092
|
+
if (version !== undefined && version !== null)
|
|
27093
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
27056
27094
|
url_ = url_.replace(/[?&]$/, "");
|
|
27057
27095
|
let options_ = {
|
|
27058
27096
|
method: "GET",
|
|
@@ -28683,6 +28721,107 @@ export class ListUsersRequest {
|
|
|
28683
28721
|
return data;
|
|
28684
28722
|
}
|
|
28685
28723
|
}
|
|
28724
|
+
export class PagedResultOfTenantUserDto {
|
|
28725
|
+
constructor(data) {
|
|
28726
|
+
if (data) {
|
|
28727
|
+
for (var property in data) {
|
|
28728
|
+
if (data.hasOwnProperty(property))
|
|
28729
|
+
this[property] = data[property];
|
|
28730
|
+
}
|
|
28731
|
+
}
|
|
28732
|
+
if (!data) {
|
|
28733
|
+
this.results = [];
|
|
28734
|
+
}
|
|
28735
|
+
}
|
|
28736
|
+
init(_data) {
|
|
28737
|
+
if (_data) {
|
|
28738
|
+
if (Array.isArray(_data["results"])) {
|
|
28739
|
+
this.results = [];
|
|
28740
|
+
for (let item of _data["results"])
|
|
28741
|
+
this.results.push(TenantUserDto.fromJS(item));
|
|
28742
|
+
}
|
|
28743
|
+
this.continuationToken = _data["continuationToken"];
|
|
28744
|
+
}
|
|
28745
|
+
}
|
|
28746
|
+
static fromJS(data) {
|
|
28747
|
+
data = typeof data === 'object' ? data : {};
|
|
28748
|
+
let result = new PagedResultOfTenantUserDto();
|
|
28749
|
+
result.init(data);
|
|
28750
|
+
return result;
|
|
28751
|
+
}
|
|
28752
|
+
toJSON(data) {
|
|
28753
|
+
data = typeof data === 'object' ? data : {};
|
|
28754
|
+
if (Array.isArray(this.results)) {
|
|
28755
|
+
data["results"] = [];
|
|
28756
|
+
for (let item of this.results)
|
|
28757
|
+
data["results"].push(item ? item.toJSON() : undefined);
|
|
28758
|
+
}
|
|
28759
|
+
data["continuationToken"] = this.continuationToken;
|
|
28760
|
+
return data;
|
|
28761
|
+
}
|
|
28762
|
+
}
|
|
28763
|
+
export class TenantUserDto {
|
|
28764
|
+
constructor(data) {
|
|
28765
|
+
if (data) {
|
|
28766
|
+
for (var property in data) {
|
|
28767
|
+
if (data.hasOwnProperty(property))
|
|
28768
|
+
this[property] = data[property];
|
|
28769
|
+
}
|
|
28770
|
+
}
|
|
28771
|
+
}
|
|
28772
|
+
init(_data) {
|
|
28773
|
+
if (_data) {
|
|
28774
|
+
this.id = _data["id"];
|
|
28775
|
+
this.fullName = _data["fullName"];
|
|
28776
|
+
this.upn = _data["upn"];
|
|
28777
|
+
this.isBetaTester = _data["isBetaTester"];
|
|
28778
|
+
this.lastSeen = _data["lastSeen"] ? new Date(_data["lastSeen"].toString()) : undefined;
|
|
28779
|
+
}
|
|
28780
|
+
}
|
|
28781
|
+
static fromJS(data) {
|
|
28782
|
+
data = typeof data === 'object' ? data : {};
|
|
28783
|
+
let result = new TenantUserDto();
|
|
28784
|
+
result.init(data);
|
|
28785
|
+
return result;
|
|
28786
|
+
}
|
|
28787
|
+
toJSON(data) {
|
|
28788
|
+
data = typeof data === 'object' ? data : {};
|
|
28789
|
+
data["id"] = this.id;
|
|
28790
|
+
data["fullName"] = this.fullName;
|
|
28791
|
+
data["upn"] = this.upn;
|
|
28792
|
+
data["isBetaTester"] = this.isBetaTester;
|
|
28793
|
+
data["lastSeen"] = this.lastSeen ? this.lastSeen.toISOString() : undefined;
|
|
28794
|
+
return data;
|
|
28795
|
+
}
|
|
28796
|
+
}
|
|
28797
|
+
export class ListTenantUsersRequest {
|
|
28798
|
+
constructor(data) {
|
|
28799
|
+
if (data) {
|
|
28800
|
+
for (var property in data) {
|
|
28801
|
+
if (data.hasOwnProperty(property))
|
|
28802
|
+
this[property] = data[property];
|
|
28803
|
+
}
|
|
28804
|
+
}
|
|
28805
|
+
}
|
|
28806
|
+
init(_data) {
|
|
28807
|
+
if (_data) {
|
|
28808
|
+
this.pageSize = _data["pageSize"];
|
|
28809
|
+
this.continuationToken = _data["continuationToken"];
|
|
28810
|
+
}
|
|
28811
|
+
}
|
|
28812
|
+
static fromJS(data) {
|
|
28813
|
+
data = typeof data === 'object' ? data : {};
|
|
28814
|
+
let result = new ListTenantUsersRequest();
|
|
28815
|
+
result.init(data);
|
|
28816
|
+
return result;
|
|
28817
|
+
}
|
|
28818
|
+
toJSON(data) {
|
|
28819
|
+
data = typeof data === 'object' ? data : {};
|
|
28820
|
+
data["pageSize"] = this.pageSize;
|
|
28821
|
+
data["continuationToken"] = this.continuationToken;
|
|
28822
|
+
return data;
|
|
28823
|
+
}
|
|
28824
|
+
}
|
|
28686
28825
|
export class RouteCardAppSettings {
|
|
28687
28826
|
constructor(data) {
|
|
28688
28827
|
if (data) {
|
|
@@ -55458,6 +55597,7 @@ export class AmcSpecificationDto {
|
|
|
55458
55597
|
}
|
|
55459
55598
|
}
|
|
55460
55599
|
if (!data) {
|
|
55600
|
+
this.allVersions = [];
|
|
55461
55601
|
this.relatedStandards = [];
|
|
55462
55602
|
this.chemistrySpecification = new AmcChemistrySpecificationDto();
|
|
55463
55603
|
this.mechanicalSpecification = new AmcMechanicalSpecificationDto();
|
|
@@ -55469,6 +55609,11 @@ export class AmcSpecificationDto {
|
|
|
55469
55609
|
if (_data) {
|
|
55470
55610
|
this.specificationId = _data["specificationId"];
|
|
55471
55611
|
this.version = _data["version"];
|
|
55612
|
+
if (Array.isArray(_data["allVersions"])) {
|
|
55613
|
+
this.allVersions = [];
|
|
55614
|
+
for (let item of _data["allVersions"])
|
|
55615
|
+
this.allVersions.push(AmcSpecificationVersionDto.fromJS(item));
|
|
55616
|
+
}
|
|
55472
55617
|
this.name = _data["name"];
|
|
55473
55618
|
this.number = _data["number"];
|
|
55474
55619
|
this.revision = _data["revision"];
|
|
@@ -55501,6 +55646,11 @@ export class AmcSpecificationDto {
|
|
|
55501
55646
|
data = typeof data === 'object' ? data : {};
|
|
55502
55647
|
data["specificationId"] = this.specificationId;
|
|
55503
55648
|
data["version"] = this.version;
|
|
55649
|
+
if (Array.isArray(this.allVersions)) {
|
|
55650
|
+
data["allVersions"] = [];
|
|
55651
|
+
for (let item of this.allVersions)
|
|
55652
|
+
data["allVersions"].push(item ? item.toJSON() : undefined);
|
|
55653
|
+
}
|
|
55504
55654
|
data["name"] = this.name;
|
|
55505
55655
|
data["number"] = this.number;
|
|
55506
55656
|
data["revision"] = this.revision;
|
|
@@ -55524,6 +55674,34 @@ export class AmcSpecificationDto {
|
|
|
55524
55674
|
return data;
|
|
55525
55675
|
}
|
|
55526
55676
|
}
|
|
55677
|
+
export class AmcSpecificationVersionDto {
|
|
55678
|
+
constructor(data) {
|
|
55679
|
+
if (data) {
|
|
55680
|
+
for (var property in data) {
|
|
55681
|
+
if (data.hasOwnProperty(property))
|
|
55682
|
+
this[property] = data[property];
|
|
55683
|
+
}
|
|
55684
|
+
}
|
|
55685
|
+
}
|
|
55686
|
+
init(_data) {
|
|
55687
|
+
if (_data) {
|
|
55688
|
+
this.version = _data["version"];
|
|
55689
|
+
this.status = _data["status"];
|
|
55690
|
+
}
|
|
55691
|
+
}
|
|
55692
|
+
static fromJS(data) {
|
|
55693
|
+
data = typeof data === 'object' ? data : {};
|
|
55694
|
+
let result = new AmcSpecificationVersionDto();
|
|
55695
|
+
result.init(data);
|
|
55696
|
+
return result;
|
|
55697
|
+
}
|
|
55698
|
+
toJSON(data) {
|
|
55699
|
+
data = typeof data === 'object' ? data : {};
|
|
55700
|
+
data["version"] = this.version;
|
|
55701
|
+
data["status"] = this.status;
|
|
55702
|
+
return data;
|
|
55703
|
+
}
|
|
55704
|
+
}
|
|
55527
55705
|
export class AmcChemistrySpecificationDto {
|
|
55528
55706
|
constructor(data) {
|
|
55529
55707
|
if (data) {
|
|
@@ -55901,6 +56079,7 @@ export class AmcTypeDto {
|
|
|
55901
56079
|
}
|
|
55902
56080
|
}
|
|
55903
56081
|
if (!data) {
|
|
56082
|
+
this.allVersions = [];
|
|
55904
56083
|
this.checks = new AmcTypeChecksDto();
|
|
55905
56084
|
}
|
|
55906
56085
|
}
|
|
@@ -55908,6 +56087,11 @@ export class AmcTypeDto {
|
|
|
55908
56087
|
if (_data) {
|
|
55909
56088
|
this.typeId = _data["typeId"];
|
|
55910
56089
|
this.version = _data["version"];
|
|
56090
|
+
if (Array.isArray(_data["allVersions"])) {
|
|
56091
|
+
this.allVersions = [];
|
|
56092
|
+
for (let item of _data["allVersions"])
|
|
56093
|
+
this.allVersions.push(AmcTypeVersionDto.fromJS(item));
|
|
56094
|
+
}
|
|
55911
56095
|
this.name = _data["name"];
|
|
55912
56096
|
this.revision = _data["revision"];
|
|
55913
56097
|
this.status = _data["status"];
|
|
@@ -55931,6 +56115,11 @@ export class AmcTypeDto {
|
|
|
55931
56115
|
data = typeof data === 'object' ? data : {};
|
|
55932
56116
|
data["typeId"] = this.typeId;
|
|
55933
56117
|
data["version"] = this.version;
|
|
56118
|
+
if (Array.isArray(this.allVersions)) {
|
|
56119
|
+
data["allVersions"] = [];
|
|
56120
|
+
for (let item of this.allVersions)
|
|
56121
|
+
data["allVersions"].push(item ? item.toJSON() : undefined);
|
|
56122
|
+
}
|
|
55934
56123
|
data["name"] = this.name;
|
|
55935
56124
|
data["revision"] = this.revision;
|
|
55936
56125
|
data["status"] = this.status;
|
|
@@ -55945,6 +56134,34 @@ export class AmcTypeDto {
|
|
|
55945
56134
|
return data;
|
|
55946
56135
|
}
|
|
55947
56136
|
}
|
|
56137
|
+
export class AmcTypeVersionDto {
|
|
56138
|
+
constructor(data) {
|
|
56139
|
+
if (data) {
|
|
56140
|
+
for (var property in data) {
|
|
56141
|
+
if (data.hasOwnProperty(property))
|
|
56142
|
+
this[property] = data[property];
|
|
56143
|
+
}
|
|
56144
|
+
}
|
|
56145
|
+
}
|
|
56146
|
+
init(_data) {
|
|
56147
|
+
if (_data) {
|
|
56148
|
+
this.version = _data["version"];
|
|
56149
|
+
this.status = _data["status"];
|
|
56150
|
+
}
|
|
56151
|
+
}
|
|
56152
|
+
static fromJS(data) {
|
|
56153
|
+
data = typeof data === 'object' ? data : {};
|
|
56154
|
+
let result = new AmcTypeVersionDto();
|
|
56155
|
+
result.init(data);
|
|
56156
|
+
return result;
|
|
56157
|
+
}
|
|
56158
|
+
toJSON(data) {
|
|
56159
|
+
data = typeof data === 'object' ? data : {};
|
|
56160
|
+
data["version"] = this.version;
|
|
56161
|
+
data["status"] = this.status;
|
|
56162
|
+
return data;
|
|
56163
|
+
}
|
|
56164
|
+
}
|
|
55948
56165
|
export class AmcTypeChecksDto {
|
|
55949
56166
|
constructor(data) {
|
|
55950
56167
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1942,6 +1942,8 @@ export interface IUsersClient {
|
|
|
1942
1942
|
listUsers(pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfUserDto>;
|
|
1943
1943
|
|
|
1944
1944
|
postListUsers(request: ListUsersRequest | undefined): Promise<PagedResultOfUserDto>;
|
|
1945
|
+
|
|
1946
|
+
listTenantUsers(request: ListTenantUsersRequest | undefined): Promise<PagedResultOfTenantUserDto>;
|
|
1945
1947
|
}
|
|
1946
1948
|
|
|
1947
1949
|
export class UsersClient extends AuthorizedApiBase implements IUsersClient {
|
|
@@ -2038,6 +2040,46 @@ export class UsersClient extends AuthorizedApiBase implements IUsersClient {
|
|
|
2038
2040
|
}
|
|
2039
2041
|
return Promise.resolve<PagedResultOfUserDto>(null as any);
|
|
2040
2042
|
}
|
|
2043
|
+
|
|
2044
|
+
listTenantUsers(request: ListTenantUsersRequest | undefined): Promise<PagedResultOfTenantUserDto> {
|
|
2045
|
+
let url_ = this.baseUrl + "/users/listdetails";
|
|
2046
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2047
|
+
|
|
2048
|
+
const content_ = JSON.stringify(request);
|
|
2049
|
+
|
|
2050
|
+
let options_: RequestInit = {
|
|
2051
|
+
body: content_,
|
|
2052
|
+
method: "POST",
|
|
2053
|
+
headers: {
|
|
2054
|
+
"Content-Type": "application/json",
|
|
2055
|
+
"Accept": "application/json"
|
|
2056
|
+
}
|
|
2057
|
+
};
|
|
2058
|
+
|
|
2059
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2060
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
2061
|
+
}).then((_response: Response) => {
|
|
2062
|
+
return this.processListTenantUsers(_response);
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
protected processListTenantUsers(response: Response): Promise<PagedResultOfTenantUserDto> {
|
|
2067
|
+
const status = response.status;
|
|
2068
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
2069
|
+
if (status === 200) {
|
|
2070
|
+
return response.text().then((_responseText) => {
|
|
2071
|
+
let result200: any = null;
|
|
2072
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2073
|
+
result200 = PagedResultOfTenantUserDto.fromJS(resultData200);
|
|
2074
|
+
return result200;
|
|
2075
|
+
});
|
|
2076
|
+
} else if (status !== 200 && status !== 204) {
|
|
2077
|
+
return response.text().then((_responseText) => {
|
|
2078
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2081
|
+
return Promise.resolve<PagedResultOfTenantUserDto>(null as any);
|
|
2082
|
+
}
|
|
2041
2083
|
}
|
|
2042
2084
|
|
|
2043
2085
|
export interface IUserAppSettingsClient {
|
|
@@ -28598,7 +28640,7 @@ export interface IMaterialCertificateSpecificationsClient {
|
|
|
28598
28640
|
|
|
28599
28641
|
listSpecifications(): Promise<AmcSpecificationLiteDto[]>;
|
|
28600
28642
|
|
|
28601
|
-
getSpecification(specificationId: string, version: number): Promise<AmcSpecificationDto>;
|
|
28643
|
+
getSpecification(specificationId: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
|
|
28602
28644
|
|
|
28603
28645
|
createSpecifications(specificationsRequest: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
28604
28646
|
|
|
@@ -28658,14 +28700,13 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase i
|
|
|
28658
28700
|
return Promise.resolve<AmcSpecificationLiteDto[]>(null as any);
|
|
28659
28701
|
}
|
|
28660
28702
|
|
|
28661
|
-
getSpecification(specificationId: string, version: number): Promise<AmcSpecificationDto> {
|
|
28662
|
-
let url_ = this.baseUrl + "/material-certificate/specifications/{specificationId}
|
|
28703
|
+
getSpecification(specificationId: string, version: number | null | undefined): Promise<AmcSpecificationDto> {
|
|
28704
|
+
let url_ = this.baseUrl + "/material-certificate/specifications/{specificationId}?";
|
|
28663
28705
|
if (specificationId === undefined || specificationId === null)
|
|
28664
28706
|
throw new globalThis.Error("The parameter 'specificationId' must be defined.");
|
|
28665
28707
|
url_ = url_.replace("{specificationId}", encodeURIComponent("" + specificationId));
|
|
28666
|
-
if (version
|
|
28667
|
-
|
|
28668
|
-
url_ = url_.replace("{version}", encodeURIComponent("" + version));
|
|
28708
|
+
if (version !== undefined && version !== null)
|
|
28709
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
28669
28710
|
url_ = url_.replace(/[?&]$/, "");
|
|
28670
28711
|
|
|
28671
28712
|
let options_: RequestInit = {
|
|
@@ -28823,7 +28864,7 @@ export interface IMaterialCertificateTypesClient {
|
|
|
28823
28864
|
|
|
28824
28865
|
listMaterialCertificateTypes(): Promise<AmcTypeLiteDto[]>;
|
|
28825
28866
|
|
|
28826
|
-
getMaterialCertificateTypes(typeId: string, version: number): Promise<AmcTypeDto>;
|
|
28867
|
+
getMaterialCertificateTypes(typeId: string, version: number | null | undefined): Promise<AmcTypeDto>;
|
|
28827
28868
|
|
|
28828
28869
|
createMaterialCertificateTypes(certificatesTypesRequest: CreateAmcTypeRequestDto): Promise<AmcTypeDto>;
|
|
28829
28870
|
|
|
@@ -28883,14 +28924,13 @@ export class MaterialCertificateTypesClient extends AuthorizedApiBase implements
|
|
|
28883
28924
|
return Promise.resolve<AmcTypeLiteDto[]>(null as any);
|
|
28884
28925
|
}
|
|
28885
28926
|
|
|
28886
|
-
getMaterialCertificateTypes(typeId: string, version: number): Promise<AmcTypeDto> {
|
|
28887
|
-
let url_ = this.baseUrl + "/material-certificate/types/{typeId}
|
|
28927
|
+
getMaterialCertificateTypes(typeId: string, version: number | null | undefined): Promise<AmcTypeDto> {
|
|
28928
|
+
let url_ = this.baseUrl + "/material-certificate/types/{typeId}?";
|
|
28888
28929
|
if (typeId === undefined || typeId === null)
|
|
28889
28930
|
throw new globalThis.Error("The parameter 'typeId' must be defined.");
|
|
28890
28931
|
url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
|
|
28891
|
-
if (version
|
|
28892
|
-
|
|
28893
|
-
url_ = url_.replace("{version}", encodeURIComponent("" + version));
|
|
28932
|
+
if (version !== undefined && version !== null)
|
|
28933
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
28894
28934
|
url_ = url_.replace(/[?&]$/, "");
|
|
28895
28935
|
|
|
28896
28936
|
let options_: RequestInit = {
|
|
@@ -31176,6 +31216,149 @@ export interface IListUsersRequest {
|
|
|
31176
31216
|
continuationToken?: string | null;
|
|
31177
31217
|
}
|
|
31178
31218
|
|
|
31219
|
+
export class PagedResultOfTenantUserDto implements IPagedResultOfTenantUserDto {
|
|
31220
|
+
results!: TenantUserDto[];
|
|
31221
|
+
continuationToken?: string | null;
|
|
31222
|
+
|
|
31223
|
+
constructor(data?: IPagedResultOfTenantUserDto) {
|
|
31224
|
+
if (data) {
|
|
31225
|
+
for (var property in data) {
|
|
31226
|
+
if (data.hasOwnProperty(property))
|
|
31227
|
+
(this as any)[property] = (data as any)[property];
|
|
31228
|
+
}
|
|
31229
|
+
}
|
|
31230
|
+
if (!data) {
|
|
31231
|
+
this.results = [];
|
|
31232
|
+
}
|
|
31233
|
+
}
|
|
31234
|
+
|
|
31235
|
+
init(_data?: any) {
|
|
31236
|
+
if (_data) {
|
|
31237
|
+
if (Array.isArray(_data["results"])) {
|
|
31238
|
+
this.results = [] as any;
|
|
31239
|
+
for (let item of _data["results"])
|
|
31240
|
+
this.results!.push(TenantUserDto.fromJS(item));
|
|
31241
|
+
}
|
|
31242
|
+
this.continuationToken = _data["continuationToken"];
|
|
31243
|
+
}
|
|
31244
|
+
}
|
|
31245
|
+
|
|
31246
|
+
static fromJS(data: any): PagedResultOfTenantUserDto {
|
|
31247
|
+
data = typeof data === 'object' ? data : {};
|
|
31248
|
+
let result = new PagedResultOfTenantUserDto();
|
|
31249
|
+
result.init(data);
|
|
31250
|
+
return result;
|
|
31251
|
+
}
|
|
31252
|
+
|
|
31253
|
+
toJSON(data?: any) {
|
|
31254
|
+
data = typeof data === 'object' ? data : {};
|
|
31255
|
+
if (Array.isArray(this.results)) {
|
|
31256
|
+
data["results"] = [];
|
|
31257
|
+
for (let item of this.results)
|
|
31258
|
+
data["results"].push(item ? item.toJSON() : undefined as any);
|
|
31259
|
+
}
|
|
31260
|
+
data["continuationToken"] = this.continuationToken;
|
|
31261
|
+
return data;
|
|
31262
|
+
}
|
|
31263
|
+
}
|
|
31264
|
+
|
|
31265
|
+
export interface IPagedResultOfTenantUserDto {
|
|
31266
|
+
results: TenantUserDto[];
|
|
31267
|
+
continuationToken?: string | null;
|
|
31268
|
+
}
|
|
31269
|
+
|
|
31270
|
+
export class TenantUserDto implements ITenantUserDto {
|
|
31271
|
+
id?: string;
|
|
31272
|
+
fullName?: string;
|
|
31273
|
+
upn?: string;
|
|
31274
|
+
isBetaTester?: boolean | null;
|
|
31275
|
+
lastSeen?: Date;
|
|
31276
|
+
|
|
31277
|
+
constructor(data?: ITenantUserDto) {
|
|
31278
|
+
if (data) {
|
|
31279
|
+
for (var property in data) {
|
|
31280
|
+
if (data.hasOwnProperty(property))
|
|
31281
|
+
(this as any)[property] = (data as any)[property];
|
|
31282
|
+
}
|
|
31283
|
+
}
|
|
31284
|
+
}
|
|
31285
|
+
|
|
31286
|
+
init(_data?: any) {
|
|
31287
|
+
if (_data) {
|
|
31288
|
+
this.id = _data["id"];
|
|
31289
|
+
this.fullName = _data["fullName"];
|
|
31290
|
+
this.upn = _data["upn"];
|
|
31291
|
+
this.isBetaTester = _data["isBetaTester"];
|
|
31292
|
+
this.lastSeen = _data["lastSeen"] ? new Date(_data["lastSeen"].toString()) : undefined as any;
|
|
31293
|
+
}
|
|
31294
|
+
}
|
|
31295
|
+
|
|
31296
|
+
static fromJS(data: any): TenantUserDto {
|
|
31297
|
+
data = typeof data === 'object' ? data : {};
|
|
31298
|
+
let result = new TenantUserDto();
|
|
31299
|
+
result.init(data);
|
|
31300
|
+
return result;
|
|
31301
|
+
}
|
|
31302
|
+
|
|
31303
|
+
toJSON(data?: any) {
|
|
31304
|
+
data = typeof data === 'object' ? data : {};
|
|
31305
|
+
data["id"] = this.id;
|
|
31306
|
+
data["fullName"] = this.fullName;
|
|
31307
|
+
data["upn"] = this.upn;
|
|
31308
|
+
data["isBetaTester"] = this.isBetaTester;
|
|
31309
|
+
data["lastSeen"] = this.lastSeen ? this.lastSeen.toISOString() : undefined as any;
|
|
31310
|
+
return data;
|
|
31311
|
+
}
|
|
31312
|
+
}
|
|
31313
|
+
|
|
31314
|
+
export interface ITenantUserDto {
|
|
31315
|
+
id?: string;
|
|
31316
|
+
fullName?: string;
|
|
31317
|
+
upn?: string;
|
|
31318
|
+
isBetaTester?: boolean | null;
|
|
31319
|
+
lastSeen?: Date;
|
|
31320
|
+
}
|
|
31321
|
+
|
|
31322
|
+
export class ListTenantUsersRequest implements IListTenantUsersRequest {
|
|
31323
|
+
pageSize?: number | null;
|
|
31324
|
+
continuationToken?: string | null;
|
|
31325
|
+
|
|
31326
|
+
constructor(data?: IListTenantUsersRequest) {
|
|
31327
|
+
if (data) {
|
|
31328
|
+
for (var property in data) {
|
|
31329
|
+
if (data.hasOwnProperty(property))
|
|
31330
|
+
(this as any)[property] = (data as any)[property];
|
|
31331
|
+
}
|
|
31332
|
+
}
|
|
31333
|
+
}
|
|
31334
|
+
|
|
31335
|
+
init(_data?: any) {
|
|
31336
|
+
if (_data) {
|
|
31337
|
+
this.pageSize = _data["pageSize"];
|
|
31338
|
+
this.continuationToken = _data["continuationToken"];
|
|
31339
|
+
}
|
|
31340
|
+
}
|
|
31341
|
+
|
|
31342
|
+
static fromJS(data: any): ListTenantUsersRequest {
|
|
31343
|
+
data = typeof data === 'object' ? data : {};
|
|
31344
|
+
let result = new ListTenantUsersRequest();
|
|
31345
|
+
result.init(data);
|
|
31346
|
+
return result;
|
|
31347
|
+
}
|
|
31348
|
+
|
|
31349
|
+
toJSON(data?: any) {
|
|
31350
|
+
data = typeof data === 'object' ? data : {};
|
|
31351
|
+
data["pageSize"] = this.pageSize;
|
|
31352
|
+
data["continuationToken"] = this.continuationToken;
|
|
31353
|
+
return data;
|
|
31354
|
+
}
|
|
31355
|
+
}
|
|
31356
|
+
|
|
31357
|
+
export interface IListTenantUsersRequest {
|
|
31358
|
+
pageSize?: number | null;
|
|
31359
|
+
continuationToken?: string | null;
|
|
31360
|
+
}
|
|
31361
|
+
|
|
31179
31362
|
export class RouteCardAppSettings implements IRouteCardAppSettings {
|
|
31180
31363
|
includeDrawingInRouteCardPrint?: boolean;
|
|
31181
31364
|
routeCardPrintInLandscapeOrientation?: boolean;
|
|
@@ -71051,6 +71234,7 @@ export type AmcSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejecte
|
|
|
71051
71234
|
export class AmcSpecificationDto implements IAmcSpecificationDto {
|
|
71052
71235
|
specificationId!: string;
|
|
71053
71236
|
version!: number;
|
|
71237
|
+
allVersions!: AmcSpecificationVersionDto[];
|
|
71054
71238
|
name!: string;
|
|
71055
71239
|
number!: string;
|
|
71056
71240
|
revision!: string;
|
|
@@ -71076,6 +71260,7 @@ export class AmcSpecificationDto implements IAmcSpecificationDto {
|
|
|
71076
71260
|
}
|
|
71077
71261
|
}
|
|
71078
71262
|
if (!data) {
|
|
71263
|
+
this.allVersions = [];
|
|
71079
71264
|
this.relatedStandards = [];
|
|
71080
71265
|
this.chemistrySpecification = new AmcChemistrySpecificationDto();
|
|
71081
71266
|
this.mechanicalSpecification = new AmcMechanicalSpecificationDto();
|
|
@@ -71088,6 +71273,11 @@ export class AmcSpecificationDto implements IAmcSpecificationDto {
|
|
|
71088
71273
|
if (_data) {
|
|
71089
71274
|
this.specificationId = _data["specificationId"];
|
|
71090
71275
|
this.version = _data["version"];
|
|
71276
|
+
if (Array.isArray(_data["allVersions"])) {
|
|
71277
|
+
this.allVersions = [] as any;
|
|
71278
|
+
for (let item of _data["allVersions"])
|
|
71279
|
+
this.allVersions!.push(AmcSpecificationVersionDto.fromJS(item));
|
|
71280
|
+
}
|
|
71091
71281
|
this.name = _data["name"];
|
|
71092
71282
|
this.number = _data["number"];
|
|
71093
71283
|
this.revision = _data["revision"];
|
|
@@ -71122,6 +71312,11 @@ export class AmcSpecificationDto implements IAmcSpecificationDto {
|
|
|
71122
71312
|
data = typeof data === 'object' ? data : {};
|
|
71123
71313
|
data["specificationId"] = this.specificationId;
|
|
71124
71314
|
data["version"] = this.version;
|
|
71315
|
+
if (Array.isArray(this.allVersions)) {
|
|
71316
|
+
data["allVersions"] = [];
|
|
71317
|
+
for (let item of this.allVersions)
|
|
71318
|
+
data["allVersions"].push(item ? item.toJSON() : undefined as any);
|
|
71319
|
+
}
|
|
71125
71320
|
data["name"] = this.name;
|
|
71126
71321
|
data["number"] = this.number;
|
|
71127
71322
|
data["revision"] = this.revision;
|
|
@@ -71149,6 +71344,7 @@ export class AmcSpecificationDto implements IAmcSpecificationDto {
|
|
|
71149
71344
|
export interface IAmcSpecificationDto {
|
|
71150
71345
|
specificationId: string;
|
|
71151
71346
|
version: number;
|
|
71347
|
+
allVersions: AmcSpecificationVersionDto[];
|
|
71152
71348
|
name: string;
|
|
71153
71349
|
number: string;
|
|
71154
71350
|
revision: string;
|
|
@@ -71167,6 +71363,46 @@ export interface IAmcSpecificationDto {
|
|
|
71167
71363
|
heatSpecification: AmcHeatTreatmentSpecificationDto;
|
|
71168
71364
|
}
|
|
71169
71365
|
|
|
71366
|
+
export class AmcSpecificationVersionDto implements IAmcSpecificationVersionDto {
|
|
71367
|
+
version?: number;
|
|
71368
|
+
status?: AmcSpecificationStatus;
|
|
71369
|
+
|
|
71370
|
+
constructor(data?: IAmcSpecificationVersionDto) {
|
|
71371
|
+
if (data) {
|
|
71372
|
+
for (var property in data) {
|
|
71373
|
+
if (data.hasOwnProperty(property))
|
|
71374
|
+
(this as any)[property] = (data as any)[property];
|
|
71375
|
+
}
|
|
71376
|
+
}
|
|
71377
|
+
}
|
|
71378
|
+
|
|
71379
|
+
init(_data?: any) {
|
|
71380
|
+
if (_data) {
|
|
71381
|
+
this.version = _data["version"];
|
|
71382
|
+
this.status = _data["status"];
|
|
71383
|
+
}
|
|
71384
|
+
}
|
|
71385
|
+
|
|
71386
|
+
static fromJS(data: any): AmcSpecificationVersionDto {
|
|
71387
|
+
data = typeof data === 'object' ? data : {};
|
|
71388
|
+
let result = new AmcSpecificationVersionDto();
|
|
71389
|
+
result.init(data);
|
|
71390
|
+
return result;
|
|
71391
|
+
}
|
|
71392
|
+
|
|
71393
|
+
toJSON(data?: any) {
|
|
71394
|
+
data = typeof data === 'object' ? data : {};
|
|
71395
|
+
data["version"] = this.version;
|
|
71396
|
+
data["status"] = this.status;
|
|
71397
|
+
return data;
|
|
71398
|
+
}
|
|
71399
|
+
}
|
|
71400
|
+
|
|
71401
|
+
export interface IAmcSpecificationVersionDto {
|
|
71402
|
+
version?: number;
|
|
71403
|
+
status?: AmcSpecificationStatus;
|
|
71404
|
+
}
|
|
71405
|
+
|
|
71170
71406
|
export class AmcChemistrySpecificationDto implements IAmcChemistrySpecificationDto {
|
|
71171
71407
|
carbon?: AmcSpecificationLineDto | null;
|
|
71172
71408
|
manganese?: AmcSpecificationLineDto | null;
|
|
@@ -71736,6 +71972,7 @@ export type AmcTypeStatus = "Draft" | "Released" | "Expired" | "Rejected";
|
|
|
71736
71972
|
export class AmcTypeDto implements IAmcTypeDto {
|
|
71737
71973
|
typeId!: string;
|
|
71738
71974
|
version!: number;
|
|
71975
|
+
allVersions!: AmcTypeVersionDto[];
|
|
71739
71976
|
name!: string;
|
|
71740
71977
|
revision!: string;
|
|
71741
71978
|
status!: AmcTypeStatus;
|
|
@@ -71756,6 +71993,7 @@ export class AmcTypeDto implements IAmcTypeDto {
|
|
|
71756
71993
|
}
|
|
71757
71994
|
}
|
|
71758
71995
|
if (!data) {
|
|
71996
|
+
this.allVersions = [];
|
|
71759
71997
|
this.checks = new AmcTypeChecksDto();
|
|
71760
71998
|
}
|
|
71761
71999
|
}
|
|
@@ -71764,6 +72002,11 @@ export class AmcTypeDto implements IAmcTypeDto {
|
|
|
71764
72002
|
if (_data) {
|
|
71765
72003
|
this.typeId = _data["typeId"];
|
|
71766
72004
|
this.version = _data["version"];
|
|
72005
|
+
if (Array.isArray(_data["allVersions"])) {
|
|
72006
|
+
this.allVersions = [] as any;
|
|
72007
|
+
for (let item of _data["allVersions"])
|
|
72008
|
+
this.allVersions!.push(AmcTypeVersionDto.fromJS(item));
|
|
72009
|
+
}
|
|
71767
72010
|
this.name = _data["name"];
|
|
71768
72011
|
this.revision = _data["revision"];
|
|
71769
72012
|
this.status = _data["status"];
|
|
@@ -71789,6 +72032,11 @@ export class AmcTypeDto implements IAmcTypeDto {
|
|
|
71789
72032
|
data = typeof data === 'object' ? data : {};
|
|
71790
72033
|
data["typeId"] = this.typeId;
|
|
71791
72034
|
data["version"] = this.version;
|
|
72035
|
+
if (Array.isArray(this.allVersions)) {
|
|
72036
|
+
data["allVersions"] = [];
|
|
72037
|
+
for (let item of this.allVersions)
|
|
72038
|
+
data["allVersions"].push(item ? item.toJSON() : undefined as any);
|
|
72039
|
+
}
|
|
71792
72040
|
data["name"] = this.name;
|
|
71793
72041
|
data["revision"] = this.revision;
|
|
71794
72042
|
data["status"] = this.status;
|
|
@@ -71807,6 +72055,7 @@ export class AmcTypeDto implements IAmcTypeDto {
|
|
|
71807
72055
|
export interface IAmcTypeDto {
|
|
71808
72056
|
typeId: string;
|
|
71809
72057
|
version: number;
|
|
72058
|
+
allVersions: AmcTypeVersionDto[];
|
|
71810
72059
|
name: string;
|
|
71811
72060
|
revision: string;
|
|
71812
72061
|
status: AmcTypeStatus;
|
|
@@ -71820,6 +72069,46 @@ export interface IAmcTypeDto {
|
|
|
71820
72069
|
checks: AmcTypeChecksDto;
|
|
71821
72070
|
}
|
|
71822
72071
|
|
|
72072
|
+
export class AmcTypeVersionDto implements IAmcTypeVersionDto {
|
|
72073
|
+
version?: number;
|
|
72074
|
+
status?: AmcTypeStatus;
|
|
72075
|
+
|
|
72076
|
+
constructor(data?: IAmcTypeVersionDto) {
|
|
72077
|
+
if (data) {
|
|
72078
|
+
for (var property in data) {
|
|
72079
|
+
if (data.hasOwnProperty(property))
|
|
72080
|
+
(this as any)[property] = (data as any)[property];
|
|
72081
|
+
}
|
|
72082
|
+
}
|
|
72083
|
+
}
|
|
72084
|
+
|
|
72085
|
+
init(_data?: any) {
|
|
72086
|
+
if (_data) {
|
|
72087
|
+
this.version = _data["version"];
|
|
72088
|
+
this.status = _data["status"];
|
|
72089
|
+
}
|
|
72090
|
+
}
|
|
72091
|
+
|
|
72092
|
+
static fromJS(data: any): AmcTypeVersionDto {
|
|
72093
|
+
data = typeof data === 'object' ? data : {};
|
|
72094
|
+
let result = new AmcTypeVersionDto();
|
|
72095
|
+
result.init(data);
|
|
72096
|
+
return result;
|
|
72097
|
+
}
|
|
72098
|
+
|
|
72099
|
+
toJSON(data?: any) {
|
|
72100
|
+
data = typeof data === 'object' ? data : {};
|
|
72101
|
+
data["version"] = this.version;
|
|
72102
|
+
data["status"] = this.status;
|
|
72103
|
+
return data;
|
|
72104
|
+
}
|
|
72105
|
+
}
|
|
72106
|
+
|
|
72107
|
+
export interface IAmcTypeVersionDto {
|
|
72108
|
+
version?: number;
|
|
72109
|
+
status?: AmcTypeStatus;
|
|
72110
|
+
}
|
|
72111
|
+
|
|
71823
72112
|
export class AmcTypeChecksDto implements IAmcTypeChecksDto {
|
|
71824
72113
|
manufacturer!: AmcTypeManufacturerChecksDto;
|
|
71825
72114
|
signature!: AmcTypeSignatureChecksDto;
|