@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/src/index.ts CHANGED
@@ -491,21 +491,6 @@ export type LOSStatus =
491
491
  | "Uploaded"
492
492
  | "PendingSync";
493
493
 
494
- export type FilterType =
495
- | "DateGreaterThanOrEqualTo"
496
- | "DateGreaterThan"
497
- | "DateLessThan"
498
- | "DateLessThanOrEqualTo"
499
- | "DateEquals"
500
- | "DateDoesntEqual"
501
- | "DateNonEmpty"
502
- | "DateEmpty"
503
- | "StringContains"
504
- | "StringEquals"
505
- | "StringNotEmpty"
506
- | "StringNotEquals"
507
- | "StringNotContains";
508
-
509
494
  export type Environment = "Development" | "Staging" | "UAT" | "Production";
510
495
 
511
496
  export type EntityType =
@@ -785,17 +770,6 @@ export interface AccountSettingsRequest {
785
770
  isEarlyAdopter: boolean;
786
771
  }
787
772
 
788
- export interface Action {
789
- /** @format uuid */
790
- id: string;
791
- name: string;
792
- comments?: string | null;
793
- /** @format uuid */
794
- siteConfigurationID: string;
795
- applicationSettings?: any | null;
796
- surveysToken?: string | null;
797
- }
798
-
799
773
  export interface Address {
800
774
  /** @format uuid */
801
775
  id: string;
@@ -1347,6 +1321,38 @@ export interface AiPromptRunResult {
1347
1321
  confidence?: number | null;
1348
1322
  }
1349
1323
 
1324
+ export interface AiPromptRunRetry {
1325
+ dryRun: boolean;
1326
+ /** @format int32 */
1327
+ failedRuns: number;
1328
+ /** @format int32 */
1329
+ tasks: number;
1330
+ /** @format int32 */
1331
+ republished: number;
1332
+ /** @format int32 */
1333
+ skipped: number;
1334
+ /** @format int32 */
1335
+ remainingTasks: number;
1336
+ /** @format int32 */
1337
+ scheduledOverSeconds: number;
1338
+ items: AiPromptRunRetryItem[];
1339
+ }
1340
+
1341
+ export interface AiPromptRunRetryItem {
1342
+ /** @format uuid */
1343
+ accountId: string;
1344
+ /** @format uuid */
1345
+ subjectEntityId: string;
1346
+ /** @format uuid */
1347
+ loanId?: string | null;
1348
+ runIds: string[];
1349
+ /** @format date-time */
1350
+ lastFailedAt: string;
1351
+ /** @format int32 */
1352
+ delaySeconds: number;
1353
+ outcome: string;
1354
+ }
1355
+
1350
1356
  export interface AiPromptRunVerdictBackfill {
1351
1357
  /** @format int32 */
1352
1358
  updated: number;
@@ -2351,76 +2357,6 @@ export interface DetailedUser {
2351
2357
  hasExtendedLoanVisibility: boolean;
2352
2358
  }
2353
2359
 
2354
- export interface Device {
2355
- /** @format uuid */
2356
- id: string;
2357
- /** @format uuid */
2358
- accountID: string;
2359
- serialNumber: string;
2360
- apps: any;
2361
- /** @format uuid */
2362
- createdBy: string;
2363
- /** @format uuid */
2364
- updatedBy?: string | null;
2365
- /** @format uuid */
2366
- managedBy?: string | null;
2367
- name?: string | null;
2368
- type?: string | null;
2369
- status?: string | null;
2370
- comments?: string | null;
2371
- }
2372
-
2373
- export interface DeviceAction {
2374
- is_enabled: boolean;
2375
- localized_name?: string | null;
2376
- name?: string | null;
2377
- remarks?: string | null;
2378
- localized_action_info?: string | null;
2379
- status_code?: string | null;
2380
- action_info?: string | null;
2381
- localized_status_description?: string | null;
2382
- status_description?: string | null;
2383
- }
2384
-
2385
- export interface DeviceMDM {
2386
- managed_status?: string | null;
2387
- device_id?: string | null;
2388
- is_supervised: boolean;
2389
- os_version?: string | null;
2390
- is_lost_mode_enabled: boolean;
2391
- owned_by?: string | null;
2392
- is_removed?: string | null;
2393
- product_name?: string | null;
2394
- device_name?: string | null;
2395
- device_type?: string | null;
2396
- platform_type?: string | null;
2397
- wifi_mac?: string | null;
2398
- udid?: string | null;
2399
- serial_number?: string | null;
2400
- customer_name?: string | null;
2401
- customer_id?: string | null;
2402
- model?: string | null;
2403
- last_contact_time?: string | null;
2404
- platform_type_id?: string | null;
2405
- device_capacity?: string | null;
2406
- imei: string[];
2407
- user?: MdmUser | null;
2408
- actions?: DeviceAction[] | null;
2409
- }
2410
-
2411
- export interface DevicePaginated {
2412
- rows: Device[];
2413
- pagination: Pagination;
2414
- /** @format int64 */
2415
- count: number;
2416
- }
2417
-
2418
- export interface DeviceRequest {
2419
- apps: any;
2420
- name?: string | null;
2421
- comments?: string | null;
2422
- }
2423
-
2424
2360
  export interface DocumentDataRequest {
2425
2361
  documentID?: string | null;
2426
2362
  /** @format uuid */
@@ -3087,16 +3023,6 @@ export interface FormVersionUpdateRequest {
3087
3023
  id: string;
3088
3024
  }
3089
3025
 
3090
- export interface FusionFieldDisplay {
3091
- fieldValue: string;
3092
- }
3093
-
3094
- export interface FusionReportFilter {
3095
- filterType: FusionReportFilterFilterTypeEnum;
3096
- targetField: string;
3097
- targetValue: string;
3098
- }
3099
-
3100
3026
  export interface GenerateDocumentRequest {
3101
3027
  /** @format uuid */
3102
3028
  templateID: string;
@@ -3166,21 +3092,6 @@ export interface GetForm {
3166
3092
  id: string;
3167
3093
  }
3168
3094
 
3169
- export interface GetReport {
3170
- loanRecords: LoanRecord[];
3171
- invalidFieldIDs: string[];
3172
- }
3173
-
3174
- export interface GetReportRequest {
3175
- fields: FusionFieldDisplay[];
3176
- filters?: FusionReportFilter[] | null;
3177
- loanIDs?: string[] | null;
3178
- /** @format int32 */
3179
- startIndex?: number | null;
3180
- /** @format int32 */
3181
- limit?: number | null;
3182
- }
3183
-
3184
3095
  export interface GetSiteConfigurationByLOUserIDRequest {
3185
3096
  loUserID: string;
3186
3097
  }
@@ -5088,11 +4999,6 @@ export interface LoanRecommendation {
5088
4999
  detectedAt: string;
5089
5000
  }
5090
5001
 
5091
- export interface LoanRecord {
5092
- loanGuid: string;
5093
- loanFields: Record<string, string>;
5094
- }
5095
-
5096
5002
  export interface LoanRefinance {
5097
5003
  /** @format uuid */
5098
5004
  id?: string | null;
@@ -5562,12 +5468,6 @@ export interface MaterializeLoanRoleTasks {
5562
5468
  rowsAdded: number;
5563
5469
  }
5564
5470
 
5565
- export interface MdmUser {
5566
- user_email?: string | null;
5567
- user_id?: string | null;
5568
- user_name?: string | null;
5569
- }
5570
-
5571
5471
  export interface MilestoneConfiguration {
5572
5472
  /** @format date-time */
5573
5473
  createdAt: string;
@@ -8297,21 +8197,6 @@ export type EncompassWebhookSubscriptionWebhookTypeEnum =
8297
8197
  | "WebDocuments"
8298
8198
  | "PosfCreatePackage";
8299
8199
 
8300
- export type FusionReportFilterFilterTypeEnum =
8301
- | "DateGreaterThanOrEqualTo"
8302
- | "DateGreaterThan"
8303
- | "DateLessThan"
8304
- | "DateLessThanOrEqualTo"
8305
- | "DateEquals"
8306
- | "DateDoesntEqual"
8307
- | "DateNonEmpty"
8308
- | "DateEmpty"
8309
- | "StringContains"
8310
- | "StringEquals"
8311
- | "StringNotEmpty"
8312
- | "StringNotEquals"
8313
- | "StringNotContains";
8314
-
8315
8200
  export type GenerateSystemPromptRequestCategoryEnum =
8316
8201
  | "DocumentAnalysis"
8317
8202
  | "DataQuery"
@@ -10535,6 +10420,46 @@ export class Api<
10535
10420
  ...params,
10536
10421
  }),
10537
10422
 
10423
+ /**
10424
+ * No description
10425
+ *
10426
+ * @tags AiPromptRunAdmin
10427
+ * @name RetryFailedAiPromptRuns
10428
+ * @summary Republish the trigger for failed prompt runs so they run again, staggered by spacingSeconds (SuperAdmin)
10429
+ * @request POST:/api/ai/prompt-runs/retry-failed
10430
+ * @secure
10431
+ * @response `200` `AiPromptRunRetry` OK
10432
+ * @response `400` `ProblemDetails` Bad Request
10433
+ * @response `401` `ProblemDetails` Unauthorized
10434
+ * @response `403` `ProblemDetails` Forbidden
10435
+ */
10436
+ retryFailedAiPromptRuns: (
10437
+ query?: {
10438
+ /** @format uuid */
10439
+ accountId?: string;
10440
+ /** @format date-time */
10441
+ from?: string;
10442
+ /** @format date-time */
10443
+ to?: string;
10444
+ errorType?: string;
10445
+ dryRun?: boolean;
10446
+ /** @format int32 */
10447
+ spacingSeconds?: number;
10448
+ /** @format int32 */
10449
+ limit?: number;
10450
+ includeAlreadyRetried?: boolean;
10451
+ },
10452
+ params: RequestParams = {},
10453
+ ) =>
10454
+ this.request<AiPromptRunRetry, ProblemDetails>({
10455
+ path: `/api/ai/prompt-runs/retry-failed`,
10456
+ method: "POST",
10457
+ query: query,
10458
+ secure: true,
10459
+ format: "json",
10460
+ ...params,
10461
+ }),
10462
+
10538
10463
  /**
10539
10464
  * No description
10540
10465
  *
@@ -12547,124 +12472,6 @@ export class Api<
12547
12472
  ...params,
12548
12473
  }),
12549
12474
 
12550
- /**
12551
- * No description
12552
- *
12553
- * @tags Devices
12554
- * @name GetDevices
12555
- * @summary Get All
12556
- * @request GET:/api/devices
12557
- * @secure
12558
- * @response `200` `DevicePaginated` OK
12559
- */
12560
- getDevices: (
12561
- query?: {
12562
- /** @format uuid */
12563
- posAccountId?: string;
12564
- /** @format int32 */
12565
- pageSize?: number;
12566
- /** @format int32 */
12567
- pageNumber?: number;
12568
- sortBy?: string;
12569
- sortDirection?: string;
12570
- },
12571
- params: RequestParams = {},
12572
- ) =>
12573
- this.request<DevicePaginated, any>({
12574
- path: `/api/devices`,
12575
- method: "GET",
12576
- query: query,
12577
- secure: true,
12578
- format: "json",
12579
- ...params,
12580
- }),
12581
-
12582
- /**
12583
- * No description
12584
- *
12585
- * @tags Devices
12586
- * @name GetDevice
12587
- * @summary Get by ID
12588
- * @request GET:/api/devices/{id}
12589
- * @secure
12590
- * @response `200` `Device` OK
12591
- */
12592
- getDevice: (id: string, params: RequestParams = {}) =>
12593
- this.request<Device, any>({
12594
- path: `/api/devices/${id}`,
12595
- method: "GET",
12596
- secure: true,
12597
- format: "json",
12598
- ...params,
12599
- }),
12600
-
12601
- /**
12602
- * No description
12603
- *
12604
- * @tags Devices
12605
- * @name UpdateDevice
12606
- * @summary Update
12607
- * @request PUT:/api/devices/{id}
12608
- * @secure
12609
- * @response `200` `Device` OK
12610
- */
12611
- updateDevice: (
12612
- id: string,
12613
- data: DeviceRequest,
12614
- params: RequestParams = {},
12615
- ) =>
12616
- this.request<Device, any>({
12617
- path: `/api/devices/${id}`,
12618
- method: "PUT",
12619
- body: data,
12620
- secure: true,
12621
- type: "application/json",
12622
- format: "json",
12623
- ...params,
12624
- }),
12625
-
12626
- /**
12627
- * No description
12628
- *
12629
- * @tags Devices
12630
- * @name GetDeviceBySerialNumber
12631
- * @summary Get by Serial Number
12632
- * @request GET:/api/devices/{sn}/profile
12633
- * @secure
12634
- * @response `200` `DeviceMDM` OK
12635
- */
12636
- getDeviceBySerialNumber: (sn: string, params: RequestParams = {}) =>
12637
- this.request<DeviceMDM, any>({
12638
- path: `/api/devices/${sn}/profile`,
12639
- method: "GET",
12640
- secure: true,
12641
- format: "json",
12642
- ...params,
12643
- }),
12644
-
12645
- /**
12646
- * No description
12647
- *
12648
- * @tags Devices
12649
- * @name CreateDeviceActionBySerialNumber
12650
- * @summary Create Action by Serial Number
12651
- * @request POST:/api/devices/{sn}/actions/{actionName}
12652
- * @secure
12653
- * @response `200` `Action` OK
12654
- */
12655
- createDeviceActionBySerialNumber: (
12656
- sn: string,
12657
- actionName: string,
12658
- params: RequestParams = {},
12659
- ) =>
12660
- this.request<Action, any>({
12661
- path: `/api/devices/${sn}/actions/${actionName}`,
12662
- method: "POST",
12663
- secure: true,
12664
- format: "json",
12665
- ...params,
12666
- }),
12667
-
12668
12475
  /**
12669
12476
  * No description
12670
12477
  *
@@ -14363,27 +14170,6 @@ export class Api<
14363
14170
  ...params,
14364
14171
  }),
14365
14172
 
14366
- /**
14367
- * No description
14368
- *
14369
- * @tags LegacyLoan
14370
- * @name GetLoansReport
14371
- * @summary Get Report
14372
- * @request POST:/api/los/loan/reports
14373
- * @secure
14374
- * @response `200` `GetReport` OK
14375
- */
14376
- getLoansReport: (data: GetReportRequest, params: RequestParams = {}) =>
14377
- this.request<GetReport, any>({
14378
- path: `/api/los/loan/reports`,
14379
- method: "POST",
14380
- body: data,
14381
- secure: true,
14382
- type: "application/json",
14383
- format: "json",
14384
- ...params,
14385
- }),
14386
-
14387
14173
  /**
14388
14174
  * No description
14389
14175
  *