@timardex/cluemart-shared 1.6.130 → 1.7.0
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-CVkVX_z5.d.ts +296 -0
- package/dist/ad-DA9ECAhK.d.mts +296 -0
- package/dist/affiliate-1RtkLnLP.d.ts +35 -0
- package/dist/affiliate-Cos2Syz5.d.mts +35 -0
- package/dist/chunk-HZMP7GXC.mjs +5330 -0
- package/dist/chunk-HZMP7GXC.mjs.map +1 -0
- package/dist/chunk-KZTOISPA.mjs +272 -0
- package/dist/chunk-KZTOISPA.mjs.map +1 -0
- package/dist/chunk-MVQ3CFQR.mjs +230 -0
- package/dist/chunk-MVQ3CFQR.mjs.map +1 -0
- package/dist/chunk-NPFJ2CN2.mjs +109 -0
- package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
- package/dist/chunk-RKIRWZCH.mjs +368 -0
- package/dist/chunk-RKIRWZCH.mjs.map +1 -0
- package/dist/{chunk-OHHJ3KJJ.mjs → chunk-TAECMXM4.mjs} +267 -304
- package/dist/chunk-TAECMXM4.mjs.map +1 -0
- package/dist/chunk-VA5YN2K3.mjs +48 -0
- package/dist/chunk-VA5YN2K3.mjs.map +1 -0
- package/dist/chunk-ZZJSCYJK.mjs +958 -0
- package/dist/chunk-ZZJSCYJK.mjs.map +1 -0
- package/dist/contactUs-DGrDzJaM.d.mts +11 -0
- package/dist/contactUs-H7799pWe.d.ts +11 -0
- package/dist/enums/index.cjs +223 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +164 -5
- package/dist/enums/index.d.ts +164 -5
- package/dist/enums/index.mjs +41 -1
- package/dist/formFields/index.cjs +168 -403
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -6
- package/dist/formFields/index.d.ts +3 -6
- package/dist/formFields/index.mjs +47 -921
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-BUUfmCo7.d.mts +698 -0
- package/dist/global-fKbMmluy.d.ts +698 -0
- package/dist/graphql/index.cjs +3329 -3340
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +487 -690
- package/dist/graphql/index.d.ts +487 -690
- package/dist/graphql/index.mjs +153 -2552
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +3478 -773
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +6 -13
- package/dist/hooks/index.d.ts +6 -13
- package/dist/hooks/index.mjs +99 -193
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/apple-maps-icon.webp.d.ts +1 -8
- package/dist/images/banner-horizontal.webp.d.ts +1 -8
- package/dist/images/banner-vertical.webp.d.ts +1 -8
- package/dist/images/cluiTui.webp.d.ts +1 -8
- package/dist/images/corporate.webp.d.ts +1 -8
- package/dist/images/facebook.webp.d.ts +1 -8
- package/dist/images/gazebo-top.webp.d.ts +1 -8
- package/dist/images/google-maps-icon.webp.d.ts +1 -8
- package/dist/images/googleMaps-logo-dark.webp.d.ts +1 -8
- package/dist/images/googleMaps-logo-light.webp.d.ts +1 -8
- package/dist/images/index.mjs +21 -86
- package/dist/images/index.mjs.map +1 -1
- package/dist/images/instagram.webp.d.ts +1 -8
- package/dist/images/logo-atr.webp.d.ts +1 -8
- package/dist/images/logo-dark.webp.d.ts +1 -8
- package/dist/images/logo.webp.d.ts +1 -8
- package/dist/images/meet.webp.d.ts +1 -8
- package/dist/images/mini-market1.webp.d.ts +1 -8
- package/dist/images/mini-market2.webp.d.ts +1 -8
- package/dist/images/mini-market3.webp.d.ts +1 -8
- package/dist/images/mini-market4.webp.d.ts +1 -8
- package/dist/images/mini-market5.webp.d.ts +1 -8
- package/dist/images/poll.webp.d.ts +1 -8
- package/dist/images/poster1.webp.d.ts +1 -8
- package/dist/images/poster2.webp.d.ts +1 -8
- package/dist/images/poster3.webp.d.ts +1 -8
- package/dist/images/poster4.webp.d.ts +1 -8
- package/dist/images/private.webp.d.ts +1 -8
- package/dist/images/qr-code.webp.d.ts +1 -8
- package/dist/images/school.webp.d.ts +1 -8
- package/dist/images/sima.webp.d.ts +1 -8
- package/dist/images/store-android.webp.d.ts +1 -8
- package/dist/images/store-ios.webp.d.ts +1 -8
- package/dist/images/tablas.webp.d.ts +1 -8
- package/dist/images/telefonos.webp.d.ts +1 -8
- package/dist/images/tiktok.webp.d.ts +1 -8
- package/dist/images/tip.webp.d.ts +1 -8
- package/dist/images/ugralos.webp.d.ts +1 -8
- package/dist/images/waze-maps-icon.webp.d.ts +1 -8
- package/dist/images/website.webp.d.ts +1 -8
- package/dist/images/youtube.webp.d.ts +1 -8
- package/dist/index.cjs +5883 -7079
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1692 -2966
- package/dist/index.d.ts +1692 -2966
- package/dist/index.mjs +5020 -6162
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.cjs +9 -14
- package/dist/map/index.cjs.map +1 -1
- package/dist/map/index.d.mts +14 -18
- package/dist/map/index.d.ts +14 -18
- package/dist/map/index.mjs +9 -14
- package/dist/map/index.mjs.map +1 -1
- package/dist/resourceActivities-BL_12IAo.d.ts +125 -0
- package/dist/resourceActivities-zczOntNk.d.mts +125 -0
- package/dist/sharing/index.cjs +1272 -63
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +7 -32
- package/dist/sharing/index.d.ts +7 -32
- package/dist/sharing/index.mjs +30 -188
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/theme/index.mjs +5 -41
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +110 -868
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +24 -230
- package/dist/types/index.d.ts +24 -230
- package/dist/types/index.mjs +27 -61
- package/dist/utils/index.cjs +214 -608
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +53 -107
- package/dist/utils/index.d.ts +53 -107
- package/dist/utils/index.mjs +15 -43
- package/package.json +12 -40
- package/dist/affiliate-Bqqlffw8.d.mts +0 -36
- package/dist/affiliate-Btlp5XUp.d.ts +0 -36
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
- package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
- package/dist/apollo/index.cjs +0 -1383
- package/dist/apollo/index.cjs.map +0 -1
- package/dist/apollo/index.d.mts +0 -323
- package/dist/apollo/index.d.ts +0 -323
- package/dist/apollo/index.mjs +0 -1295
- package/dist/apollo/index.mjs.map +0 -1
- package/dist/auth/index.cjs +0 -3322
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.mts +0 -164
- package/dist/auth/index.d.ts +0 -164
- package/dist/auth/index.mjs +0 -379
- package/dist/auth/index.mjs.map +0 -1
- package/dist/auth-BOmAO53v.d.ts +0 -169
- package/dist/auth-CsITA95p.d.mts +0 -169
- package/dist/chunk-DATBGC2K.mjs +0 -347
- package/dist/chunk-DATBGC2K.mjs.map +0 -1
- package/dist/chunk-DDHECBJR.mjs +0 -726
- package/dist/chunk-DDHECBJR.mjs.map +0 -1
- package/dist/chunk-INQCDU24.mjs +0 -139
- package/dist/chunk-INQCDU24.mjs.map +0 -1
- package/dist/chunk-NWWKI4PJ.mjs +0 -297
- package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
- package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
- package/dist/chunk-RAYUJODN.mjs +0 -45
- package/dist/chunk-RAYUJODN.mjs.map +0 -1
- package/dist/chunk-TOEFAEF2.mjs +0 -69
- package/dist/chunk-TOEFAEF2.mjs.map +0 -1
- package/dist/chunk-UKW7NZEQ.mjs +0 -2813
- package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
- package/dist/dailyClue-C6WXY73z.d.mts +0 -105
- package/dist/dailyClue-C6WXY73z.d.ts +0 -105
- package/dist/event-C9K7CSg4.d.ts +0 -53
- package/dist/event-W0NhL5Cd.d.mts +0 -53
- package/dist/global-BbSFfYdd.d.ts +0 -181
- package/dist/global-C6v9tRji.d.mts +0 -181
- package/dist/graphql-CDOfA79A.d.ts +0 -1253
- package/dist/graphql-CcvzTs9k.d.mts +0 -1253
- package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
- package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
- package/dist/subscription-Cj_qBA7u.d.mts +0 -20
- package/dist/subscription-OiJ50uJb.d.ts +0 -20
- package/dist/vendor-DmMi2qmx.d.mts +0 -73
- package/dist/vendor-M9hVZlni.d.ts +0 -73
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { n as AdminUpdateResourceType$1, f as ResourceTypeEnum, D as DateTimeType, I as InviteEnumType, o as RelationTypeEnum, p as NotificationEnumType, N as NotificationResourceEnumType, q as ActivityEnumType, r as LocationGeoType, s as EventDateStatusEnumType, O as OsPlatformEnumType } from './graphql-CcvzTs9k.mjs';
|
|
2
|
-
import { S as StallType } from './event-W0NhL5Cd.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Re-export of the GraphQL schema type under the existing public name.
|
|
6
|
-
* @see src/generated/graphql.ts `AdminUpdateResourceType`
|
|
7
|
-
*/
|
|
8
|
-
type AdminUpdateResourceType = AdminUpdateResourceType$1;
|
|
9
|
-
|
|
10
|
-
type RelationDate = {
|
|
11
|
-
dateTime: DateTimeType & {
|
|
12
|
-
stallType: StallType | null;
|
|
13
|
-
};
|
|
14
|
-
lastUpdateBy: {
|
|
15
|
-
resourceId: string;
|
|
16
|
-
userEmail: string;
|
|
17
|
-
};
|
|
18
|
-
paymentReference?: string;
|
|
19
|
-
status: InviteEnumType;
|
|
20
|
-
};
|
|
21
|
-
interface RelationType {
|
|
22
|
-
_id?: string;
|
|
23
|
-
active: boolean;
|
|
24
|
-
chatId: string;
|
|
25
|
-
createdAt?: Date;
|
|
26
|
-
deletedAt?: Date | null;
|
|
27
|
-
eventId: string;
|
|
28
|
-
lastUpdateBy: ResourceTypeEnum;
|
|
29
|
-
relationDates: RelationDate[];
|
|
30
|
-
relationType: RelationTypeEnum;
|
|
31
|
-
updatedAt?: Date;
|
|
32
|
-
vendorId: string;
|
|
33
|
-
}
|
|
34
|
-
/** GraphQL RelationInputType — chatId is optional; server assigns it on create. */
|
|
35
|
-
type RelationInputType = Omit<RelationType, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
|
|
36
|
-
chatId?: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
interface NotificationDataType {
|
|
40
|
-
resourceId: string;
|
|
41
|
-
resourceName: string;
|
|
42
|
-
resourceType: NotificationResourceEnumType;
|
|
43
|
-
}
|
|
44
|
-
type NotificationType = {
|
|
45
|
-
_id: string;
|
|
46
|
-
userId: string;
|
|
47
|
-
title: string;
|
|
48
|
-
message: string;
|
|
49
|
-
isRead: boolean;
|
|
50
|
-
type: NotificationEnumType;
|
|
51
|
-
data: NotificationDataType | null;
|
|
52
|
-
createdAt: Date;
|
|
53
|
-
updatedAt: Date;
|
|
54
|
-
};
|
|
55
|
-
type NotificationCount = {
|
|
56
|
-
total: number;
|
|
57
|
-
unread: number;
|
|
58
|
-
};
|
|
59
|
-
type CreateBulkNotificationInput = {
|
|
60
|
-
data: NotificationDataType | null;
|
|
61
|
-
message: string;
|
|
62
|
-
title: string;
|
|
63
|
-
type: NotificationEnumType;
|
|
64
|
-
userIds: string[];
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
type ResourceActivityEntry = {
|
|
68
|
-
activityType: ActivityEnumType;
|
|
69
|
-
location: LocationGeoType | null;
|
|
70
|
-
dateStatus?: EventDateStatusEnumType | null;
|
|
71
|
-
startDate?: string | null;
|
|
72
|
-
startTime?: string | null;
|
|
73
|
-
timestamp: Date;
|
|
74
|
-
userAgent: OsPlatformEnumType;
|
|
75
|
-
userId?: string | null;
|
|
76
|
-
};
|
|
77
|
-
type ResourceActivityType = {
|
|
78
|
-
_id: string;
|
|
79
|
-
resourceType: ResourceTypeEnum;
|
|
80
|
-
resourceId: string;
|
|
81
|
-
activity: ResourceActivityEntry[];
|
|
82
|
-
};
|
|
83
|
-
type ResourceActivityInputType = {
|
|
84
|
-
resourceId: string;
|
|
85
|
-
resourceType: ResourceTypeEnum;
|
|
86
|
-
activity: Omit<ResourceActivityEntry, "timestamp">;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export type { AdminUpdateResourceType as A, CreateBulkNotificationInput as C, NotificationCount as N, RelationDate as R, NotificationDataType as a, NotificationType as b, RelationInputType as c, RelationType as d, ResourceActivityEntry as e, ResourceActivityInputType as f, ResourceActivityType as g };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { n as AdminUpdateResourceType$1, f as ResourceTypeEnum, D as DateTimeType, I as InviteEnumType, o as RelationTypeEnum, p as NotificationEnumType, N as NotificationResourceEnumType, q as ActivityEnumType, r as LocationGeoType, s as EventDateStatusEnumType, O as OsPlatformEnumType } from './graphql-CDOfA79A.js';
|
|
2
|
-
import { S as StallType } from './event-C9K7CSg4.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Re-export of the GraphQL schema type under the existing public name.
|
|
6
|
-
* @see src/generated/graphql.ts `AdminUpdateResourceType`
|
|
7
|
-
*/
|
|
8
|
-
type AdminUpdateResourceType = AdminUpdateResourceType$1;
|
|
9
|
-
|
|
10
|
-
type RelationDate = {
|
|
11
|
-
dateTime: DateTimeType & {
|
|
12
|
-
stallType: StallType | null;
|
|
13
|
-
};
|
|
14
|
-
lastUpdateBy: {
|
|
15
|
-
resourceId: string;
|
|
16
|
-
userEmail: string;
|
|
17
|
-
};
|
|
18
|
-
paymentReference?: string;
|
|
19
|
-
status: InviteEnumType;
|
|
20
|
-
};
|
|
21
|
-
interface RelationType {
|
|
22
|
-
_id?: string;
|
|
23
|
-
active: boolean;
|
|
24
|
-
chatId: string;
|
|
25
|
-
createdAt?: Date;
|
|
26
|
-
deletedAt?: Date | null;
|
|
27
|
-
eventId: string;
|
|
28
|
-
lastUpdateBy: ResourceTypeEnum;
|
|
29
|
-
relationDates: RelationDate[];
|
|
30
|
-
relationType: RelationTypeEnum;
|
|
31
|
-
updatedAt?: Date;
|
|
32
|
-
vendorId: string;
|
|
33
|
-
}
|
|
34
|
-
/** GraphQL RelationInputType — chatId is optional; server assigns it on create. */
|
|
35
|
-
type RelationInputType = Omit<RelationType, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
|
|
36
|
-
chatId?: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
interface NotificationDataType {
|
|
40
|
-
resourceId: string;
|
|
41
|
-
resourceName: string;
|
|
42
|
-
resourceType: NotificationResourceEnumType;
|
|
43
|
-
}
|
|
44
|
-
type NotificationType = {
|
|
45
|
-
_id: string;
|
|
46
|
-
userId: string;
|
|
47
|
-
title: string;
|
|
48
|
-
message: string;
|
|
49
|
-
isRead: boolean;
|
|
50
|
-
type: NotificationEnumType;
|
|
51
|
-
data: NotificationDataType | null;
|
|
52
|
-
createdAt: Date;
|
|
53
|
-
updatedAt: Date;
|
|
54
|
-
};
|
|
55
|
-
type NotificationCount = {
|
|
56
|
-
total: number;
|
|
57
|
-
unread: number;
|
|
58
|
-
};
|
|
59
|
-
type CreateBulkNotificationInput = {
|
|
60
|
-
data: NotificationDataType | null;
|
|
61
|
-
message: string;
|
|
62
|
-
title: string;
|
|
63
|
-
type: NotificationEnumType;
|
|
64
|
-
userIds: string[];
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
type ResourceActivityEntry = {
|
|
68
|
-
activityType: ActivityEnumType;
|
|
69
|
-
location: LocationGeoType | null;
|
|
70
|
-
dateStatus?: EventDateStatusEnumType | null;
|
|
71
|
-
startDate?: string | null;
|
|
72
|
-
startTime?: string | null;
|
|
73
|
-
timestamp: Date;
|
|
74
|
-
userAgent: OsPlatformEnumType;
|
|
75
|
-
userId?: string | null;
|
|
76
|
-
};
|
|
77
|
-
type ResourceActivityType = {
|
|
78
|
-
_id: string;
|
|
79
|
-
resourceType: ResourceTypeEnum;
|
|
80
|
-
resourceId: string;
|
|
81
|
-
activity: ResourceActivityEntry[];
|
|
82
|
-
};
|
|
83
|
-
type ResourceActivityInputType = {
|
|
84
|
-
resourceId: string;
|
|
85
|
-
resourceType: ResourceTypeEnum;
|
|
86
|
-
activity: Omit<ResourceActivityEntry, "timestamp">;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export type { AdminUpdateResourceType as A, CreateBulkNotificationInput as C, NotificationCount as N, RelationDate as R, NotificationDataType as a, NotificationType as b, RelationInputType as c, RelationType as d, ResourceActivityEntry as e, ResourceActivityInputType as f, ResourceActivityType as g };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { e as LicencesEnumType } from './graphql-CcvzTs9k.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Canonical permission IDs. Add new permissions here first, then map them in
|
|
5
|
-
* ROLE_PERMISSIONS. Prefer resource.action names (e.g. users.read).
|
|
6
|
-
*/
|
|
7
|
-
declare const PERMISSIONS: readonly ["*", "dashboard.admin", "dashboard.affiliate", "dashboard.customer", "dashboard.event", "dashboard.partner", "dashboard.school", "dashboard.vendor", "users.delete", "users.read", "users.update", "events.create", "events.delete", "events.read", "events.update", "vendors.create", "vendors.delete", "vendors.read", "vendors.update", "partners.create", "partners.delete", "partners.read", "partners.update", "schools.create", "schools.delete", "schools.read", "schools.update", "affiliates.create", "affiliates.delete", "affiliates.read", "affiliates.update", "ads.create", "ads.delete", "ads.read", "ads.update", "posts.create", "posts.delete", "posts.read", "posts.update", "settings.read", "settings.update", "affiliates.manage_own", "events.manage_own", "partners.manage_own", "schools.manage_own", "vendors.manage_own"];
|
|
8
|
-
type Permission = (typeof PERMISSIONS)[number];
|
|
9
|
-
declare const WILDCARD_PERMISSION: Permission;
|
|
10
|
-
|
|
11
|
-
/** Tier keys in descending priority (highest first) for licence resolution. */
|
|
12
|
-
declare const TIERS_BY_PRIORITY: readonly ["pro_plus", "pro", "standard"];
|
|
13
|
-
/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */
|
|
14
|
-
type Tier = (typeof TIERS_BY_PRIORITY)[number];
|
|
15
|
-
/** User-facing tier labels (decoupled from the Tier discriminant). */
|
|
16
|
-
declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
|
|
17
|
-
/** Maps licence enums to their canonical tier key. */
|
|
18
|
-
declare const TIER_FROM_LICENCE: Record<LicencesEnumType, Tier>;
|
|
19
|
-
|
|
20
|
-
export { type Permission as P, type Tier as T, WILDCARD_PERMISSION as W, PERMISSIONS as a, TIERS_BY_PRIORITY as b, TIER_DISPLAY_LABELS as c, TIER_FROM_LICENCE as d };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { e as LicencesEnumType } from './graphql-CDOfA79A.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Canonical permission IDs. Add new permissions here first, then map them in
|
|
5
|
-
* ROLE_PERMISSIONS. Prefer resource.action names (e.g. users.read).
|
|
6
|
-
*/
|
|
7
|
-
declare const PERMISSIONS: readonly ["*", "dashboard.admin", "dashboard.affiliate", "dashboard.customer", "dashboard.event", "dashboard.partner", "dashboard.school", "dashboard.vendor", "users.delete", "users.read", "users.update", "events.create", "events.delete", "events.read", "events.update", "vendors.create", "vendors.delete", "vendors.read", "vendors.update", "partners.create", "partners.delete", "partners.read", "partners.update", "schools.create", "schools.delete", "schools.read", "schools.update", "affiliates.create", "affiliates.delete", "affiliates.read", "affiliates.update", "ads.create", "ads.delete", "ads.read", "ads.update", "posts.create", "posts.delete", "posts.read", "posts.update", "settings.read", "settings.update", "affiliates.manage_own", "events.manage_own", "partners.manage_own", "schools.manage_own", "vendors.manage_own"];
|
|
8
|
-
type Permission = (typeof PERMISSIONS)[number];
|
|
9
|
-
declare const WILDCARD_PERMISSION: Permission;
|
|
10
|
-
|
|
11
|
-
/** Tier keys in descending priority (highest first) for licence resolution. */
|
|
12
|
-
declare const TIERS_BY_PRIORITY: readonly ["pro_plus", "pro", "standard"];
|
|
13
|
-
/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */
|
|
14
|
-
type Tier = (typeof TIERS_BY_PRIORITY)[number];
|
|
15
|
-
/** User-facing tier labels (decoupled from the Tier discriminant). */
|
|
16
|
-
declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
|
|
17
|
-
/** Maps licence enums to their canonical tier key. */
|
|
18
|
-
declare const TIER_FROM_LICENCE: Record<LicencesEnumType, Tier>;
|
|
19
|
-
|
|
20
|
-
export { type Permission as P, type Tier as T, WILDCARD_PERMISSION as W, PERMISSIONS as a, TIERS_BY_PRIORITY as b, TIER_DISPLAY_LABELS as c, TIER_FROM_LICENCE as d };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { D as DateTimeType, V as VendorProductListType, a as VendorEnumType, R as ResourceImageType, F as FoodFlavorEnumType } from './graphql-CcvzTs9k.mjs';
|
|
2
|
-
import { B as BaseResourceTypeFormData, R as ResourceDetails, C as Category, a as CreateFormData } from './global-C6v9tRji.mjs';
|
|
3
|
-
|
|
4
|
-
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
5
|
-
dateTime: DateTimeType;
|
|
6
|
-
};
|
|
7
|
-
interface VendorFormData extends BaseResourceTypeFormData {
|
|
8
|
-
availability?: {
|
|
9
|
-
school: boolean;
|
|
10
|
-
private: boolean;
|
|
11
|
-
corporate: boolean;
|
|
12
|
-
};
|
|
13
|
-
claimed?: boolean;
|
|
14
|
-
calendar?: {
|
|
15
|
-
active?: boolean | null;
|
|
16
|
-
calendarData?: VendorCalendarData[] | null;
|
|
17
|
-
} | null;
|
|
18
|
-
categories: Category[];
|
|
19
|
-
foodTruck: boolean;
|
|
20
|
-
products?: {
|
|
21
|
-
active?: boolean | null;
|
|
22
|
-
productsList?: VendorProductListType[] | null;
|
|
23
|
-
} | null;
|
|
24
|
-
unregisteredVendorId?: string | null;
|
|
25
|
-
vendorType: VendorEnumType;
|
|
26
|
-
}
|
|
27
|
-
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
28
|
-
type VendorAttributes = {
|
|
29
|
-
details?: string | null;
|
|
30
|
-
isRequired: boolean;
|
|
31
|
-
};
|
|
32
|
-
type VendorInfoFormData = {
|
|
33
|
-
_id?: string;
|
|
34
|
-
compliance?: {
|
|
35
|
-
liabilityInsurance: boolean;
|
|
36
|
-
foodBeverageLicense: boolean;
|
|
37
|
-
};
|
|
38
|
-
documents?: ResourceImageType[] | null;
|
|
39
|
-
documentsUpload?: ResourceImageType[] | null;
|
|
40
|
-
product: {
|
|
41
|
-
foodFlavors: FoodFlavorEnumType[];
|
|
42
|
-
packaging: string[];
|
|
43
|
-
priceRange: {
|
|
44
|
-
max: string;
|
|
45
|
-
min: string;
|
|
46
|
-
};
|
|
47
|
-
producedIn: string[];
|
|
48
|
-
};
|
|
49
|
-
requirements?: {
|
|
50
|
-
electricity: VendorAttributes;
|
|
51
|
-
gazebo: VendorAttributes;
|
|
52
|
-
table: VendorAttributes;
|
|
53
|
-
};
|
|
54
|
-
stallInfo: {
|
|
55
|
-
size: {
|
|
56
|
-
depth: string;
|
|
57
|
-
width: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
vendorId: string;
|
|
61
|
-
};
|
|
62
|
-
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
63
|
-
interface UnregisteredVendorFormData {
|
|
64
|
-
categoryIds: string[];
|
|
65
|
-
dateTime: DateTimeType[];
|
|
66
|
-
email?: string | null;
|
|
67
|
-
inviterId: string;
|
|
68
|
-
name: string;
|
|
69
|
-
region: string;
|
|
70
|
-
}
|
|
71
|
-
type CreateUnregisteredVendorFormData = CreateFormData<UnregisteredVendorFormData>;
|
|
72
|
-
|
|
73
|
-
export type { CreateUnregisteredVendorFormData as C, UnregisteredVendorFormData as U, VendorCalendarData as V, VendorInfoFormData as a, VendorFormData as b, CreateVendorFormData as c, CreateVendorInfoFormData as d, VendorAttributes as e };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { D as DateTimeType, V as VendorProductListType, a as VendorEnumType, R as ResourceImageType, F as FoodFlavorEnumType } from './graphql-CDOfA79A.js';
|
|
2
|
-
import { B as BaseResourceTypeFormData, R as ResourceDetails, C as Category, a as CreateFormData } from './global-BbSFfYdd.js';
|
|
3
|
-
|
|
4
|
-
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
5
|
-
dateTime: DateTimeType;
|
|
6
|
-
};
|
|
7
|
-
interface VendorFormData extends BaseResourceTypeFormData {
|
|
8
|
-
availability?: {
|
|
9
|
-
school: boolean;
|
|
10
|
-
private: boolean;
|
|
11
|
-
corporate: boolean;
|
|
12
|
-
};
|
|
13
|
-
claimed?: boolean;
|
|
14
|
-
calendar?: {
|
|
15
|
-
active?: boolean | null;
|
|
16
|
-
calendarData?: VendorCalendarData[] | null;
|
|
17
|
-
} | null;
|
|
18
|
-
categories: Category[];
|
|
19
|
-
foodTruck: boolean;
|
|
20
|
-
products?: {
|
|
21
|
-
active?: boolean | null;
|
|
22
|
-
productsList?: VendorProductListType[] | null;
|
|
23
|
-
} | null;
|
|
24
|
-
unregisteredVendorId?: string | null;
|
|
25
|
-
vendorType: VendorEnumType;
|
|
26
|
-
}
|
|
27
|
-
type CreateVendorFormData = CreateFormData<VendorFormData>;
|
|
28
|
-
type VendorAttributes = {
|
|
29
|
-
details?: string | null;
|
|
30
|
-
isRequired: boolean;
|
|
31
|
-
};
|
|
32
|
-
type VendorInfoFormData = {
|
|
33
|
-
_id?: string;
|
|
34
|
-
compliance?: {
|
|
35
|
-
liabilityInsurance: boolean;
|
|
36
|
-
foodBeverageLicense: boolean;
|
|
37
|
-
};
|
|
38
|
-
documents?: ResourceImageType[] | null;
|
|
39
|
-
documentsUpload?: ResourceImageType[] | null;
|
|
40
|
-
product: {
|
|
41
|
-
foodFlavors: FoodFlavorEnumType[];
|
|
42
|
-
packaging: string[];
|
|
43
|
-
priceRange: {
|
|
44
|
-
max: string;
|
|
45
|
-
min: string;
|
|
46
|
-
};
|
|
47
|
-
producedIn: string[];
|
|
48
|
-
};
|
|
49
|
-
requirements?: {
|
|
50
|
-
electricity: VendorAttributes;
|
|
51
|
-
gazebo: VendorAttributes;
|
|
52
|
-
table: VendorAttributes;
|
|
53
|
-
};
|
|
54
|
-
stallInfo: {
|
|
55
|
-
size: {
|
|
56
|
-
depth: string;
|
|
57
|
-
width: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
vendorId: string;
|
|
61
|
-
};
|
|
62
|
-
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
63
|
-
interface UnregisteredVendorFormData {
|
|
64
|
-
categoryIds: string[];
|
|
65
|
-
dateTime: DateTimeType[];
|
|
66
|
-
email?: string | null;
|
|
67
|
-
inviterId: string;
|
|
68
|
-
name: string;
|
|
69
|
-
region: string;
|
|
70
|
-
}
|
|
71
|
-
type CreateUnregisteredVendorFormData = CreateFormData<UnregisteredVendorFormData>;
|
|
72
|
-
|
|
73
|
-
export type { CreateUnregisteredVendorFormData as C, UnregisteredVendorFormData as U, VendorCalendarData as V, VendorInfoFormData as a, VendorFormData as b, CreateVendorFormData as c, CreateVendorInfoFormData as d, VendorAttributes as e };
|