@kommerz/ts-client 1.138.5 → 1.140.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.
Files changed (61) hide show
  1. package/dist/apis/AcceptanceDocumentsApi.d.ts +64 -0
  2. package/dist/apis/AcceptanceDocumentsApi.js +267 -0
  3. package/dist/apis/AcceptancePortalDocumentsApi.d.ts +64 -0
  4. package/dist/apis/AcceptancePortalDocumentsApi.js +266 -0
  5. package/dist/apis/OffersApi.d.ts +13 -1
  6. package/dist/apis/OffersApi.js +49 -0
  7. package/dist/apis/TagRelationsApi.d.ts +63 -0
  8. package/dist/apis/TagRelationsApi.js +264 -0
  9. package/dist/apis/TagsApi.d.ts +86 -0
  10. package/dist/apis/TagsApi.js +357 -0
  11. package/dist/apis/index.d.ts +4 -0
  12. package/dist/apis/index.js +4 -0
  13. package/dist/index.d.ts +3 -4
  14. package/dist/index.js +0 -1
  15. package/dist/models/AcceptDto.d.ts +54 -0
  16. package/dist/models/AcceptDto.js +58 -0
  17. package/dist/models/AcceptanceDocumentDto.d.ts +115 -0
  18. package/dist/models/AcceptanceDocumentDto.js +90 -0
  19. package/dist/models/AcceptanceDocumentLogEntry.d.ts +43 -0
  20. package/dist/models/AcceptanceDocumentLogEntry.js +56 -0
  21. package/dist/models/AcceptanceDocumentLogEntryData.d.ts +43 -0
  22. package/dist/models/AcceptanceDocumentLogEntryData.js +57 -0
  23. package/dist/models/AcceptanceDocumentSenderInfo.d.ts +36 -0
  24. package/dist/models/AcceptanceDocumentSenderInfo.js +52 -0
  25. package/dist/models/AcceptancePortalAcceptDto.d.ts +54 -0
  26. package/dist/models/AcceptancePortalAcceptDto.js +58 -0
  27. package/dist/models/AcceptancePortalShareConfigDto.d.ts +72 -0
  28. package/dist/models/AcceptancePortalShareConfigDto.js +63 -0
  29. package/dist/models/CreateTagRelationsDto.d.ts +48 -0
  30. package/dist/models/CreateTagRelationsDto.js +57 -0
  31. package/dist/models/DesignTemplateContextVersion.d.ts +21 -0
  32. package/dist/models/DesignTemplateContextVersion.js +34 -0
  33. package/dist/models/DesignTemplateDto.d.ts +7 -0
  34. package/dist/models/DesignTemplateDto.js +3 -0
  35. package/dist/models/DesignTemplateType.d.ts +1 -0
  36. package/dist/models/DesignTemplateType.js +1 -0
  37. package/dist/models/EntityType.d.ts +1 -0
  38. package/dist/models/EntityType.js +2 -1
  39. package/dist/models/GetAllAcceptanceDocuments200Response.d.ts +49 -0
  40. package/dist/models/GetAllAcceptanceDocuments200Response.js +59 -0
  41. package/dist/models/GetAllTags200Response.d.ts +49 -0
  42. package/dist/models/GetAllTags200Response.js +59 -0
  43. package/dist/models/LogDto.d.ts +36 -0
  44. package/dist/models/LogDto.js +52 -0
  45. package/dist/models/OfferRendererDto.d.ts +82 -0
  46. package/dist/models/OfferRendererDto.js +69 -0
  47. package/dist/models/SenderInfoDto.d.ts +36 -0
  48. package/dist/models/SenderInfoDto.js +52 -0
  49. package/dist/models/ShareConfigDto.d.ts +72 -0
  50. package/dist/models/ShareConfigDto.js +63 -0
  51. package/dist/models/TagDto.d.ts +48 -0
  52. package/dist/models/TagDto.js +57 -0
  53. package/dist/models/TagRelationDto.d.ts +42 -0
  54. package/dist/models/TagRelationDto.js +55 -0
  55. package/dist/models/UsageMetricType.d.ts +31 -0
  56. package/dist/models/UsageMetricType.js +44 -0
  57. package/dist/models/UsageMonitorDto.d.ts +3 -18
  58. package/dist/models/UsageMonitorDto.js +4 -18
  59. package/dist/models/index.d.ts +14 -0
  60. package/dist/models/index.js +14 -0
  61. package/package.json +1 -1
