@kommerz/ts-client 1.188.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
@@ -14,29 +14,27 @@ import { type AcceptancePortalAcceptDto } from '../models/AcceptancePortalAccept
14
14
  import { type FileDto } from '../models/FileDto';
15
15
  export interface AcceptAcceptanceDocumentRequest {
16
16
  /**
17
- * secret access id
17
+ * handle of the tenant, compared case-insensitively
18
18
  */
19
- secretId: string;
19
+ handle: string;
20
+ /**
21
+ * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
22
+ */
23
+ authorization: string;
20
24
  /**
21
25
  *
22
26
  */
23
27
  acceptancePortalAcceptDto: AcceptancePortalAcceptDto;
24
28
  }
25
- export interface DownloadAcceptanceDocumentAttachmentRequest {
29
+ export interface GetAcceptanceDocumentAttachmentRequest {
26
30
  /**
27
- * secret access id
31
+ * handle of the tenant, compared case-insensitively
28
32
  */
29
- secretId: string;
30
- /**
31
- * id of secondary entity
32
- */
33
- secondaryId: string;
34
- }
35
- export interface GetAcceptanceDocumentAttachmentRequest {
33
+ handle: string;
36
34
  /**
37
- * secret access id
35
+ * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
38
36
  */
39
- secretId: string;
37
+ authorization: string;
40
38
  /**
41
39
  * id of secondary entity
42
40
  */
@@ -44,9 +42,13 @@ export interface GetAcceptanceDocumentAttachmentRequest {
44
42
  }
45
43
  export interface GetAcceptancePortalDocumentRequest {
46
44
  /**
47
- * secret access id
45
+ * handle of the tenant, compared case-insensitively
48
46
  */
49
- secretId: string;
47
+ handle: string;
48
+ /**
49
+ * secret of the shared document, prefixed with "Bearer ", e.g. "Bearer 872D4A41df9Kx2L"
50
+ */
51
+ authorization: string;
50
52
  }
51
53
  /**
52
54
  *
@@ -64,18 +66,6 @@ export declare class AcceptancePortalDocumentsApi extends runtime.BaseAPI {
64
66
  * accept or decline acceptance document
65
67
  */
66
68
  acceptAcceptanceDocument(requestParameters: AcceptAcceptanceDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptanceDocumentDto>;
67
- /**
68
- * Creates request options for downloadAcceptanceDocumentAttachment without sending the request
69
- */
70
- downloadAcceptanceDocumentAttachmentRequestOpts(requestParameters: DownloadAcceptanceDocumentAttachmentRequest): Promise<runtime.RequestOpts>;
71
- /**
72
- * download acceptance portal document attachment
73
- */
74
- downloadAcceptanceDocumentAttachmentRaw(requestParameters: DownloadAcceptanceDocumentAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<runtime.HttpFile>>;
75
- /**
76
- * download acceptance portal document attachment
77
- */
78
- downloadAcceptanceDocumentAttachment(requestParameters: DownloadAcceptanceDocumentAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.HttpFile>;
79
69
  /**
80
70
  * Creates request options for getAcceptanceDocumentAttachment without sending the request
81
71
  */
@@ -83,8 +83,11 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
84
  var queryParameters, headerParameters, urlPath;
85
85
  return __generator(this, function (_a) {
86
- if (requestParameters['secretId'] == null) {
87
- throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling acceptAcceptanceDocument().');
86
+ if (requestParameters['handle'] == null) {
87
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling acceptAcceptanceDocument().');
88
+ }
89
+ if (requestParameters['authorization'] == null) {
90
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling acceptAcceptanceDocument().');
88
91
  }
89
92
  if (requestParameters['acceptancePortalAcceptDto'] == null) {
90
93
  throw new runtime.RequiredError('acceptancePortalAcceptDto', 'Required parameter "acceptancePortalAcceptDto" was null or undefined when calling acceptAcceptanceDocument().');
@@ -92,8 +95,11 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
92
95
  queryParameters = {};
93
96
  headerParameters = {};
94
97
  headerParameters['Content-Type'] = 'application/json';
95
- urlPath = "/ui/acceptance-portal-documents/v1/{secretId}/accept";
96
- urlPath = urlPath.replace('{secretId}', encodeURIComponent(String(requestParameters['secretId'])));
98
+ if (requestParameters['authorization'] != null) {
99
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
100
+ }
101
+ urlPath = "/ui/tenant-portal/v1/{handle}/acceptance-documents/accept";
102
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
97
103
  return [2 /*return*/, {
98
104
  path: urlPath,
99
105
  method: 'POST',
@@ -140,69 +146,6 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
140
146
  });
141
147
  });
142
148
  };
143
- /**
144
- * Creates request options for downloadAcceptanceDocumentAttachment without sending the request
145
- */
146
- AcceptancePortalDocumentsApi.prototype.downloadAcceptanceDocumentAttachmentRequestOpts = function (requestParameters) {
147
- return __awaiter(this, void 0, void 0, function () {
148
- var queryParameters, headerParameters, urlPath;
149
- return __generator(this, function (_a) {
150
- if (requestParameters['secretId'] == null) {
151
- throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling downloadAcceptanceDocumentAttachment().');
152
- }
153
- if (requestParameters['secondaryId'] == null) {
154
- throw new runtime.RequiredError('secondaryId', 'Required parameter "secondaryId" was null or undefined when calling downloadAcceptanceDocumentAttachment().');
155
- }
156
- queryParameters = {};
157
- headerParameters = {};
158
- urlPath = "/ui/acceptance-portal-documents/v1/{secretId}/attachments/{secondaryId}/download";
159
- urlPath = urlPath.replace('{secretId}', encodeURIComponent(String(requestParameters['secretId'])));
160
- urlPath = urlPath.replace('{secondaryId}', encodeURIComponent(String(requestParameters['secondaryId'])));
161
- return [2 /*return*/, {
162
- path: urlPath,
163
- method: 'GET',
164
- headers: headerParameters,
165
- query: queryParameters,
166
- }];
167
- });
168
- });
169
- };
170
- /**
171
- * download acceptance portal document attachment
172
- */
173
- AcceptancePortalDocumentsApi.prototype.downloadAcceptanceDocumentAttachmentRaw = function (requestParameters, initOverrides) {
174
- return __awaiter(this, void 0, void 0, function () {
175
- var requestOptions, response;
176
- return __generator(this, function (_a) {
177
- switch (_a.label) {
178
- case 0: return [4 /*yield*/, this.downloadAcceptanceDocumentAttachmentRequestOpts(requestParameters)];
179
- case 1:
180
- requestOptions = _a.sent();
181
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
182
- case 2:
183
- response = _a.sent();
184
- return [2 /*return*/, new runtime.BlobApiResponse(response)];
185
- }
186
- });
187
- });
188
- };
189
- /**
190
- * download acceptance portal document attachment
191
- */
192
- AcceptancePortalDocumentsApi.prototype.downloadAcceptanceDocumentAttachment = function (requestParameters, initOverrides) {
193
- return __awaiter(this, void 0, void 0, function () {
194
- var response;
195
- return __generator(this, function (_a) {
196
- switch (_a.label) {
197
- case 0: return [4 /*yield*/, this.downloadAcceptanceDocumentAttachmentRaw(requestParameters, initOverrides)];
198
- case 1:
199
- response = _a.sent();
200
- return [4 /*yield*/, response.value()];
201
- case 2: return [2 /*return*/, _a.sent()];
202
- }
203
- });
204
- });
205
- };
206
149
  /**
207
150
  * Creates request options for getAcceptanceDocumentAttachment without sending the request
208
151
  */
@@ -210,16 +153,22 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
210
153
  return __awaiter(this, void 0, void 0, function () {
211
154
  var queryParameters, headerParameters, urlPath;
212
155
  return __generator(this, function (_a) {
213
- if (requestParameters['secretId'] == null) {
214
- throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling getAcceptanceDocumentAttachment().');
156
+ if (requestParameters['handle'] == null) {
157
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAcceptanceDocumentAttachment().');
158
+ }
159
+ if (requestParameters['authorization'] == null) {
160
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getAcceptanceDocumentAttachment().');
215
161
  }
216
162
  if (requestParameters['secondaryId'] == null) {
217
163
  throw new runtime.RequiredError('secondaryId', 'Required parameter "secondaryId" was null or undefined when calling getAcceptanceDocumentAttachment().');
218
164
  }
219
165
  queryParameters = {};
220
166
  headerParameters = {};
221
- urlPath = "/ui/acceptance-portal-documents/v1/{secretId}/attachments/{secondaryId}";
222
- urlPath = urlPath.replace('{secretId}', encodeURIComponent(String(requestParameters['secretId'])));
167
+ if (requestParameters['authorization'] != null) {
168
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
169
+ }
170
+ urlPath = "/ui/tenant-portal/v1/{handle}/acceptance-documents/attachments/{secondaryId}";
171
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
223
172
  urlPath = urlPath.replace('{secondaryId}', encodeURIComponent(String(requestParameters['secondaryId'])));
224
173
  return [2 /*return*/, {
225
174
  path: urlPath,
@@ -273,13 +222,19 @@ var AcceptancePortalDocumentsApi = /** @class */ (function (_super) {
273
222
  return __awaiter(this, void 0, void 0, function () {
274
223
  var queryParameters, headerParameters, urlPath;
275
224
  return __generator(this, function (_a) {
276
- if (requestParameters['secretId'] == null) {
277
- throw new runtime.RequiredError('secretId', 'Required parameter "secretId" was null or undefined when calling getAcceptancePortalDocument().');
225
+ if (requestParameters['handle'] == null) {
226
+ throw new runtime.RequiredError('handle', 'Required parameter "handle" was null or undefined when calling getAcceptancePortalDocument().');
227
+ }
228
+ if (requestParameters['authorization'] == null) {
229
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getAcceptancePortalDocument().');
278
230
  }
279
231
  queryParameters = {};
280
232
  headerParameters = {};
281
- urlPath = "/ui/acceptance-portal-documents/v1/{secretId}";
282
- urlPath = urlPath.replace('{secretId}', encodeURIComponent(String(requestParameters['secretId'])));
233
+ if (requestParameters['authorization'] != null) {
234
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
235
+ }
236
+ urlPath = "/ui/tenant-portal/v1/{handle}/acceptance-documents";
237
+ urlPath = urlPath.replace('{handle}', encodeURIComponent(String(requestParameters['handle'])));
283
238
  return [2 /*return*/, {
284
239
  path: urlPath,
285
240
  method: 'GET',
@@ -0,0 +1,121 @@
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 AttributeTypeDto } from '../models/AttributeTypeDto';
13
+ import { type GetAllAttributeTypes200Response } from '../models/GetAllAttributeTypes200Response';
14
+ import { type KommerzPageable } from '../models/KommerzPageable';
15
+ export interface CreateAttributeTypeRequest {
16
+ /**
17
+ *
18
+ */
19
+ attributeTypeDto: AttributeTypeDto;
20
+ }
21
+ export interface DeleteAttributeTypeRequest {
22
+ /**
23
+ * id of entity
24
+ */
25
+ id: string;
26
+ }
27
+ export interface GetAllAttributeTypesRequest {
28
+ /**
29
+ * Pageable query parameters
30
+ */
31
+ pageable: KommerzPageable;
32
+ /**
33
+ * Filter query parameters. Operators: sim, nsim, eq, neq, leq, less, geq, gtr). Values have to be url-encoded.
34
+ */
35
+ filter?: Array<string>;
36
+ }
37
+ export interface GetAttributeTypeRequest {
38
+ /**
39
+ * id of entity
40
+ */
41
+ id: string;
42
+ }
43
+ export interface UpdateAttributeTypeRequest {
44
+ /**
45
+ * id of entity
46
+ */
47
+ id: string;
48
+ /**
49
+ *
50
+ */
51
+ attributeTypeDto: AttributeTypeDto;
52
+ /**
53
+ * whether to force update the entity
54
+ */
55
+ force?: boolean;
56
+ }
57
+ /**
58
+ *
59
+ */
60
+ export declare class AttributeTypesApi extends runtime.BaseAPI {
61
+ /**
62
+ * Creates request options for createAttributeType without sending the request
63
+ */
64
+ createAttributeTypeRequestOpts(requestParameters: CreateAttributeTypeRequest): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * create an attribute type
67
+ */
68
+ createAttributeTypeRaw(requestParameters: CreateAttributeTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeTypeDto>>;
69
+ /**
70
+ * create an attribute type
71
+ */
72
+ createAttributeType(requestParameters: CreateAttributeTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeTypeDto>;
73
+ /**
74
+ * Creates request options for deleteAttributeType without sending the request
75
+ */
76
+ deleteAttributeTypeRequestOpts(requestParameters: DeleteAttributeTypeRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * delete an attribute type, the entities using it lose their attribute type
79
+ */
80
+ deleteAttributeTypeRaw(requestParameters: DeleteAttributeTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
81
+ /**
82
+ * delete an attribute type, the entities using it lose their attribute type
83
+ */
84
+ deleteAttributeType(requestParameters: DeleteAttributeTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
+ /**
86
+ * Creates request options for getAllAttributeTypes without sending the request
87
+ */
88
+ getAllAttributeTypesRequestOpts(requestParameters: GetAllAttributeTypesRequest): Promise<runtime.RequestOpts>;
89
+ /**
90
+ * get all attribute types
91
+ */
92
+ getAllAttributeTypesRaw(requestParameters: GetAllAttributeTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllAttributeTypes200Response>>;
93
+ /**
94
+ * get all attribute types
95
+ */
96
+ getAllAttributeTypes(requestParameters: GetAllAttributeTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllAttributeTypes200Response>;
97
+ /**
98
+ * Creates request options for getAttributeType without sending the request
99
+ */
100
+ getAttributeTypeRequestOpts(requestParameters: GetAttributeTypeRequest): Promise<runtime.RequestOpts>;
101
+ /**
102
+ * read one attribute type
103
+ */
104
+ getAttributeTypeRaw(requestParameters: GetAttributeTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeTypeDto>>;
105
+ /**
106
+ * read one attribute type
107
+ */
108
+ getAttributeType(requestParameters: GetAttributeTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeTypeDto>;
109
+ /**
110
+ * Creates request options for updateAttributeType without sending the request
111
+ */
112
+ updateAttributeTypeRequestOpts(requestParameters: UpdateAttributeTypeRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * update an attribute type
115
+ */
116
+ updateAttributeTypeRaw(requestParameters: UpdateAttributeTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeTypeDto>>;
117
+ /**
118
+ * update an attribute type
119
+ */
120
+ updateAttributeType(requestParameters: UpdateAttributeTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeTypeDto>;
121
+ }