@kommerz/ts-client 1.187.0 → 1.189.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 (43) hide show
  1. package/dist/apis/AcceptancePortalDocumentsApi.d.ts +17 -27
  2. package/dist/apis/AcceptancePortalDocumentsApi.js +30 -75
  3. package/dist/apis/AttributeTypesApi.d.ts +121 -0
  4. package/dist/apis/AttributeTypesApi.js +387 -0
  5. package/dist/apis/FileDirectorySharesApi.d.ts +26 -10
  6. package/dist/apis/FileDirectorySharesApi.js +40 -20
  7. package/dist/apis/FormsPortalApi.d.ts +12 -4
  8. package/dist/apis/FormsPortalApi.js +20 -8
  9. package/dist/apis/InvoicePortalApi.d.ts +4 -18
  10. package/dist/apis/InvoicePortalApi.js +5 -62
  11. package/dist/apis/TenantPortalApi.d.ts +35 -0
  12. package/dist/apis/TenantPortalApi.js +138 -0
  13. package/dist/apis/index.d.ts +2 -0
  14. package/dist/apis/index.js +2 -0
  15. package/dist/models/AttributeTypeDto.d.ts +51 -0
  16. package/dist/models/AttributeTypeDto.js +66 -0
  17. package/dist/models/CustomerDto.d.ts +8 -0
  18. package/dist/models/CustomerDto.js +4 -0
  19. package/dist/models/EntityAttributeDto.d.ts +49 -0
  20. package/dist/models/EntityAttributeDto.js +68 -0
  21. package/dist/models/EntityType.d.ts +1 -0
  22. package/dist/models/EntityType.js +1 -0
  23. package/dist/models/FileDetailsDto.d.ts +8 -0
  24. package/dist/models/FileDetailsDto.js +4 -0
  25. package/dist/models/GetAllAttributeTypes200Response.d.ts +42 -0
  26. package/dist/models/GetAllAttributeTypes200Response.js +59 -0
  27. package/dist/models/InvoicePortalDocumentDto.d.ts +5 -0
  28. package/dist/models/InvoicePortalDocumentDto.js +3 -0
  29. package/dist/models/Permissions.d.ts +4 -0
  30. package/dist/models/Permissions.js +4 -0
  31. package/dist/models/ProductDto.d.ts +8 -0
  32. package/dist/models/ProductDto.js +4 -0
  33. package/dist/models/PublicShareListingDto.d.ts +4 -0
  34. package/dist/models/PublicShareListingDto.js +4 -0
  35. package/dist/models/PublicTenantLegalInfoDto.d.ts +53 -0
  36. package/dist/models/PublicTenantLegalInfoDto.js +60 -0
  37. package/dist/models/PublicTenantPageDto.d.ts +52 -0
  38. package/dist/models/PublicTenantPageDto.js +65 -0
  39. package/dist/models/TenantConfigurationDto.d.ts +4 -0
  40. package/dist/models/TenantConfigurationDto.js +2 -0
  41. package/dist/models/index.d.ts +5 -0
  42. package/dist/models/index.js +5 -0
  43. package/package.json +1 -1
