@smartbills/sdk 1.1.0-alpha.31 → 1.1.0-alpha.32
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/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +621 -2
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -7952,6 +7952,617 @@ declare class LoyaltyService extends BaseService {
|
|
|
7952
7952
|
delete(id: string, options?: RequestOptions): Promise<void>;
|
|
7953
7953
|
}
|
|
7954
7954
|
|
|
7955
|
+
declare enum TripStatus {
|
|
7956
|
+
ACTIVE = "ACTIVE",
|
|
7957
|
+
UPCOMING = "UPCOMING",
|
|
7958
|
+
COMPLETED = "COMPLETED",
|
|
7959
|
+
CANCELLED = "CANCELLED"
|
|
7960
|
+
}
|
|
7961
|
+
declare enum PerDiemAllowanceType {
|
|
7962
|
+
DAILY = "DAILY",
|
|
7963
|
+
TRIP_WIDE = "TRIP_WIDE"
|
|
7964
|
+
}
|
|
7965
|
+
declare enum GsaRateAdjustment {
|
|
7966
|
+
USE_AS_IS = "USE_AS_IS",
|
|
7967
|
+
STRICT = "STRICT",
|
|
7968
|
+
RECOMMENDED = "RECOMMENDED",
|
|
7969
|
+
FLEXIBLE = "FLEXIBLE",
|
|
7970
|
+
CUSTOM = "CUSTOM"
|
|
7971
|
+
}
|
|
7972
|
+
interface SBTripTraveler {
|
|
7973
|
+
id: number;
|
|
7974
|
+
firstName: string;
|
|
7975
|
+
lastName: string;
|
|
7976
|
+
name: string;
|
|
7977
|
+
email: string;
|
|
7978
|
+
}
|
|
7979
|
+
interface SBTrip extends SBEntity, SBTimestamps {
|
|
7980
|
+
name: string;
|
|
7981
|
+
description?: string;
|
|
7982
|
+
destination: string;
|
|
7983
|
+
startDate: string;
|
|
7984
|
+
endDate: string;
|
|
7985
|
+
status: TripStatus;
|
|
7986
|
+
traveler: SBTripTraveler;
|
|
7987
|
+
createdByEmployee?: SBTripTraveler;
|
|
7988
|
+
totalSpend: SBMoney;
|
|
7989
|
+
imageUrl?: string;
|
|
7990
|
+
expenseCount: number;
|
|
7991
|
+
}
|
|
7992
|
+
interface SBTripDetail extends SBTrip {
|
|
7993
|
+
expenses: SBTripExpense[];
|
|
7994
|
+
perDiems: SBTripPerDiem[];
|
|
7995
|
+
}
|
|
7996
|
+
interface SBTripExpense {
|
|
7997
|
+
id: number;
|
|
7998
|
+
tripId: number;
|
|
7999
|
+
transaction: SBTransaction;
|
|
8000
|
+
addedAt: string;
|
|
8001
|
+
addedByEmployee?: SBTripTraveler;
|
|
8002
|
+
}
|
|
8003
|
+
interface SBTripPerDiem {
|
|
8004
|
+
id: number;
|
|
8005
|
+
date: string;
|
|
8006
|
+
dailyLimit: number;
|
|
8007
|
+
actualSpend: number;
|
|
8008
|
+
isOverLimit: boolean;
|
|
8009
|
+
overAmount: number;
|
|
8010
|
+
}
|
|
8011
|
+
interface SBTravelPolicy extends SBEntity, SBTimestamps {
|
|
8012
|
+
name: string;
|
|
8013
|
+
isDefault: boolean;
|
|
8014
|
+
perDiemPolicy: SBPerDiemPolicy;
|
|
8015
|
+
}
|
|
8016
|
+
interface SBPerDiemPolicy {
|
|
8017
|
+
id: number;
|
|
8018
|
+
isEnabled: boolean;
|
|
8019
|
+
defaultDailyRate: number;
|
|
8020
|
+
currency: string;
|
|
8021
|
+
allowanceType: PerDiemAllowanceType;
|
|
8022
|
+
useGsaRates: boolean;
|
|
8023
|
+
gsaRateAdjustment: GsaRateAdjustment;
|
|
8024
|
+
gsaRateCustomPercentage?: number;
|
|
8025
|
+
includeRestaurants: boolean;
|
|
8026
|
+
includeAlcoholBars: boolean;
|
|
8027
|
+
includeSupermarketGroceries: boolean;
|
|
8028
|
+
includeEntertainment: boolean;
|
|
8029
|
+
}
|
|
8030
|
+
interface TripListRequest extends PaginationRequest {
|
|
8031
|
+
status?: TripStatus;
|
|
8032
|
+
travelerId?: number;
|
|
8033
|
+
search?: string;
|
|
8034
|
+
fromDate?: string;
|
|
8035
|
+
toDate?: string;
|
|
8036
|
+
}
|
|
8037
|
+
interface TripCreateRequest {
|
|
8038
|
+
name: string;
|
|
8039
|
+
description?: string;
|
|
8040
|
+
destination: string;
|
|
8041
|
+
startDate: string;
|
|
8042
|
+
endDate: string;
|
|
8043
|
+
travelerId: number;
|
|
8044
|
+
currency?: string;
|
|
8045
|
+
imageUrl?: string;
|
|
8046
|
+
}
|
|
8047
|
+
interface TripUpdateRequest {
|
|
8048
|
+
name?: string;
|
|
8049
|
+
description?: string;
|
|
8050
|
+
destination?: string;
|
|
8051
|
+
startDate?: string;
|
|
8052
|
+
endDate?: string;
|
|
8053
|
+
travelerId?: number;
|
|
8054
|
+
imageUrl?: string;
|
|
8055
|
+
}
|
|
8056
|
+
interface TripExpenseRequest {
|
|
8057
|
+
transactionId: number;
|
|
8058
|
+
}
|
|
8059
|
+
interface TripExpenseBatchRequest {
|
|
8060
|
+
transactionIds: number[];
|
|
8061
|
+
}
|
|
8062
|
+
interface TravelPolicyCreateRequest {
|
|
8063
|
+
name: string;
|
|
8064
|
+
isDefault?: boolean;
|
|
8065
|
+
perDiemPolicy: PerDiemPolicyRequest;
|
|
8066
|
+
}
|
|
8067
|
+
interface TravelPolicyUpdateRequest {
|
|
8068
|
+
name?: string;
|
|
8069
|
+
isDefault?: boolean;
|
|
8070
|
+
perDiemPolicy?: PerDiemPolicyRequest;
|
|
8071
|
+
}
|
|
8072
|
+
interface PerDiemPolicyRequest {
|
|
8073
|
+
isEnabled: boolean;
|
|
8074
|
+
defaultDailyRate: number;
|
|
8075
|
+
currency: string;
|
|
8076
|
+
allowanceType: PerDiemAllowanceType;
|
|
8077
|
+
useGsaRates: boolean;
|
|
8078
|
+
gsaRateAdjustment: GsaRateAdjustment;
|
|
8079
|
+
gsaRateCustomPercentage?: number;
|
|
8080
|
+
includeRestaurants: boolean;
|
|
8081
|
+
includeAlcoholBars: boolean;
|
|
8082
|
+
includeSupermarketGroceries: boolean;
|
|
8083
|
+
includeEntertainment: boolean;
|
|
8084
|
+
}
|
|
8085
|
+
|
|
8086
|
+
declare class TripService extends BaseService {
|
|
8087
|
+
list(params?: TripListRequest, options?: RequestOptions): Promise<SBListResponse<SBTrip>>;
|
|
8088
|
+
get(tripId: number, options?: RequestOptions): Promise<SBTripDetail>;
|
|
8089
|
+
create(data: TripCreateRequest, options?: RequestOptions): Promise<SBTrip>;
|
|
8090
|
+
update(tripId: number, data: TripUpdateRequest, options?: RequestOptions): Promise<SBTrip>;
|
|
8091
|
+
delete(tripId: number, options?: RequestOptions): Promise<void>;
|
|
8092
|
+
listExpenses(tripId: number, options?: RequestOptions): Promise<SBTripExpense[]>;
|
|
8093
|
+
addExpense(tripId: number, transactionId: number, options?: RequestOptions): Promise<SBTripExpense>;
|
|
8094
|
+
removeExpense(tripId: number, transactionId: number, options?: RequestOptions): Promise<void>;
|
|
8095
|
+
getPerDiemSummary(tripId: number, options?: RequestOptions): Promise<SBTripPerDiem[]>;
|
|
8096
|
+
}
|
|
8097
|
+
|
|
8098
|
+
declare class TravelPolicyService extends BaseService {
|
|
8099
|
+
list(options?: RequestOptions): Promise<SBTravelPolicy[]>;
|
|
8100
|
+
get(policyId: number, options?: RequestOptions): Promise<SBTravelPolicy>;
|
|
8101
|
+
create(data: TravelPolicyCreateRequest, options?: RequestOptions): Promise<SBTravelPolicy>;
|
|
8102
|
+
update(policyId: number, data: TravelPolicyUpdateRequest, options?: RequestOptions): Promise<SBTravelPolicy>;
|
|
8103
|
+
delete(policyId: number, options?: RequestOptions): Promise<void>;
|
|
8104
|
+
}
|
|
8105
|
+
|
|
8106
|
+
/** Unit a distance/rate is expressed in. Mirrors the API SBDistanceUnit enum. */
|
|
8107
|
+
declare enum DistanceUnit {
|
|
8108
|
+
KILOMETER = "KILOMETER",
|
|
8109
|
+
MILE = "MILE"
|
|
8110
|
+
}
|
|
8111
|
+
/** Shape of a mileage rate. TIERED = CRA-style; FLAT = IRS-style or custom. */
|
|
8112
|
+
declare enum MileageRateType {
|
|
8113
|
+
TIERED = "TIERED",
|
|
8114
|
+
FLAT = "FLAT"
|
|
8115
|
+
}
|
|
8116
|
+
/** A geographic endpoint — used by trips, recordings, saved trips, and route lookups. */
|
|
8117
|
+
interface MileageLocation {
|
|
8118
|
+
address?: string;
|
|
8119
|
+
placeId?: string;
|
|
8120
|
+
latitude?: number;
|
|
8121
|
+
longitude?: number;
|
|
8122
|
+
}
|
|
8123
|
+
/** Denormalized vehicle reference embedded on the trip so it stays readable even if the vehicle is later renamed/deleted. */
|
|
8124
|
+
interface VehicleRef {
|
|
8125
|
+
id: number;
|
|
8126
|
+
name?: string;
|
|
8127
|
+
}
|
|
8128
|
+
/** Calculated / claimed / effective distance for a trip, with its unit. */
|
|
8129
|
+
interface MileageTripDistance {
|
|
8130
|
+
calculated: number;
|
|
8131
|
+
claimed?: number;
|
|
8132
|
+
effective: number;
|
|
8133
|
+
unit: DistanceUnit;
|
|
8134
|
+
}
|
|
8135
|
+
/** Snapshot of the rate that applied at trip creation. */
|
|
8136
|
+
interface MileageTripRate {
|
|
8137
|
+
perUnit: number;
|
|
8138
|
+
source?: string;
|
|
8139
|
+
year: number;
|
|
8140
|
+
region?: string;
|
|
8141
|
+
}
|
|
8142
|
+
/** Optional route enrichment from Google Directions. */
|
|
8143
|
+
interface MileageRoute {
|
|
8144
|
+
polyline?: string;
|
|
8145
|
+
estimatedMinutes?: number;
|
|
8146
|
+
}
|
|
8147
|
+
/** YTD cumulative distance used to drive CRA tiering on a specific trip. */
|
|
8148
|
+
interface MileageTripYtd {
|
|
8149
|
+
cumulativeDistanceBefore: number;
|
|
8150
|
+
}
|
|
8151
|
+
/** Country + state/province pair for vehicle registration. */
|
|
8152
|
+
interface VehicleRegistration {
|
|
8153
|
+
country?: string;
|
|
8154
|
+
state?: string;
|
|
8155
|
+
}
|
|
8156
|
+
/** Effective-from / effective-to window for a mileage rate. */
|
|
8157
|
+
interface EffectivePeriod {
|
|
8158
|
+
from: string;
|
|
8159
|
+
to?: string;
|
|
8160
|
+
}
|
|
8161
|
+
/** Tiered (CRA-style) rate parameters. */
|
|
8162
|
+
interface TieredRate {
|
|
8163
|
+
threshold: number;
|
|
8164
|
+
firstRate: number;
|
|
8165
|
+
additionalRate: number;
|
|
8166
|
+
}
|
|
8167
|
+
/** Flat (IRS-style) rate parameters. */
|
|
8168
|
+
interface FlatRate {
|
|
8169
|
+
rate: number;
|
|
8170
|
+
}
|
|
8171
|
+
/** Distance snapshot on a saved trip (just a typical figure, no calculation history). */
|
|
8172
|
+
interface SavedTripDistance {
|
|
8173
|
+
typical?: number;
|
|
8174
|
+
unit: DistanceUnit;
|
|
8175
|
+
}
|
|
8176
|
+
/** Storage telemetry for a recording's waypoint trail. */
|
|
8177
|
+
interface RecordingWaypoints {
|
|
8178
|
+
count: number;
|
|
8179
|
+
/** Set once the trail spills out of the inline DB column into chunked S3 storage. */
|
|
8180
|
+
s3Prefix?: string;
|
|
8181
|
+
chunkCount: number;
|
|
8182
|
+
}
|
|
8183
|
+
/**
|
|
8184
|
+
* A mileage trip. It IS a transaction under the hood (TPH subclass of SBTransaction), so the
|
|
8185
|
+
* reimbursable amount and expense-report status are surfaced here alongside the trip enrichment.
|
|
8186
|
+
*/
|
|
8187
|
+
interface MileageTrip extends SBEntity, SBTimestamps {
|
|
8188
|
+
transactionId: number;
|
|
8189
|
+
date: string;
|
|
8190
|
+
purpose?: string;
|
|
8191
|
+
note?: string;
|
|
8192
|
+
employeeId?: number;
|
|
8193
|
+
isRoundTrip: boolean;
|
|
8194
|
+
vehicle?: VehicleRef;
|
|
8195
|
+
savedTripId?: number;
|
|
8196
|
+
origin: MileageLocation;
|
|
8197
|
+
destination: MileageLocation;
|
|
8198
|
+
waypointsJson?: string;
|
|
8199
|
+
distance: MileageTripDistance;
|
|
8200
|
+
rate: MileageTripRate;
|
|
8201
|
+
route?: MileageRoute;
|
|
8202
|
+
ytd?: MileageTripYtd;
|
|
8203
|
+
reimbursableAmount: SBMoney;
|
|
8204
|
+
status: string;
|
|
8205
|
+
/** Set once the trip has been added to an expense report. Absent = unreported. */
|
|
8206
|
+
expenseReport?: MileageTripExpenseReport;
|
|
8207
|
+
}
|
|
8208
|
+
/** Report this trip currently belongs to. Status is the trip's place in that report's lifecycle. */
|
|
8209
|
+
interface MileageTripExpenseReport {
|
|
8210
|
+
id: number;
|
|
8211
|
+
status: string;
|
|
8212
|
+
}
|
|
8213
|
+
interface Vehicle extends SBEntity, SBTimestamps {
|
|
8214
|
+
businessId: number;
|
|
8215
|
+
employeeId?: number;
|
|
8216
|
+
name?: string;
|
|
8217
|
+
make?: string;
|
|
8218
|
+
model?: string;
|
|
8219
|
+
year?: number;
|
|
8220
|
+
licensePlate?: string;
|
|
8221
|
+
registration: VehicleRegistration;
|
|
8222
|
+
isDefault: boolean;
|
|
8223
|
+
isActive: boolean;
|
|
8224
|
+
}
|
|
8225
|
+
interface SavedTrip extends SBEntity, SBTimestamps {
|
|
8226
|
+
businessId: number;
|
|
8227
|
+
employeeId?: number;
|
|
8228
|
+
name?: string;
|
|
8229
|
+
defaultPurpose?: string;
|
|
8230
|
+
isActive: boolean;
|
|
8231
|
+
origin: MileageLocation;
|
|
8232
|
+
destination: MileageLocation;
|
|
8233
|
+
waypointsJson?: string;
|
|
8234
|
+
distance: SavedTripDistance;
|
|
8235
|
+
}
|
|
8236
|
+
interface MileageRate extends SBEntity, SBTimestamps {
|
|
8237
|
+
businessId?: number;
|
|
8238
|
+
isSystemRate: boolean;
|
|
8239
|
+
country?: string;
|
|
8240
|
+
region?: string;
|
|
8241
|
+
year: number;
|
|
8242
|
+
source?: string;
|
|
8243
|
+
isDefault: boolean;
|
|
8244
|
+
type: MileageRateType;
|
|
8245
|
+
unit: DistanceUnit;
|
|
8246
|
+
tiered?: TieredRate;
|
|
8247
|
+
flat?: FlatRate;
|
|
8248
|
+
effective: EffectivePeriod;
|
|
8249
|
+
}
|
|
8250
|
+
interface MileageTripCreateRequest {
|
|
8251
|
+
origin: MileageLocation;
|
|
8252
|
+
destination: MileageLocation;
|
|
8253
|
+
waypoints?: string[];
|
|
8254
|
+
vehicle?: VehicleRef;
|
|
8255
|
+
savedTripId?: number;
|
|
8256
|
+
categoryId?: number;
|
|
8257
|
+
employeeId?: number;
|
|
8258
|
+
purpose?: string;
|
|
8259
|
+
note?: string;
|
|
8260
|
+
date?: string;
|
|
8261
|
+
isRoundTrip?: boolean;
|
|
8262
|
+
distance?: {
|
|
8263
|
+
claimed?: number;
|
|
8264
|
+
unit?: DistanceUnit;
|
|
8265
|
+
};
|
|
8266
|
+
/** Pre-resolved polyline (e.g., from a GPS recording's directions lookup). */
|
|
8267
|
+
route?: {
|
|
8268
|
+
polyline?: string;
|
|
8269
|
+
};
|
|
8270
|
+
payerType?: PayerType;
|
|
8271
|
+
}
|
|
8272
|
+
type MileageTripUpdateRequest = Partial<MileageTripCreateRequest>;
|
|
8273
|
+
interface MileageTripListRequest extends PaginationRequest {
|
|
8274
|
+
vehicleId?: number;
|
|
8275
|
+
employeeId?: number;
|
|
8276
|
+
fromDate?: string;
|
|
8277
|
+
toDate?: string;
|
|
8278
|
+
}
|
|
8279
|
+
interface VehicleCreateRequest {
|
|
8280
|
+
name?: string;
|
|
8281
|
+
make?: string;
|
|
8282
|
+
model?: string;
|
|
8283
|
+
year?: number;
|
|
8284
|
+
licensePlate?: string;
|
|
8285
|
+
registration?: VehicleRegistration;
|
|
8286
|
+
isDefault?: boolean;
|
|
8287
|
+
}
|
|
8288
|
+
interface VehicleUpdateRequest extends Partial<VehicleCreateRequest> {
|
|
8289
|
+
isActive?: boolean;
|
|
8290
|
+
}
|
|
8291
|
+
interface SavedTripCreateRequest {
|
|
8292
|
+
name?: string;
|
|
8293
|
+
origin?: MileageLocation;
|
|
8294
|
+
destination?: MileageLocation;
|
|
8295
|
+
waypoints?: string[];
|
|
8296
|
+
distance?: {
|
|
8297
|
+
typical?: number;
|
|
8298
|
+
unit?: DistanceUnit;
|
|
8299
|
+
};
|
|
8300
|
+
defaultPurpose?: string;
|
|
8301
|
+
}
|
|
8302
|
+
type SavedTripUpdateRequest = Partial<SavedTripCreateRequest>;
|
|
8303
|
+
interface MileageRateCreateRequest {
|
|
8304
|
+
country: string;
|
|
8305
|
+
region?: string;
|
|
8306
|
+
year: number;
|
|
8307
|
+
type: MileageRateType;
|
|
8308
|
+
unit?: DistanceUnit;
|
|
8309
|
+
tiered?: TieredRate;
|
|
8310
|
+
flat?: FlatRate;
|
|
8311
|
+
isDefault?: boolean;
|
|
8312
|
+
effective?: Partial<EffectivePeriod>;
|
|
8313
|
+
}
|
|
8314
|
+
type MileageRateUpdateRequest = Partial<MileageRateCreateRequest>;
|
|
8315
|
+
interface SystemRatesRequest {
|
|
8316
|
+
country?: string;
|
|
8317
|
+
region?: string;
|
|
8318
|
+
year?: number;
|
|
8319
|
+
}
|
|
8320
|
+
interface CalculateRouteRequest {
|
|
8321
|
+
origin?: MileageLocation;
|
|
8322
|
+
destination?: MileageLocation;
|
|
8323
|
+
waypoints?: string[];
|
|
8324
|
+
isRoundTrip?: boolean;
|
|
8325
|
+
departureTime?: string;
|
|
8326
|
+
unit?: DistanceUnit;
|
|
8327
|
+
}
|
|
8328
|
+
interface RouteCalculation {
|
|
8329
|
+
distance: {
|
|
8330
|
+
meters: number;
|
|
8331
|
+
kilometers: number;
|
|
8332
|
+
miles: number;
|
|
8333
|
+
};
|
|
8334
|
+
duration: {
|
|
8335
|
+
seconds: number;
|
|
8336
|
+
minutes: number;
|
|
8337
|
+
};
|
|
8338
|
+
polyline?: string;
|
|
8339
|
+
origin?: {
|
|
8340
|
+
address?: string;
|
|
8341
|
+
};
|
|
8342
|
+
destination?: {
|
|
8343
|
+
address?: string;
|
|
8344
|
+
};
|
|
8345
|
+
}
|
|
8346
|
+
/** Lifecycle of a GPS recording session. */
|
|
8347
|
+
declare enum MileageRecordingStatus {
|
|
8348
|
+
ACTIVE = "ACTIVE",
|
|
8349
|
+
COMPLETED = "COMPLETED",
|
|
8350
|
+
CANCELLED = "CANCELLED"
|
|
8351
|
+
}
|
|
8352
|
+
interface WaypointInput {
|
|
8353
|
+
latitude: number;
|
|
8354
|
+
longitude: number;
|
|
8355
|
+
/** ISO 8601 timestamp. */
|
|
8356
|
+
timestamp: string;
|
|
8357
|
+
speed?: number;
|
|
8358
|
+
accuracy?: number;
|
|
8359
|
+
}
|
|
8360
|
+
interface MileageRecording extends SBEntity {
|
|
8361
|
+
businessId: number;
|
|
8362
|
+
employeeId?: number;
|
|
8363
|
+
status: MileageRecordingStatus;
|
|
8364
|
+
distanceUnit: DistanceUnit;
|
|
8365
|
+
startedAt: string;
|
|
8366
|
+
completedAt?: string;
|
|
8367
|
+
cancelledAt?: string;
|
|
8368
|
+
lastWaypointAt?: string;
|
|
8369
|
+
waypoints: RecordingWaypoints;
|
|
8370
|
+
estimatedDistance: number;
|
|
8371
|
+
origin?: MileageLocation;
|
|
8372
|
+
destination?: MileageLocation;
|
|
8373
|
+
route?: MileageRoute;
|
|
8374
|
+
/** Set on completion — the SBMileageExpense created from this recording. */
|
|
8375
|
+
transactionId?: number;
|
|
8376
|
+
}
|
|
8377
|
+
interface StartRecordingRequest {
|
|
8378
|
+
employeeId?: number;
|
|
8379
|
+
distanceUnit?: DistanceUnit;
|
|
8380
|
+
}
|
|
8381
|
+
interface AppendWaypointsRequest {
|
|
8382
|
+
waypoints: WaypointInput[];
|
|
8383
|
+
}
|
|
8384
|
+
interface CompleteRecordingRequest {
|
|
8385
|
+
purpose?: string;
|
|
8386
|
+
note?: string;
|
|
8387
|
+
vehicle?: VehicleRef;
|
|
8388
|
+
categoryId?: number;
|
|
8389
|
+
date?: string;
|
|
8390
|
+
isRoundTrip?: boolean;
|
|
8391
|
+
}
|
|
8392
|
+
interface ResolveRateRequest {
|
|
8393
|
+
country?: string;
|
|
8394
|
+
region?: string;
|
|
8395
|
+
year?: number;
|
|
8396
|
+
distance: number;
|
|
8397
|
+
cumulativeYtdDistanceBefore?: number;
|
|
8398
|
+
isRoundTrip?: boolean;
|
|
8399
|
+
}
|
|
8400
|
+
interface ResolvedRate {
|
|
8401
|
+
rate: {
|
|
8402
|
+
perUnit: number;
|
|
8403
|
+
source?: string;
|
|
8404
|
+
year: number;
|
|
8405
|
+
region?: string;
|
|
8406
|
+
type: MileageRateType;
|
|
8407
|
+
};
|
|
8408
|
+
unit: DistanceUnit;
|
|
8409
|
+
effectiveDistance: number;
|
|
8410
|
+
reimbursableAmount: SBMoney;
|
|
8411
|
+
rateFound: boolean;
|
|
8412
|
+
}
|
|
8413
|
+
|
|
8414
|
+
declare class MileageTripService extends BaseService {
|
|
8415
|
+
list(params?: MileageTripListRequest, options?: RequestOptions): Promise<SBListResponse<MileageTrip>>;
|
|
8416
|
+
get(tripId: number, options?: RequestOptions): Promise<MileageTrip>;
|
|
8417
|
+
create(data: MileageTripCreateRequest, options?: RequestOptions): Promise<MileageTrip>;
|
|
8418
|
+
update(tripId: number, data: MileageTripUpdateRequest, options?: RequestOptions): Promise<MileageTrip>;
|
|
8419
|
+
delete(tripId: number, options?: RequestOptions): Promise<void>;
|
|
8420
|
+
/** Server-side Google Directions proxy — preview a route's distance/duration/polyline. */
|
|
8421
|
+
calculateRoute(data: CalculateRouteRequest, options?: RequestOptions): Promise<RouteCalculation>;
|
|
8422
|
+
}
|
|
8423
|
+
|
|
8424
|
+
/** Employee-scoped vehicle registry. */
|
|
8425
|
+
declare class VehicleService extends BaseService {
|
|
8426
|
+
list(employeeId: number, options?: RequestOptions): Promise<Vehicle[]>;
|
|
8427
|
+
get(employeeId: number, vehicleId: number, options?: RequestOptions): Promise<Vehicle>;
|
|
8428
|
+
create(employeeId: number, data: VehicleCreateRequest, options?: RequestOptions): Promise<Vehicle>;
|
|
8429
|
+
update(employeeId: number, vehicleId: number, data: VehicleUpdateRequest, options?: RequestOptions): Promise<Vehicle>;
|
|
8430
|
+
delete(employeeId: number, vehicleId: number, options?: RequestOptions): Promise<void>;
|
|
8431
|
+
}
|
|
8432
|
+
|
|
8433
|
+
declare class SavedTripService extends BaseService {
|
|
8434
|
+
list(options?: RequestOptions): Promise<SavedTrip[]>;
|
|
8435
|
+
get(savedTripId: number, options?: RequestOptions): Promise<SavedTrip>;
|
|
8436
|
+
create(data: SavedTripCreateRequest, options?: RequestOptions): Promise<SavedTrip>;
|
|
8437
|
+
update(savedTripId: number, data: SavedTripUpdateRequest, options?: RequestOptions): Promise<SavedTrip>;
|
|
8438
|
+
delete(savedTripId: number, options?: RequestOptions): Promise<void>;
|
|
8439
|
+
}
|
|
8440
|
+
|
|
8441
|
+
declare class MileageRateService extends BaseService {
|
|
8442
|
+
/** Read-only system CRA/IRS rates. */
|
|
8443
|
+
listSystemRates(params?: SystemRatesRequest, options?: RequestOptions): Promise<MileageRate[]>;
|
|
8444
|
+
/** The business's own custom rates. */
|
|
8445
|
+
listBusinessRates(options?: RequestOptions): Promise<MileageRate[]>;
|
|
8446
|
+
get(rateId: number, options?: RequestOptions): Promise<MileageRate>;
|
|
8447
|
+
createCustomRate(data: MileageRateCreateRequest, options?: RequestOptions): Promise<MileageRate>;
|
|
8448
|
+
updateCustomRate(rateId: number, data: MileageRateUpdateRequest, options?: RequestOptions): Promise<MileageRate>;
|
|
8449
|
+
deleteCustomRate(rateId: number, options?: RequestOptions): Promise<void>;
|
|
8450
|
+
/** Resolve the rate + reimbursable amount that would apply to a trip (preview, no persistence). */
|
|
8451
|
+
resolveRate(data: ResolveRateRequest, options?: RequestOptions): Promise<ResolvedRate>;
|
|
8452
|
+
}
|
|
8453
|
+
|
|
8454
|
+
/**
|
|
8455
|
+
* GPS recording sessions (Phase 2). Mobile starts a recording, batch-appends waypoints, then
|
|
8456
|
+
* `complete()` finalizes it into a `MileageTrip` (same atomic expense+trip pair as manual entry).
|
|
8457
|
+
*/
|
|
8458
|
+
declare class MileageRecordingService extends BaseService {
|
|
8459
|
+
start(data: StartRecordingRequest, options?: RequestOptions): Promise<MileageRecording>;
|
|
8460
|
+
appendWaypoints(recordingId: number, data: AppendWaypointsRequest, options?: RequestOptions): Promise<MileageRecording>;
|
|
8461
|
+
/** Finalizes the recording and returns the resulting `MileageTrip`. */
|
|
8462
|
+
complete(recordingId: number, data: CompleteRecordingRequest, options?: RequestOptions): Promise<MileageTrip>;
|
|
8463
|
+
cancel(recordingId: number, options?: RequestOptions): Promise<void>;
|
|
8464
|
+
get(recordingId: number, options?: RequestOptions): Promise<MileageRecording>;
|
|
8465
|
+
}
|
|
8466
|
+
|
|
8467
|
+
declare enum BudgetStatus {
|
|
8468
|
+
ACTIVE = "ACTIVE",
|
|
8469
|
+
CLOSED = "CLOSED"
|
|
8470
|
+
}
|
|
8471
|
+
interface SBBudgetOwner {
|
|
8472
|
+
id: number;
|
|
8473
|
+
firstName: string;
|
|
8474
|
+
lastName: string;
|
|
8475
|
+
name: string;
|
|
8476
|
+
email: string;
|
|
8477
|
+
}
|
|
8478
|
+
interface SBBudget extends SBEntity, SBTimestamps {
|
|
8479
|
+
name: string;
|
|
8480
|
+
totalBudget: SBMoney;
|
|
8481
|
+
startDate: string;
|
|
8482
|
+
endDate: string;
|
|
8483
|
+
status: BudgetStatus;
|
|
8484
|
+
createdByEmployee?: SBBudgetOwner;
|
|
8485
|
+
actuals: number;
|
|
8486
|
+
committed: number;
|
|
8487
|
+
remaining: number;
|
|
8488
|
+
utilizationPercentage: number;
|
|
8489
|
+
isOverBudget: boolean;
|
|
8490
|
+
categoryCount: number;
|
|
8491
|
+
}
|
|
8492
|
+
interface SBBudgetDetail extends SBBudget {
|
|
8493
|
+
categories: SBBudgetCategory[];
|
|
8494
|
+
notifications: SBBudgetNotification[];
|
|
8495
|
+
}
|
|
8496
|
+
interface SBBudgetCategory {
|
|
8497
|
+
id: number;
|
|
8498
|
+
name: string;
|
|
8499
|
+
totalBudget: number;
|
|
8500
|
+
parentCategoryId?: number;
|
|
8501
|
+
budgetOwners: SBBudgetOwner[];
|
|
8502
|
+
actuals: number;
|
|
8503
|
+
committed: number;
|
|
8504
|
+
remaining: number;
|
|
8505
|
+
utilizationPercentage: number;
|
|
8506
|
+
isOverBudget: boolean;
|
|
8507
|
+
subCategories: SBBudgetCategory[];
|
|
8508
|
+
}
|
|
8509
|
+
interface SBBudgetNotification {
|
|
8510
|
+
id: number;
|
|
8511
|
+
budgetCategoryId?: number;
|
|
8512
|
+
thresholdPercentage: number;
|
|
8513
|
+
isEnabled: boolean;
|
|
8514
|
+
}
|
|
8515
|
+
interface BudgetListRequest extends PaginationRequest {
|
|
8516
|
+
status?: BudgetStatus;
|
|
8517
|
+
search?: string;
|
|
8518
|
+
}
|
|
8519
|
+
interface BudgetCreateRequest {
|
|
8520
|
+
name: string;
|
|
8521
|
+
totalBudget: number;
|
|
8522
|
+
currency: string;
|
|
8523
|
+
startDate: string;
|
|
8524
|
+
endDate: string;
|
|
8525
|
+
}
|
|
8526
|
+
interface BudgetUpdateRequest {
|
|
8527
|
+
name?: string;
|
|
8528
|
+
totalBudget?: number;
|
|
8529
|
+
startDate?: string;
|
|
8530
|
+
endDate?: string;
|
|
8531
|
+
}
|
|
8532
|
+
interface BudgetCategoryCreateRequest {
|
|
8533
|
+
name: string;
|
|
8534
|
+
totalBudget: number;
|
|
8535
|
+
parentCategoryId?: number;
|
|
8536
|
+
budgetOwnerEmployeeIds?: number[];
|
|
8537
|
+
}
|
|
8538
|
+
interface BudgetCategoryUpdateRequest {
|
|
8539
|
+
name?: string;
|
|
8540
|
+
totalBudget?: number;
|
|
8541
|
+
budgetOwnerEmployeeIds?: number[];
|
|
8542
|
+
}
|
|
8543
|
+
interface BudgetNotificationCreateRequest {
|
|
8544
|
+
budgetCategoryId?: number;
|
|
8545
|
+
thresholdPercentage: number;
|
|
8546
|
+
isEnabled?: boolean;
|
|
8547
|
+
}
|
|
8548
|
+
interface BudgetNotificationUpdateRequest {
|
|
8549
|
+
thresholdPercentage?: number;
|
|
8550
|
+
isEnabled?: boolean;
|
|
8551
|
+
}
|
|
8552
|
+
|
|
8553
|
+
declare class BudgetService extends BaseService {
|
|
8554
|
+
list(params?: BudgetListRequest, options?: RequestOptions): Promise<SBListResponse<SBBudget>>;
|
|
8555
|
+
get(budgetId: number, options?: RequestOptions): Promise<SBBudgetDetail>;
|
|
8556
|
+
create(data: BudgetCreateRequest, options?: RequestOptions): Promise<SBBudget>;
|
|
8557
|
+
update(budgetId: number, data: BudgetUpdateRequest, options?: RequestOptions): Promise<SBBudget>;
|
|
8558
|
+
delete(budgetId: number, options?: RequestOptions): Promise<void>;
|
|
8559
|
+
createCategory(budgetId: number, data: BudgetCategoryCreateRequest, options?: RequestOptions): Promise<SBBudgetCategory>;
|
|
8560
|
+
updateCategory(budgetId: number, categoryId: number, data: BudgetCategoryUpdateRequest, options?: RequestOptions): Promise<SBBudgetCategory>;
|
|
8561
|
+
deleteCategory(budgetId: number, categoryId: number, options?: RequestOptions): Promise<void>;
|
|
8562
|
+
createNotification(budgetId: number, data: BudgetNotificationCreateRequest, options?: RequestOptions): Promise<SBBudgetNotification>;
|
|
8563
|
+
deleteNotification(budgetId: number, notificationId: number, options?: RequestOptions): Promise<void>;
|
|
8564
|
+
}
|
|
8565
|
+
|
|
7955
8566
|
declare class InvoiceService extends BaseService {
|
|
7956
8567
|
list(params?: InvoiceListRequest, options?: RequestOptions): Promise<SBListResponse<SBInvoice>>;
|
|
7957
8568
|
getById(id: number, options?: RequestOptions): Promise<SBInvoice>;
|
|
@@ -9404,6 +10015,14 @@ declare class SmartbillsClient {
|
|
|
9404
10015
|
readonly emailForwarding: EmailForwardingService;
|
|
9405
10016
|
readonly authorizedSenders: AuthorizedSenderService;
|
|
9406
10017
|
readonly loyalty: LoyaltyService;
|
|
10018
|
+
readonly trips: TripService;
|
|
10019
|
+
readonly travelPolicies: TravelPolicyService;
|
|
10020
|
+
readonly mileageTrips: MileageTripService;
|
|
10021
|
+
readonly vehicles: VehicleService;
|
|
10022
|
+
readonly savedTrips: SavedTripService;
|
|
10023
|
+
readonly mileageRates: MileageRateService;
|
|
10024
|
+
readonly mileageRecordings: MileageRecordingService;
|
|
10025
|
+
readonly budgets: BudgetService;
|
|
9407
10026
|
readonly invoices: InvoiceService;
|
|
9408
10027
|
readonly connectedAccounts: ConnectedAccountService;
|
|
9409
10028
|
readonly invoicePayments: InvoicePaymentService;
|
|
@@ -9714,5 +10333,5 @@ type CouponUpdateRequest = Partial<CouponCreateRequest>;
|
|
|
9714
10333
|
declare function uploadFileToS3(uploadUrl: string, file: Blob | ArrayBuffer, contentType: string): Promise<void>;
|
|
9715
10334
|
declare function uploadFileUriToS3(uploadUrl: string, fileUri: string, contentType: string): Promise<void>;
|
|
9716
10335
|
|
|
9717
|
-
export { AccessToken, AppInstallationService, AppInstallationStatus, ApprobationService, AttachmentService, AuditLogService, AuthService, AuthorizedSenderService, BaseService, BillApprovalStatus, BillApprovalType, BillService, SBBillStatus as BillStatus, BillingService, BusinessService, BusinessUserService, CategoryService, ChargeStatus, CheckoutDocumentType, CheckoutPaymentStatus, CheckoutService, CheckoutStatus, ConnectAccountStatus, ConnectService, ConnectedAccountService, ConnectedAccountStatus, ConnectedAccountType, CreditNoteService, CustomerService, DEFAULT_BASE_URL, DELEGATOR_RESOURCE_PREFIX, DelegateService, DepartmentService, DisputeEvidenceSlot, DisputeService, EmailAccountService, EmailAccountStatus, EmailAccountSyncStatus, EmailAccountType, EmailForwardingService, EmployeeService, ErrorCode, ExpenseItemStatus, ExpenseJobService, ExpenseJobStatus, ExpenseReportAuditLogAction, ExpenseReportExpenseService, ExpenseReportPaymentService, ExpenseReportService, ExpenseReportStatus, ExpenseService, ExpenseSplitType, HttpClient, IntegrationService, IntegrationStatus, InvitationService, InvitationStatus, InvoicePaymentService, InvoicePaymentStatus, InvoiceReminderFrequency, InvoiceReminderTiming, InvoiceService, LateFeeFrequency, LateFeeType, LocationService, LoyaltyService, MailboxType, MembershipRole, MembershipService, NotificationService, NotificationType, PayerType, PaymentIntentService, PaymentIntentStatus, PaymentMethodService, PaymentService, PaymentTerms, PayoutInterval, PayoutService, PayoutStatus, ProductImageService, ProductService, ProductVariantService, PromoCodeService, ReceiptPaymentStatus, ReceiptPaymentType, ReceiptService, ReceiptSource, ReceiptType, ReportingService, SBBillStatus, SBInvoiceActivityKind, SBInvoiceStatus, SBPaymentMethodType, SBPaymentStatus, SmartbillsApiError, SmartbillsAuthenticationError, SmartbillsClient, SmartbillsConflictError, SmartbillsError, SmartbillsNetworkError, SmartbillsNotFoundError, SmartbillsPermissionError, SmartbillsQuotaError, SmartbillsRateLimitError, SmartbillsValidationError, StatementService, StatementStatus, SyncTriggerType, TOKEN_EXCHANGE_GRANT_TYPE, TOKEN_TYPE_ACCESS_TOKEN, TableService, TaxService, TransactionService, TransactionSource, TransactionType, UserService, VendorConnectionService, VendorConnectionStatus, VendorService, WorkflowService, WorkflowTriggerType, isApiError, isAuthenticationError, isConflictError, isNetworkError, isNotFoundError, isPermissionError, isQuotaError, isRateLimitError, isRetryableError, isSmartbillsError, isValidationError, uploadFileToS3, uploadFileUriToS3 };
|
|
9718
|
-
export type { AddExpenseToReportRequest, AddExpensesToReportBatchRequest, ApplyCustomerCreditRequest, ApprobationListRequest, AssociateExpenseReportUpdateRequest, AttachInvoiceToWalletResponse, AttachmentListRequest, AttachmentRenameRequest, AuditLogListRequest, BalanceAmount, BillApprovalRequest, BillBatchUpdateRequest, BillCancelRequest, BillCreateRequest, BillListRequest, BillMarkPaidRequest, BillReschedulePaymentRequest, BillRetryPaymentRequest, BillSchedulePaymentRequest, BillSubmitForApprovalRequest, BillTransitionRequest, BillUpdateRequest, BillingInvoiceListRequest, BulkApproveApprobationsRequest, BulkAssignCategoryRequest, BulkAssignExpenseReportRequest, BulkAssignPayerTypeRequest, BulkAssignReportCategoryRequest, BulkAssignVendorRequest, BulkBillApproveRequest, BulkBillCancelPaymentRequest, BulkBillDeleteRequest, BulkBillMarkPaidRequest, BulkBillRemindRequest, BulkBillRetryPaymentRequest, BulkBillSchedulePaymentRequest, BulkBillUnscheduleRequest, BulkBillUpdateRequest, BulkDeleteExpenseReportsRequest, BulkDeleteExpensesRequest, BulkDeleteVendorsRequest, BulkInvoiceActionRequest, BulkInvoiceActionResponse, BulkInvoiceActionResult, BulkMarkReimbursedApprobationsRequest, BulkPlanReimbursementApprobationsRequest, BulkRecallExpenseReportsRequest, BulkRejectApprobationsRequest, BulkRemoveReportExpensesRequest, BulkRequestChangesApprobationsRequest, BulkRevertToReviewApprobationsRequest, BulkSetNoteRequest, BulkSubmitExpenseReportsRequest, BusinessBatchUpdateRequest, BusinessBrandCreateRequest, BusinessBrandUpdateRequest, BusinessCreateRequest, BusinessReminderDefaults, BusinessUpdateRequest, CategoryCreateRequest, CategoryListRequest, CategoryUpdateRequest, CheckoutLineItem, ConfirmUploadFileRequest, ConfirmUploadRequest, ConnectOnboardingRequest, ConnectedAccountBankAccount, ConnectedAccountFees, ConnectedAccountLateFeeSettings, ConnectedAccountLateFeeSettingsRequest, ConnectedAccountOnboardingRequest, ConnectedAccountOnboardingResult, ConnectedAccountProcessing, ConnectedAccountRequirements, ConnectedAccountSettings, ConnectedAccountSettingsRequest, CouponCreateRequest, CouponUpdateRequest, CreateAuthorizedSenderRequest, CreateCheckoutPaymentIntentRequest, CreatePaymentMethodRequest, CreatePayoutRequest, CreatePortalSessionRequest, CredentialProvider, CreditNoteCreateRequest, CreditNoteLineItemRequest, CreditNoteReason, CreditNoteStatus, CustomerCreateRequest, CustomerCreditAdjustmentRequest, CustomerCreditBalance, CustomerCreditBalanceSummary, CustomerCreditLedgerEntry, CustomerCreditLedgerSource, CustomerListRequest, CustomerUpdateRequest, DelegationCreateRequest, DelegationRequestCreateRequest, DelegationUpdateRequest, DepartmentCreateRequest, DepartmentListRequest, DepartmentUpdateRequest, DisputeEvidenceFinalizeRequest, DisputeEvidenceFinalizeResponse, DisputeEvidenceRequest, DisputeEvidenceUploadUrlRequest, DisputeEvidenceUploadUrlResponse, DisputeListRequest, EditExpenseInReportRequest, EmailAccountImapCreateRequest, EmailAccountListRequest, EmailAccountOAuth2CreateRequest, EmailAccountUpdateRequest, EmailForwardingConfigRequest, EmployeeBulkAssignManagerRequest, EmployeeCreateRequest, EmployeeListRequest, EmployeeSetManagerRequest, EmployeeUpdateRequest, ErrorCodeType, ExchangeOnBehalfOfRequest, ExpenseAttachmentDownloadRequest, ExpenseCategoryUpdateRequest, ExpenseExportRequest, ExpenseJobListRequest, ExpenseListRequest, ExpenseNoteUpdateRequest, ExpenseOverTimeRequest, ExpensePayerTypeUpdateRequest, ExpenseReportApproveRequest, ExpenseReportAssignLedgerAccountRequest, ExpenseReportCommentCreateRequest, ExpenseReportCreateRequest, ExpenseReportExportRequest, ExpenseReportListRequest, ExpenseReportPartialReimburseRequest, ExpenseReportPlanReimbursementRequest, ExpenseReportRecallRequest, ExpenseReportReimburseRequest, ExpenseReportRejectRequest, ExpenseReportRequestChangesRequest, ExpenseReportUpdateRequest, ExpenseReviewUpdateRequest, ExpenseSplitItem, ExpenseSplitLineItem, ExpenseSplitRequest, FeeConfigurationRequest, HistoricalSyncRequest, HttpClientConfig, IntegrationCallbackRequest, IntegrationListRequest, InvitationCreateRequest, InvitationListRequest, InvoiceCreateRequest, InvoiceDiscountCreateRequest, InvoiceFeeCreateRequest, InvoiceListRequest, InvoiceMarkPaidRequest, InvoiceNotificationPrefs, InvoicePaymentCreateRequest, InvoicePaymentFilterRequest, InvoiceReminder, InvoiceSummary, InvoiceUpdateRequest, LedgerEntry, LedgerSummary, LocationBatchCreateRequest, LocationBatchUpdateRequest, LocationCreateRequest, LocationImageUrlRequest, LocationListRequest, LocationUpdateRequest, LoyaltyProgramCreateRequest, LoyaltyProgramListRequest, LoyaltyProgramStatus, LoyaltyProgramUpdateRequest, LoyaltyRewardType, LoyaltyRuleType, MailboxUpdateRequest, MembershipCreateRequest, MembershipEmailInviteRequest, MembershipListRequest, MembershipRoleUpdateRequest, NextInvoiceNumberResponse, NotificationListRequest, OnBehalfOfTokenResponse, PagedResult, PaginateBusinessRequest, PaginateTransactionRequest, PaginationRequest, PaymentIntentListRequest, PaymentListRequest, PaymentMethodListRequest, Payout, PayoutListRequest, PayoutListResponse, PayoutSchedule, PresignedUploadFileRequest, PresignedUploadFileResponse, PresignedUploadRequest, PresignedUploadResponse, PreviewPlanChangeRequest, ProductCreateRequest, ProductImageConfirmUploadFileRequest, ProductImageConfirmUploadRequest, ProductImagePresignedUploadFileRequest, ProductImagePresignedUploadFileResponse, ProductImagePresignedUploadRequest, ProductImagePresignedUploadResponse, ProductListRequest, ProductUpdateRequest, ProductVariantCreateRequest, ProductVariantUpdateRequest, PromoCodeCreateRequest, PromoCodeListRequest, PromoCodeUpdateRequest, PublicInvoiceCustomer, PublicInvoiceDiscount, PublicInvoiceEarlyPaymentDiscount, PublicInvoiceExportFormat, PublicInvoiceFee, PublicInvoiceLineItem, PublicInvoiceLineItemTax, PublicInvoiceMerchant, PublicInvoiceMerchantRating, PublicInvoiceMerchantSocial, PublicInvoiceOnlinePaymentInstructions, PublicInvoicePayment, PublicInvoicePaymentCardSnippet, PublicInvoicePaymentInstructions, PublicInvoiceResponse, PublicInvoiceTax, PublicInvoiceWireInstructions, ReceiptCreateRequest, ReceiptListRequest, ReceiptOCRCreateRequest, ReceiptUpdateRequest, RefundCheckoutPaymentRequest, RefundCreateRequest, ReportDateRange, ReportingRequest, RequestOptions, SBAddress, SBAppInstallation, SBApprobationSummary, SBAttachment, SBAuditChainVerifyResult, SBAuditDiff, SBAuditIntegrity, SBAuditLogEntry, SBAuditLogPage, SBAuditSource, SBAuditUserSummary, SBAuthorizedSender, SBBalance, SBBatchResponse, SBBill, SBBillApproval, SBBillApprovalHistoryItem, SBBillAttachment, SBBillBulkActionResponse, SBBillEmployee, SBBillLineItem, SBBillStatusHistoryItem, SBBillStatusSummary, SBBillTax, SBBillTransitionResponse, SBBillVendor, SBBillVendorAccount, SBBillingAddress, SBBillingInvoice, SBBillingInvoiceLine, SBBillingPaymentMethod, SBBillingPlan, SBBillingUsage, SBBulkActionResponse, SBBulkActionResult, SBBusiness, SBBusinessBrand, SBBusinessPlan, SBCanActAsResult, SBCategory, SBCategoryRuleData, SBCharge, SBCheckoutLineItem, SBCheckoutPayment, SBCheckoutPaymentDispute, SBCheckoutPaymentRefund, SBCheckoutTax, SBCheckoutTransactionResponse, SBConnectAccount, SBConnectAccountRequirements, SBConnectDashboardResponse, SBConnectOnboardingResponse, SBConnectedAccount, SBCoordinate, SBCoupon, SBCouponAllocationMethod, SBCouponCustomerSelection, SBCouponTargetSelection, SBCouponTargetType, SBCouponType, SBCreateCheckoutPaymentIntentResponse, SBCreditNote, SBCreditNoteLineItem, SBCustomer, SBDelegation, SBDelegationAuditEvent, SBDelegationRequest, SBDelegationRequestStatus, SBDelegationUser, SBDepartment, SBDepartmentMember, SBDispute, SBDisputeListResponse, SBDisputeStats, SBDowngradeValidation, SBEmailAccount, SBEmailAccountAuthorizeResponse, SBEmailForwardingConfig, SBEmployee, SBEmployeeCategoryBreakdownReport, SBEmployeeDepartment, SBEmployeeLocation, SBEmployeeManager, SBEntity, SBExpenseBulkActionResponse, SBExpenseByCategoryReport, SBExpenseByDayReport, SBExpenseByEmployeeReport, SBExpenseByVendorReport, SBExpenseJob, SBExpenseMonthlySummary, SBExpenseOverTimeDataPoint, SBExpenseOverTimeReport, SBExpenseReport, SBExpenseReportAuditLogEntry, SBExpenseReportBulkActionResponse, SBExpenseReportComment, SBExpenseReportItem, SBExpenseReportSummary, SBExpenseReportTimelineEntry, SBExpenseValidateResponse, SBFileDownloadResponse, SBHistoricalSyncResponse, SBIntegration, SBIntegrationAuthorizeResponse, SBInvitation, SBInvoice, SBInvoiceActivityEvent, SBInvoiceCustomer, SBInvoiceEmployee, SBInvoiceLineItem, SBInvoiceLineItemTax, SBInvoiceMerchant, SBInvoicePayment, SBInvoiceRecurring, SBInvoiceStripeLinks, SBItemVariationRuleData, SBListResponse, SBLocation, SBLocationImage, SBLoyaltyProgram, SBLoyaltyRule, SBLoyaltyRuleBase, SBMailbox, SBMarketplaceApp, SBMembership, SBMembershipBusinessSummary, SBMembershipUserSummary, SBMerchantLedger, SBMoney, SBNotification, SBPagination, SBPayment, SBPaymentCardSnippet, SBPaymentExternalSnippet, SBPaymentIntent, SBPaymentIntentSummary, SBPaymentMethod, SBPaymentMethodBankAccountInfo, SBPaymentMethodBillingDetails, SBPaymentMethodCardInfo, SBPaymentMethodInfo, SBPaymentMethodSetupIntentResponse, SBPayout, SBPlanChangePreview, SBPlanChangePreviewLineItem, SBPortalSession, SBProduct, SBProductImage, SBProductImageDetail, SBProductType, SBProductVariant, SBPromoCode, SBPromoCodeType, SBReceipt, SBReceiptBarcode, SBReceiptBusiness, SBReceiptCustomer, SBReceiptDiscount, SBReceiptDocument, SBReceiptFee, SBReceiptLineItem, SBReceiptPayment, SBReceiptPaymentCard, SBReceiptRefund, SBReceiptTax, SBReceiptTransaction, SBReceiptVendor, SBRefund, SBSessionTokenResponse, SBSetupIntent, SBSharedMailbox, SBSpendRuleData, SBStatement, SBSubscription, SBSyncSession, SBTable, SBTableColumn, SBTableRow, SBTax, SBTaxByCategoryReport, SBTaxByTypeReport, SBTaxByVendorReport, SBTaxSummaryReport, SBTimestamps, SBTransaction, SBTransactionAttachment, SBTransactionMerchant, SBTransactionTax, SBTransactionUploadResponse, SBTransactionVendor, SBUpcomingInvoice, SBUserAccount, SBValidateEmailResponse, SBValidateSharedMailboxResponse, SBVendor, SBVendorBulkActionResponse, SBVendorConnectResponse, SBVendorConnection, SBVendorImportResult, SBVisitRuleData, SBWorkflow, SBWorkflowCondition, SBWorkflowStep, SBWorkflowTestResponse, SmartbillsClientOptions, SmartbillsFieldError, StatementListRequest, StatementListResponse, SubmitDisputeEvidenceRequest, SyncSessionListRequest, TableCreateRequest, TableListRequest, TableUpdateRequest, TaxCreateRequest, TaxListRequest, TaxUpdateRequest, TransactionBatchUpdateRequest, TransactionCreateRequest, TransactionFeeCreateRequest, TransactionFeeRequest, TransactionLineItemCreateRequest, TransactionLineItemRequest, TransactionMerchantAddressRequest, TransactionMerchantRequest, TransactionTaxCreateRequest, TransactionTaxRequest, TransactionUpdateRequest, UpdateInstallationStatusRequest, UpdatePayoutScheduleRequest, UpgradeSubscriptionRequest, UsageHistoryRequest, UserUpdateRequest, VendorBatchUpdateRequest, VendorConnectRequest, VendorCreateRequest, VendorListRequest, VendorMergeRequest, VendorUpdateRequest, WorkflowCreateRequest, WorkflowListRequest, WorkflowTestRequest, WorkflowUpdateRequest };
|
|
10336
|
+
export { AccessToken, AppInstallationService, AppInstallationStatus, ApprobationService, AttachmentService, AuditLogService, AuthService, AuthorizedSenderService, BaseService, BillApprovalStatus, BillApprovalType, BillService, SBBillStatus as BillStatus, BillingService, BudgetService, BudgetStatus, BusinessService, BusinessUserService, CategoryService, ChargeStatus, CheckoutDocumentType, CheckoutPaymentStatus, CheckoutService, CheckoutStatus, ConnectAccountStatus, ConnectService, ConnectedAccountService, ConnectedAccountStatus, ConnectedAccountType, CreditNoteService, CustomerService, DEFAULT_BASE_URL, DELEGATOR_RESOURCE_PREFIX, DelegateService, DepartmentService, DisputeEvidenceSlot, DisputeService, DistanceUnit, EmailAccountService, EmailAccountStatus, EmailAccountSyncStatus, EmailAccountType, EmailForwardingService, EmployeeService, ErrorCode, ExpenseItemStatus, ExpenseJobService, ExpenseJobStatus, ExpenseReportAuditLogAction, ExpenseReportExpenseService, ExpenseReportPaymentService, ExpenseReportService, ExpenseReportStatus, ExpenseService, ExpenseSplitType, GsaRateAdjustment, HttpClient, IntegrationService, IntegrationStatus, InvitationService, InvitationStatus, InvoicePaymentService, InvoicePaymentStatus, InvoiceReminderFrequency, InvoiceReminderTiming, InvoiceService, LateFeeFrequency, LateFeeType, LocationService, LoyaltyService, MailboxType, MembershipRole, MembershipService, MileageRateService, MileageRateType, MileageRecordingService, MileageRecordingStatus, MileageTripService, NotificationService, NotificationType, PayerType, PaymentIntentService, PaymentIntentStatus, PaymentMethodService, PaymentService, PaymentTerms, PayoutInterval, PayoutService, PayoutStatus, PerDiemAllowanceType, ProductImageService, ProductService, ProductVariantService, PromoCodeService, ReceiptPaymentStatus, ReceiptPaymentType, ReceiptService, ReceiptSource, ReceiptType, ReportingService, SBBillStatus, SBInvoiceActivityKind, SBInvoiceStatus, SBPaymentMethodType, SBPaymentStatus, SavedTripService, SmartbillsApiError, SmartbillsAuthenticationError, SmartbillsClient, SmartbillsConflictError, SmartbillsError, SmartbillsNetworkError, SmartbillsNotFoundError, SmartbillsPermissionError, SmartbillsQuotaError, SmartbillsRateLimitError, SmartbillsValidationError, StatementService, StatementStatus, SyncTriggerType, TOKEN_EXCHANGE_GRANT_TYPE, TOKEN_TYPE_ACCESS_TOKEN, TableService, TaxService, TransactionService, TransactionSource, TransactionType, TravelPolicyService, TripService, TripStatus, UserService, VehicleService, VendorConnectionService, VendorConnectionStatus, VendorService, WorkflowService, WorkflowTriggerType, isApiError, isAuthenticationError, isConflictError, isNetworkError, isNotFoundError, isPermissionError, isQuotaError, isRateLimitError, isRetryableError, isSmartbillsError, isValidationError, uploadFileToS3, uploadFileUriToS3 };
|
|
10337
|
+
export type { AddExpenseToReportRequest, AddExpensesToReportBatchRequest, AppendWaypointsRequest, ApplyCustomerCreditRequest, ApprobationListRequest, AssociateExpenseReportUpdateRequest, AttachInvoiceToWalletResponse, AttachmentListRequest, AttachmentRenameRequest, AuditLogListRequest, BalanceAmount, BillApprovalRequest, BillBatchUpdateRequest, BillCancelRequest, BillCreateRequest, BillListRequest, BillMarkPaidRequest, BillReschedulePaymentRequest, BillRetryPaymentRequest, BillSchedulePaymentRequest, BillSubmitForApprovalRequest, BillTransitionRequest, BillUpdateRequest, BillingInvoiceListRequest, BudgetCategoryCreateRequest, BudgetCategoryUpdateRequest, BudgetCreateRequest, BudgetListRequest, BudgetNotificationCreateRequest, BudgetNotificationUpdateRequest, BudgetUpdateRequest, BulkApproveApprobationsRequest, BulkAssignCategoryRequest, BulkAssignExpenseReportRequest, BulkAssignPayerTypeRequest, BulkAssignReportCategoryRequest, BulkAssignVendorRequest, BulkBillApproveRequest, BulkBillCancelPaymentRequest, BulkBillDeleteRequest, BulkBillMarkPaidRequest, BulkBillRemindRequest, BulkBillRetryPaymentRequest, BulkBillSchedulePaymentRequest, BulkBillUnscheduleRequest, BulkBillUpdateRequest, BulkDeleteExpenseReportsRequest, BulkDeleteExpensesRequest, BulkDeleteVendorsRequest, BulkInvoiceActionRequest, BulkInvoiceActionResponse, BulkInvoiceActionResult, BulkMarkReimbursedApprobationsRequest, BulkPlanReimbursementApprobationsRequest, BulkRecallExpenseReportsRequest, BulkRejectApprobationsRequest, BulkRemoveReportExpensesRequest, BulkRequestChangesApprobationsRequest, BulkRevertToReviewApprobationsRequest, BulkSetNoteRequest, BulkSubmitExpenseReportsRequest, BusinessBatchUpdateRequest, BusinessBrandCreateRequest, BusinessBrandUpdateRequest, BusinessCreateRequest, BusinessReminderDefaults, BusinessUpdateRequest, CalculateRouteRequest, CategoryCreateRequest, CategoryListRequest, CategoryUpdateRequest, CheckoutLineItem, CompleteRecordingRequest, ConfirmUploadFileRequest, ConfirmUploadRequest, ConnectOnboardingRequest, ConnectedAccountBankAccount, ConnectedAccountFees, ConnectedAccountLateFeeSettings, ConnectedAccountLateFeeSettingsRequest, ConnectedAccountOnboardingRequest, ConnectedAccountOnboardingResult, ConnectedAccountProcessing, ConnectedAccountRequirements, ConnectedAccountSettings, ConnectedAccountSettingsRequest, CouponCreateRequest, CouponUpdateRequest, CreateAuthorizedSenderRequest, CreateCheckoutPaymentIntentRequest, CreatePaymentMethodRequest, CreatePayoutRequest, CreatePortalSessionRequest, CredentialProvider, CreditNoteCreateRequest, CreditNoteLineItemRequest, CreditNoteReason, CreditNoteStatus, CustomerCreateRequest, CustomerCreditAdjustmentRequest, CustomerCreditBalance, CustomerCreditBalanceSummary, CustomerCreditLedgerEntry, CustomerCreditLedgerSource, CustomerListRequest, CustomerUpdateRequest, DelegationCreateRequest, DelegationRequestCreateRequest, DelegationUpdateRequest, DepartmentCreateRequest, DepartmentListRequest, DepartmentUpdateRequest, DisputeEvidenceFinalizeRequest, DisputeEvidenceFinalizeResponse, DisputeEvidenceRequest, DisputeEvidenceUploadUrlRequest, DisputeEvidenceUploadUrlResponse, DisputeListRequest, EditExpenseInReportRequest, EffectivePeriod, EmailAccountImapCreateRequest, EmailAccountListRequest, EmailAccountOAuth2CreateRequest, EmailAccountUpdateRequest, EmailForwardingConfigRequest, EmployeeBulkAssignManagerRequest, EmployeeCreateRequest, EmployeeListRequest, EmployeeSetManagerRequest, EmployeeUpdateRequest, ErrorCodeType, ExchangeOnBehalfOfRequest, ExpenseAttachmentDownloadRequest, ExpenseCategoryUpdateRequest, ExpenseExportRequest, ExpenseJobListRequest, ExpenseListRequest, ExpenseNoteUpdateRequest, ExpenseOverTimeRequest, ExpensePayerTypeUpdateRequest, ExpenseReportApproveRequest, ExpenseReportAssignLedgerAccountRequest, ExpenseReportCommentCreateRequest, ExpenseReportCreateRequest, ExpenseReportExportRequest, ExpenseReportListRequest, ExpenseReportPartialReimburseRequest, ExpenseReportPlanReimbursementRequest, ExpenseReportRecallRequest, ExpenseReportReimburseRequest, ExpenseReportRejectRequest, ExpenseReportRequestChangesRequest, ExpenseReportUpdateRequest, ExpenseReviewUpdateRequest, ExpenseSplitItem, ExpenseSplitLineItem, ExpenseSplitRequest, FeeConfigurationRequest, FlatRate, HistoricalSyncRequest, HttpClientConfig, IntegrationCallbackRequest, IntegrationListRequest, InvitationCreateRequest, InvitationListRequest, InvoiceCreateRequest, InvoiceDiscountCreateRequest, InvoiceFeeCreateRequest, InvoiceListRequest, InvoiceMarkPaidRequest, InvoiceNotificationPrefs, InvoicePaymentCreateRequest, InvoicePaymentFilterRequest, InvoiceReminder, InvoiceSummary, InvoiceUpdateRequest, LedgerEntry, LedgerSummary, LocationBatchCreateRequest, LocationBatchUpdateRequest, LocationCreateRequest, LocationImageUrlRequest, LocationListRequest, LocationUpdateRequest, LoyaltyProgramCreateRequest, LoyaltyProgramListRequest, LoyaltyProgramStatus, LoyaltyProgramUpdateRequest, LoyaltyRewardType, LoyaltyRuleType, MailboxUpdateRequest, MembershipCreateRequest, MembershipEmailInviteRequest, MembershipListRequest, MembershipRoleUpdateRequest, MileageLocation, MileageRate, MileageRateCreateRequest, MileageRateUpdateRequest, MileageRecording, MileageRoute, MileageTrip, MileageTripCreateRequest, MileageTripDistance, MileageTripExpenseReport, MileageTripListRequest, MileageTripRate, MileageTripUpdateRequest, MileageTripYtd, NextInvoiceNumberResponse, NotificationListRequest, OnBehalfOfTokenResponse, PagedResult, PaginateBusinessRequest, PaginateTransactionRequest, PaginationRequest, PaymentIntentListRequest, PaymentListRequest, PaymentMethodListRequest, Payout, PayoutListRequest, PayoutListResponse, PayoutSchedule, PerDiemPolicyRequest, PresignedUploadFileRequest, PresignedUploadFileResponse, PresignedUploadRequest, PresignedUploadResponse, PreviewPlanChangeRequest, ProductCreateRequest, ProductImageConfirmUploadFileRequest, ProductImageConfirmUploadRequest, ProductImagePresignedUploadFileRequest, ProductImagePresignedUploadFileResponse, ProductImagePresignedUploadRequest, ProductImagePresignedUploadResponse, ProductListRequest, ProductUpdateRequest, ProductVariantCreateRequest, ProductVariantUpdateRequest, PromoCodeCreateRequest, PromoCodeListRequest, PromoCodeUpdateRequest, PublicInvoiceCustomer, PublicInvoiceDiscount, PublicInvoiceEarlyPaymentDiscount, PublicInvoiceExportFormat, PublicInvoiceFee, PublicInvoiceLineItem, PublicInvoiceLineItemTax, PublicInvoiceMerchant, PublicInvoiceMerchantRating, PublicInvoiceMerchantSocial, PublicInvoiceOnlinePaymentInstructions, PublicInvoicePayment, PublicInvoicePaymentCardSnippet, PublicInvoicePaymentInstructions, PublicInvoiceResponse, PublicInvoiceTax, PublicInvoiceWireInstructions, ReceiptCreateRequest, ReceiptListRequest, ReceiptOCRCreateRequest, ReceiptUpdateRequest, RecordingWaypoints, RefundCheckoutPaymentRequest, RefundCreateRequest, ReportDateRange, ReportingRequest, RequestOptions, ResolveRateRequest, ResolvedRate, RouteCalculation, SBAddress, SBAppInstallation, SBApprobationSummary, SBAttachment, SBAuditChainVerifyResult, SBAuditDiff, SBAuditIntegrity, SBAuditLogEntry, SBAuditLogPage, SBAuditSource, SBAuditUserSummary, SBAuthorizedSender, SBBalance, SBBatchResponse, SBBill, SBBillApproval, SBBillApprovalHistoryItem, SBBillAttachment, SBBillBulkActionResponse, SBBillEmployee, SBBillLineItem, SBBillStatusHistoryItem, SBBillStatusSummary, SBBillTax, SBBillTransitionResponse, SBBillVendor, SBBillVendorAccount, SBBillingAddress, SBBillingInvoice, SBBillingInvoiceLine, SBBillingPaymentMethod, SBBillingPlan, SBBillingUsage, SBBudget, SBBudgetCategory, SBBudgetDetail, SBBudgetNotification, SBBudgetOwner, SBBulkActionResponse, SBBulkActionResult, SBBusiness, SBBusinessBrand, SBBusinessPlan, SBCanActAsResult, SBCategory, SBCategoryRuleData, SBCharge, SBCheckoutLineItem, SBCheckoutPayment, SBCheckoutPaymentDispute, SBCheckoutPaymentRefund, SBCheckoutTax, SBCheckoutTransactionResponse, SBConnectAccount, SBConnectAccountRequirements, SBConnectDashboardResponse, SBConnectOnboardingResponse, SBConnectedAccount, SBCoordinate, SBCoupon, SBCouponAllocationMethod, SBCouponCustomerSelection, SBCouponTargetSelection, SBCouponTargetType, SBCouponType, SBCreateCheckoutPaymentIntentResponse, SBCreditNote, SBCreditNoteLineItem, SBCustomer, SBDelegation, SBDelegationAuditEvent, SBDelegationRequest, SBDelegationRequestStatus, SBDelegationUser, SBDepartment, SBDepartmentMember, SBDispute, SBDisputeListResponse, SBDisputeStats, SBDowngradeValidation, SBEmailAccount, SBEmailAccountAuthorizeResponse, SBEmailForwardingConfig, SBEmployee, SBEmployeeCategoryBreakdownReport, SBEmployeeDepartment, SBEmployeeLocation, SBEmployeeManager, SBEntity, SBExpenseBulkActionResponse, SBExpenseByCategoryReport, SBExpenseByDayReport, SBExpenseByEmployeeReport, SBExpenseByVendorReport, SBExpenseJob, SBExpenseMonthlySummary, SBExpenseOverTimeDataPoint, SBExpenseOverTimeReport, SBExpenseReport, SBExpenseReportAuditLogEntry, SBExpenseReportBulkActionResponse, SBExpenseReportComment, SBExpenseReportItem, SBExpenseReportSummary, SBExpenseReportTimelineEntry, SBExpenseValidateResponse, SBFileDownloadResponse, SBHistoricalSyncResponse, SBIntegration, SBIntegrationAuthorizeResponse, SBInvitation, SBInvoice, SBInvoiceActivityEvent, SBInvoiceCustomer, SBInvoiceEmployee, SBInvoiceLineItem, SBInvoiceLineItemTax, SBInvoiceMerchant, SBInvoicePayment, SBInvoiceRecurring, SBInvoiceStripeLinks, SBItemVariationRuleData, SBListResponse, SBLocation, SBLocationImage, SBLoyaltyProgram, SBLoyaltyRule, SBLoyaltyRuleBase, SBMailbox, SBMarketplaceApp, SBMembership, SBMembershipBusinessSummary, SBMembershipUserSummary, SBMerchantLedger, SBMoney, SBNotification, SBPagination, SBPayment, SBPaymentCardSnippet, SBPaymentExternalSnippet, SBPaymentIntent, SBPaymentIntentSummary, SBPaymentMethod, SBPaymentMethodBankAccountInfo, SBPaymentMethodBillingDetails, SBPaymentMethodCardInfo, SBPaymentMethodInfo, SBPaymentMethodSetupIntentResponse, SBPayout, SBPerDiemPolicy, SBPlanChangePreview, SBPlanChangePreviewLineItem, SBPortalSession, SBProduct, SBProductImage, SBProductImageDetail, SBProductType, SBProductVariant, SBPromoCode, SBPromoCodeType, SBReceipt, SBReceiptBarcode, SBReceiptBusiness, SBReceiptCustomer, SBReceiptDiscount, SBReceiptDocument, SBReceiptFee, SBReceiptLineItem, SBReceiptPayment, SBReceiptPaymentCard, SBReceiptRefund, SBReceiptTax, SBReceiptTransaction, SBReceiptVendor, SBRefund, SBSessionTokenResponse, SBSetupIntent, SBSharedMailbox, SBSpendRuleData, SBStatement, SBSubscription, SBSyncSession, SBTable, SBTableColumn, SBTableRow, SBTax, SBTaxByCategoryReport, SBTaxByTypeReport, SBTaxByVendorReport, SBTaxSummaryReport, SBTimestamps, SBTransaction, SBTransactionAttachment, SBTransactionMerchant, SBTransactionTax, SBTransactionUploadResponse, SBTransactionVendor, SBTravelPolicy, SBTrip, SBTripDetail, SBTripExpense, SBTripPerDiem, SBTripTraveler, SBUpcomingInvoice, SBUserAccount, SBValidateEmailResponse, SBValidateSharedMailboxResponse, SBVendor, SBVendorBulkActionResponse, SBVendorConnectResponse, SBVendorConnection, SBVendorImportResult, SBVisitRuleData, SBWorkflow, SBWorkflowCondition, SBWorkflowStep, SBWorkflowTestResponse, SavedTrip, SavedTripCreateRequest, SavedTripDistance, SavedTripUpdateRequest, SmartbillsClientOptions, SmartbillsFieldError, StartRecordingRequest, StatementListRequest, StatementListResponse, SubmitDisputeEvidenceRequest, SyncSessionListRequest, SystemRatesRequest, TableCreateRequest, TableListRequest, TableUpdateRequest, TaxCreateRequest, TaxListRequest, TaxUpdateRequest, TieredRate, TransactionBatchUpdateRequest, TransactionCreateRequest, TransactionFeeCreateRequest, TransactionFeeRequest, TransactionLineItemCreateRequest, TransactionLineItemRequest, TransactionMerchantAddressRequest, TransactionMerchantRequest, TransactionTaxCreateRequest, TransactionTaxRequest, TransactionUpdateRequest, TravelPolicyCreateRequest, TravelPolicyUpdateRequest, TripCreateRequest, TripExpenseBatchRequest, TripExpenseRequest, TripListRequest, TripUpdateRequest, UpdateInstallationStatusRequest, UpdatePayoutScheduleRequest, UpgradeSubscriptionRequest, UsageHistoryRequest, UserUpdateRequest, Vehicle, VehicleCreateRequest, VehicleRef, VehicleRegistration, VehicleUpdateRequest, VendorBatchUpdateRequest, VendorConnectRequest, VendorCreateRequest, VendorListRequest, VendorMergeRequest, VendorUpdateRequest, WaypointInput, WorkflowCreateRequest, WorkflowListRequest, WorkflowTestRequest, WorkflowUpdateRequest };
|