@ignos/api-client 20261019.311.1-alpha → 20261019.312.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.
- package/lib/ignosportal-api.d.ts +25 -99
- package/lib/ignosportal-api.js +53 -357
- package/package.json +1 -1
- package/src/ignosportal-api.ts +71 -445
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -919,47 +919,12 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
|
|
|
919
919
|
getCrossCompanyResourceUtilizationDatapoints(utilizationType: ResourceUtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyResourceUtilizationDatapointListDto>;
|
|
920
920
|
protected processGetCrossCompanyResourceUtilizationDatapoints(response: Response): Promise<CrossCompanyResourceUtilizationDatapointListDto>;
|
|
921
921
|
}
|
|
922
|
-
export interface IMrbAdminClient {
|
|
923
|
-
getMrbSignatureSettings(): Promise<MrbSignatureSettingsDto>;
|
|
924
|
-
createMrbSignerTitle(request: MrbSignerTitleRequest): Promise<MrbSignerTitleDto>;
|
|
925
|
-
updateMrbSignerTitle(id: string, request: MrbSignerTitleRequest): Promise<MrbSignerTitleDto>;
|
|
926
|
-
deleteMrbSignerTitle(id: string): Promise<void>;
|
|
927
|
-
createMrbSigner(request: CreateMrbSignerRequest): Promise<MrbSignerDto>;
|
|
928
|
-
updateMrbSigner(id: string, request: UpdateMrbSignerRequest): Promise<MrbSignerDto>;
|
|
929
|
-
deleteMrbSigner(id: string): Promise<void>;
|
|
930
|
-
}
|
|
931
|
-
export declare class MrbAdminClient extends AuthorizedApiBase implements IMrbAdminClient {
|
|
932
|
-
private http;
|
|
933
|
-
private baseUrl;
|
|
934
|
-
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
935
|
-
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
936
|
-
});
|
|
937
|
-
getMrbSignatureSettings(): Promise<MrbSignatureSettingsDto>;
|
|
938
|
-
protected processGetMrbSignatureSettings(response: Response): Promise<MrbSignatureSettingsDto>;
|
|
939
|
-
createMrbSignerTitle(request: MrbSignerTitleRequest): Promise<MrbSignerTitleDto>;
|
|
940
|
-
protected processCreateMrbSignerTitle(response: Response): Promise<MrbSignerTitleDto>;
|
|
941
|
-
updateMrbSignerTitle(id: string, request: MrbSignerTitleRequest): Promise<MrbSignerTitleDto>;
|
|
942
|
-
protected processUpdateMrbSignerTitle(response: Response): Promise<MrbSignerTitleDto>;
|
|
943
|
-
deleteMrbSignerTitle(id: string): Promise<void>;
|
|
944
|
-
protected processDeleteMrbSignerTitle(response: Response): Promise<void>;
|
|
945
|
-
createMrbSigner(request: CreateMrbSignerRequest): Promise<MrbSignerDto>;
|
|
946
|
-
protected processCreateMrbSigner(response: Response): Promise<MrbSignerDto>;
|
|
947
|
-
updateMrbSigner(id: string, request: UpdateMrbSignerRequest): Promise<MrbSignerDto>;
|
|
948
|
-
protected processUpdateMrbSigner(response: Response): Promise<MrbSignerDto>;
|
|
949
|
-
deleteMrbSigner(id: string): Promise<void>;
|
|
950
|
-
protected processDeleteMrbSigner(response: Response): Promise<void>;
|
|
951
|
-
}
|
|
952
922
|
export interface IMrbClient {
|
|
953
|
-
/**
|
|
954
|
-
* All CoC signers including deleted ones, for signer dropdowns.
|
|
955
|
-
*/
|
|
956
|
-
listMrbCocSigners(): Promise<MrbCocSignerDto[]>;
|
|
957
923
|
listMrbInstances(customerOrder: string | undefined, customerOrderLine: number | null | undefined): Promise<MrbInstanceDto[]>;
|
|
958
924
|
createMrb(createMrb: CreateMrb): Promise<MrbInstanceJobDto>;
|
|
959
925
|
listRecentMrbIntances(): Promise<MrbInstanceDto[]>;
|
|
960
926
|
getMrbInstance(id: string): Promise<MrbInstanceDto>;
|
|
961
927
|
updateMrbInstanceNcInfo(id: string, request: UpdateMrbInstanceNcInfoRequest): Promise<void>;
|
|
962
|
-
updateMrbInstanceCocSigner(id: string, request: UpdateMrbInstanceCocSignerRequest): Promise<void>;
|
|
963
928
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]>;
|
|
964
929
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
965
930
|
deleteMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
@@ -1019,11 +984,6 @@ export declare class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
1019
984
|
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
1020
985
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1021
986
|
});
|
|
1022
|
-
/**
|
|
1023
|
-
* All CoC signers including deleted ones, for signer dropdowns.
|
|
1024
|
-
*/
|
|
1025
|
-
listMrbCocSigners(): Promise<MrbCocSignerDto[]>;
|
|
1026
|
-
protected processListMrbCocSigners(response: Response): Promise<MrbCocSignerDto[]>;
|
|
1027
987
|
listMrbInstances(customerOrder: string | undefined, customerOrderLine: number | null | undefined): Promise<MrbInstanceDto[]>;
|
|
1028
988
|
protected processListMrbInstances(response: Response): Promise<MrbInstanceDto[]>;
|
|
1029
989
|
createMrb(createMrb: CreateMrb): Promise<MrbInstanceJobDto>;
|
|
@@ -1034,8 +994,6 @@ export declare class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
1034
994
|
protected processGetMrbInstance(response: Response): Promise<MrbInstanceDto>;
|
|
1035
995
|
updateMrbInstanceNcInfo(id: string, request: UpdateMrbInstanceNcInfoRequest): Promise<void>;
|
|
1036
996
|
protected processUpdateMrbInstanceNcInfo(response: Response): Promise<void>;
|
|
1037
|
-
updateMrbInstanceCocSigner(id: string, request: UpdateMrbInstanceCocSignerRequest): Promise<void>;
|
|
1038
|
-
protected processUpdateMrbInstanceCocSigner(response: Response): Promise<void>;
|
|
1039
997
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]>;
|
|
1040
998
|
protected processListMrbInstanceRevisions(response: Response): Promise<MrbInstanceRevisionDto[]>;
|
|
1041
999
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
@@ -2989,6 +2947,10 @@ export interface IInspectSchemaCreatorClient {
|
|
|
2989
2947
|
*/
|
|
2990
2948
|
createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2991
2949
|
updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2950
|
+
/**
|
|
2951
|
+
* Saves only what changed; the response is the whole state with server-derived values.
|
|
2952
|
+
*/
|
|
2953
|
+
applySchemaCreatorChanges(schemaVersionId: string, changes: SchemaCreatorChangesDto): Promise<SchemaCreatorStateDto>;
|
|
2992
2954
|
/**
|
|
2993
2955
|
* Geometry only (no values), derived from the schema's retained
|
|
2994
2956
|
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
@@ -3009,10 +2971,12 @@ export interface IInspectSchemaCreatorClient {
|
|
|
3009
2971
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
3010
2972
|
/**
|
|
3011
2973
|
* Starts an async snip resolve; the result is delivered through the
|
|
3012
|
-
SchemaCreatorSnipResolved SignalR notification
|
|
2974
|
+
SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
|
|
2975
|
+
held several elements. A reparse always resolves to the one element.
|
|
3013
2976
|
* @param image (optional)
|
|
2977
|
+
* @param reparse (optional)
|
|
3014
2978
|
*/
|
|
3015
|
-
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
2979
|
+
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined, reparse: boolean | undefined): Promise<void>;
|
|
3016
2980
|
}
|
|
3017
2981
|
export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
3018
2982
|
private http;
|
|
@@ -3030,6 +2994,11 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
3030
2994
|
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
3031
2995
|
updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
3032
2996
|
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2997
|
+
/**
|
|
2998
|
+
* Saves only what changed; the response is the whole state with server-derived values.
|
|
2999
|
+
*/
|
|
3000
|
+
applySchemaCreatorChanges(schemaVersionId: string, changes: SchemaCreatorChangesDto): Promise<SchemaCreatorStateDto>;
|
|
3001
|
+
protected processApplySchemaCreatorChanges(response: Response): Promise<SchemaCreatorStateDto>;
|
|
3033
3002
|
/**
|
|
3034
3003
|
* Geometry only (no values), derived from the schema's retained
|
|
3035
3004
|
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
@@ -3053,10 +3022,12 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
3053
3022
|
protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto>;
|
|
3054
3023
|
/**
|
|
3055
3024
|
* Starts an async snip resolve; the result is delivered through the
|
|
3056
|
-
SchemaCreatorSnipResolved SignalR notification
|
|
3025
|
+
SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
|
|
3026
|
+
held several elements. A reparse always resolves to the one element.
|
|
3057
3027
|
* @param image (optional)
|
|
3028
|
+
* @param reparse (optional)
|
|
3058
3029
|
*/
|
|
3059
|
-
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
3030
|
+
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined, reparse: boolean | undefined): Promise<void>;
|
|
3060
3031
|
protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void>;
|
|
3061
3032
|
}
|
|
3062
3033
|
export interface IMeasurementFormSchemasAdminClient {
|
|
@@ -5124,39 +5095,6 @@ export interface NamedCompanyResourceUtilizationDatapointListDto extends Company
|
|
|
5124
5095
|
companyId: string;
|
|
5125
5096
|
companyName: string;
|
|
5126
5097
|
}
|
|
5127
|
-
export interface MrbSignatureSettingsDto {
|
|
5128
|
-
titles: MrbSignerTitleDto[];
|
|
5129
|
-
signers: MrbSignerDto[];
|
|
5130
|
-
}
|
|
5131
|
-
export interface MrbSignerTitleDto {
|
|
5132
|
-
id: string;
|
|
5133
|
-
name: string;
|
|
5134
|
-
}
|
|
5135
|
-
export interface MrbSignerDto {
|
|
5136
|
-
id: string;
|
|
5137
|
-
name: string;
|
|
5138
|
-
titleId: string;
|
|
5139
|
-
titleName?: string | null;
|
|
5140
|
-
titleDeleted: boolean;
|
|
5141
|
-
signatureUrl?: string | null;
|
|
5142
|
-
}
|
|
5143
|
-
export interface MrbSignerTitleRequest {
|
|
5144
|
-
name: string;
|
|
5145
|
-
}
|
|
5146
|
-
export interface CreateMrbSignerRequest {
|
|
5147
|
-
name: string;
|
|
5148
|
-
titleId: string;
|
|
5149
|
-
uploadKey: string;
|
|
5150
|
-
/** File name used when uploading to the temp upload location. */
|
|
5151
|
-
uploadFilename: string;
|
|
5152
|
-
}
|
|
5153
|
-
export interface UpdateMrbSignerRequest {
|
|
5154
|
-
name: string;
|
|
5155
|
-
titleId: string;
|
|
5156
|
-
/** Set to replace the signature image. */
|
|
5157
|
-
uploadKey?: string | null;
|
|
5158
|
-
uploadFilename?: string | null;
|
|
5159
|
-
}
|
|
5160
5098
|
export interface MrbInstanceDto {
|
|
5161
5099
|
id: string;
|
|
5162
5100
|
title?: string | null;
|
|
@@ -5177,10 +5115,6 @@ export interface MrbInstanceDto {
|
|
|
5177
5115
|
showSerialNumbersOnFrontPage?: boolean;
|
|
5178
5116
|
showSerialNumbersOnCoC?: boolean;
|
|
5179
5117
|
ncInfo?: string | null;
|
|
5180
|
-
cocSignerSelection: MrbCocSignerSelection;
|
|
5181
|
-
cocSignerId?: string | null;
|
|
5182
|
-
templateShowSignatureOnCoC?: boolean;
|
|
5183
|
-
templateDefaultCocSignerId?: string | null;
|
|
5184
5118
|
}
|
|
5185
5119
|
export interface CustomerOrderLineTraceItemDto {
|
|
5186
5120
|
workOrder: string;
|
|
@@ -5223,20 +5157,9 @@ export interface MrbPartDto {
|
|
|
5223
5157
|
partName?: string | null;
|
|
5224
5158
|
partRevision?: string | null;
|
|
5225
5159
|
}
|
|
5226
|
-
export type MrbCocSignerSelection = "TemplateDefault" | "None" | "Signer";
|
|
5227
5160
|
export interface UpdateMrbInstanceNcInfoRequest {
|
|
5228
5161
|
ncInfo?: string | null;
|
|
5229
5162
|
}
|
|
5230
|
-
export interface UpdateMrbInstanceCocSignerRequest {
|
|
5231
|
-
selection: MrbCocSignerSelection;
|
|
5232
|
-
signerId?: string | null;
|
|
5233
|
-
}
|
|
5234
|
-
export interface MrbCocSignerDto {
|
|
5235
|
-
id: string;
|
|
5236
|
-
name: string;
|
|
5237
|
-
title?: string | null;
|
|
5238
|
-
deleted: boolean;
|
|
5239
|
-
}
|
|
5240
5163
|
export interface MrbInstanceJobDto {
|
|
5241
5164
|
jobId: string;
|
|
5242
5165
|
mrbInstanceId: string;
|
|
@@ -5336,8 +5259,6 @@ export interface MrbTemplateDto {
|
|
|
5336
5259
|
noContentIndicator?: string | null;
|
|
5337
5260
|
showSerialNumbersOnFrontPage?: boolean;
|
|
5338
5261
|
showSerialNumbersOnCoC?: boolean;
|
|
5339
|
-
showSignatureOnCoC?: boolean;
|
|
5340
|
-
defaultCocSignerId?: string | null;
|
|
5341
5262
|
elements: MrbTemplateElementDto[];
|
|
5342
5263
|
tableOfContents?: MrbTemplateTableOfContentsDto | null;
|
|
5343
5264
|
}
|
|
@@ -5391,8 +5312,6 @@ export interface UpdateMrbTemplate {
|
|
|
5391
5312
|
noContentIndicator?: string | null;
|
|
5392
5313
|
showSerialNumbersOnFrontPage?: boolean;
|
|
5393
5314
|
showSerialNumbersOnCoC?: boolean;
|
|
5394
|
-
showSignatureOnCoC?: boolean;
|
|
5395
|
-
defaultCocSignerId?: string | null;
|
|
5396
5315
|
}
|
|
5397
5316
|
export interface MrbTemplateUpdateElementDto {
|
|
5398
5317
|
id?: string | null;
|
|
@@ -7894,7 +7813,7 @@ export interface SurroundingOperationDto {
|
|
|
7894
7813
|
export interface WeekCapacityDto {
|
|
7895
7814
|
weekGroup: string;
|
|
7896
7815
|
weekStart: Date;
|
|
7897
|
-
capacityHours: number
|
|
7816
|
+
capacityHours: number;
|
|
7898
7817
|
loadHours: number;
|
|
7899
7818
|
}
|
|
7900
7819
|
export interface PublishPlanRequest {
|
|
@@ -9674,6 +9593,13 @@ export interface SchemaCreatorXmlGeometryDto {
|
|
|
9674
9593
|
balloon: SchemaCreatorPointDto;
|
|
9675
9594
|
pageIndex: number;
|
|
9676
9595
|
}
|
|
9596
|
+
export interface SchemaCreatorChangesDto {
|
|
9597
|
+
upserts?: SchemaCreatorElementDto[];
|
|
9598
|
+
deletes?: string[];
|
|
9599
|
+
order?: string[] | null;
|
|
9600
|
+
settings?: SchemaCreatorSettingsDto | null;
|
|
9601
|
+
recalculateGeneralTolerances?: boolean;
|
|
9602
|
+
}
|
|
9677
9603
|
export interface MeasurementFormSchemaDto {
|
|
9678
9604
|
id: string;
|
|
9679
9605
|
versionId: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -7303,283 +7303,6 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
7303
7303
|
return Promise.resolve(null);
|
|
7304
7304
|
}
|
|
7305
7305
|
}
|
|
7306
|
-
export class MrbAdminClient extends AuthorizedApiBase {
|
|
7307
|
-
http;
|
|
7308
|
-
baseUrl;
|
|
7309
|
-
constructor(configuration, baseUrl, http) {
|
|
7310
|
-
super(configuration);
|
|
7311
|
-
this.http = http ? http : window;
|
|
7312
|
-
this.baseUrl = baseUrl ?? "";
|
|
7313
|
-
}
|
|
7314
|
-
getMrbSignatureSettings() {
|
|
7315
|
-
let url_ = this.baseUrl + "/mrb/signature-settings";
|
|
7316
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7317
|
-
let options_ = {
|
|
7318
|
-
method: "GET",
|
|
7319
|
-
headers: {
|
|
7320
|
-
"Accept": "application/json"
|
|
7321
|
-
}
|
|
7322
|
-
};
|
|
7323
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7324
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7325
|
-
}).then((_response) => {
|
|
7326
|
-
return this.processGetMrbSignatureSettings(_response);
|
|
7327
|
-
});
|
|
7328
|
-
}
|
|
7329
|
-
processGetMrbSignatureSettings(response) {
|
|
7330
|
-
const status = response.status;
|
|
7331
|
-
let _headers = {};
|
|
7332
|
-
if (response.headers && response.headers.forEach) {
|
|
7333
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7334
|
-
}
|
|
7335
|
-
;
|
|
7336
|
-
if (status === 200) {
|
|
7337
|
-
return response.text().then((_responseText) => {
|
|
7338
|
-
let result200 = null;
|
|
7339
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7340
|
-
return result200;
|
|
7341
|
-
});
|
|
7342
|
-
}
|
|
7343
|
-
else if (status !== 200 && status !== 204) {
|
|
7344
|
-
return response.text().then((_responseText) => {
|
|
7345
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7346
|
-
});
|
|
7347
|
-
}
|
|
7348
|
-
return Promise.resolve(null);
|
|
7349
|
-
}
|
|
7350
|
-
createMrbSignerTitle(request) {
|
|
7351
|
-
let url_ = this.baseUrl + "/mrb/signer-titles";
|
|
7352
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7353
|
-
const content_ = JSON.stringify(request);
|
|
7354
|
-
let options_ = {
|
|
7355
|
-
body: content_,
|
|
7356
|
-
method: "POST",
|
|
7357
|
-
headers: {
|
|
7358
|
-
"Content-Type": "application/json",
|
|
7359
|
-
"Accept": "application/json"
|
|
7360
|
-
}
|
|
7361
|
-
};
|
|
7362
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7363
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7364
|
-
}).then((_response) => {
|
|
7365
|
-
return this.processCreateMrbSignerTitle(_response);
|
|
7366
|
-
});
|
|
7367
|
-
}
|
|
7368
|
-
processCreateMrbSignerTitle(response) {
|
|
7369
|
-
const status = response.status;
|
|
7370
|
-
let _headers = {};
|
|
7371
|
-
if (response.headers && response.headers.forEach) {
|
|
7372
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7373
|
-
}
|
|
7374
|
-
;
|
|
7375
|
-
if (status === 200) {
|
|
7376
|
-
return response.text().then((_responseText) => {
|
|
7377
|
-
let result200 = null;
|
|
7378
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7379
|
-
return result200;
|
|
7380
|
-
});
|
|
7381
|
-
}
|
|
7382
|
-
else if (status !== 200 && status !== 204) {
|
|
7383
|
-
return response.text().then((_responseText) => {
|
|
7384
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7385
|
-
});
|
|
7386
|
-
}
|
|
7387
|
-
return Promise.resolve(null);
|
|
7388
|
-
}
|
|
7389
|
-
updateMrbSignerTitle(id, request) {
|
|
7390
|
-
let url_ = this.baseUrl + "/mrb/signer-titles/{id}";
|
|
7391
|
-
if (id === undefined || id === null)
|
|
7392
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7393
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7394
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7395
|
-
const content_ = JSON.stringify(request);
|
|
7396
|
-
let options_ = {
|
|
7397
|
-
body: content_,
|
|
7398
|
-
method: "PUT",
|
|
7399
|
-
headers: {
|
|
7400
|
-
"Content-Type": "application/json",
|
|
7401
|
-
"Accept": "application/json"
|
|
7402
|
-
}
|
|
7403
|
-
};
|
|
7404
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7405
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7406
|
-
}).then((_response) => {
|
|
7407
|
-
return this.processUpdateMrbSignerTitle(_response);
|
|
7408
|
-
});
|
|
7409
|
-
}
|
|
7410
|
-
processUpdateMrbSignerTitle(response) {
|
|
7411
|
-
const status = response.status;
|
|
7412
|
-
let _headers = {};
|
|
7413
|
-
if (response.headers && response.headers.forEach) {
|
|
7414
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7415
|
-
}
|
|
7416
|
-
;
|
|
7417
|
-
if (status === 200) {
|
|
7418
|
-
return response.text().then((_responseText) => {
|
|
7419
|
-
let result200 = null;
|
|
7420
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7421
|
-
return result200;
|
|
7422
|
-
});
|
|
7423
|
-
}
|
|
7424
|
-
else if (status !== 200 && status !== 204) {
|
|
7425
|
-
return response.text().then((_responseText) => {
|
|
7426
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7427
|
-
});
|
|
7428
|
-
}
|
|
7429
|
-
return Promise.resolve(null);
|
|
7430
|
-
}
|
|
7431
|
-
deleteMrbSignerTitle(id) {
|
|
7432
|
-
let url_ = this.baseUrl + "/mrb/signer-titles/{id}";
|
|
7433
|
-
if (id === undefined || id === null)
|
|
7434
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7435
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7436
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7437
|
-
let options_ = {
|
|
7438
|
-
method: "DELETE",
|
|
7439
|
-
headers: {}
|
|
7440
|
-
};
|
|
7441
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7442
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7443
|
-
}).then((_response) => {
|
|
7444
|
-
return this.processDeleteMrbSignerTitle(_response);
|
|
7445
|
-
});
|
|
7446
|
-
}
|
|
7447
|
-
processDeleteMrbSignerTitle(response) {
|
|
7448
|
-
const status = response.status;
|
|
7449
|
-
let _headers = {};
|
|
7450
|
-
if (response.headers && response.headers.forEach) {
|
|
7451
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7452
|
-
}
|
|
7453
|
-
;
|
|
7454
|
-
if (status === 204) {
|
|
7455
|
-
return response.text().then((_responseText) => {
|
|
7456
|
-
return;
|
|
7457
|
-
});
|
|
7458
|
-
}
|
|
7459
|
-
else if (status !== 200 && status !== 204) {
|
|
7460
|
-
return response.text().then((_responseText) => {
|
|
7461
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7462
|
-
});
|
|
7463
|
-
}
|
|
7464
|
-
return Promise.resolve(null);
|
|
7465
|
-
}
|
|
7466
|
-
createMrbSigner(request) {
|
|
7467
|
-
let url_ = this.baseUrl + "/mrb/signers";
|
|
7468
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7469
|
-
const content_ = JSON.stringify(request);
|
|
7470
|
-
let options_ = {
|
|
7471
|
-
body: content_,
|
|
7472
|
-
method: "POST",
|
|
7473
|
-
headers: {
|
|
7474
|
-
"Content-Type": "application/json",
|
|
7475
|
-
"Accept": "application/json"
|
|
7476
|
-
}
|
|
7477
|
-
};
|
|
7478
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7479
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7480
|
-
}).then((_response) => {
|
|
7481
|
-
return this.processCreateMrbSigner(_response);
|
|
7482
|
-
});
|
|
7483
|
-
}
|
|
7484
|
-
processCreateMrbSigner(response) {
|
|
7485
|
-
const status = response.status;
|
|
7486
|
-
let _headers = {};
|
|
7487
|
-
if (response.headers && response.headers.forEach) {
|
|
7488
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7489
|
-
}
|
|
7490
|
-
;
|
|
7491
|
-
if (status === 200) {
|
|
7492
|
-
return response.text().then((_responseText) => {
|
|
7493
|
-
let result200 = null;
|
|
7494
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7495
|
-
return result200;
|
|
7496
|
-
});
|
|
7497
|
-
}
|
|
7498
|
-
else if (status !== 200 && status !== 204) {
|
|
7499
|
-
return response.text().then((_responseText) => {
|
|
7500
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7501
|
-
});
|
|
7502
|
-
}
|
|
7503
|
-
return Promise.resolve(null);
|
|
7504
|
-
}
|
|
7505
|
-
updateMrbSigner(id, request) {
|
|
7506
|
-
let url_ = this.baseUrl + "/mrb/signers/{id}";
|
|
7507
|
-
if (id === undefined || id === null)
|
|
7508
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7509
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7510
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7511
|
-
const content_ = JSON.stringify(request);
|
|
7512
|
-
let options_ = {
|
|
7513
|
-
body: content_,
|
|
7514
|
-
method: "PUT",
|
|
7515
|
-
headers: {
|
|
7516
|
-
"Content-Type": "application/json",
|
|
7517
|
-
"Accept": "application/json"
|
|
7518
|
-
}
|
|
7519
|
-
};
|
|
7520
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7521
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7522
|
-
}).then((_response) => {
|
|
7523
|
-
return this.processUpdateMrbSigner(_response);
|
|
7524
|
-
});
|
|
7525
|
-
}
|
|
7526
|
-
processUpdateMrbSigner(response) {
|
|
7527
|
-
const status = response.status;
|
|
7528
|
-
let _headers = {};
|
|
7529
|
-
if (response.headers && response.headers.forEach) {
|
|
7530
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7531
|
-
}
|
|
7532
|
-
;
|
|
7533
|
-
if (status === 200) {
|
|
7534
|
-
return response.text().then((_responseText) => {
|
|
7535
|
-
let result200 = null;
|
|
7536
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7537
|
-
return result200;
|
|
7538
|
-
});
|
|
7539
|
-
}
|
|
7540
|
-
else if (status !== 200 && status !== 204) {
|
|
7541
|
-
return response.text().then((_responseText) => {
|
|
7542
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7543
|
-
});
|
|
7544
|
-
}
|
|
7545
|
-
return Promise.resolve(null);
|
|
7546
|
-
}
|
|
7547
|
-
deleteMrbSigner(id) {
|
|
7548
|
-
let url_ = this.baseUrl + "/mrb/signers/{id}";
|
|
7549
|
-
if (id === undefined || id === null)
|
|
7550
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7551
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7552
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7553
|
-
let options_ = {
|
|
7554
|
-
method: "DELETE",
|
|
7555
|
-
headers: {}
|
|
7556
|
-
};
|
|
7557
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7558
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7559
|
-
}).then((_response) => {
|
|
7560
|
-
return this.processDeleteMrbSigner(_response);
|
|
7561
|
-
});
|
|
7562
|
-
}
|
|
7563
|
-
processDeleteMrbSigner(response) {
|
|
7564
|
-
const status = response.status;
|
|
7565
|
-
let _headers = {};
|
|
7566
|
-
if (response.headers && response.headers.forEach) {
|
|
7567
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7568
|
-
}
|
|
7569
|
-
;
|
|
7570
|
-
if (status === 204) {
|
|
7571
|
-
return response.text().then((_responseText) => {
|
|
7572
|
-
return;
|
|
7573
|
-
});
|
|
7574
|
-
}
|
|
7575
|
-
else if (status !== 200 && status !== 204) {
|
|
7576
|
-
return response.text().then((_responseText) => {
|
|
7577
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7578
|
-
});
|
|
7579
|
-
}
|
|
7580
|
-
return Promise.resolve(null);
|
|
7581
|
-
}
|
|
7582
|
-
}
|
|
7583
7306
|
export class MrbClient extends AuthorizedApiBase {
|
|
7584
7307
|
http;
|
|
7585
7308
|
baseUrl;
|
|
@@ -7588,45 +7311,6 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
7588
7311
|
this.http = http ? http : window;
|
|
7589
7312
|
this.baseUrl = baseUrl ?? "";
|
|
7590
7313
|
}
|
|
7591
|
-
/**
|
|
7592
|
-
* All CoC signers including deleted ones, for signer dropdowns.
|
|
7593
|
-
*/
|
|
7594
|
-
listMrbCocSigners() {
|
|
7595
|
-
let url_ = this.baseUrl + "/mrb/signers";
|
|
7596
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7597
|
-
let options_ = {
|
|
7598
|
-
method: "GET",
|
|
7599
|
-
headers: {
|
|
7600
|
-
"Accept": "application/json"
|
|
7601
|
-
}
|
|
7602
|
-
};
|
|
7603
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7604
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7605
|
-
}).then((_response) => {
|
|
7606
|
-
return this.processListMrbCocSigners(_response);
|
|
7607
|
-
});
|
|
7608
|
-
}
|
|
7609
|
-
processListMrbCocSigners(response) {
|
|
7610
|
-
const status = response.status;
|
|
7611
|
-
let _headers = {};
|
|
7612
|
-
if (response.headers && response.headers.forEach) {
|
|
7613
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7614
|
-
}
|
|
7615
|
-
;
|
|
7616
|
-
if (status === 200) {
|
|
7617
|
-
return response.text().then((_responseText) => {
|
|
7618
|
-
let result200 = null;
|
|
7619
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
7620
|
-
return result200;
|
|
7621
|
-
});
|
|
7622
|
-
}
|
|
7623
|
-
else if (status !== 200 && status !== 204) {
|
|
7624
|
-
return response.text().then((_responseText) => {
|
|
7625
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7626
|
-
});
|
|
7627
|
-
}
|
|
7628
|
-
return Promise.resolve(null);
|
|
7629
|
-
}
|
|
7630
7314
|
listMrbInstances(customerOrder, customerOrderLine) {
|
|
7631
7315
|
let url_ = this.baseUrl + "/mrb?";
|
|
7632
7316
|
if (customerOrder === null)
|
|
@@ -7822,45 +7506,6 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
7822
7506
|
}
|
|
7823
7507
|
return Promise.resolve(null);
|
|
7824
7508
|
}
|
|
7825
|
-
updateMrbInstanceCocSigner(id, request) {
|
|
7826
|
-
let url_ = this.baseUrl + "/mrb/{id}/coc-signer";
|
|
7827
|
-
if (id === undefined || id === null)
|
|
7828
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7829
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7830
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7831
|
-
const content_ = JSON.stringify(request);
|
|
7832
|
-
let options_ = {
|
|
7833
|
-
body: content_,
|
|
7834
|
-
method: "PUT",
|
|
7835
|
-
headers: {
|
|
7836
|
-
"Content-Type": "application/json",
|
|
7837
|
-
}
|
|
7838
|
-
};
|
|
7839
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7840
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7841
|
-
}).then((_response) => {
|
|
7842
|
-
return this.processUpdateMrbInstanceCocSigner(_response);
|
|
7843
|
-
});
|
|
7844
|
-
}
|
|
7845
|
-
processUpdateMrbInstanceCocSigner(response) {
|
|
7846
|
-
const status = response.status;
|
|
7847
|
-
let _headers = {};
|
|
7848
|
-
if (response.headers && response.headers.forEach) {
|
|
7849
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7850
|
-
}
|
|
7851
|
-
;
|
|
7852
|
-
if (status === 204) {
|
|
7853
|
-
return response.text().then((_responseText) => {
|
|
7854
|
-
return;
|
|
7855
|
-
});
|
|
7856
|
-
}
|
|
7857
|
-
else if (status !== 200 && status !== 204) {
|
|
7858
|
-
return response.text().then((_responseText) => {
|
|
7859
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7860
|
-
});
|
|
7861
|
-
}
|
|
7862
|
-
return Promise.resolve(null);
|
|
7863
|
-
}
|
|
7864
7509
|
listMrbInstanceRevisions(id) {
|
|
7865
7510
|
let url_ = this.baseUrl + "/mrb/{id}/revisions";
|
|
7866
7511
|
if (id === undefined || id === null)
|
|
@@ -25248,6 +24893,51 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
25248
24893
|
}
|
|
25249
24894
|
return Promise.resolve(null);
|
|
25250
24895
|
}
|
|
24896
|
+
/**
|
|
24897
|
+
* Saves only what changed; the response is the whole state with server-derived values.
|
|
24898
|
+
*/
|
|
24899
|
+
applySchemaCreatorChanges(schemaVersionId, changes) {
|
|
24900
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24901
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24902
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24903
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24904
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24905
|
+
const content_ = JSON.stringify(changes);
|
|
24906
|
+
let options_ = {
|
|
24907
|
+
body: content_,
|
|
24908
|
+
method: "PATCH",
|
|
24909
|
+
headers: {
|
|
24910
|
+
"Content-Type": "application/json",
|
|
24911
|
+
"Accept": "application/json"
|
|
24912
|
+
}
|
|
24913
|
+
};
|
|
24914
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24915
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24916
|
+
}).then((_response) => {
|
|
24917
|
+
return this.processApplySchemaCreatorChanges(_response);
|
|
24918
|
+
});
|
|
24919
|
+
}
|
|
24920
|
+
processApplySchemaCreatorChanges(response) {
|
|
24921
|
+
const status = response.status;
|
|
24922
|
+
let _headers = {};
|
|
24923
|
+
if (response.headers && response.headers.forEach) {
|
|
24924
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24925
|
+
}
|
|
24926
|
+
;
|
|
24927
|
+
if (status === 200) {
|
|
24928
|
+
return response.text().then((_responseText) => {
|
|
24929
|
+
let result200 = null;
|
|
24930
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24931
|
+
return result200;
|
|
24932
|
+
});
|
|
24933
|
+
}
|
|
24934
|
+
else if (status !== 200 && status !== 204) {
|
|
24935
|
+
return response.text().then((_responseText) => {
|
|
24936
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24937
|
+
});
|
|
24938
|
+
}
|
|
24939
|
+
return Promise.resolve(null);
|
|
24940
|
+
}
|
|
25251
24941
|
/**
|
|
25252
24942
|
* Geometry only (no values), derived from the schema's retained
|
|
25253
24943
|
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
@@ -25382,10 +25072,12 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
25382
25072
|
}
|
|
25383
25073
|
/**
|
|
25384
25074
|
* Starts an async snip resolve; the result is delivered through the
|
|
25385
|
-
SchemaCreatorSnipResolved SignalR notification
|
|
25075
|
+
SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
|
|
25076
|
+
held several elements. A reparse always resolves to the one element.
|
|
25386
25077
|
* @param image (optional)
|
|
25078
|
+
* @param reparse (optional)
|
|
25387
25079
|
*/
|
|
25388
|
-
requestSchemaCreatorSnipParse(schemaVersionId, elementId, image) {
|
|
25080
|
+
requestSchemaCreatorSnipParse(schemaVersionId, elementId, image, reparse) {
|
|
25389
25081
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
|
|
25390
25082
|
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
25391
25083
|
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
@@ -25397,6 +25089,10 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
25397
25089
|
const content_ = new FormData();
|
|
25398
25090
|
if (image !== null && image !== undefined)
|
|
25399
25091
|
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
25092
|
+
if (reparse === null || reparse === undefined)
|
|
25093
|
+
throw new globalThis.Error("The parameter 'reparse' cannot be null.");
|
|
25094
|
+
else
|
|
25095
|
+
content_.append("reparse", reparse.toString());
|
|
25400
25096
|
let options_ = {
|
|
25401
25097
|
body: content_,
|
|
25402
25098
|
method: "POST",
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -7773,308 +7773,8 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
7773
7773
|
}
|
|
7774
7774
|
}
|
|
7775
7775
|
|
|
7776
|
-
export interface IMrbAdminClient {
|
|
7777
|
-
|
|
7778
|
-
getMrbSignatureSettings(): Promise<MrbSignatureSettingsDto>;
|
|
7779
|
-
|
|
7780
|
-
createMrbSignerTitle(request: MrbSignerTitleRequest): Promise<MrbSignerTitleDto>;
|
|
7781
|
-
|
|
7782
|
-
updateMrbSignerTitle(id: string, request: MrbSignerTitleRequest): Promise<MrbSignerTitleDto>;
|
|
7783
|
-
|
|
7784
|
-
deleteMrbSignerTitle(id: string): Promise<void>;
|
|
7785
|
-
|
|
7786
|
-
createMrbSigner(request: CreateMrbSignerRequest): Promise<MrbSignerDto>;
|
|
7787
|
-
|
|
7788
|
-
updateMrbSigner(id: string, request: UpdateMrbSignerRequest): Promise<MrbSignerDto>;
|
|
7789
|
-
|
|
7790
|
-
deleteMrbSigner(id: string): Promise<void>;
|
|
7791
|
-
}
|
|
7792
|
-
|
|
7793
|
-
export class MrbAdminClient extends AuthorizedApiBase implements IMrbAdminClient {
|
|
7794
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
7795
|
-
private baseUrl: string;
|
|
7796
|
-
|
|
7797
|
-
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
7798
|
-
super(configuration);
|
|
7799
|
-
this.http = http ? http : window as any;
|
|
7800
|
-
this.baseUrl = baseUrl ?? "";
|
|
7801
|
-
}
|
|
7802
|
-
|
|
7803
|
-
getMrbSignatureSettings(): Promise<MrbSignatureSettingsDto> {
|
|
7804
|
-
let url_ = this.baseUrl + "/mrb/signature-settings";
|
|
7805
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7806
|
-
|
|
7807
|
-
let options_: RequestInit = {
|
|
7808
|
-
method: "GET",
|
|
7809
|
-
headers: {
|
|
7810
|
-
"Accept": "application/json"
|
|
7811
|
-
}
|
|
7812
|
-
};
|
|
7813
|
-
|
|
7814
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7815
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7816
|
-
}).then((_response: Response) => {
|
|
7817
|
-
return this.processGetMrbSignatureSettings(_response);
|
|
7818
|
-
});
|
|
7819
|
-
}
|
|
7820
|
-
|
|
7821
|
-
protected processGetMrbSignatureSettings(response: Response): Promise<MrbSignatureSettingsDto> {
|
|
7822
|
-
const status = response.status;
|
|
7823
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7824
|
-
if (status === 200) {
|
|
7825
|
-
return response.text().then((_responseText) => {
|
|
7826
|
-
let result200: any = null;
|
|
7827
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MrbSignatureSettingsDto;
|
|
7828
|
-
return result200;
|
|
7829
|
-
});
|
|
7830
|
-
} else if (status !== 200 && status !== 204) {
|
|
7831
|
-
return response.text().then((_responseText) => {
|
|
7832
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7833
|
-
});
|
|
7834
|
-
}
|
|
7835
|
-
return Promise.resolve<MrbSignatureSettingsDto>(null as any);
|
|
7836
|
-
}
|
|
7837
|
-
|
|
7838
|
-
createMrbSignerTitle(request: MrbSignerTitleRequest): Promise<MrbSignerTitleDto> {
|
|
7839
|
-
let url_ = this.baseUrl + "/mrb/signer-titles";
|
|
7840
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7841
|
-
|
|
7842
|
-
const content_ = JSON.stringify(request);
|
|
7843
|
-
|
|
7844
|
-
let options_: RequestInit = {
|
|
7845
|
-
body: content_,
|
|
7846
|
-
method: "POST",
|
|
7847
|
-
headers: {
|
|
7848
|
-
"Content-Type": "application/json",
|
|
7849
|
-
"Accept": "application/json"
|
|
7850
|
-
}
|
|
7851
|
-
};
|
|
7852
|
-
|
|
7853
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7854
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7855
|
-
}).then((_response: Response) => {
|
|
7856
|
-
return this.processCreateMrbSignerTitle(_response);
|
|
7857
|
-
});
|
|
7858
|
-
}
|
|
7859
|
-
|
|
7860
|
-
protected processCreateMrbSignerTitle(response: Response): Promise<MrbSignerTitleDto> {
|
|
7861
|
-
const status = response.status;
|
|
7862
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7863
|
-
if (status === 200) {
|
|
7864
|
-
return response.text().then((_responseText) => {
|
|
7865
|
-
let result200: any = null;
|
|
7866
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MrbSignerTitleDto;
|
|
7867
|
-
return result200;
|
|
7868
|
-
});
|
|
7869
|
-
} else if (status !== 200 && status !== 204) {
|
|
7870
|
-
return response.text().then((_responseText) => {
|
|
7871
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7872
|
-
});
|
|
7873
|
-
}
|
|
7874
|
-
return Promise.resolve<MrbSignerTitleDto>(null as any);
|
|
7875
|
-
}
|
|
7876
|
-
|
|
7877
|
-
updateMrbSignerTitle(id: string, request: MrbSignerTitleRequest): Promise<MrbSignerTitleDto> {
|
|
7878
|
-
let url_ = this.baseUrl + "/mrb/signer-titles/{id}";
|
|
7879
|
-
if (id === undefined || id === null)
|
|
7880
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7881
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7882
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7883
|
-
|
|
7884
|
-
const content_ = JSON.stringify(request);
|
|
7885
|
-
|
|
7886
|
-
let options_: RequestInit = {
|
|
7887
|
-
body: content_,
|
|
7888
|
-
method: "PUT",
|
|
7889
|
-
headers: {
|
|
7890
|
-
"Content-Type": "application/json",
|
|
7891
|
-
"Accept": "application/json"
|
|
7892
|
-
}
|
|
7893
|
-
};
|
|
7894
|
-
|
|
7895
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7896
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7897
|
-
}).then((_response: Response) => {
|
|
7898
|
-
return this.processUpdateMrbSignerTitle(_response);
|
|
7899
|
-
});
|
|
7900
|
-
}
|
|
7901
|
-
|
|
7902
|
-
protected processUpdateMrbSignerTitle(response: Response): Promise<MrbSignerTitleDto> {
|
|
7903
|
-
const status = response.status;
|
|
7904
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7905
|
-
if (status === 200) {
|
|
7906
|
-
return response.text().then((_responseText) => {
|
|
7907
|
-
let result200: any = null;
|
|
7908
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MrbSignerTitleDto;
|
|
7909
|
-
return result200;
|
|
7910
|
-
});
|
|
7911
|
-
} else if (status !== 200 && status !== 204) {
|
|
7912
|
-
return response.text().then((_responseText) => {
|
|
7913
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7914
|
-
});
|
|
7915
|
-
}
|
|
7916
|
-
return Promise.resolve<MrbSignerTitleDto>(null as any);
|
|
7917
|
-
}
|
|
7918
|
-
|
|
7919
|
-
deleteMrbSignerTitle(id: string): Promise<void> {
|
|
7920
|
-
let url_ = this.baseUrl + "/mrb/signer-titles/{id}";
|
|
7921
|
-
if (id === undefined || id === null)
|
|
7922
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7923
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7924
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7925
|
-
|
|
7926
|
-
let options_: RequestInit = {
|
|
7927
|
-
method: "DELETE",
|
|
7928
|
-
headers: {
|
|
7929
|
-
}
|
|
7930
|
-
};
|
|
7931
|
-
|
|
7932
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7933
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7934
|
-
}).then((_response: Response) => {
|
|
7935
|
-
return this.processDeleteMrbSignerTitle(_response);
|
|
7936
|
-
});
|
|
7937
|
-
}
|
|
7938
|
-
|
|
7939
|
-
protected processDeleteMrbSignerTitle(response: Response): Promise<void> {
|
|
7940
|
-
const status = response.status;
|
|
7941
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7942
|
-
if (status === 204) {
|
|
7943
|
-
return response.text().then((_responseText) => {
|
|
7944
|
-
return;
|
|
7945
|
-
});
|
|
7946
|
-
} else if (status !== 200 && status !== 204) {
|
|
7947
|
-
return response.text().then((_responseText) => {
|
|
7948
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7949
|
-
});
|
|
7950
|
-
}
|
|
7951
|
-
return Promise.resolve<void>(null as any);
|
|
7952
|
-
}
|
|
7953
|
-
|
|
7954
|
-
createMrbSigner(request: CreateMrbSignerRequest): Promise<MrbSignerDto> {
|
|
7955
|
-
let url_ = this.baseUrl + "/mrb/signers";
|
|
7956
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7957
|
-
|
|
7958
|
-
const content_ = JSON.stringify(request);
|
|
7959
|
-
|
|
7960
|
-
let options_: RequestInit = {
|
|
7961
|
-
body: content_,
|
|
7962
|
-
method: "POST",
|
|
7963
|
-
headers: {
|
|
7964
|
-
"Content-Type": "application/json",
|
|
7965
|
-
"Accept": "application/json"
|
|
7966
|
-
}
|
|
7967
|
-
};
|
|
7968
|
-
|
|
7969
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7970
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
7971
|
-
}).then((_response: Response) => {
|
|
7972
|
-
return this.processCreateMrbSigner(_response);
|
|
7973
|
-
});
|
|
7974
|
-
}
|
|
7975
|
-
|
|
7976
|
-
protected processCreateMrbSigner(response: Response): Promise<MrbSignerDto> {
|
|
7977
|
-
const status = response.status;
|
|
7978
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
7979
|
-
if (status === 200) {
|
|
7980
|
-
return response.text().then((_responseText) => {
|
|
7981
|
-
let result200: any = null;
|
|
7982
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MrbSignerDto;
|
|
7983
|
-
return result200;
|
|
7984
|
-
});
|
|
7985
|
-
} else if (status !== 200 && status !== 204) {
|
|
7986
|
-
return response.text().then((_responseText) => {
|
|
7987
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7988
|
-
});
|
|
7989
|
-
}
|
|
7990
|
-
return Promise.resolve<MrbSignerDto>(null as any);
|
|
7991
|
-
}
|
|
7992
|
-
|
|
7993
|
-
updateMrbSigner(id: string, request: UpdateMrbSignerRequest): Promise<MrbSignerDto> {
|
|
7994
|
-
let url_ = this.baseUrl + "/mrb/signers/{id}";
|
|
7995
|
-
if (id === undefined || id === null)
|
|
7996
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7997
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7998
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
7999
|
-
|
|
8000
|
-
const content_ = JSON.stringify(request);
|
|
8001
|
-
|
|
8002
|
-
let options_: RequestInit = {
|
|
8003
|
-
body: content_,
|
|
8004
|
-
method: "PUT",
|
|
8005
|
-
headers: {
|
|
8006
|
-
"Content-Type": "application/json",
|
|
8007
|
-
"Accept": "application/json"
|
|
8008
|
-
}
|
|
8009
|
-
};
|
|
8010
|
-
|
|
8011
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8012
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
8013
|
-
}).then((_response: Response) => {
|
|
8014
|
-
return this.processUpdateMrbSigner(_response);
|
|
8015
|
-
});
|
|
8016
|
-
}
|
|
8017
|
-
|
|
8018
|
-
protected processUpdateMrbSigner(response: Response): Promise<MrbSignerDto> {
|
|
8019
|
-
const status = response.status;
|
|
8020
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
8021
|
-
if (status === 200) {
|
|
8022
|
-
return response.text().then((_responseText) => {
|
|
8023
|
-
let result200: any = null;
|
|
8024
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MrbSignerDto;
|
|
8025
|
-
return result200;
|
|
8026
|
-
});
|
|
8027
|
-
} else if (status !== 200 && status !== 204) {
|
|
8028
|
-
return response.text().then((_responseText) => {
|
|
8029
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8030
|
-
});
|
|
8031
|
-
}
|
|
8032
|
-
return Promise.resolve<MrbSignerDto>(null as any);
|
|
8033
|
-
}
|
|
8034
|
-
|
|
8035
|
-
deleteMrbSigner(id: string): Promise<void> {
|
|
8036
|
-
let url_ = this.baseUrl + "/mrb/signers/{id}";
|
|
8037
|
-
if (id === undefined || id === null)
|
|
8038
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8039
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8040
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
8041
|
-
|
|
8042
|
-
let options_: RequestInit = {
|
|
8043
|
-
method: "DELETE",
|
|
8044
|
-
headers: {
|
|
8045
|
-
}
|
|
8046
|
-
};
|
|
8047
|
-
|
|
8048
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8049
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
8050
|
-
}).then((_response: Response) => {
|
|
8051
|
-
return this.processDeleteMrbSigner(_response);
|
|
8052
|
-
});
|
|
8053
|
-
}
|
|
8054
|
-
|
|
8055
|
-
protected processDeleteMrbSigner(response: Response): Promise<void> {
|
|
8056
|
-
const status = response.status;
|
|
8057
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
8058
|
-
if (status === 204) {
|
|
8059
|
-
return response.text().then((_responseText) => {
|
|
8060
|
-
return;
|
|
8061
|
-
});
|
|
8062
|
-
} else if (status !== 200 && status !== 204) {
|
|
8063
|
-
return response.text().then((_responseText) => {
|
|
8064
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8065
|
-
});
|
|
8066
|
-
}
|
|
8067
|
-
return Promise.resolve<void>(null as any);
|
|
8068
|
-
}
|
|
8069
|
-
}
|
|
8070
|
-
|
|
8071
7776
|
export interface IMrbClient {
|
|
8072
7777
|
|
|
8073
|
-
/**
|
|
8074
|
-
* All CoC signers including deleted ones, for signer dropdowns.
|
|
8075
|
-
*/
|
|
8076
|
-
listMrbCocSigners(): Promise<MrbCocSignerDto[]>;
|
|
8077
|
-
|
|
8078
7778
|
listMrbInstances(customerOrder: string | undefined, customerOrderLine: number | null | undefined): Promise<MrbInstanceDto[]>;
|
|
8079
7779
|
|
|
8080
7780
|
createMrb(createMrb: CreateMrb): Promise<MrbInstanceJobDto>;
|
|
@@ -8085,8 +7785,6 @@ export interface IMrbClient {
|
|
|
8085
7785
|
|
|
8086
7786
|
updateMrbInstanceNcInfo(id: string, request: UpdateMrbInstanceNcInfoRequest): Promise<void>;
|
|
8087
7787
|
|
|
8088
|
-
updateMrbInstanceCocSigner(id: string, request: UpdateMrbInstanceCocSignerRequest): Promise<void>;
|
|
8089
|
-
|
|
8090
7788
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]>;
|
|
8091
7789
|
|
|
8092
7790
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
@@ -8176,44 +7874,6 @@ export class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
8176
7874
|
this.baseUrl = baseUrl ?? "";
|
|
8177
7875
|
}
|
|
8178
7876
|
|
|
8179
|
-
/**
|
|
8180
|
-
* All CoC signers including deleted ones, for signer dropdowns.
|
|
8181
|
-
*/
|
|
8182
|
-
listMrbCocSigners(): Promise<MrbCocSignerDto[]> {
|
|
8183
|
-
let url_ = this.baseUrl + "/mrb/signers";
|
|
8184
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
8185
|
-
|
|
8186
|
-
let options_: RequestInit = {
|
|
8187
|
-
method: "GET",
|
|
8188
|
-
headers: {
|
|
8189
|
-
"Accept": "application/json"
|
|
8190
|
-
}
|
|
8191
|
-
};
|
|
8192
|
-
|
|
8193
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8194
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
8195
|
-
}).then((_response: Response) => {
|
|
8196
|
-
return this.processListMrbCocSigners(_response);
|
|
8197
|
-
});
|
|
8198
|
-
}
|
|
8199
|
-
|
|
8200
|
-
protected processListMrbCocSigners(response: Response): Promise<MrbCocSignerDto[]> {
|
|
8201
|
-
const status = response.status;
|
|
8202
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
8203
|
-
if (status === 200) {
|
|
8204
|
-
return response.text().then((_responseText) => {
|
|
8205
|
-
let result200: any = null;
|
|
8206
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MrbCocSignerDto[];
|
|
8207
|
-
return result200;
|
|
8208
|
-
});
|
|
8209
|
-
} else if (status !== 200 && status !== 204) {
|
|
8210
|
-
return response.text().then((_responseText) => {
|
|
8211
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8212
|
-
});
|
|
8213
|
-
}
|
|
8214
|
-
return Promise.resolve<MrbCocSignerDto[]>(null as any);
|
|
8215
|
-
}
|
|
8216
|
-
|
|
8217
7877
|
listMrbInstances(customerOrder: string | undefined, customerOrderLine: number | null | undefined): Promise<MrbInstanceDto[]> {
|
|
8218
7878
|
let url_ = this.baseUrl + "/mrb?";
|
|
8219
7879
|
if (customerOrder === null)
|
|
@@ -8406,45 +8066,6 @@ export class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
8406
8066
|
return Promise.resolve<void>(null as any);
|
|
8407
8067
|
}
|
|
8408
8068
|
|
|
8409
|
-
updateMrbInstanceCocSigner(id: string, request: UpdateMrbInstanceCocSignerRequest): Promise<void> {
|
|
8410
|
-
let url_ = this.baseUrl + "/mrb/{id}/coc-signer";
|
|
8411
|
-
if (id === undefined || id === null)
|
|
8412
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8413
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8414
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
8415
|
-
|
|
8416
|
-
const content_ = JSON.stringify(request);
|
|
8417
|
-
|
|
8418
|
-
let options_: RequestInit = {
|
|
8419
|
-
body: content_,
|
|
8420
|
-
method: "PUT",
|
|
8421
|
-
headers: {
|
|
8422
|
-
"Content-Type": "application/json",
|
|
8423
|
-
}
|
|
8424
|
-
};
|
|
8425
|
-
|
|
8426
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8427
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
8428
|
-
}).then((_response: Response) => {
|
|
8429
|
-
return this.processUpdateMrbInstanceCocSigner(_response);
|
|
8430
|
-
});
|
|
8431
|
-
}
|
|
8432
|
-
|
|
8433
|
-
protected processUpdateMrbInstanceCocSigner(response: Response): Promise<void> {
|
|
8434
|
-
const status = response.status;
|
|
8435
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
8436
|
-
if (status === 204) {
|
|
8437
|
-
return response.text().then((_responseText) => {
|
|
8438
|
-
return;
|
|
8439
|
-
});
|
|
8440
|
-
} else if (status !== 200 && status !== 204) {
|
|
8441
|
-
return response.text().then((_responseText) => {
|
|
8442
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8443
|
-
});
|
|
8444
|
-
}
|
|
8445
|
-
return Promise.resolve<void>(null as any);
|
|
8446
|
-
}
|
|
8447
|
-
|
|
8448
8069
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]> {
|
|
8449
8070
|
let url_ = this.baseUrl + "/mrb/{id}/revisions";
|
|
8450
8071
|
if (id === undefined || id === null)
|
|
@@ -26665,6 +26286,11 @@ export interface IInspectSchemaCreatorClient {
|
|
|
26665
26286
|
|
|
26666
26287
|
updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
26667
26288
|
|
|
26289
|
+
/**
|
|
26290
|
+
* Saves only what changed; the response is the whole state with server-derived values.
|
|
26291
|
+
*/
|
|
26292
|
+
applySchemaCreatorChanges(schemaVersionId: string, changes: SchemaCreatorChangesDto): Promise<SchemaCreatorStateDto>;
|
|
26293
|
+
|
|
26668
26294
|
/**
|
|
26669
26295
|
* Geometry only (no values), derived from the schema's retained
|
|
26670
26296
|
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
@@ -26688,10 +26314,12 @@ export interface IInspectSchemaCreatorClient {
|
|
|
26688
26314
|
|
|
26689
26315
|
/**
|
|
26690
26316
|
* Starts an async snip resolve; the result is delivered through the
|
|
26691
|
-
SchemaCreatorSnipResolved SignalR notification
|
|
26317
|
+
SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
|
|
26318
|
+
held several elements. A reparse always resolves to the one element.
|
|
26692
26319
|
* @param image (optional)
|
|
26320
|
+
* @param reparse (optional)
|
|
26693
26321
|
*/
|
|
26694
|
-
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
26322
|
+
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined, reparse: boolean | undefined): Promise<void>;
|
|
26695
26323
|
}
|
|
26696
26324
|
|
|
26697
26325
|
export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
@@ -26836,6 +26464,51 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26836
26464
|
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26837
26465
|
}
|
|
26838
26466
|
|
|
26467
|
+
/**
|
|
26468
|
+
* Saves only what changed; the response is the whole state with server-derived values.
|
|
26469
|
+
*/
|
|
26470
|
+
applySchemaCreatorChanges(schemaVersionId: string, changes: SchemaCreatorChangesDto): Promise<SchemaCreatorStateDto> {
|
|
26471
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
26472
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26473
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26474
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26475
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
26476
|
+
|
|
26477
|
+
const content_ = JSON.stringify(changes);
|
|
26478
|
+
|
|
26479
|
+
let options_: RequestInit = {
|
|
26480
|
+
body: content_,
|
|
26481
|
+
method: "PATCH",
|
|
26482
|
+
headers: {
|
|
26483
|
+
"Content-Type": "application/json",
|
|
26484
|
+
"Accept": "application/json"
|
|
26485
|
+
}
|
|
26486
|
+
};
|
|
26487
|
+
|
|
26488
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26489
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
26490
|
+
}).then((_response: Response) => {
|
|
26491
|
+
return this.processApplySchemaCreatorChanges(_response);
|
|
26492
|
+
});
|
|
26493
|
+
}
|
|
26494
|
+
|
|
26495
|
+
protected processApplySchemaCreatorChanges(response: Response): Promise<SchemaCreatorStateDto> {
|
|
26496
|
+
const status = response.status;
|
|
26497
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26498
|
+
if (status === 200) {
|
|
26499
|
+
return response.text().then((_responseText) => {
|
|
26500
|
+
let result200: any = null;
|
|
26501
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
26502
|
+
return result200;
|
|
26503
|
+
});
|
|
26504
|
+
} else if (status !== 200 && status !== 204) {
|
|
26505
|
+
return response.text().then((_responseText) => {
|
|
26506
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26507
|
+
});
|
|
26508
|
+
}
|
|
26509
|
+
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26510
|
+
}
|
|
26511
|
+
|
|
26839
26512
|
/**
|
|
26840
26513
|
* Geometry only (no values), derived from the schema's retained
|
|
26841
26514
|
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
@@ -26967,10 +26640,12 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26967
26640
|
|
|
26968
26641
|
/**
|
|
26969
26642
|
* Starts an async snip resolve; the result is delivered through the
|
|
26970
|
-
SchemaCreatorSnipResolved SignalR notification
|
|
26643
|
+
SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
|
|
26644
|
+
held several elements. A reparse always resolves to the one element.
|
|
26971
26645
|
* @param image (optional)
|
|
26646
|
+
* @param reparse (optional)
|
|
26972
26647
|
*/
|
|
26973
|
-
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void> {
|
|
26648
|
+
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined, reparse: boolean | undefined): Promise<void> {
|
|
26974
26649
|
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
|
|
26975
26650
|
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26976
26651
|
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
@@ -26983,6 +26658,10 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26983
26658
|
const content_ = new FormData();
|
|
26984
26659
|
if (image !== null && image !== undefined)
|
|
26985
26660
|
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
26661
|
+
if (reparse === null || reparse === undefined)
|
|
26662
|
+
throw new globalThis.Error("The parameter 'reparse' cannot be null.");
|
|
26663
|
+
else
|
|
26664
|
+
content_.append("reparse", reparse.toString());
|
|
26986
26665
|
|
|
26987
26666
|
let options_: RequestInit = {
|
|
26988
26667
|
body: content_,
|
|
@@ -34763,45 +34442,6 @@ export interface NamedCompanyResourceUtilizationDatapointListDto extends Company
|
|
|
34763
34442
|
companyName: string;
|
|
34764
34443
|
}
|
|
34765
34444
|
|
|
34766
|
-
export interface MrbSignatureSettingsDto {
|
|
34767
|
-
titles: MrbSignerTitleDto[];
|
|
34768
|
-
signers: MrbSignerDto[];
|
|
34769
|
-
}
|
|
34770
|
-
|
|
34771
|
-
export interface MrbSignerTitleDto {
|
|
34772
|
-
id: string;
|
|
34773
|
-
name: string;
|
|
34774
|
-
}
|
|
34775
|
-
|
|
34776
|
-
export interface MrbSignerDto {
|
|
34777
|
-
id: string;
|
|
34778
|
-
name: string;
|
|
34779
|
-
titleId: string;
|
|
34780
|
-
titleName?: string | null;
|
|
34781
|
-
titleDeleted: boolean;
|
|
34782
|
-
signatureUrl?: string | null;
|
|
34783
|
-
}
|
|
34784
|
-
|
|
34785
|
-
export interface MrbSignerTitleRequest {
|
|
34786
|
-
name: string;
|
|
34787
|
-
}
|
|
34788
|
-
|
|
34789
|
-
export interface CreateMrbSignerRequest {
|
|
34790
|
-
name: string;
|
|
34791
|
-
titleId: string;
|
|
34792
|
-
uploadKey: string;
|
|
34793
|
-
/** File name used when uploading to the temp upload location. */
|
|
34794
|
-
uploadFilename: string;
|
|
34795
|
-
}
|
|
34796
|
-
|
|
34797
|
-
export interface UpdateMrbSignerRequest {
|
|
34798
|
-
name: string;
|
|
34799
|
-
titleId: string;
|
|
34800
|
-
/** Set to replace the signature image. */
|
|
34801
|
-
uploadKey?: string | null;
|
|
34802
|
-
uploadFilename?: string | null;
|
|
34803
|
-
}
|
|
34804
|
-
|
|
34805
34445
|
export interface MrbInstanceDto {
|
|
34806
34446
|
id: string;
|
|
34807
34447
|
title?: string | null;
|
|
@@ -34822,10 +34462,6 @@ export interface MrbInstanceDto {
|
|
|
34822
34462
|
showSerialNumbersOnFrontPage?: boolean;
|
|
34823
34463
|
showSerialNumbersOnCoC?: boolean;
|
|
34824
34464
|
ncInfo?: string | null;
|
|
34825
|
-
cocSignerSelection: MrbCocSignerSelection;
|
|
34826
|
-
cocSignerId?: string | null;
|
|
34827
|
-
templateShowSignatureOnCoC?: boolean;
|
|
34828
|
-
templateDefaultCocSignerId?: string | null;
|
|
34829
34465
|
}
|
|
34830
34466
|
|
|
34831
34467
|
export interface CustomerOrderLineTraceItemDto {
|
|
@@ -34877,24 +34513,10 @@ export interface MrbPartDto {
|
|
|
34877
34513
|
partRevision?: string | null;
|
|
34878
34514
|
}
|
|
34879
34515
|
|
|
34880
|
-
export type MrbCocSignerSelection = "TemplateDefault" | "None" | "Signer";
|
|
34881
|
-
|
|
34882
34516
|
export interface UpdateMrbInstanceNcInfoRequest {
|
|
34883
34517
|
ncInfo?: string | null;
|
|
34884
34518
|
}
|
|
34885
34519
|
|
|
34886
|
-
export interface UpdateMrbInstanceCocSignerRequest {
|
|
34887
|
-
selection: MrbCocSignerSelection;
|
|
34888
|
-
signerId?: string | null;
|
|
34889
|
-
}
|
|
34890
|
-
|
|
34891
|
-
export interface MrbCocSignerDto {
|
|
34892
|
-
id: string;
|
|
34893
|
-
name: string;
|
|
34894
|
-
title?: string | null;
|
|
34895
|
-
deleted: boolean;
|
|
34896
|
-
}
|
|
34897
|
-
|
|
34898
34520
|
export interface MrbInstanceJobDto {
|
|
34899
34521
|
jobId: string;
|
|
34900
34522
|
mrbInstanceId: string;
|
|
@@ -35007,8 +34629,6 @@ export interface MrbTemplateDto {
|
|
|
35007
34629
|
noContentIndicator?: string | null;
|
|
35008
34630
|
showSerialNumbersOnFrontPage?: boolean;
|
|
35009
34631
|
showSerialNumbersOnCoC?: boolean;
|
|
35010
|
-
showSignatureOnCoC?: boolean;
|
|
35011
|
-
defaultCocSignerId?: string | null;
|
|
35012
34632
|
elements: MrbTemplateElementDto[];
|
|
35013
34633
|
tableOfContents?: MrbTemplateTableOfContentsDto | null;
|
|
35014
34634
|
}
|
|
@@ -35069,8 +34689,6 @@ export interface UpdateMrbTemplate {
|
|
|
35069
34689
|
noContentIndicator?: string | null;
|
|
35070
34690
|
showSerialNumbersOnFrontPage?: boolean;
|
|
35071
34691
|
showSerialNumbersOnCoC?: boolean;
|
|
35072
|
-
showSignatureOnCoC?: boolean;
|
|
35073
|
-
defaultCocSignerId?: string | null;
|
|
35074
34692
|
}
|
|
35075
34693
|
|
|
35076
34694
|
export interface MrbTemplateUpdateElementDto {
|
|
@@ -37922,7 +37540,7 @@ export interface SurroundingOperationDto {
|
|
|
37922
37540
|
export interface WeekCapacityDto {
|
|
37923
37541
|
weekGroup: string;
|
|
37924
37542
|
weekStart: Date;
|
|
37925
|
-
capacityHours: number
|
|
37543
|
+
capacityHours: number;
|
|
37926
37544
|
loadHours: number;
|
|
37927
37545
|
}
|
|
37928
37546
|
|
|
@@ -39916,6 +39534,14 @@ export interface SchemaCreatorXmlGeometryDto {
|
|
|
39916
39534
|
pageIndex: number;
|
|
39917
39535
|
}
|
|
39918
39536
|
|
|
39537
|
+
export interface SchemaCreatorChangesDto {
|
|
39538
|
+
upserts?: SchemaCreatorElementDto[];
|
|
39539
|
+
deletes?: string[];
|
|
39540
|
+
order?: string[] | null;
|
|
39541
|
+
settings?: SchemaCreatorSettingsDto | null;
|
|
39542
|
+
recalculateGeneralTolerances?: boolean;
|
|
39543
|
+
}
|
|
39544
|
+
|
|
39919
39545
|
export interface MeasurementFormSchemaDto {
|
|
39920
39546
|
id: string;
|
|
39921
39547
|
versionId: number;
|