@matimo/hubspot 0.1.0-alpha.9
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/LICENSE +21 -0
- package/README.md +389 -0
- package/definition.yaml +73 -0
- package/package.json +17 -0
- package/tools/hubspot-create-company/definition.yaml +57 -0
- package/tools/hubspot-create-contact/definition.yaml +79 -0
- package/tools/hubspot-create-custom-object/definition.yaml +57 -0
- package/tools/hubspot-create-deal/definition.yaml +69 -0
- package/tools/hubspot-create-invoice/definition.yaml +47 -0
- package/tools/hubspot-create-lead/definition.yaml +73 -0
- package/tools/hubspot-create-line-item/definition.yaml +64 -0
- package/tools/hubspot-create-order/definition.yaml +63 -0
- package/tools/hubspot-create-product/definition.yaml +58 -0
- package/tools/hubspot-create-ticket/definition.yaml +64 -0
- package/tools/hubspot-delete-company/definition.yaml +43 -0
- package/tools/hubspot-delete-contact/definition.yaml +43 -0
- package/tools/hubspot-delete-custom-object/definition.yaml +43 -0
- package/tools/hubspot-delete-deal/definition.yaml +43 -0
- package/tools/hubspot-delete-invoice/definition.yaml +38 -0
- package/tools/hubspot-delete-lead/definition.yaml +38 -0
- package/tools/hubspot-delete-line-item/definition.yaml +38 -0
- package/tools/hubspot-delete-order/definition.yaml +38 -0
- package/tools/hubspot-delete-product/definition.yaml +38 -0
- package/tools/hubspot-delete-ticket/definition.yaml +43 -0
- package/tools/hubspot-get-company/definition.yaml +49 -0
- package/tools/hubspot-get-contact/definition.yaml +56 -0
- package/tools/hubspot-get-custom-object/definition.yaml +54 -0
- package/tools/hubspot-get-deal/definition.yaml +42 -0
- package/tools/hubspot-get-invoice/definition.yaml +49 -0
- package/tools/hubspot-get-lead/definition.yaml +55 -0
- package/tools/hubspot-get-line-item/definition.yaml +49 -0
- package/tools/hubspot-get-order/definition.yaml +49 -0
- package/tools/hubspot-get-product/definition.yaml +49 -0
- package/tools/hubspot-get-ticket/definition.yaml +42 -0
- package/tools/hubspot-list-companies/definition.yaml +49 -0
- package/tools/hubspot-list-contacts/definition.yaml +59 -0
- package/tools/hubspot-list-custom-objects/definition.yaml +60 -0
- package/tools/hubspot-list-deals/definition.yaml +49 -0
- package/tools/hubspot-list-invoices/definition.yaml +55 -0
- package/tools/hubspot-list-leads/definition.yaml +61 -0
- package/tools/hubspot-list-line-items/definition.yaml +55 -0
- package/tools/hubspot-list-orders/definition.yaml +55 -0
- package/tools/hubspot-list-products/definition.yaml +55 -0
- package/tools/hubspot-list-tickets/definition.yaml +49 -0
- package/tools/hubspot-update-company/definition.yaml +54 -0
- package/tools/hubspot-update-contact/definition.yaml +62 -0
- package/tools/hubspot-update-custom-object/definition.yaml +57 -0
- package/tools/hubspot-update-deal/definition.yaml +54 -0
- package/tools/hubspot-update-invoice/definition.yaml +52 -0
- package/tools/hubspot-update-lead/definition.yaml +55 -0
- package/tools/hubspot-update-line-item/definition.yaml +52 -0
- package/tools/hubspot-update-order/definition.yaml +52 -0
- package/tools/hubspot-update-product/definition.yaml +52 -0
- package/tools/hubspot-update-ticket/definition.yaml +54 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: hubspot-update-deal
|
|
2
|
+
version: '1.0.0'
|
|
3
|
+
description: Update an existing deal in HubSpot CRM.
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: The HubSpot deal ID to update.
|
|
10
|
+
properties:
|
|
11
|
+
type: object
|
|
12
|
+
required: true
|
|
13
|
+
description: Object containing deal properties to update.
|
|
14
|
+
|
|
15
|
+
execution:
|
|
16
|
+
type: http
|
|
17
|
+
method: PATCH
|
|
18
|
+
url: 'https://api.hubapi.com/crm/v3/objects/deals/{id}'
|
|
19
|
+
headers:
|
|
20
|
+
Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
|
|
21
|
+
Content-Type: application/json
|
|
22
|
+
body:
|
|
23
|
+
properties: '{properties}'
|
|
24
|
+
timeout: 30000
|
|
25
|
+
|
|
26
|
+
authentication:
|
|
27
|
+
type: bearer
|
|
28
|
+
location: header
|
|
29
|
+
name: Authorization
|
|
30
|
+
notes:
|
|
31
|
+
env: MATIMO_HUBSPOT_API_KEY
|
|
32
|
+
|
|
33
|
+
requires_approval: true
|
|
34
|
+
|
|
35
|
+
output_schema:
|
|
36
|
+
type: object
|
|
37
|
+
properties:
|
|
38
|
+
id: { type: string }
|
|
39
|
+
properties: { type: object }
|
|
40
|
+
updatedAt: { type: string }
|
|
41
|
+
required: [id, properties]
|
|
42
|
+
|
|
43
|
+
error_handling:
|
|
44
|
+
retry: 2
|
|
45
|
+
backoff_type: exponential
|
|
46
|
+
initial_delay_ms: 500
|
|
47
|
+
|
|
48
|
+
examples:
|
|
49
|
+
- name: 'Update deal stage'
|
|
50
|
+
params:
|
|
51
|
+
id: '789'
|
|
52
|
+
properties:
|
|
53
|
+
dealstage: 'closedwon'
|
|
54
|
+
expected_result: 'Updated deal with new stage.'
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: hubspot-update-invoice
|
|
2
|
+
version: '1.0.0'
|
|
3
|
+
description: Update an invoice in HubSpot CRM.
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: The HubSpot invoice ID.
|
|
10
|
+
properties:
|
|
11
|
+
type: object
|
|
12
|
+
required: true
|
|
13
|
+
description: Object containing properties to update.
|
|
14
|
+
|
|
15
|
+
execution:
|
|
16
|
+
type: http
|
|
17
|
+
method: PATCH
|
|
18
|
+
url: 'https://api.hubapi.com/crm/v3/objects/invoices/{id}'
|
|
19
|
+
headers:
|
|
20
|
+
Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
|
|
21
|
+
Content-Type: application/json
|
|
22
|
+
body:
|
|
23
|
+
properties: '{properties}'
|
|
24
|
+
timeout: 30000
|
|
25
|
+
|
|
26
|
+
authentication:
|
|
27
|
+
type: bearer
|
|
28
|
+
location: header
|
|
29
|
+
name: Authorization
|
|
30
|
+
|
|
31
|
+
output_schema:
|
|
32
|
+
type: object
|
|
33
|
+
properties:
|
|
34
|
+
id:
|
|
35
|
+
type: string
|
|
36
|
+
properties:
|
|
37
|
+
type: object
|
|
38
|
+
|
|
39
|
+
error_handling:
|
|
40
|
+
retry: 2
|
|
41
|
+
backoff_type: exponential
|
|
42
|
+
initial_delay_ms: 500
|
|
43
|
+
|
|
44
|
+
requires_approval: true
|
|
45
|
+
|
|
46
|
+
examples:
|
|
47
|
+
- name: Update an invoice
|
|
48
|
+
params:
|
|
49
|
+
id: "12345"
|
|
50
|
+
properties:
|
|
51
|
+
hs_status: completed
|
|
52
|
+
expected_result: Invoice updated
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: hubspot-update-lead
|
|
2
|
+
version: '1.0.0'
|
|
3
|
+
description: Update a lead in HubSpot CRM.
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: The HubSpot lead ID to update.
|
|
10
|
+
properties:
|
|
11
|
+
type: object
|
|
12
|
+
required: true
|
|
13
|
+
description: Object containing lead properties to update.
|
|
14
|
+
|
|
15
|
+
execution:
|
|
16
|
+
type: http
|
|
17
|
+
method: PATCH
|
|
18
|
+
url: 'https://api.hubapi.com/crm/v3/objects/leads/{id}'
|
|
19
|
+
headers:
|
|
20
|
+
Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
|
|
21
|
+
Content-Type: application/json
|
|
22
|
+
body:
|
|
23
|
+
properties: '{properties}'
|
|
24
|
+
timeout: 30000
|
|
25
|
+
|
|
26
|
+
authentication:
|
|
27
|
+
type: bearer
|
|
28
|
+
location: header
|
|
29
|
+
name: Authorization
|
|
30
|
+
|
|
31
|
+
output_schema:
|
|
32
|
+
type: object
|
|
33
|
+
properties:
|
|
34
|
+
id:
|
|
35
|
+
type: string
|
|
36
|
+
properties:
|
|
37
|
+
type: object
|
|
38
|
+
required:
|
|
39
|
+
- id
|
|
40
|
+
|
|
41
|
+
error_handling:
|
|
42
|
+
retry: 2
|
|
43
|
+
backoff_type: exponential
|
|
44
|
+
initial_delay_ms: 500
|
|
45
|
+
|
|
46
|
+
requires_approval: true
|
|
47
|
+
|
|
48
|
+
examples:
|
|
49
|
+
- name: Update a lead
|
|
50
|
+
params:
|
|
51
|
+
id: "12345"
|
|
52
|
+
properties:
|
|
53
|
+
firstname: Jane
|
|
54
|
+
lastname: Smith
|
|
55
|
+
expected_result: Lead updated with new firstname and lastname
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: hubspot-update-line-item
|
|
2
|
+
version: '1.0.0'
|
|
3
|
+
description: Update a line item in HubSpot CRM.
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: The HubSpot line item ID.
|
|
10
|
+
properties:
|
|
11
|
+
type: object
|
|
12
|
+
required: true
|
|
13
|
+
description: Object containing properties to update.
|
|
14
|
+
|
|
15
|
+
execution:
|
|
16
|
+
type: http
|
|
17
|
+
method: PATCH
|
|
18
|
+
url: 'https://api.hubapi.com/crm/v3/objects/line_items/{id}'
|
|
19
|
+
headers:
|
|
20
|
+
Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
|
|
21
|
+
Content-Type: application/json
|
|
22
|
+
body:
|
|
23
|
+
properties: '{properties}'
|
|
24
|
+
timeout: 30000
|
|
25
|
+
|
|
26
|
+
authentication:
|
|
27
|
+
type: bearer
|
|
28
|
+
location: header
|
|
29
|
+
name: Authorization
|
|
30
|
+
|
|
31
|
+
output_schema:
|
|
32
|
+
type: object
|
|
33
|
+
properties:
|
|
34
|
+
id:
|
|
35
|
+
type: string
|
|
36
|
+
properties:
|
|
37
|
+
type: object
|
|
38
|
+
|
|
39
|
+
error_handling:
|
|
40
|
+
retry: 2
|
|
41
|
+
backoff_type: exponential
|
|
42
|
+
initial_delay_ms: 500
|
|
43
|
+
|
|
44
|
+
requires_approval: true
|
|
45
|
+
|
|
46
|
+
examples:
|
|
47
|
+
- name: Update a line item
|
|
48
|
+
params:
|
|
49
|
+
id: "12345"
|
|
50
|
+
properties:
|
|
51
|
+
quantity: 20
|
|
52
|
+
expected_result: Line item updated
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: hubspot-update-order
|
|
2
|
+
version: '1.0.0'
|
|
3
|
+
description: Update an order in HubSpot CRM.
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: The HubSpot order ID.
|
|
10
|
+
properties:
|
|
11
|
+
type: object
|
|
12
|
+
required: true
|
|
13
|
+
description: Object containing properties to update.
|
|
14
|
+
|
|
15
|
+
execution:
|
|
16
|
+
type: http
|
|
17
|
+
method: PATCH
|
|
18
|
+
url: 'https://api.hubapi.com/crm/v3/objects/orders/{id}'
|
|
19
|
+
headers:
|
|
20
|
+
Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
|
|
21
|
+
Content-Type: application/json
|
|
22
|
+
body:
|
|
23
|
+
properties: '{properties}'
|
|
24
|
+
timeout: 30000
|
|
25
|
+
|
|
26
|
+
authentication:
|
|
27
|
+
type: bearer
|
|
28
|
+
location: header
|
|
29
|
+
name: Authorization
|
|
30
|
+
|
|
31
|
+
output_schema:
|
|
32
|
+
type: object
|
|
33
|
+
properties:
|
|
34
|
+
id:
|
|
35
|
+
type: string
|
|
36
|
+
properties:
|
|
37
|
+
type: object
|
|
38
|
+
|
|
39
|
+
error_handling:
|
|
40
|
+
retry: 2
|
|
41
|
+
backoff_type: exponential
|
|
42
|
+
initial_delay_ms: 500
|
|
43
|
+
|
|
44
|
+
requires_approval: true
|
|
45
|
+
|
|
46
|
+
examples:
|
|
47
|
+
- name: Update an order
|
|
48
|
+
params:
|
|
49
|
+
id: "12345"
|
|
50
|
+
properties:
|
|
51
|
+
hs_order_status: completed
|
|
52
|
+
expected_result: Order updated
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: hubspot-update-product
|
|
2
|
+
version: '1.0.0'
|
|
3
|
+
description: Update a product in HubSpot CRM.
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: The HubSpot product ID.
|
|
10
|
+
properties:
|
|
11
|
+
type: object
|
|
12
|
+
required: true
|
|
13
|
+
description: Object containing properties to update.
|
|
14
|
+
|
|
15
|
+
execution:
|
|
16
|
+
type: http
|
|
17
|
+
method: PATCH
|
|
18
|
+
url: 'https://api.hubapi.com/crm/v3/objects/products/{id}'
|
|
19
|
+
headers:
|
|
20
|
+
Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
|
|
21
|
+
Content-Type: application/json
|
|
22
|
+
body:
|
|
23
|
+
properties: '{properties}'
|
|
24
|
+
timeout: 30000
|
|
25
|
+
|
|
26
|
+
authentication:
|
|
27
|
+
type: bearer
|
|
28
|
+
location: header
|
|
29
|
+
name: Authorization
|
|
30
|
+
|
|
31
|
+
output_schema:
|
|
32
|
+
type: object
|
|
33
|
+
properties:
|
|
34
|
+
id:
|
|
35
|
+
type: string
|
|
36
|
+
properties:
|
|
37
|
+
type: object
|
|
38
|
+
|
|
39
|
+
error_handling:
|
|
40
|
+
retry: 2
|
|
41
|
+
backoff_type: exponential
|
|
42
|
+
initial_delay_ms: 500
|
|
43
|
+
|
|
44
|
+
requires_approval: true
|
|
45
|
+
|
|
46
|
+
examples:
|
|
47
|
+
- name: Update a product
|
|
48
|
+
params:
|
|
49
|
+
id: "12345"
|
|
50
|
+
properties:
|
|
51
|
+
price: 129.99
|
|
52
|
+
expected_result: Product updated
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: hubspot-update-ticket
|
|
2
|
+
version: '1.0.0'
|
|
3
|
+
description: Update an existing ticket in HubSpot CRM.
|
|
4
|
+
|
|
5
|
+
parameters:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: The HubSpot ticket ID to update.
|
|
10
|
+
properties:
|
|
11
|
+
type: object
|
|
12
|
+
required: true
|
|
13
|
+
description: Object containing ticket properties to update.
|
|
14
|
+
|
|
15
|
+
execution:
|
|
16
|
+
type: http
|
|
17
|
+
method: PATCH
|
|
18
|
+
url: 'https://api.hubapi.com/crm/v3/objects/tickets/{id}'
|
|
19
|
+
headers:
|
|
20
|
+
Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
|
|
21
|
+
Content-Type: application/json
|
|
22
|
+
body:
|
|
23
|
+
properties: '{properties}'
|
|
24
|
+
timeout: 30000
|
|
25
|
+
|
|
26
|
+
authentication:
|
|
27
|
+
type: bearer
|
|
28
|
+
location: header
|
|
29
|
+
name: Authorization
|
|
30
|
+
notes:
|
|
31
|
+
env: MATIMO_HUBSPOT_API_KEY
|
|
32
|
+
|
|
33
|
+
requires_approval: true
|
|
34
|
+
|
|
35
|
+
output_schema:
|
|
36
|
+
type: object
|
|
37
|
+
properties:
|
|
38
|
+
id: { type: string }
|
|
39
|
+
properties: { type: object }
|
|
40
|
+
updatedAt: { type: string }
|
|
41
|
+
required: [id, properties]
|
|
42
|
+
|
|
43
|
+
error_handling:
|
|
44
|
+
retry: 2
|
|
45
|
+
backoff_type: exponential
|
|
46
|
+
initial_delay_ms: 500
|
|
47
|
+
|
|
48
|
+
examples:
|
|
49
|
+
- name: 'Update ticket status'
|
|
50
|
+
params:
|
|
51
|
+
id: '999'
|
|
52
|
+
properties:
|
|
53
|
+
hs_pipeline_stage: 'closed'
|
|
54
|
+
expected_result: 'Updated ticket with new status.'
|