swoop-common 1.0.21 → 1.0.23
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/README.md +1 -0
- package/dist/api/gen.js +19 -53
- package/dist/api/generated/core/exports.d.ts +0 -1
- package/dist/api/generated/core/exports.js +0 -1
- package/dist/api/generated/core/services/CoreService.d.ts +12 -12
- package/dist/api/generated/core/services/CoreService.js +12 -12
- package/dist/api/generated/itinerary/exports.d.ts +0 -1
- package/dist/api/generated/itinerary/exports.js +1 -1
- package/dist/api/generated/itinerary/index.d.ts +2 -0
- package/dist/api/generated/itinerary/models/DTORegionCreate.d.ts +6 -0
- package/dist/api/generated/itinerary/models/DTORegionCreate.js +1 -0
- package/dist/api/generated/itinerary/models/DTORegionRead.d.ts +9 -0
- package/dist/api/generated/itinerary/models/DTORegionRead.js +1 -0
- package/dist/api/generated/itinerary/services/ItineraryService.d.ts +20 -80
- package/dist/api/generated/itinerary/services/ItineraryService.js +20 -128
- package/dist/api/generated/swoop/exports.d.ts +48 -66
- package/dist/api/generated/swoop/exports.js +1 -29
- package/dist/api/generated/swoop/index.d.ts +1 -12
- package/dist/api/generated/swoop/index.js +1 -12
- package/dist/api/generated/swoop/services/SwoopService.d.ts +387 -0
- package/dist/api/generated/swoop/services/SwoopService.js +329 -0
- package/dist/api/init.d.ts +8 -1
- package/dist/api/init.js +5 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/rendering/renderers/ComponentPicker.js +1 -1
- package/dist/rendering/renderers/TemplatePicker.js +1 -1
- package/dist/rendering/util/lib.d.ts +1 -0
- package/dist/rendering/util/lib.js +6 -0
- package/dist/rendering/util/string.d.ts +1 -0
- package/dist/rendering/util/string.js +1 -0
- package/package.json +1 -1
- package/dist/api/generated/swoop/services/BookingItemTypeService.d.ts +0 -35
- package/dist/api/generated/swoop/services/BookingItemTypeService.js +0 -22
- package/dist/api/generated/swoop/services/CategoryService.d.ts +0 -35
- package/dist/api/generated/swoop/services/CategoryService.js +0 -22
- package/dist/api/generated/swoop/services/CurrencyService.d.ts +0 -35
- package/dist/api/generated/swoop/services/CurrencyService.js +0 -22
- package/dist/api/generated/swoop/services/CustomerLookupService.d.ts +0 -13
- package/dist/api/generated/swoop/services/CustomerLookupService.js +0 -25
- package/dist/api/generated/swoop/services/CustomerService.d.ts +0 -45
- package/dist/api/generated/swoop/services/CustomerService.js +0 -45
- package/dist/api/generated/swoop/services/EnquiryService.d.ts +0 -12
- package/dist/api/generated/swoop/services/EnquiryService.js +0 -23
- package/dist/api/generated/swoop/services/EnquiryStatusService.d.ts +0 -34
- package/dist/api/generated/swoop/services/EnquiryStatusService.js +0 -20
- package/dist/api/generated/swoop/services/PartnerService.d.ts +0 -46
- package/dist/api/generated/swoop/services/PartnerService.js +0 -47
- package/dist/api/generated/swoop/services/PaymentService.d.ts +0 -34
- package/dist/api/generated/swoop/services/PaymentService.js +0 -20
- package/dist/api/generated/swoop/services/PersonService.d.ts +0 -42
- package/dist/api/generated/swoop/services/PersonService.js +0 -39
- package/dist/api/generated/swoop/services/TravellerService.d.ts +0 -43
- package/dist/api/generated/swoop/services/TravellerService.js +0 -41
- package/dist/api/generated/swoop/services/TripService.d.ts +0 -46
- package/dist/api/generated/swoop/services/TripService.js +0 -47
package/dist/api/init.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import * as Core from "./generated/core/index";
|
|
2
|
+
import * as Itinerary from "./generated/itinerary/index";
|
|
3
|
+
import * as Swoop from "./generated/swoop/index";
|
|
1
4
|
export declare const init: (opts: {
|
|
2
5
|
itineraryServiceUrl: string;
|
|
3
6
|
coreServiceUrl: string;
|
|
4
7
|
swoopServiceForwardUrl: string;
|
|
5
|
-
}) =>
|
|
8
|
+
}) => {
|
|
9
|
+
SwoopService: Swoop.SwoopService;
|
|
10
|
+
CoreService: Core.CoreService;
|
|
11
|
+
ItineraryService: Itinerary.ItineraryService;
|
|
12
|
+
};
|
|
6
13
|
export declare const initialisedCheck: () => void;
|
package/dist/api/init.js
CHANGED
|
@@ -15,6 +15,11 @@ export const init = (opts) => {
|
|
|
15
15
|
Itinerary.OpenAPI.BASE = opts.itineraryServiceUrl;
|
|
16
16
|
Swoop.OpenAPI.BASE = opts.swoopServiceForwardUrl;
|
|
17
17
|
initalised = true;
|
|
18
|
+
return {
|
|
19
|
+
SwoopService: new Swoop.SwoopService(),
|
|
20
|
+
CoreService: new Core.CoreService(),
|
|
21
|
+
ItineraryService: new Itinerary.ItineraryService(),
|
|
22
|
+
};
|
|
18
23
|
};
|
|
19
24
|
export const initialisedCheck = () => {
|
|
20
25
|
if (initalised)
|
package/dist/index.d.ts
CHANGED
|
@@ -10,5 +10,4 @@ export { MasterSchema, Stage } from "./rendering/schema/formSchemaTypes";
|
|
|
10
10
|
export { FORM_BUILDER_JSON_SCHEMA } from "./rendering/schema/formBuilders/formBuilderJsonSchema";
|
|
11
11
|
export { FORM_BUILDER_UI_SCHEMA } from "./rendering/schema/formBuilders/formBuilderUiSchema";
|
|
12
12
|
export * from "./api/generated/core/exports";
|
|
13
|
-
export * from "./api/generated/itinerary/exports";
|
|
14
13
|
export * from "./api/generated/swoop/exports";
|
package/dist/index.js
CHANGED
|
@@ -11,5 +11,5 @@ export { FORM_BUILDER_JSON_SCHEMA } from "./rendering/schema/formBuilders/formBu
|
|
|
11
11
|
export { FORM_BUILDER_UI_SCHEMA } from "./rendering/schema/formBuilders/formBuilderUiSchema";
|
|
12
12
|
// API SDKs //
|
|
13
13
|
export * from "./api/generated/core/exports";
|
|
14
|
-
export * from "./api/generated/itinerary/exports"
|
|
14
|
+
//export * from "./api/generated/itinerary/exports" Nothing exported directly
|
|
15
15
|
export * from "./api/generated/swoop/exports";
|
|
@@ -12,7 +12,7 @@ import { Paper, Typography, Box, TextField, Autocomplete } from '@mui/material';
|
|
|
12
12
|
import { useLocalErrors } from '../hooks/errors';
|
|
13
13
|
import { ComponentPool } from '../registry/types';
|
|
14
14
|
import { registerComponent } from '../registry/components';
|
|
15
|
-
import { CoreService } from '
|
|
15
|
+
import { CoreService } from '../util/lib';
|
|
16
16
|
const FormComponentPicker = ({ components, selectedComponent, onChange, templateIds, getError, label, enabled }) => {
|
|
17
17
|
const selected = components.find(c => c.id === selectedComponent) || null;
|
|
18
18
|
return (React.createElement(Paper, { component: "form", sx: { display: 'flex', flexDirection: 'column', gap: 1, p: 2, mb: 1 }, noValidate: true, autoComplete: "off" },
|
|
@@ -13,7 +13,7 @@ import { Paper, Typography, Box, TextField, Chip, Autocomplete } from '@mui/mate
|
|
|
13
13
|
import { useLocalErrors } from '../hooks/errors';
|
|
14
14
|
import { registerComponent } from '../registry/components';
|
|
15
15
|
import { ComponentPool } from '../registry/types';
|
|
16
|
-
import { CoreService } from '
|
|
16
|
+
import { CoreService } from '../util/lib';
|
|
17
17
|
const FormTemplatePicker = ({ templates, selectedTemplates, onChange, label, enabled }) => {
|
|
18
18
|
const selectedValues = templates.filter(t => selectedTemplates.includes(t.id));
|
|
19
19
|
return (React.createElement(Paper, { component: "form", sx: { display: 'flex', flexDirection: 'column', gap: 2, p: 2, mb: 1 }, noValidate: true, autoComplete: "off" },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SwoopService: import("../../api/generated/swoop").SwoopService, ItineraryService: import("../../api/generated/itinerary").ItineraryService, CoreService: import("../../api/generated/core").CoreService;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { init } from "../../api/init";
|
|
2
|
+
export const { SwoopService, ItineraryService, CoreService } = init({
|
|
3
|
+
coreServiceUrl: "https://data-api-dev.swoop-adventures.com/core-data-service/v1/",
|
|
4
|
+
itineraryServiceUrl: "https://data-api-dev.swoop-adventures.com/itinerary-builder-service/v1/",
|
|
5
|
+
swoopServiceForwardUrl: "https://data-api-dev.swoop-adventures.com/itinerary-builder-service/v1/forward"
|
|
6
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const capitalise: (str: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const capitalise = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { BookingItemType_jsonld } from '../models/BookingItemType_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class BookingItemTypeService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of BookingItemType resources.
|
|
6
|
-
* Retrieves the collection of BookingItemType resources.
|
|
7
|
-
* @param region antarctica, arctic, patagonia
|
|
8
|
-
* @param active 1,0
|
|
9
|
-
* @returns any BookingItemType collection
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static bookingItemTypesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
13
|
-
member: Array<BookingItemType_jsonld>;
|
|
14
|
-
totalItems?: number;
|
|
15
|
-
view?: {
|
|
16
|
-
'@id'?: string;
|
|
17
|
-
'@type'?: string;
|
|
18
|
-
first?: string;
|
|
19
|
-
last?: string;
|
|
20
|
-
previous?: string;
|
|
21
|
-
next?: string;
|
|
22
|
-
};
|
|
23
|
-
search?: {
|
|
24
|
-
'@type'?: string;
|
|
25
|
-
template?: string;
|
|
26
|
-
variableRepresentation?: string;
|
|
27
|
-
mapping?: Array<{
|
|
28
|
-
'@type'?: string;
|
|
29
|
-
variable?: string;
|
|
30
|
-
property?: string | null;
|
|
31
|
-
required?: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
};
|
|
34
|
-
}>;
|
|
35
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class BookingItemTypeService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of BookingItemType resources.
|
|
6
|
-
* Retrieves the collection of BookingItemType resources.
|
|
7
|
-
* @param region antarctica, arctic, patagonia
|
|
8
|
-
* @param active 1,0
|
|
9
|
-
* @returns any BookingItemType collection
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static bookingItemTypesGetCollection(region, active) {
|
|
13
|
-
return __request(OpenAPI, {
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: '/api/booking-item-types',
|
|
16
|
-
query: {
|
|
17
|
-
'region': region,
|
|
18
|
-
'active': active,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Category_jsonld } from '../models/Category_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class CategoryService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Category resources.
|
|
6
|
-
* Retrieves the collection of Category resources.
|
|
7
|
-
* @param region antarctica, arctic, patagonia
|
|
8
|
-
* @param active 1,0
|
|
9
|
-
* @returns any Category collection
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static categoriesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
13
|
-
member: Array<Category_jsonld>;
|
|
14
|
-
totalItems?: number;
|
|
15
|
-
view?: {
|
|
16
|
-
'@id'?: string;
|
|
17
|
-
'@type'?: string;
|
|
18
|
-
first?: string;
|
|
19
|
-
last?: string;
|
|
20
|
-
previous?: string;
|
|
21
|
-
next?: string;
|
|
22
|
-
};
|
|
23
|
-
search?: {
|
|
24
|
-
'@type'?: string;
|
|
25
|
-
template?: string;
|
|
26
|
-
variableRepresentation?: string;
|
|
27
|
-
mapping?: Array<{
|
|
28
|
-
'@type'?: string;
|
|
29
|
-
variable?: string;
|
|
30
|
-
property?: string | null;
|
|
31
|
-
required?: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
};
|
|
34
|
-
}>;
|
|
35
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class CategoryService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Category resources.
|
|
6
|
-
* Retrieves the collection of Category resources.
|
|
7
|
-
* @param region antarctica, arctic, patagonia
|
|
8
|
-
* @param active 1,0
|
|
9
|
-
* @returns any Category collection
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static categoriesGetCollection(region, active) {
|
|
13
|
-
return __request(OpenAPI, {
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: '/api/categories',
|
|
16
|
-
query: {
|
|
17
|
-
'region': region,
|
|
18
|
-
'active': active,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Currency_jsonld } from '../models/Currency_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class CurrencyService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Currency resources.
|
|
6
|
-
* Retrieves the collection of Currency resources.
|
|
7
|
-
* @param region antarctica, arctic, patagonia
|
|
8
|
-
* @param active 1,0
|
|
9
|
-
* @returns any Currency collection
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static currenciesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
13
|
-
member: Array<Currency_jsonld>;
|
|
14
|
-
totalItems?: number;
|
|
15
|
-
view?: {
|
|
16
|
-
'@id'?: string;
|
|
17
|
-
'@type'?: string;
|
|
18
|
-
first?: string;
|
|
19
|
-
last?: string;
|
|
20
|
-
previous?: string;
|
|
21
|
-
next?: string;
|
|
22
|
-
};
|
|
23
|
-
search?: {
|
|
24
|
-
'@type'?: string;
|
|
25
|
-
template?: string;
|
|
26
|
-
variableRepresentation?: string;
|
|
27
|
-
mapping?: Array<{
|
|
28
|
-
'@type'?: string;
|
|
29
|
-
variable?: string;
|
|
30
|
-
property?: string | null;
|
|
31
|
-
required?: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
};
|
|
34
|
-
}>;
|
|
35
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class CurrencyService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Currency resources.
|
|
6
|
-
* Retrieves the collection of Currency resources.
|
|
7
|
-
* @param region antarctica, arctic, patagonia
|
|
8
|
-
* @param active 1,0
|
|
9
|
-
* @returns any Currency collection
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static currenciesGetCollection(region, active) {
|
|
13
|
-
return __request(OpenAPI, {
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: '/api/currencies',
|
|
16
|
-
query: {
|
|
17
|
-
'region': region,
|
|
18
|
-
'active': active,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { CustomerLookup_jsonld } from '../models/CustomerLookup_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class CustomerLookupService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves a CustomerLookup resource.
|
|
6
|
-
* Retrieves a CustomerLookup resource.
|
|
7
|
-
* @param telephone Customer telephone number to look up (+447877887878)
|
|
8
|
-
* @param region antarctica, arctic, patagonia
|
|
9
|
-
* @returns CustomerLookup_jsonld CustomerLookup resource
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static customersLookUpGet(telephone?: string, region?: string): CancelablePromise<CustomerLookup_jsonld>;
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class CustomerLookupService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves a CustomerLookup resource.
|
|
6
|
-
* Retrieves a CustomerLookup resource.
|
|
7
|
-
* @param telephone Customer telephone number to look up (+447877887878)
|
|
8
|
-
* @param region antarctica, arctic, patagonia
|
|
9
|
-
* @returns CustomerLookup_jsonld CustomerLookup resource
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static customersLookUpGet(telephone, region) {
|
|
13
|
-
return __request(OpenAPI, {
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: '/api/customers-look-up',
|
|
16
|
-
query: {
|
|
17
|
-
'telephone': telephone,
|
|
18
|
-
'region': region,
|
|
19
|
-
},
|
|
20
|
-
errors: {
|
|
21
|
-
404: `Not found`,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { Customer_jsonld } from '../models/Customer_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class CustomerService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Customer resources.
|
|
6
|
-
* Retrieves the collection of Customer resources.
|
|
7
|
-
* @param page The collection page number
|
|
8
|
-
* @param itemsPerPage The number of items per page
|
|
9
|
-
* @param search Search against first_name, last_name, email
|
|
10
|
-
* @param region antarctica, arctic, patagonia
|
|
11
|
-
* @returns any Customer collection
|
|
12
|
-
* @throws ApiError
|
|
13
|
-
*/
|
|
14
|
-
static customersGetCollection(page?: number, itemsPerPage?: number, search?: string, region?: string): CancelablePromise<{
|
|
15
|
-
member: Array<Customer_jsonld>;
|
|
16
|
-
totalItems?: number;
|
|
17
|
-
view?: {
|
|
18
|
-
'@id'?: string;
|
|
19
|
-
'@type'?: string;
|
|
20
|
-
first?: string;
|
|
21
|
-
last?: string;
|
|
22
|
-
previous?: string;
|
|
23
|
-
next?: string;
|
|
24
|
-
};
|
|
25
|
-
search?: {
|
|
26
|
-
'@type'?: string;
|
|
27
|
-
template?: string;
|
|
28
|
-
variableRepresentation?: string;
|
|
29
|
-
mapping?: Array<{
|
|
30
|
-
'@type'?: string;
|
|
31
|
-
variable?: string;
|
|
32
|
-
property?: string | null;
|
|
33
|
-
required?: boolean;
|
|
34
|
-
}>;
|
|
35
|
-
};
|
|
36
|
-
}>;
|
|
37
|
-
/**
|
|
38
|
-
* Retrieves a Customer resource.
|
|
39
|
-
* Retrieves a Customer resource.
|
|
40
|
-
* @param id The unique identifier example: ANT-12345 ({REGION}-{customer_id}})
|
|
41
|
-
* @returns Customer_jsonld Customer resource
|
|
42
|
-
* @throws ApiError
|
|
43
|
-
*/
|
|
44
|
-
static customersIdGet(id: string): CancelablePromise<Customer_jsonld>;
|
|
45
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class CustomerService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Customer resources.
|
|
6
|
-
* Retrieves the collection of Customer resources.
|
|
7
|
-
* @param page The collection page number
|
|
8
|
-
* @param itemsPerPage The number of items per page
|
|
9
|
-
* @param search Search against first_name, last_name, email
|
|
10
|
-
* @param region antarctica, arctic, patagonia
|
|
11
|
-
* @returns any Customer collection
|
|
12
|
-
* @throws ApiError
|
|
13
|
-
*/
|
|
14
|
-
static customersGetCollection(page = 1, itemsPerPage = 30, search, region) {
|
|
15
|
-
return __request(OpenAPI, {
|
|
16
|
-
method: 'GET',
|
|
17
|
-
url: '/api/customers',
|
|
18
|
-
query: {
|
|
19
|
-
'page': page,
|
|
20
|
-
'itemsPerPage': itemsPerPage,
|
|
21
|
-
'search': search,
|
|
22
|
-
'region': region,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves a Customer resource.
|
|
28
|
-
* Retrieves a Customer resource.
|
|
29
|
-
* @param id The unique identifier example: ANT-12345 ({REGION}-{customer_id}})
|
|
30
|
-
* @returns Customer_jsonld Customer resource
|
|
31
|
-
* @throws ApiError
|
|
32
|
-
*/
|
|
33
|
-
static customersIdGet(id) {
|
|
34
|
-
return __request(OpenAPI, {
|
|
35
|
-
method: 'GET',
|
|
36
|
-
url: '/api/customers/{id}',
|
|
37
|
-
path: {
|
|
38
|
-
'id': id,
|
|
39
|
-
},
|
|
40
|
-
errors: {
|
|
41
|
-
404: `Not found`,
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Enquiry_jsonld } from '../models/Enquiry_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class EnquiryService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves a Enquiry resource.
|
|
6
|
-
* Retrieves a Enquiry resource.
|
|
7
|
-
* @param id The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
|
|
8
|
-
* @returns Enquiry_jsonld Enquiry resource
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static enquiryIdGet(id: string): CancelablePromise<Enquiry_jsonld>;
|
|
12
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class EnquiryService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves a Enquiry resource.
|
|
6
|
-
* Retrieves a Enquiry resource.
|
|
7
|
-
* @param id The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
|
|
8
|
-
* @returns Enquiry_jsonld Enquiry resource
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static enquiryIdGet(id) {
|
|
12
|
-
return __request(OpenAPI, {
|
|
13
|
-
method: 'GET',
|
|
14
|
-
url: '/api/enquiry/{id}',
|
|
15
|
-
path: {
|
|
16
|
-
'id': id,
|
|
17
|
-
},
|
|
18
|
-
errors: {
|
|
19
|
-
404: `Not found`,
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { EnquiryStatus_jsonld } from '../models/EnquiryStatus_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class EnquiryStatusService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of EnquiryStatus resources.
|
|
6
|
-
* Retrieves the collection of EnquiryStatus resources.
|
|
7
|
-
* @param region antarctica, arctic, patagonia
|
|
8
|
-
* @returns any EnquiryStatus collection
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static enquiryStatusesGetCollection(region?: string): CancelablePromise<{
|
|
12
|
-
member: Array<EnquiryStatus_jsonld>;
|
|
13
|
-
totalItems?: number;
|
|
14
|
-
view?: {
|
|
15
|
-
'@id'?: string;
|
|
16
|
-
'@type'?: string;
|
|
17
|
-
first?: string;
|
|
18
|
-
last?: string;
|
|
19
|
-
previous?: string;
|
|
20
|
-
next?: string;
|
|
21
|
-
};
|
|
22
|
-
search?: {
|
|
23
|
-
'@type'?: string;
|
|
24
|
-
template?: string;
|
|
25
|
-
variableRepresentation?: string;
|
|
26
|
-
mapping?: Array<{
|
|
27
|
-
'@type'?: string;
|
|
28
|
-
variable?: string;
|
|
29
|
-
property?: string | null;
|
|
30
|
-
required?: boolean;
|
|
31
|
-
}>;
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class EnquiryStatusService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of EnquiryStatus resources.
|
|
6
|
-
* Retrieves the collection of EnquiryStatus resources.
|
|
7
|
-
* @param region antarctica, arctic, patagonia
|
|
8
|
-
* @returns any EnquiryStatus collection
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static enquiryStatusesGetCollection(region) {
|
|
12
|
-
return __request(OpenAPI, {
|
|
13
|
-
method: 'GET',
|
|
14
|
-
url: '/api/enquiry-statuses',
|
|
15
|
-
query: {
|
|
16
|
-
'region': region,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { Partner_jsonld } from '../models/Partner_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class PartnerService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Partner resources.
|
|
6
|
-
* Retrieves the collection of Partner resources.
|
|
7
|
-
* @param page The collection page number
|
|
8
|
-
* @param itemsPerPage The number of items per page
|
|
9
|
-
* @param region antarctica, arctic, patagonia
|
|
10
|
-
* @param search Search against title, alias, description, name, telephone, email
|
|
11
|
-
* @param active Filter by active status (0,1)
|
|
12
|
-
* @returns any Partner collection
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
static partnersGetCollection(page?: number, itemsPerPage?: number, region?: string, search?: string, active?: string): CancelablePromise<{
|
|
16
|
-
member: Array<Partner_jsonld>;
|
|
17
|
-
totalItems?: number;
|
|
18
|
-
view?: {
|
|
19
|
-
'@id'?: string;
|
|
20
|
-
'@type'?: string;
|
|
21
|
-
first?: string;
|
|
22
|
-
last?: string;
|
|
23
|
-
previous?: string;
|
|
24
|
-
next?: string;
|
|
25
|
-
};
|
|
26
|
-
search?: {
|
|
27
|
-
'@type'?: string;
|
|
28
|
-
template?: string;
|
|
29
|
-
variableRepresentation?: string;
|
|
30
|
-
mapping?: Array<{
|
|
31
|
-
'@type'?: string;
|
|
32
|
-
variable?: string;
|
|
33
|
-
property?: string | null;
|
|
34
|
-
required?: boolean;
|
|
35
|
-
}>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
/**
|
|
39
|
-
* Retrieves a Partner resource.
|
|
40
|
-
* Retrieves a Partner resource.
|
|
41
|
-
* @param id The unique identifier example: ANT-12345 ({REGION}-{partner_id}})
|
|
42
|
-
* @returns Partner_jsonld Partner resource
|
|
43
|
-
* @throws ApiError
|
|
44
|
-
*/
|
|
45
|
-
static partnersIdGet(id: string): CancelablePromise<Partner_jsonld>;
|
|
46
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class PartnerService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Partner resources.
|
|
6
|
-
* Retrieves the collection of Partner resources.
|
|
7
|
-
* @param page The collection page number
|
|
8
|
-
* @param itemsPerPage The number of items per page
|
|
9
|
-
* @param region antarctica, arctic, patagonia
|
|
10
|
-
* @param search Search against title, alias, description, name, telephone, email
|
|
11
|
-
* @param active Filter by active status (0,1)
|
|
12
|
-
* @returns any Partner collection
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
static partnersGetCollection(page = 1, itemsPerPage = 30, region, search, active) {
|
|
16
|
-
return __request(OpenAPI, {
|
|
17
|
-
method: 'GET',
|
|
18
|
-
url: '/api/partners',
|
|
19
|
-
query: {
|
|
20
|
-
'page': page,
|
|
21
|
-
'itemsPerPage': itemsPerPage,
|
|
22
|
-
'region': region,
|
|
23
|
-
'search': search,
|
|
24
|
-
'active': active,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves a Partner resource.
|
|
30
|
-
* Retrieves a Partner resource.
|
|
31
|
-
* @param id The unique identifier example: ANT-12345 ({REGION}-{partner_id}})
|
|
32
|
-
* @returns Partner_jsonld Partner resource
|
|
33
|
-
* @throws ApiError
|
|
34
|
-
*/
|
|
35
|
-
static partnersIdGet(id) {
|
|
36
|
-
return __request(OpenAPI, {
|
|
37
|
-
method: 'GET',
|
|
38
|
-
url: '/api/partners/{id}',
|
|
39
|
-
path: {
|
|
40
|
-
'id': id,
|
|
41
|
-
},
|
|
42
|
-
errors: {
|
|
43
|
-
404: `Not found`,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Payment_jsonld } from '../models/Payment_jsonld';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class PaymentService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Payment resources.
|
|
6
|
-
* Retrieves the collection of Payment resources.
|
|
7
|
-
* @param enquiryId by enquiry ID
|
|
8
|
-
* @returns any Payment collection
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static paymentsGetCollection(enquiryId?: string): CancelablePromise<{
|
|
12
|
-
member: Array<Payment_jsonld>;
|
|
13
|
-
totalItems?: number;
|
|
14
|
-
view?: {
|
|
15
|
-
'@id'?: string;
|
|
16
|
-
'@type'?: string;
|
|
17
|
-
first?: string;
|
|
18
|
-
last?: string;
|
|
19
|
-
previous?: string;
|
|
20
|
-
next?: string;
|
|
21
|
-
};
|
|
22
|
-
search?: {
|
|
23
|
-
'@type'?: string;
|
|
24
|
-
template?: string;
|
|
25
|
-
variableRepresentation?: string;
|
|
26
|
-
mapping?: Array<{
|
|
27
|
-
'@type'?: string;
|
|
28
|
-
variable?: string;
|
|
29
|
-
property?: string | null;
|
|
30
|
-
required?: boolean;
|
|
31
|
-
}>;
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class PaymentService {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the collection of Payment resources.
|
|
6
|
-
* Retrieves the collection of Payment resources.
|
|
7
|
-
* @param enquiryId by enquiry ID
|
|
8
|
-
* @returns any Payment collection
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static paymentsGetCollection(enquiryId) {
|
|
12
|
-
return __request(OpenAPI, {
|
|
13
|
-
method: 'GET',
|
|
14
|
-
url: '/api/payments',
|
|
15
|
-
query: {
|
|
16
|
-
'enquiry_id': enquiryId,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|