@cool-digital-solutions/interferir-models 1.2.79 → 1.2.81

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.
@@ -7,7 +7,68 @@ const mongoose_1 = require("mongoose");
7
7
  const express_http_context_1 = __importDefault(require("express-http-context"));
8
8
  const _config_1 = require("../config");
9
9
  const aiHrCandidateCompanySchema = new mongoose_1.Schema({
10
- data: { type: Object, required: true },
10
+ name: { type: String, required: true },
11
+ publicIdentifier: { type: String, required: true },
12
+ urn: { type: String, required: true },
13
+ linkedinId: { type: Number, required: true },
14
+ url: { type: String, required: true },
15
+ industry: [
16
+ {
17
+ name: { type: String, required: true },
18
+ urn: { type: String, required: true },
19
+ },
20
+ ],
21
+ headline: { type: String, required: true },
22
+ description: { type: String, required: true },
23
+ employeeCount: { type: Number, required: true },
24
+ employeeCountRange: {
25
+ start: { type: Number, required: true },
26
+ end: { type: Number, default: null },
27
+ },
28
+ followersCount: { type: Number, required: true },
29
+ foundedOn: { type: Number, required: true },
30
+ phone: { type: String, default: null },
31
+ specialities: [{ type: String }],
32
+ locations: [
33
+ {
34
+ streetAddressOptOut: { type: Boolean, required: true },
35
+ description: { type: String, default: null },
36
+ address: {
37
+ country: { type: String, required: true },
38
+ geographicArea: { type: String, default: null },
39
+ line4: { type: String, default: null },
40
+ city: { type: String, default: null },
41
+ postalCode: { type: String, default: null },
42
+ line3: { type: String, default: null },
43
+ line2: { type: String, default: null },
44
+ line1: { type: String, default: null },
45
+ },
46
+ headquarter: { type: Boolean, required: true },
47
+ },
48
+ ],
49
+ funding: {
50
+ lastRound: {
51
+ funding: {
52
+ amount: { type: String, required: true },
53
+ },
54
+ investors: { type: Object, default: {} },
55
+ },
56
+ },
57
+ universalName: { type: String, required: true },
58
+ logo: { type: String, required: true },
59
+ backgroundImage: { type: String, required: true },
60
+ websiteUrl: { type: String, required: true },
61
+ organizationType: { type: String, required: true },
62
+ stockSymbol: { type: String, default: null },
63
+ isClaimable: { type: Boolean, required: true },
64
+ defaultLocale: { type: String, required: true },
65
+ crunchbaseUrl: { type: String, default: null },
66
+ callToAction: {
67
+ displayText: { type: String, required: true },
68
+ visible: { type: Boolean, required: true },
69
+ type: { type: String, required: true },
70
+ url: { type: String, required: true },
71
+ },
11
72
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
12
73
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
13
74
  updatedDate: Number,
@@ -12,6 +12,7 @@ const strategyGameBoardSchema = new mongoose_1.Schema({
12
12
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', required: true },
13
13
  contentType: { type: String, enum: Object.values(strategy_game_board_type_1.GameBoardContentType), required: true },
14
14
  contentId: { type: mongoose_1.Schema.Types.ObjectId, required: true },
15
+ problemId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Problem', default: null },
15
16
  categories: { type: [String], enum: Object.values(strategy_game_board_type_1.GameBoardCategory), required: true },
16
17
  createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
17
18
  updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User', default: null },
@@ -1,6 +1,70 @@
1
1
  import { BaseModel, BaseSchema } from '../config';
2
+ interface IIndustry {
3
+ name: string;
4
+ urn: string;
5
+ }
6
+ interface IEmployeeCountRange {
7
+ start: number;
8
+ end: number | null;
9
+ }
10
+ interface IAddress {
11
+ country: string;
12
+ geographicArea: string | null;
13
+ line4: string | null;
14
+ city: string | null;
15
+ postalCode: string | null;
16
+ line3: string | null;
17
+ line2: string | null;
18
+ line1: string | null;
19
+ }
20
+ interface ILocation {
21
+ streetAddressOptOut: boolean;
22
+ description: string | null;
23
+ address: IAddress;
24
+ headquarter: boolean;
25
+ }
26
+ interface IFunding {
27
+ lastRound: {
28
+ funding: {
29
+ amount: string;
30
+ };
31
+ investors: Record<string, any>;
32
+ };
33
+ }
34
+ interface ICallToAction {
35
+ displayText: string;
36
+ visible: boolean;
37
+ type: string;
38
+ url: string;
39
+ }
2
40
  export interface IAiHrCandidateCompany extends BaseSchema {
3
- data: object;
41
+ name: string;
42
+ publicIdentifier: string;
43
+ urn: string;
44
+ linkedinId: number;
45
+ url: string;
46
+ industry: IIndustry[];
47
+ headline: string;
48
+ description: string;
49
+ employeeCount: number;
50
+ employeeCountRange: IEmployeeCountRange;
51
+ followersCount: number;
52
+ foundedOn: number;
53
+ phone: string | null;
54
+ specialities: string[];
55
+ locations: ILocation[];
56
+ funding: IFunding;
57
+ universalName: string;
58
+ logo: string;
59
+ backgroundImage: string;
60
+ websiteUrl: string;
61
+ organizationType: string;
62
+ stockSymbol: string | null;
63
+ isClaimable: boolean;
64
+ defaultLocale: string;
65
+ crunchbaseUrl: string | null;
66
+ callToAction: ICallToAction;
4
67
  }
5
68
  export interface IAiHrCandidateCompanyModel extends BaseModel<IAiHrCandidateCompany> {
6
69
  }
70
+ export {};
@@ -24,7 +24,7 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import { Types } from 'mongoose';
26
26
  import { BaseModel, BaseSchema } from '../config';
27
- import { IUser, ITeam } from './';
27
+ import { IUser, ITeam, IProblem } from './';
28
28
  export declare enum GameBoardCategory {
29
29
  BUILD = "build",
30
30
  PARTNER = "partner",
@@ -41,6 +41,7 @@ export interface IStrategyGameBoard extends BaseSchema {
41
41
  user: Types.ObjectId | IUser;
42
42
  contentType: GameBoardContentType;
43
43
  contentId: Types.ObjectId;
44
+ problemId: Types.ObjectId | IProblem;
44
45
  categories: GameBoardCategory[];
45
46
  }
46
47
  export interface IStrategyGameBoardModel extends BaseModel<IStrategyGameBoard> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.2.79",
3
+ "version": "1.2.81",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"