@vrplatform/api 1.2.40-stage.1070 → 1.3.0-1121
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/build/main/client.js +6 -0
- package/build/main/client.js.map +1 -1
- package/build/main/generated/v1.d.ts +303 -32
- package/build/main/generated/v1.js.map +1 -1
- package/build/module/client.js +6 -0
- package/build/module/client.js.map +1 -1
- package/build/module/generated/v1.d.ts +303 -32
- package/build/module/generated/v1.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +6 -0
- package/src/generated/v1.ts +303 -32
package/build/main/client.js
CHANGED
|
@@ -62,6 +62,12 @@ testing, headers: h, ...retryableFetchParams }) {
|
|
|
62
62
|
const trace = Sentry.getTraceData();
|
|
63
63
|
const client = (0, openapi_fetch_1.default)({
|
|
64
64
|
baseUrl,
|
|
65
|
+
querySerializer: {
|
|
66
|
+
array: {
|
|
67
|
+
explode: false,
|
|
68
|
+
style: 'form',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
65
71
|
fetch(req) {
|
|
66
72
|
return retryableFetch(async () => {
|
|
67
73
|
let clone = req.clone();
|
package/build/main/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"src/","sources":["client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"src/","sources":["client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,oCAuFC;AAlGD,qDAAuC;AACvC,6CAG2B;AAC3B,kEAAyC;AACzC,mCAAmC;AAEnC,+BAA0C;AAG1C,SAAgB,YAAY,CAAC,EAC3B,OAAO,EAAE,IAAI,EACb,KAAK,EACL,IAAI,EACJ,SAAS,EAAE,GAAG;AACd,cAAc;AACd,OAAO,EACP,OAAO,EAAE,CAAC,EACV,GAAG,oBAAoB,E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CAAC,OAAO;oBAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;gBAE/D,OAAO,KAAK,CAAC;YACf,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;IAEH,MAAM,aAAa,GAAc,MAAa,CAAC;IAC/C,aAAa,CAAC,SAAS,GAAG,SAAS,CAAC;IACpC,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import * as Sentry from '@sentry/core';\nimport {\n type RetryableFetchParams,\n useRetryableFetch,\n} from '@vrplatform/utils';\nimport createClient from 'openapi-fetch';\nimport { useCache } from './cache';\nimport type { paths } from './generated/v1';\nimport { generateApiKeySec } from './sec';\nimport type { ApiClient, ApiClientAuth } from './types';\n\nexport function useApiClient({\n baseUrl: base,\n local,\n auth,\n sessionId: sid,\n // headers: h,\n testing,\n headers: h,\n ...retryableFetchParams\n}: {\n attempts?: number;\n auth?: ApiClientAuth | (() => ApiClientAuth);\n baseUrl?: string;\n sessionId?: string;\n local?: boolean | number;\n headers?: Record<string, string> | (() => Record<string, string>);\n testing?: {\n overwriteUri?: string;\n getOverwriteTimestamp?: () => number | undefined;\n };\n} & RetryableFetchParams) {\n const baseUrl =\n (local\n ? `http://localhost:${typeof local === 'number' ? local : 8877}`\n : base) || 'https://api.vrplatform.app';\n\n const sessionId = sid || crypto.randomUUID();\n // cache the sec key for 1 minute (its valid for 5 minutes on the API)\n const cache = useCache(\n async (v: string) =>\n generateApiKeySec(v, testing?.getOverwriteTimestamp?.()),\n 60_000\n );\n\n const retryableFetch = useRetryableFetch({\n ...retryableFetchParams,\n onRetry(arg) {\n cache.invalidate();\n if (retryableFetchParams.onRetry) retryableFetchParams.onRetry(arg);\n },\n });\n\n const trace = Sentry.getTraceData();\n const client = createClient<paths>({\n baseUrl,\n querySerializer: {\n array: {\n explode: false,\n style: 'form',\n },\n },\n fetch(req) {\n return retryableFetch(async () => {\n let clone: Request = req.clone() as any;\n if (testing?.overwriteUri)\n clone = new Request(testing.overwriteUri, clone);\n\n const a = (typeof auth === 'function' ? auth() : auth) || {};\n if (sessionId) clone.headers.set('X-Session-Id', sessionId);\n if (a.sec)\n clone.headers.set('X-Api-Key', `Sec ${await cache.current(a.sec)}`);\n if (a.apiKey) clone.headers.set('X-Api-Key', a.apiKey);\n if (a.tenantId) clone.headers.set('X-Team-Id', a.tenantId);\n if (a.accessToken)\n clone.headers.set(\n 'Authorization',\n a.accessToken.startsWith('Bearer ')\n ? a.accessToken\n : `Bearer ${a.accessToken}`\n );\n const additionalHeaders = h ? (typeof h === 'function' ? h() : h) : {};\n for (const key in additionalHeaders) {\n clone.headers.set(key, additionalHeaders[key]);\n }\n\n if (trace['sentry-trace'])\n clone.headers.set('sentry-trace', trace['sentry-trace']);\n if (trace.baggage) clone.headers.set('baggage', trace.baggage);\n\n return clone;\n });\n },\n });\n\n const sessionClient: ApiClient = client as any;\n sessionClient.sessionId = sessionId;\n return sessionClient;\n}\n"]}
|
|
@@ -1647,6 +1647,23 @@ export interface paths {
|
|
|
1647
1647
|
patch?: never;
|
|
1648
1648
|
trace?: never;
|
|
1649
1649
|
};
|
|
1650
|
+
"/report/journal-entries/csv": {
|
|
1651
|
+
parameters: {
|
|
1652
|
+
query?: never;
|
|
1653
|
+
header?: never;
|
|
1654
|
+
path?: never;
|
|
1655
|
+
cookie?: never;
|
|
1656
|
+
};
|
|
1657
|
+
/** @description CSV export for journal entries */
|
|
1658
|
+
get: operations["getJournalEntriesReportCsv"];
|
|
1659
|
+
put?: never;
|
|
1660
|
+
post?: never;
|
|
1661
|
+
delete?: never;
|
|
1662
|
+
options?: never;
|
|
1663
|
+
head?: never;
|
|
1664
|
+
patch?: never;
|
|
1665
|
+
trace?: never;
|
|
1666
|
+
};
|
|
1650
1667
|
"/reports/manager-statements": {
|
|
1651
1668
|
parameters: {
|
|
1652
1669
|
query?: never;
|
|
@@ -1698,6 +1715,23 @@ export interface paths {
|
|
|
1698
1715
|
patch?: never;
|
|
1699
1716
|
trace?: never;
|
|
1700
1717
|
};
|
|
1718
|
+
"/reports/manager-statements/detail/journal-entries/csv": {
|
|
1719
|
+
parameters: {
|
|
1720
|
+
query?: never;
|
|
1721
|
+
header?: never;
|
|
1722
|
+
path?: never;
|
|
1723
|
+
cookie?: never;
|
|
1724
|
+
};
|
|
1725
|
+
/** @description CSV export for manager statement journal entries */
|
|
1726
|
+
get: operations["getManagerStatementReportJournalEntriesCsv"];
|
|
1727
|
+
put?: never;
|
|
1728
|
+
post?: never;
|
|
1729
|
+
delete?: never;
|
|
1730
|
+
options?: never;
|
|
1731
|
+
head?: never;
|
|
1732
|
+
patch?: never;
|
|
1733
|
+
trace?: never;
|
|
1734
|
+
};
|
|
1701
1735
|
"/reports/profit-and-loss": {
|
|
1702
1736
|
parameters: {
|
|
1703
1737
|
query?: never;
|
|
@@ -4140,6 +4174,12 @@ export interface operations {
|
|
|
4140
4174
|
/** @enum {string} */
|
|
4141
4175
|
severity: "warning";
|
|
4142
4176
|
context: Record<string, never>;
|
|
4177
|
+
} | {
|
|
4178
|
+
/** @enum {string} */
|
|
4179
|
+
code: "guestTotalsZero";
|
|
4180
|
+
/** @enum {string} */
|
|
4181
|
+
severity: "warning";
|
|
4182
|
+
context: Record<string, never>;
|
|
4143
4183
|
})[];
|
|
4144
4184
|
connection?: {
|
|
4145
4185
|
/** Format: uuid */
|
|
@@ -4158,6 +4198,7 @@ export interface operations {
|
|
|
4158
4198
|
tax: number;
|
|
4159
4199
|
manager: number;
|
|
4160
4200
|
owner: number;
|
|
4201
|
+
reservation: number;
|
|
4161
4202
|
expense: number;
|
|
4162
4203
|
deposit: number;
|
|
4163
4204
|
guest: number;
|
|
@@ -4368,11 +4409,6 @@ export interface operations {
|
|
|
4368
4409
|
"application/json": {
|
|
4369
4410
|
dangerouslyAllowLocked?: boolean;
|
|
4370
4411
|
ids?: string[];
|
|
4371
|
-
listingIds?: string[];
|
|
4372
|
-
connectionIds?: string[];
|
|
4373
|
-
date?: string;
|
|
4374
|
-
/** @enum {string} */
|
|
4375
|
-
dateField?: "bookedAt" | "checkIn" | "checkOut" | "payment" | "intersection";
|
|
4376
4412
|
};
|
|
4377
4413
|
};
|
|
4378
4414
|
};
|
|
@@ -4516,6 +4552,12 @@ export interface operations {
|
|
|
4516
4552
|
/** @enum {string} */
|
|
4517
4553
|
severity: "warning";
|
|
4518
4554
|
context: Record<string, never>;
|
|
4555
|
+
} | {
|
|
4556
|
+
/** @enum {string} */
|
|
4557
|
+
code: "guestTotalsZero";
|
|
4558
|
+
/** @enum {string} */
|
|
4559
|
+
severity: "warning";
|
|
4560
|
+
context: Record<string, never>;
|
|
4519
4561
|
})[];
|
|
4520
4562
|
connection?: {
|
|
4521
4563
|
/** Format: uuid */
|
|
@@ -4534,6 +4576,7 @@ export interface operations {
|
|
|
4534
4576
|
tax: number;
|
|
4535
4577
|
manager: number;
|
|
4536
4578
|
owner: number;
|
|
4579
|
+
reservation: number;
|
|
4537
4580
|
expense: number;
|
|
4538
4581
|
deposit: number;
|
|
4539
4582
|
guest: number;
|
|
@@ -4972,6 +5015,12 @@ export interface operations {
|
|
|
4972
5015
|
/** @enum {string} */
|
|
4973
5016
|
severity: "warning";
|
|
4974
5017
|
context: Record<string, never>;
|
|
5018
|
+
} | {
|
|
5019
|
+
/** @enum {string} */
|
|
5020
|
+
code: "guestTotalsZero";
|
|
5021
|
+
/** @enum {string} */
|
|
5022
|
+
severity: "warning";
|
|
5023
|
+
context: Record<string, never>;
|
|
4975
5024
|
})[];
|
|
4976
5025
|
connection?: {
|
|
4977
5026
|
/** Format: uuid */
|
|
@@ -4990,6 +5039,7 @@ export interface operations {
|
|
|
4990
5039
|
tax: number;
|
|
4991
5040
|
manager: number;
|
|
4992
5041
|
owner: number;
|
|
5042
|
+
reservation: number;
|
|
4993
5043
|
expense: number;
|
|
4994
5044
|
deposit: number;
|
|
4995
5045
|
guest: number;
|
|
@@ -5366,6 +5416,12 @@ export interface operations {
|
|
|
5366
5416
|
/** @enum {string} */
|
|
5367
5417
|
severity: "warning";
|
|
5368
5418
|
context: Record<string, never>;
|
|
5419
|
+
} | {
|
|
5420
|
+
/** @enum {string} */
|
|
5421
|
+
code: "guestTotalsZero";
|
|
5422
|
+
/** @enum {string} */
|
|
5423
|
+
severity: "warning";
|
|
5424
|
+
context: Record<string, never>;
|
|
5369
5425
|
})[];
|
|
5370
5426
|
connection?: {
|
|
5371
5427
|
/** Format: uuid */
|
|
@@ -5643,6 +5699,12 @@ export interface operations {
|
|
|
5643
5699
|
/** @enum {string} */
|
|
5644
5700
|
severity: "warning";
|
|
5645
5701
|
context: Record<string, never>;
|
|
5702
|
+
} | {
|
|
5703
|
+
/** @enum {string} */
|
|
5704
|
+
code: "guestTotalsZero";
|
|
5705
|
+
/** @enum {string} */
|
|
5706
|
+
severity: "warning";
|
|
5707
|
+
context: Record<string, never>;
|
|
5646
5708
|
})[];
|
|
5647
5709
|
connection?: {
|
|
5648
5710
|
/** Format: uuid */
|
|
@@ -5661,6 +5723,7 @@ export interface operations {
|
|
|
5661
5723
|
tax: number;
|
|
5662
5724
|
manager: number;
|
|
5663
5725
|
owner: number;
|
|
5726
|
+
reservation: number;
|
|
5664
5727
|
expense: number;
|
|
5665
5728
|
deposit: number;
|
|
5666
5729
|
guest: number;
|
|
@@ -5874,7 +5937,7 @@ export interface operations {
|
|
|
5874
5937
|
data: {
|
|
5875
5938
|
/** Format: uuid */
|
|
5876
5939
|
listingId: string;
|
|
5877
|
-
/** @default 2025-11-
|
|
5940
|
+
/** @default 2025-11-20 */
|
|
5878
5941
|
startAt: string;
|
|
5879
5942
|
endAt?: string | null;
|
|
5880
5943
|
setListingInactive?: boolean | null;
|
|
@@ -5956,7 +6019,7 @@ export interface operations {
|
|
|
5956
6019
|
"application/json": {
|
|
5957
6020
|
/** Format: uuid */
|
|
5958
6021
|
listingId: string;
|
|
5959
|
-
/** @default 2025-11-
|
|
6022
|
+
/** @default 2025-11-20 */
|
|
5960
6023
|
startAt?: string;
|
|
5961
6024
|
endAt?: string | null;
|
|
5962
6025
|
members: {
|
|
@@ -5990,7 +6053,7 @@ export interface operations {
|
|
|
5990
6053
|
"application/json": {
|
|
5991
6054
|
/** Format: uuid */
|
|
5992
6055
|
listingId: string;
|
|
5993
|
-
/** @default 2025-11-
|
|
6056
|
+
/** @default 2025-11-20 */
|
|
5994
6057
|
startAt: string;
|
|
5995
6058
|
endAt?: string | null;
|
|
5996
6059
|
setListingInactive?: boolean | null;
|
|
@@ -6070,7 +6133,7 @@ export interface operations {
|
|
|
6070
6133
|
"application/json": {
|
|
6071
6134
|
/** Format: uuid */
|
|
6072
6135
|
listingId: string;
|
|
6073
|
-
/** @default 2025-11-
|
|
6136
|
+
/** @default 2025-11-20 */
|
|
6074
6137
|
startAt: string;
|
|
6075
6138
|
endAt?: string | null;
|
|
6076
6139
|
setListingInactive?: boolean | null;
|
|
@@ -6153,7 +6216,7 @@ export interface operations {
|
|
|
6153
6216
|
"application/json": {
|
|
6154
6217
|
/** Format: uuid */
|
|
6155
6218
|
listingId?: string;
|
|
6156
|
-
/** @default 2025-11-
|
|
6219
|
+
/** @default 2025-11-20 */
|
|
6157
6220
|
startAt?: string;
|
|
6158
6221
|
endAt?: string | null;
|
|
6159
6222
|
members?: {
|
|
@@ -6187,7 +6250,7 @@ export interface operations {
|
|
|
6187
6250
|
"application/json": {
|
|
6188
6251
|
/** Format: uuid */
|
|
6189
6252
|
listingId: string;
|
|
6190
|
-
/** @default 2025-11-
|
|
6253
|
+
/** @default 2025-11-20 */
|
|
6191
6254
|
startAt: string;
|
|
6192
6255
|
endAt?: string | null;
|
|
6193
6256
|
setListingInactive?: boolean | null;
|
|
@@ -6373,7 +6436,7 @@ export interface operations {
|
|
|
6373
6436
|
/** Format: uuid */
|
|
6374
6437
|
sourceId?: string | null;
|
|
6375
6438
|
initialOwnership?: {
|
|
6376
|
-
/** @default 2025-11-
|
|
6439
|
+
/** @default 2025-11-20 */
|
|
6377
6440
|
startAt?: string;
|
|
6378
6441
|
endAt?: string | null;
|
|
6379
6442
|
members: {
|
|
@@ -6431,7 +6494,7 @@ export interface operations {
|
|
|
6431
6494
|
status: "active" | "inactive";
|
|
6432
6495
|
defaultCurrency?: string | null;
|
|
6433
6496
|
activeOwnership?: {
|
|
6434
|
-
/** @default 2025-11-
|
|
6497
|
+
/** @default 2025-11-20 */
|
|
6435
6498
|
startAt: string;
|
|
6436
6499
|
endAt?: string | null;
|
|
6437
6500
|
setListingInactive?: boolean | null;
|
|
@@ -6672,7 +6735,7 @@ export interface operations {
|
|
|
6672
6735
|
status: "active" | "inactive";
|
|
6673
6736
|
defaultCurrency?: string | null;
|
|
6674
6737
|
activeOwnership?: {
|
|
6675
|
-
/** @default 2025-11-
|
|
6738
|
+
/** @default 2025-11-20 */
|
|
6676
6739
|
startAt: string;
|
|
6677
6740
|
endAt?: string | null;
|
|
6678
6741
|
setListingInactive?: boolean | null;
|
|
@@ -6811,7 +6874,7 @@ export interface operations {
|
|
|
6811
6874
|
/** Format: uuid */
|
|
6812
6875
|
sourceId?: string | null;
|
|
6813
6876
|
initialOwnership?: {
|
|
6814
|
-
/** @default 2025-11-
|
|
6877
|
+
/** @default 2025-11-20 */
|
|
6815
6878
|
startAt?: string;
|
|
6816
6879
|
endAt?: string | null;
|
|
6817
6880
|
members: {
|
|
@@ -6865,7 +6928,7 @@ export interface operations {
|
|
|
6865
6928
|
status: "active" | "inactive";
|
|
6866
6929
|
defaultCurrency?: string | null;
|
|
6867
6930
|
activeOwnership?: {
|
|
6868
|
-
/** @default 2025-11-
|
|
6931
|
+
/** @default 2025-11-20 */
|
|
6869
6932
|
startAt: string;
|
|
6870
6933
|
endAt?: string | null;
|
|
6871
6934
|
setListingInactive?: boolean | null;
|
|
@@ -7082,7 +7145,7 @@ export interface operations {
|
|
|
7082
7145
|
status: "active" | "inactive";
|
|
7083
7146
|
defaultCurrency?: string | null;
|
|
7084
7147
|
activeOwnership?: {
|
|
7085
|
-
/** @default 2025-11-
|
|
7148
|
+
/** @default 2025-11-20 */
|
|
7086
7149
|
startAt: string;
|
|
7087
7150
|
endAt?: string | null;
|
|
7088
7151
|
setListingInactive?: boolean | null;
|
|
@@ -7229,7 +7292,7 @@ export interface operations {
|
|
|
7229
7292
|
/** Format: uuid */
|
|
7230
7293
|
sourceId?: string | null;
|
|
7231
7294
|
initialOwnership?: {
|
|
7232
|
-
/** @default 2025-11-
|
|
7295
|
+
/** @default 2025-11-20 */
|
|
7233
7296
|
startAt?: string;
|
|
7234
7297
|
endAt?: string | null;
|
|
7235
7298
|
members: {
|
|
@@ -7283,7 +7346,7 @@ export interface operations {
|
|
|
7283
7346
|
status: "active" | "inactive";
|
|
7284
7347
|
defaultCurrency?: string | null;
|
|
7285
7348
|
activeOwnership?: {
|
|
7286
|
-
/** @default 2025-11-
|
|
7349
|
+
/** @default 2025-11-20 */
|
|
7287
7350
|
startAt: string;
|
|
7288
7351
|
endAt?: string | null;
|
|
7289
7352
|
setListingInactive?: boolean | null;
|
|
@@ -9017,6 +9080,7 @@ export interface operations {
|
|
|
9017
9080
|
tax: number;
|
|
9018
9081
|
manager: number;
|
|
9019
9082
|
owner: number;
|
|
9083
|
+
reservation: number;
|
|
9020
9084
|
expense: number;
|
|
9021
9085
|
deposit: number;
|
|
9022
9086
|
guest: number;
|
|
@@ -21319,29 +21383,25 @@ export interface operations {
|
|
|
21319
21383
|
message: string | null;
|
|
21320
21384
|
payload?: unknown;
|
|
21321
21385
|
userId: string | null;
|
|
21322
|
-
/** Format: date-time */
|
|
21323
21386
|
createdAt: string;
|
|
21324
21387
|
effects: {
|
|
21325
21388
|
/** Format: uuid */
|
|
21326
21389
|
id: string;
|
|
21327
|
-
|
|
21328
|
-
effectType: "REFRESH_RESERVATION_JOURNAL" | "REFRESH_TRANSACTION_JOURNAL" | "CREATE_RECURRING_TRANSACTION_INSTANCE" | "UPDATE_RECURRING_TRANSACTION_INSTANCES" | "DEACTIVATE_RECURRING_TEMPLATE" | "UPDATE_RESERVATION_PAYMENTS" | "UPDATE_RESERVATION_LINKABLES" | "MATCH_TRANSACTION_LINE_TO_RESERVATION" | "MATCH_RESERVATION_TO_STRIPE_DEPOSIT" | "TEST_EFFECT" | "TENANT_HYPERLINE_SYNC" | "TENANT_CLERK_ALLOWED_IDS_SYNC" | "TENANT_LINEAR_WEBHOOK" | "TENANT_SUSPENSION_EMAIL" | "TENANT_STATUS_TRACK" | "CALENDAR_BLOCK_ACTION";
|
|
21390
|
+
effectType: string;
|
|
21329
21391
|
payload?: unknown;
|
|
21392
|
+
entityType: string | null;
|
|
21393
|
+
entityId: string | null;
|
|
21330
21394
|
/** @enum {string} */
|
|
21331
21395
|
status: "pending" | "claimed" | "running" | "completed" | "failed" | "dead_letter";
|
|
21332
21396
|
priority: number;
|
|
21333
21397
|
retryCount: number;
|
|
21334
21398
|
maxRetries: number;
|
|
21335
21399
|
sequence: number;
|
|
21336
|
-
/** Format: date-time */
|
|
21337
21400
|
claimedAt: string | null;
|
|
21338
21401
|
claimedBy: string | null;
|
|
21339
|
-
/** Format: date-time */
|
|
21340
21402
|
completedAt: string | null;
|
|
21341
|
-
/** Format: date-time */
|
|
21342
21403
|
lastAttemptAt: string | null;
|
|
21343
21404
|
lastError: string | null;
|
|
21344
|
-
/** Format: date-time */
|
|
21345
21405
|
createdAt: string;
|
|
21346
21406
|
}[];
|
|
21347
21407
|
effectCounts: {
|
|
@@ -22498,10 +22558,11 @@ export interface operations {
|
|
|
22498
22558
|
accountIds?: string;
|
|
22499
22559
|
/** @description comma separated categories */
|
|
22500
22560
|
categoryIds?: string;
|
|
22501
|
-
classifications?:
|
|
22502
|
-
types?:
|
|
22503
|
-
entityTypes?:
|
|
22561
|
+
classifications?: string;
|
|
22562
|
+
types?: string;
|
|
22563
|
+
entityTypes?: string;
|
|
22504
22564
|
party?: "owners" | "manager";
|
|
22565
|
+
includeDetails?: boolean;
|
|
22505
22566
|
limit?: number;
|
|
22506
22567
|
page?: number;
|
|
22507
22568
|
};
|
|
@@ -22547,6 +22608,16 @@ export interface operations {
|
|
|
22547
22608
|
id: string;
|
|
22548
22609
|
name: string;
|
|
22549
22610
|
};
|
|
22611
|
+
detail?: {
|
|
22612
|
+
owners?: string;
|
|
22613
|
+
listing?: string;
|
|
22614
|
+
reservationConfirmationCode?: string;
|
|
22615
|
+
bookingChannel?: string;
|
|
22616
|
+
transactionReference?: string;
|
|
22617
|
+
reservationLineReference?: string;
|
|
22618
|
+
classification?: string;
|
|
22619
|
+
category?: string;
|
|
22620
|
+
};
|
|
22550
22621
|
}[];
|
|
22551
22622
|
pagination: {
|
|
22552
22623
|
/** @default 100 */
|
|
@@ -22607,6 +22678,101 @@ export interface operations {
|
|
|
22607
22678
|
};
|
|
22608
22679
|
};
|
|
22609
22680
|
};
|
|
22681
|
+
getJournalEntriesReportCsv: {
|
|
22682
|
+
parameters: {
|
|
22683
|
+
query?: {
|
|
22684
|
+
/** @description comma separated journal entry ids */
|
|
22685
|
+
ids?: string;
|
|
22686
|
+
txnCode?: string;
|
|
22687
|
+
published?: boolean;
|
|
22688
|
+
status?: "active" | "inactive";
|
|
22689
|
+
startAt?: string;
|
|
22690
|
+
endAt?: string;
|
|
22691
|
+
search?: string;
|
|
22692
|
+
date?: string;
|
|
22693
|
+
amount?: string;
|
|
22694
|
+
isDateRangeEndInclusive?: boolean;
|
|
22695
|
+
reservationIds?: string;
|
|
22696
|
+
transactionIds?: string;
|
|
22697
|
+
/** @description Currency in ISO 4217 format, will be converted to lowercase */
|
|
22698
|
+
currency?: string;
|
|
22699
|
+
/** @description listing ids comma separated or "unmapped" */
|
|
22700
|
+
listingIds?: string;
|
|
22701
|
+
/** @description account ids comma separated accounts or "unmapped" */
|
|
22702
|
+
accountIds?: string;
|
|
22703
|
+
/** @description comma separated categories */
|
|
22704
|
+
categoryIds?: string;
|
|
22705
|
+
classifications?: string;
|
|
22706
|
+
types?: string;
|
|
22707
|
+
entityTypes?: string;
|
|
22708
|
+
party?: "owners" | "manager";
|
|
22709
|
+
};
|
|
22710
|
+
header?: {
|
|
22711
|
+
"X-Team-Id"?: string;
|
|
22712
|
+
};
|
|
22713
|
+
path?: never;
|
|
22714
|
+
cookie?: never;
|
|
22715
|
+
};
|
|
22716
|
+
requestBody?: never;
|
|
22717
|
+
responses: {
|
|
22718
|
+
/** @description Successful response */
|
|
22719
|
+
200: {
|
|
22720
|
+
headers: {
|
|
22721
|
+
[name: string]: unknown;
|
|
22722
|
+
};
|
|
22723
|
+
content: {
|
|
22724
|
+
"application/json": {
|
|
22725
|
+
url: string;
|
|
22726
|
+
};
|
|
22727
|
+
};
|
|
22728
|
+
};
|
|
22729
|
+
/** @description Invalid input data */
|
|
22730
|
+
400: {
|
|
22731
|
+
headers: {
|
|
22732
|
+
[name: string]: unknown;
|
|
22733
|
+
};
|
|
22734
|
+
content: {
|
|
22735
|
+
"application/json": components["schemas"]["error.BAD_REQUEST"];
|
|
22736
|
+
};
|
|
22737
|
+
};
|
|
22738
|
+
/** @description Authorization not provided */
|
|
22739
|
+
401: {
|
|
22740
|
+
headers: {
|
|
22741
|
+
[name: string]: unknown;
|
|
22742
|
+
};
|
|
22743
|
+
content: {
|
|
22744
|
+
"application/json": components["schemas"]["error.UNAUTHORIZED"];
|
|
22745
|
+
};
|
|
22746
|
+
};
|
|
22747
|
+
/** @description Insufficient access */
|
|
22748
|
+
403: {
|
|
22749
|
+
headers: {
|
|
22750
|
+
[name: string]: unknown;
|
|
22751
|
+
};
|
|
22752
|
+
content: {
|
|
22753
|
+
"application/json": components["schemas"]["error.FORBIDDEN"];
|
|
22754
|
+
};
|
|
22755
|
+
};
|
|
22756
|
+
/** @description Not found */
|
|
22757
|
+
404: {
|
|
22758
|
+
headers: {
|
|
22759
|
+
[name: string]: unknown;
|
|
22760
|
+
};
|
|
22761
|
+
content: {
|
|
22762
|
+
"application/json": components["schemas"]["error.NOT_FOUND"];
|
|
22763
|
+
};
|
|
22764
|
+
};
|
|
22765
|
+
/** @description Internal server error */
|
|
22766
|
+
500: {
|
|
22767
|
+
headers: {
|
|
22768
|
+
[name: string]: unknown;
|
|
22769
|
+
};
|
|
22770
|
+
content: {
|
|
22771
|
+
"application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
|
|
22772
|
+
};
|
|
22773
|
+
};
|
|
22774
|
+
};
|
|
22775
|
+
};
|
|
22610
22776
|
getManagerStatementsReport: {
|
|
22611
22777
|
parameters: {
|
|
22612
22778
|
query: {
|
|
@@ -22838,9 +23004,9 @@ export interface operations {
|
|
|
22838
23004
|
accountIds?: string;
|
|
22839
23005
|
/** @description comma separated categories */
|
|
22840
23006
|
categoryIds?: string;
|
|
22841
|
-
classifications?:
|
|
22842
|
-
types?:
|
|
22843
|
-
entityTypes?:
|
|
23007
|
+
classifications?: string;
|
|
23008
|
+
types?: string;
|
|
23009
|
+
entityTypes?: string;
|
|
22844
23010
|
limit?: number;
|
|
22845
23011
|
page?: number;
|
|
22846
23012
|
};
|
|
@@ -22886,6 +23052,16 @@ export interface operations {
|
|
|
22886
23052
|
id: string;
|
|
22887
23053
|
name: string;
|
|
22888
23054
|
};
|
|
23055
|
+
detail?: {
|
|
23056
|
+
owners?: string;
|
|
23057
|
+
listing?: string;
|
|
23058
|
+
reservationConfirmationCode?: string;
|
|
23059
|
+
bookingChannel?: string;
|
|
23060
|
+
transactionReference?: string;
|
|
23061
|
+
reservationLineReference?: string;
|
|
23062
|
+
classification?: string;
|
|
23063
|
+
category?: string;
|
|
23064
|
+
};
|
|
22889
23065
|
}[];
|
|
22890
23066
|
pagination: {
|
|
22891
23067
|
/** @default 100 */
|
|
@@ -22946,6 +23122,100 @@ export interface operations {
|
|
|
22946
23122
|
};
|
|
22947
23123
|
};
|
|
22948
23124
|
};
|
|
23125
|
+
getManagerStatementReportJournalEntriesCsv: {
|
|
23126
|
+
parameters: {
|
|
23127
|
+
query?: {
|
|
23128
|
+
/** @description comma separated journal entry ids */
|
|
23129
|
+
ids?: string;
|
|
23130
|
+
txnCode?: string;
|
|
23131
|
+
published?: boolean;
|
|
23132
|
+
status?: "active" | "inactive";
|
|
23133
|
+
startAt?: string;
|
|
23134
|
+
endAt?: string;
|
|
23135
|
+
search?: string;
|
|
23136
|
+
date?: string;
|
|
23137
|
+
amount?: string;
|
|
23138
|
+
isDateRangeEndInclusive?: boolean;
|
|
23139
|
+
reservationIds?: string;
|
|
23140
|
+
transactionIds?: string;
|
|
23141
|
+
/** @description Currency in ISO 4217 format, will be converted to lowercase */
|
|
23142
|
+
currency?: string;
|
|
23143
|
+
/** @description listing ids comma separated or "unmapped" */
|
|
23144
|
+
listingIds?: string;
|
|
23145
|
+
/** @description account ids comma separated accounts or "unmapped" */
|
|
23146
|
+
accountIds?: string;
|
|
23147
|
+
/** @description comma separated categories */
|
|
23148
|
+
categoryIds?: string;
|
|
23149
|
+
classifications?: string;
|
|
23150
|
+
types?: string;
|
|
23151
|
+
entityTypes?: string;
|
|
23152
|
+
};
|
|
23153
|
+
header?: {
|
|
23154
|
+
"X-Team-Id"?: string;
|
|
23155
|
+
};
|
|
23156
|
+
path?: never;
|
|
23157
|
+
cookie?: never;
|
|
23158
|
+
};
|
|
23159
|
+
requestBody?: never;
|
|
23160
|
+
responses: {
|
|
23161
|
+
/** @description Successful response */
|
|
23162
|
+
200: {
|
|
23163
|
+
headers: {
|
|
23164
|
+
[name: string]: unknown;
|
|
23165
|
+
};
|
|
23166
|
+
content: {
|
|
23167
|
+
"application/json": {
|
|
23168
|
+
url: string;
|
|
23169
|
+
};
|
|
23170
|
+
};
|
|
23171
|
+
};
|
|
23172
|
+
/** @description Invalid input data */
|
|
23173
|
+
400: {
|
|
23174
|
+
headers: {
|
|
23175
|
+
[name: string]: unknown;
|
|
23176
|
+
};
|
|
23177
|
+
content: {
|
|
23178
|
+
"application/json": components["schemas"]["error.BAD_REQUEST"];
|
|
23179
|
+
};
|
|
23180
|
+
};
|
|
23181
|
+
/** @description Authorization not provided */
|
|
23182
|
+
401: {
|
|
23183
|
+
headers: {
|
|
23184
|
+
[name: string]: unknown;
|
|
23185
|
+
};
|
|
23186
|
+
content: {
|
|
23187
|
+
"application/json": components["schemas"]["error.UNAUTHORIZED"];
|
|
23188
|
+
};
|
|
23189
|
+
};
|
|
23190
|
+
/** @description Insufficient access */
|
|
23191
|
+
403: {
|
|
23192
|
+
headers: {
|
|
23193
|
+
[name: string]: unknown;
|
|
23194
|
+
};
|
|
23195
|
+
content: {
|
|
23196
|
+
"application/json": components["schemas"]["error.FORBIDDEN"];
|
|
23197
|
+
};
|
|
23198
|
+
};
|
|
23199
|
+
/** @description Not found */
|
|
23200
|
+
404: {
|
|
23201
|
+
headers: {
|
|
23202
|
+
[name: string]: unknown;
|
|
23203
|
+
};
|
|
23204
|
+
content: {
|
|
23205
|
+
"application/json": components["schemas"]["error.NOT_FOUND"];
|
|
23206
|
+
};
|
|
23207
|
+
};
|
|
23208
|
+
/** @description Internal server error */
|
|
23209
|
+
500: {
|
|
23210
|
+
headers: {
|
|
23211
|
+
[name: string]: unknown;
|
|
23212
|
+
};
|
|
23213
|
+
content: {
|
|
23214
|
+
"application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
|
|
23215
|
+
};
|
|
23216
|
+
};
|
|
23217
|
+
};
|
|
23218
|
+
};
|
|
22949
23219
|
getProfitAndLossReport: {
|
|
22950
23220
|
parameters: {
|
|
22951
23221
|
query?: {
|
|
@@ -23969,6 +24239,7 @@ export interface operations {
|
|
|
23969
24239
|
requestBody: {
|
|
23970
24240
|
content: {
|
|
23971
24241
|
"application/json": {
|
|
24242
|
+
uniqueRef: string;
|
|
23972
24243
|
title: string;
|
|
23973
24244
|
appId: string;
|
|
23974
24245
|
description?: string | null;
|