swoop-common 2.1.77 → 2.1.79

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 (78) hide show
  1. package/dist/api/generated/core/core/OpenAPI.js +1 -1
  2. package/dist/api/generated/core/exports.d.ts +12 -1
  3. package/dist/api/generated/core/index.d.ts +13 -1
  4. package/dist/api/generated/core/index.js +1 -0
  5. package/dist/api/generated/core/models/DTOComponentCreate.d.ts +2 -2
  6. package/dist/api/generated/core/models/DTOComponentEntity.d.ts +2 -2
  7. package/dist/api/generated/core/models/DTOComponentRead.d.ts +2 -2
  8. package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +2 -2
  9. package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +0 -2
  10. package/dist/api/generated/core/models/DTOSwooperCreate.d.ts +16 -0
  11. package/dist/api/generated/core/models/DTOSwooperEntity.d.ts +20 -0
  12. package/dist/api/generated/core/models/DTOSwooperRead.d.ts +20 -0
  13. package/dist/api/generated/core/models/DTOSwooperRead.js +1 -0
  14. package/dist/api/generated/core/models/DTOSwooperUpdate.d.ts +16 -0
  15. package/dist/api/generated/core/models/DTOSwooperUpdate.js +1 -0
  16. package/dist/api/generated/core/models/ItineraryIdPathParam.d.ts +1 -1
  17. package/dist/api/generated/core/models/{ComponentMedia.d.ts → Media.d.ts} +1 -1
  18. package/dist/api/generated/core/models/Media.js +1 -0
  19. package/dist/api/generated/core/models/SwoopContactInfo.d.ts +5 -0
  20. package/dist/api/generated/core/models/SwoopContactInfo.js +1 -0
  21. package/dist/api/generated/core/models/SwooperExperience.d.ts +7 -0
  22. package/dist/api/generated/core/models/SwooperExperience.js +1 -0
  23. package/dist/api/generated/core/models/SwooperHighlights.d.ts +5 -0
  24. package/dist/api/generated/core/models/SwooperHighlights.js +1 -0
  25. package/dist/api/generated/core/models/SwooperId.d.ts +1 -0
  26. package/dist/api/generated/core/models/SwooperId.js +1 -0
  27. package/dist/api/generated/core/models/SwooperIdPathParam.d.ts +5 -0
  28. package/dist/api/generated/core/models/SwooperIdPathParam.js +1 -0
  29. package/dist/api/generated/core/models/SwooperInfo.d.ts +6 -0
  30. package/dist/api/generated/core/models/SwooperInfo.js +1 -0
  31. package/dist/api/generated/core/models/SwooperPersonalInfo.d.ts +7 -0
  32. package/dist/api/generated/core/models/SwooperPersonalInfo.js +1 -0
  33. package/dist/api/generated/core/services/CoreService.d.ts +48 -3
  34. package/dist/api/generated/core/services/CoreService.js +104 -4
  35. package/dist/api/generated/core/services/SwooperService.d.ts +49 -0
  36. package/dist/api/generated/core/services/SwooperService.js +104 -0
  37. package/dist/api/generated/core/services/TemplateService.d.ts +3 -3
  38. package/dist/api/generated/core/services/TemplateService.js +4 -4
  39. package/dist/api/generated/itinerary/core/OpenAPI.js +1 -1
  40. package/dist/api/generated/itinerary/index.d.ts +12 -1
  41. package/dist/api/generated/itinerary/models/DTOComponentCreate.d.ts +2 -2
  42. package/dist/api/generated/itinerary/models/DTOComponentEntity.d.ts +2 -2
  43. package/dist/api/generated/itinerary/models/DTOComponentRead.d.ts +2 -2
  44. package/dist/api/generated/itinerary/models/DTOComponentUpdate.d.ts +2 -2
  45. package/dist/api/generated/itinerary/models/DTOItineraryUpdate.d.ts +0 -2
  46. package/dist/api/generated/itinerary/models/DTOSwooperCreate.d.ts +16 -0
  47. package/dist/api/generated/itinerary/models/DTOSwooperCreate.js +1 -0
  48. package/dist/api/generated/itinerary/models/DTOSwooperEntity.d.ts +20 -0
  49. package/dist/api/generated/itinerary/models/DTOSwooperEntity.js +1 -0
  50. package/dist/api/generated/itinerary/models/DTOSwooperRead.d.ts +20 -0
  51. package/dist/api/generated/itinerary/models/DTOSwooperRead.js +1 -0
  52. package/dist/api/generated/itinerary/models/DTOSwooperUpdate.d.ts +16 -0
  53. package/dist/api/generated/itinerary/models/DTOSwooperUpdate.js +1 -0
  54. package/dist/api/generated/itinerary/models/ItineraryIdPathParam.d.ts +1 -1
  55. package/dist/api/generated/itinerary/models/{ComponentMedia.d.ts → Media.d.ts} +1 -1
  56. package/dist/api/generated/itinerary/models/Media.js +1 -0
  57. package/dist/api/generated/itinerary/models/SwoopContactInfo.d.ts +5 -0
  58. package/dist/api/generated/itinerary/models/SwoopContactInfo.js +1 -0
  59. package/dist/api/generated/itinerary/models/SwooperExperience.d.ts +7 -0
  60. package/dist/api/generated/itinerary/models/SwooperExperience.js +1 -0
  61. package/dist/api/generated/itinerary/models/SwooperHighlights.d.ts +5 -0
  62. package/dist/api/generated/itinerary/models/SwooperHighlights.js +1 -0
  63. package/dist/api/generated/itinerary/models/SwooperId.d.ts +1 -0
  64. package/dist/api/generated/itinerary/models/SwooperId.js +1 -0
  65. package/dist/api/generated/itinerary/models/SwooperIdPathParam.d.ts +5 -0
  66. package/dist/api/generated/itinerary/models/SwooperIdPathParam.js +1 -0
  67. package/dist/api/generated/itinerary/models/SwooperInfo.d.ts +6 -0
  68. package/dist/api/generated/itinerary/models/SwooperInfo.js +1 -0
  69. package/dist/api/generated/itinerary/models/SwooperPersonalInfo.d.ts +7 -0
  70. package/dist/api/generated/itinerary/models/SwooperPersonalInfo.js +1 -0
  71. package/dist/api/generated/itinerary/services/AuditService.d.ts +1 -1
  72. package/dist/api/generated/itinerary/services/AuditService.js +1 -1
  73. package/dist/api/generated/itinerary/services/ItineraryService.d.ts +1 -1
  74. package/dist/api/generated/itinerary/services/ItineraryService.js +1 -1
  75. package/dist/rendering/renderers/ComponentPicker.d.ts +1 -1
  76. package/package.json +1 -1
  77. /package/dist/api/generated/core/models/{ComponentMedia.js → DTOSwooperCreate.js} +0 -0
  78. /package/dist/api/generated/{itinerary/models/ComponentMedia.js → core/models/DTOSwooperEntity.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  export const OpenAPI = {
2
- BASE: 'https://data-api-dev.swoop-adventures.com/core-data-service/v1',
2
+ BASE: 'http://localhost:8080/core-data-service/v1',
3
3
  VERSION: '1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
@@ -13,7 +13,6 @@ export type { ComponentFAQ } from './index';
13
13
  export type { ComponentId } from './index';
14
14
  export type { ComponentIdPathParam } from './index';
15
15
  export type { ComponentInstance } from './index';
16
- export type { ComponentMedia } from './index';
17
16
  export type { ComponentNotes } from './index';
18
17
  export type { ComponentRevisionGroupId } from './index';
19
18
  export { ComponentState } from './index';
@@ -40,6 +39,10 @@ export type { DTOSnapshotCreate } from './index';
40
39
  export type { DTOSnapshotEntity } from './index';
41
40
  export type { DTOSnapshotRead } from './index';
42
41
  export type { DTOSnapshotUpdate } from './index';
42
+ export type { DTOSwooperCreate } from './index';
43
+ export type { DTOSwooperEntity } from './index';
44
+ export type { DTOSwooperRead } from './index';
45
+ export type { DTOSwooperUpdate } from './index';
43
46
  export type { DTOTemplateCreate } from './index';
44
47
  export type { DTOTemplateEntity } from './index';
45
48
  export type { DTOTemplateRead } from './index';
@@ -56,6 +59,7 @@ export type { ItineraryIdQueryParam } from './index';
56
59
  export type { ItineraryRevisionGroupId } from './index';
57
60
  export type { LimitQueryParam } from './index';
58
61
  export { Meals } from './index';
62
+ export type { Media } from './index';
59
63
  export type { Metadata } from './index';
60
64
  export type { OnQueryParam } from './index';
61
65
  export { OrderQueryParam } from './index';
@@ -73,6 +77,13 @@ export type { SnapshotId } from './index';
73
77
  export type { SnapshotIdPathParam } from './index';
74
78
  export type { SortQueryParam } from './index';
75
79
  export type { StateQueryParam } from './index';
80
+ export type { SwoopContactInfo } from './index';
81
+ export type { SwooperExperience } from './index';
82
+ export type { SwooperHighlights } from './index';
83
+ export type { SwooperId } from './index';
84
+ export type { SwooperIdPathParam } from './index';
85
+ export type { SwooperInfo } from './index';
86
+ export type { SwooperPersonalInfo } from './index';
76
87
  export type { TagPathParam } from './index';
77
88
  export type { TemplateId } from './index';
78
89
  export type { TemplateIdPathParam } from './index';
@@ -15,7 +15,6 @@ export type { ComponentFAQ } from './models/ComponentFAQ';
15
15
  export type { ComponentId } from './models/ComponentId';
16
16
  export type { ComponentIdPathParam } from './models/ComponentIdPathParam';
17
17
  export type { ComponentInstance } from './models/ComponentInstance';
18
- export type { ComponentMedia } from './models/ComponentMedia';
19
18
  export type { ComponentNotes } from './models/ComponentNotes';
20
19
  export type { ComponentRevisionGroupId } from './models/ComponentRevisionGroupId';
21
20
  export { ComponentState } from './models/ComponentState';
@@ -42,6 +41,10 @@ export type { DTOSnapshotCreate } from './models/DTOSnapshotCreate';
42
41
  export type { DTOSnapshotEntity } from './models/DTOSnapshotEntity';
43
42
  export type { DTOSnapshotRead } from './models/DTOSnapshotRead';
44
43
  export type { DTOSnapshotUpdate } from './models/DTOSnapshotUpdate';
44
+ export type { DTOSwooperCreate } from './models/DTOSwooperCreate';
45
+ export type { DTOSwooperEntity } from './models/DTOSwooperEntity';
46
+ export type { DTOSwooperRead } from './models/DTOSwooperRead';
47
+ export type { DTOSwooperUpdate } from './models/DTOSwooperUpdate';
45
48
  export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
46
49
  export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
47
50
  export type { DTOTemplateRead } from './models/DTOTemplateRead';
@@ -58,6 +61,7 @@ export type { ItineraryIdQueryParam } from './models/ItineraryIdQueryParam';
58
61
  export type { ItineraryRevisionGroupId } from './models/ItineraryRevisionGroupId';
59
62
  export type { LimitQueryParam } from './models/LimitQueryParam';
60
63
  export { Meals } from './models/Meals';
64
+ export type { Media } from './models/Media';
61
65
  export type { Metadata } from './models/Metadata';
62
66
  export type { OnQueryParam } from './models/OnQueryParam';
63
67
  export { OrderQueryParam } from './models/OrderQueryParam';
@@ -75,6 +79,13 @@ export type { SnapshotId } from './models/SnapshotId';
75
79
  export type { SnapshotIdPathParam } from './models/SnapshotIdPathParam';
76
80
  export type { SortQueryParam } from './models/SortQueryParam';
77
81
  export type { StateQueryParam } from './models/StateQueryParam';
82
+ export type { SwoopContactInfo } from './models/SwoopContactInfo';
83
+ export type { SwooperExperience } from './models/SwooperExperience';
84
+ export type { SwooperHighlights } from './models/SwooperHighlights';
85
+ export type { SwooperId } from './models/SwooperId';
86
+ export type { SwooperIdPathParam } from './models/SwooperIdPathParam';
87
+ export type { SwooperInfo } from './models/SwooperInfo';
88
+ export type { SwooperPersonalInfo } from './models/SwooperPersonalInfo';
78
89
  export type { TagPathParam } from './models/TagPathParam';
79
90
  export type { TemplateId } from './models/TemplateId';
80
91
  export type { TemplateIdPathParam } from './models/TemplateIdPathParam';
@@ -86,4 +97,5 @@ export type { ValidationSchemas } from './models/ValidationSchemas';
86
97
  export type { VersionPathParam } from './models/VersionPathParam';
87
98
  export { ComponentService } from './services/ComponentService';
88
99
  export { CoreService } from './services/CoreService';
100
+ export { SwooperService } from './services/SwooperService';
89
101
  export { TemplateService } from './services/TemplateService';
@@ -15,4 +15,5 @@ export { OrgId } from './models/OrgId';
15
15
  export { UrgencyCTA } from './models/UrgencyCTA';
16
16
  export { ComponentService } from './services/ComponentService';
17
17
  export { CoreService } from './services/CoreService';
18
+ export { SwooperService } from './services/SwooperService';
18
19
  export { TemplateService } from './services/TemplateService';
@@ -1,10 +1,10 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
- import type { ComponentMedia } from './ComponentMedia';
4
3
  import type { ComponentNotes } from './ComponentNotes';
5
4
  import type { ComponentState } from './ComponentState';
6
5
  import type { Destination } from './Destination';
7
6
  import type { Field } from './Field';
7
+ import type { Media } from './Media';
8
8
  import type { OrgId } from './OrgId';
9
9
  import type { Package } from './Package';
10
10
  import type { Price } from './Price';
@@ -22,7 +22,7 @@ export type DTOComponentCreate = {
22
22
  componentFields: Array<Field>;
23
23
  partners: Array<string>;
24
24
  regions: Array<RegionId>;
25
- media?: ComponentMedia;
25
+ media?: Media;
26
26
  pricing: Price;
27
27
  package?: Package;
28
28
  state: ComponentState;
@@ -1,12 +1,12 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
3
  import type { ComponentId } from './ComponentId';
4
- import type { ComponentMedia } from './ComponentMedia';
5
4
  import type { ComponentNotes } from './ComponentNotes';
6
5
  import type { ComponentRevisionGroupId } from './ComponentRevisionGroupId';
7
6
  import type { ComponentState } from './ComponentState';
8
7
  import type { Destination } from './Destination';
9
8
  import type { Field } from './Field';
9
+ import type { Media } from './Media';
10
10
  import type { Metadata } from './Metadata';
11
11
  import type { OrgId } from './OrgId';
12
12
  import type { Package } from './Package';
@@ -23,7 +23,7 @@ export type DTOComponentEntity = {
23
23
  metadata: Metadata;
24
24
  partners: Array<string>;
25
25
  regions: Array<RegionId>;
26
- media: ComponentMedia;
26
+ media: Media;
27
27
  destination: Destination;
28
28
  name: Title;
29
29
  description: ComponentDescription;
@@ -1,12 +1,12 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
3
  import type { ComponentId } from './ComponentId';
4
- import type { ComponentMedia } from './ComponentMedia';
5
4
  import type { ComponentNotes } from './ComponentNotes';
6
5
  import type { ComponentRevisionGroupId } from './ComponentRevisionGroupId';
7
6
  import type { ComponentState } from './ComponentState';
8
7
  import type { Destination } from './Destination';
9
8
  import type { Field } from './Field';
9
+ import type { Media } from './Media';
10
10
  import type { Metadata } from './Metadata';
11
11
  import type { OrgId } from './OrgId';
12
12
  import type { Package } from './Package';
@@ -23,7 +23,7 @@ export type DTOComponentRead = {
23
23
  metadata: Metadata;
24
24
  partners: Array<string>;
25
25
  regions: Array<RegionId>;
26
- media: ComponentMedia;
26
+ media: Media;
27
27
  destination: Destination;
28
28
  name: Title;
29
29
  description: ComponentDescription;
@@ -1,10 +1,10 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
- import type { ComponentMedia } from './ComponentMedia';
4
3
  import type { ComponentNotes } from './ComponentNotes';
5
4
  import type { ComponentState } from './ComponentState';
6
5
  import type { Destination } from './Destination';
7
6
  import type { Field } from './Field';
7
+ import type { Media } from './Media';
8
8
  import type { Package } from './Package';
9
9
  import type { Price } from './Price';
10
10
  import type { Title } from './Title';
@@ -16,7 +16,7 @@ export type DTOComponentUpdate = {
16
16
  faq?: ComponentFAQ;
17
17
  componentFields?: Array<Field>;
18
18
  partners?: Array<string>;
19
- media?: ComponentMedia;
19
+ media?: Media;
20
20
  regions?: Array<string>;
21
21
  pricing?: Price;
22
22
  package?: Package;
@@ -1,11 +1,9 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Discount } from './Discount';
3
- import type { EnquiryId } from './EnquiryId';
4
3
  import type { Fee } from './Fee';
5
4
  import type { QuoteOptions } from './QuoteOptions';
6
5
  import type { Title } from './Title';
7
6
  export type DTOItineraryUpdate = {
8
- enquiryId?: EnquiryId;
9
7
  title?: Title;
10
8
  componentInstances?: Array<ComponentInstance>;
11
9
  fees?: Array<Fee>;
@@ -0,0 +1,16 @@
1
+ import type { Media } from './Media';
2
+ import type { SwoopContactInfo } from './SwoopContactInfo';
3
+ import type { SwooperExperience } from './SwooperExperience';
4
+ import type { SwooperInfo } from './SwooperInfo';
5
+ import type { SwooperPersonalInfo } from './SwooperPersonalInfo';
6
+ export type DTOSwooperCreate = {
7
+ avatar: string;
8
+ name: string;
9
+ fullName: string;
10
+ media?: Media;
11
+ info: SwooperInfo;
12
+ personal: SwooperPersonalInfo;
13
+ experience: SwooperExperience;
14
+ contact: SwoopContactInfo;
15
+ customerReviews?: Array<string>;
16
+ };
@@ -0,0 +1,20 @@
1
+ import type { Media } from './Media';
2
+ import type { Metadata } from './Metadata';
3
+ import type { SwoopContactInfo } from './SwoopContactInfo';
4
+ import type { SwooperExperience } from './SwooperExperience';
5
+ import type { SwooperId } from './SwooperId';
6
+ import type { SwooperInfo } from './SwooperInfo';
7
+ import type { SwooperPersonalInfo } from './SwooperPersonalInfo';
8
+ export type DTOSwooperEntity = {
9
+ id: SwooperId;
10
+ metadata: Metadata;
11
+ avatar: string;
12
+ name: string;
13
+ fullName: string;
14
+ media: Media;
15
+ info: SwooperInfo;
16
+ personal: SwooperPersonalInfo;
17
+ experience: SwooperExperience;
18
+ contact: SwoopContactInfo;
19
+ customerReviews: Array<string>;
20
+ };
@@ -0,0 +1,20 @@
1
+ import type { Media } from './Media';
2
+ import type { Metadata } from './Metadata';
3
+ import type { SwoopContactInfo } from './SwoopContactInfo';
4
+ import type { SwooperExperience } from './SwooperExperience';
5
+ import type { SwooperId } from './SwooperId';
6
+ import type { SwooperInfo } from './SwooperInfo';
7
+ import type { SwooperPersonalInfo } from './SwooperPersonalInfo';
8
+ export type DTOSwooperRead = {
9
+ id: SwooperId;
10
+ metadata: Metadata;
11
+ avatar: string;
12
+ name: string;
13
+ fullName: string;
14
+ media: Media;
15
+ info: SwooperInfo;
16
+ personal: SwooperPersonalInfo;
17
+ experience: SwooperExperience;
18
+ contact: SwoopContactInfo;
19
+ customerReviews: Array<string>;
20
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { Media } from './Media';
2
+ import type { SwoopContactInfo } from './SwoopContactInfo';
3
+ import type { SwooperExperience } from './SwooperExperience';
4
+ import type { SwooperInfo } from './SwooperInfo';
5
+ import type { SwooperPersonalInfo } from './SwooperPersonalInfo';
6
+ export type DTOSwooperUpdate = {
7
+ avatar?: string;
8
+ name?: string;
9
+ fullName?: string;
10
+ media?: Media;
11
+ info?: SwooperInfo;
12
+ personal?: SwooperPersonalInfo;
13
+ experience?: SwooperExperience;
14
+ contact?: SwoopContactInfo;
15
+ customerReviews?: Array<string>;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { ItineraryId } from './ItineraryId';
2
2
  /**
3
- * Itinerary id
3
+ * Itinerary Id
4
4
  */
5
5
  export type ItineraryIdPathParam = ItineraryId;
@@ -1,4 +1,4 @@
1
- export type ComponentMedia = {
1
+ export type Media = {
2
2
  images: Array<string>;
3
3
  videos: Array<string>;
4
4
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export type SwoopContactInfo = {
2
+ email: string;
3
+ phone: string;
4
+ calendly: string;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export type SwooperExperience = {
2
+ specialisations: Array<string>;
3
+ regions?: Array<string>;
4
+ roles: Array<string>;
5
+ projects: Array<string>;
6
+ locations: Array<string>;
7
+ };
@@ -0,0 +1,5 @@
1
+ export type SwooperHighlights = {
2
+ firstExperience: string;
3
+ topExperiences: Array<string>;
4
+ loveForRegion: string;
5
+ };
@@ -0,0 +1 @@
1
+ export type SwooperId = string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { SwooperId } from './SwooperId';
2
+ /**
3
+ * Swooper Id
4
+ */
5
+ export type SwooperIdPathParam = SwooperId;
@@ -0,0 +1,6 @@
1
+ export type SwooperInfo = {
2
+ based: string;
3
+ currentRole: string;
4
+ initialRole: string;
5
+ yearJoined: number;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { SwooperHighlights } from './SwooperHighlights';
2
+ export type SwooperPersonalInfo = {
3
+ highlights?: SwooperHighlights;
4
+ interests?: Array<string>;
5
+ dayToDay?: string;
6
+ startedInTravel?: number;
7
+ };
@@ -3,10 +3,14 @@ import type { ComponentState } from '../models/ComponentState';
3
3
  import type { DTOComponentCreate } from '../models/DTOComponentCreate';
4
4
  import type { DTOComponentRead } from '../models/DTOComponentRead';
5
5
  import type { DTOComponentUpdate } from '../models/DTOComponentUpdate';
6
+ import type { DTOSwooperCreate } from '../models/DTOSwooperCreate';
7
+ import type { DTOSwooperRead } from '../models/DTOSwooperRead';
8
+ import type { DTOSwooperUpdate } from '../models/DTOSwooperUpdate';
6
9
  import type { DTOTemplateCreate } from '../models/DTOTemplateCreate';
7
10
  import { DTOTemplateRead } from '../models/DTOTemplateRead';
8
11
  import type { DTOTemplateUpdate } from '../models/DTOTemplateUpdate';
9
12
  import type { Pagination } from '../models/Pagination';
13
+ import type { SwooperId } from '../models/SwooperId';
10
14
  import type { TemplateId } from '../models/TemplateId';
11
15
  import { CancelablePromise } from '../core/CancelablePromise';
12
16
  export declare class CoreService {
@@ -35,13 +39,13 @@ export declare class CoreService {
35
39
  */
36
40
  templateCreate(requestBody: DTOTemplateCreate): CancelablePromise<DTOTemplateRead>;
37
41
  /**
38
- * Get Itinerary
39
- * Get itinerary via ID
42
+ * Get Template
43
+ * Get Template via ID
40
44
  * @param templateId Id of a template
41
45
  * @returns any OK
42
46
  * @throws ApiError
43
47
  */
44
- itineraryGet(templateId: TemplateId): CancelablePromise<any>;
48
+ templateGet(templateId: TemplateId): CancelablePromise<any>;
45
49
  /**
46
50
  * Update Template as New Revision
47
51
  * Updates an template as a new revision
@@ -126,6 +130,47 @@ export declare class CoreService {
126
130
  * @throws ApiError
127
131
  */
128
132
  componentStateUpdate(componentId: ComponentId, state: ComponentState): CancelablePromise<any>;
133
+ /**
134
+ * List Swoopers
135
+ * List all swoopers
136
+ * @param page Pagination, starting at page 1
137
+ * @param limit Number of items per page
138
+ * @param order Order the sort query parameter values either by ascending or descending order
139
+ * @param sort List of fields to sort by, this requires the order query param
140
+ * @param search The search strings to apply to the on query parameter values
141
+ * @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
142
+ * @returns any OK
143
+ * @throws ApiError
144
+ */
145
+ swooperList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
146
+ data?: Array<DTOSwooperRead>;
147
+ pagination?: Pagination;
148
+ }>;
149
+ /**
150
+ * Create Swooper
151
+ * Create a Swooper
152
+ * @param requestBody
153
+ * @returns DTOSwooperRead OK
154
+ * @throws ApiError
155
+ */
156
+ swooperCreate(requestBody?: DTOSwooperCreate): CancelablePromise<DTOSwooperRead>;
157
+ /**
158
+ * Get Swooper
159
+ * Get Swooper via ID
160
+ * @param swooperId Swooper Id
161
+ * @returns any The corresponding Swooper that matches their Swooper id
162
+ * @throws ApiError
163
+ */
164
+ swooperGet(swooperId: SwooperId): CancelablePromise<any>;
165
+ /**
166
+ * Update Swooper
167
+ * Update Swooper via ID
168
+ * @param swooperId Swooper Id
169
+ * @param requestBody
170
+ * @returns any The corresponding Swooper that matches their Swooper id
171
+ * @throws ApiError
172
+ */
173
+ swooperUpdate(swooperId: SwooperId, requestBody: DTOSwooperUpdate): CancelablePromise<any>;
129
174
  /**
130
175
  * Resolve template hierarchy
131
176
  * @returns Array<DTOTemplateRead> OK
@@ -66,13 +66,13 @@ export class CoreService {
66
66
  });
67
67
  }
68
68
  /**
69
- * Get Itinerary
70
- * Get itinerary via ID
69
+ * Get Template
70
+ * Get Template via ID
71
71
  * @param templateId Id of a template
72
72
  * @returns any OK
73
73
  * @throws ApiError
74
74
  */
75
- itineraryGet(templateId) {
75
+ templateGet(templateId) {
76
76
  return __request(OpenAPI, {
77
77
  method: 'GET',
78
78
  url: '/templates/{templateId}',
@@ -82,7 +82,7 @@ export class CoreService {
82
82
  errors: {
83
83
  401: `Unauthorized - Missing or invalid Authorization header`,
84
84
  403: `Forbidden - The client is authenticated but not authorized to access this resource`,
85
- 404: `If the itinerary does not exist`,
85
+ 404: `If the Template does not exist`,
86
86
  },
87
87
  });
88
88
  }
@@ -309,6 +309,106 @@ export class CoreService {
309
309
  },
310
310
  });
311
311
  }
312
+ /**
313
+ * List Swoopers
314
+ * List all swoopers
315
+ * @param page Pagination, starting at page 1
316
+ * @param limit Number of items per page
317
+ * @param order Order the sort query parameter values either by ascending or descending order
318
+ * @param sort List of fields to sort by, this requires the order query param
319
+ * @param search The search strings to apply to the on query parameter values
320
+ * @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
321
+ * @returns any OK
322
+ * @throws ApiError
323
+ */
324
+ swooperList(page, limit, order, sort, search, on) {
325
+ return __request(OpenAPI, {
326
+ method: 'GET',
327
+ url: '/swooper',
328
+ query: {
329
+ 'page': page,
330
+ 'limit': limit,
331
+ 'order': order,
332
+ 'sort': sort,
333
+ 'search': search,
334
+ 'on': on,
335
+ },
336
+ errors: {
337
+ 400: `If the filter options or query parameters contain invalid values`,
338
+ 401: `Unauthorized - Missing or invalid Authorization header`,
339
+ 500: `When an internal server error occurs when listing all related swoopers`,
340
+ 503: `Service Unavailable - The server is temporarily unable to handle the request`,
341
+ },
342
+ });
343
+ }
344
+ /**
345
+ * Create Swooper
346
+ * Create a Swooper
347
+ * @param requestBody
348
+ * @returns DTOSwooperRead OK
349
+ * @throws ApiError
350
+ */
351
+ swooperCreate(requestBody) {
352
+ return __request(OpenAPI, {
353
+ method: 'POST',
354
+ url: '/swooper',
355
+ body: requestBody,
356
+ mediaType: 'application/json',
357
+ errors: {
358
+ 400: `If the payload is malformed`,
359
+ 401: `Unauthorized - Missing or invalid Authorization header`,
360
+ 500: `When an internal server error occurs when creating a swooper entity`,
361
+ 503: `Service Unavailable - The server is temporarily unable to handle the request`,
362
+ },
363
+ });
364
+ }
365
+ /**
366
+ * Get Swooper
367
+ * Get Swooper via ID
368
+ * @param swooperId Swooper Id
369
+ * @returns any The corresponding Swooper that matches their Swooper id
370
+ * @throws ApiError
371
+ */
372
+ swooperGet(swooperId) {
373
+ return __request(OpenAPI, {
374
+ method: 'GET',
375
+ url: '/swooper/{swooperId}',
376
+ path: {
377
+ 'swooperId': swooperId,
378
+ },
379
+ errors: {
380
+ 400: `If the payload is malformed`,
381
+ 401: `Unauthorized - Missing or invalid Authorization header`,
382
+ 404: `If the Swooper does not exist as it does not match the Swooper id`,
383
+ 503: `Service Unavailable - The server is temporarily unable to handle the request`,
384
+ },
385
+ });
386
+ }
387
+ /**
388
+ * Update Swooper
389
+ * Update Swooper via ID
390
+ * @param swooperId Swooper Id
391
+ * @param requestBody
392
+ * @returns any The corresponding Swooper that matches their Swooper id
393
+ * @throws ApiError
394
+ */
395
+ swooperUpdate(swooperId, requestBody) {
396
+ return __request(OpenAPI, {
397
+ method: 'PATCH',
398
+ url: '/swooper/{swooperId}',
399
+ path: {
400
+ 'swooperId': swooperId,
401
+ },
402
+ body: requestBody,
403
+ mediaType: 'application/json',
404
+ errors: {
405
+ 400: `If the payload is malformed`,
406
+ 401: `Unauthorized - Missing or invalid Authorization header`,
407
+ 404: `If the Swooper does not exist as it does not match the Swooper id`,
408
+ 503: `Service Unavailable - The server is temporarily unable to handle the request`,
409
+ },
410
+ });
411
+ }
312
412
  /**
313
413
  * Resolve template hierarchy
314
414
  * @returns Array<DTOTemplateRead> OK
@@ -0,0 +1,49 @@
1
+ import type { DTOSwooperCreate } from '../models/DTOSwooperCreate';
2
+ import type { DTOSwooperRead } from '../models/DTOSwooperRead';
3
+ import type { DTOSwooperUpdate } from '../models/DTOSwooperUpdate';
4
+ import type { Pagination } from '../models/Pagination';
5
+ import type { SwooperId } from '../models/SwooperId';
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ export declare class SwooperService {
8
+ /**
9
+ * List Swoopers
10
+ * List all swoopers
11
+ * @param page Pagination, starting at page 1
12
+ * @param limit Number of items per page
13
+ * @param order Order the sort query parameter values either by ascending or descending order
14
+ * @param sort List of fields to sort by, this requires the order query param
15
+ * @param search The search strings to apply to the on query parameter values
16
+ * @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
17
+ * @returns any OK
18
+ * @throws ApiError
19
+ */
20
+ static swooperList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
21
+ data?: Array<DTOSwooperRead>;
22
+ pagination?: Pagination;
23
+ }>;
24
+ /**
25
+ * Create Swooper
26
+ * Create a Swooper
27
+ * @param requestBody
28
+ * @returns DTOSwooperRead OK
29
+ * @throws ApiError
30
+ */
31
+ static swooperCreate(requestBody?: DTOSwooperCreate): CancelablePromise<DTOSwooperRead>;
32
+ /**
33
+ * Get Swooper
34
+ * Get Swooper via ID
35
+ * @param swooperId Swooper Id
36
+ * @returns any The corresponding Swooper that matches their Swooper id
37
+ * @throws ApiError
38
+ */
39
+ static swooperGet(swooperId: SwooperId): CancelablePromise<any>;
40
+ /**
41
+ * Update Swooper
42
+ * Update Swooper via ID
43
+ * @param swooperId Swooper Id
44
+ * @param requestBody
45
+ * @returns any The corresponding Swooper that matches their Swooper id
46
+ * @throws ApiError
47
+ */
48
+ static swooperUpdate(swooperId: SwooperId, requestBody: DTOSwooperUpdate): CancelablePromise<any>;
49
+ }