@xuulu/xuulu-types 1.0.30 → 1.0.34

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.
Files changed (65) hide show
  1. package/dist/cjs/companies/index.d.ts +1 -0
  2. package/dist/cjs/companies/index.js +17 -0
  3. package/dist/cjs/companies/responses/index.d.ts +22 -0
  4. package/dist/cjs/companies/responses/index.js +2 -0
  5. package/dist/cjs/index.d.ts +27 -23
  6. package/dist/cjs/index.js +4 -0
  7. package/dist/cjs/interviewCall/responses/index.d.ts +1 -1
  8. package/dist/cjs/positions/responses/index.d.ts +2 -2
  9. package/dist/cjs/sign/index.d.ts +2 -0
  10. package/dist/cjs/sign/index.js +18 -0
  11. package/dist/cjs/sign/requests/index.d.ts +9 -0
  12. package/dist/cjs/sign/requests/index.js +2 -0
  13. package/dist/cjs/sign/responses/index.d.ts +12 -0
  14. package/dist/cjs/sign/responses/index.js +2 -0
  15. package/dist/cjs/stripe/index.d.ts +2 -0
  16. package/dist/cjs/stripe/index.js +18 -0
  17. package/dist/cjs/stripe/requests/index.d.ts +5 -0
  18. package/dist/cjs/stripe/requests/index.js +2 -0
  19. package/dist/cjs/stripe/responses/index.d.ts +61 -0
  20. package/dist/cjs/stripe/responses/index.js +8 -0
  21. package/dist/cjs/userSettings/index.d.ts +1 -0
  22. package/dist/cjs/userSettings/index.js +17 -0
  23. package/dist/cjs/userSettings/responses/index.d.ts +3 -0
  24. package/dist/cjs/userSettings/responses/index.js +2 -0
  25. package/dist/cjs/users/requests/index.d.ts +8 -0
  26. package/dist/esm/companies/index.d.ts +1 -0
  27. package/dist/esm/companies/index.js +1 -0
  28. package/dist/esm/companies/responses/index.d.ts +22 -0
  29. package/dist/esm/companies/responses/index.js +1 -0
  30. package/dist/esm/index.d.ts +27 -23
  31. package/dist/esm/index.js +27 -23
  32. package/dist/esm/interviewCall/responses/index.d.ts +1 -1
  33. package/dist/esm/positions/responses/index.d.ts +2 -2
  34. package/dist/esm/sign/index.d.ts +2 -0
  35. package/dist/esm/sign/index.js +2 -0
  36. package/dist/esm/sign/requests/index.d.ts +9 -0
  37. package/dist/esm/sign/requests/index.js +1 -0
  38. package/dist/esm/sign/responses/index.d.ts +12 -0
  39. package/dist/esm/sign/responses/index.js +1 -0
  40. package/dist/esm/stripe/index.d.ts +2 -0
  41. package/dist/esm/stripe/index.js +2 -0
  42. package/dist/esm/stripe/requests/index.d.ts +5 -0
  43. package/dist/esm/stripe/requests/index.js +1 -0
  44. package/dist/esm/stripe/responses/index.d.ts +61 -0
  45. package/dist/esm/stripe/responses/index.js +5 -0
  46. package/dist/esm/userSettings/index.d.ts +1 -0
  47. package/dist/esm/userSettings/index.js +1 -0
  48. package/dist/esm/userSettings/responses/index.d.ts +3 -0
  49. package/dist/esm/userSettings/responses/index.js +1 -0
  50. package/dist/esm/users/requests/index.d.ts +8 -0
  51. package/package.json +1 -1
  52. package/src/companies/index.ts +1 -0
  53. package/src/companies/responses/index.ts +22 -0
  54. package/src/index.ts +27 -23
  55. package/src/interviewCall/responses/index.ts +1 -1
  56. package/src/positions/responses/index.ts +2 -2
  57. package/src/sign/index.ts +2 -0
  58. package/src/sign/requests/index.ts +10 -0
  59. package/src/sign/responses/index.ts +14 -0
  60. package/src/stripe/index.ts +2 -0
  61. package/src/stripe/requests/index.ts +5 -0
  62. package/src/stripe/responses/index.ts +64 -0
  63. package/src/userSettings/index.ts +1 -0
  64. package/src/userSettings/responses/index.ts +3 -0
  65. package/src/users/requests/index.ts +9 -0
