@matech/thebigpos-sdk 3.12.0-dev-4983 → 3.12.0-dev-5150

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
@@ -67,7 +67,6 @@ export type LoanAccountAssetType = "Checking" | "Savings" | "MoneyMarket" | "Cer
67
67
  export type LoanAccessScopeType = "User" | "Branch";
68
68
  export type LinkTarget = "Self" | "Blank";
69
69
  export type LOSStatus = "Unknown" | "Pending" | "Retrying" | "Successful" | "Failed" | "FailedPermanently" | "Uploaded" | "PendingSync";
70
- export type FilterType = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
71
70
  export type Environment = "Development" | "Staging" | "UAT" | "Production";
72
71
  export type EntityType = "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Realtor";
73
72
  export type EncompassWebhookType = "Legacy" | "LoanV3" | "WebDocuments" | "PosfCreatePackage";
@@ -174,16 +173,6 @@ export interface AccountSettingsRequest {
174
173
  smsNumber?: string | null;
175
174
  isEarlyAdopter: boolean;
176
175
  }
177
- export interface Action {
178
- /** @format uuid */
179
- id: string;
180
- name: string;
181
- comments?: string | null;
182
- /** @format uuid */
183
- siteConfigurationID: string;
184
- applicationSettings?: any | null;
185
- surveysToken?: string | null;
186
- }
187
176
  export interface Address {
188
177
  /** @format uuid */
189
178
  id: string;
@@ -697,6 +686,36 @@ export interface AiPromptRunResult {
697
686
  /** @format double */
698
687
  confidence?: number | null;
699
688
  }
689
+ export interface AiPromptRunRetry {
690
+ dryRun: boolean;
691
+ /** @format int32 */
692
+ failedRuns: number;
693
+ /** @format int32 */
694
+ tasks: number;
695
+ /** @format int32 */
696
+ republished: number;
697
+ /** @format int32 */
698
+ skipped: number;
699
+ /** @format int32 */
700
+ remainingTasks: number;
701
+ /** @format int32 */
702
+ scheduledOverSeconds: number;
703
+ items: AiPromptRunRetryItem[];
704
+ }
705
+ export interface AiPromptRunRetryItem {
706
+ /** @format uuid */
707
+ accountId: string;
708
+ /** @format uuid */
709
+ subjectEntityId: string;
710
+ /** @format uuid */
711
+ loanId?: string | null;
712
+ runIds: string[];
713
+ /** @format date-time */
714
+ lastFailedAt: string;
715
+ /** @format int32 */
716
+ delaySeconds: number;
717
+ outcome: string;
718
+ }
700
719
  export interface AiPromptRunVerdictBackfill {
701
720
  /** @format int32 */
702
721
  updated: number;
@@ -1607,71 +1626,6 @@ export interface DetailedUser {
1607
1626
  notificationSettings?: UserNotificationSettings | null;
1608
1627
  hasExtendedLoanVisibility: boolean;
1609
1628
  }
1610
- export interface Device {
1611
- /** @format uuid */
1612
- id: string;
1613
- /** @format uuid */
1614
- accountID: string;
1615
- serialNumber: string;
1616
- apps: any;
1617
- /** @format uuid */
1618
- createdBy: string;
1619
- /** @format uuid */
1620
- updatedBy?: string | null;
1621
- /** @format uuid */
1622
- managedBy?: string | null;
1623
- name?: string | null;
1624
- type?: string | null;
1625
- status?: string | null;
1626
- comments?: string | null;
1627
- }
1628
- export interface DeviceAction {
1629
- is_enabled: boolean;
1630
- localized_name?: string | null;
1631
- name?: string | null;
1632
- remarks?: string | null;
1633
- localized_action_info?: string | null;
1634
- status_code?: string | null;
1635
- action_info?: string | null;
1636
- localized_status_description?: string | null;
1637
- status_description?: string | null;
1638
- }
1639
- export interface DeviceMDM {
1640
- managed_status?: string | null;
1641
- device_id?: string | null;
1642
- is_supervised: boolean;
1643
- os_version?: string | null;
1644
- is_lost_mode_enabled: boolean;
1645
- owned_by?: string | null;
1646
- is_removed?: string | null;
1647
- product_name?: string | null;
1648
- device_name?: string | null;
1649
- device_type?: string | null;
1650
- platform_type?: string | null;
1651
- wifi_mac?: string | null;
1652
- udid?: string | null;
1653
- serial_number?: string | null;
1654
- customer_name?: string | null;
1655
- customer_id?: string | null;
1656
- model?: string | null;
1657
- last_contact_time?: string | null;
1658
- platform_type_id?: string | null;
1659
- device_capacity?: string | null;
1660
- imei: string[];
1661
- user?: MdmUser | null;
1662
- actions?: DeviceAction[] | null;
1663
- }
1664
- export interface DevicePaginated {
1665
- rows: Device[];
1666
- pagination: Pagination;
1667
- /** @format int64 */
1668
- count: number;
1669
- }
1670
- export interface DeviceRequest {
1671
- apps: any;
1672
- name?: string | null;
1673
- comments?: string | null;
1674
- }
1675
1629
  export interface DocumentDataRequest {
1676
1630
  documentID?: string | null;
1677
1631
  /** @format uuid */
@@ -2283,14 +2237,6 @@ export interface FormVersionUpdateRequest {
2283
2237
  /** @format uuid */
2284
2238
  id: string;
2285
2239
  }
2286
- export interface FusionFieldDisplay {
2287
- fieldValue: string;
2288
- }
2289
- export interface FusionReportFilter {
2290
- filterType: FusionReportFilterFilterTypeEnum;
2291
- targetField: string;
2292
- targetValue: string;
2293
- }
2294
2240
  export interface GenerateDocumentRequest {
2295
2241
  /** @format uuid */
2296
2242
  templateID: string;
@@ -2353,19 +2299,6 @@ export interface GetForm {
2353
2299
  /** @format uuid */
2354
2300
  id: string;
2355
2301
  }
2356
- export interface GetReport {
2357
- loanRecords: LoanRecord[];
2358
- invalidFieldIDs: string[];
2359
- }
2360
- export interface GetReportRequest {
2361
- fields: FusionFieldDisplay[];
2362
- filters?: FusionReportFilter[] | null;
2363
- loanIDs?: string[] | null;
2364
- /** @format int32 */
2365
- startIndex?: number | null;
2366
- /** @format int32 */
2367
- limit?: number | null;
2368
- }
2369
2302
  export interface GetSiteConfigurationByLOUserIDRequest {
2370
2303
  loUserID: string;
2371
2304
  }
@@ -4123,10 +4056,6 @@ export interface LoanRecommendation {
4123
4056
  /** @format date-time */
4124
4057
  detectedAt: string;
4125
4058
  }
4126
- export interface LoanRecord {
4127
- loanGuid: string;
4128
- loanFields: Record<string, string>;
4129
- }
4130
4059
  export interface LoanRefinance {
4131
4060
  /** @format uuid */
4132
4061
  id?: string | null;
@@ -4558,11 +4487,6 @@ export interface MaterializeLoanRoleTasks {
4558
4487
  /** @format int32 */
4559
4488
  rowsAdded: number;
4560
4489
  }
4561
- export interface MdmUser {
4562
- user_email?: string | null;
4563
- user_id?: string | null;
4564
- user_name?: string | null;
4565
- }
4566
4490
  export interface MilestoneConfiguration {
4567
4491
  /** @format date-time */
4568
4492
  createdAt: string;
@@ -6849,7 +6773,6 @@ export type EncompassCredentialsRequestSigningMethodEnum = "ConsumerConnect" | "
6849
6773
  export type EncompassRequestLogOperationTypeEnum = "FieldUpdate" | "ConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader" | "Read";
6850
6774
  export type EncompassRequestLogOutcomeEnum = "Success" | "Failure" | "PartialSuccess";
6851
6775
  export type EncompassWebhookSubscriptionWebhookTypeEnum = "Legacy" | "LoanV3" | "WebDocuments" | "PosfCreatePackage";
6852
- export type FusionReportFilterFilterTypeEnum = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
6853
6776
  export type GenerateSystemPromptRequestCategoryEnum = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
6854
6777
  export type IpAddressAddressFamilyEnum = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
6855
6778
  export type LoanSigningMethodEnum = "ConsumerConnect" | "POSF";
@@ -7809,6 +7732,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7809
7732
  backfillAiPromptRunVerdicts: (query?: {
7810
7733
  dryRun?: boolean;
7811
7734
  }, params?: RequestParams) => Promise<AxiosResponse<AiPromptRunVerdictBackfill, any, {}>>;
7735
+ /**
7736
+ * No description
7737
+ *
7738
+ * @tags AiPromptRunAdmin
7739
+ * @name RetryFailedAiPromptRuns
7740
+ * @summary Republish the trigger for failed prompt runs so they run again, staggered by spacingSeconds (SuperAdmin)
7741
+ * @request POST:/api/ai/prompt-runs/retry-failed
7742
+ * @secure
7743
+ * @response `200` `AiPromptRunRetry` OK
7744
+ * @response `400` `ProblemDetails` Bad Request
7745
+ * @response `401` `ProblemDetails` Unauthorized
7746
+ * @response `403` `ProblemDetails` Forbidden
7747
+ */
7748
+ retryFailedAiPromptRuns: (query?: {
7749
+ /** @format uuid */
7750
+ accountId?: string;
7751
+ /** @format date-time */
7752
+ from?: string;
7753
+ /** @format date-time */
7754
+ to?: string;
7755
+ errorType?: string;
7756
+ dryRun?: boolean;
7757
+ /** @format int32 */
7758
+ spacingSeconds?: number;
7759
+ /** @format int32 */
7760
+ limit?: number;
7761
+ includeAlreadyRetried?: boolean;
7762
+ }, params?: RequestParams) => Promise<AxiosResponse<AiPromptRunRetry, any, {}>>;
7812
7763
  /**
7813
7764
  * No description
7814
7765
  *
@@ -8912,70 +8863,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8912
8863
  * @response `404` `ProblemDetails` Not Found
8913
8864
  */
8914
8865
  enableCustomFieldDefinition: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
8915
- /**
8916
- * No description
8917
- *
8918
- * @tags Devices
8919
- * @name GetDevices
8920
- * @summary Get All
8921
- * @request GET:/api/devices
8922
- * @secure
8923
- * @response `200` `DevicePaginated` OK
8924
- */
8925
- getDevices: (query?: {
8926
- /** @format uuid */
8927
- posAccountId?: string;
8928
- /** @format int32 */
8929
- pageSize?: number;
8930
- /** @format int32 */
8931
- pageNumber?: number;
8932
- sortBy?: string;
8933
- sortDirection?: string;
8934
- }, params?: RequestParams) => Promise<AxiosResponse<DevicePaginated, any, {}>>;
8935
- /**
8936
- * No description
8937
- *
8938
- * @tags Devices
8939
- * @name GetDevice
8940
- * @summary Get by ID
8941
- * @request GET:/api/devices/{id}
8942
- * @secure
8943
- * @response `200` `Device` OK
8944
- */
8945
- getDevice: (id: string, params?: RequestParams) => Promise<AxiosResponse<Device, any, {}>>;
8946
- /**
8947
- * No description
8948
- *
8949
- * @tags Devices
8950
- * @name UpdateDevice
8951
- * @summary Update
8952
- * @request PUT:/api/devices/{id}
8953
- * @secure
8954
- * @response `200` `Device` OK
8955
- */
8956
- updateDevice: (id: string, data: DeviceRequest, params?: RequestParams) => Promise<AxiosResponse<Device, any, {}>>;
8957
- /**
8958
- * No description
8959
- *
8960
- * @tags Devices
8961
- * @name GetDeviceBySerialNumber
8962
- * @summary Get by Serial Number
8963
- * @request GET:/api/devices/{sn}/profile
8964
- * @secure
8965
- * @response `200` `DeviceMDM` OK
8966
- */
8967
- getDeviceBySerialNumber: (sn: string, params?: RequestParams) => Promise<AxiosResponse<DeviceMDM, any, {}>>;
8968
- /**
8969
- * No description
8970
- *
8971
- * @tags Devices
8972
- * @name CreateDeviceActionBySerialNumber
8973
- * @summary Create Action by Serial Number
8974
- * @request POST:/api/devices/{sn}/actions/{actionName}
8975
- * @secure
8976
- * @response `200` `Action` OK
8977
- */
8978
- createDeviceActionBySerialNumber: (sn: string, actionName: string, params?: RequestParams) => Promise<AxiosResponse<Action, any, {}>>;
8979
8866
  /**
8980
8867
  * No description
8981
8868
  *
@@ -9902,17 +9789,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9902
9789
  * @response `422` `UnprocessableEntity` Unprocessable Content
9903
9790
  */
9904
9791
  updateLoanConsentAndCustomFieldsObsolete: (loanId: string, data: JsonPatchDocument, params?: RequestParams) => Promise<AxiosResponse<string, any, {}>>;
9905
- /**
9906
- * No description
9907
- *
9908
- * @tags LegacyLoan
9909
- * @name GetLoansReport
9910
- * @summary Get Report
9911
- * @request POST:/api/los/loan/reports
9912
- * @secure
9913
- * @response `200` `GetReport` OK
9914
- */
9915
- getLoansReport: (data: GetReportRequest, params?: RequestParams) => Promise<AxiosResponse<GetReport, any, {}>>;
9916
9792
  /**
9917
9793
  * No description
9918
9794
  *
package/dist/index.js CHANGED
@@ -838,6 +838,20 @@ export class Api extends HttpClient {
838
838
  * @response `403` `ProblemDetails` Forbidden
839
839
  */
840
840
  backfillAiPromptRunVerdicts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompt-runs/backfill-verdicts`, method: "POST", query: query, secure: true, format: "json" }, params)),
841
+ /**
842
+ * No description
843
+ *
844
+ * @tags AiPromptRunAdmin
845
+ * @name RetryFailedAiPromptRuns
846
+ * @summary Republish the trigger for failed prompt runs so they run again, staggered by spacingSeconds (SuperAdmin)
847
+ * @request POST:/api/ai/prompt-runs/retry-failed
848
+ * @secure
849
+ * @response `200` `AiPromptRunRetry` OK
850
+ * @response `400` `ProblemDetails` Bad Request
851
+ * @response `401` `ProblemDetails` Unauthorized
852
+ * @response `403` `ProblemDetails` Forbidden
853
+ */
854
+ retryFailedAiPromptRuns: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompt-runs/retry-failed`, method: "POST", query: query, secure: true, format: "json" }, params)),
841
855
  /**
842
856
  * No description
843
857
  *
@@ -1850,61 +1864,6 @@ export class Api extends HttpClient {
1850
1864
  * @response `404` `ProblemDetails` Not Found
1851
1865
  */
1852
1866
  enableCustomFieldDefinition: (id, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}/enable`, method: "POST", secure: true }, params)),
1853
- /**
1854
- * No description
1855
- *
1856
- * @tags Devices
1857
- * @name GetDevices
1858
- * @summary Get All
1859
- * @request GET:/api/devices
1860
- * @secure
1861
- * @response `200` `DevicePaginated` OK
1862
- */
1863
- getDevices: (query, params = {}) => this.request(Object.assign({ path: `/api/devices`, method: "GET", query: query, secure: true, format: "json" }, params)),
1864
- /**
1865
- * No description
1866
- *
1867
- * @tags Devices
1868
- * @name GetDevice
1869
- * @summary Get by ID
1870
- * @request GET:/api/devices/{id}
1871
- * @secure
1872
- * @response `200` `Device` OK
1873
- */
1874
- getDevice: (id, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "GET", secure: true, format: "json" }, params)),
1875
- /**
1876
- * No description
1877
- *
1878
- * @tags Devices
1879
- * @name UpdateDevice
1880
- * @summary Update
1881
- * @request PUT:/api/devices/{id}
1882
- * @secure
1883
- * @response `200` `Device` OK
1884
- */
1885
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1886
- /**
1887
- * No description
1888
- *
1889
- * @tags Devices
1890
- * @name GetDeviceBySerialNumber
1891
- * @summary Get by Serial Number
1892
- * @request GET:/api/devices/{sn}/profile
1893
- * @secure
1894
- * @response `200` `DeviceMDM` OK
1895
- */
1896
- getDeviceBySerialNumber: (sn, params = {}) => this.request(Object.assign({ path: `/api/devices/${sn}/profile`, method: "GET", secure: true, format: "json" }, params)),
1897
- /**
1898
- * No description
1899
- *
1900
- * @tags Devices
1901
- * @name CreateDeviceActionBySerialNumber
1902
- * @summary Create Action by Serial Number
1903
- * @request POST:/api/devices/{sn}/actions/{actionName}
1904
- * @secure
1905
- * @response `200` `Action` OK
1906
- */
1907
- createDeviceActionBySerialNumber: (sn, actionName, params = {}) => this.request(Object.assign({ path: `/api/devices/${sn}/actions/${actionName}`, method: "POST", secure: true, format: "json" }, params)),
1908
1867
  /**
1909
1868
  * No description
1910
1869
  *
@@ -2723,17 +2682,6 @@ export class Api extends HttpClient {
2723
2682
  * @response `422` `UnprocessableEntity` Unprocessable Content
2724
2683
  */
2725
2684
  updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2726
- /**
2727
- * No description
2728
- *
2729
- * @tags LegacyLoan
2730
- * @name GetLoansReport
2731
- * @summary Get Report
2732
- * @request POST:/api/los/loan/reports
2733
- * @secure
2734
- * @response `200` `GetReport` OK
2735
- */
2736
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2737
2685
  /**
2738
2686
  * No description
2739
2687
  *