swoop-common 2.1.1 → 2.1.2

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.
@@ -9,6 +9,7 @@ export type { ComponentDescription } from './index';
9
9
  export type { ComponentFAQ } from './index';
10
10
  export type { componentId } from './index';
11
11
  export type { ComponentInstance } from './index';
12
+ export type { ComponentMedia } from './index';
12
13
  export type { ComponentNotes } from './index';
13
14
  export type { ComponentPricing } from './index';
14
15
  export type { CurrencyItem } from './index';
@@ -11,6 +11,7 @@ export type { ComponentDescription } from './models/ComponentDescription';
11
11
  export type { ComponentFAQ } from './models/ComponentFAQ';
12
12
  export type { componentId } from './models/componentId';
13
13
  export type { ComponentInstance } from './models/ComponentInstance';
14
+ export type { ComponentMedia } from './models/ComponentMedia';
14
15
  export type { ComponentNotes } from './models/ComponentNotes';
15
16
  export type { ComponentPricing } from './models/ComponentPricing';
16
17
  export type { CurrencyItem } from './models/CurrencyItem';
@@ -0,0 +1,4 @@
1
+ export type ComponentMedia = {
2
+ images?: Array<string>;
3
+ videos?: Array<string>;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
+ import type { ComponentMedia } from './ComponentMedia';
3
4
  import type { ComponentNotes } from './ComponentNotes';
4
5
  import type { ComponentPricing } from './ComponentPricing';
5
6
  import type { Field } from './Field';
@@ -14,6 +15,7 @@ export type DTOComponentCreate = {
14
15
  componentFields: Array<Field>;
15
16
  partners: Array<string>;
16
17
  regions: Array<string>;
18
+ media?: ComponentMedia;
17
19
  pricing: ComponentPricing;
18
20
  package?: Package;
19
21
  startDate?: string | null;
@@ -1,5 +1,6 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
+ import type { ComponentMedia } from './ComponentMedia';
3
4
  import type { ComponentNotes } from './ComponentNotes';
4
5
  import type { ComponentPricing } from './ComponentPricing';
5
6
  import type { Field } from './Field';
@@ -14,6 +15,7 @@ export type DTOComponentEntity = {
14
15
  metadata: Metadata;
15
16
  partners: Array<string>;
16
17
  regions: Array<string>;
18
+ media: ComponentMedia;
17
19
  destination?: string;
18
20
  name: string;
19
21
  description?: ComponentDescription;
@@ -1,5 +1,6 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
+ import type { ComponentMedia } from './ComponentMedia';
3
4
  import type { ComponentNotes } from './ComponentNotes';
4
5
  import type { ComponentPricing } from './ComponentPricing';
5
6
  import type { Field } from './Field';
@@ -14,6 +15,7 @@ export type DTOComponentRead = {
14
15
  metadata: Metadata;
15
16
  partners: Array<string>;
16
17
  regions: Array<string>;
18
+ media: ComponentMedia;
17
19
  destination?: string;
18
20
  name: string;
19
21
  description?: ComponentDescription;
@@ -1,5 +1,6 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
+ import type { ComponentMedia } from './ComponentMedia';
3
4
  import type { ComponentNotes } from './ComponentNotes';
4
5
  import type { ComponentPricing } from './ComponentPricing';
5
6
  import type { Field } from './Field';
@@ -11,6 +12,7 @@ export type DTOComponentUpdate = {
11
12
  faq?: ComponentFAQ;
12
13
  componentFields?: Array<Field>;
13
14
  partners?: Array<string>;
15
+ media?: ComponentMedia;
14
16
  regions?: Array<string>;
15
17
  pricing?: ComponentPricing;
16
18
  package?: Package;
@@ -11,6 +11,7 @@ export type { ComponentDescription } from './models/ComponentDescription';
11
11
  export type { ComponentFAQ } from './models/ComponentFAQ';
12
12
  export type { componentId } from './models/componentId';
13
13
  export type { ComponentInstance } from './models/ComponentInstance';
14
+ export type { ComponentMedia } from './models/ComponentMedia';
14
15
  export type { ComponentNotes } from './models/ComponentNotes';
15
16
  export type { ComponentPricing } from './models/ComponentPricing';
16
17
  export type { CurrencyItem } from './models/CurrencyItem';
@@ -0,0 +1,4 @@
1
+ export type ComponentMedia = {
2
+ images?: Array<string>;
3
+ videos?: Array<string>;
4
+ };
@@ -1,5 +1,6 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
+ import type { ComponentMedia } from './ComponentMedia';
3
4
  import type { ComponentNotes } from './ComponentNotes';
4
5
  import type { ComponentPricing } from './ComponentPricing';
5
6
  import type { Field } from './Field';
@@ -14,6 +15,7 @@ export type DTOComponentCreate = {
14
15
  componentFields: Array<Field>;
15
16
  partners: Array<string>;
16
17
  regions: Array<string>;
18
+ media?: ComponentMedia;
17
19
  pricing: ComponentPricing;
18
20
  package?: Package;
19
21
  startDate?: string | null;
@@ -1,5 +1,6 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
+ import type { ComponentMedia } from './ComponentMedia';
3
4
  import type { ComponentNotes } from './ComponentNotes';
4
5
  import type { ComponentPricing } from './ComponentPricing';
5
6
  import type { Field } from './Field';
@@ -14,6 +15,7 @@ export type DTOComponentEntity = {
14
15
  metadata: Metadata;
15
16
  partners: Array<string>;
16
17
  regions: Array<string>;
18
+ media: ComponentMedia;
17
19
  destination?: string;
18
20
  name: string;
19
21
  description?: ComponentDescription;
@@ -1,5 +1,6 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
+ import type { ComponentMedia } from './ComponentMedia';
3
4
  import type { ComponentNotes } from './ComponentNotes';
4
5
  import type { ComponentPricing } from './ComponentPricing';
5
6
  import type { Field } from './Field';
@@ -14,6 +15,7 @@ export type DTOComponentRead = {
14
15
  metadata: Metadata;
15
16
  partners: Array<string>;
16
17
  regions: Array<string>;
18
+ media: ComponentMedia;
17
19
  destination?: string;
18
20
  name: string;
19
21
  description?: ComponentDescription;
@@ -1,5 +1,6 @@
1
1
  import type { ComponentDescription } from './ComponentDescription';
2
2
  import type { ComponentFAQ } from './ComponentFAQ';
3
+ import type { ComponentMedia } from './ComponentMedia';
3
4
  import type { ComponentNotes } from './ComponentNotes';
4
5
  import type { ComponentPricing } from './ComponentPricing';
5
6
  import type { Field } from './Field';
@@ -11,6 +12,7 @@ export type DTOComponentUpdate = {
11
12
  faq?: ComponentFAQ;
12
13
  componentFields?: Array<Field>;
13
14
  partners?: Array<string>;
15
+ media?: ComponentMedia;
14
16
  regions?: Array<string>;
15
17
  pricing?: ComponentPricing;
16
18
  package?: Package;
@@ -10,6 +10,7 @@ export declare const fetchComponents: () => Promise<{
10
10
  metadata: import("../../api/generated/core").Metadata;
11
11
  partners: Array<string>;
12
12
  regions: Array<string>;
13
+ media: import("../../api/generated/core").ComponentMedia;
13
14
  destination?: string;
14
15
  name: string;
15
16
  description?: import("../../api/generated/core").ComponentDescription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {