@timardex/cluemart-shared 1.2.1 → 1.2.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.
- package/dist/{ad-utcwpkKv.d.mts → ad-CjJ4eOXQ.d.mts} +1 -1
- package/dist/{ad-BTebYGa6.d.ts → ad-bZBXVzB4.d.ts} +1 -1
- package/dist/{auth-DO7TRji8.d.ts → auth-CUFK_NWr.d.ts} +1 -1
- package/dist/{auth-BH5KfDFw.d.mts → auth-DD3sE2bg.d.mts} +1 -1
- package/dist/formFields/index.cjs +35 -24
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +4 -3
- package/dist/formFields/index.d.ts +4 -3
- package/dist/formFields/index.mjs +34 -24
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-CntHxpmg.d.mts → global-CuI_od8W.d.mts} +19 -11
- package/dist/{global-K1ennCrw.d.ts → global-DB_pNCpw.d.ts} +19 -11
- package/dist/graphql/index.cjs +29 -13
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +29 -13
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +21 -18
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +21 -18
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +85 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +21 -12
- package/dist/index.d.ts +21 -12
- package/dist/index.mjs +84 -55
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -97,12 +97,21 @@ type VendorLocation = {
|
|
|
97
97
|
resourceName?: MapMultiLocation["resourceName"];
|
|
98
98
|
resourceType?: MapMultiLocation["resourceType"];
|
|
99
99
|
};
|
|
100
|
+
type VendorMenuType = {
|
|
101
|
+
name?: string | null;
|
|
102
|
+
description?: string | null;
|
|
103
|
+
price?: number | null;
|
|
104
|
+
};
|
|
100
105
|
interface VendorFormData extends BaseResourceTypeFormData {
|
|
106
|
+
availability?: {
|
|
107
|
+
school: boolean;
|
|
108
|
+
private: boolean;
|
|
109
|
+
corporate: boolean;
|
|
110
|
+
};
|
|
101
111
|
categories: Category[];
|
|
102
112
|
locations?: VendorLocation[] | null;
|
|
103
113
|
multiLocation: boolean;
|
|
104
|
-
products?:
|
|
105
|
-
specialities?: string[] | null;
|
|
114
|
+
products?: VendorMenuType[] | null;
|
|
106
115
|
vendorType: EnumVendorType;
|
|
107
116
|
}
|
|
108
117
|
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
@@ -112,11 +121,6 @@ type VendorAttributes = {
|
|
|
112
121
|
};
|
|
113
122
|
type VendorInfoFormData = {
|
|
114
123
|
_id?: string;
|
|
115
|
-
availability?: {
|
|
116
|
-
school: boolean;
|
|
117
|
-
private: boolean;
|
|
118
|
-
corporate: boolean;
|
|
119
|
-
};
|
|
120
124
|
compliance?: {
|
|
121
125
|
liabilityInsurance: boolean;
|
|
122
126
|
foodBeverageLicense: boolean;
|
|
@@ -148,11 +152,15 @@ type VendorInfoFormData = {
|
|
|
148
152
|
};
|
|
149
153
|
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
150
154
|
interface VendorType extends BaseResourceType {
|
|
155
|
+
availability?: {
|
|
156
|
+
school: boolean;
|
|
157
|
+
private: boolean;
|
|
158
|
+
corporate: boolean;
|
|
159
|
+
};
|
|
151
160
|
categories: VendorFormData["categories"];
|
|
152
161
|
locations: VendorLocation[] | null;
|
|
153
162
|
multiLocation: boolean;
|
|
154
|
-
products:
|
|
155
|
-
specialities: string[] | null;
|
|
163
|
+
products: VendorMenuType[] | null;
|
|
156
164
|
vendorInfoId: string;
|
|
157
165
|
vendorType: EnumVendorType;
|
|
158
166
|
}
|
|
@@ -195,7 +203,7 @@ interface BaseResourceTypeFormData {
|
|
|
195
203
|
logo?: ResourceImageType | null;
|
|
196
204
|
logoUpload?: ResourceImageType | null;
|
|
197
205
|
name: string;
|
|
198
|
-
|
|
206
|
+
promoCodes?: string[] | null;
|
|
199
207
|
region: string;
|
|
200
208
|
socialMedia?: SocialMediaType[] | null;
|
|
201
209
|
partners?: PartnerType[] | null;
|
|
@@ -307,4 +315,4 @@ type ResourceContactDetailsType = {
|
|
|
307
315
|
mobilePhone?: string | null;
|
|
308
316
|
};
|
|
309
317
|
|
|
310
|
-
export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I,
|
|
318
|
+
export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, VendorWithConnectionDatesType as Q, Requirement as R, StallType as S, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceImageType as n, SocialMediaType as o, OwnerType as p, PosterUsageType as q, BaseResourceType as r, Region as s, SubcategoryItems as t, Subcategory as u, CreateFormData as v, ResourceContactDetailsType as w, DateTimeWithPriceType as x, PaymentInfoType as y, EventWithConnectionDatesType as z };
|
|
@@ -97,12 +97,21 @@ type VendorLocation = {
|
|
|
97
97
|
resourceName?: MapMultiLocation["resourceName"];
|
|
98
98
|
resourceType?: MapMultiLocation["resourceType"];
|
|
99
99
|
};
|
|
100
|
+
type VendorMenuType = {
|
|
101
|
+
name?: string | null;
|
|
102
|
+
description?: string | null;
|
|
103
|
+
price?: number | null;
|
|
104
|
+
};
|
|
100
105
|
interface VendorFormData extends BaseResourceTypeFormData {
|
|
106
|
+
availability?: {
|
|
107
|
+
school: boolean;
|
|
108
|
+
private: boolean;
|
|
109
|
+
corporate: boolean;
|
|
110
|
+
};
|
|
101
111
|
categories: Category[];
|
|
102
112
|
locations?: VendorLocation[] | null;
|
|
103
113
|
multiLocation: boolean;
|
|
104
|
-
products?:
|
|
105
|
-
specialities?: string[] | null;
|
|
114
|
+
products?: VendorMenuType[] | null;
|
|
106
115
|
vendorType: EnumVendorType;
|
|
107
116
|
}
|
|
108
117
|
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
@@ -112,11 +121,6 @@ type VendorAttributes = {
|
|
|
112
121
|
};
|
|
113
122
|
type VendorInfoFormData = {
|
|
114
123
|
_id?: string;
|
|
115
|
-
availability?: {
|
|
116
|
-
school: boolean;
|
|
117
|
-
private: boolean;
|
|
118
|
-
corporate: boolean;
|
|
119
|
-
};
|
|
120
124
|
compliance?: {
|
|
121
125
|
liabilityInsurance: boolean;
|
|
122
126
|
foodBeverageLicense: boolean;
|
|
@@ -148,11 +152,15 @@ type VendorInfoFormData = {
|
|
|
148
152
|
};
|
|
149
153
|
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
150
154
|
interface VendorType extends BaseResourceType {
|
|
155
|
+
availability?: {
|
|
156
|
+
school: boolean;
|
|
157
|
+
private: boolean;
|
|
158
|
+
corporate: boolean;
|
|
159
|
+
};
|
|
151
160
|
categories: VendorFormData["categories"];
|
|
152
161
|
locations: VendorLocation[] | null;
|
|
153
162
|
multiLocation: boolean;
|
|
154
|
-
products:
|
|
155
|
-
specialities: string[] | null;
|
|
163
|
+
products: VendorMenuType[] | null;
|
|
156
164
|
vendorInfoId: string;
|
|
157
165
|
vendorType: EnumVendorType;
|
|
158
166
|
}
|
|
@@ -195,7 +203,7 @@ interface BaseResourceTypeFormData {
|
|
|
195
203
|
logo?: ResourceImageType | null;
|
|
196
204
|
logoUpload?: ResourceImageType | null;
|
|
197
205
|
name: string;
|
|
198
|
-
|
|
206
|
+
promoCodes?: string[] | null;
|
|
199
207
|
region: string;
|
|
200
208
|
socialMedia?: SocialMediaType[] | null;
|
|
201
209
|
partners?: PartnerType[] | null;
|
|
@@ -307,4 +315,4 @@ type ResourceContactDetailsType = {
|
|
|
307
315
|
mobilePhone?: string | null;
|
|
308
316
|
};
|
|
309
317
|
|
|
310
|
-
export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I,
|
|
318
|
+
export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, VendorWithConnectionDatesType as Q, Requirement as R, StallType as S, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceImageType as n, SocialMediaType as o, OwnerType as p, PosterUsageType as q, BaseResourceType as r, Region as s, SubcategoryItems as t, Subcategory as u, CreateFormData as v, ResourceContactDetailsType as w, DateTimeWithPriceType as x, PaymentInfoType as y, EventWithConnectionDatesType as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -302,7 +302,7 @@ var EVENT = import_client3.gql`
|
|
|
302
302
|
partners {
|
|
303
303
|
...PartnerFields
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
promoCodes
|
|
306
306
|
provider
|
|
307
307
|
posterUsage {
|
|
308
308
|
...PosterUsageFields
|
|
@@ -395,11 +395,23 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
|
|
|
395
395
|
startTime
|
|
396
396
|
}
|
|
397
397
|
`;
|
|
398
|
+
var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
|
|
399
|
+
fragment VendorMenuFields on VendorMenuType {
|
|
400
|
+
name
|
|
401
|
+
description
|
|
402
|
+
price
|
|
403
|
+
}
|
|
404
|
+
`;
|
|
398
405
|
var VENDOR = import_client4.gql`
|
|
399
406
|
fragment VendorFields on VendorType {
|
|
400
407
|
_id
|
|
401
408
|
active
|
|
402
409
|
adIds
|
|
410
|
+
availability {
|
|
411
|
+
corporate
|
|
412
|
+
private
|
|
413
|
+
school
|
|
414
|
+
}
|
|
403
415
|
vendorInfoId
|
|
404
416
|
categories {
|
|
405
417
|
...CategoryFields
|
|
@@ -433,8 +445,10 @@ var VENDOR = import_client4.gql`
|
|
|
433
445
|
partners {
|
|
434
446
|
...PartnerFields
|
|
435
447
|
}
|
|
436
|
-
products
|
|
437
|
-
|
|
448
|
+
products {
|
|
449
|
+
...VendorMenuFields
|
|
450
|
+
}
|
|
451
|
+
promoCodes
|
|
438
452
|
posterUsage {
|
|
439
453
|
...PosterUsageFields
|
|
440
454
|
}
|
|
@@ -443,7 +457,6 @@ var VENDOR = import_client4.gql`
|
|
|
443
457
|
socialMedia {
|
|
444
458
|
...SocialMediaFields
|
|
445
459
|
}
|
|
446
|
-
specialities
|
|
447
460
|
updatedAt
|
|
448
461
|
vendorType
|
|
449
462
|
}
|
|
@@ -455,6 +468,7 @@ var VENDOR = import_client4.gql`
|
|
|
455
468
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
456
469
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
457
470
|
${PARTNER_FIELDS_FRAGMENT}
|
|
471
|
+
${VENDOR_MENU_FIELDS_FRAGMENT}
|
|
458
472
|
`;
|
|
459
473
|
var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
|
|
460
474
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -465,11 +479,6 @@ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
|
|
|
465
479
|
var VENDOR_INFO = import_client4.gql`
|
|
466
480
|
fragment VendorInfoFields on VendorInfoType {
|
|
467
481
|
_id
|
|
468
|
-
availability {
|
|
469
|
-
corporate
|
|
470
|
-
private
|
|
471
|
-
school
|
|
472
|
-
}
|
|
473
482
|
compliance {
|
|
474
483
|
foodBeverageLicense
|
|
475
484
|
liabilityInsurance
|
|
@@ -1523,7 +1532,7 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
|
|
|
1523
1532
|
partners {
|
|
1524
1533
|
...PartnerFields
|
|
1525
1534
|
}
|
|
1526
|
-
|
|
1535
|
+
promoCodes
|
|
1527
1536
|
provider
|
|
1528
1537
|
posterUsage {
|
|
1529
1538
|
...PosterUsageFields
|
|
@@ -1544,6 +1553,11 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
|
|
|
1544
1553
|
_id
|
|
1545
1554
|
active
|
|
1546
1555
|
adIds
|
|
1556
|
+
availability {
|
|
1557
|
+
corporate
|
|
1558
|
+
private
|
|
1559
|
+
school
|
|
1560
|
+
}
|
|
1547
1561
|
vendorInfoId
|
|
1548
1562
|
categories {
|
|
1549
1563
|
...CategoryFields
|
|
@@ -1577,14 +1591,15 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
|
|
|
1577
1591
|
partners {
|
|
1578
1592
|
...PartnerFields
|
|
1579
1593
|
}
|
|
1580
|
-
products
|
|
1581
|
-
|
|
1594
|
+
products {
|
|
1595
|
+
...VendorMenuFields
|
|
1596
|
+
}
|
|
1597
|
+
promoCodes
|
|
1582
1598
|
posterUsage {
|
|
1583
1599
|
...PosterUsageFields
|
|
1584
1600
|
}
|
|
1585
1601
|
region
|
|
1586
1602
|
relationIds
|
|
1587
|
-
specialities
|
|
1588
1603
|
socialMedia {
|
|
1589
1604
|
...SocialMediaFields
|
|
1590
1605
|
}
|
|
@@ -1607,6 +1622,7 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
|
|
|
1607
1622
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
1608
1623
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
1609
1624
|
${PARTNER_FIELDS_FRAGMENT}
|
|
1625
|
+
${VENDOR_MENU_FIELDS_FRAGMENT}
|
|
1610
1626
|
`;
|
|
1611
1627
|
|
|
1612
1628
|
// src/graphql/mutations/relation.ts
|