@vrplatform/api 1.3.1-stage.2501 → 1.3.1-stage.2503

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
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.1-stage.2501",
6
+ "version": "1.3.1-stage.2503",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -808,7 +808,8 @@ export interface paths {
808
808
  };
809
809
  /** @description Get flow configuration for a connection */
810
810
  get: operations["getFlowConnection"];
811
- put?: never;
811
+ /** @description Update flow status for a connection */
812
+ put: operations["setFlowStatus"];
812
813
  post?: never;
813
814
  delete?: never;
814
815
  options?: never;
@@ -13258,6 +13259,150 @@ export interface operations {
13258
13259
  connectionId: string;
13259
13260
  title: string;
13260
13261
  description: string | null;
13262
+ /** @enum {string} */
13263
+ status: "active" | "inactive";
13264
+ settings: {
13265
+ /** Format: uuid */
13266
+ id: string;
13267
+ /** Format: uuid */
13268
+ flowId: string;
13269
+ /** Format: uuid */
13270
+ connectionId: string;
13271
+ settingKey: string;
13272
+ title: string | null;
13273
+ description: string | null;
13274
+ type?: ("listing" | "account" | "bank_account" | "booking_channel" | "contact_vendor" | "contact_owner" | "rate" | "value_number" | "value_boolean" | "value_percentage" | "value_string" | "value_currency" | "value_date") | null;
13275
+ filter: string | null;
13276
+ /** @description Resolved mapping entity summary ({ id, name, type }) returned by endpoints. */
13277
+ value: {
13278
+ id: string | number;
13279
+ name: string;
13280
+ /**
13281
+ * @description Semantic type for mapping/setting entries (entities and primitive kinds).
13282
+ * @enum {string}
13283
+ */
13284
+ type: "listing" | "account" | "bank_account" | "booking_channel" | "contact_vendor" | "contact_owner" | "rate" | "value_number" | "value_boolean" | "value_percentage" | "value_string" | "value_currency" | "value_date";
13285
+ };
13286
+ }[];
13287
+ };
13288
+ };
13289
+ };
13290
+ /** @description Bad request */
13291
+ 400: {
13292
+ headers: {
13293
+ [name: string]: unknown;
13294
+ };
13295
+ content: {
13296
+ "application/json": {
13297
+ code: string;
13298
+ message: string;
13299
+ issues?: {
13300
+ message: string;
13301
+ }[];
13302
+ context?: unknown;
13303
+ };
13304
+ };
13305
+ };
13306
+ /** @description Unauthorized */
13307
+ 401: {
13308
+ headers: {
13309
+ [name: string]: unknown;
13310
+ };
13311
+ content: {
13312
+ "application/json": {
13313
+ code: string;
13314
+ message: string;
13315
+ issues?: {
13316
+ message: string;
13317
+ }[];
13318
+ context?: unknown;
13319
+ };
13320
+ };
13321
+ };
13322
+ /** @description Forbidden */
13323
+ 403: {
13324
+ headers: {
13325
+ [name: string]: unknown;
13326
+ };
13327
+ content: {
13328
+ "application/json": {
13329
+ code: string;
13330
+ message: string;
13331
+ issues?: {
13332
+ message: string;
13333
+ }[];
13334
+ context?: unknown;
13335
+ };
13336
+ };
13337
+ };
13338
+ /** @description Not found */
13339
+ 404: {
13340
+ headers: {
13341
+ [name: string]: unknown;
13342
+ };
13343
+ content: {
13344
+ "application/json": {
13345
+ code: string;
13346
+ message: string;
13347
+ issues?: {
13348
+ message: string;
13349
+ }[];
13350
+ context?: unknown;
13351
+ };
13352
+ };
13353
+ };
13354
+ /** @description Internal server error */
13355
+ 500: {
13356
+ headers: {
13357
+ [name: string]: unknown;
13358
+ };
13359
+ content: {
13360
+ "application/json": {
13361
+ code: string;
13362
+ message: string;
13363
+ issues?: {
13364
+ message: string;
13365
+ }[];
13366
+ context?: unknown;
13367
+ };
13368
+ };
13369
+ };
13370
+ };
13371
+ };
13372
+ setFlowStatus: {
13373
+ parameters: {
13374
+ query?: never;
13375
+ header?: never;
13376
+ path: {
13377
+ id: string;
13378
+ connectionId: string;
13379
+ };
13380
+ cookie?: never;
13381
+ };
13382
+ requestBody?: {
13383
+ content: {
13384
+ "application/json": {
13385
+ /** @enum {string} */
13386
+ status: "active" | "inactive";
13387
+ };
13388
+ };
13389
+ };
13390
+ responses: {
13391
+ /** @description Successful response */
13392
+ 200: {
13393
+ headers: {
13394
+ [name: string]: unknown;
13395
+ };
13396
+ content: {
13397
+ "application/json": {
13398
+ /** Format: uuid */
13399
+ id: string;
13400
+ /** Format: uuid */
13401
+ connectionId: string;
13402
+ title: string;
13403
+ description: string | null;
13404
+ /** @enum {string} */
13405
+ status: "active" | "inactive";
13261
13406
  settings: {
13262
13407
  /** Format: uuid */
13263
13408
  id: string;
@@ -27609,6 +27754,18 @@ export interface operations {
27609
27754
  /** @constant */
27610
27755
  severity: "warning";
27611
27756
  context: Record<string, never>;
27757
+ } | {
27758
+ /** @constant */
27759
+ code: "reservationCurrencyMismatch";
27760
+ /** @constant */
27761
+ severity: "warning";
27762
+ context: {
27763
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
27764
+ reservationCurrency: string;
27765
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
27766
+ teamDefaultCurrency: string;
27767
+ };
27768
+ message: string;
27612
27769
  } | {
27613
27770
  /** @constant */
27614
27771
  code: "guestTotalsZero";
@@ -27959,6 +28116,18 @@ export interface operations {
27959
28116
  /** @constant */
27960
28117
  severity: "warning";
27961
28118
  context: Record<string, never>;
28119
+ } | {
28120
+ /** @constant */
28121
+ code: "reservationCurrencyMismatch";
28122
+ /** @constant */
28123
+ severity: "warning";
28124
+ context: {
28125
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
28126
+ reservationCurrency: string;
28127
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
28128
+ teamDefaultCurrency: string;
28129
+ };
28130
+ message: string;
27962
28131
  } | {
27963
28132
  /** @constant */
27964
28133
  code: "guestTotalsZero";
@@ -29358,6 +29527,18 @@ export interface operations {
29358
29527
  /** @constant */
29359
29528
  severity: "warning";
29360
29529
  context: Record<string, never>;
29530
+ } | {
29531
+ /** @constant */
29532
+ code: "reservationCurrencyMismatch";
29533
+ /** @constant */
29534
+ severity: "warning";
29535
+ context: {
29536
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
29537
+ reservationCurrency: string;
29538
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
29539
+ teamDefaultCurrency: string;
29540
+ };
29541
+ message: string;
29361
29542
  } | {
29362
29543
  /** @constant */
29363
29544
  code: "guestTotalsZero";
@@ -29935,6 +30116,18 @@ export interface operations {
29935
30116
  /** @constant */
29936
30117
  severity: "warning";
29937
30118
  context: Record<string, never>;
30119
+ } | {
30120
+ /** @constant */
30121
+ code: "reservationCurrencyMismatch";
30122
+ /** @constant */
30123
+ severity: "warning";
30124
+ context: {
30125
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
30126
+ reservationCurrency: string;
30127
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
30128
+ teamDefaultCurrency: string;
30129
+ };
30130
+ message: string;
29938
30131
  } | {
29939
30132
  /** @constant */
29940
30133
  code: "guestTotalsZero";
@@ -30628,6 +30821,18 @@ export interface operations {
30628
30821
  /** @constant */
30629
30822
  severity: "warning";
30630
30823
  context: Record<string, never>;
30824
+ } | {
30825
+ /** @constant */
30826
+ code: "reservationCurrencyMismatch";
30827
+ /** @constant */
30828
+ severity: "warning";
30829
+ context: {
30830
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
30831
+ reservationCurrency: string;
30832
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
30833
+ teamDefaultCurrency: string;
30834
+ };
30835
+ message: string;
30631
30836
  } | {
30632
30837
  /** @constant */
30633
30838
  code: "guestTotalsZero";
@@ -31095,6 +31300,18 @@ export interface operations {
31095
31300
  /** @constant */
31096
31301
  severity: "warning";
31097
31302
  context: Record<string, never>;
31303
+ } | {
31304
+ /** @constant */
31305
+ code: "reservationCurrencyMismatch";
31306
+ /** @constant */
31307
+ severity: "warning";
31308
+ context: {
31309
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
31310
+ reservationCurrency: string;
31311
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
31312
+ teamDefaultCurrency: string;
31313
+ };
31314
+ message: string;
31098
31315
  } | {
31099
31316
  /** @constant */
31100
31317
  code: "guestTotalsZero";
@@ -31548,6 +31765,18 @@ export interface operations {
31548
31765
  /** @constant */
31549
31766
  severity: "warning";
31550
31767
  context: Record<string, never>;
31768
+ } | {
31769
+ /** @constant */
31770
+ code: "reservationCurrencyMismatch";
31771
+ /** @constant */
31772
+ severity: "warning";
31773
+ context: {
31774
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
31775
+ reservationCurrency: string;
31776
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
31777
+ teamDefaultCurrency: string;
31778
+ };
31779
+ message: string;
31551
31780
  } | {
31552
31781
  /** @constant */
31553
31782
  code: "guestTotalsZero";
@@ -39222,6 +39451,26 @@ export interface operations {
39222
39451
  difference: number;
39223
39452
  }[];
39224
39453
  };
39454
+ } | {
39455
+ /** @enum {string} */
39456
+ severity: "error" | "warning";
39457
+ /** @enum {string} */
39458
+ category: "criticalToUser" | "criticalToSystem";
39459
+ message: string;
39460
+ affected: number;
39461
+ /** @constant */
39462
+ code: "reservationCurrencyMismatch";
39463
+ context: {
39464
+ reservations: {
39465
+ /** Format: uuid */
39466
+ reservationId: string;
39467
+ confirmationCode: string | null;
39468
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
39469
+ reservationCurrency: string;
39470
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
39471
+ teamDefaultCurrency: string;
39472
+ }[];
39473
+ };
39225
39474
  })[];
39226
39475
  summary: {
39227
39476
  total: number;
@@ -42802,6 +43051,26 @@ export interface operations {
42802
43051
  difference: number;
42803
43052
  }[];
42804
43053
  };
43054
+ } | {
43055
+ /** @enum {string} */
43056
+ severity: "error" | "warning";
43057
+ /** @enum {string} */
43058
+ category: "criticalToUser" | "criticalToSystem";
43059
+ message: string;
43060
+ affected: number;
43061
+ /** @constant */
43062
+ code: "reservationCurrencyMismatch";
43063
+ context: {
43064
+ reservations: {
43065
+ /** Format: uuid */
43066
+ reservationId: string;
43067
+ confirmationCode: string | null;
43068
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
43069
+ reservationCurrency: string;
43070
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
43071
+ teamDefaultCurrency: string;
43072
+ }[];
43073
+ };
42805
43074
  })[];
42806
43075
  summary: {
42807
43076
  total: number;