@cleardu/types 1.0.551 → 1.0.552

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.
@@ -82,6 +82,10 @@ export declare const BrokerMessages: {
82
82
  MIGRATE_CLIENT_PRODUCT_TYPE: string;
83
83
  GET_X_API_KEY: string;
84
84
  GET_X_API_KEY_BY_CLIENT_ID: string;
85
+ GET_LEGAL_PORTAL_API_KEY: string;
86
+ GET_LEGAL_PORTAL_API_KEY_BY_CLIENT_ID: string;
87
+ GENERATE_LEGAL_PORTAL_API_KEY: string;
88
+ GET_LEGAL_CLIENT_VIA_INTEGRATION: string;
85
89
  GET_META_ONBOARD_DETAILS_BY_CLIENT_UID: string;
86
90
  };
87
91
  CAMPAIGN: {
@@ -518,6 +522,10 @@ export declare const BrokerMessages: {
518
522
  DIALER_CAMPAIGN_DETAILS: string;
519
523
  GET_CAMPAIGN_USER_LEADS: string;
520
524
  };
525
+ LEGAL_PORTAL: {
526
+ GET_CLIENT: string;
527
+ GET_LOAN_TIMELINE: string;
528
+ };
521
529
  ENKASH: {
522
530
  GENERATE_PAYMENT_LINK: string;
523
531
  INIT: string;
@@ -662,6 +670,12 @@ export declare const BrokerMessages: {
662
670
  };
663
671
  MIGRATE_MESSAGE_FILES: string;
664
672
  };
673
+ NOTICE: {
674
+ VIEW_LINK: string;
675
+ TRACKING_LIST: string;
676
+ UPDATE: string;
677
+ TRACKING_BY_LEAD: string;
678
+ };
665
679
  MAIL: {
666
680
  SEND: string;
667
681
  };
@@ -85,6 +85,10 @@ exports.BrokerMessages = {
85
85
  MIGRATE_CLIENT_PRODUCT_TYPE: 'MIGRATE-CLIENT-PRODUCT-TYPE',
86
86
  GET_X_API_KEY: 'CRM-CLIENT-GET-X-API-KEY',
87
87
  GET_X_API_KEY_BY_CLIENT_ID: 'CRM-CLIENT-GET-X-API-KEY-BY-CLIENT-ID',
88
+ GET_LEGAL_PORTAL_API_KEY: 'CRM-CLIENT-GET-LEGAL-PORTAL-API-KEY',
89
+ GET_LEGAL_PORTAL_API_KEY_BY_CLIENT_ID: 'CRM-CLIENT-GET-LEGAL-PORTAL-API-KEY-BY-CLIENT-ID',
90
+ GENERATE_LEGAL_PORTAL_API_KEY: 'CRM-CLIENT-GENERATE-LEGAL-PORTAL-API-KEY',
91
+ GET_LEGAL_CLIENT_VIA_INTEGRATION: 'CRM-CLIENT-GET-LEGAL-CLIENT-VIA-INTEGRATION',
88
92
  GET_META_ONBOARD_DETAILS_BY_CLIENT_UID: 'CRM-CLIENT-GET-META-ONBOARD-DETAILS-BY-CLIENT-UID',
89
93
  },
90
94
  CAMPAIGN: {
@@ -521,6 +525,10 @@ exports.BrokerMessages = {
521
525
  DIALER_CAMPAIGN_DETAILS: 'DIALER-CAMPAIGN-DETAILS',
522
526
  GET_CAMPAIGN_USER_LEADS: 'GET-CAMPAIGN-USER-LEADS',
523
527
  },
528
+ LEGAL_PORTAL: {
529
+ GET_CLIENT: 'INTEGRATION-LEGAL-PORTAL-GET-CLIENT',
530
+ GET_LOAN_TIMELINE: 'INTEGRATION-LEGAL-PORTAL-GET-LOAN-TIMELINE',
531
+ },
524
532
  ENKASH: {
525
533
  GENERATE_PAYMENT_LINK: 'GENERATE-PAYMENT-LINK',
526
534
  INIT: 'PAYMENT-INITIATE',
@@ -665,6 +673,12 @@ exports.BrokerMessages = {
665
673
  },
666
674
  MIGRATE_MESSAGE_FILES: 'MIGRATE-MESSAGE-FILES',
667
675
  },
676
+ NOTICE: {
677
+ VIEW_LINK: 'NOTICE-VIEW-LINK',
678
+ TRACKING_LIST: 'NOTICE-TRACKING-LIST',
679
+ UPDATE: 'NOTICE-UPDATE',
680
+ TRACKING_BY_LEAD: 'NOTICE-TRACKING-BY-LEAD',
681
+ },
668
682
  MAIL: {
669
683
  SEND: 'MAIL-SEND',
670
684
  },
@@ -83,6 +83,12 @@ export const BrokerMessages = {
83
83
  MIGRATE_CLIENT_PRODUCT_TYPE: 'MIGRATE-CLIENT-PRODUCT-TYPE',
84
84
  GET_X_API_KEY: 'CRM-CLIENT-GET-X-API-KEY',
85
85
  GET_X_API_KEY_BY_CLIENT_ID: 'CRM-CLIENT-GET-X-API-KEY-BY-CLIENT-ID',
86
+ GET_LEGAL_PORTAL_API_KEY: 'CRM-CLIENT-GET-LEGAL-PORTAL-API-KEY',
87
+ GET_LEGAL_PORTAL_API_KEY_BY_CLIENT_ID:
88
+ 'CRM-CLIENT-GET-LEGAL-PORTAL-API-KEY-BY-CLIENT-ID',
89
+ GENERATE_LEGAL_PORTAL_API_KEY: 'CRM-CLIENT-GENERATE-LEGAL-PORTAL-API-KEY',
90
+ GET_LEGAL_CLIENT_VIA_INTEGRATION:
91
+ 'CRM-CLIENT-GET-LEGAL-CLIENT-VIA-INTEGRATION',
86
92
  GET_META_ONBOARD_DETAILS_BY_CLIENT_UID:
87
93
  'CRM-CLIENT-GET-META-ONBOARD-DETAILS-BY-CLIENT-UID',
88
94
  },
@@ -528,6 +534,10 @@ export const BrokerMessages = {
528
534
  DIALER_CAMPAIGN_DETAILS: 'DIALER-CAMPAIGN-DETAILS',
529
535
  GET_CAMPAIGN_USER_LEADS: 'GET-CAMPAIGN-USER-LEADS',
530
536
  },
537
+ LEGAL_PORTAL: {
538
+ GET_CLIENT: 'INTEGRATION-LEGAL-PORTAL-GET-CLIENT',
539
+ GET_LOAN_TIMELINE: 'INTEGRATION-LEGAL-PORTAL-GET-LOAN-TIMELINE',
540
+ },
531
541
  ENKASH: {
532
542
  GENERATE_PAYMENT_LINK: 'GENERATE-PAYMENT-LINK',
533
543
  INIT: 'PAYMENT-INITIATE',
@@ -673,6 +683,12 @@ export const BrokerMessages = {
673
683
  },
674
684
  MIGRATE_MESSAGE_FILES: 'MIGRATE-MESSAGE-FILES',
675
685
  },
686
+ NOTICE: {
687
+ VIEW_LINK: 'NOTICE-VIEW-LINK',
688
+ TRACKING_LIST: 'NOTICE-TRACKING-LIST',
689
+ UPDATE: 'NOTICE-UPDATE',
690
+ TRACKING_BY_LEAD: 'NOTICE-TRACKING-BY-LEAD',
691
+ },
676
692
  MAIL: {
677
693
  SEND: 'MAIL-SEND',
678
694
  },
@@ -17,6 +17,8 @@ export interface IClients extends DatabaseObject {
17
17
  apiKey?: string | null;
18
18
  metaOnboardDetails?: Record<string, unknown> | null;
19
19
  wabaAccounts?: IClientWabaAccountInput[];
20
+ /** Notice/legal portal — generate in Collection, paste into Legal */
21
+ legalPortalApiKey?: string | null;
20
22
  }
21
23
  export interface IClientResponse extends IClients {
22
24
  targets?: IClientTarget[];
@@ -41,6 +43,12 @@ export interface IClientTarget {
41
43
  export interface IClientGetXApiKeyByClientIdPayload {
42
44
  clientId: number;
43
45
  }
46
+ /** Legal notice portal API key (Collection ↔ Legal) */
47
+ export interface IClientLegalPortalApiKeyResponse {
48
+ legalPortalApiKey: string | null;
49
+ }
50
+ /** @deprecated Use IClientLegalPortalApiKeyResponse */
51
+ export type IClientApiKeyResponse = IClientLegalPortalApiKeyResponse;
44
52
  export interface IClientMetaOnboardDetailsPayload {
45
53
  clientUId: string;
46
54
  }
@@ -18,6 +18,8 @@ export interface IClients extends DatabaseObject {
18
18
  apiKey?: string | null;
19
19
  metaOnboardDetails?: Record<string, unknown> | null;
20
20
  wabaAccounts?: IClientWabaAccountInput[];
21
+ /** Notice/legal portal — generate in Collection, paste into Legal */
22
+ legalPortalApiKey?: string | null;
21
23
  }
22
24
 
23
25
  export interface IClientResponse extends IClients {
@@ -46,10 +48,17 @@ export interface IClientGetXApiKeyByClientIdPayload {
46
48
  clientId: number;
47
49
  }
48
50
 
51
+ /** Legal notice portal API key (Collection ↔ Legal) */
52
+ export interface IClientLegalPortalApiKeyResponse {
53
+ legalPortalApiKey: string | null;
54
+ }
55
+
56
+ /** @deprecated Use IClientLegalPortalApiKeyResponse */
57
+ export type IClientApiKeyResponse = IClientLegalPortalApiKeyResponse;
58
+
49
59
  export interface IClientMetaOnboardDetailsPayload {
50
60
  clientUId: string;
51
61
  }
52
-
53
62
  export interface IClientMetaOnboardDetailsRow {
54
63
  clientUId: string;
55
64
  clientId: number;
@@ -24,6 +24,7 @@ export * from './loanParticipants';
24
24
  export * from './loans';
25
25
  export * from './loginDetails';
26
26
  export * from './merchants';
27
+ export * from './notices';
27
28
  export * from './modules';
28
29
  export * from './payload';
29
30
  export * from './paymentAccounts';
@@ -80,6 +81,7 @@ export * from './autoCallingTempRecords';
80
81
  export * from './loanSummary';
81
82
  export * from './skipRecords';
82
83
  export * from './metaWhatsapp';
84
+ export * from './integration/legalPortal';
83
85
  import { ConnectionOptions, Dialect, ReplicationOptions } from 'sequelize/types';
84
86
  export interface DBConnection extends ConnectionOptions {
85
87
  host: string;
@@ -27,6 +27,7 @@ tslib_1.__exportStar(require("./loanParticipants"), exports);
27
27
  tslib_1.__exportStar(require("./loans"), exports);
28
28
  tslib_1.__exportStar(require("./loginDetails"), exports);
29
29
  tslib_1.__exportStar(require("./merchants"), exports);
30
+ tslib_1.__exportStar(require("./notices"), exports);
30
31
  tslib_1.__exportStar(require("./modules"), exports);
31
32
  tslib_1.__exportStar(require("./payload"), exports);
32
33
  tslib_1.__exportStar(require("./paymentAccounts"), exports);
@@ -83,3 +84,4 @@ tslib_1.__exportStar(require("./autoCallingTempRecords"), exports);
83
84
  tslib_1.__exportStar(require("./loanSummary"), exports);
84
85
  tslib_1.__exportStar(require("./skipRecords"), exports);
85
86
  tslib_1.__exportStar(require("./metaWhatsapp"), exports);
87
+ tslib_1.__exportStar(require("./integration/legalPortal"), exports);
@@ -24,6 +24,7 @@ export * from './loanParticipants';
24
24
  export * from './loans';
25
25
  export * from './loginDetails';
26
26
  export * from './merchants';
27
+ export * from './notices';
27
28
  export * from './modules';
28
29
  export * from './payload';
29
30
  export * from './paymentAccounts';
@@ -80,6 +81,7 @@ export * from './autoCallingTempRecords';
80
81
  export * from './loanSummary';
81
82
  export * from './skipRecords';
82
83
  export * from './metaWhatsapp';
84
+ export * from './integration/legalPortal';
83
85
 
84
86
  import {
85
87
  ConnectionOptions,
@@ -1 +1,2 @@
1
1
  export * from './ezsip';
2
+ export * from './legalPortal';
@@ -2,3 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./ezsip"), exports);
5
+ tslib_1.__exportStar(require("./legalPortal"), exports);
@@ -1 +1,2 @@
1
1
  export * from './ezsip';
2
+ export * from './legalPortal';
@@ -0,0 +1,40 @@
1
+ /** Collection client ref — integration-ms loads legalPortalApiKey from CRM clients table */
2
+ export interface ILegalPortalClientRefPayload {
3
+ uId?: string;
4
+ clientId?: number;
5
+ }
6
+ export interface ILegalPortalGetClientPayload extends ILegalPortalClientRefPayload {
7
+ legalClientId: number;
8
+ }
9
+ export interface ILegalPortalGetLoanTimelinePayload extends ILegalPortalClientRefPayload {
10
+ loanNumber: string;
11
+ }
12
+ /** Collection CRM-compatible communication timeline row */
13
+ export interface ILoanCommunicationTimelineRow {
14
+ id: number;
15
+ communicationType: string;
16
+ status: string | null;
17
+ message: string | null;
18
+ clickToAction: string | null;
19
+ createdAt: string;
20
+ comments: string | null;
21
+ dispositionName: string | null;
22
+ subDispositionName: string | null;
23
+ noticeViewLink?: string | null;
24
+ noticeDownloadLink?: string | null;
25
+ }
26
+ export interface ILoanNoticeTimelineResponse {
27
+ loanNumber: string;
28
+ leadId: string;
29
+ loanNumberFieldKey: string;
30
+ count: number;
31
+ rows: ILoanCommunicationTimelineRow[];
32
+ /** @deprecated Use rows — kept for older @cleardu/types consumers */
33
+ events?: ILoanCommunicationTimelineRow[];
34
+ }
35
+ /** @deprecated Use ILoanCommunicationTimelineRow */
36
+ export type ILoanNoticeTimelineEvent = ILoanCommunicationTimelineRow;
37
+ /** @deprecated Use ILegalPortalClientRefPayload */
38
+ export type ILegalPortalHealthPayload = ILegalPortalClientRefPayload;
39
+ /** @deprecated Use ILegalPortalClientRefPayload */
40
+ export type ILegalHelloPayload = ILegalPortalClientRefPayload;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,47 @@
1
+ /** Collection client ref — integration-ms loads legalPortalApiKey from CRM clients table */
2
+ export interface ILegalPortalClientRefPayload {
3
+ uId?: string;
4
+ clientId?: number;
5
+ }
6
+
7
+ export interface ILegalPortalGetClientPayload extends ILegalPortalClientRefPayload {
8
+ legalClientId: number;
9
+ }
10
+
11
+ export interface ILegalPortalGetLoanTimelinePayload extends ILegalPortalClientRefPayload {
12
+ loanNumber: string;
13
+ }
14
+
15
+ /** Collection CRM-compatible communication timeline row */
16
+ export interface ILoanCommunicationTimelineRow {
17
+ id: number;
18
+ communicationType: string;
19
+ status: string | null;
20
+ message: string | null;
21
+ clickToAction: string | null;
22
+ createdAt: string;
23
+ comments: string | null;
24
+ dispositionName: string | null;
25
+ subDispositionName: string | null;
26
+ noticeViewLink?: string | null;
27
+ noticeDownloadLink?: string | null;
28
+ }
29
+
30
+ export interface ILoanNoticeTimelineResponse {
31
+ loanNumber: string;
32
+ leadId: string;
33
+ loanNumberFieldKey: string;
34
+ count: number;
35
+ rows: ILoanCommunicationTimelineRow[];
36
+ /** @deprecated Use rows — kept for older @cleardu/types consumers */
37
+ events?: ILoanCommunicationTimelineRow[];
38
+ }
39
+
40
+ /** @deprecated Use ILoanCommunicationTimelineRow */
41
+ export type ILoanNoticeTimelineEvent = ILoanCommunicationTimelineRow;
42
+
43
+ /** @deprecated Use ILegalPortalClientRefPayload */
44
+ export type ILegalPortalHealthPayload = ILegalPortalClientRefPayload;
45
+
46
+ /** @deprecated Use ILegalPortalClientRefPayload */
47
+ export type ILegalHelloPayload = ILegalPortalClientRefPayload;
@@ -0,0 +1,41 @@
1
+ /** Notice module types (Collection notice portal — separate from Legal Collection integration) */
2
+ export type { ILegalPortalClientRefPayload, ILegalPortalGetClientPayload, ILegalPortalGetLoanTimelinePayload, ILoanCommunicationTimelineRow, ILoanNoticeTimelineResponse, } from '../integration/legalPortal';
3
+ /** @deprecated Use ILegalPortalGetClientPayload */
4
+ export type { ILegalPortalGetClientPayload as IIntegrationGetLegalClientPayload } from '../integration/legalPortal';
5
+ /** @deprecated Use ILegalPortalClientRefPayload — key resolved via clientId/uId in integration-ms */
6
+ export interface INoticeClientAuth {
7
+ legalPortalApiKey: string;
8
+ }
9
+ export interface INoticeViewLinkPayload {
10
+ ref: string;
11
+ ch?: string;
12
+ legalPortalApiKey?: string;
13
+ ipAddress?: string;
14
+ userAgent?: string;
15
+ acceptLanguage?: string;
16
+ referer?: string;
17
+ cookie?: string;
18
+ }
19
+ export interface INoticeViewLinkResponse {
20
+ redirectUrl: string;
21
+ }
22
+ export interface INoticeTrackingListPayload extends INoticeClientAuth, Record<string, unknown> {
23
+ isExport?: boolean;
24
+ type?: string;
25
+ status?: string;
26
+ method?: string;
27
+ jobId?: number;
28
+ templateId?: number;
29
+ noticeTypeId?: number;
30
+ courtType?: string;
31
+ trackingStatus?: string;
32
+ page?: number;
33
+ size?: number;
34
+ }
35
+ export interface INoticeUpdatePayload extends INoticeClientAuth {
36
+ id: number;
37
+ payload: Record<string, unknown>;
38
+ }
39
+ export interface INoticeTrackingByLeadPayload extends INoticeClientAuth {
40
+ leadId: string;
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,56 @@
1
+ /** Notice module types (Collection notice portal — separate from Legal Collection integration) */
2
+ export type {
3
+ ILegalPortalClientRefPayload,
4
+ ILegalPortalGetClientPayload,
5
+ ILegalPortalGetLoanTimelinePayload,
6
+ ILoanCommunicationTimelineRow,
7
+ ILoanNoticeTimelineResponse,
8
+ } from '../integration/legalPortal';
9
+
10
+ /** @deprecated Use ILegalPortalGetClientPayload */
11
+ export type { ILegalPortalGetClientPayload as IIntegrationGetLegalClientPayload } from '../integration/legalPortal';
12
+
13
+ /** @deprecated Use ILegalPortalClientRefPayload — key resolved via clientId/uId in integration-ms */
14
+ export interface INoticeClientAuth {
15
+ legalPortalApiKey: string;
16
+ }
17
+
18
+ export interface INoticeViewLinkPayload {
19
+ ref: string;
20
+ ch?: string;
21
+ legalPortalApiKey?: string;
22
+ ipAddress?: string;
23
+ userAgent?: string;
24
+ acceptLanguage?: string;
25
+ referer?: string;
26
+ cookie?: string;
27
+ }
28
+
29
+ export interface INoticeViewLinkResponse {
30
+ redirectUrl: string;
31
+ }
32
+
33
+ export interface INoticeTrackingListPayload
34
+ extends INoticeClientAuth,
35
+ Record<string, unknown> {
36
+ isExport?: boolean;
37
+ type?: string;
38
+ status?: string;
39
+ method?: string;
40
+ jobId?: number;
41
+ templateId?: number;
42
+ noticeTypeId?: number;
43
+ courtType?: string;
44
+ trackingStatus?: string;
45
+ page?: number;
46
+ size?: number;
47
+ }
48
+
49
+ export interface INoticeUpdatePayload extends INoticeClientAuth {
50
+ id: number;
51
+ payload: Record<string, unknown>;
52
+ }
53
+
54
+ export interface INoticeTrackingByLeadPayload extends INoticeClientAuth {
55
+ leadId: string;
56
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleardu/types",
3
- "version": "1.0.551",
3
+ "version": "1.0.552",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@aws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",