@timardex/cluemart-shared 1.1.36 → 1.1.37

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.
@@ -61,14 +61,18 @@ interface UserType {
61
61
  updatedAt: string;
62
62
  }
63
63
 
64
+ declare enum EnumAdShowOn {
65
+ FRONT_PAGE = "Front-page",
66
+ MARKETS_PAGE = "Markets-page",
67
+ STALLHOLDERS_PAGE = "Stallholders-page"
68
+ }
64
69
  declare enum EnumAdStatus {
65
70
  ACTIVE = "Active",
66
71
  PAUSED = "Paused",
67
72
  EXPIRED = "Expired"
68
73
  }
69
74
  declare enum EnumAdType {
70
- STANDARD = "Standard",
71
- PREMIUM = "Premium",
75
+ SPONSORED = "Sponsored",
72
76
  FREE = "Free"
73
77
  }
74
78
  declare enum EnumAdStyle {
@@ -76,7 +80,6 @@ declare enum EnumAdStyle {
76
80
  RISE = "Rise"
77
81
  }
78
82
  interface AdFormData {
79
- _id?: string;
80
83
  adStyle: EnumAdStyle;
81
84
  adType: EnumAdType;
82
85
  clui?: string | null;
@@ -88,6 +91,7 @@ interface AdFormData {
88
91
  resourceName: string;
89
92
  resourceRegion: string;
90
93
  resourceType: EnumResourceType;
94
+ showOn: EnumAdShowOn;
91
95
  socialMedia?: SocialMediaType[] | null;
92
96
  start: Date;
93
97
  status: EnumAdStatus;
@@ -110,6 +114,7 @@ interface AdType {
110
114
  resourceName: string;
111
115
  resourceRegion: string;
112
116
  resourceType: EnumResourceType;
117
+ showOn: EnumAdShowOn;
113
118
  socialMedia: SocialMediaType[];
114
119
  start: Date;
115
120
  status: EnumAdStatus;
@@ -117,4 +122,4 @@ interface AdType {
117
122
  updatedAt: Date;
118
123
  }
119
124
 
120
- export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type TesterType as T, type UserType as U, type UserFormData as a, type TestersFormData as b, type CreateTestersFormData as c, type AdFormData as d, type CreateAdFormData as e, EnumAdType as f, EnumAdStyle as g };
125
+ export { type AdType as A, type CreateUserFormData as C, EnumAdShowOn as E, type TesterType as T, type UserType as U, type UserFormData as a, type TestersFormData as b, type CreateTestersFormData as c, type AdFormData as d, type CreateAdFormData as e, EnumAdStatus as f, EnumAdType as g, EnumAdStyle as h };
@@ -61,14 +61,18 @@ interface UserType {
61
61
  updatedAt: string;
62
62
  }
63
63
 
64
+ declare enum EnumAdShowOn {
65
+ FRONT_PAGE = "Front-page",
66
+ MARKETS_PAGE = "Markets-page",
67
+ STALLHOLDERS_PAGE = "Stallholders-page"
68
+ }
64
69
  declare enum EnumAdStatus {
65
70
  ACTIVE = "Active",
66
71
  PAUSED = "Paused",
67
72
  EXPIRED = "Expired"
68
73
  }
69
74
  declare enum EnumAdType {
70
- STANDARD = "Standard",
71
- PREMIUM = "Premium",
75
+ SPONSORED = "Sponsored",
72
76
  FREE = "Free"
73
77
  }
74
78
  declare enum EnumAdStyle {
@@ -76,7 +80,6 @@ declare enum EnumAdStyle {
76
80
  RISE = "Rise"
77
81
  }
78
82
  interface AdFormData {
79
- _id?: string;
80
83
  adStyle: EnumAdStyle;
81
84
  adType: EnumAdType;
82
85
  clui?: string | null;
@@ -88,6 +91,7 @@ interface AdFormData {
88
91
  resourceName: string;
89
92
  resourceRegion: string;
90
93
  resourceType: EnumResourceType;
94
+ showOn: EnumAdShowOn;
91
95
  socialMedia?: SocialMediaType[] | null;
92
96
  start: Date;
93
97
  status: EnumAdStatus;
@@ -110,6 +114,7 @@ interface AdType {
110
114
  resourceName: string;
111
115
  resourceRegion: string;
112
116
  resourceType: EnumResourceType;
117
+ showOn: EnumAdShowOn;
113
118
  socialMedia: SocialMediaType[];
114
119
  start: Date;
115
120
  status: EnumAdStatus;
@@ -117,4 +122,4 @@ interface AdType {
117
122
  updatedAt: Date;
118
123
  }
119
124
 
120
- export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type TesterType as T, type UserType as U, type UserFormData as a, type TestersFormData as b, type CreateTestersFormData as c, type AdFormData as d, type CreateAdFormData as e, EnumAdType as f, EnumAdStyle as g };
125
+ export { type AdType as A, type CreateUserFormData as C, EnumAdShowOn as E, type TesterType as T, type UserType as U, type UserFormData as a, type TestersFormData as b, type CreateTestersFormData as c, type AdFormData as d, type CreateAdFormData as e, EnumAdStatus as f, EnumAdType as g, EnumAdStyle as h };
@@ -1,4 +1,10 @@
1
1
  // src/types/ad.ts
2
+ var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
3
+ EnumAdShowOn2["FRONT_PAGE"] = "Front-page";
4
+ EnumAdShowOn2["MARKETS_PAGE"] = "Markets-page";
5
+ EnumAdShowOn2["STALLHOLDERS_PAGE"] = "Stallholders-page";
6
+ return EnumAdShowOn2;
7
+ })(EnumAdShowOn || {});
2
8
  var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
3
9
  EnumAdStatus2["ACTIVE"] = "Active";
4
10
  EnumAdStatus2["PAUSED"] = "Paused";
@@ -6,8 +12,7 @@ var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
6
12
  return EnumAdStatus2;
7
13
  })(EnumAdStatus || {});
8
14
  var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
9
- EnumAdType2["STANDARD"] = "Standard";
10
- EnumAdType2["PREMIUM"] = "Premium";
15
+ EnumAdType2["SPONSORED"] = "Sponsored";
11
16
  EnumAdType2["FREE"] = "Free";
12
17
  return EnumAdType2;
13
18
  })(EnumAdType || {});
@@ -18,8 +23,9 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
18
23
  })(EnumAdStyle || {});
19
24
 
20
25
  export {
26
+ EnumAdShowOn,
21
27
  EnumAdStatus,
22
28
  EnumAdType,
23
29
  EnumAdStyle
24
30
  };
25
- //# sourceMappingURL=chunk-OWLRA2IR.mjs.map
31
+ //# sourceMappingURL=chunk-XUV6TICI.mjs.map
@@ -0,0 +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 FRONT_PAGE = \"Front-page\",\n MARKETS_PAGE = \"Markets-page\",\n STALLHOLDERS_PAGE = \"Stallholders-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 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 {\n _id: string;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clicks?: number; // How many times the ad was clicked\n clui?: string;\n createdAt: Date;\n end: Date;\n impressions?: number; // How often the ad was seen\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[];\n start: Date;\n status: EnumAdStatus;\n targetRegion?: string; // same format as resourceRegion\n updatedAt: Date;\n}\n"],"mappings":";AAIO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,kBAAe;AACf,EAAAA,cAAA,uBAAoB;AAHV,SAAAA;AAAA,GAAA;AAML,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"]}
@@ -2211,6 +2211,7 @@ var AD_FIELDS_FRAGMENT = import_client43.gql`
2211
2211
  resourceName
2212
2212
  resourceRegion
2213
2213
  resourceType
2214
+ showOn
2214
2215
  socialMedia {
2215
2216
  ...SocialMediaFields
2216
2217
  }