@matech/thebigpos-sdk 2.48.0-rc1 → 2.48.0-rc3
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 +266 -4
- package/dist/index.js +167 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +424 -4
package/src/index.ts
CHANGED
|
@@ -450,6 +450,14 @@ export type ConsentSource = "TheBigPOS" | "ConsumerConnect";
|
|
|
450
450
|
|
|
451
451
|
export type ConsentLosSyncStatus = "NotStarted" | "Failed" | "Success";
|
|
452
452
|
|
|
453
|
+
export type CompanyDocumentSourceType = "File" | "FreeText";
|
|
454
|
+
|
|
455
|
+
export type CompanyDocumentIndexStatus =
|
|
456
|
+
| "Uploaded"
|
|
457
|
+
| "Indexing"
|
|
458
|
+
| "Indexed"
|
|
459
|
+
| "Failed";
|
|
460
|
+
|
|
453
461
|
export type ClassificationSource = "Textract" | "Llm" | "Manual";
|
|
454
462
|
|
|
455
463
|
export type BranchType = "Mortgage" | "RealEstate";
|
|
@@ -483,7 +491,8 @@ export type AiStructuredDataType =
|
|
|
483
491
|
| "Table"
|
|
484
492
|
| "DocumentAnalysis"
|
|
485
493
|
| "DocumentList"
|
|
486
|
-
| "GeneratedDocument"
|
|
494
|
+
| "GeneratedDocument"
|
|
495
|
+
| "CitedPassages";
|
|
487
496
|
|
|
488
497
|
export type AiQueryTemplateName =
|
|
489
498
|
| "PipelineSummary"
|
|
@@ -590,7 +599,8 @@ export type AiAuditEventType =
|
|
|
590
599
|
| "AgentToolCallCompleted"
|
|
591
600
|
| "AgentToolCallFailed"
|
|
592
601
|
| "AgentLoopLimitReached"
|
|
593
|
-
| "RequestCancelled"
|
|
602
|
+
| "RequestCancelled"
|
|
603
|
+
| "KnowledgeBaseRetrieved";
|
|
594
604
|
|
|
595
605
|
export type AddressFamily =
|
|
596
606
|
| "Unspecified"
|
|
@@ -1002,7 +1012,8 @@ export interface AiAuditLog {
|
|
|
1002
1012
|
| "AgentToolCallCompleted"
|
|
1003
1013
|
| "AgentToolCallFailed"
|
|
1004
1014
|
| "AgentLoopLimitReached"
|
|
1005
|
-
| "RequestCancelled"
|
|
1015
|
+
| "RequestCancelled"
|
|
1016
|
+
| "KnowledgeBaseRetrieved";
|
|
1006
1017
|
modelId?: string | null;
|
|
1007
1018
|
/** @format int32 */
|
|
1008
1019
|
inputTokens?: number | null;
|
|
@@ -1123,7 +1134,12 @@ export interface AiChatRequest {
|
|
|
1123
1134
|
}
|
|
1124
1135
|
|
|
1125
1136
|
export interface AiChatStructuredData {
|
|
1126
|
-
type:
|
|
1137
|
+
type:
|
|
1138
|
+
| "Table"
|
|
1139
|
+
| "DocumentAnalysis"
|
|
1140
|
+
| "DocumentList"
|
|
1141
|
+
| "GeneratedDocument"
|
|
1142
|
+
| "CitedPassages";
|
|
1127
1143
|
displayHint?: AiDisplayHint | null;
|
|
1128
1144
|
detectedDocumentType?: string | null;
|
|
1129
1145
|
columns: string[];
|
|
@@ -1131,6 +1147,15 @@ export interface AiChatStructuredData {
|
|
|
1131
1147
|
/** @format uuid */
|
|
1132
1148
|
generatedDocumentId?: string | null;
|
|
1133
1149
|
generatedFileName?: string | null;
|
|
1150
|
+
passages?: AiCitedPassage[] | null;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
export interface AiCitedPassage {
|
|
1154
|
+
folderName: string;
|
|
1155
|
+
documentName: string;
|
|
1156
|
+
excerpt: string;
|
|
1157
|
+
/** @format double */
|
|
1158
|
+
score?: number | null;
|
|
1134
1159
|
}
|
|
1135
1160
|
|
|
1136
1161
|
export interface AiConversationAuditSummary {
|
|
@@ -1229,6 +1254,7 @@ export interface AiPrompt {
|
|
|
1229
1254
|
description: string;
|
|
1230
1255
|
documentTypes: string[];
|
|
1231
1256
|
applicableUrlSourceIds: string[];
|
|
1257
|
+
knowledgeBaseFolderIds: string[];
|
|
1232
1258
|
allowedRoles: string[];
|
|
1233
1259
|
systemPrompt: string;
|
|
1234
1260
|
/** @format int32 */
|
|
@@ -1733,6 +1759,59 @@ export interface CompanyAddress {
|
|
|
1733
1759
|
zip: string;
|
|
1734
1760
|
}
|
|
1735
1761
|
|
|
1762
|
+
export interface CompanyDocument {
|
|
1763
|
+
/** @format uuid */
|
|
1764
|
+
id: string;
|
|
1765
|
+
/** @format uuid */
|
|
1766
|
+
folderId: string;
|
|
1767
|
+
folderName: string;
|
|
1768
|
+
name: string;
|
|
1769
|
+
sourceType: "File" | "FreeText";
|
|
1770
|
+
contentType?: string | null;
|
|
1771
|
+
/** @format int64 */
|
|
1772
|
+
fileSizeBytes: number;
|
|
1773
|
+
inlineContent?: string | null;
|
|
1774
|
+
indexStatus: "Uploaded" | "Indexing" | "Indexed" | "Failed";
|
|
1775
|
+
indexError?: string | null;
|
|
1776
|
+
/** @format date-time */
|
|
1777
|
+
indexedAt?: string | null;
|
|
1778
|
+
/** @format uuid */
|
|
1779
|
+
uploadedByUserId?: string | null;
|
|
1780
|
+
/** @format date-time */
|
|
1781
|
+
createdAt: string;
|
|
1782
|
+
/** @format date-time */
|
|
1783
|
+
updatedAt?: string | null;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
export interface CompanyDocumentFolder {
|
|
1787
|
+
/** @format uuid */
|
|
1788
|
+
id: string;
|
|
1789
|
+
name: string;
|
|
1790
|
+
description?: string | null;
|
|
1791
|
+
isSystemDefault: boolean;
|
|
1792
|
+
/** @format int32 */
|
|
1793
|
+
documentCount: number;
|
|
1794
|
+
/** @format date-time */
|
|
1795
|
+
createdAt: string;
|
|
1796
|
+
/** @format date-time */
|
|
1797
|
+
updatedAt?: string | null;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
export interface CompanyDocumentPaginated {
|
|
1801
|
+
rows: CompanyDocument[];
|
|
1802
|
+
pagination: Pagination;
|
|
1803
|
+
/** @format int64 */
|
|
1804
|
+
count: number;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
export interface CompanyDocumentSearchCriteria {
|
|
1808
|
+
searchText?: string | null;
|
|
1809
|
+
/** @format uuid */
|
|
1810
|
+
folderID?: string | null;
|
|
1811
|
+
indexStatuses?: CompanyDocumentIndexStatus[] | null;
|
|
1812
|
+
sourceType?: CompanyDocumentSourceType | null;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1736
1815
|
export interface ConditionComment {
|
|
1737
1816
|
commentId: string;
|
|
1738
1817
|
comments: string;
|
|
@@ -1863,6 +1942,7 @@ export interface CreateAiPromptRequest {
|
|
|
1863
1942
|
description: string;
|
|
1864
1943
|
documentTypes: string[];
|
|
1865
1944
|
applicableUrlSourceIds: string[];
|
|
1945
|
+
knowledgeBaseFolderIds: string[];
|
|
1866
1946
|
allowedRoles: string[];
|
|
1867
1947
|
systemPrompt: string;
|
|
1868
1948
|
/** @format int32 */
|
|
@@ -1894,6 +1974,18 @@ export interface CreateBranchRequest {
|
|
|
1894
1974
|
type: string;
|
|
1895
1975
|
}
|
|
1896
1976
|
|
|
1977
|
+
export interface CreateCompanyDocumentFolderRequest {
|
|
1978
|
+
name: string;
|
|
1979
|
+
description?: string | null;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
export interface CreateCompanyTextDocumentRequest {
|
|
1983
|
+
name: string;
|
|
1984
|
+
/** @format uuid */
|
|
1985
|
+
folderID: string;
|
|
1986
|
+
content: string;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1897
1989
|
export interface CreateCustomFieldDefinitionRequest {
|
|
1898
1990
|
isRequired: boolean;
|
|
1899
1991
|
/** @format int32 */
|
|
@@ -6797,6 +6889,7 @@ export interface UpdateAiPromptRequest {
|
|
|
6797
6889
|
description: string;
|
|
6798
6890
|
documentTypes: string[];
|
|
6799
6891
|
applicableUrlSourceIds: string[];
|
|
6892
|
+
knowledgeBaseFolderIds: string[];
|
|
6800
6893
|
allowedRoles: string[];
|
|
6801
6894
|
systemPrompt: string;
|
|
6802
6895
|
/** @format int32 */
|
|
@@ -6826,6 +6919,18 @@ export interface UpdateAiUrlSourceRequest {
|
|
|
6826
6919
|
scope: "FullDomain" | "SpecificPath";
|
|
6827
6920
|
}
|
|
6828
6921
|
|
|
6922
|
+
export interface UpdateCompanyDocumentFolderRequest {
|
|
6923
|
+
name: string;
|
|
6924
|
+
description?: string | null;
|
|
6925
|
+
}
|
|
6926
|
+
|
|
6927
|
+
export interface UpdateCompanyDocumentRequest {
|
|
6928
|
+
name?: string | null;
|
|
6929
|
+
/** @format uuid */
|
|
6930
|
+
folderID?: string | null;
|
|
6931
|
+
content?: string | null;
|
|
6932
|
+
}
|
|
6933
|
+
|
|
6829
6934
|
export interface UpdateCustomFieldDefinitionRequest {
|
|
6830
6935
|
isRequired: boolean;
|
|
6831
6936
|
/** @format int32 */
|
|
@@ -9941,6 +10046,321 @@ export class Api<
|
|
|
9941
10046
|
...params,
|
|
9942
10047
|
}),
|
|
9943
10048
|
|
|
10049
|
+
/**
|
|
10050
|
+
* No description
|
|
10051
|
+
*
|
|
10052
|
+
* @tags CompanyDocumentFolders
|
|
10053
|
+
* @name GetCompanyDocumentFolders
|
|
10054
|
+
* @summary Get all company document folders
|
|
10055
|
+
* @request GET:/api/company-document-folders
|
|
10056
|
+
* @secure
|
|
10057
|
+
* @response `200` `(CompanyDocumentFolder)[]` OK
|
|
10058
|
+
*/
|
|
10059
|
+
getCompanyDocumentFolders: (params: RequestParams = {}) =>
|
|
10060
|
+
this.request<CompanyDocumentFolder[], any>({
|
|
10061
|
+
path: `/api/company-document-folders`,
|
|
10062
|
+
method: "GET",
|
|
10063
|
+
secure: true,
|
|
10064
|
+
format: "json",
|
|
10065
|
+
...params,
|
|
10066
|
+
}),
|
|
10067
|
+
|
|
10068
|
+
/**
|
|
10069
|
+
* No description
|
|
10070
|
+
*
|
|
10071
|
+
* @tags CompanyDocumentFolders
|
|
10072
|
+
* @name CreateCompanyDocumentFolder
|
|
10073
|
+
* @summary Create company document folder
|
|
10074
|
+
* @request POST:/api/company-document-folders
|
|
10075
|
+
* @secure
|
|
10076
|
+
* @response `201` `CompanyDocumentFolder` Created
|
|
10077
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10078
|
+
* @response `409` `ProblemDetails` Conflict
|
|
10079
|
+
*/
|
|
10080
|
+
createCompanyDocumentFolder: (
|
|
10081
|
+
data: CreateCompanyDocumentFolderRequest,
|
|
10082
|
+
params: RequestParams = {},
|
|
10083
|
+
) =>
|
|
10084
|
+
this.request<CompanyDocumentFolder, ProblemDetails>({
|
|
10085
|
+
path: `/api/company-document-folders`,
|
|
10086
|
+
method: "POST",
|
|
10087
|
+
body: data,
|
|
10088
|
+
secure: true,
|
|
10089
|
+
type: ContentType.Json,
|
|
10090
|
+
format: "json",
|
|
10091
|
+
...params,
|
|
10092
|
+
}),
|
|
10093
|
+
|
|
10094
|
+
/**
|
|
10095
|
+
* No description
|
|
10096
|
+
*
|
|
10097
|
+
* @tags CompanyDocumentFolders
|
|
10098
|
+
* @name GetCompanyDocumentFolder
|
|
10099
|
+
* @summary Get company document folder by ID
|
|
10100
|
+
* @request GET:/api/company-document-folders/{id}
|
|
10101
|
+
* @secure
|
|
10102
|
+
* @response `200` `CompanyDocumentFolder` OK
|
|
10103
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10104
|
+
*/
|
|
10105
|
+
getCompanyDocumentFolder: (id: string, params: RequestParams = {}) =>
|
|
10106
|
+
this.request<CompanyDocumentFolder, ProblemDetails>({
|
|
10107
|
+
path: `/api/company-document-folders/${id}`,
|
|
10108
|
+
method: "GET",
|
|
10109
|
+
secure: true,
|
|
10110
|
+
format: "json",
|
|
10111
|
+
...params,
|
|
10112
|
+
}),
|
|
10113
|
+
|
|
10114
|
+
/**
|
|
10115
|
+
* No description
|
|
10116
|
+
*
|
|
10117
|
+
* @tags CompanyDocumentFolders
|
|
10118
|
+
* @name UpdateCompanyDocumentFolder
|
|
10119
|
+
* @summary Update company document folder
|
|
10120
|
+
* @request PUT:/api/company-document-folders/{id}
|
|
10121
|
+
* @secure
|
|
10122
|
+
* @response `200` `CompanyDocumentFolder` OK
|
|
10123
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10124
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10125
|
+
* @response `409` `ProblemDetails` Conflict
|
|
10126
|
+
*/
|
|
10127
|
+
updateCompanyDocumentFolder: (
|
|
10128
|
+
id: string,
|
|
10129
|
+
data: UpdateCompanyDocumentFolderRequest,
|
|
10130
|
+
params: RequestParams = {},
|
|
10131
|
+
) =>
|
|
10132
|
+
this.request<CompanyDocumentFolder, ProblemDetails>({
|
|
10133
|
+
path: `/api/company-document-folders/${id}`,
|
|
10134
|
+
method: "PUT",
|
|
10135
|
+
body: data,
|
|
10136
|
+
secure: true,
|
|
10137
|
+
type: ContentType.Json,
|
|
10138
|
+
format: "json",
|
|
10139
|
+
...params,
|
|
10140
|
+
}),
|
|
10141
|
+
|
|
10142
|
+
/**
|
|
10143
|
+
* No description
|
|
10144
|
+
*
|
|
10145
|
+
* @tags CompanyDocumentFolders
|
|
10146
|
+
* @name DeleteCompanyDocumentFolder
|
|
10147
|
+
* @summary Delete company document folder
|
|
10148
|
+
* @request DELETE:/api/company-document-folders/{id}
|
|
10149
|
+
* @secure
|
|
10150
|
+
* @response `204` `void` No Content
|
|
10151
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10152
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10153
|
+
* @response `409` `ProblemDetails` Conflict
|
|
10154
|
+
*/
|
|
10155
|
+
deleteCompanyDocumentFolder: (id: string, params: RequestParams = {}) =>
|
|
10156
|
+
this.request<void, ProblemDetails>({
|
|
10157
|
+
path: `/api/company-document-folders/${id}`,
|
|
10158
|
+
method: "DELETE",
|
|
10159
|
+
secure: true,
|
|
10160
|
+
...params,
|
|
10161
|
+
}),
|
|
10162
|
+
|
|
10163
|
+
/**
|
|
10164
|
+
* No description
|
|
10165
|
+
*
|
|
10166
|
+
* @tags CompanyDocuments
|
|
10167
|
+
* @name SearchCompanyDocuments
|
|
10168
|
+
* @summary Search company documents
|
|
10169
|
+
* @request POST:/api/company-documents/search
|
|
10170
|
+
* @secure
|
|
10171
|
+
* @response `200` `CompanyDocumentPaginated` OK
|
|
10172
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10173
|
+
*/
|
|
10174
|
+
searchCompanyDocuments: (
|
|
10175
|
+
data: CompanyDocumentSearchCriteria,
|
|
10176
|
+
query?: {
|
|
10177
|
+
/** @format int32 */
|
|
10178
|
+
pageSize?: number;
|
|
10179
|
+
/** @format int32 */
|
|
10180
|
+
pageNumber?: number;
|
|
10181
|
+
sortBy?: string;
|
|
10182
|
+
sortDirection?: string;
|
|
10183
|
+
},
|
|
10184
|
+
params: RequestParams = {},
|
|
10185
|
+
) =>
|
|
10186
|
+
this.request<CompanyDocumentPaginated, ProblemDetails>({
|
|
10187
|
+
path: `/api/company-documents/search`,
|
|
10188
|
+
method: "POST",
|
|
10189
|
+
query: query,
|
|
10190
|
+
body: data,
|
|
10191
|
+
secure: true,
|
|
10192
|
+
type: ContentType.Json,
|
|
10193
|
+
format: "json",
|
|
10194
|
+
...params,
|
|
10195
|
+
}),
|
|
10196
|
+
|
|
10197
|
+
/**
|
|
10198
|
+
* No description
|
|
10199
|
+
*
|
|
10200
|
+
* @tags CompanyDocuments
|
|
10201
|
+
* @name GetCompanyDocument
|
|
10202
|
+
* @summary Get company document by ID
|
|
10203
|
+
* @request GET:/api/company-documents/{id}
|
|
10204
|
+
* @secure
|
|
10205
|
+
* @response `200` `CompanyDocument` OK
|
|
10206
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10207
|
+
*/
|
|
10208
|
+
getCompanyDocument: (id: string, params: RequestParams = {}) =>
|
|
10209
|
+
this.request<CompanyDocument, ProblemDetails>({
|
|
10210
|
+
path: `/api/company-documents/${id}`,
|
|
10211
|
+
method: "GET",
|
|
10212
|
+
secure: true,
|
|
10213
|
+
format: "json",
|
|
10214
|
+
...params,
|
|
10215
|
+
}),
|
|
10216
|
+
|
|
10217
|
+
/**
|
|
10218
|
+
* No description
|
|
10219
|
+
*
|
|
10220
|
+
* @tags CompanyDocuments
|
|
10221
|
+
* @name UpdateCompanyDocument
|
|
10222
|
+
* @summary Update company document
|
|
10223
|
+
* @request PUT:/api/company-documents/{id}
|
|
10224
|
+
* @secure
|
|
10225
|
+
* @response `200` `CompanyDocument` OK
|
|
10226
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10227
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10228
|
+
* @response `409` `ProblemDetails` Conflict
|
|
10229
|
+
*/
|
|
10230
|
+
updateCompanyDocument: (
|
|
10231
|
+
id: string,
|
|
10232
|
+
data: UpdateCompanyDocumentRequest,
|
|
10233
|
+
params: RequestParams = {},
|
|
10234
|
+
) =>
|
|
10235
|
+
this.request<CompanyDocument, ProblemDetails>({
|
|
10236
|
+
path: `/api/company-documents/${id}`,
|
|
10237
|
+
method: "PUT",
|
|
10238
|
+
body: data,
|
|
10239
|
+
secure: true,
|
|
10240
|
+
type: ContentType.Json,
|
|
10241
|
+
format: "json",
|
|
10242
|
+
...params,
|
|
10243
|
+
}),
|
|
10244
|
+
|
|
10245
|
+
/**
|
|
10246
|
+
* No description
|
|
10247
|
+
*
|
|
10248
|
+
* @tags CompanyDocuments
|
|
10249
|
+
* @name DeleteCompanyDocument
|
|
10250
|
+
* @summary Delete company document
|
|
10251
|
+
* @request DELETE:/api/company-documents/{id}
|
|
10252
|
+
* @secure
|
|
10253
|
+
* @response `204` `void` No Content
|
|
10254
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10255
|
+
*/
|
|
10256
|
+
deleteCompanyDocument: (id: string, params: RequestParams = {}) =>
|
|
10257
|
+
this.request<void, ProblemDetails>({
|
|
10258
|
+
path: `/api/company-documents/${id}`,
|
|
10259
|
+
method: "DELETE",
|
|
10260
|
+
secure: true,
|
|
10261
|
+
...params,
|
|
10262
|
+
}),
|
|
10263
|
+
|
|
10264
|
+
/**
|
|
10265
|
+
* No description
|
|
10266
|
+
*
|
|
10267
|
+
* @tags CompanyDocuments
|
|
10268
|
+
* @name DownloadCompanyDocument
|
|
10269
|
+
* @summary Download company document
|
|
10270
|
+
* @request GET:/api/company-documents/{id}/download
|
|
10271
|
+
* @secure
|
|
10272
|
+
* @response `200` `void` OK
|
|
10273
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10274
|
+
*/
|
|
10275
|
+
downloadCompanyDocument: (id: string, params: RequestParams = {}) =>
|
|
10276
|
+
this.request<void, ProblemDetails>({
|
|
10277
|
+
path: `/api/company-documents/${id}/download`,
|
|
10278
|
+
method: "GET",
|
|
10279
|
+
secure: true,
|
|
10280
|
+
...params,
|
|
10281
|
+
}),
|
|
10282
|
+
|
|
10283
|
+
/**
|
|
10284
|
+
* No description
|
|
10285
|
+
*
|
|
10286
|
+
* @tags CompanyDocuments
|
|
10287
|
+
* @name CreateCompanyDocument
|
|
10288
|
+
* @summary Upload company document
|
|
10289
|
+
* @request POST:/api/company-documents
|
|
10290
|
+
* @secure
|
|
10291
|
+
* @response `201` `CompanyDocument` Created
|
|
10292
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10293
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10294
|
+
* @response `409` `ProblemDetails` Conflict
|
|
10295
|
+
*/
|
|
10296
|
+
createCompanyDocument: (
|
|
10297
|
+
data: {
|
|
10298
|
+
/** @format binary */
|
|
10299
|
+
file?: File;
|
|
10300
|
+
/** @format uuid */
|
|
10301
|
+
folderID?: string;
|
|
10302
|
+
name?: string;
|
|
10303
|
+
},
|
|
10304
|
+
params: RequestParams = {},
|
|
10305
|
+
) =>
|
|
10306
|
+
this.request<CompanyDocument, ProblemDetails>({
|
|
10307
|
+
path: `/api/company-documents`,
|
|
10308
|
+
method: "POST",
|
|
10309
|
+
body: data,
|
|
10310
|
+
secure: true,
|
|
10311
|
+
type: ContentType.FormData,
|
|
10312
|
+
format: "json",
|
|
10313
|
+
...params,
|
|
10314
|
+
}),
|
|
10315
|
+
|
|
10316
|
+
/**
|
|
10317
|
+
* No description
|
|
10318
|
+
*
|
|
10319
|
+
* @tags CompanyDocuments
|
|
10320
|
+
* @name CreateCompanyTextDocument
|
|
10321
|
+
* @summary Create free-form text company document
|
|
10322
|
+
* @request POST:/api/company-documents/text
|
|
10323
|
+
* @secure
|
|
10324
|
+
* @response `201` `CompanyDocument` Created
|
|
10325
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10326
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10327
|
+
* @response `409` `ProblemDetails` Conflict
|
|
10328
|
+
*/
|
|
10329
|
+
createCompanyTextDocument: (
|
|
10330
|
+
data: CreateCompanyTextDocumentRequest,
|
|
10331
|
+
params: RequestParams = {},
|
|
10332
|
+
) =>
|
|
10333
|
+
this.request<CompanyDocument, ProblemDetails>({
|
|
10334
|
+
path: `/api/company-documents/text`,
|
|
10335
|
+
method: "POST",
|
|
10336
|
+
body: data,
|
|
10337
|
+
secure: true,
|
|
10338
|
+
type: ContentType.Json,
|
|
10339
|
+
format: "json",
|
|
10340
|
+
...params,
|
|
10341
|
+
}),
|
|
10342
|
+
|
|
10343
|
+
/**
|
|
10344
|
+
* No description
|
|
10345
|
+
*
|
|
10346
|
+
* @tags CompanyDocuments
|
|
10347
|
+
* @name ReindexCompanyDocument
|
|
10348
|
+
* @summary Re-index a failed company document
|
|
10349
|
+
* @request POST:/api/company-documents/{id}/reindex
|
|
10350
|
+
* @secure
|
|
10351
|
+
* @response `200` `CompanyDocument` OK
|
|
10352
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
10353
|
+
* @response `404` `ProblemDetails` Not Found
|
|
10354
|
+
*/
|
|
10355
|
+
reindexCompanyDocument: (id: string, params: RequestParams = {}) =>
|
|
10356
|
+
this.request<CompanyDocument, ProblemDetails>({
|
|
10357
|
+
path: `/api/company-documents/${id}/reindex`,
|
|
10358
|
+
method: "POST",
|
|
10359
|
+
secure: true,
|
|
10360
|
+
format: "json",
|
|
10361
|
+
...params,
|
|
10362
|
+
}),
|
|
10363
|
+
|
|
9944
10364
|
/**
|
|
9945
10365
|
* No description
|
|
9946
10366
|
*
|