swoop-common 2.1.63 → 2.1.65
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 +2 -0
- package/dist/api/generated/core/index.d.ts +2 -0
- package/dist/api/generated/core/models/Branches.d.ts +2 -0
- package/dist/api/generated/core/models/tag.d.ts +4 -0
- package/dist/api/generated/core/models/tag.js +1 -0
- package/dist/api/generated/core/models/version.d.ts +4 -0
- package/dist/api/generated/core/models/version.js +1 -0
- package/dist/api/generated/itinerary/index.d.ts +2 -0
- package/dist/api/generated/itinerary/models/Branches.d.ts +2 -0
- package/dist/api/generated/itinerary/models/tag.d.ts +4 -0
- package/dist/api/generated/itinerary/models/tag.js +1 -0
- package/dist/api/generated/itinerary/models/version.d.ts +4 -0
- package/dist/api/generated/itinerary/models/version.js +1 -0
- package/dist/api/generated/itinerary/services/ItineraryService.d.ts +49 -35
- package/dist/api/generated/itinerary/services/ItineraryService.js +87 -62
- package/dist/api/generated/itinerary/services/RegionService.js +2 -2
- package/dist/api/generated/itinerary/services/SnapshotService.d.ts +13 -11
- package/dist/api/generated/itinerary/services/SnapshotService.js +8 -14
- package/package.json +1 -1
|
@@ -72,6 +72,7 @@ export type { search } from './index';
|
|
|
72
72
|
export type { SnapshotId } from './index';
|
|
73
73
|
export type { snapshotIdParam } from './index';
|
|
74
74
|
export type { sortParam } from './index';
|
|
75
|
+
export type { tag } from './index';
|
|
75
76
|
export type { TemplateId } from './index';
|
|
76
77
|
export type { templateIdParam } from './index';
|
|
77
78
|
export type { TemplateRevisionGroupId } from './index';
|
|
@@ -79,3 +80,4 @@ export type { Title } from './index';
|
|
|
79
80
|
export { UrgencyCTA } from './index';
|
|
80
81
|
export type { UserComponentInstanceField } from './index';
|
|
81
82
|
export type { ValidationSchemas } from './index';
|
|
83
|
+
export type { version } from './index';
|
|
@@ -74,6 +74,7 @@ export type { search } from './models/search';
|
|
|
74
74
|
export type { SnapshotId } from './models/SnapshotId';
|
|
75
75
|
export type { snapshotIdParam } from './models/snapshotIdParam';
|
|
76
76
|
export type { sortParam } from './models/sortParam';
|
|
77
|
+
export type { tag } from './models/tag';
|
|
77
78
|
export type { TemplateId } from './models/TemplateId';
|
|
78
79
|
export type { templateIdParam } from './models/templateIdParam';
|
|
79
80
|
export type { TemplateRevisionGroupId } from './models/TemplateRevisionGroupId';
|
|
@@ -81,6 +82,7 @@ export type { Title } from './models/Title';
|
|
|
81
82
|
export { UrgencyCTA } from './models/UrgencyCTA';
|
|
82
83
|
export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
|
|
83
84
|
export type { ValidationSchemas } from './models/ValidationSchemas';
|
|
85
|
+
export type { version } from './models/version';
|
|
84
86
|
export { ComponentService } from './services/ComponentService';
|
|
85
87
|
export { CoreService } from './services/CoreService';
|
|
86
88
|
export { TemplateService } from './services/TemplateService';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { BranchTag } from './BranchTag';
|
|
2
2
|
import type { EnquiryId } from './EnquiryId';
|
|
3
3
|
import type { ItineraryId } from './ItineraryId';
|
|
4
|
+
import type { Metadata } from './Metadata';
|
|
4
5
|
export type Branches = {
|
|
5
6
|
enquiryId: EnquiryId;
|
|
6
7
|
tag: BranchTag;
|
|
7
8
|
version: number;
|
|
8
9
|
itineraryId: ItineraryId;
|
|
10
|
+
metadata: Metadata;
|
|
9
11
|
children: Array<Branches>;
|
|
10
12
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -74,6 +74,7 @@ export type { search } from './models/search';
|
|
|
74
74
|
export type { SnapshotId } from './models/SnapshotId';
|
|
75
75
|
export type { snapshotIdParam } from './models/snapshotIdParam';
|
|
76
76
|
export type { sortParam } from './models/sortParam';
|
|
77
|
+
export type { tag } from './models/tag';
|
|
77
78
|
export type { TemplateId } from './models/TemplateId';
|
|
78
79
|
export type { templateIdParam } from './models/templateIdParam';
|
|
79
80
|
export type { TemplateRevisionGroupId } from './models/TemplateRevisionGroupId';
|
|
@@ -81,6 +82,7 @@ export type { Title } from './models/Title';
|
|
|
81
82
|
export { UrgencyCTA } from './models/UrgencyCTA';
|
|
82
83
|
export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
|
|
83
84
|
export type { ValidationSchemas } from './models/ValidationSchemas';
|
|
85
|
+
export type { version } from './models/version';
|
|
84
86
|
export { AuditService } from './services/AuditService';
|
|
85
87
|
export { ItineraryService } from './services/ItineraryService';
|
|
86
88
|
export { RegionService } from './services/RegionService';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { BranchTag } from './BranchTag';
|
|
2
2
|
import type { EnquiryId } from './EnquiryId';
|
|
3
3
|
import type { ItineraryId } from './ItineraryId';
|
|
4
|
+
import type { Metadata } from './Metadata';
|
|
4
5
|
export type Branches = {
|
|
5
6
|
enquiryId: EnquiryId;
|
|
6
7
|
tag: BranchTag;
|
|
7
8
|
version: number;
|
|
8
9
|
itineraryId: ItineraryId;
|
|
10
|
+
metadata: Metadata;
|
|
9
11
|
children: Array<Branches>;
|
|
10
12
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Branches } from '../models/Branches';
|
|
1
2
|
import type { DTOItineraryCreate } from '../models/DTOItineraryCreate';
|
|
2
3
|
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
3
4
|
import type { DTOItineraryUpdate } from '../models/DTOItineraryUpdate';
|
|
@@ -28,18 +29,14 @@ export declare class ItineraryService {
|
|
|
28
29
|
*/
|
|
29
30
|
snapshotCreate(requestBody: DTOSnapshotCreate): CancelablePromise<DTOSnapshotRead>;
|
|
30
31
|
/**
|
|
31
|
-
* List Snapshots
|
|
32
|
-
* List all available snapshots
|
|
32
|
+
* List Snapshots relating to a specific enquiry id
|
|
33
|
+
* List all available snapshots relating to a specific enquiry id
|
|
33
34
|
* @param enquiryId Enquiry Id
|
|
34
|
-
* @param page Pagination, starting at page 1
|
|
35
|
-
* @param limit Number of items per page
|
|
36
|
-
* @param sort List of fields to sort by
|
|
37
35
|
* @returns any The list of all snapshots given the parameters used
|
|
38
36
|
* @throws ApiError
|
|
39
37
|
*/
|
|
40
|
-
snapshotList(enquiryId: string
|
|
41
|
-
|
|
42
|
-
pagination?: Pagination;
|
|
38
|
+
snapshotList(enquiryId: string): CancelablePromise<{
|
|
39
|
+
snapshots?: Array<DTOSnapshotRead>;
|
|
43
40
|
}>;
|
|
44
41
|
/**
|
|
45
42
|
* Get Snapshot va ID
|
|
@@ -48,7 +45,10 @@ export declare class ItineraryService {
|
|
|
48
45
|
* @returns any OK
|
|
49
46
|
* @throws ApiError
|
|
50
47
|
*/
|
|
51
|
-
snapshotGet(snapshotId: SnapshotId): CancelablePromise<
|
|
48
|
+
snapshotGet(snapshotId: SnapshotId): CancelablePromise<{
|
|
49
|
+
snapshot?: DTOSnapshotRead;
|
|
50
|
+
itinerary?: DTOItineraryRead;
|
|
51
|
+
}>;
|
|
52
52
|
/**
|
|
53
53
|
* Delete Snapshot via ID
|
|
54
54
|
* Deletes a specific snapshot given its Id
|
|
@@ -64,55 +64,69 @@ export declare class ItineraryService {
|
|
|
64
64
|
* @returns any When a snapshot is restored as the latest version
|
|
65
65
|
* @throws ApiError
|
|
66
66
|
*/
|
|
67
|
-
snapshotRestore(snapshotId: SnapshotId): CancelablePromise<
|
|
67
|
+
snapshotRestore(snapshotId: SnapshotId): CancelablePromise<{
|
|
68
|
+
snapshot?: DTOSnapshotRead;
|
|
69
|
+
itinerary?: DTOItineraryRead;
|
|
70
|
+
}>;
|
|
68
71
|
/**
|
|
69
|
-
* List Itineraries
|
|
70
|
-
* List all itineraries
|
|
71
|
-
* @param
|
|
72
|
-
* @
|
|
73
|
-
* @param search Search term
|
|
74
|
-
* @param sort List of fields to sort by
|
|
75
|
-
* @param enquiryId Filter itineraries via enquiryId
|
|
76
|
-
* @returns any The list of all itineraries given the parameters used
|
|
72
|
+
* List Tree view of Itineraries
|
|
73
|
+
* List all itineraries in a tree view for a specific enquiry id
|
|
74
|
+
* @param enquiryId Enquiry Id
|
|
75
|
+
* @returns any The tree list view of all itineraries given the parameters used
|
|
77
76
|
* @throws ApiError
|
|
78
77
|
*/
|
|
79
|
-
itineraryList(
|
|
80
|
-
|
|
81
|
-
pagination?: Pagination;
|
|
78
|
+
itineraryList(enquiryId: string): CancelablePromise<{
|
|
79
|
+
tree?: Array<Branches>;
|
|
82
80
|
}>;
|
|
83
81
|
/**
|
|
84
|
-
* Create an Itinerary
|
|
85
|
-
* Creates a new itinerary
|
|
82
|
+
* Create an Itinerary on an Enquiry
|
|
83
|
+
* Creates a new itinerary on an Enquiry
|
|
84
|
+
* @param enquiryId Enquiry Id
|
|
86
85
|
* @param requestBody
|
|
87
86
|
* @returns DTOItineraryRead When a itinerary is created
|
|
88
87
|
* @throws ApiError
|
|
89
88
|
*/
|
|
90
|
-
itineraryCreate(requestBody: DTOItineraryCreate): CancelablePromise<DTOItineraryRead>;
|
|
89
|
+
itineraryCreate(enquiryId: string, requestBody: DTOItineraryCreate): CancelablePromise<DTOItineraryRead>;
|
|
91
90
|
/**
|
|
92
91
|
* Get Itinerary
|
|
93
92
|
* Get itinerary via ID
|
|
94
|
-
* @param
|
|
95
|
-
* @
|
|
93
|
+
* @param enquiryId Enquiry Id
|
|
94
|
+
* @param tag the branch tag
|
|
95
|
+
* @param version the version of a branch
|
|
96
|
+
* @returns any The corresponding itinerary that matches the enquiry id, tag, and version
|
|
96
97
|
* @throws ApiError
|
|
97
98
|
*/
|
|
98
|
-
itineraryGet(
|
|
99
|
+
itineraryGet(enquiryId: string, tag: string, version: string): CancelablePromise<any>;
|
|
99
100
|
/**
|
|
100
101
|
* Update Itinerary as New Revision
|
|
101
|
-
* Updates an itinerary as a new revision
|
|
102
|
-
* @param
|
|
102
|
+
* Updates an itinerary as a new revision on the latest version of a branch
|
|
103
|
+
* @param enquiryId Enquiry Id
|
|
104
|
+
* @param tag the branch tag
|
|
103
105
|
* @param requestBody
|
|
104
106
|
* @returns DTOItineraryRead When a new revision is created successfully
|
|
105
107
|
* @throws ApiError
|
|
106
108
|
*/
|
|
107
|
-
itineraryUpdateAsNewRevision(
|
|
109
|
+
itineraryUpdateAsNewRevision(enquiryId: string, tag: string, requestBody: DTOItineraryUpdate): CancelablePromise<DTOItineraryRead>;
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* @param
|
|
112
|
-
* @
|
|
111
|
+
* Fork an Itinerary
|
|
112
|
+
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version)
|
|
113
|
+
* @param enquiryId Enquiry Id
|
|
114
|
+
* @param tag the branch tag
|
|
115
|
+
* @param version the version of a branch
|
|
116
|
+
* @returns DTOItineraryRead When the fork was successful
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
forkItinerary(enquiryId: string, tag: string, version: string): CancelablePromise<DTOItineraryRead>;
|
|
120
|
+
/**
|
|
121
|
+
* Promote an Itinerary
|
|
122
|
+
* This will take itinerary that matches the enquiry id, tag, and version to create a new revision on the head of it's parent branch. This will delete the old sub branch that is being promoted as will exist as the new main head of its parent. Promotions of any tag will always promote into the main branch.
|
|
123
|
+
* @param enquiryId Enquiry Id
|
|
124
|
+
* @param tag the branch tag
|
|
125
|
+
* @param version the version of a branch
|
|
126
|
+
* @returns DTOItineraryRead The new head of the parent branch
|
|
113
127
|
* @throws ApiError
|
|
114
128
|
*/
|
|
115
|
-
|
|
129
|
+
promoteItinerary(enquiryId: string, tag: string, version: string): CancelablePromise<DTOItineraryRead>;
|
|
116
130
|
/**
|
|
117
131
|
* Sync Itinerary
|
|
118
132
|
* Sync an itinerary with swoop
|
|
@@ -35,7 +35,7 @@ export class ItineraryService {
|
|
|
35
35
|
snapshotCreate(requestBody) {
|
|
36
36
|
return __request(OpenAPI, {
|
|
37
37
|
method: 'POST',
|
|
38
|
-
url: '/
|
|
38
|
+
url: '/snapshot',
|
|
39
39
|
body: requestBody,
|
|
40
40
|
mediaType: 'application/json',
|
|
41
41
|
errors: {
|
|
@@ -47,23 +47,17 @@ export class ItineraryService {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* List Snapshots
|
|
51
|
-
* List all available snapshots
|
|
50
|
+
* List Snapshots relating to a specific enquiry id
|
|
51
|
+
* List all available snapshots relating to a specific enquiry id
|
|
52
52
|
* @param enquiryId Enquiry Id
|
|
53
|
-
* @param page Pagination, starting at page 1
|
|
54
|
-
* @param limit Number of items per page
|
|
55
|
-
* @param sort List of fields to sort by
|
|
56
53
|
* @returns any The list of all snapshots given the parameters used
|
|
57
54
|
* @throws ApiError
|
|
58
55
|
*/
|
|
59
|
-
snapshotList(enquiryId
|
|
56
|
+
snapshotList(enquiryId) {
|
|
60
57
|
return __request(OpenAPI, {
|
|
61
58
|
method: 'GET',
|
|
62
|
-
url: '/
|
|
59
|
+
url: '/snapshot/view/{enquiryId}',
|
|
63
60
|
query: {
|
|
64
|
-
'page': page,
|
|
65
|
-
'limit': limit,
|
|
66
|
-
'sort': sort,
|
|
67
61
|
'enquiryId': enquiryId,
|
|
68
62
|
},
|
|
69
63
|
errors: {
|
|
@@ -84,7 +78,7 @@ export class ItineraryService {
|
|
|
84
78
|
snapshotGet(snapshotId) {
|
|
85
79
|
return __request(OpenAPI, {
|
|
86
80
|
method: 'GET',
|
|
87
|
-
url: '/
|
|
81
|
+
url: '/snapshot/{snapshotId}',
|
|
88
82
|
path: {
|
|
89
83
|
'snapshotId': snapshotId,
|
|
90
84
|
},
|
|
@@ -105,7 +99,7 @@ export class ItineraryService {
|
|
|
105
99
|
snapshotDelete(snapshotId) {
|
|
106
100
|
return __request(OpenAPI, {
|
|
107
101
|
method: 'DELETE',
|
|
108
|
-
url: '/
|
|
102
|
+
url: '/snapshot/{snapshotId}',
|
|
109
103
|
path: {
|
|
110
104
|
'snapshotId': snapshotId,
|
|
111
105
|
},
|
|
@@ -127,7 +121,7 @@ export class ItineraryService {
|
|
|
127
121
|
snapshotRestore(snapshotId) {
|
|
128
122
|
return __request(OpenAPI, {
|
|
129
123
|
method: 'PUT',
|
|
130
|
-
url: '/
|
|
124
|
+
url: '/snapshot/restore/{snapshotId}',
|
|
131
125
|
path: {
|
|
132
126
|
'snapshotId': snapshotId,
|
|
133
127
|
},
|
|
@@ -141,25 +135,17 @@ export class ItineraryService {
|
|
|
141
135
|
});
|
|
142
136
|
}
|
|
143
137
|
/**
|
|
144
|
-
* List Itineraries
|
|
145
|
-
* List all itineraries
|
|
146
|
-
* @param
|
|
147
|
-
* @
|
|
148
|
-
* @param search Search term
|
|
149
|
-
* @param sort List of fields to sort by
|
|
150
|
-
* @param enquiryId Filter itineraries via enquiryId
|
|
151
|
-
* @returns any The list of all itineraries given the parameters used
|
|
138
|
+
* List Tree view of Itineraries
|
|
139
|
+
* List all itineraries in a tree view for a specific enquiry id
|
|
140
|
+
* @param enquiryId Enquiry Id
|
|
141
|
+
* @returns any The tree list view of all itineraries given the parameters used
|
|
152
142
|
* @throws ApiError
|
|
153
143
|
*/
|
|
154
|
-
itineraryList(
|
|
144
|
+
itineraryList(enquiryId) {
|
|
155
145
|
return __request(OpenAPI, {
|
|
156
146
|
method: 'GET',
|
|
157
|
-
url: '/
|
|
147
|
+
url: '/itinerary/{enquiryId}/tree',
|
|
158
148
|
query: {
|
|
159
|
-
'page': page,
|
|
160
|
-
'limit': limit,
|
|
161
|
-
'search': search,
|
|
162
|
-
'sort': sort,
|
|
163
149
|
'enquiryId': enquiryId,
|
|
164
150
|
},
|
|
165
151
|
errors: {
|
|
@@ -171,16 +157,20 @@ export class ItineraryService {
|
|
|
171
157
|
});
|
|
172
158
|
}
|
|
173
159
|
/**
|
|
174
|
-
* Create an Itinerary
|
|
175
|
-
* Creates a new itinerary
|
|
160
|
+
* Create an Itinerary on an Enquiry
|
|
161
|
+
* Creates a new itinerary on an Enquiry
|
|
162
|
+
* @param enquiryId Enquiry Id
|
|
176
163
|
* @param requestBody
|
|
177
164
|
* @returns DTOItineraryRead When a itinerary is created
|
|
178
165
|
* @throws ApiError
|
|
179
166
|
*/
|
|
180
|
-
itineraryCreate(requestBody) {
|
|
167
|
+
itineraryCreate(enquiryId, requestBody) {
|
|
181
168
|
return __request(OpenAPI, {
|
|
182
169
|
method: 'POST',
|
|
183
|
-
url: '/
|
|
170
|
+
url: '/itinerary/create/{enquiryId}',
|
|
171
|
+
query: {
|
|
172
|
+
'enquiryId': enquiryId,
|
|
173
|
+
},
|
|
184
174
|
body: requestBody,
|
|
185
175
|
mediaType: 'application/json',
|
|
186
176
|
errors: {
|
|
@@ -194,69 +184,104 @@ export class ItineraryService {
|
|
|
194
184
|
/**
|
|
195
185
|
* Get Itinerary
|
|
196
186
|
* Get itinerary via ID
|
|
197
|
-
* @param
|
|
198
|
-
* @
|
|
187
|
+
* @param enquiryId Enquiry Id
|
|
188
|
+
* @param tag the branch tag
|
|
189
|
+
* @param version the version of a branch
|
|
190
|
+
* @returns any The corresponding itinerary that matches the enquiry id, tag, and version
|
|
199
191
|
* @throws ApiError
|
|
200
192
|
*/
|
|
201
|
-
itineraryGet(
|
|
193
|
+
itineraryGet(enquiryId, tag, version) {
|
|
202
194
|
return __request(OpenAPI, {
|
|
203
195
|
method: 'GET',
|
|
204
|
-
url: '/
|
|
205
|
-
|
|
206
|
-
'
|
|
196
|
+
url: '/itinerary/{enquiryId}/{tag}/{version}',
|
|
197
|
+
query: {
|
|
198
|
+
'enquiryId': enquiryId,
|
|
199
|
+
'tag': tag,
|
|
200
|
+
'version': version,
|
|
207
201
|
},
|
|
208
202
|
errors: {
|
|
209
203
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
210
|
-
404: `If the itinerary does not exist`,
|
|
204
|
+
404: `If the itinerary does not exist as it does not match the enquiry id, tag, and version`,
|
|
211
205
|
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
212
206
|
},
|
|
213
207
|
});
|
|
214
208
|
}
|
|
215
209
|
/**
|
|
216
210
|
* Update Itinerary as New Revision
|
|
217
|
-
* Updates an itinerary as a new revision
|
|
218
|
-
* @param
|
|
211
|
+
* Updates an itinerary as a new revision on the latest version of a branch
|
|
212
|
+
* @param enquiryId Enquiry Id
|
|
213
|
+
* @param tag the branch tag
|
|
219
214
|
* @param requestBody
|
|
220
215
|
* @returns DTOItineraryRead When a new revision is created successfully
|
|
221
216
|
* @throws ApiError
|
|
222
217
|
*/
|
|
223
|
-
itineraryUpdateAsNewRevision(
|
|
218
|
+
itineraryUpdateAsNewRevision(enquiryId, tag, requestBody) {
|
|
224
219
|
return __request(OpenAPI, {
|
|
225
|
-
method: '
|
|
226
|
-
url: '/
|
|
227
|
-
|
|
228
|
-
'
|
|
220
|
+
method: 'PUT',
|
|
221
|
+
url: '/itinerary/{enquiryId}/{tag}',
|
|
222
|
+
query: {
|
|
223
|
+
'enquiryId': enquiryId,
|
|
224
|
+
'tag': tag,
|
|
229
225
|
},
|
|
230
226
|
body: requestBody,
|
|
231
227
|
mediaType: 'application/json',
|
|
232
228
|
errors: {
|
|
233
229
|
400: `If the payload is malformed`,
|
|
234
230
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
235
|
-
404: `When the itinerary id
|
|
231
|
+
404: `When the itinerary enquiry id and tag do not exists`,
|
|
236
232
|
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
237
|
-
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
238
233
|
},
|
|
239
234
|
});
|
|
240
235
|
}
|
|
241
236
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* @param
|
|
245
|
-
* @
|
|
237
|
+
* Fork an Itinerary
|
|
238
|
+
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version)
|
|
239
|
+
* @param enquiryId Enquiry Id
|
|
240
|
+
* @param tag the branch tag
|
|
241
|
+
* @param version the version of a branch
|
|
242
|
+
* @returns DTOItineraryRead When the fork was successful
|
|
246
243
|
* @throws ApiError
|
|
247
244
|
*/
|
|
248
|
-
|
|
245
|
+
forkItinerary(enquiryId, tag, version) {
|
|
249
246
|
return __request(OpenAPI, {
|
|
250
|
-
method: '
|
|
251
|
-
url: '/
|
|
252
|
-
|
|
253
|
-
'
|
|
247
|
+
method: 'POST',
|
|
248
|
+
url: '/itinerary/fork/{enquiryId}/{tag}/{version}',
|
|
249
|
+
query: {
|
|
250
|
+
'enquiryId': enquiryId,
|
|
251
|
+
'tag': tag,
|
|
252
|
+
'version': version,
|
|
254
253
|
},
|
|
255
254
|
errors: {
|
|
256
|
-
400: `
|
|
255
|
+
400: `If the payload is malformed`,
|
|
257
256
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
258
|
-
|
|
259
|
-
|
|
257
|
+
404: `When the itinerary enquiry id and tag do not exists`,
|
|
258
|
+
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
259
|
+
},
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Promote an Itinerary
|
|
264
|
+
* This will take itinerary that matches the enquiry id, tag, and version to create a new revision on the head of it's parent branch. This will delete the old sub branch that is being promoted as will exist as the new main head of its parent. Promotions of any tag will always promote into the main branch.
|
|
265
|
+
* @param enquiryId Enquiry Id
|
|
266
|
+
* @param tag the branch tag
|
|
267
|
+
* @param version the version of a branch
|
|
268
|
+
* @returns DTOItineraryRead The new head of the parent branch
|
|
269
|
+
* @throws ApiError
|
|
270
|
+
*/
|
|
271
|
+
promoteItinerary(enquiryId, tag, version) {
|
|
272
|
+
return __request(OpenAPI, {
|
|
273
|
+
method: 'POST',
|
|
274
|
+
url: '/itinerary/promote/{enquiryId}/{tag}/{version}',
|
|
275
|
+
query: {
|
|
276
|
+
'enquiryId': enquiryId,
|
|
277
|
+
'tag': tag,
|
|
278
|
+
'version': version,
|
|
279
|
+
},
|
|
280
|
+
errors: {
|
|
281
|
+
400: `If the payload is malformed`,
|
|
282
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
283
|
+
404: `When the itinerary enquiry id and tag do not exists`,
|
|
284
|
+
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
260
285
|
},
|
|
261
286
|
});
|
|
262
287
|
}
|
|
@@ -295,7 +320,7 @@ export class ItineraryService {
|
|
|
295
320
|
regionList(page, limit, sort) {
|
|
296
321
|
return __request(OpenAPI, {
|
|
297
322
|
method: 'GET',
|
|
298
|
-
url: '/
|
|
323
|
+
url: '/region',
|
|
299
324
|
query: {
|
|
300
325
|
'page': page,
|
|
301
326
|
'limit': limit,
|
|
@@ -319,7 +344,7 @@ export class ItineraryService {
|
|
|
319
344
|
regionCreate(requestBody) {
|
|
320
345
|
return __request(OpenAPI, {
|
|
321
346
|
method: 'POST',
|
|
322
|
-
url: '/
|
|
347
|
+
url: '/region',
|
|
323
348
|
body: requestBody,
|
|
324
349
|
mediaType: 'application/json',
|
|
325
350
|
errors: {
|
|
@@ -13,7 +13,7 @@ export class RegionService {
|
|
|
13
13
|
static regionList(page, limit, sort) {
|
|
14
14
|
return __request(OpenAPI, {
|
|
15
15
|
method: 'GET',
|
|
16
|
-
url: '/
|
|
16
|
+
url: '/region',
|
|
17
17
|
query: {
|
|
18
18
|
'page': page,
|
|
19
19
|
'limit': limit,
|
|
@@ -37,7 +37,7 @@ export class RegionService {
|
|
|
37
37
|
static regionCreate(requestBody) {
|
|
38
38
|
return __request(OpenAPI, {
|
|
39
39
|
method: 'POST',
|
|
40
|
-
url: '/
|
|
40
|
+
url: '/region',
|
|
41
41
|
body: requestBody,
|
|
42
42
|
mediaType: 'application/json',
|
|
43
43
|
errors: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
1
2
|
import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
|
|
2
3
|
import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
|
|
3
|
-
import type { Pagination } from '../models/Pagination';
|
|
4
4
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
5
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
6
|
export declare class SnapshotService {
|
|
@@ -13,18 +13,14 @@ export declare class SnapshotService {
|
|
|
13
13
|
*/
|
|
14
14
|
static snapshotCreate(requestBody: DTOSnapshotCreate): CancelablePromise<DTOSnapshotRead>;
|
|
15
15
|
/**
|
|
16
|
-
* List Snapshots
|
|
17
|
-
* List all available snapshots
|
|
16
|
+
* List Snapshots relating to a specific enquiry id
|
|
17
|
+
* List all available snapshots relating to a specific enquiry id
|
|
18
18
|
* @param enquiryId Enquiry Id
|
|
19
|
-
* @param page Pagination, starting at page 1
|
|
20
|
-
* @param limit Number of items per page
|
|
21
|
-
* @param sort List of fields to sort by
|
|
22
19
|
* @returns any The list of all snapshots given the parameters used
|
|
23
20
|
* @throws ApiError
|
|
24
21
|
*/
|
|
25
|
-
static snapshotList(enquiryId: string
|
|
26
|
-
|
|
27
|
-
pagination?: Pagination;
|
|
22
|
+
static snapshotList(enquiryId: string): CancelablePromise<{
|
|
23
|
+
snapshots?: Array<DTOSnapshotRead>;
|
|
28
24
|
}>;
|
|
29
25
|
/**
|
|
30
26
|
* Get Snapshot va ID
|
|
@@ -33,7 +29,10 @@ export declare class SnapshotService {
|
|
|
33
29
|
* @returns any OK
|
|
34
30
|
* @throws ApiError
|
|
35
31
|
*/
|
|
36
|
-
static snapshotGet(snapshotId: SnapshotId): CancelablePromise<
|
|
32
|
+
static snapshotGet(snapshotId: SnapshotId): CancelablePromise<{
|
|
33
|
+
snapshot?: DTOSnapshotRead;
|
|
34
|
+
itinerary?: DTOItineraryRead;
|
|
35
|
+
}>;
|
|
37
36
|
/**
|
|
38
37
|
* Delete Snapshot via ID
|
|
39
38
|
* Deletes a specific snapshot given its Id
|
|
@@ -49,5 +48,8 @@ export declare class SnapshotService {
|
|
|
49
48
|
* @returns any When a snapshot is restored as the latest version
|
|
50
49
|
* @throws ApiError
|
|
51
50
|
*/
|
|
52
|
-
static snapshotRestore(snapshotId: SnapshotId): CancelablePromise<
|
|
51
|
+
static snapshotRestore(snapshotId: SnapshotId): CancelablePromise<{
|
|
52
|
+
snapshot?: DTOSnapshotRead;
|
|
53
|
+
itinerary?: DTOItineraryRead;
|
|
54
|
+
}>;
|
|
53
55
|
}
|
|
@@ -11,7 +11,7 @@ export class SnapshotService {
|
|
|
11
11
|
static snapshotCreate(requestBody) {
|
|
12
12
|
return __request(OpenAPI, {
|
|
13
13
|
method: 'POST',
|
|
14
|
-
url: '/
|
|
14
|
+
url: '/snapshot',
|
|
15
15
|
body: requestBody,
|
|
16
16
|
mediaType: 'application/json',
|
|
17
17
|
errors: {
|
|
@@ -23,23 +23,17 @@ export class SnapshotService {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* List Snapshots
|
|
27
|
-
* List all available snapshots
|
|
26
|
+
* List Snapshots relating to a specific enquiry id
|
|
27
|
+
* List all available snapshots relating to a specific enquiry id
|
|
28
28
|
* @param enquiryId Enquiry Id
|
|
29
|
-
* @param page Pagination, starting at page 1
|
|
30
|
-
* @param limit Number of items per page
|
|
31
|
-
* @param sort List of fields to sort by
|
|
32
29
|
* @returns any The list of all snapshots given the parameters used
|
|
33
30
|
* @throws ApiError
|
|
34
31
|
*/
|
|
35
|
-
static snapshotList(enquiryId
|
|
32
|
+
static snapshotList(enquiryId) {
|
|
36
33
|
return __request(OpenAPI, {
|
|
37
34
|
method: 'GET',
|
|
38
|
-
url: '/
|
|
35
|
+
url: '/snapshot/view/{enquiryId}',
|
|
39
36
|
query: {
|
|
40
|
-
'page': page,
|
|
41
|
-
'limit': limit,
|
|
42
|
-
'sort': sort,
|
|
43
37
|
'enquiryId': enquiryId,
|
|
44
38
|
},
|
|
45
39
|
errors: {
|
|
@@ -60,7 +54,7 @@ export class SnapshotService {
|
|
|
60
54
|
static snapshotGet(snapshotId) {
|
|
61
55
|
return __request(OpenAPI, {
|
|
62
56
|
method: 'GET',
|
|
63
|
-
url: '/
|
|
57
|
+
url: '/snapshot/{snapshotId}',
|
|
64
58
|
path: {
|
|
65
59
|
'snapshotId': snapshotId,
|
|
66
60
|
},
|
|
@@ -81,7 +75,7 @@ export class SnapshotService {
|
|
|
81
75
|
static snapshotDelete(snapshotId) {
|
|
82
76
|
return __request(OpenAPI, {
|
|
83
77
|
method: 'DELETE',
|
|
84
|
-
url: '/
|
|
78
|
+
url: '/snapshot/{snapshotId}',
|
|
85
79
|
path: {
|
|
86
80
|
'snapshotId': snapshotId,
|
|
87
81
|
},
|
|
@@ -103,7 +97,7 @@ export class SnapshotService {
|
|
|
103
97
|
static snapshotRestore(snapshotId) {
|
|
104
98
|
return __request(OpenAPI, {
|
|
105
99
|
method: 'PUT',
|
|
106
|
-
url: '/
|
|
100
|
+
url: '/snapshot/restore/{snapshotId}',
|
|
107
101
|
path: {
|
|
108
102
|
'snapshotId': snapshotId,
|
|
109
103
|
},
|