@activepieces/piece-onfleet 0.0.5 → 0.0.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 (59) hide show
  1. package/package.json +30 -10
  2. package/src/i18n/de.json +194 -0
  3. package/src/i18n/es.json +194 -0
  4. package/src/i18n/fr.json +194 -0
  5. package/src/i18n/ja.json +194 -0
  6. package/src/i18n/nl.json +194 -0
  7. package/src/i18n/pt.json +194 -0
  8. package/src/i18n/ru.json +194 -0
  9. package/src/i18n/translation.json +194 -0
  10. package/src/i18n/vi.json +194 -0
  11. package/src/i18n/zh.json +194 -0
  12. package/src/index.js +6 -3
  13. package/src/index.js.map +1 -1
  14. package/src/lib/actions/create-destination.js.map +1 -1
  15. package/src/lib/actions/create-hub.js.map +1 -1
  16. package/src/lib/actions/create-recipient.js +1 -1
  17. package/src/lib/actions/create-recipient.js.map +1 -1
  18. package/src/lib/actions/create-task.js +1 -1
  19. package/src/lib/actions/create-task.js.map +1 -1
  20. package/src/lib/actions/update-recipient.js +1 -1
  21. package/src/lib/actions/update-recipient.js.map +1 -1
  22. package/src/lib/common/index.js +11 -11
  23. package/src/lib/common/index.js.map +1 -1
  24. package/src/lib/triggers/auto-dispatch-completed.js +6 -5
  25. package/src/lib/triggers/auto-dispatch-completed.js.map +1 -1
  26. package/src/lib/triggers/sms-recipient-opt-out.js +4 -3
  27. package/src/lib/triggers/sms-recipient-opt-out.js.map +1 -1
  28. package/src/lib/triggers/sms-recipient-response-missed.js +4 -3
  29. package/src/lib/triggers/sms-recipient-response-missed.js.map +1 -1
  30. package/src/lib/triggers/task-arrival.js +4 -3
  31. package/src/lib/triggers/task-arrival.js.map +1 -1
  32. package/src/lib/triggers/task-assigned.js +4 -3
  33. package/src/lib/triggers/task-assigned.js.map +1 -1
  34. package/src/lib/triggers/task-cloned.js +4 -3
  35. package/src/lib/triggers/task-cloned.js.map +1 -1
  36. package/src/lib/triggers/task-completed.js +4 -3
  37. package/src/lib/triggers/task-completed.js.map +1 -1
  38. package/src/lib/triggers/task-created.js +4 -3
  39. package/src/lib/triggers/task-created.js.map +1 -1
  40. package/src/lib/triggers/task-delayed.js +4 -3
  41. package/src/lib/triggers/task-delayed.js.map +1 -1
  42. package/src/lib/triggers/task-deleted.js +4 -3
  43. package/src/lib/triggers/task-deleted.js.map +1 -1
  44. package/src/lib/triggers/task-eta.js +4 -3
  45. package/src/lib/triggers/task-eta.js.map +1 -1
  46. package/src/lib/triggers/task-failed.js +4 -3
  47. package/src/lib/triggers/task-failed.js.map +1 -1
  48. package/src/lib/triggers/task-started.js +4 -3
  49. package/src/lib/triggers/task-started.js.map +1 -1
  50. package/src/lib/triggers/task-unassigned.js +4 -3
  51. package/src/lib/triggers/task-unassigned.js.map +1 -1
  52. package/src/lib/triggers/task-updated.js +4 -3
  53. package/src/lib/triggers/task-updated.js.map +1 -1
  54. package/src/lib/triggers/worker-created.js +4 -3
  55. package/src/lib/triggers/worker-created.js.map +1 -1
  56. package/src/lib/triggers/worker-deleted.js +4 -3
  57. package/src/lib/triggers/worker-deleted.js.map +1 -1
  58. package/src/lib/triggers/worker-duty-change.js +4 -3
  59. package/src/lib/triggers/worker-duty-change.js.map +1 -1
