swoop-common 2.1.46 → 2.1.48

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.
@@ -45,6 +45,7 @@ export type { IBEvent } from './index';
45
45
  export type { id } from './index';
46
46
  export type { itemsPerPage } from './index';
47
47
  export type { itineraryId } from './index';
48
+ export type { itineraryIdQuery } from './index';
48
49
  export type { Limit } from './index';
49
50
  export { Meals } from './index';
50
51
  export type { Member } from './index';
@@ -47,6 +47,7 @@ export type { IBEvent } from './models/IBEvent';
47
47
  export type { id } from './models/id';
48
48
  export type { itemsPerPage } from './models/itemsPerPage';
49
49
  export type { itineraryId } from './models/itineraryId';
50
+ export type { itineraryIdQuery } from './models/itineraryIdQuery';
50
51
  export type { Limit } from './models/Limit';
51
52
  export { Meals } from './models/Meals';
52
53
  export type { Member } from './models/Member';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Itinerary Id
3
+ */
4
+ export type itineraryIdQuery = string;
@@ -0,0 +1 @@
1
+ export {};
@@ -47,6 +47,7 @@ export type { IBEvent } from './models/IBEvent';
47
47
  export type { id } from './models/id';
48
48
  export type { itemsPerPage } from './models/itemsPerPage';
49
49
  export type { itineraryId } from './models/itineraryId';
50
+ export type { itineraryIdQuery } from './models/itineraryIdQuery';
50
51
  export type { Limit } from './models/Limit';
51
52
  export { Meals } from './models/Meals';
52
53
  export type { Member } from './models/Member';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Itinerary Id
3
+ */
4
+ export type itineraryIdQuery = string;
@@ -22,10 +22,11 @@ export declare class ItineraryService {
22
22
  * @param page Pagination, starting at page 1
23
23
  * @param limit Number of items per page
24
24
  * @param sort List of fields to sort by
25
+ * @param itineraryId Itinerary Id
25
26
  * @returns any OK
26
27
  * @throws ApiError
27
28
  */
28
- snapshotList(page?: number, limit?: number, sort?: any[]): CancelablePromise<{
29
+ snapshotList(page?: number, limit?: number, sort?: any[], itineraryId?: string): CancelablePromise<{
29
30
  data: Array<DTOSnapshotRead>;
30
31
  pagination?: Pagination;
31
32
  }>;
@@ -22,10 +22,11 @@ export class ItineraryService {
22
22
  * @param page Pagination, starting at page 1
23
23
  * @param limit Number of items per page
24
24
  * @param sort List of fields to sort by
25
+ * @param itineraryId Itinerary Id
25
26
  * @returns any OK
26
27
  * @throws ApiError
27
28
  */
28
- snapshotList(page, limit, sort) {
29
+ snapshotList(page, limit, sort, itineraryId) {
29
30
  return __request(OpenAPI, {
30
31
  method: 'GET',
31
32
  url: '/snapshots',
@@ -33,6 +34,7 @@ export class ItineraryService {
33
34
  'page': page,
34
35
  'limit': limit,
35
36
  'sort': sort,
37
+ 'itineraryId': itineraryId,
36
38
  },
37
39
  });
38
40
  }
@@ -78,7 +80,7 @@ export class ItineraryService {
78
80
  snapshotRestore(snapshotId) {
79
81
  return __request(OpenAPI, {
80
82
  method: 'PUT',
81
- url: '/snapshots/restore',
83
+ url: '/snapshots/restore/{snapshotId}',
82
84
  path: {
83
85
  'snapshotId': snapshotId,
84
86
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.46",
3
+ "version": "2.1.48",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {