swoop-common 2.0.8 → 2.0.10

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 (28) hide show
  1. package/dist/api/generated/core/models/Bundle.d.ts +2 -2
  2. package/dist/api/generated/core/models/BundleDay.d.ts +2 -2
  3. package/dist/api/generated/core/models/DTOComponentCreate.d.ts +1 -1
  4. package/dist/api/generated/core/models/DTOComponentRead.d.ts +1 -1
  5. package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +1 -1
  6. package/dist/api/generated/core/services/CoreService.d.ts +0 -7
  7. package/dist/api/generated/core/services/CoreService.js +0 -12
  8. package/dist/api/generated/itinerary/models/Bundle.d.ts +2 -2
  9. package/dist/api/generated/itinerary/models/BundleDay.d.ts +2 -2
  10. package/dist/api/generated/itinerary/models/DTOComponentCreate.d.ts +1 -1
  11. package/dist/api/generated/itinerary/models/DTOComponentRead.d.ts +1 -1
  12. package/dist/api/generated/itinerary/models/DTOComponentUpdate.d.ts +1 -1
  13. package/dist/api/generated/swoop/exports.d.ts +4 -0
  14. package/dist/api/generated/swoop/index.d.ts +4 -0
  15. package/dist/api/generated/swoop/models/CurrencyConversion.d.ts +8 -0
  16. package/dist/api/generated/swoop/models/CurrencyConversion.js +1 -0
  17. package/dist/api/generated/swoop/models/CurrencyConversionBatch.d.ts +14 -0
  18. package/dist/api/generated/swoop/models/CurrencyConversionBatch.js +1 -0
  19. package/dist/api/generated/swoop/models/CurrencyConversionBatch_jsonld.d.ts +17 -0
  20. package/dist/api/generated/swoop/models/CurrencyConversionBatch_jsonld.js +1 -0
  21. package/dist/api/generated/swoop/models/CurrencyConversion_jsonld.d.ts +11 -0
  22. package/dist/api/generated/swoop/models/CurrencyConversion_jsonld.js +1 -0
  23. package/dist/api/generated/swoop/models/Person.d.ts +1 -0
  24. package/dist/api/generated/swoop/models/Person_jsonld.d.ts +1 -0
  25. package/dist/api/generated/swoop/services/SwoopService.d.ts +86 -268
  26. package/dist/api/generated/swoop/services/SwoopService.js +59 -17
  27. package/dist/rendering/renderers/ComponentPicker.d.ts +1 -1
  28. package/package.json +1 -1
@@ -3,6 +3,6 @@ export type Bundle = {
3
3
  days: Array<BundleDay>;
4
4
  title: string;
5
5
  description: string;
6
- start: string;
7
- end: string;
6
+ startTime?: string;
7
+ endTime?: string;
8
8
  };
@@ -3,6 +3,6 @@ export type BundleDay = {
3
3
  title?: string;
4
4
  description?: string;
5
5
  items?: Array<BundleItem>;
6
- startDay?: string;
7
- endDay?: string;
6
+ startDay?: number;
7
+ endDay?: number;
8
8
  };
