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

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
  */
@@ -2821,9 +2821,13 @@ export type BookingResource = {
2821
2821
  */
2822
2822
  readonly project_end_date: string | null;
2823
2823
  /**
2824
- * Effective project end date including grace period. After this date, resources will be terminated.
2824
+ * Effective project end date including grace period. After this date, resources are terminated, except resources of offerings that disable the grace period — those are terminated on the raw project end date.
2825
2825
  */
2826
2826
  readonly project_effective_end_date: string | null;
2827
+ /**
2828
+ * The date this resource is scheduled to terminate: the earliest of its own end date and the project-driven termination date (the raw project end date if the offering disables the grace period, otherwise the effective with-grace end date).
2829
+ */
2830
+ readonly resource_effective_end_date: string | null;
2827
2831
  /**
2828
2832
  * True if the project is past its end date but still within the grace period.
2829
2833
  */
@@ -3527,6 +3531,7 @@ export type CallWorkflowStep = {
3527
3531
  * Whether this step is enabled. Disabled steps are skipped.
3528
3532
  */
3529
3533
  is_enabled?: boolean;
3534
+ readonly is_mandatory: boolean;
3530
3535
  /**
3531
3536
  * Duration in days. Used to calculate deadlines.
3532
3537
  */
@@ -3546,7 +3551,7 @@ export type CallWorkflowStep = {
3546
3551
  */
3547
3552
  min_reviewers?: number | null;
3548
3553
  /**
3549
- * Minimum average score to pass this step.
3554
+ * Minimum average score required before this step can complete (a completion gate; it does not auto-reject lower scores).
3550
3555
  */
3551
3556
  min_score_threshold?: string | null;
3552
3557
  /**
@@ -3558,7 +3563,7 @@ export type CallWorkflowStep = {
3558
3563
  */
3559
3564
  responsible_role?: ResponsibleRoleEnum | BlankEnum | NullEnum | null;
3560
3565
  /**
3561
- * How this step advances to the next.
3566
+ * 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.
3562
3567
  */
3563
3568
  transition_mode?: TransitionModeEnum;
3564
3569
  /**
@@ -3599,7 +3604,7 @@ export type CallWorkflowStepRequest = {
3599
3604
  */
3600
3605
  min_reviewers?: number | null;
3601
3606
  /**
3602
- * Minimum average score to pass this step.
3607
+ * Minimum average score required before this step can complete (a completion gate; it does not auto-reject lower scores).
3603
3608
  */
3604
3609
  min_score_threshold?: string | null;
3605
3610
  /**
@@ -3611,7 +3616,7 @@ export type CallWorkflowStepRequest = {
3611
3616
  */
3612
3617
  responsible_role?: ResponsibleRoleEnum | BlankEnum | NullEnum | null;
3613
3618
  /**
3614
- * How this step advances to the next.
3619
+ * 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.
3615
3620
  */
3616
3621
  transition_mode?: TransitionModeEnum;
3617
3622
  /**
@@ -10648,6 +10653,10 @@ export type MergedPluginOptions = {
10648
10653
  * If set to True, it will be possible to pause resources
10649
10654
  */
10650
10655
  supports_pausing?: boolean;
10656
+ /**
10657
+ * If set to True, this offering's resources ignore the project grace period and are terminated on the project end date. Only staff can change this option.
10658
+ */
10659
+ disable_grace_period?: boolean;
10651
10660
  /**
10652
10661
  * If set to 'pause' or 'downscale', resources are automatically paused or downscaled when reported usage in the current period reaches a component's limit_amount, and the restriction is lifted when usage drops below the limit again (e.g. a new billing period or a raised limit).
10653
10662
  */
@@ -11014,6 +11023,10 @@ export type MergedPluginOptionsRequest = {
11014
11023
  * If set to True, it will be possible to pause resources
11015
11024
  */
11016
11025
  supports_pausing?: boolean;
11026
+ /**
11027
+ * If set to True, this offering's resources ignore the project grace period and are terminated on the project end date. Only staff can change this option.
11028
+ */
11029
+ disable_grace_period?: boolean;
11017
11030
  /**
11018
11031
  * If set to 'pause' or 'downscale', resources are automatically paused or downscaled when reported usage in the current period reaches a component's limit_amount, and the restriction is lifted when usage drops below the limit again (e.g. a new billing period or a raised limit).
11019
11032
  */
@@ -17318,7 +17331,7 @@ export type PatchedCallWorkflowStepRequest = {
17318
17331
  */
17319
17332
  min_reviewers?: number | null;
17320
17333
  /**
17321
- * Minimum average score to pass this step.
17334
+ * Minimum average score required before this step can complete (a completion gate; it does not auto-reject lower scores).
17322
17335
  */
17323
17336
  min_score_threshold?: string | null;
17324
17337
  /**
@@ -17330,7 +17343,7 @@ export type PatchedCallWorkflowStepRequest = {
17330
17343
  */
17331
17344
  responsible_role?: ResponsibleRoleEnum | BlankEnum | NullEnum | null;
17332
17345
  /**
17333
- * How this step advances to the next.
17346
+ * 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.
17334
17347
  */
17335
17348
  transition_mode?: TransitionModeEnum;
17336
17349
  /**
@@ -20676,9 +20689,6 @@ export type Proposal = {
20676
20689
  can_submit: ProposalCanSubmitResponse;
20677
20690
  readonly awaiting_manual_advance: boolean;
20678
20691
  };
20679
- export type ProposalApproveRequest = {
20680
- allocation_comment?: string;
20681
- };
20682
20692
  export type ProposalCanSubmitResponse = {
20683
20693
  can_submit: boolean;
20684
20694
  error: string | null;
@@ -23622,9 +23632,13 @@ export type Resource = {
23622
23632
  */
23623
23633
  readonly project_end_date: string | null;
23624
23634
  /**
23625
- * Effective project end date including grace period. After this date, resources will be terminated.
23635
+ * Effective project end date including grace period. After this date, resources are terminated, except resources of offerings that disable the grace period — those are terminated on the raw project end date.
23626
23636
  */
23627
23637
  readonly project_effective_end_date: string | null;
23638
+ /**
23639
+ * The date this resource is scheduled to terminate: the earliest of its own end date and the project-driven termination date (the raw project end date if the offering disables the grace period, otherwise the effective with-grace end date).
23640
+ */
23641
+ readonly resource_effective_end_date: string | null;
23628
23642
  /**
23629
23643
  * True if the project is past its end date but still within the grace period.
23630
23644
  */
@@ -31151,7 +31165,7 @@ export type AzureSqlServerFieldEnum = 'access_url' | 'backend_id' | 'created' |
31151
31165
  export type AzureVirtualMachineFieldEnum = 'access_url' | 'backend_id' | 'cores' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_name' | 'customer_native_name' | 'customer_uuid' | 'description' | 'disk' | 'error_message' | 'error_traceback' | 'external_ips' | 'image' | 'image_name' | 'internal_ips' | 'is_limit_based' | 'is_usage_based' | 'key_fingerprint' | 'key_name' | 'latitude' | 'location' | 'location_name' | 'longitude' | 'marketplace_category_name' | 'marketplace_category_uuid' | 'marketplace_offering_name' | 'marketplace_offering_plugin_options' | 'marketplace_offering_type' | 'marketplace_offering_uuid' | 'marketplace_plan_uuid' | 'marketplace_resource_state' | 'marketplace_resource_uuid' | 'min_disk' | 'min_ram' | 'modified' | 'name' | 'password' | 'project' | 'project_name' | 'project_uuid' | 'ram' | 'resource_group' | 'resource_group_name' | 'resource_type' | 'runtime_state' | 'service_name' | 'service_settings' | 'service_settings_error_message' | 'service_settings_state' | 'service_settings_uuid' | 'size' | 'size_name' | 'ssh_public_key' | 'start_time' | 'state' | 'url' | 'user_data' | 'username' | 'uuid';
31152
31166
  export type BackendResourceReqOEnum = '-created' | 'created';
31153
31167
  export type OfferingFieldEnum = 'access_url' | 'attributes' | 'backend_id' | 'backend_metadata' | 'billable' | 'billing_type_classification' | 'category' | 'category_title' | 'category_uuid' | 'citation_count' | 'compliance_checklist' | 'components' | 'country' | 'created' | 'customer' | 'customer_name' | 'customer_uuid' | 'datacite_doi' | 'description' | 'documentation_url' | 'effective_available_limits' | 'endpoints' | 'files' | 'full_description' | 'getting_started' | 'googlecalendar' | 'has_compliance_requirements' | 'helpdesk_url' | 'image' | 'integration_guide' | 'is_accessible' | 'latitude' | 'longitude' | 'name' | 'offering_group' | 'offering_group_title' | 'offering_group_uuid' | 'options' | 'order_count' | 'organization_groups' | 'parent_description' | 'parent_name' | 'parent_uuid' | 'partitions' | 'paused_reason' | 'plans' | 'plugin_options' | 'privacy_policy_link' | 'profile_name' | 'profile_uuid' | 'project' | 'project_name' | 'project_uuid' | 'quotas' | 'resource_options' | 'scope' | 'scope_error_message' | 'scope_name' | 'scope_state' | 'scope_uuid' | 'screenshots' | 'secret_options' | 'service_attributes' | 'shared' | 'slug' | 'software_catalogs' | 'state' | 'tags' | 'thumbnail' | 'total_cost' | 'total_cost_estimated' | 'total_customers' | 'type' | 'url' | 'user_has_consent' | 'uuid' | 'vendor_details';
31154
- export type BookingResourceFieldEnum = 'attributes' | 'available_actions' | 'backend_id' | 'backend_metadata' | 'can_terminate' | 'category_icon' | 'category_title' | 'category_uuid' | 'consumer_reviewed_by' | 'consumer_reviewed_by_full_name' | 'consumer_reviewed_by_username' | 'created' | 'created_by' | 'created_by_full_name' | 'created_by_username' | 'creation_order' | 'current_usages' | 'customer_name' | 'customer_slug' | 'customer_uuid' | 'description' | 'downscaled' | 'effective_id' | 'end_date' | 'end_date_requested_by' | 'end_date_updated_at' | 'endpoints' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'last_sync' | 'limit_usage' | 'limits' | 'modified' | 'name' | 'offering' | 'offering_backend_id' | 'offering_billable' | 'offering_components' | 'offering_description' | 'offering_image' | 'offering_name' | 'offering_plugin_options' | 'offering_shared' | 'offering_slug' | 'offering_state' | 'offering_thumbnail' | 'offering_type' | 'offering_uuid' | 'options' | 'order_in_progress' | 'parent_name' | 'parent_offering_name' | 'parent_offering_slug' | 'parent_offering_uuid' | 'parent_uuid' | 'paused' | 'plan' | 'plan_description' | 'plan_name' | 'plan_unit' | 'plan_uuid' | 'project' | 'project_description' | 'project_effective_end_date' | 'project_end_date' | 'project_end_date_requested_by' | 'project_is_in_grace_period' | 'project_name' | 'project_slug' | 'project_uuid' | 'provider_description' | 'provider_name' | 'provider_slug' | 'provider_uuid' | 'renewal_date' | 'report' | 'resource_type' | 'resource_uuid' | 'restrict_member_access' | 'scope' | 'service_settings_uuid' | 'slots' | 'slug' | 'state' | 'url' | 'usage_limit_restriction' | 'user_requires_reconsent' | 'username' | 'uuid';
31168
+ export type BookingResourceFieldEnum = 'attributes' | 'available_actions' | 'backend_id' | 'backend_metadata' | 'can_terminate' | 'category_icon' | 'category_title' | 'category_uuid' | 'consumer_reviewed_by' | 'consumer_reviewed_by_full_name' | 'consumer_reviewed_by_username' | 'created' | 'created_by' | 'created_by_full_name' | 'created_by_username' | 'creation_order' | 'current_usages' | 'customer_name' | 'customer_slug' | 'customer_uuid' | 'description' | 'downscaled' | 'effective_id' | 'end_date' | 'end_date_requested_by' | 'end_date_updated_at' | 'endpoints' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'last_sync' | 'limit_usage' | 'limits' | 'modified' | 'name' | 'offering' | 'offering_backend_id' | 'offering_billable' | 'offering_components' | 'offering_description' | 'offering_image' | 'offering_name' | 'offering_plugin_options' | 'offering_shared' | 'offering_slug' | 'offering_state' | 'offering_thumbnail' | 'offering_type' | 'offering_uuid' | 'options' | 'order_in_progress' | 'parent_name' | 'parent_offering_name' | 'parent_offering_slug' | 'parent_offering_uuid' | 'parent_uuid' | 'paused' | 'plan' | 'plan_description' | 'plan_name' | 'plan_unit' | 'plan_uuid' | 'project' | 'project_description' | 'project_effective_end_date' | 'project_end_date' | 'project_end_date_requested_by' | 'project_is_in_grace_period' | 'project_name' | 'project_slug' | 'project_uuid' | 'provider_description' | 'provider_name' | 'provider_slug' | 'provider_uuid' | 'renewal_date' | 'report' | 'resource_effective_end_date' | 'resource_type' | 'resource_uuid' | 'restrict_member_access' | 'scope' | 'service_settings_uuid' | 'slots' | 'slug' | 'state' | 'url' | 'usage_limit_restriction' | 'user_requires_reconsent' | 'username' | 'uuid';
31155
31169
  export type BookingResourceOEnum = '-created' | '-name' | '-schedules' | '-type' | 'created' | 'name' | 'schedules' | 'type';
31156
31170
  export type BroadcastMessageFieldEnum = 'author_full_name' | 'body' | 'created' | 'emails' | 'query' | 'send_at' | 'state' | 'subject' | 'uuid';
31157
31171
  export type BroadcastMessageOEnum = '-author_full_name' | '-created' | '-subject' | 'author_full_name' | 'created' | 'subject';
@@ -31188,7 +31202,7 @@ export type SshKeyFieldEnum = 'fingerprint_md5' | 'fingerprint_sha256' | 'finger
31188
31202
  export type SshKeyOEnum = '-name' | 'name';
31189
31203
  export type MaintenanceAnnouncementOEnum = '-created' | '-name' | '-overrun_minutes' | '-scheduled_end' | '-scheduled_start' | '-start_delta_minutes' | 'created' | 'name' | 'overrun_minutes' | 'scheduled_end' | 'scheduled_start' | 'start_delta_minutes';
31190
31204
  export type MaintenanceAnnouncementTemplateOEnum = '-created' | '-name' | 'created' | 'name';
31191
- export type ResourceFieldEnum = 'attributes' | 'available_actions' | 'backend_id' | 'backend_metadata' | 'can_terminate' | 'category_icon' | 'category_title' | 'category_uuid' | 'created' | 'creation_order' | 'current_usages' | 'customer_name' | 'customer_slug' | 'customer_uuid' | 'description' | 'downscaled' | 'effective_id' | 'end_date' | 'end_date_requested_by' | 'end_date_updated_at' | 'endpoints' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'last_sync' | 'limit_usage' | 'limits' | 'modified' | 'name' | 'offering' | 'offering_backend_id' | 'offering_billable' | 'offering_components' | 'offering_description' | 'offering_image' | 'offering_name' | 'offering_plugin_options' | 'offering_shared' | 'offering_slug' | 'offering_state' | 'offering_thumbnail' | 'offering_type' | 'offering_uuid' | 'options' | 'order_in_progress' | 'parent_name' | 'parent_offering_name' | 'parent_offering_slug' | 'parent_offering_uuid' | 'parent_uuid' | 'paused' | 'plan' | 'plan_description' | 'plan_name' | 'plan_unit' | 'plan_uuid' | 'project' | 'project_description' | 'project_effective_end_date' | 'project_end_date' | 'project_end_date_requested_by' | 'project_is_in_grace_period' | 'project_name' | 'project_slug' | 'project_uuid' | 'provider_description' | 'provider_name' | 'provider_slug' | 'provider_uuid' | 'renewal_date' | 'report' | 'resource_type' | 'resource_uuid' | 'restrict_member_access' | 'scope' | 'service_settings_uuid' | 'slug' | 'state' | 'url' | 'usage_limit_restriction' | 'user_requires_reconsent' | 'username' | 'uuid';
31205
+ export type ResourceFieldEnum = 'attributes' | 'available_actions' | 'backend_id' | 'backend_metadata' | 'can_terminate' | 'category_icon' | 'category_title' | 'category_uuid' | 'created' | 'creation_order' | 'current_usages' | 'customer_name' | 'customer_slug' | 'customer_uuid' | 'description' | 'downscaled' | 'effective_id' | 'end_date' | 'end_date_requested_by' | 'end_date_updated_at' | 'endpoints' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'last_sync' | 'limit_usage' | 'limits' | 'modified' | 'name' | 'offering' | 'offering_backend_id' | 'offering_billable' | 'offering_components' | 'offering_description' | 'offering_image' | 'offering_name' | 'offering_plugin_options' | 'offering_shared' | 'offering_slug' | 'offering_state' | 'offering_thumbnail' | 'offering_type' | 'offering_uuid' | 'options' | 'order_in_progress' | 'parent_name' | 'parent_offering_name' | 'parent_offering_slug' | 'parent_offering_uuid' | 'parent_uuid' | 'paused' | 'plan' | 'plan_description' | 'plan_name' | 'plan_unit' | 'plan_uuid' | 'project' | 'project_description' | 'project_effective_end_date' | 'project_end_date' | 'project_end_date_requested_by' | 'project_is_in_grace_period' | 'project_name' | 'project_slug' | 'project_uuid' | 'provider_description' | 'provider_name' | 'provider_slug' | 'provider_uuid' | 'renewal_date' | 'report' | 'resource_effective_end_date' | 'resource_type' | 'resource_uuid' | 'restrict_member_access' | 'scope' | 'service_settings_uuid' | 'slug' | 'state' | 'url' | 'usage_limit_restriction' | 'user_requires_reconsent' | 'username' | 'uuid';
31192
31206
  export type MarketplaceCategoryFieldEnum = 'articles' | 'available_offerings_count' | 'columns' | 'components' | 'default_tenant_category' | 'default_vm_category' | 'default_volume_category' | 'description' | 'group' | 'icon' | 'offering_count' | 'sections' | 'title' | 'url' | 'uuid';
31193
31207
  export type CategoryComponentUsageFieldEnum = 'category_title' | 'category_uuid' | 'date' | 'fixed_usage' | 'measured_unit' | 'name' | 'reported_usage' | 'scope' | 'type';
31194
31208
  export type CategoryGroupFieldEnum = 'description' | 'icon' | 'title' | 'url' | 'uuid';
@@ -80335,20 +80349,6 @@ export type ProposalProposalsAdvanceWorkflowStepResponses = {
80335
80349
  200: CompleteWorkflowStepResponse;
80336
80350
  };
80337
80351
  export type ProposalProposalsAdvanceWorkflowStepResponse = ProposalProposalsAdvanceWorkflowStepResponses[keyof ProposalProposalsAdvanceWorkflowStepResponses];
80338
- export type ProposalProposalsApproveData = {
80339
- body?: ProposalApproveRequest;
80340
- path: {
80341
- uuid: string;
80342
- };
80343
- query?: never;
80344
- url: '/api/proposal-proposals/{uuid}/approve/';
80345
- };
80346
- export type ProposalProposalsApproveResponses = {
80347
- /**
80348
- * No response body
80349
- */
80350
- 200: unknown;
80351
- };
80352
80352
  export type ProposalProposalsAttachDocumentData = {
80353
80353
  body?: ProposalDocumentationRequest;
80354
80354
  path: {
@@ -80620,20 +80620,6 @@ export type ProposalProposalsListUsersCountResponses = {
80620
80620
  */
80621
80621
  200: unknown;
80622
80622
  };
80623
- export type ProposalProposalsRejectData = {
80624
- body?: ProposalApproveRequest;
80625
- path: {
80626
- uuid: string;
80627
- };
80628
- query?: never;
80629
- url: '/api/proposal-proposals/{uuid}/reject/';
80630
- };
80631
- export type ProposalProposalsRejectResponses = {
80632
- /**
80633
- * No response body
80634
- */
80635
- 200: unknown;
80636
- };
80637
80623
  export type ProposalProposalsRejectWorkflowStepData = {
80638
80624
  body: RejectWorkflowStepRequest;
80639
80625
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.10-dev.21",
3
+ "version": "8.0.10-dev.23",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",