@onemineral/pms-js-sdk 0.1.45-beta → 0.1.46
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/cjs/generated/account.d.ts +1 -0
- package/dist/cjs/generated/airbnb-property.d.ts +4 -0
- package/dist/cjs/generated/airbnb-property.js +8 -0
- package/dist/cjs/generated/airbnb-property.js.map +1 -1
- package/dist/cjs/generated/airbnb.d.ts +64 -1
- package/dist/cjs/generated/airbnb.js +5 -0
- package/dist/cjs/generated/airbnb.js.map +1 -1
- package/dist/cjs/generated/amenity-group.d.ts +1 -0
- package/dist/cjs/generated/amenity.d.ts +1 -0
- package/dist/cjs/generated/availability-details.d.ts +29 -10
- package/dist/cjs/generated/availability-status.d.ts +1 -0
- package/dist/cjs/generated/bed-type.d.ts +1 -0
- package/dist/cjs/generated/booking-com-legal-entity.d.ts +1 -0
- package/dist/cjs/generated/booking-com-property.d.ts +8 -3
- package/dist/cjs/generated/booking-com-property.js +8 -0
- package/dist/cjs/generated/booking-com-property.js.map +1 -1
- package/dist/cjs/generated/booking.d.ts +13 -6
- package/dist/cjs/generated/booking.js.map +1 -1
- package/dist/cjs/generated/calculated-tax.d.ts +1 -1
- package/dist/cjs/generated/channel-manager-sync.d.ts +1 -0
- package/dist/cjs/generated/channel-property.d.ts +1 -0
- package/dist/cjs/generated/channel.d.ts +1 -0
- package/dist/cjs/generated/collection.d.ts +1 -0
- package/dist/cjs/generated/country.d.ts +1 -0
- package/dist/cjs/generated/credit-card.d.ts +1 -1
- package/dist/cjs/generated/currency.d.ts +1 -0
- package/dist/cjs/generated/discount.d.ts +2 -0
- package/dist/cjs/generated/email-configuration.d.ts +2 -1
- package/dist/cjs/generated/fee-type.d.ts +4 -3
- package/dist/cjs/generated/guest-account.d.ts +1 -0
- package/dist/cjs/generated/holidu-property.d.ts +50 -0
- package/dist/cjs/generated/holidu-property.js +36 -0
- package/dist/cjs/generated/holidu-property.js.map +1 -0
- package/dist/cjs/generated/holidu.d.ts +46 -0
- package/dist/cjs/generated/holidu.js +28 -0
- package/dist/cjs/generated/holidu.js.map +1 -0
- package/dist/cjs/generated/homeaway.d.ts +1 -1
- package/dist/cjs/generated/identity.d.ts +1 -1
- package/dist/cjs/generated/identity.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +24 -9
- package/dist/cjs/generated/index.js +24 -9
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/inquiry-quote.d.ts +75 -0
- package/dist/cjs/generated/inquiry-quote.js +44 -0
- package/dist/cjs/generated/inquiry-quote.js.map +1 -0
- package/dist/cjs/generated/inquiry-stage.d.ts +90 -0
- package/dist/cjs/generated/inquiry-stage.js +60 -0
- package/dist/cjs/generated/inquiry-stage.js.map +1 -0
- package/dist/cjs/generated/inquiry.d.ts +222 -0
- package/dist/cjs/generated/inquiry.js +92 -0
- package/dist/cjs/generated/inquiry.js.map +1 -0
- package/dist/cjs/generated/language.d.ts +1 -0
- package/dist/cjs/generated/lead-quote.d.ts +75 -0
- package/dist/cjs/generated/lead-quote.js +44 -0
- package/dist/cjs/generated/lead-quote.js.map +1 -0
- package/dist/cjs/generated/lead-stage.d.ts +90 -0
- package/dist/cjs/generated/lead-stage.js +60 -0
- package/dist/cjs/generated/lead-stage.js.map +1 -0
- package/dist/cjs/generated/lead.d.ts +222 -0
- package/dist/cjs/generated/lead.js +92 -0
- package/dist/cjs/generated/lead.js.map +1 -0
- package/dist/cjs/generated/legal-entity.d.ts +1 -0
- package/dist/cjs/generated/location.d.ts +1 -0
- package/dist/cjs/generated/los-template.d.ts +1 -0
- package/dist/cjs/generated/managed-integration.d.ts +40 -0
- package/dist/cjs/generated/managed-integration.js +69 -0
- package/dist/cjs/generated/managed-integration.js.map +1 -1
- package/dist/cjs/generated/notification-layout.d.ts +1 -0
- package/dist/cjs/generated/notification-template.d.ts +12 -7
- package/dist/cjs/generated/notification-template.js.map +1 -1
- package/dist/cjs/generated/notification.d.ts +1 -0
- package/dist/cjs/generated/online-checkin.d.ts +6 -0
- package/dist/cjs/generated/online-checkin.js +8 -0
- package/dist/cjs/generated/online-checkin.js.map +1 -1
- package/dist/cjs/generated/partner-account.d.ts +1 -0
- package/dist/cjs/generated/payment-gateway.d.ts +1 -0
- package/dist/cjs/generated/payment-method.d.ts +6 -17
- package/dist/cjs/generated/payment-method.js +0 -5
- package/dist/cjs/generated/payment-method.js.map +1 -1
- package/dist/cjs/generated/payment-provider.d.ts +19 -0
- package/dist/cjs/generated/payment-provider.js +20 -0
- package/dist/cjs/generated/payment-provider.js.map +1 -0
- package/dist/cjs/generated/payment-schedule.d.ts +1 -0
- package/dist/cjs/generated/payment.d.ts +20 -2
- package/dist/cjs/generated/payment.js +8 -0
- package/dist/cjs/generated/payment.js.map +1 -1
- package/dist/cjs/generated/personal-access-token.d.ts +1 -0
- package/dist/cjs/generated/profile-settings.d.ts +2 -2
- package/dist/cjs/generated/profile-settings.js.map +1 -1
- package/dist/cjs/generated/property-type.d.ts +1 -0
- package/dist/cjs/generated/property.d.ts +46 -8
- package/dist/cjs/generated/property.js +8 -0
- package/dist/cjs/generated/property.js.map +1 -1
- package/dist/cjs/generated/region.d.ts +1 -0
- package/dist/cjs/generated/rental-agreement.d.ts +1 -0
- package/dist/cjs/generated/review.d.ts +1 -0
- package/dist/cjs/generated/service-request.d.ts +1 -0
- package/dist/cjs/generated/service-type.d.ts +1 -0
- package/dist/cjs/generated/service.d.ts +1 -0
- package/dist/cjs/generated/subscription.d.ts +1 -1
- package/dist/cjs/generated/superhog.d.ts +3 -3
- package/dist/cjs/generated/supplier-type.d.ts +1 -0
- package/dist/cjs/generated/tag.d.ts +1 -0
- package/dist/cjs/generated/tax-class.d.ts +3 -2
- package/dist/cjs/generated/tax.d.ts +1 -1
- package/dist/cjs/generated/tenant-settings.d.ts +2 -1
- package/dist/cjs/generated/tenant.d.ts +2 -1
- package/dist/cjs/generated/thread-message.d.ts +54 -4
- package/dist/cjs/generated/thread-message.js +24 -0
- package/dist/cjs/generated/thread-message.js.map +1 -1
- package/dist/cjs/generated/thread.d.ts +5 -3
- package/dist/cjs/generated/thread.js.map +1 -1
- package/dist/cjs/generated/user.d.ts +1 -0
- package/dist/cjs/generated/webhook.d.ts +4 -2
- package/dist/cjs/generated/webhook.js.map +1 -1
- package/dist/cjs/generated/website-channel.d.ts +1 -17
- package/dist/cjs/generated/website-channel.js +0 -16
- package/dist/cjs/generated/website-channel.js.map +1 -1
- package/dist/cjs/generated/wheelhouse-property.d.ts +54 -0
- package/dist/cjs/generated/wheelhouse-property.js +44 -0
- package/dist/cjs/generated/wheelhouse-property.js.map +1 -0
- package/dist/cjs/generated/wheelhouse.d.ts +50 -0
- package/dist/cjs/generated/wheelhouse.js +36 -0
- package/dist/cjs/generated/wheelhouse.js.map +1 -0
- package/dist/cjs/generated/workflow-schedule.d.ts +5 -4
- package/dist/cjs/generated/workflow-schedule.js.map +1 -1
- package/dist/cjs/generated/workflow.d.ts +7 -3
- package/dist/cjs/generated/workflow.js.map +1 -1
- package/dist/cjs/generated/zapier.d.ts +1 -0
- package/dist/cjs/index.d.ts +8 -3
- package/dist/cjs/multipart.js +1 -7
- package/dist/cjs/multipart.js.map +1 -1
- package/dist/esm/generated/account.d.ts +1 -0
- package/dist/esm/generated/airbnb-property.d.ts +4 -0
- package/dist/esm/generated/airbnb-property.js +8 -0
- package/dist/esm/generated/airbnb-property.js.map +1 -1
- package/dist/esm/generated/airbnb.d.ts +64 -1
- package/dist/esm/generated/airbnb.js +5 -0
- package/dist/esm/generated/airbnb.js.map +1 -1
- package/dist/esm/generated/amenity-group.d.ts +1 -0
- package/dist/esm/generated/amenity.d.ts +1 -0
- package/dist/esm/generated/availability-details.d.ts +29 -10
- package/dist/esm/generated/availability-status.d.ts +1 -0
- package/dist/esm/generated/bed-type.d.ts +1 -0
- package/dist/esm/generated/booking-com-legal-entity.d.ts +1 -0
- package/dist/esm/generated/booking-com-property.d.ts +8 -3
- package/dist/esm/generated/booking-com-property.js +8 -0
- package/dist/esm/generated/booking-com-property.js.map +1 -1
- package/dist/esm/generated/booking.d.ts +13 -6
- package/dist/esm/generated/booking.js.map +1 -1
- package/dist/esm/generated/calculated-tax.d.ts +1 -1
- package/dist/esm/generated/channel-manager-sync.d.ts +1 -0
- package/dist/esm/generated/channel-property.d.ts +1 -0
- package/dist/esm/generated/channel.d.ts +1 -0
- package/dist/esm/generated/collection.d.ts +1 -0
- package/dist/esm/generated/country.d.ts +1 -0
- package/dist/esm/generated/credit-card.d.ts +1 -1
- package/dist/esm/generated/currency.d.ts +1 -0
- package/dist/esm/generated/discount.d.ts +2 -0
- package/dist/esm/generated/email-configuration.d.ts +2 -1
- package/dist/esm/generated/fee-type.d.ts +4 -3
- package/dist/esm/generated/guest-account.d.ts +1 -0
- package/dist/esm/generated/holidu-property.d.ts +50 -0
- package/dist/esm/generated/holidu-property.js +32 -0
- package/dist/esm/generated/holidu-property.js.map +1 -0
- package/dist/esm/generated/holidu.d.ts +46 -0
- package/dist/esm/generated/holidu.js +24 -0
- package/dist/esm/generated/holidu.js.map +1 -0
- package/dist/esm/generated/homeaway.d.ts +1 -1
- package/dist/esm/generated/identity.d.ts +1 -1
- package/dist/esm/generated/identity.js.map +1 -1
- package/dist/esm/generated/index.d.ts +24 -9
- package/dist/esm/generated/index.js +24 -9
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/inquiry-quote.d.ts +75 -0
- package/dist/esm/generated/inquiry-quote.js +40 -0
- package/dist/esm/generated/inquiry-quote.js.map +1 -0
- package/dist/esm/generated/inquiry-stage.d.ts +90 -0
- package/dist/esm/generated/inquiry-stage.js +56 -0
- package/dist/esm/generated/inquiry-stage.js.map +1 -0
- package/dist/esm/generated/inquiry.d.ts +222 -0
- package/dist/esm/generated/inquiry.js +88 -0
- package/dist/esm/generated/inquiry.js.map +1 -0
- package/dist/esm/generated/language.d.ts +1 -0
- package/dist/esm/generated/lead-quote.d.ts +75 -0
- package/dist/esm/generated/lead-quote.js +40 -0
- package/dist/esm/generated/lead-quote.js.map +1 -0
- package/dist/esm/generated/lead-stage.d.ts +90 -0
- package/dist/esm/generated/lead-stage.js +56 -0
- package/dist/esm/generated/lead-stage.js.map +1 -0
- package/dist/esm/generated/lead.d.ts +222 -0
- package/dist/esm/generated/lead.js +88 -0
- package/dist/esm/generated/lead.js.map +1 -0
- package/dist/esm/generated/legal-entity.d.ts +1 -0
- package/dist/esm/generated/location.d.ts +1 -0
- package/dist/esm/generated/los-template.d.ts +1 -0
- package/dist/esm/generated/managed-integration.d.ts +40 -0
- package/dist/esm/generated/managed-integration.js +69 -0
- package/dist/esm/generated/managed-integration.js.map +1 -1
- package/dist/esm/generated/notification-layout.d.ts +1 -0
- package/dist/esm/generated/notification-template.d.ts +12 -7
- package/dist/esm/generated/notification-template.js.map +1 -1
- package/dist/esm/generated/notification.d.ts +1 -0
- package/dist/esm/generated/online-checkin.d.ts +6 -0
- package/dist/esm/generated/online-checkin.js +8 -0
- package/dist/esm/generated/online-checkin.js.map +1 -1
- package/dist/esm/generated/partner-account.d.ts +1 -0
- package/dist/esm/generated/payment-gateway.d.ts +1 -0
- package/dist/esm/generated/payment-method.d.ts +6 -17
- package/dist/esm/generated/payment-method.js +0 -5
- package/dist/esm/generated/payment-method.js.map +1 -1
- package/dist/esm/generated/payment-provider.d.ts +19 -0
- package/dist/esm/generated/payment-provider.js +16 -0
- package/dist/esm/generated/payment-provider.js.map +1 -0
- package/dist/esm/generated/payment-schedule.d.ts +1 -0
- package/dist/esm/generated/payment.d.ts +20 -2
- package/dist/esm/generated/payment.js +8 -0
- package/dist/esm/generated/payment.js.map +1 -1
- package/dist/esm/generated/personal-access-token.d.ts +1 -0
- package/dist/esm/generated/profile-settings.d.ts +2 -2
- package/dist/esm/generated/profile-settings.js.map +1 -1
- package/dist/esm/generated/property-type.d.ts +1 -0
- package/dist/esm/generated/property.d.ts +46 -8
- package/dist/esm/generated/property.js +8 -0
- package/dist/esm/generated/property.js.map +1 -1
- package/dist/esm/generated/region.d.ts +1 -0
- package/dist/esm/generated/rental-agreement.d.ts +1 -0
- package/dist/esm/generated/review.d.ts +1 -0
- package/dist/esm/generated/service-request.d.ts +1 -0
- package/dist/esm/generated/service-type.d.ts +1 -0
- package/dist/esm/generated/service.d.ts +1 -0
- package/dist/esm/generated/subscription.d.ts +1 -1
- package/dist/esm/generated/superhog.d.ts +3 -3
- package/dist/esm/generated/supplier-type.d.ts +1 -0
- package/dist/esm/generated/tag.d.ts +1 -0
- package/dist/esm/generated/tax-class.d.ts +3 -2
- package/dist/esm/generated/tax.d.ts +1 -1
- package/dist/esm/generated/tenant-settings.d.ts +2 -1
- package/dist/esm/generated/tenant.d.ts +2 -1
- package/dist/esm/generated/thread-message.d.ts +54 -4
- package/dist/esm/generated/thread-message.js +24 -0
- package/dist/esm/generated/thread-message.js.map +1 -1
- package/dist/esm/generated/thread.d.ts +5 -3
- package/dist/esm/generated/thread.js.map +1 -1
- package/dist/esm/generated/user.d.ts +1 -0
- package/dist/esm/generated/webhook.d.ts +4 -2
- package/dist/esm/generated/webhook.js.map +1 -1
- package/dist/esm/generated/website-channel.d.ts +1 -17
- package/dist/esm/generated/website-channel.js +0 -16
- package/dist/esm/generated/website-channel.js.map +1 -1
- package/dist/esm/generated/wheelhouse-property.d.ts +54 -0
- package/dist/esm/generated/wheelhouse-property.js +40 -0
- package/dist/esm/generated/wheelhouse-property.js.map +1 -0
- package/dist/esm/generated/wheelhouse.d.ts +50 -0
- package/dist/esm/generated/wheelhouse.js +32 -0
- package/dist/esm/generated/wheelhouse.js.map +1 -0
- package/dist/esm/generated/workflow-schedule.d.ts +5 -4
- package/dist/esm/generated/workflow-schedule.js.map +1 -1
- package/dist/esm/generated/workflow.d.ts +7 -3
- package/dist/esm/generated/workflow.js.map +1 -1
- package/dist/esm/generated/zapier.d.ts +1 -0
- package/dist/esm/index.d.ts +8 -3
- package/dist/esm/multipart.js +1 -7
- package/dist/esm/multipart.js.map +1 -1
- package/package.json +3 -4
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ApiClient } from '../api-client';
|
|
2
|
+
import { RequestOptions } from '../request-options';
|
|
3
|
+
import { Response, PaginatedResponse } from '../response';
|
|
4
|
+
export interface InquiryStage {
|
|
5
|
+
id: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
stage_type?: 'open' | 'closed_lost' | 'closed_won';
|
|
8
|
+
is_default_open: boolean;
|
|
9
|
+
is_default_closed_won: boolean;
|
|
10
|
+
color: string;
|
|
11
|
+
created_at: string;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class InquiryStageClient {
|
|
15
|
+
private readonly apiClient;
|
|
16
|
+
constructor(apiClient: ApiClient);
|
|
17
|
+
private path;
|
|
18
|
+
create(params: InquiryStageCreateParams, options?: RequestOptions): Promise<Response<InquiryStage>>;
|
|
19
|
+
query(params?: InquiryStageQueryParams, options?: RequestOptions): Promise<PaginatedResponse<InquiryStage>>;
|
|
20
|
+
update(params: InquiryStageUpdateParams, options?: RequestOptions): Promise<Response<InquiryStage>>;
|
|
21
|
+
fetch(params: InquiryStageFetchParams, options?: RequestOptions): Promise<Response<InquiryStage>>;
|
|
22
|
+
del(params: InquiryStageDeleteParams, options?: RequestOptions): Promise<Response<InquiryStage>>;
|
|
23
|
+
order(params: InquiryStageOrderParams, options?: RequestOptions): Promise<Response<any>>;
|
|
24
|
+
}
|
|
25
|
+
export interface InquiryStageCreateParams {
|
|
26
|
+
name: string;
|
|
27
|
+
stage_type: 'open' | 'closed_lost' | 'closed_won';
|
|
28
|
+
is_default_open?: boolean;
|
|
29
|
+
is_default_closed_won?: boolean;
|
|
30
|
+
color: string;
|
|
31
|
+
}
|
|
32
|
+
export interface InquiryStageQueryParams {
|
|
33
|
+
sort?: Array<{
|
|
34
|
+
field?: string;
|
|
35
|
+
direction?: 'asc' | 'desc';
|
|
36
|
+
locale?: string | null;
|
|
37
|
+
}>;
|
|
38
|
+
where?: {
|
|
39
|
+
conditions?: any;
|
|
40
|
+
conditions_logic?: string | null;
|
|
41
|
+
aggregate_conditions?: any;
|
|
42
|
+
aggregate_conditions_logic?: string | null;
|
|
43
|
+
};
|
|
44
|
+
picklist?: boolean;
|
|
45
|
+
no_auto_relations?: boolean | null;
|
|
46
|
+
paginate?: {
|
|
47
|
+
page?: number;
|
|
48
|
+
perpage?: number;
|
|
49
|
+
};
|
|
50
|
+
with?: string[];
|
|
51
|
+
with_aggregations?: Array<{
|
|
52
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
53
|
+
as?: string;
|
|
54
|
+
relation?: string;
|
|
55
|
+
field?: string;
|
|
56
|
+
where?: {
|
|
57
|
+
conditions?: any;
|
|
58
|
+
conditions_logic?: string | null;
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
}
|
|
62
|
+
export interface InquiryStageUpdateParams {
|
|
63
|
+
id: number;
|
|
64
|
+
name: string;
|
|
65
|
+
stage_type: 'open' | 'closed_lost' | 'closed_won';
|
|
66
|
+
is_default_open?: boolean;
|
|
67
|
+
is_default_closed_won?: boolean;
|
|
68
|
+
color: string;
|
|
69
|
+
}
|
|
70
|
+
export interface InquiryStageFetchParams {
|
|
71
|
+
id: number;
|
|
72
|
+
no_auto_relations?: boolean | null;
|
|
73
|
+
with?: string[];
|
|
74
|
+
with_aggregations?: Array<{
|
|
75
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
76
|
+
as?: string;
|
|
77
|
+
relation?: string;
|
|
78
|
+
field?: string;
|
|
79
|
+
where?: {
|
|
80
|
+
conditions?: any;
|
|
81
|
+
conditions_logic?: string | null;
|
|
82
|
+
};
|
|
83
|
+
}>;
|
|
84
|
+
}
|
|
85
|
+
export interface InquiryStageDeleteParams {
|
|
86
|
+
id: number;
|
|
87
|
+
}
|
|
88
|
+
export interface InquiryStageOrderParams {
|
|
89
|
+
order: number[];
|
|
90
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InquiryStageClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class InquiryStageClient {
|
|
6
|
+
constructor(apiClient) {
|
|
7
|
+
this.apiClient = apiClient;
|
|
8
|
+
this.path = 'inquiry-stage';
|
|
9
|
+
}
|
|
10
|
+
create(params, options) {
|
|
11
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
return this.apiClient.request(`${this.path}/create`, {
|
|
13
|
+
params,
|
|
14
|
+
options,
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
query(params, options) {
|
|
19
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
return this.apiClient.request(`${this.path}/query`, {
|
|
21
|
+
params,
|
|
22
|
+
options,
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
update(params, options) {
|
|
27
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return this.apiClient.request(`${this.path}/update`, {
|
|
29
|
+
params,
|
|
30
|
+
options,
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
fetch(params, options) {
|
|
35
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return this.apiClient.request(`${this.path}/fetch`, {
|
|
37
|
+
params,
|
|
38
|
+
options,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
del(params, options) {
|
|
43
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return this.apiClient.request(`${this.path}/delete`, {
|
|
45
|
+
params,
|
|
46
|
+
options,
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
order(params, options) {
|
|
51
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
return this.apiClient.request(`${this.path}/order`, {
|
|
53
|
+
params,
|
|
54
|
+
options,
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.InquiryStageClient = InquiryStageClient;
|
|
60
|
+
//# sourceMappingURL=inquiry-stage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inquiry-stage.js","sourceRoot":"","sources":["../../../src/generated/inquiry-stage.ts"],"names":[],"mappings":";;;;AAeA,MAAa,kBAAkB;IAC3B,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,eAAe,CAAC;IAFoB,CAAC;IAI/C,MAAM,CACf,MAAgC,EAChC,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE;gBACjD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,KAAK,CACd,MAAgC,EAChC,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE;gBAChD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,MAAM,CACf,MAAgC,EAChC,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE;gBACjD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,KAAK,CACd,MAA+B,EAC/B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE;gBAChD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,GAAG,CACZ,MAAgC,EAChC,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE;gBACjD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,KAAK,CACd,MAA+B,EAC/B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE;gBAChD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAhED,gDAgEC"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { InquiryStage } from './inquiry-stage';
|
|
2
|
+
import { Country } from './country';
|
|
3
|
+
import { Channel } from './channel';
|
|
4
|
+
import { Property } from './property';
|
|
5
|
+
import { Location } from './location';
|
|
6
|
+
import { Booking } from './booking';
|
|
7
|
+
import { Account } from './account';
|
|
8
|
+
import { InquiryQuote } from './inquiry-quote';
|
|
9
|
+
import { ApiClient } from '../api-client';
|
|
10
|
+
import { RequestOptions } from '../request-options';
|
|
11
|
+
import { Response, PaginatedResponse } from '../response';
|
|
12
|
+
export interface Inquiry {
|
|
13
|
+
id: number;
|
|
14
|
+
inquiry_name?: string | null;
|
|
15
|
+
inquiry_type?: 'guest' | 'homeowner' | 'partner' | 'other';
|
|
16
|
+
inquiry_stage?: InquiryStage;
|
|
17
|
+
previous_inquiry_stage: InquiryStage;
|
|
18
|
+
inquiry_stage_updated_at?: string;
|
|
19
|
+
inquiry_source?: string | null;
|
|
20
|
+
message?: string | null;
|
|
21
|
+
description?: string | null;
|
|
22
|
+
notes?: string | null;
|
|
23
|
+
contact_name?: string;
|
|
24
|
+
contact_email?: string | null;
|
|
25
|
+
contact_company?: string | null;
|
|
26
|
+
contact_phone?: string | null;
|
|
27
|
+
contact_address?: string | null;
|
|
28
|
+
contact_website?: string | null;
|
|
29
|
+
contact_country?: Country;
|
|
30
|
+
provider?: string | null;
|
|
31
|
+
channel_external_id?: string | null;
|
|
32
|
+
channel?: Channel;
|
|
33
|
+
inquire_property?: Property;
|
|
34
|
+
property: Property;
|
|
35
|
+
inquire_location?: Location;
|
|
36
|
+
inquire_check_in?: string | null;
|
|
37
|
+
inquire_check_out?: string | null;
|
|
38
|
+
inquire_adults?: number | null;
|
|
39
|
+
inquire_children?: number | null;
|
|
40
|
+
inquire_babies?: number | null;
|
|
41
|
+
inquire_nights?: number | null;
|
|
42
|
+
inquire_bedrooms?: number | null;
|
|
43
|
+
quote_total?: number | null;
|
|
44
|
+
quote_currency?: string | null;
|
|
45
|
+
quote_budget?: number | null;
|
|
46
|
+
conversion_website_url?: string | null;
|
|
47
|
+
conversion_referrer_url?: string | null;
|
|
48
|
+
point_of_conversion?: string | null;
|
|
49
|
+
converted_booking?: Booking;
|
|
50
|
+
converted_account?: Account;
|
|
51
|
+
converted_property?: Property;
|
|
52
|
+
converted_at?: string;
|
|
53
|
+
allows_pre_approval?: boolean | null;
|
|
54
|
+
is_pre_approved?: boolean;
|
|
55
|
+
pre_approval_external_id?: string | null;
|
|
56
|
+
pre_approved_at?: string | null;
|
|
57
|
+
pre_approved_until?: string | null;
|
|
58
|
+
pre_approval_withdrawn_at?: string | null;
|
|
59
|
+
first_message_sent_at?: string;
|
|
60
|
+
last_message_sent_at?: string;
|
|
61
|
+
first_special_offer_sent_at?: string;
|
|
62
|
+
last_special_offer_sent_at?: string;
|
|
63
|
+
inquiry_quotes?: InquiryQuote[];
|
|
64
|
+
created_at: string;
|
|
65
|
+
updated_at: string;
|
|
66
|
+
custom_fields?: any;
|
|
67
|
+
}
|
|
68
|
+
export declare class InquiryClient {
|
|
69
|
+
private readonly apiClient;
|
|
70
|
+
constructor(apiClient: ApiClient);
|
|
71
|
+
private path;
|
|
72
|
+
create(params: InquiryCreateParams, options?: RequestOptions): Promise<Response<Inquiry>>;
|
|
73
|
+
update(params: InquiryUpdateParams, options?: RequestOptions): Promise<Response<Inquiry>>;
|
|
74
|
+
del(params: InquiryDeleteParams, options?: RequestOptions): Promise<Response<Inquiry>>;
|
|
75
|
+
query(params?: InquiryQueryParams, options?: RequestOptions): Promise<PaginatedResponse<Inquiry>>;
|
|
76
|
+
fetch(params: InquiryFetchParams, options?: RequestOptions): Promise<Response<Inquiry>>;
|
|
77
|
+
convert(params: InquiryConvertParams, options?: RequestOptions): Promise<Response<any>>;
|
|
78
|
+
preApprove(params: InquiryPreApproveParams, options?: RequestOptions): Promise<Response<any>>;
|
|
79
|
+
voidPreApproval(params: InquiryVoidPreApprovalParams, options?: RequestOptions): Promise<Response<any>>;
|
|
80
|
+
getMessagingAccounts(params: InquiryGetMessagingAccountsParams, options?: RequestOptions): Promise<Response<any>>;
|
|
81
|
+
setCustomFields(params: InquirySetCustomFieldsParams, options?: RequestOptions): Promise<Response<any>>;
|
|
82
|
+
}
|
|
83
|
+
export interface InquiryCreateParams {
|
|
84
|
+
inquiry_name?: string | null;
|
|
85
|
+
inquiry_type: 'guest' | 'homeowner' | 'partner' | 'other';
|
|
86
|
+
inquiry_stage?: number | null;
|
|
87
|
+
inquiry_source?: string | null;
|
|
88
|
+
message?: string | null;
|
|
89
|
+
description?: string | null;
|
|
90
|
+
notes?: string | null;
|
|
91
|
+
contact_name: string;
|
|
92
|
+
contact_email?: string | null;
|
|
93
|
+
contact_company?: string | null;
|
|
94
|
+
contact_phone?: string | null;
|
|
95
|
+
contact_address?: string | null;
|
|
96
|
+
contact_website?: string | null;
|
|
97
|
+
contact_country?: number | null;
|
|
98
|
+
channel_external_id?: string | null;
|
|
99
|
+
channel?: number | null;
|
|
100
|
+
inquire_property?: number | null;
|
|
101
|
+
inquire_location?: number | null;
|
|
102
|
+
inquire_check_in?: string | null;
|
|
103
|
+
inquire_check_out?: string | null;
|
|
104
|
+
inquire_adults?: number | null;
|
|
105
|
+
inquire_children?: number | null;
|
|
106
|
+
inquire_babies?: number | null;
|
|
107
|
+
inquire_nights?: number | null;
|
|
108
|
+
inquire_bedrooms?: number | null;
|
|
109
|
+
quote_total?: number | null;
|
|
110
|
+
quote_currency?: string | null;
|
|
111
|
+
quote_budget?: number | null;
|
|
112
|
+
conversion_website_url?: string | null;
|
|
113
|
+
conversion_referrer_url?: string | null;
|
|
114
|
+
point_of_conversion?: string | null;
|
|
115
|
+
allows_pre_approval?: boolean | null;
|
|
116
|
+
}
|
|
117
|
+
export interface InquiryUpdateParams {
|
|
118
|
+
id: number;
|
|
119
|
+
inquiry_name?: string | null;
|
|
120
|
+
inquiry_type?: 'guest' | 'homeowner' | 'partner' | 'other';
|
|
121
|
+
inquiry_stage?: number | null;
|
|
122
|
+
inquiry_source?: string | null;
|
|
123
|
+
message?: string | null;
|
|
124
|
+
description?: string | null;
|
|
125
|
+
notes?: string | null;
|
|
126
|
+
contact_name?: string;
|
|
127
|
+
contact_email?: string | null;
|
|
128
|
+
contact_company?: string | null;
|
|
129
|
+
contact_phone?: string | null;
|
|
130
|
+
contact_address?: string | null;
|
|
131
|
+
contact_website?: string | null;
|
|
132
|
+
contact_country?: number | null;
|
|
133
|
+
channel_external_id?: string | null;
|
|
134
|
+
channel?: number | null;
|
|
135
|
+
inquire_property?: number | null;
|
|
136
|
+
inquire_location?: number | null;
|
|
137
|
+
inquire_check_in?: string | null;
|
|
138
|
+
inquire_check_out?: string | null;
|
|
139
|
+
inquire_adults?: number | null;
|
|
140
|
+
inquire_children?: number | null;
|
|
141
|
+
inquire_babies?: number | null;
|
|
142
|
+
inquire_nights?: number | null;
|
|
143
|
+
inquire_bedrooms?: number | null;
|
|
144
|
+
quote_total?: number | null;
|
|
145
|
+
quote_currency?: string | null;
|
|
146
|
+
quote_budget?: number | null;
|
|
147
|
+
conversion_website_url?: string | null;
|
|
148
|
+
conversion_referrer_url?: string | null;
|
|
149
|
+
point_of_conversion?: string | null;
|
|
150
|
+
allows_pre_approval?: boolean | null;
|
|
151
|
+
}
|
|
152
|
+
export interface InquiryDeleteParams {
|
|
153
|
+
id: number;
|
|
154
|
+
}
|
|
155
|
+
export interface InquiryQueryParams {
|
|
156
|
+
sort?: Array<{
|
|
157
|
+
field?: string;
|
|
158
|
+
direction?: 'asc' | 'desc';
|
|
159
|
+
locale?: string | null;
|
|
160
|
+
}>;
|
|
161
|
+
where?: {
|
|
162
|
+
conditions?: any;
|
|
163
|
+
conditions_logic?: string | null;
|
|
164
|
+
aggregate_conditions?: any;
|
|
165
|
+
aggregate_conditions_logic?: string | null;
|
|
166
|
+
};
|
|
167
|
+
picklist?: boolean;
|
|
168
|
+
no_auto_relations?: boolean | null;
|
|
169
|
+
paginate?: {
|
|
170
|
+
page?: number;
|
|
171
|
+
perpage?: number;
|
|
172
|
+
};
|
|
173
|
+
with?: string[];
|
|
174
|
+
with_aggregations?: Array<{
|
|
175
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
176
|
+
as?: string;
|
|
177
|
+
relation?: string;
|
|
178
|
+
field?: string;
|
|
179
|
+
where?: {
|
|
180
|
+
conditions?: any;
|
|
181
|
+
conditions_logic?: string | null;
|
|
182
|
+
};
|
|
183
|
+
}>;
|
|
184
|
+
}
|
|
185
|
+
export interface InquiryFetchParams {
|
|
186
|
+
id: number;
|
|
187
|
+
no_auto_relations?: boolean | null;
|
|
188
|
+
with?: string[];
|
|
189
|
+
with_aggregations?: Array<{
|
|
190
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
191
|
+
as?: string;
|
|
192
|
+
relation?: string;
|
|
193
|
+
field?: string;
|
|
194
|
+
where?: {
|
|
195
|
+
conditions?: any;
|
|
196
|
+
conditions_logic?: string | null;
|
|
197
|
+
};
|
|
198
|
+
}>;
|
|
199
|
+
}
|
|
200
|
+
export interface InquiryConvertParams {
|
|
201
|
+
id: number;
|
|
202
|
+
converted_booking?: number | null;
|
|
203
|
+
converted_property?: number | null;
|
|
204
|
+
converted_account?: number | null;
|
|
205
|
+
force?: boolean | null;
|
|
206
|
+
}
|
|
207
|
+
export interface InquiryPreApproveParams {
|
|
208
|
+
id: number;
|
|
209
|
+
pre_approval_external_id?: string | null;
|
|
210
|
+
pre_approved_until?: string | null;
|
|
211
|
+
}
|
|
212
|
+
export interface InquiryVoidPreApprovalParams {
|
|
213
|
+
id: number;
|
|
214
|
+
force?: boolean | null;
|
|
215
|
+
}
|
|
216
|
+
export interface InquiryGetMessagingAccountsParams {
|
|
217
|
+
id: number;
|
|
218
|
+
}
|
|
219
|
+
export interface InquirySetCustomFieldsParams {
|
|
220
|
+
id: number;
|
|
221
|
+
custom_fields: any;
|
|
222
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InquiryClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class InquiryClient {
|
|
6
|
+
constructor(apiClient) {
|
|
7
|
+
this.apiClient = apiClient;
|
|
8
|
+
this.path = 'inquiry';
|
|
9
|
+
}
|
|
10
|
+
create(params, options) {
|
|
11
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
return this.apiClient.request(`${this.path}/create`, {
|
|
13
|
+
params,
|
|
14
|
+
options,
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
update(params, options) {
|
|
19
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
return this.apiClient.request(`${this.path}/update`, {
|
|
21
|
+
params,
|
|
22
|
+
options,
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
del(params, options) {
|
|
27
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return this.apiClient.request(`${this.path}/delete`, {
|
|
29
|
+
params,
|
|
30
|
+
options,
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
query(params, options) {
|
|
35
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return this.apiClient.request(`${this.path}/query`, {
|
|
37
|
+
params,
|
|
38
|
+
options,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
fetch(params, options) {
|
|
43
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return this.apiClient.request(`${this.path}/fetch`, {
|
|
45
|
+
params,
|
|
46
|
+
options,
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
convert(params, options) {
|
|
51
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
return this.apiClient.request(`${this.path}/convert`, {
|
|
53
|
+
params,
|
|
54
|
+
options,
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
preApprove(params, options) {
|
|
59
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return this.apiClient.request(`${this.path}/pre-approve`, {
|
|
61
|
+
params,
|
|
62
|
+
options,
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
voidPreApproval(params, options) {
|
|
67
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return this.apiClient.request(`${this.path}/void-pre-approval`, {
|
|
69
|
+
params,
|
|
70
|
+
options,
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
getMessagingAccounts(params, options) {
|
|
75
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
return this.apiClient.request(`${this.path}/get-messaging-accounts`, {
|
|
77
|
+
params,
|
|
78
|
+
options,
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
setCustomFields(params, options) {
|
|
83
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
return this.apiClient.request(`${this.path}/set-custom-fields`, {
|
|
85
|
+
params,
|
|
86
|
+
options,
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.InquiryClient = InquiryClient;
|
|
92
|
+
//# sourceMappingURL=inquiry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inquiry.js","sourceRoot":"","sources":["../../../src/generated/inquiry.ts"],"names":[],"mappings":";;;;AAqEA,MAAa,aAAa;IACtB,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,SAAS,CAAC;IAF0B,CAAC;IAI/C,MAAM,CACf,MAA2B,EAC3B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE;gBACjD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,MAAM,CACf,MAA2B,EAC3B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE;gBACjD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,GAAG,CACZ,MAA2B,EAC3B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE;gBACjD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,KAAK,CACd,MAA2B,EAC3B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE;gBAChD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,KAAK,CACd,MAA0B,EAC1B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE;gBAChD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,OAAO,CAChB,MAA4B,EAC5B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,UAAU,EAAE;gBAClD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,UAAU,CACnB,MAA+B,EAC/B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,cAAc,EAAE;gBACtD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,eAAe,CACxB,MAAoC,EACpC,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,oBAAoB,EAAE;gBAC5D,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,oBAAoB,CAC7B,MAAyC,EACzC,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,yBAAyB,EAAE;gBACjE,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,eAAe,CACxB,MAAoC,EACpC,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,oBAAoB,EAAE;gBAC5D,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAxGD,sCAwGC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Lead } from './lead';
|
|
2
|
+
import { Property } from './property';
|
|
3
|
+
import { DateRange } from './shared';
|
|
4
|
+
import { ApiClient } from '../api-client';
|
|
5
|
+
import { RequestOptions } from '../request-options';
|
|
6
|
+
import { Response } from '../response';
|
|
7
|
+
export interface LeadQuote {
|
|
8
|
+
id: number;
|
|
9
|
+
lead: Lead;
|
|
10
|
+
property: Property;
|
|
11
|
+
daterange: DateRange;
|
|
12
|
+
total_accommodation: number;
|
|
13
|
+
total_discount: number;
|
|
14
|
+
total_fees: number;
|
|
15
|
+
total: number;
|
|
16
|
+
total_before_discount: number;
|
|
17
|
+
currency_iso: string;
|
|
18
|
+
total_discount_percent: number;
|
|
19
|
+
converted: {
|
|
20
|
+
total_accommodation: number;
|
|
21
|
+
total_discount: number;
|
|
22
|
+
total_fees: number;
|
|
23
|
+
total: number;
|
|
24
|
+
total_before_discount: number;
|
|
25
|
+
currency_iso: string;
|
|
26
|
+
};
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class LeadQuoteClient {
|
|
31
|
+
private readonly apiClient;
|
|
32
|
+
constructor(apiClient: ApiClient);
|
|
33
|
+
private path;
|
|
34
|
+
create(params: LeadQuoteCreateParams, options?: RequestOptions): Promise<Response<LeadQuote>>;
|
|
35
|
+
fetch(params: LeadQuoteFetchParams, options?: RequestOptions): Promise<Response<LeadQuote>>;
|
|
36
|
+
del(params: LeadQuoteDeleteParams, options?: RequestOptions): Promise<Response<LeadQuote>>;
|
|
37
|
+
empty(params: LeadQuoteEmptyParams, options?: RequestOptions): Promise<Response<any>>;
|
|
38
|
+
}
|
|
39
|
+
export interface LeadQuoteCreateParams {
|
|
40
|
+
lead: number;
|
|
41
|
+
property: number;
|
|
42
|
+
daterange: DateRange;
|
|
43
|
+
total_accommodation: number;
|
|
44
|
+
total_discount?: number;
|
|
45
|
+
total_fees?: number;
|
|
46
|
+
converted?: {
|
|
47
|
+
total_accommodation: number;
|
|
48
|
+
total_discount: number;
|
|
49
|
+
total_fees: number;
|
|
50
|
+
total: number;
|
|
51
|
+
total_before_discount: number;
|
|
52
|
+
currency_iso: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface LeadQuoteFetchParams {
|
|
56
|
+
id: number;
|
|
57
|
+
no_auto_relations?: boolean | null;
|
|
58
|
+
with?: string[];
|
|
59
|
+
with_aggregations?: Array<{
|
|
60
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
61
|
+
as?: string;
|
|
62
|
+
relation?: string;
|
|
63
|
+
field?: string;
|
|
64
|
+
where?: {
|
|
65
|
+
conditions?: any;
|
|
66
|
+
conditions_logic?: string | null;
|
|
67
|
+
};
|
|
68
|
+
}>;
|
|
69
|
+
}
|
|
70
|
+
export interface LeadQuoteDeleteParams {
|
|
71
|
+
id: number;
|
|
72
|
+
}
|
|
73
|
+
export interface LeadQuoteEmptyParams {
|
|
74
|
+
id: number;
|
|
75
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeadQuoteClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class LeadQuoteClient {
|
|
6
|
+
constructor(apiClient) {
|
|
7
|
+
this.apiClient = apiClient;
|
|
8
|
+
this.path = 'lead-quote';
|
|
9
|
+
}
|
|
10
|
+
create(params, options) {
|
|
11
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
return this.apiClient.request(`${this.path}/create`, {
|
|
13
|
+
params,
|
|
14
|
+
options,
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
fetch(params, options) {
|
|
19
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
return this.apiClient.request(`${this.path}/fetch`, {
|
|
21
|
+
params,
|
|
22
|
+
options,
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
del(params, options) {
|
|
27
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return this.apiClient.request(`${this.path}/delete`, {
|
|
29
|
+
params,
|
|
30
|
+
options,
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
empty(params, options) {
|
|
35
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return this.apiClient.request(`${this.path}/empty`, {
|
|
37
|
+
params,
|
|
38
|
+
options,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.LeadQuoteClient = LeadQuoteClient;
|
|
44
|
+
//# sourceMappingURL=lead-quote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lead-quote.js","sourceRoot":"","sources":["../../../src/generated/lead-quote.ts"],"names":[],"mappings":";;;;AA+BA,MAAa,eAAe;IACxB,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,YAAY,CAAC;IAFuB,CAAC;IAI/C,MAAM,CACf,MAA6B,EAC7B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE;gBACjD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,KAAK,CACd,MAA4B,EAC5B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE;gBAChD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,GAAG,CACZ,MAA6B,EAC7B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE;gBACjD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;IAEY,KAAK,CACd,MAA4B,EAC5B,OAAwB;;YAExB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE;gBAChD,MAAM;gBACN,OAAO;aACV,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AA5CD,0CA4CC"}
|