@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.
@@ -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 };
@@ -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
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
package/package.json CHANGED
@@ -1,19 +1,24 @@
1
1
  {
2
2
  "name": "@justins-home/mocks",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
- "main": "src/index.ts",
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.0",
11
- "@justins-home/enums": "0.1.0"
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 -p ../../tsconfig.base.json",
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
  }
@@ -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
- CLI Building entry: src/index.ts
7
- CLI tsup v8.5.1
8
- CLI Target: node16
9
- ESM Build start
10
- CJS Build start
11
- CJS dist/index.js 2.67 KB
12
- CJS ⚡️ Build success in 47ms
13
- ESM dist/index.mjs 1.51 KB
14
- ESM ⚡️ 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
@@ -1,5 +0,0 @@
1
- export * from './users.mock';
2
- export * from './listings.mock';
3
- export * from './tenancies.mock';
4
- export * from './notifications.mock';
5
- export * from './inspections.mock';
@@ -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
- ];
@@ -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
- ];
@@ -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
- ];
package/src/users.mock.ts DELETED
@@ -1,14 +0,0 @@
1
- import { UserType } from '@justins-home/types';
2
-
3
- export const mockUsers: UserType[] = [
4
- {
5
- id: 1,
6
- uid: 'usr_1',
7
- name: 'John Landlord',
8
- },
9
- {
10
- id: 2,
11
- uid: 'usr_2',
12
- name: 'Sarah Tenant',
13
- },
14
- ];