swoop-common 1.0.22 → 1.0.24

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 (55) hide show
  1. package/dist/api/gen.js +19 -53
  2. package/dist/api/generated/core/exports.d.ts +0 -1
  3. package/dist/api/generated/core/exports.js +0 -1
  4. package/dist/api/generated/core/services/CoreService.d.ts +12 -12
  5. package/dist/api/generated/core/services/CoreService.js +12 -12
  6. package/dist/api/generated/itinerary/exports.d.ts +0 -1
  7. package/dist/api/generated/itinerary/exports.js +1 -1
  8. package/dist/api/generated/itinerary/index.d.ts +2 -0
  9. package/dist/api/generated/itinerary/models/DTORegionCreate.d.ts +6 -0
  10. package/dist/api/generated/itinerary/models/DTORegionCreate.js +1 -0
  11. package/dist/api/generated/itinerary/models/DTORegionRead.d.ts +9 -0
  12. package/dist/api/generated/itinerary/models/DTORegionRead.js +1 -0
  13. package/dist/api/generated/itinerary/services/ItineraryService.d.ts +20 -80
  14. package/dist/api/generated/itinerary/services/ItineraryService.js +20 -128
  15. package/dist/api/generated/swoop/exports.d.ts +48 -66
  16. package/dist/api/generated/swoop/exports.js +1 -29
  17. package/dist/api/generated/swoop/index.d.ts +1 -12
  18. package/dist/api/generated/swoop/index.js +1 -12
  19. package/dist/api/generated/swoop/services/SwoopService.d.ts +387 -0
  20. package/dist/api/generated/swoop/services/SwoopService.js +329 -0
  21. package/dist/api/init.d.ts +8 -1
  22. package/dist/api/init.js +5 -0
  23. package/dist/index.d.ts +0 -1
  24. package/dist/index.js +1 -1
  25. package/dist/rendering/renderers/ComponentPicker.js +1 -1
  26. package/dist/rendering/renderers/TemplatePicker.js +1 -1
  27. package/dist/rendering/util/lib.d.ts +1 -0
  28. package/dist/rendering/util/lib.js +6 -0
  29. package/dist/rendering/util/string.d.ts +1 -0
  30. package/dist/rendering/util/string.js +1 -0
  31. package/package.json +8 -1
  32. package/dist/api/generated/swoop/services/BookingItemTypeService.d.ts +0 -35
  33. package/dist/api/generated/swoop/services/BookingItemTypeService.js +0 -22
  34. package/dist/api/generated/swoop/services/CategoryService.d.ts +0 -35
  35. package/dist/api/generated/swoop/services/CategoryService.js +0 -22
  36. package/dist/api/generated/swoop/services/CurrencyService.d.ts +0 -35
  37. package/dist/api/generated/swoop/services/CurrencyService.js +0 -22
  38. package/dist/api/generated/swoop/services/CustomerLookupService.d.ts +0 -13
  39. package/dist/api/generated/swoop/services/CustomerLookupService.js +0 -25
  40. package/dist/api/generated/swoop/services/CustomerService.d.ts +0 -45
  41. package/dist/api/generated/swoop/services/CustomerService.js +0 -45
  42. package/dist/api/generated/swoop/services/EnquiryService.d.ts +0 -12
  43. package/dist/api/generated/swoop/services/EnquiryService.js +0 -23
  44. package/dist/api/generated/swoop/services/EnquiryStatusService.d.ts +0 -34
  45. package/dist/api/generated/swoop/services/EnquiryStatusService.js +0 -20
  46. package/dist/api/generated/swoop/services/PartnerService.d.ts +0 -46
  47. package/dist/api/generated/swoop/services/PartnerService.js +0 -47
  48. package/dist/api/generated/swoop/services/PaymentService.d.ts +0 -34
  49. package/dist/api/generated/swoop/services/PaymentService.js +0 -20
  50. package/dist/api/generated/swoop/services/PersonService.d.ts +0 -42
  51. package/dist/api/generated/swoop/services/PersonService.js +0 -39
  52. package/dist/api/generated/swoop/services/TravellerService.d.ts +0 -43
  53. package/dist/api/generated/swoop/services/TravellerService.js +0 -41
  54. package/dist/api/generated/swoop/services/TripService.d.ts +0 -46
  55. package/dist/api/generated/swoop/services/TripService.js +0 -47
@@ -1,42 +0,0 @@
1
- import type { Person_jsonld } from '../models/Person_jsonld';
2
- import type { CancelablePromise } from '../core/CancelablePromise';
3
- export declare class PersonService {
4
- /**
5
- * Retrieves the collection of Person resources.
6
- * Retrieves the collection of Person resources.
7
- * @param region antarctica, arctic, patagonia
8
- * @returns any Person collection
9
- * @throws ApiError
10
- */
11
- static peopleGetCollection(region?: string): CancelablePromise<{
12
- member: Array<Person_jsonld>;
13
- totalItems?: number;
14
- view?: {
15
- '@id'?: string;
16
- '@type'?: string;
17
- first?: string;
18
- last?: string;
19
- previous?: string;
20
- next?: string;
21
- };
22
- search?: {
23
- '@type'?: string;
24
- template?: string;
25
- variableRepresentation?: string;
26
- mapping?: Array<{
27
- '@type'?: string;
28
- variable?: string;
29
- property?: string | null;
30
- required?: boolean;
31
- }>;
32
- };
33
- }>;
34
- /**
35
- * Retrieves a Person resource.
36
- * Retrieves a Person resource.
37
- * @param id The unique identifier example: ANT-12345 ({REGION}-{person_id}})
38
- * @returns Person_jsonld Person resource
39
- * @throws ApiError
40
- */
41
- static peopleIdGet(id: string): CancelablePromise<Person_jsonld>;
42
- }
@@ -1,39 +0,0 @@
1
- import { OpenAPI } from '../core/OpenAPI';
2
- import { request as __request } from '../core/request';
3
- export class PersonService {
4
- /**
5
- * Retrieves the collection of Person resources.
6
- * Retrieves the collection of Person resources.
7
- * @param region antarctica, arctic, patagonia
8
- * @returns any Person collection
9
- * @throws ApiError
10
- */
11
- static peopleGetCollection(region) {
12
- return __request(OpenAPI, {
13
- method: 'GET',
14
- url: '/api/people',
15
- query: {
16
- 'region': region,
17
- },
18
- });
19
- }
20
- /**
21
- * Retrieves a Person resource.
22
- * Retrieves a Person resource.
23
- * @param id The unique identifier example: ANT-12345 ({REGION}-{person_id}})
24
- * @returns Person_jsonld Person resource
25
- * @throws ApiError
26
- */
27
- static peopleIdGet(id) {
28
- return __request(OpenAPI, {
29
- method: 'GET',
30
- url: '/api/people/{id}',
31
- path: {
32
- 'id': id,
33
- },
34
- errors: {
35
- 404: `Not found`,
36
- },
37
- });
38
- }
39
- }
@@ -1,43 +0,0 @@
1
- import type { Traveller_jsonld } from '../models/Traveller_jsonld';
2
- import type { CancelablePromise } from '../core/CancelablePromise';
3
- export declare class TravellerService {
4
- /**
5
- * Retrieves the collection of Traveller resources.
6
- * Retrieves the collection of Traveller resources.
7
- * @param enquiryId by enquiry ID
8
- * @param region antarctica, arctic, patagonia
9
- * @returns any Traveller collection
10
- * @throws ApiError
11
- */
12
- static travellersGetCollection(enquiryId?: string, region?: string): CancelablePromise<{
13
- member: Array<Traveller_jsonld>;
14
- totalItems?: number;
15
- view?: {
16
- '@id'?: string;
17
- '@type'?: string;
18
- first?: string;
19
- last?: string;
20
- previous?: string;
21
- next?: string;
22
- };
23
- search?: {
24
- '@type'?: string;
25
- template?: string;
26
- variableRepresentation?: string;
27
- mapping?: Array<{
28
- '@type'?: string;
29
- variable?: string;
30
- property?: string | null;
31
- required?: boolean;
32
- }>;
33
- };
34
- }>;
35
- /**
36
- * Retrieves a Traveller resource.
37
- * Retrieves a Traveller resource.
38
- * @param id The unique identifier example: ANT-12345 ({REGION}-{traveller_id}})
39
- * @returns Traveller_jsonld Traveller resource
40
- * @throws ApiError
41
- */
42
- static travellersIdGet(id: string): CancelablePromise<Traveller_jsonld>;
43
- }
@@ -1,41 +0,0 @@
1
- import { OpenAPI } from '../core/OpenAPI';
2
- import { request as __request } from '../core/request';
3
- export class TravellerService {
4
- /**
5
- * Retrieves the collection of Traveller resources.
6
- * Retrieves the collection of Traveller resources.
7
- * @param enquiryId by enquiry ID
8
- * @param region antarctica, arctic, patagonia
9
- * @returns any Traveller collection
10
- * @throws ApiError
11
- */
12
- static travellersGetCollection(enquiryId, region) {
13
- return __request(OpenAPI, {
14
- method: 'GET',
15
- url: '/api/travellers',
16
- query: {
17
- 'enquiry_id': enquiryId,
18
- 'region': region,
19
- },
20
- });
21
- }
22
- /**
23
- * Retrieves a Traveller resource.
24
- * Retrieves a Traveller resource.
25
- * @param id The unique identifier example: ANT-12345 ({REGION}-{traveller_id}})
26
- * @returns Traveller_jsonld Traveller resource
27
- * @throws ApiError
28
- */
29
- static travellersIdGet(id) {
30
- return __request(OpenAPI, {
31
- method: 'GET',
32
- url: '/api/travellers/{id}',
33
- path: {
34
- 'id': id,
35
- },
36
- errors: {
37
- 404: `Not found`,
38
- },
39
- });
40
- }
41
- }
@@ -1,46 +0,0 @@
1
- import type { Trip_jsonld } from '../models/Trip_jsonld';
2
- import type { CancelablePromise } from '../core/CancelablePromise';
3
- export declare class TripService {
4
- /**
5
- * Retrieves the collection of Trip resources.
6
- * Retrieves the collection of Trip resources.
7
- * @param page The collection page number
8
- * @param itemsPerPage The number of items per page
9
- * @param search Search against title
10
- * @param region antarctica, arctic, patagonia
11
- * @param publishstate unpublished, approval, published, rejected
12
- * @returns any Trip collection
13
- * @throws ApiError
14
- */
15
- static tripsGetCollection(page?: number, itemsPerPage?: number, search?: string, region?: string, publishstate?: string): CancelablePromise<{
16
- member: Array<Trip_jsonld>;
17
- totalItems?: number;
18
- view?: {
19
- '@id'?: string;
20
- '@type'?: string;
21
- first?: string;
22
- last?: string;
23
- previous?: string;
24
- next?: string;
25
- };
26
- search?: {
27
- '@type'?: string;
28
- template?: string;
29
- variableRepresentation?: string;
30
- mapping?: Array<{
31
- '@type'?: string;
32
- variable?: string;
33
- property?: string | null;
34
- required?: boolean;
35
- }>;
36
- };
37
- }>;
38
- /**
39
- * Retrieves a Trip resource.
40
- * Retrieves a Trip resource.
41
- * @param id The unique identifier example: ANT-12345 ({REGION}-{trip_id}})
42
- * @returns Trip_jsonld Trip resource
43
- * @throws ApiError
44
- */
45
- static tripsIdGet(id: string): CancelablePromise<Trip_jsonld>;
46
- }
@@ -1,47 +0,0 @@
1
- import { OpenAPI } from '../core/OpenAPI';
2
- import { request as __request } from '../core/request';
3
- export class TripService {
4
- /**
5
- * Retrieves the collection of Trip resources.
6
- * Retrieves the collection of Trip resources.
7
- * @param page The collection page number
8
- * @param itemsPerPage The number of items per page
9
- * @param search Search against title
10
- * @param region antarctica, arctic, patagonia
11
- * @param publishstate unpublished, approval, published, rejected
12
- * @returns any Trip collection
13
- * @throws ApiError
14
- */
15
- static tripsGetCollection(page = 1, itemsPerPage = 30, search, region, publishstate) {
16
- return __request(OpenAPI, {
17
- method: 'GET',
18
- url: '/api/trips',
19
- query: {
20
- 'page': page,
21
- 'itemsPerPage': itemsPerPage,
22
- 'search': search,
23
- 'region': region,
24
- 'publishstate': publishstate,
25
- },
26
- });
27
- }
28
- /**
29
- * Retrieves a Trip resource.
30
- * Retrieves a Trip resource.
31
- * @param id The unique identifier example: ANT-12345 ({REGION}-{trip_id}})
32
- * @returns Trip_jsonld Trip resource
33
- * @throws ApiError
34
- */
35
- static tripsIdGet(id) {
36
- return __request(OpenAPI, {
37
- method: 'GET',
38
- url: '/api/trips/{id}',
39
- path: {
40
- 'id': id,
41
- },
42
- errors: {
43
- 404: `Not found`,
44
- },
45
- });
46
- }
47
- }