@@ -19,6 +19,8 @@ import {
1919import type { QuestionScreening } from '../../src/entity/questions/QuestionScreening' ;
2020import type { QuestionFeedback } from '../../src/entity/questions/QuestionFeedback' ;
2121import { demoCompany } from '../../src/common' ;
22+ import type { DatasetLocation } from '../../src/entity/dataset/DatasetLocation' ;
23+ import type { OpportunityLocation } from '../../src/entity/opportunities/OpportunityLocation' ;
2224
2325export const organizationsFixture : DeepPartial < Organization > [ ] = [
2426 {
@@ -71,6 +73,64 @@ export const organizationsFixture: DeepPartial<Organization>[] = [
7173 } ,
7274] ;
7375
76+ export const datasetLocationsFixture : DeepPartial < DatasetLocation > [ ] = [
77+ {
78+ id : '660e8400-e29b-41d4-a716-446655440001' ,
79+ country : 'Norway' ,
80+ city : null ,
81+ subdivision : null ,
82+ iso2 : 'NO' ,
83+ iso3 : 'NOR' ,
84+ externalId : 'norway-remote' ,
85+ } ,
86+ {
87+ id : '660e8400-e29b-41d4-a716-446655440002' ,
88+ country : 'USA' ,
89+ city : null ,
90+ subdivision : null ,
91+ iso2 : 'US' ,
92+ iso3 : 'USA' ,
93+ externalId : 'usa-hybrid' ,
94+ } ,
95+ {
96+ id : '660e8400-e29b-41d4-a716-446655440003' ,
97+ country : 'USA' ,
98+ city : 'San Francisco' ,
99+ subdivision : 'CA' ,
100+ iso2 : 'US' ,
101+ iso3 : 'USA' ,
102+ externalId : 'usa-sf-ca' ,
103+ } ,
104+ ] ;
105+
106+ export const opportunityLocationsFixture : DeepPartial < OpportunityLocation > [ ] = [
107+ {
108+ opportunityId : '550e8400-e29b-41d4-a716-446655440001' ,
109+ locationId : '660e8400-e29b-41d4-a716-446655440001' ,
110+ type : LocationType . REMOTE ,
111+ } ,
112+ {
113+ opportunityId : '550e8400-e29b-41d4-a716-446655440002' ,
114+ locationId : '660e8400-e29b-41d4-a716-446655440002' ,
115+ type : LocationType . HYBRID ,
116+ } ,
117+ {
118+ opportunityId : '550e8400-e29b-41d4-a716-446655440003' ,
119+ locationId : '660e8400-e29b-41d4-a716-446655440001' ,
120+ type : LocationType . REMOTE ,
121+ } ,
122+ {
123+ opportunityId : '550e8400-e29b-41d4-a716-446655440004' ,
124+ locationId : '660e8400-e29b-41d4-a716-446655440002' ,
125+ type : LocationType . HYBRID ,
126+ } ,
127+ {
128+ opportunityId : '550e8400-e29b-41d4-a716-446655440005' ,
129+ locationId : '660e8400-e29b-41d4-a716-446655440001' ,
130+ type : LocationType . REMOTE ,
131+ } ,
132+ ] ;
133+
74134export const opportunitiesFixture : DeepPartial < OpportunityJob > [ ] = [
75135 {
76136 id : '550e8400-e29b-41d4-a716-446655440001' ,
@@ -100,12 +160,6 @@ export const opportunitiesFixture: DeepPartial<OpportunityJob>[] = [
100160 createdAt : new Date ( '2023-01-01' ) ,
101161 updatedAt : new Date ( '2023-01-01' ) ,
102162 organizationId : '550e8400-e29b-41d4-a716-446655440000' ,
103- location : [
104- {
105- type : LocationType . REMOTE ,
106- country : 'Norway' ,
107- } ,
108- ] ,
109163 } ,
110164 {
111165 id : '550e8400-e29b-41d4-a716-446655440002' ,
@@ -134,12 +188,6 @@ export const opportunitiesFixture: DeepPartial<OpportunityJob>[] = [
134188 createdAt : new Date ( '2023-01-02' ) ,
135189 updatedAt : new Date ( '2023-01-02' ) ,
136190 organizationId : '550e8400-e29b-41d4-a716-446655440000' ,
137- location : [
138- {
139- type : LocationType . HYBRID ,
140- country : 'USA' ,
141- } ,
142- ] ,
143191 } ,
144192 {
145193 id : '550e8400-e29b-41d4-a716-446655440003' ,
@@ -168,12 +216,6 @@ export const opportunitiesFixture: DeepPartial<OpportunityJob>[] = [
168216 createdAt : new Date ( '2023-01-01' ) ,
169217 updatedAt : new Date ( '2023-01-01' ) ,
170218 organizationId : '550e8400-e29b-41d4-a716-446655440000' ,
171- location : [
172- {
173- type : LocationType . REMOTE ,
174- country : 'Norway' ,
175- } ,
176- ] ,
177219 } ,
178220 {
179221 id : '550e8400-e29b-41d4-a716-446655440004' ,
@@ -202,12 +244,6 @@ export const opportunitiesFixture: DeepPartial<OpportunityJob>[] = [
202244 createdAt : new Date ( '2023-01-02' ) ,
203245 updatedAt : new Date ( '2023-01-02' ) ,
204246 organizationId : 'ed487a47-6f4d-480f-9712-f48ab29db27c' ,
205- location : [
206- {
207- type : LocationType . HYBRID ,
208- country : 'USA' ,
209- } ,
210- ] ,
211247 } ,
212248 {
213249 id : '550e8400-e29b-41d4-a716-446655440005' ,
@@ -236,12 +272,6 @@ export const opportunitiesFixture: DeepPartial<OpportunityJob>[] = [
236272 createdAt : new Date ( '2023-01-03' ) ,
237273 updatedAt : new Date ( '2023-01-03' ) ,
238274 organizationId : demoCompany . id ,
239- location : [
240- {
241- type : LocationType . REMOTE ,
242- country : 'Norway' ,
243- } ,
244- ] ,
245275 } ,
246276] ;
247277
0 commit comments