@torrow/sdk-client 0.12.0 → 0.13.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.ts CHANGED
@@ -36261,8 +36261,11 @@ interface components {
36261
36261
  id?: string | null;
36262
36262
  meta?: components["schemas"]["ObjectInfo"];
36263
36263
  };
36264
- /** @enum {string} */
36265
- NoteType: "Unknown" | "Text" | "Html" | "Hlink" | "File" | "Photo" | "Voice" | "Geolocation" | "Qr" | "ServiceSpecification" | "Markdown";
36264
+ /**
36265
+ * @description Публичные форматы SDK: Html, Markdown и Text. Остальные серверные строки при чтении становятся Text без преобразования data или вложений (ADR 0002).
36266
+ * @enum {string}
36267
+ */
36268
+ NoteType: "Html" | "Markdown" | "Text";
36266
36269
  NoteView: {
36267
36270
  data?: unknown;
36268
36271
  noteType?: components["schemas"]["NoteType"];
@@ -37862,22 +37865,18 @@ type UnsetGroupItemReq = UnsetGroupItemReqDto;
37862
37865
  type UpdateFileIdResp = UpdateFileIdRespDto;
37863
37866
 
37864
37867
  type NoteItem = TorrowItemFromDto<NoteItemDto>;
37865
- /** Supported authoring scenarios: Html and Markdown. Other server values remain for compatibility. */
37868
+ /** Три формата публичного SDK; остальные серверные строки при чтении становятся Text. */
37866
37869
  type NoteType = NoteTypeDto;
37867
37870
  type ImagePreviewSize = NonNullable<NoteItem["imagePreviewSize"]>;
37868
- declare const NoteTypeValues: {
37869
- readonly Unknown: "Unknown";
37870
- readonly Text: "Text";
37871
- readonly Html: "Html";
37872
- readonly Markdown: "Markdown";
37873
- readonly Hlink: "Hlink";
37874
- readonly File: "File";
37875
- readonly Photo: "Photo";
37876
- readonly Voice: "Voice";
37877
- readonly Geolocation: "Geolocation";
37878
- readonly Qr: "Qr";
37879
- readonly ServiceSpecification: "ServiceSpecification";
37880
- };
37871
+ /** Поддерживаемые форматы заметок; публичный NoteType также принимает строковые литералы. */
37872
+ declare enum NoteTypeValues {
37873
+ /** HTML-разметка в data. */
37874
+ Html = "Html",
37875
+ /** Исходный Markdown в data. */
37876
+ Markdown = "Markdown",
37877
+ /** Текст либо нормализованный формат прочитанной серверной заметки. */
37878
+ Text = "Text"
37879
+ }
37881
37880
  declare const ImagePreviewSizeValues: {
37882
37881
  readonly Undefined: "Undefined";
37883
37882
  readonly Hidden: "Hidden";
@@ -37892,8 +37891,8 @@ declare const ImagePreviewSizeValues: {
37892
37891
  type NoteItemForCreateOrUpdate = TorrowItemForCreateOrUpdate<NoteItem> & Pick<NoteItem, "publicityType" | "meta">;
37893
37892
  /** Частичное изменение заметки; общие name/image описаны в TorrowItemPatchFields. */
37894
37893
  interface NoteItemPatch extends TorrowItemPatchFields {
37895
- /** Новый серверный формат; Unknown и ServiceSpecification не поддерживаются root update. */
37896
- noteType?: Exclude<NoteType, "Unknown" | "ServiceSpecification">;
37894
+ /** Новый формат Html, Markdown или Text; другие значения отклоняются до первого GET. */
37895
+ noteType?: NoteType;
37897
37896
  /** Исходный текст без trim/parse; null очищает. Пустое/whitespace содержимое нормализуется сервером. */
37898
37897
  data?: string | null;
37899
37898
  /** Полная замена ссылок на загруженные файлы; [] снимает вложения, пропуск сохраняет их. */