@matech/thebigpos-sdk 3.21.0-dev-7189 → 3.21.0-dev-7199

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/src/index.ts CHANGED
@@ -2776,6 +2776,11 @@ export interface CustomFieldValue {
2776
2776
  dataType: CustomFieldValueDataTypeEnum;
2777
2777
  }
2778
2778
 
2779
+ export interface DeactivateLoanDocumentFolderRequest {
2780
+ /** @format uuid */
2781
+ reassignToFolderId?: string | null;
2782
+ }
2783
+
2779
2784
  export interface DetailedUser {
2780
2785
  /** @format date-time */
2781
2786
  createdAt: string;
@@ -16219,6 +16224,58 @@ export class Api<
16219
16224
  ...params,
16220
16225
  }),
16221
16226
 
16227
+ /**
16228
+ * No description
16229
+ *
16230
+ * @tags LoanBorrowerRemoval
16231
+ * @name RemoveLoanBorrower
16232
+ * @summary Remove a co-borrower from an application in progress
16233
+ * @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/remove
16234
+ * @secure
16235
+ * @response `204` `void` No Content
16236
+ * @response `400` `ProblemDetails` Bad Request
16237
+ * @response `403` `ProblemDetails` Forbidden
16238
+ * @response `404` `ProblemDetails` Not Found
16239
+ * @response `409` `ProblemDetails` Conflict
16240
+ */
16241
+ removeLoanBorrower: (
16242
+ loanId: string,
16243
+ borrowerId: string,
16244
+ params: RequestParams = {},
16245
+ ) =>
16246
+ this.request<void, ProblemDetails>({
16247
+ path: `/api/loans/${loanId}/borrowers/${borrowerId}/remove`,
16248
+ method: "POST",
16249
+ secure: true,
16250
+ ...params,
16251
+ }),
16252
+
16253
+ /**
16254
+ * No description
16255
+ *
16256
+ * @tags LoanBorrowerRemoval
16257
+ * @name RestoreLoanBorrower
16258
+ * @summary Restore a removed co-borrower to an application in progress
16259
+ * @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/restore
16260
+ * @secure
16261
+ * @response `204` `void` No Content
16262
+ * @response `400` `ProblemDetails` Bad Request
16263
+ * @response `403` `ProblemDetails` Forbidden
16264
+ * @response `404` `ProblemDetails` Not Found
16265
+ * @response `409` `ProblemDetails` Conflict
16266
+ */
16267
+ restoreLoanBorrower: (
16268
+ loanId: string,
16269
+ borrowerId: string,
16270
+ params: RequestParams = {},
16271
+ ) =>
16272
+ this.request<void, ProblemDetails>({
16273
+ path: `/api/loans/${loanId}/borrowers/${borrowerId}/restore`,
16274
+ method: "POST",
16275
+ secure: true,
16276
+ ...params,
16277
+ }),
16278
+
16222
16279
  /**
16223
16280
  * No description
16224
16281
  *
@@ -16658,18 +16715,25 @@ export class Api<
16658
16715
  *
16659
16716
  * @tags LoanDocumentFolders
16660
16717
  * @name DeactivateLoanDocumentFolder
16661
- * @summary Deactivate a loan document folder. Rejected for the system-default Unassigned folder.
16718
+ * @summary Deactivate a loan document folder. Rejected with 409 (errorCode FolderInUse, the referencing tasks and templates in references) while tasks or document templates still reference it, unless reassignToFolderId names an active replacement folder, in which case every reference is moved there and the folder is deactivated in one transaction. Rejected for the system-default Unassigned folder.
16662
16719
  * @request POST:/api/loan-document-folders/{id}/deactivate
16663
16720
  * @secure
16664
16721
  * @response `204` `void` No Content
16665
16722
  * @response `400` `ProblemDetails` Bad Request
16666
16723
  * @response `404` `ProblemDetails` Not Found
16724
+ * @response `409` `ProblemDetails` Conflict
16667
16725
  */
16668
- deactivateLoanDocumentFolder: (id: string, params: RequestParams = {}) =>
16726
+ deactivateLoanDocumentFolder: (
16727
+ id: string,
16728
+ data: DeactivateLoanDocumentFolderRequest,
16729
+ params: RequestParams = {},
16730
+ ) =>
16669
16731
  this.request<void, ProblemDetails>({
16670
16732
  path: `/api/loan-document-folders/${id}/deactivate`,
16671
16733
  method: "POST",
16734
+ body: data,
16672
16735
  secure: true,
16736
+ type: "application/json",
16673
16737
  ...params,
16674
16738
  }),
16675
16739