@kommerz/ts-client 1.171.4 → 1.172.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.
@@ -9,17 +9,17 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  import * as runtime from '../runtime';
12
- import type { ProductDto } from '../models/index';
12
+ import type { PaymentProductDto } from '../models/index';
13
13
  /**
14
14
  *
15
15
  */
16
16
  export declare class PaymentProductsApi extends runtime.BaseAPI {
17
17
  /**
18
- * get all products
18
+ * get all payment products
19
19
  */
20
- getAllProductsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductDto>>>;
20
+ getAllPaymentProductsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PaymentProductDto>>>;
21
21
  /**
22
- * get all products
22
+ * get all payment products
23
23
  */
24
- getAllProducts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductDto>>;
24
+ getAllPaymentProducts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PaymentProductDto>>;
25
25
  }
@@ -75,9 +75,9 @@ var PaymentProductsApi = /** @class */ (function (_super) {
75
75
  return _super !== null && _super.apply(this, arguments) || this;
76
76
  }
77
77
  /**
78
- * get all products
78
+ * get all payment products
79
79
  */
80
- PaymentProductsApi.prototype.getAllProductsRaw = function (initOverrides) {
80
+ PaymentProductsApi.prototype.getAllPaymentProductsRaw = function (initOverrides) {
81
81
  return __awaiter(this, void 0, void 0, function () {
82
82
  var queryParameters, headerParameters, urlPath, response;
83
83
  return __generator(this, function (_a) {
@@ -94,20 +94,20 @@ var PaymentProductsApi = /** @class */ (function (_super) {
94
94
  }, initOverrides)];
95
95
  case 1:
96
96
  response = _a.sent();
97
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ProductDtoFromJSON); })];
97
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.PaymentProductDtoFromJSON); })];
98
98
  }
99
99
  });
100
100
  });
101
101
  };
102
102
  /**
103
- * get all products
103
+ * get all payment products
104
104
  */
