swoop-common 2.1.42 → 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.
@@ -65,4 +65,3 @@ export type { templateId } from './models/templateId';
65
65
  export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
66
66
  export type { ValidationSchemas } from './models/ValidationSchemas';
67
67
  export { ItineraryService } from './services/ItineraryService';
68
- export { SnapshotService } from './services/SnapshotService';
@@ -12,4 +12,3 @@ export { Meals } from './models/Meals';
12
12
  export { regionParam } from './models/regionParam';
13
13
  export { regionRequired } from './models/regionRequired';
14
14
  export { ItineraryService } from './services/ItineraryService';
15
- export { SnapshotService } from './services/SnapshotService';
@@ -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
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.42",
3
+ "version": "2.1.43",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {
@@ -1,52 +0,0 @@
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
- }
@@ -1,75 +0,0 @@
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
- }