@kommerz/ts-client 1.138.4 → 1.139.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/AcceptanceDocumentsApi.d.ts +64 -0
- package/dist/apis/AcceptanceDocumentsApi.js +267 -0
- package/dist/apis/AcceptancePortalDocumentsApi.d.ts +64 -0
- package/dist/apis/AcceptancePortalDocumentsApi.js +266 -0
- package/dist/apis/OffersApi.d.ts +13 -1
- package/dist/apis/OffersApi.js +49 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.js +0 -1
- package/dist/models/AcceptDto.d.ts +54 -0
- package/dist/models/AcceptDto.js +58 -0
- package/dist/models/AcceptanceDocumentDto.d.ts +115 -0
- package/dist/models/AcceptanceDocumentDto.js +90 -0
- package/dist/models/AcceptanceDocumentLogEntry.d.ts +43 -0
- package/dist/models/AcceptanceDocumentLogEntry.js +56 -0
- package/dist/models/AcceptanceDocumentLogEntryData.d.ts +43 -0
- package/dist/models/AcceptanceDocumentLogEntryData.js +57 -0
- package/dist/models/AcceptanceDocumentSenderInfo.d.ts +36 -0
- package/dist/models/AcceptanceDocumentSenderInfo.js +52 -0
- package/dist/models/AcceptancePortalAcceptDto.d.ts +54 -0
- package/dist/models/AcceptancePortalAcceptDto.js +58 -0
- package/dist/models/AcceptancePortalShareConfigDto.d.ts +72 -0
- package/dist/models/AcceptancePortalShareConfigDto.js +63 -0
- package/dist/models/DesignTemplateContextVersion.d.ts +21 -0
- package/dist/models/DesignTemplateContextVersion.js +34 -0
- package/dist/models/DesignTemplateDto.d.ts +7 -0
- package/dist/models/DesignTemplateDto.js +3 -0
- package/dist/models/DesignTemplateType.d.ts +1 -0
- package/dist/models/DesignTemplateType.js +1 -0
- package/dist/models/EntityType.d.ts +1 -0
- package/dist/models/EntityType.js +2 -1
- package/dist/models/GetAllAcceptanceDocuments200Response.d.ts +49 -0
- package/dist/models/GetAllAcceptanceDocuments200Response.js +59 -0
- package/dist/models/LogDto.d.ts +36 -0
- package/dist/models/LogDto.js +52 -0
- package/dist/models/OfferRendererDto.d.ts +82 -0
- package/dist/models/OfferRendererDto.js +69 -0
- package/dist/models/SenderInfoDto.d.ts +36 -0
- package/dist/models/SenderInfoDto.js +52 -0
- package/dist/models/ShareConfigDto.d.ts +72 -0
- package/dist/models/ShareConfigDto.js +63 -0
- package/dist/models/UsageMetricType.d.ts +31 -0
- package/dist/models/UsageMetricType.js +44 -0
- package/dist/models/UsageMonitorDto.d.ts +3 -18
- package/dist/models/UsageMonitorDto.js +4 -18
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
package/dist/apis/OffersApi.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import * as runtime from '../runtime';
|
|
12
|
-
import type { ColamdaPageable, GetAllOffers200Response, OfferDto } from '../models/index';
|
|
12
|
+
import type { AcceptancePortalShareConfigDto, ColamdaPageable, GetAllOffers200Response, OfferDto } from '../models/index';
|
|
13
13
|
export interface CreateOfferRequest {
|
|
14
14
|
offerDto: OfferDto;
|
|
15
15
|
}
|
|
@@ -26,6 +26,10 @@ export interface GetAllOffersRequest {
|
|
|
26
26
|
export interface GetOfferRequest {
|
|
27
27
|
id: string;
|
|
28
28
|
}
|
|
29
|
+
export interface ShareOfferRequest {
|
|
30
|
+
id: string;
|
|
31
|
+
acceptancePortalShareConfigDto: AcceptancePortalShareConfigDto;
|
|
32
|
+
}
|
|
29
33
|
export interface UpdateOfferRequest {
|
|
30
34
|
id: string;
|
|
31
35
|
offerDto: OfferDto;
|
|
@@ -75,6 +79,14 @@ export declare class OffersApi extends runtime.BaseAPI {
|
|
|
75
79
|
* read one offer
|
|
76
80
|
*/
|
|
77
81
|
getOffer(requestParameters: GetOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OfferDto>;
|
|
82
|
+
/**
|
|
83
|
+
* share offer
|
|
84
|
+
*/
|
|
85
|
+
shareOfferRaw(requestParameters: ShareOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OfferDto>>;
|
|
86
|
+
/**
|
|
87
|
+
* share offer
|
|
88
|
+
*/
|
|
89
|
+
shareOffer(requestParameters: ShareOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OfferDto>;
|
|
78
90
|
/**
|
|
79
91
|
* Update an offer
|
|
80
92
|
*/
|
package/dist/apis/OffersApi.js
CHANGED
|
@@ -300,6 +300,55 @@ var OffersApi = /** @class */ (function (_super) {
|
|
|
300
300
|
});
|
|
301
301
|
});
|
|
302
302
|
};
|
|
303
|
+
/**
|
|
304
|
+
* share offer
|
|
305
|
+
*/
|
|
306
|
+
OffersApi.prototype.shareOfferRaw = function (requestParameters, initOverrides) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
308
|
+
var queryParameters, headerParameters, response;
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
switch (_a.label) {
|
|
311
|
+
case 0:
|
|
312
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
313
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling shareOffer.');
|
|
314
|
+
}
|
|
315
|
+
if (requestParameters.acceptancePortalShareConfigDto === null || requestParameters.acceptancePortalShareConfigDto === undefined) {
|
|
316
|
+
throw new runtime.RequiredError('acceptancePortalShareConfigDto', 'Required parameter requestParameters.acceptancePortalShareConfigDto was null or undefined when calling shareOffer.');
|
|
317
|
+
}
|
|
318
|
+
queryParameters = {};
|
|
319
|
+
headerParameters = {};
|
|
320
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
321
|
+
return [4 /*yield*/, this.request({
|
|
322
|
+
path: "/ui/offers/v1/{id}/share".replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters.id))),
|
|
323
|
+
method: 'POST',
|
|
324
|
+
headers: headerParameters,
|
|
325
|
+
query: queryParameters,
|
|
326
|
+
body: (0, index_1.AcceptancePortalShareConfigDtoToJSON)(requestParameters.acceptancePortalShareConfigDto),
|
|
327
|
+
}, initOverrides)];
|
|
328
|
+
case 1:
|
|
329
|
+
response = _a.sent();
|
|
330
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OfferDtoFromJSON)(jsonValue); })];
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* share offer
|
|
337
|
+
*/
|
|
338
|
+
OffersApi.prototype.shareOffer = function (requestParameters, initOverrides) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
340
|
+
var response;
|
|
341
|
+
return __generator(this, function (_a) {
|
|
342
|
+
switch (_a.label) {
|
|
343
|
+
case 0: return [4 /*yield*/, this.shareOfferRaw(requestParameters, initOverrides)];
|
|
344
|
+
case 1:
|
|
345
|
+
response = _a.sent();
|
|
346
|
+
return [4 /*yield*/, response.value()];
|
|
347
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
};
|
|
303
352
|
/**
|
|
304
353
|
* Update an offer
|
|
305
354
|
*/
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './AbsenceEntriesApi';
|
|
2
2
|
export * from './AbsenceTypesApi';
|
|
3
|
+
export * from './AcceptanceDocumentsApi';
|
|
4
|
+
export * from './AcceptancePortalDocumentsApi';
|
|
3
5
|
export * from './AccessTokensApi';
|
|
4
6
|
export * from './AccountingCentersApi';
|
|
5
7
|
export * from './AccountingLedgersApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AbsenceEntriesApi"), exports);
|
|
20
20
|
__exportStar(require("./AbsenceTypesApi"), exports);
|
|
21
|
+
__exportStar(require("./AcceptanceDocumentsApi"), exports);
|
|
22
|
+
__exportStar(require("./AcceptancePortalDocumentsApi"), exports);
|
|
21
23
|
__exportStar(require("./AccessTokensApi"), exports);
|
|
22
24
|
__exportStar(require("./AccountingCentersApi"), exports);
|
|
23
25
|
__exportStar(require("./AccountingLedgersApi"), exports);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from "./src/index";
|
|
1
|
+
export * from './runtime';
|
|
2
|
+
export * from './apis/index';
|
|
3
|
+
export * from './models/index';
|
package/dist/index.js
CHANGED
|
@@ -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 AcceptDto
|
|
15
|
+
*/
|
|
16
|
+
export interface AcceptDto {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {boolean}
|
|
20
|
+
* @memberof AcceptDto
|
|
21
|
+
*/
|
|
22
|
+
accepted: boolean;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AcceptDto
|
|
27
|
+
*/
|
|
28
|
+
signatureName?: string;
|
|
29
|
+
/**
|
|
30
|
+
* signature location
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AcceptDto
|
|
33
|
+
*/
|
|
34
|
+
signatureLocation?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Date}
|
|
38
|
+
* @memberof AcceptDto
|
|
39
|
+
*/
|
|
40
|
+
signatureDate?: Date;
|
|
41
|
+
/**
|
|
42
|
+
* signature as SVG
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AcceptDto
|
|
45
|
+
*/
|
|
46
|
+
signature?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the AcceptDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfAcceptDto(value: object): boolean;
|
|
52
|
+
export declare function AcceptDtoFromJSON(json: any): AcceptDto;
|
|
53
|
+
export declare function AcceptDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptDto;
|
|
54
|
+
export declare function AcceptDtoToJSON(value?: AcceptDto | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.AcceptDtoToJSON = exports.AcceptDtoFromJSONTyped = exports.AcceptDtoFromJSON = exports.instanceOfAcceptDto = void 0;
|
|
16
|
+
var runtime_1 = require("../runtime");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the AcceptDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfAcceptDto(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "accepted" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfAcceptDto = instanceOfAcceptDto;
|
|
26
|
+
function AcceptDtoFromJSON(json) {
|
|
27
|
+
return AcceptDtoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.AcceptDtoFromJSON = AcceptDtoFromJSON;
|
|
30
|
+
function AcceptDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'accepted': json['accepted'],
|
|
36
|
+
'signatureName': !(0, runtime_1.exists)(json, 'signatureName') ? undefined : json['signatureName'],
|
|
37
|
+
'signatureLocation': !(0, runtime_1.exists)(json, 'signatureLocation') ? undefined : json['signatureLocation'],
|
|
38
|
+
'signatureDate': !(0, runtime_1.exists)(json, 'signatureDate') ? undefined : (new Date(json['signatureDate'])),
|
|
39
|
+
'signature': !(0, runtime_1.exists)(json, 'signature') ? undefined : json['signature'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.AcceptDtoFromJSONTyped = AcceptDtoFromJSONTyped;
|
|
43
|
+
function AcceptDtoToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'accepted': value.accepted,
|
|
52
|
+
'signatureName': value.signatureName,
|
|
53
|
+
'signatureLocation': value.signatureLocation,
|
|
54
|
+
'signatureDate': value.signatureDate === undefined ? undefined : (value.signatureDate.toISOString().substring(0, 10)),
|
|
55
|
+
'signature': value.signature,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.AcceptDtoToJSON = AcceptDtoToJSON;
|
|
@@ -0,0 +1,115 @@
|
|
|
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 type { AcceptanceDocumentLogEntry } from './AcceptanceDocumentLogEntry';
|
|
12
|
+
import type { AcceptanceDocumentSenderInfo } from './AcceptanceDocumentSenderInfo';
|
|
13
|
+
import type { EntityType } from './EntityType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AcceptanceDocumentDto
|
|
18
|
+
*/
|
|
19
|
+
export interface AcceptanceDocumentDto {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AcceptanceDocumentDto
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof AcceptanceDocumentDto
|
|
30
|
+
*/
|
|
31
|
+
version?: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AcceptanceDocumentDto
|
|
36
|
+
*/
|
|
37
|
+
reference?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {AcceptanceDocumentSenderInfo}
|
|
41
|
+
* @memberof AcceptanceDocumentDto
|
|
42
|
+
*/
|
|
43
|
+
senderInfo?: AcceptanceDocumentSenderInfo;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof AcceptanceDocumentDto
|
|
48
|
+
*/
|
|
49
|
+
dueDate?: Date;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof AcceptanceDocumentDto
|
|
54
|
+
*/
|
|
55
|
+
acceptedDate?: Date;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AcceptanceDocumentDto
|
|
60
|
+
*/
|
|
61
|
+
secretId?: string;
|
|
62
|
+
/**
|
|
63
|
+
* document as json
|
|
64
|
+
* @type {object}
|
|
65
|
+
* @memberof AcceptanceDocumentDto
|
|
66
|
+
*/
|
|
67
|
+
document: object;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AcceptanceDocumentDto
|
|
72
|
+
*/
|
|
73
|
+
entityId: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {EntityType}
|
|
77
|
+
* @memberof AcceptanceDocumentDto
|
|
78
|
+
*/
|
|
79
|
+
entityType: EntityType;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Array<AcceptanceDocumentLogEntry>}
|
|
83
|
+
* @memberof AcceptanceDocumentDto
|
|
84
|
+
*/
|
|
85
|
+
log: Array<AcceptanceDocumentLogEntry>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Array<string>}
|
|
89
|
+
* @memberof AcceptanceDocumentDto
|
|
90
|
+
*/
|
|
91
|
+
attachmentIds?: Array<string>;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof AcceptanceDocumentDto
|
|
96
|
+
*/
|
|
97
|
+
status: AcceptanceDocumentDtoStatusEnum;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const AcceptanceDocumentDtoStatusEnum: {
|
|
103
|
+
readonly Accepted: "ACCEPTED";
|
|
104
|
+
readonly Declined: "DECLINED";
|
|
105
|
+
readonly Open: "OPEN";
|
|
106
|
+
readonly Expired: "EXPIRED";
|
|
107
|
+
};
|
|
108
|
+
export type AcceptanceDocumentDtoStatusEnum = typeof AcceptanceDocumentDtoStatusEnum[keyof typeof AcceptanceDocumentDtoStatusEnum];
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the AcceptanceDocumentDto interface.
|
|
111
|
+
*/
|
|
112
|
+
export declare function instanceOfAcceptanceDocumentDto(value: object): boolean;
|
|
113
|
+
export declare function AcceptanceDocumentDtoFromJSON(json: any): AcceptanceDocumentDto;
|
|
114
|
+
export declare function AcceptanceDocumentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptanceDocumentDto;
|
|
115
|
+
export declare function AcceptanceDocumentDtoToJSON(value?: AcceptanceDocumentDto | null): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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.AcceptanceDocumentDtoToJSON = exports.AcceptanceDocumentDtoFromJSONTyped = exports.AcceptanceDocumentDtoFromJSON = exports.instanceOfAcceptanceDocumentDto = exports.AcceptanceDocumentDtoStatusEnum = void 0;
|
|
16
|
+
var runtime_1 = require("../runtime");
|
|
17
|
+
var AcceptanceDocumentLogEntry_1 = require("./AcceptanceDocumentLogEntry");
|
|
18
|
+
var AcceptanceDocumentSenderInfo_1 = require("./AcceptanceDocumentSenderInfo");
|
|
19
|
+
var EntityType_1 = require("./EntityType");
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
exports.AcceptanceDocumentDtoStatusEnum = {
|
|
24
|
+
Accepted: 'ACCEPTED',
|
|
25
|
+
Declined: 'DECLINED',
|
|
26
|
+
Open: 'OPEN',
|
|
27
|
+
Expired: 'EXPIRED'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AcceptanceDocumentDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAcceptanceDocumentDto(value) {
|
|
33
|
+
var isInstance = true;
|
|
34
|
+
isInstance = isInstance && "document" in value;
|
|
35
|
+
isInstance = isInstance && "entityId" in value;
|
|
36
|
+
isInstance = isInstance && "entityType" in value;
|
|
37
|
+
isInstance = isInstance && "log" in value;
|
|
38
|
+
isInstance = isInstance && "status" in value;
|
|
39
|
+
return isInstance;
|
|
40
|
+
}
|
|
41
|
+
exports.instanceOfAcceptanceDocumentDto = instanceOfAcceptanceDocumentDto;
|
|
42
|
+
function AcceptanceDocumentDtoFromJSON(json) {
|
|
43
|
+
return AcceptanceDocumentDtoFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
exports.AcceptanceDocumentDtoFromJSON = AcceptanceDocumentDtoFromJSON;
|
|
46
|
+
function AcceptanceDocumentDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if ((json === undefined) || (json === null)) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
52
|
+
'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
|
|
53
|
+
'reference': !(0, runtime_1.exists)(json, 'reference') ? undefined : json['reference'],
|
|
54
|
+
'senderInfo': !(0, runtime_1.exists)(json, 'senderInfo') ? undefined : (0, AcceptanceDocumentSenderInfo_1.AcceptanceDocumentSenderInfoFromJSON)(json['senderInfo']),
|
|
55
|
+
'dueDate': !(0, runtime_1.exists)(json, 'dueDate') ? undefined : (new Date(json['dueDate'])),
|
|
56
|
+
'acceptedDate': !(0, runtime_1.exists)(json, 'acceptedDate') ? undefined : (new Date(json['acceptedDate'])),
|
|
57
|
+
'secretId': !(0, runtime_1.exists)(json, 'secretId') ? undefined : json['secretId'],
|
|
58
|
+
'document': json['document'],
|
|
59
|
+
'entityId': json['entityId'],
|
|
60
|
+
'entityType': (0, EntityType_1.EntityTypeFromJSON)(json['entityType']),
|
|
61
|
+
'log': (json['log'].map(AcceptanceDocumentLogEntry_1.AcceptanceDocumentLogEntryFromJSON)),
|
|
62
|
+
'attachmentIds': !(0, runtime_1.exists)(json, 'attachmentIds') ? undefined : json['attachmentIds'],
|
|
63
|
+
'status': json['status'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.AcceptanceDocumentDtoFromJSONTyped = AcceptanceDocumentDtoFromJSONTyped;
|
|
67
|
+
function AcceptanceDocumentDtoToJSON(value) {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value.id,
|
|
76
|
+
'version': value.version,
|
|
77
|
+
'reference': value.reference,
|
|
78
|
+
'senderInfo': (0, AcceptanceDocumentSenderInfo_1.AcceptanceDocumentSenderInfoToJSON)(value.senderInfo),
|
|
79
|
+
'dueDate': value.dueDate === undefined ? undefined : (value.dueDate.toISOString()),
|
|
80
|
+
'acceptedDate': value.acceptedDate === undefined ? undefined : (value.acceptedDate.toISOString()),
|
|
81
|
+
'secretId': value.secretId,
|
|
82
|
+
'document': value.document,
|
|
83
|
+
'entityId': value.entityId,
|
|
84
|
+
'entityType': (0, EntityType_1.EntityTypeToJSON)(value.entityType),
|
|
85
|
+
'log': (value.log.map(AcceptanceDocumentLogEntry_1.AcceptanceDocumentLogEntryToJSON)),
|
|
86
|
+
'attachmentIds': value.attachmentIds,
|
|
87
|
+
'status': value.status,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
exports.AcceptanceDocumentDtoToJSON = AcceptanceDocumentDtoToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 type { AcceptanceDocumentLogEntryData } from './AcceptanceDocumentLogEntryData';
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AcceptanceDocumentLogEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface AcceptanceDocumentLogEntry {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof AcceptanceDocumentLogEntry
|
|
22
|
+
*/
|
|
23
|
+
date: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AcceptanceDocumentLogEntry
|
|
28
|
+
*/
|
|
29
|
+
event: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {AcceptanceDocumentLogEntryData}
|
|
33
|
+
* @memberof AcceptanceDocumentLogEntry
|
|
34
|
+
*/
|
|
35
|
+
data?: AcceptanceDocumentLogEntryData;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AcceptanceDocumentLogEntry interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAcceptanceDocumentLogEntry(value: object): boolean;
|
|
41
|
+
export declare function AcceptanceDocumentLogEntryFromJSON(json: any): AcceptanceDocumentLogEntry;
|
|
42
|
+
export declare function AcceptanceDocumentLogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptanceDocumentLogEntry;
|
|
43
|
+
export declare function AcceptanceDocumentLogEntryToJSON(value?: AcceptanceDocumentLogEntry | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.AcceptanceDocumentLogEntryToJSON = exports.AcceptanceDocumentLogEntryFromJSONTyped = exports.AcceptanceDocumentLogEntryFromJSON = exports.instanceOfAcceptanceDocumentLogEntry = void 0;
|
|
16
|
+
var runtime_1 = require("../runtime");
|
|
17
|
+
var AcceptanceDocumentLogEntryData_1 = require("./AcceptanceDocumentLogEntryData");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the AcceptanceDocumentLogEntry interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfAcceptanceDocumentLogEntry(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "date" in value;
|
|
24
|
+
isInstance = isInstance && "event" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfAcceptanceDocumentLogEntry = instanceOfAcceptanceDocumentLogEntry;
|
|
28
|
+
function AcceptanceDocumentLogEntryFromJSON(json) {
|
|
29
|
+
return AcceptanceDocumentLogEntryFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.AcceptanceDocumentLogEntryFromJSON = AcceptanceDocumentLogEntryFromJSON;
|
|
32
|
+
function AcceptanceDocumentLogEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'date': (new Date(json['date'])),
|
|
38
|
+
'event': json['event'],
|
|
39
|
+
'data': !(0, runtime_1.exists)(json, 'data') ? undefined : (0, AcceptanceDocumentLogEntryData_1.AcceptanceDocumentLogEntryDataFromJSON)(json['data']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.AcceptanceDocumentLogEntryFromJSONTyped = AcceptanceDocumentLogEntryFromJSONTyped;
|
|
43
|
+
function AcceptanceDocumentLogEntryToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'date': (value.date.toISOString()),
|
|
52
|
+
'event': value.event,
|
|
53
|
+
'data': (0, AcceptanceDocumentLogEntryData_1.AcceptanceDocumentLogEntryDataToJSON)(value.data),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.AcceptanceDocumentLogEntryToJSON = AcceptanceDocumentLogEntryToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 AcceptanceDocumentLogEntryData
|
|
15
|
+
*/
|
|
16
|
+
export interface AcceptanceDocumentLogEntryData {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof AcceptanceDocumentLogEntryData
|
|
21
|
+
*/
|
|
22
|
+
type?: AcceptanceDocumentLogEntryDataTypeEnum;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {object}
|
|
26
|
+
* @memberof AcceptanceDocumentLogEntryData
|
|
27
|
+
*/
|
|
28
|
+
payload?: object;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const AcceptanceDocumentLogEntryDataTypeEnum: {
|
|
34
|
+
readonly AcceptancePortalAcceptDto: "AcceptancePortalAcceptDto";
|
|
35
|
+
};
|
|
36
|
+
export type AcceptanceDocumentLogEntryDataTypeEnum = typeof AcceptanceDocumentLogEntryDataTypeEnum[keyof typeof AcceptanceDocumentLogEntryDataTypeEnum];
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AcceptanceDocumentLogEntryData interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAcceptanceDocumentLogEntryData(value: object): boolean;
|
|
41
|
+
export declare function AcceptanceDocumentLogEntryDataFromJSON(json: any): AcceptanceDocumentLogEntryData;
|
|
42
|
+
export declare function AcceptanceDocumentLogEntryDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptanceDocumentLogEntryData;
|
|
43
|
+
export declare function AcceptanceDocumentLogEntryDataToJSON(value?: AcceptanceDocumentLogEntryData | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.AcceptanceDocumentLogEntryDataToJSON = exports.AcceptanceDocumentLogEntryDataFromJSONTyped = exports.AcceptanceDocumentLogEntryDataFromJSON = exports.instanceOfAcceptanceDocumentLogEntryData = exports.AcceptanceDocumentLogEntryDataTypeEnum = void 0;
|
|
16
|
+
var runtime_1 = require("../runtime");
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.AcceptanceDocumentLogEntryDataTypeEnum = {
|
|
21
|
+
AcceptancePortalAcceptDto: 'AcceptancePortalAcceptDto'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AcceptanceDocumentLogEntryData interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAcceptanceDocumentLogEntryData(value) {
|
|
27
|
+
var isInstance = true;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfAcceptanceDocumentLogEntryData = instanceOfAcceptanceDocumentLogEntryData;
|
|
31
|
+
function AcceptanceDocumentLogEntryDataFromJSON(json) {
|
|
32
|
+
return AcceptanceDocumentLogEntryDataFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.AcceptanceDocumentLogEntryDataFromJSON = AcceptanceDocumentLogEntryDataFromJSON;
|
|
35
|
+
function AcceptanceDocumentLogEntryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
41
|
+
'payload': !(0, runtime_1.exists)(json, 'payload') ? undefined : json['payload'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.AcceptanceDocumentLogEntryDataFromJSONTyped = AcceptanceDocumentLogEntryDataFromJSONTyped;
|
|
45
|
+
function AcceptanceDocumentLogEntryDataToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'type': value.type,
|
|
54
|
+
'payload': value.payload,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.AcceptanceDocumentLogEntryDataToJSON = AcceptanceDocumentLogEntryDataToJSON;
|