@@ -0,0 +1,69 @@
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.OfferRendererDtoToJSON = exports.OfferRendererDtoFromJSONTyped = exports.OfferRendererDtoFromJSON = exports.instanceOfOfferRendererDto = void 0;
16
+ var runtime_1 = require("../runtime");
17
+ var AmountDto_1 = require("./AmountDto");
18
+ var InvoiceItemDto_1 = require("./InvoiceItemDto");
19
+ var InvoiceTaxItemDto_1 = require("./InvoiceTaxItemDto");
20
+ var InvoiceTextFieldsDto_1 = require("./InvoiceTextFieldsDto");
21
+ /**
22
+ * Check if a given object implements the OfferRendererDto interface.
23
+ */
24
+ function instanceOfOfferRendererDto(value) {
25
+ var isInstance = true;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfOfferRendererDto = instanceOfOfferRendererDto;
29
+ function OfferRendererDtoFromJSON(json) {
30
+ return OfferRendererDtoFromJSONTyped(json, false);
31
+ }
32
+ exports.OfferRendererDtoFromJSON = OfferRendererDtoFromJSON;
33
+ function OfferRendererDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'offerEmail': !(0, runtime_1.exists)(json, 'offerEmail') ? undefined : json['offerEmail'],
39
+ 'offerAddress': !(0, runtime_1.exists)(json, 'offerAddress') ? undefined : json['offerAddress'],
40
+ 'offerDate': !(0, runtime_1.exists)(json, 'offerDate') ? undefined : (new Date(json['offerDate'])),
41
+ 'offerNumber': !(0, runtime_1.exists)(json, 'offerNumber') ? undefined : json['offerNumber'],
42
+ 'subject': !(0, runtime_1.exists)(json, 'subject') ? undefined : json['subject'],
43
+ 'total': !(0, runtime_1.exists)(json, 'total') ? undefined : (0, AmountDto_1.AmountDtoFromJSON)(json['total']),
44
+ 'offerItems': !(0, runtime_1.exists)(json, 'offerItems') ? undefined : (json['offerItems'].map(InvoiceItemDto_1.InvoiceItemDtoFromJSON)),
45
+ 'offerTaxItems': !(0, runtime_1.exists)(json, 'offerTaxItems') ? undefined : (json['offerTaxItems'].map(InvoiceTaxItemDto_1.InvoiceTaxItemDtoFromJSON)),
46
+ 'textFields': !(0, runtime_1.exists)(json, 'textFields') ? undefined : (0, InvoiceTextFieldsDto_1.InvoiceTextFieldsDtoFromJSON)(json['textFields']),
47
+ };
48
+ }
49
+ exports.OfferRendererDtoFromJSONTyped = OfferRendererDtoFromJSONTyped;
50
+ function OfferRendererDtoToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'offerEmail': value.offerEmail,
59
+ 'offerAddress': value.offerAddress,
60
+ 'offerDate': value.offerDate === undefined ? undefined : (value.offerDate.toISOString().substring(0, 10)),
61
+ 'offerNumber': value.offerNumber,
62
+ 'subject': value.subject,
63
+ 'total': (0, AmountDto_1.AmountDtoToJSON)(value.total),
64
+ 'offerItems': value.offerItems === undefined ? undefined : (value.offerItems.map(InvoiceItemDto_1.InvoiceItemDtoToJSON)),
65
+ 'offerTaxItems': value.offerTaxItems === undefined ? undefined : (value.offerTaxItems.map(InvoiceTaxItemDto_1.InvoiceTaxItemDtoToJSON)),
66
+ 'textFields': (0, InvoiceTextFieldsDto_1.InvoiceTextFieldsDtoToJSON)(value.textFields),
67
+ };
68
+ }
69
+ exports.OfferRendererDtoToJSON = OfferRendererDtoToJSON;
@@ -0,0 +1,36 @@
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 SenderInfoDto
15
+ */
16
+ export interface SenderInfoDto {
17
+ /**
18
+ *
19
+ * @type {string}
20
+ * @memberof SenderInfoDto
21
+ */
22
+ name: string;
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof SenderInfoDto
27
+ */
28
+ email: string;
29
+ }
30
+ /**
31
+ * Check if a given object implements the SenderInfoDto interface.
32
+ */
33
+ export declare function instanceOfSenderInfoDto(value: object): boolean;
34
+ export declare function SenderInfoDtoFromJSON(json: any): SenderInfoDto;
35
+ export declare function SenderInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SenderInfoDto;
36
+ export declare function SenderInfoDtoToJSON(value?: SenderInfoDto | null): any;
@@ -0,0 +1,52 @@
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.SenderInfoDtoToJSON = exports.SenderInfoDtoFromJSONTyped = exports.SenderInfoDtoFromJSON = exports.instanceOfSenderInfoDto = void 0;
16
+ /**
17
+ * Check if a given object implements the SenderInfoDto interface.
18
+ */
19
+ function instanceOfSenderInfoDto(value) {
20
+ var isInstance = true;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "email" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfSenderInfoDto = instanceOfSenderInfoDto;
26
+ function SenderInfoDtoFromJSON(json) {
27
+ return SenderInfoDtoFromJSONTyped(json, false);
28
+ }
29
+ exports.SenderInfoDtoFromJSON = SenderInfoDtoFromJSON;
30
+ function SenderInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'],
36
+ 'email': json['email'],
37
+ };
38
+ }
39
+ exports.SenderInfoDtoFromJSONTyped = SenderInfoDtoFromJSONTyped;
40
+ function SenderInfoDtoToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'name': value.name,
49
+ 'email': value.email,
50
+ };
51
+ }
52
+ exports.SenderInfoDtoToJSON = SenderInfoDtoToJSON;
@@ -0,0 +1,72 @@
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 ShareConfigDto
15
+ */
16
+ export interface ShareConfigDto {
17
+ /**
18
+ *
19
+ * @type {string}
20
+ * @memberof ShareConfigDto
21
+ */
22
+ recipientEmailAddress?: string;
23
+ /**
24
+ * email subject
25
+ * @type {string}
26
+ * @memberof ShareConfigDto
27
+ */
28
+ subject?: string;
29
+ /**
30
+ * reference/subject used in the acceptance portal
31
+ * @type {string}
32
+ * @memberof ShareConfigDto
33
+ */
34
+ reference?: string;
35
+ /**
36
+ *
37
+ * @type {boolean}
38
+ * @memberof ShareConfigDto
39
+ */
40
+ enableAcceptancePortal?: boolean;
41
+ /**
42
+ * custom due date - backend may use fallback to due date of entity if not set
43
+ * @type {Date}
44
+ * @memberof ShareConfigDto
45
+ */
46
+ acceptanceDueDate?: Date;
47
+ /**
48
+ * body part that will be put into the template
49
+ * @type {string}
50
+ * @memberof ShareConfigDto
51
+ */
52
+ bodyTemplate?: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ShareConfigDto
57
+ */
58
+ designTemplateId?: string;
59
+ /**
60
+ *
61
+ * @type {Array<string>}
62
+ * @memberof ShareConfigDto
63
+ */
64
+ attachmentIds?: Array<string>;
65
+ }
66
+ /**
67
+ * Check if a given object implements the ShareConfigDto interface.
68
+ */
69
+ export declare function instanceOfShareConfigDto(value: object): boolean;
70
+ export declare function ShareConfigDtoFromJSON(json: any): ShareConfigDto;
71
+ export declare function ShareConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareConfigDto;
72
+ export declare function ShareConfigDtoToJSON(value?: ShareConfigDto | null): any;
@@ -0,0 +1,63 @@
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.ShareConfigDtoToJSON = exports.ShareConfigDtoFromJSONTyped = exports.ShareConfigDtoFromJSON = exports.instanceOfShareConfigDto = void 0;
16
+ var runtime_1 = require("../runtime");
17
+ /**
18
+ * Check if a given object implements the ShareConfigDto interface.
19
+ */
20
+ function instanceOfShareConfigDto(value) {
21
+ var isInstance = true;
22
+ return isInstance;
23
+ }
24
+ exports.instanceOfShareConfigDto = instanceOfShareConfigDto;
25
+ function ShareConfigDtoFromJSON(json) {
26
+ return ShareConfigDtoFromJSONTyped(json, false);
27
+ }
28
+ exports.ShareConfigDtoFromJSON = ShareConfigDtoFromJSON;
29
+ function ShareConfigDtoFromJSONTyped(json, ignoreDiscriminator) {
30
+ if ((json === undefined) || (json === null)) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'recipientEmailAddress': !(0, runtime_1.exists)(json, 'recipientEmailAddress') ? undefined : json['recipientEmailAddress'],
35
+ 'subject': !(0, runtime_1.exists)(json, 'subject') ? undefined : json['subject'],
36
+ 'reference': !(0, runtime_1.exists)(json, 'reference') ? undefined : json['reference'],
37
+ 'enableAcceptancePortal': !(0, runtime_1.exists)(json, 'enableAcceptancePortal') ? undefined : json['enableAcceptancePortal'],
38
+ 'acceptanceDueDate': !(0, runtime_1.exists)(json, 'acceptanceDueDate') ? undefined : (new Date(json['acceptanceDueDate'])),
39
+ 'bodyTemplate': !(0, runtime_1.exists)(json, 'bodyTemplate') ? undefined : json['bodyTemplate'],
40
+ 'designTemplateId': !(0, runtime_1.exists)(json, 'designTemplateId') ? undefined : json['designTemplateId'],
41
+ 'attachmentIds': !(0, runtime_1.exists)(json, 'attachmentIds') ? undefined : json['attachmentIds'],
42
+ };
43
+ }
44
+ exports.ShareConfigDtoFromJSONTyped = ShareConfigDtoFromJSONTyped;
45
+ function ShareConfigDtoToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'recipientEmailAddress': value.recipientEmailAddress,
54
+ 'subject': value.subject,
55
+ 'reference': value.reference,
56
+ 'enableAcceptancePortal': value.enableAcceptancePortal,
57
+ 'acceptanceDueDate': value.acceptanceDueDate === undefined ? undefined : (value.acceptanceDueDate.toISOString().substring(0, 10)),
58
+ 'bodyTemplate': value.bodyTemplate,
59
+ 'designTemplateId': value.designTemplateId,
60
+ 'attachmentIds': value.attachmentIds,
61
+ };
62
+ }
63
+ exports.ShareConfigDtoToJSON = ShareConfigDtoToJSON;
@@ -0,0 +1,48 @@
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 TagDto
15
+ */
16
+ export interface TagDto {
17
+ /**
18
+ *
19
+ * @type {string}
20
+ * @memberof TagDto
21
+ */
22
+ id?: string;
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof TagDto
27
+ */
28
+ version?: number;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof TagDto
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TagDto
39
+ */
40
+ color: string;
41
+ }
42
+ /**
43
+ * Check if a given object implements the TagDto interface.
44
+ */
45
+ export declare function instanceOfTagDto(value: object): boolean;
46
+ export declare function TagDtoFromJSON(json: any): TagDto;
47
+ export declare function TagDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagDto;
48
+ export declare function TagDtoToJSON(value?: TagDto | 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.TagDtoToJSON = exports.TagDtoFromJSONTyped = exports.TagDtoFromJSON = exports.instanceOfTagDto = void 0;
16
+ var runtime_1 = require("../runtime");
17
+ /**
18
+ * Check if a given object implements the TagDto interface.
19
+ */
20
+ function instanceOfTagDto(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "color" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfTagDto = instanceOfTagDto;
27
+ function TagDtoFromJSON(json) {
28
+ return TagDtoFromJSONTyped(json, false);
29
+ }
30
+ exports.TagDtoFromJSON = TagDtoFromJSON;
31
+ function TagDtoFromJSONTyped(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
+ 'name': json['name'],
39
+ 'color': json['color'],
40
+ };
41
+ }
42
+ exports.TagDtoFromJSONTyped = TagDtoFromJSONTyped;
43
+ function TagDtoToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'id': value.id,
52
+ 'version': value.version,
53
+ 'name': value.name,
54
+ 'color': value.color,
55
+ };
56
+ }
57
+ exports.TagDtoToJSON = TagDtoToJSON;
@@ -0,0 +1,42 @@
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 TagRelationDto
15
+ */
16
+ export interface TagRelationDto {
17
+ /**
18
+ *
19
+ * @type {string}
20
+ * @memberof TagRelationDto
21
+ */
22
+ tagId: string;
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof TagRelationDto
27
+ */
28
+ entityId: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof TagRelationDto
33
+ */
34
+ entityType: string;
35
+ }
36
+ /**
37
+ * Check if a given object implements the TagRelationDto interface.
38
+ */
39
+ export declare function instanceOfTagRelationDto(value: object): boolean;
40
+ export declare function TagRelationDtoFromJSON(json: any): TagRelationDto;
41
+ export declare function TagRelationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagRelationDto;
42
+ export declare function TagRelationDtoToJSON(value?: TagRelationDto | null): any;
@@ -0,0 +1,55 @@
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.TagRelationDtoToJSON = exports.TagRelationDtoFromJSONTyped = exports.TagRelationDtoFromJSON = exports.instanceOfTagRelationDto = void 0;
16
+ /**
17
+ * Check if a given object implements the TagRelationDto interface.
18
+ */
19
+ function instanceOfTagRelationDto(value) {
20
+ var isInstance = true;
21
+ isInstance = isInstance && "tagId" in value;
22
+ isInstance = isInstance && "entityId" in value;
23
+ isInstance = isInstance && "entityType" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfTagRelationDto = instanceOfTagRelationDto;
27
+ function TagRelationDtoFromJSON(json) {
28
+ return TagRelationDtoFromJSONTyped(json, false);
29
+ }
30
+ exports.TagRelationDtoFromJSON = TagRelationDtoFromJSON;
31
+ function TagRelationDtoFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'tagId': json['tagId'],
37
+ 'entityId': json['entityId'],
38
+ 'entityType': json['entityType'],
39
+ };
40
+ }
41
+ exports.TagRelationDtoFromJSONTyped = TagRelationDtoFromJSONTyped;
42
+ function TagRelationDtoToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'tagId': value.tagId,
51
+ 'entityId': value.entityId,
52
+ 'entityType': value.entityType,
53
+ };
54
+ }
55
+ exports.TagRelationDtoToJSON = TagRelationDtoToJSON;
@@ -0,0 +1,31 @@
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
+ */
15
+ export declare const UsageMetricType: {
16
+ readonly NumInvoices: "NUM_INVOICES";
17
+ readonly NumUsers: "NUM_USERS";
18
+ readonly NumWikis: "NUM_WIKIS";
19
+ readonly NumKanbanboards: "NUM_KANBANBOARDS";
20
+ readonly NumBankAccounts: "NUM_BANK_ACCOUNTS";
21
+ readonly NumBankRegistrations: "NUM_BANK_REGISTRATIONS";
22
+ readonly VolStorage: "VOL_STORAGE";
23
+ readonly NumDunningLetters: "NUM_DUNNING_LETTERS";
24
+ readonly NumDeliveryNotes: "NUM_DELIVERY_NOTES";
25
+ readonly NumContracts: "NUM_CONTRACTS";
26
+ readonly NumOffers: "NUM_OFFERS";
27
+ };
28
+ export type UsageMetricType = typeof UsageMetricType[keyof typeof UsageMetricType];
29
+ export declare function UsageMetricTypeFromJSON(json: any): UsageMetricType;
30
+ export declare function UsageMetricTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageMetricType;
31
+ export declare function UsageMetricTypeToJSON(value?: UsageMetricType | null): any;
@@ -0,0 +1,44 @@
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.UsageMetricTypeToJSON = exports.UsageMetricTypeFromJSONTyped = exports.UsageMetricTypeFromJSON = exports.UsageMetricType = void 0;
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ exports.UsageMetricType = {
21
+ NumInvoices: 'NUM_INVOICES',
22
+ NumUsers: 'NUM_USERS',
23
+ NumWikis: 'NUM_WIKIS',
24
+ NumKanbanboards: 'NUM_KANBANBOARDS',
25
+ NumBankAccounts: 'NUM_BANK_ACCOUNTS',
26
+ NumBankRegistrations: 'NUM_BANK_REGISTRATIONS',
27
+ VolStorage: 'VOL_STORAGE',
28
+ NumDunningLetters: 'NUM_DUNNING_LETTERS',
29
+ NumDeliveryNotes: 'NUM_DELIVERY_NOTES',
30
+ NumContracts: 'NUM_CONTRACTS',
31
+ NumOffers: 'NUM_OFFERS'
32
+ };
33
+ function UsageMetricTypeFromJSON(json) {
34
+ return UsageMetricTypeFromJSONTyped(json, false);
35
+ }
36
+ exports.UsageMetricTypeFromJSON = UsageMetricTypeFromJSON;
37
+ function UsageMetricTypeFromJSONTyped(json, ignoreDiscriminator) {
38
+ return json;
39
+ }
40
+ exports.UsageMetricTypeFromJSONTyped = UsageMetricTypeFromJSONTyped;
41
+ function UsageMetricTypeToJSON(value) {
42
+ return value;
43
+ }
44
+ exports.UsageMetricTypeToJSON = UsageMetricTypeToJSON;
@@ -8,6 +8,7 @@
8
8
  * https://openapi-generator.tech
