@onemineral/pms-js-sdk 0.1.47 → 0.1.49
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/axios-api-provider.js +1 -1
- package/dist/cjs/axios-api-provider.js.map +1 -1
- package/dist/cjs/error.js.map +1 -1
- package/dist/cjs/form-data.d.ts +1 -4
- package/dist/cjs/form-data.js +32 -2
- package/dist/cjs/form-data.js.map +1 -1
- package/dist/cjs/generated/account.d.ts +7 -3
- package/dist/cjs/generated/account.js +5 -0
- package/dist/cjs/generated/account.js.map +1 -1
- package/dist/cjs/generated/airbnb-property.d.ts +6 -3
- package/dist/cjs/generated/airbnb.d.ts +1 -1
- package/dist/cjs/generated/booking-guest.d.ts +3 -3
- package/dist/cjs/generated/booking-statement-template.d.ts +38 -0
- package/dist/cjs/generated/booking-statement-template.js +27 -0
- package/dist/cjs/generated/booking-statement-template.js.map +1 -0
- package/dist/cjs/generated/booking-statement.d.ts +62 -0
- package/dist/cjs/generated/booking-statement.js +22 -0
- package/dist/cjs/generated/booking-statement.js.map +1 -0
- package/dist/cjs/generated/booking.d.ts +20 -3
- package/dist/cjs/generated/booking.js +5 -0
- package/dist/cjs/generated/booking.js.map +1 -1
- package/dist/cjs/generated/discount.d.ts +2 -0
- package/dist/cjs/generated/discount.js.map +1 -1
- package/dist/cjs/generated/document-template.d.ts +99 -0
- package/dist/cjs/generated/document-template.js +37 -0
- package/dist/cjs/generated/document-template.js.map +1 -0
- package/dist/cjs/generated/document.d.ts +86 -0
- package/dist/cjs/generated/document.js +32 -0
- package/dist/cjs/generated/document.js.map +1 -0
- package/dist/cjs/generated/fee-type.d.ts +3 -3
- package/dist/cjs/generated/fee-type.js.map +1 -1
- package/dist/cjs/generated/guest-account.d.ts +8 -4
- package/dist/cjs/generated/guest-account.js +5 -0
- package/dist/cjs/generated/guest-account.js.map +1 -1
- package/dist/cjs/generated/inbox-configuration.d.ts +38 -0
- package/dist/cjs/generated/inbox-configuration.js +22 -0
- package/dist/cjs/generated/inbox-configuration.js.map +1 -0
- package/dist/cjs/generated/index.d.ts +18 -6
- package/dist/cjs/generated/index.js +18 -6
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/inquiry.d.ts +2 -0
- package/dist/cjs/generated/inquiry.js.map +1 -1
- package/dist/cjs/generated/knowledgebase.d.ts +90 -0
- package/dist/cjs/generated/knowledgebase.js +37 -0
- package/dist/cjs/generated/knowledgebase.js.map +1 -0
- package/dist/cjs/generated/managed-integration.d.ts +35 -1
- package/dist/cjs/generated/managed-integration.js +25 -0
- package/dist/cjs/generated/managed-integration.js.map +1 -1
- package/dist/cjs/generated/notification-layout.d.ts +4 -0
- package/dist/cjs/generated/notification-layout.js +5 -0
- package/dist/cjs/generated/notification-layout.js.map +1 -1
- package/dist/cjs/generated/notification-template.d.ts +8 -3
- package/dist/cjs/generated/notification-template.js +5 -0
- package/dist/cjs/generated/notification-template.js.map +1 -1
- package/dist/cjs/generated/online-checkin.d.ts +2 -0
- package/dist/cjs/generated/online-checkin.js.map +1 -1
- package/dist/cjs/generated/partner-account.d.ts +9 -4
- package/dist/cjs/generated/partner-account.js +5 -0
- package/dist/cjs/generated/partner-account.js.map +1 -1
- package/dist/cjs/generated/payment.d.ts +2 -0
- package/dist/cjs/generated/payment.js.map +1 -1
- package/dist/cjs/generated/profile-settings.d.ts +2 -2
- package/dist/cjs/generated/profile-settings.js.map +1 -1
- package/dist/cjs/generated/profile.d.ts +0 -2
- package/dist/cjs/generated/profile.js.map +1 -1
- package/dist/cjs/generated/property.d.ts +16 -1
- package/dist/cjs/generated/property.js +10 -0
- package/dist/cjs/generated/property.js.map +1 -1
- package/dist/cjs/generated/settings.d.ts +2 -1
- package/dist/cjs/generated/settings.js.map +1 -1
- package/dist/cjs/generated/superhog.d.ts +3 -3
- package/dist/cjs/generated/superhog.js.map +1 -1
- package/dist/cjs/generated/tenant-settings.d.ts +1 -1
- package/dist/cjs/generated/tenant.d.ts +17 -1
- package/dist/cjs/generated/tenant.js +5 -0
- package/dist/cjs/generated/tenant.js.map +1 -1
- package/dist/cjs/generated/thread-message.d.ts +34 -7
- package/dist/cjs/generated/thread-message.js +15 -0
- package/dist/cjs/generated/thread-message.js.map +1 -1
- package/dist/cjs/generated/thread.d.ts +16 -3
- package/dist/cjs/generated/thread.js +5 -0
- package/dist/cjs/generated/thread.js.map +1 -1
- package/dist/cjs/generated/user.d.ts +0 -3
- package/dist/cjs/generated/user.js.map +1 -1
- package/dist/cjs/generated/webhook.d.ts +5 -5
- package/dist/cjs/generated/webhook.js.map +1 -1
- package/dist/cjs/generated/website-channel.d.ts +3 -0
- package/dist/cjs/generated/website-domain.d.ts +5 -0
- package/dist/cjs/generated/website-domain.js +5 -0
- package/dist/cjs/generated/website-domain.js.map +1 -1
- package/dist/cjs/generated/workflow-schedule.d.ts +5 -5
- 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 +5 -0
- package/dist/cjs/generated/workflow.js.map +1 -1
- package/dist/cjs/index.d.ts +6 -2
- package/dist/cjs/multipart.js.map +1 -1
- package/dist/cjs/utils.js.map +1 -1
- package/dist/esm/axios-api-provider.js +1 -1
- package/dist/esm/axios-api-provider.js.map +1 -1
- package/dist/esm/error.js.map +1 -1
- package/dist/esm/form-data.d.ts +1 -4
- package/dist/esm/form-data.js +9 -2
- package/dist/esm/form-data.js.map +1 -1
- package/dist/esm/generated/account.d.ts +7 -3
- package/dist/esm/generated/account.js +5 -0
- package/dist/esm/generated/account.js.map +1 -1
- package/dist/esm/generated/airbnb-property.d.ts +6 -3
- package/dist/esm/generated/airbnb.d.ts +1 -1
- package/dist/esm/generated/booking-guest.d.ts +3 -3
- package/dist/esm/generated/booking-statement-template.d.ts +38 -0
- package/dist/esm/generated/booking-statement-template.js +23 -0
- package/dist/esm/generated/booking-statement-template.js.map +1 -0
- package/dist/esm/generated/booking-statement.d.ts +62 -0
- package/dist/esm/generated/booking-statement.js +18 -0
- package/dist/esm/generated/booking-statement.js.map +1 -0
- package/dist/esm/generated/booking.d.ts +20 -3
- package/dist/esm/generated/booking.js +5 -0
- package/dist/esm/generated/booking.js.map +1 -1
- package/dist/esm/generated/discount.d.ts +2 -0
- package/dist/esm/generated/discount.js.map +1 -1
- package/dist/esm/generated/document-template.d.ts +99 -0
- package/dist/esm/generated/document-template.js +33 -0
- package/dist/esm/generated/document-template.js.map +1 -0
- package/dist/esm/generated/document.d.ts +86 -0
- package/dist/esm/generated/document.js +28 -0
- package/dist/esm/generated/document.js.map +1 -0
- package/dist/esm/generated/fee-type.d.ts +3 -3
- package/dist/esm/generated/fee-type.js.map +1 -1
- package/dist/esm/generated/guest-account.d.ts +8 -4
- package/dist/esm/generated/guest-account.js +5 -0
- package/dist/esm/generated/guest-account.js.map +1 -1
- package/dist/esm/generated/inbox-configuration.d.ts +38 -0
- package/dist/esm/generated/inbox-configuration.js +18 -0
- package/dist/esm/generated/inbox-configuration.js.map +1 -0
- package/dist/esm/generated/index.d.ts +18 -6
- package/dist/esm/generated/index.js +18 -6
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/inquiry.d.ts +2 -0
- package/dist/esm/generated/inquiry.js.map +1 -1
- package/dist/esm/generated/knowledgebase.d.ts +90 -0
- package/dist/esm/generated/knowledgebase.js +33 -0
- package/dist/esm/generated/knowledgebase.js.map +1 -0
- package/dist/esm/generated/managed-integration.d.ts +35 -1
- package/dist/esm/generated/managed-integration.js +25 -0
- package/dist/esm/generated/managed-integration.js.map +1 -1
- package/dist/esm/generated/notification-layout.d.ts +4 -0
- package/dist/esm/generated/notification-layout.js +5 -0
- package/dist/esm/generated/notification-layout.js.map +1 -1
- package/dist/esm/generated/notification-template.d.ts +8 -3
- package/dist/esm/generated/notification-template.js +5 -0
- package/dist/esm/generated/notification-template.js.map +1 -1
- package/dist/esm/generated/online-checkin.d.ts +2 -0
- package/dist/esm/generated/online-checkin.js.map +1 -1
- package/dist/esm/generated/partner-account.d.ts +9 -4
- package/dist/esm/generated/partner-account.js +5 -0
- package/dist/esm/generated/partner-account.js.map +1 -1
- package/dist/esm/generated/payment.d.ts +2 -0
- package/dist/esm/generated/payment.js.map +1 -1
- package/dist/esm/generated/profile-settings.d.ts +2 -2
- package/dist/esm/generated/profile-settings.js.map +1 -1
- package/dist/esm/generated/profile.d.ts +0 -2
- package/dist/esm/generated/profile.js.map +1 -1
- package/dist/esm/generated/property.d.ts +16 -1
- package/dist/esm/generated/property.js +10 -0
- package/dist/esm/generated/property.js.map +1 -1
- package/dist/esm/generated/settings.d.ts +2 -1
- package/dist/esm/generated/settings.js.map +1 -1
- package/dist/esm/generated/superhog.d.ts +3 -3
- package/dist/esm/generated/superhog.js.map +1 -1
- package/dist/esm/generated/tenant-settings.d.ts +1 -1
- package/dist/esm/generated/tenant.d.ts +17 -1
- package/dist/esm/generated/tenant.js +5 -0
- package/dist/esm/generated/tenant.js.map +1 -1
- package/dist/esm/generated/thread-message.d.ts +34 -7
- package/dist/esm/generated/thread-message.js +15 -0
- package/dist/esm/generated/thread-message.js.map +1 -1
- package/dist/esm/generated/thread.d.ts +16 -3
- package/dist/esm/generated/thread.js +5 -0
- package/dist/esm/generated/thread.js.map +1 -1
- package/dist/esm/generated/user.d.ts +0 -3
- package/dist/esm/generated/user.js.map +1 -1
- package/dist/esm/generated/webhook.d.ts +5 -5
- package/dist/esm/generated/webhook.js.map +1 -1
- package/dist/esm/generated/website-channel.d.ts +3 -0
- package/dist/esm/generated/website-domain.d.ts +5 -0
- package/dist/esm/generated/website-domain.js +5 -0
- package/dist/esm/generated/website-domain.js.map +1 -1
- package/dist/esm/generated/workflow-schedule.d.ts +5 -5
- 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 +5 -0
- package/dist/esm/generated/workflow.js.map +1 -1
- package/dist/esm/index.d.ts +6 -2
- package/dist/esm/multipart.js.map +1 -1
- package/dist/esm/utils.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ApiClient } from '../api-client';
|
|
2
|
+
import { RequestOptions } from '../request-options';
|
|
3
|
+
import { Response, PaginatedResponse } from '../response';
|
|
4
|
+
import { Booking } from './booking';
|
|
5
|
+
import { Payment } from './payment';
|
|
6
|
+
export interface DocumentTemplate {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
resource_type: 'booking';
|
|
10
|
+
template_body: string;
|
|
11
|
+
allow_multiple_documents: boolean;
|
|
12
|
+
has_public_page: boolean;
|
|
13
|
+
next_generated_number: string;
|
|
14
|
+
public_url: string;
|
|
15
|
+
pdf_url: string;
|
|
16
|
+
created_at: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class DocumentTemplateClient {
|
|
20
|
+
private readonly apiClient;
|
|
21
|
+
constructor(apiClient: ApiClient);
|
|
22
|
+
private path;
|
|
23
|
+
create(params: DocumentTemplateCreateParams, options?: RequestOptions): Promise<Response<DocumentTemplate>>;
|
|
24
|
+
update(params: DocumentTemplateUpdateParams, options?: RequestOptions): Promise<Response<DocumentTemplate>>;
|
|
25
|
+
query(params?: DocumentTemplateQueryParams, options?: RequestOptions): Promise<PaginatedResponse<DocumentTemplate>>;
|
|
26
|
+
fetch(params: DocumentTemplateFetchParams, options?: RequestOptions): Promise<Response<DocumentTemplate>>;
|
|
27
|
+
preview(params: DocumentTemplatePreviewParams, options?: RequestOptions): Promise<Response<any>>;
|
|
28
|
+
}
|
|
29
|
+
export interface DocumentTemplateCreateParams {
|
|
30
|
+
name: string;
|
|
31
|
+
resource_type: 'booking';
|
|
32
|
+
template_body: string;
|
|
33
|
+
allow_multiple_documents?: boolean;
|
|
34
|
+
has_public_page?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface DocumentTemplateUpdateParams {
|
|
37
|
+
id: number;
|
|
38
|
+
name: string;
|
|
39
|
+
resource_type?: 'booking';
|
|
40
|
+
template_body: string;
|
|
41
|
+
allow_multiple_documents?: boolean;
|
|
42
|
+
has_public_page?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface DocumentTemplateQueryParams {
|
|
45
|
+
sort?: Array<{
|
|
46
|
+
field?: string;
|
|
47
|
+
direction?: 'asc' | 'desc';
|
|
48
|
+
locale?: string | null;
|
|
49
|
+
}>;
|
|
50
|
+
where?: {
|
|
51
|
+
conditions?: any;
|
|
52
|
+
conditions_logic?: string | null;
|
|
53
|
+
aggregate_conditions?: any;
|
|
54
|
+
aggregate_conditions_logic?: string | null;
|
|
55
|
+
};
|
|
56
|
+
picklist?: boolean;
|
|
57
|
+
no_auto_relations?: boolean | null;
|
|
58
|
+
resource?: {
|
|
59
|
+
type: 'booking' | 'payment';
|
|
60
|
+
record: Booking | Payment;
|
|
61
|
+
};
|
|
62
|
+
paginate?: {
|
|
63
|
+
page?: number;
|
|
64
|
+
perpage?: number;
|
|
65
|
+
};
|
|
66
|
+
with?: string[];
|
|
67
|
+
with_aggregations?: Array<{
|
|
68
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
69
|
+
as?: string;
|
|
70
|
+
relation?: string;
|
|
71
|
+
field?: string;
|
|
72
|
+
where?: {
|
|
73
|
+
conditions?: any;
|
|
74
|
+
conditions_logic?: string | null;
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
}
|
|
78
|
+
export interface DocumentTemplateFetchParams {
|
|
79
|
+
id: number;
|
|
80
|
+
no_auto_relations?: boolean | null;
|
|
81
|
+
with?: string[];
|
|
82
|
+
with_aggregations?: Array<{
|
|
83
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
84
|
+
as?: string;
|
|
85
|
+
relation?: string;
|
|
86
|
+
field?: string;
|
|
87
|
+
where?: {
|
|
88
|
+
conditions?: any;
|
|
89
|
+
conditions_logic?: string | null;
|
|
90
|
+
};
|
|
91
|
+
}>;
|
|
92
|
+
}
|
|
93
|
+
export interface DocumentTemplatePreviewParams {
|
|
94
|
+
resource: {
|
|
95
|
+
type: 'booking';
|
|
96
|
+
record: Booking;
|
|
97
|
+
};
|
|
98
|
+
template_body: string;
|
|
99
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentTemplateClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class DocumentTemplateClient {
|
|
6
|
+
constructor(apiClient) {
|
|
7
|
+
this.apiClient = apiClient;
|
|
8
|
+
this.path = 'document-template';
|
|
9
|
+
}
|
|
10
|
+
create(params, options) {
|
|
11
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
return this.apiClient.request(`${this.path}/create`, { params, options });
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
update(params, options) {
|
|
16
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
return this.apiClient.request(`${this.path}/update`, { params, options });
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
query(params, options) {
|
|
21
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return this.apiClient.request(`${this.path}/query`, { params, options });
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
fetch(params, options) {
|
|
26
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.apiClient.request(`${this.path}/fetch`, { params, options });
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
preview(params, options) {
|
|
31
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return this.apiClient.request(`${this.path}/preview`, { params, options });
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DocumentTemplateClient = DocumentTemplateClient;
|
|
37
|
+
//# sourceMappingURL=document-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-template.js","sourceRoot":"","sources":["../../../src/generated/document-template.ts"],"names":[],"mappings":";;;;AAoBA,MAAa,sBAAsB;IAC/B,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,mBAAmB,CAAC;IAFgB,CAAC;IAI/C,MAAM,CAAC,MAAoC,EAAE,OAAwB;;YAC9E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,MAAM,CAAC,MAAoC,EAAE,OAAwB;;YAC9E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,KAAK,CAAC,MAAoC,EAAE,OAAwB;;YAC7E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,KAAK,CAAC,MAAmC,EAAE,OAAwB;;YAC5E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,OAAO,CAAC,MAAqC,EAAE,OAAwB;;YAChF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC/E,CAAC;KAAA;CACJ;AAxBD,wDAwBC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { DocumentTemplate } from './document-template';
|
|
2
|
+
import { Booking } from './booking';
|
|
3
|
+
import { ApiClient } from '../api-client';
|
|
4
|
+
import { RequestOptions } from '../request-options';
|
|
5
|
+
import { PaginatedResponse, Response } from '../response';
|
|
6
|
+
export interface Document {
|
|
7
|
+
id: number;
|
|
8
|
+
document_template: DocumentTemplate;
|
|
9
|
+
resource: {
|
|
10
|
+
type: 'booking';
|
|
11
|
+
record: Booking;
|
|
12
|
+
};
|
|
13
|
+
document_number: number;
|
|
14
|
+
args_input: any;
|
|
15
|
+
document_body: string;
|
|
16
|
+
public_url: string;
|
|
17
|
+
pdf_url: string;
|
|
18
|
+
created_at: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class DocumentClient {
|
|
22
|
+
private readonly apiClient;
|
|
23
|
+
constructor(apiClient: ApiClient);
|
|
24
|
+
private path;
|
|
25
|
+
query(params?: DocumentQueryParams, options?: RequestOptions): Promise<PaginatedResponse<Document>>;
|
|
26
|
+
create(params: DocumentCreateParams, options?: RequestOptions): Promise<Response<Document>>;
|
|
27
|
+
del(params: DocumentDeleteParams, options?: RequestOptions): Promise<Response<Document>>;
|
|
28
|
+
fetch(params: DocumentFetchParams, options?: RequestOptions): Promise<Response<Document>>;
|
|
29
|
+
}
|
|
30
|
+
export interface DocumentQueryParams {
|
|
31
|
+
sort?: Array<{
|
|
32
|
+
field?: string;
|
|
33
|
+
direction?: 'asc' | 'desc';
|
|
34
|
+
locale?: string | null;
|
|
35
|
+
}>;
|
|
36
|
+
where?: {
|
|
37
|
+
conditions?: any;
|
|
38
|
+
conditions_logic?: string | null;
|
|
39
|
+
aggregate_conditions?: any;
|
|
40
|
+
aggregate_conditions_logic?: string | null;
|
|
41
|
+
};
|
|
42
|
+
picklist?: boolean;
|
|
43
|
+
no_auto_relations?: boolean | null;
|
|
44
|
+
paginate?: {
|
|
45
|
+
page?: number;
|
|
46
|
+
perpage?: number;
|
|
47
|
+
};
|
|
48
|
+
with?: string[];
|
|
49
|
+
with_aggregations?: Array<{
|
|
50
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
51
|
+
as?: string;
|
|
52
|
+
relation?: string;
|
|
53
|
+
field?: string;
|
|
54
|
+
where?: {
|
|
55
|
+
conditions?: any;
|
|
56
|
+
conditions_logic?: string | null;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
}
|
|
60
|
+
export interface DocumentCreateParams {
|
|
61
|
+
resource: {
|
|
62
|
+
type: 'booking';
|
|
63
|
+
record: Booking;
|
|
64
|
+
};
|
|
65
|
+
document_template: number;
|
|
66
|
+
inputs?: any;
|
|
67
|
+
recreate_existing?: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface DocumentDeleteParams {
|
|
70
|
+
id: number;
|
|
71
|
+
}
|
|
72
|
+
export interface DocumentFetchParams {
|
|
73
|
+
id: number;
|
|
74
|
+
no_auto_relations?: boolean | null;
|
|
75
|
+
with?: string[];
|
|
76
|
+
with_aggregations?: Array<{
|
|
77
|
+
type?: 'count' | 'avg' | 'sum' | 'min' | 'max';
|
|
78
|
+
as?: string;
|
|
79
|
+
relation?: string;
|
|
80
|
+
field?: string;
|
|
81
|
+
where?: {
|
|
82
|
+
conditions?: any;
|
|
83
|
+
conditions_logic?: string | null;
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class DocumentClient {
|
|
6
|
+
constructor(apiClient) {
|
|
7
|
+
this.apiClient = apiClient;
|
|
8
|
+
this.path = 'document';
|
|
9
|
+
}
|
|
10
|
+
query(params, options) {
|
|
11
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
return this.apiClient.request(`${this.path}/query`, { params, options });
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
create(params, options) {
|
|
16
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
return this.apiClient.request(`${this.path}/create`, { params, options });
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
del(params, options) {
|
|
21
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return this.apiClient.request(`${this.path}/delete`, { params, options });
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
fetch(params, options) {
|
|
26
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.apiClient.request(`${this.path}/fetch`, { params, options });
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DocumentClient = DocumentClient;
|
|
32
|
+
//# sourceMappingURL=document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/generated/document.ts"],"names":[],"mappings":";;;;AAsBA,MAAa,cAAc;IACvB,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,UAAU,CAAC;IAFyB,CAAC;IAI/C,KAAK,CAAC,MAA4B,EAAE,OAAwB;;YACrE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,MAAM,CAAC,MAA4B,EAAE,OAAwB;;YACtE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,GAAG,CAAC,MAA4B,EAAE,OAAwB;;YACnE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,KAAK,CAAC,MAA2B,EAAE,OAAwB;;YACpE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;CACJ;AApBD,wCAoBC"}
|
|
@@ -8,7 +8,7 @@ export interface FeeType {
|
|
|
8
8
|
name: TranslatedText;
|
|
9
9
|
category: 'Cleaning fee' | 'Pet fee' | 'Linen fee' | 'Flat fee' | 'Percentage fee';
|
|
10
10
|
value_type: 'flat' | 'percent';
|
|
11
|
-
providers?: Array<'direct' | 'makemytrip' | 'airbnb' | 'homeaway' | 'api-partner' | 'booking-com' | 'rentals-united' | 'holidu' | 'managed-sensei' | 'dtravel'>;
|
|
11
|
+
providers?: Array<'direct' | 'makemytrip' | 'cloud-website' | 'airbnb' | 'homeaway' | 'api-partner' | 'booking-com' | 'rentals-united' | 'holidu' | 'managed-sensei' | 'dtravel'>;
|
|
12
12
|
tax_class?: TaxClass;
|
|
13
13
|
include_in_rent_subtotal: boolean;
|
|
14
14
|
read_only: boolean;
|
|
@@ -29,7 +29,7 @@ export declare class FeeTypeClient {
|
|
|
29
29
|
}
|
|
30
30
|
export interface FeeTypeCreateParams {
|
|
31
31
|
name?: TranslatedText;
|
|
32
|
-
providers?: Array<'direct' | 'makemytrip' | 'airbnb' | 'homeaway' | 'api-partner' | 'booking-com' | 'rentals-united' | 'holidu' | 'managed-sensei' | 'dtravel'>;
|
|
32
|
+
providers?: Array<'direct' | 'makemytrip' | 'cloud-website' | 'airbnb' | 'homeaway' | 'api-partner' | 'booking-com' | 'rentals-united' | 'holidu' | 'managed-sensei' | 'dtravel'>;
|
|
33
33
|
tax_class?: number | null;
|
|
34
34
|
include_in_rent_subtotal?: boolean;
|
|
35
35
|
apply_to_homeowner_bookings?: boolean;
|
|
@@ -38,7 +38,7 @@ export interface FeeTypeCreateParams {
|
|
|
38
38
|
export interface FeeTypeUpdateParams {
|
|
39
39
|
id: number;
|
|
40
40
|
name?: TranslatedText;
|
|
41
|
-
providers?: Array<'direct' | 'makemytrip' | 'airbnb' | 'homeaway' | 'api-partner' | 'booking-com' | 'rentals-united' | 'holidu' | 'managed-sensei' | 'dtravel'>;
|
|
41
|
+
providers?: Array<'direct' | 'makemytrip' | 'cloud-website' | 'airbnb' | 'homeaway' | 'api-partner' | 'booking-com' | 'rentals-united' | 'holidu' | 'managed-sensei' | 'dtravel'>;
|
|
42
42
|
tax_class?: number | null;
|
|
43
43
|
include_in_rent_subtotal?: boolean;
|
|
44
44
|
apply_to_homeowner_bookings?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fee-type.js","sourceRoot":"","sources":["../../../src/generated/fee-type.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"fee-type.js","sourceRoot":"","sources":["../../../src/generated/fee-type.ts"],"names":[],"mappings":";;;;AAgCA,MAAa,aAAa;IACtB,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,UAAU,CAAC;IAFyB,CAAC;IAI/C,MAAM,CAAC,MAA2B,EAAE,OAAwB;;YACrE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,MAAM,CAAC,MAA2B,EAAE,OAAwB;;YACrE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,KAAK,CAAC,MAA2B,EAAE,OAAwB;;YACpE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,KAAK,CAAC,MAA0B,EAAE,OAAwB;;YACnE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,GAAG,CAAC,MAA2B,EAAE,OAAwB;;YAClE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,OAAO,CAAC,MAA6B,EAAE,OAAwB;;YACxE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC/E,CAAC;KAAA;CACJ;AA5BD,sCA4BC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Country } from './country';
|
|
2
2
|
import { ApiClient } from '../api-client';
|
|
3
3
|
import { RequestOptions } from '../request-options';
|
|
4
|
-
import {
|
|
4
|
+
import { Response, PaginatedResponse } from '../response';
|
|
5
5
|
export interface GuestAccount {
|
|
6
6
|
id: number;
|
|
7
7
|
first_name?: string | null;
|
|
@@ -27,7 +27,7 @@ export interface GuestAccount {
|
|
|
27
27
|
notes?: string | null;
|
|
28
28
|
external_id?: string | null;
|
|
29
29
|
source?: string | null;
|
|
30
|
-
id_type?: 'national_id' | 'passport' | 'drivers_license';
|
|
30
|
+
id_type?: 'national_id' | 'passport' | 'drivers_license' | 'residency_permit';
|
|
31
31
|
id_number?: string | null;
|
|
32
32
|
id_issue_date?: string | null;
|
|
33
33
|
created_at: string;
|
|
@@ -37,6 +37,7 @@ export declare class GuestAccountClient {
|
|
|
37
37
|
private readonly apiClient;
|
|
38
38
|
constructor(apiClient: ApiClient);
|
|
39
39
|
private path;
|
|
40
|
+
del(params: GuestAccountDeleteParams, options?: RequestOptions): Promise<Response<GuestAccount>>;
|
|
40
41
|
query(params?: GuestAccountQueryParams, options?: RequestOptions): Promise<PaginatedResponse<GuestAccount>>;
|
|
41
42
|
fetch(params: GuestAccountFetchParams, options?: RequestOptions): Promise<Response<GuestAccount>>;
|
|
42
43
|
history(params?: GuestAccountHistoryParams, options?: RequestOptions): Promise<PaginatedResponse<any>>;
|
|
@@ -45,6 +46,9 @@ export declare class GuestAccountClient {
|
|
|
45
46
|
getRolesAndScopes(options?: RequestOptions): Promise<Response<any>>;
|
|
46
47
|
create(params?: GuestAccountCreateParams, options?: RequestOptions): Promise<Response<GuestAccount>>;
|
|
47
48
|
}
|
|
49
|
+
export interface GuestAccountDeleteParams {
|
|
50
|
+
id: number;
|
|
51
|
+
}
|
|
48
52
|
export interface GuestAccountQueryParams {
|
|
49
53
|
sort?: Array<{
|
|
50
54
|
field?: string;
|
|
@@ -135,7 +139,7 @@ export interface GuestAccountUpdateParams {
|
|
|
135
139
|
notes?: string | null;
|
|
136
140
|
external_id?: string | null;
|
|
137
141
|
source?: string | null;
|
|
138
|
-
id_type?: 'national_id' | 'passport' | 'drivers_license';
|
|
142
|
+
id_type?: 'national_id' | 'passport' | 'drivers_license' | 'residency_permit';
|
|
139
143
|
id_number?: string | null;
|
|
140
144
|
id_issue_date?: string | null;
|
|
141
145
|
}
|
|
@@ -160,7 +164,7 @@ export interface GuestAccountCreateParams {
|
|
|
160
164
|
notes?: string | null;
|
|
161
165
|
external_id?: string | null;
|
|
162
166
|
source?: string | null;
|
|
163
|
-
id_type?: 'national_id' | 'passport' | 'drivers_license';
|
|
167
|
+
id_type?: 'national_id' | 'passport' | 'drivers_license' | 'residency_permit';
|
|
164
168
|
id_number?: string | null;
|
|
165
169
|
id_issue_date?: string | null;
|
|
166
170
|
}
|
|
@@ -7,6 +7,11 @@ class GuestAccountClient {
|
|
|
7
7
|
this.apiClient = apiClient;
|
|
8
8
|
this.path = 'guest-account';
|
|
9
9
|
}
|
|
10
|
+
del(params, options) {
|
|
11
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
return this.apiClient.request(`${this.path}/delete`, { params, options });
|
|
13
|
+
});
|
|
14
|
+
}
|
|
10
15
|
query(params, options) {
|
|
11
16
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
17
|
return this.apiClient.request(`${this.path}/query`, { params, options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guest-account.js","sourceRoot":"","sources":["../../../src/generated/guest-account.ts"],"names":[],"mappings":";;;;AAqCA,MAAa,kBAAkB;IAC3B,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,eAAe,CAAC;IAFoB,CAAC;IAI/C,KAAK,CAAC,MAAgC,EAAE,OAAwB;;YACzE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,KAAK,CAAC,MAA+B,EAAE,OAAwB;;YACxE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,OAAO,CAAC,MAAkC,EAAE,OAAwB;;YAC7E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC/E,CAAC;KAAA;IAEY,YAAY,CAAC,MAAuC,EAAE,OAAwB;;YACvF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,eAAe,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QACpF,CAAC;KAAA;IAEY,MAAM,CAAC,MAAgC,EAAE,OAAwB;;YAC1E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,iBAAiB,CAAC,OAAwB;;YACnD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,uBAAuB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QACpF,CAAC;KAAA;IAEY,MAAM,CAAC,MAAiC,EAAE,OAAwB;;YAC3E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;CACJ;
|
|
1
|
+
{"version":3,"file":"guest-account.js","sourceRoot":"","sources":["../../../src/generated/guest-account.ts"],"names":[],"mappings":";;;;AAqCA,MAAa,kBAAkB;IAC3B,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,eAAe,CAAC;IAFoB,CAAC;IAI/C,GAAG,CAAC,MAAgC,EAAE,OAAwB;;YACvE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,KAAK,CAAC,MAAgC,EAAE,OAAwB;;YACzE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,KAAK,CAAC,MAA+B,EAAE,OAAwB;;YACxE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEY,OAAO,CAAC,MAAkC,EAAE,OAAwB;;YAC7E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC/E,CAAC;KAAA;IAEY,YAAY,CAAC,MAAuC,EAAE,OAAwB;;YACvF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,eAAe,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QACpF,CAAC;KAAA;IAEY,MAAM,CAAC,MAAgC,EAAE,OAAwB;;YAC1E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;IAEY,iBAAiB,CAAC,OAAwB;;YACnD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,uBAAuB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QACpF,CAAC;KAAA;IAEY,MAAM,CAAC,MAAiC,EAAE,OAAwB;;YAC3E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;CACJ;AApCD,gDAoCC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ApiClient } from '../api-client';
|
|
2
|
+
import { RequestOptions } from '../request-options';
|
|
3
|
+
import { Response } from '../response';
|
|
4
|
+
export interface InboxConfiguration {
|
|
5
|
+
id: number;
|
|
6
|
+
message_notification_mode: 'all' | 'summary';
|
|
7
|
+
is_ai_enabled: boolean;
|
|
8
|
+
ai_agent_name: string;
|
|
9
|
+
ai_mode: 'draft' | 'live';
|
|
10
|
+
ai_customize_tone: string;
|
|
11
|
+
ai_deferred_topics: string[];
|
|
12
|
+
ai_should_close_conversations: boolean;
|
|
13
|
+
emergency_contact_info: string;
|
|
14
|
+
ai_signature: string;
|
|
15
|
+
ai_allow_images_processing: boolean;
|
|
16
|
+
in_stay_booking_statuses: Array<'confirmed' | 'pending_payment'>;
|
|
17
|
+
}
|
|
18
|
+
export declare class InboxConfigurationClient {
|
|
19
|
+
private readonly apiClient;
|
|
20
|
+
constructor(apiClient: ApiClient);
|
|
21
|
+
private path;
|
|
22
|
+
fetch(options?: RequestOptions): Promise<Response<InboxConfiguration>>;
|
|
23
|
+
update(params: InboxConfigurationUpdateParams, options?: RequestOptions): Promise<Response<InboxConfiguration>>;
|
|
24
|
+
}
|
|
25
|
+
export interface InboxConfigurationUpdateParams {
|
|
26
|
+
id: number;
|
|
27
|
+
message_notification_mode?: 'all' | 'summary';
|
|
28
|
+
is_ai_enabled?: boolean;
|
|
29
|
+
ai_agent_name?: string;
|
|
30
|
+
ai_mode?: 'draft' | 'live';
|
|
31
|
+
ai_customize_tone?: string;
|
|
32
|
+
ai_deferred_topics?: string[];
|
|
33
|
+
ai_should_close_conversations?: boolean;
|
|
34
|
+
emergency_contact_info?: string;
|
|
35
|
+
ai_signature?: string;
|
|
36
|
+
ai_allow_images_processing?: boolean;
|
|
37
|
+
in_stay_booking_statuses?: Array<'confirmed' | 'pending_payment'>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InboxConfigurationClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class InboxConfigurationClient {
|
|
6
|
+
constructor(apiClient) {
|
|
7
|
+
this.apiClient = apiClient;
|
|
8
|
+
this.path = 'inbox-configuration';
|
|
9
|
+
}
|
|
10
|
+
fetch(options) {
|
|
11
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
+
return this.apiClient.request(`${this.path}/fetch`, { options });
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
update(params, options) {
|
|
16
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
return this.apiClient.request(`${this.path}/update`, { params, options });
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.InboxConfigurationClient = InboxConfigurationClient;
|
|
22
|
+
//# sourceMappingURL=inbox-configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox-configuration.js","sourceRoot":"","sources":["../../../src/generated/inbox-configuration.ts"],"names":[],"mappings":";;;;AAmBA,MAAa,wBAAwB;IACjC,YAAoC,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAEhD,SAAI,GAAW,qBAAqB,CAAC;IAFc,CAAC;IAI/C,KAAK,CAAC,OAAwB;;YACvC,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QACrE,CAAC;KAAA;IAEY,MAAM,CAAC,MAAsC,EAAE,OAAwB;;YAChF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;CACJ;AAZD,4DAYC"}
|
|
@@ -25,6 +25,8 @@ import { SeoClient } from './seo';
|
|
|
25
25
|
import { TagClient } from './tag';
|
|
26
26
|
import { CollectionClient } from './collection';
|
|
27
27
|
import { DiscountClient } from './discount';
|
|
28
|
+
import { DocumentTemplateClient } from './document-template';
|
|
29
|
+
import { DocumentClient } from './document';
|
|
28
30
|
import { PaymentScheduleClient } from './payment-schedule';
|
|
29
31
|
import { PaymentScheduleStepClient } from './payment-schedule-step';
|
|
30
32
|
import { PaymentGatewayClient } from './payment-gateway';
|
|
@@ -47,6 +49,8 @@ import { IdentityClient } from './identity';
|
|
|
47
49
|
import { BookingClient } from './booking';
|
|
48
50
|
import { BookingProductClient } from './booking-product';
|
|
49
51
|
import { BookingGuestClient } from './booking-guest';
|
|
52
|
+
import { BookingStatementClient } from './booking-statement';
|
|
53
|
+
import { BookingStatementTemplateClient } from './booking-statement-template';
|
|
50
54
|
import { InquiryClient } from './inquiry';
|
|
51
55
|
import { InquiryStageClient } from './inquiry-stage';
|
|
52
56
|
import { InquiryQuoteClient } from './inquiry-quote';
|
|
@@ -97,9 +101,9 @@ import { NotificationTemplateClient } from './notification-template';
|
|
|
97
101
|
import { EmailConfigurationClient } from './email-configuration';
|
|
98
102
|
import { ThreadClient } from './thread';
|
|
99
103
|
import { ThreadMessageClient } from './thread-message';
|
|
100
|
-
import { ThreadMessageProposalClient } from './thread-message-proposal';
|
|
101
104
|
import { MessageProviderClient } from './message-provider';
|
|
102
|
-
import {
|
|
105
|
+
import { InboxConfigurationClient } from './inbox-configuration';
|
|
106
|
+
import { KnowledgebaseClient } from './knowledgebase';
|
|
103
107
|
import { TranslationClient } from './translation';
|
|
104
108
|
import { WorkflowClient } from './workflow';
|
|
105
109
|
import { WorkflowScheduleClient } from './workflow-schedule';
|
|
@@ -154,6 +158,8 @@ export * from './tag';
|
|
|
154
158
|
export * from './collection';
|
|
155
159
|
export * from './discount';
|
|
156
160
|
export * from './applicable-discount';
|
|
161
|
+
export * from './document-template';
|
|
162
|
+
export * from './document';
|
|
157
163
|
export * from './payment-schedule';
|
|
158
164
|
export * from './payment-schedule-step';
|
|
159
165
|
export * from './payment-gateway';
|
|
@@ -191,6 +197,8 @@ export * from './booking-ta-commission';
|
|
|
191
197
|
export * from './booking-host-revenue-share';
|
|
192
198
|
export * from './import-bulk-booking';
|
|
193
199
|
export * from './booking-guest';
|
|
200
|
+
export * from './booking-statement';
|
|
201
|
+
export * from './booking-statement-template';
|
|
194
202
|
export * from './inquiry';
|
|
195
203
|
export * from './inquiry-stage';
|
|
196
204
|
export * from './inquiry-quote';
|
|
@@ -246,10 +254,10 @@ export * from './notification-template';
|
|
|
246
254
|
export * from './email-configuration';
|
|
247
255
|
export * from './thread';
|
|
248
256
|
export * from './thread-message';
|
|
249
|
-
export * from './thread-message-proposal';
|
|
250
257
|
export * from './message-provider';
|
|
251
258
|
export * from './messaging-account';
|
|
252
|
-
export * from './
|
|
259
|
+
export * from './inbox-configuration';
|
|
260
|
+
export * from './knowledgebase';
|
|
253
261
|
export * from './translation';
|
|
254
262
|
export * from './workflow';
|
|
255
263
|
export * from './workflow-schedule';
|
|
@@ -286,6 +294,8 @@ export declare function init(apiClient: ApiClient): {
|
|
|
286
294
|
tag: TagClient;
|
|
287
295
|
collection: CollectionClient;
|
|
288
296
|
discount: DiscountClient;
|
|
297
|
+
documentTemplate: DocumentTemplateClient;
|
|
298
|
+
document: DocumentClient;
|
|
289
299
|
paymentSchedule: PaymentScheduleClient;
|
|
290
300
|
paymentScheduleStep: PaymentScheduleStepClient;
|
|
291
301
|
paymentGateway: PaymentGatewayClient;
|
|
@@ -308,6 +318,8 @@ export declare function init(apiClient: ApiClient): {
|
|
|
308
318
|
booking: BookingClient;
|
|
309
319
|
bookingProduct: BookingProductClient;
|
|
310
320
|
bookingGuest: BookingGuestClient;
|
|
321
|
+
bookingStatement: BookingStatementClient;
|
|
322
|
+
bookingStatementTemplate: BookingStatementTemplateClient;
|
|
311
323
|
inquiry: InquiryClient;
|
|
312
324
|
inquiryStage: InquiryStageClient;
|
|
313
325
|
inquiryQuote: InquiryQuoteClient;
|
|
@@ -358,9 +370,9 @@ export declare function init(apiClient: ApiClient): {
|
|
|
358
370
|
emailConfiguration: EmailConfigurationClient;
|
|
359
371
|
thread: ThreadClient;
|
|
360
372
|
threadMessage: ThreadMessageClient;
|
|
361
|
-
threadMessageProposal: ThreadMessageProposalClient;
|
|
362
373
|
messageProvider: MessageProviderClient;
|
|
363
|
-
|
|
374
|
+
inboxConfiguration: InboxConfigurationClient;
|
|
375
|
+
knowledgebase: KnowledgebaseClient;
|
|
364
376
|
translation: TranslationClient;
|
|
365
377
|
workflow: WorkflowClient;
|
|
366
378
|
workflowSchedule: WorkflowScheduleClient;
|
|
@@ -29,6 +29,8 @@ const seo_1 = require("./seo");
|
|
|
29
29
|
const tag_1 = require("./tag");
|
|
30
30
|
const collection_1 = require("./collection");
|
|
31
31
|
const discount_1 = require("./discount");
|
|
32
|
+
const document_template_1 = require("./document-template");
|
|
33
|
+
const document_1 = require("./document");
|
|
32
34
|
const payment_schedule_1 = require("./payment-schedule");
|
|
33
35
|
const payment_schedule_step_1 = require("./payment-schedule-step");
|
|
34
36
|
const payment_gateway_1 = require("./payment-gateway");
|
|
@@ -51,6 +53,8 @@ const identity_1 = require("./identity");
|
|
|
51
53
|
const booking_1 = require("./booking");
|
|
52
54
|
const booking_product_1 = require("./booking-product");
|
|
53
55
|
const booking_guest_1 = require("./booking-guest");
|
|
56
|
+
const booking_statement_1 = require("./booking-statement");
|
|
57
|
+
const booking_statement_template_1 = require("./booking-statement-template");
|
|
54
58
|
const inquiry_1 = require("./inquiry");
|
|
55
59
|
const inquiry_stage_1 = require("./inquiry-stage");
|
|
56
60
|
const inquiry_quote_1 = require("./inquiry-quote");
|
|
@@ -101,9 +105,9 @@ const notification_template_1 = require("./notification-template");
|
|
|
101
105
|
const email_configuration_1 = require("./email-configuration");
|
|
102
106
|
const thread_1 = require("./thread");
|
|
103
107
|
const thread_message_1 = require("./thread-message");
|
|
104
|
-
const thread_message_proposal_1 = require("./thread-message-proposal");
|
|
105
108
|
const message_provider_1 = require("./message-provider");
|
|
106
|
-
const
|
|
109
|
+
const inbox_configuration_1 = require("./inbox-configuration");
|
|
110
|
+
const knowledgebase_1 = require("./knowledgebase");
|
|
107
111
|
const translation_1 = require("./translation");
|
|
108
112
|
const workflow_1 = require("./workflow");
|
|
109
113
|
const workflow_schedule_1 = require("./workflow-schedule");
|
|
@@ -157,6 +161,8 @@ tslib_1.__exportStar(require("./tag"), exports);
|
|
|
157
161
|
tslib_1.__exportStar(require("./collection"), exports);
|
|
158
162
|
tslib_1.__exportStar(require("./discount"), exports);
|
|
159
163
|
tslib_1.__exportStar(require("./applicable-discount"), exports);
|
|
164
|
+
tslib_1.__exportStar(require("./document-template"), exports);
|
|
165
|
+
tslib_1.__exportStar(require("./document"), exports);
|
|
160
166
|
tslib_1.__exportStar(require("./payment-schedule"), exports);
|
|
161
167
|
tslib_1.__exportStar(require("./payment-schedule-step"), exports);
|
|
162
168
|
tslib_1.__exportStar(require("./payment-gateway"), exports);
|
|
@@ -194,6 +200,8 @@ tslib_1.__exportStar(require("./booking-ta-commission"), exports);
|
|
|
194
200
|
tslib_1.__exportStar(require("./booking-host-revenue-share"), exports);
|
|
195
201
|
tslib_1.__exportStar(require("./import-bulk-booking"), exports);
|
|
196
202
|
tslib_1.__exportStar(require("./booking-guest"), exports);
|
|
203
|
+
tslib_1.__exportStar(require("./booking-statement"), exports);
|
|
204
|
+
tslib_1.__exportStar(require("./booking-statement-template"), exports);
|
|
197
205
|
tslib_1.__exportStar(require("./inquiry"), exports);
|
|
198
206
|
tslib_1.__exportStar(require("./inquiry-stage"), exports);
|
|
199
207
|
tslib_1.__exportStar(require("./inquiry-quote"), exports);
|
|
@@ -249,10 +257,10 @@ tslib_1.__exportStar(require("./notification-template"), exports);
|
|
|
249
257
|
tslib_1.__exportStar(require("./email-configuration"), exports);
|
|
250
258
|
tslib_1.__exportStar(require("./thread"), exports);
|
|
251
259
|
tslib_1.__exportStar(require("./thread-message"), exports);
|
|
252
|
-
tslib_1.__exportStar(require("./thread-message-proposal"), exports);
|
|
253
260
|
tslib_1.__exportStar(require("./message-provider"), exports);
|
|
254
261
|
tslib_1.__exportStar(require("./messaging-account"), exports);
|
|
255
|
-
tslib_1.__exportStar(require("./
|
|
262
|
+
tslib_1.__exportStar(require("./inbox-configuration"), exports);
|
|
263
|
+
tslib_1.__exportStar(require("./knowledgebase"), exports);
|
|
256
264
|
tslib_1.__exportStar(require("./translation"), exports);
|
|
257
265
|
tslib_1.__exportStar(require("./workflow"), exports);
|
|
258
266
|
tslib_1.__exportStar(require("./workflow-schedule"), exports);
|
|
@@ -290,6 +298,8 @@ function init(apiClient) {
|
|
|
290
298
|
tag: new tag_1.TagClient(apiClient),
|
|
291
299
|
collection: new collection_1.CollectionClient(apiClient),
|
|
292
300
|
discount: new discount_1.DiscountClient(apiClient),
|
|
301
|
+
documentTemplate: new document_template_1.DocumentTemplateClient(apiClient),
|
|
302
|
+
document: new document_1.DocumentClient(apiClient),
|
|
293
303
|
paymentSchedule: new payment_schedule_1.PaymentScheduleClient(apiClient),
|
|
294
304
|
paymentScheduleStep: new payment_schedule_step_1.PaymentScheduleStepClient(apiClient),
|
|
295
305
|
paymentGateway: new payment_gateway_1.PaymentGatewayClient(apiClient),
|
|
@@ -312,6 +322,8 @@ function init(apiClient) {
|
|
|
312
322
|
booking: new booking_1.BookingClient(apiClient),
|
|
313
323
|
bookingProduct: new booking_product_1.BookingProductClient(apiClient),
|
|
314
324
|
bookingGuest: new booking_guest_1.BookingGuestClient(apiClient),
|
|
325
|
+
bookingStatement: new booking_statement_1.BookingStatementClient(apiClient),
|
|
326
|
+
bookingStatementTemplate: new booking_statement_template_1.BookingStatementTemplateClient(apiClient),
|
|
315
327
|
inquiry: new inquiry_1.InquiryClient(apiClient),
|
|
316
328
|
inquiryStage: new inquiry_stage_1.InquiryStageClient(apiClient),
|
|
317
329
|
inquiryQuote: new inquiry_quote_1.InquiryQuoteClient(apiClient),
|
|
@@ -362,9 +374,9 @@ function init(apiClient) {
|
|
|
362
374
|
emailConfiguration: new email_configuration_1.EmailConfigurationClient(apiClient),
|
|
363
375
|
thread: new thread_1.ThreadClient(apiClient),
|
|
364
376
|
threadMessage: new thread_message_1.ThreadMessageClient(apiClient),
|
|
365
|
-
threadMessageProposal: new thread_message_proposal_1.ThreadMessageProposalClient(apiClient),
|
|
366
377
|
messageProvider: new message_provider_1.MessageProviderClient(apiClient),
|
|
367
|
-
|
|
378
|
+
inboxConfiguration: new inbox_configuration_1.InboxConfigurationClient(apiClient),
|
|
379
|
+
knowledgebase: new knowledgebase_1.KnowledgebaseClient(apiClient),
|
|
368
380
|
translation: new translation_1.TranslationClient(apiClient),
|
|
369
381
|
workflow: new workflow_1.WorkflowClient(apiClient),
|
|
370
382
|
workflowSchedule: new workflow_schedule_1.WorkflowScheduleClient(apiClient),
|