@@ -0,0 +1,194 @@
1
+ {
2
+ "Onfleet": "Onfleet",
3
+ "Last mile delivery software": "Last mile delivery software",
4
+ "\nTo get an API key, follow the steps below:\n1. Go to settings -> API & Webhooks.\n2. Click the plus sign under API Keys.\n3. Enter API key name and click create key.\n4. Copy the generated key to the input below.\n": "\nTo get an API key, follow the steps below:\n1. Go to settings -> API & Webhooks.\n2. Click the plus sign under API Keys.\n3. Enter API key name and click create key.\n4. Copy the generated key to the input below.\n",
5
+ "Create Recipient": "Create Recipient",
6
+ "Update Recipient": "Update Recipient",
7
+ "Get Recipient": "Get Recipient",
8
+ "Create Task": "Create Task",
9
+ "Delete Task": "Delete Task",
10
+ "Force Complete Task": "Force Complete Task",
11
+ "Clone Task": "Clone Task",
12
+ "Update Task": "Update Task",
13
+ "Get Task": "Get Task",
14
+ "Get Tasks": "Get Tasks",
15
+ "Create Destination": "Create Destination",
16
+ "Get Destination": "Get Destination",
17
+ "Get Hubs": "Get Hubs",
18
+ "Create Hub": "Create Hub",
19
+ "Update Hub": "Update Hub",
20
+ "Get Organization": "Get Organization",
21
+ "Get Delegatee Details": "Get Delegatee Details",
22
+ "Create Administrator": "Create Administrator",
23
+ "Update Administrator": "Update Administrator",
24
+ "Get Administrators": "Get Administrators",
25
+ "Delete Administrator": "Delete Administrator",
26
+ "Create Worker": "Create Worker",
27
+ "Delete Worker": "Delete Worker",
28
+ "Get Worker": "Get Worker",
29
+ "Get Worker Schedule": "Get Worker Schedule",
30
+ "Update Worker": "Update Worker",
31
+ "Create Team": "Create Team",
32
+ "Delete Team": "Delete Team",
33
+ "Get Team": "Get Team",
34
+ "Get Teams": "Get Teams",
35
+ "Update Team": "Update Team",
36
+ "Get Container": "Get Container",
37
+ "Custom API Call": "Custom API Call",
38
+ "Creates a recipient": "Creates a recipient",
39
+ "Updates a recipient": "Updates a recipient",
40
+ "Gets a single recipient": "Gets a single recipient",
41
+ "Creates a task": "Creates a task",
42
+ "Deletes a task": "Deletes a task",
43
+ "Force completes a task": "Force completes a task",
44
+ "Clones a task": "Clones a task",
45
+ "Updates a task": "Updates a task",
46
+ "Get a specific task": "Get a specific task",
47
+ "Get many task": "Get many task",
48
+ "Create a new destination": "Create a new destination",
49
+ "Get a specific destination": "Get a specific destination",
50
+ "Get many hubs": "Get many hubs",
51
+ "Create a new hub": "Create a new hub",
52
+ "Update an existing hub": "Update an existing hub",
53
+ "Get your organization details": "Get your organization details",
54
+ "Get details of a connected organization": "Get details of a connected organization",
55
+ "Create a new administrator": "Create a new administrator",
56
+ "Update an existing administrator": "Update an existing administrator",
57
+ "Get many administrators": "Get many administrators",
58
+ "Delete an existing administrator": "Delete an existing administrator",
59
+ "Create a new worker": "Create a new worker",
60
+ "Delete an existing worker": "Delete an existing worker",
61
+ "Get an existing worker's details": "Get an existing worker's details",
62
+ "Get an existing worker's schedule": "Get an existing worker's schedule",
63
+ "Update an existing worker": "Update an existing worker",
64
+ "Create a new team": "Create a new team",
65
+ "Delete an existing team": "Delete an existing team",
66
+ "Gets an existing team": "Gets an existing team",
67
+ "Gets many existing team": "Gets many existing team",
68
+ "Update an existing team": "Update an existing team",
69
+ "Get a specific container": "Get a specific container",
70
+ "Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
71
+ "Name": "Name",
72
+ "Phone": "Phone",
73
+ "Notes": "Notes",
74
+ "Skip SMS Notifications": "Skip SMS Notifications",
75
+ "Skip Phone Number Validation": "Skip Phone Number Validation",
76
+ "Use Long Code for Text - Canadian Organizations Only": "Use Long Code for Text - Canadian Organizations Only",
77
+ "Recipient ID": "Recipient ID",
78
+ "Merchant ID": "Merchant ID",
79
+ "Executor ID": "Executor ID",
80
+ "Destination": "Destination",
81
+ "Unparsed Destination": "Unparsed Destination",
82
+ "Use Recipient ID": "Use Recipient ID",
83
+ "Complete After": "Complete After",
84
+ "Complete Before": "Complete Before",
85
+ "Pickup": "Pickup",
86
+ "Quantity": "Quantity",
87
+ "Recipient Name Override": "Recipient Name Override",
88
+ "Recipient Notes Override": "Recipient Notes Override",
89
+ "Recipient Skip SMS Override": "Recipient Skip SMS Override",
90
+ "Service Time": "Service Time",
91
+ "Task ID": "Task ID",
92
+ "Complete as Success": "Complete as Success",
93
+ "From": "From",
94
+ "To": "To",
95
+ "State": "State",
96
+ "Destination ID": "Destination ID",
97
+ "Teams": "Teams",
98
+ "Hub": "Hub",
99
+ "Organization ID": "Organization ID",
100
+ "Email": "Email",
101
+ "Phone Number": "Phone Number",
102
+ "Read Only": "Read Only",
103
+ "Administrator": "Administrator",
104
+ "Capacity": "Capacity",
105
+ "Display Name": "Display Name",
106
+ "Worker": "Worker",
107
+ "Workers": "Workers",
108
+ "Managers": "Managers",
109
+ "Enable Self Assignment": "Enable Self Assignment",
110
+ "Team": "Team",
111
+ "Container Type": "Container Type",
112
+ "Container ID": "Container ID",
113
+ "Method": "Method",
114
+ "Headers": "Headers",
115
+ "Query Parameters": "Query Parameters",
116
+ "Body": "Body",
117
+ "No Error on Failure": "No Error on Failure",
118
+ "Timeout (in seconds)": "Timeout (in seconds)",
119
+ "The recipient's full name": "The recipient's full name",
120
+ "A unique, valid phone number as per the organization's country if there's no leading + sign. If a phone number has a leading + sign, it will disregard the organization's country setting.": "A unique, valid phone number as per the organization's country if there's no leading + sign. If a phone number has a leading + sign, it will disregard the organization's country setting.",
121
+ "Checking this option will default the Onfleet system to use a toll-free long code number for SMS communication.": "Checking this option will default the Onfleet system to use a toll-free long code number for SMS communication.",
122
+ "The ID of the recipient you want to update": "The ID of the recipient you want to update",
123
+ "The recipient's ID": "The recipient's ID",
124
+ "ID of the organization that will be displayed on the task": "ID of the organization that will be displayed on the task",
125
+ "ID of the organization that will be executing the task": "ID of the organization that will be executing the task",
126
+ "The task destination": "The task destination",
127
+ "Check this box if the destination is a single unparsed string": "Check this box if the destination is a single unparsed string",
128
+ "Check this box if you want to use an ID for the recipient": "Check this box if you want to use an ID for the recipient",
129
+ "The earliest time the task should be completed": "The earliest time the task should be completed",
130
+ "The latest time the task should be completed": "The latest time the task should be completed",
131
+ "Whether the task is pickup": "Whether the task is pickup",
132
+ "The number of units to be dropped off": "The number of units to be dropped off",
133
+ "Override the recipient name for this task only": "Override the recipient name for this task only",
134
+ "Override the recipient notes for this task only": "Override the recipient notes for this task only",
135
+ "Override the recipient skip SMS option for this task only": "Override the recipient skip SMS option for this task only",
136
+ "The number of minutes to be spent by the worker on arrival at this task's destination": "The number of minutes to be spent by the worker on arrival at this task's destination",
137
+ "The ID of the task you want to delete": "The ID of the task you want to delete",
138
+ "The ID of the task you want to complete": "The ID of the task you want to complete",
139
+ "Whether to complete the task as a success or not": "Whether to complete the task as a success or not",
140
+ "ID of the task you want to clone": "ID of the task you want to clone",
141
+ "ID of the task you want to update": "ID of the task you want to update",
142
+ "The ID of the destination you want to delete": "The ID of the destination you want to delete",
143
+ "Name of the hub": "Name of the hub",
144
+ "ID of the connected organization": "ID of the connected organization",
145
+ "Full name": "Full name",
146
+ "Whether this administrator can perform write operations.": "Whether this administrator can perform write operations.",
147
+ "Name of the worker": "Name of the worker",
148
+ "The maximum number of units this worker can carry": "The maximum number of units this worker can carry",
149
+ "Name of the team": "Name of the team",
150
+ "Allows Drivers to Self Assign Tasks that are in the Team unassigned container.": "Allows Drivers to Self Assign Tasks that are in the Team unassigned container.",
151
+ "Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
152
+ "GET": "GET",
153
+ "POST": "POST",
154
+ "PATCH": "PATCH",
155
+ "PUT": "PUT",
156
+ "DELETE": "DELETE",
157
+ "HEAD": "HEAD",
158
+ "Task Arrival": "Task Arrival",
159
+ "Task Assigned": "Task Assigned",
160
+ "Task Cloned": "Task Cloned",
161
+ "Task Completed": "Task Completed",
162
+ "Task Created": "Task Created",
163
+ "Task Delayed": "Task Delayed",
164
+ "Task Deleted": "Task Deleted",
165
+ "Task ETA": "Task ETA",
166
+ "Task Failed": "Task Failed",
167
+ "Task Started": "Task Started",
168
+ "Task Unassigned": "Task Unassigned",
169
+ "Task Updated": "Task Updated",
170
+ "Worker Created": "Worker Created",
171
+ "Worker Deleted": "Worker Deleted",
172
+ "Worker Duty Change": "Worker Duty Change",
173
+ "Auto Dispatch Completed": "Auto Dispatch Completed",
174
+ "SMS Recipient Opt Out": "SMS Recipient Opt Out",
175
+ "SMS Recipient Response Missed": "SMS Recipient Response Missed",
176
+ "Triggers when a task worker arriving at or closer than threshold value provided, in meters": "Triggers when a task worker arriving at or closer than threshold value provided, in meters",
177
+ "Triggers when a task is assigned": "Triggers when a task is assigned",
178
+ "Triggers when a task is cloned": "Triggers when a task is cloned",
179
+ "Triggers when a task is completed": "Triggers when a task is completed",
180
+ "Triggers when a task is created": "Triggers when a task is created",
181
+ "Triggers when a task is delayed": "Triggers when a task is delayed",
182
+ "Triggers when a task is deleted": "Triggers when a task is deleted",
183
+ "Triggers when a task worker ETA less than or equal to threshold value provided, in seconds": "Triggers when a task worker ETA less than or equal to threshold value provided, in seconds",
184
+ "Triggers when a task has failed": "Triggers when a task has failed",
185
+ "Triggers when a task is started": "Triggers when a task is started",
186
+ "Triggers when a task is unassigned": "Triggers when a task is unassigned",
187
+ "Triggers when a task is updated": "Triggers when a task is updated",
188
+ "Triggers when a worker is created": "Triggers when a worker is created",
189
+ "Triggers when a worker is deleted": "Triggers when a worker is deleted",
190
+ "Triggers when a worker status changes": "Triggers when a worker status changes",
191
+ "Triggers when team auto-dispatch calculation is completed": "Triggers when team auto-dispatch calculation is completed",
192
+ "Triggers when a recipient opts out of SMS notifications": "Triggers when a recipient opts out of SMS notifications",
193
+ "Triggers when a recipient responds to a notification via SMS, but the organization is unable to handle it at that time": "Triggers when a recipient responds to a notification via SMS, but the organization is unable to handle it at that time"
194
+ }
@@ -0,0 +1,194 @@
1
+ {
2
+ "Onfleet": "Onfleet",
3
+ "Last mile delivery software": "Last mile delivery software",
4
+ "\nTo get an API key, follow the steps below:\n1. Go to settings -> API & Webhooks.\n2. Click the plus sign under API Keys.\n3. Enter API key name and click create key.\n4. Copy the generated key to the input below.\n": "\nTo get an API key, follow the steps below:\n1. Go to settings -> API & Webhooks.\n2. Click the plus sign under API Keys.\n3. Enter API key name and click create key.\n4. Copy the generated key to the input below.\n",
5
+ "Create Recipient": "Create Recipient",
6
+ "Update Recipient": "Update Recipient",
7
+ "Get Recipient": "Get Recipient",
8
+ "Create Task": "Create Task",
9
+ "Delete Task": "Delete Task",
10
+ "Force Complete Task": "Force Complete Task",
11
+ "Clone Task": "Clone Task",
12
+ "Update Task": "Update Task",
13
+ "Get Task": "Get Task",
14
+ "Get Tasks": "Get Tasks",
15
+ "Create Destination": "Create Destination",
16
+ "Get Destination": "Get Destination",
17
+ "Get Hubs": "Get Hubs",
18
+ "Create Hub": "Create Hub",
19
+ "Update Hub": "Update Hub",
20
+ "Get Organization": "Get Organization",
21
+ "Get Delegatee Details": "Get Delegatee Details",
22
+ "Create Administrator": "Create Administrator",
23
+ "Update Administrator": "Update Administrator",
24
+ "Get Administrators": "Get Administrators",
25
+ "Delete Administrator": "Delete Administrator",
26
+ "Create Worker": "Create Worker",
27
+ "Delete Worker": "Delete Worker",
28
+ "Get Worker": "Get Worker",
29
+ "Get Worker Schedule": "Get Worker Schedule",
30
+ "Update Worker": "Update Worker",
31
+ "Create Team": "Create Team",
32
+ "Delete Team": "Delete Team",
33
+ "Get Team": "Get Team",
34
+ "Get Teams": "Get Teams",
35
+ "Update Team": "Update Team",
36
+ "Get Container": "Get Container",
37
+ "Custom API Call": "自定义 API 呼叫",
38
+ "Creates a recipient": "Creates a recipient",
39
+ "Updates a recipient": "Updates a recipient",
40
+ "Gets a single recipient": "Gets a single recipient",
41
+ "Creates a task": "Creates a task",
42
+ "Deletes a task": "Deletes a task",
43
+ "Force completes a task": "Force completes a task",
44
+ "Clones a task": "Clones a task",
45
+ "Updates a task": "Updates a task",
46
+ "Get a specific task": "Get a specific task",
47
+ "Get many task": "Get many task",
48
+ "Create a new destination": "Create a new destination",
49
+ "Get a specific destination": "Get a specific destination",
50
+ "Get many hubs": "Get many hubs",
51
+ "Create a new hub": "Create a new hub",
52
+ "Update an existing hub": "Update an existing hub",
53
+ "Get your organization details": "Get your organization details",
54
+ "Get details of a connected organization": "Get details of a connected organization",
55
+ "Create a new administrator": "Create a new administrator",
56
+ "Update an existing administrator": "Update an existing administrator",
57
+ "Get many administrators": "Get many administrators",
58
+ "Delete an existing administrator": "Delete an existing administrator",
59
+ "Create a new worker": "Create a new worker",
60
+ "Delete an existing worker": "Delete an existing worker",
61
+ "Get an existing worker's details": "Get an existing worker's details",
62
+ "Get an existing worker's schedule": "Get an existing worker's schedule",
63
+ "Update an existing worker": "Update an existing worker",
64
+ "Create a new team": "Create a new team",
65
+ "Delete an existing team": "Delete an existing team",
66
+ "Gets an existing team": "Gets an existing team",
67
+ "Gets many existing team": "Gets many existing team",
68
+ "Update an existing team": "Update an existing team",
69
+ "Get a specific container": "Get a specific container",
70
+ "Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
71
+ "Name": "名称",
72
+ "Phone": "Phone",
73
+ "Notes": "Notes",
74
+ "Skip SMS Notifications": "Skip SMS Notifications",
75
+ "Skip Phone Number Validation": "Skip Phone Number Validation",
76
+ "Use Long Code for Text - Canadian Organizations Only": "Use Long Code for Text - Canadian Organizations Only",
77
+ "Recipient ID": "Recipient ID",
78
+ "Merchant ID": "Merchant ID",
79
+ "Executor ID": "Executor ID",
80
+ "Destination": "Destination",
81
+ "Unparsed Destination": "Unparsed Destination",
82
+ "Use Recipient ID": "Use Recipient ID",
83
+ "Complete After": "Complete After",
84
+ "Complete Before": "Complete Before",
85
+ "Pickup": "Pickup",
86
+ "Quantity": "Quantity",
87
+ "Recipient Name Override": "Recipient Name Override",
88
+ "Recipient Notes Override": "Recipient Notes Override",
89
+ "Recipient Skip SMS Override": "Recipient Skip SMS Override",
90
+ "Service Time": "Service Time",
91
+ "Task ID": "Task ID",
92
+ "Complete as Success": "Complete as Success",
93
+ "From": "From",
94
+ "To": "To",
95
+ "State": "State",
96
+ "Destination ID": "Destination ID",
97
+ "Teams": "Teams",
98
+ "Hub": "Hub",
99
+ "Organization ID": "Organization ID",
100
+ "Email": "电子邮件地址",
101
+ "Phone Number": "Phone Number",
102
+ "Read Only": "Read Only",
103
+ "Administrator": "Administrator",
104
+ "Capacity": "Capacity",
105
+ "Display Name": "显示名称",
106
+ "Worker": "Worker",
107
+ "Workers": "A. 工 人",
108
+ "Managers": "Managers",
109
+ "Enable Self Assignment": "Enable Self Assignment",
110
+ "Team": "团队",
111
+ "Container Type": "Container Type",
112
+ "Container ID": "Container ID",
113
+ "Method": "方法",
114
+ "Headers": "信头",
115
+ "Query Parameters": "查询参数",
116
+ "Body": "正文内容",
117
+ "No Error on Failure": "失败时没有错误",
118
+ "Timeout (in seconds)": "超时(秒)",
119
+ "The recipient's full name": "The recipient's full name",
120
+ "A unique, valid phone number as per the organization's country if there's no leading + sign. If a phone number has a leading + sign, it will disregard the organization's country setting.": "A unique, valid phone number as per the organization's country if there's no leading + sign. If a phone number has a leading + sign, it will disregard the organization's country setting.",
121
+ "Checking this option will default the Onfleet system to use a toll-free long code number for SMS communication.": "Checking this option will default the Onfleet system to use a toll-free long code number for SMS communication.",
122
+ "The ID of the recipient you want to update": "The ID of the recipient you want to update",
123
+ "The recipient's ID": "The recipient's ID",
124
+ "ID of the organization that will be displayed on the task": "ID of the organization that will be displayed on the task",
125
+ "ID of the organization that will be executing the task": "ID of the organization that will be executing the task",
126
+ "The task destination": "The task destination",
127
+ "Check this box if the destination is a single unparsed string": "Check this box if the destination is a single unparsed string",
128
+ "Check this box if you want to use an ID for the recipient": "Check this box if you want to use an ID for the recipient",
129
+ "The earliest time the task should be completed": "The earliest time the task should be completed",
130
+ "The latest time the task should be completed": "The latest time the task should be completed",
131
+ "Whether the task is pickup": "Whether the task is pickup",
132
+ "The number of units to be dropped off": "The number of units to be dropped off",
133
+ "Override the recipient name for this task only": "Override the recipient name for this task only",
134
+ "Override the recipient notes for this task only": "Override the recipient notes for this task only",
135
+ "Override the recipient skip SMS option for this task only": "Override the recipient skip SMS option for this task only",
136
+ "The number of minutes to be spent by the worker on arrival at this task's destination": "The number of minutes to be spent by the worker on arrival at this task's destination",
137
+ "The ID of the task you want to delete": "The ID of the task you want to delete",
138
+ "The ID of the task you want to complete": "The ID of the task you want to complete",
139
+ "Whether to complete the task as a success or not": "Whether to complete the task as a success or not",
140
+ "ID of the task you want to clone": "ID of the task you want to clone",
141
+ "ID of the task you want to update": "ID of the task you want to update",
142
+ "The ID of the destination you want to delete": "The ID of the destination you want to delete",
143
+ "Name of the hub": "Name of the hub",
144
+ "ID of the connected organization": "ID of the connected organization",
145
+ "Full name": "Full name",
146
+ "Whether this administrator can perform write operations.": "Whether this administrator can perform write operations.",
147
+ "Name of the worker": "Name of the worker",
148
+ "The maximum number of units this worker can carry": "The maximum number of units this worker can carry",
149
+ "Name of the team": "Name of the team",
150
+ "Allows Drivers to Self Assign Tasks that are in the Team unassigned container.": "Allows Drivers to Self Assign Tasks that are in the Team unassigned container.",
151
+ "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
152
+ "GET": "获取",
153
+ "POST": "帖子",
154
+ "PATCH": "PATCH",
155
+ "PUT": "弹出",
156
+ "DELETE": "删除",
157
+ "HEAD": "黑色",
158
+ "Task Arrival": "Task Arrival",
159
+ "Task Assigned": "Task Assigned",
160
+ "Task Cloned": "Task Cloned",
161
+ "Task Completed": "Task Completed",
162
+ "Task Created": "Task Created",
163
+ "Task Delayed": "Task Delayed",
164
+ "Task Deleted": "Task Deleted",
165
+ "Task ETA": "Task ETA",
166
+ "Task Failed": "Task Failed",
167
+ "Task Started": "Task Started",
168
+ "Task Unassigned": "Task Unassigned",
169
+ "Task Updated": "Task Updated",
170
+ "Worker Created": "Worker Created",
171
+ "Worker Deleted": "Worker Deleted",
172
+ "Worker Duty Change": "Worker Duty Change",
173
+ "Auto Dispatch Completed": "Auto Dispatch Completed",
174
+ "SMS Recipient Opt Out": "SMS Recipient Opt Out",
175
+ "SMS Recipient Response Missed": "SMS Recipient Response Missed",
176
+ "Triggers when a task worker arriving at or closer than threshold value provided, in meters": "Triggers when a task worker arriving at or closer than threshold value provided, in meters",
177
+ "Triggers when a task is assigned": "Triggers when a task is assigned",
178
+ "Triggers when a task is cloned": "Triggers when a task is cloned",
179
+ "Triggers when a task is completed": "Triggers when a task is completed",
180
+ "Triggers when a task is created": "Triggers when a task is created",
181
+ "Triggers when a task is delayed": "Triggers when a task is delayed",
182
+ "Triggers when a task is deleted": "Triggers when a task is deleted",
183
+ "Triggers when a task worker ETA less than or equal to threshold value provided, in seconds": "Triggers when a task worker ETA less than or equal to threshold value provided, in seconds",
184
+ "Triggers when a task has failed": "Triggers when a task has failed",
185
+ "Triggers when a task is started": "Triggers when a task is started",
186
+ "Triggers when a task is unassigned": "Triggers when a task is unassigned",
187
+ "Triggers when a task is updated": "Triggers when a task is updated",
188
+ "Triggers when a worker is created": "Triggers when a worker is created",
189
+ "Triggers when a worker is deleted": "Triggers when a worker is deleted",
190
+ "Triggers when a worker status changes": "Triggers when a worker status changes",
191
+ "Triggers when team auto-dispatch calculation is completed": "Triggers when team auto-dispatch calculation is completed",
192
+ "Triggers when a recipient opts out of SMS notifications": "Triggers when a recipient opts out of SMS notifications",
193
+ "Triggers when a recipient responds to a notification via SMS, but the organization is unable to handle it at that time": "Triggers when a recipient responds to a notification via SMS, but the organization is unable to handle it at that time"
194
+ }
package/src/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.onfleet = exports.onfleetAuth = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  const pieces_framework_1 = require("@activepieces/pieces-framework");
5
6
  const clone_task_1 = require("./lib/actions/clone-task");
