@kommerz/ts-client 1.136.2 → 1.137.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/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/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
|
@@ -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.ContractsApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var ContractsApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(ContractsApi, _super);
|
|
74
|
+
function ContractsApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Create a new Contract
|
|
79
|
+
*/
|
|
80
|
+
ContractsApi.prototype.createContractRaw = 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.contractDto === null || requestParameters.contractDto === undefined) {
|
|
87
|
+
throw new runtime.RequiredError('contractDto', 'Required parameter requestParameters.contractDto was null or undefined when calling createContract.');
|
|
88
|
+
}
|
|
89
|
+
queryParameters = {};
|
|
90
|
+
headerParameters = {};
|
|
91
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
92
|
+
return [4 /*yield*/, this.request({
|
|
93
|
+
path: "/ui/contracts/v1/contracts",
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: (0, index_1.ContractDtoToJSON)(requestParameters.contractDto),
|
|
98
|
+
}, initOverrides)];
|
|
99
|
+
case 1:
|
|
100
|
+
response = _a.sent();
|
|
101
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContractDtoFromJSON)(jsonValue); })];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Create a new Contract
|
|
108
|
+
*/
|
|
109
|
+
ContractsApi.prototype.createContract = 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.createContractRaw(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
|
|
125
|
+
*/
|
|
126
|
+
ContractsApi.prototype.deleteContractRaw = 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 deleteContract.');
|
|
134
|
+
}
|
|
135
|
+
queryParameters = {};
|
|
136
|
+
headerParameters = {};
|
|
137
|
+
return [4 /*yield*/, this.request({
|
|
138
|
+
path: "/ui/contracts/v1/contracts/{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
|
|
152
|
+
*/
|
|
153
|
+
ContractsApi.prototype.deleteContract = 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.deleteContractRaw(requestParameters, initOverrides)];
|
|
158
|
+
case 1:
|
|
159
|
+
_a.sent();
|
|
160
|
+
return [2 /*return*/];
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* get all Contracts
|
|
167
|
+
*/
|
|
168
|
+
ContractsApi.prototype.getAllContractsRaw = 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 getAllContracts.');
|
|
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/contracts",
|
|
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.GetAllContracts200ResponseFromJSON)(jsonValue); })];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* get all Contracts
|
|
200
|
+
*/
|
|
201
|
+
ContractsApi.prototype.getAllContracts = 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.getAllContractsRaw(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
|
|
217
|
+
*/
|
|
218
|
+
ContractsApi.prototype.getContractRaw = 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 getContract.');
|
|
226
|
+
}
|
|
227
|
+
queryParameters = {};
|
|
228
|
+
headerParameters = {};
|
|
229
|
+
return [4 /*yield*/, this.request({
|
|
230
|
+
path: "/ui/contracts/v1/contracts/{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.ContractDtoFromJSON)(jsonValue); })];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* read one contract
|
|
244
|
+
*/
|
|
245
|
+
ContractsApi.prototype.getContract = 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.getContractRaw(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
|
|
261
|
+
*/
|
|
262
|
+
ContractsApi.prototype.updateContractRaw = 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 updateContract.');
|
|
270
|
+
}
|
|
271
|
+
if (requestParameters.contractDto === null || requestParameters.contractDto === undefined) {
|
|
272
|
+
throw new runtime.RequiredError('contractDto', 'Required parameter requestParameters.contractDto was null or undefined when calling updateContract.');
|
|
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/contracts/{id}".replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters.id))),
|
|
282
|
+
method: 'PUT',
|
|
283
|
+
headers: headerParameters,
|
|
284
|
+
query: queryParameters,
|
|
285
|
+
body: (0, index_1.ContractDtoToJSON)(requestParameters.contractDto),
|
|
286
|
+
}, initOverrides)];
|
|
287
|
+
case 1:
|
|
288
|
+
response = _a.sent();
|
|
289
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContractDtoFromJSON)(jsonValue); })];
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* Update a contract
|
|
296
|
+
*/
|
|
297
|
+
ContractsApi.prototype.updateContract = 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.updateContractRaw(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 ContractsApi;
|
|
312
|
+
}(runtime.BaseAPI));
|
|
313
|
+
exports.ContractsApi = ContractsApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ export * from './CalendarEntriesApi';
|
|
|
19
19
|
export * from './CalendarEntryTypesApi';
|
|
20
20
|
export * from './CommentsApi';
|
|
21
21
|
export * from './ConfigurationsApi';
|
|
22
|
+
export * from './ContractStatusApi';
|
|
23
|
+
export * from './ContractTypesApi';
|
|
24
|
+
export * from './ContractsApi';
|
|
22
25
|
export * from './CustomersApi';
|
|
23
26
|
export * from './CustomersBankdetailsApi';
|
|
24
27
|
export * from './DeliveryNotesApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -37,6 +37,9 @@ __exportStar(require("./CalendarEntriesApi"), exports);
|
|
|
37
37
|
__exportStar(require("./CalendarEntryTypesApi"), exports);
|
|
38
38
|
__exportStar(require("./CommentsApi"), exports);
|
|
39
39
|
__exportStar(require("./ConfigurationsApi"), exports);
|
|
40
|
+
__exportStar(require("./ContractStatusApi"), exports);
|
|
41
|
+
__exportStar(require("./ContractTypesApi"), exports);
|
|
42
|
+
__exportStar(require("./ContractsApi"), exports);
|
|
40
43
|
__exportStar(require("./CustomersApi"), exports);
|
|
41
44
|
__exportStar(require("./CustomersBankdetailsApi"), exports);
|
|
42
45
|
__exportStar(require("./DeliveryNotesApi"), exports);
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface ContractDto
|
|
15
|
+
*/
|
|
16
|
+
export interface ContractDto {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof ContractDto
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof ContractDto
|
|
27
|
+
*/
|
|
28
|
+
version?: number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ContractDto
|
|
33
|
+
*/
|
|
34
|
+
contractNumber?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ContractDto
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ContractDto
|
|
45
|
+
*/
|
|
46
|
+
notes?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Date}
|
|
50
|
+
* @memberof ContractDto
|
|
51
|
+
*/
|
|
52
|
+
startDate?: Date;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @memberof ContractDto
|
|
57
|
+
*/
|
|
58
|
+
endDate?: Date;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ContractDto
|
|
63
|
+
*/
|
|
64
|
+
legalEntityId: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ContractDto
|
|
69
|
+
*/
|
|
70
|
+
contractStatusId?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ContractDto
|
|
75
|
+
*/
|
|
76
|
+
contractTypeId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Values for the attributes of the contract type
|
|
79
|
+
* @type {object}
|
|
80
|
+
* @memberof ContractDto
|
|
81
|
+
*/
|
|
82
|
+
typeAttributes?: object;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<string>}
|
|
86
|
+
* @memberof ContractDto
|
|
87
|
+
*/
|
|
88
|
+
attachedFileIds?: Array<string>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the ContractDto interface.
|
|
92
|
+
*/
|
|
93
|
+
export declare function instanceOfContractDto(value: object): boolean;
|
|
94
|
+
export declare function ContractDtoFromJSON(json: any): ContractDto;
|
|
95
|
+
export declare function ContractDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractDto;
|
|
96
|
+
export declare function ContractDtoToJSON(value?: ContractDto | null): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ContractDtoToJSON = exports.ContractDtoFromJSONTyped = exports.ContractDtoFromJSON = exports.instanceOfContractDto = void 0;
|
|
16
|
+
var runtime_1 = require("../runtime");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ContractDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfContractDto(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "legalEntityId" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfContractDto = instanceOfContractDto;
|
|
26
|
+
function ContractDtoFromJSON(json) {
|
|
27
|
+
return ContractDtoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ContractDtoFromJSON = ContractDtoFromJSON;
|
|
30
|
+
function ContractDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
36
|
+
'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
|
|
37
|
+
'contractNumber': !(0, runtime_1.exists)(json, 'contractNumber') ? undefined : json['contractNumber'],
|
|
38
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
39
|
+
'notes': !(0, runtime_1.exists)(json, 'notes') ? undefined : json['notes'],
|
|
40
|
+
'startDate': !(0, runtime_1.exists)(json, 'startDate') ? undefined : (new Date(json['startDate'])),
|
|
41
|
+
'endDate': !(0, runtime_1.exists)(json, 'endDate') ? undefined : (new Date(json['endDate'])),
|
|
42
|
+
'legalEntityId': json['legalEntityId'],
|
|
43
|
+
'contractStatusId': !(0, runtime_1.exists)(json, 'contractStatusId') ? undefined : json['contractStatusId'],
|
|
44
|
+
'contractTypeId': !(0, runtime_1.exists)(json, 'contractTypeId') ? undefined : json['contractTypeId'],
|
|
45
|
+
'typeAttributes': !(0, runtime_1.exists)(json, 'typeAttributes') ? undefined : json['typeAttributes'],
|
|
46
|
+
'attachedFileIds': !(0, runtime_1.exists)(json, 'attachedFileIds') ? undefined : json['attachedFileIds'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.ContractDtoFromJSONTyped = ContractDtoFromJSONTyped;
|
|
50
|
+
function ContractDtoToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value.id,
|
|
59
|
+
'version': value.version,
|
|
60
|
+
'contractNumber': value.contractNumber,
|
|
61
|
+
'name': value.name,
|
|
62
|
+
'notes': value.notes,
|
|
63
|
+
'startDate': value.startDate === undefined ? undefined : (value.startDate.toISOString().substring(0, 10)),
|
|
64
|
+
'endDate': value.endDate === undefined ? undefined : (value.endDate.toISOString().substring(0, 10)),
|
|
65
|
+
'legalEntityId': value.legalEntityId,
|
|
66
|
+
'contractStatusId': value.contractStatusId,
|
|
67
|
+
'contractTypeId': value.contractTypeId,
|
|
68
|
+
'typeAttributes': value.typeAttributes,
|
|
69
|
+
'attachedFileIds': value.attachedFileIds,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
exports.ContractDtoToJSON = ContractDtoToJSON;
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface ContractStatusDto
|
|
15
|
+
*/
|
|
16
|
+
export interface ContractStatusDto {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof ContractStatusDto
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof ContractStatusDto
|
|
27
|
+
*/
|
|
28
|
+
version?: number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ContractStatusDto
|
|
33
|
+
*/
|
|
34
|
+
statusId: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ContractStatusDto
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ContractStatusDto
|
|
45
|
+
*/
|
|
46
|
+
description?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ContractStatusDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfContractStatusDto(value: object): boolean;
|
|
52
|
+
export declare function ContractStatusDtoFromJSON(json: any): ContractStatusDto;
|
|
53
|
+
export declare function ContractStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractStatusDto;
|
|
54
|
+
export declare function ContractStatusDtoToJSON(value?: ContractStatusDto | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ContractStatusDtoToJSON = exports.ContractStatusDtoFromJSONTyped = exports.ContractStatusDtoFromJSON = exports.instanceOfContractStatusDto = void 0;
|
|
16
|
+
var runtime_1 = require("../runtime");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ContractStatusDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfContractStatusDto(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "statusId" in value;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfContractStatusDto = instanceOfContractStatusDto;
|
|
27
|
+
function ContractStatusDtoFromJSON(json) {
|
|
28
|
+
return ContractStatusDtoFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ContractStatusDtoFromJSON = ContractStatusDtoFromJSON;
|
|
31
|
+
function ContractStatusDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
37
|
+
'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
|
|
38
|
+
'statusId': json['statusId'],
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.ContractStatusDtoFromJSONTyped = ContractStatusDtoFromJSONTyped;
|
|
44
|
+
function ContractStatusDtoToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value.id,
|
|
53
|
+
'version': value.version,
|
|
54
|
+
'statusId': value.statusId,
|
|
55
|
+
'name': value.name,
|
|
56
|
+
'description': value.description,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.ContractStatusDtoToJSON = ContractStatusDtoToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface ContractTypeAttributeDto
|
|
15
|
+
*/
|
|
16
|
+
export interface ContractTypeAttributeDto {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof ContractTypeAttributeDto
|
|
21
|
+
*/
|
|
22
|
+
key: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ContractTypeAttributeDto
|
|
27
|
+
*/
|
|
28
|
+
valueType: ContractTypeAttributeDtoValueTypeEnum;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const ContractTypeAttributeDtoValueTypeEnum: {
|
|
34
|
+
readonly String: "STRING";
|
|
35
|
+
readonly Date: "DATE";
|
|
36
|
+
readonly Number: "NUMBER";
|
|
37
|
+
readonly Boolean: "BOOLEAN";
|
|
38
|
+
};
|
|
39
|
+
export type ContractTypeAttributeDtoValueTypeEnum = typeof ContractTypeAttributeDtoValueTypeEnum[keyof typeof ContractTypeAttributeDtoValueTypeEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ContractTypeAttributeDto interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfContractTypeAttributeDto(value: object): boolean;
|
|
44
|
+
export declare function ContractTypeAttributeDtoFromJSON(json: any): ContractTypeAttributeDto;
|
|
45
|
+
export declare function ContractTypeAttributeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractTypeAttributeDto;
|
|
46
|
+
export declare function ContractTypeAttributeDtoToJSON(value?: ContractTypeAttributeDto | null): any;
|