swoop-common 2.2.231 → 2.2.232

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.
@@ -126,7 +126,6 @@ export type { SwoopError } from './index';
126
126
  export type { SwoopSyncComponentInstance } from './index';
127
127
  export type { SwoopSyncError } from './index';
128
128
  export type { SwoopSyncErrorMsg } from './index';
129
- export type { SwoopSyncSuccess } from './index';
130
129
  export type { TagPathParam } from './index';
131
130
  export type { TemplateId } from './index';
132
131
  export type { TemplateIdPathParam } from './index';
@@ -126,7 +126,6 @@ export type { SwoopError } from './models/SwoopError';
126
126
  export type { SwoopSyncComponentInstance } from './models/SwoopSyncComponentInstance';
127
127
  export type { SwoopSyncError } from './models/SwoopSyncError';
128
128
  export type { SwoopSyncErrorMsg } from './models/SwoopSyncErrorMsg';
129
- export type { SwoopSyncSuccess } from './models/SwoopSyncSuccess';
130
129
  export type { TagPathParam } from './models/TagPathParam';
131
130
  export type { TemplateId } from './models/TemplateId';
132
131
  export type { TemplateIdPathParam } from './models/TemplateIdPathParam';
@@ -48,6 +48,10 @@ export type { EnquiryPersonSwoop } from './index';
48
48
  export type { EnquiryPerson_jsonldSwoop } from './index';
49
49
  export type { EnquiryStatusSwoop } from './index';
50
50
  export type { EnquiryStatus_jsonldSwoop } from './index';
51
+ export type { EnquirySubmission_jsonld_readSwoop } from './index';
52
+ export { EnquirySubmission_jsonld_writeSwoop } from './index';
53
+ export type { EnquirySubmission_readSwoop } from './index';
54
+ export { EnquirySubmission_writeSwoop } from './index';
51
55
  export type { ExchangeRateSwoop } from './index';
52
56
  export type { ExchangeRate_jsonldSwoop } from './index';
53
57
  export type { HydraCollectionBaseSchemaSwoop } from './index';
@@ -1,2 +1,3 @@
1
1
  // GENERATED FILE DO NOT EDIT //
2
- export {};
2
+ export { EnquirySubmission_jsonld_writeSwoop } from './index';
3
+ export { EnquirySubmission_writeSwoop } from './index';
@@ -52,6 +52,10 @@ export type { EnquiryPerson as EnquiryPersonSwoop } from './models/EnquiryPerson
52
52
  export type { EnquiryPerson_jsonld as EnquiryPerson_jsonldSwoop } from './models/EnquiryPerson_jsonld';
53
53
  export type { EnquiryStatus as EnquiryStatusSwoop } from './models/EnquiryStatus';
54
54
  export type { EnquiryStatus_jsonld as EnquiryStatus_jsonldSwoop } from './models/EnquiryStatus_jsonld';
55
+ export type { EnquirySubmission_jsonld_read as EnquirySubmission_jsonld_readSwoop } from './models/EnquirySubmission_jsonld_read';
56
+ export { EnquirySubmission_jsonld_write as EnquirySubmission_jsonld_writeSwoop } from './models/EnquirySubmission_jsonld_write';
57
+ export type { EnquirySubmission_read as EnquirySubmission_readSwoop } from './models/EnquirySubmission_read';
58
+ export { EnquirySubmission_write as EnquirySubmission_writeSwoop } from './models/EnquirySubmission_write';
55
59
  export type { ExchangeRate as ExchangeRateSwoop } from './models/ExchangeRate';
56
60
  export type { ExchangeRate_jsonld as ExchangeRate_jsonldSwoop } from './models/ExchangeRate_jsonld';
57
61
  export type { HydraCollectionBaseSchema as HydraCollectionBaseSchemaSwoop } from './models/HydraCollectionBaseSchema';
@@ -5,4 +5,6 @@
5
5
  export { ApiError } from './core/ApiError';
6
6
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
7
  export { OpenAPI } from './core/OpenAPI';
8
+ export { EnquirySubmission_jsonld_write as EnquirySubmission_jsonld_writeSwoop } from './models/EnquirySubmission_jsonld_write';
9
+ export { EnquirySubmission_write as EnquirySubmission_writeSwoop } from './models/EnquirySubmission_write';
8
10
  export { SwoopService } from './services/SwoopService';
@@ -0,0 +1,4 @@
1
+ import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
2
+ export type EnquirySubmission_jsonld_read = (HydraItemBaseSchema & {
3
+ id?: string | null;
4
+ });
@@ -0,0 +1,29 @@
1
+ export type EnquirySubmission_jsonld_write = {
2
+ /**
3
+ * The region the enquiry belongs to
4
+ */
5
+ region: EnquirySubmission_jsonld_write.region;
6
+ name: string;
7
+ email: string;
8
+ phone?: string | null;
9
+ timezone?: string | null;
10
+ message?: string | null;
11
+ /**
12
+ * ntag aliases to tag the enquiry with
13
+ */
14
+ tags?: Array<string>;
15
+ /**
16
+ * URL of the page the enquiry was submitted from
17
+ */
18
+ referral_url?: string | null;
19
+ };
20
+ export declare namespace EnquirySubmission_jsonld_write {
21
+ /**
22
+ * The region the enquiry belongs to
23
+ */
24
+ enum region {
25
+ ANTARCTICA = "antarctica",
26
+ ARCTIC = "arctic",
27
+ PATAGONIA = "patagonia"
28
+ }
29
+ }
@@ -0,0 +1,12 @@
1
+ export var EnquirySubmission_jsonld_write;
2
+ (function (EnquirySubmission_jsonld_write) {
3
+ /**
4
+ * The region the enquiry belongs to
5
+ */
6
+ let region;
7
+ (function (region) {
8
+ region["ANTARCTICA"] = "antarctica";
9
+ region["ARCTIC"] = "arctic";
10
+ region["PATAGONIA"] = "patagonia";
11
+ })(region = EnquirySubmission_jsonld_write.region || (EnquirySubmission_jsonld_write.region = {}));
12
+ })(EnquirySubmission_jsonld_write || (EnquirySubmission_jsonld_write = {}));
@@ -0,0 +1,3 @@
1
+ export type EnquirySubmission_read = {
2
+ id?: string | null;
3
+ };
@@ -0,0 +1,29 @@
1
+ export type EnquirySubmission_write = {
2
+ /**
3
+ * The region the enquiry belongs to
4
+ */
5
+ region: EnquirySubmission_write.region;
6
+ name: string;
7
+ email: string;
8
+ phone?: string | null;
9
+ timezone?: string | null;
10
+ message?: string | null;
11
+ /**
12
+ * ntag aliases to tag the enquiry with
13
+ */
14
+ tags?: Array<string>;
15
+ /**
16
+ * URL of the page the enquiry was submitted from
17
+ */
18
+ referral_url?: string | null;
19
+ };
20
+ export declare namespace EnquirySubmission_write {
21
+ /**
22
+ * The region the enquiry belongs to
23
+ */
24
+ enum region {
25
+ ANTARCTICA = "antarctica",
26
+ ARCTIC = "arctic",
27
+ PATAGONIA = "patagonia"
28
+ }
29
+ }
@@ -0,0 +1,12 @@
1
+ export var EnquirySubmission_write;
2
+ (function (EnquirySubmission_write) {
3
+ /**
4
+ * The region the enquiry belongs to
5
+ */
6
+ let region;
7
+ (function (region) {
8
+ region["ANTARCTICA"] = "antarctica";
9
+ region["ARCTIC"] = "arctic";
10
+ region["PATAGONIA"] = "patagonia";
11
+ })(region = EnquirySubmission_write.region || (EnquirySubmission_write.region = {}));
12
+ })(EnquirySubmission_write || (EnquirySubmission_write = {}));
@@ -13,6 +13,8 @@ import type { DayByDayType } from '../models/DayByDayType';
13
13
  import type { Departure } from '../models/Departure';
14
14
  import type { Enquiry } from '../models/Enquiry';
15
15
  import type { EnquiryStatus } from '../models/EnquiryStatus';
16
+ import type { EnquirySubmission_read } from '../models/EnquirySubmission_read';
17
+ import type { EnquirySubmission_write } from '../models/EnquirySubmission_write';
16
18
  import type { ExchangeRate } from '../models/ExchangeRate';
17
19
  import type { IbAudit_read } from '../models/IbAudit_read';
18
20
  import type { IbAudit_write } from '../models/IbAudit_write';
@@ -234,6 +236,14 @@ export declare class SwoopService {
234
236
  enquiryStatusesGetCollection(region?: string): CancelablePromise<{
235
237
  enquiryStatuses?: Array<EnquiryStatus>;
236
238
  }>;
239
+ /**
240
+ * Creates a EnquirySubmission resource.
241
+ * Creates a EnquirySubmission resource.
242
+ * @param requestBody The new EnquirySubmission resource
243
+ * @returns EnquirySubmission_read EnquirySubmission resource created
244
+ * @throws ApiError
245
+ */
246
+ enquirySubmissionPost(requestBody: EnquirySubmission_write): CancelablePromise<EnquirySubmission_read>;
237
247
  /**
238
248
  * Retrieves the collection of ExchangeRate resources.
239
249
  * Retrieves the collection of ExchangeRate resources.
@@ -331,6 +331,25 @@ export class SwoopService {
331
331
  },
332
332
  });
333
333
  }
334
+ /**
335
+ * Creates a EnquirySubmission resource.
336
+ * Creates a EnquirySubmission resource.
337
+ * @param requestBody The new EnquirySubmission resource
338
+ * @returns EnquirySubmission_read EnquirySubmission resource created
339
+ * @throws ApiError
340
+ */
341
+ enquirySubmissionPost(requestBody) {
342
+ return __request(OpenAPI, {
343
+ method: 'POST',
344
+ url: '/api/enquiry-submission',
345
+ body: requestBody,
346
+ mediaType: 'application/json',
347
+ errors: {
348
+ 400: `Invalid input`,
349
+ 422: `Validation Error`,
350
+ },
351
+ });
352
+ }
334
353
  /**
335
354
  * Retrieves the collection of ExchangeRate resources.
336
355
  * Retrieves the collection of ExchangeRate resources.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.231",
3
+ "version": "2.2.232",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {
@@ -1,6 +0,0 @@
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
- };