swoop-common 2.2.88 → 2.2.91

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.
@@ -4,6 +4,8 @@ export type { BookingGroupSwoop } from './index';
4
4
  export type { BookingGroup_jsonldSwoop } from './index';
5
5
  export type { BookingItemTypeSwoop } from './index';
6
6
  export type { BookingItemType_jsonldSwoop } from './index';
7
+ export type { CabinSwoop } from './index';
8
+ export type { Cabin_jsonldSwoop } from './index';
7
9
  export type { CabinDataSwoop } from './index';
8
10
  export type { CabinData_jsonldSwoop } from './index';
9
11
  export type { CabinTypeSwoop } from './index';
@@ -44,6 +46,8 @@ export type { EnquiryPersonSwoop } from './index';
44
46
  export type { EnquiryPerson_jsonldSwoop } from './index';
45
47
  export type { EnquiryStatusSwoop } from './index';
46
48
  export type { EnquiryStatus_jsonldSwoop } from './index';
49
+ export type { ExchangeRateSwoop } from './index';
50
+ export type { ExchangeRate_jsonldSwoop } from './index';
47
51
  export type { HydraCollectionBaseSchemaSwoop } from './index';
48
52
  export type { HydraItemBaseSchemaSwoop } from './index';
49
53
  export type { Itinerary_ItinerarySaveInputSwoop } from './index';
@@ -8,6 +8,8 @@ export type { BookingGroup as BookingGroupSwoop } from './models/BookingGroup';
8
8
  export type { BookingGroup_jsonld as BookingGroup_jsonldSwoop } from './models/BookingGroup_jsonld';
9
9
  export type { BookingItemType as BookingItemTypeSwoop } from './models/BookingItemType';
10
10
  export type { BookingItemType_jsonld as BookingItemType_jsonldSwoop } from './models/BookingItemType_jsonld';
11
+ export type { Cabin as CabinSwoop } from './models/Cabin';
12
+ export type { Cabin_jsonld as Cabin_jsonldSwoop } from './models/Cabin_jsonld';
11
13
  export type { CabinData as CabinDataSwoop } from './models/CabinData';
12
14
  export type { CabinData_jsonld as CabinData_jsonldSwoop } from './models/CabinData_jsonld';
13
15
  export type { CabinType as CabinTypeSwoop } from './models/CabinType';
@@ -48,6 +50,8 @@ export type { EnquiryPerson as EnquiryPersonSwoop } from './models/EnquiryPerson
48
50
  export type { EnquiryPerson_jsonld as EnquiryPerson_jsonldSwoop } from './models/EnquiryPerson_jsonld';
49
51
  export type { EnquiryStatus as EnquiryStatusSwoop } from './models/EnquiryStatus';
50
52
  export type { EnquiryStatus_jsonld as EnquiryStatus_jsonldSwoop } from './models/EnquiryStatus_jsonld';
53
+ export type { ExchangeRate as ExchangeRateSwoop } from './models/ExchangeRate';
54
+ export type { ExchangeRate_jsonld as ExchangeRate_jsonldSwoop } from './models/ExchangeRate_jsonld';
51
55
  export type { HydraCollectionBaseSchema as HydraCollectionBaseSchemaSwoop } from './models/HydraCollectionBaseSchema';
52
56
  export type { HydraItemBaseSchema as HydraItemBaseSchemaSwoop } from './models/HydraItemBaseSchema';
53
57
  export type { Itinerary_ItinerarySaveInput as Itinerary_ItinerarySaveInputSwoop } from './models/Itinerary_ItinerarySaveInput';
