diff --git a/lib/bamboozled/api/base.rb b/lib/bamboozled/api/base.rb index 62dfe9e..55b8bed 100644 --- a/lib/bamboozled/api/base.rb +++ b/lib/bamboozled/api/base.rb @@ -43,7 +43,8 @@ def request(method, path, options = {}) JSON.parse(response) end rescue - MultiXml.parse(response, symbolize_keys: true) + typecast = options.fetch(:typecast_values, true) + MultiXml.parse(response, symbolize_keys: true, typecast_xml_value: typecast) end when 400 raise Bamboozled::BadRequest.new(response, params, 'The request was invalid or could not be understood by the server. Resubmitting the request will likely result in the same error.') diff --git a/lib/bamboozled/api/meta.rb b/lib/bamboozled/api/meta.rb index a43f768..a274151 100644 --- a/lib/bamboozled/api/meta.rb +++ b/lib/bamboozled/api/meta.rb @@ -1,12 +1,20 @@ module Bamboozled module API class Meta < Base + def users + request(:get, "meta/users").values + end + + def fields + request(:get, "meta/fields") + end + + def lists + request(:get, "meta/lists") + end - [:field, :table, :list, :user].each do |action| - define_method("#{action}s") do - result = request(:get, "meta/#{action}s") - result["#{action}s".to_sym][action] - end + def tables + request(:get, "meta/tables", typecast_values: false)[:tables] end end diff --git a/spec/fixtures/meta_fields.json b/spec/fixtures/meta_fields.json new file mode 100644 index 0000000..3142f46 --- /dev/null +++ b/spec/fixtures/meta_fields.json @@ -0,0 +1,5 @@ +HTTP/1.1 200 OK +content-type: application/json; charset=utf-8 +date: Tue, 17 Jun 2014 19:25:35 UTC + +[{"id":4175,"name":"Accrual Level Start Date","type":"date"},{"id":8,"name":"Address Line 1","type":"text","alias":"address1"},{"id":9,"name":"Address Line 2","type":"text","alias":"address2"},{"id":4191,"name":"Asset cost","type":"currency"},{"id":"4191.1","name":"Asset cost - Currency code","type":"text"},{"id":4189,"name":"Asset description","type":"text"},{"id":4235,"name":"Benefit Groups","type":"benefit_group"},{"id":1502,"name":"Benefit History","type":"benefit_history"},{"id":6,"name":"Birth Date","type":"date","alias":"dateOfBirth"},{"id":10,"name":"City","type":"text","alias":"city"},{"id":4021,"name":"Compensation: Date","type":"date","alias":"payRateEffectiveDate"},{"id":4017,"name":"Compensation Change Reason","type":"list","alias":"payChangeReason"},{"id":4045,"name":"Compensation comments","type":"textarea"},{"id":"4020.1","name":"Completed - Category","type":"list"},{"id":"4020.2","name":"Completed - Completed","type":"date"},{"id":"4020.3","name":"Completed - Cost","type":"currency"},{"id":"4020.4","name":"Completed - Credits","type":"int"},{"id":"4020.5","name":"Completed - Hours","type":"int"},{"id":"4020.6","name":"Completed - Instructor","type":"text"},{"id":"4020.7","name":"Completed - Notes","type":"text"},{"id":4020,"name":"Completed - Title","type":"training_type"},{"id":"4180.8","name":"Conference Time Off - Accrual Start Date","type":"time_off_type"},{"id":"4180.6","name":"Conference Time Off - Adjustments (YTD)","type":"int"},{"id":"4180.3","name":"Conference Time Off - Available Balance","type":"int"},{"id":"4180.7","name":"Conference Time Off - Current balance","type":"time_off_type"},{"id":"4180.5","name":"Conference Time Off - Days scheduled","type":"int"},{"id":"4180.4","name":"Conference Time Off - Days taken (YTD)","type":"int"},{"id":"4180.2","name":"Conference Time Off - Policy","type":"text"},{"id":4180,"name":"Conference Time Off - Policy Assigned","type":"time_off_type_exists"},{"id":4194,"name":"Conference Time Off Policy policy - Assigned","type":"time_off_policy_exists"},{"id":"4194.1","name":"Conference Time Off Policy policy - Started on","type":"date"},{"id":3991,"name":"Country","type":"country","alias":"country"},{"id":4192,"name":"Date loaned","type":"date"},{"id":4193,"name":"Date returned","type":"date"},{"id":4,"name":"Department","type":"list","alias":"department"},{"id":1928,"name":"Dependent Birth Date","type":"date"},{"id":1931,"name":"Dependent City","type":"text"},{"id":3992,"name":"Dependent Country","type":"country"},{"id":1923,"name":"Dependent First Name","type":"text"},{"id":4231,"name":"Dependent Full-Time Student","type":"checkbox"},{"id":1927,"name":"Dependent Gender","type":"gender"},{"id":1935,"name":"Dependent Home Phone","type":"phone"},{"id":1924,"name":"Dependent Last Name","type":"text"},{"id":1925,"name":"Dependent Middle Name","type":"text"},{"id":1926,"name":"Dependent Relationship","type":"relationship"},{"id":1933,"name":"Dependent SSN","type":"ssn"},{"id":1932,"name":"Dependent State","type":"state"},{"id":1929,"name":"Dependent Street 1","type":"text"},{"id":1930,"name":"Dependent Street 2","type":"text"},{"id":4230,"name":"Dependent US Citizen","type":"checkbox"},{"id":1934,"name":"Dependent ZIP","type":"text"},{"id":4206,"name":"Dietary Restriction","type":"textarea","alias":"customDietaryRestriction"},{"id":1355,"name":"Division","type":"list","alias":"division"},{"id":157,"name":"EEO Job Category","type":"list","alias":"eeo"},{"id":4239,"name":"Eligible For Re-hire","type":"list"},{"id":692,"name":"Emergency Contact City","type":"text"},{"id":3993,"name":"Emergency Contact Country","type":"country"},{"id":2123,"name":"Emergency Contact Email","type":"email"},{"id":159,"name":"Emergency Contact Home Phone","type":"phone"},{"id":693,"name":"Emergency Contact Mobile Phone","type":"phone"},{"id":158,"name":"Emergency Contact Name","type":"text"},{"id":4211,"name":"Emergency Contact Primary","type":"checkbox"},{"id":160,"name":"Emergency Contact Relationship","type":"list"},{"id":4226,"name":"Emergency Contacts","type":"employee_contacts"},{"id":690,"name":"Emergency Contact State","type":"state"},{"id":691,"name":"Emergency Contact Street 1","type":"text"},{"id":2124,"name":"Emergency Contact Street 2","type":"text"},{"id":4063,"name":"Emergency Contact Work Ext","type":"text"},{"id":4044,"name":"Emergency Contact Work Phone","type":"phone"},{"id":689,"name":"Emergency Contact ZIP Code","type":"text"},{"id":636,"name":"Employee #","type":"employee_number","alias":"employeeNumber"},{"id":16,"name":"Employment Status","type":"list","alias":"employmentHistoryStatus"},{"id":"16.1","name":"Employment Status - FTE","type":"list","alias":"employmentHistoryStatus"},{"id":4232,"name":"Employment Status: ACA Full-Time","type":"aca_status"},{"id":1936,"name":"Employment Status: Date","type":"date"},{"id":4046,"name":"Employment status comments","type":"textarea"},{"id":1037,"name":"Ethnicity","type":"list","alias":"ethnicity"},{"id":4224,"name":"Favorite place to eat, hang or other in your city:","type":"textarea","alias":"customFavoriteplacetoeat,hangorotherinyourcity:"},{"id":4223,"name":"Favorite song to work to:","type":"textarea","alias":"customFavoritesongtoworkto:"},{"id":1,"name":"First Name","type":"text","alias":"firstName"},{"id":1359,"name":"FLSA Code","type":"list","alias":"exempt"},{"id":4229,"name":"FMLA Training - Completed","type":"date"},{"id":"4229.2","name":"FMLA Training - Due Date","type":"date"},{"id":"4229.3","name":"FMLA Training - Required Date","type":"date"},{"id":4205,"name":"Food Allergies","type":"textarea","alias":"customFoodAllergies"},{"id":154,"name":"Gender","type":"gender","alias":"gender"},{"id":4227,"name":"Harassment Training - Completed","type":"date"},{"id":"4227.2","name":"Harassment Training - Due Date","type":"date"},{"id":"4227.3","name":"Harassment Training - Required Date","type":"date"},{"id":3,"name":"Hire Date","type":"date","alias":"hireDate"},{"id":4207,"name":"Hobbies","type":"textarea","alias":"customHobbies"},{"id":1357,"name":"Home Email","type":"email","alias":"homeEmail"},{"id":14,"name":"Home Phone","type":"phone","alias":"homePhone"},{"id":4197,"name":"Item","type":"list"},{"id":4047,"name":"Job Information: Date","type":"date"},{"id":17,"name":"Job Title","type":"list","alias":"jobTitle"},{"id":"4221.8","name":"Jury Duty - Accrual Start Date","type":"time_off_type"},{"id":"4221.6","name":"Jury Duty - Adjustments (YTD)","type":"int"},{"id":"4221.3","name":"Jury Duty - Available Balance","type":"int"},{"id":"4221.7","name":"Jury Duty - Current balance","type":"time_off_type"},{"id":"4221.5","name":"Jury Duty - Days scheduled","type":"int"},{"id":"4221.4","name":"Jury Duty - Days taken (YTD)","type":"int"},{"id":"4221.2","name":"Jury Duty - Policy","type":"text"},{"id":4221,"name":"Jury Duty - Policy Assigned","type":"time_off_type_exists"},{"id":2,"name":"Last Name","type":"text","alias":"lastName"},{"id":18,"name":"Location","type":"list","alias":"location"},{"id":4198,"name":"M/N","type":"text"},{"id":155,"name":"Marital Status","type":"marital_status","alias":"maritalStatus"},{"id":"4256.8","name":"Maternity/Paternity - Accrual Start Date","type":"time_off_type"},{"id":"4256.6","name":"Maternity/Paternity - Adjustments (YTD)","type":"int"},{"id":"4256.3","name":"Maternity/Paternity - Available Balance","type":"int"},{"id":"4256.7","name":"Maternity/Paternity - Current balance","type":"time_off_type"},{"id":"4256.5","name":"Maternity/Paternity - Hours scheduled","type":"int"},{"id":"4256.4","name":"Maternity/Paternity - Hours taken (YTD)","type":"int"},{"id":"4256.2","name":"Maternity/Paternity - Policy","type":"text"},{"id":4256,"name":"Maternity/Paternity - Policy Assigned","type":"time_off_type_exists"},{"id":5,"name":"Middle Name","type":"text","alias":"middleName"},{"id":"4259.8","name":"Military Leave - Accrual Start Date","type":"time_off_type"},{"id":"4259.6","name":"Military Leave - Adjustments (YTD)","type":"int"},{"id":"4259.3","name":"Military Leave - Available Balance","type":"int"},{"id":"4259.7","name":"Military Leave - Current balance","type":"time_off_type"},{"id":"4259.5","name":"Military Leave - Hours scheduled","type":"int"},{"id":"4259.4","name":"Military Leave - Hours taken (YTD)","type":"int"},{"id":"4259.2","name":"Military Leave - Policy","type":"text"},{"id":4259,"name":"Military Leave - Policy Assigned","type":"time_off_type_exists"},{"id":4203,"name":"MISC.","type":"textarea","alias":"customMISC."},{"id":13,"name":"Mobile Phone","type":"phone","alias":"mobilePhone"},{"id":4255,"name":"Original Hire Date","type":"date","alias":"originalHireDate"},{"id":4252,"name":"Paid per","type":"paid_per","alias":"payPer"},{"id":19,"name":"Pay rate","type":"currency","alias":"payRate"},{"id":"19.1","name":"Pay rate - Currency code","type":"text","alias":"payRate"},{"id":4253,"type":"pay_period","deprecated":true,"name":"Pay Period","alias":"payPeriod"},{"id":4269,"name":"Pay Schedule","type":"list","alias":"paySchedule"},{"id":156,"name":"Pay type","type":"pay_type","alias":"payType"},{"id":1358,"type":"text","deprecated":true,"name":"Nickname","alias":"nickname"},{"id":1358,"name":"Preferred Name","type":"text","alias":"preferredName"},{"id":"4181.8","name":"PTO-Standard - Accrual Start Date","type":"time_off_type"},{"id":"4181.6","name":"PTO-Standard - Adjustments (YTD)","type":"int"},{"id":"4181.3","name":"PTO-Standard - Available Balance","type":"int"},{"id":"4181.7","name":"PTO-Standard - Current balance","type":"time_off_type"},{"id":"4181.5","name":"PTO-Standard - Hours scheduled","type":"int"},{"id":"4181.4","name":"PTO-Standard - Hours taken (YTD)","type":"int"},{"id":"4181.2","name":"PTO-Standard - Policy","type":"text"},{"id":4181,"name":"PTO-Standard - Policy Assigned","type":"time_off_type_exists"},{"id":4225,"name":"PTO-Standard Policy - 5 weeks policy - Assigned","type":"time_off_policy_exists"},{"id":"4225.1","name":"PTO-Standard Policy - 5 weeks policy - Started on","type":"date"},{"id":4182,"name":"PTO-Standard Policy - old policy - Assigned","type":"time_off_policy_exists"},{"id":"4182.1","name":"PTO-Standard Policy - old policy - Started on","type":"date"},{"id":4222,"name":"PTO-Standard Policy copy policy - Assigned","type":"time_off_policy_exists"},{"id":"4222.1","name":"PTO-Standard Policy copy policy - Started on","type":"date"},{"id":91,"name":"Reporting to","type":"employee"},{"id":4190,"name":"S/N","type":"text"},{"id":1610,"name":"Self-service access","type":"employee_access"},{"id":"4209.8","name":"Sick Time Off - Accrual Start Date","type":"time_off_type"},{"id":"4209.6","name":"Sick Time Off - Adjustments (YTD)","type":"int"},{"id":"4209.3","name":"Sick Time Off - Available Balance","type":"int"},{"id":"4209.7","name":"Sick Time Off - Current balance","type":"time_off_type"},{"id":"4209.5","name":"Sick Time Off - Days scheduled","type":"int"},{"id":"4209.4","name":"Sick Time Off - Days taken (YTD)","type":"int"},{"id":"4209.2","name":"Sick Time Off - Policy","type":"text"},{"id":4209,"name":"Sick Time Off - Policy Assigned","type":"time_off_type_exists"},{"id":7,"name":"SSN","type":"ssn","alias":"ssn"},{"id":11,"name":"State","type":"state","alias":"state"},{"id":387,"type":"status","deprecated":true,"name":"Employment Status","alias":"employmentStatus"},{"id":387,"name":"Status","type":"status","alias":"status"},{"id":4204,"name":"T-Shirt Size","type":"list","alias":"customT-ShirtSize"},{"id":4238,"name":"Termination Reason","type":"list"},{"id":4237,"name":"Termination Type","type":"list"},{"id":4208,"name":"Transportation Method","type":"textarea","alias":"customTransportationMethod"},{"id":4233,"name":"Twitter handle","type":"text","alias":"customTwitterhandle"},{"id":4228,"name":"Ulle - Completed","type":"date"},{"id":"4228.2","name":"Ulle - Due Date","type":"date"},{"id":"4228.3","name":"Ulle - Required Date","type":"date"},{"id":"4195.8","name":"Unpaid Time Off - Accrual Start Date","type":"time_off_type"},{"id":"4195.6","name":"Unpaid Time Off - Adjustments (YTD)","type":"int"},{"id":"4195.3","name":"Unpaid Time Off - Available Balance","type":"int"},{"id":"4195.7","name":"Unpaid Time Off - Current balance","type":"time_off_type"},{"id":"4195.5","name":"Unpaid Time Off - Days scheduled","type":"int"},{"id":"4195.4","name":"Unpaid Time Off - Days taken (YTD)","type":"int"},{"id":"4195.2","name":"Unpaid Time Off - Policy","type":"text"},{"id":4195,"name":"Unpaid Time Off - Policy Assigned","type":"time_off_type_exists"},{"id":4001,"name":"Veteran Status","type":"multilist"},{"id":4196,"name":"Wedding date","type":"date","alias":"customWeddingdate"},{"id":"4200.8","name":"WFH - Accrual Start Date","type":"time_off_type"},{"id":"4200.6","name":"WFH - Adjustments (YTD)","type":"int"},{"id":"4200.3","name":"WFH - Available Balance","type":"int"},{"id":"4200.7","name":"WFH - Current balance","type":"time_off_type"},{"id":"4200.5","name":"WFH - Hours scheduled","type":"int"},{"id":"4200.4","name":"WFH - Hours taken (YTD)","type":"int"},{"id":"4200.2","name":"WFH - Policy","type":"text"},{"id":4200,"name":"WFH - Policy Assigned","type":"time_off_type_exists"},{"id":15,"name":"Work Email","type":"email","alias":"workEmail"},{"id":635,"name":"Work Ext.","type":"text","alias":"workPhoneExtension"},{"id":634,"name":"Work Phone","type":"phone","alias":"workPhone"},{"id":12,"name":"Zip Code","type":"text","alias":"zipcode"},{"id":-38,"name":"Termination Date","type":"date","alias":"terminationDate"}] diff --git a/spec/fixtures/meta_lists.json b/spec/fixtures/meta_lists.json new file mode 100644 index 0000000..df44696 --- /dev/null +++ b/spec/fixtures/meta_lists.json @@ -0,0 +1,5 @@ +HTTP/1.1 200 OK +content-type: application/json; charset=utf-8 +date: Tue, 17 Jun 2014 19:25:35 UTC + +[{"fieldId":16,"manageable":"yes","multiple":"no","name":"Employment Status","options":[{"id":18007,"archived":"no","createdDate":null,"archivedDate":null,"name":"Contractor"},{"id":18004,"archived":"no","createdDate":null,"archivedDate":null,"name":"Full-Time"},{"id":18117,"archived":"no","createdDate":null,"archivedDate":null,"name":"Inactive-SDW"},{"id":18008,"archived":"no","createdDate":null,"archivedDate":null,"name":"Intern"},{"id":18005,"archived":"no","createdDate":null,"archivedDate":null,"name":"Part-Time"},{"id":18174,"archived":"no","createdDate":null,"archivedDate":null,"name":"Terminated"}],"alias":"employmentHistoryStatus"},{"fieldId":17,"manageable":"yes","multiple":"no","name":"Job Title","options":[{"id":18038,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Accounting & Human Resources"},{"id":18230,"archived":"no","createdDate":"2016-09-12T14:57:26+00:00","archivedDate":null,"name":"Business Analyst"},{"id":18209,"archived":"no","createdDate":"2015-09-14T13:44:10+00:00","archivedDate":null,"name":"Business Development Analyst"},{"id":17994,"archived":"no","createdDate":null,"archivedDate":null,"name":"CEO"},{"id":18203,"archived":"no","createdDate":"2015-08-19T18:59:46+00:00","archivedDate":null,"name":"Chief Business Officer"},{"id":18182,"archived":"no","createdDate":null,"archivedDate":null,"name":"Chief Marketing Officer"},{"id":18195,"archived":"no","createdDate":null,"archivedDate":null,"name":"Chief Operating Officer"},{"id":18153,"archived":"no","createdDate":null,"archivedDate":null,"name":"Chief People Officer"},{"id":18196,"archived":"no","createdDate":null,"archivedDate":null,"name":"Chief Sales Officer"},{"id":18197,"archived":"no","createdDate":null,"archivedDate":null,"name":"Chief Strategy Officer"},{"id":18211,"archived":"no","createdDate":"2015-09-24T20:37:19+00:00","archivedDate":null,"name":"Community Manager"},{"id":18108,"archived":"no","createdDate":null,"archivedDate":null,"name":"COO"},{"id":18149,"archived":"no","createdDate":null,"archivedDate":null,"name":"COO & VP of Services"},{"id":18027,"archived":"no","createdDate":null,"archivedDate":null,"name":"Creative Director"},{"id":18018,"archived":"no","createdDate":null,"archivedDate":null,"name":"Designer"},{"id":18217,"archived":"no","createdDate":"2016-04-15T19:59:15+00:00","archivedDate":null,"name":"Design Intern"},{"id":18023,"archived":"no","createdDate":null,"archivedDate":null,"name":"Design Lead"},{"id":17992,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Developer"},{"id":18041,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Developer Contractor"},{"id":17991,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director"},{"id":18109,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Director of Administration and Finance"},{"id":18252,"archived":"no","createdDate":"2017-08-23T14:13:16+00:00","archivedDate":null,"name":"Director of Client Engagement"},{"id":18044,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Client Services"},{"id":18036,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Director of Consulting"},{"id":18103,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Director of Core Services"},{"id":18107,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Director of Design"},{"id":18155,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Development"},{"id":18024,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Engineering"},{"id":18193,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Finance"},{"id":18133,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Director of Finance & Administration"},{"id":18104,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Marketing"},{"id":18212,"archived":"no","createdDate":"2016-02-02T17:35:25+00:00","archivedDate":null,"name":"Director of Marketing Communications"},{"id":18151,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of People Operations"},{"id":18185,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Portfolio"},{"id":18186,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Portfolio Strategy"},{"id":18119,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Product & Design"},{"id":18201,"archived":"no","createdDate":"2015-08-17T20:23:50+00:00","archivedDate":null,"name":"Director of Product Development"},{"id":18012,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Director of Product Strategy"},{"id":18132,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of QA & Support"},{"id":18032,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Director of Quality Assurance"},{"id":18194,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Revenue Management"},{"id":18110,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Sales"},{"id":18213,"archived":"no","createdDate":"2016-02-22T19:12:11+00:00","archivedDate":null,"name":"Director of Strategic Partnerships"},{"id":18190,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Strategy & Production"},{"id":18150,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Talent Development"},{"id":18157,"archived":"no","createdDate":null,"archivedDate":null,"name":"Director of Training & Organizational Development"},{"id":18172,"archived":"no","createdDate":null,"archivedDate":null,"name":"EVP and Director of Sales"},{"id":18242,"archived":"no","createdDate":"2017-07-26T13:09:30+00:00","archivedDate":null,"name":" Executive Director of Client Engagement"},{"id":18167,"archived":"no","createdDate":null,"archivedDate":null,"name":"Executive Vice President"},{"id":18229,"archived":"no","createdDate":"2016-09-06T18:02:10+00:00","archivedDate":null,"name":"Head of Design"},{"id":18253,"archived":"no","createdDate":"2017-12-17T23:12:24+00:00","archivedDate":null,"name":"Intake Manager"},{"id":18237,"archived":"no","createdDate":"2017-06-02T13:49:50+00:00","archivedDate":null,"name":"Intern"},{"id":18204,"archived":"no","createdDate":"2015-09-09T19:16:49+00:00","archivedDate":null,"name":"Junior Software Engineer"},{"id":18235,"archived":"no","createdDate":"2017-01-11T21:20:01+00:00","archivedDate":null,"name":"Manager"},{"id":18236,"archived":"no","createdDate":"2017-01-12T16:33:52+00:00","archivedDate":null,"name":"Manager, Digital Advisory"},{"id":18130,"archived":"no","createdDate":null,"archivedDate":null,"name":"Manager of QA & Support"},{"id":18134,"archived":"no","createdDate":null,"archivedDate":null,"name":"Managing Director"},{"id":18231,"archived":"no","createdDate":"2017-01-02T20:43:28+00:00","archivedDate":null,"name":"Managing Director, Digital Advisory"},{"id":18243,"archived":"no","createdDate":"2017-08-07T20:06:09+00:00","archivedDate":null,"name":"Marketing"},{"id":18039,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Office Administrator"},{"id":17998,"archived":"no","createdDate":null,"archivedDate":null,"name":"Office Manager"},{"id":18199,"archived":"no","createdDate":null,"archivedDate":null,"name":"People Engagement Manager"},{"id":18200,"archived":"no","createdDate":null,"archivedDate":null,"name":"People Operations Manager"},{"id":18178,"archived":"no","createdDate":null,"archivedDate":null,"name":"People Person"},{"id":18165,"archived":"no","createdDate":null,"archivedDate":null,"name":"Principal Architectural Consultant"},{"id":18129,"archived":"no","createdDate":null,"archivedDate":null,"name":"Principal Software Engineer"},{"id":18222,"archived":"no","createdDate":"2016-04-25T15:49:05+00:00","archivedDate":null,"name":"Product Designer"},{"id":18205,"archived":"no","createdDate":"2015-09-14T13:31:51+00:00","archivedDate":null,"name":"Product Desinger"},{"id":18223,"archived":"no","createdDate":"2016-05-31T17:32:18+00:00","archivedDate":null,"name":"Product Intern"},{"id":18184,"archived":"no","createdDate":null,"archivedDate":null,"name":"Product Lead"},{"id":18010,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Product Manager"},{"id":18015,"archived":"no","createdDate":null,"archivedDate":null,"name":"Product Strategist"},{"id":18175,"archived":"no","createdDate":null,"archivedDate":null,"name":"Product Strategy Lead"},{"id":18219,"archived":"no","createdDate":"2016-04-25T15:41:32+00:00","archivedDate":null,"name":"Program Engagement Manager"},{"id":18220,"archived":"no","createdDate":"2016-04-25T15:42:10+00:00","archivedDate":null,"name":"Program Operations Manager"},{"id":18034,"archived":"no","createdDate":null,"archivedDate":null,"name":"Project Assistant"},{"id":18037,"archived":"no","createdDate":null,"archivedDate":null,"name":"Project Coordinator"},{"id":18106,"archived":"no","createdDate":null,"archivedDate":null,"name":"Project Manager"},{"id":18031,"archived":"no","createdDate":null,"archivedDate":null,"name":"QA Analyst"},{"id":18135,"archived":"no","createdDate":null,"archivedDate":null,"name":"QA Automation Developer"},{"id":18033,"archived":"no","createdDate":null,"archivedDate":null,"name":"QA Contractor"},{"id":18234,"archived":"no","createdDate":"2017-01-11T21:19:53+00:00","archivedDate":null,"name":"QA Lead"},{"id":18013,"archived":"no","createdDate":null,"archivedDate":null,"name":"QA Tester"},{"id":18173,"archived":"no","createdDate":null,"archivedDate":null,"name":"Recruiter"},{"id":18166,"archived":"no","createdDate":null,"archivedDate":null,"name":"Recruiting Coordinator"},{"id":18171,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales Coordinator"},{"id":18026,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales Development"},{"id":18016,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales Development Associate"},{"id":18146,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales Development Rep"},{"id":18168,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales Director"},{"id":17996,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales Executive"},{"id":18020,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Sales Manager/Owner"},{"id":18170,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales Operations Manager"},{"id":18224,"archived":"no","createdDate":"2016-06-28T17:44:47+00:00","archivedDate":null,"name":"Sales Support Admin"},{"id":18183,"archived":"no","createdDate":null,"archivedDate":null,"name":"Senior Designer"},{"id":18022,"archived":"no","createdDate":null,"archivedDate":null,"name":"Senior Developer"},{"id":18206,"archived":"no","createdDate":"2015-09-14T13:31:59+00:00","archivedDate":null,"name":"Senior Product Designer"},{"id":18210,"archived":"no","createdDate":"2015-09-24T16:18:30+00:00","archivedDate":null,"name":"Senior Product Strategist"},{"id":18207,"archived":"no","createdDate":"2015-09-14T13:35:51+00:00","archivedDate":null,"name":"Senior Project Manager"},{"id":18208,"archived":"no","createdDate":"2015-09-14T13:38:18+00:00","archivedDate":null,"name":"Senior QA Analyst"},{"id":18128,"archived":"no","createdDate":null,"archivedDate":null,"name":"Senior Software Engineer"},{"id":18127,"archived":"no","createdDate":null,"archivedDate":null,"name":"Software Developer"},{"id":18202,"archived":"no","createdDate":"2015-08-18T14:50:38+00:00","archivedDate":null,"name":"Software Engineer"},{"id":18225,"archived":"no","createdDate":"2016-06-28T17:50:24+00:00","archivedDate":null,"name":"Software Engineer Intern"},{"id":18105,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Software Tester"},{"id":17993,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sr. Developer"},{"id":18176,"archived":"no","createdDate":null,"archivedDate":null,"name":"Team Lead, Product Strategy"},{"id":18126,"archived":"no","createdDate":null,"archivedDate":null,"name":"UX Designer"},{"id":18025,"archived":"no","createdDate":null,"archivedDate":null,"name":"Web Developer"},{"id":18040,"archived":"no","createdDate":null,"archivedDate":null,"name":"Web Developer Intern"},{"id":18030,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Writer"}],"alias":"jobTitle"},{"fieldId":18,"manageable":"yes","multiple":"no","name":"Location","options":[{"id":18001,"archived":"no","createdDate":null,"archivedDate":null,"name":"SDW Corporate"},{"id":18148,"archived":"no","createdDate":null,"archivedDate":null,"name":"SDW Denver"},{"id":18003,"archived":"no","createdDate":null,"archivedDate":null,"name":"SDW Remote"},{"id":18002,"archived":"no","createdDate":null,"archivedDate":null,"name":"SDW Space Volcano"}],"alias":"location"},{"fieldId":4,"manageable":"yes","multiple":"no","name":"Department","options":[{"id":18232,"archived":"no","createdDate":"2017-01-03T20:51:26+00:00","archivedDate":null,"name":"Advisory"},{"id":18181,"archived":"no","createdDate":null,"archivedDate":null,"name":"All Employees"},{"id":18140,"archived":"no","createdDate":null,"archivedDate":null,"name":"Client Services"},{"id":18045,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Client Services Department"},{"id":18035,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Delivery Department"},{"id":18137,"archived":"no","createdDate":null,"archivedDate":null,"name":"Design"},{"id":18019,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Design Department"},{"id":18138,"archived":"no","createdDate":null,"archivedDate":null,"name":"Development"},{"id":18009,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Development Department"},{"id":18233,"archived":"no","createdDate":"2017-01-03T20:56:45+00:00","archivedDate":null,"name":"Digital Advisory"},{"id":18142,"archived":"no","createdDate":null,"archivedDate":null,"name":"Executive"},{"id":18021,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Executive Department"},{"id":18192,"archived":"no","createdDate":null,"archivedDate":null,"name":"Finance"},{"id":18143,"archived":"no","createdDate":null,"archivedDate":null,"name":"Marketing"},{"id":18141,"archived":"no","createdDate":null,"archivedDate":null,"name":"Operations"},{"id":18029,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Operations Department"},{"id":18152,"archived":"no","createdDate":null,"archivedDate":null,"name":"People"},{"id":18136,"archived":"no","createdDate":null,"archivedDate":null,"name":"Product"},{"id":18125,"archived":"no","createdDate":null,"archivedDate":null,"name":"Product & Design Department"},{"id":18011,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Product Department"},{"id":18191,"archived":"no","createdDate":null,"archivedDate":null,"name":"Project Management"},{"id":18139,"archived":"no","createdDate":null,"archivedDate":null,"name":"QA"},{"id":18014,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Quality Assurance Department"},{"id":18144,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales"},{"id":18017,"archived":"yes","createdDate":null,"archivedDate":null,"name":"Sales & Marketing Department"},{"id":18164,"archived":"no","createdDate":null,"archivedDate":null,"name":"Service Delivery"}],"alias":"department"},{"fieldId":1359,"manageable":"no","multiple":"no","name":"FLSA Code","options":[{"id":17927,"archived":"no","createdDate":null,"archivedDate":null,"name":"Exempt"},{"id":17928,"archived":"no","createdDate":null,"archivedDate":null,"name":"Non-exempt"}],"alias":"exempt"},{"fieldId":1360,"manageable":"no","multiple":"no","name":"Termination Type","options":[{"id":17931,"archived":"no","createdDate":null,"archivedDate":null,"name":"Death"},{"id":17930,"archived":"no","createdDate":null,"archivedDate":null,"name":"Involuntary"},{"id":17929,"archived":"no","createdDate":null,"archivedDate":null,"name":"Voluntary"}]},{"fieldId":1361,"manageable":"yes","multiple":"no","name":"Termination Reason","options":[{"id":17932,"archived":"no","createdDate":null,"archivedDate":null,"name":"Attendance"},{"id":18177,"archived":"no","createdDate":null,"archivedDate":null,"name":"Other"},{"id":17933,"archived":"no","createdDate":null,"archivedDate":null,"name":"Other employment"},{"id":17934,"archived":"no","createdDate":null,"archivedDate":null,"name":"Performance"},{"id":17935,"archived":"no","createdDate":null,"archivedDate":null,"name":"Relocation"}]},{"fieldId":22,"manageable":"no","multiple":"no","name":"Eligible for Rehire","options":[{"id":17937,"archived":"no","createdDate":null,"archivedDate":null,"name":"No"},{"id":17938,"archived":"no","createdDate":null,"archivedDate":null,"name":"Upon review"},{"id":17936,"archived":"no","createdDate":null,"archivedDate":null,"name":"Yes"}]},{"fieldId":37,"manageable":"yes","multiple":"no","name":"Driver Classification","options":[{"id":17941,"archived":"no","createdDate":null,"archivedDate":null,"name":"Cannot transport clients"},{"id":17939,"archived":"no","createdDate":null,"archivedDate":null,"name":"Company and personal"},{"id":17940,"archived":"no","createdDate":null,"archivedDate":null,"name":"Company only"}]},{"fieldId":1355,"manageable":"yes","multiple":"no","name":"Division","options":[{"id":18179,"archived":"no","createdDate":null,"archivedDate":null,"name":"CPO PTO approval"},{"id":18156,"archived":"no","createdDate":null,"archivedDate":null,"name":"Recruiter Visible "}],"alias":"division"},{"fieldId":1037,"manageable":"no","multiple":"no","name":"Ethnicity","options":[{"id":17942,"archived":"no","createdDate":null,"archivedDate":null,"name":"American Indian or Alaska Native"},{"id":17943,"archived":"no","createdDate":null,"archivedDate":null,"name":"Asian"},{"id":17944,"archived":"no","createdDate":null,"archivedDate":null,"name":"Black or African American"},{"id":17945,"archived":"no","createdDate":null,"archivedDate":null,"name":"Hispanic or Latino"},{"id":17946,"archived":"no","createdDate":null,"archivedDate":null,"name":"Native Hawaiian or Other Pacific Islander"},{"id":17947,"archived":"no","createdDate":null,"archivedDate":null,"name":"Two or More Races"},{"id":17948,"archived":"no","createdDate":null,"archivedDate":null,"name":"White"}],"alias":"ethnicity"},{"fieldId":157,"manageable":"no","multiple":"no","name":"EEO Job Category","options":[{"id":17954,"archived":"no","createdDate":null,"archivedDate":null,"name":"Administrative Support Workers"},{"id":17955,"archived":"no","createdDate":null,"archivedDate":null,"name":"Craft Workers"},{"id":17949,"archived":"no","createdDate":null,"archivedDate":null,"name":"Executive/Senior Level Officials and Managers"},{"id":17950,"archived":"no","createdDate":null,"archivedDate":null,"name":"First/Mid Level Officials and Managers"},{"id":17957,"archived":"no","createdDate":null,"archivedDate":null,"name":"Laborers and Helpers"},{"id":17956,"archived":"no","createdDate":null,"archivedDate":null,"name":"Operatives"},{"id":17951,"archived":"no","createdDate":null,"archivedDate":null,"name":"Professionals"},{"id":17953,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sales Workers"},{"id":17958,"archived":"no","createdDate":null,"archivedDate":null,"name":"Service Workers"},{"id":17952,"archived":"no","createdDate":null,"archivedDate":null,"name":"Technicians"}],"alias":"eeo"},{"fieldId":4001,"manageable":"no","multiple":"yes","name":"Veteran Status","options":[{"id":17961,"archived":"no","createdDate":null,"archivedDate":null,"name":"Active Duty Wartime or Campaign Badge Veteran"},{"id":17959,"archived":"no","createdDate":null,"archivedDate":null,"name":"Armed Forces Service Medal Veteran"},{"id":17960,"archived":"no","createdDate":null,"archivedDate":null,"name":"Disabled Veteran"},{"id":17962,"archived":"no","createdDate":null,"archivedDate":null,"name":"Recently Separated Veteran"}]},{"fieldId":160,"manageable":"yes","multiple":"no","name":"Emergency Contact Relationship","options":[{"id":17963,"archived":"no","createdDate":null,"archivedDate":null,"name":"Brother"},{"id":17964,"archived":"no","createdDate":null,"archivedDate":null,"name":"Daughter"},{"id":17965,"archived":"no","createdDate":null,"archivedDate":null,"name":"Father"},{"id":17966,"archived":"no","createdDate":null,"archivedDate":null,"name":"Friend"},{"id":17967,"archived":"no","createdDate":null,"archivedDate":null,"name":"Husband"},{"id":17968,"archived":"no","createdDate":null,"archivedDate":null,"name":"Mother"},{"id":18118,"archived":"no","createdDate":null,"archivedDate":null,"name":"Mother-in-law"},{"id":18006,"archived":"no","createdDate":null,"archivedDate":null,"name":"Other"},{"id":17969,"archived":"no","createdDate":null,"archivedDate":null,"name":"Sister"},{"id":17970,"archived":"no","createdDate":null,"archivedDate":null,"name":"Son"},{"id":18042,"archived":"no","createdDate":null,"archivedDate":null,"name":"Spouse "},{"id":17971,"archived":"no","createdDate":null,"archivedDate":null,"name":"Wife"}]},{"fieldId":4166,"manageable":"no","multiple":"no","name":"Benefit Class: Change Reason","options":[{"id":17972,"archived":"no","createdDate":null,"archivedDate":null,"name":"Disability"},{"id":17973,"archived":"no","createdDate":null,"archivedDate":null,"name":"Military leave"},{"id":17975,"archived":"no","createdDate":null,"archivedDate":null,"name":"No Reason"},{"id":17974,"archived":"no","createdDate":null,"archivedDate":null,"name":"Reduction in hours"}],"alias":"benefitClassChangeReason"},{"fieldId":4017,"manageable":"yes","multiple":"no","name":"Compensation Change Reason","options":[{"id":18121,"archived":"no","createdDate":null,"archivedDate":null,"name":"Across the board"},{"id":18154,"archived":"no","createdDate":null,"archivedDate":null,"name":"Cost of Living"},{"id":18198,"archived":"no","createdDate":null,"archivedDate":null,"name":"Job Reclassification"},{"id":18123,"archived":"no","createdDate":null,"archivedDate":null,"name":"Merit"},{"id":18122,"archived":"no","createdDate":null,"archivedDate":null,"name":"New Hire"},{"id":18145,"archived":"no","createdDate":null,"archivedDate":null,"name":"Promotion "},{"id":18124,"archived":"no","createdDate":null,"archivedDate":null,"name":"Reduction"}],"alias":"payChangeReason"},{"fieldId":4050,"manageable":"yes","multiple":"no","name":"Training Category","options":[{"id":18188,"archived":"no","createdDate":null,"archivedDate":null,"name":"Conference"},{"id":18189,"archived":"no","createdDate":null,"archivedDate":null,"name":"People Manager"},{"id":18043,"archived":"no","createdDate":null,"archivedDate":null,"name":"Safety"}]},{"fieldId":4153,"manageable":"yes","multiple":"no","name":"Bonus: Reason","options":[],"alias":"bonusReason"},{"fieldId":4160,"manageable":"yes","multiple":"no","name":"ADP Company Code","options":[],"alias":"adpCompanyCode"},{"fieldId":4165,"manageable":"yes","multiple":"no","name":"Benefit Class: Class","options":[],"alias":"benefitClassClass"},{"fieldId":4167,"manageable":"yes","multiple":"no","name":"Job Information: Change Reason","options":[]},{"fieldId":4170,"manageable":"yes","multiple":"no","name":"Visa","options":[{"id":17976,"archived":"no","createdDate":null,"archivedDate":null,"name":"B1"},{"id":17977,"archived":"no","createdDate":null,"archivedDate":null,"name":"B2"},{"id":17978,"archived":"no","createdDate":null,"archivedDate":null,"name":"H1B"},{"id":17979,"archived":"no","createdDate":null,"archivedDate":null,"name":"H2B"},{"id":17980,"archived":"no","createdDate":null,"archivedDate":null,"name":"L1A"},{"id":17981,"archived":"no","createdDate":null,"archivedDate":null,"name":"L1B"},{"id":17982,"archived":"no","createdDate":null,"archivedDate":null,"name":"Permanent Resident"},{"id":17983,"archived":"no","createdDate":null,"archivedDate":null,"name":"TN1"}]},{"fieldId":4197,"manageable":"yes","multiple":"no","name":"Item","options":[{"id":18116,"archived":"no","createdDate":null,"archivedDate":null,"name":"Access Card"},{"id":18050,"archived":"no","createdDate":null,"archivedDate":null,"name":"Adapter"},{"id":18074,"archived":"no","createdDate":null,"archivedDate":null,"name":"Adaptor/Charger"},{"id":18057,"archived":"no","createdDate":null,"archivedDate":null,"name":"Back Pack"},{"id":18075,"archived":"no","createdDate":null,"archivedDate":null,"name":"Battery Pack"},{"id":18076,"archived":"no","createdDate":null,"archivedDate":null,"name":"Body Mount"},{"id":18053,"archived":"no","createdDate":null,"archivedDate":null,"name":"Book"},{"id":18077,"archived":"no","createdDate":null,"archivedDate":null,"name":"Cable"},{"id":18078,"archived":"no","createdDate":null,"archivedDate":null,"name":"Camera Battery Pack"},{"id":18079,"archived":"no","createdDate":null,"archivedDate":null,"name":"Camera Lens"},{"id":18080,"archived":"no","createdDate":null,"archivedDate":null,"name":"Case"},{"id":18068,"archived":"no","createdDate":null,"archivedDate":null,"name":"Charger Converter"},{"id":18099,"archived":"no","createdDate":null,"archivedDate":null,"name":"Computer Stand"},{"id":18081,"archived":"no","createdDate":null,"archivedDate":null,"name":"Cover"},{"id":18060,"archived":"no","createdDate":null,"archivedDate":null,"name":"Dell"},{"id":18101,"archived":"no","createdDate":null,"archivedDate":null,"name":"Desktop"},{"id":18069,"archived":"no","createdDate":null,"archivedDate":null,"name":"Ethernet Adapter"},{"id":18071,"archived":"no","createdDate":null,"archivedDate":null,"name":"External Hardrive"},{"id":18072,"archived":"no","createdDate":null,"archivedDate":null,"name":"External Hardrive Case"},{"id":18082,"archived":"no","createdDate":null,"archivedDate":null,"name":"Eyecup"},{"id":18083,"archived":"no","createdDate":null,"archivedDate":null,"name":"Grip"},{"id":18084,"archived":"no","createdDate":null,"archivedDate":null,"name":"Handle"},{"id":18058,"archived":"no","createdDate":null,"archivedDate":null,"name":"Headphones"},{"id":18054,"archived":"no","createdDate":null,"archivedDate":null,"name":"Headset"},{"id":18061,"archived":"no","createdDate":null,"archivedDate":null,"name":"Install drive"},{"id":18063,"archived":"no","createdDate":null,"archivedDate":null,"name":"iPad"},{"id":18047,"archived":"no","createdDate":null,"archivedDate":null,"name":"Keyboard"},{"id":18051,"archived":"no","createdDate":null,"archivedDate":null,"name":"Laptop"},{"id":18059,"archived":"no","createdDate":null,"archivedDate":null,"name":"Laptop Bag"},{"id":18056,"archived":"no","createdDate":null,"archivedDate":null,"name":"Laptop Case"},{"id":18046,"archived":"no","createdDate":null,"archivedDate":null,"name":"Laptop stand"},{"id":18085,"archived":"no","createdDate":null,"archivedDate":null,"name":"Lens"},{"id":18086,"archived":"no","createdDate":null,"archivedDate":null,"name":"Lens Adapter"},{"id":18087,"archived":"no","createdDate":null,"archivedDate":null,"name":"Lens Hood"},{"id":18180,"archived":"no","createdDate":null,"archivedDate":null,"name":"MacBook Air"},{"id":18100,"archived":"no","createdDate":null,"archivedDate":null,"name":"MacBook Pro"},{"id":18067,"archived":"no","createdDate":null,"archivedDate":null,"name":"Magic Mouse"},{"id":18064,"archived":"no","createdDate":null,"archivedDate":null,"name":"Magic Trackpad"},{"id":18066,"archived":"no","createdDate":null,"archivedDate":null,"name":"Memory Card"},{"id":18088,"archived":"no","createdDate":null,"archivedDate":null,"name":"Microphone"},{"id":18089,"archived":"no","createdDate":null,"archivedDate":null,"name":"Microphone Stand"},{"id":18090,"archived":"no","createdDate":null,"archivedDate":null,"name":"Microphone Stand Bag"},{"id":18049,"archived":"no","createdDate":null,"archivedDate":null,"name":"Monitor"},{"id":18062,"archived":"no","createdDate":null,"archivedDate":null,"name":"Monitor Arm"},{"id":18052,"archived":"no","createdDate":null,"archivedDate":null,"name":"Mouse"},{"id":18120,"archived":"no","createdDate":null,"archivedDate":null,"name":"Nexus Phone"},{"id":18073,"archived":"no","createdDate":null,"archivedDate":null,"name":"Phones"},{"id":18098,"archived":"no","createdDate":null,"archivedDate":null,"name":"Portable Drive"},{"id":18065,"archived":"no","createdDate":null,"archivedDate":null,"name":"Power Adapter"},{"id":18091,"archived":"no","createdDate":null,"archivedDate":null,"name":"Remote Control"},{"id":18092,"archived":"no","createdDate":null,"archivedDate":null,"name":"SD Card"},{"id":18093,"archived":"no","createdDate":null,"archivedDate":null,"name":"Shoe Plate"},{"id":18048,"archived":"no","createdDate":null,"archivedDate":null,"name":"Trackpad"},{"id":18094,"archived":"no","createdDate":null,"archivedDate":null,"name":"Transmitter"},{"id":18095,"archived":"no","createdDate":null,"archivedDate":null,"name":"Tuner"},{"id":18055,"archived":"no","createdDate":null,"archivedDate":null,"name":"USB Adapter"},{"id":18096,"archived":"no","createdDate":null,"archivedDate":null,"name":"Video Camera"},{"id":18097,"archived":"no","createdDate":null,"archivedDate":null,"name":"Viewfinder"},{"id":18102,"archived":"no","createdDate":null,"archivedDate":null,"name":"Webcam"},{"id":18070,"archived":"no","createdDate":null,"archivedDate":null,"name":"Wireless Trackpad"}]},{"fieldId":4204,"manageable":"yes","multiple":"no","name":"T-Shirt Size","options":[{"id":18113,"archived":"no","createdDate":null,"archivedDate":null,"name":"L"},{"id":18112,"archived":"no","createdDate":null,"archivedDate":null,"name":"M"},{"id":18111,"archived":"no","createdDate":null,"archivedDate":null,"name":"S"},{"id":18114,"archived":"no","createdDate":null,"archivedDate":null,"name":"XL"},{"id":18115,"archived":"no","createdDate":null,"archivedDate":null,"name":"XXL"}],"alias":"customT-ShirtSize"},{"fieldId":4210,"manageable":"yes","multiple":"yes","name":"Tax ID","options":[],"alias":"employeeTaxId"},{"fieldId":4212,"manageable":"yes","multiple":"no","name":"Benefit Group","options":[],"alias":"benefitGroup"},{"fieldId":4216,"manageable":"yes","multiple":"no","name":"Degree","options":[{"id":18158,"archived":"no","createdDate":null,"archivedDate":null,"name":"Associate's"},{"id":18159,"archived":"no","createdDate":null,"archivedDate":null,"name":"Bachelor's"},{"id":18161,"archived":"no","createdDate":null,"archivedDate":null,"name":"Doctorate"},{"id":18160,"archived":"no","createdDate":null,"archivedDate":null,"name":"Master's"}]},{"fieldId":4237,"manageable":"no","multiple":"no","name":"Termination Type","options":[{"id":17931,"archived":"no","createdDate":null,"archivedDate":null,"name":"Death"},{"id":17930,"archived":"no","createdDate":null,"archivedDate":null,"name":"Involuntary"},{"id":17929,"archived":"no","createdDate":null,"archivedDate":null,"name":"Voluntary"}]},{"fieldId":4238,"manageable":"yes","multiple":"no","name":"Termination Reason","options":[{"id":17932,"archived":"no","createdDate":null,"archivedDate":null,"name":"Attendance"},{"id":18177,"archived":"no","createdDate":null,"archivedDate":null,"name":"Other"},{"id":17933,"archived":"no","createdDate":null,"archivedDate":null,"name":"Other employment"},{"id":17934,"archived":"no","createdDate":null,"archivedDate":null,"name":"Performance"},{"id":17935,"archived":"no","createdDate":null,"archivedDate":null,"name":"Relocation"}]},{"fieldId":4239,"manageable":"no","multiple":"no","name":"Eligible For Re-hire","options":[{"id":17937,"archived":"no","createdDate":null,"archivedDate":null,"name":"No"},{"id":17938,"archived":"no","createdDate":null,"archivedDate":null,"name":"Upon review"},{"id":17936,"archived":"no","createdDate":null,"archivedDate":null,"name":"Yes"}]},{"fieldId":4254,"manageable":"no","multiple":"no","name":"Disability","options":[{"id":18228,"archived":"no","createdDate":"2016-09-01T17:52:05+00:00","archivedDate":null,"name":"No, I don't have a disability"},{"id":18227,"archived":"no","createdDate":"2016-09-01T17:52:05+00:00","archivedDate":null,"name":"Yes, I have a disability (or previously had a disability)"}]},{"fieldId":4263,"manageable":"yes","multiple":"no","name":"Card Type","options":[{"id":18241,"archived":"no","createdDate":null,"archivedDate":null,"name":"American Express"},{"id":18240,"archived":"no","createdDate":null,"archivedDate":null,"name":"Discover"},{"id":18239,"archived":"no","createdDate":null,"archivedDate":null,"name":"MasterCard"},{"id":18238,"archived":"no","createdDate":null,"archivedDate":null,"name":"Visa"}]},{"fieldId":4269,"manageable":"no","multiple":"no","name":"Pay Schedule","options":[{"id":18244,"archived":"no","createdDate":null,"archivedDate":null,"name":"Daily"},{"id":18246,"archived":"no","createdDate":null,"archivedDate":null,"name":"Every other week"},{"id":18248,"archived":"no","createdDate":null,"archivedDate":null,"name":"Monthly"},{"id":18249,"archived":"no","createdDate":null,"archivedDate":null,"name":"Quarterly"},{"id":18247,"archived":"no","createdDate":null,"archivedDate":null,"name":"Twice a month"},{"id":18250,"archived":"no","createdDate":null,"archivedDate":null,"name":"Twice a year"},{"id":18245,"archived":"no","createdDate":null,"archivedDate":null,"name":"Weekly"},{"id":18251,"archived":"no","createdDate":null,"archivedDate":null,"name":"Yearly"}],"alias":"paySchedule"},{"fieldId":4272,"manageable":"yes","multiple":"no","name":"Nationality","options":[]},{"fieldId":"4043","manageable":"no","multiple":"no","name":"Pay Group","options":[],"alias":"payGroup"}] diff --git a/spec/fixtures/meta_users.json b/spec/fixtures/meta_users.json new file mode 100644 index 0000000..9b97931 --- /dev/null +++ b/spec/fixtures/meta_users.json @@ -0,0 +1,4 @@ +HTTP/1.1 200 OK +content-type: application/json; charset=utf-8 +date: Tue, 17 Jun 2014 19:25:35 UTC +{"2286":{"id":2286,"employeeId":40422,"firstName":"Don","lastName":"Post","email":"don@skookum.com","status":"enabled","lastLogin":"2018-02-14T15:31:38+00:00"},"2287":{"id":2287,"employeeId":0,"firstName":"Rebecca delete","lastName":"Siler","email":null,"status":"disabled","lastLogin":"2014-01-29T13:49:38+00:00"},"2292":{"id":2292,"employeeId":40471,"firstName":"Rebecca","lastName":"Siler","email":"rebecca.m.siler@gmail.com","status":"disabled","lastLogin":"2014-04-30T18:25:44+00:00"},"2293":{"id":2293,"employeeId":40474,"firstName":"Katie","lastName":"Thomas","email":"katie@skookum.com","status":"disabled","lastLogin":"2016-10-13T19:40:03+00:00"},"2294":{"id":2294,"employeeId":40430,"firstName":"Erika","lastName":"Carney","email":"erika@skookum.com","status":"disabled","lastLogin":"2017-02-06T16:52:35+00:00"},"2295":{"id":2295,"employeeId":40444,"firstName":"James","lastName":"Hartsell","email":"james@skookum.com","status":"enabled","lastLogin":"2018-02-06T16:28:43+00:00"},"2296":{"id":2296,"employeeId":40469,"firstName":"Christine","lastName":"Hands","email":"christine@skookum.com","status":"enabled","lastLogin":"2018-02-06T03:07:28+00:00"},"2297":{"id":2297,"employeeId":40466,"firstName":"Joe","lastName":"Ryan","email":"joe@skookum.com","status":"enabled","lastLogin":"2018-02-13T21:29:28+00:00"},"2298":{"id":2298,"employeeId":40437,"firstName":"Bryan","lastName":"Delaney","email":"bryan@skookum.com","status":"enabled","lastLogin":"2018-01-29T21:01:17+00:00"},"2299":{"id":2299,"employeeId":40445,"firstName":"Adam","lastName":"Howell","email":"adam@skookum.com","status":"disabled","lastLogin":"2014-03-03T13:48:58+00:00"},"2300":{"id":2300,"employeeId":40456,"firstName":"Josh","lastName":"Oakhurst","email":"josh@skookum.com","status":"disabled","lastLogin":"2015-11-18T23:10:13+00:00"},"2301":{"id":2301,"employeeId":40468,"firstName":"Michael","lastName":"Scully","email":"mscully@skookum.com","status":"disabled","lastLogin":"2016-11-02T16:56:32+00:00"},"2302":{"id":2302,"employeeId":40447,"firstName":"Eric","lastName":"LaForce","email":"eric@skookum.com","status":"disabled","lastLogin":"2015-08-19T22:31:13+00:00"},"2303":{"id":2303,"employeeId":0,"firstName":"Donald","lastName":"Post","email":null,"status":"disabled","lastLogin":"2014-02-13T17:35:03+00:00"},"2305":{"id":2305,"employeeId":40436,"firstName":"Corey","lastName":"Daniels","email":"corey@skookum.com","status":"enabled","lastLogin":"2018-02-07T13:34:35+00:00"},"2306":{"id":2306,"employeeId":0,"firstName":"Don","lastName":"Post","email":null,"status":"disabled","lastLogin":"2014-02-13T14:58:56+00:00"},"2307":{"id":2307,"employeeId":0,"firstName":"don","lastName":"post","email":null,"status":"disabled","lastLogin":"2014-02-13T17:40:53+00:00"},"2308":{"id":2308,"employeeId":40501,"firstName":"Assaf","lastName":"Weinberg","email":"assaf@skookum.com","status":"disabled","lastLogin":"2014-11-01T14:34:25+00:00"},"2309":{"id":2309,"employeeId":40497,"firstName":"Wesley","lastName":"Jones","email":"wesley@skookum.com","status":"enabled","lastLogin":"2018-01-31T21:12:41+00:00"},"2310":{"id":2310,"employeeId":40429,"firstName":"Michael","lastName":"Brown","email":"mbrown@skookum.com","status":"disabled","lastLogin":"2015-05-12T16:13:24+00:00"},"2311":{"id":2311,"employeeId":40432,"firstName":"Tricia","lastName":"Cervenan","email":"tricia@skookum.com","status":"disabled","lastLogin":"2014-08-29T17:59:23+00:00"},"2312":{"id":2312,"employeeId":40434,"firstName":"Jeremy","lastName":"Coggin","email":"jeremy@skookum.com","status":"enabled","lastLogin":"2018-02-14T18:02:24+00:00"},"2313":{"id":2313,"employeeId":40442,"firstName":"Andrew","lastName":"Gertig","email":"andrew@skookum.com","status":"disabled","lastLogin":"2018-01-11T01:55:20+00:00"},"2314":{"id":2314,"employeeId":40467,"firstName":"Heather","lastName":"Scott","email":"heather@skookum.com","status":"disabled","lastLogin":"2017-08-09T15:49:39+00:00"},"2315":{"id":2315,"employeeId":40452,"firstName":"Jonathan","lastName":"Miller","email":"jonathan.miller@skookum.com","status":"enabled","lastLogin":"2018-01-02T14:02:55+00:00"},"2317":{"id":2317,"employeeId":40451,"firstName":"Mark","lastName":"Mathis","email":"markmathis@gmail.com","status":"disabled","lastLogin":"2014-03-21T20:06:30+00:00"},"2318":{"id":2318,"employeeId":40428,"firstName":"David","lastName":"Becher","email":"david@skookum.com","status":"enabled","lastLogin":"2018-01-15T17:52:50+00:00"},"2319":{"id":2319,"employeeId":40431,"firstName":"Matthew","lastName":"Carter","email":"matt@skookum.com","status":"enabled","lastLogin":"2018-02-13T16:46:47+00:00"},"2320":{"id":2320,"employeeId":40435,"firstName":"Jason","lastName":"Dailey","email":"jdailey@skookum.com","status":"disabled","lastLogin":"2014-11-23T14:34:02+00:00"},"2321":{"id":2321,"employeeId":40433,"firstName":"Matt","lastName":"Chambers","email":"chambers.matt@gmail.com","status":"disabled","lastLogin":"2014-06-17T15:44:03+00:00"},"2322":{"id":2322,"employeeId":40438,"firstName":"Michael","lastName":"Drabic","email":"mdrabic@skookum.com","status":"disabled","lastLogin":"2015-04-10T14:46:53+00:00"},"2323":{"id":2323,"employeeId":40439,"firstName":"Patrick","lastName":"Faulkner","email":"pfaulkner@skookum.com","status":"enabled","lastLogin":"2018-01-31T14:39:17+00:00"},"2324":{"id":2324,"employeeId":40440,"firstName":"Mark","lastName":"Flowers","email":"mflowers@skookum.com","status":"enabled","lastLogin":"2018-01-23T21:16:00+00:00"},"2325":{"id":2325,"employeeId":40441,"firstName":"Justin","lastName":"Garrick","email":"jgarrick@skookum.com","status":"disabled","lastLogin":"2015-02-09T23:55:08+00:00"},"2326":{"id":2326,"employeeId":40443,"firstName":"Tessa","lastName":"Harmon","email":"tessa@skookum.com","status":"disabled","lastLogin":"2015-08-26T20:35:22+00:00"},"2327":{"id":2327,"employeeId":40446,"firstName":"Dustan","lastName":"Kasten","email":"dustan@skookum.com","status":"disabled","lastLogin":"2015-06-26T16:40:53+00:00"},"2328":{"id":2328,"employeeId":40448,"firstName":"Keith","lastName":"LaForce","email":"keith@skookum.com","status":"disabled","lastLogin":"2015-08-23T14:42:51+00:00"},"2329":{"id":2329,"employeeId":40449,"firstName":"Patrick","lastName":"Laughlin","email":"plaughlin@skookum.com","status":"disabled","lastLogin":"2015-05-04T18:37:25+00:00"},"2330":{"id":2330,"employeeId":40450,"firstName":"Chris","lastName":"Manley","email":"cmanley@skookum.com","status":"enabled","lastLogin":"2017-10-03T19:19:34+00:00"},"2331":{"id":2331,"employeeId":40453,"firstName":"Chad","lastName":"Moon","email":"chad@skookum.com","status":"disabled","lastLogin":"2015-08-05T18:07:28+00:00"},"2332":{"id":2332,"employeeId":40454,"firstName":"Pat","lastName":"Morrell","email":"pat@skookum.com","status":"disabled","lastLogin":"2016-05-17T18:46:41+00:00"},"2333":{"id":2333,"employeeId":40455,"firstName":"Steve","lastName":"Moser","email":"smoser@skookum.com","status":"disabled","lastLogin":"2014-04-06T19:38:37+00:00"},"2334":{"id":2334,"employeeId":40457,"firstName":"Robert","lastName":"Odell","email":"rob@skookum.com","status":"disabled","lastLogin":"2017-09-20T17:51:18+00:00"},"2335":{"id":2335,"employeeId":40458,"firstName":"Kenny","lastName":"Parnell","email":"kenny@skookum.com","status":"disabled","lastLogin":"2014-08-28T18:46:42+00:00"},"2336":{"id":2336,"employeeId":40461,"firstName":"Mark","lastName":"Rickert","email":"mjar81@gmail.com","status":"disabled","lastLogin":"2014-10-24T21:32:25+00:00"},"2337":{"id":2337,"employeeId":40460,"firstName":"Chuck","lastName":"Preslar","email":"chuck@skookum.com","status":"enabled","lastLogin":"2018-01-10T15:32:26+00:00"},"2338":{"id":2338,"employeeId":40464,"firstName":"Pedro","lastName":"Rodriguez","email":"pedro@skookum.com","status":"disabled","lastLogin":"2016-11-28T17:14:01+00:00"},"2339":{"id":2339,"employeeId":40470,"firstName":"Mel","lastName":"Shields","email":"mshields@skookum.com","status":"enabled","lastLogin":"2018-02-08T01:23:13+00:00"},"2340":{"id":2340,"employeeId":40473,"firstName":"Jason","lastName":"Snodgrass","email":"jsnodgrass@skookum.com","status":"disabled","lastLogin":"2014-03-13T15:31:36+00:00"},"2341":{"id":2341,"employeeId":40472,"firstName":"Jim","lastName":"Snodgrass","email":"jim@skookum.com","status":"disabled","lastLogin":"2014-02-23T12:21:39+00:00"},"2342":{"id":2342,"employeeId":40475,"firstName":"Moby","lastName":"von Briesen","email":"mbriesen@skookum.com","status":"disabled","lastLogin":"2014-07-25T21:17:30+00:00"},"2346":{"id":2346,"employeeId":40509,"firstName":"Phillip","lastName":"Spitler","email":"pspitler@skookum.com","status":"disabled","lastLogin":"2014-04-07T16:43:34+00:00"},"2349":{"id":2349,"employeeId":40517,"firstName":"Edward","lastName":"Arnold","email":"ed@skookum.com","status":"disabled","lastLogin":"2015-08-10T21:10:44+00:00"},"2350":{"id":2350,"employeeId":40518,"firstName":"Patty","lastName":"Delk","email":"patty@skookum.com","status":"disabled","lastLogin":"2015-01-21T15:47:30+00:00"},"2351":{"id":2351,"employeeId":40519,"firstName":"David","lastName":"Thomason","email":"dthomason@skookum.com","status":"disabled","lastLogin":"2015-07-24T13:59:50+00:00"},"2352":{"id":2352,"employeeId":40520,"firstName":"Seth","lastName":"Paye","email":"spaye@skookum.com","status":"enabled","lastLogin":"2018-02-09T15:02:44+00:00"},"2353":{"id":2353,"employeeId":40521,"firstName":"John","lastName":"Ford","email":"jford@skookum.com","status":"disabled","lastLogin":"2015-10-01T13:28:04+00:00"},"2354":{"id":2354,"employeeId":40523,"firstName":"James","lastName":"Wyler","email":"jwyler@skookum.com","status":"enabled","lastLogin":"2018-01-23T22:02:30+00:00"},"2355":{"id":2355,"employeeId":40525,"firstName":"Stephen","lastName":"Davis","email":"stephen@skookum.com","status":"disabled","lastLogin":"2015-11-30T13:57:24+00:00"},"2356":{"id":2356,"employeeId":40528,"firstName":"Kalani","lastName":"Thomas","email":"kalani@skookum.com","status":"disabled","lastLogin":"2015-02-23T13:56:06+00:00"},"2357":{"id":2357,"employeeId":40529,"firstName":"Jonathan","lastName":"Gertig","email":"jgertig@skookum.com","status":"disabled","lastLogin":"2017-03-13T15:25:35+00:00"},"2359":{"id":2359,"employeeId":40530,"firstName":"Robert","lastName":"Luke","email":"rluke@skookum.com","status":"disabled","lastLogin":"2016-09-06T16:54:28+00:00"},"2362":{"id":2362,"employeeId":40531,"firstName":"Sai Phaninder Reddy","lastName":"Jonnala","email":"jspreddy@yahoo.com","status":"disabled","lastLogin":"2014-10-21T19:13:06+00:00"},"2363":{"id":2363,"employeeId":40533,"firstName":"Shonna","lastName":"Reschke","email":"shonnam@live.com","status":"disabled","lastLogin":"2014-07-08T15:56:30+00:00"},"2364":{"id":2364,"employeeId":40534,"firstName":"Jordan","lastName":"Harris","email":"jharris@skookum.com","status":"disabled","lastLogin":"2015-04-16T12:42:15+00:00"},"2365":{"id":2365,"employeeId":40532,"firstName":"Daniel","lastName":"Flowers","email":"dflowers@skookum.com","status":"enabled","lastLogin":"2018-02-09T18:39:24+00:00"},"2366":{"id":2366,"employeeId":40535,"firstName":"Brian","lastName":"Robertson","email":"brobertson@skookum.com","status":"disabled","lastLogin":"2015-12-07T14:44:33+00:00"},"2367":{"id":2367,"employeeId":40536,"firstName":"Danny","lastName":"Blue","email":"dblue@skookum.com","status":"disabled","lastLogin":"2015-04-15T17:56:32+00:00"},"2368":{"id":2368,"employeeId":40537,"firstName":"Kari","lastName":"Brawley","email":"kbrawley@skookum.com","status":"disabled","lastLogin":"2015-04-14T20:22:41+00:00"},"2369":{"id":2369,"employeeId":40538,"firstName":"Robert","lastName":"Florence","email":"rflorence@skookum.com","status":"enabled","lastLogin":"2018-02-08T14:26:38+00:00"},"2370":{"id":2370,"employeeId":40539,"firstName":"Marisa","lastName":"Akers","email":"marisa@skookum.com","status":"disabled","lastLogin":"2015-05-05T13:45:50+00:00"},"2371":{"id":2371,"employeeId":0,"firstName":"Katherine","lastName":"Torres","email":null,"status":"disabled","lastLogin":"2015-02-19T13:49:07+00:00"},"2372":{"id":2372,"employeeId":40545,"firstName":"Dan","lastName":"Simerman","email":"dan.simerman@skookum.com","status":"disabled","lastLogin":"2016-03-22T16:16:01+00:00"},"2373":{"id":2373,"employeeId":40546,"firstName":"Jordan","lastName":"Cardwell","email":"jordan.cardwell@skookum.com","status":"disabled","lastLogin":"2016-01-14T18:36:15+00:00"},"2374":{"id":2374,"employeeId":40547,"firstName":"Evan","lastName":"Booth","email":"evan.booth@skookum.com","status":"disabled","lastLogin":"2016-10-03T04:16:01+00:00"},"2375":{"id":2375,"employeeId":40548,"firstName":"Clay","lastName":"Hefner","email":"clay.hefner@skookum.com","status":"disabled","lastLogin":"2017-07-30T16:00:48+00:00"},"2376":{"id":2376,"employeeId":40549,"firstName":"Peter","lastName":"Zignego","email":"peter.zignego@skookum.com","status":"disabled","lastLogin":"2016-08-01T17:06:35+00:00"},"2377":{"id":2377,"employeeId":40550,"firstName":"Chris","lastName":"Howie","email":"chris.howie@skookum.com","status":"enabled","lastLogin":"2018-02-15T13:58:05+00:00"},"2378":{"id":2378,"employeeId":40552,"firstName":"Blake","lastName":"Hollingsworth","email":"blake.hollingsworth@skookum.com","status":"disabled","lastLogin":"2016-08-17T17:18:25+00:00"},"2379":{"id":2379,"employeeId":40553,"firstName":"Ashlee","lastName":"Cloud","email":"ashlee.cloud@skookum.com","status":"disabled","lastLogin":"2015-08-31T21:59:52+00:00"},"2380":{"id":2380,"employeeId":40555,"firstName":"Trey","lastName":"Robinson","email":"trey.robinson@skookum.com","status":"disabled","lastLogin":"2016-12-20T14:33:15+00:00"},"2381":{"id":2381,"employeeId":40557,"firstName":"John","lastName":"Matthews","email":"john_matthews@skookum.com","status":"disabled","lastLogin":"2015-06-15T19:08:48+00:00"},"2382":{"id":2382,"employeeId":40558,"firstName":"Enrique","lastName":"Gonzalez","email":"enrique.gonzalez@skookum.com","status":"enabled","lastLogin":"2018-02-03T23:22:53+00:00"},"2384":{"id":2384,"employeeId":40560,"firstName":"Catherine","lastName":"Fogarty","email":"catherine_fogarty@skookum.com","status":"disabled","lastLogin":"2016-05-04T00:10:48+00:00"},"2385":{"id":2385,"employeeId":40561,"firstName":"Kevin","lastName":"Flanagan","email":"kevin.flanagan@skookum.com","status":"disabled","lastLogin":"2015-04-27T12:23:53+00:00"},"2386":{"id":2386,"employeeId":40562,"firstName":"Ryan","lastName":"McNeal","email":"ryan.mcneal@skookum.com","status":"disabled","lastLogin":"2015-11-09T16:46:39+00:00"},"2388":{"id":2388,"employeeId":40563,"firstName":"Glenn","lastName":"Goodrich","email":"glenn.goodrich@skookum.com","status":"enabled","lastLogin":"2018-02-15T18:14:30+00:00"},"2389":{"id":2389,"employeeId":40564,"firstName":"Danielle","lastName":"Long","email":"danielle.long@skookum.com","status":"disabled","lastLogin":"2017-09-11T23:45:51+00:00"},"2390":{"id":2390,"employeeId":40565,"firstName":"Hernande","lastName":"Silva","email":"nande.silva@skookum.com","status":"disabled","lastLogin":"2015-05-13T13:54:28+00:00"},"2391":{"id":2391,"employeeId":40566,"firstName":"Becca","lastName":"Newton","email":"becca.newton@skookum.com","status":"enabled","lastLogin":"2018-02-15T17:10:53+00:00"},"2392":{"id":2392,"employeeId":40567,"firstName":"Jason","lastName":"Rome","email":"jason.rome@skookum.com","status":"enabled","lastLogin":"2018-01-18T14:01:15+00:00"},"2393":{"id":2393,"employeeId":0,"firstName":null,"lastName":null,"email":null,"status":"disabled"},"2394":{"id":2394,"employeeId":0,"firstName":"Mary","lastName":"Koch","email":null,"status":"disabled","lastLogin":"2015-01-06T18:43:03+00:00"},"2396":{"id":2396,"employeeId":40569,"firstName":"SDW","lastName":"Operations","email":"sdwops@skookum.com","status":"disabled","lastLogin":"2015-02-24T20:06:51+00:00"},"2397":{"id":2397,"employeeId":0,"firstName":"Donny","lastName":"Director","email":null,"status":"disabled"},"2399":{"id":2399,"employeeId":40580,"firstName":"Chris","lastName":"Ollenburg","email":"chris.ollenburg@skookum.com","status":"enabled","lastLogin":"2017-11-08T20:14:54+00:00"},"2400":{"id":2400,"employeeId":40581,"firstName":"M","lastName":"Skookum","email":"majid_kn@skookum.com","status":"disabled","lastLogin":"2015-06-01T14:29:27+00:00"},"2401":{"id":2401,"employeeId":40582,"firstName":"Jonathan","lastName":"Miller","email":"jonathan@jonathanlmiller.com","status":"disabled","lastLogin":"2015-07-27T14:56:53+00:00"},"2403":{"id":2403,"employeeId":40583,"firstName":"Gabe","lastName":"Tsu","email":"gabe.tsu@skookum.com","status":"enabled","lastLogin":"2018-02-12T22:32:04+00:00"},"2404":{"id":2404,"employeeId":40584,"firstName":"Andrew","lastName":"Hager","email":"andrew.hager@skookum.com","status":"enabled","lastLogin":"2018-02-15T14:18:28+00:00"},"2405":{"id":2405,"employeeId":40585,"firstName":"Jeremy","lastName":"Conkin","email":"jeremy.conkin@skookum.com","status":"disabled","lastLogin":"2016-04-17T19:14:18+00:00"},"2406":{"id":2406,"employeeId":40586,"firstName":"Tracy","lastName":"Caruso","email":"tracy.caruso@skookum.com","status":"disabled","lastLogin":"2017-06-09T20:27:37+00:00"},"2407":{"id":2407,"employeeId":40587,"firstName":"Alan","lastName":"Chavez","email":"alan.chavez@skookum.com","status":"disabled","lastLogin":"2017-03-02T19:05:32+00:00"},"2409":{"id":2409,"employeeId":40588,"firstName":"Roeland","lastName":"van Krieken","email":"roeland@skookum.com","status":"disabled","lastLogin":"2016-05-27T15:21:13+00:00"},"2411":{"id":2411,"employeeId":40589,"firstName":"Michelle","lastName":"Cash","email":"michelle.cash@skookum.com","status":"disabled","lastLogin":"2017-10-09T20:52:20+00:00"},"2412":{"id":2412,"employeeId":40590,"firstName":"Shannon","lastName":"Hager","email":"shannon.hager@skookum.com","status":"enabled","lastLogin":"2018-01-19T21:51:10+00:00"},"2413":{"id":2413,"employeeId":40592,"firstName":"Tiffanie","lastName":"Terry","email":"tiffanie.terry@skookum.com","status":"enabled","lastLogin":"2018-02-12T19:44:47+00:00"},"2414":{"id":2414,"employeeId":40593,"firstName":"Tirell","lastName":"Mckinnon","email":"tirell.mckinnon@skookum.com","status":"enabled","lastLogin":"2018-02-05T14:43:00+00:00"},"2416":{"id":2416,"employeeId":40591,"firstName":"John","lastName":"Jackson","email":"john.jackson@skookum.com","status":"disabled","lastLogin":"2017-10-09T13:11:17+00:00"},"2417":{"id":2417,"employeeId":40594,"firstName":"Christopher","lastName":"Brown","email":"chris.brown@skookum.com","status":"enabled","lastLogin":"2018-01-11T22:03:58+00:00"},"2418":{"id":2418,"employeeId":40595,"firstName":"Lindsay","lastName":"Berry","email":"lindsay.berry@skookum.com","status":"enabled","lastLogin":"2018-02-14T22:46:37+00:00"},"2419":{"id":2419,"employeeId":40596,"firstName":"Mindy","lastName":"Windle","email":"mindy.windle@skookum.com","status":"enabled","lastLogin":"2018-02-09T19:45:50+00:00"},"2420":{"id":2420,"employeeId":40597,"firstName":"Brad","lastName":"Schmitt","email":"brad.schmitt@skookum.com","status":"enabled","lastLogin":"2018-01-26T14:23:25+00:00"},"2421":{"id":2421,"employeeId":40598,"firstName":"Alex","lastName":"Buchanan","email":"alex.buchanan@skookum.com","status":"enabled","lastLogin":"2018-02-06T22:09:51+00:00"},"2422":{"id":2422,"employeeId":40599,"firstName":"Yassi","lastName":"Hilal","email":"yassi.hilal@skookum.com","status":"disabled","lastLogin":"2016-09-27T18:33:41+00:00"},"2423":{"id":2423,"employeeId":40600,"firstName":"Josh","lastName":"Miller","email":"josh.miller@skookum.com","status":"enabled","lastLogin":"2018-02-11T23:33:04+00:00"},"2424":{"id":2424,"employeeId":40601,"firstName":"John","lastName":"Mason","email":"john.mason@skookum.com","status":"disabled","lastLogin":"2017-01-03T13:47:27+00:00"},"2425":{"id":2425,"employeeId":40602,"firstName":"Andrew","lastName":"Cohen","email":"andrew.cohen@skookum.com","status":"disabled","lastLogin":"2017-06-21T20:33:42+00:00"},"2426":{"id":2426,"employeeId":40603,"firstName":"Jacob","lastName":"LeGrone","email":"jacob.legrone@skookum.com","status":"enabled","lastLogin":"2017-09-21T03:27:21+00:00"},"2427":{"id":2427,"employeeId":40604,"firstName":"Joel","lastName":"Bowen","email":"joel.bowen@skookum.com","status":"enabled","lastLogin":"2018-01-29T13:24:20+00:00"},"2428":{"id":2428,"employeeId":40605,"firstName":"Chris","lastName":"Hood","email":"chris.hood@skookum.com","status":"enabled","lastLogin":"2017-10-23T00:15:35+00:00"},"2430":{"id":2430,"employeeId":40606,"firstName":"Justin","lastName":"Reid","email":"justin.reid@skookum.com","status":"enabled","lastLogin":"2018-01-08T18:42:48+00:00"},"2431":{"id":2431,"employeeId":40607,"firstName":"Rachel","lastName":"Cope","email":"rachel.cope@skookum.com","status":"disabled","lastLogin":"2017-06-16T23:07:54+00:00"},"2433":{"id":2433,"employeeId":40608,"firstName":"Nolan","lastName":"Combs","email":"nolan.combs@skookum.com","status":"disabled","lastLogin":"2017-08-07T11:15:14+00:00"},"2434":{"id":2434,"employeeId":40609,"firstName":"Michael","lastName":"Dupree","email":"michael.dupree@skookum.com","status":"disabled","lastLogin":"2017-07-17T18:14:05+00:00"},"2438":{"id":2438,"employeeId":40610,"firstName":"Alex","lastName":"Lee","email":"alex_lee@skookum.com","status":"disabled","lastLogin":"2017-06-22T13:20:55+00:00"},"2441":{"id":2441,"employeeId":40611,"firstName":"Kevin","lastName":"Rowland","email":"kevin@skookum.com","status":"enabled","lastLogin":"2017-11-20T22:35:18+00:00"},"2442":{"id":2442,"employeeId":40612,"firstName":"Alex","lastName":"Boyd","email":"Alex.boyd@skookum.com","status":"enabled","lastLogin":"2018-02-14T16:50:40+00:00"},"2443":{"id":2443,"employeeId":40613,"firstName":"Sarah","lastName":"Sambuco","email":"Sarah.sambuco@skookum.com","status":"enabled","lastLogin":"2018-02-12T18:53:59+00:00"},"2444":{"id":2444,"employeeId":40614,"firstName":"Steph","lastName":"Hill","email":"stephanie.hill@skookum.com","status":"enabled","lastLogin":"2018-02-05T17:43:15+00:00"},"2445":{"id":2445,"employeeId":40615,"firstName":"Matt","lastName":"Russell","email":"matt.russell@skookum.com","status":"enabled","lastLogin":"2018-02-12T18:44:14+00:00"},"2446":{"id":2446,"employeeId":40616,"firstName":"Scottie","lastName":"Crump","email":"scottie.crump@skookum.com","status":"enabled","lastLogin":"2018-02-12T14:29:02+00:00"},"2447":{"id":2447,"employeeId":40617,"firstName":"Eric","lastName":"Allen","email":"eric.allen@skookum.com","status":"enabled","lastLogin":"2018-02-11T21:35:25+00:00"},"2448":{"id":2448,"employeeId":40618,"firstName":"Drey","lastName":"Stepanyuk","email":"drey.stepanyuk@skookum.com","status":"enabled","lastLogin":"2018-01-14T03:21:45+00:00"},"2449":{"id":2449,"employeeId":40619,"firstName":"Ryan","lastName":"Prudhomme","email":"ryan.prudhomme@skookum.com","status":"enabled","lastLogin":"2018-01-21T04:27:07+00:00"},"2450":{"id":2450,"employeeId":40620,"firstName":"Max","lastName":"Stiling","email":"max.stiling@skookum.com","status":"enabled","lastLogin":"2018-02-15T16:57:56+00:00"},"2451":{"id":2451,"employeeId":40621,"firstName":"Jason","lastName":"Farmer","email":"jason.farmer@skookum.com","status":"enabled","lastLogin":"2018-02-02T19:58:24+00:00"},"2453":{"id":2453,"employeeId":40622,"firstName":"Lye","lastName":"Lawrence","email":"lye.lawrence@skookum.com","status":"enabled","lastLogin":"2018-02-14T20:09:44+00:00"},"2454":{"id":2454,"employeeId":40623,"firstName":"Drew","lastName":"Terry","email":"drew.terry@skookum.com","status":"enabled","lastLogin":"2018-02-09T16:20:53+00:00"}} diff --git a/spec/lib/bamboozled/api/meta_spec.rb b/spec/lib/bamboozled/api/meta_spec.rb new file mode 100644 index 0000000..47296bd --- /dev/null +++ b/spec/lib/bamboozled/api/meta_spec.rb @@ -0,0 +1,32 @@ +require "spec_helper" + +RSpec.describe "Meta" do + + before do + @client = Bamboozled.client(subdomain: "x", api_key: "x") + end + + it "Gets all users" do + response = File.new("spec/fixtures/meta_users.json") + stub_request(:any, /.*api\.bamboohr\.com.*/).to_return(response) + + users = @client.meta.users + expect(users).to be_a Array + end + + it "Gets all fields" do + response = File.new("spec/fixtures/meta_fields.json") + stub_request(:any, /.*api\.bamboohr\.com.*/).to_return(response) + + fields = @client.meta.fields + expect(fields).to be_a Array + end + + it "Gets the lists" do + response = File.new("spec/fixtures/meta_lists.json") + stub_request(:any, /.*api\.bamboohr\.com.*/).to_return(response) + + fields = @client.meta.lists + expect(fields).to be_a Array + end +end