@blux.ai/web-sdk 1.2.2 → 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.
Files changed (99) hide show
  1. package/README.md +46 -31
  2. package/dist/package.json +1 -1
  3. package/dist/src/BluxClient.d.ts +35 -22
  4. package/dist/src/BluxClient.js +259 -114
  5. package/dist/src/BluxClient.js.map +1 -1
  6. package/dist/src/apis/APIs.d.ts +408 -115
  7. package/dist/src/apis/APIs.js +53 -2
  8. package/dist/src/apis/APIs.js.map +1 -1
  9. package/dist/src/apis/createCrmEvent.d.ts +4 -0
  10. package/dist/src/apis/createCrmEvent.js +7 -0
  11. package/dist/src/apis/createCrmEvent.js.map +1 -0
  12. package/dist/src/apis/createEvent.d.ts +1 -1
  13. package/dist/src/apis/createEvent.js.map +1 -1
  14. package/dist/src/apis/getItemRecommendations.d.ts +1 -1
  15. package/dist/src/apis/getItemRecommendations.js.map +1 -1
  16. package/dist/src/apis/inappsDispatch.d.ts +5 -0
  17. package/dist/src/apis/inappsDispatch.js +7 -0
  18. package/dist/src/apis/inappsDispatch.js.map +1 -0
  19. package/dist/src/apis/initialize.d.ts +1 -1
  20. package/dist/src/apis/initialize.js.map +1 -1
  21. package/dist/src/apis/signIn.d.ts +1 -1
  22. package/dist/src/apis/signIn.js.map +1 -1
  23. package/dist/src/apis/signOut.d.ts +1 -1
  24. package/dist/src/apis/signOut.js.map +1 -1
  25. package/dist/src/apis/updateCustomUserProperties.d.ts +1 -1
  26. package/dist/src/apis/updateCustomUserProperties.js.map +1 -1
  27. package/dist/src/apis/updateUserProperties.d.ts +1 -1
  28. package/dist/src/apis/updateUserProperties.js.map +1 -1
  29. package/dist/src/constants/BLUX_ATTRIBUTES.d.ts +2 -2
  30. package/dist/src/constants/BLUX_ATTRIBUTES.js +2 -2
  31. package/dist/src/constants/BLUX_ATTRIBUTES.js.map +1 -1
  32. package/dist/src/events/AddCartaddEvent.d.ts +2 -2
  33. package/dist/src/events/AddCartaddEvent.js +4 -4
  34. package/dist/src/events/AddCartaddEvent.js.map +1 -1
  35. package/dist/src/events/AddClickEvent.d.ts +5 -0
  36. package/dist/src/events/AddClickEvent.js +14 -0
  37. package/dist/src/events/AddClickEvent.js.map +1 -0
  38. package/dist/src/events/AddCustomEvent.d.ts +2 -2
  39. package/dist/src/events/AddCustomEvent.js +4 -4
  40. package/dist/src/events/AddCustomEvent.js.map +1 -1
  41. package/dist/src/events/AddInstantImpressionEvent.d.ts +2 -2
  42. package/dist/src/events/AddInstantImpressionEvent.js +4 -5
  43. package/dist/src/events/AddInstantImpressionEvent.js.map +1 -1
  44. package/dist/src/events/AddLikeEvent.d.ts +2 -2
  45. package/dist/src/events/AddLikeEvent.js +4 -3
  46. package/dist/src/events/AddLikeEvent.js.map +1 -1
  47. package/dist/src/events/AddOrderEvent.d.ts +5 -0
  48. package/dist/src/events/AddOrderEvent.js +16 -0
  49. package/dist/src/events/AddOrderEvent.js.map +1 -0
  50. package/dist/src/events/AddPageViewEvent.d.ts +2 -2
  51. package/dist/src/events/AddPageViewEvent.js +3 -3
  52. package/dist/src/events/AddPageViewEvent.js.map +1 -1
  53. package/dist/src/events/AddPageVisitEvent.d.ts +2 -2
  54. package/dist/src/events/AddPageVisitEvent.js +5 -2
  55. package/dist/src/events/AddPageVisitEvent.js.map +1 -1
  56. package/dist/src/events/AddPersistentImpressionEvent.d.ts +2 -2
  57. package/dist/src/events/AddPersistentImpressionEvent.js +4 -5
  58. package/dist/src/events/AddPersistentImpressionEvent.js.map +1 -1
  59. package/dist/src/events/AddProductDetailViewEvent.d.ts +2 -2
  60. package/dist/src/events/AddProductDetailViewEvent.js +4 -7
  61. package/dist/src/events/AddProductDetailViewEvent.js.map +1 -1
  62. package/dist/src/events/AddRateEvent.d.ts +2 -2
  63. package/dist/src/events/AddRateEvent.js +3 -3
  64. package/dist/src/events/AddRateEvent.js.map +1 -1
  65. package/dist/src/events/AddSearchEvent.d.ts +2 -2
  66. package/dist/src/events/AddSearchEvent.js +3 -3
  67. package/dist/src/events/AddSearchEvent.js.map +1 -1
  68. package/dist/src/events/AddSectionViewEvent.d.ts +2 -2
  69. package/dist/src/events/AddSectionViewEvent.js +3 -4
  70. package/dist/src/events/AddSectionViewEvent.js.map +1 -1
  71. package/dist/src/events/Event.d.ts +4 -2
  72. package/dist/src/events/Event.js +3 -1
  73. package/dist/src/events/Event.js.map +1 -1
  74. package/dist/src/events/VisitEvent.d.ts +2 -2
  75. package/dist/src/events/VisitEvent.js +5 -2
  76. package/dist/src/events/VisitEvent.js.map +1 -1
  77. package/dist/src/events/index.d.ts +4 -1
  78. package/dist/src/events/index.js +4 -1
  79. package/dist/src/events/index.js.map +1 -1
  80. package/dist/src/events/types.d.ts +34 -34
  81. package/dist/src/events/types.js.map +1 -1
  82. package/dist/src/recs/ItemRec.js.map +1 -1
  83. package/dist/src/utils/LocalStorage.d.ts +2 -0
  84. package/dist/src/utils/LocalStorage.js +8 -1
  85. package/dist/src/utils/LocalStorage.js.map +1 -1
  86. package/dist/src/utils/Logger.js +0 -1
  87. package/dist/src/utils/Logger.js.map +1 -1
  88. package/dist/src/utils/SessionStorage.js +0 -1
  89. package/dist/src/utils/SessionStorage.js.map +1 -1
  90. package/dist/src/utils/operators.js +0 -1
  91. package/dist/src/utils/operators.js.map +1 -1
  92. package/dist/src/utils/zodSchemas.d.ts +31 -31
  93. package/dist/src/utils/zodSchemas.js +8 -6
  94. package/dist/src/utils/zodSchemas.js.map +1 -1
  95. package/dist/tsconfig.tsbuildinfo +1 -1
  96. package/package.json +1 -1
  97. package/dist/src/events/AddPurchaseEvent.d.ts +0 -5
  98. package/dist/src/events/AddPurchaseEvent.js +0 -15
  99. package/dist/src/events/AddPurchaseEvent.js.map +0 -1
@@ -33,7 +33,7 @@ export var APIs;
33
33
  sdk_type: z.string(),
34
34
  sdk_version: z.string(),
35
35
  timezone: z.string(),
36
- isVisitHandlingInSdk: z.boolean().default(false),
36
+ isVisitHandlingInSdk: z.boolean().default(false), // sdk 업데이트 후 삭제
37
37
  blux_user_id: z.string().optional(),
38
38
  });
39
39
  bluxUsersInitialize.pathSchema = z.object({
@@ -63,7 +63,7 @@ export var APIs;
63
63
  device_id: objectIdSchema.optional(),
64
64
  });
65
65
  bluxUsersSignOut.pathSchema = z.object({
66
- application_id: z.string().optional(),
66
+ application_id: z.string().optional(), // todo: objectIdSchema 로 변경
67
67
  blux_user_id: objectIdSchema,
68
68
  });
69
69
  })(bluxUsersSignOut = APIs.bluxUsersSignOut || (APIs.bluxUsersSignOut = {}));
@@ -138,5 +138,56 @@ export var APIs;
138
138
  blux_user_id: objectIdSchema,
139
139
  });
140
140
  })(bluxUsersGetItemRecommendationsV2 = APIs.bluxUsersGetItemRecommendationsV2 || (APIs.bluxUsersGetItemRecommendationsV2 = {}));
141
+ let crmEventsCreate;
142
+ (function (crmEventsCreate) {
143
+ crmEventsCreate.name = "crmEventsCreate";
144
+ crmEventsCreate.path = `${applicationsRoot}/crm-events`;
145
+ crmEventsCreate.method = HttpMethod.POST;
146
+ crmEventsCreate.bodySchema = z.object({
147
+ notification_id: objectIdSchema,
148
+ crm_event_type: z.union([
149
+ z.literal("push_opened"),
150
+ z.literal("button_clicked"),
151
+ z.literal("landing_clicked"),
152
+ z.literal("inapp_opened"),
153
+ ]),
154
+ captured_at: dateSchema,
155
+ item_id: z.string().optional(),
156
+ });
157
+ crmEventsCreate.pathSchema = z.object({
158
+ application_id: z.string(),
159
+ });
160
+ })(crmEventsCreate = APIs.crmEventsCreate || (APIs.crmEventsCreate = {}));
161
+ let inappsDispatcher;
162
+ (function (inappsDispatcher) {
163
+ inappsDispatcher.name = "inappsDispatcher";
164
+ inappsDispatcher.path = `${applicationsRoot}/inapps/dispatch`;
165
+ inappsDispatcher.method = HttpMethod.POST;
166
+ inappsDispatcher.pathSchema = z.object({
167
+ application_id: objectIdSchema,
168
+ });
169
+ inappsDispatcher.bodySchema = z.object({
170
+ blux_user_id: objectIdSchema,
171
+ device_id: objectIdSchema,
172
+ platform: z.union([
173
+ z.literal(DevicePlatform.android),
174
+ z.literal(DevicePlatform.ios),
175
+ z.literal(DevicePlatform.browser),
176
+ ]),
177
+ events: z.array(z.object({
178
+ device_id: objectIdSchema.optional(),
179
+ event_type: z.string(),
180
+ event_properties: eventPropertiesSchema.optional(),
181
+ custom_event_properties: customPropertiesSchema.optional(),
182
+ internal_event_properties: z
183
+ .object({
184
+ url: z.string().optional(),
185
+ ref: z.string().optional(),
186
+ })
187
+ .optional(),
188
+ captured_at: dateSchema,
189
+ })),
190
+ });
191
+ })(inappsDispatcher = APIs.inappsDispatcher || (APIs.inappsDispatcher = {}));
141
192
  })(APIs || (APIs = {}));
142
193
  //# sourceMappingURL=APIs.js.map
