@xuulu/xuulu-types 1.0.53 → 1.0.54
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/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/socket/index.d.ts +1 -0
- package/dist/cjs/socket/index.js +17 -0
- package/dist/cjs/socket/requests/index.d.ts +5 -0
- package/dist/cjs/socket/requests/index.js +2 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/socket/index.d.ts +1 -0
- package/dist/esm/socket/index.js +1 -0
- package/dist/esm/socket/requests/index.d.ts +5 -0
- package/dist/esm/socket/requests/index.js +1 -0
- package/package.json +1 -1
- package/src/account/index.ts +2 -2
- package/src/account/requests/index.ts +8 -8
- package/src/account/responses/index.ts +10 -10
- package/src/auth/index.ts +1 -1
- package/src/auth/requests/index.ts +8 -8
- package/src/auth/responses/index.ts +6 -6
- package/src/index.ts +1 -0
- package/src/mails/index.ts +1 -1
- package/src/mails/requests/index.ts +7 -7
- package/src/pagination/index.ts +1 -1
- package/src/pagination/requests/index.ts +10 -10
- package/src/pagination/responses/index.ts +6 -6
- package/src/positions/index.ts +2 -2
- package/src/positions/requests/index.ts +71 -71
- package/src/socket/index.ts +1 -0
- package/src/socket/requests/index.ts +5 -0
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './requests';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./requests"), exports);
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './requests';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './requests';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/account/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./requests";
|
|
2
|
-
export * from "./responses";
|
|
1
|
+
export * from "./requests";
|
|
2
|
+
export * from "./responses";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type ApiKeyCreateRequest = {
|
|
2
|
-
name: string;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
export type ApiKeyUpdateRequest = {
|
|
6
|
-
name?: string;
|
|
7
|
-
isActive?: boolean;
|
|
8
|
-
};
|
|
1
|
+
export type ApiKeyCreateRequest = {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export type ApiKeyUpdateRequest = {
|
|
6
|
+
name?: string;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type ApiKeyResponse = {
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
keyValue: string;
|
|
5
|
-
isActive: boolean;
|
|
6
|
-
createdAt: Date;
|
|
7
|
-
expiresAt: Date;
|
|
8
|
-
isExpired?: boolean;
|
|
9
|
-
daysUntilExpiration?: number;
|
|
10
|
-
};
|
|
1
|
+
export type ApiKeyResponse = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
keyValue: string;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
expiresAt: Date;
|
|
8
|
+
isExpired?: boolean;
|
|
9
|
+
daysUntilExpiration?: number;
|
|
10
|
+
};
|
package/src/auth/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './requests';
|
|
1
|
+
export * from './requests';
|
|
2
2
|
export * from './responses';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type ResetPasswordRequest = {
|
|
2
|
-
email: string;
|
|
3
|
-
token: string;
|
|
4
|
-
newPassword: string;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export type ForgotPasswordRequest = {
|
|
8
|
-
email: string;
|
|
1
|
+
export type ResetPasswordRequest = {
|
|
2
|
+
email: string;
|
|
3
|
+
token: string;
|
|
4
|
+
newPassword: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type ForgotPasswordRequest = {
|
|
8
|
+
email: string;
|
|
9
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type ResetPasswordResponse = {
|
|
2
|
-
message: string;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
export type ForgotPasswordResponse = {
|
|
6
|
-
message: string;
|
|
1
|
+
export type ResetPasswordResponse = {
|
|
2
|
+
message: string;
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export type ForgotPasswordResponse = {
|
|
6
|
+
message: string;
|
|
7
7
|
};
|
package/src/index.ts
CHANGED
package/src/mails/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./requests";
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type SendEmailRequest = {
|
|
2
|
-
from?: string;
|
|
3
|
-
to: string | string[];
|
|
4
|
-
subject: string;
|
|
5
|
-
text: string;
|
|
6
|
-
html: string;
|
|
7
|
-
};
|
|
1
|
+
export type SendEmailRequest = {
|
|
2
|
+
from?: string;
|
|
3
|
+
to: string | string[];
|
|
4
|
+
subject: string;
|
|
5
|
+
text: string;
|
|
6
|
+
html: string;
|
|
7
|
+
};
|
package/src/pagination/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './responses';
|
|
1
|
+
export * from './responses';
|
|
2
2
|
export * from './requests';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type QueryFilters = {
|
|
2
|
-
[key: string]: string | number | boolean | undefined | { search: string };
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
export type PaginationOptions = {
|
|
6
|
-
page?: number;
|
|
7
|
-
pageSize?: number;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type PaginationFilters = PaginationOptions;
|
|
1
|
+
export type QueryFilters = {
|
|
2
|
+
[key: string]: string | number | boolean | undefined | { search: string };
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export type PaginationOptions = {
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type PaginationFilters = PaginationOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface PaginatedResponse<T> {
|
|
2
|
-
data: T[];
|
|
3
|
-
total: number;
|
|
4
|
-
currentPage: number;
|
|
5
|
-
pageSize: number;
|
|
6
|
-
totalPages: number;
|
|
1
|
+
export interface PaginatedResponse<T> {
|
|
2
|
+
data: T[];
|
|
3
|
+
total: number;
|
|
4
|
+
currentPage: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
totalPages: number;
|
|
7
7
|
}
|
package/src/positions/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./responses";
|
|
2
|
-
export * from "./requests";
|
|
1
|
+
export * from "./responses";
|
|
2
|
+
export * from "./requests";
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { CandidateResponse } from "../../candidates/responses";
|
|
2
|
-
import { FrameworkResponse } from "../../frameworks/responses";
|
|
3
|
-
import { OfficeResponse } from "../../offices/responses";
|
|
4
|
-
import { PositionContractResponse } from "../../positionContracts/responses";
|
|
5
|
-
import { PositionJobTypeResponse } from "../../positionsJobTypes/responses";
|
|
6
|
-
import { PositionWorkplaceResponse } from "../../positionWorkplaces/responses";
|
|
7
|
-
import { SectionResponse } from "../../sections/responses";
|
|
8
|
-
import { SeniorityLevelResponse } from "../../seniorityLevels/responses";
|
|
9
|
-
|
|
10
|
-
/* **************** *
|
|
11
|
-
* Position Create *
|
|
12
|
-
* **************** */
|
|
13
|
-
export type PositionCreateRequest = {
|
|
14
|
-
positionName: string;
|
|
15
|
-
volume: number;
|
|
16
|
-
description: string;
|
|
17
|
-
qualification: string;
|
|
18
|
-
niceToHaveDescription: string;
|
|
19
|
-
weOfferDescription: string;
|
|
20
|
-
comment?: string;
|
|
21
|
-
salary: number;
|
|
22
|
-
salaryCurrency: string;
|
|
23
|
-
seniorityLevel: Pick<SeniorityLevelResponse, "id" | "name">;
|
|
24
|
-
office: Pick<OfficeResponse, "id" | "name">;
|
|
25
|
-
contract: Pick<PositionContractResponse, "id" | "name">;
|
|
26
|
-
jobType: Pick<PositionJobTypeResponse, "id" | "name">;
|
|
27
|
-
workplace: Pick<PositionWorkplaceResponse, "id" | "name">;
|
|
28
|
-
candidates?: Pick<CandidateResponse, "id" | "firstname" | "lastname">[];
|
|
29
|
-
frameworks: Pick<FrameworkResponse, "id" | "name">[];
|
|
30
|
-
additionalFrameworks?: Pick<FrameworkResponse, "id" | "name">[];
|
|
31
|
-
sections: Pick<SectionResponse, "id" | "name">[];
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/* **************** *
|
|
35
|
-
* Position update *
|
|
36
|
-
* **************** */
|
|
37
|
-
|
|
38
|
-
export type PositionEditRequest = {
|
|
39
|
-
positionName: string;
|
|
40
|
-
volume: number;
|
|
41
|
-
description: string;
|
|
42
|
-
qualification: string;
|
|
43
|
-
niceToHaveDescription: string;
|
|
44
|
-
weOfferDescription: string;
|
|
45
|
-
comment?: string;
|
|
46
|
-
salary: number;
|
|
47
|
-
salaryCurrency: string;
|
|
48
|
-
seniorityLevel: Pick<SeniorityLevelResponse, "id" | "name">;
|
|
49
|
-
office: Pick<OfficeResponse, "id" | "name">;
|
|
50
|
-
contract: Pick<PositionContractResponse, "id" | "name">;
|
|
51
|
-
jobType: Pick<PositionJobTypeResponse, "id" | "name">;
|
|
52
|
-
workplace: Pick<PositionWorkplaceResponse, "id" | "name">;
|
|
53
|
-
candidates?: Pick<CandidateResponse, "id" | "firstname" | "lastname">[];
|
|
54
|
-
frameworks: Pick<FrameworkResponse, "id" | "name">[];
|
|
55
|
-
additionalFrameworks?: Pick<FrameworkResponse, "id" | "name">[];
|
|
56
|
-
sections: Pick<SectionResponse, "id" | "name">[];
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export type AiJobDescriptionRequest = {
|
|
60
|
-
positionName: string;
|
|
61
|
-
office: string;
|
|
62
|
-
seniorityLevel: string;
|
|
63
|
-
salary: number;
|
|
64
|
-
salaryCurrency: string;
|
|
65
|
-
jobType: string;
|
|
66
|
-
contract: string;
|
|
67
|
-
workplace: string;
|
|
68
|
-
sections: string;
|
|
69
|
-
frameworks: string;
|
|
70
|
-
additionalFrameworks: string;
|
|
71
|
-
};
|
|
1
|
+
import { CandidateResponse } from "../../candidates/responses";
|
|
2
|
+
import { FrameworkResponse } from "../../frameworks/responses";
|
|
3
|
+
import { OfficeResponse } from "../../offices/responses";
|
|
4
|
+
import { PositionContractResponse } from "../../positionContracts/responses";
|
|
5
|
+
import { PositionJobTypeResponse } from "../../positionsJobTypes/responses";
|
|
6
|
+
import { PositionWorkplaceResponse } from "../../positionWorkplaces/responses";
|
|
7
|
+
import { SectionResponse } from "../../sections/responses";
|
|
8
|
+
import { SeniorityLevelResponse } from "../../seniorityLevels/responses";
|
|
9
|
+
|
|
10
|
+
/* **************** *
|
|
11
|
+
* Position Create *
|
|
12
|
+
* **************** */
|
|
13
|
+
export type PositionCreateRequest = {
|
|
14
|
+
positionName: string;
|
|
15
|
+
volume: number;
|
|
16
|
+
description: string;
|
|
17
|
+
qualification: string;
|
|
18
|
+
niceToHaveDescription: string;
|
|
19
|
+
weOfferDescription: string;
|
|
20
|
+
comment?: string;
|
|
21
|
+
salary: number;
|
|
22
|
+
salaryCurrency: string;
|
|
23
|
+
seniorityLevel: Pick<SeniorityLevelResponse, "id" | "name">;
|
|
24
|
+
office: Pick<OfficeResponse, "id" | "name">;
|
|
25
|
+
contract: Pick<PositionContractResponse, "id" | "name">;
|
|
26
|
+
jobType: Pick<PositionJobTypeResponse, "id" | "name">;
|
|
27
|
+
workplace: Pick<PositionWorkplaceResponse, "id" | "name">;
|
|
28
|
+
candidates?: Pick<CandidateResponse, "id" | "firstname" | "lastname">[];
|
|
29
|
+
frameworks: Pick<FrameworkResponse, "id" | "name">[];
|
|
30
|
+
additionalFrameworks?: Pick<FrameworkResponse, "id" | "name">[];
|
|
31
|
+
sections: Pick<SectionResponse, "id" | "name">[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/* **************** *
|
|
35
|
+
* Position update *
|
|
36
|
+
* **************** */
|
|
37
|
+
|
|
38
|
+
export type PositionEditRequest = {
|
|
39
|
+
positionName: string;
|
|
40
|
+
volume: number;
|
|
41
|
+
description: string;
|
|
42
|
+
qualification: string;
|
|
43
|
+
niceToHaveDescription: string;
|
|
44
|
+
weOfferDescription: string;
|
|
45
|
+
comment?: string;
|
|
46
|
+
salary: number;
|
|
47
|
+
salaryCurrency: string;
|
|
48
|
+
seniorityLevel: Pick<SeniorityLevelResponse, "id" | "name">;
|
|
49
|
+
office: Pick<OfficeResponse, "id" | "name">;
|
|
50
|
+
contract: Pick<PositionContractResponse, "id" | "name">;
|
|
51
|
+
jobType: Pick<PositionJobTypeResponse, "id" | "name">;
|
|
52
|
+
workplace: Pick<PositionWorkplaceResponse, "id" | "name">;
|
|
53
|
+
candidates?: Pick<CandidateResponse, "id" | "firstname" | "lastname">[];
|
|
54
|
+
frameworks: Pick<FrameworkResponse, "id" | "name">[];
|
|
55
|
+
additionalFrameworks?: Pick<FrameworkResponse, "id" | "name">[];
|
|
56
|
+
sections: Pick<SectionResponse, "id" | "name">[];
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type AiJobDescriptionRequest = {
|
|
60
|
+
positionName: string;
|
|
61
|
+
office: string;
|
|
62
|
+
seniorityLevel: string;
|
|
63
|
+
salary: number;
|
|
64
|
+
salaryCurrency: string;
|
|
65
|
+
jobType: string;
|
|
66
|
+
contract: string;
|
|
67
|
+
workplace: string;
|
|
68
|
+
sections: string;
|
|
69
|
+
frameworks: string;
|
|
70
|
+
additionalFrameworks: string;
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './requests';
|