@createiq/backend 1.0.151 → 1.0.153

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.
@@ -213,6 +213,11 @@ export type DocumentVersionsWithMajorChangesDto_DocumentGroupDto = {
213
213
  versions: Array<DocumentVersionsWithMajorChangesDto_DocumentVersionFlagsDto>;
214
214
  };
215
215
 
216
+ export type SetNegotiationGroupPartiesResponseDto = {
217
+ updated: Array<string>;
218
+ failures: Array<NegotiationGroupPartiesFailureDto>;
219
+ };
220
+
216
221
  export type AcceptInviteDto = {
217
222
  accountName?: string;
218
223
  firstName: string;
@@ -257,6 +262,12 @@ export type NegotiationsGroupDto = {
257
262
  negotiations: Array<NegotiationSingleDto>;
258
263
  };
259
264
 
265
+ export type NegotiationGroupPartiesFailureDto = {
266
+ negotiationId: string;
267
+ code: string;
268
+ message: string;
269
+ };
270
+
260
271
  export type ApiUserSummaryDto = {
261
272
  name: string;
262
273
  role: string;
@@ -785,6 +796,7 @@ export type CreateNegotiationGroupDraftsDto = {
785
796
  name: string;
786
797
  documentIds?: Array<unknown>;
787
798
  presetIds?: Array<unknown>;
799
+ documentPackIds?: Array<unknown>;
788
800
  };
789
801
 
790
802
  export type LegalEntityDto = {
@@ -1682,6 +1694,12 @@ export type DocuSignEmailRestriction = 'exact_email_match' | 'in_allowed_domains
1682
1694
 
1683
1695
  export type UserProfileColour = '#000000' | '#6750A4' | '#5C6B8A' | '#008569' | '#F5A623' | '#0172B1' | '#DC2773' | '#B3261E';
1684
1696
 
1697
+ export type NegotiationGroupDraftSourceErrorDto = {
1698
+ sourceType: 'document' | 'preset' | 'pack';
1699
+ sourceId: string;
1700
+ errorCode: string;
1701
+ };
1702
+
1685
1703
  export type NegotiationFileAvailableActionDto = {
1686
1704
  showExecutedDocument: boolean;
1687
1705
  showSignaturePages: boolean;
@@ -2197,10 +2215,6 @@ export type UnsubscribeRequestDto = {
2197
2215
  hash: string;
2198
2216
  };
2199
2217
 
2200
- export type PresetSingleWithPreviewAndNestedAnswersDto = PresetSingleWithPreviewDto & {
2201
- nestedAnswerFullSummary: NestedAnswersSummariesWithPresetAnswersDto;
2202
- };
2203
-
2204
2218
  export type SearchContext = 'completed' | 'active' | 'confirmedTemplate';
2205
2219
 
2206
2220
  export type ApproverDto = ({
@@ -2209,6 +2223,11 @@ export type ApproverDto = ({
2209
2223
  type: 'AnonymousApproverDto';
2210
2224
  } & AnonymousApproverDto);
2211
2225
 
2226
+ export type NegotiationGroupDraftSourceDto = {
2227
+ sourceType: 'document' | 'preset' | 'pack';
2228
+ sourceId: string;
2229
+ };
2230
+
2212
2231
  export type ApprovalCommentsAvailableActionsDto = {
2213
2232
  canCreate: boolean;
2214
2233
  };
@@ -2218,6 +2237,15 @@ export type AccountUserShareDto = {
2218
2237
  message?: string;
2219
2238
  };
2220
2239
 
2240
+ export type NegotiationGroupDraftsDryRunResponseDto = {
2241
+ valid: Array<NegotiationGroupDraftSourceDto>;
2242
+ failures: Array<NegotiationGroupDraftSourceErrorDto>;
2243
+ };
2244
+
2245
+ export type PresetSingleWithPreviewAndNestedAnswersDto = PresetSingleWithPreviewDto & {
2246
+ nestedAnswerFullSummary: NestedAnswersSummariesWithPresetAnswersDto;
2247
+ };
2248
+
2221
2249
  export type FormattingTag = 'strong' | 'em' | 'underline' | 'subscript' | 'superscript' | 'strikethrough';
2222
2250
 
2223
2251
  export type NoteType = 'internal' | 'external';
@@ -2472,7 +2500,7 @@ export type ManualReminderEmailInfoDto = {
2472
2500
 
2473
2501
  export type TextValidationFormat = 'number' | 'decimal' | 'year' | 'onlyNumbers' | 'custom' | 'constant';
2474
2502
 
2475
- export type NegotiationGroupDraftSourceType = 'document' | 'preset';
2503
+ export type NegotiationGroupDraftSourceType = 'document' | 'preset' | 'pack';
2476
2504
 
2477
2505
  export type ComponentAnswerDto_FundListEntityDto = {
2478
2506
  entityId: string;
@@ -2508,11 +2536,6 @@ export type SendGroupToCounterpartyResponseDto = {
2508
2536
  state: SendGroupToCounterpartyResponseDto_SendGroupToCounterpartyResultDto;
2509
2537
  };
2510
2538
 
2511
- export type DocumentPublisherDisclaimerDto = {
2512
- pack?: DocumentPublisherPackDisclaimerDto;
2513
- document?: DocumentPublisherDocumentDisclaimerDto;
2514
- };
2515
-
2516
2539
  export type RenderedFilenameTemplatesDto = {
2517
2540
  executedTemplate: string;
2518
2541
  inProgressTemplate: string;
@@ -2545,6 +2568,17 @@ export type UpdateCapitalMarketsOrganisationTypeDto = {
2545
2568
  capitalMarketsOrganisationType?: CapitalMarketsOrganisationType;
2546
2569
  };
2547
2570
 
2571
+ export type NegotiationGroupDraftsResponseDto = {
2572
+ negotiationGroupId: string;
2573
+ created: Array<string>;
2574
+ failures: Array<NegotiationGroupDraftSourceErrorDto>;
2575
+ };
2576
+
2577
+ export type DocumentPublisherDisclaimerDto = {
2578
+ pack?: DocumentPublisherPackDisclaimerDto;
2579
+ document?: DocumentPublisherDocumentDisclaimerDto;
2580
+ };
2581
+
2548
2582
  export type SubAccountIdNameShareSettingsDto = {
2549
2583
  id: string;
2550
2584
  name: string;
@@ -3575,6 +3609,16 @@ export type EditEventOp = ({
3575
3609
  type: 'EditEventOp.AnswerValueChange';
3576
3610
  } & EditEventOp_AnswerValueChange);
3577
3611
 
3612
+ export type GroupCounterpartyDto = {
3613
+ externalComment?: string;
3614
+ entity: EntityIdDto;
3615
+ correlationId?: AccountCorrelationIdDto;
3616
+ attachDocx?: boolean;
3617
+ email?: DraftEmailDto;
3618
+ additionalEmails?: Array<DraftEmailDto>;
3619
+ attachPdf?: boolean;
3620
+ };
3621
+
3578
3622
  export type CalendricalFrequency = 'daily' | 'weekly' | 'monthly';
3579
3623
 
3580
3624
  export type NegotiationSingleDto = {
@@ -3974,8 +4018,6 @@ export type DocumentIdWithDraftingNotesFlagDto = {
3974
4018
  hasExternalDraftingNotes: boolean;
3975
4019
  };
3976
4020
 
3977
- export type NegotiationOrderKey = 'activeUser' | 'created' | 'documentType' | 'status' | 'lastAction' | 'lastActionWithFavouritesFirst' | 'myEntityName' | 'counterPartyEntityName' | 'displayReferenceId' | 'approverName';
3978
-
3979
4021
  export type WorkflowType = 'offline' | 'w1' | 'w1Ext' | 'w1ExtOffline' | 'w1ExtStage2' | 'w1ExtStage2Offline' | 'w1ExtCombinedStage' | 'w1ExtCombinedStageOffline';
3980
4022
 
3981
4023
  export type FilterResultDto = {
@@ -4041,6 +4083,13 @@ export type ElectionAnswerSummaryDto = {
4041
4083
  amendMatched?: boolean;
4042
4084
  };
4043
4085
 
4086
+ export type SetNegotiationGroupPartiesDto = {
4087
+ ownerEntityId?: string;
4088
+ counterparty?: GroupCounterpartyDto;
4089
+ };
4090
+
4091
+ export type NegotiationOrderKey = 'activeUser' | 'created' | 'documentType' | 'status' | 'lastAction' | 'lastActionWithFavouritesFirst' | 'myEntityName' | 'counterPartyEntityName' | 'displayReferenceId' | 'approverName';
4092
+
4044
4093
  export type GuestApprovalRequestDto = {
4045
4094
  email: string;
4046
4095
  message: string;
@@ -5043,11 +5092,11 @@ export type createGroupWithDraftsData = {
5043
5092
 
5044
5093
  export type createGroupWithDraftsErrors = {
5045
5094
  /**
5046
- * No sources, too many sources, or one or more sources that cannot be used. Each unusable source is reported as a cause naming its type and ID
5095
+ * No sources, too many sources, or no source produced a draft. Each failed source is reported as a cause naming its type and ID
5047
5096
  */
5048
5097
  400: unknown;
5049
5098
  /**
5050
- * The role cannot create negotiation groups, or a draft could not be created from one of the sources
5099
+ * The role cannot create negotiation groups
5051
5100
  */
5052
5101
  403: unknown;
5053
5102
  /**
@@ -5058,9 +5107,9 @@ export type createGroupWithDraftsErrors = {
5058
5107
 
5059
5108
  export type createGroupWithDraftsResponses = {
5060
5109
  /**
5061
- * Draft negotiations and negotiation group created
5110
+ * The negotiation group was created, along with a draft for at least one source. Sources that produced no draft are listed in failures
5062
5111
  */
5063
- 201: NegotiationGroupIdDto;
5112
+ 201: NegotiationGroupDraftsResponseDto;
5064
5113
  };
5065
5114
 
5066
5115
  export type createGroupWithDraftsResponse = createGroupWithDraftsResponses[keyof createGroupWithDraftsResponses];
@@ -7792,6 +7841,39 @@ export type markActivityEventsAsViewedResponses = {
7792
7841
  200: unknown;
7793
7842
  };
7794
7843
 
7844
+ export type dryRunGroupWithDraftsData = {
7845
+ body: CreateNegotiationGroupDraftsDto;
7846
+ path: {
7847
+ subAccountId: string;
7848
+ };
7849
+ query?: never;
7850
+ url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/drafts/dryRun';
7851
+ };
7852
+
7853
+ export type dryRunGroupWithDraftsErrors = {
7854
+ /**
7855
+ * No sources, too many sources, or no source would produce a draft. Each failed source is reported as a cause naming its type and ID
7856
+ */
7857
+ 400: unknown;
7858
+ /**
7859
+ * The role cannot create negotiation groups
7860
+ */
7861
+ 403: unknown;
7862
+ /**
7863
+ * The negotiation group name is already used in this workspace
7864
+ */
7865
+ 409: unknown;
7866
+ };
7867
+
7868
+ export type dryRunGroupWithDraftsResponses = {
7869
+ /**
7870
+ * At least one source would produce a draft. Sources that would not are listed in failures
7871
+ */
7872
+ 200: NegotiationGroupDraftsDryRunResponseDto;
7873
+ };
7874
+
7875
+ export type dryRunGroupWithDraftsResponse = dryRunGroupWithDraftsResponses[keyof dryRunGroupWithDraftsResponses];
7876
+
7795
7877
  export type cancelExtractionData = {
7796
7878
  body?: never;
7797
7879
  path: {
@@ -7894,6 +7976,40 @@ export type getCommentsResponses = {
7894
7976
  200: unknown;
7895
7977
  };
7896
7978
 
7979
+ export type setGroupPartiesData = {
7980
+ body: SetNegotiationGroupPartiesDto;
7981
+ path: {
7982
+ subAccountId: string;
7983
+ negotiationGroupId: string;
7984
+ };
7985
+ query?: never;
7986
+ url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}/parties';
7987
+ };
7988
+
7989
+ export type setGroupPartiesErrors = {
7990
+ /**
7991
+ * Neither an owner entity nor a counterparty was supplied, or the supplied details are invalid
7992
+ */
7993
+ 400: unknown;
7994
+ /**
7995
+ * Unauthorised access of the negotiation group and the Sub-Account, or no negotiation in the group is in a state that accepts the change
7996
+ */
7997
+ 403: unknown;
7998
+ /**
7999
+ * Negotiation group not found, or the owner entity is not available in this workspace
8000
+ */
8001
+ 404: unknown;
8002
+ };
8003
+
8004
+ export type setGroupPartiesResponses = {
8005
+ /**
8006
+ * The negotiations that were updated, and any that could not be
8007
+ */
8008
+ 200: SetNegotiationGroupPartiesResponseDto;
8009
+ };
8010
+
8011
+ export type setGroupPartiesResponse = setGroupPartiesResponses[keyof setGroupPartiesResponses];
8012
+
7897
8013
  export type contactForNewApproverData = {
7898
8014
  body?: never;
7899
8015
  path: {