@blux.ai/web-sdk 0.0.6-tommy1 → 0.0.7
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/demo/src/App.test.tsx +9 -0
- package/demo/src/App.tsx +252 -0
- package/demo/src/index.css +16 -0
- package/demo/src/index.tsx +19 -0
- package/demo/src/react-app-env.d.ts +1 -0
- package/demo/src/reportWebVitals.ts +15 -0
- package/demo/src/setupTests.ts +5 -0
- package/dist/BluxClient.d.ts +2 -2
- package/dist/BluxClient.js +1 -1
- package/dist/BluxClient.js.map +1 -1
- package/dist/apis/APIs.d.ts +317 -0
- package/dist/apis/APIs.js +138 -0
- package/dist/apis/APIs.js.map +1 -0
- package/dist/apis/createEvent.d.ts +1 -1
- package/dist/apis/createEvent.js +2 -2
- package/dist/apis/createEvent.js.map +1 -1
- package/dist/apis/getItemRecommendation.d.ts +2 -2
- package/dist/apis/getItemRecommendation.js +2 -2
- package/dist/apis/getItemRecommendation.js.map +1 -1
- package/dist/apis/initialize.d.ts +1 -1
- package/dist/apis/initialize.js +1 -1
- package/dist/apis/initialize.js.map +1 -1
- package/dist/apis/signIn.d.ts +1 -1
- package/dist/apis/signIn.js +2 -2
- package/dist/apis/signIn.js.map +1 -1
- package/dist/apis/signOut.d.ts +1 -1
- package/dist/apis/signOut.js +1 -1
- package/dist/apis/signOut.js.map +1 -1
- package/dist/apis/updateCustomUserProperties.d.ts +1 -1
- package/dist/apis/updateCustomUserProperties.js +1 -1
- package/dist/apis/updateCustomUserProperties.js.map +1 -1
- package/dist/apis/updateUserProperties.d.ts +1 -1
- package/dist/apis/updateUserProperties.js +2 -2
- package/dist/apis/updateUserProperties.js.map +1 -1
- package/dist/constants/COUNTRIES.d.ts +928 -0
- package/dist/constants/COUNTRIES.js +1159 -0
- package/dist/constants/COUNTRIES.js.map +1 -0
- package/dist/constants/ISO8601_REGEX.d.ts +1 -0
- package/dist/constants/ISO8601_REGEX.js +4 -0
- package/dist/constants/ISO8601_REGEX.js.map +1 -0
- package/dist/events/AddProductDetailViewEvent.js +1 -2
- package/dist/events/AddProductDetailViewEvent.js.map +1 -1
- package/dist/events/AddPurchaseEvent.js +1 -2
- package/dist/events/AddPurchaseEvent.js.map +1 -1
- package/dist/events/Event.d.ts +11 -0
- package/dist/events/Event.js +12 -0
- package/dist/events/Event.js.map +1 -1
- package/dist/events/VisitEvent.js +1 -2
- package/dist/events/VisitEvent.js.map +1 -1
- package/dist/utils/Base.d.ts +13 -0
- package/dist/utils/Base.js +2 -0
- package/dist/utils/Base.js.map +1 -0
- package/dist/utils/assertEqualTypes.d.ts +3 -0
- package/dist/utils/assertEqualTypes.js +5 -0
- package/dist/utils/assertEqualTypes.js.map +1 -0
- package/dist/utils/getPath.js +6 -1
- package/dist/utils/getPath.js.map +1 -1
- package/dist/utils/zodSchemas.d.ts +19 -0
- package/dist/utils/zodSchemas.js +105 -0
- package/dist/utils/zodSchemas.js.map +1 -0
- package/package.json +4 -2
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Serialize } from "../utils/Base";
|
|
3
|
+
declare enum HttpMethod {
|
|
4
|
+
GET = "get",
|
|
5
|
+
POST = "post",
|
|
6
|
+
PUT = "put",
|
|
7
|
+
DELETE = "delete"
|
|
8
|
+
}
|
|
9
|
+
export declare enum DevicePlatform {
|
|
10
|
+
ios = "ios",
|
|
11
|
+
android = "android",
|
|
12
|
+
browser = "browser"
|
|
13
|
+
}
|
|
14
|
+
export declare namespace APIs {
|
|
15
|
+
namespace bluxUsersInitialize {
|
|
16
|
+
const name = "bluxUsersInitialize";
|
|
17
|
+
const path: string;
|
|
18
|
+
const method = HttpMethod.POST;
|
|
19
|
+
const bodySchema: z.ZodObject<{
|
|
20
|
+
device_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>>;
|
|
21
|
+
country_code: z.ZodOptional<z.ZodEffects<z.ZodEnum<["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW")[]]>, "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW", unknown>>;
|
|
22
|
+
device_model: z.ZodString;
|
|
23
|
+
language_code: z.ZodString;
|
|
24
|
+
os_version: z.ZodString;
|
|
25
|
+
platform: z.ZodNativeEnum<typeof DevicePlatform>;
|
|
26
|
+
sdk_type: z.ZodString;
|
|
27
|
+
sdk_version: z.ZodString;
|
|
28
|
+
timezone: z.ZodString;
|
|
29
|
+
isVisitHandlingInSdk: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
platform: DevicePlatform;
|
|
32
|
+
timezone: string;
|
|
33
|
+
device_model: string;
|
|
34
|
+
language_code: string;
|
|
35
|
+
os_version: string;
|
|
36
|
+
sdk_type: string;
|
|
37
|
+
sdk_version: string;
|
|
38
|
+
isVisitHandlingInSdk: boolean;
|
|
39
|
+
device_id?: import("bson-objectid").default | undefined;
|
|
40
|
+
country_code?: "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "GY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "KZ" | "RW" | "RE" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "SS" | "ES" | "LK" | "SD" | "SR" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "CA" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "YE" | "ZM" | "ZW" | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
platform: DevicePlatform;
|
|
43
|
+
timezone: string;
|
|
44
|
+
device_model: string;
|
|
45
|
+
language_code: string;
|
|
46
|
+
os_version: string;
|
|
47
|
+
sdk_type: string;
|
|
48
|
+
sdk_version: string;
|
|
49
|
+
device_id?: string | undefined;
|
|
50
|
+
country_code?: unknown;
|
|
51
|
+
isVisitHandlingInSdk?: boolean | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
54
|
+
const pathSchema: z.ZodObject<{
|
|
55
|
+
application_id: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
application_id?: string | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
application_id?: string | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
type PathParam = Serialize<z.input<typeof pathSchema>>;
|
|
62
|
+
type ResponseData = {
|
|
63
|
+
blux_user_id: string;
|
|
64
|
+
device_id: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
namespace bluxUsersSignIn {
|
|
68
|
+
const name = "bluxUsersSignIn";
|
|
69
|
+
const path: string;
|
|
70
|
+
const method = HttpMethod.PUT;
|
|
71
|
+
const bodySchema: z.ZodObject<{
|
|
72
|
+
user_id: z.ZodString;
|
|
73
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
user_id: string;
|
|
76
|
+
device_id?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
user_id: string;
|
|
79
|
+
device_id?: string | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
82
|
+
const pathSchema: z.ZodObject<{
|
|
83
|
+
application_id: z.ZodOptional<z.ZodString>;
|
|
84
|
+
blux_user_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
blux_user_id: import("bson-objectid").default;
|
|
87
|
+
application_id?: string | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
blux_user_id: string;
|
|
90
|
+
application_id?: string | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
type PathParam = Serialize<z.input<typeof pathSchema>>;
|
|
93
|
+
type ResponseData = {
|
|
94
|
+
blux_user_id: string;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
namespace bluxUsersSignOut {
|
|
98
|
+
const name = "bluxUsersSignOut";
|
|
99
|
+
const path: string;
|
|
100
|
+
const method = HttpMethod.PUT;
|
|
101
|
+
const bodySchema: z.ZodObject<{
|
|
102
|
+
device_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
device_id: import("bson-objectid").default;
|
|
105
|
+
}, {
|
|
106
|
+
device_id: string;
|
|
107
|
+
}>;
|
|
108
|
+
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
109
|
+
const pathSchema: z.ZodObject<{
|
|
110
|
+
application_id: z.ZodOptional<z.ZodString>;
|
|
111
|
+
blux_user_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
blux_user_id: import("bson-objectid").default;
|
|
114
|
+
application_id?: string | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
blux_user_id: string;
|
|
117
|
+
application_id?: string | undefined;
|
|
118
|
+
}>;
|
|
119
|
+
type PathParam = Serialize<z.input<typeof pathSchema>>;
|
|
120
|
+
type ResponseData = {
|
|
121
|
+
blux_user_id: string;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
namespace bluxUsersCollectEvents {
|
|
125
|
+
const name = "bluxUsersCollectEvents";
|
|
126
|
+
const path: string;
|
|
127
|
+
const method = HttpMethod.POST;
|
|
128
|
+
const bodySchema: z.ZodObject<{
|
|
129
|
+
events: z.ZodArray<z.ZodObject<{
|
|
130
|
+
device_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>>;
|
|
131
|
+
event_type: z.ZodString;
|
|
132
|
+
event_value: z.ZodOptional<z.ZodString>;
|
|
133
|
+
item_id: z.ZodOptional<z.ZodString>;
|
|
134
|
+
event_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>>;
|
|
135
|
+
captured_at: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
event_type: string;
|
|
138
|
+
captured_at: Date;
|
|
139
|
+
event_value?: string | undefined;
|
|
140
|
+
item_id?: string | undefined;
|
|
141
|
+
event_properties?: Record<string, string | number | boolean | string[] | Date> | undefined;
|
|
142
|
+
device_id?: import("bson-objectid").default | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
event_type: string;
|
|
145
|
+
captured_at: string;
|
|
146
|
+
event_value?: string | undefined;
|
|
147
|
+
item_id?: string | undefined;
|
|
148
|
+
event_properties?: Record<string, string | number | boolean | string[]> | undefined;
|
|
149
|
+
device_id?: string | undefined;
|
|
150
|
+
}>, "many">;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
events: {
|
|
153
|
+
event_type: string;
|
|
154
|
+
captured_at: Date;
|
|
155
|
+
event_value?: string | undefined;
|
|
156
|
+
item_id?: string | undefined;
|
|
157
|
+
event_properties?: Record<string, string | number | boolean | string[] | Date> | undefined;
|
|
158
|
+
device_id?: import("bson-objectid").default | undefined;
|
|
159
|
+
}[];
|
|
160
|
+
}, {
|
|
161
|
+
events: {
|
|
162
|
+
event_type: string;
|
|
163
|
+
captured_at: string;
|
|
164
|
+
event_value?: string | undefined;
|
|
165
|
+
item_id?: string | undefined;
|
|
166
|
+
event_properties?: Record<string, string | number | boolean | string[]> | undefined;
|
|
167
|
+
device_id?: string | undefined;
|
|
168
|
+
}[];
|
|
169
|
+
}>;
|
|
170
|
+
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
171
|
+
const pathSchema: z.ZodObject<{
|
|
172
|
+
application_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
173
|
+
blux_user_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
application_id: import("bson-objectid").default;
|
|
176
|
+
blux_user_id: import("bson-objectid").default;
|
|
177
|
+
}, {
|
|
178
|
+
application_id: string;
|
|
179
|
+
blux_user_id: string;
|
|
180
|
+
}>;
|
|
181
|
+
type PathParam = Serialize<z.input<typeof pathSchema>>;
|
|
182
|
+
type ResponseData = boolean;
|
|
183
|
+
}
|
|
184
|
+
namespace bluxUsersGetItemRecommendations {
|
|
185
|
+
const name = "bluxUsersGetItemRecommendations";
|
|
186
|
+
const path: string;
|
|
187
|
+
const method = HttpMethod.POST;
|
|
188
|
+
const bodySchema: z.ZodObject<{
|
|
189
|
+
call_type: z.ZodString;
|
|
190
|
+
limit: z.ZodNumber;
|
|
191
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
192
|
+
item_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
offset: number;
|
|
195
|
+
call_type: string;
|
|
196
|
+
limit: number;
|
|
197
|
+
item_ids?: string[] | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
call_type: string;
|
|
200
|
+
limit: number;
|
|
201
|
+
offset?: number | undefined;
|
|
202
|
+
item_ids?: string[] | undefined;
|
|
203
|
+
}>;
|
|
204
|
+
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
205
|
+
const pathSchema: z.ZodObject<{
|
|
206
|
+
application_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
207
|
+
blux_user_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
application_id: import("bson-objectid").default;
|
|
210
|
+
blux_user_id: import("bson-objectid").default;
|
|
211
|
+
}, {
|
|
212
|
+
application_id: string;
|
|
213
|
+
blux_user_id: string;
|
|
214
|
+
}>;
|
|
215
|
+
type PathParam = Serialize<z.input<typeof pathSchema>>;
|
|
216
|
+
type ResponseData = {
|
|
217
|
+
recommendation_id?: string;
|
|
218
|
+
items: string[];
|
|
219
|
+
metadata: Record<string, any>;
|
|
220
|
+
status: {
|
|
221
|
+
is_success: boolean;
|
|
222
|
+
code: number;
|
|
223
|
+
message?: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
namespace bluxUsersUpdateUserProperties {
|
|
228
|
+
const name = "bluxUsersUpdateUserProperties";
|
|
229
|
+
const path: string;
|
|
230
|
+
const method = HttpMethod.PUT;
|
|
231
|
+
const bodySchema: z.ZodObject<{
|
|
232
|
+
properties: z.ZodObject<{
|
|
233
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
+
email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
+
nighttime_notification_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
236
|
+
marketing_notification_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
237
|
+
sms_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
238
|
+
email_consent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
phone_number?: string | null | undefined;
|
|
241
|
+
email_address?: string | null | undefined;
|
|
242
|
+
nighttime_notification_consent?: boolean | null | undefined;
|
|
243
|
+
marketing_notification_consent?: boolean | null | undefined;
|
|
244
|
+
sms_consent?: boolean | null | undefined;
|
|
245
|
+
email_consent?: boolean | null | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
phone_number?: string | null | undefined;
|
|
248
|
+
email_address?: string | null | undefined;
|
|
249
|
+
nighttime_notification_consent?: boolean | null | undefined;
|
|
250
|
+
marketing_notification_consent?: boolean | null | undefined;
|
|
251
|
+
sms_consent?: boolean | null | undefined;
|
|
252
|
+
email_consent?: boolean | null | undefined;
|
|
253
|
+
}>;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
properties: {
|
|
256
|
+
phone_number?: string | null | undefined;
|
|
257
|
+
email_address?: string | null | undefined;
|
|
258
|
+
nighttime_notification_consent?: boolean | null | undefined;
|
|
259
|
+
marketing_notification_consent?: boolean | null | undefined;
|
|
260
|
+
sms_consent?: boolean | null | undefined;
|
|
261
|
+
email_consent?: boolean | null | undefined;
|
|
262
|
+
};
|
|
263
|
+
}, {
|
|
264
|
+
properties: {
|
|
265
|
+
phone_number?: string | null | undefined;
|
|
266
|
+
email_address?: string | null | undefined;
|
|
267
|
+
nighttime_notification_consent?: boolean | null | undefined;
|
|
268
|
+
marketing_notification_consent?: boolean | null | undefined;
|
|
269
|
+
sms_consent?: boolean | null | undefined;
|
|
270
|
+
email_consent?: boolean | null | undefined;
|
|
271
|
+
};
|
|
272
|
+
}>;
|
|
273
|
+
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
274
|
+
const pathSchema: z.ZodObject<{
|
|
275
|
+
application_id: z.ZodOptional<z.ZodString>;
|
|
276
|
+
blux_user_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
blux_user_id: import("bson-objectid").default;
|
|
279
|
+
application_id?: string | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
blux_user_id: string;
|
|
282
|
+
application_id?: string | undefined;
|
|
283
|
+
}>;
|
|
284
|
+
type PathParam = Serialize<z.input<typeof pathSchema>>;
|
|
285
|
+
type ResponseData = {
|
|
286
|
+
blux_user_id: string;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
namespace bluxUsersUpdateCustomUserProperties {
|
|
290
|
+
const name = "bluxUsersUpdateCustomUserProperties";
|
|
291
|
+
const path: string;
|
|
292
|
+
const method = HttpMethod.PUT;
|
|
293
|
+
const bodySchema: z.ZodObject<{
|
|
294
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
properties: Record<string, string | number | boolean | string[] | Date | null>;
|
|
297
|
+
}, {
|
|
298
|
+
properties: Record<string, string | number | boolean | string[] | null>;
|
|
299
|
+
}>;
|
|
300
|
+
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
301
|
+
const pathSchema: z.ZodObject<{
|
|
302
|
+
application_id: z.ZodOptional<z.ZodString>;
|
|
303
|
+
blux_user_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
blux_user_id: import("bson-objectid").default;
|
|
306
|
+
application_id?: string | undefined;
|
|
307
|
+
}, {
|
|
308
|
+
blux_user_id: string;
|
|
309
|
+
application_id?: string | undefined;
|
|
310
|
+
}>;
|
|
311
|
+
type PathParam = Serialize<z.input<typeof pathSchema>>;
|
|
312
|
+
type ResponseData = {
|
|
313
|
+
blux_user_id: string;
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAE;YACvD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;YACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;YACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;YACtB,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC;YACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;YACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;YACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;YACpB,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,gBAAgB;SACnE,CAAC,CAAC;QAGU,8BAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACtC,CAAC,CAAC;IAOL,CAAC,EA5BgB,mBAAmB,GAAnB,wBAAmB,KAAnB,wBAAmB,QA4BnC;IAED,IAAiB,eAAe,CAoB/B;IApBD,WAAiB,eAAe;QACjB,oBAAI,GAAG,iBAAiB,CAAC;QACzB,oBAAI,GAAG,GAAG,gBAAgB,oCAAoC,CAAC;QAC/D,sBAAM,GAAG,UAAU,CAAC,GAAG,CAAC;QAExB,0BAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;YACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,4BAA4B;SAC/D,CAAC,CAAC;QAGU,0BAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACrC,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAML,CAAC,EApBgB,eAAe,GAAf,oBAAe,KAAf,oBAAe,QAoB/B;IAED,IAAiB,gBAAgB,CAmBhC;IAnBD,WAAiB,gBAAgB;QAClB,qBAAI,GAAG,kBAAkB,CAAC;QAC1B,qBAAI,GAAG,GAAG,gBAAgB,qCAAqC,CAAC;QAChE,uBAAM,GAAG,UAAU,CAAC,GAAG,CAAC;QAExB,2BAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;QAGU,2BAAU,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,gBAAgB,GAAhB,qBAAgB,KAAhB,qBAAgB,QAmBhC;IAED,IAAiB,sBAAsB,CA0BtC;IA1BD,WAAiB,sBAAsB;QACxB,2BAAI,GAAG,wBAAwB,CAAC;QAChC,2BAAI,GAAG,GAAG,gBAAgB,2CAA2C,CAAC;QACtE,6BAAM,GAAG,UAAU,CAAC,IAAI,CAAC;QAEzB,iCAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,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,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAC9B,gBAAgB,EAAE,sBAAsB,CAAC,QAAQ,EAAE;gBACnD,WAAW,EAAE,UAAU;aACxB,CAAC,CACH;SACF,CAAC,CAAC;QAGU,iCAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,cAAc;YAC9B,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAIL,CAAC,EA1BgB,sBAAsB,GAAtB,2BAAsB,KAAtB,2BAAsB,QA0BtC;IAED,IAAiB,+BAA+B,CA8B/C;IA9BD,WAAiB,+BAA+B;QACjC,oCAAI,GAAG,iCAAiC,CAAC;QACzC,oCAAI,GAAG,GAAG,gBAAgB,iDAAiD,CAAC;QAC5E,sCAAM,GAAG,UAAU,CAAC,IAAI,CAAC;QAEzB,0CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;YACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;YACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACzC,CAAC,CAAC;QAGU,0CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,cAAc;YAC9B,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAcL,CAAC,EA9BgB,+BAA+B,GAA/B,oCAA+B,KAA/B,oCAA+B,QA8B/C;IAED,IAAiB,6BAA6B,CA0B7C;IA1BD,WAAiB,6BAA6B;QAC/B,kCAAI,GAAG,+BAA+B,CAAC;QACvC,kCAAI,GAAG,GAAG,gBAAgB,mDAAmD,CAAC;QAC9E,oCAAM,GAAG,UAAU,CAAC,GAAG,CAAC;QAExB,wCAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;gBACnB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;gBAC9C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;gBAC/C,8BAA8B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;gBACjE,8BAA8B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,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 +1,4 @@
|
|
|
1
|
-
import { APIs } from "
|
|
1
|
+
import { APIs } from "./APIs";
|
|
2
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>>;
|
package/dist/apis/createEvent.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { APIs } from "
|
|
2
|
-
import { getPath } from "../utils/getPath";
|
|
1
|
+
import { APIs } from "./APIs";
|
|
3
2
|
var API = APIs.bluxUsersCollectEvents;
|
|
3
|
+
import { getPath } from "../utils/getPath";
|
|
4
4
|
export const collectEvent = (instance, pathParams, body, headers) => {
|
|
5
5
|
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEvent.js","sourceRoot":"/","sources":["apis/createEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
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 +1,4 @@
|
|
|
1
|
-
import { APIs } from "@blux.ai/common";
|
|
2
1
|
import type { AxiosInstance } from "axios";
|
|
2
|
+
import { APIs } from "./APIs";
|
|
3
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<
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { APIs } from "
|
|
2
|
-
var API = APIs.bluxUsersGetItemRecommendations;
|
|
1
|
+
import { APIs } from "./APIs";
|
|
3
2
|
import { getPath } from "../utils/getPath";
|
|
3
|
+
var API = APIs.bluxUsersGetItemRecommendations;
|
|
4
4
|
export const getItemRecommendation = (instance, pathParams, body, headers) => {
|
|
5
5
|
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getItemRecommendation.js","sourceRoot":"/","sources":["apis/getItemRecommendation.ts"],"names":[],"mappings":"
|
|
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 +1,4 @@
|
|
|
1
|
-
import { APIs } from "@blux.ai/common";
|
|
2
1
|
import type { AxiosInstance } from "axios";
|
|
2
|
+
import { APIs } from "./APIs";
|
|
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>>;
|
package/dist/apis/initialize.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { APIs } from "@blux.ai/common";
|
|
2
1
|
import { getPath } from "../utils/getPath";
|
|
2
|
+
import { APIs } from "./APIs";
|
|
3
3
|
var API = APIs.bluxUsersInitialize;
|
|
4
4
|
export const initialize = (instance, pathParams, body, headers) => {
|
|
5
5
|
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.js","sourceRoot":"/","sources":["apis/initialize.ts"],"names":[],"mappings":"
|
|
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIs } from "@blux.ai/common";
|
|
2
1
|
import type { AxiosInstance } from "axios";
|
|
2
|
+
import { APIs } from "./APIs";
|
|
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>>;
|
package/dist/apis/signIn.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { APIs } from "
|
|
2
|
-
import { getPath } from "../utils/getPath";
|
|
1
|
+
import { APIs } from "./APIs";
|
|
3
2
|
var API = APIs.bluxUsersSignIn;
|
|
3
|
+
import { getPath } from "../utils/getPath";
|
|
4
4
|
export const signIn = (instance, pathParams, body, headers) => {
|
|
5
5
|
return instance[API.method](getPath(API.path, pathParams), body, { headers });
|
|
6
6
|
};
|
package/dist/apis/signIn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signIn.js","sourceRoot":"/","sources":["apis/signIn.ts"],"names":[],"mappings":"
|
|
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIs } from "@blux.ai/common";
|
|
2
1
|
import type { AxiosInstance } from "axios";
|
|
2
|
+
import { APIs } from "./APIs";
|
|
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>>;
|
package/dist/apis/signOut.js
CHANGED
package/dist/apis/signOut.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signOut.js","sourceRoot":"/","sources":["apis/signOut.ts"],"names":[],"mappings":"
|
|
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"]}
|