105
- PaymentProductsApi.prototype.getAllProducts = function (initOverrides) {
105
+ PaymentProductsApi.prototype.getAllPaymentProducts = function (initOverrides) {
106
106
  return __awaiter(this, void 0, void 0, function () {
107
107
  var response;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
- case 0: return [4 /*yield*/, this.getAllProductsRaw(initOverrides)];
110
+ case 0: return [4 /*yield*/, this.getAllPaymentProductsRaw(initOverrides)];
111
111
  case 1:
112
112
  response = _a.sent();
113
113
  return [4 /*yield*/, response.value()];
@@ -0,0 +1,75 @@
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 { GetAllProducts200Response, KommerzPageable, ProductDto } from '../models/index';
13
+ export interface CreateProductRequest {
14
+ productDto: ProductDto;
15
+ }
16
+ export interface DeleteProductRequest {
17
+ id: string;
18
+ }
19
+ export interface GetAllProductsRequest {
20
+ pageable: KommerzPageable;
21
+ filter?: Array<string>;
22
+ }
23
+ export interface GetProductRequest {
24
+ id: string;
25
+ }
26
+ export interface UpdateProductRequest {
27
+ id: string;
28
+ productDto: ProductDto;
29
+ force?: boolean;
30
+ }
31
+ /**
32
+ *
33
+ */
34
+ export declare class ProductsApi extends runtime.BaseAPI {
35
+ /**
36
+ * Create a new product
37
+ */
38
+ createProductRaw(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductDto>>;
39
+ /**
40
+ * Create a new product
41
+ */
42
+ createProduct(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductDto>;
43
+ /**
44
+ * delete single product
45
+ */
46
+ deleteProductRaw(requestParameters: DeleteProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
47
+ /**
48
+ * delete single product
49
+ */
50
+ deleteProduct(requestParameters: DeleteProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
+ /**
52
+ * get all products
53
+ */
54
+ getAllProductsRaw(requestParameters: GetAllProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllProducts200Response>>;
55
+ /**
56
+ * get all products
57
+ */
58
+ getAllProducts(requestParameters: GetAllProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllProducts200Response>;
59
+ /**
60
+ * read one product
61
+ */
62
+ getProductRaw(requestParameters: GetProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductDto>>;
63
+ /**
64
+ * read one product
65
+ */
66
+ getProduct(requestParameters: GetProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductDto>;
67
+ /**
68
+ * Update a product
69
+ */
70
+ updateProductRaw(requestParameters: UpdateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductDto>>;
71
+ /**
72
+ * Update a product
73
+ */
74
+ updateProduct(requestParameters: UpdateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductDto>;
75
+ }
@@ -0,0 +1,321 @@
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.ProductsApi = void 0;
67
+ var runtime = require("../runtime");
68
+ var index_1 = require("../models/index");
69
+ /**
70
+ *
71
+ */
72
+ var ProductsApi = /** @class */ (function (_super) {
73
+ __extends(ProductsApi, _super);
74
+ function ProductsApi() {
75
+ return _super !== null && _super.apply(this, arguments) || this;
76
+ }
77
+ /**
78
+ * Create a new product
79
+ */
80
+ ProductsApi.prototype.createProductRaw = function (requestParameters, initOverrides) {
81
+ return __awaiter(this, void 0, void 0, function () {
82
+ var queryParameters, headerParameters, urlPath, response;
83
+ return __generator(this, function (_a) {
84
+ switch (_a.label) {
85
+ case 0:
86
+ if (requestParameters['productDto'] == null) {
87
+ throw new runtime.RequiredError('productDto', 'Required parameter "productDto" was null or undefined when calling createProduct().');
88
+ }
89
+ queryParameters = {};
90
+ headerParameters = {};
91
+ headerParameters['Content-Type'] = 'application/json';
92
+ urlPath = "/ui/products/v1";
93
+ return [4 /*yield*/, this.request({
94
+ path: urlPath,
95
+ method: 'POST',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ body: (0, index_1.ProductDtoToJSON)(requestParameters['productDto']),
99
+ }, initOverrides)];
100
+ case 1:
101
+ response = _a.sent();
102
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductDtoFromJSON)(jsonValue); })];
103
+ }
104
+ });
105
+ });
106
+ };
107
+ /**
108
+ * Create a new product
109
+ */
110
+ ProductsApi.prototype.createProduct = function (requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function () {
112
+ var response;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0: return [4 /*yield*/, this.createProductRaw(requestParameters, initOverrides)];
116
+ case 1:
117
+ response = _a.sent();
118
+ return [4 /*yield*/, response.value()];
119
+ case 2: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ /**
125
+ * delete single product
126
+ */
127
+ ProductsApi.prototype.deleteProductRaw = function (requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var queryParameters, headerParameters, urlPath, response;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0:
133
+ if (requestParameters['id'] == null) {
134
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteProduct().');
135
+ }
136
+ queryParameters = {};
137
+ headerParameters = {};
138
+ urlPath = "/ui/products/v1/{id}";
139
+ urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
140
+ return [4 /*yield*/, this.request({
141
+ path: urlPath,
142
+ method: 'DELETE',
143
+ headers: headerParameters,
144
+ query: queryParameters,
145
+ }, initOverrides)];
146
+ case 1:
147
+ response = _a.sent();
148
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
149
+ }
150
+ });
151
+ });
152
+ };
153
+ /**
154
+ * delete single product
155
+ */
156
+ ProductsApi.prototype.deleteProduct = function (requestParameters, initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function () {
158
+ return __generator(this, function (_a) {
159
+ switch (_a.label) {
160
+ case 0: return [4 /*yield*/, this.deleteProductRaw(requestParameters, initOverrides)];
161
+ case 1:
162
+ _a.sent();
163
+ return [2 /*return*/];
164
+ }
165
+ });
166
+ });
167
+ };
168
+ /**
169
+ * get all products
170
+ */
171
+ ProductsApi.prototype.getAllProductsRaw = function (requestParameters, initOverrides) {
172
+ return __awaiter(this, void 0, void 0, function () {
173
+ var queryParameters, headerParameters, urlPath, response;
174
+ return __generator(this, function (_a) {
175
+ switch (_a.label) {
176
+ case 0:
177
+ if (requestParameters['pageable'] == null) {
178
+ throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllProducts().');
179
+ }
180
+ queryParameters = {};
181
+ if (requestParameters['pageable'] != null) {
182
+ queryParameters['pageable'] = requestParameters['pageable'];
183
+ }
184
+ if (requestParameters['filter'] != null) {
185
+ queryParameters['filter'] = requestParameters['filter'];
186
+ }
187
+ headerParameters = {};
188
+ urlPath = "/ui/products/v1";
189
+ return [4 /*yield*/, this.request({
190
+ path: urlPath,
191
+ method: 'GET',
192
+ headers: headerParameters,
193
+ query: queryParameters,
194
+ }, initOverrides)];
195
+ case 1:
196
+ response = _a.sent();
197
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllProducts200ResponseFromJSON)(jsonValue); })];
198
+ }
199
+ });
200
+ });
201
+ };
202
+ /**
203
+ * get all products
204
+ */
205
+ ProductsApi.prototype.getAllProducts = function (requestParameters, initOverrides) {
206
+ return __awaiter(this, void 0, void 0, function () {
207
+ var response;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0: return [4 /*yield*/, this.getAllProductsRaw(requestParameters, initOverrides)];
211
+ case 1:
212
+ response = _a.sent();
213
+ return [4 /*yield*/, response.value()];
214
+ case 2: return [2 /*return*/, _a.sent()];
215
+ }
216
+ });
217
+ });
218
+ };
219
+ /**
220
+ * read one product
221
+ */
222
+ ProductsApi.prototype.getProductRaw = function (requestParameters, initOverrides) {
223
+ return __awaiter(this, void 0, void 0, function () {
224
+ var queryParameters, headerParameters, urlPath, response;
225
+ return __generator(this, function (_a) {
226
+ switch (_a.label) {
227
+ case 0:
228
+ if (requestParameters['id'] == null) {
229
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getProduct().');
230
+ }
231
+ queryParameters = {};
232
+ headerParameters = {};
233
+ urlPath = "/ui/products/v1/{id}";
234
+ urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
235
+ return [4 /*yield*/, this.request({
236
+ path: urlPath,
237
+ method: 'GET',
238
+ headers: headerParameters,
239
+ query: queryParameters,
240
+ }, initOverrides)];
241
+ case 1:
242
+ response = _a.sent();
243
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductDtoFromJSON)(jsonValue); })];
244
+ }
245
+ });
246
+ });
247
+ };
248
+ /**
249
+ * read one product
250
+ */
251
+ ProductsApi.prototype.getProduct = function (requestParameters, initOverrides) {
252
+ return __awaiter(this, void 0, void 0, function () {
253
+ var response;
254
+ return __generator(this, function (_a) {
255
+ switch (_a.label) {
256
+ case 0: return [4 /*yield*/, this.getProductRaw(requestParameters, initOverrides)];
257
+ case 1:
258
+ response = _a.sent();
259
+ return [4 /*yield*/, response.value()];
260
+ case 2: return [2 /*return*/, _a.sent()];
261
+ }
262
+ });
263
+ });
264
+ };
265
+ /**
266
+ * Update a product
267
+ */
268
+ ProductsApi.prototype.updateProductRaw = function (requestParameters, initOverrides) {
269
+ return __awaiter(this, void 0, void 0, function () {
270
+ var queryParameters, headerParameters, urlPath, response;
271
+ return __generator(this, function (_a) {
272
+ switch (_a.label) {
273
+ case 0:
274
+ if (requestParameters['id'] == null) {
275
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateProduct().');
276
+ }
277
+ if (requestParameters['productDto'] == null) {
278
+ throw new runtime.RequiredError('productDto', 'Required parameter "productDto" was null or undefined when calling updateProduct().');
279
+ }
280
+ queryParameters = {};
281
+ if (requestParameters['force'] != null) {
282
+ queryParameters['force'] = requestParameters['force'];
283
+ }
284
+ headerParameters = {};
285
+ headerParameters['Content-Type'] = 'application/json';
286
+ urlPath = "/ui/products/v1/{id}";
287
+ urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
288
+ return [4 /*yield*/, this.request({
289
+ path: urlPath,
290
+ method: 'PUT',
291
+ headers: headerParameters,
292
+ query: queryParameters,
293
+ body: (0, index_1.ProductDtoToJSON)(requestParameters['productDto']),
294
+ }, initOverrides)];
295
+ case 1:
296
+ response = _a.sent();
297
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductDtoFromJSON)(jsonValue); })];
298
+ }
299
+ });
300
+ });
301
+ };
302
+ /**
303
+ * Update a product
304
+ */
305
+ ProductsApi.prototype.updateProduct = function (requestParameters, initOverrides) {
306
+ return __awaiter(this, void 0, void 0, function () {
307
+ var response;
308
+ return __generator(this, function (_a) {
309
+ switch (_a.label) {
310
+ case 0: return [4 /*yield*/, this.updateProductRaw(requestParameters, initOverrides)];
311
+ case 1:
312
+ response = _a.sent();
313
+ return [4 /*yield*/, response.value()];
314
+ case 2: return [2 /*return*/, _a.sent()];
315
+ }
316
+ });
317
+ });
318
+ };
319
+ return ProductsApi;
320
+ }(runtime.BaseAPI));
321
+ exports.ProductsApi = ProductsApi;
@@ -62,6 +62,7 @@ export * from './PaymentSubscriptionsApi';
62
62
  export * from './PaymentsPaymentsApi';
