@ambushsoftworks/nestjs-auth-graphql 0.1.10 → 0.2.0
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/README.md +101 -11
- package/dist/auth.module.d.ts.map +1 -1
- package/dist/auth.module.js +2 -2
- package/dist/auth.module.js.map +1 -1
- package/dist/dto/account-lock-status.dto.d.ts +1 -1
- package/dist/dto/account-lock-status.dto.d.ts.map +1 -1
- package/dist/dto/account-lock-status.dto.js +0 -29
- package/dist/dto/account-lock-status.dto.js.map +1 -1
- package/dist/dto/auth-response.dto.d.ts +2 -3
- package/dist/dto/auth-response.dto.d.ts.map +1 -1
- package/dist/dto/auth-response.dto.js +0 -30
- package/dist/dto/auth-response.dto.js.map +1 -1
- package/dist/dto/login.input.d.ts +5 -1
- package/dist/dto/login.input.d.ts.map +1 -1
- package/dist/dto/login.input.js +2 -26
- package/dist/dto/login.input.js.map +1 -1
- package/dist/dto/logout-response.dto.d.ts +2 -2
- package/dist/dto/logout-response.dto.d.ts.map +1 -1
- package/dist/dto/logout-response.dto.js +0 -39
- package/dist/dto/logout-response.dto.js.map +1 -1
- package/dist/dto/logout.input.d.ts +4 -1
- package/dist/dto/logout.input.d.ts.map +1 -1
- package/dist/dto/logout.input.js +1 -4
- package/dist/dto/logout.input.js.map +1 -1
- package/dist/dto/phone-verification-response.dto.d.ts +5 -5
- package/dist/dto/phone-verification-response.dto.d.ts.map +1 -1
- package/dist/dto/phone-verification-response.dto.js +0 -95
- package/dist/dto/phone-verification-response.dto.js.map +1 -1
- package/dist/dto/phone-verification-status.dto.d.ts +1 -1
- package/dist/dto/phone-verification-status.dto.d.ts.map +1 -1
- package/dist/dto/phone-verification-status.dto.js +0 -41
- package/dist/dto/phone-verification-status.dto.js.map +1 -1
- package/dist/dto/refresh-token.input.d.ts +4 -1
- package/dist/dto/refresh-token.input.d.ts.map +1 -1
- package/dist/dto/refresh-token.input.js +2 -22
- package/dist/dto/refresh-token.input.js.map +1 -1
- package/dist/dto/send-phone-verification.input.d.ts +5 -1
- package/dist/dto/send-phone-verification.input.d.ts.map +1 -1
- package/dist/dto/send-phone-verification.input.js +2 -10
- package/dist/dto/send-phone-verification.input.js.map +1 -1
- package/dist/dto/signup.input.d.ts +5 -1
- package/dist/dto/signup.input.d.ts.map +1 -1
- package/dist/dto/signup.input.js +2 -31
- package/dist/dto/signup.input.js.map +1 -1
- package/dist/dto/verify-email-response.dto.d.ts +1 -1
- package/dist/dto/verify-email-response.dto.d.ts.map +1 -1
- package/dist/dto/verify-email-response.dto.js +0 -25
- package/dist/dto/verify-email-response.dto.js.map +1 -1
- package/dist/dto/verify-email.input.d.ts +5 -1
- package/dist/dto/verify-email.input.d.ts.map +1 -1
- package/dist/dto/verify-email.input.js +1 -6
- package/dist/dto/verify-email.input.js.map +1 -1
- package/dist/dto/verify-phone.input.d.ts +5 -1
- package/dist/dto/verify-phone.input.d.ts.map +1 -1
- package/dist/dto/verify-phone.input.js +1 -9
- package/dist/dto/verify-phone.input.js.map +1 -1
- package/dist/entities/auth-user.entity.d.ts +5 -5
- package/dist/entities/auth-user.entity.d.ts.map +1 -1
- package/dist/entities/auth-user.entity.js +3 -78
- package/dist/entities/auth-user.entity.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces/auth-logger.interface.d.ts +2 -0
- package/dist/interfaces/auth-logger.interface.d.ts.map +1 -1
- package/dist/interfaces/auth-logger.interface.js +2 -0
- package/dist/interfaces/auth-logger.interface.js.map +1 -1
- package/dist/interfaces/user-repository.interface.d.ts +2 -1
- package/dist/interfaces/user-repository.interface.d.ts.map +1 -1
- package/dist/resolvers/auth.resolver.d.ts +8 -1
- package/dist/resolvers/auth.resolver.d.ts.map +1 -1
- package/dist/resolvers/auth.resolver.js +24 -7
- package/dist/resolvers/auth.resolver.js.map +1 -1
- package/dist/resolvers/base-auth.resolver.d.ts +41 -0
- package/dist/resolvers/base-auth.resolver.d.ts.map +1 -0
- package/dist/resolvers/base-auth.resolver.js +157 -0
- package/dist/resolvers/base-auth.resolver.js.map +1 -0
- package/dist/services/auth.service.d.ts.map +1 -1
- package/dist/services/auth.service.js +2 -1
- package/dist/services/auth.service.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @ambushsoftworks/nestjs-auth-graphql
|
|
2
2
|
|
|
3
3
|
Production-grade authentication package for NestJS with GraphQL, extracted from the Lift fitness app.
|
|
4
4
|
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🚨 BREAKING CHANGES in v0.2.0
|
|
8
|
+
|
|
9
|
+
**Version 0.2.0 introduces a complete architectural refactor.** If upgrading from v0.1.x, you **MUST** follow the migration guide.
|
|
10
|
+
|
|
11
|
+
**Key Changes**:
|
|
12
|
+
- Package no longer exports concrete `AuthResolver` - you must create your own extending `BaseAuthResolver<T>`
|
|
13
|
+
- All entities/DTOs are now interfaces (IAuthUser, IAuthSignupInput, etc.) - you define GraphQL types
|
|
14
|
+
- Package owns canonical enums (AuthProvider, UserStatus) - consumers use these in code
|
|
15
|
+
|
|
16
|
+
**Migration Time**: 2-4 hours | **Read**: [MIGRATION.md](./MIGRATION.md) | **Quick Start**: [QUICK-START.md](./QUICK-START.md)
|
|
17
|
+
|
|
18
|
+
**Why?** v0.2.0 eliminates GraphQL schema conflicts, provides full control over types, and works with any database/ORM across diverse projects.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
5
22
|
## Features
|
|
6
23
|
|
|
7
24
|
- **JWT Authentication**: Secure token-based authentication with automatic refresh
|
|
@@ -143,26 +160,99 @@ export class AppModule {}
|
|
|
143
160
|
|
|
144
161
|
**Note**: You must register your repository classes in the `providers` array of the module where you call `forRootAsync()`. NestJS will inject instances of these repositories into the factory function.
|
|
145
162
|
|
|
146
|
-
### 3.
|
|
163
|
+
### 3. Create Your Auth Resolver
|
|
147
164
|
|
|
148
|
-
|
|
165
|
+
**CRITICAL**: Due to TypeScript decorator metadata limitations, you MUST create your own resolver extending `BaseAuthResolver`. The package provides business logic, but YOU define GraphQL types.
|
|
149
166
|
|
|
150
|
-
|
|
151
|
-
import { Resolver, Query, Mutation, Args } from '@nestjs/graphql';
|
|
152
|
-
import { AuthService, CurrentUser, UseGuards, JwtAuthGuard } from '@yourorg/nestjs-auth-graphql';
|
|
167
|
+
Create `src/auth/auth.resolver.ts`:
|
|
153
168
|
|
|
169
|
+
```typescript
|
|
170
|
+
import { Resolver, Mutation, Args, Context, Query } from '@nestjs/graphql';
|
|
171
|
+
import { UseGuards } from '@nestjs/common';
|
|
172
|
+
import { Throttle } from '@nestjs/throttler';
|
|
173
|
+
import {
|
|
174
|
+
BaseAuthResolver,
|
|
175
|
+
JwtAuthGuard,
|
|
176
|
+
CurrentUser
|
|
177
|
+
} from '@yourorg/nestjs-auth-graphql';
|
|
178
|
+
import { User } from '../users/entities/user.entity'; // Your User @ObjectType
|
|
179
|
+
import { AuthResponse } from './dto/auth-response.dto'; // Your AuthResponse @ObjectType
|
|
180
|
+
import { LoginInput } from './dto/login.input'; // Your @InputType classes
|
|
181
|
+
import { SignupInput } from './dto/signup.input';
|
|
182
|
+
import { RefreshTokenInput } from './dto/refresh-token.input';
|
|
183
|
+
import { LogoutInput } from './dto/logout.input';
|
|
184
|
+
import { LogoutResponse, LogoutAllResponse } from './dto/logout-response.dto';
|
|
185
|
+
// ... import other DTOs for email/SMS verification, etc.
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Your app's auth resolver - extends BaseAuthResolver for business logic
|
|
189
|
+
*/
|
|
154
190
|
@Resolver()
|
|
155
|
-
export class
|
|
156
|
-
|
|
191
|
+
export class AuthResolver extends BaseAuthResolver<User> {
|
|
192
|
+
// Core auth mutations (required - override to provide GraphQL types)
|
|
193
|
+
|
|
194
|
+
@Mutation(() => AuthResponse)
|
|
195
|
+
@Throttle({ default: { limit: 5, ttl: 60000 } })
|
|
196
|
+
async signup(@Args('input') input: SignupInput): Promise<AuthResponse> {
|
|
197
|
+
return this.performSignup(input) as Promise<AuthResponse>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@Mutation(() => AuthResponse)
|
|
201
|
+
@Throttle({ default: { limit: 5, ttl: 60000 } })
|
|
202
|
+
async login(
|
|
203
|
+
@Args('input') input: LoginInput,
|
|
204
|
+
@Context() context: any,
|
|
205
|
+
): Promise<AuthResponse> {
|
|
206
|
+
return this.performLogin(input, context) as Promise<AuthResponse>;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@Mutation(() => AuthResponse)
|
|
210
|
+
@Throttle({ default: { limit: 10, ttl: 60000 } })
|
|
211
|
+
async refreshToken(@Args('input') input: RefreshTokenInput): Promise<AuthResponse> {
|
|
212
|
+
return this.performRefreshToken(input) as Promise<AuthResponse>;
|
|
213
|
+
}
|
|
157
214
|
|
|
158
|
-
@
|
|
215
|
+
@Mutation(() => LogoutResponse)
|
|
159
216
|
@UseGuards(JwtAuthGuard)
|
|
160
|
-
|
|
161
|
-
|
|
217
|
+
@Throttle({ default: { limit: 10, ttl: 60000 } })
|
|
218
|
+
async logout(
|
|
219
|
+
@Args('input') input: LogoutInput,
|
|
220
|
+
@CurrentUser() user: User,
|
|
221
|
+
): Promise<LogoutResponse> {
|
|
222
|
+
return this.performLogout(input, user) as Promise<LogoutResponse>;
|
|
162
223
|
}
|
|
224
|
+
|
|
225
|
+
@Mutation(() => LogoutAllResponse)
|
|
226
|
+
@UseGuards(JwtAuthGuard)
|
|
227
|
+
@Throttle({ default: { limit: 5, ttl: 60000 } })
|
|
228
|
+
async logoutAll(@CurrentUser() user: User): Promise<LogoutAllResponse> {
|
|
229
|
+
return this.performLogoutAll(user) as Promise<LogoutAllResponse>;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// Add overrides for other mutations: verifyEmail, sendPhoneVerification, etc.
|
|
233
|
+
// See full example in Lift backend: src/auth/lift-auth.resolver.ts
|
|
163
234
|
}
|
|
164
235
|
```
|
|
165
236
|
|
|
237
|
+
**Why this pattern?**
|
|
238
|
+
- TypeScript decorator metadata is NOT preserved when importing classes from compiled npm packages
|
|
239
|
+
- This causes "Cannot determine GraphQL output type" errors at runtime
|
|
240
|
+
- Solution: Package provides `protected perform*()` methods, you add GraphQL decorators
|
|
241
|
+
|
|
242
|
+
**Register your resolver:**
|
|
243
|
+
|
|
244
|
+
```typescript
|
|
245
|
+
@Module({
|
|
246
|
+
imports: [AuthModule.forRootAsync(...)],
|
|
247
|
+
providers: [
|
|
248
|
+
AuthResolver, // Add your resolver here
|
|
249
|
+
PrismaUserRepository,
|
|
250
|
+
PrismaRefreshTokenRepository,
|
|
251
|
+
],
|
|
252
|
+
})
|
|
253
|
+
export class AppModule {}
|
|
254
|
+
```
|
|
255
|
+
|
|
166
256
|
## Configuration Options
|
|
167
257
|
|
|
168
258
|
### Required Options
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.module.d.ts","sourceRoot":"","sources":["../src/auth.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.module.d.ts","sourceRoot":"","sources":["../src/auth.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,gBAAgB,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AA0B3D,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,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AE,OAAO,CAAC;QACxB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;IAMF,SAAS,EAAE,MAAM,CAAC;IAMlB,YAAY,CAAC,EAAE,MAAM,CAAC;IAMtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAK/B,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE;YACP,QAAQ,EAAE,MAAM,CAAC;YACjB,YAAY,EAAE,MAAM,CAAC;YACrB,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,QAAQ,CAAC,EAAE;YACT,QAAQ,EAAE,MAAM,CAAC;YACjB,YAAY,EAAE,MAAM,CAAC;YACrB,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;KACH,CAAC;IAOF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IAC7E,UAAU,EAAE,CACV,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,OAAO,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC;IACpD,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;CAChB;AAMD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,GACZ,MAAM,aAAa,CAAC;AAyCrB,qBACa,UAAU;IA+BrB,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,sBAAsB,GAAG,aAAa;CAqNpE"}
|
package/dist/auth.module.js
CHANGED
|
@@ -25,7 +25,6 @@ const google_strategy_1 = require("./strategies/google.strategy");
|
|
|
25
25
|
const facebook_strategy_1 = require("./strategies/facebook.strategy");
|
|
26
26
|
const noop_google_strategy_1 = require("./strategies/noop-google.strategy");
|
|
27
27
|
const noop_facebook_strategy_1 = require("./strategies/noop-facebook.strategy");
|
|
28
|
-
const auth_resolver_1 = require("./resolvers/auth.resolver");
|
|
29
28
|
const oauth_controller_1 = require("./resolvers/oauth.controller");
|
|
30
29
|
const noop_verification_repository_1 = require("./repositories/noop-verification.repository");
|
|
31
30
|
const noop_brute_force_repository_1 = require("./repositories/noop-brute-force.repository");
|
|
@@ -189,7 +188,6 @@ let AuthModule = AuthModule_1 = class AuthModule {
|
|
|
189
188
|
return new facebook_strategy_1.FacebookStrategy(options);
|
|
190
189
|
},
|
|
191
190
|
},
|
|
192
|
-
auth_resolver_1.AuthResolver,
|
|
193
191
|
],
|
|
194
192
|
exports: [
|
|
195
193
|
constants_1.AUTH_MODULE_OPTIONS,
|
|
@@ -203,6 +201,8 @@ let AuthModule = AuthModule_1 = class AuthModule {
|
|
|
203
201
|
biometric_verification_service_1.BiometricVerificationService,
|
|
204
202
|
oauth_linking_token_service_1.OAuthLinkingTokenService,
|
|
205
203
|
constants_1.AUTH_LOGGER,
|
|
204
|
+
constants_1.USER_REPOSITORY,
|
|
205
|
+
constants_1.REFRESH_TOKEN_REPOSITORY,
|
|
206
206
|
jwt_1.JwtModule,
|
|
207
207
|
passport_1.PassportModule,
|
|
208
208
|
],
|
package/dist/auth.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../src/auth.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAyE;AACzE,qCAAwC;AACxC,+CAAkD;AAIlD,0DAAsD;AACtD,4EAAuE;AACvE,0EAAsE;AACtE,sEAAkE;AAClE,wEAAmE;AACnE,8FAAwF;AAExF,8EAAyE;AAEzE,8FAAyF;AACzF,wFAAkF;AAGlF,4DAAwD;AACxD,kEAA8D;AAC9D,sEAAkE;AAClE,4EAAuE;AACvE,gFAA2E;AAG3E,
|
|
1
|
+
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../src/auth.module.ts"],"names":[],"mappings":";;;;;;;;;;AA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AmB;gBACnB,0BAAW;gBACX,2CAAmB;gBACnB,0CAAmB;gBACnB,sCAAiB;gBACjB,uCAAiB;gBACjB,4DAA2B;gBAE3B,6CAAoB;gBAEpB,6DAA4B;gBAC5B,sDAAwB;gBACxB,uBAAW;gBACX,2BAAe;gBACf,oCAAwB;gBACxB,eAAS;gBACT,yBAAc;aACf;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AApPY,gCAAU;qBAAV,UAAU;IADtB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAoPtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-lock-status.dto.d.ts","sourceRoot":"","sources":["../../src/dto/account-lock-status.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-lock-status.dto.d.ts","sourceRoot":"","sources":["../../src/dto/account-lock-status.dto.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,sBAAsB;IAErC,MAAM,EAAE,OAAO,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,32 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AuthAccountLockStatus = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
let AuthAccountLockStatus = class AuthAccountLockStatus {
|
|
15
|
-
};
|
|
16
|
-
exports.AuthAccountLockStatus = AuthAccountLockStatus;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, graphql_1.Field)(() => Boolean, {
|
|
19
|
-
description: 'Whether the account is currently locked',
|
|
20
|
-
}),
|
|
21
|
-
__metadata("design:type", Boolean)
|
|
22
|
-
], AuthAccountLockStatus.prototype, "locked", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, graphql_1.Field)(() => graphql_1.Int, {
|
|
25
|
-
description: 'Remaining lockout time in seconds (0 if not locked)',
|
|
26
|
-
}),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], AuthAccountLockStatus.prototype, "remainingTime", void 0);
|
|
29
|
-
exports.AuthAccountLockStatus = AuthAccountLockStatus = __decorate([
|
|
30
|
-
(0, graphql_1.ObjectType)('AuthAccountLockStatus')
|
|
31
|
-
], AuthAccountLockStatus);
|
|
32
3
|
//# sourceMappingURL=account-lock-status.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-lock-status.dto.js","sourceRoot":"","sources":["../../src/dto/account-lock-status.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-lock-status.dto.js","sourceRoot":"","sources":["../../src/dto/account-lock-status.dto.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class AuthResponse {
|
|
1
|
+
export interface AuthResponseBase<T> {
|
|
3
2
|
accessToken: string;
|
|
4
3
|
refreshToken: string;
|
|
5
|
-
user:
|
|
4
|
+
user: T;
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=auth-response.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-response.dto.d.ts","sourceRoot":"","sources":["../../src/dto/auth-response.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth-response.dto.d.ts","sourceRoot":"","sources":["../../src/dto/auth-response.dto.ts"],"names":[],"mappings":"AA2BA,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC;CACT"}
|
|
@@ -1,33 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AuthResponse = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const auth_user_entity_1 = require("../entities/auth-user.entity");
|
|
15
|
-
let AuthResponse = class AuthResponse {
|
|
16
|
-
};
|
|
17
|
-
exports.AuthResponse = AuthResponse;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, graphql_1.Field)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], AuthResponse.prototype, "accessToken", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, graphql_1.Field)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], AuthResponse.prototype, "refreshToken", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, graphql_1.Field)(() => auth_user_entity_1.AuthUser),
|
|
28
|
-
__metadata("design:type", auth_user_entity_1.AuthUser)
|
|
29
|
-
], AuthResponse.prototype, "user", void 0);
|
|
30
|
-
exports.AuthResponse = AuthResponse = __decorate([
|
|
31
|
-
(0, graphql_1.ObjectType)()
|
|
32
|
-
], AuthResponse);
|
|
33
3
|
//# sourceMappingURL=auth-response.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-response.dto.js","sourceRoot":"","sources":["../../src/dto/auth-response.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth-response.dto.js","sourceRoot":"","sources":["../../src/dto/auth-response.dto.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.input.d.ts","sourceRoot":"","sources":["../../src/dto/login.input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.input.d.ts","sourceRoot":"","sources":["../../src/dto/login.input.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAMD,qBAAa,cAAe,YAAW,eAAe;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/dto/login.input.js
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.AuthLoginInput = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
let AuthLoginInput = class AuthLoginInput {
|
|
16
|
-
};
|
|
4
|
+
class AuthLoginInput {
|
|
5
|
+
}
|
|
17
6
|
exports.AuthLoginInput = AuthLoginInput;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, graphql_1.Field)(),
|
|
20
|
-
(0, class_validator_1.IsEmail)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], AuthLoginInput.prototype, "email", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, graphql_1.Field)(),
|
|
25
|
-
(0, class_validator_1.IsString)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], AuthLoginInput.prototype, "password", void 0);
|
|
28
|
-
exports.AuthLoginInput = AuthLoginInput = __decorate([
|
|
29
|
-
(0, graphql_1.InputType)()
|
|
30
|
-
], AuthLoginInput);
|
|
31
7
|
//# sourceMappingURL=login.input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.input.js","sourceRoot":"","sources":["../../src/dto/login.input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.input.js","sourceRoot":"","sources":["../../src/dto/login.input.ts"],"names":[],"mappings":";;;AAeA,MAAa,cAAc;CAG1B;AAHD,wCAGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-response.dto.d.ts","sourceRoot":"","sources":["../../src/dto/logout-response.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout-response.dto.d.ts","sourceRoot":"","sources":["../../src/dto/logout-response.dto.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAMD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,42 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AuthLogoutAllResponse = exports.AuthLogoutResponse = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
let AuthLogoutResponse = class AuthLogoutResponse {
|
|
15
|
-
};
|
|
16
|
-
exports.AuthLogoutResponse = AuthLogoutResponse;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, graphql_1.Field)(),
|
|
19
|
-
__metadata("design:type", Boolean)
|
|
20
|
-
], AuthLogoutResponse.prototype, "success", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], AuthLogoutResponse.prototype, "message", void 0);
|
|
25
|
-
exports.AuthLogoutResponse = AuthLogoutResponse = __decorate([
|
|
26
|
-
(0, graphql_1.ObjectType)('AuthLogoutResponse')
|
|
27
|
-
], AuthLogoutResponse);
|
|
28
|
-
let AuthLogoutAllResponse = class AuthLogoutAllResponse {
|
|
29
|
-
};
|
|
30
|
-
exports.AuthLogoutAllResponse = AuthLogoutAllResponse;
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], AuthLogoutAllResponse.prototype, "count", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, graphql_1.Field)(() => String),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], AuthLogoutAllResponse.prototype, "message", void 0);
|
|
39
|
-
exports.AuthLogoutAllResponse = AuthLogoutAllResponse = __decorate([
|
|
40
|
-
(0, graphql_1.ObjectType)('AuthLogoutAllResponse')
|
|
41
|
-
], AuthLogoutAllResponse);
|
|
42
3
|
//# sourceMappingURL=logout-response.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-response.dto.js","sourceRoot":"","sources":["../../src/dto/logout-response.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout-response.dto.js","sourceRoot":"","sources":["../../src/dto/logout-response.dto.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.input.d.ts","sourceRoot":"","sources":["../../src/dto/logout.input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout.input.d.ts","sourceRoot":"","sources":["../../src/dto/logout.input.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;CACtB;AAMD,qBACa,eAAgB,YAAW,gBAAgB;IAEtD,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/dto/logout.input.js
CHANGED
|
@@ -11,17 +11,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AuthLogoutInput = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
14
|
let AuthLogoutInput = class AuthLogoutInput {
|
|
16
15
|
};
|
|
17
16
|
exports.AuthLogoutInput = AuthLogoutInput;
|
|
18
17
|
__decorate([
|
|
19
18
|
(0, graphql_1.Field)(),
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
22
19
|
__metadata("design:type", String)
|
|
23
20
|
], AuthLogoutInput.prototype, "refreshToken", void 0);
|
|
24
21
|
exports.AuthLogoutInput = AuthLogoutInput = __decorate([
|
|
25
|
-
(0, graphql_1.InputType)()
|
|
22
|
+
(0, graphql_1.InputType)('AuthLogoutInput')
|
|
26
23
|
], AuthLogoutInput);
|
|
27
24
|
//# sourceMappingURL=logout.input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.input.js","sourceRoot":"","sources":["../../src/dto/logout.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;
|
|
1
|
+
{"version":3,"file":"logout.input.js","sourceRoot":"","sources":["../../src/dto/logout.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AAiB5C,IAAM,eAAe,GAArB,MAAM,eAAe;CAG3B,CAAA;AAHY,0CAAe;AAE1B;IADC,IAAA,eAAK,GAAE;;qDACa;0BAFV,eAAe;IAD3B,IAAA,mBAAS,EAAC,iBAAiB,CAAC;GAChB,eAAe,CAG3B"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface IAuthPhoneVerificationResponse {
|
|
2
2
|
success: boolean;
|
|
3
3
|
message: string;
|
|
4
4
|
phoneNumber?: string;
|
|
5
5
|
expiresInSeconds?: number;
|
|
6
6
|
retryAfterSeconds?: number;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export interface IPhoneVerificationUser {
|
|
9
9
|
id: string;
|
|
10
10
|
email: string;
|
|
11
11
|
phoneNumber?: string;
|
|
12
12
|
phoneVerified: boolean;
|
|
13
13
|
phoneVerifiedAt?: Date;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export interface IAuthVerifyPhoneResponse {
|
|
16
16
|
success: boolean;
|
|
17
17
|
message: string;
|
|
18
|
-
user?:
|
|
18
|
+
user?: IPhoneVerificationUser;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export interface IAuthRemovePhoneResponse {
|
|
21
21
|
success: boolean;
|
|
22
22
|
message: string;
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-verification-response.dto.d.ts","sourceRoot":"","sources":["../../src/dto/phone-verification-response.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phone-verification-response.dto.d.ts","sourceRoot":"","sources":["../../src/dto/phone-verification-response.dto.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAMD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,IAAI,CAAC;CACxB;AAMD,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,sBAAsB,CAAC;CAC/B;AAMD,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,98 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AuthRemovePhoneResponse = exports.AuthVerifyPhoneResponse = exports.PhoneVerificationUser = exports.AuthPhoneVerificationResponse = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
let AuthPhoneVerificationResponse = class AuthPhoneVerificationResponse {
|
|
15
|
-
};
|
|
16
|
-
exports.AuthPhoneVerificationResponse = AuthPhoneVerificationResponse;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, graphql_1.Field)(),
|
|
19
|
-
__metadata("design:type", Boolean)
|
|
20
|
-
], AuthPhoneVerificationResponse.prototype, "success", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, graphql_1.Field)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], AuthPhoneVerificationResponse.prototype, "message", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], AuthPhoneVerificationResponse.prototype, "phoneNumber", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], AuthPhoneVerificationResponse.prototype, "expiresInSeconds", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], AuthPhoneVerificationResponse.prototype, "retryAfterSeconds", void 0);
|
|
37
|
-
exports.AuthPhoneVerificationResponse = AuthPhoneVerificationResponse = __decorate([
|
|
38
|
-
(0, graphql_1.ObjectType)('AuthPhoneVerificationResponse')
|
|
39
|
-
], AuthPhoneVerificationResponse);
|
|
40
|
-
let PhoneVerificationUser = class PhoneVerificationUser {
|
|
41
|
-
};
|
|
42
|
-
exports.PhoneVerificationUser = PhoneVerificationUser;
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, graphql_1.Field)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], PhoneVerificationUser.prototype, "id", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, graphql_1.Field)(),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], PhoneVerificationUser.prototype, "email", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], PhoneVerificationUser.prototype, "phoneNumber", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, graphql_1.Field)(),
|
|
57
|
-
__metadata("design:type", Boolean)
|
|
58
|
-
], PhoneVerificationUser.prototype, "phoneVerified", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
61
|
-
__metadata("design:type", Date)
|
|
62
|
-
], PhoneVerificationUser.prototype, "phoneVerifiedAt", void 0);
|
|
63
|
-
exports.PhoneVerificationUser = PhoneVerificationUser = __decorate([
|
|
64
|
-
(0, graphql_1.ObjectType)('PhoneVerificationUser')
|
|
65
|
-
], PhoneVerificationUser);
|
|
66
|
-
let AuthVerifyPhoneResponse = class AuthVerifyPhoneResponse {
|
|
67
|
-
};
|
|
68
|
-
exports.AuthVerifyPhoneResponse = AuthVerifyPhoneResponse;
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, graphql_1.Field)(),
|
|
71
|
-
__metadata("design:type", Boolean)
|
|
72
|
-
], AuthVerifyPhoneResponse.prototype, "success", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, graphql_1.Field)(),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], AuthVerifyPhoneResponse.prototype, "message", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, graphql_1.Field)(() => PhoneVerificationUser, { nullable: true }),
|
|
79
|
-
__metadata("design:type", PhoneVerificationUser)
|
|
80
|
-
], AuthVerifyPhoneResponse.prototype, "user", void 0);
|
|
81
|
-
exports.AuthVerifyPhoneResponse = AuthVerifyPhoneResponse = __decorate([
|
|
82
|
-
(0, graphql_1.ObjectType)('AuthVerifyPhoneResponse')
|
|
83
|
-
], AuthVerifyPhoneResponse);
|
|
84
|
-
let AuthRemovePhoneResponse = class AuthRemovePhoneResponse {
|
|
85
|
-
};
|
|
86
|
-
exports.AuthRemovePhoneResponse = AuthRemovePhoneResponse;
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, graphql_1.Field)(),
|
|
89
|
-
__metadata("design:type", Boolean)
|
|
90
|
-
], AuthRemovePhoneResponse.prototype, "success", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, graphql_1.Field)(),
|
|
93
|
-
__metadata("design:type", String)
|
|
94
|
-
], AuthRemovePhoneResponse.prototype, "message", void 0);
|
|
95
|
-
exports.AuthRemovePhoneResponse = AuthRemovePhoneResponse = __decorate([
|
|
96
|
-
(0, graphql_1.ObjectType)('AuthRemovePhoneResponse')
|
|
97
|
-
], AuthRemovePhoneResponse);
|
|
98
3
|
//# sourceMappingURL=phone-verification-response.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-verification-response.dto.js","sourceRoot":"","sources":["../../src/dto/phone-verification-response.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phone-verification-response.dto.js","sourceRoot":"","sources":["../../src/dto/phone-verification-response.dto.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-verification-status.dto.d.ts","sourceRoot":"","sources":["../../src/dto/phone-verification-status.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phone-verification-status.dto.d.ts","sourceRoot":"","sources":["../../src/dto/phone-verification-status.dto.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|