@justins-home/mocks 0.1.0 → 0.1.1
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/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +1 -0
- package/package.json +11 -6
- package/.turbo/turbo-build.log +0 -14
- package/CHANGELOG.md +0 -21
- package/src/index.ts +0 -5
- package/src/inspections.mock.ts +0 -17
- package/src/listings.mock.ts +0 -34
- package/src/notifications.mock.ts +0 -15
- package/src/tenancies.mock.ts +0 -27
- package/src/users.mock.ts +0 -14
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UserType, ListingResource, TenancyResource, NotificationResource, InspectionResource } from '@justins-home/types';
|
|
2
|
+
|
|
3
|
+
declare const mockUsers: UserType[];
|
|
4
|
+
|
|
5
|
+
declare const mockListings: ListingResource[];
|
|
6
|
+
|
|
7
|
+
declare const mockTenancies: TenancyResource[];
|
|
8
|
+
|
|
9
|
+
declare const mockNotifications: NotificationResource[];
|
|
10
|
+
|
|
11
|
+
declare const mockInspections: InspectionResource[];
|
|
12
|
+
|
|
13
|
+
export { mockInspections, mockListings, mockNotifications, mockTenancies, mockUsers };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UserType, ListingResource, TenancyResource, NotificationResource, InspectionResource } from '@justins-home/types';
|
|
2
|
+
|
|
3
|
+
declare const mockUsers: UserType[];
|
|
4
|
+
|
|
5
|
+
declare const mockListings: ListingResource[];
|
|
6
|
+
|
|
7
|
+
declare const mockTenancies: TenancyResource[];
|
|
8
|
+
|
|
9
|
+
declare const mockNotifications: NotificationResource[];
|
|
10
|
+
|
|
11
|
+
declare const mockInspections: InspectionResource[];
|
|
12
|
+
|
|
13
|
+
export { mockInspections, mockListings, mockNotifications, mockTenancies, mockUsers };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justins-home/mocks",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
6
11
|
"publishConfig": {
|
|
7
12
|
"access": "public"
|
|
8
13
|
},
|
|
9
14
|
"dependencies": {
|
|
10
|
-
"@justins-home/types": "1.0.
|
|
11
|
-
"@justins-home/enums": "0.1.
|
|
15
|
+
"@justins-home/types": "1.0.1",
|
|
16
|
+
"@justins-home/enums": "0.1.1"
|
|
12
17
|
},
|
|
13
18
|
"scripts": {
|
|
14
19
|
"lint": "eslint src",
|
|
15
|
-
"check-types": "tsc --noEmit
|
|
16
|
-
"build": "tsup src/index.ts --format esm,cjs",
|
|
20
|
+
"check-types": "tsc --noEmit",
|
|
21
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --tsconfig tsconfig.json",
|
|
17
22
|
"test": "vitest"
|
|
18
23
|
}
|
|
19
24
|
}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
WARN Issue while reading "/home/runner/work/justins-home-platform-ui/justins-home-platform-ui/.npmrc". Failed to replace env in config: ${NODE_AUTH_TOKEN}
|
|
2
|
-
|
|
3
|
-
> @justins-home/mocks@0.1.0 build /home/runner/work/justins-home-platform-ui/justins-home-platform-ui/packages/mocks
|
|
4
|
-
> tsup src/index.ts --format esm,cjs
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
-
[34mCLI[39m tsup v8.5.1
|
|
8
|
-
[34mCLI[39m Target: node16
|
|
9
|
-
[34mESM[39m Build start
|
|
10
|
-
[34mCJS[39m Build start
|
|
11
|
-
[32mCJS[39m [1mdist/index.js [22m[32m2.67 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in 47ms
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m1.51 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in 47ms
|
package/CHANGELOG.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# @justins-home/mocks
|
|
2
|
-
|
|
3
|
-
## 0.1.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- aced108: added minor pumb
|
|
8
|
-
|
|
9
|
-
### Patch Changes
|
|
10
|
-
|
|
11
|
-
- Updated dependencies [aced108]
|
|
12
|
-
- Updated dependencies [26690e2]
|
|
13
|
-
- @justins-home/enums@0.1.0
|
|
14
|
-
- @justins-home/types@1.0.0
|
|
15
|
-
|
|
16
|
-
## 0.0.1
|
|
17
|
-
|
|
18
|
-
### Patch Changes
|
|
19
|
-
|
|
20
|
-
- Updated dependencies [3f39ece]
|
|
21
|
-
- @justins-home/types@0.0.2
|
package/src/index.ts
DELETED
package/src/inspections.mock.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { InspectionResource } from '@justins-home/types';
|
|
2
|
-
|
|
3
|
-
export const mockInspections: InspectionResource[] = [
|
|
4
|
-
{
|
|
5
|
-
uid: 'insp_1',
|
|
6
|
-
|
|
7
|
-
inspection_type: 'routine',
|
|
8
|
-
|
|
9
|
-
status: 'scheduled',
|
|
10
|
-
|
|
11
|
-
scheduled_date: '2026-04-01',
|
|
12
|
-
|
|
13
|
-
summary: 'Routine inspection',
|
|
14
|
-
|
|
15
|
-
created_at: '2026-03-01',
|
|
16
|
-
},
|
|
17
|
-
];
|
package/src/listings.mock.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ListingResource } from '@justins-home/types';
|
|
2
|
-
import { ListingEnums } from '@justins-home/enums';
|
|
3
|
-
|
|
4
|
-
export const mockListings: ListingResource[] = [
|
|
5
|
-
{
|
|
6
|
-
uid: 'lst_1',
|
|
7
|
-
|
|
8
|
-
vertical: 'property',
|
|
9
|
-
|
|
10
|
-
listing_type: 'rent',
|
|
11
|
-
|
|
12
|
-
state: ListingEnums.ListingState.PUBLISHED,
|
|
13
|
-
|
|
14
|
-
is_visible: true,
|
|
15
|
-
|
|
16
|
-
price: {
|
|
17
|
-
amount: '1200',
|
|
18
|
-
currency: 'GBP',
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
owner: {
|
|
22
|
-
id: 1,
|
|
23
|
-
uid: 'usr_1',
|
|
24
|
-
name: 'John Landlord',
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
summary: {
|
|
28
|
-
property_type: 'apartment',
|
|
29
|
-
bedrooms: 2,
|
|
30
|
-
bathrooms: 1,
|
|
31
|
-
city: 'London',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NotificationResource } from '@justins-home/types';
|
|
2
|
-
|
|
3
|
-
export const mockNotifications: NotificationResource[] = [
|
|
4
|
-
{
|
|
5
|
-
id: 'not_1',
|
|
6
|
-
|
|
7
|
-
type: 'LISTING_APPROVED',
|
|
8
|
-
|
|
9
|
-
title: 'Listing Approved',
|
|
10
|
-
|
|
11
|
-
body: 'Your listing has been approved.',
|
|
12
|
-
|
|
13
|
-
created_at: '2026-03-01',
|
|
14
|
-
},
|
|
15
|
-
];
|
package/src/tenancies.mock.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TenancyResource } from '@justins-home/types';
|
|
2
|
-
|
|
3
|
-
export const mockTenancies: TenancyResource[] = [
|
|
4
|
-
{
|
|
5
|
-
uid: 'ten_1',
|
|
6
|
-
|
|
7
|
-
listing_id: 1,
|
|
8
|
-
|
|
9
|
-
landlord_id: 1,
|
|
10
|
-
|
|
11
|
-
tenant_id: 2,
|
|
12
|
-
|
|
13
|
-
rent_amount: '1200',
|
|
14
|
-
|
|
15
|
-
deposit_amount: '1200',
|
|
16
|
-
|
|
17
|
-
state: 'active',
|
|
18
|
-
|
|
19
|
-
start_date: '2025-01-01',
|
|
20
|
-
|
|
21
|
-
end_date: '2026-01-01',
|
|
22
|
-
|
|
23
|
-
is_periodic: false,
|
|
24
|
-
|
|
25
|
-
created_at: '2025-01-01',
|
|
26
|
-
},
|
|
27
|
-
];
|