6
7
  const complete_task_1 = require("./lib/actions/complete-task");
@@ -69,7 +70,7 @@ exports.onfleet = (0, pieces_framework_1.createPiece)({
69
70
  displayName: 'Onfleet',
70
71
  description: 'Last mile delivery software',
71
72
  auth: exports.onfleetAuth,
72
- minimumSupportedRelease: '0.5.0',
73
+ minimumSupportedRelease: '0.30.0',
73
74
  logoUrl: 'https://cdn.activepieces.com/pieces/onfleet.png',
74
75
  categories: [],
75
76
  authors: ["kishanprmr", "MoShizzle", "abuaboud"],
@@ -109,8 +110,10 @@ exports.onfleet = (0, pieces_framework_1.createPiece)({
109
110
  (0, pieces_common_1.createCustomApiCallAction)({
110
111
  baseUrl: () => 'https://onfleet.com/api/v2',
111
112
  auth: exports.onfleetAuth,
112
- authMapping: (auth) => ({
113
- Authorization: `Bearer ${auth}`,
113
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
114
+ return ({
115
+ Authorization: `Bearer ${auth}`,
116
+ });
114
117
  }),
115
118
  }),
116
119
  ],
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/onfleet/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AAExE,yDAAqD;AACrD,+DAA2D;AAC3D,6DAAyD;AACzD,yEAAqE;AACrE,yDAAqD;AACrD,qEAAiE;AACjE,2DAAuD;AACvD,2DAAuD;AACvD,+DAA2D;AAC3D,6DAAyD;AACzD,2DAAuD;AACvD,2DAAuD;AACvD,+DAA2D;AAC3D,yDAAqD;AACrD,+DAA2D;AAC3D,+EAA0E;AAC1E,mEAA+D;AAC/D,qDAAiD;AACjD,qEAAiE;AACjE,+DAA2D;AAC3D,qDAAiD;AACjD,uDAAmD;AACnD,qDAAiD;AACjD,uDAAmD;AACnD,yDAAqD;AACrD,2EAAsE;AACtE,6DAAyD;AACzD,yDAAqD;AACrD,qEAAiE;AACjE,2DAAuD;AACvD,2DAAuD;AACvD,+DAA2D;AAE3D,+DAAwE;AAExE,oFAA+E;AAC/E,gFAA0E;AAC1E,gGAA0F;AAC1F,8DAA0D;AAC1D,gEAA4D;AAC5D,4DAAwD;AACxD,kEAA8D;AAC9D,8DAA0D;AAC1D,8DAA0D;AAC1D,8DAA0D;AAC1D,sDAAkD;AAClD,4DAAwD;AACxD,8DAA0D;AAC1D,oEAAgE;AAChE,8DAA0D;AAC1D,kEAA8D;AAC9D,kEAA8D;AAC9D,0EAAqE;AAErE,MAAM,eAAe,GAAG;;;;;;CAMvB,CAAC;AACW,QAAA,WAAW,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC9C,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,eAAe;IAC5B,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,OAAO,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,6BAA6B;IAE1C,IAAI,EAAE,mBAAW;IACjB,uBAAuB,EAAE,OAAO;IAChC,OAAO,EAAE,iDAAiD;IAC1D,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,CAAC,YAAY,EAAC,WAAW,EAAC,UAAU,CAAC;IAC9C,OAAO,EAAE;QACP,kCAAe;QACf,kCAAe;QACf,4BAAY;QACZ,wBAAU;QACV,wBAAU;QACV,4BAAY;QACZ,sBAAS;QACT,wBAAU;QACV,kBAAO;QACP,oBAAQ;QACR,sCAAiB;QACjB,gCAAc;QACd,kBAAO;QACP,sBAAS;QACT,sBAAS;QACT,kCAAe;QACf,2CAAmB;QACnB,0BAAW;QACX,0BAAW;QACX,sBAAS;QACT,0BAAW;QACX,4BAAY;QACZ,4BAAY;QACZ,sBAAS;QACT,uCAAiB;QACjB,4BAAY;QACZ,wBAAU;QACV,wBAAU;QACV,kBAAO;QACP,oBAAQ;QACR,wBAAU;QACV,4BAAY;QACZ,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,4BAA4B;YAC3C,IAAI,EAAE,mBAAW;YACjB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACtB,aAAa,EAAE,UAAU,IAAI,EAAE;aAChC,CAAC;SACH,CAAC;KACH;IACD,QAAQ,EAAE;QACR,0BAAW;QACX,4BAAY;QACZ,wBAAU;QACV,8BAAa;QACb,0BAAW;QACX,0BAAW;QACX,0BAAW;QACX,kBAAO;QACP,wBAAU;QACV,0BAAW;QACX,gCAAc;QACd,0BAAW;QACX,8BAAa;QACb,8BAAa;QACb,qCAAgB;QAChB,+CAAqB;QACrB,0CAAkB;QAClB,0DAA0B;KAC3B;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/onfleet/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,yDAAqD;AACrD,+DAA2D;AAC3D,6DAAyD;AACzD,yEAAqE;AACrE,yDAAqD;AACrD,qEAAiE;AACjE,2DAAuD;AACvD,2DAAuD;AACvD,+DAA2D;AAC3D,6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c;QACd,kBAAO;QACP,sBAAS;QACT,sBAAS;QACT,kCAAe;QACf,2CAAmB;QACnB,0BAAW;QACX,0BAAW;QACX,sBAAS;QACT,0BAAW;QACX,4BAAY;QACZ,4BAAY;QACZ,sBAAS;QACT,uCAAiB;QACjB,4BAAY;QACZ,wBAAU;QACV,wBAAU;QACV,kBAAO;QACP,oBAAQ;QACR,wBAAU;QACV,4BAAY;QACZ,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,4BAA4B;YAC3C,IAAI,EAAE,mBAAW;YACjB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAU,IAAI,EAAE;iBAChC,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE;QACR,0BAAW;QACX,4BAAY;QACZ,wBAAU;QACV,8BAAa;QACb,0BAAW;QACX,0BAAW;QACX,0BAAW;QACX,kBAAO;QACP,wBAAU;QACV,0BAAW;QACX,gCAAc;QACd,0BAAW;QACX,8BAAa;QACb,8BAAa;QACb,qCAAgB;QAChB,+CAAqB;QACrB,0CAAkB;QAClB,0DAA0B;KAC3B;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-destination.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-destination.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAoC;AACpC,sCAAmC;AAEnC,iFAA4C;AAE/B,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE;QACL,WAAW,EAAE,eAAM,CAAC,WAAW;QAC/B,mBAAmB,EAAE,eAAM,CAAC,mBAAmB;QAC/C,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;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-destination.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-destination.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAoC;AACpC,sCAAmC;AAEnC,iFAA4C;AAE/B,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE;QACL,WAAW,EAAE,eAAM,CAAC,WAAW;QAC/B,mBAAmB,EAAE,eAAM,CAAC,mBAAmB;QAC/C,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,IAAI,sBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAE7C,IAAI,OAAO,CAAC;YACZ,IAAI,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAC;gBAC3C,OAAO,GAAG;oBACR,MAAM,EAAE,EAAE;oBACV,MAAM,EAAE,EAAE;oBACV,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,iBAAiB,CAAC;iBAC5D,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,GAAG;oBACR,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC;oBAChD,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC;oBAChD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC;oBACtD,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC;oBAC5C,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC;oBAClD,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;oBAC9C,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC;oBACxD,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC;iBAC7C,CAAC;YACJ,CAAC;YAED,OAAO,MAAM,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC;gBAC1C,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;aAChC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-hub.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-hub.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AACpC,sCAAmC;AAEnC,iFAA4C;AAE/B,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,eAAM,CAAC,WAAW;QAC/B,mBAAmB,EAAE,eAAM,CAAC,mBAAmB;QAC/C,KAAK,EAAE,eAAM,CAAC,KAAK;KACpB;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,IAAI,sBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAE7C,IAAI,OAAO,CAAC;YACZ,IAAI,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE;gBAC1C,OAAO,GAAG;oBACR,MAAM,EAAE,EAAE;oBACV,MAAM,EAAE,EAAE;oBACV,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,iBAAiB,CAAC;iBAC5D,CAAC;aACH;iBAAM;gBACL,OAAO,GAAG;oBACR,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC;oBAChD,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC;oBAChD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC;oBACtD,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC;oBAC5C,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC;oBAClD,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;oBAC9C,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC;oBACxD,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC;iBAC7C,CAAC;aACH;YAED,MAAM,OAAO,GAAQ;gBACnB,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;aAC9B,CAAC;YAEF,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE;gBAC5B,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC;aAC1C;YAED,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;KAAA;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"create-hub.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-hub.ts"],"names":[],"mappings":";;;;AAAA,qEAA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AAK,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;oBAC9C,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC;oBACxD,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC;iBAC7C,CAAC;YACJ,CAAC;YAED,MAAM,OAAO,GAAQ;gBACnB,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;aAC9B,CAAC;YAEF,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;gBAC7B,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC;YAC3C,CAAC;YAED,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -43,8 +43,8 @@ exports.createRecipient = (0, pieces_framework_1.createAction)({
43
43
  }),
44
44
  },
45
45
  run(context) {
46
- var _a;
47
46
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
+ var _a;
48
48
  const onfleetApi = new node_onfleet_1.default(context.auth);
49
49
  const recipient = {
50
50
  name: context.propsValue['name'],
@@ -1 +1 @@
1
- {"version":3,"file":"create-recipient.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-recipient.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AAEpC,iFAA4C;AAE/B,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,2BAA2B;YACxC,QAA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U,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;;KACtD;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"create-recipient.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-recipient.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AAEpC,iFAA4C;AAE/B,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EACT,4LAA4L;YAC9L,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,oBAAoB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtC,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,yBAAyB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC3C,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,kBAAkB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACpC,WAAW,EAAE,sDAAsD;YACnE,WAAW,EACT,iHAAiH;YACnH,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACpB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,UAAU,GAAG,IAAI,sBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC7C,MAAM,SAAS,GAAQ;gBACrB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;gBAChC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC;gBAClC,KAAK,EAAE,MAAA,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,mCAAI,SAAS;gBAC/C,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;gBAChE,yBAAyB,EACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;gBACjD,kBAAkB,EAAE,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;aAC7D,CAAC;YAEF,OAAO,MAAM,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvD,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -30,7 +30,7 @@ exports.createTask = (0, pieces_framework_1.createAction)({
30
30
  description: 'The task destination',
31
31
  required: true,
32
32
  refreshers: ['useRecipientID'],
33
- props: ({ useRecipientID }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
33
+ props: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ useRecipientID }) {
34
34
  let fields = {};
35
35
  if (useRecipientID) {
36
36
  fields = {
@@ -1 +1 @@
1
- {"version":3,"file":"create-task.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-task.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAoC;AACpC,sCAAmC;AAEnC,iFAA4C;AAC5C,0DAA0B;AAEb,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3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AC,WAAW;gBAC3C,aAAa,EAAE,aAAa;gBAC5B,cAAc,EAAE,cAAc;aAC/B,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"create-task.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-task.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAoC;AACpC,sCAAmC;AAEnC,iFAA4C;AAC5C,0DAA0B;AAEb,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,2DAA2D;YACxE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,WAAW,EAAE,eAAM,CAAC,WAAW;QAC/B,mBAAmB,EAAE,eAAM,CAAC,mBAAmB;QAC/C,SAAS,EAAE,2BAAQ,CAAC,iBAAiB,CAAC;YACpC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,KAAK,EAAE,KAA2B,EAAE,oDAAtB,EAAE,cAAc,EAAE;gBAC9B,IAAI,MAAM,GAAsB,EAAE,CAAC;gBACnC,IAAI,cAAc,EAAE,CAAC;oBACnB,MAAM,GAAG;wBACP,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;4BACrB,WAAW,EAAE,cAAc;4BAC3B,QAAQ,EAAE,IAAI;yBACf,CAAC;qBACH,C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cAAc,CAAC,CAAC,OAAO,EAAE;gBACpD,CAAC,CAAC,SAAS,CAAC;YAEd,OAAO,MAAM,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC;gBACnC,WAAW,EAAE;oBACX,OAAO,EAAE,OAAO;iBACjB;gBACD,UAAU,EAAE,UAAU;gBACtB,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBACrC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBACrC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;gBACzC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBACrC,aAAa,EAAE,OAAO,CAAC,UAAU,CAAC,aAAa;gBAC/C,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,cAAc;gBACjD,6BAA6B,EAC3B,OAAO,CAAC,UAAU,CAAC,6BAA6B;gBAClD,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;gBAC3C,aAAa,EAAE,aAAa;gBAC5B,cAAc,EAAE,cAAc;aAC/B,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -31,8 +31,8 @@ exports.updateRecipient = (0, pieces_framework_1.createAction)({
31
31
  }),
32
32
  },
33
33
  run(context) {
34
- var _a, _b, _c;
35
34
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
+ var _a, _b, _c;
36
36
  const onfleetApi = new node_onfleet_1.default(context.auth);
37
37
  const recipient = {
38
38
  name: (_a = context.propsValue['name']) !== null && _a !== void 0 ? _a : undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"update-recipient.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/update-recipient.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AAEpC,iFAA4C;AAE/B,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE;QACL,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,oBAAoB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtC,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,UAAU,GAAG,IAAI,sBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC7C,MAAM,SAAS,GAAQ;gBACrB,IAAI,EAAE,MAAA,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,mCAAI,SAAS;gBAC7C,KAAK,EAAE,MAAA,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,mCAAI,SAAS;gBAC/C,oBAAoB,EAClB,MAAA,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,mCAAI,SAAS;aAC1D,CAAC;YAEF,OAAO,MAAM,UAAU,CAAC,UAAU,CAAC,MAAM,CACvC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EACxB,SAAS,CACV,CAAC;;KACH;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"update-recipient.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/update-recipient.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AAEpC,iFAA4C;AAE/B,QAAA,eAAe,G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