swoop-common 2.1.76 → 2.1.78
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.
- package/dist/api/generated/core/core/OpenAPI.js +1 -1
- package/dist/api/generated/core/exports.d.ts +12 -1
- package/dist/api/generated/core/index.d.ts +12 -1
- package/dist/api/generated/core/models/DTOComponentCreate.d.ts +2 -2
- package/dist/api/generated/core/models/DTOComponentEntity.d.ts +2 -2
- package/dist/api/generated/core/models/DTOComponentRead.d.ts +2 -2
- package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +2 -2
- package/dist/api/generated/core/models/DTOItineraryCreate.d.ts +1 -1
- package/dist/api/generated/core/models/DTOItineraryEntity.d.ts +1 -1
- package/dist/api/generated/core/models/DTOItineraryRead.d.ts +1 -1
- package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +1 -3
- package/dist/api/generated/core/models/DTOSwooperCreate.d.ts +16 -0
- package/dist/api/generated/core/models/DTOSwooperEntity.d.ts +20 -0
- package/dist/api/generated/core/models/DTOSwooperRead.d.ts +20 -0
- package/dist/api/generated/core/models/DTOSwooperRead.js +1 -0
- package/dist/api/generated/core/models/DTOSwooperUpdate.d.ts +16 -0
- package/dist/api/generated/core/models/DTOSwooperUpdate.js +1 -0
- package/dist/api/generated/core/models/ItineraryIdPathParam.d.ts +1 -1
- package/dist/api/generated/core/models/{ComponentMedia.d.ts → Media.d.ts} +1 -1
- package/dist/api/generated/core/models/Media.js +1 -0
- package/dist/api/generated/core/models/SwoopContactInfo.d.ts +5 -0
- package/dist/api/generated/core/models/SwoopContactInfo.js +1 -0
- package/dist/api/generated/core/models/SwooperExperience.d.ts +7 -0
- package/dist/api/generated/core/models/SwooperExperience.js +1 -0
- package/dist/api/generated/core/models/SwooperHighlights.d.ts +5 -0
- package/dist/api/generated/core/models/SwooperHighlights.js +1 -0
- package/dist/api/generated/core/models/SwooperId.d.ts +1 -0
- package/dist/api/generated/core/models/SwooperId.js +1 -0
- package/dist/api/generated/core/models/SwooperIdPathParam.d.ts +5 -0
- package/dist/api/generated/core/models/SwooperIdPathParam.js +1 -0
- package/dist/api/generated/core/models/SwooperInfo.d.ts +6 -0
- package/dist/api/generated/core/models/SwooperInfo.js +1 -0
- package/dist/api/generated/core/models/SwooperPersonalInfo.d.ts +7 -0
- package/dist/api/generated/core/models/SwooperPersonalInfo.js +1 -0
- package/dist/api/generated/itinerary/core/OpenAPI.js +1 -1
- package/dist/api/generated/itinerary/index.d.ts +13 -1
- package/dist/api/generated/itinerary/index.js +1 -0
- package/dist/api/generated/itinerary/models/DTOComponentCreate.d.ts +2 -2
- package/dist/api/generated/itinerary/models/DTOComponentEntity.d.ts +2 -2
- package/dist/api/generated/itinerary/models/DTOComponentRead.d.ts +2 -2
- package/dist/api/generated/itinerary/models/DTOComponentUpdate.d.ts +2 -2
- package/dist/api/generated/itinerary/models/DTOItineraryCreate.d.ts +1 -1
- package/dist/api/generated/itinerary/models/DTOItineraryEntity.d.ts +1 -1
- package/dist/api/generated/itinerary/models/DTOItineraryRead.d.ts +1 -1
- package/dist/api/generated/itinerary/models/DTOItineraryUpdate.d.ts +1 -3
- package/dist/api/generated/itinerary/models/DTOSwooperCreate.d.ts +16 -0
- package/dist/api/generated/itinerary/models/DTOSwooperCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSwooperEntity.d.ts +20 -0
- package/dist/api/generated/itinerary/models/DTOSwooperEntity.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSwooperRead.d.ts +20 -0
- package/dist/api/generated/itinerary/models/DTOSwooperRead.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSwooperUpdate.d.ts +16 -0
- package/dist/api/generated/itinerary/models/DTOSwooperUpdate.js +1 -0
- package/dist/api/generated/itinerary/models/ItineraryIdPathParam.d.ts +1 -1
- package/dist/api/generated/itinerary/models/{ComponentMedia.d.ts → Media.d.ts} +1 -1
- package/dist/api/generated/itinerary/models/Media.js +1 -0
- package/dist/api/generated/itinerary/models/SwoopContactInfo.d.ts +5 -0
- package/dist/api/generated/itinerary/models/SwoopContactInfo.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperExperience.d.ts +7 -0
- package/dist/api/generated/itinerary/models/SwooperExperience.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperHighlights.d.ts +5 -0
- package/dist/api/generated/itinerary/models/SwooperHighlights.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/SwooperId.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperIdPathParam.d.ts +5 -0
- package/dist/api/generated/itinerary/models/SwooperIdPathParam.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperInfo.d.ts +6 -0
- package/dist/api/generated/itinerary/models/SwooperInfo.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperPersonalInfo.d.ts +7 -0
- package/dist/api/generated/itinerary/models/SwooperPersonalInfo.js +1 -0
- package/dist/api/generated/itinerary/services/AuditService.d.ts +1 -1
- package/dist/api/generated/itinerary/services/AuditService.js +1 -1
- package/dist/api/generated/itinerary/services/ItineraryService.d.ts +46 -1
- package/dist/api/generated/itinerary/services/ItineraryService.js +101 -1
- package/dist/api/generated/itinerary/services/SwooperService.d.ts +49 -0
- package/dist/api/generated/itinerary/services/SwooperService.js +104 -0
- package/dist/rendering/renderers/ComponentPicker.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/api/generated/core/models/{ComponentMedia.js → DTOSwooperCreate.js} +0 -0
- /package/dist/api/generated/{itinerary/models/ComponentMedia.js → core/models/DTOSwooperEntity.js} +0 -0
|
@@ -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';
|
|
@@ -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?:
|
|
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:
|
|
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:
|
|
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?:
|
|
19
|
+
media?: Media;
|
|
20
20
|
regions?: Array<string>;
|
|
21
21
|
pricing?: Price;
|
|
22
22
|
package?: Package;
|
|
@@ -1,15 +1,13 @@
|
|
|
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>;
|
|
12
10
|
quoteOption?: QuoteOptions;
|
|
13
11
|
discounts?: Array<Discount>;
|
|
14
|
-
|
|
12
|
+
isLateBookingConfirmed?: boolean;
|
|
15
13
|
};
|
|
@@ -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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SwooperId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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';
|
|
@@ -88,3 +99,4 @@ export { AuditService } from './services/AuditService';
|
|
|
88
99
|
export { ItineraryService } from './services/ItineraryService';
|
|
89
100
|
export { RegionService } from './services/RegionService';
|
|
90
101
|
export { SnapshotService } from './services/SnapshotService';
|
|
102
|
+
export { SwooperService } from './services/SwooperService';
|
|
@@ -17,3 +17,4 @@ export { AuditService } from './services/AuditService';
|
|
|
17
17
|
export { ItineraryService } from './services/ItineraryService';
|
|
18
18
|
export { RegionService } from './services/RegionService';
|
|
19
19
|
export { SnapshotService } from './services/SnapshotService';
|
|
20
|
+
export { SwooperService } from './services/SwooperService';
|
|
@@ -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?:
|
|
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:
|
|
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:
|
|
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?:
|
|
19
|
+
media?: Media;
|
|
20
20
|
regions?: Array<string>;
|
|
21
21
|
pricing?: Price;
|
|
22
22
|
package?: Package;
|
|
@@ -1,15 +1,13 @@
|
|
|
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>;
|
|
12
10
|
quoteOption?: QuoteOptions;
|
|
13
11
|
discounts?: Array<Discount>;
|
|
14
|
-
|
|
12
|
+
isLateBookingConfirmed?: boolean;
|
|
15
13
|
};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SwooperId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,7 +4,7 @@ export declare class AuditService {
|
|
|
4
4
|
/**
|
|
5
5
|
* Audit a Copy to Clipboard
|
|
6
6
|
* Audits when a user copies something to their clipboard
|
|
7
|
-
* @param itineraryId Itinerary
|
|
7
|
+
* @param itineraryId Itinerary Id
|
|
8
8
|
* @param content Base64 encoding of the copied content
|
|
9
9
|
* @returns void
|
|
10
10
|
* @throws ApiError
|
|
@@ -4,7 +4,7 @@ export class AuditService {
|
|
|
4
4
|
/**
|
|
5
5
|
* Audit a Copy to Clipboard
|
|
6
6
|
* Audits when a user copies something to their clipboard
|
|
7
|
-
* @param itineraryId Itinerary
|
|
7
|
+
* @param itineraryId Itinerary Id
|
|
8
8
|
* @param content Base64 encoding of the copied content
|
|
9
9
|
* @returns void
|
|
10
10
|
* @throws ApiError
|
|
@@ -7,16 +7,20 @@ import type { DTORegionCreate } from '../models/DTORegionCreate';
|
|
|
7
7
|
import type { DTORegionRead } from '../models/DTORegionRead';
|
|
8
8
|
import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
|
|
9
9
|
import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
|
|
10
|
+
import type { DTOSwooperCreate } from '../models/DTOSwooperCreate';
|
|
11
|
+
import type { DTOSwooperRead } from '../models/DTOSwooperRead';
|
|
12
|
+
import type { DTOSwooperUpdate } from '../models/DTOSwooperUpdate';
|
|
10
13
|
import type { EnquiryId } from '../models/EnquiryId';
|
|
11
14
|
import type { ItineraryId } from '../models/ItineraryId';
|
|
12
15
|
import type { Pagination } from '../models/Pagination';
|
|
13
16
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
17
|
+
import type { SwooperId } from '../models/SwooperId';
|
|
14
18
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
15
19
|
export declare class ItineraryService {
|
|
16
20
|
/**
|
|
17
21
|
* Audit a Copy to Clipboard
|
|
18
22
|
* Audits when a user copies something to their clipboard
|
|
19
|
-
* @param itineraryId Itinerary
|
|
23
|
+
* @param itineraryId Itinerary Id
|
|
20
24
|
* @param content Base64 encoding of the copied content
|
|
21
25
|
* @returns void
|
|
22
26
|
* @throws ApiError
|
|
@@ -177,4 +181,45 @@ export declare class ItineraryService {
|
|
|
177
181
|
* @throws ApiError
|
|
178
182
|
*/
|
|
179
183
|
regionCreate(requestBody?: DTORegionCreate): CancelablePromise<DTORegionRead>;
|
|
184
|
+
/**
|
|
185
|
+
* List Swoopers
|
|
186
|
+
* List all swoopers
|
|
187
|
+
* @param page Pagination, starting at page 1
|
|
188
|
+
* @param limit Number of items per page
|
|
189
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
190
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
191
|
+
* @param search The search strings to apply to the on query parameter values
|
|
192
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
193
|
+
* @returns any OK
|
|
194
|
+
* @throws ApiError
|
|
195
|
+
*/
|
|
196
|
+
swooperList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
197
|
+
data?: Array<DTOSwooperRead>;
|
|
198
|
+
pagination?: Pagination;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* Create Swooper
|
|
202
|
+
* Create a Swooper
|
|
203
|
+
* @param requestBody
|
|
204
|
+
* @returns DTOSwooperRead OK
|
|
205
|
+
* @throws ApiError
|
|
206
|
+
*/
|
|
207
|
+
swooperCreate(requestBody?: DTOSwooperCreate): CancelablePromise<DTOSwooperRead>;
|
|
208
|
+
/**
|
|
209
|
+
* Get Swooper
|
|
210
|
+
* Get Swooper via ID
|
|
211
|
+
* @param swooperId Swooper Id
|
|
212
|
+
* @returns any The corresponding Swooper that matches their Swooper id
|
|
213
|
+
* @throws ApiError
|
|
214
|
+
*/
|
|
215
|
+
swooperGet(swooperId: SwooperId): CancelablePromise<any>;
|
|
216
|
+
/**
|
|
217
|
+
* Update Swooper
|
|
218
|
+
* Update Swooper via ID
|
|
219
|
+
* @param swooperId Swooper Id
|
|
220
|
+
* @param requestBody
|
|
221
|
+
* @returns any The corresponding Swooper that matches their Swooper id
|
|
222
|
+
* @throws ApiError
|
|
223
|
+
*/
|
|
224
|
+
swooperUpdate(swooperId: SwooperId, requestBody: DTOSwooperUpdate): CancelablePromise<any>;
|
|
180
225
|
}
|
|
@@ -4,7 +4,7 @@ export class ItineraryService {
|
|
|
4
4
|
/**
|
|
5
5
|
* Audit a Copy to Clipboard
|
|
6
6
|
* Audits when a user copies something to their clipboard
|
|
7
|
-
* @param itineraryId Itinerary
|
|
7
|
+
* @param itineraryId Itinerary Id
|
|
8
8
|
* @param content Base64 encoding of the copied content
|
|
9
9
|
* @returns void
|
|
10
10
|
* @throws ApiError
|
|
@@ -379,4 +379,104 @@ export class ItineraryService {
|
|
|
379
379
|
},
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* List Swoopers
|
|
384
|
+
* List all swoopers
|
|
385
|
+
* @param page Pagination, starting at page 1
|
|
386
|
+
* @param limit Number of items per page
|
|
387
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
388
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
389
|
+
* @param search The search strings to apply to the on query parameter values
|
|
390
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
391
|
+
* @returns any OK
|
|
392
|
+
* @throws ApiError
|
|
393
|
+
*/
|
|
394
|
+
swooperList(page, limit, order, sort, search, on) {
|
|
395
|
+
return __request(OpenAPI, {
|
|
396
|
+
method: 'GET',
|
|
397
|
+
url: '/swooper',
|
|
398
|
+
query: {
|
|
399
|
+
'page': page,
|
|
400
|
+
'limit': limit,
|
|
401
|
+
'order': order,
|
|
402
|
+
'sort': sort,
|
|
403
|
+
'search': search,
|
|
404
|
+
'on': on,
|
|
405
|
+
},
|
|
406
|
+
errors: {
|
|
407
|
+
400: `If the filter options or query parameters contain invalid values`,
|
|
408
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
409
|
+
500: `When an internal server error occurs when listing all related swoopers`,
|
|
410
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
411
|
+
},
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Create Swooper
|
|
416
|
+
* Create a Swooper
|
|
417
|
+
* @param requestBody
|
|
418
|
+
* @returns DTOSwooperRead OK
|
|
419
|
+
* @throws ApiError
|
|
420
|
+
*/
|
|
421
|
+
swooperCreate(requestBody) {
|
|
422
|
+
return __request(OpenAPI, {
|
|
423
|
+
method: 'POST',
|
|
424
|
+
url: '/swooper',
|
|
425
|
+
body: requestBody,
|
|
426
|
+
mediaType: 'application/json',
|
|
427
|
+
errors: {
|
|
428
|
+
400: `If the payload is malformed`,
|
|
429
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
430
|
+
500: `When an internal server error occurs when creating a swooper entity`,
|
|
431
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
432
|
+
},
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Get Swooper
|
|
437
|
+
* Get Swooper via ID
|
|
438
|
+
* @param swooperId Swooper Id
|
|
439
|
+
* @returns any The corresponding Swooper that matches their Swooper id
|
|
440
|
+
* @throws ApiError
|
|
441
|
+
*/
|
|
442
|
+
swooperGet(swooperId) {
|
|
443
|
+
return __request(OpenAPI, {
|
|
444
|
+
method: 'GET',
|
|
445
|
+
url: '/swooper/{swooperId}',
|
|
446
|
+
path: {
|
|
447
|
+
'swooperId': swooperId,
|
|
448
|
+
},
|
|
449
|
+
errors: {
|
|
450
|
+
400: `If the payload is malformed`,
|
|
451
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
452
|
+
404: `If the Swooper does not exist as it does not match the Swooper id`,
|
|
453
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
454
|
+
},
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Update Swooper
|
|
459
|
+
* Update Swooper via ID
|
|
460
|
+
* @param swooperId Swooper Id
|
|
461
|
+
* @param requestBody
|
|
462
|
+
* @returns any The corresponding Swooper that matches their Swooper id
|
|
463
|
+
* @throws ApiError
|
|
464
|
+
*/
|
|
465
|
+
swooperUpdate(swooperId, requestBody) {
|
|
466
|
+
return __request(OpenAPI, {
|
|
467
|
+
method: 'PATCH',
|
|
468
|
+
url: '/swooper/{swooperId}',
|
|
469
|
+
path: {
|
|
470
|
+
'swooperId': swooperId,
|
|
471
|
+
},
|
|
472
|
+
body: requestBody,
|
|
473
|
+
mediaType: 'application/json',
|
|
474
|
+
errors: {
|
|
475
|
+
400: `If the payload is malformed`,
|
|
476
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
477
|
+
404: `If the Swooper does not exist as it does not match the Swooper id`,
|
|
478
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
479
|
+
},
|
|
480
|
+
});
|
|
481
|
+
}
|
|
382
482
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class SwooperService {
|
|
4
|
+
/**
|
|
5
|
+
* List Swoopers
|
|
6
|
+
* List all swoopers
|
|
7
|
+
* @param page Pagination, starting at page 1
|
|
8
|
+
* @param limit Number of items per page
|
|
9
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
10
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
11
|
+
* @param search The search strings to apply to the on query parameter values
|
|
12
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
13
|
+
* @returns any OK
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
static swooperList(page, limit, order, sort, search, on) {
|
|
17
|
+
return __request(OpenAPI, {
|
|
18
|
+
method: 'GET',
|
|
19
|
+
url: '/swooper',
|
|
20
|
+
query: {
|
|
21
|
+
'page': page,
|
|
22
|
+
'limit': limit,
|
|
23
|
+
'order': order,
|
|
24
|
+
'sort': sort,
|
|
25
|
+
'search': search,
|
|
26
|
+
'on': on,
|
|
27
|
+
},
|
|
28
|
+
errors: {
|
|
29
|
+
400: `If the filter options or query parameters contain invalid values`,
|
|
30
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
31
|
+
500: `When an internal server error occurs when listing all related swoopers`,
|
|
32
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Create Swooper
|
|
38
|
+
* Create a Swooper
|
|
39
|
+
* @param requestBody
|
|
40
|
+
* @returns DTOSwooperRead OK
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
static swooperCreate(requestBody) {
|
|
44
|
+
return __request(OpenAPI, {
|
|
45
|
+
method: 'POST',
|
|
46
|
+
url: '/swooper',
|
|
47
|
+
body: requestBody,
|
|
48
|
+
mediaType: 'application/json',
|
|
49
|
+
errors: {
|
|
50
|
+
400: `If the payload is malformed`,
|
|
51
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
52
|
+
500: `When an internal server error occurs when creating a swooper entity`,
|
|
53
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get Swooper
|
|
59
|
+
* Get Swooper via ID
|
|
60
|
+
* @param swooperId Swooper Id
|
|
61
|
+
* @returns any The corresponding Swooper that matches their Swooper id
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static swooperGet(swooperId) {
|
|
65
|
+
return __request(OpenAPI, {
|
|
66
|
+
method: 'GET',
|
|
67
|
+
url: '/swooper/{swooperId}',
|
|
68
|
+
path: {
|
|
69
|
+
'swooperId': swooperId,
|
|
70
|
+
},
|
|
71
|
+
errors: {
|
|
72
|
+
400: `If the payload is malformed`,
|
|
73
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
74
|
+
404: `If the Swooper does not exist as it does not match the Swooper id`,
|
|
75
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Update Swooper
|
|
81
|
+
* Update Swooper via ID
|
|
82
|
+
* @param swooperId Swooper Id
|
|
83
|
+
* @param requestBody
|
|
84
|
+
* @returns any The corresponding Swooper that matches their Swooper id
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
static swooperUpdate(swooperId, requestBody) {
|
|
88
|
+
return __request(OpenAPI, {
|
|
89
|
+
method: 'PATCH',
|
|
90
|
+
url: '/swooper/{swooperId}',
|
|
91
|
+
path: {
|
|
92
|
+
'swooperId': swooperId,
|
|
93
|
+
},
|
|
94
|
+
body: requestBody,
|
|
95
|
+
mediaType: 'application/json',
|
|
96
|
+
errors: {
|
|
97
|
+
400: `If the payload is malformed`,
|
|
98
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
99
|
+
404: `If the Swooper does not exist as it does not match the Swooper id`,
|
|
100
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -10,7 +10,7 @@ export declare const fetchComponents: () => Promise<{
|
|
|
10
10
|
metadata: import("../../api/generated/core").Metadata;
|
|
11
11
|
partners: Array<string>;
|
|
12
12
|
regions: Array<import("../../api/generated/core").RegionId>;
|
|
13
|
-
media: import("../../api/generated/core").
|
|
13
|
+
media: import("../../api/generated/core").Media;
|
|
14
14
|
destination: import("../../api/generated/core").Destination;
|
|
15
15
|
name: import("../../api/generated/core").Title;
|
|
16
16
|
description: import("../../api/generated/core").ComponentDescription;
|
package/package.json
CHANGED
|
File without changes
|
/package/dist/api/generated/{itinerary/models/ComponentMedia.js → core/models/DTOSwooperEntity.js}
RENAMED
|
File without changes
|