swoop-common 2.2.131 → 2.2.132
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/dist/api/generated/core/exports.d.ts +5 -0
- package/dist/api/generated/core/index.d.ts +5 -0
- package/dist/api/generated/core/models/ComponentDestinationQueryParam.d.ts +5 -0
- package/dist/api/generated/core/models/ComponentDestinationQueryParam.js +1 -0
- package/dist/api/generated/core/models/ComponentPartnersQueryParam.d.ts +5 -0
- package/dist/api/generated/core/models/ComponentPartnersQueryParam.js +1 -0
- package/dist/api/generated/core/models/ComponentStateFilterQueryParam.d.ts +5 -0
- package/dist/api/generated/core/models/ComponentStateFilterQueryParam.js +1 -0
- package/dist/api/generated/core/models/ComponentTemplateIdQueryParam.d.ts +5 -0
- package/dist/api/generated/core/models/ComponentTemplateIdQueryParam.js +1 -0
- package/dist/api/generated/core/models/ComponentTripsQueryParam.d.ts +5 -0
- package/dist/api/generated/core/models/ComponentTripsQueryParam.js +1 -0
- package/dist/api/generated/core/services/ComponentService.d.ts +10 -1
- package/dist/api/generated/core/services/ComponentService.js +11 -1
- package/dist/api/generated/core/services/CoreService.d.ts +8 -1
- package/dist/api/generated/core/services/CoreService.js +11 -1
- package/package.json +1 -1
|
@@ -14,14 +14,19 @@ export type { BranchTag } from './index';
|
|
|
14
14
|
export type { ComponentBatchRequest } from './index';
|
|
15
15
|
export type { ComponentBatchResponse } from './index';
|
|
16
16
|
export type { ComponentDescription } from './index';
|
|
17
|
+
export type { ComponentDestinationQueryParam } from './index';
|
|
17
18
|
export type { ComponentFAQ } from './index';
|
|
18
19
|
export type { ComponentId } from './index';
|
|
19
20
|
export type { ComponentIdPathParam } from './index';
|
|
20
21
|
export type { ComponentInstance } from './index';
|
|
21
22
|
export type { ComponentInstanceId } from './index';
|
|
22
23
|
export type { ComponentNotes } from './index';
|
|
24
|
+
export type { ComponentPartnersQueryParam } from './index';
|
|
23
25
|
export type { ComponentRevisionGroupId } from './index';
|
|
24
26
|
export { ComponentState } from './index';
|
|
27
|
+
export type { ComponentStateFilterQueryParam } from './index';
|
|
28
|
+
export type { ComponentTemplateIdQueryParam } from './index';
|
|
29
|
+
export type { ComponentTripsQueryParam } from './index';
|
|
25
30
|
export { Currency } from './index';
|
|
26
31
|
export { Destination } from './index';
|
|
27
32
|
export type { DTOBranchCreate } from './index';
|
|
@@ -14,14 +14,19 @@ export type { BranchTag } from './models/BranchTag';
|
|
|
14
14
|
export type { ComponentBatchRequest } from './models/ComponentBatchRequest';
|
|
15
15
|
export type { ComponentBatchResponse } from './models/ComponentBatchResponse';
|
|
16
16
|
export type { ComponentDescription } from './models/ComponentDescription';
|
|
17
|
+
export type { ComponentDestinationQueryParam } from './models/ComponentDestinationQueryParam';
|
|
17
18
|
export type { ComponentFAQ } from './models/ComponentFAQ';
|
|
18
19
|
export type { ComponentId } from './models/ComponentId';
|
|
19
20
|
export type { ComponentIdPathParam } from './models/ComponentIdPathParam';
|
|
20
21
|
export type { ComponentInstance } from './models/ComponentInstance';
|
|
21
22
|
export type { ComponentInstanceId } from './models/ComponentInstanceId';
|
|
22
23
|
export type { ComponentNotes } from './models/ComponentNotes';
|
|
24
|
+
export type { ComponentPartnersQueryParam } from './models/ComponentPartnersQueryParam';
|
|
23
25
|
export type { ComponentRevisionGroupId } from './models/ComponentRevisionGroupId';
|
|
24
26
|
export { ComponentState } from './models/ComponentState';
|
|
27
|
+
export type { ComponentStateFilterQueryParam } from './models/ComponentStateFilterQueryParam';
|
|
28
|
+
export type { ComponentTemplateIdQueryParam } from './models/ComponentTemplateIdQueryParam';
|
|
29
|
+
export type { ComponentTripsQueryParam } from './models/ComponentTripsQueryParam';
|
|
25
30
|
export { Currency } from './models/Currency';
|
|
26
31
|
export { Destination } from './models/Destination';
|
|
27
32
|
export type { DTOBranchCreate } from './models/DTOBranchCreate';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,10 +2,14 @@ import type { ComponentBatchRequest } from '../models/ComponentBatchRequest';
|
|
|
2
2
|
import type { ComponentBatchResponse } from '../models/ComponentBatchResponse';
|
|
3
3
|
import type { ComponentId } from '../models/ComponentId';
|
|
4
4
|
import type { ComponentState } from '../models/ComponentState';
|
|
5
|
+
import type { Destination } from '../models/Destination';
|
|
5
6
|
import type { DTOComponentCreate } from '../models/DTOComponentCreate';
|
|
6
7
|
import type { DTOComponentRead } from '../models/DTOComponentRead';
|
|
7
8
|
import type { DTOComponentUpdate } from '../models/DTOComponentUpdate';
|
|
9
|
+
import type { InternalSwoopId } from '../models/InternalSwoopId';
|
|
8
10
|
import type { Pagination } from '../models/Pagination';
|
|
11
|
+
import type { TemplateId } from '../models/TemplateId';
|
|
12
|
+
import type { TripId } from '../models/TripId';
|
|
9
13
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
14
|
export declare class ComponentService {
|
|
11
15
|
/**
|
|
@@ -17,10 +21,15 @@ export declare class ComponentService {
|
|
|
17
21
|
* @param sort List of fields to sort by, this requires the order query param
|
|
18
22
|
* @param search The search strings to apply to the on query parameter values
|
|
19
23
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
24
|
+
* @param templateId Filter by one or more template IDs (comma-separated). Returns components matching any of the provided template IDs.
|
|
25
|
+
* @param destination Filter by one or more destinations (comma-separated). Returns components matching any of the provided destinations.
|
|
26
|
+
* @param state Filter by one or more component states (comma-separated). Returns components matching any of the provided states.
|
|
27
|
+
* @param partners Filter by one or more partner IDs (comma-separated). Returns components associated with any of the provided partners.
|
|
28
|
+
* @param trips Filter by one or more trip IDs (comma-separated). Alias for the tripId field — returns components where tripId matches any of the provided values.
|
|
20
29
|
* @returns any Paginated response of components
|
|
21
30
|
* @throws ApiError
|
|
22
31
|
*/
|
|
23
|
-
static componentList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
32
|
+
static componentList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>, templateId?: Array<TemplateId>, destination?: Array<Destination>, state?: Array<ComponentState>, partners?: Array<InternalSwoopId>, trips?: Array<TripId>): CancelablePromise<{
|
|
24
33
|
pagination?: Pagination;
|
|
25
34
|
data?: Array<DTOComponentRead>;
|
|
26
35
|
}>;
|
|
@@ -10,10 +10,15 @@ export class ComponentService {
|
|
|
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
|
+
* @param templateId Filter by one or more template IDs (comma-separated). Returns components matching any of the provided template IDs.
|
|
14
|
+
* @param destination Filter by one or more destinations (comma-separated). Returns components matching any of the provided destinations.
|
|
15
|
+
* @param state Filter by one or more component states (comma-separated). Returns components matching any of the provided states.
|
|
16
|
+
* @param partners Filter by one or more partner IDs (comma-separated). Returns components associated with any of the provided partners.
|
|
17
|
+
* @param trips Filter by one or more trip IDs (comma-separated). Alias for the tripId field — returns components where tripId matches any of the provided values.
|
|
13
18
|
* @returns any Paginated response of components
|
|
14
19
|
* @throws ApiError
|
|
15
20
|
*/
|
|
16
|
-
static componentList(page, limit, order, sort, search, on) {
|
|
21
|
+
static componentList(page, limit, order, sort, search, on, templateId, destination, state, partners, trips) {
|
|
17
22
|
return __request(OpenAPI, {
|
|
18
23
|
method: 'GET',
|
|
19
24
|
url: '/component',
|
|
@@ -24,6 +29,11 @@ export class ComponentService {
|
|
|
24
29
|
'sort': sort,
|
|
25
30
|
'search': search,
|
|
26
31
|
'on': on,
|
|
32
|
+
'templateId': templateId,
|
|
33
|
+
'destination': destination,
|
|
34
|
+
'state': state,
|
|
35
|
+
'partners': partners,
|
|
36
|
+
'trips': trips,
|
|
27
37
|
},
|
|
28
38
|
errors: {
|
|
29
39
|
400: `If the payload is malformed`,
|
|
@@ -4,6 +4,7 @@ import type { ComponentBatchRequest } from '../models/ComponentBatchRequest';
|
|
|
4
4
|
import type { ComponentBatchResponse } from '../models/ComponentBatchResponse';
|
|
5
5
|
import type { ComponentId } from '../models/ComponentId';
|
|
6
6
|
import type { ComponentState } from '../models/ComponentState';
|
|
7
|
+
import type { Destination } from '../models/Destination';
|
|
7
8
|
import type { DTOComponentCreate } from '../models/DTOComponentCreate';
|
|
8
9
|
import type { DTOComponentRead } from '../models/DTOComponentRead';
|
|
9
10
|
import type { DTOComponentUpdate } from '../models/DTOComponentUpdate';
|
|
@@ -27,6 +28,7 @@ import type { Pagination } from '../models/Pagination';
|
|
|
27
28
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
28
29
|
import type { TemplateId } from '../models/TemplateId';
|
|
29
30
|
import type { TripComparisonItemId } from '../models/TripComparisonItemId';
|
|
31
|
+
import type { TripId } from '../models/TripId';
|
|
30
32
|
import { CancelablePromise } from '../core/CancelablePromise';
|
|
31
33
|
export declare class CoreService {
|
|
32
34
|
/**
|
|
@@ -240,10 +242,15 @@ export declare class CoreService {
|
|
|
240
242
|
* @param sort List of fields to sort by, this requires the order query param
|
|
241
243
|
* @param search The search strings to apply to the on query parameter values
|
|
242
244
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
245
|
+
* @param templateId Filter by one or more template IDs (comma-separated). Returns components matching any of the provided template IDs.
|
|
246
|
+
* @param destination Filter by one or more destinations (comma-separated). Returns components matching any of the provided destinations.
|
|
247
|
+
* @param state Filter by one or more component states (comma-separated). Returns components matching any of the provided states.
|
|
248
|
+
* @param partners Filter by one or more partner IDs (comma-separated). Returns components associated with any of the provided partners.
|
|
249
|
+
* @param trips Filter by one or more trip IDs (comma-separated). Alias for the tripId field — returns components where tripId matches any of the provided values.
|
|
243
250
|
* @returns any Paginated response of components
|
|
244
251
|
* @throws ApiError
|
|
245
252
|
*/
|
|
246
|
-
componentList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>): CancelablePromise<{
|
|
253
|
+
componentList(page?: number, limit?: number, order?: 'asc' | 'desc', sort?: Array<string>, search?: Array<string>, on?: Array<string>, templateId?: Array<TemplateId>, destination?: Array<Destination>, state?: Array<ComponentState>, partners?: Array<InternalSwoopId>, trips?: Array<TripId>): CancelablePromise<{
|
|
247
254
|
pagination?: Pagination;
|
|
248
255
|
data?: Array<DTOComponentRead>;
|
|
249
256
|
}>;
|
|
@@ -509,10 +509,15 @@ export class CoreService {
|
|
|
509
509
|
* @param sort List of fields to sort by, this requires the order query param
|
|
510
510
|
* @param search The search strings to apply to the on query parameter values
|
|
511
511
|
* @param on The fields to apply the search to, the list follows the order and length of the search values in the search query
|
|
512
|
+
* @param templateId Filter by one or more template IDs (comma-separated). Returns components matching any of the provided template IDs.
|
|
513
|
+
* @param destination Filter by one or more destinations (comma-separated). Returns components matching any of the provided destinations.
|
|
514
|
+
* @param state Filter by one or more component states (comma-separated). Returns components matching any of the provided states.
|
|
515
|
+
* @param partners Filter by one or more partner IDs (comma-separated). Returns components associated with any of the provided partners.
|
|
516
|
+
* @param trips Filter by one or more trip IDs (comma-separated). Alias for the tripId field — returns components where tripId matches any of the provided values.
|
|
512
517
|
* @returns any Paginated response of components
|
|
513
518
|
* @throws ApiError
|
|
514
519
|
*/
|
|
515
|
-
componentList(page, limit, order, sort, search, on) {
|
|
520
|
+
componentList(page, limit, order, sort, search, on, templateId, destination, state, partners, trips) {
|
|
516
521
|
return __request(OpenAPI, {
|
|
517
522
|
method: 'GET',
|
|
518
523
|
url: '/component',
|
|
@@ -523,6 +528,11 @@ export class CoreService {
|
|
|
523
528
|
'sort': sort,
|
|
524
529
|
'search': search,
|
|
525
530
|
'on': on,
|
|
531
|
+
'templateId': templateId,
|
|
532
|
+
'destination': destination,
|
|
533
|
+
'state': state,
|
|
534
|
+
'partners': partners,
|
|
535
|
+
'trips': trips,
|
|
526
536
|
},
|
|
527
537
|
errors: {
|
|
528
538
|
400: `If the payload is malformed`,
|