@@ -12,7 +12,7 @@ export type DTOComponentCreate = {
12
12
  name: string;
13
13
  componentFields: Array<Field>;
14
14
  partners: Array<string>;
15
- bundle: Array<Bundle>;
15
+ bundle: Bundle;
16
16
  startDate?: string | null;
17
17
  endDate?: string | null;
18
18
  duration?: number | null;
@@ -11,7 +11,7 @@ export type DTOComponentRead = {
11
11
  name: string;
12
12
  componentFields: Array<Field>;
13
13
  partners: Array<string>;
14
- bundle: Array<Bundle>;
14
+ bundle: Bundle;
15
15
  startDate?: string | null;
16
16
  endDate?: string | null;
17
17
  duration?: number | null;
@@ -11,7 +11,7 @@ export type DTOComponentUpdate = {
11
11
  name: string;
12
12
  componentFields: Array<Field>;
13
13
  partners: Array<string>;
14
- bundle: Array<Bundle>;
14
+ bundle: Bundle;
15
15
  startDate?: string | null;
16
16
  endDate?: string | null;
17
17
  duration?: number | null;
@@ -107,13 +107,6 @@ export declare class CoreService {
107
107
  componentStateUpdate(componentId: string, requestBody: {
108
108
  state?: 'published' | 'deprecated' | 'unpublished';
109
109
  }): CancelablePromise<any>;
110
- /**
111
- * Get Itinerary
112
- * Get itinerary via id
113
- * @returns any OK
114
- * @throws ApiError
115
- */
116
- itineraryGet(): CancelablePromise<any>;
117
110
  /**
118
111
  * Resolve template hierarchy
119
112
  * @returns Array<DTOTemplateRead> OK
@@ -197,18 +197,6 @@ export class CoreService {
197
197
  mediaType: 'application/json',
198
198
  });
199
199
  }
200
- /**
201
- * Get Itinerary
202
- * Get itinerary via id
203
- * @returns any OK
204
- * @throws ApiError
205
- */
206
- itineraryGet() {
207
- return __request(OpenAPI, {
208
- method: 'GET',
209
- url: '/itineraries',
210
- });
211
- }
212
200
  /**
213
201
  * Resolve template hierarchy
214
202
  * @returns Array<DTOTemplateRead> OK
@@ -3,6 +3,6 @@ export type Bundle = {
3
3
  days: Array<BundleDay>;
4
4
  title: string;
5
5
  description: string;
6
- start: string;
7
- end: string;
6
+ startTime?: string;
7
+ endTime?: string;
8
8
  };
@@ -3,6 +3,6 @@ export type BundleDay = {
3
3
  title?: string;
4
4
  description?: string;
5
5
  items?: Array<BundleItem>;
6
- startDay?: string;
7
- endDay?: string;
6
+ startDay?: number;
7
+ endDay?: number;
8
8
  };
@@ -12,7 +12,7 @@ export type DTOComponentCreate = {
12
12
  name: string;
13
13
  componentFields: Array<Field>;
14
14
  partners: Array<string>;
15
- bundle: Array<Bundle>;
15
+ bundle: Bundle;
16
16
  startDate?: string | null;
17
17
  endDate?: string | null;
18
18
  duration?: number | null;
@@ -11,7 +11,7 @@ export type DTOComponentRead = {
11
11
  name: string;
12
12
  componentFields: Array<Field>;
13
13
  partners: Array<string>;
14
- bundle: Array<Bundle>;
14
+ bundle: Bundle;
15
15
  startDate?: string | null;
16
16
  endDate?: string | null;
17
17
  duration?: number | null;
@@ -11,7 +11,7 @@ export type DTOComponentUpdate = {
11
11
  name: string;
12
12
  componentFields: Array<Field>;
13
13
  partners: Array<string>;
14
- bundle: Array<Bundle>;
14
+ bundle: Bundle;
15
15
  startDate?: string | null;
16
16
  endDate?: string | null;
17
17
  duration?: number | null;
@@ -8,6 +8,10 @@ export type { CountrySwoop } from './index';
8
8
  export type { Country_jsonldSwoop } from './index';
9
9
  export type { CurrencySwoop } from './index';
10
10
  export type { Currency_jsonldSwoop } from './index';
11
+ export type { CurrencyConversionSwoop } from './index';
12
+ export type { CurrencyConversion_jsonldSwoop } from './index';
13
+ export type { CurrencyConversionBatchSwoop } from './index';
14
+ export type { CurrencyConversionBatch_jsonldSwoop } from './index';
11
15
  export type { CustomerSwoop } from './index';
12
16
  export type { Customer_jsonldSwoop } from './index';
13
17
  export type { CustomerLookupSwoop } from './index';
@@ -12,6 +12,10 @@ export type { Country as CountrySwoop } from './models/Country';
12
12
  export type { Country_jsonld as Country_jsonldSwoop } from './models/Country_jsonld';
13
13
  export type { Currency as CurrencySwoop } from './models/Currency';
14
14
  export type { Currency_jsonld as Currency_jsonldSwoop } from './models/Currency_jsonld';
15
+ export type { CurrencyConversion as CurrencyConversionSwoop } from './models/CurrencyConversion';
16
+ export type { CurrencyConversion_jsonld as CurrencyConversion_jsonldSwoop } from './models/CurrencyConversion_jsonld';
17
+ export type { CurrencyConversionBatch as CurrencyConversionBatchSwoop } from './models/CurrencyConversionBatch';
18
+ export type { CurrencyConversionBatch_jsonld as CurrencyConversionBatch_jsonldSwoop } from './models/CurrencyConversionBatch_jsonld';
15
19
  export type { Customer as CustomerSwoop } from './models/Customer';
16
20
  export type { Customer_jsonld as Customer_jsonldSwoop } from './models/Customer_jsonld';
17
21
  export type { CustomerLookup as CustomerLookupSwoop } from './models/CustomerLookup';
@@ -0,0 +1,8 @@
1
+ export type CurrencyConversion = {
2
+ fromCurrency?: string;
3
+ toCurrency?: string;
4
+ conversion?: number;
5
+ amount?: number | null;
6
+ convertedAmount?: number | null;
7
+ formattedAmount?: string | null;
8
+ };
@@ -0,0 +1,14 @@
1
+ export type CurrencyConversionBatch = {
2
+ /**
3
+ * Array of converted amounts with details
4
+ */
5
+ convertedAmounts?: Array<string>;
6
+ /**
7
+ * Total amount in target currency
8
+ */
9
+ total?: number;
10
+ /**
11
+ * Formatted total with currency symbol
12
+ */
13
+ formattedTotal?: string;
14
+ };
@@ -0,0 +1,17 @@
1
+ export type CurrencyConversionBatch_jsonld = {
2
+ readonly '@context'?: (string | Record<string, any>);
3
+ readonly '@id'?: string;
4
+ readonly '@type'?: string;
5
+ /**
6
+ * Array of converted amounts with details
7
+ */
8
+ convertedAmounts?: Array<string>;
9
+ /**
10
+ * Total amount in target currency
11
+ */
12
+ total?: number;
13
+ /**
14
+ * Formatted total with currency symbol
15
+ */
16
+ formattedTotal?: string;
17
+ };
@@ -0,0 +1,11 @@
1
+ export type CurrencyConversion_jsonld = {
2
+ readonly '@context'?: (string | Record<string, any>);
3
+ readonly '@id'?: string;
4
+ readonly '@type'?: string;
5
+ fromCurrency?: string;
6
+ toCurrency?: string;
7
+ conversion?: number;
8
+ amount?: number | null;
9
+ convertedAmount?: number | null;
10
+ formattedAmount?: string | null;
11
+ };
@@ -9,4 +9,5 @@ export type Person = {
9
9
  telephone2?: string | null;
10
10
  role?: string | null;
11
11
  avatarUrl?: string | null;
12
+ welcomeNote?: string | null;
12
13
  };
@@ -12,4 +12,5 @@ export type Person_jsonld = {
12
12
  telephone2?: string | null;
13
13
  role?: string | null;
14
14
  avatarUrl?: string | null;
15
+ welcomeNote?: string | null;
15
16
  };
@@ -1,15 +1,17 @@
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';
1
+ import type { BookingItemType } from '../models/BookingItemType';
2
+ import type { Category } from '../models/Category';
3
+ import type { Currency } from '../models/Currency';
4
+ import type { CurrencyConversion } from '../models/CurrencyConversion';
5
+ import type { CurrencyConversionBatch } from '../models/CurrencyConversionBatch';
6
+ import type { Customer } from '../models/Customer';
7
+ import type { CustomerLookup } from '../models/CustomerLookup';
8
+ import type { Enquiry } from '../models/Enquiry';
9
+ import type { EnquiryStatus } from '../models/EnquiryStatus';
10
+ import type { Partner } from '../models/Partner';
11
+ import type { Payment } from '../models/Payment';
12
+ import type { Person } from '../models/Person';
13
+ import type { Traveller } from '../models/Traveller';
14
+ import type { Trip } from '../models/Trip';
13
15
  import type { CancelablePromise } from '../core/CancelablePromise';
14
16
  export declare class SwoopService {
15
17
  /**
@@ -17,94 +19,64 @@ export declare class SwoopService {
17
19
  * Retrieves the collection of BookingItemType resources.
18
20
  * @param region antarctica, arctic, patagonia
19
21
  * @param active 1,0
20
- * @returns any BookingItemType collection
22
+ * @returns BookingItemType BookingItemType collection
21
23
  * @throws ApiError
22
24
  */
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
- }>;
25
+ bookingItemTypesGetCollection(region?: string, active?: string): CancelablePromise<Array<BookingItemType>>;
46
26
  /**
47
27
  * Retrieves the collection of Category resources.
48
28
  * Retrieves the collection of Category resources.
49
29
  * @param region antarctica, arctic, patagonia
50
30
  * @param active 1,0
51
- * @returns any Category collection
31
+ * @returns Category Category collection
52
32
  * @throws ApiError
53
33
  */
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
- }>;
34
+ categoriesGetCollection(region?: string, active?: string): CancelablePromise<Array<Category>>;
77
35
  /**
78
36
  * Retrieves the collection of Currency resources.
79
37
  * Retrieves the collection of Currency resources.
80
38
  * @param region antarctica, arctic, patagonia
81
39
  * @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
- }>;
40
+ * @returns Currency Currency collection
41
+ * @throws ApiError
42
+ */
43
+ currenciesGetCollection(region?: string, active?: string): CancelablePromise<Array<Currency>>;
44
+ /**
45
+ * Retrieves a CurrencyConversion resource.
46
+ * Retrieves a CurrencyConversion resource.
47
+ * @param fromCurrency ISO 3 currency code (e.g., CAD, GBP, USD)
48
+ * @param toCurrency ISO 3 currency code (e.g., CAD, GBP, USD)
49
+ * @param amount Optional amount to convert
50
+ * @returns CurrencyConversion CurrencyConversion resource
51
+ * @throws ApiError
52
+ */
53
+ currencyConversionGet(fromCurrency?: string, toCurrency?: string, amount?: string): CancelablePromise<CurrencyConversion>;
54
+ /**
55
+ * Convert multiple amounts to a target currency
56
+ * Converts multiple amounts from different currencies to a single target currency
57
+ * @param requestBody Currency conversion batch request
58
+ * @returns CurrencyConversionBatch CurrencyConversionBatch resource created
59
+ * @throws ApiError
60
+ */
61
+ currencyConversionbatchPost(requestBody?: {
62
+ /**
63
+ * Target currency in ISO 3 format (3 uppercase letters)
64
+ */
65
+ to_currency: string;
66
+ /**
67
+ * Array of amounts with currencies to convert
68
+ */
69
+ amounts: Array<{
70
+ /**
71
+ * Currency code in ISO 3 format
72
+ */
73
+ currency: string;
74
+ /**
75
+ * Amount to convert
76
+ */
77
+ amount: number;
78
+ }>;
79
+ }): CancelablePromise<CurrencyConversionBatch>;
108
80
  /**
109
81
  * Retrieves the collection of Customer resources.
110
82
  * Retrieves the collection of Customer resources.
@@ -112,87 +84,43 @@ export declare class SwoopService {
112
84
  * @param itemsPerPage The number of items per page
113
85
  * @param search Search against first_name, last_name, email
114
86
  * @param region antarctica, arctic, patagonia
115
- * @returns any Customer collection
87
+ * @returns Customer Customer collection
116
88
  * @throws ApiError
117
89
  */
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
- }>;
90
+ customersGetCollection(page?: number, itemsPerPage?: number, search?: string, region?: string): CancelablePromise<Array<Customer>>;
141
91
  /**
142
92
  * Retrieves a Customer resource.
143
93
  * Retrieves a Customer resource.
144
94
  * @param id The unique identifier example: ANT-12345 ({REGION}-{customer_id}})
145
- * @returns Customer_jsonld Customer resource
95
+ * @returns Customer Customer resource
146
96
  * @throws ApiError
147
97
  */
148
- customersIdGet(id: string): CancelablePromise<Customer_jsonld>;
98
+ customersIdGet(id: string): CancelablePromise<Customer>;
149
99
  /**
150
100
  * Retrieves a CustomerLookup resource.
151
101
  * Retrieves a CustomerLookup resource.
152
102
  * @param telephone Customer telephone number to look up (+447877887878)
153
103
  * @param region antarctica, arctic, patagonia
154
- * @returns CustomerLookup_jsonld CustomerLookup resource
104
+ * @returns CustomerLookup CustomerLookup resource
155
105
  * @throws ApiError
156
106
  */
157
- customersLookUpGet(telephone?: string, region?: string): CancelablePromise<CustomerLookup_jsonld>;
107
+ customersLookUpGet(telephone?: string, region?: string): CancelablePromise<CustomerLookup>;
158
108
  /**
159
109
  * Retrieves a Enquiry resource.
160
110
  * Retrieves a Enquiry resource.
161
111
  * @param id The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
162
- * @returns Enquiry_jsonld Enquiry resource
112
+ * @returns Enquiry Enquiry resource
163
113
  * @throws ApiError
164
114
  */
165
- enquiryIdGet(id: string): CancelablePromise<Enquiry_jsonld>;
115
+ enquiryIdGet(id: string): CancelablePromise<Enquiry>;
166
116
  /**
167
117
  * Retrieves the collection of EnquiryStatus resources.
168
118
  * Retrieves the collection of EnquiryStatus resources.
169
119
  * @param region antarctica, arctic, patagonia
170
- * @returns any EnquiryStatus collection
120
+ * @returns EnquiryStatus EnquiryStatus collection
171
121
  * @throws ApiError
172
122
  */
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
- }>;
123
+ enquiryStatusesGetCollection(region?: string): CancelablePromise<Array<EnquiryStatus>>;
196
124
  /**
197
125
  * Retrieves the collection of Partner resources.
198
126
  * Retrieves the collection of Partner resources.
@@ -201,147 +129,59 @@ export declare class SwoopService {
201
129
  * @param region antarctica, arctic, patagonia
202
130
  * @param search Search against title, alias, description, name, telephone, email
203
131
  * @param active Filter by active status (0,1)
204
- * @returns any Partner collection
132
+ * @returns Partner Partner collection
205
133
  * @throws ApiError
206
134
  */
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
- }>;
135
+ partnersGetCollection(page?: number, itemsPerPage?: number, region?: string, search?: string, active?: string): CancelablePromise<Array<Partner>>;
230
136
  /**
231
137
  * Retrieves a Partner resource.
232
138
  * Retrieves a Partner resource.
233
139
  * @param id The unique identifier example: ANT-12345 ({REGION}-{partner_id}})
234
- * @returns Partner_jsonld Partner resource
140
+ * @returns Partner Partner resource
235
141
  * @throws ApiError
236
142
  */
