@propxchain/core-client 0.2.1-canary.21 → 0.2.1-canary.22
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/package.json +1 -1
- package/src/canisters/document_storage/document_storage.did +159 -159
- package/src/canisters/document_storage/document_storage.did.d.ts +159 -159
- package/src/canisters/document_storage/document_storage.did.js +230 -230
- package/src/canisters/document_verification/document_verification.did +248 -248
- package/src/canisters/document_verification/document_verification.did.d.ts +236 -236
- package/src/canisters/document_verification/document_verification.did.js +299 -299
- package/src/canisters/email_service/email_service.did +86 -86
- package/src/canisters/email_service/email_service.did.d.ts +92 -92
- package/src/canisters/email_service/email_service.did.js +131 -131
- package/src/canisters/land_registry_integration/land_registry_integration.did +395 -395
- package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +331 -331
- package/src/canisters/land_registry_integration/land_registry_integration.did.js +384 -384
- package/src/canisters/ledger_manager/ledger_manager.did +232 -232
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +205 -205
- package/src/canisters/ledger_manager/ledger_manager.did.js +256 -256
- package/src/canisters/property_registry/property_registry.did.d.ts +71 -71
- package/src/canisters/user_management/user_management.did +297 -297
- package/src/canisters/user_management/user_management.did.d.ts +267 -267
- package/src/canisters/user_management/user_management.did.js +352 -352
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
type Result_1 =
|
|
2
|
-
variant {
|
|
3
|
-
err: text;
|
|
4
|
-
ok: nat;
|
|
5
|
-
};
|
|
6
|
-
type Result =
|
|
7
|
-
variant {
|
|
8
|
-
err: text;
|
|
9
|
-
ok: text;
|
|
10
|
-
};
|
|
11
|
-
type EmailNotification =
|
|
12
|
-
record {
|
|
13
|
-
company: opt text;
|
|
14
|
-
contactType: ContactType;
|
|
15
|
-
email: text;
|
|
16
|
-
id: nat;
|
|
17
|
-
lrNotificationType: opt text;
|
|
18
|
-
message: text;
|
|
19
|
-
name: text;
|
|
20
|
-
partnerType: opt text;
|
|
21
|
-
phone: opt text;
|
|
22
|
-
processed: bool;
|
|
23
|
-
propertyAddress: opt text;
|
|
24
|
-
subject: text;
|
|
25
|
-
timestamp: int;
|
|
26
|
-
titleNumber: opt text;
|
|
27
|
-
transactionId: opt text;
|
|
28
|
-
userType: opt text;
|
|
29
|
-
volume: opt text;
|
|
30
|
-
website: opt text;
|
|
31
|
-
};
|
|
32
|
-
type ContactType =
|
|
33
|
-
variant {
|
|
34
|
-
email_verification;
|
|
35
|
-
lr_application_registered;
|
|
36
|
-
lr_application_submitted;
|
|
37
|
-
lr_budget_alert;
|
|
38
|
-
lr_official_search_complete;
|
|
39
|
-
lr_requisition_raised;
|
|
40
|
-
lr_search_expiry_warning;
|
|
41
|
-
lr_status_change;
|
|
42
|
-
message_notification;
|
|
43
|
-
partners;
|
|
44
|
-
sales;
|
|
45
|
-
support;
|
|
46
|
-
};
|
|
47
|
-
service : {
|
|
48
|
-
checkAndSendExpiryWarnings: (daysThreshold: nat) -> (Result_1);
|
|
49
|
-
disableExpiryWarningTimer: () -> (Result);
|
|
50
|
-
enableExpiryWarningTimer: () -> (Result);
|
|
51
|
-
formatNotificationAsEmail: (id: nat) -> (opt text) query;
|
|
52
|
-
getAllNotifications: () -> (vec EmailNotification) query;
|
|
53
|
-
getCycles: () -> (nat) query;
|
|
54
|
-
getExpiryWarningStatus: () ->
|
|
55
|
-
(record {
|
|
56
|
-
lastCheckTime: int;
|
|
57
|
-
timerActive: bool;
|
|
58
|
-
}) query;
|
|
59
|
-
getLandRegistryNotifications: (txnId: text) ->
|
|
60
|
-
(vec EmailNotification) query;
|
|
61
|
-
getNotification: (id: nat) -> (opt EmailNotification) query;
|
|
62
|
-
getTransactionManagerCanister: () -> (text) query;
|
|
63
|
-
getUnprocessedCount: () -> (nat) query;
|
|
64
|
-
getUnprocessedLRNotifications: () -> (vec EmailNotification) query;
|
|
65
|
-
getUnprocessedNotifications: () -> (vec EmailNotification) query;
|
|
66
|
-
getUserManagementCanister: () -> (text) query;
|
|
67
|
-
markAsProcessed: (id: nat) -> (bool);
|
|
68
|
-
sendBudgetAlert: (recipientEmail: text, recipientName: text, currentSpend:
|
|
69
|
-
nat, budgetLimit: nat, percentUsed: nat) -> (nat);
|
|
70
|
-
sendLandRegistryNotification: (recipientEmail: text, recipientName:
|
|
71
|
-
text, notificationType: text, txnId: text, title: text, propAddress:
|
|
72
|
-
text, details: text) -> (nat);
|
|
73
|
-
setTransactionManagerCanister: (canisterId: text) -> (Result);
|
|
74
|
-
setUserManagementCanister: (canisterId: text) -> (Result);
|
|
75
|
-
submitEmailVerification: (name: text, email: text, verificationToken:
|
|
76
|
-
text) -> (nat);
|
|
77
|
-
submitMessageNotification: (recipientEmail: text, recipientName: text,
|
|
78
|
-
senderName: text, subject: text, messagePreview: text, threadId: text,
|
|
79
|
-
transactionId: text, propertyAddress: text, priority: text) -> (nat);
|
|
80
|
-
submitPartnerInquiry: (name: text, email: text, company: text, website:
|
|
81
|
-
text, partnerType: text, message: text) -> (nat);
|
|
82
|
-
submitSalesInquiry: (name: text, email: text, company: text, phone:
|
|
83
|
-
text, userType: text, volume: text, message: text) -> (nat);
|
|
84
|
-
submitSupportRequest: (name: text, email: text, subject: text, message:
|
|
85
|
-
text) -> (nat);
|
|
86
|
-
}
|
|
1
|
+
type Result_1 =
|
|
2
|
+
variant {
|
|
3
|
+
err: text;
|
|
4
|
+
ok: nat;
|
|
5
|
+
};
|
|
6
|
+
type Result =
|
|
7
|
+
variant {
|
|
8
|
+
err: text;
|
|
9
|
+
ok: text;
|
|
10
|
+
};
|
|
11
|
+
type EmailNotification =
|
|
12
|
+
record {
|
|
13
|
+
company: opt text;
|
|
14
|
+
contactType: ContactType;
|
|
15
|
+
email: text;
|
|
16
|
+
id: nat;
|
|
17
|
+
lrNotificationType: opt text;
|
|
18
|
+
message: text;
|
|
19
|
+
name: text;
|
|
20
|
+
partnerType: opt text;
|
|
21
|
+
phone: opt text;
|
|
22
|
+
processed: bool;
|
|
23
|
+
propertyAddress: opt text;
|
|
24
|
+
subject: text;
|
|
25
|
+
timestamp: int;
|
|
26
|
+
titleNumber: opt text;
|
|
27
|
+
transactionId: opt text;
|
|
28
|
+
userType: opt text;
|
|
29
|
+
volume: opt text;
|
|
30
|
+
website: opt text;
|
|
31
|
+
};
|
|
32
|
+
type ContactType =
|
|
33
|
+
variant {
|
|
34
|
+
email_verification;
|
|
35
|
+
lr_application_registered;
|
|
36
|
+
lr_application_submitted;
|
|
37
|
+
lr_budget_alert;
|
|
38
|
+
lr_official_search_complete;
|
|
39
|
+
lr_requisition_raised;
|
|
40
|
+
lr_search_expiry_warning;
|
|
41
|
+
lr_status_change;
|
|
42
|
+
message_notification;
|
|
43
|
+
partners;
|
|
44
|
+
sales;
|
|
45
|
+
support;
|
|
46
|
+
};
|
|
47
|
+
service : {
|
|
48
|
+
checkAndSendExpiryWarnings: (daysThreshold: nat) -> (Result_1);
|
|
49
|
+
disableExpiryWarningTimer: () -> (Result);
|
|
50
|
+
enableExpiryWarningTimer: () -> (Result);
|
|
51
|
+
formatNotificationAsEmail: (id: nat) -> (opt text) query;
|
|
52
|
+
getAllNotifications: () -> (vec EmailNotification) query;
|
|
53
|
+
getCycles: () -> (nat) query;
|
|
54
|
+
getExpiryWarningStatus: () ->
|
|
55
|
+
(record {
|
|
56
|
+
lastCheckTime: int;
|
|
57
|
+
timerActive: bool;
|
|
58
|
+
}) query;
|
|
59
|
+
getLandRegistryNotifications: (txnId: text) ->
|
|
60
|
+
(vec EmailNotification) query;
|
|
61
|
+
getNotification: (id: nat) -> (opt EmailNotification) query;
|
|
62
|
+
getTransactionManagerCanister: () -> (text) query;
|
|
63
|
+
getUnprocessedCount: () -> (nat) query;
|
|
64
|
+
getUnprocessedLRNotifications: () -> (vec EmailNotification) query;
|
|
65
|
+
getUnprocessedNotifications: () -> (vec EmailNotification) query;
|
|
66
|
+
getUserManagementCanister: () -> (text) query;
|
|
67
|
+
markAsProcessed: (id: nat) -> (bool);
|
|
68
|
+
sendBudgetAlert: (recipientEmail: text, recipientName: text, currentSpend:
|
|
69
|
+
nat, budgetLimit: nat, percentUsed: nat) -> (nat);
|
|
70
|
+
sendLandRegistryNotification: (recipientEmail: text, recipientName:
|
|
71
|
+
text, notificationType: text, txnId: text, title: text, propAddress:
|
|
72
|
+
text, details: text) -> (nat);
|
|
73
|
+
setTransactionManagerCanister: (canisterId: text) -> (Result);
|
|
74
|
+
setUserManagementCanister: (canisterId: text) -> (Result);
|
|
75
|
+
submitEmailVerification: (name: text, email: text, verificationToken:
|
|
76
|
+
text) -> (nat);
|
|
77
|
+
submitMessageNotification: (recipientEmail: text, recipientName: text,
|
|
78
|
+
senderName: text, subject: text, messagePreview: text, threadId: text,
|
|
79
|
+
transactionId: text, propertyAddress: text, priority: text) -> (nat);
|
|
80
|
+
submitPartnerInquiry: (name: text, email: text, company: text, website:
|
|
81
|
+
text, partnerType: text, message: text) -> (nat);
|
|
82
|
+
submitSalesInquiry: (name: text, email: text, company: text, phone:
|
|
83
|
+
text, userType: text, volume: text, message: text) -> (nat);
|
|
84
|
+
submitSupportRequest: (name: text, email: text, subject: text, message:
|
|
85
|
+
text) -> (nat);
|
|
86
|
+
}
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { ActorMethod } from '@dfinity/agent';
|
|
3
|
-
import type { IDL } from '@dfinity/candid';
|
|
4
|
-
|
|
5
|
-
export type ContactType = { 'lr_budget_alert' : null } |
|
|
6
|
-
{ 'lr_application_submitted' : null } |
|
|
7
|
-
{ 'message_notification' : null } |
|
|
8
|
-
{ 'support' : null } |
|
|
9
|
-
{ 'partners' : null } |
|
|
10
|
-
{ 'sales' : null } |
|
|
11
|
-
{ 'lr_search_expiry_warning' : null } |
|
|
12
|
-
{ 'email_verification' : null } |
|
|
13
|
-
{ 'lr_official_search_complete' : null } |
|
|
14
|
-
{ 'lr_requisition_raised' : null } |
|
|
15
|
-
{ 'lr_application_registered' : null } |
|
|
16
|
-
{ 'lr_status_change' : null };
|
|
17
|
-
export interface EmailNotification {
|
|
18
|
-
'id' : bigint,
|
|
19
|
-
'userType' : [] | [string],
|
|
20
|
-
'contactType' : ContactType,
|
|
21
|
-
'subject' : string,
|
|
22
|
-
'partnerType' : [] | [string],
|
|
23
|
-
'titleNumber' : [] | [string],
|
|
24
|
-
'name' : string,
|
|
25
|
-
'volume' : [] | [string],
|
|
26
|
-
'propertyAddress' : [] | [string],
|
|
27
|
-
'lrNotificationType' : [] | [string],
|
|
28
|
-
'email' : string,
|
|
29
|
-
'website' : [] | [string],
|
|
30
|
-
'company' : [] | [string],
|
|
31
|
-
'message' : string,
|
|
32
|
-
'timestamp' : bigint,
|
|
33
|
-
'phone' : [] | [string],
|
|
34
|
-
'processed' : boolean,
|
|
35
|
-
'transactionId' : [] | [string],
|
|
36
|
-
}
|
|
37
|
-
export type Result = { 'ok' : string } |
|
|
38
|
-
{ 'err' : string };
|
|
39
|
-
export type Result_1 = { 'ok' : bigint } |
|
|
40
|
-
{ 'err' : string };
|
|
41
|
-
export interface _SERVICE {
|
|
42
|
-
'checkAndSendExpiryWarnings' : ActorMethod<[bigint], Result_1>,
|
|
43
|
-
'disableExpiryWarningTimer' : ActorMethod<[], Result>,
|
|
44
|
-
'enableExpiryWarningTimer' : ActorMethod<[], Result>,
|
|
45
|
-
'formatNotificationAsEmail' : ActorMethod<[bigint], [] | [string]>,
|
|
46
|
-
'getAllNotifications' : ActorMethod<[], Array<EmailNotification>>,
|
|
47
|
-
'getCycles' : ActorMethod<[], bigint>,
|
|
48
|
-
'getExpiryWarningStatus' : ActorMethod<
|
|
49
|
-
[],
|
|
50
|
-
{ 'timerActive' : boolean, 'lastCheckTime' : bigint }
|
|
51
|
-
>,
|
|
52
|
-
'getLandRegistryNotifications' : ActorMethod<
|
|
53
|
-
[string],
|
|
54
|
-
Array<EmailNotification>
|
|
55
|
-
>,
|
|
56
|
-
'getNotification' : ActorMethod<[bigint], [] | [EmailNotification]>,
|
|
57
|
-
'getTransactionManagerCanister' : ActorMethod<[], string>,
|
|
58
|
-
'getUnprocessedCount' : ActorMethod<[], bigint>,
|
|
59
|
-
'getUnprocessedLRNotifications' : ActorMethod<[], Array<EmailNotification>>,
|
|
60
|
-
'getUnprocessedNotifications' : ActorMethod<[], Array<EmailNotification>>,
|
|
61
|
-
'getUserManagementCanister' : ActorMethod<[], string>,
|
|
62
|
-
'markAsProcessed' : ActorMethod<[bigint], boolean>,
|
|
63
|
-
'sendBudgetAlert' : ActorMethod<
|
|
64
|
-
[string, string, bigint, bigint, bigint],
|
|
65
|
-
bigint
|
|
66
|
-
>,
|
|
67
|
-
'sendLandRegistryNotification' : ActorMethod<
|
|
68
|
-
[string, string, string, string, string, string, string],
|
|
69
|
-
bigint
|
|
70
|
-
>,
|
|
71
|
-
'setTransactionManagerCanister' : ActorMethod<[string], Result>,
|
|
72
|
-
'setUserManagementCanister' : ActorMethod<[string], Result>,
|
|
73
|
-
'submitEmailVerification' : ActorMethod<[string, string, string], bigint>,
|
|
74
|
-
'submitMessageNotification' : ActorMethod<
|
|
75
|
-
[string, string, string, string, string, string, string, string, string],
|
|
76
|
-
bigint
|
|
77
|
-
>,
|
|
78
|
-
'submitPartnerInquiry' : ActorMethod<
|
|
79
|
-
[string, string, string, string, string, string],
|
|
80
|
-
bigint
|
|
81
|
-
>,
|
|
82
|
-
'submitSalesInquiry' : ActorMethod<
|
|
83
|
-
[string, string, string, string, string, string, string],
|
|
84
|
-
bigint
|
|
85
|
-
>,
|
|
86
|
-
'submitSupportRequest' : ActorMethod<
|
|
87
|
-
[string, string, string, string],
|
|
88
|
-
bigint
|
|
89
|
-
>,
|
|
90
|
-
}
|
|
91
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
92
|
-
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
1
|
+
import type { Principal } from '@dfinity/principal';
|
|
2
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
3
|
+
import type { IDL } from '@dfinity/candid';
|
|
4
|
+
|
|
5
|
+
export type ContactType = { 'lr_budget_alert' : null } |
|
|
6
|
+
{ 'lr_application_submitted' : null } |
|
|
7
|
+
{ 'message_notification' : null } |
|
|
8
|
+
{ 'support' : null } |
|
|
9
|
+
{ 'partners' : null } |
|
|
10
|
+
{ 'sales' : null } |
|
|
11
|
+
{ 'lr_search_expiry_warning' : null } |
|
|
12
|
+
{ 'email_verification' : null } |
|
|
13
|
+
{ 'lr_official_search_complete' : null } |
|
|
14
|
+
{ 'lr_requisition_raised' : null } |
|
|
15
|
+
{ 'lr_application_registered' : null } |
|
|
16
|
+
{ 'lr_status_change' : null };
|
|
17
|
+
export interface EmailNotification {
|
|
18
|
+
'id' : bigint,
|
|
19
|
+
'userType' : [] | [string],
|
|
20
|
+
'contactType' : ContactType,
|
|
21
|
+
'subject' : string,
|
|
22
|
+
'partnerType' : [] | [string],
|
|
23
|
+
'titleNumber' : [] | [string],
|
|
24
|
+
'name' : string,
|
|
25
|
+
'volume' : [] | [string],
|
|
26
|
+
'propertyAddress' : [] | [string],
|
|
27
|
+
'lrNotificationType' : [] | [string],
|
|
28
|
+
'email' : string,
|
|
29
|
+
'website' : [] | [string],
|
|
30
|
+
'company' : [] | [string],
|
|
31
|
+
'message' : string,
|
|
32
|
+
'timestamp' : bigint,
|
|
33
|
+
'phone' : [] | [string],
|
|
34
|
+
'processed' : boolean,
|
|
35
|
+
'transactionId' : [] | [string],
|
|
36
|
+
}
|
|
37
|
+
export type Result = { 'ok' : string } |
|
|
38
|
+
{ 'err' : string };
|
|
39
|
+
export type Result_1 = { 'ok' : bigint } |
|
|
40
|
+
{ 'err' : string };
|
|
41
|
+
export interface _SERVICE {
|
|
42
|
+
'checkAndSendExpiryWarnings' : ActorMethod<[bigint], Result_1>,
|
|
43
|
+
'disableExpiryWarningTimer' : ActorMethod<[], Result>,
|
|
44
|
+
'enableExpiryWarningTimer' : ActorMethod<[], Result>,
|
|
45
|
+
'formatNotificationAsEmail' : ActorMethod<[bigint], [] | [string]>,
|
|
46
|
+
'getAllNotifications' : ActorMethod<[], Array<EmailNotification>>,
|
|
47
|
+
'getCycles' : ActorMethod<[], bigint>,
|
|
48
|
+
'getExpiryWarningStatus' : ActorMethod<
|
|
49
|
+
[],
|
|
50
|
+
{ 'timerActive' : boolean, 'lastCheckTime' : bigint }
|
|
51
|
+
>,
|
|
52
|
+
'getLandRegistryNotifications' : ActorMethod<
|
|
53
|
+
[string],
|
|
54
|
+
Array<EmailNotification>
|
|
55
|
+
>,
|
|
56
|
+
'getNotification' : ActorMethod<[bigint], [] | [EmailNotification]>,
|
|
57
|
+
'getTransactionManagerCanister' : ActorMethod<[], string>,
|
|
58
|
+
'getUnprocessedCount' : ActorMethod<[], bigint>,
|
|
59
|
+
'getUnprocessedLRNotifications' : ActorMethod<[], Array<EmailNotification>>,
|
|
60
|
+
'getUnprocessedNotifications' : ActorMethod<[], Array<EmailNotification>>,
|
|
61
|
+
'getUserManagementCanister' : ActorMethod<[], string>,
|
|
62
|
+
'markAsProcessed' : ActorMethod<[bigint], boolean>,
|
|
63
|
+
'sendBudgetAlert' : ActorMethod<
|
|
64
|
+
[string, string, bigint, bigint, bigint],
|
|
65
|
+
bigint
|
|
66
|
+
>,
|
|
67
|
+
'sendLandRegistryNotification' : ActorMethod<
|
|
68
|
+
[string, string, string, string, string, string, string],
|
|
69
|
+
bigint
|
|
70
|
+
>,
|
|
71
|
+
'setTransactionManagerCanister' : ActorMethod<[string], Result>,
|
|
72
|
+
'setUserManagementCanister' : ActorMethod<[string], Result>,
|
|
73
|
+
'submitEmailVerification' : ActorMethod<[string, string, string], bigint>,
|
|
74
|
+
'submitMessageNotification' : ActorMethod<
|
|
75
|
+
[string, string, string, string, string, string, string, string, string],
|
|
76
|
+
bigint
|
|
77
|
+
>,
|
|
78
|
+
'submitPartnerInquiry' : ActorMethod<
|
|
79
|
+
[string, string, string, string, string, string],
|
|
80
|
+
bigint
|
|
81
|
+
>,
|
|
82
|
+
'submitSalesInquiry' : ActorMethod<
|
|
83
|
+
[string, string, string, string, string, string, string],
|
|
84
|
+
bigint
|
|
85
|
+
>,
|
|
86
|
+
'submitSupportRequest' : ActorMethod<
|
|
87
|
+
[string, string, string, string],
|
|
88
|
+
bigint
|
|
89
|
+
>,
|
|
90
|
+
}
|
|
91
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
92
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
export const idlFactory = ({ IDL }) => {
|
|
2
|
-
const Result_1 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
|
|
3
|
-
const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
|
|
4
|
-
const ContactType = IDL.Variant({
|
|
5
|
-
'lr_budget_alert' : IDL.Null,
|
|
6
|
-
'lr_application_submitted' : IDL.Null,
|
|
7
|
-
'message_notification' : IDL.Null,
|
|
8
|
-
'support' : IDL.Null,
|
|
9
|
-
'partners' : IDL.Null,
|
|
10
|
-
'sales' : IDL.Null,
|
|
11
|
-
'lr_search_expiry_warning' : IDL.Null,
|
|
12
|
-
'email_verification' : IDL.Null,
|
|
13
|
-
'lr_official_search_complete' : IDL.Null,
|
|
14
|
-
'lr_requisition_raised' : IDL.Null,
|
|
15
|
-
'lr_application_registered' : IDL.Null,
|
|
16
|
-
'lr_status_change' : IDL.Null,
|
|
17
|
-
});
|
|
18
|
-
const EmailNotification = IDL.Record({
|
|
19
|
-
'id' : IDL.Nat,
|
|
20
|
-
'userType' : IDL.Opt(IDL.Text),
|
|
21
|
-
'contactType' : ContactType,
|
|
22
|
-
'subject' : IDL.Text,
|
|
23
|
-
'partnerType' : IDL.Opt(IDL.Text),
|
|
24
|
-
'titleNumber' : IDL.Opt(IDL.Text),
|
|
25
|
-
'name' : IDL.Text,
|
|
26
|
-
'volume' : IDL.Opt(IDL.Text),
|
|
27
|
-
'propertyAddress' : IDL.Opt(IDL.Text),
|
|
28
|
-
'lrNotificationType' : IDL.Opt(IDL.Text),
|
|
29
|
-
'email' : IDL.Text,
|
|
30
|
-
'website' : IDL.Opt(IDL.Text),
|
|
31
|
-
'company' : IDL.Opt(IDL.Text),
|
|
32
|
-
'message' : IDL.Text,
|
|
33
|
-
'timestamp' : IDL.Int,
|
|
34
|
-
'phone' : IDL.Opt(IDL.Text),
|
|
35
|
-
'processed' : IDL.Bool,
|
|
36
|
-
'transactionId' : IDL.Opt(IDL.Text),
|
|
37
|
-
});
|
|
38
|
-
return IDL.Service({
|
|
39
|
-
'checkAndSendExpiryWarnings' : IDL.Func([IDL.Nat], [Result_1], []),
|
|
40
|
-
'disableExpiryWarningTimer' : IDL.Func([], [Result], []),
|
|
41
|
-
'enableExpiryWarningTimer' : IDL.Func([], [Result], []),
|
|
42
|
-
'formatNotificationAsEmail' : IDL.Func(
|
|
43
|
-
[IDL.Nat],
|
|
44
|
-
[IDL.Opt(IDL.Text)],
|
|
45
|
-
['query'],
|
|
46
|
-
),
|
|
47
|
-
'getAllNotifications' : IDL.Func(
|
|
48
|
-
[],
|
|
49
|
-
[IDL.Vec(EmailNotification)],
|
|
50
|
-
['query'],
|
|
51
|
-
),
|
|
52
|
-
'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
|
|
53
|
-
'getExpiryWarningStatus' : IDL.Func(
|
|
54
|
-
[],
|
|
55
|
-
[IDL.Record({ 'timerActive' : IDL.Bool, 'lastCheckTime' : IDL.Int })],
|
|
56
|
-
['query'],
|
|
57
|
-
),
|
|
58
|
-
'getLandRegistryNotifications' : IDL.Func(
|
|
59
|
-
[IDL.Text],
|
|
60
|
-
[IDL.Vec(EmailNotification)],
|
|
61
|
-
['query'],
|
|
62
|
-
),
|
|
63
|
-
'getNotification' : IDL.Func(
|
|
64
|
-
[IDL.Nat],
|
|
65
|
-
[IDL.Opt(EmailNotification)],
|
|
66
|
-
['query'],
|
|
67
|
-
),
|
|
68
|
-
'getTransactionManagerCanister' : IDL.Func([], [IDL.Text], ['query']),
|
|
69
|
-
'getUnprocessedCount' : IDL.Func([], [IDL.Nat], ['query']),
|
|
70
|
-
'getUnprocessedLRNotifications' : IDL.Func(
|
|
71
|
-
[],
|
|
72
|
-
[IDL.Vec(EmailNotification)],
|
|
73
|
-
['query'],
|
|
74
|
-
),
|
|
75
|
-
'getUnprocessedNotifications' : IDL.Func(
|
|
76
|
-
[],
|
|
77
|
-
[IDL.Vec(EmailNotification)],
|
|
78
|
-
['query'],
|
|
79
|
-
),
|
|
80
|
-
'getUserManagementCanister' : IDL.Func([], [IDL.Text], ['query']),
|
|
81
|
-
'markAsProcessed' : IDL.Func([IDL.Nat], [IDL.Bool], []),
|
|
82
|
-
'sendBudgetAlert' : IDL.Func(
|
|
83
|
-
[IDL.Text, IDL.Text, IDL.Nat, IDL.Nat, IDL.Nat],
|
|
84
|
-
[IDL.Nat],
|
|
85
|
-
[],
|
|
86
|
-
),
|
|
87
|
-
'sendLandRegistryNotification' : IDL.Func(
|
|
88
|
-
[IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
89
|
-
[IDL.Nat],
|
|
90
|
-
[],
|
|
91
|
-
),
|
|
92
|
-
'setTransactionManagerCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
93
|
-
'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
94
|
-
'submitEmailVerification' : IDL.Func(
|
|
95
|
-
[IDL.Text, IDL.Text, IDL.Text],
|
|
96
|
-
[IDL.Nat],
|
|
97
|
-
[],
|
|
98
|
-
),
|
|
99
|
-
'submitMessageNotification' : IDL.Func(
|
|
100
|
-
[
|
|
101
|
-
IDL.Text,
|
|
102
|
-
IDL.Text,
|
|
103
|
-
IDL.Text,
|
|
104
|
-
IDL.Text,
|
|
105
|
-
IDL.Text,
|
|
106
|
-
IDL.Text,
|
|
107
|
-
IDL.Text,
|
|
108
|
-
IDL.Text,
|
|
109
|
-
IDL.Text,
|
|
110
|
-
],
|
|
111
|
-
[IDL.Nat],
|
|
112
|
-
[],
|
|
113
|
-
),
|
|
114
|
-
'submitPartnerInquiry' : IDL.Func(
|
|
115
|
-
[IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
116
|
-
[IDL.Nat],
|
|
117
|
-
[],
|
|
118
|
-
),
|
|
119
|
-
'submitSalesInquiry' : IDL.Func(
|
|
120
|
-
[IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
121
|
-
[IDL.Nat],
|
|
122
|
-
[],
|
|
123
|
-
),
|
|
124
|
-
'submitSupportRequest' : IDL.Func(
|
|
125
|
-
[IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
126
|
-
[IDL.Nat],
|
|
127
|
-
[],
|
|
128
|
-
),
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
export const init = ({ IDL }) => { return []; };
|
|
1
|
+
export const idlFactory = ({ IDL }) => {
|
|
2
|
+
const Result_1 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
|
|
3
|
+
const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
|
|
4
|
+
const ContactType = IDL.Variant({
|
|
5
|
+
'lr_budget_alert' : IDL.Null,
|
|
6
|
+
'lr_application_submitted' : IDL.Null,
|
|
7
|
+
'message_notification' : IDL.Null,
|
|
8
|
+
'support' : IDL.Null,
|
|
9
|
+
'partners' : IDL.Null,
|
|
10
|
+
'sales' : IDL.Null,
|
|
11
|
+
'lr_search_expiry_warning' : IDL.Null,
|
|
12
|
+
'email_verification' : IDL.Null,
|
|
13
|
+
'lr_official_search_complete' : IDL.Null,
|
|
14
|
+
'lr_requisition_raised' : IDL.Null,
|
|
15
|
+
'lr_application_registered' : IDL.Null,
|
|
16
|
+
'lr_status_change' : IDL.Null,
|
|
17
|
+
});
|
|
18
|
+
const EmailNotification = IDL.Record({
|
|
19
|
+
'id' : IDL.Nat,
|
|
20
|
+
'userType' : IDL.Opt(IDL.Text),
|
|
21
|
+
'contactType' : ContactType,
|
|
22
|
+
'subject' : IDL.Text,
|
|
23
|
+
'partnerType' : IDL.Opt(IDL.Text),
|
|
24
|
+
'titleNumber' : IDL.Opt(IDL.Text),
|
|
25
|
+
'name' : IDL.Text,
|
|
26
|
+
'volume' : IDL.Opt(IDL.Text),
|
|
27
|
+
'propertyAddress' : IDL.Opt(IDL.Text),
|
|
28
|
+
'lrNotificationType' : IDL.Opt(IDL.Text),
|
|
29
|
+
'email' : IDL.Text,
|
|
30
|
+
'website' : IDL.Opt(IDL.Text),
|
|
31
|
+
'company' : IDL.Opt(IDL.Text),
|
|
32
|
+
'message' : IDL.Text,
|
|
33
|
+
'timestamp' : IDL.Int,
|
|
34
|
+
'phone' : IDL.Opt(IDL.Text),
|
|
35
|
+
'processed' : IDL.Bool,
|
|
36
|
+
'transactionId' : IDL.Opt(IDL.Text),
|
|
37
|
+
});
|
|
38
|
+
return IDL.Service({
|
|
39
|
+
'checkAndSendExpiryWarnings' : IDL.Func([IDL.Nat], [Result_1], []),
|
|
40
|
+
'disableExpiryWarningTimer' : IDL.Func([], [Result], []),
|
|
41
|
+
'enableExpiryWarningTimer' : IDL.Func([], [Result], []),
|
|
42
|
+
'formatNotificationAsEmail' : IDL.Func(
|
|
43
|
+
[IDL.Nat],
|
|
44
|
+
[IDL.Opt(IDL.Text)],
|
|
45
|
+
['query'],
|
|
46
|
+
),
|
|
47
|
+
'getAllNotifications' : IDL.Func(
|
|
48
|
+
[],
|
|
49
|
+
[IDL.Vec(EmailNotification)],
|
|
50
|
+
['query'],
|
|
51
|
+
),
|
|
52
|
+
'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
|
|
53
|
+
'getExpiryWarningStatus' : IDL.Func(
|
|
54
|
+
[],
|
|
55
|
+
[IDL.Record({ 'timerActive' : IDL.Bool, 'lastCheckTime' : IDL.Int })],
|
|
56
|
+
['query'],
|
|
57
|
+
),
|
|
58
|
+
'getLandRegistryNotifications' : IDL.Func(
|
|
59
|
+
[IDL.Text],
|
|
60
|
+
[IDL.Vec(EmailNotification)],
|
|
61
|
+
['query'],
|
|
62
|
+
),
|
|
63
|
+
'getNotification' : IDL.Func(
|
|
64
|
+
[IDL.Nat],
|
|
65
|
+
[IDL.Opt(EmailNotification)],
|
|
66
|
+
['query'],
|
|
67
|
+
),
|
|
68
|
+
'getTransactionManagerCanister' : IDL.Func([], [IDL.Text], ['query']),
|
|
69
|
+
'getUnprocessedCount' : IDL.Func([], [IDL.Nat], ['query']),
|
|
70
|
+
'getUnprocessedLRNotifications' : IDL.Func(
|
|
71
|
+
[],
|
|
72
|
+
[IDL.Vec(EmailNotification)],
|
|
73
|
+
['query'],
|
|
74
|
+
),
|
|
75
|
+
'getUnprocessedNotifications' : IDL.Func(
|
|
76
|
+
[],
|
|
77
|
+
[IDL.Vec(EmailNotification)],
|
|
78
|
+
['query'],
|
|
79
|
+
),
|
|
80
|
+
'getUserManagementCanister' : IDL.Func([], [IDL.Text], ['query']),
|
|
81
|
+
'markAsProcessed' : IDL.Func([IDL.Nat], [IDL.Bool], []),
|
|
82
|
+
'sendBudgetAlert' : IDL.Func(
|
|
83
|
+
[IDL.Text, IDL.Text, IDL.Nat, IDL.Nat, IDL.Nat],
|
|
84
|
+
[IDL.Nat],
|
|
85
|
+
[],
|
|
86
|
+
),
|
|
87
|
+
'sendLandRegistryNotification' : IDL.Func(
|
|
88
|
+
[IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
89
|
+
[IDL.Nat],
|
|
90
|
+
[],
|
|
91
|
+
),
|
|
92
|
+
'setTransactionManagerCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
93
|
+
'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
94
|
+
'submitEmailVerification' : IDL.Func(
|
|
95
|
+
[IDL.Text, IDL.Text, IDL.Text],
|
|
96
|
+
[IDL.Nat],
|
|
97
|
+
[],
|
|
98
|
+
),
|
|
99
|
+
'submitMessageNotification' : IDL.Func(
|
|
100
|
+
[
|
|
101
|
+
IDL.Text,
|
|
102
|
+
IDL.Text,
|
|
103
|
+
IDL.Text,
|
|
104
|
+
IDL.Text,
|
|
105
|
+
IDL.Text,
|
|
106
|
+
IDL.Text,
|
|
107
|
+
IDL.Text,
|
|
108
|
+
IDL.Text,
|
|
109
|
+
IDL.Text,
|
|
110
|
+
],
|
|
111
|
+
[IDL.Nat],
|
|
112
|
+
[],
|
|
113
|
+
),
|
|
114
|
+
'submitPartnerInquiry' : IDL.Func(
|
|
115
|
+
[IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
116
|
+
[IDL.Nat],
|
|
117
|
+
[],
|
|
118
|
+
),
|
|
119
|
+
'submitSalesInquiry' : IDL.Func(
|
|
120
|
+
[IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
121
|
+
[IDL.Nat],
|
|
122
|
+
[],
|
|
123
|
+
),
|
|
124
|
+
'submitSupportRequest' : IDL.Func(
|
|
125
|
+
[IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
126
|
+
[IDL.Nat],
|
|
127
|
+
[],
|
|
128
|
+
),
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
export const init = ({ IDL }) => { return []; };
|