@vrplatform/api 1.3.0-stage.1145 → 1.3.0-stage.1153

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.
@@ -1834,6 +1834,40 @@ export interface paths {
1834
1834
  patch?: never;
1835
1835
  trace?: never;
1836
1836
  };
1837
+ "/reports/trial-balance": {
1838
+ parameters: {
1839
+ query?: never;
1840
+ header?: never;
1841
+ path?: never;
1842
+ cookie?: never;
1843
+ };
1844
+ /** @description Trial balance report */
1845
+ get: operations["getTrialBalanceReport"];
1846
+ put?: never;
1847
+ post?: never;
1848
+ delete?: never;
1849
+ options?: never;
1850
+ head?: never;
1851
+ patch?: never;
1852
+ trace?: never;
1853
+ };
1854
+ "/reports/trial-balance/csv": {
1855
+ parameters: {
1856
+ query?: never;
1857
+ header?: never;
1858
+ path?: never;
1859
+ cookie?: never;
1860
+ };
1861
+ /** @description Trial balance report (CSV) */
1862
+ get: operations["getTrialBalanceReportCsv"];
1863
+ put?: never;
1864
+ post?: never;
1865
+ delete?: never;
1866
+ options?: never;
1867
+ head?: never;
1868
+ patch?: never;
1869
+ trace?: never;
1870
+ };
1837
1871
  "/calendar-blocks": {
1838
1872
  parameters: {
1839
1873
  query?: never;
@@ -2013,7 +2047,7 @@ export interface paths {
2013
2047
  path?: never;
2014
2048
  cookie?: never;
2015
2049
  };
2016
- /** @description List available values/options for a flow setting */
2050
+ /** @description Get a flow setting entry */
2017
2051
  get: operations["getFlowSetting"];
2018
2052
  put?: never;
2019
2053
  /** @description Create, update or delete a flow setting entry */
@@ -2370,52 +2404,6 @@ export interface components {
2370
2404
  type: "listing" | "account" | "booking_channel" | "contact_vendor" | "contact_owner" | "rate" | "value_number" | "value_percentage" | "value_string" | "value_currency" | "value_date";
2371
2405
  };
2372
2406
  };
2373
- /** @description Mapping entry returned from mutation routes with normalized left/right payloads. */
2374
- FlowMappingItemPost: {
2375
- /** Format: uuid */
2376
- id: string;
2377
- /** Format: uuid */
2378
- flowId: string;
2379
- /** Format: uuid */
2380
- connectionId: string;
2381
- mappingKey: string;
2382
- title: string | null;
2383
- description: string | null;
2384
- left: {
2385
- /** Format: uuid */
2386
- sourceId: string;
2387
- };
2388
- right: {
2389
- value: string | number;
2390
- text: string;
2391
- /**
2392
- * @description Semantic type for mapping/setting entries (entities and primitive kinds).
2393
- * @enum {string}
2394
- */
2395
- type: "listing" | "account" | "booking_channel" | "contact_vendor" | "contact_owner" | "rate" | "value_number" | "value_percentage" | "value_string" | "value_currency" | "value_date";
2396
- };
2397
- };
2398
- /** @description Collection of settings after mutation with normalized { id, name, type } value payloads. */
2399
- FlowSettingItemsPost: components["schemas"]["FlowSettingItemPost"][];
2400
- /** @description Setting representation returned from mutation routes with normalized { id, name, type } value payload. */
2401
- FlowSettingItemPost: {
2402
- /** Format: uuid */
2403
- id: string;
2404
- /** Format: uuid */
2405
- flowId: string;
2406
- /** Format: uuid */
2407
- connectionId: string;
2408
- settingKey: string;
2409
- title: string | null;
2410
- description: string | null;
2411
- /**
2412
- * @description Semantic type for mapping/setting entries (entities and primitive kinds).
2413
- * @enum {string|null}
2414
- */
2415
- type?: "listing" | "account" | "booking_channel" | "contact_vendor" | "contact_owner" | "rate" | "value_number" | "value_percentage" | "value_string" | "value_currency" | "value_date" | null;
2416
- filter: string | null;
2417
- value: components["schemas"]["FlowMappingResolvedEntityValue"];
2418
- };
2419
2407
  };
2420
2408
  responses: never;
2421
2409
  parameters: never;
@@ -23866,6 +23854,176 @@ export interface operations {
23866
23854
  };
23867
23855
  };
23868
23856
  };
