@bzbs/react-api-client 0.1.13 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +43 -2
- package/dist/index.d.ts +43 -2
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -1103,6 +1103,38 @@ interface SubDistrict {
|
|
|
1103
1103
|
zip_code?: string;
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
+
interface Maintenance {
|
|
1107
|
+
header_primary: string;
|
|
1108
|
+
button_text_primary: string;
|
|
1109
|
+
button_text_secondary: string;
|
|
1110
|
+
header_secondary: string;
|
|
1111
|
+
message_primary: string;
|
|
1112
|
+
message_secondary: string;
|
|
1113
|
+
enabled: boolean;
|
|
1114
|
+
landing_url: string;
|
|
1115
|
+
[key: string]: unknown;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
interface ConsentVersion {
|
|
1119
|
+
AnalyticsOtherCookies: ConsentVersionValue;
|
|
1120
|
+
AnalyticsGoogleCookies: ConsentVersionValue;
|
|
1121
|
+
FunctionalCookies: ConsentVersionValue;
|
|
1122
|
+
NecessaryCookies: ConsentVersionValue;
|
|
1123
|
+
AnalyticsFirebaseCookies: ConsentVersionValue;
|
|
1124
|
+
marketing: ConsentVersionValue;
|
|
1125
|
+
privacy: ConsentVersionValue;
|
|
1126
|
+
terms: ConsentVersionValue;
|
|
1127
|
+
MarketingCookies: ConsentVersionValue;
|
|
1128
|
+
AnalyticsMetaCookies: ConsentVersionValue;
|
|
1129
|
+
AnalyticsBuzzebeesCookies: ConsentVersionValue;
|
|
1130
|
+
cookie: ConsentVersionValue;
|
|
1131
|
+
[key: string]: unknown;
|
|
1132
|
+
}
|
|
1133
|
+
interface ConsentVersionValue {
|
|
1134
|
+
latest_version: string;
|
|
1135
|
+
current_version: string;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1106
1138
|
declare class AuthenticateApi extends BaseService {
|
|
1107
1139
|
constructor(client: AxiosInstance, baseUrl: string);
|
|
1108
1140
|
/**
|
|
@@ -2612,10 +2644,18 @@ declare class RequestHelpApi extends BaseService {
|
|
|
2612
2644
|
}, requestOptions?: RequestOptions): Promise<ServiceResponse<LikeForumResponse>>;
|
|
2613
2645
|
}
|
|
2614
2646
|
|
|
2647
|
+
declare class Blob extends BaseService {
|
|
2648
|
+
constructor(client: AxiosInstance, baseUrl: string);
|
|
2649
|
+
consentVersion(appId: string): Promise<ServiceResponse<ConsentVersion>>;
|
|
2650
|
+
maintenance(appId: string): Promise<ServiceResponse<Maintenance>>;
|
|
2651
|
+
blob(path: string, requestOptions?: RequestOptions): Promise<ServiceResponse<unknown>>;
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2615
2654
|
declare class BzbsService {
|
|
2616
2655
|
client: AxiosInstance;
|
|
2617
2656
|
baseUrl: string;
|
|
2618
2657
|
baseLineUrl: string;
|
|
2658
|
+
baseBlobUrl: string;
|
|
2619
2659
|
authApi: AuthenticateApi;
|
|
2620
2660
|
badgeApi: BadgeApi;
|
|
2621
2661
|
campaignApi: CampaignApi;
|
|
@@ -2634,7 +2674,8 @@ declare class BzbsService {
|
|
|
2634
2674
|
addressApi: AddressApi;
|
|
2635
2675
|
stampApi: StampApi;
|
|
2636
2676
|
forumApi: RequestHelpApi;
|
|
2637
|
-
|
|
2677
|
+
blob: Blob;
|
|
2678
|
+
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string, baseBlobUrl: string);
|
|
2638
2679
|
}
|
|
2639
2680
|
|
|
2640
|
-
export { type Address, AddressApi, AuthenticateApi, type Badge, BadgeApi, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, CampaignApi, type CampaignDetail, type CartAccessResponse, CartApi, type CartCountResponse, type Category, CategoryApi, type ChatMessage, type ClientError, type ConfirmOtpResponse, type Consent, ConsentApi, CouponApi, type CouponResponse, type CouponResponseData, type CreateStampResponse, type Dashboard, DashboardApi, type Detail, type District, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, HistoryApi, type LikeForumResponse, LineApi, type LineAuthResponse, type LoginResponse, type Mission, type Notification, NotificationApi, type OtpResponse, type Picture, type Place, PlaceApi, type PlaceService, type PointLog, PointLogApi, ProfileApi, type ProfileResponse, type Province, type Purchase, type RedeemResponse, RegistrationApi, type RegistrationResponse, RequestHelpApi, type RequestHelpCode, type RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, type Stamp, StampApi, type StampCampaign, type StampHistory, type StampProfileResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type SubDistrict, type SuccessResponse, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version, type ZipCode };
|
|
2681
|
+
export { type Address, AddressApi, AuthenticateApi, type Badge, BadgeApi, BaseService, Blob, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, CampaignApi, type CampaignDetail, type CartAccessResponse, CartApi, type CartCountResponse, type Category, CategoryApi, type ChatMessage, type ClientError, type ConfirmOtpResponse, type Consent, ConsentApi, type ConsentVersion, type ConsentVersionValue, CouponApi, type CouponResponse, type CouponResponseData, type CreateStampResponse, type Dashboard, DashboardApi, type Detail, type District, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, HistoryApi, type LikeForumResponse, LineApi, type LineAuthResponse, type LoginResponse, type Maintenance, type Mission, type Notification, NotificationApi, type OtpResponse, type Picture, type Place, PlaceApi, type PlaceService, type PointLog, PointLogApi, ProfileApi, type ProfileResponse, type Province, type Purchase, type RedeemResponse, RegistrationApi, type RegistrationResponse, RequestHelpApi, type RequestHelpCode, type RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, type Stamp, StampApi, type StampCampaign, type StampHistory, type StampProfileResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type SubDistrict, type SuccessResponse, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version, type ZipCode };
|
package/dist/index.d.ts
CHANGED
|
@@ -1103,6 +1103,38 @@ interface SubDistrict {
|
|
|
1103
1103
|
zip_code?: string;
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
+
interface Maintenance {
|
|
1107
|
+
header_primary: string;
|
|
1108
|
+
button_text_primary: string;
|
|
1109
|
+
button_text_secondary: string;
|
|
1110
|
+
header_secondary: string;
|
|
1111
|
+
message_primary: string;
|
|
1112
|
+
message_secondary: string;
|
|
1113
|
+
enabled: boolean;
|
|
1114
|
+
landing_url: string;
|
|
1115
|
+
[key: string]: unknown;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
interface ConsentVersion {
|
|
1119
|
+
AnalyticsOtherCookies: ConsentVersionValue;
|
|
1120
|
+
AnalyticsGoogleCookies: ConsentVersionValue;
|
|
1121
|
+
FunctionalCookies: ConsentVersionValue;
|
|
1122
|
+
NecessaryCookies: ConsentVersionValue;
|
|
1123
|
+
AnalyticsFirebaseCookies: ConsentVersionValue;
|
|
1124
|
+
marketing: ConsentVersionValue;
|
|
1125
|
+
privacy: ConsentVersionValue;
|
|
1126
|
+
terms: ConsentVersionValue;
|
|
1127
|
+
MarketingCookies: ConsentVersionValue;
|
|
1128
|
+
AnalyticsMetaCookies: ConsentVersionValue;
|
|
1129
|
+
AnalyticsBuzzebeesCookies: ConsentVersionValue;
|
|
1130
|
+
cookie: ConsentVersionValue;
|
|
1131
|
+
[key: string]: unknown;
|
|
1132
|
+
}
|
|
1133
|
+
interface ConsentVersionValue {
|
|
1134
|
+
latest_version: string;
|
|
1135
|
+
current_version: string;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1106
1138
|
declare class AuthenticateApi extends BaseService {
|
|
1107
1139
|
constructor(client: AxiosInstance, baseUrl: string);
|
|
1108
1140
|
/**
|
|
@@ -2612,10 +2644,18 @@ declare class RequestHelpApi extends BaseService {
|
|
|
2612
2644
|
}, requestOptions?: RequestOptions): Promise<ServiceResponse<LikeForumResponse>>;
|
|
2613
2645
|
}
|
|
2614
2646
|
|
|
2647
|
+
declare class Blob extends BaseService {
|
|
2648
|
+
constructor(client: AxiosInstance, baseUrl: string);
|
|
2649
|
+
consentVersion(appId: string): Promise<ServiceResponse<ConsentVersion>>;
|
|
2650
|
+
maintenance(appId: string): Promise<ServiceResponse<Maintenance>>;
|
|
2651
|
+
blob(path: string, requestOptions?: RequestOptions): Promise<ServiceResponse<unknown>>;
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2615
2654
|
declare class BzbsService {
|
|
2616
2655
|
client: AxiosInstance;
|
|
2617
2656
|
baseUrl: string;
|
|
2618
2657
|
baseLineUrl: string;
|
|
2658
|
+
baseBlobUrl: string;
|
|
2619
2659
|
authApi: AuthenticateApi;
|
|
2620
2660
|
badgeApi: BadgeApi;
|
|
2621
2661
|
campaignApi: CampaignApi;
|
|
@@ -2634,7 +2674,8 @@ declare class BzbsService {
|
|
|
2634
2674
|
addressApi: AddressApi;
|
|
2635
2675
|
stampApi: StampApi;
|
|
2636
2676
|
forumApi: RequestHelpApi;
|
|
2637
|
-
|
|
2677
|
+
blob: Blob;
|
|
2678
|
+
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string, baseBlobUrl: string);
|
|
2638
2679
|
}
|
|
2639
2680
|
|
|
2640
|
-
export { type Address, AddressApi, AuthenticateApi, type Badge, BadgeApi, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, CampaignApi, type CampaignDetail, type CartAccessResponse, CartApi, type CartCountResponse, type Category, CategoryApi, type ChatMessage, type ClientError, type ConfirmOtpResponse, type Consent, ConsentApi, CouponApi, type CouponResponse, type CouponResponseData, type CreateStampResponse, type Dashboard, DashboardApi, type Detail, type District, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, HistoryApi, type LikeForumResponse, LineApi, type LineAuthResponse, type LoginResponse, type Mission, type Notification, NotificationApi, type OtpResponse, type Picture, type Place, PlaceApi, type PlaceService, type PointLog, PointLogApi, ProfileApi, type ProfileResponse, type Province, type Purchase, type RedeemResponse, RegistrationApi, type RegistrationResponse, RequestHelpApi, type RequestHelpCode, type RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, type Stamp, StampApi, type StampCampaign, type StampHistory, type StampProfileResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type SubDistrict, type SuccessResponse, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version, type ZipCode };
|
|
2681
|
+
export { type Address, AddressApi, AuthenticateApi, type Badge, BadgeApi, BaseService, Blob, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, CampaignApi, type CampaignDetail, type CartAccessResponse, CartApi, type CartCountResponse, type Category, CategoryApi, type ChatMessage, type ClientError, type ConfirmOtpResponse, type Consent, ConsentApi, type ConsentVersion, type ConsentVersionValue, CouponApi, type CouponResponse, type CouponResponseData, type CreateStampResponse, type Dashboard, DashboardApi, type Detail, type District, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, HistoryApi, type LikeForumResponse, LineApi, type LineAuthResponse, type LoginResponse, type Maintenance, type Mission, type Notification, NotificationApi, type OtpResponse, type Picture, type Place, PlaceApi, type PlaceService, type PointLog, PointLogApi, ProfileApi, type ProfileResponse, type Province, type Purchase, type RedeemResponse, RegistrationApi, type RegistrationResponse, RequestHelpApi, type RequestHelpCode, type RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, type Stamp, StampApi, type StampCampaign, type StampHistory, type StampProfileResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type SubDistrict, type SuccessResponse, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version, type ZipCode };
|
package/dist/index.js
CHANGED
|
@@ -61,6 +61,7 @@ __export(src_exports, {
|
|
|
61
61
|
AuthenticateApi: () => AuthenticateApi,
|
|
62
62
|
BadgeApi: () => BadgeApi,
|
|
63
63
|
BaseService: () => BaseService,
|
|
64
|
+
Blob: () => Blob,
|
|
64
65
|
BzbsService: () => BzbsService,
|
|
65
66
|
CampaignApi: () => CampaignApi,
|
|
66
67
|
CartApi: () => CartApi,
|
|
@@ -2231,13 +2232,35 @@ var RequestHelpApi = class extends BaseService {
|
|
|
2231
2232
|
}
|
|
2232
2233
|
};
|
|
2233
2234
|
|
|
2235
|
+
// src/api/blob/blob.ts
|
|
2236
|
+
var Blob = class extends BaseService {
|
|
2237
|
+
constructor(client, baseUrl) {
|
|
2238
|
+
super(client, baseUrl);
|
|
2239
|
+
}
|
|
2240
|
+
consentVersion(appId) {
|
|
2241
|
+
return __async(this, null, function* () {
|
|
2242
|
+
return this.get(`pdpaconsent/${appId}/version`);
|
|
2243
|
+
});
|
|
2244
|
+
}
|
|
2245
|
+
maintenance(appId) {
|
|
2246
|
+
return __async(this, null, function* () {
|
|
2247
|
+
return this.get(`config/maintenance/${appId}.json`);
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
blob(path, requestOptions) {
|
|
2251
|
+
return __async(this, null, function* () {
|
|
2252
|
+
return this.get(path, requestOptions);
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
};
|
|
2256
|
+
|
|
2234
2257
|
// src/api/bzbs-service.ts
|
|
2235
2258
|
var BzbsService = class {
|
|
2236
|
-
constructor(client, baseUrl, baseLineUrl) {
|
|
2237
|
-
var _a;
|
|
2259
|
+
constructor(client, baseUrl, baseLineUrl, baseBlobUrl) {
|
|
2238
2260
|
this.client = client;
|
|
2239
2261
|
this.baseUrl = baseUrl;
|
|
2240
2262
|
this.baseLineUrl = baseLineUrl;
|
|
2263
|
+
this.baseBlobUrl = baseBlobUrl;
|
|
2241
2264
|
this.authApi = new AuthenticateApi(this.client, this.baseUrl);
|
|
2242
2265
|
this.badgeApi = new BadgeApi(this.client, this.baseUrl);
|
|
2243
2266
|
this.campaignApi = new CampaignApi(this.client, this.baseUrl);
|
|
@@ -2247,7 +2270,7 @@ var BzbsService = class {
|
|
|
2247
2270
|
this.couponApi = new CouponApi(this.client, this.baseUrl);
|
|
2248
2271
|
this.dashboardApi = new DashboardApi(this.client, this.baseUrl);
|
|
2249
2272
|
this.historyApi = new HistoryApi(this.client, this.baseUrl);
|
|
2250
|
-
this.lineApi = new LineApi(this.client,
|
|
2273
|
+
this.lineApi = new LineApi(this.client, this.baseLineUrl);
|
|
2251
2274
|
this.notificationApi = new NotificationApi(this.client, this.baseUrl);
|
|
2252
2275
|
this.placeApi = new PlaceApi(this.client, this.baseUrl);
|
|
2253
2276
|
this.pointLogApi = new PointLogApi(this.client, this.baseUrl);
|
|
@@ -2256,6 +2279,7 @@ var BzbsService = class {
|
|
|
2256
2279
|
this.addressApi = new AddressApi(this.client, this.baseUrl);
|
|
2257
2280
|
this.stampApi = new StampApi(this.client, this.baseUrl);
|
|
2258
2281
|
this.forumApi = new RequestHelpApi(this.client, this.baseUrl);
|
|
2282
|
+
this.blob = new Blob(this.client, this.baseBlobUrl);
|
|
2259
2283
|
}
|
|
2260
2284
|
};
|
|
2261
2285
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -2264,6 +2288,7 @@ var BzbsService = class {
|
|
|
2264
2288
|
AuthenticateApi,
|
|
2265
2289
|
BadgeApi,
|
|
2266
2290
|
BaseService,
|
|
2291
|
+
Blob,
|
|
2267
2292
|
BzbsService,
|
|
2268
2293
|
CampaignApi,
|
|
2269
2294
|
CartApi,
|