Skip to content

Commit

Permalink
Merge pull request #26 from integration-os/feature/common-model-sync-…
Browse files Browse the repository at this point in the history
…updates

feat: regenerate types with common model synchronization
  • Loading branch information
paulkr authored Jan 6, 2025
2 parents f331739 + f50979e commit bfbba75
Show file tree
Hide file tree
Showing 3 changed files with 2,101 additions and 2,101 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@integrationos/node",
"version": "4.1.16",
"version": "4.2.0",
"description": "Node SDK for the IntegrationOS Unified API",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down
280 changes: 140 additions & 140 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,58 +7,58 @@ export * from './types/models';
export * from './paginate';

import {
Projects,
Events,
Calendars,
Threads,
Drafts,
Drives,
Folders,
Files,
Recordings,
Transcripts,
Tables,
Databases,
Attributes,
Records,
Objects,
ModifierGroups,
Locations,
Webhooks,
PriceRules,
Discounts,
Chats,
Messages,
Conversations,
TaxRates,
CreditNotes,
Expenses,
Transactions,
Accounts,
PurchaseOrders,
Refunds,
Payments,
Bills,
Vendors,
BalanceSheets,
IncomeStatements,
Invoices,
JournalEntries,
InvoiceItems,
Users,
Transcripts,
Transactions,
Tickets,
Candidates,
Contacts,
Jobs,
Threads,
TaxRates,
Tasks,
Tables,
Refunds,
Records,
Recordings,
PurchaseOrders,
Projects,
Products,
PriceRules,
Payments,
Orders,
Opportunities,
Users,
Categories,
Objects,
Notes,
ModifierGroups,
Messages,
Locations,
Leads,
JournalEntries,
Jobs,
Invoices,
InvoiceItems,
IncomeStatements,
Folders,
Files,
Expenses,
Events,
Drives,
Drafts,
Discounts,
Databases,
Customers,
CreditNotes,
Conversations,
Contacts,
Companies,
Customers
Chats,
Categories,
Candidates,
Calendars,
Bills,
BalanceSheets,
Attributes,
Accounts
} from './types/';

