@volontariapp/domain-user 2.5.0-snap-3498de5 → 2.5.0-snap-1dd6df5
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/domain-user.module.d.ts +2 -2
- package/dist/domain-user.module.d.ts.map +1 -1
- package/dist/domain-user.module.js +1 -1
- package/dist/domain-user.module.js.map +1 -1
- package/dist/interfaces/module-options.interface.d.ts +4 -3
- package/dist/interfaces/module-options.interface.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DynamicModule } from '@nestjs/common';
|
|
2
|
-
import type { DomainUserModuleAsyncOptions, DomainUserModuleOptions } from './interfaces/module-options.interface.js';
|
|
2
|
+
import type { BaseType, DomainUserModuleAsyncOptions, DomainUserModuleOptions } from './interfaces/module-options.interface.js';
|
|
3
3
|
export declare class DomainUserModule {
|
|
4
4
|
private static readonly domainProviders;
|
|
5
5
|
static register(options: DomainUserModuleOptions): DynamicModule;
|
|
6
|
-
static registerAsync(options: DomainUserModuleAsyncOptions): DynamicModule;
|
|
6
|
+
static registerAsync<T extends BaseType[]>(options: DomainUserModuleAsyncOptions<T>): DynamicModule;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=domain-user.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-user.module.d.ts","sourceRoot":"","sources":["../src/domain-user.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"domain-user.module.d.ts","sourceRoot":"","sources":["../src/domain-user.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoC,MAAM,gBAAgB,CAAC;AAOjF,OAAO,KAAK,EACV,QAAQ,EACR,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,0CAA0C,CAAC;AAElD,qBACa,gBAAgB;IAI3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAMrC;IAKF,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,uBAAuB,GAAG,aAAa;IAmBhE,MAAM,CAAC,aAAa,CAAC,CAAC,SAAS,QAAQ,EAAE,EACvC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,aAAa;CAmBjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-user.module.js","sourceRoot":"","sources":["../src/domain-user.module.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"domain-user.module.js","sourceRoot":"","sources":["../src/domain-user.module.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAiC,MAAM,EAAY,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAQpD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;;IAInB,MAAM,CAAU,eAAe,GAAe;QACpD,WAAW;QACX,WAAW;QACX,YAAY;QACZ,sBAAsB;QACtB,uBAAuB;KACxB,CAAC;IAKF,MAAM,CAAC,QAAQ,CAAC,OAAgC;QAC9C,MAAM,SAAS,GAAe;YAC5B;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,OAAO,CAAC,qBAAqB;aACxC;YACD,GAAG,IAAI,CAAC,eAAe;SACxB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,kBAAgB;YACxB,SAAS;YACT,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAKD,MAAM,CAAC,aAAa,CAClB,OAAwC;QAExC,MAAM,SAAS,GAAe;YAC5B;gBACE,OAAO,EAAE,uBAAuB;gBAChC,UAAU,EAAE,KAAK,EAAE,GAAG,IAAO,EAAE,EAAE;oBAC/B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC;oBACjD,OAAO,MAAM,CAAC,qBAAqB,CAAC;gBACtC,CAAC;gBACD,MAAM,EAAE,OAAO,CAAC,MAA0B;aAC3C;YACD,GAAG,IAAI,CAAC,eAAe;SACxB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,kBAAgB;YACxB,SAAS;YACT,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;;AAtDU,gBAAgB;IAD5B,MAAM,CAAC,EAAE,CAAC;GACE,gBAAgB,CAuD5B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export interface DomainUserModuleOptions {
|
|
2
2
|
emailEncryptionSecret: string;
|
|
3
3
|
}
|
|
4
|
-
export type
|
|
5
|
-
export
|
|
6
|
-
|
|
4
|
+
export type BaseType = object | string | number | boolean | symbol | undefined | null;
|
|
5
|
+
export type InjectionToken = string | symbol | (abstract new (...args: never[]) => object);
|
|
6
|
+
export interface DomainUserModuleAsyncOptions<T extends BaseType[]> {
|
|
7
|
+
useFactory: (...args: T) => Promise<DomainUserModuleOptions> | DomainUserModuleOptions;
|
|
7
8
|
inject?: InjectionToken[];
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=module-options.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-options.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/module-options.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,QAAQ,MAAM,GAAG,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"module-options.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/module-options.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAEtF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,MAAM,CAAC,CAAC;AAE3F,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,QAAQ,EAAE;IAChE,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,uBAAuB,CAAC,GAAG,uBAAuB,CAAC;IACvF,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3B"}
|