237
- partnersIdGet(id: string): CancelablePromise<Partner_jsonld>;
143
+ partnersIdGet(id: string): CancelablePromise<Partner>;
238
144
  /**
239
145
  * Retrieves the collection of Payment resources.
240
146
  * Retrieves the collection of Payment resources.
241
147
  * @param enquiryId by enquiry ID
242
- * @returns any Payment collection
148
+ * @returns Payment Payment collection
243
149
  * @throws ApiError
244
150
  */
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
- }>;
151
+ paymentsGetCollection(enquiryId?: string): CancelablePromise<Array<Payment>>;
268
152
  /**
269
153
  * Retrieves the collection of Person resources.
270
154
  * Retrieves the collection of Person resources.
271
155
  * @param region antarctica, arctic, patagonia
272
- * @returns any Person collection
156
+ * @returns Person Person collection
273
157
  * @throws ApiError
274
158
  */
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
- }>;
159
+ peopleGetCollection(region?: string): CancelablePromise<Array<Person>>;
298
160
  /**
299
161
  * Retrieves a Person resource.
300
162
  * Retrieves a Person resource.
301
163
  * @param id The unique identifier example: ANT-12345 ({REGION}-{person_id}})
302
- * @returns Person_jsonld Person resource
164
+ * @returns Person Person resource
303
165
  * @throws ApiError
304
166
  */
