@matech/thebigpos-sdk 3.21.0-dev-7192 → 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;
@@ -16710,18 +16715,25 @@ export class Api<
16710
16715
  *
16711
16716
  * @tags LoanDocumentFolders
16712
16717
  * @name DeactivateLoanDocumentFolder
16713
- * @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.
16714
16719
  * @request POST:/api/loan-document-folders/{id}/deactivate
16715
16720
  * @secure
16716
16721
  * @response `204` `void` No Content
16717
16722
  * @response `400` `ProblemDetails` Bad Request
16718
16723
  * @response `404` `ProblemDetails` Not Found
16724
+ * @response `409` `ProblemDetails` Conflict
16719
16725
  */
16720
- deactivateLoanDocumentFolder: (id: string, params: RequestParams = {}) =>
16726
+ deactivateLoanDocumentFolder: (
16727
+ id: string,
16728
+ data: DeactivateLoanDocumentFolderRequest,
16729
+ params: RequestParams = {},
16730
+ ) =>
16721
16731
  this.request<void, ProblemDetails>({
16722
16732
  path: `/api/loan-document-folders/${id}/deactivate`,
16723
16733
  method: "POST",
16734
+ body: data,
16724
16735
  secure: true,
16736
+ type: "application/json",
16725
16737
  ...params,
16726
16738
  }),
16727
16739