ia-common 1.0.1-beta.1 → 1.0.1-beta.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/build/@type.d.ts +5 -0
- package/build/@type.js +5 -0
- package/build/interface/api/create-registration.interface.d.ts +11 -0
- package/build/interface/api/create-registration.interface.js +2 -0
- package/build/interface/api/index.d.ts +3 -0
- package/build/interface/api/index.js +19 -0
- package/build/interface/api/login-interface.d.ts +22 -0
- package/build/interface/api/login-interface.js +2 -0
- package/build/interface/api/update-organization.interface.d.ts +20 -0
- package/build/interface/api/update-organization.interface.js +2 -0
- package/build/interface/modify-entity.interface.d.ts +5 -0
- package/build/interface/modify-entity.interface.js +2 -0
- package/build/interface/modify.interface.d.ts +1 -0
- package/build/interface/modify.interface.js +2 -0
- package/build/interface/update-user-info.interface.d.ts +16 -0
- package/build/interface/update-user-info.interface.js +2 -0
- package/build/interface/without-token-registration-entity.interface.d.ts +3 -0
- package/build/interface/without-token-registration-entity.interface.js +2 -0
- package/package.json +1 -1
package/build/@type.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export * from "./interface/entity";
|
|
2
|
+
export * from "./interface/api";
|
|
2
3
|
export * from "./interface/controller.interface";
|
|
3
4
|
export * from "./interface/upload-multer-file.interface";
|
|
5
|
+
export * from "./interface/without-token-registration-entity.interface";
|
|
6
|
+
export * from "./interface/modify-entity.interface";
|
|
7
|
+
export * from "./interface/modify.interface";
|
|
8
|
+
export * from "./interface/update-user-info.interface";
|
package/build/@type.js
CHANGED
|
@@ -15,5 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./interface/entity"), exports);
|
|
18
|
+
__exportStar(require("./interface/api"), exports);
|
|
18
19
|
__exportStar(require("./interface/controller.interface"), exports);
|
|
19
20
|
__exportStar(require("./interface/upload-multer-file.interface"), exports);
|
|
21
|
+
__exportStar(require("./interface/without-token-registration-entity.interface"), exports);
|
|
22
|
+
__exportStar(require("./interface/modify-entity.interface"), exports);
|
|
23
|
+
__exportStar(require("./interface/modify.interface"), exports);
|
|
24
|
+
__exportStar(require("./interface/update-user-info.interface"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OrganizationStatus } from "../../@enum";
|
|
2
|
+
import { IModifyEntity, IWithoutTokenRegistrationEntity } from "../../@type";
|
|
3
|
+
export interface ICreateRegistrationResponse extends IModifyEntity<IWithoutTokenRegistrationEntity> {
|
|
4
|
+
}
|
|
5
|
+
export interface ICreateRegistrationRequest {
|
|
6
|
+
name: string;
|
|
7
|
+
contact: string;
|
|
8
|
+
email: string;
|
|
9
|
+
status: OrganizationStatus;
|
|
10
|
+
comments?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./update-organization.interface"), exports);
|
|
18
|
+
__exportStar(require("./create-registration.interface"), exports);
|
|
19
|
+
__exportStar(require("./update-organization.interface"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ILoginResponse {
|
|
2
|
+
UIMessage: string;
|
|
3
|
+
tokenType: string;
|
|
4
|
+
accessToken: string;
|
|
5
|
+
id: string;
|
|
6
|
+
firstname: string;
|
|
7
|
+
status: string;
|
|
8
|
+
requireNewPassword: boolean;
|
|
9
|
+
userId: number;
|
|
10
|
+
role: string;
|
|
11
|
+
email: string | null;
|
|
12
|
+
imageUrl: string | null;
|
|
13
|
+
userPermissions: string[];
|
|
14
|
+
registrationId: number;
|
|
15
|
+
organizationId: number;
|
|
16
|
+
subscriptionStatus: string | null;
|
|
17
|
+
contact: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ILoginRequest {
|
|
20
|
+
username: string;
|
|
21
|
+
password: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OrganizationStatus } from "../../@enum";
|
|
2
|
+
import { IOrganizationEntity, IUserInfo, Modify } from "../../@type";
|
|
3
|
+
export interface IUpdateOrganizationResponse extends Modify<IOrganizationEntity, {
|
|
4
|
+
createdOn: string;
|
|
5
|
+
updatedOn: string;
|
|
6
|
+
}> {
|
|
7
|
+
imageUrl?: string;
|
|
8
|
+
owners?: IUserInfo[];
|
|
9
|
+
}
|
|
10
|
+
export interface IUpdateOrganizationRequest {
|
|
11
|
+
name?: string;
|
|
12
|
+
owners?: IUserInfo[];
|
|
13
|
+
email?: string;
|
|
14
|
+
phone?: number;
|
|
15
|
+
type?: string;
|
|
16
|
+
pan?: string;
|
|
17
|
+
gst?: string;
|
|
18
|
+
deed?: string;
|
|
19
|
+
status?: OrganizationStatus;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Modify<T, R> = Omit<T, keyof R> & R;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UserStatus } from "../@enum";
|
|
2
|
+
import { IUploadedMulterFile } from "./upload-multer-file.interface";
|
|
3
|
+
export interface IUserInfo {
|
|
4
|
+
id?: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
phone?: number;
|
|
8
|
+
operation?: string;
|
|
9
|
+
password?: string;
|
|
10
|
+
status?: UserStatus;
|
|
11
|
+
isEmailVerified?: boolean;
|
|
12
|
+
isMobileVerified?: boolean;
|
|
13
|
+
isAccountVerified?: boolean;
|
|
14
|
+
requiredNewPassword?: boolean;
|
|
15
|
+
image?: IUploadedMulterFile | string;
|
|
16
|
+
}
|