projectal.enums
Enums use readable names for string values expected by the Projectal API.
# Example usage
from projectal.enums import ConstraintType
task = projectal.Task.create(project, {
'name': 'Example Task',
'constraintType': ConstraintType.ASAP,
'taskType': TaskType.Task
})
1""" 2Enums use readable names for string values expected by the Projectal 3API. 4 5``` 6# Example usage 7from projectal.enums import ConstraintType 8 9task = projectal.Task.create(project, { 10 'name': 'Example Task', 11 'constraintType': ConstraintType.ASAP, 12 'taskType': TaskType.Task 13}) 14``` 15""" 16 17 18class Currency: 19 USD = "USD" 20 AUD = "AUD" 21 EUR = "EUR" 22 PLN = "PLN" 23 MYR = "MYR" 24 INR = "INR" 25 IRR = "IRR" 26 JPY = "JPY" 27 GBP = "GBP" 28 CAD = "CAD" 29 CHF = "CHF" 30 CNY = "CNY" 31 HKD = "HKD" 32 NZD = "NZD" 33 SEK = "SEK" 34 KRW = "KRW" 35 SGD = "SGD" 36 NOK = "NOK" 37 MXN = "MXN" 38 RUB = "RUB" 39 ZAR = "ZAR" 40 TRY = "TRY" 41 BRL = "BRL" 42 43 44class TaskType: 45 Project = "Project" 46 Task = "Task" 47 Milestone = "Milestone" 48 49 50class ConstraintType: 51 ASAP = "As_soon_as_possible" 52 ALAP = "As_late_as_possible" 53 SNET = "Start_no_earlier_than" 54 SNLT = "Start_no_later_than" 55 FNET = "Finish_no_earlier_than" 56 FNLT = "Finish_no_later_than" 57 MSO = "Must_start_on" 58 MFO = "Must_finish_on" 59 60 61class StaffType: 62 Casual = "Casual" 63 Contractor = "Contractor" 64 Consultant = "Consultant" 65 Freelance = "Freelance" 66 Intern = "Intern" 67 FullTime = "Full_Time" 68 PartTime = "Part_Time" 69 70 71class PayFrequency: 72 # OneShot = "One_shot" 73 Annually = "Annually" 74 Monthly = "Monthly" 75 Hourly = "Hourly" 76 Daily = "Daily" 77 Weekly = "Weekly" 78 79 80class DateLimit: 81 Min = "1970-01-01" 82 Max = "3000-01-01" 83 84 85class CompanyType: 86 Primary = "Primary" 87 Subsidiary = "Subsidiary" 88 Contractor = "Contractor" 89 Partner = "Partner" 90 Affiliate = "Affiliate" 91 Office = "Office" 92 93 94class CalendarType: 95 Leave = "Leave" 96 Sunday = "Sunday" 97 Monday = "Monday" 98 Tuesday = "Tuesday" 99 Wednesday = "Wednesday" 100 Thursday = "Thursday" 101 Friday = "Friday" 102 Saturday = "Saturday" 103 Working = "Working" 104 105 106class SkillLevel: 107 Junior = "Junior" 108 Mid = "Mid" 109 Senior = "Senior" 110 111 112class GanttLinkType: 113 FinishToStart = "Finish_to_start" 114 StartToStart = "Start_to_start" 115 FinishToFinish = "Finish_to_finish" 116 StartToFinish = "Start_to_finish"
class
Currency:
19class Currency: 20 USD = "USD" 21 AUD = "AUD" 22 EUR = "EUR" 23 PLN = "PLN" 24 MYR = "MYR" 25 INR = "INR" 26 IRR = "IRR" 27 JPY = "JPY" 28 GBP = "GBP" 29 CAD = "CAD" 30 CHF = "CHF" 31 CNY = "CNY" 32 HKD = "HKD" 33 NZD = "NZD" 34 SEK = "SEK" 35 KRW = "KRW" 36 SGD = "SGD" 37 NOK = "NOK" 38 MXN = "MXN" 39 RUB = "RUB" 40 ZAR = "ZAR" 41 TRY = "TRY" 42 BRL = "BRL"
class
TaskType:
class
ConstraintType:
class
StaffType:
class
PayFrequency:
class
DateLimit:
class
CompanyType:
class
CalendarType:
class
SkillLevel:
class
GanttLinkType: