@ignos/api-client 20241106.0.10670 → 20241112.0.10697
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 +5 -2
- package/lib/ignosportal-api.js +38 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +42 -2
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -380,6 +380,7 @@ export interface IMrbClient {
|
|
|
380
380
|
getMrbInstance(id: string): Promise<MrbInstanceDto>;
|
|
381
381
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]>;
|
|
382
382
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
383
|
+
deleteMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
383
384
|
getMrbRevisionContent(id: string, revisionId: number): Promise<MrbContentDto>;
|
|
384
385
|
approveMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
385
386
|
rejectMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
@@ -449,6 +450,8 @@ export declare class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
449
450
|
protected processListMrbInstanceRevisions(response: Response): Promise<MrbInstanceRevisionDto[]>;
|
|
450
451
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
451
452
|
protected processCreateMrbRevision(response: Response): Promise<MrbInstanceJobDto>;
|
|
453
|
+
deleteMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
454
|
+
protected processDeleteMrbRevision(response: Response): Promise<void>;
|
|
452
455
|
getMrbRevisionContent(id: string, revisionId: number): Promise<MrbContentDto>;
|
|
453
456
|
protected processGetMrbRevisionContent(response: Response): Promise<MrbContentDto>;
|
|
454
457
|
approveMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
@@ -9648,7 +9651,7 @@ export interface IStoppedWorkDto {
|
|
|
9648
9651
|
}
|
|
9649
9652
|
export declare class StartOperations implements IStartOperations {
|
|
9650
9653
|
operations: StartOperationDto[];
|
|
9651
|
-
workType
|
|
9654
|
+
workType?: WorkTypeDto | null;
|
|
9652
9655
|
constructor(data?: IStartOperations);
|
|
9653
9656
|
init(_data?: any): void;
|
|
9654
9657
|
static fromJS(data: any): StartOperations;
|
|
@@ -9656,7 +9659,7 @@ export declare class StartOperations implements IStartOperations {
|
|
|
9656
9659
|
}
|
|
9657
9660
|
export interface IStartOperations {
|
|
9658
9661
|
operations: StartOperationDto[];
|
|
9659
|
-
workType
|
|
9662
|
+
workType?: WorkTypeDto | null;
|
|
9660
9663
|
}
|
|
9661
9664
|
export declare class StartOperationDto implements IStartOperationDto {
|
|
9662
9665
|
workOrder: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2343,6 +2343,44 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
return Promise.resolve(null);
|
|
2345
2345
|
}
|
|
2346
|
+
deleteMrbRevision(id, revisionId) {
|
|
2347
|
+
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}";
|
|
2348
|
+
if (id === undefined || id === null)
|
|
2349
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
2350
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2351
|
+
if (revisionId === undefined || revisionId === null)
|
|
2352
|
+
throw new Error("The parameter 'revisionId' must be defined.");
|
|
2353
|
+
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
2354
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2355
|
+
let options_ = {
|
|
2356
|
+
method: "DELETE",
|
|
2357
|
+
headers: {}
|
|
2358
|
+
};
|
|
2359
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2360
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
2361
|
+
}).then((_response) => {
|
|
2362
|
+
return this.processDeleteMrbRevision(_response);
|
|
2363
|
+
});
|
|
2364
|
+
}
|
|
2365
|
+
processDeleteMrbRevision(response) {
|
|
2366
|
+
const status = response.status;
|
|
2367
|
+
let _headers = {};
|
|
2368
|
+
if (response.headers && response.headers.forEach) {
|
|
2369
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2370
|
+
}
|
|
2371
|
+
;
|
|
2372
|
+
if (status === 204) {
|
|
2373
|
+
return response.text().then((_responseText) => {
|
|
2374
|
+
return;
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
2377
|
+
else if (status !== 200 && status !== 204) {
|
|
2378
|
+
return response.text().then((_responseText) => {
|
|
2379
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2382
|
+
return Promise.resolve(null);
|
|
2383
|
+
}
|
|
2346
2384
|
getMrbRevisionContent(id, revisionId) {
|
|
2347
2385
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/content";
|
|
2348
2386
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2308,6 +2308,8 @@ export interface IMrbClient {
|
|
|
2308
2308
|
|
|
2309
2309
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
2310
2310
|
|
|
2311
|
+
deleteMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
2312
|
+
|
|
2311
2313
|
getMrbRevisionContent(id: string, revisionId: number): Promise<MrbContentDto>;
|
|
2312
2314
|
|
|
2313
2315
|
approveMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
@@ -2643,6 +2645,44 @@ export class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
2643
2645
|
return Promise.resolve<MrbInstanceJobDto>(null as any);
|
|
2644
2646
|
}
|
|
2645
2647
|
|
|
2648
|
+
deleteMrbRevision(id: string, revisionId: number): Promise<void> {
|
|
2649
|
+
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}";
|
|
2650
|
+
if (id === undefined || id === null)
|
|
2651
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
2652
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2653
|
+
if (revisionId === undefined || revisionId === null)
|
|
2654
|
+
throw new Error("The parameter 'revisionId' must be defined.");
|
|
2655
|
+
url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
|
|
2656
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2657
|
+
|
|
2658
|
+
let options_: RequestInit = {
|
|
2659
|
+
method: "DELETE",
|
|
2660
|
+
headers: {
|
|
2661
|
+
}
|
|
2662
|
+
};
|
|
2663
|
+
|
|
2664
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2665
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
2666
|
+
}).then((_response: Response) => {
|
|
2667
|
+
return this.processDeleteMrbRevision(_response);
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
protected processDeleteMrbRevision(response: Response): Promise<void> {
|
|
2672
|
+
const status = response.status;
|
|
2673
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
2674
|
+
if (status === 204) {
|
|
2675
|
+
return response.text().then((_responseText) => {
|
|
2676
|
+
return;
|
|
2677
|
+
});
|
|
2678
|
+
} else if (status !== 200 && status !== 204) {
|
|
2679
|
+
return response.text().then((_responseText) => {
|
|
2680
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2681
|
+
});
|
|
2682
|
+
}
|
|
2683
|
+
return Promise.resolve<void>(null as any);
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2646
2686
|
getMrbRevisionContent(id: string, revisionId: number): Promise<MrbContentDto> {
|
|
2647
2687
|
let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/content";
|
|
2648
2688
|
if (id === undefined || id === null)
|
|
@@ -43255,7 +43295,7 @@ export interface IStoppedWorkDto {
|
|
|
43255
43295
|
|
|
43256
43296
|
export class StartOperations implements IStartOperations {
|
|
43257
43297
|
operations!: StartOperationDto[];
|
|
43258
|
-
workType
|
|
43298
|
+
workType?: WorkTypeDto | null;
|
|
43259
43299
|
|
|
43260
43300
|
constructor(data?: IStartOperations) {
|
|
43261
43301
|
if (data) {
|
|
@@ -43301,7 +43341,7 @@ export class StartOperations implements IStartOperations {
|
|
|
43301
43341
|
|
|
43302
43342
|
export interface IStartOperations {
|
|
43303
43343
|
operations: StartOperationDto[];
|
|
43304
|
-
workType
|
|
43344
|
+
workType?: WorkTypeDto | null;
|
|
43305
43345
|
}
|
|
43306
43346
|
|
|
43307
43347
|
export class StartOperationDto implements IStartOperationDto {
|