@posiwise/user-module 0.0.172 → 0.0.173
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.
|
@@ -54,7 +54,7 @@ import { StatusCodes } from "http-status-codes";
|
|
|
54
54
|
import { firstValueFrom, forkJoin, from, interval, map } from "rxjs";
|
|
55
55
|
import { getDomain } from "tldts";
|
|
56
56
|
import * as i3 from "@posiwise/common-services";
|
|
57
|
-
import { FormHelperService, PermissionService, ValidationService } from "@posiwise/common-services";
|
|
57
|
+
import { FormHelperService, PermissionService, ValidationService, hasKnowledgeAlpha } from "@posiwise/common-services";
|
|
58
58
|
import * as i13 from "@jsverse/transloco";
|
|
59
59
|
import cloneDeep from "lodash/cloneDeep";
|
|
60
60
|
import sortBy from "lodash/sortBy";
|
|
@@ -4260,6 +4260,96 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4260
4260
|
}],
|
|
4261
4261
|
ctorParameters: () => [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }]
|
|
4262
4262
|
});
|
|
4263
|
+
var AiKnowledgeTabComponent = class AiKnowledgeTabComponent {
|
|
4264
|
+
constructor(permissionService) {
|
|
4265
|
+
this.permissionService = permissionService;
|
|
4266
|
+
}
|
|
4267
|
+
get ready() {
|
|
4268
|
+
return !!this.permissionService.user;
|
|
4269
|
+
}
|
|
4270
|
+
get isAlpha() {
|
|
4271
|
+
return hasKnowledgeAlpha(this.permissionService);
|
|
4272
|
+
}
|
|
4273
|
+
get subscription() {
|
|
4274
|
+
return PermissionService.selectedSubscription ?? null;
|
|
4275
|
+
}
|
|
4276
|
+
get useOwnData() {
|
|
4277
|
+
return this.subscription?.rag_use_own_data === true;
|
|
4278
|
+
}
|
|
4279
|
+
static {
|
|
4280
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
4281
|
+
minVersion: "12.0.0",
|
|
4282
|
+
version: "22.2.0",
|
|
4283
|
+
ngImport: i0,
|
|
4284
|
+
type: AiKnowledgeTabComponent,
|
|
4285
|
+
deps: [{ token: i3.PermissionService }],
|
|
4286
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
4287
|
+
});
|
|
4288
|
+
}
|
|
4289
|
+
static {
|
|
4290
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4291
|
+
minVersion: "17.0.0",
|
|
4292
|
+
version: "22.2.0",
|
|
4293
|
+
type: AiKnowledgeTabComponent,
|
|
4294
|
+
isStandalone: false,
|
|
4295
|
+
selector: "pw-ai-knowledge-tab",
|
|
4296
|
+
ngImport: i0,
|
|
4297
|
+
template: "@if (!ready) {\n <pw-loader [isVisible]=\"true\"></pw-loader>\n} @else if (!isAlpha) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NotAvailable' | transloco\"></pw-no-data>\n} @else if (subscription) {\n @if (!useOwnData) {\n <div class=\"alert alert-warning\" role=\"status\">\n <i class=\"fa fa-exclamation-triangle me-2\" aria-hidden=\"true\"></i>\n {{ 'AiKnowledge.PersonalUseOwnDataOff' | transloco: { name: subscription.organisation } }}\n </div>\n }\n <pw-ai-knowledge scope=\"personal\"\n [subscriptionId]=\"subscription.id\"\n [subscriptionName]=\"subscription.organisation\"></pw-ai-knowledge>\n} @else {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NoSubscription' | transloco\"></pw-no-data>\n}\n",
|
|
4298
|
+
dependencies: [
|
|
4299
|
+
{
|
|
4300
|
+
kind: "component",
|
|
4301
|
+
type: i5$2.AppLoaderComponent,
|
|
4302
|
+
selector: "pw-loader",
|
|
4303
|
+
inputs: [
|
|
4304
|
+
"isVisible",
|
|
4305
|
+
"closeOnOutsideClick",
|
|
4306
|
+
"autoCloseTimeOut"
|
|
4307
|
+
]
|
|
4308
|
+
},
|
|
4309
|
+
{
|
|
4310
|
+
kind: "component",
|
|
4311
|
+
type: i2$3.AiKnowledgeComponent,
|
|
4312
|
+
selector: "pw-ai-knowledge",
|
|
4313
|
+
inputs: [
|
|
4314
|
+
"scope",
|
|
4315
|
+
"subscriptionId",
|
|
4316
|
+
"subscriptionName"
|
|
4317
|
+
]
|
|
4318
|
+
},
|
|
4319
|
+
{
|
|
4320
|
+
kind: "component",
|
|
4321
|
+
type: i2$3.NoDataComponent,
|
|
4322
|
+
selector: "pw-no-data",
|
|
4323
|
+
inputs: [
|
|
4324
|
+
"message",
|
|
4325
|
+
"description",
|
|
4326
|
+
"withImage"
|
|
4327
|
+
]
|
|
4328
|
+
},
|
|
4329
|
+
{
|
|
4330
|
+
kind: "pipe",
|
|
4331
|
+
type: i13.TranslocoPipe,
|
|
4332
|
+
name: "transloco"
|
|
4333
|
+
}
|
|
4334
|
+
]
|
|
4335
|
+
});
|
|
4336
|
+
}
|
|
4337
|
+
};
|
|
4338
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4339
|
+
minVersion: "12.0.0",
|
|
4340
|
+
version: "22.2.0",
|
|
4341
|
+
ngImport: i0,
|
|
4342
|
+
type: AiKnowledgeTabComponent,
|
|
4343
|
+
decorators: [{
|
|
4344
|
+
type: Component,
|
|
4345
|
+
args: [{
|
|
4346
|
+
selector: "pw-ai-knowledge-tab",
|
|
4347
|
+
standalone: false,
|
|
4348
|
+
template: "@if (!ready) {\n <pw-loader [isVisible]=\"true\"></pw-loader>\n} @else if (!isAlpha) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NotAvailable' | transloco\"></pw-no-data>\n} @else if (subscription) {\n @if (!useOwnData) {\n <div class=\"alert alert-warning\" role=\"status\">\n <i class=\"fa fa-exclamation-triangle me-2\" aria-hidden=\"true\"></i>\n {{ 'AiKnowledge.PersonalUseOwnDataOff' | transloco: { name: subscription.organisation } }}\n </div>\n }\n <pw-ai-knowledge scope=\"personal\"\n [subscriptionId]=\"subscription.id\"\n [subscriptionName]=\"subscription.organisation\"></pw-ai-knowledge>\n} @else {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NoSubscription' | transloco\"></pw-no-data>\n}\n"
|
|
4349
|
+
}]
|
|
4350
|
+
}],
|
|
4351
|
+
ctorParameters: () => [{ type: i3.PermissionService }]
|
|
4352
|
+
});
|
|
4263
4353
|
var CommunicationTabComponent = class CommunicationTabComponent extends AppBaseComponent {
|
|
4264
4354
|
constructor(commonService, profileService, store, injector, cdr) {
|
|
4265
4355
|
super(injector);
|
|
@@ -4826,6 +4916,13 @@ var SettingsComponent = class SettingsComponent {
|
|
|
4826
4916
|
icon: "fa fa-fw fa-lock",
|
|
4827
4917
|
routerLink: ["/settings/security"]
|
|
4828
4918
|
},
|
|
4919
|
+
{
|
|
4920
|
+
id: "ai-knowledge",
|
|
4921
|
+
label: "AI Knowledge",
|
|
4922
|
+
icon: "fa fa-fw fa-brain",
|
|
4923
|
+
routerLink: ["/settings/ai-knowledge"],
|
|
4924
|
+
visible: hasKnowledgeAlpha(this.permissionService)
|
|
4925
|
+
},
|
|
4829
4926
|
{
|
|
4830
4927
|
id: "other",
|
|
4831
4928
|
label: "Other",
|
|
@@ -8388,6 +8485,7 @@ var UserModuleModule = class UserModuleModule {
|
|
|
8388
8485
|
UserSubscriptionDetailsComponent,
|
|
8389
8486
|
UserSubscriptionListComponent,
|
|
8390
8487
|
UserInvoiceComponent,
|
|
8488
|
+
AiKnowledgeTabComponent,
|
|
8391
8489
|
CommunicationTabComponent,
|
|
8392
8490
|
OthersTabComponent,
|
|
8393
8491
|
SecurityTabComponent,
|
|
@@ -8447,6 +8545,7 @@ var UserModuleModule = class UserModuleModule {
|
|
|
8447
8545
|
UserSubscriptionDetailsComponent,
|
|
8448
8546
|
UserSubscriptionListComponent,
|
|
8449
8547
|
UserInvoiceComponent,
|
|
8548
|
+
AiKnowledgeTabComponent,
|
|
8450
8549
|
CommunicationTabComponent,
|
|
8451
8550
|
OthersTabComponent,
|
|
8452
8551
|
SecurityTabComponent,
|
|
@@ -8527,6 +8626,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8527
8626
|
UserSubscriptionDetailsComponent,
|
|
8528
8627
|
UserSubscriptionListComponent,
|
|
8529
8628
|
UserInvoiceComponent,
|
|
8629
|
+
AiKnowledgeTabComponent,
|
|
8530
8630
|
CommunicationTabComponent,
|
|
8531
8631
|
OthersTabComponent,
|
|
8532
8632
|
SecurityTabComponent,
|
|
@@ -8577,6 +8677,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8577
8677
|
UserSubscriptionDetailsComponent,
|
|
8578
8678
|
UserSubscriptionListComponent,
|
|
8579
8679
|
UserInvoiceComponent,
|
|
8680
|
+
AiKnowledgeTabComponent,
|
|
8580
8681
|
CommunicationTabComponent,
|
|
8581
8682
|
OthersTabComponent,
|
|
8582
8683
|
SecurityTabComponent,
|
|
@@ -8608,6 +8709,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8608
8709
|
}]
|
|
8609
8710
|
}]
|
|
8610
8711
|
});
|
|
8611
|
-
export { AccountComponent, AccountDetailsComponent, AddSubscriptionComponent, ClearMaskedOnFocusDirective, CommunicationTabComponent, CredentialAvatarHuePipe, EditPortfoliosComponent, EditProjectModalComponent, EditQualificationsModalComponent, EditRecommendationModalComponent, EditSkillsModalComponent, EditSocialLinksComponent, EditUserProfileModalComponent, HumanizeCredentialNamePipe, OthersTabComponent, PortfoliosComponent, SavedCardDetailsComponent, SecurityTabComponent, SettingsComponent, SubscriptionCredentialComponent, SubscriptionNameByIdPipe, SupportComponent, SupportDetailsComponent, UpdatePaymentDetailsComponent, UpgradeSubscriptionComponent, UserAboutComponent, UserInvoiceComponent, UserModuleModule, UserProfilePageComponent, UserProjectsComponent, UserSubscriptionDetailsComponent, UserSubscriptionListComponent };
|
|
8712
|
+
export { AccountComponent, AccountDetailsComponent, AddSubscriptionComponent, AiKnowledgeTabComponent, ClearMaskedOnFocusDirective, CommunicationTabComponent, CredentialAvatarHuePipe, EditPortfoliosComponent, EditProjectModalComponent, EditQualificationsModalComponent, EditRecommendationModalComponent, EditSkillsModalComponent, EditSocialLinksComponent, EditUserProfileModalComponent, HumanizeCredentialNamePipe, OthersTabComponent, PortfoliosComponent, SavedCardDetailsComponent, SecurityTabComponent, SettingsComponent, SubscriptionCredentialComponent, SubscriptionNameByIdPipe, SupportComponent, SupportDetailsComponent, UpdatePaymentDetailsComponent, UpgradeSubscriptionComponent, UserAboutComponent, UserInvoiceComponent, UserModuleModule, UserProfilePageComponent, UserProjectsComponent, UserSubscriptionDetailsComponent, UserSubscriptionListComponent };
|
|
8612
8713
|
|
|
8613
8714
|
//# sourceMappingURL=posiwise-user-module.mjs.map
|