@ignos/api-client 20250513.0.11706 → 20250514.0.11742
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 +46 -0
- package/lib/ignosportal-api.js +179 -2
- package/package.json +1 -1
- package/src/ignosportal-api.ts +204 -2
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1955,9 +1955,21 @@ export interface IMeasurementFormSchemasClient {
|
|
|
1955
1955
|
revokeSchema(schemaId: string): Promise<MeasurementFormDto>;
|
|
1956
1956
|
createDraftVersion(schemaId: string): Promise<MeasurementFormDto>;
|
|
1957
1957
|
isMappingFromPreviousVersionRequired(schemaId: string): Promise<boolean>;
|
|
1958
|
+
/**
|
|
1959
|
+
* @deprecated
|
|
1960
|
+
*/
|
|
1958
1961
|
getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
|
|
1962
|
+
/**
|
|
1963
|
+
* @deprecated
|
|
1964
|
+
*/
|
|
1959
1965
|
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
|
|
1966
|
+
/**
|
|
1967
|
+
* @deprecated
|
|
1968
|
+
*/
|
|
1960
1969
|
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
|
|
1970
|
+
/**
|
|
1971
|
+
* @deprecated
|
|
1972
|
+
*/
|
|
1961
1973
|
updateMeasurementFormCustomerSettings(request: UpdateMeasurementFormCustomerSettings): Promise<MeasurementFormCustomerSettingsDto>;
|
|
1962
1974
|
listMeasurementFormMappingsFromSchema(targetId: string | null | undefined): Promise<MeasurementFormMappingDto[]>;
|
|
1963
1975
|
createMeasurementFormMapping(request: CreateMeasurementFormMapping): Promise<MeasurementFormMappingDto>;
|
|
@@ -2044,12 +2056,24 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
2044
2056
|
protected processCreateDraftVersion(response: Response): Promise<MeasurementFormDto>;
|
|
2045
2057
|
isMappingFromPreviousVersionRequired(schemaId: string): Promise<boolean>;
|
|
2046
2058
|
protected processIsMappingFromPreviousVersionRequired(response: Response): Promise<boolean>;
|
|
2059
|
+
/**
|
|
2060
|
+
* @deprecated
|
|
2061
|
+
*/
|
|
2047
2062
|
getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
|
|
2048
2063
|
protected processGetMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto>;
|
|
2064
|
+
/**
|
|
2065
|
+
* @deprecated
|
|
2066
|
+
*/
|
|
2049
2067
|
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
|
|
2050
2068
|
protected processUpdateMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto>;
|
|
2069
|
+
/**
|
|
2070
|
+
* @deprecated
|
|
2071
|
+
*/
|
|
2051
2072
|
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2052
2073
|
protected processGetMeasurementFormCustomerSettings(response: Response): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2074
|
+
/**
|
|
2075
|
+
* @deprecated
|
|
2076
|
+
*/
|
|
2053
2077
|
updateMeasurementFormCustomerSettings(request: UpdateMeasurementFormCustomerSettings): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2054
2078
|
protected processUpdateMeasurementFormCustomerSettings(response: Response): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2055
2079
|
listMeasurementFormMappingsFromSchema(targetId: string | null | undefined): Promise<MeasurementFormMappingDto[]>;
|
|
@@ -2112,6 +2136,28 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
2112
2136
|
postListMeasurementFormSchemasWithHistory(request: ListMeasurementFormSchemasWithHistoryRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
2113
2137
|
protected processPostListMeasurementFormSchemasWithHistory(response: Response): Promise<PagedResultOfMeasurementFormListDto>;
|
|
2114
2138
|
}
|
|
2139
|
+
export interface IMeasurementFormSettingsClient {
|
|
2140
|
+
getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
|
|
2141
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
|
|
2142
|
+
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2143
|
+
updateMeasurementFormCustomerSettings(request: UpdateMeasurementFormCustomerSettings): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2144
|
+
}
|
|
2145
|
+
export declare class MeasurementFormSettingsClient extends AuthorizedApiBase implements IMeasurementFormSettingsClient {
|
|
2146
|
+
private http;
|
|
2147
|
+
private baseUrl;
|
|
2148
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
2149
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
2150
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2151
|
+
});
|
|
2152
|
+
getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
|
|
2153
|
+
protected processGetMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto>;
|
|
2154
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
|
|
2155
|
+
protected processUpdateMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto>;
|
|
2156
|
+
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2157
|
+
protected processGetMeasurementFormCustomerSettings(response: Response): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2158
|
+
updateMeasurementFormCustomerSettings(request: UpdateMeasurementFormCustomerSettings): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2159
|
+
protected processUpdateMeasurementFormCustomerSettings(response: Response): Promise<MeasurementFormCustomerSettingsDto>;
|
|
2160
|
+
}
|
|
2115
2161
|
export interface IMeasurementFormsInstancesClient {
|
|
2116
2162
|
listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, tenantId: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
|
|
2117
2163
|
postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v14.
|
|
3
|
+
// Generated using the NSwag toolchain v14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
6
|
/* tslint:disable */
|
|
@@ -16720,6 +16720,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16720
16720
|
}
|
|
16721
16721
|
return Promise.resolve(null);
|
|
16722
16722
|
}
|
|
16723
|
+
/**
|
|
16724
|
+
* @deprecated
|
|
16725
|
+
*/
|
|
16723
16726
|
getMeasurementFormSettings() {
|
|
16724
16727
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings";
|
|
16725
16728
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -16757,6 +16760,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16757
16760
|
}
|
|
16758
16761
|
return Promise.resolve(null);
|
|
16759
16762
|
}
|
|
16763
|
+
/**
|
|
16764
|
+
* @deprecated
|
|
16765
|
+
*/
|
|
16760
16766
|
updateMeasurementFormSettings(request) {
|
|
16761
16767
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings";
|
|
16762
16768
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -16797,6 +16803,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16797
16803
|
}
|
|
16798
16804
|
return Promise.resolve(null);
|
|
16799
16805
|
}
|
|
16806
|
+
/**
|
|
16807
|
+
* @deprecated
|
|
16808
|
+
*/
|
|
16800
16809
|
getMeasurementFormCustomerSettings(id) {
|
|
16801
16810
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings/customers/{id}";
|
|
16802
16811
|
if (id === undefined || id === null)
|
|
@@ -16837,6 +16846,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
16837
16846
|
}
|
|
16838
16847
|
return Promise.resolve(null);
|
|
16839
16848
|
}
|
|
16849
|
+
/**
|
|
16850
|
+
* @deprecated
|
|
16851
|
+
*/
|
|
16840
16852
|
updateMeasurementFormCustomerSettings(request) {
|
|
16841
16853
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings/customers";
|
|
16842
16854
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -17705,7 +17717,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17705
17717
|
url_ = url_.replace("{resourceType}", encodeURIComponent("" + resourceType));
|
|
17706
17718
|
url_ = url_.replace(/[?&]$/, "");
|
|
17707
17719
|
let options_ = {
|
|
17708
|
-
method: "
|
|
17720
|
+
method: "DELETE",
|
|
17709
17721
|
headers: {}
|
|
17710
17722
|
};
|
|
17711
17723
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -18069,6 +18081,171 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
18069
18081
|
return Promise.resolve(null);
|
|
18070
18082
|
}
|
|
18071
18083
|
}
|
|
18084
|
+
export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
18085
|
+
constructor(configuration, baseUrl, http) {
|
|
18086
|
+
super(configuration);
|
|
18087
|
+
this.jsonParseReviver = undefined;
|
|
18088
|
+
this.http = http ? http : window;
|
|
18089
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18090
|
+
}
|
|
18091
|
+
getMeasurementFormSettings() {
|
|
18092
|
+
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
18093
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18094
|
+
let options_ = {
|
|
18095
|
+
method: "GET",
|
|
18096
|
+
headers: {
|
|
18097
|
+
"Accept": "application/json"
|
|
18098
|
+
}
|
|
18099
|
+
};
|
|
18100
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18101
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18102
|
+
}).then((_response) => {
|
|
18103
|
+
return this.processGetMeasurementFormSettings(_response);
|
|
18104
|
+
});
|
|
18105
|
+
}
|
|
18106
|
+
processGetMeasurementFormSettings(response) {
|
|
18107
|
+
const status = response.status;
|
|
18108
|
+
let _headers = {};
|
|
18109
|
+
if (response.headers && response.headers.forEach) {
|
|
18110
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18111
|
+
}
|
|
18112
|
+
;
|
|
18113
|
+
if (status === 200) {
|
|
18114
|
+
return response.text().then((_responseText) => {
|
|
18115
|
+
let result200 = null;
|
|
18116
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18117
|
+
result200 = MeasurementFormSettingsDto.fromJS(resultData200);
|
|
18118
|
+
return result200;
|
|
18119
|
+
});
|
|
18120
|
+
}
|
|
18121
|
+
else if (status !== 200 && status !== 204) {
|
|
18122
|
+
return response.text().then((_responseText) => {
|
|
18123
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18124
|
+
});
|
|
18125
|
+
}
|
|
18126
|
+
return Promise.resolve(null);
|
|
18127
|
+
}
|
|
18128
|
+
updateMeasurementFormSettings(request) {
|
|
18129
|
+
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
18130
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18131
|
+
const content_ = JSON.stringify(request);
|
|
18132
|
+
let options_ = {
|
|
18133
|
+
body: content_,
|
|
18134
|
+
method: "POST",
|
|
18135
|
+
headers: {
|
|
18136
|
+
"Content-Type": "application/json",
|
|
18137
|
+
"Accept": "application/json"
|
|
18138
|
+
}
|
|
18139
|
+
};
|
|
18140
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18141
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18142
|
+
}).then((_response) => {
|
|
18143
|
+
return this.processUpdateMeasurementFormSettings(_response);
|
|
18144
|
+
});
|
|
18145
|
+
}
|
|
18146
|
+
processUpdateMeasurementFormSettings(response) {
|
|
18147
|
+
const status = response.status;
|
|
18148
|
+
let _headers = {};
|
|
18149
|
+
if (response.headers && response.headers.forEach) {
|
|
18150
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18151
|
+
}
|
|
18152
|
+
;
|
|
18153
|
+
if (status === 200) {
|
|
18154
|
+
return response.text().then((_responseText) => {
|
|
18155
|
+
let result200 = null;
|
|
18156
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18157
|
+
result200 = MeasurementFormSettingsDto.fromJS(resultData200);
|
|
18158
|
+
return result200;
|
|
18159
|
+
});
|
|
18160
|
+
}
|
|
18161
|
+
else if (status !== 200 && status !== 204) {
|
|
18162
|
+
return response.text().then((_responseText) => {
|
|
18163
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18164
|
+
});
|
|
18165
|
+
}
|
|
18166
|
+
return Promise.resolve(null);
|
|
18167
|
+
}
|
|
18168
|
+
getMeasurementFormCustomerSettings(id) {
|
|
18169
|
+
let url_ = this.baseUrl + "/measurementforms/settings/customers/{id}";
|
|
18170
|
+
if (id === undefined || id === null)
|
|
18171
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
18172
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18173
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18174
|
+
let options_ = {
|
|
18175
|
+
method: "GET",
|
|
18176
|
+
headers: {
|
|
18177
|
+
"Accept": "application/json"
|
|
18178
|
+
}
|
|
18179
|
+
};
|
|
18180
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18181
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18182
|
+
}).then((_response) => {
|
|
18183
|
+
return this.processGetMeasurementFormCustomerSettings(_response);
|
|
18184
|
+
});
|
|
18185
|
+
}
|
|
18186
|
+
processGetMeasurementFormCustomerSettings(response) {
|
|
18187
|
+
const status = response.status;
|
|
18188
|
+
let _headers = {};
|
|
18189
|
+
if (response.headers && response.headers.forEach) {
|
|
18190
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18191
|
+
}
|
|
18192
|
+
;
|
|
18193
|
+
if (status === 200) {
|
|
18194
|
+
return response.text().then((_responseText) => {
|
|
18195
|
+
let result200 = null;
|
|
18196
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18197
|
+
result200 = MeasurementFormCustomerSettingsDto.fromJS(resultData200);
|
|
18198
|
+
return result200;
|
|
18199
|
+
});
|
|
18200
|
+
}
|
|
18201
|
+
else if (status !== 200 && status !== 204) {
|
|
18202
|
+
return response.text().then((_responseText) => {
|
|
18203
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18204
|
+
});
|
|
18205
|
+
}
|
|
18206
|
+
return Promise.resolve(null);
|
|
18207
|
+
}
|
|
18208
|
+
updateMeasurementFormCustomerSettings(request) {
|
|
18209
|
+
let url_ = this.baseUrl + "/measurementforms/settings/customers";
|
|
18210
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18211
|
+
const content_ = JSON.stringify(request);
|
|
18212
|
+
let options_ = {
|
|
18213
|
+
body: content_,
|
|
18214
|
+
method: "POST",
|
|
18215
|
+
headers: {
|
|
18216
|
+
"Content-Type": "application/json",
|
|
18217
|
+
"Accept": "application/json"
|
|
18218
|
+
}
|
|
18219
|
+
};
|
|
18220
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18221
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18222
|
+
}).then((_response) => {
|
|
18223
|
+
return this.processUpdateMeasurementFormCustomerSettings(_response);
|
|
18224
|
+
});
|
|
18225
|
+
}
|
|
18226
|
+
processUpdateMeasurementFormCustomerSettings(response) {
|
|
18227
|
+
const status = response.status;
|
|
18228
|
+
let _headers = {};
|
|
18229
|
+
if (response.headers && response.headers.forEach) {
|
|
18230
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18231
|
+
}
|
|
18232
|
+
;
|
|
18233
|
+
if (status === 200) {
|
|
18234
|
+
return response.text().then((_responseText) => {
|
|
18235
|
+
let result200 = null;
|
|
18236
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18237
|
+
result200 = MeasurementFormCustomerSettingsDto.fromJS(resultData200);
|
|
18238
|
+
return result200;
|
|
18239
|
+
});
|
|
18240
|
+
}
|
|
18241
|
+
else if (status !== 200 && status !== 204) {
|
|
18242
|
+
return response.text().then((_responseText) => {
|
|
18243
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18244
|
+
});
|
|
18245
|
+
}
|
|
18246
|
+
return Promise.resolve(null);
|
|
18247
|
+
}
|
|
18248
|
+
}
|
|
18072
18249
|
export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
18073
18250
|
constructor(configuration, baseUrl, http) {
|
|
18074
18251
|
super(configuration);
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v14.
|
|
3
|
+
// Generated using the NSwag toolchain v14.4.0.0 (NJsonSchema v11.3.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
6
|
|
|
@@ -16888,12 +16888,24 @@ export interface IMeasurementFormSchemasClient {
|
|
|
16888
16888
|
|
|
16889
16889
|
isMappingFromPreviousVersionRequired(schemaId: string): Promise<boolean>;
|
|
16890
16890
|
|
|
16891
|
+
/**
|
|
16892
|
+
* @deprecated
|
|
16893
|
+
*/
|
|
16891
16894
|
getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
|
|
16892
16895
|
|
|
16896
|
+
/**
|
|
16897
|
+
* @deprecated
|
|
16898
|
+
*/
|
|
16893
16899
|
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
|
|
16894
16900
|
|
|
16901
|
+
/**
|
|
16902
|
+
* @deprecated
|
|
16903
|
+
*/
|
|
16895
16904
|
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
|
|
16896
16905
|
|
|
16906
|
+
/**
|
|
16907
|
+
* @deprecated
|
|
16908
|
+
*/
|
|
16897
16909
|
updateMeasurementFormCustomerSettings(request: UpdateMeasurementFormCustomerSettings): Promise<MeasurementFormCustomerSettingsDto>;
|
|
16898
16910
|
|
|
16899
16911
|
listMeasurementFormMappingsFromSchema(targetId: string | null | undefined): Promise<MeasurementFormMappingDto[]>;
|
|
@@ -17928,6 +17940,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
17928
17940
|
return Promise.resolve<boolean>(null as any);
|
|
17929
17941
|
}
|
|
17930
17942
|
|
|
17943
|
+
/**
|
|
17944
|
+
* @deprecated
|
|
17945
|
+
*/
|
|
17931
17946
|
getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto> {
|
|
17932
17947
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings";
|
|
17933
17948
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -17964,6 +17979,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
17964
17979
|
return Promise.resolve<MeasurementFormSettingsDto>(null as any);
|
|
17965
17980
|
}
|
|
17966
17981
|
|
|
17982
|
+
/**
|
|
17983
|
+
* @deprecated
|
|
17984
|
+
*/
|
|
17967
17985
|
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto> {
|
|
17968
17986
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings";
|
|
17969
17987
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -18004,6 +18022,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
18004
18022
|
return Promise.resolve<MeasurementFormSettingsDto>(null as any);
|
|
18005
18023
|
}
|
|
18006
18024
|
|
|
18025
|
+
/**
|
|
18026
|
+
* @deprecated
|
|
18027
|
+
*/
|
|
18007
18028
|
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto> {
|
|
18008
18029
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings/customers/{id}";
|
|
18009
18030
|
if (id === undefined || id === null)
|
|
@@ -18043,6 +18064,9 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
18043
18064
|
return Promise.resolve<MeasurementFormCustomerSettingsDto>(null as any);
|
|
18044
18065
|
}
|
|
18045
18066
|
|
|
18067
|
+
/**
|
|
18068
|
+
* @deprecated
|
|
18069
|
+
*/
|
|
18046
18070
|
updateMeasurementFormCustomerSettings(request: UpdateMeasurementFormCustomerSettings): Promise<MeasurementFormCustomerSettingsDto> {
|
|
18047
18071
|
let url_ = this.baseUrl + "/measurementforms/schemas/settings/customers";
|
|
18048
18072
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -18903,7 +18927,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
18903
18927
|
url_ = url_.replace(/[?&]$/, "");
|
|
18904
18928
|
|
|
18905
18929
|
let options_: RequestInit = {
|
|
18906
|
-
method: "
|
|
18930
|
+
method: "DELETE",
|
|
18907
18931
|
headers: {
|
|
18908
18932
|
}
|
|
18909
18933
|
};
|
|
@@ -19262,6 +19286,184 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19262
19286
|
}
|
|
19263
19287
|
}
|
|
19264
19288
|
|
|
19289
|
+
export interface IMeasurementFormSettingsClient {
|
|
19290
|
+
|
|
19291
|
+
getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto>;
|
|
19292
|
+
|
|
19293
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto>;
|
|
19294
|
+
|
|
19295
|
+
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto>;
|
|
19296
|
+
|
|
19297
|
+
updateMeasurementFormCustomerSettings(request: UpdateMeasurementFormCustomerSettings): Promise<MeasurementFormCustomerSettingsDto>;
|
|
19298
|
+
}
|
|
19299
|
+
|
|
19300
|
+
export class MeasurementFormSettingsClient extends AuthorizedApiBase implements IMeasurementFormSettingsClient {
|
|
19301
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
19302
|
+
private baseUrl: string;
|
|
19303
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
19304
|
+
|
|
19305
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
19306
|
+
super(configuration);
|
|
19307
|
+
this.http = http ? http : window as any;
|
|
19308
|
+
this.baseUrl = baseUrl ?? "";
|
|
19309
|
+
}
|
|
19310
|
+
|
|
19311
|
+
getMeasurementFormSettings(): Promise<MeasurementFormSettingsDto> {
|
|
19312
|
+
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
19313
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19314
|
+
|
|
19315
|
+
let options_: RequestInit = {
|
|
19316
|
+
method: "GET",
|
|
19317
|
+
headers: {
|
|
19318
|
+
"Accept": "application/json"
|
|
19319
|
+
}
|
|
19320
|
+
};
|
|
19321
|
+
|
|
19322
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19323
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19324
|
+
}).then((_response: Response) => {
|
|
19325
|
+
return this.processGetMeasurementFormSettings(_response);
|
|
19326
|
+
});
|
|
19327
|
+
}
|
|
19328
|
+
|
|
19329
|
+
protected processGetMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
|
|
19330
|
+
const status = response.status;
|
|
19331
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19332
|
+
if (status === 200) {
|
|
19333
|
+
return response.text().then((_responseText) => {
|
|
19334
|
+
let result200: any = null;
|
|
19335
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19336
|
+
result200 = MeasurementFormSettingsDto.fromJS(resultData200);
|
|
19337
|
+
return result200;
|
|
19338
|
+
});
|
|
19339
|
+
} else if (status !== 200 && status !== 204) {
|
|
19340
|
+
return response.text().then((_responseText) => {
|
|
19341
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19342
|
+
});
|
|
19343
|
+
}
|
|
19344
|
+
return Promise.resolve<MeasurementFormSettingsDto>(null as any);
|
|
19345
|
+
}
|
|
19346
|
+
|
|
19347
|
+
updateMeasurementFormSettings(request: UpdateMeasurementFormSettings): Promise<MeasurementFormSettingsDto> {
|
|
19348
|
+
let url_ = this.baseUrl + "/measurementforms/settings";
|
|
19349
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19350
|
+
|
|
19351
|
+
const content_ = JSON.stringify(request);
|
|
19352
|
+
|
|
19353
|
+
let options_: RequestInit = {
|
|
19354
|
+
body: content_,
|
|
19355
|
+
method: "POST",
|
|
19356
|
+
headers: {
|
|
19357
|
+
"Content-Type": "application/json",
|
|
19358
|
+
"Accept": "application/json"
|
|
19359
|
+
}
|
|
19360
|
+
};
|
|
19361
|
+
|
|
19362
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19363
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19364
|
+
}).then((_response: Response) => {
|
|
19365
|
+
return this.processUpdateMeasurementFormSettings(_response);
|
|
19366
|
+
});
|
|
19367
|
+
}
|
|
19368
|
+
|
|
19369
|
+
protected processUpdateMeasurementFormSettings(response: Response): Promise<MeasurementFormSettingsDto> {
|
|
19370
|
+
const status = response.status;
|
|
19371
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19372
|
+
if (status === 200) {
|
|
19373
|
+
return response.text().then((_responseText) => {
|
|
19374
|
+
let result200: any = null;
|
|
19375
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19376
|
+
result200 = MeasurementFormSettingsDto.fromJS(resultData200);
|
|
19377
|
+
return result200;
|
|
19378
|
+
});
|
|
19379
|
+
} else if (status !== 200 && status !== 204) {
|
|
19380
|
+
return response.text().then((_responseText) => {
|
|
19381
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19382
|
+
});
|
|
19383
|
+
}
|
|
19384
|
+
return Promise.resolve<MeasurementFormSettingsDto>(null as any);
|
|
19385
|
+
}
|
|
19386
|
+
|
|
19387
|
+
getMeasurementFormCustomerSettings(id: string): Promise<MeasurementFormCustomerSettingsDto> {
|
|
19388
|
+
let url_ = this.baseUrl + "/measurementforms/settings/customers/{id}";
|
|
19389
|
+
if (id === undefined || id === null)
|
|
19390
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
19391
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19392
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19393
|
+
|
|
19394
|
+
let options_: RequestInit = {
|
|
19395
|
+
method: "GET",
|
|
19396
|
+
headers: {
|
|
19397
|
+
"Accept": "application/json"
|
|
19398
|
+
}
|
|
19399
|
+
};
|
|
19400
|
+
|
|
19401
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19402
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19403
|
+
}).then((_response: Response) => {
|
|
19404
|
+
return this.processGetMeasurementFormCustomerSettings(_response);
|
|
19405
|
+
});
|
|
19406
|
+
}
|
|
19407
|
+
|
|
19408
|
+
protected processGetMeasurementFormCustomerSettings(response: Response): Promise<MeasurementFormCustomerSettingsDto> {
|
|
19409
|
+
const status = response.status;
|
|
19410
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19411
|
+
if (status === 200) {
|
|
19412
|
+
return response.text().then((_responseText) => {
|
|
19413
|
+
let result200: any = null;
|
|
19414
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19415
|
+
result200 = MeasurementFormCustomerSettingsDto.fromJS(resultData200);
|
|
19416
|
+
return result200;
|
|
19417
|
+
});
|
|
19418
|
+
} else if (status !== 200 && status !== 204) {
|
|
19419
|
+
return response.text().then((_responseText) => {
|
|
19420
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19421
|
+
});
|
|
19422
|
+
}
|
|
19423
|
+
return Promise.resolve<MeasurementFormCustomerSettingsDto>(null as any);
|
|
19424
|
+
}
|
|
19425
|
+
|
|
19426
|
+
updateMeasurementFormCustomerSettings(request: UpdateMeasurementFormCustomerSettings): Promise<MeasurementFormCustomerSettingsDto> {
|
|
19427
|
+
let url_ = this.baseUrl + "/measurementforms/settings/customers";
|
|
19428
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19429
|
+
|
|
19430
|
+
const content_ = JSON.stringify(request);
|
|
19431
|
+
|
|
19432
|
+
let options_: RequestInit = {
|
|
19433
|
+
body: content_,
|
|
19434
|
+
method: "POST",
|
|
19435
|
+
headers: {
|
|
19436
|
+
"Content-Type": "application/json",
|
|
19437
|
+
"Accept": "application/json"
|
|
19438
|
+
}
|
|
19439
|
+
};
|
|
19440
|
+
|
|
19441
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19442
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19443
|
+
}).then((_response: Response) => {
|
|
19444
|
+
return this.processUpdateMeasurementFormCustomerSettings(_response);
|
|
19445
|
+
});
|
|
19446
|
+
}
|
|
19447
|
+
|
|
19448
|
+
protected processUpdateMeasurementFormCustomerSettings(response: Response): Promise<MeasurementFormCustomerSettingsDto> {
|
|
19449
|
+
const status = response.status;
|
|
19450
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19451
|
+
if (status === 200) {
|
|
19452
|
+
return response.text().then((_responseText) => {
|
|
19453
|
+
let result200: any = null;
|
|
19454
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19455
|
+
result200 = MeasurementFormCustomerSettingsDto.fromJS(resultData200);
|
|
19456
|
+
return result200;
|
|
19457
|
+
});
|
|
19458
|
+
} else if (status !== 200 && status !== 204) {
|
|
19459
|
+
return response.text().then((_responseText) => {
|
|
19460
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19461
|
+
});
|
|
19462
|
+
}
|
|
19463
|
+
return Promise.resolve<MeasurementFormCustomerSettingsDto>(null as any);
|
|
19464
|
+
}
|
|
19465
|
+
}
|
|
19466
|
+
|
|
19265
19467
|
export interface IMeasurementFormsInstancesClient {
|
|
19266
19468
|
|
|
19267
19469
|
listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, tenantId: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
|