@bubblelab/bubble-core 0.1.213 → 0.1.215
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/bubble-bundle.d.ts +120 -81
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +3 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.d.ts +4 -4
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +25 -9
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +126 -126
- package/dist/bubbles/service-bubble/apify/apify.d.ts +4 -4
- package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +6 -6
- package/dist/bubbles/service-bubble/attio/attio.d.ts +4 -4
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +4 -4
- package/dist/bubbles/service-bubble/capability-pipeline.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/capability-pipeline.js +15 -5
- package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +8 -8
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +16 -16
- package/dist/bubbles/service-bubble/firecrawl.d.ts +12 -12
- package/dist/bubbles/service-bubble/gmail.d.ts +84 -84
- package/dist/bubbles/service-bubble/google-drive.d.ts +32 -32
- package/dist/bubbles/service-bubble/jira/jira.d.ts +12 -12
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +14 -14
- package/dist/bubbles/service-bubble/notion/notion.d.ts +244 -244
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
- package/dist/bubbles/service-bubble/resend.d.ts +4 -4
- package/dist/bubbles/service-bubble/slack/slack.d.ts +154 -154
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +4 -4
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +6 -6
- package/dist/bubbles/service-bubble/xero/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/xero/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/xero/index.js +3 -0
- package/dist/bubbles/service-bubble/xero/index.js.map +1 -0
- package/dist/bubbles/service-bubble/xero/xero.d.ts +975 -0
- package/dist/bubbles/service-bubble/xero/xero.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/xero/xero.js +477 -0
- package/dist/bubbles/service-bubble/xero/xero.js.map +1 -0
- package/dist/bubbles/service-bubble/xero/xero.schema.d.ts +924 -0
- package/dist/bubbles/service-bubble/xero/xero.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/xero/xero.schema.js +366 -0
- package/dist/bubbles/service-bubble/xero/xero.schema.js.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +6 -6
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +80 -80
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +10 -10
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +24 -24
- package/dist/bubbles.json +1189 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xero.schema.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/xero/xero.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AA2C3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwM3B,CAAC;AAyDH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8G3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
3
|
+
// Shared field helpers
|
|
4
|
+
const credentialsField = z
|
|
5
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
6
|
+
.optional()
|
|
7
|
+
.describe('Object mapping credential types to values (injected at runtime)');
|
|
8
|
+
const invoiceIdField = z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1, 'Invoice ID is required')
|
|
11
|
+
.describe('Xero invoice UUID');
|
|
12
|
+
const contactIdField = z
|
|
13
|
+
.string()
|
|
14
|
+
.min(1, 'Contact ID is required')
|
|
15
|
+
.describe('Xero contact UUID');
|
|
16
|
+
// Line item schema for invoices
|
|
17
|
+
const LineItemSchema = z
|
|
18
|
+
.object({
|
|
19
|
+
Description: z.string().describe('Description of the line item'),
|
|
20
|
+
Quantity: z
|
|
21
|
+
.number()
|
|
22
|
+
.optional()
|
|
23
|
+
.default(1)
|
|
24
|
+
.describe('Quantity of the line item (default 1)'),
|
|
25
|
+
UnitAmount: z.number().describe('Unit price of the line item'),
|
|
26
|
+
AccountCode: z
|
|
27
|
+
.string()
|
|
28
|
+
.optional()
|
|
29
|
+
.describe('Account code for the line item (e.g., "200" for Sales, "400" for Advertising)'),
|
|
30
|
+
TaxType: z
|
|
31
|
+
.string()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe('Tax type for the line item (e.g., "OUTPUT", "INPUT")'),
|
|
34
|
+
ItemCode: z.string().optional().describe('Item code from Xero inventory'),
|
|
35
|
+
})
|
|
36
|
+
.describe('A single invoice line item');
|
|
37
|
+
// Parameter schema using discriminated union
|
|
38
|
+
export const XeroParamsSchema = z.discriminatedUnion('operation', [
|
|
39
|
+
// Create invoice
|
|
40
|
+
z.object({
|
|
41
|
+
operation: z
|
|
42
|
+
.literal('create_invoice')
|
|
43
|
+
.describe('Create a new invoice in Xero'),
|
|
44
|
+
type: z
|
|
45
|
+
.enum(['ACCREC', 'ACCPAY'])
|
|
46
|
+
.describe('Invoice type: ACCREC for accounts receivable (sales invoice), ACCPAY for accounts payable (bill)'),
|
|
47
|
+
contact_id: z
|
|
48
|
+
.string()
|
|
49
|
+
.min(1)
|
|
50
|
+
.describe('ContactID of the customer/supplier'),
|
|
51
|
+
line_items: z
|
|
52
|
+
.array(LineItemSchema)
|
|
53
|
+
.min(1)
|
|
54
|
+
.describe('Line items for the invoice'),
|
|
55
|
+
date: z
|
|
56
|
+
.string()
|
|
57
|
+
.optional()
|
|
58
|
+
.describe('Invoice date in YYYY-MM-DD format (defaults to today)'),
|
|
59
|
+
due_date: z.string().optional().describe('Due date in YYYY-MM-DD format'),
|
|
60
|
+
reference: z
|
|
61
|
+
.string()
|
|
62
|
+
.optional()
|
|
63
|
+
.describe('Reference number for the invoice'),
|
|
64
|
+
status: z
|
|
65
|
+
.enum(['DRAFT', 'SUBMITTED', 'AUTHORISED'])
|
|
66
|
+
.optional()
|
|
67
|
+
.default('DRAFT')
|
|
68
|
+
.describe('Invoice status (default DRAFT)'),
|
|
69
|
+
currency_code: z
|
|
70
|
+
.string()
|
|
71
|
+
.optional()
|
|
72
|
+
.describe('Currency code (e.g., "USD", "GBP", "AUD")'),
|
|
73
|
+
credentials: credentialsField,
|
|
74
|
+
}),
|
|
75
|
+
// Get invoice
|
|
76
|
+
z.object({
|
|
77
|
+
operation: z
|
|
78
|
+
.literal('get_invoice')
|
|
79
|
+
.describe('Retrieve a single invoice by ID'),
|
|
80
|
+
invoice_id: invoiceIdField,
|
|
81
|
+
credentials: credentialsField,
|
|
82
|
+
}),
|
|
83
|
+
// List invoices
|
|
84
|
+
z.object({
|
|
85
|
+
operation: z
|
|
86
|
+
.literal('list_invoices')
|
|
87
|
+
.describe('List invoices with optional filters'),
|
|
88
|
+
status: z
|
|
89
|
+
.enum(['DRAFT', 'SUBMITTED', 'AUTHORISED', 'PAID', 'VOIDED', 'DELETED'])
|
|
90
|
+
.optional()
|
|
91
|
+
.describe('Filter by invoice status'),
|
|
92
|
+
page: z
|
|
93
|
+
.number()
|
|
94
|
+
.min(1)
|
|
95
|
+
.optional()
|
|
96
|
+
.default(1)
|
|
97
|
+
.describe('Page number for pagination (default 1)'),
|
|
98
|
+
where: z
|
|
99
|
+
.string()
|
|
100
|
+
.optional()
|
|
101
|
+
.describe('Xero filter expression (e.g., "Type==\\"ACCREC\\"", "Contact.Name==\\"John\\"")'),
|
|
102
|
+
credentials: credentialsField,
|
|
103
|
+
}),
|
|
104
|
+
// Create contact
|
|
105
|
+
z.object({
|
|
106
|
+
operation: z
|
|
107
|
+
.literal('create_contact')
|
|
108
|
+
.describe('Create a new contact (customer or supplier)'),
|
|
109
|
+
name: z.string().min(1).describe('Contact name (required, must be unique)'),
|
|
110
|
+
email: z.string().optional().describe('Contact email address'),
|
|
111
|
+
first_name: z.string().optional().describe('First name'),
|
|
112
|
+
last_name: z.string().optional().describe('Last name'),
|
|
113
|
+
phone: z.string().optional().describe('Phone number'),
|
|
114
|
+
account_number: z
|
|
115
|
+
.string()
|
|
116
|
+
.optional()
|
|
117
|
+
.describe('Account number for the contact'),
|
|
118
|
+
tax_number: z
|
|
119
|
+
.string()
|
|
120
|
+
.optional()
|
|
121
|
+
.describe('Tax number (ABN, VAT, GST number)'),
|
|
122
|
+
credentials: credentialsField,
|
|
123
|
+
}),
|
|
124
|
+
// Get contact
|
|
125
|
+
z.object({
|
|
126
|
+
operation: z
|
|
127
|
+
.literal('get_contact')
|
|
128
|
+
.describe('Retrieve a single contact by ID'),
|
|
129
|
+
contact_id: contactIdField,
|
|
130
|
+
credentials: credentialsField,
|
|
131
|
+
}),
|
|
132
|
+
// List contacts
|
|
133
|
+
z.object({
|
|
134
|
+
operation: z
|
|
135
|
+
.literal('list_contacts')
|
|
136
|
+
.describe('List contacts with optional filters'),
|
|
137
|
+
page: z
|
|
138
|
+
.number()
|
|
139
|
+
.min(1)
|
|
140
|
+
.optional()
|
|
141
|
+
.default(1)
|
|
142
|
+
.describe('Page number for pagination (default 1)'),
|
|
143
|
+
where: z
|
|
144
|
+
.string()
|
|
145
|
+
.optional()
|
|
146
|
+
.describe('Xero filter expression (e.g., "Name.StartsWith(\\"John\\")")'),
|
|
147
|
+
credentials: credentialsField,
|
|
148
|
+
}),
|
|
149
|
+
// List accounts
|
|
150
|
+
z.object({
|
|
151
|
+
operation: z.literal('list_accounts').describe('List chart of accounts'),
|
|
152
|
+
type: z
|
|
153
|
+
.string()
|
|
154
|
+
.optional()
|
|
155
|
+
.describe('Filter by account type (e.g., "REVENUE", "EXPENSE", "BANK", "CURRENT")'),
|
|
156
|
+
credentials: credentialsField,
|
|
157
|
+
}),
|
|
158
|
+
// Get financial report
|
|
159
|
+
z.object({
|
|
160
|
+
operation: z
|
|
161
|
+
.literal('get_report')
|
|
162
|
+
.describe('Retrieve a financial report from Xero'),
|
|
163
|
+
report_type: z
|
|
164
|
+
.enum([
|
|
165
|
+
'BalanceSheet',
|
|
166
|
+
'ProfitAndLoss',
|
|
167
|
+
'TrialBalance',
|
|
168
|
+
'BankSummary',
|
|
169
|
+
'ExecutiveSummary',
|
|
170
|
+
'BudgetSummary',
|
|
171
|
+
'AgedReceivablesByContact',
|
|
172
|
+
'AgedPayablesByContact',
|
|
173
|
+
])
|
|
174
|
+
.describe('The type of report to generate'),
|
|
175
|
+
date: z
|
|
176
|
+
.string()
|
|
177
|
+
.optional()
|
|
178
|
+
.describe('Report date in YYYY-MM-DD format. "As at" date for BalanceSheet/TrialBalance/ExecutiveSummary. Not used for ProfitAndLoss (use from_date/to_date).'),
|
|
179
|
+
from_date: z
|
|
180
|
+
.string()
|
|
181
|
+
.optional()
|
|
182
|
+
.describe('Start date in YYYY-MM-DD format. Used by ProfitAndLoss, BankSummary, and aged reports.'),
|
|
183
|
+
to_date: z
|
|
184
|
+
.string()
|
|
185
|
+
.optional()
|
|
186
|
+
.describe('End date in YYYY-MM-DD format. Used by ProfitAndLoss, BankSummary, and aged reports.'),
|
|
187
|
+
periods: z
|
|
188
|
+
.number()
|
|
189
|
+
.optional()
|
|
190
|
+
.describe('Number of comparison periods (1-11 for most reports, 1-12 for BudgetSummary)'),
|
|
191
|
+
timeframe: z
|
|
192
|
+
.enum(['MONTH', 'QUARTER', 'YEAR'])
|
|
193
|
+
.optional()
|
|
194
|
+
.describe('Timeframe for comparison periods (MONTH, QUARTER, or YEAR)'),
|
|
195
|
+
contact_id: z
|
|
196
|
+
.string()
|
|
197
|
+
.optional()
|
|
198
|
+
.describe('Contact UUID — required for AgedReceivablesByContact and AgedPayablesByContact'),
|
|
199
|
+
payments_only: z
|
|
200
|
+
.boolean()
|
|
201
|
+
.optional()
|
|
202
|
+
.describe('Set true for cash-basis reporting (BalanceSheet, ProfitAndLoss, TrialBalance only)'),
|
|
203
|
+
tracking_category_id: z
|
|
204
|
+
.string()
|
|
205
|
+
.optional()
|
|
206
|
+
.describe('Optional tracking category ID to filter the report by'),
|
|
207
|
+
tracking_option_id: z
|
|
208
|
+
.string()
|
|
209
|
+
.optional()
|
|
210
|
+
.describe('Optional tracking option ID (requires tracking_category_id)'),
|
|
211
|
+
credentials: credentialsField,
|
|
212
|
+
}),
|
|
213
|
+
]);
|
|
214
|
+
// Xero record schemas for response data
|
|
215
|
+
const XeroInvoiceSchema = z
|
|
216
|
+
.object({
|
|
217
|
+
InvoiceID: z.string().describe('Invoice UUID'),
|
|
218
|
+
InvoiceNumber: z.string().optional().describe('Invoice number'),
|
|
219
|
+
Type: z.string().describe('Invoice type (ACCREC or ACCPAY)'),
|
|
220
|
+
Status: z.string().describe('Invoice status'),
|
|
221
|
+
Contact: z
|
|
222
|
+
.object({
|
|
223
|
+
ContactID: z.string(),
|
|
224
|
+
Name: z.string().optional(),
|
|
225
|
+
})
|
|
226
|
+
.optional()
|
|
227
|
+
.describe('Associated contact'),
|
|
228
|
+
Date: z.string().optional().describe('Invoice date'),
|
|
229
|
+
DueDate: z.string().optional().describe('Due date'),
|
|
230
|
+
SubTotal: z.number().optional().describe('Total before tax'),
|
|
231
|
+
Total: z.number().optional().describe('Total amount including tax'),
|
|
232
|
+
AmountDue: z.number().optional().describe('Amount due'),
|
|
233
|
+
AmountPaid: z.number().optional().describe('Amount paid'),
|
|
234
|
+
CurrencyCode: z.string().optional().describe('Currency code'),
|
|
235
|
+
Reference: z.string().optional().describe('Reference'),
|
|
236
|
+
LineItems: z.array(z.record(z.unknown())).optional().describe('Line items'),
|
|
237
|
+
})
|
|
238
|
+
.describe('A Xero invoice');
|
|
239
|
+
const XeroContactSchema = z
|
|
240
|
+
.object({
|
|
241
|
+
ContactID: z.string().describe('Contact UUID'),
|
|
242
|
+
Name: z.string().describe('Contact name'),
|
|
243
|
+
FirstName: z.string().optional().describe('First name'),
|
|
244
|
+
LastName: z.string().optional().describe('Last name'),
|
|
245
|
+
EmailAddress: z.string().optional().describe('Email address'),
|
|
246
|
+
AccountNumber: z.string().optional().describe('Account number'),
|
|
247
|
+
TaxNumber: z.string().optional().describe('Tax number'),
|
|
248
|
+
ContactStatus: z.string().optional().describe('Contact status'),
|
|
249
|
+
Phones: z.array(z.record(z.unknown())).optional().describe('Phone numbers'),
|
|
250
|
+
Addresses: z.array(z.record(z.unknown())).optional().describe('Addresses'),
|
|
251
|
+
})
|
|
252
|
+
.describe('A Xero contact');
|
|
253
|
+
const XeroAccountSchema = z
|
|
254
|
+
.object({
|
|
255
|
+
AccountID: z.string().describe('Account UUID'),
|
|
256
|
+
Code: z.string().optional().describe('Account code'),
|
|
257
|
+
Name: z.string().describe('Account name'),
|
|
258
|
+
Type: z.string().describe('Account type'),
|
|
259
|
+
Status: z.string().optional().describe('Account status'),
|
|
260
|
+
Description: z.string().optional().describe('Account description'),
|
|
261
|
+
Class: z.string().optional().describe('Account class'),
|
|
262
|
+
TaxType: z.string().optional().describe('Tax type'),
|
|
263
|
+
})
|
|
264
|
+
.describe('A Xero account');
|
|
265
|
+
// Result schema
|
|
266
|
+
export const XeroResultSchema = z.discriminatedUnion('operation', [
|
|
267
|
+
// Create invoice result
|
|
268
|
+
z.object({
|
|
269
|
+
operation: z.literal('create_invoice'),
|
|
270
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
271
|
+
invoice: XeroInvoiceSchema.optional().describe('Created invoice'),
|
|
272
|
+
error: z.string().describe('Error message if operation failed'),
|
|
273
|
+
}),
|
|
274
|
+
// Get invoice result
|
|
275
|
+
z.object({
|
|
276
|
+
operation: z.literal('get_invoice'),
|
|
277
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
278
|
+
invoice: XeroInvoiceSchema.optional().describe('Retrieved invoice'),
|
|
279
|
+
error: z.string().describe('Error message if operation failed'),
|
|
280
|
+
}),
|
|
281
|
+
// List invoices result
|
|
282
|
+
z.object({
|
|
283
|
+
operation: z.literal('list_invoices'),
|
|
284
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
285
|
+
invoices: z
|
|
286
|
+
.array(XeroInvoiceSchema)
|
|
287
|
+
.optional()
|
|
288
|
+
.describe('List of invoices'),
|
|
289
|
+
error: z.string().describe('Error message if operation failed'),
|
|
290
|
+
}),
|
|
291
|
+
// Create contact result
|
|
292
|
+
z.object({
|
|
293
|
+
operation: z.literal('create_contact'),
|
|
294
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
295
|
+
contact: XeroContactSchema.optional().describe('Created contact'),
|
|
296
|
+
error: z.string().describe('Error message if operation failed'),
|
|
297
|
+
}),
|
|
298
|
+
// Get contact result
|
|
299
|
+
z.object({
|
|
300
|
+
operation: z.literal('get_contact'),
|
|
301
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
302
|
+
contact: XeroContactSchema.optional().describe('Retrieved contact'),
|
|
303
|
+
error: z.string().describe('Error message if operation failed'),
|
|
304
|
+
}),
|
|
305
|
+
// List contacts result
|
|
306
|
+
z.object({
|
|
307
|
+
operation: z.literal('list_contacts'),
|
|
308
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
309
|
+
contacts: z
|
|
310
|
+
.array(XeroContactSchema)
|
|
311
|
+
.optional()
|
|
312
|
+
.describe('List of contacts'),
|
|
313
|
+
error: z.string().describe('Error message if operation failed'),
|
|
314
|
+
}),
|
|
315
|
+
// List accounts result
|
|
316
|
+
z.object({
|
|
317
|
+
operation: z.literal('list_accounts'),
|
|
318
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
319
|
+
accounts: z
|
|
320
|
+
.array(XeroAccountSchema)
|
|
321
|
+
.optional()
|
|
322
|
+
.describe('List of accounts'),
|
|
323
|
+
error: z.string().describe('Error message if operation failed'),
|
|
324
|
+
}),
|
|
325
|
+
// Get report result
|
|
326
|
+
z.object({
|
|
327
|
+
operation: z.literal('get_report'),
|
|
328
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
329
|
+
report: z
|
|
330
|
+
.object({
|
|
331
|
+
reportName: z.string().describe('Report title'),
|
|
332
|
+
reportType: z.string().describe('Report type identifier'),
|
|
333
|
+
reportDate: z.string().optional().describe('Report date'),
|
|
334
|
+
reportTitles: z
|
|
335
|
+
.array(z.string())
|
|
336
|
+
.optional()
|
|
337
|
+
.describe('Report title lines (e.g., org name, date range)'),
|
|
338
|
+
rows: z
|
|
339
|
+
.array(z.object({
|
|
340
|
+
rowType: z
|
|
341
|
+
.string()
|
|
342
|
+
.describe('Row type: Header, Section, Row, SummaryRow'),
|
|
343
|
+
title: z.string().optional().describe('Section title'),
|
|
344
|
+
cells: z
|
|
345
|
+
.array(z.object({
|
|
346
|
+
value: z.string().describe('Cell display value'),
|
|
347
|
+
accountId: z
|
|
348
|
+
.string()
|
|
349
|
+
.optional()
|
|
350
|
+
.describe('Account UUID if this row is an account'),
|
|
351
|
+
}))
|
|
352
|
+
.optional()
|
|
353
|
+
.describe('Cell values for this row'),
|
|
354
|
+
rows: z
|
|
355
|
+
.array(z.record(z.unknown()))
|
|
356
|
+
.optional()
|
|
357
|
+
.describe('Nested rows within a section'),
|
|
358
|
+
}))
|
|
359
|
+
.describe('Report rows'),
|
|
360
|
+
})
|
|
361
|
+
.optional()
|
|
362
|
+
.describe('Parsed report data'),
|
|
363
|
+
error: z.string().describe('Error message if operation failed'),
|
|
364
|
+
}),
|
|
365
|
+
]);
|
|
366
|
+
//# sourceMappingURL=xero.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xero.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/xero/xero.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,uBAAuB;AACvB,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,C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asin: string;
|
|
142
|
-
url?: string | undefined;
|
|
143
142
|
image?: string | undefined;
|
|
143
|
+
url?: string | undefined;
|
|
144
144
|
}, {
|
|
145
145
|
title: string;
|
|
146
146
|
price: string;
|
|
147
147
|
quantity: number;
|
|
148
148
|
asin: string;
|
|
149
|
-
url?: string | undefined;
|
|
150
149
|
image?: string | undefined;
|
|
150
|
+
url?: string | undefined;
|
|
151
151
|
}>, "many">>;
|
|
152
152
|
subtotal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
153
|
total_items: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -162,8 +162,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
162
162
|
price: string;
|
|
163
163
|
quantity: number;
|
|
164
164
|
asin: string;
|
|
165
|
-
url?: string | undefined;
|
|
166
165
|
image?: string | undefined;
|
|
166
|
+
url?: string | undefined;
|
|
167
167
|
}[] | undefined;
|
|
168
168
|
subtotal?: string | undefined;
|
|
169
169
|
total_items?: number | undefined;
|
|
@@ -177,8 +177,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
177
177
|
price: string;
|
|
178
178
|
quantity: number;
|
|
179
179
|
asin: string;
|
|
180
|
-
url?: string | undefined;
|
|
181
180
|
image?: string | undefined;
|
|
181
|
+
url?: string | undefined;
|
|
182
182
|
}[] | undefined;
|
|
183
183
|
subtotal?: string | undefined;
|
|
184
184
|
total_items?: number | undefined;
|
|
@@ -15,15 +15,15 @@ export declare const CartItemSchema: z.ZodObject<{
|
|
|
15
15
|
price: string;
|
|
16
16
|
quantity: number;
|
|
17
17
|
asin: string;
|
|
18
|
-
url?: string | undefined;
|
|
19
18
|
image?: string | undefined;
|
|
19
|
+
url?: string | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
title: string;
|
|
22
22
|
price: string;
|
|
23
23
|
quantity: number;
|
|
24
24
|
asin: string;
|
|
25
|
-
url?: string | undefined;
|
|
26
25
|
image?: string | undefined;
|
|
26
|
+
url?: string | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export type CartItem = z.infer<typeof CartItemSchema>;
|
|
29
29
|
/**
|
|
@@ -212,15 +212,15 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
212
212
|
price: string;
|
|
213
213
|
quantity: number;
|
|
214
214
|
asin: string;
|
|
215
|
-
url?: string | undefined;
|
|
216
215
|
image?: string | undefined;
|
|
216
|
+
url?: string | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
title: string;
|
|
219
219
|
price: string;
|
|
220
220
|
quantity: number;
|
|
221
221
|
asin: string;
|
|
222
|
-
url?: string | undefined;
|
|
223
222
|
image?: string | undefined;
|
|
223
|
+
url?: string | undefined;
|
|
224
224
|
}>, "many">>;
|
|
225
225
|
subtotal: z.ZodOptional<z.ZodString>;
|
|
226
226
|
total_items: z.ZodOptional<z.ZodNumber>;
|
|
@@ -235,8 +235,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
235
235
|
price: string;
|
|
236
236
|
quantity: number;
|
|
237
237
|
asin: string;
|
|
238
|
-
url?: string | undefined;
|
|
239
238
|
image?: string | undefined;
|
|
239
|
+
url?: string | undefined;
|
|
240
240
|
}[] | undefined;
|
|
241
241
|
subtotal?: string | undefined;
|
|
242
242
|
total_items?: number | undefined;
|
|
@@ -250,8 +250,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
250
250
|
price: string;
|
|
251
251
|
quantity: number;
|
|
252
252
|
asin: string;
|
|
253
|
-
url?: string | undefined;
|
|
254
253
|
image?: string | undefined;
|
|
254
|
+
url?: string | undefined;
|
|
255
255
|
}[] | undefined;
|
|
256
256
|
subtotal?: string | undefined;
|
|
257
257
|
total_items?: number | undefined;
|
|
@@ -70,8 +70,8 @@ declare const ContactSchema: z.ZodObject<{
|
|
|
70
70
|
role: "founder" | "cxo" | "decision_maker";
|
|
71
71
|
location: string | null;
|
|
72
72
|
headline: string | null;
|
|
73
|
-
linkedinUrl: string | null;
|
|
74
73
|
skills: string[] | null;
|
|
74
|
+
linkedinUrl: string | null;
|
|
75
75
|
education: {
|
|
76
76
|
fieldOfStudy: string | null;
|
|
77
77
|
instituteName: string | null;
|
|
@@ -101,8 +101,8 @@ declare const ContactSchema: z.ZodObject<{
|
|
|
101
101
|
role: "founder" | "cxo" | "decision_maker";
|
|
102
102
|
location: string | null;
|
|
103
103
|
headline: string | null;
|
|
104
|
-
linkedinUrl: string | null;
|
|
105
104
|
skills: string[] | null;
|
|
105
|
+
linkedinUrl: string | null;
|
|
106
106
|
education: {
|
|
107
107
|
fieldOfStudy: string | null;
|
|
108
108
|
instituteName: string | null;
|
|
@@ -208,8 +208,8 @@ declare const CompanyEnrichmentToolResultSchema: z.ZodObject<{
|
|
|
208
208
|
role: "founder" | "cxo" | "decision_maker";
|
|
209
209
|
location: string | null;
|
|
210
210
|
headline: string | null;
|
|
211
|
-
linkedinUrl: string | null;
|
|
212
211
|
skills: string[] | null;
|
|
212
|
+
linkedinUrl: string | null;
|
|
213
213
|
education: {
|
|
214
214
|
fieldOfStudy: string | null;
|
|
215
215
|
instituteName: string | null;
|
|
@@ -239,8 +239,8 @@ declare const CompanyEnrichmentToolResultSchema: z.ZodObject<{
|
|
|
239
239
|
role: "founder" | "cxo" | "decision_maker";
|
|
240
240
|
location: string | null;
|
|
241
241
|
headline: string | null;
|
|
242
|
-
linkedinUrl: string | null;
|
|
243
242
|
skills: string[] | null;
|
|
243
|
+
linkedinUrl: string | null;
|
|
244
244
|
education: {
|
|
245
245
|
fieldOfStudy: string | null;
|
|
246
246
|
instituteName: string | null;
|
|
@@ -314,8 +314,8 @@ declare const CompanyEnrichmentToolResultSchema: z.ZodObject<{
|
|
|
314
314
|
role: "founder" | "cxo" | "decision_maker";
|
|
315
315
|
location: string | null;
|
|
316
316
|
headline: string | null;
|
|
317
|
-
linkedinUrl: string | null;
|
|
318
317
|
skills: string[] | null;
|
|
318
|
+
linkedinUrl: string | null;
|
|
319
319
|
education: {
|
|
320
320
|
fieldOfStudy: string | null;
|
|
321
321
|
instituteName: string | null;
|
|
@@ -363,8 +363,8 @@ declare const CompanyEnrichmentToolResultSchema: z.ZodObject<{
|
|
|
363
363
|
role: "founder" | "cxo" | "decision_maker";
|
|
364
364
|
location: string | null;
|
|
365
365
|
headline: string | null;
|
|
366
|
-
linkedinUrl: string | null;
|
|
367
366
|
skills: string[] | null;
|
|
367
|
+
linkedinUrl: string | null;
|
|
368
368
|
education: {
|
|
369
369
|
fieldOfStudy: string | null;
|
|
370
370
|
instituteName: string | null;
|
|
@@ -509,8 +509,8 @@ export declare class CompanyEnrichmentTool extends ToolBubble<CompanyEnrichmentT
|
|
|
509
509
|
role: "founder" | "cxo" | "decision_maker";
|
|
510
510
|
location: string | null;
|
|
511
511
|
headline: string | null;
|
|
512
|
-
linkedinUrl: string | null;
|
|
513
512
|
skills: string[] | null;
|
|
513
|
+
linkedinUrl: string | null;
|
|
514
514
|
education: {
|
|
515
515
|
fieldOfStudy: string | null;
|
|
516
516
|
instituteName: string | null;
|
|
@@ -540,8 +540,8 @@ export declare class CompanyEnrichmentTool extends ToolBubble<CompanyEnrichmentT
|
|
|
540
540
|
role: "founder" | "cxo" | "decision_maker";
|
|
541
541
|
location: string | null;
|
|
542
542
|
headline: string | null;
|
|
543
|
-
linkedinUrl: string | null;
|
|
544
543
|
skills: string[] | null;
|
|
544
|
+
linkedinUrl: string | null;
|
|
545
545
|
education: {
|
|
546
546
|
fieldOfStudy: string | null;
|
|
547
547
|
instituteName: string | null;
|
|
@@ -615,8 +615,8 @@ export declare class CompanyEnrichmentTool extends ToolBubble<CompanyEnrichmentT
|
|
|
615
615
|
role: "founder" | "cxo" | "decision_maker";
|
|
616
616
|
location: string | null;
|
|
617
617
|
headline: string | null;
|
|
618
|
-
linkedinUrl: string | null;
|
|
619
618
|
skills: string[] | null;
|
|
619
|
+
linkedinUrl: string | null;
|
|
620
620
|
education: {
|
|
621
621
|
fieldOfStudy: string | null;
|
|
622
622
|
instituteName: string | null;
|
|
@@ -664,8 +664,8 @@ export declare class CompanyEnrichmentTool extends ToolBubble<CompanyEnrichmentT
|
|
|
664
664
|
role: "founder" | "cxo" | "decision_maker";
|
|
665
665
|
location: string | null;
|
|
666
666
|
headline: string | null;
|
|
667
|
-
linkedinUrl: string | null;
|
|
668
667
|
skills: string[] | null;
|
|
668
|
+
linkedinUrl: string | null;
|
|
669
669
|
education: {
|
|
670
670
|
fieldOfStudy: string | null;
|
|
671
671
|
instituteName: string | null;
|