swoop-common 2.1.42 → 2.1.44

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.
@@ -58,6 +58,7 @@ export type { QuoteOptions } from './index';
58
58
  export { regionParam } from './index';
59
59
  export { regionRequired } from './index';
60
60
  export type { search } from './index';
61
+ export type { snapshotId } from './index';
61
62
  export type { sortParam } from './index';
62
63
  export type { templateId } from './index';
63
64
  export type { UserComponentInstanceField } from './index';
@@ -60,6 +60,7 @@ export type { QuoteOptions } from './models/QuoteOptions';
60
60
  export { regionParam } from './models/regionParam';
61
61
  export { regionRequired } from './models/regionRequired';
62
62
  export type { search } from './models/search';
63
+ export type { snapshotId } from './models/snapshotId';
63
64
  export type { sortParam } from './models/sortParam';
64
65
  export type { templateId } from './models/templateId';
65
66
  export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
@@ -0,0 +1 @@
1
+ export type snapshotId = string;
@@ -0,0 +1 @@
1
+ export {};
@@ -60,6 +60,7 @@ export type { QuoteOptions } from './models/QuoteOptions';
60
60
  export { regionParam } from './models/regionParam';
61
61
  export { regionRequired } from './models/regionRequired';
62
62
  export type { search } from './models/search';
63
+ export type { snapshotId } from './models/snapshotId';
63
64
  export type { sortParam } from './models/sortParam';
64
65
  export type { templateId } from './models/templateId';
65
66
  export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
@@ -0,0 +1 @@
1
+ export type snapshotId = string;
@@ -0,0 +1 @@
1
+ export {};
@@ -3,9 +3,19 @@ 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>;
9
19
  /**
10
20
  * List Itineraries
11
21
  * List all itineraries
@@ -1,6 +1,21 @@
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
+ }
4
19
  /**
5
20
  * List Itineraries
6
21
  * List all itineraries
@@ -1,16 +1,7 @@
1
- import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
2
1
  import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
3
2
  import type { Pagination } from '../models/Pagination';
4
3
  import type { CancelablePromise } from '../core/CancelablePromise';
5
4
  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
5
  /**
15
6
  * List Snapshots
16
7
  * List all available snapshots
@@ -27,19 +18,21 @@ export declare class SnapshotService {
27
18
  /**
28
19
  * Get Snapshot va ID
29
20
  * Returns the specific snapshot
21
+ * @param snapshotId
30
22
  * @returns any OK
31
23
  * @throws ApiError
32
24
  */
33
- static snapshotGet(): CancelablePromise<{
25
+ static snapshotGet(snapshotId: string): CancelablePromise<{
34
26
  data: Array<DTOSnapshotRead>;
35
27
  }>;
36
28
  /**
37
29
  * Delete Snapshot via ID
38
30
  * Deletes a specific snapshot
31
+ * @param snapshotId
39
32
  * @returns any OK
40
33
  * @throws ApiError
41
34
  */
42
- static snapshotDelete(): CancelablePromise<any>;
35
+ static snapshotDelete(snapshotId: string): CancelablePromise<any>;
43
36
  /**
44
37
  * Restore Snapshot
45
38
  * Creates a new itinerary revision given the content the snapshot refers to
@@ -1,21 +1,6 @@
1
1
  import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
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
4
  /**
20
5
  * List Snapshots
21
6
  * List all available snapshots
@@ -39,25 +24,33 @@ export class SnapshotService {
39
24
  /**
40
25
  * Get Snapshot va ID
41
26
  * Returns the specific snapshot
27
+ * @param snapshotId
42
28
  * @returns any OK
43
29
  * @throws ApiError
44
30
  */
45
- static snapshotGet() {
31
+ static snapshotGet(snapshotId) {
46
32
  return __request(OpenAPI, {
47
33
  method: 'GET',
48
34
  url: '/snapshots/{snapshotId}',
35
+ path: {
36
+ 'snapshotId': snapshotId,
37
+ },
49
38
  });
50
39
  }
51
40
  /**
52
41
  * Delete Snapshot via ID
53
42
  * Deletes a specific snapshot
43
+ * @param snapshotId
54
44
  * @returns any OK
55
45
  * @throws ApiError
56
46
  */
57
- static snapshotDelete() {
47
+ static snapshotDelete(snapshotId) {
58
48
  return __request(OpenAPI, {
59
49
  method: 'DELETE',
60
50
  url: '/snapshots/{snapshotId}',
51
+ path: {
52
+ 'snapshotId': snapshotId,
53
+ },
61
54
  });
62
55
  }
63
56
  /**
@@ -69,7 +62,7 @@ export class SnapshotService {
69
62
  static snapshotRestore() {
70
63
  return __request(OpenAPI, {
71
64
  method: 'PUT',
72
- url: '/snapshots/restore/{snapshotId}',
65
+ url: '/snapshots/restore',
73
66
  });
74
67
  }
75
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.42",
3
+ "version": "2.1.44",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {