@hapl/api-queries 0.2.34 → 0.2.35

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.
Files changed (43) hide show
  1. package/dist/api-queries.cjs.development.js +1947 -1387
  2. package/dist/api-queries.cjs.development.js.map +1 -1
  3. package/dist/api-queries.cjs.production.min.js +1 -1
  4. package/dist/api-queries.cjs.production.min.js.map +1 -1
  5. package/dist/api-queries.esm.js +1947 -1387
  6. package/dist/api-queries.esm.js.map +1 -1
  7. package/dist/clients/v1/api/callTask/bookCallTask.d.ts +29 -0
  8. package/dist/clients/v1/api/callTask/findCallTasks.d.ts +8 -1
  9. package/dist/clients/v1/api/callTask/findCallTasksCount.d.ts +48 -0
  10. package/dist/clients/v1/api/deal/createDeal/index.d.ts +56 -0
  11. package/dist/clients/v1/api/deal/findDealById/index.d.ts +29 -0
  12. package/dist/clients/v1/api/deal/setDealPrepaidDate/index.d.ts +35 -0
  13. package/dist/clients/v1/api/deal/updateDeal/index.d.ts +4 -3
  14. package/dist/clients/v1/api/index.d.ts +8 -0
  15. package/dist/clients/v1/api/realty/findRealtyDuplicate/index.d.ts +37 -0
  16. package/dist/clients/v1/api/stats/findMarkupBySourceCalls/index.d.ts +42 -0
  17. package/dist/clients/v1/api/stats/findMarkupCalls/index.d.ts +42 -0
  18. package/dist/clients/v1/dictionaries/Deal.d.ts +28 -1
  19. package/dist/clients/v1/index.d.ts +8 -0
  20. package/dist/clients/v1/types/CallStats.d.ts +15 -0
  21. package/dist/clients/v1/types/Deal.d.ts +29 -0
  22. package/dist/clients/v1/types/DealParticipant.d.ts +4 -1
  23. package/dist/clients/v1/types/File.d.ts +1 -0
  24. package/dist/clients/v1/types/index.d.ts +3 -2
  25. package/package.json +1 -1
  26. package/src/clients/v1/api/callTask/bookCallTask.ts +42 -0
  27. package/src/clients/v1/api/callTask/findCallTasks.ts +5 -1
  28. package/src/clients/v1/api/callTask/findCallTasksCount.ts +58 -0
  29. package/src/clients/v1/api/deal/createDeal/index.ts +52 -0
  30. package/src/clients/v1/api/deal/findDealById/index.ts +39 -0
  31. package/src/clients/v1/api/deal/setDealPrepaidDate/index.ts +44 -0
  32. package/src/clients/v1/api/deal/updateDeal/index.ts +10 -3
  33. package/src/clients/v1/api/index.ts +9 -0
  34. package/src/clients/v1/api/realty/findRealtyDuplicate/index.ts +48 -0
  35. package/src/clients/v1/api/stats/findMarkupBySourceCalls/index.ts +59 -0
  36. package/src/clients/v1/api/stats/findMarkupCalls/index.ts +59 -0
  37. package/src/clients/v1/dictionaries/Deal.ts +28 -1
  38. package/src/clients/v1/index.ts +41 -0
  39. package/src/clients/v1/types/CallStats.ts +16 -0
  40. package/src/clients/v1/types/Deal.ts +31 -0
  41. package/src/clients/v1/types/DealParticipant.ts +1 -1
  42. package/src/clients/v1/types/File.ts +1 -0
  43. package/src/clients/v1/types/index.ts +3 -2
@@ -5,6 +5,35 @@ import { User } from './User';
5
5
  import { DealParticipant } from './DealParticipant';
6
6
  import { Buyer } from './Buyer';
7
7
 
8
+ export enum DealFileCategory {
9
+ DeleteReason = 'deleteReason',
10
+ Egrn = 'egrn',
11
+ OwnershipTransfers = 'ownership_transfers',
12
+ Risk = 'risk',
13
+ Act = 'act',
14
+ ActDeveloper = 'act_developer',
15
+ OwnershipCertificate = 'ownership_certificate',
16
+ FloorPlan = 'floor_plan',
17
+ Explication = 'explication',
18
+ Egd = 'egd',
19
+ ReferenceNoDebtGku = 'reference_no_debt_gku',
20
+ ReferenceNoDebtRepair = 'reference_no_debt_repair',
21
+ ReferencePnd = 'reference_pnd',
22
+ ReferenceNd = 'reference_nd',
23
+ PassportContractor = 'passport_contractor',
24
+ MarriageCertificateContractor = 'marriage_certificate_contractor',
25
+ SpouseAgreementContractor = 'spouse_agreement_contractor',
26
+ Invest = 'invest',
27
+ Other = 'other',
28
+ }
29
+
30
+ export enum DealBillServiceType {
31
+ PartPayment = 'part_payment',
32
+ FullPayment = 'full_payment',
33
+ BuyServicePayment = 'buy_service_payment',
34
+ SecurityDepositPayment = 'security_deposit_payment',
35
+ }
36
+
8
37
  export enum DealNoLawyerReason {
9
38
  FromDeveloper = 'from_developer',
10
39
  NoLawyerOffice = 'no_lawyer_office',
@@ -39,6 +68,7 @@ export type Deal = {
39
68
  receivedCommission: number;
40
69
  status: DealStatus;
41
70
 
71
+ actDeveloperSignedAt?: string;
42
72
  actSignedAt?: string;
43
73
  canBeDealDone?: boolean;
44
74
  classificationScore?: number;
@@ -52,6 +82,7 @@ export type Deal = {
52
82
  dealSignedAt?: string;
53
83
  dealSignPlannedAt?: string;
54
84
  dealSingedAt?: string;
85
+ partnerDealType?: DealPartnerDealType;
55
86
  files?: Array<Partial<File> & Required<Pick<File, 'id'>>>;
56
87
  filesInDeal?: { id: number };
57
88
  guaranteedPayment?: boolean;
@@ -16,7 +16,7 @@ export enum DealParticipantPosition {
16
16
  export type DealParticipant = {
17
17
  id: number;
18
18
  name: string;
19
- phone: string;
19
+ phone: { id?: number; number: string };
20
20
  position: DealParticipantPosition;
21
21
  side: DealParticipantSide;
22
22
  other?: string;
@@ -18,4 +18,5 @@ export type File = {
18
18
  url: string;
19
19
  createdAt: string;
20
20
  category?: string | FileCategory;
21
+ isRemovable?: boolean;
21
22
  };
@@ -4,11 +4,12 @@ export * from './AddressMetroDistance';
4
4
  export * from './AvailableFunds';
5
5
  export * from './Bill';
6
6
  export * from './Buyer';
7
- export * from './BuyerPhone';
8
7
  export * from './BuyerClosingReason';
8
+ export * from './BuyerPhone';
9
9
  export * from './BuyerStatusHistory';
10
10
  export * from './Call';
11
11
  export * from './CallProxy';
12
+ export * from './CallStats';
12
13
  export * from './CallTask';
13
14
  export * from './Comment';
14
15
  export * from './Contact';
@@ -39,8 +40,8 @@ export * from './RealtyOffer';
39
40
  export * from './ServiceRequest';
40
41
  export * from './ServiceRequestActivity';
41
42
  export * from './ServiceRequestCategorizedFile';
42
- export * from './ServiceRequestSellerReport';
43
43
  export * from './ServiceRequestFeedbackCategory';
44
+ export * from './ServiceRequestSellerReport';
44
45
  export * from './ServiceRequestShortInfo';
45
46
  export * from './Shape';
46
47
  export * from './SoldStatistic';