swoop-common 2.1.41 → 2.1.42

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 (50) hide show
  1. package/dist/api/generated/core/exports.d.ts +6 -0
  2. package/dist/api/generated/core/exports.js +1 -0
  3. package/dist/api/generated/core/index.d.ts +6 -0
  4. package/dist/api/generated/core/index.js +1 -0
  5. package/dist/api/generated/core/models/ComponentInstance.d.ts +2 -1
  6. package/dist/api/generated/core/models/ComponentPricing.d.ts +2 -1
  7. package/dist/api/generated/core/models/Currency.d.ts +12 -0
  8. package/dist/api/generated/core/models/Currency.js +17 -0
  9. package/dist/api/generated/core/models/DTOItineraryCreate.d.ts +2 -0
  10. package/dist/api/generated/core/models/DTOItineraryEntity.d.ts +2 -0
  11. package/dist/api/generated/core/models/DTOItineraryRead.d.ts +2 -0
  12. package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +2 -0
  13. package/dist/api/generated/core/models/DTOSnapshotCreate.d.ts +4 -0
  14. package/dist/api/generated/core/models/DTOSnapshotCreate.js +1 -0
  15. package/dist/api/generated/core/models/DTOSnapshotEntity.d.ts +7 -0
  16. package/dist/api/generated/core/models/DTOSnapshotEntity.js +1 -0
  17. package/dist/api/generated/core/models/DTOSnapshotRead.d.ts +7 -0
  18. package/dist/api/generated/core/models/DTOSnapshotRead.js +1 -0
  19. package/dist/api/generated/core/models/DTOSnapshotUpdate.d.ts +4 -0
  20. package/dist/api/generated/core/models/DTOSnapshotUpdate.js +1 -0
  21. package/dist/api/generated/core/models/Discount.d.ts +9 -0
  22. package/dist/api/generated/core/models/Discount.js +1 -0
  23. package/dist/api/generated/core/models/Fee.d.ts +2 -1
  24. package/dist/api/generated/itinerary/core/OpenAPI.js +1 -1
  25. package/dist/api/generated/itinerary/index.d.ts +7 -0
  26. package/dist/api/generated/itinerary/index.js +2 -0
  27. package/dist/api/generated/itinerary/models/ComponentInstance.d.ts +2 -1
  28. package/dist/api/generated/itinerary/models/ComponentPricing.d.ts +2 -1
  29. package/dist/api/generated/itinerary/models/Currency.d.ts +12 -0
  30. package/dist/api/generated/itinerary/models/Currency.js +17 -0
  31. package/dist/api/generated/itinerary/models/DTOItineraryCreate.d.ts +2 -0
  32. package/dist/api/generated/itinerary/models/DTOItineraryEntity.d.ts +2 -0
  33. package/dist/api/generated/itinerary/models/DTOItineraryRead.d.ts +2 -0
  34. package/dist/api/generated/itinerary/models/DTOItineraryUpdate.d.ts +2 -0
  35. package/dist/api/generated/itinerary/models/DTOSnapshotCreate.d.ts +4 -0
  36. package/dist/api/generated/itinerary/models/DTOSnapshotCreate.js +1 -0
  37. package/dist/api/generated/itinerary/models/DTOSnapshotEntity.d.ts +7 -0
  38. package/dist/api/generated/itinerary/models/DTOSnapshotEntity.js +1 -0
  39. package/dist/api/generated/itinerary/models/DTOSnapshotRead.d.ts +7 -0
  40. package/dist/api/generated/itinerary/models/DTOSnapshotRead.js +1 -0
  41. package/dist/api/generated/itinerary/models/DTOSnapshotUpdate.d.ts +4 -0
  42. package/dist/api/generated/itinerary/models/DTOSnapshotUpdate.js +1 -0
  43. package/dist/api/generated/itinerary/models/Discount.d.ts +9 -0
  44. package/dist/api/generated/itinerary/models/Discount.js +1 -0
  45. package/dist/api/generated/itinerary/models/Fee.d.ts +2 -1
  46. package/dist/api/generated/itinerary/services/ItineraryService.d.ts +5 -5
  47. package/dist/api/generated/itinerary/services/ItineraryService.js +5 -5
  48. package/dist/api/generated/itinerary/services/SnapshotService.d.ts +52 -0
  49. package/dist/api/generated/itinerary/services/SnapshotService.js +75 -0
  50. package/package.json +1 -1
