swoop-common 2.2.21 → 2.2.31
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 +4 -0
- package/dist/api/generated/core/index.d.ts +4 -0
- package/dist/api/generated/core/models/AssignedTravellerGroup.d.ts +1 -1
- package/dist/api/generated/core/models/ComponentInstance.d.ts +2 -1
- package/dist/api/generated/core/models/DTOSwoopSync.d.ts +25 -1
- package/dist/api/generated/core/models/ItineraryCreateResponse.d.ts +8 -0
- package/dist/api/generated/core/models/ItineraryCreateResponse.js +1 -0
- package/dist/api/generated/core/models/SwoopSyncComponentInstance.d.ts +31 -0
- package/dist/api/generated/core/models/SwoopSyncComponentInstance.js +1 -0
- package/dist/api/generated/core/models/SwoopSyncError.d.ts +5 -0
- package/dist/api/generated/core/models/SwoopSyncError.js +1 -0
- package/dist/api/generated/core/models/SwoopSyncErrorMsg.d.ts +4 -0
- package/dist/api/generated/core/models/SwoopSyncErrorMsg.js +1 -0
- package/dist/api/generated/core/services/CoreService.d.ts +5 -8
- package/dist/api/generated/core/services/CoreService.js +6 -7
- package/dist/api/generated/core/services/ItineraryService.d.ts +5 -8
- package/dist/api/generated/core/services/ItineraryService.js +6 -7
- package/dist/api/generated/itinerary/core/ApiError.d.ts +10 -0
- package/dist/api/generated/itinerary/core/ApiError.js +11 -0
- package/dist/api/generated/itinerary/core/ApiRequestOptions.d.ts +13 -0
- package/dist/api/generated/itinerary/core/ApiRequestOptions.js +1 -0
- package/dist/api/generated/itinerary/core/ApiResult.d.ts +7 -0
- package/dist/api/generated/itinerary/core/ApiResult.js +1 -0
- package/dist/api/generated/itinerary/core/CancelablePromise.d.ts +20 -0
- package/dist/api/generated/itinerary/core/CancelablePromise.js +111 -0
- package/dist/api/generated/itinerary/core/OpenAPI.d.ts +16 -0
- package/dist/api/generated/itinerary/core/OpenAPI.js +11 -0
- package/dist/api/generated/itinerary/core/request.d.ts +30 -0
- package/dist/api/generated/itinerary/core/request.js +271 -0
- package/dist/api/generated/itinerary/exports.d.ts +0 -0
- package/dist/api/generated/itinerary/exports.js +2 -0
- package/dist/api/generated/itinerary/index.d.ts +103 -0
- package/dist/api/generated/itinerary/index.js +19 -0
- package/dist/api/generated/itinerary/models/Amendment.d.ts +8 -0
- package/dist/api/generated/itinerary/models/Amendment.js +1 -0
- package/dist/api/generated/itinerary/models/AssignedPassenger.d.ts +7 -0
- package/dist/api/generated/itinerary/models/AssignedPassenger.js +1 -0
- package/dist/api/generated/itinerary/models/AssignedTravellerGroup.d.ts +6 -0
- package/dist/api/generated/itinerary/models/AssignedTravellerGroup.js +1 -0
- package/dist/api/generated/itinerary/models/B64StringQueryParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/B64StringQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/BookingStatus.d.ts +7 -0
- package/dist/api/generated/itinerary/models/BookingStatus.js +12 -0
- package/dist/api/generated/itinerary/models/BranchId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/BranchId.js +1 -0
- package/dist/api/generated/itinerary/models/BranchTag.d.ts +1 -0
- package/dist/api/generated/itinerary/models/BranchTag.js +1 -0
- package/dist/api/generated/itinerary/models/Branches.d.ts +12 -0
- package/dist/api/generated/itinerary/models/Branches.js +1 -0
- package/dist/api/generated/itinerary/models/ComponentDescription.d.ts +5 -0
- package/dist/api/generated/itinerary/models/ComponentDescription.js +1 -0
- package/dist/api/generated/itinerary/models/ComponentFAQ.d.ts +4 -0
- package/dist/api/generated/itinerary/models/ComponentFAQ.js +1 -0
- package/dist/api/generated/itinerary/models/ComponentId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/ComponentId.js +1 -0
- package/dist/api/generated/itinerary/models/ComponentIdPathParam.d.ts +5 -0
- package/dist/api/generated/itinerary/models/ComponentIdPathParam.js +1 -0
- package/dist/api/generated/itinerary/models/ComponentInstance.d.ts +28 -0
- package/dist/api/generated/itinerary/models/ComponentInstance.js +1 -0
- package/dist/api/generated/itinerary/models/ComponentNotes.d.ts +9 -0
- package/dist/api/generated/itinerary/models/ComponentNotes.js +1 -0
- package/dist/api/generated/itinerary/models/ComponentRevisionGroupId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/ComponentRevisionGroupId.js +1 -0
- package/dist/api/generated/itinerary/models/ComponentState.d.ts +5 -0
- package/dist/api/generated/itinerary/models/ComponentState.js +10 -0
- package/dist/api/generated/itinerary/models/Currency.d.ts +12 -0
- package/dist/api/generated/itinerary/models/Currency.js +17 -0
- package/dist/api/generated/itinerary/models/DTOBranchCreate.d.ts +8 -0
- package/dist/api/generated/itinerary/models/DTOBranchCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOBranchEntity.d.ts +11 -0
- package/dist/api/generated/itinerary/models/DTOBranchEntity.js +1 -0
- package/dist/api/generated/itinerary/models/DTOBranchRead.d.ts +11 -0
- package/dist/api/generated/itinerary/models/DTOBranchRead.js +1 -0
- package/dist/api/generated/itinerary/models/DTOBranchUpdate.d.ts +4 -0
- package/dist/api/generated/itinerary/models/DTOBranchUpdate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOComponentCreate.d.ts +30 -0
- package/dist/api/generated/itinerary/models/DTOComponentCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOComponentEntity.d.ts +37 -0
- package/dist/api/generated/itinerary/models/DTOComponentEntity.js +1 -0
- package/dist/api/generated/itinerary/models/DTOComponentRead.d.ts +37 -0
- package/dist/api/generated/itinerary/models/DTOComponentRead.js +1 -0
- package/dist/api/generated/itinerary/models/DTOComponentUpdate.d.ts +25 -0
- package/dist/api/generated/itinerary/models/DTOComponentUpdate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOItineraryCreate.d.ts +16 -0
- package/dist/api/generated/itinerary/models/DTOItineraryCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOItineraryEntity.d.ts +25 -0
- package/dist/api/generated/itinerary/models/DTOItineraryEntity.js +1 -0
- package/dist/api/generated/itinerary/models/DTOItineraryRead.d.ts +25 -0
- package/dist/api/generated/itinerary/models/DTOItineraryRead.js +1 -0
- package/dist/api/generated/itinerary/models/DTOItineraryUpdate.d.ts +16 -0
- package/dist/api/generated/itinerary/models/DTOItineraryUpdate.js +1 -0
- package/dist/api/generated/itinerary/models/DTORegionCreate.d.ts +8 -0
- package/dist/api/generated/itinerary/models/DTORegionCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTORegionEntity.d.ts +12 -0
- package/dist/api/generated/itinerary/models/DTORegionEntity.js +1 -0
- package/dist/api/generated/itinerary/models/DTORegionRead.d.ts +12 -0
- package/dist/api/generated/itinerary/models/DTORegionRead.js +1 -0
- package/dist/api/generated/itinerary/models/DTORegionUpdate.d.ts +8 -0
- package/dist/api/generated/itinerary/models/DTORegionUpdate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSnapshotCreate.d.ts +8 -0
- package/dist/api/generated/itinerary/models/DTOSnapshotCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSnapshotEntity.d.ts +12 -0
- package/dist/api/generated/itinerary/models/DTOSnapshotEntity.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSnapshotRead.d.ts +12 -0
- package/dist/api/generated/itinerary/models/DTOSnapshotRead.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSnapshotUpdate.d.ts +6 -0
- package/dist/api/generated/itinerary/models/DTOSnapshotUpdate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSwooperCreate.d.ts +16 -0
- package/dist/api/generated/itinerary/models/DTOSwooperCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSwooperEntity.d.ts +20 -0
- package/dist/api/generated/itinerary/models/DTOSwooperEntity.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSwooperRead.d.ts +20 -0
- package/dist/api/generated/itinerary/models/DTOSwooperRead.js +1 -0
- package/dist/api/generated/itinerary/models/DTOSwooperUpdate.d.ts +16 -0
- package/dist/api/generated/itinerary/models/DTOSwooperUpdate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOTemplateCreate.d.ts +11 -0
- package/dist/api/generated/itinerary/models/DTOTemplateCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTOTemplateEntity.d.ts +17 -0
- package/dist/api/generated/itinerary/models/DTOTemplateEntity.js +1 -0
- package/dist/api/generated/itinerary/models/DTOTemplateRead.d.ts +17 -0
- package/dist/api/generated/itinerary/models/DTOTemplateRead.js +1 -0
- package/dist/api/generated/itinerary/models/DTOTemplateUpdate.d.ts +7 -0
- package/dist/api/generated/itinerary/models/DTOTemplateUpdate.js +1 -0
- package/dist/api/generated/itinerary/models/Destination.d.ts +5 -0
- package/dist/api/generated/itinerary/models/Destination.js +10 -0
- package/dist/api/generated/itinerary/models/Discount.d.ts +10 -0
- package/dist/api/generated/itinerary/models/Discount.js +1 -0
- package/dist/api/generated/itinerary/models/EnquiryId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/EnquiryId.js +1 -0
- package/dist/api/generated/itinerary/models/EnquiryIdPathParam.d.ts +5 -0
- package/dist/api/generated/itinerary/models/EnquiryIdPathParam.js +1 -0
- package/dist/api/generated/itinerary/models/EnquiryIdQueryParam.d.ts +1 -0
- package/dist/api/generated/itinerary/models/EnquiryIdQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/Error.d.ts +4 -0
- package/dist/api/generated/itinerary/models/Error.js +1 -0
- package/dist/api/generated/itinerary/models/Fee.d.ts +10 -0
- package/dist/api/generated/itinerary/models/Fee.js +1 -0
- package/dist/api/generated/itinerary/models/Field.d.ts +4 -0
- package/dist/api/generated/itinerary/models/Field.js +1 -0
- package/dist/api/generated/itinerary/models/ItineraryId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/ItineraryId.js +1 -0
- package/dist/api/generated/itinerary/models/ItineraryIdPathParam.d.ts +5 -0
- package/dist/api/generated/itinerary/models/ItineraryIdPathParam.js +1 -0
- package/dist/api/generated/itinerary/models/ItineraryIdQueryParam.d.ts +5 -0
- package/dist/api/generated/itinerary/models/ItineraryIdQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/ItineraryRevisionGroupId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/ItineraryRevisionGroupId.js +1 -0
- package/dist/api/generated/itinerary/models/ItineraryValue.d.ts +4 -0
- package/dist/api/generated/itinerary/models/ItineraryValue.js +1 -0
- package/dist/api/generated/itinerary/models/LimitQueryParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/LimitQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/Meals.d.ts +8 -0
- package/dist/api/generated/itinerary/models/Meals.js +13 -0
- package/dist/api/generated/itinerary/models/Media.d.ts +4 -0
- package/dist/api/generated/itinerary/models/Media.js +1 -0
- package/dist/api/generated/itinerary/models/Metadata.d.ts +7 -0
- package/dist/api/generated/itinerary/models/Metadata.js +1 -0
- package/dist/api/generated/itinerary/models/MockErrorCodeQueryParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/MockErrorCodeQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/OnQueryParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/OnQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/OrderQueryParam.d.ts +7 -0
- package/dist/api/generated/itinerary/models/OrderQueryParam.js +12 -0
- package/dist/api/generated/itinerary/models/OrgId.d.ts +3 -0
- package/dist/api/generated/itinerary/models/OrgId.js +8 -0
- package/dist/api/generated/itinerary/models/Package.d.ts +7 -0
- package/dist/api/generated/itinerary/models/Package.js +1 -0
- package/dist/api/generated/itinerary/models/PackageItem.d.ts +6 -0
- package/dist/api/generated/itinerary/models/PackageItem.js +1 -0
- package/dist/api/generated/itinerary/models/PackageSpan.d.ts +11 -0
- package/dist/api/generated/itinerary/models/PackageSpan.js +1 -0
- package/dist/api/generated/itinerary/models/PageQueryParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/PageQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/Pagination.d.ts +5 -0
- package/dist/api/generated/itinerary/models/Pagination.js +1 -0
- package/dist/api/generated/itinerary/models/Price.d.ts +5 -0
- package/dist/api/generated/itinerary/models/Price.js +1 -0
- package/dist/api/generated/itinerary/models/QuoteOptions.d.ts +9 -0
- package/dist/api/generated/itinerary/models/QuoteOptions.js +1 -0
- package/dist/api/generated/itinerary/models/RegionId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/RegionId.js +1 -0
- package/dist/api/generated/itinerary/models/SearchQueryParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/SearchQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/SnapshotId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/SnapshotId.js +1 -0
- package/dist/api/generated/itinerary/models/SnapshotIdPathParam.d.ts +2 -0
- package/dist/api/generated/itinerary/models/SnapshotIdPathParam.js +1 -0
- package/dist/api/generated/itinerary/models/SortQueryParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/SortQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/StateQueryParam.d.ts +5 -0
- package/dist/api/generated/itinerary/models/StateQueryParam.js +1 -0
- package/dist/api/generated/itinerary/models/SwoopContactInfo.d.ts +5 -0
- package/dist/api/generated/itinerary/models/SwoopContactInfo.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperExperience.d.ts +7 -0
- package/dist/api/generated/itinerary/models/SwooperExperience.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperHighlights.d.ts +5 -0
- package/dist/api/generated/itinerary/models/SwooperHighlights.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/SwooperId.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperIdPathParam.d.ts +5 -0
- package/dist/api/generated/itinerary/models/SwooperIdPathParam.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperInfo.d.ts +6 -0
- package/dist/api/generated/itinerary/models/SwooperInfo.js +1 -0
- package/dist/api/generated/itinerary/models/SwooperPersonalInfo.d.ts +7 -0
- package/dist/api/generated/itinerary/models/SwooperPersonalInfo.js +1 -0
- package/dist/api/generated/itinerary/models/TagPathParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/TagPathParam.js +1 -0
- package/dist/api/generated/itinerary/models/TemplateId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/TemplateId.js +1 -0
- package/dist/api/generated/itinerary/models/TemplateIdPathParam.d.ts +5 -0
- package/dist/api/generated/itinerary/models/TemplateIdPathParam.js +1 -0
- package/dist/api/generated/itinerary/models/TemplateRevisionGroupId.d.ts +1 -0
- package/dist/api/generated/itinerary/models/TemplateRevisionGroupId.js +1 -0
- package/dist/api/generated/itinerary/models/Title.d.ts +1 -0
- package/dist/api/generated/itinerary/models/Title.js +1 -0
- package/dist/api/generated/itinerary/models/UrgencyCTA.d.ts +4 -0
- package/dist/api/generated/itinerary/models/UrgencyCTA.js +9 -0
- package/dist/api/generated/itinerary/models/UserComponentInstanceField.d.ts +5 -0
- package/dist/api/generated/itinerary/models/UserComponentInstanceField.js +1 -0
- package/dist/api/generated/itinerary/models/ValidationSchemas.d.ts +5 -0
- package/dist/api/generated/itinerary/models/ValidationSchemas.js +1 -0
- package/dist/api/generated/itinerary/models/VersionPathParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/VersionPathParam.js +1 -0
- package/dist/api/generated/itinerary/services/AuditService.d.ts +13 -0
- package/dist/api/generated/itinerary/services/AuditService.js +28 -0
- package/dist/api/generated/itinerary/services/ItineraryService.d.ts +174 -0
- package/dist/api/generated/itinerary/services/ItineraryService.js +378 -0
- package/dist/api/generated/itinerary/services/RegionService.d.ts +30 -0
- package/dist/api/generated/itinerary/services/RegionService.js +57 -0
- package/dist/api/generated/itinerary/services/SnapshotService.d.ts +61 -0
- package/dist/api/generated/itinerary/services/SnapshotService.js +128 -0
- package/dist/api/generated/swoop/core/request.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { Branches } from '../models/Branches';
|
|
2
|
+
import type { BranchTag } from '../models/BranchTag';
|
|
3
|
+
import type { DTOItineraryCreate } from '../models/DTOItineraryCreate';
|
|
4
|
+
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
5
|
+
import type { DTOItineraryUpdate } from '../models/DTOItineraryUpdate';
|
|
6
|
+
import type { DTORegionCreate } from '../models/DTORegionCreate';
|
|
7
|
+
import type { DTORegionRead } from '../models/DTORegionRead';
|
|
8
|
+
import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
|
|
9
|
+
import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
|
|
10
|
+
import type { EnquiryId } from '../models/EnquiryId';
|
|
11
|
+
import type { ItineraryId } from '../models/ItineraryId';
|
|
12
|
+
import type { Pagination } from '../models/Pagination';
|
|
13
|
+
import type { SnapshotId } from '../models/SnapshotId';
|
|
14
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
15
|
+
export declare class ItineraryService {
|
|
16
|
+
/**
|
|
17
|
+
* Audit a Copy to Clipboard
|
|
18
|
+
* Audits when a user copies something to their clipboard
|
|
19
|
+
* @param itineraryId Itinerary Id
|
|
20
|
+
* @param content Base64 encoding of the copied content
|
|
21
|
+
* @returns void
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
auditCopyClipboard(itineraryId: ItineraryId, content: string): CancelablePromise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Create a Snapshot
|
|
27
|
+
* Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
|
|
28
|
+
* @param requestBody
|
|
29
|
+
* @returns DTOSnapshotRead When a snapshot is created
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
snapshotCreate(requestBody: DTOSnapshotCreate): CancelablePromise<DTOSnapshotRead>;
|
|
33
|
+
/**
|
|
34
|
+
* List Snapshots
|
|
35
|
+
* List all available snapshots relating to the query params
|
|
36
|
+
* @param enquiryId
|
|
37
|
+
* @param page Pagination, starting at page 1
|
|
38
|
+
* @param limit Number of items per page
|
|
39
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
40
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
41
|
+
* @param search The search strings to apply to the on query parameter values
|
|
42
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
43
|
+
* @returns any The list of all snapshots given the parameters used
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
snapshotList(enquiryId?: string, page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
47
|
+
snapshots?: Array<DTOSnapshotRead>;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* Get Snapshot va ID
|
|
51
|
+
* Returns the specific snapshot given its Id
|
|
52
|
+
* @param snapshotId
|
|
53
|
+
* @returns any OK
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
snapshotGet(snapshotId: SnapshotId): CancelablePromise<{
|
|
57
|
+
snapshot?: DTOSnapshotRead;
|
|
58
|
+
itinerary?: DTOItineraryRead;
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete Snapshot via ID
|
|
62
|
+
* Deletes a specific snapshot given its Id
|
|
63
|
+
* @param snapshotId
|
|
64
|
+
* @returns void
|
|
65
|
+
* @throws ApiError
|
|
66
|
+
*/
|
|
67
|
+
snapshotDelete(snapshotId: SnapshotId): CancelablePromise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Restore Snapshot
|
|
70
|
+
* Creates a new itinerary revision given the content the snapshot refers to
|
|
71
|
+
* @param snapshotId
|
|
72
|
+
* @returns any When a snapshot is restored as the latest version
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
snapshotRestore(snapshotId: SnapshotId): CancelablePromise<{
|
|
76
|
+
snapshot?: DTOSnapshotRead;
|
|
77
|
+
itinerary?: DTOItineraryRead;
|
|
78
|
+
}>;
|
|
79
|
+
/**
|
|
80
|
+
* List Tree view of Itineraries
|
|
81
|
+
* List all itineraries in a tree view for a specific enquiry id
|
|
82
|
+
* @param enquiryId Enquiry Id
|
|
83
|
+
* @returns any The tree list view of all itineraries given the parameters used
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
itineraryList(enquiryId: EnquiryId): CancelablePromise<{
|
|
87
|
+
tree?: Array<Branches>;
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* Create an Itinerary on an Enquiry
|
|
91
|
+
* Creates a new itinerary on an Enquiry
|
|
92
|
+
* @param enquiryId Enquiry Id
|
|
93
|
+
* @param requestBody
|
|
94
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
95
|
+
* @returns any When a itinerary is created
|
|
96
|
+
* @throws ApiError
|
|
97
|
+
*/
|
|
98
|
+
itineraryCreate(enquiryId: EnquiryId, requestBody: DTOItineraryCreate, error?: number): CancelablePromise<{
|
|
99
|
+
itinerary?: DTOItineraryRead;
|
|
100
|
+
tag?: BranchTag;
|
|
101
|
+
enquiryId?: EnquiryId;
|
|
102
|
+
}>;
|
|
103
|
+
/**
|
|
104
|
+
* Get Itinerary
|
|
105
|
+
* Get itinerary via ID
|
|
106
|
+
* @param enquiryId Enquiry Id
|
|
107
|
+
* @param tag the branch tag
|
|
108
|
+
* @param version the version of a branch
|
|
109
|
+
* @returns any The corresponding itinerary that matches the enquiry id, tag, and version
|
|
110
|
+
* @throws ApiError
|
|
111
|
+
*/
|
|
112
|
+
itineraryGet(enquiryId: EnquiryId, tag: string, version: string): CancelablePromise<any>;
|
|
113
|
+
/**
|
|
114
|
+
* Update Itinerary as New Revision
|
|
115
|
+
* Updates an itinerary as a new revision on the latest version of a branch
|
|
116
|
+
* @param enquiryId Enquiry Id
|
|
117
|
+
* @param tag the branch tag
|
|
118
|
+
* @param requestBody
|
|
119
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
120
|
+
* @returns DTOItineraryRead When a new revision is created successfully
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
itineraryUpdateAsNewRevision(enquiryId: EnquiryId, tag: string, requestBody: DTOItineraryUpdate, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
124
|
+
/**
|
|
125
|
+
* Fork an Itinerary
|
|
126
|
+
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version)
|
|
127
|
+
* @param enquiryId Enquiry Id
|
|
128
|
+
* @param tag the branch tag
|
|
129
|
+
* @param version the version of a branch
|
|
130
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
131
|
+
* @returns any When the fork was successful
|
|
132
|
+
* @throws ApiError
|
|
133
|
+
*/
|
|
134
|
+
forkItinerary(enquiryId: EnquiryId, tag: string, version: string, error?: number): CancelablePromise<{
|
|
135
|
+
itinerary?: DTOItineraryRead;
|
|
136
|
+
tag?: BranchTag;
|
|
137
|
+
enquiryId?: EnquiryId;
|
|
138
|
+
}>;
|
|
139
|
+
/**
|
|
140
|
+
* Promote an Itinerary
|
|
141
|
+
* 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.
|
|
142
|
+
* @param enquiryId Enquiry Id
|
|
143
|
+
* @param tag the branch tag
|
|
144
|
+
* @param version the version of a branch
|
|
145
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
146
|
+
* @returns DTOItineraryRead The new head of the parent branch
|
|
147
|
+
* @throws ApiError
|
|
148
|
+
*/
|
|
149
|
+
promoteItinerary(enquiryId: EnquiryId, tag: string, version: string, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
150
|
+
/**
|
|
151
|
+
* List Regions
|
|
152
|
+
* List all regions
|
|
153
|
+
* @param page Pagination, starting at page 1
|
|
154
|
+
* @param limit Number of items per page
|
|
155
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
156
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
157
|
+
* @param search The search strings to apply to the on query parameter values
|
|
158
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
159
|
+
* @returns any OK
|
|
160
|
+
* @throws ApiError
|
|
161
|
+
*/
|
|
162
|
+
regionList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
163
|
+
data?: Array<DTORegionRead>;
|
|
164
|
+
pagination?: Pagination;
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* Create Region
|
|
168
|
+
* Create a region
|
|
169
|
+
* @param requestBody
|
|
170
|
+
* @returns DTORegionRead OK
|
|
171
|
+
* @throws ApiError
|
|
172
|
+
*/
|
|
173
|
+
regionCreate(requestBody?: DTORegionCreate): CancelablePromise<DTORegionRead>;
|
|
174
|
+
}
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class ItineraryService {
|
|
4
|
+
/**
|
|
5
|
+
* Audit a Copy to Clipboard
|
|
6
|
+
* Audits when a user copies something to their clipboard
|
|
7
|
+
* @param itineraryId Itinerary Id
|
|
8
|
+
* @param content Base64 encoding of the copied content
|
|
9
|
+
* @returns void
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
auditCopyClipboard(itineraryId, content) {
|
|
13
|
+
return __request(OpenAPI, {
|
|
14
|
+
method: 'POST',
|
|
15
|
+
url: '/audit/copyClipboard/{itineraryId}',
|
|
16
|
+
path: {
|
|
17
|
+
'itineraryId': itineraryId,
|
|
18
|
+
},
|
|
19
|
+
query: {
|
|
20
|
+
'content': content,
|
|
21
|
+
},
|
|
22
|
+
errors: {
|
|
23
|
+
400: `When the content query b64 string is invalid`,
|
|
24
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a Snapshot
|
|
30
|
+
* Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
|
|
31
|
+
* @param requestBody
|
|
32
|
+
* @returns DTOSnapshotRead When a snapshot is created
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
snapshotCreate(requestBody) {
|
|
36
|
+
return __request(OpenAPI, {
|
|
37
|
+
method: 'POST',
|
|
38
|
+
url: '/snapshot',
|
|
39
|
+
body: requestBody,
|
|
40
|
+
mediaType: 'application/json',
|
|
41
|
+
errors: {
|
|
42
|
+
400: `If the payload is malformed`,
|
|
43
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
44
|
+
404: `If the entity does not exists`,
|
|
45
|
+
500: `When an internal server error occurs when creating a snapshot entity`,
|
|
46
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* List Snapshots
|
|
52
|
+
* List all available snapshots relating to the query params
|
|
53
|
+
* @param enquiryId
|
|
54
|
+
* @param page Pagination, starting at page 1
|
|
55
|
+
* @param limit Number of items per page
|
|
56
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
57
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
58
|
+
* @param search The search strings to apply to the on query parameter values
|
|
59
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
60
|
+
* @returns any The list of all snapshots given the parameters used
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
snapshotList(enquiryId, page, limit, order, sort, search, on) {
|
|
64
|
+
return __request(OpenAPI, {
|
|
65
|
+
method: 'GET',
|
|
66
|
+
url: '/snapshot',
|
|
67
|
+
query: {
|
|
68
|
+
'enquiryId': enquiryId,
|
|
69
|
+
'page': page,
|
|
70
|
+
'limit': limit,
|
|
71
|
+
'order': order,
|
|
72
|
+
'sort': sort,
|
|
73
|
+
'search': search,
|
|
74
|
+
'on': on,
|
|
75
|
+
},
|
|
76
|
+
errors: {
|
|
77
|
+
400: `If the filter options or query parameters contain invalid values`,
|
|
78
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
79
|
+
500: `When an internal server error occurs when listing all related snapshots`,
|
|
80
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get Snapshot va ID
|
|
86
|
+
* Returns the specific snapshot given its Id
|
|
87
|
+
* @param snapshotId
|
|
88
|
+
* @returns any OK
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
snapshotGet(snapshotId) {
|
|
92
|
+
return __request(OpenAPI, {
|
|
93
|
+
method: 'GET',
|
|
94
|
+
url: '/snapshot/{snapshotId}',
|
|
95
|
+
path: {
|
|
96
|
+
'snapshotId': snapshotId,
|
|
97
|
+
},
|
|
98
|
+
errors: {
|
|
99
|
+
400: `If the payload is malformed`,
|
|
100
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
101
|
+
404: `If the snapshot does not exist`,
|
|
102
|
+
500: `When an internal server error occurs when reading snapshot`,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Delete Snapshot via ID
|
|
108
|
+
* Deletes a specific snapshot given its Id
|
|
109
|
+
* @param snapshotId
|
|
110
|
+
* @returns void
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
snapshotDelete(snapshotId) {
|
|
114
|
+
return __request(OpenAPI, {
|
|
115
|
+
method: 'DELETE',
|
|
116
|
+
url: '/snapshot/{snapshotId}',
|
|
117
|
+
path: {
|
|
118
|
+
'snapshotId': snapshotId,
|
|
119
|
+
},
|
|
120
|
+
errors: {
|
|
121
|
+
400: `When the snapshot doesn't exist in the first place, or when a before hook fails before deleting the item`,
|
|
122
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
123
|
+
404: `If the snapshot to delete to does not exist`,
|
|
124
|
+
500: `When the snapshot fails to delete due to an internal server error`,
|
|
125
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Restore Snapshot
|
|
131
|
+
* Creates a new itinerary revision given the content the snapshot refers to
|
|
132
|
+
* @param snapshotId
|
|
133
|
+
* @returns any When a snapshot is restored as the latest version
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
snapshotRestore(snapshotId) {
|
|
137
|
+
return __request(OpenAPI, {
|
|
138
|
+
method: 'PUT',
|
|
139
|
+
url: '/snapshot/restore/{snapshotId}',
|
|
140
|
+
path: {
|
|
141
|
+
'snapshotId': snapshotId,
|
|
142
|
+
},
|
|
143
|
+
errors: {
|
|
144
|
+
400: `If the payload is malformed`,
|
|
145
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
146
|
+
404: `If the entity does not exists`,
|
|
147
|
+
500: `When the snapshot fails to restore due to an internal server error`,
|
|
148
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* List Tree view of Itineraries
|
|
154
|
+
* List all itineraries in a tree view for a specific enquiry id
|
|
155
|
+
* @param enquiryId Enquiry Id
|
|
156
|
+
* @returns any The tree list view of all itineraries given the parameters used
|
|
157
|
+
* @throws ApiError
|
|
158
|
+
*/
|
|
159
|
+
itineraryList(enquiryId) {
|
|
160
|
+
return __request(OpenAPI, {
|
|
161
|
+
method: 'GET',
|
|
162
|
+
url: '/itinerary/{enquiryId}/tree',
|
|
163
|
+
path: {
|
|
164
|
+
'enquiryId': enquiryId,
|
|
165
|
+
},
|
|
166
|
+
errors: {
|
|
167
|
+
400: `If the filter options or query parameters contain invalid values`,
|
|
168
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
169
|
+
500: `When an internal server error occurs when listing all related itineraries`,
|
|
170
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Create an Itinerary on an Enquiry
|
|
176
|
+
* Creates a new itinerary on an Enquiry
|
|
177
|
+
* @param enquiryId Enquiry Id
|
|
178
|
+
* @param requestBody
|
|
179
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
180
|
+
* @returns any When a itinerary is created
|
|
181
|
+
* @throws ApiError
|
|
182
|
+
*/
|
|
183
|
+
itineraryCreate(enquiryId, requestBody, error) {
|
|
184
|
+
return __request(OpenAPI, {
|
|
185
|
+
method: 'POST',
|
|
186
|
+
url: '/itinerary/create/{enquiryId}',
|
|
187
|
+
path: {
|
|
188
|
+
'enquiryId': enquiryId,
|
|
189
|
+
},
|
|
190
|
+
query: {
|
|
191
|
+
'error': error,
|
|
192
|
+
},
|
|
193
|
+
body: requestBody,
|
|
194
|
+
mediaType: 'application/json',
|
|
195
|
+
errors: {
|
|
196
|
+
400: `If the payload is malformed`,
|
|
197
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
198
|
+
404: `the customer linked via enquiryId does not exist or has been deleted or a referenced traveller group or traveller ID was not found`,
|
|
199
|
+
422: `An itinerary meets CRM 'late' criteria but 'isLateBookingConfirmed' is false`,
|
|
200
|
+
500: `When an internal server error occurs when creating a itinerary entity`,
|
|
201
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Get Itinerary
|
|
207
|
+
* Get itinerary via ID
|
|
208
|
+
* @param enquiryId Enquiry Id
|
|
209
|
+
* @param tag the branch tag
|
|
210
|
+
* @param version the version of a branch
|
|
211
|
+
* @returns any The corresponding itinerary that matches the enquiry id, tag, and version
|
|
212
|
+
* @throws ApiError
|
|
213
|
+
*/
|
|
214
|
+
itineraryGet(enquiryId, tag, version) {
|
|
215
|
+
return __request(OpenAPI, {
|
|
216
|
+
method: 'GET',
|
|
217
|
+
url: '/itinerary/{enquiryId}/{tag}/{version}',
|
|
218
|
+
path: {
|
|
219
|
+
'enquiryId': enquiryId,
|
|
220
|
+
'tag': tag,
|
|
221
|
+
'version': version,
|
|
222
|
+
},
|
|
223
|
+
errors: {
|
|
224
|
+
400: `If the payload is malformed`,
|
|
225
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
226
|
+
404: `If the itinerary does not exist as it does not match the enquiry id, tag, and version`,
|
|
227
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
228
|
+
},
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Update Itinerary as New Revision
|
|
233
|
+
* Updates an itinerary as a new revision on the latest version of a branch
|
|
234
|
+
* @param enquiryId Enquiry Id
|
|
235
|
+
* @param tag the branch tag
|
|
236
|
+
* @param requestBody
|
|
237
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
238
|
+
* @returns DTOItineraryRead When a new revision is created successfully
|
|
239
|
+
* @throws ApiError
|
|
240
|
+
*/
|
|
241
|
+
itineraryUpdateAsNewRevision(enquiryId, tag, requestBody, error) {
|
|
242
|
+
return __request(OpenAPI, {
|
|
243
|
+
method: 'PUT',
|
|
244
|
+
url: '/itinerary/{enquiryId}/{tag}',
|
|
245
|
+
path: {
|
|
246
|
+
'enquiryId': enquiryId,
|
|
247
|
+
'tag': tag,
|
|
248
|
+
},
|
|
249
|
+
query: {
|
|
250
|
+
'error': error,
|
|
251
|
+
},
|
|
252
|
+
body: requestBody,
|
|
253
|
+
mediaType: 'application/json',
|
|
254
|
+
errors: {
|
|
255
|
+
400: `If the payload is malformed`,
|
|
256
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
257
|
+
404: `When the itinerary enquiry id and tag do not exists, or the customer linked via enquiryId does not exist, or has been deleted or a referenced traveller group or traveller ID was not found`,
|
|
258
|
+
422: `An itinerary meets CRM 'late' criteria but 'isLateBookingConfirmed' is false`,
|
|
259
|
+
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
260
|
+
},
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Fork an Itinerary
|
|
265
|
+
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version)
|
|
266
|
+
* @param enquiryId Enquiry Id
|
|
267
|
+
* @param tag the branch tag
|
|
268
|
+
* @param version the version of a branch
|
|
269
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
270
|
+
* @returns any When the fork was successful
|
|
271
|
+
* @throws ApiError
|
|
272
|
+
*/
|
|
273
|
+
forkItinerary(enquiryId, tag, version, error) {
|
|
274
|
+
return __request(OpenAPI, {
|
|
275
|
+
method: 'POST',
|
|
276
|
+
url: '/itinerary/fork/{enquiryId}/{tag}/{version}',
|
|
277
|
+
path: {
|
|
278
|
+
'enquiryId': enquiryId,
|
|
279
|
+
'tag': tag,
|
|
280
|
+
'version': version,
|
|
281
|
+
},
|
|
282
|
+
query: {
|
|
283
|
+
'error': error,
|
|
284
|
+
},
|
|
285
|
+
errors: {
|
|
286
|
+
400: `If the payload is malformed`,
|
|
287
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
288
|
+
404: `When the itinerary enquiry id and tag do not exists, or the customer linked via enquiryId does not exist, or has been deleted or a referenced traveller group or traveller ID was not found`,
|
|
289
|
+
422: `An itinerary meets CRM 'late' criteria but 'isLateBookingConfirmed' is false`,
|
|
290
|
+
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
291
|
+
},
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Promote an Itinerary
|
|
296
|
+
* 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.
|
|
297
|
+
* @param enquiryId Enquiry Id
|
|
298
|
+
* @param tag the branch tag
|
|
299
|
+
* @param version the version of a branch
|
|
300
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
301
|
+
* @returns DTOItineraryRead The new head of the parent branch
|
|
302
|
+
* @throws ApiError
|
|
303
|
+
*/
|
|
304
|
+
promoteItinerary(enquiryId, tag, version, error) {
|
|
305
|
+
return __request(OpenAPI, {
|
|
306
|
+
method: 'POST',
|
|
307
|
+
url: '/itinerary/promote/{enquiryId}/{tag}/{version}',
|
|
308
|
+
path: {
|
|
309
|
+
'enquiryId': enquiryId,
|
|
310
|
+
'tag': tag,
|
|
311
|
+
'version': version,
|
|
312
|
+
},
|
|
313
|
+
query: {
|
|
314
|
+
'error': error,
|
|
315
|
+
},
|
|
316
|
+
errors: {
|
|
317
|
+
400: `If the payload is malformed`,
|
|
318
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
319
|
+
404: `When the itinerary enquiry id and tag do not exists, or the customer linked via enquiryId does not exist, or has been deleted or a referenced traveller group or traveller ID was not found`,
|
|
320
|
+
422: `An itinerary meets CRM 'late' criteria but 'isLateBookingConfirmed' is false`,
|
|
321
|
+
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
322
|
+
},
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* List Regions
|
|
327
|
+
* List all regions
|
|
328
|
+
* @param page Pagination, starting at page 1
|
|
329
|
+
* @param limit Number of items per page
|
|
330
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
331
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
332
|
+
* @param search The search strings to apply to the on query parameter values
|
|
333
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
334
|
+
* @returns any OK
|
|
335
|
+
* @throws ApiError
|
|
336
|
+
*/
|
|
337
|
+
regionList(page, limit, order, sort, search, on) {
|
|
338
|
+
return __request(OpenAPI, {
|
|
339
|
+
method: 'GET',
|
|
340
|
+
url: '/region',
|
|
341
|
+
query: {
|
|
342
|
+
'page': page,
|
|
343
|
+
'limit': limit,
|
|
344
|
+
'order': order,
|
|
345
|
+
'sort': sort,
|
|
346
|
+
'search': search,
|
|
347
|
+
'on': on,
|
|
348
|
+
},
|
|
349
|
+
errors: {
|
|
350
|
+
400: `If the filter options or query parameters contain invalid values`,
|
|
351
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
352
|
+
500: `When an internal server error occurs when listing all related regions`,
|
|
353
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
354
|
+
},
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Create Region
|
|
359
|
+
* Create a region
|
|
360
|
+
* @param requestBody
|
|
361
|
+
* @returns DTORegionRead OK
|
|
362
|
+
* @throws ApiError
|
|
363
|
+
*/
|
|
364
|
+
regionCreate(requestBody) {
|
|
365
|
+
return __request(OpenAPI, {
|
|
366
|
+
method: 'POST',
|
|
367
|
+
url: '/region',
|
|
368
|
+
body: requestBody,
|
|
369
|
+
mediaType: 'application/json',
|
|
370
|
+
errors: {
|
|
371
|
+
400: `If the payload is malformed`,
|
|
372
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
373
|
+
500: `When an internal server error occurs when creating a region entity`,
|
|
374
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
375
|
+
},
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DTORegionCreate } from '../models/DTORegionCreate';
|
|
2
|
+
import type { DTORegionRead } from '../models/DTORegionRead';
|
|
3
|
+
import type { Pagination } from '../models/Pagination';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
export declare class RegionService {
|
|
6
|
+
/**
|
|
7
|
+
* List Regions
|
|
8
|
+
* List all regions
|
|
9
|
+
* @param page Pagination, starting at page 1
|
|
10
|
+
* @param limit Number of items per page
|
|
11
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
12
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
13
|
+
* @param search The search strings to apply to the on query parameter values
|
|
14
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
15
|
+
* @returns any OK
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static regionList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
19
|
+
data?: Array<DTORegionRead>;
|
|
20
|
+
pagination?: Pagination;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Create Region
|
|
24
|
+
* Create a region
|
|
25
|
+
* @param requestBody
|
|
26
|
+
* @returns DTORegionRead OK
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static regionCreate(requestBody?: DTORegionCreate): CancelablePromise<DTORegionRead>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class RegionService {
|
|
4
|
+
/**
|
|
5
|
+
* List Regions
|
|
6
|
+
* List all regions
|
|
7
|
+
* @param page Pagination, starting at page 1
|
|
8
|
+
* @param limit Number of items per page
|
|
9
|
+
* @param order Order the sort query parameter values either by ascending or descending order
|
|
10
|
+
* @param sort List of fields to sort by, this requires the order query param
|
|
11
|
+
* @param search The search strings to apply to the on query parameter values
|
|
12
|
+
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
13
|
+
* @returns any OK
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
static regionList(page, limit, order, sort, search, on) {
|
|
17
|
+
return __request(OpenAPI, {
|
|
18
|
+
method: 'GET',
|
|
19
|
+
url: '/region',
|
|
20
|
+
query: {
|
|
21
|
+
'page': page,
|
|
22
|
+
'limit': limit,
|
|
23
|
+
'order': order,
|
|
24
|
+
'sort': sort,
|
|
25
|
+
'search': search,
|
|
26
|
+
'on': on,
|
|
27
|
+
},
|
|
28
|
+
errors: {
|
|
29
|
+
400: `If the filter options or query parameters contain invalid values`,
|
|
30
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
31
|
+
500: `When an internal server error occurs when listing all related regions`,
|
|
32
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Create Region
|
|
38
|
+
* Create a region
|
|
39
|
+
* @param requestBody
|
|
40
|
+
* @returns DTORegionRead OK
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
static regionCreate(requestBody) {
|
|
44
|
+
return __request(OpenAPI, {
|
|
45
|
+
method: 'POST',
|
|
46
|
+
url: '/region',
|
|
47
|
+
body: requestBody,
|
|
48
|
+
mediaType: 'application/json',
|
|
49
|
+
errors: {
|
|
50
|
+
400: `If the payload is malformed`,
|
|
51
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
52
|
+
500: `When an internal server error occurs when creating a region entity`,
|
|
53
|
+
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|