@mitumba/sdk 1.16.0 → 1.18.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 +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -145,6 +145,7 @@ interface Listing {
|
|
|
145
145
|
seller_type: 'individual' | 'bale';
|
|
146
146
|
images?: ListingImage[];
|
|
147
147
|
image_url?: string | null;
|
|
148
|
+
media?: string[];
|
|
148
149
|
}
|
|
149
150
|
interface ListingsFeedParams {
|
|
150
151
|
city_id?: string;
|
|
@@ -422,6 +423,21 @@ interface Store {
|
|
|
422
423
|
follower_count?: number;
|
|
423
424
|
is_following?: boolean;
|
|
424
425
|
}
|
|
426
|
+
interface FollowedStore {
|
|
427
|
+
id: string;
|
|
428
|
+
name: string;
|
|
429
|
+
slug: string;
|
|
430
|
+
logo_url: string | null;
|
|
431
|
+
banner_url: string | null;
|
|
432
|
+
category: string | null;
|
|
433
|
+
is_verified: boolean;
|
|
434
|
+
sti_score: number | null;
|
|
435
|
+
city_name: string | null;
|
|
436
|
+
follower_count: number;
|
|
437
|
+
listing_count: number;
|
|
438
|
+
followed_at: string;
|
|
439
|
+
is_following: true;
|
|
440
|
+
}
|
|
425
441
|
interface CreateStoreInput {
|
|
426
442
|
name: string;
|
|
427
443
|
slug: string;
|
|
@@ -545,6 +561,7 @@ interface WishlistListing {
|
|
|
545
561
|
condition: string;
|
|
546
562
|
size: string | null;
|
|
547
563
|
image_url: string | null;
|
|
564
|
+
media?: string[];
|
|
548
565
|
}
|
|
549
566
|
|
|
550
567
|
interface CartItem {
|
|
@@ -1370,6 +1387,16 @@ declare class StoresModule {
|
|
|
1370
1387
|
getMyStores(options?: RequestOptions): Promise<{
|
|
1371
1388
|
data: Store[];
|
|
1372
1389
|
}>;
|
|
1390
|
+
/**
|
|
1391
|
+
* Get stores the authenticated user follows.
|
|
1392
|
+
*/
|
|
1393
|
+
getFollowing(params?: {
|
|
1394
|
+
page?: number;
|
|
1395
|
+
}, options?: RequestOptions): Promise<{
|
|
1396
|
+
data: FollowedStore[];
|
|
1397
|
+
page: number;
|
|
1398
|
+
page_size: number;
|
|
1399
|
+
}>;
|
|
1373
1400
|
/**
|
|
1374
1401
|
* Create a new store.
|
|
1375
1402
|
*/
|
|
@@ -1918,4 +1945,4 @@ declare class MitumbaClient {
|
|
|
1918
1945
|
isAuthenticated(): Promise<boolean>;
|
|
1919
1946
|
}
|
|
1920
1947
|
|
|
1921
|
-
export { APIClient, APIError, type APIErrorResponse, type AddAddressInput, type AddPaymentMethodInput, type Address, type AdminListingItem, AdminModule, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminReport, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, AuthModule, type AuthTokens, type BecomeSellerInput, type BlockedIp, type Business, BusinessesModule, CONDITIONS, type CartItem, CartModule, type Category, type ChangePasswordInput, type City, type CompleteOnboardingInput, type Condition, type Conversation, type CreateListingInput, type CreateOrderInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EmailLoginInput, type EmailRegisterInput, type ForgotPasswordInput, IDBTokenStore, LISTING_STATUSES, type LinkedAccount, type LinkedAccountProvider, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LoginInput, MailerModule, type MailerTemplate, MemoryTokenStore, type Message, type MessageResponse, MessagesModule, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, ORDER_STATUSES, type Order, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentMethod, type PaymentMethodType, type PaymentStatus, type PaymentStatusResponse, type PaystackInitResponse, type PaystackInput, type PhoneLoginInput, type PhoneRegisterInput, type PresignImageResponse, type RaiseDisputeInput, type RegisterInput, ReportsModule, type RequestOptions, type ResetPasswordInput, type ResolveDisputeInput, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type SaveSearchInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SendEmailInput, type SendMessageInput, type SendOtpInput, type Session, SettingsModule, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreSettings, type StoreStats, StoresModule, type SubscriptionTier, type SystemStats, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorRequired, type UpdateBusinessInput, type UpdateListingInput, type UpdateProfileInput, type UpdateStoreInput, UploadsModule, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyOtpInput, type WishlistListing, WishlistsModule, createTokenStore };
|
|
1948
|
+
export { APIClient, APIError, type APIErrorResponse, type AddAddressInput, type AddPaymentMethodInput, type Address, type AdminListingItem, AdminModule, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminReport, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, AuthModule, type AuthTokens, type BecomeSellerInput, type BlockedIp, type Business, BusinessesModule, CONDITIONS, type CartItem, CartModule, type Category, type ChangePasswordInput, type City, type CompleteOnboardingInput, type Condition, type Conversation, type CreateListingInput, type CreateOrderInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EmailLoginInput, type EmailRegisterInput, type FollowedStore, type ForgotPasswordInput, IDBTokenStore, LISTING_STATUSES, type LinkedAccount, type LinkedAccountProvider, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LoginInput, MailerModule, type MailerTemplate, MemoryTokenStore, type Message, type MessageResponse, MessagesModule, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, ORDER_STATUSES, type Order, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentMethod, type PaymentMethodType, type PaymentStatus, type PaymentStatusResponse, type PaystackInitResponse, type PaystackInput, type PhoneLoginInput, type PhoneRegisterInput, type PresignImageResponse, type RaiseDisputeInput, type RegisterInput, ReportsModule, type RequestOptions, type ResetPasswordInput, type ResolveDisputeInput, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type SaveSearchInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SendEmailInput, type SendMessageInput, type SendOtpInput, type Session, SettingsModule, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreSettings, type StoreStats, StoresModule, type SubscriptionTier, type SystemStats, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorRequired, type UpdateBusinessInput, type UpdateListingInput, type UpdateProfileInput, type UpdateStoreInput, UploadsModule, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyOtpInput, type WishlistListing, WishlistsModule, createTokenStore };
|
package/dist/index.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ interface Listing {
|
|
|
145
145
|
seller_type: 'individual' | 'bale';
|
|
146
146
|
images?: ListingImage[];
|
|
147
147
|
image_url?: string | null;
|
|
148
|
+
media?: string[];
|
|
148
149
|
}
|
|
149
150
|
interface ListingsFeedParams {
|
|
150
151
|
city_id?: string;
|
|
@@ -422,6 +423,21 @@ interface Store {
|
|
|
422
423
|
follower_count?: number;
|
|
423
424
|
is_following?: boolean;
|
|
424
425
|
}
|
|
426
|
+
interface FollowedStore {
|
|
427
|
+
id: string;
|
|
428
|
+
name: string;
|
|
429
|
+
slug: string;
|
|
430
|
+
logo_url: string | null;
|
|
431
|
+
banner_url: string | null;
|
|
432
|
+
category: string | null;
|
|
433
|
+
is_verified: boolean;
|
|
434
|
+
sti_score: number | null;
|
|
435
|
+
city_name: string | null;
|
|
436
|
+
follower_count: number;
|
|
437
|
+
listing_count: number;
|
|
438
|
+
followed_at: string;
|
|
439
|
+
is_following: true;
|
|
440
|
+
}
|
|
425
441
|
interface CreateStoreInput {
|
|
426
442
|
name: string;
|
|
427
443
|
slug: string;
|
|
@@ -545,6 +561,7 @@ interface WishlistListing {
|
|
|
545
561
|
condition: string;
|
|
546
562
|
size: string | null;
|
|
547
563
|
image_url: string | null;
|
|
564
|
+
media?: string[];
|
|
548
565
|
}
|
|
549
566
|
|
|
550
567
|
interface CartItem {
|
|
@@ -1370,6 +1387,16 @@ declare class StoresModule {
|
|
|
1370
1387
|
getMyStores(options?: RequestOptions): Promise<{
|
|
1371
1388
|
data: Store[];
|
|
1372
1389
|
}>;
|
|
1390
|
+
/**
|
|
1391
|
+
* Get stores the authenticated user follows.
|
|
1392
|
+
*/
|
|
1393
|
+
getFollowing(params?: {
|
|
1394
|
+
page?: number;
|
|
1395
|
+
}, options?: RequestOptions): Promise<{
|
|
1396
|
+
data: FollowedStore[];
|
|
1397
|
+
page: number;
|
|
1398
|
+
page_size: number;
|
|
1399
|
+
}>;
|
|
1373
1400
|
/**
|
|
1374
1401
|
* Create a new store.
|
|
1375
1402
|
*/
|
|
@@ -1918,4 +1945,4 @@ declare class MitumbaClient {
|
|
|
1918
1945
|
isAuthenticated(): Promise<boolean>;
|
|
1919
1946
|
}
|
|
1920
1947
|
|
|
1921
|
-
export { APIClient, APIError, type APIErrorResponse, type AddAddressInput, type AddPaymentMethodInput, type Address, type AdminListingItem, AdminModule, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminReport, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, AuthModule, type AuthTokens, type BecomeSellerInput, type BlockedIp, type Business, BusinessesModule, CONDITIONS, type CartItem, CartModule, type Category, type ChangePasswordInput, type City, type CompleteOnboardingInput, type Condition, type Conversation, type CreateListingInput, type CreateOrderInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EmailLoginInput, type EmailRegisterInput, type ForgotPasswordInput, IDBTokenStore, LISTING_STATUSES, type LinkedAccount, type LinkedAccountProvider, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LoginInput, MailerModule, type MailerTemplate, MemoryTokenStore, type Message, type MessageResponse, MessagesModule, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, ORDER_STATUSES, type Order, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentMethod, type PaymentMethodType, type PaymentStatus, type PaymentStatusResponse, type PaystackInitResponse, type PaystackInput, type PhoneLoginInput, type PhoneRegisterInput, type PresignImageResponse, type RaiseDisputeInput, type RegisterInput, ReportsModule, type RequestOptions, type ResetPasswordInput, type ResolveDisputeInput, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type SaveSearchInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SendEmailInput, type SendMessageInput, type SendOtpInput, type Session, SettingsModule, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreSettings, type StoreStats, StoresModule, type SubscriptionTier, type SystemStats, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorRequired, type UpdateBusinessInput, type UpdateListingInput, type UpdateProfileInput, type UpdateStoreInput, UploadsModule, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyOtpInput, type WishlistListing, WishlistsModule, createTokenStore };
|
|
1948
|
+
export { APIClient, APIError, type APIErrorResponse, type AddAddressInput, type AddPaymentMethodInput, type Address, type AdminListingItem, AdminModule, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminReport, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, AuthModule, type AuthTokens, type BecomeSellerInput, type BlockedIp, type Business, BusinessesModule, CONDITIONS, type CartItem, CartModule, type Category, type ChangePasswordInput, type City, type CompleteOnboardingInput, type Condition, type Conversation, type CreateListingInput, type CreateOrderInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EmailLoginInput, type EmailRegisterInput, type FollowedStore, type ForgotPasswordInput, IDBTokenStore, LISTING_STATUSES, type LinkedAccount, type LinkedAccountProvider, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LoginInput, MailerModule, type MailerTemplate, MemoryTokenStore, type Message, type MessageResponse, MessagesModule, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, ORDER_STATUSES, type Order, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentMethod, type PaymentMethodType, type PaymentStatus, type PaymentStatusResponse, type PaystackInitResponse, type PaystackInput, type PhoneLoginInput, type PhoneRegisterInput, type PresignImageResponse, type RaiseDisputeInput, type RegisterInput, ReportsModule, type RequestOptions, type ResetPasswordInput, type ResolveDisputeInput, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type SaveSearchInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SendEmailInput, type SendMessageInput, type SendOtpInput, type Session, SettingsModule, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreSettings, type StoreStats, StoresModule, type SubscriptionTier, type SystemStats, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorRequired, type UpdateBusinessInput, type UpdateListingInput, type UpdateProfileInput, type UpdateStoreInput, UploadsModule, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyOtpInput, type WishlistListing, WishlistsModule, createTokenStore };
|
package/dist/index.js
CHANGED
|
@@ -795,6 +795,16 @@ var StoresModule = class {
|
|
|
795
795
|
async getMyStores(options) {
|
|
796
796
|
return this.client.get("/listings/stores/mine", void 0, options);
|
|
797
797
|
}
|
|
798
|
+
/**
|
|
799
|
+
* Get stores the authenticated user follows.
|
|
800
|
+
*/
|
|
801
|
+
async getFollowing(params, options) {
|
|
802
|
+
return this.client.get(
|
|
803
|
+
"/listings/stores/following",
|
|
804
|
+
params,
|
|
805
|
+
options
|
|
806
|
+
);
|
|
807
|
+
}
|
|
798
808
|
/**
|
|
799
809
|
* Create a new store.
|
|
800
810
|
*/
|