@propxchain/core-client 0.15.1-canary.54 → 0.16.0-canary.55
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 +23 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.js +27 -1
- package/package.json +1 -1
- package/src/canisters/transaction_manager/transaction_manager.did +34 -1
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +23 -1
- package/src/canisters/transaction_manager/transaction_manager.did.js +27 -1
|
@@ -6,6 +6,28 @@ export type AMLStatus = { 'verified' : null } |
|
|
|
6
6
|
{ 'pending' : null } |
|
|
7
7
|
{ 'rejected' : null } |
|
|
8
8
|
{ 'not_started' : null };
|
|
9
|
+
export interface AlterationDocument {
|
|
10
|
+
'kindDetails' : [] | [string],
|
|
11
|
+
'kind' : [] | [AlterationDocumentKind],
|
|
12
|
+
'document' : TA6Document,
|
|
13
|
+
'relatesTo' : [] | [AlterationKind],
|
|
14
|
+
}
|
|
15
|
+
export type AlterationDocumentKind = { 'BuildingRegsCompletion' : null } |
|
|
16
|
+
{ 'ListedBuildingConsent' : null } |
|
|
17
|
+
{ 'CompetentPersonCertificate' : null } |
|
|
18
|
+
{ 'ConservationAreaConsent' : null } |
|
|
19
|
+
{ 'BuildingRegsApproval' : null } |
|
|
20
|
+
{ 'Other' : null } |
|
|
21
|
+
{ 'PlanningPermission' : null };
|
|
22
|
+
export type AlterationKind = { 'InternalWallsRemoved' : null } |
|
|
23
|
+
{ 'ChangeOfUse' : null } |
|
|
24
|
+
{ 'LoftConversion' : null } |
|
|
25
|
+
{ 'Extension' : null } |
|
|
26
|
+
{ 'Other' : null } |
|
|
27
|
+
{ 'StructuralRoofWorks' : null } |
|
|
28
|
+
{ 'Conservatory' : null } |
|
|
29
|
+
{ 'WindowsPost2002' : null } |
|
|
30
|
+
{ 'GarageConversion' : null };
|
|
9
31
|
export interface AlterationTypes {
|
|
10
32
|
'conservatory' : boolean,
|
|
11
33
|
'otherDetails' : [] | [string],
|
|
@@ -380,7 +402,7 @@ export interface Section5Alterations {
|
|
|
380
402
|
'q5_3NonResidentialUse' : TA6Response,
|
|
381
403
|
'q5_8ConservationArea' : TA6Response,
|
|
382
404
|
'q5_9TreePreservationOrder' : TA6Response,
|
|
383
|
-
'q5_2Documents' : Array<
|
|
405
|
+
'q5_2Documents' : Array<AlterationDocument>,
|
|
384
406
|
'q5_4Breaches' : TA6Response,
|
|
385
407
|
'q5_5UnresolvedIssues' : TA6Response,
|
|
386
408
|
'q5_1Alterations' : AlterationTypes,
|
|
@@ -558,12 +558,38 @@ export const idlFactory = ({ IDL }) => {
|
|
|
558
558
|
'garageConversion' : IDL.Bool,
|
|
559
559
|
'extension' : IDL.Bool,
|
|
560
560
|
});
|
|
561
|
+
const AlterationDocumentKind = IDL.Variant({
|
|
562
|
+
'BuildingRegsCompletion' : IDL.Null,
|
|
563
|
+
'ListedBuildingConsent' : IDL.Null,
|
|
564
|
+
'CompetentPersonCertificate' : IDL.Null,
|
|
565
|
+
'ConservationAreaConsent' : IDL.Null,
|
|
566
|
+
'BuildingRegsApproval' : IDL.Null,
|
|
567
|
+
'Other' : IDL.Null,
|
|
568
|
+
'PlanningPermission' : IDL.Null,
|
|
569
|
+
});
|
|
570
|
+
const AlterationKind = IDL.Variant({
|
|
571
|
+
'InternalWallsRemoved' : IDL.Null,
|
|
572
|
+
'ChangeOfUse' : IDL.Null,
|
|
573
|
+
'LoftConversion' : IDL.Null,
|
|
574
|
+
'Extension' : IDL.Null,
|
|
575
|
+
'Other' : IDL.Null,
|
|
576
|
+
'StructuralRoofWorks' : IDL.Null,
|
|
577
|
+
'Conservatory' : IDL.Null,
|
|
578
|
+
'WindowsPost2002' : IDL.Null,
|
|
579
|
+
'GarageConversion' : IDL.Null,
|
|
580
|
+
});
|
|
581
|
+
const AlterationDocument = IDL.Record({
|
|
582
|
+
'kindDetails' : IDL.Opt(IDL.Text),
|
|
583
|
+
'kind' : IDL.Opt(AlterationDocumentKind),
|
|
584
|
+
'document' : TA6Document,
|
|
585
|
+
'relatesTo' : IDL.Opt(AlterationKind),
|
|
586
|
+
});
|
|
561
587
|
const Section5Alterations = IDL.Record({
|
|
562
588
|
'q5_6Solar' : IDL.Opt(SolarPower),
|
|
563
589
|
'q5_3NonResidentialUse' : TA6Response,
|
|
564
590
|
'q5_8ConservationArea' : TA6Response,
|
|
565
591
|
'q5_9TreePreservationOrder' : TA6Response,
|
|
566
|
-
'q5_2Documents' : IDL.Vec(
|
|
592
|
+
'q5_2Documents' : IDL.Vec(AlterationDocument),
|
|
567
593
|
'q5_4Breaches' : TA6Response,
|
|
568
594
|
'q5_5UnresolvedIssues' : TA6Response,
|
|
569
595
|
'q5_1Alterations' : AlterationTypes,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@propxchain/core-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0-canary.55",
|
|
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",
|
|
@@ -364,7 +364,7 @@ type Section6Guarantees =
|
|
|
364
364
|
type Section5Alterations =
|
|
365
365
|
record {
|
|
366
366
|
q5_1Alterations: AlterationTypes;
|
|
367
|
-
q5_2Documents: vec
|
|
367
|
+
q5_2Documents: vec AlterationDocument;
|
|
368
368
|
q5_3NonResidentialUse: TA6Response;
|
|
369
369
|
q5_4Breaches: TA6Response;
|
|
370
370
|
q5_5UnresolvedIssues: TA6Response;
|
|
@@ -878,6 +878,35 @@ type AlterationTypes =
|
|
|
878
878
|
structuralRoofWorks: bool;
|
|
879
879
|
windowsPost2002: bool;
|
|
880
880
|
};
|
|
881
|
+
type AlterationKind =
|
|
882
|
+
variant {
|
|
883
|
+
ChangeOfUse;
|
|
884
|
+
Conservatory;
|
|
885
|
+
Extension;
|
|
886
|
+
GarageConversion;
|
|
887
|
+
InternalWallsRemoved;
|
|
888
|
+
LoftConversion;
|
|
889
|
+
Other;
|
|
890
|
+
StructuralRoofWorks;
|
|
891
|
+
WindowsPost2002;
|
|
892
|
+
};
|
|
893
|
+
type AlterationDocumentKind =
|
|
894
|
+
variant {
|
|
895
|
+
BuildingRegsApproval;
|
|
896
|
+
BuildingRegsCompletion;
|
|
897
|
+
CompetentPersonCertificate;
|
|
898
|
+
ConservationAreaConsent;
|
|
899
|
+
ListedBuildingConsent;
|
|
900
|
+
Other;
|
|
901
|
+
PlanningPermission;
|
|
902
|
+
};
|
|
903
|
+
type AlterationDocument =
|
|
904
|
+
record {
|
|
905
|
+
document: TA6Document;
|
|
906
|
+
kind: opt AlterationDocumentKind;
|
|
907
|
+
kindDetails: opt text;
|
|
908
|
+
relatesTo: opt AlterationKind;
|
|
909
|
+
};
|
|
881
910
|
type AMLStatus =
|
|
882
911
|
variant {
|
|
883
912
|
not_started;
|
|
@@ -1019,6 +1048,7 @@ service : {
|
|
|
1019
1048
|
/// create. Counterpart to `removeParty` (which is seller/admin-driven and
|
|
1020
1049
|
/// gated against primary parties) — this is the "I want out" path for a
|
|
1021
1050
|
/// joined buyer or any other access-list member.
|
|
1051
|
+
///
|
|
1022
1052
|
/// Gates:
|
|
1023
1053
|
/// - Anonymous callers rejected outright.
|
|
1024
1054
|
/// - Seller / createdBy cannot leave their own transaction (they
|
|
@@ -1026,6 +1056,7 @@ service : {
|
|
|
1026
1056
|
/// - Caller must currently have access to the transaction.
|
|
1027
1057
|
/// - Locked after contract exchange (same posture as assignBuyer):
|
|
1028
1058
|
/// once the deal is signed nobody walks away by toggling a button.
|
|
1059
|
+
///
|
|
1029
1060
|
/// Effects:
|
|
1030
1061
|
/// - Caller is removed from `accessList`.
|
|
1031
1062
|
/// - If the caller is the assigned buyer (`txn.buyer == msg.caller`),
|
|
@@ -1035,6 +1066,7 @@ service : {
|
|
|
1035
1066
|
/// reusable by a new joiner.
|
|
1036
1067
|
/// - Audit event `buyer_left` (or `party_left` for non-buyer leavers)
|
|
1037
1068
|
/// is logged via the existing ledger pattern.
|
|
1069
|
+
///
|
|
1038
1070
|
/// Concurrency: uses the same acquireTxLock/finally releaseTxLock
|
|
1039
1071
|
/// posture as assignBuyer so a leave can't race against an in-flight
|
|
1040
1072
|
/// stage write.
|
|
@@ -1052,6 +1084,7 @@ service : {
|
|
|
1052
1084
|
/// 2. Stale-pin txs where the org's pinned principal changed after the
|
|
1053
1085
|
/// tx was created (e.g. admin password reset → new ICP key, or org
|
|
1054
1086
|
/// ownership transferred to a different admin).
|
|
1087
|
+
///
|
|
1055
1088
|
/// Idempotent over the target: re-running with the same developerPrincipal
|
|
1056
1089
|
/// returns an error (already at target), so admin-driven backfill scripts
|
|
1057
1090
|
/// don't silently re-touch state. Always rejects:
|
|
@@ -6,6 +6,28 @@ export type AMLStatus = { 'verified' : null } |
|
|
|
6
6
|
{ 'pending' : null } |
|
|
7
7
|
{ 'rejected' : null } |
|
|
8
8
|
{ 'not_started' : null };
|
|
9
|
+
export interface AlterationDocument {
|
|
10
|
+
'kindDetails' : [] | [string],
|
|
11
|
+
'kind' : [] | [AlterationDocumentKind],
|
|
12
|
+
'document' : TA6Document,
|
|
13
|
+
'relatesTo' : [] | [AlterationKind],
|
|
14
|
+
}
|
|
15
|
+
export type AlterationDocumentKind = { 'BuildingRegsCompletion' : null } |
|
|
16
|
+
{ 'ListedBuildingConsent' : null } |
|
|
17
|
+
{ 'CompetentPersonCertificate' : null } |
|
|
18
|
+
{ 'ConservationAreaConsent' : null } |
|
|
19
|
+
{ 'BuildingRegsApproval' : null } |
|
|
20
|
+
{ 'Other' : null } |
|
|
21
|
+
{ 'PlanningPermission' : null };
|
|
22
|
+
export type AlterationKind = { 'InternalWallsRemoved' : null } |
|
|
23
|
+
{ 'ChangeOfUse' : null } |
|
|
24
|
+
{ 'LoftConversion' : null } |
|
|
25
|
+
{ 'Extension' : null } |
|
|
26
|
+
{ 'Other' : null } |
|
|
27
|
+
{ 'StructuralRoofWorks' : null } |
|
|
28
|
+
{ 'Conservatory' : null } |
|
|
29
|
+
{ 'WindowsPost2002' : null } |
|
|
30
|
+
{ 'GarageConversion' : null };
|
|
9
31
|
export interface AlterationTypes {
|
|
10
32
|
'conservatory' : boolean,
|
|
11
33
|
'otherDetails' : [] | [string],
|
|
@@ -380,7 +402,7 @@ export interface Section5Alterations {
|
|
|
380
402
|
'q5_3NonResidentialUse' : TA6Response,
|
|
381
403
|
'q5_8ConservationArea' : TA6Response,
|
|
382
404
|
'q5_9TreePreservationOrder' : TA6Response,
|
|
383
|
-
'q5_2Documents' : Array<
|
|
405
|
+
'q5_2Documents' : Array<AlterationDocument>,
|
|
384
406
|
'q5_4Breaches' : TA6Response,
|
|
385
407
|
'q5_5UnresolvedIssues' : TA6Response,
|
|
386
408
|
'q5_1Alterations' : AlterationTypes,
|
|
@@ -558,12 +558,38 @@ export const idlFactory = ({ IDL }) => {
|
|
|
558
558
|
'garageConversion' : IDL.Bool,
|
|
559
559
|
'extension' : IDL.Bool,
|
|
560
560
|
});
|
|
561
|
+
const AlterationDocumentKind = IDL.Variant({
|
|
562
|
+
'BuildingRegsCompletion' : IDL.Null,
|
|
563
|
+
'ListedBuildingConsent' : IDL.Null,
|
|
564
|
+
'CompetentPersonCertificate' : IDL.Null,
|
|
565
|
+
'ConservationAreaConsent' : IDL.Null,
|
|
566
|
+
'BuildingRegsApproval' : IDL.Null,
|
|
567
|
+
'Other' : IDL.Null,
|
|
568
|
+
'PlanningPermission' : IDL.Null,
|
|
569
|
+
});
|
|
570
|
+
const AlterationKind = IDL.Variant({
|
|
571
|
+
'InternalWallsRemoved' : IDL.Null,
|
|
572
|
+
'ChangeOfUse' : IDL.Null,
|
|
573
|
+
'LoftConversion' : IDL.Null,
|
|
574
|
+
'Extension' : IDL.Null,
|
|
575
|
+
'Other' : IDL.Null,
|
|
576
|
+
'StructuralRoofWorks' : IDL.Null,
|
|
577
|
+
'Conservatory' : IDL.Null,
|
|
578
|
+
'WindowsPost2002' : IDL.Null,
|
|
579
|
+
'GarageConversion' : IDL.Null,
|
|
580
|
+
});
|
|
581
|
+
const AlterationDocument = IDL.Record({
|
|
582
|
+
'kindDetails' : IDL.Opt(IDL.Text),
|
|
583
|
+
'kind' : IDL.Opt(AlterationDocumentKind),
|
|
584
|
+
'document' : TA6Document,
|
|
585
|
+
'relatesTo' : IDL.Opt(AlterationKind),
|
|
586
|
+
});
|
|
561
587
|
const Section5Alterations = IDL.Record({
|
|
562
588
|
'q5_6Solar' : IDL.Opt(SolarPower),
|
|
563
589
|
'q5_3NonResidentialUse' : TA6Response,
|
|
564
590
|
'q5_8ConservationArea' : TA6Response,
|
|
565
591
|
'q5_9TreePreservationOrder' : TA6Response,
|
|
566
|
-
'q5_2Documents' : IDL.Vec(
|
|
592
|
+
'q5_2Documents' : IDL.Vec(AlterationDocument),
|
|
567
593
|
'q5_4Breaches' : TA6Response,
|
|
568
594
|
'q5_5UnresolvedIssues' : TA6Response,
|
|
569
595
|
'q5_1Alterations' : AlterationTypes,
|