itd-api 0.8.0 → 0.9.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.
Files changed (80) hide show
  1. package/README.md +63 -18
  2. package/dist/events/index.cjs +3 -3
  3. package/dist/events/index.d.cts +2 -2
  4. package/dist/events/index.d.ts +2 -2
  5. package/dist/events/index.js +3 -3
  6. package/dist/index.cjs +26 -13
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +9 -6
  9. package/dist/index.d.ts +9 -6
  10. package/dist/index.js +13 -8
  11. package/dist/index.js.map +1 -1
  12. package/dist/node/index.cjs +5 -4
  13. package/dist/node/index.cjs.map +1 -1
  14. package/dist/node/index.d.cts +2 -2
  15. package/dist/node/index.d.ts +2 -2
  16. package/dist/node/index.js +4 -3
  17. package/dist/node/index.js.map +1 -1
  18. package/dist/rest/index.cjs +16 -4
  19. package/dist/rest/index.cjs.map +1 -1
  20. package/dist/rest/index.d.cts +5 -3
  21. package/dist/rest/index.d.ts +5 -3
  22. package/dist/rest/index.js +9 -5
  23. package/dist/rest/index.js.map +1 -1
  24. package/dist/shared/{events-TfhKh26b.js → events-C5wnTXPT.js} +3 -3
  25. package/dist/shared/{events-TfhKh26b.js.map → events-C5wnTXPT.js.map} +1 -1
  26. package/dist/shared/{events-QyhQZrnC.d.ts → events-CqtkP65d.d.ts} +2 -2
  27. package/dist/shared/{events-Br2r7coi.d.cts → events-DGAWlCaI.d.cts} +2 -2
  28. package/dist/shared/{events-iTteVsd_.cjs → events-FZfnEez0.cjs} +3 -3
  29. package/dist/shared/{events-iTteVsd_.cjs.map → events-FZfnEez0.cjs.map} +1 -1
  30. package/dist/shared/{storage-BLmXmzKF.cjs → key-value-store-B5GYVEYZ.cjs} +1 -85
  31. package/dist/shared/key-value-store-B5GYVEYZ.cjs.map +1 -0
  32. package/dist/shared/{storage-CCxn0Kkv.js → key-value-store-Bt2PSMxY.js} +2 -68
  33. package/dist/shared/key-value-store-Bt2PSMxY.js.map +1 -0
  34. package/dist/shared/key-value-store-COZaNHZS.d.cts +69 -0
  35. package/dist/shared/key-value-store-COZaNHZS.d.ts +69 -0
  36. package/dist/shared/{multi-storage-DccjD7Ww.d.ts → multi-storage-BEL7tcKn.d.cts} +3 -2
  37. package/dist/shared/{multi-storage-CCUgkqvI.cjs → multi-storage-CDKLa956.cjs} +8 -7
  38. package/dist/shared/{multi-storage-CCUgkqvI.cjs.map → multi-storage-CDKLa956.cjs.map} +1 -1
  39. package/dist/shared/{multi-storage-CjAPB5Kq.d.cts → multi-storage-LkljOSzA.d.ts} +3 -2
  40. package/dist/shared/{multi-storage-1AEZTczk.js → multi-storage-SoW05uzO.js} +4 -3
  41. package/dist/shared/{multi-storage-1AEZTczk.js.map → multi-storage-SoW05uzO.js.map} +1 -1
  42. package/dist/shared/{options-BUfoHE9G.cjs → options-DOJYtoti.cjs} +2 -2
  43. package/dist/shared/{options-BUfoHE9G.cjs.map → options-DOJYtoti.cjs.map} +1 -1
  44. package/dist/shared/{options-BNP633A5.js → options-DhgGg7Ms.js} +2 -2
  45. package/dist/shared/{options-BNP633A5.js.map → options-DhgGg7Ms.js.map} +1 -1
  46. package/dist/shared/{redact-DB9EMGJx.cjs → redact-BP00URmQ.cjs} +15 -4
  47. package/dist/shared/{redact-DB9EMGJx.cjs.map → redact-BP00URmQ.cjs.map} +1 -1
  48. package/dist/shared/{redact-FNK29Fv-.js → redact-Ba5iSVYZ.js} +15 -4
  49. package/dist/shared/{redact-FNK29Fv-.js.map → redact-Ba5iSVYZ.js.map} +1 -1
  50. package/dist/shared/{render-DVB7T8pm.d.ts → render-B4qis7Sb.d.ts} +348 -3
  51. package/dist/shared/{render-BszcKF7S.d.cts → render-DDwy2Ame.d.cts} +348 -3
  52. package/dist/shared/{render-DNTESBSl.cjs → render-Dqi8Owqk.cjs} +457 -4
  53. package/dist/shared/render-Dqi8Owqk.cjs.map +1 -0
  54. package/dist/shared/{render-CiL1VS0b.js → render-hiWFh2s4.js} +411 -6
  55. package/dist/shared/render-hiWFh2s4.js.map +1 -0
  56. package/dist/shared/storage-BQrtKon9.d.cts +86 -0
  57. package/dist/shared/storage-CTRGT5wF.d.ts +86 -0
  58. package/dist/shared/storage-CfHKzVHf.js +71 -0
  59. package/dist/shared/storage-CfHKzVHf.js.map +1 -0
  60. package/dist/shared/storage-QNVxzpDB.cjs +88 -0
  61. package/dist/shared/storage-QNVxzpDB.cjs.map +1 -0
  62. package/dist/shared/{url-CFN1sT9S.cjs → url-Bsb3xE5U.cjs} +83 -4
  63. package/dist/shared/{url-CFN1sT9S.cjs.map → url-Bsb3xE5U.cjs.map} +1 -1
  64. package/dist/shared/{url-B3ocFlHj.js → url-DP33mp3s.js} +78 -5
  65. package/dist/shared/{url-B3ocFlHj.js.map → url-DP33mp3s.js.map} +1 -1
  66. package/dist/shared/{url-Be9jlWRv.d.ts → url-XBsMdAcv.d.cts} +75 -2
  67. package/dist/shared/{url-Be9jlWRv.d.cts → url-XBsMdAcv.d.ts} +75 -2
  68. package/dist/web/index.cjs +4 -3
  69. package/dist/web/index.cjs.map +1 -1
  70. package/dist/web/index.d.cts +1 -1
  71. package/dist/web/index.d.ts +1 -1
  72. package/dist/web/index.js +2 -1
  73. package/dist/web/index.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/shared/render-CiL1VS0b.js.map +0 -1
  76. package/dist/shared/render-DNTESBSl.cjs.map +0 -1
  77. package/dist/shared/storage-BLmXmzKF.cjs.map +0 -1
  78. package/dist/shared/storage-CCxn0Kkv.js.map +0 -1
  79. package/dist/shared/storage-C_eICCep.d.cts +0 -152
  80. package/dist/shared/storage-C_eICCep.d.ts +0 -152
@@ -1,5 +1,6 @@
1
- import { Bt as ItdClock, Et as RawRequestOptions, Ft as QueryParams, Ht as BuiltInOperationId, Kt as OperationId, Lt as ServiceDefinition, St as PaginationOptions, _ as Profile, _n as ServiceState, _t as RetrySafety, an as AttachmentType, b as UserSummary, bn as ViewSource, bt as Logger, c as NotificationSettings, cn as FeedTab, ct as Unsubscribe, d as Author, en as IsoDate, et as ClientConnection, f as FollowResult, g as PrivacySettings, gn as ReportTargetType, gt as OperationMethod, h as PinsResult, hn as ReportReason, ht as OperationMetadata, kt as RequestOptions, ln as IncidentKind, mt as OperationContract, nn as UserId, on as CommentSort, p as MyProfile, pn as Loose, pt as OperationAnnotations, rn as UserRef, s as Notification, tn as Span, tt as AuthIdentity, un as InteractionType, v as PublicProfile, wt as RateLimitBucketOverride, xt as OperationRequestOptions, yn as ViewReason } from "./url-Be9jlWRv.cjs";
1
+ import { Bt as ItdClock, Et as RawRequestOptions, Ft as QueryParams, Ht as BuiltInOperationId, Kt as OperationId, Lt as ServiceDefinition, St as PaginationOptions, _ as Profile, _n as ServiceState, _t as RetrySafety, an as AttachmentType, b as UserSummary, bn as ViewSource, bt as Logger, c as NotificationSettings, cn as FeedTab, ct as Unsubscribe, d as Author, en as IsoDate, et as ClientConnection, f as FollowResult, g as PrivacySettings, gn as ReportTargetType, gt as OperationMethod, h as PinsResult, hn as ReportReason, ht as OperationMetadata, kt as RequestOptions, ln as IncidentKind, mt as OperationContract, nn as UserId, on as CommentSort, p as MyProfile, pn as Loose, pt as OperationAnnotations, rn as UserRef, s as Notification, tn as Span, tt as AuthIdentity, un as InteractionType, v as PublicProfile, wt as RateLimitBucketOverride, xt as OperationRequestOptions, yn as ViewReason } from "./url-XBsMdAcv.cjs";
2
2
  import { c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions } from "./contracts-BoT7msmq.cjs";
