swoop-common 2.2.43 → 2.2.48

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.
Files changed (71) hide show
  1. package/dist/api/generated/core/exports.d.ts +9 -13
  2. package/dist/api/generated/core/exports.js +1 -0
  3. package/dist/api/generated/core/index.d.ts +10 -14
  4. package/dist/api/generated/core/index.js +2 -1
  5. package/dist/api/generated/core/models/Amendment.d.ts +8 -6
  6. package/dist/api/generated/core/models/AmendmentTravellers.d.ts +5 -0
  7. package/dist/api/generated/core/models/AmendmentType.d.ts +3 -0
  8. package/dist/api/generated/core/models/AmendmentType.js +8 -0
  9. package/dist/api/generated/core/models/AssignedPassenger.d.ts +3 -2
  10. package/dist/api/generated/core/models/AssignedTravellerGroup.d.ts +2 -1
  11. package/dist/api/generated/core/models/Branches.d.ts +2 -2
  12. package/dist/api/generated/core/models/ComponentInstance.d.ts +9 -8
  13. package/dist/api/generated/core/models/ComponentInstanceId.d.ts +1 -0
  14. package/dist/api/generated/core/models/DTOItineraryCreate.d.ts +4 -2
  15. package/dist/api/generated/core/models/DTOItineraryEntity.d.ts +4 -2
  16. package/dist/api/generated/core/models/DTOItineraryRead.d.ts +4 -2
  17. package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +2 -0
  18. package/dist/api/generated/core/models/DTOPublicSnapshotCreate.d.ts +9 -4
  19. package/dist/api/generated/core/models/DTOPublicSnapshotEntity.d.ts +9 -4
  20. package/dist/api/generated/core/models/DTOPublicSnapshotRead.d.ts +9 -4
  21. package/dist/api/generated/core/models/DTOPublicSnapshotUpdate.d.ts +4 -1
  22. package/dist/api/generated/core/models/DTOSnapshotCreate.d.ts +2 -2
  23. package/dist/api/generated/core/models/DTOSnapshotEntity.d.ts +2 -2
  24. package/dist/api/generated/core/models/DTOSnapshotRead.d.ts +2 -2
  25. package/dist/api/generated/core/models/DTOSwoopSync.d.ts +2 -2
  26. package/dist/api/generated/core/models/EnquiryId.d.ts +2 -1
  27. package/dist/api/generated/core/models/EnquiryIdPathParam.d.ts +2 -2
  28. package/dist/api/generated/core/models/{IdMap.d.ts → ExpandedMap.d.ts} +1 -2
  29. package/dist/api/generated/core/models/Flag.d.ts +4 -0
  30. package/dist/api/generated/core/models/InternalSwoopId.d.ts +1 -0
  31. package/dist/api/generated/core/models/ItineraryCreateResponse.d.ts +2 -2
  32. package/dist/api/generated/core/models/Partner.d.ts +2 -1
  33. package/dist/api/generated/core/models/Partners.d.ts +2 -2
  34. package/dist/api/generated/core/models/PublicSnapShotEnquiryStatus.d.ts +8 -0
  35. package/dist/api/generated/core/models/PublicSnapshotPerson.d.ts +11 -0
  36. package/dist/api/generated/core/models/{Error.d.ts → SwoopError.d.ts} +1 -2
  37. package/dist/api/generated/core/models/SwoopSyncComponentInstance.d.ts +5 -3
  38. package/dist/api/generated/core/services/CoreService.d.ts +16 -53
  39. package/dist/api/generated/core/services/CoreService.js +22 -101
  40. package/dist/api/generated/core/services/ItineraryService.d.ts +8 -8
  41. package/dist/api/generated/core/services/PublicService.d.ts +12 -0
  42. package/dist/api/generated/core/services/PublicService.js +26 -0
  43. package/dist/api/generated/core/services/SnapshotService.d.ts +8 -0
  44. package/dist/api/generated/core/services/SnapshotService.js +22 -0
  45. package/package.json +1 -1
  46. package/dist/api/generated/core/models/DTOSwooperCreate.d.ts +0 -20
  47. package/dist/api/generated/core/models/DTOSwooperEntity.d.ts +0 -24
  48. package/dist/api/generated/core/models/DTOSwooperRead.d.ts +0 -24
  49. package/dist/api/generated/core/models/DTOSwooperUpdate.d.ts +0 -19
  50. package/dist/api/generated/core/models/SwoopContactInfo.d.ts +0 -5
  51. package/dist/api/generated/core/models/SwooperExperience.d.ts +0 -7
  52. package/dist/api/generated/core/models/SwooperHighlights.d.ts +0 -5
  53. package/dist/api/generated/core/models/SwooperHighlights.js +0 -1
  54. package/dist/api/generated/core/models/SwooperId.d.ts +0 -1
  55. package/dist/api/generated/core/models/SwooperId.js +0 -1
  56. package/dist/api/generated/core/models/SwooperIdPathParam.d.ts +0 -5
  57. package/dist/api/generated/core/models/SwooperIdPathParam.js +0 -1
  58. package/dist/api/generated/core/models/SwooperInfo.d.ts +0 -6
  59. package/dist/api/generated/core/models/SwooperInfo.js +0 -1
  60. package/dist/api/generated/core/models/SwooperPersonalInfo.d.ts +0 -7
  61. package/dist/api/generated/core/models/SwooperPersonalInfo.js +0 -1
  62. package/dist/api/generated/core/services/SwooperService.d.ts +0 -50
  63. package/dist/api/generated/core/services/SwooperService.js +0 -105
  64. /package/dist/api/generated/core/models/{DTOSwooperCreate.js → AmendmentTravellers.js} +0 -0
  65. /package/dist/api/generated/core/models/{DTOSwooperEntity.js → ComponentInstanceId.js} +0 -0
  66. /package/dist/api/generated/core/models/{DTOSwooperRead.js → ExpandedMap.js} +0 -0
  67. /package/dist/api/generated/core/models/{DTOSwooperUpdate.js → Flag.js} +0 -0
  68. /package/dist/api/generated/core/models/{Error.js → InternalSwoopId.js} +0 -0
  69. /package/dist/api/generated/core/models/{IdMap.js → PublicSnapShotEnquiryStatus.js} +0 -0
  70. /package/dist/api/generated/core/models/{SwoopContactInfo.js → PublicSnapshotPerson.js} +0 -0
  71. /package/dist/api/generated/core/models/{SwooperExperience.js → SwoopError.js} +0 -0
