waldur-js-client 7.7.4 → 7.7.5-dev.0

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.
@@ -969,6 +969,16 @@ export type CallAttachDocumentsRequest = {
969
969
  documents: Array<Blob | File>;
970
970
  description?: string;
971
971
  };
972
+ export type CallComplianceOverview = {
973
+ readonly checklist: {
974
+ [key: string]: unknown;
975
+ } | null;
976
+ readonly proposals: Array<unknown>;
977
+ };
978
+ export type CallComplianceReviewRequest = {
979
+ proposal_uuid: string;
980
+ review_notes?: string;
981
+ };
972
982
  export type CallDetachDocumentsRequest = {
973
983
  documents: Array<string>;
974
984
  };
@@ -2699,6 +2709,7 @@ export type ImportResourceRequest = {
2699
2709
  backend_id: string;
2700
2710
  project: string;
2701
2711
  plan?: string;
2712
+ additional_details?: unknown;
2702
2713
  };
2703
2714
  export type ImportableResource = {
2704
2715
  backend_id: string;
@@ -6889,6 +6900,10 @@ export type PatchedProtectedCallRequest = {
6889
6900
  reviews_visible_to_submitters?: boolean;
6890
6901
  created_by?: string | null;
6891
6902
  reference_code?: string;
6903
+ /**
6904
+ * Compliance checklist that proposals must complete before submission
6905
+ */
6906
+ compliance_checklist?: string | null;
6892
6907
  };
6893
6908
  export type PatchedProtectedRoundRequest = {
6894
6909
  start_time?: string;
@@ -7674,10 +7689,96 @@ export type Proposal = {
7674
7689
  readonly oecd_fos_2007_label: string;
7675
7690
  readonly allocation_comment: string | null;
7676
7691
  readonly created: string;
7692
+ readonly compliance_status: {
7693
+ [key: string]: unknown;
7694
+ } | null;
7695
+ readonly can_submit: {
7696
+ [key: string]: unknown;
7697
+ };
7677
7698
  };
7678
7699
  export type ProposalApproveRequest = {
7679
7700
  allocation_comment?: string;
7680
7701
  };
7702
+ export type ProposalChecklistAnswer = {
7703
+ readonly uuid: string;
7704
+ readonly question_description: string;
7705
+ readonly question_type: string;
7706
+ readonly question_required: boolean;
7707
+ readonly question_solution: string;
7708
+ /**
7709
+ * Flexible answer storage for different question types
7710
+ */
7711
+ answer_data?: unknown;
7712
+ /**
7713
+ * Internal flag - this answer requires additional review
7714
+ */
7715
+ readonly requires_review: boolean;
7716
+ readonly user: number;
7717
+ readonly user_name: string;
7718
+ readonly created: string;
7719
+ readonly modified: string;
7720
+ };
7721
+ export type ProposalChecklistAnswerSubmitRequest = {
7722
+ question_uuid: string;
7723
+ answer_data: unknown;
7724
+ };
7725
+ export type ProposalChecklistAnswerSubmitResponse = {
7726
+ detail: string;
7727
+ completion: ProposalChecklistCompletion;
7728
+ };
7729
+ export type ProposalChecklistCompletion = {
7730
+ readonly uuid: string;
7731
+ /**
7732
+ * Whether all required questions have been answered
7733
+ */
7734
+ readonly is_completed: boolean;
7735
+ /**
7736
+ * Whether any answers triggered review requirements
7737
+ */
7738
+ readonly requires_review: boolean;
7739
+ /**
7740
+ * User who reviewed the checklist completion
7741
+ */
7742
+ reviewed_by?: number | null;
7743
+ readonly reviewed_by_name: string;
7744
+ reviewed_at?: string | null;
7745
+ /**
7746
+ * Notes from the reviewer
7747
+ */
7748
+ review_notes?: string;
7749
+ readonly completion_percentage: number;
7750
+ readonly review_trigger_summary: Array<unknown>;
7751
+ readonly unanswered_required_questions: Array<unknown>;
7752
+ readonly checklist_name: string;
7753
+ readonly checklist_description: string;
7754
+ readonly created: string;
7755
+ readonly modified: string;
7756
+ };
7757
+ export type ProposalChecklistQuestion = {
7758
+ readonly uuid: string;
7759
+ readonly description: string;
7760
+ /**
7761
+ * Type of question and expected answer format
7762
+ */
7763
+ question_type: QuestionTypeEnum;
7764
+ readonly required: boolean;
7765
+ /**
7766
+ * Guidance shown when answer needs clarification
7767
+ */
7768
+ readonly solution: string | null;
7769
+ readonly order: number;
7770
+ readonly existing_answer: {
7771
+ [key: string]: unknown;
7772
+ } | null;
7773
+ readonly question_options: Array<unknown> | null;
7774
+ };
7775
+ export type ProposalComplianceChecklistResponse = {
7776
+ readonly checklist: {
7777
+ [key: string]: unknown;
7778
+ };
7779
+ completion: ProposalChecklistCompletion;
7780
+ questions: Array<ProposalChecklistQuestion>;
7781
+ };
7681
7782
  export type ProposalDocumentation = {
7682
7783
  /**
7683
7784
  * Upload supporting documentation in PDF format.
@@ -7816,6 +7917,11 @@ export type ProtectedCall = {
7816
7917
  reviews_visible_to_submitters?: boolean;
7817
7918
  created_by?: string | null;
7818
7919
  reference_code?: string;
7920
+ /**
7921
+ * Compliance checklist that proposals must complete before submission
7922
+ */
7923
+ compliance_checklist?: string | null;
7924
+ readonly compliance_checklist_name?: string;
7819
7925
  };
7820
7926
  export type ProtectedCallRequest = {
7821
7927
  name: string;
@@ -7834,6 +7940,10 @@ export type ProtectedCallRequest = {
7834
7940
  reviews_visible_to_submitters?: boolean;
7835
7941
  created_by?: string | null;
7836
7942
  reference_code?: string;
7943
+ /**
7944
+ * Compliance checklist that proposals must complete before submission
7945
+ */
7946
+ compliance_checklist?: string | null;
7837
7947
  };
7838
7948
  export type ProtectedProposalList = {
7839
7949
  readonly uuid: string;
@@ -31868,6 +31978,30 @@ export type ProposalProposalsAttachDocumentResponses = {
31868
31978
  */
31869
31979
  200: unknown;
31870
31980
  };
31981
+ export type ProposalProposalsComplianceChecklistRetrieveData = {
31982
+ body?: never;
31983
+ path: {
31984
+ uuid: string;
31985
+ };
31986
+ query?: never;
31987
+ url: '/api/proposal-proposals/{uuid}/compliance_checklist/';
31988
+ };
31989
+ export type ProposalProposalsComplianceChecklistRetrieveResponses = {
31990
+ 200: ProposalComplianceChecklistResponse;
31991
+ };
31992
+ export type ProposalProposalsComplianceChecklistRetrieveResponse = ProposalProposalsComplianceChecklistRetrieveResponses[keyof ProposalProposalsComplianceChecklistRetrieveResponses];
31993
+ export type ProposalProposalsComplianceStatusRetrieveData = {
31994
+ body?: never;
31995
+ path: {
31996
+ uuid: string;
31997
+ };
31998
+ query?: never;
31999
+ url: '/api/proposal-proposals/{uuid}/compliance_status/';
32000
+ };
32001
+ export type ProposalProposalsComplianceStatusRetrieveResponses = {
32002
+ 200: ProposalChecklistCompletion;
32003
+ };
32004
+ export type ProposalProposalsComplianceStatusRetrieveResponse = ProposalProposalsComplianceStatusRetrieveResponses[keyof ProposalProposalsComplianceStatusRetrieveResponses];
31871
32005
  export type ProposalProposalsDeleteUserData = {
31872
32006
  body: UserRoleDeleteRequest;
31873
32007
  path: {
@@ -32059,6 +32193,18 @@ export type ProposalProposalsSubmitResponses = {
32059
32193
  */
32060
32194
  200: unknown;
32061
32195
  };
32196
+ export type ProposalProposalsSubmitComplianceAnswersData = {
32197
+ body: Array<ProposalChecklistAnswerSubmitRequest>;
32198
+ path: {
32199
+ uuid: string;
32200
+ };
32201
+ query?: never;
32202
+ url: '/api/proposal-proposals/{uuid}/submit_compliance_answers/';
32203
+ };
32204
+ export type ProposalProposalsSubmitComplianceAnswersResponses = {
32205
+ 200: ProposalChecklistAnswerSubmitResponse;
32206
+ };
32207
+ export type ProposalProposalsSubmitComplianceAnswersResponse = ProposalProposalsSubmitComplianceAnswersResponses[keyof ProposalProposalsSubmitComplianceAnswersResponses];
32062
32208
  export type ProposalProposalsUpdateProjectDetailsData = {
32063
32209
  body: ProposalUpdateProjectDetailsRequest;
32064
32210
  path: {
@@ -32092,7 +32238,7 @@ export type ProposalProtectedCallsListData = {
32092
32238
  customer?: string;
32093
32239
  customer_keyword?: string;
32094
32240
  customer_uuid?: string;
32095
- field?: Array<'backend_id' | 'created' | 'created_by' | 'customer_name' | 'customer_uuid' | 'description' | 'documents' | 'end_date' | 'external_url' | 'fixed_duration_in_days' | 'manager' | 'manager_uuid' | 'name' | 'offerings' | 'reference_code' | 'resource_templates' | 'reviewer_identity_visible_to_submitters' | 'reviews_visible_to_submitters' | 'rounds' | 'slug' | 'start_date' | 'state' | 'url' | 'uuid'>;
32241
+ field?: Array<'backend_id' | 'compliance_checklist' | 'compliance_checklist_name' | 'created' | 'created_by' | 'customer_name' | 'customer_uuid' | 'description' | 'documents' | 'end_date' | 'external_url' | 'fixed_duration_in_days' | 'manager' | 'manager_uuid' | 'name' | 'offerings' | 'reference_code' | 'resource_templates' | 'reviewer_identity_visible_to_submitters' | 'reviews_visible_to_submitters' | 'rounds' | 'slug' | 'start_date' | 'state' | 'url' | 'uuid'>;
32096
32242
  has_active_round?: boolean;
32097
32243
  name?: string;
32098
32244
  /**
@@ -32185,7 +32331,7 @@ export type ProposalProtectedCallsRetrieveData = {
32185
32331
  uuid: string;
32186
32332
  };
32187
32333
  query?: {
32188
- field?: Array<'backend_id' | 'created' | 'created_by' | 'customer_name' | 'customer_uuid' | 'description' | 'documents' | 'end_date' | 'external_url' | 'fixed_duration_in_days' | 'manager' | 'manager_uuid' | 'name' | 'offerings' | 'reference_code' | 'resource_templates' | 'reviewer_identity_visible_to_submitters' | 'reviews_visible_to_submitters' | 'rounds' | 'slug' | 'start_date' | 'state' | 'url' | 'uuid'>;
32334
+ field?: Array<'backend_id' | 'compliance_checklist' | 'compliance_checklist_name' | 'created' | 'created_by' | 'customer_name' | 'customer_uuid' | 'description' | 'documents' | 'end_date' | 'external_url' | 'fixed_duration_in_days' | 'manager' | 'manager_uuid' | 'name' | 'offerings' | 'reference_code' | 'resource_templates' | 'reviewer_identity_visible_to_submitters' | 'reviews_visible_to_submitters' | 'rounds' | 'slug' | 'start_date' | 'state' | 'url' | 'uuid'>;
32189
32335
  };
32190
32336
  url: '/api/proposal-protected-calls/{uuid}/';
32191
32337
  };
@@ -32226,11 +32372,9 @@ export type ProposalProtectedCallsActivateData = {
32226
32372
  url: '/api/proposal-protected-calls/{uuid}/activate/';
32227
32373
  };
32228
32374
  export type ProposalProtectedCallsActivateResponses = {
32229
- /**
32230
- * No response body
32231
- */
32232
- 200: unknown;
32375
+ 200: ProtectedCall;
32233
32376
  };
32377
+ export type ProposalProtectedCallsActivateResponse = ProposalProtectedCallsActivateResponses[keyof ProposalProtectedCallsActivateResponses];
32234
32378
  export type ProposalProtectedCallsAddUserData = {
32235
32379
  body: UserRoleCreateRequest;
32236
32380
  path: {
@@ -32252,11 +32396,9 @@ export type ProposalProtectedCallsArchiveData = {
32252
32396
  url: '/api/proposal-protected-calls/{uuid}/archive/';
32253
32397
  };
32254
32398
  export type ProposalProtectedCallsArchiveResponses = {
32255
- /**
32256
- * No response body
32257
- */
32258
- 200: unknown;
32399
+ 200: ProtectedCall;
32259
32400
  };
32401
+ export type ProposalProtectedCallsArchiveResponse = ProposalProtectedCallsArchiveResponses[keyof ProposalProtectedCallsArchiveResponses];
32260
32402
  export type ProposalProtectedCallsAttachDocumentsData = {
32261
32403
  body: CallAttachDocumentsRequest;
32262
32404
  path: {
@@ -32271,6 +32413,18 @@ export type ProposalProtectedCallsAttachDocumentsResponses = {
32271
32413
  */
32272
32414
  200: unknown;
32273
32415
  };
32416
+ export type ProposalProtectedCallsComplianceOverviewRetrieveData = {
32417
+ body?: never;
32418
+ path: {
32419
+ uuid: string;
32420
+ };
32421
+ query?: never;
32422
+ url: '/api/proposal-protected-calls/{uuid}/compliance_overview/';
32423
+ };
32424
+ export type ProposalProtectedCallsComplianceOverviewRetrieveResponses = {
32425
+ 200: CallComplianceOverview;
32426
+ };
32427
+ export type ProposalProtectedCallsComplianceOverviewRetrieveResponse = ProposalProtectedCallsComplianceOverviewRetrieveResponses[keyof ProposalProtectedCallsComplianceOverviewRetrieveResponses];
32274
32428
  export type ProposalProtectedCallsDeleteUserData = {
32275
32429
  body: UserRoleDeleteRequest;
32276
32430
  path: {
@@ -32448,6 +32602,45 @@ export type ProposalProtectedCallsOfferingsUpdateResponses = {
32448
32602
  200: RequestedOffering;
32449
32603
  };
32450
32604
  export type ProposalProtectedCallsOfferingsUpdateResponse = ProposalProtectedCallsOfferingsUpdateResponses[keyof ProposalProtectedCallsOfferingsUpdateResponses];
32605
+ export type ProposalProtectedCallsProposalsComplianceAnswersListData = {
32606
+ body?: never;
32607
+ path: {
32608
+ /**
32609
+ * UUID of the proposal
32610
+ */
32611
+ proposal_uuid: string;
32612
+ uuid: string;
32613
+ };
32614
+ query?: {
32615
+ customer?: string;
32616
+ customer_keyword?: string;
32617
+ customer_uuid?: string;
32618
+ has_active_round?: boolean;
32619
+ name?: string;
32620
+ /**
32621
+ * Ordering
32622
+ *
32623
+ *
32624
+ */
32625
+ o?: Array<'-created' | '-manager__customer__name' | '-name' | 'created' | 'manager__customer__name' | 'name'>;
32626
+ offering_uuid?: string;
32627
+ offerings_provider_uuid?: string;
32628
+ /**
32629
+ * A page number within the paginated result set.
32630
+ */
32631
+ page?: number;
32632
+ /**
32633
+ * Number of results to return per page.
32634
+ */
32635
+ page_size?: number;
32636
+ state?: Array<'active' | 'archived' | 'draft'>;
32637
+ };
32638
+ url: '/api/proposal-protected-calls/{uuid}/proposals/{proposal_uuid}/compliance-answers/';
32639
+ };
32640
+ export type ProposalProtectedCallsProposalsComplianceAnswersListResponses = {
32641
+ 200: Array<ProposalChecklistAnswer>;
32642
+ };
32643
+ export type ProposalProtectedCallsProposalsComplianceAnswersListResponse = ProposalProtectedCallsProposalsComplianceAnswersListResponses[keyof ProposalProtectedCallsProposalsComplianceAnswersListResponses];
32451
32644
  export type ProposalProtectedCallsResourceTemplatesListData = {
32452
32645
  body?: never;
32453
32646
  path: {
@@ -32536,6 +32729,20 @@ export type ProposalProtectedCallsResourceTemplatesUpdateResponses = {
32536
32729
  200: CallResourceTemplate;
32537
32730
  };
32538
32731
  export type ProposalProtectedCallsResourceTemplatesUpdateResponse = ProposalProtectedCallsResourceTemplatesUpdateResponses[keyof ProposalProtectedCallsResourceTemplatesUpdateResponses];
32732
+ export type ProposalProtectedCallsReviewProposalComplianceData = {
32733
+ body: CallComplianceReviewRequest;
32734
+ path: {
32735
+ uuid: string;
32736
+ };
32737
+ query?: never;
32738
+ url: '/api/proposal-protected-calls/{uuid}/review_proposal_compliance/';
32739
+ };
32740
+ export type ProposalProtectedCallsReviewProposalComplianceResponses = {
32741
+ 200: {
32742
+ [key: string]: string;
32743
+ };
32744
+ };
32745
+ export type ProposalProtectedCallsReviewProposalComplianceResponse = ProposalProtectedCallsReviewProposalComplianceResponses[keyof ProposalProtectedCallsReviewProposalComplianceResponses];
32539
32746
  export type ProposalProtectedCallsRoundsListData = {
32540
32747
  body?: never;
32541
32748
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "7.7.4",
3
+ "version": "7.7.5-dev.0",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",