swoop-common 2.2.67 → 2.2.72

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 (42) hide show
  1. package/dist/api/generated/core/exports.d.ts +2 -0
  2. package/dist/api/generated/core/index.d.ts +2 -0
  3. package/dist/api/generated/core/models/ComponentInstance.d.ts +1 -0
  4. package/dist/api/generated/core/models/Currency.d.ts +1 -0
  5. package/dist/api/generated/core/models/Currency.js +1 -0
  6. package/dist/api/generated/core/models/DTOPublicSnapshotCreate.d.ts +4 -2
  7. package/dist/api/generated/core/models/DTOPublicSnapshotEntity.d.ts +4 -2
  8. package/dist/api/generated/core/models/DTOPublicSnapshotRead.d.ts +4 -2
  9. package/dist/api/generated/core/models/PublicPaymentLead.d.ts +4 -0
  10. package/dist/api/generated/core/models/PublicSnapShotPayment.d.ts +8 -0
  11. package/dist/api/generated/core/models/QuoteOptions.d.ts +1 -0
  12. package/dist/api/generated/core/services/CoreService.js +1 -0
  13. package/dist/api/generated/core/services/SnapshotService.js +1 -0
  14. package/dist/api/generated/swoop/exports.d.ts +0 -2
  15. package/dist/api/generated/swoop/index.d.ts +0 -2
  16. package/dist/api/generated/swoop/models/Address.d.ts +2 -2
  17. package/dist/api/generated/swoop/models/Address_jsonld.d.ts +2 -2
  18. package/dist/api/generated/swoop/models/Country.d.ts +1 -1
  19. package/dist/api/generated/swoop/models/Country_jsonld.d.ts +1 -1
  20. package/dist/api/generated/swoop/models/EmergencyDetails.d.ts +1 -1
  21. package/dist/api/generated/swoop/models/EmergencyDetails_jsonld.d.ts +1 -1
  22. package/dist/api/generated/swoop/models/Enquiry.d.ts +11 -1
  23. package/dist/api/generated/swoop/models/EnquiryPerson.d.ts +2 -2
  24. package/dist/api/generated/swoop/models/EnquiryPerson_jsonld.d.ts +2 -2
  25. package/dist/api/generated/swoop/models/Enquiry_jsonld.d.ts +11 -1
  26. package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveInput.d.ts +1 -0
  27. package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveInput_jsonld.d.ts +1 -0
  28. package/dist/api/generated/swoop/models/Passport.d.ts +3 -3
  29. package/dist/api/generated/swoop/models/Passport_jsonld.d.ts +3 -3
  30. package/dist/api/generated/swoop/models/Person.d.ts +1 -1
  31. package/dist/api/generated/swoop/models/Person_jsonld.d.ts +2 -0
  32. package/dist/api/generated/swoop/models/TravellerGroup.d.ts +5 -5
  33. package/dist/api/generated/swoop/models/TravellerGroup_jsonld.d.ts +5 -5
  34. package/dist/api/generated/swoop/models/TripVariant.d.ts +1 -2
  35. package/dist/api/generated/swoop/models/TripVariant_jsonld.d.ts +1 -2
  36. package/dist/api/generated/swoop/services/SwoopService.d.ts +75 -10
  37. package/dist/api/generated/swoop/services/SwoopService.js +9 -7
  38. package/package.json +56 -56
  39. package/dist/api/generated/swoop/models/DayByDayDay_jsonld.d.ts +0 -7
  40. package/dist/api/generated/swoop/models/DayByDayType_jsonld.d.ts +0 -6
  41. /package/dist/api/generated/{swoop/models/DayByDayDay_jsonld.js → core/models/PublicPaymentLead.js} +0 -0
  42. /package/dist/api/generated/{swoop/models/DayByDayType_jsonld.js → core/models/PublicSnapShotPayment.js} +0 -0
@@ -82,8 +82,10 @@ export type { Pagination } from './index';
82
82
  export type { Partner } from './index';
83
83
  export type { Partners } from './index';
84
84
  export type { Price } from './index';
85
+ export type { PublicPaymentLead } from './index';
85
86
  export type { PublicSnapShotEnquiryStatus } from './index';