@@ -0,0 +1,4 @@
1
+ export type Cabin = {
2
+ id?: string;
3
+ title?: string;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ import type { Cabin } from './Cabin';
1
2
  import type { CabinType } from './CabinType';
2
3
  import type { Discount } from './Discount';
3
4
  export type CabinData = {
@@ -6,4 +7,5 @@ export type CabinData = {
6
7
  discountPrice?: (Discount | null);
7
8
  isFull?: boolean;
8
9
  cabinType?: CabinType;
10
+ cabin?: (Cabin | null);
9
11
  };
@@ -1,3 +1,4 @@
1
+ import type { Cabin_jsonld } from './Cabin_jsonld';
1
2
  import type { CabinType_jsonld } from './CabinType_jsonld';
2
3
  import type { Discount_jsonld } from './Discount_jsonld';
3
4
  import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
@@ -7,4 +8,5 @@ export type CabinData_jsonld = (HydraItemBaseSchema & {
7
8
  discountPrice?: (Discount_jsonld | null);
8
9
  isFull?: boolean;
9
10
  cabinType?: CabinType_jsonld;
11
+ cabin?: (Cabin_jsonld | null);
10
12
  });
@@ -0,0 +1,5 @@
1
+ import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
2
+ export type Cabin_jsonld = (HydraItemBaseSchema & {
3
+ id?: string;
4
+ title?: string;
5
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export type ExchangeRate = {
2
+ fromCurrency?: string;
3
+ toCurrency?: string;
4
+ conversion?: number;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export type ExchangeRate_jsonld = {
2
+ fromCurrency?: string;
3
+ toCurrency?: string;
4
+ conversion?: number;
5
+ };
@@ -12,6 +12,7 @@ import type { DayByDayType } from '../models/DayByDayType';
12
12
  import type { Departure } from '../models/Departure';
13
13
  import type { Enquiry } from '../models/Enquiry';
14
14
  import type { EnquiryStatus } from '../models/EnquiryStatus';
15
+ import type { ExchangeRate } from '../models/ExchangeRate';
15
16
  import type { Itinerary_ItinerarySaveInput } from '../models/Itinerary_ItinerarySaveInput';
16
17
  import type { Itinerary_ItinerarySaveOutput } from '../models/Itinerary_ItinerarySaveOutput';
17
18
  import type { Partner } from '../models/Partner';
@@ -214,6 +215,13 @@ export declare class SwoopService {
214
215
  enquiryStatusesGetCollection(region?: string): CancelablePromise<{
215
216
  enquiryStatuses?: Array<EnquiryStatus>;
216
217
  }>;
218
+ /**
219
+ * Retrieves the collection of ExchangeRate resources.
220
+ * Retrieves the collection of ExchangeRate resources.
221
+ * @returns ExchangeRate ExchangeRate collection
222
+ * @throws ApiError
223
+ */
224
+ exchangeRateGetCollection(): CancelablePromise<Array<ExchangeRate>>;
217
225
  /**
218
226
  * Replaces the Itinerary resource.
219
227
  * Replaces the Itinerary resource.
@@ -309,6 +309,18 @@ export class SwoopService {
309
309
  },
310
310
  });
311
311
  }
312
+ /**
313
+ * Retrieves the collection of ExchangeRate resources.
314
+ * Retrieves the collection of ExchangeRate resources.
315
+ * @returns ExchangeRate ExchangeRate collection
316
+ * @throws ApiError
317
+ */
318
+ exchangeRateGetCollection() {
319
+ return __request(OpenAPI, {
320
+ method: 'GET',
321
+ url: '/api/exchange-rate',
322
+ });
323
+ }
312
324
  /**
313
325
  * Replaces the Itinerary resource.
314
326
  * Replaces the Itinerary resource.
@@ -23,13 +23,13 @@ const TestCompForm = ({ textValues, onChange, getError, label, enabled, }) => {
23
23
  return updated;
24
24
  });
25
25
  };
26
- return (React.createElement(FormControl, { className: "p-4 my-2" },
26
+ return (React.createElement(FormControl, { sx: { p: 4, my: 2 }, fullWidth: true, error: !!error, disabled: !enabled },
27
27
  React.createElement(InputLabel, { id: "note-type-label" }, "Select note type"),
28
28
  React.createElement(Select, { fullWidth: true, value: key, onChange: (e) => handleSelectChange(e.target.value), disabled: !enabled, label: "note-type-label" },
29
29
  React.createElement(MenuItem, { value: "option1" }, "Option 1"),
30
30
  React.createElement(MenuItem, { value: "option2" }, "Option 2"),
31
31
  React.createElement(MenuItem, { value: "option3" }, "Option 3")),
32
- React.createElement(Editor, { className: "border border-red-500 rounded p-2 mt-2", value: html, onChange: (event) => update(event), disabled: !enabled || !key })));
32
+ React.createElement(Editor, { value: html, onChange: (event) => update(event), disabled: !enabled || !key })));
33
33
  };
34
34
  const FormRendererExample = ({ data, handleChange, path, label, enabled, }) => {
35
35
  const getError = useLocalErrors(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.88",
3
+ "version": "2.2.91",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {
@@ -51,8 +51,7 @@
51
51
  "react": "^19.0.0",
52
52
  "react-simple-wysiwyg": "^3.4.1",
53
53
  "rimraf": "^6.0.1",
54
- "swoop-common": "^2.1.55",
55
- "tailwindcss": "^4.1.18"
54
+ "swoop-common": "^2.1.55"
56
55
  },
57
56
  "devDependencies": {
58
57
  "@apidevtools/swagger-cli": "^4.0.4",