@@ -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,CAAA;IACnB,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,MAAM,gBAAgB,GAAG,gCAAgC,CAAC;AAC1D,MAAM,kBAAkB,GAAG,mCAAmC,CAAC;AAE/D,MAAM,KAAW,IAAI,CA8KpB;AA9KD,WAAiB,IAAI;IACnB,IAAiB,mBAAmB,CA6BnC;IA7BD,WAAiB,mBAAmB;QACrB,wBAA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B","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.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;AAK7B,IAAK,UAKJ;AALD,WAAK,UAAU;IACb,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,yBAAW,CAAA;I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AAI,GAAG,GAAG,gBAAgB,kBAAkB,CAAC;QAC7C,uBAAM,GAAG,UAAU,CAAC,IAAI,CAAC;QAEzB,2BAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,cAAc;SAC/B,CAAC,CAAC;QAGU,2BAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,cAAc;YACzB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC;gBAChB,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC;gBACjC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC;gBAC7B,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC;aAClC,CAAC;YACF,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;gBACP,SAAS,EAAE,cAAc,CAAC,QAAQ,EAAE;gBACpC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;gBACtB,gBAAgB,EAAE,qBAAqB,CAAC,QAAQ,EAAE;gBAClD,uBAAuB,EAAE,sBAAsB,CAAC,QAAQ,EAAE;gBAC1D,yBAAyB,EAAE,CAAC;qBACzB,MAAM,CAAC;oBACN,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;oBAC1B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;iBAC3B,CAAC;qBACD,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":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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 type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\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
+ {"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":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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 type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\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"]}
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":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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 type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\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
+ {"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":"AACA,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,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 type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\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
+ {"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":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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 type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\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
+ {"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":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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 type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\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
+ {"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":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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 type { AxiosInstance } from \"axios\";\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\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
+ {"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,4 +1,4 @@
1
1
  export declare const BLUX_ATTRIBUTES: {
2
- section: string;
3
- recommendation_id: string;
2
+ tracking_id: string;
3
+ item_id: string;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  export const BLUX_ATTRIBUTES = {
2
- section: "data-blux-section",
3
- recommendation_id: "data-blux-rec-id",
2
+ tracking_id: "data-blux-tracking-id",
3
+ item_id: "data-blux-item-id",
4
4
  };
5
5
  //# sourceMappingURL=BLUX_ATTRIBUTES.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BLUX_ATTRIBUTES.js","sourceRoot":"/","sources":["src/constants/BLUX_ATTRIBUTES.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,mBAAmB;IAC5B,iBAAiB,EAAE,kBAAkB;CACtC,CAAC","sourcesContent":["export const BLUX_ATTRIBUTES = {\n section: \"data-blux-section\",\n recommendation_id: \"data-blux-rec-id\",\n};\n"]}
1
+ {"version":3,"file":"BLUX_ATTRIBUTES.js","sourceRoot":"/","sources":["src/constants/BLUX_ATTRIBUTES.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,WAAW,EAAE,uBAAuB;IACpC,OAAO,EAAE,mBAAmB;CAC7B,CAAC","sourcesContent":["export const BLUX_ATTRIBUTES = {\n tracking_id: \"data-blux-tracking-id\",\n item_id: \"data-blux-item-id\",\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({ item_id, custom_event_properties, trackings, }: IAddCartaddEvent);
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({ item_id, custom_event_properties, trackings, }) {
3
+ constructor({ itemId, tracking, customEventProperties }) {
4
4
  super({
5
5
  event_type: EventType.cartadd,
6
6
  event_properties: {
7
- item_id,
8
- trackings,
7
+ item_id: itemId,
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":"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
+ {"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"]}
@@ -0,0 +1,5 @@
1
+ import { Event } from "./Event";
2
+ import type { IAddClickEvent } from "./types";
3
+ export declare class AddClickEvent extends Event {
4
+ constructor({ itemId, tracking, customEventProperties }: IAddClickEvent);
5
+ }
@@ -0,0 +1,14 @@
1
+ import { Event, EventType } from "./Event";
2
+ export class AddClickEvent extends Event {
3
+ constructor({ itemId, tracking, customEventProperties }) {
4
+ super({
5
+ event_type: EventType.click,
6
+ event_properties: {
7
+ item_id: itemId,
8
+ tracking,
9
+ },
10
+ custom_event_properties: customEventProperties,
11
+ });
12
+ }
13
+ }
14
+ //# sourceMappingURL=AddClickEvent.js.map
@@ -0,0 +1 @@
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({ event_type, event_properties, custom_event_properties, }: IAddCustomEvent);
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({ event_type, event_properties, custom_event_properties, }) {
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":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,OAAO,cAAe,SAAQ,KAAK;IACvC,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,uBAAuB,GACP;QAChB,KAAK,CAAC;YACJ,UAAU;YACV,gBAAgB;YAChB,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddCustomEvent } from \"./types\";\nimport { Event } from \"./Event\";\n\nexport class AddCustomEvent extends Event {\n constructor({\n event_type,\n event_properties,\n custom_event_properties,\n }: IAddCustomEvent) {\n super({\n event_type,\n event_properties,\n custom_event_properties,\n });\n }\n}\n"]}
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({ page, section, position, recommendation_id, item_id, custom_event_properties, trackings, }: IAddInstantImpressionEvent);
4
+ constructor({ itemId, page, section, position, tracking, customEventProperties, }: IAddInstantImpressionEvent);
5
5
  }
@@ -1,17 +1,16 @@
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, trackings, }) {
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
- recommendation_id,
12
- trackings,
11
+ tracking,
13
12
  },
14
- custom_event_properties,
13
+ custom_event_properties: customEventProperties,
15
14
  });
16
15
  }
17
16
  }
@@ -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,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
+ {"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({ item_id, custom_event_properties }: IAddLikeEvent);
4
+ constructor({ itemId, tracking, customEventProperties }: IAddLikeEvent);
5
5
  }
@@ -1,12 +1,13 @@
1
1
  import { Event, EventType } from "./Event";
2
2
  export class AddLikeEvent extends Event {
3
- constructor({ item_id, custom_event_properties }) {
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
+ tracking,
8
9
  },
9
- custom_event_properties,
10
+ custom_event_properties: customEventProperties,
10
11
  });
11
12
  }
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AddLikeEvent.js","sourceRoot":"/","sources":["src/events/AddLikeEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,YAAY,EAAE,OAAO,EAAE,uBAAuB,EAAiB;QAC7D,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,IAAI;YAC1B,gBAAgB,EAAE;gBAChB,OAAO;aACR;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddLikeEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddLikeEvent extends Event {\n constructor({ item_id, custom_event_properties }: IAddLikeEvent) {\n super({\n event_type: EventType.like,\n event_properties: {\n item_id,\n },\n custom_event_properties,\n });\n }\n}\n"]}
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,5 @@
1
+ import { Event } from "./Event";
2
+ import type { IAddOrderEvent } from "./types";
3
+ export declare class AddOrderEvent extends Event {
4
+ constructor({ orderId, paidAmount, orderAmount, items, customEventProperties, }: IAddOrderEvent);
5
+ }
@@ -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, custom_event_properties, trackings }: IAddPageViewEvent);
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, custom_event_properties, trackings }) {
3
+ constructor({ page, tracking, customEventProperties }) {
4
4
  super({
5
5
  event_type: EventType.page_view,
6
- event_properties: { page, trackings },
7
- custom_event_properties,
6
+ event_properties: { page, tracking },
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":"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
+ {"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({ custom_event_properties }: IAddPageVisitEvent);
4
+ constructor({ tracking, customEventProperties }: IAddPageVisitEvent);
5
5
  }
@@ -1,9 +1,12 @@
1
1
  import { Event, EventType } from "./Event";
2
2
  export class AddPageVisitEvent extends Event {
3
- constructor({ custom_event_properties }) {
3
+ constructor({ tracking, customEventProperties }) {
4
4
  super({
5
5
  event_type: EventType.page_visit,
6
- custom_event_properties,
6
+ event_properties: {
7
+ tracking,
8
+ },
9
+ custom_event_properties: customEventProperties,
7
10
  });
8
11
  }
9
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AddPageVisitEvent.js","sourceRoot":"/","sources":["src/events/AddPageVisitEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,EAAE,uBAAuB,EAAsB;QACzD,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddPageVisitEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddPageVisitEvent extends Event {\n constructor({ custom_event_properties }: IAddPageVisitEvent) {\n super({\n event_type: EventType.page_visit,\n custom_event_properties,\n });\n }\n}\n"]}
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"]}