86
87
  export type { PublicSnapshotId } from './index';
88
+ export type { PublicSnapShotPayment } from './index';
87
89
  export type { PublicSnapshotPerson } from './index';
88
90
  export type { PublicSnapshotPricing } from './index';
89
91
  export type { PublicSnapshotTraveller } from './index';
@@ -82,8 +82,10 @@ export type { Pagination } from './models/Pagination';
82
82
  export type { Partner } from './models/Partner';
83
83
  export type { Partners } from './models/Partners';
84
84
  export type { Price } from './models/Price';
85
+ export type { PublicPaymentLead } from './models/PublicPaymentLead';
85
86
  export type { PublicSnapShotEnquiryStatus } from './models/PublicSnapShotEnquiryStatus';
86
87
  export type { PublicSnapshotId } from './models/PublicSnapshotId';
88
+ export type { PublicSnapShotPayment } from './models/PublicSnapShotPayment';
87
89
  export type { PublicSnapshotPerson } from './models/PublicSnapshotPerson';
88
90
  export type { PublicSnapshotPricing } from './models/PublicSnapshotPricing';
89
91
  export type { PublicSnapshotTraveller } from './models/PublicSnapshotTraveller';
@@ -26,6 +26,7 @@ export type ComponentInstance = {
26
26
  bookingGroup: string;
27
27
  startDate?: string;
28
28
  endDate?: string;
29
+ allDay: boolean;
29
30
  flag: Flag;
30
31
  bookingStatus: BookingStatus;
31
32
  };
@@ -1,4 +1,5 @@
1
1
  export declare enum Currency {
2
+ AUD = "aud",
2
3
  GBP = "gbp",
3
4
  USD = "usd",
4
5
  EUR = "eur",
@@ -4,6 +4,7 @@
4
4
  /* eslint-disable */
5
5
  export var Currency;
6
6
  (function (Currency) {
7
+ Currency["AUD"] = "aud";
7
8
  Currency["GBP"] = "gbp";
8
9
  Currency["USD"] = "usd";
9
10
  Currency["EUR"] = "eur";
@@ -2,6 +2,7 @@ import type { DTOItineraryRead } from './DTOItineraryRead';
2
2
  import type { ExpandedMap } from './ExpandedMap';
3
3
  import type { InternalSwoopId } from './InternalSwoopId';
4
4
  import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
5
+ import type { PublicSnapShotPayment } from './PublicSnapShotPayment';
5
6
  import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
6
7
  import type { PublicSnapshotTraveller } from './PublicSnapshotTraveller';
7
8
  import type { SnapshotId } from './SnapshotId';
@@ -15,6 +16,7 @@ export type DTOPublicSnapshotCreate = {
15
16
  map: ExpandedMap;
16
17
  componentInstancePricing: any;
17
18
  enquiryStatus: PublicSnapShotEnquiryStatus;
18
- salesPerson: PublicSnapshotPerson;
19
- cxPerson: PublicSnapshotPerson;
19
+ salesPerson?: PublicSnapshotPerson;
20
+ cxPerson?: PublicSnapshotPerson;
21
+ payments?: Array<PublicSnapShotPayment>;
20
22
  };
@@ -4,6 +4,7 @@ import type { InternalSwoopId } from './InternalSwoopId';
4
4
  import type { Metadata } from './Metadata';
5
5
  import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
6
6
  import type { PublicSnapshotId } from './PublicSnapshotId';
7
+ import type { PublicSnapShotPayment } from './PublicSnapShotPayment';
7
8
  import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
8
9
  import type { PublicSnapshotTraveller } from './PublicSnapshotTraveller';
9
10
  import type { SnapshotId } from './SnapshotId';
@@ -19,6 +20,7 @@ export type DTOPublicSnapshotEntity = {
19
20
  map: ExpandedMap;
20
21
  componentInstancePricing: any;
21
22
  enquiryStatus: PublicSnapShotEnquiryStatus;
22
- salesPerson: PublicSnapshotPerson;
23
- cxPerson: PublicSnapshotPerson;
23
+ salesPerson?: PublicSnapshotPerson;
24
+ cxPerson?: PublicSnapshotPerson;
25
+ payments?: Array<PublicSnapShotPayment>;
24
26
  };
@@ -4,6 +4,7 @@ import type { InternalSwoopId } from './InternalSwoopId';
4
4
  import type { Metadata } from './Metadata';
5
5
  import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
6
6
  import type { PublicSnapshotId } from './PublicSnapshotId';
7
+ import type { PublicSnapShotPayment } from './PublicSnapShotPayment';
7
8
  import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
8
9
  import type { PublicSnapshotTraveller } from './PublicSnapshotTraveller';
9
10
  import type { SnapshotId } from './SnapshotId';
@@ -19,6 +20,7 @@ export type DTOPublicSnapshotRead = {
19
20
  map: ExpandedMap;
20
21
  componentInstancePricing: any;
21
22
  enquiryStatus: PublicSnapShotEnquiryStatus;
22
- salesPerson: PublicSnapshotPerson;
23
- cxPerson: PublicSnapshotPerson;
23
+ salesPerson?: PublicSnapshotPerson;
24
+ cxPerson?: PublicSnapshotPerson;
25
+ payments?: Array<PublicSnapShotPayment>;
24
26
  };
@@ -0,0 +1,4 @@
1
+ export type PublicPaymentLead = {
2
+ id: string;
3
+ customerId: number;
4
+ };
@@ -0,0 +1,8 @@
1
+ import type { PublicPaymentLead } from './PublicPaymentLead';
2
+ export type PublicSnapShotPayment = {
3
+ id: string;
4
+ paymentId: number;
5
+ expiryDate: string;
6
+ paymentLink: string;
7
+ lead: PublicPaymentLead;
8
+ };
@@ -8,4 +8,5 @@ export type QuoteOptions = {
8
8
  priceRange: string;
9
9
  savingMade: string;
10
10
  currency?: Currency;
11
+ onBehalfOf?: string;
11
12
  };
@@ -51,6 +51,7 @@ export class CoreService {
51
51
  400: `If the payload is malformed`,
52
52
  401: `When the client is not authorised`,
53
53
  404: `If a resource does not exist`,
54
+ 422: `Occurs during public snapshot creation.`,
54
55
  500: `When an unexpected error occurs`,
55
56
  },
56
57
  });
@@ -40,6 +40,7 @@ export class SnapshotService {
40
40
  400: `If the payload is malformed`,
41
41
  401: `When the client is not authorised`,
42
42
  404: `If a resource does not exist`,
43
+ 422: `Occurs during public snapshot creation.`,
43
44
  500: `When an unexpected error occurs`,
44
45
  },
45
46
  });
