@matimo/hubspot 0.1.0-alpha.10

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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +389 -0
  3. package/definition.yaml +73 -0
  4. package/package.json +17 -0
  5. package/tools/hubspot-create-company/definition.yaml +57 -0
  6. package/tools/hubspot-create-contact/definition.yaml +79 -0
  7. package/tools/hubspot-create-custom-object/definition.yaml +57 -0
  8. package/tools/hubspot-create-deal/definition.yaml +69 -0
  9. package/tools/hubspot-create-invoice/definition.yaml +47 -0
  10. package/tools/hubspot-create-lead/definition.yaml +73 -0
  11. package/tools/hubspot-create-line-item/definition.yaml +64 -0
  12. package/tools/hubspot-create-order/definition.yaml +63 -0
  13. package/tools/hubspot-create-product/definition.yaml +58 -0
  14. package/tools/hubspot-create-ticket/definition.yaml +64 -0
  15. package/tools/hubspot-delete-company/definition.yaml +43 -0
  16. package/tools/hubspot-delete-contact/definition.yaml +43 -0
  17. package/tools/hubspot-delete-custom-object/definition.yaml +43 -0
  18. package/tools/hubspot-delete-deal/definition.yaml +43 -0
  19. package/tools/hubspot-delete-invoice/definition.yaml +38 -0
  20. package/tools/hubspot-delete-lead/definition.yaml +38 -0
  21. package/tools/hubspot-delete-line-item/definition.yaml +38 -0
  22. package/tools/hubspot-delete-order/definition.yaml +38 -0
  23. package/tools/hubspot-delete-product/definition.yaml +38 -0
  24. package/tools/hubspot-delete-ticket/definition.yaml +43 -0
  25. package/tools/hubspot-get-company/definition.yaml +49 -0
  26. package/tools/hubspot-get-contact/definition.yaml +56 -0
  27. package/tools/hubspot-get-custom-object/definition.yaml +54 -0
  28. package/tools/hubspot-get-deal/definition.yaml +42 -0
  29. package/tools/hubspot-get-invoice/definition.yaml +49 -0
  30. package/tools/hubspot-get-lead/definition.yaml +55 -0
  31. package/tools/hubspot-get-line-item/definition.yaml +49 -0
  32. package/tools/hubspot-get-order/definition.yaml +49 -0
  33. package/tools/hubspot-get-product/definition.yaml +49 -0
  34. package/tools/hubspot-get-ticket/definition.yaml +42 -0
  35. package/tools/hubspot-list-companies/definition.yaml +49 -0
  36. package/tools/hubspot-list-contacts/definition.yaml +59 -0
  37. package/tools/hubspot-list-custom-objects/definition.yaml +60 -0
  38. package/tools/hubspot-list-deals/definition.yaml +49 -0
  39. package/tools/hubspot-list-invoices/definition.yaml +55 -0
  40. package/tools/hubspot-list-leads/definition.yaml +61 -0
  41. package/tools/hubspot-list-line-items/definition.yaml +55 -0
  42. package/tools/hubspot-list-orders/definition.yaml +55 -0
  43. package/tools/hubspot-list-products/definition.yaml +55 -0
  44. package/tools/hubspot-list-tickets/definition.yaml +49 -0
  45. package/tools/hubspot-update-company/definition.yaml +54 -0
  46. package/tools/hubspot-update-contact/definition.yaml +62 -0
  47. package/tools/hubspot-update-custom-object/definition.yaml +57 -0
  48. package/tools/hubspot-update-deal/definition.yaml +54 -0
  49. package/tools/hubspot-update-invoice/definition.yaml +52 -0
  50. package/tools/hubspot-update-lead/definition.yaml +55 -0
  51. package/tools/hubspot-update-line-item/definition.yaml +52 -0
  52. package/tools/hubspot-update-order/definition.yaml +52 -0
  53. package/tools/hubspot-update-product/definition.yaml +52 -0
  54. package/tools/hubspot-update-ticket/definition.yaml +54 -0
@@ -0,0 +1,69 @@
1
+ name: hubspot-create-deal
2
+ version: '1.0.0'
3
+ description: Create a new deal in HubSpot CRM.
4
+
5
+ parameters:
6
+ dealname:
7
+ type: string
8
+ required: true
9
+ description: Name of the deal
10
+ dealstage:
11
+ type: string
12
+ required: true
13
+ description: Pipeline stage of the deal (e.g., negotiation, contractsent, won)
14
+ pipeline:
15
+ type: string
16
+ required: false
17
+ description: Pipeline ID (uses default if not specified)
18
+ amount:
19
+ type: number
20
+ required: false
21
+ description: Deal amount
22
+ closedate:
23
+ type: string
24
+ required: false
25
+ description: Close date in ISO format (YYYY-MM-DDTHH:mm:ss.sssZ)
26
+
27
+ execution:
28
+ type: http
29
+ method: POST
30
+ url: 'https://api.hubapi.com/crm/v3/objects/deals'
31
+ headers:
32
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
33
+ Content-Type: application/json
34
+ body:
35
+ properties:
36
+ dealname: '{dealname}'
37
+ dealstage: '{dealstage}'
38
+ pipeline: '{pipeline}'
39
+ amount: '{amount}'
40
+ closedate: '{closedate}'
41
+ timeout: 30000
42
+
43
+ authentication:
44
+ type: bearer
45
+ location: header
46
+ name: Authorization
47
+ notes:
48
+ env: MATIMO_HUBSPOT_API_KEY
49
+
50
+ output_schema:
51
+ type: object
52
+ properties:
53
+ id: { type: string }
54
+ properties: { type: object }
55
+ createdAt: { type: string }
56
+ required: [id, properties]
57
+
58
+ error_handling:
59
+ retry: 2
60
+ backoff_type: exponential
61
+ initial_delay_ms: 500
62
+
63
+ examples:
64
+ - name: 'Create deal with name and stage'
65
+ params:
66
+ dealname: 'Enterprise Sale'
67
+ dealstage: 'negotiation'
68
+ amount: 50000
69
+ expected_result: 'Deal created with id and properties.'
@@ -0,0 +1,47 @@
1
+ name: hubspot-create-invoice
2
+ version: '1.0.0'
3
+ description: Create a new invoice in HubSpot CRM.
4
+
5
+ parameters:
6
+ hs_currency:
7
+ type: string
8
+ required: false
9
+ description: Currency code (e.g., USD, EUR, GBP)
10
+
11
+ execution:
12
+ type: http
13
+ method: POST
14
+ url: 'https://api.hubapi.com/crm/v3/objects/invoices'
15
+ headers:
16
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
17
+ Content-Type: application/json
18
+ body:
19
+ properties:
20
+ hs_currency: '{hs_currency}'
21
+ timeout: 30000
22
+
23
+ authentication:
24
+ type: bearer
25
+ location: header
26
+ name: Authorization
27
+
28
+ output_schema:
29
+ type: object
30
+ properties:
31
+ id:
32
+ type: string
33
+ properties:
34
+ type: object
35
+
36
+ error_handling:
37
+ retry: 2
38
+ backoff_type: exponential
39
+ initial_delay_ms: 500
40
+
41
+ requires_approval: false
42
+
43
+ examples:
44
+ - name: Create an invoice
45
+ params:
46
+ hs_currency: USD
47
+ expected_result: Invoice created with id and properties.
@@ -0,0 +1,73 @@
1
+ name: hubspot-create-lead
2
+ version: '1.0.0'
3
+ description: Create a new lead in HubSpot CRM.
4
+
5
+ parameters:
6
+ email:
7
+ type: string
8
+ required: true
9
+ description: Email address of the lead
10
+ firstname:
11
+ type: string
12
+ required: false
13
+ description: First name of the lead
14
+ lastname:
15
+ type: string
16
+ required: false
17
+ description: Last name of the lead
18
+ phone:
19
+ type: string
20
+ required: false
21
+ description: Phone number of the lead
22
+ company:
23
+ type: string
24
+ required: false
25
+ description: Company name
26
+
27
+ execution:
28
+ type: http
29
+ method: POST
30
+ url: 'https://api.hubapi.com/crm/v3/objects/leads'
31
+ headers:
32
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
33
+ Content-Type: application/json
34
+ body:
35
+ properties:
36
+ email: '{email}'
37
+ firstname: '{firstname}'
38
+ lastname: '{lastname}'
39
+ phone: '{phone}'
40
+ company: '{company}'
41
+ timeout: 30000
42
+
43
+ authentication:
44
+ type: bearer
45
+ location: header
46
+ name: Authorization
47
+
48
+ output_schema:
49
+ type: object
50
+ properties:
51
+ id:
52
+ type: string
53
+ properties:
54
+ type: object
55
+ created_at:
56
+ type: string
57
+ required:
58
+ - id
59
+
60
+ error_handling:
61
+ retry: 2
62
+ backoff_type: exponential
63
+ initial_delay_ms: 500
64
+
65
+ requires_approval: false
66
+
67
+ examples:
68
+ - name: Create a lead
69
+ params:
70
+ email: john@example.com
71
+ firstname: John
72
+ lastname: Doe
73
+ expected_result: Lead created with id and properties.
@@ -0,0 +1,64 @@
1
+ name: hubspot-create-line-item
2
+ version: '1.0.0'
3
+ description: Create a new line item in HubSpot CRM.
4
+
5
+ parameters:
6
+ name:
7
+ type: string
8
+ required: false
9
+ description: Line item name
10
+ quantity:
11
+ type: number
12
+ required: false
13
+ description: Quantity
14
+ price:
15
+ type: number
16
+ required: false
17
+ description: Price per unit
18
+ description:
19
+ type: string
20
+ required: false
21
+ description: Line item description
22
+
23
+ execution:
24
+ type: http
25
+ method: POST
26
+ url: 'https://api.hubapi.com/crm/v3/objects/line_items'
27
+ headers:
28
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
29
+ Content-Type: application/json
30
+ body:
31
+ properties:
32
+ name: '{name}'
33
+ quantity: '{quantity}'
34
+ price: '{price}'
35
+ description: '{description}'
36
+ timeout: 30000
37
+
38
+ authentication:
39
+ type: bearer
40
+ location: header
41
+ name: Authorization
42
+
43
+ output_schema:
44
+ type: object
45
+ properties:
46
+ id:
47
+ type: string
48
+ properties:
49
+ type: object
50
+
51
+ error_handling:
52
+ retry: 2
53
+ backoff_type: exponential
54
+ initial_delay_ms: 500
55
+
56
+ requires_approval: false
57
+
58
+ examples:
59
+ - name: Create a line item
60
+ params:
61
+ name: Product A
62
+ quantity: 10
63
+ price: 99.99
64
+ expected_result: Line item created with id and properties.
@@ -0,0 +1,63 @@
1
+ name: hubspot-create-order
2
+ version: '1.0.0'
3
+ description: Create a new order in HubSpot CRM.
4
+
5
+ parameters:
6
+ ordernumber:
7
+ type: string
8
+ required: false
9
+ description: Order number
10
+ amount:
11
+ type: number
12
+ required: false
13
+ description: Order amount
14
+ orderdate:
15
+ type: string
16
+ required: false
17
+ description: Order date in ISO format
18
+ status:
19
+ type: string
20
+ required: false
21
+ description: Order status
22
+
23
+ execution:
24
+ type: http
25
+ method: POST
26
+ url: 'https://api.hubapi.com/crm/v3/objects/orders'
27
+ headers:
28
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
29
+ Content-Type: application/json
30
+ body:
31
+ properties:
32
+ ordernumber: '{ordernumber}'
33
+ amount: '{amount}'
34
+ orderdate: '{orderdate}'
35
+ status: '{status}'
36
+ timeout: 30000
37
+
38
+ authentication:
39
+ type: bearer
40
+ location: header
41
+ name: Authorization
42
+
43
+ output_schema:
44
+ type: object
45
+ properties:
46
+ id:
47
+ type: string
48
+ properties:
49
+ type: object
50
+
51
+ error_handling:
52
+ retry: 2
53
+ backoff_type: exponential
54
+ initial_delay_ms: 500
55
+
56
+ requires_approval: false
57
+
58
+ examples:
59
+ - name: Create an order
60
+ params:
61
+ ordernumber: ORD-001
62
+ amount: 1000
63
+ expected_result: Order created with id and properties.
@@ -0,0 +1,58 @@
1
+ name: hubspot-create-product
2
+ version: '1.0.0'
3
+ description: Create a new product in HubSpot CRM.
4
+
5
+ parameters:
6
+ name:
7
+ type: string
8
+ required: true
9
+ description: Product name
10
+ description:
11
+ type: string
12
+ required: false
13
+ description: Product description
14
+ price:
15
+ type: number
16
+ required: false
17
+ description: Product price
18
+
19
+ execution:
20
+ type: http
21
+ method: POST
22
+ url: 'https://api.hubapi.com/crm/v3/objects/products'
23
+ headers:
24
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
25
+ Content-Type: application/json
26
+ body:
27
+ properties:
28
+ name: '{name}'
29
+ description: '{description}'
30
+ price: '{price}'
31
+ timeout: 30000
32
+
33
+ authentication:
34
+ type: bearer
35
+ location: header
36
+ name: Authorization
37
+
38
+ output_schema:
39
+ type: object
40
+ properties:
41
+ id:
42
+ type: string
43
+ properties:
44
+ type: object
45
+
46
+ error_handling:
47
+ retry: 2
48
+ backoff_type: exponential
49
+ initial_delay_ms: 500
50
+
51
+ requires_approval: false
52
+
53
+ examples:
54
+ - name: Create a product
55
+ params:
56
+ name: Product A
57
+ price: 99.99
58
+ expected_result: Product created with id and properties.
@@ -0,0 +1,64 @@
1
+ name: hubspot-create-ticket
2
+ version: '1.0.0'
3
+ description: Create a new ticket in HubSpot CRM.
4
+
5
+ parameters:
6
+ subject:
7
+ type: string
8
+ required: true
9
+ description: Ticket subject
10
+ description:
11
+ type: string
12
+ required: false
13
+ description: Ticket description
14
+ priority:
15
+ type: string
16
+ required: false
17
+ description: Ticket priority (LOW, MEDIUM, HIGH, URGENT)
18
+ ticketstatus:
19
+ type: string
20
+ required: false
21
+ description: Ticket status (BACKLOG, TODO, IN_PROGRESS, DONE)
22
+
23
+ execution:
24
+ type: http
25
+ method: POST
26
+ url: 'https://api.hubapi.com/crm/v3/objects/tickets'
27
+ headers:
28
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
29
+ Content-Type: application/json
30
+ body:
31
+ properties:
32
+ subject: '{subject}'
33
+ description: '{description}'
34
+ priority: '{priority}'
35
+ ticketstatus: '{ticketstatus}'
36
+ timeout: 30000
37
+
38
+ authentication:
39
+ type: bearer
40
+ location: header
41
+ name: Authorization
42
+ notes:
43
+ env: MATIMO_HUBSPOT_API_KEY
44
+
45
+ output_schema:
46
+ type: object
47
+ properties:
48
+ id: { type: string }
49
+ properties: { type: object }
50
+ createdAt: { type: string }
51
+ required: [id, properties]
52
+
53
+ error_handling:
54
+ retry: 2
55
+ backoff_type: exponential
56
+ initial_delay_ms: 500
57
+
58
+ examples:
59
+ - name: 'Create ticket with subject and priority'
60
+ params:
61
+ subject: 'Support Request'
62
+ priority: 'high'
63
+ description: 'Customer cannot login'
64
+ expected_result: 'Ticket created with id and properties.'
@@ -0,0 +1,43 @@
1
+ name: hubspot-delete-company
2
+ version: '1.0.0'
3
+ description: Delete a company from HubSpot CRM.
4
+
5
+ parameters:
6
+ id:
7
+ type: string
8
+ required: true
9
+ description: The HubSpot company ID to delete.
10
+
11
+ execution:
12
+ type: http
13
+ method: DELETE
14
+ url: 'https://api.hubapi.com/crm/v3/objects/companies/{id}'
15
+ headers:
16
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
17
+ timeout: 30000
18
+
19
+ authentication:
20
+ type: bearer
21
+ location: header
22
+ name: Authorization
23
+ notes:
24
+ env: MATIMO_HUBSPOT_API_KEY
25
+
26
+ requires_approval: true
27
+
28
+ output_schema:
29
+ type: object
30
+ properties:
31
+ status: { type: string }
32
+ required: [status]
33
+
34
+ error_handling:
35
+ retry: 2
36
+ backoff_type: exponential
37
+ initial_delay_ms: 500
38
+
39
+ examples:
40
+ - name: 'Delete company by ID'
41
+ params:
42
+ id: '456'
43
+ expected_result: 'Company successfully deleted.'
@@ -0,0 +1,43 @@
1
+ name: hubspot-delete-contact
2
+ version: '1.0.0'
3
+ description: Delete a contact from HubSpot CRM.
4
+
5
+ parameters:
6
+ id:
7
+ type: string
8
+ required: true
9
+ description: The HubSpot contact ID to delete.
10
+
11
+ execution:
12
+ type: http
13
+ method: DELETE
14
+ url: 'https://api.hubapi.com/crm/v3/objects/contacts/{id}'
15
+ headers:
16
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
17
+ timeout: 30000
18
+
19
+ authentication:
20
+ type: bearer
21
+ location: header
22
+ name: Authorization
23
+ notes:
24
+ env: MATIMO_HUBSPOT_API_KEY
25
+
26
+ requires_approval: true
27
+
28
+ output_schema:
29
+ type: object
30
+ properties:
31
+ status: { type: string }
32
+ required: [status]
33
+
34
+ error_handling:
35
+ retry: 2
36
+ backoff_type: exponential
37
+ initial_delay_ms: 500
38
+
39
+ examples:
40
+ - name: 'Delete contact by ID'
41
+ params:
42
+ id: '123'
43
+ expected_result: 'Contact successfully deleted.'
@@ -0,0 +1,43 @@
1
+ name: hubspot-delete-custom-object
2
+ version: '1.0.0'
3
+ description: Delete a custom object from HubSpot CRM.
4
+
5
+ parameters:
6
+ object_type:
7
+ type: string
8
+ required: true
9
+ description: The custom object type ID (e.g., 'my_custom_object').
10
+ id:
11
+ type: string
12
+ required: true
13
+ description: The custom object ID.
14
+
15
+ execution:
16
+ type: http
17
+ method: DELETE
18
+ url: 'https://api.hubapi.com/crm/v3/objects/{object_type}/{id}'
19
+ headers:
20
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
21
+ timeout: 30000
22
+
23
+ authentication:
24
+ type: bearer
25
+ location: header
26
+ name: Authorization
27
+
28
+ output_schema:
29
+ type: object
30
+
31
+ error_handling:
32
+ retry: 2
33
+ backoff_type: exponential
34
+ initial_delay_ms: 500
35
+
36
+ requires_approval: true
37
+
38
+ examples:
39
+ - name: Delete a custom object
40
+ params:
41
+ object_type: my_custom_object
42
+ id: "12345"
43
+ expected_result: Custom object deleted
@@ -0,0 +1,43 @@
1
+ name: hubspot-delete-deal
2
+ version: '1.0.0'
3
+ description: Delete a deal from HubSpot CRM.
4
+
5
+ parameters:
6
+ id:
7
+ type: string
8
+ required: true
9
+ description: The HubSpot deal ID to delete.
10
+
11
+ execution:
12
+ type: http
13
+ method: DELETE
14
+ url: 'https://api.hubapi.com/crm/v3/objects/deals/{id}'
15
+ headers:
16
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
17
+ timeout: 30000
18
+
19
+ authentication:
20
+ type: bearer
21
+ location: header
22
+ name: Authorization
23
+ notes:
24
+ env: MATIMO_HUBSPOT_API_KEY
25
+
26
+ requires_approval: true
27
+
28
+ output_schema:
29
+ type: object
30
+ properties:
31
+ status: { type: string }
32
+ required: [status]
33
+
34
+ error_handling:
35
+ retry: 2
36
+ backoff_type: exponential
37
+ initial_delay_ms: 500
38
+
39
+ examples:
40
+ - name: 'Delete deal by ID'
41
+ params:
42
+ id: '789'
43
+ expected_result: 'Deal successfully deleted.'
@@ -0,0 +1,38 @@
1
+ name: hubspot-delete-invoice
2
+ version: '1.0.0'
3
+ description: Delete an invoice from HubSpot CRM.
4
+
5
+ parameters:
6
+ id:
7
+ type: string
8
+ required: true
9
+ description: The HubSpot invoice ID.
10
+
11
+ execution:
12
+ type: http
13
+ method: DELETE
14
+ url: 'https://api.hubapi.com/crm/v3/objects/invoices/{id}'
15
+ headers:
16
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
17
+ timeout: 30000
18
+
19
+ authentication:
20
+ type: bearer
21
+ location: header
22
+ name: Authorization
23
+
24
+ output_schema:
25
+ type: object
26
+
27
+ error_handling:
28
+ retry: 2
29
+ backoff_type: exponential
30
+ initial_delay_ms: 500
31
+
32
+ requires_approval: true
33
+
34
+ examples:
35
+ - name: Delete an invoice
36
+ params:
37
+ id: "12345"
38
+ expected_result: Invoice deleted
@@ -0,0 +1,38 @@
1
+ name: hubspot-delete-lead
2
+ version: '1.0.0'
3
+ description: Delete a lead from HubSpot CRM.
4
+
5
+ parameters:
6
+ id:
7
+ type: string
8
+ required: true
9
+ description: The HubSpot lead ID to delete.
10
+
11
+ execution:
12
+ type: http
13
+ method: DELETE
14
+ url: 'https://api.hubapi.com/crm/v3/objects/leads/{id}'
15
+ headers:
16
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
17
+ timeout: 30000
18
+
19
+ authentication:
20
+ type: bearer
21
+ location: header
22
+ name: Authorization
23
+
24
+ output_schema:
25
+ type: object
26
+
27
+ error_handling:
28
+ retry: 2
29
+ backoff_type: exponential
30
+ initial_delay_ms: 500
31
+
32
+ requires_approval: true
33
+
34
+ examples:
35
+ - name: Delete a lead
36
+ params:
37
+ id: "12345"
38
+ expected_result: Lead with ID 12345 is deleted