@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/dist/index.d.ts CHANGED
@@ -1841,6 +1841,10 @@ export interface CustomFieldValue {
1841
1841
  definitionName: string;
1842
1842
  dataType: CustomFieldValueDataTypeEnum;
1843
1843
  }
1844
+ export interface DeactivateLoanDocumentFolderRequest {
1845
+ /** @format uuid */
1846
+ reassignToFolderId?: string | null;
1847
+ }
1844
1848
  export interface DetailedUser {
1845
1849
  /** @format date-time */
1846
1850
  createdAt: string;
@@ -11171,14 +11175,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11171
11175
  *
11172
11176
  * @tags LoanDocumentFolders
11173
11177
  * @name DeactivateLoanDocumentFolder
11174
- * @summary Deactivate a loan document folder. Rejected for the system-default Unassigned folder.
11178
+ * @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.
11175
11179
  * @request POST:/api/loan-document-folders/{id}/deactivate
11176
11180
  * @secure
11177
11181
  * @response `204` `void` No Content
11178
11182
  * @response `400` `ProblemDetails` Bad Request
11179
11183
  * @response `404` `ProblemDetails` Not Found
11184
+ * @response `409` `ProblemDetails` Conflict
11180
11185
  */
11181
- deactivateLoanDocumentFolder: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
11186
+ deactivateLoanDocumentFolder: (id: string, data: DeactivateLoanDocumentFolderRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
11182
11187
  /**
11183
11188
  * No description
11184
11189
  *
package/dist/index.js CHANGED
@@ -3369,14 +3369,15 @@ export class Api extends HttpClient {
3369
3369
  *
3370
3370
  * @tags LoanDocumentFolders
3371
3371
  * @name DeactivateLoanDocumentFolder
3372
- * @summary Deactivate a loan document folder. Rejected for the system-default Unassigned folder.
3372
+ * @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.
3373
3373
  * @request POST:/api/loan-document-folders/{id}/deactivate
3374
3374
  * @secure
3375
3375
  * @response `204` `void` No Content
3376
3376
  * @response `400` `ProblemDetails` Bad Request
3377
3377
  * @response `404` `ProblemDetails` Not Found
3378
+ * @response `409` `ProblemDetails` Conflict
3378
3379
  */
3379
- deactivateLoanDocumentFolder: (id, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}/deactivate`, method: "POST", secure: true }, params)),
3380
+ deactivateLoanDocumentFolder: (id, data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}/deactivate`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3380
3381
  /**
3381
3382
  * No description
3382
3383
  *