waldur-js-client 8.0.10-dev.22 → 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
@@ -25621,21 +25621,6 @@ export const proposalProposalsAdvanceWorkflowStep = (options) => (options.client
25621
25621
  url: '/api/proposal-proposals/{uuid}/advance_workflow_step/',
25622
25622
  ...options
25623
25623
  });
25624
- /**
25625
- * Approve a proposal.
25626
- */
25627
- export const proposalProposalsApprove = (options) => (options.client ?? client).post({
25628
- security: [
25629
- { name: 'Authorization', type: 'apiKey' },
25630
- { scheme: 'bearer', type: 'http' }
25631
- ],
25632
- url: '/api/proposal-proposals/{uuid}/approve/',
25633
- ...options,
25634
- headers: {
25635
- 'Content-Type': 'application/json',
25636
- ...options.headers
25637
- }
25638
- });
25639
25624
  /**
25640
25625
  * Attach document to proposal.
25641
25626
  */
@@ -25768,21 +25753,6 @@ export const proposalProposalsListUsersCount = (options) => (options.client ?? c
25768
25753
  url: '/api/proposal-proposals/{uuid}/list_users/',
25769
25754
  ...options
25770
25755
  });
25771
- /**
25772
- * Reject a proposal.
25773
- */
25774
- export const proposalProposalsReject = (options) => (options.client ?? client).post({
25775
- security: [
25776
- { name: 'Authorization', type: 'apiKey' },
25777
- { scheme: 'bearer', type: 'http' }
25778
- ],
25779
- url: '/api/proposal-proposals/{uuid}/reject/',
25780
- ...options,
25781
- headers: {
25782
- 'Content-Type': 'application/json',
25783
- ...options.headers
25784
- }
25785
- });
25786
25756
  /**
25787
25757
  * Reject the proposal at the current workflow step.
25788
25758
  */
@@ -25864,6 +25834,28 @@ export const proposalProposalsResourcesUpdate = (options) => (options.client ??
25864
25834
  ...options.headers
25865
25835
  }
25866
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
+ });
25867
25859
  /**
25868
25860
  * Submit a proposal.
25869
25861
  */
@@ -25875,6 +25867,21 @@ export const proposalProposalsSubmit = (options) => (options.client ?? client).p
25875
25867
  url: '/api/proposal-proposals/{uuid}/submit/',
25876
25868
  ...options
25877
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
+ });
25878
25885
  /**
25879
25886
  * Submit checklist answers.
25880
25887
  */
@@ -26765,6 +26772,28 @@ export const proposalProtectedCallsAvailableComplianceChecklistsCount = (options
26765
26772
  url: '/api/proposal-protected-calls/available_compliance_checklists/',
26766
26773
  ...options
26767
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
+ });
26768
26797
  export const proposalPublicCallsList = (options) => (options?.client ?? client).get({
26769
26798
  security: [
26770
26799
  { name: 'Authorization', type: 'apiKey' },
@@ -3531,12 +3531,17 @@ export type CallWorkflowStep = {
3531
3531
  * Whether this step is enabled. Disabled steps are skipped.
3532
3532
  */
3533
3533
  is_enabled?: boolean;
3534
+ readonly is_mandatory: boolean;
3534
3535
  /**
3535
3536
  * Duration in days. Used to calculate deadlines.
3536
3537
  */
3537
3538
  duration_in_days?: number | null;
3538
3539
  checklist?: string | null;
3539
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;
3540
3545
  /**
3541
3546
  * Evaluators cannot see each other's assessments.
3542
3547
  */
@@ -3550,7 +3555,7 @@ export type CallWorkflowStep = {
3550
3555
  */
3551
3556
  min_reviewers?: number | null;
3552
3557
  /**
3553
- * Minimum average score to pass this step.
3558
+ * Minimum average score required before this step can complete (a completion gate; it does not auto-reject lower scores).
3554
3559
  */
3555
3560
  min_score_threshold?: string | null;
3556
3561
  /**
@@ -3562,7 +3567,7 @@ export type CallWorkflowStep = {
3562
3567
  */
3563
3568
  responsible_role?: ResponsibleRoleEnum | BlankEnum | NullEnum | null;
3564
3569
  /**
3565
- * How this step advances to the next.
3570
+ * How this step advances once a human completes it. 'Automatic' advances to the next step immediately; 'Manual' waits for a separate advance action. Neither auto-decides from review scores.
3566
3571
  */
3567
3572
  transition_mode?: TransitionModeEnum;
3568
3573
  /**
@@ -3590,6 +3595,10 @@ export type CallWorkflowStepRequest = {
3590
3595
  */
3591
3596
  duration_in_days?: number | null;
3592
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;
3593
3602
  /**
3594
3603
  * Evaluators cannot see each other's assessments.
3595
3604
  */
@@ -3603,7 +3612,7 @@ export type CallWorkflowStepRequest = {
3603
3612
  */
3604
3613
  min_reviewers?: number | null;
3605
3614
  /**
3606
- * Minimum average score to pass this step.
3615
+ * Minimum average score required before this step can complete (a completion gate; it does not auto-reject lower scores).
3607
3616
  */
3608
3617
  min_score_threshold?: string | null;
3609
3618
  /**
@@ -3615,7 +3624,7 @@ export type CallWorkflowStepRequest = {
3615
3624
  */
3616
3625
  responsible_role?: ResponsibleRoleEnum | BlankEnum | NullEnum | null;
3617
3626
  /**
3618
- * How this step advances to the next.
3627
+ * How this step advances once a human completes it. 'Automatic' advances to the next step immediately; 'Manual' waits for a separate advance action. Neither auto-decides from review scores.
3619
3628
  */
3620
3629
  transition_mode?: TransitionModeEnum;
3621
3630
  /**
@@ -17317,6 +17326,10 @@ export type PatchedCallWorkflowStepRequest = {
17317
17326
  */
17318
17327
  duration_in_days?: number | null;
17319
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;
17320
17333
  /**
17321
17334
  * Evaluators cannot see each other's assessments.
17322
17335
  */
@@ -17330,7 +17343,7 @@ export type PatchedCallWorkflowStepRequest = {
17330
17343
  */
17331
17344
  min_reviewers?: number | null;
17332
17345
  /**
17333
- * Minimum average score to pass this step.
17346
+ * Minimum average score required before this step can complete (a completion gate; it does not auto-reject lower scores).
17334
17347
  */
17335
17348
  min_score_threshold?: string | null;
17336
17349
  /**
@@ -17342,7 +17355,7 @@ export type PatchedCallWorkflowStepRequest = {
17342
17355
  */
17343
17356
  responsible_role?: ResponsibleRoleEnum | BlankEnum | NullEnum | null;
17344
17357
  /**
17345
- * How this step advances to the next.
17358
+ * How this step advances once a human completes it. 'Automatic' advances to the next step immediately; 'Manual' waits for a separate advance action. Neither auto-decides from review scores.
17346
17359
  */
17347
17360
  transition_mode?: TransitionModeEnum;
17348
17361
  /**
@@ -20688,9 +20701,6 @@ export type Proposal = {
20688
20701
  can_submit: ProposalCanSubmitResponse;
20689
20702
  readonly awaiting_manual_advance: boolean;
20690
20703
  };
20691
- export type ProposalApproveRequest = {
20692
- allocation_comment?: string;
20693
- };
20694
20704
  export type ProposalCanSubmitResponse = {
20695
20705
  can_submit: boolean;
20696
20706
  error: string | null;
@@ -20796,6 +20806,12 @@ export type ProposalReview = {
20796
20806
  comment_project_supporting_documentation?: string | null;
20797
20807
  comment_resource_requests?: string | null;
20798
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;
20799
20815
  readonly created: string;
20800
20816
  readonly modified: string;
20801
20817
  };
@@ -20859,6 +20875,7 @@ export type ProposalWorkflowStepInstance = {
20859
20875
  readonly applicant_visible: boolean;
20860
20876
  readonly duration_in_days: number | null;
20861
20877
  readonly is_required: boolean;
20878
+ checklist_status: StepChecklistStatus | null;
20862
20879
  };
20863
20880
  export type ProposalWorkflowStepInstanceStatusEnum = 'pending' | 'active' | 'completed' | 'expired' | 'skipped';
20864
20881
  export type ProposedAssignment = {
@@ -24314,6 +24331,10 @@ export type ReviewSubmitRequest = {
24314
24331
  summary_score?: number;
24315
24332
  summary_public_comment?: string;
24316
24333
  summary_private_comment?: string;
24334
+ /**
24335
+ * Reviewer confirmed absence of conflict of interest with this proposal.
24336
+ */
24337
+ coi_confirmed?: boolean;
24317
24338
  };
24318
24339
  export type ReviewerAffiliation = {
24319
24340
  readonly uuid: string;
@@ -26692,6 +26713,20 @@ export type StateTransitionError = {
26692
26713
  export type Status = {
26693
26714
  status: string;
26694
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
+ };
26695
26730
  export type StepEnum = 'administrative_check' | 'technical_assessment' | 'expert_review' | 'panel_review' | 'allocation_decision' | 'award_response';
26696
26731
  export type StorageDataType = {
26697
26732
  key: string;
@@ -27090,6 +27125,15 @@ export type TargetUser = {
27090
27125
  username: string;
27091
27126
  full_name: string;
27092
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
+ };
27093
27137
  export type Template = {
27094
27138
  readonly url: string;
27095
27139
  readonly uuid: string;
@@ -80351,20 +80395,6 @@ export type ProposalProposalsAdvanceWorkflowStepResponses = {
80351
80395
  200: CompleteWorkflowStepResponse;
80352
80396
  };
80353
80397
  export type ProposalProposalsAdvanceWorkflowStepResponse = ProposalProposalsAdvanceWorkflowStepResponses[keyof ProposalProposalsAdvanceWorkflowStepResponses];
80354
- export type ProposalProposalsApproveData = {
80355
- body?: ProposalApproveRequest;
80356
- path: {
80357
- uuid: string;
80358
- };
80359
- query?: never;
80360
- url: '/api/proposal-proposals/{uuid}/approve/';
80361
- };
80362
- export type ProposalProposalsApproveResponses = {
80363
- /**
80364
- * No response body
80365
- */
80366
- 200: unknown;
80367
- };
80368
80398
  export type ProposalProposalsAttachDocumentData = {
80369
80399
  body?: ProposalDocumentationRequest;
80370
80400
  path: {
@@ -80636,20 +80666,6 @@ export type ProposalProposalsListUsersCountResponses = {
80636
80666
  */
80637
80667
  200: unknown;
80638
80668
  };
80639
- export type ProposalProposalsRejectData = {
80640
- body?: ProposalApproveRequest;
80641
- path: {
80642
- uuid: string;
80643
- };
80644
- query?: never;
80645
- url: '/api/proposal-proposals/{uuid}/reject/';
80646
- };
80647
- export type ProposalProposalsRejectResponses = {
80648
- /**
80649
- * No response body
80650
- */
80651
- 200: unknown;
80652
- };
80653
80669
  export type ProposalProposalsRejectWorkflowStepData = {
80654
80670
  body: RejectWorkflowStepRequest;
80655
80671
  path: {
@@ -80747,6 +80763,82 @@ export type ProposalProposalsResourcesUpdateResponses = {
80747
80763
  200: RequestedResource;
80748
80764
  };
80749
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];
80750
80842
  export type ProposalProposalsSubmitData = {
80751
80843
  body?: never;
80752
80844
  path: {
@@ -80761,6 +80853,29 @@ export type ProposalProposalsSubmitResponses = {
80761
80853
  */
80762
80854
  200: unknown;
80763
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];
80764
80879
  export type ProposalProposalsSubmitAnswersData = {
80765
80880
  body: Array<AnswerSubmitRequest>;
80766
80881
  path: {
@@ -82167,6 +82282,82 @@ export type ProposalProtectedCallsAvailableComplianceChecklistsCountResponses =
82167
82282
  */
82168
82283
  200: unknown;
82169
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
+ };
82170
82361
  export type ProposalPublicCallsListData = {
82171
82362
  body?: never;
82172
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.22",
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",