swoop-common 2.2.230 → 2.2.232
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 +1 -0
- package/dist/api/generated/core/index.d.ts +1 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotCreate.d.ts +4 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotEntity.d.ts +4 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotExpired.d.ts +8 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotExpired.js +1 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotRead.d.ts +4 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotUpdate.d.ts +4 -0
- package/dist/api/generated/core/models/DTOSnapshotCreate.d.ts +4 -0
- package/dist/api/generated/core/models/DTOSnapshotEntity.d.ts +4 -0
- package/dist/api/generated/core/models/DTOSnapshotRead.d.ts +4 -0
- package/dist/api/generated/core/models/DTOSnapshotUpdate.d.ts +4 -0
- package/dist/api/generated/core/services/CoreService.d.ts +10 -0
- package/dist/api/generated/core/services/CoreService.js +26 -0
- package/dist/api/generated/core/services/PublicService.js +1 -0
- package/dist/api/generated/core/services/SnapshotService.d.ts +10 -0
- package/dist/api/generated/core/services/SnapshotService.js +26 -0
- package/dist/api/generated/swoop/exports.d.ts +4 -0
- package/dist/api/generated/swoop/exports.js +2 -1
- package/dist/api/generated/swoop/index.d.ts +4 -0
- package/dist/api/generated/swoop/index.js +2 -0
- package/dist/api/generated/swoop/models/EnquirySubmission_jsonld_read.d.ts +4 -0
- package/dist/api/generated/swoop/models/EnquirySubmission_jsonld_read.js +1 -0
- package/dist/api/generated/swoop/models/EnquirySubmission_jsonld_write.d.ts +29 -0
- package/dist/api/generated/swoop/models/EnquirySubmission_jsonld_write.js +12 -0
- package/dist/api/generated/swoop/models/EnquirySubmission_read.d.ts +3 -0
- package/dist/api/generated/swoop/models/EnquirySubmission_read.js +1 -0
- package/dist/api/generated/swoop/models/EnquirySubmission_write.d.ts +29 -0
- package/dist/api/generated/swoop/models/EnquirySubmission_write.js +12 -0
- package/dist/api/generated/swoop/services/SwoopService.d.ts +10 -0
- package/dist/api/generated/swoop/services/SwoopService.js +19 -0
- package/package.json +1 -1
|
@@ -51,6 +51,7 @@ export type { DTOItineraryRead } from './index';
|
|
|
51
51
|
export type { DTOItineraryUpdate } from './index';
|
|
52
52
|
export type { DTOPublicSnapshotCreate } from './index';
|
|
53
53
|
export type { DTOPublicSnapshotEntity } from './index';
|
|
54
|
+
export type { DTOPublicSnapshotExpired } from './index';
|
|
54
55
|
export type { DTOPublicSnapshotRead } from './index';
|
|
55
56
|
export type { DTOPublicSnapshotUpdate } from './index';
|
|
56
57
|
export type { DTORegionCreate } from './index';
|
|
@@ -51,6 +51,7 @@ export type { DTOItineraryRead } from './models/DTOItineraryRead';
|
|
|
51
51
|
export type { DTOItineraryUpdate } from './models/DTOItineraryUpdate';
|
|
52
52
|
export type { DTOPublicSnapshotCreate } from './models/DTOPublicSnapshotCreate';
|
|
53
53
|
export type { DTOPublicSnapshotEntity } from './models/DTOPublicSnapshotEntity';
|
|
54
|
+
export type { DTOPublicSnapshotExpired } from './models/DTOPublicSnapshotExpired';
|
|
54
55
|
export type { DTOPublicSnapshotRead } from './models/DTOPublicSnapshotRead';
|
|
55
56
|
export type { DTOPublicSnapshotUpdate } from './models/DTOPublicSnapshotUpdate';
|
|
56
57
|
export type { DTORegionCreate } from './models/DTORegionCreate';
|
|
@@ -22,4 +22,8 @@ export type DTOPublicSnapshotCreate = {
|
|
|
22
22
|
cxPerson?: PublicSnapshotPerson;
|
|
23
23
|
isTwinCentre: IsTwinCentre;
|
|
24
24
|
payments?: Array<PublicSnapShotPayment>;
|
|
25
|
+
/**
|
|
26
|
+
* Internal only - not exposed on DTOPublicSnapshotRead. No value means the link never expires.
|
|
27
|
+
*/
|
|
28
|
+
validUntil?: string | null;
|
|
25
29
|
};
|
|
@@ -26,4 +26,8 @@ export type DTOPublicSnapshotEntity = {
|
|
|
26
26
|
cxPerson?: PublicSnapshotPerson;
|
|
27
27
|
isTwinCentre: IsTwinCentre;
|
|
28
28
|
payments?: Array<PublicSnapShotPayment>;
|
|
29
|
+
/**
|
|
30
|
+
* Internal only - not exposed on DTOPublicSnapshotRead. No value means the link never expires.
|
|
31
|
+
*/
|
|
32
|
+
validUntil?: string | null;
|
|
29
33
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
|
|
2
|
+
/**
|
|
3
|
+
* Returned instead of DTOPublicSnapshotRead when a "sales" snapshot's validUntil date has passed.
|
|
4
|
+
*/
|
|
5
|
+
export type DTOPublicSnapshotExpired = {
|
|
6
|
+
expired: boolean;
|
|
7
|
+
salesPerson?: PublicSnapshotPerson;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -26,4 +26,8 @@ export type DTOPublicSnapshotRead = {
|
|
|
26
26
|
cxPerson?: PublicSnapshotPerson;
|
|
27
27
|
isTwinCentre: IsTwinCentre;
|
|
28
28
|
payments?: Array<PublicSnapShotPayment>;
|
|
29
|
+
/**
|
|
30
|
+
* Server-internal only. ReadPublicSnapshot strips this before returning a live (non-expired) response to the client - it must never reach a customer's browser.
|
|
31
|
+
*/
|
|
32
|
+
validUntil?: string | null;
|
|
29
33
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { Title } from './Title';
|
|
2
2
|
export type DTOPublicSnapshotUpdate = {
|
|
3
3
|
name?: Title;
|
|
4
|
+
/**
|
|
5
|
+
* Only meaningful for "sales" snapshots. Send an empty string to clear (never expires); omit to leave unchanged. (A JSON null is indistinguishable from an omitted field once decoded into a Go pointer, so empty string is the actual "clear" signal here.)
|
|
6
|
+
*/
|
|
7
|
+
validUntil?: string | null;
|
|
4
8
|
};
|
|
@@ -3,4 +3,8 @@ import type { Title } from './Title';
|
|
|
3
3
|
export type DTOSnapshotUpdate = {
|
|
4
4
|
name?: Title;
|
|
5
5
|
itineraryId?: ItineraryId;
|
|
6
|
+
/**
|
|
7
|
+
* Only meaningful for "sales" snapshots. Send an empty string to clear (never expires); omit to leave unchanged. (A JSON null is indistinguishable from an omitted field once decoded into a Go pointer, so empty string is the actual "clear" signal here.)
|
|
8
|
+
*/
|
|
9
|
+
validUntil?: string | null;
|
|
6
10
|
};
|
|
@@ -22,6 +22,7 @@ import type { DTORegionCreate } from '../models/DTORegionCreate';
|
|
|
22
22
|
import type { DTORegionRead } from '../models/DTORegionRead';
|
|
23
23
|
import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
|
|
24
24
|
import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
|
|
25
|
+
import type { DTOSnapshotUpdate } from '../models/DTOSnapshotUpdate';
|
|
25
26
|
import type { DTOTemplateCreate } from '../models/DTOTemplateCreate';
|
|
26
27
|
import { DTOTemplateRead } from '../models/DTOTemplateRead';
|
|
27
28
|
import type { DTOTemplateUpdate } from '../models/DTOTemplateUpdate';
|
|
@@ -107,6 +108,15 @@ export declare class CoreService {
|
|
|
107
108
|
* @throws ApiError
|
|
108
109
|
*/
|
|
109
110
|
snapshotDelete(snapshotId: SnapshotId): CancelablePromise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Update Snapshot
|
|
113
|
+
* Updates a snapshot. Currently only used to set or clear a "sales" snapshot's validUntil date.
|
|
114
|
+
* @param snapshotId
|
|
115
|
+
* @param requestBody
|
|
116
|
+
* @returns DTOSnapshotRead When the snapshot is updated successfully
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
snapshotUpdate(snapshotId: SnapshotId, requestBody: DTOSnapshotUpdate): CancelablePromise<DTOSnapshotRead>;
|
|
110
120
|
/**
|
|
111
121
|
* Restore Snapshot
|
|
112
122
|
* Creates a new itinerary revision given the content the snapshot refers to
|
|
@@ -30,6 +30,7 @@ export class CoreService {
|
|
|
30
30
|
401: `When the client is not authorised`,
|
|
31
31
|
403: `When the snapshot is missing from the requests context`,
|
|
32
32
|
404: `If a resource does not exist`,
|
|
33
|
+
410: `When the snapshot is a "sales" document whose validUntil date has passed`,
|
|
33
34
|
500: `When an unexpected error occurs`,
|
|
34
35
|
},
|
|
35
36
|
});
|
|
@@ -178,6 +179,31 @@ export class CoreService {
|
|
|
178
179
|
},
|
|
179
180
|
});
|
|
180
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Update Snapshot
|
|
184
|
+
* Updates a snapshot. Currently only used to set or clear a "sales" snapshot's validUntil date.
|
|
185
|
+
* @param snapshotId
|
|
186
|
+
* @param requestBody
|
|
187
|
+
* @returns DTOSnapshotRead When the snapshot is updated successfully
|
|
188
|
+
* @throws ApiError
|
|
189
|
+
*/
|
|
190
|
+
snapshotUpdate(snapshotId, requestBody) {
|
|
191
|
+
return __request(OpenAPI, {
|
|
192
|
+
method: 'PATCH',
|
|
193
|
+
url: '/snapshot/{snapshotId}',
|
|
194
|
+
path: {
|
|
195
|
+
'snapshotId': snapshotId,
|
|
196
|
+
},
|
|
197
|
+
body: requestBody,
|
|
198
|
+
mediaType: 'application/json',
|
|
199
|
+
errors: {
|
|
200
|
+
400: `If the payload is malformed`,
|
|
201
|
+
401: `When the client is not authorised`,
|
|
202
|
+
404: `If a resource does not exist`,
|
|
203
|
+
500: `When an unexpected error occurs`,
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
}
|
|
181
207
|
/**
|
|
182
208
|
* Restore Snapshot
|
|
183
209
|
* Creates a new itinerary revision given the content the snapshot refers to
|
|
@@ -19,6 +19,7 @@ export class PublicService {
|
|
|
19
19
|
401: `When the client is not authorised`,
|
|
20
20
|
403: `When the snapshot is missing from the requests context`,
|
|
21
21
|
404: `If a resource does not exist`,
|
|
22
|
+
410: `When the snapshot is a "sales" document whose validUntil date has passed`,
|
|
22
23
|
500: `When an unexpected error occurs`,
|
|
23
24
|
},
|
|
24
25
|
});
|
|
@@ -2,6 +2,7 @@ import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
|
2
2
|
import type { DTOPublicSnapshotRead } from '../models/DTOPublicSnapshotRead';
|
|
3
3
|
import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
|
|
4
4
|
import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
|
|
5
|
+
import type { DTOSnapshotUpdate } from '../models/DTOSnapshotUpdate';
|
|
5
6
|
import type { Pagination } from '../models/Pagination';
|
|
6
7
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
7
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -57,6 +58,15 @@ export declare class SnapshotService {
|
|
|
57
58
|
* @throws ApiError
|
|
58
59
|
*/
|
|
59
60
|
static snapshotDelete(snapshotId: SnapshotId): CancelablePromise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Update Snapshot
|
|
63
|
+
* Updates a snapshot. Currently only used to set or clear a "sales" snapshot's validUntil date.
|
|
64
|
+
* @param snapshotId
|
|
65
|
+
* @param requestBody
|
|
66
|
+
* @returns DTOSnapshotRead When the snapshot is updated successfully
|
|
67
|
+
* @throws ApiError
|
|
68
|
+
*/
|
|
69
|
+
static snapshotUpdate(snapshotId: SnapshotId, requestBody: DTOSnapshotUpdate): CancelablePromise<DTOSnapshotRead>;
|
|
60
70
|
/**
|
|
61
71
|
* Restore Snapshot
|
|
62
72
|
* Creates a new itinerary revision given the content the snapshot refers to
|
|
@@ -19,6 +19,7 @@ export class SnapshotService {
|
|
|
19
19
|
401: `When the client is not authorised`,
|
|
20
20
|
403: `When the snapshot is missing from the requests context`,
|
|
21
21
|
404: `If a resource does not exist`,
|
|
22
|
+
410: `When the snapshot is a "sales" document whose validUntil date has passed`,
|
|
22
23
|
500: `When an unexpected error occurs`,
|
|
23
24
|
},
|
|
24
25
|
});
|
|
@@ -122,6 +123,31 @@ export class SnapshotService {
|
|
|
122
123
|
},
|
|
123
124
|
});
|
|
124
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Update Snapshot
|
|
128
|
+
* Updates a snapshot. Currently only used to set or clear a "sales" snapshot's validUntil date.
|
|
129
|
+
* @param snapshotId
|
|
130
|
+
* @param requestBody
|
|
131
|
+
* @returns DTOSnapshotRead When the snapshot is updated successfully
|
|
132
|
+
* @throws ApiError
|
|
133
|
+
*/
|
|
134
|
+
static snapshotUpdate(snapshotId, requestBody) {
|
|
135
|
+
return __request(OpenAPI, {
|
|
136
|
+
method: 'PATCH',
|
|
137
|
+
url: '/snapshot/{snapshotId}',
|
|
138
|
+
path: {
|
|
139
|
+
'snapshotId': snapshotId,
|
|
140
|
+
},
|
|
141
|
+
body: requestBody,
|
|
142
|
+
mediaType: 'application/json',
|
|
143
|
+
errors: {
|
|
144
|
+
400: `If the payload is malformed`,
|
|
145
|
+
401: `When the client is not authorised`,
|
|
146
|
+
404: `If a resource does not exist`,
|
|
147
|
+
500: `When an unexpected error occurs`,
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
}
|
|
125
151
|
/**
|
|
126
152
|
* Restore Snapshot
|
|
127
153
|
* Creates a new itinerary revision given the content the snapshot refers to
|
|
@@ -48,6 +48,10 @@ export type { EnquiryPersonSwoop } from './index';
|
|
|
48
48
|
export type { EnquiryPerson_jsonldSwoop } from './index';
|
|
49
49
|
export type { EnquiryStatusSwoop } from './index';
|
|
50
50
|
export type { EnquiryStatus_jsonldSwoop } from './index';
|
|
51
|
+
export type { EnquirySubmission_jsonld_readSwoop } from './index';
|
|
52
|
+
export { EnquirySubmission_jsonld_writeSwoop } from './index';
|
|
53
|
+
export type { EnquirySubmission_readSwoop } from './index';
|
|
54
|
+
export { EnquirySubmission_writeSwoop } from './index';
|
|
51
55
|
export type { ExchangeRateSwoop } from './index';
|
|
52
56
|
export type { ExchangeRate_jsonldSwoop } from './index';
|
|
53
57
|
export type { HydraCollectionBaseSchemaSwoop } from './index';
|
|
@@ -52,6 +52,10 @@ export type { EnquiryPerson as EnquiryPersonSwoop } from './models/EnquiryPerson
|
|
|
52
52
|
export type { EnquiryPerson_jsonld as EnquiryPerson_jsonldSwoop } from './models/EnquiryPerson_jsonld';
|
|
53
53
|
export type { EnquiryStatus as EnquiryStatusSwoop } from './models/EnquiryStatus';
|
|
54
54
|
export type { EnquiryStatus_jsonld as EnquiryStatus_jsonldSwoop } from './models/EnquiryStatus_jsonld';
|
|
55
|
+
export type { EnquirySubmission_jsonld_read as EnquirySubmission_jsonld_readSwoop } from './models/EnquirySubmission_jsonld_read';
|
|
56
|
+
export { EnquirySubmission_jsonld_write as EnquirySubmission_jsonld_writeSwoop } from './models/EnquirySubmission_jsonld_write';
|
|
57
|
+
export type { EnquirySubmission_read as EnquirySubmission_readSwoop } from './models/EnquirySubmission_read';
|
|
58
|
+
export { EnquirySubmission_write as EnquirySubmission_writeSwoop } from './models/EnquirySubmission_write';
|
|
55
59
|
export type { ExchangeRate as ExchangeRateSwoop } from './models/ExchangeRate';
|
|
56
60
|
export type { ExchangeRate_jsonld as ExchangeRate_jsonldSwoop } from './models/ExchangeRate_jsonld';
|
|
57
61
|
export type { HydraCollectionBaseSchema as HydraCollectionBaseSchemaSwoop } from './models/HydraCollectionBaseSchema';
|
|
@@ -5,4 +5,6 @@
|
|
|
5
5
|
export { ApiError } from './core/ApiError';
|
|
6
6
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
|
+
export { EnquirySubmission_jsonld_write as EnquirySubmission_jsonld_writeSwoop } from './models/EnquirySubmission_jsonld_write';
|
|
9
|
+
export { EnquirySubmission_write as EnquirySubmission_writeSwoop } from './models/EnquirySubmission_write';
|
|
8
10
|
export { SwoopService } from './services/SwoopService';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type EnquirySubmission_jsonld_write = {
|
|
2
|
+
/**
|
|
3
|
+
* The region the enquiry belongs to
|
|
4
|
+
*/
|
|
5
|
+
region: EnquirySubmission_jsonld_write.region;
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
phone?: string | null;
|
|
9
|
+
timezone?: string | null;
|
|
10
|
+
message?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* ntag aliases to tag the enquiry with
|
|
13
|
+
*/
|
|
14
|
+
tags?: Array<string>;
|
|
15
|
+
/**
|
|
16
|
+
* URL of the page the enquiry was submitted from
|
|
17
|
+
*/
|
|
18
|
+
referral_url?: string | null;
|
|
19
|
+
};
|
|
20
|
+
export declare namespace EnquirySubmission_jsonld_write {
|
|
21
|
+
/**
|
|
22
|
+
* The region the enquiry belongs to
|
|
23
|
+
*/
|
|
24
|
+
enum region {
|
|
25
|
+
ANTARCTICA = "antarctica",
|
|
26
|
+
ARCTIC = "arctic",
|
|
27
|
+
PATAGONIA = "patagonia"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var EnquirySubmission_jsonld_write;
|
|
2
|
+
(function (EnquirySubmission_jsonld_write) {
|
|
3
|
+
/**
|
|
4
|
+
* The region the enquiry belongs to
|
|
5
|
+
*/
|
|
6
|
+
let region;
|
|
7
|
+
(function (region) {
|
|
8
|
+
region["ANTARCTICA"] = "antarctica";
|
|
9
|
+
region["ARCTIC"] = "arctic";
|
|
10
|
+
region["PATAGONIA"] = "patagonia";
|
|
11
|
+
})(region = EnquirySubmission_jsonld_write.region || (EnquirySubmission_jsonld_write.region = {}));
|
|
12
|
+
})(EnquirySubmission_jsonld_write || (EnquirySubmission_jsonld_write = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type EnquirySubmission_write = {
|
|
2
|
+
/**
|
|
3
|
+
* The region the enquiry belongs to
|
|
4
|
+
*/
|
|
5
|
+
region: EnquirySubmission_write.region;
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
phone?: string | null;
|
|
9
|
+
timezone?: string | null;
|
|
10
|
+
message?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* ntag aliases to tag the enquiry with
|
|
13
|
+
*/
|
|
14
|
+
tags?: Array<string>;
|
|
15
|
+
/**
|
|
16
|
+
* URL of the page the enquiry was submitted from
|
|
17
|
+
*/
|
|
18
|
+
referral_url?: string | null;
|
|
19
|
+
};
|
|
20
|
+
export declare namespace EnquirySubmission_write {
|
|
21
|
+
/**
|
|
22
|
+
* The region the enquiry belongs to
|
|
23
|
+
*/
|
|
24
|
+
enum region {
|
|
25
|
+
ANTARCTICA = "antarctica",
|
|
26
|
+
ARCTIC = "arctic",
|
|
27
|
+
PATAGONIA = "patagonia"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var EnquirySubmission_write;
|
|
2
|
+
(function (EnquirySubmission_write) {
|
|
3
|
+
/**
|
|
4
|
+
* The region the enquiry belongs to
|
|
5
|
+
*/
|
|
6
|
+
let region;
|
|
7
|
+
(function (region) {
|
|
8
|
+
region["ANTARCTICA"] = "antarctica";
|
|
9
|
+
region["ARCTIC"] = "arctic";
|
|
10
|
+
region["PATAGONIA"] = "patagonia";
|
|
11
|
+
})(region = EnquirySubmission_write.region || (EnquirySubmission_write.region = {}));
|
|
12
|
+
})(EnquirySubmission_write || (EnquirySubmission_write = {}));
|
|
@@ -13,6 +13,8 @@ import type { DayByDayType } from '../models/DayByDayType';
|
|
|
13
13
|
import type { Departure } from '../models/Departure';
|
|
14
14
|
import type { Enquiry } from '../models/Enquiry';
|
|
15
15
|
import type { EnquiryStatus } from '../models/EnquiryStatus';
|
|
16
|
+
import type { EnquirySubmission_read } from '../models/EnquirySubmission_read';
|
|
17
|
+
import type { EnquirySubmission_write } from '../models/EnquirySubmission_write';
|
|
16
18
|
import type { ExchangeRate } from '../models/ExchangeRate';
|
|
17
19
|
import type { IbAudit_read } from '../models/IbAudit_read';
|
|
18
20
|
import type { IbAudit_write } from '../models/IbAudit_write';
|
|
@@ -234,6 +236,14 @@ export declare class SwoopService {
|
|
|
234
236
|
enquiryStatusesGetCollection(region?: string): CancelablePromise<{
|
|
235
237
|
enquiryStatuses?: Array<EnquiryStatus>;
|
|
236
238
|
}>;
|
|
239
|
+
/**
|
|
240
|
+
* Creates a EnquirySubmission resource.
|
|
241
|
+
* Creates a EnquirySubmission resource.
|
|
242
|
+
* @param requestBody The new EnquirySubmission resource
|
|
243
|
+
* @returns EnquirySubmission_read EnquirySubmission resource created
|
|
244
|
+
* @throws ApiError
|
|
245
|
+
*/
|
|
246
|
+
enquirySubmissionPost(requestBody: EnquirySubmission_write): CancelablePromise<EnquirySubmission_read>;
|
|
237
247
|
/**
|
|
238
248
|
* Retrieves the collection of ExchangeRate resources.
|
|
239
249
|
* Retrieves the collection of ExchangeRate resources.
|
|
@@ -331,6 +331,25 @@ export class SwoopService {
|
|
|
331
331
|
},
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
|
+
/**
|
|
335
|
+
* Creates a EnquirySubmission resource.
|
|
336
|
+
* Creates a EnquirySubmission resource.
|
|
337
|
+
* @param requestBody The new EnquirySubmission resource
|
|
338
|
+
* @returns EnquirySubmission_read EnquirySubmission resource created
|
|
339
|
+
* @throws ApiError
|
|
340
|
+
*/
|
|
341
|
+
enquirySubmissionPost(requestBody) {
|
|
342
|
+
return __request(OpenAPI, {
|
|
343
|
+
method: 'POST',
|
|
344
|
+
url: '/api/enquiry-submission',
|
|
345
|
+
body: requestBody,
|
|
346
|
+
mediaType: 'application/json',
|
|
347
|
+
errors: {
|
|
348
|
+
400: `Invalid input`,
|
|
349
|
+
422: `Validation Error`,
|
|
350
|
+
},
|
|
351
|
+
});
|
|
352
|
+
}
|
|
334
353
|
/**
|
|
335
354
|
* Retrieves the collection of ExchangeRate resources.
|
|
336
355
|
* Retrieves the collection of ExchangeRate resources.
|