@timardex/cluemart-shared 1.2.66 → 1.2.68
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-BChCn4Ka.d.ts → ad--4RgHfBN.d.ts} +9 -8
- package/dist/{ad-DC4CQ8Gp.d.mts → ad-ByXz9Km3.d.mts} +9 -8
- package/dist/{auth-DqNTAngW.d.ts → auth-ChIm_Rn9.d.ts} +1 -1
- package/dist/{auth-BBzFtZee.d.mts → auth-gyDaskvq.d.mts} +1 -1
- package/dist/{chunk-N625BZKR.mjs → chunk-ILRVLTWY.mjs} +1 -1
- package/dist/{chunk-N625BZKR.mjs.map → chunk-ILRVLTWY.mjs.map} +1 -1
- package/dist/formFields/index.cjs +2 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -2
- package/dist/formFields/index.d.ts +3 -2
- package/dist/formFields/index.mjs +1 -0
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-WNM-jttW.d.mts → global-Q8FB4ZfD.d.mts} +19 -13
- package/dist/{global-JXYCto5-.d.ts → global-X7Gs8dR2.d.ts} +19 -13
- package/dist/graphql/index.cjs +8 -7
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +8 -7
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +31 -13
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +17 -8
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +40 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +31 -23
- package/dist/index.d.ts +31 -23
- package/dist/index.mjs +38 -28
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-DO97TmNs.d.mts → resourceActivities-DB-fx51l.d.mts} +3 -3
- package/dist/{resourceActivities-BkGGnxjl.d.ts → resourceActivities-Ezt7CDPH.d.ts} +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.js';
|
|
2
|
-
import { C as Category,
|
|
2
|
+
import { C as Category, H as CreateFormData, v as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, s as SocialMediaType } from './global-X7Gs8dR2.js';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface TesterFormData {
|
|
5
|
+
approved: boolean;
|
|
5
6
|
categories?: Category[] | null;
|
|
6
7
|
companyName: string;
|
|
7
8
|
email: string;
|
|
@@ -11,12 +12,12 @@ interface TestersFormData {
|
|
|
11
12
|
region: string;
|
|
12
13
|
resourceType: EnumResourceType;
|
|
13
14
|
}
|
|
14
|
-
type
|
|
15
|
-
interface TesterType extends
|
|
15
|
+
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
16
|
+
interface TesterType extends TesterFormData {
|
|
16
17
|
_id: string;
|
|
17
18
|
active: boolean;
|
|
18
|
-
createdAt:
|
|
19
|
-
updatedAt:
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date | null;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
@@ -76,7 +77,7 @@ interface AdType extends AdFormData {
|
|
|
76
77
|
createdAt: Date;
|
|
77
78
|
impressions?: number;
|
|
78
79
|
start: Date;
|
|
79
|
-
updatedAt: Date;
|
|
80
|
+
updatedAt: Date | null;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
export { type AdType as A, type
|
|
83
|
+
export { type AdType as A, type CreateTesterFormData as C, EnumAdStatus as E, type PartnerType as P, type TesterType as T, type PartnerFormData as a, type TesterFormData as b, type AdFormData as c, type CreateAdFormData as d, type CreatePartnerFormData as e, EnumAdShowOn as f, EnumAdType as g, EnumAdStyle as h };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
|
|
2
|
-
import { C as Category,
|
|
2
|
+
import { C as Category, H as CreateFormData, v as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, s as SocialMediaType } from './global-Q8FB4ZfD.mjs';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface TesterFormData {
|
|
5
|
+
approved: boolean;
|
|
5
6
|
categories?: Category[] | null;
|
|
6
7
|
companyName: string;
|
|
7
8
|
email: string;
|
|
@@ -11,12 +12,12 @@ interface TestersFormData {
|
|
|
11
12
|
region: string;
|
|
12
13
|
resourceType: EnumResourceType;
|
|
13
14
|
}
|
|
14
|
-
type
|
|
15
|
-
interface TesterType extends
|
|
15
|
+
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
16
|
+
interface TesterType extends TesterFormData {
|
|
16
17
|
_id: string;
|
|
17
18
|
active: boolean;
|
|
18
|
-
createdAt:
|
|
19
|
-
updatedAt:
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date | null;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
@@ -76,7 +77,7 @@ interface AdType extends AdFormData {
|
|
|
76
77
|
createdAt: Date;
|
|
77
78
|
impressions?: number;
|
|
78
79
|
start: Date;
|
|
79
|
-
updatedAt: Date;
|
|
80
|
+
updatedAt: Date | null;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
export { type AdType as A, type
|
|
83
|
+
export { type AdType as A, type CreateTesterFormData as C, EnumAdStatus as E, type PartnerType as P, type TesterType as T, type PartnerFormData as a, type TesterFormData as b, type AdFormData as c, type CreateAdFormData as d, type CreatePartnerFormData as e, EnumAdShowOn as f, EnumAdType as g, EnumAdStyle as h };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/ad.ts"],"sourcesContent":["import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date;\n}\n"],"mappings":";AAIO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;","names":["EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle"]}
|
|
1
|
+
{"version":3,"sources":["../src/types/ad.ts"],"sourcesContent":["import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n"],"mappings":";AAIO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;","names":["EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle"]}
|
|
@@ -32,6 +32,7 @@ var formFields_exports = {};
|
|
|
32
32
|
__export(formFields_exports, {
|
|
33
33
|
availableCategories: () => availableCategories,
|
|
34
34
|
availableTagTypes: () => availableTagTypes,
|
|
35
|
+
categoryColors: () => categoryColors,
|
|
35
36
|
companyContactFields: () => companyContactFields,
|
|
36
37
|
contactUsFields: () => contactUsFields,
|
|
37
38
|
emailField: () => emailField,
|
|
@@ -1874,6 +1875,7 @@ var partnerBasicInfoFields = [
|
|
|
1874
1875
|
0 && (module.exports = {
|
|
1875
1876
|
availableCategories,
|
|
1876
1877
|
availableTagTypes,
|
|
1878
|
+
categoryColors,
|
|
1877
1879
|
companyContactFields,
|
|
1878
1880
|
contactUsFields,
|
|
1879
1881
|
emailField,
|