9
9
  * Do not edit the class manually.
10
10
  */
11
+ import type { UsageMetricType } from './UsageMetricType';
11
12
  /**
12
13
  *
13
14
  * @export
@@ -16,10 +17,10 @@
16
17
  export interface UsageMonitorDto {
17
18
  /**
18
19
  *
19
- * @type {string}
20
+ * @type {UsageMetricType}
20
21
  * @memberof UsageMonitorDto
21
22
  */
22
- metric?: UsageMonitorDtoMetricEnum;
23
+ metric?: UsageMetricType;
23
24
  /**
24
25
  *
25
26
  * @type {string}
@@ -45,22 +46,6 @@ export interface UsageMonitorDto {
45
46
  */
46
47
  used?: number;
47
48
  }
48
- /**
49
- * @export
50
- */
51
- export declare const UsageMonitorDtoMetricEnum: {
52
- readonly NumInvoices: "NUM_INVOICES";
53
- readonly NumUsers: "NUM_USERS";
54
- readonly NumWikis: "NUM_WIKIS";
55
- readonly NumKanbanboards: "NUM_KANBANBOARDS";
56
- readonly NumBankAccounts: "NUM_BANK_ACCOUNTS";
57
- readonly NumBankRegistrations: "NUM_BANK_REGISTRATIONS";
58
- readonly VolStorage: "VOL_STORAGE";
59
- readonly NumDunningLetters: "NUM_DUNNING_LETTERS";
60
- readonly NumDeliveryNotes: "NUM_DELIVERY_NOTES";
61
- readonly NumContracts: "NUM_CONTRACTS";
62
- };
63
- export type UsageMonitorDtoMetricEnum = typeof UsageMonitorDtoMetricEnum[keyof typeof UsageMonitorDtoMetricEnum];
64
49
  /**
65
50
  * @export
66
51
  */
@@ -12,23 +12,9 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.UsageMonitorDtoToJSON = exports.UsageMonitorDtoFromJSONTyped = exports.UsageMonitorDtoFromJSON = exports.instanceOfUsageMonitorDto = exports.UsageMonitorDtoReferenceEnum = exports.UsageMonitorDtoMeterEnum = exports.UsageMonitorDtoMetricEnum = void 0;
15
+ exports.UsageMonitorDtoToJSON = exports.UsageMonitorDtoFromJSONTyped = exports.UsageMonitorDtoFromJSON = exports.instanceOfUsageMonitorDto = exports.UsageMonitorDtoReferenceEnum = exports.UsageMonitorDtoMeterEnum = void 0;
16
16
  var runtime_1 = require("../runtime");
17
- /**
18
- * @export
19
- */
20
- exports.UsageMonitorDtoMetricEnum = {
21
- NumInvoices: 'NUM_INVOICES',
22
- NumUsers: 'NUM_USERS',
23
- NumWikis: 'NUM_WIKIS',
24
- NumKanbanboards: 'NUM_KANBANBOARDS',
25
- NumBankAccounts: 'NUM_BANK_ACCOUNTS',
26
- NumBankRegistrations: 'NUM_BANK_REGISTRATIONS',
27
- VolStorage: 'VOL_STORAGE',
28
- NumDunningLetters: 'NUM_DUNNING_LETTERS',
29
- NumDeliveryNotes: 'NUM_DELIVERY_NOTES',
30
- NumContracts: 'NUM_CONTRACTS'
31
- };
17
+ var UsageMetricType_1 = require("./UsageMetricType");
32
18
  /**
33
19
  * @export
34
20
  */
@@ -61,7 +47,7 @@ function UsageMonitorDtoFromJSONTyped(json, ignoreDiscriminator) {
61
47
  return json;
62
48
  }
63
49
  return {
64
- 'metric': !(0, runtime_1.exists)(json, 'metric') ? undefined : json['metric'],
50
+ 'metric': !(0, runtime_1.exists)(json, 'metric') ? undefined : (0, UsageMetricType_1.UsageMetricTypeFromJSON)(json['metric']),
65
51
  'meter': !(0, runtime_1.exists)(json, 'meter') ? undefined : json['meter'],
66
52
  'reference': !(0, runtime_1.exists)(json, 'reference') ? undefined : json['reference'],
67
53
  'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
@@ -77,7 +63,7 @@ function UsageMonitorDtoToJSON(value) {
77
63
  return null;
78
64
  }
79
65
  return {
80
- 'metric': value.metric,
66
+ 'metric': (0, UsageMetricType_1.UsageMetricTypeToJSON)(value.metric),
81
67
  'meter': value.meter,
82
68
  'reference': value.reference,
83
69
  'limit': value.limit,