Skip to content

Commit 2f1d23a

Browse files
committed
feat: implement onboarding flow
1 parent 99460b6 commit 2f1d23a

File tree

65 files changed

+808
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+808
-11
lines changed

api-schema.graphql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ type User {
183183
id: String!
184184
identities: [Identity!]
185185
name: String
186+
onboarded: Boolean
186187
profile: String
187188
profileUrl: String!
188189
role: UserRole
@@ -208,6 +209,7 @@ input UserAdminUpdateInput {
208209
avatarUrl: String
209210
developer: Boolean
210211
name: String
212+
onboarded: Boolean
211213
role: UserRole
212214
status: UserStatus
213215
username: String

libs/api/core/feature/src/lib/api-core-feature.module.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@ import { Module } from '@nestjs/common'
22
import { ApiAuthFeatureModule } from '@pubkey-network/api-auth-feature'
33
import { ApiCoreDataAccessModule } from '@pubkey-network/api-core-data-access'
44
import { ApiIdentityFeatureModule } from '@pubkey-network/api-identity-feature'
5+
import { ApiOnboardingFeatureModule } from '@pubkey-network/api-onboarding-feature'
6+
import { ApiProfileFeatureModule } from '@pubkey-network/api-profile-feature'
57
import { ApiSolanaFeatureModule } from '@pubkey-network/api-solana-feature'
68
import { ApiUserFeatureModule } from '@pubkey-network/api-user-feature'
79
import { ApiCoreController } from './api-core.controller'
810
import { ApiCoreResolver } from './api-core.resolver'
9-
import { ApiProfileFeatureModule } from '@pubkey-network/api-profile-feature'
1011

1112
const imports = [
1213
// The api-feature generator will add the imports here
1314
ApiAuthFeatureModule,
1415
ApiCoreDataAccessModule,
1516
ApiIdentityFeatureModule,
17+
ApiOnboardingFeatureModule,
18+
ApiProfileFeatureModule,
1619
ApiSolanaFeatureModule,
1720
ApiUserFeatureModule,
18-
ApiProfileFeatureModule,
1921
]
2022

2123
@Module({
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": ["../../../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["*.ts", "*.tsx"],
11+
"rules": {}
12+
},
13+
{
14+
"files": ["*.js", "*.jsx"],
15+
"rules": {}
16+
}
17+
]
18+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# api-onboarding-data-access
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Running unit tests
6+
7+
Run `nx test api-onboarding-data-access` to execute the unit tests via [Jest](https://jestjs.io).
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'api-onboarding-data-access',
4+
preset: '../../../../jest.preset.js',
5+
testEnvironment: 'node',
6+
transform: {
7+
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
8+
},
9+
moduleFileExtensions: ['ts', 'js', 'html'],
10+
coverageDirectory: '../../../../coverage/libs/api/onboarding/data-access',
11+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "api-onboarding-data-access",
3+
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "libs/api/onboarding/data-access/src",
5+
"projectType": "library",
6+
"tags": ["app:api", "type:data-access"],
7+
"targets": {
8+
"lint": {
9+
"executor": "@nx/eslint:lint"
10+
},
11+
"test": {
12+
"executor": "@nx/jest:jest",
13+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
14+
"options": {
15+
"jestConfig": "libs/api/onboarding/data-access/jest.config.ts"
16+
}
17+
}
18+
}
19+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './lib/api-onboarding.data-access.module'
2+
export * from './lib/api-onboarding.service'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Module } from '@nestjs/common'
2+
import { ApiCoreDataAccessModule } from '@pubkey-network/api-core-data-access'
3+
import { ApiOnboardingService } from './api-onboarding.service'
4+
5+
@Module({
6+
imports: [ApiCoreDataAccessModule],
7+
providers: [ApiOnboardingService],
8+
exports: [ApiOnboardingService],
9+
})
10+
export class ApiOnboardingDataAccessModule {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { Injectable } from '@nestjs/common'
2+
3+
@Injectable()
4+
export class ApiOnboardingService {
5+
constructor() {}
6+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": "../../../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"module": "commonjs",
5+
"forceConsistentCasingInFileNames": true,
6+
"strict": true,
7+
"noImplicitOverride": true,
8+
"noPropertyAccessFromIndexSignature": true,
9+
"noImplicitReturns": true,
10+
"noFallthroughCasesInSwitch": true
11+
},
12+
"files": [],
13+
"include": [],
14+
"references": [
15+
{
16+
"path": "./tsconfig.lib.json"
17+
},
18+
{
19+
"path": "./tsconfig.spec.json"
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)