@solibo/solibo-sdk 1.27.2 → 1.27.3

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.
@@ -7659,6 +7659,7 @@ export interface DocumentProps {
7659
7659
  isDirectory?: boolean | null | undefined;
7660
7660
  ownedByUser?: boolean | null | undefined;
7661
7661
  parentId?: bigint | null | undefined;
7662
+ searchMatch?: DocumentSearchMatchProps | null | undefined;
7662
7663
  sizeBytes?: bigint | null | undefined;
7663
7664
  sourceDocumentId?: bigint | null | undefined;
7664
7665
  type: DocumentType;
@@ -7670,7 +7671,7 @@ export interface DocumentProps {
7670
7671
  }
7671
7672
  export declare class Document {
7672
7673
  constructor(props: DocumentProps);
7673
- constructor(belongsToId: bigint | null | undefined, children: Document[] | null | undefined, companyId: bigint, createdAt: SoliboInstant /* Instant */, createdBy: bigint | null | undefined, createdByAvatar: PersonAvatar | null | undefined, createdByClientUserId: bigint | null | undefined, createdByClientUserName: string | null | undefined, createdByName: string | null | undefined, deletedAt: SoliboInstant /* Instant */ | null | undefined, deletedBy: bigint | null | undefined, deletedByClientUserId: bigint | null | undefined, deletedByClientUserName: string | null | undefined, deletedByName: string | null | undefined, fileName: string, historicPath: string | null | undefined, historicType: DocumentType | null | undefined, id: bigint, isDirectory: boolean | null | undefined, ownedByUser: boolean | null | undefined, parentId: bigint | null | undefined, sizeBytes: bigint | null | undefined, sourceDocumentId: bigint | null | undefined, type: DocumentType, updatedAt?: SoliboInstant /* Instant */ | null | undefined, updatedBy?: bigint | null | undefined, updatedByClientUserId?: bigint | null | undefined, updatedByClientUserName?: string | null | undefined, updatedByName?: string | null | undefined);
7674
+ constructor(belongsToId: bigint | null | undefined, children: Document[] | null | undefined, companyId: bigint, createdAt: SoliboInstant /* Instant */, createdBy: bigint | null | undefined, createdByAvatar: PersonAvatar | null | undefined, createdByClientUserId: bigint | null | undefined, createdByClientUserName: string | null | undefined, createdByName: string | null | undefined, deletedAt: SoliboInstant /* Instant */ | null | undefined, deletedBy: bigint | null | undefined, deletedByClientUserId: bigint | null | undefined, deletedByClientUserName: string | null | undefined, deletedByName: string | null | undefined, fileName: string, historicPath: string | null | undefined, historicType: DocumentType | null | undefined, id: bigint, isDirectory: boolean | null | undefined, ownedByUser: boolean | null | undefined, parentId: bigint | null | undefined, searchMatch: DocumentSearchMatch | null | undefined, sizeBytes: bigint | null | undefined, sourceDocumentId: bigint | null | undefined, type: DocumentType, updatedAt?: SoliboInstant /* Instant */ | null | undefined, updatedBy?: bigint | null | undefined, updatedByClientUserId?: bigint | null | undefined, updatedByClientUserName?: string | null | undefined, updatedByName?: string | null | undefined);
7674
7675
  get belongsToId(): bigint | null | undefined;
7675
7676
  get children(): Document[] | null | undefined;
7676
7677
  get companyId(): bigint;
@@ -7692,6 +7693,7 @@ export declare class Document {
7692
7693
  get isDirectory(): boolean | null | undefined;
7693
7694
  get ownedByUser(): boolean | null | undefined;
7694
7695
  get parentId(): bigint | null | undefined;
7696
+ get searchMatch(): DocumentSearchMatch | null | undefined;
7695
7697
  get sizeBytes(): bigint | null | undefined;
7696
7698
  get sourceDocumentId(): bigint | null | undefined;
7697
7699
  get type(): DocumentType;
@@ -7707,6 +7709,102 @@ export declare namespace Document {
7707
7709
  const constructor: abstract new () => Document;
7708
7710
  }
7709
7711
  }
7712
+ export declare abstract class DocumentSearchField {
7713
+ private constructor();
7714
+ static get TITLE(): DocumentSearchField & {
7715
+ get name(): "TITLE";
7716
+ get ordinal(): 0;
7717
+ };
7718
+ static get FOLDER(): DocumentSearchField & {
7719
+ get name(): "FOLDER";
7720
+ get ordinal(): 1;
7721
+ };
7722
+ static get CONTENT(): DocumentSearchField & {
7723
+ get name(): "CONTENT";
7724
+ get ordinal(): 2;
7725
+ };
7726
+ static get Title(): DocumentSearchField & {
7727
+ get name(): "TITLE";
7728
+ get ordinal(): 0;
7729
+ };
7730
+ static get Folder(): DocumentSearchField & {
7731
+ get name(): "FOLDER";
7732
+ get ordinal(): 1;
7733
+ };
7734
+ static get Content(): DocumentSearchField & {
7735
+ get name(): "CONTENT";
7736
+ get ordinal(): 2;
7737
+ };
7738
+ static values(): [typeof DocumentSearchField.TITLE, typeof DocumentSearchField.FOLDER, typeof DocumentSearchField.CONTENT];
7739
+ static valueOf(value: string): DocumentSearchField;
7740
+ get name(): "TITLE" | "FOLDER" | "CONTENT";
7741
+ get ordinal(): 0 | 1 | 2;
7742
+ get value(): string;
7743
+ }
7744
+ export declare namespace DocumentSearchField {
7745
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
7746
+ namespace $metadata$ {
7747
+ const constructor: abstract new () => DocumentSearchField;
7748
+ }
7749
+ abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
7750
+ private constructor();
7751
+ }
7752
+ namespace Companion {
7753
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
7754
+ namespace $metadata$ {
7755
+ abstract class constructor /* implements SerializerFactory */ {
7756
+ fromValue(value: string): DocumentSearchField | null | undefined;
7757
+ private constructor();
7758
+ }
7759
+ }
7760
+ }
7761
+ }
7762
+ export interface DocumentSearchMatchProps {
7763
+ matchedIn: DocumentSearchField[];
7764
+ snippet?: DocumentSearchSnippetFragmentProps[] | null | undefined;
7765
+ }
7766
+ export declare class DocumentSearchMatch {
7767
+ constructor(props: DocumentSearchMatchProps);
7768
+ constructor(matchedIn: DocumentSearchField[], snippet?: DocumentSearchSnippetFragment[] | null | undefined);
7769
+ get matchedIn(): DocumentSearchField[];
7770
+ get snippet(): DocumentSearchSnippetFragment[] | null | undefined;
7771
+ }
7772
+ export declare namespace DocumentSearchMatch {
7773
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
7774
+ namespace $metadata$ {
7775
+ const constructor: abstract new () => DocumentSearchMatch;
7776
+ }
7777
+ }
7778
+ export interface DocumentSearchSnippetFragmentProps {
7779
+ parts: DocumentSearchSnippetPartProps[];
7780
+ }
7781
+ export declare class DocumentSearchSnippetFragment {
7782
+ constructor(props: DocumentSearchSnippetFragmentProps);
7783
+ constructor(parts: DocumentSearchSnippetPart[]);
7784
+ get parts(): DocumentSearchSnippetPart[];
7785
+ }
7786
+ export declare namespace DocumentSearchSnippetFragment {
7787
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
7788
+ namespace $metadata$ {
7789
+ const constructor: abstract new () => DocumentSearchSnippetFragment;
7790
+ }
7791
+ }
7792
+ export interface DocumentSearchSnippetPartProps {
7793
+ highlighted: boolean;
7794
+ text: string;
7795
+ }
7796
+ export declare class DocumentSearchSnippetPart {
7797
+ constructor(props: DocumentSearchSnippetPartProps);
7798
+ constructor(highlighted: boolean, text: string);
7799
+ get highlighted(): boolean;
7800
+ get text(): string;
7801
+ }
7802
+ export declare namespace DocumentSearchSnippetPart {
7803
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
7804
+ namespace $metadata$ {
7805
+ const constructor: abstract new () => DocumentSearchSnippetPart;
7806
+ }
7807
+ }
7710
7808
  export declare abstract class DocumentType {
7711
7809
  private constructor();
7712
7810
  static get ISSUE(): DocumentType & {
@@ -7927,8 +7927,8 @@ function HomeApi$clientConfigurator$lambda$lambda_11(this$0, $platformName) {
7927
7927
  }
7928
7928
  accept($this$defaultRequest, Application_getInstance().Json_1);
7929
7929
  header($this$defaultRequest, 'Accept-Language', buildAcceptLanguage(this$0.userLanguage));
7930
- header($this$defaultRequest, 'User-Agent', 'SoliboSDK/1.27.2 (' + $platformName + ')');
7931
- header($this$defaultRequest, 'X-Solibo-SDK-Version', '1.27.2');
7930
+ header($this$defaultRequest, 'User-Agent', 'SoliboSDK/1.27.3 (' + $platformName + ')');
7931
+ header($this$defaultRequest, 'X-Solibo-SDK-Version', '1.27.3');
7932
7932
  return Unit_instance;
7933
7933
  };
7934
7934
  }
@@ -20354,7 +20354,7 @@ function MockBackend$registerHandlers$lambda_106(this$0) {
20354
20354
  var id = _unary__edvuaz;
20355
20355
  var tmp0_type = DocumentType_OTHER_getInstance();
20356
20356
  var tmp1_createdAt = Companion_getInstance_1().fromEpochSeconds$default_a0tgtu_k$(nowSeconds(this$0));
20357
- var doc = new Document(VOID, VOID, companyId, tmp1_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'New Document', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, tmp0_type);
20357
+ var doc = new Document(VOID, VOID, companyId, tmp1_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'New Document', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type);
20358
20358
  // Inline function 'kotlin.collections.set' call
20359
20359
  this$0.documents.put_4fpzoq_k$(id, doc);
20360
20360
  // Inline function 'no.solibo.oss.sdk.api.MockBackend.respondOk' call
@@ -20407,7 +20407,7 @@ function MockBackend$registerHandlers$lambda_107(this$0) {
20407
20407
  this$0.nextDocumentId_1 = add(_unary__edvuaz, get_ONE());
20408
20408
  var id = _unary__edvuaz;
20409
20409
  var tmp0_createdAt = Companion_getInstance_1().fromEpochSeconds$default_a0tgtu_k$(nowSeconds(this$0));
20410
- var doc = new Document(VOID, VOID, companyId, tmp0_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'New Document', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, docType);
20410
+ var doc = new Document(VOID, VOID, companyId, tmp0_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'New Document', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, VOID, docType);
20411
20411
  // Inline function 'kotlin.collections.set' call
20412
20412
  this$0.documents.put_4fpzoq_k$(id, doc);
20413
20413
  // Inline function 'no.solibo.oss.sdk.api.MockBackend.respondSlingshot' call
@@ -20461,7 +20461,7 @@ function MockBackend$registerHandlers$lambda_108(this$0) {
20461
20461
  this$0.nextDocumentId_1 = add(_unary__edvuaz, get_ONE());
20462
20462
  var id = _unary__edvuaz;
20463
20463
  var tmp0_createdAt = Companion_getInstance_1().fromEpochSeconds$default_a0tgtu_k$(nowSeconds(this$0));
20464
- var doc = new Document(VOID, VOID, companyId, tmp0_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'New Document', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, docType);
20464
+ var doc = new Document(VOID, VOID, companyId, tmp0_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'New Document', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, VOID, docType);
20465
20465
  // Inline function 'kotlin.collections.set' call
20466
20466
  this$0.documents.put_4fpzoq_k$(id, doc);
20467
20467
  // Inline function 'no.solibo.oss.sdk.api.MockBackend.respondSlingshot' call
@@ -26991,7 +26991,7 @@ function MockBackend$registerHandlers$lambda_350(this$0) {
26991
26991
  if (tmp0_elvis_lhs == null) {
26992
26992
  var tmp1_createdAt = Companion_getInstance_1().fromEpochSeconds$default_a0tgtu_k$(nowSeconds(this$0));
26993
26993
  var tmp2_type = DocumentType_OTHER_getInstance();
26994
- tmp = new Document(VOID, VOID, companyId, tmp1_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'mock.pdf', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, tmp2_type);
26994
+ tmp = new Document(VOID, VOID, companyId, tmp1_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'mock.pdf', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type);
26995
26995
  } else {
26996
26996
  tmp = tmp0_elvis_lhs;
26997
26997
  }
@@ -27066,7 +27066,7 @@ function MockBackend$registerHandlers$lambda_352(this$0) {
27066
27066
  if (value == null) {
27067
27067
  var tmp0_createdAt = Companion_getInstance_1().fromEpochSeconds$default_a0tgtu_k$(nowSeconds(this$0));
27068
27068
  var tmp1_type = DocumentType_OTHER_getInstance();
27069
- var answer = new Document(VOID, VOID, companyId, tmp0_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'mock.pdf', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, tmp1_type);
27069
+ var answer = new Document(VOID, VOID, companyId, tmp0_createdAt, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'mock.pdf', VOID, VOID, id, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
27070
27070
  this_0.put_4fpzoq_k$(id, answer);
27071
27071
  tmp = answer;
27072
27072
  } else {
@@ -30779,7 +30779,7 @@ protoOf(MockBackend).prefillResources = function () {
30779
30779
  var tmp0_7 = this.documents;
30780
30780
  var tmp9_type = DocumentType_OTHER_getInstance();
30781
30781
  // Inline function 'kotlin.collections.set' call
30782
- var value_7 = new Document(VOID, VOID, companyId, now, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'mock.pdf', VOID, VOID, 1n, VOID, VOID, VOID, VOID, VOID, tmp9_type);
30782
+ var value_7 = new Document(VOID, VOID, companyId, now, 1n, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 'mock.pdf', VOID, VOID, 1n, VOID, VOID, VOID, VOID, VOID, VOID, tmp9_type);
30783
30783
  tmp0_7.put_4fpzoq_k$(1n, value_7);
30784
30784
  var tmp0_8 = this.insurancesPerCompany;
30785
30785
  // Inline function 'kotlin.collections.set' call
@@ -42332,7 +42332,7 @@ function SoliboOpenTelemetry() {
42332
42332
  }
42333
42333
  protoOf(SoliboOpenTelemetry).tracer_4qhv4u_k$ = function () {
42334
42334
  var tmp0_elvis_lhs = this.installed_1;
42335
- return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.27.2');
42335
+ return (tmp0_elvis_lhs == null ? get_NoopOpenTelemetry() : tmp0_elvis_lhs).get_tracerProvider_kgfk0p_k$().getTracer$default_y9z64o_k$('no.solibo.oss.sdk', '1.27.3');
42336
42336
  };
42337
42337
  var SoliboOpenTelemetry_instance;
42338
42338
  function SoliboOpenTelemetry_getInstance() {
@@ -43947,6 +43947,16 @@ if (typeof DirectSendInvoiceDocument !== 'undefined') {
43947
43947
  }
43948
43948
 
43949
43949
 
43950
+ /* Enum aliases for DocumentSearchField */
43951
+ if (typeof DocumentSearchField !== 'undefined') {
43952
+ Object.defineProperties(DocumentSearchField, {
43953
+ "Title": { get() { return DocumentSearchField.TITLE; }, enumerable: true, configurable: true },
43954
+ "Folder": { get() { return DocumentSearchField.FOLDER; }, enumerable: true, configurable: true },
43955
+ "Content": { get() { return DocumentSearchField.CONTENT; }, enumerable: true, configurable: true }
43956
+ });
43957
+ }
43958
+
43959
+
43950
43960
  /* Enum aliases for DocumentType */
43951
43961
  if (typeof DocumentType !== 'undefined') {
43952
43962
  Object.defineProperties(DocumentType, {
@@ -45311,6 +45321,10 @@ if (typeof FailureKind !== 'undefined') {
45311
45321
  __soliboLookupTable["DirectSendPrintRecipient"] = () => ref(() => DirectSendPrintRecipient);
45312
45322
  __soliboLookupTable["Document"] = () => ref(() => Document);
45313
45323
  __soliboLookupTable["DocumentInput"] = () => ref(() => DocumentInput);
45324
+ __soliboLookupTable["DocumentSearchField"] = () => ref(() => DocumentSearchField);
45325
+ __soliboLookupTable["DocumentSearchMatch"] = () => ref(() => DocumentSearchMatch);
45326
+ __soliboLookupTable["DocumentSearchSnippetFragment"] = () => ref(() => DocumentSearchSnippetFragment);
45327
+ __soliboLookupTable["DocumentSearchSnippetPart"] = () => ref(() => DocumentSearchSnippetPart);
45314
45328
  __soliboLookupTable["DocumentType"] = () => ref(() => DocumentType);
45315
45329
  __soliboLookupTable["DocumentUpload"] = () => ref(() => DocumentUpload);
45316
45330
  __soliboLookupTable["DocumentUploadOptions"] = () => ref(() => DocumentUploadOptions);