@vrplatform/api 1.3.1-stage.6225 → 1.3.1-stage.6249
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.
|
@@ -818,7 +818,7 @@ export interface paths {
|
|
|
818
818
|
get?: never;
|
|
819
819
|
put?: never;
|
|
820
820
|
/**
|
|
821
|
-
* @description Connect an app and create the connection. OAuth defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted.
|
|
821
|
+
* @description Connect an app and create the connection. OAuth defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted. Legacy production /callback is normalized to /callback/, and legacy staging /callback to /connections/oauth-callback. Provider integrations must return stable account identity. The built-in API app receives server-generated connection identity. PMS connections queue durable reservation line-mapping initialization. Hostaway webhook reconciliation runs after credentials are stored. Ramp connections activate and run chart-of-accounts synchronization when autoExtract is enabled. Provider tasks may take up to 25 seconds. Tasks that exceed the limit return ERROR_TIMEOUT.
|
|
822
822
|
*
|
|
823
823
|
* Required scope: integrations:write
|
|
824
824
|
*/
|
|
@@ -860,7 +860,7 @@ export interface paths {
|
|
|
860
860
|
get?: never;
|
|
861
861
|
put?: never;
|
|
862
862
|
/**
|
|
863
|
-
* @description Get a redirect URL to connect an app through OAuth2.0. Defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted. Normalizes
|
|
863
|
+
* @description Get a redirect URL to connect an app through OAuth2.0. Defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted. Normalizes legacy production /callback to /callback/ and legacy staging /callback to /connections/oauth-callback.
|
|
864
864
|
*
|
|
865
865
|
* Required scope: integrations:write
|
|
866
866
|
*/
|
|
@@ -975,7 +975,7 @@ export interface paths {
|
|
|
975
975
|
get?: never;
|
|
976
976
|
put?: never;
|
|
977
977
|
/**
|
|
978
|
-
* @description Reconnect an existing app connection. OAuth defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted.
|
|
978
|
+
* @description Reconnect an existing app connection. OAuth defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted. Legacy production /callback is normalized to /callback/, and legacy staging /callback to /connections/oauth-callback. The built-in API app preserves its existing server-generated identity. Provider identities owned by another connection are rejected before mutation. PMS reconnections queue durable reservation line-mapping initialization. Hostaway webhook reconciliation runs after credentials are stored. Ramp reconnections run chart-of-accounts synchronization unless that flow is explicitly inactive. Provider tasks may take up to 25 seconds. Tasks that exceed the limit return ERROR_TIMEOUT.
|
|
979
979
|
*
|
|
980
980
|
* Required scope: integrations:write
|
|
981
981
|
*/
|
|
@@ -1384,6 +1384,27 @@ export interface paths {
|
|
|
1384
1384
|
patch?: never;
|
|
1385
1385
|
trace?: never;
|
|
1386
1386
|
};
|
|
1387
|
+
"/email-templates/test": {
|
|
1388
|
+
parameters: {
|
|
1389
|
+
query?: never;
|
|
1390
|
+
header?: never;
|
|
1391
|
+
path?: never;
|
|
1392
|
+
cookie?: never;
|
|
1393
|
+
};
|
|
1394
|
+
get?: never;
|
|
1395
|
+
put?: never;
|
|
1396
|
+
/**
|
|
1397
|
+
* @description Send unsaved email-template content to the authenticated user's email address through the API Trigger project. The recipient cannot be supplied by the caller.
|
|
1398
|
+
*
|
|
1399
|
+
* Required scope: team-settings:write
|
|
1400
|
+
*/
|
|
1401
|
+
post: operations["sendTestEmail"];
|
|
1402
|
+
delete?: never;
|
|
1403
|
+
options?: never;
|
|
1404
|
+
head?: never;
|
|
1405
|
+
patch?: never;
|
|
1406
|
+
trace?: never;
|
|
1407
|
+
};
|
|
1387
1408
|
"/email-templates/{type}": {
|
|
1388
1409
|
parameters: {
|
|
1389
1410
|
query?: never;
|
|
@@ -4500,7 +4521,7 @@ export interface paths {
|
|
|
4500
4521
|
get: operations["getReservations"];
|
|
4501
4522
|
put?: never;
|
|
4502
4523
|
/**
|
|
4503
|
-
* @description Create a reservation. Financial lines post journal entries inline against the listing ownership period covering the stay, so writes into books-closed or statement-locked months are rejected. Owner API keys cannot create reservations. Supports dryRun. See https://docs.vrplatform.app/guides/build/reservations.
|
|
4524
|
+
* @description Create a reservation. Financial lines post journal entries inline against the listing ownership period covering the stay, so writes into books-closed or statement-locked months are rejected. Creation rejects duplicates by connection and unique reference or by connection, resolved listing, and confirmation code. Owner API keys cannot create reservations. Supports dryRun. See https://docs.vrplatform.app/guides/build/reservations.
|
|
4504
4525
|
*
|
|
4505
4526
|
* Required scope: reservations:write
|
|
4506
4527
|
*/
|
|
@@ -5736,7 +5757,7 @@ export interface paths {
|
|
|
5736
5757
|
get: operations["getTeams"];
|
|
5737
5758
|
put?: never;
|
|
5738
5759
|
/**
|
|
5739
|
-
* @description Create team. The generic gateway forwards an explicit dataRegion to that regional cell; an omitted region uses the receiving cell. Partner provisioning requires a uniqueRef. An exact repeat of a completed provision fails with 409 and context.existingTeamId identifies the existing team; changed retry payloads fail without it. Fetch that team with GET /teams/lookup instead of creating it again. Retrying a provisioning request that failed before completing is safe. Generated and explicit slugs are checked against the global tenant registry before the regional tenant is written. defaultCurrency must exist in the target region currency catalog; unsupported values return 400 before creation.
|
|
5760
|
+
* @description Create team. The generic gateway forwards an explicit dataRegion to that regional cell; an omitted region uses the receiving cell. Partner provisioning requires a uniqueRef. An exact repeat of a completed provision fails with 409 and context.existingTeamId identifies the existing team; changed retry payloads fail without it. Fetch that team with GET /teams/lookup instead of creating it again. Retrying a provisioning request that failed before completing is safe. Generated and explicit slugs are checked against the global tenant registry before the regional tenant is written. defaultCurrency must exist in the target region currency catalog; unsupported values return 400 before creation. An explicit General Ledger copyFromTeamId must use the target data region; a mismatch returns 400 before either tenant registry is written.
|
|
5740
5761
|
*
|
|
5741
5762
|
* Required scope: teams:provision
|
|
5742
5763
|
*/
|
|
@@ -32135,6 +32156,262 @@ export interface operations {
|
|
|
32135
32156
|
};
|
|
32136
32157
|
};
|
|
32137
32158
|
};
|
|
32159
|
+
sendTestEmail: {
|
|
32160
|
+
parameters: {
|
|
32161
|
+
query?: never;
|
|
32162
|
+
header?: never;
|
|
32163
|
+
path?: never;
|
|
32164
|
+
cookie?: never;
|
|
32165
|
+
};
|
|
32166
|
+
requestBody?: {
|
|
32167
|
+
content: {
|
|
32168
|
+
"application/json": {
|
|
32169
|
+
html: string;
|
|
32170
|
+
subject: string;
|
|
32171
|
+
text: string;
|
|
32172
|
+
};
|
|
32173
|
+
};
|
|
32174
|
+
};
|
|
32175
|
+
responses: {
|
|
32176
|
+
/** @description Successful response */
|
|
32177
|
+
200: {
|
|
32178
|
+
headers: {
|
|
32179
|
+
[name: string]: unknown;
|
|
32180
|
+
};
|
|
32181
|
+
content: {
|
|
32182
|
+
"application/json": {
|
|
32183
|
+
/** @constant */
|
|
32184
|
+
ok: true;
|
|
32185
|
+
};
|
|
32186
|
+
};
|
|
32187
|
+
};
|
|
32188
|
+
/** @description Bad request */
|
|
32189
|
+
400: {
|
|
32190
|
+
headers: {
|
|
32191
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32192
|
+
"Retry-After"?: number;
|
|
32193
|
+
[name: string]: unknown;
|
|
32194
|
+
};
|
|
32195
|
+
content: {
|
|
32196
|
+
"application/json": {
|
|
32197
|
+
code: string;
|
|
32198
|
+
message: string;
|
|
32199
|
+
links?: {
|
|
32200
|
+
docs: string;
|
|
32201
|
+
schema: string;
|
|
32202
|
+
};
|
|
32203
|
+
issues?: {
|
|
32204
|
+
message: string;
|
|
32205
|
+
path?: (string | number)[];
|
|
32206
|
+
schema?: string;
|
|
32207
|
+
}[];
|
|
32208
|
+
retryable?: boolean;
|
|
32209
|
+
context?: unknown;
|
|
32210
|
+
};
|
|
32211
|
+
};
|
|
32212
|
+
};
|
|
32213
|
+
/** @description Unauthorized */
|
|
32214
|
+
401: {
|
|
32215
|
+
headers: {
|
|
32216
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32217
|
+
"Retry-After"?: number;
|
|
32218
|
+
[name: string]: unknown;
|
|
32219
|
+
};
|
|
32220
|
+
content: {
|
|
32221
|
+
"application/json": {
|
|
32222
|
+
code: string;
|
|
32223
|
+
message: string;
|
|
32224
|
+
links?: {
|
|
32225
|
+
docs: string;
|
|
32226
|
+
schema: string;
|
|
32227
|
+
};
|
|
32228
|
+
issues?: {
|
|
32229
|
+
message: string;
|
|
32230
|
+
path?: (string | number)[];
|
|
32231
|
+
schema?: string;
|
|
32232
|
+
}[];
|
|
32233
|
+
retryable?: boolean;
|
|
32234
|
+
context?: unknown;
|
|
32235
|
+
};
|
|
32236
|
+
};
|
|
32237
|
+
};
|
|
32238
|
+
/** @description Forbidden */
|
|
32239
|
+
403: {
|
|
32240
|
+
headers: {
|
|
32241
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32242
|
+
"Retry-After"?: number;
|
|
32243
|
+
[name: string]: unknown;
|
|
32244
|
+
};
|
|
32245
|
+
content: {
|
|
32246
|
+
"application/json": {
|
|
32247
|
+
code: string;
|
|
32248
|
+
message: string;
|
|
32249
|
+
links?: {
|
|
32250
|
+
docs: string;
|
|
32251
|
+
schema: string;
|
|
32252
|
+
};
|
|
32253
|
+
issues?: {
|
|
32254
|
+
message: string;
|
|
32255
|
+
path?: (string | number)[];
|
|
32256
|
+
schema?: string;
|
|
32257
|
+
}[];
|
|
32258
|
+
retryable?: boolean;
|
|
32259
|
+
context?: unknown;
|
|
32260
|
+
};
|
|
32261
|
+
};
|
|
32262
|
+
};
|
|
32263
|
+
/** @description Not found */
|
|
32264
|
+
404: {
|
|
32265
|
+
headers: {
|
|
32266
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32267
|
+
"Retry-After"?: number;
|
|
32268
|
+
[name: string]: unknown;
|
|
32269
|
+
};
|
|
32270
|
+
content: {
|
|
32271
|
+
"application/json": {
|
|
32272
|
+
code: string;
|
|
32273
|
+
message: string;
|
|
32274
|
+
links?: {
|
|
32275
|
+
docs: string;
|
|
32276
|
+
schema: string;
|
|
32277
|
+
};
|
|
32278
|
+
issues?: {
|
|
32279
|
+
message: string;
|
|
32280
|
+
path?: (string | number)[];
|
|
32281
|
+
schema?: string;
|
|
32282
|
+
}[];
|
|
32283
|
+
retryable?: boolean;
|
|
32284
|
+
context?: unknown;
|
|
32285
|
+
};
|
|
32286
|
+
};
|
|
32287
|
+
};
|
|
32288
|
+
/** @description Conflict */
|
|
32289
|
+
409: {
|
|
32290
|
+
headers: {
|
|
32291
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32292
|
+
"Retry-After"?: number;
|
|
32293
|
+
[name: string]: unknown;
|
|
32294
|
+
};
|
|
32295
|
+
content: {
|
|
32296
|
+
"application/json": {
|
|
32297
|
+
code: string;
|
|
32298
|
+
message: string;
|
|
32299
|
+
links?: {
|
|
32300
|
+
docs: string;
|
|
32301
|
+
schema: string;
|
|
32302
|
+
};
|
|
32303
|
+
issues?: {
|
|
32304
|
+
message: string;
|
|
32305
|
+
path?: (string | number)[];
|
|
32306
|
+
schema?: string;
|
|
32307
|
+
}[];
|
|
32308
|
+
retryable?: boolean;
|
|
32309
|
+
context?: unknown;
|
|
32310
|
+
};
|
|
32311
|
+
};
|
|
32312
|
+
};
|
|
32313
|
+
/** @description Gone */
|
|
32314
|
+
410: {
|
|
32315
|
+
headers: {
|
|
32316
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32317
|
+
"Retry-After"?: number;
|
|
32318
|
+
[name: string]: unknown;
|
|
32319
|
+
};
|
|
32320
|
+
content: {
|
|
32321
|
+
"application/json": {
|
|
32322
|
+
code: string;
|
|
32323
|
+
message: string;
|
|
32324
|
+
links?: {
|
|
32325
|
+
docs: string;
|
|
32326
|
+
schema: string;
|
|
32327
|
+
};
|
|
32328
|
+
issues?: {
|
|
32329
|
+
message: string;
|
|
32330
|
+
path?: (string | number)[];
|
|
32331
|
+
schema?: string;
|
|
32332
|
+
}[];
|
|
32333
|
+
retryable?: boolean;
|
|
32334
|
+
context?: unknown;
|
|
32335
|
+
};
|
|
32336
|
+
};
|
|
32337
|
+
};
|
|
32338
|
+
/** @description Unprocessable content */
|
|
32339
|
+
422: {
|
|
32340
|
+
headers: {
|
|
32341
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32342
|
+
"Retry-After"?: number;
|
|
32343
|
+
[name: string]: unknown;
|
|
32344
|
+
};
|
|
32345
|
+
content: {
|
|
32346
|
+
"application/json": {
|
|
32347
|
+
code: string;
|
|
32348
|
+
message: string;
|
|
32349
|
+
links?: {
|
|
32350
|
+
docs: string;
|
|
32351
|
+
schema: string;
|
|
32352
|
+
};
|
|
32353
|
+
issues?: {
|
|
32354
|
+
message: string;
|
|
32355
|
+
path?: (string | number)[];
|
|
32356
|
+
schema?: string;
|
|
32357
|
+
}[];
|
|
32358
|
+
retryable?: boolean;
|
|
32359
|
+
context?: unknown;
|
|
32360
|
+
};
|
|
32361
|
+
};
|
|
32362
|
+
};
|
|
32363
|
+
/** @description Internal server error */
|
|
32364
|
+
500: {
|
|
32365
|
+
headers: {
|
|
32366
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32367
|
+
"Retry-After"?: number;
|
|
32368
|
+
[name: string]: unknown;
|
|
32369
|
+
};
|
|
32370
|
+
content: {
|
|
32371
|
+
"application/json": {
|
|
32372
|
+
code: string;
|
|
32373
|
+
message: string;
|
|
32374
|
+
links?: {
|
|
32375
|
+
docs: string;
|
|
32376
|
+
schema: string;
|
|
32377
|
+
};
|
|
32378
|
+
issues?: {
|
|
32379
|
+
message: string;
|
|
32380
|
+
path?: (string | number)[];
|
|
32381
|
+
schema?: string;
|
|
32382
|
+
}[];
|
|
32383
|
+
retryable?: boolean;
|
|
32384
|
+
context?: unknown;
|
|
32385
|
+
};
|
|
32386
|
+
};
|
|
32387
|
+
};
|
|
32388
|
+
/** @description Service unavailable */
|
|
32389
|
+
503: {
|
|
32390
|
+
headers: {
|
|
32391
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32392
|
+
"Retry-After"?: number;
|
|
32393
|
+
[name: string]: unknown;
|
|
32394
|
+
};
|
|
32395
|
+
content: {
|
|
32396
|
+
"application/json": {
|
|
32397
|
+
code: string;
|
|
32398
|
+
message: string;
|
|
32399
|
+
links?: {
|
|
32400
|
+
docs: string;
|
|
32401
|
+
schema: string;
|
|
32402
|
+
};
|
|
32403
|
+
issues?: {
|
|
32404
|
+
message: string;
|
|
32405
|
+
path?: (string | number)[];
|
|
32406
|
+
schema?: string;
|
|
32407
|
+
}[];
|
|
32408
|
+
retryable?: boolean;
|
|
32409
|
+
context?: unknown;
|
|
32410
|
+
};
|
|
32411
|
+
};
|
|
32412
|
+
};
|
|
32413
|
+
};
|
|
32414
|
+
};
|
|
32138
32415
|
upsertEmailTemplate: {
|
|
32139
32416
|
parameters: {
|
|
32140
32417
|
query?: never;
|
|
@@ -77781,6 +78058,7 @@ export interface operations {
|
|
|
77781
78058
|
getGuestBalancesReport: {
|
|
77782
78059
|
parameters: {
|
|
77783
78060
|
query: {
|
|
78061
|
+
/** @description As-of date or date range. For a range, the inclusive end is used. */
|
|
77784
78062
|
date: string;
|
|
77785
78063
|
occupancyStatus: "departed" | "inHouse" | "upcoming" | "cancelled" | "unassigned" | "all";
|
|
77786
78064
|
channels?: string;
|
|
@@ -78159,6 +78437,7 @@ export interface operations {
|
|
|
78159
78437
|
getGuestBalancesReportCsv: {
|
|
78160
78438
|
parameters: {
|
|
78161
78439
|
query: {
|
|
78440
|
+
/** @description As-of date or date range. For a range, the inclusive end is used. */
|
|
78162
78441
|
date: string;
|
|
78163
78442
|
occupancyStatus: "departed" | "inHouse" | "upcoming" | "cancelled" | "unassigned" | "all";
|
|
78164
78443
|
channels?: string;
|
|
@@ -78411,6 +78690,7 @@ export interface operations {
|
|
|
78411
78690
|
getGuestBalancesReportAggregated: {
|
|
78412
78691
|
parameters: {
|
|
78413
78692
|
query: {
|
|
78693
|
+
/** @description As-of date or date range. For a range, the inclusive end is used. */
|
|
78414
78694
|
date: string;
|
|
78415
78695
|
channels?: string;
|
|
78416
78696
|
};
|