@acorex-platform/module-business-core-client 0.0.15

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/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@acorex-platform/module-business-core-client",
3
+ "version": "0.0.15",
4
+ "sideEffects": false,
5
+ "peerDependencies": {
6
+ "@angular/common": "^21.0.0",
7
+ "@angular/core": "^21.0.0"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "module": "fesm2022/acorex-platform-module-business-core-client.mjs",
13
+ "typings": "types/acorex-platform-module-business-core-client.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./types/acorex-platform-module-business-core-client.d.ts",
20
+ "default": "./fesm2022/acorex-platform-module-business-core-client.mjs"
21
+ },
22
+ "./contracts": {
23
+ "types": "./types/acorex-platform-module-business-core-client-contracts.d.ts",
24
+ "default": "./fesm2022/acorex-platform-module-business-core-client-contracts.mjs"
25
+ }
26
+ },
27
+ "type": "module"
28
+ }
@@ -0,0 +1,194 @@
1
+ import { AXPEntity, AXPEntityModel } from '@acorex-platform/framework-shared/entity';
2
+ import { AXPMultiLanguageString, AXPCategoryListItem } from '@acorex-platform/framework-shared/core';
3
+
4
+ declare const AXMBusinessCoreMenuKeys: {
5
+ readonly Root: "business-core";
6
+ readonly Manufacturers: "business-core.manufacturers";
7
+ readonly Divider1: "business-core.divider-1";
8
+ readonly Industries: "business-core.industries";
9
+ readonly BusinessTypes: "business-core.business-types";
10
+ readonly BusinessStatuses: "business-core.business-statuses";
11
+ readonly Divider2: "business-core.divider-2";
12
+ readonly PartyTypes: "business-core.party-types";
13
+ readonly PartySegments: "business-core.party-segments";
14
+ readonly LifecycleStages: "business-core.lifecycle-stages";
15
+ };
16
+
17
+ declare const AXMBusinessCorePermissionKeys: {
18
+ readonly BusinessCore: {
19
+ readonly Manufacturer: {
20
+ readonly Management: "BusinessCore:Permission:Manufacturer.Management";
21
+ };
22
+ readonly Industry: {
23
+ readonly Management: "BusinessCore:Permission:Industry.Management";
24
+ };
25
+ readonly BusinessType: {
26
+ readonly Management: "BusinessCore:Permission:BusinessType.Management";
27
+ };
28
+ readonly BusinessStatus: {
29
+ readonly Management: "BusinessCore:Permission:BusinessStatus.Management";
30
+ };
31
+ readonly PartyType: {
32
+ readonly Management: "BusinessCore:Permission:PartyType.Management";
33
+ };
34
+ readonly PartySegment: {
35
+ readonly Management: "BusinessCore:Permission:PartySegment.Management";
36
+ };
37
+ readonly LifecycleStage: {
38
+ readonly Management: "BusinessCore:Permission:LifecycleStage.Management";
39
+ };
40
+ };
41
+ };
42
+
43
+ declare const RootConfig: {
44
+ readonly config: {
45
+ i18n: string;
46
+ module: string;
47
+ };
48
+ readonly module: {
49
+ readonly name: string;
50
+ readonly title: `@${string}:module.title`;
51
+ readonly icon: "fa-light fa-building";
52
+ };
53
+ readonly entities: {
54
+ readonly manufacturer: {
55
+ readonly name: "Manufacturer";
56
+ readonly title: `@${string}:manufacturers.entities.manufacturer.title`;
57
+ readonly titlePlural: `@${string}:manufacturers.entities.manufacturer.plural`;
58
+ readonly icon: "fa-light fa-industry";
59
+ };
60
+ readonly industry: {
61
+ readonly name: "Industry";
62
+ readonly title: `@${string}:industries.entities.industry.title`;
63
+ readonly titlePlural: `@${string}:industries.entities.industry.plural`;
64
+ readonly icon: "fa-light fa-chart-line";
65
+ };
66
+ readonly businessType: {
67
+ readonly name: "BusinessType";
68
+ readonly title: `@${string}:business-types.entities.business-type.title`;
69
+ readonly titlePlural: `@${string}:business-types.entities.business-type.plural`;
70
+ readonly icon: "fa-light fa-briefcase";
71
+ };
72
+ readonly businessStatus: {
73
+ readonly name: "BusinessStatus";
74
+ readonly title: `@${string}:business-statuses.entities.business-status.title`;
75
+ readonly titlePlural: `@${string}:business-statuses.entities.business-status.plural`;
76
+ readonly icon: "fa-light fa-circle-check";
77
+ };
78
+ readonly partyType: {
79
+ readonly name: "PartyType";
80
+ readonly title: `@${string}:party-types.entities.party-type.title`;
81
+ readonly titlePlural: `@${string}:party-types.entities.party-type.plural`;
82
+ readonly icon: "fa-light fa-tag";
83
+ };
84
+ readonly partySegment: {
85
+ readonly name: "PartySegment";
86
+ readonly title: `@${string}:party-segments.entities.party-segment.title`;
87
+ readonly titlePlural: `@${string}:party-segments.entities.party-segment.plural`;
88
+ readonly icon: "fa-light fa-chart-pie";
89
+ };
90
+ readonly lifecycleStage: {
91
+ readonly name: "LifecycleStage";
92
+ readonly title: `@${string}:lifecycle-stages.entities.lifecycle-stage.title`;
93
+ readonly titlePlural: `@${string}:lifecycle-stages.entities.lifecycle-stage.plural`;
94
+ readonly icon: "fa-light fa-timeline";
95
+ };
96
+ readonly party: {
97
+ readonly name: "Party";
98
+ readonly title: `@${string}:parties.entities.party.title`;
99
+ readonly titlePlural: `@${string}:parties.entities.party.plural`;
100
+ readonly icon: "fa-light fa-building";
101
+ };
102
+ };
103
+ };
104
+
105
+ declare function businessStatusFactory(): Promise<AXPEntity>;
106
+
107
+ interface AXMBusinessCoreBusinessStatusEntityModel extends AXPEntityModel<string> {
108
+ code: string;
109
+ title: AXPMultiLanguageString;
110
+ description?: AXPMultiLanguageString | null;
111
+ isDisabled?: boolean;
112
+ }
113
+
114
+ declare function businessTypeFactory(): Promise<AXPEntity>;
115
+
116
+ interface AXMBusinessCoreBusinessTypeEntityModel extends AXPEntityModel<string> {
117
+ code: string;
118
+ title: AXPMultiLanguageString;
119
+ description?: AXPMultiLanguageString | null;
120
+ isDisabled?: boolean;
121
+ }
122
+
123
+ declare function industryFactory(): Promise<AXPEntity>;
124
+
125
+ interface AXMBusinessCoreIndustryEntityModel extends AXPEntityModel<string> {
126
+ code: string;
127
+ title: AXPMultiLanguageString;
128
+ description?: AXPMultiLanguageString | null;
129
+ isDisabled?: boolean;
130
+ }
131
+
132
+ declare function lifecycleStageFactory(): Promise<AXPEntity>;
133
+
134
+ interface AXMBusinessCoreLifecycleStageEntityModel extends AXPEntityModel<string> {
135
+ title: AXPMultiLanguageString;
136
+ description?: AXPMultiLanguageString | null;
137
+ order?: number;
138
+ }
139
+
140
+ declare function manufacturerFactory(): Promise<AXPEntity | null>;
141
+
142
+ interface AXMBusinessCoreManufacturerEntityModel extends AXPEntityModel<string> {
143
+ code: string;
144
+ title: AXPMultiLanguageString;
145
+ description?: AXPMultiLanguageString;
146
+ logo?: string;
147
+ countryOfOrigin?: string;
148
+ website?: string;
149
+ contactEmail?: string;
150
+ contactPhone?: string;
151
+ isDisabled?: boolean;
152
+ categoryIds?: string[];
153
+ categories?: AXPCategoryListItem[];
154
+ }
155
+
156
+ declare function partyFactory(): Promise<AXPEntity>;
157
+
158
+ interface AXMBusinessCorePartyEntityModel extends AXPEntityModel<string> {
159
+ code: string;
160
+ title: AXPMultiLanguageString;
161
+ description?: AXPMultiLanguageString;
162
+ image?: string;
163
+ phones?: Array<{
164
+ value: string;
165
+ }>;
166
+ emails?: Array<{
167
+ value: string;
168
+ }>;
169
+ addresses?: Array<{
170
+ label?: string;
171
+ [key: string]: unknown;
172
+ }>;
173
+ }
174
+
175
+ declare function partySegmentFactory(): Promise<AXPEntity>;
176
+
177
+ interface AXMBusinessCorePartySegmentEntityModel extends AXPEntityModel<string> {
178
+ title: AXPMultiLanguageString;
179
+ description?: AXPMultiLanguageString | null;
180
+ color?: string | null;
181
+ isArchived?: boolean;
182
+ }
183
+
184
+ declare function partyTypeFactory(): Promise<AXPEntity>;
185
+
186
+ interface AXMBusinessCorePartyTypeEntityModel extends AXPEntityModel<string> {
187
+ code: string;
188
+ title: AXPMultiLanguageString;
189
+ description?: AXPMultiLanguageString | null;
190
+ isDisabled?: boolean;
191
+ }
192
+
193
+ export { AXMBusinessCoreMenuKeys, AXMBusinessCorePermissionKeys, RootConfig, businessStatusFactory, businessTypeFactory, industryFactory, lifecycleStageFactory, manufacturerFactory, partyFactory, partySegmentFactory, partyTypeFactory };
194
+ export type { AXMBusinessCoreBusinessStatusEntityModel, AXMBusinessCoreBusinessTypeEntityModel, AXMBusinessCoreIndustryEntityModel, AXMBusinessCoreLifecycleStageEntityModel, AXMBusinessCoreManufacturerEntityModel, AXMBusinessCorePartyEntityModel, AXMBusinessCorePartySegmentEntityModel, AXMBusinessCorePartyTypeEntityModel };
@@ -0,0 +1,31 @@
1
+ import * as i0 from '@angular/core';
2
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
3
+ import { AXPEntityDefinitionLoader } from '@acorex-platform/framework-client/layout/entity';
4
+ import { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';
5
+ import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex-platform/framework-client/auth';
6
+
7
+ declare class AXMBusinessCoreModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMBusinessCoreModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMBusinessCoreModule, never, never, never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXMBusinessCoreModule>;
11
+ }
12
+
13
+ declare class AXMBusinessCoreEntityProvider implements AXPEntityDefinitionLoader {
14
+ get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
15
+ list(): Promise<{
16
+ name: string;
17
+ module: string;
18
+ }[]>;
19
+ }
20
+
21
+ declare class AXMBusinessCoreMenuProvider implements AXPMenuProvider {
22
+ private readonly entityService;
23
+ provide(context: AXPMenuProviderContext): Promise<void>;
24
+ }
25
+
26
+ declare class AXMBusinessCorePermissionDefinitionProvider implements AXPPermissionDefinitionProvider {
27
+ private readonly translationService;
28
+ define(context: AXPPermissionDefinitionProviderContext): Promise<void>;
29
+ }
30
+
31
+ export { AXMBusinessCoreEntityProvider, AXMBusinessCoreMenuProvider, AXMBusinessCoreModule, AXMBusinessCorePermissionDefinitionProvider };