@merkaly/api 0.1.9 → 0.1.10-2
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 +7 -7
- package/src/account/account.router.d.ts +13 -1
- package/src/account/account.router.d.ts.map +1 -1
- package/src/account/account.router.ts +1 -2
- package/src/account/app.exception.d.ts +11 -0
- package/src/account/app.exception.d.ts.map +1 -0
- package/src/account/app.exception.ts +23 -0
- package/src/account/organizations/members/member.router.d.ts +5 -1
- package/src/account/organizations/members/member.router.d.ts.map +1 -1
- package/src/account/organizations/members/member.router.ts +1 -2
- package/src/account/organizations/organization.router.d.ts +9 -1
- package/src/account/organizations/organization.router.d.ts.map +1 -1
- package/src/account/organizations/organization.router.ts +1 -2
- package/src/account/organizations/organization.validator.d.ts +3 -0
- package/src/account/organizations/organization.validator.d.ts.map +1 -1
- package/src/account/organizations/organization.validator.ts +6 -1
- package/src/account/roles/role.exception.d.ts +5 -0
- package/src/account/roles/role.exception.d.ts.map +1 -0
- package/src/account/roles/role.exception.ts +11 -0
- package/src/account/roles/role.router.d.ts +9 -1
- package/src/account/roles/role.router.d.ts.map +1 -1
- package/src/account/roles/role.router.ts +1 -2
- package/src/account/roles/role.validator.d.ts +3 -0
- package/src/account/roles/role.validator.d.ts.map +1 -1
- package/src/account/roles/role.validator.ts +6 -0
- package/src/account/roles/users/user.router.d.ts +5 -1
- package/src/account/roles/users/user.router.d.ts.map +1 -1
- package/src/account/roles/users/user.router.ts +2 -3
- package/src/account/users/roles/role.router.d.ts +5 -1
- package/src/account/users/roles/role.router.d.ts.map +1 -1
- package/src/account/users/roles/role.router.ts +1 -2
- package/src/account/users/user.router.d.ts +9 -1
- package/src/account/users/user.router.d.ts.map +1 -1
- package/src/account/users/user.router.ts +1 -2
- package/src/account/users/user.validator.d.ts +6 -2
- package/src/account/users/user.validator.d.ts.map +1 -1
- package/src/account/users/user.validator.ts +11 -2
- package/src/app.router.d.ts +7 -3
- package/src/app.router.d.ts.map +1 -1
- package/src/auth/auth.router.d.ts +5 -1
- package/src/auth/auth.router.d.ts.map +1 -1
- package/src/auth/auth.router.ts +1 -2
- package/src/inventory/brands/brand.router.d.ts +5 -1
- package/src/inventory/brands/brand.router.d.ts.map +1 -1
- package/src/inventory/brands/brand.router.ts +1 -2
- package/src/inventory/categories/category.router.d.ts +5 -1
- package/src/inventory/categories/category.router.d.ts.map +1 -1
- package/src/inventory/categories/category.router.ts +1 -2
- package/src/inventory/inventory.router.d.ts +9 -1
- package/src/inventory/inventory.router.d.ts.map +1 -1
- package/src/inventory/inventory.router.ts +1 -2
- package/src/inventory/products/media/media.router.d.ts +5 -1
- package/src/inventory/products/media/media.router.d.ts.map +1 -1
- package/src/inventory/products/media/media.router.ts +1 -2
- package/src/inventory/products/product.router.d.ts +9 -1
- package/src/inventory/products/product.router.d.ts.map +1 -1
- package/src/inventory/products/product.router.ts +1 -2
- package/src/inventory/products/variants/variant.router.d.ts +5 -1
- package/src/inventory/products/variants/variant.router.d.ts.map +1 -1
- package/src/inventory/products/variants/variant.router.ts +1 -2
- package/src/inventory/properties/property.router.d.ts +5 -1
- package/src/inventory/properties/property.router.d.ts.map +1 -1
- package/src/inventory/properties/property.router.ts +1 -2
- package/src/store/carts/cart.router.d.ts +4 -1
- package/src/store/carts/cart.router.d.ts.map +1 -1
- package/src/store/carts/cart.router.ts +1 -2
- package/src/store/orders/items/item.router.d.ts +5 -1
- package/src/store/orders/items/item.router.d.ts.map +1 -1
- package/src/store/orders/items/item.router.ts +1 -2
- package/src/store/orders/order.router.d.ts +9 -1
- package/src/store/orders/order.router.d.ts.map +1 -1
- package/src/store/orders/order.router.ts +1 -2
- package/src/store/store.router.d.ts +9 -1
- package/src/store/store.router.d.ts.map +1 -1
- package/src/store/store.router.ts +1 -2
- package/src/account/organizations/members/member.entity.d.ts +0 -9
- package/src/account/organizations/members/member.entity.d.ts.map +0 -1
- package/src/account/organizations/members/member.entity.ts +0 -9
- package/src/account/organizations/organization.entity.d.ts +0 -17
- package/src/account/organizations/organization.entity.d.ts.map +0 -1
- package/src/account/organizations/organization.entity.ts +0 -22
- package/src/account/roles/role.entity.d.ts +0 -7
- package/src/account/roles/role.entity.d.ts.map +0 -1
- package/src/account/roles/role.entity.ts +0 -7
- package/src/account/roles/users/user.entity.d.ts +0 -9
- package/src/account/roles/users/user.entity.d.ts.map +0 -1
- package/src/account/roles/users/user.entity.ts +0 -9
- package/src/account/users/roles/role.entity.d.ts +0 -9
- package/src/account/users/roles/role.entity.d.ts.map +0 -1
- package/src/account/users/roles/role.entity.ts +0 -9
- package/src/account/users/user.entity.d.ts +0 -32
- package/src/account/users/user.entity.d.ts.map +0 -1
- package/src/account/users/user.entity.ts +0 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10-2",
|
|
4
4
|
"description": "NestJS Backend ApiRest Service",
|
|
5
5
|
"author": "Randy Tellez Galan <kronhyx@gmail.com>",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"semantic-release": "yarn run build:package && semantic-release"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@nestjs/axios": "^0.0.
|
|
25
|
+
"@nestjs/axios": "^0.0.6",
|
|
26
26
|
"@nestjs/swagger": "^5.0.9",
|
|
27
27
|
"@types/auth0": "^2.33.4",
|
|
28
28
|
"@types/node": "^17.0.2",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@commitlint/config-conventional": "^16.0.0",
|
|
37
37
|
"@elastic/elasticsearch": "^7.13.0",
|
|
38
|
-
"@nestjs/cli": "8.2.
|
|
38
|
+
"@nestjs/cli": "8.2.1",
|
|
39
39
|
"@nestjs/common": "8.3.1",
|
|
40
40
|
"@nestjs/config": "^1.0.0",
|
|
41
41
|
"@nestjs/core": "8.2.6",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@nestjs/event-emitter": "^1.0.0",
|
|
44
44
|
"@nestjs/jwt": "8.0.0",
|
|
45
45
|
"@nestjs/passport": "8.1.0",
|
|
46
|
-
"@nestjs/platform-express": "8.
|
|
47
|
-
"@nestjs/schematics": "8.0.
|
|
48
|
-
"@nestjs/testing": "8.
|
|
46
|
+
"@nestjs/platform-express": "8.3.1",
|
|
47
|
+
"@nestjs/schematics": "8.0.7",
|
|
48
|
+
"@nestjs/testing": "8.3.1",
|
|
49
49
|
"@semantic-release/exec": "^6.0.1",
|
|
50
50
|
"@semantic-release/git": "^10.0.0",
|
|
51
51
|
"@types/express": "^4.17.12",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"firebase-admin": "^10.0.2",
|
|
65
65
|
"husky": "^7.0.0",
|
|
66
66
|
"jest": "27.5.1",
|
|
67
|
-
"passport": "^0.
|
|
67
|
+
"passport": "^0.5.2",
|
|
68
68
|
"passport-jwt": "^4.0.0",
|
|
69
69
|
"rimraf": "^3.0.2",
|
|
70
70
|
"rxjs": "^7.2.0",
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import AccountModule from './account.module';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
path: string;
|
|
4
|
+
module: typeof AccountModule;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
module: typeof import("./organizations/organization.module").default;
|
|
8
|
+
children: {
|
|
9
|
+
path: string;
|
|
10
|
+
module: typeof import("./organizations/members/member.module").default;
|
|
11
|
+
}[];
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
2
14
|
export default _default;
|
|
3
15
|
//# sourceMappingURL=account.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.router.d.ts","sourceRoot":"","sources":["account.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account.router.d.ts","sourceRoot":"","sources":["account.router.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kBAAkB,CAAA;;;;;;;;;;;;;AAK5C,wBAIE"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { useRoute } from '../app.router'
|
|
2
1
|
import AccountModule from './account.module'
|
|
3
2
|
import OrganizationRouter from './organizations/organization.router'
|
|
4
3
|
import RoleRouter from './roles/role.router'
|
|
5
4
|
import UserRouter from './users/user.router'
|
|
6
5
|
|
|
7
|
-
export default
|
|
6
|
+
export default ({
|
|
8
7
|
path: '/account',
|
|
9
8
|
module: AccountModule,
|
|
10
9
|
children: [OrganizationRouter, RoleRouter, UserRouter]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ArgumentsHost, ExceptionFilter, HttpException } from '@nestjs/common';
|
|
2
|
+
import { Request, Response } from 'express';
|
|
3
|
+
export default abstract class AppException implements ExceptionFilter {
|
|
4
|
+
protected request: Request;
|
|
5
|
+
protected response: Response;
|
|
6
|
+
protected exception: HttpException;
|
|
7
|
+
protected host: ArgumentsHost;
|
|
8
|
+
catch(exception: HttpException, host: ArgumentsHost): any;
|
|
9
|
+
protected abstract handle(): any;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=app.exception.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.exception.d.ts","sourceRoot":"","sources":["app.exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAE3C,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,YAAa,YAAW,eAAe;IACnE,SAAS,CAAC,OAAO,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAA;IAC5B,SAAS,CAAC,SAAS,EAAE,aAAa,CAAA;IAClC,SAAS,CAAC,IAAI,EAAE,aAAa,CAAA;IAE7B,KAAK,CAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa;IAYpD,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAK,GAAG;CAClC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ArgumentsHost, ExceptionFilter, HttpException } from '@nestjs/common'
|
|
2
|
+
import { Request, Response } from 'express'
|
|
3
|
+
|
|
4
|
+
export default abstract class AppException implements ExceptionFilter {
|
|
5
|
+
protected request: Request
|
|
6
|
+
protected response: Response
|
|
7
|
+
protected exception: HttpException
|
|
8
|
+
protected host: ArgumentsHost
|
|
9
|
+
|
|
10
|
+
catch (exception: HttpException, host: ArgumentsHost) {
|
|
11
|
+
this.host = host
|
|
12
|
+
|
|
13
|
+
const ctx = this.host.switchToHttp()
|
|
14
|
+
|
|
15
|
+
this.response = ctx.getResponse<Response>()
|
|
16
|
+
this.request = ctx.getRequest<Request>()
|
|
17
|
+
this.exception = exception
|
|
18
|
+
|
|
19
|
+
return this.handle()
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
protected abstract handle (): any
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.router.d.ts","sourceRoot":"","sources":["member.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"member.router.d.ts","sourceRoot":"","sources":["member.router.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,iBAAiB,CAAA;;;;;AAE1C,wBAGE"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import OrganizationModule from './organization.module';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
path: string;
|
|
4
|
+
module: typeof OrganizationModule;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
module: typeof import("./members/member.module").default;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
2
10
|
export default _default;
|
|
3
11
|
//# sourceMappingURL=organization.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.router.d.ts","sourceRoot":"","sources":["organization.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"organization.router.d.ts","sourceRoot":"","sources":["organization.router.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;;;;;;;;;AAEtD,wBAIE"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { useRoute } from '../../app.router'
|
|
2
1
|
import MemberRouter from './members/member.router'
|
|
3
2
|
import OrganizationModule from './organization.module'
|
|
4
3
|
|
|
5
|
-
export default
|
|
4
|
+
export default ({
|
|
6
5
|
path: '/organizations',
|
|
7
6
|
module: OrganizationModule,
|
|
8
7
|
children: [MemberRouter]
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare class FindOrganizationValidator {
|
|
2
|
+
}
|
|
1
3
|
export declare class CreateOrganizationValidator {
|
|
2
4
|
name: string;
|
|
3
5
|
display_name: string;
|
|
@@ -5,6 +7,7 @@ export declare class CreateOrganizationValidator {
|
|
|
5
7
|
primary_color?: string;
|
|
6
8
|
secondary_color?: string;
|
|
7
9
|
}
|
|
10
|
+
export declare type IdOrganizationValidator = string;
|
|
8
11
|
export declare class UpdateOrganizationValidator {
|
|
9
12
|
display_name?: string;
|
|
10
13
|
logo_url?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.validator.d.ts","sourceRoot":"","sources":["organization.validator.ts"],"names":[],"mappings":"AAEA,qBAAa,2BAA2B;
|
|
1
|
+
{"version":3,"file":"organization.validator.d.ts","sourceRoot":"","sources":["organization.validator.ts"],"names":[],"mappings":"AAEA,qBAAa,yBAAyB;CAErC;AAED,qBAAa,2BAA2B;IAEtC,IAAI,EAAE,MAAM,CAAA;IAGZ,YAAY,EAAE,MAAM,CAAA;IAIpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,aAAa,CAAC,EAAE,MAAM,CAAA;IAItB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,oBAAY,uBAAuB,GAAG,MAAM,CAAA;AAE5C,qBAAa,2BAA2B;IAGtC,YAAY,CAAC,EAAE,MAAM,CAAA;IAIrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,aAAa,CAAC,EAAE,MAAM,CAAA;IAKtB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { IsHexColor, IsOptional, IsString, IsUrl } from 'class-validator'
|
|
2
2
|
|
|
3
|
-
export class
|
|
3
|
+
export class FindOrganizationValidator {
|
|
4
|
+
|
|
5
|
+
}
|
|
4
6
|
|
|
7
|
+
export class CreateOrganizationValidator {
|
|
5
8
|
@IsString()
|
|
6
9
|
name: string
|
|
7
10
|
|
|
@@ -21,6 +24,8 @@ export class CreateOrganizationValidator {
|
|
|
21
24
|
secondary_color?: string
|
|
22
25
|
}
|
|
23
26
|
|
|
27
|
+
export type IdOrganizationValidator = string
|
|
28
|
+
|
|
24
29
|
export class UpdateOrganizationValidator {
|
|
25
30
|
@IsString()
|
|
26
31
|
@IsOptional()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.exception.d.ts","sourceRoot":"","sources":["role.exception.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,kBAAkB,CAAA;AAG3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,MAAM;CAKP"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Catch, HttpStatus } from '@nestjs/common'
|
|
2
|
+
import AppException from '../app.exception'
|
|
3
|
+
|
|
4
|
+
@Catch()
|
|
5
|
+
export default class RoleException extends AppException {
|
|
6
|
+
handle () {
|
|
7
|
+
this.response
|
|
8
|
+
.status(HttpStatus.NOT_FOUND)
|
|
9
|
+
.json(this.exception)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import RoleModule from './role.module';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
path: string;
|
|
4
|
+
module: typeof RoleModule;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
module: typeof import("./users/user.module").default;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
2
10
|
export default _default;
|
|
3
11
|
//# sourceMappingURL=role.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.router.d.ts","sourceRoot":"","sources":["role.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"role.router.d.ts","sourceRoot":"","sources":["role.router.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAA;;;;;;;;;AAGtC,wBAIE"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CreateRoleData, UpdateRoleData } from 'auth0';
|
|
2
|
+
export declare class FindRoleValidator {
|
|
3
|
+
}
|
|
2
4
|
export declare class CreateRoleValidator implements CreateRoleData {
|
|
3
5
|
name: string;
|
|
4
6
|
description: string;
|
|
5
7
|
}
|
|
8
|
+
export declare type IdRoleValidator = string;
|
|
6
9
|
export declare class UpdateRoleValidator implements UpdateRoleData {
|
|
7
10
|
name: string;
|
|
8
11
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.validator.d.ts","sourceRoot":"","sources":["role.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGtD,qBAAa,mBAAoB,YAAW,cAAc;IAExD,IAAI,EAAE,MAAM,CAAA;IAIZ,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,mBAAoB,YAAW,cAAc;IAGxD,IAAI,EAAE,MAAM,CAAA;IAIZ,WAAW,EAAE,MAAM,CAAA;CACpB"}
|
|
1
|
+
{"version":3,"file":"role.validator.d.ts","sourceRoot":"","sources":["role.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGtD,qBAAa,iBAAiB;CAE7B;AAED,qBAAa,mBAAoB,YAAW,cAAc;IAExD,IAAI,EAAE,MAAM,CAAA;IAIZ,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,oBAAY,eAAe,GAAG,MAAM,CAAA;AAEpC,qBAAa,mBAAoB,YAAW,cAAc;IAGxD,IAAI,EAAE,MAAM,CAAA;IAIZ,WAAW,EAAE,MAAM,CAAA;CACpB"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { CreateRoleData, UpdateRoleData } from 'auth0'
|
|
2
2
|
import { IsOptional, IsString } from 'class-validator'
|
|
3
3
|
|
|
4
|
+
export class FindRoleValidator {
|
|
5
|
+
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
export class CreateRoleValidator implements CreateRoleData {
|
|
5
9
|
@IsString()
|
|
6
10
|
name: string
|
|
@@ -10,6 +14,8 @@ export class CreateRoleValidator implements CreateRoleData {
|
|
|
10
14
|
description: string
|
|
11
15
|
}
|
|
12
16
|
|
|
17
|
+
export type IdRoleValidator = string
|
|
18
|
+
|
|
13
19
|
export class UpdateRoleValidator implements UpdateRoleData {
|
|
14
20
|
@IsOptional()
|
|
15
21
|
@IsString()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.router.d.ts","sourceRoot":"","sources":["user.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.router.d.ts","sourceRoot":"","sources":["user.router.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAA;;;;;AAEtC,wBAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.router.d.ts","sourceRoot":"","sources":["role.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"role.router.d.ts","sourceRoot":"","sources":["role.router.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAA;;;;;AAEtC,wBAGE"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import UserModule from './user.module';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
path: string;
|
|
4
|
+
module: typeof UserModule;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
module: typeof import("./roles/role.module").default;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
2
10
|
export default _default;
|
|
3
11
|
//# sourceMappingURL=user.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.router.d.ts","sourceRoot":"","sources":["user.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.router.d.ts","sourceRoot":"","sources":["user.router.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,eAAe,CAAA;;;;;;;;;AAEtC,wBAIE"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { CreateUserData, UpdateUserData } from 'auth0';
|
|
2
|
+
export declare class FindUserValidator {
|
|
3
|
+
}
|
|
4
|
+
export declare class CreateUserValidator implements CreateUserData {
|
|
3
5
|
email: string;
|
|
4
6
|
password: string;
|
|
5
7
|
name: string;
|
|
8
|
+
connection: string;
|
|
6
9
|
}
|
|
10
|
+
export declare type IdUserValidator = string;
|
|
7
11
|
export declare class UpdateUserValidator implements UpdateUserData {
|
|
8
12
|
name?: string;
|
|
9
13
|
nickname?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.validator.d.ts","sourceRoot":"","sources":["user.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"user.validator.d.ts","sourceRoot":"","sources":["user.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAItD,qBAAa,iBAAiB;CAC7B;AAED,qBAAa,mBAAoB,YAAW,cAAc;IAExD,KAAK,EAAE,MAAM,CAAA;IAGb,QAAQ,EAAE,MAAM,CAAA;IAIhB,IAAI,EAAE,MAAM,CAAA;IAIZ,UAAU,EAAE,MAAM,CAAwB;CAC3C;AAED,oBAAY,eAAe,GAAG,MAAM,CAAA;AAEpC,qBAAa,mBAAoB,YAAW,cAAc;IAGxD,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateUserData, UpdateUserData } from 'auth0'
|
|
2
2
|
import { IsEmail, IsOptional, IsString, IsUrl } from 'class-validator'
|
|
3
|
+
import AppConfig from '../../app.config'
|
|
3
4
|
|
|
4
|
-
export class
|
|
5
|
+
export class FindUserValidator {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class CreateUserValidator implements CreateUserData {
|
|
5
9
|
@IsEmail()
|
|
6
10
|
email: string
|
|
7
11
|
|
|
@@ -12,8 +16,13 @@ export class CreateUserValidator implements UserData {
|
|
|
12
16
|
@IsString()
|
|
13
17
|
name: string
|
|
14
18
|
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsString()
|
|
21
|
+
connection: string = AppConfig.auth0.realm
|
|
15
22
|
}
|
|
16
23
|
|
|
24
|
+
export type IdUserValidator = string
|
|
25
|
+
|
|
17
26
|
export class UpdateUserValidator implements UpdateUserData {
|
|
18
27
|
@IsOptional()
|
|
19
28
|
@IsString()
|
package/src/app.router.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const _default: {
|
|
2
|
+
path: string;
|
|
3
|
+
children: {
|
|
4
|
+
path: string;
|
|
5
|
+
module: typeof import("./auth/auth.module").default;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
4
8
|
export default _default;
|
|
5
9
|
//# sourceMappingURL=app.router.d.ts.map
|
package/src/app.router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.router.d.ts","sourceRoot":"","sources":["app.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.router.d.ts","sourceRoot":"","sources":["app.router.ts"],"names":[],"mappings":";;;;;;;AAKA,wBAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.router.d.ts","sourceRoot":"","sources":["auth.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.router.d.ts","sourceRoot":"","sources":["auth.router.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAA;;;;;AAEtC,wBAGE"}
|
package/src/auth/auth.router.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.router.d.ts","sourceRoot":"","sources":["brand.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brand.router.d.ts","sourceRoot":"","sources":["brand.router.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAA;;;;;AAExC,wBAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.router.d.ts","sourceRoot":"","sources":["category.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"category.router.d.ts","sourceRoot":"","sources":["category.router.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mBAAmB,CAAA;;;;;AAE9C,wBAGE"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import InventoryModule from './inventory.module';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
path: string;
|
|
4
|
+
module: typeof InventoryModule;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
module: typeof import("./brands/brand.module").default;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
2
10
|
export default _default;
|
|
3
11
|
//# sourceMappingURL=inventory.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.router.d.ts","sourceRoot":"","sources":["inventory.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inventory.router.d.ts","sourceRoot":"","sources":["inventory.router.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,oBAAoB,CAAA;;;;;;;;;AAIhD,wBAIE"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { useRoute } from '../app.router'
|
|
2
1
|
import BrandRouter from './brands/brand.router'
|
|
3
2
|
import CategoryRouter from './categories/category.router'
|
|
4
3
|
import InventoryModule from './inventory.module'
|
|
5
4
|
import ProductRouter from './products/product.router'
|
|
6
5
|
import PropertyRouter from './properties/property.router'
|
|
7
6
|
|
|
8
|
-
export default
|
|
7
|
+
export default ({
|
|
9
8
|
path: '/inventory',
|
|
10
9
|
module: InventoryModule,
|
|
11
10
|
children: [BrandRouter, CategoryRouter, PropertyRouter, ProductRouter]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.router.d.ts","sourceRoot":"","sources":["media.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"media.router.d.ts","sourceRoot":"","sources":["media.router.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAA;;;;;AAExC,wBAGE"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import ProductModule from './product.module';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
path: string;
|
|
4
|
+
module: typeof ProductModule;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
module: typeof import("./variants/variant.module").default;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
2
10
|
export default _default;
|
|
3
11
|
//# sourceMappingURL=product.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.router.d.ts","sourceRoot":"","sources":["product.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product.router.d.ts","sourceRoot":"","sources":["product.router.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,kBAAkB,CAAA;;;;;;;;;AAG5C,wBAIE"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { useRoute } from '../../app.router'
|
|
2
1
|
import FileRouter from './media/media.router'
|
|
3
2
|
import ProductModule from './product.module'
|
|
4
3
|
import VariantRouter from './variants/variant.router'
|
|
5
4
|
|
|
6
|
-
export default
|
|
5
|
+
export default ({
|
|
7
6
|
path: '/products',
|
|
8
7
|
module: ProductModule,
|
|
9
8
|
children: [VariantRouter, FileRouter]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variant.router.d.ts","sourceRoot":"","sources":["variant.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"variant.router.d.ts","sourceRoot":"","sources":["variant.router.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kBAAkB,CAAA;;;;;AAE5C,wBAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.router.d.ts","sourceRoot":"","sources":["property.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"property.router.d.ts","sourceRoot":"","sources":["property.router.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mBAAmB,CAAA;;;;;AAE9C,wBAGE"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import CartModule from './cart.module';
|
|
2
2
|
export declare const module: typeof CartModule;
|
|
3
3
|
export declare const path = "carts";
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
path: string;
|
|
6
|
+
module: typeof CartModule;
|
|
7
|
+
};
|
|
5
8
|
export default _default;
|
|
6
9
|
//# sourceMappingURL=cart.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.router.d.ts","sourceRoot":"","sources":["cart.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cart.router.d.ts","sourceRoot":"","sources":["cart.router.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAA;AAEtC,eAAO,MAAM,MAAM,mBAAa,CAAA;AAChC,eAAO,MAAM,IAAI,UAAU,CAAA;;;;;AAE3B,wBAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.router.d.ts","sourceRoot":"","sources":["item.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item.router.d.ts","sourceRoot":"","sources":["item.router.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAA;;;;;AAEtC,wBAGE"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import OrderModule from './order.module';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
path: string;
|
|
4
|
+
module: typeof OrderModule;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
module: typeof import("./items/item.module").default;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
2
10
|
export default _default;
|
|
3
11
|
//# sourceMappingURL=order.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.router.d.ts","sourceRoot":"","sources":["order.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"order.router.d.ts","sourceRoot":"","sources":["order.router.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,gBAAgB,CAAA;;;;;;;;;AAExC,wBAIE"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import StoreModule from './store.module';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
path: string;
|
|
4
|
+
module: typeof StoreModule;
|
|
5
|
+
children: {
|
|
6
|
+
path: string;
|
|
7
|
+
module: typeof import("./carts/cart.module").default;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
2
10
|
export default _default;
|
|
3
11
|
//# sourceMappingURL=store.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.router.d.ts","sourceRoot":"","sources":["store.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store.router.d.ts","sourceRoot":"","sources":["store.router.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,gBAAgB,CAAA;;;;;;;;;AAExC,wBAIE"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { useRoute } from '../app.router'
|
|
2
1
|
import CartRouter from './carts/cart.router'
|
|
3
2
|
import OrderRouter from './orders/order.router'
|
|
4
3
|
import StoreModule from './store.module'
|
|
5
4
|
|
|
6
|
-
export default
|
|
5
|
+
export default ({
|
|
7
6
|
path: '/store',
|
|
8
7
|
module: StoreModule,
|
|
9
8
|
children: [CartRouter, OrderRouter]
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AppEntity from '../../../app.entity';
|
|
2
|
-
import { UserEntity } from '../../users/user.entity';
|
|
3
|
-
export declare class OrganizationMemberEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
4
|
-
user_id: string;
|
|
5
|
-
email: string;
|
|
6
|
-
name: string;
|
|
7
|
-
picture: string;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=member.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member.entity.d.ts","sourceRoot":"","sources":["member.entity.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,qBAAa,wBAAyB,SAAQ,SAAU,YAAW,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IACpH,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AppEntity from '../../../app.entity'
|
|
2
|
-
import { UserEntity } from '../../users/user.entity'
|
|
3
|
-
|
|
4
|
-
export class OrganizationMemberEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
5
|
-
public user_id: string
|
|
6
|
-
public email: string
|
|
7
|
-
public name: string
|
|
8
|
-
public picture: string
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Organization } from 'auth0';
|
|
2
|
-
import AppEntity from '../../app.entity';
|
|
3
|
-
export interface OrganizationBrandingColors {
|
|
4
|
-
page_background: string;
|
|
5
|
-
primary: string;
|
|
6
|
-
}
|
|
7
|
-
export interface OrganizationBranding {
|
|
8
|
-
logo_url: string;
|
|
9
|
-
colors: OrganizationBrandingColors;
|
|
10
|
-
}
|
|
11
|
-
export declare class OrganizationEntity extends AppEntity implements Organization {
|
|
12
|
-
name: string;
|
|
13
|
-
display_name: string;
|
|
14
|
-
branding: OrganizationBranding;
|
|
15
|
-
metadata: Record<string, string>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=organization.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["organization.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,SAAS,MAAM,kBAAkB,CAAA;AAExC,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,0BAA0B,CAAA;CACnC;AAED,qBAAa,kBAAmB,SAAQ,SAAU,YAAW,YAAY;IAChE,IAAI,EAAE,MAAM,CAAA;IAEZ,YAAY,EAAE,MAAM,CAAA;IAEpB,QAAQ,EAAE,oBAAoB,CAAA;IAE9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Organization } from 'auth0'
|
|
2
|
-
import AppEntity from '../../app.entity'
|
|
3
|
-
|
|
4
|
-
export interface OrganizationBrandingColors {
|
|
5
|
-
page_background: string
|
|
6
|
-
primary: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface OrganizationBranding {
|
|
10
|
-
logo_url: string
|
|
11
|
-
colors: OrganizationBrandingColors
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class OrganizationEntity extends AppEntity implements Organization {
|
|
15
|
-
public name: string
|
|
16
|
-
|
|
17
|
-
public display_name: string
|
|
18
|
-
|
|
19
|
-
public branding: OrganizationBranding
|
|
20
|
-
|
|
21
|
-
public metadata: Record<string, string>
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["role.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC5B,OAAO,SAAS,MAAM,kBAAkB,CAAA;AAExC,qBAAa,UAAW,SAAQ,SAAU,YAAW,IAAI;IAChD,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;CACvC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AppEntity from '../../../app.entity';
|
|
2
|
-
import { UserEntity } from '../../users/user.entity';
|
|
3
|
-
export declare class RoleUserEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
4
|
-
user_id: string;
|
|
5
|
-
email: string;
|
|
6
|
-
name: string;
|
|
7
|
-
picture: string;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=user.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,qBAAa,cAAe,SAAQ,SAAU,YAAW,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAC1G,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AppEntity from '../../../app.entity'
|
|
2
|
-
import { UserEntity } from '../../users/user.entity'
|
|
3
|
-
|
|
4
|
-
export class RoleUserEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
5
|
-
public user_id: string
|
|
6
|
-
public email: string
|
|
7
|
-
public name: string
|
|
8
|
-
public picture: string
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AppEntity from '../../../app.entity';
|
|
2
|
-
import { UserEntity } from '../user.entity';
|
|
3
|
-
export declare class UserRoleEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
4
|
-
user_id: string;
|
|
5
|
-
email: string;
|
|
6
|
-
name: string;
|
|
7
|
-
picture: string;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=role.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["role.entity.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,qBAAa,cAAe,SAAQ,SAAU,YAAW,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAC1G,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AppEntity from '../../../app.entity'
|
|
2
|
-
import { UserEntity } from '../user.entity'
|
|
3
|
-
|
|
4
|
-
export class UserRoleEntity extends AppEntity implements Pick<UserEntity, 'user_id' | 'email' | 'name' | 'picture'> {
|
|
5
|
-
public user_id: string
|
|
6
|
-
public email: string
|
|
7
|
-
public name: string
|
|
8
|
-
public picture: string
|
|
9
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { AppMetadata, Identity, User, UserMetadata } from 'auth0';
|
|
2
|
-
import AppEntity from '../../app.entity';
|
|
3
|
-
export interface UserData extends UserMetadata {
|
|
4
|
-
[propName: string]: any;
|
|
5
|
-
}
|
|
6
|
-
export interface AppData extends AppMetadata {
|
|
7
|
-
[propName: string]: any;
|
|
8
|
-
}
|
|
9
|
-
export declare class UserEntity extends AppEntity implements User<AppData, UserData> {
|
|
10
|
-
blocked: boolean | undefined;
|
|
11
|
-
created_at: string | undefined;
|
|
12
|
-
email: string | undefined;
|
|
13
|
-
email_verified: boolean | undefined;
|
|
14
|
-
family_name: string | undefined;
|
|
15
|
-
given_name: string | undefined;
|
|
16
|
-
identities: Identity[] | undefined;
|
|
17
|
-
last_ip: string | undefined;
|
|
18
|
-
last_login: string | undefined;
|
|
19
|
-
last_password_reset: string | undefined;
|
|
20
|
-
logins_count: number | undefined;
|
|
21
|
-
multifactor: string[] | undefined;
|
|
22
|
-
name: string | undefined;
|
|
23
|
-
nickname: string | undefined;
|
|
24
|
-
phone_number: string | undefined;
|
|
25
|
-
phone_verified: boolean | undefined;
|
|
26
|
-
picture: string | undefined;
|
|
27
|
-
updated_at: string | undefined;
|
|
28
|
-
user_id: string | undefined;
|
|
29
|
-
user_metadata: UserData | undefined;
|
|
30
|
-
username: string | undefined;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=user.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,SAAS,MAAM,kBAAkB,CAAA;AAExC,MAAM,WAAW,QAAS,SAAQ,YAAY;IAC5C,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACzB;AAED,MAAM,WAAW,OAAQ,SAAQ,WAAW;IAC1C,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACzB;AAED,qBAAa,UAAW,SAAQ,SAAU,YAAW,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC;IACnE,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,cAAc,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,UAAU,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IAClC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAA;IACvC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACjC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,cAAc,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,aAAa,EAAE,QAAQ,GAAG,SAAS,CAAA;IACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CACpC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { AppMetadata, Identity, User, UserMetadata } from 'auth0'
|
|
2
|
-
import AppEntity from '../../app.entity'
|
|
3
|
-
|
|
4
|
-
export interface UserData extends UserMetadata {
|
|
5
|
-
[propName: string]: any;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface AppData extends AppMetadata {
|
|
9
|
-
[propName: string]: any;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export class UserEntity extends AppEntity implements User<AppData, UserData> {
|
|
13
|
-
public blocked: boolean | undefined
|
|
14
|
-
public created_at: string | undefined
|
|
15
|
-
public email: string | undefined
|
|
16
|
-
public email_verified: boolean | undefined
|
|
17
|
-
public family_name: string | undefined
|
|
18
|
-
public given_name: string | undefined
|
|
19
|
-
public identities: Identity[] | undefined
|
|
20
|
-
public last_ip: string | undefined
|
|
21
|
-
public last_login: string | undefined
|
|
22
|
-
public last_password_reset: string | undefined
|
|
23
|
-
public logins_count: number | undefined
|
|
24
|
-
public multifactor: string[] | undefined
|
|
25
|
-
public name: string | undefined
|
|
26
|
-
public nickname: string | undefined
|
|
27
|
-
public phone_number: string | undefined
|
|
28
|
-
public phone_verified: boolean | undefined
|
|
29
|
-
public picture: string | undefined
|
|
30
|
-
public updated_at: string | undefined
|
|
31
|
-
public user_id: string | undefined
|
|
32
|
-
public user_metadata: UserData | undefined
|
|
33
|
-
public username: string | undefined
|
|
34
|
-
}
|