@timardex/cluemart-shared 1.1.32 → 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-BKBAgZLe.d.ts → ad-Cve64RPS.d.ts} +13 -23
- package/dist/{ad-DoA7_MpI.d.mts → ad-g6NoyQyl.d.mts} +13 -23
- 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 +22 -33
- 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 +16 -28
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +24 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -23
- package/dist/index.d.ts +13 -23
- package/dist/index.mjs +23 -41
- 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-LNWCKRNS.mjs +0 -18
- package/dist/chunk-LNWCKRNS.mjs.map +0 -1
|
@@ -62,24 +62,20 @@ 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
|
-
ctaText?: string | null;
|
|
77
|
-
ctaUrl?: string | null;
|
|
78
78
|
end: string;
|
|
79
|
-
media?: {
|
|
80
|
-
type: EnumAdMediaType;
|
|
81
|
-
url: string;
|
|
82
|
-
}[] | null;
|
|
83
79
|
resourceCover: string;
|
|
84
80
|
resourceDescription: string;
|
|
85
81
|
resourceId: string;
|
|
@@ -90,22 +86,17 @@ interface AdFormData {
|
|
|
90
86
|
socialMedia?: SocialMediaType[] | null;
|
|
91
87
|
start: string;
|
|
92
88
|
status: EnumAdStatus;
|
|
93
|
-
targetRegion
|
|
89
|
+
targetRegion?: string | null;
|
|
94
90
|
}
|
|
95
91
|
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
96
92
|
interface AdType {
|
|
97
93
|
_id?: string;
|
|
94
|
+
adType: EnumAdType;
|
|
98
95
|
clicks?: number;
|
|
99
96
|
clui?: string;
|
|
100
|
-
createdAt
|
|
101
|
-
ctaText?: string;
|
|
102
|
-
ctaUrl?: string;
|
|
97
|
+
createdAt: Date;
|
|
103
98
|
end: Date;
|
|
104
99
|
impressions?: number;
|
|
105
|
-
media?: {
|
|
106
|
-
type: EnumAdMediaType;
|
|
107
|
-
url: string;
|
|
108
|
-
}[] | null;
|
|
109
100
|
resourceCover: string;
|
|
110
101
|
resourceDescription: string;
|
|
111
102
|
resourceId: string;
|
|
@@ -116,9 +107,8 @@ interface AdType {
|
|
|
116
107
|
socialMedia: SocialMediaType[];
|
|
117
108
|
start: Date;
|
|
118
109
|
status: EnumAdStatus;
|
|
119
|
-
targetInterests?: string[];
|
|
120
110
|
targetRegion?: string;
|
|
121
|
-
updatedAt
|
|
111
|
+
updatedAt: Date;
|
|
122
112
|
}
|
|
123
113
|
|
|
124
|
-
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,24 +62,20 @@ 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
|
-
ctaText?: string | null;
|
|
77
|
-
ctaUrl?: string | null;
|
|
78
78
|
end: string;
|
|
79
|
-
media?: {
|
|
80
|
-
type: EnumAdMediaType;
|
|
81
|
-
url: string;
|
|
82
|
-
}[] | null;
|
|
83
79
|
resourceCover: string;
|
|
84
80
|
resourceDescription: string;
|
|
85
81
|
resourceId: string;
|
|
@@ -90,22 +86,17 @@ interface AdFormData {
|
|
|
90
86
|
socialMedia?: SocialMediaType[] | null;
|
|
91
87
|
start: string;
|
|
92
88
|
status: EnumAdStatus;
|
|
93
|
-
targetRegion
|
|
89
|
+
targetRegion?: string | null;
|
|
94
90
|
}
|
|
95
91
|
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
96
92
|
interface AdType {
|
|
97
93
|
_id?: string;
|
|
94
|
+
adType: EnumAdType;
|
|
98
95
|
clicks?: number;
|
|
99
96
|
clui?: string;
|
|
100
|
-
createdAt
|
|
101
|
-
ctaText?: string;
|
|
102
|
-
ctaUrl?: string;
|
|
97
|
+
createdAt: Date;
|
|
103
98
|
end: Date;
|
|
104
99
|
impressions?: number;
|
|
105
|
-
media?: {
|
|
106
|
-
type: EnumAdMediaType;
|
|
107
|
-
url: string;
|
|
108
|
-
}[] | null;
|
|
109
100
|
resourceCover: string;
|
|
110
101
|
resourceDescription: string;
|
|
111
102
|
resourceId: string;
|
|
@@ -116,9 +107,8 @@ interface AdType {
|
|
|
116
107
|
socialMedia: SocialMediaType[];
|
|
117
108
|
start: Date;
|
|
118
109
|
status: EnumAdStatus;
|
|
119
|
-
targetInterests?: string[];
|
|
120
110
|
targetRegion?: string;
|
|
121
|
-
updatedAt
|
|
111
|
+
updatedAt: Date;
|
|
122
112
|
}
|
|
123
113
|
|
|
124
|
-
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
|
}
|