@bzbs/react-api-client 0.0.18 → 0.0.20
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/index.d.mts +33 -1
- package/dist/index.d.ts +33 -1
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -684,6 +684,8 @@ interface Purchase {
|
|
|
684
684
|
RedeemDate?: number;
|
|
685
685
|
IsUsed?: boolean;
|
|
686
686
|
UsedDate?: number;
|
|
687
|
+
UseExpireDate?: number;
|
|
688
|
+
IsExpired?: boolean;
|
|
687
689
|
VoucherExpireDate?: number;
|
|
688
690
|
CurrentDate?: number;
|
|
689
691
|
ExpireIn?: number;
|
|
@@ -817,6 +819,13 @@ interface ValidateOtpResponse {
|
|
|
817
819
|
validatecode?: string;
|
|
818
820
|
}
|
|
819
821
|
|
|
822
|
+
interface CartAccessResponse {
|
|
823
|
+
success?: boolean;
|
|
824
|
+
data?: {
|
|
825
|
+
key?: string;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
|
|
820
829
|
declare class AuthenticateApi extends BaseService {
|
|
821
830
|
constructor(client: AxiosInstance, baseUrl: string);
|
|
822
831
|
/**
|
|
@@ -1297,6 +1306,29 @@ declare class CartApi extends BaseService {
|
|
|
1297
1306
|
* @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.
|
|
1298
1307
|
*/
|
|
1299
1308
|
cartCount(requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>>;
|
|
1309
|
+
/**
|
|
1310
|
+
* Retrieves the cart access.
|
|
1311
|
+
*
|
|
1312
|
+
* @param params - The parameters.
|
|
1313
|
+
* @param params.errorUrl - The error URL that the user is redirected to when an error occurs.
|
|
1314
|
+
* @param params.successUrl - The success URL that the user is redirected to when the operation is successful.
|
|
1315
|
+
* @param params.returnUrl - The return URL that the user is redirected to when press back button.
|
|
1316
|
+
* @param params.appId - The app ID.
|
|
1317
|
+
* @param params.appName - The app name.
|
|
1318
|
+
* @param params.options - Additional options for the request.
|
|
1319
|
+
* @param requestOptions - The options for the request.
|
|
1320
|
+
* @returns A promise that resolves to a ServiceResponse containing the CartAccessResponse.
|
|
1321
|
+
*/
|
|
1322
|
+
cartAccess(params: {
|
|
1323
|
+
errorUrl: string;
|
|
1324
|
+
successUrl: string;
|
|
1325
|
+
returnUrl: string;
|
|
1326
|
+
appId: string;
|
|
1327
|
+
appName: string;
|
|
1328
|
+
options?: {
|
|
1329
|
+
[key: string]: any;
|
|
1330
|
+
};
|
|
1331
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<CartAccessResponse>>;
|
|
1300
1332
|
}
|
|
1301
1333
|
|
|
1302
1334
|
declare class CategoryApi extends BaseService {
|
|
@@ -1890,4 +1922,4 @@ declare class BzbsService {
|
|
|
1890
1922
|
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string);
|
|
1891
1923
|
}
|
|
1892
1924
|
|
|
1893
|
-
export { type Badge, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, type CampaignDetail, type CartCountResponse, type Category, type ConfirmOtpResponse, type Consent, type CouponResponse, type CouponResponseData, type Dashboard, type Detail, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, type LineAuthResponse, type LoginResponse, type Mission, type Notification, type OtpResponse, type Picture, type Place, type PlaceService, type PointLog, type ProfileResponse, type Purchase, type RedeemResponse, type RegistrationResponse, type RequestOptions, type ResumeResponse, type ServiceResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version };
|
|
1925
|
+
export { type Badge, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, type CampaignDetail, type CartAccessResponse, type CartCountResponse, type Category, type ConfirmOtpResponse, type Consent, type CouponResponse, type CouponResponseData, type Dashboard, type Detail, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, type LineAuthResponse, type LoginResponse, type Mission, type Notification, type OtpResponse, type Picture, type Place, type PlaceService, type PointLog, type ProfileResponse, type Purchase, type RedeemResponse, type RegistrationResponse, type RequestOptions, type ResumeResponse, type ServiceResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version };
|
package/dist/index.d.ts
CHANGED
|
@@ -684,6 +684,8 @@ interface Purchase {
|
|
|
684
684
|
RedeemDate?: number;
|
|
685
685
|
IsUsed?: boolean;
|
|
686
686
|
UsedDate?: number;
|
|
687
|
+
UseExpireDate?: number;
|
|
688
|
+
IsExpired?: boolean;
|
|
687
689
|
VoucherExpireDate?: number;
|
|
688
690
|
CurrentDate?: number;
|
|
689
691
|
ExpireIn?: number;
|
|
@@ -817,6 +819,13 @@ interface ValidateOtpResponse {
|
|
|
817
819
|
validatecode?: string;
|
|
818
820
|
}
|
|
819
821
|
|
|
822
|
+
interface CartAccessResponse {
|
|
823
|
+
success?: boolean;
|
|
824
|
+
data?: {
|
|
825
|
+
key?: string;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
|
|
820
829
|
declare class AuthenticateApi extends BaseService {
|
|
821
830
|
constructor(client: AxiosInstance, baseUrl: string);
|
|
822
831
|
/**
|
|
@@ -1297,6 +1306,29 @@ declare class CartApi extends BaseService {
|
|
|
1297
1306
|
* @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.
|
|
1298
1307
|
*/
|
|
1299
1308
|
cartCount(requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>>;
|
|
1309
|
+
/**
|
|
1310
|
+
* Retrieves the cart access.
|
|
1311
|
+
*
|
|
1312
|
+
* @param params - The parameters.
|
|
1313
|
+
* @param params.errorUrl - The error URL that the user is redirected to when an error occurs.
|
|
1314
|
+
* @param params.successUrl - The success URL that the user is redirected to when the operation is successful.
|
|
1315
|
+
* @param params.returnUrl - The return URL that the user is redirected to when press back button.
|
|
1316
|
+
* @param params.appId - The app ID.
|
|
1317
|
+
* @param params.appName - The app name.
|
|
1318
|
+
* @param params.options - Additional options for the request.
|
|
1319
|
+
* @param requestOptions - The options for the request.
|
|
1320
|
+
* @returns A promise that resolves to a ServiceResponse containing the CartAccessResponse.
|
|
1321
|
+
*/
|
|
1322
|
+
cartAccess(params: {
|
|
1323
|
+
errorUrl: string;
|
|
1324
|
+
successUrl: string;
|
|
1325
|
+
returnUrl: string;
|
|
1326
|
+
appId: string;
|
|
1327
|
+
appName: string;
|
|
1328
|
+
options?: {
|
|
1329
|
+
[key: string]: any;
|
|
1330
|
+
};
|
|
1331
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<CartAccessResponse>>;
|
|
1300
1332
|
}
|
|
1301
1333
|
|
|
1302
1334
|
declare class CategoryApi extends BaseService {
|
|
@@ -1890,4 +1922,4 @@ declare class BzbsService {
|
|
|
1890
1922
|
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string);
|
|
1891
1923
|
}
|
|
1892
1924
|
|
|
1893
|
-
export { type Badge, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, type CampaignDetail, type CartCountResponse, type Category, type ConfirmOtpResponse, type Consent, type CouponResponse, type CouponResponseData, type Dashboard, type Detail, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, type LineAuthResponse, type LoginResponse, type Mission, type Notification, type OtpResponse, type Picture, type Place, type PlaceService, type PointLog, type ProfileResponse, type Purchase, type RedeemResponse, type RegistrationResponse, type RequestOptions, type ResumeResponse, type ServiceResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version };
|
|
1925
|
+
export { type Badge, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, type CampaignDetail, type CartAccessResponse, type CartCountResponse, type Category, type ConfirmOtpResponse, type Consent, type CouponResponse, type CouponResponseData, type Dashboard, type Detail, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, type LineAuthResponse, type LoginResponse, type Mission, type Notification, type OtpResponse, type Picture, type Place, type PlaceService, type PointLog, type ProfileResponse, type Purchase, type RedeemResponse, type RegistrationResponse, type RequestOptions, type ResumeResponse, type ServiceResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version };
|
package/dist/index.js
CHANGED
|
@@ -891,6 +891,36 @@ var CartApi = class extends BaseService {
|
|
|
891
891
|
return yield this.get(this.baseUrl + "cart/count", {}, requestOptions);
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* Retrieves the cart access.
|
|
896
|
+
*
|
|
897
|
+
* @param params - The parameters.
|
|
898
|
+
* @param params.errorUrl - The error URL that the user is redirected to when an error occurs.
|
|
899
|
+
* @param params.successUrl - The success URL that the user is redirected to when the operation is successful.
|
|
900
|
+
* @param params.returnUrl - The return URL that the user is redirected to when press back button.
|
|
901
|
+
* @param params.appId - The app ID.
|
|
902
|
+
* @param params.appName - The app name.
|
|
903
|
+
* @param params.options - Additional options for the request.
|
|
904
|
+
* @param requestOptions - The options for the request.
|
|
905
|
+
* @returns A promise that resolves to a ServiceResponse containing the CartAccessResponse.
|
|
906
|
+
*/
|
|
907
|
+
cartAccess(params, requestOptions) {
|
|
908
|
+
return __async(this, null, function* () {
|
|
909
|
+
return yield this.post(
|
|
910
|
+
"setting",
|
|
911
|
+
{
|
|
912
|
+
data: JSON.stringify(params)
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
headers: __spreadValues({
|
|
916
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
917
|
+
}, requestOptions == null ? void 0 : requestOptions.headers),
|
|
918
|
+
data: requestOptions == null ? void 0 : requestOptions.data,
|
|
919
|
+
params: requestOptions == null ? void 0 : requestOptions.params
|
|
920
|
+
}
|
|
921
|
+
);
|
|
922
|
+
});
|
|
923
|
+
}
|
|
894
924
|
};
|
|
895
925
|
|
|
896
926
|
// src/api/category/category-api.ts
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/api/base-service.ts","../src/api/auth/auth-api.ts","../src/api/badge/badge-api.ts","../src/api/campaign/campaign-api.ts","../src/api/cart/cart-api.ts","../src/api/category/category-api.ts","../src/api/consent/consent-api.ts","../src/api/coupon/coupon-api.ts","../src/api/dashboard/dashboard-api.ts","../src/api/history/history-api.ts","../src/api/line/line-api.ts","../src/api/notification/notification-api.ts","../src/api/place/place-api.ts","../src/api/point-log/point-log-api.ts","../src/api/profile/profile-api.ts","../src/api/registration/registration-api.ts","../src/api/bzbs-service.ts"],"sourcesContent":["export * from './api';\nexport * from './models';","import { AxiosInstance, AxiosResponse } from 'axios';\nimport { BzbsErrorResponse } from '../models/bzbs-error-response';\n\nexport type ServiceResponse<T> = {\n model: T | undefined;\n response: AxiosResponse | undefined;\n error: any | undefined | BzbsErrorResponse;\n};\n\nexport type RequestOptions = {\n headers?: { [key: string]: string };\n params?: { [key: string]: string };\n data?: { [key: string]: string } | any;\n baseUrl?: string;\n};\n\nexport class BaseService {\n client: AxiosInstance;\n baseUrl: string;\n\n constructor(client: AxiosInstance, baseUrl: string) {\n this.client = client;\n this.baseUrl = baseUrl;\n if (!this.baseUrl) {\n throw 'Please check base_URL';\n }\n if (!this.client) {\n throw 'Please check client';\n }\n }\n\n async get<T>(path: string, params?: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.get<T>(this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path), {\n params: {\n ...(params ? params : {}),\n ...(requestOptions?.params ? requestOptions.params : {}),\n },\n headers: requestOptions?.headers,\n data: requestOptions?.data,\n });\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async post<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.post<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async put<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.put<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async delete<T>(path: string, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.delete<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async patch<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.patch<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n joinUrl(baseUrl: string, path: string): string {\n baseUrl = baseUrl.endsWith('/') ? baseUrl : baseUrl + '/';\n const url = new URL(path, baseUrl);\n return url.toString();\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { LoginResponse } from '../../models/login-model';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { ForgetPasswordResponse } from '../../models/forget-password-response';\nimport { ConfirmOtpResponse, StatusResponse } from '../../models';\nimport { OtpResponse } from '../../models/otp-response';\nimport { ValidateOtpResponse } from '../../models/validate-otp-response';\nimport { ResumeResponse } from '../../models/resume-response';\nimport { Version } from '../../models/version';\n\nexport class AuthenticateApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Performs a device login using the provided device uuid.\n *\n * @param params - The parameters.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async deviceLogin(\n params: {\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/device_login',\n {\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Facebook login using the provided Facebook access token.\n *\n * @param params - The parameters.\n * @param accessToken - The access token obtained from Facebook.\n * @param appId - Your application id.\n * @param uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async facebookLogin(\n params: {\n accessToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/login',\n {\n access_token: params.accessToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Google login using the provided id token, app id, and uuid.\n *\n * @param params - The parameters.\n * @param params.idToken - The Google id token.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async googleLogin(\n params: {\n idToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/google_login',\n {\n id_token: params.idToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Line login using the provided id token, Line access token and authorization code.\n *\n * @param params - The parameters.\n * @param params.idToken - The Line id token.\n * @param params.lineAccessToken - The Line access token.\n * @param params.authorizationCode - The Line authorization code.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async lineLogin(\n params: {\n idToken: string;\n lineAccessToken: string;\n authorizationCode: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/line_login',\n {\n id_token: params.idToken,\n line_access_token: params.lineAccessToken,\n authorization_code: params.authorizationCode,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs an Apple login using the provided id token and Apple refresh token.\n *\n * @param params - The parameters.\n * @param params.idToken - The Apple id token.\n * @param params.refreshToken - The Apple refresh token.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async appleLogin(\n params: {\n idToken: string;\n refreshToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/apple_login',\n {\n id_token: params.idToken,\n refresh_token: params.refreshToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a username and password login using the provided username and password.\n *\n * @param params - The parameters.\n * @param params.username - The username of the user.\n * @param params.password - The password of the user.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.options - (Optional) Additional params for the request.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async usernamePasswordLogin(\n params: {\n username: string;\n password: string;\n uuid: string;\n appId: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/bzbs_login',\n {\n username: params.username,\n password: params.password,\n uuid: params.uuid,\n app_id: params.appId,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a logout for the user.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the logout response.\n */\n public async logout(\n params: {\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post<any>(\n 'auth/logout',\n {\n uuid: params.uuid,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Sends a forget password request to the user.\n *\n * @param params - The parameters.\n * @param params.contact - The contact information for the user (email or contact number).\n * @param params.type - The type of contact information.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the forget password response.\n */\n public async forgetPassword(\n params: {\n contact: string;\n type: 'email' | 'contact_number';\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ForgetPasswordResponse>> {\n return await this.get<ForgetPasswordResponse>(\n `profile/${params.contact}/forget_password`,\n {\n type: params.type,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Resets the password for a user.\n *\n * @param params - The parameters.\n * @param params.contact - The contact information for the user (email or contact number).\n * @param params.refCode - The reference code for password reset.\n * @param params.newPassword - The new password to set.\n * @param params.otp - (Optional) The one-time password.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the status response.\n */\n public async resetPassword(\n params: {\n contact: string;\n refCode: string;\n newPassword: string;\n otp?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<StatusResponse>> {\n return await this.post<StatusResponse>(\n `profile/${params.contact}/forget_password`,\n {\n refcode: params.refCode,\n change: params.newPassword,\n otp: params.otp,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Sends an OTP (One-Time Password) to the user for authentication.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.contactNumber - The contact number for the user.\n * @param params.channel - (Optional) The channel to use for OTP delivery.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the OTP response.\n */\n public async getOtp(\n params: {\n uuid: string;\n appId: string;\n contactNumber: string;\n channel?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<OtpResponse>> {\n return await this.get<OtpResponse>(\n 'auth/otp',\n {\n uuid: params.uuid,\n app_id: params.appId,\n contact_number: params.contactNumber,\n channel: params.channel,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Confirm the OTP (One-Time Password) for authentication.\n *\n * @param params - The parameters.\n * @param params.otp - The OTP to confirm.\n * @param params.refCode - The reference code for the OTP.\n * @param params.contactNumber - The contact number for the user.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the confirm OTP response.\n */\n public async confirmOtp(\n params: {\n otp: string;\n refCode: string;\n contactNumber: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ConfirmOtpResponse>> {\n return await this.post<ConfirmOtpResponse>(\n 'auth/bzbs_authen',\n {\n otp: params.otp,\n refcode: params.refCode,\n contact_number: params.contactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Validate the OTP (One-Time Password) for authentication.\n *\n * @param params - The parameters.\n * @param params.appId - Your application id.\n * @param params.otp - The OTP to validate.\n * @param params.refCode - The reference code for the OTP.\n * @param params.contactNumber - The contact number for the user.\n * @param params.use - Whether to use the OTP after validation.\n * @param params.channel - (Optional) The channel to use for OTP delivery.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the validate OTP response.\n */\n public async validateOtp(\n params: {\n appId: string;\n otp: string;\n refCode: string;\n contactNumber: string;\n use: boolean;\n channel?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ValidateOtpResponse>> {\n return await this.post<ValidateOtpResponse>(\n 'auth/otp',\n {\n app_id: params.appId,\n otp: params.otp,\n refcode: params.refCode,\n contact_number: params.contactNumber,\n use: params.use,\n channel: params.channel,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieve a new token and update the current device token.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.clientVersion - The version of the client.\n * @param params.deviceToken - The token of the device.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the resume response.\n */\n public async resume(\n params: {\n uuid: string;\n appId: string;\n clientVersion?: string;\n deviceToken?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ResumeResponse>> {\n return await this.post<ResumeResponse>(\n 'auth/device_resume',\n {\n uuid: params.uuid,\n app_id: params.appId,\n client_version: params.clientVersion,\n device_token: params.deviceToken,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Update the device token for push notification.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.clientVersion - The version of the client.\n * @param params.deviceToken - The token of the device.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the resume response.\n */\n public async updateDevice(\n params: {\n uuid: string;\n appId: string;\n clientVersion?: string;\n deviceToken?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ResumeResponse>> {\n return await this.post<ResumeResponse>(\n 'auth/device_resume',\n {\n uuid: params.uuid,\n app_id: params.appId,\n client_version: params.clientVersion,\n device_token: params.deviceToken,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the version information for the current app version.\n * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the version information.\n */\n public async version(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<Version>> {\n return await this.get<Version>('auth/version', { client_version: clientVersion }, requestOptions);\n }\n\n /**\n * Retrieves the raw version information for the current app version.\n * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the raw version information.\n */\n public async versionRaw(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.get<any>('auth/version', { client_version: clientVersion }, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Badge } from '../../models/badge';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class BadgeApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves user badges.\n *\n * @param params - The parameters.\n * @param params.badgeId - The ID of the badge to retrieve.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Badge objects.\n */\n public async getBadges(\n params: {\n badgeId?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Badge[]>> {\n return await this.get<Badge[]>(\n 'profile/me/badges',\n {\n badge_id: params.badgeId,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Campaign } from '../../models/campaign-model';\nimport { CampaignDetail } from '../../models/campaign-detail-model';\nimport { FavoriteResponse } from '../../models/favorite-response-model';\nimport { RedeemResponse } from '../../models/redeem-response-model';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CampaignApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves a list of campaigns based on the provided parameters.\n *\n * @param params - The parameters for the campaign list.\n * @param params.config - The configuration for the campaign (list name).\n * @param params.cat - The category for the campaign.\n * @param params.byConfig - A boolean indicating whether to filter by configuration.\n * @param params.skip - The number of campaigns to skip.\n * @param params.top - The number of campaigns to retrieve.\n * @param params.deviceLocale - The device locale for the campaigns.\n * @param params.locale - The locale for the campaigns.\n * @param params.keyword - The keyword for the campaigns.\n * @param params.startDate - The start date for the campaigns.\n * @param params.sponsorId - The sponsor ID for the campaigns.\n * @param params.maxPoints - The maximum points for the campaigns.\n * @param params.minPoints - The minimum points for the campaigns.\n * @param params.sortBy - The sort order for the campaigns.\n * @param params.center - The coordinates for the center of the campaigns.\n * @param params.hashTags - The hash tags for the campaigns.\n * @param params.locationAgencyId - The location agency ID for the campaigns.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.\n */\n public async campaign(\n params: {\n config: string;\n cat?: string;\n byConfig?: boolean;\n skip?: number;\n top?: number;\n deviceLocale?: number;\n locale?: number;\n keyword?: string;\n startDate?: string;\n sponsorId?: string;\n maxPoints?: string;\n minPoints?: string;\n sortBy?: string;\n center?: string;\n hashTags?: string;\n locationAgencyId?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Campaign[]>> {\n return await this.get<Campaign[]>(\n 'campaign',\n {\n config: params.config,\n cat: params.cat,\n byConfig: params.byConfig,\n skip: params.skip,\n top: params.top,\n device_locale: params.deviceLocale,\n locale: params.locale,\n q: params.keyword,\n startdate: params.startDate,\n sponsorId: params.sponsorId,\n maxpoints: params.maxPoints,\n minpoints: params.minPoints,\n sortBy: params.sortBy,\n center: params.center,\n tags: params.hashTags,\n locationAgencyId: params.locationAgencyId,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves a list of user's favorite campaigns.\n *\n * @param params - The parameters.\n * @param params.skip - The number of campaigns to skip.\n * @param params.top - The number of campaigns to retrieve.\n * @param params.locale - The locale for the campaigns.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - The options for the API request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.\n */\n public async favoriteCampaigns(\n params: {\n skip?: number;\n top?: number;\n locale?: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Campaign[]>> {\n return await this.get(\n 'profile/me/favourite_campaign',\n {\n params: {\n skip: params.skip,\n top: params.top,\n locale: params.locale,\n ...params.options,\n },\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves the details of a campaign.\n *\n * @param param - The parameters.\n * @param param.id - The ID of the campaign.\n * @param param.deviceLocale - The device locale (optional).\n * @param param.options - Additional options for the request (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a service response containing the campaign details.\n */\n public async campaignDetails(\n param: {\n id: string;\n deviceLocale?: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CampaignDetail>> {\n return await this?.get(\n `campaign/${param.id}`,\n {\n params: {\n device_locale: param.deviceLocale,\n ...param.options,\n },\n },\n requestOptions\n );\n }\n\n /**\n * Adds a campaign to the user's favorites.\n * @param id - The ID of the campaign to add to favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the FavoriteResponse.\n */\n public async addToFavorite(id: string, requestOptions?: RequestOptions): Promise<ServiceResponse<FavoriteResponse>> {\n return await this.post(`campaign/${id}/favourite`, {}, requestOptions);\n }\n\n /**\n * Removes a campaign from user's favorites.\n * @param id - The ID of the campaign to remove from favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the FavoriteResponse.\n */\n public async removeFromFavorite(\n id: string,\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<FavoriteResponse>> {\n return await this.delete(`campaign/${id}/favourite`, requestOptions);\n }\n\n /**\n * Redeems a campaign.\n *\n * @param params - The parameters for redeeming the campaign.\n * @param params.id - The ID of the campaign to redeem.\n * @param params.addressKey - The address key of a user's address.\n * @param params.contactNumber - The contact number of the user.\n * @param params.options - Additional options for the redemption.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing the redeem response.\n */\n public async redeem(\n params: {\n id: string;\n addressKey?: string;\n contactNumber?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RedeemResponse>> {\n return await this.post(\n `campaign/${params.id}/redeem`,\n {\n address_key: params.addressKey,\n contact_number: params.contactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Redeems a campaign in bulk.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the campaign to redeem.\n * @param params.quantity - The quantity to redeem.\n * @param params.options - Additional options for the redemption.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing the redeem response.\n */\n public async bulkRedeem(\n params: {\n id: string;\n quantity: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RedeemResponse>> {\n return await this.post(\n `campaign/${params.id}/bulkredeem`,\n {\n quantity: params.quantity,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { CartCountResponse } from '../../models/cart-count-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CartApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Adds an item to the cart.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the item to add to the cart.\n * @param params.mode - The mode off adding.\n * @param params.qty - The quantity of the item.\n * @param params.sideCampaignJson - The side campaign JSON.\n * @param params.options - Additional options for adding the item to the cart.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the cart count response.\n */\n public async addCart(\n params: {\n id: string;\n mode?: string;\n qty?: number;\n sideCampaignJson?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CartCountResponse>> {\n return await this.post(\n `cart/${params.id}/add`,\n {\n mode: params.mode,\n qty: params.qty,\n sideCampaignJson: params.sideCampaignJson,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the count of items in the cart.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.\n */\n public async cartCount(requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>> {\n return await this.get(this.baseUrl + 'cart/count', {}, requestOptions);\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { Category } from '../../models/category';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CategoryApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the campaign categories.\n *\n * @param params - The parameters.\n * @param params.config - The configuration string.\n * @param params.byConfig - Optional. Specifies whether to retrieve categories by configuration.\n * @param params.options - Optional. Additional options for retrieving the categories.\n * @param requestOptions - Optional. The request options.\n * @returns A promise that resolves to a service response containing an array of categories.\n */\n public async categories(\n params: {\n config: string;\n byConfig?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Category[]>> {\n return await this.get(\n 'campaigncat/menu',\n {\n byConfig: params.byConfig,\n config: params.config,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Consent } from '../../models/consent';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class ConsentApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the user's consent information.\n *\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the consent information.\n */\n public async consent(requestOptions?: RequestOptions): Promise<ServiceResponse<Consent>> {\n return await this.get<Consent>('consent', requestOptions);\n }\n\n /**\n * Retrieves the user's consent information.\n *\n * @param params - The parameters for the consent request.\n * @param params.termsAndConditions - The terms and conditions consent version.\n * @param params.dataPrivacy - The data privacy consent version.\n * @param params.marketingOption - The marketing option consent version.\n * @param params.email - The email consent (0 for false, 1 for true).\n * @param params.sms - The SMS consent (0 for false, 1 for true).\n * @param params.notification - The notification consent (0 for false, 1 for true).\n * @param params.line - The LINE consent (0 for false, 1 for true).\n * @param params.analyticsBuzzebeesCookies - The analytics Buzzebees cookies consent (0 for false, 1 for true).\n * @param params.analyticsFirebaseCookies - The analytics Firebase cookies consent (0 for false, 1 for true).\n * @param params.analyticsGoogleCookies - The analytics Google cookies consent (0 for false, 1 for true).\n * @param params.analyticsMetaCookies - The analytics Meta cookies consent (0 for false, 1 for true).\n * @param params.analyticsOtherCookies - The analytics other cookies consent (0 for false, 1 for true).\n * @param params.functionalCookies - The functional cookies consent (0 for false, 1 for true).\n * @param params.marketingCookies - The marketing cookies consent (0 for false, 1 for true).\n * @param params.necessaryCookies - The necessary cookies consent (0 for false, 1 for true).\n * @param params.options - Additional params.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the consent information.\n */\n public async updateConsent(\n params: {\n termsAndConditions?: string;\n dataPrivacy?: string;\n marketingOption?: string;\n email?: string;\n sms?: string;\n notification?: string;\n line?: string;\n analyticsBuzzebeesCookies?: string;\n analyticsFirebaseCookies?: string;\n analyticsGoogleCookies?: string;\n analyticsMetaCookies?: string;\n analyticsOtherCookies?: string;\n functionalCookies?: string;\n marketingCookies?: string;\n necessaryCookies?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Consent>> {\n return await this.post(\n 'consent',\n {\n termandcondition: params.termsAndConditions,\n dataprivacy: params.dataPrivacy,\n marketingoption: params.marketingOption,\n email: params.email,\n sms: params.sms,\n notification: params.notification,\n line: params.line,\n analyticsBuzzebeesCookies: params.analyticsBuzzebeesCookies,\n analyticsFirebaseCookies: params.analyticsFirebaseCookies,\n analyticsGoogleCookies: params.analyticsGoogleCookies,\n analyticsMetaCookies: params.analyticsMetaCookies,\n analyticsOtherCookies: params.analyticsOtherCookies,\n functionalCookies: params.functionalCookies,\n marketingCookies: params.marketingCookies,\n necessaryCookies: params.necessaryCookies,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Unconsents the user.\n *\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the result of the unconsent operation.\n */\n public async unconsent(requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post<any>('consent/unconsent', {}, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { CouponResponse } from '../../models/coupon-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CouponApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Processes coupon codes.\n *\n * @param params - The parameters.\n * @param params.codes - The coupon codes to process.\n * @param params.options - Additional options for processing coupon codes.\n * @param requestOptions - The options for making the API request.\n * @returns A promise that resolves to a service response containing the coupon response.\n */\n public async processCodes(\n params: {\n codes: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CouponResponse>> {\n return await this.post(\n 'coupon/process',\n {\n 'codes[]': params.codes,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Dashboard } from '../../models/dashboard';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class DashboardApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the main dashboard data.\n *\n * @param params - The parameters.\n * @param params.appName - The name of the application.\n * @param params.locale - The locale number.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a service response containing an array of Dashboard objects.\n */\n public async mainDashboard(\n params: {\n appName: string;\n locale: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Dashboard[]>> {\n return await this.get(\n 'dashboard/main',\n {\n app_name: params.appName,\n locale: params.locale,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves a sub-dashboard data.\n *\n * @param params - The parameters.\n * @param params.dashboardName - The name of the sub-dashboard to retrieve.\n * @param params.locale - The locale of the sub-dashboard.\n * @param params.options - Additional options for retrieving the sub-dashboard.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing an array of dashboards.\n */\n public async subDashboard(\n params: {\n dashboardName: string;\n locale: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Dashboard[]>> {\n return await this.get(\n `dashboard/${params.dashboardName}`,\n {\n locale: params.locale,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Purchase } from '../../models/purchase';\nimport { UseCampaignResponse } from '../../models/use-campaign-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class HistoryApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the redeem histories based on the specified parameters.\n *\n * @param params - The parameters for retrieving redeem histories.\n * @param params.byConfig - Indicates whether to retrieve redeem histories by config.\n * @param params.config - The config for retrieving redeem histories.\n * @param params.skip - The number of records to skip.\n * @param params.top - The number of records to retrieve.\n * @param params.locale - The locale for retrieving redeem histories (optional).\n * @param params.startDate - The start date for retrieving redeem histories (optional).\n * @param params.endDate - The end date for retrieving redeem histories (optional).\n * @param params.options - Additional options for retrieving redeem histories (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a service response containing an array of purchase objects.\n */\n public async redeemHistories(\n params: {\n byConfig: boolean;\n config: string;\n skip: number;\n top: number;\n locale?: number;\n startDate?: string;\n endDate?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Purchase[]>> {\n return await this.get(\n 'redeem',\n {\n byConfig: params.byConfig,\n config: params.config,\n skip: params.skip,\n top: params.top,\n locale: params.locale,\n startdate: params.startDate,\n enddate: params.endDate,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Marks the specified redeem key as used.\n *\n * @param params - The parameters.\n * @param params.redeemKey - The redeem key for the campaign.\n * @param params.options - Additional options for using the campaign.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing the result of the redemption.\n */\n public async use(\n params: {\n redeemKey: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<UseCampaignResponse>> {\n return await this.post(\n `redeem/${params.redeemKey}/use`,\n {\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { LineAuthResponse } from '../../models/line-auth-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class LineApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Authenticates with the LINE API.\n *\n * @param params - The authentication parameters.\n * @param params.grantType - The grant type.\n * @param params.code - The code.\n * @param params.clientId - The client ID.\n * @param params.clientSecret - The client secret.\n * @param params.redirectUrl - The redirect URL.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the LineAuthResponse.\n */\n public async lineAuth(\n params: {\n grantType: string;\n code: string;\n clientId: string;\n clientSecret: string;\n redirectUrl: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LineAuthResponse>> {\n return await this.post(\n 'oauth2/v2.1/token',\n {\n grant_type: params.grantType,\n code: params.code,\n client_id: params.clientId,\n client_secret: params.clientSecret,\n redirect_uri: params.redirectUrl,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { Notification } from '../../models';\n\nexport class NotificationApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves notifications.\n *\n * @param params - The parameters for retrieving notifications.\n * @param params.mode - The mode for retrieving notifications (new or all)\n * @param params.sortBy - The sort order for the notifications (createdate_desc or createdate_asc)\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing an array of notifications.\n */\n public async notifications(\n params: {\n mode: string | 'new' | 'all';\n sortBy: string | 'createdate_desc' | 'createdate_asc';\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Notification[]>> {\n return await this.get(\n 'noti',\n {\n mode: params.mode,\n sortBy: params.sortBy,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Marks notifications as read.\n *\n * @param params - The parameters for marking notifications as read.\n * @param params.ids - The IDs(RowKeys) of the notifications to mark as read. (RowKey1, RowKey2)\n * @param params.options - Additional options for marking notifications as read.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing the result of marking notifications as read.\n */\n public async read(\n params: {\n ids: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'noti/read',\n {\n ids: params.ids,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { Place } from '../../models/place';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class PlaceApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves a list of places based on the provided parameters.\n *\n * @param params - The parameters for the place list request.\n * @param params.agencyId - The ID of the agency.\n * @param params.center - The center of the search area.\n * @param params.distance - The distance from the center.\n * @param params.top - The number of places to retrieve.\n * @param params.provinceCode - The province code (optional).\n * @param params.category - The category of the place (optional).\n * @param params.mode - The mode of the place (optional).\n * @param params.requiredCampaign - Indicates whether the place requires a campaign (optional).\n * @param params.keyword - The keyword to search for (optional).\n * @param params.isFavourite - Indicates whether the place is a favourite (optional).\n * @param params.options - Additional options for the request (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a ServiceResponse containing an array of Place objects.\n */\n public async placeList(\n params: {\n agencyId: string;\n center: string;\n distance: number;\n top: number;\n provinceCode?: string;\n category?: string;\n mode?: string;\n requiredCampaign?: boolean;\n keyword?: string;\n isFavourite?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Place[]>> {\n return await this.get(\n 'place',\n {\n agencyId: params.agencyId,\n center: params.center,\n distance: params.distance,\n top: params.top,\n province_code: params.provinceCode,\n category: params.category,\n mode: params.mode,\n require_campaign: params.requiredCampaign,\n q: params.keyword,\n isFavourite: params.isFavourite,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves information about a specific place.\n *\n * @param params - The parameters for the place request.\n * @param params.id - The ID of the place.\n * @param params.agencyId - The ID of the agency.\n * @param params.requiredCampaign - (Optional) Indicates if a campaign is required.\n * @param params.isFavourite - (Optional) Indicates if the place is a favorite.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOptions - (Optional) Additional options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing the place information.\n */\n public async place(\n params: {\n id: string;\n agencyId: string;\n requiredCampaign?: boolean;\n isFavourite?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Place>> {\n return await this.get(\n `place/${params.id}`,\n {\n agencyId: params.agencyId,\n require_campaign: params.requiredCampaign,\n isFavourite: params.isFavourite,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Adds a place to the user's favorites.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the place to be added to favorites.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the operation.\n */\n public async addToFavourite(params: { id: string }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post(`place/${params.id}/favourite`, {}, requestOptions);\n }\n\n /**\n * Removes a place from the user's favorites.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the place to be removed from favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the operation.\n */\n public async removeFromFavourite(\n params: {\n id: string;\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(`place/${params.id}/unfavourite`, {}, requestOptions);\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { PointLog } from '../../models/point-log';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class PointLogApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the point log.\n *\n * @param params - The parameters for retrieving the point log.\n * @param params.month - The month for which to retrieve the point log.\n * @param params.type - (Optional) The type of point log to retrieve. (earn/burn/etc)\n * @param params.lastRowKey - (Optional) The last row key for pagination.\n * @param params.top - (Optional) The maximum number of records to retrieve.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOption - (Optional) The request options.\n * @returns A promise that resolves to a service response containing an array of point logs.\n */\n public async getPointLog(\n params: {\n month: string;\n type?: string;\n lastRowKey?: string;\n top?: number;\n options?: { [key: string]: any };\n },\n requestOption?: RequestOptions\n ): Promise<ServiceResponse<PointLog[]>> {\n return await this.get(\n 'log/points',\n {\n month: params.month,\n type: params?.type,\n lastRowKey: params?.lastRowKey,\n top: params?.top,\n ...params.options,\n },\n requestOption\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { ConfirmOtpResponse, ExpiringPoints, ProfileResponse, StatusResponse, UpdatedPoints } from '../../models';\n\nexport class ProfileApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the profile information for the current user.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the profile information.\n */\n public async profile(requestOptions?: RequestOptions): Promise<ServiceResponse<ProfileResponse>> {\n return await this.get('profile/me', {}, requestOptions);\n }\n\n /**\n * Updates the user profile with the provided parameters.\n *\n * @param params - The parameters for updating the profile.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the updated profile.\n */\n public async updateProfile(\n params: {\n profileImage?: File;\n firstName?: string;\n lastName?: string;\n contactNumber?: string;\n email?: string;\n notification?: boolean;\n locale?: number;\n title?: string;\n gender?: string;\n birthDate?: number;\n address?: string;\n subdistrictCode?: number;\n subdistrictName?: string;\n districtCode?: number;\n districtName?: string;\n provinceCode?: number;\n provinceName?: string;\n countryCode?: string;\n countryName?: string;\n zipCode?: string;\n idCard?: string;\n passport?: string;\n maritalStatus?: string;\n village?: string;\n building?: string;\n number?: string;\n moo?: string;\n room?: string;\n floor?: string;\n soi?: string;\n city?: string;\n road?: string;\n landmark?: string;\n alternateContactNumber?: string;\n homeContactNumber?: string;\n nationality?: string;\n religion?: string;\n location?: string;\n latitude?: number;\n longitude?: number;\n income?: string;\n interests?: string;\n region?: string;\n phonepurchase?: number;\n highestEducation?: string;\n occupation?: string;\n remark?: string;\n displayName?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ProfileResponse>> {\n return await this.post(\n 'profile/me',\n {\n data: params.profileImage,\n firstname: params.firstName,\n lastname: params.lastName,\n contact_number: params.contactNumber,\n email: params.email,\n notification: params.notification,\n locale: params.locale,\n title: params.title,\n gender: params.gender,\n birthdate: params.birthDate,\n address: params.address,\n subdistrict_code: params.subdistrictCode,\n subdistrict_name: params.subdistrictName,\n district_code: params.districtCode,\n district_name: params.districtName,\n province_code: params.provinceCode,\n province_name: params.provinceName,\n country_code: params.countryCode,\n country_name: params.countryName,\n Zipcode: params.zipCode,\n idCard: params.idCard,\n passport: params.passport,\n maritalstatus: params.maritalStatus,\n village: params.village,\n building: params.building,\n number: params.number,\n moo: params.moo,\n room: params.room,\n floor: params.floor,\n soi: params.soi,\n city: params.city,\n road: params.road,\n landmark: params.landmark,\n alternate_contact_number: params.alternateContactNumber,\n home_contact_number: params.homeContactNumber,\n nationality: params.nationality,\n religion: params.religion,\n location: params.location,\n latitude: params.latitude,\n longitude: params.longitude,\n income: params.income,\n interests: params.interests,\n region: params.region,\n phonepurchase: params.phonepurchase,\n highesteducation: params.highestEducation,\n occupation: params.occupation,\n remark: params.remark,\n displayname: params.displayName,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...(requestOptions?.headers ? requestOptions.headers : {}),\n },\n params: requestOptions?.params,\n data: requestOptions?.data,\n }\n );\n }\n\n /**\n * Changes the user's password.\n *\n * @param params - The parameters.\n * @param params.current - The current password.\n * @param params.change - The new password.\n * @param params.options - Optional additional options.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the status response.\n */\n public async changePassword(\n params: {\n current: string;\n change: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<StatusResponse>> {\n return await this.post(\n 'profile/me/change_password',\n {\n current: params.current,\n change: params.change,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Updates the shipping information for the user.\n *\n * @param params - The parameters for updating the shipping information.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing the updated shipping information.\n */\n public async updateShipping(\n params: {\n shippingFirstName?: string;\n shippingLastName?: string;\n shippingProvinceCode?: string;\n shippingDistrictCode?: string;\n shippingSubDistrictCode?: string;\n shippingZipCode?: string;\n shippingAddress?: string;\n shippingProvinceName?: string;\n shippingDistrictName?: string;\n shippingSubFDistrictName?: string;\n shippingContactNumber?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'profile/me/shipping',\n {\n shippingfirstname: params.shippingFirstName,\n shippinglastname: params.shippingLastName,\n shipping_province_code: params.shippingProvinceCode,\n shipping_district_code: params.shippingDistrictCode,\n shipping_subdistrict_code: params.shippingSubDistrictCode,\n shipping_zipcode: params.shippingZipCode,\n shipping_address: params.shippingAddress,\n shipping_province_name: params.shippingProvinceName,\n shipping_district_name: params.shippingDistrictName,\n shipping_subdistrict_name: params.shippingSubFDistrictName,\n shipping_contact_number: params.shippingContactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Changes the contact number of the user.\n *\n * @param params - The parameters for changing the contact number.\n * @param params.contactNumber - The new contact number.\n * @param params.otp - The one-time password.\n * @param params.refCode - The reference code.\n * @param params.idCard - (Optional) The ID card for additional verification.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOptions - (Optional) The options for the request.\n * @returns A promise that resolves to the response of the request.\n */\n public async changeContactNumber(\n params: {\n contactNumber: string;\n otp: string;\n refCode: string;\n idCard?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ConfirmOtpResponse>> {\n return await this.post(\n 'auth/change_authen',\n {\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n idcard: params.idCard,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Changes the contact number for the current user.\n *\n * @param params - The parameters for changing the contact number.\n * @param params.contactNumber - The new contact number.\n * @param params.otp - The one-time password for verification.\n * @param params.refCode - The reference code for verification.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the result of the request.\n */\n public async changeContactNumberV2(\n params: {\n contactNumber: string;\n otp: string;\n refCode: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'profile/me/contact_number',\n {\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the updated points for the current user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the updated points.\n */\n public async points(requestOptions?: RequestOptions): Promise<ServiceResponse<UpdatedPoints>> {\n return await this.get('profile/me/updated_points', {}, requestOptions);\n }\n\n /**\n * Retrieves the expiring points for the current user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the expiring points.\n */\n public async expiringPoints(requestOptions?: RequestOptions): Promise<ServiceResponse<ExpiringPoints>> {\n return await this.get('profile/me/allexpiring_points', {}, requestOptions);\n }\n\n /**\n * Deactivates the user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the deactivation.\n */\n public async deactivate(requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post('profile/me/deactivate', {}, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { RegistrationResponse } from '../../models/registration-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class RegistrationApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Registers a user with the provided registration parameters.\n *\n * @param params - The registration parameters.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a service response containing the registration response.\n */\n public async register(\n params: {\n appId: string;\n uuid: string;\n macAddress: string;\n os: string;\n platform: string;\n clientVersion: string;\n deviceNotificationEnable: boolean;\n username: string;\n password: string;\n confirmPassword: string;\n firstName: string;\n lastName: string;\n contactNumber: string;\n otp: string;\n refCode: string;\n address?: string;\n gender?: string;\n birthdate?: number;\n email?: string;\n refUserCode?: string;\n info?: string;\n termAndConditionVersion?: string;\n dataPrivacyVersion?: string;\n marketingOptionsVersion?: string;\n emailMarketing?: string;\n smsMarketing?: string;\n notificationMarketing?: string;\n lineMarketing?: string;\n phoneMarketing?: string;\n options: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RegistrationResponse>> {\n return await this.post(\n 'auth/register',\n {\n app_id: params.appId,\n uuid: params.uuid,\n mac_address: params.macAddress,\n os: params.os,\n platform: params.platform,\n client_version: params.clientVersion,\n device_noti_enable: params.deviceNotificationEnable,\n username: params.username,\n password: params.password,\n confirmpassword: params.confirmPassword,\n firstname: params.firstName,\n lastname: params.lastName,\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n address: params.address,\n gender: params.gender,\n birthdate: params.birthdate,\n email: params.email,\n refusercode: params.refUserCode,\n info: params.info,\n termandcondition: params.termAndConditionVersion,\n dataprivacy: params.dataPrivacyVersion,\n marketingOption: params.marketingOptionsVersion,\n mktoption_email: params.emailMarketing,\n mktoption_sms: params.smsMarketing,\n mktoption_notification: params.notificationMarketing,\n mktoption_line: params.lineMarketing,\n mktoption_phone: params.phoneMarketing,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { AuthenticateApi } from './auth/auth-api';\nimport { BadgeApi } from './badge/badge-api';\nimport { CampaignApi } from './campaign/campaign-api';\nimport { CartApi } from './cart/cart-api';\nimport { CategoryApi } from './category/category-api';\nimport { ConsentApi } from './consent/consent-api';\nimport { CouponApi } from './coupon/coupon-api';\nimport { DashboardApi } from './dashboard/dashboard-api';\nimport { HistoryApi } from './history/history-api';\nimport { LineApi } from './line/line-api';\nimport { NotificationApi } from './notification/notification-api';\nimport { PlaceApi } from './place/place-api';\nimport { PointLogApi } from './point-log/point-log-api';\nimport { ProfileApi } from './profile/profile-api';\nimport { RegistrationApi } from './registration/registration-api';\n\nexport class BzbsService {\n client: AxiosInstance;\n baseUrl: string;\n baseLineUrl: string;\n\n authApi: AuthenticateApi;\n badgeApi: BadgeApi;\n campaignApi: CampaignApi;\n cartApi: CartApi;\n categoryApi: CategoryApi;\n consentApi: ConsentApi;\n couponApi: CouponApi;\n dashboardApi: DashboardApi;\n historyApi: HistoryApi;\n lineApi: LineApi;\n notificationApi: NotificationApi;\n placeApi: PlaceApi;\n pointLogApi: PointLogApi;\n profileApi: ProfileApi;\n registerApi: RegistrationApi;\n\n constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string) {\n this.client = client;\n this.baseUrl = baseUrl;\n this.baseLineUrl = baseLineUrl;\n\n this.authApi = new AuthenticateApi(this.client, this.baseUrl);\n this.badgeApi = new BadgeApi(this.client, this.baseUrl);\n this.campaignApi = new CampaignApi(this.client, this.baseUrl);\n this.cartApi = new CartApi(this.client, this.baseUrl);\n this.categoryApi = new CategoryApi(this.client, this.baseUrl);\n this.consentApi = new ConsentApi(this.client, this.baseUrl);\n this.couponApi = new CouponApi(this.client, this.baseUrl);\n this.dashboardApi = new DashboardApi(this.client, this.baseUrl);\n this.historyApi = new HistoryApi(this.client, this.baseUrl);\n this.lineApi = new LineApi(this.client, this.baseLineUrl ?? '');\n this.notificationApi = new NotificationApi(this.client, this.baseUrl);\n this.placeApi = new PlaceApi(this.client, this.baseUrl);\n this.pointLogApi = new PointLogApi(this.client, this.baseUrl);\n this.profileApi = new ProfileApi(this.client, this.baseUrl);\n this.registerApi = new R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YAAY,KAAK,QAAQ,KAAK,OAAO;AAC5D,SAAK,aAAa,IAAI,WAAW,KAAK,QAAQ,KAAK,OAAO;AAC1D,SAAK,cAAc,IAAI,gBAAgB,KAAK,QAAQ,KAAK,OAAO;AAAA,EAClE;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/api/base-service.ts","../src/api/auth/auth-api.ts","../src/api/badge/badge-api.ts","../src/api/campaign/campaign-api.ts","../src/api/cart/cart-api.ts","../src/api/category/category-api.ts","../src/api/consent/consent-api.ts","../src/api/coupon/coupon-api.ts","../src/api/dashboard/dashboard-api.ts","../src/api/history/history-api.ts","../src/api/line/line-api.ts","../src/api/notification/notification-api.ts","../src/api/place/place-api.ts","../src/api/point-log/point-log-api.ts","../src/api/profile/profile-api.ts","../src/api/registration/registration-api.ts","../src/api/bzbs-service.ts"],"sourcesContent":["export * from './api';\nexport * from './models';","import { AxiosInstance, AxiosResponse } from 'axios';\nimport { BzbsErrorResponse } from '../models/bzbs-error-response';\n\nexport type ServiceResponse<T> = {\n model: T | undefined;\n response: AxiosResponse | undefined;\n error: any | undefined | BzbsErrorResponse;\n};\n\nexport type RequestOptions = {\n headers?: { [key: string]: string };\n params?: { [key: string]: string };\n data?: { [key: string]: string } | any;\n baseUrl?: string;\n};\n\nexport class BaseService {\n client: AxiosInstance;\n baseUrl: string;\n\n constructor(client: AxiosInstance, baseUrl: string) {\n this.client = client;\n this.baseUrl = baseUrl;\n if (!this.baseUrl) {\n throw 'Please check base_URL';\n }\n if (!this.client) {\n throw 'Please check client';\n }\n }\n\n async get<T>(path: string, params?: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.get<T>(this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path), {\n params: {\n ...(params ? params : {}),\n ...(requestOptions?.params ? requestOptions.params : {}),\n },\n headers: requestOptions?.headers,\n data: requestOptions?.data,\n });\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async post<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.post<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async put<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.put<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async delete<T>(path: string, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.delete<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async patch<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.patch<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n joinUrl(baseUrl: string, path: string): string {\n baseUrl = baseUrl.endsWith('/') ? baseUrl : baseUrl + '/';\n const url = new URL(path, baseUrl);\n return url.toString();\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { LoginResponse } from '../../models/login-model';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { ForgetPasswordResponse } from '../../models/forget-password-response';\nimport { ConfirmOtpResponse, StatusResponse } from '../../models';\nimport { OtpResponse } from '../../models/otp-response';\nimport { ValidateOtpResponse } from '../../models/validate-otp-response';\nimport { ResumeResponse } from '../../models/resume-response';\nimport { Version } from '../../models/version';\n\nexport class AuthenticateApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Performs a device login using the provided device uuid.\n *\n * @param params - The parameters.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async deviceLogin(\n params: {\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/device_login',\n {\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Facebook login using the provided Facebook access token.\n *\n * @param params - The parameters.\n * @param accessToken - The access token obtained from Facebook.\n * @param appId - Your application id.\n * @param uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async facebookLogin(\n params: {\n accessToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/login',\n {\n access_token: params.accessToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Google login using the provided id token, app id, and uuid.\n *\n * @param params - The parameters.\n * @param params.idToken - The Google id token.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async googleLogin(\n params: {\n idToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/google_login',\n {\n id_token: params.idToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Line login using the provided id token, Line access token and authorization code.\n *\n * @param params - The parameters.\n * @param params.idToken - The Line id token.\n * @param params.lineAccessToken - The Line access token.\n * @param params.authorizationCode - The Line authorization code.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async lineLogin(\n params: {\n idToken: string;\n lineAccessToken: string;\n authorizationCode: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/line_login',\n {\n id_token: params.idToken,\n line_access_token: params.lineAccessToken,\n authorization_code: params.authorizationCode,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs an Apple login using the provided id token and Apple refresh token.\n *\n * @param params - The parameters.\n * @param params.idToken - The Apple id token.\n * @param params.refreshToken - The Apple refresh token.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async appleLogin(\n params: {\n idToken: string;\n refreshToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/apple_login',\n {\n id_token: params.idToken,\n refresh_token: params.refreshToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a username and password login using the provided username and password.\n *\n * @param params - The parameters.\n * @param params.username - The username of the user.\n * @param params.password - The password of the user.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.options - (Optional) Additional params for the request.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async usernamePasswordLogin(\n params: {\n username: string;\n password: string;\n uuid: string;\n appId: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/bzbs_login',\n {\n username: params.username,\n password: params.password,\n uuid: params.uuid,\n app_id: params.appId,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a logout for the user.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the logout response.\n */\n public async logout(\n params: {\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post<any>(\n 'auth/logout',\n {\n uuid: params.uuid,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Sends a forget password request to the user.\n *\n * @param params - The parameters.\n * @param params.contact - The contact information for the user (email or contact number).\n * @param params.type - The type of contact information.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the forget password response.\n */\n public async forgetPassword(\n params: {\n contact: string;\n type: 'email' | 'contact_number';\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ForgetPasswordResponse>> {\n return await this.get<ForgetPasswordResponse>(\n `profile/${params.contact}/forget_password`,\n {\n type: params.type,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Resets the password for a user.\n *\n * @param params - The parameters.\n * @param params.contact - The contact information for the user (email or contact number).\n * @param params.refCode - The reference code for password reset.\n * @param params.newPassword - The new password to set.\n * @param params.otp - (Optional) The one-time password.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the status response.\n */\n public async resetPassword(\n params: {\n contact: string;\n refCode: string;\n newPassword: string;\n otp?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<StatusResponse>> {\n return await this.post<StatusResponse>(\n `profile/${params.contact}/forget_password`,\n {\n refcode: params.refCode,\n change: params.newPassword,\n otp: params.otp,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Sends an OTP (One-Time Password) to the user for authentication.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.contactNumber - The contact number for the user.\n * @param params.channel - (Optional) The channel to use for OTP delivery.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the OTP response.\n */\n public async getOtp(\n params: {\n uuid: string;\n appId: string;\n contactNumber: string;\n channel?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<OtpResponse>> {\n return await this.get<OtpResponse>(\n 'auth/otp',\n {\n uuid: params.uuid,\n app_id: params.appId,\n contact_number: params.contactNumber,\n channel: params.channel,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Confirm the OTP (One-Time Password) for authentication.\n *\n * @param params - The parameters.\n * @param params.otp - The OTP to confirm.\n * @param params.refCode - The reference code for the OTP.\n * @param params.contactNumber - The contact number for the user.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the confirm OTP response.\n */\n public async confirmOtp(\n params: {\n otp: string;\n refCode: string;\n contactNumber: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ConfirmOtpResponse>> {\n return await this.post<ConfirmOtpResponse>(\n 'auth/bzbs_authen',\n {\n otp: params.otp,\n refcode: params.refCode,\n contact_number: params.contactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Validate the OTP (One-Time Password) for authentication.\n *\n * @param params - The parameters.\n * @param params.appId - Your application id.\n * @param params.otp - The OTP to validate.\n * @param params.refCode - The reference code for the OTP.\n * @param params.contactNumber - The contact number for the user.\n * @param params.use - Whether to use the OTP after validation.\n * @param params.channel - (Optional) The channel to use for OTP delivery.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the validate OTP response.\n */\n public async validateOtp(\n params: {\n appId: string;\n otp: string;\n refCode: string;\n contactNumber: string;\n use: boolean;\n channel?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ValidateOtpResponse>> {\n return await this.post<ValidateOtpResponse>(\n 'auth/otp',\n {\n app_id: params.appId,\n otp: params.otp,\n refcode: params.refCode,\n contact_number: params.contactNumber,\n use: params.use,\n channel: params.channel,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieve a new token and update the current device token.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.clientVersion - The version of the client.\n * @param params.deviceToken - The token of the device.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the resume response.\n */\n public async resume(\n params: {\n uuid: string;\n appId: string;\n clientVersion?: string;\n deviceToken?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ResumeResponse>> {\n return await this.post<ResumeResponse>(\n 'auth/device_resume',\n {\n uuid: params.uuid,\n app_id: params.appId,\n client_version: params.clientVersion,\n device_token: params.deviceToken,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Update the device token for push notification.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.clientVersion - The version of the client.\n * @param params.deviceToken - The token of the device.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the resume response.\n */\n public async updateDevice(\n params: {\n uuid: string;\n appId: string;\n clientVersion?: string;\n deviceToken?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ResumeResponse>> {\n return await this.post<ResumeResponse>(\n 'auth/device_resume',\n {\n uuid: params.uuid,\n app_id: params.appId,\n client_version: params.clientVersion,\n device_token: params.deviceToken,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the version information for the current app version.\n * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the version information.\n */\n public async version(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<Version>> {\n return await this.get<Version>('auth/version', { client_version: clientVersion }, requestOptions);\n }\n\n /**\n * Retrieves the raw version information for the current app version.\n * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the raw version information.\n */\n public async versionRaw(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.get<any>('auth/version', { client_version: clientVersion }, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Badge } from '../../models/badge';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class BadgeApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves user badges.\n *\n * @param params - The parameters.\n * @param params.badgeId - The ID of the badge to retrieve.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Badge objects.\n */\n public async getBadges(\n params: {\n badgeId?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Badge[]>> {\n return await this.get<Badge[]>(\n 'profile/me/badges',\n {\n badge_id: params.badgeId,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Campaign } from '../../models/campaign-model';\nimport { CampaignDetail } from '../../models/campaign-detail-model';\nimport { FavoriteResponse } from '../../models/favorite-response-model';\nimport { RedeemResponse } from '../../models/redeem-response-model';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CampaignApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves a list of campaigns based on the provided parameters.\n *\n * @param params - The parameters for the campaign list.\n * @param params.config - The configuration for the campaign (list name).\n * @param params.cat - The category for the campaign.\n * @param params.byConfig - A boolean indicating whether to filter by configuration.\n * @param params.skip - The number of campaigns to skip.\n * @param params.top - The number of campaigns to retrieve.\n * @param params.deviceLocale - The device locale for the campaigns.\n * @param params.locale - The locale for the campaigns.\n * @param params.keyword - The keyword for the campaigns.\n * @param params.startDate - The start date for the campaigns.\n * @param params.sponsorId - The sponsor ID for the campaigns.\n * @param params.maxPoints - The maximum points for the campaigns.\n * @param params.minPoints - The minimum points for the campaigns.\n * @param params.sortBy - The sort order for the campaigns.\n * @param params.center - The coordinates for the center of the campaigns.\n * @param params.hashTags - The hash tags for the campaigns.\n * @param params.locationAgencyId - The location agency ID for the campaigns.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.\n */\n public async campaign(\n params: {\n config: string;\n cat?: string;\n byConfig?: boolean;\n skip?: number;\n top?: number;\n deviceLocale?: number;\n locale?: number;\n keyword?: string;\n startDate?: string;\n sponsorId?: string;\n maxPoints?: string;\n minPoints?: string;\n sortBy?: string;\n center?: string;\n hashTags?: string;\n locationAgencyId?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Campaign[]>> {\n return await this.get<Campaign[]>(\n 'campaign',\n {\n config: params.config,\n cat: params.cat,\n byConfig: params.byConfig,\n skip: params.skip,\n top: params.top,\n device_locale: params.deviceLocale,\n locale: params.locale,\n q: params.keyword,\n startdate: params.startDate,\n sponsorId: params.sponsorId,\n maxpoints: params.maxPoints,\n minpoints: params.minPoints,\n sortBy: params.sortBy,\n center: params.center,\n tags: params.hashTags,\n locationAgencyId: params.locationAgencyId,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves a list of user's favorite campaigns.\n *\n * @param params - The parameters.\n * @param params.skip - The number of campaigns to skip.\n * @param params.top - The number of campaigns to retrieve.\n * @param params.locale - The locale for the campaigns.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - The options for the API request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.\n */\n public async favoriteCampaigns(\n params: {\n skip?: number;\n top?: number;\n locale?: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Campaign[]>> {\n return await this.get(\n 'profile/me/favourite_campaign',\n {\n params: {\n skip: params.skip,\n top: params.top,\n locale: params.locale,\n ...params.options,\n },\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves the details of a campaign.\n *\n * @param param - The parameters.\n * @param param.id - The ID of the campaign.\n * @param param.deviceLocale - The device locale (optional).\n * @param param.options - Additional options for the request (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a service response containing the campaign details.\n */\n public async campaignDetails(\n param: {\n id: string;\n deviceLocale?: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CampaignDetail>> {\n return await this?.get(\n `campaign/${param.id}`,\n {\n params: {\n device_locale: param.deviceLocale,\n ...param.options,\n },\n },\n requestOptions\n );\n }\n\n /**\n * Adds a campaign to the user's favorites.\n * @param id - The ID of the campaign to add to favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the FavoriteResponse.\n */\n public async addToFavorite(id: string, requestOptions?: RequestOptions): Promise<ServiceResponse<FavoriteResponse>> {\n return await this.post(`campaign/${id}/favourite`, {}, requestOptions);\n }\n\n /**\n * Removes a campaign from user's favorites.\n * @param id - The ID of the campaign to remove from favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the FavoriteResponse.\n */\n public async removeFromFavorite(\n id: string,\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<FavoriteResponse>> {\n return await this.delete(`campaign/${id}/favourite`, requestOptions);\n }\n\n /**\n * Redeems a campaign.\n *\n * @param params - The parameters for redeeming the campaign.\n * @param params.id - The ID of the campaign to redeem.\n * @param params.addressKey - The address key of a user's address.\n * @param params.contactNumber - The contact number of the user.\n * @param params.options - Additional options for the redemption.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing the redeem response.\n */\n public async redeem(\n params: {\n id: string;\n addressKey?: string;\n contactNumber?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RedeemResponse>> {\n return await this.post(\n `campaign/${params.id}/redeem`,\n {\n address_key: params.addressKey,\n contact_number: params.contactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Redeems a campaign in bulk.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the campaign to redeem.\n * @param params.quantity - The quantity to redeem.\n * @param params.options - Additional options for the redemption.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing the redeem response.\n */\n public async bulkRedeem(\n params: {\n id: string;\n quantity: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RedeemResponse>> {\n return await this.post(\n `campaign/${params.id}/bulkredeem`,\n {\n quantity: params.quantity,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { CartCountResponse } from '../../models/cart-count-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { CartAccessResponse } from '../../models';\n\nexport class CartApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Adds an item to the cart.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the item to add to the cart.\n * @param params.mode - The mode off adding.\n * @param params.qty - The quantity of the item.\n * @param params.sideCampaignJson - The side campaign JSON.\n * @param params.options - Additional options for adding the item to the cart.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the cart count response.\n */\n public async addCart(\n params: {\n id: string;\n mode?: string;\n qty?: number;\n sideCampaignJson?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CartCountResponse>> {\n return await this.post(\n `cart/${params.id}/add`,\n {\n mode: params.mode,\n qty: params.qty,\n sideCampaignJson: params.sideCampaignJson,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the count of items in the cart.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.\n */\n public async cartCount(requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>> {\n return await this.get(this.baseUrl + 'cart/count', {}, requestOptions);\n }\n\n /**\n * Retrieves the cart access.\n *\n * @param params - The parameters.\n * @param params.errorUrl - The error URL that the user is redirected to when an error occurs.\n * @param params.successUrl - The success URL that the user is redirected to when the operation is successful.\n * @param params.returnUrl - The return URL that the user is redirected to when press back button.\n * @param params.appId - The app ID.\n * @param params.appName - The app name.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the CartAccessResponse.\n */\n public async cartAccess(\n params: {\n errorUrl: string;\n successUrl: string;\n returnUrl: string;\n appId: string;\n appName: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CartAccessResponse>> {\n return await this.post(\n 'setting',\n {\n data: JSON.stringify(params),\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { Category } from '../../models/category';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CategoryApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the campaign categories.\n *\n * @param params - The parameters.\n * @param params.config - The configuration string.\n * @param params.byConfig - Optional. Specifies whether to retrieve categories by configuration.\n * @param params.options - Optional. Additional options for retrieving the categories.\n * @param requestOptions - Optional. The request options.\n * @returns A promise that resolves to a service response containing an array of categories.\n */\n public async categories(\n params: {\n config: string;\n byConfig?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Category[]>> {\n return await this.get(\n 'campaigncat/menu',\n {\n byConfig: params.byConfig,\n config: params.config,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Consent } from '../../models/consent';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class ConsentApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the user's consent information.\n *\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the consent information.\n */\n public async consent(requestOptions?: RequestOptions): Promise<ServiceResponse<Consent>> {\n return await this.get<Consent>('consent', requestOptions);\n }\n\n /**\n * Retrieves the user's consent information.\n *\n * @param params - The parameters for the consent request.\n * @param params.termsAndConditions - The terms and conditions consent version.\n * @param params.dataPrivacy - The data privacy consent version.\n * @param params.marketingOption - The marketing option consent version.\n * @param params.email - The email consent (0 for false, 1 for true).\n * @param params.sms - The SMS consent (0 for false, 1 for true).\n * @param params.notification - The notification consent (0 for false, 1 for true).\n * @param params.line - The LINE consent (0 for false, 1 for true).\n * @param params.analyticsBuzzebeesCookies - The analytics Buzzebees cookies consent (0 for false, 1 for true).\n * @param params.analyticsFirebaseCookies - The analytics Firebase cookies consent (0 for false, 1 for true).\n * @param params.analyticsGoogleCookies - The analytics Google cookies consent (0 for false, 1 for true).\n * @param params.analyticsMetaCookies - The analytics Meta cookies consent (0 for false, 1 for true).\n * @param params.analyticsOtherCookies - The analytics other cookies consent (0 for false, 1 for true).\n * @param params.functionalCookies - The functional cookies consent (0 for false, 1 for true).\n * @param params.marketingCookies - The marketing cookies consent (0 for false, 1 for true).\n * @param params.necessaryCookies - The necessary cookies consent (0 for false, 1 for true).\n * @param params.options - Additional params.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the consent information.\n */\n public async updateConsent(\n params: {\n termsAndConditions?: string;\n dataPrivacy?: string;\n marketingOption?: string;\n email?: string;\n sms?: string;\n notification?: string;\n line?: string;\n analyticsBuzzebeesCookies?: string;\n analyticsFirebaseCookies?: string;\n analyticsGoogleCookies?: string;\n analyticsMetaCookies?: string;\n analyticsOtherCookies?: string;\n functionalCookies?: string;\n marketingCookies?: string;\n necessaryCookies?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Consent>> {\n return await this.post(\n 'consent',\n {\n termandcondition: params.termsAndConditions,\n dataprivacy: params.dataPrivacy,\n marketingoption: params.marketingOption,\n email: params.email,\n sms: params.sms,\n notification: params.notification,\n line: params.line,\n analyticsBuzzebeesCookies: params.analyticsBuzzebeesCookies,\n analyticsFirebaseCookies: params.analyticsFirebaseCookies,\n analyticsGoogleCookies: params.analyticsGoogleCookies,\n analyticsMetaCookies: params.analyticsMetaCookies,\n analyticsOtherCookies: params.analyticsOtherCookies,\n functionalCookies: params.functionalCookies,\n marketingCookies: params.marketingCookies,\n necessaryCookies: params.necessaryCookies,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Unconsents the user.\n *\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the result of the unconsent operation.\n */\n public async unconsent(requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post<any>('consent/unconsent', {}, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { CouponResponse } from '../../models/coupon-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CouponApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Processes coupon codes.\n *\n * @param params - The parameters.\n * @param params.codes - The coupon codes to process.\n * @param params.options - Additional options for processing coupon codes.\n * @param requestOptions - The options for making the API request.\n * @returns A promise that resolves to a service response containing the coupon response.\n */\n public async processCodes(\n params: {\n codes: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CouponResponse>> {\n return await this.post(\n 'coupon/process',\n {\n 'codes[]': params.codes,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Dashboard } from '../../models/dashboard';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class DashboardApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the main dashboard data.\n *\n * @param params - The parameters.\n * @param params.appName - The name of the application.\n * @param params.locale - The locale number.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a service response containing an array of Dashboard objects.\n */\n public async mainDashboard(\n params: {\n appName: string;\n locale: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Dashboard[]>> {\n return await this.get(\n 'dashboard/main',\n {\n app_name: params.appName,\n locale: params.locale,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves a sub-dashboard data.\n *\n * @param params - The parameters.\n * @param params.dashboardName - The name of the sub-dashboard to retrieve.\n * @param params.locale - The locale of the sub-dashboard.\n * @param params.options - Additional options for retrieving the sub-dashboard.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing an array of dashboards.\n */\n public async subDashboard(\n params: {\n dashboardName: string;\n locale: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Dashboard[]>> {\n return await this.get(\n `dashboard/${params.dashboardName}`,\n {\n locale: params.locale,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Purchase } from '../../models/purchase';\nimport { UseCampaignResponse } from '../../models/use-campaign-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class HistoryApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the redeem histories based on the specified parameters.\n *\n * @param params - The parameters for retrieving redeem histories.\n * @param params.byConfig - Indicates whether to retrieve redeem histories by config.\n * @param params.config - The config for retrieving redeem histories.\n * @param params.skip - The number of records to skip.\n * @param params.top - The number of records to retrieve.\n * @param params.locale - The locale for retrieving redeem histories (optional).\n * @param params.startDate - The start date for retrieving redeem histories (optional).\n * @param params.endDate - The end date for retrieving redeem histories (optional).\n * @param params.options - Additional options for retrieving redeem histories (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a service response containing an array of purchase objects.\n */\n public async redeemHistories(\n params: {\n byConfig: boolean;\n config: string;\n skip: number;\n top: number;\n locale?: number;\n startDate?: string;\n endDate?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Purchase[]>> {\n return await this.get(\n 'redeem',\n {\n byConfig: params.byConfig,\n config: params.config,\n skip: params.skip,\n top: params.top,\n locale: params.locale,\n startdate: params.startDate,\n enddate: params.endDate,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Marks the specified redeem key as used.\n *\n * @param params - The parameters.\n * @param params.redeemKey - The redeem key for the campaign.\n * @param params.options - Additional options for using the campaign.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing the result of the redemption.\n */\n public async use(\n params: {\n redeemKey: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<UseCampaignResponse>> {\n return await this.post(\n `redeem/${params.redeemKey}/use`,\n {\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { LineAuthResponse } from '../../models/line-auth-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class LineApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Authenticates with the LINE API.\n *\n * @param params - The authentication parameters.\n * @param params.grantType - The grant type.\n * @param params.code - The code.\n * @param params.clientId - The client ID.\n * @param params.clientSecret - The client secret.\n * @param params.redirectUrl - The redirect URL.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the LineAuthResponse.\n */\n public async lineAuth(\n params: {\n grantType: string;\n code: string;\n clientId: string;\n clientSecret: string;\n redirectUrl: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LineAuthResponse>> {\n return await this.post(\n 'oauth2/v2.1/token',\n {\n grant_type: params.grantType,\n code: params.code,\n client_id: params.clientId,\n client_secret: params.clientSecret,\n redirect_uri: params.redirectUrl,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { Notification } from '../../models';\n\nexport class NotificationApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves notifications.\n *\n * @param params - The parameters for retrieving notifications.\n * @param params.mode - The mode for retrieving notifications (new or all)\n * @param params.sortBy - The sort order for the notifications (createdate_desc or createdate_asc)\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing an array of notifications.\n */\n public async notifications(\n params: {\n mode: string | 'new' | 'all';\n sortBy: string | 'createdate_desc' | 'createdate_asc';\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Notification[]>> {\n return await this.get(\n 'noti',\n {\n mode: params.mode,\n sortBy: params.sortBy,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Marks notifications as read.\n *\n * @param params - The parameters for marking notifications as read.\n * @param params.ids - The IDs(RowKeys) of the notifications to mark as read. (RowKey1, RowKey2)\n * @param params.options - Additional options for marking notifications as read.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing the result of marking notifications as read.\n */\n public async read(\n params: {\n ids: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'noti/read',\n {\n ids: params.ids,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { Place } from '../../models/place';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class PlaceApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves a list of places based on the provided parameters.\n *\n * @param params - The parameters for the place list request.\n * @param params.agencyId - The ID of the agency.\n * @param params.center - The center of the search area.\n * @param params.distance - The distance from the center.\n * @param params.top - The number of places to retrieve.\n * @param params.provinceCode - The province code (optional).\n * @param params.category - The category of the place (optional).\n * @param params.mode - The mode of the place (optional).\n * @param params.requiredCampaign - Indicates whether the place requires a campaign (optional).\n * @param params.keyword - The keyword to search for (optional).\n * @param params.isFavourite - Indicates whether the place is a favourite (optional).\n * @param params.options - Additional options for the request (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a ServiceResponse containing an array of Place objects.\n */\n public async placeList(\n params: {\n agencyId: string;\n center: string;\n distance: number;\n top: number;\n provinceCode?: string;\n category?: string;\n mode?: string;\n requiredCampaign?: boolean;\n keyword?: string;\n isFavourite?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Place[]>> {\n return await this.get(\n 'place',\n {\n agencyId: params.agencyId,\n center: params.center,\n distance: params.distance,\n top: params.top,\n province_code: params.provinceCode,\n category: params.category,\n mode: params.mode,\n require_campaign: params.requiredCampaign,\n q: params.keyword,\n isFavourite: params.isFavourite,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves information about a specific place.\n *\n * @param params - The parameters for the place request.\n * @param params.id - The ID of the place.\n * @param params.agencyId - The ID of the agency.\n * @param params.requiredCampaign - (Optional) Indicates if a campaign is required.\n * @param params.isFavourite - (Optional) Indicates if the place is a favorite.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOptions - (Optional) Additional options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing the place information.\n */\n public async place(\n params: {\n id: string;\n agencyId: string;\n requiredCampaign?: boolean;\n isFavourite?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Place>> {\n return await this.get(\n `place/${params.id}`,\n {\n agencyId: params.agencyId,\n require_campaign: params.requiredCampaign,\n isFavourite: params.isFavourite,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Adds a place to the user's favorites.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the place to be added to favorites.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the operation.\n */\n public async addToFavourite(params: { id: string }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post(`place/${params.id}/favourite`, {}, requestOptions);\n }\n\n /**\n * Removes a place from the user's favorites.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the place to be removed from favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the operation.\n */\n public async removeFromFavourite(\n params: {\n id: string;\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(`place/${params.id}/unfavourite`, {}, requestOptions);\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { PointLog } from '../../models/point-log';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class PointLogApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the point log.\n *\n * @param params - The parameters for retrieving the point log.\n * @param params.month - The month for which to retrieve the point log.\n * @param params.type - (Optional) The type of point log to retrieve. (earn/burn/etc)\n * @param params.lastRowKey - (Optional) The last row key for pagination.\n * @param params.top - (Optional) The maximum number of records to retrieve.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOption - (Optional) The request options.\n * @returns A promise that resolves to a service response containing an array of point logs.\n */\n public async getPointLog(\n params: {\n month: string;\n type?: string;\n lastRowKey?: string;\n top?: number;\n options?: { [key: string]: any };\n },\n requestOption?: RequestOptions\n ): Promise<ServiceResponse<PointLog[]>> {\n return await this.get(\n 'log/points',\n {\n month: params.month,\n type: params?.type,\n lastRowKey: params?.lastRowKey,\n top: params?.top,\n ...params.options,\n },\n requestOption\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { ConfirmOtpResponse, ExpiringPoints, ProfileResponse, StatusResponse, UpdatedPoints } from '../../models';\n\nexport class ProfileApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the profile information for the current user.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the profile information.\n */\n public async profile(requestOptions?: RequestOptions): Promise<ServiceResponse<ProfileResponse>> {\n return await this.get('profile/me', {}, requestOptions);\n }\n\n /**\n * Updates the user profile with the provided parameters.\n *\n * @param params - The parameters for updating the profile.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the updated profile.\n */\n public async updateProfile(\n params: {\n profileImage?: File;\n firstName?: string;\n lastName?: string;\n contactNumber?: string;\n email?: string;\n notification?: boolean;\n locale?: number;\n title?: string;\n gender?: string;\n birthDate?: number;\n address?: string;\n subdistrictCode?: number;\n subdistrictName?: string;\n districtCode?: number;\n districtName?: string;\n provinceCode?: number;\n provinceName?: string;\n countryCode?: string;\n countryName?: string;\n zipCode?: string;\n idCard?: string;\n passport?: string;\n maritalStatus?: string;\n village?: string;\n building?: string;\n number?: string;\n moo?: string;\n room?: string;\n floor?: string;\n soi?: string;\n city?: string;\n road?: string;\n landmark?: string;\n alternateContactNumber?: string;\n homeContactNumber?: string;\n nationality?: string;\n religion?: string;\n location?: string;\n latitude?: number;\n longitude?: number;\n income?: string;\n interests?: string;\n region?: string;\n phonepurchase?: number;\n highestEducation?: string;\n occupation?: string;\n remark?: string;\n displayName?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ProfileResponse>> {\n return await this.post(\n 'profile/me',\n {\n data: params.profileImage,\n firstname: params.firstName,\n lastname: params.lastName,\n contact_number: params.contactNumber,\n email: params.email,\n notification: params.notification,\n locale: params.locale,\n title: params.title,\n gender: params.gender,\n birthdate: params.birthDate,\n address: params.address,\n subdistrict_code: params.subdistrictCode,\n subdistrict_name: params.subdistrictName,\n district_code: params.districtCode,\n district_name: params.districtName,\n province_code: params.provinceCode,\n province_name: params.provinceName,\n country_code: params.countryCode,\n country_name: params.countryName,\n Zipcode: params.zipCode,\n idCard: params.idCard,\n passport: params.passport,\n maritalstatus: params.maritalStatus,\n village: params.village,\n building: params.building,\n number: params.number,\n moo: params.moo,\n room: params.room,\n floor: params.floor,\n soi: params.soi,\n city: params.city,\n road: params.road,\n landmark: params.landmark,\n alternate_contact_number: params.alternateContactNumber,\n home_contact_number: params.homeContactNumber,\n nationality: params.nationality,\n religion: params.religion,\n location: params.location,\n latitude: params.latitude,\n longitude: params.longitude,\n income: params.income,\n interests: params.interests,\n region: params.region,\n phonepurchase: params.phonepurchase,\n highesteducation: params.highestEducation,\n occupation: params.occupation,\n remark: params.remark,\n displayname: params.displayName,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...(requestOptions?.headers ? requestOptions.headers : {}),\n },\n params: requestOptions?.params,\n data: requestOptions?.data,\n }\n );\n }\n\n /**\n * Changes the user's password.\n *\n * @param params - The parameters.\n * @param params.current - The current password.\n * @param params.change - The new password.\n * @param params.options - Optional additional options.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the status response.\n */\n public async changePassword(\n params: {\n current: string;\n change: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<StatusResponse>> {\n return await this.post(\n 'profile/me/change_password',\n {\n current: params.current,\n change: params.change,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Updates the shipping information for the user.\n *\n * @param params - The parameters for updating the shipping information.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing the updated shipping information.\n */\n public async updateShipping(\n params: {\n shippingFirstName?: string;\n shippingLastName?: string;\n shippingProvinceCode?: string;\n shippingDistrictCode?: string;\n shippingSubDistrictCode?: string;\n shippingZipCode?: string;\n shippingAddress?: string;\n shippingProvinceName?: string;\n shippingDistrictName?: string;\n shippingSubFDistrictName?: string;\n shippingContactNumber?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'profile/me/shipping',\n {\n shippingfirstname: params.shippingFirstName,\n shippinglastname: params.shippingLastName,\n shipping_province_code: params.shippingProvinceCode,\n shipping_district_code: params.shippingDistrictCode,\n shipping_subdistrict_code: params.shippingSubDistrictCode,\n shipping_zipcode: params.shippingZipCode,\n shipping_address: params.shippingAddress,\n shipping_province_name: params.shippingProvinceName,\n shipping_district_name: params.shippingDistrictName,\n shipping_subdistrict_name: params.shippingSubFDistrictName,\n shipping_contact_number: params.shippingContactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Changes the contact number of the user.\n *\n * @param params - The parameters for changing the contact number.\n * @param params.contactNumber - The new contact number.\n * @param params.otp - The one-time password.\n * @param params.refCode - The reference code.\n * @param params.idCard - (Optional) The ID card for additional verification.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOptions - (Optional) The options for the request.\n * @returns A promise that resolves to the response of the request.\n */\n public async changeContactNumber(\n params: {\n contactNumber: string;\n otp: string;\n refCode: string;\n idCard?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ConfirmOtpResponse>> {\n return await this.post(\n 'auth/change_authen',\n {\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n idcard: params.idCard,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Changes the contact number for the current user.\n *\n * @param params - The parameters for changing the contact number.\n * @param params.contactNumber - The new contact number.\n * @param params.otp - The one-time password for verification.\n * @param params.refCode - The reference code for verification.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the result of the request.\n */\n public async changeContactNumberV2(\n params: {\n contactNumber: string;\n otp: string;\n refCode: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'profile/me/contact_number',\n {\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the updated points for the current user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the updated points.\n */\n public async points(requestOptions?: RequestOptions): Promise<ServiceResponse<UpdatedPoints>> {\n return await this.get('profile/me/updated_points', {}, requestOptions);\n }\n\n /**\n * Retrieves the expiring points for the current user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the expiring points.\n */\n public async expiringPoints(requestOptions?: RequestOptions): Promise<ServiceResponse<ExpiringPoints>> {\n return await this.get('profile/me/allexpiring_points', {}, requestOptions);\n }\n\n /**\n * Deactivates the user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the deactivation.\n */\n public async deactivate(requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post('profile/me/deactivate', {}, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { RegistrationResponse } from '../../models/registration-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class RegistrationApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Registers a user with the provided registration parameters.\n *\n * @param params - The registration parameters.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a service response containing the registration response.\n */\n public async register(\n params: {\n appId: string;\n uuid: string;\n macAddress: string;\n os: string;\n platform: string;\n clientVersion: string;\n deviceNotificationEnable: boolean;\n username: string;\n password: string;\n confirmPassword: string;\n firstName: string;\n lastName: string;\n contactNumber: string;\n otp: string;\n refCode: string;\n address?: string;\n gender?: string;\n birthdate?: number;\n email?: string;\n refUserCode?: string;\n info?: string;\n termAndConditionVersion?: string;\n dataPrivacyVersion?: string;\n marketingOptionsVersion?: string;\n emailMarketing?: string;\n smsMarketing?: string;\n notificationMarketing?: string;\n lineMarketing?: string;\n phoneMarketing?: string;\n options: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RegistrationResponse>> {\n return await this.post(\n 'auth/register',\n {\n app_id: params.appId,\n uuid: params.uuid,\n mac_address: params.macAddress,\n os: params.os,\n platform: params.platform,\n client_version: params.clientVersion,\n device_noti_enable: params.deviceNotificationEnable,\n username: params.username,\n password: params.password,\n confirmpassword: params.confirmPassword,\n firstname: params.firstName,\n lastname: params.lastName,\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n address: params.address,\n gender: params.gender,\n birthdate: params.birthdate,\n email: params.email,\n refusercode: params.refUserCode,\n info: params.info,\n termandcondition: params.termAndConditionVersion,\n dataprivacy: params.dataPrivacyVersion,\n marketingOption: params.marketingOptionsVersion,\n mktoption_email: params.emailMarketing,\n mktoption_sms: params.smsMarketing,\n mktoption_notification: params.notificationMarketing,\n mktoption_line: params.lineMarketing,\n mktoption_phone: params.phoneMarketing,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { AuthenticateApi } from './auth/auth-api';\nimport { BadgeApi } from './badge/badge-api';\nimport { CampaignApi } from './campaign/campaign-api';\nimport { CartApi } from './cart/cart-api';\nimport { CategoryApi } from './category/category-api';\nimport { ConsentApi } from './consent/consent-api';\nimport { CouponApi } from './coupon/coupon-api';\nimport { DashboardApi } from './dashboard/dashboard-api';\nimport { HistoryApi } from './history/history-api';\nimport { LineApi } from './line/line-api';\nimport { NotificationApi } from './notification/notification-api';\nimport { PlaceApi } from './place/place-api';\nimport { PointLogApi } from './point-log/point-log-api';\nimport { ProfileApi } from './profile/profile-api';\nimport { RegistrationApi } from './registration/registration-api';\n\nexport class BzbsService {\n client: AxiosInstance;\n baseUrl: string;\n baseLineUrl: string;\n\n authApi: AuthenticateApi;\n badgeApi: BadgeApi;\n campaignApi: CampaignApi;\n cartApi: CartApi;\n categoryApi: CategoryApi;\n consentApi: ConsentApi;\n couponApi: CouponApi;\n dashboardApi: DashboardApi;\n historyApi: HistoryApi;\n lineApi: LineApi;\n notificationApi: NotificationApi;\n placeApi: PlaceApi;\n pointLogApi: PointLogApi;\n profileApi: ProfileApi;\n registerApi: RegistrationApi;\n\n constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string) {\n this.client = client;\n this.baseUrl = baseUrl;\n this.baseLineUrl = baseLineUrl;\n\n this.authApi = new AuthenticateApi(this.client, this.baseUrl);\n this.badgeApi = new BadgeApi(this.client, this.baseUrl);\n this.campaignApi = new CampaignApi(this.client, this.baseUrl);\n this.cartApi = new CartApi(this.client, this.baseUrl);\n this.categoryApi = new CategoryApi(this.client, this.baseUrl);\n this.consentApi = new ConsentApi(this.client, this.baseUrl);\n this.couponApi = new CouponApi(this.client, this.baseUrl);\n this.dashboardApi = new DashboardApi(this.client, this.baseUrl);\n this.historyApi = new HistoryApi(this.client, this.baseUrl);\n this.lineApi = new LineApi(this.client, this.baseLineUrl ?? '');\n this.notificationApi = new NotificationApi(this.client, this.baseUrl);\n this.placeApi = new PlaceApi(this.client, this.baseUrl);\n this.pointLogApi = new PointLogApi(this.client, this.baseUrl);\n this.profileApi = new ProfileApi(this.client, this.baseUrl);\n this.registerApi = new RegistrationApi(this.client, this.baseUrl);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgBO,IAAM,cAAN,MAAkB;AAAA,EAIvB,YAAY,QAAuB,SAAiB;AAClD,SAAK,SAAS;AACd,SAAK,UAAU;AACf,QAAI,CAAC,KAAK,SAAS;AACjB,YAAM;AAAA,IACR;AACA,QAAI,CAAC,KAAK,QAAQ;AAChB,YAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEM,IAAO,MAAc,QAAc,gBAA8D;AAAA;AA/BzG;AAgCI,UAAI;AACF,cAAM,WAAW,MAAM,KAAK,OAAO,IAAO,KAAK,SAAQ,sDAAgB,YAAhB,YAA2B,KAAK,SAAS,IAAI,GAAG;AAAA,UACrG,QAAQ,kCACF,SAAS,SAAS,CAAC,KACnB,iDAAgB,UAAS,eAAe,SAAS,CAAC;AAAA,UAExD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
867
|
return yield this.get(this.baseUrl + "cart/count", {}, requestOptions);
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
+
/**
|
|
871
|
+
* Retrieves the cart access.
|
|
872
|
+
*
|
|
873
|
+
* @param params - The parameters.
|
|
874
|
+
* @param params.errorUrl - The error URL that the user is redirected to when an error occurs.
|
|
875
|
+
* @param params.successUrl - The success URL that the user is redirected to when the operation is successful.
|
|
876
|
+
* @param params.returnUrl - The return URL that the user is redirected to when press back button.
|
|
877
|
+
* @param params.appId - The app ID.
|
|
878
|
+
* @param params.appName - The app name.
|
|
879
|
+
* @param params.options - Additional options for the request.
|
|
880
|
+
* @param requestOptions - The options for the request.
|
|
881
|
+
* @returns A promise that resolves to a ServiceResponse containing the CartAccessResponse.
|
|
882
|
+
*/
|
|
883
|
+
cartAccess(params, requestOptions) {
|
|
884
|
+
return __async(this, null, function* () {
|
|
885
|
+
return yield this.post(
|
|
886
|
+
"setting",
|
|
887
|
+
{
|
|
888
|
+
data: JSON.stringify(params)
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
headers: __spreadValues({
|
|
892
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
893
|
+
}, requestOptions == null ? void 0 : requestOptions.headers),
|
|
894
|
+
data: requestOptions == null ? void 0 : requestOptions.data,
|
|
895
|
+
params: requestOptions == null ? void 0 : requestOptions.params
|
|
896
|
+
}
|
|
897
|
+
);
|
|
898
|
+
});
|
|
899
|
+
}
|
|
870
900
|
};
|
|
871
901
|
|
|
872
902
|
// src/api/category/category-api.ts
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api/base-service.ts","../src/api/auth/auth-api.ts","../src/api/badge/badge-api.ts","../src/api/campaign/campaign-api.ts","../src/api/cart/cart-api.ts","../src/api/category/category-api.ts","../src/api/consent/consent-api.ts","../src/api/coupon/coupon-api.ts","../src/api/dashboard/dashboard-api.ts","../src/api/history/history-api.ts","../src/api/line/line-api.ts","../src/api/notification/notification-api.ts","../src/api/place/place-api.ts","../src/api/point-log/point-log-api.ts","../src/api/profile/profile-api.ts","../src/api/registration/registration-api.ts","../src/api/bzbs-service.ts"],"sourcesContent":["import { AxiosInstance, AxiosResponse } from 'axios';\nimport { BzbsErrorResponse } from '../models/bzbs-error-response';\n\nexport type ServiceResponse<T> = {\n model: T | undefined;\n response: AxiosResponse | undefined;\n error: any | undefined | BzbsErrorResponse;\n};\n\nexport type RequestOptions = {\n headers?: { [key: string]: string };\n params?: { [key: string]: string };\n data?: { [key: string]: string } | any;\n baseUrl?: string;\n};\n\nexport class BaseService {\n client: AxiosInstance;\n baseUrl: string;\n\n constructor(client: AxiosInstance, baseUrl: string) {\n this.client = client;\n this.baseUrl = baseUrl;\n if (!this.baseUrl) {\n throw 'Please check base_URL';\n }\n if (!this.client) {\n throw 'Please check client';\n }\n }\n\n async get<T>(path: string, params?: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.get<T>(this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path), {\n params: {\n ...(params ? params : {}),\n ...(requestOptions?.params ? requestOptions.params : {}),\n },\n headers: requestOptions?.headers,\n data: requestOptions?.data,\n });\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async post<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.post<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async put<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.put<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async delete<T>(path: string, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.delete<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async patch<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.patch<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n joinUrl(baseUrl: string, path: string): string {\n baseUrl = baseUrl.endsWith('/') ? baseUrl : baseUrl + '/';\n const url = new URL(path, baseUrl);\n return url.toString();\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { LoginResponse } from '../../models/login-model';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { ForgetPasswordResponse } from '../../models/forget-password-response';\nimport { ConfirmOtpResponse, StatusResponse } from '../../models';\nimport { OtpResponse } from '../../models/otp-response';\nimport { ValidateOtpResponse } from '../../models/validate-otp-response';\nimport { ResumeResponse } from '../../models/resume-response';\nimport { Version } from '../../models/version';\n\nexport class AuthenticateApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Performs a device login using the provided device uuid.\n *\n * @param params - The parameters.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async deviceLogin(\n params: {\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/device_login',\n {\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Facebook login using the provided Facebook access token.\n *\n * @param params - The parameters.\n * @param accessToken - The access token obtained from Facebook.\n * @param appId - Your application id.\n * @param uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async facebookLogin(\n params: {\n accessToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/login',\n {\n access_token: params.accessToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Google login using the provided id token, app id, and uuid.\n *\n * @param params - The parameters.\n * @param params.idToken - The Google id token.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async googleLogin(\n params: {\n idToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/google_login',\n {\n id_token: params.idToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Line login using the provided id token, Line access token and authorization code.\n *\n * @param params - The parameters.\n * @param params.idToken - The Line id token.\n * @param params.lineAccessToken - The Line access token.\n * @param params.authorizationCode - The Line authorization code.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async lineLogin(\n params: {\n idToken: string;\n lineAccessToken: string;\n authorizationCode: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/line_login',\n {\n id_token: params.idToken,\n line_access_token: params.lineAccessToken,\n authorization_code: params.authorizationCode,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs an Apple login using the provided id token and Apple refresh token.\n *\n * @param params - The parameters.\n * @param params.idToken - The Apple id token.\n * @param params.refreshToken - The Apple refresh token.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async appleLogin(\n params: {\n idToken: string;\n refreshToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/apple_login',\n {\n id_token: params.idToken,\n refresh_token: params.refreshToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a username and password login using the provided username and password.\n *\n * @param params - The parameters.\n * @param params.username - The username of the user.\n * @param params.password - The password of the user.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.options - (Optional) Additional params for the request.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async usernamePasswordLogin(\n params: {\n username: string;\n password: string;\n uuid: string;\n appId: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/bzbs_login',\n {\n username: params.username,\n password: params.password,\n uuid: params.uuid,\n app_id: params.appId,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a logout for the user.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the logout response.\n */\n public async logout(\n params: {\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post<any>(\n 'auth/logout',\n {\n uuid: params.uuid,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Sends a forget password request to the user.\n *\n * @param params - The parameters.\n * @param params.contact - The contact information for the user (email or contact number).\n * @param params.type - The type of contact information.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the forget password response.\n */\n public async forgetPassword(\n params: {\n contact: string;\n type: 'email' | 'contact_number';\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ForgetPasswordResponse>> {\n return await this.get<ForgetPasswordResponse>(\n `profile/${params.contact}/forget_password`,\n {\n type: params.type,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Resets the password for a user.\n *\n * @param params - The parameters.\n * @param params.contact - The contact information for the user (email or contact number).\n * @param params.refCode - The reference code for password reset.\n * @param params.newPassword - The new password to set.\n * @param params.otp - (Optional) The one-time password.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the status response.\n */\n public async resetPassword(\n params: {\n contact: string;\n refCode: string;\n newPassword: string;\n otp?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<StatusResponse>> {\n return await this.post<StatusResponse>(\n `profile/${params.contact}/forget_password`,\n {\n refcode: params.refCode,\n change: params.newPassword,\n otp: params.otp,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Sends an OTP (One-Time Password) to the user for authentication.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.contactNumber - The contact number for the user.\n * @param params.channel - (Optional) The channel to use for OTP delivery.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the OTP response.\n */\n public async getOtp(\n params: {\n uuid: string;\n appId: string;\n contactNumber: string;\n channel?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<OtpResponse>> {\n return await this.get<OtpResponse>(\n 'auth/otp',\n {\n uuid: params.uuid,\n app_id: params.appId,\n contact_number: params.contactNumber,\n channel: params.channel,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Confirm the OTP (One-Time Password) for authentication.\n *\n * @param params - The parameters.\n * @param params.otp - The OTP to confirm.\n * @param params.refCode - The reference code for the OTP.\n * @param params.contactNumber - The contact number for the user.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the confirm OTP response.\n */\n public async confirmOtp(\n params: {\n otp: string;\n refCode: string;\n contactNumber: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ConfirmOtpResponse>> {\n return await this.post<ConfirmOtpResponse>(\n 'auth/bzbs_authen',\n {\n otp: params.otp,\n refcode: params.refCode,\n contact_number: params.contactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Validate the OTP (One-Time Password) for authentication.\n *\n * @param params - The parameters.\n * @param params.appId - Your application id.\n * @param params.otp - The OTP to validate.\n * @param params.refCode - The reference code for the OTP.\n * @param params.contactNumber - The contact number for the user.\n * @param params.use - Whether to use the OTP after validation.\n * @param params.channel - (Optional) The channel to use for OTP delivery.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the validate OTP response.\n */\n public async validateOtp(\n params: {\n appId: string;\n otp: string;\n refCode: string;\n contactNumber: string;\n use: boolean;\n channel?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ValidateOtpResponse>> {\n return await this.post<ValidateOtpResponse>(\n 'auth/otp',\n {\n app_id: params.appId,\n otp: params.otp,\n refcode: params.refCode,\n contact_number: params.contactNumber,\n use: params.use,\n channel: params.channel,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieve a new token and update the current device token.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.clientVersion - The version of the client.\n * @param params.deviceToken - The token of the device.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the resume response.\n */\n public async resume(\n params: {\n uuid: string;\n appId: string;\n clientVersion?: string;\n deviceToken?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ResumeResponse>> {\n return await this.post<ResumeResponse>(\n 'auth/device_resume',\n {\n uuid: params.uuid,\n app_id: params.appId,\n client_version: params.clientVersion,\n device_token: params.deviceToken,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Update the device token for push notification.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.clientVersion - The version of the client.\n * @param params.deviceToken - The token of the device.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the resume response.\n */\n public async updateDevice(\n params: {\n uuid: string;\n appId: string;\n clientVersion?: string;\n deviceToken?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ResumeResponse>> {\n return await this.post<ResumeResponse>(\n 'auth/device_resume',\n {\n uuid: params.uuid,\n app_id: params.appId,\n client_version: params.clientVersion,\n device_token: params.deviceToken,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the version information for the current app version.\n * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the version information.\n */\n public async version(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<Version>> {\n return await this.get<Version>('auth/version', { client_version: clientVersion }, requestOptions);\n }\n\n /**\n * Retrieves the raw version information for the current app version.\n * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the raw version information.\n */\n public async versionRaw(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.get<any>('auth/version', { client_version: clientVersion }, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Badge } from '../../models/badge';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class BadgeApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves user badges.\n *\n * @param params - The parameters.\n * @param params.badgeId - The ID of the badge to retrieve.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Badge objects.\n */\n public async getBadges(\n params: {\n badgeId?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Badge[]>> {\n return await this.get<Badge[]>(\n 'profile/me/badges',\n {\n badge_id: params.badgeId,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Campaign } from '../../models/campaign-model';\nimport { CampaignDetail } from '../../models/campaign-detail-model';\nimport { FavoriteResponse } from '../../models/favorite-response-model';\nimport { RedeemResponse } from '../../models/redeem-response-model';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CampaignApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves a list of campaigns based on the provided parameters.\n *\n * @param params - The parameters for the campaign list.\n * @param params.config - The configuration for the campaign (list name).\n * @param params.cat - The category for the campaign.\n * @param params.byConfig - A boolean indicating whether to filter by configuration.\n * @param params.skip - The number of campaigns to skip.\n * @param params.top - The number of campaigns to retrieve.\n * @param params.deviceLocale - The device locale for the campaigns.\n * @param params.locale - The locale for the campaigns.\n * @param params.keyword - The keyword for the campaigns.\n * @param params.startDate - The start date for the campaigns.\n * @param params.sponsorId - The sponsor ID for the campaigns.\n * @param params.maxPoints - The maximum points for the campaigns.\n * @param params.minPoints - The minimum points for the campaigns.\n * @param params.sortBy - The sort order for the campaigns.\n * @param params.center - The coordinates for the center of the campaigns.\n * @param params.hashTags - The hash tags for the campaigns.\n * @param params.locationAgencyId - The location agency ID for the campaigns.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.\n */\n public async campaign(\n params: {\n config: string;\n cat?: string;\n byConfig?: boolean;\n skip?: number;\n top?: number;\n deviceLocale?: number;\n locale?: number;\n keyword?: string;\n startDate?: string;\n sponsorId?: string;\n maxPoints?: string;\n minPoints?: string;\n sortBy?: string;\n center?: string;\n hashTags?: string;\n locationAgencyId?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Campaign[]>> {\n return await this.get<Campaign[]>(\n 'campaign',\n {\n config: params.config,\n cat: params.cat,\n byConfig: params.byConfig,\n skip: params.skip,\n top: params.top,\n device_locale: params.deviceLocale,\n locale: params.locale,\n q: params.keyword,\n startdate: params.startDate,\n sponsorId: params.sponsorId,\n maxpoints: params.maxPoints,\n minpoints: params.minPoints,\n sortBy: params.sortBy,\n center: params.center,\n tags: params.hashTags,\n locationAgencyId: params.locationAgencyId,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves a list of user's favorite campaigns.\n *\n * @param params - The parameters.\n * @param params.skip - The number of campaigns to skip.\n * @param params.top - The number of campaigns to retrieve.\n * @param params.locale - The locale for the campaigns.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - The options for the API request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.\n */\n public async favoriteCampaigns(\n params: {\n skip?: number;\n top?: number;\n locale?: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Campaign[]>> {\n return await this.get(\n 'profile/me/favourite_campaign',\n {\n params: {\n skip: params.skip,\n top: params.top,\n locale: params.locale,\n ...params.options,\n },\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves the details of a campaign.\n *\n * @param param - The parameters.\n * @param param.id - The ID of the campaign.\n * @param param.deviceLocale - The device locale (optional).\n * @param param.options - Additional options for the request (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a service response containing the campaign details.\n */\n public async campaignDetails(\n param: {\n id: string;\n deviceLocale?: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CampaignDetail>> {\n return await this?.get(\n `campaign/${param.id}`,\n {\n params: {\n device_locale: param.deviceLocale,\n ...param.options,\n },\n },\n requestOptions\n );\n }\n\n /**\n * Adds a campaign to the user's favorites.\n * @param id - The ID of the campaign to add to favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the FavoriteResponse.\n */\n public async addToFavorite(id: string, requestOptions?: RequestOptions): Promise<ServiceResponse<FavoriteResponse>> {\n return await this.post(`campaign/${id}/favourite`, {}, requestOptions);\n }\n\n /**\n * Removes a campaign from user's favorites.\n * @param id - The ID of the campaign to remove from favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the FavoriteResponse.\n */\n public async removeFromFavorite(\n id: string,\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<FavoriteResponse>> {\n return await this.delete(`campaign/${id}/favourite`, requestOptions);\n }\n\n /**\n * Redeems a campaign.\n *\n * @param params - The parameters for redeeming the campaign.\n * @param params.id - The ID of the campaign to redeem.\n * @param params.addressKey - The address key of a user's address.\n * @param params.contactNumber - The contact number of the user.\n * @param params.options - Additional options for the redemption.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing the redeem response.\n */\n public async redeem(\n params: {\n id: string;\n addressKey?: string;\n contactNumber?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RedeemResponse>> {\n return await this.post(\n `campaign/${params.id}/redeem`,\n {\n address_key: params.addressKey,\n contact_number: params.contactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Redeems a campaign in bulk.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the campaign to redeem.\n * @param params.quantity - The quantity to redeem.\n * @param params.options - Additional options for the redemption.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing the redeem response.\n */\n public async bulkRedeem(\n params: {\n id: string;\n quantity: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RedeemResponse>> {\n return await this.post(\n `campaign/${params.id}/bulkredeem`,\n {\n quantity: params.quantity,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { CartCountResponse } from '../../models/cart-count-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CartApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Adds an item to the cart.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the item to add to the cart.\n * @param params.mode - The mode off adding.\n * @param params.qty - The quantity of the item.\n * @param params.sideCampaignJson - The side campaign JSON.\n * @param params.options - Additional options for adding the item to the cart.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the cart count response.\n */\n public async addCart(\n params: {\n id: string;\n mode?: string;\n qty?: number;\n sideCampaignJson?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CartCountResponse>> {\n return await this.post(\n `cart/${params.id}/add`,\n {\n mode: params.mode,\n qty: params.qty,\n sideCampaignJson: params.sideCampaignJson,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the count of items in the cart.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.\n */\n public async cartCount(requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>> {\n return await this.get(this.baseUrl + 'cart/count', {}, requestOptions);\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { Category } from '../../models/category';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CategoryApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the campaign categories.\n *\n * @param params - The parameters.\n * @param params.config - The configuration string.\n * @param params.byConfig - Optional. Specifies whether to retrieve categories by configuration.\n * @param params.options - Optional. Additional options for retrieving the categories.\n * @param requestOptions - Optional. The request options.\n * @returns A promise that resolves to a service response containing an array of categories.\n */\n public async categories(\n params: {\n config: string;\n byConfig?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Category[]>> {\n return await this.get(\n 'campaigncat/menu',\n {\n byConfig: params.byConfig,\n config: params.config,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Consent } from '../../models/consent';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class ConsentApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the user's consent information.\n *\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the consent information.\n */\n public async consent(requestOptions?: RequestOptions): Promise<ServiceResponse<Consent>> {\n return await this.get<Consent>('consent', requestOptions);\n }\n\n /**\n * Retrieves the user's consent information.\n *\n * @param params - The parameters for the consent request.\n * @param params.termsAndConditions - The terms and conditions consent version.\n * @param params.dataPrivacy - The data privacy consent version.\n * @param params.marketingOption - The marketing option consent version.\n * @param params.email - The email consent (0 for false, 1 for true).\n * @param params.sms - The SMS consent (0 for false, 1 for true).\n * @param params.notification - The notification consent (0 for false, 1 for true).\n * @param params.line - The LINE consent (0 for false, 1 for true).\n * @param params.analyticsBuzzebeesCookies - The analytics Buzzebees cookies consent (0 for false, 1 for true).\n * @param params.analyticsFirebaseCookies - The analytics Firebase cookies consent (0 for false, 1 for true).\n * @param params.analyticsGoogleCookies - The analytics Google cookies consent (0 for false, 1 for true).\n * @param params.analyticsMetaCookies - The analytics Meta cookies consent (0 for false, 1 for true).\n * @param params.analyticsOtherCookies - The analytics other cookies consent (0 for false, 1 for true).\n * @param params.functionalCookies - The functional cookies consent (0 for false, 1 for true).\n * @param params.marketingCookies - The marketing cookies consent (0 for false, 1 for true).\n * @param params.necessaryCookies - The necessary cookies consent (0 for false, 1 for true).\n * @param params.options - Additional params.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the consent information.\n */\n public async updateConsent(\n params: {\n termsAndConditions?: string;\n dataPrivacy?: string;\n marketingOption?: string;\n email?: string;\n sms?: string;\n notification?: string;\n line?: string;\n analyticsBuzzebeesCookies?: string;\n analyticsFirebaseCookies?: string;\n analyticsGoogleCookies?: string;\n analyticsMetaCookies?: string;\n analyticsOtherCookies?: string;\n functionalCookies?: string;\n marketingCookies?: string;\n necessaryCookies?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Consent>> {\n return await this.post(\n 'consent',\n {\n termandcondition: params.termsAndConditions,\n dataprivacy: params.dataPrivacy,\n marketingoption: params.marketingOption,\n email: params.email,\n sms: params.sms,\n notification: params.notification,\n line: params.line,\n analyticsBuzzebeesCookies: params.analyticsBuzzebeesCookies,\n analyticsFirebaseCookies: params.analyticsFirebaseCookies,\n analyticsGoogleCookies: params.analyticsGoogleCookies,\n analyticsMetaCookies: params.analyticsMetaCookies,\n analyticsOtherCookies: params.analyticsOtherCookies,\n functionalCookies: params.functionalCookies,\n marketingCookies: params.marketingCookies,\n necessaryCookies: params.necessaryCookies,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Unconsents the user.\n *\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the result of the unconsent operation.\n */\n public async unconsent(requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post<any>('consent/unconsent', {}, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { CouponResponse } from '../../models/coupon-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CouponApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Processes coupon codes.\n *\n * @param params - The parameters.\n * @param params.codes - The coupon codes to process.\n * @param params.options - Additional options for processing coupon codes.\n * @param requestOptions - The options for making the API request.\n * @returns A promise that resolves to a service response containing the coupon response.\n */\n public async processCodes(\n params: {\n codes: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CouponResponse>> {\n return await this.post(\n 'coupon/process',\n {\n 'codes[]': params.codes,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Dashboard } from '../../models/dashboard';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class DashboardApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the main dashboard data.\n *\n * @param params - The parameters.\n * @param params.appName - The name of the application.\n * @param params.locale - The locale number.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a service response containing an array of Dashboard objects.\n */\n public async mainDashboard(\n params: {\n appName: string;\n locale: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Dashboard[]>> {\n return await this.get(\n 'dashboard/main',\n {\n app_name: params.appName,\n locale: params.locale,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves a sub-dashboard data.\n *\n * @param params - The parameters.\n * @param params.dashboardName - The name of the sub-dashboard to retrieve.\n * @param params.locale - The locale of the sub-dashboard.\n * @param params.options - Additional options for retrieving the sub-dashboard.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing an array of dashboards.\n */\n public async subDashboard(\n params: {\n dashboardName: string;\n locale: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Dashboard[]>> {\n return await this.get(\n `dashboard/${params.dashboardName}`,\n {\n locale: params.locale,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Purchase } from '../../models/purchase';\nimport { UseCampaignResponse } from '../../models/use-campaign-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class HistoryApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the redeem histories based on the specified parameters.\n *\n * @param params - The parameters for retrieving redeem histories.\n * @param params.byConfig - Indicates whether to retrieve redeem histories by config.\n * @param params.config - The config for retrieving redeem histories.\n * @param params.skip - The number of records to skip.\n * @param params.top - The number of records to retrieve.\n * @param params.locale - The locale for retrieving redeem histories (optional).\n * @param params.startDate - The start date for retrieving redeem histories (optional).\n * @param params.endDate - The end date for retrieving redeem histories (optional).\n * @param params.options - Additional options for retrieving redeem histories (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a service response containing an array of purchase objects.\n */\n public async redeemHistories(\n params: {\n byConfig: boolean;\n config: string;\n skip: number;\n top: number;\n locale?: number;\n startDate?: string;\n endDate?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Purchase[]>> {\n return await this.get(\n 'redeem',\n {\n byConfig: params.byConfig,\n config: params.config,\n skip: params.skip,\n top: params.top,\n locale: params.locale,\n startdate: params.startDate,\n enddate: params.endDate,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Marks the specified redeem key as used.\n *\n * @param params - The parameters.\n * @param params.redeemKey - The redeem key for the campaign.\n * @param params.options - Additional options for using the campaign.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing the result of the redemption.\n */\n public async use(\n params: {\n redeemKey: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<UseCampaignResponse>> {\n return await this.post(\n `redeem/${params.redeemKey}/use`,\n {\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { LineAuthResponse } from '../../models/line-auth-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class LineApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Authenticates with the LINE API.\n *\n * @param params - The authentication parameters.\n * @param params.grantType - The grant type.\n * @param params.code - The code.\n * @param params.clientId - The client ID.\n * @param params.clientSecret - The client secret.\n * @param params.redirectUrl - The redirect URL.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the LineAuthResponse.\n */\n public async lineAuth(\n params: {\n grantType: string;\n code: string;\n clientId: string;\n clientSecret: string;\n redirectUrl: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LineAuthResponse>> {\n return await this.post(\n 'oauth2/v2.1/token',\n {\n grant_type: params.grantType,\n code: params.code,\n client_id: params.clientId,\n client_secret: params.clientSecret,\n redirect_uri: params.redirectUrl,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { Notification } from '../../models';\n\nexport class NotificationApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves notifications.\n *\n * @param params - The parameters for retrieving notifications.\n * @param params.mode - The mode for retrieving notifications (new or all)\n * @param params.sortBy - The sort order for the notifications (createdate_desc or createdate_asc)\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing an array of notifications.\n */\n public async notifications(\n params: {\n mode: string | 'new' | 'all';\n sortBy: string | 'createdate_desc' | 'createdate_asc';\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Notification[]>> {\n return await this.get(\n 'noti',\n {\n mode: params.mode,\n sortBy: params.sortBy,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Marks notifications as read.\n *\n * @param params - The parameters for marking notifications as read.\n * @param params.ids - The IDs(RowKeys) of the notifications to mark as read. (RowKey1, RowKey2)\n * @param params.options - Additional options for marking notifications as read.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing the result of marking notifications as read.\n */\n public async read(\n params: {\n ids: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'noti/read',\n {\n ids: params.ids,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { Place } from '../../models/place';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class PlaceApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves a list of places based on the provided parameters.\n *\n * @param params - The parameters for the place list request.\n * @param params.agencyId - The ID of the agency.\n * @param params.center - The center of the search area.\n * @param params.distance - The distance from the center.\n * @param params.top - The number of places to retrieve.\n * @param params.provinceCode - The province code (optional).\n * @param params.category - The category of the place (optional).\n * @param params.mode - The mode of the place (optional).\n * @param params.requiredCampaign - Indicates whether the place requires a campaign (optional).\n * @param params.keyword - The keyword to search for (optional).\n * @param params.isFavourite - Indicates whether the place is a favourite (optional).\n * @param params.options - Additional options for the request (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a ServiceResponse containing an array of Place objects.\n */\n public async placeList(\n params: {\n agencyId: string;\n center: string;\n distance: number;\n top: number;\n provinceCode?: string;\n category?: string;\n mode?: string;\n requiredCampaign?: boolean;\n keyword?: string;\n isFavourite?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Place[]>> {\n return await this.get(\n 'place',\n {\n agencyId: params.agencyId,\n center: params.center,\n distance: params.distance,\n top: params.top,\n province_code: params.provinceCode,\n category: params.category,\n mode: params.mode,\n require_campaign: params.requiredCampaign,\n q: params.keyword,\n isFavourite: params.isFavourite,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves information about a specific place.\n *\n * @param params - The parameters for the place request.\n * @param params.id - The ID of the place.\n * @param params.agencyId - The ID of the agency.\n * @param params.requiredCampaign - (Optional) Indicates if a campaign is required.\n * @param params.isFavourite - (Optional) Indicates if the place is a favorite.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOptions - (Optional) Additional options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing the place information.\n */\n public async place(\n params: {\n id: string;\n agencyId: string;\n requiredCampaign?: boolean;\n isFavourite?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Place>> {\n return await this.get(\n `place/${params.id}`,\n {\n agencyId: params.agencyId,\n require_campaign: params.requiredCampaign,\n isFavourite: params.isFavourite,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Adds a place to the user's favorites.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the place to be added to favorites.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the operation.\n */\n public async addToFavourite(params: { id: string }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post(`place/${params.id}/favourite`, {}, requestOptions);\n }\n\n /**\n * Removes a place from the user's favorites.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the place to be removed from favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the operation.\n */\n public async removeFromFavourite(\n params: {\n id: string;\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(`place/${params.id}/unfavourite`, {}, requestOptions);\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { PointLog } from '../../models/point-log';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class PointLogApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the point log.\n *\n * @param params - The parameters for retrieving the point log.\n * @param params.month - The month for which to retrieve the point log.\n * @param params.type - (Optional) The type of point log to retrieve. (earn/burn/etc)\n * @param params.lastRowKey - (Optional) The last row key for pagination.\n * @param params.top - (Optional) The maximum number of records to retrieve.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOption - (Optional) The request options.\n * @returns A promise that resolves to a service response containing an array of point logs.\n */\n public async getPointLog(\n params: {\n month: string;\n type?: string;\n lastRowKey?: string;\n top?: number;\n options?: { [key: string]: any };\n },\n requestOption?: RequestOptions\n ): Promise<ServiceResponse<PointLog[]>> {\n return await this.get(\n 'log/points',\n {\n month: params.month,\n type: params?.type,\n lastRowKey: params?.lastRowKey,\n top: params?.top,\n ...params.options,\n },\n requestOption\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { ConfirmOtpResponse, ExpiringPoints, ProfileResponse, StatusResponse, UpdatedPoints } from '../../models';\n\nexport class ProfileApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the profile information for the current user.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the profile information.\n */\n public async profile(requestOptions?: RequestOptions): Promise<ServiceResponse<ProfileResponse>> {\n return await this.get('profile/me', {}, requestOptions);\n }\n\n /**\n * Updates the user profile with the provided parameters.\n *\n * @param params - The parameters for updating the profile.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the updated profile.\n */\n public async updateProfile(\n params: {\n profileImage?: File;\n firstName?: string;\n lastName?: string;\n contactNumber?: string;\n email?: string;\n notification?: boolean;\n locale?: number;\n title?: string;\n gender?: string;\n birthDate?: number;\n address?: string;\n subdistrictCode?: number;\n subdistrictName?: string;\n districtCode?: number;\n districtName?: string;\n provinceCode?: number;\n provinceName?: string;\n countryCode?: string;\n countryName?: string;\n zipCode?: string;\n idCard?: string;\n passport?: string;\n maritalStatus?: string;\n village?: string;\n building?: string;\n number?: string;\n moo?: string;\n room?: string;\n floor?: string;\n soi?: string;\n city?: string;\n road?: string;\n landmark?: string;\n alternateContactNumber?: string;\n homeContactNumber?: string;\n nationality?: string;\n religion?: string;\n location?: string;\n latitude?: number;\n longitude?: number;\n income?: string;\n interests?: string;\n region?: string;\n phonepurchase?: number;\n highestEducation?: string;\n occupation?: string;\n remark?: string;\n displayName?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ProfileResponse>> {\n return await this.post(\n 'profile/me',\n {\n data: params.profileImage,\n firstname: params.firstName,\n lastname: params.lastName,\n contact_number: params.contactNumber,\n email: params.email,\n notification: params.notification,\n locale: params.locale,\n title: params.title,\n gender: params.gender,\n birthdate: params.birthDate,\n address: params.address,\n subdistrict_code: params.subdistrictCode,\n subdistrict_name: params.subdistrictName,\n district_code: params.districtCode,\n district_name: params.districtName,\n province_code: params.provinceCode,\n province_name: params.provinceName,\n country_code: params.countryCode,\n country_name: params.countryName,\n Zipcode: params.zipCode,\n idCard: params.idCard,\n passport: params.passport,\n maritalstatus: params.maritalStatus,\n village: params.village,\n building: params.building,\n number: params.number,\n moo: params.moo,\n room: params.room,\n floor: params.floor,\n soi: params.soi,\n city: params.city,\n road: params.road,\n landmark: params.landmark,\n alternate_contact_number: params.alternateContactNumber,\n home_contact_number: params.homeContactNumber,\n nationality: params.nationality,\n religion: params.religion,\n location: params.location,\n latitude: params.latitude,\n longitude: params.longitude,\n income: params.income,\n interests: params.interests,\n region: params.region,\n phonepurchase: params.phonepurchase,\n highesteducation: params.highestEducation,\n occupation: params.occupation,\n remark: params.remark,\n displayname: params.displayName,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...(requestOptions?.headers ? requestOptions.headers : {}),\n },\n params: requestOptions?.params,\n data: requestOptions?.data,\n }\n );\n }\n\n /**\n * Changes the user's password.\n *\n * @param params - The parameters.\n * @param params.current - The current password.\n * @param params.change - The new password.\n * @param params.options - Optional additional options.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the status response.\n */\n public async changePassword(\n params: {\n current: string;\n change: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<StatusResponse>> {\n return await this.post(\n 'profile/me/change_password',\n {\n current: params.current,\n change: params.change,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Updates the shipping information for the user.\n *\n * @param params - The parameters for updating the shipping information.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing the updated shipping information.\n */\n public async updateShipping(\n params: {\n shippingFirstName?: string;\n shippingLastName?: string;\n shippingProvinceCode?: string;\n shippingDistrictCode?: string;\n shippingSubDistrictCode?: string;\n shippingZipCode?: string;\n shippingAddress?: string;\n shippingProvinceName?: string;\n shippingDistrictName?: string;\n shippingSubFDistrictName?: string;\n shippingContactNumber?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'profile/me/shipping',\n {\n shippingfirstname: params.shippingFirstName,\n shippinglastname: params.shippingLastName,\n shipping_province_code: params.shippingProvinceCode,\n shipping_district_code: params.shippingDistrictCode,\n shipping_subdistrict_code: params.shippingSubDistrictCode,\n shipping_zipcode: params.shippingZipCode,\n shipping_address: params.shippingAddress,\n shipping_province_name: params.shippingProvinceName,\n shipping_district_name: params.shippingDistrictName,\n shipping_subdistrict_name: params.shippingSubFDistrictName,\n shipping_contact_number: params.shippingContactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Changes the contact number of the user.\n *\n * @param params - The parameters for changing the contact number.\n * @param params.contactNumber - The new contact number.\n * @param params.otp - The one-time password.\n * @param params.refCode - The reference code.\n * @param params.idCard - (Optional) The ID card for additional verification.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOptions - (Optional) The options for the request.\n * @returns A promise that resolves to the response of the request.\n */\n public async changeContactNumber(\n params: {\n contactNumber: string;\n otp: string;\n refCode: string;\n idCard?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ConfirmOtpResponse>> {\n return await this.post(\n 'auth/change_authen',\n {\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n idcard: params.idCard,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Changes the contact number for the current user.\n *\n * @param params - The parameters for changing the contact number.\n * @param params.contactNumber - The new contact number.\n * @param params.otp - The one-time password for verification.\n * @param params.refCode - The reference code for verification.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the result of the request.\n */\n public async changeContactNumberV2(\n params: {\n contactNumber: string;\n otp: string;\n refCode: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'profile/me/contact_number',\n {\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the updated points for the current user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the updated points.\n */\n public async points(requestOptions?: RequestOptions): Promise<ServiceResponse<UpdatedPoints>> {\n return await this.get('profile/me/updated_points', {}, requestOptions);\n }\n\n /**\n * Retrieves the expiring points for the current user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the expiring points.\n */\n public async expiringPoints(requestOptions?: RequestOptions): Promise<ServiceResponse<ExpiringPoints>> {\n return await this.get('profile/me/allexpiring_points', {}, requestOptions);\n }\n\n /**\n * Deactivates the user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the deactivation.\n */\n public async deactivate(requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post('profile/me/deactivate', {}, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { RegistrationResponse } from '../../models/registration-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class RegistrationApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Registers a user with the provided registration parameters.\n *\n * @param params - The registration parameters.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a service response containing the registration response.\n */\n public async register(\n params: {\n appId: string;\n uuid: string;\n macAddress: string;\n os: string;\n platform: string;\n clientVersion: string;\n deviceNotificationEnable: boolean;\n username: string;\n password: string;\n confirmPassword: string;\n firstName: string;\n lastName: string;\n contactNumber: string;\n otp: string;\n refCode: string;\n address?: string;\n gender?: string;\n birthdate?: number;\n email?: string;\n refUserCode?: string;\n info?: string;\n termAndConditionVersion?: string;\n dataPrivacyVersion?: string;\n marketingOptionsVersion?: string;\n emailMarketing?: string;\n smsMarketing?: string;\n notificationMarketing?: string;\n lineMarketing?: string;\n phoneMarketing?: string;\n options: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RegistrationResponse>> {\n return await this.post(\n 'auth/register',\n {\n app_id: params.appId,\n uuid: params.uuid,\n mac_address: params.macAddress,\n os: params.os,\n platform: params.platform,\n client_version: params.clientVersion,\n device_noti_enable: params.deviceNotificationEnable,\n username: params.username,\n password: params.password,\n confirmpassword: params.confirmPassword,\n firstname: params.firstName,\n lastname: params.lastName,\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n address: params.address,\n gender: params.gender,\n birthdate: params.birthdate,\n email: params.email,\n refusercode: params.refUserCode,\n info: params.info,\n termandcondition: params.termAndConditionVersion,\n dataprivacy: params.dataPrivacyVersion,\n marketingOption: params.marketingOptionsVersion,\n mktoption_email: params.emailMarketing,\n mktoption_sms: params.smsMarketing,\n mktoption_notification: params.notificationMarketing,\n mktoption_line: params.lineMarketing,\n mktoption_phone: params.phoneMarketing,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { AuthenticateApi } from './auth/auth-api';\nimport { BadgeApi } from './badge/badge-api';\nimport { CampaignApi } from './campaign/campaign-api';\nimport { CartApi } from './cart/cart-api';\nimport { CategoryApi } from './category/category-api';\nimport { ConsentApi } from './consent/consent-api';\nimport { CouponApi } from './coupon/coupon-api';\nimport { DashboardApi } from './dashboard/dashboard-api';\nimport { HistoryApi } from './history/history-api';\nimport { LineApi } from './line/line-api';\nimport { NotificationApi } from './notification/notification-api';\nimport { PlaceApi } from './place/place-api';\nimport { PointLogApi } from './point-log/point-log-api';\nimport { ProfileApi } from './profile/profile-api';\nimport { RegistrationApi } from './registration/registration-api';\n\nexport class BzbsService {\n client: AxiosInstance;\n baseUrl: string;\n baseLineUrl: string;\n\n authApi: AuthenticateApi;\n badgeApi: BadgeApi;\n campaignApi: CampaignApi;\n cartApi: CartApi;\n categoryApi: CategoryApi;\n consentApi: ConsentApi;\n couponApi: CouponApi;\n dashboardApi: DashboardApi;\n historyApi: HistoryApi;\n lineApi: LineApi;\n notificationApi: NotificationApi;\n placeApi: PlaceApi;\n pointLogApi: PointLogApi;\n profileApi: ProfileApi;\n registerApi: RegistrationApi;\n\n constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string) {\n this.client = client;\n this.baseUrl = baseUrl;\n this.baseLineUrl = baseLineUrl;\n\n this.authApi = new AuthenticateApi(this.client, this.baseUrl);\n this.badgeApi = new BadgeApi(this.client, this.baseUrl);\n this.campaignApi = new CampaignApi(this.client, this.baseUrl);\n this.cartApi = new CartApi(this.client, this.baseUrl);\n this.categoryApi = new CategoryApi(this.client, this.baseUrl);\n this.consentApi = new ConsentApi(this.client, this.baseUrl);\n this.couponApi = new CouponApi(this.client, this.baseUrl);\n this.dashboardApi = new DashboardApi(this.client, this.baseUrl);\n this.historyApi = new HistoryApi(this.client, this.baseUrl);\n this.lineApi = new LineApi(this.client, this.baseLineUrl ?? '');\n this.notificationApi = new NotificationApi(this.client, this.baseUrl);\n this.placeApi = new PlaceApi(this.client, this.baseUrl);\n this.pointLogApi = new PointLogApi(this.client, this.baseUrl);\n this.profileApi = new ProfileApi(this.client, this.baseUrl);\n this.registerApi = new RegistrationApi(this.client, this.baseUrl);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,IAAM,cAAN,MAAkB;AAAA,EAIvB,YAAY,QAAuB,SAAiB;AAClD,SAAK,SAAS;AACd,SAAK,UAAU;AACf,QAAI,CAAC,KAAK,SAAS;AACjB,YAAM;AAAA,IACR;AACA,QAAI,CAAC,KAAK,QAAQ;AAChB,YAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEM,IAAO,MAAc,QAAc,gBAA8D;AAAA;AA/BzG;AAgCI,UAAI;AACF,cAAM,WAAW,MAAM,KAAK,OAAO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E;AAuCI,SAAK,SAAS;AACd,SAAK,UAAU;AACf,SAAK,cAAc;AAEnB,SAAK,UAAU,IAAI,gBAAgB,KAAK,QAAQ,KAAK,OAAO;AAC5D,SAAK,WAAW,IAAI,SAAS,KAAK,QAAQ,KAAK,OAAO;AACtD,SAAK,cAAc,IAAI,YAAY,KAAK,QAAQ,KAAK,OAAO;AAC5D,SAAK,UAAU,IAAI,QAAQ,KAAK,QAAQ,KAAK,OAAO;AACpD,SAAK,cAAc,IAAI,YAAY,KAAK,QAAQ,KAAK,OAAO;AAC5D,SAAK,aAAa,IAAI,WAAW,KAAK,QAAQ,KAAK,OAAO;AAC1D,SAAK,YAAY,IAAI,UAAU,KAAK,QAAQ,KAAK,OAAO;AACxD,SAAK,eAAe,IAAI,aAAa,KAAK,QAAQ,KAAK,OAAO;AAC9D,SAAK,aAAa,IAAI,WAAW,KAAK,QAAQ,KAAK,OAAO;AAC1D,SAAK,UAAU,IAAI,QAAQ,KAAK,SAAQ,UAAK,gBAAL,YAAoB,EAAE;AAC9D,SAAK,kBAAkB,IAAI,gBAAgB,KAAK,QAAQ,KAAK,OAAO;AACpE,SAAK,WAAW,IAAI,SAAS,KAAK,QAAQ,KAAK,OAAO;AACtD,SAAK,cAAc,IAAI,YAAY,KAAK,QAAQ,KAAK,OAAO;AAC5D,SAAK,aAAa,IAAI,WAAW,KAAK,QAAQ,KAAK,OAAO;AAC1D,SAAK,cAAc,IAAI,gBAAgB,KAAK,QAAQ,KAAK,OAAO;AAAA,EAClE;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/api/base-service.ts","../src/api/auth/auth-api.ts","../src/api/badge/badge-api.ts","../src/api/campaign/campaign-api.ts","../src/api/cart/cart-api.ts","../src/api/category/category-api.ts","../src/api/consent/consent-api.ts","../src/api/coupon/coupon-api.ts","../src/api/dashboard/dashboard-api.ts","../src/api/history/history-api.ts","../src/api/line/line-api.ts","../src/api/notification/notification-api.ts","../src/api/place/place-api.ts","../src/api/point-log/point-log-api.ts","../src/api/profile/profile-api.ts","../src/api/registration/registration-api.ts","../src/api/bzbs-service.ts"],"sourcesContent":["import { AxiosInstance, AxiosResponse } from 'axios';\nimport { BzbsErrorResponse } from '../models/bzbs-error-response';\n\nexport type ServiceResponse<T> = {\n model: T | undefined;\n response: AxiosResponse | undefined;\n error: any | undefined | BzbsErrorResponse;\n};\n\nexport type RequestOptions = {\n headers?: { [key: string]: string };\n params?: { [key: string]: string };\n data?: { [key: string]: string } | any;\n baseUrl?: string;\n};\n\nexport class BaseService {\n client: AxiosInstance;\n baseUrl: string;\n\n constructor(client: AxiosInstance, baseUrl: string) {\n this.client = client;\n this.baseUrl = baseUrl;\n if (!this.baseUrl) {\n throw 'Please check base_URL';\n }\n if (!this.client) {\n throw 'Please check client';\n }\n }\n\n async get<T>(path: string, params?: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.get<T>(this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path), {\n params: {\n ...(params ? params : {}),\n ...(requestOptions?.params ? requestOptions.params : {}),\n },\n headers: requestOptions?.headers,\n data: requestOptions?.data,\n });\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async post<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.post<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async put<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.put<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async delete<T>(path: string, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.delete<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n async patch<T>(path: string, data: any, requestOptions?: RequestOptions): Promise<ServiceResponse<T>> {\n try {\n const response = await this.client.patch<T>(\n this.joinUrl(requestOptions?.baseUrl ?? this.baseUrl, path),\n data,\n requestOptions\n );\n return {\n model: response?.data,\n response: response,\n error: undefined,\n };\n } catch (error: any) {\n return {\n model: undefined,\n response: undefined,\n error: error.response ? (error.response.data as BzbsErrorResponse) : error.response ?? error,\n };\n }\n }\n\n joinUrl(baseUrl: string, path: string): string {\n baseUrl = baseUrl.endsWith('/') ? baseUrl : baseUrl + '/';\n const url = new URL(path, baseUrl);\n return url.toString();\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { LoginResponse } from '../../models/login-model';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { ForgetPasswordResponse } from '../../models/forget-password-response';\nimport { ConfirmOtpResponse, StatusResponse } from '../../models';\nimport { OtpResponse } from '../../models/otp-response';\nimport { ValidateOtpResponse } from '../../models/validate-otp-response';\nimport { ResumeResponse } from '../../models/resume-response';\nimport { Version } from '../../models/version';\n\nexport class AuthenticateApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Performs a device login using the provided device uuid.\n *\n * @param params - The parameters.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async deviceLogin(\n params: {\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/device_login',\n {\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Facebook login using the provided Facebook access token.\n *\n * @param params - The parameters.\n * @param accessToken - The access token obtained from Facebook.\n * @param appId - Your application id.\n * @param uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async facebookLogin(\n params: {\n accessToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/login',\n {\n access_token: params.accessToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Google login using the provided id token, app id, and uuid.\n *\n * @param params - The parameters.\n * @param params.idToken - The Google id token.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async googleLogin(\n params: {\n idToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/google_login',\n {\n id_token: params.idToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a Line login using the provided id token, Line access token and authorization code.\n *\n * @param params - The parameters.\n * @param params.idToken - The Line id token.\n * @param params.lineAccessToken - The Line access token.\n * @param params.authorizationCode - The Line authorization code.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async lineLogin(\n params: {\n idToken: string;\n lineAccessToken: string;\n authorizationCode: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/line_login',\n {\n id_token: params.idToken,\n line_access_token: params.lineAccessToken,\n authorization_code: params.authorizationCode,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs an Apple login using the provided id token and Apple refresh token.\n *\n * @param params - The parameters.\n * @param params.idToken - The Apple id token.\n * @param params.refreshToken - The Apple refresh token.\n * @param params.appId - Your application id.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async appleLogin(\n params: {\n idToken: string;\n refreshToken: string;\n appId: string;\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/apple_login',\n {\n id_token: params.idToken,\n refresh_token: params.refreshToken,\n app_id: params.appId,\n uuid: params.uuid,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a username and password login using the provided username and password.\n *\n * @param params - The parameters.\n * @param params.username - The username of the user.\n * @param params.password - The password of the user.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.options - (Optional) Additional params for the request.\n * @returns A promise that resolves to a ServiceResponse containing the login response.\n */\n public async usernamePasswordLogin(\n params: {\n username: string;\n password: string;\n uuid: string;\n appId: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LoginResponse>> {\n return await this.post<LoginResponse>(\n 'auth/bzbs_login',\n {\n username: params.username,\n password: params.password,\n uuid: params.uuid,\n app_id: params.appId,\n device_noti_enable: 'true',\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Performs a logout for the user.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the logout response.\n */\n public async logout(\n params: {\n uuid: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post<any>(\n 'auth/logout',\n {\n uuid: params.uuid,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Sends a forget password request to the user.\n *\n * @param params - The parameters.\n * @param params.contact - The contact information for the user (email or contact number).\n * @param params.type - The type of contact information.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the forget password response.\n */\n public async forgetPassword(\n params: {\n contact: string;\n type: 'email' | 'contact_number';\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ForgetPasswordResponse>> {\n return await this.get<ForgetPasswordResponse>(\n `profile/${params.contact}/forget_password`,\n {\n type: params.type,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Resets the password for a user.\n *\n * @param params - The parameters.\n * @param params.contact - The contact information for the user (email or contact number).\n * @param params.refCode - The reference code for password reset.\n * @param params.newPassword - The new password to set.\n * @param params.otp - (Optional) The one-time password.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the status response.\n */\n public async resetPassword(\n params: {\n contact: string;\n refCode: string;\n newPassword: string;\n otp?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<StatusResponse>> {\n return await this.post<StatusResponse>(\n `profile/${params.contact}/forget_password`,\n {\n refcode: params.refCode,\n change: params.newPassword,\n otp: params.otp,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Sends an OTP (One-Time Password) to the user for authentication.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.contactNumber - The contact number for the user.\n * @param params.channel - (Optional) The channel to use for OTP delivery.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the OTP response.\n */\n public async getOtp(\n params: {\n uuid: string;\n appId: string;\n contactNumber: string;\n channel?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<OtpResponse>> {\n return await this.get<OtpResponse>(\n 'auth/otp',\n {\n uuid: params.uuid,\n app_id: params.appId,\n contact_number: params.contactNumber,\n channel: params.channel,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Confirm the OTP (One-Time Password) for authentication.\n *\n * @param params - The parameters.\n * @param params.otp - The OTP to confirm.\n * @param params.refCode - The reference code for the OTP.\n * @param params.contactNumber - The contact number for the user.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the confirm OTP response.\n */\n public async confirmOtp(\n params: {\n otp: string;\n refCode: string;\n contactNumber: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ConfirmOtpResponse>> {\n return await this.post<ConfirmOtpResponse>(\n 'auth/bzbs_authen',\n {\n otp: params.otp,\n refcode: params.refCode,\n contact_number: params.contactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Validate the OTP (One-Time Password) for authentication.\n *\n * @param params - The parameters.\n * @param params.appId - Your application id.\n * @param params.otp - The OTP to validate.\n * @param params.refCode - The reference code for the OTP.\n * @param params.contactNumber - The contact number for the user.\n * @param params.use - Whether to use the OTP after validation.\n * @param params.channel - (Optional) The channel to use for OTP delivery.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the validate OTP response.\n */\n public async validateOtp(\n params: {\n appId: string;\n otp: string;\n refCode: string;\n contactNumber: string;\n use: boolean;\n channel?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ValidateOtpResponse>> {\n return await this.post<ValidateOtpResponse>(\n 'auth/otp',\n {\n app_id: params.appId,\n otp: params.otp,\n refcode: params.refCode,\n contact_number: params.contactNumber,\n use: params.use,\n channel: params.channel,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieve a new token and update the current device token.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.clientVersion - The version of the client.\n * @param params.deviceToken - The token of the device.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the resume response.\n */\n public async resume(\n params: {\n uuid: string;\n appId: string;\n clientVersion?: string;\n deviceToken?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ResumeResponse>> {\n return await this.post<ResumeResponse>(\n 'auth/device_resume',\n {\n uuid: params.uuid,\n app_id: params.appId,\n client_version: params.clientVersion,\n device_token: params.deviceToken,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Update the device token for push notification.\n *\n * @param params - The parameters.\n * @param params.uuid - The unique device identifier.\n * @param params.appId - Your application id.\n * @param params.clientVersion - The version of the client.\n * @param params.deviceToken - The token of the device.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the resume response.\n */\n public async updateDevice(\n params: {\n uuid: string;\n appId: string;\n clientVersion?: string;\n deviceToken?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ResumeResponse>> {\n return await this.post<ResumeResponse>(\n 'auth/device_resume',\n {\n uuid: params.uuid,\n app_id: params.appId,\n client_version: params.clientVersion,\n device_token: params.deviceToken,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the version information for the current app version.\n * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the version information.\n */\n public async version(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<Version>> {\n return await this.get<Version>('auth/version', { client_version: clientVersion }, requestOptions);\n }\n\n /**\n * Retrieves the raw version information for the current app version.\n * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the raw version information.\n */\n public async versionRaw(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.get<any>('auth/version', { client_version: clientVersion }, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Badge } from '../../models/badge';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class BadgeApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves user badges.\n *\n * @param params - The parameters.\n * @param params.badgeId - The ID of the badge to retrieve.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - (Optional) Additional options for the request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Badge objects.\n */\n public async getBadges(\n params: {\n badgeId?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Badge[]>> {\n return await this.get<Badge[]>(\n 'profile/me/badges',\n {\n badge_id: params.badgeId,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Campaign } from '../../models/campaign-model';\nimport { CampaignDetail } from '../../models/campaign-detail-model';\nimport { FavoriteResponse } from '../../models/favorite-response-model';\nimport { RedeemResponse } from '../../models/redeem-response-model';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CampaignApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves a list of campaigns based on the provided parameters.\n *\n * @param params - The parameters for the campaign list.\n * @param params.config - The configuration for the campaign (list name).\n * @param params.cat - The category for the campaign.\n * @param params.byConfig - A boolean indicating whether to filter by configuration.\n * @param params.skip - The number of campaigns to skip.\n * @param params.top - The number of campaigns to retrieve.\n * @param params.deviceLocale - The device locale for the campaigns.\n * @param params.locale - The locale for the campaigns.\n * @param params.keyword - The keyword for the campaigns.\n * @param params.startDate - The start date for the campaigns.\n * @param params.sponsorId - The sponsor ID for the campaigns.\n * @param params.maxPoints - The maximum points for the campaigns.\n * @param params.minPoints - The minimum points for the campaigns.\n * @param params.sortBy - The sort order for the campaigns.\n * @param params.center - The coordinates for the center of the campaigns.\n * @param params.hashTags - The hash tags for the campaigns.\n * @param params.locationAgencyId - The location agency ID for the campaigns.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.\n */\n public async campaign(\n params: {\n config: string;\n cat?: string;\n byConfig?: boolean;\n skip?: number;\n top?: number;\n deviceLocale?: number;\n locale?: number;\n keyword?: string;\n startDate?: string;\n sponsorId?: string;\n maxPoints?: string;\n minPoints?: string;\n sortBy?: string;\n center?: string;\n hashTags?: string;\n locationAgencyId?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Campaign[]>> {\n return await this.get<Campaign[]>(\n 'campaign',\n {\n config: params.config,\n cat: params.cat,\n byConfig: params.byConfig,\n skip: params.skip,\n top: params.top,\n device_locale: params.deviceLocale,\n locale: params.locale,\n q: params.keyword,\n startdate: params.startDate,\n sponsorId: params.sponsorId,\n maxpoints: params.maxPoints,\n minpoints: params.minPoints,\n sortBy: params.sortBy,\n center: params.center,\n tags: params.hashTags,\n locationAgencyId: params.locationAgencyId,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves a list of user's favorite campaigns.\n *\n * @param params - The parameters.\n * @param params.skip - The number of campaigns to skip.\n * @param params.top - The number of campaigns to retrieve.\n * @param params.locale - The locale for the campaigns.\n * @param params.options - (Optional) Additional params for the request.\n * @param requestOptions - The options for the API request.\n * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.\n */\n public async favoriteCampaigns(\n params: {\n skip?: number;\n top?: number;\n locale?: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Campaign[]>> {\n return await this.get(\n 'profile/me/favourite_campaign',\n {\n params: {\n skip: params.skip,\n top: params.top,\n locale: params.locale,\n ...params.options,\n },\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves the details of a campaign.\n *\n * @param param - The parameters.\n * @param param.id - The ID of the campaign.\n * @param param.deviceLocale - The device locale (optional).\n * @param param.options - Additional options for the request (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a service response containing the campaign details.\n */\n public async campaignDetails(\n param: {\n id: string;\n deviceLocale?: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CampaignDetail>> {\n return await this?.get(\n `campaign/${param.id}`,\n {\n params: {\n device_locale: param.deviceLocale,\n ...param.options,\n },\n },\n requestOptions\n );\n }\n\n /**\n * Adds a campaign to the user's favorites.\n * @param id - The ID of the campaign to add to favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the FavoriteResponse.\n */\n public async addToFavorite(id: string, requestOptions?: RequestOptions): Promise<ServiceResponse<FavoriteResponse>> {\n return await this.post(`campaign/${id}/favourite`, {}, requestOptions);\n }\n\n /**\n * Removes a campaign from user's favorites.\n * @param id - The ID of the campaign to remove from favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the FavoriteResponse.\n */\n public async removeFromFavorite(\n id: string,\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<FavoriteResponse>> {\n return await this.delete(`campaign/${id}/favourite`, requestOptions);\n }\n\n /**\n * Redeems a campaign.\n *\n * @param params - The parameters for redeeming the campaign.\n * @param params.id - The ID of the campaign to redeem.\n * @param params.addressKey - The address key of a user's address.\n * @param params.contactNumber - The contact number of the user.\n * @param params.options - Additional options for the redemption.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing the redeem response.\n */\n public async redeem(\n params: {\n id: string;\n addressKey?: string;\n contactNumber?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RedeemResponse>> {\n return await this.post(\n `campaign/${params.id}/redeem`,\n {\n address_key: params.addressKey,\n contact_number: params.contactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Redeems a campaign in bulk.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the campaign to redeem.\n * @param params.quantity - The quantity to redeem.\n * @param params.options - Additional options for the redemption.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing the redeem response.\n */\n public async bulkRedeem(\n params: {\n id: string;\n quantity: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RedeemResponse>> {\n return await this.post(\n `campaign/${params.id}/bulkredeem`,\n {\n quantity: params.quantity,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { CartCountResponse } from '../../models/cart-count-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { CartAccessResponse } from '../../models';\n\nexport class CartApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Adds an item to the cart.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the item to add to the cart.\n * @param params.mode - The mode off adding.\n * @param params.qty - The quantity of the item.\n * @param params.sideCampaignJson - The side campaign JSON.\n * @param params.options - Additional options for adding the item to the cart.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the cart count response.\n */\n public async addCart(\n params: {\n id: string;\n mode?: string;\n qty?: number;\n sideCampaignJson?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CartCountResponse>> {\n return await this.post(\n `cart/${params.id}/add`,\n {\n mode: params.mode,\n qty: params.qty,\n sideCampaignJson: params.sideCampaignJson,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the count of items in the cart.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.\n */\n public async cartCount(requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>> {\n return await this.get(this.baseUrl + 'cart/count', {}, requestOptions);\n }\n\n /**\n * Retrieves the cart access.\n *\n * @param params - The parameters.\n * @param params.errorUrl - The error URL that the user is redirected to when an error occurs.\n * @param params.successUrl - The success URL that the user is redirected to when the operation is successful.\n * @param params.returnUrl - The return URL that the user is redirected to when press back button.\n * @param params.appId - The app ID.\n * @param params.appName - The app name.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the CartAccessResponse.\n */\n public async cartAccess(\n params: {\n errorUrl: string;\n successUrl: string;\n returnUrl: string;\n appId: string;\n appName: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CartAccessResponse>> {\n return await this.post(\n 'setting',\n {\n data: JSON.stringify(params),\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { Category } from '../../models/category';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CategoryApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the campaign categories.\n *\n * @param params - The parameters.\n * @param params.config - The configuration string.\n * @param params.byConfig - Optional. Specifies whether to retrieve categories by configuration.\n * @param params.options - Optional. Additional options for retrieving the categories.\n * @param requestOptions - Optional. The request options.\n * @returns A promise that resolves to a service response containing an array of categories.\n */\n public async categories(\n params: {\n config: string;\n byConfig?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Category[]>> {\n return await this.get(\n 'campaigncat/menu',\n {\n byConfig: params.byConfig,\n config: params.config,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Consent } from '../../models/consent';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class ConsentApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the user's consent information.\n *\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the consent information.\n */\n public async consent(requestOptions?: RequestOptions): Promise<ServiceResponse<Consent>> {\n return await this.get<Consent>('consent', requestOptions);\n }\n\n /**\n * Retrieves the user's consent information.\n *\n * @param params - The parameters for the consent request.\n * @param params.termsAndConditions - The terms and conditions consent version.\n * @param params.dataPrivacy - The data privacy consent version.\n * @param params.marketingOption - The marketing option consent version.\n * @param params.email - The email consent (0 for false, 1 for true).\n * @param params.sms - The SMS consent (0 for false, 1 for true).\n * @param params.notification - The notification consent (0 for false, 1 for true).\n * @param params.line - The LINE consent (0 for false, 1 for true).\n * @param params.analyticsBuzzebeesCookies - The analytics Buzzebees cookies consent (0 for false, 1 for true).\n * @param params.analyticsFirebaseCookies - The analytics Firebase cookies consent (0 for false, 1 for true).\n * @param params.analyticsGoogleCookies - The analytics Google cookies consent (0 for false, 1 for true).\n * @param params.analyticsMetaCookies - The analytics Meta cookies consent (0 for false, 1 for true).\n * @param params.analyticsOtherCookies - The analytics other cookies consent (0 for false, 1 for true).\n * @param params.functionalCookies - The functional cookies consent (0 for false, 1 for true).\n * @param params.marketingCookies - The marketing cookies consent (0 for false, 1 for true).\n * @param params.necessaryCookies - The necessary cookies consent (0 for false, 1 for true).\n * @param params.options - Additional params.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the consent information.\n */\n public async updateConsent(\n params: {\n termsAndConditions?: string;\n dataPrivacy?: string;\n marketingOption?: string;\n email?: string;\n sms?: string;\n notification?: string;\n line?: string;\n analyticsBuzzebeesCookies?: string;\n analyticsFirebaseCookies?: string;\n analyticsGoogleCookies?: string;\n analyticsMetaCookies?: string;\n analyticsOtherCookies?: string;\n functionalCookies?: string;\n marketingCookies?: string;\n necessaryCookies?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Consent>> {\n return await this.post(\n 'consent',\n {\n termandcondition: params.termsAndConditions,\n dataprivacy: params.dataPrivacy,\n marketingoption: params.marketingOption,\n email: params.email,\n sms: params.sms,\n notification: params.notification,\n line: params.line,\n analyticsBuzzebeesCookies: params.analyticsBuzzebeesCookies,\n analyticsFirebaseCookies: params.analyticsFirebaseCookies,\n analyticsGoogleCookies: params.analyticsGoogleCookies,\n analyticsMetaCookies: params.analyticsMetaCookies,\n analyticsOtherCookies: params.analyticsOtherCookies,\n functionalCookies: params.functionalCookies,\n marketingCookies: params.marketingCookies,\n necessaryCookies: params.necessaryCookies,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Unconsents the user.\n *\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the result of the unconsent operation.\n */\n public async unconsent(requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post<any>('consent/unconsent', {}, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { CouponResponse } from '../../models/coupon-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class CouponApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Processes coupon codes.\n *\n * @param params - The parameters.\n * @param params.codes - The coupon codes to process.\n * @param params.options - Additional options for processing coupon codes.\n * @param requestOptions - The options for making the API request.\n * @returns A promise that resolves to a service response containing the coupon response.\n */\n public async processCodes(\n params: {\n codes: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<CouponResponse>> {\n return await this.post(\n 'coupon/process',\n {\n 'codes[]': params.codes,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Dashboard } from '../../models/dashboard';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class DashboardApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the main dashboard data.\n *\n * @param params - The parameters.\n * @param params.appName - The name of the application.\n * @param params.locale - The locale number.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a service response containing an array of Dashboard objects.\n */\n public async mainDashboard(\n params: {\n appName: string;\n locale: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Dashboard[]>> {\n return await this.get(\n 'dashboard/main',\n {\n app_name: params.appName,\n locale: params.locale,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves a sub-dashboard data.\n *\n * @param params - The parameters.\n * @param params.dashboardName - The name of the sub-dashboard to retrieve.\n * @param params.locale - The locale of the sub-dashboard.\n * @param params.options - Additional options for retrieving the sub-dashboard.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing an array of dashboards.\n */\n public async subDashboard(\n params: {\n dashboardName: string;\n locale: number;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Dashboard[]>> {\n return await this.get(\n `dashboard/${params.dashboardName}`,\n {\n locale: params.locale,\n ...params.options,\n },\n requestOptions\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { Purchase } from '../../models/purchase';\nimport { UseCampaignResponse } from '../../models/use-campaign-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class HistoryApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the redeem histories based on the specified parameters.\n *\n * @param params - The parameters for retrieving redeem histories.\n * @param params.byConfig - Indicates whether to retrieve redeem histories by config.\n * @param params.config - The config for retrieving redeem histories.\n * @param params.skip - The number of records to skip.\n * @param params.top - The number of records to retrieve.\n * @param params.locale - The locale for retrieving redeem histories (optional).\n * @param params.startDate - The start date for retrieving redeem histories (optional).\n * @param params.endDate - The end date for retrieving redeem histories (optional).\n * @param params.options - Additional options for retrieving redeem histories (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a service response containing an array of purchase objects.\n */\n public async redeemHistories(\n params: {\n byConfig: boolean;\n config: string;\n skip: number;\n top: number;\n locale?: number;\n startDate?: string;\n endDate?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Purchase[]>> {\n return await this.get(\n 'redeem',\n {\n byConfig: params.byConfig,\n config: params.config,\n skip: params.skip,\n top: params.top,\n locale: params.locale,\n startdate: params.startDate,\n enddate: params.endDate,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Marks the specified redeem key as used.\n *\n * @param params - The parameters.\n * @param params.redeemKey - The redeem key for the campaign.\n * @param params.options - Additional options for using the campaign.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing the result of the redemption.\n */\n public async use(\n params: {\n redeemKey: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<UseCampaignResponse>> {\n return await this.post(\n `redeem/${params.redeemKey}/use`,\n {\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { LineAuthResponse } from '../../models/line-auth-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class LineApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Authenticates with the LINE API.\n *\n * @param params - The authentication parameters.\n * @param params.grantType - The grant type.\n * @param params.code - The code.\n * @param params.clientId - The client ID.\n * @param params.clientSecret - The client secret.\n * @param params.redirectUrl - The redirect URL.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the LineAuthResponse.\n */\n public async lineAuth(\n params: {\n grantType: string;\n code: string;\n clientId: string;\n clientSecret: string;\n redirectUrl: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<LineAuthResponse>> {\n return await this.post(\n 'oauth2/v2.1/token',\n {\n grant_type: params.grantType,\n code: params.code,\n client_id: params.clientId,\n client_secret: params.clientSecret,\n redirect_uri: params.redirectUrl,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { Notification } from '../../models';\n\nexport class NotificationApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves notifications.\n *\n * @param params - The parameters for retrieving notifications.\n * @param params.mode - The mode for retrieving notifications (new or all)\n * @param params.sortBy - The sort order for the notifications (createdate_desc or createdate_asc)\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a service response containing an array of notifications.\n */\n public async notifications(\n params: {\n mode: string | 'new' | 'all';\n sortBy: string | 'createdate_desc' | 'createdate_asc';\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Notification[]>> {\n return await this.get(\n 'noti',\n {\n mode: params.mode,\n sortBy: params.sortBy,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Marks notifications as read.\n *\n * @param params - The parameters for marking notifications as read.\n * @param params.ids - The IDs(RowKeys) of the notifications to mark as read. (RowKey1, RowKey2)\n * @param params.options - Additional options for marking notifications as read.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a service response containing the result of marking notifications as read.\n */\n public async read(\n params: {\n ids: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'noti/read',\n {\n ids: params.ids,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { Place } from '../../models/place';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class PlaceApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves a list of places based on the provided parameters.\n *\n * @param params - The parameters for the place list request.\n * @param params.agencyId - The ID of the agency.\n * @param params.center - The center of the search area.\n * @param params.distance - The distance from the center.\n * @param params.top - The number of places to retrieve.\n * @param params.provinceCode - The province code (optional).\n * @param params.category - The category of the place (optional).\n * @param params.mode - The mode of the place (optional).\n * @param params.requiredCampaign - Indicates whether the place requires a campaign (optional).\n * @param params.keyword - The keyword to search for (optional).\n * @param params.isFavourite - Indicates whether the place is a favourite (optional).\n * @param params.options - Additional options for the request (optional).\n * @param requestOptions - The options for the request (optional).\n * @returns A promise that resolves to a ServiceResponse containing an array of Place objects.\n */\n public async placeList(\n params: {\n agencyId: string;\n center: string;\n distance: number;\n top: number;\n provinceCode?: string;\n category?: string;\n mode?: string;\n requiredCampaign?: boolean;\n keyword?: string;\n isFavourite?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Place[]>> {\n return await this.get(\n 'place',\n {\n agencyId: params.agencyId,\n center: params.center,\n distance: params.distance,\n top: params.top,\n province_code: params.provinceCode,\n category: params.category,\n mode: params.mode,\n require_campaign: params.requiredCampaign,\n q: params.keyword,\n isFavourite: params.isFavourite,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Retrieves information about a specific place.\n *\n * @param params - The parameters for the place request.\n * @param params.id - The ID of the place.\n * @param params.agencyId - The ID of the agency.\n * @param params.requiredCampaign - (Optional) Indicates if a campaign is required.\n * @param params.isFavourite - (Optional) Indicates if the place is a favorite.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOptions - (Optional) Additional options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing the place information.\n */\n public async place(\n params: {\n id: string;\n agencyId: string;\n requiredCampaign?: boolean;\n isFavourite?: boolean;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<Place>> {\n return await this.get(\n `place/${params.id}`,\n {\n agencyId: params.agencyId,\n require_campaign: params.requiredCampaign,\n isFavourite: params.isFavourite,\n ...params.options,\n },\n requestOptions\n );\n }\n\n /**\n * Adds a place to the user's favorites.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the place to be added to favorites.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the operation.\n */\n public async addToFavourite(params: { id: string }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post(`place/${params.id}/favourite`, {}, requestOptions);\n }\n\n /**\n * Removes a place from the user's favorites.\n *\n * @param params - The parameters.\n * @param params.id - The ID of the place to be removed from favorites.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the operation.\n */\n public async removeFromFavourite(\n params: {\n id: string;\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(`place/${params.id}/unfavourite`, {}, requestOptions);\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { PointLog } from '../../models/point-log';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class PointLogApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the point log.\n *\n * @param params - The parameters for retrieving the point log.\n * @param params.month - The month for which to retrieve the point log.\n * @param params.type - (Optional) The type of point log to retrieve. (earn/burn/etc)\n * @param params.lastRowKey - (Optional) The last row key for pagination.\n * @param params.top - (Optional) The maximum number of records to retrieve.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOption - (Optional) The request options.\n * @returns A promise that resolves to a service response containing an array of point logs.\n */\n public async getPointLog(\n params: {\n month: string;\n type?: string;\n lastRowKey?: string;\n top?: number;\n options?: { [key: string]: any };\n },\n requestOption?: RequestOptions\n ): Promise<ServiceResponse<PointLog[]>> {\n return await this.get(\n 'log/points',\n {\n month: params.month,\n type: params?.type,\n lastRowKey: params?.lastRowKey,\n top: params?.top,\n ...params.options,\n },\n requestOption\n );\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\nimport { ConfirmOtpResponse, ExpiringPoints, ProfileResponse, StatusResponse, UpdatedPoints } from '../../models';\n\nexport class ProfileApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Retrieves the profile information for the current user.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the profile information.\n */\n public async profile(requestOptions?: RequestOptions): Promise<ServiceResponse<ProfileResponse>> {\n return await this.get('profile/me', {}, requestOptions);\n }\n\n /**\n * Updates the user profile with the provided parameters.\n *\n * @param params - The parameters for updating the profile.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the updated profile.\n */\n public async updateProfile(\n params: {\n profileImage?: File;\n firstName?: string;\n lastName?: string;\n contactNumber?: string;\n email?: string;\n notification?: boolean;\n locale?: number;\n title?: string;\n gender?: string;\n birthDate?: number;\n address?: string;\n subdistrictCode?: number;\n subdistrictName?: string;\n districtCode?: number;\n districtName?: string;\n provinceCode?: number;\n provinceName?: string;\n countryCode?: string;\n countryName?: string;\n zipCode?: string;\n idCard?: string;\n passport?: string;\n maritalStatus?: string;\n village?: string;\n building?: string;\n number?: string;\n moo?: string;\n room?: string;\n floor?: string;\n soi?: string;\n city?: string;\n road?: string;\n landmark?: string;\n alternateContactNumber?: string;\n homeContactNumber?: string;\n nationality?: string;\n religion?: string;\n location?: string;\n latitude?: number;\n longitude?: number;\n income?: string;\n interests?: string;\n region?: string;\n phonepurchase?: number;\n highestEducation?: string;\n occupation?: string;\n remark?: string;\n displayName?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ProfileResponse>> {\n return await this.post(\n 'profile/me',\n {\n data: params.profileImage,\n firstname: params.firstName,\n lastname: params.lastName,\n contact_number: params.contactNumber,\n email: params.email,\n notification: params.notification,\n locale: params.locale,\n title: params.title,\n gender: params.gender,\n birthdate: params.birthDate,\n address: params.address,\n subdistrict_code: params.subdistrictCode,\n subdistrict_name: params.subdistrictName,\n district_code: params.districtCode,\n district_name: params.districtName,\n province_code: params.provinceCode,\n province_name: params.provinceName,\n country_code: params.countryCode,\n country_name: params.countryName,\n Zipcode: params.zipCode,\n idCard: params.idCard,\n passport: params.passport,\n maritalstatus: params.maritalStatus,\n village: params.village,\n building: params.building,\n number: params.number,\n moo: params.moo,\n room: params.room,\n floor: params.floor,\n soi: params.soi,\n city: params.city,\n road: params.road,\n landmark: params.landmark,\n alternate_contact_number: params.alternateContactNumber,\n home_contact_number: params.homeContactNumber,\n nationality: params.nationality,\n religion: params.religion,\n location: params.location,\n latitude: params.latitude,\n longitude: params.longitude,\n income: params.income,\n interests: params.interests,\n region: params.region,\n phonepurchase: params.phonepurchase,\n highesteducation: params.highestEducation,\n occupation: params.occupation,\n remark: params.remark,\n displayname: params.displayName,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...(requestOptions?.headers ? requestOptions.headers : {}),\n },\n params: requestOptions?.params,\n data: requestOptions?.data,\n }\n );\n }\n\n /**\n * Changes the user's password.\n *\n * @param params - The parameters.\n * @param params.current - The current password.\n * @param params.change - The new password.\n * @param params.options - Optional additional options.\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the status response.\n */\n public async changePassword(\n params: {\n current: string;\n change: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<StatusResponse>> {\n return await this.post(\n 'profile/me/change_password',\n {\n current: params.current,\n change: params.change,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Updates the shipping information for the user.\n *\n * @param params - The parameters for updating the shipping information.\n * @param requestOptions - The options for the HTTP request.\n * @returns A promise that resolves to a ServiceResponse containing the updated shipping information.\n */\n public async updateShipping(\n params: {\n shippingFirstName?: string;\n shippingLastName?: string;\n shippingProvinceCode?: string;\n shippingDistrictCode?: string;\n shippingSubDistrictCode?: string;\n shippingZipCode?: string;\n shippingAddress?: string;\n shippingProvinceName?: string;\n shippingDistrictName?: string;\n shippingSubFDistrictName?: string;\n shippingContactNumber?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'profile/me/shipping',\n {\n shippingfirstname: params.shippingFirstName,\n shippinglastname: params.shippingLastName,\n shipping_province_code: params.shippingProvinceCode,\n shipping_district_code: params.shippingDistrictCode,\n shipping_subdistrict_code: params.shippingSubDistrictCode,\n shipping_zipcode: params.shippingZipCode,\n shipping_address: params.shippingAddress,\n shipping_province_name: params.shippingProvinceName,\n shipping_district_name: params.shippingDistrictName,\n shipping_subdistrict_name: params.shippingSubFDistrictName,\n shipping_contact_number: params.shippingContactNumber,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Changes the contact number of the user.\n *\n * @param params - The parameters for changing the contact number.\n * @param params.contactNumber - The new contact number.\n * @param params.otp - The one-time password.\n * @param params.refCode - The reference code.\n * @param params.idCard - (Optional) The ID card for additional verification.\n * @param params.options - (Optional) Additional options for the request.\n * @param requestOptions - (Optional) The options for the request.\n * @returns A promise that resolves to the response of the request.\n */\n public async changeContactNumber(\n params: {\n contactNumber: string;\n otp: string;\n refCode: string;\n idCard?: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<ConfirmOtpResponse>> {\n return await this.post(\n 'auth/change_authen',\n {\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n idcard: params.idCard,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Changes the contact number for the current user.\n *\n * @param params - The parameters for changing the contact number.\n * @param params.contactNumber - The new contact number.\n * @param params.otp - The one-time password for verification.\n * @param params.refCode - The reference code for verification.\n * @param params.options - Additional options for the request.\n * @param requestOptions - The options for the request.\n * @returns A promise that resolves to a ServiceResponse containing the result of the request.\n */\n public async changeContactNumberV2(\n params: {\n contactNumber: string;\n otp: string;\n refCode: string;\n options?: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<any>> {\n return await this.post(\n 'profile/me/contact_number',\n {\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n\n /**\n * Retrieves the updated points for the current user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the updated points.\n */\n public async points(requestOptions?: RequestOptions): Promise<ServiceResponse<UpdatedPoints>> {\n return await this.get('profile/me/updated_points', {}, requestOptions);\n }\n\n /**\n * Retrieves the expiring points for the current user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the expiring points.\n */\n public async expiringPoints(requestOptions?: RequestOptions): Promise<ServiceResponse<ExpiringPoints>> {\n return await this.get('profile/me/allexpiring_points', {}, requestOptions);\n }\n\n /**\n * Deactivates the user's profile.\n *\n * @param requestOptions - Optional request options.\n * @returns A promise that resolves to a ServiceResponse containing the result of the deactivation.\n */\n public async deactivate(requestOptions?: RequestOptions): Promise<ServiceResponse<any>> {\n return await this.post('profile/me/deactivate', {}, requestOptions);\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AxiosInstance } from 'axios';\nimport { RegistrationResponse } from '../../models/registration-response';\nimport { BaseService, RequestOptions, ServiceResponse } from '../base-service';\n\nexport class RegistrationApi extends BaseService {\n constructor(client: AxiosInstance, baseUrl: string) {\n super(client, baseUrl);\n }\n\n /**\n * Registers a user with the provided registration parameters.\n *\n * @param params - The registration parameters.\n * @param requestOptions - The optional request options.\n * @returns A promise that resolves to a service response containing the registration response.\n */\n public async register(\n params: {\n appId: string;\n uuid: string;\n macAddress: string;\n os: string;\n platform: string;\n clientVersion: string;\n deviceNotificationEnable: boolean;\n username: string;\n password: string;\n confirmPassword: string;\n firstName: string;\n lastName: string;\n contactNumber: string;\n otp: string;\n refCode: string;\n address?: string;\n gender?: string;\n birthdate?: number;\n email?: string;\n refUserCode?: string;\n info?: string;\n termAndConditionVersion?: string;\n dataPrivacyVersion?: string;\n marketingOptionsVersion?: string;\n emailMarketing?: string;\n smsMarketing?: string;\n notificationMarketing?: string;\n lineMarketing?: string;\n phoneMarketing?: string;\n options: { [key: string]: any };\n },\n requestOptions?: RequestOptions\n ): Promise<ServiceResponse<RegistrationResponse>> {\n return await this.post(\n 'auth/register',\n {\n app_id: params.appId,\n uuid: params.uuid,\n mac_address: params.macAddress,\n os: params.os,\n platform: params.platform,\n client_version: params.clientVersion,\n device_noti_enable: params.deviceNotificationEnable,\n username: params.username,\n password: params.password,\n confirmpassword: params.confirmPassword,\n firstname: params.firstName,\n lastname: params.lastName,\n contact_number: params.contactNumber,\n otp: params.otp,\n refcode: params.refCode,\n address: params.address,\n gender: params.gender,\n birthdate: params.birthdate,\n email: params.email,\n refusercode: params.refUserCode,\n info: params.info,\n termandcondition: params.termAndConditionVersion,\n dataprivacy: params.dataPrivacyVersion,\n marketingOption: params.marketingOptionsVersion,\n mktoption_email: params.emailMarketing,\n mktoption_sms: params.smsMarketing,\n mktoption_notification: params.notificationMarketing,\n mktoption_line: params.lineMarketing,\n mktoption_phone: params.phoneMarketing,\n ...params.options,\n },\n {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...requestOptions?.headers,\n },\n data: requestOptions?.data,\n params: requestOptions?.params,\n }\n );\n }\n}\n","import { AxiosInstance } from 'axios';\nimport { AuthenticateApi } from './auth/auth-api';\nimport { BadgeApi } from './badge/badge-api';\nimport { CampaignApi } from './campaign/campaign-api';\nimport { CartApi } from './cart/cart-api';\nimport { CategoryApi } from './category/category-api';\nimport { ConsentApi } from './consent/consent-api';\nimport { CouponApi } from './coupon/coupon-api';\nimport { DashboardApi } from './dashboard/dashboard-api';\nimport { HistoryApi } from './history/history-api';\nimport { LineApi } from './line/line-api';\nimport { NotificationApi } from './notification/notification-api';\nimport { PlaceApi } from './place/place-api';\nimport { PointLogApi } from './point-log/point-log-api';\nimport { ProfileApi } from './profile/profile-api';\nimport { RegistrationApi } from './registration/registration-api';\n\nexport class BzbsService {\n client: AxiosInstance;\n baseUrl: string;\n baseLineUrl: string;\n\n authApi: AuthenticateApi;\n badgeApi: BadgeApi;\n campaignApi: CampaignApi;\n cartApi: CartApi;\n categoryApi: CategoryApi;\n consentApi: ConsentApi;\n couponApi: CouponApi;\n dashboardApi: DashboardApi;\n historyApi: HistoryApi;\n lineApi: LineApi;\n notificationApi: NotificationApi;\n placeApi: PlaceApi;\n pointLogApi: PointLogApi;\n profileApi: ProfileApi;\n registerApi: RegistrationApi;\n\n constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string) {\n this.client = client;\n this.baseUrl = baseUrl;\n this.baseLineUrl = baseLineUrl;\n\n this.authApi = new AuthenticateApi(this.client, this.baseUrl);\n this.badgeApi = new BadgeApi(this.client, this.baseUrl);\n this.campaignApi = new CampaignApi(this.client, this.baseUrl);\n this.cartApi = new CartApi(this.client, this.baseUrl);\n this.categoryApi = new CategoryApi(this.client, this.baseUrl);\n this.consentApi = new ConsentApi(this.client, this.baseUrl);\n this.couponApi = new CouponApi(this.client, this.baseUrl);\n this.dashboardApi = new DashboardApi(this.client, this.baseUrl);\n this.historyApi = new HistoryApi(this.client, this.baseUrl);\n this.lineApi = new LineApi(this.client, this.baseLineUrl ?? '');\n this.notificationApi = new NotificationApi(this.client, this.baseUrl);\n this.placeApi = new PlaceApi(this.client, this.baseUrl);\n this.pointLogApi = new PointLogApi(this.client, this.baseUrl);\n this.profileApi = new ProfileApi(this.client, this.baseUrl);\n this.registerApi = new RegistrationApi(this.client, this.baseUrl);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,IAAM,cAAN,MAAkB;AAAA,EAIvB,YAAY,QAAuB,SAAiB;AAClD,SAAK,SAAS;AACd,SAAK,UAAU;AACf,QAAI,CAAC,KAAK,SAAS;AACjB,YAAM;AAAA,IACR;AACA,QAAI,CAAC,KAAK,QAAQ;AAChB,YAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEM,IAAO,MAAc,QAAc,gBAA8D;AAAA;AA/BzG;AAgCI,UAAI;AACF,cAAM,WAAW,MAAM,KAAK,OAAO,IAAO,KAAK,SAAQ,sDAAgB,YAAhB,YAA2B,KAAK,SAAS,IAAI,GAAG;AAAA,UACrG,QAAQ,kCACF,SAAS,SAAS,CAAC,KACnB,iDAAgB,UAAS,eAAe,SAAS,CAAC;AAAA,UAExD,SAAS,iDAAgB;AAAA,UACzB,MAAM,iDAAgB;AAAA,QACxB,CAAC;AACD,eAAO;AAAA,UACL,OAAO,qCAAU;AAAA,UACjB;AAAA,UACA,OAAO;AAAA,QACT;AAAA,MACF,SAAS,OAAY;AACnB,eAAO;AAAA,UACL,OAAO;AAAA,UACP,UAAU;AAAA,UACV,OAAO,MAAM,WAAY,MAAM,SAAS,QAA6B,WAAM,aAAN,YAAkB;AAAA,QACzF;AAAA,MACF;AAAA,IACF;AAAA;AAAA,EAEM,KAAQ,MAAc,MAAW,gBAA8D;AAAA;AAvDvG;AAwDI,UAAI;AACF,cAAM,WAAW,MAAM,KAAK,OAAO;AAAA,UACjC,KAAK,SAAQ,sDAAgB,YAAhB,YAA2B,KAAK,SAAS,IAAI;AAAA,UAC1D;AAAA,UACA;AAAA,QACF;AACA,eAAO;AAAA,UACL,OAAO,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AK,OAAO;AAC5D,SAAK,aAAa,IAAI,WAAW,KAAK,QAAQ,KAAK,OAAO;AAC1D,SAAK,YAAY,IAAI,UAAU,KAAK,QAAQ,KAAK,OAAO;AACxD,SAAK,eAAe,IAAI,aAAa,KAAK,QAAQ,KAAK,OAAO;AAC9D,SAAK,aAAa,IAAI,WAAW,KAAK,QAAQ,KAAK,OAAO;AAC1D,SAAK,UAAU,IAAI,QAAQ,KAAK,SAAQ,UAAK,gBAAL,YAAoB,EAAE;AAC9D,SAAK,kBAAkB,IAAI,gBAAgB,KAAK,QAAQ,KAAK,OAAO;AACpE,SAAK,WAAW,IAAI,SAAS,KAAK,QAAQ,KAAK,OAAO;AACtD,SAAK,cAAc,IAAI,YAAY,KAAK,QAAQ,KAAK,OAAO;AAC5D,SAAK,aAAa,IAAI,WAAW,KAAK,QAAQ,KAAK,OAAO;AAC1D,SAAK,cAAc,IAAI,gBAAgB,KAAK,QAAQ,KAAK,OAAO;AAAA,EAClE;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bzbs/react-api-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "React API Client for Buzzebees",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"test": "jest --watchAll --coverage",
|
|
14
14
|
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
15
15
|
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
16
|
-
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,css,md}\" --config ./.prettierrc.json"
|
|
16
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,css,md}\" --config ./.prettierrc.json",
|
|
17
|
+
"build:patch:publish": "npm run build && npm version patch && npm publish",
|
|
18
|
+
"build:link": "npm run build && npm link"
|
|
17
19
|
},
|
|
18
20
|
"author": "Buzzebees Co., Ltd.",
|
|
19
21
|
"license": "ISC",
|