@createiq/backend 1.0.162 → 1.0.163

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.
@@ -510,12 +510,6 @@ export type AccountIntegrationDataDto = {
510
510
  accountCorrelationId: string;
511
511
  };
512
512
 
513
- export type AuditEventDto = {
514
- auditEventId: string;
515
- effect: AuditEventEffectDto;
516
- cause: AuditEventCauseDto;
517
- };
518
-
519
513
  export type DocumentPackWithDocumentsDto = {
520
514
  pack: DocumentPackDto;
521
515
  access?: 'required' | 'granted' | 'restricted';
@@ -541,11 +535,6 @@ export type NegotiationFilesSummaryDto = {
541
535
  negotiationFileNames: NegotiationFileNamesDto;
542
536
  };
543
537
 
544
- export type PartyNestedAnswersIdsDto = {
545
- partyId: string;
546
- nestedAnswersIds: Array<string>;
547
- };
548
-
549
538
  export type DocumentStatisticsDto_NegotiationStatistics = {
550
539
  draft: DocumentStatisticsDto_StateStatistic;
551
540
  inFlight: DocumentStatisticsDto_StateStatistic;
@@ -580,6 +569,20 @@ export type OneLinkDisplayTypeDto = 'oneLinkApproverLogin' | 'oneLinkEditorLogin
580
569
 
581
570
  export type NotificationCategory = 'notifications_panel_updates' | 'invitation' | 'negotiation_updates' | 'approval' | 'other' | 'always_enabled';
582
571
 
572
+ export type ElectionInsightDto = {
573
+ number?: number;
574
+ description?: string;
575
+ label: string;
576
+ components: Array<ComponentInsightDto>;
577
+ id: string;
578
+ };
579
+
580
+ export type AuditEventDto = {
581
+ auditEventId: string;
582
+ effect: AuditEventEffectDto;
583
+ cause: AuditEventCauseDto;
584
+ };
585
+
583
586
  export type NegotiationAnswersDto = {
584
587
  partyA?: PartyAnswersDto;
585
588
  partyB?: PartyAnswersDto;
@@ -723,6 +726,15 @@ export type SingleRecipientNotificationDto = {
723
726
  notificationType: NotificationTypeDto;
724
727
  };
725
728
 
729
+ export type PartyNestedAnswersIdsDto = {
730
+ partyId: string;
731
+ nestedAnswersIds: Array<string>;
732
+ };
733
+
734
+ export type ValueUnchangedDto = {
735
+ unchanged: boolean;
736
+ };
737
+
726
738
  export type AdvisorNegotiationRequestDto = {
727
739
  negotiationIds: Array<string>;
728
740
  };
@@ -883,6 +895,13 @@ export type NegotiationReminderWithRecipientsDto = {
883
895
 
884
896
  export type AuditReportType = 'audit_log_report' | 'comments_log_report';
885
897
 
898
+ export type NegotiationInsightStatusTotalsDto = {
899
+ held: number;
900
+ negotiated: number;
901
+ accepted: number;
902
+ total: number;
903
+ };
904
+
886
905
  export type SetNegotiationPackagePartiesDto = {
887
906
  ownerEntityId?: string;
888
907
  counterparty?: PackageCounterpartyDto;
@@ -1778,6 +1797,18 @@ export type ESignAccountStatusDto = {
1778
1797
  value: string;
1779
1798
  };
1780
1799
 
1800
+ export type ComponentInsightDto_Component = {
1801
+ children?: Array<ComponentInsightDto>;
1802
+ label: string;
1803
+ answers: {
1804
+ [key: string]: ComponentAnswerDto | ValueUnchangedDto;
1805
+ };
1806
+ status: PositionStatus;
1807
+ type: 'component';
1808
+ bulkUploadV2Label?: string;
1809
+ componentId: string;
1810
+ };
1811
+
1781
1812
  export type ShareRequestDto = {
1782
1813
  generalMessage?: string;
1783
1814
  accountUsers: Array<AccountUserShareDto>;
@@ -2132,6 +2163,8 @@ export type AccountAvailableActionsDto = {
2132
2163
  disableIsAdvisor: boolean;
2133
2164
  };
2134
2165
 
2166
+ export type ComponentInsightDto = ComponentInsightDto_Component | ComponentInsightDto_TextAmendment;
2167
+
2135
2168
  export type ClassificationConfidence = 'High' | 'Medium' | 'Low';
2136
2169
 
2137
2170
  export type UpsertDocumentPublisherDto = {
@@ -2166,6 +2199,11 @@ export type OneLinkInvitationDetailsDto = {
2166
2199
 
2167
2200
  export type PresetHealthIssue = 'approvalrulesbroken' | 'schemaupgraderequired';
2168
2201
 
2202
+ export type InsightVersionDto = {
2203
+ version: string;
2204
+ comparePosition: boolean;
2205
+ };
2206
+
2169
2207
  export type PartyAnswersPatchDto = {
2170
2208
  answersLastModified?: string;
2171
2209
  patch: Array<{
@@ -2584,10 +2622,6 @@ export type RawResultSetDto = {
2584
2622
 
2585
2623
  export type UIPartyPosition = 'partyA' | 'partyB' | 'moderator';
2586
2624
 
2587
- export type UpdateCapitalMarketsOrganisationTypeDto = {
2588
- capitalMarketsOrganisationType?: CapitalMarketsOrganisationType;
2589
- };
2590
-
2591
2625
  export type SubAccountIdNameShareSettingsDto = {
2592
2626
  id: string;
2593
2627
  name: string;
@@ -2596,6 +2630,12 @@ export type SubAccountIdNameShareSettingsDto = {
2596
2630
 
2597
2631
  export type DocumentOrderKey = 'negotiationId';
2598
2632
 
2633
+ export type PositionStatus = 'held' | 'negotiated' | 'cp-accepted' | 'not-applicable';
2634
+
2635
+ export type UpdateCapitalMarketsOrganisationTypeDto = {
2636
+ capitalMarketsOrganisationType?: CapitalMarketsOrganisationType;
2637
+ };
2638
+
2599
2639
  export type SecurityContextDto = {
2600
2640
  name: string;
2601
2641
  enabledFeatures: Array<string>;
@@ -3458,11 +3498,6 @@ export type SelectedElectionsRequestDto = {
3458
3498
  electionIds: Array<string>;
3459
3499
  };
3460
3500
 
3461
- export type SubAccountIdAndNameDto = {
3462
- subAccountId: string;
3463
- subAccountName: string;
3464
- };
3465
-
3466
3501
  export type ChannelType = 'internal' | 'external' | 'moderator' | 'execution' | 'internal-execution';
3467
3502
 
3468
3503
  export type OwnerEntityDto = {
@@ -3538,6 +3573,19 @@ export type TimelineEventType = never;
3538
3573
 
3539
3574
  export type AccessRequestState = 'pending' | 'approved' | 'rejected';
3540
3575
 
3576
+ export type SubAccountIdAndNameDto = {
3577
+ subAccountId: string;
3578
+ subAccountName: string;
3579
+ };
3580
+
3581
+ export type ComponentInsightDto_TextAmendment = {
3582
+ status: PositionStatus;
3583
+ answers: {
3584
+ [key: string]: string | ValueUnchangedDto;
3585
+ };
3586
+ type: 'textAmendment';
3587
+ };
3588
+
3541
3589
  export type UserId = string;
3542
3590
 
3543
3591
  export type PartyElectionNestedAnswersDto = {
@@ -4338,6 +4386,14 @@ export type AuditTrailFiltersDto = {
4338
4386
  subAccounts: Array<SubAccountWithIdAndOptionalNameDto>;
4339
4387
  };
4340
4388
 
4389
+ export type NegotiationInsightDto = {
4390
+ parties: Array<NegotiationPartyDto>;
4391
+ elections: Array<ElectionInsightDto>;
4392
+ statusTotals: NegotiationInsightStatusTotalsDto;
4393
+ negotiationState: NegotiationUIState;
4394
+ allVersions: Array<InsightVersionDto>;
4395
+ };
4396
+
4341
4397
  export type NegotiationUIFilterCountsDto = {
4342
4398
  ourTurn: number;
4343
4399
  triparty: number;
@@ -8498,6 +8554,33 @@ export type updateUserAnswersResponses = {
8498
8554
 
8499
8555
  export type updateUserAnswersResponse = updateUserAnswersResponses[keyof updateUserAnswersResponses];
8500
8556
 
8557
+ export type getNestedAnswerInsightsData = {
8558
+ body?: never;
8559
+ path: {
8560
+ subAccountId: string;
8561
+ negotiationId: string;
8562
+ nestedAnswerId: string;
8563
+ };
8564
+ query?: never;
8565
+ url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/insights/nestedAnswers/{nestedAnswerId}';
8566
+ };
8567
+
8568
+ export type getNestedAnswerInsightsErrors = {
8569
+ /**
8570
+ * Forbidden - user does not have access to this negotiation
8571
+ */
8572
+ 403: unknown;
8573
+ };
8574
+
8575
+ export type getNestedAnswerInsightsResponses = {
8576
+ /**
8577
+ * The nested answer's per-version election history
8578
+ */
8579
+ 200: NegotiationInsightDto;
8580
+ };
8581
+
8582
+ export type getNestedAnswerInsightsResponse = getNestedAnswerInsightsResponses[keyof getNestedAnswerInsightsResponses];
8583
+
8501
8584
  export type updateNegotiationsToMatchData = {
8502
8585
  body: UpdateNegotiationsToMatchDto;
8503
8586
  path: {
@@ -9308,6 +9391,32 @@ export type consentCodeCallbackData = {
9308
9391
  url: '/api/v1/docusign/redirectCodeCallback';
9309
9392
  };
9310
9393
 
9394
+ export type getNegotiationInsightsData = {
9395
+ body?: never;
9396
+ path: {
9397
+ subAccountId: string;
9398
+ negotiationId: string;
9399
+ };
9400
+ query?: never;
9401
+ url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/insights/elections';
9402
+ };
9403
+
9404
+ export type getNegotiationInsightsErrors = {
9405
+ /**
9406
+ * Forbidden - user does not have access to this negotiation
9407
+ */
9408
+ 403: unknown;
9409
+ };
9410
+
9411
+ export type getNegotiationInsightsResponses = {
9412
+ /**
9413
+ * The per-version answer history of every election
9414
+ */
9415
+ 200: NegotiationInsightDto;
9416
+ };
9417
+
9418
+ export type getNegotiationInsightsResponse = getNegotiationInsightsResponses[keyof getNegotiationInsightsResponses];
9419
+
9311
9420
  export type getOfflineNegotiatedDocumentAnnotationsData = {
9312
9421
  body?: never;
9313
9422
  path: {
@@ -9435,6 +9544,37 @@ export type listAdvisorsForWorkspaceResponses = {
9435
9544
 
9436
9545
  export type listAdvisorsForWorkspaceResponse = listAdvisorsForWorkspaceResponses[keyof listAdvisorsForWorkspaceResponses];
9437
9546
 
9547
+ export type getElectionInsightsData = {
9548
+ body?: never;
9549
+ path: {
9550
+ subAccountId: string;
9551
+ negotiationId: string;
9552
+ electionId: string;
9553
+ };
9554
+ query?: never;
9555
+ url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/insights/elections/{electionId}';
9556
+ };
9557
+
9558
+ export type getElectionInsightsErrors = {
9559
+ /**
9560
+ * The election specified does not exist in the schema
9561
+ */
9562
+ 400: unknown;
9563
+ /**
9564
+ * Forbidden - user does not have access to this negotiation
9565
+ */
9566
+ 403: unknown;
9567
+ };
9568
+
9569
+ export type getElectionInsightsResponses = {
9570
+ /**
9571
+ * The election's per-version answer history
9572
+ */
9573
+ 200: ElectionInsightDto;
9574
+ };
9575
+
9576
+ export type getElectionInsightsResponse = getElectionInsightsResponses[keyof getElectionInsightsResponses];
9577
+
9438
9578
  export type checkOfflineNegotiatedDocumentData = {
9439
9579
  body?: never;
9440
9580
  path: {