@bzbs/react-api-client 1.0.13 → 1.1.1
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 +42 -13
- package/dist/index.d.ts +42 -13
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -184,6 +184,24 @@ interface Mission {
|
|
|
184
184
|
IsComplete?: boolean;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
interface PointUnit {
|
|
188
|
+
Active?: boolean;
|
|
189
|
+
CampaignId?: number;
|
|
190
|
+
AppId?: string;
|
|
191
|
+
Unit?: string;
|
|
192
|
+
AmountPerUnit?: number;
|
|
193
|
+
Earn?: boolean;
|
|
194
|
+
CustomizeAmount?: boolean;
|
|
195
|
+
Divisible?: boolean;
|
|
196
|
+
Id?: string;
|
|
197
|
+
Meta?: {
|
|
198
|
+
CreatedAt?: number;
|
|
199
|
+
ModifiedAt?: number;
|
|
200
|
+
CreatedBy?: string | null;
|
|
201
|
+
ModifiedBy?: string | null;
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|
|
187
205
|
interface CampaignDetail {
|
|
188
206
|
AgencyName?: string;
|
|
189
207
|
ID?: number;
|
|
@@ -256,7 +274,7 @@ interface CampaignDetail {
|
|
|
256
274
|
Keyword?: string;
|
|
257
275
|
CustomCaption?: string;
|
|
258
276
|
CustomFacebookMessage?: string;
|
|
259
|
-
Extra?:
|
|
277
|
+
Extra?: unknown;
|
|
260
278
|
InterfaceDisplay?: string;
|
|
261
279
|
PointType?: string;
|
|
262
280
|
AgencyEmail?: string;
|
|
@@ -269,15 +287,18 @@ interface CampaignDetail {
|
|
|
269
287
|
Qty?: number;
|
|
270
288
|
FullImageUrl?: string;
|
|
271
289
|
SubCampaignStyles?: SubCampaignStyle;
|
|
272
|
-
Related?:
|
|
290
|
+
Related?: unknown[];
|
|
273
291
|
AgencyLogoUrl?: string;
|
|
274
292
|
IsFavourite?: boolean;
|
|
275
293
|
SubCampaigns?: SubCampaign[];
|
|
294
|
+
PointServices?: {
|
|
295
|
+
[unit: string]: PointUnit;
|
|
296
|
+
};
|
|
276
297
|
}
|
|
277
298
|
interface SubCampaign {
|
|
278
299
|
CampaignId?: number;
|
|
279
|
-
Type?:
|
|
280
|
-
Size?:
|
|
300
|
+
Type?: unknown;
|
|
301
|
+
Size?: unknown;
|
|
281
302
|
Quantity?: number;
|
|
282
303
|
RedeemMostPerPerson?: number;
|
|
283
304
|
ItemCountSold?: number;
|
|
@@ -329,8 +350,8 @@ interface Campaign {
|
|
|
329
350
|
RedeemCount?: number;
|
|
330
351
|
CurrentDate?: number;
|
|
331
352
|
NextRedeemDate?: number;
|
|
332
|
-
TracesJson?:
|
|
333
|
-
Rating?:
|
|
353
|
+
TracesJson?: unknown;
|
|
354
|
+
Rating?: unknown;
|
|
334
355
|
UserLevel?: number;
|
|
335
356
|
UserVisibility?: number;
|
|
336
357
|
PointPerUnit?: number;
|
|
@@ -355,24 +376,27 @@ interface Campaign {
|
|
|
355
376
|
CategorySequence?: number;
|
|
356
377
|
ParentCategoryId?: number;
|
|
357
378
|
MasterCampaignId?: number;
|
|
358
|
-
RankVote?:
|
|
379
|
+
RankVote?: unknown;
|
|
359
380
|
Vote?: number;
|
|
360
381
|
Like?: number;
|
|
361
382
|
OtherPointPerUnit?: number;
|
|
362
383
|
Website?: string;
|
|
363
384
|
ItemCountSold?: number;
|
|
364
385
|
RedeemMostPerCard?: number;
|
|
365
|
-
RedeemCountPerCard?:
|
|
386
|
+
RedeemCountPerCard?: unknown;
|
|
366
387
|
NextRedeemDatePerCard?: number;
|
|
367
388
|
PriceSold?: number;
|
|
368
389
|
LocationAgencyId?: number;
|
|
369
390
|
SubscriptionPeriod?: number;
|
|
370
391
|
SubscriptionTime?: number;
|
|
371
|
-
PartialPoints?:
|
|
372
|
-
SubCampaigns?:
|
|
373
|
-
MinSubCampaignPricePerUnit?:
|
|
374
|
-
MaxSubCampaignPricePerUnit?:
|
|
392
|
+
PartialPoints?: unknown;
|
|
393
|
+
SubCampaigns?: unknown;
|
|
394
|
+
MinSubCampaignPricePerUnit?: unknown;
|
|
395
|
+
MaxSubCampaignPricePerUnit?: unknown;
|
|
375
396
|
CustomFacebookMessage?: string;
|
|
397
|
+
PointServices?: {
|
|
398
|
+
[unit: string]: PointUnit;
|
|
399
|
+
};
|
|
376
400
|
}
|
|
377
401
|
|
|
378
402
|
interface CartCountResponse {
|
|
@@ -781,6 +805,10 @@ interface Purchase {
|
|
|
781
805
|
Info5?: string;
|
|
782
806
|
Detail?: string;
|
|
783
807
|
ArrangedDate?: number;
|
|
808
|
+
PointServiceUnit?: string;
|
|
809
|
+
PointServiceAmount?: number;
|
|
810
|
+
PointServiceTranId?: string;
|
|
811
|
+
PointServiceRef?: string;
|
|
784
812
|
}
|
|
785
813
|
|
|
786
814
|
interface RegistrationResponse {
|
|
@@ -1640,6 +1668,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1640
1668
|
id: string;
|
|
1641
1669
|
addressKey?: string;
|
|
1642
1670
|
contactNumber?: string;
|
|
1671
|
+
pointUnit?: string;
|
|
1643
1672
|
options?: {
|
|
1644
1673
|
[key: string]: unknown;
|
|
1645
1674
|
};
|
|
@@ -2739,4 +2768,4 @@ declare class BzbsService {
|
|
|
2739
2768
|
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string | "", baseBlobUrl: string);
|
|
2740
2769
|
}
|
|
2741
2770
|
|
|
2742
|
-
export { type Address, AddressApi, type ApiResponse, 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 };
|
|
2771
|
+
export { type Address, AddressApi, type ApiResponse, 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, type PointUnit, 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
|
@@ -184,6 +184,24 @@ interface Mission {
|
|
|
184
184
|
IsComplete?: boolean;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
interface PointUnit {
|
|
188
|
+
Active?: boolean;
|
|
189
|
+
CampaignId?: number;
|
|
190
|
+
AppId?: string;
|
|
191
|
+
Unit?: string;
|
|
192
|
+
AmountPerUnit?: number;
|
|
193
|
+
Earn?: boolean;
|
|
194
|
+
CustomizeAmount?: boolean;
|
|
195
|
+
Divisible?: boolean;
|
|
196
|
+
Id?: string;
|
|
197
|
+
Meta?: {
|
|
198
|
+
CreatedAt?: number;
|
|
199
|
+
ModifiedAt?: number;
|
|
200
|
+
CreatedBy?: string | null;
|
|
201
|
+
ModifiedBy?: string | null;
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|
|
187
205
|
interface CampaignDetail {
|
|
188
206
|
AgencyName?: string;
|
|
189
207
|
ID?: number;
|
|
@@ -256,7 +274,7 @@ interface CampaignDetail {
|
|
|
256
274
|
Keyword?: string;
|
|
257
275
|
CustomCaption?: string;
|
|
258
276
|
CustomFacebookMessage?: string;
|
|
259
|
-
Extra?:
|
|
277
|
+
Extra?: unknown;
|
|
260
278
|
InterfaceDisplay?: string;
|
|
261
279
|
PointType?: string;
|
|
262
280
|
AgencyEmail?: string;
|
|
@@ -269,15 +287,18 @@ interface CampaignDetail {
|
|
|
269
287
|
Qty?: number;
|
|
270
288
|
FullImageUrl?: string;
|
|
271
289
|
SubCampaignStyles?: SubCampaignStyle;
|
|
272
|
-
Related?:
|
|
290
|
+
Related?: unknown[];
|
|
273
291
|
AgencyLogoUrl?: string;
|
|
274
292
|
IsFavourite?: boolean;
|
|
275
293
|
SubCampaigns?: SubCampaign[];
|
|
294
|
+
PointServices?: {
|
|
295
|
+
[unit: string]: PointUnit;
|
|
296
|
+
};
|
|
276
297
|
}
|
|
277
298
|
interface SubCampaign {
|
|
278
299
|
CampaignId?: number;
|
|
279
|
-
Type?:
|
|
280
|
-
Size?:
|
|
300
|
+
Type?: unknown;
|
|
301
|
+
Size?: unknown;
|
|
281
302
|
Quantity?: number;
|
|
282
303
|
RedeemMostPerPerson?: number;
|
|
283
304
|
ItemCountSold?: number;
|
|
@@ -329,8 +350,8 @@ interface Campaign {
|
|
|
329
350
|
RedeemCount?: number;
|
|
330
351
|
CurrentDate?: number;
|
|
331
352
|
NextRedeemDate?: number;
|
|
332
|
-
TracesJson?:
|
|
333
|
-
Rating?:
|
|
353
|
+
TracesJson?: unknown;
|
|
354
|
+
Rating?: unknown;
|
|
334
355
|
UserLevel?: number;
|
|
335
356
|
UserVisibility?: number;
|
|
336
357
|
PointPerUnit?: number;
|
|
@@ -355,24 +376,27 @@ interface Campaign {
|
|
|
355
376
|
CategorySequence?: number;
|
|
356
377
|
ParentCategoryId?: number;
|
|
357
378
|
MasterCampaignId?: number;
|
|
358
|
-
RankVote?:
|
|
379
|
+
RankVote?: unknown;
|
|
359
380
|
Vote?: number;
|
|
360
381
|
Like?: number;
|
|
361
382
|
OtherPointPerUnit?: number;
|
|
362
383
|
Website?: string;
|
|
363
384
|
ItemCountSold?: number;
|
|
364
385
|
RedeemMostPerCard?: number;
|
|
365
|
-
RedeemCountPerCard?:
|
|
386
|
+
RedeemCountPerCard?: unknown;
|
|
366
387
|
NextRedeemDatePerCard?: number;
|
|
367
388
|
PriceSold?: number;
|
|
368
389
|
LocationAgencyId?: number;
|
|
369
390
|
SubscriptionPeriod?: number;
|
|
370
391
|
SubscriptionTime?: number;
|
|
371
|
-
PartialPoints?:
|
|
372
|
-
SubCampaigns?:
|
|
373
|
-
MinSubCampaignPricePerUnit?:
|
|
374
|
-
MaxSubCampaignPricePerUnit?:
|
|
392
|
+
PartialPoints?: unknown;
|
|
393
|
+
SubCampaigns?: unknown;
|
|
394
|
+
MinSubCampaignPricePerUnit?: unknown;
|
|
395
|
+
MaxSubCampaignPricePerUnit?: unknown;
|
|
375
396
|
CustomFacebookMessage?: string;
|
|
397
|
+
PointServices?: {
|
|
398
|
+
[unit: string]: PointUnit;
|
|
399
|
+
};
|
|
376
400
|
}
|
|
377
401
|
|
|
378
402
|
interface CartCountResponse {
|
|
@@ -781,6 +805,10 @@ interface Purchase {
|
|
|
781
805
|
Info5?: string;
|
|
782
806
|
Detail?: string;
|
|
783
807
|
ArrangedDate?: number;
|
|
808
|
+
PointServiceUnit?: string;
|
|
809
|
+
PointServiceAmount?: number;
|
|
810
|
+
PointServiceTranId?: string;
|
|
811
|
+
PointServiceRef?: string;
|
|
784
812
|
}
|
|
785
813
|
|
|
786
814
|
interface RegistrationResponse {
|
|
@@ -1640,6 +1668,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1640
1668
|
id: string;
|
|
1641
1669
|
addressKey?: string;
|
|
1642
1670
|
contactNumber?: string;
|
|
1671
|
+
pointUnit?: string;
|
|
1643
1672
|
options?: {
|
|
1644
1673
|
[key: string]: unknown;
|
|
1645
1674
|
};
|
|
@@ -2739,4 +2768,4 @@ declare class BzbsService {
|
|
|
2739
2768
|
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string | "", baseBlobUrl: string);
|
|
2740
2769
|
}
|
|
2741
2770
|
|
|
2742
|
-
export { type Address, AddressApi, type ApiResponse, 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 };
|
|
2771
|
+
export { type Address, AddressApi, type ApiResponse, 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, type PointUnit, 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
|
@@ -855,7 +855,8 @@ var CampaignApi = class extends BaseService {
|
|
|
855
855
|
`campaign/${params.id}/redeem`,
|
|
856
856
|
__spreadValues({
|
|
857
857
|
address_key: params.addressKey,
|
|
858
|
-
contact_number: params.contactNumber
|
|
858
|
+
contact_number: params.contactNumber,
|
|
859
|
+
pointUnit: params.pointUnit
|
|
859
860
|
}, params.options),
|
|
860
861
|
{
|
|
861
862
|
headers: __spreadValues({
|