@cleardu/types 1.0.551 → 1.0.553
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/constants/brokerMessages/index.d.ts +17 -0
- package/constants/brokerMessages/index.js +17 -0
- package/constants/brokerMessages/index.ts +19 -0
- package/interfaces/clients/index.d.ts +7 -0
- package/interfaces/clients/index.ts +9 -1
- package/interfaces/index.d.ts +2 -0
- package/interfaces/index.js +2 -0
- package/interfaces/index.ts +2 -0
- package/interfaces/integration/index.d.ts +1 -0
- package/interfaces/integration/index.js +1 -0
- package/interfaces/integration/index.ts +1 -0
- package/interfaces/integration/legalPortal/index.d.ts +40 -0
- package/interfaces/integration/legalPortal/index.js +2 -0
- package/interfaces/integration/legalPortal/index.ts +47 -0
- package/interfaces/metaWhatsapp.d.ts +13 -10
- package/interfaces/metaWhatsapp.ts +14 -10
- package/interfaces/notices/index.d.ts +41 -0
- package/interfaces/notices/index.js +2 -0
- package/interfaces/notices/index.ts +56 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -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: {
|
|
@@ -464,6 +468,9 @@ export declare const BrokerMessages: {
|
|
|
464
468
|
UPDATE_ACCOUNT: string;
|
|
465
469
|
UPDATE_PHONE: string;
|
|
466
470
|
};
|
|
471
|
+
INTEGRATION: {
|
|
472
|
+
WABAS: string;
|
|
473
|
+
};
|
|
467
474
|
ONBOARDING: {
|
|
468
475
|
PERSIST_FACEBOOK_DETAILS: string;
|
|
469
476
|
};
|
|
@@ -518,6 +525,10 @@ export declare const BrokerMessages: {
|
|
|
518
525
|
DIALER_CAMPAIGN_DETAILS: string;
|
|
519
526
|
GET_CAMPAIGN_USER_LEADS: string;
|
|
520
527
|
};
|
|
528
|
+
LEGAL_PORTAL: {
|
|
529
|
+
GET_CLIENT: string;
|
|
530
|
+
GET_LOAN_TIMELINE: string;
|
|
531
|
+
};
|
|
521
532
|
ENKASH: {
|
|
522
533
|
GENERATE_PAYMENT_LINK: string;
|
|
523
534
|
INIT: string;
|
|
@@ -662,6 +673,12 @@ export declare const BrokerMessages: {
|
|
|
662
673
|
};
|
|
663
674
|
MIGRATE_MESSAGE_FILES: string;
|
|
664
675
|
};
|
|
676
|
+
NOTICE: {
|
|
677
|
+
VIEW_LINK: string;
|
|
678
|
+
TRACKING_LIST: string;
|
|
679
|
+
UPDATE: string;
|
|
680
|
+
TRACKING_BY_LEAD: string;
|
|
681
|
+
};
|
|
665
682
|
MAIL: {
|
|
666
683
|
SEND: string;
|
|
667
684
|
};
|
|
@@ -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: {
|
|
@@ -467,6 +471,9 @@ exports.BrokerMessages = {
|
|
|
467
471
|
UPDATE_ACCOUNT: 'CRM-WHATSAPP-META-WABA-UPDATE-ACCOUNT',
|
|
468
472
|
UPDATE_PHONE: 'CRM-WHATSAPP-META-WABA-UPDATE-PHONE',
|
|
469
473
|
},
|
|
474
|
+
INTEGRATION: {
|
|
475
|
+
WABAS: 'CRM-WHATSAPP-META-INTEGRATION-WABAS',
|
|
476
|
+
},
|
|
470
477
|
ONBOARDING: {
|
|
471
478
|
PERSIST_FACEBOOK_DETAILS: 'WHATSAPP-META-ONBOARDING-PERSIST-FACEBOOK-DETAILS',
|
|
472
479
|
},
|
|
@@ -521,6 +528,10 @@ exports.BrokerMessages = {
|
|
|
521
528
|
DIALER_CAMPAIGN_DETAILS: 'DIALER-CAMPAIGN-DETAILS',
|
|
522
529
|
GET_CAMPAIGN_USER_LEADS: 'GET-CAMPAIGN-USER-LEADS',
|
|
523
530
|
},
|
|
531
|
+
LEGAL_PORTAL: {
|
|
532
|
+
GET_CLIENT: 'INTEGRATION-LEGAL-PORTAL-GET-CLIENT',
|
|
533
|
+
GET_LOAN_TIMELINE: 'INTEGRATION-LEGAL-PORTAL-GET-LOAN-TIMELINE',
|
|
534
|
+
},
|
|
524
535
|
ENKASH: {
|
|
525
536
|
GENERATE_PAYMENT_LINK: 'GENERATE-PAYMENT-LINK',
|
|
526
537
|
INIT: 'PAYMENT-INITIATE',
|
|
@@ -665,6 +676,12 @@ exports.BrokerMessages = {
|
|
|
665
676
|
},
|
|
666
677
|
MIGRATE_MESSAGE_FILES: 'MIGRATE-MESSAGE-FILES',
|
|
667
678
|
},
|
|
679
|
+
NOTICE: {
|
|
680
|
+
VIEW_LINK: 'NOTICE-VIEW-LINK',
|
|
681
|
+
TRACKING_LIST: 'NOTICE-TRACKING-LIST',
|
|
682
|
+
UPDATE: 'NOTICE-UPDATE',
|
|
683
|
+
TRACKING_BY_LEAD: 'NOTICE-TRACKING-BY-LEAD',
|
|
684
|
+
},
|
|
668
685
|
MAIL: {
|
|
669
686
|
SEND: 'MAIL-SEND',
|
|
670
687
|
},
|
|
@@ -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
|
},
|
|
@@ -472,6 +478,9 @@ export const BrokerMessages = {
|
|
|
472
478
|
UPDATE_ACCOUNT: 'CRM-WHATSAPP-META-WABA-UPDATE-ACCOUNT',
|
|
473
479
|
UPDATE_PHONE: 'CRM-WHATSAPP-META-WABA-UPDATE-PHONE',
|
|
474
480
|
},
|
|
481
|
+
INTEGRATION: {
|
|
482
|
+
WABAS: 'CRM-WHATSAPP-META-INTEGRATION-WABAS',
|
|
483
|
+
},
|
|
475
484
|
ONBOARDING: {
|
|
476
485
|
PERSIST_FACEBOOK_DETAILS:
|
|
477
486
|
'WHATSAPP-META-ONBOARDING-PERSIST-FACEBOOK-DETAILS',
|
|
@@ -528,6 +537,10 @@ export const BrokerMessages = {
|
|
|
528
537
|
DIALER_CAMPAIGN_DETAILS: 'DIALER-CAMPAIGN-DETAILS',
|
|
529
538
|
GET_CAMPAIGN_USER_LEADS: 'GET-CAMPAIGN-USER-LEADS',
|
|
530
539
|
},
|
|
540
|
+
LEGAL_PORTAL: {
|
|
541
|
+
GET_CLIENT: 'INTEGRATION-LEGAL-PORTAL-GET-CLIENT',
|
|
542
|
+
GET_LOAN_TIMELINE: 'INTEGRATION-LEGAL-PORTAL-GET-LOAN-TIMELINE',
|
|
543
|
+
},
|
|
531
544
|
ENKASH: {
|
|
532
545
|
GENERATE_PAYMENT_LINK: 'GENERATE-PAYMENT-LINK',
|
|
533
546
|
INIT: 'PAYMENT-INITIATE',
|
|
@@ -673,6 +686,12 @@ export const BrokerMessages = {
|
|
|
673
686
|
},
|
|
674
687
|
MIGRATE_MESSAGE_FILES: 'MIGRATE-MESSAGE-FILES',
|
|
675
688
|
},
|
|
689
|
+
NOTICE: {
|
|
690
|
+
VIEW_LINK: 'NOTICE-VIEW-LINK',
|
|
691
|
+
TRACKING_LIST: 'NOTICE-TRACKING-LIST',
|
|
692
|
+
UPDATE: 'NOTICE-UPDATE',
|
|
693
|
+
TRACKING_BY_LEAD: 'NOTICE-TRACKING-BY-LEAD',
|
|
694
|
+
},
|
|
676
695
|
MAIL: {
|
|
677
696
|
SEND: 'MAIL-SEND',
|
|
678
697
|
},
|
|
@@ -17,6 +17,7 @@ export interface IClients extends DatabaseObject {
|
|
|
17
17
|
apiKey?: string | null;
|
|
18
18
|
metaOnboardDetails?: Record<string, unknown> | null;
|
|
19
19
|
wabaAccounts?: IClientWabaAccountInput[];
|
|
20
|
+
legalPortalApiKey?: string | null;
|
|
20
21
|
}
|
|
21
22
|
export interface IClientResponse extends IClients {
|
|
22
23
|
targets?: IClientTarget[];
|
|
@@ -41,6 +42,12 @@ export interface IClientTarget {
|
|
|
41
42
|
export interface IClientGetXApiKeyByClientIdPayload {
|
|
42
43
|
clientId: number;
|
|
43
44
|
}
|
|
45
|
+
/** Legal notice portal API key (Collection ↔ Legal) */
|
|
46
|
+
export interface IClientLegalPortalApiKeyResponse {
|
|
47
|
+
legalPortalApiKey: string | null;
|
|
48
|
+
}
|
|
49
|
+
/** @deprecated Use IClientLegalPortalApiKeyResponse */
|
|
50
|
+
export type IClientApiKeyResponse = IClientLegalPortalApiKeyResponse;
|
|
44
51
|
export interface IClientMetaOnboardDetailsPayload {
|
|
45
52
|
clientUId: string;
|
|
46
53
|
}
|
|
@@ -18,6 +18,7 @@ export interface IClients extends DatabaseObject {
|
|
|
18
18
|
apiKey?: string | null;
|
|
19
19
|
metaOnboardDetails?: Record<string, unknown> | null;
|
|
20
20
|
wabaAccounts?: IClientWabaAccountInput[];
|
|
21
|
+
legalPortalApiKey?: string | null;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export interface IClientResponse extends IClients {
|
|
@@ -46,10 +47,17 @@ export interface IClientGetXApiKeyByClientIdPayload {
|
|
|
46
47
|
clientId: number;
|
|
47
48
|
}
|
|
48
49
|
|
|
50
|
+
/** Legal notice portal API key (Collection ↔ Legal) */
|
|
51
|
+
export interface IClientLegalPortalApiKeyResponse {
|
|
52
|
+
legalPortalApiKey: string | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @deprecated Use IClientLegalPortalApiKeyResponse */
|
|
56
|
+
export type IClientApiKeyResponse = IClientLegalPortalApiKeyResponse;
|
|
57
|
+
|
|
49
58
|
export interface IClientMetaOnboardDetailsPayload {
|
|
50
59
|
clientUId: string;
|
|
51
60
|
}
|
|
52
|
-
|
|
53
61
|
export interface IClientMetaOnboardDetailsRow {
|
|
54
62
|
clientUId: string;
|
|
55
63
|
clientId: number;
|
package/interfaces/index.d.ts
CHANGED
|
@@ -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;
|
package/interfaces/index.js
CHANGED
|
@@ -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);
|
package/interfaces/index.ts
CHANGED
|
@@ -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,
|
|
@@ -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,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;
|
|
@@ -14,20 +14,23 @@ export interface IMetaWhatsappRequestPayload extends IMetaWhatsappTenantPayload
|
|
|
14
14
|
phoneNumberId?: string;
|
|
15
15
|
mediaId?: string;
|
|
16
16
|
}
|
|
17
|
+
/** WABA + phone fields returned from Meta Facebook onboarding (meta-ms). */
|
|
18
|
+
export interface IMetaOnboardingWabaInfo {
|
|
19
|
+
wabaId?: string;
|
|
20
|
+
phoneNumberId?: string;
|
|
21
|
+
phoneNumber?: string;
|
|
22
|
+
wabaName?: string;
|
|
23
|
+
verifiedPhoneName?: string;
|
|
24
|
+
businessId?: string;
|
|
25
|
+
tokenExpiresAt?: string;
|
|
26
|
+
isWebhookSubscribed?: boolean;
|
|
27
|
+
}
|
|
17
28
|
export interface IFacebookOnboardingResponse {
|
|
18
29
|
data?: {
|
|
19
30
|
user?: Record<string, any>;
|
|
20
31
|
isNewUser?: boolean;
|
|
21
|
-
metaClientInfo?:
|
|
22
|
-
|
|
23
|
-
phoneNumberId?: string;
|
|
24
|
-
phoneNumber?: string;
|
|
25
|
-
wabaName?: string;
|
|
26
|
-
verifiedPhoneName?: string;
|
|
27
|
-
businessId?: string;
|
|
28
|
-
tokenExpiresAt?: string;
|
|
29
|
-
isWebhookSubscribed?: boolean;
|
|
30
|
-
};
|
|
32
|
+
metaClientInfo?: IMetaOnboardingWabaInfo;
|
|
33
|
+
wabas?: IMetaOnboardingWabaInfo[];
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
export interface IMetaFacebookOnboardingPersistPayload {
|
|
@@ -17,20 +17,24 @@ export interface IMetaWhatsappRequestPayload
|
|
|
17
17
|
mediaId?: string;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/** WABA + phone fields returned from Meta Facebook onboarding (meta-ms). */
|
|
21
|
+
export interface IMetaOnboardingWabaInfo {
|
|
22
|
+
wabaId?: string;
|
|
23
|
+
phoneNumberId?: string;
|
|
24
|
+
phoneNumber?: string;
|
|
25
|
+
wabaName?: string;
|
|
26
|
+
verifiedPhoneName?: string;
|
|
27
|
+
businessId?: string;
|
|
28
|
+
tokenExpiresAt?: string;
|
|
29
|
+
isWebhookSubscribed?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
20
32
|
export interface IFacebookOnboardingResponse {
|
|
21
33
|
data?: {
|
|
22
34
|
user?: Record<string, any>;
|
|
23
35
|
isNewUser?: boolean;
|
|
24
|
-
metaClientInfo?:
|
|
25
|
-
|
|
26
|
-
phoneNumberId?: string;
|
|
27
|
-
phoneNumber?: string;
|
|
28
|
-
wabaName?: string;
|
|
29
|
-
verifiedPhoneName?: string;
|
|
30
|
-
businessId?: string;
|
|
31
|
-
tokenExpiresAt?: string;
|
|
32
|
-
isWebhookSubscribed?: boolean;
|
|
33
|
-
};
|
|
36
|
+
metaClientInfo?: IMetaOnboardingWabaInfo;
|
|
37
|
+
wabas?: IMetaOnboardingWabaInfo[];
|
|
34
38
|
};
|
|
35
39
|
}
|
|
36
40
|
|
|
@@ -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,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
|
+
}
|