3
+ import { r as KeyValueStore } from "./key-value-store-COZaNHZS.cjs";
3
4
  //#region src/core/plugins/contracts.d.ts
4
5
  /**
5
6
  * Обёртка одной логической операции.
@@ -1948,6 +1949,297 @@ declare class SearchResource extends BaseResource {
1948
1949
  all(query: string, options?: RequestOptions): Promise<SearchResult>;
1949
1950
  }
1950
1951
  //#endregion
1952
+ //#region src/models/shop.d.ts
1953
+ /** Категория товара магазина. */
1954
+ declare const ShopProductCategory: Readonly<{
1955
+ readonly Apparel: "apparel";
1956
+ readonly Accessories: "accessories";
1957
+ readonly Print: "print";
1958
+ }>;
1959
+ type ShopProductCategory = Loose<(typeof ShopProductCategory)[keyof typeof ShopProductCategory]>;
1960
+ /** Состояние товара в каталоге. */
1961
+ declare const ShopProductStatus: Readonly<{
1962
+ readonly Available: "available";
1963
+ readonly Preorder: "preorder";
1964
+ readonly SoldOut: "soldout";
1965
+ }>;
1966
+ type ShopProductStatus = Loose<(typeof ShopProductStatus)[keyof typeof ShopProductStatus]>;
1967
+ /** Вариант цвета товара. */
1968
+ interface ShopProductColor {
1969
+ id: string;
1970
+ label: string;
1971
+ hex: string;
1972
+ images: string[];
1973
+ }
1974
+ /** Характеристика товара. */
1975
+ interface ShopProductSpec {
1976
+ label: string;
1977
+ value: string;
1978
+ }
1979
+ /** Строка таблицы размеров. */
1980
+ interface ShopSizeChartRow {
1981
+ size: string;
1982
+ values: string[];
1983
+ }
1984
+ /** Таблица размеров товара. */
1985
+ interface ShopSizeChart {
1986
+ columns: string[];
1987
+ rows: ShopSizeChartRow[];
1988
+ note?: string | undefined;
1989
+ }
1990
+ /** Товар магазина. Цены указаны в рублях. */
1991
+ interface ShopProduct {
1992
+ id: string;
1993
+ title: string;
1994
+ category: ShopProductCategory;
1995
+ price: number;
1996
+ images: string[];
1997
+ sizes: string[];
1998
+ colors: ShopProductColor[];
1999
+ description: string;
2000
+ specs: ShopProductSpec[];
2001
+ sizeChart?: ShopSizeChart | null | undefined;
2002
+ status: ShopProductStatus;
2003
+ stockLeft: number | null;
2004
+ }
2005
+ /** Позиция для расчёта доставки или создания заказа. */
2006
+ interface ShopOrderItemInput {
2007
+ productId: string;
2008
+ size: string | null;
2009
+ color: string | null;
2010
+ qty: number;
2011
+ }
2012
+ /** Страна, в которую доступна доставка. */
2013
+ interface ShopDeliveryCountry {
2014
+ code: string;
2015
+ name: string;
2016
+ }
2017
+ /** Город из подсказок службы доставки. */
2018
+ interface ShopDeliveryCity {
2019
+ code: number;
2020
+ name: string;
2021
+ countryCode: string;
2022
+ }
2023
+ /** Пункт выдачи заказа. */
2024
+ interface ShopDeliveryPoint {
2025
+ code: string;
2026
+ name: string;
2027
+ city: string;
2028
+ cityCode: number;
2029
+ countryCode: string;
2030
+ postalCode: string;
2031
+ address: string;
2032
+ latitude: number;
2033
+ longitude: number;
2034
+ workTime?: string | undefined;
2035
+ metro?: string | undefined;
2036
+ note?: string | undefined;
2037
+ dressingRoom: boolean;
2038
+ card: boolean;
2039
+ cash: boolean;
2040
+ }
2041
+ /** Направление для расчёта доставки. */
2042
+ interface ShopDeliveryDestination {
2043
+ code: number;
2044
+ countryCode: string;
2045
+ }
2046
+ /** Стоимость и ожидаемый срок доставки. */
2047
+ interface ShopDeliveryCalculation {
2048
+ /** Стоимость доставки в копейках. */
2049
+ costKopecks: number;
2050
+ /** Стоимость доставки в рублях. */
2051
+ cost: number;
2052
+ periodMin: number;
2053
+ periodMax: number;
2054
+ tariffCode: number;
2055
+ tariffName: string;
2056
+ weightGrams: number;
2057
+ }
2058
+ /** Данные получателя заказа. */
2059
+ interface ShopRecipient {
2060
+ name: string;
2061
+ phone: string;
2062
+ email: string;
2063
+ country: string;
2064
+ city: string;
2065
+ address: string;
2066
+ cityCode: number | null;
2067
+ deliveryPoint: string;
2068
+ comment: string;
2069
+ }
2070
+ /** Вид согласия, которое принимает покупатель. */
2071
+ declare const ShopConsentKind: Readonly<{
2072
+ readonly Offer: "offer";
2073
+ readonly PersonalData: "personal_data";
2074
+ readonly Cookie: "cookie";
2075
+ }>;
2076
+ type ShopConsentKind = (typeof ShopConsentKind)[keyof typeof ShopConsentKind];
2077
+ /** Принятое или отклонённое условие магазина. */
2078
+ interface ShopConsent {
2079
+ kind: ShopConsentKind;
2080
+ accepted: boolean;
2081
+ docSlug: string;
2082
+ docVersion: string;
2083
+ }
2084
+ /** Место, в котором было получено согласие. */
2085
+ interface ShopConsentContext {
2086
+ form: string;
2087
+ page: string;
2088
+ visitorId: string;
2089
+ }
2090
+ /** Данные для создания заказа. */
2091
+ interface CreateShopOrderInput {
2092
+ items: ShopOrderItemInput[];
2093
+ recipient: ShopRecipient;
2094
+ consents: ShopConsent[];
2095
+ consentContext: ShopConsentContext;
2096
+ }
2097
+ /** Результат создания заказа. */
2098
+ interface ShopCreatedOrder {
2099
+ number: string;
2100
+ /** Токен для открытия только что созданного гостевого заказа. */
2101
+ pass?: string | undefined;
2102
+ }
2103
+ /** Состояние заказа. */
2104
+ declare const ShopOrderStatus: Readonly<{
2105
+ readonly New: "new";
2106
+ readonly Paid: "paid";
2107
+ readonly Shipping: "ship";
2108
+ readonly Done: "done";
2109
+ readonly Cancelled: "cancelled";
2110
+ readonly Refunded: "refunded";
2111
+ readonly Expired: "expired";
2112
+ }>;
2113
+ type ShopOrderStatus = Loose<(typeof ShopOrderStatus)[keyof typeof ShopOrderStatus]>;
2114
+ /** Заказ в списке заказов. */
2115
+ interface ShopOrderSummary {
2116
+ number: string;
2117
+ titles: string[];
2118
+ status: ShopOrderStatus;
2119
+ total: number;
2120
+ createdAt: IsoDate;
2121
+ }
2122
+ /** Товар в оформленном заказе. */
2123
+ interface ShopOrderItem {
2124
+ slug: string;
2125
+ title: string;
2126
+ color?: string | null | undefined;
2127
+ size?: string | null | undefined;
2128
+ qty: number;
2129
+ sum: number;
2130
+ }
2131
+ /** Адрес доставки оформленного заказа. */
2132
+ interface ShopOrderDelivery {
2133
+ city: string;
2134
+ address: string;
2135
+ point?: string | null | undefined;
2136
+ }
2137
+ /** Контакты поддержки магазина. */
2138
+ interface ShopOrderSupport {
2139
+ email: string;
2140
+ telegram?: string | undefined;
2141
+ }
2142
+ /** Оформленный заказ. */
2143
+ interface ShopOrder {
2144
+ number: string;
2145
+ status: ShopOrderStatus;
2146
+ createdAt: IsoDate;
2147
+ payment: {
2148
+ pending: boolean;
2149
+ };
2150
+ items: ShopOrderItem[];
2151
+ itemsTotal: number;
2152
+ shipping: number;
2153
+ total: number;
2154
+ delivery: ShopOrderDelivery;
2155
+ track?: string | null | undefined;
2156
+ comment?: string | null | undefined;
2157
+ support?: ShopOrderSupport | null | undefined;
2158
+ }
2159
+ /** Ссылка на страницу оплаты. */
2160
+ interface ShopPayment {
2161
+ url: string;
2162
+ }
2163
+ /** Временный доступ к гостевым заказам. */
2164
+ interface ShopOrderAccessSession {
2165
+ email: string;
2166
+ token: string;
2167
+ expiresAt: number;
2168
+ }
2169
+ /** Ответ проверки кода из письма. */
2170
+ interface ShopOrderAccessVerification {
2171
+ token: string;
2172
+ expiresInSec: number;
2173
+ }
2174
+ //#endregion
2175
+ //#region src/resources/shop.d.ts
2176
+ /** Параметры запроса, который может использовать токен доступа к заказам. */
2177
+ interface ShopOrderRequestOptions extends RequestOptions {
2178
+ /** Временный токен из проверки кода или `pass` созданного заказа. */
2179
+ orderAccessToken?: string | undefined;
2180
+ /** `false` запрещает отправлять Bearer-токен ИТД. По умолчанию используется авторизация клиента. */
2181
+ useItdAuth?: boolean | undefined;
2182
+ }
2183
+ /** Параметры создания заказа. */
2184
+ interface CreateShopOrderOptions extends RequestOptions {
2185
+ /** Ключ защиты от повторного создания заказа. По умолчанию создаётся автоматически. */
2186
+ idempotencyKey?: string | undefined;
2187
+ }
2188
+ /** Параметры перехода к оплате. */
2189
+ interface PayShopOrderOptions extends ShopOrderRequestOptions {
2190
+ /** Адрес возврата после оплаты. */
2191
+ returnUrl: string;
2192
+ }
2193
+ /** Каталог товаров магазина. */
2194
+ declare class ShopProductsResource extends BaseResource {
2195
+ /** Загружает все товары. */
2196
+ list(options?: RequestOptions): Promise<ShopProduct[]>;
2197
+ /** Загружает товар по идентификатору. */
2198
+ get(productId: string, options?: RequestOptions): Promise<ShopProduct | null>;
2199
+ }
2200
+ /** Расчёт и выбор доставки. */
2201
+ declare class ShopDeliveryResource extends BaseResource {
2202
+ /** Загружает страны, в которые доступна доставка. */
2203
+ countries(options?: RequestOptions): Promise<ShopDeliveryCountry[]>;
2204
+ /** Ищет города службы доставки. */
2205
+ cities(query: string, countryCode?: string, options?: RequestOptions): Promise<ShopDeliveryCity[]>;
2206
+ /** Загружает пункты выдачи в городе. */
2207
+ points(cityCode: number, options?: RequestOptions): Promise<ShopDeliveryPoint[]>;
2208
+ /** Рассчитывает стоимость и срок доставки. */
2209
+ calculate(items: ShopOrderItemInput[], destination: ShopDeliveryDestination, options?: RequestOptions): Promise<ShopDeliveryCalculation>;
2210
+ }
2211
+ /** Создание, просмотр и оплата заказов. */
2212
+ declare class ShopOrdersResource extends BaseResource {
2213
+ /** Создаёт заказ. */
2214
+ create(input: CreateShopOrderInput, options?: CreateShopOrderOptions): Promise<ShopCreatedOrder>;
2215
+ /** Загружает заказы аккаунта ИТД или владельца временного токена. */
2216
+ list(options?: ShopOrderRequestOptions): Promise<{
2217
+ items: ShopOrderSummary[];
2218
+ }>;
2219
+ /** Загружает заказ по номеру. */
2220
+ get(orderNumber: string, options?: ShopOrderRequestOptions): Promise<ShopOrder | null>;
2221
+ /** Создаёт ссылку на оплату заказа. */
2222
+ pay(orderNumber: string, options: PayShopOrderOptions): Promise<ShopPayment>;
2223
+ /** Отправляет на почту код доступа к гостевым заказам. */
2224
+ requestAccessCode(email: string, options?: RequestOptions): Promise<void>;
2225
+ /** Проверяет код из письма и возвращает временный токен заказов. */
2226
+ verifyAccessCode(email: string, code: string, options?: RequestOptions): Promise<ShopOrderAccessVerification>;
2227
+ }
2228
+ /** Запись согласий магазина. */
2229
+ declare class ShopConsentsResource extends BaseResource {
2230
+ /** Записывает согласия покупателя. */
2231
+ record(consents: ShopConsent[], consentContext: ShopConsentContext, options?: RequestOptions): Promise<void>;
2232
+ }
2233
+ /** Магазин ИТД. */
2234
+ declare class ShopResource {
2235
+ readonly products: ShopProductsResource;
2236
+ readonly delivery: ShopDeliveryResource;
2237
+ readonly orders: ShopOrdersResource;
2238
+ readonly consents: ShopConsentsResource;
2239
+ /** @internal */
2240
+ constructor(http: ConstructorParameters<typeof BaseResource>[0]);
2241
+ }
2242
+ //#endregion
1951
2243
  //#region src/resources/subscription.d.ts
