@blux.ai/web-sdk 1.3.0 → 2.0.0
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/README.md +46 -31
- package/dist/package.json +1 -1
- package/dist/src/BluxClient.d.ts +25 -15
- package/dist/src/BluxClient.js +150 -49
- package/dist/src/BluxClient.js.map +1 -1
- package/dist/src/apis/APIs.d.ts +385 -92
- package/dist/src/apis/APIs.js +51 -0
- package/dist/src/apis/APIs.js.map +1 -1
- package/dist/src/apis/createCrmEvent.d.ts +4 -0
- package/dist/src/apis/createCrmEvent.js +7 -0
- package/dist/src/apis/createCrmEvent.js.map +1 -0
- package/dist/src/apis/createEvent.d.ts +1 -1
- package/dist/src/apis/createEvent.js.map +1 -1
- package/dist/src/apis/getItemRecommendations.d.ts +1 -1
- package/dist/src/apis/getItemRecommendations.js.map +1 -1
- package/dist/src/apis/inappsDispatch.d.ts +5 -0
- package/dist/src/apis/inappsDispatch.js +7 -0
- package/dist/src/apis/inappsDispatch.js.map +1 -0
- package/dist/src/apis/initialize.d.ts +1 -1
- package/dist/src/apis/initialize.js.map +1 -1
- package/dist/src/apis/signIn.d.ts +1 -1
- package/dist/src/apis/signIn.js.map +1 -1
- package/dist/src/apis/signOut.d.ts +1 -1
- package/dist/src/apis/signOut.js.map +1 -1
- package/dist/src/apis/updateCustomUserProperties.d.ts +1 -1
- package/dist/src/apis/updateCustomUserProperties.js.map +1 -1
- package/dist/src/apis/updateUserProperties.d.ts +1 -1
- package/dist/src/apis/updateUserProperties.js.map +1 -1
- package/dist/src/events/AddCartaddEvent.d.ts +2 -2
- package/dist/src/events/AddCartaddEvent.js +3 -3
- package/dist/src/events/AddCartaddEvent.js.map +1 -1
- package/dist/src/events/AddClickEvent.d.ts +2 -2
- package/dist/src/events/AddClickEvent.js +3 -3
- package/dist/src/events/AddClickEvent.js.map +1 -1
- package/dist/src/events/AddCustomEvent.d.ts +2 -2
- package/dist/src/events/AddCustomEvent.js +4 -4
- package/dist/src/events/AddCustomEvent.js.map +1 -1
- package/dist/src/events/AddInstantImpressionEvent.d.ts +2 -2
- package/dist/src/events/AddInstantImpressionEvent.js +3 -3
- package/dist/src/events/AddInstantImpressionEvent.js.map +1 -1
- package/dist/src/events/AddLikeEvent.d.ts +2 -2
- package/dist/src/events/AddLikeEvent.js +3 -3
- package/dist/src/events/AddLikeEvent.js.map +1 -1
- package/dist/src/events/AddOrderEvent.d.ts +5 -0
- package/dist/src/events/AddOrderEvent.js +16 -0
- package/dist/src/events/AddOrderEvent.js.map +1 -0
- package/dist/src/events/AddPageViewEvent.d.ts +2 -2
- package/dist/src/events/AddPageViewEvent.js +2 -2
- package/dist/src/events/AddPageViewEvent.js.map +1 -1
- package/dist/src/events/AddPageVisitEvent.d.ts +2 -2
- package/dist/src/events/AddPageVisitEvent.js +2 -2
- package/dist/src/events/AddPageVisitEvent.js.map +1 -1
- package/dist/src/events/AddPersistentImpressionEvent.d.ts +2 -2
- package/dist/src/events/AddPersistentImpressionEvent.js +3 -3
- package/dist/src/events/AddPersistentImpressionEvent.js.map +1 -1
- package/dist/src/events/AddProductDetailViewEvent.d.ts +2 -2
- package/dist/src/events/AddProductDetailViewEvent.js +3 -3
- package/dist/src/events/AddProductDetailViewEvent.js.map +1 -1
- package/dist/src/events/AddRateEvent.d.ts +2 -2
- package/dist/src/events/AddRateEvent.js +3 -3
- package/dist/src/events/AddRateEvent.js.map +1 -1
- package/dist/src/events/AddSearchEvent.d.ts +2 -2
- package/dist/src/events/AddSearchEvent.js +3 -3
- package/dist/src/events/AddSearchEvent.js.map +1 -1
- package/dist/src/events/AddSectionViewEvent.d.ts +2 -2
- package/dist/src/events/AddSectionViewEvent.js +2 -2
- package/dist/src/events/AddSectionViewEvent.js.map +1 -1
- package/dist/src/events/Event.d.ts +1 -0
- package/dist/src/events/Event.js +1 -0
- package/dist/src/events/Event.js.map +1 -1
- package/dist/src/events/VisitEvent.d.ts +2 -2
- package/dist/src/events/VisitEvent.js +2 -2
- package/dist/src/events/VisitEvent.js.map +1 -1
- package/dist/src/events/index.d.ts +1 -1
- package/dist/src/events/index.js +1 -1
- package/dist/src/events/index.js.map +1 -1
- package/dist/src/events/types.d.ts +26 -15
- package/dist/src/events/types.js.map +1 -1
- package/dist/src/recs/ItemRec.js.map +1 -1
- package/dist/src/utils/LocalStorage.d.ts +2 -0
- package/dist/src/utils/LocalStorage.js +8 -1
- package/dist/src/utils/LocalStorage.js.map +1 -1
- package/dist/src/utils/Logger.js +0 -1
- package/dist/src/utils/Logger.js.map +1 -1
- package/dist/src/utils/SessionStorage.js +0 -1
- package/dist/src/utils/SessionStorage.js.map +1 -1
- package/dist/src/utils/operators.js +0 -1
- package/dist/src/utils/operators.js.map +1 -1
- package/dist/src/utils/zodSchemas.d.ts +27 -27
- package/dist/src/utils/zodSchemas.js +2 -2
- package/dist/src/utils/zodSchemas.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/events/AddPurchaseEvent.d.ts +0 -5
- package/dist/src/events/AddPurchaseEvent.js +0 -16
- package/dist/src/events/AddPurchaseEvent.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
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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C9E,wCAAM,GAAG,UAAU,CAAC,IAAI,CAAC;QAEzB,4CAAU,GAAG,2BAA2B,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
|
+
{"version":3,"file":"APIs.js","sourceRoot":"/","sources":["src/apis/APIs.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BACD,QAAQ,EAAE;gBACb,WAAW,EAAE,UAAU;aACxB,CAAC,CACH;SACF,CAAC,CAAC;IAaL,CAAC,EA9CgB,gBAAgB,GAAhB,qBAAgB,KAAhB,qBAAgB,QA8ChC;AACH,CAAC,EAvPgB,IAAI,KAAJ,IAAI,QAuPpB","sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\nimport { z } from \"zod\";\n\nimport {\n countryCodeWithLowerCaseSchema,\n customPropertiesRequestSchema,\n customPropertiesSchema,\n dateSchema,\n eventPropertiesSchema,\n objectIdSchema,\n recommendationRequestSchema,\n} from \"../utils/zodSchemas\";\n\nimport type { Serialize } from \"../utils/Base\";\nimport type { RecResponse } from \"../utils/zodSchemas\";\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 export namespace crmEventsCreate {\n export const name = \"crmEventsCreate\";\n export const path = `${applicationsRoot}/crm-events`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = z.object({\n notification_id: objectIdSchema,\n crm_event_type: z.union([\n z.literal(\"push_opened\"),\n z.literal(\"button_clicked\"),\n z.literal(\"landing_clicked\"),\n z.literal(\"inapp_opened\"),\n ]),\n captured_at: dateSchema,\n item_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(),\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = boolean;\n }\n export namespace inappsDispatcher {\n export const name = \"inappsDispatcher\";\n export const path = `${applicationsRoot}/inapps/dispatch`;\n export const method = HttpMethod.POST;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export const bodySchema = z.object({\n blux_user_id: objectIdSchema,\n device_id: objectIdSchema,\n platform: z.union([\n z.literal(DevicePlatform.android),\n z.literal(DevicePlatform.ios),\n z.literal(DevicePlatform.browser),\n ]),\n events: z.array(\n z.object({\n device_id: objectIdSchema.optional(),\n event_type: z.string(),\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 =\n | ({\n notificationId: string;\n inappId: string;\n htmlString: string;\n baseUrl: string;\n } & { shouldDisplay: true })\n | {\n shouldDisplay: false;\n };\n }\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AxiosInstance } from "axios";
|
|
2
|
+
import { APIs } from "./APIs";
|
|
3
|
+
import API = APIs.crmEventsCreate;
|
|
4
|
+
export declare const createCrmEvent: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { APIs } from "./APIs";
|
|
2
|
+
import { getPath } from "../utils/getPath";
|
|
3
|
+
var API = APIs.crmEventsCreate;
|
|
4
|
+
export const createCrmEvent = (instance, pathParams, body, headers) => {
|
|
5
|
+
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=createCrmEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCrmEvent.js","sourceRoot":"/","sources":["src/apis/createCrmEvent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,IAAO,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC;AAElC,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { AxiosInstance } from \"axios\";\n\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport API = APIs.crmEventsCreate;\n\nexport const createCrmEvent = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
1
|
import { APIs } from "./APIs";
|
|
2
|
+
import type { AxiosInstance } from "axios";
|
|
3
3
|
import API = APIs.bluxUsersCollectEvents;
|
|
4
4
|
export declare const collectEvent: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEvent.js","sourceRoot":"/","sources":["src/apis/createEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createEvent.js","sourceRoot":"/","sources":["src/apis/createEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,IAAO,GAAG,GAAG,IAAI,CAAC,sBAAsB,CAAC;AAEzC,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport type { AxiosInstance } from \"axios\";\n\nimport API = APIs.bluxUsersCollectEvents;\n\nexport const collectEvent = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
1
|
import { APIs } from "./APIs";
|
|
2
|
+
import type { AxiosInstance } from "axios";
|
|
3
3
|
import API = APIs.bluxUsersGetItemRecommendationsV2;
|
|
4
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getItemRecommendations.js","sourceRoot":"/","sources":["src/apis/getItemRecommendations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getItemRecommendations.js","sourceRoot":"/","sources":["src/apis/getItemRecommendations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,IAAO,GAAG,GAAG,IAAI,CAAC,iCAAiC,CAAC;AAEpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport type { AxiosInstance } from \"axios\";\n\nimport API = APIs.bluxUsersGetItemRecommendationsV2;\n\nexport const getItemRecommendations = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { APIs } from "./APIs";
|
|
2
|
+
import type { AxiosInstance } from "axios";
|
|
3
|
+
import API = APIs.inappsDispatcher;
|
|
4
|
+
export type InappMessageResponse = API.ResponseData;
|
|
5
|
+
export declare const inappsDispatch: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { APIs } from "./APIs";
|
|
2
|
+
import { getPath } from "../utils/getPath";
|
|
3
|
+
var API = APIs.inappsDispatcher;
|
|
4
|
+
export const inappsDispatch = (instance, pathParams, body, headers) => {
|
|
5
|
+
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=inappsDispatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inappsDispatch.js","sourceRoot":"/","sources":["src/apis/inappsDispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,IAAO,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC;AAInC,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport type { AxiosInstance } from \"axios\";\n\nimport API = APIs.inappsDispatcher;\n\nexport type InappMessageResponse = API.ResponseData;\n\nexport const inappsDispatch = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
1
|
import { APIs } from "./APIs";
|
|
2
|
+
import type { AxiosInstance } from "axios";
|
|
3
3
|
import API = APIs.bluxUsersInitialize;
|
|
4
4
|
export declare const initialize: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.js","sourceRoot":"/","sources":["src/apis/initialize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initialize.js","sourceRoot":"/","sources":["src/apis/initialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,IAAO,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC;AAEtC,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport type { AxiosInstance } from \"axios\";\n\nimport API = APIs.bluxUsersInitialize;\n\nexport const initialize = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
1
|
import { APIs } from "./APIs";
|
|
2
|
+
import type { AxiosInstance } from "axios";
|
|
3
3
|
import API = APIs.bluxUsersSignIn;
|
|
4
4
|
export declare const signIn: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signIn.js","sourceRoot":"/","sources":["src/apis/signIn.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signIn.js","sourceRoot":"/","sources":["src/apis/signIn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,IAAO,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC;AAElC,MAAM,CAAC,MAAM,MAAM,GAAG,CACpB,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport type { AxiosInstance } from \"axios\";\n\nimport API = APIs.bluxUsersSignIn;\n\nexport const signIn = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
1
|
import { APIs } from "./APIs";
|
|
2
|
+
import type { AxiosInstance } from "axios";
|
|
3
3
|
import API = APIs.bluxUsersSignOut;
|
|
4
4
|
export declare const signOut: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signOut.js","sourceRoot":"/","sources":["src/apis/signOut.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signOut.js","sourceRoot":"/","sources":["src/apis/signOut.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,IAAO,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC;AAEnC,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport type { AxiosInstance } from \"axios\";\n\nimport API = APIs.bluxUsersSignOut;\n\nexport const signOut = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
1
|
import { APIs } from "./APIs";
|
|
2
|
+
import type { AxiosInstance } from "axios";
|
|
3
3
|
import API = APIs.bluxUsersUpdateCustomUserProperties;
|
|
4
4
|
export declare const updateCustomUserProperties: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCustomUserProperties.js","sourceRoot":"/","sources":["src/apis/updateCustomUserProperties.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateCustomUserProperties.js","sourceRoot":"/","sources":["src/apis/updateCustomUserProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,IAAO,GAAG,GAAG,IAAI,CAAC,mCAAmC,CAAC;AAEtD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport type { AxiosInstance } from \"axios\";\n\nimport API = APIs.bluxUsersUpdateCustomUserProperties;\n\nexport const updateCustomUserProperties = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
1
|
import { APIs } from "./APIs";
|
|
2
|
+
import type { AxiosInstance } from "axios";
|
|
3
3
|
import API = APIs.bluxUsersUpdateUserProperties;
|
|
4
4
|
export declare const updateUserProperties: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateUserProperties.js","sourceRoot":"/","sources":["src/apis/updateUserProperties.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateUserProperties.js","sourceRoot":"/","sources":["src/apis/updateUserProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,IAAO,GAAG,GAAG,IAAI,CAAC,6BAA6B,CAAC;AAEhD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,QAAuB,EACvB,UAAyB,EACzB,IAAc,EACd,OAA+B,EAC/B,EAAE;IACF,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,EAC7B,IAAI,EACJ,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\n\nimport type { AxiosInstance } from \"axios\";\n\nimport API = APIs.bluxUsersUpdateUserProperties;\n\nexport const updateUserProperties = (\n instance: AxiosInstance,\n pathParams: API.PathParam,\n body: API.Body,\n headers: Record<string, string>,\n) => {\n return instance[API.method]<API.ResponseData>(\n getPath(API.path, pathParams),\n body,\n { headers },\n );\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddCartaddEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddCartaddEvent } from "./types";
|
|
3
3
|
export declare class AddCartaddEvent extends Event {
|
|
4
|
-
constructor({
|
|
4
|
+
constructor({ itemId, tracking, customEventProperties }: IAddCartaddEvent);
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddCartaddEvent extends Event {
|
|
3
|
-
constructor({
|
|
3
|
+
constructor({ itemId, tracking, customEventProperties }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.cartadd,
|
|
6
6
|
event_properties: {
|
|
7
|
-
item_id,
|
|
7
|
+
item_id: itemId,
|
|
8
8
|
tracking,
|
|
9
9
|
},
|
|
10
|
-
custom_event_properties,
|
|
10
|
+
custom_event_properties: customEventProperties,
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCartaddEvent.js","sourceRoot":"/","sources":["src/events/AddCartaddEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddCartaddEvent.js","sourceRoot":"/","sources":["src/events/AddCartaddEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAoB;QACvE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,OAAO;YAC7B,gBAAgB,EAAE;gBAChB,OAAO,EAAE,MAAM;gBACf,QAAQ;aACT;YACD,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddCartaddEvent } from \"./types\";\n\nexport class AddCartaddEvent extends Event {\n constructor({ itemId, tracking, customEventProperties }: IAddCartaddEvent) {\n super({\n event_type: EventType.cartadd,\n event_properties: {\n item_id: itemId,\n tracking,\n },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddClickEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddClickEvent } from "./types";
|
|
3
3
|
export declare class AddClickEvent extends Event {
|
|
4
|
-
constructor({
|
|
4
|
+
constructor({ itemId, tracking, customEventProperties }: IAddClickEvent);
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddClickEvent extends Event {
|
|
3
|
-
constructor({
|
|
3
|
+
constructor({ itemId, tracking, customEventProperties }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.click,
|
|
6
6
|
event_properties: {
|
|
7
|
-
item_id,
|
|
7
|
+
item_id: itemId,
|
|
8
8
|
tracking,
|
|
9
9
|
},
|
|
10
|
-
custom_event_properties,
|
|
10
|
+
custom_event_properties: customEventProperties,
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddClickEvent.js","sourceRoot":"/","sources":["src/events/AddClickEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddClickEvent.js","sourceRoot":"/","sources":["src/events/AddClickEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAkB;QACrE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,KAAK;YAC3B,gBAAgB,EAAE;gBAChB,OAAO,EAAE,MAAM;gBACf,QAAQ;aACT;YACD,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddClickEvent } from \"./types\";\n\nexport class AddClickEvent extends Event {\n constructor({ itemId, tracking, customEventProperties }: IAddClickEvent) {\n super({\n event_type: EventType.click,\n event_properties: {\n item_id: itemId,\n tracking,\n },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddCustomEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddCustomEvent } from "./types";
|
|
3
3
|
export declare class AddCustomEvent extends Event {
|
|
4
|
-
constructor({
|
|
4
|
+
constructor({ eventType, eventProperties, customEventProperties, }: IAddCustomEvent);
|
|
5
5
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Event } from "./Event";
|
|
2
2
|
export class AddCustomEvent extends Event {
|
|
3
|
-
constructor({
|
|
3
|
+
constructor({ eventType, eventProperties, customEventProperties, }) {
|
|
4
4
|
super({
|
|
5
|
-
event_type,
|
|
6
|
-
event_properties,
|
|
7
|
-
custom_event_properties,
|
|
5
|
+
event_type: eventType,
|
|
6
|
+
event_properties: eventProperties,
|
|
7
|
+
custom_event_properties: customEventProperties,
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCustomEvent.js","sourceRoot":"/","sources":["src/events/AddCustomEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddCustomEvent.js","sourceRoot":"/","sources":["src/events/AddCustomEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,MAAM,OAAO,cAAe,SAAQ,KAAK;IACvC,YAAY,EACV,SAAS,EACT,eAAe,EACf,qBAAqB,GACL;QAChB,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS;YACrB,gBAAgB,EAAE,eAAe;YACjC,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event } from \"./Event\";\n\nimport type { IAddCustomEvent } from \"./types\";\n\nexport class AddCustomEvent extends Event {\n constructor({\n eventType,\n eventProperties,\n customEventProperties,\n }: IAddCustomEvent) {\n super({\n event_type: eventType,\n event_properties: eventProperties,\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddInstantImpressionEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddInstantImpressionEvent } from "./types";
|
|
3
3
|
export declare class AddInstantImpressionEvent extends Event {
|
|
4
|
-
constructor({
|
|
4
|
+
constructor({ itemId, page, section, position, tracking, customEventProperties, }: IAddInstantImpressionEvent);
|
|
5
5
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddInstantImpressionEvent extends Event {
|
|
3
|
-
constructor({
|
|
3
|
+
constructor({ itemId, page, section, position, tracking, customEventProperties, }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.instant_impression,
|
|
6
6
|
event_properties: {
|
|
7
|
-
item_id,
|
|
7
|
+
item_id: itemId,
|
|
8
8
|
page,
|
|
9
9
|
section,
|
|
10
10
|
position,
|
|
11
11
|
tracking,
|
|
12
12
|
},
|
|
13
|
-
custom_event_properties,
|
|
13
|
+
custom_event_properties: customEventProperties,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddInstantImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddInstantImpressionEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddInstantImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddInstantImpressionEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAY,EACV,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,qBAAqB,GACM;QAC3B,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,kBAAkB;YACxC,gBAAgB,EAAE;gBAChB,OAAO,EAAE,MAAM;gBACf,IAAI;gBACJ,OAAO;gBACP,QAAQ;gBACR,QAAQ;aACT;YACD,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddInstantImpressionEvent } from \"./types\";\n\nexport class AddInstantImpressionEvent extends Event {\n constructor({\n itemId,\n page,\n section,\n position,\n tracking,\n customEventProperties,\n }: IAddInstantImpressionEvent) {\n super({\n event_type: EventType.instant_impression,\n event_properties: {\n item_id: itemId,\n page,\n section,\n position,\n tracking,\n },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddLikeEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddLikeEvent } from "./types";
|
|
3
3
|
export declare class AddLikeEvent extends Event {
|
|
4
|
-
constructor({
|
|
4
|
+
constructor({ itemId, tracking, customEventProperties }: IAddLikeEvent);
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddLikeEvent extends Event {
|
|
3
|
-
constructor({
|
|
3
|
+
constructor({ itemId, tracking, customEventProperties }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.like,
|
|
6
6
|
event_properties: {
|
|
7
|
-
item_id,
|
|
7
|
+
item_id: itemId,
|
|
8
8
|
tracking,
|
|
9
9
|
},
|
|
10
|
-
custom_event_properties,
|
|
10
|
+
custom_event_properties: customEventProperties,
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddLikeEvent.js","sourceRoot":"/","sources":["src/events/AddLikeEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddLikeEvent.js","sourceRoot":"/","sources":["src/events/AddLikeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAiB;QACpE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,IAAI;YAC1B,gBAAgB,EAAE;gBAChB,OAAO,EAAE,MAAM;gBACf,QAAQ;aACT;YACD,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddLikeEvent } from \"./types\";\n\nexport class AddLikeEvent extends Event {\n constructor({ itemId, tracking, customEventProperties }: IAddLikeEvent) {\n super({\n event_type: EventType.like,\n event_properties: {\n item_id: itemId,\n tracking,\n },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Event, EventType } from "./Event";
|
|
2
|
+
export class AddOrderEvent extends Event {
|
|
3
|
+
constructor({ orderId, paidAmount, orderAmount, items, customEventProperties, }) {
|
|
4
|
+
super({
|
|
5
|
+
event_type: EventType.order,
|
|
6
|
+
event_properties: {
|
|
7
|
+
order_id: orderId,
|
|
8
|
+
paid_amount: paidAmount,
|
|
9
|
+
order_amount: orderAmount,
|
|
10
|
+
items,
|
|
11
|
+
},
|
|
12
|
+
custom_event_properties: customEventProperties,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=AddOrderEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddOrderEvent.js","sourceRoot":"/","sources":["src/events/AddOrderEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,EACV,OAAO,EACP,UAAU,EACV,WAAW,EACX,KAAK,EACL,qBAAqB,GACN;QACf,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,KAAK;YAC3B,gBAAgB,EAAE;gBAChB,QAAQ,EAAE,OAAO;gBACjB,WAAW,EAAE,UAAU;gBACvB,YAAY,EAAE,WAAW;gBACzB,KAAK;aACN;YACD,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddOrderEvent } from \"./types\";\n\nexport class AddOrderEvent extends Event {\n constructor({\n orderId,\n paidAmount,\n orderAmount,\n items,\n customEventProperties,\n }: IAddOrderEvent) {\n super({\n event_type: EventType.order,\n event_properties: {\n order_id: orderId,\n paid_amount: paidAmount,\n order_amount: orderAmount,\n items,\n },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddPageViewEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddPageViewEvent } from "./types";
|
|
3
3
|
export declare class AddPageViewEvent extends Event {
|
|
4
|
-
constructor({ page, tracking,
|
|
4
|
+
constructor({ page, tracking, customEventProperties }: IAddPageViewEvent);
|
|
5
5
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddPageViewEvent extends Event {
|
|
3
|
-
constructor({ page, tracking,
|
|
3
|
+
constructor({ page, tracking, customEventProperties }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.page_view,
|
|
6
6
|
event_properties: { page, tracking },
|
|
7
|
-
custom_event_properties,
|
|
7
|
+
custom_event_properties: customEventProperties,
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddPageViewEvent.js","sourceRoot":"/","sources":["src/events/AddPageViewEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddPageViewEvent.js","sourceRoot":"/","sources":["src/events/AddPageViewEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,qBAAqB,EAAqB;QACtE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,SAAS;YAC/B,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACpC,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddPageViewEvent } from \"./types\";\n\nexport class AddPageViewEvent extends Event {\n constructor({ page, tracking, customEventProperties }: IAddPageViewEvent) {\n super({\n event_type: EventType.page_view,\n event_properties: { page, tracking },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddPageVisitEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddPageVisitEvent } from "./types";
|
|
3
3
|
export declare class AddPageVisitEvent extends Event {
|
|
4
|
-
constructor({ tracking,
|
|
4
|
+
constructor({ tracking, customEventProperties }: IAddPageVisitEvent);
|
|
5
5
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddPageVisitEvent extends Event {
|
|
3
|
-
constructor({ tracking,
|
|
3
|
+
constructor({ tracking, customEventProperties }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.page_visit,
|
|
6
6
|
event_properties: {
|
|
7
7
|
tracking,
|
|
8
8
|
},
|
|
9
|
-
custom_event_properties,
|
|
9
|
+
custom_event_properties: customEventProperties,
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddPageVisitEvent.js","sourceRoot":"/","sources":["src/events/AddPageVisitEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddPageVisitEvent.js","sourceRoot":"/","sources":["src/events/AddPageVisitEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EAAsB;QACjE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,gBAAgB,EAAE;gBAChB,QAAQ;aACT;YACD,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddPageVisitEvent } from \"./types\";\n\nexport class AddPageVisitEvent extends Event {\n constructor({ tracking, customEventProperties }: IAddPageVisitEvent) {\n super({\n event_type: EventType.page_visit,\n event_properties: {\n tracking,\n },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddPersistentImpressionEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddPersistentImpressionEvent } from "./types";
|
|
3
3
|
export declare class AddPersistentImpressionEvent extends Event {
|
|
4
|
-
constructor({
|
|
4
|
+
constructor({ itemId, page, section, position, tracking, customEventProperties, }: IAddPersistentImpressionEvent);
|
|
5
5
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddPersistentImpressionEvent extends Event {
|
|
3
|
-
constructor({
|
|
3
|
+
constructor({ itemId, page, section, position, tracking, customEventProperties, }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.persistent_impression,
|
|
6
6
|
event_properties: {
|
|
7
|
-
item_id,
|
|
7
|
+
item_id: itemId,
|
|
8
8
|
page,
|
|
9
9
|
section,
|
|
10
10
|
position,
|
|
11
11
|
tracking,
|
|
12
12
|
},
|
|
13
|
-
custom_event_properties,
|
|
13
|
+
custom_event_properties: customEventProperties,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddPersistentImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddPersistentImpressionEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddPersistentImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddPersistentImpressionEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,4BAA6B,SAAQ,KAAK;IACrD,YAAY,EACV,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,qBAAqB,GACS;QAC9B,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,qBAAqB;YAC3C,gBAAgB,EAAE;gBAChB,OAAO,EAAE,MAAM;gBACf,IAAI;gBACJ,OAAO;gBACP,QAAQ;gBACR,QAAQ;aACT;YACD,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddPersistentImpressionEvent } from \"./types\";\n\nexport class AddPersistentImpressionEvent extends Event {\n constructor({\n itemId,\n page,\n section,\n position,\n tracking,\n customEventProperties,\n }: IAddPersistentImpressionEvent) {\n super({\n event_type: EventType.persistent_impression,\n event_properties: {\n item_id: itemId,\n page,\n section,\n position,\n tracking,\n },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddProductDetailViewEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddProductDetailViewEvent } from "./types";
|
|
3
3
|
export declare class AddProductDetailViewEvent extends Event {
|
|
4
|
-
constructor({
|
|
4
|
+
constructor({ itemId, tracking, customEventProperties, }: IAddProductDetailViewEvent);
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddProductDetailViewEvent extends Event {
|
|
3
|
-
constructor({
|
|
3
|
+
constructor({ itemId, tracking, customEventProperties, }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.product_detail_view,
|
|
6
6
|
event_properties: {
|
|
7
|
-
item_id,
|
|
7
|
+
item_id: itemId,
|
|
8
8
|
tracking,
|
|
9
9
|
},
|
|
10
|
-
custom_event_properties,
|
|
10
|
+
custom_event_properties: customEventProperties,
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddProductDetailViewEvent.js","sourceRoot":"/","sources":["src/events/AddProductDetailViewEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddProductDetailViewEvent.js","sourceRoot":"/","sources":["src/events/AddProductDetailViewEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI3C,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAY,EACV,MAAM,EACN,QAAQ,EACR,qBAAqB,GACM;QAC3B,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,mBAAmB;YACzC,gBAAgB,EAAE;gBAChB,OAAO,EAAE,MAAM;gBACf,QAAQ;aACT;YACD,uBAAuB,EAAE,qBAAqB;SAC/C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Event, EventType } from \"./Event\";\n\nimport type { IAddProductDetailViewEvent } from \"./types\";\n\nexport class AddProductDetailViewEvent extends Event {\n constructor({\n itemId,\n tracking,\n customEventProperties,\n }: IAddProductDetailViewEvent) {\n super({\n event_type: EventType.product_detail_view,\n event_properties: {\n item_id: itemId,\n tracking,\n },\n custom_event_properties: customEventProperties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAddRateEvent } from "./types";
|
|
2
1
|
import { Event } from "./Event";
|
|
2
|
+
import type { IAddRateEvent } from "./types";
|
|
3
3
|
export declare class AddRateEvent extends Event {
|
|
4
|
-
constructor({
|
|
4
|
+
constructor({ itemId, rating, tracking, customEventProperties, }: IAddRateEvent);
|
|
5
5
|
}
|