@@ -14,8 +14,10 @@ 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';
17
18
  export type { CurrencyItem } from './index';
18
19
  export type { CurrencyItemResponse } from './index';
20
+ export type { Discount } from './index';
19
21
  export type { DTOComponentCreate } from './index';
20
22
  export type { DTOComponentEntity } from './index';
21
23
  export type { DTOComponentRead } from './index';
@@ -28,6 +30,10 @@ export type { DTORegionCreate } from './index';
28
30
  export type { DTORegionEntity } from './index';
29
31
  export type { DTORegionRead } from './index';
30
32
  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';
31
37
  export type { DTOTemplateCreate } from './index';
32
38
  export type { DTOTemplateEntity } from './index';
33
39
  export type { DTOTemplateRead } from './index';
@@ -3,6 +3,7 @@ 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';
6
7
  export { Meals } from './index';
7
8
  export { regionParam } from './index';
8
9
  export { regionRequired } from './index';
@@ -16,8 +16,10 @@ 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';
19
20
  export type { CurrencyItem } from './models/CurrencyItem';
20
21
  export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
22
+ export type { Discount } from './models/Discount';
21
23
  export type { DTOComponentCreate } from './models/DTOComponentCreate';
22
24
  export type { DTOComponentEntity } from './models/DTOComponentEntity';
23
25
  export type { DTOComponentRead } from './models/DTOComponentRead';
@@ -30,6 +32,10 @@ export type { DTORegionCreate } from './models/DTORegionCreate';
30
32
  export type { DTORegionEntity } from './models/DTORegionEntity';
31
33
  export type { DTORegionRead } from './models/DTORegionRead';
32
34
  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';
33
39
  export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
34
40
  export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
35
41
  export type { DTOTemplateRead } from './models/DTOTemplateRead';
@@ -7,6 +7,7 @@ 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';
10
11
  export { Meals } from './models/Meals';
11
12
  export { regionParam } from './models/regionParam';
12
13
  export { regionRequired } from './models/regionRequired';
@@ -1,6 +1,7 @@
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';
4
5
  import type { Field } from './Field';
5
6
  import type { UserComponentInstanceField } from './UserComponentInstanceField';
