@matech/thebigpos-sdk 2.40.0-rc.2 → 2.40.0

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.
@@ -1,17 +1,50 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npx swagger-typescript-api:*)",
5
- "Bash(node:*)",
6
- "Bash(npm version:*)",
7
- "Bash(git commit:*)",
8
- "Bash(npm run:*)",
9
- "Bash(git push:*)",
10
- "Bash(npm config:*)",
11
- "Bash(npm publish:*)",
12
- "Bash(npm whoami *)",
13
- "Bash(npm view *)",
14
- "Bash(git tag *)"
15
- ]
16
- }
17
- }
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(yarn list:*)",
5
+ "Bash(npm ls:*)",
6
+ "Bash(npm view:*)",
7
+ "Bash(yarn audit:*)",
8
+ "Bash(yarn upgrade:*)",
9
+ "WebFetch(domain:github.com)",
10
+ "Bash(git push:*)",
11
+ "Bash(gh pr create:*)",
12
+ "Bash(git checkout:*)",
13
+ "Bash(git commit:*)",
14
+ "Bash(git reset:*)",
15
+ "Bash(git add:*)",
16
+ "Bash(git branch:*)",
17
+ "Bash(yarn install:*)",
18
+ "Bash(yarn build:*)",
19
+ "Bash(git rm:*)",
20
+ "Bash(node scripts/apply-json-patch-content-type.js)",
21
+ "Bash(git worktree:*)",
22
+ "Bash(gh pr:*)",
23
+ "Bash(cp /tmp/index_main.ts src/index.ts)",
24
+ "Bash(cp /tmp/dist_main.js dist/index.js)",
25
+ "Bash(cp /tmp/dist_main.js.map dist/index.js.map)",
26
+ "Bash(yarn why:*)",
27
+ "Bash(python3:*)",
28
+ "Bash(git restore:*)",
29
+ "Bash(curl -s -o /tmp/swagger-check.txt -w \"HTTP: %{http_code}\\\\nSize: %{size_download} bytes\\\\nContent-Type: %{content_type}\\\\nRedirect: %{redirect_url}\\\\n\" \"https://api.thebigpos.dev/swagger/v2.38.1/swagger.json\")",
30
+ "Read(//tmp/**)",
31
+ "Bash(curl -s -w \"\\\\nHTTP: %{http_code}\\\\n\" \"https://api.thebigpos.dev/swagger/index.html\")",
32
+ "Bash(curl -s -w \"\\\\nHTTP: %{http_code}\\\\n\" \"https://api.thebigpos.dev/swagger/v1/swagger.json\")",
33
+ "Bash(curl -s \"https://api.thebigpos.dev/swagger/index.html\")",
34
+ "Bash(curl -s -w \"\\\\nHTTP:%{http_code}\\\\n\" \"https://api.thebigpos.dev/swagger/v1/swagger/swagger-ui-config.json\")",
35
+ "Bash(curl -s -o /dev/null -w '%{http_code}' https://api.thebigpos.dev/swagger/__TRACKED_VAR__/swagger.json)",
36
+ "Bash(sed 's/authToken=.*/authToken=REDACTED/; s/_auth=.*/_auth=REDACTED/')",
37
+ "Bash(curl -s -o /dev/null -w \"npm registry @matech/thebigpos-sdk: HTTP %{http_code}\\\\n\" \"https://registry.npmjs.org/@matech%2Fthebigpos-sdk\")",
38
+ "Bash(curl -s -o /dev/null -w \"yarn registry @matech/thebigpos-sdk: HTTP %{http_code}\\\\n\" \"https://registry.yarnpkg.com/@matech%2Fthebigpos-sdk\")",
39
+ "Bash(npm config:*)",
40
+ "Bash(curl -s \"https://registry.npmjs.org/@matech%2Fthebigpos-sdk\")",
41
+ "Bash(npm whoami:*)",
42
+ "Bash(awk -F= '/authToken/{t=$NF; print \"token length:\", length\\(t\\); print \"token prefix:\", substr\\(t,1,4\\)\"…\"}' '~/.npmrc')",
43
+ "Bash(awk -F= '/authToken/{print $NF}' '~/.npmrc')",
44
+ "Bash(curl -s -o /dev/null -w 'whoami via token: HTTP %{http_code}\\\\n' -H 'Authorization: Bearer __TRACKED_VAR__' https://registry.npmjs.org/-/whoami)",
45
+ "Bash(curl -s -H 'Authorization: Bearer __TRACKED_VAR__' https://registry.npmjs.org/-/whoami)",
46
+ "Skill(dev:open-pr)",
47
+ "Bash(git pull:*)"
48
+ ]
49
+ }
50
+ }
package/.husky/pre-commit CHANGED
@@ -1,3 +1,3 @@
1
- [ -f ./src/index.ts ] && node scripts/apply-json-patch-content-type.js
2
- yarn build
1
+ [ -f ./src/index.ts ] && node scripts/apply-json-patch-content-type.js
2
+ yarn build
3
3
  git add .
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Mortgage Automation Technologies
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Mortgage Automation Technologies
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,73 +1,73 @@
1
- # The BIG POS Typescript SDK
2
-
3
- ## Installation
4
- Using npm:
5
-
6
- ```bash
7
- $ npm install @matech/thebigpos-sdk
8
- ```
9
-
10
- Using yarn:
11
-
12
- ```bash
13
- $ yarn add @matech/thebigpos-sdk
14
- ```
15
-
16
- ## Quick Start
17
- ```js
18
- import { Api } from "@matech/thebigpos-sdk";
19
-
20
- const securityWorker = (data: any) => {
21
- return { headers: data }
22
- }
23
-
24
- const setBearerSecurityWorker = (accessToken:string) => {
25
- const data = {
26
- Authorization: `Bearer ${accessToken}`
27
- };
28
-
29
- apiClient.setSecurityData(data);
30
- };
31
-
32
- const apiClient = new Api({
33
- baseURL:
34
- process.env.REACT_APP_POS_API_HOST || 'https://api.thebigpos.com',
35
- securityWorker,
36
- })
37
-
38
- apiClient.api.getSiteConfiguration().then((response) => {
39
- console.log(response.data);
40
- });
41
- ```
42
-
43
- ## Generate SDK from Swagger
44
-
45
- To regenerate the SDK from a specific API version, run:
46
-
47
- ```bash
48
- npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/{version}/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
49
- ```
50
-
51
- Replace `{version}` with the target API version (e.g. `v2.34.0`):
52
-
53
- ```bash
54
- npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/v2.34.0/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
55
- ```
56
-
57
- ## Publishing
58
-
59
- 1. Update the `version` field in `package.json` before publishing.
60
- 2. Build the project:
61
-
62
- ```bash
63
- yarn build
64
- ```
65
-
66
- 3. Publish to npm:
67
-
68
- ```bash
69
- yarn publish
70
- ```
71
-
72
- ____
73
- © 2024 Mortgage Automation Technologies. All rights reserved
1
+ # The BIG POS Typescript SDK
2
+
3
+ ## Installation
4
+ Using npm:
5
+
6
+ ```bash
7
+ $ npm install @matech/thebigpos-sdk
8
+ ```
9
+
10
+ Using yarn:
11
+
12
+ ```bash
13
+ $ yarn add @matech/thebigpos-sdk
14
+ ```
15
+
16
+ ## Quick Start
17
+ ```js
18
+ import { Api } from "@matech/thebigpos-sdk";
19
+
20
+ const securityWorker = (data: any) => {
21
+ return { headers: data }
22
+ }
23
+
24
+ const setBearerSecurityWorker = (accessToken:string) => {
25
+ const data = {
26
+ Authorization: `Bearer ${accessToken}`
27
+ };
28
+
29
+ apiClient.setSecurityData(data);
30
+ };
31
+
32
+ const apiClient = new Api({
33
+ baseURL:
34
+ process.env.REACT_APP_POS_API_HOST || 'https://api.thebigpos.com',
35
+ securityWorker,
36
+ })
37
+
38
+ apiClient.api.getSiteConfiguration().then((response) => {
39
+ console.log(response.data);
40
+ });
41
+ ```
42
+
43
+ ## Generate SDK from Swagger
44
+
45
+ To regenerate the SDK from a specific API version, run:
46
+
47
+ ```bash
48
+ npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/{version}/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
49
+ ```
50
+
51
+ Replace `{version}` with the target API version (e.g. `v2.34.0`):
52
+
53
+ ```bash
54
+ npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/v2.34.0/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
55
+ ```
56
+
57
+ ## Publishing
58
+
59
+ 1. Update the `version` field in `package.json` before publishing.
60
+ 2. Build the project:
61
+
62
+ ```bash
63
+ yarn build
64
+ ```
65
+
66
+ 3. Publish to npm:
67
+
68
+ ```bash
69
+ yarn publish
70
+ ```
71
+
72
+ ____
73
+ © 2024 Mortgage Automation Technologies. All rights reserved
package/dist/index.d.ts CHANGED
@@ -142,7 +142,7 @@ export interface Action {
142
142
  comments?: string | null;
143
143
  /** @format uuid */
144
144
  siteConfigurationID: string;
145
- applicationSettings?: any;
145
+ applicationSettings?: any | null;
146
146
  surveysToken?: string | null;
147
147
  }
148
148
  export interface Address {
@@ -442,7 +442,7 @@ export interface AuditLogEntry {
442
442
  rootEntityType?: string | null;
443
443
  /** @format uuid */
444
444
  rootEntityId?: string | null;
445
- changes?: any;
445
+ changes?: any | null;
446
446
  /** @format date-time */
447
447
  createdAt: string;
448
448
  }
@@ -1265,7 +1265,7 @@ export interface DraftLoanOfficerReassignRequest {
1265
1265
  }
1266
1266
  export interface DraftRequest {
1267
1267
  applicationPayload: any;
1268
- customData?: any;
1268
+ customData?: any | null;
1269
1269
  isCoBorrower: boolean;
1270
1270
  }
1271
1271
  export interface EConsentInformation {
@@ -1449,7 +1449,7 @@ export interface EncompassRequestLog {
1449
1449
  httpStatusCode?: number | null;
1450
1450
  /** @format int64 */
1451
1451
  durationMs?: number | null;
1452
- context?: any;
1452
+ context?: any | null;
1453
1453
  /** @format date-time */
1454
1454
  createdAt: string;
1455
1455
  }
@@ -1492,7 +1492,7 @@ export interface FileSearchCriteria {
1492
1492
  export interface FileWithBytes {
1493
1493
  name: string;
1494
1494
  /** @format byte */
1495
- data: string;
1495
+ data: Blob;
1496
1496
  fileName: string;
1497
1497
  mimeType?: string | null;
1498
1498
  extension?: string | null;
@@ -1572,7 +1572,7 @@ export interface FormSubmission {
1572
1572
  subjectPropertyAddressCounty?: string | null;
1573
1573
  subjectPropertyAddressState?: string | null;
1574
1574
  subjectPropertyAddressZip?: string | null;
1575
- data?: any;
1575
+ data?: any | null;
1576
1576
  /** @format uuid */
1577
1577
  listingID?: string | null;
1578
1578
  listing?: Listing | null;
@@ -1607,7 +1607,7 @@ export interface FormSubmissionRequest {
1607
1607
  subjectPropertyAddressCounty?: string | null;
1608
1608
  subjectPropertyAddressState?: string | null;
1609
1609
  subjectPropertyAddressZip?: string | null;
1610
- data?: any;
1610
+ data?: any | null;
1611
1611
  /** @format uuid */
1612
1612
  listingID?: string | null;
1613
1613
  }
@@ -1768,7 +1768,7 @@ export interface GetWorkflowRequest {
1768
1768
  export interface GuidPatchOperation {
1769
1769
  op: string;
1770
1770
  path: string;
1771
- value?: any;
1771
+ value?: any | null;
1772
1772
  from?: string | null;
1773
1773
  }
1774
1774
  export interface IPAddress {
@@ -2063,7 +2063,7 @@ export interface LoanApplicationRequest {
2063
2063
  nonOwningBorrowers: LoanNonOwningBorrowerRequest[];
2064
2064
  /** @format uuid */
2065
2065
  draftId?: string | null;
2066
- additionalFields?: Record<string, any>;
2066
+ additionalFields?: Record<string, any> | null;
2067
2067
  /** @format uuid */
2068
2068
  existingLoanId?: string | null;
2069
2069
  }
@@ -2921,7 +2921,7 @@ export interface LoanConsentRequest {
2921
2921
  borrowerEConsent?: boolean | null;
2922
2922
  borrowerCreditAuth?: boolean | null;
2923
2923
  borrowerTCPAOptIn?: boolean | null;
2924
- additionalFields?: Record<string, string>;
2924
+ additionalFields?: Record<string, string> | null;
2925
2925
  }
2926
2926
  export interface LoanContact {
2927
2927
  /** @format date-time */
@@ -2945,7 +2945,7 @@ export interface LoanContactList {
2945
2945
  email: string;
2946
2946
  }
2947
2947
  export interface LoanCustomFieldsRequest {
2948
- additionalFields?: Record<string, string>;
2948
+ additionalFields?: Record<string, string> | null;
2949
2949
  }
2950
2950
  export interface LoanDocument {
2951
2951
  /** @format date-time */
@@ -3407,7 +3407,7 @@ export interface LoanQueueWithData {
3407
3407
  user: UserPublic;
3408
3408
  loanOfficer: LoanOfficerPublic;
3409
3409
  siteConfiguration: SiteConfigurationReduced;
3410
- data?: any;
3410
+ data?: any | null;
3411
3411
  }
3412
3412
  export interface LoanRecord {
3413
3413
  loanGuid: string;
@@ -3621,7 +3621,7 @@ export interface ModuleParameterValue {
3621
3621
  parameterID: string;
3622
3622
  parameterName: string;
3623
3623
  parameterType: string;
3624
- value?: any;
3624
+ value?: any | null;
3625
3625
  isInherited: boolean;
3626
3626
  }
3627
3627
  export interface MonthlyPaymentCalculator {
@@ -3832,7 +3832,7 @@ export interface NotificationTemplateVersionUpdateRequest {
3832
3832
  }
3833
3833
  export interface Operation {
3834
3834
  op?: string;
3835
- value?: string | number | boolean | null | object;
3835
+ value?: object | null;
3836
3836
  path?: string;
3837
3837
  }
3838
3838
  export interface OverridePasswordRequest {
@@ -5766,7 +5766,6 @@ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequest
5766
5766
  format?: ResponseType;
5767
5767
  }
5768
5768
  export declare enum ContentType {
5769
- JsonPatch = "application/json-patch+json",
5770
5769
  Json = "application/json",
5771
5770
  JsonApi = "application/vnd.api+json",
5772
5771
  FormData = "multipart/form-data",
@@ -7939,10 +7938,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7939
7938
  * @summary Download By ID
7940
7939
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
7941
7940
  * @secure
7942
- * @response `200` `string` Success
7941
+ * @response `200` `Blob` Success
7943
7942
  * @response `404` `ProblemDetails` Not Found
7944
7943
  */
7945
- downloadLoanDocument: (loanId: string, documentId: string, params?: RequestParams) => Promise<AxiosResponse<string, any, {}>>;
7944
+ downloadLoanDocument: (loanId: string, documentId: string, params?: RequestParams) => Promise<AxiosResponse<Blob, any, {}>>;
7946
7945
  /**
7947
7946
  * No description
7948
7947
  *
package/dist/index.js CHANGED
@@ -32,7 +32,6 @@ var __rest = (this && this.__rest) || function (s, e) {
32
32
  import axios from "axios";
33
33
  export var ContentType;
34
34
  (function (ContentType) {
35
- ContentType["JsonPatch"] = "application/json-patch+json";
36
35
  ContentType["Json"] = "application/json";
37
36
  ContentType["JsonApi"] = "application/vnd.api+json";
38
37
  ContentType["FormData"] = "multipart/form-data";
@@ -1430,7 +1429,7 @@ export class Api extends HttpClient {
1430
1429
  * @response `200` `string` Success
1431
1430
  * @response `422` `UnprocessableEntity` Client Error
1432
1431
  */
1433
- updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1432
+ updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1434
1433
  /**
1435
1434
  * No description
1436
1435
  *
@@ -1441,7 +1440,7 @@ export class Api extends HttpClient {
1441
1440
  * @secure
1442
1441
  * @response `200` `GetReport` Success
1443
1442
  */
1444
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1443
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1445
1444
  /**
1446
1445
  * No description
1447
1446
  *
@@ -1480,7 +1479,7 @@ export class Api extends HttpClient {
1480
1479
  * @response `200` `string` Success
1481
1480
  * @response `422` `UnprocessableEntity` Client Error
1482
1481
  */
1483
- updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1482
+ updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1484
1483
  /**
1485
1484
  * No description
1486
1485
  *
@@ -1493,7 +1492,7 @@ export class Api extends HttpClient {
1493
1492
  * @response `202` `string` Accepted
1494
1493
  * @response `422` `UnprocessableEntity` Client Error
1495
1494
  */
1496
- updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1495
+ updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1497
1496
  /**
1498
1497
  * No description
1499
1498
  *
@@ -1571,7 +1570,7 @@ export class Api extends HttpClient {
1571
1570
  * @secure
1572
1571
  * @response `200` `DocumentDataRequest` Success
1573
1572
  */
1574
- createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1573
+ createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1575
1574
  /**
1576
1575
  * No description
1577
1576
  *
@@ -1607,7 +1606,7 @@ export class Api extends HttpClient {
1607
1606
  * @secure
1608
1607
  * @response `200` `ListingFile` Success
1609
1608
  */
1610
- updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1609
+ updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1611
1610
  /**
1612
1611
  * No description
1613
1612
  *
@@ -1640,7 +1639,7 @@ export class Api extends HttpClient {
1640
1639
  * @secure
1641
1640
  * @response `200` `(ListingPhoto)[]` Success
1642
1641
  */
1643
- updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1642
+ updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1644
1643
  /**
1645
1644
  * No description
1646
1645
  *
@@ -1673,7 +1672,7 @@ export class Api extends HttpClient {
1673
1672
  * @secure
1674
1673
  * @response `201` `Listing` Created
1675
1674
  */
1676
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1675
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1677
1676
  /**
1678
1677
  * No description
1679
1678
  *
@@ -2074,7 +2073,7 @@ export class Api extends HttpClient {
2074
2073
  * @summary Download By ID
2075
2074
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2076
2075
  * @secure
2077
- * @response `200` `string` Success
2076
+ * @response `200` `Blob` Success
2078
2077
  * @response `404` `ProblemDetails` Not Found
2079
2078
  */
2080
2079
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2571,7 +2570,7 @@ export class Api extends HttpClient {
2571
2570
  * @response `400` `ProblemDetails` Bad Request
2572
2571
  * @response `404` `ProblemDetails` Not Found
2573
2572
  */
2574
- triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2573
+ triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2575
2574
  /**
2576
2575
  * No description
2577
2576
  *
@@ -2583,7 +2582,7 @@ export class Api extends HttpClient {
2583
2582
  * @response `200` `TaskCommentPaginated` Success
2584
2583
  * @response `404` `ProblemDetails` Not Found
2585
2584
  */
2586
- searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2585
+ searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2587
2586
  /**
2588
2587
  * No description
2589
2588
  *