305
- peopleIdGet(id: string): CancelablePromise<Person_jsonld>;
167
+ peopleIdGet(id: string): CancelablePromise<Person>;
306
168
  /**
307
169
  * Retrieves the collection of Traveller resources.
308
170
  * Retrieves the collection of Traveller resources.
309
171
  * @param enquiryId by enquiry ID
310
172
  * @param region antarctica, arctic, patagonia
311
- * @returns any Traveller collection
173
+ * @returns Traveller Traveller collection
312
174
  * @throws ApiError
313
175
  */
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
- }>;
176
+ travellersGetCollection(enquiryId?: string, region?: string): CancelablePromise<Array<Traveller>>;
337
177
  /**
338
178
  * Retrieves a Traveller resource.
339
179
  * Retrieves a Traveller resource.
340
180
  * @param id The unique identifier example: ANT-12345 ({REGION}-{traveller_id}})
341
- * @returns Traveller_jsonld Traveller resource
181
+ * @returns Traveller Traveller resource
342
182
  * @throws ApiError
343
183
  */
344
- travellersIdGet(id: string): CancelablePromise<Traveller_jsonld>;
184
+ travellersIdGet(id: string): CancelablePromise<Traveller>;
345
185
  /**
346
186
  * Retrieves the collection of Trip resources.
347
187
  * Retrieves the collection of Trip resources.
@@ -350,38 +190,16 @@ export declare class SwoopService {
350
190
  * @param search Search against title
351
191
  * @param region antarctica, arctic, patagonia
352
192
  * @param publishstate unpublished, approval, published, rejected
353
- * @returns any Trip collection
193
+ * @returns Trip Trip collection
354
194
  * @throws ApiError
355
195
  */
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
- }>;
196
+ tripsGetCollection(page?: number, itemsPerPage?: number, search?: string, region?: string, publishstate?: string): CancelablePromise<Array<Trip>>;
379
197
  /**
380
198
  * Retrieves a Trip resource.
381
199
  * Retrieves a Trip resource.
382
200
  * @param id The unique identifier example: ANT-12345 ({REGION}-{trip_id}})
383
- * @returns Trip_jsonld Trip resource
201
+ * @returns Trip Trip resource
384
202
  * @throws ApiError
385
203
  */
