swoop-common 2.1.70 → 2.1.72

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.
@@ -46,6 +46,7 @@ export type { DTOTemplateRead } from './index';
46
46
  export type { DTOTemplateUpdate } from './index';
47
47
  export type { EnquiryId } from './index';
48
48
  export type { EnquiryIdPathParam } from './index';
49
+ export type { EnquiryIdQueryParam } from './index';
49
50
  export type { Error } from './index';
50
51
  export type { Fee } from './index';
51
52
  export type { Field } from './index';
@@ -48,6 +48,7 @@ export type { DTOTemplateRead } from './models/DTOTemplateRead';
48
48
  export type { DTOTemplateUpdate } from './models/DTOTemplateUpdate';
49
49
  export type { EnquiryId } from './models/EnquiryId';
50
50
  export type { EnquiryIdPathParam } from './models/EnquiryIdPathParam';
51
+ export type { EnquiryIdQueryParam } from './models/EnquiryIdQueryParam';
51
52
  export type { Error } from './models/Error';
52
53
  export type { Fee } from './models/Fee';
53
54
  export type { Field } from './models/Field';
@@ -0,0 +1 @@
1
+ export type EnquiryIdQueryParam = string;
@@ -48,6 +48,7 @@ export type { DTOTemplateRead } from './models/DTOTemplateRead';
48
48
  export type { DTOTemplateUpdate } from './models/DTOTemplateUpdate';
49
49
  export type { EnquiryId } from './models/EnquiryId';
50
50
  export type { EnquiryIdPathParam } from './models/EnquiryIdPathParam';
51
+ export type { EnquiryIdQueryParam } from './models/EnquiryIdQueryParam';
51
52
  export type { Error } from './models/Error';
52
53
  export type { Fee } from './models/Fee';
53
54
  export type { Field } from './models/Field';
@@ -0,0 +1 @@
1
+ export type EnquiryIdQueryParam = string;
@@ -31,9 +31,9 @@ export declare class ItineraryService {
31
31
  */
32
32
  snapshotCreate(requestBody: DTOSnapshotCreate): CancelablePromise<DTOSnapshotRead>;
33
33
  /**
34
- * List Snapshots relating to a specific enquiry id
35
- * List all available snapshots relating to a specific enquiry id
36
- * @param enquiryId Enquiry Id
34
+ * List Snapshots
35
+ * List all available snapshots relating to the query params
36
+ * @param enquiryId
37
37
  * @param page Pagination, starting at page 1
38
38
  * @param limit Number of items per page
39
39
  * @param order Order the sort query parameter values either by ascending or descending order
@@ -43,7 +43,7 @@ export declare class ItineraryService {
43
43
  * @returns any The list of all snapshots given the parameters used
44
44
  * @throws ApiError
45
45
  */
46
- snapshotList(enquiryId: EnquiryId, page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
46
+ snapshotList(enquiryId?: string, page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
47
47
  snapshots?: Array<DTOSnapshotRead>;
48
48
  }>;
49
49
  /**
@@ -48,9 +48,9 @@ export class ItineraryService {
48
48
  });
49
49
  }
50
50
  /**
51
- * List Snapshots relating to a specific enquiry id
52
- * List all available snapshots relating to a specific enquiry id
53
- * @param enquiryId Enquiry Id
51
+ * List Snapshots
52
+ * List all available snapshots relating to the query params
53
+ * @param enquiryId
54
54
  * @param page Pagination, starting at page 1
55
55
  * @param limit Number of items per page
56
56
  * @param order Order the sort query parameter values either by ascending or descending order
@@ -63,11 +63,9 @@ export class ItineraryService {
63
63
  snapshotList(enquiryId, page, limit, order, sort, search, on) {
64
64
  return __request(OpenAPI, {
65
65
  method: 'GET',
66
- url: '/snapshot/view/{enquiryId}',
67
- path: {
68
- 'enquiryId': enquiryId,
69
- },
66
+ url: '/snapshot',
70
67
  query: {
68
+ 'enquiryId': enquiryId,
71
69
  'page': page,
72
70
  'limit': limit,
73
71
  'order': order,
@@ -1,7 +1,6 @@
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 { EnquiryId } from '../models/EnquiryId';
5
4
  import type { SnapshotId } from '../models/SnapshotId';
6
5
  import type { CancelablePromise } from '../core/CancelablePromise';
7
6
  export declare class SnapshotService {
@@ -14,9 +13,9 @@ export declare class SnapshotService {
14
13
  */
15
14
  static snapshotCreate(requestBody: DTOSnapshotCreate): CancelablePromise<DTOSnapshotRead>;
16
15
  /**
17
- * List Snapshots relating to a specific enquiry id
18
- * List all available snapshots relating to a specific enquiry id
19
- * @param enquiryId Enquiry Id
16
+ * List Snapshots
17
+ * List all available snapshots relating to the query params
18
+ * @param enquiryId
20
19
  * @param page Pagination, starting at page 1
21
20
  * @param limit Number of items per page
22
21
  * @param order Order the sort query parameter values either by ascending or descending order
@@ -26,7 +25,7 @@ export declare class SnapshotService {
26
25
  * @returns any The list of all snapshots given the parameters used
27
26
  * @throws ApiError
28
27
  */
29
- static snapshotList(enquiryId: EnquiryId, page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
28
+ static snapshotList(enquiryId?: string, page?: number, limit?: number, order?: 'asc' | 'desc', sort?: any[], search?: Array<string>, on?: Array<string>): CancelablePromise<{
30
29
  snapshots?: Array<DTOSnapshotRead>;
31
30
  }>;
32
31
  /**
@@ -24,9 +24,9 @@ export class SnapshotService {
24
24
  });
25
25
  }
26
26
  /**
27
- * List Snapshots relating to a specific enquiry id
28
- * List all available snapshots relating to a specific enquiry id
29
- * @param enquiryId Enquiry Id
27
+ * List Snapshots
28
+ * List all available snapshots relating to the query params
29
+ * @param enquiryId
30
30
  * @param page Pagination, starting at page 1
31
31
  * @param limit Number of items per page
32
32
  * @param order Order the sort query parameter values either by ascending or descending order
@@ -39,11 +39,9 @@ export class SnapshotService {
39
39
  static snapshotList(enquiryId, page, limit, order, sort, search, on) {
40
40
  return __request(OpenAPI, {
41
41
  method: 'GET',
42
- url: '/snapshot/view/{enquiryId}',
43
- path: {
44
- 'enquiryId': enquiryId,
45
- },
42
+ url: '/snapshot',
46
43
  query: {
44
+ 'enquiryId': enquiryId,
47
45
  'page': page,
48
46
  'limit': limit,
49
47
  'order': order,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.70",
3
+ "version": "2.1.72",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {