@brivioio/api-server-types 7.3.0 → 7.4.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/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -5
- package/dist/{admin.types.d.ts → organizationUsers.types.d.ts} +11 -5
- package/dist/organizationUsers.types.d.ts.map +1 -0
- package/dist/organizations.types.d.ts +2 -95
- package/dist/organizations.types.d.ts.map +1 -1
- package/dist/organizations.types.js +1 -8
- package/dist/utils.types.d.ts +2 -9
- package/dist/utils.types.d.ts.map +1 -1
- package/dist/utils.types.js +1 -9
- package/package.json +1 -1
- package/dist/admin.types.d.ts.map +0 -1
- package/dist/applications.types.d.ts +0 -468
- package/dist/applications.types.d.ts.map +0 -1
- package/dist/applications.types.js +0 -16
- package/dist/candidates/candidateNotes.types.d.ts +0 -25
- package/dist/candidates/candidateNotes.types.d.ts.map +0 -1
- package/dist/candidates/candidateNotes.types.js +0 -1
- package/dist/candidates/candidates.types.d.ts +0 -223
- package/dist/candidates/candidates.types.d.ts.map +0 -1
- package/dist/candidates/candidates.types.js +0 -1
- package/dist/candidates/enums.types.d.ts +0 -76
- package/dist/candidates/enums.types.d.ts.map +0 -1
- package/dist/candidates/enums.types.js +0 -86
- package/dist/candidates/index.d.ts +0 -5
- package/dist/candidates/index.d.ts.map +0 -1
- package/dist/candidates/index.js +0 -4
- package/dist/candidates/others.types.d.ts +0 -132
- package/dist/candidates/others.types.d.ts.map +0 -1
- package/dist/candidates/others.types.js +0 -1
- package/dist/globalCandidates/globalCandidates.types.d.ts +0 -176
- package/dist/globalCandidates/globalCandidates.types.d.ts.map +0 -1
- package/dist/globalCandidates/globalCandidates.types.js +0 -9
- package/dist/globalCandidates/index.d.ts +0 -2
- package/dist/globalCandidates/index.d.ts.map +0 -1
- package/dist/globalCandidates/index.js +0 -1
- package/dist/positions/enums.types.d.ts +0 -31
- package/dist/positions/enums.types.d.ts.map +0 -1
- package/dist/positions/enums.types.js +0 -36
- package/dist/positions/index.d.ts +0 -5
- package/dist/positions/index.d.ts.map +0 -1
- package/dist/positions/index.js +0 -4
- package/dist/positions/listApplications.types.d.ts +0 -25
- package/dist/positions/listApplications.types.d.ts.map +0 -1
- package/dist/positions/listApplications.types.js +0 -1
- package/dist/positions/listViewConfig.types.d.ts +0 -549
- package/dist/positions/listViewConfig.types.d.ts.map +0 -1
- package/dist/positions/listViewConfig.types.js +0 -275
- package/dist/positions/positions.types.d.ts +0 -363
- package/dist/positions/positions.types.d.ts.map +0 -1
- package/dist/positions/positions.types.js +0 -1
- /package/dist/{admin.types.js → organizationUsers.types.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './applications.types';
|
|
3
|
-
export * from './candidates';
|
|
4
|
-
export * from './globalCandidates';
|
|
1
|
+
export * from './organizationUsers.types';
|
|
5
2
|
export * from './organizations.types';
|
|
6
|
-
export * from './positions';
|
|
7
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IResponse } from './utils.types';
|
|
2
|
-
export interface
|
|
2
|
+
export interface IOrganizationUser {
|
|
3
3
|
_id: string;
|
|
4
4
|
email: string;
|
|
5
5
|
isEmailVerified: boolean;
|
|
@@ -7,11 +7,12 @@ export interface IAdmin {
|
|
|
7
7
|
key: string;
|
|
8
8
|
value: string;
|
|
9
9
|
}[];
|
|
10
|
+
lastLoginAt: Date | null;
|
|
10
11
|
isDeleted: boolean;
|
|
11
12
|
createdAt: string;
|
|
12
13
|
updatedAt: string;
|
|
13
14
|
}
|
|
14
|
-
export declare namespace
|
|
15
|
+
export declare namespace OrganizationUserAPITypes {
|
|
15
16
|
type TLoginRequestBody = {
|
|
16
17
|
email: string;
|
|
17
18
|
};
|
|
@@ -21,14 +22,19 @@ export declare namespace AdminAPITypes {
|
|
|
21
22
|
otp: string;
|
|
22
23
|
};
|
|
23
24
|
type TVerifyOtpResponse = IResponse<{
|
|
24
|
-
|
|
25
|
+
organizationUserId: string;
|
|
25
26
|
token: string;
|
|
26
27
|
email: string;
|
|
27
28
|
} | null>;
|
|
28
29
|
type TVerifySessionResponse = IResponse<{
|
|
29
|
-
|
|
30
|
+
organizationUserId: string;
|
|
30
31
|
email: string;
|
|
32
|
+
lastLoginAt: string | null;
|
|
33
|
+
organizations: {
|
|
34
|
+
organizationId: string;
|
|
35
|
+
isOnboardingComplete: boolean;
|
|
36
|
+
}[];
|
|
31
37
|
} | null>;
|
|
32
38
|
type TLogoutResponse = IResponse<null>;
|
|
33
39
|
}
|
|
34
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=organizationUsers.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationUsers.types.d.ts","sourceRoot":"","sources":["../src/organizationUsers.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,iBAAiB,GAAG;QAC9B,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAY,cAAc,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IAE7C,KAAY,qBAAqB,GAAG;QAClC,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,KAAY,kBAAkB,GAAG,SAAS,CAAC;QACzC,kBAAkB,EAAE,MAAM,CAAC;QAC3B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,IAAI,CAAC,CAAC;IAEV,KAAY,sBAAsB,GAAG,SAAS,CAAC;QAC7C,kBAAkB,EAAE,MAAM,CAAC;QAC3B,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,aAAa,EAAE;YACb,cAAc,EAAE,MAAM,CAAC;YACvB,oBAAoB,EAAE,OAAO,CAAC;SAC/B,EAAE,CAAC;KACL,GAAG,IAAI,CAAC,CAAC;IAEV,KAAY,eAAe,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;CAC/C"}
|
|
@@ -1,106 +1,13 @@
|
|
|
1
|
-
import type { IResponse } from './utils.types';
|
|
2
|
-
export declare enum CompanyStage {
|
|
3
|
-
EARLY = "early",// startups (0-3 years old)
|
|
4
|
-
MID = "mid",// mid-sized companies (4-7 years old)
|
|
5
|
-
LATE = "late",// mature companies (8-12 years old) cred, paytm, etc.
|
|
6
|
-
POST_IPO = "postIpo",// companies that have IPOd and are growing
|
|
7
|
-
MNC = "mnc"
|
|
8
|
-
}
|
|
9
1
|
export interface IOrganization {
|
|
10
2
|
_id: string;
|
|
11
|
-
|
|
12
|
-
accessDomains: string[];
|
|
13
|
-
about: string;
|
|
14
|
-
logoAssetId: string;
|
|
15
|
-
urls: {
|
|
16
|
-
website: string;
|
|
17
|
-
others: string[];
|
|
18
|
-
};
|
|
3
|
+
users: string[];
|
|
19
4
|
internalTags: {
|
|
20
5
|
key: string;
|
|
21
6
|
value: string;
|
|
22
7
|
}[];
|
|
8
|
+
isOnboardingComplete: boolean;
|
|
23
9
|
isDeleted: boolean;
|
|
24
10
|
createdAt: string;
|
|
25
11
|
updatedAt: string;
|
|
26
12
|
}
|
|
27
|
-
export type TOrganizationWithLogoUrl = IOrganization & {
|
|
28
|
-
logoUrl: string | null;
|
|
29
|
-
};
|
|
30
|
-
export declare namespace AdminOrganizationsAPITypes {
|
|
31
|
-
type TCreateOrganizationRequestBody = {
|
|
32
|
-
name: string;
|
|
33
|
-
about: string;
|
|
34
|
-
logoBase64: string;
|
|
35
|
-
urls: {
|
|
36
|
-
website: string;
|
|
37
|
-
others: string[];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
type TCreateOrganizationResponse = IResponse<null>;
|
|
41
|
-
type TGetAllOrganizationsResponse = IResponse<TOrganizationWithLogoUrl[] | null>;
|
|
42
|
-
}
|
|
43
|
-
export interface IOrganizationDeepProfile {
|
|
44
|
-
_id: string;
|
|
45
|
-
coresignalCompanyId?: number;
|
|
46
|
-
normalizedCompanyName: string;
|
|
47
|
-
otherAppearances: string[];
|
|
48
|
-
urls?: {
|
|
49
|
-
website?: string;
|
|
50
|
-
linkedin?: string;
|
|
51
|
-
logo?: string;
|
|
52
|
-
};
|
|
53
|
-
foundedInYear?: number;
|
|
54
|
-
employeeCountRange?: {
|
|
55
|
-
min?: number;
|
|
56
|
-
max?: number;
|
|
57
|
-
};
|
|
58
|
-
headquartersLocation?: {
|
|
59
|
-
city?: string;
|
|
60
|
-
state?: string;
|
|
61
|
-
country?: string;
|
|
62
|
-
};
|
|
63
|
-
isPubliclyTraded?: boolean;
|
|
64
|
-
isShutDown?: boolean;
|
|
65
|
-
isActualCompany?: boolean;
|
|
66
|
-
industry?: string;
|
|
67
|
-
keywords?: string[];
|
|
68
|
-
companyDescription?: string;
|
|
69
|
-
productsAndServices?: string[];
|
|
70
|
-
isB2B?: boolean;
|
|
71
|
-
fundingDetails?: {
|
|
72
|
-
isBootstrapped?: boolean;
|
|
73
|
-
isVentureBacked?: boolean;
|
|
74
|
-
totalFundingInUSD?: string;
|
|
75
|
-
fundingStage?: string;
|
|
76
|
-
notableInvestors?: string[];
|
|
77
|
-
};
|
|
78
|
-
isProductCompany?: boolean;
|
|
79
|
-
companyStage?: CompanyStage;
|
|
80
|
-
isTechCompany?: boolean;
|
|
81
|
-
isSoftwareCompany?: boolean;
|
|
82
|
-
isMNC?: boolean;
|
|
83
|
-
isBigTech?: boolean;
|
|
84
|
-
isFintech?: boolean;
|
|
85
|
-
isHealthtech?: boolean;
|
|
86
|
-
isLargeConsumerFocused?: boolean;
|
|
87
|
-
isYCombinatorBacked?: boolean;
|
|
88
|
-
dealsWithBigData?: boolean;
|
|
89
|
-
dealsWithEnterprise?: boolean;
|
|
90
|
-
dealsWithHighThroughput?: boolean;
|
|
91
|
-
dealsWithVideoStreaming?: boolean;
|
|
92
|
-
dealsWithInfraOrCloud?: boolean;
|
|
93
|
-
dealsWithAIEngineering?: boolean;
|
|
94
|
-
dealsWithAIML?: boolean;
|
|
95
|
-
dealsWithWeb3?: boolean;
|
|
96
|
-
publicRecognitionScore?: number;
|
|
97
|
-
engineersRecognitionScore?: number;
|
|
98
|
-
isDeleted: boolean;
|
|
99
|
-
internalTags: {
|
|
100
|
-
key: string;
|
|
101
|
-
value: string;
|
|
102
|
-
}[];
|
|
103
|
-
createdAt: string;
|
|
104
|
-
updatedAt: string;
|
|
105
|
-
}
|
|
106
13
|
//# sourceMappingURL=organizations.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../src/organizations.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../src/organizations.types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,EAAE;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,oBAAoB,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (CompanyStage) {
|
|
3
|
-
CompanyStage["EARLY"] = "early";
|
|
4
|
-
CompanyStage["MID"] = "mid";
|
|
5
|
-
CompanyStage["LATE"] = "late";
|
|
6
|
-
CompanyStage["POST_IPO"] = "postIpo";
|
|
7
|
-
CompanyStage["MNC"] = "mnc";
|
|
8
|
-
})(CompanyStage || (CompanyStage = {}));
|
|
1
|
+
export {};
|
package/dist/utils.types.d.ts
CHANGED
|
@@ -4,10 +4,6 @@ export interface IResponse<T> {
|
|
|
4
4
|
message: string;
|
|
5
5
|
data: T;
|
|
6
6
|
}
|
|
7
|
-
export declare enum UserRole {
|
|
8
|
-
CANDIDATE = "candidate",
|
|
9
|
-
ADMIN = "admin"
|
|
10
|
-
}
|
|
11
7
|
export type ValidationResult<T> = {
|
|
12
8
|
success: true;
|
|
13
9
|
data: T;
|
|
@@ -15,10 +11,7 @@ export type ValidationResult<T> = {
|
|
|
15
11
|
success: false;
|
|
16
12
|
response: IResponse<null>;
|
|
17
13
|
};
|
|
18
|
-
export declare enum
|
|
19
|
-
|
|
20
|
-
PROCESSING = "processing",
|
|
21
|
-
COMPLETED = "completed",
|
|
22
|
-
FAILED = "failed"
|
|
14
|
+
export declare enum UserRole {
|
|
15
|
+
ORGANIZATION_USER = "organizationUser"
|
|
23
16
|
}
|
|
24
17
|
//# sourceMappingURL=utils.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.types.d.ts","sourceRoot":"","sources":["../src/utils.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,CAAC,CAAC;CACT;AAED,
|
|
1
|
+
{"version":3,"file":"utils.types.d.ts","sourceRoot":"","sources":["../src/utils.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC1B;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,GAC1B;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;CAAE,CAAC;AAElD,oBAAY,QAAQ;IAClB,iBAAiB,qBAAqB;CACvC"}
|
package/dist/utils.types.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
export var UserRole;
|
|
2
2
|
(function (UserRole) {
|
|
3
|
-
UserRole["
|
|
4
|
-
UserRole["ADMIN"] = "admin";
|
|
3
|
+
UserRole["ORGANIZATION_USER"] = "organizationUser";
|
|
5
4
|
})(UserRole || (UserRole = {}));
|
|
6
|
-
export var ProcessStatus;
|
|
7
|
-
(function (ProcessStatus) {
|
|
8
|
-
ProcessStatus["QUEUED"] = "queued";
|
|
9
|
-
ProcessStatus["PROCESSING"] = "processing";
|
|
10
|
-
ProcessStatus["COMPLETED"] = "completed";
|
|
11
|
-
ProcessStatus["FAILED"] = "failed";
|
|
12
|
-
})(ProcessStatus || (ProcessStatus = {}));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admin.types.d.ts","sourceRoot":"","sources":["../src/admin.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,aAAa,CAAC;IAC7B,KAAY,iBAAiB,GAAG;QAC9B,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAY,cAAc,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IAC7C,KAAY,qBAAqB,GAAG;QAClC,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,KAAY,kBAAkB,GAAG,SAAS,CAAC;QACzC,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,IAAI,CAAC,CAAC;IACV,KAAY,sBAAsB,GAAG,SAAS,CAAC;QAC7C,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,IAAI,CAAC,CAAC;IACV,KAAY,eAAe,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;CAC/C"}
|