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

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 = {
@@ -20965,6 +20984,10 @@ export type ProtectedCall = {
20965
20984
  [key: string]: unknown;
20966
20985
  };
20967
20986
  applicant_visibility_config?: CallApplicantVisibilityConfig | null;
20987
+ /**
20988
+ * Whether any proposal has been submitted to this call. Used by the frontend to gate slug-template and checklist fields.
20989
+ */
20990
+ readonly has_proposals: boolean;
20968
20991
  };
20969
20992
  export type ProtectedCallRequest = {
20970
20993
  /**
@@ -24312,6 +24335,10 @@ export type ReviewSubmitRequest = {
24312
24335
  summary_score?: number;
24313
24336
  summary_public_comment?: string;
24314
24337
  summary_private_comment?: string;
24338
+ /**
24339
+ * Reviewer confirmed absence of conflict of interest with this proposal.
24340
+ */
24341
+ coi_confirmed?: boolean;
24315
24342
  };
24316
24343
  export type ReviewerAffiliation = {
24317
24344
  readonly uuid: string;
@@ -26690,6 +26717,20 @@ export type StateTransitionError = {
26690
26717
  export type Status = {
26691
26718
  status: string;
26692
26719
  };
26720
+ export type StepChecklistResponseGroup = {
26721
+ readonly user_uuid: string | null;
26722
+ readonly user_full_name: string | null;
26723
+ readonly user_image: string | null;
26724
+ submitted_at: string | null;
26725
+ answers: Array<TechnicalAssessmentAnswer>;
26726
+ };
26727
+ export type StepChecklistStatus = {
26728
+ has_checklist: boolean;
26729
+ checklist_required: boolean;
26730
+ checklist_name: string | null;
26731
+ checklist_completed: boolean;
26732
+ unanswered_required_count: number;
26733
+ };
26693
26734
  export type StepEnum = 'administrative_check' | 'technical_assessment' | 'expert_review' | 'panel_review' | 'allocation_decision' | 'award_response';
26694
26735
  export type StorageDataType = {
26695
26736
  key: string;
@@ -27088,6 +27129,15 @@ export type TargetUser = {
27088
27129
  username: string;
27089
27130
  full_name: string;
27090
27131
  };
27132
+ export type TechnicalAssessmentAnswer = {
27133
+ question_uuid: string;
27134
+ question_description: string;
27135
+ question_type: string;
27136
+ answer_data: {
27137
+ [key: string]: unknown;
27138
+ };
27139
+ readonly answer_display: string | null;
27140
+ };
27091
27141
  export type Template = {
27092
27142
  readonly url: string;
27093
27143
  readonly uuid: string;
@@ -31287,7 +31337,7 @@ export type ProjectCreditOEnum = '-end_date' | '-expected_consumption' | '-proje
31287
31337
  export type CampaignOEnum = '-end_date' | '-start_date' | 'end_date' | 'start_date';
31288
31338
  export type CampaignStateEnum = 'Active' | 'Draft' | 'Terminated';
31289
31339
  export type ProposalOEnum = '-created' | '-round__call__name' | '-round__cutoff_time' | '-round__start_time' | '-slug' | '-state' | 'created' | 'round__call__name' | 'round__cutoff_time' | 'round__start_time' | 'slug' | 'state';
31290
- export type ProtectedCallFieldEnum = 'applicant_visibility_config' | 'backend_id' | 'compliance_checklist' | 'compliance_checklist_name' | 'created' | 'created_by' | 'customer_name' | 'customer_uuid' | 'description' | 'documents' | 'end_date' | 'external_url' | 'fixed_duration_in_days' | 'has_eligibility_restrictions' | 'manager' | 'manager_uuid' | 'name' | 'offerings' | 'proposal_slug_template' | 'reference_code' | 'resource_templates' | 'reviewer_identity_visible_to_submitters' | 'reviews_visible_to_submitters' | 'rounds' | 'slug' | 'start_date' | 'state' | 'url' | 'user_affiliations' | 'user_assurance_levels' | 'user_email_patterns' | 'user_identity_sources' | 'user_nationalities' | 'user_organization_types' | 'uuid';
31340
+ export type ProtectedCallFieldEnum = 'applicant_visibility_config' | 'backend_id' | 'compliance_checklist' | 'compliance_checklist_name' | 'created' | 'created_by' | 'customer_name' | 'customer_uuid' | 'description' | 'documents' | 'end_date' | 'external_url' | 'fixed_duration_in_days' | 'has_eligibility_restrictions' | 'has_proposals' | 'manager' | 'manager_uuid' | 'name' | 'offerings' | 'proposal_slug_template' | 'reference_code' | 'resource_templates' | 'reviewer_identity_visible_to_submitters' | 'reviews_visible_to_submitters' | 'rounds' | 'slug' | 'start_date' | 'state' | 'url' | 'user_affiliations' | 'user_assurance_levels' | 'user_email_patterns' | 'user_identity_sources' | 'user_nationalities' | 'user_organization_types' | 'uuid';
31291
31341
  export type ProtectedCallOEnum = '-created' | '-manager__customer__name' | '-name' | 'created' | 'manager__customer__name' | 'name';
31292
31342
  export type AffinityMatrixResponseScopeEnum = 'all' | 'pool' | 'suggestions';
31293
31343
  export type PublicCallFieldEnum = 'backend_id' | 'created' | 'customer_name' | 'customer_uuid' | 'description' | 'documents' | 'end_date' | 'external_url' | 'fixed_duration_in_days' | 'has_eligibility_restrictions' | 'manager' | 'manager_uuid' | 'name' | 'offerings' | 'resource_templates' | 'reviewer_identity_visible_to_submitters' | 'reviews_visible_to_submitters' | 'rounds' | 'slug' | 'start_date' | 'state' | 'url' | 'uuid';
@@ -80717,6 +80767,82 @@ export type ProposalProposalsResourcesUpdateResponses = {
80717
80767
  200: RequestedResource;
80718
80768
  };
80719
80769
  export type ProposalProposalsResourcesUpdateResponse = ProposalProposalsResourcesUpdateResponses[keyof ProposalProposalsResourcesUpdateResponses];
80770
+ export type ProposalProposalsStepChecklistRetrieveData = {
80771
+ body?: never;
80772
+ path: {
80773
+ uuid: string;
80774
+ };
80775
+ query: {
80776
+ /**
80777
+ * Return all questions ignoring dynamic visibility.
80778
+ */
80779
+ include_all?: string;
80780
+ /**
80781
+ * Workflow step key (e.g. technical_assessment).
80782
+ */
80783
+ step: string;
80784
+ };
80785
+ url: '/api/proposal-proposals/{uuid}/step-checklist/';
80786
+ };
80787
+ export type ProposalProposalsStepChecklistRetrieveErrors = {
80788
+ /**
80789
+ * No step/checklist
80790
+ */
80791
+ 400: unknown;
80792
+ };
80793
+ export type ProposalProposalsStepChecklistRetrieveResponses = {
80794
+ 200: ChecklistResponse;
80795
+ };
80796
+ export type ProposalProposalsStepChecklistRetrieveResponse = ProposalProposalsStepChecklistRetrieveResponses[keyof ProposalProposalsStepChecklistRetrieveResponses];
80797
+ export type ProposalProposalsStepChecklistResponsesListData = {
80798
+ body?: never;
80799
+ path: {
80800
+ uuid: string;
80801
+ };
80802
+ query: {
80803
+ call_uuid?: string;
80804
+ created_by_uuid?: string;
80805
+ my_proposals?: boolean;
80806
+ name?: string;
80807
+ /**
80808
+ * Ordering
80809
+ *
80810
+ *
80811
+ */
80812
+ o?: Array<ProposalOEnum>;
80813
+ organization_uuid?: string;
80814
+ /**
80815
+ * A page number within the paginated result set.
80816
+ */
80817
+ page?: number;
80818
+ /**
80819
+ * Number of results to return per page.
80820
+ */
80821
+ page_size?: number;
80822
+ round?: string;
80823
+ round_uuid?: string;
80824
+ /**
80825
+ * Slug
80826
+ */
80827
+ slug?: string;
80828
+ state?: Array<ProposalStates>;
80829
+ /**
80830
+ * Workflow step key (e.g. technical_assessment).
80831
+ */
80832
+ step: string;
80833
+ };
80834
+ url: '/api/proposal-proposals/{uuid}/step-checklist-responses/';
80835
+ };
80836
+ export type ProposalProposalsStepChecklistResponsesListErrors = {
80837
+ /**
80838
+ * No step/checklist
80839
+ */
80840
+ 400: unknown;
80841
+ };
80842
+ export type ProposalProposalsStepChecklistResponsesListResponses = {
80843
+ 200: Array<StepChecklistResponseGroup>;
80844
+ };
80845
+ export type ProposalProposalsStepChecklistResponsesListResponse = ProposalProposalsStepChecklistResponsesListResponses[keyof ProposalProposalsStepChecklistResponsesListResponses];
80720
80846
  export type ProposalProposalsSubmitData = {
80721
80847
  body?: never;
80722
80848
  path: {
@@ -80731,6 +80857,29 @@ export type ProposalProposalsSubmitResponses = {
80731
80857
  */
80732
80858
  200: unknown;
80733
80859
  };
80860
+ export type ProposalProposalsSubmitStepChecklistAnswersData = {
80861
+ body: Array<AnswerSubmitRequest>;
80862
+ path: {
80863
+ uuid: string;
80864
+ };
80865
+ query: {
80866
+ /**
80867
+ * Workflow step key (e.g. technical_assessment).
80868
+ */
80869
+ step: string;
80870
+ };
80871
+ url: '/api/proposal-proposals/{uuid}/submit-step-checklist-answers/';
80872
+ };
80873
+ export type ProposalProposalsSubmitStepChecklistAnswersErrors = {
80874
+ /**
80875
+ * Validation error or no checklist configured
80876
+ */
80877
+ 400: unknown;
80878
+ };
80879
+ export type ProposalProposalsSubmitStepChecklistAnswersResponses = {
80880
+ 200: ProposalChecklistAnswerSubmitResponse;
80881
+ };
80882
+ export type ProposalProposalsSubmitStepChecklistAnswersResponse = ProposalProposalsSubmitStepChecklistAnswersResponses[keyof ProposalProposalsSubmitStepChecklistAnswersResponses];
80734
80883
  export type ProposalProposalsSubmitAnswersData = {
80735
80884
  body: Array<AnswerSubmitRequest>;
80736
80885
  path: {
@@ -82137,6 +82286,82 @@ export type ProposalProtectedCallsAvailableComplianceChecklistsCountResponses =
82137
82286
  */
82138
82287
  200: unknown;
82139
82288
  };
82289
+ export type ProposalProtectedCallsStepChecklistsListData = {
82290
+ body?: never;
82291
+ path?: never;
82292
+ query?: {
82293
+ customer?: string;
82294
+ customer_keyword?: string;
82295
+ customer_uuid?: string;
82296
+ has_active_round?: boolean;
82297
+ name?: string;
82298
+ /**
82299
+ * Ordering
82300
+ *
82301
+ *
82302
+ */
82303
+ o?: Array<ProtectedCallOEnum>;
82304
+ offering_uuid?: string;
82305
+ offerings_provider_uuid?: string;
82306
+ /**
82307
+ * A page number within the paginated result set.
82308
+ */
82309
+ page?: number;
82310
+ /**
82311
+ * Number of results to return per page.
82312
+ */
82313
+ page_size?: number;
82314
+ /**
82315
+ * Slug
82316
+ */
82317
+ slug?: string;
82318
+ state?: Array<CallStates>;
82319
+ };
82320
+ url: '/api/proposal-protected-calls/step_checklists/';
82321
+ };
82322
+ export type ProposalProtectedCallsStepChecklistsListResponses = {
82323
+ 200: Array<ChecklistShort>;
82324
+ };
82325
+ export type ProposalProtectedCallsStepChecklistsListResponse = ProposalProtectedCallsStepChecklistsListResponses[keyof ProposalProtectedCallsStepChecklistsListResponses];
82326
+ export type ProposalProtectedCallsStepChecklistsCountData = {
82327
+ body?: never;
82328
+ path?: never;
82329
+ query?: {
82330
+ customer?: string;
82331
+ customer_keyword?: string;
82332
+ customer_uuid?: string;
82333
+ has_active_round?: boolean;
82334
+ name?: string;
82335
+ /**
82336
+ * Ordering
82337
+ *
82338
+ *
82339
+ */
82340
+ o?: Array<ProtectedCallOEnum>;
82341
+ offering_uuid?: string;
82342
+ offerings_provider_uuid?: string;
82343
+ /**
82344
+ * A page number within the paginated result set.
82345
+ */
82346
+ page?: number;
82347
+ /**
82348
+ * Number of results to return per page.
82349
+ */
82350
+ page_size?: number;
82351
+ /**
82352
+ * Slug
82353
+ */
82354
+ slug?: string;
82355
+ state?: Array<CallStates>;
82356
+ };
82357
+ url: '/api/proposal-protected-calls/step_checklists/';
82358
+ };
82359
+ export type ProposalProtectedCallsStepChecklistsCountResponses = {
82360
+ /**
82361
+ * No response body
82362
+ */
82363
+ 200: unknown;
82364
+ };
82140
82365
  export type ProposalPublicCallsListData = {
82141
82366
  body?: never;
82142
82367
  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.25",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",