@mitumba/sdk 5.34.0 → 5.36.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 +141 -10
- package/dist/index.d.ts +141 -10
- package/dist/index.js +50 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1005,6 +1005,10 @@ interface AdminVerificationItem {
|
|
|
1005
1005
|
seller_type: string;
|
|
1006
1006
|
verification_status: 'unverified' | 'pending' | 'verified' | 'rejected';
|
|
1007
1007
|
updated_at: string;
|
|
1008
|
+
verification_submitted_at?: string | null;
|
|
1009
|
+
verification_decided_at?: string | null;
|
|
1010
|
+
/** The reason given for the last rejection. */
|
|
1011
|
+
verification_note?: string | null;
|
|
1008
1012
|
display_name: string | null;
|
|
1009
1013
|
email: string | null;
|
|
1010
1014
|
phone: string | null;
|
|
@@ -2107,6 +2111,46 @@ interface Listing {
|
|
|
2107
2111
|
images?: ListingImage[];
|
|
2108
2112
|
image_url?: string | null;
|
|
2109
2113
|
media?: string[];
|
|
2114
|
+
/** Units for sale. */
|
|
2115
|
+
stock_quantity?: number;
|
|
2116
|
+
/** Present on `GET /listings/:id`. */
|
|
2117
|
+
package_size?: PackageSize;
|
|
2118
|
+
package_source?: PackageSource;
|
|
2119
|
+
}
|
|
2120
|
+
/** One piece in a shop's inventory, as its team sees it. */
|
|
2121
|
+
interface InventoryItem {
|
|
2122
|
+
id: string;
|
|
2123
|
+
title: string;
|
|
2124
|
+
price: number;
|
|
2125
|
+
condition: Condition;
|
|
2126
|
+
size: string | null;
|
|
2127
|
+
stock_quantity: number;
|
|
2128
|
+
status: ListingStatus;
|
|
2129
|
+
category_id: string;
|
|
2130
|
+
city_id: string;
|
|
2131
|
+
created_at: string;
|
|
2132
|
+
updated_at: string;
|
|
2133
|
+
package_size: PackageSize;
|
|
2134
|
+
package_source: PackageSource;
|
|
2135
|
+
/** The first photo, or null for a piece without one. */
|
|
2136
|
+
image_url: string | null;
|
|
2137
|
+
media: string[];
|
|
2138
|
+
photo_count: number;
|
|
2139
|
+
}
|
|
2140
|
+
interface InventoryParams {
|
|
2141
|
+
/** One status, or `all` (the default): every status except `removed`. */
|
|
2142
|
+
status?: ListingStatus | 'all';
|
|
2143
|
+
/** Matches part of the title. */
|
|
2144
|
+
q?: string;
|
|
2145
|
+
page?: number;
|
|
2146
|
+
}
|
|
2147
|
+
interface InventoryPage {
|
|
2148
|
+
data: InventoryItem[];
|
|
2149
|
+
/** How many pieces the shop has in each status, whatever the filter. */
|
|
2150
|
+
counts: Record<ListingStatus, number>;
|
|
2151
|
+
page: number;
|
|
2152
|
+
page_size: number;
|
|
2153
|
+
has_more: boolean;
|
|
2110
2154
|
}
|
|
2111
2155
|
interface ListingsFeedParams {
|
|
2112
2156
|
city_id?: string;
|
|
@@ -2118,18 +2162,56 @@ interface ListingsFeedParams {
|
|
|
2118
2162
|
page?: number;
|
|
2119
2163
|
page_size?: number;
|
|
2120
2164
|
}
|
|
2121
|
-
|
|
2165
|
+
/** How big a piece is once packed. Sets the delivery price band. */
|
|
2166
|
+
declare const PACKAGE_SIZES: readonly ["small", "medium", "large", "oversize"];
|
|
2167
|
+
type PackageSize = typeof PACKAGE_SIZES[number];
|
|
2168
|
+
interface ListingInputFields {
|
|
2122
2169
|
store_id: string;
|
|
2123
|
-
title: string;
|
|
2124
2170
|
description?: string;
|
|
2125
2171
|
category_id: string;
|
|
2126
2172
|
city_id: string;
|
|
2127
|
-
price: number;
|
|
2128
2173
|
condition: Condition;
|
|
2129
2174
|
size?: string;
|
|
2175
|
+
/** Units for sale, 1 to 999. Default 1. */
|
|
2176
|
+
stock_quantity?: number;
|
|
2177
|
+
vazi_eligible?: boolean;
|
|
2178
|
+
/** Default: the category's usual size. */
|
|
2179
|
+
package_size?: PackageSize;
|
|
2180
|
+
}
|
|
2181
|
+
/** A piece listed live at once: a title of 3 to 120 characters and a price of at least KES 50. */
|
|
2182
|
+
interface PublishedListingInput extends ListingInputFields {
|
|
2183
|
+
status?: 'active';
|
|
2184
|
+
title: string;
|
|
2185
|
+
price: number;
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* A draft, visible only to the shop's team until it is published. It may have a title of 1
|
|
2189
|
+
* character and no price yet; category, city and condition are still required.
|
|
2190
|
+
*/
|
|
2191
|
+
interface DraftListingInput extends ListingInputFields {
|
|
2192
|
+
status: 'draft';
|
|
2193
|
+
title: string;
|
|
2194
|
+
price?: number;
|
|
2195
|
+
}
|
|
2196
|
+
type CreateListingInput = PublishedListingInput | DraftListingInput;
|
|
2197
|
+
/**
|
|
2198
|
+
* Fields to change. A draft may hold a short title or a price of 0; a live piece keeps a title of
|
|
2199
|
+
* at least 3 characters and a price of at least KES 50.
|
|
2200
|
+
*/
|
|
2201
|
+
interface UpdateListingInput {
|
|
2202
|
+
title?: string;
|
|
2203
|
+
description?: string;
|
|
2204
|
+
category_id?: string;
|
|
2205
|
+
city_id?: string;
|
|
2206
|
+
price?: number;
|
|
2207
|
+
condition?: Condition;
|
|
2208
|
+
size?: string;
|
|
2209
|
+
stock_quantity?: number;
|
|
2130
2210
|
vazi_eligible?: boolean;
|
|
2211
|
+
package_size?: PackageSize;
|
|
2131
2212
|
}
|
|
2132
|
-
|
|
2213
|
+
/** Where a piece's package size came from: the seller, or its category's default. */
|
|
2214
|
+
type PackageSource = 'seller' | 'category_default';
|
|
2133
2215
|
/** Which part of the catalogue a category belongs to. */
|
|
2134
2216
|
type CategorySection = 'fashion' | 'home';
|
|
2135
2217
|
interface Category {
|
|
@@ -3042,7 +3124,10 @@ interface StoreSettings {
|
|
|
3042
3124
|
operating_days: 'everyday' | 'weekdays' | 'custom';
|
|
3043
3125
|
custom_days: string[];
|
|
3044
3126
|
phone_verified: boolean;
|
|
3045
|
-
/**
|
|
3127
|
+
/**
|
|
3128
|
+
* A URL, or a private document id. Read-only here: set it with `stores.submitVerification`;
|
|
3129
|
+
* `updateSettings` ignores it.
|
|
3130
|
+
*/
|
|
3046
3131
|
id_document_url: string | null;
|
|
3047
3132
|
id_verified: boolean;
|
|
3048
3133
|
kra_pin: string | null;
|
|
@@ -3086,6 +3171,20 @@ interface StoreAnalytics {
|
|
|
3086
3171
|
followers: number;
|
|
3087
3172
|
};
|
|
3088
3173
|
}
|
|
3174
|
+
declare const SELLER_VERIFICATION_STATUSES: readonly ["unverified", "pending", "verified", "rejected"];
|
|
3175
|
+
type SellerVerificationStatus = typeof SELLER_VERIFICATION_STATUSES[number];
|
|
3176
|
+
/** Where the shop owner's identity verification stands. */
|
|
3177
|
+
interface SellerVerification {
|
|
3178
|
+
status: SellerVerificationStatus;
|
|
3179
|
+
submitted_at: string | null;
|
|
3180
|
+
decided_at: string | null;
|
|
3181
|
+
/** The reason given for a rejection. */
|
|
3182
|
+
note: string | null;
|
|
3183
|
+
/** The submitted private document, read with `documents.get`. */
|
|
3184
|
+
document_id: string | null;
|
|
3185
|
+
/** True when the document on file is a URL rather than a private document. */
|
|
3186
|
+
legacy_document: boolean;
|
|
3187
|
+
}
|
|
3089
3188
|
|
|
3090
3189
|
/**
|
|
3091
3190
|
* Where an order's payout stands:
|
|
@@ -4497,15 +4596,25 @@ declare class ListingsModule {
|
|
|
4497
4596
|
images: ListingImage[];
|
|
4498
4597
|
}>;
|
|
4499
4598
|
/**
|
|
4500
|
-
*
|
|
4599
|
+
* List a piece in a shop, live or as a draft (`status: 'draft'`). Needs `store:listings.manage`
|
|
4600
|
+
* in that shop. A draft is seen only by the shop's team until it is published.
|
|
4601
|
+
*
|
|
4602
|
+
* Errors: 400 invalid_input; 403 store_forbidden, not_a_retail_shop; 404 store_not_found.
|
|
4501
4603
|
*/
|
|
4502
4604
|
create(input: CreateListingInput, options?: RequestOptions): Promise<Listing>;
|
|
4503
4605
|
/**
|
|
4504
|
-
*
|
|
4606
|
+
* Change a piece's details, stock or package size. Sold and removed pieces
|
|
4607
|
+
* cannot be edited.
|
|
4608
|
+
*
|
|
4609
|
+
* Errors: 400 invalid_input, listing_immutable; 403 store_forbidden; 404 not_found.
|
|
4505
4610
|
*/
|
|
4506
4611
|
update(id: string, input: UpdateListingInput, options?: RequestOptions): Promise<Listing>;
|
|
4507
4612
|
/**
|
|
4508
|
-
* Change
|
|
4613
|
+
* Change a piece's status. Publishing a draft (`'active'`) needs a title of 3+ letters, a price
|
|
4614
|
+
* of at least KES 50 and at least one photo; otherwise 422 `not_ready` whose message names what
|
|
4615
|
+
* is missing (see `notReadyToPublish`).
|
|
4616
|
+
*
|
|
4617
|
+
* Errors: 400 invalid_transition; 403 store_forbidden; 404 not_found; 422 not_ready.
|
|
4509
4618
|
*/
|
|
4510
4619
|
updateStatus(id: string, status: ListingStatus, options?: RequestOptions): Promise<{
|
|
4511
4620
|
ok: boolean;
|
|
@@ -4604,6 +4713,8 @@ declare class ListingsModule {
|
|
|
4604
4713
|
data: SimilarListing[];
|
|
4605
4714
|
}>;
|
|
4606
4715
|
}
|
|
4716
|
+
/** Whether an error says a draft is not ready to publish. Its message names what is missing. */
|
|
4717
|
+
declare function notReadyToPublish(error: unknown): boolean;
|
|
4607
4718
|
|
|
4608
4719
|
declare class SearchModule {
|
|
4609
4720
|
private readonly client;
|
|
@@ -4924,6 +5035,14 @@ declare class StoresModule {
|
|
|
4924
5035
|
* Get store statistics.
|
|
4925
5036
|
*/
|
|
4926
5037
|
getStats(storeId: string, options?: RequestOptions): Promise<StoreStats>;
|
|
5038
|
+
/** Where the shop owner's identity verification stands. Owner only (403 otherwise). */
|
|
5039
|
+
getVerification(storeId: string, options?: RequestOptions): Promise<SellerVerification>;
|
|
5040
|
+
/**
|
|
5041
|
+
* Submit an identity document for review: upload it first with `documents.upload` (purpose
|
|
5042
|
+
* `identity_document`, this store). Owner only. 400 `invalid_document` for any other document,
|
|
5043
|
+
* 409 `already_verified` or `no_seller_profile`.
|
|
5044
|
+
*/
|
|
5045
|
+
submitVerification(storeId: string, documentId: string, options?: RequestOptions): Promise<SellerVerification>;
|
|
4927
5046
|
/**
|
|
4928
5047
|
* Get store settings.
|
|
4929
5048
|
*/
|
|
@@ -5016,6 +5135,14 @@ declare class StoresModule {
|
|
|
5016
5135
|
*/
|
|
5017
5136
|
removePayoutDestination(storeId: string, destinationId: string, options?: RequestOptions): Promise<PayoutDestinationsState>;
|
|
5018
5137
|
private destinationPath;
|
|
5138
|
+
/**
|
|
5139
|
+
* The shop's whole stock for its team: drafts, live, sold and (by filter) removed pieces, most
|
|
5140
|
+
* recently changed first, 24 per page, with counts per status. `store:listings.read`. The public
|
|
5141
|
+
* store page (`getListings`) shows live pieces only.
|
|
5142
|
+
*
|
|
5143
|
+
* Errors: 400 invalid_input; 403 store_forbidden; 404 not_found.
|
|
5144
|
+
*/
|
|
5145
|
+
getInventory(storeId: string, params?: InventoryParams, options?: RequestOptions): Promise<InventoryPage>;
|
|
5019
5146
|
/**
|
|
5020
5147
|
* The shop's members, and the roles the caller may give. `store:members.manage`.
|
|
5021
5148
|
*
|
|
@@ -5476,7 +5603,11 @@ declare class AdminModule {
|
|
|
5476
5603
|
ok: true;
|
|
5477
5604
|
verification_status: 'verified';
|
|
5478
5605
|
}>;
|
|
5479
|
-
|
|
5606
|
+
/**
|
|
5607
|
+
* Reject a seller's verification. `reason` (1–500 characters) is required and shown to the seller.
|
|
5608
|
+
* 409 `already_decided` when already rejected.
|
|
5609
|
+
*/
|
|
5610
|
+
rejectVerification(userId: string, reason: string, options?: RequestOptions): Promise<{
|
|
5480
5611
|
ok: true;
|
|
5481
5612
|
verification_status: 'rejected';
|
|
5482
5613
|
}>;
|
|
@@ -6302,4 +6433,4 @@ declare class MitumbaClient {
|
|
|
6302
6433
|
isAuthenticated(): Promise<boolean>;
|
|
6303
6434
|
}
|
|
6304
6435
|
|
|
6305
|
-
export { APIClient, APIError, type APIErrorResponse, type AcceptStoreInvitationResult, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type AddPayoutDestinationInput, type Address, type AdminAuditActor, type AdminAuditEntry, type AdminAuditQuery, type AdminAuthStrength, type AdminListingItem, type AdminMessageReport, type AdminMessageReportDetail, type AdminMessageReportList, type AdminMessageReportThreadMessage, AdminModule, type AdminOperator, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminPermission, type AdminPermissionDescription, type AdminRecoveryEvent, type AdminRecoveryRequest, type AdminRefundItem, type AdminRefundReason, type AdminRefundSendResult, type AdminRefundStatus, type AdminReport, type AdminRolePreset, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, type AdminWholesalePendingStore, type ApiResponse, type AttachmentDownloadAuthorization, type AttachmentUploadAuthorization, type AttachmentUploadBody, type AttachmentUploadState, type AttachmentUploadStatus, type AuthCapabilities, AuthModule, type AuthTokens, type AuthenticationResponseJSON, BALE_ORDER_STATUSES, type Bale, type BaleDetail, type BaleFeedItem, type BaleFulfillment, type BaleGrade, type BaleImageUploadResult, type BaleOrder, type BaleOrderEvent, type BaleOrderStatus, type BaleType, type BecomeBaleSellerInput, type BecomeSellerInput, type BlockedIp, type Business, type BusinessType, BusinessesModule, type BuyerResolveThreadInput, type BuyerSummary, CONDITIONS, type CancelCheckoutRefusalCode, type CancelCheckoutResponse, type CancelOrderInput, type CancelOrderResult, type CartItem, type CartLineAvailability, CartModule, type CartPartition, type CategoriesBySection, type Category, type CategorySection, type ChangePasswordInput, type ChangePlatformSettingInput, type ChangePlatformSettingResult, type Checkout, type CheckoutMoney, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutRefusal, type CheckoutRefusalCode, type CheckoutShopOrder, type CheckoutState, type CheckoutStatus, type CheckoutStatusResponse, CheckoutsModule, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateCheckoutInput, type CreateCheckoutResponse, type CreateIamUserInput, type CreateIamUserResult, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateOrganizationInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, type CreatedBaleOrder, type CursorPage, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DOCUMENT_PURPOSES, type DecideShopLimitInput, type DecideShopLimitResult, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type DocumentPurpose, DocumentsModule, type EarningsBalance, type EmailLoginInput, type EmailRegisterInput, type FileResponse, type FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, type GetCheckoutResponse, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, type IamSession, type IamSessionsResult, type IamSignIn, type IamSignInFailureReason, type IamSignInsResult, type IamTokens, type IamTwoFactorRequired, type IamUser, type IamUserStatus, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type InvitableStoreRole, type InviteToStoreInput, type InviteToStoreResult, type Jwk, type Jwks, type KnownPaymentProvider, type KnownShopStep, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LibraryCadence, type LibraryCompleter, type LibraryDocument, type LibraryDocumentSummary, type LibraryKind, type LibraryListing, type LibraryOccurrence, type LibraryOccurrenceRecorded, type LibraryOccurrenceStatus, type LibraryRoutineState, type LibrarySchedule, type LibraryScheduleRule, type LibrarySeason, type LibraryWeekday, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListIamUsersResult, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LiveUnread, type LiveUnreadOptions, type LoginInput, MailerModule, type MailerTemplate, type Market, type MarketCurrency, type MarketPhone, type MarketRegion, type MarketRegionsResponse, type MarketStatus, type MarketingConsentChange, MarketsModule, type MarketsResponse, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportOutcome, type MessageReportReason, type MessageReportStatus, type MessageResponse, MessagesModule, type MessagesRealtimeConnection, type MessagesRealtimeEnvelope, type MessagesRealtimeEvent, type MessagesRealtimeOptions, type MessagesRealtimeState, type MessagesRealtimeTicket, type MessagingBlockInput, type MessagingBlockRemovedResult, type MessagingBlockResult, type MessagingCapabilities, type MessagingCursor, type MessagingErrorCode, type MessagingIdempotentRequestOptions, type MessagingInboxes, type MessagingPerspective, type MessagingSide, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type MutableFlashKind, type Notification, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationFlash, type NotificationLink, type NotificationPref, type NotificationPreferenceCategory, type NotificationPreferences, type NotificationStream, type NotificationStreamFrame, type NotificationStreamItem, type NotificationStreamOptions, type NotificationStreamState, type NotificationStreamTicket, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthClient, type OAuthClientSummary, type OAuthClientTrustLevel, type OAuthClientType, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OidcSigningKey, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderDocument, type OrderDocumentKind, type OrderEvent, type OrderHistoryEntry, type OrderHistoryParams, type OrderItem, type OrderItemSummary, type OrderStatus, OrdersModule, type Organization, type OrganizationKind, type OrganizationStatus, type OrganizationSummary, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentAttemptStatus, type PaymentMethod, type PaymentMethodType, type PaymentProvider, type PaymentStatus, type PaymentStatusResponse, type PayoutBankOption, type PayoutDestination, type PayoutDestinationLabel, type PayoutDestinationRejection, type PayoutDestinations, type PayoutDestinationsState, type PayoutMethodOption, type PayoutMethodType, type PayoutState, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PreferenceCellChange, type PreferenceSettingsChange, type PresignImageResponse, type PrivateDocument, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type QuietHours, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type ReceivedStoreInvitation, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type RequestStoreLimitInput, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type SettlementLine, type ShareUrlOptions, type ShopCancelReason, type ShopEarnings, type ShopHolder, type ShopNextStep, type ShopOrderFields, type ShopPayout, type ShopPayoutEntriesPage, type ShopPayoutEntriesParams, type ShopPayoutEntry, type ShopSettlement, type ShopStep, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreAuditEntry, type StoreAuditPage, type StoreInvitation, type StoreInvitationListItem, type StoreLimitRequest, type StoreLimitRequestStatus, type StoreLimitState, type StoreMember, type StoreMembers, type StoreMembershipFields, type StorePermission, type StoreResolveThreadInput, type StoreReviewsPage, type StoreRole, type StoreSettings, type StoreStats, type StoreSummary, StoresModule, type SubscriptionTier, type SystemStats, TWO_FACTOR_METHOD_TYPES, type ThreadCard, type ThreadId, type ThreadMessage, type ThreadSubject, type ThreadSystemEvent, type ThreadTimelineItem, type ThreadTimelineItemId, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorMethod, type TwoFactorMethodType, type TwoFactorRequired, type UpdateBusinessInput, type UpdateConversationPreferencesInput, type UpdateListingInput, type UpdateOrganizationInput, type UpdateProfileInput, type UpdateStoreInput, type UpdateThreadPreferencesInput, type UploadDocumentInput, UploadsModule, type UserInfo, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyIamMethodResult, type VerifyIamTwoFactorInput, type VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleReviewStatus, type WholesaleStore, type WishlistListing, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isDocumentId, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, stepUpRequired, storeShareUrl };
|
|
6436
|
+
export { APIClient, APIError, type APIErrorResponse, type AcceptStoreInvitationResult, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type AddPayoutDestinationInput, type Address, type AdminAuditActor, type AdminAuditEntry, type AdminAuditQuery, type AdminAuthStrength, type AdminListingItem, type AdminMessageReport, type AdminMessageReportDetail, type AdminMessageReportList, type AdminMessageReportThreadMessage, AdminModule, type AdminOperator, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminPermission, type AdminPermissionDescription, type AdminRecoveryEvent, type AdminRecoveryRequest, type AdminRefundItem, type AdminRefundReason, type AdminRefundSendResult, type AdminRefundStatus, type AdminReport, type AdminRolePreset, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, type AdminWholesalePendingStore, type ApiResponse, type AttachmentDownloadAuthorization, type AttachmentUploadAuthorization, type AttachmentUploadBody, type AttachmentUploadState, type AttachmentUploadStatus, type AuthCapabilities, AuthModule, type AuthTokens, type AuthenticationResponseJSON, BALE_ORDER_STATUSES, type Bale, type BaleDetail, type BaleFeedItem, type BaleFulfillment, type BaleGrade, type BaleImageUploadResult, type BaleOrder, type BaleOrderEvent, type BaleOrderStatus, type BaleType, type BecomeBaleSellerInput, type BecomeSellerInput, type BlockedIp, type Business, type BusinessType, BusinessesModule, type BuyerResolveThreadInput, type BuyerSummary, CONDITIONS, type CancelCheckoutRefusalCode, type CancelCheckoutResponse, type CancelOrderInput, type CancelOrderResult, type CartItem, type CartLineAvailability, CartModule, type CartPartition, type CategoriesBySection, type Category, type CategorySection, type ChangePasswordInput, type ChangePlatformSettingInput, type ChangePlatformSettingResult, type Checkout, type CheckoutMoney, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutRefusal, type CheckoutRefusalCode, type CheckoutShopOrder, type CheckoutState, type CheckoutStatus, type CheckoutStatusResponse, CheckoutsModule, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateCheckoutInput, type CreateCheckoutResponse, type CreateIamUserInput, type CreateIamUserResult, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateOrganizationInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, type CreatedBaleOrder, type CursorPage, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DOCUMENT_PURPOSES, type DecideShopLimitInput, type DecideShopLimitResult, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type DocumentPurpose, DocumentsModule, type DraftListingInput, type EarningsBalance, type EmailLoginInput, type EmailRegisterInput, type FileResponse, type FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, type GetCheckoutResponse, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, type IamSession, type IamSessionsResult, type IamSignIn, type IamSignInFailureReason, type IamSignInsResult, type IamTokens, type IamTwoFactorRequired, type IamUser, type IamUserStatus, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type InventoryItem, type InventoryPage, type InventoryParams, type InvitableStoreRole, type InviteToStoreInput, type InviteToStoreResult, type Jwk, type Jwks, type KnownPaymentProvider, type KnownShopStep, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LibraryCadence, type LibraryCompleter, type LibraryDocument, type LibraryDocumentSummary, type LibraryKind, type LibraryListing, type LibraryOccurrence, type LibraryOccurrenceRecorded, type LibraryOccurrenceStatus, type LibraryRoutineState, type LibrarySchedule, type LibraryScheduleRule, type LibrarySeason, type LibraryWeekday, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListIamUsersResult, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LiveUnread, type LiveUnreadOptions, type LoginInput, MailerModule, type MailerTemplate, type Market, type MarketCurrency, type MarketPhone, type MarketRegion, type MarketRegionsResponse, type MarketStatus, type MarketingConsentChange, MarketsModule, type MarketsResponse, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportOutcome, type MessageReportReason, type MessageReportStatus, type MessageResponse, MessagesModule, type MessagesRealtimeConnection, type MessagesRealtimeEnvelope, type MessagesRealtimeEvent, type MessagesRealtimeOptions, type MessagesRealtimeState, type MessagesRealtimeTicket, type MessagingBlockInput, type MessagingBlockRemovedResult, type MessagingBlockResult, type MessagingCapabilities, type MessagingCursor, type MessagingErrorCode, type MessagingIdempotentRequestOptions, type MessagingInboxes, type MessagingPerspective, type MessagingSide, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type MutableFlashKind, type Notification, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationFlash, type NotificationLink, type NotificationPref, type NotificationPreferenceCategory, type NotificationPreferences, type NotificationStream, type NotificationStreamFrame, type NotificationStreamItem, type NotificationStreamOptions, type NotificationStreamState, type NotificationStreamTicket, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthClient, type OAuthClientSummary, type OAuthClientTrustLevel, type OAuthClientType, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OidcSigningKey, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderDocument, type OrderDocumentKind, type OrderEvent, type OrderHistoryEntry, type OrderHistoryParams, type OrderItem, type OrderItemSummary, type OrderStatus, OrdersModule, type Organization, type OrganizationKind, type OrganizationStatus, type OrganizationSummary, PACKAGE_SIZES, PAYMENT_STATUSES, type PackageSize, type PackageSource, type PaginatedResponse, PayModule, type PaymentAttemptStatus, type PaymentMethod, type PaymentMethodType, type PaymentProvider, type PaymentStatus, type PaymentStatusResponse, type PayoutBankOption, type PayoutDestination, type PayoutDestinationLabel, type PayoutDestinationRejection, type PayoutDestinations, type PayoutDestinationsState, type PayoutMethodOption, type PayoutMethodType, type PayoutState, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PreferenceCellChange, type PreferenceSettingsChange, type PresignImageResponse, type PrivateDocument, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type PublishedListingInput, type QuietHours, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type ReceivedStoreInvitation, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type RequestStoreLimitInput, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, SELLER_VERIFICATION_STATUSES, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SellerVerification, type SellerVerificationStatus, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type SettlementLine, type ShareUrlOptions, type ShopCancelReason, type ShopEarnings, type ShopHolder, type ShopNextStep, type ShopOrderFields, type ShopPayout, type ShopPayoutEntriesPage, type ShopPayoutEntriesParams, type ShopPayoutEntry, type ShopSettlement, type ShopStep, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreAuditEntry, type StoreAuditPage, type StoreInvitation, type StoreInvitationListItem, type StoreLimitRequest, type StoreLimitRequestStatus, type StoreLimitState, type StoreMember, type StoreMembers, type StoreMembershipFields, type StorePermission, type StoreResolveThreadInput, type StoreReviewsPage, type StoreRole, type StoreSettings, type StoreStats, type StoreSummary, StoresModule, type SubscriptionTier, type SystemStats, TWO_FACTOR_METHOD_TYPES, type ThreadCard, type ThreadId, type ThreadMessage, type ThreadSubject, type ThreadSystemEvent, type ThreadTimelineItem, type ThreadTimelineItemId, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorMethod, type TwoFactorMethodType, type TwoFactorRequired, type UpdateBusinessInput, type UpdateConversationPreferencesInput, type UpdateListingInput, type UpdateOrganizationInput, type UpdateProfileInput, type UpdateStoreInput, type UpdateThreadPreferencesInput, type UploadDocumentInput, UploadsModule, type UserInfo, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyIamMethodResult, type VerifyIamTwoFactorInput, type VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleReviewStatus, type WholesaleStore, type WishlistListing, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isDocumentId, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, notReadyToPublish, partitionCart, regionById, stepUpRequired, storeShareUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -1005,6 +1005,10 @@ interface AdminVerificationItem {
|
|
|
1005
1005
|
seller_type: string;
|
|
1006
1006
|
verification_status: 'unverified' | 'pending' | 'verified' | 'rejected';
|
|
1007
1007
|
updated_at: string;
|
|
1008
|
+
verification_submitted_at?: string | null;
|
|
1009
|
+
verification_decided_at?: string | null;
|
|
1010
|
+
/** The reason given for the last rejection. */
|
|
1011
|
+
verification_note?: string | null;
|
|
1008
1012
|
display_name: string | null;
|
|
1009
1013
|
email: string | null;
|
|
1010
1014
|
phone: string | null;
|
|
@@ -2107,6 +2111,46 @@ interface Listing {
|
|
|
2107
2111
|
images?: ListingImage[];
|
|
2108
2112
|
image_url?: string | null;
|
|
2109
2113
|
media?: string[];
|
|
2114
|
+
/** Units for sale. */
|
|
2115
|
+
stock_quantity?: number;
|
|
2116
|
+
/** Present on `GET /listings/:id`. */
|
|
2117
|
+
package_size?: PackageSize;
|
|
2118
|
+
package_source?: PackageSource;
|
|
2119
|
+
}
|
|
2120
|
+
/** One piece in a shop's inventory, as its team sees it. */
|
|
2121
|
+
interface InventoryItem {
|
|
2122
|
+
id: string;
|
|
2123
|
+
title: string;
|
|
2124
|
+
price: number;
|
|
2125
|
+
condition: Condition;
|
|
2126
|
+
size: string | null;
|
|
2127
|
+
stock_quantity: number;
|
|
2128
|
+
status: ListingStatus;
|
|
2129
|
+
category_id: string;
|
|
2130
|
+
city_id: string;
|
|
2131
|
+
created_at: string;
|
|
2132
|
+
updated_at: string;
|
|
2133
|
+
package_size: PackageSize;
|
|
2134
|
+
package_source: PackageSource;
|
|
2135
|
+
/** The first photo, or null for a piece without one. */
|
|
2136
|
+
image_url: string | null;
|
|
2137
|
+
media: string[];
|
|
2138
|
+
photo_count: number;
|
|
2139
|
+
}
|
|
2140
|
+
interface InventoryParams {
|
|
2141
|
+
/** One status, or `all` (the default): every status except `removed`. */
|
|
2142
|
+
status?: ListingStatus | 'all';
|
|
2143
|
+
/** Matches part of the title. */
|
|
2144
|
+
q?: string;
|
|
2145
|
+
page?: number;
|
|
2146
|
+
}
|
|
2147
|
+
interface InventoryPage {
|
|
2148
|
+
data: InventoryItem[];
|
|
2149
|
+
/** How many pieces the shop has in each status, whatever the filter. */
|
|
2150
|
+
counts: Record<ListingStatus, number>;
|
|
2151
|
+
page: number;
|
|
2152
|
+
page_size: number;
|
|
2153
|
+
has_more: boolean;
|
|
2110
2154
|
}
|
|
2111
2155
|
interface ListingsFeedParams {
|
|
2112
2156
|
city_id?: string;
|
|
@@ -2118,18 +2162,56 @@ interface ListingsFeedParams {
|
|
|
2118
2162
|
page?: number;
|
|
2119
2163
|
page_size?: number;
|
|
2120
2164
|
}
|
|
2121
|
-
|
|
2165
|
+
/** How big a piece is once packed. Sets the delivery price band. */
|
|
2166
|
+
declare const PACKAGE_SIZES: readonly ["small", "medium", "large", "oversize"];
|
|
2167
|
+
type PackageSize = typeof PACKAGE_SIZES[number];
|
|
2168
|
+
interface ListingInputFields {
|
|
2122
2169
|
store_id: string;
|
|
2123
|
-
title: string;
|
|
2124
2170
|
description?: string;
|
|
2125
2171
|
category_id: string;
|
|
2126
2172
|
city_id: string;
|
|
2127
|
-
price: number;
|
|
2128
2173
|
condition: Condition;
|
|
2129
2174
|
size?: string;
|
|
2175
|
+
/** Units for sale, 1 to 999. Default 1. */
|
|
2176
|
+
stock_quantity?: number;
|
|
2177
|
+
vazi_eligible?: boolean;
|
|
2178
|
+
/** Default: the category's usual size. */
|
|
2179
|
+
package_size?: PackageSize;
|
|
2180
|
+
}
|
|
2181
|
+
/** A piece listed live at once: a title of 3 to 120 characters and a price of at least KES 50. */
|
|
2182
|
+
interface PublishedListingInput extends ListingInputFields {
|
|
2183
|
+
status?: 'active';
|
|
2184
|
+
title: string;
|
|
2185
|
+
price: number;
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* A draft, visible only to the shop's team until it is published. It may have a title of 1
|
|
2189
|
+
* character and no price yet; category, city and condition are still required.
|
|
2190
|
+
*/
|
|
2191
|
+
interface DraftListingInput extends ListingInputFields {
|
|
2192
|
+
status: 'draft';
|
|
2193
|
+
title: string;
|
|
2194
|
+
price?: number;
|
|
2195
|
+
}
|
|
2196
|
+
type CreateListingInput = PublishedListingInput | DraftListingInput;
|
|
2197
|
+
/**
|
|
2198
|
+
* Fields to change. A draft may hold a short title or a price of 0; a live piece keeps a title of
|
|
2199
|
+
* at least 3 characters and a price of at least KES 50.
|
|
2200
|
+
*/
|
|
2201
|
+
interface UpdateListingInput {
|
|
2202
|
+
title?: string;
|
|
2203
|
+
description?: string;
|
|
2204
|
+
category_id?: string;
|
|
2205
|
+
city_id?: string;
|
|
2206
|
+
price?: number;
|
|
2207
|
+
condition?: Condition;
|
|
2208
|
+
size?: string;
|
|
2209
|
+
stock_quantity?: number;
|
|
2130
2210
|
vazi_eligible?: boolean;
|
|
2211
|
+
package_size?: PackageSize;
|
|
2131
2212
|
}
|
|
2132
|
-
|
|
2213
|
+
/** Where a piece's package size came from: the seller, or its category's default. */
|
|
2214
|
+
type PackageSource = 'seller' | 'category_default';
|
|
2133
2215
|
/** Which part of the catalogue a category belongs to. */
|
|
2134
2216
|
type CategorySection = 'fashion' | 'home';
|
|
2135
2217
|
interface Category {
|
|
@@ -3042,7 +3124,10 @@ interface StoreSettings {
|
|
|
3042
3124
|
operating_days: 'everyday' | 'weekdays' | 'custom';
|
|
3043
3125
|
custom_days: string[];
|
|
3044
3126
|
phone_verified: boolean;
|
|
3045
|
-
/**
|
|
3127
|
+
/**
|
|
3128
|
+
* A URL, or a private document id. Read-only here: set it with `stores.submitVerification`;
|
|
3129
|
+
* `updateSettings` ignores it.
|
|
3130
|
+
*/
|
|
3046
3131
|
id_document_url: string | null;
|
|
3047
3132
|
id_verified: boolean;
|
|
3048
3133
|
kra_pin: string | null;
|
|
@@ -3086,6 +3171,20 @@ interface StoreAnalytics {
|
|
|
3086
3171
|
followers: number;
|
|
3087
3172
|
};
|
|
3088
3173
|
}
|
|
3174
|
+
declare const SELLER_VERIFICATION_STATUSES: readonly ["unverified", "pending", "verified", "rejected"];
|
|
3175
|
+
type SellerVerificationStatus = typeof SELLER_VERIFICATION_STATUSES[number];
|
|
3176
|
+
/** Where the shop owner's identity verification stands. */
|
|
3177
|
+
interface SellerVerification {
|
|
3178
|
+
status: SellerVerificationStatus;
|
|
3179
|
+
submitted_at: string | null;
|
|
3180
|
+
decided_at: string | null;
|
|
3181
|
+
/** The reason given for a rejection. */
|
|
3182
|
+
note: string | null;
|
|
3183
|
+
/** The submitted private document, read with `documents.get`. */
|
|
3184
|
+
document_id: string | null;
|
|
3185
|
+
/** True when the document on file is a URL rather than a private document. */
|
|
3186
|
+
legacy_document: boolean;
|
|
3187
|
+
}
|
|
3089
3188
|
|
|
3090
3189
|
/**
|
|
3091
3190
|
* Where an order's payout stands:
|
|
@@ -4497,15 +4596,25 @@ declare class ListingsModule {
|
|
|
4497
4596
|
images: ListingImage[];
|
|
4498
4597
|
}>;
|
|
4499
4598
|
/**
|
|
4500
|
-
*
|
|
4599
|
+
* List a piece in a shop, live or as a draft (`status: 'draft'`). Needs `store:listings.manage`
|
|
4600
|
+
* in that shop. A draft is seen only by the shop's team until it is published.
|
|
4601
|
+
*
|
|
4602
|
+
* Errors: 400 invalid_input; 403 store_forbidden, not_a_retail_shop; 404 store_not_found.
|
|
4501
4603
|
*/
|
|
4502
4604
|
create(input: CreateListingInput, options?: RequestOptions): Promise<Listing>;
|
|
4503
4605
|
/**
|
|
4504
|
-
*
|
|
4606
|
+
* Change a piece's details, stock or package size. Sold and removed pieces
|
|
4607
|
+
* cannot be edited.
|
|
4608
|
+
*
|
|
4609
|
+
* Errors: 400 invalid_input, listing_immutable; 403 store_forbidden; 404 not_found.
|
|
4505
4610
|
*/
|
|
4506
4611
|
update(id: string, input: UpdateListingInput, options?: RequestOptions): Promise<Listing>;
|
|
4507
4612
|
/**
|
|
4508
|
-
* Change
|
|
4613
|
+
* Change a piece's status. Publishing a draft (`'active'`) needs a title of 3+ letters, a price
|
|
4614
|
+
* of at least KES 50 and at least one photo; otherwise 422 `not_ready` whose message names what
|
|
4615
|
+
* is missing (see `notReadyToPublish`).
|
|
4616
|
+
*
|
|
4617
|
+
* Errors: 400 invalid_transition; 403 store_forbidden; 404 not_found; 422 not_ready.
|
|
4509
4618
|
*/
|
|
4510
4619
|
updateStatus(id: string, status: ListingStatus, options?: RequestOptions): Promise<{
|
|
4511
4620
|
ok: boolean;
|
|
@@ -4604,6 +4713,8 @@ declare class ListingsModule {
|
|
|
4604
4713
|
data: SimilarListing[];
|
|
4605
4714
|
}>;
|
|
4606
4715
|
}
|
|
4716
|
+
/** Whether an error says a draft is not ready to publish. Its message names what is missing. */
|
|
4717
|
+
declare function notReadyToPublish(error: unknown): boolean;
|
|
4607
4718
|
|
|
4608
4719
|
declare class SearchModule {
|
|
4609
4720
|
private readonly client;
|
|
@@ -4924,6 +5035,14 @@ declare class StoresModule {
|
|
|
4924
5035
|
* Get store statistics.
|
|
4925
5036
|
*/
|
|
4926
5037
|
getStats(storeId: string, options?: RequestOptions): Promise<StoreStats>;
|
|
5038
|
+
/** Where the shop owner's identity verification stands. Owner only (403 otherwise). */
|
|
5039
|
+
getVerification(storeId: string, options?: RequestOptions): Promise<SellerVerification>;
|
|
5040
|
+
/**
|
|
5041
|
+
* Submit an identity document for review: upload it first with `documents.upload` (purpose
|
|
5042
|
+
* `identity_document`, this store). Owner only. 400 `invalid_document` for any other document,
|
|
5043
|
+
* 409 `already_verified` or `no_seller_profile`.
|
|
5044
|
+
*/
|
|
5045
|
+
submitVerification(storeId: string, documentId: string, options?: RequestOptions): Promise<SellerVerification>;
|
|
4927
5046
|
/**
|
|
4928
5047
|
* Get store settings.
|
|
4929
5048
|
*/
|
|
@@ -5016,6 +5135,14 @@ declare class StoresModule {
|
|
|
5016
5135
|
*/
|
|
5017
5136
|
removePayoutDestination(storeId: string, destinationId: string, options?: RequestOptions): Promise<PayoutDestinationsState>;
|
|
5018
5137
|
private destinationPath;
|
|
5138
|
+
/**
|
|
5139
|
+
* The shop's whole stock for its team: drafts, live, sold and (by filter) removed pieces, most
|
|
5140
|
+
* recently changed first, 24 per page, with counts per status. `store:listings.read`. The public
|
|
5141
|
+
* store page (`getListings`) shows live pieces only.
|
|
5142
|
+
*
|
|
5143
|
+
* Errors: 400 invalid_input; 403 store_forbidden; 404 not_found.
|
|
5144
|
+
*/
|
|
5145
|
+
getInventory(storeId: string, params?: InventoryParams, options?: RequestOptions): Promise<InventoryPage>;
|
|
5019
5146
|
/**
|
|
5020
5147
|
* The shop's members, and the roles the caller may give. `store:members.manage`.
|
|
5021
5148
|
*
|
|
@@ -5476,7 +5603,11 @@ declare class AdminModule {
|
|
|
5476
5603
|
ok: true;
|
|
5477
5604
|
verification_status: 'verified';
|
|
5478
5605
|
}>;
|
|
5479
|
-
|
|
5606
|
+
/**
|
|
5607
|
+
* Reject a seller's verification. `reason` (1–500 characters) is required and shown to the seller.
|
|
5608
|
+
* 409 `already_decided` when already rejected.
|
|
5609
|
+
*/
|
|
5610
|
+
rejectVerification(userId: string, reason: string, options?: RequestOptions): Promise<{
|
|
5480
5611
|
ok: true;
|
|
5481
5612
|
verification_status: 'rejected';
|
|
5482
5613
|
}>;
|
|
@@ -6302,4 +6433,4 @@ declare class MitumbaClient {
|
|
|
6302
6433
|
isAuthenticated(): Promise<boolean>;
|
|
6303
6434
|
}
|
|
6304
6435
|
|
|
6305
|
-
export { APIClient, APIError, type APIErrorResponse, type AcceptStoreInvitationResult, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type AddPayoutDestinationInput, type Address, type AdminAuditActor, type AdminAuditEntry, type AdminAuditQuery, type AdminAuthStrength, type AdminListingItem, type AdminMessageReport, type AdminMessageReportDetail, type AdminMessageReportList, type AdminMessageReportThreadMessage, AdminModule, type AdminOperator, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminPermission, type AdminPermissionDescription, type AdminRecoveryEvent, type AdminRecoveryRequest, type AdminRefundItem, type AdminRefundReason, type AdminRefundSendResult, type AdminRefundStatus, type AdminReport, type AdminRolePreset, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, type AdminWholesalePendingStore, type ApiResponse, type AttachmentDownloadAuthorization, type AttachmentUploadAuthorization, type AttachmentUploadBody, type AttachmentUploadState, type AttachmentUploadStatus, type AuthCapabilities, AuthModule, type AuthTokens, type AuthenticationResponseJSON, BALE_ORDER_STATUSES, type Bale, type BaleDetail, type BaleFeedItem, type BaleFulfillment, type BaleGrade, type BaleImageUploadResult, type BaleOrder, type BaleOrderEvent, type BaleOrderStatus, type BaleType, type BecomeBaleSellerInput, type BecomeSellerInput, type BlockedIp, type Business, type BusinessType, BusinessesModule, type BuyerResolveThreadInput, type BuyerSummary, CONDITIONS, type CancelCheckoutRefusalCode, type CancelCheckoutResponse, type CancelOrderInput, type CancelOrderResult, type CartItem, type CartLineAvailability, CartModule, type CartPartition, type CategoriesBySection, type Category, type CategorySection, type ChangePasswordInput, type ChangePlatformSettingInput, type ChangePlatformSettingResult, type Checkout, type CheckoutMoney, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutRefusal, type CheckoutRefusalCode, type CheckoutShopOrder, type CheckoutState, type CheckoutStatus, type CheckoutStatusResponse, CheckoutsModule, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateCheckoutInput, type CreateCheckoutResponse, type CreateIamUserInput, type CreateIamUserResult, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateOrganizationInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, type CreatedBaleOrder, type CursorPage, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DOCUMENT_PURPOSES, type DecideShopLimitInput, type DecideShopLimitResult, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type DocumentPurpose, DocumentsModule, type EarningsBalance, type EmailLoginInput, type EmailRegisterInput, type FileResponse, type FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, type GetCheckoutResponse, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, type IamSession, type IamSessionsResult, type IamSignIn, type IamSignInFailureReason, type IamSignInsResult, type IamTokens, type IamTwoFactorRequired, type IamUser, type IamUserStatus, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type InvitableStoreRole, type InviteToStoreInput, type InviteToStoreResult, type Jwk, type Jwks, type KnownPaymentProvider, type KnownShopStep, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LibraryCadence, type LibraryCompleter, type LibraryDocument, type LibraryDocumentSummary, type LibraryKind, type LibraryListing, type LibraryOccurrence, type LibraryOccurrenceRecorded, type LibraryOccurrenceStatus, type LibraryRoutineState, type LibrarySchedule, type LibraryScheduleRule, type LibrarySeason, type LibraryWeekday, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListIamUsersResult, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LiveUnread, type LiveUnreadOptions, type LoginInput, MailerModule, type MailerTemplate, type Market, type MarketCurrency, type MarketPhone, type MarketRegion, type MarketRegionsResponse, type MarketStatus, type MarketingConsentChange, MarketsModule, type MarketsResponse, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportOutcome, type MessageReportReason, type MessageReportStatus, type MessageResponse, MessagesModule, type MessagesRealtimeConnection, type MessagesRealtimeEnvelope, type MessagesRealtimeEvent, type MessagesRealtimeOptions, type MessagesRealtimeState, type MessagesRealtimeTicket, type MessagingBlockInput, type MessagingBlockRemovedResult, type MessagingBlockResult, type MessagingCapabilities, type MessagingCursor, type MessagingErrorCode, type MessagingIdempotentRequestOptions, type MessagingInboxes, type MessagingPerspective, type MessagingSide, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type MutableFlashKind, type Notification, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationFlash, type NotificationLink, type NotificationPref, type NotificationPreferenceCategory, type NotificationPreferences, type NotificationStream, type NotificationStreamFrame, type NotificationStreamItem, type NotificationStreamOptions, type NotificationStreamState, type NotificationStreamTicket, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthClient, type OAuthClientSummary, type OAuthClientTrustLevel, type OAuthClientType, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OidcSigningKey, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderDocument, type OrderDocumentKind, type OrderEvent, type OrderHistoryEntry, type OrderHistoryParams, type OrderItem, type OrderItemSummary, type OrderStatus, OrdersModule, type Organization, type OrganizationKind, type OrganizationStatus, type OrganizationSummary, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentAttemptStatus, type PaymentMethod, type PaymentMethodType, type PaymentProvider, type PaymentStatus, type PaymentStatusResponse, type PayoutBankOption, type PayoutDestination, type PayoutDestinationLabel, type PayoutDestinationRejection, type PayoutDestinations, type PayoutDestinationsState, type PayoutMethodOption, type PayoutMethodType, type PayoutState, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PreferenceCellChange, type PreferenceSettingsChange, type PresignImageResponse, type PrivateDocument, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type QuietHours, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type ReceivedStoreInvitation, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type RequestStoreLimitInput, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type SettlementLine, type ShareUrlOptions, type ShopCancelReason, type ShopEarnings, type ShopHolder, type ShopNextStep, type ShopOrderFields, type ShopPayout, type ShopPayoutEntriesPage, type ShopPayoutEntriesParams, type ShopPayoutEntry, type ShopSettlement, type ShopStep, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreAuditEntry, type StoreAuditPage, type StoreInvitation, type StoreInvitationListItem, type StoreLimitRequest, type StoreLimitRequestStatus, type StoreLimitState, type StoreMember, type StoreMembers, type StoreMembershipFields, type StorePermission, type StoreResolveThreadInput, type StoreReviewsPage, type StoreRole, type StoreSettings, type StoreStats, type StoreSummary, StoresModule, type SubscriptionTier, type SystemStats, TWO_FACTOR_METHOD_TYPES, type ThreadCard, type ThreadId, type ThreadMessage, type ThreadSubject, type ThreadSystemEvent, type ThreadTimelineItem, type ThreadTimelineItemId, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorMethod, type TwoFactorMethodType, type TwoFactorRequired, type UpdateBusinessInput, type UpdateConversationPreferencesInput, type UpdateListingInput, type UpdateOrganizationInput, type UpdateProfileInput, type UpdateStoreInput, type UpdateThreadPreferencesInput, type UploadDocumentInput, UploadsModule, type UserInfo, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyIamMethodResult, type VerifyIamTwoFactorInput, type VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleReviewStatus, type WholesaleStore, type WishlistListing, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isDocumentId, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, stepUpRequired, storeShareUrl };
|
|
6436
|
+
export { APIClient, APIError, type APIErrorResponse, type AcceptStoreInvitationResult, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type AddPayoutDestinationInput, type Address, type AdminAuditActor, type AdminAuditEntry, type AdminAuditQuery, type AdminAuthStrength, type AdminListingItem, type AdminMessageReport, type AdminMessageReportDetail, type AdminMessageReportList, type AdminMessageReportThreadMessage, AdminModule, type AdminOperator, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminPermission, type AdminPermissionDescription, type AdminRecoveryEvent, type AdminRecoveryRequest, type AdminRefundItem, type AdminRefundReason, type AdminRefundSendResult, type AdminRefundStatus, type AdminReport, type AdminRolePreset, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, type AdminWholesalePendingStore, type ApiResponse, type AttachmentDownloadAuthorization, type AttachmentUploadAuthorization, type AttachmentUploadBody, type AttachmentUploadState, type AttachmentUploadStatus, type AuthCapabilities, AuthModule, type AuthTokens, type AuthenticationResponseJSON, BALE_ORDER_STATUSES, type Bale, type BaleDetail, type BaleFeedItem, type BaleFulfillment, type BaleGrade, type BaleImageUploadResult, type BaleOrder, type BaleOrderEvent, type BaleOrderStatus, type BaleType, type BecomeBaleSellerInput, type BecomeSellerInput, type BlockedIp, type Business, type BusinessType, BusinessesModule, type BuyerResolveThreadInput, type BuyerSummary, CONDITIONS, type CancelCheckoutRefusalCode, type CancelCheckoutResponse, type CancelOrderInput, type CancelOrderResult, type CartItem, type CartLineAvailability, CartModule, type CartPartition, type CategoriesBySection, type Category, type CategorySection, type ChangePasswordInput, type ChangePlatformSettingInput, type ChangePlatformSettingResult, type Checkout, type CheckoutMoney, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutRefusal, type CheckoutRefusalCode, type CheckoutShopOrder, type CheckoutState, type CheckoutStatus, type CheckoutStatusResponse, CheckoutsModule, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateCheckoutInput, type CreateCheckoutResponse, type CreateIamUserInput, type CreateIamUserResult, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateOrganizationInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, type CreatedBaleOrder, type CursorPage, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DOCUMENT_PURPOSES, type DecideShopLimitInput, type DecideShopLimitResult, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type DocumentPurpose, DocumentsModule, type DraftListingInput, type EarningsBalance, type EmailLoginInput, type EmailRegisterInput, type FileResponse, type FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, type GetCheckoutResponse, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, type IamSession, type IamSessionsResult, type IamSignIn, type IamSignInFailureReason, type IamSignInsResult, type IamTokens, type IamTwoFactorRequired, type IamUser, type IamUserStatus, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type InventoryItem, type InventoryPage, type InventoryParams, type InvitableStoreRole, type InviteToStoreInput, type InviteToStoreResult, type Jwk, type Jwks, type KnownPaymentProvider, type KnownShopStep, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LibraryCadence, type LibraryCompleter, type LibraryDocument, type LibraryDocumentSummary, type LibraryKind, type LibraryListing, type LibraryOccurrence, type LibraryOccurrenceRecorded, type LibraryOccurrenceStatus, type LibraryRoutineState, type LibrarySchedule, type LibraryScheduleRule, type LibrarySeason, type LibraryWeekday, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListIamUsersResult, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LiveUnread, type LiveUnreadOptions, type LoginInput, MailerModule, type MailerTemplate, type Market, type MarketCurrency, type MarketPhone, type MarketRegion, type MarketRegionsResponse, type MarketStatus, type MarketingConsentChange, MarketsModule, type MarketsResponse, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportOutcome, type MessageReportReason, type MessageReportStatus, type MessageResponse, MessagesModule, type MessagesRealtimeConnection, type MessagesRealtimeEnvelope, type MessagesRealtimeEvent, type MessagesRealtimeOptions, type MessagesRealtimeState, type MessagesRealtimeTicket, type MessagingBlockInput, type MessagingBlockRemovedResult, type MessagingBlockResult, type MessagingCapabilities, type MessagingCursor, type MessagingErrorCode, type MessagingIdempotentRequestOptions, type MessagingInboxes, type MessagingPerspective, type MessagingSide, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type MutableFlashKind, type Notification, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationFlash, type NotificationLink, type NotificationPref, type NotificationPreferenceCategory, type NotificationPreferences, type NotificationStream, type NotificationStreamFrame, type NotificationStreamItem, type NotificationStreamOptions, type NotificationStreamState, type NotificationStreamTicket, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthClient, type OAuthClientSummary, type OAuthClientTrustLevel, type OAuthClientType, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OidcSigningKey, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderDocument, type OrderDocumentKind, type OrderEvent, type OrderHistoryEntry, type OrderHistoryParams, type OrderItem, type OrderItemSummary, type OrderStatus, OrdersModule, type Organization, type OrganizationKind, type OrganizationStatus, type OrganizationSummary, PACKAGE_SIZES, PAYMENT_STATUSES, type PackageSize, type PackageSource, type PaginatedResponse, PayModule, type PaymentAttemptStatus, type PaymentMethod, type PaymentMethodType, type PaymentProvider, type PaymentStatus, type PaymentStatusResponse, type PayoutBankOption, type PayoutDestination, type PayoutDestinationLabel, type PayoutDestinationRejection, type PayoutDestinations, type PayoutDestinationsState, type PayoutMethodOption, type PayoutMethodType, type PayoutState, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PreferenceCellChange, type PreferenceSettingsChange, type PresignImageResponse, type PrivateDocument, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type PublishedListingInput, type QuietHours, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type ReceivedStoreInvitation, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type RequestStoreLimitInput, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, SELLER_VERIFICATION_STATUSES, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SellerVerification, type SellerVerificationStatus, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type SettlementLine, type ShareUrlOptions, type ShopCancelReason, type ShopEarnings, type ShopHolder, type ShopNextStep, type ShopOrderFields, type ShopPayout, type ShopPayoutEntriesPage, type ShopPayoutEntriesParams, type ShopPayoutEntry, type ShopSettlement, type ShopStep, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreAuditEntry, type StoreAuditPage, type StoreInvitation, type StoreInvitationListItem, type StoreLimitRequest, type StoreLimitRequestStatus, type StoreLimitState, type StoreMember, type StoreMembers, type StoreMembershipFields, type StorePermission, type StoreResolveThreadInput, type StoreReviewsPage, type StoreRole, type StoreSettings, type StoreStats, type StoreSummary, StoresModule, type SubscriptionTier, type SystemStats, TWO_FACTOR_METHOD_TYPES, type ThreadCard, type ThreadId, type ThreadMessage, type ThreadSubject, type ThreadSystemEvent, type ThreadTimelineItem, type ThreadTimelineItemId, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorMethod, type TwoFactorMethodType, type TwoFactorRequired, type UpdateBusinessInput, type UpdateConversationPreferencesInput, type UpdateListingInput, type UpdateOrganizationInput, type UpdateProfileInput, type UpdateStoreInput, type UpdateThreadPreferencesInput, type UploadDocumentInput, UploadsModule, type UserInfo, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyIamMethodResult, type VerifyIamTwoFactorInput, type VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleReviewStatus, type WholesaleStore, type WishlistListing, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isDocumentId, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, notReadyToPublish, partitionCart, regionById, stepUpRequired, storeShareUrl };
|