swoop-common 2.2.229 → 2.2.231

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.
@@ -51,6 +51,7 @@ export type { DTOItineraryRead } from './index';
51
51
  export type { DTOItineraryUpdate } from './index';
52
52
  export type { DTOPublicSnapshotCreate } from './index';
53
53
  export type { DTOPublicSnapshotEntity } from './index';
54
+ export type { DTOPublicSnapshotExpired } from './index';
54
55
  export type { DTOPublicSnapshotRead } from './index';
55
56
  export type { DTOPublicSnapshotUpdate } from './index';
56
57
  export type { DTORegionCreate } from './index';
@@ -125,6 +126,7 @@ export type { SwoopError } from './index';
125
126
  export type { SwoopSyncComponentInstance } from './index';
126
127
  export type { SwoopSyncError } from './index';
127
128
  export type { SwoopSyncErrorMsg } from './index';
129
+ export type { SwoopSyncSuccess } from './index';
128
130
  export type { TagPathParam } from './index';
129
131
  export type { TemplateId } from './index';
130
132
  export type { TemplateIdPathParam } from './index';
@@ -51,6 +51,7 @@ export type { DTOItineraryRead } from './models/DTOItineraryRead';
51
51
  export type { DTOItineraryUpdate } from './models/DTOItineraryUpdate';
52
52
  export type { DTOPublicSnapshotCreate } from './models/DTOPublicSnapshotCreate';
53
53
  export type { DTOPublicSnapshotEntity } from './models/DTOPublicSnapshotEntity';
54
+ export type { DTOPublicSnapshotExpired } from './models/DTOPublicSnapshotExpired';
54
55
  export type { DTOPublicSnapshotRead } from './models/DTOPublicSnapshotRead';
55
56
  export type { DTOPublicSnapshotUpdate } from './models/DTOPublicSnapshotUpdate';
56
57
  export type { DTORegionCreate } from './models/DTORegionCreate';
@@ -125,6 +126,7 @@ export type { SwoopError } from './models/SwoopError';
125
126
  export type { SwoopSyncComponentInstance } from './models/SwoopSyncComponentInstance';
126
127
  export type { SwoopSyncError } from './models/SwoopSyncError';
127
128
  export type { SwoopSyncErrorMsg } from './models/SwoopSyncErrorMsg';
129
+ export type { SwoopSyncSuccess } from './models/SwoopSyncSuccess';
128
130
  export type { TagPathParam } from './models/TagPathParam';
129
131
  export type { TemplateId } from './models/TemplateId';
130
132
  export type { TemplateIdPathParam } from './models/TemplateIdPathParam';
@@ -22,4 +22,8 @@ export type DTOPublicSnapshotCreate = {
22
22
  cxPerson?: PublicSnapshotPerson;
23
23
  isTwinCentre: IsTwinCentre;
24
24
  payments?: Array<PublicSnapShotPayment>;
25
+ /**
26
+ * Internal only - not exposed on DTOPublicSnapshotRead. No value means the link never expires.
27
+ */
28
+ validUntil?: string | null;
25
29
  };
@@ -26,4 +26,8 @@ export type DTOPublicSnapshotEntity = {
26
26
  cxPerson?: PublicSnapshotPerson;
27
27
  isTwinCentre: IsTwinCentre;
28
28
  payments?: Array<PublicSnapShotPayment>;
29
+ /**
30
+ * Internal only - not exposed on DTOPublicSnapshotRead. No value means the link never expires.
31
+ */
32
+ validUntil?: string | null;
29
33
  };
@@ -0,0 +1,8 @@
1
+ import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
2
+ /**
3
+ * Returned instead of DTOPublicSnapshotRead when a "sales" snapshot's validUntil date has passed.
4
+ */
5
+ export type DTOPublicSnapshotExpired = {
6
+ expired: boolean;
7
+ salesPerson?: PublicSnapshotPerson;
8
+ };
@@ -26,4 +26,8 @@ export type DTOPublicSnapshotRead = {
26
26
  cxPerson?: PublicSnapshotPerson;
27
27
  isTwinCentre: IsTwinCentre;
28
28
  payments?: Array<PublicSnapShotPayment>;
29
+ /**
30
+ * Server-internal only. ReadPublicSnapshot strips this before returning a live (non-expired) response to the client - it must never reach a customer's browser.
31
+ */
32
+ validUntil?: string | null;
29
33
  };
@@ -1,4 +1,8 @@
1
1
  import type { Title } from './Title';
2
2
  export type DTOPublicSnapshotUpdate = {
3
3
  name?: Title;
4
+ /**
5
+ * Only meaningful for "sales" snapshots. Send an empty string to clear (never expires); omit to leave unchanged. (A JSON null is indistinguishable from an omitted field once decoded into a Go pointer, so empty string is the actual "clear" signal here.)
6
+ */
7
+ validUntil?: string | null;
4
8
  };
@@ -5,4 +5,8 @@ export type DTOSnapshotCreate = {
5
5
  name: Title;
6
6
  itineraryId: ItineraryId;
7
7
  enquiryId: InternalSwoopId;
8
+ /**
9
+ * No value means the link never expires.
10
+ */
11
+ validUntil?: string | null;
8
12
  };
@@ -9,4 +9,8 @@ export type DTOSnapshotEntity = {
9
9
  name: Title;
10
10
  itineraryId: ItineraryId;
11
11
  enquiryId: InternalSwoopId;
12
+ /**
13
+ * No value means the link never expires.
14
+ */
15
+ validUntil?: string | null;
12
16
  };
@@ -9,4 +9,8 @@ export type DTOSnapshotRead = {
9
9
  name: Title;
10
10
  itineraryId: ItineraryId;
11
11
  enquiryId: InternalSwoopId;
12
+ /**
13
+ * No value means the link never expires.
14
+ */
15
+ validUntil?: string | null;
12
16
  };
@@ -3,4 +3,8 @@ import type { Title } from './Title';
3
3
  export type DTOSnapshotUpdate = {
4
4
  name?: Title;
5
5
  itineraryId?: ItineraryId;
6
+ /**
7
+ * Only meaningful for "sales" snapshots. Send an empty string to clear (never expires); omit to leave unchanged. (A JSON null is indistinguishable from an omitted field once decoded into a Go pointer, so empty string is the actual "clear" signal here.)
8
+ */
9
+ validUntil?: string | null;
6
10
  };
@@ -4,6 +4,7 @@ export type QuoteOptions = {
4
4
  showAllPrice: boolean;
5
5
  includePaymentLinks: boolean;
6
6
  detailedPriceBreakdown: boolean;
7
+ hidePriceBreakdown?: boolean;
7
8
  urgencyCta: UrgencyCTA;
8
9
  quoteExpiredDate: string;
9
10
  priceRange: string;
@@ -0,0 +1,6 @@
1
+ export type SwoopSyncSuccess = {
2
+ /**
3
+ * Whether the itinerary currently meets the CRM's late-booking criteria, computed regardless of the isLateBookingConfirmed value that was sent. Absent when the CRM does not yet report this field, which must be treated as unknown (not false).
4
+ */
5
+ isLate?: boolean;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -22,6 +22,7 @@ import type { DTORegionCreate } from '../models/DTORegionCreate';
22
22
  import type { DTORegionRead } from '../models/DTORegionRead';
23
23
  import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
24
24
  import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
25
+ import type { DTOSnapshotUpdate } from '../models/DTOSnapshotUpdate';
25
26
  import type { DTOTemplateCreate } from '../models/DTOTemplateCreate';
26
27
  import { DTOTemplateRead } from '../models/DTOTemplateRead';
27
28
  import type { DTOTemplateUpdate } from '../models/DTOTemplateUpdate';
@@ -107,6 +108,15 @@ export declare class CoreService {
107
108
  * @throws ApiError
108
109
  */
109
110
  snapshotDelete(snapshotId: SnapshotId): CancelablePromise<void>;
111
+ /**
112
+ * Update Snapshot
113
+ * Updates a snapshot. Currently only used to set or clear a "sales" snapshot's validUntil date.
114
+ * @param snapshotId
115
+ * @param requestBody
116
+ * @returns DTOSnapshotRead When the snapshot is updated successfully
117
+ * @throws ApiError
118
+ */
119
+ snapshotUpdate(snapshotId: SnapshotId, requestBody: DTOSnapshotUpdate): CancelablePromise<DTOSnapshotRead>;
110
120
  /**
111
121
  * Restore Snapshot
112
122
  * Creates a new itinerary revision given the content the snapshot refers to
@@ -30,6 +30,7 @@ export class CoreService {
30
30
  401: `When the client is not authorised`,
31
31
  403: `When the snapshot is missing from the requests context`,
32
32
  404: `If a resource does not exist`,
33
+ 410: `When the snapshot is a "sales" document whose validUntil date has passed`,
33
34
  500: `When an unexpected error occurs`,
34
35
  },
35
36
  });
@@ -178,6 +179,31 @@ export class CoreService {
178
179
  },
179
180
  });
180
181
  }
182
+ /**
183
+ * Update Snapshot
184
+ * Updates a snapshot. Currently only used to set or clear a "sales" snapshot's validUntil date.
185
+ * @param snapshotId
186
+ * @param requestBody
187
+ * @returns DTOSnapshotRead When the snapshot is updated successfully
188
+ * @throws ApiError
189
+ */
190
+ snapshotUpdate(snapshotId, requestBody) {
191
+ return __request(OpenAPI, {
192
+ method: 'PATCH',
193
+ url: '/snapshot/{snapshotId}',
194
+ path: {
195
+ 'snapshotId': snapshotId,
196
+ },
197
+ body: requestBody,
198
+ mediaType: 'application/json',
199
+ errors: {
200
+ 400: `If the payload is malformed`,
201
+ 401: `When the client is not authorised`,
202
+ 404: `If a resource does not exist`,
203
+ 500: `When an unexpected error occurs`,
204
+ },
205
+ });
206
+ }
181
207
  /**
182
208
  * Restore Snapshot
183
209
  * Creates a new itinerary revision given the content the snapshot refers to
@@ -19,6 +19,7 @@ export class PublicService {
19
19
  401: `When the client is not authorised`,
20
20
  403: `When the snapshot is missing from the requests context`,
21
21
  404: `If a resource does not exist`,
22
+ 410: `When the snapshot is a "sales" document whose validUntil date has passed`,
22
23
  500: `When an unexpected error occurs`,
23
24
  },
24
25
  });
@@ -2,6 +2,7 @@ import type { DTOItineraryRead } from '../models/DTOItineraryRead';
2
2
  import type { DTOPublicSnapshotRead } from '../models/DTOPublicSnapshotRead';
3
3
  import type { DTOSnapshotCreate } from '../models/DTOSnapshotCreate';
4
4
  import type { DTOSnapshotRead } from '../models/DTOSnapshotRead';
5
+ import type { DTOSnapshotUpdate } from '../models/DTOSnapshotUpdate';
5
6
  import type { Pagination } from '../models/Pagination';
6
7
  import type { SnapshotId } from '../models/SnapshotId';
7
8
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -57,6 +58,15 @@ export declare class SnapshotService {
57
58
  * @throws ApiError
58
59
  */
59
60
  static snapshotDelete(snapshotId: SnapshotId): CancelablePromise<void>;
61
+ /**
62
+ * Update Snapshot
63
+ * Updates a snapshot. Currently only used to set or clear a "sales" snapshot's validUntil date.
64
+ * @param snapshotId
65
+ * @param requestBody
66
+ * @returns DTOSnapshotRead When the snapshot is updated successfully
67
+ * @throws ApiError
68
+ */
69
+ static snapshotUpdate(snapshotId: SnapshotId, requestBody: DTOSnapshotUpdate): CancelablePromise<DTOSnapshotRead>;
60
70
  /**
61
71
  * Restore Snapshot
62
72
  * Creates a new itinerary revision given the content the snapshot refers to
@@ -19,6 +19,7 @@ export class SnapshotService {
19
19
  401: `When the client is not authorised`,
20
20
  403: `When the snapshot is missing from the requests context`,
21
21
  404: `If a resource does not exist`,
22
+ 410: `When the snapshot is a "sales" document whose validUntil date has passed`,
22
23
  500: `When an unexpected error occurs`,
23
24
  },
24
25
  });
@@ -122,6 +123,31 @@ export class SnapshotService {
122
123
  },
123
124
  });
124
125
  }
126
+ /**
127
+ * Update Snapshot
128
+ * Updates a snapshot. Currently only used to set or clear a "sales" snapshot's validUntil date.
129
+ * @param snapshotId
130
+ * @param requestBody
131
+ * @returns DTOSnapshotRead When the snapshot is updated successfully
132
+ * @throws ApiError
133
+ */
134
+ static snapshotUpdate(snapshotId, requestBody) {
135
+ return __request(OpenAPI, {
136
+ method: 'PATCH',
137
+ url: '/snapshot/{snapshotId}',
138
+ path: {
139
+ 'snapshotId': snapshotId,
140
+ },
141
+ body: requestBody,
142
+ mediaType: 'application/json',
143
+ errors: {
144
+ 400: `If the payload is malformed`,
145
+ 401: `When the client is not authorised`,
146
+ 404: `If a resource does not exist`,
147
+ 500: `When an unexpected error occurs`,
148
+ },
149
+ });
150
+ }
125
151
  /**
126
152
  * Restore Snapshot
127
153
  * Creates a new itinerary revision given the content the snapshot refers to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.229",
3
+ "version": "2.2.231",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {