swoop-common 1.0.21 → 1.0.23

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 (56) hide show
  1. package/README.md +1 -0
  2. package/dist/api/gen.js +19 -53
  3. package/dist/api/generated/core/exports.d.ts +0 -1
  4. package/dist/api/generated/core/exports.js +0 -1
  5. package/dist/api/generated/core/services/CoreService.d.ts +12 -12
  6. package/dist/api/generated/core/services/CoreService.js +12 -12
  7. package/dist/api/generated/itinerary/exports.d.ts +0 -1
  8. package/dist/api/generated/itinerary/exports.js +1 -1
  9. package/dist/api/generated/itinerary/index.d.ts +2 -0
  10. package/dist/api/generated/itinerary/models/DTORegionCreate.d.ts +6 -0
  11. package/dist/api/generated/itinerary/models/DTORegionCreate.js +1 -0
  12. package/dist/api/generated/itinerary/models/DTORegionRead.d.ts +9 -0
  13. package/dist/api/generated/itinerary/models/DTORegionRead.js +1 -0
  14. package/dist/api/generated/itinerary/services/ItineraryService.d.ts +20 -80
  15. package/dist/api/generated/itinerary/services/ItineraryService.js +20 -128
  16. package/dist/api/generated/swoop/exports.d.ts +48 -66
  17. package/dist/api/generated/swoop/exports.js +1 -29
  18. package/dist/api/generated/swoop/index.d.ts +1 -12
  19. package/dist/api/generated/swoop/index.js +1 -12
  20. package/dist/api/generated/swoop/services/SwoopService.d.ts +387 -0
  21. package/dist/api/generated/swoop/services/SwoopService.js +329 -0
  22. package/dist/api/init.d.ts +8 -1
  23. package/dist/api/init.js +5 -0
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.js +1 -1
  26. package/dist/rendering/renderers/ComponentPicker.js +1 -1
  27. package/dist/rendering/renderers/TemplatePicker.js +1 -1
  28. package/dist/rendering/util/lib.d.ts +1 -0
  29. package/dist/rendering/util/lib.js +6 -0
  30. package/dist/rendering/util/string.d.ts +1 -0
  31. package/dist/rendering/util/string.js +1 -0
  32. package/package.json +1 -1
  33. package/dist/api/generated/swoop/services/BookingItemTypeService.d.ts +0 -35
  34. package/dist/api/generated/swoop/services/BookingItemTypeService.js +0 -22
  35. package/dist/api/generated/swoop/services/CategoryService.d.ts +0 -35
  36. package/dist/api/generated/swoop/services/CategoryService.js +0 -22
  37. package/dist/api/generated/swoop/services/CurrencyService.d.ts +0 -35
  38. package/dist/api/generated/swoop/services/CurrencyService.js +0 -22
  39. package/dist/api/generated/swoop/services/CustomerLookupService.d.ts +0 -13
  40. package/dist/api/generated/swoop/services/CustomerLookupService.js +0 -25
  41. package/dist/api/generated/swoop/services/CustomerService.d.ts +0 -45
  42. package/dist/api/generated/swoop/services/CustomerService.js +0 -45
  43. package/dist/api/generated/swoop/services/EnquiryService.d.ts +0 -12
  44. package/dist/api/generated/swoop/services/EnquiryService.js +0 -23
  45. package/dist/api/generated/swoop/services/EnquiryStatusService.d.ts +0 -34
  46. package/dist/api/generated/swoop/services/EnquiryStatusService.js +0 -20
  47. package/dist/api/generated/swoop/services/PartnerService.d.ts +0 -46
  48. package/dist/api/generated/swoop/services/PartnerService.js +0 -47
  49. package/dist/api/generated/swoop/services/PaymentService.d.ts +0 -34
  50. package/dist/api/generated/swoop/services/PaymentService.js +0 -20
  51. package/dist/api/generated/swoop/services/PersonService.d.ts +0 -42
  52. package/dist/api/generated/swoop/services/PersonService.js +0 -39
  53. package/dist/api/generated/swoop/services/TravellerService.d.ts +0 -43
  54. package/dist/api/generated/swoop/services/TravellerService.js +0 -41
  55. package/dist/api/generated/swoop/services/TripService.d.ts +0 -46
  56. package/dist/api/generated/swoop/services/TripService.js +0 -47
@@ -0,0 +1,387 @@
1
+ import type { BookingItemType_jsonld } from '../models/BookingItemType_jsonld';
2
+ import type { Category_jsonld } from '../models/Category_jsonld';
3
+ import type { Currency_jsonld } from '../models/Currency_jsonld';
4
+ import type { Customer_jsonld } from '../models/Customer_jsonld';
5
+ import type { CustomerLookup_jsonld } from '../models/CustomerLookup_jsonld';
6
+ import type { Enquiry_jsonld } from '../models/Enquiry_jsonld';
7
+ import type { EnquiryStatus_jsonld } from '../models/EnquiryStatus_jsonld';
8
+ import type { Partner_jsonld } from '../models/Partner_jsonld';
9
+ import type { Payment_jsonld } from '../models/Payment_jsonld';
10
+ import type { Person_jsonld } from '../models/Person_jsonld';
11
+ import type { Traveller_jsonld } from '../models/Traveller_jsonld';
12
+ import type { Trip_jsonld } from '../models/Trip_jsonld';
13
+ import type { CancelablePromise } from '../core/CancelablePromise';
14
+ export declare class SwoopService {
15
+ /**
16
+ * Retrieves the collection of BookingItemType resources.
17
+ * Retrieves the collection of BookingItemType resources.
18
+ * @param region antarctica, arctic, patagonia
19
+ * @param active 1,0
20
+ * @returns any BookingItemType collection
21
+ * @throws ApiError
22
+ */
23
+ bookingItemTypesGetCollection(region?: string, active?: string): CancelablePromise<{
24
+ member: Array<BookingItemType_jsonld>;
25
+ totalItems?: number;
26
+ view?: {
27
+ '@id'?: string;
28
+ '@type'?: string;
29
+ first?: string;
30
+ last?: string;
31
+ previous?: string;
32
+ next?: string;
33
+ };
34
+ search?: {
35
+ '@type'?: string;
36
+ template?: string;
37
+ variableRepresentation?: string;
38
+ mapping?: Array<{
39
+ '@type'?: string;
40
+ variable?: string;
41
+ property?: string | null;
42
+ required?: boolean;
43
+ }>;
44
+ };
45
+ }>;
46
+ /**
47
+ * Retrieves the collection of Category resources.
48
+ * Retrieves the collection of Category resources.
49
+ * @param region antarctica, arctic, patagonia
50
+ * @param active 1,0
51
+ * @returns any Category collection
52
+ * @throws ApiError
53
+ */
54
+ categoriesGetCollection(region?: string, active?: string): CancelablePromise<{
55
+ member: Array<Category_jsonld>;
56
+ totalItems?: number;
57
+ view?: {
58
+ '@id'?: string;
59
+ '@type'?: string;
60
+ first?: string;
61
+ last?: string;
62
+ previous?: string;
63
+ next?: string;
64
+ };
65
+ search?: {
66
+ '@type'?: string;
67
+ template?: string;
68
+ variableRepresentation?: string;
69
+ mapping?: Array<{
70
+ '@type'?: string;
71
+ variable?: string;
72
+ property?: string | null;
73
+ required?: boolean;
74
+ }>;
75
+ };
76
+ }>;
77
+ /**
78
+ * Retrieves the collection of Currency resources.
79
+ * Retrieves the collection of Currency resources.
80
+ * @param region antarctica, arctic, patagonia
81
+ * @param active 1,0
82
+ * @returns any Currency collection
83
+ * @throws ApiError
84
+ */
85
+ currenciesGetCollection(region?: string, active?: string): CancelablePromise<{
86
+ member: Array<Currency_jsonld>;
87
+ totalItems?: number;
88
+ view?: {
89
+ '@id'?: string;
90
+ '@type'?: string;
91
+ first?: string;
92
+ last?: string;
93
+ previous?: string;
94
+ next?: string;
95
+ };
96
+ search?: {
97
+ '@type'?: string;
98
+ template?: string;
99
+ variableRepresentation?: string;
100
+ mapping?: Array<{
101
+ '@type'?: string;
102
+ variable?: string;
103
+ property?: string | null;
104
+ required?: boolean;
105
+ }>;
106
+ };
107
+ }>;
108
+ /**
109
+ * Retrieves the collection of Customer resources.
110
+ * Retrieves the collection of Customer resources.
111
+ * @param page The collection page number
112
+ * @param itemsPerPage The number of items per page
113
+ * @param search Search against first_name, last_name, email
114
+ * @param region antarctica, arctic, patagonia
115
+ * @returns any Customer collection
116
+ * @throws ApiError
117
+ */
118
+ customersGetCollection(page?: number, itemsPerPage?: number, search?: string, region?: string): CancelablePromise<{
119
+ member: Array<Customer_jsonld>;
120
+ totalItems?: number;
121
+ view?: {
122
+ '@id'?: string;
123
+ '@type'?: string;
124
+ first?: string;
125
+ last?: string;
126
+ previous?: string;
127
+ next?: string;
128
+ };
129
+ search?: {
130
+ '@type'?: string;
131
+ template?: string;
132
+ variableRepresentation?: string;
133
+ mapping?: Array<{
134
+ '@type'?: string;
135
+ variable?: string;
136
+ property?: string | null;
137
+ required?: boolean;
138
+ }>;
139
+ };
140
+ }>;
141
+ /**
142
+ * Retrieves a Customer resource.
143
+ * Retrieves a Customer resource.
144
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{customer_id}})
145
+ * @returns Customer_jsonld Customer resource
146
+ * @throws ApiError
147
+ */
148
+ customersIdGet(id: string): CancelablePromise<Customer_jsonld>;
149
+ /**
150
+ * Retrieves a CustomerLookup resource.
151
+ * Retrieves a CustomerLookup resource.
152
+ * @param telephone Customer telephone number to look up (+447877887878)
153
+ * @param region antarctica, arctic, patagonia
154
+ * @returns CustomerLookup_jsonld CustomerLookup resource
155
+ * @throws ApiError
156
+ */
157
+ customersLookUpGet(telephone?: string, region?: string): CancelablePromise<CustomerLookup_jsonld>;
158
+ /**
159
+ * Retrieves a Enquiry resource.
160
+ * Retrieves a Enquiry resource.
161
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
162
+ * @returns Enquiry_jsonld Enquiry resource
163
+ * @throws ApiError
164
+ */
165
+ enquiryIdGet(id: string): CancelablePromise<Enquiry_jsonld>;
166
+ /**
167
+ * Retrieves the collection of EnquiryStatus resources.
168
+ * Retrieves the collection of EnquiryStatus resources.
169
+ * @param region antarctica, arctic, patagonia
170
+ * @returns any EnquiryStatus collection
171
+ * @throws ApiError
172
+ */
173
+ enquiryStatusesGetCollection(region?: string): CancelablePromise<{
174
+ member: Array<EnquiryStatus_jsonld>;
175
+ totalItems?: number;
176
+ view?: {
177
+ '@id'?: string;
178
+ '@type'?: string;
179
+ first?: string;
180
+ last?: string;
181
+ previous?: string;
182
+ next?: string;
183
+ };
184
+ search?: {
185
+ '@type'?: string;
186
+ template?: string;
187
+ variableRepresentation?: string;
188
+ mapping?: Array<{
189
+ '@type'?: string;
190
+ variable?: string;
191
+ property?: string | null;
192
+ required?: boolean;
193
+ }>;
194
+ };
195
+ }>;
196
+ /**
197
+ * Retrieves the collection of Partner resources.
198
+ * Retrieves the collection of Partner resources.
199
+ * @param page The collection page number
200
+ * @param itemsPerPage The number of items per page
201
+ * @param region antarctica, arctic, patagonia
202
+ * @param search Search against title, alias, description, name, telephone, email
203
+ * @param active Filter by active status (0,1)
204
+ * @returns any Partner collection
205
+ * @throws ApiError
206
+ */
207
+ partnersGetCollection(page?: number, itemsPerPage?: number, region?: string, search?: string, active?: string): CancelablePromise<{
208
+ member: Array<Partner_jsonld>;
209
+ totalItems?: number;
210
+ view?: {
211
+ '@id'?: string;
212
+ '@type'?: string;
213
+ first?: string;
214
+ last?: string;
215
+ previous?: string;
216
+ next?: string;
217
+ };
218
+ search?: {
219
+ '@type'?: string;
220
+ template?: string;
221
+ variableRepresentation?: string;
222
+ mapping?: Array<{
223
+ '@type'?: string;
224
+ variable?: string;
225
+ property?: string | null;
226
+ required?: boolean;
227
+ }>;
228
+ };
229
+ }>;
230
+ /**
231
+ * Retrieves a Partner resource.
232
+ * Retrieves a Partner resource.
233
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{partner_id}})
234
+ * @returns Partner_jsonld Partner resource
235
+ * @throws ApiError
236
+ */
237
+ partnersIdGet(id: string): CancelablePromise<Partner_jsonld>;
238
+ /**
239
+ * Retrieves the collection of Payment resources.
240
+ * Retrieves the collection of Payment resources.
241
+ * @param enquiryId by enquiry ID
242
+ * @returns any Payment collection
243
+ * @throws ApiError
244
+ */
245
+ paymentsGetCollection(enquiryId?: string): CancelablePromise<{
246
+ member: Array<Payment_jsonld>;
247
+ totalItems?: number;
248
+ view?: {
249
+ '@id'?: string;
250
+ '@type'?: string;
251
+ first?: string;
252
+ last?: string;
253
+ previous?: string;
254
+ next?: string;
255
+ };
256
+ search?: {
257
+ '@type'?: string;
258
+ template?: string;
259
+ variableRepresentation?: string;
260
+ mapping?: Array<{
261
+ '@type'?: string;
262
+ variable?: string;
263
+ property?: string | null;
264
+ required?: boolean;
265
+ }>;
266
+ };
267
+ }>;
268
+ /**
269
+ * Retrieves the collection of Person resources.
270
+ * Retrieves the collection of Person resources.
271
+ * @param region antarctica, arctic, patagonia
272
+ * @returns any Person collection
273
+ * @throws ApiError
274
+ */
275
+ peopleGetCollection(region?: string): CancelablePromise<{
276
+ member: Array<Person_jsonld>;
277
+ totalItems?: number;
278
+ view?: {
279
+ '@id'?: string;
280
+ '@type'?: string;
281
+ first?: string;
282
+ last?: string;
283
+ previous?: string;
284
+ next?: string;
285
+ };
286
+ search?: {
287
+ '@type'?: string;
288
+ template?: string;
289
+ variableRepresentation?: string;
290
+ mapping?: Array<{
291
+ '@type'?: string;
292
+ variable?: string;
293
+ property?: string | null;
294
+ required?: boolean;
295
+ }>;
296
+ };
297
+ }>;
298
+ /**
299
+ * Retrieves a Person resource.
300
+ * Retrieves a Person resource.
301
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{person_id}})
302
+ * @returns Person_jsonld Person resource
303
+ * @throws ApiError
304
+ */
305
+ peopleIdGet(id: string): CancelablePromise<Person_jsonld>;
306
+ /**
307
+ * Retrieves the collection of Traveller resources.
308
+ * Retrieves the collection of Traveller resources.
309
+ * @param enquiryId by enquiry ID
310
+ * @param region antarctica, arctic, patagonia
311
+ * @returns any Traveller collection
312
+ * @throws ApiError
313
+ */
314
+ travellersGetCollection(enquiryId?: string, region?: string): CancelablePromise<{
315
+ member: Array<Traveller_jsonld>;
316
+ totalItems?: number;
317
+ view?: {
318
+ '@id'?: string;
319
+ '@type'?: string;
320
+ first?: string;
321
+ last?: string;
322
+ previous?: string;
323
+ next?: string;
324
+ };
325
+ search?: {
326
+ '@type'?: string;
327
+ template?: string;
328
+ variableRepresentation?: string;
329
+ mapping?: Array<{
330
+ '@type'?: string;
331
+ variable?: string;
332
+ property?: string | null;
333
+ required?: boolean;
334
+ }>;
335
+ };
336
+ }>;
337
+ /**
338
+ * Retrieves a Traveller resource.
339
+ * Retrieves a Traveller resource.
340
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{traveller_id}})
341
+ * @returns Traveller_jsonld Traveller resource
342
+ * @throws ApiError
343
+ */
344
+ travellersIdGet(id: string): CancelablePromise<Traveller_jsonld>;
345
+ /**
346
+ * Retrieves the collection of Trip resources.
347
+ * Retrieves the collection of Trip resources.
348
+ * @param page The collection page number
349
+ * @param itemsPerPage The number of items per page
350
+ * @param search Search against title
351
+ * @param region antarctica, arctic, patagonia
352
+ * @param publishstate unpublished, approval, published, rejected
353
+ * @returns any Trip collection
354
+ * @throws ApiError
355
+ */
356
+ tripsGetCollection(page?: number, itemsPerPage?: number, search?: string, region?: string, publishstate?: string): CancelablePromise<{
357
+ member: Array<Trip_jsonld>;
358
+ totalItems?: number;
359
+ view?: {
360
+ '@id'?: string;
361
+ '@type'?: string;
362
+ first?: string;
363
+ last?: string;
364
+ previous?: string;
365
+ next?: string;
366
+ };
367
+ search?: {
368
+ '@type'?: string;
369
+ template?: string;
370
+ variableRepresentation?: string;
371
+ mapping?: Array<{
372
+ '@type'?: string;
373
+ variable?: string;
374
+ property?: string | null;
375
+ required?: boolean;
376
+ }>;
377
+ };
378
+ }>;
379
+ /**
380
+ * Retrieves a Trip resource.
381
+ * Retrieves a Trip resource.
382
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{trip_id}})
383
+ * @returns Trip_jsonld Trip resource
384
+ * @throws ApiError
385
+ */
386
+ tripsIdGet(id: string): CancelablePromise<Trip_jsonld>;
387
+ }
@@ -0,0 +1,329 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class SwoopService {
4
+ /**
5
+ * Retrieves the collection of BookingItemType resources.
6
+ * Retrieves the collection of BookingItemType resources.
7
+ * @param region antarctica, arctic, patagonia
8
+ * @param active 1,0
9
+ * @returns any BookingItemType collection
10
+ * @throws ApiError
11
+ */
12
+ bookingItemTypesGetCollection(region, active) {
13
+ return __request(OpenAPI, {
14
+ method: 'GET',
15
+ url: '/api/booking-item-types',
16
+ query: {
17
+ 'region': region,
18
+ 'active': active,
19
+ },
20
+ });
21
+ }
22
+ /**
23
+ * Retrieves the collection of Category resources.
24
+ * Retrieves the collection of Category resources.
25
+ * @param region antarctica, arctic, patagonia
26
+ * @param active 1,0
27
+ * @returns any Category collection
28
+ * @throws ApiError
29
+ */
30
+ categoriesGetCollection(region, active) {
31
+ return __request(OpenAPI, {
32
+ method: 'GET',
33
+ url: '/api/categories',
34
+ query: {
35
+ 'region': region,
36
+ 'active': active,
37
+ },
38
+ });
39
+ }
40
+ /**
41
+ * Retrieves the collection of Currency resources.
42
+ * Retrieves the collection of Currency resources.
43
+ * @param region antarctica, arctic, patagonia
44
+ * @param active 1,0
45
+ * @returns any Currency collection
46
+ * @throws ApiError
47
+ */
48
+ currenciesGetCollection(region, active) {
49
+ return __request(OpenAPI, {
50
+ method: 'GET',
51
+ url: '/api/currencies',
52
+ query: {
53
+ 'region': region,
54
+ 'active': active,
55
+ },
56
+ });
57
+ }
58
+ /**
59
+ * Retrieves the collection of Customer resources.
60
+ * Retrieves the collection of Customer resources.
61
+ * @param page The collection page number
62
+ * @param itemsPerPage The number of items per page
63
+ * @param search Search against first_name, last_name, email
64
+ * @param region antarctica, arctic, patagonia
65
+ * @returns any Customer collection
66
+ * @throws ApiError
67
+ */
68
+ customersGetCollection(page = 1, itemsPerPage = 30, search, region) {
69
+ return __request(OpenAPI, {
70
+ method: 'GET',
71
+ url: '/api/customers',
72
+ query: {
73
+ 'page': page,
74
+ 'itemsPerPage': itemsPerPage,
75
+ 'search': search,
76
+ 'region': region,
77
+ },
78
+ });
79
+ }
80
+ /**
81
+ * Retrieves a Customer resource.
82
+ * Retrieves a Customer resource.
83
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{customer_id}})
84
+ * @returns Customer_jsonld Customer resource
85
+ * @throws ApiError
86
+ */
87
+ customersIdGet(id) {
88
+ return __request(OpenAPI, {
89
+ method: 'GET',
90
+ url: '/api/customers/{id}',
91
+ path: {
92
+ 'id': id,
93
+ },
94
+ errors: {
95
+ 404: `Not found`,
96
+ },
97
+ });
98
+ }
99
+ /**
100
+ * Retrieves a CustomerLookup resource.
101
+ * Retrieves a CustomerLookup resource.
102
+ * @param telephone Customer telephone number to look up (+447877887878)
103
+ * @param region antarctica, arctic, patagonia
104
+ * @returns CustomerLookup_jsonld CustomerLookup resource
105
+ * @throws ApiError
106
+ */
107
+ customersLookUpGet(telephone, region) {
108
+ return __request(OpenAPI, {
109
+ method: 'GET',
110
+ url: '/api/customers-look-up',
111
+ query: {
112
+ 'telephone': telephone,
113
+ 'region': region,
114
+ },
115
+ errors: {
116
+ 404: `Not found`,
117
+ },
118
+ });
119
+ }
120
+ /**
121
+ * Retrieves a Enquiry resource.
122
+ * Retrieves a Enquiry resource.
123
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
124
+ * @returns Enquiry_jsonld Enquiry resource
125
+ * @throws ApiError
126
+ */
127
+ enquiryIdGet(id) {
128
+ return __request(OpenAPI, {
129
+ method: 'GET',
130
+ url: '/api/enquiry/{id}',
131
+ path: {
132
+ 'id': id,
133
+ },
134
+ errors: {
135
+ 404: `Not found`,
136
+ },
137
+ });
138
+ }
139
+ /**
140
+ * Retrieves the collection of EnquiryStatus resources.
141
+ * Retrieves the collection of EnquiryStatus resources.
142
+ * @param region antarctica, arctic, patagonia
143
+ * @returns any EnquiryStatus collection
144
+ * @throws ApiError
145
+ */
146
+ enquiryStatusesGetCollection(region) {
147
+ return __request(OpenAPI, {
148
+ method: 'GET',
149
+ url: '/api/enquiry-statuses',
150
+ query: {
151
+ 'region': region,
152
+ },
153
+ });
154
+ }
155
+ /**
156
+ * Retrieves the collection of Partner resources.
157
+ * Retrieves the collection of Partner resources.
158
+ * @param page The collection page number
159
+ * @param itemsPerPage The number of items per page
160
+ * @param region antarctica, arctic, patagonia
161
+ * @param search Search against title, alias, description, name, telephone, email
162
+ * @param active Filter by active status (0,1)
163
+ * @returns any Partner collection
164
+ * @throws ApiError
165
+ */
166
+ partnersGetCollection(page = 1, itemsPerPage = 30, region, search, active) {
167
+ return __request(OpenAPI, {
168
+ method: 'GET',
169
+ url: '/api/partners',
170
+ query: {
171
+ 'page': page,
172
+ 'itemsPerPage': itemsPerPage,
173
+ 'region': region,
174
+ 'search': search,
175
+ 'active': active,
176
+ },
177
+ });
178
+ }
179
+ /**
180
+ * Retrieves a Partner resource.
181
+ * Retrieves a Partner resource.
182
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{partner_id}})
183
+ * @returns Partner_jsonld Partner resource
184
+ * @throws ApiError
185
+ */
186
+ partnersIdGet(id) {
187
+ return __request(OpenAPI, {
188
+ method: 'GET',
189
+ url: '/api/partners/{id}',
190
+ path: {
191
+ 'id': id,
192
+ },
193
+ errors: {
194
+ 404: `Not found`,
195
+ },
196
+ });
197
+ }
198
+ /**
199
+ * Retrieves the collection of Payment resources.
200
+ * Retrieves the collection of Payment resources.
201
+ * @param enquiryId by enquiry ID
202
+ * @returns any Payment collection
203
+ * @throws ApiError
204
+ */
205
+ paymentsGetCollection(enquiryId) {
206
+ return __request(OpenAPI, {
207
+ method: 'GET',
208
+ url: '/api/payments',
209
+ query: {
210
+ 'enquiry_id': enquiryId,
211
+ },
212
+ });
213
+ }
214
+ /**
215
+ * Retrieves the collection of Person resources.
216
+ * Retrieves the collection of Person resources.
217
+ * @param region antarctica, arctic, patagonia
218
+ * @returns any Person collection
219
+ * @throws ApiError
220
+ */
221
+ peopleGetCollection(region) {
222
+ return __request(OpenAPI, {
223
+ method: 'GET',
224
+ url: '/api/people',
225
+ query: {
226
+ 'region': region,
227
+ },
228
+ });
229
+ }
230
+ /**
231
+ * Retrieves a Person resource.
232
+ * Retrieves a Person resource.
233
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{person_id}})
234
+ * @returns Person_jsonld Person resource
235
+ * @throws ApiError
236
+ */
237
+ peopleIdGet(id) {
238
+ return __request(OpenAPI, {
239
+ method: 'GET',
240
+ url: '/api/people/{id}',
241
+ path: {
242
+ 'id': id,
243
+ },
244
+ errors: {
245
+ 404: `Not found`,
246
+ },
247
+ });
248
+ }
249
+ /**
250
+ * Retrieves the collection of Traveller resources.
251
+ * Retrieves the collection of Traveller resources.
252
+ * @param enquiryId by enquiry ID
253
+ * @param region antarctica, arctic, patagonia
254
+ * @returns any Traveller collection
255
+ * @throws ApiError
256
+ */
257
+ travellersGetCollection(enquiryId, region) {
258
+ return __request(OpenAPI, {
259
+ method: 'GET',
260
+ url: '/api/travellers',
261
+ query: {
262
+ 'enquiry_id': enquiryId,
263
+ 'region': region,
264
+ },
265
+ });
266
+ }
267
+ /**
268
+ * Retrieves a Traveller resource.
269
+ * Retrieves a Traveller resource.
270
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{traveller_id}})
271
+ * @returns Traveller_jsonld Traveller resource
272
+ * @throws ApiError
273
+ */
274
+ travellersIdGet(id) {
275
+ return __request(OpenAPI, {
276
+ method: 'GET',
277
+ url: '/api/travellers/{id}',
278
+ path: {
279
+ 'id': id,
280
+ },
281
+ errors: {
282
+ 404: `Not found`,
283
+ },
284
+ });
285
+ }
286
+ /**
287
+ * Retrieves the collection of Trip resources.
288
+ * Retrieves the collection of Trip resources.
289
+ * @param page The collection page number
290
+ * @param itemsPerPage The number of items per page
291
+ * @param search Search against title
292
+ * @param region antarctica, arctic, patagonia
293
+ * @param publishstate unpublished, approval, published, rejected
294
+ * @returns any Trip collection
295
+ * @throws ApiError
296
+ */
297
+ tripsGetCollection(page = 1, itemsPerPage = 30, search, region, publishstate) {
298
+ return __request(OpenAPI, {
299
+ method: 'GET',
300
+ url: '/api/trips',
301
+ query: {
302
+ 'page': page,
303
+ 'itemsPerPage': itemsPerPage,
304
+ 'search': search,
305
+ 'region': region,
306
+ 'publishstate': publishstate,
307
+ },
308
+ });
309
+ }
310
+ /**
311
+ * Retrieves a Trip resource.
312
+ * Retrieves a Trip resource.
313
+ * @param id The unique identifier example: ANT-12345 ({REGION}-{trip_id}})
314
+ * @returns Trip_jsonld Trip resource
315
+ * @throws ApiError
316
+ */
317
+ tripsIdGet(id) {
318
+ return __request(OpenAPI, {
319
+ method: 'GET',
320
+ url: '/api/trips/{id}',
321
+ path: {
322
+ 'id': id,
323
+ },
324
+ errors: {
325
+ 404: `Not found`,
326
+ },
327
+ });
328
+ }
329
+ }