@xuulu/xuulu-types 1.0.32 → 1.0.35

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.
@@ -1,26 +1,27 @@
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';
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
@@ -40,3 +40,4 @@ __exportStar(require("./seniorityLevels"), exports);
40
40
  __exportStar(require("./sign"), exports);
41
41
  __exportStar(require("./users"), exports);
42
42
  __exportStar(require("./userSettings"), exports);
43
+ __exportStar(require("./stripe"), exports);
@@ -1 +1,2 @@
1
+ export * from './requests';
1
2
  export * from './responses';
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
17
18
  __exportStar(require("./responses"), exports);
@@ -0,0 +1,15 @@
1
+ import { CompanyResponse } from "../../companies/responses";
2
+ import { UsersResponse } from "../../users/responses";
3
+ export type SigninRequest = {
4
+ email: string;
5
+ password: string;
6
+ };
7
+ export type SignupRequest = {
8
+ company: Omit<CompanyResponse, "id">;
9
+ user: Omit<UsersResponse, "id" | "roleId" | "settings">;
10
+ password: string;
11
+ confirmPassword: string;
12
+ agreeTermsAndConditions: boolean;
13
+ planId: string;
14
+ allowExtraEmails: boolean;
15
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,6 @@ export type SigninResponse = {
7
7
  };
8
8
  export type SignupResponse = {
9
9
  user: UsersResponse;
10
- company: CompanyResponse;
11
10
  token: string;
11
+ company: CompanyResponse;
12
12
  };
@@ -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 = {}));
@@ -1,26 +1,27 @@
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';
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,26 +1,27 @@
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';
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";
@@ -1 +1,2 @@
1
+ export * from './requests';
1
2
  export * from './responses';
@@ -1 +1,2 @@
1
+ export * from './requests';
1
2
  export * from './responses';
@@ -0,0 +1,15 @@
1
+ import { CompanyResponse } from "../../companies/responses";
2
+ import { UsersResponse } from "../../users/responses";
3
+ export type SigninRequest = {
4
+ email: string;
5
+ password: string;
6
+ };
7
+ export type SignupRequest = {
8
+ company: Omit<CompanyResponse, "id">;
9
+ user: Omit<UsersResponse, "id" | "roleId" | "settings">;
10
+ password: string;
11
+ confirmPassword: string;
12
+ agreeTermsAndConditions: boolean;
13
+ planId: string;
14
+ allowExtraEmails: boolean;
15
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -7,6 +7,6 @@ export type SigninResponse = {
7
7
  };
8
8
  export type SignupResponse = {
9
9
  user: UsersResponse;
10
- company: CompanyResponse;
11
10
  token: string;
11
+ company: CompanyResponse;
12
12
  };
@@ -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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuulu/xuulu-types",
3
- "version": "1.0.32",
3
+ "version": "1.0.35",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json"
package/src/index.ts CHANGED
@@ -1,26 +1,27 @@
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';
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/src/sign/index.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './requests';
1
2
  export * from './responses';
@@ -0,0 +1,17 @@
1
+ import { CompanyResponse } from "../../companies/responses";
2
+ import { UsersResponse } from "../../users/responses";
3
+
4
+ export type SigninRequest = {
5
+ email: string;
6
+ password: string;
7
+ };
8
+
9
+ export type SignupRequest = {
10
+ company: Omit<CompanyResponse, "id">;
11
+ user: Omit<UsersResponse, "id" | "roleId" | "settings">;
12
+ password: string;
13
+ confirmPassword: string;
14
+ agreeTermsAndConditions: boolean;
15
+ planId: string;
16
+ allowExtraEmails: boolean
17
+ };
@@ -9,6 +9,6 @@ export type SigninResponse = {
9
9
 
10
10
  export type SignupResponse = {
11
11
  user: UsersResponse;
12
- company: CompanyResponse;
13
12
  token: string;
13
+ company: CompanyResponse;
14
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
+ }