@servicetitan/moneyout-api-client 1.37.0-beta.180 → 1.37.0-beta.183

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.
@@ -29,6 +29,13 @@ export interface ICardTransactions {
29
29
  * @sortDirection (optional) Sort direction: "asc" or "desc". Defaults to "desc".
30
30
  */
31
31
  list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse>;
32
+ /**
33
+ * Reclassify a card transaction, keyed off the `card_transactions` PARENT id (not the expense
34
+ child). Writes the target classification to the provider first, then mirrors locally. Every
35
+ MOS-side refusal is a 400/404/409; a 400 carries a machine-readable `code`, so a code-less 400
36
+ on this route is adapter-origin (ARCH-EXP-RECLASS-001, seam-reclassify-endpoint).
37
+ */
38
+ reclassify(tenantId: number, cardTransactionId: string, request: ReclassifyCardTransactionRequest, cancelToken?: CancelToken): AxiosPromise<void>;
32
39
  }
33
40
  export declare const BASE_URL_TOKEN_CardTransactions: import("@servicetitan/react-ioc").SymbolToken<string>;
34
41
  export declare class CardTransactions implements ICardTransactions {
@@ -64,6 +71,13 @@ export declare class CardTransactions implements ICardTransactions {
64
71
  * @sortDirection (optional) Sort direction: "asc" or "desc". Defaults to "desc".
65
72
  */
66
73
  list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse>;
74
+ /**
75
+ * Reclassify a card transaction, keyed off the `card_transactions` PARENT id (not the expense
76
+ child). Writes the target classification to the provider first, then mirrors locally. Every
77
+ MOS-side refusal is a 400/404/409; a 400 carries a machine-readable `code`, so a code-less 400
78
+ on this route is adapter-origin (ARCH-EXP-RECLASS-001, seam-reclassify-endpoint).
79
+ */
80
+ reclassify(tenantId: number, cardTransactionId: string, request: ReclassifyCardTransactionRequest, cancelToken?: CancelToken): AxiosPromise<void>;
67
81
  }
68
82
  /** Generic paged response wrapper with total count for pagination support. */
69
83
  export interface PagedResponseOfCardTransactionResponse {
@@ -160,4 +174,15 @@ currently always null pending Level-3 provider data wiring (deferred to a follow
160
174
  field: currently always null pending Level-3 provider data wiring (deferred to a follow-up ticket). */
161
175
  shipping?: number | undefined;
162
176
  }
177
+ /** Body of `PATCH /v1/tenant/{tenantId}/card-transactions/{cardTransactionId}/classification`. Classification is a string parsed at the boundary (an unknown/out-of-enum value is a coded 400, not a bind failure), so the request contract is final across all phases — every named classification is a valid target from phase 1, even when its local behaviour lands in a later phase. JobNumber/ProjectNumber name the target for a Job/Project reclassify and are unused for the other targets. */
178
+ export interface ReclassifyCardTransactionRequest {
179
+ /** The target classification: `NotStExpense`, `Job`, `Project`, `NotSet`, or
180
+ `BillPayment`. Parsed by `ExpenseInputValidator.ParseReclassificationTarget`; a malformed
181
+ or out-of-enum value is refused as a 400 with `code: unsupported_classification`. */
182
+ classification: string;
183
+ /** The job reference number, for a `Job` target. Ignored for other targets. */
184
+ jobNumber?: string | undefined;
185
+ /** The project reference number, for a `Project` target. Ignored for other targets. */
186
+ projectNumber?: string | undefined;
187
+ }
163
188
  //# sourceMappingURL=card-transactions.api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-transactions.api.d.ts","sourceRoot":"","sources":["../src/card-transactions.api.ts"],"names":[],"mappings":"AASA,OAAc,EAAsB,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAM7E,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,WAAW,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,aAAa,EAAE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SAAS,CAAC;IACpC,kGAAkG;IAClG,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,sGAAsG;IACtG,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,2GAA2G;IAC3G,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;2CACuC;IACvC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,2IAA2I;IAC3I,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,gIAAgI;IAChI,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,qIAAqI;IACrI,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,uHAAuH;IACvH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B;+FAC2F;IAC3F,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;sGACkG;IAClG,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,weAAwe;AACxe,MAAM,WAAW,gCAAgC;IAC7C;;oFAEgF;IAChF,cAAc,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,uFAAuF;IACvF,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC"}
@@ -120,6 +120,31 @@ export class CardTransactions {
120
120
  };
121
121
  return makeCodedException(axios.request(options_));
122
122
  }
123
+ /**
124
+ * Reclassify a card transaction, keyed off the `card_transactions` PARENT id (not the expense
125
+ child). Writes the target classification to the provider first, then mirrors locally. Every
126
+ MOS-side refusal is a 400/404/409; a 400 carries a machine-readable `code`, so a code-less 400
127
+ on this route is adapter-origin (ARCH-EXP-RECLASS-001, seam-reclassify-endpoint).
128
+ */ reclassify(tenantId, cardTransactionId, request, cancelToken) {
129
+ let url_ = "/v1/tenant/{tenantId}/card-transactions/{cardTransactionId}/classification";
130
+ if (tenantId === undefined || tenantId === null) throw new Error("The parameter 'tenantId' must be defined.");
131
+ url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
132
+ if (cardTransactionId === undefined || cardTransactionId === null) throw new Error("The parameter 'cardTransactionId' must be defined.");
133
+ url_ = url_.replace("{cardTransactionId}", encodeURIComponent("" + cardTransactionId));
134
+ url_ = url_.replace(/[?&]$/, "");
135
+ const content_ = request;
136
+ let options_ = {
137
+ baseURL: this.baseUrl,
138
+ cancelToken,
139
+ data: content_,
140
+ url: url_,
141
+ method: "PATCH",
142
+ headers: {
143
+ "Content-Type": "application/json"
144
+ }
145
+ };
146
+ return makeCodedException(axios.request(options_));
147
+ }
123
148
  constructor(baseUrl = ""){
124
149
  _define_property(this, "baseUrl", void 0);
125
150
  _define_property(this, "jsonParseReviver", void 0);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/card-transactions.api.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n//----------------------\n// <auto-generated>\n// Generated with ApiClientGenerator, using the NSwag toolchain\n// </auto-generated>\n//----------------------\n// ReSharper disable InconsistentNaming\n\nimport axios, { AxiosRequestConfig, AxiosPromise, CancelToken } from 'axios';\nimport { injectable, inject, optional, symbolToken } from '@servicetitan/react-ioc';\nimport { makeCodedException, makeContent } from './utils';\n// @ts-ignore: needed for Date serialization if a DateTime parameter has an Unspecified attribute on it\nimport moment from 'moment';\n\nexport interface ICardTransactions {\n /**\n * List card transactions with optional filters.\n * @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this\n endpoint's response carries), not the linked expense transaction's id.\n * @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.\n * @jobIds (optional) Filter by job IDs. Matches Expense rows only.\n * @projectIds (optional) Filter by project IDs. Matches Expense rows only.\n * @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired\n id matches nothing (no existence check) — same behavior as Ids.\n * @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no\n linked purchase order to compare against). An unknown, foreign, or retired id matches nothing\n (no existence check).\n * @syncStatuses (optional) Filter by sync statuses (e.g. \"Pending\", \"Posted\", \"Exported\"). Matches Expense rows only.\n * @transactionStatuses (optional) Filter by transaction statuses (e.g. \"Pending\", \"Complete\", \"Declined\"). Matches Expense rows only.\n * @receiptStatuses (optional) Filter by receipt statuses (e.g. \"Missing\", \"Attached\", \"Verified\"). Matches Expense rows only.\n * @dateFrom (optional) Filter by transaction date (inclusive start).\n * @dateTo (optional) Filter by transaction date (inclusive end).\n * @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.\n * @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.\n * @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for\n Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.\n Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively\n with every other filter on this request.\n * @page (optional) Page number (1-based). Defaults to 1.\n * @pageSize (optional) Number of items per page. Defaults to 50.\n * @sortBy (optional) Property name to sort by (e.g. \"transactionDate\", \"total\"). Defaults to \"transactionDate\".\n * @sortDirection (optional) Sort direction: \"asc\" or \"desc\". Defaults to \"desc\".\n */\n list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse>;\n}\n\nexport const BASE_URL_TOKEN_CardTransactions = symbolToken<string>('BASE_URL_TOKEN', false);\n\n@injectable()\nexport class CardTransactions implements ICardTransactions {\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\n\n constructor(@inject(BASE_URL_TOKEN_CardTransactions) @optional() private readonly baseUrl = \"\") {\n }\n\n /**\n * List card transactions with optional filters.\n * @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this\n endpoint's response carries), not the linked expense transaction's id.\n * @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.\n * @jobIds (optional) Filter by job IDs. Matches Expense rows only.\n * @projectIds (optional) Filter by project IDs. Matches Expense rows only.\n * @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired\n id matches nothing (no existence check) — same behavior as Ids.\n * @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no\n linked purchase order to compare against). An unknown, foreign, or retired id matches nothing\n (no existence check).\n * @syncStatuses (optional) Filter by sync statuses (e.g. \"Pending\", \"Posted\", \"Exported\"). Matches Expense rows only.\n * @transactionStatuses (optional) Filter by transaction statuses (e.g. \"Pending\", \"Complete\", \"Declined\"). Matches Expense rows only.\n * @receiptStatuses (optional) Filter by receipt statuses (e.g. \"Missing\", \"Attached\", \"Verified\"). Matches Expense rows only.\n * @dateFrom (optional) Filter by transaction date (inclusive start).\n * @dateTo (optional) Filter by transaction date (inclusive end).\n * @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.\n * @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.\n * @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for\n Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.\n Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively\n with every other filter on this request.\n * @page (optional) Page number (1-based). Defaults to 1.\n * @pageSize (optional) Number of items per page. Defaults to 50.\n * @sortBy (optional) Property name to sort by (e.g. \"transactionDate\", \"total\"). Defaults to \"transactionDate\".\n * @sortDirection (optional) Sort direction: \"asc\" or \"desc\". Defaults to \"desc\".\n */\n list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse> {\n let url_ = \"/v1/tenant/{tenantId}/card-transactions?\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\n if (ids !== undefined && ids !== null)\n ids && ids.forEach(item => { url_ += \"ids=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (vendorIds !== undefined && vendorIds !== null)\n vendorIds && vendorIds.forEach(item => { url_ += \"vendorIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (jobIds !== undefined && jobIds !== null)\n jobIds && jobIds.forEach(item => { url_ += \"jobIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (projectIds !== undefined && projectIds !== null)\n projectIds && projectIds.forEach(item => { url_ += \"projectIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (cardholderIds !== undefined && cardholderIds !== null)\n cardholderIds && cardholderIds.forEach(item => { url_ += \"cardholderIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (purchaseOrderIds !== undefined && purchaseOrderIds !== null)\n purchaseOrderIds && purchaseOrderIds.forEach(item => { url_ += \"purchaseOrderIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (syncStatuses !== undefined && syncStatuses !== null)\n syncStatuses && syncStatuses.forEach(item => { url_ += \"syncStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (transactionStatuses !== undefined && transactionStatuses !== null)\n transactionStatuses && transactionStatuses.forEach(item => { url_ += \"transactionStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (receiptStatuses !== undefined && receiptStatuses !== null)\n receiptStatuses && receiptStatuses.forEach(item => { url_ += \"receiptStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (dateFrom !== undefined && dateFrom !== null)\n url_ += \"dateFrom=\" + encodeURIComponent(dateFrom ? \"\" + dateFrom.toJSON() : \"\") + \"&\";\n if (dateTo !== undefined && dateTo !== null)\n url_ += \"dateTo=\" + encodeURIComponent(dateTo ? \"\" + dateTo.toJSON() : \"\") + \"&\";\n if (businessUnitIds !== undefined && businessUnitIds !== null)\n businessUnitIds && businessUnitIds.forEach(item => { url_ += \"businessUnitIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (needsReview !== undefined && needsReview !== null)\n url_ += \"needsReview=\" + encodeURIComponent(\"\" + needsReview) + \"&\";\n if (searchTerm !== undefined && searchTerm !== null)\n url_ += \"searchTerm=\" + encodeURIComponent(\"\" + searchTerm) + \"&\";\n if (page === null)\n throw new Error(\"The parameter 'page' cannot be null.\");\n else if (page !== undefined)\n url_ += \"page=\" + encodeURIComponent(\"\" + page) + \"&\";\n if (pageSize === null)\n throw new Error(\"The parameter 'pageSize' cannot be null.\");\n else if (pageSize !== undefined)\n url_ += \"pageSize=\" + encodeURIComponent(\"\" + pageSize) + \"&\";\n if (sortBy !== undefined && sortBy !== null)\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\n if (sortDirection !== undefined && sortDirection !== null)\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\n url_ = url_.replace(/[?&]$/, \"\");\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n url: url_,\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\"\n }\n };\n\n return makeCodedException(axios.request<PagedResponseOfCardTransactionResponse>(options_));\n }\n}\n\n/** Generic paged response wrapper with total count for pagination support. */\nexport interface PagedResponseOfCardTransactionResponse {\n /** Data collection */\n data: CardTransactionResponse[];\n /** Current page number */\n page: number;\n /** Page size */\n pageSize: number;\n /** Total count of items (null if pagination not required) */\n totalCount?: number | undefined;\n /** Whether there are more pages */\n hasMore: boolean;\n}\n\nexport interface BaseEntityApiModel {\n id: string;\n createdOn: Date;\n modifiedOn: Date;\n}\n\n/** Response row for `GET /v1/tenant/{tenantId}/card-transactions`. `Id` (from BaseEntityApiModel) is the `card_transactions` parent row's own id. Returns both `Expense`- and `BillPayment`-typed rows (phase 4). */\nexport interface CardTransactionResponse extends BaseEntityApiModel {\n /** Tenant that owns this row. */\n tenantId: number;\n /** Discriminates Expense vs BillPayment. Non-nullable — every row carries a definite type, driven\nby ingest-time classification (never inferred). String wire convention matches\n`ExpenseTransactionResponse.TransactionStatus`/`SyncStatus`. */\n transactionType: string;\n /** Merchant name as reported by the external card provider, verbatim (parent-level, present on\nboth types). Independent of VendorName — never overwrites and is never overwritten\nby it. */\n externalMerchantName?: string | undefined;\n /** Resolved ServiceTitan vendor name (Expense rows only; null for BillPayment, and null when the\nExpense row's vendor does not resolve against the tenant's `Vendors` mirror — never coerced\nto ExternalMerchantName in that case). */\n vendorName?: string | undefined;\n /** The date the transaction occurred (from card statement). */\n transactionDate?: Date | undefined;\n /** Transaction total as reported by the provider. */\n total: number;\n /** Identifier from the external card provider. */\n externalId?: string | undefined;\n /** Name of the external provider (e.g. \"Ramp\"). */\n externalSource?: string | undefined;\n /** Cardholder display name as reported by the provider, verbatim. */\n cardholderName?: string | undefined;\n /** Cardholder email as reported by the provider, verbatim. */\n cardholderEmail?: string | undefined;\n /** Last 4 digits of the card number. */\n cardNumberLast4?: string | undefined;\n /** Card identifier from the external provider. */\n externalCardId?: string | undefined;\n /** Human-readable merchant category (e.g. \"Supermarkets and grocery stores\"). */\n merchantCategory?: string | undefined;\n /** Numeric ISO 18245 Merchant Category Code (MCC), e.g. \"5411\". */\n merchantCategoryCode?: string | undefined;\n /** ISO description paired with the MCC, e.g. \"Grocery Stores, Supermarkets\". */\n merchantCategoryCodeDescription?: string | undefined;\n /** Raw bank-statement descriptor for the charge. */\n merchantDescriptor?: string | undefined;\n /** City of the merchant (card acceptor) location reported by the provider. */\n merchantLocationCity?: string | undefined;\n /** State/region of the merchant (card acceptor) location reported by the provider. */\n merchantLocationState?: string | undefined;\n /** Postal/ZIP code of the merchant (card acceptor) location reported by the provider. */\n merchantLocationPostalCode?: string | undefined;\n /** Country of the merchant (card acceptor) location reported by the provider. */\n merchantLocationCountry?: string | undefined;\n /** Vendor where the expense was incurred. Expense rows only; null for BillPayment and for an\nExpense row whose linked expense is not currently live (see VendorName). */\n vendorId?: number | undefined;\n /** Business unit the linked expense is charged to. Expense rows only; null for BillPayment. */\n businessUnitId?: number | undefined;\n /** Job the linked expense is associated with, if any. Expense rows only; null for BillPayment. */\n jobId?: number | undefined;\n /** Project the linked expense is associated with, if any. Expense rows only; null for BillPayment. */\n projectId?: number | undefined;\n /** Employee (cardholder) who made the linked expense purchase. Expense rows only; null for BillPayment. */\n employeeId?: number | undefined;\n /** Computed field: true if essential ST-related bindings are not set for the linked expense.\nExpense rows only; null for BillPayment. */\n needsReview?: boolean | undefined;\n /** Merchant processing status of the linked expense (e.g. Pending, Complete, Error, Declined). Expense rows only; null for BillPayment. */\n transactionStatus?: string | undefined;\n /** Status of receipt documentation for the linked expense (e.g. Pending, Received). Expense rows only; null for BillPayment. */\n receiptStatus?: string | undefined;\n /** Accounting sync/export status of the linked expense (e.g. Pending, Posted, Exported). Expense rows only; null for BillPayment. */\n syncStatus?: string | undefined;\n /** True when the linked expense is a refund/reversal rather than a charge. Expense rows only; null for BillPayment. */\n isRefund?: boolean | undefined;\n /** Tax portion of the total, mirroring `ExpenseTransactionResponse.Tax`. Placeholder field:\ncurrently always null pending Level-3 provider data wiring (deferred to a follow-up ticket). */\n tax?: number | undefined;\n /** Shipping portion of the total, mirroring `ExpenseTransactionResponse.Shipping`. Placeholder\nfield: currently always null pending Level-3 provider data wiring (deferred to a follow-up ticket). */\n shipping?: number | undefined;\n}\n"],"names":["axios","injectable","inject","optional","symbolToken","makeCodedException","BASE_URL_TOKEN_CardTransactions","CardTransactions","list","tenantId","ids","vendorIds","jobIds","projectIds","cardholderIds","purchaseOrderIds","syncStatuses","transactionStatuses","receiptStatuses","dateFrom","dateTo","businessUnitIds","needsReview","searchTerm","page","pageSize","sortBy","sortDirection","cancelToken","url_","undefined","Error","replace","encodeURIComponent","forEach","item","toJSON","options_","baseURL","baseUrl","url","method","headers","request","jsonParseReviver"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB,GAClB,kBAAkB,GAClB,wBAAwB;AACxB,mBAAmB;AACnB,mEAAmE;AACnE,oBAAoB;AACpB,wBAAwB;AACxB,uCAAuC;AAEvC,OAAOA,WAA8D,QAAQ;AAC7E,SAASC,UAAU,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,0BAA0B;AACpF,SAASC,kBAAkB,QAAqB,UAAU;AAoC1D,OAAO,MAAMC,kCAAkCF,YAAoB,kBAAkB,OAAO;AAG5F,OAAO,MAAMG;IAMT;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BC,GACDC,KAAKC,QAAgB,EAAEC,GAAgC,EAAEC,SAAsC,EAAEC,MAAmC,EAAEC,UAAuC,EAAEC,aAA0C,EAAEC,gBAA6C,EAAEC,YAAyC,EAAEC,mBAAgD,EAAEC,eAA4C,EAAEC,QAAiC,EAAEC,MAA+B,EAAEC,eAA4C,EAAEC,WAAuC,EAAEC,UAAqC,EAAEC,IAAwB,EAAEC,QAA4B,EAAEC,MAAiC,EAAEC,aAAwC,EAAE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BL,MAAM2C,OAAO,CAAyCN;IACpF;IA1FA,YAAY,AAAsEE,UAAU,EAAE,CAAE;;QAFhG,uBAAUK,oBAAV,KAAA;aAEkFL,UAAAA;aAFxEK,mBAAmEd;IAG7E;AA0FJ"}
1
+ {"version":3,"sources":["../src/card-transactions.api.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n//----------------------\n// <auto-generated>\n// Generated with ApiClientGenerator, using the NSwag toolchain\n// </auto-generated>\n//----------------------\n// ReSharper disable InconsistentNaming\n\nimport axios, { AxiosRequestConfig, AxiosPromise, CancelToken } from 'axios';\nimport { injectable, inject, optional, symbolToken } from '@servicetitan/react-ioc';\nimport { makeCodedException, makeContent } from './utils';\n// @ts-ignore: needed for Date serialization if a DateTime parameter has an Unspecified attribute on it\nimport moment from 'moment';\n\nexport interface ICardTransactions {\n /**\n * List card transactions with optional filters.\n * @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this\n endpoint's response carries), not the linked expense transaction's id.\n * @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.\n * @jobIds (optional) Filter by job IDs. Matches Expense rows only.\n * @projectIds (optional) Filter by project IDs. Matches Expense rows only.\n * @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired\n id matches nothing (no existence check) — same behavior as Ids.\n * @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no\n linked purchase order to compare against). An unknown, foreign, or retired id matches nothing\n (no existence check).\n * @syncStatuses (optional) Filter by sync statuses (e.g. \"Pending\", \"Posted\", \"Exported\"). Matches Expense rows only.\n * @transactionStatuses (optional) Filter by transaction statuses (e.g. \"Pending\", \"Complete\", \"Declined\"). Matches Expense rows only.\n * @receiptStatuses (optional) Filter by receipt statuses (e.g. \"Missing\", \"Attached\", \"Verified\"). Matches Expense rows only.\n * @dateFrom (optional) Filter by transaction date (inclusive start).\n * @dateTo (optional) Filter by transaction date (inclusive end).\n * @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.\n * @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.\n * @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for\n Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.\n Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively\n with every other filter on this request.\n * @page (optional) Page number (1-based). Defaults to 1.\n * @pageSize (optional) Number of items per page. Defaults to 50.\n * @sortBy (optional) Property name to sort by (e.g. \"transactionDate\", \"total\"). Defaults to \"transactionDate\".\n * @sortDirection (optional) Sort direction: \"asc\" or \"desc\". Defaults to \"desc\".\n */\n list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse>;\n /**\n * Reclassify a card transaction, keyed off the `card_transactions` PARENT id (not the expense\n child). Writes the target classification to the provider first, then mirrors locally. Every\n MOS-side refusal is a 400/404/409; a 400 carries a machine-readable `code`, so a code-less 400\n on this route is adapter-origin (ARCH-EXP-RECLASS-001, seam-reclassify-endpoint).\n */\n reclassify(tenantId: number, cardTransactionId: string, request: ReclassifyCardTransactionRequest, cancelToken?: CancelToken): AxiosPromise<void>;\n}\n\nexport const BASE_URL_TOKEN_CardTransactions = symbolToken<string>('BASE_URL_TOKEN', false);\n\n@injectable()\nexport class CardTransactions implements ICardTransactions {\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\n\n constructor(@inject(BASE_URL_TOKEN_CardTransactions) @optional() private readonly baseUrl = \"\") {\n }\n\n /**\n * List card transactions with optional filters.\n * @ids (optional) Filter by row id — the `card_transactions` parent's own id (the id every row in this\n endpoint's response carries), not the linked expense transaction's id.\n * @vendorIds (optional) Filter by vendor IDs. Matches Expense rows only; never matches BillPayment rows.\n * @jobIds (optional) Filter by job IDs. Matches Expense rows only.\n * @projectIds (optional) Filter by project IDs. Matches Expense rows only.\n * @cardholderIds (optional) Filter by cardholder directory IDs. Matches Expense rows only. An unknown, foreign, or retired\n id matches nothing (no existence check) — same behavior as Ids.\n * @purchaseOrderIds (optional) Filter by purchase order IDs. Matches Expense rows only; never matches BillPayment rows (no\n linked purchase order to compare against). An unknown, foreign, or retired id matches nothing\n (no existence check).\n * @syncStatuses (optional) Filter by sync statuses (e.g. \"Pending\", \"Posted\", \"Exported\"). Matches Expense rows only.\n * @transactionStatuses (optional) Filter by transaction statuses (e.g. \"Pending\", \"Complete\", \"Declined\"). Matches Expense rows only.\n * @receiptStatuses (optional) Filter by receipt statuses (e.g. \"Missing\", \"Attached\", \"Verified\"). Matches Expense rows only.\n * @dateFrom (optional) Filter by transaction date (inclusive start).\n * @dateTo (optional) Filter by transaction date (inclusive end).\n * @businessUnitIds (optional) Filter by business unit IDs. Matches Expense rows only.\n * @needsReview (optional) Filter by review state. Matches Expense rows only; see NeedsReview for the tri-state semantics this mirrors.\n * @searchTerm (optional) Case-insensitive substring search across the raw merchant/cardholder name (every row) and — for\n Expense rows only — vendor name, job/project number (`StReferenceNumber`), and PO number.\n Trimmed before matching; empty or whitespace-only is treated as omitted. Composes conjunctively\n with every other filter on this request.\n * @page (optional) Page number (1-based). Defaults to 1.\n * @pageSize (optional) Number of items per page. Defaults to 50.\n * @sortBy (optional) Property name to sort by (e.g. \"transactionDate\", \"total\"). Defaults to \"transactionDate\".\n * @sortDirection (optional) Sort direction: \"asc\" or \"desc\". Defaults to \"desc\".\n */\n list(tenantId: number, ids: string[] | null | undefined, vendorIds: number[] | null | undefined, jobIds: number[] | null | undefined, projectIds: number[] | null | undefined, cardholderIds: string[] | null | undefined, purchaseOrderIds: number[] | null | undefined, syncStatuses: string[] | null | undefined, transactionStatuses: string[] | null | undefined, receiptStatuses: string[] | null | undefined, dateFrom: Date | null | undefined, dateTo: Date | null | undefined, businessUnitIds: number[] | null | undefined, needsReview: boolean | null | undefined, searchTerm: string | null | undefined, page: number | undefined, pageSize: number | undefined, sortBy: string | null | undefined, sortDirection: string | null | undefined, cancelToken?: CancelToken): AxiosPromise<PagedResponseOfCardTransactionResponse> {\n let url_ = \"/v1/tenant/{tenantId}/card-transactions?\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\n if (ids !== undefined && ids !== null)\n ids && ids.forEach(item => { url_ += \"ids=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (vendorIds !== undefined && vendorIds !== null)\n vendorIds && vendorIds.forEach(item => { url_ += \"vendorIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (jobIds !== undefined && jobIds !== null)\n jobIds && jobIds.forEach(item => { url_ += \"jobIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (projectIds !== undefined && projectIds !== null)\n projectIds && projectIds.forEach(item => { url_ += \"projectIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (cardholderIds !== undefined && cardholderIds !== null)\n cardholderIds && cardholderIds.forEach(item => { url_ += \"cardholderIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (purchaseOrderIds !== undefined && purchaseOrderIds !== null)\n purchaseOrderIds && purchaseOrderIds.forEach(item => { url_ += \"purchaseOrderIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (syncStatuses !== undefined && syncStatuses !== null)\n syncStatuses && syncStatuses.forEach(item => { url_ += \"syncStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (transactionStatuses !== undefined && transactionStatuses !== null)\n transactionStatuses && transactionStatuses.forEach(item => { url_ += \"transactionStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (receiptStatuses !== undefined && receiptStatuses !== null)\n receiptStatuses && receiptStatuses.forEach(item => { url_ += \"receiptStatuses=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (dateFrom !== undefined && dateFrom !== null)\n url_ += \"dateFrom=\" + encodeURIComponent(dateFrom ? \"\" + dateFrom.toJSON() : \"\") + \"&\";\n if (dateTo !== undefined && dateTo !== null)\n url_ += \"dateTo=\" + encodeURIComponent(dateTo ? \"\" + dateTo.toJSON() : \"\") + \"&\";\n if (businessUnitIds !== undefined && businessUnitIds !== null)\n businessUnitIds && businessUnitIds.forEach(item => { url_ += \"businessUnitIds=\" + encodeURIComponent(\"\" + item) + \"&\"; });\n if (needsReview !== undefined && needsReview !== null)\n url_ += \"needsReview=\" + encodeURIComponent(\"\" + needsReview) + \"&\";\n if (searchTerm !== undefined && searchTerm !== null)\n url_ += \"searchTerm=\" + encodeURIComponent(\"\" + searchTerm) + \"&\";\n if (page === null)\n throw new Error(\"The parameter 'page' cannot be null.\");\n else if (page !== undefined)\n url_ += \"page=\" + encodeURIComponent(\"\" + page) + \"&\";\n if (pageSize === null)\n throw new Error(\"The parameter 'pageSize' cannot be null.\");\n else if (pageSize !== undefined)\n url_ += \"pageSize=\" + encodeURIComponent(\"\" + pageSize) + \"&\";\n if (sortBy !== undefined && sortBy !== null)\n url_ += \"sortBy=\" + encodeURIComponent(\"\" + sortBy) + \"&\";\n if (sortDirection !== undefined && sortDirection !== null)\n url_ += \"sortDirection=\" + encodeURIComponent(\"\" + sortDirection) + \"&\";\n url_ = url_.replace(/[?&]$/, \"\");\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n url: url_,\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"application/json\"\n }\n };\n\n return makeCodedException(axios.request<PagedResponseOfCardTransactionResponse>(options_));\n }\n\n /**\n * Reclassify a card transaction, keyed off the `card_transactions` PARENT id (not the expense\n child). Writes the target classification to the provider first, then mirrors locally. Every\n MOS-side refusal is a 400/404/409; a 400 carries a machine-readable `code`, so a code-less 400\n on this route is adapter-origin (ARCH-EXP-RECLASS-001, seam-reclassify-endpoint).\n */\n reclassify(tenantId: number, cardTransactionId: string, request: ReclassifyCardTransactionRequest, cancelToken?: CancelToken): AxiosPromise<void> {\n let url_ = \"/v1/tenant/{tenantId}/card-transactions/{cardTransactionId}/classification\";\n if (tenantId === undefined || tenantId === null)\n throw new Error(\"The parameter 'tenantId' must be defined.\");\n url_ = url_.replace(\"{tenantId}\", encodeURIComponent(\"\" + tenantId));\n if (cardTransactionId === undefined || cardTransactionId === null)\n throw new Error(\"The parameter 'cardTransactionId' must be defined.\");\n url_ = url_.replace(\"{cardTransactionId}\", encodeURIComponent(\"\" + cardTransactionId));\n url_ = url_.replace(/[?&]$/, \"\");\n\n const content_ = request;\n\n let options_ = <AxiosRequestConfig>{\n baseURL: this.baseUrl,\n cancelToken,\n data: content_,\n url: url_,\n method: \"PATCH\",\n headers: {\n \"Content-Type\": \"application/json\",\n }\n };\n\n return makeCodedException(axios.request<void>(options_));\n }\n}\n\n/** Generic paged response wrapper with total count for pagination support. */\nexport interface PagedResponseOfCardTransactionResponse {\n /** Data collection */\n data: CardTransactionResponse[];\n /** Current page number */\n page: number;\n /** Page size */\n pageSize: number;\n /** Total count of items (null if pagination not required) */\n totalCount?: number | undefined;\n /** Whether there are more pages */\n hasMore: boolean;\n}\n\nexport interface BaseEntityApiModel {\n id: string;\n createdOn: Date;\n modifiedOn: Date;\n}\n\n/** Response row for `GET /v1/tenant/{tenantId}/card-transactions`. `Id` (from BaseEntityApiModel) is the `card_transactions` parent row's own id. Returns both `Expense`- and `BillPayment`-typed rows (phase 4). */\nexport interface CardTransactionResponse extends BaseEntityApiModel {\n /** Tenant that owns this row. */\n tenantId: number;\n /** Discriminates Expense vs BillPayment. Non-nullable — every row carries a definite type, driven\nby ingest-time classification (never inferred). String wire convention matches\n`ExpenseTransactionResponse.TransactionStatus`/`SyncStatus`. */\n transactionType: string;\n /** Merchant name as reported by the external card provider, verbatim (parent-level, present on\nboth types). Independent of VendorName — never overwrites and is never overwritten\nby it. */\n externalMerchantName?: string | undefined;\n /** Resolved ServiceTitan vendor name (Expense rows only; null for BillPayment, and null when the\nExpense row's vendor does not resolve against the tenant's `Vendors` mirror — never coerced\nto ExternalMerchantName in that case). */\n vendorName?: string | undefined;\n /** The date the transaction occurred (from card statement). */\n transactionDate?: Date | undefined;\n /** Transaction total as reported by the provider. */\n total: number;\n /** Identifier from the external card provider. */\n externalId?: string | undefined;\n /** Name of the external provider (e.g. \"Ramp\"). */\n externalSource?: string | undefined;\n /** Cardholder display name as reported by the provider, verbatim. */\n cardholderName?: string | undefined;\n /** Cardholder email as reported by the provider, verbatim. */\n cardholderEmail?: string | undefined;\n /** Last 4 digits of the card number. */\n cardNumberLast4?: string | undefined;\n /** Card identifier from the external provider. */\n externalCardId?: string | undefined;\n /** Human-readable merchant category (e.g. \"Supermarkets and grocery stores\"). */\n merchantCategory?: string | undefined;\n /** Numeric ISO 18245 Merchant Category Code (MCC), e.g. \"5411\". */\n merchantCategoryCode?: string | undefined;\n /** ISO description paired with the MCC, e.g. \"Grocery Stores, Supermarkets\". */\n merchantCategoryCodeDescription?: string | undefined;\n /** Raw bank-statement descriptor for the charge. */\n merchantDescriptor?: string | undefined;\n /** City of the merchant (card acceptor) location reported by the provider. */\n merchantLocationCity?: string | undefined;\n /** State/region of the merchant (card acceptor) location reported by the provider. */\n merchantLocationState?: string | undefined;\n /** Postal/ZIP code of the merchant (card acceptor) location reported by the provider. */\n merchantLocationPostalCode?: string | undefined;\n /** Country of the merchant (card acceptor) location reported by the provider. */\n merchantLocationCountry?: string | undefined;\n /** Vendor where the expense was incurred. Expense rows only; null for BillPayment and for an\nExpense row whose linked expense is not currently live (see VendorName). */\n vendorId?: number | undefined;\n /** Business unit the linked expense is charged to. Expense rows only; null for BillPayment. */\n businessUnitId?: number | undefined;\n /** Job the linked expense is associated with, if any. Expense rows only; null for BillPayment. */\n jobId?: number | undefined;\n /** Project the linked expense is associated with, if any. Expense rows only; null for BillPayment. */\n projectId?: number | undefined;\n /** Employee (cardholder) who made the linked expense purchase. Expense rows only; null for BillPayment. */\n employeeId?: number | undefined;\n /** Computed field: true if essential ST-related bindings are not set for the linked expense.\nExpense rows only; null for BillPayment. */\n needsReview?: boolean | undefined;\n /** Merchant processing status of the linked expense (e.g. Pending, Complete, Error, Declined). Expense rows only; null for BillPayment. */\n transactionStatus?: string | undefined;\n /** Status of receipt documentation for the linked expense (e.g. Pending, Received). Expense rows only; null for BillPayment. */\n receiptStatus?: string | undefined;\n /** Accounting sync/export status of the linked expense (e.g. Pending, Posted, Exported). Expense rows only; null for BillPayment. */\n syncStatus?: string | undefined;\n /** True when the linked expense is a refund/reversal rather than a charge. Expense rows only; null for BillPayment. */\n isRefund?: boolean | undefined;\n /** Tax portion of the total, mirroring `ExpenseTransactionResponse.Tax`. Placeholder field:\ncurrently always null pending Level-3 provider data wiring (deferred to a follow-up ticket). */\n tax?: number | undefined;\n /** Shipping portion of the total, mirroring `ExpenseTransactionResponse.Shipping`. Placeholder\nfield: currently always null pending Level-3 provider data wiring (deferred to a follow-up ticket). */\n shipping?: number | undefined;\n}\n\n/** Body of `PATCH /v1/tenant/{tenantId}/card-transactions/{cardTransactionId}/classification`. Classification is a string parsed at the boundary (an unknown/out-of-enum value is a coded 400, not a bind failure), so the request contract is final across all phases — every named classification is a valid target from phase 1, even when its local behaviour lands in a later phase. JobNumber/ProjectNumber name the target for a Job/Project reclassify and are unused for the other targets. */\nexport interface ReclassifyCardTransactionRequest {\n /** The target classification: `NotStExpense`, `Job`, `Project`, `NotSet`, or\n`BillPayment`. Parsed by `ExpenseInputValidator.ParseReclassificationTarget`; a malformed\nor out-of-enum value is refused as a 400 with `code: unsupported_classification`. */\n classification: string;\n /** The job reference number, for a `Job` target. Ignored for other targets. */\n jobNumber?: string | undefined;\n /** The project reference number, for a `Project` target. Ignored for other targets. */\n projectNumber?: string | undefined;\n}\n"],"names":["axios","injectable","inject","optional","symbolToken","makeCodedException","BASE_URL_TOKEN_CardTransactions","CardTransactions","list","tenantId","ids","vendorIds","jobIds","projectIds","cardholderIds","purchaseOrderIds","syncStatuses","transactionStatuses","receiptStatuses","dateFrom","dateTo","businessUnitIds","needsReview","searchTerm","page","pageSize","sortBy","sortDirection","cancelToken","url_","undefined","Error","replace","encodeURIComponent","forEach","item","toJSON","options_","baseURL","baseUrl","url","method","headers","request","reclassify","cardTransactionId","content_","data","jsonParseReviver"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB,GAClB,kBAAkB,GAClB,wBAAwB;AACxB,mBAAmB;AACnB,mEAAmE;AACnE,oBAAoB;AACpB,wBAAwB;AACxB,uCAAuC;AAEvC,OAAOA,WAA8D,QAAQ;AAC7E,SAASC,UAAU,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,0BAA0B;AACpF,SAASC,kBAAkB,QAAqB,UAAU;AA2C1D,OAAO,MAAMC,kCAAkCF,YAAoB,kBAAkB,OAAO;AAG5F,OAAO,MAAMG;IAMT;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BC,GACDC,KAAKC,QAAgB,EAAEC,GAAgC,EAAEC,SAAsC,EAAEC,MAAmC,EAAEC,UAAuC,EAAEC,aAA0C,EAAEC,gBAA6C,EAAEC,YAAyC,EAAEC,mBAAgD,EAAEC,eAA4C,EAAEC,QAAiC,EAAEC,MAA+B,EAAEC,eAA4C,EAAEC,WAAuC,EAAEC,UAAqC,EAAEC,IAAwB,EAAEC,QAA4B,EAAEC,MAAiC,EAAEC,aAAwC,EAAEC,WAAyB,EAAwD;QACzyB,IAAIC,OAAO;QACX,IAAIpB,aAAaqB,aAAarB,aAAa,MACvC,MAAM,IAAIsB,MAAM;QAC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,EAAEf,WAAyB,EAAsB;QAC9I,IAAIC,OAAO;QACX,IAAIpB,aAAaqB,aAAarB,aAAa,MACvC,MAAM,IAAIsB,MAAM;QACpBF,OAAOA,KAAKG,OAAO,CAAC,cAAcC,mBAAmB,KAAKxB;QAC1D,IAAIoC,sBAAsBf,aAAae,sBAAsB,MACzD,MAAM,IAAId,MAAM;QACpBF,OAAOA,KAAKG,OAAO,CAAC,uBAAuBC,mBAAmB,KAAKY;QACnEhB,OAAOA,KAAKG,OAAO,CAAC,SAAS;QAE7B,MAAMc,WAAWH;QAEjB,IAAIN,WAA+B;YAC/BC,SAAS,IAAI,CAACC,OAAO;YACrBX;YACAmB,MAAMD;YACNN,KAAKX;YACLY,QAAQ;YACRC,SAAS;gBACL,gBAAgB;YACpB;QACJ;QAEA,OAAOrC,mBAAmBL,MAAM2C,OAAO,CAAON;IAClD;IA1HA,YAAY,AAAsEE,UAAU,EAAE,CAAE;;QAFhG,uBAAUS,oBAAV,KAAA;aAEkFT,UAAAA;aAFxES,mBAAmElB;IAG7E;AA0HJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/moneyout-api-client",
3
- "version": "1.37.0-beta.180",
3
+ "version": "1.37.0-beta.183",
4
4
  "description": "Auto-generated TypeScript API client for MoneyOut Service",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",