@timardex/cluemart-shared 1.4.73 → 1.4.75

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.
Files changed (40) hide show
  1. package/dist/{auth-CovYLFRn.d.ts → auth-B5tprOIL.d.ts} +1 -1
  2. package/dist/{auth-Cdfen6gg.d.mts → auth-DtPfNKc4.d.mts} +1 -1
  3. package/dist/{chunk-2OEDUG7U.mjs → chunk-4LT5GOOP.mjs} +1 -5
  4. package/dist/{chunk-2OEDUG7U.mjs.map → chunk-4LT5GOOP.mjs.map} +1 -1
  5. package/dist/{chunk-7FRB62SE.mjs → chunk-W465TNSV.mjs} +1 -5
  6. package/dist/chunk-W465TNSV.mjs.map +1 -0
  7. package/dist/formFields/index.cjs +0 -4
  8. package/dist/formFields/index.cjs.map +1 -1
  9. package/dist/formFields/index.d.mts +1 -1
  10. package/dist/formFields/index.d.ts +1 -1
  11. package/dist/formFields/index.mjs +1 -1
  12. package/dist/{global-HUZHOXHh.d.ts → global-B0WdAD-8.d.ts} +1 -5
  13. package/dist/{global-D_ckWQMA.d.mts → global-MMBYi34A.d.mts} +1 -5
  14. package/dist/graphql/index.cjs +0 -4
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +3 -3
  17. package/dist/graphql/index.d.ts +3 -3
  18. package/dist/graphql/index.mjs +1 -1
  19. package/dist/hooks/index.cjs +2 -21
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +3 -3
  22. package/dist/hooks/index.d.ts +3 -3
  23. package/dist/hooks/index.mjs +4 -15
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +2 -21
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +1 -5
  28. package/dist/index.d.ts +1 -5
  29. package/dist/index.mjs +2 -21
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-aU2ITfZh.d.mts → post-DZF3nYKf.d.mts} +1 -1
  32. package/dist/{post-DIylz7DM.d.ts → post-DdErP7-k.d.ts} +1 -1
  33. package/dist/{resourceActivities-CwSss-73.d.ts → resourceActivities-2FaGRW-i.d.ts} +1 -1
  34. package/dist/{resourceActivities-dxnqHVVc.d.mts → resourceActivities-CqrscA5x.d.mts} +1 -1
  35. package/dist/types/index.d.mts +5 -5
  36. package/dist/types/index.d.ts +5 -5
  37. package/dist/utils/index.d.mts +1 -1
  38. package/dist/utils/index.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/dist/chunk-7FRB62SE.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-dxnqHVVc.mjs';
4
- import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-D_ckWQMA.mjs';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-aU2ITfZh.mjs';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CqrscA5x.mjs';
4
+ import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-MMBYi34A.mjs';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DZF3nYKf.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CwSss-73.js';
4
- import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-HUZHOXHh.js';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DIylz7DM.js';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-2FaGRW-i.js';
4
+ import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-B0WdAD-8.js';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DdErP7-k.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -120,7 +120,7 @@ import {
120
120
  useUpdateVendor,
121
121
  useUpdateVendorInfo,
122
122
  useValidateVerificationToken
123
- } from "../chunk-7FRB62SE.mjs";
123
+ } from "../chunk-W465TNSV.mjs";
124
124
  import "../chunk-USQKKCIA.mjs";
125
125
  export {
126
126
  useAddParticipantToChat,
@@ -463,17 +463,7 @@ var stallTypesSchema = yup.object({
463
463
  "",
464
464
  noLeadingZeros("Stall price", { allowDecimal: true })
465
465
  ),
466
- stallCapacity: yup.number().label("Stall Capacity").typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity")),
467
- electricity: yup.object({
468
- selected: yup.boolean().nullable().optional().label("Electricity Available"),
469
- price: yup.number().transform(
470
- (value, originalValue) => originalValue === "" ? null : value
471
- ).integer("Electricity price must be a whole number").test(
472
- "no-leading-zeros",
473
- "",
474
- noLeadingZeros("Electricity price", { allowDecimal: true })
475
- ).nullable().optional()
476
- }).nullable().optional().label("Electricity Information")
466
+ stallCapacity: yup.number().label("Stall Capacity").typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
477
467
  });
478
468
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
479
469
  stallTypes: yup.array().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
@@ -632,8 +622,7 @@ var vendorMenuSchema = yup3.object({
632
622
  description: yup3.string().nullable().optional(),
633
623
  name: yup3.string().nullable().required("Product name is required"),
634
624
  price: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
635
- priceUnit: yup3.string().required("Product unit is required"),
636
- productGroups: yup3.array().of(yup3.string().defined()).min(1, "Product groups are required").required("Product groups are required")
625
+ priceUnit: yup3.string().required("Product unit is required")
637
626
  });
638
627
  var vendorSchema = globalResourceSchema.shape({
639
628
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
@@ -949,10 +938,6 @@ var stallTypes = [
949
938
  "Workshop/seating area"
950
939
  ];
951
940
  var stallTypeOptions = stallTypes.map((type) => ({
952
- electricity: {
953
- price: null,
954
- selected: false
955
- },
956
941
  label: type,
957
942
  price: 0,
958
943
  stallCapacity: 0
@@ -2351,10 +2336,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
2351
2336
  label
2352
2337
  price
2353
2338
  stallCapacity
2354
- electricity {
2355
- price
2356
- selected
2357
- }
2358
2339
  }
2359
2340
  `;
2360
2341
  var RELATION_DATES_FRAGMENT = import_client2.gql`