karibu-layer 1.0.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 (113) hide show
  1. package/README.md +236 -0
  2. package/api/api.d.ts +23 -0
  3. package/api/authentication.service.d.ts +143 -0
  4. package/api/board.service.d.ts +267 -0
  5. package/api/establishment.service.d.ts +181 -0
  6. package/api/establishmentAccessor.service.d.ts +161 -0
  7. package/api/invoice.service.d.ts +180 -0
  8. package/api/order.service.d.ts +183 -0
  9. package/api/orderItem.service.d.ts +202 -0
  10. package/api/payment.service.d.ts +222 -0
  11. package/api/product.service.d.ts +161 -0
  12. package/api/role.service.d.ts +117 -0
  13. package/api/user.service.d.ts +271 -0
  14. package/api.base.service.d.ts +12 -0
  15. package/api.module.d.ts +11 -0
  16. package/configuration.d.ts +106 -0
  17. package/encoder.d.ts +11 -0
  18. package/esm2022/api/api.mjs +24 -0
  19. package/esm2022/api/authentication.service.mjs +304 -0
  20. package/esm2022/api/board.service.mjs +495 -0
  21. package/esm2022/api/establishment.service.mjs +345 -0
  22. package/esm2022/api/establishmentAccessor.service.mjs +295 -0
  23. package/esm2022/api/invoice.service.mjs +349 -0
  24. package/esm2022/api/order.service.mjs +355 -0
  25. package/esm2022/api/orderItem.service.mjs +381 -0
  26. package/esm2022/api/payment.service.mjs +417 -0
  27. package/esm2022/api/product.service.mjs +312 -0
  28. package/esm2022/api/role.service.mjs +237 -0
  29. package/esm2022/api/user.service.mjs +507 -0
  30. package/esm2022/api.base.service.mjs +68 -0
  31. package/esm2022/api.module.mjs +40 -0
  32. package/esm2022/configuration.mjs +133 -0
  33. package/esm2022/encoder.mjs +19 -0
  34. package/esm2022/index.mjs +7 -0
  35. package/esm2022/karibu-api-client.mjs +5 -0
  36. package/esm2022/model/board.mjs +8 -0
  37. package/esm2022/model/boardRequestDTO.mjs +17 -0
  38. package/esm2022/model/boardResponseDTO.mjs +8 -0
  39. package/esm2022/model/dashboard.mjs +11 -0
  40. package/esm2022/model/establishment.mjs +34 -0
  41. package/esm2022/model/establishmentAccessor.mjs +2 -0
  42. package/esm2022/model/establishmentAccessorDTO.mjs +11 -0
  43. package/esm2022/model/establishmentAccessorRequestDTO.mjs +11 -0
  44. package/esm2022/model/establishmentAccessorResponseDTO.mjs +34 -0
  45. package/esm2022/model/establishmentRequestDTO.mjs +43 -0
  46. package/esm2022/model/establishmentResponseDTO.mjs +43 -0
  47. package/esm2022/model/invoice.mjs +2 -0
  48. package/esm2022/model/invoiceDTO.mjs +11 -0
  49. package/esm2022/model/loginAccessorRequestDTO.mjs +11 -0
  50. package/esm2022/model/loginRequestDTO.mjs +11 -0
  51. package/esm2022/model/loginResponseDTO.mjs +2 -0
  52. package/esm2022/model/models.mjs +35 -0
  53. package/esm2022/model/order.mjs +8 -0
  54. package/esm2022/model/orderItem.mjs +2 -0
  55. package/esm2022/model/orderItemRequestDTO.mjs +2 -0
  56. package/esm2022/model/orderItemResponseDTO.mjs +2 -0
  57. package/esm2022/model/orderRequestDTO.mjs +17 -0
  58. package/esm2022/model/orderResponseDTO.mjs +8 -0
  59. package/esm2022/model/payment.mjs +12 -0
  60. package/esm2022/model/paymentDTO.mjs +21 -0
  61. package/esm2022/model/product.mjs +10 -0
  62. package/esm2022/model/productRequestDTO.mjs +19 -0
  63. package/esm2022/model/productResponseDTO.mjs +10 -0
  64. package/esm2022/model/role.mjs +11 -0
  65. package/esm2022/model/roleDTO.mjs +20 -0
  66. package/esm2022/model/tokenRequest.mjs +11 -0
  67. package/esm2022/model/tokenResponse.mjs +11 -0
  68. package/esm2022/model/user.mjs +11 -0
  69. package/esm2022/model/userRequestDTO.mjs +2 -0
  70. package/esm2022/model/userResponseDTO.mjs +11 -0
  71. package/esm2022/param.mjs +2 -0
  72. package/esm2022/variables.mjs +9 -0
  73. package/fesm2022/karibu-layer.mjs +4608 -0
  74. package/fesm2022/karibu-layer.mjs.map +1 -0
  75. package/index.d.ts +6 -0
  76. package/model/board.d.ts +30 -0
  77. package/model/boardRequestDTO.d.ts +24 -0
  78. package/model/boardResponseDTO.d.ts +28 -0
  79. package/model/dashboard.d.ts +13 -0
  80. package/model/establishment.d.ts +73 -0
  81. package/model/establishmentAccessor.d.ts +23 -0
  82. package/model/establishmentAccessorDTO.d.ts +22 -0
  83. package/model/establishmentAccessorRequestDTO.d.ts +18 -0
  84. package/model/establishmentAccessorResponseDTO.d.ts +64 -0
  85. package/model/establishmentRequestDTO.d.ts +59 -0
  86. package/model/establishmentResponseDTO.d.ts +62 -0
  87. package/model/invoice.d.ts +19 -0
  88. package/model/invoiceDTO.d.ts +16 -0
  89. package/model/loginAccessorRequestDTO.d.ts +13 -0
  90. package/model/loginRequestDTO.d.ts +13 -0
  91. package/model/loginResponseDTO.d.ts +21 -0
  92. package/model/models.d.ts +34 -0
  93. package/model/order.d.ts +32 -0
  94. package/model/orderItem.d.ts +18 -0
  95. package/model/orderItemRequestDTO.d.ts +18 -0
  96. package/model/orderItemResponseDTO.d.ts +18 -0
  97. package/model/orderRequestDTO.d.ts +21 -0
  98. package/model/orderResponseDTO.d.ts +31 -0
  99. package/model/payment.d.ts +30 -0
  100. package/model/paymentDTO.d.ts +30 -0
  101. package/model/product.d.ts +33 -0
  102. package/model/productRequestDTO.d.ts +32 -0
  103. package/model/productResponseDTO.d.ts +35 -0
  104. package/model/role.d.ts +26 -0
  105. package/model/roleDTO.d.ts +24 -0
  106. package/model/tokenRequest.d.ts +12 -0
  107. package/model/tokenResponse.d.ts +12 -0
  108. package/model/user.d.ts +40 -0
  109. package/model/userRequestDTO.d.ts +19 -0
  110. package/model/userResponseDTO.d.ts +36 -0
  111. package/package.json +46 -0
  112. package/param.d.ts +37 -0
  113. package/variables.d.ts +8 -0
@@ -0,0 +1,4608 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+ import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
5
+
6
+ const BASE_PATH = new InjectionToken('basePath');
7
+ const COLLECTION_FORMATS = {
8
+ 'csv': ',',
9
+ 'tsv': ' ',
10
+ 'ssv': ' ',
11
+ 'pipes': '|'
12
+ };
13
+
14
+ /**
15
+ * Custom HttpParameterCodec
16
+ * Workaround for https://github.com/angular/angular/issues/18261
17
+ */
18
+ class CustomHttpParameterCodec {
19
+ encodeKey(k) {
20
+ return encodeURIComponent(k);
21
+ }
22
+ encodeValue(v) {
23
+ return encodeURIComponent(v);
24
+ }
25
+ decodeKey(k) {
26
+ return decodeURIComponent(k);
27
+ }
28
+ decodeValue(v) {
29
+ return decodeURIComponent(v);
30
+ }
31
+ }
32
+
33
+ class Configuration {
34
+ /**
35
+ * @deprecated Since 5.0. Use credentials instead
36
+ */
37
+ apiKeys;
38
+ username;
39
+ password;
40
+ /**
41
+ * @deprecated Since 5.0. Use credentials instead
42
+ */
43
+ accessToken;
44
+ basePath;
45
+ withCredentials;
46
+ /**
47
+ * Takes care of encoding query- and form-parameters.
48
+ */
49
+ encoder;
50
+ /**
51
+ * Encoding of various path parameter
52
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
53
+ * <p>
54
+ * See {@link README.md} for more details
55
+ * </p>
56
+ */
57
+ encodeParam;
58
+ /**
59
+ * The keys are the names in the securitySchemes section of the OpenAPI
60
+ * document. They should map to the value used for authentication
61
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
62
+ */
63
+ credentials;
64
+ constructor(configurationParameters = {}) {
65
+ this.apiKeys = configurationParameters.apiKeys;
66
+ this.username = configurationParameters.username;
67
+ this.password = configurationParameters.password;
68
+ this.accessToken = configurationParameters.accessToken;
69
+ this.basePath = configurationParameters.basePath;
70
+ this.withCredentials = configurationParameters.withCredentials;
71
+ this.encoder = configurationParameters.encoder;
72
+ if (configurationParameters.encodeParam) {
73
+ this.encodeParam = configurationParameters.encodeParam;
74
+ }
75
+ else {
76
+ this.encodeParam = param => this.defaultEncodeParam(param);
77
+ }
78
+ if (configurationParameters.credentials) {
79
+ this.credentials = configurationParameters.credentials;
80
+ }
81
+ else {
82
+ this.credentials = {};
83
+ }
84
+ }
85
+ /**
86
+ * Select the correct content-type to use for a request.
87
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
88
+ * If no content type is found return the first found type if the contentTypes is not empty
89
+ * @param contentTypes - the array of content types that are available for selection
90
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
91
+ */
92
+ selectHeaderContentType(contentTypes) {
93
+ if (contentTypes.length === 0) {
94
+ return undefined;
95
+ }
96
+ const type = contentTypes.find((x) => this.isJsonMime(x));
97
+ if (type === undefined) {
98
+ return contentTypes[0];
99
+ }
100
+ return type;
101
+ }
102
+ /**
103
+ * Select the correct accept content-type to use for a request.
104
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
105
+ * If no content type is found return the first found type if the contentTypes is not empty
106
+ * @param accepts - the array of content types that are available for selection.
107
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
108
+ */
109
+ selectHeaderAccept(accepts) {
110
+ if (accepts.length === 0) {
111
+ return undefined;
112
+ }
113
+ const type = accepts.find((x) => this.isJsonMime(x));
114
+ if (type === undefined) {
115
+ return accepts[0];
116
+ }
117
+ return type;
118
+ }
119
+ /**
120
+ * Check if the given MIME is a JSON MIME.
121
+ * JSON MIME examples:
122
+ * application/json
123
+ * application/json; charset=UTF8
124
+ * APPLICATION/JSON
125
+ * application/vnd.company+json
126
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
127
+ * @return True if the given MIME is JSON, false otherwise.
128
+ */
129
+ isJsonMime(mime) {
130
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
131
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
132
+ }
133
+ lookupCredential(key) {
134
+ const value = this.credentials[key];
135
+ return typeof value === 'function'
136
+ ? value()
137
+ : value;
138
+ }
139
+ addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
140
+ const value = this.lookupCredential(credentialKey);
141
+ return value
142
+ ? headers.set(headerName, (prefix ?? '') + value)
143
+ : headers;
144
+ }
145
+ addCredentialToQuery(credentialKey, paramName, query) {
146
+ const value = this.lookupCredential(credentialKey);
147
+ return value
148
+ ? query.set(paramName, value)
149
+ : query;
150
+ }
151
+ defaultEncodeParam(param) {
152
+ // This implementation exists as fallback for missing configuration
153
+ // and for backwards compatibility to older typescript-angular generator versions.
154
+ // It only works for the 'simple' parameter style.
155
+ // Date-handling only works for the 'date-time' format.
156
+ // All other styles and Date-formats are probably handled incorrectly.
157
+ //
158
+ // But: if that's all you need (i.e.: the most common use-case): no need for customization!
159
+ const value = param.dataFormat === 'date-time' && param.value instanceof Date
160
+ ? param.value.toISOString()
161
+ : param.value;
162
+ return encodeURIComponent(String(value));
163
+ }
164
+ }
165
+
166
+ class BaseService {
167
+ basePath = '';
168
+ defaultHeaders = new HttpHeaders();
169
+ configuration;
170
+ encoder;
171
+ constructor(basePath, configuration) {
172
+ this.configuration = configuration || new Configuration();
173
+ if (typeof this.configuration.basePath !== 'string') {
174
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
175
+ if (firstBasePath != undefined) {
176
+ basePath = firstBasePath;
177
+ }
178
+ if (typeof basePath !== 'string') {
179
+ basePath = this.basePath;
180
+ }
181
+ this.configuration.basePath = basePath;
182
+ }
183
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
184
+ }
185
+ canConsumeForm(consumes) {
186
+ return consumes.indexOf('multipart/form-data') !== -1;
187
+ }
188
+ addToHttpParams(httpParams, value, key) {
189
+ // If the value is an object (but not a Date), recursively add its keys.
190
+ if (typeof value === 'object' && !(value instanceof Date)) {
191
+ return this.addToHttpParamsRecursive(httpParams, value, key);
192
+ }
193
+ return this.addToHttpParamsRecursive(httpParams, value, key);
194
+ }
195
+ addToHttpParamsRecursive(httpParams, value, key) {
196
+ if (value === null || value === undefined) {
197
+ return httpParams;
198
+ }
199
+ if (typeof value === 'object') {
200
+ // If JSON format is preferred, key must be provided.
201
+ if (key != null) {
202
+ return httpParams.append(key, JSON.stringify(value));
203
+ }
204
+ // Otherwise, if it's an array, add each element.
205
+ if (Array.isArray(value)) {
206
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
207
+ }
208
+ else if (value instanceof Date) {
209
+ if (key != null) {
210
+ httpParams = httpParams.append(key, value.toISOString());
211
+ }
212
+ else {
213
+ throw Error("key may not be null if value is Date");
214
+ }
215
+ }
216
+ else {
217
+ Object.keys(value).forEach(k => {
218
+ const paramKey = key ? `${key}.${k}` : k;
219
+ httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);
220
+ });
221
+ }
222
+ return httpParams;
223
+ }
224
+ else if (key != null) {
225
+ return httpParams.append(key, value);
226
+ }
227
+ throw Error("key may not be null if value is not object or array");
228
+ }
229
+ }
230
+
231
+ /**
232
+ * karibu API
233
+ *
234
+ * Contact: support@karibu.ga
235
+ *
236
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
237
+ * https://openapi-generator.tech
238
+ * Do not edit the class manually.
239
+ */
240
+ /* tslint:disable:no-unused-variable member-ordering */
241
+ class AuthenticationService extends BaseService {
242
+ httpClient;
243
+ constructor(httpClient, basePath, configuration) {
244
+ super(basePath, configuration);
245
+ this.httpClient = httpClient;
246
+ }
247
+ adminLogin(loginRequestDTO, observe = 'body', reportProgress = false, options) {
248
+ if (loginRequestDTO === null || loginRequestDTO === undefined) {
249
+ throw new Error('Required parameter loginRequestDTO was null or undefined when calling adminLogin.');
250
+ }
251
+ let localVarHeaders = this.defaultHeaders;
252
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
253
+ 'application/json'
254
+ ]);
255
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
256
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
257
+ }
258
+ const localVarHttpContext = options?.context ?? new HttpContext();
259
+ const localVarTransferCache = options?.transferCache ?? true;
260
+ // to determine the Content-Type header
261
+ const consumes = [
262
+ 'application/json'
263
+ ];
264
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
265
+ if (httpContentTypeSelected !== undefined) {
266
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
267
+ }
268
+ let responseType_ = 'json';
269
+ if (localVarHttpHeaderAcceptSelected) {
270
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
271
+ responseType_ = 'text';
272
+ }
273
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
274
+ responseType_ = 'json';
275
+ }
276
+ else {
277
+ responseType_ = 'blob';
278
+ }
279
+ }
280
+ let localVarPath = `/auth/login/admin`;
281
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
282
+ context: localVarHttpContext,
283
+ body: loginRequestDTO,
284
+ responseType: responseType_,
285
+ withCredentials: this.configuration.withCredentials,
286
+ headers: localVarHeaders,
287
+ observe: observe,
288
+ transferCache: localVarTransferCache,
289
+ reportProgress: reportProgress
290
+ });
291
+ }
292
+ generateAdminToken(tokenRequest, observe = 'body', reportProgress = false, options) {
293
+ if (tokenRequest === null || tokenRequest === undefined) {
294
+ throw new Error('Required parameter tokenRequest was null or undefined when calling generateAdminToken.');
295
+ }
296
+ let localVarHeaders = this.defaultHeaders;
297
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
298
+ 'application/json'
299
+ ]);
300
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
301
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
302
+ }
303
+ const localVarHttpContext = options?.context ?? new HttpContext();
304
+ const localVarTransferCache = options?.transferCache ?? true;
305
+ // to determine the Content-Type header
306
+ const consumes = [
307
+ 'application/json'
308
+ ];
309
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
310
+ if (httpContentTypeSelected !== undefined) {
311
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
312
+ }
313
+ let responseType_ = 'json';
314
+ if (localVarHttpHeaderAcceptSelected) {
315
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
316
+ responseType_ = 'text';
317
+ }
318
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
319
+ responseType_ = 'json';
320
+ }
321
+ else {
322
+ responseType_ = 'blob';
323
+ }
324
+ }
325
+ let localVarPath = `/auth/admin-token`;
326
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
327
+ context: localVarHttpContext,
328
+ body: tokenRequest,
329
+ responseType: responseType_,
330
+ withCredentials: this.configuration.withCredentials,
331
+ headers: localVarHeaders,
332
+ observe: observe,
333
+ transferCache: localVarTransferCache,
334
+ reportProgress: reportProgress
335
+ });
336
+ }
337
+ generateCustomToken(tokenRequest, observe = 'body', reportProgress = false, options) {
338
+ if (tokenRequest === null || tokenRequest === undefined) {
339
+ throw new Error('Required parameter tokenRequest was null or undefined when calling generateCustomToken.');
340
+ }
341
+ let localVarHeaders = this.defaultHeaders;
342
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
343
+ 'application/json'
344
+ ]);
345
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
346
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
347
+ }
348
+ const localVarHttpContext = options?.context ?? new HttpContext();
349
+ const localVarTransferCache = options?.transferCache ?? true;
350
+ // to determine the Content-Type header
351
+ const consumes = [
352
+ 'application/json'
353
+ ];
354
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
355
+ if (httpContentTypeSelected !== undefined) {
356
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
357
+ }
358
+ let responseType_ = 'json';
359
+ if (localVarHttpHeaderAcceptSelected) {
360
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
361
+ responseType_ = 'text';
362
+ }
363
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
364
+ responseType_ = 'json';
365
+ }
366
+ else {
367
+ responseType_ = 'blob';
368
+ }
369
+ }
370
+ let localVarPath = `/auth/token`;
371
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
372
+ context: localVarHttpContext,
373
+ body: tokenRequest,
374
+ responseType: responseType_,
375
+ withCredentials: this.configuration.withCredentials,
376
+ headers: localVarHeaders,
377
+ observe: observe,
378
+ transferCache: localVarTransferCache,
379
+ reportProgress: reportProgress
380
+ });
381
+ }
382
+ generateTokenWithClaims(tokenRequest, role, establishmentAccess, observe = 'body', reportProgress = false, options) {
383
+ if (tokenRequest === null || tokenRequest === undefined) {
384
+ throw new Error('Required parameter tokenRequest was null or undefined when calling generateTokenWithClaims.');
385
+ }
386
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
387
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, role, 'role');
388
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, establishmentAccess, 'establishmentAccess');
389
+ let localVarHeaders = this.defaultHeaders;
390
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
391
+ 'application/json'
392
+ ]);
393
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
394
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
395
+ }
396
+ const localVarHttpContext = options?.context ?? new HttpContext();
397
+ const localVarTransferCache = options?.transferCache ?? true;
398
+ // to determine the Content-Type header
399
+ const consumes = [
400
+ 'application/json'
401
+ ];
402
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
403
+ if (httpContentTypeSelected !== undefined) {
404
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
405
+ }
406
+ let responseType_ = 'json';
407
+ if (localVarHttpHeaderAcceptSelected) {
408
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
409
+ responseType_ = 'text';
410
+ }
411
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
412
+ responseType_ = 'json';
413
+ }
414
+ else {
415
+ responseType_ = 'blob';
416
+ }
417
+ }
418
+ let localVarPath = `/auth/token-with-claims`;
419
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
420
+ context: localVarHttpContext,
421
+ body: tokenRequest,
422
+ params: localVarQueryParameters,
423
+ responseType: responseType_,
424
+ withCredentials: this.configuration.withCredentials,
425
+ headers: localVarHeaders,
426
+ observe: observe,
427
+ transferCache: localVarTransferCache,
428
+ reportProgress: reportProgress
429
+ });
430
+ }
431
+ login(loginRequestDTO, observe = 'body', reportProgress = false, options) {
432
+ if (loginRequestDTO === null || loginRequestDTO === undefined) {
433
+ throw new Error('Required parameter loginRequestDTO was null or undefined when calling login.');
434
+ }
435
+ let localVarHeaders = this.defaultHeaders;
436
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
437
+ 'application/json'
438
+ ]);
439
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
440
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
441
+ }
442
+ const localVarHttpContext = options?.context ?? new HttpContext();
443
+ const localVarTransferCache = options?.transferCache ?? true;
444
+ // to determine the Content-Type header
445
+ const consumes = [
446
+ 'application/json'
447
+ ];
448
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
449
+ if (httpContentTypeSelected !== undefined) {
450
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
451
+ }
452
+ let responseType_ = 'json';
453
+ if (localVarHttpHeaderAcceptSelected) {
454
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
455
+ responseType_ = 'text';
456
+ }
457
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
458
+ responseType_ = 'json';
459
+ }
460
+ else {
461
+ responseType_ = 'blob';
462
+ }
463
+ }
464
+ let localVarPath = `/auth/login`;
465
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
466
+ context: localVarHttpContext,
467
+ body: loginRequestDTO,
468
+ responseType: responseType_,
469
+ withCredentials: this.configuration.withCredentials,
470
+ headers: localVarHeaders,
471
+ observe: observe,
472
+ transferCache: localVarTransferCache,
473
+ reportProgress: reportProgress
474
+ });
475
+ }
476
+ revokeTokens(uid, observe = 'body', reportProgress = false, options) {
477
+ if (uid === null || uid === undefined) {
478
+ throw new Error('Required parameter uid was null or undefined when calling revokeTokens.');
479
+ }
480
+ let localVarHeaders = this.defaultHeaders;
481
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
482
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
483
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
484
+ }
485
+ const localVarHttpContext = options?.context ?? new HttpContext();
486
+ const localVarTransferCache = options?.transferCache ?? true;
487
+ let responseType_ = 'json';
488
+ if (localVarHttpHeaderAcceptSelected) {
489
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
490
+ responseType_ = 'text';
491
+ }
492
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
493
+ responseType_ = 'json';
494
+ }
495
+ else {
496
+ responseType_ = 'blob';
497
+ }
498
+ }
499
+ let localVarPath = `/auth/revoke-tokens/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
500
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
501
+ context: localVarHttpContext,
502
+ responseType: responseType_,
503
+ withCredentials: this.configuration.withCredentials,
504
+ headers: localVarHeaders,
505
+ observe: observe,
506
+ transferCache: localVarTransferCache,
507
+ reportProgress: reportProgress
508
+ });
509
+ }
510
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthenticationService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
511
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthenticationService, providedIn: 'root' });
512
+ }
513
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AuthenticationService, decorators: [{
514
+ type: Injectable,
515
+ args: [{
516
+ providedIn: 'root'
517
+ }]
518
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
519
+ type: Optional
520
+ }, {
521
+ type: Inject,
522
+ args: [BASE_PATH]
523
+ }] }, { type: Configuration, decorators: [{
524
+ type: Optional
525
+ }] }] });
526
+
527
+ /**
528
+ * karibu API
529
+ *
530
+ * Contact: support@karibu.ga
531
+ *
532
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
533
+ * https://openapi-generator.tech
534
+ * Do not edit the class manually.
535
+ */
536
+ /* tslint:disable:no-unused-variable member-ordering */
537
+ class BoardService extends BaseService {
538
+ httpClient;
539
+ constructor(httpClient, basePath, configuration) {
540
+ super(basePath, configuration);
541
+ this.httpClient = httpClient;
542
+ }
543
+ createBoard(boardRequestDTO, observe = 'body', reportProgress = false, options) {
544
+ if (boardRequestDTO === null || boardRequestDTO === undefined) {
545
+ throw new Error('Required parameter boardRequestDTO was null or undefined when calling createBoard.');
546
+ }
547
+ let localVarHeaders = this.defaultHeaders;
548
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
549
+ 'application/json'
550
+ ]);
551
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
552
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
553
+ }
554
+ const localVarHttpContext = options?.context ?? new HttpContext();
555
+ const localVarTransferCache = options?.transferCache ?? true;
556
+ // to determine the Content-Type header
557
+ const consumes = [
558
+ 'application/json'
559
+ ];
560
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
561
+ if (httpContentTypeSelected !== undefined) {
562
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
563
+ }
564
+ let responseType_ = 'json';
565
+ if (localVarHttpHeaderAcceptSelected) {
566
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
567
+ responseType_ = 'text';
568
+ }
569
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
570
+ responseType_ = 'json';
571
+ }
572
+ else {
573
+ responseType_ = 'blob';
574
+ }
575
+ }
576
+ let localVarPath = `/boards/create-board`;
577
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
578
+ context: localVarHttpContext,
579
+ body: boardRequestDTO,
580
+ responseType: responseType_,
581
+ withCredentials: this.configuration.withCredentials,
582
+ headers: localVarHeaders,
583
+ observe: observe,
584
+ transferCache: localVarTransferCache,
585
+ reportProgress: reportProgress
586
+ });
587
+ }
588
+ removeBoard(id, observe = 'body', reportProgress = false, options) {
589
+ if (id === null || id === undefined) {
590
+ throw new Error('Required parameter id was null or undefined when calling removeBoard.');
591
+ }
592
+ let localVarHeaders = this.defaultHeaders;
593
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
594
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
595
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
596
+ }
597
+ const localVarHttpContext = options?.context ?? new HttpContext();
598
+ const localVarTransferCache = options?.transferCache ?? true;
599
+ let responseType_ = 'json';
600
+ if (localVarHttpHeaderAcceptSelected) {
601
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
602
+ responseType_ = 'text';
603
+ }
604
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
605
+ responseType_ = 'json';
606
+ }
607
+ else {
608
+ responseType_ = 'blob';
609
+ }
610
+ }
611
+ let localVarPath = `/boards/delete-board/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
612
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
613
+ context: localVarHttpContext,
614
+ responseType: responseType_,
615
+ withCredentials: this.configuration.withCredentials,
616
+ headers: localVarHeaders,
617
+ observe: observe,
618
+ transferCache: localVarTransferCache,
619
+ reportProgress: reportProgress
620
+ });
621
+ }
622
+ retrieveAllBoard(observe = 'body', reportProgress = false, options) {
623
+ let localVarHeaders = this.defaultHeaders;
624
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
625
+ 'application/json'
626
+ ]);
627
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
628
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
629
+ }
630
+ const localVarHttpContext = options?.context ?? new HttpContext();
631
+ const localVarTransferCache = options?.transferCache ?? true;
632
+ let responseType_ = 'json';
633
+ if (localVarHttpHeaderAcceptSelected) {
634
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
635
+ responseType_ = 'text';
636
+ }
637
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
638
+ responseType_ = 'json';
639
+ }
640
+ else {
641
+ responseType_ = 'blob';
642
+ }
643
+ }
644
+ let localVarPath = `/boards/retrieve-boards`;
645
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
646
+ context: localVarHttpContext,
647
+ responseType: responseType_,
648
+ withCredentials: this.configuration.withCredentials,
649
+ headers: localVarHeaders,
650
+ observe: observe,
651
+ transferCache: localVarTransferCache,
652
+ reportProgress: reportProgress
653
+ });
654
+ }
655
+ retrieveBoard(id, observe = 'body', reportProgress = false, options) {
656
+ if (id === null || id === undefined) {
657
+ throw new Error('Required parameter id was null or undefined when calling retrieveBoard.');
658
+ }
659
+ let localVarHeaders = this.defaultHeaders;
660
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
661
+ 'application/json'
662
+ ]);
663
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
664
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
665
+ }
666
+ const localVarHttpContext = options?.context ?? new HttpContext();
667
+ const localVarTransferCache = options?.transferCache ?? true;
668
+ let responseType_ = 'json';
669
+ if (localVarHttpHeaderAcceptSelected) {
670
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
671
+ responseType_ = 'text';
672
+ }
673
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
674
+ responseType_ = 'json';
675
+ }
676
+ else {
677
+ responseType_ = 'blob';
678
+ }
679
+ }
680
+ let localVarPath = `/boards/retrieve-board/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
681
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
682
+ context: localVarHttpContext,
683
+ responseType: responseType_,
684
+ withCredentials: this.configuration.withCredentials,
685
+ headers: localVarHeaders,
686
+ observe: observe,
687
+ transferCache: localVarTransferCache,
688
+ reportProgress: reportProgress
689
+ });
690
+ }
691
+ retrieveBoardByEstablishmentId(establishmentId, observe = 'body', reportProgress = false, options) {
692
+ if (establishmentId === null || establishmentId === undefined) {
693
+ throw new Error('Required parameter establishmentId was null or undefined when calling retrieveBoardByEstablishmentId.');
694
+ }
695
+ let localVarHeaders = this.defaultHeaders;
696
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
697
+ 'application/json'
698
+ ]);
699
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
700
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
701
+ }
702
+ const localVarHttpContext = options?.context ?? new HttpContext();
703
+ const localVarTransferCache = options?.transferCache ?? true;
704
+ let responseType_ = 'json';
705
+ if (localVarHttpHeaderAcceptSelected) {
706
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
707
+ responseType_ = 'text';
708
+ }
709
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
710
+ responseType_ = 'json';
711
+ }
712
+ else {
713
+ responseType_ = 'blob';
714
+ }
715
+ }
716
+ let localVarPath = `/boards/retrieve-boards-by-establishment/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
717
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
718
+ context: localVarHttpContext,
719
+ responseType: responseType_,
720
+ withCredentials: this.configuration.withCredentials,
721
+ headers: localVarHeaders,
722
+ observe: observe,
723
+ transferCache: localVarTransferCache,
724
+ reportProgress: reportProgress
725
+ });
726
+ }
727
+ retrieveBoardByEstablishmentIdAndStatus(establishmentId, status, observe = 'body', reportProgress = false, options) {
728
+ if (establishmentId === null || establishmentId === undefined) {
729
+ throw new Error('Required parameter establishmentId was null or undefined when calling retrieveBoardByEstablishmentIdAndStatus.');
730
+ }
731
+ if (status === null || status === undefined) {
732
+ throw new Error('Required parameter status was null or undefined when calling retrieveBoardByEstablishmentIdAndStatus.');
733
+ }
734
+ let localVarHeaders = this.defaultHeaders;
735
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
736
+ 'application/json'
737
+ ]);
738
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
739
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
740
+ }
741
+ const localVarHttpContext = options?.context ?? new HttpContext();
742
+ const localVarTransferCache = options?.transferCache ?? true;
743
+ let responseType_ = 'json';
744
+ if (localVarHttpHeaderAcceptSelected) {
745
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
746
+ responseType_ = 'text';
747
+ }
748
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
749
+ responseType_ = 'json';
750
+ }
751
+ else {
752
+ responseType_ = 'blob';
753
+ }
754
+ }
755
+ let localVarPath = `/boards/retrieve-boards-by-establishment-and-status/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'OPEN' | 'CLOSED'", dataFormat: undefined })}`;
756
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
757
+ context: localVarHttpContext,
758
+ responseType: responseType_,
759
+ withCredentials: this.configuration.withCredentials,
760
+ headers: localVarHeaders,
761
+ observe: observe,
762
+ transferCache: localVarTransferCache,
763
+ reportProgress: reportProgress
764
+ });
765
+ }
766
+ retrieveBoardByNumber(number, observe = 'body', reportProgress = false, options) {
767
+ if (number === null || number === undefined) {
768
+ throw new Error('Required parameter number was null or undefined when calling retrieveBoardByNumber.');
769
+ }
770
+ let localVarHeaders = this.defaultHeaders;
771
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
772
+ 'application/json'
773
+ ]);
774
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
775
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
776
+ }
777
+ const localVarHttpContext = options?.context ?? new HttpContext();
778
+ const localVarTransferCache = options?.transferCache ?? true;
779
+ let responseType_ = 'json';
780
+ if (localVarHttpHeaderAcceptSelected) {
781
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
782
+ responseType_ = 'text';
783
+ }
784
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
785
+ responseType_ = 'json';
786
+ }
787
+ else {
788
+ responseType_ = 'blob';
789
+ }
790
+ }
791
+ let localVarPath = `/boards/retrieve-boards-by-number/${this.configuration.encodeParam({ name: "number", value: number, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
792
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
793
+ context: localVarHttpContext,
794
+ responseType: responseType_,
795
+ withCredentials: this.configuration.withCredentials,
796
+ headers: localVarHeaders,
797
+ observe: observe,
798
+ transferCache: localVarTransferCache,
799
+ reportProgress: reportProgress
800
+ });
801
+ }
802
+ retrieveBoardByReserved(reserved, observe = 'body', reportProgress = false, options) {
803
+ if (reserved === null || reserved === undefined) {
804
+ throw new Error('Required parameter reserved was null or undefined when calling retrieveBoardByReserved.');
805
+ }
806
+ let localVarHeaders = this.defaultHeaders;
807
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
808
+ 'application/json'
809
+ ]);
810
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
811
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
812
+ }
813
+ const localVarHttpContext = options?.context ?? new HttpContext();
814
+ const localVarTransferCache = options?.transferCache ?? true;
815
+ let responseType_ = 'json';
816
+ if (localVarHttpHeaderAcceptSelected) {
817
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
818
+ responseType_ = 'text';
819
+ }
820
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
821
+ responseType_ = 'json';
822
+ }
823
+ else {
824
+ responseType_ = 'blob';
825
+ }
826
+ }
827
+ let localVarPath = `/boards/retrieve-boards-by-reserved/${this.configuration.encodeParam({ name: "reserved", value: reserved, in: "path", style: "simple", explode: false, dataType: "boolean", dataFormat: undefined })}`;
828
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
829
+ context: localVarHttpContext,
830
+ responseType: responseType_,
831
+ withCredentials: this.configuration.withCredentials,
832
+ headers: localVarHeaders,
833
+ observe: observe,
834
+ transferCache: localVarTransferCache,
835
+ reportProgress: reportProgress
836
+ });
837
+ }
838
+ retrieveBoardByStatus(status, observe = 'body', reportProgress = false, options) {
839
+ if (status === null || status === undefined) {
840
+ throw new Error('Required parameter status was null or undefined when calling retrieveBoardByStatus.');
841
+ }
842
+ let localVarHeaders = this.defaultHeaders;
843
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
844
+ 'application/json'
845
+ ]);
846
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
847
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
848
+ }
849
+ const localVarHttpContext = options?.context ?? new HttpContext();
850
+ const localVarTransferCache = options?.transferCache ?? true;
851
+ let responseType_ = 'json';
852
+ if (localVarHttpHeaderAcceptSelected) {
853
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
854
+ responseType_ = 'text';
855
+ }
856
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
857
+ responseType_ = 'json';
858
+ }
859
+ else {
860
+ responseType_ = 'blob';
861
+ }
862
+ }
863
+ let localVarPath = `/boards/retrieve-boards-by-status/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'OPEN' | 'CLOSED'", dataFormat: undefined })}`;
864
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
865
+ context: localVarHttpContext,
866
+ responseType: responseType_,
867
+ withCredentials: this.configuration.withCredentials,
868
+ headers: localVarHeaders,
869
+ observe: observe,
870
+ transferCache: localVarTransferCache,
871
+ reportProgress: reportProgress
872
+ });
873
+ }
874
+ toggleReservation(id, observe = 'body', reportProgress = false, options) {
875
+ if (id === null || id === undefined) {
876
+ throw new Error('Required parameter id was null or undefined when calling toggleReservation.');
877
+ }
878
+ let localVarHeaders = this.defaultHeaders;
879
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
880
+ 'application/json'
881
+ ]);
882
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
883
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
884
+ }
885
+ const localVarHttpContext = options?.context ?? new HttpContext();
886
+ const localVarTransferCache = options?.transferCache ?? true;
887
+ let responseType_ = 'json';
888
+ if (localVarHttpHeaderAcceptSelected) {
889
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
890
+ responseType_ = 'text';
891
+ }
892
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
893
+ responseType_ = 'json';
894
+ }
895
+ else {
896
+ responseType_ = 'blob';
897
+ }
898
+ }
899
+ let localVarPath = `/boards/toggle-reservation/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
900
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
901
+ context: localVarHttpContext,
902
+ responseType: responseType_,
903
+ withCredentials: this.configuration.withCredentials,
904
+ headers: localVarHeaders,
905
+ observe: observe,
906
+ transferCache: localVarTransferCache,
907
+ reportProgress: reportProgress
908
+ });
909
+ }
910
+ updateBoard(id, boardRequestDTO, observe = 'body', reportProgress = false, options) {
911
+ if (id === null || id === undefined) {
912
+ throw new Error('Required parameter id was null or undefined when calling updateBoard.');
913
+ }
914
+ if (boardRequestDTO === null || boardRequestDTO === undefined) {
915
+ throw new Error('Required parameter boardRequestDTO was null or undefined when calling updateBoard.');
916
+ }
917
+ let localVarHeaders = this.defaultHeaders;
918
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
919
+ 'application/json'
920
+ ]);
921
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
922
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
923
+ }
924
+ const localVarHttpContext = options?.context ?? new HttpContext();
925
+ const localVarTransferCache = options?.transferCache ?? true;
926
+ // to determine the Content-Type header
927
+ const consumes = [
928
+ 'application/json'
929
+ ];
930
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
931
+ if (httpContentTypeSelected !== undefined) {
932
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
933
+ }
934
+ let responseType_ = 'json';
935
+ if (localVarHttpHeaderAcceptSelected) {
936
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
937
+ responseType_ = 'text';
938
+ }
939
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
940
+ responseType_ = 'json';
941
+ }
942
+ else {
943
+ responseType_ = 'blob';
944
+ }
945
+ }
946
+ let localVarPath = `/boards/update-board/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
947
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
948
+ context: localVarHttpContext,
949
+ body: boardRequestDTO,
950
+ responseType: responseType_,
951
+ withCredentials: this.configuration.withCredentials,
952
+ headers: localVarHeaders,
953
+ observe: observe,
954
+ transferCache: localVarTransferCache,
955
+ reportProgress: reportProgress
956
+ });
957
+ }
958
+ updateBoardStatus(id, status, observe = 'body', reportProgress = false, options) {
959
+ if (id === null || id === undefined) {
960
+ throw new Error('Required parameter id was null or undefined when calling updateBoardStatus.');
961
+ }
962
+ if (status === null || status === undefined) {
963
+ throw new Error('Required parameter status was null or undefined when calling updateBoardStatus.');
964
+ }
965
+ let localVarHeaders = this.defaultHeaders;
966
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
967
+ 'application/json'
968
+ ]);
969
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
970
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
971
+ }
972
+ const localVarHttpContext = options?.context ?? new HttpContext();
973
+ const localVarTransferCache = options?.transferCache ?? true;
974
+ let responseType_ = 'json';
975
+ if (localVarHttpHeaderAcceptSelected) {
976
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
977
+ responseType_ = 'text';
978
+ }
979
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
980
+ responseType_ = 'json';
981
+ }
982
+ else {
983
+ responseType_ = 'blob';
984
+ }
985
+ }
986
+ let localVarPath = `/boards/update-board-status/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'OPEN' | 'CLOSED'", dataFormat: undefined })}`;
987
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
988
+ context: localVarHttpContext,
989
+ responseType: responseType_,
990
+ withCredentials: this.configuration.withCredentials,
991
+ headers: localVarHeaders,
992
+ observe: observe,
993
+ transferCache: localVarTransferCache,
994
+ reportProgress: reportProgress
995
+ });
996
+ }
997
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BoardService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
998
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BoardService, providedIn: 'root' });
999
+ }
1000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BoardService, decorators: [{
1001
+ type: Injectable,
1002
+ args: [{
1003
+ providedIn: 'root'
1004
+ }]
1005
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1006
+ type: Optional
1007
+ }, {
1008
+ type: Inject,
1009
+ args: [BASE_PATH]
1010
+ }] }, { type: Configuration, decorators: [{
1011
+ type: Optional
1012
+ }] }] });
1013
+
1014
+ /**
1015
+ * karibu API
1016
+ *
1017
+ * Contact: support@karibu.ga
1018
+ *
1019
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1020
+ * https://openapi-generator.tech
1021
+ * Do not edit the class manually.
1022
+ */
1023
+ /* tslint:disable:no-unused-variable member-ordering */
1024
+ class EstablishmentService extends BaseService {
1025
+ httpClient;
1026
+ constructor(httpClient, basePath, configuration) {
1027
+ super(basePath, configuration);
1028
+ this.httpClient = httpClient;
1029
+ }
1030
+ createEstablishment(establishmentRequestDTO, observe = 'body', reportProgress = false, options) {
1031
+ if (establishmentRequestDTO === null || establishmentRequestDTO === undefined) {
1032
+ throw new Error('Required parameter establishmentRequestDTO was null or undefined when calling createEstablishment.');
1033
+ }
1034
+ let localVarHeaders = this.defaultHeaders;
1035
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1036
+ 'application/json'
1037
+ ]);
1038
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1039
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1040
+ }
1041
+ const localVarHttpContext = options?.context ?? new HttpContext();
1042
+ const localVarTransferCache = options?.transferCache ?? true;
1043
+ // to determine the Content-Type header
1044
+ const consumes = [
1045
+ 'application/json'
1046
+ ];
1047
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1048
+ if (httpContentTypeSelected !== undefined) {
1049
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1050
+ }
1051
+ let responseType_ = 'json';
1052
+ if (localVarHttpHeaderAcceptSelected) {
1053
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1054
+ responseType_ = 'text';
1055
+ }
1056
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1057
+ responseType_ = 'json';
1058
+ }
1059
+ else {
1060
+ responseType_ = 'blob';
1061
+ }
1062
+ }
1063
+ let localVarPath = `/establishments/create-establishment`;
1064
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1065
+ context: localVarHttpContext,
1066
+ body: establishmentRequestDTO,
1067
+ responseType: responseType_,
1068
+ withCredentials: this.configuration.withCredentials,
1069
+ headers: localVarHeaders,
1070
+ observe: observe,
1071
+ transferCache: localVarTransferCache,
1072
+ reportProgress: reportProgress
1073
+ });
1074
+ }
1075
+ removeEstablishment(id, observe = 'body', reportProgress = false, options) {
1076
+ if (id === null || id === undefined) {
1077
+ throw new Error('Required parameter id was null or undefined when calling removeEstablishment.');
1078
+ }
1079
+ let localVarHeaders = this.defaultHeaders;
1080
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1081
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1082
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1083
+ }
1084
+ const localVarHttpContext = options?.context ?? new HttpContext();
1085
+ const localVarTransferCache = options?.transferCache ?? true;
1086
+ let responseType_ = 'json';
1087
+ if (localVarHttpHeaderAcceptSelected) {
1088
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1089
+ responseType_ = 'text';
1090
+ }
1091
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1092
+ responseType_ = 'json';
1093
+ }
1094
+ else {
1095
+ responseType_ = 'blob';
1096
+ }
1097
+ }
1098
+ let localVarPath = `/establishments/delete-establishment/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1099
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1100
+ context: localVarHttpContext,
1101
+ responseType: responseType_,
1102
+ withCredentials: this.configuration.withCredentials,
1103
+ headers: localVarHeaders,
1104
+ observe: observe,
1105
+ transferCache: localVarTransferCache,
1106
+ reportProgress: reportProgress
1107
+ });
1108
+ }
1109
+ retrieveAllEstablishment(observe = 'body', reportProgress = false, options) {
1110
+ let localVarHeaders = this.defaultHeaders;
1111
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1112
+ 'application/json'
1113
+ ]);
1114
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1115
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1116
+ }
1117
+ const localVarHttpContext = options?.context ?? new HttpContext();
1118
+ const localVarTransferCache = options?.transferCache ?? true;
1119
+ let responseType_ = 'json';
1120
+ if (localVarHttpHeaderAcceptSelected) {
1121
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1122
+ responseType_ = 'text';
1123
+ }
1124
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1125
+ responseType_ = 'json';
1126
+ }
1127
+ else {
1128
+ responseType_ = 'blob';
1129
+ }
1130
+ }
1131
+ let localVarPath = `/establishments/retrieve-establishments`;
1132
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1133
+ context: localVarHttpContext,
1134
+ responseType: responseType_,
1135
+ withCredentials: this.configuration.withCredentials,
1136
+ headers: localVarHeaders,
1137
+ observe: observe,
1138
+ transferCache: localVarTransferCache,
1139
+ reportProgress: reportProgress
1140
+ });
1141
+ }
1142
+ retrieveEstablishment(id, observe = 'body', reportProgress = false, options) {
1143
+ if (id === null || id === undefined) {
1144
+ throw new Error('Required parameter id was null or undefined when calling retrieveEstablishment.');
1145
+ }
1146
+ let localVarHeaders = this.defaultHeaders;
1147
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1148
+ 'application/json'
1149
+ ]);
1150
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1151
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1152
+ }
1153
+ const localVarHttpContext = options?.context ?? new HttpContext();
1154
+ const localVarTransferCache = options?.transferCache ?? true;
1155
+ let responseType_ = 'json';
1156
+ if (localVarHttpHeaderAcceptSelected) {
1157
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1158
+ responseType_ = 'text';
1159
+ }
1160
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1161
+ responseType_ = 'json';
1162
+ }
1163
+ else {
1164
+ responseType_ = 'blob';
1165
+ }
1166
+ }
1167
+ let localVarPath = `/establishments/retrieve-establishment/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1168
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1169
+ context: localVarHttpContext,
1170
+ responseType: responseType_,
1171
+ withCredentials: this.configuration.withCredentials,
1172
+ headers: localVarHeaders,
1173
+ observe: observe,
1174
+ transferCache: localVarTransferCache,
1175
+ reportProgress: reportProgress
1176
+ });
1177
+ }
1178
+ retrieveEstablishmentByAddress(address, observe = 'body', reportProgress = false, options) {
1179
+ if (address === null || address === undefined) {
1180
+ throw new Error('Required parameter address was null or undefined when calling retrieveEstablishmentByAddress.');
1181
+ }
1182
+ let localVarHeaders = this.defaultHeaders;
1183
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1184
+ 'application/json'
1185
+ ]);
1186
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1187
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1188
+ }
1189
+ const localVarHttpContext = options?.context ?? new HttpContext();
1190
+ const localVarTransferCache = options?.transferCache ?? true;
1191
+ let responseType_ = 'json';
1192
+ if (localVarHttpHeaderAcceptSelected) {
1193
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1194
+ responseType_ = 'text';
1195
+ }
1196
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1197
+ responseType_ = 'json';
1198
+ }
1199
+ else {
1200
+ responseType_ = 'blob';
1201
+ }
1202
+ }
1203
+ let localVarPath = `/establishments/search-establishments-by-address/${this.configuration.encodeParam({ name: "address", value: address, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1204
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1205
+ context: localVarHttpContext,
1206
+ responseType: responseType_,
1207
+ withCredentials: this.configuration.withCredentials,
1208
+ headers: localVarHeaders,
1209
+ observe: observe,
1210
+ transferCache: localVarTransferCache,
1211
+ reportProgress: reportProgress
1212
+ });
1213
+ }
1214
+ retrieveEstablishmentByName(name, observe = 'body', reportProgress = false, options) {
1215
+ if (name === null || name === undefined) {
1216
+ throw new Error('Required parameter name was null or undefined when calling retrieveEstablishmentByName.');
1217
+ }
1218
+ let localVarHeaders = this.defaultHeaders;
1219
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1220
+ 'application/json'
1221
+ ]);
1222
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1223
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1224
+ }
1225
+ const localVarHttpContext = options?.context ?? new HttpContext();
1226
+ const localVarTransferCache = options?.transferCache ?? true;
1227
+ let responseType_ = 'json';
1228
+ if (localVarHttpHeaderAcceptSelected) {
1229
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1230
+ responseType_ = 'text';
1231
+ }
1232
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1233
+ responseType_ = 'json';
1234
+ }
1235
+ else {
1236
+ responseType_ = 'blob';
1237
+ }
1238
+ }
1239
+ let localVarPath = `/establishments/search-establishments-by-name/${this.configuration.encodeParam({ name: "name", value: name, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1240
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1241
+ context: localVarHttpContext,
1242
+ responseType: responseType_,
1243
+ withCredentials: this.configuration.withCredentials,
1244
+ headers: localVarHeaders,
1245
+ observe: observe,
1246
+ transferCache: localVarTransferCache,
1247
+ reportProgress: reportProgress
1248
+ });
1249
+ }
1250
+ retrieveEstablishmentByType(type, observe = 'body', reportProgress = false, options) {
1251
+ if (type === null || type === undefined) {
1252
+ throw new Error('Required parameter type was null or undefined when calling retrieveEstablishmentByType.');
1253
+ }
1254
+ let localVarHeaders = this.defaultHeaders;
1255
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1256
+ 'application/json'
1257
+ ]);
1258
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1259
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1260
+ }
1261
+ const localVarHttpContext = options?.context ?? new HttpContext();
1262
+ const localVarTransferCache = options?.transferCache ?? true;
1263
+ let responseType_ = 'json';
1264
+ if (localVarHttpHeaderAcceptSelected) {
1265
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1266
+ responseType_ = 'text';
1267
+ }
1268
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1269
+ responseType_ = 'json';
1270
+ }
1271
+ else {
1272
+ responseType_ = 'blob';
1273
+ }
1274
+ }
1275
+ let localVarPath = `/establishments/retrieve-establishments-by-type/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "'RESTAURANT' | 'BAR' | 'CAFE' | 'PUB' | 'BAKERY' | 'PASTRY_SHOP' | 'ICE_CREAM_PARLOUR' | 'FOOD_TRUCK' | 'FOOD_STAND' | 'FOOD_COURT' | 'CATERING' | 'CAFETERIA' | 'BUFFET' | 'SWEET_SHOP' | 'CONFECTIONERY' | 'CHOCOLATE_SHOP' | 'CANDY_STORE' | 'BISTRO' | 'BRASSERIE' | 'INN' | 'HOTEL' | 'MOTEL' | 'HOSTEL' | 'GUEST_HOUSE' | 'BED_AND_BREAKFAST' | 'RESORT' | 'SPA' | 'OTHER'", dataFormat: undefined })}`;
1276
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1277
+ context: localVarHttpContext,
1278
+ responseType: responseType_,
1279
+ withCredentials: this.configuration.withCredentials,
1280
+ headers: localVarHeaders,
1281
+ observe: observe,
1282
+ transferCache: localVarTransferCache,
1283
+ reportProgress: reportProgress
1284
+ });
1285
+ }
1286
+ updateEstablishment(id, establishmentRequestDTO, observe = 'body', reportProgress = false, options) {
1287
+ if (id === null || id === undefined) {
1288
+ throw new Error('Required parameter id was null or undefined when calling updateEstablishment.');
1289
+ }
1290
+ if (establishmentRequestDTO === null || establishmentRequestDTO === undefined) {
1291
+ throw new Error('Required parameter establishmentRequestDTO was null or undefined when calling updateEstablishment.');
1292
+ }
1293
+ let localVarHeaders = this.defaultHeaders;
1294
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1295
+ 'application/json'
1296
+ ]);
1297
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1298
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1299
+ }
1300
+ const localVarHttpContext = options?.context ?? new HttpContext();
1301
+ const localVarTransferCache = options?.transferCache ?? true;
1302
+ // to determine the Content-Type header
1303
+ const consumes = [
1304
+ 'application/json'
1305
+ ];
1306
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1307
+ if (httpContentTypeSelected !== undefined) {
1308
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1309
+ }
1310
+ let responseType_ = 'json';
1311
+ if (localVarHttpHeaderAcceptSelected) {
1312
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1313
+ responseType_ = 'text';
1314
+ }
1315
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1316
+ responseType_ = 'json';
1317
+ }
1318
+ else {
1319
+ responseType_ = 'blob';
1320
+ }
1321
+ }
1322
+ let localVarPath = `/establishments/update-establishment/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1323
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1324
+ context: localVarHttpContext,
1325
+ body: establishmentRequestDTO,
1326
+ responseType: responseType_,
1327
+ withCredentials: this.configuration.withCredentials,
1328
+ headers: localVarHeaders,
1329
+ observe: observe,
1330
+ transferCache: localVarTransferCache,
1331
+ reportProgress: reportProgress
1332
+ });
1333
+ }
1334
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EstablishmentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1335
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EstablishmentService, providedIn: 'root' });
1336
+ }
1337
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EstablishmentService, decorators: [{
1338
+ type: Injectable,
1339
+ args: [{
1340
+ providedIn: 'root'
1341
+ }]
1342
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1343
+ type: Optional
1344
+ }, {
1345
+ type: Inject,
1346
+ args: [BASE_PATH]
1347
+ }] }, { type: Configuration, decorators: [{
1348
+ type: Optional
1349
+ }] }] });
1350
+
1351
+ /**
1352
+ * karibu API
1353
+ *
1354
+ * Contact: support@karibu.ga
1355
+ *
1356
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1357
+ * https://openapi-generator.tech
1358
+ * Do not edit the class manually.
1359
+ */
1360
+ /* tslint:disable:no-unused-variable member-ordering */
1361
+ class EstablishmentAccessorService extends BaseService {
1362
+ httpClient;
1363
+ constructor(httpClient, basePath, configuration) {
1364
+ super(basePath, configuration);
1365
+ this.httpClient = httpClient;
1366
+ }
1367
+ createAccessor(establishmentId, observe = 'body', reportProgress = false, options) {
1368
+ if (establishmentId === null || establishmentId === undefined) {
1369
+ throw new Error('Required parameter establishmentId was null or undefined when calling createAccessor.');
1370
+ }
1371
+ let localVarHeaders = this.defaultHeaders;
1372
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1373
+ 'application/json'
1374
+ ]);
1375
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1376
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1377
+ }
1378
+ const localVarHttpContext = options?.context ?? new HttpContext();
1379
+ const localVarTransferCache = options?.transferCache ?? true;
1380
+ let responseType_ = 'json';
1381
+ if (localVarHttpHeaderAcceptSelected) {
1382
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1383
+ responseType_ = 'text';
1384
+ }
1385
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1386
+ responseType_ = 'json';
1387
+ }
1388
+ else {
1389
+ responseType_ = 'blob';
1390
+ }
1391
+ }
1392
+ let localVarPath = `/establishment-accessors/create-accessor/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1393
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1394
+ context: localVarHttpContext,
1395
+ responseType: responseType_,
1396
+ withCredentials: this.configuration.withCredentials,
1397
+ headers: localVarHeaders,
1398
+ observe: observe,
1399
+ transferCache: localVarTransferCache,
1400
+ reportProgress: reportProgress
1401
+ });
1402
+ }
1403
+ deleteAccessor(id, observe = 'body', reportProgress = false, options) {
1404
+ if (id === null || id === undefined) {
1405
+ throw new Error('Required parameter id was null or undefined when calling deleteAccessor.');
1406
+ }
1407
+ let localVarHeaders = this.defaultHeaders;
1408
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1409
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1410
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1411
+ }
1412
+ const localVarHttpContext = options?.context ?? new HttpContext();
1413
+ const localVarTransferCache = options?.transferCache ?? true;
1414
+ let responseType_ = 'json';
1415
+ if (localVarHttpHeaderAcceptSelected) {
1416
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1417
+ responseType_ = 'text';
1418
+ }
1419
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1420
+ responseType_ = 'json';
1421
+ }
1422
+ else {
1423
+ responseType_ = 'blob';
1424
+ }
1425
+ }
1426
+ let localVarPath = `/establishment-accessors/delete-accessor/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1427
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1428
+ context: localVarHttpContext,
1429
+ responseType: responseType_,
1430
+ withCredentials: this.configuration.withCredentials,
1431
+ headers: localVarHeaders,
1432
+ observe: observe,
1433
+ transferCache: localVarTransferCache,
1434
+ reportProgress: reportProgress
1435
+ });
1436
+ }
1437
+ getAccessorById(id, observe = 'body', reportProgress = false, options) {
1438
+ if (id === null || id === undefined) {
1439
+ throw new Error('Required parameter id was null or undefined when calling getAccessorById.');
1440
+ }
1441
+ let localVarHeaders = this.defaultHeaders;
1442
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1443
+ 'application/json'
1444
+ ]);
1445
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1446
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1447
+ }
1448
+ const localVarHttpContext = options?.context ?? new HttpContext();
1449
+ const localVarTransferCache = options?.transferCache ?? true;
1450
+ let responseType_ = 'json';
1451
+ if (localVarHttpHeaderAcceptSelected) {
1452
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1453
+ responseType_ = 'text';
1454
+ }
1455
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1456
+ responseType_ = 'json';
1457
+ }
1458
+ else {
1459
+ responseType_ = 'blob';
1460
+ }
1461
+ }
1462
+ let localVarPath = `/establishment-accessors/retrieve-accessor/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1463
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1464
+ context: localVarHttpContext,
1465
+ responseType: responseType_,
1466
+ withCredentials: this.configuration.withCredentials,
1467
+ headers: localVarHeaders,
1468
+ observe: observe,
1469
+ transferCache: localVarTransferCache,
1470
+ reportProgress: reportProgress
1471
+ });
1472
+ }
1473
+ getAllAccessors(observe = 'body', reportProgress = false, options) {
1474
+ let localVarHeaders = this.defaultHeaders;
1475
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1476
+ 'application/json'
1477
+ ]);
1478
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1479
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1480
+ }
1481
+ const localVarHttpContext = options?.context ?? new HttpContext();
1482
+ const localVarTransferCache = options?.transferCache ?? true;
1483
+ let responseType_ = 'json';
1484
+ if (localVarHttpHeaderAcceptSelected) {
1485
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1486
+ responseType_ = 'text';
1487
+ }
1488
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1489
+ responseType_ = 'json';
1490
+ }
1491
+ else {
1492
+ responseType_ = 'blob';
1493
+ }
1494
+ }
1495
+ let localVarPath = `/establishment-accessors/retrieve-accessors`;
1496
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1497
+ context: localVarHttpContext,
1498
+ responseType: responseType_,
1499
+ withCredentials: this.configuration.withCredentials,
1500
+ headers: localVarHeaders,
1501
+ observe: observe,
1502
+ transferCache: localVarTransferCache,
1503
+ reportProgress: reportProgress
1504
+ });
1505
+ }
1506
+ getEstablishmentByCredentials(loginAccessorRequestDTO, observe = 'body', reportProgress = false, options) {
1507
+ if (loginAccessorRequestDTO === null || loginAccessorRequestDTO === undefined) {
1508
+ throw new Error('Required parameter loginAccessorRequestDTO was null or undefined when calling getEstablishmentByCredentials.');
1509
+ }
1510
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1511
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, loginAccessorRequestDTO, 'loginAccessorRequestDTO');
1512
+ let localVarHeaders = this.defaultHeaders;
1513
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1514
+ 'application/json'
1515
+ ]);
1516
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1517
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1518
+ }
1519
+ const localVarHttpContext = options?.context ?? new HttpContext();
1520
+ const localVarTransferCache = options?.transferCache ?? true;
1521
+ let responseType_ = 'json';
1522
+ if (localVarHttpHeaderAcceptSelected) {
1523
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1524
+ responseType_ = 'text';
1525
+ }
1526
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1527
+ responseType_ = 'json';
1528
+ }
1529
+ else {
1530
+ responseType_ = 'blob';
1531
+ }
1532
+ }
1533
+ let localVarPath = `/establishment-accessors/get-establishment`;
1534
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1535
+ context: localVarHttpContext,
1536
+ params: localVarQueryParameters,
1537
+ responseType: responseType_,
1538
+ withCredentials: this.configuration.withCredentials,
1539
+ headers: localVarHeaders,
1540
+ observe: observe,
1541
+ transferCache: localVarTransferCache,
1542
+ reportProgress: reportProgress
1543
+ });
1544
+ }
1545
+ logAccess(id, observe = 'body', reportProgress = false, options) {
1546
+ if (id === null || id === undefined) {
1547
+ throw new Error('Required parameter id was null or undefined when calling logAccess.');
1548
+ }
1549
+ let localVarHeaders = this.defaultHeaders;
1550
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1551
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1552
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1553
+ }
1554
+ const localVarHttpContext = options?.context ?? new HttpContext();
1555
+ const localVarTransferCache = options?.transferCache ?? true;
1556
+ let responseType_ = 'json';
1557
+ if (localVarHttpHeaderAcceptSelected) {
1558
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1559
+ responseType_ = 'text';
1560
+ }
1561
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1562
+ responseType_ = 'json';
1563
+ }
1564
+ else {
1565
+ responseType_ = 'blob';
1566
+ }
1567
+ }
1568
+ let localVarPath = `/establishment-accessors/log-access/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1569
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1570
+ context: localVarHttpContext,
1571
+ responseType: responseType_,
1572
+ withCredentials: this.configuration.withCredentials,
1573
+ headers: localVarHeaders,
1574
+ observe: observe,
1575
+ transferCache: localVarTransferCache,
1576
+ reportProgress: reportProgress
1577
+ });
1578
+ }
1579
+ updateAccessorStatus(id, status, observe = 'body', reportProgress = false, options) {
1580
+ if (id === null || id === undefined) {
1581
+ throw new Error('Required parameter id was null or undefined when calling updateAccessorStatus.');
1582
+ }
1583
+ if (status === null || status === undefined) {
1584
+ throw new Error('Required parameter status was null or undefined when calling updateAccessorStatus.');
1585
+ }
1586
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1587
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, 'status');
1588
+ let localVarHeaders = this.defaultHeaders;
1589
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1590
+ 'application/json'
1591
+ ]);
1592
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1593
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1594
+ }
1595
+ const localVarHttpContext = options?.context ?? new HttpContext();
1596
+ const localVarTransferCache = options?.transferCache ?? true;
1597
+ let responseType_ = 'json';
1598
+ if (localVarHttpHeaderAcceptSelected) {
1599
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1600
+ responseType_ = 'text';
1601
+ }
1602
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1603
+ responseType_ = 'json';
1604
+ }
1605
+ else {
1606
+ responseType_ = 'blob';
1607
+ }
1608
+ }
1609
+ let localVarPath = `/establishment-accessors/update-status/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1610
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1611
+ context: localVarHttpContext,
1612
+ params: localVarQueryParameters,
1613
+ responseType: responseType_,
1614
+ withCredentials: this.configuration.withCredentials,
1615
+ headers: localVarHeaders,
1616
+ observe: observe,
1617
+ transferCache: localVarTransferCache,
1618
+ reportProgress: reportProgress
1619
+ });
1620
+ }
1621
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EstablishmentAccessorService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1622
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EstablishmentAccessorService, providedIn: 'root' });
1623
+ }
1624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EstablishmentAccessorService, decorators: [{
1625
+ type: Injectable,
1626
+ args: [{
1627
+ providedIn: 'root'
1628
+ }]
1629
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1630
+ type: Optional
1631
+ }, {
1632
+ type: Inject,
1633
+ args: [BASE_PATH]
1634
+ }] }, { type: Configuration, decorators: [{
1635
+ type: Optional
1636
+ }] }] });
1637
+
1638
+ /**
1639
+ * karibu API
1640
+ *
1641
+ * Contact: support@karibu.ga
1642
+ *
1643
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1644
+ * https://openapi-generator.tech
1645
+ * Do not edit the class manually.
1646
+ */
1647
+ /* tslint:disable:no-unused-variable member-ordering */
1648
+ class InvoiceService extends BaseService {
1649
+ httpClient;
1650
+ constructor(httpClient, basePath, configuration) {
1651
+ super(basePath, configuration);
1652
+ this.httpClient = httpClient;
1653
+ }
1654
+ createInvoice(invoiceDTO, observe = 'body', reportProgress = false, options) {
1655
+ if (invoiceDTO === null || invoiceDTO === undefined) {
1656
+ throw new Error('Required parameter invoiceDTO was null or undefined when calling createInvoice.');
1657
+ }
1658
+ let localVarHeaders = this.defaultHeaders;
1659
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1660
+ 'application/json'
1661
+ ]);
1662
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1663
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1664
+ }
1665
+ const localVarHttpContext = options?.context ?? new HttpContext();
1666
+ const localVarTransferCache = options?.transferCache ?? true;
1667
+ // to determine the Content-Type header
1668
+ const consumes = [
1669
+ 'application/json'
1670
+ ];
1671
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1672
+ if (httpContentTypeSelected !== undefined) {
1673
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1674
+ }
1675
+ let responseType_ = 'json';
1676
+ if (localVarHttpHeaderAcceptSelected) {
1677
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1678
+ responseType_ = 'text';
1679
+ }
1680
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1681
+ responseType_ = 'json';
1682
+ }
1683
+ else {
1684
+ responseType_ = 'blob';
1685
+ }
1686
+ }
1687
+ let localVarPath = `/invoices/create-invoice`;
1688
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1689
+ context: localVarHttpContext,
1690
+ body: invoiceDTO,
1691
+ responseType: responseType_,
1692
+ withCredentials: this.configuration.withCredentials,
1693
+ headers: localVarHeaders,
1694
+ observe: observe,
1695
+ transferCache: localVarTransferCache,
1696
+ reportProgress: reportProgress
1697
+ });
1698
+ }
1699
+ removeInvoice(id, observe = 'body', reportProgress = false, options) {
1700
+ if (id === null || id === undefined) {
1701
+ throw new Error('Required parameter id was null or undefined when calling removeInvoice.');
1702
+ }
1703
+ let localVarHeaders = this.defaultHeaders;
1704
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1705
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1706
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1707
+ }
1708
+ const localVarHttpContext = options?.context ?? new HttpContext();
1709
+ const localVarTransferCache = options?.transferCache ?? true;
1710
+ let responseType_ = 'json';
1711
+ if (localVarHttpHeaderAcceptSelected) {
1712
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1713
+ responseType_ = 'text';
1714
+ }
1715
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1716
+ responseType_ = 'json';
1717
+ }
1718
+ else {
1719
+ responseType_ = 'blob';
1720
+ }
1721
+ }
1722
+ let localVarPath = `/invoices/delete-invoice/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1723
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1724
+ context: localVarHttpContext,
1725
+ responseType: responseType_,
1726
+ withCredentials: this.configuration.withCredentials,
1727
+ headers: localVarHeaders,
1728
+ observe: observe,
1729
+ transferCache: localVarTransferCache,
1730
+ reportProgress: reportProgress
1731
+ });
1732
+ }
1733
+ retrieveAllInvoices(observe = 'body', reportProgress = false, options) {
1734
+ let localVarHeaders = this.defaultHeaders;
1735
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1736
+ 'application/json'
1737
+ ]);
1738
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1739
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1740
+ }
1741
+ const localVarHttpContext = options?.context ?? new HttpContext();
1742
+ const localVarTransferCache = options?.transferCache ?? true;
1743
+ let responseType_ = 'json';
1744
+ if (localVarHttpHeaderAcceptSelected) {
1745
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1746
+ responseType_ = 'text';
1747
+ }
1748
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1749
+ responseType_ = 'json';
1750
+ }
1751
+ else {
1752
+ responseType_ = 'blob';
1753
+ }
1754
+ }
1755
+ let localVarPath = `/invoices/retrieve-invoices`;
1756
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1757
+ context: localVarHttpContext,
1758
+ responseType: responseType_,
1759
+ withCredentials: this.configuration.withCredentials,
1760
+ headers: localVarHeaders,
1761
+ observe: observe,
1762
+ transferCache: localVarTransferCache,
1763
+ reportProgress: reportProgress
1764
+ });
1765
+ }
1766
+ retrieveInvoiceById(id, observe = 'body', reportProgress = false, options) {
1767
+ if (id === null || id === undefined) {
1768
+ throw new Error('Required parameter id was null or undefined when calling retrieveInvoiceById.');
1769
+ }
1770
+ let localVarHeaders = this.defaultHeaders;
1771
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1772
+ 'application/json'
1773
+ ]);
1774
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1775
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1776
+ }
1777
+ const localVarHttpContext = options?.context ?? new HttpContext();
1778
+ const localVarTransferCache = options?.transferCache ?? true;
1779
+ let responseType_ = 'json';
1780
+ if (localVarHttpHeaderAcceptSelected) {
1781
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1782
+ responseType_ = 'text';
1783
+ }
1784
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1785
+ responseType_ = 'json';
1786
+ }
1787
+ else {
1788
+ responseType_ = 'blob';
1789
+ }
1790
+ }
1791
+ let localVarPath = `/invoices/retrieve-invoice/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1792
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1793
+ context: localVarHttpContext,
1794
+ responseType: responseType_,
1795
+ withCredentials: this.configuration.withCredentials,
1796
+ headers: localVarHeaders,
1797
+ observe: observe,
1798
+ transferCache: localVarTransferCache,
1799
+ reportProgress: reportProgress
1800
+ });
1801
+ }
1802
+ retrieveInvoicesByDateBetween(start, end, observe = 'body', reportProgress = false, options) {
1803
+ if (start === null || start === undefined) {
1804
+ throw new Error('Required parameter start was null or undefined when calling retrieveInvoicesByDateBetween.');
1805
+ }
1806
+ if (end === null || end === undefined) {
1807
+ throw new Error('Required parameter end was null or undefined when calling retrieveInvoicesByDateBetween.');
1808
+ }
1809
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1810
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, start, 'start');
1811
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, end, 'end');
1812
+ let localVarHeaders = this.defaultHeaders;
1813
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1814
+ 'application/json'
1815
+ ]);
1816
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1817
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1818
+ }
1819
+ const localVarHttpContext = options?.context ?? new HttpContext();
1820
+ const localVarTransferCache = options?.transferCache ?? true;
1821
+ let responseType_ = 'json';
1822
+ if (localVarHttpHeaderAcceptSelected) {
1823
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1824
+ responseType_ = 'text';
1825
+ }
1826
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1827
+ responseType_ = 'json';
1828
+ }
1829
+ else {
1830
+ responseType_ = 'blob';
1831
+ }
1832
+ }
1833
+ let localVarPath = `/invoices/retrieve-invoices-by-date-range`;
1834
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1835
+ context: localVarHttpContext,
1836
+ params: localVarQueryParameters,
1837
+ responseType: responseType_,
1838
+ withCredentials: this.configuration.withCredentials,
1839
+ headers: localVarHeaders,
1840
+ observe: observe,
1841
+ transferCache: localVarTransferCache,
1842
+ reportProgress: reportProgress
1843
+ });
1844
+ }
1845
+ retrieveInvoicesByOrderId(orderId, observe = 'body', reportProgress = false, options) {
1846
+ if (orderId === null || orderId === undefined) {
1847
+ throw new Error('Required parameter orderId was null or undefined when calling retrieveInvoicesByOrderId.');
1848
+ }
1849
+ let localVarHeaders = this.defaultHeaders;
1850
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1851
+ 'application/json'
1852
+ ]);
1853
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1854
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1855
+ }
1856
+ const localVarHttpContext = options?.context ?? new HttpContext();
1857
+ const localVarTransferCache = options?.transferCache ?? true;
1858
+ let responseType_ = 'json';
1859
+ if (localVarHttpHeaderAcceptSelected) {
1860
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1861
+ responseType_ = 'text';
1862
+ }
1863
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1864
+ responseType_ = 'json';
1865
+ }
1866
+ else {
1867
+ responseType_ = 'blob';
1868
+ }
1869
+ }
1870
+ let localVarPath = `/invoices/retrieve-invoices-by-order/${this.configuration.encodeParam({ name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1871
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1872
+ context: localVarHttpContext,
1873
+ responseType: responseType_,
1874
+ withCredentials: this.configuration.withCredentials,
1875
+ headers: localVarHeaders,
1876
+ observe: observe,
1877
+ transferCache: localVarTransferCache,
1878
+ reportProgress: reportProgress
1879
+ });
1880
+ }
1881
+ retrieveTotalAmount(observe = 'body', reportProgress = false, options) {
1882
+ let localVarHeaders = this.defaultHeaders;
1883
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1884
+ 'application/json'
1885
+ ]);
1886
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1887
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1888
+ }
1889
+ const localVarHttpContext = options?.context ?? new HttpContext();
1890
+ const localVarTransferCache = options?.transferCache ?? true;
1891
+ let responseType_ = 'json';
1892
+ if (localVarHttpHeaderAcceptSelected) {
1893
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1894
+ responseType_ = 'text';
1895
+ }
1896
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1897
+ responseType_ = 'json';
1898
+ }
1899
+ else {
1900
+ responseType_ = 'blob';
1901
+ }
1902
+ }
1903
+ let localVarPath = `/invoices/retrieve-total-amount`;
1904
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1905
+ context: localVarHttpContext,
1906
+ responseType: responseType_,
1907
+ withCredentials: this.configuration.withCredentials,
1908
+ headers: localVarHeaders,
1909
+ observe: observe,
1910
+ transferCache: localVarTransferCache,
1911
+ reportProgress: reportProgress
1912
+ });
1913
+ }
1914
+ updateInvoice(id, invoiceDTO, observe = 'body', reportProgress = false, options) {
1915
+ if (id === null || id === undefined) {
1916
+ throw new Error('Required parameter id was null or undefined when calling updateInvoice.');
1917
+ }
1918
+ if (invoiceDTO === null || invoiceDTO === undefined) {
1919
+ throw new Error('Required parameter invoiceDTO was null or undefined when calling updateInvoice.');
1920
+ }
1921
+ let localVarHeaders = this.defaultHeaders;
1922
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1923
+ 'application/json'
1924
+ ]);
1925
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1926
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1927
+ }
1928
+ const localVarHttpContext = options?.context ?? new HttpContext();
1929
+ const localVarTransferCache = options?.transferCache ?? true;
1930
+ // to determine the Content-Type header
1931
+ const consumes = [
1932
+ 'application/json'
1933
+ ];
1934
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1935
+ if (httpContentTypeSelected !== undefined) {
1936
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1937
+ }
1938
+ let responseType_ = 'json';
1939
+ if (localVarHttpHeaderAcceptSelected) {
1940
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1941
+ responseType_ = 'text';
1942
+ }
1943
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1944
+ responseType_ = 'json';
1945
+ }
1946
+ else {
1947
+ responseType_ = 'blob';
1948
+ }
1949
+ }
1950
+ let localVarPath = `/invoices/update-invoice/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
1951
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1952
+ context: localVarHttpContext,
1953
+ body: invoiceDTO,
1954
+ responseType: responseType_,
1955
+ withCredentials: this.configuration.withCredentials,
1956
+ headers: localVarHeaders,
1957
+ observe: observe,
1958
+ transferCache: localVarTransferCache,
1959
+ reportProgress: reportProgress
1960
+ });
1961
+ }
1962
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InvoiceService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1963
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InvoiceService, providedIn: 'root' });
1964
+ }
1965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InvoiceService, decorators: [{
1966
+ type: Injectable,
1967
+ args: [{
1968
+ providedIn: 'root'
1969
+ }]
1970
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1971
+ type: Optional
1972
+ }, {
1973
+ type: Inject,
1974
+ args: [BASE_PATH]
1975
+ }] }, { type: Configuration, decorators: [{
1976
+ type: Optional
1977
+ }] }] });
1978
+
1979
+ /**
1980
+ * karibu API
1981
+ *
1982
+ * Contact: support@karibu.ga
1983
+ *
1984
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1985
+ * https://openapi-generator.tech
1986
+ * Do not edit the class manually.
1987
+ */
1988
+ /* tslint:disable:no-unused-variable member-ordering */
1989
+ class OrderService extends BaseService {
1990
+ httpClient;
1991
+ constructor(httpClient, basePath, configuration) {
1992
+ super(basePath, configuration);
1993
+ this.httpClient = httpClient;
1994
+ }
1995
+ createOrder(orderRequestDTO, observe = 'body', reportProgress = false, options) {
1996
+ if (orderRequestDTO === null || orderRequestDTO === undefined) {
1997
+ throw new Error('Required parameter orderRequestDTO was null or undefined when calling createOrder.');
1998
+ }
1999
+ let localVarHeaders = this.defaultHeaders;
2000
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2001
+ 'application/json'
2002
+ ]);
2003
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2004
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2005
+ }
2006
+ const localVarHttpContext = options?.context ?? new HttpContext();
2007
+ const localVarTransferCache = options?.transferCache ?? true;
2008
+ // to determine the Content-Type header
2009
+ const consumes = [
2010
+ 'application/json'
2011
+ ];
2012
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2013
+ if (httpContentTypeSelected !== undefined) {
2014
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2015
+ }
2016
+ let responseType_ = 'json';
2017
+ if (localVarHttpHeaderAcceptSelected) {
2018
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2019
+ responseType_ = 'text';
2020
+ }
2021
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2022
+ responseType_ = 'json';
2023
+ }
2024
+ else {
2025
+ responseType_ = 'blob';
2026
+ }
2027
+ }
2028
+ let localVarPath = `/orders/create-order`;
2029
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
2030
+ context: localVarHttpContext,
2031
+ body: orderRequestDTO,
2032
+ responseType: responseType_,
2033
+ withCredentials: this.configuration.withCredentials,
2034
+ headers: localVarHeaders,
2035
+ observe: observe,
2036
+ transferCache: localVarTransferCache,
2037
+ reportProgress: reportProgress
2038
+ });
2039
+ }
2040
+ removeOrder(id, observe = 'body', reportProgress = false, options) {
2041
+ if (id === null || id === undefined) {
2042
+ throw new Error('Required parameter id was null or undefined when calling removeOrder.');
2043
+ }
2044
+ let localVarHeaders = this.defaultHeaders;
2045
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2046
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2047
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2048
+ }
2049
+ const localVarHttpContext = options?.context ?? new HttpContext();
2050
+ const localVarTransferCache = options?.transferCache ?? true;
2051
+ let responseType_ = 'json';
2052
+ if (localVarHttpHeaderAcceptSelected) {
2053
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2054
+ responseType_ = 'text';
2055
+ }
2056
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2057
+ responseType_ = 'json';
2058
+ }
2059
+ else {
2060
+ responseType_ = 'blob';
2061
+ }
2062
+ }
2063
+ let localVarPath = `/orders/delete-order/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2064
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
2065
+ context: localVarHttpContext,
2066
+ responseType: responseType_,
2067
+ withCredentials: this.configuration.withCredentials,
2068
+ headers: localVarHeaders,
2069
+ observe: observe,
2070
+ transferCache: localVarTransferCache,
2071
+ reportProgress: reportProgress
2072
+ });
2073
+ }
2074
+ retrieveAllOrders(observe = 'body', reportProgress = false, options) {
2075
+ let localVarHeaders = this.defaultHeaders;
2076
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2077
+ 'application/json'
2078
+ ]);
2079
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2080
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2081
+ }
2082
+ const localVarHttpContext = options?.context ?? new HttpContext();
2083
+ const localVarTransferCache = options?.transferCache ?? true;
2084
+ let responseType_ = 'json';
2085
+ if (localVarHttpHeaderAcceptSelected) {
2086
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2087
+ responseType_ = 'text';
2088
+ }
2089
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2090
+ responseType_ = 'json';
2091
+ }
2092
+ else {
2093
+ responseType_ = 'blob';
2094
+ }
2095
+ }
2096
+ let localVarPath = `/orders/retrieve-orders`;
2097
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2098
+ context: localVarHttpContext,
2099
+ responseType: responseType_,
2100
+ withCredentials: this.configuration.withCredentials,
2101
+ headers: localVarHeaders,
2102
+ observe: observe,
2103
+ transferCache: localVarTransferCache,
2104
+ reportProgress: reportProgress
2105
+ });
2106
+ }
2107
+ retrieveOrderById(id, observe = 'body', reportProgress = false, options) {
2108
+ if (id === null || id === undefined) {
2109
+ throw new Error('Required parameter id was null or undefined when calling retrieveOrderById.');
2110
+ }
2111
+ let localVarHeaders = this.defaultHeaders;
2112
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2113
+ 'application/json'
2114
+ ]);
2115
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2116
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2117
+ }
2118
+ const localVarHttpContext = options?.context ?? new HttpContext();
2119
+ const localVarTransferCache = options?.transferCache ?? true;
2120
+ let responseType_ = 'json';
2121
+ if (localVarHttpHeaderAcceptSelected) {
2122
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2123
+ responseType_ = 'text';
2124
+ }
2125
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2126
+ responseType_ = 'json';
2127
+ }
2128
+ else {
2129
+ responseType_ = 'blob';
2130
+ }
2131
+ }
2132
+ let localVarPath = `/orders/retrieve-order/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2133
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2134
+ context: localVarHttpContext,
2135
+ responseType: responseType_,
2136
+ withCredentials: this.configuration.withCredentials,
2137
+ headers: localVarHeaders,
2138
+ observe: observe,
2139
+ transferCache: localVarTransferCache,
2140
+ reportProgress: reportProgress
2141
+ });
2142
+ }
2143
+ retrieveOrdersByDateRange(start, end, observe = 'body', reportProgress = false, options) {
2144
+ if (start === null || start === undefined) {
2145
+ throw new Error('Required parameter start was null or undefined when calling retrieveOrdersByDateRange.');
2146
+ }
2147
+ if (end === null || end === undefined) {
2148
+ throw new Error('Required parameter end was null or undefined when calling retrieveOrdersByDateRange.');
2149
+ }
2150
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2151
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, start, 'start');
2152
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, end, 'end');
2153
+ let localVarHeaders = this.defaultHeaders;
2154
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2155
+ 'application/json'
2156
+ ]);
2157
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2158
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2159
+ }
2160
+ const localVarHttpContext = options?.context ?? new HttpContext();
2161
+ const localVarTransferCache = options?.transferCache ?? true;
2162
+ let responseType_ = 'json';
2163
+ if (localVarHttpHeaderAcceptSelected) {
2164
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2165
+ responseType_ = 'text';
2166
+ }
2167
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2168
+ responseType_ = 'json';
2169
+ }
2170
+ else {
2171
+ responseType_ = 'blob';
2172
+ }
2173
+ }
2174
+ let localVarPath = `/orders/retrieve-orders-by-date`;
2175
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2176
+ context: localVarHttpContext,
2177
+ params: localVarQueryParameters,
2178
+ responseType: responseType_,
2179
+ withCredentials: this.configuration.withCredentials,
2180
+ headers: localVarHeaders,
2181
+ observe: observe,
2182
+ transferCache: localVarTransferCache,
2183
+ reportProgress: reportProgress
2184
+ });
2185
+ }
2186
+ retrieveOrdersByStatus(status, observe = 'body', reportProgress = false, options) {
2187
+ if (status === null || status === undefined) {
2188
+ throw new Error('Required parameter status was null or undefined when calling retrieveOrdersByStatus.');
2189
+ }
2190
+ let localVarHeaders = this.defaultHeaders;
2191
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2192
+ 'application/json'
2193
+ ]);
2194
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2195
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2196
+ }
2197
+ const localVarHttpContext = options?.context ?? new HttpContext();
2198
+ const localVarTransferCache = options?.transferCache ?? true;
2199
+ let responseType_ = 'json';
2200
+ if (localVarHttpHeaderAcceptSelected) {
2201
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2202
+ responseType_ = 'text';
2203
+ }
2204
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2205
+ responseType_ = 'json';
2206
+ }
2207
+ else {
2208
+ responseType_ = 'blob';
2209
+ }
2210
+ }
2211
+ let localVarPath = `/orders/retrieve-orders-by-status/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'IN_PROGRESS' | 'PAID'", dataFormat: undefined })}`;
2212
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2213
+ context: localVarHttpContext,
2214
+ responseType: responseType_,
2215
+ withCredentials: this.configuration.withCredentials,
2216
+ headers: localVarHeaders,
2217
+ observe: observe,
2218
+ transferCache: localVarTransferCache,
2219
+ reportProgress: reportProgress
2220
+ });
2221
+ }
2222
+ updateOrder(id, orderRequestDTO, observe = 'body', reportProgress = false, options) {
2223
+ if (id === null || id === undefined) {
2224
+ throw new Error('Required parameter id was null or undefined when calling updateOrder.');
2225
+ }
2226
+ if (orderRequestDTO === null || orderRequestDTO === undefined) {
2227
+ throw new Error('Required parameter orderRequestDTO was null or undefined when calling updateOrder.');
2228
+ }
2229
+ let localVarHeaders = this.defaultHeaders;
2230
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2231
+ 'application/json'
2232
+ ]);
2233
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2234
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2235
+ }
2236
+ const localVarHttpContext = options?.context ?? new HttpContext();
2237
+ const localVarTransferCache = options?.transferCache ?? true;
2238
+ // to determine the Content-Type header
2239
+ const consumes = [
2240
+ 'application/json'
2241
+ ];
2242
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2243
+ if (httpContentTypeSelected !== undefined) {
2244
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2245
+ }
2246
+ let responseType_ = 'json';
2247
+ if (localVarHttpHeaderAcceptSelected) {
2248
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2249
+ responseType_ = 'text';
2250
+ }
2251
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2252
+ responseType_ = 'json';
2253
+ }
2254
+ else {
2255
+ responseType_ = 'blob';
2256
+ }
2257
+ }
2258
+ let localVarPath = `/orders/update-order/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2259
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2260
+ context: localVarHttpContext,
2261
+ body: orderRequestDTO,
2262
+ responseType: responseType_,
2263
+ withCredentials: this.configuration.withCredentials,
2264
+ headers: localVarHeaders,
2265
+ observe: observe,
2266
+ transferCache: localVarTransferCache,
2267
+ reportProgress: reportProgress
2268
+ });
2269
+ }
2270
+ updateOrderStatus(id, status, observe = 'body', reportProgress = false, options) {
2271
+ if (id === null || id === undefined) {
2272
+ throw new Error('Required parameter id was null or undefined when calling updateOrderStatus.');
2273
+ }
2274
+ if (status === null || status === undefined) {
2275
+ throw new Error('Required parameter status was null or undefined when calling updateOrderStatus.');
2276
+ }
2277
+ let localVarHeaders = this.defaultHeaders;
2278
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2279
+ 'application/json'
2280
+ ]);
2281
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2282
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2283
+ }
2284
+ const localVarHttpContext = options?.context ?? new HttpContext();
2285
+ const localVarTransferCache = options?.transferCache ?? true;
2286
+ let responseType_ = 'json';
2287
+ if (localVarHttpHeaderAcceptSelected) {
2288
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2289
+ responseType_ = 'text';
2290
+ }
2291
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2292
+ responseType_ = 'json';
2293
+ }
2294
+ else {
2295
+ responseType_ = 'blob';
2296
+ }
2297
+ }
2298
+ let localVarPath = `/orders/update-order-status/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'IN_PROGRESS' | 'PAID'", dataFormat: undefined })}`;
2299
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2300
+ context: localVarHttpContext,
2301
+ responseType: responseType_,
2302
+ withCredentials: this.configuration.withCredentials,
2303
+ headers: localVarHeaders,
2304
+ observe: observe,
2305
+ transferCache: localVarTransferCache,
2306
+ reportProgress: reportProgress
2307
+ });
2308
+ }
2309
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OrderService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2310
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OrderService, providedIn: 'root' });
2311
+ }
2312
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OrderService, decorators: [{
2313
+ type: Injectable,
2314
+ args: [{
2315
+ providedIn: 'root'
2316
+ }]
2317
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2318
+ type: Optional
2319
+ }, {
2320
+ type: Inject,
2321
+ args: [BASE_PATH]
2322
+ }] }, { type: Configuration, decorators: [{
2323
+ type: Optional
2324
+ }] }] });
2325
+
2326
+ /**
2327
+ * karibu API
2328
+ *
2329
+ * Contact: support@karibu.ga
2330
+ *
2331
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2332
+ * https://openapi-generator.tech
2333
+ * Do not edit the class manually.
2334
+ */
2335
+ /* tslint:disable:no-unused-variable member-ordering */
2336
+ class OrderItemService extends BaseService {
2337
+ httpClient;
2338
+ constructor(httpClient, basePath, configuration) {
2339
+ super(basePath, configuration);
2340
+ this.httpClient = httpClient;
2341
+ }
2342
+ createOrderItem(orderItemRequestDTO, observe = 'body', reportProgress = false, options) {
2343
+ if (orderItemRequestDTO === null || orderItemRequestDTO === undefined) {
2344
+ throw new Error('Required parameter orderItemRequestDTO was null or undefined when calling createOrderItem.');
2345
+ }
2346
+ let localVarHeaders = this.defaultHeaders;
2347
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2348
+ 'application/json'
2349
+ ]);
2350
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2351
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2352
+ }
2353
+ const localVarHttpContext = options?.context ?? new HttpContext();
2354
+ const localVarTransferCache = options?.transferCache ?? true;
2355
+ // to determine the Content-Type header
2356
+ const consumes = [
2357
+ 'application/json'
2358
+ ];
2359
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2360
+ if (httpContentTypeSelected !== undefined) {
2361
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2362
+ }
2363
+ let responseType_ = 'json';
2364
+ if (localVarHttpHeaderAcceptSelected) {
2365
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2366
+ responseType_ = 'text';
2367
+ }
2368
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2369
+ responseType_ = 'json';
2370
+ }
2371
+ else {
2372
+ responseType_ = 'blob';
2373
+ }
2374
+ }
2375
+ let localVarPath = `/order-items/create-order-item`;
2376
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
2377
+ context: localVarHttpContext,
2378
+ body: orderItemRequestDTO,
2379
+ responseType: responseType_,
2380
+ withCredentials: this.configuration.withCredentials,
2381
+ headers: localVarHeaders,
2382
+ observe: observe,
2383
+ transferCache: localVarTransferCache,
2384
+ reportProgress: reportProgress
2385
+ });
2386
+ }
2387
+ removeOrderItem(id, observe = 'body', reportProgress = false, options) {
2388
+ if (id === null || id === undefined) {
2389
+ throw new Error('Required parameter id was null or undefined when calling removeOrderItem.');
2390
+ }
2391
+ let localVarHeaders = this.defaultHeaders;
2392
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2393
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2394
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2395
+ }
2396
+ const localVarHttpContext = options?.context ?? new HttpContext();
2397
+ const localVarTransferCache = options?.transferCache ?? true;
2398
+ let responseType_ = 'json';
2399
+ if (localVarHttpHeaderAcceptSelected) {
2400
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2401
+ responseType_ = 'text';
2402
+ }
2403
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2404
+ responseType_ = 'json';
2405
+ }
2406
+ else {
2407
+ responseType_ = 'blob';
2408
+ }
2409
+ }
2410
+ let localVarPath = `/order-items/delete-order-item/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2411
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
2412
+ context: localVarHttpContext,
2413
+ responseType: responseType_,
2414
+ withCredentials: this.configuration.withCredentials,
2415
+ headers: localVarHeaders,
2416
+ observe: observe,
2417
+ transferCache: localVarTransferCache,
2418
+ reportProgress: reportProgress
2419
+ });
2420
+ }
2421
+ retrieveAllOrderItems(observe = 'body', reportProgress = false, options) {
2422
+ let localVarHeaders = this.defaultHeaders;
2423
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2424
+ 'application/json'
2425
+ ]);
2426
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2427
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2428
+ }
2429
+ const localVarHttpContext = options?.context ?? new HttpContext();
2430
+ const localVarTransferCache = options?.transferCache ?? true;
2431
+ let responseType_ = 'json';
2432
+ if (localVarHttpHeaderAcceptSelected) {
2433
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2434
+ responseType_ = 'text';
2435
+ }
2436
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2437
+ responseType_ = 'json';
2438
+ }
2439
+ else {
2440
+ responseType_ = 'blob';
2441
+ }
2442
+ }
2443
+ let localVarPath = `/order-items/retrieve-order-items`;
2444
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2445
+ context: localVarHttpContext,
2446
+ responseType: responseType_,
2447
+ withCredentials: this.configuration.withCredentials,
2448
+ headers: localVarHeaders,
2449
+ observe: observe,
2450
+ transferCache: localVarTransferCache,
2451
+ reportProgress: reportProgress
2452
+ });
2453
+ }
2454
+ retrieveOrderItemById(id, observe = 'body', reportProgress = false, options) {
2455
+ if (id === null || id === undefined) {
2456
+ throw new Error('Required parameter id was null or undefined when calling retrieveOrderItemById.');
2457
+ }
2458
+ let localVarHeaders = this.defaultHeaders;
2459
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2460
+ 'application/json'
2461
+ ]);
2462
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2463
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2464
+ }
2465
+ const localVarHttpContext = options?.context ?? new HttpContext();
2466
+ const localVarTransferCache = options?.transferCache ?? true;
2467
+ let responseType_ = 'json';
2468
+ if (localVarHttpHeaderAcceptSelected) {
2469
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2470
+ responseType_ = 'text';
2471
+ }
2472
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2473
+ responseType_ = 'json';
2474
+ }
2475
+ else {
2476
+ responseType_ = 'blob';
2477
+ }
2478
+ }
2479
+ let localVarPath = `/order-items/retrieve-order-item/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2480
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2481
+ context: localVarHttpContext,
2482
+ responseType: responseType_,
2483
+ withCredentials: this.configuration.withCredentials,
2484
+ headers: localVarHeaders,
2485
+ observe: observe,
2486
+ transferCache: localVarTransferCache,
2487
+ reportProgress: reportProgress
2488
+ });
2489
+ }
2490
+ retrieveOrderItemsByOrderId(orderId, observe = 'body', reportProgress = false, options) {
2491
+ if (orderId === null || orderId === undefined) {
2492
+ throw new Error('Required parameter orderId was null or undefined when calling retrieveOrderItemsByOrderId.');
2493
+ }
2494
+ let localVarHeaders = this.defaultHeaders;
2495
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2496
+ 'application/json'
2497
+ ]);
2498
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2499
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2500
+ }
2501
+ const localVarHttpContext = options?.context ?? new HttpContext();
2502
+ const localVarTransferCache = options?.transferCache ?? true;
2503
+ let responseType_ = 'json';
2504
+ if (localVarHttpHeaderAcceptSelected) {
2505
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2506
+ responseType_ = 'text';
2507
+ }
2508
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2509
+ responseType_ = 'json';
2510
+ }
2511
+ else {
2512
+ responseType_ = 'blob';
2513
+ }
2514
+ }
2515
+ let localVarPath = `/order-items/retrieve-order-items-by-order/${this.configuration.encodeParam({ name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2516
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2517
+ context: localVarHttpContext,
2518
+ responseType: responseType_,
2519
+ withCredentials: this.configuration.withCredentials,
2520
+ headers: localVarHeaders,
2521
+ observe: observe,
2522
+ transferCache: localVarTransferCache,
2523
+ reportProgress: reportProgress
2524
+ });
2525
+ }
2526
+ retrieveOrderItemsByProductId(productId, observe = 'body', reportProgress = false, options) {
2527
+ if (productId === null || productId === undefined) {
2528
+ throw new Error('Required parameter productId was null or undefined when calling retrieveOrderItemsByProductId.');
2529
+ }
2530
+ let localVarHeaders = this.defaultHeaders;
2531
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2532
+ 'application/json'
2533
+ ]);
2534
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2535
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2536
+ }
2537
+ const localVarHttpContext = options?.context ?? new HttpContext();
2538
+ const localVarTransferCache = options?.transferCache ?? true;
2539
+ let responseType_ = 'json';
2540
+ if (localVarHttpHeaderAcceptSelected) {
2541
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2542
+ responseType_ = 'text';
2543
+ }
2544
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2545
+ responseType_ = 'json';
2546
+ }
2547
+ else {
2548
+ responseType_ = 'blob';
2549
+ }
2550
+ }
2551
+ let localVarPath = `/order-items/retrieve-order-items-by-product/${this.configuration.encodeParam({ name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2552
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2553
+ context: localVarHttpContext,
2554
+ responseType: responseType_,
2555
+ withCredentials: this.configuration.withCredentials,
2556
+ headers: localVarHeaders,
2557
+ observe: observe,
2558
+ transferCache: localVarTransferCache,
2559
+ reportProgress: reportProgress
2560
+ });
2561
+ }
2562
+ retrieveTopSellingProducts(observe = 'body', reportProgress = false, options) {
2563
+ let localVarHeaders = this.defaultHeaders;
2564
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2565
+ 'application/json'
2566
+ ]);
2567
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2568
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2569
+ }
2570
+ const localVarHttpContext = options?.context ?? new HttpContext();
2571
+ const localVarTransferCache = options?.transferCache ?? true;
2572
+ let responseType_ = 'json';
2573
+ if (localVarHttpHeaderAcceptSelected) {
2574
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2575
+ responseType_ = 'text';
2576
+ }
2577
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2578
+ responseType_ = 'json';
2579
+ }
2580
+ else {
2581
+ responseType_ = 'blob';
2582
+ }
2583
+ }
2584
+ let localVarPath = `/order-items/retrieve-top-products`;
2585
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2586
+ context: localVarHttpContext,
2587
+ responseType: responseType_,
2588
+ withCredentials: this.configuration.withCredentials,
2589
+ headers: localVarHeaders,
2590
+ observe: observe,
2591
+ transferCache: localVarTransferCache,
2592
+ reportProgress: reportProgress
2593
+ });
2594
+ }
2595
+ updateOrderItem(id, orderItemRequestDTO, observe = 'body', reportProgress = false, options) {
2596
+ if (id === null || id === undefined) {
2597
+ throw new Error('Required parameter id was null or undefined when calling updateOrderItem.');
2598
+ }
2599
+ if (orderItemRequestDTO === null || orderItemRequestDTO === undefined) {
2600
+ throw new Error('Required parameter orderItemRequestDTO was null or undefined when calling updateOrderItem.');
2601
+ }
2602
+ let localVarHeaders = this.defaultHeaders;
2603
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2604
+ 'application/json'
2605
+ ]);
2606
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2607
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2608
+ }
2609
+ const localVarHttpContext = options?.context ?? new HttpContext();
2610
+ const localVarTransferCache = options?.transferCache ?? true;
2611
+ // to determine the Content-Type header
2612
+ const consumes = [
2613
+ 'application/json'
2614
+ ];
2615
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2616
+ if (httpContentTypeSelected !== undefined) {
2617
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2618
+ }
2619
+ let responseType_ = 'json';
2620
+ if (localVarHttpHeaderAcceptSelected) {
2621
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2622
+ responseType_ = 'text';
2623
+ }
2624
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2625
+ responseType_ = 'json';
2626
+ }
2627
+ else {
2628
+ responseType_ = 'blob';
2629
+ }
2630
+ }
2631
+ let localVarPath = `/order-items/update-order-item/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2632
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2633
+ context: localVarHttpContext,
2634
+ body: orderItemRequestDTO,
2635
+ responseType: responseType_,
2636
+ withCredentials: this.configuration.withCredentials,
2637
+ headers: localVarHeaders,
2638
+ observe: observe,
2639
+ transferCache: localVarTransferCache,
2640
+ reportProgress: reportProgress
2641
+ });
2642
+ }
2643
+ updateOrderItemQuantity(id, quantity, observe = 'body', reportProgress = false, options) {
2644
+ if (id === null || id === undefined) {
2645
+ throw new Error('Required parameter id was null or undefined when calling updateOrderItemQuantity.');
2646
+ }
2647
+ if (quantity === null || quantity === undefined) {
2648
+ throw new Error('Required parameter quantity was null or undefined when calling updateOrderItemQuantity.');
2649
+ }
2650
+ let localVarHeaders = this.defaultHeaders;
2651
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2652
+ 'application/json'
2653
+ ]);
2654
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2655
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2656
+ }
2657
+ const localVarHttpContext = options?.context ?? new HttpContext();
2658
+ const localVarTransferCache = options?.transferCache ?? true;
2659
+ let responseType_ = 'json';
2660
+ if (localVarHttpHeaderAcceptSelected) {
2661
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2662
+ responseType_ = 'text';
2663
+ }
2664
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2665
+ responseType_ = 'json';
2666
+ }
2667
+ else {
2668
+ responseType_ = 'blob';
2669
+ }
2670
+ }
2671
+ let localVarPath = `/order-items/update-order-item-quantity/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/${this.configuration.encodeParam({ name: "quantity", value: quantity, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
2672
+ return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, {
2673
+ context: localVarHttpContext,
2674
+ responseType: responseType_,
2675
+ withCredentials: this.configuration.withCredentials,
2676
+ headers: localVarHeaders,
2677
+ observe: observe,
2678
+ transferCache: localVarTransferCache,
2679
+ reportProgress: reportProgress
2680
+ });
2681
+ }
2682
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OrderItemService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2683
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OrderItemService, providedIn: 'root' });
2684
+ }
2685
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OrderItemService, decorators: [{
2686
+ type: Injectable,
2687
+ args: [{
2688
+ providedIn: 'root'
2689
+ }]
2690
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2691
+ type: Optional
2692
+ }, {
2693
+ type: Inject,
2694
+ args: [BASE_PATH]
2695
+ }] }, { type: Configuration, decorators: [{
2696
+ type: Optional
2697
+ }] }] });
2698
+
2699
+ /**
2700
+ * karibu API
2701
+ *
2702
+ * Contact: support@karibu.ga
2703
+ *
2704
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2705
+ * https://openapi-generator.tech
2706
+ * Do not edit the class manually.
2707
+ */
2708
+ /* tslint:disable:no-unused-variable member-ordering */
2709
+ class PaymentService extends BaseService {
2710
+ httpClient;
2711
+ constructor(httpClient, basePath, configuration) {
2712
+ super(basePath, configuration);
2713
+ this.httpClient = httpClient;
2714
+ }
2715
+ createPayment(paymentDTO, observe = 'body', reportProgress = false, options) {
2716
+ if (paymentDTO === null || paymentDTO === undefined) {
2717
+ throw new Error('Required parameter paymentDTO was null or undefined when calling createPayment.');
2718
+ }
2719
+ let localVarHeaders = this.defaultHeaders;
2720
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2721
+ 'application/json'
2722
+ ]);
2723
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2724
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2725
+ }
2726
+ const localVarHttpContext = options?.context ?? new HttpContext();
2727
+ const localVarTransferCache = options?.transferCache ?? true;
2728
+ // to determine the Content-Type header
2729
+ const consumes = [
2730
+ 'application/json'
2731
+ ];
2732
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2733
+ if (httpContentTypeSelected !== undefined) {
2734
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2735
+ }
2736
+ let responseType_ = 'json';
2737
+ if (localVarHttpHeaderAcceptSelected) {
2738
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2739
+ responseType_ = 'text';
2740
+ }
2741
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2742
+ responseType_ = 'json';
2743
+ }
2744
+ else {
2745
+ responseType_ = 'blob';
2746
+ }
2747
+ }
2748
+ let localVarPath = `/payments/create-payment`;
2749
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
2750
+ context: localVarHttpContext,
2751
+ body: paymentDTO,
2752
+ responseType: responseType_,
2753
+ withCredentials: this.configuration.withCredentials,
2754
+ headers: localVarHeaders,
2755
+ observe: observe,
2756
+ transferCache: localVarTransferCache,
2757
+ reportProgress: reportProgress
2758
+ });
2759
+ }
2760
+ removePayment(id, observe = 'body', reportProgress = false, options) {
2761
+ if (id === null || id === undefined) {
2762
+ throw new Error('Required parameter id was null or undefined when calling removePayment.');
2763
+ }
2764
+ let localVarHeaders = this.defaultHeaders;
2765
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2766
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2767
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2768
+ }
2769
+ const localVarHttpContext = options?.context ?? new HttpContext();
2770
+ const localVarTransferCache = options?.transferCache ?? true;
2771
+ let responseType_ = 'json';
2772
+ if (localVarHttpHeaderAcceptSelected) {
2773
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2774
+ responseType_ = 'text';
2775
+ }
2776
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2777
+ responseType_ = 'json';
2778
+ }
2779
+ else {
2780
+ responseType_ = 'blob';
2781
+ }
2782
+ }
2783
+ let localVarPath = `/payments/delete-payment/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2784
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
2785
+ context: localVarHttpContext,
2786
+ responseType: responseType_,
2787
+ withCredentials: this.configuration.withCredentials,
2788
+ headers: localVarHeaders,
2789
+ observe: observe,
2790
+ transferCache: localVarTransferCache,
2791
+ reportProgress: reportProgress
2792
+ });
2793
+ }
2794
+ retrieveAllPayments(observe = 'body', reportProgress = false, options) {
2795
+ let localVarHeaders = this.defaultHeaders;
2796
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2797
+ 'application/json'
2798
+ ]);
2799
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2800
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2801
+ }
2802
+ const localVarHttpContext = options?.context ?? new HttpContext();
2803
+ const localVarTransferCache = options?.transferCache ?? true;
2804
+ let responseType_ = 'json';
2805
+ if (localVarHttpHeaderAcceptSelected) {
2806
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2807
+ responseType_ = 'text';
2808
+ }
2809
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2810
+ responseType_ = 'json';
2811
+ }
2812
+ else {
2813
+ responseType_ = 'blob';
2814
+ }
2815
+ }
2816
+ let localVarPath = `/payments/retrieve-payments`;
2817
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2818
+ context: localVarHttpContext,
2819
+ responseType: responseType_,
2820
+ withCredentials: this.configuration.withCredentials,
2821
+ headers: localVarHeaders,
2822
+ observe: observe,
2823
+ transferCache: localVarTransferCache,
2824
+ reportProgress: reportProgress
2825
+ });
2826
+ }
2827
+ retrievePaymentById(id, observe = 'body', reportProgress = false, options) {
2828
+ if (id === null || id === undefined) {
2829
+ throw new Error('Required parameter id was null or undefined when calling retrievePaymentById.');
2830
+ }
2831
+ let localVarHeaders = this.defaultHeaders;
2832
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2833
+ 'application/json'
2834
+ ]);
2835
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2836
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2837
+ }
2838
+ const localVarHttpContext = options?.context ?? new HttpContext();
2839
+ const localVarTransferCache = options?.transferCache ?? true;
2840
+ let responseType_ = 'json';
2841
+ if (localVarHttpHeaderAcceptSelected) {
2842
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2843
+ responseType_ = 'text';
2844
+ }
2845
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2846
+ responseType_ = 'json';
2847
+ }
2848
+ else {
2849
+ responseType_ = 'blob';
2850
+ }
2851
+ }
2852
+ let localVarPath = `/payments/retrieve-payment/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2853
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2854
+ context: localVarHttpContext,
2855
+ responseType: responseType_,
2856
+ withCredentials: this.configuration.withCredentials,
2857
+ headers: localVarHeaders,
2858
+ observe: observe,
2859
+ transferCache: localVarTransferCache,
2860
+ reportProgress: reportProgress
2861
+ });
2862
+ }
2863
+ retrievePaymentByMethod(method, observe = 'body', reportProgress = false, options) {
2864
+ if (method === null || method === undefined) {
2865
+ throw new Error('Required parameter method was null or undefined when calling retrievePaymentByMethod.');
2866
+ }
2867
+ let localVarHeaders = this.defaultHeaders;
2868
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2869
+ 'application/json'
2870
+ ]);
2871
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2872
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2873
+ }
2874
+ const localVarHttpContext = options?.context ?? new HttpContext();
2875
+ const localVarTransferCache = options?.transferCache ?? true;
2876
+ let responseType_ = 'json';
2877
+ if (localVarHttpHeaderAcceptSelected) {
2878
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2879
+ responseType_ = 'text';
2880
+ }
2881
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2882
+ responseType_ = 'json';
2883
+ }
2884
+ else {
2885
+ responseType_ = 'blob';
2886
+ }
2887
+ }
2888
+ let localVarPath = `/payments/retrieve-payments-by-method/${this.configuration.encodeParam({ name: "method", value: method, in: "path", style: "simple", explode: false, dataType: "'CASH' | 'CARD'", dataFormat: undefined })}`;
2889
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2890
+ context: localVarHttpContext,
2891
+ responseType: responseType_,
2892
+ withCredentials: this.configuration.withCredentials,
2893
+ headers: localVarHeaders,
2894
+ observe: observe,
2895
+ transferCache: localVarTransferCache,
2896
+ reportProgress: reportProgress
2897
+ });
2898
+ }
2899
+ retrievePaymentByOrderId(orderId, observe = 'body', reportProgress = false, options) {
2900
+ if (orderId === null || orderId === undefined) {
2901
+ throw new Error('Required parameter orderId was null or undefined when calling retrievePaymentByOrderId.');
2902
+ }
2903
+ let localVarHeaders = this.defaultHeaders;
2904
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2905
+ 'application/json'
2906
+ ]);
2907
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2908
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2909
+ }
2910
+ const localVarHttpContext = options?.context ?? new HttpContext();
2911
+ const localVarTransferCache = options?.transferCache ?? true;
2912
+ let responseType_ = 'json';
2913
+ if (localVarHttpHeaderAcceptSelected) {
2914
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2915
+ responseType_ = 'text';
2916
+ }
2917
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2918
+ responseType_ = 'json';
2919
+ }
2920
+ else {
2921
+ responseType_ = 'blob';
2922
+ }
2923
+ }
2924
+ let localVarPath = `/payments/retrieve-payments-by-order/${this.configuration.encodeParam({ name: "orderId", value: orderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2925
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2926
+ context: localVarHttpContext,
2927
+ responseType: responseType_,
2928
+ withCredentials: this.configuration.withCredentials,
2929
+ headers: localVarHeaders,
2930
+ observe: observe,
2931
+ transferCache: localVarTransferCache,
2932
+ reportProgress: reportProgress
2933
+ });
2934
+ }
2935
+ retrievePaymentByStatus(status, observe = 'body', reportProgress = false, options) {
2936
+ if (status === null || status === undefined) {
2937
+ throw new Error('Required parameter status was null or undefined when calling retrievePaymentByStatus.');
2938
+ }
2939
+ let localVarHeaders = this.defaultHeaders;
2940
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2941
+ 'application/json'
2942
+ ]);
2943
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2944
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2945
+ }
2946
+ const localVarHttpContext = options?.context ?? new HttpContext();
2947
+ const localVarTransferCache = options?.transferCache ?? true;
2948
+ let responseType_ = 'json';
2949
+ if (localVarHttpHeaderAcceptSelected) {
2950
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2951
+ responseType_ = 'text';
2952
+ }
2953
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2954
+ responseType_ = 'json';
2955
+ }
2956
+ else {
2957
+ responseType_ = 'blob';
2958
+ }
2959
+ }
2960
+ let localVarPath = `/payments/retrieve-payments-by-status/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'PENDING' | 'VALIDATED'", dataFormat: undefined })}`;
2961
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2962
+ context: localVarHttpContext,
2963
+ responseType: responseType_,
2964
+ withCredentials: this.configuration.withCredentials,
2965
+ headers: localVarHeaders,
2966
+ observe: observe,
2967
+ transferCache: localVarTransferCache,
2968
+ reportProgress: reportProgress
2969
+ });
2970
+ }
2971
+ retrieveTotalValidatedPayments(observe = 'body', reportProgress = false, options) {
2972
+ let localVarHeaders = this.defaultHeaders;
2973
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2974
+ 'application/json'
2975
+ ]);
2976
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2977
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2978
+ }
2979
+ const localVarHttpContext = options?.context ?? new HttpContext();
2980
+ const localVarTransferCache = options?.transferCache ?? true;
2981
+ let responseType_ = 'json';
2982
+ if (localVarHttpHeaderAcceptSelected) {
2983
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2984
+ responseType_ = 'text';
2985
+ }
2986
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2987
+ responseType_ = 'json';
2988
+ }
2989
+ else {
2990
+ responseType_ = 'blob';
2991
+ }
2992
+ }
2993
+ let localVarPath = `/payments/retrieve-total-validated-payments`;
2994
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2995
+ context: localVarHttpContext,
2996
+ responseType: responseType_,
2997
+ withCredentials: this.configuration.withCredentials,
2998
+ headers: localVarHeaders,
2999
+ observe: observe,
3000
+ transferCache: localVarTransferCache,
3001
+ reportProgress: reportProgress
3002
+ });
3003
+ }
3004
+ updatePayment(id, paymentDTO, observe = 'body', reportProgress = false, options) {
3005
+ if (id === null || id === undefined) {
3006
+ throw new Error('Required parameter id was null or undefined when calling updatePayment.');
3007
+ }
3008
+ if (paymentDTO === null || paymentDTO === undefined) {
3009
+ throw new Error('Required parameter paymentDTO was null or undefined when calling updatePayment.');
3010
+ }
3011
+ let localVarHeaders = this.defaultHeaders;
3012
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3013
+ 'application/json'
3014
+ ]);
3015
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3016
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3017
+ }
3018
+ const localVarHttpContext = options?.context ?? new HttpContext();
3019
+ const localVarTransferCache = options?.transferCache ?? true;
3020
+ // to determine the Content-Type header
3021
+ const consumes = [
3022
+ 'application/json'
3023
+ ];
3024
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3025
+ if (httpContentTypeSelected !== undefined) {
3026
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3027
+ }
3028
+ let responseType_ = 'json';
3029
+ if (localVarHttpHeaderAcceptSelected) {
3030
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3031
+ responseType_ = 'text';
3032
+ }
3033
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3034
+ responseType_ = 'json';
3035
+ }
3036
+ else {
3037
+ responseType_ = 'blob';
3038
+ }
3039
+ }
3040
+ let localVarPath = `/payments/update-payment/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3041
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3042
+ context: localVarHttpContext,
3043
+ body: paymentDTO,
3044
+ responseType: responseType_,
3045
+ withCredentials: this.configuration.withCredentials,
3046
+ headers: localVarHeaders,
3047
+ observe: observe,
3048
+ transferCache: localVarTransferCache,
3049
+ reportProgress: reportProgress
3050
+ });
3051
+ }
3052
+ updatePaymentStatus(id, status, observe = 'body', reportProgress = false, options) {
3053
+ if (id === null || id === undefined) {
3054
+ throw new Error('Required parameter id was null or undefined when calling updatePaymentStatus.');
3055
+ }
3056
+ if (status === null || status === undefined) {
3057
+ throw new Error('Required parameter status was null or undefined when calling updatePaymentStatus.');
3058
+ }
3059
+ let localVarHeaders = this.defaultHeaders;
3060
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3061
+ 'application/json'
3062
+ ]);
3063
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3064
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3065
+ }
3066
+ const localVarHttpContext = options?.context ?? new HttpContext();
3067
+ const localVarTransferCache = options?.transferCache ?? true;
3068
+ let responseType_ = 'json';
3069
+ if (localVarHttpHeaderAcceptSelected) {
3070
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3071
+ responseType_ = 'text';
3072
+ }
3073
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3074
+ responseType_ = 'json';
3075
+ }
3076
+ else {
3077
+ responseType_ = 'blob';
3078
+ }
3079
+ }
3080
+ let localVarPath = `/payments/update-payment-status/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "'PENDING' | 'VALIDATED'", dataFormat: undefined })}`;
3081
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3082
+ context: localVarHttpContext,
3083
+ responseType: responseType_,
3084
+ withCredentials: this.configuration.withCredentials,
3085
+ headers: localVarHeaders,
3086
+ observe: observe,
3087
+ transferCache: localVarTransferCache,
3088
+ reportProgress: reportProgress
3089
+ });
3090
+ }
3091
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaymentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3092
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaymentService, providedIn: 'root' });
3093
+ }
3094
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PaymentService, decorators: [{
3095
+ type: Injectable,
3096
+ args: [{
3097
+ providedIn: 'root'
3098
+ }]
3099
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
3100
+ type: Optional
3101
+ }, {
3102
+ type: Inject,
3103
+ args: [BASE_PATH]
3104
+ }] }, { type: Configuration, decorators: [{
3105
+ type: Optional
3106
+ }] }] });
3107
+
3108
+ /**
3109
+ * karibu API
3110
+ *
3111
+ * Contact: support@karibu.ga
3112
+ *
3113
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3114
+ * https://openapi-generator.tech
3115
+ * Do not edit the class manually.
3116
+ */
3117
+ /* tslint:disable:no-unused-variable member-ordering */
3118
+ class ProductService extends BaseService {
3119
+ httpClient;
3120
+ constructor(httpClient, basePath, configuration) {
3121
+ super(basePath, configuration);
3122
+ this.httpClient = httpClient;
3123
+ }
3124
+ createProduct(productRequestDTO, observe = 'body', reportProgress = false, options) {
3125
+ if (productRequestDTO === null || productRequestDTO === undefined) {
3126
+ throw new Error('Required parameter productRequestDTO was null or undefined when calling createProduct.');
3127
+ }
3128
+ let localVarHeaders = this.defaultHeaders;
3129
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3130
+ 'application/json'
3131
+ ]);
3132
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3133
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3134
+ }
3135
+ const localVarHttpContext = options?.context ?? new HttpContext();
3136
+ const localVarTransferCache = options?.transferCache ?? true;
3137
+ // to determine the Content-Type header
3138
+ const consumes = [
3139
+ 'application/json'
3140
+ ];
3141
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3142
+ if (httpContentTypeSelected !== undefined) {
3143
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3144
+ }
3145
+ let responseType_ = 'json';
3146
+ if (localVarHttpHeaderAcceptSelected) {
3147
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3148
+ responseType_ = 'text';
3149
+ }
3150
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3151
+ responseType_ = 'json';
3152
+ }
3153
+ else {
3154
+ responseType_ = 'blob';
3155
+ }
3156
+ }
3157
+ let localVarPath = `/products/create-product`;
3158
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
3159
+ context: localVarHttpContext,
3160
+ body: productRequestDTO,
3161
+ responseType: responseType_,
3162
+ withCredentials: this.configuration.withCredentials,
3163
+ headers: localVarHeaders,
3164
+ observe: observe,
3165
+ transferCache: localVarTransferCache,
3166
+ reportProgress: reportProgress
3167
+ });
3168
+ }
3169
+ removeProduct(id, observe = 'body', reportProgress = false, options) {
3170
+ if (id === null || id === undefined) {
3171
+ throw new Error('Required parameter id was null or undefined when calling removeProduct.');
3172
+ }
3173
+ let localVarHeaders = this.defaultHeaders;
3174
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3175
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3176
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3177
+ }
3178
+ const localVarHttpContext = options?.context ?? new HttpContext();
3179
+ const localVarTransferCache = options?.transferCache ?? true;
3180
+ let responseType_ = 'json';
3181
+ if (localVarHttpHeaderAcceptSelected) {
3182
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3183
+ responseType_ = 'text';
3184
+ }
3185
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3186
+ responseType_ = 'json';
3187
+ }
3188
+ else {
3189
+ responseType_ = 'blob';
3190
+ }
3191
+ }
3192
+ let localVarPath = `/products/delete-product/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3193
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
3194
+ context: localVarHttpContext,
3195
+ responseType: responseType_,
3196
+ withCredentials: this.configuration.withCredentials,
3197
+ headers: localVarHeaders,
3198
+ observe: observe,
3199
+ transferCache: localVarTransferCache,
3200
+ reportProgress: reportProgress
3201
+ });
3202
+ }
3203
+ retrieveAllProducts(observe = 'body', reportProgress = false, options) {
3204
+ let localVarHeaders = this.defaultHeaders;
3205
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3206
+ 'application/json'
3207
+ ]);
3208
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3209
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3210
+ }
3211
+ const localVarHttpContext = options?.context ?? new HttpContext();
3212
+ const localVarTransferCache = options?.transferCache ?? true;
3213
+ let responseType_ = 'json';
3214
+ if (localVarHttpHeaderAcceptSelected) {
3215
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3216
+ responseType_ = 'text';
3217
+ }
3218
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3219
+ responseType_ = 'json';
3220
+ }
3221
+ else {
3222
+ responseType_ = 'blob';
3223
+ }
3224
+ }
3225
+ let localVarPath = `/products/retrieve-products`;
3226
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3227
+ context: localVarHttpContext,
3228
+ responseType: responseType_,
3229
+ withCredentials: this.configuration.withCredentials,
3230
+ headers: localVarHeaders,
3231
+ observe: observe,
3232
+ transferCache: localVarTransferCache,
3233
+ reportProgress: reportProgress
3234
+ });
3235
+ }
3236
+ retrieveProductByCategory(category, observe = 'body', reportProgress = false, options) {
3237
+ if (category === null || category === undefined) {
3238
+ throw new Error('Required parameter category was null or undefined when calling retrieveProductByCategory.');
3239
+ }
3240
+ let localVarHeaders = this.defaultHeaders;
3241
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3242
+ 'application/json'
3243
+ ]);
3244
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3245
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3246
+ }
3247
+ const localVarHttpContext = options?.context ?? new HttpContext();
3248
+ const localVarTransferCache = options?.transferCache ?? true;
3249
+ let responseType_ = 'json';
3250
+ if (localVarHttpHeaderAcceptSelected) {
3251
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3252
+ responseType_ = 'text';
3253
+ }
3254
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3255
+ responseType_ = 'json';
3256
+ }
3257
+ else {
3258
+ responseType_ = 'blob';
3259
+ }
3260
+ }
3261
+ let localVarPath = `/products/retrieve-products-by-category/${this.configuration.encodeParam({ name: "category", value: category, in: "path", style: "simple", explode: false, dataType: "'DRINK' | 'MEAL' | 'DESSERT' | 'SNACK'", dataFormat: undefined })}`;
3262
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3263
+ context: localVarHttpContext,
3264
+ responseType: responseType_,
3265
+ withCredentials: this.configuration.withCredentials,
3266
+ headers: localVarHeaders,
3267
+ observe: observe,
3268
+ transferCache: localVarTransferCache,
3269
+ reportProgress: reportProgress
3270
+ });
3271
+ }
3272
+ retrieveProductById(id, observe = 'body', reportProgress = false, options) {
3273
+ if (id === null || id === undefined) {
3274
+ throw new Error('Required parameter id was null or undefined when calling retrieveProductById.');
3275
+ }
3276
+ let localVarHeaders = this.defaultHeaders;
3277
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3278
+ 'application/json'
3279
+ ]);
3280
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3281
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3282
+ }
3283
+ const localVarHttpContext = options?.context ?? new HttpContext();
3284
+ const localVarTransferCache = options?.transferCache ?? true;
3285
+ let responseType_ = 'json';
3286
+ if (localVarHttpHeaderAcceptSelected) {
3287
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3288
+ responseType_ = 'text';
3289
+ }
3290
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3291
+ responseType_ = 'json';
3292
+ }
3293
+ else {
3294
+ responseType_ = 'blob';
3295
+ }
3296
+ }
3297
+ let localVarPath = `/products/retrieve-product/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3298
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3299
+ context: localVarHttpContext,
3300
+ responseType: responseType_,
3301
+ withCredentials: this.configuration.withCredentials,
3302
+ headers: localVarHeaders,
3303
+ observe: observe,
3304
+ transferCache: localVarTransferCache,
3305
+ reportProgress: reportProgress
3306
+ });
3307
+ }
3308
+ updateProduct(id, productRequestDTO, observe = 'body', reportProgress = false, options) {
3309
+ if (id === null || id === undefined) {
3310
+ throw new Error('Required parameter id was null or undefined when calling updateProduct.');
3311
+ }
3312
+ if (productRequestDTO === null || productRequestDTO === undefined) {
3313
+ throw new Error('Required parameter productRequestDTO was null or undefined when calling updateProduct.');
3314
+ }
3315
+ let localVarHeaders = this.defaultHeaders;
3316
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3317
+ 'application/json'
3318
+ ]);
3319
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3320
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3321
+ }
3322
+ const localVarHttpContext = options?.context ?? new HttpContext();
3323
+ const localVarTransferCache = options?.transferCache ?? true;
3324
+ // to determine the Content-Type header
3325
+ const consumes = [
3326
+ 'application/json'
3327
+ ];
3328
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3329
+ if (httpContentTypeSelected !== undefined) {
3330
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3331
+ }
3332
+ let responseType_ = 'json';
3333
+ if (localVarHttpHeaderAcceptSelected) {
3334
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3335
+ responseType_ = 'text';
3336
+ }
3337
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3338
+ responseType_ = 'json';
3339
+ }
3340
+ else {
3341
+ responseType_ = 'blob';
3342
+ }
3343
+ }
3344
+ let localVarPath = `/products/update-product/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3345
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3346
+ context: localVarHttpContext,
3347
+ body: productRequestDTO,
3348
+ responseType: responseType_,
3349
+ withCredentials: this.configuration.withCredentials,
3350
+ headers: localVarHeaders,
3351
+ observe: observe,
3352
+ transferCache: localVarTransferCache,
3353
+ reportProgress: reportProgress
3354
+ });
3355
+ }
3356
+ updateProductStock(id, quantity, observe = 'body', reportProgress = false, options) {
3357
+ if (id === null || id === undefined) {
3358
+ throw new Error('Required parameter id was null or undefined when calling updateProductStock.');
3359
+ }
3360
+ if (quantity === null || quantity === undefined) {
3361
+ throw new Error('Required parameter quantity was null or undefined when calling updateProductStock.');
3362
+ }
3363
+ let localVarHeaders = this.defaultHeaders;
3364
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3365
+ 'application/json'
3366
+ ]);
3367
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3368
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3369
+ }
3370
+ const localVarHttpContext = options?.context ?? new HttpContext();
3371
+ const localVarTransferCache = options?.transferCache ?? true;
3372
+ let responseType_ = 'json';
3373
+ if (localVarHttpHeaderAcceptSelected) {
3374
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3375
+ responseType_ = 'text';
3376
+ }
3377
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3378
+ responseType_ = 'json';
3379
+ }
3380
+ else {
3381
+ responseType_ = 'blob';
3382
+ }
3383
+ }
3384
+ let localVarPath = `/products/update-product-stock/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/${this.configuration.encodeParam({ name: "quantity", value: quantity, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
3385
+ return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, {
3386
+ context: localVarHttpContext,
3387
+ responseType: responseType_,
3388
+ withCredentials: this.configuration.withCredentials,
3389
+ headers: localVarHeaders,
3390
+ observe: observe,
3391
+ transferCache: localVarTransferCache,
3392
+ reportProgress: reportProgress
3393
+ });
3394
+ }
3395
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProductService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3396
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProductService, providedIn: 'root' });
3397
+ }
3398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProductService, decorators: [{
3399
+ type: Injectable,
3400
+ args: [{
3401
+ providedIn: 'root'
3402
+ }]
3403
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
3404
+ type: Optional
3405
+ }, {
3406
+ type: Inject,
3407
+ args: [BASE_PATH]
3408
+ }] }, { type: Configuration, decorators: [{
3409
+ type: Optional
3410
+ }] }] });
3411
+
3412
+ /**
3413
+ * karibu API
3414
+ *
3415
+ * Contact: support@karibu.ga
3416
+ *
3417
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3418
+ * https://openapi-generator.tech
3419
+ * Do not edit the class manually.
3420
+ */
3421
+ /* tslint:disable:no-unused-variable member-ordering */
3422
+ class RoleService extends BaseService {
3423
+ httpClient;
3424
+ constructor(httpClient, basePath, configuration) {
3425
+ super(basePath, configuration);
3426
+ this.httpClient = httpClient;
3427
+ }
3428
+ createRole(roleDTO, observe = 'body', reportProgress = false, options) {
3429
+ if (roleDTO === null || roleDTO === undefined) {
3430
+ throw new Error('Required parameter roleDTO was null or undefined when calling createRole.');
3431
+ }
3432
+ let localVarHeaders = this.defaultHeaders;
3433
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3434
+ 'application/json'
3435
+ ]);
3436
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3437
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3438
+ }
3439
+ const localVarHttpContext = options?.context ?? new HttpContext();
3440
+ const localVarTransferCache = options?.transferCache ?? true;
3441
+ // to determine the Content-Type header
3442
+ const consumes = [
3443
+ 'application/json'
3444
+ ];
3445
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3446
+ if (httpContentTypeSelected !== undefined) {
3447
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3448
+ }
3449
+ let responseType_ = 'json';
3450
+ if (localVarHttpHeaderAcceptSelected) {
3451
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3452
+ responseType_ = 'text';
3453
+ }
3454
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3455
+ responseType_ = 'json';
3456
+ }
3457
+ else {
3458
+ responseType_ = 'blob';
3459
+ }
3460
+ }
3461
+ let localVarPath = `/roles/create-role`;
3462
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
3463
+ context: localVarHttpContext,
3464
+ body: roleDTO,
3465
+ responseType: responseType_,
3466
+ withCredentials: this.configuration.withCredentials,
3467
+ headers: localVarHeaders,
3468
+ observe: observe,
3469
+ transferCache: localVarTransferCache,
3470
+ reportProgress: reportProgress
3471
+ });
3472
+ }
3473
+ deleteRole(id, observe = 'body', reportProgress = false, options) {
3474
+ if (id === null || id === undefined) {
3475
+ throw new Error('Required parameter id was null or undefined when calling deleteRole.');
3476
+ }
3477
+ let localVarHeaders = this.defaultHeaders;
3478
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3479
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3480
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3481
+ }
3482
+ const localVarHttpContext = options?.context ?? new HttpContext();
3483
+ const localVarTransferCache = options?.transferCache ?? true;
3484
+ let responseType_ = 'json';
3485
+ if (localVarHttpHeaderAcceptSelected) {
3486
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3487
+ responseType_ = 'text';
3488
+ }
3489
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3490
+ responseType_ = 'json';
3491
+ }
3492
+ else {
3493
+ responseType_ = 'blob';
3494
+ }
3495
+ }
3496
+ let localVarPath = `/roles/delete-role/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3497
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
3498
+ context: localVarHttpContext,
3499
+ responseType: responseType_,
3500
+ withCredentials: this.configuration.withCredentials,
3501
+ headers: localVarHeaders,
3502
+ observe: observe,
3503
+ transferCache: localVarTransferCache,
3504
+ reportProgress: reportProgress
3505
+ });
3506
+ }
3507
+ getAllRoles(observe = 'body', reportProgress = false, options) {
3508
+ let localVarHeaders = this.defaultHeaders;
3509
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3510
+ 'application/json'
3511
+ ]);
3512
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3513
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3514
+ }
3515
+ const localVarHttpContext = options?.context ?? new HttpContext();
3516
+ const localVarTransferCache = options?.transferCache ?? true;
3517
+ let responseType_ = 'json';
3518
+ if (localVarHttpHeaderAcceptSelected) {
3519
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3520
+ responseType_ = 'text';
3521
+ }
3522
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3523
+ responseType_ = 'json';
3524
+ }
3525
+ else {
3526
+ responseType_ = 'blob';
3527
+ }
3528
+ }
3529
+ let localVarPath = `/roles/retrieve-roles`;
3530
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3531
+ context: localVarHttpContext,
3532
+ responseType: responseType_,
3533
+ withCredentials: this.configuration.withCredentials,
3534
+ headers: localVarHeaders,
3535
+ observe: observe,
3536
+ transferCache: localVarTransferCache,
3537
+ reportProgress: reportProgress
3538
+ });
3539
+ }
3540
+ getRoleById(id, observe = 'body', reportProgress = false, options) {
3541
+ if (id === null || id === undefined) {
3542
+ throw new Error('Required parameter id was null or undefined when calling getRoleById.');
3543
+ }
3544
+ let localVarHeaders = this.defaultHeaders;
3545
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3546
+ 'application/json'
3547
+ ]);
3548
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3549
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3550
+ }
3551
+ const localVarHttpContext = options?.context ?? new HttpContext();
3552
+ const localVarTransferCache = options?.transferCache ?? true;
3553
+ let responseType_ = 'json';
3554
+ if (localVarHttpHeaderAcceptSelected) {
3555
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3556
+ responseType_ = 'text';
3557
+ }
3558
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3559
+ responseType_ = 'json';
3560
+ }
3561
+ else {
3562
+ responseType_ = 'blob';
3563
+ }
3564
+ }
3565
+ let localVarPath = `/roles/retrieve-role/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3566
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3567
+ context: localVarHttpContext,
3568
+ responseType: responseType_,
3569
+ withCredentials: this.configuration.withCredentials,
3570
+ headers: localVarHeaders,
3571
+ observe: observe,
3572
+ transferCache: localVarTransferCache,
3573
+ reportProgress: reportProgress
3574
+ });
3575
+ }
3576
+ updateRole(id, roleDTO, observe = 'body', reportProgress = false, options) {
3577
+ if (id === null || id === undefined) {
3578
+ throw new Error('Required parameter id was null or undefined when calling updateRole.');
3579
+ }
3580
+ if (roleDTO === null || roleDTO === undefined) {
3581
+ throw new Error('Required parameter roleDTO was null or undefined when calling updateRole.');
3582
+ }
3583
+ let localVarHeaders = this.defaultHeaders;
3584
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3585
+ 'application/json'
3586
+ ]);
3587
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3588
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3589
+ }
3590
+ const localVarHttpContext = options?.context ?? new HttpContext();
3591
+ const localVarTransferCache = options?.transferCache ?? true;
3592
+ // to determine the Content-Type header
3593
+ const consumes = [
3594
+ 'application/json'
3595
+ ];
3596
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3597
+ if (httpContentTypeSelected !== undefined) {
3598
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3599
+ }
3600
+ let responseType_ = 'json';
3601
+ if (localVarHttpHeaderAcceptSelected) {
3602
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3603
+ responseType_ = 'text';
3604
+ }
3605
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3606
+ responseType_ = 'json';
3607
+ }
3608
+ else {
3609
+ responseType_ = 'blob';
3610
+ }
3611
+ }
3612
+ let localVarPath = `/roles/update-role/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3613
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3614
+ context: localVarHttpContext,
3615
+ body: roleDTO,
3616
+ responseType: responseType_,
3617
+ withCredentials: this.configuration.withCredentials,
3618
+ headers: localVarHeaders,
3619
+ observe: observe,
3620
+ transferCache: localVarTransferCache,
3621
+ reportProgress: reportProgress
3622
+ });
3623
+ }
3624
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoleService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3625
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoleService, providedIn: 'root' });
3626
+ }
3627
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoleService, decorators: [{
3628
+ type: Injectable,
3629
+ args: [{
3630
+ providedIn: 'root'
3631
+ }]
3632
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
3633
+ type: Optional
3634
+ }, {
3635
+ type: Inject,
3636
+ args: [BASE_PATH]
3637
+ }] }, { type: Configuration, decorators: [{
3638
+ type: Optional
3639
+ }] }] });
3640
+
3641
+ /**
3642
+ * karibu API
3643
+ *
3644
+ * Contact: support@karibu.ga
3645
+ *
3646
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3647
+ * https://openapi-generator.tech
3648
+ * Do not edit the class manually.
3649
+ */
3650
+ /* tslint:disable:no-unused-variable member-ordering */
3651
+ class UserService extends BaseService {
3652
+ httpClient;
3653
+ constructor(httpClient, basePath, configuration) {
3654
+ super(basePath, configuration);
3655
+ this.httpClient = httpClient;
3656
+ }
3657
+ createUser(userRequestDTO, observe = 'body', reportProgress = false, options) {
3658
+ if (userRequestDTO === null || userRequestDTO === undefined) {
3659
+ throw new Error('Required parameter userRequestDTO was null or undefined when calling createUser.');
3660
+ }
3661
+ let localVarHeaders = this.defaultHeaders;
3662
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3663
+ 'application/json'
3664
+ ]);
3665
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3666
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3667
+ }
3668
+ const localVarHttpContext = options?.context ?? new HttpContext();
3669
+ const localVarTransferCache = options?.transferCache ?? true;
3670
+ // to determine the Content-Type header
3671
+ const consumes = [
3672
+ 'application/json'
3673
+ ];
3674
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3675
+ if (httpContentTypeSelected !== undefined) {
3676
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3677
+ }
3678
+ let responseType_ = 'json';
3679
+ if (localVarHttpHeaderAcceptSelected) {
3680
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3681
+ responseType_ = 'text';
3682
+ }
3683
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3684
+ responseType_ = 'json';
3685
+ }
3686
+ else {
3687
+ responseType_ = 'blob';
3688
+ }
3689
+ }
3690
+ let localVarPath = `/users/create-user`;
3691
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
3692
+ context: localVarHttpContext,
3693
+ body: userRequestDTO,
3694
+ responseType: responseType_,
3695
+ withCredentials: this.configuration.withCredentials,
3696
+ headers: localVarHeaders,
3697
+ observe: observe,
3698
+ transferCache: localVarTransferCache,
3699
+ reportProgress: reportProgress
3700
+ });
3701
+ }
3702
+ deleteUser(uid, observe = 'body', reportProgress = false, options) {
3703
+ if (uid === null || uid === undefined) {
3704
+ throw new Error('Required parameter uid was null or undefined when calling deleteUser.');
3705
+ }
3706
+ let localVarHeaders = this.defaultHeaders;
3707
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3708
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3709
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3710
+ }
3711
+ const localVarHttpContext = options?.context ?? new HttpContext();
3712
+ const localVarTransferCache = options?.transferCache ?? true;
3713
+ let responseType_ = 'json';
3714
+ if (localVarHttpHeaderAcceptSelected) {
3715
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3716
+ responseType_ = 'text';
3717
+ }
3718
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3719
+ responseType_ = 'json';
3720
+ }
3721
+ else {
3722
+ responseType_ = 'blob';
3723
+ }
3724
+ }
3725
+ let localVarPath = `/users/delete-user/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3726
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
3727
+ context: localVarHttpContext,
3728
+ responseType: responseType_,
3729
+ withCredentials: this.configuration.withCredentials,
3730
+ headers: localVarHeaders,
3731
+ observe: observe,
3732
+ transferCache: localVarTransferCache,
3733
+ reportProgress: reportProgress
3734
+ });
3735
+ }
3736
+ getAllUsersByEstablishment(establishmentId, observe = 'body', reportProgress = false, options) {
3737
+ if (establishmentId === null || establishmentId === undefined) {
3738
+ throw new Error('Required parameter establishmentId was null or undefined when calling getAllUsersByEstablishment.');
3739
+ }
3740
+ let localVarHeaders = this.defaultHeaders;
3741
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3742
+ 'application/json'
3743
+ ]);
3744
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3745
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3746
+ }
3747
+ const localVarHttpContext = options?.context ?? new HttpContext();
3748
+ const localVarTransferCache = options?.transferCache ?? true;
3749
+ let responseType_ = 'json';
3750
+ if (localVarHttpHeaderAcceptSelected) {
3751
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3752
+ responseType_ = 'text';
3753
+ }
3754
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3755
+ responseType_ = 'json';
3756
+ }
3757
+ else {
3758
+ responseType_ = 'blob';
3759
+ }
3760
+ }
3761
+ let localVarPath = `/users/retrieve-establishment-user/${this.configuration.encodeParam({ name: "establishmentId", value: establishmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3762
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3763
+ context: localVarHttpContext,
3764
+ responseType: responseType_,
3765
+ withCredentials: this.configuration.withCredentials,
3766
+ headers: localVarHeaders,
3767
+ observe: observe,
3768
+ transferCache: localVarTransferCache,
3769
+ reportProgress: reportProgress
3770
+ });
3771
+ }
3772
+ getUser(uid, observe = 'body', reportProgress = false, options) {
3773
+ if (uid === null || uid === undefined) {
3774
+ throw new Error('Required parameter uid was null or undefined when calling getUser.');
3775
+ }
3776
+ let localVarHeaders = this.defaultHeaders;
3777
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3778
+ 'application/json'
3779
+ ]);
3780
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3781
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3782
+ }
3783
+ const localVarHttpContext = options?.context ?? new HttpContext();
3784
+ const localVarTransferCache = options?.transferCache ?? true;
3785
+ let responseType_ = 'json';
3786
+ if (localVarHttpHeaderAcceptSelected) {
3787
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3788
+ responseType_ = 'text';
3789
+ }
3790
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3791
+ responseType_ = 'json';
3792
+ }
3793
+ else {
3794
+ responseType_ = 'blob';
3795
+ }
3796
+ }
3797
+ let localVarPath = `/users/retrieve-user/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3798
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3799
+ context: localVarHttpContext,
3800
+ responseType: responseType_,
3801
+ withCredentials: this.configuration.withCredentials,
3802
+ headers: localVarHeaders,
3803
+ observe: observe,
3804
+ transferCache: localVarTransferCache,
3805
+ reportProgress: reportProgress
3806
+ });
3807
+ }
3808
+ getUserByEmail(email, observe = 'body', reportProgress = false, options) {
3809
+ if (email === null || email === undefined) {
3810
+ throw new Error('Required parameter email was null or undefined when calling getUserByEmail.');
3811
+ }
3812
+ let localVarHeaders = this.defaultHeaders;
3813
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3814
+ 'application/json'
3815
+ ]);
3816
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3817
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3818
+ }
3819
+ const localVarHttpContext = options?.context ?? new HttpContext();
3820
+ const localVarTransferCache = options?.transferCache ?? true;
3821
+ let responseType_ = 'json';
3822
+ if (localVarHttpHeaderAcceptSelected) {
3823
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3824
+ responseType_ = 'text';
3825
+ }
3826
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3827
+ responseType_ = 'json';
3828
+ }
3829
+ else {
3830
+ responseType_ = 'blob';
3831
+ }
3832
+ }
3833
+ let localVarPath = `/users/retrieve-user-by-email/${this.configuration.encodeParam({ name: "email", value: email, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3834
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
3835
+ context: localVarHttpContext,
3836
+ responseType: responseType_,
3837
+ withCredentials: this.configuration.withCredentials,
3838
+ headers: localVarHeaders,
3839
+ observe: observe,
3840
+ transferCache: localVarTransferCache,
3841
+ reportProgress: reportProgress
3842
+ });
3843
+ }
3844
+ lockUser(uid, observe = 'body', reportProgress = false, options) {
3845
+ if (uid === null || uid === undefined) {
3846
+ throw new Error('Required parameter uid was null or undefined when calling lockUser.');
3847
+ }
3848
+ let localVarHeaders = this.defaultHeaders;
3849
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3850
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3851
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3852
+ }
3853
+ const localVarHttpContext = options?.context ?? new HttpContext();
3854
+ const localVarTransferCache = options?.transferCache ?? true;
3855
+ let responseType_ = 'json';
3856
+ if (localVarHttpHeaderAcceptSelected) {
3857
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3858
+ responseType_ = 'text';
3859
+ }
3860
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3861
+ responseType_ = 'json';
3862
+ }
3863
+ else {
3864
+ responseType_ = 'blob';
3865
+ }
3866
+ }
3867
+ let localVarPath = `/users/lock-user/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3868
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3869
+ context: localVarHttpContext,
3870
+ responseType: responseType_,
3871
+ withCredentials: this.configuration.withCredentials,
3872
+ headers: localVarHeaders,
3873
+ observe: observe,
3874
+ transferCache: localVarTransferCache,
3875
+ reportProgress: reportProgress
3876
+ });
3877
+ }
3878
+ unlockUser(uid, observe = 'body', reportProgress = false, options) {
3879
+ if (uid === null || uid === undefined) {
3880
+ throw new Error('Required parameter uid was null or undefined when calling unlockUser.');
3881
+ }
3882
+ let localVarHeaders = this.defaultHeaders;
3883
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3884
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3885
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3886
+ }
3887
+ const localVarHttpContext = options?.context ?? new HttpContext();
3888
+ const localVarTransferCache = options?.transferCache ?? true;
3889
+ let responseType_ = 'json';
3890
+ if (localVarHttpHeaderAcceptSelected) {
3891
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3892
+ responseType_ = 'text';
3893
+ }
3894
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3895
+ responseType_ = 'json';
3896
+ }
3897
+ else {
3898
+ responseType_ = 'blob';
3899
+ }
3900
+ }
3901
+ let localVarPath = `/users/unlock-user/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3902
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3903
+ context: localVarHttpContext,
3904
+ responseType: responseType_,
3905
+ withCredentials: this.configuration.withCredentials,
3906
+ headers: localVarHeaders,
3907
+ observe: observe,
3908
+ transferCache: localVarTransferCache,
3909
+ reportProgress: reportProgress
3910
+ });
3911
+ }
3912
+ updateUserEmail(uid, email, observe = 'body', reportProgress = false, options) {
3913
+ if (uid === null || uid === undefined) {
3914
+ throw new Error('Required parameter uid was null or undefined when calling updateUserEmail.');
3915
+ }
3916
+ if (email === null || email === undefined) {
3917
+ throw new Error('Required parameter email was null or undefined when calling updateUserEmail.');
3918
+ }
3919
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3920
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, email, 'email');
3921
+ let localVarHeaders = this.defaultHeaders;
3922
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3923
+ 'application/json'
3924
+ ]);
3925
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3926
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3927
+ }
3928
+ const localVarHttpContext = options?.context ?? new HttpContext();
3929
+ const localVarTransferCache = options?.transferCache ?? true;
3930
+ let responseType_ = 'json';
3931
+ if (localVarHttpHeaderAcceptSelected) {
3932
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3933
+ responseType_ = 'text';
3934
+ }
3935
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3936
+ responseType_ = 'json';
3937
+ }
3938
+ else {
3939
+ responseType_ = 'blob';
3940
+ }
3941
+ }
3942
+ let localVarPath = `/users/update-user-email/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3943
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3944
+ context: localVarHttpContext,
3945
+ params: localVarQueryParameters,
3946
+ responseType: responseType_,
3947
+ withCredentials: this.configuration.withCredentials,
3948
+ headers: localVarHeaders,
3949
+ observe: observe,
3950
+ transferCache: localVarTransferCache,
3951
+ reportProgress: reportProgress
3952
+ });
3953
+ }
3954
+ updateUserLoginInfo(uid, email, password, observe = 'body', reportProgress = false, options) {
3955
+ if (uid === null || uid === undefined) {
3956
+ throw new Error('Required parameter uid was null or undefined when calling updateUserLoginInfo.');
3957
+ }
3958
+ if (email === null || email === undefined) {
3959
+ throw new Error('Required parameter email was null or undefined when calling updateUserLoginInfo.');
3960
+ }
3961
+ if (password === null || password === undefined) {
3962
+ throw new Error('Required parameter password was null or undefined when calling updateUserLoginInfo.');
3963
+ }
3964
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3965
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, email, 'email');
3966
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, password, 'password');
3967
+ let localVarHeaders = this.defaultHeaders;
3968
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3969
+ 'application/json'
3970
+ ]);
3971
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3972
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3973
+ }
3974
+ const localVarHttpContext = options?.context ?? new HttpContext();
3975
+ const localVarTransferCache = options?.transferCache ?? true;
3976
+ let responseType_ = 'json';
3977
+ if (localVarHttpHeaderAcceptSelected) {
3978
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3979
+ responseType_ = 'text';
3980
+ }
3981
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3982
+ responseType_ = 'json';
3983
+ }
3984
+ else {
3985
+ responseType_ = 'blob';
3986
+ }
3987
+ }
3988
+ let localVarPath = `/users/update-user-login-info/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
3989
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
3990
+ context: localVarHttpContext,
3991
+ params: localVarQueryParameters,
3992
+ responseType: responseType_,
3993
+ withCredentials: this.configuration.withCredentials,
3994
+ headers: localVarHeaders,
3995
+ observe: observe,
3996
+ transferCache: localVarTransferCache,
3997
+ reportProgress: reportProgress
3998
+ });
3999
+ }
4000
+ updateUserPassword(uid, password, observe = 'body', reportProgress = false, options) {
4001
+ if (uid === null || uid === undefined) {
4002
+ throw new Error('Required parameter uid was null or undefined when calling updateUserPassword.');
4003
+ }
4004
+ if (password === null || password === undefined) {
4005
+ throw new Error('Required parameter password was null or undefined when calling updateUserPassword.');
4006
+ }
4007
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
4008
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, password, 'password');
4009
+ let localVarHeaders = this.defaultHeaders;
4010
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
4011
+ 'application/json'
4012
+ ]);
4013
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4014
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4015
+ }
4016
+ const localVarHttpContext = options?.context ?? new HttpContext();
4017
+ const localVarTransferCache = options?.transferCache ?? true;
4018
+ let responseType_ = 'json';
4019
+ if (localVarHttpHeaderAcceptSelected) {
4020
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
4021
+ responseType_ = 'text';
4022
+ }
4023
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4024
+ responseType_ = 'json';
4025
+ }
4026
+ else {
4027
+ responseType_ = 'blob';
4028
+ }
4029
+ }
4030
+ let localVarPath = `/users/update-user-password/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
4031
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
4032
+ context: localVarHttpContext,
4033
+ params: localVarQueryParameters,
4034
+ responseType: responseType_,
4035
+ withCredentials: this.configuration.withCredentials,
4036
+ headers: localVarHeaders,
4037
+ observe: observe,
4038
+ transferCache: localVarTransferCache,
4039
+ reportProgress: reportProgress
4040
+ });
4041
+ }
4042
+ updateUserPhone(uid, phone, observe = 'body', reportProgress = false, options) {
4043
+ if (uid === null || uid === undefined) {
4044
+ throw new Error('Required parameter uid was null or undefined when calling updateUserPhone.');
4045
+ }
4046
+ if (phone === null || phone === undefined) {
4047
+ throw new Error('Required parameter phone was null or undefined when calling updateUserPhone.');
4048
+ }
4049
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
4050
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, phone, 'phone');
4051
+ let localVarHeaders = this.defaultHeaders;
4052
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
4053
+ 'application/json'
4054
+ ]);
4055
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4056
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4057
+ }
4058
+ const localVarHttpContext = options?.context ?? new HttpContext();
4059
+ const localVarTransferCache = options?.transferCache ?? true;
4060
+ let responseType_ = 'json';
4061
+ if (localVarHttpHeaderAcceptSelected) {
4062
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
4063
+ responseType_ = 'text';
4064
+ }
4065
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4066
+ responseType_ = 'json';
4067
+ }
4068
+ else {
4069
+ responseType_ = 'blob';
4070
+ }
4071
+ }
4072
+ let localVarPath = `/users/update-user-phone/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
4073
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
4074
+ context: localVarHttpContext,
4075
+ params: localVarQueryParameters,
4076
+ responseType: responseType_,
4077
+ withCredentials: this.configuration.withCredentials,
4078
+ headers: localVarHeaders,
4079
+ observe: observe,
4080
+ transferCache: localVarTransferCache,
4081
+ reportProgress: reportProgress
4082
+ });
4083
+ }
4084
+ updateUserStatus(uid, status, observe = 'body', reportProgress = false, options) {
4085
+ if (uid === null || uid === undefined) {
4086
+ throw new Error('Required parameter uid was null or undefined when calling updateUserStatus.');
4087
+ }
4088
+ if (status === null || status === undefined) {
4089
+ throw new Error('Required parameter status was null or undefined when calling updateUserStatus.');
4090
+ }
4091
+ let localVarHeaders = this.defaultHeaders;
4092
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
4093
+ 'application/json'
4094
+ ]);
4095
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4096
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
4097
+ }
4098
+ const localVarHttpContext = options?.context ?? new HttpContext();
4099
+ const localVarTransferCache = options?.transferCache ?? true;
4100
+ let responseType_ = 'json';
4101
+ if (localVarHttpHeaderAcceptSelected) {
4102
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
4103
+ responseType_ = 'text';
4104
+ }
4105
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4106
+ responseType_ = 'json';
4107
+ }
4108
+ else {
4109
+ responseType_ = 'blob';
4110
+ }
4111
+ }
4112
+ let localVarPath = `/users/update-user-status/${this.configuration.encodeParam({ name: "uid", value: uid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "status", value: status, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
4113
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
4114
+ context: localVarHttpContext,
4115
+ responseType: responseType_,
4116
+ withCredentials: this.configuration.withCredentials,
4117
+ headers: localVarHeaders,
4118
+ observe: observe,
4119
+ transferCache: localVarTransferCache,
4120
+ reportProgress: reportProgress
4121
+ });
4122
+ }
4123
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
4124
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UserService, providedIn: 'root' });
4125
+ }
4126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: UserService, decorators: [{
4127
+ type: Injectable,
4128
+ args: [{
4129
+ providedIn: 'root'
4130
+ }]
4131
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
4132
+ type: Optional
4133
+ }, {
4134
+ type: Inject,
4135
+ args: [BASE_PATH]
4136
+ }] }, { type: Configuration, decorators: [{
4137
+ type: Optional
4138
+ }] }] });
4139
+
4140
+ const APIS = [AuthenticationService, BoardService, EstablishmentService, EstablishmentAccessorService, InvoiceService, OrderService, OrderItemService, PaymentService, ProductService, RoleService, UserService];
4141
+
4142
+ var Board;
4143
+ (function (Board) {
4144
+ Board.StatusEnum = {
4145
+ Open: 'OPEN',
4146
+ Closed: 'CLOSED'
4147
+ };
4148
+ })(Board || (Board = {}));
4149
+
4150
+ /**
4151
+ * karibu API
4152
+ *
4153
+ * Contact: support@karibu.ga
4154
+ *
4155
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4156
+ * https://openapi-generator.tech
4157
+ * Do not edit the class manually.
4158
+ */
4159
+ var BoardRequestDTO;
4160
+ (function (BoardRequestDTO) {
4161
+ BoardRequestDTO.StatusEnum = {
4162
+ Open: 'OPEN',
4163
+ Closed: 'CLOSED'
4164
+ };
4165
+ })(BoardRequestDTO || (BoardRequestDTO = {}));
4166
+
4167
+ var BoardResponseDTO;
4168
+ (function (BoardResponseDTO) {
4169
+ BoardResponseDTO.StatusEnum = {
4170
+ Open: 'OPEN',
4171
+ Closed: 'CLOSED'
4172
+ };
4173
+ })(BoardResponseDTO || (BoardResponseDTO = {}));
4174
+
4175
+ /**
4176
+ * karibu API
4177
+ *
4178
+ * Contact: support@karibu.ga
4179
+ *
4180
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4181
+ * https://openapi-generator.tech
4182
+ * Do not edit the class manually.
4183
+ */
4184
+
4185
+ var Establishment;
4186
+ (function (Establishment) {
4187
+ Establishment.TypeEnum = {
4188
+ Restaurant: 'RESTAURANT',
4189
+ Bar: 'BAR',
4190
+ Cafe: 'CAFE',
4191
+ Pub: 'PUB',
4192
+ Bakery: 'BAKERY',
4193
+ PastryShop: 'PASTRY_SHOP',
4194
+ IceCreamParlour: 'ICE_CREAM_PARLOUR',
4195
+ FoodTruck: 'FOOD_TRUCK',
4196
+ FoodStand: 'FOOD_STAND',
4197
+ FoodCourt: 'FOOD_COURT',
4198
+ Catering: 'CATERING',
4199
+ Cafeteria: 'CAFETERIA',
4200
+ Buffet: 'BUFFET',
4201
+ SweetShop: 'SWEET_SHOP',
4202
+ Confectionery: 'CONFECTIONERY',
4203
+ ChocolateShop: 'CHOCOLATE_SHOP',
4204
+ CandyStore: 'CANDY_STORE',
4205
+ Bistro: 'BISTRO',
4206
+ Brasserie: 'BRASSERIE',
4207
+ Inn: 'INN',
4208
+ Hotel: 'HOTEL',
4209
+ Motel: 'MOTEL',
4210
+ Hostel: 'HOSTEL',
4211
+ GuestHouse: 'GUEST_HOUSE',
4212
+ BedAndBreakfast: 'BED_AND_BREAKFAST',
4213
+ Resort: 'RESORT',
4214
+ Spa: 'SPA',
4215
+ Other: 'OTHER'
4216
+ };
4217
+ })(Establishment || (Establishment = {}));
4218
+
4219
+ /**
4220
+ * karibu API
4221
+ *
4222
+ * Contact: support@karibu.ga
4223
+ *
4224
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4225
+ * https://openapi-generator.tech
4226
+ * Do not edit the class manually.
4227
+ */
4228
+
4229
+ /**
4230
+ * karibu API
4231
+ *
4232
+ * Contact: support@karibu.ga
4233
+ *
4234
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4235
+ * https://openapi-generator.tech
4236
+ * Do not edit the class manually.
4237
+ */
4238
+
4239
+ var EstablishmentAccessorResponseDTO;
4240
+ (function (EstablishmentAccessorResponseDTO) {
4241
+ EstablishmentAccessorResponseDTO.TypeEnum = {
4242
+ Restaurant: 'RESTAURANT',
4243
+ Bar: 'BAR',
4244
+ Cafe: 'CAFE',
4245
+ Pub: 'PUB',
4246
+ Bakery: 'BAKERY',
4247
+ PastryShop: 'PASTRY_SHOP',
4248
+ IceCreamParlour: 'ICE_CREAM_PARLOUR',
4249
+ FoodTruck: 'FOOD_TRUCK',
4250
+ FoodStand: 'FOOD_STAND',
4251
+ FoodCourt: 'FOOD_COURT',
4252
+ Catering: 'CATERING',
4253
+ Cafeteria: 'CAFETERIA',
4254
+ Buffet: 'BUFFET',
4255
+ SweetShop: 'SWEET_SHOP',
4256
+ Confectionery: 'CONFECTIONERY',
4257
+ ChocolateShop: 'CHOCOLATE_SHOP',
4258
+ CandyStore: 'CANDY_STORE',
4259
+ Bistro: 'BISTRO',
4260
+ Brasserie: 'BRASSERIE',
4261
+ Inn: 'INN',
4262
+ Hotel: 'HOTEL',
4263
+ Motel: 'MOTEL',
4264
+ Hostel: 'HOSTEL',
4265
+ GuestHouse: 'GUEST_HOUSE',
4266
+ BedAndBreakfast: 'BED_AND_BREAKFAST',
4267
+ Resort: 'RESORT',
4268
+ Spa: 'SPA',
4269
+ Other: 'OTHER'
4270
+ };
4271
+ })(EstablishmentAccessorResponseDTO || (EstablishmentAccessorResponseDTO = {}));
4272
+
4273
+ /**
4274
+ * karibu API
4275
+ *
4276
+ * Contact: support@karibu.ga
4277
+ *
4278
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4279
+ * https://openapi-generator.tech
4280
+ * Do not edit the class manually.
4281
+ */
4282
+ var EstablishmentRequestDTO;
4283
+ (function (EstablishmentRequestDTO) {
4284
+ EstablishmentRequestDTO.TypeEnum = {
4285
+ Restaurant: 'RESTAURANT',
4286
+ Bar: 'BAR',
4287
+ Cafe: 'CAFE',
4288
+ Pub: 'PUB',
4289
+ Bakery: 'BAKERY',
4290
+ PastryShop: 'PASTRY_SHOP',
4291
+ IceCreamParlour: 'ICE_CREAM_PARLOUR',
4292
+ FoodTruck: 'FOOD_TRUCK',
4293
+ FoodStand: 'FOOD_STAND',
4294
+ FoodCourt: 'FOOD_COURT',
4295
+ Catering: 'CATERING',
4296
+ Cafeteria: 'CAFETERIA',
4297
+ Buffet: 'BUFFET',
4298
+ SweetShop: 'SWEET_SHOP',
4299
+ Confectionery: 'CONFECTIONERY',
4300
+ ChocolateShop: 'CHOCOLATE_SHOP',
4301
+ CandyStore: 'CANDY_STORE',
4302
+ Bistro: 'BISTRO',
4303
+ Brasserie: 'BRASSERIE',
4304
+ Inn: 'INN',
4305
+ Hotel: 'HOTEL',
4306
+ Motel: 'MOTEL',
4307
+ Hostel: 'HOSTEL',
4308
+ GuestHouse: 'GUEST_HOUSE',
4309
+ BedAndBreakfast: 'BED_AND_BREAKFAST',
4310
+ Resort: 'RESORT',
4311
+ Spa: 'SPA',
4312
+ Other: 'OTHER'
4313
+ };
4314
+ })(EstablishmentRequestDTO || (EstablishmentRequestDTO = {}));
4315
+
4316
+ /**
4317
+ * karibu API
4318
+ *
4319
+ * Contact: support@karibu.ga
4320
+ *
4321
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4322
+ * https://openapi-generator.tech
4323
+ * Do not edit the class manually.
4324
+ */
4325
+ var EstablishmentResponseDTO;
4326
+ (function (EstablishmentResponseDTO) {
4327
+ EstablishmentResponseDTO.TypeEnum = {
4328
+ Restaurant: 'RESTAURANT',
4329
+ Bar: 'BAR',
4330
+ Cafe: 'CAFE',
4331
+ Pub: 'PUB',
4332
+ Bakery: 'BAKERY',
4333
+ PastryShop: 'PASTRY_SHOP',
4334
+ IceCreamParlour: 'ICE_CREAM_PARLOUR',
4335
+ FoodTruck: 'FOOD_TRUCK',
4336
+ FoodStand: 'FOOD_STAND',
4337
+ FoodCourt: 'FOOD_COURT',
4338
+ Catering: 'CATERING',
4339
+ Cafeteria: 'CAFETERIA',
4340
+ Buffet: 'BUFFET',
4341
+ SweetShop: 'SWEET_SHOP',
4342
+ Confectionery: 'CONFECTIONERY',
4343
+ ChocolateShop: 'CHOCOLATE_SHOP',
4344
+ CandyStore: 'CANDY_STORE',
4345
+ Bistro: 'BISTRO',
4346
+ Brasserie: 'BRASSERIE',
4347
+ Inn: 'INN',
4348
+ Hotel: 'HOTEL',
4349
+ Motel: 'MOTEL',
4350
+ Hostel: 'HOSTEL',
4351
+ GuestHouse: 'GUEST_HOUSE',
4352
+ BedAndBreakfast: 'BED_AND_BREAKFAST',
4353
+ Resort: 'RESORT',
4354
+ Spa: 'SPA',
4355
+ Other: 'OTHER'
4356
+ };
4357
+ })(EstablishmentResponseDTO || (EstablishmentResponseDTO = {}));
4358
+
4359
+ /**
4360
+ * karibu API
4361
+ *
4362
+ * Contact: support@karibu.ga
4363
+ *
4364
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4365
+ * https://openapi-generator.tech
4366
+ * Do not edit the class manually.
4367
+ */
4368
+
4369
+ /**
4370
+ * karibu API
4371
+ *
4372
+ * Contact: support@karibu.ga
4373
+ *
4374
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4375
+ * https://openapi-generator.tech
4376
+ * Do not edit the class manually.
4377
+ */
4378
+
4379
+ /**
4380
+ * karibu API
4381
+ *
4382
+ * Contact: support@karibu.ga
4383
+ *
4384
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4385
+ * https://openapi-generator.tech
4386
+ * Do not edit the class manually.
4387
+ */
4388
+
4389
+ var Order;
4390
+ (function (Order) {
4391
+ Order.StatusEnum = {
4392
+ InProgress: 'IN_PROGRESS',
4393
+ Paid: 'PAID'
4394
+ };
4395
+ })(Order || (Order = {}));
4396
+
4397
+ /**
4398
+ * karibu API
4399
+ *
4400
+ * Contact: support@karibu.ga
4401
+ *
4402
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4403
+ * https://openapi-generator.tech
4404
+ * Do not edit the class manually.
4405
+ */
4406
+ var OrderRequestDTO;
4407
+ (function (OrderRequestDTO) {
4408
+ OrderRequestDTO.StatusEnum = {
4409
+ InProgress: 'IN_PROGRESS',
4410
+ Paid: 'PAID'
4411
+ };
4412
+ })(OrderRequestDTO || (OrderRequestDTO = {}));
4413
+
4414
+ var OrderResponseDTO;
4415
+ (function (OrderResponseDTO) {
4416
+ OrderResponseDTO.StatusEnum = {
4417
+ InProgress: 'IN_PROGRESS',
4418
+ Paid: 'PAID'
4419
+ };
4420
+ })(OrderResponseDTO || (OrderResponseDTO = {}));
4421
+
4422
+ var Payment;
4423
+ (function (Payment) {
4424
+ Payment.MethodEnum = {
4425
+ Cash: 'CASH',
4426
+ Card: 'CARD'
4427
+ };
4428
+ Payment.StatusEnum = {
4429
+ Pending: 'PENDING',
4430
+ Validated: 'VALIDATED'
4431
+ };
4432
+ })(Payment || (Payment = {}));
4433
+
4434
+ /**
4435
+ * karibu API
4436
+ *
4437
+ * Contact: support@karibu.ga
4438
+ *
4439
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4440
+ * https://openapi-generator.tech
4441
+ * Do not edit the class manually.
4442
+ */
4443
+ var PaymentDTO;
4444
+ (function (PaymentDTO) {
4445
+ PaymentDTO.MethodEnum = {
4446
+ Cash: 'CASH',
4447
+ Card: 'CARD'
4448
+ };
4449
+ PaymentDTO.StatusEnum = {
4450
+ Pending: 'PENDING',
4451
+ Validated: 'VALIDATED'
4452
+ };
4453
+ })(PaymentDTO || (PaymentDTO = {}));
4454
+
4455
+ var Product;
4456
+ (function (Product) {
4457
+ Product.CategoryEnum = {
4458
+ Drink: 'DRINK',
4459
+ Meal: 'MEAL',
4460
+ Dessert: 'DESSERT',
4461
+ Snack: 'SNACK'
4462
+ };
4463
+ })(Product || (Product = {}));
4464
+
4465
+ /**
4466
+ * karibu API
4467
+ *
4468
+ * Contact: support@karibu.ga
4469
+ *
4470
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4471
+ * https://openapi-generator.tech
4472
+ * Do not edit the class manually.
4473
+ */
4474
+ var ProductRequestDTO;
4475
+ (function (ProductRequestDTO) {
4476
+ ProductRequestDTO.CategoryEnum = {
4477
+ Drink: 'DRINK',
4478
+ Meal: 'MEAL',
4479
+ Dessert: 'DESSERT',
4480
+ Snack: 'SNACK'
4481
+ };
4482
+ })(ProductRequestDTO || (ProductRequestDTO = {}));
4483
+
4484
+ var ProductResponseDTO;
4485
+ (function (ProductResponseDTO) {
4486
+ ProductResponseDTO.CategoryEnum = {
4487
+ Drink: 'DRINK',
4488
+ Meal: 'MEAL',
4489
+ Dessert: 'DESSERT',
4490
+ Snack: 'SNACK'
4491
+ };
4492
+ })(ProductResponseDTO || (ProductResponseDTO = {}));
4493
+
4494
+ var Role;
4495
+ (function (Role) {
4496
+ Role.NameEnum = {
4497
+ Admin: 'ADMIN',
4498
+ SuperAdmin: 'SUPER_ADMIN',
4499
+ Manager: 'MANAGER',
4500
+ Agent: 'AGENT',
4501
+ User: 'USER'
4502
+ };
4503
+ })(Role || (Role = {}));
4504
+
4505
+ /**
4506
+ * karibu API
4507
+ *
4508
+ * Contact: support@karibu.ga
4509
+ *
4510
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4511
+ * https://openapi-generator.tech
4512
+ * Do not edit the class manually.
4513
+ */
4514
+ var RoleDTO;
4515
+ (function (RoleDTO) {
4516
+ RoleDTO.NameEnum = {
4517
+ Admin: 'ADMIN',
4518
+ SuperAdmin: 'SUPER_ADMIN',
4519
+ Manager: 'MANAGER',
4520
+ Agent: 'AGENT',
4521
+ User: 'USER'
4522
+ };
4523
+ })(RoleDTO || (RoleDTO = {}));
4524
+
4525
+ /**
4526
+ * karibu API
4527
+ *
4528
+ * Contact: support@karibu.ga
4529
+ *
4530
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4531
+ * https://openapi-generator.tech
4532
+ * Do not edit the class manually.
4533
+ */
4534
+
4535
+ /**
4536
+ * karibu API
4537
+ *
4538
+ * Contact: support@karibu.ga
4539
+ *
4540
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4541
+ * https://openapi-generator.tech
4542
+ * Do not edit the class manually.
4543
+ */
4544
+
4545
+ var User;
4546
+ (function (User) {
4547
+ User.StatusEnum = {
4548
+ All: 'ALL',
4549
+ Created: 'CREATED',
4550
+ Active: 'ACTIVE',
4551
+ Blocked: 'BLOCKED',
4552
+ Deleted: 'DELETED'
4553
+ };
4554
+ })(User || (User = {}));
4555
+
4556
+ var UserResponseDTO;
4557
+ (function (UserResponseDTO) {
4558
+ UserResponseDTO.StatusEnum = {
4559
+ All: 'ALL',
4560
+ Created: 'CREATED',
4561
+ Active: 'ACTIVE',
4562
+ Blocked: 'BLOCKED',
4563
+ Deleted: 'DELETED'
4564
+ };
4565
+ })(UserResponseDTO || (UserResponseDTO = {}));
4566
+
4567
+ class ApiModule {
4568
+ static forRoot(configurationFactory) {
4569
+ return {
4570
+ ngModule: ApiModule,
4571
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
4572
+ };
4573
+ }
4574
+ constructor(parentModule, http) {
4575
+ if (parentModule) {
4576
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
4577
+ }
4578
+ if (!http) {
4579
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
4580
+ 'See also https://github.com/angular/angular/issues/20575');
4581
+ }
4582
+ }
4583
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
4584
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: ApiModule });
4585
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ApiModule });
4586
+ }
4587
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ApiModule, decorators: [{
4588
+ type: NgModule,
4589
+ args: [{
4590
+ imports: [],
4591
+ declarations: [],
4592
+ exports: [],
4593
+ providers: []
4594
+ }]
4595
+ }], ctorParameters: () => [{ type: ApiModule, decorators: [{
4596
+ type: Optional
4597
+ }, {
4598
+ type: SkipSelf
4599
+ }] }, { type: i1.HttpClient, decorators: [{
4600
+ type: Optional
4601
+ }] }] });
4602
+
4603
+ /**
4604
+ * Generated bundle index. Do not edit.
4605
+ */
4606
+
4607
+ export { APIS, ApiModule, AuthenticationService, BASE_PATH, Board, BoardRequestDTO, BoardResponseDTO, BoardService, COLLECTION_FORMATS, Configuration, Establishment, EstablishmentAccessorResponseDTO, EstablishmentAccessorService, EstablishmentRequestDTO, EstablishmentResponseDTO, EstablishmentService, InvoiceService, Order, OrderItemService, OrderRequestDTO, OrderResponseDTO, OrderService, Payment, PaymentDTO, PaymentService, Product, ProductRequestDTO, ProductResponseDTO, ProductService, Role, RoleDTO, RoleService, User, UserResponseDTO, UserService };
4608
+ //# sourceMappingURL=karibu-api-client.mjs.map