6
7
  export type ComponentInstance = {
@@ -11,7 +12,7 @@ export type ComponentInstance = {
11
12
  assignedPassengers: Array<AssignedPassenger>;
12
13
  assignedTravellerGroups: Array<AssignedTravellerGroup>;
13
14
  price?: number | null;
14
- currency?: string | null;
15
+ currency?: Currency | null;
15
16
  commissionPercent?: number | null;
16
17
  startDate?: string | null;
17
18
  endDate?: string | null;
@@ -1,4 +1,5 @@
1
+ import type { Currency } from './Currency';
1
2
  export type ComponentPricing = {
2
3
  price?: number | null;
3
- currency?: string | null;
4
+ currency?: Currency | null;
4
5
  };
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,17 @@
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 +1,5 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
+ import type { Discount } from './Discount';
2
3
  import type { Fee } from './Fee';
3
4
  import type { QuoteOptions } from './QuoteOptions';
4
5
  export type DTOItineraryCreate = {
@@ -7,4 +8,5 @@ export type DTOItineraryCreate = {
7
8
  componentInstances: Array<ComponentInstance>;
8
9
  fees: Array<Fee>;
9
10
  quoteOption?: QuoteOptions;
11
+ discounts: Array<Discount>;
10
12
  };
@@ -1,4 +1,5 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
+ import type { Discount } from './Discount';
2
3
  import type { Fee } from './Fee';
3
4
  import type { Metadata } from './Metadata';
4
5
  import type { QuoteOptions } from './QuoteOptions';
@@ -12,4 +13,5 @@ export type DTOItineraryEntity = {
12
13
  componentInstances: Array<ComponentInstance>;
13
14
  fees: Array<Fee>;
14
15
  quoteOption?: QuoteOptions;
16
+ discounts: Array<Discount>;
15
17
  };
@@ -1,4 +1,5 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
+ import type { Discount } from './Discount';
2
3
  import type { Fee } from './Fee';
3
4
  import type { Metadata } from './Metadata';
4
5
  import type { QuoteOptions } from './QuoteOptions';
@@ -12,4 +13,5 @@ export type DTOItineraryRead = {
12
13
  componentInstances: Array<ComponentInstance>;
13
14
  fees: Array<Fee>;
14
15
  quoteOption?: QuoteOptions;
16
+ discounts: Array<Discount>;
15
17
  };
@@ -1,4 +1,5 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
+ import type { Discount } from './Discount';
2
3
  import type { Fee } from './Fee';
3
4
  import type { QuoteOptions } from './QuoteOptions';
4
5
  export type DTOItineraryUpdate = {
@@ -7,4 +8,5 @@ export type DTOItineraryUpdate = {
7
8
  componentInstances: Array<ComponentInstance>;
8
9
  fees: Array<Fee>;
9
10
  quoteOption?: QuoteOptions;
11
+ discounts: Array<Discount>;
10
12
  };
@@ -0,0 +1,4 @@
1
+ export type DTOSnapshotCreate = {
2
+ name: string;
3
+ itineraryId: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { Metadata } from './Metadata';
2
+ export type DTOSnapshotEntity = {
3
+ id: string;
4
+ metadata: Metadata;
5
+ name: string;
6
+ itineraryId: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { Metadata } from './Metadata';
2
+ export type DTOSnapshotRead = {
3
+ id: string;
4
+ metadata: Metadata;
5
+ name: string;
6
+ itineraryId: string;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export type DTOSnapshotUpdate = {
2
+ name?: string;
3
+ itineraryId?: string;
4
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,10 @@
1
1
  import type { AssignedPassenger } from './AssignedPassenger';
2
+ import type { Currency } from './Currency';
2
3
  export type Fee = {
3
4
  name: string;
4
5
  reason: string;
5
6
  type: string;
6
7
  price: number;
7
- currency: string;
8
+ currency: Currency;
8
9
  assignedPassenger: AssignedPassenger;
9
10
  };
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: 'https://placeholder.com',
3
- VERSION: '1.0',
3
+ VERSION: '1.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -16,8 +16,10 @@ 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';
19
20
  export type { CurrencyItem } from './models/CurrencyItem';
20
21
  export type { CurrencyItemResponse } from './models/CurrencyItemResponse';
22
+ export type { Discount } from './models/Discount';
21
23
  export type { DTOComponentCreate } from './models/DTOComponentCreate';
22
24
  export type { DTOComponentEntity } from './models/DTOComponentEntity';
23
25
  export type { DTOComponentRead } from './models/DTOComponentRead';
@@ -30,6 +32,10 @@ export type { DTORegionCreate } from './models/DTORegionCreate';
30
32
  export type { DTORegionEntity } from './models/DTORegionEntity';
31
33
  export type { DTORegionRead } from './models/DTORegionRead';
32
34
  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';
33
39
  export type { DTOTemplateCreate } from './models/DTOTemplateCreate';
34
40
  export type { DTOTemplateEntity } from './models/DTOTemplateEntity';
35
41
  export type { DTOTemplateRead } from './models/DTOTemplateRead';
@@ -59,3 +65,4 @@ export type { templateId } from './models/templateId';
59
65
  export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
60
66
  export type { ValidationSchemas } from './models/ValidationSchemas';
61
67
  export { ItineraryService } from './services/ItineraryService';
68
+ export { SnapshotService } from './services/SnapshotService';
@@ -7,7 +7,9 @@ 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';
10
11
  export { Meals } from './models/Meals';
11
12
  export { regionParam } from './models/regionParam';
12
13
  export { regionRequired } from './models/regionRequired';
13
14
  export { ItineraryService } from './services/ItineraryService';
15
+ export { SnapshotService } from './services/SnapshotService';
@@ -1,6 +1,7 @@
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';
4
5
  import type { Field } from './Field';
5
6
  import type { UserComponentInstanceField } from './UserComponentInstanceField';
6
7
  export type ComponentInstance = {
@@ -11,7 +12,7 @@ export type ComponentInstance = {
11
12
  assignedPassengers: Array<AssignedPassenger>;
12
13
  assignedTravellerGroups: Array<AssignedTravellerGroup>;
13
14
  price?: number | null;
14
- currency?: string | null;
15
+ currency?: Currency | null;
15
16
  commissionPercent?: number | null;
16
17
  startDate?: string | null;
17
18
  endDate?: string | null;
@@ -1,4 +1,5 @@
1
+ import type { Currency } from './Currency';
1
2
  export type ComponentPricing = {
2
3
  price?: number | null;
3
- currency?: string | null;
4
+ currency?: Currency | null;
4
5
  };
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,17 @@
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 +1,5 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
+ import type { Discount } from './Discount';
2
3
  import type { Fee } from './Fee';
3
4
  import type { QuoteOptions } from './QuoteOptions';
4
5
  export type DTOItineraryCreate = {
@@ -7,4 +8,5 @@ export type DTOItineraryCreate = {
7
8
  componentInstances: Array<ComponentInstance>;
8
9
  fees: Array<Fee>;
9
10
  quoteOption?: QuoteOptions;
11
+ discounts: Array<Discount>;
10
12
  };
@@ -1,4 +1,5 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
+ import type { Discount } from './Discount';
2
3
  import type { Fee } from './Fee';
3
4
  import type { Metadata } from './Metadata';
4
5
  import type { QuoteOptions } from './QuoteOptions';
@@ -12,4 +13,5 @@ export type DTOItineraryEntity = {
12
13
  componentInstances: Array<ComponentInstance>;
13
14
  fees: Array<Fee>;
14
15
  quoteOption?: QuoteOptions;
16
+ discounts: Array<Discount>;
15
17
  };
@@ -1,4 +1,5 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
+ import type { Discount } from './Discount';
2
3
  import type { Fee } from './Fee';
3
4
  import type { Metadata } from './Metadata';
4
5
  import type { QuoteOptions } from './QuoteOptions';
@@ -12,4 +13,5 @@ export type DTOItineraryRead = {
12
13
  componentInstances: Array<ComponentInstance>;
13
14
  fees: Array<Fee>;
14
15
  quoteOption?: QuoteOptions;
16
+ discounts: Array<Discount>;
15
17
  };
@@ -1,4 +1,5 @@
1
1
  import type { ComponentInstance } from './ComponentInstance';
2
+ import type { Discount } from './Discount';
2
3
  import type { Fee } from './Fee';
3
4
  import type { QuoteOptions } from './QuoteOptions';
4
5
  export type DTOItineraryUpdate = {
@@ -7,4 +8,5 @@ export type DTOItineraryUpdate = {
7
8
  componentInstances: Array<ComponentInstance>;
8
9
  fees: Array<Fee>;
9
10
  quoteOption?: QuoteOptions;
11
+ discounts: Array<Discount>;
10
12
  };
@@ -0,0 +1,4 @@
1
+ export type DTOSnapshotCreate = {
2
+ name: string;
3
+ itineraryId: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { Metadata } from './Metadata';
2
+ export type DTOSnapshotEntity = {
3
+ id: string;
4
+ metadata: Metadata;
5
+ name: string;
6
+ itineraryId: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { Metadata } from './Metadata';
2
+ export type DTOSnapshotRead = {
3
+ id: string;
4
+ metadata: Metadata;
5
+ name: string;
6
+ itineraryId: string;
7
+ };
@@ -0,0 +1,4 @@
1
+ export type DTOSnapshotUpdate = {
2
+ name?: string;
3
+ itineraryId?: string;
4
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,10 @@
1
1
  import type { AssignedPassenger } from './AssignedPassenger';
2
+ import type { Currency } from './Currency';
2
3
  export type Fee = {
3
4
  name: string;
4
5
  reason: string;
5
6
  type: string;
6
7
  price: number;
7
- currency: string;
8
+ currency: Currency;
8
9
  assignedPassenger: AssignedPassenger;
9
10
  };
@@ -13,7 +13,7 @@ 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
+ * @param enquiryId Filter itineraries via enquiryId
17
17
  * @returns any OK
18
18
  * @throws ApiError
19
19
  */
@@ -23,7 +23,7 @@ export declare class ItineraryService {
23
23
  }>;
24
24
  /**
25
25
  * Create Itinerary
26
- * Create itinerary
26
+ * Creates an itinerary
27
27
  * @param requestBody
28
28
  * @returns DTOItineraryRead OK
29
29
  * @throws ApiError
@@ -31,7 +31,7 @@ export declare class ItineraryService {
31
31
  itineraryCreate(requestBody: DTOItineraryCreate): CancelablePromise<DTOItineraryRead>;
32
32
  /**
33
33
  * Get Itinerary
34
- * Get itinerary via id
34
+ * Get itinerary via ID
35
35
  * @param itineraryId Itinerary id
36
36
  * @returns DTOItineraryRead OK
37
37
  * @throws ApiError
@@ -39,7 +39,7 @@ export declare class ItineraryService {
39
39
  itineraryGet(itineraryId: string): CancelablePromise<DTOItineraryRead>;
40
40
  /**
41
41
  * Update Itinerary
42
- * Update itinerary
42
+ * Updates an itinerary as a new revision
43
43
  * @param itineraryId Itinerary id
44
44
  * @param requestBody
45
45
  * @returns DTOItineraryRead OK
@@ -48,7 +48,7 @@ export declare class ItineraryService {
48
48
  itineraryUpdate(itineraryId: string, requestBody: DTOItineraryUpdate): CancelablePromise<DTOItineraryRead>;
49
49
  /**
50
50
  * Delete Itinerary
51
- * Delete itinerary via id
51
+ * Delete itinerary via ID
52
52
  * @param itineraryId Itinerary id
53
53
  * @returns any OK
54
54
  * @throws ApiError
@@ -8,7 +8,7 @@ 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
+ * @param enquiryId Filter itineraries via enquiryId
12
12
  * @returns any OK
13
13
  * @throws ApiError
14
14
  */
@@ -27,7 +27,7 @@ export class ItineraryService {
27
27
  }
28
28
  /**
29
29
  * Create Itinerary
30
- * Create itinerary
30
+ * Creates an itinerary
31
31
  * @param requestBody
32
32
  * @returns DTOItineraryRead OK
33
33
  * @throws ApiError
@@ -42,7 +42,7 @@ export class ItineraryService {
42
42
  }
43
43
  /**
44
44
  * Get Itinerary
45
- * Get itinerary via id
45
+ * Get itinerary via ID
46
46
  * @param itineraryId Itinerary id
47
47
  * @returns DTOItineraryRead OK
48
48
  * @throws ApiError
@@ -58,7 +58,7 @@ export class ItineraryService {
58
58
  }
59
59
  /**
60
60
  * Update Itinerary
61
- * Update itinerary
61
+ * Updates an itinerary as a new revision
62
62
  * @param itineraryId Itinerary id
63
63
  * @param requestBody
64
64
  * @returns DTOItineraryRead OK
@@ -77,7 +77,7 @@ export class ItineraryService {
77
77
  }
78
78
  /**
79
79
  * Delete Itinerary
80
- * Delete itinerary via id
80
+ * Delete itinerary via ID
81
81
  * @param itineraryId Itinerary id
82
82
  * @returns any OK
83
83
  * @throws ApiError
@@ -0,0 +1,52 @@
1
+ import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
2
+ import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
3
+ import type { Pagination } from '../models/Pagination';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ export declare class SnapshotService {
6
+ /**
7
+ * Create a Snapshot
8
+ * Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
9
+ * @param requestBody
10
+ * @returns DTOSnapshotRead OK
11
+ * @throws ApiError
12
+ */
13
+ static snapshotCreate(requestBody: DTOSnapshotCreate): CancelablePromise<DTOSnapshotRead>;
14
+ /**
15
+ * List Snapshots
16
+ * List all available snapshots
17
+ * @param page Pagination, starting at page 1
18
+ * @param limit Number of items per page
19
+ * @param sort List of fields to sort by
20
+ * @returns any OK
21
+ * @throws ApiError
22
+ */
23
+ static snapshotList(page?: number, limit?: number, sort?: any[]): CancelablePromise<{
24
+ data: Array<DTOSnapshotRead>;
25
+ pagination?: Pagination;
26
+ }>;
27
+ /**
28
+ * Get Snapshot va ID
29
+ * Returns the specific snapshot
30
+ * @returns any OK
31
+ * @throws ApiError
32
+ */
33
+ static snapshotGet(): CancelablePromise<{
34
+ data: Array<DTOSnapshotRead>;
35
+ }>;
36
+ /**
37
+ * Delete Snapshot via ID
38
+ * Deletes a specific snapshot
39
+ * @returns any OK
40
+ * @throws ApiError
41
+ */
42
+ static snapshotDelete(): CancelablePromise<any>;
43
+ /**
44
+ * Restore Snapshot
45
+ * Creates a new itinerary revision given the content the snapshot refers to
46
+ * @returns any OK
47
+ * @throws ApiError
48
+ */
49
+ static snapshotRestore(): CancelablePromise<{
50
+ data: Array<DTOSnapshotRead>;
51
+ }>;
52
+ }
@@ -0,0 +1,75 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class SnapshotService {
4
+ /**
5
+ * Create a Snapshot
6
+ * Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
7
+ * @param requestBody
8
+ * @returns DTOSnapshotRead OK
9
+ * @throws ApiError
10
+ */
11
+ static snapshotCreate(requestBody) {
12
+ return __request(OpenAPI, {
13
+ method: 'POST',
14
+ url: '/snapshots',
15
+ body: requestBody,
16
+ mediaType: 'application/json',
17
+ });
18
+ }
19
+ /**
20
+ * List Snapshots
21
+ * List all available snapshots
22
+ * @param page Pagination, starting at page 1
23
+ * @param limit Number of items per page
24
+ * @param sort List of fields to sort by
25
+ * @returns any OK
26
+ * @throws ApiError
27
+ */
28
+ static snapshotList(page, limit, sort) {
29
+ return __request(OpenAPI, {
30
+ method: 'GET',
31
+ url: '/snapshots',
32
+ query: {
33
+ 'page': page,
34
+ 'limit': limit,
35
+ 'sort': sort,
36
+ },
37
+ });
38
+ }
39
+ /**
40
+ * Get Snapshot va ID
41
+ * Returns the specific snapshot
42
+ * @returns any OK
43
+ * @throws ApiError
44
+ */
45
+ static snapshotGet() {
46
+ return __request(OpenAPI, {
47
+ method: 'GET',
48
+ url: '/snapshots/{snapshotId}',
49
+ });
50
+ }
51
+ /**
52
+ * Delete Snapshot via ID
53
+ * Deletes a specific snapshot
54
+ * @returns any OK
55
+ * @throws ApiError
56
+ */
57
+ static snapshotDelete() {
58
+ return __request(OpenAPI, {
59
+ method: 'DELETE',
60
+ url: '/snapshots/{snapshotId}',
61
+ });
62
+ }
63
+ /**
64
+ * Restore Snapshot
65
+ * Creates a new itinerary revision given the content the snapshot refers to
66
+ * @returns any OK
67
+ * @throws ApiError
68
+ */
69
+ static snapshotRestore() {
70
+ return __request(OpenAPI, {
71
+ method: 'PUT',
72
+ url: '/snapshots/restore/{snapshotId}',
73
+ });
74
+ }
75
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.41",
3
+ "version": "2.1.42",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {