@blux.ai/web-sdk 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/APIs.d.ts +2 -0
- package/dist/apis/APIs.js +2 -0
- package/dist/apis/APIs.js.map +1 -1
- package/dist/package.js +1 -1
- package/package.json +1 -1
package/dist/apis/APIs.d.ts
CHANGED
|
@@ -389,6 +389,8 @@ declare namespace APIs {
|
|
|
389
389
|
marketing_notification_email_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
390
390
|
marketing_notification_kakao_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
391
391
|
marketing_notification_push_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
392
|
+
nighttime_notification_sms_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
393
|
+
nighttime_notification_push_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
392
394
|
is_all_notification_blocked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
393
395
|
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof Gender>>>;
|
|
394
396
|
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
package/dist/apis/APIs.js
CHANGED
|
@@ -98,6 +98,8 @@ let APIs;
|
|
|
98
98
|
marketing_notification_email_consent: z.boolean().nullish(),
|
|
99
99
|
marketing_notification_kakao_consent: z.boolean().nullish(),
|
|
100
100
|
marketing_notification_push_consent: z.boolean().nullish(),
|
|
101
|
+
nighttime_notification_sms_consent: z.boolean().nullish(),
|
|
102
|
+
nighttime_notification_push_consent: z.boolean().nullish(),
|
|
101
103
|
is_all_notification_blocked: z.boolean().nullish(),
|
|
102
104
|
gender: z.nativeEnum(Gender).nullish(),
|
|
103
105
|
age: z.number().nullish()
|
package/dist/apis/APIs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIs.js","names":[],"sources":["../../src/apis/APIs.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\nimport { z } from \"zod\";\n\nimport {\n countryCodeWithLowerCaseSchema,\n customPropertiesRequestSchema,\n customPropertiesSchema,\n dateSchema,\n eventPropertiesSchema,\n internalEventPropertiesSchema,\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\nexport enum Gender {\n male = \"male\",\n female = \"female\",\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 session_id: z.string().optional(),\n device_id: objectIdSchema.optional(),\n custom_device_id: z.string().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 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: @all 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: @all 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 bluxUsersCollectEventsV2 {\n export const name = \"bluxUsersCollectEventsV2\";\n export const path = `${applicationsRootV2}/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 device_id: objectIdSchema,\n events: z.array(\n z.object({\n event_type: z.string(),\n event_properties: eventPropertiesSchema.optional(),\n custom_event_properties: customPropertiesSchema.optional(),\n internal_event_properties: internalEventPropertiesSchema.optional(),\n captured_at: dateSchema,\n }),\n ),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export type ResponseData = {\n nextPollDelayMs: number;\n inapp?: {\n notificationId: string;\n inappId: string;\n htmlString: string;\n baseUrl: string;\n displayDelaySeconds?: number;\n };\n };\n }\n\n export namespace bluxUsersUpdateProperties {\n export const name = \"bluxUsersUpdateProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n user_properties: z\n .object({\n phone_number: z.string().nullish(),\n email_address: z.string().nullish(),\n nighttime_notification_consent: z.boolean().nullish(),\n marketing_notification_consent: z.boolean().nullish(),\n marketing_notification_sms_consent: z.boolean().nullish(),\n marketing_notification_email_consent: z.boolean().nullish(),\n marketing_notification_kakao_consent: z.boolean().nullish(),\n marketing_notification_push_consent: z.boolean().nullish(),\n is_all_notification_blocked: z.boolean().nullish(),\n\n gender: z.nativeEnum(Gender).nullish(),\n age: z.number().nullish(),\n })\n .optional(),\n custom_user_properties: customPropertiesRequestSchema.optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string(),\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\n export namespace notificationsUpdate {\n export const name = \"notificationsUpdate\";\n export const path = `${applicationsRoot}/notifications/{notification_id}`;\n export const method = HttpMethod.POST;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n notification_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export const bodySchema = z.object({\n status: z.literal(\"received\"),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n export type ResponseData = boolean;\n }\n\n export namespace notificationsReadList {\n export const name = \"notificationsReadList\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/notifications`;\n export const method = HttpMethod.GET;\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 Query = {\n limit?: number;\n from_sent_at?: string;\n to_sent_at?: string;\n cursor?: string;\n };\n\n export type ResponseData = {\n notifications: {\n id: string;\n title: string;\n body: string;\n image_url?: string;\n url?: string;\n sent_at: string;\n }[];\n next_cursor?: string;\n };\n }\n}\n"],"mappings":";;;;AAwBA,IAAY,iBAAL;CACL;CACA;CACA;;AACF;AAEA,IAAY,SAAL;CACL;CACA;;AACF;AAEA,MAAM,mBAAmB;AACzB,MAAM,qBAAqB;AAEpB;;CACE;;8BACe;8BACA,GAAG,iBAAiB;;oCAGd,EAAE,OAAO;GACjC,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS;GAChC,WAAW,eAAe,SAAS;GACnC,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS;GACtC,cAAc,+BAA+B,SAAS;GACtD,cAAc,EAAE,OAAO;GACvB,eAAe,EAAE,OAAO;GACxB,YAAY,EAAE,OAAO;GACrB,UAAU,EAAE,WAAW,cAAc;GACrC,UAAU,EAAE,OAAO;GACnB,aAAa,EAAE,OAAO;GACtB,UAAU,EAAE,OAAO;GACnB,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS;EACpC,CAAC;oCAGyB,EAAE,OAAO,EACjC,gBAAgB,EAAE,OAAO,CAAC,C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;IACzD,6BAA6B,EAAE,QAAQ,CAAC,CAAC,QAAQ;IAEjD,QAAQ,EAAE,WAAW,MAAM,CAAC,CAAC,QAAQ;IACrC,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ;GAC1B,CAAC,CAAC,CACD,SAAS;GACZ,wBAAwB,8BAA8B,SAAS;EACjE,CAAC;0CAGyB,EAAE,OAAO;GACjC,gBAAgB,EAAE,OAAO;GACzB,cAAc;EAChB,CAAC;GAMF,qIAAD;CAEO;;2CACe;2CACA,GAAG,mBAAmB;;iDAGhB;iDAGA,EAAE,OAAO;GACjC,gBAAgB;GAChB,cAAc;EAChB,CAAC;GAIF,qKAAD;CAEO;;0BACe;0BACA,GAAG,iBAAiB;;gCAGd,EAAE,OAAO;GACjC,iBAAiB;GACjB,gBAAgB,EAAE,MAAM;IACtB,EAAE,QAAQ,aAAa;IACvB,EAAE,QAAQ,gBAAgB;IAC1B,EAAE,QAAQ,iBAAiB;IAC3B,EAAE,QAAQ,cAAc;GAC1B,CAAC;GACD,aAAa;GACb,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS;EAC/B,CAAC;gCAGyB,EAAE,OAAO,EACjC,gBAAgB,EAAE,OAAO,EAC3B,CAAC;GAIF,6FAAD;CAEO;;8BACe;8BACA,GAAG,iBAAiB;;oCAGd,EAAE,OAAO;GACjC,gBAAgB;GAChB,iBAAiB;EACnB,CAAC;oCAGyB,EAAE,OAAO,EACjC,QAAQ,EAAE,QAAQ,UAAU,EAC9B,CAAC;GAGF,6GAAD;CAEO;;gCACe;gCACA,GAAG,iBAAiB;;sCAGd,EAAE,OAAO;GACjC,gBAAgB;GAChB,cAAc;EAChB,CAAC;GAqBF,qHAAD;EACD,oBAAD"}
|
|
1
|
+
{"version":3,"file":"APIs.js","names":[],"sources":["../../src/apis/APIs.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\nimport { z } from \"zod\";\n\nimport {\n countryCodeWithLowerCaseSchema,\n customPropertiesRequestSchema,\n customPropertiesSchema,\n dateSchema,\n eventPropertiesSchema,\n internalEventPropertiesSchema,\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\nexport enum Gender {\n male = \"male\",\n female = \"female\",\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 session_id: z.string().optional(),\n device_id: objectIdSchema.optional(),\n custom_device_id: z.string().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 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: @all 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: @all 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 bluxUsersCollectEventsV2 {\n export const name = \"bluxUsersCollectEventsV2\";\n export const path = `${applicationsRootV2}/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 device_id: objectIdSchema,\n events: z.array(\n z.object({\n event_type: z.string(),\n event_properties: eventPropertiesSchema.optional(),\n custom_event_properties: customPropertiesSchema.optional(),\n internal_event_properties: internalEventPropertiesSchema.optional(),\n captured_at: dateSchema,\n }),\n ),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export type ResponseData = {\n nextPollDelayMs: number;\n inapp?: {\n notificationId: string;\n inappId: string;\n htmlString: string;\n baseUrl: string;\n displayDelaySeconds?: number;\n };\n };\n }\n\n export namespace bluxUsersUpdateProperties {\n export const name = \"bluxUsersUpdateProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n user_properties: z\n .object({\n phone_number: z.string().nullish(),\n email_address: z.string().nullish(),\n nighttime_notification_consent: z.boolean().nullish(),\n marketing_notification_consent: z.boolean().nullish(),\n marketing_notification_sms_consent: z.boolean().nullish(),\n marketing_notification_email_consent: z.boolean().nullish(),\n marketing_notification_kakao_consent: z.boolean().nullish(),\n marketing_notification_push_consent: z.boolean().nullish(),\n nighttime_notification_sms_consent: z.boolean().nullish(),\n nighttime_notification_push_consent: z.boolean().nullish(),\n is_all_notification_blocked: z.boolean().nullish(),\n\n gender: z.nativeEnum(Gender).nullish(),\n age: z.number().nullish(),\n })\n .optional(),\n custom_user_properties: customPropertiesRequestSchema.optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string(),\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\n export namespace notificationsUpdate {\n export const name = \"notificationsUpdate\";\n export const path = `${applicationsRoot}/notifications/{notification_id}`;\n export const method = HttpMethod.POST;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n notification_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export const bodySchema = z.object({\n status: z.literal(\"received\"),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n export type ResponseData = boolean;\n }\n\n export namespace notificationsReadList {\n export const name = \"notificationsReadList\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/notifications`;\n export const method = HttpMethod.GET;\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 Query = {\n limit?: number;\n from_sent_at?: string;\n to_sent_at?: string;\n cursor?: string;\n };\n\n export type ResponseData = {\n notifications: {\n id: string;\n title: string;\n body: string;\n image_url?: string;\n url?: string;\n sent_at: string;\n }[];\n next_cursor?: string;\n };\n }\n}\n"],"mappings":";;;;AAwBA,IAAY,iBAAL;CACL;CACA;CACA;;AACF;AAEA,IAAY,SAAL;CACL;CACA;;AACF;AAEA,MAAM,mBAAmB;AACzB,MAAM,qBAAqB;AAEpB;;CACE;;8BACe;8BACA,GAAG,iBAAiB;;oCAGd,EAAE,OAAO;GACjC,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS;GAChC,WAAW,eAAe,SAAS;GACnC,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS;GACtC,cAAc,+BAA+B,SAAS;GACtD,cAAc,EAAE,OAAO;GACvB,eAAe,EAAE,OAAO;GACxB,YAAY,EAAE,OAAO;GACrB,UAAU,EAAE,WAAW,cAAc;GACrC,UAAU,EAAE,OAAO;GACnB,aAAa,EAAE,OAAO;GACtB,UAAU,EAAE,OAAO;GACnB,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS;EACpC,CAAC;oCAGyB,EAAE,OAAO,EACjC,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,EACtC,CAAC;GAOF,6GAAD;CAEO;;0BACe;0BACA,GAAG,iBAAiB;;gCAGd,EA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