@vrplatform/api 1.3.1-stage.2596 → 1.3.1-stage.2599

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.
@@ -1 +1 @@
1
- {"version":3,"file":"sec.js","sourceRoot":"src/","sources":["sec.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,EACxB;IACjB,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,CAC7C,KAAK,EACL,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EACtB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EACjC,KAAK,EACL,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAC1E,IAAI,EACJ,EAAE,CACH,CAAC;IAEF,OAAO,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC;AAAA,CAC/B","sourcesContent":["export async function generateApiKeySec(\n secret: string,\n timestamp = Math.floor(Date.now() / 1000)\n): Promise<string> {\n const encoder = new TextEncoder();\n const secretKey = await crypto.subtle.importKey(\n 'raw',\n encoder.encode(secret),\n { name: 'HMAC', hash: 'SHA-256' },\n false,\n ['sign']\n );\n\n const message = encoder.encode(`${timestamp}`);\n const signature = await crypto.subtle.sign('HMAC', secretKey, message);\n const hash = btoa(String.fromCharCode(...new Uint8Array(signature))).replace(\n /=/g,\n ''\n );\n\n return `${timestamp}.${hash}`;\n}\n"]}
1
+ {"version":3,"file":"sec.js","sourceRoot":"src/","sources":["sec.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;IAEzC,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,CAC7C,KAAK,EACL,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EACtB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EACjC,KAAK,EACL,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAC1E,IAAI,EACJ,EAAE,CACH,CAAC;IAEF,OAAO,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC;AAChC,CAAC","sourcesContent":["export async function generateApiKeySec(\n secret: string,\n timestamp = Math.floor(Date.now() / 1000)\n): Promise<string> {\n const encoder = new TextEncoder();\n const secretKey = await crypto.subtle.importKey(\n 'raw',\n encoder.encode(secret),\n { name: 'HMAC', hash: 'SHA-256' },\n false,\n ['sign']\n );\n\n const message = encoder.encode(`${timestamp}`);\n const signature = await crypto.subtle.sign('HMAC', secretKey, message);\n const hash = btoa(String.fromCharCode(...new Uint8Array(signature))).replace(\n /=/g,\n ''\n );\n\n return `${timestamp}.${hash}`;\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.1-stage.2596",
6
+ "version": "1.3.1-stage.2599",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -13,13 +13,13 @@
13
13
  "npmpub:staging": "npm publish package.tgz --tag staging",
14
14
  "npmpub:production": "npm publish package.tgz --tag latest",
15
15
  "build": "bun run generate-client && bun build:main && bun build:module",
16
- "build:main": "tsgo -b tsconfig.main.json",
17
- "build:module": "tsgo -b tsconfig.esm.json",
16
+ "build:main": "tsc -b tsconfig.main.json",
17
+ "build:module": "tsc -b tsconfig.esm.json",
18
18
  "dev": "NODE_ENV=generator bun --watch ./generate.ts",
19
19
  "generate-client": "bun generate:schema && bun generate:client",
20
20
  "generate:schema": "NODE_ENV=generator bun ./openapi.ts",
21
21
  "generate:client": "bunx --bun openapi-typescript ./openapi.json -o ./src/generated/v1.ts",
22
- "tsgo": "tsgo --noEmit"
22
+ "tsgo": "tsc --noEmit"
23
23
  },
24
24
  "author": "",
25
25
  "license": "ISC",
@@ -2062,6 +2062,40 @@ export interface paths {
2062
2062
  patch?: never;
2063
2063
  trace?: never;
2064
2064
  };
2065
+ "/reports/manager-statements/detail/pdf": {
2066
+ parameters: {
2067
+ query?: never;
2068
+ header?: never;
2069
+ path?: never;
2070
+ cookie?: never;
2071
+ };
2072
+ /** @description Manager statement detail PDF export */
2073
+ get: operations["getManagerStatementReportDetailPdf"];
2074
+ put?: never;
2075
+ post?: never;
2076
+ delete?: never;
2077
+ options?: never;
2078
+ head?: never;
2079
+ patch?: never;
2080
+ trace?: never;
2081
+ };
2082
+ "/reports/manager-statements/pdf": {
2083
+ parameters: {
2084
+ query?: never;
2085
+ header?: never;
2086
+ path?: never;
2087
+ cookie?: never;
2088
+ };
2089
+ /** @description Manager statements PDF export */
2090
+ get: operations["getManagerStatementsReportPdf"];
2091
+ put?: never;
2092
+ post?: never;
2093
+ delete?: never;
2094
+ options?: never;
2095
+ head?: never;
2096
+ patch?: never;
2097
+ trace?: never;
2098
+ };
2065
2099
  "/reports/owner-statement-summaries-per-layout": {
2066
2100
  parameters: {
2067
2101
  query?: never;
@@ -2147,6 +2181,40 @@ export interface paths {
2147
2181
  patch?: never;
2148
2182
  trace?: never;
2149
2183
  };
2184
+ "/reports/owner-statement-summaries-per-layout/details/{contactId}/pdf": {
2185
+ parameters: {
2186
+ query?: never;
2187
+ header?: never;
2188
+ path?: never;
2189
+ cookie?: never;
2190
+ };
2191
+ /** @description Owner statement summary detail PDF */
2192
+ get: operations["getOwnerStatementSummaryPerLayoutDetailsReportPdf"];
2193
+ put?: never;
2194
+ post?: never;
2195
+ delete?: never;
2196
+ options?: never;
2197
+ head?: never;
2198
+ patch?: never;
2199
+ trace?: never;
2200
+ };
2201
+ "/reports/owner-statement-summaries-per-layout/pdf": {
2202
+ parameters: {
2203
+ query?: never;
2204
+ header?: never;
2205
+ path?: never;
2206
+ cookie?: never;
2207
+ };
2208
+ /** @description Owner statement summary PDF ZIP export */
2209
+ get: operations["getOwnerStatementSummariesPerLayoutReportPdfBatch"];
2210
+ put?: never;
2211
+ post?: never;
2212
+ delete?: never;
2213
+ options?: never;
2214
+ head?: never;
2215
+ patch?: never;
2216
+ trace?: never;
2217
+ };
2150
2218
  "/reports/profit-and-loss": {
2151
2219
  parameters: {
2152
2220
  query?: never;
@@ -28156,6 +28224,218 @@ export interface operations {
28156
28224
  };
28157
28225
  };
28158
28226
  };
28227
+ getManagerStatementReportDetailPdf: {
28228
+ parameters: {
28229
+ query: {
28230
+ startAt: string;
28231
+ endAt: string;
28232
+ };
28233
+ header?: never;
28234
+ path?: never;
28235
+ cookie?: never;
28236
+ };
28237
+ requestBody?: never;
28238
+ responses: {
28239
+ /** @description Successful response */
28240
+ 200: {
28241
+ headers: {
28242
+ [name: string]: unknown;
28243
+ };
28244
+ content: {
28245
+ "application/json": {
28246
+ url: string;
28247
+ expIn: number;
28248
+ };
28249
+ };
28250
+ };
28251
+ /** @description Bad request */
28252
+ 400: {
28253
+ headers: {
28254
+ [name: string]: unknown;
28255
+ };
28256
+ content: {
28257
+ "application/json": {
28258
+ code: string;
28259
+ message: string;
28260
+ issues?: {
28261
+ message: string;
28262
+ }[];
28263
+ context?: unknown;
28264
+ };
28265
+ };
28266
+ };
28267
+ /** @description Unauthorized */
28268
+ 401: {
28269
+ headers: {
28270
+ [name: string]: unknown;
28271
+ };
28272
+ content: {
28273
+ "application/json": {
28274
+ code: string;
28275
+ message: string;
28276
+ issues?: {
28277
+ message: string;
28278
+ }[];
28279
+ context?: unknown;
28280
+ };
28281
+ };
28282
+ };
28283
+ /** @description Forbidden */
28284
+ 403: {
28285
+ headers: {
28286
+ [name: string]: unknown;
28287
+ };
28288
+ content: {
28289
+ "application/json": {
28290
+ code: string;
28291
+ message: string;
28292
+ issues?: {
28293
+ message: string;
28294
+ }[];
28295
+ context?: unknown;
28296
+ };
28297
+ };
28298
+ };
28299
+ /** @description Not found */
28300
+ 404: {
28301
+ headers: {
28302
+ [name: string]: unknown;
28303
+ };
28304
+ content: {
28305
+ "application/json": {
28306
+ code: string;
28307
+ message: string;
28308
+ issues?: {
28309
+ message: string;
28310
+ }[];
28311
+ context?: unknown;
28312
+ };
28313
+ };
28314
+ };
28315
+ /** @description Internal server error */
28316
+ 500: {
28317
+ headers: {
28318
+ [name: string]: unknown;
28319
+ };
28320
+ content: {
28321
+ "application/json": {
28322
+ code: string;
28323
+ message: string;
28324
+ issues?: {
28325
+ message: string;
28326
+ }[];
28327
+ context?: unknown;
28328
+ };
28329
+ };
28330
+ };
28331
+ };
28332
+ };
28333
+ getManagerStatementsReportPdf: {
28334
+ parameters: {
28335
+ query: {
28336
+ /** @description comma separated month start dates */
28337
+ startAts: string;
28338
+ };
28339
+ header?: never;
28340
+ path?: never;
28341
+ cookie?: never;
28342
+ };
28343
+ requestBody?: never;
28344
+ responses: {
28345
+ /** @description Successful response */
28346
+ 200: {
28347
+ headers: {
28348
+ [name: string]: unknown;
28349
+ };
28350
+ content: {
28351
+ "application/json": {
28352
+ url: string;
28353
+ expIn: number;
28354
+ };
28355
+ };
28356
+ };
28357
+ /** @description Bad request */
28358
+ 400: {
28359
+ headers: {
28360
+ [name: string]: unknown;
28361
+ };
28362
+ content: {
28363
+ "application/json": {
28364
+ code: string;
28365
+ message: string;
28366
+ issues?: {
28367
+ message: string;
28368
+ }[];
28369
+ context?: unknown;
28370
+ };
28371
+ };
28372
+ };
28373
+ /** @description Unauthorized */
28374
+ 401: {
28375
+ headers: {
28376
+ [name: string]: unknown;
28377
+ };
28378
+ content: {
28379
+ "application/json": {
28380
+ code: string;
28381
+ message: string;
28382
+ issues?: {
28383
+ message: string;
28384
+ }[];
28385
+ context?: unknown;
28386
+ };
28387
+ };
28388
+ };
28389
+ /** @description Forbidden */
28390
+ 403: {
28391
+ headers: {
28392
+ [name: string]: unknown;
28393
+ };
28394
+ content: {
28395
+ "application/json": {
28396
+ code: string;
28397
+ message: string;
28398
+ issues?: {
28399
+ message: string;
28400
+ }[];
28401
+ context?: unknown;
28402
+ };
28403
+ };
28404
+ };
28405
+ /** @description Not found */
28406
+ 404: {
28407
+ headers: {
28408
+ [name: string]: unknown;
28409
+ };
28410
+ content: {
28411
+ "application/json": {
28412
+ code: string;
28413
+ message: string;
28414
+ issues?: {
28415
+ message: string;
28416
+ }[];
28417
+ context?: unknown;
28418
+ };
28419
+ };
28420
+ };
28421
+ /** @description Internal server error */
28422
+ 500: {
28423
+ headers: {
28424
+ [name: string]: unknown;
28425
+ };
28426
+ content: {
28427
+ "application/json": {
28428
+ code: string;
28429
+ message: string;
28430
+ issues?: {
28431
+ message: string;
28432
+ }[];
28433
+ context?: unknown;
28434
+ };
28435
+ };
28436
+ };
28437
+ };
28438
+ };
28159
28439
  getOwnerStatementSummariesPerLayoutReport: {
28160
28440
  parameters: {
28161
28441
  query: {
@@ -28876,6 +29156,235 @@ export interface operations {
28876
29156
  };
28877
29157
  };
28878
29158
  };
29159
+ getOwnerStatementSummaryPerLayoutDetailsReportPdf: {
29160
+ parameters: {
29161
+ query: {
29162
+ view: "listing" | "month" | "reservation" | "bookingChannel";
29163
+ startAt: string;
29164
+ endAt: string;
29165
+ /** @description comma separated listings */
29166
+ listingIds?: string;
29167
+ currency?: string;
29168
+ viewAs?: "owner" | "manager";
29169
+ layoutId?: string;
29170
+ };
29171
+ header?: never;
29172
+ path: {
29173
+ contactId: string;
29174
+ };
29175
+ cookie?: never;
29176
+ };
29177
+ requestBody?: never;
29178
+ responses: {
29179
+ /** @description Successful response */
29180
+ 200: {
29181
+ headers: {
29182
+ [name: string]: unknown;
29183
+ };
29184
+ content: {
29185
+ "application/json": {
29186
+ contactId?: string;
29187
+ url: string;
29188
+ expIn: number;
29189
+ };
29190
+ };
29191
+ };
29192
+ /** @description Bad request */
29193
+ 400: {
29194
+ headers: {
29195
+ [name: string]: unknown;
29196
+ };
29197
+ content: {
29198
+ "application/json": {
29199
+ code: string;
29200
+ message: string;
29201
+ issues?: {
29202
+ message: string;
29203
+ }[];
29204
+ context?: unknown;
29205
+ };
29206
+ };
29207
+ };
29208
+ /** @description Unauthorized */
29209
+ 401: {
29210
+ headers: {
29211
+ [name: string]: unknown;
29212
+ };
29213
+ content: {
29214
+ "application/json": {
29215
+ code: string;
29216
+ message: string;
29217
+ issues?: {
29218
+ message: string;
29219
+ }[];
29220
+ context?: unknown;
29221
+ };
29222
+ };
29223
+ };
29224
+ /** @description Forbidden */
29225
+ 403: {
29226
+ headers: {
29227
+ [name: string]: unknown;
29228
+ };
29229
+ content: {
29230
+ "application/json": {
29231
+ code: string;
29232
+ message: string;
29233
+ issues?: {
29234
+ message: string;
29235
+ }[];
29236
+ context?: unknown;
29237
+ };
29238
+ };
29239
+ };
29240
+ /** @description Not found */
29241
+ 404: {
29242
+ headers: {
29243
+ [name: string]: unknown;
29244
+ };
29245
+ content: {
29246
+ "application/json": {
29247
+ code: string;
29248
+ message: string;
29249
+ issues?: {
29250
+ message: string;
29251
+ }[];
29252
+ context?: unknown;
29253
+ };
29254
+ };
29255
+ };
29256
+ /** @description Internal server error */
29257
+ 500: {
29258
+ headers: {
29259
+ [name: string]: unknown;
29260
+ };
29261
+ content: {
29262
+ "application/json": {
29263
+ code: string;
29264
+ message: string;
29265
+ issues?: {
29266
+ message: string;
29267
+ }[];
29268
+ context?: unknown;
29269
+ };
29270
+ };
29271
+ };
29272
+ };
29273
+ };
29274
+ getOwnerStatementSummariesPerLayoutReportPdfBatch: {
29275
+ parameters: {
29276
+ query: {
29277
+ startAt: string;
29278
+ endAt: string;
29279
+ /** @description comma separated listings */
29280
+ listingIds?: string;
29281
+ currency?: string;
29282
+ viewAs?: "owner" | "manager";
29283
+ view: "listing" | "month" | "reservation" | "bookingChannel";
29284
+ /** @description comma separated contacts */
29285
+ contactIds?: string;
29286
+ layoutId?: string;
29287
+ };
29288
+ header?: never;
29289
+ path?: never;
29290
+ cookie?: never;
29291
+ };
29292
+ requestBody?: never;
29293
+ responses: {
29294
+ /** @description Successful response */
29295
+ 200: {
29296
+ headers: {
29297
+ [name: string]: unknown;
29298
+ };
29299
+ content: {
29300
+ "application/json": {
29301
+ url: string;
29302
+ expIn: number;
29303
+ };
29304
+ };
29305
+ };
29306
+ /** @description Bad request */
29307
+ 400: {
29308
+ headers: {
29309
+ [name: string]: unknown;
29310
+ };
29311
+ content: {
29312
+ "application/json": {
29313
+ code: string;
29314
+ message: string;
29315
+ issues?: {
29316
+ message: string;
29317
+ }[];
29318
+ context?: unknown;
29319
+ };
29320
+ };
29321
+ };
29322
+ /** @description Unauthorized */
29323
+ 401: {
29324
+ headers: {
29325
+ [name: string]: unknown;
29326
+ };
29327
+ content: {
29328
+ "application/json": {
29329
+ code: string;
29330
+ message: string;
29331
+ issues?: {
29332
+ message: string;
29333
+ }[];
29334
+ context?: unknown;
29335
+ };
29336
+ };
29337
+ };
29338
+ /** @description Forbidden */
29339
+ 403: {
29340
+ headers: {
29341
+ [name: string]: unknown;
29342
+ };
29343
+ content: {
29344
+ "application/json": {
29345
+ code: string;
29346
+ message: string;
29347
+ issues?: {
29348
+ message: string;
29349
+ }[];
29350
+ context?: unknown;
29351
+ };
29352
+ };
29353
+ };
29354
+ /** @description Not found */
29355
+ 404: {
29356
+ headers: {
29357
+ [name: string]: unknown;
29358
+ };
29359
+ content: {
29360
+ "application/json": {
29361
+ code: string;
29362
+ message: string;
29363
+ issues?: {
29364
+ message: string;
29365
+ }[];
29366
+ context?: unknown;
29367
+ };
29368
+ };
29369
+ };
29370
+ /** @description Internal server error */
29371
+ 500: {
29372
+ headers: {
29373
+ [name: string]: unknown;
29374
+ };
29375
+ content: {
29376
+ "application/json": {
29377
+ code: string;
29378
+ message: string;
29379
+ issues?: {
29380
+ message: string;
29381
+ }[];
29382
+ context?: unknown;
29383
+ };
29384
+ };
29385
+ };
29386
+ };
29387
+ };
28879
29388
  getProfitAndLossReport: {
28880
29389
  parameters: {
28881
29390
  query?: {
@@ -1 +0,0 @@
1
- {"version":"7.0.0-dev.20251218.3","root":["../../src/cache.ts","../../src/client.ts","../../src/error.ts","../../src/index.ts","../../src/sec.ts","../../src/types.ts","../../src/generated/openapi-fetch.ts","../../src/generated/v1.ts"]}
@@ -1 +0,0 @@
1
- {"version":"7.0.0-dev.20251218.3","root":["../../src/cache.ts","../../src/client.ts","../../src/error.ts","../../src/index.ts","../../src/sec.ts","../../src/types.ts","../../src/generated/openapi-fetch.ts","../../src/generated/v1.ts"]}