export interface UnifiedApi<Type> {
Expand Down Expand Up @@ -234,160 +234,160 @@ export class IntegrationOS {
return new PassthroughResourceImpl(this.axiosInstance, connectionKey, 'passthrough');
}

projects(connectionKey: string) {
return new UnifiedResourceImpl<Projects>(this.axiosInstance, connectionKey, 'projects');
}
events(connectionKey: string) {
return new UnifiedResourceImpl<Events>(this.axiosInstance, connectionKey, 'events');
webhooks(connectionKey: string) {
return new UnifiedResourceImpl<Webhooks>(this.axiosInstance, connectionKey, 'webhooks');
}
calendars(connectionKey: string) {
return new UnifiedResourceImpl<Calendars>(this.axiosInstance, connectionKey, 'calendars');
vendors(connectionKey: string) {
return new UnifiedResourceImpl<Vendors>(this.axiosInstance, connectionKey, 'vendors');
}
threads(connectionKey: string) {
return new UnifiedResourceImpl<Threads>(this.axiosInstance, connectionKey, 'threads');
users(connectionKey: string) {
return new UnifiedResourceImpl<Users>(this.axiosInstance, connectionKey, 'users');
}
drafts(connectionKey: string) {
return new UnifiedResourceImpl<Drafts>(this.axiosInstance, connectionKey, 'drafts');
transcripts(connectionKey: string) {
return new UnifiedResourceImpl<Transcripts>(this.axiosInstance, connectionKey, 'transcripts');
}
drives(connectionKey: string) {
return new UnifiedResourceImpl<Drives>(this.axiosInstance, connectionKey, 'drives');
transactions(connectionKey: string) {
return new UnifiedResourceImpl<Transactions>(this.axiosInstance, connectionKey, 'transactions');
}
folders(connectionKey: string) {
return new UnifiedResourceImpl<Folders>(this.axiosInstance, connectionKey, 'folders');
tickets(connectionKey: string) {
return new UnifiedResourceImpl<Tickets>(this.axiosInstance, connectionKey, 'tickets');
}
files(connectionKey: string) {
return new UnifiedResourceImpl<Files>(this.axiosInstance, connectionKey, 'files');
threads(connectionKey: string) {
return new UnifiedResourceImpl<Threads>(this.axiosInstance, connectionKey, 'threads');
}
recordings(connectionKey: string) {
return new UnifiedResourceImpl<Recordings>(this.axiosInstance, connectionKey, 'recordings');
taxRates(connectionKey: string) {
return new UnifiedResourceImpl<TaxRates>(this.axiosInstance, connectionKey, 'taxrates');
}
transcripts(connectionKey: string) {
return new UnifiedResourceImpl<Transcripts>(this.axiosInstance, connectionKey, 'transcripts');
tasks(connectionKey: string) {
return new UnifiedResourceImpl<Tasks>(this.axiosInstance, connectionKey, 'tasks');
}
tables(connectionKey: string) {
return new UnifiedResourceImpl<Tables>(this.axiosInstance, connectionKey, 'tables');
}
databases(connectionKey: string) {
return new UnifiedResourceImpl<Databases>(this.axiosInstance, connectionKey, 'databases');
}
attributes(connectionKey: string) {
return new UnifiedResourceImpl<Attributes>(this.axiosInstance, connectionKey, 'attributes');
refunds(connectionKey: string) {
return new UnifiedResourceImpl<Refunds>(this.axiosInstance, connectionKey, 'refunds');
}
records(connectionKey: string) {
return new UnifiedResourceImpl<Records>(this.axiosInstance, connectionKey, 'records');
}
objects(connectionKey: string) {
return new UnifiedResourceImpl<Objects>(this.axiosInstance, connectionKey, 'objects');
recordings(connectionKey: string) {
return new UnifiedResourceImpl<Recordings>(this.axiosInstance, connectionKey, 'recordings');
}
modifierGroups(connectionKey: string) {
return new UnifiedResourceImpl<ModifierGroups>(this.axiosInstance, connectionKey, 'modifiergroups');
purchaseOrders(connectionKey: string) {
return new UnifiedResourceImpl<PurchaseOrders>(this.axiosInstance, connectionKey, 'purchaseorders');
}
locations(connectionKey: string) {
return new UnifiedResourceImpl<Locations>(this.axiosInstance, connectionKey, 'locations');
projects(connectionKey: string) {
return new UnifiedResourceImpl<Projects>(this.axiosInstance, connectionKey, 'projects');
}
webhooks(connectionKey: string) {
return new UnifiedResourceImpl<Webhooks>(this.axiosInstance, connectionKey, 'webhooks');
products(connectionKey: string) {
return new UnifiedResourceImpl<Products>(this.axiosInstance, connectionKey, 'products');
}
priceRules(connectionKey: string) {
return new UnifiedResourceImpl<PriceRules>(this.axiosInstance, connectionKey, 'pricerules');
}
discounts(connectionKey: string) {
return new UnifiedResourceImpl<Discounts>(this.axiosInstance, connectionKey, 'discounts');
}
chats(connectionKey: string) {
return new UnifiedResourceImpl<Chats>(this.axiosInstance, connectionKey, 'chats');
}
messages(connectionKey: string) {
return new UnifiedResourceImpl<Messages>(this.axiosInstance, connectionKey, 'messages');
payments(connectionKey: string) {
return new UnifiedResourceImpl<Payments>(this.axiosInstance, connectionKey, 'payments');
}
conversations(connectionKey: string) {
return new UnifiedResourceImpl<Conversations>(this.axiosInstance, connectionKey, 'conversations');
orders(connectionKey: string) {
return new UnifiedResourceImpl<Orders>(this.axiosInstance, connectionKey, 'orders');
}
taxRates(connectionKey: string) {
return new UnifiedResourceImpl<TaxRates>(this.axiosInstance, connectionKey, 'taxrates');
opportunities(connectionKey: string) {
return new UnifiedResourceImpl<Opportunities>(this.axiosInstance, connectionKey, 'opportunities');
}
creditNotes(connectionKey: string) {
return new UnifiedResourceImpl<CreditNotes>(this.axiosInstance, connectionKey, 'creditnotes');
objects(connectionKey: string) {
return new UnifiedResourceImpl<Objects>(this.axiosInstance, connectionKey, 'objects');
}
expenses(connectionKey: string) {
return new UnifiedResourceImpl<Expenses>(this.axiosInstance, connectionKey, 'expenses');
notes(connectionKey: string) {
return new UnifiedResourceImpl<Notes>(this.axiosInstance, connectionKey, 'notes');
}
transactions(connectionKey: string) {
return new UnifiedResourceImpl<Transactions>(this.axiosInstance, connectionKey, 'transactions');
modifierGroups(connectionKey: string) {
return new UnifiedResourceImpl<ModifierGroups>(this.axiosInstance, connectionKey, 'modifiergroups');
}
accounts(connectionKey: string) {
return new UnifiedResourceImpl<Accounts>(this.axiosInstance, connectionKey, 'accounts');
messages(connectionKey: string) {
return new UnifiedResourceImpl<Messages>(this.axiosInstance, connectionKey, 'messages');
}
purchaseOrders(connectionKey: string) {
return new UnifiedResourceImpl<PurchaseOrders>(this.axiosInstance, connectionKey, 'purchaseorders');
locations(connectionKey: string) {
return new UnifiedResourceImpl<Locations>(this.axiosInstance, connectionKey, 'locations');
}
refunds(connectionKey: string) {
return new UnifiedResourceImpl<Refunds>(this.axiosInstance, connectionKey, 'refunds');
leads(connectionKey: string) {
return new UnifiedResourceImpl<Leads>(this.axiosInstance, connectionKey, 'leads');
}
payments(connectionKey: string) {
return new UnifiedResourceImpl<Payments>(this.axiosInstance, connectionKey, 'payments');
journalEntries(connectionKey: string) {
return new UnifiedResourceImpl<JournalEntries>(this.axiosInstance, connectionKey, 'journalentries');
}
bills(connectionKey: string) {
return new UnifiedResourceImpl<Bills>(this.axiosInstance, connectionKey, 'bills');
jobs(connectionKey: string) {
return new UnifiedResourceImpl<Jobs>(this.axiosInstance, connectionKey, 'jobs');
}
vendors(connectionKey: string) {
return new UnifiedResourceImpl<Vendors>(this.axiosInstance, connectionKey, 'vendors');
invoices(connectionKey: string) {
return new UnifiedResourceImpl<Invoices>(this.axiosInstance, connectionKey, 'invoices');
}
balanceSheets(connectionKey: string) {
return new UnifiedResourceImpl<BalanceSheets>(this.axiosInstance, connectionKey, 'balancesheets');
invoiceItems(connectionKey: string) {
return new UnifiedResourceImpl<InvoiceItems>(this.axiosInstance, connectionKey, 'invoiceitems');
}
incomeStatements(connectionKey: string) {
return new UnifiedResourceImpl<IncomeStatements>(this.axiosInstance, connectionKey, 'incomestatements');
}
invoices(connectionKey: string) {
return new UnifiedResourceImpl<Invoices>(this.axiosInstance, connectionKey, 'invoices');
folders(connectionKey: string) {
return new UnifiedResourceImpl<Folders>(this.axiosInstance, connectionKey, 'folders');
}
journalEntries(connectionKey: string) {
return new UnifiedResourceImpl<JournalEntries>(this.axiosInstance, connectionKey, 'journalentries');
files(connectionKey: string) {
return new UnifiedResourceImpl<Files>(this.axiosInstance, connectionKey, 'files');
}
invoiceItems(connectionKey: string) {
return new UnifiedResourceImpl<InvoiceItems>(this.axiosInstance, connectionKey, 'invoiceitems');
expenses(connectionKey: string) {
return new UnifiedResourceImpl<Expenses>(this.axiosInstance, connectionKey, 'expenses');
}
tickets(connectionKey: string) {
return new UnifiedResourceImpl<Tickets>(this.axiosInstance, connectionKey, 'tickets');
events(connectionKey: string) {
return new UnifiedResourceImpl<Events>(this.axiosInstance, connectionKey, 'events');
}
candidates(connectionKey: string) {
return new UnifiedResourceImpl<Candidates>(this.axiosInstance, connectionKey, 'candidates');
drives(connectionKey: string) {
return new UnifiedResourceImpl<Drives>(this.axiosInstance, connectionKey, 'drives');
}
contacts(connectionKey: string) {
return new UnifiedResourceImpl<Contacts>(this.axiosInstance, connectionKey, 'contacts');
drafts(connectionKey: string) {
return new UnifiedResourceImpl<Drafts>(this.axiosInstance, connectionKey, 'drafts');
}
jobs(connectionKey: string) {
return new UnifiedResourceImpl<Jobs>(this.axiosInstance, connectionKey, 'jobs');
discounts(connectionKey: string) {
return new UnifiedResourceImpl<Discounts>(this.axiosInstance, connectionKey, 'discounts');
}
tasks(connectionKey: string) {
return new UnifiedResourceImpl<Tasks>(this.axiosInstance, connectionKey, 'tasks');
databases(connectionKey: string) {
return new UnifiedResourceImpl<Databases>(this.axiosInstance, connectionKey, 'databases');
}
products(connectionKey: string) {
return new UnifiedResourceImpl<Products>(this.axiosInstance, connectionKey, 'products');
customers(connectionKey: string) {
return new UnifiedResourceImpl<Customers>(this.axiosInstance, connectionKey, 'customers');
}
orders(connectionKey: string) {
return new UnifiedResourceImpl<Orders>(this.axiosInstance, connectionKey, 'orders');
creditNotes(connectionKey: string) {
return new UnifiedResourceImpl<CreditNotes>(this.axiosInstance, connectionKey, 'creditnotes');
}
opportunities(connectionKey: string) {
return new UnifiedResourceImpl<Opportunities>(this.axiosInstance, connectionKey, 'opportunities');
conversations(connectionKey: string) {
return new UnifiedResourceImpl<Conversations>(this.axiosInstance, connectionKey, 'conversations');
}
users(connectionKey: string) {
return new UnifiedResourceImpl<Users>(this.axiosInstance, connectionKey, 'users');
contacts(connectionKey: string) {
return new UnifiedResourceImpl<Contacts>(this.axiosInstance, connectionKey, 'contacts');
}
companies(connectionKey: string) {
return new UnifiedResourceImpl<Companies>(this.axiosInstance, connectionKey, 'companies');
}
chats(connectionKey: string) {
return new UnifiedResourceImpl<Chats>(this.axiosInstance, connectionKey, 'chats');
}
categories(connectionKey: string) {
return new UnifiedResourceImpl<Categories>(this.axiosInstance, connectionKey, 'categories');
}
notes(connectionKey: string) {
return new UnifiedResourceImpl<Notes>(this.axiosInstance, connectionKey, 'notes');
candidates(connectionKey: string) {
return new UnifiedResourceImpl<Candidates>(this.axiosInstance, connectionKey, 'candidates');
}
leads(connectionKey: string) {
return new UnifiedResourceImpl<Leads>(this.axiosInstance, connectionKey, 'leads');
calendars(connectionKey: string) {
return new UnifiedResourceImpl<Calendars>(this.axiosInstance, connectionKey, 'calendars');
}
companies(connectionKey: string) {
return new UnifiedResourceImpl<Companies>(this.axiosInstance, connectionKey, 'companies');
bills(connectionKey: string) {
return new UnifiedResourceImpl<Bills>(this.axiosInstance, connectionKey, 'bills');
}
customers(connectionKey: string) {
return new UnifiedResourceImpl<Customers>(this.axiosInstance, connectionKey, 'customers');
balanceSheets(connectionKey: string) {
return new UnifiedResourceImpl<BalanceSheets>(this.axiosInstance, connectionKey, 'balancesheets');
}
attributes(connectionKey: string) {
return new UnifiedResourceImpl<Attributes>(this.axiosInstance, connectionKey, 'attributes');
}
accounts(connectionKey: string) {
return new UnifiedResourceImpl<Accounts>(this.axiosInstance, connectionKey, 'accounts');
}
}
Loading

0 comments on commit bfbba75

Please sign in to comment.