@vrplatform/api 1.3.1-2401 → 1.3.1-2426

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-2401",
6
+ "version": "1.3.1-2426",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -22,6 +22,23 @@ export interface paths {
22
22
  patch?: never;
23
23
  trace?: never;
24
24
  };
25
+ "/accounts/categories": {
26
+ parameters: {
27
+ query?: never;
28
+ header?: never;
29
+ path?: never;
30
+ cookie?: never;
31
+ };
32
+ /** @description List account categories */
33
+ get: operations["getAccountsCategories"];
34
+ put?: never;
35
+ post?: never;
36
+ delete?: never;
37
+ options?: never;
38
+ head?: never;
39
+ patch?: never;
40
+ trace?: never;
41
+ };
25
42
  "/accounts/csv": {
26
43
  parameters: {
27
44
  query?: never;
@@ -279,6 +296,23 @@ export interface paths {
279
296
  patch?: never;
280
297
  trace?: never;
281
298
  };
299
+ "/bank-accounts": {
300
+ parameters: {
301
+ query?: never;
302
+ header?: never;
303
+ path?: never;
304
+ cookie?: never;
305
+ };
306
+ /** @description List bank accounts for the current team */
307
+ get: operations["getBankAccounts"];
308
+ put?: never;
309
+ post?: never;
310
+ delete?: never;
311
+ options?: never;
312
+ head?: never;
313
+ patch?: never;
314
+ trace?: never;
315
+ };
282
316
  "/bank-accounts/batch": {
283
317
  parameters: {
284
318
  query?: never;
@@ -3820,6 +3854,112 @@ export interface operations {
3820
3854
  };
3821
3855
  };
3822
3856
  };
3857
+ getAccountsCategories: {
3858
+ parameters: {
3859
+ query?: never;
3860
+ header?: never;
3861
+ path?: never;
3862
+ cookie?: never;
3863
+ };
3864
+ requestBody?: never;
3865
+ responses: {
3866
+ /** @description Successful response */
3867
+ 200: {
3868
+ headers: {
3869
+ [name: string]: unknown;
3870
+ };
3871
+ content: {
3872
+ "application/json": {
3873
+ data: {
3874
+ id: string;
3875
+ name: string;
3876
+ classification?: ("asset" | "liability" | "revenue" | "expense") | null;
3877
+ }[];
3878
+ };
3879
+ };
3880
+ };
3881
+ /** @description Bad request */
3882
+ 400: {
3883
+ headers: {
3884
+ [name: string]: unknown;
3885
+ };
3886
+ content: {
3887
+ "application/json": {
3888
+ code: string;
3889
+ message: string;
3890
+ issues?: {
3891
+ message: string;
3892
+ }[];
3893
+ context?: unknown;
3894
+ };
3895
+ };
3896
+ };
3897
+ /** @description Unauthorized */
3898
+ 401: {
3899
+ headers: {
3900
+ [name: string]: unknown;
3901
+ };
3902
+ content: {
3903
+ "application/json": {
3904
+ code: string;
3905
+ message: string;
3906
+ issues?: {
3907
+ message: string;
3908
+ }[];
3909
+ context?: unknown;
3910
+ };
3911
+ };
3912
+ };
3913
+ /** @description Forbidden */
3914
+ 403: {
3915
+ headers: {
3916
+ [name: string]: unknown;
3917
+ };
3918
+ content: {
3919
+ "application/json": {
3920
+ code: string;
3921
+ message: string;
3922
+ issues?: {
3923
+ message: string;
3924
+ }[];
3925
+ context?: unknown;
3926
+ };
3927
+ };
3928
+ };
3929
+ /** @description Not found */
3930
+ 404: {
3931
+ headers: {
3932
+ [name: string]: unknown;
3933
+ };
3934
+ content: {
3935
+ "application/json": {
3936
+ code: string;
3937
+ message: string;
3938
+ issues?: {
3939
+ message: string;
3940
+ }[];
3941
+ context?: unknown;
3942
+ };
3943
+ };
3944
+ };
3945
+ /** @description Internal server error */
3946
+ 500: {
3947
+ headers: {
3948
+ [name: string]: unknown;
3949
+ };
3950
+ content: {
3951
+ "application/json": {
3952
+ code: string;
3953
+ message: string;
3954
+ issues?: {
3955
+ message: string;
3956
+ }[];
3957
+ context?: unknown;
3958
+ };
3959
+ };
3960
+ };
3961
+ };
3962
+ };
3823
3963
  getAccountsCsv: {
3824
3964
  parameters: {
3825
3965
  query?: {
@@ -6918,6 +7058,148 @@ export interface operations {
6918
7058
  };
6919
7059
  };
6920
7060
  };
7061
+ getBankAccounts: {
7062
+ parameters: {
7063
+ query?: {
7064
+ status?: "active" | "inactive";
7065
+ connectionId?: string;
7066
+ search?: string;
7067
+ };
7068
+ header?: never;
7069
+ path?: never;
7070
+ cookie?: never;
7071
+ };
7072
+ requestBody?: never;
7073
+ responses: {
7074
+ /** @description Successful response */
7075
+ 200: {
7076
+ headers: {
7077
+ [name: string]: unknown;
7078
+ };
7079
+ content: {
7080
+ "application/json": {
7081
+ data: {
7082
+ /** Format: uuid */
7083
+ id: string;
7084
+ name?: string | null;
7085
+ type?: ("deposit" | "creditCard") | null;
7086
+ category?: ("trust" | "operating" | "external") | null;
7087
+ uniqueRef?: string | null;
7088
+ currency?: string | null;
7089
+ lastDigits?: string | null;
7090
+ /** @enum {string} */
7091
+ status: "active" | "inactive";
7092
+ startDate?: string | null;
7093
+ account?: {
7094
+ id: string;
7095
+ name: string;
7096
+ uniqueRef?: string | null;
7097
+ /** @enum {string} */
7098
+ status: "active" | "inactive";
7099
+ } | null;
7100
+ connection?: {
7101
+ /** Format: uuid */
7102
+ id: string;
7103
+ name: string;
7104
+ /** @enum {string} */
7105
+ status: "active" | "inactive";
7106
+ uniqueRef?: string | null;
7107
+ appId: string;
7108
+ } | null;
7109
+ source?: {
7110
+ /** Format: uuid */
7111
+ id: string;
7112
+ type: string;
7113
+ status?: ("active" | "inactive") | null;
7114
+ appId?: string | null;
7115
+ appIcon?: string | null;
7116
+ } | null;
7117
+ }[];
7118
+ };
7119
+ };
7120
+ };
7121
+ /** @description Bad request */
7122
+ 400: {
7123
+ headers: {
7124
+ [name: string]: unknown;
7125
+ };
7126
+ content: {
7127
+ "application/json": {
7128
+ code: string;
7129
+ message: string;
7130
+ issues?: {
7131
+ message: string;
7132
+ }[];
7133
+ context?: unknown;
7134
+ };
7135
+ };
7136
+ };
7137
+ /** @description Unauthorized */
7138
+ 401: {
7139
+ headers: {
7140
+ [name: string]: unknown;
7141
+ };
7142
+ content: {
7143
+ "application/json": {
7144
+ code: string;
7145
+ message: string;
7146
+ issues?: {
7147
+ message: string;
7148
+ }[];
7149
+ context?: unknown;
7150
+ };
7151
+ };
7152
+ };
7153
+ /** @description Forbidden */
7154
+ 403: {
7155
+ headers: {
7156
+ [name: string]: unknown;
7157
+ };
7158
+ content: {
7159
+ "application/json": {
7160
+ code: string;
7161
+ message: string;
7162
+ issues?: {
7163
+ message: string;
7164
+ }[];
7165
+ context?: unknown;
7166
+ };
7167
+ };
7168
+ };
7169
+ /** @description Not found */
7170
+ 404: {
7171
+ headers: {
7172
+ [name: string]: unknown;
7173
+ };
7174
+ content: {
7175
+ "application/json": {
7176
+ code: string;
7177
+ message: string;
7178
+ issues?: {
7179
+ message: string;
7180
+ }[];
7181
+ context?: unknown;
7182
+ };
7183
+ };
7184
+ };
7185
+ /** @description Internal server error */
7186
+ 500: {
7187
+ headers: {
7188
+ [name: string]: unknown;
7189
+ };
7190
+ content: {
7191
+ "application/json": {
7192
+ code: string;
7193
+ message: string;
7194
+ issues?: {
7195
+ message: string;
7196
+ }[];
7197
+ context?: unknown;
7198
+ };
7199
+ };
7200
+ };
7201
+ };
7202
+ };
6921
7203
  batchBankAccounts: {
6922
7204
  parameters: {
6923
7205
  query?: never;
@@ -7224,7 +7506,7 @@ export interface operations {
7224
7506
  includeMatchingTransactions?: string;
7225
7507
  hasMatchingTransactions?: boolean;
7226
7508
  reservationLineFilter?: "all" | "reservationOnly" | "nonReservationOnly";
7227
- sort?: "created_desc" | "created_asc" | "amount_desc" | "amount_asc";
7509
+ sort?: "created_desc" | "created_asc" | "amount_desc" | "amount_asc" | "matched_desc" | "matched_asc";
7228
7510
  limit?: number;
7229
7511
  page?: number;
7230
7512
  };
@@ -7665,7 +7947,7 @@ export interface operations {
7665
7947
  includeMatchingTransactions?: string;
7666
7948
  hasMatchingTransactions?: boolean;
7667
7949
  reservationLineFilter?: "all" | "reservationOnly" | "nonReservationOnly";
7668
- sort?: "created_desc" | "created_asc" | "amount_desc" | "amount_asc";
7950
+ sort?: "created_desc" | "created_asc" | "amount_desc" | "amount_asc" | "matched_desc" | "matched_asc";
7669
7951
  };
7670
7952
  header?: never;
7671
7953
  path?: never;
@@ -10059,6 +10341,7 @@ export interface operations {
10059
10341
  isErrorState?: boolean;
10060
10342
  currentSyncStatus?: "queued" | "started" | "completed" | "failed" | "canceled";
10061
10343
  search?: string;
10344
+ hasSynced?: "deposits" | "expenses" | "reservations" | "listings" | "contacts";
10062
10345
  limit?: number;
10063
10346
  page?: number;
10064
10347
  };
@@ -23328,6 +23611,7 @@ export interface operations {
23328
23611
  guestName: string;
23329
23612
  confirmationCode: string;
23330
23613
  nights: number;
23614
+ transactionReferenceId: string | null;
23331
23615
  transactionDate: string | null;
23332
23616
  transactionDescription: string | null;
23333
23617
  total: number;