@propxchain/core-client 0.15.1-canary.54 → 0.17.0-canary.56

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.
@@ -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],
@@ -249,7 +271,12 @@ export type Result_16 = { 'ok' : PhaseMilestones } |
249
271
  export type Result_17 = { 'ok' : TransactionPartyProgress } |
250
272
  { 'err' : string };
251
273
  export type Result_18 = {
252
- 'ok' : { 'mode' : string, 'seller' : Principal, 'buyer' : Principal }
274
+ 'ok' : {
275
+ 'mode' : string,
276
+ 'createdBy' : Principal,
277
+ 'seller' : Principal,
278
+ 'buyer' : Principal,
279
+ }
253
280
  } |
254
281
  { 'err' : string };
255
282
  export type Result_19 = { 'ok' : NextStepRecommendation } |
@@ -380,7 +407,7 @@ export interface Section5Alterations {
380
407
  'q5_3NonResidentialUse' : TA6Response,
381
408
  'q5_8ConservationArea' : TA6Response,
382
409
  'q5_9TreePreservationOrder' : TA6Response,
383
- 'q5_2Documents' : Array<TA6Document>,
410
+ 'q5_2Documents' : Array<AlterationDocument>,
384
411
  'q5_4Breaches' : TA6Response,
385
412
  'q5_5UnresolvedIssues' : TA6Response,
386
413
  'q5_1Alterations' : AlterationTypes,
@@ -829,6 +856,7 @@ export interface _SERVICE {
829
856
  [string],
830
857
  [] | [TransactionTimeline]
831
858
  >,
859
+ 'handOverSellerFromPlatform' : ActorMethod<[string, Principal], Result>,
832
860
  'hasAcknowledgedTA6Wording' : ActorMethod<[string], boolean>,
833
861
  'initiate_blockchain_completion' : ActorMethod<
834
862
  [string, string, string],
@@ -271,6 +271,7 @@ export const idlFactory = ({ IDL }) => {
271
271
  const Result_18 = IDL.Variant({
272
272
  'ok' : IDL.Record({
273
273
  'mode' : IDL.Text,
274
+ 'createdBy' : IDL.Principal,
274
275
  'seller' : IDL.Principal,
275
276
  'buyer' : IDL.Principal,
276
277
  }),
@@ -558,12 +559,38 @@ export const idlFactory = ({ IDL }) => {
558
559
  'garageConversion' : IDL.Bool,
559
560
  'extension' : IDL.Bool,
560
561
  });
562
+ const AlterationDocumentKind = IDL.Variant({
563
+ 'BuildingRegsCompletion' : IDL.Null,
564
+ 'ListedBuildingConsent' : IDL.Null,
565
+ 'CompetentPersonCertificate' : IDL.Null,
566
+ 'ConservationAreaConsent' : IDL.Null,
567
+ 'BuildingRegsApproval' : IDL.Null,
568
+ 'Other' : IDL.Null,
569
+ 'PlanningPermission' : IDL.Null,
570
+ });
571
+ const AlterationKind = IDL.Variant({
572
+ 'InternalWallsRemoved' : IDL.Null,
573
+ 'ChangeOfUse' : IDL.Null,
574
+ 'LoftConversion' : IDL.Null,
575
+ 'Extension' : IDL.Null,
576
+ 'Other' : IDL.Null,
577
+ 'StructuralRoofWorks' : IDL.Null,
578
+ 'Conservatory' : IDL.Null,
579
+ 'WindowsPost2002' : IDL.Null,
580
+ 'GarageConversion' : IDL.Null,
581
+ });
582
+ const AlterationDocument = IDL.Record({
583
+ 'kindDetails' : IDL.Opt(IDL.Text),
584
+ 'kind' : IDL.Opt(AlterationDocumentKind),
585
+ 'document' : TA6Document,
586
+ 'relatesTo' : IDL.Opt(AlterationKind),
587
+ });
561
588
  const Section5Alterations = IDL.Record({
562
589
  'q5_6Solar' : IDL.Opt(SolarPower),
563
590
  'q5_3NonResidentialUse' : TA6Response,
564
591
  'q5_8ConservationArea' : TA6Response,
565
592
  'q5_9TreePreservationOrder' : TA6Response,
566
- 'q5_2Documents' : IDL.Vec(TA6Document),
593
+ 'q5_2Documents' : IDL.Vec(AlterationDocument),
567
594
  'q5_4Breaches' : TA6Response,
568
595
  'q5_5UnresolvedIssues' : TA6Response,
569
596
  'q5_1Alterations' : AlterationTypes,
@@ -965,6 +992,11 @@ export const idlFactory = ({ IDL }) => {
965
992
  [IDL.Opt(TransactionTimeline)],
966
993
  ['query'],
967
994
  ),
995
+ 'handOverSellerFromPlatform' : IDL.Func(
996
+ [IDL.Text, IDL.Principal],
997
+ [Result],
998
+ [],
999
+ ),
968
1000
  'hasAcknowledgedTA6Wording' : IDL.Func([IDL.Text], [IDL.Bool], ['query']),
969
1001
  'initiate_blockchain_completion' : IDL.Func(
970
1002
  [IDL.Text, IDL.Text, IDL.Text],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propxchain/core-client",
3
- "version": "0.15.1-canary.54",
3
+ "version": "0.17.0-canary.56",
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 TA6Document;
367
+ q5_2Documents: vec AlterationDocument;
368
368
  q5_3NonResidentialUse: TA6Response;
369
369
  q5_4Breaches: TA6Response;
370
370
  q5_5UnresolvedIssues: TA6Response;
@@ -556,11 +556,13 @@ type Result_19 =
556
556
  type Result_18 =
557
557
  variant {
558
558
  err: text;
559
- ok: record {
560
- buyer: principal;
561
- mode: text;
562
- seller: principal;
563
- };
559
+ ok:
560
+ record {
561
+ buyer: principal;
562
+ createdBy: principal;
563
+ mode: text;
564
+ seller: principal;
565
+ };
564
566
  };
565
567
  type Result_17 =
566
568
  variant {
@@ -878,6 +880,35 @@ type AlterationTypes =
878
880
  structuralRoofWorks: bool;
879
881
  windowsPost2002: bool;
880
882
  };
883
+ type AlterationKind =
884
+ variant {
885
+ ChangeOfUse;
886
+ Conservatory;
887
+ Extension;
888
+ GarageConversion;
889
+ InternalWallsRemoved;
890
+ LoftConversion;
891
+ Other;
892
+ StructuralRoofWorks;
893
+ WindowsPost2002;
894
+ };
895
+ type AlterationDocumentKind =
896
+ variant {
897
+ BuildingRegsApproval;
898
+ BuildingRegsCompletion;
899
+ CompetentPersonCertificate;
900
+ ConservationAreaConsent;
901
+ ListedBuildingConsent;
902
+ Other;
903
+ PlanningPermission;
904
+ };
905
+ type AlterationDocument =
906
+ record {
907
+ document: TA6Document;
908
+ kind: opt AlterationDocumentKind;
909
+ kindDetails: opt text;
910
+ relatesTo: opt AlterationKind;
911
+ };
881
912
  type AMLStatus =
882
913
  variant {
883
914
  not_started;
@@ -1005,6 +1036,8 @@ service : {
1005
1036
  getUserManagementCanister: () -> (text) query;
1006
1037
  get_transaction_timeline: (transactionID: text) ->
1007
1038
  (opt TransactionTimeline) query;
1039
+ handOverSellerFromPlatform: (transactionId: text, newSeller: principal) ->
1040
+ (Result);
1008
1041
  hasAcknowledgedTA6Wording: (txId: text) -> (bool) query;
1009
1042
  initiate_blockchain_completion: (transactionID: text, buyerFundsHash:
1010
1043
  text, completionStatementHash: text) -> (Result);
@@ -1019,6 +1052,7 @@ service : {
1019
1052
  /// create. Counterpart to `removeParty` (which is seller/admin-driven and
1020
1053
  /// gated against primary parties) — this is the "I want out" path for a
1021
1054
  /// joined buyer or any other access-list member.
1055
+ ///
1022
1056
  /// Gates:
1023
1057
  /// - Anonymous callers rejected outright.
1024
1058
  /// - Seller / createdBy cannot leave their own transaction (they
@@ -1026,6 +1060,7 @@ service : {
1026
1060
  /// - Caller must currently have access to the transaction.
1027
1061
  /// - Locked after contract exchange (same posture as assignBuyer):
1028
1062
  /// once the deal is signed nobody walks away by toggling a button.
1063
+ ///
1029
1064
  /// Effects:
1030
1065
  /// - Caller is removed from `accessList`.
1031
1066
  /// - If the caller is the assigned buyer (`txn.buyer == msg.caller`),
@@ -1035,6 +1070,7 @@ service : {
1035
1070
  /// reusable by a new joiner.
1036
1071
  /// - Audit event `buyer_left` (or `party_left` for non-buyer leavers)
1037
1072
  /// is logged via the existing ledger pattern.
1073
+ ///
1038
1074
  /// Concurrency: uses the same acquireTxLock/finally releaseTxLock
1039
1075
  /// posture as assignBuyer so a leave can't race against an in-flight
1040
1076
  /// stage write.
@@ -1052,6 +1088,7 @@ service : {
1052
1088
  /// 2. Stale-pin txs where the org's pinned principal changed after the
1053
1089
  /// tx was created (e.g. admin password reset → new ICP key, or org
1054
1090
  /// ownership transferred to a different admin).
1091
+ ///
1055
1092
  /// Idempotent over the target: re-running with the same developerPrincipal
1056
1093
  /// returns an error (already at target), so admin-driven backfill scripts
1057
1094
  /// 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],
@@ -249,7 +271,12 @@ export type Result_16 = { 'ok' : PhaseMilestones } |
249
271
  export type Result_17 = { 'ok' : TransactionPartyProgress } |
250
272
  { 'err' : string };
251
273
  export type Result_18 = {
252
- 'ok' : { 'mode' : string, 'seller' : Principal, 'buyer' : Principal }
274
+ 'ok' : {
275
+ 'mode' : string,
276
+ 'createdBy' : Principal,
277
+ 'seller' : Principal,
278
+ 'buyer' : Principal,
279
+ }
253
280
  } |
254
281
  { 'err' : string };
255
282
  export type Result_19 = { 'ok' : NextStepRecommendation } |
@@ -380,7 +407,7 @@ export interface Section5Alterations {
380
407
  'q5_3NonResidentialUse' : TA6Response,
381
408
  'q5_8ConservationArea' : TA6Response,
382
409
  'q5_9TreePreservationOrder' : TA6Response,
383
- 'q5_2Documents' : Array<TA6Document>,
410
+ 'q5_2Documents' : Array<AlterationDocument>,
384
411
  'q5_4Breaches' : TA6Response,
385
412
  'q5_5UnresolvedIssues' : TA6Response,
386
413
  'q5_1Alterations' : AlterationTypes,
@@ -829,6 +856,7 @@ export interface _SERVICE {
829
856
  [string],
830
857
  [] | [TransactionTimeline]
831
858
  >,
859
+ 'handOverSellerFromPlatform' : ActorMethod<[string, Principal], Result>,
832
860
  'hasAcknowledgedTA6Wording' : ActorMethod<[string], boolean>,
833
861
  'initiate_blockchain_completion' : ActorMethod<
834
862
  [string, string, string],
@@ -271,6 +271,7 @@ export const idlFactory = ({ IDL }) => {
271
271
  const Result_18 = IDL.Variant({
272
272
  'ok' : IDL.Record({
273
273
  'mode' : IDL.Text,
274
+ 'createdBy' : IDL.Principal,
274
275
  'seller' : IDL.Principal,
275
276
  'buyer' : IDL.Principal,
276
277
  }),
@@ -558,12 +559,38 @@ export const idlFactory = ({ IDL }) => {
558
559
  'garageConversion' : IDL.Bool,
559
560
  'extension' : IDL.Bool,
560
561
  });
562
+ const AlterationDocumentKind = IDL.Variant({
563
+ 'BuildingRegsCompletion' : IDL.Null,
564
+ 'ListedBuildingConsent' : IDL.Null,
565
+ 'CompetentPersonCertificate' : IDL.Null,
566
+ 'ConservationAreaConsent' : IDL.Null,
567
+ 'BuildingRegsApproval' : IDL.Null,
568
+ 'Other' : IDL.Null,
569
+ 'PlanningPermission' : IDL.Null,
570
+ });
571
+ const AlterationKind = IDL.Variant({
572
+ 'InternalWallsRemoved' : IDL.Null,
573
+ 'ChangeOfUse' : IDL.Null,
574
+ 'LoftConversion' : IDL.Null,
575
+ 'Extension' : IDL.Null,
576
+ 'Other' : IDL.Null,
577
+ 'StructuralRoofWorks' : IDL.Null,
578
+ 'Conservatory' : IDL.Null,
579
+ 'WindowsPost2002' : IDL.Null,
580
+ 'GarageConversion' : IDL.Null,
581
+ });
582
+ const AlterationDocument = IDL.Record({
583
+ 'kindDetails' : IDL.Opt(IDL.Text),
584
+ 'kind' : IDL.Opt(AlterationDocumentKind),
585
+ 'document' : TA6Document,
586
+ 'relatesTo' : IDL.Opt(AlterationKind),
587
+ });
561
588
  const Section5Alterations = IDL.Record({
562
589
  'q5_6Solar' : IDL.Opt(SolarPower),
563
590
  'q5_3NonResidentialUse' : TA6Response,
564
591
  'q5_8ConservationArea' : TA6Response,
565
592
  'q5_9TreePreservationOrder' : TA6Response,
566
- 'q5_2Documents' : IDL.Vec(TA6Document),
593
+ 'q5_2Documents' : IDL.Vec(AlterationDocument),
567
594
  'q5_4Breaches' : TA6Response,
568
595
  'q5_5UnresolvedIssues' : TA6Response,
569
596
  'q5_1Alterations' : AlterationTypes,
@@ -965,6 +992,11 @@ export const idlFactory = ({ IDL }) => {
965
992
  [IDL.Opt(TransactionTimeline)],
966
993
  ['query'],
967
994
  ),
995
+ 'handOverSellerFromPlatform' : IDL.Func(
996
+ [IDL.Text, IDL.Principal],
997
+ [Result],
998
+ [],
999
+ ),
968
1000
  'hasAcknowledgedTA6Wording' : IDL.Func([IDL.Text], [IDL.Bool], ['query']),
969
1001
  'initiate_blockchain_completion' : IDL.Func(
970
1002
  [IDL.Text, IDL.Text, IDL.Text],