@solibo/solibo-query 1.5.1 → 1.5.2
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/queries/administration/agreementDetails.d.ts +2 -2
- package/dist/api/queries/administration/insuranceAgreements.d.ts +3 -3
- package/dist/api/queries/administration/insuranceAgreements.js +8 -3
- package/dist/api/queries/administration/insuranceAgreements.js.map +1 -1
- package/dist/api/queries/administration/loanAgreements.d.ts +4 -4
- package/dist/api/queries/administration/loanAgreements.js +9 -4
- package/dist/api/queries/administration/loanAgreements.js.map +1 -1
- package/dist/api/queries/administration/loanChangeLog.d.ts +1 -1
- package/dist/api/queries/administration/tripletexDetails.d.ts +3 -3
- package/dist/api/queries/administration/tripletexDetails.js +6 -2
- package/dist/api/queries/administration/tripletexDetails.js.map +1 -1
- package/dist/api/queries/board/boardMembers.d.ts +3 -3
- package/dist/api/queries/board/boardMembers.js +8 -3
- package/dist/api/queries/board/boardMembers.js.map +1 -1
- package/dist/api/queries/board/showPersonalIdentityNumberOnBoardMember.d.ts +1 -1
- package/dist/api/queries/communication/availableBundles.d.ts +1 -1
- package/dist/api/queries/communication/availableSMS.d.ts +1 -1
- package/dist/api/queries/communication/communicationReport.d.ts +1 -1
- package/dist/api/queries/communication/newsletter.d.ts +1 -1
- package/dist/api/queries/communication/newsletters.d.ts +12 -12
- package/dist/api/queries/communication/newsletters.js +24 -16
- package/dist/api/queries/communication/newsletters.js.map +1 -1
- package/dist/api/queries/communication/notificationgroupsEmail.d.ts +1 -1
- package/dist/api/queries/communication/notificationgroupsSms.d.ts +1 -1
- package/dist/api/queries/communication/sMSAvailableForSMSBroadcastPost.d.ts +1 -1
- package/dist/api/queries/communication/sMSBroadcast.d.ts +1 -1
- package/dist/api/queries/communication/sMSBroadcasts.d.ts +1 -1
- package/dist/api/queries/communication/sMSPurchases.d.ts +1 -1
- package/dist/api/queries/company/administratorsForCompany.d.ts +1 -1
- package/dist/api/queries/company/availableAdministratorsForCompany.d.ts +1 -1
- package/dist/api/queries/company/companies.d.ts +9 -9
- package/dist/api/queries/company/companies.js +14 -10
- package/dist/api/queries/company/companies.js.map +1 -1
- package/dist/api/queries/company/companyAddresses.d.ts +1 -1
- package/dist/api/queries/company/companyById.d.ts +1 -1
- package/dist/api/queries/company/companyDetailed.d.ts +1 -1
- package/dist/api/queries/company/companyDraft.d.ts +1 -1
- package/dist/api/queries/company/companyDrafts.d.ts +1 -1
- package/dist/api/queries/company/companyOrdinances.d.ts +1 -1
- package/dist/api/queries/company/fractions.d.ts +1 -1
- package/dist/api/queries/conversation/companyConversationCategoriesForRequests.d.ts +1 -1
- package/dist/api/queries/conversation/conversation.d.ts +1 -1
- package/dist/api/queries/conversation/conversationCategories.d.ts +1 -1
- package/dist/api/queries/conversation/conversationCount.d.ts +1 -1
- package/dist/api/queries/conversation/conversationFolders.d.ts +2 -2
- package/dist/api/queries/conversation/conversations.d.ts +13 -13
- package/dist/api/queries/conversation/conversations.js +23 -14
- package/dist/api/queries/conversation/conversations.js.map +1 -1
- package/dist/api/queries/conversation/conversationsByParticipant.d.ts +1 -1
- package/dist/api/queries/conversation/publicConversation.d.ts +2 -2
- package/dist/api/queries/conversation/publicConversationAuth.d.ts +1 -1
- package/dist/api/queries/conversation/unreadConversationsCount.d.ts +1 -1
- package/dist/api/queries/document/documentActions.d.ts +4 -4
- package/dist/api/queries/document/documentActions.js +15 -6
- package/dist/api/queries/document/documentActions.js.map +1 -1
- package/dist/api/queries/document/documents.d.ts +7 -7
- package/dist/api/queries/document/documents.js +20 -10
- package/dist/api/queries/document/documents.js.map +1 -1
- package/dist/api/queries/document/documentsOfTypeForCompany.d.ts +1 -1
- package/dist/api/queries/document/getDocumentURL.d.ts +1 -1
- package/dist/api/queries/document/searchDocumentsForCompany.d.ts +1 -1
- package/dist/api/queries/economy/checkIfAccountingAvailable.d.ts +1 -1
- package/dist/api/queries/economy/economicReports.d.ts +2 -2
- package/dist/api/queries/economy/invoiceArchive.d.ts +1 -1
- package/dist/api/queries/economy/invoiceForApprovalCount.d.ts +1 -1
- package/dist/api/queries/economy/invoiceNotification.d.ts +1 -1
- package/dist/api/queries/economy/invoices.d.ts +13 -13
- package/dist/api/queries/economy/invoices.js +26 -12
- package/dist/api/queries/economy/invoices.js.map +1 -1
- package/dist/api/queries/economy/status.d.ts +1 -1
- package/dist/api/queries/economy/unattestedCounts.d.ts +2 -2
- package/dist/api/queries/expense/expense.d.ts +1 -1
- package/dist/api/queries/expense/expenseList.d.ts +4 -4
- package/dist/api/queries/expense/expenseList.js +9 -4
- package/dist/api/queries/expense/expenseList.js.map +1 -1
- package/dist/api/queries/expense/expenseTypes.d.ts +1 -1
- package/dist/api/queries/hms/hMSReportRoutines.d.ts +1 -1
- package/dist/api/queries/hms/hMSSettings.d.ts +3 -3
- package/dist/api/queries/hms/hMSSettings.js +3 -3
- package/dist/api/queries/hms/hMSSettings.js.map +1 -1
- package/dist/api/queries/homepage/homepage.d.ts +10 -10
- package/dist/api/queries/homepage/homepage.js +26 -13
- package/dist/api/queries/homepage/homepage.js.map +1 -1
- package/dist/api/queries/homepage/homepageFeed.d.ts +2 -2
- package/dist/api/queries/homepage/openHomepageDocument.d.ts +1 -1
- package/dist/api/queries/homepage/openHomepageFeed.d.ts +2 -2
- package/dist/api/queries/homepage/postDocuments.d.ts +1 -1
- package/dist/api/queries/homepage/postNotificationgroups.d.ts +1 -1
- package/dist/api/queries/homepage/sMSAvailableForPost.d.ts +1 -1
- package/dist/api/queries/invoicing/adHocGroupById.d.ts +1 -1
- package/dist/api/queries/invoicing/adHocGroups.d.ts +1 -1
- package/dist/api/queries/invoicing/checkTriplewinActivated.d.ts +1 -1
- package/dist/api/queries/invoicing/creditNotes.d.ts +1 -1
- package/dist/api/queries/invoicing/customer.d.ts +1 -1
- package/dist/api/queries/invoicing/customerInvoices.d.ts +1 -1
- package/dist/api/queries/invoicing/customerMetadata.d.ts +1 -1
- package/dist/api/queries/invoicing/customerRecipient.d.ts +1 -1
- package/dist/api/queries/invoicing/customers.d.ts +1 -1
- package/dist/api/queries/invoicing/historicInvoices.d.ts +1 -1
- package/dist/api/queries/invoicing/invoicePlan.d.ts +1 -1
- package/dist/api/queries/invoicing/invoicePlanDistributions.d.ts +2 -2
- package/dist/api/queries/invoicing/invoicePlanLine.d.ts +1 -1
- package/dist/api/queries/invoicing/invoicePlanLines.d.ts +1 -1
- package/dist/api/queries/invoicing/invoicePlanTransactions.d.ts +2 -2
- package/dist/api/queries/invoicing/invoicePlans.d.ts +1 -1
- package/dist/api/queries/invoicing/invoicePlansForSection.d.ts +1 -1
- package/dist/api/queries/invoicing/invoiceSettings.d.ts +1 -1
- package/dist/api/queries/invoicing/invoicingAdHocLines.d.ts +4 -4
- package/dist/api/queries/invoicing/invoicingInvoiceDetails.d.ts +5 -5
- package/dist/api/queries/invoicing/invoicingKeys.d.ts +39 -39
- package/dist/api/queries/invoicing/invoicingKeys.js +148 -61
- package/dist/api/queries/invoicing/invoicingKeys.js.map +1 -1
- package/dist/api/queries/invoicing/invoicingPlanTypes.d.ts +1 -1
- package/dist/api/queries/invoicing/massInvoiceForCompany.d.ts +1 -1
- package/dist/api/queries/invoicing/massInvoicePdfPreview.d.ts +1 -1
- package/dist/api/queries/invoicing/massInvoicePreview.d.ts +1 -1
- package/dist/api/queries/invoicing/planSettings.d.ts +1 -1
- package/dist/api/queries/invoicing/preview.d.ts +1 -1
- package/dist/api/queries/invoicing/previewPdf.d.ts +1 -1
- package/dist/api/queries/invoicing/queuedInvoicePdf.d.ts +1 -1
- package/dist/api/queries/invoicing/queuedInvoices.d.ts +1 -1
- package/dist/api/queries/invoicing/recipient.d.ts +1 -1
- package/dist/api/queries/issue/issue.d.ts +1 -1
- package/dist/api/queries/issue/issues.d.ts +3 -3
- package/dist/api/queries/issue/issues.js +3 -3
- package/dist/api/queries/issue/issues.js.map +1 -1
- package/dist/api/queries/meeting/meetings.d.ts +4 -4
- package/dist/api/queries/meeting/meetings.js +3 -3
- package/dist/api/queries/meeting/meetings.js.map +1 -1
- package/dist/api/queries/organization/organization.d.ts +1 -1
- package/dist/api/queries/organization/organizationsInCompany.d.ts +3 -3
- package/dist/api/queries/organization/organizationsInCompany.js +3 -3
- package/dist/api/queries/organization/organizationsInCompany.js.map +1 -1
- package/dist/api/queries/parkingSpaces/parkingSpaces.d.ts +4 -4
- package/dist/api/queries/parkingSpaces/parkingSpaces.js +8 -3
- package/dist/api/queries/parkingSpaces/parkingSpaces.js.map +1 -1
- package/dist/api/queries/person/person.d.ts +1 -1
- package/dist/api/queries/person/persons.d.ts +3 -3
- package/dist/api/queries/person/persons.js +3 -3
- package/dist/api/queries/person/persons.js.map +1 -1
- package/dist/api/queries/residentsAndSections/existingSectionTagsInCompany.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/loansByFraction.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/ownershipChanges.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/personalID.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/residentHistory.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/residentOccupancy.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/residentSearch.d.ts +2 -2
- package/dist/api/queries/residentsAndSections/residentTypes.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/residents.d.ts +8 -8
- package/dist/api/queries/residentsAndSections/residents.js +20 -10
- package/dist/api/queries/residentsAndSections/residents.js.map +1 -1
- package/dist/api/queries/residentsAndSections/sectionOccupancy.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/sectionStatus.d.ts +2 -2
- package/dist/api/queries/residentsAndSections/sectionTags.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/sectionTenants.d.ts +1 -1
- package/dist/api/queries/residentsAndSections/sections.d.ts +11 -11
- package/dist/api/queries/residentsAndSections/sections.js +37 -11
- package/dist/api/queries/residentsAndSections/sections.js.map +1 -1
- package/dist/api/queries/residentsAndSections/sectionsTags.d.ts +1 -1
- package/dist/api/queries/routines/availableRoutineTypes.d.ts +1 -1
- package/dist/api/queries/routines/companyFeatures.d.ts +1 -1
- package/dist/api/queries/routines/routine.d.ts +1 -1
- package/dist/api/queries/routines/routineGroupDrafts.d.ts +1 -1
- package/dist/api/queries/routines/routines.d.ts +6 -6
- package/dist/api/queries/routines/routines.js +16 -6
- package/dist/api/queries/routines/routines.js.map +1 -1
- package/dist/api/queries/settlement/settlement.d.ts +1 -1
- package/dist/api/queries/settlement/settlementCustomCost.d.ts +1 -1
- package/dist/api/queries/settlement/settlementCustomCosts.d.ts +1 -1
- package/dist/api/queries/settlement/settlementInvoices.d.ts +1 -1
- package/dist/api/queries/settlement/settlementProviderConfiguration.d.ts +1 -1
- package/dist/api/queries/settlement/settlementProviderConfigurations.d.ts +1 -1
- package/dist/api/queries/settlement/settlementProviders.d.ts +1 -1
- package/dist/api/queries/settlement/settlementTypes.d.ts +1 -1
- package/dist/api/queries/settlement/settlements.d.ts +10 -10
- package/dist/api/queries/settlement/settlements.js +27 -13
- package/dist/api/queries/settlement/settlements.js.map +1 -1
- package/dist/api/queries/storageRoom/storageRooms.d.ts +4 -4
- package/dist/api/queries/storageRoom/storageRooms.js +8 -3
- package/dist/api/queries/storageRoom/storageRooms.js.map +1 -1
- package/dist/api/queries/supplier/supplierContacts.d.ts +1 -1
- package/dist/api/queries/supplier/supplierDetails.d.ts +2 -2
- package/dist/api/queries/supplier/suppliers.d.ts +4 -4
- package/dist/api/queries/supplier/suppliers.js +12 -7
- package/dist/api/queries/supplier/suppliers.js.map +1 -1
- package/dist/api/queries/supplier/suppliersAndContacts.d.ts +2 -2
- package/dist/api/queries/task/tasks.d.ts +2 -2
- package/dist/api/queries/task/tasks.js +2 -2
- package/dist/api/queries/task/tasks.js.map +1 -1
- package/dist/api/queries/thirdPartyInformation/singleThirdPartyInformation.d.ts +1 -1
- package/dist/api/queries/thirdPartyInformation/skatteetatenDialog.d.ts +1 -1
- package/dist/api/queries/thirdPartyInformation/thirdPartyInformation.d.ts +8 -8
- package/dist/api/queries/thirdPartyInformation/thirdPartyInformation.js +18 -13
- package/dist/api/queries/thirdPartyInformation/thirdPartyInformation.js.map +1 -1
- package/dist/api/queries/thirdPartyInformation/thirdPartyInformationLetters.d.ts +2 -2
- package/dist/api/queries/thirdPartyInformation/totalsForThirdPartyInformation.d.ts +1 -1
- package/dist/api/queries/user/user.d.ts +2 -2
- package/dist/api/queries/user/user.js +3 -3
- package/dist/api/queries/user/user.js.map +1 -1
- package/dist/api/queries/user/userActions.d.ts +1 -1
- package/dist/api/queries/user/userImage.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/kt-bridge.d.ts +12 -0
- package/dist/utils/kt-bridge.js +5 -0
- package/dist/utils/kt-bridge.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,8 +2,8 @@ import { SoliboSDK } from "@solibo/solibo-sdk";
|
|
|
2
2
|
import { Id } from "../../../utils/kt-bridge.js";
|
|
3
3
|
export declare const organizationKeys: {
|
|
4
4
|
all: readonly ["organization"];
|
|
5
|
-
list: (companyId?: Id | null | undefined) => readonly ["organization", "list",
|
|
6
|
-
detail: (organizationId?: Id | null | undefined) => readonly ["organization", "detail",
|
|
5
|
+
list: (companyId?: Id | null | undefined) => readonly ["organization", "list", string | number | null | undefined];
|
|
6
|
+
detail: (organizationId?: Id | null | undefined) => readonly ["organization", "detail", string | number | null | undefined];
|
|
7
7
|
other: (queryString?: string) => readonly ["organization", "other", string | undefined];
|
|
8
8
|
};
|
|
9
9
|
export declare function organizationsInCompanyQueryOptions(sdk: SoliboSDK, params: {
|
|
@@ -14,7 +14,7 @@ export declare function organizationsInCompanyQueryOptions(sdk: SoliboSDK, param
|
|
|
14
14
|
count?: number;
|
|
15
15
|
}): {
|
|
16
16
|
initialPageParam: string | undefined;
|
|
17
|
-
queryKey: (string | number | readonly ["organization", "list",
|
|
17
|
+
queryKey: (string | number | readonly ["organization", "list", string | number | null | undefined] | undefined)[];
|
|
18
18
|
queryFn: ({ pageParam }: {
|
|
19
19
|
pageParam: any;
|
|
20
20
|
}) => Promise<import("@solibo/solibo-sdk").PagedListMassEditOrganization>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { fromKt } from "../../../utils/kt-bridge.js";
|
|
1
|
+
import { fromKt, toKeyId } from "../../../utils/kt-bridge.js";
|
|
2
2
|
export const organizationKeys = {
|
|
3
3
|
all: ["organization"],
|
|
4
|
-
list: (companyId) => [...organizationKeys.all, "list", companyId],
|
|
5
|
-
detail: (organizationId) => [...organizationKeys.all, "detail", organizationId],
|
|
4
|
+
list: (companyId) => [...organizationKeys.all, "list", toKeyId(companyId)],
|
|
5
|
+
detail: (organizationId) => [...organizationKeys.all, "detail", toKeyId(organizationId)],
|
|
6
6
|
other: (queryString) => [...organizationKeys.all, "other", queryString],
|
|
7
7
|
};
|
|
8
8
|
export function organizationsInCompanyQueryOptions(sdk, params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationsInCompany.js","sourceRoot":"","sources":["../../../../src/api/queries/organization/organizationsInCompany.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"organizationsInCompany.js","sourceRoot":"","sources":["../../../../src/api/queries/organization/organizationsInCompany.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAM,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,EAAE,CAAC,cAAc,CAAU;IAC9B,IAAI,EAAE,CAAC,SAAiC,EAAE,EAAE,CAC1C,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAU;IAChE,MAAM,EAAE,CAAC,cAAsC,EAAE,EAAE,CACjD,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,cAAc,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n\nexport const organizationKeys = {\n all: [\"organization\"] as const,\n list: (companyId?: Id | null | undefined) =>\n [...organizationKeys.all, \"list\", toKeyId(companyId)] as const,\n detail: (organizationId?: Id | null | undefined) =>\n [...organizationKeys.all, \"detail\", toKeyId(organizationId)] as const,\n other: (queryString?: string) =>\n [...organizationKeys.all, \"other\", queryString] as const,\n};\n\nexport function organizationsInCompanyQueryOptions(\n sdk: SoliboSDK,\n params: {\n companyId?: Id | null | undefined;\n fields?: string;\n pageToken?: string;\n autoPaginate?: boolean | null;\n count?: number;\n },\n) {\n return {\n initialPageParam: params.pageToken,\n queryKey: [\n organizationKeys.list(params.companyId),\n params.fields,\n params.count,\n ],\n queryFn: ({ pageParam }: { pageParam: any }) =>\n sdk.api.organization\n .indexOrganizationsForEdit(\n BigInt(params.companyId!).valueOf(),\n params.fields,\n pageParam,\n params.autoPaginate,\n params.count,\n )\n .then((res) => res.body())\n .then((body) => fromKt(body)),\n\n staleTime: 20 * 60 * 1000,\n enabled: !!params.companyId,\n getNextPageParam: (lastPage: any) =>\n lastPage?.paging?.next === \"END_OF_LIST\"\n ? undefined\n : lastPage?.paging?.next,\n getPreviousPageParam: (lastPage: any) => lastPage?.paging?.previous,\n };\n}\n"]}
|
|
@@ -2,8 +2,8 @@ import { SoliboSDK } from "@solibo/solibo-sdk";
|
|
|
2
2
|
import { Id } from "../../../utils/kt-bridge.js";
|
|
3
3
|
export declare const parkingSpaceKeys: {
|
|
4
4
|
all: readonly ["parkingSpace"];
|
|
5
|
-
list: (companyId?: Id | null | undefined) => readonly ["parkingSpace", "list",
|
|
6
|
-
detail: (companyId?: Id | null | undefined, parkingSpaceId?: Id | null | undefined) => readonly ["parkingSpace", "detail",
|
|
5
|
+
list: (companyId?: Id | null | undefined) => readonly ["parkingSpace", "list", string | number | null | undefined];
|
|
6
|
+
detail: (companyId?: Id | null | undefined, parkingSpaceId?: Id | null | undefined) => readonly ["parkingSpace", "detail", string | number | null | undefined, string | number | null | undefined];
|
|
7
7
|
};
|
|
8
8
|
export declare function parkingSpacesQueryOptions(sdk: SoliboSDK, params: {
|
|
9
9
|
companyId?: Id | null | undefined;
|
|
@@ -13,7 +13,7 @@ export declare function parkingSpacesQueryOptions(sdk: SoliboSDK, params: {
|
|
|
13
13
|
count?: number;
|
|
14
14
|
}): {
|
|
15
15
|
initialPageParam: string | undefined;
|
|
16
|
-
queryKey: (string | number | readonly ["parkingSpace", "list",
|
|
16
|
+
queryKey: (string | number | readonly ["parkingSpace", "list", string | number | null | undefined] | undefined)[];
|
|
17
17
|
queryFn: ({ pageParam }: {
|
|
18
18
|
pageParam: any;
|
|
19
19
|
}) => Promise<import("@solibo/solibo-sdk").PagedListParkingSpace>;
|
|
@@ -27,7 +27,7 @@ export declare function parkingSpaceQueryOptions(sdk: SoliboSDK, params: {
|
|
|
27
27
|
parkingSpaceId?: Id | null | undefined;
|
|
28
28
|
fields?: string;
|
|
29
29
|
}): {
|
|
30
|
-
queryKey: (string | readonly ["parkingSpace", "detail",
|
|
30
|
+
queryKey: (string | readonly ["parkingSpace", "detail", string | number | null | undefined, string | number | null | undefined] | undefined)[];
|
|
31
31
|
queryFn: () => Promise<import("@solibo/solibo-sdk").ParkingSpace>;
|
|
32
32
|
enabled: boolean;
|
|
33
33
|
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { fromKt } from "../../../utils/kt-bridge.js";
|
|
1
|
+
import { fromKt, toKeyId } from "../../../utils/kt-bridge.js";
|
|
2
2
|
export const parkingSpaceKeys = {
|
|
3
3
|
all: ["parkingSpace"],
|
|
4
|
-
list: (companyId) => [...parkingSpaceKeys.all, "list", companyId],
|
|
5
|
-
detail: (companyId, parkingSpaceId) => [
|
|
4
|
+
list: (companyId) => [...parkingSpaceKeys.all, "list", toKeyId(companyId)],
|
|
5
|
+
detail: (companyId, parkingSpaceId) => [
|
|
6
|
+
...parkingSpaceKeys.all,
|
|
7
|
+
"detail",
|
|
8
|
+
toKeyId(companyId),
|
|
9
|
+
toKeyId(parkingSpaceId),
|
|
10
|
+
],
|
|
6
11
|
};
|
|
7
12
|
export function parkingSpacesQueryOptions(sdk, params) {
|
|
8
13
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parkingSpaces.js","sourceRoot":"","sources":["../../../../src/api/queries/parkingSpaces/parkingSpaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"parkingSpaces.js","sourceRoot":"","sources":["../../../../src/api/queries/parkingSpaces/parkingSpaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAM,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,EAAE,CAAC,cAAc,CAAU;IAC9B,IAAI,EAAE,CAAC,SAAiC,EAAE,EAAE,CAC1C,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAU;IAChE,MAAM,EAAE,CACN,SAAiC,EACjC,cAAsC,EACtC,EAAE,CACF;QACE,GAAG,gBAAgB,CAAC,GAAG;QACvB,QAAQ;QACR,OAAO,CAAC,SAAS,CAAC;QAClB,OAAO,CAAC,cAAc,CAAC;KACf;CACb,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,GAAc,EACd,MAMC;IAED,OAAO;QACL,gBAAgB,EAAE,MAAM,CAAC,SAAS;QAClC,QAAQ,EAAE;YACR,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;YACvC,MAAM,CAAC,MAAM;YACb,MAAM,CAAC,KAAK;SACb;QACD,OAAO,EAAE,CAAC,EAAE,SAAS,EAAsB,EAAE,EAAE,CAC7C,GAAG,CAAC,GAAG,CAAC,OAAO;aACZ,iBAAiB,CAChB,MAAM,CAAC,MAAM,CAAC,SAAU,CAAC,CAAC,OAAO,EAAE,EACnC,MAAM,CAAC,MA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k\";\nimport { fromKt, Id, toKeyId } from \"../../../utils/kt-bridge.js\";\n\nexport const parkingSpaceKeys = {\n all: [\"parkingSpace\"] as const,\n list: (companyId?: Id | null | undefined) =>\n [...parkingSpaceKeys.all, \"list\", toKeyId(companyId)] as const,\n detail: (\n companyId?: Id | null | undefined,\n parkingSpaceId?: Id | null | undefined,\n ) =>\n [\n ...parkingSpaceKeys.all,\n \"detail\",\n toKeyId(companyId),\n toKeyId(parkingSpaceId),\n ] as const,\n};\n\nexport function parkingSpacesQueryOptions(\n sdk: SoliboSDK,\n params: {\n companyId?: Id | null | undefined;\n fields?: string;\n pageToken?: string;\n autoPaginate?: boolean | null;\n count?: number;\n },\n) {\n return {\n initialPageParam: params.pageToken,\n queryKey: [\n parkingSpaceKeys.list(params.companyId),\n params.fields,\n params.count,\n ],\n queryFn: ({ pageParam }: { pageParam: any }) =>\n sdk.api.parking\n .indexParkingSpace(\n BigInt(params.companyId!).valueOf(),\n params.fields,\n pageParam,\n params.autoPaginate,\n params.count,\n )\n .then((res) => res.body())\n .then((body) => fromKt(body)),\n\n staleTime: 20 * 60 * 1000,\n enabled: !!params.companyId,\n getNextPageParam: (lastPage: any) =>\n lastPage?.paging?.next === \"END_OF_LIST\"\n ? undefined\n : lastPage?.paging?.next,\n getPreviousPageParam: (lastPage: any) => lastPage?.paging?.previous,\n };\n}\n\nexport function parkingSpaceQueryOptions(\n sdk: SoliboSDK,\n params: {\n companyId?: Id | null | undefined;\n parkingSpaceId?: Id | null | undefined;\n fields?: string;\n },\n) {\n return {\n queryKey: [\n parkingSpaceKeys.detail(params.companyId!, params.parkingSpaceId!),\n params.fields,\n ],\n queryFn: () =>\n sdk.api.parking\n .showParkingSpace(\n BigInt(params.companyId!).valueOf(),\n BigInt(params.parkingSpaceId!).valueOf(),\n params.fields,\n )\n .then((res) => res.body()),\n enabled: !!params.companyId && !!params.parkingSpaceId,\n };\n}\n"]}
|
|
@@ -4,7 +4,7 @@ export declare function personQueryOptions(sdk: SoliboSDK, params: {
|
|
|
4
4
|
personId?: Id | null | undefined;
|
|
5
5
|
fields?: string;
|
|
6
6
|
}, companies?: any[]): {
|
|
7
|
-
queryKey: (string | readonly ["person", "detail",
|
|
7
|
+
queryKey: (string | readonly ["person", "detail", string | number | null | undefined] | undefined)[];
|
|
8
8
|
queryFn: () => Promise<import("@solibo/solibo-sdk").Person>;
|
|
9
9
|
enabled: boolean;
|
|
10
10
|
select: (data: any) => any;
|
|
@@ -2,8 +2,8 @@ import { SoliboSDK } from "@solibo/solibo-sdk";
|
|
|
2
2
|
import { Id } from "../../../utils/kt-bridge.js";
|
|
3
3
|
export declare const personKeys: {
|
|
4
4
|
all: readonly ["person"];
|
|
5
|
-
list: (companyId?: Id | null | undefined) => readonly ["person", "list",
|
|
6
|
-
detail: (personId?: Id | null | undefined) => readonly ["person", "detail",
|
|
5
|
+
list: (companyId?: Id | null | undefined) => readonly ["person", "list", string | number | null | undefined];
|
|
6
|
+
detail: (personId?: Id | null | undefined) => readonly ["person", "detail", string | number | null | undefined];
|
|
7
7
|
other: (queryString?: string) => readonly ["person", "other", string | undefined];
|
|
8
8
|
};
|
|
9
9
|
export declare function personsQueryOptions(sdk: SoliboSDK, params: {
|
|
@@ -14,7 +14,7 @@ export declare function personsQueryOptions(sdk: SoliboSDK, params: {
|
|
|
14
14
|
count?: number;
|
|
15
15
|
}): {
|
|
16
16
|
initialPageParam: string | undefined;
|
|
17
|
-
queryKey: (string | number | readonly ["person", "list",
|
|
17
|
+
queryKey: (string | number | readonly ["person", "list", string | number | null | undefined] | undefined)[];
|
|
18
18
|
queryFn: ({ pageParam }: {
|
|
19
19
|
pageParam: any;
|
|
20
20
|
}) => Promise<import("@solibo/solibo-sdk").PagedListPerson>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { fromKt } from "../../../utils/kt-bridge.js";
|
|
1
|
+
import { fromKt, toKeyId } from "../../../utils/kt-bridge.js";
|
|
2
2
|
export const personKeys = {
|
|
3
3
|
all: ["person"],
|
|
4
|
-
list: (companyId) => [...personKeys.all, "list", companyId],
|
|
5
|
-
detail: (personId) => [...personKeys.all, "detail", personId],
|
|
4
|
+
list: (companyId) => [...personKeys.all, "list", toKeyId(companyId)],
|
|
5
|
+
detail: (personId) => [...personKeys.all, "detail", toKeyId(personId)],
|
|
6
6
|
other: (queryString) => [...personKeys.all, "other", queryString],
|
|
7
7
|
};
|
|
8
8
|
export function personsQueryOptions(sdk, params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persons.js","sourceRoot":"","sources":["../../../../src/api/queries/person/persons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"persons.js","sourceRoot":"","sources":["../../../../src/api/queries/person/persons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAM,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,EAAE,CAAC,QAAQ,CAAU;IACxB,IAAI,EAAE,CAAC,SAAiC,EAAE,EAAE,CAC1C,CAAC,GAAG,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAU;IAC1D,MAAM,EAAE,CAAC,QAAgC,EAAE,EAAE,CAC3C,CAAC,GAAG,UAAU,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3D,KAAK,EAAE,CAAC,WAAoB,EAAE,EAAE,CAC9B,CAAC,GAAG,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,CAAU;CACrD,CAAC;AAEF,MAAM,UAAU,mBAAmB,CACjC,GAAc,EACd,MAMC;IAED,OAAO;QACL,gBAAgB,EAAE,MAAM,CAAC,SAAS;QAClC,QAAQ,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC;QAC1E,OAAO,EAAE,CAAC,EAAE,SAAS,EAAsB,EAAE,EAAE,CAC7C,GAAG,CAAC,GAAG,CAAC,MAAM;aACX,mBAAmB,CAClB,MAAM,CAAC,MAAM,CAAC,SAAU,CAAC,CAAC,OAAO,EAAE,EACnC,MAAM,CAAC,MAAM,EACb,SAAS,EACT,MAAM,CAAC,YAAY,EACnB,MAAM,CAAC,KAAK,CACb;aACA,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;aACzB,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEjC,SAAS,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;QACzB,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS;QAC3B,gBAAgB,EAAE,CAAC,QAAa,EAAE,EAAE,CAClC,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,aAAa;YACtC,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI;QAC5B,oBAAoB,EAAE,CAAC,QAAa,EAAE,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ;KACpE,CAAC;AACJ,CAAC","sourcesContent":["import { SoliboSDK } from \"@solibo/solibo-sdk\";\nimport { fromKt, Id, toKeyId } from \"../../../utils/kt-bridge.js\";\n\nexport const personKeys = {\n all: [\"person\"] as const,\n list: (companyId?: Id | null | undefined) =>\n [...personKeys.all, \"list\", toKeyId(companyId)] as const,\n detail: (personId?: Id | null | undefined) =>\n [...personKeys.all, \"detail\", toKeyId(personId)] as const,\n other: (queryString?: string) =>\n [...personKeys.all, \"other\", queryString] as const,\n};\n\nexport function personsQueryOptions(\n sdk: SoliboSDK,\n params: {\n companyId?: Id | null | undefined;\n fields?: string;\n pageToken?: string;\n autoPaginate?: boolean | null;\n count?: number;\n },\n) {\n return {\n initialPageParam: params.pageToken,\n queryKey: [personKeys.list(params.companyId), params.fields, params.count],\n queryFn: ({ pageParam }: { pageParam: any }) =>\n sdk.api.person\n .indexPersonsForEdit(\n BigInt(params.companyId!).valueOf(),\n params.fields,\n pageParam,\n params.autoPaginate,\n params.count,\n )\n .then((res) => res.body())\n .then((body) => fromKt(body)),\n\n staleTime: 20 * 60 * 1000,\n enabled: !!params.companyId,\n getNextPageParam: (lastPage: any) =>\n lastPage?.paging?.next === \"END_OF_LIST\"\n ? undefined\n : lastPage?.paging?.next,\n getPreviousPageParam: (lastPage: any) => lastPage?.paging?.previous,\n };\n}\n"]}
|
|
@@ -8,7 +8,7 @@ export declare function existingSectionTagsInCompanyQueryOptions(sdk: SoliboSDK,
|
|
|
8
8
|
count?: number;
|
|
9
9
|
}): {
|
|
10
10
|
initialPageParam: string | undefined;
|
|
11
|
-
queryKey: (string | number | readonly ["sections", "existingTags",
|
|
11
|
+
queryKey: (string | number | readonly ["sections", "existingTags", string | number | null | undefined] | undefined)[];
|
|
12
12
|
queryFn: ({ pageParam }: {
|
|
13
13
|
pageParam: any;
|
|
14
14
|
}) => Promise<import("@solibo/solibo-sdk").PagedListSectionTag>;
|
|
@@ -6,7 +6,7 @@ export declare function loansByFractionQueryOptions(sdk: SoliboSDK, params: {
|
|
|
6
6
|
at?: Id | null | undefined;
|
|
7
7
|
fields?: string;
|
|
8
8
|
}): {
|
|
9
|
-
queryKey: (string | readonly ["sections", "loansByFraction",
|
|
9
|
+
queryKey: (string | readonly ["sections", "loansByFraction", string | number | null | undefined, string | number | null | undefined, string | number | null | undefined] | undefined)[];
|
|
10
10
|
queryFn: () => Promise<import("@solibo/solibo-sdk").TripletexAccountFractionsResponse>;
|
|
11
11
|
enabled: boolean;
|
|
12
12
|
};
|
|
@@ -8,7 +8,7 @@ export declare function ownershipChangesQueryOptions(sdk: SoliboSDK, params?: {
|
|
|
8
8
|
count?: number;
|
|
9
9
|
}): {
|
|
10
10
|
initialPageParam: string | undefined;
|
|
11
|
-
queryKey: (string | number | readonly ["sections", "ownershipChanges",
|
|
11
|
+
queryKey: (string | number | readonly ["sections", "ownershipChanges", string | number | null | undefined] | undefined)[];
|
|
12
12
|
queryFn: ({ pageParam }: {
|
|
13
13
|
pageParam: any;
|
|
14
14
|
}) => Promise<import("@solibo/solibo-sdk").PagedListOwnershipChange>;
|
|
@@ -5,7 +5,7 @@ export declare function personalIDQueryOptions(sdk: SoliboSDK, params: {
|
|
|
5
5
|
residentId?: Id | null | undefined;
|
|
6
6
|
fields?: string;
|
|
7
7
|
}): {
|
|
8
|
-
queryKey: (string | readonly ["residents", "personalId",
|
|
8
|
+
queryKey: (string | readonly ["residents", "personalId", string | number | null | undefined, string | number | null | undefined] | undefined)[];
|
|
9
9
|
queryFn: () => Promise<import("@solibo/solibo-sdk").SensitiveData>;
|
|
10
10
|
enabled: boolean;
|
|
11
11
|
};
|
|
@@ -5,7 +5,7 @@ export declare function residentHistoryQueryOptions(sdk: SoliboSDK, params: {
|
|
|
5
5
|
sectionId?: Id | null | undefined;
|
|
6
6
|
fields?: string;
|
|
7
7
|
}): {
|
|
8
|
-
queryKey: (string | readonly ["residents", "history",
|
|
8
|
+
queryKey: (string | readonly ["residents", "history", string | number | null | undefined, string | number | null | undefined] | undefined)[];
|
|
9
9
|
queryFn: () => Promise<import("@solibo/solibo-sdk").ResidentRoleHistory>;
|
|
10
10
|
staleTime: number;
|
|
11
11
|
enabled: boolean;
|
|
@@ -11,7 +11,7 @@ export declare function residentOccupancyQueryOptions(sdk: SoliboSDK, params: {
|
|
|
11
11
|
count?: number;
|
|
12
12
|
}): {
|
|
13
13
|
initialPageParam: string | undefined;
|
|
14
|
-
queryKey: (string | number | readonly ["residents", "occupancy",
|
|
14
|
+
queryKey: (string | number | readonly ["residents", "occupancy", string | number | null | undefined, string | undefined, string | number | null | undefined, string | number | null | undefined] | undefined)[];
|
|
15
15
|
queryFn: ({ pageParam }: {
|
|
16
16
|
pageParam: any;
|
|
17
17
|
}) => Promise<import("@solibo/solibo-sdk").PagedListAttendance>;
|
|
@@ -5,7 +5,7 @@ export declare function residentByOrgnrQueryOptions(sdk: SoliboSDK, params: {
|
|
|
5
5
|
companyId?: Id | null | undefined;
|
|
6
6
|
cmd?: FindResidentByOrgNrCommand;
|
|
7
7
|
}): {
|
|
8
|
-
queryKey: (
|
|
8
|
+
queryKey: (string | number | FindResidentByOrgNrCommand | null | undefined)[];
|
|
9
9
|
queryFn: () => Promise<import("@solibo/solibo-sdk").Organization>;
|
|
10
10
|
enabled: boolean;
|
|
11
11
|
};
|
|
@@ -13,7 +13,7 @@ export declare function residentByPersonalIdentityNumberQueryOptions(sdk: Solibo
|
|
|
13
13
|
companyId?: Id | null | undefined;
|
|
14
14
|
cmd?: FindResidentByPersonalIdentityNumberCommand;
|
|
15
15
|
}): {
|
|
16
|
-
queryKey: (
|
|
16
|
+
queryKey: (string | number | FindResidentByPersonalIdentityNumberCommand | null | undefined)[];
|
|
17
17
|
queryFn: () => Promise<import("@solibo/solibo-sdk").FindResidentResult>;
|
|
18
18
|
enabled: boolean;
|
|
19
19
|
};
|
|
@@ -8,7 +8,7 @@ export declare function residentTypesQueryOptions(sdk: SoliboSDK, params: {
|
|
|
8
8
|
count?: number;
|
|
9
9
|
}): {
|
|
10
10
|
initialPageParam: string | undefined;
|
|
11
|
-
queryKey: (string | number | readonly ["residents", "types",
|
|
11
|
+
queryKey: (string | number | readonly ["residents", "types", string | number | null | undefined] | undefined)[];
|
|
12
12
|
queryFn: ({ pageParam }: {
|
|
13
13
|
pageParam: any;
|
|
14
14
|
}) => Promise<import("@solibo/solibo-sdk").PagedListResidentType>;
|
|
@@ -2,13 +2,13 @@ import { SoliboSDK } from "@solibo/solibo-sdk";
|
|
|
2
2
|
import { Id } from "../../../utils/kt-bridge.js";
|
|
3
3
|
export declare const residentKeys: {
|
|
4
4
|
all: readonly ["residents"];
|
|
5
|
-
list: (companyId?: Id | null | undefined) => readonly ["residents", "list",
|
|
6
|
-
history: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["residents", "history",
|
|
7
|
-
byOrgnr: (companyId?: Id | null | undefined, orgNr?: string) => readonly ["residents", "byOrgnr",
|
|
8
|
-
byPersonalIdentityNumber: (companyId?: Id | null | undefined, personalIdentityNumber?: string) => readonly ["residents", "byPersonalIdentityNumber",
|
|
9
|
-
occupancy: (companyId?: Id | null | undefined, residentType?: string, residentId?: Id | null | undefined, at?: Id | null | undefined) => readonly ["residents", "occupancy",
|
|
10
|
-
types: (companyId?: Id | null | undefined) => readonly ["residents", "types",
|
|
11
|
-
personalId: (companyId?: Id | null | undefined, residentId?: Id | null | undefined) => readonly ["residents", "personalId",
|
|
5
|
+
list: (companyId?: Id | null | undefined) => readonly ["residents", "list", string | number | null | undefined];
|
|
6
|
+
history: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["residents", "history", string | number | null | undefined, string | number | null | undefined];
|
|
7
|
+
byOrgnr: (companyId?: Id | null | undefined, orgNr?: string) => readonly ["residents", "byOrgnr", string | number | null | undefined, string | undefined];
|
|
8
|
+
byPersonalIdentityNumber: (companyId?: Id | null | undefined, personalIdentityNumber?: string) => readonly ["residents", "byPersonalIdentityNumber", string | number | null | undefined, string | undefined];
|
|
9
|
+
occupancy: (companyId?: Id | null | undefined, residentType?: string, residentId?: Id | null | undefined, at?: Id | null | undefined) => readonly ["residents", "occupancy", string | number | null | undefined, string | undefined, string | number | null | undefined, string | number | null | undefined];
|
|
10
|
+
types: (companyId?: Id | null | undefined) => readonly ["residents", "types", string | number | null | undefined];
|
|
11
|
+
personalId: (companyId?: Id | null | undefined, residentId?: Id | null | undefined) => readonly ["residents", "personalId", string | number | null | undefined, string | number | null | undefined];
|
|
12
12
|
};
|
|
13
13
|
export declare function residentsQueryOptions(sdk: SoliboSDK, params: {
|
|
14
14
|
companyId?: Id | null | undefined;
|
|
@@ -19,7 +19,7 @@ export declare function residentsQueryOptions(sdk: SoliboSDK, params: {
|
|
|
19
19
|
autoPaginate?: boolean;
|
|
20
20
|
}): {
|
|
21
21
|
initialPageParam: string | undefined;
|
|
22
|
-
queryKey: (string | number | readonly ["residents", "list",
|
|
22
|
+
queryKey: (string | number | readonly ["residents", "list", string | number | null | undefined] | undefined)[];
|
|
23
23
|
queryFn: ({ pageParam }: {
|
|
24
24
|
pageParam: any;
|
|
25
25
|
}) => Promise<import("@solibo/solibo-sdk").PagedListResident>;
|
|
@@ -1,25 +1,35 @@
|
|
|
1
|
-
import { fromKt } from "../../../utils/kt-bridge.js";
|
|
1
|
+
import { fromKt, toKeyId } from "../../../utils/kt-bridge.js";
|
|
2
2
|
export const residentKeys = {
|
|
3
3
|
all: ["residents"],
|
|
4
|
-
list: (companyId) => [...residentKeys.all, "list", companyId],
|
|
5
|
-
history: (companyId, sectionId) => [
|
|
6
|
-
|
|
4
|
+
list: (companyId) => [...residentKeys.all, "list", toKeyId(companyId)],
|
|
5
|
+
history: (companyId, sectionId) => [
|
|
6
|
+
...residentKeys.all,
|
|
7
|
+
"history",
|
|
8
|
+
toKeyId(companyId),
|
|
9
|
+
toKeyId(sectionId),
|
|
10
|
+
],
|
|
11
|
+
byOrgnr: (companyId, orgNr) => [...residentKeys.all, "byOrgnr", toKeyId(companyId), orgNr],
|
|
7
12
|
byPersonalIdentityNumber: (companyId, personalIdentityNumber) => [
|
|
8
13
|
...residentKeys.all,
|
|
9
14
|
"byPersonalIdentityNumber",
|
|
10
|
-
companyId,
|
|
15
|
+
toKeyId(companyId),
|
|
11
16
|
personalIdentityNumber,
|
|
12
17
|
],
|
|
13
18
|
occupancy: (companyId, residentType, residentId, at) => [
|
|
14
19
|
...residentKeys.all,
|
|
15
20
|
"occupancy",
|
|
16
|
-
companyId,
|
|
21
|
+
toKeyId(companyId),
|
|
17
22
|
residentType,
|
|
18
|
-
residentId,
|
|
19
|
-
at,
|
|
23
|
+
toKeyId(residentId),
|
|
24
|
+
toKeyId(at),
|
|
25
|
+
],
|
|
26
|
+
types: (companyId) => [...residentKeys.all, "types", toKeyId(companyId)],
|
|
27
|
+
personalId: (companyId, residentId) => [
|
|
28
|
+
...residentKeys.all,
|
|
29
|
+
"personalId",
|
|
30
|
+
toKeyId(companyId),
|
|
31
|
+
toKeyId(residentId),
|
|
20
32
|
],
|
|
21
|
-
types: (companyId) => [...residentKeys.all, "types", companyId],
|
|
22
|
-
personalId: (companyId, residentId) => [...residentKeys.all, "personalId", companyId, residentId],
|
|
23
33
|
};
|
|
24
34
|
export function residentsQueryOptions(sdk, params) {
|
|
25
35
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"residents.js","sourceRoot":"","sources":["../../../../src/api/queries/residentsAndSections/residents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"residents.js","sourceRoot":"","sources":["../../../../src/api/queries/residentsAndSections/residents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAM,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,EAAE,CAAC,WAAW,CAAU;IAC3B,IAAI,EAAE,CAAC,SAAiC,EAAE,EAAE,CAC1C,CAAC,GAAG,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAU;IAC5D,OAAO,EAAE,CACP,SAAiC,EACjC,SAAiC,EACjC,EAAE,CACF;QACE,GAAG,YAAY,CAAC,GAAG;QACnB,SAAS;QACT,OAAO,CAAC,SAAS,CAAC;QAClB,OAAO,CAAC,SAAS,CAAC;KACV;IACZ,OAAO,EAAE,CAAC,SAAiC,EAAE,KAAc,EAAE,EAAE,CAC7D,CAAC,GAAG,YAAY,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,KAAK,CAAU;IACtE,wBAAwB,EAAE,CACxB,SAAiC,EACjC,sBAA+B,EAC/B,EAAE,CACF;QACE,G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AAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACjC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS;QAC3B,gBAAgB,EAAE,CAAC,QAAa,EAAE,EAAE,CAClC,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,aAAa;YACtC,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI;QAC5B,oBAAoB,EAAE,CAAC,QAAa,EAAE,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ;KACpE,CAAC;AACJ,CAAC","sourcesContent":["import { SoliboSDK } from \"@solibo/solibo-sdk\";\nimport { fromKt, Id, toKeyId } from \"../../../utils/kt-bridge.js\";\n\nexport const residentKeys = {\n all: [\"residents\"] as const,\n list: (companyId?: Id | null | undefined) =>\n [...residentKeys.all, \"list\", toKeyId(companyId)] as const,\n history: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined,\n ) =>\n [\n ...residentKeys.all,\n \"history\",\n toKeyId(companyId),\n toKeyId(sectionId),\n ] as const,\n byOrgnr: (companyId?: Id | null | undefined, orgNr?: string) =>\n [...residentKeys.all, \"byOrgnr\", toKeyId(companyId), orgNr] as const,\n byPersonalIdentityNumber: (\n companyId?: Id | null | undefined,\n personalIdentityNumber?: string,\n ) =>\n [\n ...residentKeys.all,\n \"byPersonalIdentityNumber\",\n toKeyId(companyId),\n personalIdentityNumber,\n ] as const,\n occupancy: (\n companyId?: Id | null | undefined,\n residentType?: string,\n residentId?: Id | null | undefined,\n at?: Id | null | undefined,\n ) =>\n [\n ...residentKeys.all,\n \"occupancy\",\n toKeyId(companyId),\n residentType,\n toKeyId(residentId),\n toKeyId(at),\n ] as const,\n types: (companyId?: Id | null | undefined) =>\n [...residentKeys.all, \"types\", toKeyId(companyId)] as const,\n personalId: (\n companyId?: Id | null | undefined,\n residentId?: Id | null | undefined,\n ) =>\n [\n ...residentKeys.all,\n \"personalId\",\n toKeyId(companyId),\n toKeyId(residentId),\n ] as const,\n};\n\nexport function residentsQueryOptions(\n sdk: SoliboSDK,\n params: {\n companyId?: Id | null | undefined;\n query?: string;\n fields?: string;\n pageToken?: string;\n count?: number;\n autoPaginate?: boolean;\n },\n) {\n return {\n initialPageParam: params.pageToken,\n queryKey: [\n residentKeys.list(params.companyId),\n params.query,\n params.fields,\n params.count,\n ],\n queryFn: ({ pageParam }: { pageParam: any }) =>\n sdk.api.residents\n .indexResident(\n BigInt(params.companyId!).valueOf(),\n params.query,\n params.fields,\n pageParam,\n params.autoPaginate,\n params.count,\n )\n .then((res) => res.body())\n .then((body) => fromKt(body)),\n enabled: !!params.companyId,\n getNextPageParam: (lastPage: any) =>\n lastPage?.paging?.next === \"END_OF_LIST\"\n ? undefined\n : lastPage?.paging?.next,\n getPreviousPageParam: (lastPage: any) => lastPage?.paging?.previous,\n };\n}\n"]}
|
|
@@ -10,7 +10,7 @@ export declare function sectionOccupancyQueryOptions(sdk: SoliboSDK, params: {
|
|
|
10
10
|
count?: number;
|
|
11
11
|
}): {
|
|
12
12
|
initialPageParam: string | undefined;
|
|
13
|
-
queryKey: (string | number | bigint | readonly ["sections", "occupancy",
|
|
13
|
+
queryKey: (string | number | bigint | readonly ["sections", "occupancy", string | number | null | undefined, string | number | null | undefined] | null | undefined)[];
|
|
14
14
|
queryFn: ({ pageParam }: {
|
|
15
15
|
pageParam: any;
|
|
16
16
|
}) => Promise<import("@solibo/solibo-sdk").PagedListAttendance>;
|
|
@@ -7,7 +7,7 @@ export declare function sectionStatusQueryOptions(sdk: SoliboSDK, params: {
|
|
|
7
7
|
statusType?: SectionState | null;
|
|
8
8
|
fields?: string;
|
|
9
9
|
}): {
|
|
10
|
-
queryKey: (string | SectionState | readonly ["sections", "status",
|
|
10
|
+
queryKey: (string | SectionState | readonly ["sections", "status", string | number | null | undefined, string | number | null | undefined] | null | undefined)[];
|
|
11
11
|
queryFn: () => Promise<{
|
|
12
12
|
[k: string]: import("@solibo/solibo-sdk").SectionStatusSectionStatusMapValue[];
|
|
13
13
|
}>;
|
|
@@ -17,7 +17,7 @@ export declare function sectionStatusesQueryOptions(sdk: SoliboSDK, params: {
|
|
|
17
17
|
companyId?: Id | null | undefined;
|
|
18
18
|
fields?: string;
|
|
19
19
|
}): {
|
|
20
|
-
queryKey: (string | readonly ["sections", "statuses",
|
|
20
|
+
queryKey: (string | readonly ["sections", "statuses", string | number | null | undefined] | undefined)[];
|
|
21
21
|
queryFn: () => Promise<import("@solibo/solibo-sdk").CompanySectionStatusOverview[]>;
|
|
22
22
|
enabled: boolean;
|
|
23
23
|
};
|
|
@@ -9,7 +9,7 @@ export declare function sectionTagsQueryOptions(sdk: SoliboSDK, params: {
|
|
|
9
9
|
count?: number;
|
|
10
10
|
}): {
|
|
11
11
|
initialPageParam: string | undefined;
|
|
12
|
-
queryKey: (string | number | readonly ["sections", "tags",
|
|
12
|
+
queryKey: (string | number | readonly ["sections", "tags", string | number | null | undefined, string | number | null | undefined] | undefined)[];
|
|
13
13
|
queryFn: ({ pageParam }: {
|
|
14
14
|
pageParam: any;
|
|
15
15
|
}) => Promise<import("@solibo/solibo-sdk").PagedListSectionTag>;
|
|
@@ -5,7 +5,7 @@ export declare function sectionTenantsQueryOptions(sdk: SoliboSDK, params: {
|
|
|
5
5
|
sectionId?: Id | null | undefined;
|
|
6
6
|
fields?: string;
|
|
7
7
|
}): {
|
|
8
|
-
queryKey: (string | readonly ["sections", "tenants",
|
|
8
|
+
queryKey: (string | readonly ["sections", "tenants", string | number | null | undefined, string | number | null | undefined] | undefined)[];
|
|
9
9
|
queryFn: () => Promise<import("@solibo/solibo-sdk").ResidentRoleHistory>;
|
|
10
10
|
enabled: boolean;
|
|
11
11
|
};
|
|
@@ -3,16 +3,16 @@ import { SectionState } from "@solibo/solibo-sdk";
|
|
|
3
3
|
import { Id } from "../../../utils/kt-bridge.js";
|
|
4
4
|
export declare const sectionKeys: {
|
|
5
5
|
all: readonly ["sections"];
|
|
6
|
-
list: (companyId?: Id | null | undefined) => readonly ["sections", "list",
|
|
7
|
-
occupancy: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["sections", "occupancy",
|
|
8
|
-
status: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["sections", "status",
|
|
9
|
-
statuses: (companyId?: Id | null | undefined) => readonly ["sections", "statuses",
|
|
10
|
-
tags: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["sections", "tags",
|
|
11
|
-
tagsBySection: (companyId?: Id | null | undefined) => readonly ["sections", "tagsBySection",
|
|
12
|
-
tenants: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["sections", "tenants",
|
|
13
|
-
ownershipChanges: (companyId?: Id | null | undefined) => readonly ["sections", "ownershipChanges",
|
|
14
|
-
loansByFraction: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined, at?: Id | null | undefined) => readonly ["sections", "loansByFraction",
|
|
15
|
-
existingTags: (companyId?: Id | null | undefined) => readonly ["sections", "existingTags",
|
|
6
|
+
list: (companyId?: Id | null | undefined) => readonly ["sections", "list", string | number | null | undefined];
|
|
7
|
+
occupancy: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["sections", "occupancy", string | number | null | undefined, string | number | null | undefined];
|
|
8
|
+
status: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["sections", "status", string | number | null | undefined, string | number | null | undefined];
|
|
9
|
+
statuses: (companyId?: Id | null | undefined) => readonly ["sections", "statuses", string | number | null | undefined];
|
|
10
|
+
tags: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["sections", "tags", string | number | null | undefined, string | number | null | undefined];
|
|
11
|
+
tagsBySection: (companyId?: Id | null | undefined) => readonly ["sections", "tagsBySection", string | number | null | undefined];
|
|
12
|
+
tenants: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined) => readonly ["sections", "tenants", string | number | null | undefined, string | number | null | undefined];
|
|
13
|
+
ownershipChanges: (companyId?: Id | null | undefined) => readonly ["sections", "ownershipChanges", string | number | null | undefined];
|
|
14
|
+
loansByFraction: (companyId?: Id | null | undefined, sectionId?: Id | null | undefined, at?: Id | null | undefined) => readonly ["sections", "loansByFraction", string | number | null | undefined, string | number | null | undefined, string | number | null | undefined];
|
|
15
|
+
existingTags: (companyId?: Id | null | undefined) => readonly ["sections", "existingTags", string | number | null | undefined];
|
|
16
16
|
search: (query?: string) => readonly ["sections", "search", {
|
|
17
17
|
readonly query: string | undefined;
|
|
18
18
|
}];
|
|
@@ -27,7 +27,7 @@ export declare function sectionsQueryOptions(sdk: SoliboSDK, params: {
|
|
|
27
27
|
autoPaginate?: boolean | null;
|
|
28
28
|
}): {
|
|
29
29
|
initialPageParam: string | undefined;
|
|
30
|
-
queryKey: (string | number | SectionState | readonly ["sections", "list",
|
|
30
|
+
queryKey: (string | number | SectionState | readonly ["sections", "list", string | number | null | undefined] | null | undefined)[];
|
|
31
31
|
queryFn: ({ pageParam }: {
|
|
32
32
|
pageParam: any;
|
|
33
33
|
}) => Promise<import("@solibo/solibo-sdk").PagedListSection>;
|
|
@@ -1,17 +1,43 @@
|
|
|
1
|
-
import { fromKt } from "../../../utils/kt-bridge.js";
|
|
1
|
+
import { fromKt, toKeyId } from "../../../utils/kt-bridge.js";
|
|
2
2
|
import { minutes } from "../../../utils/dateTime.js";
|
|
3
3
|
export const sectionKeys = {
|
|
4
4
|
all: ["sections"],
|
|
5
|
-
list: (companyId) => [...sectionKeys.all, "list", companyId],
|
|
6
|
-
occupancy: (companyId, sectionId) => [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
list: (companyId) => [...sectionKeys.all, "list", toKeyId(companyId)],
|
|
6
|
+
occupancy: (companyId, sectionId) => [
|
|
7
|
+
...sectionKeys.all,
|
|
8
|
+
"occupancy",
|
|
9
|
+
toKeyId(companyId),
|
|
10
|
+
toKeyId(sectionId),
|
|
11
|
+
],
|
|
12
|
+
status: (companyId, sectionId) => [
|
|
13
|
+
...sectionKeys.all,
|
|
14
|
+
"status",
|
|
15
|
+
toKeyId(companyId),
|
|
16
|
+
toKeyId(sectionId),
|
|
17
|
+
],
|
|
18
|
+
statuses: (companyId) => [...sectionKeys.all, "statuses", toKeyId(companyId)],
|
|
19
|
+
tags: (companyId, sectionId) => [
|
|
20
|
+
...sectionKeys.all,
|
|
21
|
+
"tags",
|
|
22
|
+
toKeyId(companyId),
|
|
23
|
+
toKeyId(sectionId),
|
|
24
|
+
],
|
|
25
|
+
tagsBySection: (companyId) => [...sectionKeys.all, "tagsBySection", toKeyId(companyId)],
|
|
26
|
+
tenants: (companyId, sectionId) => [
|
|
27
|
+
...sectionKeys.all,
|
|
28
|
+
"tenants",
|
|
29
|
+
toKeyId(companyId),
|
|
30
|
+
toKeyId(sectionId),
|
|
31
|
+
],
|
|
32
|
+
ownershipChanges: (companyId) => [...sectionKeys.all, "ownershipChanges", toKeyId(companyId)],
|
|
33
|
+
loansByFraction: (companyId, sectionId, at) => [
|
|
34
|
+
...sectionKeys.all,
|
|
35
|
+
"loansByFraction",
|
|
36
|
+
toKeyId(companyId),
|
|
37
|
+
toKeyId(sectionId),
|
|
38
|
+
toKeyId(at),
|
|
39
|
+
],
|
|
40
|
+
existingTags: (companyId) => [...sectionKeys.all, "existingTags", toKeyId(companyId)],
|
|
15
41
|
search: (query) => [...sectionKeys.all, "search", { query }],
|
|
16
42
|
};
|
|
17
43
|
export function sectionsQueryOptions(sdk, params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sections.js","sourceRoot":"","sources":["../../../../src/api/queries/residentsAndSections/sections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAM,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"sections.js","sourceRoot":"","sources":["../../../../src/api/queries/residentsAndSections/sections.ts"],"names":[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,GAAG,CAAC,IAAI,EAAE,CAAC;aACzB,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACjC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS;QAC3B,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC;QACtB,gBAAgB,EAAE,CAAC,QAAa,EAAE,EAAE,CAClC,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,aAAa;YACtC,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI;QAC5B,oBAAoB,EAAE,CAAC,QAAa,EAAE,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ;KACpE,CAAC;AACJ,CAAC","sourcesContent":["import { SoliboSDK } from \"@solibo/solibo-sdk\";\nimport { SectionState } from \"@solibo/solibo-sdk\";\nimport { fromKt, Id, toKeyId } from \"../../../utils/kt-bridge.js\";\nimport { minutes } from \"../../../utils/dateTime.js\";\n\nexport const sectionKeys = {\n all: [\"sections\"] as const,\n list: (companyId?: Id | null | undefined) =>\n [...sectionKeys.all, \"list\", toKeyId(companyId)] as const,\n occupancy: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined,\n ) =>\n [\n ...sectionKeys.all,\n \"occupancy\",\n toKeyId(companyId),\n toKeyId(sectionId),\n ] as const,\n status: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined,\n ) =>\n [\n ...sectionKeys.all,\n \"status\",\n toKeyId(companyId),\n toKeyId(sectionId),\n ] as const,\n statuses: (companyId?: Id | null | undefined) =>\n [...sectionKeys.all, \"statuses\", toKeyId(companyId)] as const,\n tags: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined,\n ) =>\n [\n ...sectionKeys.all,\n \"tags\",\n toKeyId(companyId),\n toKeyId(sectionId),\n ] as const,\n tagsBySection: (companyId?: Id | null | undefined) =>\n [...sectionKeys.all, \"tagsBySection\", toKeyId(companyId)] as const,\n tenants: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined,\n ) =>\n [\n ...sectionKeys.all,\n \"tenants\",\n toKeyId(companyId),\n toKeyId(sectionId),\n ] as const,\n ownershipChanges: (companyId?: Id | null | undefined) =>\n [...sectionKeys.all, \"ownershipChanges\", toKeyId(companyId)] as const,\n loansByFraction: (\n companyId?: Id | null | undefined,\n sectionId?: Id | null | undefined,\n at?: Id | null | undefined,\n ) =>\n [\n ...sectionKeys.all,\n \"loansByFraction\",\n toKeyId(companyId),\n toKeyId(sectionId),\n toKeyId(at),\n ] as const,\n existingTags: (companyId?: Id | null | undefined) =>\n [...sectionKeys.all, \"existingTags\", toKeyId(companyId)] as const,\n search: (query?: string) =>\n [...sectionKeys.all, \"search\", { query }] as const,\n};\n\nexport function sectionsQueryOptions(\n sdk: SoliboSDK,\n params: {\n companyId?: Id | null | undefined;\n state?: SectionState | null;\n query?: string;\n fields?: string;\n pageToken?: string;\n count?: number;\n autoPaginate?: boolean | null;\n },\n) {\n return {\n initialPageParam: params.pageToken,\n queryKey: [\n sectionKeys.list(params.companyId),\n params.state,\n params.query,\n params.fields,\n params.count,\n ],\n queryFn: ({ pageParam }: { pageParam: any }) =>\n sdk.api.sections\n .indexSection(\n BigInt(params.companyId!).valueOf(),\n params.state,\n params.query,\n params.fields,\n pageParam,\n params.autoPaginate,\n params.count,\n )\n .then((res) => res.body())\n .then((body) => fromKt(body)),\n enabled: !!params.companyId,\n staleTime: minutes(20),\n getNextPageParam: (lastPage: any) =>\n lastPage?.paging?.next === \"END_OF_LIST\"\n ? undefined\n : lastPage?.paging?.next,\n getPreviousPageParam: (lastPage: any) => lastPage?.paging?.previous,\n };\n}\n"]}
|
|
@@ -5,7 +5,7 @@ export declare function sectionsTagsQueryOptions(sdk: SoliboSDK, params?: {
|
|
|
5
5
|
companyId?: Id | null | undefined;
|
|
6
6
|
fields?: string;
|
|
7
7
|
}): {
|
|
8
|
-
queryKey: (string | readonly ["sections", "tagsBySection",
|
|
8
|
+
queryKey: (string | readonly ["sections", "tagsBySection", string | number | null | undefined] | undefined)[];
|
|
9
9
|
queryFn: () => Promise<{
|
|
10
10
|
[key: string]: readonly SectionTagTagsBySectionMapValue[];
|
|
11
11
|
}>;
|
|
@@ -8,7 +8,7 @@ export declare function availableRoutineTypesQueryOptions(sdk: SoliboSDK, params
|
|
|
8
8
|
count?: number;
|
|
9
9
|
}): {
|
|
10
10
|
initialPageParam: string | undefined;
|
|
11
|
-
queryKey: (string | number | readonly ["routines", "availableTypes",
|
|
11
|
+
queryKey: (string | number | readonly ["routines", "availableTypes", string | number | null | undefined] | undefined)[];
|
|
12
12
|
queryFn: ({ pageParam }: {
|
|
13
13
|
pageParam: any;
|
|
14
14
|
}) => Promise<import("@solibo/solibo-sdk").PagedListRoutineType>;
|
|
@@ -10,7 +10,7 @@ export declare function companyFeaturesQueryOptions(sdk: SoliboSDK, params: {
|
|
|
10
10
|
count?: number;
|
|
11
11
|
}): {
|
|
12
12
|
initialPageParam: string | undefined;
|
|
13
|
-
queryKey: (string | number | RoutineType | readonly ["routines", "companyFeatures",
|
|
13
|
+
queryKey: (string | number | RoutineType | readonly ["routines", "companyFeatures", string | number | null | undefined] | null | undefined)[];
|
|
14
14
|
queryFn: ({ pageParam }: {
|
|
15
15
|
pageParam: any;
|
|
16
16
|
}) => Promise<import("@solibo/solibo-sdk").PagedListRoutineGroup>;
|