@activepieces/piece-onfleet 0.1.4 → 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.
- package/package.json +7 -25
- package/src/index.js +578 -136
- package/README.md +0 -7
- package/src/index.d.ts +0 -2
- package/src/index.js.map +0 -1
- package/src/lib/actions/clone-task.d.ts +0 -3
- package/src/lib/actions/clone-task.js +0 -27
- package/src/lib/actions/clone-task.js.map +0 -1
- package/src/lib/actions/complete-task.d.ts +0 -5
- package/src/lib/actions/complete-task.js +0 -42
- package/src/lib/actions/complete-task.js.map +0 -1
- package/src/lib/actions/create-admin.d.ts +0 -6
- package/src/lib/actions/create-admin.js +0 -45
- package/src/lib/actions/create-admin.js.map +0 -1
- package/src/lib/actions/create-destination.d.ts +0 -5
- package/src/lib/actions/create-destination.js +0 -54
- package/src/lib/actions/create-destination.js.map +0 -1
- package/src/lib/actions/create-hub.d.ts +0 -6
- package/src/lib/actions/create-hub.js +0 -60
- package/src/lib/actions/create-hub.js.map +0 -1
- package/src/lib/actions/create-recipient.d.ts +0 -8
- package/src/lib/actions/create-recipient.js +0 -61
- package/src/lib/actions/create-recipient.js.map +0 -1
- package/src/lib/actions/create-task.d.ts +0 -16
- package/src/lib/actions/create-task.js +0 -181
- package/src/lib/actions/create-task.js.map +0 -1
- package/src/lib/actions/create-team.d.ts +0 -7
- package/src/lib/actions/create-team.js +0 -42
- package/src/lib/actions/create-team.js.map +0 -1
- package/src/lib/actions/create-worker.d.ts +0 -7
- package/src/lib/actions/create-worker.js +0 -48
- package/src/lib/actions/create-worker.js.map +0 -1
- package/src/lib/actions/delete-admin.d.ts +0 -3
- package/src/lib/actions/delete-admin.js +0 -24
- package/src/lib/actions/delete-admin.js.map +0 -1
- package/src/lib/actions/delete-task.d.ts +0 -3
- package/src/lib/actions/delete-task.js +0 -27
- package/src/lib/actions/delete-task.js.map +0 -1
- package/src/lib/actions/delete-team.d.ts +0 -3
- package/src/lib/actions/delete-team.js +0 -24
- package/src/lib/actions/delete-team.js.map +0 -1
- package/src/lib/actions/delete-worker.d.ts +0 -3
- package/src/lib/actions/delete-worker.js +0 -24
- package/src/lib/actions/delete-worker.js.map +0 -1
- package/src/lib/actions/get-admins.d.ts +0 -1
- package/src/lib/actions/get-admins.js +0 -20
- package/src/lib/actions/get-admins.js.map +0 -1
- package/src/lib/actions/get-container.d.ts +0 -4
- package/src/lib/actions/get-container.js +0 -50
- package/src/lib/actions/get-container.js.map +0 -1
- package/src/lib/actions/get-delegatee-details.d.ts +0 -3
- package/src/lib/actions/get-delegatee-details.js +0 -27
- package/src/lib/actions/get-delegatee-details.js.map +0 -1
- package/src/lib/actions/get-destination.d.ts +0 -3
- package/src/lib/actions/get-destination.js +0 -27
- package/src/lib/actions/get-destination.js.map +0 -1
- package/src/lib/actions/get-hubs.d.ts +0 -1
- package/src/lib/actions/get-hubs.js +0 -21
- package/src/lib/actions/get-hubs.js.map +0 -1
- package/src/lib/actions/get-organization.d.ts +0 -1
- package/src/lib/actions/get-organization.js +0 -21
- package/src/lib/actions/get-organization.js.map +0 -1
- package/src/lib/actions/get-recipient.d.ts +0 -3
- package/src/lib/actions/get-recipient.js +0 -27
- package/src/lib/actions/get-recipient.js.map +0 -1
- package/src/lib/actions/get-task.d.ts +0 -3
- package/src/lib/actions/get-task.js +0 -27
- package/src/lib/actions/get-task.js.map +0 -1
- package/src/lib/actions/get-tasks.d.ts +0 -5
- package/src/lib/actions/get-tasks.js +0 -73
- package/src/lib/actions/get-tasks.js.map +0 -1
- package/src/lib/actions/get-team.d.ts +0 -3
- package/src/lib/actions/get-team.js +0 -24
- package/src/lib/actions/get-team.js.map +0 -1
- package/src/lib/actions/get-teams.d.ts +0 -1
- package/src/lib/actions/get-teams.js +0 -21
- package/src/lib/actions/get-teams.js.map +0 -1
- package/src/lib/actions/get-worker-schedule.d.ts +0 -3
- package/src/lib/actions/get-worker-schedule.js +0 -24
- package/src/lib/actions/get-worker-schedule.js.map +0 -1
- package/src/lib/actions/get-worker.d.ts +0 -3
- package/src/lib/actions/get-worker.js +0 -24
- package/src/lib/actions/get-worker.js.map +0 -1
- package/src/lib/actions/update-admin.d.ts +0 -4
- package/src/lib/actions/update-admin.js +0 -32
- package/src/lib/actions/update-admin.js.map +0 -1
- package/src/lib/actions/update-hub.d.ts +0 -5
- package/src/lib/actions/update-hub.js +0 -35
- package/src/lib/actions/update-hub.js.map +0 -1
- package/src/lib/actions/update-recipient.d.ts +0 -6
- package/src/lib/actions/update-recipient.js +0 -46
- package/src/lib/actions/update-recipient.js.map +0 -1
- package/src/lib/actions/update-task.d.ts +0 -10
- package/src/lib/actions/update-task.js +0 -77
- package/src/lib/actions/update-task.js.map +0 -1
- package/src/lib/actions/update-team.d.ts +0 -8
- package/src/lib/actions/update-team.js +0 -46
- package/src/lib/actions/update-team.js.map +0 -1
- package/src/lib/actions/update-worker.d.ts +0 -7
- package/src/lib/actions/update-worker.js +0 -48
- package/src/lib/actions/update-worker.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -43
- package/src/lib/common/index.js +0 -409
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/triggers/auto-dispatch-completed.d.ts +0 -2
- package/src/lib/triggers/auto-dispatch-completed.js +0 -178
- package/src/lib/triggers/auto-dispatch-completed.js.map +0 -1
- package/src/lib/triggers/sms-recipient-opt-out.d.ts +0 -2
- package/src/lib/triggers/sms-recipient-opt-out.js +0 -72
- package/src/lib/triggers/sms-recipient-opt-out.js.map +0 -1
- package/src/lib/triggers/sms-recipient-response-missed.d.ts +0 -2
- package/src/lib/triggers/sms-recipient-response-missed.js +0 -56
- package/src/lib/triggers/sms-recipient-response-missed.js.map +0 -1
- package/src/lib/triggers/task-arrival.d.ts +0 -2
- package/src/lib/triggers/task-arrival.js +0 -144
- package/src/lib/triggers/task-arrival.js.map +0 -1
- package/src/lib/triggers/task-assigned.d.ts +0 -2
- package/src/lib/triggers/task-assigned.js +0 -184
- package/src/lib/triggers/task-assigned.js.map +0 -1
- package/src/lib/triggers/task-cloned.d.ts +0 -2
- package/src/lib/triggers/task-cloned.js +0 -149
- package/src/lib/triggers/task-cloned.js.map +0 -1
- package/src/lib/triggers/task-completed.d.ts +0 -2
- package/src/lib/triggers/task-completed.js +0 -155
- package/src/lib/triggers/task-completed.js.map +0 -1
- package/src/lib/triggers/task-created.d.ts +0 -2
- package/src/lib/triggers/task-created.js +0 -148
- package/src/lib/triggers/task-created.js.map +0 -1
- package/src/lib/triggers/task-delayed.d.ts +0 -2
- package/src/lib/triggers/task-delayed.js +0 -145
- package/src/lib/triggers/task-delayed.js.map +0 -1
- package/src/lib/triggers/task-deleted.d.ts +0 -2
- package/src/lib/triggers/task-deleted.js +0 -146
- package/src/lib/triggers/task-deleted.js.map +0 -1
- package/src/lib/triggers/task-eta.d.ts +0 -2
- package/src/lib/triggers/task-eta.js +0 -144
- package/src/lib/triggers/task-eta.js.map +0 -1
- package/src/lib/triggers/task-failed.d.ts +0 -2
- package/src/lib/triggers/task-failed.js +0 -154
- package/src/lib/triggers/task-failed.js.map +0 -1
- package/src/lib/triggers/task-started.d.ts +0 -2
- package/src/lib/triggers/task-started.js +0 -147
- package/src/lib/triggers/task-started.js.map +0 -1
- package/src/lib/triggers/task-unassigned.d.ts +0 -2
- package/src/lib/triggers/task-unassigned.js +0 -148
- package/src/lib/triggers/task-unassigned.js.map +0 -1
- package/src/lib/triggers/task-updated.d.ts +0 -2
- package/src/lib/triggers/task-updated.js +0 -174
- package/src/lib/triggers/task-updated.js.map +0 -1
- package/src/lib/triggers/worker-created.d.ts +0 -2
- package/src/lib/triggers/worker-created.js +0 -97
- package/src/lib/triggers/worker-created.js.map +0 -1
- package/src/lib/triggers/worker-deleted.d.ts +0 -2
- package/src/lib/triggers/worker-deleted.js +0 -97
- package/src/lib/triggers/worker-deleted.js.map +0 -1
- package/src/lib/triggers/worker-duty-change.d.ts +0 -2
- package/src/lib/triggers/worker-duty-change.js +0 -103
- package/src/lib/triggers/worker-duty-change.js.map +0 -1
package/README.md
DELETED
package/src/index.d.ts
DELETED
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,QAAQ;IACjC,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,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,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cloneTask = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const node_onfleet_1 = tslib_1.__importDefault(require("@onfleet/node-onfleet"));
|
|
8
|
-
exports.cloneTask = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: __1.onfleetAuth,
|
|
10
|
-
name: 'clone_task',
|
|
11
|
-
displayName: 'Clone Task',
|
|
12
|
-
description: 'Clones a task',
|
|
13
|
-
props: {
|
|
14
|
-
task: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Task ID',
|
|
16
|
-
description: 'ID of the task you want to clone',
|
|
17
|
-
required: true,
|
|
18
|
-
}),
|
|
19
|
-
},
|
|
20
|
-
run(context) {
|
|
21
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const onfleetApi = new node_onfleet_1.default(context.auth.secret_text);
|
|
23
|
-
return yield onfleetApi.tasks.clone(context.propsValue.task);
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=clone-task.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clone-task.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/clone-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AAEpC,iFAA4C;AAE/B,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,eAAe;IAC5B,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,IAAI,sBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAEzD,OAAO,MAAM,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const completeTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
task: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
success: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
4
|
-
notes: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
}>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.completeTask = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const node_onfleet_1 = tslib_1.__importDefault(require("@onfleet/node-onfleet"));
|
|
8
|
-
exports.completeTask = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: __1.onfleetAuth,
|
|
10
|
-
name: 'complete_task',
|
|
11
|
-
displayName: 'Force Complete Task',
|
|
12
|
-
description: 'Force completes a task',
|
|
13
|
-
props: {
|
|
14
|
-
task: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Task ID',
|
|
16
|
-
description: 'The ID of the task you want to complete',
|
|
17
|
-
required: true,
|
|
18
|
-
}),
|
|
19
|
-
success: pieces_framework_1.Property.Checkbox({
|
|
20
|
-
displayName: 'Complete as Success',
|
|
21
|
-
description: 'Whether to complete the task as a success or not',
|
|
22
|
-
required: true,
|
|
23
|
-
defaultValue: true,
|
|
24
|
-
}),
|
|
25
|
-
notes: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Notes',
|
|
27
|
-
required: false,
|
|
28
|
-
}),
|
|
29
|
-
},
|
|
30
|
-
run(context) {
|
|
31
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
const onfleetApi = new node_onfleet_1.default(context.auth.secret_text);
|
|
33
|
-
return yield onfleetApi.tasks.forceComplete(context.propsValue.task, {
|
|
34
|
-
completionDetails: {
|
|
35
|
-
success: context.propsValue.success,
|
|
36
|
-
notes: context.propsValue.notes,
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=complete-task.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"complete-task.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/complete-task.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AAEpC,iFAA4C;AAE/B,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,kDAAkD;YAC/D,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;SACnB,CAAC;QACF,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,WAAW,CAAC,CAAC;YAEzD,OAAO,MAAM,UAAU,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE;gBACnE,iBAAiB,EAAE;oBACjB,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;oBACnC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;iBAChC;aACF,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const createAdmin: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
isReadOnly: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
6
|
-
}>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createAdmin = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const node_onfleet_1 = tslib_1.__importDefault(require("@onfleet/node-onfleet"));
|
|
8
|
-
exports.createAdmin = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: __1.onfleetAuth,
|
|
10
|
-
name: 'create_admin',
|
|
11
|
-
displayName: 'Create Administrator',
|
|
12
|
-
description: 'Create a new administrator',
|
|
13
|
-
props: {
|
|
14
|
-
name: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Name',
|
|
16
|
-
description: 'Full name',
|
|
17
|
-
required: true,
|
|
18
|
-
}),
|
|
19
|
-
email: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'Email',
|
|
21
|
-
required: true,
|
|
22
|
-
}),
|
|
23
|
-
phone: pieces_framework_1.Property.ShortText({
|
|
24
|
-
displayName: 'Phone Number',
|
|
25
|
-
required: false,
|
|
26
|
-
}),
|
|
27
|
-
isReadOnly: pieces_framework_1.Property.Checkbox({
|
|
28
|
-
displayName: 'Read Only',
|
|
29
|
-
description: 'Whether this administrator can perform write operations.',
|
|
30
|
-
required: false,
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
run(context) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
const onfleetApi = new node_onfleet_1.default(context.auth.secret_text);
|
|
36
|
-
return yield onfleetApi.administrators.create({
|
|
37
|
-
name: context.propsValue.name,
|
|
38
|
-
email: context.propsValue.email,
|
|
39
|
-
phone: context.propsValue.phone,
|
|
40
|
-
isReadOnly: context.propsValue.isReadOnly,
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=create-admin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-admin.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/onfleet/src/lib/actions/create-admin.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AAGpC,iFAA4C;AAE/B,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,4BAA4B;IACzC,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,UAAU,GAAG,IAAI,sBAAO,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAEzD,OAAO,MAAM,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC;gBAC5C,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;gBAC7B,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;gBAC/B,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;gBAC/B,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;aAC1C,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const createDestination: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
destination: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
unparsedDestination: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
4
|
-
notes: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
}>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createDestination = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const node_onfleet_1 = tslib_1.__importDefault(require("@onfleet/node-onfleet"));
|
|
9
|
-
exports.createDestination = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: __1.onfleetAuth,
|
|
11
|
-
name: 'create_destination',
|
|
12
|
-
displayName: 'Create Destination',
|
|
13
|
-
description: 'Create a new destination',
|
|
14
|
-
props: {
|
|
15
|
-
destination: common_1.common.destination,
|
|
16
|
-
unparsedDestination: common_1.common.unparsedDestination,
|
|
17
|
-
notes: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Notes',
|
|
19
|
-
required: false,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(context) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const onfleetApi = new node_onfleet_1.default(context.auth.secret_text);
|
|
25
|
-
let address;
|
|
26
|
-
if (context.propsValue.unparsedDestination) {
|
|
27
|
-
address = {
|
|
28
|
-
number: '',
|
|
29
|
-
street: '',
|
|
30
|
-
city: '',
|
|
31
|
-
country: '',
|
|
32
|
-
unparsed: context.propsValue.destination['unparsedAddress'],
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
address = {
|
|
37
|
-
number: context.propsValue.destination['number'],
|
|
38
|
-
street: context.propsValue.destination['street'],
|
|
39
|
-
apartment: context.propsValue.destination['apartment'],
|
|
40
|
-
city: context.propsValue.destination['city'],
|
|
41
|
-
country: context.propsValue.destination['country'],
|
|
42
|
-
state: context.propsValue.destination['state'],
|
|
43
|
-
postalCode: context.propsValue.destination['postalCode'],
|
|
44
|
-
name: context.propsValue.destination['name'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
return yield onfleetApi.destinations.create({
|
|
48
|
-
address: address,
|
|
49
|
-
notes: context.propsValue.notes,
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=create-destination.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;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,WAAW,CAAC,CAAC;YAEzD,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,6 +0,0 @@
|
|
|
1
|
-
export declare const createHub: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
destination: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
|
-
unparsedDestination: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
5
|
-
teams: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<unknown, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
|
-
}>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createHub = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const node_onfleet_1 = tslib_1.__importDefault(require("@onfleet/node-onfleet"));
|
|
9
|
-
exports.createHub = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: __1.onfleetAuth,
|
|
11
|
-
name: 'create_hub',
|
|
12
|
-
displayName: 'Create Hub',
|
|
13
|
-
description: 'Create a new hub',
|
|
14
|
-
props: {
|
|
15
|
-
name: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Name',
|
|
17
|
-
description: 'Name of the hub',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
destination: common_1.common.destination,
|
|
21
|
-
unparsedDestination: common_1.common.unparsedDestination,
|
|
22
|
-
teams: common_1.common.teams,
|
|
23
|
-
},
|
|
24
|
-
run(context) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
const onfleetApi = new node_onfleet_1.default(context.auth.secret_text);
|
|
27
|
-
let address;
|
|
28
|
-
if (context.propsValue.unparsedDestination) {
|
|
29
|
-
address = {
|
|
30
|
-
number: '',
|
|
31
|
-
street: '',
|
|
32
|
-
city: '',
|
|
33
|
-
country: '',
|
|
34
|
-
unparsed: context.propsValue.destination['unparsedAddress'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
address = {
|
|
39
|
-
number: context.propsValue.destination['number'],
|
|
40
|
-
street: context.propsValue.destination['street'],
|
|
41
|
-
apartment: context.propsValue.destination['apartment'],
|
|
42
|
-
city: context.propsValue.destination['city'],
|
|
43
|
-
country: context.propsValue.destination['country'],
|
|
44
|
-
state: context.propsValue.destination['state'],
|
|
45
|
-
postalCode: context.propsValue.destination['postalCode'],
|
|
46
|
-
name: context.propsValue.destination['name'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
const options = {
|
|
50
|
-
address: address,
|
|
51
|
-
name: context.propsValue.name,
|
|
52
|
-
};
|
|
53
|
-
if (context.propsValue.teams) {
|
|
54
|
-
options.teams = context.propsValue.teams;
|
|
55
|
-
}
|
|
56
|
-
return yield onfleetApi.hubs.create(options);
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=create-hub.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,WAAW,CAAC,CAAC;YAEzD,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,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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const createRecipient: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
phone: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
notes: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
skipSMSNotifications: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
6
|
-
skipPhoneNumberValidation: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
7
|
-
useLongCodeForText: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
-
}>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createRecipient = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const node_onfleet_1 = tslib_1.__importDefault(require("@onfleet/node-onfleet"));
|
|
8
|
-
exports.createRecipient = (0, pieces_framework_1.createAction)({
|
|
9
|
-
auth: __1.onfleetAuth,
|
|
10
|
-
name: 'create_recipient',
|
|
11
|
-
displayName: 'Create Recipient',
|
|
12
|
-
description: 'Creates a recipient',
|
|
13
|
-
props: {
|
|
14
|
-
name: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Name',
|
|
16
|
-
description: "The recipient's full name",
|
|
17
|
-
required: true,
|
|
18
|
-
}),
|
|
19
|
-
phone: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'Phone',
|
|
21
|
-
description: "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.",
|
|
22
|
-
required: true,
|
|
23
|
-
}),
|
|
24
|
-
notes: pieces_framework_1.Property.ShortText({
|
|
25
|
-
displayName: 'Notes',
|
|
26
|
-
required: false,
|
|
27
|
-
}),
|
|
28
|
-
skipSMSNotifications: pieces_framework_1.Property.Checkbox({
|
|
29
|
-
displayName: 'Skip SMS Notifications',
|
|
30
|
-
required: false,
|
|
31
|
-
defaultValue: false,
|
|
32
|
-
}),
|
|
33
|
-
skipPhoneNumberValidation: pieces_framework_1.Property.Checkbox({
|
|
34
|
-
displayName: 'Skip Phone Number Validation',
|
|
35
|
-
required: false,
|
|
36
|
-
defaultValue: false,
|
|
37
|
-
}),
|
|
38
|
-
useLongCodeForText: pieces_framework_1.Property.Checkbox({
|
|
39
|
-
displayName: 'Use Long Code for Text - Canadian Organizations Only',
|
|
40
|
-
description: 'Checking this option will default the Onfleet system to use a toll-free long code number for SMS communication.',
|
|
41
|
-
required: false,
|
|
42
|
-
defaultValue: false,
|
|
43
|
-
}),
|
|
44
|
-
},
|
|
45
|
-
run(context) {
|
|
46
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
var _a;
|
|
48
|
-
const onfleetApi = new node_onfleet_1.default(context.auth.secret_text);
|
|
49
|
-
const recipient = {
|
|
50
|
-
name: context.propsValue['name'],
|
|
51
|
-
phone: context.propsValue['phone'],
|
|
52
|
-
notes: (_a = context.propsValue['notes']) !== null && _a !== void 0 ? _a : undefined,
|
|
53
|
-
skipSMSNotifications: context.propsValue['skipSMSNotifications'],
|
|
54
|
-
skipPhoneNumberValidation: context.propsValue['skipPhoneNumberValidation'],
|
|
55
|
-
useLongCodeForText: context.propsValue['useLongCodeForText'],
|
|
56
|
-
};
|
|
57
|
-
return yield onfleetApi.recipients.create(recipient);
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
//# sourceMappingURL=create-recipient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EAA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@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
merchant: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
3
|
-
executor: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
destination: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
5
|
-
unparsedDestination: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
6
|
-
recipient: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
7
|
-
useRecipientID: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
8
|
-
completeAfter: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
9
|
-
completeBefore: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
10
|
-
pickupTask: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
11
|
-
quantity: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
12
|
-
recipientName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
-
recipientNotes: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
recipientSkipSMSNotifications: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
15
|
-
serviceTime: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
16
|
-
}>;
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTask = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const node_onfleet_1 = tslib_1.__importDefault(require("@onfleet/node-onfleet"));
|
|
9
|
-
const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
|
10
|
-
exports.createTask = (0, pieces_framework_1.createAction)({
|
|
11
|
-
auth: __1.onfleetAuth,
|
|
12
|
-
name: 'create_task',
|
|
13
|
-
displayName: 'Create Task',
|
|
14
|
-
description: 'Creates a task',
|
|
15
|
-
props: {
|
|
16
|
-
merchant: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Merchant ID',
|
|
18
|
-
description: 'ID of the organization that will be displayed on the task',
|
|
19
|
-
required: false,
|
|
20
|
-
}),
|
|
21
|
-
executor: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'Executor ID',
|
|
23
|
-
description: 'ID of the organization that will be executing the task',
|
|
24
|
-
required: false,
|
|
25
|
-
}),
|
|
26
|
-
destination: common_1.common.destination,
|
|
27
|
-
unparsedDestination: common_1.common.unparsedDestination,
|
|
28
|
-
recipient: pieces_framework_1.Property.DynamicProperties({
|
|
29
|
-
auth: __1.onfleetAuth,
|
|
30
|
-
displayName: 'Destination',
|
|
31
|
-
description: 'The task destination',
|
|
32
|
-
required: true,
|
|
33
|
-
refreshers: ['useRecipientID'],
|
|
34
|
-
props: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ useRecipientID }) {
|
|
35
|
-
let fields = {};
|
|
36
|
-
if (useRecipientID) {
|
|
37
|
-
fields = {
|
|
38
|
-
id: pieces_framework_1.Property.ShortText({
|
|
39
|
-
displayName: 'Recipient ID',
|
|
40
|
-
required: true,
|
|
41
|
-
}),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
fields = {
|
|
46
|
-
name: pieces_framework_1.Property.ShortText({
|
|
47
|
-
displayName: 'Name',
|
|
48
|
-
description: "The recipient's full name",
|
|
49
|
-
required: true,
|
|
50
|
-
}),
|
|
51
|
-
phone: pieces_framework_1.Property.ShortText({
|
|
52
|
-
displayName: 'Phone',
|
|
53
|
-
description: "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.",
|
|
54
|
-
required: true,
|
|
55
|
-
}),
|
|
56
|
-
notes: pieces_framework_1.Property.ShortText({
|
|
57
|
-
displayName: 'Notes',
|
|
58
|
-
required: false,
|
|
59
|
-
}),
|
|
60
|
-
skipSMSNotifications: pieces_framework_1.Property.Checkbox({
|
|
61
|
-
displayName: 'Skip SMS Notifications',
|
|
62
|
-
required: false,
|
|
63
|
-
defaultValue: false,
|
|
64
|
-
}),
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
return fields;
|
|
68
|
-
}),
|
|
69
|
-
}),
|
|
70
|
-
useRecipientID: pieces_framework_1.Property.Checkbox({
|
|
71
|
-
displayName: 'Use Recipient ID',
|
|
72
|
-
description: 'Check this box if you want to use an ID for the recipient',
|
|
73
|
-
required: true,
|
|
74
|
-
defaultValue: false,
|
|
75
|
-
}),
|
|
76
|
-
completeAfter: pieces_framework_1.Property.DateTime({
|
|
77
|
-
displayName: 'Complete After',
|
|
78
|
-
description: 'The earliest time the task should be completed',
|
|
79
|
-
required: false,
|
|
80
|
-
}),
|
|
81
|
-
completeBefore: pieces_framework_1.Property.DateTime({
|
|
82
|
-
displayName: 'Complete Before',
|
|
83
|
-
description: 'The latest time the task should be completed',
|
|
84
|
-
required: false,
|
|
85
|
-
}),
|
|
86
|
-
pickupTask: pieces_framework_1.Property.Checkbox({
|
|
87
|
-
displayName: 'Pickup',
|
|
88
|
-
description: 'Whether the task is pickup',
|
|
89
|
-
required: false,
|
|
90
|
-
}),
|
|
91
|
-
quantity: pieces_framework_1.Property.Number({
|
|
92
|
-
displayName: 'Quantity',
|
|
93
|
-
description: 'The number of units to be dropped off',
|
|
94
|
-
required: false,
|
|
95
|
-
}),
|
|
96
|
-
recipientName: pieces_framework_1.Property.ShortText({
|
|
97
|
-
displayName: 'Recipient Name Override',
|
|
98
|
-
description: 'Override the recipient name for this task only',
|
|
99
|
-
required: false,
|
|
100
|
-
}),
|
|
101
|
-
recipientNotes: pieces_framework_1.Property.ShortText({
|
|
102
|
-
displayName: 'Recipient Notes Override',
|
|
103
|
-
description: 'Override the recipient notes for this task only',
|
|
104
|
-
required: false,
|
|
105
|
-
}),
|
|
106
|
-
recipientSkipSMSNotifications: pieces_framework_1.Property.Checkbox({
|
|
107
|
-
displayName: 'Recipient Skip SMS Override',
|
|
108
|
-
description: 'Override the recipient skip SMS option for this task only',
|
|
109
|
-
required: false,
|
|
110
|
-
}),
|
|
111
|
-
serviceTime: pieces_framework_1.Property.Number({
|
|
112
|
-
displayName: 'Service Time',
|
|
113
|
-
description: "The number of minutes to be spent by the worker on arrival at this task's destination",
|
|
114
|
-
required: false,
|
|
115
|
-
}),
|
|
116
|
-
},
|
|
117
|
-
run(context) {
|
|
118
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
const onfleetApi = new node_onfleet_1.default(context.auth.secret_text);
|
|
120
|
-
let address;
|
|
121
|
-
if (context.propsValue.unparsedDestination) {
|
|
122
|
-
address = {
|
|
123
|
-
number: '',
|
|
124
|
-
street: '',
|
|
125
|
-
city: '',
|
|
126
|
-
country: '',
|
|
127
|
-
unparsed: context.propsValue.destination['unparsedAddress'],
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
address = {
|
|
132
|
-
number: context.propsValue.destination['number'],
|
|
133
|
-
street: context.propsValue.destination['street'],
|
|
134
|
-
apartment: context.propsValue.destination['apartment'],
|
|
135
|
-
city: context.propsValue.destination['city'],
|
|
136
|
-
country: context.propsValue.destination['country'],
|
|
137
|
-
state: context.propsValue.destination['state'],
|
|
138
|
-
postalCode: context.propsValue.destination['postalCode'],
|
|
139
|
-
name: context.propsValue.destination['name'],
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
let recipients;
|
|
143
|
-
if (context.propsValue.useRecipientID) {
|
|
144
|
-
recipients = [context.propsValue.recipient['id']];
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
recipients = [
|
|
148
|
-
{
|
|
149
|
-
name: context.propsValue.recipient['name'],
|
|
150
|
-
phone: context.propsValue.recipient['phone'],
|
|
151
|
-
notes: context.propsValue.recipient['notes'],
|
|
152
|
-
skipSMSNotifications: context.propsValue.recipient['skipSMSNotifications'],
|
|
153
|
-
},
|
|
154
|
-
];
|
|
155
|
-
}
|
|
156
|
-
const completeAfter = context.propsValue.completeAfter
|
|
157
|
-
? (0, dayjs_1.default)(context.propsValue.completeAfter).valueOf()
|
|
158
|
-
: undefined;
|
|
159
|
-
const completeBefore = context.propsValue.completeBefore
|
|
160
|
-
? (0, dayjs_1.default)(context.propsValue.completeBefore).valueOf()
|
|
161
|
-
: undefined;
|
|
162
|
-
return yield onfleetApi.tasks.create({
|
|
163
|
-
destination: {
|
|
164
|
-
address: address,
|
|
165
|
-
},
|
|
166
|
-
recipients: recipients,
|
|
167
|
-
merchant: context.propsValue.merchant,
|
|
168
|
-
executor: context.propsValue.executor,
|
|
169
|
-
pickupTask: context.propsValue.pickupTask,
|
|
170
|
-
quantity: context.propsValue.quantity,
|
|
171
|
-
recipientName: context.propsValue.recipientName,
|
|
172
|
-
recipientNotes: context.propsValue.recipientNotes,
|
|
173
|
-
recipientSkipSMSNotifications: context.propsValue.recipientSkipSMSNotifications,
|
|
174
|
-
serviceTime: context.propsValue.serviceTime,
|
|
175
|
-
completeAfter: completeAfter,
|
|
176
|
-
completeBefore: completeBefore,
|
|
177
|
-
});
|
|
178
|
-
});
|
|
179
|
-
},
|
|
180
|
-
});
|
|
181
|
-
//# sourceMappingURL=create-task.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,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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"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const createTeam: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
workers: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<unknown, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
|
-
managers: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<unknown, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
5
|
-
hub: import("@activepieces/pieces-framework").DropdownProperty<unknown, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
|
-
enableSelfAssignment: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
7
|
-
}>;
|