@devlearning/swagger-generator 0.0.7 → 0.0.8

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.
@@ -1,392 +0,0 @@
1
- var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
2
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
3
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
4
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
5
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
6
- var _, done = false;
7
- for (var i = decorators.length - 1; i >= 0; i--) {
8
- var context = {};
9
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
10
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
11
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
12
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
13
- if (kind === "accessor") {
14
- if (result === void 0) continue;
15
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
16
- if (_ = accept(result.get)) descriptor.get = _;
17
- if (_ = accept(result.set)) descriptor.set = _;
18
- if (_ = accept(result.init)) initializers.unshift(_);
19
- }
20
- else if (_ = accept(result)) {
21
- if (kind === "field") initializers.unshift(_);
22
- else descriptor[key] = _;
23
- }
24
- }
25
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
26
- done = true;
27
- };
28
- var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
29
- var useValue = arguments.length > 2;
30
- for (var i = 0; i < initializers.length; i++) {
31
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
32
- }
33
- return useValue ? value : void 0;
34
- };
35
- import { Injectable } from '@angular/core';
36
- import { catchError, map } from 'rxjs';
37
- import { httpOptions } from 'src/app/core/utils/http-options';
38
- import { ApiBase } from './../utils/api-base';
39
- export let ApiService = (() => {
40
- let _classDecorators = [Injectable({
41
- providedIn: 'root',
42
- })];
43
- let _classDescriptor;
44
- let _classExtraInitializers = [];
45
- let _classThis;
46
- var ApiService = class extends ApiBase {
47
- static {
48
- __esDecorate(null, _classDescriptor = { value: this }, _classDecorators, { kind: "class", name: this.name }, null, _classExtraInitializers);
49
- ApiService = _classThis = _classDescriptor.value;
50
- __runInitializers(_classThis, _classExtraInitializers);
51
- }
52
- _http;
53
- constructor(_http, _dialogMessage) {
54
- super(_dialogMessage);
55
- this._http = _http;
56
- }
57
- AirlineCompany_Create(request) {
58
- request = this._handleRequest(request);
59
- return this._http.post(`${environment.BASE_URL}/api/v1/AirlineCompany/Create`, request, httpOptions)
60
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
61
- return this._handleError(err, obs);
62
- }));
63
- }
64
- AirlineCompany_Update(request) {
65
- request = this._handleRequest(request);
66
- return this._http.post(`${environment.BASE_URL}/api/v1/AirlineCompany/Update`, request, httpOptions)
67
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
68
- return this._handleError(err, obs);
69
- }));
70
- }
71
- AirlineCompany_List(Filter) {
72
- return this._http.get(`${environment.BASE_URL}/api/v1/AirlineCompany/List?filter=${filter}`, httpOptions)
73
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
74
- return this._handleError(err, obs);
75
- }));
76
- }
77
- Airport_Read(IdAirport) {
78
- return this._http.get(`${environment.BASE_URL}/api/v1/Airport/Read?idAirport=${idAirport}`, httpOptions)
79
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
80
- return this._handleError(err, obs);
81
- }));
82
- }
83
- Airport_ReadByIdUser() {
84
- return this._http.get(`${environment.BASE_URL}/api/v1/Airport/ReadByIdUser`, httpOptions)
85
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
86
- return this._handleError(err, obs);
87
- }));
88
- }
89
- Airport_List(Filter) {
90
- return this._http.get(`${environment.BASE_URL}/api/v1/Airport/List?filter=${filter}`, httpOptions)
91
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
92
- return this._handleError(err, obs);
93
- }));
94
- }
95
- Airport_ListManaged(request) {
96
- return this._http.get(`${environment.BASE_URL}/api/v1/Airport/ListManaged?`, httpOptions)
97
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
98
- return this._handleError(err, obs);
99
- }));
100
- }
101
- Auth_token(request) {
102
- request = this._handleRequest(request);
103
- return this._http.post(`${environment.BASE_URL}/api/v1/Auth/token`, request, httpOptions)
104
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
105
- return this._handleError(err, obs);
106
- }));
107
- }
108
- Auth_refreshToken(request) {
109
- request = this._handleRequest(request);
110
- return this._http.post(`${environment.BASE_URL}/api/v1/Auth/refreshToken`, request, httpOptions)
111
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
112
- return this._handleError(err, obs);
113
- }));
114
- }
115
- Hotel_List(request) {
116
- return this._http.get(`${environment.BASE_URL}/api/v1/Hotel/List?`, httpOptions)
117
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
118
- return this._handleError(err, obs);
119
- }));
120
- }
121
- HotelAvailabilities_GetAvailabilityByIdAeroporto(idAirport) {
122
- return this._http.get(`${environment.BASE_URL}/api/v1/HotelAvailabilities/GetAvailabilityByIdAeroporto?idAirport=${idAirport}`, httpOptions)
123
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
124
- return this._handleError(err, obs);
125
- }));
126
- }
127
- LanguageCulture_List() {
128
- return this._http.get(`${environment.BASE_URL}/api/v1/LanguageCulture/List`, httpOptions)
129
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
130
- return this._handleError(err, obs);
131
- }));
132
- }
133
- PassengerGroup_Read(idPassengerGroup) {
134
- return this._http.get(`${environment.BASE_URL}/api/v1/PassengerGroup/Read?idPassengerGroup=${idPassengerGroup}`, httpOptions)
135
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
136
- return this._handleError(err, obs);
137
- }));
138
- }
139
- PassengerGroup_Create(request) {
140
- request = this._handleRequest(request);
141
- return this._http.post(`${environment.BASE_URL}/api/v1/PassengerGroup/Create`, request, httpOptions)
142
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
143
- return this._handleError(err, obs);
144
- }));
145
- }
146
- PassengerGroup_Update(request) {
147
- request = this._handleRequest(request);
148
- return this._http.post(`${environment.BASE_URL}/api/v1/PassengerGroup/Update`, request, httpOptions)
149
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
150
- return this._handleError(err, obs);
151
- }));
152
- }
153
- PassengerGroup_Delete(idPassengerGroup) {
154
- return this._http.post(`${environment.BASE_URL}/api/v1/PassengerGroup/Delete?idPassengerGroup=${idPassengerGroup}`, httpOptions)
155
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
156
- return this._handleError(err, obs);
157
- }));
158
- }
159
- PassengerGroup_List(idTicket) {
160
- return this._http.get(`${environment.BASE_URL}/api/v1/PassengerGroup/List?idTicket=${idTicket}`, httpOptions)
161
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
162
- return this._handleError(err, obs);
163
- }));
164
- }
165
- ServiceRequest_Read(idServiceRequest) {
166
- return this._http.get(`${environment.BASE_URL}/api/v1/ServiceRequest/Read?idServiceRequest=${idServiceRequest}`, httpOptions)
167
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
168
- return this._handleError(err, obs);
169
- }));
170
- }
171
- ServiceRequest_List(idTicket) {
172
- return this._http.get(`${environment.BASE_URL}/api/v1/ServiceRequest/List?idTicket=${idTicket}`, httpOptions)
173
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
174
- return this._handleError(err, obs);
175
- }));
176
- }
177
- ServiceRequest_Update(request) {
178
- request = this._handleRequest(request);
179
- return this._http.put(`${environment.BASE_URL}/api/v1/ServiceRequest/Update`, request, httpOptions)
180
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
181
- return this._handleError(err, obs);
182
- }));
183
- }
184
- ServiceRequestAirportToAirport_Read(idServiceRequestAirportToAirport) {
185
- return this._http.get(`${environment.BASE_URL}/api/v1/ServiceRequestAirportToAirport/Read?idServiceRequestAirportToAirport=${idServiceRequestAirportToAirport}`, httpOptions)
186
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
187
- return this._handleError(err, obs);
188
- }));
189
- }
190
- ServiceRequestAirportToAirport_List(idTicket) {
191
- return this._http.get(`${environment.BASE_URL}/api/v1/ServiceRequestAirportToAirport/List?idTicket=${idTicket}`, httpOptions)
192
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
193
- return this._handleError(err, obs);
194
- }));
195
- }
196
- ServiceRequestAirportToAirport_Create(request) {
197
- request = this._handleRequest(request);
198
- return this._http.post(`${environment.BASE_URL}/api/v1/ServiceRequestAirportToAirport/Create`, request, httpOptions)
199
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
200
- return this._handleError(err, obs);
201
- }));
202
- }
203
- ServiceRequestAirportToAirport_Update(request) {
204
- request = this._handleRequest(request);
205
- return this._http.put(`${environment.BASE_URL}/api/v1/ServiceRequestAirportToAirport/Update`, request, httpOptions)
206
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
207
- return this._handleError(err, obs);
208
- }));
209
- }
210
- ServiceRequestAirportToAirport_Delete(idServiceRequestAirportToAirport) {
211
- return this._http.delete(`${environment.BASE_URL}/api/v1/ServiceRequestAirportToAirport/Delete?idServiceRequestAirportToAirport=${idServiceRequestAirportToAirport}`, httpOptions)
212
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
213
- return this._handleError(err, obs);
214
- }));
215
- }
216
- ServiceRequestAirportToAirport_Transport(IdServiceRequestAirportToAirport) {
217
- return this._http.get(`${environment.BASE_URL}/api/v1/ServiceRequestAirportToAirport/Transport?idServiceRequestAirportToAirport=${idServiceRequestAirportToAirport}`, httpOptions)
218
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
219
- return this._handleError(err, obs);
220
- }));
221
- }
222
- ServiceRequestSnack_Create(request) {
223
- request = this._handleRequest(request);
224
- return this._http.post(`${environment.BASE_URL}/api/v1/ServiceRequestSnack/Create`, request, httpOptions)
225
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
226
- return this._handleError(err, obs);
227
- }));
228
- }
229
- ServiceRequestSnack_Read(idServiceRequestSnack) {
230
- return this._http.get(`${environment.BASE_URL}/api/v1/ServiceRequestSnack/Read?idServiceRequestSnack=${idServiceRequestSnack}`, httpOptions)
231
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
232
- return this._handleError(err, obs);
233
- }));
234
- }
235
- ServiceRequestSnack_List(idTicket) {
236
- return this._http.get(`${environment.BASE_URL}/api/v1/ServiceRequestSnack/List?idTicket=${idTicket}`, httpOptions)
237
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
238
- return this._handleError(err, obs);
239
- }));
240
- }
241
- ServiceRequestSnack_Update(request) {
242
- request = this._handleRequest(request);
243
- return this._http.put(`${environment.BASE_URL}/api/v1/ServiceRequestSnack/Update`, request, httpOptions)
244
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
245
- return this._handleError(err, obs);
246
- }));
247
- }
248
- ServiceRequestSnack_Delete(idServiceRequestSnack) {
249
- return this._http.delete(`${environment.BASE_URL}/api/v1/ServiceRequestSnack/Delete?idServiceRequestSnack=${idServiceRequestSnack}`, httpOptions)
250
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
251
- return this._handleError(err, obs);
252
- }));
253
- }
254
- ServiceRequestSnack_Undo(idServiceRequestSnack) {
255
- return this._http.delete(`${environment.BASE_URL}/api/v1/ServiceRequestSnack/Undo?idServiceRequestSnack=${idServiceRequestSnack}`, httpOptions)
256
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
257
- return this._handleError(err, obs);
258
- }));
259
- }
260
- ServiceRequestSnack_ListSnackTypes(idAirlineCompany) {
261
- return this._http.get(`${environment.BASE_URL}/api/v1/ServiceRequestSnack/ListSnackTypes?idAirlineCompany=${idAirlineCompany}`, httpOptions)
262
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
263
- return this._handleError(err, obs);
264
- }));
265
- }
266
- Ticket_Read(idTicket) {
267
- return this._http.get(`${environment.BASE_URL}/api/v1/Ticket/Read?idTicket=${idTicket}`, httpOptions)
268
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
269
- return this._handleError(err, obs);
270
- }));
271
- }
272
- Ticket_Create(request) {
273
- request = this._handleRequest(request);
274
- return this._http.post(`${environment.BASE_URL}/api/v1/Ticket/Create`, request, httpOptions)
275
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
276
- return this._handleError(err, obs);
277
- }));
278
- }
279
- Ticket_Update(request) {
280
- request = this._handleRequest(request);
281
- return this._http.post(`${environment.BASE_URL}/api/v1/Ticket/Update`, request, httpOptions)
282
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
283
- return this._handleError(err, obs);
284
- }));
285
- }
286
- Ticket_List(request) {
287
- request = this._handleRequest(request);
288
- return this._http.post(`${environment.BASE_URL}/api/v1/Ticket/List`, request, httpOptions)
289
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
290
- return this._handleError(err, obs);
291
- }));
292
- }
293
- Ticket_DetailRead(idTicket) {
294
- return this._http.get(`${environment.BASE_URL}/api/v1/Ticket/DetailRead?idTicket=${idTicket}`, httpOptions)
295
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
296
- return this._handleError(err, obs);
297
- }));
298
- }
299
- Ticket_UpdateNote(request) {
300
- request = this._handleRequest(request);
301
- return this._http.post(`${environment.BASE_URL}/api/v1/Ticket/UpdateNote`, request, httpOptions)
302
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
303
- return this._handleError(err, obs);
304
- }));
305
- }
306
- Transport_Create(request) {
307
- request = this._handleRequest(request);
308
- return this._http.post(`${environment.BASE_URL}/api/v1/Transport/Create`, request, httpOptions)
309
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
310
- return this._handleError(err, obs);
311
- }));
312
- }
313
- Transport_Update(request) {
314
- request = this._handleRequest(request);
315
- return this._http.post(`${environment.BASE_URL}/api/v1/Transport/Update`, request, httpOptions)
316
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
317
- return this._handleError(err, obs);
318
- }));
319
- }
320
- Transport_Delete(request) {
321
- request = this._handleRequest(request);
322
- return this._http.post(`${environment.BASE_URL}/api/v1/Transport/Delete`, request, httpOptions)
323
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
324
- return this._handleError(err, obs);
325
- }));
326
- }
327
- Transport_List() {
328
- return this._http.get(`${environment.BASE_URL}/api/v1/Transport/List`, httpOptions)
329
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
330
- return this._handleError(err, obs);
331
- }));
332
- }
333
- Transport_ReadByIdUser(idUser) {
334
- return this._http.get(`${environment.BASE_URL}/api/v1/Transport/ReadByIdUser?idUser=${idUser}`, httpOptions)
335
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
336
- return this._handleError(err, obs);
337
- }));
338
- }
339
- TransportOrderItem_Create(request) {
340
- request = this._handleRequest(request);
341
- return this._http.post(`${environment.BASE_URL}/api/v1/TransportOrderItem/Create`, request, httpOptions)
342
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
343
- return this._handleError(err, obs);
344
- }));
345
- }
346
- TransportOrderItem_Update(request) {
347
- request = this._handleRequest(request);
348
- return this._http.put(`${environment.BASE_URL}/api/v1/TransportOrderItem/Update`, request, httpOptions)
349
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
350
- return this._handleError(err, obs);
351
- }));
352
- }
353
- TransportOrderItem_Delete(IdTransportOrderItem) {
354
- return this._http.post(`${environment.BASE_URL}/api/v1/TransportOrderItem/Delete?idTransportOrderItem=${idTransportOrderItem}`, httpOptions)
355
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
356
- return this._handleError(err, obs);
357
- }));
358
- }
359
- User_Create(request) {
360
- request = this._handleRequest(request);
361
- return this._http.post(`${environment.BASE_URL}/api/v1/User/Create`, request, httpOptions)
362
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
363
- return this._handleError(err, obs);
364
- }));
365
- }
366
- User_UpdateLanguageCulture(IdLanguageCulture) {
367
- return this._http.get(`${environment.BASE_URL}/api/v1/User/UpdateLanguageCulture?idLanguageCulture=${idLanguageCulture}`, httpOptions)
368
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
369
- return this._handleError(err, obs);
370
- }));
371
- }
372
- User_ReadUserInfo() {
373
- return this._http.get(`${environment.BASE_URL}/api/v1/User/ReadUserInfo`, httpOptions)
374
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
375
- return this._handleError(err, obs);
376
- }));
377
- }
378
- User_CreateUserInTransportCompanyByIdUser(IdUser, IdTransportCompany) {
379
- return this._http.post(`${environment.BASE_URL}/api/v1/User/CreateUserInTransportCompanyByIdUser?idUser=${idUser}&idTransportCompany=${idTransportCompany}`, httpOptions)
380
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
381
- return this._handleError(err, obs);
382
- }));
383
- }
384
- VoucherSnack_ActivatedList(idServiceRequestSnack) {
385
- return this._http.get(`${environment.BASE_URL}/api/v1/VoucherSnack/ActivatedList?idServiceRequestSnack=${idServiceRequestSnack}`, httpOptions)
386
- .pipe(map(x => this._handleResponse(x)), catchError((err, obs) => {
387
- return this._handleError(err, obs);
388
- }));
389
- }
390
- };
391
- return ApiService = _classThis;
392
- })();