1952
2244
  /**
1953
2245
  * Подписка и способы оплаты.
@@ -2393,6 +2685,59 @@ declare function isMyProfile(profile: Profile): profile is MyProfile;
2393
2685
  */
2394
2686
  declare function statusDays(service: ServiceStatus): (StatusDay | null)[];
2395
2687
  //#endregion
2688
+ //#region src/shop/order-access.d.ts
2689
+ /** Хранилище временного доступа к гостевым заказам. */
2690
+ interface ShopOrderAccessStorage {
2691
+ get(): ShopOrderAccessSession | null | Promise<ShopOrderAccessSession | null>;
2692
+ set(session: ShopOrderAccessSession): void | Promise<void>;
2693
+ clear(): void | Promise<void>;
2694
+ }
2695
+ /** Хранилище доступа к заказам в памяти процесса. */
2696
+ declare class MemoryShopOrderAccessStorage implements ShopOrderAccessStorage {
2697
+ #private;
2698
+ constructor(initial?: ShopOrderAccessSession | null);
2699
+ get(): ShopOrderAccessSession | null;
2700
+ set(session: ShopOrderAccessSession): void;
2701
+ clear(): void;
2702
+ }
2703
+ /** Настройки хранилища доступа к заказам. */
2704
+ interface ShopOrderAccessStorageAdapterOptions {
2705
+ /** Ключ записи. По умолчанию `shop-order-access`. */
2706
+ key?: string | undefined;
2707
+ }
2708
+ /** Создаёт хранилище доступа к заказам поверх `KeyValueStore`. */
2709
+ declare function createShopOrderAccessStorage(store: KeyValueStore<ShopOrderAccessSession>, options?: ShopOrderAccessStorageAdapterOptions): ShopOrderAccessStorage;
2710
+ /** Создаёт независимое хранилище доступа к заказам в памяти. */
2711
+ declare function createMemoryShopOrderAccessStorage(): ShopOrderAccessStorage;
2712
+ //#endregion
2713
+ //#region src/shop/feature.d.ts
2714
+ /** Настройки подключаемого модуля доступа к заказам по коду из письма. */
2715
+ interface ShopFeatureOptions {
2716
+ /** Отдельное хранилище токена заказов. По умолчанию используется память процесса. */
2717
+ storage?: ShopOrderAccessStorage | undefined;
2718
+ }
2719
+ /** API гостевого доступа к заказам по коду из письма. */
2720
+ interface ShopFeatureApi {
2721
+ /** Отправляет код и запоминает адрес до проверки. */
2722
+ requestCode(email: string, options?: RequestOptions): Promise<void>;
2723
+ /** Проверяет код для адреса, переданного в {@link requestCode}. */
2724
+ verifyCode(code: string, options?: RequestOptions): Promise<ShopOrderAccessSession>;
2725
+ /** Возвращает действующий доступ или `null`. */
2726
+ session(): Promise<ShopOrderAccessSession | null>;
2727
+ /** Удаляет сохранённый доступ. */
2728
+ clear(): Promise<void>;
2729
+ /** Загружает гостевые заказы сохранённого адреса. */
2730
+ list(options?: RequestOptions): Promise<{
2731
+ items: ShopOrderSummary[];
2732
+ }>;
2733
+ /** Загружает гостевой заказ. */
2734
+ get(orderNumber: string, options?: RequestOptions): Promise<ShopOrder | null>;
2735
+ /** Создаёт ссылку на оплату гостевого заказа. */
2736
+ pay(orderNumber: string, returnUrl: string, options?: RequestOptions): Promise<ShopPayment>;
2737
+ }
2738
+ /** Создаёт подключаемый модуль для доступа к заказам по коду из письма. */
2739
+ declare function createShopFeature(options?: ShopFeatureOptions): ClientFeature<ShopFeatureApi>;
2740
+ //#endregion
2396
2741
  //#region src/spans/render.d.ts