@@ -82,8 +82,11 @@ var FormsPortalApi = /** @class */ (function (_super) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
83
  var queryParameters, headerParameters, urlPath;
84
84
  return __generator(this, function (_a) {
85
- if (requestParameters['secretId'] == null) {
86
- throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling createFormsPortalEntry().');
85
+ if (requestParameters['handle'] == null) {
86
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling createFormsPortalEntry().');
87
+ }
88
+ if (requestParameters['authorization'] == null) {
89
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling createFormsPortalEntry().');
87
90
  }
88
91
  if (requestParameters['formsPortalSubmitDto'] == null) {
89
92
  throw new runtime.RequiredError('formsPortalSubmitDto', 'Required parameter "formsPortalSubmitDto" was null or undefined when calling createFormsPortalEntry().');
@@ -91,8 +94,11 @@ var FormsPortalApi = /** @class */ (function (_super) {
91
94
  queryParameters = {};
92
95
  headerParameters = {};
93
96
  headerParameters['Content-Type'] = 'application/json';
94
- urlPath = "/ui/forms-portal/v1/{secretId}";
95
- urlPath = urlPath.replace('{secretId}', encodeURIComponent(String(requestParameters['secretId'])));
97
+ if (requestParameters['authorization'] != null) {
98
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
99
+ }
100
+ urlPath = "/ui/tenant-portal/v1/{handle}/forms";
101
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
96
102
  return [2 /*return*/, {
97
103
  path: urlPath,
98
104
  method: 'POST',
@@ -144,13 +150,19 @@ var FormsPortalApi = /** @class */ (function (_super) {
144
150
  return __awaiter(this, void 0, void 0, function () {
145
151
  var queryParameters, headerParameters, urlPath;
146
152
  return __generator(this, function (_a) {
147
- if (requestParameters['secretId'] == null) {
148
- throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling getFormsPortalForm().');
153
+ if (requestParameters['handle'] == null) {
154
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getFormsPortalForm().');
155
+ }
156
+ if (requestParameters['authorization'] == null) {
157
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getFormsPortalForm().');
149
158
  }
150
159
  queryParameters = {};
151
160
  headerParameters = {};
152
- urlPath = "/ui/forms-portal/v1/{secretId}";
153
- urlPath = urlPath.replace('{secretId}', encodeURIComponent(String(requestParameters['secretId'])));
161
+ if (requestParameters['authorization'] != null) {
162
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
163
+ }
164
+ urlPath = "/ui/tenant-portal/v1/{handle}/forms";
165
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
154
166
  return [2 /*return*/, {
155
167
  path: urlPath,
156
168
  method: 'GET',
@@ -10,15 +10,13 @@
10
10
  */
11
11
  import * as runtime from '../runtime';
12
12
  import { type InvoicePortalDocumentDto } from '../models/InvoicePortalDocumentDto';
13
- export interface DownloadInvoicePortalDocumentRequest {
13
+ export interface GetInvoicePortalDocumentRequest {
14
14
  /**
15
- * secret id of the invoice, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
15
+ * handle of the tenant, compared case-insensitively
16
16
  */
17
- authorization: string;
18
- }
19
- export interface GetInvoicePortalDocumentRequest {
17
+ handle: string;
20
18
  /**
21
- * secret id of the invoice, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
19
+ * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
22
20
  */
23
21
  authorization: string;
24
22
  }
@@ -26,18 +24,6 @@ export interface GetInvoicePortalDocumentRequest {
26
24
  *
27
25
  */
28
26
  export declare class InvoicePortalApi extends runtime.BaseAPI {
29
- /**
30
- * Creates request options for downloadInvoicePortalDocument without sending the request
31
- */
32
- downloadInvoicePortalDocumentRequestOpts(requestParameters: DownloadInvoicePortalDocumentRequest): Promise<runtime.RequestOpts>;
33
- /**
34
- * download the PDF of the finalized invoice the secret grants access to
35
- */
36
- downloadInvoicePortalDocumentRaw(requestParameters: DownloadInvoicePortalDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
37
- /**
38
- * download the PDF of the finalized invoice the secret grants access to
39
- */
40
- downloadInvoicePortalDocument(requestParameters: DownloadInvoicePortalDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
41
27
  /**
42
28
  * Creates request options for getInvoicePortalDocument without sending the request
43
29
  */
@@ -74,67 +74,6 @@ var InvoicePortalApi = /** @class */ (function (_super) {
74
74
  function InvoicePortalApi() {
75
75
  return _super !== null && _super.apply(this, arguments) || this;
76
76
  }
77
- /**
78
- * Creates request options for downloadInvoicePortalDocument without sending the request
79
- */
80
- InvoicePortalApi.prototype.downloadInvoicePortalDocumentRequestOpts = function (requestParameters) {
81
- return __awaiter(this, void 0, void 0, function () {
82
- var queryParameters, headerParameters, urlPath;
83
- return __generator(this, function (_a) {
84
- if (requestParameters['authorization'] == null) {
85
- throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling downloadInvoicePortalDocument().');
86
- }
87
- queryParameters = {};
88
- headerParameters = {};
89
- if (requestParameters['authorization'] != null) {
90
- headerParameters['Authorization'] = String(requestParameters['authorization']);
91
- }
92
- urlPath = "/ui/invoice-portal/v1/invoice/download";
93
- return [2 /*return*/, {
94
- path: urlPath,
95
- method: 'GET',
96
- headers: headerParameters,
97
- query: queryParameters,
98
- }];
99
- });
100
- });
101
- };
102
- /**
103
- * download the PDF of the finalized invoice the secret grants access to
104
- */
105
- InvoicePortalApi.prototype.downloadInvoicePortalDocumentRaw = function (requestParameters, initOverrides) {
106
- return __awaiter(this, void 0, void 0, function () {
107
- var requestOptions, response;
108
- return __generator(this, function (_a) {
109
- switch (_a.label) {
110
- case 0: return [4 /*yield*/, this.downloadInvoicePortalDocumentRequestOpts(requestParameters)];
111
- case 1:
112
- requestOptions = _a.sent();
113
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
114
- case 2:
115
- response = _a.sent();
116
- return [2 /*return*/, new runtime.BlobApiResponse(response)];
117
- }
118
- });
119
- });
120
- };
121
- /**
122
- * download the PDF of the finalized invoice the secret grants access to
123
- */
124
- InvoicePortalApi.prototype.downloadInvoicePortalDocument = function (requestParameters, initOverrides) {
125
- return __awaiter(this, void 0, void 0, function () {
126
- var response;
127
- return __generator(this, function (_a) {
128
- switch (_a.label) {
129
- case 0: return [4 /*yield*/, this.downloadInvoicePortalDocumentRaw(requestParameters, initOverrides)];
130
- case 1:
131
- response = _a.sent();
132
- return [4 /*yield*/, response.value()];
133
- case 2: return [2 /*return*/, _a.sent()];
134
- }
135
- });
136
- });
137
- };
138
77
  /**
139
78
  * Creates request options for getInvoicePortalDocument without sending the request
140
79
  */
@@ -142,6 +81,9 @@ var InvoicePortalApi = /** @class */ (function (_super) {
142
81
  return __awaiter(this, void 0, void 0, function () {
143
82
  var queryParameters, headerParameters, urlPath;
144
83
  return __generator(this, function (_a) {
84
+ if (requestParameters['handle'] == null) {
85
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getInvoicePortalDocument().');
86
+ }
145
87
  if (requestParameters['authorization'] == null) {
146
88
  throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getInvoicePortalDocument().');
147
89
  }
@@ -150,7 +92,8 @@ var InvoicePortalApi = /** @class */ (function (_super) {
150
92
  if (requestParameters['authorization'] != null) {
151
93
  headerParameters['Authorization'] = String(requestParameters['authorization']);
152
94
  }
153
- urlPath = "/ui/invoice-portal/v1/invoice";
95
+ urlPath = "/ui/tenant-portal/v1/{handle}/invoices";
96
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
154
97
  return [2 /*return*/, {
155
98
  path: urlPath,
156
99
  method: 'GET',
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Kommerz API Specification
3
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
4
+ *
5
+ * Contact: info@kommerz.app
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import * as runtime from '../runtime';
12
+ import { type PublicTenantPageDto } from '../models/PublicTenantPageDto';
13
+ export interface GetPublicTenantPageRequest {
14
+ /**
15
+ * handle of the tenant, compared case-insensitively
16
+ */
17
+ handle: string;
18
+ }
19
+ /**
20
+ *
21
+ */
22
+ export declare class TenantPortalApi extends runtime.BaseAPI {
23
+ /**
24
+ * Creates request options for getPublicTenantPage without sending the request
25
+ */
26
+ getPublicTenantPageRequestOpts(requestParameters: GetPublicTenantPageRequest): Promise<runtime.RequestOpts>;
27
+ /**
28
+ * read the public page of a tenant
29
+ */
30
+ getPublicTenantPageRaw(requestParameters: GetPublicTenantPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicTenantPageDto>>;
31
+ /**
32
+ * read the public page of a tenant
33
+ */
34
+ getPublicTenantPage(requestParameters: GetPublicTenantPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicTenantPageDto>;
35
+ }
@@ -0,0 +1,138 @@
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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["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.TenantPortalApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var PublicTenantPageDto_1 = require("../models/PublicTenantPageDto");
69
+ /**
70
+ *
71
+ */
72
+ var TenantPortalApi = /** @class */ (function (_super) {
73
+ __extends(TenantPortalApi, _super);
74
+ function TenantPortalApi() {
75
+ return _super !== null && _super.apply(this, arguments) || this;
76
+ }
77
+ /**
78
+ * Creates request options for getPublicTenantPage without sending the request
79
+ */
80
+ TenantPortalApi.prototype.getPublicTenantPageRequestOpts = function (requestParameters) {
81
+ return __awaiter(this, void 0, void 0, function () {
82
+ var queryParameters, headerParameters, urlPath;
83
+ return __generator(this, function (_a) {
84
+ if (requestParameters['handle'] == null) {
85
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getPublicTenantPage().');
86
+ }
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ urlPath = "/ui/tenant-portal/v1/{handle}";
90
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
91
+ return [2 /*return*/, {
92
+ path: urlPath,
93
+ method: 'GET',
94
+ headers: headerParameters,
95
+ query: queryParameters,
96
+ }];
97
+ });
98
+ });
99
+ };
100
+ /**
101
+ * read the public page of a tenant
102
+ */
103
+ TenantPortalApi.prototype.getPublicTenantPageRaw = function (requestParameters, initOverrides) {
104
+ return __awaiter(this, void 0, void 0, function () {
105
+ var requestOptions, response;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0: return [4 /*yield*/, this.getPublicTenantPageRequestOpts(requestParameters)];
109
+ case 1:
110
+ requestOptions = _a.sent();
111
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
112
+ case 2:
113
+ response = _a.sent();
114
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PublicTenantPageDto_1.PublicTenantPageDtoFromJSON)(jsonValue); })];
115
+ }
116
+ });
117
+ });
118
+ };
119
+ /**
120
+ * read the public page of a tenant
121
+ */
122
+ TenantPortalApi.prototype.getPublicTenantPage = function (requestParameters, initOverrides) {
123
+ return __awaiter(this, void 0, void 0, function () {
124
+ var response;
125
+ return __generator(this, function (_a) {
126
+ switch (_a.label) {
127
+ case 0: return [4 /*yield*/, this.getPublicTenantPageRaw(requestParameters, initOverrides)];
128
+ case 1:
129
+ response = _a.sent();
130
+ return [4 /*yield*/, response.value()];
131
+ case 2: return [2 /*return*/, _a.sent()];
132
+ }
133
+ });
134
+ });
135
+ };
136
+ return TenantPortalApi;
137
+ }(runtime.BaseAPI));
138
+ exports.TenantPortalApi = TenantPortalApi;
@@ -14,6 +14,7 @@ export * from './ActivitiesApi';
14
14
  export * from './ApprovalEntriesApi';
15
15
  export * from './ApprovalEntriesApproveApi';
16
16
  export * from './ApprovalTypesApi';
17
+ export * from './AttributeTypesApi';
17
18
  export * from './BankingAccountsApi';
18
19
  export * from './BankingInstitutesApi';
19
20
  export * from './BankingRegistrationsApi';
@@ -75,6 +76,7 @@ export * from './SystemsFeaturesApi';
75
76
  export * from './SystemsTimesApi';
76
77
  export * from './TagRelationsApi';
77
78
  export * from './TagsApi';
79
+ export * from './TenantPortalApi';
78
80
  export * from './TenantsApi';
79
81
  export * from './TenantsOwnerAdditionApi';
80
82
  export * from './TenantsValidationApi';
@@ -32,6 +32,7 @@ __exportStar(require("./ActivitiesApi"), exports);
32
32
  __exportStar(require("./ApprovalEntriesApi"), exports);
33
33
  __exportStar(require("./ApprovalEntriesApproveApi"), exports);
34
34
  __exportStar(require("./ApprovalTypesApi"), exports);
35
+ __exportStar(require("./AttributeTypesApi"), exports);
35
36
  __exportStar(require("./BankingAccountsApi"), exports);
36
37
  __exportStar(require("./BankingInstitutesApi"), exports);
37
38
  __exportStar(require("./BankingRegistrationsApi"), exports);
@@ -93,6 +94,7 @@ __exportStar(require("./SystemsFeaturesApi"), exports);
93
94
  __exportStar(require("./SystemsTimesApi"), exports);
94
95
  __exportStar(require("./TagRelationsApi"), exports);
95
96
  __exportStar(require("./TagsApi"), exports);
97
+ __exportStar(require("./TenantPortalApi"), exports);
96
98
  __exportStar(require("./TenantsApi"), exports);
97
99
  __exportStar(require("./TenantsOwnerAdditionApi"), exports);
98
100
  __exportStar(require("./TenantsValidationApi"), exports);
@@ -0,0 +1,51 @@
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 { EntityType } from './EntityType';
12
+ import type { EntityAttributeDto } from './EntityAttributeDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AttributeTypeDto
17
+ */
18
+ export interface AttributeTypeDto {
19
+ /**
20
+ *
21
+ */
22
+ id?: string;
23
+ /**
24
+ *
25
+ */
26
+ version?: number;
27
+ /**
28
+ *
29
+ */
30
+ typeId: string;
31
+ /**
32
+ *
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ */
38
+ attributes?: Array<EntityAttributeDto>;
39
+ /**
40
+ * types of the entities (e.g. Customer, Product, File) the attribute type can be assigned to
41
+ */
42
+ applicableEntityTypes: Array<EntityType>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the AttributeTypeDto interface.
46
+ */
47
+ export declare function instanceOfAttributeTypeDto(value: object): value is AttributeTypeDto;
48
+ export declare function AttributeTypeDtoFromJSON(json: any): AttributeTypeDto;
49
+ export declare function AttributeTypeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeTypeDto;
50
+ export declare function AttributeTypeDtoToJSON(json: any): AttributeTypeDto;
51
+ export declare function AttributeTypeDtoToJSONTyped(value?: AttributeTypeDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfAttributeTypeDto = instanceOfAttributeTypeDto;
16
+ exports.AttributeTypeDtoFromJSON = AttributeTypeDtoFromJSON;
17
+ exports.AttributeTypeDtoFromJSONTyped = AttributeTypeDtoFromJSONTyped;
18
+ exports.AttributeTypeDtoToJSON = AttributeTypeDtoToJSON;
19
+ exports.AttributeTypeDtoToJSONTyped = AttributeTypeDtoToJSONTyped;
20
+ var EntityType_1 = require("./EntityType");
21
+ var EntityAttributeDto_1 = require("./EntityAttributeDto");
22
+ /**
23
+ * Check if a given object implements the AttributeTypeDto interface.
24
+ */
25
+ function instanceOfAttributeTypeDto(value) {
26
+ if (!('typeId' in value) || value['typeId'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('applicableEntityTypes' in value) || value['applicableEntityTypes'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function AttributeTypeDtoFromJSON(json) {
35
+ return AttributeTypeDtoFromJSONTyped(json, false);
36
+ }
37
+ function AttributeTypeDtoFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'] == null ? undefined : json['id'],
43
+ 'version': json['version'] == null ? undefined : json['version'],
44
+ 'typeId': json['typeId'],
45
+ 'name': json['name'],
46
+ 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(EntityAttributeDto_1.EntityAttributeDtoFromJSON)),
47
+ 'applicableEntityTypes': (json['applicableEntityTypes'].map(EntityType_1.EntityTypeFromJSON)),
48
+ };
49
+ }
50
+ function AttributeTypeDtoToJSON(json) {
51
+ return AttributeTypeDtoToJSONTyped(json, false);
52
+ }
53
+ function AttributeTypeDtoToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'id': value['id'],
60
+ 'version': value['version'],
61
+ 'typeId': value['typeId'],
62
+ 'name': value['name'],
63
+ 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(EntityAttributeDto_1.EntityAttributeDtoToJSON)),
64
+ 'applicableEntityTypes': (value['applicableEntityTypes'].map(EntityType_1.EntityTypeToJSON)),
65
+ };
66
+ }
@@ -79,6 +79,14 @@ export interface CustomerDto {
79
79
  *
80
80
  */
81
81
  readonly deleted?: boolean;
82
+ /**
83
+ *
84
+ */
85
+ attributeTypeId?: string;
86
+ /**
87
+ * Values for the attributes of the attribute type, keyed by the attribute key
88
+ */
89
+ typeAttributes?: any;
82
90
  }
83
91
  /**
84
92
  * @export
@@ -60,6 +60,8 @@ function CustomerDtoFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'shippingAddress': json['shippingAddress'] == null ? undefined : (0, AddressDto_1.AddressDtoFromJSON)(json['shippingAddress']),
61
61
  'legalEntity': json['legalEntity'],
62
62
  'deleted': json['deleted'] == null ? undefined : json['deleted'],
63
+ 'attributeTypeId': json['attributeTypeId'] == null ? undefined : json['attributeTypeId'],
64
+ 'typeAttributes': json['typeAttributes'] == null ? undefined : json['typeAttributes'],
63
65
  };
64
66
  }
65
67
  function CustomerDtoToJSON(json) {
@@ -84,5 +86,7 @@ function CustomerDtoToJSONTyped(value, ignoreDiscriminator) {
84
86
  'invoiceAddress': (0, AddressDto_1.AddressDtoToJSON)(value['invoiceAddress']),
85
87
  'shippingAddress': (0, AddressDto_1.AddressDtoToJSON)(value['shippingAddress']),
86
88
  'legalEntity': value['legalEntity'],
89
+ 'attributeTypeId': value['attributeTypeId'],
90
+ 'typeAttributes': value['typeAttributes'],
87
91
  };
88
92
  }
@@ -0,0 +1,49 @@
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
+ * definition of an attribute whose value is stored in the typeAttributes of an entity
13
+ * @export
14
+ * @interface EntityAttributeDto
15
+ */
16
+ export interface EntityAttributeDto {
17
+ /**
18
+ *
19
+ */
20
+ key: string;
21
+ /**
22
+ *
23
+ */
24
+ label?: string;
25
+ /**
26
+ *
27
+ */
28
+ valueType: EntityAttributeDtoValueTypeEnum;
29
+ }
30
+ /**
31
+ * @export
32
+ */
33
+ export declare const EntityAttributeDtoValueTypeEnum: {
34
+ readonly String: "STRING";
35
+ readonly Date: "DATE";
36
+ readonly Number: "NUMBER";
37
+ readonly Boolean: "BOOLEAN";
38
+ readonly Text: "TEXT";
39
+ readonly Html: "HTML";
40
+ };
41
+ export type EntityAttributeDtoValueTypeEnum = typeof EntityAttributeDtoValueTypeEnum[keyof typeof EntityAttributeDtoValueTypeEnum];
42
+ /**
43
+ * Check if a given object implements the EntityAttributeDto interface.
44
+ */
45
+ export declare function instanceOfEntityAttributeDto(value: object): value is EntityAttributeDto;
46
+ export declare function EntityAttributeDtoFromJSON(json: any): EntityAttributeDto;
47
+ export declare function EntityAttributeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityAttributeDto;
48
+ export declare function EntityAttributeDtoToJSON(json: any): EntityAttributeDto;
49
+ export declare function EntityAttributeDtoToJSONTyped(value?: EntityAttributeDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.EntityAttributeDtoValueTypeEnum = void 0;
16
+ exports.instanceOfEntityAttributeDto = instanceOfEntityAttributeDto;
17
+ exports.EntityAttributeDtoFromJSON = EntityAttributeDtoFromJSON;
18
+ exports.EntityAttributeDtoFromJSONTyped = EntityAttributeDtoFromJSONTyped;
19
+ exports.EntityAttributeDtoToJSON = EntityAttributeDtoToJSON;
20
+ exports.EntityAttributeDtoToJSONTyped = EntityAttributeDtoToJSONTyped;
21
+ /**
22
+ * @export
23
+ */
24
+ exports.EntityAttributeDtoValueTypeEnum = {
25
+ String: 'STRING',
26
+ Date: 'DATE',
27
+ Number: 'NUMBER',
28
+ Boolean: 'BOOLEAN',
29
+ Text: 'TEXT',
30
+ Html: 'HTML',
31
+ };
32
+ /**
33
+ * Check if a given object implements the EntityAttributeDto interface.
34
+ */
35
+ function instanceOfEntityAttributeDto(value) {
36
+ if (!('key' in value) || value['key'] === undefined)
37
+ return false;
38
+ if (!('valueType' in value) || value['valueType'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function EntityAttributeDtoFromJSON(json) {
43
+ return EntityAttributeDtoFromJSONTyped(json, false);
44
+ }
45
+ function EntityAttributeDtoFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'key': json['key'],
51
+ 'label': json['label'] == null ? undefined : json['label'],
52
+ 'valueType': json['valueType'],
53
+ };
54
+ }
55
+ function EntityAttributeDtoToJSON(json) {
56
+ return EntityAttributeDtoToJSONTyped(json, false);
57
+ }
58
+ function EntityAttributeDtoToJSONTyped(value, ignoreDiscriminator) {
59
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'key': value['key'],
65
+ 'label': value['label'],
66
+ 'valueType': value['valueType'],
67
+ };
68
+ }