waldur-js-client 8.0.10-dev.23 → 8.0.10-dev.24

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/sdk.gen.js CHANGED
@@ -25834,6 +25834,28 @@ export const proposalProposalsResourcesUpdate = (options) => (options.client ??
25834
25834
  ...options.headers
25835
25835
  }
25836
25836
  });
25837
+ /**
25838
+ * Get a workflow step's checklist with questions and answers.
25839
+ */
25840
+ export const proposalProposalsStepChecklistRetrieve = (options) => (options.client ?? client).get({
25841
+ security: [
25842
+ { name: 'Authorization', type: 'apiKey' },
25843
+ { scheme: 'bearer', type: 'http' }
25844
+ ],
25845
+ url: '/api/proposal-proposals/{uuid}/step-checklist/',
25846
+ ...options
25847
+ });
25848
+ /**
25849
+ * List a workflow step's checklist answers grouped by reviewer, for the threaded technical-assessment view. Each technical reviewer (offering manager) answers the same checklist; this returns every reviewer's decision and comment.
25850
+ */
25851
+ export const proposalProposalsStepChecklistResponsesList = (options) => (options.client ?? client).get({
25852
+ security: [
25853
+ { name: 'Authorization', type: 'apiKey' },
25854
+ { scheme: 'bearer', type: 'http' }
25855
+ ],
25856
+ url: '/api/proposal-proposals/{uuid}/step-checklist-responses/',
25857
+ ...options
25858
+ });
25837
25859
  /**
25838
25860
  * Submit a proposal.
25839
25861
  */
@@ -25845,6 +25867,21 @@ export const proposalProposalsSubmit = (options) => (options.client ?? client).p
25845
25867
  url: '/api/proposal-proposals/{uuid}/submit/',
25846
25868
  ...options
25847
25869
  });
25870
+ /**
25871
+ * Submit answers to a workflow step's checklist.
25872
+ */
25873
+ export const proposalProposalsSubmitStepChecklistAnswers = (options) => (options.client ?? client).post({
25874
+ security: [
25875
+ { name: 'Authorization', type: 'apiKey' },
25876
+ { scheme: 'bearer', type: 'http' }
25877
+ ],
25878
+ url: '/api/proposal-proposals/{uuid}/submit-step-checklist-answers/',
25879
+ ...options,
25880
+ headers: {
25881
+ 'Content-Type': 'application/json',
25882
+ ...options.headers
25883
+ }
25884
+ });
25848
25885
  /**
25849
25886
  * Submit checklist answers.
25850
25887
  */
@@ -26735,6 +26772,28 @@ export const proposalProtectedCallsAvailableComplianceChecklistsCount = (options
26735
26772
  url: '/api/proposal-protected-calls/available_compliance_checklists/',
26736
26773
  ...options
26737
26774
  });