23857
+ getTrialBalanceReport: {
23858
+ parameters: {
23859
+ query: {
23860
+ startDate: string;
23861
+ endDate: string;
23862
+ classification?: ("asset" | "expense" | "liability" | "revenue")[];
23863
+ type?: "bank" | "ledger";
23864
+ party?: "owners" | "manager";
23865
+ };
23866
+ header?: {
23867
+ "X-Team-Id"?: string;
23868
+ };
23869
+ path?: never;
23870
+ cookie?: never;
23871
+ };
23872
+ requestBody?: never;
23873
+ responses: {
23874
+ /** @description Successful response */
23875
+ 200: {
23876
+ headers: {
23877
+ [name: string]: unknown;
23878
+ };
23879
+ content: {
23880
+ "application/json": {
23881
+ unassignedOpeningBalance: number;
23882
+ unassignedEntries: {
23883
+ id: string;
23884
+ centTotal: number;
23885
+ txnNum: number | null;
23886
+ description: string | null;
23887
+ uniqueRef: string | null;
23888
+ }[];
23889
+ accounts: {
23890
+ id: string;
23891
+ title: string;
23892
+ classification: string | null;
23893
+ openingBalance: number;
23894
+ entries: {
23895
+ id: string;
23896
+ centTotal: number;
23897
+ txnNum: number | null;
23898
+ description: string | null;
23899
+ uniqueRef: string | null;
23900
+ }[];
23901
+ }[];
23902
+ };
23903
+ };
23904
+ };
23905
+ /** @description Invalid input data */
23906
+ 400: {
23907
+ headers: {
23908
+ [name: string]: unknown;
23909
+ };
23910
+ content: {
23911
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
23912
+ };
23913
+ };
23914
+ /** @description Authorization not provided */
23915
+ 401: {
23916
+ headers: {
23917
+ [name: string]: unknown;
23918
+ };
23919
+ content: {
23920
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
23921
+ };
23922
+ };
23923
+ /** @description Insufficient access */
23924
+ 403: {
23925
+ headers: {
23926
+ [name: string]: unknown;
23927
+ };
23928
+ content: {
23929
+ "application/json": components["schemas"]["error.FORBIDDEN"];
23930
+ };
23931
+ };
23932
+ /** @description Not found */
23933
+ 404: {
23934
+ headers: {
23935
+ [name: string]: unknown;
23936
+ };
23937
+ content: {
23938
+ "application/json": components["schemas"]["error.NOT_FOUND"];
23939
+ };
23940
+ };
23941
+ /** @description Internal server error */
23942
+ 500: {
23943
+ headers: {
23944
+ [name: string]: unknown;
23945
+ };
23946
+ content: {
23947
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23948
+ };
23949
+ };
23950
+ };
23951
+ };
23952
+ getTrialBalanceReportCsv: {
23953
+ parameters: {
23954
+ query: {
23955
+ startDate: string;
23956
+ endDate: string;
23957
+ classification?: ("asset" | "expense" | "liability" | "revenue")[];
23958
+ type?: "bank" | "ledger";
23959
+ party?: "owners" | "manager";
23960
+ };
23961
+ header?: {
23962
+ "X-Team-Id"?: string;
23963
+ };
23964
+ path?: never;
23965
+ cookie?: never;
23966
+ };
23967
+ requestBody?: never;
23968
+ responses: {
23969
+ /** @description Successful response */
23970
+ 200: {
23971
+ headers: {
23972
+ [name: string]: unknown;
23973
+ };
23974
+ content: {
23975
+ "application/json": {
23976
+ url: string;
23977
+ };
23978
+ };
23979
+ };
23980
+ /** @description Invalid input data */
23981
+ 400: {
23982
+ headers: {
23983
+ [name: string]: unknown;
23984
+ };
23985
+ content: {
23986
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
23987
+ };
23988
+ };
23989
+ /** @description Authorization not provided */
23990
+ 401: {
23991
+ headers: {
23992
+ [name: string]: unknown;
23993
+ };
23994
+ content: {
23995
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
23996
+ };
23997
+ };
23998
+ /** @description Insufficient access */
23999
+ 403: {
24000
+ headers: {
24001
+ [name: string]: unknown;
24002
+ };
24003
+ content: {
24004
+ "application/json": components["schemas"]["error.FORBIDDEN"];
24005
+ };
24006
+ };
24007
+ /** @description Not found */
24008
+ 404: {
24009
+ headers: {
24010
+ [name: string]: unknown;
24011
+ };
24012
+ content: {
24013
+ "application/json": components["schemas"]["error.NOT_FOUND"];
24014
+ };
24015
+ };
24016
+ /** @description Internal server error */
24017
+ 500: {
24018
+ headers: {
24019
+ [name: string]: unknown;
24020
+ };
24021
+ content: {
24022
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
24023
+ };
24024
+ };
24025
+ };
24026
+ };
23869
24027
  getCalendar: {
23870
24028
  parameters: {
23871
24029
  query: {
@@ -24144,11 +24302,7 @@ export interface operations {
24144
24302
  /** Format: uuid */
24145
24303
  id: string;
24146
24304
  title: string;
24147
- app: {
24148
- id: string;
24149
- name: string;
24150
- icon?: string | null;
24151
- };
24305
+ appId: string;
24152
24306
  description?: string | null;
24153
24307
  /** @description Mapping schema configuration for this flow */
24154
24308
  mappingSchema: {
@@ -24277,11 +24431,7 @@ export interface operations {
24277
24431
  /** Format: uuid */
24278
24432
  id: string;
24279
24433
  title: string;
24280
- app: {
24281
- id: string;
24282
- name: string;
24283
- icon?: string | null;
24284
- };
24434
+ appId: string;
24285
24435
  description?: string | null;
24286
24436
  /** @description Mapping schema configuration for this flow */
24287
24437
  mappingSchema: {
@@ -24619,8 +24769,8 @@ export interface operations {
24619
24769
  };
24620
24770
  getFlowMapping: {
24621
24771
  parameters: {
24622
- query?: {
24623
- sourceId?: string;
24772
+ query: {
24773
+ sourceId: string;
24624
24774
  limit?: number;
24625
24775
  page?: number;
24626
24776
  };
@@ -24721,11 +24871,9 @@ export interface operations {
24721
24871
  "application/json": {
24722
24872
  /** Format: uuid */
24723
24873
  sourceId: string;
24724
- value?: unknown;
24725
- /** @default 100 */
24726
- limit?: number;
24727
- /** @default 1 */
24728
- page?: number;
24874
+ value: ((string | number | boolean | null) | (string | number | boolean | null)[] | {
24875
+ [key: string]: string | number | boolean | null;
24876
+ }) | null;
24729
24877
  };
24730
24878
  };
24731
24879
  };
@@ -24737,15 +24885,27 @@ export interface operations {
24737
24885
  };
24738
24886
  content: {
24739
24887
  "application/json": {
24740
- data: components["schemas"]["FlowMappingItemPost"][];
24741
- pagination: {
24742
- /** @default 100 */
24743
- limit: number;
24744
- /** @default 1 */
24745
- page: number;
24746
- total: number;
24747
- totalPage: number;
24748
- nextPage?: number;
24888
+ /** Format: uuid */
24889
+ id?: string;
24890
+ /** Format: uuid */
24891
+ flowId?: string;
24892
+ /** Format: uuid */
24893
+ connectionId?: string;
24894
+ mappingKey?: string;
24895
+ title?: string | null;
24896
+ description?: string | null;
24897
+ left?: {
24898
+ /** Format: uuid */
24899
+ sourceId: string;
24900
+ };
24901
+ right?: {
24902
+ value: string | number;
24903
+ text: string;
24904
+ /**
24905
+ * @description Semantic type for mapping/setting entries (entities and primitive kinds).
24906
+ * @enum {string}
24907
+ */
24908
+ type: "listing" | "account" | "booking_channel" | "contact_vendor" | "contact_owner" | "rate" | "value_number" | "value_percentage" | "value_string" | "value_currency" | "value_date";
24749
24909
  };
24750
24910
  };
24751
24911
  };
@@ -24972,8 +25132,6 @@ export interface operations {
24972
25132
  parameters: {
24973
25133
  query?: {
24974
25134
  search?: string;
24975
- limit?: number;
24976
- page?: number;
24977
25135
  };
24978
25136
  header?: {
24979
25137
  "X-Team-Id"?: string;
@@ -24993,23 +25151,7 @@ export interface operations {
24993
25151
  [name: string]: unknown;
24994
25152
  };
24995
25153
  content: {
24996
- "application/json": {
24997
- data: {
24998
- id: string;
24999
- name: string;
25000
- description: string | null;
25001
- value?: unknown;
25002
- }[];
25003
- pagination: {
25004
- /** @default 100 */
25005
- limit: number;
25006
- /** @default 1 */
25007
- page: number;
25008
- total: number;
25009
- totalPage: number;
25010
- nextPage?: number;
25011
- };
25012
- };
25154
+ "application/json": components["schemas"]["FlowSettingItemGet"];
25013
25155
  };
25014
25156
  };
25015
25157
  /** @description Invalid input data */
@@ -25075,7 +25217,9 @@ export interface operations {
25075
25217
  requestBody: {
25076
25218
  content: {
25077
25219
  "application/json": {
25078
- value?: unknown;
25220
+ value: ((string | number | boolean | null) | (string | number | boolean | null)[] | {
25221
+ [key: string]: string | number | boolean | null;
25222
+ }) | null;
25079
25223
  };
25080
25224
  };
25081
25225
  };
@@ -25088,14 +25232,21 @@ export interface operations {
25088
25232
  content: {
25089
25233
  "application/json": {
25090
25234
  /** Format: uuid */
25091
- id: string;
25235
+ id?: string;
25092
25236
  /** Format: uuid */
25093
- connectionId: string;
25094
- title: string;
25095
- description: string | null;
25096
- /** @enum {string} */
25097
- status: "active" | "inactive";
25098
- settings: components["schemas"]["FlowSettingItemsPost"];
25237
+ flowId?: string;
25238
+ /** Format: uuid */
25239
+ connectionId?: string;
25240
+ settingKey?: string;
25241
+ title?: string | null;
25242
+ description?: string | null;
25243
+ /**
25244
+ * @description Semantic type for mapping/setting entries (entities and primitive kinds).
25245
+ * @enum {string|null}
25246
+ */
25247
+ type?: "listing" | "account" | "booking_channel" | "contact_vendor" | "contact_owner" | "rate" | "value_number" | "value_percentage" | "value_string" | "value_currency" | "value_date" | null;
25248
+ filter?: string | null;
25249
+ value?: components["schemas"]["FlowMappingResolvedEntityValue"];
25099
25250
  };
25100
25251
  };
25101
25252
  };