@@ -0,0 +1 @@
1
+ export * from './responses';
@@ -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("./responses"), exports);
@@ -0,0 +1,22 @@
1
+ export type CompanyResponse = {
2
+ id: string;
3
+ createdByEmail: string;
4
+ address: {
5
+ country: string;
6
+ countryIsoCode: string;
7
+ state: string;
8
+ stateIsoCode: string;
9
+ city: string;
10
+ postalCode: string;
11
+ street: string;
12
+ buildingNumber: string;
13
+ };
14
+ name: string;
15
+ companyEmail: string;
16
+ taxNumber: string;
17
+ planId: string;
18
+ stripeCustomerId: string;
19
+ stripeSubscriptionId: string;
20
+ subscriptionStatus: string | null;
21
+ trialEnd: number;
22
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +1,27 @@
1
- export * from './candidates';
2
- export * from './candidateStatuses';
3
- export * from './departments';
4
- export * from './frameworks';
5
- export * from './interviewCall';
6
- export * from './interviewFeedback';
7
- export * from './InterviewQuestions';
8
- export * from './interviewQuestionsCustom';
9
- export * from './interviews';
10
- export * from './interviewSetup';
11
- export * from './interviewStatuses';
12
- export * from './interviewTypes';
13
- export * from './offices';
14
- export * from './positionContracts';
15
- export * from './positions';
16
- export * from './positionsJobTypes';
17
- export * from './positionStatuses';
18
- export * from './positionWorkplaces';
19
- export * from './questions';
20
- export * from './roles';
21
- export * from './sections';
22
- export * from './seniorityLevels';
23
- export * from './users';
1
+ export * from "./candidates";
2
+ export * from "./candidateStatuses";
3
+ export * from "./companies";
4
+ export * from "./departments";
5
+ export * from "./frameworks";
6
+ export * from "./interviewCall";
7
+ export * from "./interviewFeedback";
8
+ export * from "./InterviewQuestions";
9
+ export * from "./interviewQuestionsCustom";
10
+ export * from "./interviews";
11
+ export * from "./interviewSetup";
12
+ export * from "./interviewStatuses";
13
+ export * from "./interviewTypes";
14
+ export * from "./offices";
15
+ export * from "./positionContracts";
16
+ export * from "./positions";
17
+ export * from "./positionsJobTypes";
18
+ export * from "./positionStatuses";
19
+ export * from "./positionWorkplaces";
20
+ export * from "./questions";
21
+ export * from "./roles";
22
+ export * from "./sections";
23
+ export * from "./seniorityLevels";
24
+ export * from "./sign";
25
+ export * from "./users";
26
+ export * from "./userSettings";
27
+ export * from "./stripe";
package/dist/cjs/index.js CHANGED
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./candidates"), exports);
18
18
  __exportStar(require("./candidateStatuses"), exports);
19
+ __exportStar(require("./companies"), exports);
19
20
  __exportStar(require("./departments"), exports);
20
21
  __exportStar(require("./frameworks"), exports);
21
22
  __exportStar(require("./interviewCall"), exports);
@@ -36,4 +37,7 @@ __exportStar(require("./questions"), exports);
36
37
  __exportStar(require("./roles"), exports);
37
38
  __exportStar(require("./sections"), exports);
38
39
  __exportStar(require("./seniorityLevels"), exports);
40
+ __exportStar(require("./sign"), exports);
39
41
  __exportStar(require("./users"), exports);
42
+ __exportStar(require("./userSettings"), exports);
43
+ __exportStar(require("./stripe"), exports);
@@ -19,7 +19,7 @@ export type InterviewCallResponse = {
19
19
  meetingId: string;
20
20
  similarity: number;
21
21
  interviewDate: string;
22
- position: Pick<PositionResponse, "positionName" | "description" | "qualification" | "niceToHave" | "comment" | 'seniorityLevel'>;
22
+ position: Pick<PositionResponse, "positionName" | "description" | "qualification" | "niceToHaveDescription" | "comment" | 'seniorityLevel'>;
23
23
  interviewType: InterviewTypeResponse;
24
24
  question: (QuestionResponse & {
25
25
  answerRating: number;
@@ -10,10 +10,10 @@ import { SeniorityLevelResponse } from "../../seniorityLevels/responses";
10
10
  export type PositionResponse = {
11
11
  id: number;
12
12
  positionName: string;
13
+ weOfferDescription: string;
14
+ niceToHaveDescription: string;
13
15
  description: string;
14
16
  qualification: string;
15
- niceToHave: string;
16
- weOffer: string;
17
17
  seniorityLevel: SeniorityLevelResponse;
18
18
  status?: PositionStatusesResponse;
19
19
  workplace: PositionWorkplaceResponse;
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,18 @@
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);
18
+ __exportStar(require("./responses"), exports);
@@ -0,0 +1,9 @@
1
+ import { CompanyResponse } from "../../companies/responses";
2
+ import { UsersResponse } from "../../users/responses";
3
+ export type SignupRequest = {
4
+ company: Omit<CompanyResponse, "id">;
5
+ user: Omit<UsersResponse, "id" | "roleId" | "settings">;
6
+ password: string;
7
+ confirmPassword: string;
8
+ agreeTermsAndConditions: boolean;
9
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { UsersResponse } from '../../users/responses';
2
+ import { CompanyResponse } from '../../companies/responses';
3
+ export type SigninResponse = {
4
+ user: UsersResponse;
5
+ company: CompanyResponse;
6
+ token: string;
7
+ };
8
+ export type SignupResponse = {
9
+ user: UsersResponse;
10
+ token: string;
11
+ company: CompanyResponse;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,18 @@
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);
18
+ __exportStar(require("./responses"), exports);
@@ -0,0 +1,5 @@
1
+ export type StripeUpdateSubscriptionRequest = {
2
+ stripeCustomerId: string;
3
+ stripeSubscriptionId: string;
4
+ planId: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,61 @@
1
+ type StripePriceRecurring = {
2
+ aggregate_usage: string | null;
3
+ interval: string;
4
+ interval_count: number;
5
+ meter: string | null;
6
+ trial_period_days: number | null;
7
+ usage_type: string;
8
+ };
9
+ type StripeProductResponse = {
10
+ active: boolean;
11
+ attributes: [];
12
+ created: number;
13
+ default_price: string;
14
+ description: string;
15
+ id: string;
16
+ images: [];
17
+ livemode: boolean;
18
+ marketing_features: [];
19
+ metadata: object;
20
+ name: string;
21
+ object: string;
22
+ package_dimensions: null;
23
+ shippable: null;
24
+ statement_descriptor: null;
25
+ tax_code: string;
26
+ type: string;
27
+ unit_label: null;
28
+ updated: number;
29
+ url: null;
30
+ };
31
+ export type StripePriceResponse = {
32
+ active: boolean;
33
+ billing_scheme: string;
34
+ created: number;
35
+ currency: string;
36
+ custom_unit_amount: number | null;
37
+ id: string;
38
+ livemode: boolean;
39
+ lookup_key: string | null;
40
+ metadata: object;
41
+ nickname: string | null;
42
+ object: string;
43
+ product: StripeProductResponse;
44
+ recurring: StripePriceRecurring;
45
+ tax_behavior: string;
46
+ tiers_mode: string | null;
47
+ transform_quantity: string | null;
48
+ type: string;
49
+ unit_amount_decimal: string;
50
+ unit_amount: number;
51
+ };
52
+ export type StripeUpdateSubscriptionResponse = {
53
+ message: string;
54
+ redirectUrl: string;
55
+ success: boolean;
56
+ };
57
+ export declare enum WEBHOOK_TYPE {
58
+ CUSTOMER_SUBSCRIPTION_CREATED = "customer.subscription.created",
59
+ CUSTOMER_SUBSCRIPTION_UPDATED = "customer.subscription.updated"
60
+ }
61
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WEBHOOK_TYPE = void 0;
4
+ var WEBHOOK_TYPE;
5
+ (function (WEBHOOK_TYPE) {
6
+ WEBHOOK_TYPE["CUSTOMER_SUBSCRIPTION_CREATED"] = "customer.subscription.created";
7
+ WEBHOOK_TYPE["CUSTOMER_SUBSCRIPTION_UPDATED"] = "customer.subscription.updated";
8
+ })(WEBHOOK_TYPE || (exports.WEBHOOK_TYPE = WEBHOOK_TYPE = {}));
@@ -0,0 +1 @@
1
+ export * from './responses';
@@ -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("./responses"), exports);
@@ -0,0 +1,3 @@
1
+ export type UserSettingsResponse = {
2
+ lang: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,3 +6,11 @@ export type UserCreateRequest = {
6
6
  roleId: number;
7
7
  dateOfBirth: Date;
8
8
  };
9
+ export type UserEditRequest = {
10
+ firstname: string;
11
+ lastname: string;
12
+ username: string;
13
+ email: string;
14
+ roleId: number;
15
+ dateOfBirth: Date;
16
+ };
@@ -0,0 +1 @@
1
+ export * from './responses';
@@ -0,0 +1 @@
1
+ export * from './responses';
@@ -0,0 +1,22 @@
1
+ export type CompanyResponse = {
2
+ id: string;
3
+ createdByEmail: string;
4
+ address: {
5
+ country: string;
6
+ countryIsoCode: string;
7
+ state: string;
8
+ stateIsoCode: string;
9
+ city: string;
10
+ postalCode: string;
11
+ street: string;
12
+ buildingNumber: string;
13
+ };
14
+ name: string;
15
+ companyEmail: string;
16
+ taxNumber: string;
17
+ planId: string;
18
+ stripeCustomerId: string;
19
+ stripeSubscriptionId: string;
20
+ subscriptionStatus: string | null;
21
+ trialEnd: number;
22
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,23 +1,27 @@
1
- export * from './candidates';
2
- export * from './candidateStatuses';
3
- export * from './departments';
4
- export * from './frameworks';
5
- export * from './interviewCall';
6
- export * from './interviewFeedback';
7
- export * from './InterviewQuestions';
8
- export * from './interviewQuestionsCustom';
9
- export * from './interviews';
10
- export * from './interviewSetup';
11
- export * from './interviewStatuses';
12
- export * from './interviewTypes';
13
- export * from './offices';
14
- export * from './positionContracts';
15
- export * from './positions';
16
- export * from './positionsJobTypes';
17
- export * from './positionStatuses';
18
- export * from './positionWorkplaces';
19
- export * from './questions';
20
- export * from './roles';
21
- export * from './sections';
22
- export * from './seniorityLevels';
23
- export * from './users';
1
+ export * from "./candidates";
2
+ export * from "./candidateStatuses";
3
+ export * from "./companies";
4
+ export * from "./departments";
5
+ export * from "./frameworks";
6
+ export * from "./interviewCall";
7
+ export * from "./interviewFeedback";
8
+ export * from "./InterviewQuestions";
9
+ export * from "./interviewQuestionsCustom";
10
+ export * from "./interviews";
11
+ export * from "./interviewSetup";
12
+ export * from "./interviewStatuses";
13
+ export * from "./interviewTypes";
14
+ export * from "./offices";
15
+ export * from "./positionContracts";
16
+ export * from "./positions";
17
+ export * from "./positionsJobTypes";
18
+ export * from "./positionStatuses";
19
+ export * from "./positionWorkplaces";
20
+ export * from "./questions";
21
+ export * from "./roles";
22
+ export * from "./sections";
23
+ export * from "./seniorityLevels";
24
+ export * from "./sign";
25
+ export * from "./users";
26
+ export * from "./userSettings";
27
+ export * from "./stripe";
package/dist/esm/index.js CHANGED
@@ -1,23 +1,27 @@
1
- export * from './candidates';
2
- export * from './candidateStatuses';
3
- export * from './departments';
4
- export * from './frameworks';
5
- export * from './interviewCall';
6
- export * from './interviewFeedback';
7
- export * from './InterviewQuestions';
8
- export * from './interviewQuestionsCustom';
9
- export * from './interviews';
10
- export * from './interviewSetup';
11
- export * from './interviewStatuses';
12
- export * from './interviewTypes';
13
- export * from './offices';
14
- export * from './positionContracts';
15
- export * from './positions';
16
- export * from './positionsJobTypes';
17
- export * from './positionStatuses';
18
- export * from './positionWorkplaces';
19
- export * from './questions';
20
- export * from './roles';
21
- export * from './sections';
22
- export * from './seniorityLevels';
23
- export * from './users';
1
+ export * from "./candidates";
2
+ export * from "./candidateStatuses";
3
+ export * from "./companies";
4
+ export * from "./departments";
5
+ export * from "./frameworks";
6
+ export * from "./interviewCall";
7
+ export * from "./interviewFeedback";
8
+ export * from "./InterviewQuestions";
9
+ export * from "./interviewQuestionsCustom";
10
+ export * from "./interviews";
11
+ export * from "./interviewSetup";
12
+ export * from "./interviewStatuses";
13
+ export * from "./interviewTypes";
14
+ export * from "./offices";
15
+ export * from "./positionContracts";
16
+ export * from "./positions";
17
+ export * from "./positionsJobTypes";
18
+ export * from "./positionStatuses";
19
+ export * from "./positionWorkplaces";
20
+ export * from "./questions";
21
+ export * from "./roles";
22
+ export * from "./sections";
23
+ export * from "./seniorityLevels";
24
+ export * from "./sign";
25
+ export * from "./users";
26
+ export * from "./userSettings";
27
+ export * from "./stripe";
@@ -19,7 +19,7 @@ export type InterviewCallResponse = {
19
19
  meetingId: string;
20
20
  similarity: number;
21
21
  interviewDate: string;
22
- position: Pick<PositionResponse, "positionName" | "description" | "qualification" | "niceToHave" | "comment" | 'seniorityLevel'>;
22
+ position: Pick<PositionResponse, "positionName" | "description" | "qualification" | "niceToHaveDescription" | "comment" | 'seniorityLevel'>;
23
23
  interviewType: InterviewTypeResponse;
24
24
  question: (QuestionResponse & {
25
25
  answerRating: number;
@@ -10,10 +10,10 @@ import { SeniorityLevelResponse } from "../../seniorityLevels/responses";
10
10
  export type PositionResponse = {
11
11
  id: number;
12
12
  positionName: string;
13
+ weOfferDescription: string;
14
+ niceToHaveDescription: string;
13
15
  description: string;
14
16
  qualification: string;
15
- niceToHave: string;
16
- weOffer: string;
17
17
  seniorityLevel: SeniorityLevelResponse;
18
18
  status?: PositionStatusesResponse;
19
19
  workplace: PositionWorkplaceResponse;
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,9 @@
1
+ import { CompanyResponse } from "../../companies/responses";
2
+ import { UsersResponse } from "../../users/responses";
3
+ export type SignupRequest = {
4
+ company: Omit<CompanyResponse, "id">;
5
+ user: Omit<UsersResponse, "id" | "roleId" | "settings">;
6
+ password: string;
7
+ confirmPassword: string;
8
+ agreeTermsAndConditions: boolean;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { UsersResponse } from '../../users/responses';
2
+ import { CompanyResponse } from '../../companies/responses';
3
+ export type SigninResponse = {
4
+ user: UsersResponse;
5
+ company: CompanyResponse;
6
+ token: string;
7
+ };
8
+ export type SignupResponse = {
9
+ user: UsersResponse;
10
+ token: string;
11
+ company: CompanyResponse;
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,5 @@
1
+ export type StripeUpdateSubscriptionRequest = {
2
+ stripeCustomerId: string;
3
+ stripeSubscriptionId: string;
4
+ planId: string;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,61 @@
1
+ type StripePriceRecurring = {
2
+ aggregate_usage: string | null;
3
+ interval: string;
4
+ interval_count: number;
5
+ meter: string | null;
6
+ trial_period_days: number | null;
7
+ usage_type: string;
8
+ };
9
+ type StripeProductResponse = {
10
+ active: boolean;
11
+ attributes: [];
12
+ created: number;
13
+ default_price: string;
14
+ description: string;
15
+ id: string;
16
+ images: [];
17
+ livemode: boolean;
18
+ marketing_features: [];
19
+ metadata: object;
20
+ name: string;
21
+ object: string;
22
+ package_dimensions: null;
23
+ shippable: null;
24
+ statement_descriptor: null;
25
+ tax_code: string;
26
+ type: string;
27
+ unit_label: null;
28
+ updated: number;
29
+ url: null;
30
+ };
31
+ export type StripePriceResponse = {
32
+ active: boolean;
33
+ billing_scheme: string;
34
+ created: number;
35
+ currency: string;
36
+ custom_unit_amount: number | null;
37
+ id: string;
38
+ livemode: boolean;
39
+ lookup_key: string | null;
40
+ metadata: object;
41
+ nickname: string | null;
42
+ object: string;
43
+ product: StripeProductResponse;
44
+ recurring: StripePriceRecurring;
45
+ tax_behavior: string;
46
+ tiers_mode: string | null;
47
+ transform_quantity: string | null;
48
+ type: string;
49
+ unit_amount_decimal: string;
50
+ unit_amount: number;
51
+ };
52
+ export type StripeUpdateSubscriptionResponse = {
53
+ message: string;
54
+ redirectUrl: string;
55
+ success: boolean;
56
+ };
57
+ export declare enum WEBHOOK_TYPE {
58
+ CUSTOMER_SUBSCRIPTION_CREATED = "customer.subscription.created",
59
+ CUSTOMER_SUBSCRIPTION_UPDATED = "customer.subscription.updated"
60
+ }
61
+ export {};
@@ -0,0 +1,5 @@
1
+ export var WEBHOOK_TYPE;
2
+ (function (WEBHOOK_TYPE) {
3
+ WEBHOOK_TYPE["CUSTOMER_SUBSCRIPTION_CREATED"] = "customer.subscription.created";
4
+ WEBHOOK_TYPE["CUSTOMER_SUBSCRIPTION_UPDATED"] = "customer.subscription.updated";
5
+ })(WEBHOOK_TYPE || (WEBHOOK_TYPE = {}));
@@ -0,0 +1 @@
1
+ export * from './responses';
@@ -0,0 +1 @@
1
+ export * from './responses';
@@ -0,0 +1,3 @@
1
+ export type UserSettingsResponse = {
2
+ lang: string;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -6,3 +6,11 @@ export type UserCreateRequest = {
6
6
  roleId: number;
7
7
  dateOfBirth: Date;
8
8
  };
9
+ export type UserEditRequest = {
10
+ firstname: string;
11
+ lastname: string;
12
+ username: string;
13
+ email: string;
14
+ roleId: number;
15
+ dateOfBirth: Date;
16
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuulu/xuulu-types",
3
- "version": "1.0.30",
3
+ "version": "1.0.34",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json"
@@ -0,0 +1 @@
1
+ export * from './responses';
@@ -0,0 +1,22 @@
1
+ export type CompanyResponse = {
2
+ id: string;
3
+ createdByEmail: string;
4
+ address: {
5
+ country: string;
6
+ countryIsoCode: string;
7
+ state: string;
8
+ stateIsoCode: string;
9
+ city: string;
10
+ postalCode: string;
11
+ street: string;
12
+ buildingNumber: string;
13
+ };
14
+ name: string;
15
+ companyEmail: string;
16
+ taxNumber: string;
17
+ planId: string;
18
+ stripeCustomerId: string;
19
+ stripeSubscriptionId: string;
20
+ subscriptionStatus: string | null;
21
+ trialEnd: number;
22
+ };
package/src/index.ts CHANGED
@@ -1,23 +1,27 @@
1
- export * from './candidates';
2
- export * from './candidateStatuses';
3
- export * from './departments';
4
- export * from './frameworks';
5
- export * from './interviewCall';
6
- export * from './interviewFeedback';
7
- export * from './InterviewQuestions';
8
- export * from './interviewQuestionsCustom';
9
- export * from './interviews';
10
- export * from './interviewSetup';
11
- export * from './interviewStatuses';
12
- export * from './interviewTypes';
13
- export * from './offices';
14
- export * from './positionContracts';
15
- export * from './positions';
16
- export * from './positionsJobTypes';
17
- export * from './positionStatuses';
18
- export * from './positionWorkplaces';
19
- export * from './questions';
20
- export * from './roles';
21
- export * from './sections';
22
- export * from './seniorityLevels';
23
- export * from './users';
1
+ export * from "./candidates";
2
+ export * from "./candidateStatuses";
3
+ export * from "./companies";
4
+ export * from "./departments";
5
+ export * from "./frameworks";
6
+ export * from "./interviewCall";
7
+ export * from "./interviewFeedback";
8
+ export * from "./InterviewQuestions";
9
+ export * from "./interviewQuestionsCustom";
10
+ export * from "./interviews";
11
+ export * from "./interviewSetup";
12
+ export * from "./interviewStatuses";
13
+ export * from "./interviewTypes";
14
+ export * from "./offices";
15
+ export * from "./positionContracts";
16
+ export * from "./positions";
17
+ export * from "./positionsJobTypes";
18
+ export * from "./positionStatuses";
19
+ export * from "./positionWorkplaces";
20
+ export * from "./questions";
21
+ export * from "./roles";
22
+ export * from "./sections";
23
+ export * from "./seniorityLevels";
24
+ export * from "./sign";
25
+ export * from "./users";
26
+ export * from "./userSettings";
27
+ export * from "./stripe";
@@ -25,7 +25,7 @@ export type InterviewCallResponse = {
25
25
  interviewDate: string;
26
26
  position: Pick<
27
27
  PositionResponse,
28
- "positionName" | "description" | "qualification" | "niceToHave" | "comment" | 'seniorityLevel'
28
+ "positionName" | "description" | "qualification" | "niceToHaveDescription" | "comment" | 'seniorityLevel'
29
29
  >;
30
30
  interviewType: InterviewTypeResponse;
31
31
  question: (QuestionResponse & { answerRating: number; })[];
@@ -11,10 +11,10 @@ import { SeniorityLevelResponse } from "../../seniorityLevels/responses";
11
11
  export type PositionResponse = {
12
12
  id: number;
13
13
  positionName: string;
14
+ weOfferDescription: string;
15
+ niceToHaveDescription: string;
14
16
  description: string;
15
17
  qualification: string;
16
- niceToHave: string;
17
- weOffer: string;
18
18
  seniorityLevel: SeniorityLevelResponse;
19
19
  status?: PositionStatusesResponse;
20
20
  workplace: PositionWorkplaceResponse;
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,10 @@
1
+ import { CompanyResponse } from "../../companies/responses";
2
+ import { UsersResponse } from "../../users/responses";
3
+
4
+ export type SignupRequest = {
5
+ company: Omit<CompanyResponse, "id">;
6
+ user: Omit<UsersResponse, "id" | "roleId" | "settings">;
7
+ password: string;
8
+ confirmPassword: string;
9
+ agreeTermsAndConditions: boolean;
10
+ };
@@ -0,0 +1,14 @@
1
+ import { UsersResponse } from '../../users/responses';
2
+ import { CompanyResponse } from '../../companies/responses';
3
+
4
+ export type SigninResponse = {
5
+ user: UsersResponse;
6
+ company: CompanyResponse;
7
+ token: string;
8
+ };
9
+
10
+ export type SignupResponse = {
11
+ user: UsersResponse;
12
+ token: string;
13
+ company: CompanyResponse;
14
+ };
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,5 @@
1
+ export type StripeUpdateSubscriptionRequest = {
2
+ stripeCustomerId: string;
3
+ stripeSubscriptionId: string;
4
+ planId: string;
5
+ };
@@ -0,0 +1,64 @@
1
+ type StripePriceRecurring = {
2
+ aggregate_usage: string | null;
3
+ interval: string;
4
+ interval_count: number;
5
+ meter: string | null;
6
+ trial_period_days: number | null;
7
+ usage_type: string;
8
+ };
9
+
10
+ type StripeProductResponse = {
11
+ active: boolean;
12
+ attributes: [];
13
+ created: number;
14
+ default_price: string;
15
+ description: string;
16
+ id: string;
17
+ images: [];
18
+ livemode: boolean;
19
+ marketing_features: [];
20
+ metadata: object;
21
+ name: string;
22
+ object: string;
23
+ package_dimensions: null;
24
+ shippable: null;
25
+ statement_descriptor: null;
26
+ tax_code: string;
27
+ type: string;
28
+ unit_label: null;
29
+ updated: number;
30
+ url: null;
31
+ };
32
+
33
+ export type StripePriceResponse = {
34
+ active: boolean;
35
+ billing_scheme: string;
36
+ created: number;
37
+ currency: string;
38
+ custom_unit_amount: number | null;
39
+ id: string;
40
+ livemode: boolean;
41
+ lookup_key: string | null;
42
+ metadata: object;
43
+ nickname: string | null;
44
+ object: string;
45
+ product: StripeProductResponse;
46
+ recurring: StripePriceRecurring;
47
+ tax_behavior: string;
48
+ tiers_mode: string | null;
49
+ transform_quantity: string | null;
50
+ type: string;
51
+ unit_amount_decimal: string;
52
+ unit_amount: number;
53
+ };
54
+
55
+ export type StripeUpdateSubscriptionResponse = {
56
+ message: string;
57
+ redirectUrl: string;
58
+ success: boolean;
59
+ };
60
+
61
+ export enum WEBHOOK_TYPE {
62
+ CUSTOMER_SUBSCRIPTION_CREATED = 'customer.subscription.created',
63
+ CUSTOMER_SUBSCRIPTION_UPDATED = 'customer.subscription.updated',
64
+ }
@@ -0,0 +1 @@
1
+ export * from './responses';
@@ -0,0 +1,3 @@
1
+ export type UserSettingsResponse = {
2
+ lang: string;
3
+ };
@@ -5,4 +5,13 @@ export type UserCreateRequest = {
5
5
  email: string;
6
6
  roleId: number;
7
7
  dateOfBirth: Date;
8
+ };
9
+
10
+ export type UserEditRequest = {
11
+ firstname: string;
12
+ lastname: string;
13
+ username: string;
14
+ email: string;
15
+ roleId: number;
16
+ dateOfBirth: Date;
8
17
  };