@propxchain/core-client 0.3.0 → 0.5.0-canary.42
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/canisters/document_storage/document_storage.did.d.ts +169 -7
- package/dist/canisters/document_storage/document_storage.did.js +237 -148
- package/dist/canisters/document_verification/document_verification.did.d.ts +248 -7
- package/dist/canisters/document_verification/document_verification.did.js +322 -231
- package/dist/canisters/email_service/email_service.did.d.ts +92 -7
- package/dist/canisters/email_service/email_service.did.js +128 -73
- package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts +227 -7
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js +264 -315
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +215 -7
- package/dist/canisters/ledger_manager/ledger_manager.did.js +262 -198
- package/dist/canisters/property_registry/property_registry.did.d.ts +77 -7
- package/dist/canisters/property_registry/property_registry.did.js +84 -57
- package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +960 -7
- package/dist/canisters/transaction_manager/transaction_manager.did.js +1081 -867
- package/dist/canisters/user_management/user_management.did.d.ts +314 -7
- package/dist/canisters/user_management/user_management.did.js +420 -254
- package/dist/jurisdiction.d.ts +50 -0
- package/dist/jurisdiction.d.ts.map +1 -0
- package/dist/jurisdiction.js +109 -0
- package/dist/jurisdiction.js.map +1 -0
- package/dist/mock.js +1 -1
- package/package.json +6 -2
- package/src/canisters/document_storage/document_storage.did +32 -21
- package/src/canisters/document_storage/document_storage.did.d.ts +34 -24
- package/src/canisters/document_storage/document_storage.did.js +31 -21
- package/src/canisters/document_verification/document_verification.did +6 -6
- package/src/canisters/document_verification/document_verification.did.d.ts +12 -12
- package/src/canisters/document_verification/document_verification.did.js +28 -28
- package/src/canisters/email_service/email_service.did.d.ts +3 -3
- package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +3 -3
- package/src/canisters/land_registry_integration/land_registry_integration.did.js +23 -139
- package/src/canisters/ledger_manager/ledger_manager.did +2 -1
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +4 -3
- package/src/canisters/ledger_manager/ledger_manager.did.js +2 -5
- package/src/canisters/property_registry/property_registry.did +7 -3
- package/src/canisters/property_registry/property_registry.did.d.ts +10 -6
- package/src/canisters/property_registry/property_registry.did.js +12 -4
- package/src/canisters/transaction_manager/transaction_manager.did +104 -44
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +93 -43
- package/src/canisters/transaction_manager/transaction_manager.did.js +117 -38
- package/src/canisters/user_management/user_management.did +62 -19
- package/src/canisters/user_management/user_management.did.d.ts +68 -21
- package/src/canisters/user_management/user_management.did.js +90 -19
- package/src/jurisdiction.ts +117 -0
- package/src/mock.ts +1 -1
- package/dist/canisters/document_storage/document_storage.did.d.ts.map +0 -1
- package/dist/canisters/document_storage/document_storage.did.js.map +0 -1
- package/dist/canisters/document_verification/document_verification.did.d.ts.map +0 -1
- package/dist/canisters/document_verification/document_verification.did.js.map +0 -1
- package/dist/canisters/email_service/email_service.did.d.ts.map +0 -1
- package/dist/canisters/email_service/email_service.did.js.map +0 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +0 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +0 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +0 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.js.map +0 -1
- package/dist/canisters/property_registry/property_registry.did.d.ts.map +0 -1
- package/dist/canisters/property_registry/property_registry.did.js.map +0 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +0 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.js.map +0 -1
- package/dist/canisters/user_management/user_management.did.d.ts.map +0 -1
- package/dist/canisters/user_management/user_management.did.js.map +0 -1
|
@@ -72,11 +72,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
72
72
|
'removalRequested' : IDL.Bool,
|
|
73
73
|
'regulatoryBody' : RegulatoryBody,
|
|
74
74
|
});
|
|
75
|
-
const
|
|
75
|
+
const Result_25 = IDL.Variant({
|
|
76
76
|
'ok' : IDL.Record({ 'registrations' : IDL.Nat, 'transactions' : IDL.Nat }),
|
|
77
77
|
'err' : IDL.Text,
|
|
78
78
|
});
|
|
79
|
-
const
|
|
79
|
+
const Result_24 = IDL.Variant({
|
|
80
80
|
'ok' : IDL.Tuple(IDL.Text, IDL.Text),
|
|
81
81
|
'err' : IDL.Text,
|
|
82
82
|
});
|
|
@@ -201,7 +201,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
201
201
|
'sources' : IDL.Vec(IDL.Text),
|
|
202
202
|
'severity' : Severity,
|
|
203
203
|
});
|
|
204
|
-
const
|
|
204
|
+
const Result_23 = IDL.Variant({ 'ok' : IDL.Vec(Anomaly), 'err' : IDL.Text });
|
|
205
205
|
const Phase = IDL.Variant({
|
|
206
206
|
'buyerSetup' : IDL.Null,
|
|
207
207
|
'preContract' : IDL.Null,
|
|
@@ -210,14 +210,27 @@ export const idlFactory = ({ IDL }) => {
|
|
|
210
210
|
'preCompletion' : IDL.Null,
|
|
211
211
|
'searches' : IDL.Null,
|
|
212
212
|
});
|
|
213
|
-
const
|
|
213
|
+
const Result_22 = IDL.Variant({ 'ok' : Phase, 'err' : IDL.Text });
|
|
214
|
+
const FormAnswer = IDL.Record({
|
|
215
|
+
'id' : IDL.Text,
|
|
216
|
+
'answer' : IDL.Text,
|
|
217
|
+
'details' : IDL.Opt(IDL.Text),
|
|
218
|
+
});
|
|
219
|
+
const Result_21 = IDL.Variant({
|
|
220
|
+
'ok' : IDL.Record({
|
|
221
|
+
'ta6' : IDL.Vec(FormAnswer),
|
|
222
|
+
'ta7' : IDL.Vec(FormAnswer),
|
|
223
|
+
'ta10' : IDL.Vec(FormAnswer),
|
|
224
|
+
}),
|
|
225
|
+
'err' : IDL.Text,
|
|
226
|
+
});
|
|
214
227
|
const HmlrFetchRecord = IDL.Record({
|
|
215
228
|
'fetchedAt' : IDL.Int,
|
|
216
229
|
'fetchedBy' : IDL.Principal,
|
|
217
230
|
'titleNumber' : IDL.Text,
|
|
218
231
|
'responseHash' : IDL.Text,
|
|
219
232
|
});
|
|
220
|
-
const
|
|
233
|
+
const Result_20 = IDL.Variant({
|
|
221
234
|
'ok' : IDL.Opt(HmlrFetchRecord),
|
|
222
235
|
'err' : IDL.Text,
|
|
223
236
|
});
|
|
@@ -251,10 +264,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
251
264
|
'options' : IDL.Vec(NextStepOption),
|
|
252
265
|
'partial' : IDL.Bool,
|
|
253
266
|
});
|
|
254
|
-
const
|
|
267
|
+
const Result_19 = IDL.Variant({
|
|
255
268
|
'ok' : NextStepRecommendation,
|
|
256
269
|
'err' : IDL.Text,
|
|
257
270
|
});
|
|
271
|
+
const Result_18 = IDL.Variant({
|
|
272
|
+
'ok' : IDL.Record({
|
|
273
|
+
'mode' : IDL.Text,
|
|
274
|
+
'seller' : IDL.Principal,
|
|
275
|
+
'buyer' : IDL.Principal,
|
|
276
|
+
}),
|
|
277
|
+
'err' : IDL.Text,
|
|
278
|
+
});
|
|
258
279
|
const PartyProgress = IDL.Record({
|
|
259
280
|
'completedParties' : IDL.Nat,
|
|
260
281
|
'overallProgress' : IDL.Nat,
|
|
@@ -267,7 +288,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
267
288
|
'sellers' : PartyProgress,
|
|
268
289
|
'buyers' : PartyProgress,
|
|
269
290
|
});
|
|
270
|
-
const
|
|
291
|
+
const Result_17 = IDL.Variant({
|
|
271
292
|
'ok' : TransactionPartyProgress,
|
|
272
293
|
'err' : IDL.Text,
|
|
273
294
|
});
|
|
@@ -275,8 +296,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
275
296
|
'contractDraftedAt' : IDL.Opt(IDL.Int),
|
|
276
297
|
'searchesOrderedAt' : IDL.Opt(IDL.Int),
|
|
277
298
|
});
|
|
278
|
-
const
|
|
279
|
-
const
|
|
299
|
+
const Result_16 = IDL.Variant({ 'ok' : PhaseMilestones, 'err' : IDL.Text });
|
|
300
|
+
const Result_15 = IDL.Variant({
|
|
280
301
|
'ok' : IDL.Record({
|
|
281
302
|
'sellerSolicitor' : IDL.Opt(SolicitorRecord),
|
|
282
303
|
'buyerSolicitor' : IDL.Opt(SolicitorRecord),
|
|
@@ -301,7 +322,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
301
322
|
'lastModifiedBy' : IDL.Principal,
|
|
302
323
|
'rooms' : IDL.Vec(TA10Room),
|
|
303
324
|
});
|
|
304
|
-
const
|
|
325
|
+
const Result_14 = IDL.Variant({
|
|
305
326
|
'ok' : IDL.Opt(TA10FittingsAndContents),
|
|
306
327
|
'err' : IDL.Text,
|
|
307
328
|
});
|
|
@@ -632,7 +653,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
632
653
|
'section8' : Section8Environmental,
|
|
633
654
|
'section9' : Section9Rights,
|
|
634
655
|
});
|
|
635
|
-
const
|
|
656
|
+
const Result_13 = IDL.Variant({
|
|
636
657
|
'ok' : IDL.Opt(TA6PropertyInformation),
|
|
637
658
|
'err' : IDL.Text,
|
|
638
659
|
});
|
|
@@ -655,7 +676,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
655
676
|
'leaseStartDate' : IDL.Text,
|
|
656
677
|
'alterationsAllowed' : IDL.Bool,
|
|
657
678
|
});
|
|
658
|
-
const
|
|
679
|
+
const Result_12 = IDL.Variant({
|
|
659
680
|
'ok' : IDL.Opt(TA7LeaseholdInformation),
|
|
660
681
|
'err' : IDL.Text,
|
|
661
682
|
});
|
|
@@ -665,19 +686,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
665
686
|
'addedAt' : IDL.Int,
|
|
666
687
|
'addedBy' : IDL.Principal,
|
|
667
688
|
});
|
|
668
|
-
const
|
|
689
|
+
const Result_11 = IDL.Variant({
|
|
669
690
|
'ok' : IDL.Vec(BotConnection),
|
|
670
691
|
'err' : IDL.Text,
|
|
671
692
|
});
|
|
672
|
-
const
|
|
693
|
+
const Result_10 = IDL.Variant({
|
|
673
694
|
'ok' : IDL.Vec(Transaction),
|
|
674
695
|
'err' : IDL.Text,
|
|
675
696
|
});
|
|
676
|
-
const
|
|
697
|
+
const Result_9 = IDL.Variant({
|
|
677
698
|
'ok' : IDL.Vec(Notification),
|
|
678
699
|
'err' : IDL.Text,
|
|
679
700
|
});
|
|
680
|
-
const
|
|
701
|
+
const Result_8 = IDL.Variant({
|
|
681
702
|
'ok' : IDL.Record({
|
|
682
703
|
'sellers' : IDL.Vec(TransactionParty),
|
|
683
704
|
'buyers' : IDL.Vec(TransactionParty),
|
|
@@ -693,7 +714,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
693
714
|
'totalTimeToCompletion' : IDL.Nat,
|
|
694
715
|
'totalTimeIncludingLR' : IDL.Nat,
|
|
695
716
|
});
|
|
696
|
-
const
|
|
717
|
+
const Result_7 = IDL.Variant({ 'ok' : Transaction, 'err' : IDL.Text });
|
|
697
718
|
const Result_3 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
|
|
698
719
|
const ApplicationStatusUpdate = IDL.Record({
|
|
699
720
|
'lastUpdated' : IDL.Text,
|
|
@@ -703,10 +724,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
703
724
|
'currentStatus' : LandRegistryStatus,
|
|
704
725
|
'previousStatus' : LandRegistryStatus,
|
|
705
726
|
});
|
|
706
|
-
const
|
|
727
|
+
const Result_6 = IDL.Variant({
|
|
707
728
|
'ok' : ApplicationStatusUpdate,
|
|
708
729
|
'err' : IDL.Text,
|
|
709
730
|
});
|
|
731
|
+
const Result_5 = IDL.Variant({
|
|
732
|
+
'ok' : IDL.Record({ 'repairs' : IDL.Nat, 'transactions' : IDL.Nat }),
|
|
733
|
+
'err' : IDL.Text,
|
|
734
|
+
});
|
|
710
735
|
const OfficialSearchResult = IDL.Record({
|
|
711
736
|
'officialCopyTimestamp' : IDL.Opt(IDL.Text),
|
|
712
737
|
'advisoryEntries' : IDL.Vec(IDL.Text),
|
|
@@ -728,13 +753,26 @@ export const idlFactory = ({ IDL }) => {
|
|
|
728
753
|
),
|
|
729
754
|
'adminForceDeleteTransaction' : IDL.Func([IDL.Text], [Result], []),
|
|
730
755
|
'assignBuyer' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
|
|
756
|
+
'assignConveyancerFromPlatform' : IDL.Func(
|
|
757
|
+
[
|
|
758
|
+
IDL.Text,
|
|
759
|
+
IDL.Principal,
|
|
760
|
+
IDL.Text,
|
|
761
|
+
IDL.Text,
|
|
762
|
+
IDL.Text,
|
|
763
|
+
IDL.Text,
|
|
764
|
+
IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null }),
|
|
765
|
+
],
|
|
766
|
+
[Result_1],
|
|
767
|
+
[],
|
|
768
|
+
),
|
|
731
769
|
'assignSolicitor' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
|
|
732
770
|
'assignSolicitorRecord' : IDL.Func(
|
|
733
771
|
[IDL.Text, SolicitorRecord],
|
|
734
772
|
[Result_1],
|
|
735
773
|
[],
|
|
736
774
|
),
|
|
737
|
-
'backfillTransactionMembers' : IDL.Func([], [
|
|
775
|
+
'backfillTransactionMembers' : IDL.Func([], [Result_25], []),
|
|
738
776
|
'bootstrapDocumentStorageCanister' : IDL.Func(
|
|
739
777
|
[IDL.Principal],
|
|
740
778
|
[Result],
|
|
@@ -796,7 +834,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
796
834
|
IDL.Nat64,
|
|
797
835
|
IDL.Text,
|
|
798
836
|
],
|
|
799
|
-
[
|
|
837
|
+
[Result_24],
|
|
800
838
|
[],
|
|
801
839
|
),
|
|
802
840
|
'deleteTransaction' : IDL.Func([IDL.Text], [Result], []),
|
|
@@ -808,9 +846,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
808
846
|
['query'],
|
|
809
847
|
),
|
|
810
848
|
'getAllTransactions' : IDL.Func([], [IDL.Vec(Transaction)], ['query']),
|
|
811
|
-
'getAnomalies' : IDL.Func([IDL.Text], [
|
|
812
|
-
'getCurrentPhase' : IDL.Func([IDL.Text], [
|
|
849
|
+
'getAnomalies' : IDL.Func([IDL.Text], [Result_23], ['query']),
|
|
850
|
+
'getCurrentPhase' : IDL.Func([IDL.Text], [Result_22], ['query']),
|
|
813
851
|
'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
|
|
852
|
+
'getDelegates' : IDL.Func(
|
|
853
|
+
[IDL.Text],
|
|
854
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, IDL.Principal))],
|
|
855
|
+
['query'],
|
|
856
|
+
),
|
|
814
857
|
'getDocumentStorageCanister' : IDL.Func(
|
|
815
858
|
[],
|
|
816
859
|
[IDL.Opt(IDL.Principal)],
|
|
@@ -822,7 +865,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
822
865
|
['query'],
|
|
823
866
|
),
|
|
824
867
|
'getFlowState' : IDL.Func([IDL.Text], [IDL.Opt(IDL.Text)], ['query']),
|
|
825
|
-
'
|
|
868
|
+
'getFormAnswersForPlatform' : IDL.Func([IDL.Text], [Result_21], ['query']),
|
|
869
|
+
'getHmlrFetch' : IDL.Func([IDL.Text], [Result_20], ['query']),
|
|
826
870
|
'getInviteCode' : IDL.Func([IDL.Text], [Result], ['query']),
|
|
827
871
|
'getLandRegistryCanister' : IDL.Func([], [IDL.Text], ['query']),
|
|
828
872
|
'getLandRegistryDetail' : IDL.Func(
|
|
@@ -832,36 +876,43 @@ export const idlFactory = ({ IDL }) => {
|
|
|
832
876
|
),
|
|
833
877
|
'getLedgerManagerCanister' : IDL.Func([], [IDL.Text], ['query']),
|
|
834
878
|
'getListingData' : IDL.Func([IDL.Text], [IDL.Opt(IDL.Text)], ['query']),
|
|
879
|
+
'getMonitorTransactionIds' : IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
|
|
835
880
|
'getMyNotifications' : IDL.Func([], [IDL.Vec(Notification)], ['query']),
|
|
836
881
|
'getMyTransactions' : IDL.Func([], [IDL.Vec(Transaction)], ['query']),
|
|
837
|
-
'getNextStep' : IDL.Func([IDL.Text], [
|
|
882
|
+
'getNextStep' : IDL.Func([IDL.Text], [Result_19], ['composite_query']),
|
|
838
883
|
'getOutstandingRequisitions' : IDL.Func(
|
|
839
884
|
[],
|
|
840
885
|
[IDL.Vec(IDL.Tuple(IDL.Text, Requisition))],
|
|
841
886
|
['query'],
|
|
842
887
|
),
|
|
843
|
-
'
|
|
888
|
+
'getPartyPrincipalsForPlatform' : IDL.Func(
|
|
889
|
+
[IDL.Text],
|
|
890
|
+
[Result_18],
|
|
891
|
+
['query'],
|
|
892
|
+
),
|
|
893
|
+
'getPartyProgress' : IDL.Func([IDL.Text], [Result_17], ['query']),
|
|
844
894
|
'getPendingLRApplications' : IDL.Func(
|
|
845
895
|
[],
|
|
846
896
|
[IDL.Vec(Transaction)],
|
|
847
897
|
['query'],
|
|
848
898
|
),
|
|
849
|
-
'getPhaseMilestones' : IDL.Func([IDL.Text], [
|
|
899
|
+
'getPhaseMilestones' : IDL.Func([IDL.Text], [Result_16], ['query']),
|
|
900
|
+
'getPropertyLogbookCanister' : IDL.Func([], [IDL.Text], ['query']),
|
|
850
901
|
'getPropertyRegistryCanister' : IDL.Func([], [IDL.Text], ['query']),
|
|
851
|
-
'getSolicitorStatus' : IDL.Func([IDL.Text], [
|
|
852
|
-
'getTA10' : IDL.Func([IDL.Text], [
|
|
853
|
-
'getTA6' : IDL.Func([IDL.Text], [
|
|
854
|
-
'getTA7' : IDL.Func([IDL.Text], [
|
|
902
|
+
'getSolicitorStatus' : IDL.Func([IDL.Text], [Result_15], ['query']),
|
|
903
|
+
'getTA10' : IDL.Func([IDL.Text], [Result_14], ['query']),
|
|
904
|
+
'getTA6' : IDL.Func([IDL.Text], [Result_13], ['query']),
|
|
905
|
+
'getTA7' : IDL.Func([IDL.Text], [Result_12], ['query']),
|
|
855
906
|
'getTransaction' : IDL.Func([IDL.Text], [IDL.Opt(Transaction)], ['query']),
|
|
856
|
-
'getTransactionBots' : IDL.Func([IDL.Text], [
|
|
907
|
+
'getTransactionBots' : IDL.Func([IDL.Text], [Result_11], ['query']),
|
|
857
908
|
'getTransactionByInviteCode' : IDL.Func(
|
|
858
909
|
[IDL.Text],
|
|
859
910
|
[IDL.Opt(Transaction)],
|
|
860
911
|
[],
|
|
861
912
|
),
|
|
862
|
-
'getTransactionChain' : IDL.Func([IDL.Text], [
|
|
863
|
-
'getTransactionNotifications' : IDL.Func([IDL.Text], [
|
|
864
|
-
'getTransactionParties' : IDL.Func([IDL.Text], [
|
|
913
|
+
'getTransactionChain' : IDL.Func([IDL.Text], [Result_10], ['query']),
|
|
914
|
+
'getTransactionNotifications' : IDL.Func([IDL.Text], [Result_9], ['query']),
|
|
915
|
+
'getTransactionParties' : IDL.Func([IDL.Text], [Result_8], ['query']),
|
|
865
916
|
'getTransactionsByStatus' : IDL.Func(
|
|
866
917
|
[TransactionStatus],
|
|
867
918
|
[IDL.Vec(Transaction)],
|
|
@@ -895,9 +946,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
895
946
|
[Result],
|
|
896
947
|
[],
|
|
897
948
|
),
|
|
898
|
-
'
|
|
899
|
-
|
|
900
|
-
|
|
949
|
+
'isDelegateOf' : IDL.Func(
|
|
950
|
+
[IDL.Text, IDL.Principal, IDL.Principal],
|
|
951
|
+
[IDL.Bool],
|
|
952
|
+
['query'],
|
|
953
|
+
),
|
|
954
|
+
'isTransactionMember' : IDL.Func(
|
|
955
|
+
[IDL.Text, IDL.Principal],
|
|
956
|
+
[IDL.Bool],
|
|
957
|
+
['query'],
|
|
958
|
+
),
|
|
959
|
+
'joinAsBotByInviteCode' : IDL.Func([IDL.Text, IDL.Text], [Result_7], []),
|
|
960
|
+
'joinTransactionByInviteCode' : IDL.Func([IDL.Text], [Result_7], []),
|
|
961
|
+
'joinTransactionByInviteCodeAsBuyer' : IDL.Func([IDL.Text], [Result_7], []),
|
|
901
962
|
'leaveTransaction' : IDL.Func([IDL.Text], [Result], []),
|
|
902
963
|
'linkTransactionToChain' : IDL.Func([IDL.Text, IDL.Text], [Result_1], []),
|
|
903
964
|
'markAllNotificationsRead' : IDL.Func([], [IDL.Nat], []),
|
|
@@ -912,7 +973,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
912
973
|
),
|
|
913
974
|
'on_blockchain_completion_success' : IDL.Func([IDL.Text], [Result], []),
|
|
914
975
|
'pollAllPendingApplications' : IDL.Func([], [Result_3], []),
|
|
915
|
-
'pollApplicationStatus' : IDL.Func([IDL.Text], [
|
|
976
|
+
'pollApplicationStatus' : IDL.Func([IDL.Text], [Result_6], []),
|
|
916
977
|
'recordContractExchange' : IDL.Func(
|
|
917
978
|
[IDL.Text, IDL.Text, IDL.Text],
|
|
918
979
|
[Result],
|
|
@@ -923,6 +984,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
923
984
|
[Result_1],
|
|
924
985
|
[],
|
|
925
986
|
),
|
|
987
|
+
'recordDocShareRevoked' : IDL.Func(
|
|
988
|
+
[IDL.Text, IDL.Text, IDL.Text],
|
|
989
|
+
[Result_1],
|
|
990
|
+
[],
|
|
991
|
+
),
|
|
992
|
+
'recordDocShared' : IDL.Func(
|
|
993
|
+
[IDL.Text, IDL.Text, IDL.Text],
|
|
994
|
+
[Result_1],
|
|
995
|
+
[],
|
|
996
|
+
),
|
|
926
997
|
'recordFormUpload' : IDL.Func(
|
|
927
998
|
[IDL.Text, IDL.Text, IDL.Text, IDL.Text],
|
|
928
999
|
[Result_1],
|
|
@@ -951,6 +1022,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
951
1022
|
[Result_1],
|
|
952
1023
|
[],
|
|
953
1024
|
),
|
|
1025
|
+
'repairTransactionMemberRoles' : IDL.Func([], [Result_5], []),
|
|
954
1026
|
'requestOfficialSearch' : IDL.Func([IDL.Text], [Result_4], []),
|
|
955
1027
|
'respondToRequisition' : IDL.Func(
|
|
956
1028
|
[IDL.Text, IDL.Text, IDL.Text, IDL.Vec(IDL.Text)],
|
|
@@ -959,11 +1031,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
959
1031
|
),
|
|
960
1032
|
'revokeBuyer' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
|
|
961
1033
|
'runCrossReference' : IDL.Func([IDL.Text], [Result_3], []),
|
|
1034
|
+
'setDelegateFromPlatform' : IDL.Func(
|
|
1035
|
+
[IDL.Text, IDL.Principal, IDL.Principal, IDL.Bool],
|
|
1036
|
+
[Result],
|
|
1037
|
+
[],
|
|
1038
|
+
),
|
|
962
1039
|
'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [Result], []),
|
|
963
1040
|
'setFlowState' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
|
|
964
1041
|
'setLandRegistryCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
965
1042
|
'setLedgerManagerCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
966
1043
|
'setListingData' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
|
|
1044
|
+
'setMonitorPrincipal' : IDL.Func([IDL.Principal], [Result], []),
|
|
1045
|
+
'setPropertyLogbookCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
967
1046
|
'setPropertyRegistryCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
968
1047
|
'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
969
1048
|
'trigger_land_registry_submission' : IDL.Func([IDL.Text], [Result], []),
|
|
@@ -96,30 +96,27 @@ type Result_5 =
|
|
|
96
96
|
type Result_4 =
|
|
97
97
|
variant {
|
|
98
98
|
err: text;
|
|
99
|
-
ok;
|
|
99
|
+
ok: AgentGrant;
|
|
100
100
|
};
|
|
101
101
|
type Result_3 =
|
|
102
102
|
variant {
|
|
103
103
|
err: text;
|
|
104
|
-
ok:
|
|
104
|
+
ok: BotAgent;
|
|
105
105
|
};
|
|
106
106
|
type Result_2 =
|
|
107
107
|
variant {
|
|
108
108
|
err: text;
|
|
109
|
-
ok
|
|
109
|
+
ok;
|
|
110
110
|
};
|
|
111
111
|
type Result_1 =
|
|
112
112
|
variant {
|
|
113
113
|
err: text;
|
|
114
|
-
ok:
|
|
114
|
+
ok: nat;
|
|
115
115
|
};
|
|
116
116
|
type Result =
|
|
117
117
|
variant {
|
|
118
118
|
err: text;
|
|
119
|
-
ok:
|
|
120
|
-
ownerPrincipal: principal;
|
|
121
|
-
role: BotRole;
|
|
122
|
-
};
|
|
119
|
+
ok: text;
|
|
123
120
|
};
|
|
124
121
|
type Permission =
|
|
125
122
|
variant {
|
|
@@ -135,6 +132,24 @@ type Permission =
|
|
|
135
132
|
ViewSharedTransaction: text;
|
|
136
133
|
ViewTransactionProgress: text;
|
|
137
134
|
};
|
|
135
|
+
type GrantTier =
|
|
136
|
+
variant {
|
|
137
|
+
consequential;
|
|
138
|
+
readOnly;
|
|
139
|
+
};
|
|
140
|
+
type GrantStatus =
|
|
141
|
+
variant {
|
|
142
|
+
active;
|
|
143
|
+
preClaim;
|
|
144
|
+
revoked;
|
|
145
|
+
};
|
|
146
|
+
type GrantSource =
|
|
147
|
+
variant {
|
|
148
|
+
authMdAnonymous;
|
|
149
|
+
authMdEmail;
|
|
150
|
+
authMdIdJag;
|
|
151
|
+
invite;
|
|
152
|
+
};
|
|
138
153
|
type BotRole =
|
|
139
154
|
variant {
|
|
140
155
|
BotFirm;
|
|
@@ -176,6 +191,18 @@ type AuditLog =
|
|
|
176
191
|
timestamp: Time;
|
|
177
192
|
transactionId: opt text;
|
|
178
193
|
};
|
|
194
|
+
type AgentGrant =
|
|
195
|
+
record {
|
|
196
|
+
agentPrincipal: principal;
|
|
197
|
+
expiresAt: opt Time;
|
|
198
|
+
issuedAt: Time;
|
|
199
|
+
lastElevatedAt: opt Time;
|
|
200
|
+
ownerPrincipal: opt principal;
|
|
201
|
+
scopes: vec text;
|
|
202
|
+
source: GrantSource;
|
|
203
|
+
status: GrantStatus;
|
|
204
|
+
tier: GrantTier;
|
|
205
|
+
};
|
|
179
206
|
type AdminRole =
|
|
180
207
|
variant {
|
|
181
208
|
regular;
|
|
@@ -218,21 +245,22 @@ service : {
|
|
|
218
245
|
addTransactionMember: (transactionId: text, memberPrincipal: principal,
|
|
219
246
|
role: UserType, canViewProgress: bool, canInviteOthers: bool, csrfToken:
|
|
220
247
|
text) -> (bool);
|
|
221
|
-
adminLinkPrincipals: (primary: principal, alias: principal) -> (
|
|
248
|
+
adminLinkPrincipals: (primary: principal, alias: principal) -> (Result);
|
|
222
249
|
amIAdmin: () -> (bool) query;
|
|
223
250
|
bootstrapAdmin: (name: text, email: text) -> (bool);
|
|
224
251
|
canUserAccessTransaction: (user: principal, txId: text) -> (bool) query;
|
|
225
252
|
checkPermissionWithAudit: (permission: Permission) -> (bool);
|
|
226
|
-
claimLinkCode: (code: text) -> (
|
|
253
|
+
claimLinkCode: (code: text) -> (Result);
|
|
227
254
|
createUserForPrincipal: (targetPrincipal: principal, name: text, email:
|
|
228
255
|
text, mobile: text, userTypeText: text, csrfToken: text) -> (bool);
|
|
229
|
-
deactivateBot: (botPrincipal: principal) -> (
|
|
256
|
+
deactivateBot: (botPrincipal: principal) -> (Result_2);
|
|
230
257
|
deleteUserByPrincipal: (targetPrincipal: principal, csrfToken: text) ->
|
|
231
258
|
(bool);
|
|
232
259
|
demoteAdmin: (target: principal, csrfToken: text) ->
|
|
233
260
|
(AdminMutationResult_1);
|
|
234
261
|
generateCSRFToken: () -> (text);
|
|
235
|
-
generateLinkCode: () -> (
|
|
262
|
+
generateLinkCode: () -> (Result);
|
|
263
|
+
getAgentGrant: (agentPrincipal: principal) -> (opt AgentGrant) query;
|
|
236
264
|
getAllBots: () -> (vec BotAgent) query;
|
|
237
265
|
getAllUsers: () -> (vec UserProfile) query;
|
|
238
266
|
getAuditLogs: (limit: nat) -> (vec AuditLog) query;
|
|
@@ -241,7 +269,11 @@ service : {
|
|
|
241
269
|
getBotAgent: (botPrincipal: principal) -> (opt BotAgent) query;
|
|
242
270
|
getCSRFToken: () -> (opt text) query;
|
|
243
271
|
getCycles: () -> (nat) query;
|
|
272
|
+
getGrantIssuer: () -> (opt principal) query;
|
|
244
273
|
getLinkedPrincipals: ("principal": principal) -> (vec principal) query;
|
|
274
|
+
getMemberRoleInTransaction: (user: principal, txId: text) ->
|
|
275
|
+
(opt UserType) query;
|
|
276
|
+
getMyAgentGrants: () -> (vec AgentGrant) query;
|
|
245
277
|
getMyBots: () -> (vec BotAgent) query;
|
|
246
278
|
getMyLinkedPrincipals: () -> (vec principal) query;
|
|
247
279
|
getMyManagingSolicitor: () -> (opt UserProfile) query;
|
|
@@ -262,34 +294,45 @@ service : {
|
|
|
262
294
|
bool, csrfToken: text) -> (bool);
|
|
263
295
|
listAdmins: () -> (vec AdminRecord) query;
|
|
264
296
|
logBotAction: (botPrincipal: principal, action: text, transactionId:
|
|
265
|
-
opt text, success: bool, metadata: text) -> (
|
|
297
|
+
opt text, success: bool, metadata: text) -> (Result_2);
|
|
266
298
|
myAdminRole: () -> (opt AdminRole) query;
|
|
267
299
|
promoteAdmin: (target: principal, role: AdminRole, note: opt text,
|
|
268
300
|
csrfToken: text) -> (AdminMutationResult);
|
|
269
|
-
reactivateBot: (botPrincipal: principal) -> (
|
|
301
|
+
reactivateBot: (botPrincipal: principal) -> (Result_2);
|
|
270
302
|
recordAuditEntry: (actorType: ActorType, delegatedBy: opt principal,
|
|
271
303
|
action: text, targetPrincipal: opt principal, transactionId: opt text,
|
|
272
|
-
success: bool, metadata: text) -> (
|
|
304
|
+
success: bool, metadata: text) -> (Result_1);
|
|
305
|
+
recordGrantElevation: (agentPrincipal: principal, ownerPrincipal:
|
|
306
|
+
principal, tier: GrantTier, scopes: vec text, source: GrantSource,
|
|
307
|
+
expiresAt: opt Time) -> (Result_4);
|
|
308
|
+
recordGrantIssued: (agentPrincipal: principal, ownerPrincipal:
|
|
309
|
+
opt principal, tier: GrantTier, scopes: vec text, status: GrantStatus,
|
|
310
|
+
source: GrantSource, expiresAt: opt Time) -> (Result_4);
|
|
311
|
+
recordGrantRevocation: (agentPrincipal: principal, reason: text) ->
|
|
312
|
+
(Result_2);
|
|
273
313
|
registerBot: (botPrincipal: principal, name: text, description: text, role:
|
|
274
|
-
BotRole) -> (
|
|
314
|
+
BotRole) -> (Result_3);
|
|
275
315
|
registerUser: (name: text, email: text, mobile: text, userType: text) ->
|
|
276
316
|
(bool);
|
|
277
317
|
registerUserV2: (name: text, email: text, mobile: text, userType: UserType,
|
|
278
318
|
solicitorLicenseNumber: opt text, lawFirmName: opt text, lawFirmAddress:
|
|
279
319
|
opt text, sraNumber: opt text, csrfToken: text) -> (bool);
|
|
320
|
+
repairTransactionMemberRole: (transactionId: text, memberPrincipal:
|
|
321
|
+
principal, role: UserType) -> (bool);
|
|
280
322
|
resendVerificationEmail: (csrfToken: text) -> (bool);
|
|
281
323
|
revokeSolicitorAccess: (solicitorPrincipal: principal, csrfToken: text) ->
|
|
282
324
|
(bool);
|
|
283
|
-
|
|
325
|
+
setGrantIssuer: (issuer: principal) -> (Result_2);
|
|
326
|
+
sweepStaleGrants: () -> (Result_1);
|
|
327
|
+
unlinkPrincipal: (alias: principal) -> (Result);
|
|
284
328
|
updateMemberDocuments: (transactionId: text, uploadedDocumentName:
|
|
285
329
|
text, csrfToken: text) -> (bool);
|
|
286
330
|
updateSolicitorLRDetails: (sraNumber: opt text, businessGatewayEnabled:
|
|
287
331
|
bool, businessGatewayUsername: opt text, firmSRANumber: opt text,
|
|
288
|
-
conveyancerReference: opt text) -> (
|
|
332
|
+
conveyancerReference: opt text) -> (Result);
|
|
289
333
|
updateTransactionMemberRequiredDocs: (transactionId: text,
|
|
290
334
|
documentsToRemove: vec text, csrfToken: text) -> (bool);
|
|
291
335
|
validateAdmin: ("principal": principal) -> (bool) query;
|
|
292
|
-
validateBot: (botPrincipal: principal) -> (Result) query;
|
|
293
336
|
validateCSRFToken: (token: text) -> (bool);
|
|
294
337
|
verifyEmail: (token: text, csrfToken: text) -> (bool);
|
|
295
338
|
verifyUser: (userPrincipal: principal, csrfToken: text) -> (bool);
|