@activepieces/piece-housecall-pro 0.0.1 → 0.0.3
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/package.json +2 -1
- package/src/i18n/de.json +169 -0
- package/src/i18n/es.json +169 -0
- package/src/i18n/fr.json +169 -0
- package/src/i18n/ja.json +169 -0
- package/src/i18n/nl.json +169 -0
- package/src/i18n/pt.json +169 -0
- package/src/i18n/translation.json +168 -0
- package/src/i18n/zh.json +169 -0
- package/src/index.js +35 -0
- package/src/index.js.map +1 -1
- package/src/lib/actions/add-job-attachment.d.ts +4 -0
- package/src/lib/actions/add-job-attachment.js +44 -0
- package/src/lib/actions/add-job-attachment.js.map +1 -0
- package/src/lib/actions/add-job-line-item.d.ts +13 -0
- package/src/lib/actions/add-job-line-item.js +123 -0
- package/src/lib/actions/add-job-line-item.js.map +1 -0
- package/src/lib/actions/add-job-note.d.ts +4 -0
- package/src/lib/actions/add-job-note.js +35 -0
- package/src/lib/actions/add-job-note.js.map +1 -0
- package/src/lib/actions/add-job-tag.d.ts +4 -0
- package/src/lib/actions/add-job-tag.js +35 -0
- package/src/lib/actions/add-job-tag.js.map +1 -0
- package/src/lib/actions/bulk-update-job-input-materials.d.ts +4 -0
- package/src/lib/actions/bulk-update-job-input-materials.js +35 -0
- package/src/lib/actions/bulk-update-job-input-materials.js.map +1 -0
- package/src/lib/actions/bulk-update-job-line-items.d.ts +5 -0
- package/src/lib/actions/bulk-update-job-line-items.js +44 -0
- package/src/lib/actions/bulk-update-job-line-items.js.map +1 -0
- package/src/lib/actions/convert-lead-to-estimate-or-job.d.ts +4 -0
- package/src/lib/actions/convert-lead-to-estimate-or-job.js +35 -0
- package/src/lib/actions/convert-lead-to-estimate-or-job.js.map +1 -0
- package/src/lib/actions/create-estimate-option-attachment.d.ts +5 -0
- package/src/lib/actions/create-estimate-option-attachment.js +37 -0
- package/src/lib/actions/create-estimate-option-attachment.js.map +1 -0
- package/src/lib/actions/create-estimate-option-link.d.ts +6 -0
- package/src/lib/actions/create-estimate-option-link.js +27 -0
- package/src/lib/actions/create-estimate-option-link.js.map +1 -0
- package/src/lib/actions/create-estimate-option-note.d.ts +5 -0
- package/src/lib/actions/create-estimate-option-note.js +25 -0
- package/src/lib/actions/create-estimate-option-note.js.map +1 -0
- package/src/lib/actions/create-estimate.d.ts +12 -0
- package/src/lib/actions/create-estimate.js +89 -0
- package/src/lib/actions/create-estimate.js.map +1 -0
- package/src/lib/actions/create-job-appointment.d.ts +7 -0
- package/src/lib/actions/create-job-appointment.js +55 -0
- package/src/lib/actions/create-job-appointment.js.map +1 -0
- package/src/lib/actions/create-job-link.d.ts +5 -0
- package/src/lib/actions/create-job-link.js +41 -0
- package/src/lib/actions/create-job-link.js.map +1 -0
- package/src/lib/actions/create-lead.d.ts +16 -0
- package/src/lib/actions/create-lead.js +124 -0
- package/src/lib/actions/create-lead.js.map +1 -0
- package/src/lib/actions/delete-estimate-option-note.d.ts +5 -0
- package/src/lib/actions/delete-estimate-option-note.js +25 -0
- package/src/lib/actions/delete-estimate-option-note.js.map +1 -0
- package/src/lib/actions/delete-job-appointment.d.ts +4 -0
- package/src/lib/actions/delete-job-appointment.js +32 -0
- package/src/lib/actions/delete-job-appointment.js.map +1 -0
- package/src/lib/actions/delete-job-line-item.d.ts +4 -0
- package/src/lib/actions/delete-job-line-item.js +32 -0
- package/src/lib/actions/delete-job-line-item.js.map +1 -0
- package/src/lib/actions/delete-job-note.d.ts +4 -0
- package/src/lib/actions/delete-job-note.js +32 -0
- package/src/lib/actions/delete-job-note.js.map +1 -0
- package/src/lib/actions/dispatch-job-to-employees.d.ts +4 -0
- package/src/lib/actions/dispatch-job-to-employees.js +35 -0
- package/src/lib/actions/dispatch-job-to-employees.js.map +1 -0
- package/src/lib/actions/get-estimate.d.ts +4 -0
- package/src/lib/actions/get-estimate.js +43 -0
- package/src/lib/actions/get-estimate.js.map +1 -0
- package/src/lib/actions/get-estimates.d.ts +15 -0
- package/src/lib/actions/get-estimates.js +160 -0
- package/src/lib/actions/get-estimates.js.map +1 -0
- package/src/lib/actions/get-job-appointments.d.ts +3 -0
- package/src/lib/actions/get-job-appointments.js +27 -0
- package/src/lib/actions/get-job-appointments.js.map +1 -0
- package/src/lib/actions/get-job-input-materials.d.ts +3 -0
- package/src/lib/actions/get-job-input-materials.js +27 -0
- package/src/lib/actions/get-job-input-materials.js.map +1 -0
- package/src/lib/actions/get-job-invoices.d.ts +3 -0
- package/src/lib/actions/get-job-invoices.js +28 -0
- package/src/lib/actions/get-job-invoices.js.map +1 -0
- package/src/lib/actions/get-job-line-items.d.ts +3 -0
- package/src/lib/actions/get-job-line-items.js +27 -0
- package/src/lib/actions/get-job-line-items.js.map +1 -0
- package/src/lib/actions/get-lead.d.ts +3 -0
- package/src/lib/actions/get-lead.js +27 -0
- package/src/lib/actions/get-lead.js.map +1 -0
- package/src/lib/actions/get-leads.d.ts +12 -0
- package/src/lib/actions/get-leads.js +104 -0
- package/src/lib/actions/get-leads.js.map +1 -0
- package/src/lib/actions/lock-job.d.ts +3 -0
- package/src/lib/actions/lock-job.js +27 -0
- package/src/lib/actions/lock-job.js.map +1 -0
- package/src/lib/actions/lock-jobs.d.ts +4 -0
- package/src/lib/actions/lock-jobs.js +36 -0
- package/src/lib/actions/lock-jobs.js.map +1 -0
- package/src/lib/actions/remove-job-tag.d.ts +4 -0
- package/src/lib/actions/remove-job-tag.js +32 -0
- package/src/lib/actions/remove-job-tag.js.map +1 -0
- package/src/lib/actions/update-estimate-option-schedule.d.ts +11 -0
- package/src/lib/actions/update-estimate-option-schedule.js +53 -0
- package/src/lib/actions/update-estimate-option-schedule.js.map +1 -0
- package/src/lib/actions/update-job-appointment.d.ts +8 -0
- package/src/lib/actions/update-job-appointment.js +60 -0
- package/src/lib/actions/update-job-appointment.js.map +1 -0
- package/src/lib/actions/update-job-line-item.d.ts +13 -0
- package/src/lib/actions/update-job-line-item.js +112 -0
- package/src/lib/actions/update-job-line-item.js.map +1 -0
- package/src/lib/common/index.d.ts +33 -0
- package/src/lib/common/index.js +69 -1
- package/src/lib/common/index.js.map +1 -1
|
@@ -1,3 +1,171 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Housecall Pro": "Housecall Pro"
|
|
3
|
+
|
|
4
|
+
"Manage your home service business with Housecall Pro CRM integration": "Manage your home service business with Housecall Pro CRM integration",
|
|
5
|
+
"Your Housecall Pro API Key. You can find it in your Housecall Pro account settings under API.": "Your Housecall Pro API Key. You can find it in your Housecall Pro account settings under API.",
|
|
6
|
+
"Create Customer": "Create Customer",
|
|
7
|
+
"Get Customers": "Get Customers",
|
|
8
|
+
"Get Customer": "Get Customer",
|
|
9
|
+
"Update Customer": "Update Customer",
|
|
10
|
+
"Get All of a Customer's Addresses": "Get All of a Customer's Addresses",
|
|
11
|
+
"Create an Address on a Customer": "Create an Address on a Customer",
|
|
12
|
+
"Get a Customer's Address": "Get a Customer's Address",
|
|
13
|
+
"Create Job": "Create Job",
|
|
14
|
+
"Get Jobs": "Get Jobs",
|
|
15
|
+
"Get a Job": "Get a Job",
|
|
16
|
+
"Update Job Schedule": "Update Job Schedule",
|
|
17
|
+
"Delete Job Schedule": "Delete Job Schedule",
|
|
18
|
+
"Custom API Call": "Custom API Call",
|
|
19
|
+
"Creates a new customer in Housecall Pro.": "Creates a new customer in Housecall Pro.",
|
|
20
|
+
"Retrieves a list of customers from Housecall Pro.": "Retrieves a list of customers from Housecall Pro.",
|
|
21
|
+
"Retrieves the customer by ID.": "Retrieves the customer by ID.",
|
|
22
|
+
"Updates an existing customer in Housecall Pro.": "Updates an existing customer in Housecall Pro.",
|
|
23
|
+
"Retrieves all of a customer's addresses.": "Retrieves all of a customer's addresses.",
|
|
24
|
+
"Creates an address on a customer.": "Creates an address on a customer.",
|
|
25
|
+
"Retrieves a customer's address by customer ID and address ID.": "Retrieves a customer's address by customer ID and address ID.",
|
|
26
|
+
"Creates a job with the ID for an already existing address and customer.": "Creates a job with the ID for an already existing address and customer.",
|
|
27
|
+
"Retrieve a list of jobs from Housecall Pro.": "Retrieve a list of jobs from Housecall Pro.",
|
|
28
|
+
"Retrieves a single job by ID from Housecall Pro.": "Retrieves a single job by ID from Housecall Pro.",
|
|
29
|
+
"Updates a job's schedule. Jobs with multi days feature containing more than 1 appointment can't be updated through this action.": "Updates a job's schedule. Jobs with multi days feature containing more than 1 appointment can't be updated through this action.",
|
|
30
|
+
"Deletes schedule on a job.": "Deletes schedule on a job.",
|
|
31
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
32
|
+
"Markdown": "Markdown",
|
|
33
|
+
"First Name": "First Name",
|
|
34
|
+
"Last Name": "Last Name",
|
|
35
|
+
"Email": "Email",
|
|
36
|
+
"Mobile Number": "Mobile Number",
|
|
37
|
+
"Home Number": "Home Number",
|
|
38
|
+
"Work Number": "Work Number",
|
|
39
|
+
"Company": "Company",
|
|
40
|
+
"Notifications Enabled": "Notifications Enabled",
|
|
41
|
+
"Lead Source": "Lead Source",
|
|
42
|
+
"Notes": "Notes",
|
|
43
|
+
"Tags": "Tags",
|
|
44
|
+
"Addresses": "Addresses",
|
|
45
|
+
"Page": "Page",
|
|
46
|
+
"Page Size": "Page Size",
|
|
47
|
+
"Search Query": "Search Query",
|
|
48
|
+
"Expand": "Expand",
|
|
49
|
+
"Location IDs": "Location IDs",
|
|
50
|
+
"Sort By": "Sort By",
|
|
51
|
+
"Sort Direction": "Sort Direction",
|
|
52
|
+
"Customer ID": "Customer ID",
|
|
53
|
+
"Street": "Street",
|
|
54
|
+
"Street Line 2": "Street Line 2",
|
|
55
|
+
"City": "City",
|
|
56
|
+
"State": "State",
|
|
57
|
+
"ZIP": "ZIP",
|
|
58
|
+
"Country": "Country",
|
|
59
|
+
"Latitude": "Latitude",
|
|
60
|
+
"Longitude": "Longitude",
|
|
61
|
+
"Address ID": "Address ID",
|
|
62
|
+
"Invoice Number": "Invoice Number",
|
|
63
|
+
"Scheduled Start": "Scheduled Start",
|
|
64
|
+
"Scheduled End": "Scheduled End",
|
|
65
|
+
"Arrival Window (minutes)": "Arrival Window (minutes)",
|
|
66
|
+
"Assigned Employee IDs": "Assigned Employee IDs",
|
|
67
|
+
"Line Items": "Line Items",
|
|
68
|
+
"Pricing Form": "Pricing Form",
|
|
69
|
+
"Job Fields": "Job Fields",
|
|
70
|
+
"Employee IDs": "Employee IDs",
|
|
71
|
+
"Scheduled Start Min": "Scheduled Start Min",
|
|
72
|
+
"Scheduled Start Max": "Scheduled Start Max",
|
|
73
|
+
"Scheduled End Min": "Scheduled End Min",
|
|
74
|
+
"Scheduled End Max": "Scheduled End Max",
|
|
75
|
+
"Work Status": "Work Status",
|
|
76
|
+
"Job ID": "Job ID",
|
|
77
|
+
"Start Time": "Start Time",
|
|
78
|
+
"End Time": "End Time",
|
|
79
|
+
"Notify": "Notify",
|
|
80
|
+
"Notify Pro": "Notify Pro",
|
|
81
|
+
"Dispatched Employees": "Dispatched Employees",
|
|
82
|
+
"Method": "Method",
|
|
83
|
+
"Headers": "Headers",
|
|
84
|
+
"Query Parameters": "Query Parameters",
|
|
85
|
+
"Body": "Body",
|
|
86
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
87
|
+
"No Error on Failure": "No Error on Failure",
|
|
88
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
89
|
+
"At least one of: First Name, Last Name, Email, Mobile Number, Home Number, Work Number is required.": "At least one of: First Name, Last Name, Email, Mobile Number, Home Number, Work Number is required.",
|
|
90
|
+
"Will the customer receive notifications": "Will the customer receive notifications",
|
|
91
|
+
"Array of tags to assign to the customer": "Array of tags to assign to the customer",
|
|
92
|
+
"Array of address objects": "Array of address objects",
|
|
93
|
+
"Page number for pagination (starts from 1)": "Page number for pagination (starts from 1)",
|
|
94
|
+
"Number of customers per page (max 100)": "Number of customers per page (max 100)",
|
|
95
|
+
"Search customers by name, email, mobile number, and address": "Search customers by name, email, mobile number, and address",
|
|
96
|
+
"Expand related data": "Expand related data",
|
|
97
|
+
"IDs of locations from which to pull customers": "IDs of locations from which to pull customers",
|
|
98
|
+
"The customer attribute by which to sort the results": "The customer attribute by which to sort the results",
|
|
99
|
+
"The order of sorting (ascending or descending)": "The order of sorting (ascending or descending)",
|
|
100
|
+
"The ID of the customer to retrieve.": "The ID of the customer to retrieve.",
|
|
101
|
+
"The ID of the customer to update.": "The ID of the customer to update.",
|
|
102
|
+
"Array of tags to assign to the customer (replaces existing tags)": "Array of tags to assign to the customer (replaces existing tags)",
|
|
103
|
+
"Array of address objects (if provided, each address must include an id)": "Array of address objects (if provided, each address must include an id)",
|
|
104
|
+
"The ID of the customer": "The ID of the customer",
|
|
105
|
+
"Paginated page number": "Paginated page number",
|
|
106
|
+
"Number of addresses returned per page": "Number of addresses returned per page",
|
|
107
|
+
"Address attribute to sort by": "Address attribute to sort by",
|
|
108
|
+
"Ascending or descending": "Ascending or descending",
|
|
109
|
+
"The ID of the customer to add address to": "The ID of the customer to add address to",
|
|
110
|
+
"Street address": "Street address",
|
|
111
|
+
"Additional street address line": "Additional street address line",
|
|
112
|
+
"ZIP code": "ZIP code",
|
|
113
|
+
"Latitude (one of number)": "Latitude (one of number)",
|
|
114
|
+
"Longitude (one of number)": "Longitude (one of number)",
|
|
115
|
+
"The ID of the address": "The ID of the address",
|
|
116
|
+
"The ID of the customer this job is for": "The ID of the customer this job is for",
|
|
117
|
+
"The ID of the address for this job": "The ID of the address for this job",
|
|
118
|
+
"Invoice number must be unique across all of a company's jobs. If left blank, one will be automatically generated.": "Invoice number must be unique across all of a company's jobs. If left blank, one will be automatically generated.",
|
|
119
|
+
"Start time of job in ISO8601 format (e.g., 2021-01-14T20:14:00)": "Start time of job in ISO8601 format (e.g., 2021-01-14T20:14:00)",
|
|
120
|
+
"End time of job in ISO8601 format (e.g., 2021-01-14T21:14:00)": "End time of job in ISO8601 format (e.g., 2021-01-14T21:14:00)",
|
|
121
|
+
"Integer value in minutes of arrival window": "Integer value in minutes of arrival window",
|
|
122
|
+
"Array of employee IDs to assign to the job": "Array of employee IDs to assign to the job",
|
|
123
|
+
"Array of tags to assign to the job": "Array of tags to assign to the job",
|
|
124
|
+
"Array of line items for the job": "Array of line items for the job",
|
|
125
|
+
"Pricing form object with fields and options (use UUIDs from GET price form endpoint)": "Pricing form object with fields and options (use UUIDs from GET price form endpoint)",
|
|
126
|
+
"Job fields object (e.g., job_type_id, business_unit_id)": "Job fields object (e.g., job_type_id, business_unit_id)",
|
|
127
|
+
"Filters jobs by a single customer ID": "Filters jobs by a single customer ID",
|
|
128
|
+
"Array of employee IDs to filter jobs": "Array of employee IDs to filter jobs",
|
|
129
|
+
"Array of strings to expand response body": "Array of strings to expand response body",
|
|
130
|
+
"IDs of locations to retrieve jobs from": "IDs of locations to retrieve jobs from",
|
|
131
|
+
"The paginated page number": "The paginated page number",
|
|
132
|
+
"The number of jobs returned per page": "The number of jobs returned per page",
|
|
133
|
+
"Filters jobs with a starting time greater than or equal to the date sent": "Filters jobs with a starting time greater than or equal to the date sent",
|
|
134
|
+
"Filters jobs with a starting time less than or equal to the date sent": "Filters jobs with a starting time less than or equal to the date sent",
|
|
135
|
+
"Filters jobs with an end time greater than or equal to the date sent": "Filters jobs with an end time greater than or equal to the date sent",
|
|
136
|
+
"Filters jobs with an end time less than or equal to the date sent": "Filters jobs with an end time less than or equal to the date sent",
|
|
137
|
+
"The attribute to sort the results by": "The attribute to sort the results by",
|
|
138
|
+
"The sorting order": "The sorting order",
|
|
139
|
+
"Filters jobs by their work status. If empty, returns jobs from all statuses": "Filters jobs by their work status. If empty, returns jobs from all statuses",
|
|
140
|
+
"The ID of the job to retrieve": "The ID of the job to retrieve",
|
|
141
|
+
"Expand related data (attachments, appointments)": "Expand related data (attachments, appointments)",
|
|
142
|
+
"The ID of the job to update schedule for": "The ID of the job to update schedule for",
|
|
143
|
+
"Notify the customer of the update schedule": "Notify the customer of the update schedule",
|
|
144
|
+
"Notify the pros of the update schedule": "Notify the pros of the update schedule",
|
|
145
|
+
"Expand related entities": "Expand related entities",
|
|
146
|
+
"Array of employee objects with employee_id": "Array of employee objects with employee_id",
|
|
147
|
+
"The ID of the job to delete schedule from.": "The ID of the job to delete schedule from.",
|
|
148
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
149
|
+
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
|
150
|
+
"Attachments": "Attachments",
|
|
151
|
+
"Do Not Service": "Do Not Service",
|
|
152
|
+
"Created At": "Created At",
|
|
153
|
+
"Updated At": "Updated At",
|
|
154
|
+
"Ascending": "Ascending",
|
|
155
|
+
"Descending": "Descending",
|
|
156
|
+
"Appointments": "Appointments",
|
|
157
|
+
"ID": "ID",
|
|
158
|
+
"Description": "Description",
|
|
159
|
+
"Unscheduled": "Unscheduled",
|
|
160
|
+
"Scheduled": "Scheduled",
|
|
161
|
+
"In Progress": "In Progress",
|
|
162
|
+
"Completed": "Completed",
|
|
163
|
+
"Canceled": "Canceled",
|
|
164
|
+
"Assigned Employees": "Assigned Employees",
|
|
165
|
+
"GET": "GET",
|
|
166
|
+
"POST": "POST",
|
|
167
|
+
"PATCH": "PATCH",
|
|
168
|
+
"PUT": "PUT",
|
|
169
|
+
"DELETE": "DELETE",
|
|
170
|
+
"HEAD": "HEAD"
|
|
3
171
|
}
|
package/src/i18n/zh.json
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Manage your home service business with Housecall Pro CRM integration": "Manage your home service business with Housecall Pro CRM integration",
|
|
3
|
+
"Your Housecall Pro API Key. You can find it in your Housecall Pro account settings under API.": "Your Housecall Pro API Key. You can find it in your Housecall Pro account settings under API.",
|
|
4
|
+
"Create Customer": "Create Customer",
|
|
5
|
+
"Get Customers": "Get Customers",
|
|
6
|
+
"Get Customer": "Get Customer",
|
|
7
|
+
"Update Customer": "Update Customer",
|
|
8
|
+
"Get All of a Customer's Addresses": "Get All of a Customer's Addresses",
|
|
9
|
+
"Create an Address on a Customer": "Create an Address on a Customer",
|
|
10
|
+
"Get a Customer's Address": "Get a Customer's Address",
|
|
11
|
+
"Create Job": "Create Job",
|
|
12
|
+
"Get Jobs": "Get Jobs",
|
|
13
|
+
"Get a Job": "Get a Job",
|
|
14
|
+
"Update Job Schedule": "Update Job Schedule",
|
|
15
|
+
"Delete Job Schedule": "Delete Job Schedule",
|
|
16
|
+
"Custom API Call": "自定义 API 呼叫",
|
|
17
|
+
"Creates a new customer in Housecall Pro.": "Creates a new customer in Housecall Pro.",
|
|
18
|
+
"Retrieves a list of customers from Housecall Pro.": "Retrieves a list of customers from Housecall Pro.",
|
|
19
|
+
"Retrieves the customer by ID.": "Retrieves the customer by ID.",
|
|
20
|
+
"Updates an existing customer in Housecall Pro.": "Updates an existing customer in Housecall Pro.",
|
|
21
|
+
"Retrieves all of a customer's addresses.": "Retrieves all of a customer's addresses.",
|
|
22
|
+
"Creates an address on a customer.": "Creates an address on a customer.",
|
|
23
|
+
"Retrieves a customer's address by customer ID and address ID.": "Retrieves a customer's address by customer ID and address ID.",
|
|
24
|
+
"Creates a job with the ID for an already existing address and customer.": "Creates a job with the ID for an already existing address and customer.",
|
|
25
|
+
"Retrieve a list of jobs from Housecall Pro.": "Retrieve a list of jobs from Housecall Pro.",
|
|
26
|
+
"Retrieves a single job by ID from Housecall Pro.": "Retrieves a single job by ID from Housecall Pro.",
|
|
27
|
+
"Updates a job's schedule. Jobs with multi days feature containing more than 1 appointment can't be updated through this action.": "Updates a job's schedule. Jobs with multi days feature containing more than 1 appointment can't be updated through this action.",
|
|
28
|
+
"Deletes schedule on a job.": "Deletes schedule on a job.",
|
|
29
|
+
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
|
30
|
+
"Markdown": "Markdown",
|
|
31
|
+
"First Name": "First Name",
|
|
32
|
+
"Last Name": "名字",
|
|
33
|
+
"Email": "电子邮件地址",
|
|
34
|
+
"Mobile Number": "Mobile Number",
|
|
35
|
+
"Home Number": "Home Number",
|
|
36
|
+
"Work Number": "Work Number",
|
|
37
|
+
"Company": "Company",
|
|
38
|
+
"Notifications Enabled": "Notifications Enabled",
|
|
39
|
+
"Lead Source": "Lead Source",
|
|
40
|
+
"Notes": "Notes",
|
|
41
|
+
"Tags": "标签",
|
|
42
|
+
"Addresses": "Addresses",
|
|
43
|
+
"Page": "Page",
|
|
44
|
+
"Page Size": "Page Size",
|
|
45
|
+
"Search Query": "Search Query",
|
|
46
|
+
"Expand": "Expand",
|
|
47
|
+
"Location IDs": "Location IDs",
|
|
48
|
+
"Sort By": "Sort By",
|
|
49
|
+
"Sort Direction": "Sort Direction",
|
|
50
|
+
"Customer ID": "Customer ID",
|
|
51
|
+
"Street": "Street",
|
|
52
|
+
"Street Line 2": "Street Line 2",
|
|
53
|
+
"City": "City",
|
|
54
|
+
"State": "State",
|
|
55
|
+
"ZIP": "ZIP",
|
|
56
|
+
"Country": "Country",
|
|
57
|
+
"Latitude": "Latitude",
|
|
58
|
+
"Longitude": "Longitude",
|
|
59
|
+
"Address ID": "Address ID",
|
|
60
|
+
"Invoice Number": "Invoice Number",
|
|
61
|
+
"Scheduled Start": "Scheduled Start",
|
|
62
|
+
"Scheduled End": "Scheduled End",
|
|
63
|
+
"Arrival Window (minutes)": "Arrival Window (minutes)",
|
|
64
|
+
"Assigned Employee IDs": "Assigned Employee IDs",
|
|
65
|
+
"Line Items": "Line Items",
|
|
66
|
+
"Pricing Form": "Pricing Form",
|
|
67
|
+
"Job Fields": "Job Fields",
|
|
68
|
+
"Employee IDs": "Employee IDs",
|
|
69
|
+
"Scheduled Start Min": "Scheduled Start Min",
|
|
70
|
+
"Scheduled Start Max": "Scheduled Start Max",
|
|
71
|
+
"Scheduled End Min": "Scheduled End Min",
|
|
72
|
+
"Scheduled End Max": "Scheduled End Max",
|
|
73
|
+
"Work Status": "Work Status",
|
|
74
|
+
"Job ID": "Job ID",
|
|
75
|
+
"Start Time": "开始时间",
|
|
76
|
+
"End Time": "End Time",
|
|
77
|
+
"Notify": "Notify",
|
|
78
|
+
"Notify Pro": "Notify Pro",
|
|
79
|
+
"Dispatched Employees": "Dispatched Employees",
|
|
80
|
+
"Method": "方法",
|
|
81
|
+
"Headers": "信头",
|
|
82
|
+
"Query Parameters": "查询参数",
|
|
83
|
+
"Body": "正文内容",
|
|
84
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
85
|
+
"No Error on Failure": "失败时没有错误",
|
|
86
|
+
"Timeout (in seconds)": "超时(秒)",
|
|
87
|
+
"At least one of: First Name, Last Name, Email, Mobile Number, Home Number, Work Number is required.": "At least one of: First Name, Last Name, Email, Mobile Number, Home Number, Work Number is required.",
|
|
88
|
+
"Will the customer receive notifications": "Will the customer receive notifications",
|
|
89
|
+
"Array of tags to assign to the customer": "Array of tags to assign to the customer",
|
|
90
|
+
"Array of address objects": "Array of address objects",
|
|
91
|
+
"Page number for pagination (starts from 1)": "Page number for pagination (starts from 1)",
|
|
92
|
+
"Number of customers per page (max 100)": "Number of customers per page (max 100)",
|
|
93
|
+
"Search customers by name, email, mobile number, and address": "Search customers by name, email, mobile number, and address",
|
|
94
|
+
"Expand related data": "Expand related data",
|
|
95
|
+
"IDs of locations from which to pull customers": "IDs of locations from which to pull customers",
|
|
96
|
+
"The customer attribute by which to sort the results": "The customer attribute by which to sort the results",
|
|
97
|
+
"The order of sorting (ascending or descending)": "The order of sorting (ascending or descending)",
|
|
98
|
+
"The ID of the customer to retrieve.": "The ID of the customer to retrieve.",
|
|
99
|
+
"The ID of the customer to update.": "The ID of the customer to update.",
|
|
100
|
+
"Array of tags to assign to the customer (replaces existing tags)": "Array of tags to assign to the customer (replaces existing tags)",
|
|
101
|
+
"Array of address objects (if provided, each address must include an id)": "Array of address objects (if provided, each address must include an id)",
|
|
102
|
+
"The ID of the customer": "The ID of the customer",
|
|
103
|
+
"Paginated page number": "Paginated page number",
|
|
104
|
+
"Number of addresses returned per page": "Number of addresses returned per page",
|
|
105
|
+
"Address attribute to sort by": "Address attribute to sort by",
|
|
106
|
+
"Ascending or descending": "Ascending or descending",
|
|
107
|
+
"The ID of the customer to add address to": "The ID of the customer to add address to",
|
|
108
|
+
"Street address": "Street address",
|
|
109
|
+
"Additional street address line": "Additional street address line",
|
|
110
|
+
"ZIP code": "ZIP code",
|
|
111
|
+
"Latitude (one of number)": "Latitude (one of number)",
|
|
112
|
+
"Longitude (one of number)": "Longitude (one of number)",
|
|
113
|
+
"The ID of the address": "The ID of the address",
|
|
114
|
+
"The ID of the customer this job is for": "The ID of the customer this job is for",
|
|
115
|
+
"The ID of the address for this job": "The ID of the address for this job",
|
|
116
|
+
"Invoice number must be unique across all of a company's jobs. If left blank, one will be automatically generated.": "Invoice number must be unique across all of a company's jobs. If left blank, one will be automatically generated.",
|
|
117
|
+
"Start time of job in ISO8601 format (e.g., 2021-01-14T20:14:00)": "Start time of job in ISO8601 format (e.g., 2021-01-14T20:14:00)",
|
|
118
|
+
"End time of job in ISO8601 format (e.g., 2021-01-14T21:14:00)": "End time of job in ISO8601 format (e.g., 2021-01-14T21:14:00)",
|
|
119
|
+
"Integer value in minutes of arrival window": "Integer value in minutes of arrival window",
|
|
120
|
+
"Array of employee IDs to assign to the job": "Array of employee IDs to assign to the job",
|
|
121
|
+
"Array of tags to assign to the job": "Array of tags to assign to the job",
|
|
122
|
+
"Array of line items for the job": "Array of line items for the job",
|
|
123
|
+
"Pricing form object with fields and options (use UUIDs from GET price form endpoint)": "Pricing form object with fields and options (use UUIDs from GET price form endpoint)",
|
|
124
|
+
"Job fields object (e.g., job_type_id, business_unit_id)": "Job fields object (e.g., job_type_id, business_unit_id)",
|
|
125
|
+
"Filters jobs by a single customer ID": "Filters jobs by a single customer ID",
|
|
126
|
+
"Array of employee IDs to filter jobs": "Array of employee IDs to filter jobs",
|
|
127
|
+
"Array of strings to expand response body": "Array of strings to expand response body",
|
|
128
|
+
"IDs of locations to retrieve jobs from": "IDs of locations to retrieve jobs from",
|
|
129
|
+
"The paginated page number": "The paginated page number",
|
|
130
|
+
"The number of jobs returned per page": "The number of jobs returned per page",
|
|
131
|
+
"Filters jobs with a starting time greater than or equal to the date sent": "Filters jobs with a starting time greater than or equal to the date sent",
|
|
132
|
+
"Filters jobs with a starting time less than or equal to the date sent": "Filters jobs with a starting time less than or equal to the date sent",
|
|
133
|
+
"Filters jobs with an end time greater than or equal to the date sent": "Filters jobs with an end time greater than or equal to the date sent",
|
|
134
|
+
"Filters jobs with an end time less than or equal to the date sent": "Filters jobs with an end time less than or equal to the date sent",
|
|
135
|
+
"The attribute to sort the results by": "The attribute to sort the results by",
|
|
136
|
+
"The sorting order": "The sorting order",
|
|
137
|
+
"Filters jobs by their work status. If empty, returns jobs from all statuses": "Filters jobs by their work status. If empty, returns jobs from all statuses",
|
|
138
|
+
"The ID of the job to retrieve": "The ID of the job to retrieve",
|
|
139
|
+
"Expand related data (attachments, appointments)": "Expand related data (attachments, appointments)",
|
|
140
|
+
"The ID of the job to update schedule for": "The ID of the job to update schedule for",
|
|
141
|
+
"Notify the customer of the update schedule": "Notify the customer of the update schedule",
|
|
142
|
+
"Notify the pros of the update schedule": "Notify the pros of the update schedule",
|
|
143
|
+
"Expand related entities": "Expand related entities",
|
|
144
|
+
"Array of employee objects with employee_id": "Array of employee objects with employee_id",
|
|
145
|
+
"The ID of the job to delete schedule from.": "The ID of the job to delete schedule from.",
|
|
146
|
+
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
|
147
|
+
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
|
148
|
+
"Attachments": "Attachments",
|
|
149
|
+
"Do Not Service": "Do Not Service",
|
|
150
|
+
"Created At": "Created At",
|
|
151
|
+
"Updated At": "Updated At",
|
|
152
|
+
"Ascending": "升序",
|
|
153
|
+
"Descending": "降序",
|
|
154
|
+
"Appointments": "Appointments",
|
|
155
|
+
"ID": "ID",
|
|
156
|
+
"Description": "描述",
|
|
157
|
+
"Unscheduled": "Unscheduled",
|
|
158
|
+
"Scheduled": "Scheduled",
|
|
159
|
+
"In Progress": "In Progress",
|
|
160
|
+
"Completed": "Completed",
|
|
161
|
+
"Canceled": "Canceled",
|
|
162
|
+
"Assigned Employees": "Assigned Employees",
|
|
163
|
+
"GET": "获取",
|
|
164
|
+
"POST": "帖子",
|
|
165
|
+
"PATCH": "PATCH",
|
|
166
|
+
"PUT": "弹出",
|
|
167
|
+
"DELETE": "删除",
|
|
168
|
+
"HEAD": "黑色"
|
|
169
|
+
}
|
package/src/index.js
CHANGED
|
@@ -29,6 +29,41 @@ exports.housecallPro = (0, pieces_framework_1.createPiece)({
|
|
|
29
29
|
common_1.getJob,
|
|
30
30
|
common_1.updateJobSchedule,
|
|
31
31
|
common_1.deleteJobSchedule,
|
|
32
|
+
common_1.createJobAppointment,
|
|
33
|
+
common_1.getJobAppointments,
|
|
34
|
+
common_1.updateJobAppointment,
|
|
35
|
+
common_1.deleteJobAppointment,
|
|
36
|
+
common_1.addJobNote,
|
|
37
|
+
common_1.deleteJobNote,
|
|
38
|
+
common_1.addJobAttachment,
|
|
39
|
+
common_1.addJobLineItem,
|
|
40
|
+
common_1.updateJobLineItem,
|
|
41
|
+
common_1.deleteJobLineItem,
|
|
42
|
+
common_1.getJobLineItems,
|
|
43
|
+
common_1.addJobTag,
|
|
44
|
+
common_1.removeJobTag,
|
|
45
|
+
common_1.createJobLink,
|
|
46
|
+
common_1.getJobInvoices,
|
|
47
|
+
common_1.getJobInputMaterials,
|
|
48
|
+
common_1.bulkUpdateJobLineItems,
|
|
49
|
+
common_1.bulkUpdateJobInputMaterials,
|
|
50
|
+
common_1.dispatchJobToEmployees,
|
|
51
|
+
common_1.lockJob,
|
|
52
|
+
common_1.lockJobs,
|
|
53
|
+
// Estimate actions
|
|
54
|
+
common_1.createEstimate,
|
|
55
|
+
common_1.getEstimate,
|
|
56
|
+
common_1.getEstimates,
|
|
57
|
+
common_1.createEstimateOptionNote,
|
|
58
|
+
common_1.deleteEstimateOptionNote,
|
|
59
|
+
common_1.createEstimateOptionAttachment,
|
|
60
|
+
common_1.createEstimateOptionLink,
|
|
61
|
+
common_1.updateEstimateOptionSchedule,
|
|
62
|
+
// Lead actions
|
|
63
|
+
common_1.createLead,
|
|
64
|
+
common_1.getLead,
|
|
65
|
+
common_1.getLeads,
|
|
66
|
+
common_1.convertLeadToEstimateOrJob,
|
|
32
67
|
// Custom API Call
|
|
33
68
|
(0, pieces_common_1.createCustomApiCallAction)({
|
|
34
69
|
baseUrl: () => common_1.baseUrl,
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/housecall-pro/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,iDAAqD;AACrD,+DAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/housecall-pro/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,iDAAqD;AACrD,+DAAwE;AACxE,yCAoDsB;AAET,QAAA,YAAY,GAAG,IAAA,8BAAW,EAAC;IACtC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,sEAAsE;IACnF,IAAI,EAAE,yBAAgB;IACtB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,uDAAuD;IAChE,UAAU,EAAE,CAAC,sBAAa,CAAC,aAAa,CAAC;IACzC,OAAO,EAAE,CAAC,cAAc,CAAC;IACzB,OAAO,EAAE;QACP,mBAAmB;QACnB,uBAAc;QACd,qBAAY;QACZ,oBAAW;QACX,uBAAc;QACd,6BAAoB;QACpB,8BAAqB;QACrB,2BAAkB;QAClB,cAAc;QACd,kBAAS;QACT,gBAAO;QACP,eAAM;QACN,0BAAiB;QACjB,0BAAiB;QACjB,6BAAoB;QACpB,2BAAkB;QAClB,6BAAoB;QACpB,6BAAoB;QACpB,mBAAU;QACV,sBAAa;QACb,yBAAgB;QAChB,uBAAc;QACd,0BAAiB;QACjB,0BAAiB;QACjB,wBAAe;QACf,kBAAS;QACT,qBAAY;QACZ,sBAAa;QACb,uBAAc;QACd,6BAAoB;QACpB,+BAAsB;QACtB,oCAA2B;QAC3B,+BAAsB;QACtB,gBAAO;QACP,iBAAQ;QACR,mBAAmB;QACnB,uBAAc;QACd,oBAAW;QACX,qBAAY;QACZ,iCAAwB;QACxB,iCAAwB;QACxB,uCAA8B;QAC9B,iCAAwB;QACxB,qCAA4B;QAC5B,eAAe;QACf,mBAAU;QACV,gBAAO;QACP,iBAAQ;QACR,mCAA0B;QAC1B,kBAAkB;QAClB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAO;YACtB,IAAI,EAAE,yBAAgB;YACtB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,eAAe,EAAE,SAAS,IAAI,EAAE;oBAChC,cAAc,EAAE,kBAAkB;iBACnC,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const addJobAttachment: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
job_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
file: import("@activepieces/pieces-framework").FileProperty<true>;
|
|
4
|
+
}>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addJobAttachment = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
8
|
+
exports.addJobAttachment = (0, pieces_framework_1.createAction)({
|
|
9
|
+
auth: common_1.housecallProAuth,
|
|
10
|
+
name: "add_job_attachment",
|
|
11
|
+
displayName: "Add an attachment to a job",
|
|
12
|
+
description: "Upload an attachment to a job",
|
|
13
|
+
props: {
|
|
14
|
+
job_id: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: "Job ID",
|
|
16
|
+
description: "The ID of the job to add attachment to",
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
file: pieces_framework_1.Property.File({
|
|
20
|
+
displayName: "File",
|
|
21
|
+
description: "The file to upload",
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
run(_a) {
|
|
26
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
27
|
+
const { job_id, file } = propsValue;
|
|
28
|
+
const formData = new FormData();
|
|
29
|
+
const blob = new Blob([file.data], { type: "application/octet-stream" });
|
|
30
|
+
formData.append("file", blob, file.filename);
|
|
31
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
32
|
+
url: `${common_1.baseUrl}/jobs/${job_id}/attachments`,
|
|
33
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
34
|
+
headers: {
|
|
35
|
+
"Authorization": `Token ${auth}`,
|
|
36
|
+
"Content-Type": "multipart/form-data",
|
|
37
|
+
},
|
|
38
|
+
body: formData,
|
|
39
|
+
});
|
|
40
|
+
return response.body;
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=add-job-attachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-job-attachment.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/housecall-pro/src/lib/actions/add-job-attachment.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAsD;AACtD,+DAAqE;AAExD,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,4BAA4B;IACzC,WAAW,EAAE,+BAA+B;IAC5C,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,IAAI,CAAC;YAClB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC;YAEpC,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;YAChC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC,CAAC;YACzE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAE7C,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,GAAG,gBAAO,SAAS,MAAM,cAAc;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,OAAO,EAAE;oBACP,eAAe,EAAE,SAAS,IAAI,EAAE;oBAChC,cAAc,EAAE,qBAAqB;iBACtC;gBACD,IAAI,EAAE,QAAQ;aACf,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const addJobLineItem: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
job_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
description: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
+
unit_price: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
6
|
+
unit_cost: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
7
|
+
quantity: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
8
|
+
tax_surcharge_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
9
|
+
kind: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
10
|
+
taxable: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
11
|
+
service_line_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
+
service_line_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addJobLineItem = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
8
|
+
exports.addJobLineItem = (0, pieces_framework_1.createAction)({
|
|
9
|
+
auth: common_1.housecallProAuth,
|
|
10
|
+
name: "add_job_line_item",
|
|
11
|
+
displayName: "Add a line item to a job",
|
|
12
|
+
description: "Add a line item to a job. This is a rate limited request.",
|
|
13
|
+
props: {
|
|
14
|
+
job_id: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: "Job ID",
|
|
16
|
+
description: "The ID of the job",
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
name: pieces_framework_1.Property.ShortText({
|
|
20
|
+
displayName: "Name",
|
|
21
|
+
description: "The name of the line item",
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
description: pieces_framework_1.Property.ShortText({
|
|
25
|
+
displayName: "Description",
|
|
26
|
+
description: "The description of the line item",
|
|
27
|
+
required: false,
|
|
28
|
+
}),
|
|
29
|
+
unit_price: pieces_framework_1.Property.Number({
|
|
30
|
+
displayName: "Unit Price",
|
|
31
|
+
description: "The unit price of the line item",
|
|
32
|
+
required: false,
|
|
33
|
+
}),
|
|
34
|
+
unit_cost: pieces_framework_1.Property.Number({
|
|
35
|
+
displayName: "Unit Cost",
|
|
36
|
+
description: "The unit cost of the line item",
|
|
37
|
+
required: false,
|
|
38
|
+
}),
|
|
39
|
+
quantity: pieces_framework_1.Property.Number({
|
|
40
|
+
displayName: "Quantity",
|
|
41
|
+
description: "The number of items being sold. This can be a float up to two decimal places",
|
|
42
|
+
required: false,
|
|
43
|
+
}),
|
|
44
|
+
tax_surcharge_type: pieces_framework_1.Property.StaticDropdown({
|
|
45
|
+
displayName: "Tax/Surcharge Type",
|
|
46
|
+
description: "The type of tax or surcharge",
|
|
47
|
+
required: false,
|
|
48
|
+
options: {
|
|
49
|
+
options: [
|
|
50
|
+
{ label: "Material", value: "material" },
|
|
51
|
+
{ label: "Labor", value: "labor" },
|
|
52
|
+
{ label: "Flat Quantity", value: "flat_quantity" },
|
|
53
|
+
{ label: "Fixed Discount", value: "fixed_discount" },
|
|
54
|
+
{ label: "Percent Discount", value: "percent_discount" },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
}),
|
|
58
|
+
kind: pieces_framework_1.Property.StaticDropdown({
|
|
59
|
+
displayName: "Kind",
|
|
60
|
+
description: "The kind of line item",
|
|
61
|
+
required: false,
|
|
62
|
+
options: {
|
|
63
|
+
options: [
|
|
64
|
+
{ label: "Material", value: "material" },
|
|
65
|
+
{ label: "Labor", value: "labor" },
|
|
66
|
+
{ label: "Flat Quantity", value: "flat_quantity" },
|
|
67
|
+
{ label: "Fixed Discount", value: "fixed_discount" },
|
|
68
|
+
{ label: "Percent Discount", value: "percent_discount" },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
}),
|
|
72
|
+
taxable: pieces_framework_1.Property.Checkbox({
|
|
73
|
+
displayName: "Taxable",
|
|
74
|
+
description: "Whether the line item is taxable",
|
|
75
|
+
required: false,
|
|
76
|
+
}),
|
|
77
|
+
service_line_id: pieces_framework_1.Property.ShortText({
|
|
78
|
+
displayName: "Service Line ID",
|
|
79
|
+
description: "The ID of the service line",
|
|
80
|
+
required: false,
|
|
81
|
+
}),
|
|
82
|
+
service_line_type: pieces_framework_1.Property.StaticDropdown({
|
|
83
|
+
displayName: "Service Line Type",
|
|
84
|
+
description: "The type of service line",
|
|
85
|
+
required: false,
|
|
86
|
+
options: {
|
|
87
|
+
options: [
|
|
88
|
+
{ label: "Custom Place", value: "custom_place" },
|
|
89
|
+
{ label: "Organization", value: "organization" },
|
|
90
|
+
{ label: "PriceBook Material", value: "pricebok_material" },
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
}),
|
|
94
|
+
},
|
|
95
|
+
run(_a) {
|
|
96
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
97
|
+
const body = {
|
|
98
|
+
name: propsValue['name'],
|
|
99
|
+
};
|
|
100
|
+
if (propsValue['description'])
|
|
101
|
+
body['description'] = propsValue['description'];
|
|
102
|
+
if (propsValue['unit_price'] !== undefined)
|
|
103
|
+
body['unit_price'] = propsValue['unit_price'];
|
|
104
|
+
if (propsValue['unit_cost'] !== undefined)
|
|
105
|
+
body['unit_cost'] = propsValue['unit_cost'];
|
|
106
|
+
if (propsValue['quantity'] !== undefined)
|
|
107
|
+
body['quantity'] = propsValue['quantity'];
|
|
108
|
+
if (propsValue['tax_surcharge_type'])
|
|
109
|
+
body['tax_surcharge_type'] = propsValue['tax_surcharge_type'];
|
|
110
|
+
if (propsValue['kind'])
|
|
111
|
+
body['kind'] = propsValue['kind'];
|
|
112
|
+
if (propsValue['taxable'] !== undefined)
|
|
113
|
+
body['taxable'] = propsValue['taxable'];
|
|
114
|
+
if (propsValue['service_line_id'])
|
|
115
|
+
body['service_line_id'] = propsValue['service_line_id'];
|
|
116
|
+
if (propsValue['service_line_type'])
|
|
117
|
+
body['service_line_type'] = propsValue['service_line_type'];
|
|
118
|
+
const response = yield (0, common_1.makeHousecallProRequest)(auth, `/jobs/${propsValue['job_id']}/line_items`, pieces_common_1.HttpMethod.POST, body);
|
|
119
|
+
return response.body;
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
//# sourceMappingURL=add-job-line-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-job-line-item.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/housecall-pro/src/lib/actions/add-job-line-item.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const addJobNote: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
job_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
content: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
4
|
+
}>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addJobNote = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
8
|
+
exports.addJobNote = (0, pieces_framework_1.createAction)({
|
|
9
|
+
auth: common_1.housecallProAuth,
|
|
10
|
+
name: "add_job_note",
|
|
11
|
+
displayName: "Add job note",
|
|
12
|
+
description: "Add a note to a job",
|
|
13
|
+
props: {
|
|
14
|
+
job_id: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: "Job ID",
|
|
16
|
+
description: "The ID of the job",
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
content: pieces_framework_1.Property.LongText({
|
|
20
|
+
displayName: "Content",
|
|
21
|
+
description: "The content of the note",
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
run(_a) {
|
|
26
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
27
|
+
const body = {
|
|
28
|
+
content: propsValue['content'],
|
|
29
|
+
};
|
|
30
|
+
const response = yield (0, common_1.makeHousecallProRequest)(auth, `/jobs/${propsValue['job_id']}/notes`, pieces_common_1.HttpMethod.POST, body);
|
|
31
|
+
return response.body;
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=add-job-note.js.map
|