63
63
  export * from './PresenceEntriesApi';
64
64
  export * from './PresenceTypesApi';
65
+ export * from './ProductsApi';
65
66
  export * from './ReferencesApi';
66
67
  export * from './RolesApi';
67
68
  export * from './ServiceDeskMessageApi';
@@ -80,6 +80,7 @@ __exportStar(require("./PaymentSubscriptionsApi"), exports);
80
80
  __exportStar(require("./PaymentsPaymentsApi"), exports);
81
81
  __exportStar(require("./PresenceEntriesApi"), exports);
82
82
  __exportStar(require("./PresenceTypesApi"), exports);
83
+ __exportStar(require("./ProductsApi"), exports);
83
84
  __exportStar(require("./ReferencesApi"), exports);
84
85
  __exportStar(require("./RolesApi"), exports);
85
86
  __exportStar(require("./ServiceDeskMessageApi"), exports);
@@ -26,6 +26,7 @@ export declare const EntityType: {
26
26
  readonly DocumentTemplate: "DocumentTemplate";
27
27
  readonly TextModule: "TextModule";
28
28
  readonly Unit: "Unit";
29
+ readonly Product: "Product";
29
30
  readonly Identifier: "Identifier";
30
31
  readonly Tenant: "Tenant";
31
32
  readonly PresenceEntry: "PresenceEntry";
@@ -36,6 +36,7 @@ exports.EntityType = {
36
36
  DocumentTemplate: 'DocumentTemplate',
37
37
  TextModule: 'TextModule',
38
38
  Unit: 'Unit',
39
+ Product: 'Product',
39
40
  Identifier: 'Identifier',
40
41
  Tenant: 'Tenant',
41
42
  PresenceEntry: 'PresenceEntry',
@@ -0,0 +1,50 @@
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 { ProductDto } from './ProductDto';
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetAllProducts200Response
16
+ */
17
+ export interface GetAllProducts200Response {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof GetAllProducts200Response
22
+ */
23
+ pageNumber?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof GetAllProducts200Response
28
+ */
29
+ pageSize?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetAllProducts200Response
34
+ */
35
+ totalElements: number;
36
+ /**
37
+ *
38
+ * @type {Array<ProductDto>}
39
+ * @memberof GetAllProducts200Response
40
+ */
41
+ content: Array<ProductDto>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the GetAllProducts200Response interface.
45
+ */
46
+ export declare function instanceOfGetAllProducts200Response(value: object): value is GetAllProducts200Response;
47
+ export declare function GetAllProducts200ResponseFromJSON(json: any): GetAllProducts200Response;
48
+ export declare function GetAllProducts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProducts200Response;
49
+ export declare function GetAllProducts200ResponseToJSON(json: any): GetAllProducts200Response;
50
+ export declare function GetAllProducts200ResponseToJSONTyped(value?: GetAllProducts200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Kommerz API Specification
6
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
7
+ *
8
+ * Contact: info@kommerz.app
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.instanceOfGetAllProducts200Response = instanceOfGetAllProducts200Response;
16
+ exports.GetAllProducts200ResponseFromJSON = GetAllProducts200ResponseFromJSON;
17
+ exports.GetAllProducts200ResponseFromJSONTyped = GetAllProducts200ResponseFromJSONTyped;
18
+ exports.GetAllProducts200ResponseToJSON = GetAllProducts200ResponseToJSON;
19
+ exports.GetAllProducts200ResponseToJSONTyped = GetAllProducts200ResponseToJSONTyped;
20
+ var ProductDto_1 = require("./ProductDto");
21
+ /**
22
+ * Check if a given object implements the GetAllProducts200Response interface.
23
+ */
24
+ function instanceOfGetAllProducts200Response(value) {
25
+ if (!('totalElements' in value) || value['totalElements'] === undefined)
26
+ return false;
27
+ if (!('content' in value) || value['content'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetAllProducts200ResponseFromJSON(json) {
32
+ return GetAllProducts200ResponseFromJSONTyped(json, false);
33
+ }
34
+ function GetAllProducts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
40
+ 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
41
+ 'totalElements': json['totalElements'],
42
+ 'content': (json['content'].map(ProductDto_1.ProductDtoFromJSON)),
43
+ };
44
+ }
45
+ function GetAllProducts200ResponseToJSON(json) {
46
+ return GetAllProducts200ResponseToJSONTyped(json, false);
47
+ }
48
+ function GetAllProducts200ResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'pageNumber': value['pageNumber'],
55
+ 'pageSize': value['pageSize'],
56
+ 'totalElements': value['totalElements'],
57
+ 'content': (value['content'].map(ProductDto_1.ProductDtoToJSON)),
58
+ };
59
+ }