@mitumba/sdk 5.36.0 → 5.38.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 CHANGED
@@ -2116,6 +2116,10 @@ interface Listing {
2116
2116
  /** Present on `GET /listings/:id`. */
2117
2117
  package_size?: PackageSize;
2118
2118
  package_source?: PackageSource;
2119
+ /** Present on `GET /listings/:id`: whether its shop takes orders now, and when it does again. */
2120
+ store_accepting_orders?: boolean;
2121
+ store_away_until?: string | null;
2122
+ store_paused_until?: string | null;
2119
2123
  }
2120
2124
  /** One piece in a shop's inventory, as its team sees it. */
2121
2125
  interface InventoryItem {
@@ -3055,6 +3059,24 @@ interface Store {
3055
3059
  sti_score?: number;
3056
3060
  follower_count?: number;
3057
3061
  is_following?: boolean;
3062
+ /** Whether the shop takes new orders now. False while it is away or paused (on getBySlug). */
3063
+ accepting_orders?: boolean;
3064
+ /** When an away shop takes orders again, or null. */
3065
+ away_until?: string | null;
3066
+ /** When a shop paused after cancellations takes orders again, or null. */
3067
+ paused_until?: string | null;
3068
+ }
3069
+ /** A shop's away state, as its team sees it. */
3070
+ interface StoreAway {
3071
+ accepting_orders: boolean;
3072
+ /** The return date while away, or null. */
3073
+ away_until: string | null;
3074
+ /** When it went away, or null. */
3075
+ away_since: string | null;
3076
+ /** When a pause after cancellations ends, or null. A pause is set by the system, not the team. */
3077
+ paused_until: string | null;
3078
+ /** Orders that still need the shop. Going away needs none. */
3079
+ open_orders: number;
3058
3080
  }
3059
3081
  interface FollowedStore {
3060
3082
  id: string;
@@ -3465,6 +3487,37 @@ interface AdminShopLimitRequestsPage {
3465
3487
  page: number;
3466
3488
  has_more: boolean;
3467
3489
  }
3490
+ /** An active member of a shop, as operators see it. */
3491
+ interface AdminShopMember {
3492
+ id: string;
3493
+ user_id: string;
3494
+ role: StoreRole;
3495
+ joined_at: string;
3496
+ name: string;
3497
+ email: string | null;
3498
+ }
3499
+ /** One entry of a shop's audit log, as operators see it, with the detail recorded for the change. */
3500
+ interface AdminShopAuditEntry {
3501
+ id: string;
3502
+ actor_id: string;
3503
+ actor_name: string;
3504
+ action: string;
3505
+ target_type: string | null;
3506
+ target_id: string | null;
3507
+ summary: string;
3508
+ /** What changed, as recorded (for example `{ before, after }`), or null. */
3509
+ detail: unknown;
3510
+ created_at: string;
3511
+ }
3512
+ /** A shop's active members and one page of its audit log (50 entries, newest first). */
3513
+ interface AdminShopTeam {
3514
+ members: AdminShopMember[];
3515
+ audit: {
3516
+ data: AdminShopAuditEntry[];
3517
+ page: number;
3518
+ has_more: boolean;
3519
+ };
3520
+ }
3468
3521
  type DecideShopLimitInput = {
3469
3522
  decision: 'approve';
3470
3523
  approved_limit: number;
@@ -3553,6 +3606,11 @@ interface CartItem {
3553
3606
  store_id: string;
3554
3607
  store_name: string;
3555
3608
  store_slug: string;
3609
+ /** Whether the line's shop takes orders now. False while it is away or paused; then nothing can be bought. */
3610
+ store_accepting_orders?: boolean;
3611
+ /** When the shop takes orders again, while it is away or paused. */
3612
+ store_away_until?: string | null;
3613
+ store_paused_until?: string | null;
3556
3614
  image_url: string | null;
3557
3615
  /**
3558
3616
  * @deprecated A flat legacy per-city fee, not a delivery price. Delivery is priced per shop at
@@ -3568,8 +3626,9 @@ interface CartItem {
3568
3626
  * - `reserved`: on sale, but every unit is held by other buyers' unpaid checkouts. It may come back.
3569
3627
  * - `sold`: sold out for good.
3570
3628
  * - `unavailable`: withdrawn by the seller (removed or back in draft).
3629
+ * - `shop_away`: on sale, but its shop is away or paused and takes no orders until it is back.
3571
3630
  */
3572
- type CartLineAvailability = 'available' | 'limited' | 'reserved' | 'sold' | 'unavailable';
3631
+ type CartLineAvailability = 'available' | 'limited' | 'reserved' | 'sold' | 'unavailable' | 'shop_away';
3573
3632
 
3574
3633
  /** An amount in a currency's minor units (cents for KES). */
3575
3634
  interface CheckoutMoney {
@@ -5143,6 +5202,22 @@ declare class StoresModule {
5143
5202
  * Errors: 400 invalid_input; 403 store_forbidden; 404 not_found.
5144
5203
  */
5145
5204
  getInventory(storeId: string, params?: InventoryParams, options?: RequestOptions): Promise<InventoryPage>;
5205
+ /**
5206
+ * The shop's away state, and how many orders still need it. `store:settings.manage`.
5207
+ *
5208
+ * Errors: 403 store_forbidden; 404 not_found.
5209
+ */
5210
+ getAway(storeId: string, options?: RequestOptions): Promise<StoreAway>;
5211
+ /**
5212
+ * Go away until `until` (an ISO date-time at most 30 days ahead). The shop takes no new orders
5213
+ * until then, and comes back by itself. Only with no open orders. `store:settings.manage`.
5214
+ *
5215
+ * Errors: 400 invalid_input, invalid_away_date; 403 store_forbidden; 404 not_found;
5216
+ * 409 store_has_open_orders (`body.open_orders`).
5217
+ */
5218
+ setAway(storeId: string, until: string, options?: RequestOptions): Promise<StoreAway>;
5219
+ /** Come back before the return date. Nothing changes for a shop that is not away. `store:settings.manage`. */
5220
+ returnFromAway(storeId: string, options?: RequestOptions): Promise<StoreAway>;
5146
5221
  /**
5147
5222
  * The shop's members, and the roles the caller may give. `store:members.manage`.
5148
5223
  *
@@ -5238,6 +5313,19 @@ declare class StoresModule {
5238
5313
  }
5239
5314
  /** Whether an error asks the caller to sign in again with a second factor before retrying. */
5240
5315
  declare function stepUpRequired(error: unknown): boolean;
5316
+ /** A shop that takes no orders now, from {@link shopsNotTakingOrders}. */
5317
+ interface ShopNotTakingOrders {
5318
+ store_id: string | null;
5319
+ /** `store_away`: the team went away. `store_paused`: paused after cancellations. */
5320
+ reason: 'store_away' | 'store_paused';
5321
+ /** When it takes orders again, if known. */
5322
+ until: string | null;
5323
+ }
5324
+ /**
5325
+ * The shops an error says take no orders now (away, or paused after cancellations): one from adding
5326
+ * to the cart, one or more from checkout. Empty for any other error.
5327
+ */
5328
+ declare function shopsNotTakingOrders(error: unknown): ShopNotTakingOrders[];
5241
5329
 
5242
5330
  declare class ReviewsModule {
5243
5331
  private readonly client;
@@ -5707,6 +5795,15 @@ declare class AdminModule {
5707
5795
  status?: StoreLimitRequestStatus;
5708
5796
  page?: number;
5709
5797
  }, options?: RequestOptions): Promise<AdminShopLimitRequestsPage>;
5798
+ /**
5799
+ * A shop's active members and one page of its audit log, 50 entries newest first, closed shops
5800
+ * included. `admin:read`.
5801
+ *
5802
+ * Errors: 403 forbidden; 404 not_found.
5803
+ */
5804
+ getShopTeam(storeId: string, params?: {
5805
+ page?: number;
5806
+ }, options?: RequestOptions): Promise<AdminShopTeam>;
5710
5807
  /**
5711
5808
  * Approve a request with a new limit (above the current one, at most 50), or reject it with a note
5712
5809
  * of at least 10 characters. The owner is told. `sellers:verify`.
@@ -6262,7 +6359,7 @@ declare class MarketsModule {
6262
6359
  regions(code: string, options?: RequestOptions): Promise<MarketRegionsResponse>;
6263
6360
  }
6264
6361
 
6265
- type AvailabilityFields = Pick<CartItem, 'status' | 'quantity' | 'available_quantity'>;
6362
+ type AvailabilityFields = Pick<CartItem, 'status' | 'quantity' | 'available_quantity'> & Partial<Pick<CartItem, 'store_accepting_orders'>>;
6266
6363
  /** Whether a cart line can be bought now. See {@link CartLineAvailability}. */
6267
6364
  declare function cartLineAvailability(item: AvailabilityFields): CartLineAvailability;
6268
6365
  /** True when the line can be checked out, possibly at a lower quantity (`limited`). */
@@ -6272,7 +6369,7 @@ interface CartPartition<T extends AvailabilityFields> {
6272
6369
  buyable: T[];
6273
6370
  /** Lines with fewer units left than in the cart: lower the quantity to `available_quantity`. */
6274
6371
  limited: T[];
6275
- /** Lines that cannot be bought now: sold, withdrawn, or reserved by other buyers. */
6372
+ /** Lines that cannot be bought now: sold, withdrawn, reserved by other buyers, or from a shop that is away. */
6276
6373
  unavailable: T[];
6277
6374
  }
6278
6375
  /**
@@ -6433,4 +6530,4 @@ declare class MitumbaClient {
6433
6530
  isAuthenticated(): Promise<boolean>;
6434
6531
  }
6435
6532
 
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 };
6533
+ 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 AdminShopAuditEntry, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, type AdminShopMember, type AdminShopTeam, 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 ShopNotTakingOrders, 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 StoreAway, 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, shopsNotTakingOrders, stepUpRequired, storeShareUrl };
package/dist/index.d.ts CHANGED
@@ -2116,6 +2116,10 @@ interface Listing {
2116
2116
  /** Present on `GET /listings/:id`. */
2117
2117
  package_size?: PackageSize;
2118
2118
  package_source?: PackageSource;
2119
+ /** Present on `GET /listings/:id`: whether its shop takes orders now, and when it does again. */
2120
+ store_accepting_orders?: boolean;
2121
+ store_away_until?: string | null;
2122
+ store_paused_until?: string | null;
2119
2123
  }
2120
2124
  /** One piece in a shop's inventory, as its team sees it. */
2121
2125
  interface InventoryItem {
@@ -3055,6 +3059,24 @@ interface Store {
3055
3059
  sti_score?: number;
3056
3060
  follower_count?: number;
3057
3061
  is_following?: boolean;
3062
+ /** Whether the shop takes new orders now. False while it is away or paused (on getBySlug). */
3063
+ accepting_orders?: boolean;
3064
+ /** When an away shop takes orders again, or null. */
3065
+ away_until?: string | null;
3066
+ /** When a shop paused after cancellations takes orders again, or null. */
3067
+ paused_until?: string | null;
3068
+ }
3069
+ /** A shop's away state, as its team sees it. */
3070
+ interface StoreAway {
3071
+ accepting_orders: boolean;
3072
+ /** The return date while away, or null. */
3073
+ away_until: string | null;
3074
+ /** When it went away, or null. */
3075
+ away_since: string | null;
3076
+ /** When a pause after cancellations ends, or null. A pause is set by the system, not the team. */
3077
+ paused_until: string | null;
3078
+ /** Orders that still need the shop. Going away needs none. */
3079
+ open_orders: number;
3058
3080
  }
3059
3081
  interface FollowedStore {
3060
3082
  id: string;
@@ -3465,6 +3487,37 @@ interface AdminShopLimitRequestsPage {
3465
3487
  page: number;
3466
3488
  has_more: boolean;
3467
3489
  }
3490
+ /** An active member of a shop, as operators see it. */
3491
+ interface AdminShopMember {
3492
+ id: string;
3493
+ user_id: string;
3494
+ role: StoreRole;
3495
+ joined_at: string;
3496
+ name: string;
3497
+ email: string | null;
3498
+ }
3499
+ /** One entry of a shop's audit log, as operators see it, with the detail recorded for the change. */
3500
+ interface AdminShopAuditEntry {
3501
+ id: string;
3502
+ actor_id: string;
3503
+ actor_name: string;
3504
+ action: string;
3505
+ target_type: string | null;
3506
+ target_id: string | null;
3507
+ summary: string;
3508
+ /** What changed, as recorded (for example `{ before, after }`), or null. */
3509
+ detail: unknown;
3510
+ created_at: string;
3511
+ }
3512
+ /** A shop's active members and one page of its audit log (50 entries, newest first). */
3513
+ interface AdminShopTeam {
3514
+ members: AdminShopMember[];
3515
+ audit: {
3516
+ data: AdminShopAuditEntry[];
3517
+ page: number;
3518
+ has_more: boolean;
3519
+ };
3520
+ }
3468
3521
  type DecideShopLimitInput = {
3469
3522
  decision: 'approve';
3470
3523
  approved_limit: number;
@@ -3553,6 +3606,11 @@ interface CartItem {
3553
3606
  store_id: string;
3554
3607
  store_name: string;
3555
3608
  store_slug: string;
3609
+ /** Whether the line's shop takes orders now. False while it is away or paused; then nothing can be bought. */
3610
+ store_accepting_orders?: boolean;
3611
+ /** When the shop takes orders again, while it is away or paused. */
3612
+ store_away_until?: string | null;
3613
+ store_paused_until?: string | null;
3556
3614
  image_url: string | null;
3557
3615
  /**
3558
3616
  * @deprecated A flat legacy per-city fee, not a delivery price. Delivery is priced per shop at
@@ -3568,8 +3626,9 @@ interface CartItem {
3568
3626
  * - `reserved`: on sale, but every unit is held by other buyers' unpaid checkouts. It may come back.
3569
3627
  * - `sold`: sold out for good.
3570
3628
  * - `unavailable`: withdrawn by the seller (removed or back in draft).
3629
+ * - `shop_away`: on sale, but its shop is away or paused and takes no orders until it is back.
3571
3630
  */
3572
- type CartLineAvailability = 'available' | 'limited' | 'reserved' | 'sold' | 'unavailable';
3631
+ type CartLineAvailability = 'available' | 'limited' | 'reserved' | 'sold' | 'unavailable' | 'shop_away';
3573
3632
 
3574
3633
  /** An amount in a currency's minor units (cents for KES). */
3575
3634
  interface CheckoutMoney {
@@ -5143,6 +5202,22 @@ declare class StoresModule {
5143
5202
  * Errors: 400 invalid_input; 403 store_forbidden; 404 not_found.
5144
5203
  */
5145
5204
  getInventory(storeId: string, params?: InventoryParams, options?: RequestOptions): Promise<InventoryPage>;
5205
+ /**
5206
+ * The shop's away state, and how many orders still need it. `store:settings.manage`.
5207
+ *
5208
+ * Errors: 403 store_forbidden; 404 not_found.
5209
+ */
5210
+ getAway(storeId: string, options?: RequestOptions): Promise<StoreAway>;
5211
+ /**
5212
+ * Go away until `until` (an ISO date-time at most 30 days ahead). The shop takes no new orders
5213
+ * until then, and comes back by itself. Only with no open orders. `store:settings.manage`.
5214
+ *
5215
+ * Errors: 400 invalid_input, invalid_away_date; 403 store_forbidden; 404 not_found;
5216
+ * 409 store_has_open_orders (`body.open_orders`).
5217
+ */
5218
+ setAway(storeId: string, until: string, options?: RequestOptions): Promise<StoreAway>;
5219
+ /** Come back before the return date. Nothing changes for a shop that is not away. `store:settings.manage`. */
5220
+ returnFromAway(storeId: string, options?: RequestOptions): Promise<StoreAway>;
5146
5221
  /**
5147
5222
  * The shop's members, and the roles the caller may give. `store:members.manage`.
5148
5223
  *
@@ -5238,6 +5313,19 @@ declare class StoresModule {
5238
5313
  }
5239
5314
  /** Whether an error asks the caller to sign in again with a second factor before retrying. */
5240
5315
  declare function stepUpRequired(error: unknown): boolean;
5316
+ /** A shop that takes no orders now, from {@link shopsNotTakingOrders}. */
5317
+ interface ShopNotTakingOrders {
5318
+ store_id: string | null;
5319
+ /** `store_away`: the team went away. `store_paused`: paused after cancellations. */
5320
+ reason: 'store_away' | 'store_paused';
5321
+ /** When it takes orders again, if known. */
5322
+ until: string | null;
5323
+ }
5324
+ /**
5325
+ * The shops an error says take no orders now (away, or paused after cancellations): one from adding
5326
+ * to the cart, one or more from checkout. Empty for any other error.
5327
+ */
5328
+ declare function shopsNotTakingOrders(error: unknown): ShopNotTakingOrders[];
5241
5329
 
5242
5330
  declare class ReviewsModule {
5243
5331
  private readonly client;
@@ -5707,6 +5795,15 @@ declare class AdminModule {
5707
5795
  status?: StoreLimitRequestStatus;
5708
5796
  page?: number;
5709
5797
  }, options?: RequestOptions): Promise<AdminShopLimitRequestsPage>;
5798
+ /**
5799
+ * A shop's active members and one page of its audit log, 50 entries newest first, closed shops
5800
+ * included. `admin:read`.
5801
+ *
5802
+ * Errors: 403 forbidden; 404 not_found.
5803
+ */
5804
+ getShopTeam(storeId: string, params?: {
5805
+ page?: number;
5806
+ }, options?: RequestOptions): Promise<AdminShopTeam>;
5710
5807
  /**
5711
5808
  * Approve a request with a new limit (above the current one, at most 50), or reject it with a note
5712
5809
  * of at least 10 characters. The owner is told. `sellers:verify`.
@@ -6262,7 +6359,7 @@ declare class MarketsModule {
6262
6359
  regions(code: string, options?: RequestOptions): Promise<MarketRegionsResponse>;
6263
6360
  }
6264
6361
 
6265
- type AvailabilityFields = Pick<CartItem, 'status' | 'quantity' | 'available_quantity'>;
6362
+ type AvailabilityFields = Pick<CartItem, 'status' | 'quantity' | 'available_quantity'> & Partial<Pick<CartItem, 'store_accepting_orders'>>;
6266
6363
  /** Whether a cart line can be bought now. See {@link CartLineAvailability}. */
6267
6364
  declare function cartLineAvailability(item: AvailabilityFields): CartLineAvailability;
6268
6365
  /** True when the line can be checked out, possibly at a lower quantity (`limited`). */
@@ -6272,7 +6369,7 @@ interface CartPartition<T extends AvailabilityFields> {
6272
6369
  buyable: T[];
6273
6370
  /** Lines with fewer units left than in the cart: lower the quantity to `available_quantity`. */
6274
6371
  limited: T[];
6275
- /** Lines that cannot be bought now: sold, withdrawn, or reserved by other buyers. */
6372
+ /** Lines that cannot be bought now: sold, withdrawn, reserved by other buyers, or from a shop that is away. */
6276
6373
  unavailable: T[];
6277
6374
  }
6278
6375
  /**
@@ -6433,4 +6530,4 @@ declare class MitumbaClient {
6433
6530
  isAuthenticated(): Promise<boolean>;
6434
6531
  }
6435
6532
 
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 };
6533
+ 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 AdminShopAuditEntry, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, type AdminShopMember, type AdminShopTeam, 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 ShopNotTakingOrders, 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 StoreAway, 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, shopsNotTakingOrders, stepUpRequired, storeShareUrl };
package/dist/index.js CHANGED
@@ -2535,6 +2535,28 @@ var StoresModule = class {
2535
2535
  async getInventory(storeId, params, options) {
2536
2536
  return this.client.get(`/listings/stores/${encodeURIComponent(storeId)}/inventory`, params, options);
2537
2537
  }
2538
+ /**
2539
+ * The shop's away state, and how many orders still need it. `store:settings.manage`.
2540
+ *
2541
+ * Errors: 403 store_forbidden; 404 not_found.
2542
+ */
2543
+ async getAway(storeId, options) {
2544
+ return this.client.get(`/listings/stores/${encodeURIComponent(storeId)}/away`, void 0, options);
2545
+ }
2546
+ /**
2547
+ * Go away until `until` (an ISO date-time at most 30 days ahead). The shop takes no new orders
2548
+ * until then, and comes back by itself. Only with no open orders. `store:settings.manage`.
2549
+ *
2550
+ * Errors: 400 invalid_input, invalid_away_date; 403 store_forbidden; 404 not_found;
2551
+ * 409 store_has_open_orders (`body.open_orders`).
2552
+ */
2553
+ async setAway(storeId, until, options) {
2554
+ return this.client.put(`/listings/stores/${encodeURIComponent(storeId)}/away`, { until }, options);
2555
+ }
2556
+ /** Come back before the return date. Nothing changes for a shop that is not away. `store:settings.manage`. */
2557
+ async returnFromAway(storeId, options) {
2558
+ return this.client.delete(`/listings/stores/${encodeURIComponent(storeId)}/away`, void 0, options);
2559
+ }
2538
2560
  // ── Team ──────────────────────────────────────────────────────────────────
2539
2561
  /**
2540
2562
  * The shop's members, and the roles the caller may give. `store:members.manage`.
@@ -2645,6 +2667,13 @@ var StoresModule = class {
2645
2667
  function stepUpRequired(error) {
2646
2668
  return error instanceof APIError && error.code === "step_up_required";
2647
2669
  }
2670
+ function shopsNotTakingOrders(error) {
2671
+ if (!(error instanceof APIError) || error.code !== "store_away" && error.code !== "store_paused") return [];
2672
+ const body = error.body ?? {};
2673
+ if (Array.isArray(body.stores)) return body.stores.map((shop) => ({ store_id: shop.store_id, reason: shop.reason, until: shop.until }));
2674
+ const reason = error.code;
2675
+ return [{ store_id: body.store_id ?? null, reason, until: (reason === "store_away" ? body.away_until : body.paused_until) ?? null }];
2676
+ }
2648
2677
 
2649
2678
  // src/modules/reviews.ts
2650
2679
  var ReviewsModule = class {
@@ -3109,6 +3138,15 @@ var AdminModule = class {
3109
3138
  async listShopLimitRequests(params, options) {
3110
3139
  return this.client.get("/admin/shop-limit-requests", params, options);
3111
3140
  }
3141
+ /**
3142
+ * A shop's active members and one page of its audit log, 50 entries newest first, closed shops
3143
+ * included. `admin:read`.
3144
+ *
3145
+ * Errors: 403 forbidden; 404 not_found.
3146
+ */
3147
+ async getShopTeam(storeId, params, options) {
3148
+ return this.client.get(`/admin/stores/${encodeURIComponent(storeId)}/team`, params, options);
3149
+ }
3112
3150
  /**
3113
3151
  * Approve a request with a new limit (above the current one, at most 50), or reject it with a note
3114
3152
  * of at least 10 characters. The owner is told. `sellers:verify`.
@@ -3813,6 +3851,7 @@ var BALE_ORDER_STATUSES = ["pending_payment", "paid", "confirmed", "in_transit",
3813
3851
  function cartLineAvailability(item) {
3814
3852
  if (item.status === "sold") return "sold";
3815
3853
  if (item.status !== "active") return "unavailable";
3854
+ if (item.store_accepting_orders === false) return "shop_away";
3816
3855
  if (item.available_quantity <= 0) return "reserved";
3817
3856
  if (item.available_quantity < item.quantity) return "limited";
3818
3857
  return "available";
@@ -4157,6 +4196,7 @@ exports.normalizePhone = normalizePhone;
4157
4196
  exports.notReadyToPublish = notReadyToPublish;
4158
4197
  exports.partitionCart = partitionCart;
4159
4198
  exports.regionById = regionById;
4199
+ exports.shopsNotTakingOrders = shopsNotTakingOrders;
4160
4200
  exports.stepUpRequired = stepUpRequired;
4161
4201
  exports.storeShareUrl = storeShareUrl;
4162
4202
  //# sourceMappingURL=index.js.map