swoop-common 2.1.17 → 2.1.18
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/bundler.js +3 -1
- package/dist/api/generated/core/exports.d.ts +4 -0
- package/dist/api/generated/core/exports.js +4 -0
- package/dist/api/generated/core/index.d.ts +4 -0
- package/dist/api/generated/core/index.js +4 -0
- package/dist/api/generated/core/models/BookingStatus.d.ts +7 -0
- package/dist/api/generated/core/models/BookingStatus.js +12 -0
- package/dist/api/generated/core/models/ComponentInstance.d.ts +3 -0
- package/dist/api/generated/core/models/ComponentState.d.ts +5 -0
- package/dist/api/generated/core/models/ComponentState.js +10 -0
- package/dist/api/generated/core/models/ComponentType.d.ts +13 -0
- package/dist/api/generated/core/models/ComponentType.js +18 -0
- package/dist/api/generated/core/models/DTOComponentCreate.d.ts +5 -1
- package/dist/api/generated/core/models/DTOComponentEntity.d.ts +6 -2
- package/dist/api/generated/core/models/DTOComponentRead.d.ts +6 -2
- package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +5 -1
- package/dist/api/generated/core/models/DTOItineraryEntity.d.ts +2 -0
- package/dist/api/generated/core/models/DTOItineraryRead.d.ts +2 -0
- package/dist/api/generated/core/models/Meals.d.ts +7 -0
- package/dist/api/generated/core/models/Meals.js +12 -0
- package/dist/api/generated/core/models/PackageSpan.d.ts +2 -1
- package/dist/api/generated/itinerary/index.d.ts +4 -0
- package/dist/api/generated/itinerary/index.js +4 -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/ComponentInstance.d.ts +3 -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/ComponentType.d.ts +13 -0
- package/dist/api/generated/itinerary/models/ComponentType.js +18 -0
- package/dist/api/generated/itinerary/models/DTOComponentCreate.d.ts +5 -1
- package/dist/api/generated/itinerary/models/DTOComponentEntity.d.ts +6 -2
- package/dist/api/generated/itinerary/models/DTOComponentRead.d.ts +6 -2
- package/dist/api/generated/itinerary/models/DTOComponentUpdate.d.ts +5 -1
- package/dist/api/generated/itinerary/models/DTOItineraryEntity.d.ts +2 -0
- package/dist/api/generated/itinerary/models/DTOItineraryRead.d.ts +2 -0
- package/dist/api/generated/itinerary/models/Meals.d.ts +7 -0
- package/dist/api/generated/itinerary/models/Meals.js +12 -0
- package/dist/api/generated/itinerary/models/PackageSpan.d.ts +2 -1
- package/dist/rendering/renderers/ComponentPicker.d.ts +4 -2
- package/package.json +1 -1
package/dist/api/bundler.js
CHANGED
|
@@ -19,7 +19,9 @@ const bundle = (sdk) => {
|
|
|
19
19
|
// Dont need to parse specs, can just look for references
|
|
20
20
|
const updatedSpecs = specs.replace(/\.\/models\.yaml/g, "") + "\n" + full;
|
|
21
21
|
// Make sure all refs are wrapped in '
|
|
22
|
-
const cleanedSpecs = updatedSpecs.split("\n").map(line => line.replace(/(\$ref:\s*)(
|
|
22
|
+
const cleanedSpecs = updatedSpecs.split("\n").map(line => line.replace(/(\$ref:\s*)(["']?)([^"'\s]+)\2/, (_, prefix, _q, path) => {
|
|
23
|
+
return `${prefix}'${path}'`;
|
|
24
|
+
})).join("\n");
|
|
23
25
|
fs.mkdirSync("./openapi/generated", { recursive: true });
|
|
24
26
|
fs.writeFileSync(`./openapi/generated/${sdk}_bundled.yaml`, cleanedSpecs);
|
|
25
27
|
};
|
|
@@ -5,6 +5,7 @@ export type { AssignedTravellerGroup } from './index';
|
|
|
5
5
|
export type { Assignments } from './index';
|
|
6
6
|
export type { BookingItem } from './index';
|
|
7
7
|
export type { BookingItemResponse } from './index';
|
|
8
|
+
export { BookingStatus } from './index';
|
|
8
9
|
export type { ComponentDescription } from './index';
|
|
9
10
|
export type { ComponentFAQ } from './index';
|
|
10
11
|
export type { componentId } from './index';
|
|
@@ -12,6 +13,8 @@ export type { ComponentInstance } from './index';
|
|
|
12
13
|
export type { ComponentMedia } from './index';
|
|
13
14
|
export type { ComponentNotes } from './index';
|
|
14
15
|
export type { ComponentPricing } from './index';
|
|
16
|
+
export { ComponentState } from './index';
|
|
17
|
+
export { ComponentType } from './index';
|
|
15
18
|
export type { CurrencyItem } from './index';
|
|
16
19
|
export type { CurrencyItemResponse } from './index';
|
|
17
20
|
export type { DTOComponentCreate } from './index';
|
|
@@ -38,6 +41,7 @@ export type { id } from './index';
|
|
|
38
41
|
export type { itemsPerPage } from './index';
|
|
39
42
|
export type { itineraryId } from './index';
|
|
40
43
|
export type { Limit } from './index';
|
|
44
|
+
export { Meals } from './index';
|
|
41
45
|
export type { Member } from './index';
|
|
42
46
|
export type { Metadata } from './index';
|
|
43
47
|
export type { Package } from './index';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// GENERATED FILE DO NOT EDIT //
|
|
2
2
|
export { ApiError } from './index';
|
|
3
3
|
export { CancelablePromise, CancelError } from './index';
|
|
4
|
+
export { BookingStatus } from './index';
|
|
5
|
+
export { ComponentState } from './index';
|
|
6
|
+
export { ComponentType } from './index';
|
|
7
|
+
export { Meals } from './index';
|
|
4
8
|
export { regionParam } from './index';
|
|
5
9
|
export { regionRequired } from './index';
|
|
@@ -7,6 +7,7 @@ export type { AssignedTravellerGroup } from './models/AssignedTravellerGroup';
|
|
|
7
7
|
export type { Assignments } from './models/Assignments';
|
|
8
8
|
export type { BookingItem } from './models/BookingItem';
|
|
9
9
|
export type { BookingItemResponse } from './models/BookingItemResponse';
|
|
10
|
+
export { BookingStatus } from './models/BookingStatus';
|
|
10
11
|
export type { ComponentDescription } from './models/ComponentDescription';
|
|
11
12
|
export type { ComponentFAQ } from './models/ComponentFAQ';
|
|
12
13
|
export type { componentId } from './models/componentId';
|
|
@@ -14,6 +15,8 @@ export type { ComponentInstance } from './models/ComponentInstance';
|
|
|
14
15
|
export type { ComponentMedia } from './models/ComponentMedia';
|
|
15
16
|
export type { ComponentNotes } from './models/ComponentNotes';
|
|
16
17
|
export type { ComponentPricing } from './models/ComponentPricing';
|
|
18
|
+
export { ComponentState } from './models/ComponentState';
|
|
19
|
+
export { ComponentType } from './models/ComponentType';
|
|
17
20
|
export type { CurrencyItem } from './models/CurrencyItem';
|
|
18
21
|
export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
|
|
19
22
|
export type { DTOComponentCreate } from './models/DTOComponentCreate';
|
|
@@ -40,6 +43,7 @@ export type { id } from './models/id';
|
|
|
40
43
|
export type { itemsPerPage } from './models/itemsPerPage';
|
|
41
44
|
export type { itineraryId } from './models/itineraryId';
|
|
42
45
|
export type { Limit } from './models/Limit';
|
|
46
|
+
export { Meals } from './models/Meals';
|
|
43
47
|
export type { Member } from './models/Member';
|
|
44
48
|
export type { Metadata } from './models/Metadata';
|
|
45
49
|
export type { Package } from './models/Package';
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
export { ApiError } from './core/ApiError';
|
|
6
6
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
|
+
export { BookingStatus } from './models/BookingStatus';
|
|
9
|
+
export { ComponentState } from './models/ComponentState';
|
|
10
|
+
export { ComponentType } from './models/ComponentType';
|
|
11
|
+
export { Meals } from './models/Meals';
|
|
8
12
|
export { regionParam } from './models/regionParam';
|
|
9
13
|
export { regionRequired } from './models/regionRequired';
|
|
10
14
|
export { CoreService } from './services/CoreService';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var BookingStatus;
|
|
6
|
+
(function (BookingStatus) {
|
|
7
|
+
BookingStatus["REQUESTED_WITH_PARTNER"] = "RequestedWithPartner";
|
|
8
|
+
BookingStatus["ON_HOLD"] = "OnHold";
|
|
9
|
+
BookingStatus["CONFIRMED"] = "Confirmed";
|
|
10
|
+
BookingStatus["CANCELLED"] = "Cancelled";
|
|
11
|
+
BookingStatus["TO_BE_CONFIRMED"] = "ToBeConfirmed";
|
|
12
|
+
})(BookingStatus || (BookingStatus = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AssignedPassenger } from './AssignedPassenger';
|
|
2
2
|
import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
|
|
3
|
+
import type { BookingStatus } from './BookingStatus';
|
|
3
4
|
import type { Field } from './Field';
|
|
4
5
|
import type { UserComponentInstanceField } from './UserComponentInstanceField';
|
|
5
6
|
export type ComponentInstance = {
|
|
@@ -14,4 +15,6 @@ export type ComponentInstance = {
|
|
|
14
15
|
commissionPercent?: number | null;
|
|
15
16
|
startDate?: string | null;
|
|
16
17
|
endDate?: string | null;
|
|
18
|
+
isNew?: boolean;
|
|
19
|
+
bookingStatus?: BookingStatus;
|
|
17
20
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var ComponentState;
|
|
6
|
+
(function (ComponentState) {
|
|
7
|
+
ComponentState["DRAFT"] = "Draft";
|
|
8
|
+
ComponentState["PENDING_REVIEW"] = "Pending Review";
|
|
9
|
+
ComponentState["APPROVED"] = "Approved";
|
|
10
|
+
})(ComponentState || (ComponentState = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum ComponentType {
|
|
2
|
+
GROUND_ACCOMMODATION = "Ground Accommodation",
|
|
3
|
+
SHIP_ACCOMMODATION = "Ship Accommodation",
|
|
4
|
+
ACTIVITY = "Activity",
|
|
5
|
+
LOCATION = "Location",
|
|
6
|
+
JOURNEY = "Journey",
|
|
7
|
+
TRANSFER = "Transfer",
|
|
8
|
+
EXCURSION = "Excursion",
|
|
9
|
+
PRIVATE_TOUR = "Private Tour",
|
|
10
|
+
ALL_INCLUSIVE_HOTEL = "All Inclusive Hotel",
|
|
11
|
+
CRUISE = "Cruise",
|
|
12
|
+
MULTI_DAY_ACTIVITY = "Multi-day Activity"
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var ComponentType;
|
|
6
|
+
(function (ComponentType) {
|
|
7
|
+
ComponentType["GROUND_ACCOMMODATION"] = "Ground Accommodation";
|
|
8
|
+
ComponentType["SHIP_ACCOMMODATION"] = "Ship Accommodation";
|
|
9
|
+
ComponentType["ACTIVITY"] = "Activity";
|
|
10
|
+
ComponentType["LOCATION"] = "Location";
|
|
11
|
+
ComponentType["JOURNEY"] = "Journey";
|
|
12
|
+
ComponentType["TRANSFER"] = "Transfer";
|
|
13
|
+
ComponentType["EXCURSION"] = "Excursion";
|
|
14
|
+
ComponentType["PRIVATE_TOUR"] = "Private Tour";
|
|
15
|
+
ComponentType["ALL_INCLUSIVE_HOTEL"] = "All Inclusive Hotel";
|
|
16
|
+
ComponentType["CRUISE"] = "Cruise";
|
|
17
|
+
ComponentType["MULTI_DAY_ACTIVITY"] = "Multi-day Activity";
|
|
18
|
+
})(ComponentType || (ComponentType = {}));
|
|
@@ -3,6 +3,8 @@ import type { ComponentFAQ } from './ComponentFAQ';
|
|
|
3
3
|
import type { ComponentMedia } from './ComponentMedia';
|
|
4
4
|
import type { ComponentNotes } from './ComponentNotes';
|
|
5
5
|
import type { ComponentPricing } from './ComponentPricing';
|
|
6
|
+
import type { ComponentState } from './ComponentState';
|
|
7
|
+
import type { ComponentType } from './ComponentType';
|
|
6
8
|
import type { Field } from './Field';
|
|
7
9
|
import type { Package } from './Package';
|
|
8
10
|
export type DTOComponentCreate = {
|
|
@@ -21,6 +23,8 @@ export type DTOComponentCreate = {
|
|
|
21
23
|
startDate?: string | null;
|
|
22
24
|
endDate?: string | null;
|
|
23
25
|
duration?: number | null;
|
|
24
|
-
state:
|
|
26
|
+
state: ComponentState;
|
|
27
|
+
type: ComponentType;
|
|
28
|
+
isBookable: boolean;
|
|
25
29
|
templateId: string;
|
|
26
30
|
};
|
|
@@ -3,6 +3,8 @@ import type { ComponentFAQ } from './ComponentFAQ';
|
|
|
3
3
|
import type { ComponentMedia } from './ComponentMedia';
|
|
4
4
|
import type { ComponentNotes } from './ComponentNotes';
|
|
5
5
|
import type { ComponentPricing } from './ComponentPricing';
|
|
6
|
+
import type { ComponentState } from './ComponentState';
|
|
7
|
+
import type { ComponentType } from './ComponentType';
|
|
6
8
|
import type { Field } from './Field';
|
|
7
9
|
import type { Metadata } from './Metadata';
|
|
8
10
|
import type { Package } from './Package';
|
|
@@ -23,9 +25,11 @@ export type DTOComponentEntity = {
|
|
|
23
25
|
faq?: ComponentFAQ;
|
|
24
26
|
pricing: ComponentPricing;
|
|
25
27
|
componentFields: Array<Field>;
|
|
26
|
-
package
|
|
28
|
+
package?: Package;
|
|
27
29
|
startDate?: string | null;
|
|
28
30
|
endDate?: string | null;
|
|
29
31
|
duration?: number | null;
|
|
30
|
-
state:
|
|
32
|
+
state: ComponentState;
|
|
33
|
+
type: ComponentType;
|
|
34
|
+
isBookable: boolean;
|
|
31
35
|
};
|
|
@@ -3,6 +3,8 @@ import type { ComponentFAQ } from './ComponentFAQ';
|
|
|
3
3
|
import type { ComponentMedia } from './ComponentMedia';
|
|
4
4
|
import type { ComponentNotes } from './ComponentNotes';
|
|
5
5
|
import type { ComponentPricing } from './ComponentPricing';
|
|
6
|
+
import type { ComponentState } from './ComponentState';
|
|
7
|
+
import type { ComponentType } from './ComponentType';
|
|
6
8
|
import type { Field } from './Field';
|
|
7
9
|
import type { Metadata } from './Metadata';
|
|
8
10
|
import type { Package } from './Package';
|
|
@@ -23,9 +25,11 @@ export type DTOComponentRead = {
|
|
|
23
25
|
faq?: ComponentFAQ;
|
|
24
26
|
pricing: ComponentPricing;
|
|
25
27
|
componentFields: Array<Field>;
|
|
26
|
-
package
|
|
28
|
+
package?: Package;
|
|
27
29
|
startDate?: string | null;
|
|
28
30
|
endDate?: string | null;
|
|
29
31
|
duration?: number | null;
|
|
30
|
-
state:
|
|
32
|
+
state: ComponentState;
|
|
33
|
+
type: ComponentType;
|
|
34
|
+
isBookable: boolean;
|
|
31
35
|
};
|
|
@@ -3,6 +3,8 @@ import type { ComponentFAQ } from './ComponentFAQ';
|
|
|
3
3
|
import type { ComponentMedia } from './ComponentMedia';
|
|
4
4
|
import type { ComponentNotes } from './ComponentNotes';
|
|
5
5
|
import type { ComponentPricing } from './ComponentPricing';
|
|
6
|
+
import type { ComponentState } from './ComponentState';
|
|
7
|
+
import type { ComponentType } from './ComponentType';
|
|
6
8
|
import type { Field } from './Field';
|
|
7
9
|
import type { Package } from './Package';
|
|
8
10
|
export type DTOComponentUpdate = {
|
|
@@ -19,5 +21,7 @@ export type DTOComponentUpdate = {
|
|
|
19
21
|
startDate?: string | null;
|
|
20
22
|
endDate?: string | null;
|
|
21
23
|
duration?: number | null;
|
|
22
|
-
state?:
|
|
24
|
+
state?: ComponentState;
|
|
25
|
+
type?: ComponentType;
|
|
26
|
+
isBookable?: boolean;
|
|
23
27
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var Meals;
|
|
6
|
+
(function (Meals) {
|
|
7
|
+
Meals["BREAKFAST"] = "Breakfast";
|
|
8
|
+
Meals["LUNCH"] = "Lunch";
|
|
9
|
+
Meals["BOX_LUNCH"] = "Box Lunch";
|
|
10
|
+
Meals["DINNER"] = "Dinner";
|
|
11
|
+
Meals["SNACKS"] = "Snacks";
|
|
12
|
+
})(Meals || (Meals = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Meals } from './Meals';
|
|
1
2
|
import type { PackageItem } from './PackageItem';
|
|
2
3
|
export type PackageSpan = {
|
|
3
4
|
title: string;
|
|
@@ -5,5 +6,5 @@ export type PackageSpan = {
|
|
|
5
6
|
items: Array<PackageItem>;
|
|
6
7
|
startDay: number;
|
|
7
8
|
endDay: number;
|
|
8
|
-
meals?: Array<
|
|
9
|
+
meals?: Array<Meals>;
|
|
9
10
|
};
|
|
@@ -7,6 +7,7 @@ export type { AssignedTravellerGroup } from './models/AssignedTravellerGroup';
|
|
|
7
7
|
export type { Assignments } from './models/Assignments';
|
|
8
8
|
export type { BookingItem } from './models/BookingItem';
|
|
9
9
|
export type { BookingItemResponse } from './models/BookingItemResponse';
|
|
10
|
+
export { BookingStatus } from './models/BookingStatus';
|
|
10
11
|
export type { ComponentDescription } from './models/ComponentDescription';
|
|
11
12
|
export type { ComponentFAQ } from './models/ComponentFAQ';
|
|
12
13
|
export type { componentId } from './models/componentId';
|
|
@@ -14,6 +15,8 @@ export type { ComponentInstance } from './models/ComponentInstance';
|
|
|
14
15
|
export type { ComponentMedia } from './models/ComponentMedia';
|
|
15
16
|
export type { ComponentNotes } from './models/ComponentNotes';
|
|
16
17
|
export type { ComponentPricing } from './models/ComponentPricing';
|
|
18
|
+
export { ComponentState } from './models/ComponentState';
|
|
19
|
+
export { ComponentType } from './models/ComponentType';
|
|
17
20
|
export type { CurrencyItem } from './models/CurrencyItem';
|
|
18
21
|
export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
|
|
19
22
|
export type { DTOComponentCreate } from './models/DTOComponentCreate';
|
|
@@ -40,6 +43,7 @@ export type { id } from './models/id';
|
|
|
40
43
|
export type { itemsPerPage } from './models/itemsPerPage';
|
|
41
44
|
export type { itineraryId } from './models/itineraryId';
|
|
42
45
|
export type { Limit } from './models/Limit';
|
|
46
|
+
export { Meals } from './models/Meals';
|
|
43
47
|
export type { Member } from './models/Member';
|
|
44
48
|
export type { Metadata } from './models/Metadata';
|
|
45
49
|
export type { Package } from './models/Package';
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
export { ApiError } from './core/ApiError';
|
|
6
6
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
|
+
export { BookingStatus } from './models/BookingStatus';
|
|
9
|
+
export { ComponentState } from './models/ComponentState';
|
|
10
|
+
export { ComponentType } from './models/ComponentType';
|
|
11
|
+
export { Meals } from './models/Meals';
|
|
8
12
|
export { regionParam } from './models/regionParam';
|
|
9
13
|
export { regionRequired } from './models/regionRequired';
|
|
10
14
|
export { ItineraryService } from './services/ItineraryService';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var BookingStatus;
|
|
6
|
+
(function (BookingStatus) {
|
|
7
|
+
BookingStatus["REQUESTED_WITH_PARTNER"] = "RequestedWithPartner";
|
|
8
|
+
BookingStatus["ON_HOLD"] = "OnHold";
|
|
9
|
+
BookingStatus["CONFIRMED"] = "Confirmed";
|
|
10
|
+
BookingStatus["CANCELLED"] = "Cancelled";
|
|
11
|
+
BookingStatus["TO_BE_CONFIRMED"] = "ToBeConfirmed";
|
|
12
|
+
})(BookingStatus || (BookingStatus = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AssignedPassenger } from './AssignedPassenger';
|
|
2
2
|
import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
|
|
3
|
+
import type { BookingStatus } from './BookingStatus';
|
|
3
4
|
import type { Field } from './Field';
|
|
4
5
|
import type { UserComponentInstanceField } from './UserComponentInstanceField';
|
|
5
6
|
export type ComponentInstance = {
|
|
@@ -14,4 +15,6 @@ export type ComponentInstance = {
|
|
|
14
15
|
commissionPercent?: number | null;
|
|
15
16
|
startDate?: string | null;
|
|
16
17
|
endDate?: string | null;
|
|
18
|
+
isNew?: boolean;
|
|
19
|
+
bookingStatus?: BookingStatus;
|
|
17
20
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var ComponentState;
|
|
6
|
+
(function (ComponentState) {
|
|
7
|
+
ComponentState["DRAFT"] = "Draft";
|
|
8
|
+
ComponentState["PENDING_REVIEW"] = "Pending Review";
|
|
9
|
+
ComponentState["APPROVED"] = "Approved";
|
|
10
|
+
})(ComponentState || (ComponentState = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum ComponentType {
|
|
2
|
+
GROUND_ACCOMMODATION = "Ground Accommodation",
|
|
3
|
+
SHIP_ACCOMMODATION = "Ship Accommodation",
|
|
4
|
+
ACTIVITY = "Activity",
|
|
5
|
+
LOCATION = "Location",
|
|
6
|
+
JOURNEY = "Journey",
|
|
7
|
+
TRANSFER = "Transfer",
|
|
8
|
+
EXCURSION = "Excursion",
|
|
9
|
+
PRIVATE_TOUR = "Private Tour",
|
|
10
|
+
ALL_INCLUSIVE_HOTEL = "All Inclusive Hotel",
|
|
11
|
+
CRUISE = "Cruise",
|
|
12
|
+
MULTI_DAY_ACTIVITY = "Multi-day Activity"
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var ComponentType;
|
|
6
|
+
(function (ComponentType) {
|
|
7
|
+
ComponentType["GROUND_ACCOMMODATION"] = "Ground Accommodation";
|
|
8
|
+
ComponentType["SHIP_ACCOMMODATION"] = "Ship Accommodation";
|
|
9
|
+
ComponentType["ACTIVITY"] = "Activity";
|
|
10
|
+
ComponentType["LOCATION"] = "Location";
|
|
11
|
+
ComponentType["JOURNEY"] = "Journey";
|
|
12
|
+
ComponentType["TRANSFER"] = "Transfer";
|
|
13
|
+
ComponentType["EXCURSION"] = "Excursion";
|
|
14
|
+
ComponentType["PRIVATE_TOUR"] = "Private Tour";
|
|
15
|
+
ComponentType["ALL_INCLUSIVE_HOTEL"] = "All Inclusive Hotel";
|
|
16
|
+
ComponentType["CRUISE"] = "Cruise";
|
|
17
|
+
ComponentType["MULTI_DAY_ACTIVITY"] = "Multi-day Activity";
|
|
18
|
+
})(ComponentType || (ComponentType = {}));
|
|
@@ -3,6 +3,8 @@ import type { ComponentFAQ } from './ComponentFAQ';
|
|
|
3
3
|
import type { ComponentMedia } from './ComponentMedia';
|
|
4
4
|
import type { ComponentNotes } from './ComponentNotes';
|
|
5
5
|
import type { ComponentPricing } from './ComponentPricing';
|
|
6
|
+
import type { ComponentState } from './ComponentState';
|
|
7
|
+
import type { ComponentType } from './ComponentType';
|
|
6
8
|
import type { Field } from './Field';
|
|
7
9
|
import type { Package } from './Package';
|
|
8
10
|
export type DTOComponentCreate = {
|
|
@@ -21,6 +23,8 @@ export type DTOComponentCreate = {
|
|
|
21
23
|
startDate?: string | null;
|
|
22
24
|
endDate?: string | null;
|
|
23
25
|
duration?: number | null;
|
|
24
|
-
state:
|
|
26
|
+
state: ComponentState;
|
|
27
|
+
type: ComponentType;
|
|
28
|
+
isBookable: boolean;
|
|
25
29
|
templateId: string;
|
|
26
30
|
};
|
|
@@ -3,6 +3,8 @@ import type { ComponentFAQ } from './ComponentFAQ';
|
|
|
3
3
|
import type { ComponentMedia } from './ComponentMedia';
|
|
4
4
|
import type { ComponentNotes } from './ComponentNotes';
|
|
5
5
|
import type { ComponentPricing } from './ComponentPricing';
|
|
6
|
+
import type { ComponentState } from './ComponentState';
|
|
7
|
+
import type { ComponentType } from './ComponentType';
|
|
6
8
|
import type { Field } from './Field';
|
|
7
9
|
import type { Metadata } from './Metadata';
|
|
8
10
|
import type { Package } from './Package';
|
|
@@ -23,9 +25,11 @@ export type DTOComponentEntity = {
|
|
|
23
25
|
faq?: ComponentFAQ;
|
|
24
26
|
pricing: ComponentPricing;
|
|
25
27
|
componentFields: Array<Field>;
|
|
26
|
-
package
|
|
28
|
+
package?: Package;
|
|
27
29
|
startDate?: string | null;
|
|
28
30
|
endDate?: string | null;
|
|
29
31
|
duration?: number | null;
|
|
30
|
-
state:
|
|
32
|
+
state: ComponentState;
|
|
33
|
+
type: ComponentType;
|
|
34
|
+
isBookable: boolean;
|
|
31
35
|
};
|
|
@@ -3,6 +3,8 @@ import type { ComponentFAQ } from './ComponentFAQ';
|
|
|
3
3
|
import type { ComponentMedia } from './ComponentMedia';
|
|
4
4
|
import type { ComponentNotes } from './ComponentNotes';
|
|
5
5
|
import type { ComponentPricing } from './ComponentPricing';
|
|
6
|
+
import type { ComponentState } from './ComponentState';
|
|
7
|
+
import type { ComponentType } from './ComponentType';
|
|
6
8
|
import type { Field } from './Field';
|
|
7
9
|
import type { Metadata } from './Metadata';
|
|
8
10
|
import type { Package } from './Package';
|
|
@@ -23,9 +25,11 @@ export type DTOComponentRead = {
|
|
|
23
25
|
faq?: ComponentFAQ;
|
|
24
26
|
pricing: ComponentPricing;
|
|
25
27
|
componentFields: Array<Field>;
|
|
26
|
-
package
|
|
28
|
+
package?: Package;
|
|
27
29
|
startDate?: string | null;
|
|
28
30
|
endDate?: string | null;
|
|
29
31
|
duration?: number | null;
|
|
30
|
-
state:
|
|
32
|
+
state: ComponentState;
|
|
33
|
+
type: ComponentType;
|
|
34
|
+
isBookable: boolean;
|
|
31
35
|
};
|
|
@@ -3,6 +3,8 @@ import type { ComponentFAQ } from './ComponentFAQ';
|
|
|
3
3
|
import type { ComponentMedia } from './ComponentMedia';
|
|
4
4
|
import type { ComponentNotes } from './ComponentNotes';
|
|
5
5
|
import type { ComponentPricing } from './ComponentPricing';
|
|
6
|
+
import type { ComponentState } from './ComponentState';
|
|
7
|
+
import type { ComponentType } from './ComponentType';
|
|
6
8
|
import type { Field } from './Field';
|
|
7
9
|
import type { Package } from './Package';
|
|
8
10
|
export type DTOComponentUpdate = {
|
|
@@ -19,5 +21,7 @@ export type DTOComponentUpdate = {
|
|
|
19
21
|
startDate?: string | null;
|
|
20
22
|
endDate?: string | null;
|
|
21
23
|
duration?: number | null;
|
|
22
|
-
state?:
|
|
24
|
+
state?: ComponentState;
|
|
25
|
+
type?: ComponentType;
|
|
26
|
+
isBookable?: boolean;
|
|
23
27
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var Meals;
|
|
6
|
+
(function (Meals) {
|
|
7
|
+
Meals["BREAKFAST"] = "Breakfast";
|
|
8
|
+
Meals["LUNCH"] = "Lunch";
|
|
9
|
+
Meals["BOX_LUNCH"] = "Box Lunch";
|
|
10
|
+
Meals["DINNER"] = "Dinner";
|
|
11
|
+
Meals["SNACKS"] = "Snacks";
|
|
12
|
+
})(Meals || (Meals = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Meals } from './Meals';
|
|
1
2
|
import type { PackageItem } from './PackageItem';
|
|
2
3
|
export type PackageSpan = {
|
|
3
4
|
title: string;
|
|
@@ -5,5 +6,5 @@ export type PackageSpan = {
|
|
|
5
6
|
items: Array<PackageItem>;
|
|
6
7
|
startDay: number;
|
|
7
8
|
endDay: number;
|
|
8
|
-
meals?: Array<
|
|
9
|
+
meals?: Array<Meals>;
|
|
9
10
|
};
|
|
@@ -18,10 +18,12 @@ export declare const fetchComponents: () => Promise<{
|
|
|
18
18
|
faq?: import("../../api/generated/core").ComponentFAQ;
|
|
19
19
|
pricing: import("../../api/generated/core").ComponentPricing;
|
|
20
20
|
componentFields: Array<import("../../api/generated/core").Field>;
|
|
21
|
-
package
|
|
21
|
+
package?: import("../../api/generated/core").Package;
|
|
22
22
|
startDate?: string | null;
|
|
23
23
|
endDate?: string | null;
|
|
24
24
|
duration?: number | null;
|
|
25
|
-
state:
|
|
25
|
+
state: import("../../api/generated/core").ComponentState;
|
|
26
|
+
type: import("../../api/generated/core").ComponentType;
|
|
27
|
+
isBookable: boolean;
|
|
26
28
|
}[];
|
|
27
29
|
}>;
|