@b2eoneauth/client-dto 1.0.0 → 1.0.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/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/{src/index.ts → dist/index.js} +12 -17
- package/{src/lib/app/create-app-response.dto.ts → dist/lib/app/create-app-response.dto.d.ts} +5 -5
- package/dist/lib/app/create-app-response.dto.d.ts.map +1 -0
- package/dist/lib/app/create-app-response.dto.js +1 -0
- package/dist/lib/app/create-app.dto.d.ts +6 -0
- package/dist/lib/app/create-app.dto.d.ts.map +1 -0
- package/{src/lib/app/create-app.dto.ts → dist/lib/app/create-app.dto.js} +5 -9
- package/{src/lib/business/create-business-response.dto.ts → dist/lib/business/create-business-response.dto.d.ts} +5 -6
- package/dist/lib/business/create-business-response.dto.d.ts.map +1 -0
- package/dist/lib/business/create-business-response.dto.js +1 -0
- package/dist/lib/business/create-business.dto.d.ts +9 -0
- package/dist/lib/business/create-business.dto.d.ts.map +1 -0
- package/dist/lib/business/create-business.dto.js +36 -0
- package/dist/lib/client-dto.d.ts +35 -0
- package/dist/lib/client-dto.d.ts.map +1 -0
- package/dist/lib/client-dto.js +58 -0
- package/{src/lib/role/create-role-response.dto.ts → dist/lib/role/create-role-response.dto.d.ts} +5 -5
- package/dist/lib/role/create-role-response.dto.d.ts.map +1 -0
- package/dist/lib/role/create-role-response.dto.js +1 -0
- package/dist/lib/role/create-role.dto.d.ts +6 -0
- package/dist/lib/role/create-role.dto.d.ts.map +1 -0
- package/dist/lib/role/create-role.dto.js +18 -0
- package/{src/lib/tenant/create-tenant-response.dto.ts → dist/lib/tenant/create-tenant-response.dto.d.ts} +5 -5
- package/dist/lib/tenant/create-tenant-response.dto.d.ts.map +1 -0
- package/dist/lib/tenant/create-tenant-response.dto.js +1 -0
- package/dist/lib/tenant/create-tenant.dto.d.ts +8 -0
- package/dist/lib/tenant/create-tenant.dto.d.ts.map +1 -0
- package/dist/lib/tenant/create-tenant.dto.js +32 -0
- package/{src/lib/user/create-user-response.dto.ts → dist/lib/user/create-user-response.dto.d.ts} +12 -19
- package/dist/lib/user/create-user-response.dto.d.ts.map +1 -0
- package/dist/lib/user/create-user-response.dto.js +1 -0
- package/dist/lib/user/create-user-role.dto.d.ts +6 -0
- package/dist/lib/user/create-user-role.dto.d.ts.map +1 -0
- package/dist/lib/user/create-user-role.dto.js +18 -0
- package/dist/lib/user/create-user.dto.d.ts +15 -0
- package/dist/lib/user/create-user.dto.d.ts.map +1 -0
- package/dist/lib/user/create-user.dto.js +78 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/package.json +6 -3
- package/src/lib/business/create-business.dto.ts +0 -27
- package/src/lib/client-dto.ts +0 -69
- package/src/lib/role/create-role.dto.ts +0 -15
- package/src/lib/tenant/create-tenant.dto.ts +0 -25
- package/src/lib/user/create-user-role.dto.ts +0 -15
- package/src/lib/user/create-user.dto.ts +0 -57
- package/tsconfig.json +0 -10
- package/tsconfig.lib.json +0 -16
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './lib/user/create-user.dto.js';
|
|
2
|
+
export * from './lib/user/create-user-role.dto.js';
|
|
3
|
+
export * from './lib/user/create-user-response.dto.js';
|
|
4
|
+
export * from './lib/role/create-role.dto.js';
|
|
5
|
+
export * from './lib/role/create-role-response.dto.js';
|
|
6
|
+
export * from './lib/app/create-app.dto.js';
|
|
7
|
+
export * from './lib/app/create-app-response.dto.js';
|
|
8
|
+
export * from './lib/tenant/create-tenant.dto.js';
|
|
9
|
+
export * from './lib/tenant/create-tenant-response.dto.js';
|
|
10
|
+
export * from './lib/business/create-business.dto.js';
|
|
11
|
+
export * from './lib/business/create-business-response.dto.js';
|
|
12
|
+
export * from './lib/client-dto.js';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AAErD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAE/D,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
export * from './lib/user/create-user.dto.js';
|
|
2
|
-
export * from './lib/user/create-user-role.dto.js';
|
|
3
|
-
export * from './lib/user/create-user-response.dto.js';
|
|
4
|
-
|
|
5
|
-
export * from './lib/role/create-role.dto.js';
|
|
6
|
-
export * from './lib/
|
|
7
|
-
|
|
8
|
-
export * from './lib/
|
|
9
|
-
export * from './lib/
|
|
10
|
-
|
|
11
|
-
export * from './lib/
|
|
12
|
-
export * from './lib/
|
|
13
|
-
|
|
14
|
-
export * from './lib/business/create-business.dto.js';
|
|
15
|
-
export * from './lib/business/create-business-response.dto.js';
|
|
16
|
-
|
|
17
|
-
export * from './lib/client-dto.js';
|
|
1
|
+
export * from './lib/user/create-user.dto.js';
|
|
2
|
+
export * from './lib/user/create-user-role.dto.js';
|
|
3
|
+
export * from './lib/user/create-user-response.dto.js';
|
|
4
|
+
export * from './lib/role/create-role.dto.js';
|
|
5
|
+
export * from './lib/role/create-role-response.dto.js';
|
|
6
|
+
export * from './lib/app/create-app.dto.js';
|
|
7
|
+
export * from './lib/app/create-app-response.dto.js';
|
|
8
|
+
export * from './lib/tenant/create-tenant.dto.js';
|
|
9
|
+
export * from './lib/tenant/create-tenant-response.dto.js';
|
|
10
|
+
export * from './lib/business/create-business.dto.js';
|
|
11
|
+
export * from './lib/business/create-business-response.dto.js';
|
|
12
|
+
export * from './lib/client-dto.js';
|
package/{src/lib/app/create-app-response.dto.ts → dist/lib/app/create-app-response.dto.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseClientResponseDto } from "../client-dto.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { BaseClientResponseDto } from "../client-dto.js";
|
|
2
|
+
export interface CreateAppResponseDto extends BaseClientResponseDto {
|
|
3
|
+
displayTitle: string;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=create-app-response.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-app-response.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/app/create-app-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB;IAC/D,YAAY,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-app.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/app/create-app.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,qBAAa,YAAa,SAAQ,oBAAoB;IAElD,YAAY,EAAG,MAAM,CAAC;IAEtB,UAAU,EAAG,MAAM,CAAC;CAEvB"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { BaseClientRequestDto } from "../client-dto.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
businessId!: string;
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { BaseClientRequestDto } from "../client-dto.js";
|
|
2
|
+
export class CreateAppDto extends BaseClientRequestDto {
|
|
3
|
+
displayTitle;
|
|
4
|
+
businessId;
|
|
5
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { BaseClientResponseDto } from "../client-dto.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
import { BaseClientResponseDto } from "../client-dto.js";
|
|
2
|
+
export interface CreateBusinessResponseDto extends BaseClientResponseDto {
|
|
3
|
+
displayTitle: string;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=create-business-response.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-business-response.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/business/create-business-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,WAAW,yBAA0B,SAAQ,qBAAqB;IAEpE,YAAY,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseClientRequestDto } from "../client-dto.js";
|
|
2
|
+
export declare class CreateBusinessDto extends BaseClientRequestDto {
|
|
3
|
+
tenantId: string;
|
|
4
|
+
displayTitle: string;
|
|
5
|
+
gstNumber?: string;
|
|
6
|
+
panNumber?: string;
|
|
7
|
+
addressLine1?: string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=create-business.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-business.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/business/create-business.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxD,qBAAa,iBAAkB,SAAQ,oBAAoB;IAIvD,QAAQ,EAAG,MAAM,CAAC;IAIlB,YAAY,EAAG,MAAM,CAAC;IAItB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,YAAY,CAAC,EAAE,MAAM,CAAC;CAEzB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { IsOptional, IsString, Length } from "class-validator";
|
|
3
|
+
import { BaseClientRequestDto } from "../client-dto.js";
|
|
4
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
5
|
+
export class CreateBusinessDto extends BaseClientRequestDto {
|
|
6
|
+
tenantId;
|
|
7
|
+
displayTitle;
|
|
8
|
+
gstNumber;
|
|
9
|
+
panNumber;
|
|
10
|
+
addressLine1;
|
|
11
|
+
}
|
|
12
|
+
__decorate([
|
|
13
|
+
ApiProperty({ required: true }),
|
|
14
|
+
IsString(),
|
|
15
|
+
__metadata("design:type", String)
|
|
16
|
+
], CreateBusinessDto.prototype, "tenantId", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
ApiProperty({ required: true }),
|
|
19
|
+
Length(3, 30),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateBusinessDto.prototype, "displayTitle", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
ApiProperty({ required: false }),
|
|
24
|
+
IsOptional(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateBusinessDto.prototype, "gstNumber", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
ApiProperty({ required: false }),
|
|
29
|
+
IsOptional(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateBusinessDto.prototype, "panNumber", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
ApiProperty({ required: false }),
|
|
34
|
+
IsOptional(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateBusinessDto.prototype, "addressLine1", void 0);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare abstract class BaseClientRequestDto {
|
|
2
|
+
createdAt?: Date;
|
|
3
|
+
createdBy?: string;
|
|
4
|
+
updatedAt?: Date;
|
|
5
|
+
updatedBy?: string;
|
|
6
|
+
deletedAt?: Date;
|
|
7
|
+
deletedBy?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BaseClientResponseDto {
|
|
10
|
+
id: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
createdBy: string;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
updatedBy: string;
|
|
15
|
+
deletedAt: Date;
|
|
16
|
+
deletedBy: string;
|
|
17
|
+
}
|
|
18
|
+
export type DefaultRoleType = 'Product Admin' | 'Tenant Admin' | 'Business Admin';
|
|
19
|
+
export declare enum DefaultRoleEnum {
|
|
20
|
+
PRODUCT_ADMIN = "Product Admin",
|
|
21
|
+
TENANT_ADMIN = "Tenant Admin",
|
|
22
|
+
BUSINESS_ADMIN = "Business Admin"
|
|
23
|
+
}
|
|
24
|
+
export declare enum ActiveStatusEnum {
|
|
25
|
+
ACTIVE = "Active",
|
|
26
|
+
INACTIVE = "Inactive",
|
|
27
|
+
PENDING = "Pending",
|
|
28
|
+
SOFT_DELETED = "Soft Delete",
|
|
29
|
+
HARD_DELETED = "Hard Delete",
|
|
30
|
+
SUSPENDED = "Suspended",
|
|
31
|
+
BLOCKED = "Blocked",
|
|
32
|
+
TEMPORARY_SUSPENDED = "Temporary Suspended"
|
|
33
|
+
}
|
|
34
|
+
export type DeleteAction = 'soft' | 'hard';
|
|
35
|
+
//# sourceMappingURL=client-dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-dto.d.ts","sourceRoot":"","sources":["../../src/lib/client-dto.ts"],"names":[],"mappings":"AAGA,8BAAsB,oBAAoB;IAKxC,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,qBAAqB;IAEpC,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,IAAI,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,IAAI,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,IAAI,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;CAEnB;AAED,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAElF,oBAAY,eAAe;IACzB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;CAClC;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,YAAY,gBAAgB;IAC5B,YAAY,gBAAgB;IAC5B,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,mBAAmB,wBAAwB;CAC5C;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { IsOptional, IsDate } from 'class-validator';
|
|
3
|
+
import { Type } from 'class-transformer';
|
|
4
|
+
export class BaseClientRequestDto {
|
|
5
|
+
createdAt;
|
|
6
|
+
createdBy;
|
|
7
|
+
updatedAt;
|
|
8
|
+
updatedBy;
|
|
9
|
+
deletedAt;
|
|
10
|
+
deletedBy;
|
|
11
|
+
}
|
|
12
|
+
__decorate([
|
|
13
|
+
IsOptional(),
|
|
14
|
+
IsDate(),
|
|
15
|
+
Type(() => Date),
|
|
16
|
+
__metadata("design:type", Date)
|
|
17
|
+
], BaseClientRequestDto.prototype, "createdAt", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsOptional(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], BaseClientRequestDto.prototype, "createdBy", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
IsOptional(),
|
|
24
|
+
IsDate(),
|
|
25
|
+
Type(() => Date),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], BaseClientRequestDto.prototype, "updatedAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsOptional(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], BaseClientRequestDto.prototype, "updatedBy", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
IsOptional(),
|
|
34
|
+
IsDate(),
|
|
35
|
+
Type(() => Date),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], BaseClientRequestDto.prototype, "deletedAt", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
IsOptional(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], BaseClientRequestDto.prototype, "deletedBy", void 0);
|
|
42
|
+
export var DefaultRoleEnum;
|
|
43
|
+
(function (DefaultRoleEnum) {
|
|
44
|
+
DefaultRoleEnum["PRODUCT_ADMIN"] = "Product Admin";
|
|
45
|
+
DefaultRoleEnum["TENANT_ADMIN"] = "Tenant Admin";
|
|
46
|
+
DefaultRoleEnum["BUSINESS_ADMIN"] = "Business Admin";
|
|
47
|
+
})(DefaultRoleEnum || (DefaultRoleEnum = {}));
|
|
48
|
+
export var ActiveStatusEnum;
|
|
49
|
+
(function (ActiveStatusEnum) {
|
|
50
|
+
ActiveStatusEnum["ACTIVE"] = "Active";
|
|
51
|
+
ActiveStatusEnum["INACTIVE"] = "Inactive";
|
|
52
|
+
ActiveStatusEnum["PENDING"] = "Pending";
|
|
53
|
+
ActiveStatusEnum["SOFT_DELETED"] = "Soft Delete";
|
|
54
|
+
ActiveStatusEnum["HARD_DELETED"] = "Hard Delete";
|
|
55
|
+
ActiveStatusEnum["SUSPENDED"] = "Suspended";
|
|
56
|
+
ActiveStatusEnum["BLOCKED"] = "Blocked";
|
|
57
|
+
ActiveStatusEnum["TEMPORARY_SUSPENDED"] = "Temporary Suspended";
|
|
58
|
+
})(ActiveStatusEnum || (ActiveStatusEnum = {}));
|
package/{src/lib/role/create-role-response.dto.ts → dist/lib/role/create-role-response.dto.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseClientResponseDto } from "../client-dto.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { BaseClientResponseDto } from "../client-dto.js";
|
|
2
|
+
export interface CreateRoleResponseDto extends BaseClientResponseDto {
|
|
3
|
+
displayTitle: string;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=create-role-response.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-role-response.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/role/create-role-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAChE,YAAY,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-role.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/role/create-role.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxD,qBAAa,aAAc,SAAQ,oBAAoB;IAInD,YAAY,EAAG,MAAM,CAAC;IAItB,UAAU,EAAG,MAAM,CAAC;CAEvB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { IsString, Length } from "class-validator";
|
|
3
|
+
import { BaseClientRequestDto } from "../client-dto.js";
|
|
4
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
5
|
+
export class CreateRoleDto extends BaseClientRequestDto {
|
|
6
|
+
displayTitle;
|
|
7
|
+
businessId;
|
|
8
|
+
}
|
|
9
|
+
__decorate([
|
|
10
|
+
ApiProperty({ required: true }),
|
|
11
|
+
Length(3, 20),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], CreateRoleDto.prototype, "displayTitle", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
ApiProperty({ required: true }),
|
|
16
|
+
IsString(),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], CreateRoleDto.prototype, "businessId", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseClientResponseDto } from "../client-dto.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { BaseClientResponseDto } from "../client-dto.js";
|
|
2
|
+
export interface CreateTenantResponseDto extends BaseClientResponseDto {
|
|
3
|
+
displayTitle: string;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=create-tenant-response.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-tenant-response.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/tenant/create-tenant-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IAClE,YAAY,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-tenant.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/tenant/create-tenant.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,qBAAa,eAAgB,SAAQ,oBAAoB;IAKrD,OAAO,EAAG,MAAM,CAAC;IAIjB,SAAS,EAAG,MAAM,CAAC;IAInB,QAAQ,EAAG,MAAM,CAAC;IAIlB,MAAM,CAAC,EAAE,MAAM,CAAC;CAEnB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { IsEmail, IsOptional, IsString } from "class-validator";
|
|
3
|
+
import { Type } from "class-transformer";
|
|
4
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
5
|
+
import { BaseClientRequestDto } from "../client-dto.js";
|
|
6
|
+
export class CreateTenantDto extends BaseClientRequestDto {
|
|
7
|
+
emailId;
|
|
8
|
+
firstName;
|
|
9
|
+
lastName;
|
|
10
|
+
domain;
|
|
11
|
+
}
|
|
12
|
+
__decorate([
|
|
13
|
+
ApiProperty({ required: true }),
|
|
14
|
+
Type(() => String),
|
|
15
|
+
IsEmail(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], CreateTenantDto.prototype, "emailId", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
ApiProperty({ required: true }),
|
|
20
|
+
IsString(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateTenantDto.prototype, "firstName", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
ApiProperty({ required: true }),
|
|
25
|
+
IsString(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateTenantDto.prototype, "lastName", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
ApiProperty({ required: false, nullable: true }),
|
|
30
|
+
IsOptional(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateTenantDto.prototype, "domain", void 0);
|
package/{src/lib/user/create-user-response.dto.ts → dist/lib/user/create-user-response.dto.d.ts}
RENAMED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import { ActiveStatusEnum, BaseClientResponseDto, DefaultRoleEnum } from "../client-dto.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
emailVerified: boolean;
|
|
15
|
-
|
|
16
|
-
phoneVerified: boolean;
|
|
17
|
-
|
|
18
|
-
userType: DefaultRoleEnum;
|
|
19
|
-
}
|
|
1
|
+
import { ActiveStatusEnum, BaseClientResponseDto, DefaultRoleEnum } from "../client-dto.js";
|
|
2
|
+
export interface CreateUserResponseDto extends BaseClientResponseDto {
|
|
3
|
+
tenantId: string;
|
|
4
|
+
businessId: string;
|
|
5
|
+
emailId: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
status: ActiveStatusEnum;
|
|
8
|
+
emailVerified: boolean;
|
|
9
|
+
phoneVerified: boolean;
|
|
10
|
+
userType: DefaultRoleEnum;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=create-user-response.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-user-response.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/user/create-user-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE5F,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAChE,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,EAAE,gBAAgB,CAAC;IAEzB,aAAa,EAAE,OAAO,CAAC;IAEvB,aAAa,EAAE,OAAO,CAAC;IAEvB,QAAQ,EAAE,eAAe,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-user-role.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/user/create-user-role.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxD,qBAAa,iBAAkB,SAAQ,oBAAoB;IAIvD,MAAM,EAAG,MAAM,CAAC;IAIhB,MAAM,EAAG,MAAM,CAAC;CAEnB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { IsString } from "class-validator";
|
|
3
|
+
import { BaseClientRequestDto } from "../client-dto.js";
|
|
4
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
5
|
+
export class CreateUserRoleDto extends BaseClientRequestDto {
|
|
6
|
+
userId;
|
|
7
|
+
roleId;
|
|
8
|
+
}
|
|
9
|
+
__decorate([
|
|
10
|
+
ApiProperty({ required: true }),
|
|
11
|
+
IsString(),
|
|
12
|
+
__metadata("design:type", String)
|
|
13
|
+
], CreateUserRoleDto.prototype, "userId", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
ApiProperty({ required: true }),
|
|
16
|
+
IsString(),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], CreateUserRoleDto.prototype, "roleId", void 0);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ActiveStatusEnum, BaseClientRequestDto, DefaultRoleEnum } from "../client-dto.js";
|
|
2
|
+
export declare class CreateUserDto extends BaseClientRequestDto {
|
|
3
|
+
emailId: string;
|
|
4
|
+
tenantId?: string;
|
|
5
|
+
businessId?: string;
|
|
6
|
+
firstName?: string;
|
|
7
|
+
lastName?: string;
|
|
8
|
+
phone?: string;
|
|
9
|
+
status?: ActiveStatusEnum;
|
|
10
|
+
emailVerified?: boolean;
|
|
11
|
+
phoneVerified?: boolean;
|
|
12
|
+
password?: string;
|
|
13
|
+
userType?: DefaultRoleEnum;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=create-user.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-user.dto.d.ts","sourceRoot":"","sources":["../../../src/lib/user/create-user.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAG3F,qBAAa,aAAc,SAAQ,oBAAoB;IAInD,OAAO,EAAG,MAAM,CAAC;IAIjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAK1B,aAAa,CAAC,EAAE,OAAO,CAAC;IAKxB,aAAa,CAAC,EAAE,OAAO,CAAC;IAKxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,eAAe,CAAC;CAE9B"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { IsBoolean, IsEmail, IsEnum, IsOptional, IsPhoneNumber, IsString } from "class-validator";
|
|
3
|
+
import { ActiveStatusEnum, BaseClientRequestDto, DefaultRoleEnum } from "../client-dto.js";
|
|
4
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
5
|
+
export class CreateUserDto extends BaseClientRequestDto {
|
|
6
|
+
emailId;
|
|
7
|
+
tenantId;
|
|
8
|
+
businessId;
|
|
9
|
+
firstName;
|
|
10
|
+
lastName;
|
|
11
|
+
phone;
|
|
12
|
+
status;
|
|
13
|
+
emailVerified;
|
|
14
|
+
phoneVerified;
|
|
15
|
+
password;
|
|
16
|
+
userType;
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
ApiProperty({ required: true }),
|
|
20
|
+
IsEmail(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateUserDto.prototype, "emailId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
ApiProperty({ required: false }),
|
|
25
|
+
IsOptional(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateUserDto.prototype, "tenantId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
ApiProperty({ required: false }),
|
|
30
|
+
IsOptional(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateUserDto.prototype, "businessId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
ApiProperty({ required: false }),
|
|
35
|
+
IsOptional(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateUserDto.prototype, "firstName", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
ApiProperty({ required: false }),
|
|
40
|
+
IsOptional(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateUserDto.prototype, "lastName", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
ApiProperty({ required: false }),
|
|
45
|
+
IsOptional(),
|
|
46
|
+
IsPhoneNumber('IN'),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateUserDto.prototype, "phone", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
ApiProperty({ required: false }),
|
|
51
|
+
IsOptional(),
|
|
52
|
+
IsEnum(ActiveStatusEnum),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], CreateUserDto.prototype, "status", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
ApiProperty({ required: false }),
|
|
57
|
+
IsOptional(),
|
|
58
|
+
IsBoolean(),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], CreateUserDto.prototype, "emailVerified", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
ApiProperty({ required: false }),
|
|
63
|
+
IsOptional(),
|
|
64
|
+
IsBoolean(),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], CreateUserDto.prototype, "phoneVerified", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
ApiProperty({ required: false }),
|
|
69
|
+
IsOptional(),
|
|
70
|
+
IsString(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], CreateUserDto.prototype, "password", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
ApiProperty({ required: false }),
|
|
75
|
+
IsOptional(),
|
|
76
|
+
IsEnum(DefaultRoleEnum),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], CreateUserDto.prototype, "userType", void 0);
|