@kommerz/ts-client 1.136.2 → 1.138.0
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/dist/apis/AbsenceEntriesApi.d.ts +2 -2
- package/dist/apis/AbsenceEntriesApi.js +2 -2
- package/dist/apis/ContractStatusApi.d.ts +75 -0
- package/dist/apis/ContractStatusApi.js +313 -0
- package/dist/apis/ContractTypesApi.d.ts +75 -0
- package/dist/apis/ContractTypesApi.js +313 -0
- package/dist/apis/ContractsApi.d.ts +75 -0
- package/dist/apis/ContractsApi.js +313 -0
- package/dist/apis/InboxEmailsApi.d.ts +11 -0
- package/dist/apis/InboxEmailsApi.js +46 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/models/ContractDto.d.ts +96 -0
- package/dist/models/ContractDto.js +72 -0
- package/dist/models/ContractStatusDto.d.ts +54 -0
- package/dist/models/ContractStatusDto.js +59 -0
- package/dist/models/ContractTypeAttributeDto.d.ts +46 -0
- package/dist/models/ContractTypeAttributeDto.js +61 -0
- package/dist/models/ContractTypeDto.d.ts +55 -0
- package/dist/models/ContractTypeDto.js +60 -0
- package/dist/models/EmailDto.d.ts +33 -0
- package/dist/models/EmailDto.js +17 -1
- package/dist/models/EntityType.d.ts +3 -0
- package/dist/models/EntityType.js +3 -0
- package/dist/models/GetAllContractStatus200Response.d.ts +49 -0
- package/dist/models/GetAllContractStatus200Response.js +59 -0
- package/dist/models/GetAllContractTypes200Response.d.ts +49 -0
- package/dist/models/GetAllContractTypes200Response.js +59 -0
- package/dist/models/GetAllContracts200Response.d.ts +49 -0
- package/dist/models/GetAllContracts200Response.js +59 -0
- package/dist/models/IdentifierType.d.ts +1 -0
- package/dist/models/IdentifierType.js +2 -1
- package/dist/models/UsageMonitorDto.d.ts +1 -0
- package/dist/models/UsageMonitorDto.js +2 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
|
@@ -53,11 +53,11 @@ export declare class AbsenceEntriesApi extends runtime.BaseAPI {
|
|
|
53
53
|
*/
|
|
54
54
|
addAttachment(requestParameters: AddAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileDto>;
|
|
55
55
|
/**
|
|
56
|
-
* Create new
|
|
56
|
+
* Create new absence entry
|
|
57
57
|
*/
|
|
58
58
|
createAbsenceEntryRaw(requestParameters: CreateAbsenceEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AbsenceEntryDto>>>;
|
|
59
59
|
/**
|
|
60
|
-
* Create new
|
|
60
|
+
* Create new absence entry
|
|
61
61
|
*/
|
|
62
62
|
createAbsenceEntry(requestParameters: CreateAbsenceEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AbsenceEntryDto>>;
|
|
63
63
|
/**
|
|
@@ -136,7 +136,7 @@ var AbsenceEntriesApi = /** @class */ (function (_super) {
|
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
138
|
/**
|
|
139
|
-
* Create new
|
|
139
|
+
* Create new absence entry
|
|
140
140
|
*/
|
|
141
141
|
AbsenceEntriesApi.prototype.createAbsenceEntryRaw = function (requestParameters, initOverrides) {
|
|
142
142
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -165,7 +165,7 @@ var AbsenceEntriesApi = /** @class */ (function (_super) {
|
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
/**
|
|
168
|
-
* Create new
|
|
168
|
+
* Create new absence entry
|
|
169
169
|
*/
|
|
170
170
|
AbsenceEntriesApi.prototype.createAbsenceEntry = function (requestParameters, initOverrides) {
|
|
171
171
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kommerz API Specification
|
|
3
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
4
|
+
*
|
|
5
|
+
* Contact: info@kommerz.app
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
+
* https://openapi-generator.tech
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import * as runtime from '../runtime';
|
|
12
|
+
import type { ColamdaPageable, ContractStatusDto, GetAllContractStatus200Response } from '../models/index';
|
|
13
|
+
export interface CreateContractStatusRequest {
|
|
14
|
+
contractStatusDto: ContractStatusDto;
|
|
15
|
+
}
|
|
16
|
+
export interface DeleteContractStatusRequest {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetAllContractStatusRequest {
|
|
20
|
+
pageable: ColamdaPageable;
|
|
21
|
+
filter?: Array<string>;
|
|
22
|
+
}
|
|
23
|
+
export interface GetContractStatusRequest {
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
26
|
+
export interface UpdateContractStatusRequest {
|
|
27
|
+
id: string;
|
|
28
|
+
contractStatusDto: ContractStatusDto;
|
|
29
|
+
force?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class ContractStatusApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* Create a new Contract status
|
|
37
|
+
*/
|
|
38
|
+
createContractStatusRaw(requestParameters: CreateContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractStatusDto>>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a new Contract status
|
|
41
|
+
*/
|
|
42
|
+
createContractStatus(requestParameters: CreateContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractStatusDto>;
|
|
43
|
+
/**
|
|
44
|
+
* delete single contract status
|
|
45
|
+
*/
|
|
46
|
+
deleteContractStatusRaw(requestParameters: DeleteContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
47
|
+
/**
|
|
48
|
+
* delete single contract status
|
|
49
|
+
*/
|
|
50
|
+
deleteContractStatus(requestParameters: DeleteContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* get all Contract status
|
|
53
|
+
*/
|
|
54
|
+
getAllContractStatusRaw(requestParameters: GetAllContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllContractStatus200Response>>;
|
|
55
|
+
/**
|
|
56
|
+
* get all Contract status
|
|
57
|
+
*/
|
|
58
|
+
getAllContractStatus(requestParameters: GetAllContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllContractStatus200Response>;
|
|
59
|
+
/**
|
|
60
|
+
* read one contract status
|
|
61
|
+
*/
|
|
62
|
+
getContractStatusRaw(requestParameters: GetContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractStatusDto>>;
|
|
63
|
+
/**
|
|
64
|
+
* read one contract status
|
|
65
|
+
*/
|
|
66
|
+
getContractStatus(requestParameters: GetContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractStatusDto>;
|
|
67
|
+
/**
|
|
68
|
+
* Update a contract status
|
|
69
|
+
*/
|
|
70
|
+
updateContractStatusRaw(requestParameters: UpdateContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractStatusDto>>;
|
|
71
|
+
/**
|
|
72
|
+
* Update a contract status
|
|
73
|
+
*/
|
|
74
|
+
updateContractStatus(requestParameters: UpdateContractStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractStatusDto>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Kommerz API Specification
|
|
6
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
7
|
+
*
|
|
8
|
+
* Contact: info@kommerz.app
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
40
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.ContractStatusApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var ContractStatusApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(ContractStatusApi, _super);
|
|
74
|
+
function ContractStatusApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Create a new Contract status
|
|
79
|
+
*/
|
|
80
|
+
ContractStatusApi.prototype.createContractStatusRaw = function (requestParameters, initOverrides) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
var queryParameters, headerParameters, response;
|
|
83
|
+
return __generator(this, function (_a) {
|
|
84
|
+
switch (_a.label) {
|
|
85
|
+
case 0:
|
|
86
|
+
if (requestParameters.contractStatusDto === null || requestParameters.contractStatusDto === undefined) {
|
|
87
|
+
throw new runtime.RequiredError('contractStatusDto', 'Required parameter requestParameters.contractStatusDto was null or undefined when calling createContractStatus.');
|
|
88
|
+
}
|
|
89
|
+
queryParameters = {};
|
|
90
|
+
headerParameters = {};
|
|
91
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
92
|
+
return [4 /*yield*/, this.request({
|
|
93
|
+
path: "/ui/contracts/v1/contract-status",
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: (0, index_1.ContractStatusDtoToJSON)(requestParameters.contractStatusDto),
|
|
98
|
+
}, initOverrides)];
|
|
99
|
+
case 1:
|
|
100
|
+
response = _a.sent();
|
|
101
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContractStatusDtoFromJSON)(jsonValue); })];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Create a new Contract status
|
|
108
|
+
*/
|
|
109
|
+
ContractStatusApi.prototype.createContractStatus = function (requestParameters, initOverrides) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
111
|
+
var response;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4 /*yield*/, this.createContractStatusRaw(requestParameters, initOverrides)];
|
|
115
|
+
case 1:
|
|
116
|
+
response = _a.sent();
|
|
117
|
+
return [4 /*yield*/, response.value()];
|
|
118
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* delete single contract status
|
|
125
|
+
*/
|
|
126
|
+
ContractStatusApi.prototype.deleteContractStatusRaw = function (requestParameters, initOverrides) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var queryParameters, headerParameters, response;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0:
|
|
132
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
133
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling deleteContractStatus.');
|
|
134
|
+
}
|
|
135
|
+
queryParameters = {};
|
|
136
|
+
headerParameters = {};
|
|
137
|
+
return [4 /*yield*/, this.request({
|
|
138
|
+
path: "/ui/contracts/v1/contract-status/{id}".replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters.id))),
|
|
139
|
+
method: 'DELETE',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides)];
|
|
143
|
+
case 1:
|
|
144
|
+
response = _a.sent();
|
|
145
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* delete single contract status
|
|
152
|
+
*/
|
|
153
|
+
ContractStatusApi.prototype.deleteContractStatus = function (requestParameters, initOverrides) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
155
|
+
return __generator(this, function (_a) {
|
|
156
|
+
switch (_a.label) {
|
|
157
|
+
case 0: return [4 /*yield*/, this.deleteContractStatusRaw(requestParameters, initOverrides)];
|
|
158
|
+
case 1:
|
|
159
|
+
_a.sent();
|
|
160
|
+
return [2 /*return*/];
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* get all Contract status
|
|
167
|
+
*/
|
|
168
|
+
ContractStatusApi.prototype.getAllContractStatusRaw = function (requestParameters, initOverrides) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
170
|
+
var queryParameters, headerParameters, response;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0:
|
|
174
|
+
if (requestParameters.pageable === null || requestParameters.pageable === undefined) {
|
|
175
|
+
throw new runtime.RequiredError('pageable', 'Required parameter requestParameters.pageable was null or undefined when calling getAllContractStatus.');
|
|
176
|
+
}
|
|
177
|
+
queryParameters = {};
|
|
178
|
+
if (requestParameters.pageable !== undefined) {
|
|
179
|
+
queryParameters['pageable'] = requestParameters.pageable;
|
|
180
|
+
}
|
|
181
|
+
if (requestParameters.filter) {
|
|
182
|
+
queryParameters['filter'] = requestParameters.filter;
|
|
183
|
+
}
|
|
184
|
+
headerParameters = {};
|
|
185
|
+
return [4 /*yield*/, this.request({
|
|
186
|
+
path: "/ui/contracts/v1/contract-status",
|
|
187
|
+
method: 'GET',
|
|
188
|
+
headers: headerParameters,
|
|
189
|
+
query: queryParameters,
|
|
190
|
+
}, initOverrides)];
|
|
191
|
+
case 1:
|
|
192
|
+
response = _a.sent();
|
|
193
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllContractStatus200ResponseFromJSON)(jsonValue); })];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* get all Contract status
|
|
200
|
+
*/
|
|
201
|
+
ContractStatusApi.prototype.getAllContractStatus = function (requestParameters, initOverrides) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
203
|
+
var response;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0: return [4 /*yield*/, this.getAllContractStatusRaw(requestParameters, initOverrides)];
|
|
207
|
+
case 1:
|
|
208
|
+
response = _a.sent();
|
|
209
|
+
return [4 /*yield*/, response.value()];
|
|
210
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* read one contract status
|
|
217
|
+
*/
|
|
218
|
+
ContractStatusApi.prototype.getContractStatusRaw = function (requestParameters, initOverrides) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
220
|
+
var queryParameters, headerParameters, response;
|
|
221
|
+
return __generator(this, function (_a) {
|
|
222
|
+
switch (_a.label) {
|
|
223
|
+
case 0:
|
|
224
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
225
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getContractStatus.');
|
|
226
|
+
}
|
|
227
|
+
queryParameters = {};
|
|
228
|
+
headerParameters = {};
|
|
229
|
+
return [4 /*yield*/, this.request({
|
|
230
|
+
path: "/ui/contracts/v1/contract-status/{id}".replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters.id))),
|
|
231
|
+
method: 'GET',
|
|
232
|
+
headers: headerParameters,
|
|
233
|
+
query: queryParameters,
|
|
234
|
+
}, initOverrides)];
|
|
235
|
+
case 1:
|
|
236
|
+
response = _a.sent();
|
|
237
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContractStatusDtoFromJSON)(jsonValue); })];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* read one contract status
|
|
244
|
+
*/
|
|
245
|
+
ContractStatusApi.prototype.getContractStatus = function (requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
247
|
+
var response;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0: return [4 /*yield*/, this.getContractStatusRaw(requestParameters, initOverrides)];
|
|
251
|
+
case 1:
|
|
252
|
+
response = _a.sent();
|
|
253
|
+
return [4 /*yield*/, response.value()];
|
|
254
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Update a contract status
|
|
261
|
+
*/
|
|
262
|
+
ContractStatusApi.prototype.updateContractStatusRaw = function (requestParameters, initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
var queryParameters, headerParameters, response;
|
|
265
|
+
return __generator(this, function (_a) {
|
|
266
|
+
switch (_a.label) {
|
|
267
|
+
case 0:
|
|
268
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
269
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling updateContractStatus.');
|
|
270
|
+
}
|
|
271
|
+
if (requestParameters.contractStatusDto === null || requestParameters.contractStatusDto === undefined) {
|
|
272
|
+
throw new runtime.RequiredError('contractStatusDto', 'Required parameter requestParameters.contractStatusDto was null or undefined when calling updateContractStatus.');
|
|
273
|
+
}
|
|
274
|
+
queryParameters = {};
|
|
275
|
+
if (requestParameters.force !== undefined) {
|
|
276
|
+
queryParameters['force'] = requestParameters.force;
|
|
277
|
+
}
|
|
278
|
+
headerParameters = {};
|
|
279
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
280
|
+
return [4 /*yield*/, this.request({
|
|
281
|
+
path: "/ui/contracts/v1/contract-status/{id}".replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters.id))),
|
|
282
|
+
method: 'PUT',
|
|
283
|
+
headers: headerParameters,
|
|
284
|
+
query: queryParameters,
|
|
285
|
+
body: (0, index_1.ContractStatusDtoToJSON)(requestParameters.contractStatusDto),
|
|
286
|
+
}, initOverrides)];
|
|
287
|
+
case 1:
|
|
288
|
+
response = _a.sent();
|
|
289
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContractStatusDtoFromJSON)(jsonValue); })];
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* Update a contract status
|
|
296
|
+
*/
|
|
297
|
+
ContractStatusApi.prototype.updateContractStatus = function (requestParameters, initOverrides) {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
299
|
+
var response;
|
|
300
|
+
return __generator(this, function (_a) {
|
|
301
|
+
switch (_a.label) {
|
|
302
|
+
case 0: return [4 /*yield*/, this.updateContractStatusRaw(requestParameters, initOverrides)];
|
|
303
|
+
case 1:
|
|
304
|
+
response = _a.sent();
|
|
305
|
+
return [4 /*yield*/, response.value()];
|
|
306
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
};
|
|
311
|
+
return ContractStatusApi;
|
|
312
|
+
}(runtime.BaseAPI));
|
|
313
|
+
exports.ContractStatusApi = ContractStatusApi;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kommerz API Specification
|
|
3
|
+
* API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
|
|
4
|
+
*
|
|
5
|
+
* Contact: info@kommerz.app
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
+
* https://openapi-generator.tech
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import * as runtime from '../runtime';
|
|
12
|
+
import type { ColamdaPageable, ContractTypeDto, GetAllContractTypes200Response } from '../models/index';
|
|
13
|
+
export interface CreateContractTypeRequest {
|
|
14
|
+
contractTypeDto: ContractTypeDto;
|
|
15
|
+
}
|
|
16
|
+
export interface DeleteContractTypeRequest {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetAllContractTypesRequest {
|
|
20
|
+
pageable: ColamdaPageable;
|
|
21
|
+
filter?: Array<string>;
|
|
22
|
+
}
|
|
23
|
+
export interface GetContractTypeRequest {
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
26
|
+
export interface UpdateContractTypeRequest {
|
|
27
|
+
id: string;
|
|
28
|
+
contractTypeDto: ContractTypeDto;
|
|
29
|
+
force?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class ContractTypesApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* Create a new Contract type
|
|
37
|
+
*/
|
|
38
|
+
createContractTypeRaw(requestParameters: CreateContractTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractTypeDto>>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a new Contract type
|
|
41
|
+
*/
|
|
42
|
+
createContractType(requestParameters: CreateContractTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractTypeDto>;
|
|
43
|
+
/**
|
|
44
|
+
* delete single contract type
|
|
45
|
+
*/
|
|
46
|
+
deleteContractTypeRaw(requestParameters: DeleteContractTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
47
|
+
/**
|
|
48
|
+
* delete single contract type
|
|
49
|
+
*/
|
|
50
|
+
deleteContractType(requestParameters: DeleteContractTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* get all Contract types
|
|
53
|
+
*/
|
|
54
|
+
getAllContractTypesRaw(requestParameters: GetAllContractTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllContractTypes200Response>>;
|
|
55
|
+
/**
|
|
56
|
+
* get all Contract types
|
|
57
|
+
*/
|
|
58
|
+
getAllContractTypes(requestParameters: GetAllContractTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllContractTypes200Response>;
|
|
59
|
+
/**
|
|
60
|
+
* read one contract type
|
|
61
|
+
*/
|
|
62
|
+
getContractTypeRaw(requestParameters: GetContractTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractTypeDto>>;
|
|
63
|
+
/**
|
|
64
|
+
* read one contract type
|
|
65
|
+
*/
|
|
66
|
+
getContractType(requestParameters: GetContractTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractTypeDto>;
|
|
67
|
+
/**
|
|
68
|
+
* Update a contract type
|
|
69
|
+
*/
|
|
70
|
+
updateContractTypeRaw(requestParameters: UpdateContractTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractTypeDto>>;
|
|
71
|
+
/**
|
|
72
|
+
* Update a contract type
|
|
73
|
+
*/
|
|
74
|
+
updateContractType(requestParameters: UpdateContractTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractTypeDto>;
|
|
75
|
+
}
|