@@ -3,6 +3,8 @@ export { CancelablePromise, CancelError } from './index';
3
3
  export { OpenAPI } from './index';
4
4
  export type { OpenAPIConfig } from './index';
5
5
  export type { Amendment } from './index';
6
+ export type { AmendmentTravellers } from './index';
7
+ export { AmendmentType } from './index';
6
8
  export type { AssignedPassenger } from './index';
7
9
  export type { AssignedTravellerGroup } from './index';
8
10
  export { BookingStatus } from './index';
@@ -14,6 +16,7 @@ export type { ComponentFAQ } from './index';
14
16
  export type { ComponentId } from './index';
15
17
  export type { ComponentIdPathParam } from './index';
16
18
  export type { ComponentInstance } from './index';
19
+ export type { ComponentInstanceId } from './index';
17
20
  export type { ComponentNotes } from './index';
18
21
  export type { ComponentRevisionGroupId } from './index';
19
22
  export { ComponentState } from './index';
@@ -44,10 +47,6 @@ export type { DTOSnapshotCreate } from './index';
44
47
  export type { DTOSnapshotEntity } from './index';
45
48
  export type { DTOSnapshotRead } from './index';
46
49
  export type { DTOSnapshotUpdate } from './index';
47
- export type { DTOSwooperCreate } from './index';
48
- export type { DTOSwooperEntity } from './index';
49
- export type { DTOSwooperRead } from './index';
50
- export type { DTOSwooperUpdate } from './index';
51
50
  export type { DTOSwoopSync } from './index';
52
51
  export type { DTOTemplateCreate } from './index';
53
52
  export type { DTOTemplateEntity } from './index';
@@ -56,10 +55,11 @@ export type { DTOTemplateUpdate } from './index';
56
55
  export type { EnquiryId } from './index';
57
56
  export type { EnquiryIdPathParam } from './index';
58
57
  export type { EnquiryIdQueryParam } from './index';
59
- export type { Error } from './index';
58
+ export type { ExpandedMap } from './index';
60
59
  export type { Fee } from './index';
61
60
  export type { Field } from './index';
62
- export type { IdMap } from './index';
61
+ export type { Flag } from './index';
62
+ export type { InternalSwoopId } from './index';
63
63
  export type { ItineraryCreateResponse } from './index';
64
64
  export type { ItineraryId } from './index';
65
65
  export type { ItineraryIdPathParam } from './index';
@@ -82,7 +82,9 @@ export type { Pagination } from './index';
82
82
  export type { Partner } from './index';
83
83
  export type { Partners } from './index';
84
84
  export type { Price } from './index';