26775
+ /**
26776
+ * List checklists that can be attached to a workflow step (WORKFLOW_STEP-typed). Available to call managers so the workflow config UI can populate its checklist picker without staff-only access to the checklist admin API.
26777
+ */
26778
+ export const proposalProtectedCallsStepChecklistsList = (options) => (options?.client ?? client).get({
26779
+ security: [
26780
+ { name: 'Authorization', type: 'apiKey' },
26781
+ { scheme: 'bearer', type: 'http' }
26782
+ ],
26783
+ url: '/api/proposal-protected-calls/step_checklists/',
26784
+ ...options
26785
+ });
26786
+ /**
26787
+ * Get number of items in the collection matching the request parameters.
26788
+ */
26789
+ export const proposalProtectedCallsStepChecklistsCount = (options) => (options?.client ?? client).head({
26790
+ security: [
26791
+ { name: 'Authorization', type: 'apiKey' },
26792
+ { scheme: 'bearer', type: 'http' }
26793
+ ],
26794
+ url: '/api/proposal-protected-calls/step_checklists/',
26795
+ ...options
26796
+ });
26738
26797
  export const proposalPublicCallsList = (options) => (options?.client ?? client).get({
26739
26798
  security: [
26740
26799
  { name: 'Authorization', type: 'apiKey' },
@@ -3538,6 +3538,10 @@ export type CallWorkflowStep = {
3538
3538
  duration_in_days?: number | null;
3539
3539
  checklist?: string | null;
3540
3540
  readonly checklist_name: string | null;
3541
+ /**
3542
+ * When the step has a checklist, block completion until its required questions are answered. Set False to make the checklist advisory.
3543
+ */
3544
+ checklist_required?: boolean;
3541
3545
  /**
3542
3546
  * Evaluators cannot see each other's assessments.
3543
3547
  */
@@ -3591,6 +3595,10 @@ export type CallWorkflowStepRequest = {
3591
3595
  */
3592
3596
  duration_in_days?: number | null;
3593
3597
  checklist?: string | null;
3598
+ /**
3599
+ * When the step has a checklist, block completion until its required questions are answered. Set False to make the checklist advisory.
3600
+ */
3601
+ checklist_required?: boolean;
3594
3602
  /**
3595
3603
  * Evaluators cannot see each other's assessments.
3596
3604
  */
@@ -17318,6 +17326,10 @@ export type PatchedCallWorkflowStepRequest = {
17318
17326
  */
17319
17327
  duration_in_days?: number | null;
17320
17328
  checklist?: string | null;
17329
+ /**
17330
+ * When the step has a checklist, block completion until its required questions are answered. Set False to make the checklist advisory.
17331
+ */
17332
+ checklist_required?: boolean;
17321
17333
  /**
17322
17334
  * Evaluators cannot see each other's assessments.
17323
17335
  */
@@ -20794,6 +20806,12 @@ export type ProposalReview = {
20794
20806
  comment_project_supporting_documentation?: string | null;
20795
20807
  comment_resource_requests?: string | null;
20796
20808
  comment_team?: string | null;
20809
+ /**
20810
+ * Reviewer confirmed absence of conflict of interest with this proposal.
20811
+ */
20812
+ readonly coi_confirmed: boolean;
20813
+ readonly coi_confirmed_at: string | null;
20814
+ readonly coi_confirmation_required: boolean;
20797
20815
  readonly created: string;
20798
20816
  readonly modified: string;
20799
20817
  };
@@ -20857,6 +20875,7 @@ export type ProposalWorkflowStepInstance = {
20857
20875
  readonly applicant_visible: boolean;
20858
20876
  readonly duration_in_days: number | null;
20859
20877
  readonly is_required: boolean;
20878
+ checklist_status: StepChecklistStatus | null;
20860
20879
  };
20861
20880
  export type ProposalWorkflowStepInstanceStatusEnum = 'pending' | 'active' | 'completed' | 'expired' | 'skipped';
20862
20881
  export type ProposedAssignment = {
@@ -24312,6 +24331,10 @@ export type ReviewSubmitRequest = {
24312
24331
  summary_score?: number;
24313
24332
  summary_public_comment?: string;
24314
24333
  summary_private_comment?: string;
24334
+ /**
24335
+ * Reviewer confirmed absence of conflict of interest with this proposal.
24336
+ */
24337
+ coi_confirmed?: boolean;
24315
24338
  };
24316
24339
  export type ReviewerAffiliation = {
24317
24340
  readonly uuid: string;
@@ -26690,6 +26713,20 @@ export type StateTransitionError = {
26690
26713
  export type Status = {
26691
26714
  status: string;
26692
26715
  };
26716
+ export type StepChecklistResponseGroup = {
26717
+ readonly user_uuid: string | null;
26718
+ readonly user_full_name: string | null;
26719
+ readonly user_image: string | null;
26720
+ submitted_at: string | null;
26721
+ answers: Array<TechnicalAssessmentAnswer>;
26722
+ };
26723
+ export type StepChecklistStatus = {
26724
+ has_checklist: boolean;
26725
+ checklist_required: boolean;
26726
+ checklist_name: string | null;
26727
+ checklist_completed: boolean;
26728
+ unanswered_required_count: number;
26729
+ };
26693
26730
  export type StepEnum = 'administrative_check' | 'technical_assessment' | 'expert_review' | 'panel_review' | 'allocation_decision' | 'award_response';
26694
26731
  export type StorageDataType = {
26695
26732
  key: string;
@@ -27088,6 +27125,15 @@ export type TargetUser = {
27088
27125
  username: string;
27089
27126
  full_name: string;
27090
27127
  };
27128
+ export type TechnicalAssessmentAnswer = {
27129
+ question_uuid: string;
27130
+ question_description: string;
27131
+ question_type: string;
27132
+ answer_data: {
27133
+ [key: string]: unknown;
27134
+ };
27135
+ readonly answer_display: string | null;
27136
+ };
27091
27137
  export type Template = {
27092
27138
  readonly url: string;
27093
27139
  readonly uuid: string;
@@ -80717,6 +80763,82 @@ export type ProposalProposalsResourcesUpdateResponses = {
80717
80763
  200: RequestedResource;
80718
80764
  };
80719
80765
  export type ProposalProposalsResourcesUpdateResponse = ProposalProposalsResourcesUpdateResponses[keyof ProposalProposalsResourcesUpdateResponses];
80766
+ export type ProposalProposalsStepChecklistRetrieveData = {
80767
+ body?: never;
80768
+ path: {
80769
+ uuid: string;
80770
+ };
80771
+ query: {
80772
+ /**
80773
+ * Return all questions ignoring dynamic visibility.
80774
+ */
80775
+ include_all?: string;
80776
+ /**
80777
+ * Workflow step key (e.g. technical_assessment).
80778
+ */
80779
+ step: string;
80780
+ };
80781
+ url: '/api/proposal-proposals/{uuid}/step-checklist/';
80782
+ };
80783
+ export type ProposalProposalsStepChecklistRetrieveErrors = {
80784
+ /**
80785
+ * No step/checklist
80786
+ */
80787
+ 400: unknown;
80788
+ };
80789
+ export type ProposalProposalsStepChecklistRetrieveResponses = {
80790
+ 200: ChecklistResponse;
80791
+ };
80792
+ export type ProposalProposalsStepChecklistRetrieveResponse = ProposalProposalsStepChecklistRetrieveResponses[keyof ProposalProposalsStepChecklistRetrieveResponses];
80793
+ export type ProposalProposalsStepChecklistResponsesListData = {
80794
+ body?: never;
80795
+ path: {
80796
+ uuid: string;
80797
+ };
80798
+ query: {
80799
+ call_uuid?: string;
80800
+ created_by_uuid?: string;
80801
+ my_proposals?: boolean;
80802
+ name?: string;
80803
+ /**
80804
+ * Ordering
80805
+ *
80806
+ *
80807
+ */
80808
+ o?: Array<ProposalOEnum>;
80809
+ organization_uuid?: string;
80810
+ /**
80811
+ * A page number within the paginated result set.
80812
+ */
80813
+ page?: number;
80814
+ /**
80815
+ * Number of results to return per page.
80816
+ */
80817
+ page_size?: number;
80818
+ round?: string;
80819
+ round_uuid?: string;
80820
+ /**
80821
+ * Slug
80822
+ */
80823
+ slug?: string;
80824
+ state?: Array<ProposalStates>;
80825
+ /**
80826
+ * Workflow step key (e.g. technical_assessment).
80827
+ */
80828
+ step: string;
80829
+ };
80830
+ url: '/api/proposal-proposals/{uuid}/step-checklist-responses/';
80831
+ };
80832
+ export type ProposalProposalsStepChecklistResponsesListErrors = {
80833
+ /**
80834
+ * No step/checklist
80835
+ */
80836
+ 400: unknown;
80837
+ };
80838
+ export type ProposalProposalsStepChecklistResponsesListResponses = {
80839
+ 200: Array<StepChecklistResponseGroup>;
80840
+ };
80841
+ export type ProposalProposalsStepChecklistResponsesListResponse = ProposalProposalsStepChecklistResponsesListResponses[keyof ProposalProposalsStepChecklistResponsesListResponses];
80720
80842
  export type ProposalProposalsSubmitData = {
80721
80843
  body?: never;
80722
80844
  path: {
@@ -80731,6 +80853,29 @@ export type ProposalProposalsSubmitResponses = {
80731
80853
  */
80732
80854
  200: unknown;
80733
80855
  };
80856
+ export type ProposalProposalsSubmitStepChecklistAnswersData = {
80857
+ body: Array<AnswerSubmitRequest>;
80858
+ path: {
80859
+ uuid: string;
80860
+ };
80861
+ query: {
80862
+ /**
80863
+ * Workflow step key (e.g. technical_assessment).
80864
+ */
80865
+ step: string;
80866
+ };
80867
+ url: '/api/proposal-proposals/{uuid}/submit-step-checklist-answers/';
80868
+ };
80869
+ export type ProposalProposalsSubmitStepChecklistAnswersErrors = {
80870
+ /**
80871
+ * Validation error or no checklist configured
80872
+ */
80873
+ 400: unknown;
80874
+ };
80875
+ export type ProposalProposalsSubmitStepChecklistAnswersResponses = {
80876
+ 200: ProposalChecklistAnswerSubmitResponse;
80877
+ };
80878
+ export type ProposalProposalsSubmitStepChecklistAnswersResponse = ProposalProposalsSubmitStepChecklistAnswersResponses[keyof ProposalProposalsSubmitStepChecklistAnswersResponses];
80734
80879
  export type ProposalProposalsSubmitAnswersData = {
80735
80880
  body: Array<AnswerSubmitRequest>;
80736
80881
  path: {
@@ -82137,6 +82282,82 @@ export type ProposalProtectedCallsAvailableComplianceChecklistsCountResponses =
82137
82282
  */
82138
82283
  200: unknown;
82139
82284
  };
82285
+ export type ProposalProtectedCallsStepChecklistsListData = {
82286
+ body?: never;
82287
+ path?: never;
82288
+ query?: {
82289
+ customer?: string;
82290
+ customer_keyword?: string;
82291
+ customer_uuid?: string;
82292
+ has_active_round?: boolean;
82293
+ name?: string;
82294
+ /**
82295
+ * Ordering
82296
+ *
82297
+ *
82298
+ */
82299
+ o?: Array<ProtectedCallOEnum>;
82300
+ offering_uuid?: string;
82301
+ offerings_provider_uuid?: string;
82302
+ /**
82303
+ * A page number within the paginated result set.
82304
+ */
82305
+ page?: number;
82306
+ /**
82307
+ * Number of results to return per page.
82308
+ */
82309
+ page_size?: number;
82310
+ /**
82311
+ * Slug
82312
+ */
82313
+ slug?: string;
82314
+ state?: Array<CallStates>;
82315
+ };
82316
+ url: '/api/proposal-protected-calls/step_checklists/';
82317
+ };
82318
+ export type ProposalProtectedCallsStepChecklistsListResponses = {
82319
+ 200: Array<ChecklistShort>;
82320
+ };
82321
+ export type ProposalProtectedCallsStepChecklistsListResponse = ProposalProtectedCallsStepChecklistsListResponses[keyof ProposalProtectedCallsStepChecklistsListResponses];
82322
+ export type ProposalProtectedCallsStepChecklistsCountData = {
82323
+ body?: never;
82324
+ path?: never;
82325
+ query?: {
82326
+ customer?: string;
82327
+ customer_keyword?: string;
82328
+ customer_uuid?: string;
82329
+ has_active_round?: boolean;
82330
+ name?: string;
82331
+ /**
82332
+ * Ordering
82333
+ *
82334
+ *
82335
+ */
82336
+ o?: Array<ProtectedCallOEnum>;
82337
+ offering_uuid?: string;
82338
+ offerings_provider_uuid?: string;
82339
+ /**
82340
+ * A page number within the paginated result set.
82341
+ */
82342
+ page?: number;
82343
+ /**
82344
+ * Number of results to return per page.
82345
+ */
82346
+ page_size?: number;
82347
+ /**
82348
+ * Slug
82349
+ */
82350
+ slug?: string;
82351
+ state?: Array<CallStates>;
82352
+ };
82353
+ url: '/api/proposal-protected-calls/step_checklists/';
82354
+ };
82355
+ export type ProposalProtectedCallsStepChecklistsCountResponses = {
82356
+ /**
82357
+ * No response body
82358
+ */
82359
+ 200: unknown;
82360
+ };
82140
82361
  export type ProposalPublicCallsListData = {
82141
82362
  body?: never;
82142
82363
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.10-dev.23",
3
+ "version": "8.0.10-dev.24",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",