Skip to content

Commit dc28f97

Browse files
committed
Done requests changes
1 parent 2fdbcaf commit dc28f97

File tree

5 files changed

+42
-23
lines changed

5 files changed

+42
-23
lines changed

components/clicktime/actions/create-client/create-client.mjs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,52 @@ export default {
88
type: "action",
99
props: {
1010
app,
11-
accountingPackageId: {
11+
clientNumber: {
1212
propDefinition: [
1313
app,
14-
"accountingPackageId",
14+
"clientNumber",
1515
],
1616
},
17-
billingRate: {
17+
accountingPackageId: {
1818
propDefinition: [
1919
app,
20-
"billingRate",
20+
"accountingPackageId",
2121
],
2222
},
23-
clientNumber: {
23+
billingRate: {
2424
propDefinition: [
2525
app,
26-
"clientNumber",
26+
"billingRate",
2727
],
28+
description: "The billing rate for the client",
2829
},
2930
isActive: {
3031
propDefinition: [
3132
app,
3233
"isActive",
3334
],
35+
description: "Indicates whether the client is currently active",
3436
},
3537
isEligibleTimeOffAllocation: {
3638
propDefinition: [
3739
app,
3840
"isEligibleTimeOffAllocation",
3941
],
42+
description: "Determines if the client is eligible for time-off allocation",
4043
},
4144
name: {
4245
propDefinition: [
4346
app,
4447
"name",
4548
],
49+
description: "The name of the client",
4650
},
4751
notes: {
4852
propDefinition: [
4953
app,
5054
"notes",
5155
],
56+
description: "Additional information related to the client",
5257
},
5358
shortName: {
5459
propDefinition: [

components/clicktime/actions/create-job/create-job.mjs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,42 @@ export default {
1919
app,
2020
"billingRate",
2121
],
22+
description: "The billing rate for the job",
2223
},
2324
isActive: {
2425
propDefinition: [
2526
app,
2627
"isActive",
2728
],
29+
description: "Indicates whether the job is currently active",
2830
},
2931
isEligibleTimeOffAllocation: {
3032
propDefinition: [
3133
app,
3234
"isEligibleTimeOffAllocation",
3335
],
36+
description: "Determines if the client is eligible for time-off allocation",
3437
},
3538
name: {
3639
propDefinition: [
3740
app,
3841
"name",
3942
],
43+
description: "The name of the job",
4044
},
4145
notes: {
4246
propDefinition: [
4347
app,
4448
"notes",
4549
],
50+
description: "Additional information related to the job",
4651
},
4752
clientId: {
4853
propDefinition: [
4954
app,
5055
"clientId",
5156
],
5257
},
53-
endDate: {
54-
propDefinition: [
55-
app,
56-
"endDate",
57-
],
58-
},
5958
includeInRm: {
6059
propDefinition: [
6160
app,
@@ -79,6 +78,13 @@ export default {
7978
app,
8079
"startDate",
8180
],
81+
description: "The start date of the job, i.e.: `2020-01-01`",
82+
},
83+
endDate: {
84+
propDefinition: [
85+
app,
86+
"endDate",
87+
],
8288
},
8389
timeRequiresApproval: {
8490
propDefinition: [

components/clicktime/actions/create-user/create-user.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,28 @@ export default {
1313
app,
1414
"billingRate",
1515
],
16+
description: "The billing rate for the user",
1617
},
1718
isActive: {
1819
propDefinition: [
1920
app,
2021
"isActive",
2122
],
23+
description: "Indicates whether the user is currently active",
2224
},
2325
name: {
2426
propDefinition: [
2527
app,
2628
"name",
2729
],
30+
description: "The name of the user",
2831
},
2932
startDate: {
3033
propDefinition: [
3134
app,
3235
"startDate",
3336
],
37+
description: "The start date of the user, i.e.: `2020-01-01`",
3438
},
3539
costModel: {
3640
propDefinition: [

components/clicktime/clicktime.app.mjs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { axios } from "@pipedream/platform";
2+
import constants from "./common/constants.mjs";
23

34
export default {
45
type: "app",
@@ -12,7 +13,7 @@ export default {
1213
billingRate: {
1314
type: "string",
1415
label: "Billing Rate",
15-
description: "The billing rate for the client, job, or user",
16+
description: "",
1617
},
1718
clientNumber: {
1819
type: "string",
@@ -22,7 +23,7 @@ export default {
2223
isActive: {
2324
type: "boolean",
2425
label: "Is Active",
25-
description: "Indicates whether the entity (client, job, or user) is currently active",
26+
description: "",
2627
},
2728
isEligibleTimeOffAllocation: {
2829
type: "boolean",
@@ -32,12 +33,12 @@ export default {
3233
name: {
3334
type: "string",
3435
label: "Name",
35-
description: "The name of the client, job, or user",
36+
description: "",
3637
},
3738
notes: {
3839
type: "string",
3940
label: "Notes",
40-
description: "Additional information related to the entity",
41+
description: "",
4142
},
4243
shortName: {
4344
type: "string",
@@ -62,7 +63,7 @@ export default {
6263
endDate: {
6364
type: "string",
6465
label: "End Date",
65-
description: "The end date of the job or user, i.e.: `2021-01-01`",
66+
description: "The end date of the job, i.e.: `2020-01-01`",
6667
},
6768
includeInRm: {
6869
type: "boolean",
@@ -82,7 +83,7 @@ export default {
8283
startDate: {
8384
type: "string",
8485
label: "Start Date",
85-
description: "The start date of the job or user, i.e.: `2020-01-01`",
86+
description: "",
8687
},
8788
timeRequiresApproval: {
8889
type: "boolean",
@@ -97,11 +98,8 @@ export default {
9798
costModel: {
9899
type: "string",
99100
label: "Cost Model",
100-
description: "Defines the cost model used for the user, such as 'Hourly' or 'Fixed'",
101-
options: [
102-
"Hourly",
103-
"Salary",
104-
],
101+
description: "Defines the cost model used for the user",
102+
options: constants.COST_MODELS,
105103
},
106104
costRate: {
107105
type: "string",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
COST_MODELS: [
3+
"Hourly",
4+
"Salary",
5+
],
6+
};

0 commit comments

Comments
 (0)