@myrjfa/state 2.1.2 → 2.1.3

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.
@@ -93,17 +93,16 @@ export declare function getAllNotifications(): Promise<{
93
93
  success: boolean;
94
94
  message: string;
95
95
  notifs: {
96
- message: string;
97
96
  _id: string;
97
+ message: string;
98
98
  read: boolean;
99
99
  type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "system" | "general" | undefined;
100
100
  userId?: string | undefined;
101
101
  timestamp?: any;
102
102
  link?: string | undefined;
103
- category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | undefined;
103
+ category?: "opportunity" | "package" | "blog" | "system" | "general" | "chat" | "application" | "account" | undefined;
104
104
  metadata?: {
105
105
  status?: string | undefined;
106
- title?: string | undefined;
107
106
  conversationId?: string | undefined;
108
107
  messageId?: string | undefined;
109
108
  senderId?: string | undefined;
@@ -113,6 +112,7 @@ export declare function getAllNotifications(): Promise<{
113
112
  expenseId?: string | undefined;
114
113
  referenceId?: string | undefined;
115
114
  referenceType?: string | undefined;
115
+ title?: string | undefined;
116
116
  } | undefined;
117
117
  }[];
118
118
  unreadCount: number;
@@ -128,17 +128,16 @@ export declare function getNotifications(limit: number): Promise<{
128
128
  success: boolean;
129
129
  message: string;
130
130
  notifs: {
131
- message: string;
132
131
  _id: string;
132
+ message: string;
133
133
  read: boolean;
134
134
  type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "system" | "general" | undefined;
135
135
  userId?: string | undefined;
136
136
  timestamp?: any;
137
137
  link?: string | undefined;
138
- category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | undefined;
138
+ category?: "opportunity" | "package" | "blog" | "system" | "general" | "chat" | "application" | "account" | undefined;
139
139
  metadata?: {
140
140
  status?: string | undefined;
141
- title?: string | undefined;
142
141
  conversationId?: string | undefined;
143
142
  messageId?: string | undefined;
144
143
  senderId?: string | undefined;
@@ -148,6 +147,7 @@ export declare function getNotifications(limit: number): Promise<{
148
147
  expenseId?: string | undefined;
149
148
  referenceId?: string | undefined;
150
149
  referenceType?: string | undefined;
150
+ title?: string | undefined;
151
151
  } | undefined;
152
152
  }[];
153
153
  unreadCount: number;
@@ -4,7 +4,9 @@ export interface Booking {
4
4
  _id: string;
5
5
  userId: string;
6
6
  entityId: any;
7
- entityType: "Rental" | "Adventure";
7
+ entityType: "Rental" | "Adventure" | "Event" | "Stay";
8
+ roomId?: string;
9
+ roomQty?: number;
8
10
  hostId: string;
9
11
  startDate: Date;
10
12
  endDate?: Date;
@@ -28,7 +30,9 @@ export interface Booking {
28
30
  }
29
31
  export interface CreateBookingRequest {
30
32
  entityId: string;
31
- entityType: "Rental" | "Adventure";
33
+ entityType: "Rental" | "Adventure" | "Event" | "Stay";
34
+ roomId?: string;
35
+ roomQty?: number;
32
36
  startDate: string;
33
37
  endDate?: string;
34
38
  startTime?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"booking.d.ts","sourceRoot":"","sources":["../../../src/lib/models/booking.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;AAC7F,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM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IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -8,23 +8,23 @@ export declare const ReviewSchema: z.ZodObject<{
8
8
  createdAt: z.ZodDate;
9
9
  updatedAt: z.ZodDate;
10
10
  }, "strict", z.ZodTypeAny, {
11
- rating: number;
12
11
  _id: string;
13
12
  reviewerPic: string;
14
13
  reviewerUsername: string;
14
+ rating: number;
15
15
  comment: string;
16
16
  createdAt: Date;
17
17
  updatedAt: Date;
18
18
  }, {
19
- rating: number;
20
19
  _id: string;
21
20
  reviewerPic: string;
22
21
  reviewerUsername: string;
22
+ rating: number;
23
23
  comment: string;
24
24
  createdAt: Date;
25
25
  updatedAt: Date;
26
26
  }>;
27
- export type reviewTargetType = 'opportunity' | 'package' | 'host' | 'user' | 'blog' | 'portfolio' | 'rental' | 'adventure' | 'guide';
27
+ export type reviewTargetType = 'opportunity' | 'package' | 'host' | 'user' | 'blog' | 'portfolio' | 'rental' | 'adventure' | 'guide' | 'stay' | 'event';
28
28
  export type Review = z.infer<typeof ReviewSchema>;
29
29
  export declare const reviewBasicSchema: z.ZodObject<{
30
30
  rating: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/lib/models/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;EAQd,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;AAErI,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;EAQ5B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,MAAM,EAuDjC,CAAA"}
1
+ {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/lib/models/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;EAQd,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAExJ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;EAQ5B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,MAAM,EAuDjC,CAAA"}
@@ -50,5 +50,6 @@ export interface TileProps {
50
50
  brand?: string;
51
51
  model?: string;
52
52
  depositAmount?: number;
53
+ href?: string;
53
54
  }
54
55
  //# sourceMappingURL=tile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tile.d.ts","sourceRoot":"","sources":["../../../src/lib/models/tile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,MAAM,MAAM,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,CAAC;AAEzF,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,WA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AE,EAAE,CAAC;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -2,6 +2,7 @@ export declare const storageInitializedAtom: import("jotai").PrimitiveAtom<boole
2
2
  init: boolean;
3
3
  };
4
4
  export declare const userAtom: import("jotai").WritableAtom<{
5
+ rating: number;
5
6
  username: string;
6
7
  firstName: string;
7
8
  lastName: string;
@@ -11,7 +12,6 @@ export declare const userAtom: import("jotai").WritableAtom<{
11
12
  countryCode: string;
12
13
  country: string;
13
14
  gender: "male" | "female" | "other";
14
- rating: number;
15
15
  ratingCount: number;
16
16
  reviewCount: number;
17
17
  joinedDate: Date;
@@ -49,8 +49,8 @@ export declare const userAtom: import("jotai").WritableAtom<{
49
49
  panCard?: string | undefined;
50
50
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
51
51
  properties?: {
52
- country: string;
53
52
  type: string;
53
+ country: string;
54
54
  name: string;
55
55
  address: string;
56
56
  city: string;
@@ -61,9 +61,10 @@ export declare const userAtom: import("jotai").WritableAtom<{
61
61
  businessDocument?: string | undefined;
62
62
  businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
63
63
  businessIdNumber?: string | undefined;
64
- businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
64
+ businessApiVerificationStatus?: "pending" | "failed" | "verified" | undefined;
65
65
  businessVerificationDenialReason?: string | undefined;
66
66
  } | null, [{
67
+ rating: number;
67
68
  username: string;
68
69
  firstName: string;
69
70
  lastName: string;
@@ -73,7 +74,6 @@ export declare const userAtom: import("jotai").WritableAtom<{
73
74
  countryCode: string;
74
75
  country: string;
75
76
  gender: "male" | "female" | "other";
76
- rating: number;
77
77
  ratingCount: number;
78
78
  reviewCount: number;
79
79
  joinedDate: Date;
@@ -111,8 +111,8 @@ export declare const userAtom: import("jotai").WritableAtom<{
111
111
  panCard?: string | undefined;
112
112
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
113
113
  properties?: {
114
- country: string;
115
114
  type: string;
115
+ country: string;
116
116
  name: string;
117
117
  address: string;
118
118
  city: string;
@@ -123,9 +123,10 @@ export declare const userAtom: import("jotai").WritableAtom<{
123
123
  businessDocument?: string | undefined;
124
124
  businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
125
125
  businessIdNumber?: string | undefined;
126
- businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
126
+ businessApiVerificationStatus?: "pending" | "failed" | "verified" | undefined;
127
127
  businessVerificationDenialReason?: string | undefined;
128
128
  } | typeof import("jotai/utils").RESET | ((prev: {
129
+ rating: number;
129
130
  username: string;
130
131
  firstName: string;
131
132
  lastName: string;
@@ -135,7 +136,6 @@ export declare const userAtom: import("jotai").WritableAtom<{
135
136
  countryCode: string;
136
137
  country: string;
137
138
  gender: "male" | "female" | "other";
138
- rating: number;
139
139
  ratingCount: number;
140
140
  reviewCount: number;
141
141
  joinedDate: Date;
@@ -173,8 +173,8 @@ export declare const userAtom: import("jotai").WritableAtom<{
173
173
  panCard?: string | undefined;
174
174
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
175
175
  properties?: {
176
- country: string;
177
176
  type: string;
177
+ country: string;
178
178
  name: string;
179
179
  address: string;
180
180
  city: string;
@@ -185,9 +185,10 @@ export declare const userAtom: import("jotai").WritableAtom<{
185
185
  businessDocument?: string | undefined;
186
186
  businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
187
187
  businessIdNumber?: string | undefined;
188
- businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
188
+ businessApiVerificationStatus?: "pending" | "failed" | "verified" | undefined;
189
189
  businessVerificationDenialReason?: string | undefined;
190
190
  } | null) => {
191
+ rating: number;
191
192
  username: string;
192
193
  firstName: string;
193
194
  lastName: string;
@@ -197,7 +198,6 @@ export declare const userAtom: import("jotai").WritableAtom<{
197
198
  countryCode: string;
198
199
  country: string;
199
200
  gender: "male" | "female" | "other";
200
- rating: number;
201
201
  ratingCount: number;
202
202
  reviewCount: number;
203
203
  joinedDate: Date;
@@ -235,8 +235,8 @@ export declare const userAtom: import("jotai").WritableAtom<{
235
235
  panCard?: string | undefined;
236
236
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
237
237
  properties?: {
238
- country: string;
239
238
  type: string;
239
+ country: string;
240
240
  name: string;
241
241
  address: string;
242
242
  city: string;
@@ -247,7 +247,7 @@ export declare const userAtom: import("jotai").WritableAtom<{
247
247
  businessDocument?: string | undefined;
248
248
  businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
249
249
  businessIdNumber?: string | undefined;
250
- businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
250
+ businessApiVerificationStatus?: "pending" | "failed" | "verified" | undefined;
251
251
  businessVerificationDenialReason?: string | undefined;
252
252
  } | typeof import("jotai/utils").RESET | null) | null], void>;
253
253
  export declare const isLoggedInAtom: import("jotai").WritableAtom<boolean, [boolean | typeof import("jotai/utils").RESET | ((prev: boolean) => boolean | typeof import("jotai/utils").RESET)], void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrjfa/state",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",