85
+ export type { PublicSnapShotEnquiryStatus } from './index';
85
86
  export type { PublicSnapshotId } from './index';
87
+ export type { PublicSnapshotPerson } from './index';
86
88
  export type { QuoteOptions } from './index';
87
89
  export type { RegionId } from './index';
88
90
  export type { SearchQueryParam } from './index';
@@ -90,13 +92,7 @@ export type { SnapshotId } from './index';
90
92
  export type { SnapshotIdPathParam } from './index';
91
93
  export type { SortQueryParam } from './index';
92
94
  export type { StateQueryParam } from './index';
93
- export type { SwoopContactInfo } from './index';
94
- export type { SwooperExperience } from './index';
95
- export type { SwooperHighlights } from './index';
96
- export type { SwooperId } from './index';
97
- export type { SwooperIdPathParam } from './index';
98
- export type { SwooperInfo } from './index';
99
- export type { SwooperPersonalInfo } from './index';
95
+ export type { SwoopError } from './index';
100
96
  export type { SwoopSyncComponentInstance } from './index';
101
97
  export type { SwoopSyncError } from './index';
102
98
  export type { SwoopSyncErrorMsg } from './index';
@@ -2,6 +2,7 @@
2
2
  export { ApiError } from './index';
3
3
  export { CancelablePromise, CancelError } from './index';
4
4
  export { OpenAPI } from './index';
5
+ export { AmendmentType } from './index';
5
6
  export { BookingStatus } from './index';
6
7
  export { ComponentState } from './index';
7
8
  export { Currency } from './index';
@@ -3,6 +3,8 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
3
3
  export { OpenAPI } from './core/OpenAPI';
4
4
  export type { OpenAPIConfig } from './core/OpenAPI';
5
5
  export type { Amendment } from './models/Amendment';
6
+ export type { AmendmentTravellers } from './models/AmendmentTravellers';
7
+ export { AmendmentType } from './models/AmendmentType';
6
8
  export type { AssignedPassenger } from './models/AssignedPassenger';
7
9
  export type { AssignedTravellerGroup } from './models/AssignedTravellerGroup';
8
10
  export { BookingStatus } from './models/BookingStatus';
@@ -14,6 +16,7 @@ export type { ComponentFAQ } from './models/ComponentFAQ';
14
16
  export type { ComponentId } from './models/ComponentId';
15
17
  export type { ComponentIdPathParam } from './models/ComponentIdPathParam';
16
18
  export type { ComponentInstance } from './models/ComponentInstance';
19
+ export type { ComponentInstanceId } from './models/ComponentInstanceId';
17
20
  export type { ComponentNotes } from './models/ComponentNotes';
18
21
  export type { ComponentRevisionGroupId } from './models/ComponentRevisionGroupId';
19
22
  export { ComponentState } from './models/ComponentState';
@@ -44,10 +47,6 @@ export type { DTOSnapshotCreate } from './models/DTOSnapshotCreate';
44
47
  export type { DTOSnapshotEntity } from './models/DTOSnapshotEntity';
45
48
  export type { DTOSnapshotRead } from './models/DTOSnapshotRead';
46
49
  export type { DTOSnapshotUpdate } from './models/DTOSnapshotUpdate';
47
- export type { DTOSwooperCreate } from './models/DTOSwooperCreate';
48
- export type { DTOSwooperEntity } from './models/DTOSwooperEntity';
49
- export type { DTOSwooperRead } from './models/DTOSwooperRead';
50
- export type { DTOSwooperUpdate } from './models/DTOSwooperUpdate';
51
50
  export type { DTOSwoopSync } from './models/DTOSwoopSync';
52
51
  export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
53
52
  export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
@@ -56,10 +55,11 @@ export type { DTOTemplateUpdate } from './models/DTOTemplateUpdate';
56
55
  export type { EnquiryId } from './models/EnquiryId';
57
56
  export type { EnquiryIdPathParam } from './models/EnquiryIdPathParam';
58
57
  export type { EnquiryIdQueryParam } from './models/EnquiryIdQueryParam';
59
- export type { Error } from './models/Error';
58
+ export type { ExpandedMap } from './models/ExpandedMap';
60
59
  export type { Fee } from './models/Fee';
61
60
  export type { Field } from './models/Field';
62
- export type { IdMap } from './models/IdMap';
61
+ export type { Flag } from './models/Flag';
62
+ export type { InternalSwoopId } from './models/InternalSwoopId';
63
63
  export type { ItineraryCreateResponse } from './models/ItineraryCreateResponse';
64
64
  export type { ItineraryId } from './models/ItineraryId';