2397
2742
  /** Формат результата {@link renderSpans}. */
2398
2743
  declare const SpanRenderFormat: Readonly<{
@@ -2424,5 +2769,5 @@ interface RenderSpansOptions {
2424
2769
  */
2425
2770
  declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
2426
2771
  //#endregion
2427
- export { poll as $, PaymentMethod as $t, TelemetryResource as A, AttemptNext as An, CommentsResource as At, ReportInput as B, Post as Bt, DwellEntry as C, PreparedStreamSource as Cn, Report as Ct, TelemetryBatchOptions as D, AttemptContext as Dn, FilesResource as Dt, TelemetryBatch as E, HttpClient as En, HashtagsResource as Et, SubscriptionResource as F, PluginTeardown as Fn, Hashtag as Ft, UserPostsParams as G, BuilderInput as Gt, CommentsParams as H, CommentBuilder as Ht, SearchResource as I, LikeResult as It, PostInput as J, CreateCommentInput as Jt, CreatePostInput as K, ItdBuilder as Kt, SearchResult as L, PinPostResult as Lt, ViewTracker as M, OperationExtensions as Mn, Attachment as Mt, ViewTrackerInput as N, OperationTransformer as Nn, Comment as Nt, TelemetryClock as O, AttemptExtensions as On, UploadOptions as Ot, ViewTrackerOptions as P, PluginApi as Pn, CommentReplyTo as Pt, PollInput as Q, UpdatePostInput as Qt, ReportsResource as R, Poll as Rt, UsersResource as S, PreparedFileSource as Sn, Portal as St, PhotoOpenInput as T, ResolveFileOptions as Tn, HashtagPostsParams as Tt, FeedParams as U, CommentInput as Ut, report as V, PostStats as Vt, PostsResource as W, comment as Wt, post as X, CreatePostData as Xt, PostUpdateInput as Y, CreatePollInput as Yt, PollBuilder as Z, CreateReportInput as Zt, fromUrl as _, FeatureOperationDefinition as _n, StatusIncidentLine as _t, isMyProfile as a, BaseResource as an, MarkupContent as at, UpdateProfileInput as b, FileResolver as bn, ChangelogEntry as bt, ALLOWED_MIME_TYPES as c, PaginationMode as cn, TextMarkup as ct, AudioMimeType as d, mapPage as dn, PlatformClientVersion as dt, Session as en, ParseMarkupOptions as et, IMAGE_MIME_TYPES as f, RateLimitBucketState as fn, PlatformResource as ft, fromStream as g, FeatureInstallation as gn, StatusDay as gt, VideoMimeType as h, FeatureContext as hn, ServiceStatus as ht, statusDays as i, UpdateNotificationSettingsInput as in, MarkupBuilder as it, VideoProgressInput as j, ClientPlugin as jn, RepliesParams as jt, TelemetryOptions as k, AttemptInterceptor as kn, UploadedFile as kt, AUDIO_MIME_TYPES as l, Paginator as ln, autoSpans as lt, VIDEO_MIME_TYPES as m, FeatureBucketDefinition as mn, PlatformStatus as mt, SpanRenderFormat as n, NotificationListParams as nn, parseMarkdown as nt, toDate as o, Page as on, MarkupInput as ot, ImageMimeType as p, ClientFeature as pn, PlatformVersions as pt, PostBuilder as q, isBuilder as qt, renderSpans as r, NotificationsResource as rn, AutoSpansOptions as rt, utcStampToIso as s, PageState as sn, MarkupSpan as st, RenderSpansOptions as t, Subscription as tn, parseHtml as tt, AllowedMimeType as u, PaginatorOptions as un, markup as ut, VerificationResource as v, FeatureRequestOptions as vn, Announcement as vt, InteractionEntry as w, ResolveFileContext as wn, VerificationStatus as wt, UserListParams as x, PreparedBufferSource as xn, Clan as xt, UpdatePrivacyInput as y, ManagedClientResource as yn, AnnouncementButton as yt, ReportBuilder as z, PollOption as zt };
2428
- //# sourceMappingURL=render-BszcKF7S.d.cts.map
2772
+ export { ShopConsent as $, Paginator as $n, autoSpans as $t, UsersResource as A, Post as An, ReportInput as At, ViewTracker as B, CreatePostData as Bn, post as Bt, VideoMimeType as C, Comment as Cn, OperationTransformer as Cr, ShopRecipient as Ct, UpdatePrivacyInput as D, PinPostResult as Dn, SearchResult as Dt, VerificationResource as E, LikeResult as En, SearchResource as Et, TelemetryBatchOptions as F, BuilderInput as Fn, UserPostsParams as Ft, PayShopOrderOptions as G, Subscription as Gn, parseHtml as Gt, ViewTrackerOptions as H, UpdatePostInput as Hn, PollInput as Ht, TelemetryClock as I, ItdBuilder as In, CreatePostInput as It, ShopOrderRequestOptions as J, UpdateNotificationSettingsInput as Jn, MarkupBuilder as Jt, ShopConsentsResource as K, NotificationListParams as Kn, parseMarkdown as Kt, TelemetryOptions as L, isBuilder as Ln, PostBuilder as Lt, InteractionEntry as M, CommentBuilder as Mn, CommentsParams as Mt, PhotoOpenInput as N, CommentInput as Nn, FeedParams as Nt, UpdateProfileInput as O, Poll as On, ReportsResource as Ot, TelemetryBatch as P, comment as Pn, PostsResource as Pt, CreateShopOrderInput as Q, PaginationMode as Qn, TextMarkup as Qt, TelemetryResource as R, CreateCommentInput as Rn, PostInput as Rt, VIDEO_MIME_TYPES as S, Attachment as Sn, OperationExtensions as Sr, ShopProductStatus as St, fromUrl as T, Hashtag as Tn, PluginTeardown as Tr, ShopSizeChartRow as Tt, SubscriptionResource as U, PaymentMethod as Un, poll as Ut, ViewTrackerInput as V, CreateReportInput as Vn, PollBuilder as Vt, CreateShopOrderOptions as W, Session as Wn, ParseMarkupOptions as Wt, ShopProductsResource as X, Page as Xn, MarkupInput as Xt, ShopOrdersResource as Y, BaseResource as Yn, MarkupContent as Yt, ShopResource as Z, PageState as Zn, MarkupSpan as Zt, AUDIO_MIME_TYPES as _, FilesResource as _n, AttemptContext as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, FeatureContext as ar, ShopDeliveryCountry as at, IMAGE_MIME_TYPES as b, CommentsResource as bn, AttemptNext as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, FeatureRequestOptions as cr, ShopOrder as ct, createShopOrderAccessStorage as d, Clan as dn, PreparedBufferSource as dr, ShopOrderDelivery as dt, markup as en, PaginatorOptions as er, ShopConsentContext as et, statusDays as f, Portal as fn, PreparedFileSource as fr, ShopOrderItem as ft, ALLOWED_MIME_TYPES as g, HashtagsResource as gn, HttpClient as gr, ShopOrderSupport as gt, utcStampToIso as h, HashtagPostsParams as hn, ResolveFileOptions as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, FeatureBucketDefinition as ir, ShopDeliveryCity as it, DwellEntry as j, PostStats as jn, report as jt, UserListParams as k, PollOption as kn, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, ManagedClientResource as lr, ShopOrderAccessSession as lt, toDate as m, VerificationStatus as mn, ResolveFileContext as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, RateLimitBucketState as nr, ShopCreatedOrder as nt, createShopFeature as o, StatusDay as on, FeatureInstallation as or, ShopDeliveryDestination as ot, isMyProfile as p, Report as pn, PreparedStreamSource as pr, ShopOrderItemInput as pt, ShopDeliveryResource as q, NotificationsResource as qn, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, ClientFeature as rr, ShopDeliveryCalculation as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, FeatureOperationDefinition as sr, ShopDeliveryPoint as st, RenderSpansOptions as t, PlatformClientVersion as tn, mapPage as tr, ShopConsentKind as tt, createMemoryShopOrderAccessStorage as u, ChangelogEntry as un, FileResolver as ur, ShopOrderAccessVerification as ut, AllowedMimeType as v, UploadOptions as vn, AttemptExtensions as vr, ShopProduct as vt, fromStream as w, CommentReplyTo as wn, PluginApi as wr, ShopSizeChart as wt, ImageMimeType as x, RepliesParams as xn, ClientPlugin as xr, ShopProductSpec as xt, AudioMimeType as y, UploadedFile as yn, AttemptInterceptor as yr, ShopProductCategory as yt, VideoProgressInput as z, CreatePollInput as zn, PostUpdateInput as zt };
2773
+ //# sourceMappingURL=render-DDwy2Ame.d.cts.map