@vrplatform/api 1.2.33-987 → 1.2.33-989
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/build/main/client.d.ts +1 -1
- package/build/main/client.js +1 -1
- package/build/main/client.js.map +1 -1
- package/build/main/error.js +1 -1
- package/build/main/error.js.map +1 -1
- package/build/main/generated/v1.d.ts +14 -14
- package/build/main/generated/v1.js.map +1 -1
- package/build/main/ingest/types.d.ts +1 -1
- package/build/main/ingest/types.js.map +1 -1
- package/build/module/client.d.ts +1 -1
- package/build/module/client.js +1 -1
- package/build/module/client.js.map +1 -1
- package/build/module/error.js +1 -1
- package/build/module/error.js.map +1 -1
- package/build/module/generated/v1.d.ts +14 -14
- package/build/module/generated/v1.js.map +1 -1
- package/build/module/ingest/types.d.ts +1 -1
- package/build/module/ingest/types.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +4 -1
- package/src/error.ts +1 -1
- package/src/generated/v1.ts +14 -14
- package/src/ingest/types.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PartialBy } from '@
|
|
1
|
+
import type { PartialBy } from '@vrplatform/utils';
|
|
2
2
|
import type { RequestBody, ResponseData } from '../types';
|
|
3
3
|
export type ReservationParam = Omit<RequestBody<'post:/reservations/batch'>['data'][0], 'sourceId'>;
|
|
4
4
|
export type PaymentParam = Omit<RequestBody<'post:/payments/batch'>['data'][0], 'sourceId'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"src/","sources":["ingest/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PartialBy } from '@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"src/","sources":["ingest/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PartialBy } from '@vrplatform/utils';\nimport type { RequestBody, ResponseData } from '../types';\n\nexport type ReservationParam = Omit<\n RequestBody<'post:/reservations/batch'>['data'][0],\n 'sourceId'\n>;\nexport type PaymentParam = Omit<\n RequestBody<'post:/payments/batch'>['data'][0],\n 'sourceId'\n>;\nexport type ListingParam = Omit<\n RequestBody<'post:/listings/batch'>['data'][0],\n 'sourceId'\n>;\nexport type BankRecordParam = Omit<\n RequestBody<'post:/bank-records/batch'>['data'][0],\n 'sourceId'\n>;\nexport type TransactionParam = Omit<\n RequestBody<'post:/transactions/batch'>['data'][0],\n 'sourceId'\n>;\nexport type ContactParam = Omit<\n RequestBody<'post:/contacts/batch'>['data'][0],\n 'sourceId'\n>;\ntype _SourceWithoutTransform = Omit<\n RequestBody<'post:/sources/batch'>['data'][number],\n 'transform'\n> & {\n // this is ONLY for ecosystem ingestion, can be removed once ecosystem does not rely on ingest, but calls batch endpoints\n fileStorageId?: string;\n};\ntype _SourceWithTransform<T> = _SourceWithoutTransform & {\n transform: { type: string; data: T };\n};\nexport type Source<T = undefined> = T extends undefined\n ? _SourceWithoutTransform\n : _SourceWithTransform<T>;\n\nexport type IngestArg = Omit<RequestBody<'post:/sources/batch'>, 'data'> & {\n sessionId?: string;\n tenantId: string;\n};\nexport type IngestFnArg = Omit<Partial<IngestArg>, 'sessionId'> & {\n correlationId?: string;\n};\n\nexport type BatchResponseData = ResponseData<'post:/sources/batch'>['data'][0];\nexport type TypedResponseData<T = undefined> = Omit<\n BatchResponseData,\n 'transform'\n> &\n (T extends undefined\n ? { transform?: never }\n : {\n transform: Omit<BatchResponseData['transform'], 'data'> & {\n data: T;\n };\n });\n\nexport type Impossible<K extends keyof any> = {\n [P in K]: never;\n};\nexport type NoExtraProperties<T, U extends T = T> = U &\n Impossible<Exclude<keyof U, keyof T>>;\n\nexport type ObjectWithSource<T = undefined> = T & {\n source: PartialBy<_SourceWithoutTransform, 'type'>;\n};\n\nexport type IngestReservationInput = NoExtraProperties<\n ObjectWithSource<ReservationParam>\n>;\nexport type IngestPaymentInput = NoExtraProperties<\n ObjectWithSource<PaymentParam>\n>;\nexport type IngestListingInput = NoExtraProperties<\n ObjectWithSource<ListingParam>\n>;\nexport type IngestBankRecordInput = NoExtraProperties<\n ObjectWithSource<BankRecordParam>\n>;\nexport type IngestTransactionInput = NoExtraProperties<\n ObjectWithSource<TransactionParam>\n>;\nexport type IngestContactInput = NoExtraProperties<\n ObjectWithSource<ContactParam>\n>;\nexport type IngestSourceInput = NoExtraProperties<Source>;\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.2.33-
|
|
6
|
+
"version": "1.2.33-989",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "build/main/index.js",
|
|
9
9
|
"module": "build/module/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"openapi-typescript-helpers": "^0.0.15"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@
|
|
18
|
+
"@vrplatform/utils": "^4.9.45",
|
|
19
19
|
"@sentry/core": "*"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
package/src/client.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { type RetryableFetchParams, useRetryableFetch } from '@finalytic/utils';
|
|
2
1
|
import * as Sentry from '@sentry/core';
|
|
2
|
+
import {
|
|
3
|
+
type RetryableFetchParams,
|
|
4
|
+
useRetryableFetch,
|
|
5
|
+
} from '@vrplatform/utils';
|
|
3
6
|
import createClient from 'openapi-fetch';
|
|
4
7
|
import { useCache } from './cache';
|
|
5
8
|
import type { paths } from './generated/v1';
|
package/src/error.ts
CHANGED
package/src/generated/v1.ts
CHANGED
|
@@ -17657,8 +17657,8 @@ export interface operations {
|
|
|
17657
17657
|
content: {
|
|
17658
17658
|
"application/json": {
|
|
17659
17659
|
name: string;
|
|
17660
|
-
/** @enum {string
|
|
17661
|
-
status?: "active" | "inactive"
|
|
17660
|
+
/** @enum {string} */
|
|
17661
|
+
status?: "active" | "inactive";
|
|
17662
17662
|
/** @enum {string} */
|
|
17663
17663
|
type: "ledger" | "bank" | "recurringFee" | "nonPosting";
|
|
17664
17664
|
id: string;
|
|
@@ -17784,13 +17784,13 @@ export interface operations {
|
|
|
17784
17784
|
content: {
|
|
17785
17785
|
"application/json": {
|
|
17786
17786
|
name?: string;
|
|
17787
|
-
/** @enum {string
|
|
17788
|
-
status?: "active" | "inactive"
|
|
17787
|
+
/** @enum {string} */
|
|
17788
|
+
status?: "active" | "inactive";
|
|
17789
17789
|
/** @enum {string} */
|
|
17790
17790
|
type?: "ledger" | "bank" | "recurringFee" | "nonPosting";
|
|
17791
17791
|
assignments?: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[] | null;
|
|
17792
17792
|
offsetAccountId?: string | null;
|
|
17793
|
-
categoryId?: string
|
|
17793
|
+
categoryId?: string;
|
|
17794
17794
|
banking?: {
|
|
17795
17795
|
/** @enum {string|null} */
|
|
17796
17796
|
category?: "trust" | "operating" | "external" | null;
|
|
@@ -17811,8 +17811,8 @@ export interface operations {
|
|
|
17811
17811
|
content: {
|
|
17812
17812
|
"application/json": {
|
|
17813
17813
|
name: string;
|
|
17814
|
-
/** @enum {string
|
|
17815
|
-
status?: "active" | "inactive"
|
|
17814
|
+
/** @enum {string} */
|
|
17815
|
+
status?: "active" | "inactive";
|
|
17816
17816
|
/** @enum {string} */
|
|
17817
17817
|
type: "ledger" | "bank" | "recurringFee" | "nonPosting";
|
|
17818
17818
|
id: string;
|
|
@@ -18026,8 +18026,8 @@ export interface operations {
|
|
|
18026
18026
|
"application/json": {
|
|
18027
18027
|
data: {
|
|
18028
18028
|
name: string;
|
|
18029
|
-
/** @enum {string
|
|
18030
|
-
status?: "active" | "inactive"
|
|
18029
|
+
/** @enum {string} */
|
|
18030
|
+
status?: "active" | "inactive";
|
|
18031
18031
|
/** @enum {string} */
|
|
18032
18032
|
type: "ledger" | "bank" | "recurringFee" | "nonPosting";
|
|
18033
18033
|
id: string;
|
|
@@ -18161,13 +18161,13 @@ export interface operations {
|
|
|
18161
18161
|
content: {
|
|
18162
18162
|
"application/json": {
|
|
18163
18163
|
name: string;
|
|
18164
|
-
/** @enum {string
|
|
18165
|
-
status?: "active" | "inactive"
|
|
18164
|
+
/** @enum {string} */
|
|
18165
|
+
status?: "active" | "inactive";
|
|
18166
18166
|
/** @enum {string} */
|
|
18167
18167
|
type: "ledger" | "bank" | "recurringFee" | "nonPosting";
|
|
18168
18168
|
assignments?: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[] | null;
|
|
18169
18169
|
offsetAccountId?: string | null;
|
|
18170
|
-
categoryId?: string
|
|
18170
|
+
categoryId?: string;
|
|
18171
18171
|
banking?: {
|
|
18172
18172
|
/** @enum {string|null} */
|
|
18173
18173
|
category?: "trust" | "operating" | "external" | null;
|
|
@@ -18188,8 +18188,8 @@ export interface operations {
|
|
|
18188
18188
|
content: {
|
|
18189
18189
|
"application/json": {
|
|
18190
18190
|
name: string;
|
|
18191
|
-
/** @enum {string
|
|
18192
|
-
status?: "active" | "inactive"
|
|
18191
|
+
/** @enum {string} */
|
|
18192
|
+
status?: "active" | "inactive";
|
|
18193
18193
|
/** @enum {string} */
|
|
18194
18194
|
type: "ledger" | "bank" | "recurringFee" | "nonPosting";
|
|
18195
18195
|
id: string;
|
package/src/ingest/types.ts
CHANGED