65
65
  export type { ItineraryIdPathParam } from './models/ItineraryIdPathParam';
@@ -82,7 +82,9 @@ export type { Pagination } from './models/Pagination';
82
82
  export type { Partner } from './models/Partner';
83
83
  export type { Partners } from './models/Partners';
84
84
  export type { Price } from './models/Price';
85
+ export type { PublicSnapShotEnquiryStatus } from './models/PublicSnapShotEnquiryStatus';
85
86
  export type { PublicSnapshotId } from './models/PublicSnapshotId';
87
+ export type { PublicSnapshotPerson } from './models/PublicSnapshotPerson';
86
88
  export type { QuoteOptions } from './models/QuoteOptions';
87
89
  export type { RegionId } from './models/RegionId';
88
90
  export type { SearchQueryParam } from './models/SearchQueryParam';
@@ -90,13 +92,7 @@ export type { SnapshotId } from './models/SnapshotId';
90
92
  export type { SnapshotIdPathParam } from './models/SnapshotIdPathParam';
91
93
  export type { SortQueryParam } from './models/SortQueryParam';
92
94
  export type { StateQueryParam } from './models/StateQueryParam';
93
- export type { SwoopContactInfo } from './models/SwoopContactInfo';
94
- export type { SwooperExperience } from './models/SwooperExperience';
95
- export type { SwooperHighlights } from './models/SwooperHighlights';
96
- export type { SwooperId } from './models/SwooperId';
97
- export type { SwooperIdPathParam } from './models/SwooperIdPathParam';
98
- export type { SwooperInfo } from './models/SwooperInfo';
99
- export type { SwooperPersonalInfo } from './models/SwooperPersonalInfo';
95
+ export type { SwoopError } from './models/SwoopError';
100
96
  export type { SwoopSyncComponentInstance } from './models/SwoopSyncComponentInstance';
101
97
  export type { SwoopSyncError } from './models/SwoopSyncError';
102
98
  export type { SwoopSyncErrorMsg } from './models/SwoopSyncErrorMsg';
@@ -113,7 +109,7 @@ export type { VersionPathParam } from './models/VersionPathParam';
113
109
  export { ComponentService } from './services/ComponentService';
114
110
  export { CoreService } from './services/CoreService';
115
111
  export { ItineraryService } from './services/ItineraryService';
112
+ export { PublicService } from './services/PublicService';
116
113
  export { RegionService } from './services/RegionService';
117
114
  export { SnapshotService } from './services/SnapshotService';
118
- export { SwooperService } from './services/SwooperService';
119
115
  export { TemplateService } from './services/TemplateService';
@@ -5,6 +5,7 @@
5
5
  export { ApiError } from './core/ApiError';
6
6
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
7
  export { OpenAPI } from './core/OpenAPI';
8
+ export { AmendmentType } from './models/AmendmentType';
8
9
  export { BookingStatus } from './models/BookingStatus';
9
10
  export { ComponentState } from './models/ComponentState';
10
11
  export { Currency } from './models/Currency';
@@ -16,7 +17,7 @@ export { UrgencyCTA } from './models/UrgencyCTA';
16
17
  export { ComponentService } from './services/ComponentService';
17
18
  export { CoreService } from './services/CoreService';
18
19
  export { ItineraryService } from './services/ItineraryService';
20
+ export { PublicService } from './services/PublicService';
19
21
  export { RegionService } from './services/RegionService';
20
22
  export { SnapshotService } from './services/SnapshotService';
21
- export { SwooperService } from './services/SwooperService';
22
23
  export { TemplateService } from './services/TemplateService';
@@ -1,8 +1,10 @@
1
- import type { AssignedPassenger } from './AssignedPassenger';
2
- import type { Price } from './Price';
3
- import type { Title } from './Title';
1
+ import type { AmendmentTravellers } from './AmendmentTravellers';
2
+ import type { AmendmentType } from './AmendmentType';
3
+ import type { ComponentInstanceId } from './ComponentInstanceId';
4
4
  export type Amendment = {
5
- name: Title;
6
- price: Price;
7
- assignedPassenger: AssignedPassenger;
5
+ type: AmendmentType;
6
+ componentInstanceId: ComponentInstanceId;
7
+ date: string;
8
+ description: string;
9
+ assignedTravellers: Array<AmendmentTravellers>;
8
10
  };
@@ -0,0 +1,5 @@
1
+ import type { InternalSwoopId } from './InternalSwoopId';
2
+ export type AmendmentTravellers = {
3
+ travellerId: InternalSwoopId;
4
+ travellerGroupId: InternalSwoopId;
5
+ };
@@ -0,0 +1,3 @@
1
+ export declare enum AmendmentType {
2
+ CANCELLATION = "cancellation"
3
+ }
@@ -0,0 +1,8 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var AmendmentType;
6
+ (function (AmendmentType) {
7
+ AmendmentType["CANCELLATION"] = "cancellation";
8
+ })(AmendmentType || (AmendmentType = {}));
@@ -1,6 +1,7 @@
1
+ import type { InternalSwoopId } from './InternalSwoopId';
1
2
  export type AssignedPassenger = {
2
- travellerId: string;
3
- travellerGroupId: string;
3
+ travellerId: InternalSwoopId;
4
+ travellerGroupId: InternalSwoopId;
4
5
  firstName: string;
5
6
  lastName: string;
6
7
  email: string;
@@ -1,6 +1,7 @@
1
+ import type { InternalSwoopId } from './InternalSwoopId';
1
2
  import type { Title } from './Title';
2
3
  export type AssignedTravellerGroup = {
3
- travellerGroupId: string;
4
+ travellerGroupId: InternalSwoopId;
4
5
  title: Title;
5
6
  assignedMembers: Array<string>;
6
7
  };
@@ -1,9 +1,9 @@
1
1
  import type { BranchTag } from './BranchTag';
2
- import type { EnquiryId } from './EnquiryId';
2
+ import type { InternalSwoopId } from './InternalSwoopId';
3
3
  import type { ItineraryId } from './ItineraryId';
4
4
  import type { Metadata } from './Metadata';
5
5
  export type Branches = {
6
- enquiryId: EnquiryId;
6
+ enquiryId: InternalSwoopId;
7
7
  tag: BranchTag;
8
8
  version: number;
9
9
  itineraryId: ItineraryId;
@@ -1,16 +1,18 @@
1
- import type { Amendment } from './Amendment';
2
1
  import type { AssignedPassenger } from './AssignedPassenger';
3
2
  import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
4
3
  import type { BookingStatus } from './BookingStatus';
5
4
  import type { ComponentId } from './ComponentId';
5
+ import type { ComponentInstanceId } from './ComponentInstanceId';
6
6
  import type { Field } from './Field';
7
+ import type { Flag } from './Flag';
8
+ import type { InternalSwoopId } from './InternalSwoopId';
7
9
  import type { Price } from './Price';
8
10
  import type { UserComponentInstanceField } from './UserComponentInstanceField';
9
11
  export type ComponentInstance = {
10
- id: string;
11
- parentId?: string;
12
+ id: ComponentInstanceId;
13
+ parentId?: ComponentInstanceId;
12
14
  componentId: ComponentId;
13
- partnerId: string;
15
+ partnerId: InternalSwoopId;
14
16
  componentInstanceFields: Array<Field>;
15
17
  userComponentInstanceFields: Array<UserComponentInstanceField>;
16
18
  assignedPassengers: Array<AssignedPassenger>;
@@ -21,10 +23,9 @@ export type ComponentInstance = {
21
23
  negotiatedDiscount: number;
22
24
  nonCommissionableAmount: number;
23
25
  };
24
- amendments?: Array<Amendment>;
25
26
  bookingGroup: string;
26
- startDate: string;
27
- endDate: string;
28
- isNew: boolean;
27
+ startDate?: string;
28
+ endDate?: string;
29
+ flag: Flag;
29
30
  bookingStatus: BookingStatus;
30
31
  };
@@ -0,0 +1 @@
1
+ export type ComponentInstanceId = string;
@@ -1,15 +1,17 @@
1
+ import type { Amendment } from './Amendment';
1
2
  import type { ComponentInstance } from './ComponentInstance';
2
3
  import type { Discount } from './Discount';
3
- import type { EnquiryId } from './EnquiryId';
4
4
  import type { Fee } from './Fee';
5
+ import type { InternalSwoopId } from './InternalSwoopId';
5
6
  import type { ItineraryValue } from './ItineraryValue';
6
7
  import type { QuoteOptions } from './QuoteOptions';
7
8
  import type { Title } from './Title';
8
9
  export type DTOItineraryCreate = {
9
- enquiryId?: EnquiryId;
10
+ enquiryId?: InternalSwoopId;
10
11
  title: Title;
11
12
  welcomeNote?: string;
12
13
  values?: Array<ItineraryValue>;
14
+ amendments?: Array<Amendment>;
13
15
  componentInstances?: Array<ComponentInstance>;
14
16
  fees?: Array<Fee>;
15
17
  quoteOption?: QuoteOptions;
@@ -1,7 +1,8 @@
1
+ import type { Amendment } from './Amendment';
1
2
  import type { ComponentInstance } from './ComponentInstance';
2
3
  import type { Discount } from './Discount';
3
- import type { EnquiryId } from './EnquiryId';
4
4
  import type { Fee } from './Fee';
5
+ import type { InternalSwoopId } from './InternalSwoopId';
5
6
  import type { ItineraryId } from './ItineraryId';
6
7
  import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
7
8
  import type { ItineraryValue } from './ItineraryValue';
@@ -12,11 +13,12 @@ export type DTOItineraryEntity = {
12
13
  id: ItineraryId;
13
14
  revisionGroupId: ItineraryRevisionGroupId;
14
15
  revision: number;
15
- enquiryId: EnquiryId;
16
+ enquiryId: InternalSwoopId;
16
17
  metadata: Metadata;
17
18
  title: Title;
18
19
  welcomeNote: string;
19
20
  values: Array<ItineraryValue>;
21
+ amendments?: Array<Amendment>;
20
22
  componentInstances: Array<ComponentInstance>;
21
23
  fees: Array<Fee>;
22
24
  quoteOption?: QuoteOptions;
@@ -1,7 +1,8 @@
1
+ import type { Amendment } from './Amendment';
1
2
  import type { ComponentInstance } from './ComponentInstance';
2
3
  import type { Discount } from './Discount';
3
- import type { EnquiryId } from './EnquiryId';
4
4
  import type { Fee } from './Fee';
5
+ import type { InternalSwoopId } from './InternalSwoopId';
5
6
  import type { ItineraryId } from './ItineraryId';
6
7
  import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
7
8
  import type { ItineraryValue } from './ItineraryValue';
@@ -12,11 +13,12 @@ export type DTOItineraryRead = {
12
13
  id: ItineraryId;
13
14
  revisionGroupId: ItineraryRevisionGroupId;
14
15
  revision: number;
15
- enquiryId: EnquiryId;
16
+ enquiryId: InternalSwoopId;
16
17
  metadata: Metadata;
17
18
  title: Title;
18
19
  welcomeNote: string;
19
20
  values: Array<ItineraryValue>;
21
+ amendments?: Array<Amendment>;
20
22
  componentInstances: Array<ComponentInstance>;
21
23
  fees: Array<Fee>;
22
24
  quoteOption?: QuoteOptions;
@@ -1,3 +1,4 @@
1
+ import type { Amendment } from './Amendment';
1
2
  import type { ComponentInstance } from './ComponentInstance';
2
3
  import type { Discount } from './Discount';
3
4
  import type { Fee } from './Fee';
@@ -9,6 +10,7 @@ export type DTOItineraryUpdate = {
9
10
  welcomeNote?: string;
10
11
  values?: Array<ItineraryValue>;
11
12
  componentInstances?: Array<ComponentInstance>;
13
+ amendments?: Array<Amendment>;
12
14
  fees?: Array<Fee>;
13
15
  quoteOption?: QuoteOptions;
14
16
  discounts?: Array<Discount>;
@@ -1,12 +1,17 @@
1
1
  import type { DTOItineraryRead } from './DTOItineraryRead';
2
- import type { EnquiryId } from './EnquiryId';
3
- import type { IdMap } from './IdMap';
2
+ import type { ExpandedMap } from './ExpandedMap';
3
+ import type { InternalSwoopId } from './InternalSwoopId';
4
+ import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
5
+ import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
4
6
  import type { SnapshotId } from './SnapshotId';
5
7
  import type { Title } from './Title';
6
8
  export type DTOPublicSnapshotCreate = {
7
9
  snapshotId: SnapshotId;
8
10
  name: Title;
9
- enquiryId: EnquiryId;
11
+ enquiryId: InternalSwoopId;
10
12
  itinerary: DTOItineraryRead;
11
- map: IdMap;
13
+ map: ExpandedMap;
14
+ enquiryStatus: PublicSnapShotEnquiryStatus;
15
+ salesPerson: PublicSnapshotPerson;
16
+ cxPerson: PublicSnapshotPerson;
12
17
  };
@@ -1,8 +1,10 @@
1
1
  import type { DTOItineraryRead } from './DTOItineraryRead';
2
- import type { EnquiryId } from './EnquiryId';
3
- import type { IdMap } from './IdMap';
2
+ import type { ExpandedMap } from './ExpandedMap';
3
+ import type { InternalSwoopId } from './InternalSwoopId';
4
4
  import type { Metadata } from './Metadata';
5
+ import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
5
6
  import type { PublicSnapshotId } from './PublicSnapshotId';
7
+ import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
6
8
  import type { SnapshotId } from './SnapshotId';
7
9
  import type { Title } from './Title';
8
10
  export type DTOPublicSnapshotEntity = {
@@ -10,7 +12,10 @@ export type DTOPublicSnapshotEntity = {
10
12
  snapshotId: SnapshotId;
11
13
  metadata: Metadata;
12
14
  name: Title;
13
- enquiryId: EnquiryId;
15
+ enquiryId: InternalSwoopId;
14
16
  itinerary: DTOItineraryRead;
15
- map: IdMap;
17
+ map: ExpandedMap;
18
+ enquiryStatus: PublicSnapShotEnquiryStatus;
19
+ salesPerson: PublicSnapshotPerson;
20
+ cxPerson: PublicSnapshotPerson;
16
21
  };
@@ -1,8 +1,10 @@
1
1
  import type { DTOItineraryRead } from './DTOItineraryRead';
2
- import type { EnquiryId } from './EnquiryId';
3
- import type { IdMap } from './IdMap';
2
+ import type { ExpandedMap } from './ExpandedMap';
3
+ import type { InternalSwoopId } from './InternalSwoopId';
4
4
  import type { Metadata } from './Metadata';
5
+ import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
5
6
  import type { PublicSnapshotId } from './PublicSnapshotId';
7
+ import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
6
8
  import type { SnapshotId } from './SnapshotId';
7
9
  import type { Title } from './Title';
8
10
  export type DTOPublicSnapshotRead = {
@@ -10,7 +12,10 @@ export type DTOPublicSnapshotRead = {
10
12
  snapshotId: SnapshotId;
11
13
  metadata: Metadata;
12
14
  name: Title;
13
- enquiryId: EnquiryId;
15
+ enquiryId: InternalSwoopId;
14
16
  itinerary: DTOItineraryRead;
15
- map: IdMap;
17
+ map: ExpandedMap;
18
+ enquiryStatus: PublicSnapShotEnquiryStatus;
19
+ salesPerson: PublicSnapshotPerson;
20
+ cxPerson: PublicSnapshotPerson;
16
21
  };
@@ -1 +1,4 @@
1
- export type DTOPublicSnapshotUpdate = Record<string, any>;
1
+ import type { Title } from './Title';
2
+ export type DTOPublicSnapshotUpdate = {
3
+ name?: Title;
4
+ };
@@ -1,8 +1,8 @@
1
- import type { EnquiryId } from './EnquiryId';
1
+ import type { InternalSwoopId } from './InternalSwoopId';
2
2
  import type { ItineraryId } from './ItineraryId';
3
3
  import type { Title } from './Title';
4
4
  export type DTOSnapshotCreate = {
5
5
  name: Title;
6
6
  itineraryId: ItineraryId;
7
- enquiryId: EnquiryId;
7
+ enquiryId: InternalSwoopId;
8
8
  };
@@ -1,4 +1,4 @@
1
- import type { EnquiryId } from './EnquiryId';
1
+ import type { InternalSwoopId } from './InternalSwoopId';
2
2
  import type { ItineraryId } from './ItineraryId';
3
3
  import type { Metadata } from './Metadata';
4
4
  import type { SnapshotId } from './SnapshotId';
@@ -8,5 +8,5 @@ export type DTOSnapshotEntity = {
8
8
  metadata: Metadata;
9
9
  name: Title;
10
10
  itineraryId: ItineraryId;
11
- enquiryId: EnquiryId;
11
+ enquiryId: InternalSwoopId;
12
12
  };
@@ -1,4 +1,4 @@
1
- import type { EnquiryId } from './EnquiryId';
1
+ import type { InternalSwoopId } from './InternalSwoopId';
2
2
  import type { ItineraryId } from './ItineraryId';
3
3
  import type { Metadata } from './Metadata';
4
4
  import type { SnapshotId } from './SnapshotId';
@@ -8,5 +8,5 @@ export type DTOSnapshotRead = {
8
8
  metadata: Metadata;
9
9
  name: Title;
10
10
  itineraryId: ItineraryId;
11
- enquiryId: EnquiryId;
11
+ enquiryId: InternalSwoopId;
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import type { Discount } from './Discount';
2
- import type { EnquiryId } from './EnquiryId';
3
2
  import type { Fee } from './Fee';
3
+ import type { InternalSwoopId } from './InternalSwoopId';
4
4
  import type { ItineraryId } from './ItineraryId';
5
5
  import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
6
6
  import type { ItineraryValue } from './ItineraryValue';
@@ -12,7 +12,7 @@ export type DTOSwoopSync = {
12
12
  id: ItineraryId;
13
13
  revisionGroupId: ItineraryRevisionGroupId;
14
14
  revision: number;
15
- enquiryId: EnquiryId;
15
+ enquiryId: InternalSwoopId;
16
16
  metadata: Metadata;
17
17
  title: Title;
18
18
  welcomeNote: string;
@@ -1 +1,2 @@
1
- export type EnquiryId = string;
1
+ import type { InternalSwoopId } from './InternalSwoopId';
2
+ export type EnquiryId = InternalSwoopId;
@@ -1,5 +1,5 @@
1
- import type { EnquiryId } from './EnquiryId';
1
+ import type { InternalSwoopId } from './InternalSwoopId';
2
2
  /**
3
3
  * Enquiry Id
4
4
  */
5
- export type EnquiryIdPathParam = EnquiryId;
5
+ export type EnquiryIdPathParam = InternalSwoopId;
@@ -1,6 +1,5 @@
1
- export type IdMap = {
1
+ export type ExpandedMap = {
2
2
  templates: any;
3
3
  components: any;
4
4
  regions: any;
5
- swoopers: any;
6
5
  };
@@ -0,0 +1,4 @@
1
+ export type Flag = {
2
+ message: string;
3
+ isFlagged: boolean;
4
+ };
@@ -0,0 +1 @@
1
+ export type InternalSwoopId = string;
@@ -1,8 +1,8 @@
1
1
  import type { BranchTag } from './BranchTag';
2
2
  import type { DTOItineraryRead } from './DTOItineraryRead';
3
- import type { EnquiryId } from './EnquiryId';
3
+ import type { InternalSwoopId } from './InternalSwoopId';
4
4
  export type ItineraryCreateResponse = {
5
5
  itinerary: DTOItineraryRead;
6
6
  tag: BranchTag;
7
- enquiryId: EnquiryId;
7
+ enquiryId: InternalSwoopId;
8
8
  };
@@ -1 +1,2 @@
1
- export type Partner = string;
1
+ import type { InternalSwoopId } from './InternalSwoopId';
2
+ export type Partner = InternalSwoopId;
@@ -1,2 +1,2 @@
1
- import type { Partner } from './Partner';
2
- export type Partners = Array<Partner>;
1
+ import type { InternalSwoopId } from './InternalSwoopId';
2
+ export type Partners = Array<InternalSwoopId>;
@@ -0,0 +1,8 @@
1
+ export type PublicSnapShotEnquiryStatus = {
2
+ id: string;
3
+ enquiryStatusId: number;
4
+ shortTitle: string;
5
+ alias: string;
6
+ groupName: string;
7
+ position: number;
8
+ };
@@ -0,0 +1,11 @@
1
+ export type PublicSnapshotPerson = {
2
+ firstName: string;
3
+ lastName: string;
4
+ shortName: string;
5
+ email: string;
6
+ telephone1: string;
7
+ telephone2: string;
8
+ role: string;
9
+ avatarUrl: string;
10
+ welcomeNote: string;
11
+ };
@@ -1,6 +1,5 @@
1
- export type Error = {
1
+ export type SwoopError = {
2
2
  message: string;
3
- code: number;
4
3
  trace: number;
5
4
  span: number;
6
5
  };
@@ -4,15 +4,17 @@ import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
4
4
  import type { BookingStatus } from './BookingStatus';
5
5
  import type { ComponentId } from './ComponentId';
6
6
  import type { Field } from './Field';
7
+ import type { Flag } from './Flag';
8
+ import type { InternalSwoopId } from './InternalSwoopId';
7
9
  import type { Price } from './Price';
8
10
  import type { TripId } from './TripId';
9
11
  import type { UserComponentInstanceField } from './UserComponentInstanceField';
10
12
  export type SwoopSyncComponentInstance = {
11
13
  id: string;
12
14
  componentId: ComponentId;
13
- bookingItemTypeId: string;
15
+ bookingItemTypeId: InternalSwoopId;
14
16
  tripId?: TripId;
15
- partnerId: string;
17
+ partnerId: InternalSwoopId;
16
18
  componentInstanceFields: Array<Field>;
17
19
  userComponentInstanceFields: Array<UserComponentInstanceField>;
18
20
  assignedPassengers: Array<AssignedPassenger>;
@@ -27,6 +29,6 @@ export type SwoopSyncComponentInstance = {
27
29
  bookingGroup: string;
28
30
  startDate: string;
29
31
  endDate: string;
30
- isNew: boolean;
32
+ flag: Flag;
31
33
  bookingStatus: BookingStatus;
32
34
  };