swoop-common 2.1.41 → 2.1.43

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 (48) 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 +6 -0
  26. package/dist/api/generated/itinerary/index.js +1 -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 +53 -5
  47. package/dist/api/generated/itinerary/services/ItineraryService.js +76 -5
  48. 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';
@@ -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,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
  };
@@ -3,9 +3,57 @@ import type { DTOItineraryRead } from '../models/DTOItineraryRead';
3
3
  import type { DTOItineraryUpdate } from '../models/DTOItineraryUpdate';
4
4
  import type { DTORegionCreate } from '../models/DTORegionCreate';
5
5
  import type { DTORegionRead } from '../models/DTORegionRead';
6
+ import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
7
+ import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
6
8
  import type { Pagination } from '../models/Pagination';
7
9
  import type { CancelablePromise } from '../core/CancelablePromise';
8
10
  export declare class ItineraryService {
11
+ /**
12
+ * Create a Snapshot
13
+ * Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
14
+ * @param requestBody
15
+ * @returns DTOSnapshotRead OK
16
+ * @throws ApiError
17
+ */
18
+ snapshotCreate(requestBody: DTOSnapshotCreate): CancelablePromise<DTOSnapshotRead>;
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
+ snapshotList(page?: number, limit?: number, sort?: any[]): CancelablePromise<{
29
+ data: Array<DTOSnapshotRead>;
30
+ pagination?: Pagination;
31
+ }>;
32
+ /**
33
+ * Get Snapshot va ID
34
+ * Returns the specific snapshot
35
+ * @returns any OK
36
+ * @throws ApiError
37
+ */
38
+ snapshotGet(): CancelablePromise<{
39
+ data: Array<DTOSnapshotRead>;
40
+ }>;
41
+ /**
42
+ * Delete Snapshot via ID
43
+ * Deletes a specific snapshot
44
+ * @returns any OK
45
+ * @throws ApiError
46
+ */
47
+ snapshotDelete(): CancelablePromise<any>;
48
+ /**
49
+ * Restore Snapshot
50
+ * Creates a new itinerary revision given the content the snapshot refers to
51
+ * @returns any OK
52
+ * @throws ApiError
53
+ */
54
+ snapshotRestore(): CancelablePromise<{
55
+ data: Array<DTOSnapshotRead>;
56
+ }>;
9
57
  /**
10
58
  * List Itineraries
11
59
  * List all itineraries
@@ -13,7 +61,7 @@ export declare class ItineraryService {
13
61
  * @param limit Number of items per page
14
62
  * @param search Search term
15
63
  * @param sort List of fields to sort by
16
- * @param enquiryId Filter itineraries by enquiryId
64
+ * @param enquiryId Filter itineraries via enquiryId
17
65
  * @returns any OK
18
66
  * @throws ApiError
19
67
  */
@@ -23,7 +71,7 @@ export declare class ItineraryService {
23
71
  }>;
24
72
  /**
25
73
  * Create Itinerary
26
- * Create itinerary
74
+ * Creates an itinerary
27
75
  * @param requestBody
28
76
  * @returns DTOItineraryRead OK
29
77
  * @throws ApiError
@@ -31,7 +79,7 @@ export declare class ItineraryService {
31
79
  itineraryCreate(requestBody: DTOItineraryCreate): CancelablePromise<DTOItineraryRead>;
32
80
  /**
33
81
  * Get Itinerary
34
- * Get itinerary via id
82
+ * Get itinerary via ID
35
83
  * @param itineraryId Itinerary id
36
84
  * @returns DTOItineraryRead OK
37
85
  * @throws ApiError
@@ -39,7 +87,7 @@ export declare class ItineraryService {
39
87
  itineraryGet(itineraryId: string): CancelablePromise<DTOItineraryRead>;
40
88
  /**
41
89
  * Update Itinerary
42
- * Update itinerary
90
+ * Updates an itinerary as a new revision
43
91
  * @param itineraryId Itinerary id
44
92
  * @param requestBody
45
93
  * @returns DTOItineraryRead OK
@@ -48,7 +96,7 @@ export declare class ItineraryService {
48
96
  itineraryUpdate(itineraryId: string, requestBody: DTOItineraryUpdate): CancelablePromise<DTOItineraryRead>;
49
97
  /**
50
98
  * Delete Itinerary
51
- * Delete itinerary via id
99
+ * Delete itinerary via ID
52
100
  * @param itineraryId Itinerary id
53
101
  * @returns any OK
54
102
  * @throws ApiError
@@ -1,6 +1,77 @@
1
1
  import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
3
  export class ItineraryService {
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
+ 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
+ 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
+ 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
+ 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
+ snapshotRestore() {
70
+ return __request(OpenAPI, {
71
+ method: 'PUT',
72
+ url: '/snapshots/restore/{snapshotId}',
73
+ });
74
+ }
4
75
  /**
5
76
  * List Itineraries
6
77
  * List all itineraries
@@ -8,7 +79,7 @@ export class ItineraryService {
8
79
  * @param limit Number of items per page
9
80
  * @param search Search term
10
81
  * @param sort List of fields to sort by
11
- * @param enquiryId Filter itineraries by enquiryId
82
+ * @param enquiryId Filter itineraries via enquiryId
12
83
  * @returns any OK
13
84
  * @throws ApiError
14
85
  */
@@ -27,7 +98,7 @@ export class ItineraryService {
27
98
  }
28
99
  /**
29
100
  * Create Itinerary
30
- * Create itinerary
101
+ * Creates an itinerary
31
102
  * @param requestBody
32
103
  * @returns DTOItineraryRead OK
33
104
  * @throws ApiError
@@ -42,7 +113,7 @@ export class ItineraryService {
42
113
  }
43
114
  /**
44
115
  * Get Itinerary
45
- * Get itinerary via id
116
+ * Get itinerary via ID
46
117
  * @param itineraryId Itinerary id
47
118
  * @returns DTOItineraryRead OK
48
119
  * @throws ApiError
@@ -58,7 +129,7 @@ export class ItineraryService {
58
129
  }
59
130
  /**
60
131
  * Update Itinerary
61
- * Update itinerary
132
+ * Updates an itinerary as a new revision
62
133
  * @param itineraryId Itinerary id
63
134
  * @param requestBody
64
135
  * @returns DTOItineraryRead OK
@@ -77,7 +148,7 @@ export class ItineraryService {
77
148
  }
78
149
  /**
79
150
  * Delete Itinerary
80
- * Delete itinerary via id
151
+ * Delete itinerary via ID
81
152
  * @param itineraryId Itinerary id
82
153
  * @returns any OK
83
154
  * @throws ApiError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.41",
3
+ "version": "2.1.43",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {