@timardex/cluemart-shared 1.0.22 → 1.0.23

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.
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, C as Category } from '../global-B_4lAGhj.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, C as Category } from '../global-DDG_c13v.mjs';
2
2
  import '../enums/index.mjs';
3
3
  import 'react-hook-form';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, C as Category } from '../global-DRq1uIHw.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, C as Category } from '../global-BFOVN-Wv.js';
2
2
  import '../enums/index.js';
3
3
  import 'react-hook-form';
4
4
 
@@ -83,21 +83,9 @@ interface MarketType extends BaseResourceType {
83
83
  provider: string;
84
84
  tags: string[];
85
85
  }
86
- interface MarketInfoType {
86
+ type MarketInfoType = Omit<MarketInfoFormData, "_id"> & {
87
87
  _id: string;
88
- applicationDeadlineHours: number;
89
- dateTime: DateTimeWithPriceType[];
90
- marketId: string;
91
- paymentDueHours: number;
92
- paymentMethod: EnumPaymentMethod;
93
- paymentTarget: {
94
- accountHolderName?: string;
95
- accountNumber?: string;
96
- link?: string;
97
- };
98
- rejectionPolicy: EnumRejectionPolicy;
99
- stallCapacity: number;
100
- }
88
+ };
101
89
  interface MarketWithConnectionDatesType extends MarketType {
102
90
  relationDates: RelationDate[] | undefined;
103
91
  }
@@ -171,34 +159,9 @@ interface StallholderType extends BaseResourceType {
171
159
  products: StallholderFormData["products"];
172
160
  specialities: string[] | null;
173
161
  }
174
- interface StallholderApplyFormType {
162
+ type StallholderApplyFormType = Omit<StallholderApplyFormFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
175
163
  _id: string;
176
- electricity: {
177
- details: string | null;
178
- isRequired: boolean;
179
- };
180
- foodSafetyGradeFiles: string[] | null;
181
- gazebo: {
182
- details: string | null;
183
- isRequired: boolean;
184
- };
185
- packaging: string[];
186
- paymentMethod: EnumPaymentMethod;
187
- priceRange: {
188
- max: number;
189
- min: number;
190
- };
191
- producedIn: string[];
192
- stallholderId: string;
193
- stallSize: {
194
- depth: number;
195
- width: number;
196
- };
197
- table: {
198
- details: string | null;
199
- isRequired: boolean;
200
- };
201
- }
164
+ };
202
165
  interface SatllholderWithConnectionDatesType extends StallholderType {
203
166
  relationDates: RelationDate[] | undefined;
204
167
  }
@@ -83,21 +83,9 @@ interface MarketType extends BaseResourceType {
83
83
  provider: string;
84
84
  tags: string[];
85
85
  }
86
- interface MarketInfoType {
86
+ type MarketInfoType = Omit<MarketInfoFormData, "_id"> & {
87
87
  _id: string;
88
- applicationDeadlineHours: number;
89
- dateTime: DateTimeWithPriceType[];
90
- marketId: string;
91
- paymentDueHours: number;
92
- paymentMethod: EnumPaymentMethod;
93
- paymentTarget: {
94
- accountHolderName?: string;
95
- accountNumber?: string;
96
- link?: string;
97
- };
98
- rejectionPolicy: EnumRejectionPolicy;
99
- stallCapacity: number;
100
- }
88
+ };
101
89
  interface MarketWithConnectionDatesType extends MarketType {
102
90
  relationDates: RelationDate[] | undefined;
103
91
  }
@@ -171,34 +159,9 @@ interface StallholderType extends BaseResourceType {
171
159
  products: StallholderFormData["products"];
172
160
  specialities: string[] | null;
173
161
  }
174
- interface StallholderApplyFormType {
162
+ type StallholderApplyFormType = Omit<StallholderApplyFormFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
175
163
  _id: string;
176
- electricity: {
177
- details: string | null;
178
- isRequired: boolean;
179
- };
180
- foodSafetyGradeFiles: string[] | null;
181
- gazebo: {
182
- details: string | null;
183
- isRequired: boolean;
184
- };
185
- packaging: string[];
186
- paymentMethod: EnumPaymentMethod;
187
- priceRange: {
188
- max: number;
189
- min: number;
190
- };
191
- producedIn: string[];
192
- stallholderId: string;
193
- stallSize: {
194
- depth: number;
195
- width: number;
196
- };
197
- table: {
198
- details: string | null;
199
- isRequired: boolean;
200
- };
201
- }
164
+ };
202
165
  interface SatllholderWithConnectionDatesType extends StallholderType {
203
166
  relationDates: RelationDate[] | undefined;
204
167
  }
@@ -1,6 +1,6 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { C as ChatType } from '../chat-BUVCf9Tu.mjs';
3
- import { M as MarketType, b as MarketInfoType, R as RelationType, c as ResourceConnectionsType, S as StallholderType, d as StallholderApplyFormType, N as NotificationType, U as UserType } from '../global-B_4lAGhj.mjs';
3
+ import { M as MarketType, b as MarketInfoType, R as RelationType, c as ResourceConnectionsType, S as StallholderType, d as StallholderApplyFormType, N as NotificationType, U as UserType } from '../global-DDG_c13v.mjs';
4
4
  import { EnumResourceType } from '../enums/index.mjs';
5
5
  import 'react-hook-form';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { C as ChatType } from '../chat-BUVCf9Tu.js';
3
- import { M as MarketType, b as MarketInfoType, R as RelationType, c as ResourceConnectionsType, S as StallholderType, d as StallholderApplyFormType, N as NotificationType, U as UserType } from '../global-DRq1uIHw.js';
3
+ import { M as MarketType, b as MarketInfoType, R as RelationType, c as ResourceConnectionsType, S as StallholderType, d as StallholderApplyFormType, N as NotificationType, U as UserType } from '../global-BFOVN-Wv.js';
4
4
  import { EnumResourceType } from '../enums/index.js';
5
5
  import 'react-hook-form';
6
6
 
@@ -1,4 +1,4 @@
1
- import { L as LocationType, e as StallholderFormData, f as CreateStallholderFormData, g as StallholderApplyFormFormData, h as CreateStallholderApplyFormFormData, i as MarketFormData, j as CreateMarketFormData, k as MarketInfoFormData, l as CreateMarketInfoFormData, m as UserFormData, n as CreateUserFormData, B as BaseResourceTypeFormData } from '../global-B_4lAGhj.mjs';
1
+ import { L as LocationType, e as StallholderFormData, f as CreateStallholderFormData, g as StallholderApplyFormFormData, h as CreateStallholderApplyFormFormData, i as MarketFormData, j as CreateMarketFormData, k as MarketInfoFormData, l as CreateMarketInfoFormData, m as UserFormData, n as CreateUserFormData, B as BaseResourceTypeFormData } from '../global-DDG_c13v.mjs';
2
2
  import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateTokenFormData, d as CreateResetPasswordFormData } from '../auth-CAeHx-BM.mjs';
3
3
  import '../enums/index.mjs';
4
4
  import 'react-hook-form';
@@ -1,4 +1,4 @@
1
- import { L as LocationType, e as StallholderFormData, f as CreateStallholderFormData, g as StallholderApplyFormFormData, h as CreateStallholderApplyFormFormData, i as MarketFormData, j as CreateMarketFormData, k as MarketInfoFormData, l as CreateMarketInfoFormData, m as UserFormData, n as CreateUserFormData, B as BaseResourceTypeFormData } from '../global-DRq1uIHw.js';
1
+ import { L as LocationType, e as StallholderFormData, f as CreateStallholderFormData, g as StallholderApplyFormFormData, h as CreateStallholderApplyFormFormData, i as MarketFormData, j as CreateMarketFormData, k as MarketInfoFormData, l as CreateMarketInfoFormData, m as UserFormData, n as CreateUserFormData, B as BaseResourceTypeFormData } from '../global-BFOVN-Wv.js';
2
2
  import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateTokenFormData, d as CreateResetPasswordFormData } from '../auth-gmfsaSPo.js';
3
3
  import '../enums/index.js';
4
4
  import 'react-hook-form';
package/dist/index.d.mts CHANGED
@@ -263,21 +263,9 @@ interface MarketType extends BaseResourceType {
263
263
  provider: string;
264
264
  tags: string[];
265
265
  }
266
- interface MarketInfoType {
266
+ type MarketInfoType = Omit<MarketInfoFormData, "_id"> & {
267
267
  _id: string;
268
- applicationDeadlineHours: number;
269
- dateTime: DateTimeWithPriceType[];
270
- marketId: string;
271
- paymentDueHours: number;
272
- paymentMethod: EnumPaymentMethod;
273
- paymentTarget: {
274
- accountHolderName?: string;
275
- accountNumber?: string;
276
- link?: string;
277
- };
278
- rejectionPolicy: EnumRejectionPolicy;
279
- stallCapacity: number;
280
- }
268
+ };
281
269
  interface MarketWithConnectionDatesType extends MarketType {
282
270
  relationDates: RelationDate[] | undefined;
283
271
  }
@@ -351,34 +339,9 @@ interface StallholderType extends BaseResourceType {
351
339
  products: StallholderFormData["products"];
352
340
  specialities: string[] | null;
353
341
  }
354
- interface StallholderApplyFormType {
342
+ type StallholderApplyFormType = Omit<StallholderApplyFormFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
355
343
  _id: string;
356
- electricity: {
357
- details: string | null;
358
- isRequired: boolean;
359
- };
360
- foodSafetyGradeFiles: string[] | null;
361
- gazebo: {
362
- details: string | null;
363
- isRequired: boolean;
364
- };
365
- packaging: string[];
366
- paymentMethod: EnumPaymentMethod;
367
- priceRange: {
368
- max: number;
369
- min: number;
370
- };
371
- producedIn: string[];
372
- stallholderId: string;
373
- stallSize: {
374
- depth: number;
375
- width: number;
376
- };
377
- table: {
378
- details: string | null;
379
- isRequired: boolean;
380
- };
381
- }
344
+ };
382
345
  interface SatllholderWithConnectionDatesType extends StallholderType {
383
346
  relationDates: RelationDate[] | undefined;
384
347
  }
package/dist/index.d.ts CHANGED
@@ -263,21 +263,9 @@ interface MarketType extends BaseResourceType {
263
263
  provider: string;
264
264
  tags: string[];
265
265
  }
266
- interface MarketInfoType {
266
+ type MarketInfoType = Omit<MarketInfoFormData, "_id"> & {
267
267
  _id: string;
268
- applicationDeadlineHours: number;
269
- dateTime: DateTimeWithPriceType[];
270
- marketId: string;
271
- paymentDueHours: number;
272
- paymentMethod: EnumPaymentMethod;
273
- paymentTarget: {
274
- accountHolderName?: string;
275
- accountNumber?: string;
276
- link?: string;
277
- };
278
- rejectionPolicy: EnumRejectionPolicy;
279
- stallCapacity: number;
280
- }
268
+ };
281
269
  interface MarketWithConnectionDatesType extends MarketType {
282
270
  relationDates: RelationDate[] | undefined;
283
271
  }
@@ -351,34 +339,9 @@ interface StallholderType extends BaseResourceType {
351
339
  products: StallholderFormData["products"];
352
340
  specialities: string[] | null;
353
341
  }
354
- interface StallholderApplyFormType {
342
+ type StallholderApplyFormType = Omit<StallholderApplyFormFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
355
343
  _id: string;
356
- electricity: {
357
- details: string | null;
358
- isRequired: boolean;
359
- };
360
- foodSafetyGradeFiles: string[] | null;
361
- gazebo: {
362
- details: string | null;
363
- isRequired: boolean;
364
- };
365
- packaging: string[];
366
- paymentMethod: EnumPaymentMethod;
367
- priceRange: {
368
- max: number;
369
- min: number;
370
- };
371
- producedIn: string[];
372
- stallholderId: string;
373
- stallSize: {
374
- depth: number;
375
- width: number;
376
- };
377
- table: {
378
- details: string | null;
379
- isRequired: boolean;
380
- };
381
- }
344
+ };
382
345
  interface SatllholderWithConnectionDatesType extends StallholderType {
383
346
  relationDates: RelationDate[] | undefined;
384
347
  }
@@ -1,6 +1,6 @@
1
1
  export { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateTokenFormData, L as LoginFormData, R as RegisterFormData, e as RequestPasswordResetFormData, f as ResetPasswordFormData, V as ValidateTokenFormData } from '../auth-CAeHx-BM.mjs';
2
2
  export { a as ChatInput, b as ChatMessageInput, c as ChatMessageType, C as ChatType } from '../chat-BUVCf9Tu.mjs';
3
- export { q as BaseResourceType, B as BaseResourceTypeFormData, C as Category, j as CreateMarketFormData, l as CreateMarketInfoFormData, h as CreateStallholderApplyFormFormData, f as CreateStallholderFormData, n as CreateUserFormData, D as DateTimeType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, s as MapMultiLocation, i as MarketFormData, k as MarketInfoFormData, b as MarketInfoType, M as MarketType, u as MarketWithConnectionDatesType, N as NotificationType, o as Nullable, O as OptionItem, r as Region, w as RelationDate, v as RelationLog, R as RelationType, c as ResourceConnectionsType, p as ResourceImageType, z as SatllholderWithConnectionDatesType, g as StallholderApplyFormFormData, d as StallholderApplyFormType, y as StallholderAttributes, e as StallholderFormData, x as StallholderLocation, S as StallholderType, t as Subcategory, m as UserFormData, U as UserType } from '../global-B_4lAGhj.mjs';
3
+ export { q as BaseResourceType, B as BaseResourceTypeFormData, C as Category, j as CreateMarketFormData, l as CreateMarketInfoFormData, h as CreateStallholderApplyFormFormData, f as CreateStallholderFormData, n as CreateUserFormData, D as DateTimeType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, s as MapMultiLocation, i as MarketFormData, k as MarketInfoFormData, b as MarketInfoType, M as MarketType, u as MarketWithConnectionDatesType, N as NotificationType, o as Nullable, O as OptionItem, r as Region, w as RelationDate, v as RelationLog, R as RelationType, c as ResourceConnectionsType, p as ResourceImageType, z as SatllholderWithConnectionDatesType, g as StallholderApplyFormFormData, d as StallholderApplyFormType, y as StallholderAttributes, e as StallholderFormData, x as StallholderLocation, S as StallholderType, t as Subcategory, m as UserFormData, U as UserType } from '../global-DDG_c13v.mjs';
4
4
  import { EnumResourceType } from '../enums/index.mjs';
5
5
  import 'react-hook-form';
6
6
 
@@ -1,6 +1,6 @@
1
1
  export { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateTokenFormData, L as LoginFormData, R as RegisterFormData, e as RequestPasswordResetFormData, f as ResetPasswordFormData, V as ValidateTokenFormData } from '../auth-gmfsaSPo.js';
2
2
  export { a as ChatInput, b as ChatMessageInput, c as ChatMessageType, C as ChatType } from '../chat-BUVCf9Tu.js';
3
- export { q as BaseResourceType, B as BaseResourceTypeFormData, C as Category, j as CreateMarketFormData, l as CreateMarketInfoFormData, h as CreateStallholderApplyFormFormData, f as CreateStallholderFormData, n as CreateUserFormData, D as DateTimeType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, s as MapMultiLocation, i as MarketFormData, k as MarketInfoFormData, b as MarketInfoType, M as MarketType, u as MarketWithConnectionDatesType, N as NotificationType, o as Nullable, O as OptionItem, r as Region, w as RelationDate, v as RelationLog, R as RelationType, c as ResourceConnectionsType, p as ResourceImageType, z as SatllholderWithConnectionDatesType, g as StallholderApplyFormFormData, d as StallholderApplyFormType, y as StallholderAttributes, e as StallholderFormData, x as StallholderLocation, S as StallholderType, t as Subcategory, m as UserFormData, U as UserType } from '../global-DRq1uIHw.js';
3
+ export { q as BaseResourceType, B as BaseResourceTypeFormData, C as Category, j as CreateMarketFormData, l as CreateMarketInfoFormData, h as CreateStallholderApplyFormFormData, f as CreateStallholderFormData, n as CreateUserFormData, D as DateTimeType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, s as MapMultiLocation, i as MarketFormData, k as MarketInfoFormData, b as MarketInfoType, M as MarketType, u as MarketWithConnectionDatesType, N as NotificationType, o as Nullable, O as OptionItem, r as Region, w as RelationDate, v as RelationLog, R as RelationType, c as ResourceConnectionsType, p as ResourceImageType, z as SatllholderWithConnectionDatesType, g as StallholderApplyFormFormData, d as StallholderApplyFormType, y as StallholderAttributes, e as StallholderFormData, x as StallholderLocation, S as StallholderType, t as Subcategory, m as UserFormData, U as UserType } from '../global-BFOVN-Wv.js';
4
4
  import { EnumResourceType } from '../enums/index.js';
5
5
  import 'react-hook-form';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { EnumInviteStatus, EnumRegions } from '../enums/index.mjs';
2
- import { r as Region, O as OptionItem } from '../global-B_4lAGhj.mjs';
2
+ import { r as Region, O as OptionItem } from '../global-DDG_c13v.mjs';
3
3
  import 'react-hook-form';
4
4
 
5
5
  declare const dateFormat = "DD-MM-YYYY";
@@ -1,5 +1,5 @@
1
1
  import { EnumInviteStatus, EnumRegions } from '../enums/index.js';
2
- import { r as Region, O as OptionItem } from '../global-DRq1uIHw.js';
2
+ import { r as Region, O as OptionItem } from '../global-BFOVN-Wv.js';
3
3
  import 'react-hook-form';
4
4
 
5
5
  declare const dateFormat = "DD-MM-YYYY";
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
+ "types": "./dist/index.d.ts",
10
11
  "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs",
12
- "types": "./dist/index.d.ts"
12
+ "require": "./dist/index.cjs"
13
13
  },
14
14
  "./types": {
15
+ "types": "./dist/types/index.d.ts",
15
16
  "import": "./dist/types/index.mjs",
16
- "require": "./dist/types/index.cjs",
17
- "types": "./dist/types/index.d.ts"
17
+ "require": "./dist/types/index.cjs"
18
18
  },
19
19
  "./utils": {
20
+ "types": "./dist/utils/index.d.ts",
20
21
  "import": "./dist/utils/index.mjs",
21
- "require": "./dist/utils/index.cjs",
22
- "types": "./dist/utils/index.d.ts"
22
+ "require": "./dist/utils/index.cjs"
23
23
  },
24
24
  "./hooks": {
25
+ "types": "./dist/hooks/index.d.ts",
25
26
  "import": "./dist/hooks/index.mjs",
26
- "require": "./dist/hooks/index.cjs",
27
- "types": "./dist/hooks/index.d.ts"
27
+ "require": "./dist/hooks/index.cjs"
28
28
  },
29
29
  "./graphql": {
30
+ "types": "./dist/graphql/index.d.ts",
30
31
  "import": "./dist/graphql/index.mjs",
31
- "require": "./dist/graphql/index.cjs",
32
- "types": "./dist/graphql/index.d.ts"
32
+ "require": "./dist/graphql/index.cjs"
33
33
  },
34
34
  "./formFields": {
35
+ "types": "./dist/formFields/index.d.ts",
35
36
  "import": "./dist/formFields/index.mjs",
36
- "require": "./dist/formFields/index.cjs",
37
- "types": "./dist/formFields/index.d.ts"
37
+ "require": "./dist/formFields/index.cjs"
38
38
  },
39
39
  "./enums": {
40
+ "types": "./dist/enums/index.d.ts",
40
41
  "import": "./dist/enums/index.mjs",
41
- "require": "./dist/enums/index.cjs",
42
- "types": "./dist/enums/index.d.ts"
42
+ "require": "./dist/enums/index.cjs"
43
43
  }
44
44
  },
45
45
  "scripts": {