@wisemen/wise-crm 0.0.0-alpha.3 → 0.0.0-alpha.4
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/{ActivityIcon-CyWxM9LG.js → ActivityIcon-D44t-BSn.js} +1 -1
- package/dist/{BookIcon-C6fBfw8W.js → BookIcon-CutBdbC0.js} +1 -1
- package/dist/{BuildingIcon-_f5wC0G9.js → BuildingIcon-ElARxIlR.js} +1 -1
- package/dist/{BuildingsIcon-Czy44pO_.js → BuildingsIcon-C0MbMDz1.js} +1 -1
- package/dist/{BusinessDetailView-B91lfkSH.js → BusinessDetailView-i3MZXuUe.js} +2 -2
- package/dist/{ChevronDownIcon-BWBvfeaT.js → ChevronDownIcon-DZH2vgen.js} +1 -1
- package/dist/{ClockPlusIcon-BTLHO-u1.js → ClockPlusIcon-CgSXl6Sx.js} +1 -1
- package/dist/{CopyIcon-CoruI9Qw.js → CopyIcon-BmIRbs5V.js} +1 -1
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-CXpmzjnA.js → CrmDetailView.vue_vue_type_script_setup_true_lang-CySrktmd.js} +1 -1
- package/dist/DealDetailView-CUl42ZTd.js +75 -0
- package/dist/DealIcon-C6Px3HJO.js +21 -0
- package/dist/{EditWithLineIcon--i0bfcSk.js → EditWithLineIcon-CwA3jPQp.js} +1 -1
- package/dist/{FileIcon-Dyqt2Vc3.js → FileIcon-7MDmblin.js} +1 -1
- package/dist/{FilterLinesIcon-B_4YymFr.js → FilterLinesIcon-Da3BV-iT.js} +1 -1
- package/dist/{HashIcon-CuT4gU_E.js → HashIcon-BpSFNhr7.js} +1 -1
- package/dist/{HomeFilledIcon-ClLkCaJL.js → HomeFilledIcon-HJC8cV41.js} +1 -1
- package/dist/{IndividualDetailView-C4dZCyca.js → IndividualDetailView-nnbBnmG8.js} +2 -2
- package/dist/{LayersTreeIcon-DuFQbfbP.js → LayersTreeIcon-BgHcjuI_.js} +1 -1
- package/dist/{LinkExternalIcon-BszmgyUA.js → LinkExternalIcon-C_UlFHmu.js} +1 -1
- package/dist/{LocationPinIcon-CbZ4OJ_v.js → LocationPinIcon-CLrEHNef.js} +1 -1
- package/dist/{MailIcon-DOUqXCG2.js → MailIcon-k_vWPmr0.js} +1 -1
- package/dist/{MobilePhoneIcon-BzMPWSVL.js → MobilePhoneIcon-jp_Sdqnw.js} +1 -1
- package/dist/{PhoneIcon-CA2Ip-Kd.js → PhoneIcon-NfSpRTNZ.js} +1 -1
- package/dist/{SendIcon-B5jAMhG5.js → SendIcon-CmfMQQhD.js} +1 -1
- package/dist/{StarOutlineIcon-CSQgrkoI.js → StarOutlineIcon-CyWY8Cj8.js} +1 -1
- package/dist/{StarYellowIcon-BV-Wv0Tb.js → StarYellowIcon-CyNBsGIx.js} +1 -1
- package/dist/{TimeLineMarkerIcon-A7mDq26Z.js → TimeLineMarkerIcon-jCDSGnG-.js} +1 -1
- package/dist/{TrashIcon-DFmP6KpN.js → TrashIcon-BDgKB4RM.js} +1 -1
- package/dist/{UserCircleIcon-P2nAwpt5.js → UserCircleIcon-OKdaanJV.js} +1 -1
- package/dist/{UserIcon-DSCkkGQG.js → UserIcon-CLG6DEo_.js} +1 -1
- package/dist/{VerticalDotsIcon-Dw20cuJJ.js → VerticalDotsIcon--_VYFMTY.js} +1 -1
- package/dist/{WalletIcon-BZQfB6c7.js → WalletIcon-7sJZlclI.js} +1 -1
- package/dist/api/mutations/deal/dealContactPersonUpdate.mutation.d.ts +10 -0
- package/dist/api/mutations/deal/dealCreate.mutation.d.ts +11 -0
- package/dist/api/mutations/deal/dealLinkContactPerson.mutation.d.ts +10 -0
- package/dist/api/mutations/deal/dealSetPrimaryContactPerson.mutation.d.ts +8 -0
- package/dist/api/mutations/deal/dealUnlinkContactPerson.mutation.d.ts +8 -0
- package/dist/api/mutations/individual/individualGrant.mutation.d.ts +8 -0
- package/dist/api/queries/board/boardColumnsIndex.query.d.ts +2 -0
- package/dist/api/queries/business/businessIndex.query.d.ts +1 -1
- package/dist/api/queries/cbe/cbeEnterpriseSearchByTerm.query.d.ts +3 -0
- package/dist/api/queries/deal/dealContactPersonDetail.query.d.ts +5 -0
- package/dist/api/queries/deal/dealDetail.query.d.ts +4 -0
- package/dist/api/queries/deal/dealIndex.query.d.ts +220 -0
- package/dist/api/services/board.service.d.ts +4 -0
- package/dist/api/services/cbe.service.d.ts +5 -0
- package/dist/api/services/deal.service.d.ts +22 -0
- package/dist/api/services/individual.service.d.ts +2 -0
- package/dist/business/BusinessAutocomplete.vue.d.ts +22 -0
- package/dist/client/apiErrorCode.gen.d.ts +6 -0
- package/dist/client/sdk.gen.d.ts +5 -1
- package/dist/client/types.gen.d.ts +210 -8
- package/dist/client/zod.gen.d.ts +373 -60
- package/dist/components/app/dialog/AppDialogPaddingContainer.vue.d.ts +12 -0
- package/dist/components/app/dialog/AppDialogStepper.vue.d.ts +20 -0
- package/dist/components/app/group/AppGroup.vue.d.ts +1 -1
- package/dist/components/cbe/CbeAutocomplete.vue.d.ts +16 -0
- package/dist/components/entity-autocomplete/EntityAutocomplete.vue.d.ts +42 -0
- package/dist/components/info-dialog/InfoDialogHeaderCard.vue.d.ts +11 -1
- package/dist/composables/keyset-infinite-query/keysetInfiniteQuery.composable.d.ts +234 -0
- package/dist/composables/offset-infinite-query/offsetInfiniteQuery.composable.d.ts +234 -0
- package/dist/composables/stepper/stepper.composable.d.ts +18 -0
- package/dist/deal/components/DealCreateDialog.vue.d.ts +6 -0
- package/dist/deal/components/DealCreateDialogBusinessCreateForm.vue.d.ts +8 -0
- package/dist/deal/components/DealCreateDialogExtraInfoForm.vue.d.ts +7 -0
- package/dist/deal/components/DealCreateDialogSelectBusinessForm.vue.d.ts +11 -0
- package/dist/deal/components/DealCreateDialogStepperForm.vue.d.ts +14 -0
- package/dist/deal/components/DealOverviewColumn.vue.d.ts +10 -0
- package/dist/deal/components/DealOverviewColumnItem.vue.d.ts +10 -0
- package/dist/deal/routes/deal.routes.d.ts +3 -0
- package/dist/deal/views/DealDetailSidebarProvider.vue.d.ts +6 -0
- package/dist/deal/views/DealDetailView.vue.d.ts +2 -0
- package/dist/deal/views/DealOverview.vue.d.ts +2 -0
- package/dist/dialogs/contact-create/components/BusinessCreateFormFields.vue.d.ts +7 -0
- package/dist/icons/DealIcon.vue.d.ts +2 -0
- package/dist/icons/icon.d.ts +1 -0
- package/dist/{index-DGDrbZNX.js → index-Dtk-GIav.js} +10517 -8344
- package/dist/index.d.ts +59 -0
- package/dist/index.js +9 -8
- package/dist/individual/IndividualAutocomplete.vue.d.ts +21 -0
- package/dist/models/board/boardColumn.model.d.ts +13 -0
- package/dist/models/board/boardColumn.transformer.d.ts +5 -0
- package/dist/models/board/boardColumnDto.model.d.ts +6 -0
- package/dist/models/board/boardColumnUuid.model.d.ts +3 -0
- package/dist/models/business/individualItem.model.d.ts +6 -0
- package/dist/models/cbe/cbeEnterpriseNumber.model.d.ts +3 -0
- package/dist/models/cbe/search/cbeEnterpriseItem.model.d.ts +6 -0
- package/dist/models/cbe/search/cbeEnterpriseSearch.model.d.ts +15 -0
- package/dist/models/cbe/search/cbeEnterpriseSearch.transformer.d.ts +5 -0
- package/dist/models/cbe/search/cbeEnterpriseSearchDto.model.d.ts +2 -0
- package/dist/models/deal/contact-person/dealContactPerson.transformer.d.ts +5 -0
- package/dist/models/deal/contact-person/dealContactPersonDetail.model.d.ts +13 -0
- package/dist/models/deal/contact-person/dealContactPersonDetailDto.model.d.ts +2 -0
- package/dist/models/deal/create/dealCreate.transformer.d.ts +5 -0
- package/dist/models/deal/create/dealCreateDto.model.d.ts +2 -0
- package/dist/models/deal/create/dealCreateForm.model.d.ts +14 -0
- package/dist/models/deal/dealLanguageEnum.model.d.ts +6 -0
- package/dist/models/deal/dealSourceEnum.model.d.ts +6 -0
- package/dist/models/deal/dealUuid.model.d.ts +3 -0
- package/dist/models/deal/detail/dealDetail.model.d.ts +28 -0
- package/dist/models/deal/detail/dealDetail.transformer.d.ts +5 -0
- package/dist/models/deal/detail/dealDetailDto.model.d.ts +2 -0
- package/dist/models/deal/index/dealIndex.model.d.ts +24 -0
- package/dist/models/deal/index/dealIndex.transformer.d.ts +5 -0
- package/dist/models/deal/index/dealIndexDto.model.d.ts +2 -0
- package/dist/models/deal/index/dealIndexPaginationDto.model.d.ts +3 -0
- package/dist/models/deal/index/dealIndexQueryParams.model.d.ts +6 -0
- package/dist/models/deal/index/dealIndexQueryParams.tranformer.d.ts +6 -0
- package/dist/plugins/i18n.plugin.d.ts +58 -0
- package/dist/routes/crmRoutes.composable.d.ts +1 -0
- package/dist/types/pagination.type.d.ts +37 -0
- package/dist/types/query.type.d.ts +21 -0
- package/dist/types/queryKey.type.d.ts +18 -0
- package/dist/utils/vatNumber.util.d.ts +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { QueryParams } from '@/types/query.type';
|
|
2
|
+
export interface OffsetPaginationParams {
|
|
3
|
+
limit: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
}
|
|
6
|
+
export type OffsetPagination<T extends QueryParams = Record<string, never>> = {
|
|
7
|
+
pagination: OffsetPaginationParams;
|
|
8
|
+
} & T;
|
|
9
|
+
export interface KeysetPaginationParams {
|
|
10
|
+
key?: any;
|
|
11
|
+
limit: number;
|
|
12
|
+
}
|
|
13
|
+
export type KeysetPagination<T extends QueryParams> = {
|
|
14
|
+
pagination: KeysetPaginationParams;
|
|
15
|
+
} & T;
|
|
16
|
+
export interface OffsetPaginationResponse<TData> {
|
|
17
|
+
data: TData[];
|
|
18
|
+
meta: {
|
|
19
|
+
limit: number;
|
|
20
|
+
offset: number;
|
|
21
|
+
total: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface KeysetPaginationResponse<TData> {
|
|
25
|
+
data: TData[];
|
|
26
|
+
meta: {
|
|
27
|
+
next: unknown;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface PaginatedDataDto<TSchema> {
|
|
31
|
+
items: TSchema[];
|
|
32
|
+
meta: {
|
|
33
|
+
limit: number;
|
|
34
|
+
offset: number;
|
|
35
|
+
total: number;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { Sort } from '@/composables/sort/sort.composable';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
filters?: Record<string, any>;
|
|
5
|
+
search?: string;
|
|
6
|
+
sort?: Sort[];
|
|
7
|
+
}
|
|
8
|
+
export interface WithSearchQuery {
|
|
9
|
+
search: string;
|
|
10
|
+
}
|
|
11
|
+
export interface WithSortQuery<TKeys extends string> {
|
|
12
|
+
sort: Sort<TKeys>[];
|
|
13
|
+
}
|
|
14
|
+
export interface WithFilterQuery<TFilters extends Record<string, any>> {
|
|
15
|
+
filters: TFilters;
|
|
16
|
+
}
|
|
17
|
+
export interface InfiniteQueryOptions<TParams> {
|
|
18
|
+
params: {
|
|
19
|
+
[K in keyof TParams]: Ref<TParams[K]>;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -5,24 +5,42 @@ import type { WiseCrmBusinessUuid, WiseCrmIndividualUuid } from '@/index';
|
|
|
5
5
|
import type { ActivityIndexPagination } from '@/models/activity/activityIndexPagination.model';
|
|
6
6
|
import type { BillingInformationUuid } from '@/models/billing-information/billingInformationUuid.model';
|
|
7
7
|
import type { BusinessIndexPagination } from '@/models/business/index/businessIndexPagination.model';
|
|
8
|
+
import type { DealUuid } from '@/models/deal/dealUuid.model';
|
|
9
|
+
import type { DealIndexQueryParams } from '@/models/deal/index/dealIndexQueryParams.model';
|
|
8
10
|
import type { IndividualIndexPagination } from '@/models/individual/index/individualIndexPagination.model';
|
|
11
|
+
import type { IndividualUuid } from '@/models/individual/individualUuid.model';
|
|
9
12
|
import type { RecentEntitiesPagination } from '@/models/recent-entities/recentEntitiesPagination.model';
|
|
13
|
+
import type { InfiniteQueryOptions } from '@/types/query.type';
|
|
10
14
|
interface WiseCrmQueryKeys {
|
|
11
15
|
billingInformationDetail: {
|
|
12
16
|
billingInformationUuid: ComputedRef<BillingInformationUuid | null>;
|
|
13
17
|
};
|
|
18
|
+
boardColumnsIndex: void;
|
|
14
19
|
businessActivityIndex: {
|
|
15
20
|
paginationOptions?: ComputedRef<PaginationOptions<ActivityIndexPagination>>;
|
|
16
21
|
};
|
|
17
22
|
businessIndex: {
|
|
18
23
|
paginationOptions?: ComputedRef<PaginationOptions<BusinessIndexPagination>>;
|
|
19
24
|
};
|
|
25
|
+
cbeEnterpriseSearchByTerm: {
|
|
26
|
+
searchTerm: ComputedRef<string | null>;
|
|
27
|
+
};
|
|
20
28
|
contactPersonDetail: {
|
|
21
29
|
contactPersonUuid: ComputedRef<WiseCrmIndividualUuid | null>;
|
|
22
30
|
};
|
|
23
31
|
customFieldDefinitionIndex: {
|
|
24
32
|
entityType: EntityType;
|
|
25
33
|
};
|
|
34
|
+
dealContactPersonDetail: {
|
|
35
|
+
contactPersonUuid: ComputedRef<IndividualUuid>;
|
|
36
|
+
dealUuid: ComputedRef<DealUuid>;
|
|
37
|
+
};
|
|
38
|
+
dealDetail: {
|
|
39
|
+
dealUuid: ComputedRef<DealUuid>;
|
|
40
|
+
};
|
|
41
|
+
dealIndex: {
|
|
42
|
+
queryParams?: InfiniteQueryOptions<DealIndexQueryParams>['params'];
|
|
43
|
+
};
|
|
26
44
|
globalSearch: {
|
|
27
45
|
collections: ComputedRef<GlobalSearchCollectionName[]>;
|
|
28
46
|
search: ComputedRef<string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wisemen/wise-crm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-alpha.
|
|
4
|
+
"version": "0.0.0-alpha.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "CRM frontend package with Vue 3 components, composables and types",
|
|
7
7
|
"author": "Wisemen",
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@number-flow/vue": "0.4.8",
|
|
40
|
-
"@tanstack/vue-query": "^5.
|
|
40
|
+
"@tanstack/vue-query": "^5.87.4",
|
|
41
41
|
"@vueuse/core": "^13.9.0",
|
|
42
|
+
"@vueuse/router": "13.9.0",
|
|
42
43
|
"@wisemen/vue-core-query": "0.0.47",
|
|
43
44
|
"dayjs": "^1.11.13",
|
|
44
45
|
"formango": "^3.1.0",
|