@uptiqai/integrations-sdk 1.25.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated-api.d.ts +2134 -172
- package/dist/generated-api.d.ts.map +1 -1
- package/dist/generated-api.js +1012 -4
- package/dist/generated-api.js.map +1 -1
- package/dist/index.d.ts +226 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +433 -2
- package/dist/index.js.map +1 -1
- package/dist/response-type-map.d.ts.map +1 -1
- package/dist/response-type-map.js +206 -18
- package/dist/response-type-map.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.Zendesk = exports.Wealthbox = exports.UdgNormalisedXero = exports.UdgNormalisedWave = exports.UdgNormalisedQuickbooks = exports.UdgNormalisedFreshbooks = exports.UdgNormalisedFreeAgent = exports.TwilioWhatsapp = exports.Telegram = exports.Supabase = exports.Stripe = exports.SocureRiskos = exports.Slack = exports.Shopify = exports.Semrush = exports.Salesforce = exports.Resend = exports.Redtail = void 0;
|
|
17
|
+
exports.Middesk = exports.MicrosoftTeams = exports.MicrosoftSharepoint = exports.MicrosoftOutlook = exports.MicrosoftOnedrive = exports.MicrosoftOAuth = exports.MicrosoftExcel365 = exports.Mailchimp = exports.Jira = exports.Hubspot = exports.GoogleSlides = exports.GoogleSheets = exports.GooglePlaces = exports.GoogleOAuth = exports.GoogleKms = exports.GoogleGenerativeAIImage = exports.GoogleGenerativeAI = exports.GoogleDrive = exports.GoogleDocs = exports.GoogleCloudStorage = exports.GoogleCalendar = exports.GoogleAnalytics = exports.Gmail = exports.Gitlab = exports.FirefliesAi = exports.Firecrawl = exports.Fathom = exports.ExperianBusiness = exports.Elevenlabs = exports.DunAndBradstreet = exports.Doola = exports.Docusign = exports.Discord = exports.Databricks = exports.Crunchbase = exports.CrsCreditApi = exports.CreditsafeFeatured = exports.CreditsafeCompliance = exports.Confluence = exports.Calendly = exports.AzureKms = exports.AzureBlobStorage = exports.AwsS3 = exports.AwsKms = exports.Apollo = exports.Anthropic = exports.AlphaVantage = exports.Alloy = exports.Airtable = exports.Abrigo = void 0;
|
|
18
|
+
exports.Zendesk = exports.Xero = exports.Wealthbox = exports.UdgNormalisedXero = exports.UdgNormalisedWave = exports.UdgNormalisedQuickbooks = exports.UdgNormalisedFreshbooks = exports.UdgNormalisedFreeAgent = exports.TwilioWhatsapp = exports.Telegram = exports.Supabase = exports.Stripe = exports.SocureRiskos = exports.Slack = exports.Shopify = exports.Semrush = exports.Salesforce = exports.Resend = exports.Redtail = exports.Recurly = exports.Plaid = exports.Pandadoc = exports.Openai = exports.Notion = void 0;
|
|
19
19
|
const generated_api_1 = require("./generated-api");
|
|
20
20
|
/**
|
|
21
21
|
* UPTIQ Integrations SDK
|
|
@@ -345,6 +345,67 @@ class Abrigo {
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
exports.Abrigo = Abrigo;
|
|
348
|
+
/**
|
|
349
|
+
* Airtable integration module
|
|
350
|
+
*/
|
|
351
|
+
class Airtable {
|
|
352
|
+
constructor() {
|
|
353
|
+
// Get the generated API methods
|
|
354
|
+
this.api = (0, generated_api_1.getIntegrationsAPI)();
|
|
355
|
+
}
|
|
356
|
+
/** Initiate Airtable OAuth flow */
|
|
357
|
+
oauthInitiate(body) {
|
|
358
|
+
return this.api.airtableOauthInitiate(body);
|
|
359
|
+
}
|
|
360
|
+
/** Set Airtable OAuth app credentials for a user */
|
|
361
|
+
setUserCredentials(body) {
|
|
362
|
+
return this.api.airtableSetUserCredentials(body);
|
|
363
|
+
}
|
|
364
|
+
oauthCallback(...args) {
|
|
365
|
+
return this.api.airtableOauthCallback(...args);
|
|
366
|
+
}
|
|
367
|
+
/** List and query records */
|
|
368
|
+
listRecords(body) {
|
|
369
|
+
return this.api.airtableListRecords(body);
|
|
370
|
+
}
|
|
371
|
+
/** Get a single record */
|
|
372
|
+
getRecord(body) {
|
|
373
|
+
return this.api.airtableGetRecord(body);
|
|
374
|
+
}
|
|
375
|
+
/** Create records */
|
|
376
|
+
createRecords(body) {
|
|
377
|
+
return this.api.airtableCreateRecords(body);
|
|
378
|
+
}
|
|
379
|
+
/** Update a record */
|
|
380
|
+
updateRecord(body) {
|
|
381
|
+
return this.api.airtableUpdateRecord(body);
|
|
382
|
+
}
|
|
383
|
+
/** Delete a record */
|
|
384
|
+
deleteRecord(body) {
|
|
385
|
+
return this.api.airtableDeleteRecord(body);
|
|
386
|
+
}
|
|
387
|
+
/** List bases */
|
|
388
|
+
listBases(body) {
|
|
389
|
+
return this.api.airtableListBases(body);
|
|
390
|
+
}
|
|
391
|
+
/** Get base schema (tables and fields) */
|
|
392
|
+
getBaseSchema(body) {
|
|
393
|
+
return this.api.airtableGetBaseSchema(body);
|
|
394
|
+
}
|
|
395
|
+
/** Upload an attachment to a record */
|
|
396
|
+
uploadAttachment(body) {
|
|
397
|
+
return this.api.airtableUploadAttachment(body);
|
|
398
|
+
}
|
|
399
|
+
/** Create a webhook */
|
|
400
|
+
createWebhook(body) {
|
|
401
|
+
return this.api.airtableCreateWebhook(body);
|
|
402
|
+
}
|
|
403
|
+
/** List webhook payloads */
|
|
404
|
+
listWebhookPayloads(body) {
|
|
405
|
+
return this.api.airtableListWebhookPayloads(body);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
exports.Airtable = Airtable;
|
|
348
409
|
/**
|
|
349
410
|
* Alloy integration module
|
|
350
411
|
*/
|
|
@@ -736,6 +797,67 @@ class AzureKms {
|
|
|
736
797
|
}
|
|
737
798
|
}
|
|
738
799
|
exports.AzureKms = AzureKms;
|
|
800
|
+
/**
|
|
801
|
+
* Calendly integration module
|
|
802
|
+
*/
|
|
803
|
+
class Calendly {
|
|
804
|
+
constructor() {
|
|
805
|
+
// Get the generated API methods
|
|
806
|
+
this.api = (0, generated_api_1.getIntegrationsAPI)();
|
|
807
|
+
}
|
|
808
|
+
/** Initiate Calendly OAuth flow */
|
|
809
|
+
oauthInitiate(body) {
|
|
810
|
+
return this.api.calendlyOauthInitiate(body);
|
|
811
|
+
}
|
|
812
|
+
/** Set Calendly OAuth app credentials for a user */
|
|
813
|
+
setUserCredentials(body) {
|
|
814
|
+
return this.api.calendlySetUserCredentials(body);
|
|
815
|
+
}
|
|
816
|
+
oauthCallback(...args) {
|
|
817
|
+
return this.api.calendlyOauthCallback(...args);
|
|
818
|
+
}
|
|
819
|
+
/** List event types */
|
|
820
|
+
getEventTypes(body) {
|
|
821
|
+
return this.api.calendlyGetEventTypes(body);
|
|
822
|
+
}
|
|
823
|
+
/** Create an event type */
|
|
824
|
+
createEventType(body) {
|
|
825
|
+
return this.api.calendlyCreateEventType(body);
|
|
826
|
+
}
|
|
827
|
+
/** Update an event type */
|
|
828
|
+
updateEventType(body) {
|
|
829
|
+
return this.api.calendlyUpdateEventType(body);
|
|
830
|
+
}
|
|
831
|
+
/** Get event type available times */
|
|
832
|
+
getEventTypeAvailableTimes(body) {
|
|
833
|
+
return this.api.calendlyGetEventTypeAvailableTimes(body);
|
|
834
|
+
}
|
|
835
|
+
/** List user availability schedules */
|
|
836
|
+
getUserAvailabilitySchedules(body) {
|
|
837
|
+
return this.api.calendlyGetUserAvailabilitySchedules(body);
|
|
838
|
+
}
|
|
839
|
+
/** Create a booking */
|
|
840
|
+
createBooking(body) {
|
|
841
|
+
return this.api.calendlyCreateBooking(body);
|
|
842
|
+
}
|
|
843
|
+
/** Cancel a booking */
|
|
844
|
+
cancelBooking(body) {
|
|
845
|
+
return this.api.calendlyCancelBooking(body);
|
|
846
|
+
}
|
|
847
|
+
/** List scheduled events */
|
|
848
|
+
getScheduledEvents(body) {
|
|
849
|
+
return this.api.calendlyGetScheduledEvents(body);
|
|
850
|
+
}
|
|
851
|
+
/** List scheduled event invitees */
|
|
852
|
+
getScheduledEventInvitees(body) {
|
|
853
|
+
return this.api.calendlyGetScheduledEventInvitees(body);
|
|
854
|
+
}
|
|
855
|
+
/** Mark an invitee as a no-show */
|
|
856
|
+
createInviteeNoShow(body) {
|
|
857
|
+
return this.api.calendlyCreateInviteeNoShow(body);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
exports.Calendly = Calendly;
|
|
739
861
|
/**
|
|
740
862
|
* Confluence integration module
|
|
741
863
|
*/
|
|
@@ -1561,6 +1683,111 @@ class Crunchbase {
|
|
|
1561
1683
|
}
|
|
1562
1684
|
}
|
|
1563
1685
|
exports.Crunchbase = Crunchbase;
|
|
1686
|
+
/**
|
|
1687
|
+
* Databricks integration module
|
|
1688
|
+
*/
|
|
1689
|
+
class Databricks {
|
|
1690
|
+
constructor() {
|
|
1691
|
+
// Get the generated API methods
|
|
1692
|
+
this.api = (0, generated_api_1.getIntegrationsAPI)();
|
|
1693
|
+
}
|
|
1694
|
+
/** Initiate Databricks OAuth flow */
|
|
1695
|
+
oauthInitiate(body) {
|
|
1696
|
+
return this.api.databricksOauthInitiate(body);
|
|
1697
|
+
}
|
|
1698
|
+
/** Store Databricks per-user credentials */
|
|
1699
|
+
setUserCredentials(body) {
|
|
1700
|
+
return this.api.databricksSetUserCredentials(body);
|
|
1701
|
+
}
|
|
1702
|
+
oauthCallback(...args) {
|
|
1703
|
+
return this.api.databricksOauthCallback(...args);
|
|
1704
|
+
}
|
|
1705
|
+
/** Submit a SQL statement */
|
|
1706
|
+
submitSqlStatement(body) {
|
|
1707
|
+
return this.api.databricksSubmitSqlStatement(body);
|
|
1708
|
+
}
|
|
1709
|
+
/** Get SQL statement result */
|
|
1710
|
+
getSqlStatement(body) {
|
|
1711
|
+
return this.api.databricksGetSqlStatement(body);
|
|
1712
|
+
}
|
|
1713
|
+
/** Create a job */
|
|
1714
|
+
createJob(body) {
|
|
1715
|
+
return this.api.databricksCreateJob(body);
|
|
1716
|
+
}
|
|
1717
|
+
/** Run a job now */
|
|
1718
|
+
runJob(body) {
|
|
1719
|
+
return this.api.databricksRunJob(body);
|
|
1720
|
+
}
|
|
1721
|
+
/** List jobs */
|
|
1722
|
+
listJobs(body) {
|
|
1723
|
+
return this.api.databricksListJobs(body);
|
|
1724
|
+
}
|
|
1725
|
+
/** Get job run status */
|
|
1726
|
+
getJobRun(body) {
|
|
1727
|
+
return this.api.databricksGetJobRun(body);
|
|
1728
|
+
}
|
|
1729
|
+
/** Cancel a job run */
|
|
1730
|
+
cancelJobRun(body) {
|
|
1731
|
+
return this.api.databricksCancelJobRun(body);
|
|
1732
|
+
}
|
|
1733
|
+
/** List Unity Catalog catalogs */
|
|
1734
|
+
listCatalogs(body) {
|
|
1735
|
+
return this.api.databricksListCatalogs(body);
|
|
1736
|
+
}
|
|
1737
|
+
/** List Unity Catalog schemas */
|
|
1738
|
+
listSchemas(body) {
|
|
1739
|
+
return this.api.databricksListSchemas(body);
|
|
1740
|
+
}
|
|
1741
|
+
/** List Unity Catalog tables */
|
|
1742
|
+
listTables(body) {
|
|
1743
|
+
return this.api.databricksListTables(body);
|
|
1744
|
+
}
|
|
1745
|
+
/** List clusters */
|
|
1746
|
+
listClusters(body) {
|
|
1747
|
+
return this.api.databricksListClusters(body);
|
|
1748
|
+
}
|
|
1749
|
+
/** Start a cluster */
|
|
1750
|
+
startCluster(body) {
|
|
1751
|
+
return this.api.databricksStartCluster(body);
|
|
1752
|
+
}
|
|
1753
|
+
/** Terminate a cluster */
|
|
1754
|
+
terminateCluster(body) {
|
|
1755
|
+
return this.api.databricksTerminateCluster(body);
|
|
1756
|
+
}
|
|
1757
|
+
/** Get cluster status */
|
|
1758
|
+
getCluster(body) {
|
|
1759
|
+
return this.api.databricksGetCluster(body);
|
|
1760
|
+
}
|
|
1761
|
+
/** Start a SQL warehouse */
|
|
1762
|
+
startWarehouse(body) {
|
|
1763
|
+
return this.api.databricksStartWarehouse(body);
|
|
1764
|
+
}
|
|
1765
|
+
/** Stop a SQL warehouse */
|
|
1766
|
+
stopWarehouse(body) {
|
|
1767
|
+
return this.api.databricksStopWarehouse(body);
|
|
1768
|
+
}
|
|
1769
|
+
/** Get SQL warehouse status */
|
|
1770
|
+
getWarehouse(body) {
|
|
1771
|
+
return this.api.databricksGetWarehouse(body);
|
|
1772
|
+
}
|
|
1773
|
+
/** Run a notebook */
|
|
1774
|
+
submitNotebookRun(body) {
|
|
1775
|
+
return this.api.databricksSubmitNotebookRun(body);
|
|
1776
|
+
}
|
|
1777
|
+
/** Get notebook run output */
|
|
1778
|
+
getRunOutput(body) {
|
|
1779
|
+
return this.api.databricksGetRunOutput(body);
|
|
1780
|
+
}
|
|
1781
|
+
/** Invoke a model serving endpoint */
|
|
1782
|
+
invokeServingEndpoint(body) {
|
|
1783
|
+
return this.api.databricksInvokeServingEndpoint(body);
|
|
1784
|
+
}
|
|
1785
|
+
/** Get model serving endpoint */
|
|
1786
|
+
getServingEndpoint(body) {
|
|
1787
|
+
return this.api.databricksGetServingEndpoint(body);
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
exports.Databricks = Databricks;
|
|
1564
1791
|
/**
|
|
1565
1792
|
* Discord integration module
|
|
1566
1793
|
*/
|
|
@@ -3156,6 +3383,63 @@ class MicrosoftSharepoint {
|
|
|
3156
3383
|
}
|
|
3157
3384
|
}
|
|
3158
3385
|
exports.MicrosoftSharepoint = MicrosoftSharepoint;
|
|
3386
|
+
/**
|
|
3387
|
+
* MicrosoftTeams integration module
|
|
3388
|
+
*/
|
|
3389
|
+
class MicrosoftTeams {
|
|
3390
|
+
constructor() {
|
|
3391
|
+
// Get the generated API methods
|
|
3392
|
+
this.api = (0, generated_api_1.getIntegrationsAPI)();
|
|
3393
|
+
}
|
|
3394
|
+
/** Set Microsoft Teams OAuth app credentials for a user */
|
|
3395
|
+
setUserCredentials(body) {
|
|
3396
|
+
return this.api.microsoftTeamsSetUserCredentials(body);
|
|
3397
|
+
}
|
|
3398
|
+
/** Initiate Microsoft Teams Graph OAuth flow */
|
|
3399
|
+
oauthInitiate(body) {
|
|
3400
|
+
return this.api.microsoftTeamsOauthInitiate(body);
|
|
3401
|
+
}
|
|
3402
|
+
oauthCallback(...args) {
|
|
3403
|
+
return this.api.microsoftTeamsOauthCallback(...args);
|
|
3404
|
+
}
|
|
3405
|
+
/** List joined teams */
|
|
3406
|
+
teamsList(body) {
|
|
3407
|
+
return this.api.microsoftTeamsTeamsList(body);
|
|
3408
|
+
}
|
|
3409
|
+
/** List channels */
|
|
3410
|
+
channelsList(body) {
|
|
3411
|
+
return this.api.microsoftTeamsChannelsList(body);
|
|
3412
|
+
}
|
|
3413
|
+
/** Send a channel message */
|
|
3414
|
+
channelMessageSend(body) {
|
|
3415
|
+
return this.api.microsoftTeamsChannelMessageSend(body);
|
|
3416
|
+
}
|
|
3417
|
+
/** List channel messages */
|
|
3418
|
+
channelMessagesList(body) {
|
|
3419
|
+
return this.api.microsoftTeamsChannelMessagesList(body);
|
|
3420
|
+
}
|
|
3421
|
+
/** Create a chat */
|
|
3422
|
+
chatsCreate(body) {
|
|
3423
|
+
return this.api.microsoftTeamsChatsCreate(body);
|
|
3424
|
+
}
|
|
3425
|
+
/** Send a chat message */
|
|
3426
|
+
chatMessageSend(body) {
|
|
3427
|
+
return this.api.microsoftTeamsChatMessageSend(body);
|
|
3428
|
+
}
|
|
3429
|
+
/** List chat messages */
|
|
3430
|
+
chatMessagesList(body) {
|
|
3431
|
+
return this.api.microsoftTeamsChatMessagesList(body);
|
|
3432
|
+
}
|
|
3433
|
+
/** Create an online meeting */
|
|
3434
|
+
onlineMeetingCreate(body) {
|
|
3435
|
+
return this.api.microsoftTeamsOnlineMeetingCreate(body);
|
|
3436
|
+
}
|
|
3437
|
+
/** Get an online meeting */
|
|
3438
|
+
onlineMeetingGet(body) {
|
|
3439
|
+
return this.api.microsoftTeamsOnlineMeetingGet(body);
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
exports.MicrosoftTeams = MicrosoftTeams;
|
|
3159
3443
|
/**
|
|
3160
3444
|
* Middesk integration module
|
|
3161
3445
|
*/
|
|
@@ -3471,6 +3755,88 @@ class Plaid {
|
|
|
3471
3755
|
}
|
|
3472
3756
|
}
|
|
3473
3757
|
exports.Plaid = Plaid;
|
|
3758
|
+
/**
|
|
3759
|
+
* Recurly integration module
|
|
3760
|
+
*/
|
|
3761
|
+
class Recurly {
|
|
3762
|
+
constructor() {
|
|
3763
|
+
// Get the generated API methods
|
|
3764
|
+
this.api = (0, generated_api_1.getIntegrationsAPI)();
|
|
3765
|
+
}
|
|
3766
|
+
/** Set Recurly private API key for a user */
|
|
3767
|
+
setUserCredentials(body) {
|
|
3768
|
+
return this.api.recurlySetUserCredentials(body);
|
|
3769
|
+
}
|
|
3770
|
+
/** Create a subscription */
|
|
3771
|
+
createSubscription(body) {
|
|
3772
|
+
return this.api.recurlyCreateSubscription(body);
|
|
3773
|
+
}
|
|
3774
|
+
/** Amend (upgrade/downgrade) a subscription */
|
|
3775
|
+
amendSubscription(body) {
|
|
3776
|
+
return this.api.recurlyAmendSubscription(body);
|
|
3777
|
+
}
|
|
3778
|
+
/** Cancel a subscription */
|
|
3779
|
+
cancelSubscription(body) {
|
|
3780
|
+
return this.api.recurlyCancelSubscription(body);
|
|
3781
|
+
}
|
|
3782
|
+
/** Pause a subscription */
|
|
3783
|
+
pauseSubscription(body) {
|
|
3784
|
+
return this.api.recurlyPauseSubscription(body);
|
|
3785
|
+
}
|
|
3786
|
+
/** Resume a subscription */
|
|
3787
|
+
resumeSubscription(body) {
|
|
3788
|
+
return this.api.recurlyResumeSubscription(body);
|
|
3789
|
+
}
|
|
3790
|
+
/** Create a purchase */
|
|
3791
|
+
createPurchase(body) {
|
|
3792
|
+
return this.api.recurlyCreatePurchase(body);
|
|
3793
|
+
}
|
|
3794
|
+
/** Collect an invoice */
|
|
3795
|
+
collectInvoice(body) {
|
|
3796
|
+
return this.api.recurlyCollectInvoice(body);
|
|
3797
|
+
}
|
|
3798
|
+
/** Create a plan */
|
|
3799
|
+
createPlan(body) {
|
|
3800
|
+
return this.api.recurlyCreatePlan(body);
|
|
3801
|
+
}
|
|
3802
|
+
/** Update a plan */
|
|
3803
|
+
updatePlan(body) {
|
|
3804
|
+
return this.api.recurlyUpdatePlan(body);
|
|
3805
|
+
}
|
|
3806
|
+
/** Create a plan add-on */
|
|
3807
|
+
createPlanAddOn(body) {
|
|
3808
|
+
return this.api.recurlyCreatePlanAddOn(body);
|
|
3809
|
+
}
|
|
3810
|
+
/** Update a plan add-on */
|
|
3811
|
+
updatePlanAddOn(body) {
|
|
3812
|
+
return this.api.recurlyUpdatePlanAddOn(body);
|
|
3813
|
+
}
|
|
3814
|
+
/** Remove a plan add-on */
|
|
3815
|
+
removePlanAddOn(body) {
|
|
3816
|
+
return this.api.recurlyRemovePlanAddOn(body);
|
|
3817
|
+
}
|
|
3818
|
+
/** Assign a dunning campaign to a plan */
|
|
3819
|
+
assignDunningCampaign(body) {
|
|
3820
|
+
return this.api.recurlyAssignDunningCampaign(body);
|
|
3821
|
+
}
|
|
3822
|
+
/** Get an invoice */
|
|
3823
|
+
getInvoice(body) {
|
|
3824
|
+
return this.api.recurlyGetInvoice(body);
|
|
3825
|
+
}
|
|
3826
|
+
/** List invoices for an account */
|
|
3827
|
+
listAccountInvoices(body) {
|
|
3828
|
+
return this.api.recurlyListAccountInvoices(body);
|
|
3829
|
+
}
|
|
3830
|
+
/** Generate an invoice */
|
|
3831
|
+
generateInvoice(body) {
|
|
3832
|
+
return this.api.recurlyGenerateInvoice(body);
|
|
3833
|
+
}
|
|
3834
|
+
/** Download an invoice PDF */
|
|
3835
|
+
getInvoicePdf(body) {
|
|
3836
|
+
return this.api.recurlyGetInvoicePdf(body);
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
3839
|
+
exports.Recurly = Recurly;
|
|
3474
3840
|
/**
|
|
3475
3841
|
* Redtail integration module
|
|
3476
3842
|
*/
|
|
@@ -4979,6 +5345,71 @@ class Wealthbox {
|
|
|
4979
5345
|
}
|
|
4980
5346
|
}
|
|
4981
5347
|
exports.Wealthbox = Wealthbox;
|
|
5348
|
+
/**
|
|
5349
|
+
* Xero integration module
|
|
5350
|
+
*/
|
|
5351
|
+
class Xero {
|
|
5352
|
+
constructor() {
|
|
5353
|
+
// Get the generated API methods
|
|
5354
|
+
this.api = (0, generated_api_1.getIntegrationsAPI)();
|
|
5355
|
+
}
|
|
5356
|
+
/** Initiate Xero OAuth flow */
|
|
5357
|
+
oauthInitiate(body) {
|
|
5358
|
+
return this.api.xeroOauthInitiate(body);
|
|
5359
|
+
}
|
|
5360
|
+
/** Set Xero OAuth app credentials for a user */
|
|
5361
|
+
setUserCredentials(body) {
|
|
5362
|
+
return this.api.xeroSetUserCredentials(body);
|
|
5363
|
+
}
|
|
5364
|
+
oauthCallback(...args) {
|
|
5365
|
+
return this.api.xeroOauthCallback(...args);
|
|
5366
|
+
}
|
|
5367
|
+
/** Create a sales invoice */
|
|
5368
|
+
createInvoice(body) {
|
|
5369
|
+
return this.api.xeroCreateInvoice(body);
|
|
5370
|
+
}
|
|
5371
|
+
/** Get invoices */
|
|
5372
|
+
getInvoices(body) {
|
|
5373
|
+
return this.api.xeroGetInvoices(body);
|
|
5374
|
+
}
|
|
5375
|
+
/** Update an invoice */
|
|
5376
|
+
updateInvoice(body) {
|
|
5377
|
+
return this.api.xeroUpdateInvoice(body);
|
|
5378
|
+
}
|
|
5379
|
+
/** Create a supplier bill */
|
|
5380
|
+
createBill(body) {
|
|
5381
|
+
return this.api.xeroCreateBill(body);
|
|
5382
|
+
}
|
|
5383
|
+
/** Create a contact */
|
|
5384
|
+
createContact(body) {
|
|
5385
|
+
return this.api.xeroCreateContact(body);
|
|
5386
|
+
}
|
|
5387
|
+
/** Update a contact */
|
|
5388
|
+
updateContact(body) {
|
|
5389
|
+
return this.api.xeroUpdateContact(body);
|
|
5390
|
+
}
|
|
5391
|
+
/** Get payments */
|
|
5392
|
+
getPayments(body) {
|
|
5393
|
+
return this.api.xeroGetPayments(body);
|
|
5394
|
+
}
|
|
5395
|
+
/** Record a payment */
|
|
5396
|
+
recordPayment(body) {
|
|
5397
|
+
return this.api.xeroRecordPayment(body);
|
|
5398
|
+
}
|
|
5399
|
+
/** Get Profit and Loss report */
|
|
5400
|
+
getProfitAndLoss(body) {
|
|
5401
|
+
return this.api.xeroGetProfitAndLoss(body);
|
|
5402
|
+
}
|
|
5403
|
+
/** Get Balance Sheet report */
|
|
5404
|
+
getBalanceSheet(body) {
|
|
5405
|
+
return this.api.xeroGetBalanceSheet(body);
|
|
5406
|
+
}
|
|
5407
|
+
/** Get bank transactions */
|
|
5408
|
+
getBankTransactions(body) {
|
|
5409
|
+
return this.api.xeroGetBankTransactions(body);
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
exports.Xero = Xero;
|
|
4982
5413
|
/**
|
|
4983
5414
|
* Zendesk integration module
|
|
4984
5415
|
*/
|