From 1fb9de1814b45f3160873becb726174573eea72b Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Fri, 12 Jul 2024 12:51:28 +0530 Subject: [PATCH 1/2] Build from OAS 6.0.0 --- docs/accounting/index.html | 360 ++++-------------- docs/appstore/index.html | 2 +- docs/assets/index.html | 2 +- docs/bankfeeds/index.html | 2 +- docs/files/index.html | 2 +- docs/finance/index.html | 2 +- docs/payroll-au/index.html | 2 +- docs/payroll-nz/index.html | 2 +- docs/payroll-uk/index.html | 2 +- docs/projects/index.html | 2 +- package.json | 2 +- src/gen/api/accountingApi.ts | 77 ++-- src/gen/api/appStoreApi.ts | 4 +- src/gen/api/assetApi.ts | 4 +- src/gen/api/bankfeedsApi.ts | 4 +- src/gen/api/filesApi.ts | 4 +- src/gen/api/financeApi.ts | 4 +- src/gen/api/payrollAUApi.ts | 4 +- src/gen/api/payrollNZApi.ts | 4 +- src/gen/api/payrollUKApi.ts | 4 +- src/gen/api/projectApi.ts | 4 +- src/gen/model/accounting/bankTransactions.ts | 7 + src/gen/model/accounting/contacts.ts | 7 + src/gen/model/accounting/creditNotes.ts | 7 + .../accounting/getBankTransactionsResponse.ts | 50 --- .../model/accounting/getContactsResponse.ts | 50 --- .../accounting/getCreditNotesResponse.ts | 50 --- .../model/accounting/getInvoicesResponse.ts | 50 --- .../accounting/getManualJournalsResponse.ts | 50 --- .../accounting/getOverpaymentsResponse.ts | 50 --- .../model/accounting/getPaymentsResponse.ts | 50 --- .../accounting/getPrepaymentsResponse.ts | 50 --- .../accounting/getPurchaseOrdersResponse.ts | 50 --- src/gen/model/accounting/invoices.ts | 7 + src/gen/model/accounting/manualJournals.ts | 7 + src/gen/model/accounting/models.ts | 33 +- src/gen/model/accounting/overpayments.ts | 7 + .../accounting/{pageInfo.ts => pagination.ts} | 23 +- src/gen/model/accounting/payments.ts | 7 + src/gen/model/accounting/prepayments.ts | 7 + src/gen/model/accounting/purchaseOrders.ts | 7 + 41 files changed, 227 insertions(+), 835 deletions(-) delete mode 100644 src/gen/model/accounting/getBankTransactionsResponse.ts delete mode 100644 src/gen/model/accounting/getContactsResponse.ts delete mode 100644 src/gen/model/accounting/getCreditNotesResponse.ts delete mode 100644 src/gen/model/accounting/getInvoicesResponse.ts delete mode 100644 src/gen/model/accounting/getManualJournalsResponse.ts delete mode 100644 src/gen/model/accounting/getOverpaymentsResponse.ts delete mode 100644 src/gen/model/accounting/getPaymentsResponse.ts delete mode 100644 src/gen/model/accounting/getPrepaymentsResponse.ts delete mode 100644 src/gen/model/accounting/getPurchaseOrdersResponse.ts rename src/gen/model/accounting/{pageInfo.ts => pagination.ts} (58%) diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 022f9e82..1eda8d3d 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -1465,6 +1465,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "BankTransactions" : { "type" : "array", "items" : { @@ -2320,6 +2323,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "Contacts" : { "type" : "array", "items" : { @@ -2555,6 +2561,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "CreditNotes" : { "type" : "array", "items" : { @@ -2859,267 +2868,6 @@ "externalDocs" : { "url" : "http://developer.xero.com/documentation/api/organisation/" } -}; - defs["GetBankTransactionsResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "BankTransactions" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BankTransaction" - } - } - }, - "description" : "" -}; - defs["GetContactsResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "Contacts" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Contact" - } - } - }, - "description" : "" -}; - defs["GetCreditNotesResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "CreditNotes" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/CreditNote" - } - } - }, - "description" : "" -}; - defs["GetInvoicesResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "Invoices" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Invoice" - } - } - }, - "description" : "" -}; - defs["GetManualJournalsResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "ManualJournals" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ManualJournal" - } - } - }, - "description" : "" -}; - defs["GetOverpaymentsResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "Overpayments" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Overpayment" - } - } - }, - "description" : "" -}; - defs["GetPaymentsResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "Payments" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Payment" - } - } - }, - "description" : "" -}; - defs["GetPrepaymentsResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "Prepayments" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/Prepayment" - } - } - }, - "description" : "" -}; - defs["GetPurchaseOrdersResponse"] = { - "title" : "", - "type" : "object", - "properties" : { - "Id" : { - "type" : "string" - }, - "Status" : { - "type" : "string" - }, - "ProviderName" : { - "type" : "string" - }, - "DateTimeUTC" : { - "type" : "string" - }, - "PageInfo" : { - "$ref" : "#/components/schemas/PageInfo" - }, - "PurchaseOrders" : { - "minItems" : 1, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/PurchaseOrder" - } - } - }, - "description" : "" }; defs["HistoryRecord"] = { "title" : "", @@ -3529,6 +3277,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "Invoices" : { "type" : "array", "items" : { @@ -4165,6 +3916,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "ManualJournals" : { "type" : "array", "items" : { @@ -4499,6 +4253,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "Overpayments" : { "type" : "array", "items" : { @@ -4509,24 +4266,24 @@ "description" : "", "x-isObjectArray" : true }; - defs["PageInfo"] = { + defs["Pagination"] = { "title" : "", "type" : "object", "properties" : { - "Page" : { + "page" : { "type" : "integer" }, - "PageSize" : { + "pageSize" : { "type" : "integer" }, - "TotalPages" : { + "pageCount" : { "type" : "integer" }, - "TotalRows" : { + "itemCount" : { "type" : "integer" } }, - "description" : "Pagination information" + "description" : "" }; defs["Payment"] = { "title" : "", @@ -4764,6 +4521,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "Payments" : { "type" : "array", "items" : { @@ -4929,6 +4689,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "Prepayments" : { "type" : "array", "items" : { @@ -5128,6 +4891,9 @@ "title" : "", "type" : "object", "properties" : { + "pagination" : { + "$ref" : "#/components/schemas/Pagination" + }, "PurchaseOrders" : { "type" : "array", "items" : { @@ -6381,7 +6147,7 @@