From bae132280e754cf1c97a1934e25d727339cdb54d Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Mon, 21 Oct 2024 10:25:34 -0700 Subject: [PATCH 1/7] exposing pnl and balance sheet query params --- sdks/sdk-qbo/src/qbo.oas.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/sdks/sdk-qbo/src/qbo.oas.ts b/sdks/sdk-qbo/src/qbo.oas.ts index b7017e8..b632c84 100644 --- a/sdks/sdk-qbo/src/qbo.oas.ts +++ b/sdks/sdk-qbo/src/qbo.oas.ts @@ -572,6 +572,20 @@ export const queryPayloadSchema = z.object({ time: z.string(), }) +// Define common query parameters +const commonReportQueryParams = z.object({ + start_date: z.string().optional(), + end_date: z.string().optional(), + customer: z.string().optional(), + accounting_method: z.string().optional(), + date_macro: z.string().optional(), + adjusted_gain_loss: z.string().optional(), + class: z.string().optional(), + sort_order: z.string().optional(), + department: z.string().optional(), + vendor: z.string().optional(), +}) + export const oas: OpenAPISpec = createDocument({ openapi: '3.1.0', info: {title: 'Quickbooks API', version: '0.0.0'}, @@ -630,11 +644,24 @@ export const oas: OpenAPISpec = createDocument({ '/reports/BalanceSheet': { get: jsonOperation('getBalanceSheet', { response: reportPayloadSchema, + query: commonReportQueryParams.extend({ + qzurl: z.string().optional(), + item: z.string().optional(), + summarize_column_by: z.string().optional(), + }), }), }, '/reports/ProfitAndLoss': { get: jsonOperation('getProfitAndLoss', { response: reportPayloadSchema, + query: commonReportQueryParams.extend({ + account: z.string().optional(), + sort_by: z.string().optional(), + payment_method: z.string().optional(), + employee: z.string().optional(), + account_type: z.string().optional(), + columns: z.string().optional(), + }), }), }, '/cdc': { From 30d8328a55a56f2a6700fcbbafc664368104df3d Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Mon, 21 Oct 2024 10:46:38 -0700 Subject: [PATCH 2/7] Adding transaction list --- sdks/sdk-qbo/src/qbo.oas.ts | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/sdks/sdk-qbo/src/qbo.oas.ts b/sdks/sdk-qbo/src/qbo.oas.ts index b632c84..12b7949 100644 --- a/sdks/sdk-qbo/src/qbo.oas.ts +++ b/sdks/sdk-qbo/src/qbo.oas.ts @@ -639,6 +639,34 @@ export const oas: OpenAPISpec = createDocument({ '/reports/TransactionList': { get: jsonOperation('getTransactionList', { response: reportPayloadSchema, + query: commonReportQueryParams.extend({ + date_macro: z.string().optional(), + payment_method: z.string().optional(), + duedate_macro: z.string().optional(), + arpaid: z.string().optional(), + bothamount: z.string().optional(), + transaction_type: z.string().optional(), + docnum: z.string().optional(), + start_moddate: z.string().optional(), + source_account_type: z.string().optional(), + group_by: z.string().optional(), + start_duedate: z.string().optional(), + columns: z.string().optional(), + end_duedate: z.string().optional(), + memo: z.string().optional(), + appaid: z.string().optional(), + moddate_macro: z.string().optional(), + printed: z.string().optional(), + createdate_macro: z.string().optional(), + cleared: z.string().optional(), + qzurl: z.string().optional(), + term: z.string().optional(), + end_createdate: z.string().optional(), + name: z.string().optional(), + sort_by: z.string().optional(), + start_createdate: z.string().optional(), + end_moddate: z.string().optional(), + }), }), }, '/reports/BalanceSheet': { @@ -664,6 +692,18 @@ export const oas: OpenAPISpec = createDocument({ }), }), }, + '/reports/Cashflow': { + get: jsonOperation('getCashFlow', { + response: reportPayloadSchema, + query: commonReportQueryParams.extend({ + customer: z.string().optional(), + vendor: z.string().optional(), + item: z.string().optional(), + sort_order: z.string().optional(), + summarize_column_by: z.string().optional(), + }), + }), + }, '/cdc': { get: jsonOperation('cdc', { query: z.object({ From a7606e33e269a1289a0609af0080ce44b3c96bb1 Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Mon, 21 Oct 2024 10:47:56 -0700 Subject: [PATCH 3/7] adding account list report --- sdks/sdk-qbo/src/qbo.oas.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sdks/sdk-qbo/src/qbo.oas.ts b/sdks/sdk-qbo/src/qbo.oas.ts index 12b7949..1369f42 100644 --- a/sdks/sdk-qbo/src/qbo.oas.ts +++ b/sdks/sdk-qbo/src/qbo.oas.ts @@ -713,6 +713,21 @@ export const oas: OpenAPISpec = createDocument({ response: cdcPayloadSchema, }), }, + '/reports/AccountList': { + get: jsonOperation('getAccountList', { + response: reportPayloadSchema, + query: commonReportQueryParams.extend({ + account_type: z.string().optional(), + start_moddate: z.string().optional(), + moddate_macro: z.string().optional(), + end_moddate: z.string().optional(), + account_status: z.string().optional(), + createdate_macro: z.string().optional(), + columns: z.string().optional(), + sort_by: z.string().optional(), + }), + }), + }, }, }) From 9d2c95b7b91db72c4758e26d7f0e43f697c33b5b Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Mon, 21 Oct 2024 10:49:14 -0700 Subject: [PATCH 4/7] adding customer balance --- sdks/sdk-qbo/src/qbo.oas.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sdks/sdk-qbo/src/qbo.oas.ts b/sdks/sdk-qbo/src/qbo.oas.ts index 1369f42..0a42d29 100644 --- a/sdks/sdk-qbo/src/qbo.oas.ts +++ b/sdks/sdk-qbo/src/qbo.oas.ts @@ -728,6 +728,18 @@ export const oas: OpenAPISpec = createDocument({ }), }), }, + '/reports/CustomerBalance': { + get: jsonOperation('getCustomerBalance', { + response: reportPayloadSchema, + query: commonReportQueryParams.extend({ + accounting_method: z.string().optional(), + date_macro: z.string().optional(), + arpaid: z.string().optional(), + report_date: z.string().optional(), + summarize_column_by: z.string().optional(), + }), + }), + }, }, }) From 3df2fab3266e2ff23ed1bceadb5c88355016e955 Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Mon, 21 Oct 2024 10:53:19 -0700 Subject: [PATCH 5/7] cleaning up shared params --- sdks/sdk-qbo/src/qbo.oas.ts | 40 ++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/sdks/sdk-qbo/src/qbo.oas.ts b/sdks/sdk-qbo/src/qbo.oas.ts index 0a42d29..ee079bc 100644 --- a/sdks/sdk-qbo/src/qbo.oas.ts +++ b/sdks/sdk-qbo/src/qbo.oas.ts @@ -572,18 +572,14 @@ export const queryPayloadSchema = z.object({ time: z.string(), }) -// Define common query parameters -const commonReportQueryParams = z.object({ +// Define base query parameters common to most reports +const baseReportQueryParams = z.object({ start_date: z.string().optional(), end_date: z.string().optional(), - customer: z.string().optional(), - accounting_method: z.string().optional(), - date_macro: z.string().optional(), - adjusted_gain_loss: z.string().optional(), - class: z.string().optional(), sort_order: z.string().optional(), + customer: z.string().optional(), department: z.string().optional(), - vendor: z.string().optional(), + date_macro: z.string().optional(), }) export const oas: OpenAPISpec = createDocument({ @@ -639,8 +635,7 @@ export const oas: OpenAPISpec = createDocument({ '/reports/TransactionList': { get: jsonOperation('getTransactionList', { response: reportPayloadSchema, - query: commonReportQueryParams.extend({ - date_macro: z.string().optional(), + query: baseReportQueryParams.extend({ payment_method: z.string().optional(), duedate_macro: z.string().optional(), arpaid: z.string().optional(), @@ -672,7 +667,7 @@ export const oas: OpenAPISpec = createDocument({ '/reports/BalanceSheet': { get: jsonOperation('getBalanceSheet', { response: reportPayloadSchema, - query: commonReportQueryParams.extend({ + query: baseReportQueryParams.extend({ qzurl: z.string().optional(), item: z.string().optional(), summarize_column_by: z.string().optional(), @@ -682,7 +677,7 @@ export const oas: OpenAPISpec = createDocument({ '/reports/ProfitAndLoss': { get: jsonOperation('getProfitAndLoss', { response: reportPayloadSchema, - query: commonReportQueryParams.extend({ + query: baseReportQueryParams.extend({ account: z.string().optional(), sort_by: z.string().optional(), payment_method: z.string().optional(), @@ -695,11 +690,9 @@ export const oas: OpenAPISpec = createDocument({ '/reports/Cashflow': { get: jsonOperation('getCashFlow', { response: reportPayloadSchema, - query: commonReportQueryParams.extend({ - customer: z.string().optional(), + query: baseReportQueryParams.extend({ vendor: z.string().optional(), item: z.string().optional(), - sort_order: z.string().optional(), summarize_column_by: z.string().optional(), }), }), @@ -716,7 +709,7 @@ export const oas: OpenAPISpec = createDocument({ '/reports/AccountList': { get: jsonOperation('getAccountList', { response: reportPayloadSchema, - query: commonReportQueryParams.extend({ + query: baseReportQueryParams.extend({ account_type: z.string().optional(), start_moddate: z.string().optional(), moddate_macro: z.string().optional(), @@ -731,15 +724,26 @@ export const oas: OpenAPISpec = createDocument({ '/reports/CustomerBalance': { get: jsonOperation('getCustomerBalance', { response: reportPayloadSchema, - query: commonReportQueryParams.extend({ + query: baseReportQueryParams.extend({ accounting_method: z.string().optional(), - date_macro: z.string().optional(), arpaid: z.string().optional(), report_date: z.string().optional(), summarize_column_by: z.string().optional(), }), }), }, + '/reports/CustomerIncome': { + get: jsonOperation('getCustomerIncome', { + response: reportPayloadSchema, + query: baseReportQueryParams.extend({ + term: z.string().optional(), + accounting_method: z.string().optional(), + class: z.string().optional(), + summarize_column_by: z.string().optional(), + vendor: z.string().optional(), + }), + }), + }, }, }) From ef867a257dc25f96aee76e40f01e760db0533eb8 Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Mon, 21 Oct 2024 13:39:27 -0700 Subject: [PATCH 6/7] build and publish version --- sdks/sdk-qbo/package.json | 2 +- sdks/sdk-qbo/qbo.oas.json | 804 +++++++++++++++++++++++++++++++- sdks/sdk-qbo/qbo.oas.types.d.ts | 192 ++++++++ 3 files changed, 980 insertions(+), 18 deletions(-) diff --git a/sdks/sdk-qbo/package.json b/sdks/sdk-qbo/package.json index dd17207..1b84c2a 100644 --- a/sdks/sdk-qbo/package.json +++ b/sdks/sdk-qbo/package.json @@ -1,6 +1,6 @@ { "name": "@opensdks/sdk-qbo", - "version": "0.0.18", + "version": "0.0.19", "type": "module", "exports": { ".": { diff --git a/sdks/sdk-qbo/qbo.oas.json b/sdks/sdk-qbo/qbo.oas.json index f6b62f3..e793eb0 100644 --- a/sdks/sdk-qbo/qbo.oas.json +++ b/sdks/sdk-qbo/qbo.oas.json @@ -732,6 +732,545 @@ "/reports/TransactionList": { "get": { "operationId": "getTransactionList", + "parameters": [ + { + "in": "query", + "name": "start_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_order", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "customer", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "department", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "date_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "payment_method", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "duedate_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "arpaid", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "bothamount", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "transaction_type", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "docnum", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start_moddate", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "source_account_type", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "group_by", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start_duedate", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "columns", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_duedate", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "memo", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "appaid", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "moddate_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "printed", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "createdate_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "cleared", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qzurl", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "term", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_createdate", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_by", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start_createdate", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_moddate", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": {} + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Report" + } + } + } + } + } + } + }, + "/reports/BalanceSheet": { + "get": { + "operationId": "getBalanceSheet", + "parameters": [ + { + "in": "query", + "name": "start_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_order", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "customer", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "department", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "date_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "qzurl", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "item", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "summarize_column_by", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": {} + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Report" + } + } + } + } + } + } + }, + "/reports/ProfitAndLoss": { + "get": { + "operationId": "getProfitAndLoss", + "parameters": [ + { + "in": "query", + "name": "start_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_order", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "customer", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "department", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "date_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "account", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_by", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "payment_method", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "employee", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "account_type", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "columns", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": {} + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Report" + } + } + } + } + } + } + }, + "/reports/Cashflow": { + "get": { + "operationId": "getCashFlow", + "parameters": [ + { + "in": "query", + "name": "start_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_order", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "customer", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "department", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "date_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "vendor", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "item", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "summarize_column_by", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": {} + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Report" + } + } + } + } + } + } + }, + "/cdc": { + "get": { + "operationId": "cdc", + "parameters": [ + { + "in": "query", + "name": "changedSince", + "schema": { + "type": "string" + }, + "required": true + }, + { + "in": "query", + "name": "entities", + "description": "Comma separated list of entity names", + "schema": { + "type": "string", + "description": "Comma separated list of entity names" + }, + "required": true + } + ], "requestBody": { "content": { "application/json": {} @@ -742,7 +1281,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Report" + "$ref": "#/components/schemas/CDCPayload" } } } @@ -750,9 +1289,109 @@ } } }, - "/reports/BalanceSheet": { + "/reports/AccountList": { "get": { - "operationId": "getBalanceSheet", + "operationId": "getAccountList", + "parameters": [ + { + "in": "query", + "name": "start_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_order", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "customer", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "department", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "date_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "account_type", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start_moddate", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "moddate_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_moddate", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "account_status", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "createdate_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "columns", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_by", + "schema": { + "type": "string" + } + } + ], "requestBody": { "content": { "application/json": {} @@ -771,9 +1410,81 @@ } } }, - "/reports/ProfitAndLoss": { + "/reports/CustomerBalance": { "get": { - "operationId": "getProfitAndLoss", + "operationId": "getCustomerBalance", + "parameters": [ + { + "in": "query", + "name": "start_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort_order", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "customer", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "department", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "date_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "accounting_method", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "arpaid", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "report_date", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "summarize_column_by", + "schema": { + "type": "string" + } + } + ], "requestBody": { "content": { "application/json": {} @@ -792,27 +1503,86 @@ } } }, - "/cdc": { + "/reports/CustomerIncome": { "get": { - "operationId": "cdc", + "operationId": "getCustomerIncome", "parameters": [ { "in": "query", - "name": "changedSince", + "name": "start_date", "schema": { "type": "string" - }, - "required": true + } }, { "in": "query", - "name": "entities", - "description": "Comma separated list of entity names", + "name": "end_date", "schema": { - "type": "string", - "description": "Comma separated list of entity names" - }, - "required": true + "type": "string" + } + }, + { + "in": "query", + "name": "sort_order", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "customer", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "department", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "date_macro", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "term", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "accounting_method", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "class", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "summarize_column_by", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "vendor", + "schema": { + "type": "string" + } } ], "requestBody": { @@ -825,7 +1595,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CDCPayload" + "$ref": "#/components/schemas/Report" } } } diff --git a/sdks/sdk-qbo/qbo.oas.types.d.ts b/sdks/sdk-qbo/qbo.oas.types.d.ts index 346554a..e762c7c 100644 --- a/sdks/sdk-qbo/qbo.oas.types.d.ts +++ b/sdks/sdk-qbo/qbo.oas.types.d.ts @@ -67,9 +67,21 @@ export interface paths { '/reports/ProfitAndLoss': { get: operations['getProfitAndLoss'] } + '/reports/Cashflow': { + get: operations['getCashFlow'] + } '/cdc': { get: operations['cdc'] } + '/reports/AccountList': { + get: operations['getAccountList'] + } + '/reports/CustomerBalance': { + get: operations['getCustomerBalance'] + } + '/reports/CustomerIncome': { + get: operations['getCustomerIncome'] + } } export type webhooks = Record @@ -873,6 +885,19 @@ export interface operations { } } getBalanceSheet: { + parameters: { + query?: { + start_date?: string + end_date?: string + sort_order?: string + customer?: string + department?: string + date_macro?: string + qzurl?: string + item?: string + summarize_column_by?: string + } + } requestBody?: { content: { 'application/json': unknown @@ -887,6 +912,22 @@ export interface operations { } } getProfitAndLoss: { + parameters: { + query?: { + start_date?: string + end_date?: string + sort_order?: string + customer?: string + department?: string + date_macro?: string + account?: string + sort_by?: string + payment_method?: string + employee?: string + account_type?: string + columns?: string + } + } requestBody?: { content: { 'application/json': unknown @@ -937,6 +978,68 @@ export interface operations { } } getTransactionList: { + parameters: { + query?: { + start_date?: string + end_date?: string + sort_order?: string + customer?: string + department?: string + date_macro?: string + payment_method?: string + duedate_macro?: string + arpaid?: string + bothamount?: string + transaction_type?: string + docnum?: string + start_moddate?: string + source_account_type?: string + group_by?: string + start_duedate?: string + columns?: string + end_duedate?: string + memo?: string + appaid?: string + moddate_macro?: string + printed?: string + createdate_macro?: string + cleared?: string + qzurl?: string + term?: string + end_createdate?: string + name?: string + sort_by?: string + start_createdate?: string + end_moddate?: string + } + } + requestBody?: { + content: { + 'application/json': unknown + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['Report'] + } + } + } + } + getCashFlow: { + parameters: { + query?: { + start_date?: string + end_date?: string + sort_order?: string + customer?: string + department?: string + date_macro?: string + vendor?: string + item?: string + summarize_column_by?: string + } + } requestBody?: { content: { 'application/json': unknown @@ -971,6 +1074,95 @@ export interface operations { } } } + getAccountList: { + parameters: { + query?: { + start_date?: string + end_date?: string + sort_order?: string + customer?: string + department?: string + date_macro?: string + account_type?: string + start_moddate?: string + moddate_macro?: string + end_moddate?: string + account_status?: string + createdate_macro?: string + columns?: string + sort_by?: string + } + } + requestBody?: { + content: { + 'application/json': unknown + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['Report'] + } + } + } + } + getCustomerBalance: { + parameters: { + query?: { + start_date?: string + end_date?: string + sort_order?: string + customer?: string + department?: string + date_macro?: string + accounting_method?: string + arpaid?: string + report_date?: string + summarize_column_by?: string + } + } + requestBody?: { + content: { + 'application/json': unknown + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['Report'] + } + } + } + } + getCustomerIncome: { + parameters: { + query?: { + start_date?: string + end_date?: string + sort_order?: string + customer?: string + department?: string + date_macro?: string + term?: string + accounting_method?: string + class?: string + summarize_column_by?: string + vendor?: string + } + } + requestBody?: { + content: { + 'application/json': unknown + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['Report'] + } + } + } + } } export interface oasTypes { From 29968ed6a07211a772f8cfeea13e14a73fbb9684 Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Mon, 21 Oct 2024 15:14:51 -0700 Subject: [PATCH 7/7] fixing cashflow typo --- sdks/sdk-qbo/package.json | 2 +- sdks/sdk-qbo/qbo.oas.json | 2 +- sdks/sdk-qbo/qbo.oas.types.d.ts | 2 +- sdks/sdk-qbo/src/qbo.oas.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdks/sdk-qbo/package.json b/sdks/sdk-qbo/package.json index 1b84c2a..924c7bb 100644 --- a/sdks/sdk-qbo/package.json +++ b/sdks/sdk-qbo/package.json @@ -1,6 +1,6 @@ { "name": "@opensdks/sdk-qbo", - "version": "0.0.19", + "version": "0.0.20", "type": "module", "exports": { ".": { diff --git a/sdks/sdk-qbo/qbo.oas.json b/sdks/sdk-qbo/qbo.oas.json index e793eb0..8dd13db 100644 --- a/sdks/sdk-qbo/qbo.oas.json +++ b/sdks/sdk-qbo/qbo.oas.json @@ -1162,7 +1162,7 @@ } } }, - "/reports/Cashflow": { + "/reports/CashFlow": { "get": { "operationId": "getCashFlow", "parameters": [ diff --git a/sdks/sdk-qbo/qbo.oas.types.d.ts b/sdks/sdk-qbo/qbo.oas.types.d.ts index e762c7c..ba6dfd9 100644 --- a/sdks/sdk-qbo/qbo.oas.types.d.ts +++ b/sdks/sdk-qbo/qbo.oas.types.d.ts @@ -67,7 +67,7 @@ export interface paths { '/reports/ProfitAndLoss': { get: operations['getProfitAndLoss'] } - '/reports/Cashflow': { + '/reports/CashFlow': { get: operations['getCashFlow'] } '/cdc': { diff --git a/sdks/sdk-qbo/src/qbo.oas.ts b/sdks/sdk-qbo/src/qbo.oas.ts index ee079bc..7c24041 100644 --- a/sdks/sdk-qbo/src/qbo.oas.ts +++ b/sdks/sdk-qbo/src/qbo.oas.ts @@ -687,7 +687,7 @@ export const oas: OpenAPISpec = createDocument({ }), }), }, - '/reports/Cashflow': { + '/reports/CashFlow': { get: jsonOperation('getCashFlow', { response: reportPayloadSchema, query: baseReportQueryParams.extend({