swoop-common 2.2.120 → 2.2.121
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/models/BookingStatus.d.ts +2 -1
- package/dist/api/generated/core/models/BookingStatus.js +1 -0
- package/dist/api/generated/core/services/CoreService.js +1 -1
- package/dist/api/generated/core/services/TemplateService.js +1 -1
- package/dist/api/generated/swoop/exports.d.ts +8 -0
- package/dist/api/generated/swoop/index.d.ts +8 -0
- package/dist/api/generated/swoop/models/Note_jsonld_read.d.ts +11 -0
- package/dist/api/generated/swoop/models/Note_jsonld_read.js +1 -0
- package/dist/api/generated/swoop/models/Note_jsonld_write_create.d.ts +7 -0
- package/dist/api/generated/swoop/models/Note_jsonld_write_create.js +1 -0
- package/dist/api/generated/swoop/models/Note_jsonld_write_edit.d.ts +5 -0
- package/dist/api/generated/swoop/models/Note_jsonld_write_edit.js +1 -0
- package/dist/api/generated/swoop/models/Note_read.d.ts +10 -0
- package/dist/api/generated/swoop/models/Note_read.js +1 -0
- package/dist/api/generated/swoop/models/Note_write_create.d.ts +7 -0
- package/dist/api/generated/swoop/models/Note_write_create.js +1 -0
- package/dist/api/generated/swoop/models/Note_write_edit.d.ts +5 -0
- package/dist/api/generated/swoop/models/Note_write_edit.js +1 -0
- package/dist/api/generated/swoop/models/Person_jsonld_read.d.ts +16 -0
- package/dist/api/generated/swoop/models/Person_jsonld_read.js +1 -0
- package/dist/api/generated/swoop/models/Person_read.d.ts +15 -0
- package/dist/api/generated/swoop/models/Person_read.js +1 -0
- package/dist/api/generated/swoop/services/SwoopService.d.ts +28 -0
- package/dist/api/generated/swoop/services/SwoopService.js +59 -0
- package/package.json +1 -1
|
@@ -9,4 +9,5 @@ export var BookingStatus;
|
|
|
9
9
|
BookingStatus["CONFIRMED"] = "Confirmed";
|
|
10
10
|
BookingStatus["CANCELLED"] = "Cancelled";
|
|
11
11
|
BookingStatus["TO_BE_CONFIRMED"] = "ToBeConfirmed";
|
|
12
|
+
BookingStatus["INDEPENDENTLY_BOOKED"] = "IndependentlyBooked";
|
|
12
13
|
})(BookingStatus || (BookingStatus = {}));
|
|
@@ -56,6 +56,12 @@ export type { Itinerary_ItinerarySaveInputSwoop } from './index';
|
|
|
56
56
|
export type { Itinerary_ItinerarySaveInput_jsonldSwoop } from './index';
|
|
57
57
|
export type { Itinerary_ItinerarySaveOutputSwoop } from './index';
|
|
58
58
|
export type { Itinerary_ItinerarySaveOutput_jsonldSwoop } from './index';
|
|
59
|
+
export type { Note_jsonld_readSwoop } from './index';
|
|
60
|
+
export type { Note_jsonld_write_createSwoop } from './index';
|
|
61
|
+
export type { Note_jsonld_write_editSwoop } from './index';
|
|
62
|
+
export type { Note_readSwoop } from './index';
|
|
63
|
+
export type { Note_write_createSwoop } from './index';
|
|
64
|
+
export type { Note_write_editSwoop } from './index';
|
|
59
65
|
export type { PartnerSwoop } from './index';
|
|
60
66
|
export type { Partner_jsonldSwoop } from './index';
|
|
61
67
|
export type { PassportSwoop } from './index';
|
|
@@ -66,6 +72,8 @@ export type { PaymentTypeSwoop } from './index';
|
|
|
66
72
|
export type { PaymentType_jsonldSwoop } from './index';
|
|
67
73
|
export type { PersonSwoop } from './index';
|
|
68
74
|
export type { Person_jsonldSwoop } from './index';
|
|
75
|
+
export type { Person_jsonld_readSwoop } from './index';
|
|
76
|
+
export type { Person_readSwoop } from './index';
|
|
69
77
|
export type { PublishStateSwoop } from './index';
|
|
70
78
|
export type { PublishState_jsonldSwoop } from './index';
|
|
71
79
|
export type { StatusSwoop } from './index';
|
|
@@ -60,6 +60,12 @@ export type { Itinerary_ItinerarySaveInput as Itinerary_ItinerarySaveInputSwoop
|
|
|
60
60
|
export type { Itinerary_ItinerarySaveInput_jsonld as Itinerary_ItinerarySaveInput_jsonldSwoop } from './models/Itinerary_ItinerarySaveInput_jsonld';
|
|
61
61
|
export type { Itinerary_ItinerarySaveOutput as Itinerary_ItinerarySaveOutputSwoop } from './models/Itinerary_ItinerarySaveOutput';
|
|
62
62
|
export type { Itinerary_ItinerarySaveOutput_jsonld as Itinerary_ItinerarySaveOutput_jsonldSwoop } from './models/Itinerary_ItinerarySaveOutput_jsonld';
|
|
63
|
+
export type { Note_jsonld_read as Note_jsonld_readSwoop } from './models/Note_jsonld_read';
|
|
64
|
+
export type { Note_jsonld_write_create as Note_jsonld_write_createSwoop } from './models/Note_jsonld_write_create';
|
|
65
|
+
export type { Note_jsonld_write_edit as Note_jsonld_write_editSwoop } from './models/Note_jsonld_write_edit';
|
|
66
|
+
export type { Note_read as Note_readSwoop } from './models/Note_read';
|
|
67
|
+
export type { Note_write_create as Note_write_createSwoop } from './models/Note_write_create';
|
|
68
|
+
export type { Note_write_edit as Note_write_editSwoop } from './models/Note_write_edit';
|
|
63
69
|
export type { Partner as PartnerSwoop } from './models/Partner';
|
|
64
70
|
export type { Partner_jsonld as Partner_jsonldSwoop } from './models/Partner_jsonld';
|
|
65
71
|
export type { Passport as PassportSwoop } from './models/Passport';
|
|
@@ -70,6 +76,8 @@ export type { PaymentType as PaymentTypeSwoop } from './models/PaymentType';
|
|
|
70
76
|
export type { PaymentType_jsonld as PaymentType_jsonldSwoop } from './models/PaymentType_jsonld';
|
|
71
77
|
export type { Person as PersonSwoop } from './models/Person';
|
|
72
78
|
export type { Person_jsonld as Person_jsonldSwoop } from './models/Person_jsonld';
|
|
79
|
+
export type { Person_jsonld_read as Person_jsonld_readSwoop } from './models/Person_jsonld_read';
|
|
80
|
+
export type { Person_read as Person_readSwoop } from './models/Person_read';
|
|
73
81
|
export type { PublishState as PublishStateSwoop } from './models/PublishState';
|
|
74
82
|
export type { PublishState_jsonld as PublishState_jsonldSwoop } from './models/PublishState_jsonld';
|
|
75
83
|
export type { Status as StatusSwoop } from './models/Status';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
import type { Person_jsonld_read } from './Person_jsonld_read';
|
|
3
|
+
export type Note_jsonld_read = (HydraItemBaseSchema & {
|
|
4
|
+
id?: string;
|
|
5
|
+
enquiryId?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
content?: string;
|
|
8
|
+
pinned?: boolean;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
person?: (Person_jsonld_read | null);
|
|
11
|
+
});
|
|
@@ -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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type Person_jsonld_read = (HydraItemBaseSchema & {
|
|
3
|
+
id?: string;
|
|
4
|
+
personId?: number;
|
|
5
|
+
firstName?: string | null;
|
|
6
|
+
lastName?: string | null;
|
|
7
|
+
shortName?: string | null;
|
|
8
|
+
email?: string | null;
|
|
9
|
+
telephone1?: string | null;
|
|
10
|
+
telephone2?: string | null;
|
|
11
|
+
role?: string | null;
|
|
12
|
+
avatarUrl?: string | null;
|
|
13
|
+
calendarLink?: string | null;
|
|
14
|
+
welcomeNote?: string | null;
|
|
15
|
+
aboutMeText?: string | null;
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Person_read = {
|
|
2
|
+
id?: string;
|
|
3
|
+
personId?: number;
|
|
4
|
+
firstName?: string | null;
|
|
5
|
+
lastName?: string | null;
|
|
6
|
+
shortName?: string | null;
|
|
7
|
+
email?: string | null;
|
|
8
|
+
telephone1?: string | null;
|
|
9
|
+
telephone2?: string | null;
|
|
10
|
+
role?: string | null;
|
|
11
|
+
avatarUrl?: string | null;
|
|
12
|
+
calendarLink?: string | null;
|
|
13
|
+
welcomeNote?: string | null;
|
|
14
|
+
aboutMeText?: string | null;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,6 +16,9 @@ import type { EnquiryStatus } from '../models/EnquiryStatus';
|
|
|
16
16
|
import type { ExchangeRate } from '../models/ExchangeRate';
|
|
17
17
|
import type { Itinerary_ItinerarySaveInput } from '../models/Itinerary_ItinerarySaveInput';
|
|
18
18
|
import type { Itinerary_ItinerarySaveOutput } from '../models/Itinerary_ItinerarySaveOutput';
|
|
19
|
+
import type { Note_read } from '../models/Note_read';
|
|
20
|
+
import type { Note_write_create } from '../models/Note_write_create';
|
|
21
|
+
import type { Note_write_edit } from '../models/Note_write_edit';
|
|
19
22
|
import type { Partner } from '../models/Partner';
|
|
20
23
|
import type { Payment } from '../models/Payment';
|
|
21
24
|
import type { Person } from '../models/Person';
|
|
@@ -242,6 +245,31 @@ export declare class SwoopService {
|
|
|
242
245
|
* @throws ApiError
|
|
243
246
|
*/
|
|
244
247
|
saveItinerary(requestBody: Itinerary_ItinerarySaveInput): CancelablePromise<Itinerary_ItinerarySaveOutput>;
|
|
248
|
+
/**
|
|
249
|
+
* Retrieves the collection of Note resources.
|
|
250
|
+
* Retrieves the collection of Note resources.
|
|
251
|
+
* @param enquiryId Enquiry ID: ANT-12345
|
|
252
|
+
* @returns Note_read Note collection
|
|
253
|
+
* @throws ApiError
|
|
254
|
+
*/
|
|
255
|
+
notesGetCollection(enquiryId?: string): CancelablePromise<Array<Note_read>>;
|
|
256
|
+
/**
|
|
257
|
+
* Creates a Note resource.
|
|
258
|
+
* Creates a Note resource.
|
|
259
|
+
* @param requestBody The new Note resource
|
|
260
|
+
* @returns Note_read Note resource created
|
|
261
|
+
* @throws ApiError
|
|
262
|
+
*/
|
|
263
|
+
notesPost(requestBody: Note_write_create): CancelablePromise<Note_read>;
|
|
264
|
+
/**
|
|
265
|
+
* Replaces the Note resource.
|
|
266
|
+
* Replaces the Note resource.
|
|
267
|
+
* @param id The unique identifier example: ANT-12345 ({REGION}-{note_id}})
|
|
268
|
+
* @param requestBody The updated Note resource
|
|
269
|
+
* @returns Note_read Note resource updated
|
|
270
|
+
* @throws ApiError
|
|
271
|
+
*/
|
|
272
|
+
notesIdPut(id: string, requestBody: Note_write_edit): CancelablePromise<Note_read>;
|
|
245
273
|
/**
|
|
246
274
|
* Retrieves the collection of Partner resources.
|
|
247
275
|
* Retrieves the collection of Partner resources.
|
|
@@ -363,6 +363,65 @@ export class SwoopService {
|
|
|
363
363
|
},
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Retrieves the collection of Note resources.
|
|
368
|
+
* Retrieves the collection of Note resources.
|
|
369
|
+
* @param enquiryId Enquiry ID: ANT-12345
|
|
370
|
+
* @returns Note_read Note collection
|
|
371
|
+
* @throws ApiError
|
|
372
|
+
*/
|
|
373
|
+
notesGetCollection(enquiryId) {
|
|
374
|
+
return __request(OpenAPI, {
|
|
375
|
+
method: 'GET',
|
|
376
|
+
url: '/api/notes',
|
|
377
|
+
query: {
|
|
378
|
+
'enquiryId': enquiryId,
|
|
379
|
+
},
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Creates a Note resource.
|
|
384
|
+
* Creates a Note resource.
|
|
385
|
+
* @param requestBody The new Note resource
|
|
386
|
+
* @returns Note_read Note resource created
|
|
387
|
+
* @throws ApiError
|
|
388
|
+
*/
|
|
389
|
+
notesPost(requestBody) {
|
|
390
|
+
return __request(OpenAPI, {
|
|
391
|
+
method: 'POST',
|
|
392
|
+
url: '/api/notes',
|
|
393
|
+
body: requestBody,
|
|
394
|
+
mediaType: 'application/json',
|
|
395
|
+
errors: {
|
|
396
|
+
400: `Invalid input`,
|
|
397
|
+
422: `Validation Error`,
|
|
398
|
+
},
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Replaces the Note resource.
|
|
403
|
+
* Replaces the Note resource.
|
|
404
|
+
* @param id The unique identifier example: ANT-12345 ({REGION}-{note_id}})
|
|
405
|
+
* @param requestBody The updated Note resource
|
|
406
|
+
* @returns Note_read Note resource updated
|
|
407
|
+
* @throws ApiError
|
|
408
|
+
*/
|
|
409
|
+
notesIdPut(id, requestBody) {
|
|
410
|
+
return __request(OpenAPI, {
|
|
411
|
+
method: 'PUT',
|
|
412
|
+
url: '/api/notes/{id}',
|
|
413
|
+
path: {
|
|
414
|
+
'id': id,
|
|
415
|
+
},
|
|
416
|
+
body: requestBody,
|
|
417
|
+
mediaType: 'application/json',
|
|
418
|
+
errors: {
|
|
419
|
+
400: `Invalid input`,
|
|
420
|
+
404: `Not found`,
|
|
421
|
+
422: `Validation Error`,
|
|
422
|
+
},
|
|
423
|
+
});
|
|
424
|
+
}
|
|
366
425
|
/**
|
|
367
426
|
* Retrieves the collection of Partner resources.
|
|
368
427
|
* Retrieves the collection of Partner resources.
|