@deallony/shared 1.0.60 → 1.0.61

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.
@@ -44,6 +44,7 @@ export type GetAdsFilterDto = {
44
44
  ids?: number[];
45
45
  city_id?: number;
46
46
  district_ids?: number[];
47
+ boundary_ids?: number[];
47
48
  category_id?: number;
48
49
  user_id?: number;
49
50
  subject_type?: SubjectType;
@@ -1,5 +1,5 @@
1
- export * as Ad from './AdType';
2
- export * as AdminBoundary from './AdminBoundaryType';
3
- export * as Media from './MediaType';
4
- export * from './PropertyTypeType';
5
- export * as Google from './GoogleType';
1
+ export * as Ad from './AdType';
2
+ export * as AdminBoundary from './AdminBoundaryType';
3
+ export * as Media from './MediaType';
4
+ export * from './PropertyTypeType';
5
+ export * as Google from './GoogleType';
@@ -1,5 +1,5 @@
1
- export * as Ad from './AdType';
2
- export * as AdminBoundary from './AdminBoundaryType';
3
- export * as Media from './MediaType';
4
- export * from './PropertyTypeType';
5
- export * as Google from './GoogleType';
1
+ export * as Ad from './AdType';
2
+ export * as AdminBoundary from './AdminBoundaryType';
3
+ export * as Media from './MediaType';
4
+ export * from './PropertyTypeType';
5
+ export * as Google from './GoogleType';
@@ -1,15 +1,15 @@
1
- import { MediaType } from "../MediaType";
2
- export type ProductCategoryType = {
3
- id?: number;
4
- parent_id: number | null;
5
- name: string;
6
- media?: MediaType;
7
- created_at: string;
8
- updated_at: string;
9
- parent?: ProductCategoryType;
10
- isBranch?: boolean;
11
- children?: ProductCategoryType[];
12
- savedBy?: {
13
- id: number;
14
- };
15
- };
1
+ import { MediaType } from "../MediaType";
2
+ export type ProductCategoryType = {
3
+ id?: number;
4
+ parent_id: number | null;
5
+ name: string;
6
+ media?: MediaType;
7
+ created_at: string;
8
+ updated_at: string;
9
+ parent?: ProductCategoryType;
10
+ isBranch?: boolean;
11
+ children?: ProductCategoryType[];
12
+ savedBy?: {
13
+ id: number;
14
+ };
15
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- import { SubjectTableType } from "../SubjectType";
2
- export type UsedProductAgeType = {
3
- id?: number;
4
- name: string;
5
- description?: string;
6
- subject_type?: SubjectTableType;
7
- };
1
+ import { SubjectTableType } from "../SubjectType";
2
+ export type UsedProductAgeType = {
3
+ id?: number;
4
+ name: string;
5
+ description?: string;
6
+ subject_type?: SubjectTableType;
7
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- import { SubjectTableType } from "../SubjectType";
2
- export type UsedProductConditionType = {
3
- id?: number;
4
- name: string;
5
- description?: string;
6
- subject_type?: SubjectTableType;
7
- };
1
+ import { SubjectTableType } from "../SubjectType";
2
+ export type UsedProductConditionType = {
3
+ id?: number;
4
+ name: string;
5
+ description?: string;
6
+ subject_type?: SubjectTableType;
7
+ };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
1
- export type UsedProductType = {
2
- id?: number;
3
- condition_id: number;
4
- age_id?: number;
5
- isFree?: boolean;
6
- };
1
+ export type UsedProductType = {
2
+ id?: number;
3
+ condition_id: number;
4
+ age_id?: number;
5
+ isFree?: boolean;
6
+ };
@@ -1,2 +1,2 @@
1
- // import { IMedia } from "../MediaType";
2
- export {};
1
+ // import { IMedia } from "../MediaType";
2
+ export {};
@@ -1,45 +1,2 @@
1
- import { z } from 'zod';
2
- export declare const createAdSchema: z.ZodObject<{
3
- title: z.ZodOptional<z.ZodString>;
4
- status_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6
- category_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
7
- price: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
8
- currency_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
9
- negotiable: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
10
- city_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
11
- latitude: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
12
- longitude: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
13
- media: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny>>>;
14
- base_price: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
15
- contact_methods: z.ZodNullable<z.ZodOptional<z.ZodObject<{
16
- by_message: z.ZodOptional<z.ZodBoolean>;
17
- by_whatsapp: z.ZodOptional<z.ZodBoolean>;
18
- by_call: z.ZodOptional<z.ZodBoolean>;
19
- }, z.core.$strip>>>;
20
- selected_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
- user_id: z.ZodCoercedNumber<unknown>;
22
- id: z.ZodOptional<z.ZodNever>;
23
- }, z.core.$strip>;
24
- export declare const updateAdSchema: z.ZodObject<{
25
- id: z.ZodCoercedNumber<unknown>;
26
- title: z.ZodOptional<z.ZodString>;
27
- status_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
28
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29
- category_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
30
- price: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
31
- currency_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
32
- negotiable: z.ZodNullable<z.ZodOptional<z.ZodCoercedBoolean<unknown>>>;
33
- city_id: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
34
- latitude: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
35
- longitude: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
36
- media: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny>>>;
37
- base_price: z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
38
- contact_methods: z.ZodNullable<z.ZodOptional<z.ZodObject<{
39
- by_message: z.ZodOptional<z.ZodBoolean>;
40
- by_whatsapp: z.ZodOptional<z.ZodBoolean>;
41
- by_call: z.ZodOptional<z.ZodBoolean>;
42
- }, z.core.$strip>>>;
43
- selected_phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
- user_id: z.ZodCoercedNumber<unknown>;
45
- }, z.core.$strip>;
1
+ export declare const createAdSchema: any;
2
+ export declare const updateAdSchema: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,8 +10,9 @@
10
10
  "scripts": {
11
11
  "login": "npm login",
12
12
  "deploy": "node scripts/publish.js",
13
+ "all:update": "npm run deploy && npm run mobile:update",
13
14
  "=========": "============= UPDATE APPS LIBRARY =============",
14
- "mobile:update": "cd ../deallony && npm install @deallony/shared@latest",
15
+ "mobile:update": "cd ../app && npm install @deallony/shared@latest",
15
16
  "========": "============ DEFAULT ============",
16
17
  "build": "tsc",
17
18
  "watch": "tsc --watch",
@@ -1,17 +0,0 @@
1
- export type AdminBoundary = {
2
- id: number;
3
- parentId?: number | null;
4
- active?: boolean;
5
- checked?: boolean;
6
- osmId?: number | null;
7
- adminLevel?: number | null;
8
- path?: string | null;
9
- normalizedLevel?: number | null;
10
- name?: string | null;
11
- nameEn?: string | null;
12
- boundary?: string | null;
13
- adminCentreNodeId?: number | null;
14
- adminCentreNodeLat?: number | null;
15
- adminCentreNodeLng?: number | null;
16
- geometry?: any | null;
17
- };
@@ -1 +0,0 @@
1
- export {};