@ignos/api-client 20251106.0.13144 → 20251107.0.13168-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 +20 -0
- package/lib/ignosportal-api.js +81 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +100 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2703,6 +2703,7 @@ export interface IWorkordersClient {
|
|
|
2703
2703
|
deleteMessage(id: string, messageId: string): Promise<FileResponse>;
|
|
2704
2704
|
getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
|
|
2705
2705
|
setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void>;
|
|
2706
|
+
generateContentPartsForDiscussions(): Promise<WorkorderDiscussionMessageDto[]>;
|
|
2706
2707
|
}
|
|
2707
2708
|
export declare class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
2708
2709
|
private http;
|
|
@@ -2844,6 +2845,8 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
|
|
|
2844
2845
|
protected processGetLastRead(response: Response): Promise<WorkorderDiscussionReadStatusDto>;
|
|
2845
2846
|
setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void>;
|
|
2846
2847
|
protected processSetLastRead(response: Response): Promise<void>;
|
|
2848
|
+
generateContentPartsForDiscussions(): Promise<WorkorderDiscussionMessageDto[]>;
|
|
2849
|
+
protected processGenerateContentPartsForDiscussions(response: Response): Promise<WorkorderDiscussionMessageDto[]>;
|
|
2847
2850
|
}
|
|
2848
2851
|
export declare class AzureRegionDto implements IAzureRegionDto {
|
|
2849
2852
|
displayName: string;
|
|
@@ -5301,6 +5304,7 @@ export declare class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
|
5301
5304
|
min?: number | null;
|
|
5302
5305
|
max?: number | null;
|
|
5303
5306
|
calibrationInterval?: number | null;
|
|
5307
|
+
overriddenCalibrationInterval?: number | null;
|
|
5304
5308
|
serialNumber?: string | null;
|
|
5305
5309
|
precision?: string | null;
|
|
5306
5310
|
lastCalibrationDate?: Date | null;
|
|
@@ -5327,6 +5331,7 @@ export interface IMeasuringToolDetailDto {
|
|
|
5327
5331
|
min?: number | null;
|
|
5328
5332
|
max?: number | null;
|
|
5329
5333
|
calibrationInterval?: number | null;
|
|
5334
|
+
overriddenCalibrationInterval?: number | null;
|
|
5330
5335
|
serialNumber?: string | null;
|
|
5331
5336
|
precision?: string | null;
|
|
5332
5337
|
lastCalibrationDate?: Date | null;
|
|
@@ -14578,6 +14583,7 @@ export declare class WorkorderDiscussionMessageDto implements IWorkorderDiscussi
|
|
|
14578
14583
|
workorderId?: string;
|
|
14579
14584
|
companyId?: string;
|
|
14580
14585
|
content?: string;
|
|
14586
|
+
contentParts?: WorkOrderDiscussionContent[] | null;
|
|
14581
14587
|
senderUpn?: string;
|
|
14582
14588
|
senderName?: string;
|
|
14583
14589
|
operationId?: string | null;
|
|
@@ -14594,6 +14600,7 @@ export interface IWorkorderDiscussionMessageDto {
|
|
|
14594
14600
|
workorderId?: string;
|
|
14595
14601
|
companyId?: string;
|
|
14596
14602
|
content?: string;
|
|
14603
|
+
contentParts?: WorkOrderDiscussionContent[] | null;
|
|
14597
14604
|
senderUpn?: string;
|
|
14598
14605
|
senderName?: string;
|
|
14599
14606
|
operationId?: string | null;
|
|
@@ -14601,6 +14608,19 @@ export interface IWorkorderDiscussionMessageDto {
|
|
|
14601
14608
|
resourceId?: string | null;
|
|
14602
14609
|
created?: Date;
|
|
14603
14610
|
}
|
|
14611
|
+
export declare class WorkOrderDiscussionContent implements IWorkOrderDiscussionContent {
|
|
14612
|
+
type?: WorkOrderDiscussionContentType;
|
|
14613
|
+
value?: string;
|
|
14614
|
+
constructor(data?: IWorkOrderDiscussionContent);
|
|
14615
|
+
init(_data?: any): void;
|
|
14616
|
+
static fromJS(data: any): WorkOrderDiscussionContent;
|
|
14617
|
+
toJSON(data?: any): any;
|
|
14618
|
+
}
|
|
14619
|
+
export interface IWorkOrderDiscussionContent {
|
|
14620
|
+
type?: WorkOrderDiscussionContentType;
|
|
14621
|
+
value?: string;
|
|
14622
|
+
}
|
|
14623
|
+
export type WorkOrderDiscussionContentType = 0 | 1;
|
|
14604
14624
|
export declare class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
|
|
14605
14625
|
message: string;
|
|
14606
14626
|
operationId?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -23636,6 +23636,47 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
23636
23636
|
}
|
|
23637
23637
|
return Promise.resolve(null);
|
|
23638
23638
|
}
|
|
23639
|
+
generateContentPartsForDiscussions() {
|
|
23640
|
+
let url_ = this.baseUrl + "/erp/workorders/generatecontentpartsfordiscussions";
|
|
23641
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23642
|
+
let options_ = {
|
|
23643
|
+
method: "POST",
|
|
23644
|
+
headers: {
|
|
23645
|
+
"Accept": "application/json"
|
|
23646
|
+
}
|
|
23647
|
+
};
|
|
23648
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23649
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23650
|
+
}).then((_response) => {
|
|
23651
|
+
return this.processGenerateContentPartsForDiscussions(_response);
|
|
23652
|
+
});
|
|
23653
|
+
}
|
|
23654
|
+
processGenerateContentPartsForDiscussions(response) {
|
|
23655
|
+
const status = response.status;
|
|
23656
|
+
let _headers = {};
|
|
23657
|
+
if (response.headers && response.headers.forEach) {
|
|
23658
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23659
|
+
}
|
|
23660
|
+
;
|
|
23661
|
+
if (status === 200) {
|
|
23662
|
+
return response.text().then((_responseText) => {
|
|
23663
|
+
let result200 = null;
|
|
23664
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23665
|
+
if (Array.isArray(resultData200)) {
|
|
23666
|
+
result200 = [];
|
|
23667
|
+
for (let item of resultData200)
|
|
23668
|
+
result200.push(WorkorderDiscussionMessageDto.fromJS(item));
|
|
23669
|
+
}
|
|
23670
|
+
return result200;
|
|
23671
|
+
});
|
|
23672
|
+
}
|
|
23673
|
+
else if (status !== 200 && status !== 204) {
|
|
23674
|
+
return response.text().then((_responseText) => {
|
|
23675
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23676
|
+
});
|
|
23677
|
+
}
|
|
23678
|
+
return Promise.resolve(null);
|
|
23679
|
+
}
|
|
23639
23680
|
}
|
|
23640
23681
|
export class AzureRegionDto {
|
|
23641
23682
|
constructor(data) {
|
|
@@ -28956,6 +28997,7 @@ export class MeasuringToolDetailDto {
|
|
|
28956
28997
|
this.min = _data["min"];
|
|
28957
28998
|
this.max = _data["max"];
|
|
28958
28999
|
this.calibrationInterval = _data["calibrationInterval"];
|
|
29000
|
+
this.overriddenCalibrationInterval = _data["overriddenCalibrationInterval"];
|
|
28959
29001
|
this.serialNumber = _data["serialNumber"];
|
|
28960
29002
|
this.precision = _data["precision"];
|
|
28961
29003
|
this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined;
|
|
@@ -28986,6 +29028,7 @@ export class MeasuringToolDetailDto {
|
|
|
28986
29028
|
data["min"] = this.min;
|
|
28987
29029
|
data["max"] = this.max;
|
|
28988
29030
|
data["calibrationInterval"] = this.calibrationInterval;
|
|
29031
|
+
data["overriddenCalibrationInterval"] = this.overriddenCalibrationInterval;
|
|
28989
29032
|
data["serialNumber"] = this.serialNumber;
|
|
28990
29033
|
data["precision"] = this.precision;
|
|
28991
29034
|
data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined;
|
|
@@ -47782,6 +47825,11 @@ export class WorkorderDiscussionMessageDto {
|
|
|
47782
47825
|
this.workorderId = _data["workorderId"];
|
|
47783
47826
|
this.companyId = _data["companyId"];
|
|
47784
47827
|
this.content = _data["content"];
|
|
47828
|
+
if (Array.isArray(_data["contentParts"])) {
|
|
47829
|
+
this.contentParts = [];
|
|
47830
|
+
for (let item of _data["contentParts"])
|
|
47831
|
+
this.contentParts.push(WorkOrderDiscussionContent.fromJS(item));
|
|
47832
|
+
}
|
|
47785
47833
|
this.senderUpn = _data["senderUpn"];
|
|
47786
47834
|
this.senderName = _data["senderName"];
|
|
47787
47835
|
this.operationId = _data["operationId"];
|
|
@@ -47802,6 +47850,11 @@ export class WorkorderDiscussionMessageDto {
|
|
|
47802
47850
|
data["workorderId"] = this.workorderId;
|
|
47803
47851
|
data["companyId"] = this.companyId;
|
|
47804
47852
|
data["content"] = this.content;
|
|
47853
|
+
if (Array.isArray(this.contentParts)) {
|
|
47854
|
+
data["contentParts"] = [];
|
|
47855
|
+
for (let item of this.contentParts)
|
|
47856
|
+
data["contentParts"].push(item ? item.toJSON() : undefined);
|
|
47857
|
+
}
|
|
47805
47858
|
data["senderUpn"] = this.senderUpn;
|
|
47806
47859
|
data["senderName"] = this.senderName;
|
|
47807
47860
|
data["operationId"] = this.operationId;
|
|
@@ -47811,6 +47864,34 @@ export class WorkorderDiscussionMessageDto {
|
|
|
47811
47864
|
return data;
|
|
47812
47865
|
}
|
|
47813
47866
|
}
|
|
47867
|
+
export class WorkOrderDiscussionContent {
|
|
47868
|
+
constructor(data) {
|
|
47869
|
+
if (data) {
|
|
47870
|
+
for (var property in data) {
|
|
47871
|
+
if (data.hasOwnProperty(property))
|
|
47872
|
+
this[property] = data[property];
|
|
47873
|
+
}
|
|
47874
|
+
}
|
|
47875
|
+
}
|
|
47876
|
+
init(_data) {
|
|
47877
|
+
if (_data) {
|
|
47878
|
+
this.type = _data["type"];
|
|
47879
|
+
this.value = _data["value"];
|
|
47880
|
+
}
|
|
47881
|
+
}
|
|
47882
|
+
static fromJS(data) {
|
|
47883
|
+
data = typeof data === 'object' ? data : {};
|
|
47884
|
+
let result = new WorkOrderDiscussionContent();
|
|
47885
|
+
result.init(data);
|
|
47886
|
+
return result;
|
|
47887
|
+
}
|
|
47888
|
+
toJSON(data) {
|
|
47889
|
+
data = typeof data === 'object' ? data : {};
|
|
47890
|
+
data["type"] = this.type;
|
|
47891
|
+
data["value"] = this.value;
|
|
47892
|
+
return data;
|
|
47893
|
+
}
|
|
47894
|
+
}
|
|
47814
47895
|
export class AddDiscussionMessageRequest {
|
|
47815
47896
|
constructor(data) {
|
|
47816
47897
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -23880,6 +23880,8 @@ export interface IWorkordersClient {
|
|
|
23880
23880
|
getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
|
|
23881
23881
|
|
|
23882
23882
|
setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void>;
|
|
23883
|
+
|
|
23884
|
+
generateContentPartsForDiscussions(): Promise<WorkorderDiscussionMessageDto[]>;
|
|
23883
23885
|
}
|
|
23884
23886
|
|
|
23885
23887
|
export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
@@ -25223,6 +25225,46 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
25223
25225
|
}
|
|
25224
25226
|
return Promise.resolve<void>(null as any);
|
|
25225
25227
|
}
|
|
25228
|
+
|
|
25229
|
+
generateContentPartsForDiscussions(): Promise<WorkorderDiscussionMessageDto[]> {
|
|
25230
|
+
let url_ = this.baseUrl + "/erp/workorders/generatecontentpartsfordiscussions";
|
|
25231
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25232
|
+
|
|
25233
|
+
let options_: RequestInit = {
|
|
25234
|
+
method: "POST",
|
|
25235
|
+
headers: {
|
|
25236
|
+
"Accept": "application/json"
|
|
25237
|
+
}
|
|
25238
|
+
};
|
|
25239
|
+
|
|
25240
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25241
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25242
|
+
}).then((_response: Response) => {
|
|
25243
|
+
return this.processGenerateContentPartsForDiscussions(_response);
|
|
25244
|
+
});
|
|
25245
|
+
}
|
|
25246
|
+
|
|
25247
|
+
protected processGenerateContentPartsForDiscussions(response: Response): Promise<WorkorderDiscussionMessageDto[]> {
|
|
25248
|
+
const status = response.status;
|
|
25249
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25250
|
+
if (status === 200) {
|
|
25251
|
+
return response.text().then((_responseText) => {
|
|
25252
|
+
let result200: any = null;
|
|
25253
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25254
|
+
if (Array.isArray(resultData200)) {
|
|
25255
|
+
result200 = [] as any;
|
|
25256
|
+
for (let item of resultData200)
|
|
25257
|
+
result200!.push(WorkorderDiscussionMessageDto.fromJS(item));
|
|
25258
|
+
}
|
|
25259
|
+
return result200;
|
|
25260
|
+
});
|
|
25261
|
+
} else if (status !== 200 && status !== 204) {
|
|
25262
|
+
return response.text().then((_responseText) => {
|
|
25263
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25264
|
+
});
|
|
25265
|
+
}
|
|
25266
|
+
return Promise.resolve<WorkorderDiscussionMessageDto[]>(null as any);
|
|
25267
|
+
}
|
|
25226
25268
|
}
|
|
25227
25269
|
|
|
25228
25270
|
export class AzureRegionDto implements IAzureRegionDto {
|
|
@@ -32988,6 +33030,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
|
32988
33030
|
min?: number | null;
|
|
32989
33031
|
max?: number | null;
|
|
32990
33032
|
calibrationInterval?: number | null;
|
|
33033
|
+
overriddenCalibrationInterval?: number | null;
|
|
32991
33034
|
serialNumber?: string | null;
|
|
32992
33035
|
precision?: string | null;
|
|
32993
33036
|
lastCalibrationDate?: Date | null;
|
|
@@ -33024,6 +33067,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
|
33024
33067
|
this.min = _data["min"];
|
|
33025
33068
|
this.max = _data["max"];
|
|
33026
33069
|
this.calibrationInterval = _data["calibrationInterval"];
|
|
33070
|
+
this.overriddenCalibrationInterval = _data["overriddenCalibrationInterval"];
|
|
33027
33071
|
this.serialNumber = _data["serialNumber"];
|
|
33028
33072
|
this.precision = _data["precision"];
|
|
33029
33073
|
this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined as any;
|
|
@@ -33056,6 +33100,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
|
33056
33100
|
data["min"] = this.min;
|
|
33057
33101
|
data["max"] = this.max;
|
|
33058
33102
|
data["calibrationInterval"] = this.calibrationInterval;
|
|
33103
|
+
data["overriddenCalibrationInterval"] = this.overriddenCalibrationInterval;
|
|
33059
33104
|
data["serialNumber"] = this.serialNumber;
|
|
33060
33105
|
data["precision"] = this.precision;
|
|
33061
33106
|
data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined as any;
|
|
@@ -33081,6 +33126,7 @@ export interface IMeasuringToolDetailDto {
|
|
|
33081
33126
|
min?: number | null;
|
|
33082
33127
|
max?: number | null;
|
|
33083
33128
|
calibrationInterval?: number | null;
|
|
33129
|
+
overriddenCalibrationInterval?: number | null;
|
|
33084
33130
|
serialNumber?: string | null;
|
|
33085
33131
|
precision?: string | null;
|
|
33086
33132
|
lastCalibrationDate?: Date | null;
|
|
@@ -61138,6 +61184,7 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
|
|
|
61138
61184
|
workorderId?: string;
|
|
61139
61185
|
companyId?: string;
|
|
61140
61186
|
content?: string;
|
|
61187
|
+
contentParts?: WorkOrderDiscussionContent[] | null;
|
|
61141
61188
|
senderUpn?: string;
|
|
61142
61189
|
senderName?: string;
|
|
61143
61190
|
operationId?: string | null;
|
|
@@ -61160,6 +61207,11 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
|
|
|
61160
61207
|
this.workorderId = _data["workorderId"];
|
|
61161
61208
|
this.companyId = _data["companyId"];
|
|
61162
61209
|
this.content = _data["content"];
|
|
61210
|
+
if (Array.isArray(_data["contentParts"])) {
|
|
61211
|
+
this.contentParts = [] as any;
|
|
61212
|
+
for (let item of _data["contentParts"])
|
|
61213
|
+
this.contentParts!.push(WorkOrderDiscussionContent.fromJS(item));
|
|
61214
|
+
}
|
|
61163
61215
|
this.senderUpn = _data["senderUpn"];
|
|
61164
61216
|
this.senderName = _data["senderName"];
|
|
61165
61217
|
this.operationId = _data["operationId"];
|
|
@@ -61182,6 +61234,11 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
|
|
|
61182
61234
|
data["workorderId"] = this.workorderId;
|
|
61183
61235
|
data["companyId"] = this.companyId;
|
|
61184
61236
|
data["content"] = this.content;
|
|
61237
|
+
if (Array.isArray(this.contentParts)) {
|
|
61238
|
+
data["contentParts"] = [];
|
|
61239
|
+
for (let item of this.contentParts)
|
|
61240
|
+
data["contentParts"].push(item ? item.toJSON() : undefined as any);
|
|
61241
|
+
}
|
|
61185
61242
|
data["senderUpn"] = this.senderUpn;
|
|
61186
61243
|
data["senderName"] = this.senderName;
|
|
61187
61244
|
data["operationId"] = this.operationId;
|
|
@@ -61197,6 +61254,7 @@ export interface IWorkorderDiscussionMessageDto {
|
|
|
61197
61254
|
workorderId?: string;
|
|
61198
61255
|
companyId?: string;
|
|
61199
61256
|
content?: string;
|
|
61257
|
+
contentParts?: WorkOrderDiscussionContent[] | null;
|
|
61200
61258
|
senderUpn?: string;
|
|
61201
61259
|
senderName?: string;
|
|
61202
61260
|
operationId?: string | null;
|
|
@@ -61205,6 +61263,48 @@ export interface IWorkorderDiscussionMessageDto {
|
|
|
61205
61263
|
created?: Date;
|
|
61206
61264
|
}
|
|
61207
61265
|
|
|
61266
|
+
export class WorkOrderDiscussionContent implements IWorkOrderDiscussionContent {
|
|
61267
|
+
type?: WorkOrderDiscussionContentType;
|
|
61268
|
+
value?: string;
|
|
61269
|
+
|
|
61270
|
+
constructor(data?: IWorkOrderDiscussionContent) {
|
|
61271
|
+
if (data) {
|
|
61272
|
+
for (var property in data) {
|
|
61273
|
+
if (data.hasOwnProperty(property))
|
|
61274
|
+
(this as any)[property] = (data as any)[property];
|
|
61275
|
+
}
|
|
61276
|
+
}
|
|
61277
|
+
}
|
|
61278
|
+
|
|
61279
|
+
init(_data?: any) {
|
|
61280
|
+
if (_data) {
|
|
61281
|
+
this.type = _data["type"];
|
|
61282
|
+
this.value = _data["value"];
|
|
61283
|
+
}
|
|
61284
|
+
}
|
|
61285
|
+
|
|
61286
|
+
static fromJS(data: any): WorkOrderDiscussionContent {
|
|
61287
|
+
data = typeof data === 'object' ? data : {};
|
|
61288
|
+
let result = new WorkOrderDiscussionContent();
|
|
61289
|
+
result.init(data);
|
|
61290
|
+
return result;
|
|
61291
|
+
}
|
|
61292
|
+
|
|
61293
|
+
toJSON(data?: any) {
|
|
61294
|
+
data = typeof data === 'object' ? data : {};
|
|
61295
|
+
data["type"] = this.type;
|
|
61296
|
+
data["value"] = this.value;
|
|
61297
|
+
return data;
|
|
61298
|
+
}
|
|
61299
|
+
}
|
|
61300
|
+
|
|
61301
|
+
export interface IWorkOrderDiscussionContent {
|
|
61302
|
+
type?: WorkOrderDiscussionContentType;
|
|
61303
|
+
value?: string;
|
|
61304
|
+
}
|
|
61305
|
+
|
|
61306
|
+
export type WorkOrderDiscussionContentType = 0 | 1;
|
|
61307
|
+
|
|
61208
61308
|
export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
|
|
61209
61309
|
message!: string;
|
|
61210
61310
|
operationId?: string | null;
|