@gusto/embedded-react-sdk 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +13 -0
  2. package/dist/COOQDZLH-B5iac4ID.js +34 -0
  3. package/dist/COOQDZLH-B5iac4ID.js.map +1 -0
  4. package/dist/Company.AddBank--N4kK8CC.js +28 -0
  5. package/dist/Company.AddBank--N4kK8CC.js.map +1 -0
  6. package/dist/Company.Addresses-BLDgBmOD.js +20 -0
  7. package/dist/Company.Addresses-BLDgBmOD.js.map +1 -0
  8. package/dist/Company.FederalTaxes-BdJHqgfQ.js +56 -0
  9. package/dist/Company.FederalTaxes-BdJHqgfQ.js.map +1 -0
  10. package/dist/Company.Industry-DQWpE1lr.js +18 -0
  11. package/dist/Company.Industry-DQWpE1lr.js.map +1 -0
  12. package/dist/Employee.BankAccount-DFNmm0eF.js +36 -0
  13. package/dist/Employee.BankAccount-DFNmm0eF.js.map +1 -0
  14. package/dist/Employee.Compensation-BwQ0aU6j.js +69 -0
  15. package/dist/Employee.Compensation-BwQ0aU6j.js.map +1 -0
  16. package/dist/Employee.Deductions-v07AzjHC.js +52 -0
  17. package/dist/Employee.Deductions-v07AzjHC.js.map +1 -0
  18. package/dist/Employee.EmployeeList-ezoiz5mY.js +34 -0
  19. package/dist/Employee.EmployeeList-ezoiz5mY.js.map +1 -0
  20. package/dist/Employee.HomeAddress-DR_603p_.js +45 -0
  21. package/dist/Employee.HomeAddress-DR_603p_.js.map +1 -0
  22. package/dist/Employee.OnboardingSummary-CX_vCaZK.js +34 -0
  23. package/dist/Employee.OnboardingSummary-CX_vCaZK.js.map +1 -0
  24. package/dist/Employee.PaySchedules-C3chTJFz.js +18 -0
  25. package/dist/Employee.PaySchedules-C3chTJFz.js.map +1 -0
  26. package/dist/Employee.PaymentMethod-lPeUXCVJ.js +56 -0
  27. package/dist/Employee.PaymentMethod-lPeUXCVJ.js.map +1 -0
  28. package/dist/Employee.Profile-B_wp6Ee2.js +53 -0
  29. package/dist/Employee.Profile-B_wp6Ee2.js.map +1 -0
  30. package/dist/Employee.SplitPaycheck-DuzIuN4Y.js +42 -0
  31. package/dist/Employee.SplitPaycheck-DuzIuN4Y.js.map +1 -0
  32. package/dist/Employee.StateTaxes-5hNQeRZm.js +14 -0
  33. package/dist/Employee.StateTaxes-5hNQeRZm.js.map +1 -0
  34. package/dist/Employee.Taxes-DrKjSqOM.js +48 -0
  35. package/dist/Employee.Taxes-DrKjSqOM.js.map +1 -0
  36. package/dist/MU7WGUJF-D3o-8MpJ.js +43 -0
  37. package/dist/MU7WGUJF-D3o-8MpJ.js.map +1 -0
  38. package/dist/Payroll.PayrollHistoryList-vkBomN9P.js +16 -0
  39. package/dist/Payroll.PayrollHistoryList-vkBomN9P.js.map +1 -0
  40. package/dist/Payroll.PayrollSchedule-DR1oc4YN.js +27 -0
  41. package/dist/Payroll.PayrollSchedule-DR1oc4YN.js.map +1 -0
  42. package/dist/VREWMQAW-BCWuoH6G.js +8929 -0
  43. package/dist/VREWMQAW-BCWuoH6G.js.map +1 -0
  44. package/dist/index-G-nwCZPb.js +32491 -0
  45. package/dist/index-G-nwCZPb.js.map +1 -0
  46. package/dist/index.js +71 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/src/api/client.d.ts +1361 -0
  49. package/dist/src/api/constants.d.ts +1 -0
  50. package/dist/src/api/context.d.ts +14 -0
  51. package/dist/src/api/queries/company.d.ts +267 -0
  52. package/dist/src/api/queries/employee.d.ts +586 -0
  53. package/dist/src/api/queries/helpers.d.ts +19 -0
  54. package/dist/src/api/queries/index.d.ts +3 -0
  55. package/dist/src/api/queries/payroll.d.ts +26 -0
  56. package/dist/src/api/typeHelpers.d.ts +18 -0
  57. package/dist/src/components/Base/Base.d.ts +25 -0
  58. package/dist/src/components/Base/index.d.ts +1 -0
  59. package/dist/src/components/Common/Alert/Alert.d.ts +6 -0
  60. package/dist/src/components/Common/Button/Button.d.ts +8 -0
  61. package/dist/src/components/Common/Checkbox/Checkbox.d.ts +7 -0
  62. package/dist/src/components/Common/DateField/DateField.d.ts +8 -0
  63. package/dist/src/components/Common/EmptyData/EmptyData.d.ts +6 -0
  64. package/dist/src/components/Common/Flex/Flex.d.ts +12 -0
  65. package/dist/src/components/Common/Hamburger/Hamburger.d.ts +10 -0
  66. package/dist/src/components/Common/InternalError/InternalError.d.ts +2 -0
  67. package/dist/src/components/Common/Loading/Loading.d.ts +1 -0
  68. package/dist/src/components/Common/NumberField/NumberField.d.ts +9 -0
  69. package/dist/src/components/Common/Select/Select.d.ts +17 -0
  70. package/dist/src/components/Common/TaxInputs/TaxInputs.d.ts +21 -0
  71. package/dist/src/components/Common/TaxInputs/index.d.ts +1 -0
  72. package/dist/src/components/Common/Toast/Toast.d.ts +4 -0
  73. package/dist/src/components/Common/hooks/useAsyncError.d.ts +5 -0
  74. package/dist/src/components/Common/index.d.ts +14 -0
  75. package/dist/src/components/Company/Addresses.d.ts +7 -0
  76. package/dist/src/components/Company/BankAccount.d.ts +6 -0
  77. package/dist/src/components/Company/FederalTaxes.d.ts +7 -0
  78. package/dist/src/components/Company/Industry.d.ts +12 -0
  79. package/dist/src/components/Company/Overview.d.ts +7 -0
  80. package/dist/src/components/Company/StateTaxes.d.ts +6 -0
  81. package/dist/src/components/Company/index.d.ts +5 -0
  82. package/dist/src/components/Employee/BankAccount.d.ts +15 -0
  83. package/dist/src/components/Employee/Compensation/Actions.d.ts +1 -0
  84. package/dist/src/components/Employee/Compensation/Compensation.d.ts +60 -0
  85. package/dist/src/components/Employee/Compensation/Edit.d.ts +1 -0
  86. package/dist/src/components/Employee/Compensation/Head.d.ts +1 -0
  87. package/dist/src/components/Employee/Compensation/List.d.ts +1 -0
  88. package/dist/src/components/Employee/Compensation/index.d.ts +1 -0
  89. package/dist/src/components/Employee/Deductions.d.ts +7 -0
  90. package/dist/src/components/Employee/EditDeduction.d.ts +23 -0
  91. package/dist/src/components/Employee/EmployeeList.d.ts +22 -0
  92. package/dist/src/components/Employee/FederalTaxes.d.ts +1 -0
  93. package/dist/src/components/Employee/OnboardingSummary.d.ts +7 -0
  94. package/dist/src/components/Employee/PaySchedules.d.ts +1 -0
  95. package/dist/src/components/Employee/PaymentMethod.d.ts +1 -0
  96. package/dist/src/components/Employee/PaymentMethodCombo/Actions.d.ts +1 -0
  97. package/dist/src/components/Employee/PaymentMethodCombo/BankAccountEdit.d.ts +9 -0
  98. package/dist/src/components/Employee/PaymentMethodCombo/BankAccountsList.d.ts +1 -0
  99. package/dist/src/components/Employee/PaymentMethodCombo/Head.d.ts +1 -0
  100. package/dist/src/components/Employee/PaymentMethodCombo/PaymentMethod.d.ts +22 -0
  101. package/dist/src/components/Employee/PaymentMethodCombo/PaymentTypeForm.d.ts +11 -0
  102. package/dist/src/components/Employee/PaymentMethodCombo/Split.d.ts +1 -0
  103. package/dist/src/components/Employee/PaymentMethodCombo/index.d.ts +1 -0
  104. package/dist/src/components/Employee/Profile/Actions.d.ts +1 -0
  105. package/dist/src/components/Employee/Profile/HomeAddress.d.ts +12 -0
  106. package/dist/src/components/Employee/Profile/PersonalDetails.d.ts +40 -0
  107. package/dist/src/components/Employee/Profile/Profile.d.ts +37 -0
  108. package/dist/src/components/Employee/Profile/index.d.ts +1 -0
  109. package/dist/src/components/Employee/SplitPaycheck.d.ts +9 -0
  110. package/dist/src/components/Employee/StateTaxes.d.ts +7 -0
  111. package/dist/src/components/Employee/TaxesCombo/Actions.d.ts +1 -0
  112. package/dist/src/components/Employee/TaxesCombo/FederalForm.d.ts +13 -0
  113. package/dist/src/components/Employee/TaxesCombo/FederalHead.d.ts +1 -0
  114. package/dist/src/components/Employee/TaxesCombo/StateForm.d.ts +6 -0
  115. package/dist/src/components/Employee/TaxesCombo/Taxes.d.ts +20 -0
  116. package/dist/src/components/Employee/TaxesCombo/index.d.ts +1 -0
  117. package/dist/src/components/Employee/index.d.ts +9 -0
  118. package/dist/src/components/Flow/CompanyOnboardingFlow.d.ts +10 -0
  119. package/dist/src/components/Flow/EmployeeOnboardingFlow.d.ts +12 -0
  120. package/dist/src/components/Flow/Flow.d.ts +14 -0
  121. package/dist/src/components/Flow/FlowNav.d.ts +1 -0
  122. package/dist/src/components/Flow/StateMachines/companyOnboarding.d.ts +5 -0
  123. package/dist/src/components/Flow/StateMachines/employeeOnboarding.d.ts +12 -0
  124. package/dist/src/components/Flow/StateMachines/index.d.ts +2 -0
  125. package/dist/src/components/Flow/index.d.ts +3 -0
  126. package/dist/src/components/Payroll/PayrollHistoryList.d.ts +1 -0
  127. package/dist/src/components/Payroll/index.d.ts +1 -0
  128. package/dist/src/components/PayrollSchedule/SetupPayrollSchedule.d.ts +6 -0
  129. package/dist/src/components/PayrollSchedule/index.d.ts +1 -0
  130. package/dist/src/components/index.d.ts +4 -0
  131. package/dist/src/components/sample/PaymentMethodSDK.d.ts +1 -0
  132. package/dist/src/contexts/GustoApiProvider/GustoApiProvider.d.ts +15 -0
  133. package/dist/src/contexts/GustoApiProvider/index.d.ts +1 -0
  134. package/dist/src/contexts/LocaleProvider/LocaleProvider.d.ts +8 -0
  135. package/dist/src/contexts/LocaleProvider/index.d.ts +1 -0
  136. package/dist/src/contexts/ThemeProvider/DefaultTheme.d.ts +150 -0
  137. package/dist/src/contexts/ThemeProvider/ThemeProvider.d.ts +12 -0
  138. package/dist/src/contexts/ThemeProvider/ThemeProvider.test.d.ts +1 -0
  139. package/dist/src/contexts/ThemeProvider/index.d.ts +1 -0
  140. package/dist/src/contexts/ThemeProvider/test-utils.d.ts +5 -0
  141. package/dist/src/contexts/index.d.ts +2 -0
  142. package/dist/src/generated/schema.d.ts +15297 -0
  143. package/dist/src/helpers/LRUCache.d.ts +7 -0
  144. package/dist/src/helpers/formattedStrings.d.ts +7 -0
  145. package/dist/src/helpers/formatters.d.ts +2 -0
  146. package/dist/src/helpers/normalizeSSN.d.ts +1 -0
  147. package/dist/src/helpers/payRateCalculator.d.ts +2 -0
  148. package/dist/src/i18n/I18n.d.ts +8 -0
  149. package/dist/src/i18n/en/common.json.d.ts +99 -0
  150. package/dist/src/i18n/index.d.ts +1 -0
  151. package/dist/src/index.d.ts +7 -0
  152. package/dist/src/models/PayPeriod.d.ts +18 -0
  153. package/dist/src/models/Payroll.d.ts +40 -0
  154. package/dist/src/models/PayrollTotals.d.ts +24 -0
  155. package/dist/src/shared/constants.d.ts +124 -0
  156. package/dist/src/types.d.ts +10 -0
  157. package/dist/style.css +1 -0
  158. package/dist/test/api/client.test.d.ts +1 -0
  159. package/dist/test/api/companyFederalTaxes.test.d.ts +1 -0
  160. package/dist/test/api/employeeBankAccounts.test.d.ts +1 -0
  161. package/dist/test/api/payrolls.test.d.ts +1 -0
  162. package/dist/test/mocks/apis/company_federal_taxes.d.ts +2 -0
  163. package/dist/test/mocks/apis/company_locations.d.ts +2 -0
  164. package/dist/test/mocks/apis/compensations.d.ts +2 -0
  165. package/dist/test/mocks/apis/employees.d.ts +2 -0
  166. package/dist/test/mocks/apis/employeesBankAccounts.d.ts +2 -0
  167. package/dist/test/mocks/apis/homeAddresses.d.ts +2 -0
  168. package/dist/test/mocks/apis/payrolls.d.ts +2 -0
  169. package/dist/test/mocks/apis/tokens.d.ts +2 -0
  170. package/dist/test/mocks/apis/typeHelpers.d.ts +10 -0
  171. package/dist/test/mocks/apis/workAddresses.d.ts +2 -0
  172. package/dist/test/mocks/fileMock.d.ts +6 -0
  173. package/dist/test/mocks/fixtures/company_location.d.ts +11 -0
  174. package/dist/test/mocks/fixtures/getFixture.d.ts +1 -0
  175. package/dist/test/mocks/handlers.d.ts +1 -0
  176. package/dist/test/mocks/server.d.ts +1 -0
  177. package/dist/test/mocks/styleMock.d.ts +6 -0
  178. package/package.json +99 -0
@@ -0,0 +1,7 @@
1
+ export declare class LRUCache {
2
+ capacity: number;
3
+ map: Map<string, () => Record<string, string>>;
4
+ constructor(capacity: number);
5
+ get(key: string): (() => Record<string, string>) | null;
6
+ put(key: string, value: () => Record<string, string>): void;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { AddressType, EmployeeType } from '../types';
2
+ export declare const firstLastName: ({ first_name, last_name }: EmployeeType) => string;
3
+ export declare const addressInline: (address: AddressType) => string;
4
+ export declare const currentDateString: () => string;
5
+ export declare function isNumberKey({ which, keyCode }: KeyboardEvent): boolean;
6
+ export declare const booleanToString: (value: boolean) => "true" | "false";
7
+ export declare const amountStr: (amount: string, isPercentage: boolean) => string;
@@ -0,0 +1,2 @@
1
+ export declare const currency: (value: number) => string;
2
+ export declare const shortDate: (value: Date) => string;
@@ -0,0 +1 @@
1
+ export declare const normalizeSSN: (value: string) => string;
@@ -0,0 +1,2 @@
1
+ export declare const hourlyRate: (amount: number, paymentUnit: "Hour" | "Week" | "Month" | "Year" | "Paycheck") => number;
2
+ export declare const yearlyRate: (amount: number, paymentUnit: "Hour" | "Week" | "Month" | "Year" | "Paycheck") => number;
@@ -0,0 +1,8 @@
1
+ import { default as Resources } from '../types/i18nresources';
2
+ export declare const defaultNS = "common";
3
+ /**
4
+ * Hook that allows component to load custom dictionary
5
+ * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers
6
+ * @param {} overrideResource - Resource object with key/value pairs of strings
7
+ */
8
+ export declare const useI18n: (ns: keyof Resources | null, overrideResource?: Record<string, unknown>) => void;
@@ -0,0 +1,99 @@
1
+ declare const _default: {
2
+ "status": {
3
+ "loading": "Loading component...",
4
+ "requiredField": "is a required field"
5
+ },
6
+ "optionalLabel": " (optional)",
7
+ "errors": {
8
+ "globalReactError": "Error while rendering SDK component: {{error}}",
9
+ "missingParamsOrContext": "{{component}} is missing {{param}} parameter or is used outside {{provider}}",
10
+ "unhandledEvent": "Unhandled event type: {{event}}",
11
+ "unknownEventType": "Unprocessed event type"
12
+ },
13
+ "icons": {
14
+ "selectArrow": "Show options",
15
+ "magnifyingGlass": "Magnifying glass"
16
+ },
17
+ "labels": {
18
+ "back": "Back",
19
+ "saveContinue": "Save & continue",
20
+ "submit": "Submit",
21
+ "name": "Name",
22
+ "yes": "Yes",
23
+ "no": "No"
24
+ },
25
+ "onboardingStatus": {
26
+ "undefined": "N/A",
27
+ "onboarding_completed": "Completed",
28
+ "admin_onboarding_incomplete": "Admin-onboarding Incomplete",
29
+ "self_onboarding_pending_invite": "Self-onboarding: Pending Invite",
30
+ "self_onboarding_invited": "Self-onboarding: Invited",
31
+ "self_onboarding_invited_started": "Self-onboarding started",
32
+ "self_onboarding_invited_overdue": "Self-onboarding: Overdue",
33
+ "self_onboarding_completed_by_employee": "Self-onboarding: Completed",
34
+ "self_onboarding_awaiting_admin_review": "Self-onboarding: Admin review"
35
+ },
36
+ "validations": {
37
+ "accountName": "Account name is required",
38
+ "routingNumber": "Routing number should be a number (9 digits)",
39
+ "accountNumber": "Account number is a required field",
40
+ "ssn": "Please enter valid SSN: must be 9 digits",
41
+ "location": "Location is not valid",
42
+ "dob": "Date of birth is required"
43
+ },
44
+ "statesHash": {
45
+ "AL": "Alabama",
46
+ "AK": "Alaska",
47
+ "AZ": "Arizona",
48
+ "AR": "Arkansas",
49
+ "CA": "California",
50
+ "CO": "Colorado",
51
+ "CT": "Connecticut",
52
+ "DE": "Delaware",
53
+ "FL": "Florida",
54
+ "GA": "Georgia",
55
+ "HI": "Hawaii",
56
+ "ID": "Idaho",
57
+ "IL": "Illinois",
58
+ "IN": "Indiana",
59
+ "IA": "Iowa",
60
+ "KS": "Kansas",
61
+ "KY": "Kentucky",
62
+ "LA": "Louisiana",
63
+ "ME": "Maine",
64
+ "MD": "Maryland",
65
+ "MA": "Massachusetts",
66
+ "MI": "Michigan",
67
+ "MN": "Minnesota",
68
+ "MS": "Mississippi",
69
+ "MO": "Missouri",
70
+ "MT": "Montana",
71
+ "NE": "Nebraska",
72
+ "NV": "Nevada",
73
+ "NH": "New Hampshire",
74
+ "NJ": "New Jersey",
75
+ "NM": "New Mexico",
76
+ "NY": "New York",
77
+ "NC": "North Carolina",
78
+ "ND": "North Dakota",
79
+ "OH": "Ohio",
80
+ "OK": "Oklahoma",
81
+ "OR": "Oregon",
82
+ "PA": "Pennsylvania",
83
+ "RI": "Rhode Island",
84
+ "SC": "South Carolina",
85
+ "SD": "South Dakota",
86
+ "TN": "Tennessee",
87
+ "TX": "Texas",
88
+ "UT": "Utah",
89
+ "VT": "Vermont",
90
+ "VA": "Virginia",
91
+ "WA": "Washington",
92
+ "WV": "West Virginia",
93
+ "WI": "Wisconsin",
94
+ "WY": "Wyoming"
95
+ }
96
+ }
97
+ ;
98
+
99
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from './I18n';
@@ -0,0 +1,7 @@
1
+ export { GustoApiContextProvider } from './api/context';
2
+ export * from './api/client';
3
+ export * from './api/queries';
4
+ export * from './api/queries/helpers';
5
+ export * from './components';
6
+ export * from './contexts';
7
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ interface PayPeriodConstructor {
2
+ payScheduleUuid: string;
3
+ startDate: Date;
4
+ endDate: Date;
5
+ }
6
+ export interface PayPeriodAPIData {
7
+ pay_schedule_uuid: string;
8
+ start_date: string;
9
+ end_date: string;
10
+ }
11
+ declare class PayPeriod {
12
+ payScheduleUuid: string;
13
+ startDate: Date;
14
+ endDate: Date;
15
+ constructor({ payScheduleUuid, startDate, endDate }: PayPeriodConstructor);
16
+ static fromPayPeriodData(data: PayPeriodAPIData): PayPeriod;
17
+ }
18
+ export { PayPeriod };
@@ -0,0 +1,40 @@
1
+ import { PayPeriod } from './PayPeriod';
2
+ import { PayrollTotals } from './PayrollTotals';
3
+ interface PayrollConstructor {
4
+ uuid: string;
5
+ payPeriod: PayPeriod | null;
6
+ totals: PayrollTotals | null;
7
+ processed: boolean;
8
+ checkDate: Date;
9
+ payrollDeadline: Date;
10
+ payrollStatusMeta: PayrollStatusMeta | null;
11
+ }
12
+ declare class Payroll {
13
+ uuid: string;
14
+ payPeriod: PayPeriod | null;
15
+ totals: PayrollTotals | null;
16
+ processed: boolean;
17
+ checkDate: Date;
18
+ payrollDeadline: Date;
19
+ payrollStatusMeta: PayrollStatusMeta | null;
20
+ constructor({ uuid, payPeriod, totals, processed, checkDate, payrollDeadline, payrollStatusMeta, }: PayrollConstructor);
21
+ get expectedDebitDate(): Date;
22
+ }
23
+ interface PayrollStatusMetaConstructor {
24
+ cancellable: boolean;
25
+ payrollLate: boolean;
26
+ expectedCheckDate: Date;
27
+ initialCheckDate: Date;
28
+ expectedDebitTime: Date;
29
+ initialDebitCutoffTime: Date;
30
+ }
31
+ declare class PayrollStatusMeta {
32
+ cancellable: boolean;
33
+ payrollLate: boolean;
34
+ expectedCheckDate: Date;
35
+ initialCheckDate: Date;
36
+ expectedDebitTime: Date;
37
+ initialDebitCutoffTime: Date;
38
+ constructor({ cancellable, payrollLate, expectedCheckDate, initialCheckDate, expectedDebitTime, initialDebitCutoffTime, }: PayrollStatusMetaConstructor);
39
+ }
40
+ export { Payroll, PayrollStatusMeta };
@@ -0,0 +1,24 @@
1
+ interface PayrollTotalsConstructor {
2
+ grossPay?: number;
3
+ employerTaxes?: number;
4
+ reimbursements?: number;
5
+ benefits?: number;
6
+ companyDebit?: number;
7
+ }
8
+ export interface PayrollTotalsAPIData {
9
+ gross_pay: string;
10
+ employer_taxes: string;
11
+ reimbursements: string;
12
+ benefits: string;
13
+ }
14
+ declare class PayrollTotals {
15
+ grossPay?: number;
16
+ employerTaxes?: number;
17
+ reimbursements?: number;
18
+ companyDebit?: number;
19
+ benefits?: number;
20
+ constructor({ grossPay, employerTaxes, reimbursements, benefits, companyDebit, }: PayrollTotalsConstructor);
21
+ static fromPayrollTotalsData(data: PayrollTotalsAPIData): PayrollTotals;
22
+ get payrollTotal(): number;
23
+ }
24
+ export { PayrollTotals };
@@ -0,0 +1,124 @@
1
+ export declare const employeeEvents: {
2
+ readonly EMPLOYEE_CREATE: "employee/create";
3
+ readonly EMPLOYEE_CREATED: "employee/created";
4
+ readonly EMPLOYEE_UPDATE: "employee/update";
5
+ readonly EMPLOYEE_UPDATED: "employee/updated";
6
+ readonly EMPLOYEE_DELETED: "employee/deleted";
7
+ readonly EMPLOYEE_PROFILE_DONE: "employee/profile/done";
8
+ readonly VIEW_EMPLOYEE_ADDRESSES: "employee/addresses";
9
+ readonly EMPLOYEE_HOME_ADDRESS: "employee/addresses/home";
10
+ readonly EMPLOYEE_HOME_ADDRESS_CREATED: "employee/addresses/home/created";
11
+ readonly EMPLOYEE_HOME_ADDRESS_UPDATED: "employee/addresses/home/updated";
12
+ readonly EMPLOYEE_WORK_ADDRESS: "employee/addresses/work";
13
+ readonly EMPLOYEE_WORK_ADDRESS_CREATED: "employee/addresses/work/created";
14
+ readonly EMPLOYEE_WORK_ADDRESS_UPDATED: "employee/addresses/work/updated";
15
+ readonly VIEW_EMPLOYEE_DEDUCTIONS: "employee/deductions";
16
+ readonly EMPLOYEE_DEDUCTION_CREATE: "employee/deductions/create";
17
+ readonly EMPLOYEE_DEDUCTION_EDIT: "employee/deductions/edit";
18
+ readonly EMPLOYEE_DEDUCTION_UPDATED: "employee/deductions/updated";
19
+ readonly EMPLOYEE_DEDUCTION_DELETED: "employee/deductions/deleted";
20
+ readonly EMPLOYEE_COMPENSATION_CREATE: "employee/compensations/create";
21
+ readonly EMPLOYEE_COMPENSATION_CREATED: "employee/compensations/created";
22
+ readonly EMPLOYEE_COMPENSATION_UPDATED: "employee/compensations/updated";
23
+ readonly EMPLOYEE_COMPENSATION_DONE: "employee/compensations/done";
24
+ readonly EMPLOYEE_PAYMENT_METHOD_UPDATED: "employee/paymentMethod/updated";
25
+ readonly EMPLOYEE_SPLIT_PAYMENT: "employee/paymentMethod/split";
26
+ readonly EMPLOYEE_BANK_ACCOUNT_CREATE: "employee/bankAccount/create";
27
+ readonly EMPLOYEE_BANK_ACCOUNT_CREATED: "employee/bankAccount/created";
28
+ readonly EMPLOYEE_BANK_ACCOUNT_DELETED: "employee/bankAccount/deleted";
29
+ readonly EMPLOYEE_FEDERAL_TAXES_VIEW: "employee/federalTaxes/view";
30
+ readonly EMPLOYEE_FEDERAL_TAXES_UPDATED: "employee/federalTaxes/updated";
31
+ readonly EMPLOYEE_STATE_TAXES_UPDATED: "employee/stateTaxes/updated";
32
+ readonly EMPLOYEE_TAXES_DONE: "employee/taxes/done";
33
+ readonly EMPLOYEE_SPLIT_PAYCHECK: "employee/bankAccount/split";
34
+ readonly EMPLOYEE_JOB_CREATED: "employee/job/created";
35
+ readonly EMPLOYEE_JOB_UPDATED: "employee/job/updated";
36
+ readonly EMPLOYEE_SUMMARY_VIEW: "employee/summary";
37
+ readonly EMPLOYEE_FILE_NEW_HIRE_REPORT: "employee/newHireReport";
38
+ readonly EMPLOYEES_LIST: "company/employees";
39
+ };
40
+ export declare const companyEvents: {
41
+ readonly COMPANY_ADDRESSES: "company/addresses";
42
+ readonly COMPANY_ADDRESSE_EDIT: "company/address/edit";
43
+ readonly COMPANY_INDUSTRY: "company/industry";
44
+ readonly COMPANY_FEDERAL_TAXES_UPDATED: "company/federalTaxes/updated";
45
+ };
46
+ export declare const componentEvents: {
47
+ readonly COMPANY_ADDRESSES: "company/addresses";
48
+ readonly COMPANY_ADDRESSE_EDIT: "company/address/edit";
49
+ readonly COMPANY_INDUSTRY: "company/industry";
50
+ readonly COMPANY_FEDERAL_TAXES_UPDATED: "company/federalTaxes/updated";
51
+ readonly EMPLOYEE_CREATE: "employee/create";
52
+ readonly EMPLOYEE_CREATED: "employee/created";
53
+ readonly EMPLOYEE_UPDATE: "employee/update";
54
+ readonly EMPLOYEE_UPDATED: "employee/updated";
55
+ readonly EMPLOYEE_DELETED: "employee/deleted";
56
+ readonly EMPLOYEE_PROFILE_DONE: "employee/profile/done";
57
+ readonly VIEW_EMPLOYEE_ADDRESSES: "employee/addresses";
58
+ readonly EMPLOYEE_HOME_ADDRESS: "employee/addresses/home";
59
+ readonly EMPLOYEE_HOME_ADDRESS_CREATED: "employee/addresses/home/created";
60
+ readonly EMPLOYEE_HOME_ADDRESS_UPDATED: "employee/addresses/home/updated";
61
+ readonly EMPLOYEE_WORK_ADDRESS: "employee/addresses/work";
62
+ readonly EMPLOYEE_WORK_ADDRESS_CREATED: "employee/addresses/work/created";
63
+ readonly EMPLOYEE_WORK_ADDRESS_UPDATED: "employee/addresses/work/updated";
64
+ readonly VIEW_EMPLOYEE_DEDUCTIONS: "employee/deductions";
65
+ readonly EMPLOYEE_DEDUCTION_CREATE: "employee/deductions/create";
66
+ readonly EMPLOYEE_DEDUCTION_EDIT: "employee/deductions/edit";
67
+ readonly EMPLOYEE_DEDUCTION_UPDATED: "employee/deductions/updated";
68
+ readonly EMPLOYEE_DEDUCTION_DELETED: "employee/deductions/deleted";
69
+ readonly EMPLOYEE_COMPENSATION_CREATE: "employee/compensations/create";
70
+ readonly EMPLOYEE_COMPENSATION_CREATED: "employee/compensations/created";
71
+ readonly EMPLOYEE_COMPENSATION_UPDATED: "employee/compensations/updated";
72
+ readonly EMPLOYEE_COMPENSATION_DONE: "employee/compensations/done";
73
+ readonly EMPLOYEE_PAYMENT_METHOD_UPDATED: "employee/paymentMethod/updated";
74
+ readonly EMPLOYEE_SPLIT_PAYMENT: "employee/paymentMethod/split";
75
+ readonly EMPLOYEE_BANK_ACCOUNT_CREATE: "employee/bankAccount/create";
76
+ readonly EMPLOYEE_BANK_ACCOUNT_CREATED: "employee/bankAccount/created";
77
+ readonly EMPLOYEE_BANK_ACCOUNT_DELETED: "employee/bankAccount/deleted";
78
+ readonly EMPLOYEE_FEDERAL_TAXES_VIEW: "employee/federalTaxes/view";
79
+ readonly EMPLOYEE_FEDERAL_TAXES_UPDATED: "employee/federalTaxes/updated";
80
+ readonly EMPLOYEE_STATE_TAXES_UPDATED: "employee/stateTaxes/updated";
81
+ readonly EMPLOYEE_TAXES_DONE: "employee/taxes/done";
82
+ readonly EMPLOYEE_SPLIT_PAYCHECK: "employee/bankAccount/split";
83
+ readonly EMPLOYEE_JOB_CREATED: "employee/job/created";
84
+ readonly EMPLOYEE_JOB_UPDATED: "employee/job/updated";
85
+ readonly EMPLOYEE_SUMMARY_VIEW: "employee/summary";
86
+ readonly EMPLOYEE_FILE_NEW_HIRE_REPORT: "employee/newHireReport";
87
+ readonly EMPLOYEES_LIST: "company/employees";
88
+ readonly SUCCESS: "SUCCESS";
89
+ readonly ERROR: "ERROR";
90
+ readonly CANCEL: "CANCEL";
91
+ readonly SUBMIT: "SUBMIT";
92
+ readonly LOAD_COMPONENT: "LOAD_COMPONENT";
93
+ readonly NAVIGATE: "NAVIGATE";
94
+ };
95
+ export type EventType = (typeof componentEvents)[keyof typeof componentEvents];
96
+ export declare const EmployeeOnboardingStatus: {
97
+ ADMIN_ONBOARDING_INCOMPLETE: string;
98
+ SELF_ONBOARDING_PENDING_INVITE: string;
99
+ SELF_ONBOARDING_INVITED: string;
100
+ SELF_ONBOARDING_INVITED_STARTED: string;
101
+ SELF_ONBOARDING_INVITED_OVERDUE: string;
102
+ SELF_ONBOARDING_COMPLETED_BY_EMPLOYEE: string;
103
+ SELF_ONBOARDING_AWAITING_ADMIN_REVIEW: string;
104
+ ONBOARDING_COMPLETED: string;
105
+ };
106
+ /**Map of API response flsa statuses */
107
+ export declare const FlsaStatus: {
108
+ readonly EXEMPT: "Exempt";
109
+ readonly SALARIED_NONEXEMPT: "Salaried Nonexempt";
110
+ readonly NONEXEMPT: "Nonexempt";
111
+ readonly OWNER: "Owner";
112
+ readonly COMMISSION_ONLY_EXEMPT: "Commission Only Exempt";
113
+ readonly COMISSION_ONLY_NONEXEMPT: "Commission Only Nonexempt";
114
+ };
115
+ export declare const FLSA_OVERTIME_SALARY_LIMIT = 43888;
116
+ export declare const HOURS_PER_PAY_PERIOD_DAILY = 5.69863;
117
+ export declare const HOURS_PER_PAY_PERIOD_WEEKLY = 40;
118
+ export declare const HOURS_PER_PAY_PERIOD_BIWEEKLY = 80;
119
+ export declare const HOURS_PER_PAY_PERIOD_SEMIMONTHLY = 86.666667;
120
+ export declare const HOURS_PER_PAY_PERIOD_MONTHLY = 173.333333;
121
+ export declare const HOURS_PER_PAY_PERIOD_QUARTERLY = 520;
122
+ export declare const HOURS_PER_PAY_PERIOD_SEMIANNUALLY = 1040;
123
+ export declare const HOURS_PER_PAY_PERIOD_ANNUALLY = 2080;
124
+ export declare const STATES_ABBR: readonly ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"];
@@ -0,0 +1,10 @@
1
+ import { components, operations } from './generated/schema';
2
+ export type Schemas = components['schemas'];
3
+ export type Operations = operations;
4
+ export type DeductionType = components['schemas']['Garnishment'];
5
+ export type EmployeeType = components['schemas']['Employee'];
6
+ export type AddressType = components['schemas']['Address'];
7
+ export type PaymentMethodType = components['schemas']['Employee-Payment-Method'];
8
+ export type CompanyFederalTaxDetailsType = components['schemas']['Federal-Tax-Details'];
9
+ export type CompanyIndustryType = components['schemas']['Industry'];
10
+ export type EmployeeFederalTaxType = components['schemas']['Employee-Federal-Tax'];