swoop-common 2.0.53 → 2.0.54

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 (35) hide show
  1. package/dist/api/generated/core/exports.d.ts +3 -0
  2. package/dist/api/generated/core/index.d.ts +3 -0
  3. package/dist/api/generated/core/models/ComponentDescription.d.ts +5 -0
  4. package/dist/api/generated/core/models/ComponentDescription.js +1 -0
  5. package/dist/api/generated/core/models/ComponentFAQ.d.ts +4 -0
  6. package/dist/api/generated/core/models/ComponentFAQ.js +1 -0
  7. package/dist/api/generated/core/models/ComponentNotes.d.ts +9 -0
  8. package/dist/api/generated/core/models/ComponentNotes.js +1 -0
  9. package/dist/api/generated/core/models/DTOComponentCreate.d.ts +9 -2
  10. package/dist/api/generated/core/models/DTOComponentEntity.d.ts +10 -3
  11. package/dist/api/generated/core/models/DTOComponentRead.d.ts +10 -3
  12. package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +12 -5
  13. package/dist/api/generated/core/models/DTOItineraryCreate.d.ts +1 -1
  14. package/dist/api/generated/core/models/DTOItineraryEntity.d.ts +1 -1
  15. package/dist/api/generated/core/models/DTOItineraryRead.d.ts +1 -1
  16. package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +1 -1
  17. package/dist/api/generated/core/models/DTOTemplateCreate.d.ts +1 -1
  18. package/dist/api/generated/itinerary/index.d.ts +3 -0
  19. package/dist/api/generated/itinerary/models/ComponentDescription.d.ts +5 -0
  20. package/dist/api/generated/itinerary/models/ComponentDescription.js +1 -0
  21. package/dist/api/generated/itinerary/models/ComponentFAQ.d.ts +4 -0
  22. package/dist/api/generated/itinerary/models/ComponentFAQ.js +1 -0
  23. package/dist/api/generated/itinerary/models/ComponentNotes.d.ts +9 -0
  24. package/dist/api/generated/itinerary/models/ComponentNotes.js +1 -0
  25. package/dist/api/generated/itinerary/models/DTOComponentCreate.d.ts +9 -2
  26. package/dist/api/generated/itinerary/models/DTOComponentEntity.d.ts +10 -3
  27. package/dist/api/generated/itinerary/models/DTOComponentRead.d.ts +10 -3
  28. package/dist/api/generated/itinerary/models/DTOComponentUpdate.d.ts +12 -5
  29. package/dist/api/generated/itinerary/models/DTOItineraryCreate.d.ts +1 -1
  30. package/dist/api/generated/itinerary/models/DTOItineraryEntity.d.ts +1 -1
  31. package/dist/api/generated/itinerary/models/DTOItineraryRead.d.ts +1 -1
  32. package/dist/api/generated/itinerary/models/DTOItineraryUpdate.d.ts +1 -1
  33. package/dist/api/generated/itinerary/models/DTOTemplateCreate.d.ts +1 -1
  34. package/dist/rendering/renderers/ComponentPicker.d.ts +7 -3
  35. package/package.json +1 -1
@@ -8,9 +8,12 @@ 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 { ComponentDescription } from './index';
11
12
  export type { ComponentDetails } from './index';
13
+ export type { ComponentFAQ } from './index';
12
14
  export type { componentId } from './index';
13
15
  export type { ComponentInstance } from './index';
16
+ export type { ComponentNotes } from './index';
14
17
  export type { CurrencyItem } from './index';
15
18
  export type { CurrencyItemResponse } from './index';
16
19
  export type { DTOComponentCreate } from './index';
@@ -10,9 +10,12 @@ 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 { ComponentDescription } from './models/ComponentDescription';
13
14
  export type { ComponentDetails } from './models/ComponentDetails';
15
+ export type { ComponentFAQ } from './models/ComponentFAQ';
14
16
  export type { componentId } from './models/componentId';
15
17
  export type { ComponentInstance } from './models/ComponentInstance';
18
+ export type { ComponentNotes } from './models/ComponentNotes';
16
19
  export type { CurrencyItem } from './models/CurrencyItem';
17
20
  export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
18
21
  export type { DTOComponentCreate } from './models/DTOComponentCreate';
@@ -0,0 +1,5 @@
1
+ export type ComponentDescription = {
2
+ web?: string;
3
+ quote?: string;
4
+ final?: string;
5
+ };
@@ -0,0 +1,4 @@
1
+ export type ComponentFAQ = Array<{
2
+ question?: string;
3
+ answer?: string;
4
+ }>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export type ComponentNotes = {
2
+ positives?: string;
3
+ notes?: string;
4
+ recommendations?: string;
5
+ swoopSays?: Array<{
6
+ swooper?: string;
7
+ description?: string;
8
+ }>;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,16 +1,23 @@
1
1
  import type { Bundle } from './Bundle';
2
+ import type { ComponentDescription } from './ComponentDescription';
2
3
  import type { ComponentDetails } from './ComponentDetails';
4
+ import type { ComponentFAQ } from './ComponentFAQ';
5
+ import type { ComponentNotes } from './ComponentNotes';
3
6
  import type { Field } from './Field';
4
7
  export type DTOComponentCreate = {
8
+ orgId: string;
5
9
  name: string;
10
+ destination: string;
11
+ description: ComponentDescription;
12
+ notes?: ComponentNotes;
13
+ faq?: ComponentFAQ;
6
14
  componentFields: Array<Field>;
7
15
  partners: Array<string>;
8
16
  details: ComponentDetails;
9
17
  bundle?: Bundle;
10
- startDate: string | null;
18
+ startDate?: string | null;
11
19
  endDate?: string | null;
12
20
  duration?: number | null;
13
21
  state: string;
14
22
  templateId?: string;
15
- orgId?: string;
16
23
  };
@@ -1,5 +1,8 @@
1
1
  import type { Bundle } from './Bundle';
2
+ import type { ComponentDescription } from './ComponentDescription';
2
3
  import type { ComponentDetails } from './ComponentDetails';
4
+ import type { ComponentFAQ } from './ComponentFAQ';
5
+ import type { ComponentNotes } from './ComponentNotes';
3
6
  import type { Field } from './Field';
4
7
  import type { Metadata } from './Metadata';
5
8
  export type DTOComponentEntity = {
@@ -9,11 +12,15 @@ export type DTOComponentEntity = {
9
12
  revisionGroupId: string;
10
13
  revision: number;
11
14
  metadata: Metadata;
12
- name: string;
13
- componentFields: Array<Field>;
14
15
  partners: Array<string>;
16
+ destination: string;
17
+ name: string;
18
+ description: ComponentDescription;
19
+ notes: ComponentNotes;
20
+ faq: ComponentFAQ;
15
21
  details: ComponentDetails;
16
- bundle?: Bundle;
22
+ componentFields: Array<Field>;
23
+ bundle: Bundle;
17
24
  startDate?: string | null;
18
25
  endDate?: string | null;
19
26
  duration?: number | null;
@@ -1,5 +1,8 @@
1
1
  import type { Bundle } from './Bundle';
2
+ import type { ComponentDescription } from './ComponentDescription';
2
3
  import type { ComponentDetails } from './ComponentDetails';
4
+ import type { ComponentFAQ } from './ComponentFAQ';
5
+ import type { ComponentNotes } from './ComponentNotes';
3
6
  import type { Field } from './Field';
4
7
  import type { Metadata } from './Metadata';
5
8
  export type DTOComponentRead = {
@@ -9,11 +12,15 @@ export type DTOComponentRead = {
9
12
  revisionGroupId: string;
10
13
  revision: number;
11
14
  metadata: Metadata;
12
- name: string;
13
- componentFields: Array<Field>;
14
15
  partners: Array<string>;
16
+ destination: string;
17
+ name: string;
18
+ description: ComponentDescription;
19
+ notes: ComponentNotes;
20
+ faq: ComponentFAQ;
15
21
  details: ComponentDetails;
16
- bundle?: Bundle;
22
+ componentFields: Array<Field>;
23
+ bundle: Bundle;
17
24
  startDate?: string | null;
18
25
  endDate?: string | null;
19
26
  duration?: number | null;
@@ -1,14 +1,21 @@
1
1
  import type { Bundle } from './Bundle';
2
+ import type { ComponentDescription } from './ComponentDescription';
2
3
  import type { ComponentDetails } from './ComponentDetails';
4
+ import type { ComponentFAQ } from './ComponentFAQ';
5
+ import type { ComponentNotes } from './ComponentNotes';
3
6
  import type { Field } from './Field';
4
7
  export type DTOComponentUpdate = {
5
- name?: string;
6
- componentFields?: Array<Field>;
7
- partners?: Array<string>;
8
- details?: ComponentDetails;
8
+ destination: string;
9
+ name: string;
10
+ description: ComponentDescription;
11
+ notes: ComponentNotes;
12
+ faq?: ComponentFAQ;
13
+ componentFields: Array<Field>;
14
+ partners: Array<string>;
15
+ details: ComponentDetails;
9
16
  bundle?: Bundle;
10
17
  startDate?: string | null;
11
18
  endDate?: string | null;
12
19
  duration?: number | null;
13
- state?: string;
20
+ state: string;
14
21
  };
@@ -1,7 +1,7 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Fee } from './Fee';
3
3
  export type DTOItineraryCreate = {
4
- enquirerId: string;
4
+ enquiryId: string;
5
5
  title: string;
6
6
  componentInstances: Array<ComponentInstance>;
7
7
  fees: Array<Fee>;
@@ -3,7 +3,7 @@ import type { Fee } from './Fee';
3
3
  import type { Metadata } from './Metadata';
4
4
  export type DTOItineraryEntity = {
5
5
  id: string;
6
- enquirerId: string;
6
+ enquiryId: string;
7
7
  metadata: Metadata;
8
8
  title: string;
9
9
  componentInstances: Array<ComponentInstance>;
@@ -3,7 +3,7 @@ import type { Fee } from './Fee';
3
3
  import type { Metadata } from './Metadata';
4
4
  export type DTOItineraryRead = {
5
5
  id: string;
6
- enquirerId: string;
6
+ enquiryId: string;
7
7
  metadata: Metadata;
8
8
  title: string;
9
9
  componentInstances: Array<ComponentInstance>;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Fee } from './Fee';
3
3
  export type DTOItineraryUpdate = {
4
- enquirerId: string;
4
+ enquiryId: string;
5
5
  title: string;
6
6
  componentInstances: Array<ComponentInstance>;
7
7
  fees: Array<Fee>;
@@ -1,8 +1,8 @@
1
1
  import type { ValidationSchemas } from './ValidationSchemas';
2
2
  export type DTOTemplateCreate = {
3
+ orgId: string;
3
4
  name: string;
4
5
  masterSchema: string;
5
6
  validationSchemas: ValidationSchemas;
6
7
  parentRevisionGroupId: string;
7
- orgId?: string;
8
8
  };
@@ -10,9 +10,12 @@ 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 { ComponentDescription } from './models/ComponentDescription';
13
14
  export type { ComponentDetails } from './models/ComponentDetails';
15
+ export type { ComponentFAQ } from './models/ComponentFAQ';
14
16
  export type { componentId } from './models/componentId';
15
17
  export type { ComponentInstance } from './models/ComponentInstance';
18
+ export type { ComponentNotes } from './models/ComponentNotes';
16
19
  export type { CurrencyItem } from './models/CurrencyItem';
17
20
  export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
18
21
  export type { DTOComponentCreate } from './models/DTOComponentCreate';
@@ -0,0 +1,5 @@
1
+ export type ComponentDescription = {
2
+ web?: string;
3
+ quote?: string;
4
+ final?: string;
5
+ };
@@ -0,0 +1,4 @@
1
+ export type ComponentFAQ = Array<{
2
+ question?: string;
3
+ answer?: string;
4
+ }>;
@@ -0,0 +1,9 @@
1
+ export type ComponentNotes = {
2
+ positives?: string;
3
+ notes?: string;
4
+ recommendations?: string;
5
+ swoopSays?: Array<{
6
+ swooper?: string;
7
+ description?: string;
8
+ }>;
9
+ };
@@ -1,16 +1,23 @@
1
1
  import type { Bundle } from './Bundle';
2
+ import type { ComponentDescription } from './ComponentDescription';
2
3
  import type { ComponentDetails } from './ComponentDetails';
4
+ import type { ComponentFAQ } from './ComponentFAQ';
5
+ import type { ComponentNotes } from './ComponentNotes';
3
6
  import type { Field } from './Field';
4
7
  export type DTOComponentCreate = {
8
+ orgId: string;
5
9
  name: string;
10
+ destination: string;
11
+ description: ComponentDescription;
12
+ notes?: ComponentNotes;
13
+ faq?: ComponentFAQ;
6
14
  componentFields: Array<Field>;
7
15
  partners: Array<string>;
8
16
  details: ComponentDetails;
9
17
  bundle?: Bundle;
10
- startDate: string | null;
18
+ startDate?: string | null;
11
19
  endDate?: string | null;
12
20
  duration?: number | null;
13
21
  state: string;
14
22
  templateId?: string;
15
- orgId?: string;
16
23
  };
@@ -1,5 +1,8 @@
1
1
  import type { Bundle } from './Bundle';
2
+ import type { ComponentDescription } from './ComponentDescription';
2
3
  import type { ComponentDetails } from './ComponentDetails';
4
+ import type { ComponentFAQ } from './ComponentFAQ';
5
+ import type { ComponentNotes } from './ComponentNotes';
3
6
  import type { Field } from './Field';
4
7
  import type { Metadata } from './Metadata';
5
8
  export type DTOComponentEntity = {
@@ -9,11 +12,15 @@ export type DTOComponentEntity = {
9
12
  revisionGroupId: string;
10
13
  revision: number;
11
14
  metadata: Metadata;
12
- name: string;
13
- componentFields: Array<Field>;
14
15
  partners: Array<string>;
16
+ destination: string;
17
+ name: string;
18
+ description: ComponentDescription;
19
+ notes: ComponentNotes;
20
+ faq: ComponentFAQ;
15
21
  details: ComponentDetails;
16
- bundle?: Bundle;
22
+ componentFields: Array<Field>;
23
+ bundle: Bundle;
17
24
  startDate?: string | null;
18
25
  endDate?: string | null;
19
26
  duration?: number | null;
@@ -1,5 +1,8 @@
1
1
  import type { Bundle } from './Bundle';
2
+ import type { ComponentDescription } from './ComponentDescription';
2
3
  import type { ComponentDetails } from './ComponentDetails';
4
+ import type { ComponentFAQ } from './ComponentFAQ';
5
+ import type { ComponentNotes } from './ComponentNotes';
3
6
  import type { Field } from './Field';
4
7
  import type { Metadata } from './Metadata';
5
8
  export type DTOComponentRead = {
@@ -9,11 +12,15 @@ export type DTOComponentRead = {
9
12
  revisionGroupId: string;
10
13
  revision: number;
11
14
  metadata: Metadata;
12
- name: string;
13
- componentFields: Array<Field>;
14
15
  partners: Array<string>;
16
+ destination: string;
17
+ name: string;
18
+ description: ComponentDescription;
19
+ notes: ComponentNotes;
20
+ faq: ComponentFAQ;
15
21
  details: ComponentDetails;
16
- bundle?: Bundle;
22
+ componentFields: Array<Field>;
23
+ bundle: Bundle;
17
24
  startDate?: string | null;
18
25
  endDate?: string | null;
19
26
  duration?: number | null;
@@ -1,14 +1,21 @@
1
1
  import type { Bundle } from './Bundle';
2
+ import type { ComponentDescription } from './ComponentDescription';
2
3
  import type { ComponentDetails } from './ComponentDetails';
4
+ import type { ComponentFAQ } from './ComponentFAQ';
5
+ import type { ComponentNotes } from './ComponentNotes';
3
6
  import type { Field } from './Field';
4
7
  export type DTOComponentUpdate = {
5
- name?: string;
6
- componentFields?: Array<Field>;
7
- partners?: Array<string>;
8
- details?: ComponentDetails;
8
+ destination: string;
9
+ name: string;
10
+ description: ComponentDescription;
11
+ notes: ComponentNotes;
12
+ faq?: ComponentFAQ;
13
+ componentFields: Array<Field>;
14
+ partners: Array<string>;
15
+ details: ComponentDetails;
9
16
  bundle?: Bundle;
10
17
  startDate?: string | null;
11
18
  endDate?: string | null;
12
19
  duration?: number | null;
13
- state?: string;
20
+ state: string;
14
21
  };
@@ -1,7 +1,7 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Fee } from './Fee';
3
3
  export type DTOItineraryCreate = {
4
- enquirerId: string;
4
+ enquiryId: string;
5
5
  title: string;
6
6
  componentInstances: Array<ComponentInstance>;
7
7
  fees: Array<Fee>;
@@ -3,7 +3,7 @@ import type { Fee } from './Fee';
3
3
  import type { Metadata } from './Metadata';
4
4
  export type DTOItineraryEntity = {
5
5
  id: string;
6
- enquirerId: string;
6
+ enquiryId: string;
7
7
  metadata: Metadata;
8
8
  title: string;
9
9
  componentInstances: Array<ComponentInstance>;
@@ -3,7 +3,7 @@ import type { Fee } from './Fee';
3
3
  import type { Metadata } from './Metadata';
4
4
  export type DTOItineraryRead = {
5
5
  id: string;
6
- enquirerId: string;
6
+ enquiryId: string;
7
7
  metadata: Metadata;
8
8
  title: string;
9
9
  componentInstances: Array<ComponentInstance>;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
2
  import type { Fee } from './Fee';
3
3
  export type DTOItineraryUpdate = {
4
- enquirerId: string;
4
+ enquiryId: string;
5
5
  title: string;
6
6
  componentInstances: Array<ComponentInstance>;
7
7
  fees: Array<Fee>;
@@ -1,8 +1,8 @@
1
1
  import type { ValidationSchemas } from './ValidationSchemas';
2
2
  export type DTOTemplateCreate = {
3
+ orgId: string;
3
4
  name: string;
4
5
  masterSchema: string;
5
6
  validationSchemas: ValidationSchemas;
6
7
  parentRevisionGroupId: string;
7
- orgId?: string;
8
8
  };
@@ -8,11 +8,15 @@ export declare const fetchComponents: () => Promise<{
8
8
  revisionGroupId: string;
9
9
  revision: number;
10
10
  metadata: import("../../api/generated/core").Metadata;
11
- name: string;
12
- componentFields: Array<import("../../api/generated/core").Field>;
13
11
  partners: Array<string>;
12
+ destination: string;
13
+ name: string;
14
+ description: import("../../api/generated/core").ComponentDescription;
15
+ notes: import("../../api/generated/core").ComponentNotes;
16
+ faq: import("../../api/generated/core").ComponentFAQ;
14
17
  details: import("../../api/generated/core").ComponentDetails;
15
- bundle?: import("../../api/generated/core").Bundle;
18
+ componentFields: Array<import("../../api/generated/core").Field>;
19
+ bundle: import("../../api/generated/core").Bundle;
16
20
  startDate?: string | null;
17
21
  endDate?: string | null;
18
22
  duration?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.0.53",
3
+ "version": "2.0.54",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {