swoop-common 2.0.10 → 2.0.11
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 -4
- package/dist/api/generated/core/index.d.ts +4 -4
- package/dist/api/generated/core/models/AssignedPassenger.d.ts +1 -1
- package/dist/api/generated/core/models/AssignedTravellerGroup.d.ts +1 -1
- package/dist/api/generated/core/models/Bundle.d.ts +2 -2
- package/dist/api/generated/core/models/BundleDay.d.ts +5 -5
- package/dist/api/generated/core/models/BundleItem.d.ts +3 -3
- package/dist/api/generated/core/models/ComponentInstance.d.ts +3 -8
- package/dist/api/generated/core/models/DTOComponentCreate.d.ts +2 -8
- package/dist/api/generated/core/models/{Component.d.ts → DTOComponentEntity.d.ts} +4 -7
- package/dist/api/generated/core/models/DTOComponentRead.d.ts +3 -2
- package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +2 -8
- package/dist/api/generated/core/models/DTOItineraryCreate.d.ts +4 -1
- package/dist/api/generated/{itinerary/models/Itinerary.d.ts → core/models/DTOItineraryEntity.d.ts} +2 -5
- package/dist/api/generated/core/models/DTOItineraryRead.d.ts +4 -3
- package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +4 -0
- package/dist/api/generated/core/models/DTORegionCreate.d.ts +1 -1
- package/dist/api/generated/core/models/{Region.d.ts → DTORegionEntity.d.ts} +1 -1
- package/dist/api/generated/core/models/DTOTemplateCreate.d.ts +0 -3
- package/dist/api/generated/{itinerary/models/Template.d.ts → core/models/DTOTemplateEntity.d.ts} +1 -1
- package/dist/api/generated/core/models/DTOTemplateRead.d.ts +1 -0
- package/dist/api/generated/core/models/Metadata.d.ts +2 -2
- package/dist/api/generated/core/models/ValidationSchemas.d.ts +1 -1
- package/dist/api/generated/itinerary/index.d.ts +4 -4
- package/dist/api/generated/itinerary/models/AssignedPassenger.d.ts +1 -1
- package/dist/api/generated/itinerary/models/AssignedTravellerGroup.d.ts +1 -1
- package/dist/api/generated/itinerary/models/Bundle.d.ts +2 -2
- package/dist/api/generated/itinerary/models/BundleDay.d.ts +5 -5
- package/dist/api/generated/itinerary/models/BundleItem.d.ts +3 -3
- package/dist/api/generated/itinerary/models/ComponentInstance.d.ts +3 -8
- package/dist/api/generated/itinerary/models/DTOComponentCreate.d.ts +2 -8
- package/dist/api/generated/itinerary/models/{Component.d.ts → DTOComponentEntity.d.ts} +4 -7
- package/dist/api/generated/itinerary/models/DTOComponentRead.d.ts +3 -2
- package/dist/api/generated/itinerary/models/DTOComponentUpdate.d.ts +2 -8
- package/dist/api/generated/itinerary/models/DTOItineraryCreate.d.ts +4 -1
- package/dist/api/generated/{core/models/Itinerary.d.ts → itinerary/models/DTOItineraryEntity.d.ts} +2 -5
- package/dist/api/generated/itinerary/models/DTOItineraryRead.d.ts +4 -3
- package/dist/api/generated/itinerary/models/DTOItineraryUpdate.d.ts +4 -0
- package/dist/api/generated/itinerary/models/DTORegionCreate.d.ts +1 -1
- package/dist/api/generated/itinerary/models/{Region.d.ts → DTORegionEntity.d.ts} +1 -1
- package/dist/api/generated/itinerary/models/DTOTemplateCreate.d.ts +0 -3
- package/dist/api/generated/{core/models/Template.d.ts → itinerary/models/DTOTemplateEntity.d.ts} +1 -1
- package/dist/api/generated/itinerary/models/DTOTemplateRead.d.ts +1 -0
- package/dist/api/generated/itinerary/models/Metadata.d.ts +2 -2
- package/dist/api/generated/itinerary/models/ValidationSchemas.d.ts +1 -1
- package/dist/rendering/renderers/ComponentPicker.d.ts +3 -2
- package/package.json +1 -1
- /package/dist/api/generated/core/models/{Component.js → DTOComponentEntity.js} +0 -0
- /package/dist/api/generated/core/models/{Itinerary.js → DTOItineraryEntity.js} +0 -0
- /package/dist/api/generated/core/models/{Region.js → DTORegionEntity.js} +0 -0
- /package/dist/api/generated/core/models/{Template.js → DTOTemplateEntity.js} +0 -0
- /package/dist/api/generated/itinerary/models/{Component.js → DTOComponentEntity.js} +0 -0
- /package/dist/api/generated/itinerary/models/{Itinerary.js → DTOItineraryEntity.js} +0 -0
- /package/dist/api/generated/itinerary/models/{Region.js → DTORegionEntity.js} +0 -0
- /package/dist/api/generated/itinerary/models/{Template.js → DTOTemplateEntity.js} +0 -0
|
@@ -8,22 +8,25 @@ export type { BookingItemResponse } from './index';
|
|
|
8
8
|
export type { Bundle } from './index';
|
|
9
9
|
export type { BundleDay } from './index';
|
|
10
10
|
export type { BundleItem } from './index';
|
|
11
|
-
export type { Component } from './index';
|
|
12
11
|
export type { ComponentDetails } from './index';
|
|
13
12
|
export type { componentId } from './index';
|
|
14
13
|
export type { ComponentInstance } from './index';
|
|
15
14
|
export type { CurrencyItem } from './index';
|
|
16
15
|
export type { CurrencyItemResponse } from './index';
|
|
17
16
|
export type { DTOComponentCreate } from './index';
|
|
17
|
+
export type { DTOComponentEntity } from './index';
|
|
18
18
|
export type { DTOComponentRead } from './index';
|
|
19
19
|
export type { DTOComponentUpdate } from './index';
|
|
20
20
|
export type { DTOItineraryCreate } from './index';
|
|
21
|
+
export type { DTOItineraryEntity } from './index';
|
|
21
22
|
export type { DTOItineraryRead } from './index';
|
|
22
23
|
export type { DTOItineraryUpdate } from './index';
|
|
23
24
|
export type { DTORegionCreate } from './index';
|
|
25
|
+
export type { DTORegionEntity } from './index';
|
|
24
26
|
export type { DTORegionRead } from './index';
|
|
25
27
|
export type { DTORegionUpdate } from './index';
|
|
26
28
|
export type { DTOTemplateCreate } from './index';
|
|
29
|
+
export type { DTOTemplateEntity } from './index';
|
|
27
30
|
export type { DTOTemplateRead } from './index';
|
|
28
31
|
export type { DTOTemplateUpdate } from './index';
|
|
29
32
|
export type { enquiryId } from './index';
|
|
@@ -32,19 +35,16 @@ export type { Field } from './index';
|
|
|
32
35
|
export type { IBEvent } from './index';
|
|
33
36
|
export type { id } from './index';
|
|
34
37
|
export type { itemsPerPage } from './index';
|
|
35
|
-
export type { Itinerary } from './index';
|
|
36
38
|
export type { itineraryId } from './index';
|
|
37
39
|
export type { Limit } from './index';
|
|
38
40
|
export type { Member } from './index';
|
|
39
41
|
export type { Metadata } from './index';
|
|
40
42
|
export type { Page } from './index';
|
|
41
43
|
export type { Pagination } from './index';
|
|
42
|
-
export type { Region } from './index';
|
|
43
44
|
export { regionParam } from './index';
|
|
44
45
|
export { regionRequired } from './index';
|
|
45
46
|
export type { search } from './index';
|
|
46
47
|
export type { sortParam } from './index';
|
|
47
|
-
export type { Template } from './index';
|
|
48
48
|
export type { templateId } from './index';
|
|
49
49
|
export type { UserComponentInstanceField } from './index';
|
|
50
50
|
export type { ValidationSchemas } from './index';
|
|
@@ -10,22 +10,25 @@ export type { BookingItemResponse } from './models/BookingItemResponse';
|
|
|
10
10
|
export type { Bundle } from './models/Bundle';
|
|
11
11
|
export type { BundleDay } from './models/BundleDay';
|
|
12
12
|
export type { BundleItem } from './models/BundleItem';
|
|
13
|
-
export type { Component } from './models/Component';
|
|
14
13
|
export type { ComponentDetails } from './models/ComponentDetails';
|
|
15
14
|
export type { componentId } from './models/componentId';
|
|
16
15
|
export type { ComponentInstance } from './models/ComponentInstance';
|
|
17
16
|
export type { CurrencyItem } from './models/CurrencyItem';
|
|
18
17
|
export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
|
|
19
18
|
export type { DTOComponentCreate } from './models/DTOComponentCreate';
|
|
19
|
+
export type { DTOComponentEntity } from './models/DTOComponentEntity';
|
|
20
20
|
export type { DTOComponentRead } from './models/DTOComponentRead';
|
|
21
21
|
export type { DTOComponentUpdate } from './models/DTOComponentUpdate';
|
|
22
22
|
export type { DTOItineraryCreate } from './models/DTOItineraryCreate';
|
|
23
|
+
export type { DTOItineraryEntity } from './models/DTOItineraryEntity';
|
|
23
24
|
export type { DTOItineraryRead } from './models/DTOItineraryRead';
|
|
24
25
|
export type { DTOItineraryUpdate } from './models/DTOItineraryUpdate';
|
|
25
26
|
export type { DTORegionCreate } from './models/DTORegionCreate';
|
|
27
|
+
export type { DTORegionEntity } from './models/DTORegionEntity';
|
|
26
28
|
export type { DTORegionRead } from './models/DTORegionRead';
|
|
27
29
|
export type { DTORegionUpdate } from './models/DTORegionUpdate';
|
|
28
30
|
export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
|
|
31
|
+
export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
|
|
29
32
|
export type { DTOTemplateRead } from './models/DTOTemplateRead';
|
|
30
33
|
export type { DTOTemplateUpdate } from './models/DTOTemplateUpdate';
|
|
31
34
|
export type { enquiryId } from './models/enquiryId';
|
|
@@ -34,19 +37,16 @@ export type { Field } from './models/Field';
|
|
|
34
37
|
export type { IBEvent } from './models/IBEvent';
|
|
35
38
|
export type { id } from './models/id';
|
|
36
39
|
export type { itemsPerPage } from './models/itemsPerPage';
|
|
37
|
-
export type { Itinerary } from './models/Itinerary';
|
|
38
40
|
export type { itineraryId } from './models/itineraryId';
|
|
39
41
|
export type { Limit } from './models/Limit';
|
|
40
42
|
export type { Member } from './models/Member';
|
|
41
43
|
export type { Metadata } from './models/Metadata';
|
|
42
44
|
export type { Page } from './models/Page';
|
|
43
45
|
export type { Pagination } from './models/Pagination';
|
|
44
|
-
export type { Region } from './models/Region';
|
|
45
46
|
export { regionParam } from './models/regionParam';
|
|
46
47
|
export { regionRequired } from './models/regionRequired';
|
|
47
48
|
export type { search } from './models/search';
|
|
48
49
|
export type { sortParam } from './models/sortParam';
|
|
49
|
-
export type { Template } from './models/Template';
|
|
50
50
|
export type { templateId } from './models/templateId';
|
|
51
51
|
export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
|
|
52
52
|
export type { ValidationSchemas } from './models/ValidationSchemas';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BundleItem } from './BundleItem';
|
|
2
2
|
export type BundleDay = {
|
|
3
|
-
title
|
|
4
|
-
description
|
|
5
|
-
|
|
6
|
-
startDay
|
|
7
|
-
endDay
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
bundleItems: BundleItem;
|
|
6
|
+
startDay: number;
|
|
7
|
+
endDay: number;
|
|
8
8
|
};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import type { AssignedPassenger } from './AssignedPassenger';
|
|
2
2
|
import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
|
|
3
3
|
import type { Field } from './Field';
|
|
4
|
-
import type { Metadata } from './Metadata';
|
|
5
4
|
import type { UserComponentInstanceField } from './UserComponentInstanceField';
|
|
6
5
|
export type ComponentInstance = {
|
|
7
6
|
id: string;
|
|
8
7
|
componentId: string;
|
|
9
|
-
metadata: Metadata;
|
|
10
8
|
componentInstanceFields: Array<Field>;
|
|
11
9
|
userComponentInstanceFields: Array<UserComponentInstanceField>;
|
|
12
10
|
assignedPassengers: Array<AssignedPassenger>;
|
|
13
11
|
assignedTravellerGroups: Array<AssignedTravellerGroup>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
currency?: string;
|
|
18
|
-
commissionPercent?: number;
|
|
19
|
-
partner?: string;
|
|
12
|
+
price?: number | null;
|
|
13
|
+
currency?: string | null;
|
|
14
|
+
commissionPercent?: number | null;
|
|
20
15
|
};
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import type { Bundle } from './Bundle';
|
|
2
2
|
import type { ComponentDetails } from './ComponentDetails';
|
|
3
3
|
import type { Field } from './Field';
|
|
4
|
-
import type { Metadata } from './Metadata';
|
|
5
4
|
export type DTOComponentCreate = {
|
|
6
|
-
id: string;
|
|
7
5
|
orgId: string;
|
|
8
|
-
templateId: string;
|
|
9
|
-
revisionGroupId: string;
|
|
10
|
-
revision: number;
|
|
11
|
-
metadata: Metadata;
|
|
12
6
|
name: string;
|
|
13
7
|
componentFields: Array<Field>;
|
|
14
8
|
partners: Array<string>;
|
|
9
|
+
details: ComponentDetails;
|
|
15
10
|
bundle: Bundle;
|
|
16
11
|
startDate?: string | null;
|
|
17
12
|
endDate?: string | null;
|
|
18
13
|
duration?: number | null;
|
|
19
|
-
|
|
20
|
-
state?: string | null;
|
|
14
|
+
state: string;
|
|
21
15
|
};
|
|
@@ -2,10 +2,7 @@ import type { Bundle } from './Bundle';
|
|
|
2
2
|
import type { ComponentDetails } from './ComponentDetails';
|
|
3
3
|
import type { Field } from './Field';
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
|
-
export type
|
|
6
|
-
/**
|
|
7
|
-
* Unique identifier
|
|
8
|
-
*/
|
|
5
|
+
export type DTOComponentEntity = {
|
|
9
6
|
id: string;
|
|
10
7
|
orgId: string;
|
|
11
8
|
templateId: string;
|
|
@@ -15,10 +12,10 @@ export type Component = {
|
|
|
15
12
|
name: string;
|
|
16
13
|
componentFields: Array<Field>;
|
|
17
14
|
partners: Array<string>;
|
|
15
|
+
details: ComponentDetails;
|
|
16
|
+
bundle: Bundle;
|
|
18
17
|
startDate?: string | null;
|
|
19
18
|
endDate?: string | null;
|
|
20
19
|
duration?: number | null;
|
|
21
|
-
|
|
22
|
-
bundle: Bundle;
|
|
23
|
-
state?: string | null;
|
|
20
|
+
state: string;
|
|
24
21
|
};
|
|
@@ -4,6 +4,7 @@ import type { Field } from './Field';
|
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
5
|
export type DTOComponentRead = {
|
|
6
6
|
id: string;
|
|
7
|
+
orgId: string;
|
|
7
8
|
templateId: string;
|
|
8
9
|
revisionGroupId: string;
|
|
9
10
|
revision: number;
|
|
@@ -11,10 +12,10 @@ export type DTOComponentRead = {
|
|
|
11
12
|
name: string;
|
|
12
13
|
componentFields: Array<Field>;
|
|
13
14
|
partners: Array<string>;
|
|
15
|
+
details: ComponentDetails;
|
|
14
16
|
bundle: Bundle;
|
|
15
17
|
startDate?: string | null;
|
|
16
18
|
endDate?: string | null;
|
|
17
19
|
duration?: number | null;
|
|
18
|
-
|
|
19
|
-
state?: string | null;
|
|
20
|
+
state: string;
|
|
20
21
|
};
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import type { Bundle } from './Bundle';
|
|
2
2
|
import type { ComponentDetails } from './ComponentDetails';
|
|
3
3
|
import type { Field } from './Field';
|
|
4
|
-
import type { Metadata } from './Metadata';
|
|
5
4
|
export type DTOComponentUpdate = {
|
|
6
|
-
id: string;
|
|
7
|
-
templateId: string;
|
|
8
|
-
revisionGroupId: string;
|
|
9
|
-
revision: number;
|
|
10
|
-
metadata: Metadata;
|
|
11
5
|
name: string;
|
|
12
6
|
componentFields: Array<Field>;
|
|
13
7
|
partners: Array<string>;
|
|
8
|
+
details: ComponentDetails;
|
|
14
9
|
bundle: Bundle;
|
|
15
10
|
startDate?: string | null;
|
|
16
11
|
endDate?: string | null;
|
|
17
12
|
duration?: number | null;
|
|
18
|
-
|
|
19
|
-
state?: string | null;
|
|
13
|
+
state: string;
|
|
20
14
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
|
+
import type { Fee } from './Fee';
|
|
2
3
|
export type DTOItineraryCreate = {
|
|
3
|
-
|
|
4
|
+
enquirerId: string;
|
|
5
|
+
title: string;
|
|
4
6
|
componentInstances: Array<ComponentInstance>;
|
|
7
|
+
fees: Array<Fee>;
|
|
5
8
|
};
|
package/dist/api/generated/{itinerary/models/Itinerary.d.ts → core/models/DTOItineraryEntity.d.ts}
RENAMED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
2
|
import type { Fee } from './Fee';
|
|
3
3
|
import type { Metadata } from './Metadata';
|
|
4
|
-
export type
|
|
5
|
-
/**
|
|
6
|
-
* Unique identifier
|
|
7
|
-
*/
|
|
4
|
+
export type DTOItineraryEntity = {
|
|
8
5
|
id: string;
|
|
9
|
-
title: string;
|
|
10
6
|
enquirerId: string;
|
|
11
7
|
metadata: Metadata;
|
|
8
|
+
title: string;
|
|
12
9
|
componentInstances: Array<ComponentInstance>;
|
|
13
10
|
fees: Array<Fee>;
|
|
14
11
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
|
+
import type { Fee } from './Fee';
|
|
2
3
|
import type { Metadata } from './Metadata';
|
|
3
4
|
export type DTOItineraryRead = {
|
|
4
5
|
id: string;
|
|
5
|
-
|
|
6
|
-
revisionGroupId: string;
|
|
7
|
-
revision: number;
|
|
6
|
+
enquirerId: string;
|
|
8
7
|
metadata: Metadata;
|
|
8
|
+
title: string;
|
|
9
9
|
componentInstances: Array<ComponentInstance>;
|
|
10
|
+
fees: Array<Fee>;
|
|
10
11
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type { Metadata } from './Metadata';
|
|
2
1
|
import type { ValidationSchemas } from './ValidationSchemas';
|
|
3
2
|
export type DTOTemplateCreate = {
|
|
4
3
|
orgId: string;
|
|
5
|
-
parentRevisionGroupId: string;
|
|
6
|
-
metadata: Metadata;
|
|
7
4
|
name: string;
|
|
8
5
|
masterSchema: string;
|
|
9
6
|
validationSchemas: ValidationSchemas;
|
|
@@ -10,22 +10,25 @@ export type { BookingItemResponse } from './models/BookingItemResponse';
|
|
|
10
10
|
export type { Bundle } from './models/Bundle';
|
|
11
11
|
export type { BundleDay } from './models/BundleDay';
|
|
12
12
|
export type { BundleItem } from './models/BundleItem';
|
|
13
|
-
export type { Component } from './models/Component';
|
|
14
13
|
export type { ComponentDetails } from './models/ComponentDetails';
|
|
15
14
|
export type { componentId } from './models/componentId';
|
|
16
15
|
export type { ComponentInstance } from './models/ComponentInstance';
|
|
17
16
|
export type { CurrencyItem } from './models/CurrencyItem';
|
|
18
17
|
export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
|
|
19
18
|
export type { DTOComponentCreate } from './models/DTOComponentCreate';
|
|
19
|
+
export type { DTOComponentEntity } from './models/DTOComponentEntity';
|
|
20
20
|
export type { DTOComponentRead } from './models/DTOComponentRead';
|
|
21
21
|
export type { DTOComponentUpdate } from './models/DTOComponentUpdate';
|
|
22
22
|
export type { DTOItineraryCreate } from './models/DTOItineraryCreate';
|
|
23
|
+
export type { DTOItineraryEntity } from './models/DTOItineraryEntity';
|
|
23
24
|
export type { DTOItineraryRead } from './models/DTOItineraryRead';
|
|
24
25
|
export type { DTOItineraryUpdate } from './models/DTOItineraryUpdate';
|
|
25
26
|
export type { DTORegionCreate } from './models/DTORegionCreate';
|
|
27
|
+
export type { DTORegionEntity } from './models/DTORegionEntity';
|
|
26
28
|
export type { DTORegionRead } from './models/DTORegionRead';
|
|
27
29
|
export type { DTORegionUpdate } from './models/DTORegionUpdate';
|
|
28
30
|
export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
|
|
31
|
+
export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
|
|
29
32
|
export type { DTOTemplateRead } from './models/DTOTemplateRead';
|
|
30
33
|
export type { DTOTemplateUpdate } from './models/DTOTemplateUpdate';
|
|
31
34
|
export type { enquiryId } from './models/enquiryId';
|
|
@@ -34,19 +37,16 @@ export type { Field } from './models/Field';
|
|
|
34
37
|
export type { IBEvent } from './models/IBEvent';
|
|
35
38
|
export type { id } from './models/id';
|
|
36
39
|
export type { itemsPerPage } from './models/itemsPerPage';
|
|
37
|
-
export type { Itinerary } from './models/Itinerary';
|
|
38
40
|
export type { itineraryId } from './models/itineraryId';
|
|
39
41
|
export type { Limit } from './models/Limit';
|
|
40
42
|
export type { Member } from './models/Member';
|
|
41
43
|
export type { Metadata } from './models/Metadata';
|
|
42
44
|
export type { Page } from './models/Page';
|
|
43
45
|
export type { Pagination } from './models/Pagination';
|
|
44
|
-
export type { Region } from './models/Region';
|
|
45
46
|
export { regionParam } from './models/regionParam';
|
|
46
47
|
export { regionRequired } from './models/regionRequired';
|
|
47
48
|
export type { search } from './models/search';
|
|
48
49
|
export type { sortParam } from './models/sortParam';
|
|
49
|
-
export type { Template } from './models/Template';
|
|
50
50
|
export type { templateId } from './models/templateId';
|
|
51
51
|
export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
|
|
52
52
|
export type { ValidationSchemas } from './models/ValidationSchemas';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BundleItem } from './BundleItem';
|
|
2
2
|
export type BundleDay = {
|
|
3
|
-
title
|
|
4
|
-
description
|
|
5
|
-
|
|
6
|
-
startDay
|
|
7
|
-
endDay
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
bundleItems: BundleItem;
|
|
6
|
+
startDay: number;
|
|
7
|
+
endDay: number;
|
|
8
8
|
};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import type { AssignedPassenger } from './AssignedPassenger';
|
|
2
2
|
import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
|
|
3
3
|
import type { Field } from './Field';
|
|
4
|
-
import type { Metadata } from './Metadata';
|
|
5
4
|
import type { UserComponentInstanceField } from './UserComponentInstanceField';
|
|
6
5
|
export type ComponentInstance = {
|
|
7
6
|
id: string;
|
|
8
7
|
componentId: string;
|
|
9
|
-
metadata: Metadata;
|
|
10
8
|
componentInstanceFields: Array<Field>;
|
|
11
9
|
userComponentInstanceFields: Array<UserComponentInstanceField>;
|
|
12
10
|
assignedPassengers: Array<AssignedPassenger>;
|
|
13
11
|
assignedTravellerGroups: Array<AssignedTravellerGroup>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
currency?: string;
|
|
18
|
-
commissionPercent?: number;
|
|
19
|
-
partner?: string;
|
|
12
|
+
price?: number | null;
|
|
13
|
+
currency?: string | null;
|
|
14
|
+
commissionPercent?: number | null;
|
|
20
15
|
};
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import type { Bundle } from './Bundle';
|
|
2
2
|
import type { ComponentDetails } from './ComponentDetails';
|
|
3
3
|
import type { Field } from './Field';
|
|
4
|
-
import type { Metadata } from './Metadata';
|
|
5
4
|
export type DTOComponentCreate = {
|
|
6
|
-
id: string;
|
|
7
5
|
orgId: string;
|
|
8
|
-
templateId: string;
|
|
9
|
-
revisionGroupId: string;
|
|
10
|
-
revision: number;
|
|
11
|
-
metadata: Metadata;
|
|
12
6
|
name: string;
|
|
13
7
|
componentFields: Array<Field>;
|
|
14
8
|
partners: Array<string>;
|
|
9
|
+
details: ComponentDetails;
|
|
15
10
|
bundle: Bundle;
|
|
16
11
|
startDate?: string | null;
|
|
17
12
|
endDate?: string | null;
|
|
18
13
|
duration?: number | null;
|
|
19
|
-
|
|
20
|
-
state?: string | null;
|
|
14
|
+
state: string;
|
|
21
15
|
};
|
|
@@ -2,10 +2,7 @@ import type { Bundle } from './Bundle';
|
|
|
2
2
|
import type { ComponentDetails } from './ComponentDetails';
|
|
3
3
|
import type { Field } from './Field';
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
|
-
export type
|
|
6
|
-
/**
|
|
7
|
-
* Unique identifier
|
|
8
|
-
*/
|
|
5
|
+
export type DTOComponentEntity = {
|
|
9
6
|
id: string;
|
|
10
7
|
orgId: string;
|
|
11
8
|
templateId: string;
|
|
@@ -15,10 +12,10 @@ export type Component = {
|
|
|
15
12
|
name: string;
|
|
16
13
|
componentFields: Array<Field>;
|
|
17
14
|
partners: Array<string>;
|
|
15
|
+
details: ComponentDetails;
|
|
16
|
+
bundle: Bundle;
|
|
18
17
|
startDate?: string | null;
|
|
19
18
|
endDate?: string | null;
|
|
20
19
|
duration?: number | null;
|
|
21
|
-
|
|
22
|
-
bundle: Bundle;
|
|
23
|
-
state?: string | null;
|
|
20
|
+
state: string;
|
|
24
21
|
};
|
|
@@ -4,6 +4,7 @@ import type { Field } from './Field';
|
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
5
|
export type DTOComponentRead = {
|
|
6
6
|
id: string;
|
|
7
|
+
orgId: string;
|
|
7
8
|
templateId: string;
|
|
8
9
|
revisionGroupId: string;
|
|
9
10
|
revision: number;
|
|
@@ -11,10 +12,10 @@ export type DTOComponentRead = {
|
|
|
11
12
|
name: string;
|
|
12
13
|
componentFields: Array<Field>;
|
|
13
14
|
partners: Array<string>;
|
|
15
|
+
details: ComponentDetails;
|
|
14
16
|
bundle: Bundle;
|
|
15
17
|
startDate?: string | null;
|
|
16
18
|
endDate?: string | null;
|
|
17
19
|
duration?: number | null;
|
|
18
|
-
|
|
19
|
-
state?: string | null;
|
|
20
|
+
state: string;
|
|
20
21
|
};
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import type { Bundle } from './Bundle';
|
|
2
2
|
import type { ComponentDetails } from './ComponentDetails';
|
|
3
3
|
import type { Field } from './Field';
|
|
4
|
-
import type { Metadata } from './Metadata';
|
|
5
4
|
export type DTOComponentUpdate = {
|
|
6
|
-
id: string;
|
|
7
|
-
templateId: string;
|
|
8
|
-
revisionGroupId: string;
|
|
9
|
-
revision: number;
|
|
10
|
-
metadata: Metadata;
|
|
11
5
|
name: string;
|
|
12
6
|
componentFields: Array<Field>;
|
|
13
7
|
partners: Array<string>;
|
|
8
|
+
details: ComponentDetails;
|
|
14
9
|
bundle: Bundle;
|
|
15
10
|
startDate?: string | null;
|
|
16
11
|
endDate?: string | null;
|
|
17
12
|
duration?: number | null;
|
|
18
|
-
|
|
19
|
-
state?: string | null;
|
|
13
|
+
state: string;
|
|
20
14
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
|
+
import type { Fee } from './Fee';
|
|
2
3
|
export type DTOItineraryCreate = {
|
|
3
|
-
|
|
4
|
+
enquirerId: string;
|
|
5
|
+
title: string;
|
|
4
6
|
componentInstances: Array<ComponentInstance>;
|
|
7
|
+
fees: Array<Fee>;
|
|
5
8
|
};
|
package/dist/api/generated/{core/models/Itinerary.d.ts → itinerary/models/DTOItineraryEntity.d.ts}
RENAMED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
2
|
import type { Fee } from './Fee';
|
|
3
3
|
import type { Metadata } from './Metadata';
|
|
4
|
-
export type
|
|
5
|
-
/**
|
|
6
|
-
* Unique identifier
|
|
7
|
-
*/
|
|
4
|
+
export type DTOItineraryEntity = {
|
|
8
5
|
id: string;
|
|
9
|
-
title: string;
|
|
10
6
|
enquirerId: string;
|
|
11
7
|
metadata: Metadata;
|
|
8
|
+
title: string;
|
|
12
9
|
componentInstances: Array<ComponentInstance>;
|
|
13
10
|
fees: Array<Fee>;
|
|
14
11
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
|
+
import type { Fee } from './Fee';
|
|
2
3
|
import type { Metadata } from './Metadata';
|
|
3
4
|
export type DTOItineraryRead = {
|
|
4
5
|
id: string;
|
|
5
|
-
|
|
6
|
-
revisionGroupId: string;
|
|
7
|
-
revision: number;
|
|
6
|
+
enquirerId: string;
|
|
8
7
|
metadata: Metadata;
|
|
8
|
+
title: string;
|
|
9
9
|
componentInstances: Array<ComponentInstance>;
|
|
10
|
+
fees: Array<Fee>;
|
|
10
11
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type { Metadata } from './Metadata';
|
|
2
1
|
import type { ValidationSchemas } from './ValidationSchemas';
|
|
3
2
|
export type DTOTemplateCreate = {
|
|
4
3
|
orgId: string;
|
|
5
|
-
parentRevisionGroupId: string;
|
|
6
|
-
metadata: Metadata;
|
|
7
4
|
name: string;
|
|
8
5
|
masterSchema: string;
|
|
9
6
|
validationSchemas: ValidationSchemas;
|
|
@@ -3,6 +3,7 @@ export declare const fetchComponents: () => Promise<{
|
|
|
3
3
|
data: {
|
|
4
4
|
revisions: DTOComponentRead[];
|
|
5
5
|
id: string;
|
|
6
|
+
orgId: string;
|
|
6
7
|
templateId: string;
|
|
7
8
|
revisionGroupId: string;
|
|
8
9
|
revision: number;
|
|
@@ -10,11 +11,11 @@ export declare const fetchComponents: () => Promise<{
|
|
|
10
11
|
name: string;
|
|
11
12
|
componentFields: Array<import("../../api/generated/core").Field>;
|
|
12
13
|
partners: Array<string>;
|
|
14
|
+
details: import("../../api/generated/core").ComponentDetails;
|
|
13
15
|
bundle: import("../../api/generated/core").Bundle;
|
|
14
16
|
startDate?: string | null;
|
|
15
17
|
endDate?: string | null;
|
|
16
18
|
duration?: number | null;
|
|
17
|
-
|
|
18
|
-
state?: string | null;
|
|
19
|
+
state: string;
|
|
19
20
|
}[];
|
|
20
21
|
}>;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|