swoop-common 2.2.3 → 2.2.6
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.
- package/README.md +225 -225
- package/dist/api/generated/core/exports.d.ts +0 -1
- package/dist/api/generated/core/index.d.ts +0 -2
- package/dist/api/generated/core/index.js +0 -1
- package/dist/api/generated/core/models/SortQueryParam.d.ts +1 -1
- package/dist/api/generated/core/models/SwooperPersonalInfo.d.ts +4 -4
- package/dist/api/generated/core/services/ComponentService.d.ts +5 -5
- package/dist/api/generated/core/services/ComponentService.js +19 -17
- package/dist/api/generated/core/services/CoreService.d.ts +25 -34
- package/dist/api/generated/core/services/CoreService.js +99 -127
- package/dist/api/generated/core/services/ItineraryService.d.ts +2 -2
- package/dist/api/generated/core/services/ItineraryService.js +22 -22
- package/dist/api/generated/core/services/RegionService.d.ts +4 -4
- package/dist/api/generated/core/services/RegionService.js +8 -9
- package/dist/api/generated/core/services/SnapshotService.d.ts +9 -7
- package/dist/api/generated/core/services/SnapshotService.js +20 -22
- package/dist/api/generated/core/services/SwooperService.d.ts +4 -3
- package/dist/api/generated/core/services/SwooperService.js +12 -13
- package/dist/api/generated/core/services/TemplateService.d.ts +3 -3
- package/dist/api/generated/core/services/TemplateService.js +18 -20
- package/package.json +60 -60
- package/dist/api/generated/core/models/B64StringQueryParam.d.ts +0 -4
- package/dist/api/generated/core/models/B64StringQueryParam.js +0 -1
- package/dist/api/generated/core/services/AuditService.d.ts +0 -13
- package/dist/api/generated/core/services/AuditService.js +0 -28
|
@@ -12,18 +12,18 @@ export declare class RegionService {
|
|
|
12
12
|
* @param sort List of fields to sort by, this requires the order query param
|
|
13
13
|
* @param search The search strings to apply to the on query parameter values
|
|
14
14
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
15
|
-
* @returns any
|
|
15
|
+
* @returns any Paginated response of regions
|
|
16
16
|
* @throws ApiError
|
|
17
17
|
*/
|
|
18
|
-
static regionList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?:
|
|
19
|
-
data?: Array<DTORegionRead>;
|
|
18
|
+
static regionList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
20
19
|
pagination?: Pagination;
|
|
20
|
+
data?: Array<DTORegionRead>;
|
|
21
21
|
}>;
|
|
22
22
|
/**
|
|
23
23
|
* Create Region
|
|
24
24
|
* Create a region
|
|
25
25
|
* @param requestBody
|
|
26
|
-
* @returns DTORegionRead
|
|
26
|
+
* @returns DTORegionRead When a region is created
|
|
27
27
|
* @throws ApiError
|
|
28
28
|
*/
|
|
29
29
|
static regionCreate(requestBody?: DTORegionCreate): CancelablePromise<DTORegionRead>;
|
|
@@ -10,7 +10,7 @@ export class RegionService {
|
|
|
10
10
|
* @param sort List of fields to sort by, this requires the order query param
|
|
11
11
|
* @param search The search strings to apply to the on query parameter values
|
|
12
12
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
13
|
-
* @returns any
|
|
13
|
+
* @returns any Paginated response of regions
|
|
14
14
|
* @throws ApiError
|
|
15
15
|
*/
|
|
16
16
|
static regionList(page, limit, order, sort, search, on) {
|
|
@@ -26,10 +26,9 @@ export class RegionService {
|
|
|
26
26
|
'on': on,
|
|
27
27
|
},
|
|
28
28
|
errors: {
|
|
29
|
-
400: `If the
|
|
30
|
-
401: `
|
|
31
|
-
500: `When an
|
|
32
|
-
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
29
|
+
400: `If the payload is malformed`,
|
|
30
|
+
401: `When the client is not authorised`,
|
|
31
|
+
500: `When an unexpected error occurs`,
|
|
33
32
|
},
|
|
34
33
|
});
|
|
35
34
|
}
|
|
@@ -37,7 +36,7 @@ export class RegionService {
|
|
|
37
36
|
* Create Region
|
|
38
37
|
* Create a region
|
|
39
38
|
* @param requestBody
|
|
40
|
-
* @returns DTORegionRead
|
|
39
|
+
* @returns DTORegionRead When a region is created
|
|
41
40
|
* @throws ApiError
|
|
42
41
|
*/
|
|
43
42
|
static regionCreate(requestBody) {
|
|
@@ -48,9 +47,9 @@ export class RegionService {
|
|
|
48
47
|
mediaType: 'application/json',
|
|
49
48
|
errors: {
|
|
50
49
|
400: `If the payload is malformed`,
|
|
51
|
-
401: `
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
401: `When the client is not authorised`,
|
|
51
|
+
404: `If a resource does not exist`,
|
|
52
|
+
500: `When an unexpected error occurs`,
|
|
54
53
|
},
|
|
55
54
|
});
|
|
56
55
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
2
2
|
import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
|
|
3
3
|
import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
|
|
4
|
+
import type { Pagination } from '../models/Pagination';
|
|
4
5
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
5
6
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
7
|
export declare class SnapshotService {
|
|
@@ -8,13 +9,13 @@ export declare class SnapshotService {
|
|
|
8
9
|
* Create a Snapshot
|
|
9
10
|
* Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
|
|
10
11
|
* @param requestBody
|
|
11
|
-
* @returns DTOSnapshotRead When the
|
|
12
|
+
* @returns DTOSnapshotRead When the snapshot is created
|
|
12
13
|
* @throws ApiError
|
|
13
14
|
*/
|
|
14
15
|
static snapshotCreate(requestBody: DTOSnapshotCreate): CancelablePromise<DTOSnapshotRead>;
|
|
15
16
|
/**
|
|
16
17
|
* List Snapshots
|
|
17
|
-
*
|
|
18
|
+
* Get a paginated response of available snapshots
|
|
18
19
|
* @param enquiryId
|
|
19
20
|
* @param page Pagination, starting at page 1
|
|
20
21
|
* @param limit Number of items per page
|
|
@@ -22,17 +23,18 @@ export declare class SnapshotService {
|
|
|
22
23
|
* @param sort List of fields to sort by, this requires the order query param
|
|
23
24
|
* @param search The search strings to apply to the on query parameter values
|
|
24
25
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
25
|
-
* @returns any
|
|
26
|
+
* @returns any Paginated response of snapshots
|
|
26
27
|
* @throws ApiError
|
|
27
28
|
*/
|
|
28
|
-
static snapshotList(enquiryId?: string, page?: number, limit?: number, order?: 'asc' | 'desc', sort?:
|
|
29
|
-
|
|
29
|
+
static snapshotList(enquiryId?: string, page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
30
|
+
pagination?: Pagination;
|
|
31
|
+
data?: Array<DTOSnapshotRead>;
|
|
30
32
|
}>;
|
|
31
33
|
/**
|
|
32
34
|
* Get Snapshot va ID
|
|
33
35
|
* Returns the specific snapshot given its Id
|
|
34
36
|
* @param snapshotId
|
|
35
|
-
* @returns any
|
|
37
|
+
* @returns any A object containing the snapshot entity and the itinerary associated with it
|
|
36
38
|
* @throws ApiError
|
|
37
39
|
*/
|
|
38
40
|
static snapshotGet(snapshotId: SnapshotId): CancelablePromise<{
|
|
@@ -51,7 +53,7 @@ export declare class SnapshotService {
|
|
|
51
53
|
* Restore Snapshot
|
|
52
54
|
* Creates a new itinerary revision given the content the snapshot refers to
|
|
53
55
|
* @param snapshotId
|
|
54
|
-
* @returns any When a snapshot is restored as the latest version
|
|
56
|
+
* @returns any When a snapshot is restored as the latest version. A object containing the snapshot entity and the itinerary associated with it.
|
|
55
57
|
* @throws ApiError
|
|
56
58
|
*/
|
|
57
59
|
static snapshotRestore(snapshotId: SnapshotId): CancelablePromise<{
|
|
@@ -5,7 +5,7 @@ export class SnapshotService {
|
|
|
5
5
|
* Create a Snapshot
|
|
6
6
|
* Creates a new snapshot. A snapshot is a reference to a specific itinerary revision group id.
|
|
7
7
|
* @param requestBody
|
|
8
|
-
* @returns DTOSnapshotRead When the
|
|
8
|
+
* @returns DTOSnapshotRead When the snapshot is created
|
|
9
9
|
* @throws ApiError
|
|
10
10
|
*/
|
|
11
11
|
static snapshotCreate(requestBody) {
|
|
@@ -16,15 +16,15 @@ export class SnapshotService {
|
|
|
16
16
|
mediaType: 'application/json',
|
|
17
17
|
errors: {
|
|
18
18
|
400: `If the payload is malformed`,
|
|
19
|
-
401: `When the
|
|
20
|
-
404: `If
|
|
21
|
-
500: `When an
|
|
19
|
+
401: `When the client is not authorised`,
|
|
20
|
+
404: `If a resource does not exist`,
|
|
21
|
+
500: `When an unexpected error occurs`,
|
|
22
22
|
},
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* List Snapshots
|
|
27
|
-
*
|
|
27
|
+
* Get a paginated response of available snapshots
|
|
28
28
|
* @param enquiryId
|
|
29
29
|
* @param page Pagination, starting at page 1
|
|
30
30
|
* @param limit Number of items per page
|
|
@@ -32,7 +32,7 @@ export class SnapshotService {
|
|
|
32
32
|
* @param sort List of fields to sort by, this requires the order query param
|
|
33
33
|
* @param search The search strings to apply to the on query parameter values
|
|
34
34
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
35
|
-
* @returns any
|
|
35
|
+
* @returns any Paginated response of snapshots
|
|
36
36
|
* @throws ApiError
|
|
37
37
|
*/
|
|
38
38
|
static snapshotList(enquiryId, page, limit, order, sort, search, on) {
|
|
@@ -50,8 +50,8 @@ export class SnapshotService {
|
|
|
50
50
|
},
|
|
51
51
|
errors: {
|
|
52
52
|
400: `If the payload is malformed`,
|
|
53
|
-
401: `When the
|
|
54
|
-
500: `When an
|
|
53
|
+
401: `When the client is not authorised`,
|
|
54
|
+
500: `When an unexpected error occurs`,
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -59,7 +59,7 @@ export class SnapshotService {
|
|
|
59
59
|
* Get Snapshot va ID
|
|
60
60
|
* Returns the specific snapshot given its Id
|
|
61
61
|
* @param snapshotId
|
|
62
|
-
* @returns any
|
|
62
|
+
* @returns any A object containing the snapshot entity and the itinerary associated with it
|
|
63
63
|
* @throws ApiError
|
|
64
64
|
*/
|
|
65
65
|
static snapshotGet(snapshotId) {
|
|
@@ -71,9 +71,9 @@ export class SnapshotService {
|
|
|
71
71
|
},
|
|
72
72
|
errors: {
|
|
73
73
|
400: `If the payload is malformed`,
|
|
74
|
-
401: `
|
|
75
|
-
404: `If
|
|
76
|
-
500: `When an
|
|
74
|
+
401: `When the client is not authorised`,
|
|
75
|
+
404: `If a resource does not exist`,
|
|
76
|
+
500: `When an unexpected error occurs`,
|
|
77
77
|
},
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -92,11 +92,10 @@ export class SnapshotService {
|
|
|
92
92
|
'snapshotId': snapshotId,
|
|
93
93
|
},
|
|
94
94
|
errors: {
|
|
95
|
-
400: `
|
|
96
|
-
401: `
|
|
97
|
-
404: `If
|
|
98
|
-
500: `When
|
|
99
|
-
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
95
|
+
400: `If the payload is malformed`,
|
|
96
|
+
401: `When the client is not authorised`,
|
|
97
|
+
404: `If a resource does not exist`,
|
|
98
|
+
500: `When an unexpected error occurs`,
|
|
100
99
|
},
|
|
101
100
|
});
|
|
102
101
|
}
|
|
@@ -104,7 +103,7 @@ export class SnapshotService {
|
|
|
104
103
|
* Restore Snapshot
|
|
105
104
|
* Creates a new itinerary revision given the content the snapshot refers to
|
|
106
105
|
* @param snapshotId
|
|
107
|
-
* @returns any When a snapshot is restored as the latest version
|
|
106
|
+
* @returns any When a snapshot is restored as the latest version. A object containing the snapshot entity and the itinerary associated with it.
|
|
108
107
|
* @throws ApiError
|
|
109
108
|
*/
|
|
110
109
|
static snapshotRestore(snapshotId) {
|
|
@@ -116,10 +115,9 @@ export class SnapshotService {
|
|
|
116
115
|
},
|
|
117
116
|
errors: {
|
|
118
117
|
400: `If the payload is malformed`,
|
|
119
|
-
401: `
|
|
120
|
-
404: `If
|
|
121
|
-
500: `When
|
|
122
|
-
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
118
|
+
401: `When the client is not authorised`,
|
|
119
|
+
404: `If a resource does not exist`,
|
|
120
|
+
500: `When an unexpected error occurs`,
|
|
123
121
|
},
|
|
124
122
|
});
|
|
125
123
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DTOSwooperCreate } from '../models/DTOSwooperCreate';
|
|
2
2
|
import type { DTOSwooperRead } from '../models/DTOSwooperRead';
|
|
3
3
|
import type { DTOSwooperUpdate } from '../models/DTOSwooperUpdate';
|
|
4
|
+
import type { DTOTemplateRead } from '../models/DTOTemplateRead';
|
|
4
5
|
import type { Pagination } from '../models/Pagination';
|
|
5
6
|
import type { SwooperId } from '../models/SwooperId';
|
|
6
7
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -14,12 +15,12 @@ export declare class SwooperService {
|
|
|
14
15
|
* @param sort List of fields to sort by, this requires the order query param
|
|
15
16
|
* @param search The search strings to apply to the on query parameter values
|
|
16
17
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
17
|
-
* @returns any
|
|
18
|
+
* @returns any Paginated response of swoopers
|
|
18
19
|
* @throws ApiError
|
|
19
20
|
*/
|
|
20
|
-
static swooperList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?:
|
|
21
|
-
data?: Array<DTOSwooperRead>;
|
|
21
|
+
static swooperList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
22
22
|
pagination?: Pagination;
|
|
23
|
+
data?: Array<DTOTemplateRead>;
|
|
23
24
|
}>;
|
|
24
25
|
/**
|
|
25
26
|
* Create Swooper
|
|
@@ -10,7 +10,7 @@ export class SwooperService {
|
|
|
10
10
|
* @param sort List of fields to sort by, this requires the order query param
|
|
11
11
|
* @param search The search strings to apply to the on query parameter values
|
|
12
12
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
13
|
-
* @returns any
|
|
13
|
+
* @returns any Paginated response of swoopers
|
|
14
14
|
* @throws ApiError
|
|
15
15
|
*/
|
|
16
16
|
static swooperList(page, limit, order, sort, search, on) {
|
|
@@ -26,11 +26,9 @@ export class SwooperService {
|
|
|
26
26
|
'on': on,
|
|
27
27
|
},
|
|
28
28
|
errors: {
|
|
29
|
-
400: `If the
|
|
30
|
-
401: `
|
|
31
|
-
|
|
32
|
-
500: `When an internal server error occurs when listing all related swoopers`,
|
|
33
|
-
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
29
|
+
400: `If the payload is malformed`,
|
|
30
|
+
401: `When the client is not authorised`,
|
|
31
|
+
500: `When an unexpected error occurs`,
|
|
34
32
|
},
|
|
35
33
|
});
|
|
36
34
|
}
|
|
@@ -50,9 +48,8 @@ export class SwooperService {
|
|
|
50
48
|
errors: {
|
|
51
49
|
400: `If the payload is malformed`,
|
|
52
50
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
53
|
-
|
|
54
|
-
500: `
|
|
55
|
-
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
51
|
+
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
52
|
+
500: `Internal Server Error`,
|
|
56
53
|
},
|
|
57
54
|
});
|
|
58
55
|
}
|
|
@@ -73,8 +70,9 @@ export class SwooperService {
|
|
|
73
70
|
errors: {
|
|
74
71
|
400: `If the payload is malformed`,
|
|
75
72
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
74
|
+
404: `If a resource does not exist`,
|
|
75
|
+
500: `Internal Server Error`,
|
|
78
76
|
},
|
|
79
77
|
});
|
|
80
78
|
}
|
|
@@ -98,8 +96,9 @@ export class SwooperService {
|
|
|
98
96
|
errors: {
|
|
99
97
|
400: `If the payload is malformed`,
|
|
100
98
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
100
|
+
404: `If a resource does not exist`,
|
|
101
|
+
500: `Internal Server Error`,
|
|
103
102
|
},
|
|
104
103
|
});
|
|
105
104
|
}
|
|
@@ -14,12 +14,12 @@ export declare class TemplateService {
|
|
|
14
14
|
* @param sort List of fields to sort by, this requires the order query param
|
|
15
15
|
* @param search The search strings to apply to the on query parameter values
|
|
16
16
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
17
|
-
* @returns any
|
|
17
|
+
* @returns any Paginated response of templates
|
|
18
18
|
* @throws ApiError
|
|
19
19
|
*/
|
|
20
|
-
static templateList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?:
|
|
21
|
-
data?: Array<DTOTemplateRead>;
|
|
20
|
+
static templateList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
22
21
|
pagination?: Pagination;
|
|
22
|
+
data?: Array<DTOTemplateRead>;
|
|
23
23
|
}>;
|
|
24
24
|
/**
|
|
25
25
|
* Create a Template
|
|
@@ -10,7 +10,7 @@ export class TemplateService {
|
|
|
10
10
|
* @param sort List of fields to sort by, this requires the order query param
|
|
11
11
|
* @param search The search strings to apply to the on query parameter values
|
|
12
12
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
13
|
-
* @returns any
|
|
13
|
+
* @returns any Paginated response of templates
|
|
14
14
|
* @throws ApiError
|
|
15
15
|
*/
|
|
16
16
|
static templateList(page, limit, order, sort, search, on) {
|
|
@@ -26,10 +26,9 @@ export class TemplateService {
|
|
|
26
26
|
'on': on,
|
|
27
27
|
},
|
|
28
28
|
errors: {
|
|
29
|
-
400: `If the
|
|
30
|
-
401: `
|
|
31
|
-
|
|
32
|
-
500: `When an internal server error occurs when listing all related templates`,
|
|
29
|
+
400: `If the payload is malformed`,
|
|
30
|
+
401: `When the client is not authorised`,
|
|
31
|
+
500: `When an unexpected error occurs`,
|
|
33
32
|
},
|
|
34
33
|
});
|
|
35
34
|
}
|
|
@@ -48,9 +47,9 @@ export class TemplateService {
|
|
|
48
47
|
mediaType: 'application/json',
|
|
49
48
|
errors: {
|
|
50
49
|
400: `If the payload is malformed`,
|
|
51
|
-
401: `
|
|
52
|
-
|
|
53
|
-
500: `When an
|
|
50
|
+
401: `When the client is not authorised`,
|
|
51
|
+
404: `If a resource does not exist`,
|
|
52
|
+
500: `When an unexpected error occurs`,
|
|
54
53
|
},
|
|
55
54
|
});
|
|
56
55
|
}
|
|
@@ -69,9 +68,10 @@ export class TemplateService {
|
|
|
69
68
|
'templateId': templateId,
|
|
70
69
|
},
|
|
71
70
|
errors: {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
404: `If
|
|
71
|
+
400: `If the payload is malformed`,
|
|
72
|
+
401: `When the client is not authorised`,
|
|
73
|
+
404: `If a resource does not exist`,
|
|
74
|
+
500: `When an unexpected error occurs`,
|
|
75
75
|
},
|
|
76
76
|
});
|
|
77
77
|
}
|
|
@@ -94,10 +94,9 @@ export class TemplateService {
|
|
|
94
94
|
mediaType: 'application/json',
|
|
95
95
|
errors: {
|
|
96
96
|
400: `If the payload is malformed`,
|
|
97
|
-
401: `
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
500: `When an internal server error occurs updating a template as a new revision`,
|
|
97
|
+
401: `When the client is not authorised`,
|
|
98
|
+
404: `If a resource does not exist`,
|
|
99
|
+
500: `When an unexpected error occurs`,
|
|
101
100
|
},
|
|
102
101
|
});
|
|
103
102
|
}
|
|
@@ -116,11 +115,10 @@ export class TemplateService {
|
|
|
116
115
|
'templateId': templateId,
|
|
117
116
|
},
|
|
118
117
|
errors: {
|
|
119
|
-
400: `
|
|
120
|
-
401: `
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
500: `When the template fails to delete due to an internal server error`,
|
|
118
|
+
400: `If the payload is malformed`,
|
|
119
|
+
401: `When the client is not authorised`,
|
|
120
|
+
404: `If a resource does not exist`,
|
|
121
|
+
500: `When an unexpected error occurs`,
|
|
124
122
|
},
|
|
125
123
|
});
|
|
126
124
|
}
|
package/package.json
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "swoop-common",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"main": "dist/api/index.js",
|
|
5
|
-
"types": "dist/api/index.d.ts",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": {
|
|
8
|
-
"import": "./dist/api/index.js",
|
|
9
|
-
"require": "./dist/api/index.js",
|
|
10
|
-
"types": "./dist/api/index.d.ts"
|
|
11
|
-
},
|
|
12
|
-
"./rendering": {
|
|
13
|
-
"import": "./dist/rendering/index.js",
|
|
14
|
-
"require": "./dist/rendering/index.js",
|
|
15
|
-
"types": "./dist/rendering/index.d.ts"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"dist"
|
|
20
|
-
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
-
"build": "rimraf ./dist && tsc",
|
|
24
|
-
"build-imports": "tsx ./src/rendering/prebuild/import.ts",
|
|
25
|
-
"build-core-sdk": "npx openapi-typescript-codegen --input ./openapi/core_service.yaml --output ./src/api/generated/core --client fetch",
|
|
26
|
-
"build-swoop-sdk": "npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
|
|
27
|
-
"prebuild": "npm run build-imports && npm run build-sdk",
|
|
28
|
-
"build-sdk-exports": "tsx ./src/api/gen.ts",
|
|
29
|
-
"build-sdk": "npm run build-core-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
|
|
30
|
-
},
|
|
31
|
-
"author": "",
|
|
32
|
-
"license": "ISC",
|
|
33
|
-
"description": "",
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@apidevtools/swagger-parser": "^12.0.0",
|
|
36
|
-
"@emotion/react": "^11.14.0",
|
|
37
|
-
"@emotion/styled": "^11.14.1",
|
|
38
|
-
"@jsonforms/core": "^3.5.1",
|
|
39
|
-
"@jsonforms/material-renderers": "^3.5.1",
|
|
40
|
-
"@jsonforms/react": "^3.5.1",
|
|
41
|
-
"ajv": "^8.17.1",
|
|
42
|
-
"js-yaml": "^4.1.0",
|
|
43
|
-
"lodash.merge": "^4.6.2",
|
|
44
|
-
"openapi-ts": "^0.3.4",
|
|
45
|
-
"react": "^19.0.0",
|
|
46
|
-
"rimraf": "^6.0.1",
|
|
47
|
-
"swoop-common": "^2.1.55"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@apidevtools/swagger-cli": "^4.0.4",
|
|
51
|
-
"@hey-api/openapi-ts": "^0.80.2",
|
|
52
|
-
"@types/js-yaml": "^4.0.9",
|
|
53
|
-
"@types/lodash.merge": "^4.6.9",
|
|
54
|
-
"@types/node": "^24.0.14",
|
|
55
|
-
"@types/react": "^19",
|
|
56
|
-
"openapi-typescript-codegen": "^0.29.0",
|
|
57
|
-
"tsx": "^4.20.3",
|
|
58
|
-
"typescript": "^5.8.3"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "swoop-common",
|
|
3
|
+
"version": "2.2.6",
|
|
4
|
+
"main": "dist/api/index.js",
|
|
5
|
+
"types": "dist/api/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/api/index.js",
|
|
9
|
+
"require": "./dist/api/index.js",
|
|
10
|
+
"types": "./dist/api/index.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"./rendering": {
|
|
13
|
+
"import": "./dist/rendering/index.js",
|
|
14
|
+
"require": "./dist/rendering/index.js",
|
|
15
|
+
"types": "./dist/rendering/index.d.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
+
"build": "rimraf ./dist && tsc",
|
|
24
|
+
"build-imports": "tsx ./src/rendering/prebuild/import.ts",
|
|
25
|
+
"build-core-sdk": "npx openapi-typescript-codegen --input ./openapi/core_service.yaml --output ./src/api/generated/core --client fetch",
|
|
26
|
+
"build-swoop-sdk": "npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
|
|
27
|
+
"prebuild": "npm run build-imports && npm run build-sdk",
|
|
28
|
+
"build-sdk-exports": "tsx ./src/api/gen.ts",
|
|
29
|
+
"build-sdk": "npm run build-core-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
|
|
30
|
+
},
|
|
31
|
+
"author": "",
|
|
32
|
+
"license": "ISC",
|
|
33
|
+
"description": "",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@apidevtools/swagger-parser": "^12.0.0",
|
|
36
|
+
"@emotion/react": "^11.14.0",
|
|
37
|
+
"@emotion/styled": "^11.14.1",
|
|
38
|
+
"@jsonforms/core": "^3.5.1",
|
|
39
|
+
"@jsonforms/material-renderers": "^3.5.1",
|
|
40
|
+
"@jsonforms/react": "^3.5.1",
|
|
41
|
+
"ajv": "^8.17.1",
|
|
42
|
+
"js-yaml": "^4.1.0",
|
|
43
|
+
"lodash.merge": "^4.6.2",
|
|
44
|
+
"openapi-ts": "^0.3.4",
|
|
45
|
+
"react": "^19.0.0",
|
|
46
|
+
"rimraf": "^6.0.1",
|
|
47
|
+
"swoop-common": "^2.1.55"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@apidevtools/swagger-cli": "^4.0.4",
|
|
51
|
+
"@hey-api/openapi-ts": "^0.80.2",
|
|
52
|
+
"@types/js-yaml": "^4.0.9",
|
|
53
|
+
"@types/lodash.merge": "^4.6.9",
|
|
54
|
+
"@types/node": "^24.0.14",
|
|
55
|
+
"@types/react": "^19",
|
|
56
|
+
"openapi-typescript-codegen": "^0.29.0",
|
|
57
|
+
"tsx": "^4.20.3",
|
|
58
|
+
"typescript": "^5.8.3"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ItineraryId } from '../models/ItineraryId';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class AuditService {
|
|
4
|
-
/**
|
|
5
|
-
* Audit a Copy to Clipboard
|
|
6
|
-
* Audits when a user copies something to their clipboard
|
|
7
|
-
* @param itineraryId Itinerary Id
|
|
8
|
-
* @param content Base64 encoding of the copied content
|
|
9
|
-
* @returns void
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static auditCopyClipboard(itineraryId: ItineraryId, content: string): CancelablePromise<void>;
|
|
13
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class AuditService {
|
|
4
|
-
/**
|
|
5
|
-
* Audit a Copy to Clipboard
|
|
6
|
-
* Audits when a user copies something to their clipboard
|
|
7
|
-
* @param itineraryId Itinerary Id
|
|
8
|
-
* @param content Base64 encoding of the copied content
|
|
9
|
-
* @returns void
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static auditCopyClipboard(itineraryId, content) {
|
|
13
|
-
return __request(OpenAPI, {
|
|
14
|
-
method: 'POST',
|
|
15
|
-
url: '/audit/copyClipboard/{itineraryId}',
|
|
16
|
-
path: {
|
|
17
|
-
'itineraryId': itineraryId,
|
|
18
|
-
},
|
|
19
|
-
query: {
|
|
20
|
-
'content': content,
|
|
21
|
-
},
|
|
22
|
-
errors: {
|
|
23
|
-
400: `When the content query b64 string is invalid`,
|
|
24
|
-
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|