swoop-common 2.2.46 → 2.2.48
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/exports.d.ts +5 -13
- package/dist/api/generated/core/index.d.ts +6 -14
- package/dist/api/generated/core/index.js +1 -1
- package/dist/api/generated/core/models/ComponentInstance.d.ts +2 -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/DTOPublicSnapshotCreate.d.ts +7 -2
- package/dist/api/generated/core/models/DTOPublicSnapshotEntity.d.ts +7 -2
- package/dist/api/generated/core/models/DTOPublicSnapshotRead.d.ts +7 -2
- package/dist/api/generated/core/models/DTOPublicSnapshotUpdate.d.ts +4 -1
- package/dist/api/generated/core/models/{IdMap.d.ts → ExpandedMap.d.ts} +1 -2
- package/dist/api/generated/core/models/Flag.d.ts +4 -0
- package/dist/api/generated/core/models/PublicSnapShotEnquiryStatus.d.ts +8 -0
- package/dist/api/generated/core/models/PublicSnapshotPerson.d.ts +11 -0
- package/dist/api/generated/core/models/{Error.d.ts → SwoopError.d.ts} +1 -2
- package/dist/api/generated/core/models/SwoopSyncComponentInstance.d.ts +4 -2
- package/dist/api/generated/core/models/TripId.d.ts +1 -2
- package/dist/api/generated/core/services/CoreService.d.ts +8 -45
- package/dist/api/generated/core/services/CoreService.js +22 -101
- package/dist/api/generated/core/services/PublicService.d.ts +12 -0
- package/dist/api/generated/core/services/PublicService.js +26 -0
- package/dist/api/generated/core/services/SnapshotService.d.ts +8 -0
- package/dist/api/generated/core/services/SnapshotService.js +22 -0
- package/dist/rendering/renderers/ComponentPicker.d.ts +1 -1
- package/package.json +1 -1
- package/dist/api/generated/core/models/DTOSwooperCreate.d.ts +0 -20
- package/dist/api/generated/core/models/DTOSwooperEntity.d.ts +0 -24
- package/dist/api/generated/core/models/DTOSwooperRead.d.ts +0 -24
- package/dist/api/generated/core/models/DTOSwooperUpdate.d.ts +0 -19
- package/dist/api/generated/core/models/IdMap.js +0 -1
- package/dist/api/generated/core/models/SwoopContactInfo.d.ts +0 -5
- package/dist/api/generated/core/models/SwoopContactInfo.js +0 -1
- package/dist/api/generated/core/models/SwooperExperience.d.ts +0 -7
- package/dist/api/generated/core/models/SwooperExperience.js +0 -1
- package/dist/api/generated/core/models/SwooperHighlights.d.ts +0 -5
- package/dist/api/generated/core/models/SwooperHighlights.js +0 -1
- package/dist/api/generated/core/models/SwooperId.d.ts +0 -1
- package/dist/api/generated/core/models/SwooperId.js +0 -1
- package/dist/api/generated/core/models/SwooperIdPathParam.d.ts +0 -5
- package/dist/api/generated/core/models/SwooperIdPathParam.js +0 -1
- package/dist/api/generated/core/models/SwooperInfo.d.ts +0 -6
- package/dist/api/generated/core/models/SwooperInfo.js +0 -1
- package/dist/api/generated/core/models/SwooperPersonalInfo.d.ts +0 -7
- package/dist/api/generated/core/models/SwooperPersonalInfo.js +0 -1
- package/dist/api/generated/core/services/SwooperService.d.ts +0 -50
- package/dist/api/generated/core/services/SwooperService.js +0 -105
- /package/dist/api/generated/core/models/{DTOSwooperCreate.js → ExpandedMap.js} +0 -0
- /package/dist/api/generated/core/models/{DTOSwooperEntity.js → Flag.js} +0 -0
- /package/dist/api/generated/core/models/{DTOSwooperRead.js → PublicSnapShotEnquiryStatus.js} +0 -0
- /package/dist/api/generated/core/models/{DTOSwooperUpdate.js → PublicSnapshotPerson.js} +0 -0
- /package/dist/api/generated/core/models/{Error.js → SwoopError.js} +0 -0
|
@@ -47,10 +47,6 @@ export type { DTOSnapshotCreate } from './index';
|
|
|
47
47
|
export type { DTOSnapshotEntity } from './index';
|
|
48
48
|
export type { DTOSnapshotRead } from './index';
|
|
49
49
|
export type { DTOSnapshotUpdate } from './index';
|
|
50
|
-
export type { DTOSwooperCreate } from './index';
|
|
51
|
-
export type { DTOSwooperEntity } from './index';
|
|
52
|
-
export type { DTOSwooperRead } from './index';
|
|
53
|
-
export type { DTOSwooperUpdate } from './index';
|
|
54
50
|
export type { DTOSwoopSync } from './index';
|
|
55
51
|
export type { DTOTemplateCreate } from './index';
|
|
56
52
|
export type { DTOTemplateEntity } from './index';
|
|
@@ -59,10 +55,10 @@ export type { DTOTemplateUpdate } from './index';
|
|
|
59
55
|
export type { EnquiryId } from './index';
|
|
60
56
|
export type { EnquiryIdPathParam } from './index';
|
|
61
57
|
export type { EnquiryIdQueryParam } from './index';
|
|
62
|
-
export type {
|
|
58
|
+
export type { ExpandedMap } from './index';
|
|
63
59
|
export type { Fee } from './index';
|
|
64
60
|
export type { Field } from './index';
|
|
65
|
-
export type {
|
|
61
|
+
export type { Flag } from './index';
|
|
66
62
|
export type { InternalSwoopId } from './index';
|
|
67
63
|
export type { ItineraryCreateResponse } from './index';
|
|
68
64
|
export type { ItineraryId } from './index';
|
|
@@ -86,7 +82,9 @@ export type { Pagination } from './index';
|
|
|
86
82
|
export type { Partner } from './index';
|
|
87
83
|
export type { Partners } from './index';
|
|
88
84
|
export type { Price } from './index';
|
|
85
|
+
export type { PublicSnapShotEnquiryStatus } from './index';
|
|
89
86
|
export type { PublicSnapshotId } from './index';
|
|
87
|
+
export type { PublicSnapshotPerson } from './index';
|
|
90
88
|
export type { QuoteOptions } from './index';
|
|
91
89
|
export type { RegionId } from './index';
|
|
92
90
|
export type { SearchQueryParam } from './index';
|
|
@@ -94,13 +92,7 @@ export type { SnapshotId } from './index';
|
|
|
94
92
|
export type { SnapshotIdPathParam } from './index';
|
|
95
93
|
export type { SortQueryParam } from './index';
|
|
96
94
|
export type { StateQueryParam } from './index';
|
|
97
|
-
export type {
|
|
98
|
-
export type { SwooperExperience } from './index';
|
|
99
|
-
export type { SwooperHighlights } from './index';
|
|
100
|
-
export type { SwooperId } from './index';
|
|
101
|
-
export type { SwooperIdPathParam } from './index';
|
|
102
|
-
export type { SwooperInfo } from './index';
|
|
103
|
-
export type { SwooperPersonalInfo } from './index';
|
|
95
|
+
export type { SwoopError } from './index';
|
|
104
96
|
export type { SwoopSyncComponentInstance } from './index';
|
|
105
97
|
export type { SwoopSyncError } from './index';
|
|
106
98
|
export type { SwoopSyncErrorMsg } from './index';
|
|
@@ -47,10 +47,6 @@ export type { DTOSnapshotCreate } from './models/DTOSnapshotCreate';
|
|
|
47
47
|
export type { DTOSnapshotEntity } from './models/DTOSnapshotEntity';
|
|
48
48
|
export type { DTOSnapshotRead } from './models/DTOSnapshotRead';
|
|
49
49
|
export type { DTOSnapshotUpdate } from './models/DTOSnapshotUpdate';
|
|
50
|
-
export type { DTOSwooperCreate } from './models/DTOSwooperCreate';
|
|
51
|
-
export type { DTOSwooperEntity } from './models/DTOSwooperEntity';
|
|
52
|
-
export type { DTOSwooperRead } from './models/DTOSwooperRead';
|
|
53
|
-
export type { DTOSwooperUpdate } from './models/DTOSwooperUpdate';
|
|
54
50
|
export type { DTOSwoopSync } from './models/DTOSwoopSync';
|
|
55
51
|
export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
|
|
56
52
|
export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
|
|
@@ -59,10 +55,10 @@ export type { DTOTemplateUpdate } from './models/DTOTemplateUpdate';
|
|
|
59
55
|
export type { EnquiryId } from './models/EnquiryId';
|
|
60
56
|
export type { EnquiryIdPathParam } from './models/EnquiryIdPathParam';
|
|
61
57
|
export type { EnquiryIdQueryParam } from './models/EnquiryIdQueryParam';
|
|
62
|
-
export type {
|
|
58
|
+
export type { ExpandedMap } from './models/ExpandedMap';
|
|
63
59
|
export type { Fee } from './models/Fee';
|
|
64
60
|
export type { Field } from './models/Field';
|
|
65
|
-
export type {
|
|
61
|
+
export type { Flag } from './models/Flag';
|
|
66
62
|
export type { InternalSwoopId } from './models/InternalSwoopId';
|
|
67
63
|
export type { ItineraryCreateResponse } from './models/ItineraryCreateResponse';
|
|
68
64
|
export type { ItineraryId } from './models/ItineraryId';
|
|
@@ -86,7 +82,9 @@ export type { Pagination } from './models/Pagination';
|
|
|
86
82
|
export type { Partner } from './models/Partner';
|
|
87
83
|
export type { Partners } from './models/Partners';
|
|
88
84
|
export type { Price } from './models/Price';
|
|
85
|
+
export type { PublicSnapShotEnquiryStatus } from './models/PublicSnapShotEnquiryStatus';
|
|
89
86
|
export type { PublicSnapshotId } from './models/PublicSnapshotId';
|
|
87
|
+
export type { PublicSnapshotPerson } from './models/PublicSnapshotPerson';
|
|
90
88
|
export type { QuoteOptions } from './models/QuoteOptions';
|
|
91
89
|
export type { RegionId } from './models/RegionId';
|
|
92
90
|
export type { SearchQueryParam } from './models/SearchQueryParam';
|
|
@@ -94,13 +92,7 @@ export type { SnapshotId } from './models/SnapshotId';
|
|
|
94
92
|
export type { SnapshotIdPathParam } from './models/SnapshotIdPathParam';
|
|
95
93
|
export type { SortQueryParam } from './models/SortQueryParam';
|
|
96
94
|
export type { StateQueryParam } from './models/StateQueryParam';
|
|
97
|
-
export type {
|
|
98
|
-
export type { SwooperExperience } from './models/SwooperExperience';
|
|
99
|
-
export type { SwooperHighlights } from './models/SwooperHighlights';
|
|
100
|
-
export type { SwooperId } from './models/SwooperId';
|
|
101
|
-
export type { SwooperIdPathParam } from './models/SwooperIdPathParam';
|
|
102
|
-
export type { SwooperInfo } from './models/SwooperInfo';
|
|
103
|
-
export type { SwooperPersonalInfo } from './models/SwooperPersonalInfo';
|
|
95
|
+
export type { SwoopError } from './models/SwoopError';
|
|
104
96
|
export type { SwoopSyncComponentInstance } from './models/SwoopSyncComponentInstance';
|
|
105
97
|
export type { SwoopSyncError } from './models/SwoopSyncError';
|
|
106
98
|
export type { SwoopSyncErrorMsg } from './models/SwoopSyncErrorMsg';
|
|
@@ -117,7 +109,7 @@ export type { VersionPathParam } from './models/VersionPathParam';
|
|
|
117
109
|
export { ComponentService } from './services/ComponentService';
|
|
118
110
|
export { CoreService } from './services/CoreService';
|
|
119
111
|
export { ItineraryService } from './services/ItineraryService';
|
|
112
|
+
export { PublicService } from './services/PublicService';
|
|
120
113
|
export { RegionService } from './services/RegionService';
|
|
121
114
|
export { SnapshotService } from './services/SnapshotService';
|
|
122
|
-
export { SwooperService } from './services/SwooperService';
|
|
123
115
|
export { TemplateService } from './services/TemplateService';
|
|
@@ -17,7 +17,7 @@ export { UrgencyCTA } from './models/UrgencyCTA';
|
|
|
17
17
|
export { ComponentService } from './services/ComponentService';
|
|
18
18
|
export { CoreService } from './services/CoreService';
|
|
19
19
|
export { ItineraryService } from './services/ItineraryService';
|
|
20
|
+
export { PublicService } from './services/PublicService';
|
|
20
21
|
export { RegionService } from './services/RegionService';
|
|
21
22
|
export { SnapshotService } from './services/SnapshotService';
|
|
22
|
-
export { SwooperService } from './services/SwooperService';
|
|
23
23
|
export { TemplateService } from './services/TemplateService';
|
|
@@ -4,6 +4,7 @@ import type { BookingStatus } from './BookingStatus';
|
|
|
4
4
|
import type { ComponentId } from './ComponentId';
|
|
5
5
|
import type { ComponentInstanceId } from './ComponentInstanceId';
|
|
6
6
|
import type { Field } from './Field';
|
|
7
|
+
import type { Flag } from './Flag';
|
|
7
8
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
8
9
|
import type { Price } from './Price';
|
|
9
10
|
import type { UserComponentInstanceField } from './UserComponentInstanceField';
|
|
@@ -25,6 +26,6 @@ export type ComponentInstance = {
|
|
|
25
26
|
bookingGroup: string;
|
|
26
27
|
startDate?: string;
|
|
27
28
|
endDate?: string;
|
|
28
|
-
|
|
29
|
+
flag: Flag;
|
|
29
30
|
bookingStatus: BookingStatus;
|
|
30
31
|
};
|
|
@@ -4,7 +4,6 @@ import type { ComponentNotes } from './ComponentNotes';
|
|
|
4
4
|
import type { ComponentState } from './ComponentState';
|
|
5
5
|
import type { Destination } from './Destination';
|
|
6
6
|
import type { Field } from './Field';
|
|
7
|
-
import type { InternalSwoopId } from './InternalSwoopId';
|
|
8
7
|
import type { Media } from './Media';
|
|
9
8
|
import type { OrgId } from './OrgId';
|
|
10
9
|
import type { Package } from './Package';
|
|
@@ -13,9 +12,10 @@ import type { Price } from './Price';
|
|
|
13
12
|
import type { RegionId } from './RegionId';
|
|
14
13
|
import type { TemplateId } from './TemplateId';
|
|
15
14
|
import type { Title } from './Title';
|
|
15
|
+
import type { TripId } from './TripId';
|
|
16
16
|
export type DTOComponentCreate = {
|
|
17
17
|
orgId: OrgId;
|
|
18
|
-
tripId?:
|
|
18
|
+
tripId?: TripId;
|
|
19
19
|
templateId: TemplateId;
|
|
20
20
|
name: Title;
|
|
21
21
|
destination: Destination;
|
|
@@ -6,7 +6,6 @@ import type { ComponentRevisionGroupId } from './ComponentRevisionGroupId';
|
|
|
6
6
|
import type { ComponentState } from './ComponentState';
|
|
7
7
|
import type { Destination } from './Destination';
|
|
8
8
|
import type { Field } from './Field';
|
|
9
|
-
import type { InternalSwoopId } from './InternalSwoopId';
|
|
10
9
|
import type { Media } from './Media';
|
|
11
10
|
import type { Metadata } from './Metadata';
|
|
12
11
|
import type { OrgId } from './OrgId';
|
|
@@ -16,10 +15,11 @@ import type { Price } from './Price';
|
|
|
16
15
|
import type { RegionId } from './RegionId';
|
|
17
16
|
import type { TemplateId } from './TemplateId';
|
|
18
17
|
import type { Title } from './Title';
|
|
18
|
+
import type { TripId } from './TripId';
|
|
19
19
|
export type DTOComponentEntity = {
|
|
20
20
|
id: ComponentId;
|
|
21
21
|
orgId: OrgId;
|
|
22
|
-
tripId?:
|
|
22
|
+
tripId?: TripId;
|
|
23
23
|
templateId: TemplateId;
|
|
24
24
|
revisionGroupId: ComponentRevisionGroupId;
|
|
25
25
|
revision: number;
|
|
@@ -6,7 +6,6 @@ import type { ComponentRevisionGroupId } from './ComponentRevisionGroupId';
|
|
|
6
6
|
import type { ComponentState } from './ComponentState';
|
|
7
7
|
import type { Destination } from './Destination';
|
|
8
8
|
import type { Field } from './Field';
|
|
9
|
-
import type { InternalSwoopId } from './InternalSwoopId';
|
|
10
9
|
import type { Media } from './Media';
|
|
11
10
|
import type { Metadata } from './Metadata';
|
|
12
11
|
import type { OrgId } from './OrgId';
|
|
@@ -16,10 +15,11 @@ import type { Price } from './Price';
|
|
|
16
15
|
import type { RegionId } from './RegionId';
|
|
17
16
|
import type { TemplateId } from './TemplateId';
|
|
18
17
|
import type { Title } from './Title';
|
|
18
|
+
import type { TripId } from './TripId';
|
|
19
19
|
export type DTOComponentRead = {
|
|
20
20
|
id: ComponentId;
|
|
21
21
|
orgId: OrgId;
|
|
22
|
-
tripId?:
|
|
22
|
+
tripId?: TripId;
|
|
23
23
|
templateId: TemplateId;
|
|
24
24
|
revisionGroupId: ComponentRevisionGroupId;
|
|
25
25
|
revision: number;
|
|
@@ -4,15 +4,15 @@ import type { ComponentNotes } from './ComponentNotes';
|
|
|
4
4
|
import type { ComponentState } from './ComponentState';
|
|
5
5
|
import type { Destination } from './Destination';
|
|
6
6
|
import type { Field } from './Field';
|
|
7
|
-
import type { InternalSwoopId } from './InternalSwoopId';
|
|
8
7
|
import type { Media } from './Media';
|
|
9
8
|
import type { Package } from './Package';
|
|
10
9
|
import type { Partners } from './Partners';
|
|
11
10
|
import type { Price } from './Price';
|
|
12
11
|
import type { Title } from './Title';
|
|
12
|
+
import type { TripId } from './TripId';
|
|
13
13
|
export type DTOComponentUpdate = {
|
|
14
14
|
name?: Title;
|
|
15
|
-
tripId?:
|
|
15
|
+
tripId?: TripId;
|
|
16
16
|
destination?: Destination;
|
|
17
17
|
description?: ComponentDescription;
|
|
18
18
|
notes?: ComponentNotes;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExpandedMap } from './ExpandedMap';
|
|
3
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
|
+
import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
|
|
5
|
+
import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
|
|
4
6
|
import type { SnapshotId } from './SnapshotId';
|
|
5
7
|
import type { Title } from './Title';
|
|
6
8
|
export type DTOPublicSnapshotCreate = {
|
|
@@ -8,5 +10,8 @@ export type DTOPublicSnapshotCreate = {
|
|
|
8
10
|
name: Title;
|
|
9
11
|
enquiryId: InternalSwoopId;
|
|
10
12
|
itinerary: DTOItineraryRead;
|
|
11
|
-
map:
|
|
13
|
+
map: ExpandedMap;
|
|
14
|
+
enquiryStatus: PublicSnapShotEnquiryStatus;
|
|
15
|
+
salesPerson: PublicSnapshotPerson;
|
|
16
|
+
cxPerson: PublicSnapshotPerson;
|
|
12
17
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExpandedMap } from './ExpandedMap';
|
|
3
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
|
+
import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
|
|
5
6
|
import type { PublicSnapshotId } from './PublicSnapshotId';
|
|
7
|
+
import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
|
|
6
8
|
import type { SnapshotId } from './SnapshotId';
|
|
7
9
|
import type { Title } from './Title';
|
|
8
10
|
export type DTOPublicSnapshotEntity = {
|
|
@@ -12,5 +14,8 @@ export type DTOPublicSnapshotEntity = {
|
|
|
12
14
|
name: Title;
|
|
13
15
|
enquiryId: InternalSwoopId;
|
|
14
16
|
itinerary: DTOItineraryRead;
|
|
15
|
-
map:
|
|
17
|
+
map: ExpandedMap;
|
|
18
|
+
enquiryStatus: PublicSnapShotEnquiryStatus;
|
|
19
|
+
salesPerson: PublicSnapshotPerson;
|
|
20
|
+
cxPerson: PublicSnapshotPerson;
|
|
16
21
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExpandedMap } from './ExpandedMap';
|
|
3
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
|
+
import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
|
|
5
6
|
import type { PublicSnapshotId } from './PublicSnapshotId';
|
|
7
|
+
import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
|
|
6
8
|
import type { SnapshotId } from './SnapshotId';
|
|
7
9
|
import type { Title } from './Title';
|
|
8
10
|
export type DTOPublicSnapshotRead = {
|
|
@@ -12,5 +14,8 @@ export type DTOPublicSnapshotRead = {
|
|
|
12
14
|
name: Title;
|
|
13
15
|
enquiryId: InternalSwoopId;
|
|
14
16
|
itinerary: DTOItineraryRead;
|
|
15
|
-
map:
|
|
17
|
+
map: ExpandedMap;
|
|
18
|
+
enquiryStatus: PublicSnapShotEnquiryStatus;
|
|
19
|
+
salesPerson: PublicSnapshotPerson;
|
|
20
|
+
cxPerson: PublicSnapshotPerson;
|
|
16
21
|
};
|
|
@@ -4,14 +4,16 @@ import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
|
|
|
4
4
|
import type { BookingStatus } from './BookingStatus';
|
|
5
5
|
import type { ComponentId } from './ComponentId';
|
|
6
6
|
import type { Field } from './Field';
|
|
7
|
+
import type { Flag } from './Flag';
|
|
7
8
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
8
9
|
import type { Price } from './Price';
|
|
10
|
+
import type { TripId } from './TripId';
|
|
9
11
|
import type { UserComponentInstanceField } from './UserComponentInstanceField';
|
|
10
12
|
export type SwoopSyncComponentInstance = {
|
|
11
13
|
id: string;
|
|
12
14
|
componentId: ComponentId;
|
|
13
15
|
bookingItemTypeId: InternalSwoopId;
|
|
14
|
-
tripId?:
|
|
16
|
+
tripId?: TripId;
|
|
15
17
|
partnerId: InternalSwoopId;
|
|
16
18
|
componentInstanceFields: Array<Field>;
|
|
17
19
|
userComponentInstanceFields: Array<UserComponentInstanceField>;
|
|
@@ -27,6 +29,6 @@ export type SwoopSyncComponentInstance = {
|
|
|
27
29
|
bookingGroup: string;
|
|
28
30
|
startDate: string;
|
|
29
31
|
endDate: string;
|
|
30
|
-
|
|
32
|
+
flag: Flag;
|
|
31
33
|
bookingStatus: BookingStatus;
|
|
32
34
|
};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type TripId = InternalSwoopId;
|
|
1
|
+
export type TripId = string;
|
|
@@ -8,13 +8,11 @@ import type { DTOComponentUpdate } from '../models/DTOComponentUpdate';
|
|
|
8
8
|
import type { DTOItineraryCreate } from '../models/DTOItineraryCreate';
|
|
9
9
|
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
10
10
|
import type { DTOItineraryUpdate } from '../models/DTOItineraryUpdate';
|
|
11
|
+
import type { DTOPublicSnapshotRead } from '../models/DTOPublicSnapshotRead';
|
|
11
12
|
import type { DTORegionCreate } from '../models/DTORegionCreate';
|
|
12
13
|
import type { DTORegionRead } from '../models/DTORegionRead';
|
|
13
14
|
import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
|
|
14
15
|
import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
|
|
15
|
-
import type { DTOSwooperCreate } from '../models/DTOSwooperCreate';
|
|
16
|
-
import type { DTOSwooperRead } from '../models/DTOSwooperRead';
|
|
17
|
-
import type { DTOSwooperUpdate } from '../models/DTOSwooperUpdate';
|
|
18
16
|
import type { DTOTemplateCreate } from '../models/DTOTemplateCreate';
|
|
19
17
|
import { DTOTemplateRead } from '../models/DTOTemplateRead';
|
|
20
18
|
import type { DTOTemplateUpdate } from '../models/DTOTemplateUpdate';
|
|
@@ -22,10 +20,16 @@ import type { InternalSwoopId } from '../models/InternalSwoopId';
|
|
|
22
20
|
import type { ItineraryCreateResponse } from '../models/ItineraryCreateResponse';
|
|
23
21
|
import type { Pagination } from '../models/Pagination';
|
|
24
22
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
25
|
-
import type { SwooperId } from '../models/SwooperId';
|
|
26
23
|
import type { TemplateId } from '../models/TemplateId';
|
|
27
24
|
import { CancelablePromise } from '../core/CancelablePromise';
|
|
28
25
|
export declare class CoreService {
|
|
26
|
+
/**
|
|
27
|
+
* Fetch the publicly available snapshot information.
|
|
28
|
+
* @param snapshotId
|
|
29
|
+
* @returns DTOPublicSnapshotRead The publicly available snapshot information
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
publicSnapshotList(snapshotId: SnapshotId): CancelablePromise<DTOPublicSnapshotRead>;
|
|
29
33
|
/**
|
|
30
34
|
* Create a Snapshot
|
|
31
35
|
* Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
|
|
@@ -288,47 +292,6 @@ export declare class CoreService {
|
|
|
288
292
|
* @throws ApiError
|
|
289
293
|
*/
|
|
290
294
|
componentStateUpdate(componentId: ComponentId, state: ComponentState): CancelablePromise<DTOComponentRead>;
|
|
291
|
-
/**
|
|
292
|
-
* List Swoopers
|
|
293
|
-
* List all swoopers
|
|
294
|
-
* @param page Pagination, starting at page 1
|
|
295
|
-
* @param limit Number of items per page
|
|
296
|
-
* @param order Order the sort query parameter values either by ascending or descending order
|
|
297
|
-
* @param sort List of fields to sort by, this requires the order query param
|
|
298
|
-
* @param search The search strings to apply to the on query parameter values
|
|
299
|
-
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
300
|
-
* @returns any Paginated response of swoopers
|
|
301
|
-
* @throws ApiError
|
|
302
|
-
*/
|
|
303
|
-
swooperList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
304
|
-
pagination?: Pagination;
|
|
305
|
-
data?: Array<DTOTemplateRead>;
|
|
306
|
-
}>;
|
|
307
|
-
/**
|
|
308
|
-
* Create Swooper
|
|
309
|
-
* Create a Swooper
|
|
310
|
-
* @param requestBody
|
|
311
|
-
* @returns DTOSwooperRead OK
|
|
312
|
-
* @throws ApiError
|
|
313
|
-
*/
|
|
314
|
-
swooperCreate(requestBody?: DTOSwooperCreate): CancelablePromise<DTOSwooperRead>;
|
|
315
|
-
/**
|
|
316
|
-
* Get Swooper
|
|
317
|
-
* Get Swooper via ID
|
|
318
|
-
* @param swooperId Swooper Id
|
|
319
|
-
* @returns any The corresponding Swooper that matches their Swooper id
|
|
320
|
-
* @throws ApiError
|
|
321
|
-
*/
|
|
322
|
-
swooperGet(swooperId: SwooperId): CancelablePromise<any>;
|
|
323
|
-
/**
|
|
324
|
-
* Update Swooper
|
|
325
|
-
* Update Swooper via ID
|
|
326
|
-
* @param swooperId Swooper Id
|
|
327
|
-
* @param requestBody
|
|
328
|
-
* @returns any The corresponding Swooper that matches their Swooper id
|
|
329
|
-
* @throws ApiError
|
|
330
|
-
*/
|
|
331
|
-
swooperUpdate(swooperId: SwooperId, requestBody: DTOSwooperUpdate): CancelablePromise<any>;
|
|
332
295
|
/**
|
|
333
296
|
* Resolve template hierarchy
|
|
334
297
|
* @returns Array<DTOTemplateRead> OK
|
|
@@ -12,6 +12,28 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
12
12
|
import { request as __request } from '../core/request';
|
|
13
13
|
import { resolveTemplateHierarchy } from '../../../additions/templateHierarchyResolver';
|
|
14
14
|
export class CoreService {
|
|
15
|
+
/**
|
|
16
|
+
* Fetch the publicly available snapshot information.
|
|
17
|
+
* @param snapshotId
|
|
18
|
+
* @returns DTOPublicSnapshotRead The publicly available snapshot information
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
publicSnapshotList(snapshotId) {
|
|
22
|
+
return __request(OpenAPI, {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/public/snapshot/{snapshotId}',
|
|
25
|
+
path: {
|
|
26
|
+
'snapshotId': snapshotId,
|
|
27
|
+
},
|
|
28
|
+
errors: {
|
|
29
|
+
400: `If the payload is malformed`,
|
|
30
|
+
401: `When the client is not authorised`,
|
|
31
|
+
403: `When the snapshot is missing from the requests context`,
|
|
32
|
+
404: `If a resource does not exist`,
|
|
33
|
+
500: `When an unexpected error occurs`,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
15
37
|
/**
|
|
16
38
|
* Create a Snapshot
|
|
17
39
|
* Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
|
|
@@ -654,107 +676,6 @@ export class CoreService {
|
|
|
654
676
|
},
|
|
655
677
|
});
|
|
656
678
|
}
|
|
657
|
-
/**
|
|
658
|
-
* List Swoopers
|
|
659
|
-
* List all swoopers
|
|
660
|
-
* @param page Pagination, starting at page 1
|
|
661
|
-
* @param limit Number of items per page
|
|
662
|
-
* @param order Order the sort query parameter values either by ascending or descending order
|
|
663
|
-
* @param sort List of fields to sort by, this requires the order query param
|
|
664
|
-
* @param search The search strings to apply to the on query parameter values
|
|
665
|
-
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
666
|
-
* @returns any Paginated response of swoopers
|
|
667
|
-
* @throws ApiError
|
|
668
|
-
*/
|
|
669
|
-
swooperList(page, limit, order, sort, search, on) {
|
|
670
|
-
return __request(OpenAPI, {
|
|
671
|
-
method: 'GET',
|
|
672
|
-
url: '/swooper',
|
|
673
|
-
query: {
|
|
674
|
-
'page': page,
|
|
675
|
-
'limit': limit,
|
|
676
|
-
'order': order,
|
|
677
|
-
'sort': sort,
|
|
678
|
-
'search': search,
|
|
679
|
-
'on': on,
|
|
680
|
-
},
|
|
681
|
-
errors: {
|
|
682
|
-
400: `If the payload is malformed`,
|
|
683
|
-
401: `When the client is not authorised`,
|
|
684
|
-
500: `When an unexpected error occurs`,
|
|
685
|
-
},
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* Create Swooper
|
|
690
|
-
* Create a Swooper
|
|
691
|
-
* @param requestBody
|
|
692
|
-
* @returns DTOSwooperRead OK
|
|
693
|
-
* @throws ApiError
|
|
694
|
-
*/
|
|
695
|
-
swooperCreate(requestBody) {
|
|
696
|
-
return __request(OpenAPI, {
|
|
697
|
-
method: 'POST',
|
|
698
|
-
url: '/swooper',
|
|
699
|
-
body: requestBody,
|
|
700
|
-
mediaType: 'application/json',
|
|
701
|
-
errors: {
|
|
702
|
-
400: `If the payload is malformed`,
|
|
703
|
-
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
704
|
-
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
705
|
-
500: `Internal Server Error`,
|
|
706
|
-
},
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* Get Swooper
|
|
711
|
-
* Get Swooper via ID
|
|
712
|
-
* @param swooperId Swooper Id
|
|
713
|
-
* @returns any The corresponding Swooper that matches their Swooper id
|
|
714
|
-
* @throws ApiError
|
|
715
|
-
*/
|
|
716
|
-
swooperGet(swooperId) {
|
|
717
|
-
return __request(OpenAPI, {
|
|
718
|
-
method: 'GET',
|
|
719
|
-
url: '/swooper/{swooperId}',
|
|
720
|
-
path: {
|
|
721
|
-
'swooperId': swooperId,
|
|
722
|
-
},
|
|
723
|
-
errors: {
|
|
724
|
-
400: `If the payload is malformed`,
|
|
725
|
-
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
726
|
-
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
727
|
-
404: `If a resource does not exist`,
|
|
728
|
-
500: `Internal Server Error`,
|
|
729
|
-
},
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* Update Swooper
|
|
734
|
-
* Update Swooper via ID
|
|
735
|
-
* @param swooperId Swooper Id
|
|
736
|
-
* @param requestBody
|
|
737
|
-
* @returns any The corresponding Swooper that matches their Swooper id
|
|
738
|
-
* @throws ApiError
|
|
739
|
-
*/
|
|
740
|
-
swooperUpdate(swooperId, requestBody) {
|
|
741
|
-
return __request(OpenAPI, {
|
|
742
|
-
method: 'PATCH',
|
|
743
|
-
url: '/swooper/{swooperId}',
|
|
744
|
-
path: {
|
|
745
|
-
'swooperId': swooperId,
|
|
746
|
-
},
|
|
747
|
-
body: requestBody,
|
|
748
|
-
mediaType: 'application/json',
|
|
749
|
-
errors: {
|
|
750
|
-
400: `If the payload is malformed`,
|
|
751
|
-
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
752
|
-
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
753
|
-
404: `If a resource does not exist`,
|
|
754
|
-
500: `Internal Server Error`,
|
|
755
|
-
},
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
679
|
/**
|
|
759
680
|
* Resolve template hierarchy
|
|
760
681
|
* @returns Array<DTOTemplateRead> OK
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DTOPublicSnapshotRead } from '../models/DTOPublicSnapshotRead';
|
|
2
|
+
import type { SnapshotId } from '../models/SnapshotId';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class PublicService {
|
|
5
|
+
/**
|
|
6
|
+
* Fetch the publicly available snapshot information.
|
|
7
|
+
* @param snapshotId
|
|
8
|
+
* @returns DTOPublicSnapshotRead The publicly available snapshot information
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static publicSnapshotList(snapshotId: SnapshotId): CancelablePromise<DTOPublicSnapshotRead>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class PublicService {
|
|
4
|
+
/**
|
|
5
|
+
* Fetch the publicly available snapshot information.
|
|
6
|
+
* @param snapshotId
|
|
7
|
+
* @returns DTOPublicSnapshotRead The publicly available snapshot information
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static publicSnapshotList(snapshotId) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: '/public/snapshot/{snapshotId}',
|
|
14
|
+
path: {
|
|
15
|
+
'snapshotId': snapshotId,
|
|
16
|
+
},
|
|
17
|
+
errors: {
|
|
18
|
+
400: `If the payload is malformed`,
|
|
19
|
+
401: `When the client is not authorised`,
|
|
20
|
+
403: `When the snapshot is missing from the requests context`,
|
|
21
|
+
404: `If a resource does not exist`,
|
|
22
|
+
500: `When an unexpected error occurs`,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
2
|
+
import type { DTOPublicSnapshotRead } from '../models/DTOPublicSnapshotRead';
|
|
2
3
|
import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
|
|
3
4
|
import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
|
|
4
5
|
import type { Pagination } from '../models/Pagination';
|
|
5
6
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
6
7
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
8
|
export declare class SnapshotService {
|
|
9
|
+
/**
|
|
10
|
+
* Fetch the publicly available snapshot information.
|
|
11
|
+
* @param snapshotId
|
|
12
|
+
* @returns DTOPublicSnapshotRead The publicly available snapshot information
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static publicSnapshotList(snapshotId: SnapshotId): CancelablePromise<DTOPublicSnapshotRead>;
|
|
8
16
|
/**
|
|
9
17
|
* Create a Snapshot
|
|
10
18
|
* Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI';
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class SnapshotService {
|
|
4
|
+
/**
|
|
5
|
+
* Fetch the publicly available snapshot information.
|
|
6
|
+
* @param snapshotId
|
|
7
|
+
* @returns DTOPublicSnapshotRead The publicly available snapshot information
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static publicSnapshotList(snapshotId) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: '/public/snapshot/{snapshotId}',
|
|
14
|
+
path: {
|
|
15
|
+
'snapshotId': snapshotId,
|
|
16
|
+
},
|
|
17
|
+
errors: {
|
|
18
|
+
400: `If the payload is malformed`,
|
|
19
|
+
401: `When the client is not authorised`,
|
|
20
|
+
403: `When the snapshot is missing from the requests context`,
|
|
21
|
+
404: `If a resource does not exist`,
|
|
22
|
+
500: `When an unexpected error occurs`,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
4
26
|
/**
|
|
5
27
|
* Create a Snapshot
|
|
6
28
|
* Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
|
|
@@ -4,7 +4,7 @@ export declare const fetchComponents: () => Promise<{
|
|
|
4
4
|
revisions: DTOComponentRead[];
|
|
5
5
|
id: import("../../api/generated/core").ComponentId;
|
|
6
6
|
orgId: import("../../api/generated/core").OrgId;
|
|
7
|
-
tripId?: import("../../api/generated/core").
|
|
7
|
+
tripId?: import("../../api/generated/core").TripId;
|
|
8
8
|
templateId: import("../../api/generated/core").TemplateId;
|
|
9
9
|
revisionGroupId: import("../../api/generated/core").ComponentRevisionGroupId;
|
|
10
10
|
revision: number;
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
swoopId: string;
|
|
8
|
-
portrait?: string;
|
|
9
|
-
avatar?: string;
|
|
10
|
-
banner?: string;
|
|
11
|
-
bio?: 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
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
swoopId: string;
|
|
11
|
-
metadata: Metadata;
|
|
12
|
-
portrait: string;
|
|
13
|
-
avatar: string;
|
|
14
|
-
banner: string;
|
|
15
|
-
bio: string;
|
|
16
|
-
name: string;
|
|
17
|
-
fullName: string;
|
|
18
|
-
media: Media;
|
|
19
|
-
info: SwooperInfo;
|
|
20
|
-
personal: SwooperPersonalInfo;
|
|
21
|
-
experience: SwooperExperience;
|
|
22
|
-
contact: SwoopContactInfo;
|
|
23
|
-
customerReviews: Array<string>;
|
|
24
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
swoopId: string;
|
|
11
|
-
metadata: Metadata;
|
|
12
|
-
portrait?: string;
|
|
13
|
-
avatar?: string;
|
|
14
|
-
banner?: string;
|
|
15
|
-
bio?: string;
|
|
16
|
-
name: string;
|
|
17
|
-
fullName: string;
|
|
18
|
-
media: Media;
|
|
19
|
-
info: SwooperInfo;
|
|
20
|
-
personal: SwooperPersonalInfo;
|
|
21
|
-
experience: SwooperExperience;
|
|
22
|
-
contact: SwoopContactInfo;
|
|
23
|
-
customerReviews: Array<string>;
|
|
24
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
portrait?: string;
|
|
8
|
-
avatar?: string;
|
|
9
|
-
banner?: string;
|
|
10
|
-
bio?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
fullName?: string;
|
|
13
|
-
media?: Media;
|
|
14
|
-
info?: SwooperInfo;
|
|
15
|
-
personal?: SwooperPersonalInfo;
|
|
16
|
-
experience?: SwooperExperience;
|
|
17
|
-
contact?: SwoopContactInfo;
|
|
18
|
-
customerReviews?: Array<string>;
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SwooperId = string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { DTOSwooperCreate } from '../models/DTOSwooperCreate';
|
|
2
|
-
import type { DTOSwooperRead } from '../models/DTOSwooperRead';
|
|
3
|
-
import type { DTOSwooperUpdate } from '../models/DTOSwooperUpdate';
|
|
4
|
-
import type { DTOTemplateRead } from '../models/DTOTemplateRead';
|
|
5
|
-
import type { Pagination } from '../models/Pagination';
|
|
6
|
-
import type { SwooperId } from '../models/SwooperId';
|
|
7
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
-
export declare class SwooperService {
|
|
9
|
-
/**
|
|
10
|
-
* List Swoopers
|
|
11
|
-
* List all swoopers
|
|
12
|
-
* @param page Pagination, starting at page 1
|
|
13
|
-
* @param limit Number of items per page
|
|
14
|
-
* @param order Order the sort query parameter values either by ascending or descending order
|
|
15
|
-
* @param sort List of fields to sort by, this requires the order query param
|
|
16
|
-
* @param search The search strings to apply to the on query parameter values
|
|
17
|
-
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
18
|
-
* @returns any Paginated response of swoopers
|
|
19
|
-
* @throws ApiError
|
|
20
|
-
*/
|
|
21
|
-
static swooperList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
22
|
-
pagination?: Pagination;
|
|
23
|
-
data?: Array<DTOTemplateRead>;
|
|
24
|
-
}>;
|
|
25
|
-
/**
|
|
26
|
-
* Create Swooper
|
|
27
|
-
* Create a Swooper
|
|
28
|
-
* @param requestBody
|
|
29
|
-
* @returns DTOSwooperRead OK
|
|
30
|
-
* @throws ApiError
|
|
31
|
-
*/
|
|
32
|
-
static swooperCreate(requestBody?: DTOSwooperCreate): CancelablePromise<DTOSwooperRead>;
|
|
33
|
-
/**
|
|
34
|
-
* Get Swooper
|
|
35
|
-
* Get Swooper via ID
|
|
36
|
-
* @param swooperId Swooper Id
|
|
37
|
-
* @returns any The corresponding Swooper that matches their Swooper id
|
|
38
|
-
* @throws ApiError
|
|
39
|
-
*/
|
|
40
|
-
static swooperGet(swooperId: SwooperId): CancelablePromise<any>;
|
|
41
|
-
/**
|
|
42
|
-
* Update Swooper
|
|
43
|
-
* Update Swooper via ID
|
|
44
|
-
* @param swooperId Swooper Id
|
|
45
|
-
* @param requestBody
|
|
46
|
-
* @returns any The corresponding Swooper that matches their Swooper id
|
|
47
|
-
* @throws ApiError
|
|
48
|
-
*/
|
|
49
|
-
static swooperUpdate(swooperId: SwooperId, requestBody: DTOSwooperUpdate): CancelablePromise<any>;
|
|
50
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
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 Paginated response of swoopers
|
|
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 payload is malformed`,
|
|
30
|
-
401: `When the client is not authorised`,
|
|
31
|
-
500: `When an unexpected error occurs`,
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Create Swooper
|
|
37
|
-
* Create a Swooper
|
|
38
|
-
* @param requestBody
|
|
39
|
-
* @returns DTOSwooperRead OK
|
|
40
|
-
* @throws ApiError
|
|
41
|
-
*/
|
|
42
|
-
static swooperCreate(requestBody) {
|
|
43
|
-
return __request(OpenAPI, {
|
|
44
|
-
method: 'POST',
|
|
45
|
-
url: '/swooper',
|
|
46
|
-
body: requestBody,
|
|
47
|
-
mediaType: 'application/json',
|
|
48
|
-
errors: {
|
|
49
|
-
400: `If the payload is malformed`,
|
|
50
|
-
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
51
|
-
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
52
|
-
500: `Internal Server Error`,
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Get Swooper
|
|
58
|
-
* Get Swooper via ID
|
|
59
|
-
* @param swooperId Swooper Id
|
|
60
|
-
* @returns any The corresponding Swooper that matches their Swooper id
|
|
61
|
-
* @throws ApiError
|
|
62
|
-
*/
|
|
63
|
-
static swooperGet(swooperId) {
|
|
64
|
-
return __request(OpenAPI, {
|
|
65
|
-
method: 'GET',
|
|
66
|
-
url: '/swooper/{swooperId}',
|
|
67
|
-
path: {
|
|
68
|
-
'swooperId': swooperId,
|
|
69
|
-
},
|
|
70
|
-
errors: {
|
|
71
|
-
400: `If the payload is malformed`,
|
|
72
|
-
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
73
|
-
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
74
|
-
404: `If a resource does not exist`,
|
|
75
|
-
500: `Internal Server Error`,
|
|
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
|
-
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
100
|
-
404: `If a resource does not exist`,
|
|
101
|
-
500: `Internal Server Error`,
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/dist/api/generated/core/models/{DTOSwooperRead.js → PublicSnapShotEnquiryStatus.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|