@matech/thebigpos-sdk 3.26.0-dev-8288 → 3.26.0-main-8300
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.cjs +15 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +25 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +40 -0
package/src/index.ts
CHANGED
|
@@ -6704,6 +6704,18 @@ export interface ProblemDetails {
|
|
|
6704
6704
|
[key: string]: any;
|
|
6705
6705
|
}
|
|
6706
6706
|
|
|
6707
|
+
export interface PromotePartner {
|
|
6708
|
+
/** @format uuid */
|
|
6709
|
+
partnerProfileID: string;
|
|
6710
|
+
}
|
|
6711
|
+
|
|
6712
|
+
export interface PromotePartnerRequest {
|
|
6713
|
+
/** @format uuid */
|
|
6714
|
+
userID?: string | null;
|
|
6715
|
+
/** @format uuid */
|
|
6716
|
+
inviteID?: string | null;
|
|
6717
|
+
}
|
|
6718
|
+
|
|
6707
6719
|
export type RecentLoansWidgetConfig = UtilRequiredKeys<
|
|
6708
6720
|
BaseCanvasWidgetConfig,
|
|
6709
6721
|
"type"
|
|
@@ -23158,6 +23170,34 @@ export class Api<
|
|
|
23158
23170
|
...params,
|
|
23159
23171
|
}),
|
|
23160
23172
|
|
|
23173
|
+
/**
|
|
23174
|
+
* @description Makes a settlement agent, by user ID or by an open invite's ID, a partner on the loan officer's list
|
|
23175
|
+
*
|
|
23176
|
+
* @tags UsersMe
|
|
23177
|
+
* @name PromoteMyPartner
|
|
23178
|
+
* @summary Promote To My Partner
|
|
23179
|
+
* @request POST:/api/users/me/partners/promotions
|
|
23180
|
+
* @secure
|
|
23181
|
+
* @response `200` `PromotePartner` OK
|
|
23182
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
23183
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
23184
|
+
* @response `404` `ProblemDetails` Not Found
|
|
23185
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
23186
|
+
*/
|
|
23187
|
+
promoteMyPartner: (
|
|
23188
|
+
data: PromotePartnerRequest,
|
|
23189
|
+
params: RequestParams = {},
|
|
23190
|
+
) =>
|
|
23191
|
+
this.request<PromotePartner, ProblemDetails>({
|
|
23192
|
+
path: `/api/users/me/partners/promotions`,
|
|
23193
|
+
method: "POST",
|
|
23194
|
+
body: data,
|
|
23195
|
+
secure: true,
|
|
23196
|
+
type: "application/json",
|
|
23197
|
+
format: "json",
|
|
23198
|
+
...params,
|
|
23199
|
+
}),
|
|
23200
|
+
|
|
23161
23201
|
/**
|
|
23162
23202
|
* @description The links that attribute an application to the partner, on the site of each loan officer the partner works with
|
|
23163
23203
|
*
|