@solibo/solibo-query 1.10.5 → 1.11.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/api/commands/communication/buySMSBundle.d.ts +1 -1
- package/dist/api/commands/communication/buySMSBundle.js +8 -3
- package/dist/api/commands/communication/buySMSBundle.js.map +1 -1
- package/dist/api/commands/company/saveCompanyDetailed.d.ts +1 -1
- package/dist/api/commands/company/saveCompanyDetailed.js +3 -0
- package/dist/api/commands/company/saveCompanyDetailed.js.map +1 -1
- package/dist/api/commands/company/saveImportDraft.d.ts +1 -1
- package/dist/api/commands/company/saveImportDraft.js +3 -0
- package/dist/api/commands/company/saveImportDraft.js.map +1 -1
- package/dist/api/commands/company/updateCompanyDetailed.d.ts +1 -1
- package/dist/api/commands/company/updateCompanyDetailed.js +6 -0
- package/dist/api/commands/company/updateCompanyDetailed.js.map +1 -1
- package/dist/api/commands/conversation/markConversationRead.d.ts +1 -1
- package/dist/api/commands/conversation/markConversationRead.js +15 -0
- package/dist/api/commands/conversation/markConversationRead.js.map +1 -1
- package/dist/api/commands/document/createDocumentReference.js +27 -0
- package/dist/api/commands/document/createDocumentReference.js.map +1 -1
- package/dist/api/commands/document/deleteDocument.d.ts +1 -1
- package/dist/api/commands/document/deleteDocument.js +26 -3
- package/dist/api/commands/document/deleteDocument.js.map +1 -1
- package/dist/api/commands/document/integratedDocumentMutations.d.ts +4 -4
- package/dist/api/commands/document/integratedDocumentMutations.js +23 -8
- package/dist/api/commands/document/integratedDocumentMutations.js.map +1 -1
- package/dist/api/commands/document/uploadDocument.js +45 -18
- package/dist/api/commands/document/uploadDocument.js.map +1 -1
- package/dist/api/commands/expense/approveExpense.d.ts +1 -1
- package/dist/api/commands/expense/approveExpense.js +12 -3
- package/dist/api/commands/expense/approveExpense.js.map +1 -1
- package/dist/api/commands/expense/createExpense.d.ts +1 -1
- package/dist/api/commands/expense/createExpense.js +4 -0
- package/dist/api/commands/expense/createExpense.js.map +1 -1
- package/dist/api/commands/expense/deleteExpense.d.ts +1 -1
- package/dist/api/commands/expense/deleteExpense.js +12 -3
- package/dist/api/commands/expense/deleteExpense.js.map +1 -1
- package/dist/api/commands/expense/rejectExpense.d.ts +1 -1
- package/dist/api/commands/expense/rejectExpense.js +12 -3
- package/dist/api/commands/expense/rejectExpense.js.map +1 -1
- package/dist/api/commands/homepage/createPost.d.ts +1 -1
- package/dist/api/commands/homepage/createPost.js +6 -0
- package/dist/api/commands/homepage/createPost.js.map +1 -1
- package/dist/api/commands/homepage/createPracticalInfo.d.ts +1 -1
- package/dist/api/commands/homepage/createPracticalInfo.js +11 -3
- package/dist/api/commands/homepage/createPracticalInfo.js.map +1 -1
- package/dist/api/commands/homepage/deletePost.d.ts +1 -1
- package/dist/api/commands/homepage/deletePost.js +14 -0
- package/dist/api/commands/homepage/deletePost.js.map +1 -1
- package/dist/api/commands/homepage/deletePracticalInfo.d.ts +1 -1
- package/dist/api/commands/homepage/deletePracticalInfo.js +16 -3
- package/dist/api/commands/homepage/deletePracticalInfo.js.map +1 -1
- package/dist/api/commands/homepage/updateFeedWeighting.d.ts +1 -1
- package/dist/api/commands/homepage/updateFeedWeighting.js +20 -3
- package/dist/api/commands/homepage/updateFeedWeighting.js.map +1 -1
- package/dist/api/commands/homepage/updatePost.d.ts +1 -1
- package/dist/api/commands/homepage/updatePost.js +9 -0
- package/dist/api/commands/homepage/updatePost.js.map +1 -1
- package/dist/api/commands/homepage/updatePracticalInfo.d.ts +1 -1
- package/dist/api/commands/homepage/updatePracticalInfo.js +16 -3
- package/dist/api/commands/homepage/updatePracticalInfo.js.map +1 -1
- package/dist/api/commands/invoicing/directSendInvoice.d.ts +9 -0
- package/dist/api/commands/invoicing/directSendInvoice.js +11 -0
- package/dist/api/commands/invoicing/directSendInvoice.js.map +1 -0
- package/dist/api/commands/issue/changeResponsible.d.ts +2 -2
- package/dist/api/commands/issue/changeResponsible.js +2 -0
- package/dist/api/commands/issue/changeResponsible.js.map +1 -1
- package/dist/api/commands/issue/closeIssue.d.ts +1 -1
- package/dist/api/commands/issue/closeIssue.js +1 -0
- package/dist/api/commands/issue/closeIssue.js.map +1 -1
- package/dist/api/commands/issue/createConversationToIssue.d.ts +1 -1
- package/dist/api/commands/issue/createConversationToIssue.js +1 -0
- package/dist/api/commands/issue/createConversationToIssue.js.map +1 -1
- package/dist/api/commands/issue/createIssue.d.ts +1 -1
- package/dist/api/commands/issue/createIssue.js +1 -0
- package/dist/api/commands/issue/createIssue.js.map +1 -1
- package/dist/api/commands/issue/createIssueToMeeting.d.ts +2 -2
- package/dist/api/commands/issue/createIssueToMeeting.js +2 -0
- package/dist/api/commands/issue/createIssueToMeeting.js.map +1 -1
- package/dist/api/commands/issue/createSectionToIssue.d.ts +1 -1
- package/dist/api/commands/issue/createSectionToIssue.js +1 -0
- package/dist/api/commands/issue/createSectionToIssue.js.map +1 -1
- package/dist/api/commands/issue/deleteSectionFromIssue.d.ts +1 -1
- package/dist/api/commands/issue/deleteSectionFromIssue.js +1 -0
- package/dist/api/commands/issue/deleteSectionFromIssue.js.map +1 -1
- package/dist/api/commands/issue/reOpenIssue.d.ts +1 -1
- package/dist/api/commands/issue/reOpenIssue.js +1 -0
- package/dist/api/commands/issue/reOpenIssue.js.map +1 -1
- package/dist/api/commands/issue/removeConversationFromIssue.d.ts +1 -1
- package/dist/api/commands/issue/removeConversationFromIssue.js +1 -0
- package/dist/api/commands/issue/removeConversationFromIssue.js.map +1 -1
- package/dist/api/commands/issue/removeIssueFromMeeting.d.ts +2 -2
- package/dist/api/commands/issue/removeIssueFromMeeting.js +2 -0
- package/dist/api/commands/issue/removeIssueFromMeeting.js.map +1 -1
- package/dist/api/commands/issue/updateIssue.d.ts +2 -2
- package/dist/api/commands/issue/updateIssue.js +2 -0
- package/dist/api/commands/issue/updateIssue.js.map +1 -1
- package/dist/api/commands/loan/deleteLoan.d.ts +1 -1
- package/dist/api/commands/loan/deleteLoan.js +16 -3
- package/dist/api/commands/loan/deleteLoan.js.map +1 -1
- package/dist/api/commands/loan/setMainDocumentId.d.ts +1 -1
- package/dist/api/commands/loan/setMainDocumentId.js +11 -3
- package/dist/api/commands/loan/setMainDocumentId.js.map +1 -1
- package/dist/api/commands/loan/updateLoan.d.ts +5 -5
- package/dist/api/commands/loan/updateLoan.js +55 -11
- package/dist/api/commands/loan/updateLoan.js.map +1 -1
- package/dist/api/commands/organization/assignParkingSpaceToOrganization.d.ts +1 -1
- package/dist/api/commands/organization/assignParkingSpaceToOrganization.js +9 -10
- package/dist/api/commands/organization/assignParkingSpaceToOrganization.js.map +1 -1
- package/dist/api/commands/organization/assignStorageRoomToOrganization.d.ts +1 -1
- package/dist/api/commands/organization/assignStorageRoomToOrganization.js +9 -10
- package/dist/api/commands/organization/assignStorageRoomToOrganization.js.map +1 -1
- package/dist/api/commands/organization/unAssignParkingSpaceToOrganization.d.ts +1 -1
- package/dist/api/commands/organization/unAssignParkingSpaceToOrganization.js +9 -10
- package/dist/api/commands/organization/unAssignParkingSpaceToOrganization.js.map +1 -1
- package/dist/api/commands/organization/unAssignStorageRoomToOrganization.d.ts +1 -1
- package/dist/api/commands/organization/unAssignStorageRoomToOrganization.js +9 -10
- package/dist/api/commands/organization/unAssignStorageRoomToOrganization.js.map +1 -1
- package/dist/api/commands/parkingSpaces/createParkingSpace.d.ts +1 -1
- package/dist/api/commands/parkingSpaces/createParkingSpace.js +4 -3
- package/dist/api/commands/parkingSpaces/createParkingSpace.js.map +1 -1
- package/dist/api/commands/parkingSpaces/deleteParkingSpace.d.ts +1 -1
- package/dist/api/commands/parkingSpaces/deleteParkingSpace.js +5 -14
- package/dist/api/commands/parkingSpaces/deleteParkingSpace.js.map +1 -1
- package/dist/api/commands/parkingSpaces/updateParkingSpace.d.ts +1 -1
- package/dist/api/commands/parkingSpaces/updateParkingSpace.js +4 -3
- package/dist/api/commands/parkingSpaces/updateParkingSpace.js.map +1 -1
- package/dist/api/commands/person/assignParkingSpaceToPerson.d.ts +1 -1
- package/dist/api/commands/person/assignParkingSpaceToPerson.js +9 -10
- package/dist/api/commands/person/assignParkingSpaceToPerson.js.map +1 -1
- package/dist/api/commands/person/assignStorageRoomToPerson.d.ts +1 -1
- package/dist/api/commands/person/assignStorageRoomToPerson.js +9 -10
- package/dist/api/commands/person/assignStorageRoomToPerson.js.map +1 -1
- package/dist/api/commands/person/unAssignParkingSpaceToPerson.d.ts +1 -1
- package/dist/api/commands/person/unAssignParkingSpaceToPerson.js +9 -10
- package/dist/api/commands/person/unAssignParkingSpaceToPerson.js.map +1 -1
- package/dist/api/commands/person/unAssignStorageRoomToPerson.d.ts +1 -1
- package/dist/api/commands/person/unAssignStorageRoomToPerson.js +9 -10
- package/dist/api/commands/person/unAssignStorageRoomToPerson.js.map +1 -1
- package/dist/api/commands/resident/createOccupancyRecord.d.ts +1 -1
- package/dist/api/commands/resident/createOccupancyRecord.js +7 -15
- package/dist/api/commands/resident/createOccupancyRecord.js.map +1 -1
- package/dist/api/commands/resident/createResident.d.ts +6 -1
- package/dist/api/commands/resident/createResident.js +11 -0
- package/dist/api/commands/resident/createResident.js.map +1 -1
- package/dist/api/commands/resident/deleteOccupancyRecord.d.ts +1 -1
- package/dist/api/commands/resident/deleteOccupancyRecord.js +7 -15
- package/dist/api/commands/resident/deleteOccupancyRecord.js.map +1 -1
- package/dist/api/commands/resident/residentActions.d.ts +18 -2
- package/dist/api/commands/resident/residentActions.js +17 -3
- package/dist/api/commands/resident/residentActions.js.map +1 -1
- package/dist/api/commands/resident/typedResidentMutations.d.ts +36 -0
- package/dist/api/commands/resident/typedResidentMutations.js +63 -0
- package/dist/api/commands/resident/typedResidentMutations.js.map +1 -0
- package/dist/api/commands/resident/updateOccupancyRecord.d.ts +1 -1
- package/dist/api/commands/resident/updateOccupancyRecord.js +7 -15
- package/dist/api/commands/resident/updateOccupancyRecord.js.map +1 -1
- package/dist/api/commands/resident/updateOrganizationReservations.js +8 -4
- package/dist/api/commands/resident/updateOrganizationReservations.js.map +1 -1
- package/dist/api/commands/resident/updateResident.d.ts +6 -1
- package/dist/api/commands/resident/updateResident.js +11 -0
- package/dist/api/commands/resident/updateResident.js.map +1 -1
- package/dist/api/commands/residentCommunication/residentCommunicationMutations.js +9 -0
- package/dist/api/commands/residentCommunication/residentCommunicationMutations.js.map +1 -1
- package/dist/api/commands/residentsAndSections/cacheInvalidation.d.ts +20 -0
- package/dist/api/commands/residentsAndSections/cacheInvalidation.js +68 -0
- package/dist/api/commands/residentsAndSections/cacheInvalidation.js.map +1 -0
- package/dist/api/commands/residentsAndSections/companyScope.d.ts +2 -0
- package/dist/api/commands/residentsAndSections/companyScope.js +7 -0
- package/dist/api/commands/residentsAndSections/companyScope.js.map +1 -0
- package/dist/api/commands/section/assignParkingSpaceToSection.d.ts +1 -1
- package/dist/api/commands/section/assignParkingSpaceToSection.js +6 -10
- package/dist/api/commands/section/assignParkingSpaceToSection.js.map +1 -1
- package/dist/api/commands/section/assignStorageRoomToSection.d.ts +1 -1
- package/dist/api/commands/section/assignStorageRoomToSection.js +6 -10
- package/dist/api/commands/section/assignStorageRoomToSection.js.map +1 -1
- package/dist/api/commands/section/createSection.d.ts +2 -2
- package/dist/api/commands/section/createSection.js +13 -5
- package/dist/api/commands/section/createSection.js.map +1 -1
- package/dist/api/commands/section/createSubSection.d.ts +2 -2
- package/dist/api/commands/section/createSubSection.js +14 -5
- package/dist/api/commands/section/createSubSection.js.map +1 -1
- package/dist/api/commands/section/deleteSection.d.ts +1 -1
- package/dist/api/commands/section/deleteSection.js +7 -0
- package/dist/api/commands/section/deleteSection.js.map +1 -1
- package/dist/api/commands/section/massUpdateSection.d.ts +1 -1
- package/dist/api/commands/section/massUpdateSection.js +16 -4
- package/dist/api/commands/section/massUpdateSection.js.map +1 -1
- package/dist/api/commands/section/ownershipChangeMutations.d.ts +12 -0
- package/dist/api/commands/section/ownershipChangeMutations.js +46 -0
- package/dist/api/commands/section/ownershipChangeMutations.js.map +1 -0
- package/dist/api/commands/section/ownershipTransferSection.d.ts +1 -1
- package/dist/api/commands/section/ownershipTransferSection.js +5 -0
- package/dist/api/commands/section/ownershipTransferSection.js.map +1 -1
- package/dist/api/commands/section/sectionMappers.d.ts +4 -0
- package/dist/api/commands/section/sectionMappers.js +68 -0
- package/dist/api/commands/section/sectionMappers.js.map +1 -0
- package/dist/api/commands/section/sectionStructureMutations.d.ts +12 -0
- package/dist/api/commands/section/sectionStructureMutations.js +46 -0
- package/dist/api/commands/section/sectionStructureMutations.js.map +1 -0
- package/dist/api/commands/section/tagOnSection.d.ts +2 -2
- package/dist/api/commands/section/tagOnSection.js +6 -0
- package/dist/api/commands/section/tagOnSection.js.map +1 -1
- package/dist/api/commands/section/unAssignParkingSpaceToSection.d.ts +1 -1
- package/dist/api/commands/section/unAssignParkingSpaceToSection.js +6 -10
- package/dist/api/commands/section/unAssignParkingSpaceToSection.js.map +1 -1
- package/dist/api/commands/section/unAssignStorageRoomToSection.d.ts +1 -1
- package/dist/api/commands/section/unAssignStorageRoomToSection.js +6 -10
- package/dist/api/commands/section/unAssignStorageRoomToSection.js.map +1 -1
- package/dist/api/commands/section/updateSection.d.ts +1 -1
- package/dist/api/commands/section/updateSection.js +16 -5
- package/dist/api/commands/section/updateSection.js.map +1 -1
- package/dist/api/commands/section/updateTagsOnSection.d.ts +1 -1
- package/dist/api/commands/section/updateTagsOnSection.js +3 -0
- package/dist/api/commands/section/updateTagsOnSection.js.map +1 -1
- package/dist/api/commands/settlement/updateSettlementProviderConfiguration.d.ts +1 -1
- package/dist/api/commands/settlement/updateSettlementProviderConfiguration.js +9 -4
- package/dist/api/commands/settlement/updateSettlementProviderConfiguration.js.map +1 -1
- package/dist/api/commands/settlement/upsertSettlementProviderCredentials.d.ts +1 -1
- package/dist/api/commands/settlement/upsertSettlementProviderCredentials.js +8 -3
- package/dist/api/commands/settlement/upsertSettlementProviderCredentials.js.map +1 -1
- package/dist/api/commands/storageRoom/createStorageRoom.d.ts +1 -1
- package/dist/api/commands/storageRoom/createStorageRoom.js +4 -3
- package/dist/api/commands/storageRoom/createStorageRoom.js.map +1 -1
- package/dist/api/commands/storageRoom/deleteStorageRoom.d.ts +1 -1
- package/dist/api/commands/storageRoom/deleteStorageRoom.js +5 -14
- package/dist/api/commands/storageRoom/deleteStorageRoom.js.map +1 -1
- package/dist/api/commands/storageRoom/updateStorageRoom.d.ts +1 -1
- package/dist/api/commands/storageRoom/updateStorageRoom.js +4 -3
- package/dist/api/commands/storageRoom/updateStorageRoom.js.map +1 -1
- package/dist/api/commands/user/deleteProfilePicture.d.ts +1 -1
- package/dist/api/commands/user/deleteProfilePicture.js +3 -0
- package/dist/api/commands/user/deleteProfilePicture.js.map +1 -1
- package/dist/api/commands/user/fCMDevice.d.ts +5 -2
- package/dist/api/commands/user/fCMDevice.js +5 -2
- package/dist/api/commands/user/fCMDevice.js.map +1 -1
- package/dist/api/commands/user/updateUser.d.ts +1 -1
- package/dist/api/commands/user/updateUser.js +8 -3
- package/dist/api/commands/user/updateUser.js.map +1 -1
- package/dist/api/commands/user/uploadProfilePicture.d.ts +1 -1
- package/dist/api/commands/user/uploadProfilePicture.js +8 -3
- package/dist/api/commands/user/uploadProfilePicture.js.map +1 -1
- package/dist/api/queries/document/documents.js +2 -1
- package/dist/api/queries/document/documents.js.map +1 -1
- package/dist/api/queries/homepage/homepage.js +7 -6
- package/dist/api/queries/homepage/homepage.js.map +1 -1
- package/dist/api/queries/invoicing/customerInvoices.d.ts +1 -1
- package/dist/api/queries/invoicing/customerInvoices.js +1 -1
- package/dist/api/queries/invoicing/customerInvoices.js.map +1 -1
- package/dist/api/queries/invoicing/customerMetadata.d.ts +1 -1
- package/dist/api/queries/invoicing/customerMetadata.js +1 -1
- package/dist/api/queries/invoicing/customerMetadata.js.map +1 -1
- package/dist/api/queries/invoicing/customerRecipient.d.ts +1 -1
- package/dist/api/queries/invoicing/customerRecipient.js +1 -1
- package/dist/api/queries/invoicing/customerRecipient.js.map +1 -1
- package/dist/api/queries/invoicing/invoicingKeys.js +34 -27
- package/dist/api/queries/invoicing/invoicingKeys.js.map +1 -1
- package/dist/api/queries/invoicing/sectionInvoices.d.ts +1 -1
- package/dist/api/queries/invoicing/sectionInvoices.js +1 -1
- package/dist/api/queries/invoicing/sectionInvoices.js.map +1 -1
- package/dist/api/queries/organization/organization.d.ts +15 -7
- package/dist/api/queries/organization/organization.js +8 -9
- package/dist/api/queries/organization/organization.js.map +1 -1
- package/dist/api/queries/parkingSpaces/parkingSpaceOperations.d.ts +744 -0
- package/dist/api/queries/parkingSpaces/parkingSpaceOperations.js +115 -0
- package/dist/api/queries/parkingSpaces/parkingSpaceOperations.js.map +1 -0
- package/dist/api/queries/parkingSpaces/parkingSpaces.d.ts +1 -1
- package/dist/api/queries/parkingSpaces/parkingSpaces.js +5 -1
- package/dist/api/queries/parkingSpaces/parkingSpaces.js.map +1 -1
- package/dist/api/queries/person/person.d.ts +19 -7
- package/dist/api/queries/person/person.js +9 -10
- package/dist/api/queries/person/person.js.map +1 -1
- package/dist/api/queries/residentsAndSections/domain.d.ts +24 -1
- package/dist/api/queries/residentsAndSections/domain.js +21 -1
- package/dist/api/queries/residentsAndSections/domain.js.map +1 -1
- package/dist/api/queries/residentsAndSections/queryIdentity.d.ts +11 -0
- package/dist/api/queries/residentsAndSections/queryIdentity.js +14 -0
- package/dist/api/queries/residentsAndSections/queryIdentity.js.map +1 -0
- package/dist/api/queries/residentsAndSections/residents.d.ts +47 -6
- package/dist/api/queries/residentsAndSections/residents.js +77 -1
- package/dist/api/queries/residentsAndSections/residents.js.map +1 -1
- package/dist/api/queries/residentsAndSections/sections.d.ts +19 -6
- package/dist/api/queries/residentsAndSections/sections.js +26 -1
- package/dist/api/queries/residentsAndSections/sections.js.map +1 -1
- package/dist/api/queries/residentsAndSections/sectionsSearch.d.ts +8 -7
- package/dist/api/queries/residentsAndSections/sectionsSearch.js +9 -3
- package/dist/api/queries/residentsAndSections/sectionsSearch.js.map +1 -1
- package/dist/api/queries/storageRoom/storageRoomOperations.d.ts +728 -0
- package/dist/api/queries/storageRoom/storageRoomOperations.js +106 -0
- package/dist/api/queries/storageRoom/storageRoomOperations.js.map +1 -0
- package/dist/api/queries/storageRoom/storageRooms.d.ts +1 -1
- package/dist/api/queries/storageRoom/storageRooms.js +5 -1
- package/dist/api/queries/storageRoom/storageRooms.js.map +1 -1
- package/dist/api/queries/supplier/suppliers.js +3 -2
- package/dist/api/queries/supplier/suppliers.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/pageUtils.d.ts +2 -2
- package/dist/utils/pageUtils.js.map +1 -1
- package/dist/utils/queryKeys.d.ts +1 -0
- package/dist/utils/queryKeys.js +8 -0
- package/dist/utils/queryKeys.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createParkingSpace.js","sourceRoot":"","sources":["../../../../src/api/commands/parkingSpaces/createParkingSpace.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createParkingSpace.js","sourceRoot":"","sources":["../../../../src/api/commands/parkingSpaces/createParkingSpace.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,iCAAiC,CAC/C,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAGZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACjC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,KAAK,EAAE,MAAM,CAAC,GAAG;SAClB,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,oBAAoB,EAAE,IAAI;SAC3B,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n CreateParkingSpaceCommandProps,\n Id,\n SdkInput,\n SoliboClient,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function createParkingSpaceMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n cmd: SdkInput<CreateParkingSpaceCommandProps>;\n }) =>\n sdk.api.parking.createParkingSpace({\n companyId: params.companyId,\n input: params.cmd,\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n includeParkingSpaces: true,\n }),\n };\n}\n"]}
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { residentKeys } from "../../queries/residentsAndSections/residents.js";
|
|
3
|
-
import { sectionKeys } from "../../queries/residentsAndSections/sections.js";
|
|
1
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
4
2
|
export function deleteParkingSpaceMutationOptions(sdk, queryClient) {
|
|
5
3
|
return {
|
|
6
4
|
mutationFn: (params) => sdk.api.parking.deleteParkingSpace({
|
|
7
5
|
companyId: params.companyId,
|
|
8
6
|
parkingSpaceId: params.parkingSpaceId,
|
|
9
7
|
}),
|
|
10
|
-
onSuccess: (_, params) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
queryClient.invalidateQueries({
|
|
15
|
-
queryKey: [sectionKeys.list(params.companyId)],
|
|
16
|
-
}),
|
|
17
|
-
queryClient.invalidateQueries({
|
|
18
|
-
queryKey: [residentKeys.list(params.companyId)],
|
|
19
|
-
}),
|
|
20
|
-
]),
|
|
8
|
+
onSuccess: (_, params) => invalidateResidentSectionCaches(queryClient, {
|
|
9
|
+
companyId: params.companyId,
|
|
10
|
+
parkingSpaceId: params.parkingSpaceId,
|
|
11
|
+
}),
|
|
21
12
|
};
|
|
22
13
|
}
|
|
23
14
|
//# sourceMappingURL=deleteParkingSpace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteParkingSpace.js","sourceRoot":"","sources":["../../../../src/api/commands/parkingSpaces/deleteParkingSpace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deleteParkingSpace.js","sourceRoot":"","sources":["../../../../src/api/commands/parkingSpaces/deleteParkingSpace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,iCAAiC,CAC/C,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAA6C,EAAE,EAAE,CAC5D,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACjC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,cAAc,EAAE,MAAM,CAAC,cAAc;SACtC,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,cAAc,EAAE,MAAM,CAAC,cAAc;SACtC,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import { Id, SoliboClient } from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function deleteParkingSpaceMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: { companyId: Id; parkingSpaceId: Id }) =>\n sdk.api.parking.deleteParkingSpace({\n companyId: params.companyId,\n parkingSpaceId: params.parkingSpaceId,\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n parkingSpaceId: params.parkingSpaceId,\n }),\n };\n}\n"]}
|
|
@@ -6,5 +6,5 @@ export declare function updateParkingSpaceMutationOptions(sdk: SoliboClient, que
|
|
|
6
6
|
parkingSpaceId: Id;
|
|
7
7
|
cmd: SdkInput<UpdateParkingSpaceCommandProps>;
|
|
8
8
|
}) => Promise<import("@solibo/solibo-sdk").ParkingSpace>;
|
|
9
|
-
onSuccess: (_: any, params: any) => Promise<void>;
|
|
9
|
+
onSuccess: (_: any, params: any) => Promise<void[]>;
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
2
2
|
export function updateParkingSpaceMutationOptions(sdk, queryClient) {
|
|
3
3
|
return {
|
|
4
4
|
mutationFn: (params) => sdk.api.parking.updateParkingSpace({
|
|
@@ -6,8 +6,9 @@ export function updateParkingSpaceMutationOptions(sdk, queryClient) {
|
|
|
6
6
|
parkingSpaceId: params.parkingSpaceId,
|
|
7
7
|
input: params.cmd,
|
|
8
8
|
}),
|
|
9
|
-
onSuccess: (_, params) => queryClient
|
|
10
|
-
|
|
9
|
+
onSuccess: (_, params) => invalidateResidentSectionCaches(queryClient, {
|
|
10
|
+
companyId: params.companyId,
|
|
11
|
+
parkingSpaceId: params.parkingSpaceId,
|
|
11
12
|
}),
|
|
12
13
|
};
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateParkingSpace.js","sourceRoot":"","sources":["../../../../src/api/commands/parkingSpaces/updateParkingSpace.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"updateParkingSpace.js","sourceRoot":"","sources":["../../../../src/api/commands/parkingSpaces/updateParkingSpace.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,iCAAiC,CAC/C,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAIZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACjC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,KAAK,EAAE,MAAM,CAAC,GAAG;SAClB,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,cAAc,EAAE,MAAM,CAAC,cAAc;SACtC,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n Id,\n SdkInput,\n SoliboClient,\n UpdateParkingSpaceCommandProps,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function updateParkingSpaceMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n parkingSpaceId: Id;\n cmd: SdkInput<UpdateParkingSpaceCommandProps>;\n }) =>\n sdk.api.parking.updateParkingSpace({\n companyId: params.companyId,\n parkingSpaceId: params.parkingSpaceId,\n input: params.cmd,\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n parkingSpaceId: params.parkingSpaceId,\n }),\n };\n}\n"]}
|
|
@@ -8,5 +8,5 @@ export declare function assignParkingSpaceToPersonMutationOptions(sdk: SoliboCli
|
|
|
8
8
|
validFrom?: SoliboInstant | null;
|
|
9
9
|
validTo?: SoliboInstant | null;
|
|
10
10
|
}) => Promise<void>;
|
|
11
|
-
onSuccess: (_: any, params: any) => Promise<[
|
|
11
|
+
onSuccess: (_: any, params: any) => Promise<void[]>;
|
|
12
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ResidentType, } from "@solibo/solibo-sdk";
|
|
2
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
3
3
|
export function assignParkingSpaceToPersonMutationOptions(sdk, queryClient) {
|
|
4
4
|
return {
|
|
5
5
|
mutationFn: (params) => sdk.api.parking.assignParkingSpaceToPerson({
|
|
@@ -11,14 +11,13 @@ export function assignParkingSpaceToPersonMutationOptions(sdk, queryClient) {
|
|
|
11
11
|
validTo: params.validTo ?? null,
|
|
12
12
|
},
|
|
13
13
|
}),
|
|
14
|
-
onSuccess: (_, params) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
]),
|
|
14
|
+
onSuccess: (_, params) => invalidateResidentSectionCaches(queryClient, {
|
|
15
|
+
companyId: params.companyId,
|
|
16
|
+
residentType: ResidentType.Person.name,
|
|
17
|
+
residentId: params.personId,
|
|
18
|
+
personId: params.personId,
|
|
19
|
+
parkingSpaceId: params.parkingSpaceId,
|
|
20
|
+
}),
|
|
22
21
|
};
|
|
23
22
|
}
|
|
24
23
|
//# sourceMappingURL=assignParkingSpaceToPerson.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignParkingSpaceToPerson.js","sourceRoot":"","sources":["../../../../src/api/commands/person/assignParkingSpaceToPerson.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"assignParkingSpaceToPerson.js","sourceRoot":"","sources":["../../../../src/api/commands/person/assignParkingSpaceToPerson.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,GAGb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,yCAAyC,CACvD,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAMZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC;YACzC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,KAAK,EAAE;gBACL,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;gBACnC,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,IAAI;aAChC;SACF,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI;YACtC,UAAU,EAAE,MAAM,CAAC,QAAQ;YAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,cAAc,EAAE,MAAM,CAAC,cAAc;SACtC,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n Id,\n ResidentType,\n SoliboClient,\n SoliboInstant,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function assignParkingSpaceToPersonMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n parkingSpaceId: Id;\n personId: Id;\n validFrom?: SoliboInstant | null;\n validTo?: SoliboInstant | null;\n }) =>\n sdk.api.parking.assignParkingSpaceToPerson({\n companyId: params.companyId,\n parkingSpaceId: params.parkingSpaceId,\n personId: params.personId,\n input: {\n validFrom: params.validFrom ?? null,\n validTo: params.validTo ?? null,\n },\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n residentType: ResidentType.Person.name,\n residentId: params.personId,\n personId: params.personId,\n parkingSpaceId: params.parkingSpaceId,\n }),\n };\n}\n"]}
|
|
@@ -8,5 +8,5 @@ export declare function assignStorageRoomToPersonMutationOptions(sdk: SoliboClie
|
|
|
8
8
|
validFrom?: SoliboInstant | null;
|
|
9
9
|
validTo?: SoliboInstant | null;
|
|
10
10
|
}) => Promise<void>;
|
|
11
|
-
onSuccess: (_: any, params: any) => Promise<[
|
|
11
|
+
onSuccess: (_: any, params: any) => Promise<void[]>;
|
|
12
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ResidentType, } from "@solibo/solibo-sdk";
|
|
2
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
3
3
|
export function assignStorageRoomToPersonMutationOptions(sdk, queryClient) {
|
|
4
4
|
return {
|
|
5
5
|
mutationFn: (params) => sdk.api.storage.assignStorageRoomToPerson({
|
|
@@ -11,14 +11,13 @@ export function assignStorageRoomToPersonMutationOptions(sdk, queryClient) {
|
|
|
11
11
|
validTo: params.validTo ?? null,
|
|
12
12
|
},
|
|
13
13
|
}),
|
|
14
|
-
onSuccess: (_, params) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
]),
|
|
14
|
+
onSuccess: (_, params) => invalidateResidentSectionCaches(queryClient, {
|
|
15
|
+
companyId: params.companyId,
|
|
16
|
+
residentType: ResidentType.Person.name,
|
|
17
|
+
residentId: params.personId,
|
|
18
|
+
personId: params.personId,
|
|
19
|
+
storageRoomId: params.storageRoomId,
|
|
20
|
+
}),
|
|
22
21
|
};
|
|
23
22
|
}
|
|
24
23
|
//# sourceMappingURL=assignStorageRoomToPerson.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignStorageRoomToPerson.js","sourceRoot":"","sources":["../../../../src/api/commands/person/assignStorageRoomToPerson.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"assignStorageRoomToPerson.js","sourceRoot":"","sources":["../../../../src/api/commands/person/assignStorageRoomToPerson.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,GAGb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,wCAAwC,CACtD,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAMZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC;YACxC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,KAAK,EAAE;gBACL,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;gBACnC,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,IAAI;aAChC;SACF,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI;YACtC,UAAU,EAAE,MAAM,CAAC,QAAQ;YAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,aAAa,EAAE,MAAM,CAAC,aAAa;SACpC,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n Id,\n ResidentType,\n SoliboClient,\n SoliboInstant,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function assignStorageRoomToPersonMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n storageRoomId: Id;\n personId: Id;\n validFrom?: SoliboInstant | null;\n validTo?: SoliboInstant | null;\n }) =>\n sdk.api.storage.assignStorageRoomToPerson({\n companyId: params.companyId,\n storageRoomId: params.storageRoomId,\n personId: params.personId,\n input: {\n validFrom: params.validFrom ?? null,\n validTo: params.validTo ?? null,\n },\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n residentType: ResidentType.Person.name,\n residentId: params.personId,\n personId: params.personId,\n storageRoomId: params.storageRoomId,\n }),\n };\n}\n"]}
|
|
@@ -8,5 +8,5 @@ export declare function unAssignParkingSpaceToPersonMutationOptions(sdk: SoliboC
|
|
|
8
8
|
validFrom?: SoliboInstant | null;
|
|
9
9
|
validTo?: SoliboInstant | null;
|
|
10
10
|
}) => Promise<void>;
|
|
11
|
-
onSuccess: (_: any, params: any) => Promise<[
|
|
11
|
+
onSuccess: (_: any, params: any) => Promise<void[]>;
|
|
12
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ResidentType, } from "@solibo/solibo-sdk";
|
|
2
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
3
3
|
export function unAssignParkingSpaceToPersonMutationOptions(sdk, queryClient) {
|
|
4
4
|
return {
|
|
5
5
|
mutationFn: (params) => sdk.api.parking.unAssignParkingSpaceToPerson({
|
|
@@ -11,14 +11,13 @@ export function unAssignParkingSpaceToPersonMutationOptions(sdk, queryClient) {
|
|
|
11
11
|
validTo: params.validTo ?? null,
|
|
12
12
|
},
|
|
13
13
|
}),
|
|
14
|
-
onSuccess: (_, params) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
]),
|
|
14
|
+
onSuccess: (_, params) => invalidateResidentSectionCaches(queryClient, {
|
|
15
|
+
companyId: params.companyId,
|
|
16
|
+
residentType: ResidentType.Person.name,
|
|
17
|
+
residentId: params.personId,
|
|
18
|
+
personId: params.personId,
|
|
19
|
+
parkingSpaceId: params.parkingSpaceId,
|
|
20
|
+
}),
|
|
22
21
|
};
|
|
23
22
|
}
|
|
24
23
|
//# sourceMappingURL=unAssignParkingSpaceToPerson.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unAssignParkingSpaceToPerson.js","sourceRoot":"","sources":["../../../../src/api/commands/person/unAssignParkingSpaceToPerson.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unAssignParkingSpaceToPerson.js","sourceRoot":"","sources":["../../../../src/api/commands/person/unAssignParkingSpaceToPerson.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,GAGb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,2CAA2C,CACzD,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAMZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,4BAA4B,CAAC;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,KAAK,EAAE;gBACL,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;gBACnC,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,IAAI;aAChC;SACF,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI;YACtC,UAAU,EAAE,MAAM,CAAC,QAAQ;YAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,cAAc,EAAE,MAAM,CAAC,cAAc;SACtC,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n Id,\n ResidentType,\n SoliboClient,\n SoliboInstant,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function unAssignParkingSpaceToPersonMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n parkingSpaceId: Id;\n personId: Id;\n validFrom?: SoliboInstant | null;\n validTo?: SoliboInstant | null;\n }) =>\n sdk.api.parking.unAssignParkingSpaceToPerson({\n companyId: params.companyId,\n parkingSpaceId: params.parkingSpaceId,\n personId: params.personId,\n input: {\n validFrom: params.validFrom ?? null,\n validTo: params.validTo ?? null,\n },\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n residentType: ResidentType.Person.name,\n residentId: params.personId,\n personId: params.personId,\n parkingSpaceId: params.parkingSpaceId,\n }),\n };\n}\n"]}
|
|
@@ -8,5 +8,5 @@ export declare function unAssignStorageRoomToPersonMutationOptions(sdk: SoliboCl
|
|
|
8
8
|
validFrom?: SoliboInstant | null;
|
|
9
9
|
validTo?: SoliboInstant | null;
|
|
10
10
|
}) => Promise<void>;
|
|
11
|
-
onSuccess: (_: any, params: any) => Promise<[
|
|
11
|
+
onSuccess: (_: any, params: any) => Promise<void[]>;
|
|
12
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ResidentType, } from "@solibo/solibo-sdk";
|
|
2
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
3
3
|
export function unAssignStorageRoomToPersonMutationOptions(sdk, queryClient) {
|
|
4
4
|
return {
|
|
5
5
|
mutationFn: (params) => sdk.api.storage.unAssignStorageRoomToPerson({
|
|
@@ -11,14 +11,13 @@ export function unAssignStorageRoomToPersonMutationOptions(sdk, queryClient) {
|
|
|
11
11
|
validTo: params.validTo ?? null,
|
|
12
12
|
},
|
|
13
13
|
}),
|
|
14
|
-
onSuccess: (_, params) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
]),
|
|
14
|
+
onSuccess: (_, params) => invalidateResidentSectionCaches(queryClient, {
|
|
15
|
+
companyId: params.companyId,
|
|
16
|
+
residentType: ResidentType.Person.name,
|
|
17
|
+
residentId: params.personId,
|
|
18
|
+
personId: params.personId,
|
|
19
|
+
storageRoomId: params.storageRoomId,
|
|
20
|
+
}),
|
|
22
21
|
};
|
|
23
22
|
}
|
|
24
23
|
//# sourceMappingURL=unAssignStorageRoomToPerson.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unAssignStorageRoomToPerson.js","sourceRoot":"","sources":["../../../../src/api/commands/person/unAssignStorageRoomToPerson.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unAssignStorageRoomToPerson.js","sourceRoot":"","sources":["../../../../src/api/commands/person/unAssignStorageRoomToPerson.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,GAGb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,0CAA0C,CACxD,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAMZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,2BAA2B,CAAC;YAC1C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,KAAK,EAAE;gBACL,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;gBACnC,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,IAAI;aAChC;SACF,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI;YACtC,UAAU,EAAE,MAAM,CAAC,QAAQ;YAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,aAAa,EAAE,MAAM,CAAC,aAAa;SACpC,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n Id,\n ResidentType,\n SoliboClient,\n SoliboInstant,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function unAssignStorageRoomToPersonMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n storageRoomId: Id;\n personId: Id;\n validFrom?: SoliboInstant | null;\n validTo?: SoliboInstant | null;\n }) =>\n sdk.api.storage.unAssignStorageRoomToPerson({\n companyId: params.companyId,\n storageRoomId: params.storageRoomId,\n personId: params.personId,\n input: {\n validFrom: params.validFrom ?? null,\n validTo: params.validTo ?? null,\n },\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n residentType: ResidentType.Person.name,\n residentId: params.personId,\n personId: params.personId,\n storageRoomId: params.storageRoomId,\n }),\n };\n}\n"]}
|
|
@@ -8,5 +8,5 @@ export declare function createOccupancyRecordMutationOptions(sdk: SoliboClient,
|
|
|
8
8
|
residentId: Id;
|
|
9
9
|
cmd: SdkInput<CreateAttendanceCommandProps>;
|
|
10
10
|
}) => Promise<void>;
|
|
11
|
-
onSuccess: (_: any, params: any) => Promise<[
|
|
11
|
+
onSuccess: (_: any, params: any) => Promise<void[]>;
|
|
12
12
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { sectionKeys } from "../../queries/residentsAndSections/sections.js";
|
|
1
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
3
2
|
export function createOccupancyRecordMutationOptions(sdk, queryClient) {
|
|
4
3
|
return {
|
|
5
4
|
mutationFn: (params) => sdk.api.residents.createResidentAttendance({
|
|
@@ -9,19 +8,12 @@ export function createOccupancyRecordMutationOptions(sdk, queryClient) {
|
|
|
9
8
|
sectionId: params.sectionId,
|
|
10
9
|
input: params.cmd,
|
|
11
10
|
}),
|
|
12
|
-
onSuccess: (_, params) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
residentKeys.occupancy(params.companyId, params.residentType, params.residentId),
|
|
19
|
-
],
|
|
20
|
-
}),
|
|
21
|
-
queryClient.invalidateQueries({
|
|
22
|
-
queryKey: [residentKeys.list(params.companyId)],
|
|
23
|
-
}),
|
|
24
|
-
]),
|
|
11
|
+
onSuccess: (_, params) => invalidateResidentSectionCaches(queryClient, {
|
|
12
|
+
companyId: params.companyId,
|
|
13
|
+
residentType: params.residentType,
|
|
14
|
+
residentId: params.residentId,
|
|
15
|
+
sectionId: params.sectionId,
|
|
16
|
+
}),
|
|
25
17
|
};
|
|
26
18
|
}
|
|
27
19
|
//# sourceMappingURL=createOccupancyRecord.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOccupancyRecord.js","sourceRoot":"","sources":["../../../../src/api/commands/resident/createOccupancyRecord.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createOccupancyRecord.js","sourceRoot":"","sources":["../../../../src/api/commands/resident/createOccupancyRecord.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,oCAAoC,CAClD,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAMZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,wBAAwB,CAAC;YACzC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,KAAK,EAAE,MAAM,CAAC,GAAG;SAClB,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n CreateAttendanceCommandProps,\n Id,\n SdkInput,\n SoliboClient,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function createOccupancyRecordMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n sectionId: Id;\n residentType: string;\n residentId: Id;\n cmd: SdkInput<CreateAttendanceCommandProps>;\n }) =>\n sdk.api.residents.createResidentAttendance({\n companyId: params.companyId,\n residentType: params.residentType,\n residentId: params.residentId,\n sectionId: params.sectionId,\n input: params.cmd,\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n residentType: params.residentType,\n residentId: params.residentId,\n sectionId: params.sectionId,\n }),\n };\n}\n"]}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { CreateResidentCommand, Id, ResidentType, SoliboClient } from "@solibo/solibo-sdk";
|
|
2
2
|
import type { QueryClient } from "@tanstack/query-core";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated The backend can return either person or organization data while
|
|
5
|
+
* this legacy contract reports Person. Use createPersonResidentMutationOptions
|
|
6
|
+
* or createOrganizationResidentMutationOptions for exact result types.
|
|
7
|
+
*/
|
|
3
8
|
export declare function createResidentMutationOptions(sdk: SoliboClient, queryClient: QueryClient): {
|
|
4
9
|
mutationFn: (params: {
|
|
5
10
|
companyId: Id;
|
|
6
11
|
residentType: ResidentType;
|
|
7
12
|
cmd: CreateResidentCommand;
|
|
8
13
|
}) => Promise<import("@solibo/solibo-sdk").Person>;
|
|
9
|
-
onSuccess: (_: any, params: any) => Promise<[void, void, void, void, void, void, void]>;
|
|
14
|
+
onSuccess: (_: any, params: any) => Promise<[void[], void, void, void, void, void, void, void]>;
|
|
10
15
|
};
|
|
@@ -4,6 +4,12 @@ import { organizationKeys } from "../../queries/organization/organizationsInComp
|
|
|
4
4
|
import { personKeys } from "../../queries/person/persons.js";
|
|
5
5
|
import { residentKeys } from "../../queries/residentsAndSections/residents.js";
|
|
6
6
|
import { sectionKeys } from "../../queries/residentsAndSections/sections.js";
|
|
7
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated The backend can return either person or organization data while
|
|
10
|
+
* this legacy contract reports Person. Use createPersonResidentMutationOptions
|
|
11
|
+
* or createOrganizationResidentMutationOptions for exact result types.
|
|
12
|
+
*/
|
|
7
13
|
export function createResidentMutationOptions(sdk, queryClient) {
|
|
8
14
|
return {
|
|
9
15
|
mutationFn: (params) => sdk.api.residents.createResident({
|
|
@@ -12,6 +18,11 @@ export function createResidentMutationOptions(sdk, queryClient) {
|
|
|
12
18
|
input: params.cmd,
|
|
13
19
|
}),
|
|
14
20
|
onSuccess: (_, params) => Promise.all([
|
|
21
|
+
invalidateResidentSectionCaches(queryClient, {
|
|
22
|
+
companyId: params.companyId,
|
|
23
|
+
residentType: params.residentType.name,
|
|
24
|
+
sectionId: params.cmd.sectionId ?? undefined,
|
|
25
|
+
}),
|
|
15
26
|
queryClient.invalidateQueries({
|
|
16
27
|
queryKey: [residentKeys.list(params.companyId)],
|
|
17
28
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createResident.js","sourceRoot":"","sources":["../../../../src/api/commands/resident/createResident.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,MAAM,UAAU,6BAA6B,CAC3C,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAIZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC;YAC/B,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,KAAK,EAAE,MAAM,CAAC,GAAG;SAClB,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,OAAO,CAAC,GAAG,CAAC;YACV,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAChD,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC/C,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE;oBACR,YAAY,CAAC,OAAO,CAClB,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,GAAG,CAAC,SAAS,IAAI,SAAS,CAClC;iBACF;aACF,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE;oBACR,aAAa,CAAC,SAAS,CACrB,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,GAAG,CAAC,SAAS,IAAI,SAAS,CAClC;iBACF;aACF,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aACpD,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC9C,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aACpD,CAAC;SACH,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n CreateResidentCommand,\n Id,\n ResidentType,\n SoliboClient,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { conversationKeys } from \"../../queries/conversation/conversations.js\";\nimport { invoicingKeys } from \"../../queries/invoicing/invoicingKeys.js\";\nimport { organizationKeys } from \"../../queries/organization/organizationsInCompany.js\";\nimport { personKeys } from \"../../queries/person/persons.js\";\nimport { residentKeys } from \"../../queries/residentsAndSections/residents.js\";\nimport { sectionKeys } from \"../../queries/residentsAndSections/sections.js\";\nexport function createResidentMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n residentType: ResidentType;\n cmd: CreateResidentCommand;\n }) =>\n sdk.api.residents.createResident({\n companyId: params.companyId,\n residentType: params.residentType,\n input: params.cmd,\n }),\n onSuccess: (_, params) =>\n Promise.all([\n queryClient.invalidateQueries({\n queryKey: [residentKeys.list(params.companyId)],\n }),\n queryClient.invalidateQueries({\n queryKey: [sectionKeys.list(params.companyId)],\n }),\n queryClient.invalidateQueries({\n queryKey: [\n residentKeys.history(\n params.companyId,\n params.cmd.sectionId ?? undefined,\n ),\n ],\n }),\n queryClient.invalidateQueries({\n queryKey: [\n invoicingKeys.recipient(\n params.companyId,\n params.cmd.sectionId ?? undefined,\n ),\n ],\n }),\n queryClient.invalidateQueries({\n queryKey: [organizationKeys.list(params.companyId)],\n }),\n queryClient.invalidateQueries({\n queryKey: [personKeys.list(params.companyId)],\n }),\n queryClient.invalidateQueries({\n queryKey: [conversationKeys.list(params.companyId)],\n }),\n ]),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"createResident.js","sourceRoot":"","sources":["../../../../src/api/commands/resident/createResident.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F;;;;GAIG;AACH,MAAM,UAAU,6BAA6B,CAC3C,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAIZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC;YAC/B,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,KAAK,EAAE,MAAM,CAAC,GAAG;SAClB,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,OAAO,CAAC,GAAG,CAAC;YACV,+BAA+B,CAAC,WAAW,EAAE;gBAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,IAAI;gBACtC,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,SAAS,IAAI,SAAS;aAC7C,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAChD,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC/C,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE;oBACR,YAAY,CAAC,OAAO,CAClB,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,GAAG,CAAC,SAAS,IAAI,SAAS,CAClC;iBACF;aACF,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE;oBACR,aAAa,CAAC,SAAS,CACrB,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,GAAG,CAAC,SAAS,IAAI,SAAS,CAClC;iBACF;aACF,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aACpD,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC9C,CAAC;YACF,WAAW,CAAC,iBAAiB,CAAC;gBAC5B,QAAQ,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aACpD,CAAC;SACH,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import {\n CreateResidentCommand,\n Id,\n ResidentType,\n SoliboClient,\n} from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { conversationKeys } from \"../../queries/conversation/conversations.js\";\nimport { invoicingKeys } from \"../../queries/invoicing/invoicingKeys.js\";\nimport { organizationKeys } from \"../../queries/organization/organizationsInCompany.js\";\nimport { personKeys } from \"../../queries/person/persons.js\";\nimport { residentKeys } from \"../../queries/residentsAndSections/residents.js\";\nimport { sectionKeys } from \"../../queries/residentsAndSections/sections.js\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\n/**\n * @deprecated The backend can return either person or organization data while\n * this legacy contract reports Person. Use createPersonResidentMutationOptions\n * or createOrganizationResidentMutationOptions for exact result types.\n */\nexport function createResidentMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n residentType: ResidentType;\n cmd: CreateResidentCommand;\n }) =>\n sdk.api.residents.createResident({\n companyId: params.companyId,\n residentType: params.residentType,\n input: params.cmd,\n }),\n onSuccess: (_, params) =>\n Promise.all([\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n residentType: params.residentType.name,\n sectionId: params.cmd.sectionId ?? undefined,\n }),\n queryClient.invalidateQueries({\n queryKey: [residentKeys.list(params.companyId)],\n }),\n queryClient.invalidateQueries({\n queryKey: [sectionKeys.list(params.companyId)],\n }),\n queryClient.invalidateQueries({\n queryKey: [\n residentKeys.history(\n params.companyId,\n params.cmd.sectionId ?? undefined,\n ),\n ],\n }),\n queryClient.invalidateQueries({\n queryKey: [\n invoicingKeys.recipient(\n params.companyId,\n params.cmd.sectionId ?? undefined,\n ),\n ],\n }),\n queryClient.invalidateQueries({\n queryKey: [organizationKeys.list(params.companyId)],\n }),\n queryClient.invalidateQueries({\n queryKey: [personKeys.list(params.companyId)],\n }),\n queryClient.invalidateQueries({\n queryKey: [conversationKeys.list(params.companyId)],\n }),\n ]),\n };\n}\n"]}
|
|
@@ -8,5 +8,5 @@ export declare function deleteOccupancyRecordMutationOptions(sdk: SoliboClient,
|
|
|
8
8
|
residentId: Id;
|
|
9
9
|
occupancyId: Id;
|
|
10
10
|
}) => Promise<void>;
|
|
11
|
-
onSuccess: (_: any, params: any) => Promise<[
|
|
11
|
+
onSuccess: (_: any, params: any) => Promise<void[]>;
|
|
12
12
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { sectionKeys } from "../../queries/residentsAndSections/sections.js";
|
|
1
|
+
import { invalidateResidentSectionCaches } from "../residentsAndSections/cacheInvalidation.js";
|
|
3
2
|
export function deleteOccupancyRecordMutationOptions(sdk, queryClient) {
|
|
4
3
|
return {
|
|
5
4
|
mutationFn: (params) => sdk.api.residents.deleteResidentAttendance({
|
|
@@ -9,19 +8,12 @@ export function deleteOccupancyRecordMutationOptions(sdk, queryClient) {
|
|
|
9
8
|
sectionId: params.sectionId,
|
|
10
9
|
attendanceId: params.occupancyId,
|
|
11
10
|
}),
|
|
12
|
-
onSuccess: (_, params) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
residentKeys.occupancy(params.companyId, params.residentType, params.residentId),
|
|
19
|
-
],
|
|
20
|
-
}),
|
|
21
|
-
queryClient.invalidateQueries({
|
|
22
|
-
queryKey: [residentKeys.list(params.companyId)],
|
|
23
|
-
}),
|
|
24
|
-
]),
|
|
11
|
+
onSuccess: (_, params) => invalidateResidentSectionCaches(queryClient, {
|
|
12
|
+
companyId: params.companyId,
|
|
13
|
+
residentType: params.residentType,
|
|
14
|
+
residentId: params.residentId,
|
|
15
|
+
sectionId: params.sectionId,
|
|
16
|
+
}),
|
|
25
17
|
};
|
|
26
18
|
}
|
|
27
19
|
//# sourceMappingURL=deleteOccupancyRecord.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteOccupancyRecord.js","sourceRoot":"","sources":["../../../../src/api/commands/resident/deleteOccupancyRecord.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deleteOccupancyRecord.js","sourceRoot":"","sources":["../../../../src/api/commands/resident/deleteOccupancyRecord.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,MAAM,UAAU,oCAAoC,CAClD,GAAiB,EACjB,WAAwB;IAExB,OAAO;QACL,UAAU,EAAE,CAAC,MAMZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,wBAAwB,CAAC;YACzC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,WAAW;SACjC,CAAC;QACJ,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CACvB,+BAA+B,CAAC,WAAW,EAAE;YAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC;KACL,CAAC;AACJ,CAAC","sourcesContent":["import { Id, SoliboClient } from \"@solibo/solibo-sdk\";\nimport type { QueryClient } from \"@tanstack/query-core\";\nimport { invalidateResidentSectionCaches } from \"../residentsAndSections/cacheInvalidation.js\";\nexport function deleteOccupancyRecordMutationOptions(\n sdk: SoliboClient,\n queryClient: QueryClient,\n) {\n return {\n mutationFn: (params: {\n companyId: Id;\n sectionId: Id;\n residentType: string;\n residentId: Id;\n occupancyId: Id;\n }) =>\n sdk.api.residents.deleteResidentAttendance({\n companyId: params.companyId,\n residentType: params.residentType,\n residentId: params.residentId,\n sectionId: params.sectionId,\n attendanceId: params.occupancyId,\n }),\n onSuccess: (_, params) =>\n invalidateResidentSectionCaches(queryClient, {\n companyId: params.companyId,\n residentType: params.residentType,\n residentId: params.residentId,\n sectionId: params.sectionId,\n }),\n };\n}\n"]}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import { Id, SoliboClient } from "@solibo/solibo-sdk";
|
|
1
|
+
import { type ExportResidentsCommandProps, Id, type SdkInput, SoliboClient } from "@solibo/solibo-sdk";
|
|
2
|
+
type ExportResidentsInput = SdkInput<ExportResidentsCommandProps>;
|
|
3
|
+
export type ExportSelectedResidentsInput = Omit<ExportResidentsInput, "filter" | "selection"> & ({
|
|
4
|
+
selection: NonNullable<ExportResidentsInput["selection"]>;
|
|
5
|
+
filter?: never;
|
|
6
|
+
} | {
|
|
7
|
+
filter: NonNullable<ExportResidentsInput["filter"]>;
|
|
8
|
+
selection?: never;
|
|
9
|
+
});
|
|
2
10
|
export declare function exportResidentsMutationOptions(sdk: SoliboClient): {
|
|
3
11
|
mutationFn: (params: {
|
|
4
12
|
companyId: Id;
|
|
5
|
-
|
|
13
|
+
includePnr?: boolean;
|
|
14
|
+
}) => Promise<import("@solibo/solibo-sdk").ResidentExportFile>;
|
|
15
|
+
};
|
|
16
|
+
export declare function exportSelectedResidentsMutationOptions(sdk: SoliboClient): {
|
|
17
|
+
mutationFn: (params: {
|
|
18
|
+
companyId: Id;
|
|
19
|
+
input: ExportSelectedResidentsInput;
|
|
20
|
+
}) => Promise<import("@solibo/solibo-sdk").ResidentExportFile>;
|
|
6
21
|
};
|
|
7
22
|
export declare function inviteToSoliboAppMutationOptions(sdk: SoliboClient): {
|
|
8
23
|
mutationFn: (params: {
|
|
@@ -11,3 +26,4 @@ export declare function inviteToSoliboAppMutationOptions(sdk: SoliboClient): {
|
|
|
11
26
|
residentId?: Id | null | undefined;
|
|
12
27
|
}) => Promise<void>;
|
|
13
28
|
};
|
|
29
|
+
export {};
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
// @openapi-operation exportResidents
|
|
1
2
|
export function exportResidentsMutationOptions(sdk) {
|
|
2
3
|
return {
|
|
3
|
-
mutationFn: (params) => sdk.
|
|
4
|
-
|
|
5
|
-
.
|
|
4
|
+
mutationFn: (params) => sdk.api.residents.exportResidentsFile({
|
|
5
|
+
companyId: params.companyId,
|
|
6
|
+
includePnr: params.includePnr ?? false,
|
|
7
|
+
}),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
// @openapi-operation exportSelectedResidents
|
|
11
|
+
export function exportSelectedResidentsMutationOptions(sdk) {
|
|
12
|
+
return {
|
|
13
|
+
mutationFn: (params) => sdk.api.residents.exportSelectedResidentsFile({
|
|
14
|
+
companyId: params.companyId,
|
|
15
|
+
input: {
|
|
16
|
+
...params.input,
|
|
17
|
+
includePnr: params.input.includePnr ?? false,
|
|
18
|
+
},
|
|
19
|
+
}),
|
|
6
20
|
};
|
|
7
21
|
}
|
|
8
22
|
export function inviteToSoliboAppMutationOptions(sdk) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"residentActions.js","sourceRoot":"","sources":["../../../../src/api/commands/resident/residentActions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"residentActions.js","sourceRoot":"","sources":["../../../../src/api/commands/resident/residentActions.ts"],"names":[],"mappings":"AAwBA,qCAAqC;AACrC,MAAM,UAAU,8BAA8B,CAAC,GAAiB;IAC9D,OAAO;QACL,UAAU,EAAE,CAAC,MAA+C,EAAE,EAAE,CAC9D,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC;YACpC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,KAAK;SACvC,CAAC;KACL,CAAC;AACJ,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,sCAAsC,CAAC,GAAiB;IACtE,OAAO;QACL,UAAU,EAAE,CAAC,MAGZ,EAAE,EAAE,CACH,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,2BAA2B,CAAC;YAC5C,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,KAAK,EAAE;gBACL,GAAG,MAAM,CAAC,KAAK;gBACf,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK;aAC7C;SACF,CAAC;KACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,GAAiB;IAChE,OAAO;QACL,UAAU,EAAE,CAAC,MAIZ,EAAE,EAAE;YACH,IAAI,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;gBAC7C,OAAO,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,yBAAyB,CAAC;oBACjD,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;oBACjC,UAAU,EAAE,MAAM,CAAC,UAAU;iBAC9B,CAAC,CAAC;YACL,CAAC;YACD,OAAO,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,0BAA0B,CAAC;gBAClD,SAAS,EAAE,MAAM,CAAC,SAAS;aAC5B,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n type ExportResidentsCommandProps,\n Id,\n type SdkInput,\n SoliboClient,\n} from \"@solibo/solibo-sdk\";\n\ntype ExportResidentsInput = SdkInput<ExportResidentsCommandProps>;\n\nexport type ExportSelectedResidentsInput = Omit<\n ExportResidentsInput,\n \"filter\" | \"selection\"\n> &\n (\n | {\n selection: NonNullable<ExportResidentsInput[\"selection\"]>;\n filter?: never;\n }\n | {\n filter: NonNullable<ExportResidentsInput[\"filter\"]>;\n selection?: never;\n }\n );\n\n// @openapi-operation exportResidents\nexport function exportResidentsMutationOptions(sdk: SoliboClient) {\n return {\n mutationFn: (params: { companyId: Id; includePnr?: boolean }) =>\n sdk.api.residents.exportResidentsFile({\n companyId: params.companyId,\n includePnr: params.includePnr ?? false,\n }),\n };\n}\n\n// @openapi-operation exportSelectedResidents\nexport function exportSelectedResidentsMutationOptions(sdk: SoliboClient) {\n return {\n mutationFn: (params: {\n companyId: Id;\n input: ExportSelectedResidentsInput;\n }) =>\n sdk.api.residents.exportSelectedResidentsFile({\n companyId: params.companyId,\n input: {\n ...params.input,\n includePnr: params.input.includePnr ?? false,\n },\n }),\n };\n}\n\nexport function inviteToSoliboAppMutationOptions(sdk: SoliboClient) {\n return {\n mutationFn: (params: {\n companyId: Id;\n residentType?: string;\n residentId?: Id | null | undefined;\n }) => {\n if (params.residentType && params.residentId) {\n return sdk.api.residents.inviteResidentToSoliboApp({\n companyId: params.companyId,\n residentType: params.residentType,\n residentId: params.residentId,\n });\n }\n return sdk.api.residents.inviteResidentsToSoliboApp({\n companyId: params.companyId,\n });\n },\n };\n}\n"]}
|