swoop-common 2.0.8 → 2.0.9

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.
@@ -3,6 +3,6 @@ export type Bundle = {
3
3
  days: Array<BundleDay>;
4
4
  title: string;
5
5
  description: string;
6
- start: string;
7
- end: string;
6
+ startTime?: string;
7
+ endTime?: string;
8
8
  };
@@ -3,6 +3,6 @@ export type BundleDay = {
3
3
  title?: string;
4
4
  description?: string;
5
5
  items?: Array<BundleItem>;
6
- startDay?: string;
7
- endDay?: string;
6
+ startDay?: number;
7
+ endDay?: number;
8
8
  };
@@ -12,7 +12,7 @@ export type DTOComponentCreate = {
12
12
  name: string;
13
13
  componentFields: Array<Field>;
14
14
  partners: Array<string>;
15
- bundle: Array<Bundle>;
15
+ bundle: Bundle;
16
16
  startDate?: string | null;
17
17
  endDate?: string | null;
18
18
  duration?: number | null;
@@ -11,7 +11,7 @@ export type DTOComponentRead = {
11
11
  name: string;
12
12
  componentFields: Array<Field>;
13
13
  partners: Array<string>;
14
- bundle: Array<Bundle>;
14
+ bundle: Bundle;
15
15
  startDate?: string | null;
16
16
  endDate?: string | null;
17
17
  duration?: number | null;
@@ -11,7 +11,7 @@ export type DTOComponentUpdate = {
11
11
  name: string;
12
12
  componentFields: Array<Field>;
13
13
  partners: Array<string>;
14
- bundle: Array<Bundle>;
14
+ bundle: Bundle;
15
15
  startDate?: string | null;
16
16
  endDate?: string | null;
17
17
  duration?: number | null;
@@ -107,13 +107,6 @@ export declare class CoreService {
107
107
  componentStateUpdate(componentId: string, requestBody: {
108
108
  state?: 'published' | 'deprecated' | 'unpublished';
109
109
  }): CancelablePromise<any>;
110
- /**
111
- * Get Itinerary
112
- * Get itinerary via id
113
- * @returns any OK
114
- * @throws ApiError
115
- */
116
- itineraryGet(): CancelablePromise<any>;
117
110
  /**
118
111
  * Resolve template hierarchy
119
112
  * @returns Array<DTOTemplateRead> OK
@@ -197,18 +197,6 @@ export class CoreService {
197
197
  mediaType: 'application/json',
198
198
  });
199
199
  }
200
- /**
201
- * Get Itinerary
202
- * Get itinerary via id
203
- * @returns any OK
204
- * @throws ApiError
205
- */
206
- itineraryGet() {
207
- return __request(OpenAPI, {
208
- method: 'GET',
209
- url: '/itineraries',
210
- });
211
- }
212
200
  /**
213
201
  * Resolve template hierarchy
214
202
  * @returns Array<DTOTemplateRead> OK
@@ -3,6 +3,6 @@ export type Bundle = {
3
3
  days: Array<BundleDay>;
4
4
  title: string;
5
5
  description: string;
6
- start: string;
7
- end: string;
6
+ startTime?: string;
7
+ endTime?: string;
8
8
  };
@@ -3,6 +3,6 @@ export type BundleDay = {
3
3
  title?: string;
4
4
  description?: string;
5
5
  items?: Array<BundleItem>;
6
- startDay?: string;
7
- endDay?: string;
6
+ startDay?: number;
7
+ endDay?: number;
8
8
  };
@@ -12,7 +12,7 @@ export type DTOComponentCreate = {
12
12
  name: string;
13
13
  componentFields: Array<Field>;
14
14
  partners: Array<string>;
15
- bundle: Array<Bundle>;
15
+ bundle: Bundle;
16
16
  startDate?: string | null;
17
17
  endDate?: string | null;
18
18
  duration?: number | null;
@@ -11,7 +11,7 @@ export type DTOComponentRead = {
11
11
  name: string;
12
12
  componentFields: Array<Field>;
13
13
  partners: Array<string>;
14
- bundle: Array<Bundle>;
14
+ bundle: Bundle;
15
15
  startDate?: string | null;
16
16
  endDate?: string | null;
17
17
  duration?: number | null;
@@ -11,7 +11,7 @@ export type DTOComponentUpdate = {
11
11
  name: string;
12
12
  componentFields: Array<Field>;
13
13
  partners: Array<string>;
14
- bundle: Array<Bundle>;
14
+ bundle: Bundle;
15
15
  startDate?: string | null;
16
16
  endDate?: string | null;
17
17
  duration?: number | null;
@@ -10,7 +10,7 @@ export declare const fetchComponents: () => Promise<{
10
10
  name: string;
11
11
  componentFields: Array<import("../../api/generated/core").Field>;
12
12
  partners: Array<string>;
13
- bundle: Array<import("../../api/generated/core").Bundle>;
13
+ bundle: import("../../api/generated/core").Bundle;
14
14
  startDate?: string | null;
15
15
  endDate?: string | null;
16
16
  duration?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {