@activepieces/piece-housecall-pro 0.1.5 → 0.1.6

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 (189) hide show
  1. package/package.json +7 -13
  2. package/src/index.js +13 -81
  3. package/src/index.d.ts +0 -2
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/add-job-attachment.d.ts +0 -5
  7. package/src/lib/actions/add-job-attachment.d.ts.map +0 -1
  8. package/src/lib/actions/add-job-attachment.js +0 -46
  9. package/src/lib/actions/add-job-attachment.js.map +0 -1
  10. package/src/lib/actions/add-job-line-item.d.ts +0 -14
  11. package/src/lib/actions/add-job-line-item.d.ts.map +0 -1
  12. package/src/lib/actions/add-job-line-item.js +0 -128
  13. package/src/lib/actions/add-job-line-item.js.map +0 -1
  14. package/src/lib/actions/add-job-note.d.ts +0 -5
  15. package/src/lib/actions/add-job-note.d.ts.map +0 -1
  16. package/src/lib/actions/add-job-note.js +0 -40
  17. package/src/lib/actions/add-job-note.js.map +0 -1
  18. package/src/lib/actions/add-job-tag.d.ts +0 -5
  19. package/src/lib/actions/add-job-tag.d.ts.map +0 -1
  20. package/src/lib/actions/add-job-tag.js +0 -40
  21. package/src/lib/actions/add-job-tag.js.map +0 -1
  22. package/src/lib/actions/bulk-update-job-input-materials.d.ts +0 -5
  23. package/src/lib/actions/bulk-update-job-input-materials.d.ts.map +0 -1
  24. package/src/lib/actions/bulk-update-job-input-materials.js +0 -40
  25. package/src/lib/actions/bulk-update-job-input-materials.js.map +0 -1
  26. package/src/lib/actions/bulk-update-job-line-items.d.ts +0 -6
  27. package/src/lib/actions/bulk-update-job-line-items.d.ts.map +0 -1
  28. package/src/lib/actions/bulk-update-job-line-items.js +0 -46
  29. package/src/lib/actions/bulk-update-job-line-items.js.map +0 -1
  30. package/src/lib/actions/convert-lead-to-estimate-or-job.d.ts +0 -5
  31. package/src/lib/actions/convert-lead-to-estimate-or-job.d.ts.map +0 -1
  32. package/src/lib/actions/convert-lead-to-estimate-or-job.js +0 -37
  33. package/src/lib/actions/convert-lead-to-estimate-or-job.js.map +0 -1
  34. package/src/lib/actions/create-customer-address.d.ts +0 -12
  35. package/src/lib/actions/create-customer-address.d.ts.map +0 -1
  36. package/src/lib/actions/create-customer-address.js +0 -89
  37. package/src/lib/actions/create-customer-address.js.map +0 -1
  38. package/src/lib/actions/create-customer.d.ts +0 -16
  39. package/src/lib/actions/create-customer.d.ts.map +0 -1
  40. package/src/lib/actions/create-customer.js +0 -127
  41. package/src/lib/actions/create-customer.js.map +0 -1
  42. package/src/lib/actions/create-estimate-option-attachment.d.ts +0 -6
  43. package/src/lib/actions/create-estimate-option-attachment.d.ts.map +0 -1
  44. package/src/lib/actions/create-estimate-option-attachment.js +0 -42
  45. package/src/lib/actions/create-estimate-option-attachment.js.map +0 -1
  46. package/src/lib/actions/create-estimate-option-link.d.ts +0 -7
  47. package/src/lib/actions/create-estimate-option-link.d.ts.map +0 -1
  48. package/src/lib/actions/create-estimate-option-link.js +0 -29
  49. package/src/lib/actions/create-estimate-option-link.js.map +0 -1
  50. package/src/lib/actions/create-estimate-option-note.d.ts +0 -6
  51. package/src/lib/actions/create-estimate-option-note.d.ts.map +0 -1
  52. package/src/lib/actions/create-estimate-option-note.js +0 -27
  53. package/src/lib/actions/create-estimate-option-note.js.map +0 -1
  54. package/src/lib/actions/create-estimate.d.ts +0 -13
  55. package/src/lib/actions/create-estimate.d.ts.map +0 -1
  56. package/src/lib/actions/create-estimate.js +0 -91
  57. package/src/lib/actions/create-estimate.js.map +0 -1
  58. package/src/lib/actions/create-job-appointment.d.ts +0 -8
  59. package/src/lib/actions/create-job-appointment.d.ts.map +0 -1
  60. package/src/lib/actions/create-job-appointment.js +0 -57
  61. package/src/lib/actions/create-job-appointment.js.map +0 -1
  62. package/src/lib/actions/create-job-link.d.ts +0 -6
  63. package/src/lib/actions/create-job-link.d.ts.map +0 -1
  64. package/src/lib/actions/create-job-link.js +0 -43
  65. package/src/lib/actions/create-job-link.js.map +0 -1
  66. package/src/lib/actions/create-job.d.ts +0 -16
  67. package/src/lib/actions/create-job.d.ts.map +0 -1
  68. package/src/lib/actions/create-job.js +0 -131
  69. package/src/lib/actions/create-job.js.map +0 -1
  70. package/src/lib/actions/create-lead.d.ts +0 -17
  71. package/src/lib/actions/create-lead.d.ts.map +0 -1
  72. package/src/lib/actions/create-lead.js +0 -126
  73. package/src/lib/actions/create-lead.js.map +0 -1
  74. package/src/lib/actions/delete-estimate-option-note.d.ts +0 -6
  75. package/src/lib/actions/delete-estimate-option-note.d.ts.map +0 -1
  76. package/src/lib/actions/delete-estimate-option-note.js +0 -27
  77. package/src/lib/actions/delete-estimate-option-note.js.map +0 -1
  78. package/src/lib/actions/delete-job-appointment.d.ts +0 -5
  79. package/src/lib/actions/delete-job-appointment.d.ts.map +0 -1
  80. package/src/lib/actions/delete-job-appointment.js +0 -37
  81. package/src/lib/actions/delete-job-appointment.js.map +0 -1
  82. package/src/lib/actions/delete-job-line-item.d.ts +0 -5
  83. package/src/lib/actions/delete-job-line-item.d.ts.map +0 -1
  84. package/src/lib/actions/delete-job-line-item.js +0 -34
  85. package/src/lib/actions/delete-job-line-item.js.map +0 -1
  86. package/src/lib/actions/delete-job-note.d.ts +0 -5
  87. package/src/lib/actions/delete-job-note.d.ts.map +0 -1
  88. package/src/lib/actions/delete-job-note.js +0 -34
  89. package/src/lib/actions/delete-job-note.js.map +0 -1
  90. package/src/lib/actions/delete-job-schedule.d.ts +0 -4
  91. package/src/lib/actions/delete-job-schedule.d.ts.map +0 -1
  92. package/src/lib/actions/delete-job-schedule.js +0 -30
  93. package/src/lib/actions/delete-job-schedule.js.map +0 -1
  94. package/src/lib/actions/dispatch-job-to-employees.d.ts +0 -5
  95. package/src/lib/actions/dispatch-job-to-employees.d.ts.map +0 -1
  96. package/src/lib/actions/dispatch-job-to-employees.js +0 -40
  97. package/src/lib/actions/dispatch-job-to-employees.js.map +0 -1
  98. package/src/lib/actions/get-customer-address.d.ts +0 -5
  99. package/src/lib/actions/get-customer-address.d.ts.map +0 -1
  100. package/src/lib/actions/get-customer-address.js +0 -35
  101. package/src/lib/actions/get-customer-address.js.map +0 -1
  102. package/src/lib/actions/get-customer-addresses.d.ts +0 -8
  103. package/src/lib/actions/get-customer-addresses.d.ts.map +0 -1
  104. package/src/lib/actions/get-customer-addresses.js +0 -77
  105. package/src/lib/actions/get-customer-addresses.js.map +0 -1
  106. package/src/lib/actions/get-customer.d.ts +0 -5
  107. package/src/lib/actions/get-customer.d.ts.map +0 -1
  108. package/src/lib/actions/get-customer.js +0 -48
  109. package/src/lib/actions/get-customer.js.map +0 -1
  110. package/src/lib/actions/get-customers.d.ts +0 -10
  111. package/src/lib/actions/get-customers.d.ts.map +0 -1
  112. package/src/lib/actions/get-customers.js +0 -99
  113. package/src/lib/actions/get-customers.js.map +0 -1
  114. package/src/lib/actions/get-estimate.d.ts +0 -5
  115. package/src/lib/actions/get-estimate.d.ts.map +0 -1
  116. package/src/lib/actions/get-estimate.js +0 -45
  117. package/src/lib/actions/get-estimate.js.map +0 -1
  118. package/src/lib/actions/get-estimates.d.ts +0 -16
  119. package/src/lib/actions/get-estimates.d.ts.map +0 -1
  120. package/src/lib/actions/get-estimates.js +0 -162
  121. package/src/lib/actions/get-estimates.js.map +0 -1
  122. package/src/lib/actions/get-job-appointments.d.ts +0 -4
  123. package/src/lib/actions/get-job-appointments.d.ts.map +0 -1
  124. package/src/lib/actions/get-job-appointments.js +0 -29
  125. package/src/lib/actions/get-job-appointments.js.map +0 -1
  126. package/src/lib/actions/get-job-input-materials.d.ts +0 -4
  127. package/src/lib/actions/get-job-input-materials.d.ts.map +0 -1
  128. package/src/lib/actions/get-job-input-materials.js +0 -29
  129. package/src/lib/actions/get-job-input-materials.js.map +0 -1
  130. package/src/lib/actions/get-job-invoices.d.ts +0 -4
  131. package/src/lib/actions/get-job-invoices.d.ts.map +0 -1
  132. package/src/lib/actions/get-job-invoices.js +0 -30
  133. package/src/lib/actions/get-job-invoices.js.map +0 -1
  134. package/src/lib/actions/get-job-line-items.d.ts +0 -4
  135. package/src/lib/actions/get-job-line-items.d.ts.map +0 -1
  136. package/src/lib/actions/get-job-line-items.js +0 -29
  137. package/src/lib/actions/get-job-line-items.js.map +0 -1
  138. package/src/lib/actions/get-job.d.ts +0 -5
  139. package/src/lib/actions/get-job.d.ts.map +0 -1
  140. package/src/lib/actions/get-job.js +0 -48
  141. package/src/lib/actions/get-job.js.map +0 -1
  142. package/src/lib/actions/get-jobs.d.ts +0 -16
  143. package/src/lib/actions/get-jobs.d.ts.map +0 -1
  144. package/src/lib/actions/get-jobs.js +0 -166
  145. package/src/lib/actions/get-jobs.js.map +0 -1
  146. package/src/lib/actions/get-lead.d.ts +0 -4
  147. package/src/lib/actions/get-lead.d.ts.map +0 -1
  148. package/src/lib/actions/get-lead.js +0 -32
  149. package/src/lib/actions/get-lead.js.map +0 -1
  150. package/src/lib/actions/get-leads.d.ts +0 -13
  151. package/src/lib/actions/get-leads.d.ts.map +0 -1
  152. package/src/lib/actions/get-leads.js +0 -106
  153. package/src/lib/actions/get-leads.js.map +0 -1
  154. package/src/lib/actions/lock-job.d.ts +0 -4
  155. package/src/lib/actions/lock-job.d.ts.map +0 -1
  156. package/src/lib/actions/lock-job.js +0 -32
  157. package/src/lib/actions/lock-job.js.map +0 -1
  158. package/src/lib/actions/lock-jobs.d.ts +0 -5
  159. package/src/lib/actions/lock-jobs.d.ts.map +0 -1
  160. package/src/lib/actions/lock-jobs.js +0 -38
  161. package/src/lib/actions/lock-jobs.js.map +0 -1
  162. package/src/lib/actions/remove-job-tag.d.ts +0 -5
  163. package/src/lib/actions/remove-job-tag.d.ts.map +0 -1
  164. package/src/lib/actions/remove-job-tag.js +0 -37
  165. package/src/lib/actions/remove-job-tag.js.map +0 -1
  166. package/src/lib/actions/update-customer.d.ts +0 -16
  167. package/src/lib/actions/update-customer.d.ts.map +0 -1
  168. package/src/lib/actions/update-customer.js +0 -99
  169. package/src/lib/actions/update-customer.js.map +0 -1
  170. package/src/lib/actions/update-estimate-option-schedule.d.ts +0 -12
  171. package/src/lib/actions/update-estimate-option-schedule.d.ts.map +0 -1
  172. package/src/lib/actions/update-estimate-option-schedule.js +0 -58
  173. package/src/lib/actions/update-estimate-option-schedule.js.map +0 -1
  174. package/src/lib/actions/update-job-appointment.d.ts +0 -9
  175. package/src/lib/actions/update-job-appointment.d.ts.map +0 -1
  176. package/src/lib/actions/update-job-appointment.js +0 -62
  177. package/src/lib/actions/update-job-appointment.js.map +0 -1
  178. package/src/lib/actions/update-job-line-item.d.ts +0 -14
  179. package/src/lib/actions/update-job-line-item.d.ts.map +0 -1
  180. package/src/lib/actions/update-job-line-item.js +0 -117
  181. package/src/lib/actions/update-job-line-item.js.map +0 -1
  182. package/src/lib/actions/update-job-schedule.d.ts +0 -11
  183. package/src/lib/actions/update-job-schedule.d.ts.map +0 -1
  184. package/src/lib/actions/update-job-schedule.js +0 -91
  185. package/src/lib/actions/update-job-schedule.js.map +0 -1
  186. package/src/lib/common/index.d.ts +0 -98
  187. package/src/lib/common/index.d.ts.map +0 -1
  188. package/src/lib/common/index.js +0 -158
  189. package/src/lib/common/index.js.map +0 -1
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCustomerAddress = 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.getCustomerAddress = (0, pieces_framework_1.createAction)({
9
- auth: common_1.housecallProAuth,
10
- name: "get_customer_address",
11
- displayName: "Get a Customer's Address",
12
- description: "Retrieves a customer's address by customer ID and address ID.",
13
- audience: 'both',
14
- aiMetadata: { description: 'Read-only: fetches a single customer address in Housecall Pro by its customer ID and address ID. Use when both IDs are known and you need the details of one specific address; safe to retry. Does not list all addresses for a customer and does not modify any data.', idempotent: true },
15
- props: {
16
- customer_id: pieces_framework_1.Property.ShortText({
17
- displayName: "Customer ID",
18
- description: "The ID of the customer",
19
- required: true,
20
- }),
21
- address_id: pieces_framework_1.Property.ShortText({
22
- displayName: "Address ID",
23
- description: "The ID of the address",
24
- required: true,
25
- }),
26
- },
27
- run(context) {
28
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
- const { auth, propsValue } = context;
30
- const response = yield (0, common_1.makeHousecallProRequest)(auth, `/customers/${propsValue.customer_id}/addresses/${propsValue.address_id}`, pieces_common_1.HttpMethod.GET);
31
- return response.body;
32
- });
33
- },
34
- });
35
- //# sourceMappingURL=get-customer-address.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-customer-address.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-customer-address.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAsE;AACtE,+DAAyD;AAE5C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,+DAA+D;IAC5E,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,wQAAwQ,EAAE,UAAU,EAAE,IAAI,EAAE;IACvT,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;YAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,gCAAuB,EAC5C,IAAI,EACJ,cAAc,UAAU,CAAC,WAAW,cAAc,UAAU,CAAC,UAAU,EAAE,EACzE,0BAAU,CAAC,GAAG,CACf,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const getCustomerAddresses: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- customer_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- page: import("@activepieces/pieces-framework").NumberProperty<false>;
4
- page_size: import("@activepieces/pieces-framework").NumberProperty<false>;
5
- sort_by: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
6
- sort_direction: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
7
- }>;
8
- //# sourceMappingURL=get-customer-addresses.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-customer-addresses.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-customer-addresses.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;;;EA4E/B,CAAC"}
@@ -1,77 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCustomerAddresses = 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.getCustomerAddresses = (0, pieces_framework_1.createAction)({
9
- auth: common_1.housecallProAuth,
10
- name: "get_customer_addresses",
11
- displayName: "Get All of a Customer's Addresses",
12
- description: "Retrieves all of a customer's addresses.",
13
- audience: 'both',
14
- aiMetadata: {
15
- description: "List all addresses belonging to a given Housecall Pro customer, with pagination and sorting by created/updated time. Read-only and repeatable. Requires a known customer ID.",
16
- idempotent: true,
17
- },
18
- props: {
19
- customer_id: pieces_framework_1.Property.ShortText({
20
- displayName: "Customer ID",
21
- description: "The ID of the customer",
22
- required: true,
23
- }),
24
- page: pieces_framework_1.Property.Number({
25
- displayName: "Page",
26
- description: "Paginated page number",
27
- required: false,
28
- defaultValue: 1,
29
- }),
30
- page_size: pieces_framework_1.Property.Number({
31
- displayName: "Page Size",
32
- description: "Number of addresses returned per page",
33
- required: false,
34
- defaultValue: 50,
35
- }),
36
- sort_by: pieces_framework_1.Property.StaticDropdown({
37
- displayName: "Sort By",
38
- description: "Address attribute to sort by",
39
- required: false,
40
- options: {
41
- options: [
42
- { label: "Created At", value: "created_at" },
43
- { label: "Updated At", value: "updated_at" },
44
- ],
45
- },
46
- }),
47
- sort_direction: pieces_framework_1.Property.StaticDropdown({
48
- displayName: "Sort Direction",
49
- description: "Ascending or descending",
50
- required: false,
51
- options: {
52
- options: [
53
- { label: "Ascending", value: "asc" },
54
- { label: "Descending", value: "desc" },
55
- ],
56
- },
57
- }),
58
- },
59
- run(context) {
60
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
61
- const { auth, propsValue } = context;
62
- const queryParams = {
63
- page: String(propsValue.page || 1),
64
- page_size: String(propsValue.page_size || 50),
65
- };
66
- if (propsValue.sort_by) {
67
- queryParams["sort_by"] = propsValue.sort_by;
68
- }
69
- if (propsValue.sort_direction) {
70
- queryParams["sort_direction"] = propsValue.sort_direction;
71
- }
72
- const response = yield (0, common_1.makeHousecallProRequest)(auth, `/customers/${propsValue.customer_id}/addresses`, pieces_common_1.HttpMethod.GET, undefined, queryParams);
73
- return response.body;
74
- });
75
- },
76
- });
77
- //# sourceMappingURL=get-customer-addresses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-customer-addresses.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-customer-addresses.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAsE;AACtE,+DAAyD;AAE5C,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,mCAAmC;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E,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;YAErC,MAAM,WAAW,GAA2B;gBAC1C,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC;gBAClC,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS,IAAI,EAAE,CAAC;aAC9C,CAAC;YAEF,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;gBACvB,WAAW,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;YAC9C,CAAC;YACD,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC;gBAC9B,WAAW,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC;YAC5D,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,gCAAuB,EAC5C,IAAI,EACJ,cAAc,UAAU,CAAC,WAAW,YAAY,EAChD,0BAAU,CAAC,GAAG,EACd,SAAS,EACT,WAAW,CACZ,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const getCustomer: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- customer_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- expand: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
4
- }>;
5
- //# sourceMappingURL=get-customer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-customer.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-customer.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;EA+CtB,CAAC"}
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCustomer = 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.getCustomer = (0, pieces_framework_1.createAction)({
9
- auth: common_1.housecallProAuth,
10
- name: "get_customer",
11
- displayName: "Get Customer",
12
- description: "Retrieves the customer by ID.",
13
- audience: 'both',
14
- aiMetadata: {
15
- description: "Fetch one Housecall Pro customer by its customer ID, optionally expanding attachments and do-not-service status. Read-only and repeatable. Requires a known customer ID; it does not search by name or email.",
16
- idempotent: true,
17
- },
18
- props: {
19
- customer_id: pieces_framework_1.Property.ShortText({
20
- displayName: "Customer ID",
21
- description: "The ID of the customer to retrieve.",
22
- required: true,
23
- }),
24
- expand: pieces_framework_1.Property.StaticMultiSelectDropdown({
25
- displayName: "Expand",
26
- description: "Expand related data",
27
- required: false,
28
- options: {
29
- options: [
30
- { label: "Attachments", value: "attachments" },
31
- { label: "Do Not Service", value: "do_not_service" },
32
- ],
33
- },
34
- }),
35
- },
36
- run(context) {
37
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
38
- const { auth, propsValue } = context;
39
- const queryParams = {};
40
- if (propsValue.expand && propsValue.expand.length > 0) {
41
- queryParams["expand"] = propsValue.expand.join(",");
42
- }
43
- const response = yield (0, common_1.makeHousecallProRequest)(auth, `/customers/${propsValue.customer_id}`, pieces_common_1.HttpMethod.GET, undefined, queryParams);
44
- return response.body;
45
- });
46
- },
47
- });
48
- //# sourceMappingURL=get-customer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-customer.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-customer.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAsE;AACtE,+DAAyD;AAE5C,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EAAE,+MAA+M;QAC5N,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,yBAAyB,CAAC;YACzC,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,qBAAqB;YAClC,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;oBAC9C,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;iBACrD;aACF;SACF,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;YAErC,MAAM,WAAW,GAA2B,EAAE,CAAC;YAE/C,IAAI,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACtD,WAAW,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACtD,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,gCAAuB,EAC5C,IAAI,EACJ,cAAc,UAAU,CAAC,WAAW,EAAE,EACtC,0BAAU,CAAC,GAAG,EACd,SAAS,EACT,WAAW,CACZ,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- export declare const getCustomers: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- page: import("@activepieces/pieces-framework").NumberProperty<false>;
3
- page_size: import("@activepieces/pieces-framework").NumberProperty<false>;
4
- q: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- expand: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
6
- location_ids: import("@activepieces/pieces-framework").ArrayProperty<false>;
7
- sort_by: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
8
- sort_direction: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
9
- }>;
10
- //# sourceMappingURL=get-customers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-customers.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-customers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;EAsGvB,CAAC"}
@@ -1,99 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCustomers = 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.getCustomers = (0, pieces_framework_1.createAction)({
9
- auth: common_1.housecallProAuth,
10
- name: 'get_customers',
11
- displayName: 'Get Customers',
12
- description: 'Retrieves a list of customers from Housecall Pro.',
13
- audience: 'both',
14
- aiMetadata: { description: "List Housecall Pro customers with optional full-text search (name, email, mobile, address), location filtering, sorting, and pagination. Read-only and idempotent. Use the q search query to locate a customer by name or contact details before referencing their ID in other actions.", idempotent: true },
15
- props: {
16
- page: pieces_framework_1.Property.Number({
17
- displayName: 'Page',
18
- description: 'Page number for pagination (starts from 1)',
19
- required: false,
20
- defaultValue: 1,
21
- }),
22
- page_size: pieces_framework_1.Property.Number({
23
- displayName: 'Page Size',
24
- description: 'Number of customers per page (max 100)',
25
- required: false,
26
- defaultValue: 50,
27
- }),
28
- q: pieces_framework_1.Property.ShortText({
29
- displayName: 'Search Query',
30
- description: 'Search customers by name, email, mobile number, and address',
31
- required: false,
32
- }),
33
- expand: pieces_framework_1.Property.StaticMultiSelectDropdown({
34
- displayName: 'Expand',
35
- description: 'Expand related data',
36
- required: false,
37
- options: {
38
- options: [
39
- { label: 'Attachments', value: 'attachments' },
40
- { label: 'Do Not Service', value: 'do_not_service' },
41
- ],
42
- },
43
- }),
44
- location_ids: pieces_framework_1.Property.Array({
45
- displayName: 'Location IDs',
46
- description: 'IDs of locations from which to pull customers',
47
- required: false,
48
- }),
49
- sort_by: pieces_framework_1.Property.StaticDropdown({
50
- displayName: 'Sort By',
51
- description: 'The customer attribute by which to sort the results',
52
- required: false,
53
- options: {
54
- options: [
55
- { label: 'Created At', value: 'created_at' },
56
- { label: 'Updated At', value: 'updated_at' },
57
- { label: 'Last Name', value: 'last_name' },
58
- ],
59
- },
60
- }),
61
- sort_direction: pieces_framework_1.Property.StaticDropdown({
62
- displayName: 'Sort Direction',
63
- description: 'The order of sorting (ascending or descending)',
64
- required: false,
65
- options: {
66
- options: [
67
- { label: 'Ascending', value: 'asc' },
68
- { label: 'Descending', value: 'desc' },
69
- ],
70
- },
71
- }),
72
- },
73
- run(_a) {
74
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
75
- const queryParams = {
76
- page: (propsValue.page || 1).toString(),
77
- page_size: (propsValue.page_size || 50).toString(),
78
- };
79
- if (propsValue.q) {
80
- queryParams['q'] = propsValue.q;
81
- }
82
- if (propsValue.expand && propsValue.expand.length > 0) {
83
- queryParams['expand'] = propsValue.expand.join(',');
84
- }
85
- if (propsValue.location_ids && propsValue.location_ids.length > 0) {
86
- queryParams['location_ids'] = propsValue.location_ids.join(',');
87
- }
88
- if (propsValue.sort_by) {
89
- queryParams['sort_by'] = propsValue.sort_by;
90
- }
91
- if (propsValue.sort_direction) {
92
- queryParams['sort_direction'] = propsValue.sort_direction;
93
- }
94
- const response = yield (0, common_1.makeHousecallProRequest)(auth, '/customers', pieces_common_1.HttpMethod.GET, undefined, queryParams);
95
- return response.body;
96
- });
97
- },
98
- });
99
- //# sourceMappingURL=get-customers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-customers.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-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U,CAAC,YAAY,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAClE,WAAW,CAAC,cAAc,CAAC,GAAI,UAAU,CAAC,YAAyB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAChF,CAAC;YAED,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;gBACvB,WAAW,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;YAC9C,CAAC;YAED,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC;gBAC9B,WAAW,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC;YAC5D,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,gCAAuB,EAC5C,IAAI,EACJ,YAAY,EACZ,0BAAU,CAAC,GAAG,EACd,SAAS,EACT,WAAW,CACZ,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const getEstimate: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- estimate_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- expand: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
4
- }>;
5
- //# sourceMappingURL=get-estimate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-estimate.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-estimate.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;EA0CtB,CAAC"}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEstimate = 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.getEstimate = (0, pieces_framework_1.createAction)({
9
- auth: common_1.housecallProAuth,
10
- name: "get_estimate",
11
- displayName: "Get estimate by ID",
12
- description: "Retrieve a single estimate by ID",
13
- audience: 'both',
14
- aiMetadata: { description: "Fetch a single Housecall Pro estimate by its ID, optionally expanding related customer, address, assigned-employees, options, or attachments inline. Read-only and idempotent. Use the get-estimates list action instead when you need to search or filter across multiple estimates rather than look one up by known ID.", idempotent: true },
15
- props: {
16
- estimate_id: pieces_framework_1.Property.ShortText({
17
- displayName: "Estimate ID",
18
- required: true,
19
- }),
20
- expand: pieces_framework_1.Property.StaticMultiSelectDropdown({
21
- displayName: "Expand",
22
- required: false,
23
- options: {
24
- options: [
25
- { label: "customer", value: "customer" },
26
- { label: "address", value: "address" },
27
- { label: "assigned_employees", value: "assigned_employees" },
28
- { label: "options", value: "options" },
29
- { label: "attachments", value: "attachments" },
30
- ],
31
- },
32
- }),
33
- },
34
- run(_a) {
35
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
36
- const queryParams = {};
37
- if (propsValue["expand"] && propsValue["expand"].length) {
38
- queryParams["expand"] = propsValue["expand"].join(",");
39
- }
40
- const response = yield (0, common_1.makeHousecallProRequest)(auth, `/estimates/${propsValue["estimate_id"]}`, pieces_common_1.HttpMethod.GET, undefined, queryParams);
41
- return response.body;
42
- });
43
- },
44
- });
45
- //# sourceMappingURL=get-estimate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-estimate.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-estimate.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAsE;AACtE,+DAAyD;AAE5C,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,2TAA2T,EAAE,UAAU,EAAE,IAAI,EAAE;IAC1W,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,yBAAyB,CAAC;YACzC,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;oBACxC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,EAAE;oBAC5D,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;iBAC/C;aACF;SACF,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,WAAW,GAA2B,EAAE,CAAC;YAC/C,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;gBACxD,WAAW,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACzD,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,gCAAuB,EAC5C,IAAI,EACJ,cAAc,UAAU,CAAC,aAAa,CAAC,EAAE,EACzC,0BAAU,CAAC,GAAG,EACd,SAAS,EACT,WAAW,CACZ,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,16 +0,0 @@
1
- export declare const getEstimates: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- customer_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
- employee_ids: import("@activepieces/pieces-framework").ArrayProperty<false>;
4
- expand: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
5
- location_ids: import("@activepieces/pieces-framework").ArrayProperty<false>;
6
- page: import("@activepieces/pieces-framework").NumberProperty<false>;
7
- page_size: import("@activepieces/pieces-framework").NumberProperty<false>;
8
- scheduled_end_max: import("@activepieces/pieces-framework").DateTimeProperty<false>;
9
- scheduled_end_min: import("@activepieces/pieces-framework").DateTimeProperty<false>;
10
- scheduled_start_max: import("@activepieces/pieces-framework").DateTimeProperty<false>;
11
- scheduled_start_min: import("@activepieces/pieces-framework").DateTimeProperty<false>;
12
- sort_by: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
13
- sort_direction: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
14
- work_status: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
15
- }>;
16
- //# sourceMappingURL=get-estimates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-estimates.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-estimates.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;EAgKvB,CAAC"}
@@ -1,162 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEstimates = 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.getEstimates = (0, pieces_framework_1.createAction)({
9
- auth: common_1.housecallProAuth,
10
- name: "get_estimates",
11
- displayName: "Get estimates",
12
- description: "Get a list of estimates with filtering and pagination",
13
- audience: 'both',
14
- aiMetadata: { description: "List Housecall Pro estimates with filtering (customer, employees, locations, work status, scheduled-time ranges), sorting, and pagination. Read-only and idempotent. Use this to search or browse estimates; use get-estimate-by-id when you already know the estimate's ID.", idempotent: true },
15
- props: {
16
- customer_id: pieces_framework_1.Property.ShortText({
17
- displayName: "Customer ID",
18
- description: "Filter estimates by a single customer ID",
19
- required: false,
20
- }),
21
- employee_ids: pieces_framework_1.Property.Array({
22
- displayName: "Employee IDs",
23
- description: "Filter estimates by assigned employee IDs",
24
- required: false,
25
- }),
26
- expand: pieces_framework_1.Property.StaticMultiSelectDropdown({
27
- displayName: "Expand",
28
- description: "Array of strings to expand response body",
29
- required: false,
30
- options: {
31
- options: [
32
- { label: "Customer", value: "customer" },
33
- { label: "Address", value: "address" },
34
- { label: "Assigned Employees", value: "assigned_employees" },
35
- { label: "Options", value: "options" },
36
- { label: "Attachments", value: "attachments" },
37
- ],
38
- },
39
- }),
40
- location_ids: pieces_framework_1.Property.Array({
41
- displayName: "Location IDs",
42
- description: "IDs of locations to retrieve estimates from",
43
- required: false,
44
- }),
45
- page: pieces_framework_1.Property.Number({
46
- displayName: "Page",
47
- description: "The paginated page number",
48
- required: false,
49
- defaultValue: 1,
50
- }),
51
- page_size: pieces_framework_1.Property.Number({
52
- displayName: "Page Size",
53
- description: "The number of estimates returned per page",
54
- required: false,
55
- defaultValue: 50,
56
- }),
57
- scheduled_end_max: pieces_framework_1.Property.DateTime({
58
- displayName: "Scheduled End Max",
59
- description: "Filters estimates with an end time less than or equal to the date sent",
60
- required: false,
61
- }),
62
- scheduled_end_min: pieces_framework_1.Property.DateTime({
63
- displayName: "Scheduled End Min",
64
- description: "Filters estimates with an end time greater than or equal to the date sent",
65
- required: false,
66
- }),
67
- scheduled_start_max: pieces_framework_1.Property.DateTime({
68
- displayName: "Scheduled Start Max",
69
- description: "Filters estimates with a starting time less than or equal to the date sent",
70
- required: false,
71
- }),
72
- scheduled_start_min: pieces_framework_1.Property.DateTime({
73
- displayName: "Scheduled Start Min",
74
- description: "Filters estimates with a starting time greater than or equal to the date sent",
75
- required: false,
76
- }),
77
- sort_by: pieces_framework_1.Property.StaticDropdown({
78
- displayName: "Sort By",
79
- description: "The attribute to sort the results by",
80
- required: false,
81
- options: {
82
- options: [
83
- { label: "Created At", value: "created_at" },
84
- { label: "Updated At", value: "updated_at" },
85
- { label: "ID", value: "id" },
86
- ],
87
- },
88
- }),
89
- sort_direction: pieces_framework_1.Property.StaticDropdown({
90
- displayName: "Sort Direction",
91
- description: "The sorting order",
92
- required: false,
93
- options: {
94
- options: [
95
- { label: "Ascending", value: "asc" },
96
- { label: "Descending", value: "desc" },
97
- ],
98
- },
99
- }),
100
- work_status: pieces_framework_1.Property.StaticMultiSelectDropdown({
101
- displayName: "Work Status",
102
- description: "Filters estimates by their work status",
103
- required: false,
104
- options: {
105
- options: [
106
- { label: "Unscheduled", value: "unscheduled" },
107
- { label: "Scheduled", value: "scheduled" },
108
- { label: "In Progress", value: "in_progress" },
109
- { label: "Completed", value: "completed" },
110
- { label: "Canceled", value: "canceled" },
111
- ],
112
- },
113
- }),
114
- },
115
- run(_a) {
116
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
117
- const queryParams = {};
118
- if (propsValue.customer_id) {
119
- queryParams['customer_id'] = String(propsValue.customer_id);
120
- }
121
- if (propsValue.scheduled_end_max) {
122
- queryParams['scheduled_end_max'] = String(propsValue.scheduled_end_max);
123
- }
124
- if (propsValue.scheduled_end_min) {
125
- queryParams['scheduled_end_min'] = String(propsValue.scheduled_end_min);
126
- }
127
- if (propsValue.scheduled_start_max) {
128
- queryParams['scheduled_start_max'] = String(propsValue.scheduled_start_max);
129
- }
130
- if (propsValue.scheduled_start_min) {
131
- queryParams['scheduled_start_min'] = String(propsValue.scheduled_start_min);
132
- }
133
- if (propsValue.sort_by) {
134
- queryParams['sort_by'] = String(propsValue.sort_by);
135
- }
136
- if (propsValue.sort_direction) {
137
- queryParams['sort_direction'] = String(propsValue.sort_direction);
138
- }
139
- if (propsValue.employee_ids && propsValue.employee_ids.length) {
140
- queryParams['employee_ids'] = propsValue.employee_ids.join(",");
141
- }
142
- if (propsValue.location_ids && propsValue.location_ids.length) {
143
- queryParams['location_ids'] = propsValue.location_ids.join(",");
144
- }
145
- if (propsValue.expand && propsValue.expand.length) {
146
- queryParams['expand'] = propsValue.expand.join(",");
147
- }
148
- if (propsValue.work_status && propsValue.work_status.length) {
149
- queryParams['work_status'] = propsValue.work_status.join(",");
150
- }
151
- if (propsValue.page) {
152
- queryParams['page'] = String(propsValue.page);
153
- }
154
- if (propsValue.page_size) {
155
- queryParams['page_size'] = String(propsValue.page_size);
156
- }
157
- const response = yield (0, common_1.makeHousecallProRequest)(auth, "/estimates", pieces_common_1.HttpMethod.GET, undefined, queryParams);
158
- return response.body;
159
- });
160
- },
161
- });
162
- //# sourceMappingURL=get-estimates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-estimates.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-estimates.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAsE;AACtE,+DAAyD;AAE5C,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,8QAA8Q,EAAE,UAAU,EAAE,IAAI,EAAE;IAC7T,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC3B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,yBAAyB,CAAC;YACzC,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,KAAK;YAC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AAU,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClE,CAAC;YACD,IAAI,UAAU,CAAC,YAAY,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;gBAC9D,WAAW,CAAC,cAAc,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClE,CAAC;YACD,IAAI,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;gBAClD,WAAW,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACtD,CAAC;YACD,IAAI,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;gBAC5D,WAAW,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAChE,CAAC;YACD,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC;gBACpB,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC;YACD,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;gBACzB,WAAW,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YAC1D,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,gCAAuB,EAC5C,IAAI,EACJ,YAAY,EACZ,0BAAU,CAAC,GAAG,EACd,SAAS,EACT,WAAW,CACZ,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const getJobAppointments: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- job_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- }>;
4
- //# sourceMappingURL=get-job-appointments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-job-appointments.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-job-appointments.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;EAuB7B,CAAC"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getJobAppointments = 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.getJobAppointments = (0, pieces_framework_1.createAction)({
9
- auth: common_1.housecallProAuth,
10
- name: "get_job_appointments",
11
- displayName: "Get Appointments",
12
- description: "Get all of the appointments for a job",
13
- audience: 'both',
14
- aiMetadata: { description: "List all appointments scheduled on a Housecall Pro job identified by job ID. Read-only and idempotent. Use create-appointment or update-appointment to modify scheduling.", idempotent: true },
15
- props: {
16
- job_id: pieces_framework_1.Property.ShortText({
17
- displayName: "Job ID",
18
- description: "The ID of the job",
19
- required: true,
20
- }),
21
- },
22
- run(_a) {
23
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
24
- const response = yield (0, common_1.makeHousecallProRequest)(auth, `/jobs/${propsValue['job_id']}/appointments`, pieces_common_1.HttpMethod.GET);
25
- return response.body;
26
- });
27
- },
28
- });
29
- //# sourceMappingURL=get-job-appointments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-job-appointments.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-job-appointments.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAsE;AACtE,+DAAyD;AAE5C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,2KAA2K,EAAE,UAAU,EAAE,IAAI,EAAE;IAC1N,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,mBAAmB;YAChC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,QAAQ,GAAG,MAAM,IAAA,gCAAuB,EAC5C,IAAI,EACJ,SAAS,UAAU,CAAC,QAAQ,CAAC,eAAe,EAC5C,0BAAU,CAAC,GAAG,CACf,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const getJobInputMaterials: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- job_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- }>;
4
- //# sourceMappingURL=get-job-input-materials.d.ts.map