@matech/thebigpos-sdk 2.22.4-rc0 → 2.22.4-rc1
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/.husky/pre-commit +2 -2
- package/LICENSE +21 -21
- package/README.md +44 -44
- package/dist/index.d.ts +219 -5
- package/dist/index.js +126 -6
- package/dist/index.js.map +1 -1
- package/package.json +40 -40
- package/scripts/apply-json-patch-content-type.js +56 -56
- package/src/index.ts +368 -9
- package/tsconfig.json +27 -27
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,44 +1,44 @@
|
|
|
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
|
-
____
|
|
44
|
-
© 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
|
+
____
|
|
44
|
+
© 2024 Mortgage Automation Technologies. All rights reserved
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type EntityType = "Account" | "Corporate" | "Branch" | "LoanOfficer" | "R
|
|
|
16
16
|
export type BranchType = "Mortgage" | "RealEstate";
|
|
17
17
|
export type BorrowerType = "Borrower" | "CoBorrower" | "Unknown";
|
|
18
18
|
export type BorrowerRelationship = "NotApplicable" | "Spouse" | "NonSpouse";
|
|
19
|
+
export type AccessScopeType = "User" | "Branch";
|
|
19
20
|
export interface ASOSettings {
|
|
20
21
|
enabled: boolean;
|
|
21
22
|
softPull: boolean;
|
|
@@ -517,6 +518,13 @@ export interface CorporateSearchCriteria {
|
|
|
517
518
|
searchText?: string | null;
|
|
518
519
|
isActive?: boolean | null;
|
|
519
520
|
}
|
|
521
|
+
export interface CreateAccessScopeRequest {
|
|
522
|
+
scopeType: "User" | "Branch";
|
|
523
|
+
/** @format uuid */
|
|
524
|
+
userId?: string | null;
|
|
525
|
+
/** @format uuid */
|
|
526
|
+
branchId?: string | null;
|
|
527
|
+
}
|
|
520
528
|
export interface CreateAccountRequest {
|
|
521
529
|
/** @minLength 1 */
|
|
522
530
|
name: string;
|
|
@@ -560,6 +568,11 @@ export interface CreateDocumentTemplateRequest {
|
|
|
560
568
|
destinationBucket?: string | null;
|
|
561
569
|
status: string;
|
|
562
570
|
}
|
|
571
|
+
export interface CreateGroupMemberRequest {
|
|
572
|
+
/** @format uuid */
|
|
573
|
+
userId: string;
|
|
574
|
+
loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
|
|
575
|
+
}
|
|
563
576
|
export interface CreateInviteRequest {
|
|
564
577
|
/** @minLength 1 */
|
|
565
578
|
firstName: string;
|
|
@@ -599,6 +612,15 @@ export interface CreateUserDeviceRequest {
|
|
|
599
612
|
export interface CreateUserDraft {
|
|
600
613
|
loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
|
|
601
614
|
}
|
|
615
|
+
export interface CreateUserGroupRequest {
|
|
616
|
+
/**
|
|
617
|
+
* @minLength 1
|
|
618
|
+
* @maxLength 200
|
|
619
|
+
*/
|
|
620
|
+
name: string;
|
|
621
|
+
/** @maxLength 1000 */
|
|
622
|
+
description?: string | null;
|
|
623
|
+
}
|
|
602
624
|
export interface CreateUserLoan {
|
|
603
625
|
loanRole?: LoanRole | null;
|
|
604
626
|
}
|
|
@@ -2131,7 +2153,7 @@ export interface NotificationTemplateVersionUpdateRequest {
|
|
|
2131
2153
|
}
|
|
2132
2154
|
export interface Operation {
|
|
2133
2155
|
op?: string;
|
|
2134
|
-
value?:
|
|
2156
|
+
value?: object | null;
|
|
2135
2157
|
path?: string;
|
|
2136
2158
|
}
|
|
2137
2159
|
export interface OverridePasswordRequest {
|
|
@@ -2499,6 +2521,18 @@ export interface SendNotificationForLoanRequest {
|
|
|
2499
2521
|
phone?: string | null;
|
|
2500
2522
|
attachments: Attachment[];
|
|
2501
2523
|
}
|
|
2524
|
+
export interface SimpleBranch {
|
|
2525
|
+
/** @format uuid */
|
|
2526
|
+
id: string;
|
|
2527
|
+
name: string;
|
|
2528
|
+
type: string;
|
|
2529
|
+
}
|
|
2530
|
+
export interface SimpleUser {
|
|
2531
|
+
/** @format uuid */
|
|
2532
|
+
id: string;
|
|
2533
|
+
name?: string | null;
|
|
2534
|
+
email?: string | null;
|
|
2535
|
+
}
|
|
2502
2536
|
export interface SiteConfiguration {
|
|
2503
2537
|
/** @format date-time */
|
|
2504
2538
|
createdAt?: string | null;
|
|
@@ -3432,6 +3466,15 @@ export interface UpdateMeRequest {
|
|
|
3432
3466
|
export interface UpdateMobilePhoneRequest {
|
|
3433
3467
|
phone: string;
|
|
3434
3468
|
}
|
|
3469
|
+
export interface UpdateUserGroupRequest {
|
|
3470
|
+
/**
|
|
3471
|
+
* @minLength 1
|
|
3472
|
+
* @maxLength 200
|
|
3473
|
+
*/
|
|
3474
|
+
name: string;
|
|
3475
|
+
/** @maxLength 1000 */
|
|
3476
|
+
description?: string | null;
|
|
3477
|
+
}
|
|
3435
3478
|
export interface UpdateUserRequest {
|
|
3436
3479
|
phone?: string | null;
|
|
3437
3480
|
/**
|
|
@@ -3507,6 +3550,48 @@ export interface UserDraftPaginated {
|
|
|
3507
3550
|
/** @format int64 */
|
|
3508
3551
|
count: number;
|
|
3509
3552
|
}
|
|
3553
|
+
export interface UserGroup {
|
|
3554
|
+
/** @format uuid */
|
|
3555
|
+
id: string;
|
|
3556
|
+
/** @format uuid */
|
|
3557
|
+
accountID: string;
|
|
3558
|
+
name: string;
|
|
3559
|
+
description?: string | null;
|
|
3560
|
+
isDeleted: boolean;
|
|
3561
|
+
/** @format date-time */
|
|
3562
|
+
createdAt: string;
|
|
3563
|
+
/** @format date-time */
|
|
3564
|
+
updatedAt?: string | null;
|
|
3565
|
+
}
|
|
3566
|
+
export interface UserGroupAccessScope {
|
|
3567
|
+
/** @format uuid */
|
|
3568
|
+
id: string;
|
|
3569
|
+
/** @format uuid */
|
|
3570
|
+
groupId: string;
|
|
3571
|
+
scopeType: "User" | "Branch";
|
|
3572
|
+
/** @format uuid */
|
|
3573
|
+
userId?: string | null;
|
|
3574
|
+
/** @format uuid */
|
|
3575
|
+
branchId?: string | null;
|
|
3576
|
+
user?: SimpleUser | null;
|
|
3577
|
+
branch?: SimpleBranch | null;
|
|
3578
|
+
}
|
|
3579
|
+
export interface UserGroupMember {
|
|
3580
|
+
/** @format uuid */
|
|
3581
|
+
id: string;
|
|
3582
|
+
/** @format uuid */
|
|
3583
|
+
groupId: string;
|
|
3584
|
+
/** @format uuid */
|
|
3585
|
+
userId: string;
|
|
3586
|
+
loanRole: string;
|
|
3587
|
+
user: SimpleUser;
|
|
3588
|
+
}
|
|
3589
|
+
export interface UserGroupPaginated {
|
|
3590
|
+
rows: UserGroup[];
|
|
3591
|
+
pagination: Pagination;
|
|
3592
|
+
/** @format int64 */
|
|
3593
|
+
count: number;
|
|
3594
|
+
}
|
|
3510
3595
|
export interface UserLoan {
|
|
3511
3596
|
/** @format date-time */
|
|
3512
3597
|
createdAt: string;
|
|
@@ -3564,13 +3649,11 @@ export interface UserNotificationSettings {
|
|
|
3564
3649
|
emailEnabled: boolean;
|
|
3565
3650
|
textEnabled: boolean;
|
|
3566
3651
|
textOptIn?: boolean | null;
|
|
3567
|
-
pushEnabled: boolean;
|
|
3568
3652
|
}
|
|
3569
3653
|
export interface UserNotificationSettingsUpdateRequest {
|
|
3570
3654
|
emailEnabled: boolean;
|
|
3571
3655
|
textEnabled: boolean;
|
|
3572
3656
|
textOptIn?: boolean | null;
|
|
3573
|
-
pushEnabled: boolean;
|
|
3574
3657
|
}
|
|
3575
3658
|
export interface UserPaginated {
|
|
3576
3659
|
rows: User[];
|
|
@@ -3698,7 +3781,6 @@ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequest
|
|
|
3698
3781
|
format?: ResponseType;
|
|
3699
3782
|
}
|
|
3700
3783
|
export declare enum ContentType {
|
|
3701
|
-
JsonPatch = "application/json-patch+json",
|
|
3702
3784
|
Json = "application/json",
|
|
3703
3785
|
JsonApi = "application/vnd.api+json",
|
|
3704
3786
|
FormData = "multipart/form-data",
|
|
@@ -3720,7 +3802,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
3720
3802
|
}
|
|
3721
3803
|
/**
|
|
3722
3804
|
* @title The Big POS API
|
|
3723
|
-
* @version v2.22.
|
|
3805
|
+
* @version v2.22.1
|
|
3724
3806
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
3725
3807
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
3726
3808
|
*/
|
|
@@ -6818,6 +6900,138 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6818
6900
|
* @response `204` `void` No Content
|
|
6819
6901
|
*/
|
|
6820
6902
|
deleteDraftUser: (draftId: string, userId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
6903
|
+
/**
|
|
6904
|
+
* No description
|
|
6905
|
+
*
|
|
6906
|
+
* @tags UserGroupAccessScopes
|
|
6907
|
+
* @name ListGroupScopes
|
|
6908
|
+
* @summary List Group Access Scopes
|
|
6909
|
+
* @request GET:/api/user-groups/{groupId}/scopes
|
|
6910
|
+
* @secure
|
|
6911
|
+
* @response `200` `(UserGroupAccessScope)[]` OK
|
|
6912
|
+
*/
|
|
6913
|
+
listGroupScopes: (groupId: string, params?: RequestParams) => Promise<AxiosResponse<UserGroupAccessScope[], any>>;
|
|
6914
|
+
/**
|
|
6915
|
+
* No description
|
|
6916
|
+
*
|
|
6917
|
+
* @tags UserGroupAccessScopes
|
|
6918
|
+
* @name CreateGroupScope
|
|
6919
|
+
* @summary Create Group Access Scope
|
|
6920
|
+
* @request POST:/api/user-groups/{groupId}/scopes
|
|
6921
|
+
* @secure
|
|
6922
|
+
* @response `200` `UserGroupAccessScope` OK
|
|
6923
|
+
*/
|
|
6924
|
+
createGroupScope: (groupId: string, data: CreateAccessScopeRequest, params?: RequestParams) => Promise<AxiosResponse<UserGroupAccessScope, any>>;
|
|
6925
|
+
/**
|
|
6926
|
+
* No description
|
|
6927
|
+
*
|
|
6928
|
+
* @tags UserGroupAccessScopes
|
|
6929
|
+
* @name RemoveGroupScope
|
|
6930
|
+
* @summary Remove Group Access Scope
|
|
6931
|
+
* @request DELETE:/api/user-groups/{groupId}/scopes/{scopeId}
|
|
6932
|
+
* @secure
|
|
6933
|
+
* @response `204` `void` No Content
|
|
6934
|
+
*/
|
|
6935
|
+
removeGroupScope: (groupId: string, scopeId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
6936
|
+
/**
|
|
6937
|
+
* No description
|
|
6938
|
+
*
|
|
6939
|
+
* @tags UserGroupMembers
|
|
6940
|
+
* @name ListGroupMembers
|
|
6941
|
+
* @summary List Group Members
|
|
6942
|
+
* @request GET:/api/user-groups/{groupId}/members
|
|
6943
|
+
* @secure
|
|
6944
|
+
* @response `200` `(UserGroupMember)[]` OK
|
|
6945
|
+
*/
|
|
6946
|
+
listGroupMembers: (groupId: string, params?: RequestParams) => Promise<AxiosResponse<UserGroupMember[], any>>;
|
|
6947
|
+
/**
|
|
6948
|
+
* No description
|
|
6949
|
+
*
|
|
6950
|
+
* @tags UserGroupMembers
|
|
6951
|
+
* @name CreateGroupMember
|
|
6952
|
+
* @summary Create Group Member
|
|
6953
|
+
* @request POST:/api/user-groups/{groupId}/members
|
|
6954
|
+
* @secure
|
|
6955
|
+
* @response `200` `UserGroupMember` OK
|
|
6956
|
+
*/
|
|
6957
|
+
createGroupMember: (groupId: string, data: CreateGroupMemberRequest, query?: {
|
|
6958
|
+
/** @format uuid */
|
|
6959
|
+
userId?: string;
|
|
6960
|
+
}, params?: RequestParams) => Promise<AxiosResponse<UserGroupMember, any>>;
|
|
6961
|
+
/**
|
|
6962
|
+
* No description
|
|
6963
|
+
*
|
|
6964
|
+
* @tags UserGroupMembers
|
|
6965
|
+
* @name RemoveGroupMember
|
|
6966
|
+
* @summary Remove Group Member
|
|
6967
|
+
* @request DELETE:/api/user-groups/{groupId}/members/{userId}
|
|
6968
|
+
* @secure
|
|
6969
|
+
* @response `204` `void` No Content
|
|
6970
|
+
*/
|
|
6971
|
+
removeGroupMember: (groupId: string, userId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
6972
|
+
/**
|
|
6973
|
+
* No description
|
|
6974
|
+
*
|
|
6975
|
+
* @tags UserGroups
|
|
6976
|
+
* @name ListUserGroups
|
|
6977
|
+
* @summary List User Groups
|
|
6978
|
+
* @request GET:/api/user-groups
|
|
6979
|
+
* @secure
|
|
6980
|
+
* @response `200` `UserGroupPaginated` OK
|
|
6981
|
+
*/
|
|
6982
|
+
listUserGroups: (query?: {
|
|
6983
|
+
search?: string;
|
|
6984
|
+
/** @format int32 */
|
|
6985
|
+
pageSize?: number;
|
|
6986
|
+
/** @format int32 */
|
|
6987
|
+
pageNumber?: number;
|
|
6988
|
+
sortBy?: string;
|
|
6989
|
+
sortDirection?: string;
|
|
6990
|
+
}, params?: RequestParams) => Promise<AxiosResponse<UserGroupPaginated, any>>;
|
|
6991
|
+
/**
|
|
6992
|
+
* No description
|
|
6993
|
+
*
|
|
6994
|
+
* @tags UserGroups
|
|
6995
|
+
* @name CreateUserGroup
|
|
6996
|
+
* @summary Create User Group
|
|
6997
|
+
* @request POST:/api/user-groups
|
|
6998
|
+
* @secure
|
|
6999
|
+
* @response `201` `UserGroup` Created
|
|
7000
|
+
*/
|
|
7001
|
+
createUserGroup: (data: CreateUserGroupRequest, params?: RequestParams) => Promise<AxiosResponse<UserGroup, any>>;
|
|
7002
|
+
/**
|
|
7003
|
+
* No description
|
|
7004
|
+
*
|
|
7005
|
+
* @tags UserGroups
|
|
7006
|
+
* @name GetUserGroup
|
|
7007
|
+
* @summary Get User Group by ID
|
|
7008
|
+
* @request GET:/api/user-groups/{groupId}
|
|
7009
|
+
* @secure
|
|
7010
|
+
* @response `200` `UserGroup` OK
|
|
7011
|
+
*/
|
|
7012
|
+
getUserGroup: (groupId: string, params?: RequestParams) => Promise<AxiosResponse<UserGroup, any>>;
|
|
7013
|
+
/**
|
|
7014
|
+
* No description
|
|
7015
|
+
*
|
|
7016
|
+
* @tags UserGroups
|
|
7017
|
+
* @name UpdateUserGroup
|
|
7018
|
+
* @summary Update User Group
|
|
7019
|
+
* @request PUT:/api/user-groups/{groupId}
|
|
7020
|
+
* @secure
|
|
7021
|
+
* @response `200` `UserGroup` OK
|
|
7022
|
+
*/
|
|
7023
|
+
updateUserGroup: (groupId: string, data: UpdateUserGroupRequest, params?: RequestParams) => Promise<AxiosResponse<UserGroup, any>>;
|
|
7024
|
+
/**
|
|
7025
|
+
* No description
|
|
7026
|
+
*
|
|
7027
|
+
* @tags UserGroups
|
|
7028
|
+
* @name DeleteUserGroup
|
|
7029
|
+
* @summary Delete (soft) User Group
|
|
7030
|
+
* @request DELETE:/api/user-groups/{groupId}
|
|
7031
|
+
* @secure
|
|
7032
|
+
* @response `204` `void` No Content
|
|
7033
|
+
*/
|
|
7034
|
+
deleteUserGroup: (groupId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
6821
7035
|
/**
|
|
6822
7036
|
* No description
|
|
6823
7037
|
*
|
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";
|
|
@@ -104,7 +103,7 @@ export class HttpClient {
|
|
|
104
103
|
}
|
|
105
104
|
/**
|
|
106
105
|
* @title The Big POS API
|
|
107
|
-
* @version v2.22.
|
|
106
|
+
* @version v2.22.1
|
|
108
107
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
109
108
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
110
109
|
*/
|
|
@@ -1163,7 +1162,7 @@ export class Api extends HttpClient {
|
|
|
1163
1162
|
* @response `200` `string` OK
|
|
1164
1163
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
1165
1164
|
*/
|
|
1166
|
-
updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1165
|
+
updateLoanConsent: (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)),
|
|
1167
1166
|
/**
|
|
1168
1167
|
* No description
|
|
1169
1168
|
*
|
|
@@ -1287,7 +1286,7 @@ export class Api extends HttpClient {
|
|
|
1287
1286
|
* @secure
|
|
1288
1287
|
* @response `200` `ListingFile` OK
|
|
1289
1288
|
*/
|
|
1290
|
-
updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1289
|
+
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)),
|
|
1291
1290
|
/**
|
|
1292
1291
|
* No description
|
|
1293
1292
|
*
|
|
@@ -1320,7 +1319,7 @@ export class Api extends HttpClient {
|
|
|
1320
1319
|
* @secure
|
|
1321
1320
|
* @response `200` `(ListingPhoto)[]` OK
|
|
1322
1321
|
*/
|
|
1323
|
-
updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1322
|
+
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)),
|
|
1324
1323
|
/**
|
|
1325
1324
|
* No description
|
|
1326
1325
|
*
|
|
@@ -1981,7 +1980,7 @@ export class Api extends HttpClient {
|
|
|
1981
1980
|
* @secure
|
|
1982
1981
|
* @response `200` `Loan` OK
|
|
1983
1982
|
*/
|
|
1984
|
-
updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1983
|
+
updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
1985
1984
|
/**
|
|
1986
1985
|
* No description
|
|
1987
1986
|
*
|
|
@@ -2915,6 +2914,127 @@ export class Api extends HttpClient {
|
|
|
2915
2914
|
* @response `204` `void` No Content
|
|
2916
2915
|
*/
|
|
2917
2916
|
deleteDraftUser: (draftId, userId, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "DELETE", secure: true }, params)),
|
|
2917
|
+
/**
|
|
2918
|
+
* No description
|
|
2919
|
+
*
|
|
2920
|
+
* @tags UserGroupAccessScopes
|
|
2921
|
+
* @name ListGroupScopes
|
|
2922
|
+
* @summary List Group Access Scopes
|
|
2923
|
+
* @request GET:/api/user-groups/{groupId}/scopes
|
|
2924
|
+
* @secure
|
|
2925
|
+
* @response `200` `(UserGroupAccessScope)[]` OK
|
|
2926
|
+
*/
|
|
2927
|
+
listGroupScopes: (groupId, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes`, method: "GET", secure: true, format: "json" }, params)),
|
|
2928
|
+
/**
|
|
2929
|
+
* No description
|
|
2930
|
+
*
|
|
2931
|
+
* @tags UserGroupAccessScopes
|
|
2932
|
+
* @name CreateGroupScope
|
|
2933
|
+
* @summary Create Group Access Scope
|
|
2934
|
+
* @request POST:/api/user-groups/{groupId}/scopes
|
|
2935
|
+
* @secure
|
|
2936
|
+
* @response `200` `UserGroupAccessScope` OK
|
|
2937
|
+
*/
|
|
2938
|
+
createGroupScope: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
2939
|
+
/**
|
|
2940
|
+
* No description
|
|
2941
|
+
*
|
|
2942
|
+
* @tags UserGroupAccessScopes
|
|
2943
|
+
* @name RemoveGroupScope
|
|
2944
|
+
* @summary Remove Group Access Scope
|
|
2945
|
+
* @request DELETE:/api/user-groups/{groupId}/scopes/{scopeId}
|
|
2946
|
+
* @secure
|
|
2947
|
+
* @response `204` `void` No Content
|
|
2948
|
+
*/
|
|
2949
|
+
removeGroupScope: (groupId, scopeId, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes/${scopeId}`, method: "DELETE", secure: true }, params)),
|
|
2950
|
+
/**
|
|
2951
|
+
* No description
|
|
2952
|
+
*
|
|
2953
|
+
* @tags UserGroupMembers
|
|
2954
|
+
* @name ListGroupMembers
|
|
2955
|
+
* @summary List Group Members
|
|
2956
|
+
* @request GET:/api/user-groups/{groupId}/members
|
|
2957
|
+
* @secure
|
|
2958
|
+
* @response `200` `(UserGroupMember)[]` OK
|
|
2959
|
+
*/
|
|
2960
|
+
listGroupMembers: (groupId, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "GET", secure: true, format: "json" }, params)),
|
|
2961
|
+
/**
|
|
2962
|
+
* No description
|
|
2963
|
+
*
|
|
2964
|
+
* @tags UserGroupMembers
|
|
2965
|
+
* @name CreateGroupMember
|
|
2966
|
+
* @summary Create Group Member
|
|
2967
|
+
* @request POST:/api/user-groups/{groupId}/members
|
|
2968
|
+
* @secure
|
|
2969
|
+
* @response `200` `UserGroupMember` OK
|
|
2970
|
+
*/
|
|
2971
|
+
createGroupMember: (groupId, data, query, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
2972
|
+
/**
|
|
2973
|
+
* No description
|
|
2974
|
+
*
|
|
2975
|
+
* @tags UserGroupMembers
|
|
2976
|
+
* @name RemoveGroupMember
|
|
2977
|
+
* @summary Remove Group Member
|
|
2978
|
+
* @request DELETE:/api/user-groups/{groupId}/members/{userId}
|
|
2979
|
+
* @secure
|
|
2980
|
+
* @response `204` `void` No Content
|
|
2981
|
+
*/
|
|
2982
|
+
removeGroupMember: (groupId, userId, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members/${userId}`, method: "DELETE", secure: true }, params)),
|
|
2983
|
+
/**
|
|
2984
|
+
* No description
|
|
2985
|
+
*
|
|
2986
|
+
* @tags UserGroups
|
|
2987
|
+
* @name ListUserGroups
|
|
2988
|
+
* @summary List User Groups
|
|
2989
|
+
* @request GET:/api/user-groups
|
|
2990
|
+
* @secure
|
|
2991
|
+
* @response `200` `UserGroupPaginated` OK
|
|
2992
|
+
*/
|
|
2993
|
+
listUserGroups: (query, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
2994
|
+
/**
|
|
2995
|
+
* No description
|
|
2996
|
+
*
|
|
2997
|
+
* @tags UserGroups
|
|
2998
|
+
* @name CreateUserGroup
|
|
2999
|
+
* @summary Create User Group
|
|
3000
|
+
* @request POST:/api/user-groups
|
|
3001
|
+
* @secure
|
|
3002
|
+
* @response `201` `UserGroup` Created
|
|
3003
|
+
*/
|
|
3004
|
+
createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
3005
|
+
/**
|
|
3006
|
+
* No description
|
|
3007
|
+
*
|
|
3008
|
+
* @tags UserGroups
|
|
3009
|
+
* @name GetUserGroup
|
|
3010
|
+
* @summary Get User Group by ID
|
|
3011
|
+
* @request GET:/api/user-groups/{groupId}
|
|
3012
|
+
* @secure
|
|
3013
|
+
* @response `200` `UserGroup` OK
|
|
3014
|
+
*/
|
|
3015
|
+
getUserGroup: (groupId, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "GET", secure: true, format: "json" }, params)),
|
|
3016
|
+
/**
|
|
3017
|
+
* No description
|
|
3018
|
+
*
|
|
3019
|
+
* @tags UserGroups
|
|
3020
|
+
* @name UpdateUserGroup
|
|
3021
|
+
* @summary Update User Group
|
|
3022
|
+
* @request PUT:/api/user-groups/{groupId}
|
|
3023
|
+
* @secure
|
|
3024
|
+
* @response `200` `UserGroup` OK
|
|
3025
|
+
*/
|
|
3026
|
+
updateUserGroup: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
3027
|
+
/**
|
|
3028
|
+
* No description
|
|
3029
|
+
*
|
|
3030
|
+
* @tags UserGroups
|
|
3031
|
+
* @name DeleteUserGroup
|
|
3032
|
+
* @summary Delete (soft) User Group
|
|
3033
|
+
* @request DELETE:/api/user-groups/{groupId}
|
|
3034
|
+
* @secure
|
|
3035
|
+
* @response `204` `void` No Content
|
|
3036
|
+
*/
|
|
3037
|
+
deleteUserGroup: (groupId, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "DELETE", secure: true }, params)),
|
|
2918
3038
|
/**
|
|
2919
3039
|
* No description
|
|
2920
3040
|
*
|