@propxchain/core-client 0.26.0-canary.65 → 0.27.0-canary.66
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/transaction_manager/transaction_manager.did.d.ts +28 -0
- package/dist/canisters/transaction_manager/transaction_manager.did.js +32 -0
- package/package.json +1 -1
- package/src/canisters/transaction_manager/transaction_manager.did +22 -0
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +28 -0
- package/src/canisters/transaction_manager/transaction_manager.did.js +32 -0
|
@@ -60,6 +60,12 @@ export interface Arrangement {
|
|
|
60
60
|
'document' : TA6Document,
|
|
61
61
|
'contributionAmount' : [] | [bigint],
|
|
62
62
|
}
|
|
63
|
+
export interface AuditWriteFailure {
|
|
64
|
+
'at' : bigint,
|
|
65
|
+
'transactionId' : string,
|
|
66
|
+
'eventType' : string,
|
|
67
|
+
'reason' : string,
|
|
68
|
+
}
|
|
63
69
|
export interface BotConnection {
|
|
64
70
|
'attribution' : string,
|
|
65
71
|
'clientId' : [] | [string],
|
|
@@ -95,6 +101,11 @@ export interface FormAnswer {
|
|
|
95
101
|
'answer' : string,
|
|
96
102
|
'details' : [] | [string],
|
|
97
103
|
}
|
|
104
|
+
export interface Health {
|
|
105
|
+
'failures' : bigint,
|
|
106
|
+
'lastFailureAt' : [] | [bigint],
|
|
107
|
+
'totalSinceDeploy' : bigint,
|
|
108
|
+
}
|
|
98
109
|
export interface HeatingSystem {
|
|
99
110
|
'certificate' : TA6Document,
|
|
100
111
|
'otherDetails' : [] | [string],
|
|
@@ -735,11 +746,26 @@ export interface _SERVICE {
|
|
|
735
746
|
],
|
|
736
747
|
Result_1
|
|
737
748
|
>,
|
|
749
|
+
'assignConveyancerFromPlatformV2' : ActorMethod<
|
|
750
|
+
[
|
|
751
|
+
string,
|
|
752
|
+
Principal,
|
|
753
|
+
string,
|
|
754
|
+
string,
|
|
755
|
+
string,
|
|
756
|
+
RegulatoryBody,
|
|
757
|
+
string,
|
|
758
|
+
{ 'seller' : null } |
|
|
759
|
+
{ 'buyer' : null },
|
|
760
|
+
],
|
|
761
|
+
Result_1
|
|
762
|
+
>,
|
|
738
763
|
'assignSolicitor' : ActorMethod<[string, Principal], Result>,
|
|
739
764
|
'assignSolicitorRecord' : ActorMethod<[string, SolicitorRecord], Result_1>,
|
|
740
765
|
'backfillTransactionMembers' : ActorMethod<[], Result_25>,
|
|
741
766
|
'bootstrapDocumentStorageCanister' : ActorMethod<[Principal], Result>,
|
|
742
767
|
'canAccessTransaction' : ActorMethod<[string], boolean>,
|
|
768
|
+
'clearAuditWriteFailures' : ActorMethod<[], undefined>,
|
|
743
769
|
'confirmKeysReleased' : ActorMethod<[string], Result>,
|
|
744
770
|
'connectBot' : ActorMethod<[string, Principal, string], Result_1>,
|
|
745
771
|
'consumeLandRegistryNotification' : ActorMethod<
|
|
@@ -792,6 +818,8 @@ export interface _SERVICE {
|
|
|
792
818
|
'getAllInviteCodes' : ActorMethod<[], Array<[string, string]>>,
|
|
793
819
|
'getAllTransactions' : ActorMethod<[], Array<Transaction>>,
|
|
794
820
|
'getAnomalies' : ActorMethod<[string], Result_23>,
|
|
821
|
+
'getAuditWriteFailures' : ActorMethod<[], Array<AuditWriteFailure>>,
|
|
822
|
+
'getAuditWriteHealth' : ActorMethod<[], Health>,
|
|
795
823
|
'getCompletionConfirmations' : ActorMethod<
|
|
796
824
|
[string],
|
|
797
825
|
[] | [{ 'buyer' : boolean, 'seller' : boolean }]
|
|
@@ -774,6 +774,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
774
774
|
'ok' : OfficialSearchResult,
|
|
775
775
|
'err' : IDL.Text,
|
|
776
776
|
});
|
|
777
|
+
const AuditWriteFailure = IDL.Record({
|
|
778
|
+
'at' : IDL.Int,
|
|
779
|
+
'transactionId' : IDL.Text,
|
|
780
|
+
'eventType' : IDL.Text,
|
|
781
|
+
'reason' : IDL.Text,
|
|
782
|
+
});
|
|
783
|
+
const Health = IDL.Record({
|
|
784
|
+
'failures' : IDL.Nat,
|
|
785
|
+
'lastFailureAt' : IDL.Opt(IDL.Int),
|
|
786
|
+
'totalSinceDeploy' : IDL.Nat,
|
|
787
|
+
});
|
|
777
788
|
return IDL.Service({
|
|
778
789
|
'acknowledgeTA6Wording' : IDL.Func([IDL.Text], [Result_1], []),
|
|
779
790
|
'addParty' : IDL.Func(
|
|
@@ -796,6 +807,20 @@ export const idlFactory = ({ IDL }) => {
|
|
|
796
807
|
[Result_1],
|
|
797
808
|
[],
|
|
798
809
|
),
|
|
810
|
+
'assignConveyancerFromPlatformV2' : IDL.Func(
|
|
811
|
+
[
|
|
812
|
+
IDL.Text,
|
|
813
|
+
IDL.Principal,
|
|
814
|
+
IDL.Text,
|
|
815
|
+
IDL.Text,
|
|
816
|
+
IDL.Text,
|
|
817
|
+
RegulatoryBody,
|
|
818
|
+
IDL.Text,
|
|
819
|
+
IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null }),
|
|
820
|
+
],
|
|
821
|
+
[Result_1],
|
|
822
|
+
[],
|
|
823
|
+
),
|
|
799
824
|
'assignSolicitor' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
|
|
800
825
|
'assignSolicitorRecord' : IDL.Func(
|
|
801
826
|
[IDL.Text, SolicitorRecord],
|
|
@@ -809,6 +834,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
809
834
|
[],
|
|
810
835
|
),
|
|
811
836
|
'canAccessTransaction' : IDL.Func([IDL.Text], [IDL.Bool], ['query']),
|
|
837
|
+
'clearAuditWriteFailures' : IDL.Func([], [], []),
|
|
812
838
|
'confirmKeysReleased' : IDL.Func([IDL.Text], [Result], []),
|
|
813
839
|
'connectBot' : IDL.Func(
|
|
814
840
|
[IDL.Text, IDL.Principal, IDL.Text],
|
|
@@ -878,6 +904,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
878
904
|
),
|
|
879
905
|
'getAllTransactions' : IDL.Func([], [IDL.Vec(Transaction)], ['query']),
|
|
880
906
|
'getAnomalies' : IDL.Func([IDL.Text], [Result_23], ['query']),
|
|
907
|
+
'getAuditWriteFailures' : IDL.Func(
|
|
908
|
+
[],
|
|
909
|
+
[IDL.Vec(AuditWriteFailure)],
|
|
910
|
+
['query'],
|
|
911
|
+
),
|
|
912
|
+
'getAuditWriteHealth' : IDL.Func([], [Health], ['query']),
|
|
881
913
|
'getCompletionConfirmations' : IDL.Func(
|
|
882
914
|
[IDL.Text],
|
|
883
915
|
[IDL.Opt(IDL.Record({ 'buyer' : IDL.Bool, 'seller' : IDL.Bool }))],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@propxchain/core-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0-canary.66",
|
|
4
4
|
"description": "Typed TypeScript client for the PropXchain core canisters on the Internet Computer. Includes a deterministic mock mode for local development and tests.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -798,6 +798,12 @@ type HeatingSystem =
|
|
|
798
798
|
lastServiceDate: opt text;
|
|
799
799
|
otherDetails: opt text;
|
|
800
800
|
};
|
|
801
|
+
type Health =
|
|
802
|
+
record {
|
|
803
|
+
failures: nat;
|
|
804
|
+
lastFailureAt: opt int;
|
|
805
|
+
totalSinceDeploy: nat;
|
|
806
|
+
};
|
|
801
807
|
type FormAnswer =
|
|
802
808
|
record {
|
|
803
809
|
answer: text;
|
|
@@ -844,6 +850,13 @@ type BotConnection =
|
|
|
844
850
|
ownerPrincipal: opt principal;
|
|
845
851
|
"principal": principal;
|
|
846
852
|
};
|
|
853
|
+
type AuditWriteFailure =
|
|
854
|
+
record {
|
|
855
|
+
at: int;
|
|
856
|
+
eventType: text;
|
|
857
|
+
reason: text;
|
|
858
|
+
transactionId: text;
|
|
859
|
+
};
|
|
847
860
|
type Arrangement =
|
|
848
861
|
record {
|
|
849
862
|
contributionAmount: opt nat;
|
|
@@ -928,6 +941,12 @@ service : {
|
|
|
928
941
|
buyer;
|
|
929
942
|
seller;
|
|
930
943
|
}) -> (Result_1);
|
|
944
|
+
assignConveyancerFromPlatformV2: (transactionId: text, conveyancer:
|
|
945
|
+
principal, name: text, email: text, firmName: text, regulatoryBody:
|
|
946
|
+
RegulatoryBody, regNumber: text, actingFor: variant {
|
|
947
|
+
buyer;
|
|
948
|
+
seller;
|
|
949
|
+
}) -> (Result_1);
|
|
931
950
|
assignSolicitor: (transactionId: text, solicitorPrincipal: principal) ->
|
|
932
951
|
(Result);
|
|
933
952
|
assignSolicitorRecord: (transactionId: text, solicitorRecord:
|
|
@@ -935,6 +954,7 @@ service : {
|
|
|
935
954
|
backfillTransactionMembers: () -> (Result_25);
|
|
936
955
|
bootstrapDocumentStorageCanister: (canisterId: principal) -> (Result);
|
|
937
956
|
canAccessTransaction: (transactionId: text) -> (bool) query;
|
|
957
|
+
clearAuditWriteFailures: () -> ();
|
|
938
958
|
/// Keys released (Marc, 2026-11-05): confirmed by the seller's estate
|
|
939
959
|
/// agent (a seller-side delegate), or by the seller only when the seller
|
|
940
960
|
/// has no agent. Recorded once, after completion.
|
|
@@ -966,6 +986,8 @@ service : {
|
|
|
966
986
|
}) query;
|
|
967
987
|
getAllTransactions: () -> (vec Transaction) query;
|
|
968
988
|
getAnomalies: (txId: text) -> (Result_23) query;
|
|
989
|
+
getAuditWriteFailures: () -> (vec AuditWriteFailure) query;
|
|
990
|
+
getAuditWriteHealth: () -> (Health) query;
|
|
969
991
|
/// H6: which sides have confirmed completion so far, so each side's page
|
|
970
992
|
/// can say "waiting for the other side". Members only; a stranger gets
|
|
971
993
|
/// null, the same as a transaction with nothing pending.
|
|
@@ -60,6 +60,12 @@ export interface Arrangement {
|
|
|
60
60
|
'document' : TA6Document,
|
|
61
61
|
'contributionAmount' : [] | [bigint],
|
|
62
62
|
}
|
|
63
|
+
export interface AuditWriteFailure {
|
|
64
|
+
'at' : bigint,
|
|
65
|
+
'transactionId' : string,
|
|
66
|
+
'eventType' : string,
|
|
67
|
+
'reason' : string,
|
|
68
|
+
}
|
|
63
69
|
export interface BotConnection {
|
|
64
70
|
'attribution' : string,
|
|
65
71
|
'clientId' : [] | [string],
|
|
@@ -95,6 +101,11 @@ export interface FormAnswer {
|
|
|
95
101
|
'answer' : string,
|
|
96
102
|
'details' : [] | [string],
|
|
97
103
|
}
|
|
104
|
+
export interface Health {
|
|
105
|
+
'failures' : bigint,
|
|
106
|
+
'lastFailureAt' : [] | [bigint],
|
|
107
|
+
'totalSinceDeploy' : bigint,
|
|
108
|
+
}
|
|
98
109
|
export interface HeatingSystem {
|
|
99
110
|
'certificate' : TA6Document,
|
|
100
111
|
'otherDetails' : [] | [string],
|
|
@@ -735,11 +746,26 @@ export interface _SERVICE {
|
|
|
735
746
|
],
|
|
736
747
|
Result_1
|
|
737
748
|
>,
|
|
749
|
+
'assignConveyancerFromPlatformV2' : ActorMethod<
|
|
750
|
+
[
|
|
751
|
+
string,
|
|
752
|
+
Principal,
|
|
753
|
+
string,
|
|
754
|
+
string,
|
|
755
|
+
string,
|
|
756
|
+
RegulatoryBody,
|
|
757
|
+
string,
|
|
758
|
+
{ 'seller' : null } |
|
|
759
|
+
{ 'buyer' : null },
|
|
760
|
+
],
|
|
761
|
+
Result_1
|
|
762
|
+
>,
|
|
738
763
|
'assignSolicitor' : ActorMethod<[string, Principal], Result>,
|
|
739
764
|
'assignSolicitorRecord' : ActorMethod<[string, SolicitorRecord], Result_1>,
|
|
740
765
|
'backfillTransactionMembers' : ActorMethod<[], Result_25>,
|
|
741
766
|
'bootstrapDocumentStorageCanister' : ActorMethod<[Principal], Result>,
|
|
742
767
|
'canAccessTransaction' : ActorMethod<[string], boolean>,
|
|
768
|
+
'clearAuditWriteFailures' : ActorMethod<[], undefined>,
|
|
743
769
|
'confirmKeysReleased' : ActorMethod<[string], Result>,
|
|
744
770
|
'connectBot' : ActorMethod<[string, Principal, string], Result_1>,
|
|
745
771
|
'consumeLandRegistryNotification' : ActorMethod<
|
|
@@ -792,6 +818,8 @@ export interface _SERVICE {
|
|
|
792
818
|
'getAllInviteCodes' : ActorMethod<[], Array<[string, string]>>,
|
|
793
819
|
'getAllTransactions' : ActorMethod<[], Array<Transaction>>,
|
|
794
820
|
'getAnomalies' : ActorMethod<[string], Result_23>,
|
|
821
|
+
'getAuditWriteFailures' : ActorMethod<[], Array<AuditWriteFailure>>,
|
|
822
|
+
'getAuditWriteHealth' : ActorMethod<[], Health>,
|
|
795
823
|
'getCompletionConfirmations' : ActorMethod<
|
|
796
824
|
[string],
|
|
797
825
|
[] | [{ 'buyer' : boolean, 'seller' : boolean }]
|
|
@@ -774,6 +774,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
774
774
|
'ok' : OfficialSearchResult,
|
|
775
775
|
'err' : IDL.Text,
|
|
776
776
|
});
|
|
777
|
+
const AuditWriteFailure = IDL.Record({
|
|
778
|
+
'at' : IDL.Int,
|
|
779
|
+
'transactionId' : IDL.Text,
|
|
780
|
+
'eventType' : IDL.Text,
|
|
781
|
+
'reason' : IDL.Text,
|
|
782
|
+
});
|
|
783
|
+
const Health = IDL.Record({
|
|
784
|
+
'failures' : IDL.Nat,
|
|
785
|
+
'lastFailureAt' : IDL.Opt(IDL.Int),
|
|
786
|
+
'totalSinceDeploy' : IDL.Nat,
|
|
787
|
+
});
|
|
777
788
|
return IDL.Service({
|
|
778
789
|
'acknowledgeTA6Wording' : IDL.Func([IDL.Text], [Result_1], []),
|
|
779
790
|
'addParty' : IDL.Func(
|
|
@@ -796,6 +807,20 @@ export const idlFactory = ({ IDL }) => {
|
|
|
796
807
|
[Result_1],
|
|
797
808
|
[],
|
|
798
809
|
),
|
|
810
|
+
'assignConveyancerFromPlatformV2' : IDL.Func(
|
|
811
|
+
[
|
|
812
|
+
IDL.Text,
|
|
813
|
+
IDL.Principal,
|
|
814
|
+
IDL.Text,
|
|
815
|
+
IDL.Text,
|
|
816
|
+
IDL.Text,
|
|
817
|
+
RegulatoryBody,
|
|
818
|
+
IDL.Text,
|
|
819
|
+
IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null }),
|
|
820
|
+
],
|
|
821
|
+
[Result_1],
|
|
822
|
+
[],
|
|
823
|
+
),
|
|
799
824
|
'assignSolicitor' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
|
|
800
825
|
'assignSolicitorRecord' : IDL.Func(
|
|
801
826
|
[IDL.Text, SolicitorRecord],
|
|
@@ -809,6 +834,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
809
834
|
[],
|
|
810
835
|
),
|
|
811
836
|
'canAccessTransaction' : IDL.Func([IDL.Text], [IDL.Bool], ['query']),
|
|
837
|
+
'clearAuditWriteFailures' : IDL.Func([], [], []),
|
|
812
838
|
'confirmKeysReleased' : IDL.Func([IDL.Text], [Result], []),
|
|
813
839
|
'connectBot' : IDL.Func(
|
|
814
840
|
[IDL.Text, IDL.Principal, IDL.Text],
|
|
@@ -878,6 +904,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
878
904
|
),
|
|
879
905
|
'getAllTransactions' : IDL.Func([], [IDL.Vec(Transaction)], ['query']),
|
|
880
906
|
'getAnomalies' : IDL.Func([IDL.Text], [Result_23], ['query']),
|
|
907
|
+
'getAuditWriteFailures' : IDL.Func(
|
|
908
|
+
[],
|
|
909
|
+
[IDL.Vec(AuditWriteFailure)],
|
|
910
|
+
['query'],
|
|
911
|
+
),
|
|
912
|
+
'getAuditWriteHealth' : IDL.Func([], [Health], ['query']),
|
|
881
913
|
'getCompletionConfirmations' : IDL.Func(
|
|
882
914
|
[IDL.Text],
|
|
883
915
|
[IDL.Opt(IDL.Record({ 'buyer' : IDL.Bool, 'seller' : IDL.Bool }))],
|