@@ -16,8 +16,6 @@ export type { CustomerSwoop } from './index';
16
16
  export type { Customer_jsonldSwoop } from './index';
17
17
  export type { CustomerLookupSwoop } from './index';
18
18
  export type { CustomerLookup_jsonldSwoop } from './index';
19
- export type { DayByDayDay_jsonldSwoop } from './index';
20
- export type { DayByDayType_jsonldSwoop } from './index';
21
19
  export type { DepartureSwoop } from './index';
22
20
  export type { Departure_jsonldSwoop } from './index';
23
21
  export type { EmergencyDetailsSwoop } from './index';
@@ -20,8 +20,6 @@ export type { Customer as CustomerSwoop } from './models/Customer';
20
20
  export type { Customer_jsonld as Customer_jsonldSwoop } from './models/Customer_jsonld';
21
21
  export type { CustomerLookup as CustomerLookupSwoop } from './models/CustomerLookup';
22
22
  export type { CustomerLookup_jsonld as CustomerLookup_jsonldSwoop } from './models/CustomerLookup_jsonld';
23
- export type { DayByDayDay_jsonld as DayByDayDay_jsonldSwoop } from './models/DayByDayDay_jsonld';
24
- export type { DayByDayType_jsonld as DayByDayType_jsonldSwoop } from './models/DayByDayType_jsonld';
25
23
  export type { Departure as DepartureSwoop } from './models/Departure';
26
24
  export type { Departure_jsonld as Departure_jsonldSwoop } from './models/Departure_jsonld';
27
25
  export type { EmergencyDetails as EmergencyDetailsSwoop } from './models/EmergencyDetails';
@@ -1,7 +1,7 @@
1
1
  import type { Country } from './Country';
2
2
  export type Address = {
3
- address1?: string | null;
4
- address2?: string | null;
3
+ address_1?: string | null;
4
+ address_2?: string | null;
5
5
  town?: string | null;
6
6
  state?: string | null;
7
7
  postcode?: string | null;
@@ -1,8 +1,8 @@
1
1
  import type { Country_jsonld } from './Country_jsonld';
2
2
  import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
3
3
  export type Address_jsonld = (HydraItemBaseSchema & {
4
- address1?: string | null;
5
- address2?: string | null;
4
+ address_1?: string | null;
5
+ address_2?: string | null;
6
6
  town?: string | null;
7
7
  state?: string | null;
8
8
  postcode?: string | null;
@@ -1,5 +1,5 @@
1
1
  export type Country = {
2
- countryId?: number;
2
+ country_id?: number;
3
3
  title?: string;
4
4
  alias?: string;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
2
2
  export type Country_jsonld = (HydraItemBaseSchema & {
3
- countryId?: number;
3
+ country_id?: number;
4
4
  title?: string;
5
5
  alias?: string;
6
6
  });
@@ -1,6 +1,6 @@
1
1
  export type EmergencyDetails = {
2
2
  name?: string | null;
3
- phoneNumber?: string | null;
3
+ phone_number?: string | null;
4
4
  relationship?: string | null;
5
5
  email?: string | null;
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
2
2
  export type EmergencyDetails_jsonld = (HydraItemBaseSchema & {
3
3
  name?: string | null;
4
- phoneNumber?: string | null;
4
+ phone_number?: string | null;
5
5
  relationship?: string | null;
6
6
  email?: string | null;
7
7
  });
@@ -4,9 +4,19 @@ import type { EnquiryStatus } from './EnquiryStatus';
4
4
  export type Enquiry = {
5
5
  id?: string;
6
6
  enquiryId?: number;
7
+ isTwinCentre?: boolean;
8
+ opposingTwinCentreEnquiryId?: string | null;
7
9
  salesPerson?: (EnquiryPerson | null);
8
10
  cxPerson?: (EnquiryPerson | null);
9
11
  enquiryStatus?: (EnquiryStatus | null);
10
12
  customer?: (Customer | null);
11
- bookingGroups?: Array<null>;
13
+ bookingGroups?: Array<{
14
+ id?: string;
15
+ name?: string;
16
+ status?: {
17
+ id?: string;
18
+ title?: string;
19
+ alias?: string;
20
+ };
21
+ }>;
12
22
  };
@@ -1,5 +1,5 @@
1
1
  export type EnquiryPerson = {
2
2
  id?: string;
3
- firstName?: string | null;
4
- lastName?: string | null;
3
+ first_name?: string | null;
4
+ last_name?: string | null;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
2
2
  export type EnquiryPerson_jsonld = (HydraItemBaseSchema & {
3
3
  id?: string;
4
- firstName?: string | null;
5
- lastName?: string | null;
4
+ first_name?: string | null;
5
+ last_name?: string | null;
6
6
  });
@@ -5,9 +5,19 @@ import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
5
5
  export type Enquiry_jsonld = (HydraItemBaseSchema & {
6
6
  id?: string;
7
7
  enquiryId?: number;
8
+ isTwinCentre?: boolean;
9
+ opposingTwinCentreEnquiryId?: string | null;
8
10
  salesPerson?: (EnquiryPerson_jsonld | null);
9
11
  cxPerson?: (EnquiryPerson_jsonld | null);
10
12
  enquiryStatus?: (EnquiryStatus_jsonld | null);
11
13
  customer?: (Customer_jsonld | null);
12
- bookingGroups?: Array<null>;
14
+ bookingGroups?: Array<{
15
+ id?: string;
16
+ name?: string;
17
+ status?: {
18
+ id?: string;
19
+ title?: string;
20
+ alias?: string;
21
+ };
22
+ }>;
13
23
  });
@@ -5,4 +5,5 @@ export type Itinerary_ItinerarySaveInput = {
5
5
  enquiryId?: string;
6
6
  title?: string;
7
7
  componentInstances?: Array<null>;
8
+ amendments?: any[] | null;
8
9
  };
@@ -5,4 +5,5 @@ export type Itinerary_ItinerarySaveInput_jsonld = {
5
5
  enquiryId?: string;
6
6
  title?: string;
7
7
  componentInstances?: Array<null>;
8
+ amendments?: any[] | null;
8
9
  };
@@ -1,7 +1,7 @@
1
1
  import type { Country } from './Country';
2
2
  export type Passport = {
3
- passportNumber?: string | null;
4
- passportExpiryDate?: string | null;
5
- passportIssueDate?: string | null;
3
+ passport_number?: string | null;
4
+ passport_expiry_date?: string | null;
5
+ passport_issue_date?: string | null;
6
6
  country?: (Country | null);
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import type { Country_jsonld } from './Country_jsonld';
2
2
  import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
3
3
  export type Passport_jsonld = (HydraItemBaseSchema & {
4
- passportNumber?: string | null;
5
- passportExpiryDate?: string | null;
6
- passportIssueDate?: string | null;
4
+ passport_number?: string | null;
5
+ passport_expiry_date?: string | null;
6
+ passport_issue_date?: string | null;
7
7
  country?: (Country_jsonld | null);
8
8
  });
@@ -9,7 +9,7 @@ export type Person = {
9
9
  telephone2?: string | null;
10
10
  role?: string | null;
11
11
  avatarUrl?: string | null;
12
- welcomeNote?: string | null;
13
12
  calendarLink?: string | null;
13
+ welcomeNote?: string | null;
14
14
  aboutMeText?: string | null;
15
15
  };
@@ -10,5 +10,7 @@ export type Person_jsonld = (HydraItemBaseSchema & {
10
10
  telephone2?: string | null;
11
11
  role?: string | null;
12
12
  avatarUrl?: string | null;
13
+ calendarLink?: string | null;
13
14
  welcomeNote?: string | null;
15
+ aboutMeText?: string | null;
14
16
  });
@@ -1,9 +1,9 @@
1
1
  export type TravellerGroup = {
2
2
  id?: string;
3
- travellerGroupId?: number;
4
- enquiryId?: number;
3
+ traveller_group_id?: number;
4
+ enquiry_id?: number;
5
5
  title?: string | null;
6
- paymentStatus?: string | null;
7
- srfCompletedAt?: string | null;
8
- srfPg2CompletedAt?: string | null;
6
+ payment_status?: string | null;
7
+ srf_completed_at?: string | null;
8
+ srf_pg2_completed_at?: string | null;
9
9
  };
@@ -1,10 +1,10 @@
1
1
  import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
2
2
  export type TravellerGroup_jsonld = (HydraItemBaseSchema & {
3
3
  id?: string;
4
- travellerGroupId?: number;
5
- enquiryId?: number;
4
+ traveller_group_id?: number;
5
+ enquiry_id?: number;
6
6
  title?: string | null;
7
- paymentStatus?: string | null;
8
- srfCompletedAt?: string | null;
9
- srfPg2CompletedAt?: string | null;
7
+ payment_status?: string | null;
8
+ srf_completed_at?: string | null;
9
+ srf_pg2_completed_at?: string | null;
10
10
  });
@@ -1,7 +1,6 @@
1
- import type { DayByDayType_jsonld } from './DayByDayType_jsonld';
2
1
  export type TripVariant = {
3
2
  id?: string;
4
3
  tripVariantId?: number;
5
4
  title?: string;
6
- dayByDayTypes?: Array<DayByDayType_jsonld>;
5
+ dayByDayTypes?: Array<null>;
7
6
  };
@@ -1,8 +1,7 @@
1
- import type { DayByDayType_jsonld } from './DayByDayType_jsonld';
2
1
  import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
3
2
  export type TripVariant_jsonld = (HydraItemBaseSchema & {
4
3
  id?: string;
5
4
  tripVariantId?: number;
6
5
  title?: string;
7
- dayByDayTypes?: Array<DayByDayType_jsonld>;
6
+ dayByDayTypes?: Array<null>;
8
7
  });
@@ -1,6 +1,5 @@
1
1
  import type { BookingItemType } from '../models/BookingItemType';
2
2
  import type { Category } from '../models/Category';
3
- import type { Currency } from '../models/Currency';
4
3
  import type { CurrencyConversion } from '../models/CurrencyConversion';
5
4
  import type { CurrencyConversionBatch } from '../models/CurrencyConversionBatch';
6
5
  import type { Customer } from '../models/Customer';
@@ -37,14 +36,23 @@ export declare class SwoopService {
37
36
  */
38
37
  categoriesGetCollection(region?: string, active?: string): CancelablePromise<Array<Category>>;
39
38
  /**
40
- * Retrieves the collection of Currency resources.
39
+ * Currency collection
41
40
  * Retrieves the collection of Currency resources.
42
41
  * @param region antarctica, arctic, patagonia
43
42
  * @param active 1,0
44
- * @returns Currency Currency collection
43
+ * @returns any Successful response
45
44
  * @throws ApiError
46
45
  */
47
- currenciesGetCollection(region?: string, active?: string): CancelablePromise<Array<Currency>>;
46
+ currenciesGetCollection(region?: string, active?: string): CancelablePromise<{
47
+ currencies?: Array<{
48
+ id?: string;
49
+ title?: string;
50
+ alias?: string;
51
+ iso3?: string;
52
+ symbol?: string;
53
+ active?: boolean;
54
+ }>;
55
+ }>;
48
56
  /**
49
57
  * Retrieves a CurrencyConversion resource.
50
58
  * Retrieves a CurrencyConversion resource.
@@ -174,13 +182,30 @@ export declare class SwoopService {
174
182
  */
175
183
  paymentsGetCollection(enquiryId?: string, status?: string, withDeleted?: string): CancelablePromise<Array<Payment>>;
176
184
  /**
177
- * Retrieves the collection of Person resources.
185
+ * List people
178
186
  * Retrieves the collection of Person resources.
179
187
  * @param region antarctica, arctic, patagonia
180
- * @returns Person Person collection
188
+ * @param all 1,0 - include all records or just the active ones - default 0
189
+ * @returns any Successful response
181
190
  * @throws ApiError
182
191
  */
183
- peopleGetCollection(region?: string): CancelablePromise<Array<Person>>;
192
+ peopleGetCollection(region?: string, all?: string): CancelablePromise<{
193
+ people?: Array<{
194
+ id?: string;
195
+ personId?: number;
196
+ firstName?: string;
197
+ lastName?: string;
198
+ shortName?: string;
199
+ email?: string;
200
+ telephone1?: string;
201
+ telephone2?: string;
202
+ role?: string;
203
+ avatarUrl?: string;
204
+ calendarLink?: string;
205
+ welcomeNote?: string;
206
+ aboutMeText?: string;
207
+ }>;
208
+ }>;
184
209
  /**
185
210
  * Retrieves a Person resource.
186
211
  * Retrieves a Person resource.
@@ -190,14 +215,54 @@ export declare class SwoopService {
190
215
  */
191
216
  peopleIdGet(id: string): CancelablePromise<Person>;
192
217
  /**
193
- * Retrieves the collection of Traveller resources.
218
+ * List people
194
219
  * Retrieves the collection of Traveller resources.
195
220
  * @param enquiryId by enquiry ID
196
221
  * @param region antarctica, arctic, patagonia
197
- * @returns Traveller Traveller collection
222
+ * @returns any Successful response
198
223
  * @throws ApiError
199
224
  */
200
- travellersGetCollection(enquiryId?: string, region?: string): CancelablePromise<Array<Traveller>>;
225
+ travellersGetCollection(enquiryId?: string, region?: string): CancelablePromise<{
226
+ travellers?: Array<{
227
+ id?: string;
228
+ travellerId?: number;
229
+ isPayer?: boolean;
230
+ customer?: {
231
+ id?: string;
232
+ customerId?: number;
233
+ title?: string;
234
+ firstName?: string;
235
+ lastName?: string;
236
+ preferredName?: string;
237
+ email?: string;
238
+ telephone1?: string;
239
+ created?: string;
240
+ modified?: string;
241
+ whatsappNumber?: string;
242
+ dateOfBirth?: string;
243
+ region?: string;
244
+ timeZone?: string;
245
+ dietaryRequirements?: string;
246
+ foodAllergies?: string;
247
+ medicalConditions?: string;
248
+ specialOccasion?: string;
249
+ roomType?: string;
250
+ roomNotes?: string;
251
+ address?: any | null;
252
+ passport?: any | null;
253
+ emergencyDetails?: any | null;
254
+ };
255
+ travellerGroup?: {
256
+ id?: string;
257
+ traveller_group_id?: number;
258
+ enquiry_id?: number;
259
+ title?: string;
260
+ payment_status?: string;
261
+ srf_completed_at?: string;
262
+ srf_pg2_ompleted_at?: string;
263
+ };
264
+ }>;
265
+ }>;
201
266
  /**
202
267
  * Retrieves a Traveller resource.
203
268
  * Retrieves a Traveller resource.
@@ -38,11 +38,11 @@ export class SwoopService {
38
38
  });
39
39
  }
40
40
  /**
41
- * Retrieves the collection of Currency resources.
41
+ * Currency collection
42
42
  * Retrieves the collection of Currency resources.
43
43
  * @param region antarctica, arctic, patagonia
44
44
  * @param active 1,0
45
- * @returns Currency Currency collection
45
+ * @returns any Successful response
46
46
  * @throws ApiError
47
47
  */
48
48
  currenciesGetCollection(region, active) {
@@ -298,18 +298,20 @@ export class SwoopService {
298
298
  });
299
299
  }
300
300
  /**
301
- * Retrieves the collection of Person resources.
301
+ * List people
302
302
  * Retrieves the collection of Person resources.
303
303
  * @param region antarctica, arctic, patagonia
304
- * @returns Person Person collection
304
+ * @param all 1,0 - include all records or just the active ones - default 0
305
+ * @returns any Successful response
305
306
  * @throws ApiError
306
307
  */
307
- peopleGetCollection(region) {
308
+ peopleGetCollection(region, all) {
308
309
  return __request(OpenAPI, {
309
310
  method: 'GET',
310
311
  url: '/api/people',
311
312
  query: {
312
313
  'region': region,
314
+ 'all': all,
313
315
  },
314
316
  });
315
317
  }
@@ -333,11 +335,11 @@ export class SwoopService {
333
335
  });
334
336
  }
335
337
  /**
336
- * Retrieves the collection of Traveller resources.
338
+ * List people
337
339
  * Retrieves the collection of Traveller resources.
338
340
  * @param enquiryId by enquiry ID
339
341
  * @param region antarctica, arctic, patagonia
340
- * @returns Traveller Traveller collection
342
+ * @returns any Successful response
341
343
  * @throws ApiError
342
344
  */
343
345
  travellersGetCollection(enquiryId, region) {
package/package.json CHANGED
@@ -1,60 +1,60 @@
1
1
  {
2
- "name": "swoop-common",
3
- "version": "2.2.67",
4
- "main": "dist/api/index.js",
5
- "types": "dist/api/index.d.ts",
6
- "exports": {
7
- ".": {
8
- "import": "./dist/api/index.js",
9
- "require": "./dist/api/index.js",
10
- "types": "./dist/api/index.d.ts"
2
+ "name": "swoop-common",
3
+ "version": "2.2.72",
4
+ "main": "dist/api/index.js",
5
+ "types": "dist/api/index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./dist/api/index.js",
9
+ "require": "./dist/api/index.js",
10
+ "types": "./dist/api/index.d.ts"
11
+ },
12
+ "./rendering": {
13
+ "import": "./dist/rendering/index.js",
14
+ "require": "./dist/rendering/index.js",
15
+ "types": "./dist/rendering/index.d.ts"
16
+ }
11
17
  },
12
- "./rendering": {
13
- "import": "./dist/rendering/index.js",
14
- "require": "./dist/rendering/index.js",
15
- "types": "./dist/rendering/index.d.ts"
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "test": "echo \"Error: no test specified\" && exit 1",
23
+ "build": "rimraf ./dist && tsc",
24
+ "build-imports": "tsx ./src/rendering/prebuild/import.ts",
25
+ "build-core-sdk": "npx openapi-typescript-codegen --input ./openapi/core_service.yaml --output ./src/api/generated/core --client fetch",
26
+ "build-swoop-sdk": "npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
27
+ "prebuild": "npm run build-imports && npm run build-sdk",
28
+ "build-sdk-exports": "tsx ./src/api/gen.ts",
29
+ "build-sdk": "npm run build-core-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
30
+ },
31
+ "author": "",
32
+ "license": "ISC",
33
+ "description": "",
34
+ "dependencies": {
35
+ "@apidevtools/swagger-parser": "^12.0.0",
36
+ "@emotion/react": "^11.14.0",
37
+ "@emotion/styled": "^11.14.1",
38
+ "@jsonforms/core": "^3.5.1",
39
+ "@jsonforms/material-renderers": "^3.5.1",
40
+ "@jsonforms/react": "^3.5.1",
41
+ "ajv": "^8.17.1",
42
+ "js-yaml": "^4.1.0",
43
+ "lodash.merge": "^4.6.2",
44
+ "openapi-ts": "^0.3.4",
45
+ "react": "^19.0.0",
46
+ "rimraf": "^6.0.1",
47
+ "swoop-common": "^2.1.55"
48
+ },
49
+ "devDependencies": {
50
+ "@apidevtools/swagger-cli": "^4.0.4",
51
+ "@hey-api/openapi-ts": "^0.80.2",
52
+ "@types/js-yaml": "^4.0.9",
53
+ "@types/lodash.merge": "^4.6.9",
54
+ "@types/node": "^24.0.14",
55
+ "@types/react": "^19",
56
+ "openapi-typescript-codegen": "^0.29.0",
57
+ "tsx": "^4.20.3",
58
+ "typescript": "^5.8.3"
16
59
  }
17
- },
18
- "files": [
19
- "dist"
20
- ],
21
- "scripts": {
22
- "test": "echo \"Error: no test specified\" && exit 1",
23
- "build": "rimraf ./dist && tsc",
24
- "build-imports": "tsx ./src/rendering/prebuild/import.ts",
25
- "build-core-sdk": "npx openapi-typescript-codegen --input ./openapi/core_service.yaml --output ./src/api/generated/core --client fetch",
26
- "build-swoop-sdk": "npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
27
- "prebuild": "npm run build-imports && npm run build-sdk",
28
- "build-sdk-exports": "tsx ./src/api/gen.ts",
29
- "build-sdk": "npm run build-core-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
30
- },
31
- "author": "",
32
- "license": "ISC",
33
- "description": "",
34
- "dependencies": {
35
- "@apidevtools/swagger-parser": "^12.0.0",
36
- "@emotion/react": "^11.14.0",
37
- "@emotion/styled": "^11.14.1",
38
- "@jsonforms/core": "^3.5.1",
39
- "@jsonforms/material-renderers": "^3.5.1",
40
- "@jsonforms/react": "^3.5.1",
41
- "ajv": "^8.17.1",
42
- "js-yaml": "^4.1.0",
43
- "lodash.merge": "^4.6.2",
44
- "openapi-ts": "^0.3.4",
45
- "react": "^19.0.0",
46
- "rimraf": "^6.0.1",
47
- "swoop-common": "^2.1.55"
48
- },
49
- "devDependencies": {
50
- "@apidevtools/swagger-cli": "^4.0.4",
51
- "@hey-api/openapi-ts": "^0.80.2",
52
- "@types/js-yaml": "^4.0.9",
53
- "@types/lodash.merge": "^4.6.9",
54
- "@types/node": "^24.0.14",
55
- "@types/react": "^19",
56
- "openapi-typescript-codegen": "^0.29.0",
57
- "tsx": "^4.20.3",
58
- "typescript": "^5.8.3"
59
- }
60
60
  }
@@ -1,7 +0,0 @@
1
- export type DayByDayDay_jsonld = {
2
- title: string;
3
- day_start: number;
4
- day_end?: number;
5
- text?: string;
6
- htmlText?: string;
7
- };
@@ -1,6 +0,0 @@
1
- import type { DayByDayDay_jsonld } from './DayByDayDay_jsonld';
2
- export type DayByDayType_jsonld = {
3
- type: string;
4
- numberOfDays?: number;
5
- days: Array<DayByDayDay_jsonld>;
6
- };