@worknice/js-sdk 0.11.22 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_types-BDPQKGH6.d.ts → _types-of58m62-.d.ts} +3 -0
- package/dist/api/WorkniceIntegrationLogger.d.ts +1 -1
- package/dist/api/_generated.d.ts +30 -1
- package/dist/api/_generated.js.map +1 -1
- package/dist/api/_types.d.ts +2 -2
- package/dist/api/createApiOperation.d.ts +1 -1
- package/dist/api/createWorkniceClient.d.ts +1 -1
- package/dist/api/operations/activateIntegration.d.ts +1 -1
- package/dist/api/operations/authorizeIntegration.d.ts +1 -1
- package/dist/api/operations/completeSync.d.ts +1 -1
- package/dist/api/operations/createApiToken.d.ts +1 -1
- package/dist/api/operations/createDataImport.d.ts +1 -1
- package/dist/api/operations/createLeaveRequest.d.ts +1 -1
- package/dist/api/operations/createPerson.d.ts +2 -1
- package/dist/api/operations/createPersonConnection.d.ts +1 -1
- package/dist/api/operations/createPersonDataImportLine.d.ts +1 -1
- package/dist/api/operations/deleteApiToken.d.ts +1 -1
- package/dist/api/operations/deletePersonConnection.d.ts +1 -1
- package/dist/api/operations/fragments/PersonFullDetails.js +1 -0
- package/dist/api/operations/fragments/PersonFullDetails.js.map +1 -1
- package/dist/api/operations/getApiTokens.d.ts +1 -1
- package/dist/api/operations/getIntegration.d.ts +1 -1
- package/dist/api/operations/getLeaveRequests.d.ts +1 -1
- package/dist/api/operations/getMyApps.d.ts +1 -1
- package/dist/api/operations/getPeople.d.ts +2 -1
- package/dist/api/operations/getPersonConnections.d.ts +1 -1
- package/dist/api/operations/initializeIntegration.d.ts +1 -1
- package/dist/api/operations/updateLeaveRequest.d.ts +1 -1
- package/dist/api/operations/updatePerson.d.ts +2 -1
- package/dist/api/operations/updatePerson.js +3 -55
- package/dist/api/operations/updatePerson.js.map +1 -1
- package/dist/api/operations/updatePersonConnection.d.ts +1 -1
- package/dist/employee-records/EQUALITY_CHECKS.js +1 -0
- package/dist/employee-records/EQUALITY_CHECKS.js.map +1 -1
- package/dist/employee-records/_types.d.ts +2 -0
- package/dist/employee-records/comparePersonDataTransferLines.js +3 -0
- package/dist/employee-records/comparePersonDataTransferLines.js.map +1 -1
- package/dist/employee-records/validatePersonDataTransferLineSuperFunds.js +15 -1
- package/dist/employee-records/validatePersonDataTransferLineSuperFunds.js.map +1 -1
- package/dist/helpers/_types.d.ts +1 -1
- package/dist/helpers/handleApproveLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleCancelLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleCreateIntegrationWebhook.d.ts +1 -1
- package/dist/helpers/handleCreateLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleDenyLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleGetAuthorizationUrlWebhook.d.ts +1 -1
- package/dist/helpers/handleGetConfigurationUrlWebhook.d.ts +1 -1
- package/dist/helpers/handleGetLeaveBalancesWebhook.d.ts +1 -1
- package/dist/helpers/handleGetLeaveCategoriesWebhook.d.ts +1 -1
- package/dist/helpers/handleGetLeaveRequestHoursWebhook.d.ts +1 -1
- package/dist/helpers/handleGetOpenUrlWebhook.d.ts +1 -1
- package/dist/helpers/handleProcessLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleRequest.d.ts +1 -1
- package/dist/helpers/handleRequestWithWorknice.d.ts +1 -1
- package/dist/helpers/handleTriggerIntegrationSyncWebhook.d.ts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/employee-records/comparePersonDataTransferLines.ts"],"sourcesContent":["import type { PartialPersonDataTransferLine, PersonDataTransferLineDiff } from \"./_types.js\";\nimport EQUALITY_CHECKS from \"./EQUALITY_CHECKS.js\";\n\nconst comparePersonDataTransferLines = (\n a: PartialPersonDataTransferLine,\n b: PartialPersonDataTransferLine,\n) => {\n const result: PersonDataTransferLineDiff = {\n hasDifferences: false,\n sections: {\n bankAccounts: {\n hasDifferences: false,\n fields: {\n bankAccount1Allocation: {\n hasDifferences: false,\n },\n bankAccount1AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount1Bsb: {\n hasDifferences: false,\n },\n bankAccount1Name: {\n hasDifferences: false,\n },\n bankAccount1Number: {\n hasDifferences: false,\n },\n bankAccount2Allocation: {\n hasDifferences: false,\n },\n bankAccount2AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount2Bsb: {\n hasDifferences: false,\n },\n bankAccount2Name: {\n hasDifferences: false,\n },\n bankAccount2Number: {\n hasDifferences: false,\n },\n bankAccount3Allocation: {\n hasDifferences: false,\n },\n bankAccount3AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount3Bsb: {\n hasDifferences: false,\n },\n bankAccount3Name: {\n hasDifferences: false,\n },\n bankAccount3Number: {\n hasDifferences: false,\n },\n bankAccount4Allocation: {\n hasDifferences: false,\n },\n bankAccount4AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount4Bsb: {\n hasDifferences: false,\n },\n bankAccount4Name: {\n hasDifferences: false,\n },\n bankAccount4Number: {\n hasDifferences: false,\n },\n bankAccount5Allocation: {\n hasDifferences: false,\n },\n bankAccount5AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount5Bsb: {\n hasDifferences: false,\n },\n bankAccount5Name: {\n hasDifferences: false,\n },\n bankAccount5Number: {\n hasDifferences: false,\n },\n },\n },\n dateOfBirth: {\n hasDifferences: false,\n fields: {\n dateOfBirth: {\n hasDifferences: false,\n },\n },\n },\n emergencyContacts: {\n hasDifferences: false,\n fields: {\n emergencyContact1AddressCity: {\n hasDifferences: false,\n },\n emergencyContact1AddressCountry: {\n hasDifferences: false,\n },\n emergencyContact1AddressLine1: {\n hasDifferences: false,\n },\n emergencyContact1AddressLine2: {\n hasDifferences: false,\n },\n emergencyContact1AddressPostcode: {\n hasDifferences: false,\n },\n emergencyContact1AddressState: {\n hasDifferences: false,\n },\n emergencyContact1Email: {\n hasDifferences: false,\n },\n emergencyContact1Name: {\n hasDifferences: false,\n },\n emergencyContact1Phone: {\n hasDifferences: false,\n },\n emergencyContact1Relationship: {\n hasDifferences: false,\n },\n emergencyContact2AddressCity: {\n hasDifferences: false,\n },\n emergencyContact2AddressCountry: {\n hasDifferences: false,\n },\n emergencyContact2AddressLine1: {\n hasDifferences: false,\n },\n emergencyContact2AddressLine2: {\n hasDifferences: false,\n },\n emergencyContact2AddressPostcode: {\n hasDifferences: false,\n },\n emergencyContact2AddressState: {\n hasDifferences: false,\n },\n emergencyContact2Email: {\n hasDifferences: false,\n },\n emergencyContact2Name: {\n hasDifferences: false,\n },\n emergencyContact2Phone: {\n hasDifferences: false,\n },\n emergencyContact2Relationship: {\n hasDifferences: false,\n },\n },\n },\n fullName: {\n hasDifferences: false,\n fields: {\n familyName: {\n hasDifferences: false,\n },\n givenName: {\n hasDifferences: false,\n },\n otherGivenNames: {\n hasDifferences: false,\n },\n },\n },\n gender: {\n hasDifferences: false,\n fields: {\n gender: {\n hasDifferences: false,\n },\n },\n },\n personalEmail: {\n hasDifferences: false,\n fields: {\n personalEmail: {\n hasDifferences: false,\n },\n },\n },\n personalPhone: {\n hasDifferences: false,\n fields: {\n personalPhone: {\n hasDifferences: false,\n },\n },\n },\n postalAddress: {\n hasDifferences: false,\n fields: {\n postalAddressCity: {\n hasDifferences: false,\n },\n postalAddressCountry: {\n hasDifferences: false,\n },\n postalAddressLine1: {\n hasDifferences: false,\n },\n postalAddressLine2: {\n hasDifferences: false,\n },\n postalAddressPostcode: {\n hasDifferences: false,\n },\n postalAddressState: {\n hasDifferences: false,\n },\n },\n },\n profile: {\n hasDifferences: false,\n fields: {\n displayName: {\n hasDifferences: false,\n },\n profileEmail: {\n hasDifferences: false,\n },\n profilePhone: {\n hasDifferences: false,\n },\n },\n },\n residentialAddress: {\n hasDifferences: false,\n fields: {\n residentialAddressCity: {\n hasDifferences: false,\n },\n residentialAddressCountry: {\n hasDifferences: false,\n },\n residentialAddressLine1: {\n hasDifferences: false,\n },\n residentialAddressLine2: {\n hasDifferences: false,\n },\n residentialAddressPostcode: {\n hasDifferences: false,\n },\n residentialAddressState: {\n hasDifferences: false,\n },\n },\n },\n superFunds: {\n hasDifferences: false,\n fields: {\n superFund1MemberName: {\n hasDifferences: false,\n },\n superFund1MemberNumber: {\n hasDifferences: false,\n },\n superFund1Nomination: {\n hasDifferences: false,\n },\n superFund1Usi: {\n hasDifferences: false,\n },\n },\n },\n taxDetails: {\n hasDifferences: false,\n fields: {\n hasLoanOrStudentDebt: {\n hasDifferences: false,\n },\n residencyStatus: {\n hasDifferences: false,\n },\n taxFreeThresholdClaimed: {\n hasDifferences: false,\n },\n taxFileNumber: {\n hasDifferences: false,\n },\n taxFileNumberExemption: {\n hasDifferences: false,\n },\n },\n },\n tenure: {\n hasDifferences: false,\n fields: {\n endDate: {\n hasDifferences: false,\n },\n startDate: {\n hasDifferences: false,\n },\n },\n },\n },\n };\n\n for (const field of Object.keys(EQUALITY_CHECKS.bankAccounts) as Array<\n keyof typeof EQUALITY_CHECKS.bankAccounts\n >) {\n if (EQUALITY_CHECKS.bankAccounts[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.bankAccounts.hasDifferences = true;\n result.sections.bankAccounts.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.dateOfBirth) as Array<\n keyof typeof EQUALITY_CHECKS.dateOfBirth\n >) {\n if (EQUALITY_CHECKS.dateOfBirth[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.dateOfBirth.hasDifferences = true;\n result.sections.dateOfBirth.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.emergencyContacts) as Array<\n keyof typeof EQUALITY_CHECKS.emergencyContacts\n >) {\n if (EQUALITY_CHECKS.emergencyContacts[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.emergencyContacts.hasDifferences = true;\n result.sections.emergencyContacts.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.fullName) as Array<\n keyof typeof EQUALITY_CHECKS.fullName\n >) {\n if (EQUALITY_CHECKS.fullName[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.fullName.hasDifferences = true;\n result.sections.fullName.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.gender) as Array<\n keyof typeof EQUALITY_CHECKS.gender\n >) {\n if (EQUALITY_CHECKS.gender[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.gender.hasDifferences = true;\n result.sections.gender.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.personalEmail) as Array<\n keyof typeof EQUALITY_CHECKS.personalEmail\n >) {\n if (EQUALITY_CHECKS.personalEmail[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.personalEmail.hasDifferences = true;\n result.sections.personalEmail.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.personalPhone) as Array<\n keyof typeof EQUALITY_CHECKS.personalPhone\n >) {\n if (EQUALITY_CHECKS.personalPhone[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.personalPhone.hasDifferences = true;\n result.sections.personalPhone.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.postalAddress) as Array<\n keyof typeof EQUALITY_CHECKS.postalAddress\n >) {\n if (EQUALITY_CHECKS.postalAddress[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.postalAddress.hasDifferences = true;\n result.sections.postalAddress.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.residentialAddress) as Array<\n keyof typeof EQUALITY_CHECKS.residentialAddress\n >) {\n if (EQUALITY_CHECKS.residentialAddress[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.residentialAddress.hasDifferences = true;\n result.sections.residentialAddress.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.superFunds) as Array<\n keyof typeof EQUALITY_CHECKS.superFunds\n >) {\n if (EQUALITY_CHECKS.superFunds[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.superFunds.hasDifferences = true;\n result.sections.superFunds.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.taxDetails) as Array<\n keyof typeof EQUALITY_CHECKS.taxDetails\n >) {\n if (EQUALITY_CHECKS.taxDetails[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.taxDetails.hasDifferences = true;\n result.sections.taxDetails.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.tenure) as Array<\n keyof typeof EQUALITY_CHECKS.tenure\n >) {\n if (EQUALITY_CHECKS.tenure[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.tenure.hasDifferences = true;\n result.sections.tenure.fields[field].hasDifferences = true;\n }\n }\n\n return result;\n};\n\nexport default comparePersonDataTransferLines;\n"],"mappings":"AACA,OAAO,qBAAqB;AAE5B,MAAM,iCAAiC,CACrC,GACA,MACG;AACH,QAAM,SAAqC;AAAA,IACzC,gBAAgB;AAAA,IAChB,UAAU;AAAA,MACR,cAAc;AAAA,QACZ,gBAAgB;AAAA,QAChB,QAAQ;AAAA,UACN,wBAAwB;AAAA,YACtB,gBAAgB;AAAA,UAClB;AAAA,UACA,8BAA8B;AAAA,YAC5B,gBAAgB;AAAA,UAClB;AAAA,UACA,iBAAiB;AAAA,YACf,gBAAgB;AAAA,UAClB;AAAA,UACA,kBAAkB;AAAA,YAChB,gBAAgB;AAAA,UAClB;AAAA,UACA,oBAAoB;AAAA,YAClB,gBAAgB;AAAA,UAClB;AAAA,UACA,wBAAwB;AAAA,YACtB,gBAAgB;AAAA,UAClB;AAAA,UACA,8BAA8B;AAAA,YAC5B,gBAAgB;AAAA,UAClB;AAAA,UACA,iBAAiB;AAAA,YACf,gBAAgB;AAAA,UAClB;AAA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AO,iBAAiB;AACxC,aAAO,SAAS,OAAO,OAAO,KAAK,EAAE,iBAAiB;AAAA,IACxD;AAAA,EACF;AAEA,SAAO;AACT;AAEA,IAAO,yCAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/employee-records/comparePersonDataTransferLines.ts"],"sourcesContent":["import type { PartialPersonDataTransferLine, PersonDataTransferLineDiff } from \"./_types.js\";\nimport EQUALITY_CHECKS from \"./EQUALITY_CHECKS.js\";\n\nconst comparePersonDataTransferLines = (\n a: PartialPersonDataTransferLine,\n b: PartialPersonDataTransferLine,\n) => {\n const result: PersonDataTransferLineDiff = {\n hasDifferences: false,\n sections: {\n bankAccounts: {\n hasDifferences: false,\n fields: {\n bankAccount1Allocation: {\n hasDifferences: false,\n },\n bankAccount1AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount1Bsb: {\n hasDifferences: false,\n },\n bankAccount1Name: {\n hasDifferences: false,\n },\n bankAccount1Number: {\n hasDifferences: false,\n },\n bankAccount2Allocation: {\n hasDifferences: false,\n },\n bankAccount2AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount2Bsb: {\n hasDifferences: false,\n },\n bankAccount2Name: {\n hasDifferences: false,\n },\n bankAccount2Number: {\n hasDifferences: false,\n },\n bankAccount3Allocation: {\n hasDifferences: false,\n },\n bankAccount3AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount3Bsb: {\n hasDifferences: false,\n },\n bankAccount3Name: {\n hasDifferences: false,\n },\n bankAccount3Number: {\n hasDifferences: false,\n },\n bankAccount4Allocation: {\n hasDifferences: false,\n },\n bankAccount4AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount4Bsb: {\n hasDifferences: false,\n },\n bankAccount4Name: {\n hasDifferences: false,\n },\n bankAccount4Number: {\n hasDifferences: false,\n },\n bankAccount5Allocation: {\n hasDifferences: false,\n },\n bankAccount5AllocationMethod: {\n hasDifferences: false,\n },\n bankAccount5Bsb: {\n hasDifferences: false,\n },\n bankAccount5Name: {\n hasDifferences: false,\n },\n bankAccount5Number: {\n hasDifferences: false,\n },\n },\n },\n dateOfBirth: {\n hasDifferences: false,\n fields: {\n dateOfBirth: {\n hasDifferences: false,\n },\n },\n },\n emergencyContacts: {\n hasDifferences: false,\n fields: {\n emergencyContact1AddressCity: {\n hasDifferences: false,\n },\n emergencyContact1AddressCountry: {\n hasDifferences: false,\n },\n emergencyContact1AddressLine1: {\n hasDifferences: false,\n },\n emergencyContact1AddressLine2: {\n hasDifferences: false,\n },\n emergencyContact1AddressPostcode: {\n hasDifferences: false,\n },\n emergencyContact1AddressState: {\n hasDifferences: false,\n },\n emergencyContact1Email: {\n hasDifferences: false,\n },\n emergencyContact1Name: {\n hasDifferences: false,\n },\n emergencyContact1Phone: {\n hasDifferences: false,\n },\n emergencyContact1Relationship: {\n hasDifferences: false,\n },\n emergencyContact2AddressCity: {\n hasDifferences: false,\n },\n emergencyContact2AddressCountry: {\n hasDifferences: false,\n },\n emergencyContact2AddressLine1: {\n hasDifferences: false,\n },\n emergencyContact2AddressLine2: {\n hasDifferences: false,\n },\n emergencyContact2AddressPostcode: {\n hasDifferences: false,\n },\n emergencyContact2AddressState: {\n hasDifferences: false,\n },\n emergencyContact2Email: {\n hasDifferences: false,\n },\n emergencyContact2Name: {\n hasDifferences: false,\n },\n emergencyContact2Phone: {\n hasDifferences: false,\n },\n emergencyContact2Relationship: {\n hasDifferences: false,\n },\n },\n },\n fullName: {\n hasDifferences: false,\n fields: {\n familyName: {\n hasDifferences: false,\n },\n givenName: {\n hasDifferences: false,\n },\n otherGivenNames: {\n hasDifferences: false,\n },\n },\n },\n gender: {\n hasDifferences: false,\n fields: {\n gender: {\n hasDifferences: false,\n },\n },\n },\n personalEmail: {\n hasDifferences: false,\n fields: {\n personalEmail: {\n hasDifferences: false,\n },\n },\n },\n personalPhone: {\n hasDifferences: false,\n fields: {\n personalPhone: {\n hasDifferences: false,\n },\n },\n },\n postalAddress: {\n hasDifferences: false,\n fields: {\n postalAddressCity: {\n hasDifferences: false,\n },\n postalAddressCountry: {\n hasDifferences: false,\n },\n postalAddressLine1: {\n hasDifferences: false,\n },\n postalAddressLine2: {\n hasDifferences: false,\n },\n postalAddressPostcode: {\n hasDifferences: false,\n },\n postalAddressState: {\n hasDifferences: false,\n },\n },\n },\n profile: {\n hasDifferences: false,\n fields: {\n displayName: {\n hasDifferences: false,\n },\n profileEmail: {\n hasDifferences: false,\n },\n profilePhone: {\n hasDifferences: false,\n },\n },\n },\n residentialAddress: {\n hasDifferences: false,\n fields: {\n residentialAddressCity: {\n hasDifferences: false,\n },\n residentialAddressCountry: {\n hasDifferences: false,\n },\n residentialAddressLine1: {\n hasDifferences: false,\n },\n residentialAddressLine2: {\n hasDifferences: false,\n },\n residentialAddressPostcode: {\n hasDifferences: false,\n },\n residentialAddressState: {\n hasDifferences: false,\n },\n },\n },\n superFunds: {\n hasDifferences: false,\n fields: {\n superFund1MemberName: {\n hasDifferences: false,\n },\n superFund1MemberNumber: {\n hasDifferences: false,\n },\n superFund1Name: {\n hasDifferences: false,\n },\n superFund1Nomination: {\n hasDifferences: false,\n },\n superFund1Usi: {\n hasDifferences: false,\n },\n },\n },\n taxDetails: {\n hasDifferences: false,\n fields: {\n hasLoanOrStudentDebt: {\n hasDifferences: false,\n },\n residencyStatus: {\n hasDifferences: false,\n },\n taxFreeThresholdClaimed: {\n hasDifferences: false,\n },\n taxFileNumber: {\n hasDifferences: false,\n },\n taxFileNumberExemption: {\n hasDifferences: false,\n },\n },\n },\n tenure: {\n hasDifferences: false,\n fields: {\n endDate: {\n hasDifferences: false,\n },\n startDate: {\n hasDifferences: false,\n },\n },\n },\n },\n };\n\n for (const field of Object.keys(EQUALITY_CHECKS.bankAccounts) as Array<\n keyof typeof EQUALITY_CHECKS.bankAccounts\n >) {\n if (EQUALITY_CHECKS.bankAccounts[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.bankAccounts.hasDifferences = true;\n result.sections.bankAccounts.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.dateOfBirth) as Array<\n keyof typeof EQUALITY_CHECKS.dateOfBirth\n >) {\n if (EQUALITY_CHECKS.dateOfBirth[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.dateOfBirth.hasDifferences = true;\n result.sections.dateOfBirth.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.emergencyContacts) as Array<\n keyof typeof EQUALITY_CHECKS.emergencyContacts\n >) {\n if (EQUALITY_CHECKS.emergencyContacts[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.emergencyContacts.hasDifferences = true;\n result.sections.emergencyContacts.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.fullName) as Array<\n keyof typeof EQUALITY_CHECKS.fullName\n >) {\n if (EQUALITY_CHECKS.fullName[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.fullName.hasDifferences = true;\n result.sections.fullName.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.gender) as Array<\n keyof typeof EQUALITY_CHECKS.gender\n >) {\n if (EQUALITY_CHECKS.gender[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.gender.hasDifferences = true;\n result.sections.gender.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.personalEmail) as Array<\n keyof typeof EQUALITY_CHECKS.personalEmail\n >) {\n if (EQUALITY_CHECKS.personalEmail[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.personalEmail.hasDifferences = true;\n result.sections.personalEmail.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.personalPhone) as Array<\n keyof typeof EQUALITY_CHECKS.personalPhone\n >) {\n if (EQUALITY_CHECKS.personalPhone[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.personalPhone.hasDifferences = true;\n result.sections.personalPhone.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.postalAddress) as Array<\n keyof typeof EQUALITY_CHECKS.postalAddress\n >) {\n if (EQUALITY_CHECKS.postalAddress[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.postalAddress.hasDifferences = true;\n result.sections.postalAddress.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.residentialAddress) as Array<\n keyof typeof EQUALITY_CHECKS.residentialAddress\n >) {\n if (EQUALITY_CHECKS.residentialAddress[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.residentialAddress.hasDifferences = true;\n result.sections.residentialAddress.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.superFunds) as Array<\n keyof typeof EQUALITY_CHECKS.superFunds\n >) {\n if (EQUALITY_CHECKS.superFunds[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.superFunds.hasDifferences = true;\n result.sections.superFunds.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.taxDetails) as Array<\n keyof typeof EQUALITY_CHECKS.taxDetails\n >) {\n if (EQUALITY_CHECKS.taxDetails[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.taxDetails.hasDifferences = true;\n result.sections.taxDetails.fields[field].hasDifferences = true;\n }\n }\n\n for (const field of Object.keys(EQUALITY_CHECKS.tenure) as Array<\n keyof typeof EQUALITY_CHECKS.tenure\n >) {\n if (EQUALITY_CHECKS.tenure[field](a, b) !== true) {\n result.hasDifferences = true;\n result.sections.tenure.hasDifferences = true;\n result.sections.tenure.fields[field].hasDifferences = true;\n }\n }\n\n return result;\n};\n\nexport default comparePersonDataTransferLines;\n"],"mappings":"AACA,OAAO,qBAAqB;AAE5B,MAAM,iCAAiC,CACrC,GACA,MACG;AACH,QAAM,SAAqC;AAAA,IACzC,gBAAgB;AAAA,IAChB,UAAU;AAAA,MACR,cAAc;AAAA,QACZ,gBAAgB;AAAA,QAChB,QAAQ;AAAA,U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O,SAAS,WAAW,OAAO,KAAK,EAAE,iBAAiB;AAAA,IAC5D;AAAA,EACF;AAEA,aAAW,SAAS,OAAO,KAAK,gBAAgB,UAAU,GAEvD;AACD,QAAI,gBAAgB,WAAW,KAAK,EAAE,GAAG,CAAC,MAAM,MAAM;AACpD,aAAO,iBAAiB;AACxB,aAAO,SAAS,WAAW,iBAAiB;AAC5C,aAAO,SAAS,WAAW,OAAO,KAAK,EAAE,iBAAiB;AAAA,IAC5D;AAAA,EACF;AAEA,aAAW,SAAS,OAAO,KAAK,gBAAgB,MAAM,GAEnD;AACD,QAAI,gBAAgB,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,MAAM;AAChD,aAAO,iBAAiB;AACxB,aAAO,SAAS,OAAO,iBAAiB;AACxC,aAAO,SAAS,OAAO,OAAO,KAAK,EAAE,iBAAiB;AAAA,IACxD;AAAA,EACF;AAEA,SAAO;AACT;AAEA,IAAO,yCAAQ;","names":[]}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
const validatePersonDataTransferLineSuperFunds = (value) => {
|
|
2
2
|
if (value === null) return null;
|
|
3
|
-
const {
|
|
3
|
+
const {
|
|
4
|
+
superFund1MemberName,
|
|
5
|
+
superFund1MemberNumber,
|
|
6
|
+
superFund1Name,
|
|
7
|
+
superFund1Nomination,
|
|
8
|
+
superFund1Usi
|
|
9
|
+
} = value;
|
|
4
10
|
if (superFund1Nomination === null) {
|
|
5
11
|
throw Error("Invalid super fund 1 nomination");
|
|
6
12
|
}
|
|
@@ -11,12 +17,16 @@ const validatePersonDataTransferLineSuperFunds = (value) => {
|
|
|
11
17
|
if (superFund1MemberNumber === null || superFund1MemberNumber.trim() === "") {
|
|
12
18
|
throw Error("Invalid super fund 1 member number");
|
|
13
19
|
}
|
|
20
|
+
if (superFund1Name === null || superFund1Name.trim() === "") {
|
|
21
|
+
throw Error("Invalid super fund 1 name");
|
|
22
|
+
}
|
|
14
23
|
if (superFund1Usi === null || superFund1Usi.trim() === "") {
|
|
15
24
|
throw Error("Invalid super fund 1 USI");
|
|
16
25
|
}
|
|
17
26
|
return {
|
|
18
27
|
superFund1MemberName,
|
|
19
28
|
superFund1MemberNumber,
|
|
29
|
+
superFund1Name,
|
|
20
30
|
superFund1Nomination: "REGULATED",
|
|
21
31
|
superFund1Usi
|
|
22
32
|
};
|
|
@@ -29,12 +39,16 @@ const validatePersonDataTransferLineSuperFunds = (value) => {
|
|
|
29
39
|
"Invalid super fund 1 member number (only REGULATED funds require a member number)"
|
|
30
40
|
);
|
|
31
41
|
}
|
|
42
|
+
if (superFund1Name !== null) {
|
|
43
|
+
throw Error("Invalid super fund 1 name (only REGULATED funds require a name)");
|
|
44
|
+
}
|
|
32
45
|
if (superFund1Usi !== null) {
|
|
33
46
|
throw Error("Invalid super fund 1 USI (only REGULATED funds require a USI)");
|
|
34
47
|
}
|
|
35
48
|
return {
|
|
36
49
|
superFund1MemberName,
|
|
37
50
|
superFund1MemberNumber,
|
|
51
|
+
superFund1Name,
|
|
38
52
|
superFund1Nomination,
|
|
39
53
|
superFund1Usi
|
|
40
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/employee-records/validatePersonDataTransferLineSuperFunds.ts"],"sourcesContent":["import type { PartialPersonDataTransferLine, PersonDataTransferLine } from \"./_types.js\";\n\nconst validatePersonDataTransferLineSuperFunds = (\n value: PartialPersonDataTransferLine[\"superFunds\"],\n): PersonDataTransferLine[\"superFunds\"] => {\n if (value === null) return null;\n const {
|
|
1
|
+
{"version":3,"sources":["../../src/employee-records/validatePersonDataTransferLineSuperFunds.ts"],"sourcesContent":["import type { PartialPersonDataTransferLine, PersonDataTransferLine } from \"./_types.js\";\n\nconst validatePersonDataTransferLineSuperFunds = (\n value: PartialPersonDataTransferLine[\"superFunds\"],\n): PersonDataTransferLine[\"superFunds\"] => {\n if (value === null) return null;\n const {\n superFund1MemberName,\n superFund1MemberNumber,\n superFund1Name,\n superFund1Nomination,\n superFund1Usi,\n } = value;\n\n if (superFund1Nomination === null) {\n throw Error(\"Invalid super fund 1 nomination\");\n }\n\n if (superFund1Nomination === \"REGULATED\") {\n if (superFund1MemberName === null || superFund1MemberName.trim() === \"\") {\n throw Error(\"Invalid super fund 1 member name\");\n }\n if (superFund1MemberNumber === null || superFund1MemberNumber.trim() === \"\") {\n throw Error(\"Invalid super fund 1 member number\");\n }\n if (superFund1Name === null || superFund1Name.trim() === \"\") {\n throw Error(\"Invalid super fund 1 name\");\n }\n if (superFund1Usi === null || superFund1Usi.trim() === \"\") {\n throw Error(\"Invalid super fund 1 USI\");\n }\n return {\n superFund1MemberName,\n superFund1MemberNumber,\n superFund1Name,\n superFund1Nomination: \"REGULATED\",\n superFund1Usi,\n };\n }\n\n if (superFund1MemberName !== null) {\n throw Error(\"Invalid super fund 1 member name (only REGULATED funds require a member name)\");\n }\n\n if (superFund1MemberNumber !== null) {\n throw Error(\n \"Invalid super fund 1 member number (only REGULATED funds require a member number)\",\n );\n }\n\n if (superFund1Name !== null) {\n throw Error(\"Invalid super fund 1 name (only REGULATED funds require a name)\");\n }\n\n if (superFund1Usi !== null) {\n throw Error(\"Invalid super fund 1 USI (only REGULATED funds require a USI)\");\n }\n\n return {\n superFund1MemberName,\n superFund1MemberNumber,\n superFund1Name,\n superFund1Nomination,\n superFund1Usi,\n };\n};\n\nexport default validatePersonDataTransferLineSuperFunds;\n"],"mappings":"AAEA,MAAM,2CAA2C,CAC/C,UACyC;AACzC,MAAI,UAAU,KAAM,QAAO;AAC3B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,yBAAyB,MAAM;AACjC,UAAM,MAAM,iCAAiC;AAAA,EAC/C;AAEA,MAAI,yBAAyB,aAAa;AACxC,QAAI,yBAAyB,QAAQ,qBAAqB,KAAK,MAAM,IAAI;AACvE,YAAM,MAAM,kCAAkC;AAAA,IAChD;AACA,QAAI,2BAA2B,QAAQ,uBAAuB,KAAK,MAAM,IAAI;AAC3E,YAAM,MAAM,oCAAoC;AAAA,IAClD;AACA,QAAI,mBAAmB,QAAQ,eAAe,KAAK,MAAM,IAAI;AAC3D,YAAM,MAAM,2BAA2B;AAAA,IACzC;AACA,QAAI,kBAAkB,QAAQ,cAAc,KAAK,MAAM,IAAI;AACzD,YAAM,MAAM,0BAA0B;AAAA,IACxC;AACA,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA,sBAAsB;AAAA,MACtB;AAAA,IACF;AAAA,EACF;AAEA,MAAI,yBAAyB,MAAM;AACjC,UAAM,MAAM,+EAA+E;AAAA,EAC7F;AAEA,MAAI,2BAA2B,MAAM;AACnC,UAAM;AAAA,MACJ;AAAA,IACF;AAAA,EACF;AAEA,MAAI,mBAAmB,MAAM;AAC3B,UAAM,MAAM,iEAAiE;AAAA,EAC/E;AAEA,MAAI,kBAAkB,MAAM;AAC1B,UAAM,MAAM,+DAA+D;AAAA,EAC7E;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,mDAAQ;","names":[]}
|
package/dist/helpers/_types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApproveLeaveRequestResponsePayload, ApproveLeaveRequestRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancelLeaveRequestResponsePayload, CancelLeaveRequestRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateIntegrationRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateLeaveRequestResponsePayload, CreateLeaveRequestRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DenyLeaveRequestResponsePayload, DenyLeaveRequestRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetAuthorizationUrlRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetConfigurationUrlRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetLeaveBalancesRequestPayload, GetLeaveBalancesResponsePayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetLeaveCategoriesResponsePayload, GetLeaveCategoriesRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetLeaveRequestHoursRequestPayload, GetLeaveRequestHoursResponsePayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetOpenUrlRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProcessLeaveRequestResponsePayload, ProcessLeaveRequestRequestPayload } from '@worknice/utils/webhooks';
|
|
2
2
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
3
|
-
import '../_types-
|
|
3
|
+
import '../_types-of58m62-.js';
|
|
4
4
|
import '../api/_generated.js';
|
|
5
5
|
import '../api/WorkniceIntegrationLogger.js';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TriggerIntegrationSyncRequestPayload } from '@worknice/utils/webhooks';
|
|
2
|
-
import { W as WorkniceClient } from '../_types-
|
|
2
|
+
import { W as WorkniceClient } from '../_types-of58m62-.js';
|
|
3
3
|
import { PersonDataTransferLine } from '../employee-records/_types.js';
|
|
4
4
|
import { HandlerOptions, TaskContext } from './_types.js';
|
|
5
5
|
import { ConnectionStatus, LeaveCategoryInput, LeaveRequestStatus } from '../api/_generated.js';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { default as handleRequestWithWorknice } from './handleRequestWithWorknic
|
|
|
15
15
|
export { default as handleTriggerIntegrationSyncWebhook } from './handleTriggerIntegrationSyncWebhook.js';
|
|
16
16
|
import '@worknice/utils/webhooks';
|
|
17
17
|
import './_types.js';
|
|
18
|
-
import '../_types-
|
|
18
|
+
import '../_types-of58m62-.js';
|
|
19
19
|
import '../api/_generated.js';
|
|
20
20
|
import '../api/WorkniceIntegrationLogger.js';
|
|
21
21
|
import '../employee-records/_types.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worknice/js-sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"files": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"dedent": "^0.7.0",
|
|
38
38
|
"uuid": "^11.0.5",
|
|
39
|
-
"@worknice/utils": "^0.6.
|
|
39
|
+
"@worknice/utils": "^0.6.34"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@anolilab/semantic-release-pnpm": "^1.1.10",
|