swoop-common 2.1.44 → 2.1.46

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.
@@ -66,4 +66,3 @@ export type { templateId } from './models/templateId';
66
66
  export type { UserComponentInstanceField } from './models/UserComponentInstanceField';
67
67
  export type { ValidationSchemas } from './models/ValidationSchemas';
68
68
  export { ItineraryService } from './services/ItineraryService';
69
- 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';
@@ -16,6 +16,47 @@ export declare class ItineraryService {
16
16
  * @throws ApiError
17
17
  */
18
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
+ * @param snapshotId
36
+ * @returns any OK
37
+ * @throws ApiError
38
+ */
39
+ snapshotGet(snapshotId: string): CancelablePromise<{
40
+ data: Array<DTOSnapshotRead>;
41
+ }>;
42
+ /**
43
+ * Delete Snapshot via ID
44
+ * Deletes a specific snapshot
45
+ * @param snapshotId
46
+ * @returns any OK
47
+ * @throws ApiError
48
+ */
49
+ snapshotDelete(snapshotId: string): CancelablePromise<any>;
50
+ /**
51
+ * Restore Snapshot
52
+ * Creates a new itinerary revision given the content the snapshot refers to
53
+ * @param snapshotId
54
+ * @returns any OK
55
+ * @throws ApiError
56
+ */
57
+ snapshotRestore(snapshotId: string): CancelablePromise<{
58
+ data: Array<DTOSnapshotRead>;
59
+ }>;
19
60
  /**
20
61
  * List Itineraries
21
62
  * List all itineraries
@@ -16,6 +16,74 @@ export class ItineraryService {
16
16
  mediaType: 'application/json',
17
17
  });
18
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
+ * @param snapshotId
43
+ * @returns any OK
44
+ * @throws ApiError
45
+ */
46
+ snapshotGet(snapshotId) {
47
+ return __request(OpenAPI, {
48
+ method: 'GET',
49
+ url: '/snapshots/{snapshotId}',
50
+ path: {
51
+ 'snapshotId': snapshotId,
52
+ },
53
+ });
54
+ }
55
+ /**
56
+ * Delete Snapshot via ID
57
+ * Deletes a specific snapshot
58
+ * @param snapshotId
59
+ * @returns any OK
60
+ * @throws ApiError
61
+ */
62
+ snapshotDelete(snapshotId) {
63
+ return __request(OpenAPI, {
64
+ method: 'DELETE',
65
+ url: '/snapshots/{snapshotId}',
66
+ path: {
67
+ 'snapshotId': snapshotId,
68
+ },
69
+ });
70
+ }
71
+ /**
72
+ * Restore Snapshot
73
+ * Creates a new itinerary revision given the content the snapshot refers to
74
+ * @param snapshotId
75
+ * @returns any OK
76
+ * @throws ApiError
77
+ */
78
+ snapshotRestore(snapshotId) {
79
+ return __request(OpenAPI, {
80
+ method: 'PUT',
81
+ url: '/snapshots/restore',
82
+ path: {
83
+ 'snapshotId': snapshotId,
84
+ },
85
+ });
86
+ }
19
87
  /**
20
88
  * List Itineraries
21
89
  * List all itineraries
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.44",
3
+ "version": "2.1.46",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {
@@ -1,45 +0,0 @@
1
- import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
2
- import type { Pagination } from '../models/Pagination';
3
- import type { CancelablePromise } from '../core/CancelablePromise';
4
- export declare class SnapshotService {
5
- /**
6
- * List Snapshots
7
- * List all available snapshots
8
- * @param page Pagination, starting at page 1
9
- * @param limit Number of items per page
10
- * @param sort List of fields to sort by
11
- * @returns any OK
12
- * @throws ApiError
13
- */
14
- static snapshotList(page?: number, limit?: number, sort?: any[]): CancelablePromise<{
15
- data: Array<DTOSnapshotRead>;
16
- pagination?: Pagination;
17
- }>;
18
- /**
19
- * Get Snapshot va ID
20
- * Returns the specific snapshot
21
- * @param snapshotId
22
- * @returns any OK
23
- * @throws ApiError
24
- */
25
- static snapshotGet(snapshotId: string): CancelablePromise<{
26
- data: Array<DTOSnapshotRead>;
27
- }>;
28
- /**
29
- * Delete Snapshot via ID
30
- * Deletes a specific snapshot
31
- * @param snapshotId
32
- * @returns any OK
33
- * @throws ApiError
34
- */
35
- static snapshotDelete(snapshotId: string): CancelablePromise<any>;
36
- /**
37
- * Restore Snapshot
38
- * Creates a new itinerary revision given the content the snapshot refers to
39
- * @returns any OK
40
- * @throws ApiError
41
- */
42
- static snapshotRestore(): CancelablePromise<{
43
- data: Array<DTOSnapshotRead>;
44
- }>;
45
- }
@@ -1,68 +0,0 @@
1
- import { OpenAPI } from '../core/OpenAPI';
2
- import { request as __request } from '../core/request';
3
- export class SnapshotService {
4
- /**
5
- * List Snapshots
6
- * List all available snapshots
7
- * @param page Pagination, starting at page 1
8
- * @param limit Number of items per page
9
- * @param sort List of fields to sort by
10
- * @returns any OK
11
- * @throws ApiError
12
- */
13
- static snapshotList(page, limit, sort) {
14
- return __request(OpenAPI, {
15
- method: 'GET',
16
- url: '/snapshots',
17
- query: {
18
- 'page': page,
19
- 'limit': limit,
20
- 'sort': sort,
21
- },
22
- });
23
- }
24
- /**
25
- * Get Snapshot va ID
26
- * Returns the specific snapshot
27
- * @param snapshotId
28
- * @returns any OK
29
- * @throws ApiError
30
- */
31
- static snapshotGet(snapshotId) {
32
- return __request(OpenAPI, {
33
- method: 'GET',
34
- url: '/snapshots/{snapshotId}',
35
- path: {
36
- 'snapshotId': snapshotId,
37
- },
38
- });
39
- }
40
- /**
41
- * Delete Snapshot via ID
42
- * Deletes a specific snapshot
43
- * @param snapshotId
44
- * @returns any OK
45
- * @throws ApiError
46
- */
47
- static snapshotDelete(snapshotId) {
48
- return __request(OpenAPI, {
49
- method: 'DELETE',
50
- url: '/snapshots/{snapshotId}',
51
- path: {
52
- 'snapshotId': snapshotId,
53
- },
54
- });
55
- }
56
- /**
57
- * Restore Snapshot
58
- * Creates a new itinerary revision given the content the snapshot refers to
59
- * @returns any OK
60
- * @throws ApiError
61
- */
62
- static snapshotRestore() {
63
- return __request(OpenAPI, {
64
- method: 'PUT',
65
- url: '/snapshots/restore',
66
- });
67
- }
68
- }