@blux.ai/web-sdk 1.2.0 → 1.2.1
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/package.json +1 -1
- package/dist/src/BluxClient.d.ts +3 -3
- package/dist/src/BluxClient.js +16 -17
- package/dist/src/BluxClient.js.map +1 -1
- package/dist/src/apis/APIs.d.ts +196 -44
- package/dist/src/apis/APIs.js +3 -13
- package/dist/src/apis/APIs.js.map +1 -1
- package/dist/src/apis/getItemRecommendations.d.ts +1 -1
- package/dist/src/events/AddCartaddEvent.d.ts +1 -1
- package/dist/src/events/AddCartaddEvent.js +2 -1
- package/dist/src/events/AddCartaddEvent.js.map +1 -1
- package/dist/src/events/AddInstantImpressionEvent.d.ts +1 -1
- package/dist/src/events/AddInstantImpressionEvent.js +2 -1
- package/dist/src/events/AddInstantImpressionEvent.js.map +1 -1
- package/dist/src/events/AddPageViewEvent.d.ts +1 -1
- package/dist/src/events/AddPageViewEvent.js +2 -2
- package/dist/src/events/AddPageViewEvent.js.map +1 -1
- package/dist/src/events/AddPersistentImpressionEvent.d.ts +1 -1
- package/dist/src/events/AddPersistentImpressionEvent.js +2 -1
- package/dist/src/events/AddPersistentImpressionEvent.js.map +1 -1
- package/dist/src/events/AddProductDetailViewEvent.d.ts +1 -1
- package/dist/src/events/AddProductDetailViewEvent.js +2 -1
- package/dist/src/events/AddProductDetailViewEvent.js.map +1 -1
- package/dist/src/events/AddSectionViewEvent.d.ts +1 -1
- package/dist/src/events/AddSectionViewEvent.js +2 -1
- package/dist/src/events/AddSectionViewEvent.js.map +1 -1
- package/dist/src/events/types.d.ts +12 -0
- package/dist/src/events/types.js.map +1 -1
- package/dist/src/recs/ItemRec.d.ts +5 -5
- package/dist/src/recs/ItemRec.js +3 -2
- package/dist/src/recs/ItemRec.js.map +1 -1
- package/dist/src/recs/types.d.ts +4 -8
- package/dist/src/recs/types.js.map +1 -1
- package/dist/src/utils/zodSchemas.d.ts +102 -54
- package/dist/src/utils/zodSchemas.js +57 -34
- package/dist/src/utils/zodSchemas.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/apis/APIs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RecResponse } from "../utils/zodSchemas";
|
|
3
3
|
import type { Serialize } from "../utils/Base";
|
|
4
4
|
declare enum HttpMethod {
|
|
5
5
|
GET = "get",
|
|
@@ -19,7 +19,7 @@ export declare namespace APIs {
|
|
|
19
19
|
const method = HttpMethod.POST;
|
|
20
20
|
const bodySchema: z.ZodObject<{
|
|
21
21
|
device_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>>;
|
|
22
|
-
country_code: z.ZodOptional<z.ZodEffects<z.ZodEnum<["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW")[]]
|
|
22
|
+
country_code: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodLiteral<"419">, z.ZodEnum<["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW")[]]>]>>, "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW" | undefined, string>>;
|
|
23
23
|
device_model: z.ZodString;
|
|
24
24
|
language_code: z.ZodString;
|
|
25
25
|
os_version: z.ZodString;
|
|
@@ -51,7 +51,7 @@ export declare namespace APIs {
|
|
|
51
51
|
timezone: string;
|
|
52
52
|
blux_user_id?: string | undefined;
|
|
53
53
|
device_id?: string | undefined;
|
|
54
|
-
country_code?:
|
|
54
|
+
country_code?: string | undefined;
|
|
55
55
|
isVisitHandlingInSdk?: boolean | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
@@ -146,8 +146,86 @@ export declare namespace APIs {
|
|
|
146
146
|
event_type: z.ZodString;
|
|
147
147
|
event_value: z.ZodOptional<z.ZodString>;
|
|
148
148
|
item_id: z.ZodOptional<z.ZodString>;
|
|
149
|
-
event_properties: z.ZodOptional<z.
|
|
150
|
-
|
|
149
|
+
event_properties: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
section: z.ZodOptional<z.ZodString>;
|
|
151
|
+
prev_section: z.ZodOptional<z.ZodString>;
|
|
152
|
+
recommendation_id: z.ZodOptional<z.ZodString>;
|
|
153
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
order_id: z.ZodOptional<z.ZodString>;
|
|
155
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
prev_page: z.ZodOptional<z.ZodString>;
|
|
157
|
+
page: z.ZodOptional<z.ZodString>;
|
|
158
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
item_id: z.ZodOptional<z.ZodString>;
|
|
160
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
price: z.ZodNumber;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
id: string;
|
|
165
|
+
price: number;
|
|
166
|
+
}, {
|
|
167
|
+
id: string;
|
|
168
|
+
price: number;
|
|
169
|
+
}>, "many">>;
|
|
170
|
+
search_query: z.ZodOptional<z.ZodString>;
|
|
171
|
+
order_amount: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
paid_amount: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
trackings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
type: z.ZodString;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
id: string;
|
|
178
|
+
type: string;
|
|
179
|
+
}, {
|
|
180
|
+
id: string;
|
|
181
|
+
type: string;
|
|
182
|
+
}>, "many">>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
item_id?: string | undefined;
|
|
185
|
+
recommendation_id?: string | undefined;
|
|
186
|
+
prev_page?: string | undefined;
|
|
187
|
+
prev_section?: string | undefined;
|
|
188
|
+
trackings?: {
|
|
189
|
+
id: string;
|
|
190
|
+
type: string;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
rating?: number | undefined;
|
|
193
|
+
price?: number | undefined;
|
|
194
|
+
order_id?: string | undefined;
|
|
195
|
+
page?: string | undefined;
|
|
196
|
+
section?: string | undefined;
|
|
197
|
+
position?: number | undefined;
|
|
198
|
+
search_query?: string | undefined;
|
|
199
|
+
items?: {
|
|
200
|
+
id: string;
|
|
201
|
+
price: number;
|
|
202
|
+
}[] | undefined;
|
|
203
|
+
order_amount?: number | undefined;
|
|
204
|
+
paid_amount?: number | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
item_id?: string | undefined;
|
|
207
|
+
recommendation_id?: string | undefined;
|
|
208
|
+
prev_page?: string | undefined;
|
|
209
|
+
prev_section?: string | undefined;
|
|
210
|
+
trackings?: {
|
|
211
|
+
id: string;
|
|
212
|
+
type: string;
|
|
213
|
+
}[] | undefined;
|
|
214
|
+
rating?: number | undefined;
|
|
215
|
+
price?: number | undefined;
|
|
216
|
+
order_id?: string | undefined;
|
|
217
|
+
page?: string | undefined;
|
|
218
|
+
section?: string | undefined;
|
|
219
|
+
position?: number | undefined;
|
|
220
|
+
search_query?: string | undefined;
|
|
221
|
+
items?: {
|
|
222
|
+
id: string;
|
|
223
|
+
price: number;
|
|
224
|
+
}[] | undefined;
|
|
225
|
+
order_amount?: number | undefined;
|
|
226
|
+
paid_amount?: number | undefined;
|
|
227
|
+
}>>;
|
|
228
|
+
custom_event_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">, z.ZodUndefined]>>>;
|
|
151
229
|
internal_event_properties: z.ZodOptional<z.ZodObject<{
|
|
152
230
|
url: z.ZodOptional<z.ZodString>;
|
|
153
231
|
ref: z.ZodOptional<z.ZodString>;
|
|
@@ -166,8 +244,30 @@ export declare namespace APIs {
|
|
|
166
244
|
url?: string | undefined;
|
|
167
245
|
ref?: string | undefined;
|
|
168
246
|
} | undefined;
|
|
169
|
-
event_properties?:
|
|
170
|
-
|
|
247
|
+
event_properties?: {
|
|
248
|
+
item_id?: string | undefined;
|
|
249
|
+
recommendation_id?: string | undefined;
|
|
250
|
+
prev_page?: string | undefined;
|
|
251
|
+
prev_section?: string | undefined;
|
|
252
|
+
trackings?: {
|
|
253
|
+
id: string;
|
|
254
|
+
type: string;
|
|
255
|
+
}[] | undefined;
|
|
256
|
+
rating?: number | undefined;
|
|
257
|
+
price?: number | undefined;
|
|
258
|
+
order_id?: string | undefined;
|
|
259
|
+
page?: string | undefined;
|
|
260
|
+
section?: string | undefined;
|
|
261
|
+
position?: number | undefined;
|
|
262
|
+
search_query?: string | undefined;
|
|
263
|
+
items?: {
|
|
264
|
+
id: string;
|
|
265
|
+
price: number;
|
|
266
|
+
}[] | undefined;
|
|
267
|
+
order_amount?: number | undefined;
|
|
268
|
+
paid_amount?: number | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
custom_event_properties?: Record<string, string | number | boolean | Date | string[] | {}[] | undefined> | undefined;
|
|
171
271
|
item_id?: string | undefined;
|
|
172
272
|
device_id?: import("bson-objectid").default | undefined;
|
|
173
273
|
event_value?: string | undefined;
|
|
@@ -178,8 +278,30 @@ export declare namespace APIs {
|
|
|
178
278
|
url?: string | undefined;
|
|
179
279
|
ref?: string | undefined;
|
|
180
280
|
} | undefined;
|
|
181
|
-
event_properties?:
|
|
182
|
-
|
|
281
|
+
event_properties?: {
|
|
282
|
+
item_id?: string | undefined;
|
|
283
|
+
recommendation_id?: string | undefined;
|
|
284
|
+
prev_page?: string | undefined;
|
|
285
|
+
prev_section?: string | undefined;
|
|
286
|
+
trackings?: {
|
|
287
|
+
id: string;
|
|
288
|
+
type: string;
|
|
289
|
+
}[] | undefined;
|
|
290
|
+
rating?: number | undefined;
|
|
291
|
+
price?: number | undefined;
|
|
292
|
+
order_id?: string | undefined;
|
|
293
|
+
page?: string | undefined;
|
|
294
|
+
section?: string | undefined;
|
|
295
|
+
position?: number | undefined;
|
|
296
|
+
search_query?: string | undefined;
|
|
297
|
+
items?: {
|
|
298
|
+
id: string;
|
|
299
|
+
price: number;
|
|
300
|
+
}[] | undefined;
|
|
301
|
+
order_amount?: number | undefined;
|
|
302
|
+
paid_amount?: number | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
custom_event_properties?: Record<string, string | number | boolean | string[] | {}[] | undefined> | undefined;
|
|
183
305
|
item_id?: string | undefined;
|
|
184
306
|
device_id?: string | undefined;
|
|
185
307
|
event_value?: string | undefined;
|
|
@@ -192,8 +314,30 @@ export declare namespace APIs {
|
|
|
192
314
|
url?: string | undefined;
|
|
193
315
|
ref?: string | undefined;
|
|
194
316
|
} | undefined;
|
|
195
|
-
event_properties?:
|
|
196
|
-
|
|
317
|
+
event_properties?: {
|
|
318
|
+
item_id?: string | undefined;
|
|
319
|
+
recommendation_id?: string | undefined;
|
|
320
|
+
prev_page?: string | undefined;
|
|
321
|
+
prev_section?: string | undefined;
|
|
322
|
+
trackings?: {
|
|
323
|
+
id: string;
|
|
324
|
+
type: string;
|
|
325
|
+
}[] | undefined;
|
|
326
|
+
rating?: number | undefined;
|
|
327
|
+
price?: number | undefined;
|
|
328
|
+
order_id?: string | undefined;
|
|
329
|
+
page?: string | undefined;
|
|
330
|
+
section?: string | undefined;
|
|
331
|
+
position?: number | undefined;
|
|
332
|
+
search_query?: string | undefined;
|
|
333
|
+
items?: {
|
|
334
|
+
id: string;
|
|
335
|
+
price: number;
|
|
336
|
+
}[] | undefined;
|
|
337
|
+
order_amount?: number | undefined;
|
|
338
|
+
paid_amount?: number | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
custom_event_properties?: Record<string, string | number | boolean | Date | string[] | {}[] | undefined> | undefined;
|
|
197
341
|
item_id?: string | undefined;
|
|
198
342
|
device_id?: import("bson-objectid").default | undefined;
|
|
199
343
|
event_value?: string | undefined;
|
|
@@ -206,8 +350,30 @@ export declare namespace APIs {
|
|
|
206
350
|
url?: string | undefined;
|
|
207
351
|
ref?: string | undefined;
|
|
208
352
|
} | undefined;
|
|
209
|
-
event_properties?:
|
|
210
|
-
|
|
353
|
+
event_properties?: {
|
|
354
|
+
item_id?: string | undefined;
|
|
355
|
+
recommendation_id?: string | undefined;
|
|
356
|
+
prev_page?: string | undefined;
|
|
357
|
+
prev_section?: string | undefined;
|
|
358
|
+
trackings?: {
|
|
359
|
+
id: string;
|
|
360
|
+
type: string;
|
|
361
|
+
}[] | undefined;
|
|
362
|
+
rating?: number | undefined;
|
|
363
|
+
price?: number | undefined;
|
|
364
|
+
order_id?: string | undefined;
|
|
365
|
+
page?: string | undefined;
|
|
366
|
+
section?: string | undefined;
|
|
367
|
+
position?: number | undefined;
|
|
368
|
+
search_query?: string | undefined;
|
|
369
|
+
items?: {
|
|
370
|
+
id: string;
|
|
371
|
+
price: number;
|
|
372
|
+
}[] | undefined;
|
|
373
|
+
order_amount?: number | undefined;
|
|
374
|
+
paid_amount?: number | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
custom_event_properties?: Record<string, string | number | boolean | string[] | {}[] | undefined> | undefined;
|
|
211
377
|
item_id?: string | undefined;
|
|
212
378
|
device_id?: string | undefined;
|
|
213
379
|
event_value?: string | undefined;
|
|
@@ -283,11 +449,11 @@ export declare namespace APIs {
|
|
|
283
449
|
const path: string;
|
|
284
450
|
const method = HttpMethod.PUT;
|
|
285
451
|
const bodySchema: z.ZodObject<{
|
|
286
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
|
|
452
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">, z.ZodNull, z.ZodUndefined]>>;
|
|
287
453
|
}, "strip", z.ZodTypeAny, {
|
|
288
|
-
properties: Record<string, string | number | boolean | Date | string[] | null>;
|
|
454
|
+
properties: Record<string, string | number | boolean | Date | string[] | {}[] | null | undefined>;
|
|
289
455
|
}, {
|
|
290
|
-
properties: Record<string, string | number | boolean | string[] | null>;
|
|
456
|
+
properties: Record<string, string | number | boolean | string[] | {}[] | null | undefined>;
|
|
291
457
|
}>;
|
|
292
458
|
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
293
459
|
const pathSchema: z.ZodObject<{
|
|
@@ -311,7 +477,7 @@ export declare namespace APIs {
|
|
|
311
477
|
const method = HttpMethod.POST;
|
|
312
478
|
const bodySchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
313
479
|
application_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
314
|
-
blux_user_id: z.
|
|
480
|
+
blux_user_id: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>>>;
|
|
315
481
|
pipeline: z.ZodArray<z.ZodObject<{
|
|
316
482
|
name: z.ZodString;
|
|
317
483
|
kwargs: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -322,42 +488,28 @@ export declare namespace APIs {
|
|
|
322
488
|
name: string;
|
|
323
489
|
kwargs: Record<string, any>;
|
|
324
490
|
}>, "many">;
|
|
325
|
-
item_id: z.
|
|
326
|
-
item_ids: z.
|
|
327
|
-
category_id: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
328
|
-
depth: z.ZodEnum<["1", "2", "3"]>;
|
|
329
|
-
value: z.ZodString;
|
|
330
|
-
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
value: string;
|
|
332
|
-
depth: "1" | "2" | "3";
|
|
333
|
-
}, {
|
|
334
|
-
value: string;
|
|
335
|
-
depth: "1" | "2" | "3";
|
|
336
|
-
}>>>;
|
|
491
|
+
item_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
|
+
item_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
337
493
|
limit: z.ZodNumber;
|
|
338
|
-
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber
|
|
339
|
-
|
|
494
|
+
offset: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
495
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
496
|
+
}, "item_id" | "item_ids" | "limit" | "offset">, {
|
|
340
497
|
call_type: z.ZodString;
|
|
498
|
+
category_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
499
|
}>, "strip", z.ZodTypeAny, {
|
|
342
|
-
item_id: string | null;
|
|
343
|
-
item_ids: string[] | null;
|
|
344
|
-
category_id: {
|
|
345
|
-
value: string;
|
|
346
|
-
depth: "1" | "2" | "3";
|
|
347
|
-
} | null;
|
|
348
500
|
limit: number;
|
|
349
|
-
offset: number;
|
|
501
|
+
offset: number | null;
|
|
350
502
|
call_type: string;
|
|
503
|
+
item_id?: string | null | undefined;
|
|
504
|
+
item_ids?: string[] | null | undefined;
|
|
505
|
+
category_id?: string | null | undefined;
|
|
351
506
|
}, {
|
|
352
507
|
limit: number;
|
|
353
508
|
call_type: string;
|
|
354
509
|
item_id?: string | null | undefined;
|
|
355
510
|
item_ids?: string[] | null | undefined;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
depth: "1" | "2" | "3";
|
|
359
|
-
} | null | undefined;
|
|
360
|
-
offset?: number | undefined;
|
|
511
|
+
offset?: number | null | undefined;
|
|
512
|
+
category_id?: string | null | undefined;
|
|
361
513
|
}>;
|
|
362
514
|
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
363
515
|
const pathSchema: z.ZodObject<{
|
|
@@ -371,7 +523,7 @@ export declare namespace APIs {
|
|
|
371
523
|
blux_user_id: string;
|
|
372
524
|
}>;
|
|
373
525
|
type PathParam = Serialize<z.input<typeof pathSchema>>;
|
|
374
|
-
type ResponseData =
|
|
526
|
+
type ResponseData = RecResponse;
|
|
375
527
|
}
|
|
376
528
|
}
|
|
377
529
|
export {};
|
package/dist/src/apis/APIs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { countryCodeWithLowerCaseSchema, customPropertiesRequestSchema, customPropertiesSchema, dateSchema,
|
|
3
|
+
import { countryCodeWithLowerCaseSchema, customPropertiesRequestSchema, customPropertiesSchema, dateSchema, eventPropertiesSchema, objectIdSchema, recommendationRequestSchema, } from "../utils/zodSchemas";
|
|
4
4
|
var HttpMethod;
|
|
5
5
|
(function (HttpMethod) {
|
|
6
6
|
HttpMethod["GET"] = "get";
|
|
@@ -82,7 +82,7 @@ export var APIs;
|
|
|
82
82
|
event_type: z.string(),
|
|
83
83
|
event_value: z.string().optional(),
|
|
84
84
|
item_id: z.string().optional(),
|
|
85
|
-
event_properties:
|
|
85
|
+
event_properties: eventPropertiesSchema.optional(),
|
|
86
86
|
custom_event_properties: customPropertiesSchema.optional(),
|
|
87
87
|
internal_event_properties: z
|
|
88
88
|
.object({
|
|
@@ -132,17 +132,7 @@ export var APIs;
|
|
|
132
132
|
bluxUsersGetItemRecommendationsV2.name = "bluxUsersGetItemRecommendationsV2";
|
|
133
133
|
bluxUsersGetItemRecommendationsV2.path = `${applicationsRootV2}/blux-users/{blux_user_id}/item-recommendations`;
|
|
134
134
|
bluxUsersGetItemRecommendationsV2.method = HttpMethod.POST;
|
|
135
|
-
bluxUsersGetItemRecommendationsV2.bodySchema =
|
|
136
|
-
.pick({
|
|
137
|
-
item_id: true,
|
|
138
|
-
item_ids: true,
|
|
139
|
-
category_id: true,
|
|
140
|
-
limit: true,
|
|
141
|
-
offset: true,
|
|
142
|
-
})
|
|
143
|
-
.extend({
|
|
144
|
-
call_type: z.string(),
|
|
145
|
-
});
|
|
135
|
+
bluxUsersGetItemRecommendationsV2.bodySchema = recommendationRequestSchema;
|
|
146
136
|
bluxUsersGetItemRecommendationsV2.pathSchema = z.object({
|
|
147
137
|
application_id: objectIdSchema,
|
|
148
138
|
blux_user_id: objectIdSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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QAExB,8CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,UAAU,EAAE,6BAA6B;SAC1C,CAAC,CAAC;QAGU,8CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACrC,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAML,CAAC,EAnBgB,mCAAmC,GAAnC,wCAAmC,KAAnC,wCAAmC,QAmBnD;IAED,IAAiB,iCAAiC,CAyBjD;IAzBD,WAAiB,iCAAiC;QACnC,sCAAI,GAAG,mCAAmC,CAAC;QAC3C,sCAAI,GAAG,GAAG,kBAAkB,iDAAiD,CAAC;QAC9E,wCAAM,GAAG,UAAU,CAAC,IAAI,CAAC;QAEzB,4CAAU,GAAG,8BAA8B;aACrD,IAAI,CAAC;YACJ,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,IAAI;SACb,CAAC;aACD,MAAM,CAAC;YACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;SACtB,CAAC,CAAC;QAGQ,4CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,cAAc;YAC9B,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAIL,CAAC,EAzBgB,iCAAiC,GAAjC,sCAAiC,KAAjC,sCAAiC,QAyBjD;AACH,CAAC,EAxLgB,IAAI,KAAJ,IAAI,QAwLpB","sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\nimport { z } from \"zod\";\nimport type { InferencePipelineResponse } from \"../utils/zodSchemas\";\nimport {\n countryCodeWithLowerCaseSchema,\n customPropertiesRequestSchema,\n customPropertiesSchema,\n dateSchema,\n inferencePipelineRequestSchema,\n objectIdSchema,\n} from \"../utils/zodSchemas\";\nimport type { Serialize } from \"../utils/Base\";\n\nenum HttpMethod {\n GET = \"get\",\n POST = \"post\",\n PUT = \"put\",\n DELETE = \"delete\",\n}\n\nexport enum DevicePlatform {\n ios = \"ios\",\n android = \"android\",\n browser = \"browser\",\n}\n\nconst applicationsRoot = \"/applications/{application_id}\";\nconst applicationsRootV2 = \"/v2/applications/{application_id}\";\n\nexport namespace APIs {\n export namespace bluxUsersInitialize {\n export const name = \"bluxUsersInitialize\";\n export const path = `${applicationsRoot}/blux-users/initialize`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = z.object({\n device_id: objectIdSchema.optional(),\n country_code: countryCodeWithLowerCaseSchema.optional(),\n device_model: z.string(),\n language_code: z.string(),\n os_version: z.string(),\n platform: z.nativeEnum(DevicePlatform),\n sdk_type: z.string(),\n sdk_version: z.string(),\n timezone: z.string(),\n isVisitHandlingInSdk: z.boolean().default(false), // sdk 업데이트 후 삭제\n blux_user_id: z.string().optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n device_id?: string;\n };\n }\n\n export namespace bluxUsersSignIn {\n export const name = \"bluxUsersSignIn\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-in`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n user_id: z.string(),\n device_id: z.string().optional(), // todo: sdk update 후 필수로 변경\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersSignOut {\n export const name = \"bluxUsersSignOut\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-out`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n device_id: objectIdSchema.optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(), // todo: objectIdSchema 로 변경\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersCollectEvents {\n export const name = \"bluxUsersCollectEvents\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/collect-events`;\n export const method = HttpMethod.POST;\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export const bodySchema = z.object({\n events: z.array(\n z.object({\n device_id: objectIdSchema.optional(),\n event_type: z.string(),\n event_value: z.string().optional(),\n item_id: z.string().optional(),\n event_properties: customPropertiesSchema.optional(), // todo : remove this\n custom_event_properties: customPropertiesSchema.optional(),\n internal_event_properties: z\n .object({\n url: z.string().optional(),\n ref: z.string().optional(),\n })\n .optional(),\n captured_at: dateSchema,\n }),\n ),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export type ResponseData = boolean;\n }\n\n export namespace bluxUsersUpdateUserProperties {\n export const name = \"bluxUsersUpdateUserProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-user-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n properties: z.object({\n phone_number: z.string().nullable().optional(),\n email_address: z.string().nullable().optional(),\n nighttime_notification_consent: z.boolean().nullable().optional(),\n marketing_notification_consent: z.boolean().nullable().optional(),\n sms_consent: z.boolean().nullable().optional(),\n email_consent: z.boolean().nullable().optional(),\n }),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersUpdateCustomUserProperties {\n export const name = \"bluxUsersUpdateCustomUserProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-custom-user-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n properties: customPropertiesRequestSchema,\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersGetItemRecommendationsV2 {\n export const name = \"bluxUsersGetItemRecommendationsV2\";\n export const path = `${applicationsRootV2}/blux-users/{blux_user_id}/item-recommendations`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = inferencePipelineRequestSchema\n .pick({\n item_id: true,\n item_ids: true,\n category_id: true,\n limit: true,\n offset: true,\n })\n .extend({\n call_type: z.string(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = InferencePipelineResponse;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"APIs.js","sourceRoot":"/","sources":["src/apis/APIs.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,EAC7B,sBAAsB,EACtB,UAAU,EACV,qBAAqB,EACrB,cAAc,EACd,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAG7B,IAAK,UAKJ;AALD,WAAK,UAAU;IACb,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,+BAAiB,CAAA;AACnB,CAAC,EALI,UAAU,KAAV,UAAU,QAKd;AAED,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;AACrB,C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BAA2B,CAAC;QAGzC,4CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,cAAc;YAC9B,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAIL,CAAC,EAfgB,iCAAiC,GAAjC,sCAAiC,KAAjC,sCAAiC,QAejD;AACH,CAAC,EA9KgB,IAAI,KAAJ,IAAI,QA8KpB","sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\nimport { z } from \"zod\";\nimport type { RecResponse } from \"../utils/zodSchemas\";\nimport {\n countryCodeWithLowerCaseSchema,\n customPropertiesRequestSchema,\n customPropertiesSchema,\n dateSchema,\n eventPropertiesSchema,\n objectIdSchema,\n recommendationRequestSchema,\n} from \"../utils/zodSchemas\";\nimport type { Serialize } from \"../utils/Base\";\n\nenum HttpMethod {\n GET = \"get\",\n POST = \"post\",\n PUT = \"put\",\n DELETE = \"delete\",\n}\n\nexport enum DevicePlatform {\n ios = \"ios\",\n android = \"android\",\n browser = \"browser\",\n}\n\nconst applicationsRoot = \"/applications/{application_id}\";\nconst applicationsRootV2 = \"/v2/applications/{application_id}\";\n\nexport namespace APIs {\n export namespace bluxUsersInitialize {\n export const name = \"bluxUsersInitialize\";\n export const path = `${applicationsRoot}/blux-users/initialize`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = z.object({\n device_id: objectIdSchema.optional(),\n country_code: countryCodeWithLowerCaseSchema.optional(),\n device_model: z.string(),\n language_code: z.string(),\n os_version: z.string(),\n platform: z.nativeEnum(DevicePlatform),\n sdk_type: z.string(),\n sdk_version: z.string(),\n timezone: z.string(),\n isVisitHandlingInSdk: z.boolean().default(false), // sdk 업데이트 후 삭제\n blux_user_id: z.string().optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n device_id?: string;\n };\n }\n\n export namespace bluxUsersSignIn {\n export const name = \"bluxUsersSignIn\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-in`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n user_id: z.string(),\n device_id: z.string().optional(), // todo: sdk update 후 필수로 변경\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersSignOut {\n export const name = \"bluxUsersSignOut\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-out`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n device_id: objectIdSchema.optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(), // todo: objectIdSchema 로 변경\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersCollectEvents {\n export const name = \"bluxUsersCollectEvents\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/collect-events`;\n export const method = HttpMethod.POST;\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export const bodySchema = z.object({\n events: z.array(\n z.object({\n device_id: objectIdSchema.optional(),\n event_type: z.string(),\n event_value: z.string().optional(),\n item_id: z.string().optional(),\n event_properties: eventPropertiesSchema.optional(),\n custom_event_properties: customPropertiesSchema.optional(),\n internal_event_properties: z\n .object({\n url: z.string().optional(),\n ref: z.string().optional(),\n })\n .optional(),\n captured_at: dateSchema,\n }),\n ),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export type ResponseData = boolean;\n }\n\n export namespace bluxUsersUpdateUserProperties {\n export const name = \"bluxUsersUpdateUserProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-user-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n properties: z.object({\n phone_number: z.string().nullable().optional(),\n email_address: z.string().nullable().optional(),\n nighttime_notification_consent: z.boolean().nullable().optional(),\n marketing_notification_consent: z.boolean().nullable().optional(),\n sms_consent: z.boolean().nullable().optional(),\n email_consent: z.boolean().nullable().optional(),\n }),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersUpdateCustomUserProperties {\n export const name = \"bluxUsersUpdateCustomUserProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-custom-user-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n properties: customPropertiesRequestSchema,\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersGetItemRecommendationsV2 {\n export const name = \"bluxUsersGetItemRecommendationsV2\";\n export const path = `${applicationsRootV2}/blux-users/{blux_user_id}/item-recommendations`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = recommendationRequestSchema;\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = RecResponse;\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AxiosInstance } from "axios";
|
|
2
2
|
import { APIs } from "./APIs";
|
|
3
3
|
import API = APIs.bluxUsersGetItemRecommendationsV2;
|
|
4
|
-
export declare const getItemRecommendations: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<import("../utils/zodSchemas").
|
|
4
|
+
export declare const getItemRecommendations: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<import("../utils/zodSchemas").RecResponse, any>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddCartaddEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddCartaddEvent extends Event {
|
|
4
|
-
constructor({ item_id, custom_event_properties }: IAddCartaddEvent);
|
|
4
|
+
constructor({ item_id, custom_event_properties, trackings, }: IAddCartaddEvent);
|
|
5
5
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddCartaddEvent extends Event {
|
|
3
|
-
constructor({ item_id, custom_event_properties }) {
|
|
3
|
+
constructor({ item_id, custom_event_properties, trackings, }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.cartadd,
|
|
6
6
|
event_properties: {
|
|
7
7
|
item_id,
|
|
8
|
+
trackings,
|
|
8
9
|
},
|
|
9
10
|
custom_event_properties,
|
|
10
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCartaddEvent.js","sourceRoot":"/","sources":["src/events/AddCartaddEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,YAAY,
|
|
1
|
+
{"version":3,"file":"AddCartaddEvent.js","sourceRoot":"/","sources":["src/events/AddCartaddEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,YAAY,EACV,OAAO,EACP,uBAAuB,EACvB,SAAS,GACQ;QACjB,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,OAAO;YAC7B,gBAAgB,EAAE;gBAChB,OAAO;gBACP,SAAS;aACV;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddCartaddEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddCartaddEvent extends Event {\n constructor({\n item_id,\n custom_event_properties,\n trackings,\n }: IAddCartaddEvent) {\n super({\n event_type: EventType.cartadd,\n event_properties: {\n item_id,\n trackings,\n },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddInstantImpressionEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddInstantImpressionEvent extends Event {
|
|
4
|
-
constructor({ page, section, position, recommendation_id, item_id, custom_event_properties, }: IAddInstantImpressionEvent);
|
|
4
|
+
constructor({ page, section, position, recommendation_id, item_id, custom_event_properties, trackings, }: IAddInstantImpressionEvent);
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddInstantImpressionEvent extends Event {
|
|
3
|
-
constructor({ page, section, position, recommendation_id, item_id, custom_event_properties, }) {
|
|
3
|
+
constructor({ page, section, position, recommendation_id, item_id, custom_event_properties, trackings, }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.instant_impression,
|
|
6
6
|
event_properties: {
|
|
@@ -9,6 +9,7 @@ export class AddInstantImpressionEvent extends Event {
|
|
|
9
9
|
section,
|
|
10
10
|
position,
|
|
11
11
|
recommendation_id,
|
|
12
|
+
trackings,
|
|
12
13
|
},
|
|
13
14
|
custom_event_properties,
|
|
14
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddInstantImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddInstantImpressionEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAY,EACV,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,uBAAuB,
|
|
1
|
+
{"version":3,"file":"AddInstantImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddInstantImpressionEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAY,EACV,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,uBAAuB,EACvB,SAAS,GACkB;QAC3B,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,kBAAkB;YACxC,gBAAgB,EAAE;gBAChB,OAAO;gBACP,IAAI;gBACJ,OAAO;gBACP,QAAQ;gBACR,iBAAiB;gBACjB,SAAS;aACV;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddInstantImpressionEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddInstantImpressionEvent extends Event {\n constructor({\n page,\n section,\n position,\n recommendation_id,\n item_id,\n custom_event_properties,\n trackings,\n }: IAddInstantImpressionEvent) {\n super({\n event_type: EventType.instant_impression,\n event_properties: {\n item_id,\n page,\n section,\n position,\n recommendation_id,\n trackings,\n },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddPageViewEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddPageViewEvent extends Event {
|
|
4
|
-
constructor({ page, custom_event_properties }: IAddPageViewEvent);
|
|
4
|
+
constructor({ page, custom_event_properties, trackings }: IAddPageViewEvent);
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddPageViewEvent extends Event {
|
|
3
|
-
constructor({ page, custom_event_properties }) {
|
|
3
|
+
constructor({ page, custom_event_properties, trackings }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.page_view,
|
|
6
|
-
event_properties: { page },
|
|
6
|
+
event_properties: { page, trackings },
|
|
7
7
|
custom_event_properties,
|
|
8
8
|
});
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddPageViewEvent.js","sourceRoot":"/","sources":["src/events/AddPageViewEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAY,EAAE,IAAI,EAAE,uBAAuB,EAAqB;
|
|
1
|
+
{"version":3,"file":"AddPageViewEvent.js","sourceRoot":"/","sources":["src/events/AddPageViewEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAY,EAAE,IAAI,EAAE,uBAAuB,EAAE,SAAS,EAAqB;QACzE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,SAAS;YAC/B,gBAAgB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YACrC,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddPageViewEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddPageViewEvent extends Event {\n constructor({ page, custom_event_properties, trackings }: IAddPageViewEvent) {\n super({\n event_type: EventType.page_view,\n event_properties: { page, trackings },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddPersistentImpressionEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddPersistentImpressionEvent extends Event {
|
|
4
|
-
constructor({ page, section, position, recommendation_id, item_id, custom_event_properties, }: IAddPersistentImpressionEvent);
|
|
4
|
+
constructor({ page, section, position, recommendation_id, item_id, custom_event_properties, trackings, }: IAddPersistentImpressionEvent);
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddPersistentImpressionEvent extends Event {
|
|
3
|
-
constructor({ page, section, position, recommendation_id, item_id, custom_event_properties, }) {
|
|
3
|
+
constructor({ page, section, position, recommendation_id, item_id, custom_event_properties, trackings, }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.persistent_impression,
|
|
6
6
|
event_properties: {
|
|
@@ -9,6 +9,7 @@ export class AddPersistentImpressionEvent extends Event {
|
|
|
9
9
|
section,
|
|
10
10
|
position,
|
|
11
11
|
recommendation_id,
|
|
12
|
+
trackings,
|
|
12
13
|
},
|
|
13
14
|
custom_event_properties,
|
|
14
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddPersistentImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddPersistentImpressionEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,4BAA6B,SAAQ,KAAK;IACrD,YAAY,EACV,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,uBAAuB,
|
|
1
|
+
{"version":3,"file":"AddPersistentImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddPersistentImpressionEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,4BAA6B,SAAQ,KAAK;IACrD,YAAY,EACV,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,uBAAuB,EACvB,SAAS,GACqB;QAC9B,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,qBAAqB;YAC3C,gBAAgB,EAAE;gBAChB,OAAO;gBACP,IAAI;gBACJ,OAAO;gBACP,QAAQ;gBACR,iBAAiB;gBACjB,SAAS;aACV;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddPersistentImpressionEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddPersistentImpressionEvent extends Event {\n constructor({\n page,\n section,\n position,\n recommendation_id,\n item_id,\n custom_event_properties,\n trackings,\n }: IAddPersistentImpressionEvent) {\n super({\n event_type: EventType.persistent_impression,\n event_properties: {\n item_id,\n page,\n section,\n position,\n recommendation_id,\n trackings,\n },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddProductDetailViewEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddProductDetailViewEvent extends Event {
|
|
4
|
-
constructor({ item_id, prev_page, prev_section, recommendation_id, custom_event_properties, }: IAddProductDetailViewEvent);
|
|
4
|
+
constructor({ item_id, prev_page, prev_section, recommendation_id, custom_event_properties, trackings, }: IAddProductDetailViewEvent);
|
|
5
5
|
}
|