@timardex/cluemart-shared 1.1.98 → 1.1.99

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.
package/dist/index.d.mts CHANGED
@@ -224,14 +224,18 @@ type VendorAttributes = {
224
224
  };
225
225
  type VendorInfoFormData = {
226
226
  _id?: string;
227
- contactDetails?: ResourceContactDetailsType | null;
228
- foodSafetyGradeFiles?: ResourceImageType[] | null;
229
- foodSafetyGradeFilesUpload?: ResourceImageType[] | null;
230
- requirements?: {
231
- electricity: VendorAttributes;
232
- gazebo: VendorAttributes;
233
- table: VendorAttributes;
227
+ availability?: {
228
+ school: boolean;
229
+ private: boolean;
230
+ corporate: boolean;
234
231
  };
232
+ compliance?: {
233
+ liabilityInsurance: boolean;
234
+ foodBeverageLicense: boolean;
235
+ };
236
+ contactDetails?: ResourceContactDetailsType | null;
237
+ documents?: ResourceImageType[] | null;
238
+ documentsUpload?: ResourceImageType[] | null;
235
239
  product: {
236
240
  foodFlavors: EnumFoodFlavor[];
237
241
  packaging: string[];
@@ -241,22 +245,18 @@ type VendorInfoFormData = {
241
245
  };
242
246
  producedIn: string[];
243
247
  };
244
- vendorId: string;
248
+ requirements?: {
249
+ electricity: VendorAttributes;
250
+ gazebo: VendorAttributes;
251
+ table: VendorAttributes;
252
+ };
245
253
  stallInfo: {
246
254
  size: {
247
255
  depth: number;
248
256
  width: number;
249
257
  };
250
258
  };
251
- compliance?: {
252
- liabilityInsurance: boolean;
253
- foodBeverageLicense: boolean;
254
- };
255
- availability?: {
256
- school: boolean;
257
- private: boolean;
258
- corporate: boolean;
259
- };
259
+ vendorId: string;
260
260
  };
261
261
  type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
262
262
  interface VendorType extends BaseResourceType {
@@ -268,7 +268,7 @@ interface VendorType extends BaseResourceType {
268
268
  vendorInfoId: string;
269
269
  vendorType: EnumVendorType;
270
270
  }
271
- type VendorInfoType = Omit<VendorInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
271
+ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
272
272
  _id: string;
273
273
  };
274
274
  interface VendorWithConnectionDatesType extends VendorType {
package/dist/index.d.ts CHANGED
@@ -224,14 +224,18 @@ type VendorAttributes = {
224
224
  };
225
225
  type VendorInfoFormData = {
226
226
  _id?: string;
227
- contactDetails?: ResourceContactDetailsType | null;
228
- foodSafetyGradeFiles?: ResourceImageType[] | null;
229
- foodSafetyGradeFilesUpload?: ResourceImageType[] | null;
230
- requirements?: {
231
- electricity: VendorAttributes;
232
- gazebo: VendorAttributes;
233
- table: VendorAttributes;
227
+ availability?: {
228
+ school: boolean;
229
+ private: boolean;
230
+ corporate: boolean;
234
231
  };
232
+ compliance?: {
233
+ liabilityInsurance: boolean;
234
+ foodBeverageLicense: boolean;
235
+ };
236
+ contactDetails?: ResourceContactDetailsType | null;
237
+ documents?: ResourceImageType[] | null;
238
+ documentsUpload?: ResourceImageType[] | null;
235
239
  product: {
236
240
  foodFlavors: EnumFoodFlavor[];
237
241
  packaging: string[];
@@ -241,22 +245,18 @@ type VendorInfoFormData = {
241
245
  };
242
246
  producedIn: string[];
243
247
  };
244
- vendorId: string;
248
+ requirements?: {
249
+ electricity: VendorAttributes;
250
+ gazebo: VendorAttributes;
251
+ table: VendorAttributes;
252
+ };
245
253
  stallInfo: {
246
254
  size: {
247
255
  depth: number;
248
256
  width: number;
249
257
  };
250
258
  };
251
- compliance?: {
252
- liabilityInsurance: boolean;
253
- foodBeverageLicense: boolean;
254
- };
255
- availability?: {
256
- school: boolean;
257
- private: boolean;
258
- corporate: boolean;
259
- };
259
+ vendorId: string;
260
260
  };
261
261
  type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
262
262
  interface VendorType extends BaseResourceType {
@@ -268,7 +268,7 @@ interface VendorType extends BaseResourceType {
268
268
  vendorInfoId: string;
269
269
  vendorType: EnumVendorType;
270
270
  }
271
- type VendorInfoType = Omit<VendorInfoFormData, "_id" | "foodSafetyGradeFilesUpload"> & {
271
+ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
272
272
  _id: string;
273
273
  };
274
274
  interface VendorWithConnectionDatesType extends VendorType {
package/dist/index.mjs CHANGED
@@ -2207,7 +2207,7 @@ var VENDOR_INFO = gql4`
2207
2207
  landlinePhone
2208
2208
  mobilePhone
2209
2209
  }
2210
- foodSafetyGradeFiles
2210
+ documents
2211
2211
  requirements {
2212
2212
  electricity {
2213
2213
  ...VendorAttributesFields
@@ -4884,8 +4884,8 @@ var defaultVendorInfoFormValues = {
4884
4884
  landlinePhone: null,
4885
4885
  mobilePhone: null
4886
4886
  },
4887
- foodSafetyGradeFiles: null,
4888
- foodSafetyGradeFilesUpload: null,
4887
+ documents: null,
4888
+ documentsUpload: null,
4889
4889
  product: {
4890
4890
  foodFlavors: [],
4891
4891
  packaging: [],
@@ -5031,8 +5031,8 @@ function useVendorInfoForm(data) {
5031
5031
  availability: data.availability,
5032
5032
  compliance: data.compliance,
5033
5033
  contactDetails: data.contactDetails,
5034
- foodSafetyGradeFiles: data.foodSafetyGradeFiles,
5035
- foodSafetyGradeFilesUpload: data.foodSafetyGradeFilesUpload,
5034
+ documents: data.documents,
5035
+ documentsUpload: data.documentsUpload,
5036
5036
  product: data.product,
5037
5037
  requirements: data.requirements,
5038
5038
  stallInfo: data.stallInfo,
@@ -5047,8 +5047,8 @@ function useVendorInfoForm(data) {
5047
5047
  availability,
5048
5048
  compliance,
5049
5049
  contactDetails,
5050
- foodSafetyGradeFiles,
5051
- foodSafetyGradeFilesUpload,
5050
+ documents,
5051
+ documentsUpload,
5052
5052
  product,
5053
5053
  requirements,
5054
5054
  stallInfo,
@@ -5061,8 +5061,8 @@ function useVendorInfoForm(data) {
5061
5061
  availability,
5062
5062
  compliance,
5063
5063
  contactDetails,
5064
- foodSafetyGradeFiles,
5065
- foodSafetyGradeFilesUpload,
5064
+ documents,
5065
+ documentsUpload,
5066
5066
  product,
5067
5067
  requirements,
5068
5068
  stallInfo,