386
- tripsIdGet(id: string): CancelablePromise<Trip_jsonld>;
204
+ tripsIdGet(id: string): CancelablePromise<Trip>;
387
205
  }
@@ -6,7 +6,7 @@ export class SwoopService {
6
6
  * Retrieves the collection of BookingItemType resources.
7
7
  * @param region antarctica, arctic, patagonia
8
8
  * @param active 1,0
9
- * @returns any BookingItemType collection
9
+ * @returns BookingItemType BookingItemType collection
10
10
  * @throws ApiError
11
11
  */
12
12
  bookingItemTypesGetCollection(region, active) {
@@ -24,7 +24,7 @@ export class SwoopService {
24
24
  * Retrieves the collection of Category resources.
25
25
  * @param region antarctica, arctic, patagonia
26
26
  * @param active 1,0
27
- * @returns any Category collection
27
+ * @returns Category Category collection
28
28
  * @throws ApiError
29
29
  */
30
30
  categoriesGetCollection(region, active) {
@@ -42,7 +42,7 @@ export class SwoopService {
42
42
  * Retrieves the collection of Currency resources.
43
43
  * @param region antarctica, arctic, patagonia
44
44
  * @param active 1,0
45
- * @returns any Currency collection
45
+ * @returns Currency Currency collection
46
46
  * @throws ApiError
47
47
  */
48
48
  currenciesGetCollection(region, active) {
@@ -55,6 +55,48 @@ export class SwoopService {
55
55
  },
56
56
  });
57
57
  }
58
+ /**
59
+ * Retrieves a CurrencyConversion resource.
60
+ * Retrieves a CurrencyConversion resource.
61
+ * @param fromCurrency ISO 3 currency code (e.g., CAD, GBP, USD)
62
+ * @param toCurrency ISO 3 currency code (e.g., CAD, GBP, USD)
63
+ * @param amount Optional amount to convert
64
+ * @returns CurrencyConversion CurrencyConversion resource
65
+ * @throws ApiError
66
+ */
67
+ currencyConversionGet(fromCurrency, toCurrency, amount) {
68
+ return __request(OpenAPI, {
69
+ method: 'GET',
70
+ url: '/api/currency-conversion',
71
+ query: {
72
+ 'from_currency': fromCurrency,
73
+ 'to_currency': toCurrency,
74
+ 'amount': amount,
75
+ },
76
+ errors: {
77
+ 404: `Not found`,
78
+ },
79
+ });
80
+ }
81
+ /**
82
+ * Convert multiple amounts to a target currency
83
+ * Converts multiple amounts from different currencies to a single target currency
84
+ * @param requestBody Currency conversion batch request
85
+ * @returns CurrencyConversionBatch CurrencyConversionBatch resource created
86
+ * @throws ApiError
87
+ */
88
+ currencyConversionbatchPost(requestBody) {
89
+ return __request(OpenAPI, {
90
+ method: 'POST',
91
+ url: '/api/currency-conversion/batch',
92
+ body: requestBody,
93
+ mediaType: 'application/json',
94
+ errors: {
95
+ 400: `Invalid input`,
96
+ 422: `Validation Error`,
97
+ },
98
+ });
99
+ }
58
100
  /**
59
101
  * Retrieves the collection of Customer resources.
60
102
  * Retrieves the collection of Customer resources.
@@ -62,7 +104,7 @@ export class SwoopService {
62
104
  * @param itemsPerPage The number of items per page
63
105
  * @param search Search against first_name, last_name, email
64
106
  * @param region antarctica, arctic, patagonia
65
- * @returns any Customer collection
107
+ * @returns Customer Customer collection
66
108
  * @throws ApiError
67
109
  */
68
110
  customersGetCollection(page = 1, itemsPerPage = 30, search, region) {
@@ -81,7 +123,7 @@ export class SwoopService {
81
123
  * Retrieves a Customer resource.
82
124
  * Retrieves a Customer resource.
83
125
  * @param id The unique identifier example: ANT-12345 ({REGION}-{customer_id}})
84
- * @returns Customer_jsonld Customer resource
126
+ * @returns Customer Customer resource
85
127
  * @throws ApiError
86
128
  */
87
129
  customersIdGet(id) {
@@ -101,7 +143,7 @@ export class SwoopService {
101
143
  * Retrieves a CustomerLookup resource.
102
144
  * @param telephone Customer telephone number to look up (+447877887878)
103
145
  * @param region antarctica, arctic, patagonia
104
- * @returns CustomerLookup_jsonld CustomerLookup resource
146
+ * @returns CustomerLookup CustomerLookup resource
105
147
  * @throws ApiError
106
148
  */
107
149
  customersLookUpGet(telephone, region) {
@@ -121,7 +163,7 @@ export class SwoopService {
121
163
  * Retrieves a Enquiry resource.
122
164
  * Retrieves a Enquiry resource.
123
165
  * @param id The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
124
- * @returns Enquiry_jsonld Enquiry resource
166
+ * @returns Enquiry Enquiry resource
125
167
  * @throws ApiError
126
168
  */
127
169
  enquiryIdGet(id) {
@@ -140,7 +182,7 @@ export class SwoopService {
140
182
  * Retrieves the collection of EnquiryStatus resources.
141
183
  * Retrieves the collection of EnquiryStatus resources.
142
184
  * @param region antarctica, arctic, patagonia
143
- * @returns any EnquiryStatus collection
185
+ * @returns EnquiryStatus EnquiryStatus collection
144
186
  * @throws ApiError
145
187
  */
146
188
  enquiryStatusesGetCollection(region) {
@@ -160,7 +202,7 @@ export class SwoopService {
160
202
  * @param region antarctica, arctic, patagonia
161
203
  * @param search Search against title, alias, description, name, telephone, email
162
204
  * @param active Filter by active status (0,1)
163
- * @returns any Partner collection
205
+ * @returns Partner Partner collection
164
206
  * @throws ApiError
165
207
  */
166
208
  partnersGetCollection(page = 1, itemsPerPage = 30, region, search, active) {
@@ -180,7 +222,7 @@ export class SwoopService {
180
222
  * Retrieves a Partner resource.
181
223
  * Retrieves a Partner resource.
182
224
  * @param id The unique identifier example: ANT-12345 ({REGION}-{partner_id}})
183
- * @returns Partner_jsonld Partner resource
225
+ * @returns Partner Partner resource
184
226
  * @throws ApiError
185
227
  */
186
228
  partnersIdGet(id) {
@@ -199,7 +241,7 @@ export class SwoopService {
199
241
  * Retrieves the collection of Payment resources.
200
242
  * Retrieves the collection of Payment resources.
201
243
  * @param enquiryId by enquiry ID
202
- * @returns any Payment collection
244
+ * @returns Payment Payment collection
203
245
  * @throws ApiError
204
246
  */
205
247
  paymentsGetCollection(enquiryId) {
@@ -215,7 +257,7 @@ export class SwoopService {
215
257
  * Retrieves the collection of Person resources.
216
258
  * Retrieves the collection of Person resources.
217
259
  * @param region antarctica, arctic, patagonia
218
- * @returns any Person collection
260
+ * @returns Person Person collection
219
261
  * @throws ApiError
220
262
  */
221
263
  peopleGetCollection(region) {
@@ -231,7 +273,7 @@ export class SwoopService {
231
273
  * Retrieves a Person resource.
232
274
  * Retrieves a Person resource.
233
275
  * @param id The unique identifier example: ANT-12345 ({REGION}-{person_id}})
234
- * @returns Person_jsonld Person resource
276
+ * @returns Person Person resource
235
277
  * @throws ApiError
236
278
  */
237
279
  peopleIdGet(id) {
@@ -251,7 +293,7 @@ export class SwoopService {
251
293
  * Retrieves the collection of Traveller resources.
252
294
  * @param enquiryId by enquiry ID
253
295
  * @param region antarctica, arctic, patagonia
254
- * @returns any Traveller collection
296
+ * @returns Traveller Traveller collection
255
297
  * @throws ApiError
256
298
  */
257
299
  travellersGetCollection(enquiryId, region) {
@@ -268,7 +310,7 @@ export class SwoopService {
268
310
  * Retrieves a Traveller resource.
269
311
  * Retrieves a Traveller resource.
270
312
  * @param id The unique identifier example: ANT-12345 ({REGION}-{traveller_id}})
271
- * @returns Traveller_jsonld Traveller resource
313
+ * @returns Traveller Traveller resource
272
314
  * @throws ApiError
273
315
  */
274
316
  travellersIdGet(id) {
@@ -291,7 +333,7 @@ export class SwoopService {
291
333
  * @param search Search against title
292
334
  * @param region antarctica, arctic, patagonia
293
335
  * @param publishstate unpublished, approval, published, rejected
294
- * @returns any Trip collection
336
+ * @returns Trip Trip collection
295
337
  * @throws ApiError
296
338
  */
297
339
  tripsGetCollection(page = 1, itemsPerPage = 30, search, region, publishstate) {
@@ -311,7 +353,7 @@ export class SwoopService {
311
353
  * Retrieves a Trip resource.
312
354
  * Retrieves a Trip resource.
313
355
  * @param id The unique identifier example: ANT-12345 ({REGION}-{trip_id}})
314
- * @returns Trip_jsonld Trip resource
356
+ * @returns Trip Trip resource
315
357
  * @throws ApiError
316
358
  */
317
359
  tripsIdGet(id) {
@@ -10,7 +10,7 @@ export declare const fetchComponents: () => Promise<{
10
10
  name: string;
11
11
  componentFields: Array<import("../../api/generated/core").Field>;
12
12
  partners: Array<string>;
13
- bundle: Array<import("../../api/generated/core").Bundle>;
13
+ bundle: import("../../api/generated/core").Bundle;
14
14
  startDate?: string | null;
15
15
  endDate?: string | null;
16
16
  duration?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {