Skip to content

Commit 78e545e

Browse files
committed
feat: update libs
1 parent 0f4f854 commit 78e545e

File tree

7 files changed

+62
-39
lines changed

7 files changed

+62
-39
lines changed

apps/client/src/app/pages/webhooks/webhooks.component.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
<nz-breadcrumb-item transloco="Webhooks"></nz-breadcrumb-item>
33
</nz-breadcrumb>
44
<nz-row class="inner-content">
5-
<webhook-grid [forceLoadStream]="[true | activeTenant]" nz-col [nzSpan]="24" #webhookGrid> </webhook-grid>
5+
<webhook-grid
6+
[loadManyTenantsHandler]="loadManyTenantsHandler"
7+
[forceLoadStream]="[true | activeTenant]"
8+
nz-col
9+
[nzSpan]="24"
10+
#webhookGrid
11+
>
12+
</webhook-grid>
613
<webhook-log-grid
714
*ngIf="(webhookGrid.selectedIds$ | async)?.[0] as webhookId"
815
nz-col

apps/client/src/app/pages/webhooks/webhooks.component.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { AsyncPipe, NgIf } from '@angular/common';
22
import { ChangeDetectionStrategy, Component } from '@angular/core';
33
import { TranslocoDirective } from '@jsverse/transloco';
4-
import { ActiveTenantPipe } from '@nestjs-mod-sso/sso-afat';
4+
import { ActiveTenantPipe, SsoTenantService } from '@nestjs-mod-sso/sso-afat';
55
import { WebhookGridComponent, WebhookLogGridComponent } from '@nestjs-mod/webhook-afat';
66
import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb';
77
import { NzGridModule } from 'ng-zorro-antd/grid';
88
import { NzLayoutModule } from 'ng-zorro-antd/layout';
9+
import { map } from 'rxjs';
910

1011
@Component({
1112
selector: 'app-webhooks',
@@ -24,4 +25,11 @@ import { NzLayoutModule } from 'ng-zorro-antd/layout';
2425
changeDetection: ChangeDetectionStrategy.OnPush,
2526
standalone: true,
2627
})
27-
export class WebhooksComponent {}
28+
export class WebhooksComponent {
29+
constructor(private readonly ssoTenantService: SsoTenantService) {}
30+
31+
loadManyTenantsHandler = (searchText = '') =>
32+
this.ssoTenantService
33+
.findMany({ filters: { search: searchText }, meta: { perPage: 10, curPage: 1, sort: { createdAt: 'desc' } } })
34+
.pipe(map((result) => result.ssoTenants.map((t) => ({ label: `${t.name} - ${t.slug}`, value: t.id || '' }))));
35+
}

apps/server/INFRASTRUCTURE.MD

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

apps/server/docker-compose-prod-example.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
NESTJS_MOD_SSO_POSTGRE_SQL_POSTGRESQL_USERNAME=
2+
NESTJS_MOD_SSO_POSTGRE_SQL_POSTGRESQL_PASSWORD=
3+
NESTJS_MOD_SSO_POSTGRE_SQL_POSTGRESQL_DATABASE=
4+
NESTJS_MOD_SSO_REDIS_REDIS_DISABLE_COMMANDS=
5+
NESTJS_MOD_SSO_REDIS_REDIS_IO_THREADS=
6+
NESTJS_MOD_SSO_REDIS_REDIS_IO_THREADS_DO_READS=
7+
NESTJS_MOD_SSO_MAILDEV_MAILDEV_SMTP_PORT=
8+
NESTJS_MOD_SSO_MAILDEV_MAILDEV_WEB_PORT=
19
# single-sign-on-postgre-sql (generated)
210
SINGLE_SIGN_ON_POSTGRE_SQL_POSTGRESQL_USERNAME=
311
SINGLE_SIGN_ON_POSTGRE_SQL_POSTGRESQL_PASSWORD=

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,11 @@
361361
},
362362
"dependencies": {
363363
"@nestjs-mod/two-factor": "1.1.7",
364-
"@nestjs-mod/webhook": "1.2.5",
365-
"@nestjs-mod/webhook-afat": "1.1.3",
366-
"@nestjs-mod/files": "1.2.5",
364+
"@nestjs-mod/webhook": "1.3.1",
365+
"@nestjs-mod/webhook-afat": "1.2.1",
366+
"@nestjs-mod/files": "1.3.1",
367367
"@nestjs-mod/files-afat": "1.1.3",
368-
"@nestjs-mod/notifications": "1.2.5",
368+
"@nestjs-mod/notifications": "1.3.1",
369369
"@prisma/adapter-pg": "6.9.0",
370370
"@nestjs-mod/prisma-tools": "1.1.4",
371371
"@nestjs-mod/validation": "1.2.1",

swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

yarn.lock

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3247,10 +3247,10 @@
32473247
dependencies:
32483248
tslib "^2.3.0"
32493249

3250-
"@nestjs-mod/files@1.2.5":
3251-
version "1.2.5"
3252-
resolved "https://registry.yarnpkg.com/@nestjs-mod/files/-/files-1.2.5.tgz#21039907e7186ac664ad6513e4e3d79bff3145b3"
3253-
integrity sha512-Fv8l0TPZeJlg5niigW94tlaUiAk+SK3QS1gCryyBBCSABa/sGY3O4eEN28La9MacHHWhmOqFwB0y7iydJ4BeKQ==
3250+
"@nestjs-mod/files@1.3.1":
3251+
version "1.3.1"
3252+
resolved "https://registry.yarnpkg.com/@nestjs-mod/files/-/files-1.3.1.tgz#f586f0d3c9ae592beadf8be14361a48c4c22f9ac"
3253+
integrity sha512-hUjBc6arf6KR1xDo1jtWTPbV0/LcNgplHbEVjA9CVrTJx5aiBg1f0qOHmNJy1ag2C2XSWEsEi9HNFVm5WhCVMA==
32543254

32553255
"@nestjs-mod/[email protected]":
32563256
version "1.2.1"
@@ -3277,10 +3277,10 @@
32773277
rxjs "^7.8.0"
32783278
tslib "^2.3.0"
32793279

3280-
"@nestjs-mod/notifications@1.2.5":
3281-
version "1.2.5"
3282-
resolved "https://registry.yarnpkg.com/@nestjs-mod/notifications/-/notifications-1.2.5.tgz#8505f2a10c7fc8f4a2b328f654521ffe60bb2836"
3283-
integrity sha512-EEWUgDf5zIDycItU4g+Jt6qSpAAcXgLsPnI7QVGtXCKSyK6G1qEnyrYxdXivtrGZ52BLJN2YNmr98Gv118bWRg==
3280+
"@nestjs-mod/notifications@1.3.1":
3281+
version "1.3.1"
3282+
resolved "https://registry.yarnpkg.com/@nestjs-mod/notifications/-/notifications-1.3.1.tgz#a62119c013a86fb64b2d431a454f8be45300562a"
3283+
integrity sha512-ScmZJh/DxgGj6jGjW7gih0PMiTq/w4ANandQz4azL1F4qOquYG0C15/6919p/HrDFtevqCY1MyIYcxf24/S/MQ==
32843284

32853285
"@nestjs-mod/pg-flyway@^1.3.0":
32863286
version "1.3.0"
@@ -3385,17 +3385,17 @@
33853385
dependencies:
33863386
tslib "^2.3.0"
33873387

3388-
"@nestjs-mod/webhook-afat@1.1.3":
3389-
version "1.1.3"
3390-
resolved "https://registry.yarnpkg.com/@nestjs-mod/webhook-afat/-/webhook-afat-1.1.3.tgz#9236558c82d8cf8e15f037b9f33339ecf28e85aa"
3391-
integrity sha512-uqASIx81iPEbGXVakynF46DZsqI3UquDhxsKg5lBMvfIyx4xZ5ugSCfEFE+Fl9u2+es1vls4GtUCJ+tF4oV0HQ==
3388+
"@nestjs-mod/webhook-afat@1.2.1":
3389+
version "1.2.1"
3390+
resolved "https://registry.yarnpkg.com/@nestjs-mod/webhook-afat/-/webhook-afat-1.2.1.tgz#af2fbce49a49a2798d1a19e86728dda0b0e5f142"
3391+
integrity sha512-IZVNITfjvTQUhcvo4TyurQZZBILVT2UeTAKUGCpzqhjnZDmO5m9pUBHhqut4h3EcZKrV9C3IFOhVHKyBqB2WdQ==
33923392
dependencies:
33933393
tslib "^2.3.0"
33943394

3395-
"@nestjs-mod/webhook@1.2.5":
3396-
version "1.2.5"
3397-
resolved "https://registry.yarnpkg.com/@nestjs-mod/webhook/-/webhook-1.2.5.tgz#ddaf2a8f1887e691276b07d1eece9e6318269e6e"
3398-
integrity sha512-dYE1KZ8FSuCWd2gtWcjfnz/C+PnXNGx6Gh8C6IuS5U+gYZY+ajyVqmdhIn4FxmvGKRamlHNLoCXmB/ZSUhjz/w==
3395+
"@nestjs-mod/webhook@1.3.1":
3396+
version "1.3.1"
3397+
resolved "https://registry.yarnpkg.com/@nestjs-mod/webhook/-/webhook-1.3.1.tgz#c8595266c2f593181f42206602d01938734e7b55"
3398+
integrity sha512-w0SXedbUVW+tYJdoa38cu/hg7QTmEePWO1HkxQoTTluOd/hdsaSRLPl+nnw0KFLoM++ylKRlFJtTh8YfG+5l7g==
33993399

34003400
"@nestjs/[email protected]", "@nestjs/axios@^3.1.3":
34013401
version "3.1.3"

0 commit comments

Comments
 (0)