@akanjs/nest 0.0.40 → 0.0.42

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/nest",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -14,5 +14,35 @@
14
14
  "engines": {
15
15
  "node": ">=22"
16
16
  },
17
- "dependencies": {}
17
+ "dependencies": {
18
+ "@nestjs/apollo": "^12.2.2",
19
+ "@nestjs/common": "^10.4.15",
20
+ "@nestjs/graphql": "^12.2.2",
21
+ "@nestjs/mongoose": "^10.1.0",
22
+ "@nestjs/passport": "^10.0.3",
23
+ "@nestjs/platform-socket.io": "^10.4.15",
24
+ "@nestjs/schedule": "^4.1.2",
25
+ "@socket.io/redis-adapter": "^8.3.0",
26
+ "@urql/core": "^5.1.0",
27
+ "apple-signin": "^1.0.9",
28
+ "dayjs": "^1.11.13",
29
+ "iap": "^1.1.1",
30
+ "immer": "^10.1.1",
31
+ "jsonwebtoken": "^9.0.2",
32
+ "mongoose": "^8.9.3",
33
+ "next": "^15.3.2",
34
+ "passport-apple": "^2.0.2",
35
+ "passport-facebook": "^3.0.0",
36
+ "passport-github": "^1.1.0",
37
+ "passport-google-oauth20": "^2.0.0",
38
+ "passport-kakao": "^1.0.1",
39
+ "passport-naver": "^1.0.6",
40
+ "pluralize": "^8.0.0",
41
+ "redis": "^4.7.0",
42
+ "reflect-metadata": "^0.2.2",
43
+ "rxjs": "^7.8.1",
44
+ "socket.io-client": "^4.8.1",
45
+ "tunnel-ssh": "^5.2.0",
46
+ "ua-parser-js": "^1.0.40"
47
+ }
18
48
  }
@@ -1,7 +1,51 @@
1
- import 'socket.io';
2
- import '../signalDecorators-Bh7Aniud.js';
3
- import '@nestjs/common';
4
- export { A as Admin, E as Every, G as GqlReqType, N as None, O as Owner, P as Public, b as ReqType, R as RequestContext, S as SuperAdmin, U as User, d as getArgs, g as getRequest, c as getResponse, e as getSocket } from '../authGuards-BrXXzJa_.js';
5
- import '../baseEnv-Qb_Lg-a-.js';
6
- import 'tunnel-ssh';
7
- import 'dayjs';
1
+ import type { Account as SerAccount } from "@akanjs/signal";
2
+ import { CanActivate, ExecutionContext } from "@nestjs/common";
3
+ import type { Socket } from "socket.io";
4
+ export interface RequestContext {
5
+ account: SerAccount;
6
+ ip?: string;
7
+ userAgent?: string;
8
+ geolocation?: string;
9
+ headers: Record<string, string | undefined>;
10
+ cookies?: Record<string, string>;
11
+ }
12
+ export interface ReqType {
13
+ method: string;
14
+ url: string;
15
+ params: object;
16
+ query: object;
17
+ body: object;
18
+ }
19
+ export interface GqlReqType {
20
+ parentType?: {
21
+ name?: string;
22
+ };
23
+ fieldName?: string;
24
+ }
25
+ export declare const getRequest: (context: ExecutionContext) => unknown;
26
+ export declare const getResponse: (context: ExecutionContext) => unknown;
27
+ export declare const getArgs: (context: ExecutionContext) => {
28
+ [key: string]: any;
29
+ };
30
+ export declare const getSocket: (context: ExecutionContext) => Socket<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any>;
31
+ export declare class Public implements CanActivate {
32
+ canActivate(context: ExecutionContext): boolean;
33
+ }
34
+ export declare class None implements CanActivate {
35
+ canActivate(): boolean;
36
+ }
37
+ export declare class Every implements CanActivate {
38
+ canActivate(context: ExecutionContext): boolean;
39
+ }
40
+ export declare class Owner implements CanActivate {
41
+ canActivate(context: ExecutionContext): boolean;
42
+ }
43
+ export declare class Admin implements CanActivate {
44
+ canActivate(context: ExecutionContext): boolean;
45
+ }
46
+ export declare class SuperAdmin implements CanActivate {
47
+ canActivate(context: ExecutionContext): boolean;
48
+ }
49
+ export declare class User implements CanActivate {
50
+ canActivate(context: ExecutionContext): boolean;
51
+ }
@@ -1,22 +1,18 @@
1
- import * as _nestjs_common from '@nestjs/common';
2
-
3
- declare const Account: (...dataOrPipes: ({
1
+ export declare const Account: (...dataOrPipes: ({
4
2
  nullable?: boolean;
5
- } | _nestjs_common.PipeTransform<any, any> | _nestjs_common.Type<_nestjs_common.PipeTransform<any, any>>)[]) => ParameterDecorator;
6
- declare const Self: (...dataOrPipes: ({
3
+ } | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
4
+ export declare const Self: (...dataOrPipes: ({
7
5
  nullable?: boolean;
8
- } | _nestjs_common.PipeTransform<any, any> | _nestjs_common.Type<_nestjs_common.PipeTransform<any, any>>)[]) => ParameterDecorator;
9
- declare const Me: (...dataOrPipes: ({
6
+ } | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
7
+ export declare const Me: (...dataOrPipes: ({
10
8
  nullable?: boolean;
11
- } | _nestjs_common.PipeTransform<any, any> | _nestjs_common.Type<_nestjs_common.PipeTransform<any, any>>)[]) => ParameterDecorator;
12
- declare const UserIp: (...dataOrPipes: ({
9
+ } | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
10
+ export declare const UserIp: (...dataOrPipes: ({
13
11
  nullable?: boolean;
14
- } | _nestjs_common.PipeTransform<any, any> | _nestjs_common.Type<_nestjs_common.PipeTransform<any, any>>)[]) => ParameterDecorator;
15
- declare const Access: (...dataOrPipes: ({
12
+ } | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
13
+ export declare const Access: (...dataOrPipes: ({
16
14
  nullable?: boolean;
17
- } | _nestjs_common.PipeTransform<any, any> | _nestjs_common.Type<_nestjs_common.PipeTransform<any, any>>)[]) => ParameterDecorator;
18
- declare const Req: (...dataOrPipes: unknown[]) => ParameterDecorator;
19
- declare const Res: (...dataOrPipes: unknown[]) => ParameterDecorator;
20
- declare const Ws: (...dataOrPipes: unknown[]) => ParameterDecorator;
21
-
22
- export { Access, Account, Me, Req, Res, Self, UserIp, Ws };
15
+ } | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>>)[]) => ParameterDecorator;
16
+ export declare const Req: (...dataOrPipes: unknown[]) => ParameterDecorator;
17
+ export declare const Res: (...dataOrPipes: unknown[]) => ParameterDecorator;
18
+ export declare const Ws: (...dataOrPipes: unknown[]) => ParameterDecorator;
@@ -1,9 +1,3 @@
1
- import { A as Account } from '../signalDecorators-Bh7Aniud.js';
2
- import '../baseEnv-Qb_Lg-a-.js';
3
- import 'tunnel-ssh';
4
- import 'dayjs';
5
-
6
- declare const verifyToken: (secret: string, authorization: string | undefined) => Account;
7
- declare const allow: (account: Account | null, roles: ("user" | "admin" | "superAdmin")[], userId?: string) => boolean;
8
-
9
- export { allow, verifyToken };
1
+ import { Account } from "@akanjs/signal";
2
+ export declare const verifyToken: (secret: string, authorization: string | undefined) => Account;
3
+ export declare const allow: (account: Account | null, roles: ("user" | "admin" | "superAdmin")[], userId?: string) => boolean;
@@ -1,7 +1,4 @@
1
- import { RedisClientType } from 'redis';
2
-
3
- declare class CacheClient {
1
+ import type { RedisClientType } from "redis";
2
+ export declare class CacheClient {
4
3
  redis: RedisClientType;
5
4
  }
6
-
7
- export { CacheClient };
@@ -1,9 +1,5 @@
1
- import * as mongoose from 'mongoose';
2
- import { Connection } from 'mongoose';
3
-
4
- declare class DatabaseClient {
1
+ import type { Connection } from "mongoose";
2
+ export declare class DatabaseClient {
5
3
  connection: Connection;
6
- getModel(modelName: string): mongoose.Model<any, {}, {}, {}, any, any>;
4
+ getModel(modelName: string): import("mongoose").Model<any, {}, {}, {}, any, any>;
7
5
  }
8
-
9
- export { DatabaseClient };
@@ -1,14 +1,13 @@
1
- import { CronExpression } from '@nestjs/schedule';
2
-
3
- declare const Try: () => (target: any, key: string, descriptor: PropertyDescriptor) => void;
1
+ import "reflect-metadata";
2
+ import { CronExpression } from "@nestjs/schedule";
3
+ export declare const Try: () => (target: any, key: string, descriptor: PropertyDescriptor) => void;
4
4
  interface TimerOptions {
5
5
  lock?: boolean;
6
6
  serverMode?: "federation" | "batch";
7
7
  enabled?: boolean;
8
8
  }
9
- declare const Cron: (cronTime: CronExpression | string, { lock, serverMode, enabled }?: TimerOptions) => (target: any, key: string, descriptor: PropertyDescriptor) => void;
10
- declare const Interval: (ms: number, { lock, serverMode, enabled }?: TimerOptions) => (target: any, key: string, descriptor: PropertyDescriptor) => PropertyDescriptor | undefined;
11
- declare const Transaction: () => (target: any, key: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
12
- declare const Cache: (timeout?: number, getCacheKey?: (...args: any) => string) => MethodDecorator;
13
-
14
- export { Cache, Cron, Interval, Transaction, Try };
9
+ export declare const Cron: (cronTime: CronExpression | string, { lock, serverMode, enabled }?: TimerOptions) => (target: any, key: string, descriptor: PropertyDescriptor) => void;
10
+ export declare const Interval: (ms: number, { lock, serverMode, enabled }?: TimerOptions) => (target: any, key: string, descriptor: PropertyDescriptor) => PropertyDescriptor | undefined;
11
+ export declare const Transaction: () => (target: any, key: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
12
+ export declare const Cache: (timeout?: number, getCacheKey?: (...args: any) => string) => MethodDecorator;
13
+ export {};
@@ -1,8 +1,5 @@
1
- import { ExceptionFilter, ArgumentsHost } from '@nestjs/common';
2
-
3
- declare class AllExceptionsFilter implements ExceptionFilter {
1
+ import { ArgumentsHost, ExceptionFilter } from "@nestjs/common";
2
+ export declare class AllExceptionsFilter implements ExceptionFilter {
4
3
  private readonly logger;
5
4
  catch(exception: Error, host: ArgumentsHost): void;
6
5
  }
7
-
8
- export { AllExceptionsFilter };
package/src/exporter.d.ts CHANGED
@@ -1,2 +1,22 @@
1
- import 'fs';
2
- export { E as ExportForm, F as FileSystem, a as exportToCsv, b as exportToJson, o as objPath, r as readJson } from '../exporter-BJ7Vr_DT.js';
1
+ import * as fs from "fs";
2
+ export declare const objPath: (o: unknown, p: string) => unknown;
3
+ export declare class FileSystem {
4
+ filename: string;
5
+ dirname: string;
6
+ writeStream?: fs.WriteStream;
7
+ constructor(dirname?: string, filename?: string);
8
+ init(): Promise<unknown>;
9
+ write(body: string): boolean;
10
+ }
11
+ export interface ExportForm<T> {
12
+ items: T[];
13
+ path: string;
14
+ fields?: string[];
15
+ options?: {
16
+ append: boolean;
17
+ };
18
+ delimiter?: string;
19
+ }
20
+ export declare const exportToCsv: <T>({ items, path, fields, delimiter, options }: ExportForm<T>) => Promise<void>;
21
+ export declare const exportToJson: <T>(items: T | T[], localPath: string) => void;
22
+ export declare const readJson: (localPath: string) => unknown;
@@ -1,8 +1,7 @@
1
- import { B as BaseEnv, a as BackendEnv } from '../baseEnv-Qb_Lg-a-.js';
2
- import { SshOptions } from 'tunnel-ssh';
3
-
4
- declare const generateJwtSecret: (appName: string, environment: "debug" | "develop" | "main" | "testing") => string;
5
- declare const generateAeskey: (appName: string, environment: "debug" | "develop" | "main" | "testing") => string;
1
+ import { BackendEnv, type BaseEnv } from "@akanjs/base";
2
+ import { SshOptions } from "tunnel-ssh";
3
+ export declare const generateJwtSecret: (appName: string, environment: "debug" | "develop" | "main" | "testing") => string;
4
+ export declare const generateAeskey: (appName: string, environment: "debug" | "develop" | "main" | "testing") => string;
6
5
  interface RedisEnv {
7
6
  appName: string;
8
7
  appCode: number;
@@ -10,7 +9,7 @@ interface RedisEnv {
10
9
  operationMode: BaseEnv["operationMode"];
11
10
  sshOptions?: SshOptions;
12
11
  }
13
- declare const generateRedisUri: ({ appName, appCode, environment, operationMode, sshOptions }: RedisEnv) => Promise<string>;
12
+ export declare const generateRedisUri: ({ appName, appCode, environment, operationMode, sshOptions }: RedisEnv) => Promise<string>;
14
13
  interface MongoEnv {
15
14
  appName: string;
16
15
  appCode: number;
@@ -20,19 +19,18 @@ interface MongoEnv {
20
19
  password?: string;
21
20
  sshOptions?: SshOptions;
22
21
  }
23
- declare const generateMongoUri: ({ appName, appCode, environment, operationMode, username, password, sshOptions, }: MongoEnv) => Promise<string>;
22
+ export declare const generateMongoUri: ({ appName, appCode, environment, operationMode, username, password, sshOptions, }: MongoEnv) => Promise<string>;
24
23
  interface MeiliEnv {
25
24
  appName: string;
26
25
  appCode: number;
27
26
  environment: BaseEnv["environment"];
28
27
  operationMode: BaseEnv["operationMode"];
29
28
  }
30
- declare const generateMeiliUri: ({ appName, appCode, environment, operationMode }: MeiliEnv) => string;
31
- declare const SALT_ROUNDS = 11;
32
- declare const generateHost: (env: BackendEnv) => string;
33
- declare const generateMeiliKey: ({ appName, environment }: {
29
+ export declare const generateMeiliUri: ({ appName, appCode, environment, operationMode }: MeiliEnv) => string;
30
+ export declare const SALT_ROUNDS = 11;
31
+ export declare const generateHost: (env: BackendEnv) => string;
32
+ export declare const generateMeiliKey: ({ appName, environment }: {
34
33
  appName: string;
35
34
  environment: string;
36
35
  }) => string;
37
-
38
- export { SALT_ROUNDS, generateAeskey, generateHost, generateJwtSecret, generateMeiliKey, generateMeiliUri, generateMongoUri, generateRedisUri };
36
+ export {};
package/src/index.d.ts CHANGED
@@ -1,31 +1,18 @@
1
- export { allow, verifyToken } from './authorization.js';
2
- export { A as Admin, E as Every, G as GqlReqType, N as None, O as Owner, P as Public, b as ReqType, R as RequestContext, S as SuperAdmin, U as User, d as getArgs, g as getRequest, c as getResponse, e as getSocket, a as guards } from '../authGuards-BrXXzJa_.js';
3
- export { Access, Account, Me, Req, Res, Self, UserIp, Ws } from './authentication.js';
4
- export { CacheInterceptor, LoggingInterceptor, TimeoutInterceptor } from './interceptors.js';
5
- export { RedisIoAdapter } from './redis-io.adapter.js';
6
- export { ArrayifyPipe, BooleanPipe, DayjsPipe, FloatPipe, IntPipe, JSONPipe, MulterToUploadPipe, getBodyPipes, getQueryPipes } from './pipes.js';
7
- export { E as ExportForm, e as Exporter, F as FileSystem, a as exportToCsv, b as exportToJson, o as objPath, r as readJson } from '../exporter-BJ7Vr_DT.js';
8
- export { verifyPayment } from './verifyPayment.js';
9
- export { AppleCredential, FacebookResponse, GithubResponse, GoogleResponse, KakaoResponse, NaverResponse, SSOCredential, SSOOptions, SsoCookie, getSsoProviders, verifyAppleUser } from './sso.js';
10
- export { AllExceptionsFilter } from './exceptions.js';
11
- export { SALT_ROUNDS, generateAeskey, generateHost, generateJwtSecret, generateMeiliKey, generateMeiliUri, generateMongoUri, generateRedisUri } from './generateSecrets.js';
12
- export { initMongoDB } from './mongoose.js';
13
- export { SearchClient } from './searchClient.js';
14
- export { CacheClient } from './cacheClient.js';
15
- export { DatabaseClient } from './databaseClient.js';
16
- export { Cache, Cron, Interval, Transaction, Try } from './decorators.js';
17
- import '../signalDecorators-Bh7Aniud.js';
18
- import '../baseEnv-Qb_Lg-a-.js';
19
- import 'tunnel-ssh';
20
- import 'dayjs';
21
- import 'socket.io';
22
- import '@nestjs/common';
23
- import 'redis';
24
- import 'rxjs';
25
- import '@nestjs/platform-socket.io';
26
- import 'stream';
27
- import 'fs';
28
- import 'jsonwebtoken';
29
- import 'meilisearch';
30
- import 'mongoose';
31
- import '@nestjs/schedule';
1
+ export * from "./authorization";
2
+ export * from "./authGuards";
3
+ export * as guards from "./authGuards";
4
+ export * from "./authentication";
5
+ export * from "./interceptors";
6
+ export * from "./redis-io.adapter";
7
+ export * from "./pipes";
8
+ export * as Exporter from "./exporter";
9
+ export * from "./exporter";
10
+ export * from "./verifyPayment";
11
+ export * from "./sso";
12
+ export * from "./exceptions";
13
+ export * from "./generateSecrets";
14
+ export * from "./mongoose";
15
+ export * from "./searchClient";
16
+ export * from "./cacheClient";
17
+ export * from "./databaseClient";
18
+ export * from "./decorators";
@@ -1,47 +1,17 @@
1
- import { NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common';
2
- import { RedisClientType } from 'redis';
3
- import { Observable } from 'rxjs';
4
-
5
- declare const logLevels: readonly ["trace", "verbose", "debug", "log", "info", "warn", "error"];
6
- type LogLevel = (typeof logLevels)[number];
7
- declare class Logger {
8
- #private;
9
- static level: LogLevel;
10
- static setLevel(level: LogLevel): void;
11
- name?: string;
12
- constructor(name?: string);
13
- trace(msg: string, context?: string): void;
14
- verbose(msg: string, context?: string): void;
15
- debug(msg: string, context?: string): void;
16
- log(msg: string, context?: string): void;
17
- info(msg: string, context?: string): void;
18
- warn(msg: string, context?: string): void;
19
- error(msg: string, context?: string): void;
20
- raw(msg: string, method?: "console" | "process"): void;
21
- rawLog(msg: string, method?: "console" | "process"): void;
22
- static trace(msg: string, context?: string): void;
23
- static verbose(msg: string, context?: string): void;
24
- static debug(msg: string, context?: string): void;
25
- static log(msg: string, context?: string): void;
26
- static info(msg: string, context?: string): void;
27
- static warn(msg: string, context?: string): void;
28
- static error(msg: string, context?: string): void;
29
- static rawLog(msg: string, method?: "console" | "process"): void;
30
- static raw(msg: string, method?: "console" | "process"): void;
31
- }
32
-
33
- declare class CacheInterceptor implements NestInterceptor {
1
+ import { Logger } from "@akanjs/common";
2
+ import { CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common";
3
+ import type { RedisClientType } from "redis";
4
+ import { Observable } from "rxjs";
5
+ export declare class CacheInterceptor implements NestInterceptor {
34
6
  #private;
35
7
  private readonly redis;
36
8
  constructor(redis: RedisClientType<any, any, any>);
37
9
  intercept<T>(context: ExecutionContext, next: CallHandler): Promise<Observable<T>>;
38
10
  }
39
- declare class TimeoutInterceptor implements NestInterceptor {
11
+ export declare class TimeoutInterceptor implements NestInterceptor {
40
12
  intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
41
13
  }
42
- declare class LoggingInterceptor implements NestInterceptor {
14
+ export declare class LoggingInterceptor implements NestInterceptor {
43
15
  logger: Logger;
44
16
  intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
45
17
  }
46
-
47
- export { CacheInterceptor, LoggingInterceptor, TimeoutInterceptor };
package/src/mongoose.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- declare const initMongoDB: ({ logging, threshold, sendReport, }: {
1
+ export declare const initMongoDB: ({ logging, threshold, sendReport, }: {
2
2
  logging: boolean;
3
3
  threshold?: number;
4
4
  sendReport?: boolean;
5
5
  }) => void;
6
-
7
- export { initMongoDB };
package/src/pipes.d.ts CHANGED
@@ -1,26 +1,23 @@
1
- import * as dayjsLib from 'dayjs';
2
- import { Readable } from 'stream';
3
- import { T as Type, a as ArgMeta } from '../signalDecorators-Bh7Aniud.js';
4
- import { PipeTransform, ArgumentMetadata } from '@nestjs/common';
5
- import '../baseEnv-Qb_Lg-a-.js';
6
- import 'tunnel-ssh';
7
-
8
- declare class ArrayifyPipe implements PipeTransform {
1
+ import { Type } from "@akanjs/base";
2
+ import { ArgMeta } from "@akanjs/signal";
3
+ import { ArgumentMetadata, PipeTransform } from "@nestjs/common";
4
+ import { Readable } from "stream";
5
+ export declare class ArrayifyPipe implements PipeTransform {
9
6
  transform(value: string | string[], metadata: ArgumentMetadata): string[];
10
7
  }
11
- declare class IntPipe implements PipeTransform {
8
+ export declare class IntPipe implements PipeTransform {
12
9
  transform(value: string, metadata: ArgumentMetadata): number[];
13
10
  }
14
- declare class FloatPipe implements PipeTransform {
11
+ export declare class FloatPipe implements PipeTransform {
15
12
  transform(value: string, metadata: ArgumentMetadata): number[];
16
13
  }
17
- declare class BooleanPipe implements PipeTransform {
14
+ export declare class BooleanPipe implements PipeTransform {
18
15
  transform(value: string, metadata: ArgumentMetadata): boolean[];
19
16
  }
20
- declare class DayjsPipe implements PipeTransform {
21
- transform(value: string, metadata: ArgumentMetadata): dayjsLib.Dayjs[];
17
+ export declare class DayjsPipe implements PipeTransform {
18
+ transform(value: string, metadata: ArgumentMetadata): import("dayjs").Dayjs[];
22
19
  }
23
- declare class JSONPipe implements PipeTransform {
20
+ export declare class JSONPipe implements PipeTransform {
24
21
  transform(value: string | object, metadata: ArgumentMetadata): object;
25
22
  }
26
23
  interface FileStream {
@@ -29,7 +26,7 @@ interface FileStream {
29
26
  encoding: string;
30
27
  buffer: Buffer;
31
28
  }
32
- declare class MulterToUploadPipe implements PipeTransform {
29
+ export declare class MulterToUploadPipe implements PipeTransform {
33
30
  transform(value: FileStream, metadata: ArgumentMetadata): {
34
31
  filename: string;
35
32
  mimetype: string;
@@ -42,11 +39,10 @@ declare class MulterToUploadPipe implements PipeTransform {
42
39
  createReadStream: () => Readable;
43
40
  }[];
44
41
  }
45
- declare const getQueryPipes: (modelRef: Type, arrDepth: number) => Type[];
46
- declare const getBodyPipes: (argMeta: ArgMeta) => {
42
+ export declare const getQueryPipes: (modelRef: Type, arrDepth: number) => Type[];
43
+ export declare const getBodyPipes: (argMeta: ArgMeta) => {
47
44
  new (): {
48
45
  transform(value: any, metadata: ArgumentMetadata): object[] | null;
49
46
  };
50
47
  }[];
51
-
52
- export { ArrayifyPipe, BooleanPipe, DayjsPipe, FloatPipe, IntPipe, JSONPipe, MulterToUploadPipe, getBodyPipes, getQueryPipes };
48
+ export {};
@@ -1,11 +1,10 @@
1
- import { INestApplicationContext } from '@nestjs/common';
2
- import { IoAdapter } from '@nestjs/platform-socket.io';
3
- import { ServerOptions } from 'socket.io';
4
-
1
+ import { INestApplicationContext } from "@nestjs/common";
2
+ import { IoAdapter } from "@nestjs/platform-socket.io";
3
+ import { ServerOptions } from "socket.io";
5
4
  interface RedisIoAdapterOption extends Partial<ServerOptions> {
6
5
  jwtSecret: string;
7
6
  }
8
- declare class RedisIoAdapter extends IoAdapter {
7
+ export declare class RedisIoAdapter extends IoAdapter {
9
8
  private adapterConstructor;
10
9
  private readonly logger;
11
10
  private server;
@@ -17,5 +16,4 @@ declare class RedisIoAdapter extends IoAdapter {
17
16
  createIOServer(port: number, options?: ServerOptions): any;
18
17
  destroy(): Promise<void>;
19
18
  }
20
-
21
- export { RedisIoAdapter };
19
+ export {};
@@ -1,12 +1,7 @@
1
- import * as meilisearch from 'meilisearch';
2
- import meilisearch__default from 'meilisearch';
3
-
4
- interface TextDoc {
5
- [key: string]: string | TextDoc;
6
- }
7
-
8
- declare class SearchClient {
9
- meili: meilisearch__default;
1
+ import { type TextDoc } from "@akanjs/constant";
2
+ import { default as MeiliSearch } from "meilisearch";
3
+ export declare class SearchClient {
4
+ meili: MeiliSearch;
10
5
  getIndexNames(): Promise<string[]>;
11
6
  getSearchResult(indexName: string, option: {
12
7
  skip?: number;
@@ -21,15 +16,13 @@ declare class SearchClient {
21
16
  total: number;
22
17
  query?: undefined;
23
18
  } | {
24
- docs: meilisearch.Hits<Record<string, any>>;
19
+ docs: import("meilisearch").Hits<Record<string, any>>;
25
20
  skip: number;
26
21
  limit: number;
27
22
  sort: string;
28
23
  total: number;
29
24
  query: string;
30
25
  }>;
31
- upsertDocuments(indexName: string, documents: TextDoc[]): Promise<meilisearch.EnqueuedTask>;
32
- dropIndex(indexName: string): Promise<meilisearch.EnqueuedTask>;
26
+ upsertDocuments(indexName: string, documents: TextDoc[]): Promise<import("meilisearch").EnqueuedTask>;
27
+ dropIndex(indexName: string): Promise<import("meilisearch").EnqueuedTask>;
33
28
  }
34
-
35
- export { SearchClient };
package/src/sso.d.ts CHANGED
@@ -1,31 +1,28 @@
1
- import { S as SSOType, T as Type } from '../signalDecorators-Bh7Aniud.js';
2
- import * as jwt from 'jsonwebtoken';
3
- import '../baseEnv-Qb_Lg-a-.js';
4
- import 'tunnel-ssh';
5
- import 'dayjs';
6
-
7
- interface SSOCredential {
1
+ import type { Type } from "@akanjs/base";
2
+ import type { SSOType } from "@akanjs/signal";
3
+ import * as jwt from "jsonwebtoken";
4
+ export interface SSOCredential {
8
5
  clientID: string;
9
6
  clientSecret?: string;
10
7
  }
11
- type AppleCredential = SSOCredential & {
8
+ export type AppleCredential = SSOCredential & {
12
9
  teamID: string;
13
10
  keyID: string;
14
11
  keyFilePath: string;
15
12
  };
16
- type SSOOptions = {
13
+ export type SSOOptions = {
17
14
  [key in SSOType]?: SSOCredential | AppleCredential;
18
15
  };
19
- declare const getSsoProviders: (host: string, ssoOptions: SSOOptions) => Type[];
20
- interface KakaoResponse {
16
+ export declare const getSsoProviders: (host: string, ssoOptions: SSOOptions) => Type[];
17
+ export interface KakaoResponse {
21
18
  name?: string;
22
19
  email: string;
23
20
  }
24
- interface NaverResponse {
21
+ export interface NaverResponse {
25
22
  name?: string;
26
23
  email: string;
27
24
  }
28
- interface GithubResponse {
25
+ export interface GithubResponse {
29
26
  id: string;
30
27
  displayName: string;
31
28
  username: string;
@@ -34,7 +31,7 @@ interface GithubResponse {
34
31
  value: string;
35
32
  }[];
36
33
  }
37
- interface GoogleResponse {
34
+ export interface GoogleResponse {
38
35
  id: string;
39
36
  displayName: string;
40
37
  name: {
@@ -49,7 +46,7 @@ interface GoogleResponse {
49
46
  value: string;
50
47
  }[];
51
48
  }
52
- interface FacebookResponse {
49
+ export interface FacebookResponse {
53
50
  id: string;
54
51
  name: {
55
52
  familyName: string;
@@ -60,7 +57,7 @@ interface FacebookResponse {
60
57
  verified: boolean;
61
58
  }[];
62
59
  }
63
- interface SsoCookie {
60
+ export interface SsoCookie {
64
61
  prepareUserId?: string;
65
62
  ssoFor: "user" | "admin";
66
63
  signinRedirect: string;
@@ -68,7 +65,7 @@ interface SsoCookie {
68
65
  adminRedirect?: string;
69
66
  errorRedirect?: string;
70
67
  }
71
- declare const verifyAppleUser: (payload: {
68
+ export declare const verifyAppleUser: (payload: {
72
69
  code: string;
73
70
  }, origin: string, sso: AppleCredential) => Promise<{
74
71
  tokens: {
@@ -76,5 +73,3 @@ declare const verifyAppleUser: (payload: {
76
73
  };
77
74
  data: string | jwt.JwtPayload | null;
78
75
  }>;
79
-
80
- export { type AppleCredential, type FacebookResponse, type GithubResponse, type GoogleResponse, type KakaoResponse, type NaverResponse, type SSOCredential, type SSOOptions, type SsoCookie, getSsoProviders, verifyAppleUser };
@@ -7,6 +7,5 @@ interface VerifyPaymentType {
7
7
  subscription?: boolean;
8
8
  keyObject?: any;
9
9
  }
10
- declare const verifyPayment: (payment: VerifyPaymentType) => Promise<unknown>;
11
-
12
- export { verifyPayment };
10
+ export declare const verifyPayment: (payment: VerifyPaymentType) => Promise<unknown>;
11
+ export {};