swoop-common 2.1.40 → 2.1.41

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 (47) hide show
  1. package/dist/api/generated/core/exports.d.ts +0 -6
  2. package/dist/api/generated/core/exports.js +0 -1
  3. package/dist/api/generated/core/index.d.ts +0 -6
  4. package/dist/api/generated/core/index.js +0 -1
  5. package/dist/api/generated/core/models/ComponentInstance.d.ts +1 -2
  6. package/dist/api/generated/core/models/ComponentPricing.d.ts +1 -2
  7. package/dist/api/generated/core/models/DTOItineraryCreate.d.ts +0 -2
  8. package/dist/api/generated/core/models/DTOItineraryEntity.d.ts +0 -2
  9. package/dist/api/generated/core/models/DTOItineraryRead.d.ts +0 -2
  10. package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +0 -2
  11. package/dist/api/generated/core/models/Fee.d.ts +1 -2
  12. package/dist/api/generated/itinerary/index.d.ts +0 -6
  13. package/dist/api/generated/itinerary/index.js +0 -1
  14. package/dist/api/generated/itinerary/models/ComponentInstance.d.ts +1 -2
  15. package/dist/api/generated/itinerary/models/ComponentPricing.d.ts +1 -2
  16. package/dist/api/generated/itinerary/models/DTOItineraryCreate.d.ts +0 -2
  17. package/dist/api/generated/itinerary/models/DTOItineraryEntity.d.ts +0 -2
  18. package/dist/api/generated/itinerary/models/DTOItineraryRead.d.ts +0 -2
  19. package/dist/api/generated/itinerary/models/DTOItineraryUpdate.d.ts +0 -2
  20. package/dist/api/generated/itinerary/models/Fee.d.ts +1 -2
  21. package/dist/api/generated/itinerary/services/ItineraryService.d.ts +2 -1
  22. package/dist/api/generated/itinerary/services/ItineraryService.js +3 -1
  23. package/package.json +1 -1
  24. package/dist/api/generated/core/models/Currency.d.ts +0 -12
  25. package/dist/api/generated/core/models/Currency.js +0 -17
  26. package/dist/api/generated/core/models/DTOSnapshotCreate.d.ts +0 -4
  27. package/dist/api/generated/core/models/DTOSnapshotCreate.js +0 -1
  28. package/dist/api/generated/core/models/DTOSnapshotEntity.d.ts +0 -7
  29. package/dist/api/generated/core/models/DTOSnapshotEntity.js +0 -1
  30. package/dist/api/generated/core/models/DTOSnapshotRead.d.ts +0 -7
  31. package/dist/api/generated/core/models/DTOSnapshotRead.js +0 -1
  32. package/dist/api/generated/core/models/DTOSnapshotUpdate.d.ts +0 -4
  33. package/dist/api/generated/core/models/DTOSnapshotUpdate.js +0 -1
  34. package/dist/api/generated/core/models/Discount.d.ts +0 -9
  35. package/dist/api/generated/core/models/Discount.js +0 -1
  36. package/dist/api/generated/itinerary/models/Currency.d.ts +0 -12
  37. package/dist/api/generated/itinerary/models/Currency.js +0 -17
  38. package/dist/api/generated/itinerary/models/DTOSnapshotCreate.d.ts +0 -4
  39. package/dist/api/generated/itinerary/models/DTOSnapshotCreate.js +0 -1
  40. package/dist/api/generated/itinerary/models/DTOSnapshotEntity.d.ts +0 -7
  41. package/dist/api/generated/itinerary/models/DTOSnapshotEntity.js +0 -1
  42. package/dist/api/generated/itinerary/models/DTOSnapshotRead.d.ts +0 -7
  43. package/dist/api/generated/itinerary/models/DTOSnapshotRead.js +0 -1
  44. package/dist/api/generated/itinerary/models/DTOSnapshotUpdate.d.ts +0 -4
  45. package/dist/api/generated/itinerary/models/DTOSnapshotUpdate.js +0 -1
  46. package/dist/api/generated/itinerary/models/Discount.d.ts +0 -9
  47. package/dist/api/generated/itinerary/models/Discount.js +0 -1
@@ -14,10 +14,8 @@ export type { ComponentMedia } from './index';
14
14
  export type { ComponentNotes } from './index';
15
15
  export type { ComponentPricing } from './index';
16
16
  export { ComponentState } from './index';
17
- export { Currency } from './index';
18
17
  export type { CurrencyItem } from './index';
