@blux.ai/web-sdk 0.0.7 → 1.0.0-rc1
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 +19 -19
- package/dist/package.json +35 -0
- package/package.json +2 -2
- package/demo/craco.config.js +0 -29
- package/demo/package.json +0 -50
- package/demo/public/favicon.ico +0 -0
- package/demo/public/index.html +0 -43
- package/demo/public/logo192.png +0 -0
- package/demo/public/logo512.png +0 -0
- package/demo/public/manifest.json +0 -25
- package/demo/public/robots.txt +0 -3
- package/demo/src/App.test.tsx +0 -9
- package/demo/src/App.tsx +0 -252
- package/demo/src/index.css +0 -16
- package/demo/src/index.tsx +0 -19
- package/demo/src/react-app-env.d.ts +0 -1
- package/demo/src/reportWebVitals.ts +0 -15
- package/demo/src/setupTests.ts +0 -5
- package/demo/tailwind.config.js +0 -10
- package/dist/BluxClient.d.ts +0 -43
- package/dist/BluxClient.js +0 -190
- package/dist/BluxClient.js.map +0 -1
- package/dist/apis/APIs.d.ts +0 -317
- package/dist/apis/APIs.js +0 -138
- package/dist/apis/APIs.js.map +0 -1
- package/dist/apis/createEvent.d.ts +0 -4
- package/dist/apis/createEvent.js +0 -7
- package/dist/apis/createEvent.js.map +0 -1
- package/dist/apis/getItemRecommendation.d.ts +0 -4
- package/dist/apis/getItemRecommendation.js +0 -7
- package/dist/apis/getItemRecommendation.js.map +0 -1
- package/dist/apis/initialize.d.ts +0 -4
- package/dist/apis/initialize.js +0 -7
- package/dist/apis/initialize.js.map +0 -1
- package/dist/apis/signIn.d.ts +0 -4
- package/dist/apis/signIn.js +0 -7
- package/dist/apis/signIn.js.map +0 -1
- package/dist/apis/signOut.d.ts +0 -4
- package/dist/apis/signOut.js +0 -7
- package/dist/apis/signOut.js.map +0 -1
- package/dist/apis/updateCustomUserProperties.d.ts +0 -4
- package/dist/apis/updateCustomUserProperties.js +0 -7
- package/dist/apis/updateCustomUserProperties.js.map +0 -1
- package/dist/apis/updateUserProperties.d.ts +0 -4
- package/dist/apis/updateUserProperties.js +0 -7
- package/dist/apis/updateUserProperties.js.map +0 -1
- package/dist/constants/COUNTRIES.d.ts +0 -928
- package/dist/constants/COUNTRIES.js +0 -1159
- package/dist/constants/COUNTRIES.js.map +0 -1
- package/dist/constants/ISO8601_REGEX.d.ts +0 -1
- package/dist/constants/ISO8601_REGEX.js +0 -4
- package/dist/constants/ISO8601_REGEX.js.map +0 -1
- package/dist/constants/URLS.d.ts +0 -6
- package/dist/constants/URLS.js +0 -7
- package/dist/constants/URLS.js.map +0 -1
- package/dist/events/AddCartaddEvent.d.ts +0 -5
- package/dist/events/AddCartaddEvent.js +0 -11
- package/dist/events/AddCartaddEvent.js.map +0 -1
- package/dist/events/AddCustomEvent.d.ts +0 -5
- package/dist/events/AddCustomEvent.js +0 -12
- package/dist/events/AddCustomEvent.js.map +0 -1
- package/dist/events/AddLikeEvent.d.ts +0 -5
- package/dist/events/AddLikeEvent.js +0 -11
- package/dist/events/AddLikeEvent.js.map +0 -1
- package/dist/events/AddPageViewEvent.d.ts +0 -5
- package/dist/events/AddPageViewEvent.js +0 -11
- package/dist/events/AddPageViewEvent.js.map +0 -1
- package/dist/events/AddProductDetailViewEvent.d.ts +0 -5
- package/dist/events/AddProductDetailViewEvent.js +0 -11
- package/dist/events/AddProductDetailViewEvent.js.map +0 -1
- package/dist/events/AddPurchaseEvent.d.ts +0 -5
- package/dist/events/AddPurchaseEvent.js +0 -12
- package/dist/events/AddPurchaseEvent.js.map +0 -1
- package/dist/events/AddRateEvent.d.ts +0 -5
- package/dist/events/AddRateEvent.js +0 -12
- package/dist/events/AddRateEvent.js.map +0 -1
- package/dist/events/AddRecommendationViewEvent.d.ts +0 -5
- package/dist/events/AddRecommendationViewEvent.js +0 -10
- package/dist/events/AddRecommendationViewEvent.js.map +0 -1
- package/dist/events/Event.d.ts +0 -16
- package/dist/events/Event.js +0 -24
- package/dist/events/Event.js.map +0 -1
- package/dist/events/VisitEvent.d.ts +0 -5
- package/dist/events/VisitEvent.js +0 -10
- package/dist/events/VisitEvent.js.map +0 -1
- package/dist/events/index.d.ts +0 -8
- package/dist/events/index.js +0 -9
- package/dist/events/index.js.map +0 -1
- package/dist/events/types.d.ts +0 -38
- package/dist/events/types.js +0 -2
- package/dist/events/types.js.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
- package/dist/recommendations/ItemRecommendation.d.ts +0 -5
- package/dist/recommendations/ItemRecommendation.js +0 -12
- package/dist/recommendations/ItemRecommendation.js.map +0 -1
- package/dist/recommendations/Recommendation.d.ts +0 -5
- package/dist/recommendations/Recommendation.js +0 -9
- package/dist/recommendations/Recommendation.js.map +0 -1
- package/dist/recommendations/index.d.ts +0 -1
- package/dist/recommendations/index.js +0 -2
- package/dist/recommendations/index.js.map +0 -1
- package/dist/recommendations/types.d.ts +0 -11
- package/dist/recommendations/types.js +0 -2
- package/dist/recommendations/types.js.map +0 -1
- package/dist/utils/Base.d.ts +0 -13
- package/dist/utils/Base.js +0 -2
- package/dist/utils/Base.js.map +0 -1
- package/dist/utils/LocalStorage.d.ts +0 -4
- package/dist/utils/LocalStorage.js +0 -14
- package/dist/utils/LocalStorage.js.map +0 -1
- package/dist/utils/Logger.d.ts +0 -13
- package/dist/utils/Logger.js +0 -49
- package/dist/utils/Logger.js.map +0 -1
- package/dist/utils/assertEqualTypes.d.ts +0 -3
- package/dist/utils/assertEqualTypes.js +0 -5
- package/dist/utils/assertEqualTypes.js.map +0 -1
- package/dist/utils/getPath.d.ts +0 -1
- package/dist/utils/getPath.js +0 -9
- package/dist/utils/getPath.js.map +0 -1
- package/dist/utils/helper.d.ts +0 -1
- package/dist/utils/helper.js +0 -4
- package/dist/utils/helper.js.map +0 -1
- package/dist/utils/operators.d.ts +0 -2
- package/dist/utils/operators.js +0 -6
- package/dist/utils/operators.js.map +0 -1
- package/dist/utils/zodSchemas.d.ts +0 -19
- package/dist/utils/zodSchemas.js +0 -105
- package/dist/utils/zodSchemas.js.map +0 -1
package/dist/apis/APIs.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { countryCodeWithLowerCaseSchema, customPropertiesRequestSchema, customPropertiesSchema, dateSchema, objectIdSchema, } from "../utils/zodSchemas";
|
|
4
|
-
var HttpMethod;
|
|
5
|
-
(function (HttpMethod) {
|
|
6
|
-
HttpMethod["GET"] = "get";
|
|
7
|
-
HttpMethod["POST"] = "post";
|
|
8
|
-
HttpMethod["PUT"] = "put";
|
|
9
|
-
HttpMethod["DELETE"] = "delete";
|
|
10
|
-
})(HttpMethod || (HttpMethod = {}));
|
|
11
|
-
export var DevicePlatform;
|
|
12
|
-
(function (DevicePlatform) {
|
|
13
|
-
DevicePlatform["ios"] = "ios";
|
|
14
|
-
DevicePlatform["android"] = "android";
|
|
15
|
-
DevicePlatform["browser"] = "browser";
|
|
16
|
-
})(DevicePlatform || (DevicePlatform = {}));
|
|
17
|
-
const applicationsRoot = "/applications/{application_id}";
|
|
18
|
-
export var APIs;
|
|
19
|
-
(function (APIs) {
|
|
20
|
-
let bluxUsersInitialize;
|
|
21
|
-
(function (bluxUsersInitialize) {
|
|
22
|
-
bluxUsersInitialize.name = "bluxUsersInitialize";
|
|
23
|
-
bluxUsersInitialize.path = `${applicationsRoot}/blux-users/initialize`;
|
|
24
|
-
bluxUsersInitialize.method = HttpMethod.POST;
|
|
25
|
-
bluxUsersInitialize.bodySchema = z.object({
|
|
26
|
-
device_id: objectIdSchema.optional(),
|
|
27
|
-
country_code: countryCodeWithLowerCaseSchema.optional(),
|
|
28
|
-
device_model: z.string(),
|
|
29
|
-
language_code: z.string(),
|
|
30
|
-
os_version: z.string(),
|
|
31
|
-
platform: z.nativeEnum(DevicePlatform),
|
|
32
|
-
sdk_type: z.string(),
|
|
33
|
-
sdk_version: z.string(),
|
|
34
|
-
timezone: z.string(),
|
|
35
|
-
isVisitHandlingInSdk: z.boolean().default(false), // sdk 업데이트 후 삭제
|
|
36
|
-
});
|
|
37
|
-
bluxUsersInitialize.pathSchema = z.object({
|
|
38
|
-
application_id: z.string().optional(),
|
|
39
|
-
});
|
|
40
|
-
})(bluxUsersInitialize = APIs.bluxUsersInitialize || (APIs.bluxUsersInitialize = {}));
|
|
41
|
-
let bluxUsersSignIn;
|
|
42
|
-
(function (bluxUsersSignIn) {
|
|
43
|
-
bluxUsersSignIn.name = "bluxUsersSignIn";
|
|
44
|
-
bluxUsersSignIn.path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-in`;
|
|
45
|
-
bluxUsersSignIn.method = HttpMethod.PUT;
|
|
46
|
-
bluxUsersSignIn.bodySchema = z.object({
|
|
47
|
-
user_id: z.string(),
|
|
48
|
-
device_id: z.string().optional(), // todo: sdk update 후 필수로 변경
|
|
49
|
-
});
|
|
50
|
-
bluxUsersSignIn.pathSchema = z.object({
|
|
51
|
-
application_id: z.string().optional(),
|
|
52
|
-
blux_user_id: objectIdSchema,
|
|
53
|
-
});
|
|
54
|
-
})(bluxUsersSignIn = APIs.bluxUsersSignIn || (APIs.bluxUsersSignIn = {}));
|
|
55
|
-
let bluxUsersSignOut;
|
|
56
|
-
(function (bluxUsersSignOut) {
|
|
57
|
-
bluxUsersSignOut.name = "bluxUsersSignOut";
|
|
58
|
-
bluxUsersSignOut.path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-out`;
|
|
59
|
-
bluxUsersSignOut.method = HttpMethod.PUT;
|
|
60
|
-
bluxUsersSignOut.bodySchema = z.object({
|
|
61
|
-
device_id: objectIdSchema,
|
|
62
|
-
});
|
|
63
|
-
bluxUsersSignOut.pathSchema = z.object({
|
|
64
|
-
application_id: z.string().optional(),
|
|
65
|
-
blux_user_id: objectIdSchema,
|
|
66
|
-
});
|
|
67
|
-
})(bluxUsersSignOut = APIs.bluxUsersSignOut || (APIs.bluxUsersSignOut = {}));
|
|
68
|
-
let bluxUsersCollectEvents;
|
|
69
|
-
(function (bluxUsersCollectEvents) {
|
|
70
|
-
bluxUsersCollectEvents.name = "bluxUsersCollectEvents";
|
|
71
|
-
bluxUsersCollectEvents.path = `${applicationsRoot}/blux-users/{blux_user_id}/collect-events`;
|
|
72
|
-
bluxUsersCollectEvents.method = HttpMethod.POST;
|
|
73
|
-
bluxUsersCollectEvents.bodySchema = z.object({
|
|
74
|
-
events: z.array(z.object({
|
|
75
|
-
device_id: objectIdSchema.optional(),
|
|
76
|
-
event_type: z.string(),
|
|
77
|
-
event_value: z.string().optional(),
|
|
78
|
-
item_id: z.string().optional(),
|
|
79
|
-
event_properties: customPropertiesSchema.optional(),
|
|
80
|
-
captured_at: dateSchema,
|
|
81
|
-
})),
|
|
82
|
-
});
|
|
83
|
-
bluxUsersCollectEvents.pathSchema = z.object({
|
|
84
|
-
application_id: objectIdSchema,
|
|
85
|
-
blux_user_id: objectIdSchema,
|
|
86
|
-
});
|
|
87
|
-
})(bluxUsersCollectEvents = APIs.bluxUsersCollectEvents || (APIs.bluxUsersCollectEvents = {}));
|
|
88
|
-
let bluxUsersGetItemRecommendations;
|
|
89
|
-
(function (bluxUsersGetItemRecommendations) {
|
|
90
|
-
bluxUsersGetItemRecommendations.name = "bluxUsersGetItemRecommendations";
|
|
91
|
-
bluxUsersGetItemRecommendations.path = `${applicationsRoot}/blux-users/{blux_user_id}/item-recommendations`;
|
|
92
|
-
bluxUsersGetItemRecommendations.method = HttpMethod.POST;
|
|
93
|
-
bluxUsersGetItemRecommendations.bodySchema = z.object({
|
|
94
|
-
call_type: z.string(),
|
|
95
|
-
limit: z.number(),
|
|
96
|
-
offset: z.number().default(0),
|
|
97
|
-
item_ids: z.array(z.string()).optional(),
|
|
98
|
-
});
|
|
99
|
-
bluxUsersGetItemRecommendations.pathSchema = z.object({
|
|
100
|
-
application_id: objectIdSchema,
|
|
101
|
-
blux_user_id: objectIdSchema,
|
|
102
|
-
});
|
|
103
|
-
})(bluxUsersGetItemRecommendations = APIs.bluxUsersGetItemRecommendations || (APIs.bluxUsersGetItemRecommendations = {}));
|
|
104
|
-
let bluxUsersUpdateUserProperties;
|
|
105
|
-
(function (bluxUsersUpdateUserProperties) {
|
|
106
|
-
bluxUsersUpdateUserProperties.name = "bluxUsersUpdateUserProperties";
|
|
107
|
-
bluxUsersUpdateUserProperties.path = `${applicationsRoot}/blux-users/{blux_user_id}/update-user-properties`;
|
|
108
|
-
bluxUsersUpdateUserProperties.method = HttpMethod.PUT;
|
|
109
|
-
bluxUsersUpdateUserProperties.bodySchema = z.object({
|
|
110
|
-
properties: z.object({
|
|
111
|
-
phone_number: z.string().nullable().optional(),
|
|
112
|
-
email_address: z.string().nullable().optional(),
|
|
113
|
-
nighttime_notification_consent: z.boolean().nullable().optional(),
|
|
114
|
-
marketing_notification_consent: z.boolean().nullable().optional(),
|
|
115
|
-
sms_consent: z.boolean().nullable().optional(),
|
|
116
|
-
email_consent: z.boolean().nullable().optional(),
|
|
117
|
-
}),
|
|
118
|
-
});
|
|
119
|
-
bluxUsersUpdateUserProperties.pathSchema = z.object({
|
|
120
|
-
application_id: z.string().optional(),
|
|
121
|
-
blux_user_id: objectIdSchema,
|
|
122
|
-
});
|
|
123
|
-
})(bluxUsersUpdateUserProperties = APIs.bluxUsersUpdateUserProperties || (APIs.bluxUsersUpdateUserProperties = {}));
|
|
124
|
-
let bluxUsersUpdateCustomUserProperties;
|
|
125
|
-
(function (bluxUsersUpdateCustomUserProperties) {
|
|
126
|
-
bluxUsersUpdateCustomUserProperties.name = "bluxUsersUpdateCustomUserProperties";
|
|
127
|
-
bluxUsersUpdateCustomUserProperties.path = `${applicationsRoot}/blux-users/{blux_user_id}/update-custom-user-properties`;
|
|
128
|
-
bluxUsersUpdateCustomUserProperties.method = HttpMethod.PUT;
|
|
129
|
-
bluxUsersUpdateCustomUserProperties.bodySchema = z.object({
|
|
130
|
-
properties: customPropertiesRequestSchema,
|
|
131
|
-
});
|
|
132
|
-
bluxUsersUpdateCustomUserProperties.pathSchema = z.object({
|
|
133
|
-
application_id: z.string().optional(),
|
|
134
|
-
blux_user_id: objectIdSchema,
|
|
135
|
-
});
|
|
136
|
-
})(bluxUsersUpdateCustomUserProperties = APIs.bluxUsersUpdateCustomUserProperties || (APIs.bluxUsersUpdateCustomUserProperties = {}));
|
|
137
|
-
})(APIs || (APIs = {}));
|
|
138
|
-
//# sourceMappingURL=APIs.js.map
|
package/dist/apis/APIs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"APIs.js","sourceRoot":"/","sources":["apis/APIs.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,EAC7B,sBAAsB,EACtB,UAAU,EACV,cAAc,GACf,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;AAE1D,MAAM,KAAW,IAAI,CAsLpB;AAtLD,WAAiB,IAAI;IACnB,IAAiB,mBAAmB,CA4BnC;IA5BD,WAAiB,mBAAmB;QACrB,wBAAI,GAAG,qBAAqB,CAAC;QAC7B,wBAAI,GAAG,GAAG,gBAAgB,wBAAwB,CAAC;QACnD,0BAAM,GAAG,UAAU,CAAC,IAAI,CAAC;QAEzB,8BAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,SAAS,EAAE,cAAc,CAAC,QAAQ,EAAE;YACpC,YAAY,EAAE,8BAA8B,CAAC,QAAQ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AAC,QAAQ,EAAE;gBACjE,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;gBAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;aACjD,CAAC;SACH,CAAC,CAAC;QAGU,wCAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACrC,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAML,CAAC,EA1BgB,6BAA6B,GAA7B,kCAA6B,KAA7B,kCAA6B,QA0B7C;IAED,IAAiB,mCAAmC,CAmBnD;IAnBD,WAAiB,mCAAmC;QACrC,wCAAI,GAAG,qCAAqC,CAAC;QAC7C,wCAAI,GAAG,GAAG,gBAAgB,0DAA0D,CAAC;QACrF,0CAAM,GAAG,UAAU,CAAC,GAAG,CAAC;QAExB,8CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,UAAU,EAAE,6BAA6B;SAC1C,CAAC,CAAC;QAGU,8CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACrC,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAML,CAAC,EAnBgB,mCAAmC,GAAnC,wCAAmC,KAAnC,wCAAmC,QAmBnD;AACH,CAAC,EAtLgB,IAAI,KAAJ,IAAI,QAsLpB","sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\nimport { z } from \"zod\";\nimport {\n countryCodeWithLowerCaseSchema,\n customPropertiesRequestSchema,\n customPropertiesSchema,\n dateSchema,\n objectIdSchema,\n} from \"../utils/zodSchemas\";\nimport type { Serialize } from \"../utils/Base\";\n\nenum HttpMethod {\n GET = \"get\",\n POST = \"post\",\n PUT = \"put\",\n DELETE = \"delete\",\n}\n\nexport enum DevicePlatform {\n ios = \"ios\",\n android = \"android\",\n browser = \"browser\",\n}\n\nconst applicationsRoot = \"/applications/{application_id}\";\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 });\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,\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\n export const bodySchema = z.object({\n events: z.array(\n z.object({\n device_id: objectIdSchema.optional(),\n event_type: z.string(),\n event_value: z.string().optional(),\n item_id: z.string().optional(),\n event_properties: customPropertiesSchema.optional(),\n captured_at: dateSchema,\n }),\n ),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = boolean;\n }\n\n export namespace bluxUsersGetItemRecommendations {\n export const name = \"bluxUsersGetItemRecommendations\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/item-recommendations`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = z.object({\n call_type: z.string(),\n limit: z.number(),\n offset: z.number().default(0),\n item_ids: z.array(z.string()).optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n recommendation_id?: string;\n items: string[];\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n metadata: Record<string, any>;\n status: {\n is_success: boolean;\n code: number;\n message?: string;\n };\n };\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"]}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { APIs } from "./APIs";
|
|
2
|
-
import type { AxiosInstance } from "axios";
|
|
3
|
-
import API = APIs.bluxUsersCollectEvents;
|
|
4
|
-
export declare const collectEvent: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<boolean, any>>;
|
package/dist/apis/createEvent.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { APIs } from "./APIs";
|
|
2
|
-
var API = APIs.bluxUsersCollectEvents;
|
|
3
|
-
import { getPath } from "../utils/getPath";
|
|
4
|
-
export const collectEvent = (instance, pathParams, body, headers) => {
|
|
5
|
-
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=createEvent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createEvent.js","sourceRoot":"/","sources":["apis/createEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,IAAO,GAAG,GAAG,IAAI,CAAC,sBAAsB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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 type { AxiosInstance } from \"axios\";\n\nimport API = APIs.bluxUsersCollectEvents;\nimport { getPath } from \"../utils/getPath\";\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 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
|
-
import { APIs } from "./APIs";
|
|
3
|
-
import API = APIs.bluxUsersGetItemRecommendations;
|
|
4
|
-
export declare const getItemRecommendation: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { APIs } from "./APIs";
|
|
2
|
-
import { getPath } from "../utils/getPath";
|
|
3
|
-
var API = APIs.bluxUsersGetItemRecommendations;
|
|
4
|
-
export const getItemRecommendation = (instance, pathParams, body, headers) => {
|
|
5
|
-
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=getItemRecommendation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getItemRecommendation.js","sourceRoot":"/","sources":["apis/getItemRecommendation.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,+BAA+B,CAAC;AAElD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,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.bluxUsersGetItemRecommendations;\n\nexport const getItemRecommendation = (\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 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
|
-
import { APIs } from "./APIs";
|
|
3
|
-
import API = APIs.bluxUsersInitialize;
|
|
4
|
-
export declare const initialize: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
package/dist/apis/initialize.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getPath } from "../utils/getPath";
|
|
2
|
-
import { APIs } from "./APIs";
|
|
3
|
-
var API = APIs.bluxUsersInitialize;
|
|
4
|
-
export const initialize = (instance, pathParams, body, headers) => {
|
|
5
|
-
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=initialize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.js","sourceRoot":"/","sources":["apis/initialize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,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 { getPath } from \"../utils/getPath\";\nimport { APIs } from \"./APIs\";\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"]}
|
package/dist/apis/signIn.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
|
-
import { APIs } from "./APIs";
|
|
3
|
-
import API = APIs.bluxUsersSignIn;
|
|
4
|
-
export declare const signIn: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
package/dist/apis/signIn.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { APIs } from "./APIs";
|
|
2
|
-
var API = APIs.bluxUsersSignIn;
|
|
3
|
-
import { getPath } from "../utils/getPath";
|
|
4
|
-
export const signIn = (instance, pathParams, body, headers) => {
|
|
5
|
-
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=signIn.js.map
|
package/dist/apis/signIn.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signIn.js","sourceRoot":"/","sources":["apis/signIn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,IAAO,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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\";\n\nimport API = APIs.bluxUsersSignIn;\nimport { getPath } from \"../utils/getPath\";\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"]}
|
package/dist/apis/signOut.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
|
-
import { APIs } from "./APIs";
|
|
3
|
-
import API = APIs.bluxUsersSignOut;
|
|
4
|
-
export declare const signOut: (instance: AxiosInstance, pathParams: API.PathParam, body: API.Body, headers: Record<string, string>) => Promise<import("axios").AxiosResponse<API.ResponseData, any>>;
|
package/dist/apis/signOut.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { APIs } from "./APIs";
|
|
2
|
-
import { getPath } from "../utils/getPath";
|
|
3
|
-
var API = APIs.bluxUsersSignOut;
|
|
4
|
-
export const signOut = (instance, pathParams, body, headers) => {
|
|
5
|
-
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=signOut.js.map
|
package/dist/apis/signOut.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signOut.js","sourceRoot":"/","sources":["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,4 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
|
-
import { APIs } from "./APIs";
|
|
3
|
-
import API = APIs.bluxUsersUpdateCustomUserProperties;
|
|
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,7 +0,0 @@
|
|
|
1
|
-
import { APIs } from "./APIs";
|
|
2
|
-
import { getPath } from "../utils/getPath";
|
|
3
|
-
var API = APIs.bluxUsersUpdateCustomUserProperties;
|
|
4
|
-
export const updateCustomUserProperties = (instance, pathParams, body, headers) => {
|
|
5
|
-
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=updateCustomUserProperties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateCustomUserProperties.js","sourceRoot":"/","sources":["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,4 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from "axios";
|
|
2
|
-
import API = APIs.bluxUsersUpdateUserProperties;
|
|
3
|
-
import { APIs } from "./APIs";
|
|
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,7 +0,0 @@
|
|
|
1
|
-
var API = APIs.bluxUsersUpdateUserProperties;
|
|
2
|
-
import { APIs } from "./APIs";
|
|
3
|
-
import { getPath } from "../utils/getPath";
|
|
4
|
-
export const updateUserProperties = (instance, pathParams, body, headers) => {
|
|
5
|
-
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=updateUserProperties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateUserProperties.js","sourceRoot":"/","sources":["apis/updateUserProperties.ts"],"names":[],"mappings":"AAEA,IAAO,GAAG,GAAG,IAAI,CAAC,6BAA6B,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,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\";\n\nimport API = APIs.bluxUsersUpdateUserProperties;\nimport { APIs } from \"./APIs\";\nimport { getPath } from \"../utils/getPath\";\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"]}
|