@timardex/cluemart-shared 1.1.33 → 1.1.34
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-CGnZuTBb.d.ts → ad-Cve64RPS.d.ts} +13 -17
- package/dist/{ad-CMhyVkOP.d.mts → ad-g6NoyQyl.d.mts} +13 -17
- package/dist/chunk-SE5LK2MM.mjs +19 -0
- package/dist/chunk-SE5LK2MM.mjs.map +1 -0
- package/dist/graphql/index.cjs +0 -7
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +0 -7
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +21 -7
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +15 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +23 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -17
- package/dist/index.d.ts +13 -17
- package/dist/index.mjs +22 -20
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +13 -12
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +5 -5
- package/package.json +1 -1
- package/dist/chunk-RWVOW3KG.mjs +0 -18
- package/dist/chunk-RWVOW3KG.mjs.map +0 -1
|
@@ -62,16 +62,18 @@ interface UserType {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
declare enum EnumAdStatus {
|
|
65
|
-
ACTIVE = "
|
|
66
|
-
PAUSED = "
|
|
67
|
-
EXPIRED = "
|
|
65
|
+
ACTIVE = "Active",
|
|
66
|
+
PAUSED = "Paused",
|
|
67
|
+
EXPIRED = "Expired"
|
|
68
68
|
}
|
|
69
|
-
declare enum
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
declare enum EnumAdType {
|
|
70
|
+
STANDARD = "Standard",
|
|
71
|
+
PREMIUM = "Premium",
|
|
72
|
+
FREE = "Free"
|
|
72
73
|
}
|
|
73
74
|
interface AdFormData {
|
|
74
75
|
_id?: string;
|
|
76
|
+
adType: EnumAdType;
|
|
75
77
|
clui?: string | null;
|
|
76
78
|
end: string;
|
|
77
79
|
resourceCover: string;
|
|
@@ -84,22 +86,17 @@ interface AdFormData {
|
|
|
84
86
|
socialMedia?: SocialMediaType[] | null;
|
|
85
87
|
start: string;
|
|
86
88
|
status: EnumAdStatus;
|
|
87
|
-
targetRegion
|
|
89
|
+
targetRegion?: string | null;
|
|
88
90
|
}
|
|
89
91
|
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
90
92
|
interface AdType {
|
|
91
93
|
_id?: string;
|
|
94
|
+
adType: EnumAdType;
|
|
92
95
|
clicks?: number;
|
|
93
96
|
clui?: string;
|
|
94
|
-
createdAt
|
|
95
|
-
ctaText?: string;
|
|
96
|
-
ctaUrl?: string;
|
|
97
|
+
createdAt: Date;
|
|
97
98
|
end: Date;
|
|
98
99
|
impressions?: number;
|
|
99
|
-
media?: {
|
|
100
|
-
type: EnumAdMediaType;
|
|
101
|
-
url: string;
|
|
102
|
-
}[] | null;
|
|
103
100
|
resourceCover: string;
|
|
104
101
|
resourceDescription: string;
|
|
105
102
|
resourceId: string;
|
|
@@ -110,9 +107,8 @@ interface AdType {
|
|
|
110
107
|
socialMedia: SocialMediaType[];
|
|
111
108
|
start: Date;
|
|
112
109
|
status: EnumAdStatus;
|
|
113
|
-
targetInterests?: string[];
|
|
114
110
|
targetRegion?: string;
|
|
115
|
-
updatedAt
|
|
111
|
+
updatedAt: Date;
|
|
116
112
|
}
|
|
117
113
|
|
|
118
|
-
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,
|
|
114
|
+
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 };
|
|
@@ -62,16 +62,18 @@ interface UserType {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
declare enum EnumAdStatus {
|
|
65
|
-
ACTIVE = "
|
|
66
|
-
PAUSED = "
|
|
67
|
-
EXPIRED = "
|
|
65
|
+
ACTIVE = "Active",
|
|
66
|
+
PAUSED = "Paused",
|
|
67
|
+
EXPIRED = "Expired"
|
|
68
68
|
}
|
|
69
|
-
declare enum
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
declare enum EnumAdType {
|
|
70
|
+
STANDARD = "Standard",
|
|
71
|
+
PREMIUM = "Premium",
|
|
72
|
+
FREE = "Free"
|
|
72
73
|
}
|
|
73
74
|
interface AdFormData {
|
|
74
75
|
_id?: string;
|
|
76
|
+
adType: EnumAdType;
|
|
75
77
|
clui?: string | null;
|
|
76
78
|
end: string;
|
|
77
79
|
resourceCover: string;
|
|
@@ -84,22 +86,17 @@ interface AdFormData {
|
|
|
84
86
|
socialMedia?: SocialMediaType[] | null;
|
|
85
87
|
start: string;
|
|
86
88
|
status: EnumAdStatus;
|
|
87
|
-
targetRegion
|
|
89
|
+
targetRegion?: string | null;
|
|
88
90
|
}
|
|
89
91
|
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
90
92
|
interface AdType {
|
|
91
93
|
_id?: string;
|
|
94
|
+
adType: EnumAdType;
|
|
92
95
|
clicks?: number;
|
|
93
96
|
clui?: string;
|
|
94
|
-
createdAt
|
|
95
|
-
ctaText?: string;
|
|
96
|
-
ctaUrl?: string;
|
|
97
|
+
createdAt: Date;
|
|
97
98
|
end: Date;
|
|
98
99
|
impressions?: number;
|
|
99
|
-
media?: {
|
|
100
|
-
type: EnumAdMediaType;
|
|
101
|
-
url: string;
|
|
102
|
-
}[] | null;
|
|
103
100
|
resourceCover: string;
|
|
104
101
|
resourceDescription: string;
|
|
105
102
|
resourceId: string;
|
|
@@ -110,9 +107,8 @@ interface AdType {
|
|
|
110
107
|
socialMedia: SocialMediaType[];
|
|
111
108
|
start: Date;
|
|
112
109
|
status: EnumAdStatus;
|
|
113
|
-
targetInterests?: string[];
|
|
114
110
|
targetRegion?: string;
|
|
115
|
-
updatedAt
|
|
111
|
+
updatedAt: Date;
|
|
116
112
|
}
|
|
117
113
|
|
|
118
|
-
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,
|
|
114
|
+
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 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/types/ad.ts
|
|
2
|
+
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
3
|
+
EnumAdStatus2["ACTIVE"] = "Active";
|
|
4
|
+
EnumAdStatus2["PAUSED"] = "Paused";
|
|
5
|
+
EnumAdStatus2["EXPIRED"] = "Expired";
|
|
6
|
+
return EnumAdStatus2;
|
|
7
|
+
})(EnumAdStatus || {});
|
|
8
|
+
var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
|
|
9
|
+
EnumAdType2["STANDARD"] = "Standard";
|
|
10
|
+
EnumAdType2["PREMIUM"] = "Premium";
|
|
11
|
+
EnumAdType2["FREE"] = "Free";
|
|
12
|
+
return EnumAdType2;
|
|
13
|
+
})(EnumAdType || {});
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
EnumAdStatus,
|
|
17
|
+
EnumAdType
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=chunk-SE5LK2MM.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 EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n STANDARD = \"Standard\",\n PREMIUM = \"Premium\",\n FREE = \"Free\",\n}\n\nexport interface AdFormData {\n _id?: string;\n adType: EnumAdType;\n clui?: string | null;\n end: string; // 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 socialMedia?: SocialMediaType[] | null;\n start: string; // 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 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 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,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,cAAW;AACX,EAAAA,YAAA,aAAU;AACV,EAAAA,YAAA,UAAO;AAHG,SAAAA;AAAA,GAAA;","names":["EnumAdStatus","EnumAdType"]}
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -2200,14 +2200,8 @@ var AD_FIELDS_FRAGMENT = import_client43.gql`
|
|
|
2200
2200
|
_id
|
|
2201
2201
|
clicks
|
|
2202
2202
|
createdAt
|
|
2203
|
-
ctaText
|
|
2204
|
-
ctaUrl
|
|
2205
2203
|
end
|
|
2206
2204
|
impressions
|
|
2207
|
-
media {
|
|
2208
|
-
type
|
|
2209
|
-
url
|
|
2210
|
-
}
|
|
2211
2205
|
resourceCover
|
|
2212
2206
|
resourceDescription
|
|
2213
2207
|
resourceId
|
|
@@ -2220,7 +2214,6 @@ var AD_FIELDS_FRAGMENT = import_client43.gql`
|
|
|
2220
2214
|
}
|
|
2221
2215
|
start
|
|
2222
2216
|
status
|
|
2223
|
-
targetInterests
|
|
2224
2217
|
targetRegion
|
|
2225
2218
|
updatedAt
|
|
2226
2219
|
}
|