19
18
  export type { CurrencyItemResponse } from './index';
20
- export type { Discount } from './index';
21
19
  export type { DTOComponentCreate } from './index';
22
20
  export type { DTOComponentEntity } from './index';
23
21
  export type { DTOComponentRead } from './index';
@@ -30,10 +28,6 @@ export type { DTORegionCreate } from './index';
30
28
  export type { DTORegionEntity } from './index';
31
29
  export type { DTORegionRead } from './index';
32
30
  export type { DTORegionUpdate } from './index';
33
- export type { DTOSnapshotCreate } from './index';
34
- export type { DTOSnapshotEntity } from './index';
35
- export type { DTOSnapshotRead } from './index';
36
- export type { DTOSnapshotUpdate } from './index';
37
31
  export type { DTOTemplateCreate } from './index';
38
32
  export type { DTOTemplateEntity } from './index';
39
33
  export type { DTOTemplateRead } from './index';
@@ -3,7 +3,6 @@ export { ApiError } from './index';
3
3
  export { CancelablePromise, CancelError } from './index';
4
4
  export { BookingStatus } from './index';
5
5
  export { ComponentState } from './index';
6
- export { Currency } from './index';
7
6
  export { Meals } from './index';
8
7
  export { regionParam } from './index';
9
8
  export { regionRequired } from './index';
@@ -16,10 +16,8 @@ export type { ComponentMedia } from './models/ComponentMedia';
16
16
  export type { ComponentNotes } from './models/ComponentNotes';
17
17
  export type { ComponentPricing } from './models/ComponentPricing';
18
18
  export { ComponentState } from './models/ComponentState';
19
- export { Currency } from './models/Currency';
20
19
  export type { CurrencyItem } from './models/CurrencyItem';
21
20
  export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
22
- export type { Discount } from './models/Discount';
23
21
  export type { DTOComponentCreate } from './models/DTOComponentCreate';
24
22
  export type { DTOComponentEntity } from './models/DTOComponentEntity';
25
23
  export type { DTOComponentRead } from './models/DTOComponentRead';
@@ -32,10 +30,6 @@ export type { DTORegionCreate } from './models/DTORegionCreate';
32
30
  export type { DTORegionEntity } from './models/DTORegionEntity';
33
31
  export type { DTORegionRead } from './models/DTORegionRead';
34
32
  export type { DTORegionUpdate } from './models/DTORegionUpdate';
35
- export type { DTOSnapshotCreate } from './models/DTOSnapshotCreate';
36
- export type { DTOSnapshotEntity } from './models/DTOSnapshotEntity';
37
- export type { DTOSnapshotRead } from './models/DTOSnapshotRead';
38
- export type { DTOSnapshotUpdate } from './models/DTOSnapshotUpdate';
39
33
  export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
40
34
  export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
41
35
  export type { DTOTemplateRead } from './models/DTOTemplateRead';
@@ -7,7 +7,6 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
7
  export { OpenAPI } from './core/OpenAPI';
8
8
  export { BookingStatus } from './models/BookingStatus';
9
9
  export { ComponentState } from './models/ComponentState';
10
- export { Currency } from './models/Currency';
11
10
  export { Meals } from './models/Meals';
12
11
  export { regionParam } from './models/regionParam';
13
12
  export { regionRequired } from './models/regionRequired';
@@ -1,7 +1,6 @@
1
1
  import type { AssignedPassenger } from './AssignedPassenger';
2
2
  import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
3
3
  import type { BookingStatus } from './BookingStatus';
4
- import type { Currency } from './Currency';
5
4
  import type { Field } from './Field';
6
5
  import type { UserComponentInstanceField } from './UserComponentInstanceField';
7
6
  export type ComponentInstance = {
@@ -12,7 +11,7 @@ export type ComponentInstance = {
12
11
  assignedPassengers: Array<AssignedPassenger>;
13
12
  assignedTravellerGroups: Array<AssignedTravellerGroup>;
14
13
  price?: number | null;
15
- currency?: Currency | null;
14
+ currency?: string | null;
16
15
  commissionPercent?: number | null;
17
16
  startDate?: string | null;
18
17
  endDate?: string | null;
@@ -1,5 +1,4 @@
1
- import type { Currency } from './Currency';
2
1
  export type ComponentPricing = {
3
2
  price?: number | null;
4
- currency?: Currency | null;
3
+ currency?: string | null;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
- import type { Discount } from './Discount';
3
2
  import type { Fee } from './Fee';
4
3
  import type { QuoteOptions } from './QuoteOptions';
5
4
  export type DTOItineraryCreate = {
@@ -8,5 +7,4 @@ export type DTOItineraryCreate = {
8
7
  componentInstances: Array<ComponentInstance>;
9
8
  fees: Array<Fee>;
10
9
  quoteOption?: QuoteOptions;
11
- discounts: Array<Discount>;
12
10
  };
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
- import type { Discount } from './Discount';
3
2
  import type { Fee } from './Fee';
4
3
  import type { Metadata } from './Metadata';
5
4
  import type { QuoteOptions } from './QuoteOptions';
@@ -13,5 +12,4 @@ export type DTOItineraryEntity = {
13
12
  componentInstances: Array<ComponentInstance>;
14
13
  fees: Array<Fee>;
15
14
  quoteOption?: QuoteOptions;
16
- discounts: Array<Discount>;
17
15
  };
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
- import type { Discount } from './Discount';
3
2
  import type { Fee } from './Fee';
4
3
  import type { Metadata } from './Metadata';
5
4
  import type { QuoteOptions } from './QuoteOptions';
@@ -13,5 +12,4 @@ export type DTOItineraryRead = {
13
12
  componentInstances: Array<ComponentInstance>;
14
13
  fees: Array<Fee>;
15
14
  quoteOption?: QuoteOptions;
16
- discounts: Array<Discount>;
17
15
  };
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
- import type { Discount } from './Discount';
3
2
  import type { Fee } from './Fee';
4
3
  import type { QuoteOptions } from './QuoteOptions';
5
4
  export type DTOItineraryUpdate = {
@@ -8,5 +7,4 @@ export type DTOItineraryUpdate = {
8
7
  componentInstances: Array<ComponentInstance>;
9
8
  fees: Array<Fee>;
10
9
  quoteOption?: QuoteOptions;
11
- discounts: Array<Discount>;
12
10
  };
@@ -1,10 +1,9 @@
1
1
  import type { AssignedPassenger } from './AssignedPassenger';
2
- import type { Currency } from './Currency';
3
2
  export type Fee = {
4
3
  name: string;
5
4
  reason: string;
6
5
  type: string;
7
6
  price: number;
8
- currency: Currency;
7
+ currency: string;
9
8
  assignedPassenger: AssignedPassenger;
10
9
  };
@@ -16,10 +16,8 @@ export type { ComponentMedia } from './models/ComponentMedia';
16
16
  export type { ComponentNotes } from './models/ComponentNotes';
17
17
  export type { ComponentPricing } from './models/ComponentPricing';
18
18
  export { ComponentState } from './models/ComponentState';
19
- export { Currency } from './models/Currency';
20
19
  export type { CurrencyItem } from './models/CurrencyItem';
21
20
  export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
22
- export type { Discount } from './models/Discount';
23
21
  export type { DTOComponentCreate } from './models/DTOComponentCreate';
24
22
  export type { DTOComponentEntity } from './models/DTOComponentEntity';
25
23
  export type { DTOComponentRead } from './models/DTOComponentRead';
@@ -32,10 +30,6 @@ export type { DTORegionCreate } from './models/DTORegionCreate';
32
30
  export type { DTORegionEntity } from './models/DTORegionEntity';
33
31
  export type { DTORegionRead } from './models/DTORegionRead';
34
32
  export type { DTORegionUpdate } from './models/DTORegionUpdate';
35
- export type { DTOSnapshotCreate } from './models/DTOSnapshotCreate';
36
- export type { DTOSnapshotEntity } from './models/DTOSnapshotEntity';
37
- export type { DTOSnapshotRead } from './models/DTOSnapshotRead';
38
- export type { DTOSnapshotUpdate } from './models/DTOSnapshotUpdate';
39
33
  export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
40
34
  export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
41
35
  export type { DTOTemplateRead } from './models/DTOTemplateRead';
@@ -7,7 +7,6 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
7
  export { OpenAPI } from './core/OpenAPI';
8
8
  export { BookingStatus } from './models/BookingStatus';
9
9
  export { ComponentState } from './models/ComponentState';
10
- export { Currency } from './models/Currency';
11
10
  export { Meals } from './models/Meals';
12
11
  export { regionParam } from './models/regionParam';
13
12
  export { regionRequired } from './models/regionRequired';
@@ -1,7 +1,6 @@
1
1
  import type { AssignedPassenger } from './AssignedPassenger';
2
2
  import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
3
3
  import type { BookingStatus } from './BookingStatus';
4
- import type { Currency } from './Currency';
5
4
  import type { Field } from './Field';
6
5
  import type { UserComponentInstanceField } from './UserComponentInstanceField';
7
6
  export type ComponentInstance = {
@@ -12,7 +11,7 @@ export type ComponentInstance = {
12
11
  assignedPassengers: Array<AssignedPassenger>;
13
12
  assignedTravellerGroups: Array<AssignedTravellerGroup>;
14
13
  price?: number | null;
15
- currency?: Currency | null;
14
+ currency?: string | null;
16
15
  commissionPercent?: number | null;
17
16
  startDate?: string | null;
18
17
  endDate?: string | null;
@@ -1,5 +1,4 @@
1
- import type { Currency } from './Currency';
2
1
  export type ComponentPricing = {
3
2
  price?: number | null;
4
- currency?: Currency | null;
3
+ currency?: string | null;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
- import type { Discount } from './Discount';
3
2
  import type { Fee } from './Fee';
4
3
  import type { QuoteOptions } from './QuoteOptions';
5
4
  export type DTOItineraryCreate = {
@@ -8,5 +7,4 @@ export type DTOItineraryCreate = {
8
7
  componentInstances: Array<ComponentInstance>;
9
8
  fees: Array<Fee>;
10
9
  quoteOption?: QuoteOptions;
11
- discounts: Array<Discount>;
12
10
  };
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
- import type { Discount } from './Discount';
3
2
  import type { Fee } from './Fee';
4
3
  import type { Metadata } from './Metadata';
5
4
  import type { QuoteOptions } from './QuoteOptions';
@@ -13,5 +12,4 @@ export type DTOItineraryEntity = {
13
12
  componentInstances: Array<ComponentInstance>;
14
13
  fees: Array<Fee>;
15
14
  quoteOption?: QuoteOptions;
16
- discounts: Array<Discount>;
17
15
  };
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
- import type { Discount } from './Discount';
3
2
  import type { Fee } from './Fee';
4
3
  import type { Metadata } from './Metadata';
5
4
  import type { QuoteOptions } from './QuoteOptions';
@@ -13,5 +12,4 @@ export type DTOItineraryRead = {
13
12
  componentInstances: Array<ComponentInstance>;
14
13
  fees: Array<Fee>;
15
14
  quoteOption?: QuoteOptions;
16
- discounts: Array<Discount>;
17
15
  };
@@ -1,5 +1,4 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
- import type { Discount } from './Discount';
3
2
  import type { Fee } from './Fee';
4
3
  import type { QuoteOptions } from './QuoteOptions';
5
4
  export type DTOItineraryUpdate = {
@@ -8,5 +7,4 @@ export type DTOItineraryUpdate = {
8
7
  componentInstances: Array<ComponentInstance>;
9
8
  fees: Array<Fee>;
10
9
  quoteOption?: QuoteOptions;
11
- discounts: Array<Discount>;
12
10
  };
@@ -1,10 +1,9 @@
1
1
  import type { AssignedPassenger } from './AssignedPassenger';
2
- import type { Currency } from './Currency';
3
2
  export type Fee = {
4
3
  name: string;
5
4
  reason: string;
6
5
  type: string;
7
6
  price: number;
8
- currency: Currency;
7
+ currency: string;
9
8
  assignedPassenger: AssignedPassenger;
10
9
  };
@@ -13,10 +13,11 @@ export declare class ItineraryService {
13
13
  * @param limit Number of items per page
14
14
  * @param search Search term
15
15
  * @param sort List of fields to sort by
16
+ * @param enquiryId Filter itineraries by enquiryId
16
17
  * @returns any OK
17
18
  * @throws ApiError
18
19
  */
19
- itineraryList(page?: number, limit?: number, search?: string, sort?: any[]): CancelablePromise<{
20
+ itineraryList(page?: number, limit?: number, search?: string, sort?: any[], enquiryId?: string): CancelablePromise<{
20
21
  data: Array<DTOItineraryRead>;
21
22
  pagination?: Pagination;
22
23
  }>;
@@ -8,10 +8,11 @@ export class ItineraryService {
8
8
  * @param limit Number of items per page
9
9
  * @param search Search term
10
10
  * @param sort List of fields to sort by
11
+ * @param enquiryId Filter itineraries by enquiryId
11
12
  * @returns any OK
12
13
  * @throws ApiError
13
14
  */
14
- itineraryList(page, limit, search, sort) {
15
+ itineraryList(page, limit, search, sort, enquiryId) {
15
16
  return __request(OpenAPI, {
16
17
  method: 'GET',
17
18
  url: '/itineraries',
@@ -20,6 +21,7 @@ export class ItineraryService {
20
21
  'limit': limit,
21
22
  'search': search,
22
23
  'sort': sort,
24
+ 'enquiryId': enquiryId,
23
25
  },
24
26
  });
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.40",
3
+ "version": "2.1.41",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {
@@ -1,12 +0,0 @@
1
- export declare enum Currency {
2
- GBP = "gbp",
3
- USD = "usd",
4
- EUR = "eur",
5
- CLP = "clp",
6
- ZAR = "zar",
7
- ARS = "ars",
8
- NZD = "nzd",
9
- CAD = "cad",
10
- NOK = "nok",
11
- DKK = "dkk"
12
- }
@@ -1,17 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export var Currency;
6
- (function (Currency) {
7
- Currency["GBP"] = "gbp";
8
- Currency["USD"] = "usd";
9
- Currency["EUR"] = "eur";
10
- Currency["CLP"] = "clp";
11
- Currency["ZAR"] = "zar";
12
- Currency["ARS"] = "ars";
13
- Currency["NZD"] = "nzd";
14
- Currency["CAD"] = "cad";
15
- Currency["NOK"] = "nok";
16
- Currency["DKK"] = "dkk";
17
- })(Currency || (Currency = {}));
@@ -1,4 +0,0 @@
1
- export type DTOSnapshotCreate = {
2
- name: string;
3
- itineraryId: string;
4
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import type { Metadata } from './Metadata';
2
- export type DTOSnapshotEntity = {
3
- id: string;
4
- metadata: Metadata;
5
- name: string;
6
- itineraryId: string;
7
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import type { Metadata } from './Metadata';
2
- export type DTOSnapshotRead = {
3
- id: string;
4
- metadata: Metadata;
5
- name: string;
6
- itineraryId: string;
7
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- export type DTOSnapshotUpdate = {
2
- name?: string;
3
- itineraryId?: string;
4
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import type { AssignedPassenger } from './AssignedPassenger';
2
- export type Discount = {
3
- name: string;
4
- reason: string;
5
- type: string;
6
- price: number;
7
- currency: string;
8
- assignedPassenger: AssignedPassenger;
9
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- export declare enum Currency {
2
- GBP = "gbp",
3
- USD = "usd",
4
- EUR = "eur",
5
- CLP = "clp",
6
- ZAR = "zar",
7
- ARS = "ars",
8
- NZD = "nzd",
9
- CAD = "cad",
10
- NOK = "nok",
11
- DKK = "dkk"
12
- }
@@ -1,17 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export var Currency;
6
- (function (Currency) {
7
- Currency["GBP"] = "gbp";
8
- Currency["USD"] = "usd";
9
- Currency["EUR"] = "eur";
10
- Currency["CLP"] = "clp";
11
- Currency["ZAR"] = "zar";
12
- Currency["ARS"] = "ars";
13
- Currency["NZD"] = "nzd";
14
- Currency["CAD"] = "cad";
15
- Currency["NOK"] = "nok";
16
- Currency["DKK"] = "dkk";
17
- })(Currency || (Currency = {}));
@@ -1,4 +0,0 @@
1
- export type DTOSnapshotCreate = {
2
- name: string;
3
- itineraryId: string;
4
- };
@@ -1,7 +0,0 @@
1
- import type { Metadata } from './Metadata';
2
- export type DTOSnapshotEntity = {
3
- id: string;
4
- metadata: Metadata;
5
- name: string;
6
- itineraryId: string;
7
- };
@@ -1,7 +0,0 @@
1
- import type { Metadata } from './Metadata';
2
- export type DTOSnapshotRead = {
3
- id: string;
4
- metadata: Metadata;
5
- name: string;
6
- itineraryId: string;
7
- };
@@ -1,4 +0,0 @@
1
- export type DTOSnapshotUpdate = {
2
- name?: string;
3
- itineraryId?: string;
4
- };
@@ -1,9 +0,0 @@
1
- import type { AssignedPassenger } from './AssignedPassenger';
2
- export type Discount = {
3
- name: string;
4
- reason: string;
5
- type: string;
6
- price: number;
7
- currency: string;
8
- assignedPassenger: AssignedPassenger;
9
- };
@@ -1 +0,0 @@
1
- export {};