@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.
package/package.json
CHANGED
package/src/generated/v1.ts
CHANGED
|
@@ -819,7 +819,7 @@ export interface paths {
|
|
|
819
819
|
get?: never;
|
|
820
820
|
put?: never;
|
|
821
821
|
/**
|
|
822
|
-
* @description Connect an app and create the connection. OAuth defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted.
|
|
822
|
+
* @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.
|
|
823
823
|
*
|
|
824
824
|
* Required scope: integrations:write
|
|
825
825
|
*/
|
|
@@ -861,7 +861,7 @@ export interface paths {
|
|
|
861
861
|
get?: never;
|
|
862
862
|
put?: never;
|
|
863
863
|
/**
|
|
864
|
-
* @description Get a redirect URL to connect an app through OAuth2.0. Defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted. Normalizes
|
|
864
|
+
* @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.
|
|
865
865
|
*
|
|
866
866
|
* Required scope: integrations:write
|
|
867
867
|
*/
|
|
@@ -976,7 +976,7 @@ export interface paths {
|
|
|
976
976
|
get?: never;
|
|
977
977
|
put?: never;
|
|
978
978
|
/**
|
|
979
|
-
* @description Reconnect an existing app connection. OAuth defaults to https://portal.vrplatform.app/callback/ when redirectTo is omitted.
|
|
979
|
+
* @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.
|
|
980
980
|
*
|
|
981
981
|
* Required scope: integrations:write
|
|
982
982
|
*/
|
|
@@ -1385,6 +1385,27 @@ export interface paths {
|
|
|
1385
1385
|
patch?: never;
|
|
1386
1386
|
trace?: never;
|
|
1387
1387
|
};
|
|
1388
|
+
"/email-templates/test": {
|
|
1389
|
+
parameters: {
|
|
1390
|
+
query?: never;
|
|
1391
|
+
header?: never;
|
|
1392
|
+
path?: never;
|
|
1393
|
+
cookie?: never;
|
|
1394
|
+
};
|
|
1395
|
+
get?: never;
|
|
1396
|
+
put?: never;
|
|
1397
|
+
/**
|
|
1398
|
+
* @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.
|
|
1399
|
+
*
|
|
1400
|
+
* Required scope: team-settings:write
|
|
1401
|
+
*/
|
|
1402
|
+
post: operations["sendTestEmail"];
|
|
1403
|
+
delete?: never;
|
|
1404
|
+
options?: never;
|
|
1405
|
+
head?: never;
|
|
1406
|
+
patch?: never;
|
|
1407
|
+
trace?: never;
|
|
1408
|
+
};
|
|
1388
1409
|
"/email-templates/{type}": {
|
|
1389
1410
|
parameters: {
|
|
1390
1411
|
query?: never;
|
|
@@ -4501,7 +4522,7 @@ export interface paths {
|
|
|
4501
4522
|
get: operations["getReservations"];
|
|
4502
4523
|
put?: never;
|
|
4503
4524
|
/**
|
|
4504
|
-
* @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.
|
|
4525
|
+
* @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.
|
|
4505
4526
|
*
|
|
4506
4527
|
* Required scope: reservations:write
|
|
4507
4528
|
*/
|
|
@@ -5737,7 +5758,7 @@ export interface paths {
|
|
|
5737
5758
|
get: operations["getTeams"];
|
|
5738
5759
|
put?: never;
|
|
5739
5760
|
/**
|
|
5740
|
-
* @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.
|
|
5761
|
+
* @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.
|
|
5741
5762
|
*
|
|
5742
5763
|
* Required scope: teams:provision
|
|
5743
5764
|
*/
|
|
@@ -32136,6 +32157,262 @@ export interface operations {
|
|
|
32136
32157
|
};
|
|
32137
32158
|
};
|
|
32138
32159
|
};
|
|
32160
|
+
sendTestEmail: {
|
|
32161
|
+
parameters: {
|
|
32162
|
+
query?: never;
|
|
32163
|
+
header?: never;
|
|
32164
|
+
path?: never;
|
|
32165
|
+
cookie?: never;
|
|
32166
|
+
};
|
|
32167
|
+
requestBody?: {
|
|
32168
|
+
content: {
|
|
32169
|
+
"application/json": {
|
|
32170
|
+
html: string;
|
|
32171
|
+
subject: string;
|
|
32172
|
+
text: string;
|
|
32173
|
+
};
|
|
32174
|
+
};
|
|
32175
|
+
};
|
|
32176
|
+
responses: {
|
|
32177
|
+
/** @description Successful response */
|
|
32178
|
+
200: {
|
|
32179
|
+
headers: {
|
|
32180
|
+
[name: string]: unknown;
|
|
32181
|
+
};
|
|
32182
|
+
content: {
|
|
32183
|
+
"application/json": {
|
|
32184
|
+
/** @constant */
|
|
32185
|
+
ok: true;
|
|
32186
|
+
};
|
|
32187
|
+
};
|
|
32188
|
+
};
|
|
32189
|
+
/** @description Bad request */
|
|
32190
|
+
400: {
|
|
32191
|
+
headers: {
|
|
32192
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32193
|
+
"Retry-After"?: number;
|
|
32194
|
+
[name: string]: unknown;
|
|
32195
|
+
};
|
|
32196
|
+
content: {
|
|
32197
|
+
"application/json": {
|
|
32198
|
+
code: string;
|
|
32199
|
+
message: string;
|
|
32200
|
+
links?: {
|
|
32201
|
+
docs: string;
|
|
32202
|
+
schema: string;
|
|
32203
|
+
};
|
|
32204
|
+
issues?: {
|
|
32205
|
+
message: string;
|
|
32206
|
+
path?: (string | number)[];
|
|
32207
|
+
schema?: string;
|
|
32208
|
+
}[];
|
|
32209
|
+
retryable?: boolean;
|
|
32210
|
+
context?: unknown;
|
|
32211
|
+
};
|
|
32212
|
+
};
|
|
32213
|
+
};
|
|
32214
|
+
/** @description Unauthorized */
|
|
32215
|
+
401: {
|
|
32216
|
+
headers: {
|
|
32217
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32218
|
+
"Retry-After"?: number;
|
|
32219
|
+
[name: string]: unknown;
|
|
32220
|
+
};
|
|
32221
|
+
content: {
|
|
32222
|
+
"application/json": {
|
|
32223
|
+
code: string;
|
|
32224
|
+
message: string;
|
|
32225
|
+
links?: {
|
|
32226
|
+
docs: string;
|
|
32227
|
+
schema: string;
|
|
32228
|
+
};
|
|
32229
|
+
issues?: {
|
|
32230
|
+
message: string;
|
|
32231
|
+
path?: (string | number)[];
|
|
32232
|
+
schema?: string;
|
|
32233
|
+
}[];
|
|
32234
|
+
retryable?: boolean;
|
|
32235
|
+
context?: unknown;
|
|
32236
|
+
};
|
|
32237
|
+
};
|
|
32238
|
+
};
|
|
32239
|
+
/** @description Forbidden */
|
|
32240
|
+
403: {
|
|
32241
|
+
headers: {
|
|
32242
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32243
|
+
"Retry-After"?: number;
|
|
32244
|
+
[name: string]: unknown;
|
|
32245
|
+
};
|
|
32246
|
+
content: {
|
|
32247
|
+
"application/json": {
|
|
32248
|
+
code: string;
|
|
32249
|
+
message: string;
|
|
32250
|
+
links?: {
|
|
32251
|
+
docs: string;
|
|
32252
|
+
schema: string;
|
|
32253
|
+
};
|
|
32254
|
+
issues?: {
|
|
32255
|
+
message: string;
|
|
32256
|
+
path?: (string | number)[];
|
|
32257
|
+
schema?: string;
|
|
32258
|
+
}[];
|
|
32259
|
+
retryable?: boolean;
|
|
32260
|
+
context?: unknown;
|
|
32261
|
+
};
|
|
32262
|
+
};
|
|
32263
|
+
};
|
|
32264
|
+
/** @description Not found */
|
|
32265
|
+
404: {
|
|
32266
|
+
headers: {
|
|
32267
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32268
|
+
"Retry-After"?: number;
|
|
32269
|
+
[name: string]: unknown;
|
|
32270
|
+
};
|
|
32271
|
+
content: {
|
|
32272
|
+
"application/json": {
|
|
32273
|
+
code: string;
|
|
32274
|
+
message: string;
|
|
32275
|
+
links?: {
|
|
32276
|
+
docs: string;
|
|
32277
|
+
schema: string;
|
|
32278
|
+
};
|
|
32279
|
+
issues?: {
|
|
32280
|
+
message: string;
|
|
32281
|
+
path?: (string | number)[];
|
|
32282
|
+
schema?: string;
|
|
32283
|
+
}[];
|
|
32284
|
+
retryable?: boolean;
|
|
32285
|
+
context?: unknown;
|
|
32286
|
+
};
|
|
32287
|
+
};
|
|
32288
|
+
};
|
|
32289
|
+
/** @description Conflict */
|
|
32290
|
+
409: {
|
|
32291
|
+
headers: {
|
|
32292
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32293
|
+
"Retry-After"?: number;
|
|
32294
|
+
[name: string]: unknown;
|
|
32295
|
+
};
|
|
32296
|
+
content: {
|
|
32297
|
+
"application/json": {
|
|
32298
|
+
code: string;
|
|
32299
|
+
message: string;
|
|
32300
|
+
links?: {
|
|
32301
|
+
docs: string;
|
|
32302
|
+
schema: string;
|
|
32303
|
+
};
|
|
32304
|
+
issues?: {
|
|
32305
|
+
message: string;
|
|
32306
|
+
path?: (string | number)[];
|
|
32307
|
+
schema?: string;
|
|
32308
|
+
}[];
|
|
32309
|
+
retryable?: boolean;
|
|
32310
|
+
context?: unknown;
|
|
32311
|
+
};
|
|
32312
|
+
};
|
|
32313
|
+
};
|
|
32314
|
+
/** @description Gone */
|
|
32315
|
+
410: {
|
|
32316
|
+
headers: {
|
|
32317
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32318
|
+
"Retry-After"?: number;
|
|
32319
|
+
[name: string]: unknown;
|
|
32320
|
+
};
|
|
32321
|
+
content: {
|
|
32322
|
+
"application/json": {
|
|
32323
|
+
code: string;
|
|
32324
|
+
message: string;
|
|
32325
|
+
links?: {
|
|
32326
|
+
docs: string;
|
|
32327
|
+
schema: string;
|
|
32328
|
+
};
|
|
32329
|
+
issues?: {
|
|
32330
|
+
message: string;
|
|
32331
|
+
path?: (string | number)[];
|
|
32332
|
+
schema?: string;
|
|
32333
|
+
}[];
|
|
32334
|
+
retryable?: boolean;
|
|
32335
|
+
context?: unknown;
|
|
32336
|
+
};
|
|
32337
|
+
};
|
|
32338
|
+
};
|
|
32339
|
+
/** @description Unprocessable content */
|
|
32340
|
+
422: {
|
|
32341
|
+
headers: {
|
|
32342
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32343
|
+
"Retry-After"?: number;
|
|
32344
|
+
[name: string]: unknown;
|
|
32345
|
+
};
|
|
32346
|
+
content: {
|
|
32347
|
+
"application/json": {
|
|
32348
|
+
code: string;
|
|
32349
|
+
message: string;
|
|
32350
|
+
links?: {
|
|
32351
|
+
docs: string;
|
|
32352
|
+
schema: string;
|
|
32353
|
+
};
|
|
32354
|
+
issues?: {
|
|
32355
|
+
message: string;
|
|
32356
|
+
path?: (string | number)[];
|
|
32357
|
+
schema?: string;
|
|
32358
|
+
}[];
|
|
32359
|
+
retryable?: boolean;
|
|
32360
|
+
context?: unknown;
|
|
32361
|
+
};
|
|
32362
|
+
};
|
|
32363
|
+
};
|
|
32364
|
+
/** @description Internal server error */
|
|
32365
|
+
500: {
|
|
32366
|
+
headers: {
|
|
32367
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32368
|
+
"Retry-After"?: number;
|
|
32369
|
+
[name: string]: unknown;
|
|
32370
|
+
};
|
|
32371
|
+
content: {
|
|
32372
|
+
"application/json": {
|
|
32373
|
+
code: string;
|
|
32374
|
+
message: string;
|
|
32375
|
+
links?: {
|
|
32376
|
+
docs: string;
|
|
32377
|
+
schema: string;
|
|
32378
|
+
};
|
|
32379
|
+
issues?: {
|
|
32380
|
+
message: string;
|
|
32381
|
+
path?: (string | number)[];
|
|
32382
|
+
schema?: string;
|
|
32383
|
+
}[];
|
|
32384
|
+
retryable?: boolean;
|
|
32385
|
+
context?: unknown;
|
|
32386
|
+
};
|
|
32387
|
+
};
|
|
32388
|
+
};
|
|
32389
|
+
/** @description Service unavailable */
|
|
32390
|
+
503: {
|
|
32391
|
+
headers: {
|
|
32392
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
32393
|
+
"Retry-After"?: number;
|
|
32394
|
+
[name: string]: unknown;
|
|
32395
|
+
};
|
|
32396
|
+
content: {
|
|
32397
|
+
"application/json": {
|
|
32398
|
+
code: string;
|
|
32399
|
+
message: string;
|
|
32400
|
+
links?: {
|
|
32401
|
+
docs: string;
|
|
32402
|
+
schema: string;
|
|
32403
|
+
};
|
|
32404
|
+
issues?: {
|
|
32405
|
+
message: string;
|
|
32406
|
+
path?: (string | number)[];
|
|
32407
|
+
schema?: string;
|
|
32408
|
+
}[];
|
|
32409
|
+
retryable?: boolean;
|
|
32410
|
+
context?: unknown;
|
|
32411
|
+
};
|
|
32412
|
+
};
|
|
32413
|
+
};
|
|
32414
|
+
};
|
|
32415
|
+
};
|
|
32139
32416
|
upsertEmailTemplate: {
|
|
32140
32417
|
parameters: {
|
|
32141
32418
|
query?: never;
|
|
@@ -77782,6 +78059,7 @@ export interface operations {
|
|
|
77782
78059
|
getGuestBalancesReport: {
|
|
77783
78060
|
parameters: {
|
|
77784
78061
|
query: {
|
|
78062
|
+
/** @description As-of date or date range. For a range, the inclusive end is used. */
|
|
77785
78063
|
date: string;
|
|
77786
78064
|
occupancyStatus: "departed" | "inHouse" | "upcoming" | "cancelled" | "unassigned" | "all";
|
|
77787
78065
|
channels?: string;
|
|
@@ -78160,6 +78438,7 @@ export interface operations {
|
|
|
78160
78438
|
getGuestBalancesReportCsv: {
|
|
78161
78439
|
parameters: {
|
|
78162
78440
|
query: {
|
|
78441
|
+
/** @description As-of date or date range. For a range, the inclusive end is used. */
|
|
78163
78442
|
date: string;
|
|
78164
78443
|
occupancyStatus: "departed" | "inHouse" | "upcoming" | "cancelled" | "unassigned" | "all";
|
|
78165
78444
|
channels?: string;
|
|
@@ -78412,6 +78691,7 @@ export interface operations {
|
|
|
78412
78691
|
getGuestBalancesReportAggregated: {
|
|
78413
78692
|
parameters: {
|
|
78414
78693
|
query: {
|
|
78694
|
+
/** @description As-of date or date range. For a range, the inclusive end is used. */
|
|
78415
78695
|
date: string;
|
|
78416
78696
|
channels?: string;
|
|
78417
78697
|
};
|