checkoff 0.266.0 → 0.268.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.
data/rbi/checkoff.rbi CHANGED
@@ -82,7 +82,7 @@ module Overcommit
82
82
  end
83
83
 
84
84
  module Checkoff
85
- VERSION = '0.266.0'
85
+ VERSION = '0.268.0'
86
86
 
87
87
  class Attachments
88
88
  include Logging
@@ -980,6 +980,9 @@ module Checkoff
980
980
  end
981
981
  def section(workspace_name, project_name, section_name, extra_section_fields: []); end
982
982
 
983
+ sig { params(section: T.untyped).returns(T.untyped) }
984
+ def section_project_or_raise(section); end
985
+
983
986
  sig { params(response: T.untyped).returns(T.untyped) }
984
987
  def parse(response); end
985
988
 
@@ -997,6 +1000,9 @@ module Checkoff
997
1000
 
998
1001
  sig { params(workspace_name: T.untyped, project_name: T.untyped).returns(T.untyped) }
999
1002
  def project_or_raise(workspace_name, project_name); end
1003
+
1004
+ sig { returns(T.untyped) }
1005
+ def memberships; end
1000
1006
  end
1001
1007
 
1002
1008
  class Subtasks
@@ -1309,6 +1315,9 @@ module Checkoff
1309
1315
  sig { returns(T.untyped) }
1310
1316
  def task_hashes; end
1311
1317
 
1318
+ sig { returns(T.untyped) }
1319
+ def memberships; end
1320
+
1312
1321
  sig do
1313
1322
  params(
1314
1323
  workspace_name: T.untyped,
@@ -1378,6 +1387,9 @@ module Checkoff
1378
1387
  sig { returns(T.untyped) }
1379
1388
  attr_reader :client
1380
1389
 
1390
+ sig { returns(T.untyped) }
1391
+ def memberships; end
1392
+
1381
1393
  sig { returns(T.untyped) }
1382
1394
  def self.run; end
1383
1395
  end
@@ -1588,6 +1600,11 @@ module Checkoff
1588
1600
  def self.yaml_filename(sym); end
1589
1601
  end
1590
1602
 
1603
+ class Memberships
1604
+ sig { params(task: T.untyped).returns(T.untyped) }
1605
+ def memberships_or_raise(task); end
1606
+ end
1607
+
1591
1608
  class ProjectHashes
1592
1609
  sig { params(_deps: T.untyped).void }
1593
1610
  def initialize(_deps = {}); end
@@ -2381,6 +2398,9 @@ module Checkoff
2381
2398
 
2382
2399
  sig { params(task: T.untyped, num_days: T.untyped, excluding_resource_subtypes: T.untyped).returns(T.untyped) }
2383
2400
  def evaluate(task, num_days, excluding_resource_subtypes); end
2401
+
2402
+ sig { params(story: T.untyped).returns(T.untyped) }
2403
+ def created_time(story); end
2384
2404
  end
2385
2405
 
2386
2406
  class EstimateExceedsDurationPFunctionEvaluator < FunctionEvaluator
@@ -2483,10 +2503,9 @@ module Checkoff
2483
2503
  end
2484
2504
  end
2485
2505
  # typed: ignore
2486
- # typed: true
2487
- # frozen_string_literal: true
2506
+ # Command-line and gem client for Asana (unofficial)
2488
2507
  module Checkoff
2489
- VERSION = T.let('0.266.0', T.untyped)
2508
+ VERSION = T.let('0.268.0', T.untyped)
2490
2509
 
2491
2510
  # Move tasks from one place to another
2492
2511
  class MvSubcommand
@@ -2549,9 +2568,6 @@ module Checkoff
2549
2568
  end
2550
2569
  def initialize(from_workspace_arg:, from_project_arg:, from_section_arg:, to_workspace_arg:, to_project_arg:, to_section_arg:, config: Checkoff::Internal::ConfigLoader.load(:asana), projects: Checkoff::Projects.new(config:), sections: Checkoff::Sections.new(config:), logger: $stderr); end
2551
2570
 
2552
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2553
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
2554
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
2555
2571
  # _@param_ `tasks`
2556
2572
  #
2557
2573
  # _@param_ `to_project`
@@ -2560,7 +2576,6 @@ module Checkoff
2560
2576
  sig { params(tasks: T::Enumerable[Asana::Resources::Task], to_project: Asana::Resources::Project, to_section: Asana::Resources::Section).void }
2561
2577
  def move_tasks(tasks, to_project, to_section); end
2562
2578
 
2563
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2564
2579
  # _@param_ `from_workspace_name`
2565
2580
  #
2566
2581
  # _@param_ `from_project_name`
@@ -2683,12 +2698,10 @@ module Checkoff
2683
2698
  end
2684
2699
  def run_on_task(workspace, project, section, task_name); end
2685
2700
 
2686
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2687
2701
  # _@param_ `task`
2688
2702
  sig { params(task: Asana::Resources::Task).returns(T::Hash[Symbol, T.untyped]) }
2689
2703
  def task_to_hash(task); end
2690
2704
 
2691
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2692
2705
  # _@param_ `tasks`
2693
2706
  sig { params(tasks: T::Enumerable[Asana::Resources::Task]).returns(T::Array[T::Hash[T.untyped, T.untyped]]) }
2694
2707
  def tasks_to_hash(tasks); end
@@ -2771,7 +2784,6 @@ module Checkoff
2771
2784
  LONG_CACHE_TIME = T.let(T.let(MINUTE * 15, Numeric), T.untyped)
2772
2785
  SHORT_CACHE_TIME = T.let(T.let(MINUTE, Numeric), T.untyped)
2773
2786
 
2774
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
2775
2787
  # _@param_ `config`
2776
2788
  #
2777
2789
  # _@param_ `clients`
@@ -2792,7 +2804,6 @@ module Checkoff
2792
2804
  end
2793
2805
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), clients: Checkoff::Clients.new(config:), client: clients.client, projects: Checkoff::Projects.new(config:, client:), workspaces: Checkoff::Workspaces.new(config:, client:)); end
2794
2806
 
2795
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2796
2807
  # _@param_ `workspace_name`
2797
2808
  #
2798
2809
  # _@param_ `tag_name`
@@ -2810,7 +2821,6 @@ module Checkoff
2810
2821
  end
2811
2822
  def tasks(workspace_name, tag_name, only_uncompleted: true, extra_fields: []); end
2812
2823
 
2813
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2814
2824
  # _@param_ `workspace_name`
2815
2825
  #
2816
2826
  # _@param_ `tag_gid`
@@ -2828,14 +2838,12 @@ module Checkoff
2828
2838
  end
2829
2839
  def tasks_by_tag_gid(workspace_name, tag_gid, only_uncompleted: true, extra_fields: []); end
2830
2840
 
2831
- # sord warn - Asana::Resources::Tag wasn't able to be resolved to a constant in this project
2832
2841
  # _@param_ `workspace_name`
2833
2842
  #
2834
2843
  # _@param_ `tag_name`
2835
2844
  sig { params(workspace_name: String, tag_name: String).returns(Asana::Resources::Tag) }
2836
2845
  def tag_or_raise(workspace_name, tag_name); end
2837
2846
 
2838
- # sord warn - Asana::Resources::Tag wasn't able to be resolved to a constant in this project
2839
2847
  # _@param_ `workspace_name`
2840
2848
  #
2841
2849
  # _@param_ `tag_name`
@@ -2846,11 +2854,10 @@ module Checkoff
2846
2854
  sig { params(options: T::Hash[Symbol, Object]).returns(T::Hash[Symbol, Object]) }
2847
2855
  def build_params(options); end
2848
2856
 
2849
- # sord warn - Asana::HttpClient::Response wasn't able to be resolved to a constant in this project
2850
2857
  # https://github.com/Asana/ruby-asana/blob/master/lib/asana/resource_includes/response_helper.rb#L7
2851
2858
  #
2852
2859
  # _@param_ `response`
2853
- sig { params(response: Asana::HttpClient::Response).returns(T::Array[T::Hash[T.untyped, T.untyped]]) }
2860
+ sig { params(response: Asana::HttpClient::Response).returns([T::Array[T::Hash[T.untyped, T.untyped]], T::Hash[T.untyped, T.untyped]]) }
2854
2861
  def parse(response); end
2855
2862
 
2856
2863
  sig { void }
@@ -2862,7 +2869,6 @@ module Checkoff
2862
2869
  sig { returns(Checkoff::Projects) }
2863
2870
  attr_reader :projects
2864
2871
 
2865
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
2866
2872
  sig { returns(Asana::Client) }
2867
2873
  attr_reader :client
2868
2874
  end
@@ -2878,8 +2884,6 @@ module Checkoff
2878
2884
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
2879
2885
  SHORT_CACHE_TIME = T.let(MINUTE * 5, T.untyped)
2880
2886
 
2881
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
2882
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2883
2887
  # _@param_ `config`
2884
2888
  #
2885
2889
  # _@param_ `client`
@@ -2916,7 +2920,6 @@ module Checkoff
2916
2920
  client:), custom_fields: Checkoff::CustomFields.new(config:,
2917
2921
  client:), time_class: Time, date_class: Date, asana_task: Asana::Resources::Task); end
2918
2922
 
2919
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2920
2923
  # Indicates a task is ready for a person to work on it. This is
2921
2924
  # subtly different than what is used by Asana to mark a date as
2922
2925
  # red/green! A task is ready if it is not dependent on an
@@ -2935,7 +2938,6 @@ module Checkoff
2935
2938
  sig { params(task: Asana::Resources::Task, period: Symbol, ignore_dependencies: T::Boolean).returns(T::Boolean) }
2936
2939
  def task_ready?(task, period: :now_or_before, ignore_dependencies: false); end
2937
2940
 
2938
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2939
2941
  # _@param_ `task`
2940
2942
  #
2941
2943
  # _@param_ `field_name`
@@ -2944,14 +2946,12 @@ module Checkoff
2944
2946
  sig { params(task: Asana::Resources::Task, field_name: T.any(Symbol, T::Array[T.untyped]), period: T.any(Symbol, T::Array[T.untyped])).returns(T::Boolean) }
2945
2947
  def in_period?(task, field_name, period); end
2946
2948
 
2947
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2948
2949
  # _@param_ `task`
2949
2950
  #
2950
2951
  # _@param_ `field_name` — :start - start_at or start_on (first set) :due - due_at or due_on (first set) :ready - start_at or start_on or due_at or due_on (first set) :modified - modified_at [:custom_field, "foo"] - 'Date' custom field type named 'foo'
2951
2952
  sig { params(task: Asana::Resources::Task, field_name: T.any(Symbol, T::Array[T.untyped])).returns(T.nilable(T.any(Date, Time))) }
2952
2953
  def date_or_time_field_by_name(task, field_name); end
2953
2954
 
2954
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2955
2955
  # Pull a specific task by name
2956
2956
  #
2957
2957
  # _@param_ `workspace_name`
@@ -2994,7 +2994,6 @@ module Checkoff
2994
2994
  end
2995
2995
  def gid_for_task(workspace_name, project_name, section_name, task_name); end
2996
2996
 
2997
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
2998
2997
  # Pull a specific task by GID
2999
2998
  #
3000
2999
  # _@param_ `task_gid`
@@ -3005,7 +3004,6 @@ module Checkoff
3005
3004
  sig { params(task_gid: String, extra_fields: T::Array[String], only_uncompleted: T::Boolean).returns(T.nilable(Asana::Resources::Task)) }
3006
3005
  def task_by_gid(task_gid, extra_fields: [], only_uncompleted: true); end
3007
3006
 
3008
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3009
3007
  # Add a task
3010
3008
  #
3011
3009
  # _@param_ `name`
@@ -3016,7 +3014,6 @@ module Checkoff
3016
3014
  sig { params(name: String, workspace_gid: String, assignee_gid: String).returns(Asana::Resources::Task) }
3017
3015
  def add_task(name, workspace_gid: @workspaces.default_workspace_gid, assignee_gid: default_assignee_gid); end
3018
3016
 
3019
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3020
3017
  # Return user-accessible URL for a task
3021
3018
  #
3022
3019
  # _@param_ `task`
@@ -3025,7 +3022,6 @@ module Checkoff
3025
3022
  sig { params(task: Asana::Resources::Task).returns(String) }
3026
3023
  def url_of_task(task); end
3027
3024
 
3028
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3029
3025
  # True if any of the task's dependencies are marked incomplete
3030
3026
  #
3031
3027
  # Include 'dependencies.gid' in extra_fields of task passed in.
@@ -3034,15 +3030,12 @@ module Checkoff
3034
3030
  sig { params(task: Asana::Resources::Task).returns(T::Boolean) }
3035
3031
  def incomplete_dependencies?(task); end
3036
3032
 
3037
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3038
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3039
3033
  # _@param_ `task`
3040
3034
  #
3041
3035
  # _@param_ `extra_task_fields`
3042
3036
  sig { params(task: Asana::Resources::Task, extra_task_fields: T::Array[String]).returns(T::Array[Asana::Resources::Task]) }
3043
3037
  def all_dependent_tasks(task, extra_task_fields: []); end
3044
3038
 
3045
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3046
3039
  # Builds on the standard API representation of an Asana task with some
3047
3040
  # convenience keys:
3048
3041
  #
@@ -3058,12 +3051,10 @@ module Checkoff
3058
3051
  sig { params(task: Asana::Resources::Task).returns(T::Hash[T.untyped, T.untyped]) }
3059
3052
  def task_to_h(task); end
3060
3053
 
3061
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3062
3054
  # _@param_ `task_data`
3063
3055
  sig { params(task_data: T::Hash[String, Object]).returns(Asana::Resources::Task) }
3064
3056
  def h_to_task(task_data); end
3065
3057
 
3066
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3067
3058
  # True if the task is in a project which is in the given portfolio
3068
3059
  #
3069
3060
  # _@param_ `task`
@@ -3074,7 +3065,6 @@ module Checkoff
3074
3065
  sig { params(task: Asana::Resources::Task, portfolio_name: String, workspace_name: String).returns(T::Boolean) }
3075
3066
  def in_portfolio_named?(task, portfolio_name, workspace_name: T.must(@workspaces.default_workspace.name)); end
3076
3067
 
3077
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3078
3068
  # True if the task is in a project which is in the given portfolio
3079
3069
  #
3080
3070
  # _@param_ `task`
@@ -3094,7 +3084,9 @@ module Checkoff
3094
3084
  sig { returns(Checkoff::Internal::TaskHashes) }
3095
3085
  def task_hashes; end
3096
3086
 
3097
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3087
+ sig { returns(Checkoff::Internal::Memberships) }
3088
+ def memberships; end
3089
+
3098
3090
  # _@param_ `workspace_name`
3099
3091
  #
3100
3092
  # _@param_ `project_name`
@@ -3147,7 +3139,6 @@ module Checkoff
3147
3139
  sig { returns(Symbol) }
3148
3140
  def log_level; end
3149
3141
 
3150
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3151
3142
  sig { returns(Asana::Client) }
3152
3143
  attr_reader :client
3153
3144
 
@@ -3169,7 +3160,6 @@ module Checkoff
3169
3160
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
3170
3161
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
3171
3162
 
3172
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3173
3163
  # _@param_ `config`
3174
3164
  #
3175
3165
  # _@param_ `workspaces`
@@ -3266,7 +3256,6 @@ module Checkoff
3266
3256
  sig { returns(Checkoff::Workspaces) }
3267
3257
  attr_reader :workspaces
3268
3258
 
3269
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3270
3259
  sig { returns(Asana::Client) }
3271
3260
  attr_reader :client
3272
3261
 
@@ -3410,14 +3399,12 @@ module Checkoff
3410
3399
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
3411
3400
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
3412
3401
 
3413
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3414
3402
  # _@param_ `config`
3415
3403
  #
3416
3404
  # _@param_ `asana_client_class`
3417
3405
  sig { params(config: T.any(T::Hash[T.untyped, T.untyped], Checkoff::Internal::EnvFallbackConfigLoader), asana_client_class: T.class_of(Asana::Client)).void }
3418
3406
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), asana_client_class: Asana::Client); end
3419
3407
 
3420
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3421
3408
  sig { returns(Asana::Client) }
3422
3409
  def client; end
3423
3410
 
@@ -3431,7 +3418,6 @@ module Checkoff
3431
3418
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
3432
3419
  SHORT_CACHE_TIME = T.let(MINUTE * 5, T.untyped)
3433
3420
 
3434
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3435
3421
  # _@param_ `config`
3436
3422
  #
3437
3423
  # _@param_ `client`
@@ -3441,8 +3427,6 @@ module Checkoff
3441
3427
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), client: Checkoff::Clients.new(config:).client, projects: Checkoff::Projects.new(config:,
3442
3428
  client:)); end
3443
3429
 
3444
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3445
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3446
3430
  # Given a 'My Tasks' project object, pull all tasks, then provide
3447
3431
  # a Hash of tasks with section name -> task list of the
3448
3432
  # uncompleted tasks.
@@ -3459,8 +3443,6 @@ module Checkoff
3459
3443
  sig { params(name: T.nilable(String)).returns(T.nilable(String)) }
3460
3444
  def section_key(name); end
3461
3445
 
3462
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3463
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3464
3446
  # Given a list of tasks in 'My Tasks', pull a Hash of tasks with
3465
3447
  # section name -> task list
3466
3448
  #
@@ -3473,7 +3455,6 @@ module Checkoff
3473
3455
  sig { returns(Checkoff::Projects) }
3474
3456
  attr_reader :projects
3475
3457
 
3476
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3477
3458
  sig { returns(Asana::Client) }
3478
3459
  attr_reader :client
3479
3460
  end
@@ -3490,7 +3471,6 @@ module Checkoff
3490
3471
  MEDIUM_CACHE_TIME = T.let(MINUTE * 5, T.untyped)
3491
3472
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
3492
3473
 
3493
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3494
3474
  # _@param_ `config`
3495
3475
  #
3496
3476
  # _@param_ `client`
@@ -3543,7 +3523,6 @@ module Checkoff
3543
3523
  sig { params(extra_project_fields: T::Array[String]).returns(T::Hash[Symbol, Object]) }
3544
3524
  def project_options(extra_project_fields: []); end
3545
3525
 
3546
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3547
3526
  # pulls an Asana API project class given a name
3548
3527
  #
3549
3528
  # _@param_ `workspace_name`
@@ -3554,7 +3533,6 @@ module Checkoff
3554
3533
  sig { params(workspace_name: T.any(String, Symbol), project_name: T.any(String, Symbol), extra_fields: T::Array[String]).returns(T.nilable(Asana::Resources::Project)) }
3555
3534
  def project(workspace_name, project_name, extra_fields: []); end
3556
3535
 
3557
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3558
3536
  # _@param_ `workspace_name`
3559
3537
  #
3560
3538
  # _@param_ `project_name` — - :my_tasks or a project name
@@ -3563,23 +3541,18 @@ module Checkoff
3563
3541
  sig { params(workspace_name: T.any(String, Symbol), project_name: T.any(String, Symbol), extra_fields: T::Array[String]).returns(Asana::Resources::Project) }
3564
3542
  def project_or_raise(workspace_name, project_name, extra_fields: []); end
3565
3543
 
3566
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3567
3544
  # _@param_ `gid`
3568
3545
  #
3569
3546
  # _@param_ `extra_fields`
3570
3547
  sig { params(gid: String, extra_fields: T::Array[String]).returns(T.nilable(Asana::Resources::Project)) }
3571
3548
  def project_by_gid(gid, extra_fields: []); end
3572
3549
 
3573
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3574
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3575
3550
  # find uncompleted tasks in a list
3576
3551
  #
3577
3552
  # _@param_ `tasks`
3578
3553
  sig { params(tasks: T::Enumerable[Asana::Resources::Task]).returns(T::Enumerable[Asana::Resources::Task]) }
3579
3554
  def active_tasks(tasks); end
3580
3555
 
3581
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3582
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3583
3556
  # Pull task objects from a named project
3584
3557
  #
3585
3558
  # _@param_ `project`
@@ -3590,7 +3563,6 @@ module Checkoff
3590
3563
  sig { params(project: Asana::Resources::Project, only_uncompleted: T::Boolean, extra_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Task]) }
3591
3564
  def tasks_from_project(project, only_uncompleted: true, extra_fields: []); end
3592
3565
 
3593
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3594
3566
  # Pull task objects from a project identified by a gid
3595
3567
  #
3596
3568
  # _@param_ `project_gid`
@@ -3601,14 +3573,12 @@ module Checkoff
3601
3573
  sig { params(project_gid: String, only_uncompleted: T::Boolean, extra_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Task]) }
3602
3574
  def tasks_from_project_gid(project_gid, only_uncompleted: true, extra_fields: []); end
3603
3575
 
3604
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3605
3576
  # _@param_ `workspace_name`
3606
3577
  #
3607
3578
  # _@param_ `extra_fields`
3608
3579
  sig { params(workspace_name: T.any(String, Symbol), extra_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Project]) }
3609
3580
  def projects_by_workspace_name(workspace_name, extra_fields: []); end
3610
3581
 
3611
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3612
3582
  # sord warn - "\"unwrapped\"" does not appear to be a type
3613
3583
  # sord warn - "Hash{\"custom_fields\" => Hash{String =" does not appear to be a type
3614
3584
  # _@param_ `project_obj`
@@ -3617,7 +3587,6 @@ module Checkoff
3617
3587
  sig { params(project_obj: Asana::Resources::Project, project: T.nilable(T.any(String, Symbol))).returns(T::Hash[T.untyped, T.untyped]) }
3618
3588
  def project_to_h(project_obj, project: :not_specified); end
3619
3589
 
3620
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3621
3590
  # Indicates a project is ready for a person to work on it. This
3622
3591
  # is subtly different than what is used by Asana to mark a date as
3623
3592
  # red/green!
@@ -3631,7 +3600,6 @@ module Checkoff
3631
3600
  sig { params(project: Asana::Resources::Project, period: T.any(Symbol, T::Array[T.any(Symbol, Integer)])).returns(T::Boolean) }
3632
3601
  def project_ready?(project, period: :now_or_before); end
3633
3602
 
3634
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3635
3603
  # _@param_ `project`
3636
3604
  #
3637
3605
  # _@param_ `field_name`
@@ -3647,7 +3615,6 @@ module Checkoff
3647
3615
  sig { returns(Asana::ProxiedResourceClasses::Project) }
3648
3616
  def projects; end
3649
3617
 
3650
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3651
3618
  # _@param_ `workspace_name`
3652
3619
  sig { params(workspace_name: T.any(String, Symbol)).returns(Asana::Resources::Project) }
3653
3620
  def my_tasks(workspace_name); end
@@ -3687,7 +3654,6 @@ module Checkoff
3687
3654
  sig { returns(Checkoff::Internal::ProjectHashes) }
3688
3655
  attr_reader :project_hashes
3689
3656
 
3690
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3691
3657
  sig { returns(Asana::Client) }
3692
3658
  attr_reader :client
3693
3659
  end
@@ -3703,7 +3669,6 @@ module Checkoff
3703
3669
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
3704
3670
  SHORT_CACHE_TIME = T.let(MINUTE * 5, T.untyped)
3705
3671
 
3706
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3707
3672
  # _@param_ `config`
3708
3673
  #
3709
3674
  # _@param_ `client`
@@ -3726,7 +3691,6 @@ module Checkoff
3726
3691
  client:), workspaces: Checkoff::Workspaces.new(config:,
3727
3692
  client:), time: Time); end
3728
3693
 
3729
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
3730
3694
  # Returns a list of Asana API section objects for a given project
3731
3695
  #
3732
3696
  # _@param_ `workspace_name`
@@ -3737,7 +3701,6 @@ module Checkoff
3737
3701
  sig { params(workspace_name: T.any(String, Symbol), project_name: T.any(String, Symbol), extra_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Section]) }
3738
3702
  def sections_or_raise(workspace_name, project_name, extra_fields: []); end
3739
3703
 
3740
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
3741
3704
  # Returns a list of Asana API section objects for a given project GID
3742
3705
  #
3743
3706
  # _@param_ `project_gid`
@@ -3746,7 +3709,6 @@ module Checkoff
3746
3709
  sig { params(project_gid: String, extra_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Section]) }
3747
3710
  def sections_by_project_gid(project_gid, extra_fields: []); end
3748
3711
 
3749
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3750
3712
  # Given a workspace name and project name, then provide a Hash of
3751
3713
  # tasks with section name -> task list of the uncompleted tasks
3752
3714
  #
@@ -3767,7 +3729,6 @@ module Checkoff
3767
3729
  end
3768
3730
  def tasks_by_section(workspace_name, project_name, only_uncompleted: true, extra_fields: []); end
3769
3731
 
3770
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3771
3732
  # _@param_ `section_gid`
3772
3733
  #
3773
3734
  # _@param_ `only_uncompleted`
@@ -3776,7 +3737,6 @@ module Checkoff
3776
3737
  sig { params(section_gid: String, only_uncompleted: T::Boolean, extra_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Task]) }
3777
3738
  def tasks_by_section_gid(section_gid, only_uncompleted: true, extra_fields: []); end
3778
3739
 
3779
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3780
3740
  # Pulls task objects from a specified section
3781
3741
  #
3782
3742
  # _@param_ `workspace_name`
@@ -3809,7 +3769,6 @@ module Checkoff
3809
3769
  sig { params(workspace_name: String, project_name: T.any(String, Symbol), section_name: T.nilable(String)).returns(T::Array[String]) }
3810
3770
  def section_task_names(workspace_name, project_name, section_name); end
3811
3771
 
3812
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
3813
3772
  # _@param_ `workspace_name`
3814
3773
  #
3815
3774
  # _@param_ `project_name`
@@ -3831,13 +3790,10 @@ module Checkoff
3831
3790
  sig { params(name: T.nilable(String)).returns(T.nilable(String)) }
3832
3791
  def section_key(name); end
3833
3792
 
3834
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
3835
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
3836
3793
  # _@param_ `section`
3837
3794
  sig { params(section: Asana::Resources::Section).returns(T.nilable(Asana::Resources::Section)) }
3838
3795
  def previous_section(section); end
3839
3796
 
3840
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
3841
3797
  # _@param_ `gid`
3842
3798
  sig { params(gid: String).returns(T.nilable(Asana::Resources::Section)) }
3843
3799
  def section_by_gid(gid); end
@@ -3845,7 +3801,6 @@ module Checkoff
3845
3801
  sig { returns(T::Hash[T.untyped, T.untyped]) }
3846
3802
  def as_cache_key; end
3847
3803
 
3848
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
3849
3804
  # _@param_ `workspace_name`
3850
3805
  #
3851
3806
  # _@param_ `project_name`
@@ -3863,15 +3818,19 @@ module Checkoff
3863
3818
  end
3864
3819
  def section(workspace_name, project_name, section_name, extra_section_fields: []); end
3865
3820
 
3866
- # sord warn - Asana::HttpClient::Response wasn't able to be resolved to a constant in this project
3821
+ # Asana returns nil for a section's project unless it was requested
3822
+ # via 'fields' / extra_fields; raise a clear error instead.
3823
+ #
3824
+ # _@param_ `section`
3825
+ sig { params(section: Asana::Resources::Section).returns(T::Hash[String, String]) }
3826
+ def section_project_or_raise(section); end
3827
+
3867
3828
  # https://github.com/Asana/ruby-asana/blob/master/lib/asana/resource_includes/response_helper.rb#L7
3868
3829
  #
3869
3830
  # _@param_ `response`
3870
- sig { params(response: Asana::HttpClient::Response).returns(T::Array[T::Hash[T.untyped, T.untyped]]) }
3831
+ sig { params(response: Asana::HttpClient::Response).returns([T::Hash[T.untyped, T.untyped], T::Hash[T.untyped, T.untyped]]) }
3871
3832
  def parse(response); end
3872
3833
 
3873
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3874
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3875
3834
  # Given a project object, pull all tasks, then provide a Hash of
3876
3835
  # tasks with section name -> task list of the uncompleted tasks
3877
3836
  #
@@ -3883,8 +3842,6 @@ module Checkoff
3883
3842
  sig { params(project: Asana::Resources::Project, only_uncompleted: T::Boolean, extra_fields: T::Array[String]).returns(T::Hash[T.nilable(String), T::Enumerable[Asana::Resources::Task]]) }
3884
3843
  def tasks_by_section_for_project(project, only_uncompleted: true, extra_fields: []); end
3885
3844
 
3886
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3887
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3888
3845
  # Given a list of tasks, pull a Hash of tasks with section name -> task list
3889
3846
  #
3890
3847
  # _@param_ `tasks`
@@ -3893,8 +3850,6 @@ module Checkoff
3893
3850
  sig { params(tasks: T::Enumerable[Asana::Resources::Task], project_gid: String).returns(T::Hash[T.nilable(String), T::Enumerable[Asana::Resources::Task]]) }
3894
3851
  def by_section(tasks, project_gid); end
3895
3852
 
3896
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3897
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3898
3853
  # _@param_ `by_section`
3899
3854
  #
3900
3855
  # _@param_ `task`
@@ -3903,13 +3858,15 @@ module Checkoff
3903
3858
  sig { params(by_section: T::Hash[T.nilable(String), T::Array[Asana::Resources::Task]], task: Asana::Resources::Task, project_gid: String).void }
3904
3859
  def file_task_by_section(by_section, task, project_gid); end
3905
3860
 
3906
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
3907
3861
  # _@param_ `workspace_name`
3908
3862
  #
3909
3863
  # _@param_ `project_name`
3910
3864
  sig { params(workspace_name: T.any(String, Symbol), project_name: T.any(String, Symbol)).returns(Asana::Resources::Project) }
3911
3865
  def project_or_raise(workspace_name, project_name); end
3912
3866
 
3867
+ sig { returns(Checkoff::Internal::Memberships) }
3868
+ def memberships; end
3869
+
3913
3870
  sig { returns(::Logger) }
3914
3871
  def logger; end
3915
3872
 
@@ -3948,7 +3905,6 @@ module Checkoff
3948
3905
  sig { returns(Checkoff::MyTasks) }
3949
3906
  attr_reader :my_tasks
3950
3907
 
3951
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3952
3908
  sig { returns(Asana::Client) }
3953
3909
  attr_reader :client
3954
3910
  end
@@ -3969,30 +3925,24 @@ module Checkoff
3969
3925
  sig { params(config: T.any(T::Hash[T.untyped, T.untyped], Checkoff::Internal::EnvFallbackConfigLoader), projects: Checkoff::Projects, clients: Checkoff::Clients).void }
3970
3926
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), projects: Checkoff::Projects.new(config:), clients: Checkoff::Clients.new(config:)); end
3971
3927
 
3972
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3973
3928
  # True if all subtasks of the task are completed
3974
3929
  #
3975
3930
  # _@param_ `task`
3976
3931
  sig { params(task: Asana::Resources::Task).returns(T::Boolean) }
3977
3932
  def all_subtasks_completed?(task); end
3978
3933
 
3979
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3980
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3981
3934
  # pulls a Hash of subtasks broken out by section
3982
3935
  #
3983
3936
  # _@param_ `tasks`
3984
3937
  sig { params(tasks: T::Enumerable[Asana::Resources::Task]).returns(T::Hash[T.nilable(String), T::Enumerable[Asana::Resources::Task]]) }
3985
3938
  def by_section(tasks); end
3986
3939
 
3987
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3988
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3989
3940
  # Returns all subtasks, including section headers
3990
3941
  #
3991
3942
  # _@param_ `task`
3992
3943
  sig { params(task: Asana::Resources::Task).returns(T::Enumerable[Asana::Resources::Task]) }
3993
3944
  def raw_subtasks(task); end
3994
3945
 
3995
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
3996
3946
  # Pull a specific task by GID
3997
3947
  #
3998
3948
  # _@param_ `task_gid`
@@ -4003,7 +3953,6 @@ module Checkoff
4003
3953
  sig { params(task_gid: String, extra_fields: T::Array[String], only_uncompleted: T::Boolean).returns(T::Enumerable[Asana::Resources::Task]) }
4004
3954
  def subtasks_by_gid(task_gid, extra_fields: [], only_uncompleted: true); end
4005
3955
 
4006
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4007
3956
  # True if the subtask passed in represents a section in the subtasks
4008
3957
  #
4009
3958
  # Note: expect this to be removed in a future version, as Asana is
@@ -4014,7 +3963,6 @@ module Checkoff
4014
3963
  sig { params(subtask: Asana::Resources::Task).returns(T.nilable(T::Boolean)) }
4015
3964
  def subtask_section?(subtask); end
4016
3965
 
4017
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4018
3966
  # _@param_ `current_section`
4019
3967
  #
4020
3968
  # _@param_ `by_section`
@@ -4026,7 +3974,6 @@ module Checkoff
4026
3974
  sig { returns(Checkoff::Projects) }
4027
3975
  attr_reader :projects
4028
3976
 
4029
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4030
3977
  sig { returns(Asana::Client) }
4031
3978
  attr_reader :client
4032
3979
  end
@@ -4041,7 +3988,6 @@ module Checkoff
4041
3988
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4042
3989
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4043
3990
 
4044
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4045
3991
  # _@param_ `config`
4046
3992
  #
4047
3993
  # _@param_ `workspaces`
@@ -4087,17 +4033,14 @@ module Checkoff
4087
4033
  sig { params(resource_type: String, gid: String).returns(T.nilable(Asana::Resources::Resource)) }
4088
4034
  def fetch_gid_by_type(resource_type, gid); end
4089
4035
 
4090
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4091
4036
  # _@param_ `gid`
4092
4037
  sig { params(gid: String).returns(T.nilable(Asana::Resources::Task)) }
4093
4038
  def fetch_task_gid(gid); end
4094
4039
 
4095
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
4096
4040
  # _@param_ `section_gid`
4097
4041
  sig { params(section_gid: String).returns(T.nilable(Asana::Resources::Section)) }
4098
4042
  def fetch_section_gid(section_gid); end
4099
4043
 
4100
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4101
4044
  # _@param_ `project_gid`
4102
4045
  sig { params(project_gid: String).returns(T.nilable(Asana::Resources::Project)) }
4103
4046
  def fetch_project_gid(project_gid); end
@@ -4117,7 +4060,6 @@ module Checkoff
4117
4060
  sig { returns(Checkoff::Tasks) }
4118
4061
  attr_reader :tasks
4119
4062
 
4120
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4121
4063
  sig { returns(Asana::Client) }
4122
4064
  attr_reader :client
4123
4065
  end
@@ -4132,7 +4074,6 @@ module Checkoff
4132
4074
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4133
4075
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4134
4076
 
4135
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4136
4077
  # _@param_ `config`
4137
4078
  #
4138
4079
  # _@param_ `workspaces`
@@ -4159,46 +4100,43 @@ module Checkoff
4159
4100
  end
4160
4101
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), workspaces: Checkoff::Workspaces.new(config:), sections: Checkoff::Sections.new(config:), tasks: Checkoff::Tasks.new(config:), portfolios: Checkoff::Portfolios.new(config:), clients: Checkoff::Clients.new(config:), client: clients.client); end
4161
4102
 
4162
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4163
4103
  # _@param_ `task`
4164
4104
  #
4165
4105
  # _@param_ `limit_to_portfolio_gid`
4166
4106
  sig { params(task: Asana::Resources::Task, limit_to_portfolio_gid: T.nilable(String)).returns(T::Boolean) }
4167
4107
  def task_dependent_on_previous_section_last_milestone?(task, limit_to_portfolio_gid: nil); end
4168
4108
 
4169
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4170
4109
  # _@param_ `task`
4171
4110
  #
4172
4111
  # _@param_ `limit_to_portfolio_name`
4173
4112
  sig { params(task: Asana::Resources::Task, limit_to_portfolio_name: T.nilable(String)).returns(T::Boolean) }
4174
4113
  def last_task_milestone_depends_on_this_task?(task, limit_to_portfolio_name: nil); end
4175
4114
 
4176
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4177
4115
  # _@param_ `task`
4178
4116
  #
4179
4117
  # _@param_ `limit_to_portfolio_name`
4180
4118
  sig { params(task: Asana::Resources::Task, limit_to_portfolio_name: T.nilable(String)).returns(T::Boolean) }
4181
4119
  def any_milestone_depends_on_this_task?(task, limit_to_portfolio_name: nil); end
4182
4120
 
4183
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4184
4121
  # _@param_ `section_gid`
4185
4122
  sig { params(section_gid: String).returns(T.nilable(Asana::Resources::Task)) }
4186
4123
  def last_milestone_in_section(section_gid); end
4187
4124
 
4188
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
4189
4125
  # _@param_ `task_data`
4190
4126
  #
4191
4127
  # _@param_ `section`
4192
4128
  sig { params(task_data: T::Hash[String, Object], section: Asana::Resources::Section).returns(T::Boolean) }
4193
4129
  def task_data_dependent_on_previous_section_last_milestone?(task_data, section); end
4194
4130
 
4131
+ sig { returns(Checkoff::Internal::Memberships) }
4132
+ def memberships; end
4133
+
4195
4134
  sig { void }
4196
4135
  def self.run; end
4197
4136
 
4198
4137
  sig { returns(Checkoff::Workspaces) }
4199
4138
  attr_reader :workspaces
4200
4139
 
4201
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4202
4140
  sig { returns(Asana::Client) }
4203
4141
  attr_reader :client
4204
4142
  end
@@ -4214,7 +4152,6 @@ module Checkoff
4214
4152
  LONG_CACHE_TIME = T.let(T.let(MINUTE * 15, Numeric), T.untyped)
4215
4153
  SHORT_CACHE_TIME = T.let(T.let(MINUTE, Numeric), T.untyped)
4216
4154
 
4217
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4218
4155
  # _@param_ `config`
4219
4156
  #
4220
4157
  # _@param_ `workspaces`
@@ -4235,21 +4172,18 @@ module Checkoff
4235
4172
  end
4236
4173
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), clients: Checkoff::Clients.new(config:), client: clients.client, projects: Checkoff::Projects.new(config:, client:), workspaces: Checkoff::Workspaces.new(config:, client:)); end
4237
4174
 
4238
- # sord warn - Asana::Resources::Portfolio wasn't able to be resolved to a constant in this project
4239
4175
  # _@param_ `workspace_name`
4240
4176
  #
4241
4177
  # _@param_ `portfolio_name`
4242
4178
  sig { params(workspace_name: String, portfolio_name: String).returns(Asana::Resources::Portfolio) }
4243
4179
  def portfolio_or_raise(workspace_name, portfolio_name); end
4244
4180
 
4245
- # sord warn - Asana::Resources::Portfolio wasn't able to be resolved to a constant in this project
4246
4181
  # _@param_ `workspace_name`
4247
4182
  #
4248
4183
  # _@param_ `portfolio_name`
4249
4184
  sig { params(workspace_name: String, portfolio_name: String).returns(T.nilable(Asana::Resources::Portfolio)) }
4250
4185
  def portfolio(workspace_name, portfolio_name); end
4251
4186
 
4252
- # sord warn - Asana::Resources::Portfolio wasn't able to be resolved to a constant in this project
4253
4187
  # Pull a specific portfolio by gid
4254
4188
  #
4255
4189
  # _@param_ `portfolio_gid`
@@ -4258,7 +4192,6 @@ module Checkoff
4258
4192
  sig { params(portfolio_gid: String, extra_fields: T::Array[String]).returns(T.nilable(Asana::Resources::Portfolio)) }
4259
4193
  def portfolio_by_gid(portfolio_gid, extra_fields: []); end
4260
4194
 
4261
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4262
4195
  # _@param_ `workspace_name`
4263
4196
  #
4264
4197
  # _@param_ `portfolio_name`
@@ -4267,8 +4200,6 @@ module Checkoff
4267
4200
  sig { params(workspace_name: String, portfolio_name: String, extra_project_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Project]) }
4268
4201
  def projects_in_portfolio(workspace_name, portfolio_name, extra_project_fields: []); end
4269
4202
 
4270
- # sord warn - Asana::Resources::Portfolio wasn't able to be resolved to a constant in this project
4271
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4272
4203
  # _@param_ `portfolio`
4273
4204
  #
4274
4205
  # _@param_ `extra_project_fields`
@@ -4284,7 +4215,6 @@ module Checkoff
4284
4215
  sig { returns(Checkoff::Projects) }
4285
4216
  attr_reader :projects
4286
4217
 
4287
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4288
4218
  sig { returns(Asana::Client) }
4289
4219
  attr_reader :client
4290
4220
  end
@@ -4299,8 +4229,6 @@ module Checkoff
4299
4229
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4300
4230
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4301
4231
 
4302
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4303
- # sord warn - Asana::Resources::Workspace wasn't able to be resolved to a constant in this project
4304
4232
  # _@param_ `config`
4305
4233
  #
4306
4234
  # _@param_ `client`
@@ -4309,18 +4237,15 @@ module Checkoff
4309
4237
  sig { params(config: T.any(T::Hash[Symbol, Object], Checkoff::Internal::EnvFallbackConfigLoader), client: Asana::Client, asana_workspace: T.class_of(Asana::Resources::Workspace)).void }
4310
4238
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), client: Checkoff::Clients.new(config:).client, asana_workspace: Asana::Resources::Workspace); end
4311
4239
 
4312
- # sord warn - Asana::Resources::Workspace wasn't able to be resolved to a constant in this project
4313
4240
  # Pulls an Asana workspace object
4314
4241
  #
4315
4242
  # _@param_ `workspace_name`
4316
4243
  sig { params(workspace_name: T.any(String, Symbol)).returns(T.nilable(Asana::Resources::Workspace)) }
4317
4244
  def workspace(workspace_name); end
4318
4245
 
4319
- # sord warn - Asana::Resources::Workspace wasn't able to be resolved to a constant in this project
4320
4246
  sig { returns(Asana::Resources::Workspace) }
4321
4247
  def default_workspace; end
4322
4248
 
4323
- # sord warn - Asana::Resources::Workspace wasn't able to be resolved to a constant in this project
4324
4249
  # _@param_ `workspace_name`
4325
4250
  sig { params(workspace_name: T.any(String, Symbol)).returns(Asana::Resources::Workspace) }
4326
4251
  def workspace_or_raise(workspace_name); end
@@ -4328,7 +4253,6 @@ module Checkoff
4328
4253
  sig { returns(String) }
4329
4254
  def default_workspace_gid; end
4330
4255
 
4331
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4332
4256
  sig { returns(Asana::Client) }
4333
4257
  attr_reader :client
4334
4258
  end
@@ -4343,7 +4267,6 @@ module Checkoff
4343
4267
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4344
4268
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4345
4269
 
4346
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4347
4270
  # _@param_ `config`
4348
4271
  #
4349
4272
  # _@param_ `workspaces`
@@ -4361,8 +4284,6 @@ module Checkoff
4361
4284
  end
4362
4285
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), workspaces: Checkoff::Workspaces.new(config:), clients: Checkoff::Clients.new(config:), client: clients.client); end
4363
4286
 
4364
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4365
- # sord warn - Asana::Resources::Attachment wasn't able to be resolved to a constant in this project
4366
4287
  # _@param_ `url`
4367
4288
  #
4368
4289
  # _@param_ `resource`
@@ -4398,8 +4319,6 @@ module Checkoff
4398
4319
  sig { params(response: T.untyped).void }
4399
4320
  def write_tempfile_from_response(response); end
4400
4321
 
4401
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4402
- # sord warn - Asana::Resources::Attachment wasn't able to be resolved to a constant in this project
4403
4322
  # _@param_ `url`
4404
4323
  #
4405
4324
  # _@param_ `resource`
@@ -4417,8 +4336,6 @@ module Checkoff
4417
4336
  end
4418
4337
  def create_attachment_from_downloaded_url!(url, resource, attachment_name:, verify_mode: OpenSSL::SSL::VERIFY_PEER); end
4419
4338
 
4420
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4421
- # sord warn - Asana::Resources::Attachment wasn't able to be resolved to a constant in this project
4422
4339
  # _@param_ `url`
4423
4340
  #
4424
4341
  # _@param_ `resource`
@@ -4431,11 +4348,10 @@ module Checkoff
4431
4348
  sig { params(filename: String).returns(T.nilable(String)) }
4432
4349
  def content_type_from_filename(filename); end
4433
4350
 
4434
- # sord warn - Asana::HttpClient::Response wasn't able to be resolved to a constant in this project
4435
4351
  # https://github.com/Asana/ruby-asana/blob/master/lib/asana/resource_includes/response_helper.rb#L7
4436
4352
  #
4437
4353
  # _@param_ `response`
4438
- sig { params(response: Asana::HttpClient::Response).returns(T::Array[T::Hash[T.untyped, T.untyped]]) }
4354
+ sig { params(response: Asana::HttpClient::Response).returns([T::Hash[T.untyped, T.untyped], T::Hash[T.untyped, T.untyped]]) }
4439
4355
  def parse(response); end
4440
4356
 
4441
4357
  sig { void }
@@ -4470,7 +4386,6 @@ module Checkoff
4470
4386
  sig { returns(Checkoff::Workspaces) }
4471
4387
  attr_reader :workspaces
4472
4388
 
4473
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4474
4389
  sig { returns(Asana::Client) }
4475
4390
  attr_reader :client
4476
4391
  end
@@ -4485,7 +4400,6 @@ module Checkoff
4485
4400
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4486
4401
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4487
4402
 
4488
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4489
4403
  # _@param_ `config`
4490
4404
  #
4491
4405
  # _@param_ `workspaces`
@@ -4504,54 +4418,42 @@ module Checkoff
4504
4418
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), clients: Checkoff::Clients.new(config:), client: clients.client, workspaces: Checkoff::Workspaces.new(config:,
4505
4419
  client:)); end
4506
4420
 
4507
- # sord warn - Asana::Resources::CustomField wasn't able to be resolved to a constant in this project
4508
4421
  # _@param_ `workspace_name`
4509
4422
  #
4510
4423
  # _@param_ `custom_field_name`
4511
4424
  sig { params(workspace_name: String, custom_field_name: String).returns(Asana::Resources::CustomField) }
4512
4425
  def custom_field_or_raise(workspace_name, custom_field_name); end
4513
4426
 
4514
- # sord warn - Asana::Resources::CustomField wasn't able to be resolved to a constant in this project
4515
4427
  # _@param_ `workspace_name`
4516
4428
  #
4517
4429
  # _@param_ `custom_field_name`
4518
4430
  sig { params(workspace_name: String, custom_field_name: String).returns(T.nilable(Asana::Resources::CustomField)) }
4519
4431
  def custom_field(workspace_name, custom_field_name); end
4520
4432
 
4521
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4522
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4523
4433
  # _@param_ `resource`
4524
4434
  #
4525
4435
  # _@param_ `custom_field_gid`
4526
4436
  sig { params(resource: T.any(Asana::Resources::Project, Asana::Resources::Task), custom_field_gid: String).returns(T::Array[String]) }
4527
4437
  def resource_custom_field_values_gids_or_raise(resource, custom_field_gid); end
4528
4438
 
4529
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4530
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4531
4439
  # _@param_ `resource`
4532
4440
  #
4533
4441
  # _@param_ `custom_field_name`
4534
4442
  sig { params(resource: T.any(Asana::Resources::Project, Asana::Resources::Task), custom_field_name: String).returns(T::Array[String]) }
4535
4443
  def resource_custom_field_values_names_by_name(resource, custom_field_name); end
4536
4444
 
4537
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4538
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4539
4445
  # _@param_ `resource`
4540
4446
  #
4541
4447
  # _@param_ `custom_field_name`
4542
4448
  sig { params(resource: T.any(Asana::Resources::Task, Asana::Resources::Project), custom_field_name: String).returns(T.nilable(T::Hash[String, Object])) }
4543
4449
  def resource_custom_field_by_name(resource, custom_field_name); end
4544
4450
 
4545
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4546
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4547
4451
  # _@param_ `resource`
4548
4452
  #
4549
4453
  # _@param_ `custom_field_name`
4550
4454
  sig { params(resource: T.any(Asana::Resources::Task, Asana::Resources::Project), custom_field_name: String).returns(T::Hash[String, Object]) }
4551
4455
  def resource_custom_field_by_name_or_raise(resource, custom_field_name); end
4552
4456
 
4553
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4554
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4555
4457
  # _@param_ `resource`
4556
4458
  #
4557
4459
  # _@param_ `custom_field_gid`
@@ -4582,7 +4484,6 @@ module Checkoff
4582
4484
  sig { returns(Checkoff::Workspaces) }
4583
4485
  attr_reader :workspaces
4584
4486
 
4585
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4586
4487
  sig { returns(Asana::Client) }
4587
4488
  attr_reader :client
4588
4489
  end
@@ -4599,8 +4500,6 @@ module Checkoff
4599
4500
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4600
4501
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4601
4502
 
4602
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4603
- # sord warn - Asana::Resources::Collection wasn't able to be resolved to a constant in this project
4604
4503
  # _@param_ `config`
4605
4504
  #
4606
4505
  # _@param_ `workspaces`
@@ -4630,7 +4529,6 @@ module Checkoff
4630
4529
  end
4631
4530
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), workspaces: Checkoff::Workspaces.new(config:), task_selectors: Checkoff::TaskSelectors.new(config:), projects: Checkoff::Projects.new(config:), clients: Checkoff::Clients.new(config:), client: clients.client, search_url_parser: Checkoff::Internal::SearchUrl::Parser.new, asana_resources_collection_class: Asana::Resources::Collection); end
4632
4531
 
4633
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4634
4532
  # Perform an equivalent search API to an Asana search URL in the
4635
4533
  # web UI. Not all URL parameters are supported; each one must be
4636
4534
  # added here manually. In addition, not all are supported in the
@@ -4646,7 +4544,6 @@ module Checkoff
4646
4544
  sig { params(workspace_name: String, url: String, extra_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Task]) }
4647
4545
  def task_search(workspace_name, url, extra_fields: []); end
4648
4546
 
4649
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4650
4547
  # Perform a search using the Asana Task Search API:
4651
4548
  #
4652
4549
  # https://developers.asana.com/reference/searchtasksforworkspace
@@ -4674,7 +4571,6 @@ module Checkoff
4674
4571
  sig { returns(T::Hash[T.untyped, T.untyped]) }
4675
4572
  def as_cache_key; end
4676
4573
 
4677
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4678
4574
  # Perform a search using the Asana Task Search API:
4679
4575
  #
4680
4576
  # https://developers.asana.com/reference/searchtasksforworkspace
@@ -4687,7 +4583,6 @@ module Checkoff
4687
4583
  sig { params(api_params: T::Hash[String, Object], workspace_gid: String, extra_fields: T::Array[String]).returns(T::Enumerable[Asana::Resources::Task]) }
4688
4584
  def api_task_search_request(api_params, workspace_gid:, extra_fields:); end
4689
4585
 
4690
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4691
4586
  # Perform a search using the Asana Task Search API and use manual pagination to
4692
4587
  # ensure all results are returned:
4693
4588
  #
@@ -4751,7 +4646,6 @@ module Checkoff
4751
4646
  sig { returns(Checkoff::Workspaces) }
4752
4647
  attr_reader :workspaces
4753
4648
 
4754
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4755
4649
  sig { returns(Asana::Client) }
4756
4650
  attr_reader :client
4757
4651
  end
@@ -4765,7 +4659,6 @@ module Checkoff
4765
4659
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4766
4660
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4767
4661
 
4768
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4769
4662
  # _@param_ `config`
4770
4663
  #
4771
4664
  # _@param_ `client`
@@ -4789,7 +4682,6 @@ module Checkoff
4789
4682
  client:), custom_fields: Checkoff::CustomFields.new(config:,
4790
4683
  client:)); end
4791
4684
 
4792
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4793
4685
  # _@param_ `task`
4794
4686
  #
4795
4687
  # _@param_ `task_selector` — Filter based on task details. Examples: [:tag, 'foo'] [:not, [:tag, 'foo']] [:tag, 'foo']
@@ -4831,7 +4723,6 @@ module Checkoff
4831
4723
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4832
4724
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4833
4725
 
4834
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4835
4726
  # _@param_ `config`
4836
4727
  #
4837
4728
  # _@param_ `workspaces`
@@ -4858,7 +4749,6 @@ module Checkoff
4858
4749
  end
4859
4750
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), workspaces: Checkoff::Workspaces.new(config:), projects: Checkoff::Projects.new(config:), custom_fields: Checkoff::CustomFields.new(config:), portfolios: Checkoff::Portfolios.new(config:), clients: Checkoff::Clients.new(config:), client: clients.client); end
4860
4751
 
4861
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
4862
4752
  # _@param_ `project`
4863
4753
  #
4864
4754
  # _@param_ `project_selector` — Filter based on project details. Examples: [:tag, 'foo'] [:not, [:tag, 'foo']] [:tag, 'foo']
@@ -4880,7 +4770,6 @@ module Checkoff
4880
4770
  sig { returns(Checkoff::Portfolios) }
4881
4771
  attr_reader :portfolios
4882
4772
 
4883
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4884
4773
  sig { returns(Asana::Client) }
4885
4774
  attr_reader :client
4886
4775
  end
@@ -4894,7 +4783,6 @@ module Checkoff
4894
4783
  LONG_CACHE_TIME = T.let(MINUTE * 15, T.untyped)
4895
4784
  SHORT_CACHE_TIME = T.let(MINUTE, T.untyped)
4896
4785
 
4897
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4898
4786
  # _@param_ `config`
4899
4787
  #
4900
4788
  # _@param_ `workspaces`
@@ -4918,7 +4806,6 @@ module Checkoff
4918
4806
  end
4919
4807
  def initialize(config: Checkoff::Internal::ConfigLoader.load(:asana), workspaces: Checkoff::Workspaces.new(config:), sections: Checkoff::Sections.new(config:), custom_fields: Checkoff::CustomFields.new(config:), clients: Checkoff::Clients.new(config:), client: clients.client); end
4920
4808
 
4921
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
4922
4809
  # _@param_ `section`
4923
4810
  #
4924
4811
  # _@param_ `section_selector` — Filter based on section details. Examples: [:tag, 'foo'] [:not, [:tag, 'foo']] [:tag, 'foo']
@@ -4937,22 +4824,28 @@ module Checkoff
4937
4824
  sig { returns(Checkoff::CustomFields) }
4938
4825
  attr_reader :custom_fields
4939
4826
 
4940
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4941
4827
  sig { returns(Asana::Client) }
4942
4828
  attr_reader :client
4943
4829
  end
4944
4830
 
4945
4831
  module Internal
4832
+ # Reads the project/section memberships of an Asana task
4833
+ class Memberships
4834
+ # Asana returns nil for memberships unless they were requested via
4835
+ # 'fields' / extra_fields; raise a clear error instead.
4836
+ #
4837
+ # _@param_ `task`
4838
+ sig { params(task: Asana::Resources::Task).returns(T::Array[T::Hash[String, T::Hash[String, String]]]) }
4839
+ def memberships_or_raise(task); end
4840
+ end
4841
+
4946
4842
  # Builds on the standard API representation of an Asana task with some
4947
4843
  # convenience keys.
4948
4844
  class TaskHashes
4949
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4950
4845
  # _@param_ `task`
4951
4846
  sig { params(task: Asana::Resources::Task).returns(T::Hash[T.untyped, T.untyped]) }
4952
4847
  def task_to_h(task); end
4953
4848
 
4954
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
4955
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
4956
4849
  # _@param_ `task_data`
4957
4850
  #
4958
4851
  # _@param_ `client`
@@ -4997,7 +4890,6 @@ module Checkoff
4997
4890
 
4998
4891
  # Utility methods for working with task dates and times
4999
4892
  class TaskTiming
5000
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
5001
4893
  # _@param_ `time_class`
5002
4894
  #
5003
4895
  # _@param_ `date_class`
@@ -5015,39 +4907,32 @@ module Checkoff
5015
4907
  end
5016
4908
  def initialize(time_class: Time, date_class: Date, client: Checkoff::Clients.new.client, custom_fields: Checkoff::CustomFields.new(client:)); end
5017
4909
 
5018
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5019
4910
  # _@param_ `task`
5020
4911
  sig { params(task: Asana::Resources::Task).returns(T.nilable(Time)) }
5021
4912
  def start_time(task); end
5022
4913
 
5023
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5024
4914
  # _@param_ `task`
5025
4915
  sig { params(task: Asana::Resources::Task).returns(T.nilable(Time)) }
5026
4916
  def due_time(task); end
5027
4917
 
5028
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5029
4918
  # _@param_ `task`
5030
4919
  sig { params(task: Asana::Resources::Task).returns(T.nilable(T.any(Date, Time))) }
5031
4920
  def start_date_or_time(task); end
5032
4921
 
5033
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5034
4922
  # _@param_ `task`
5035
4923
  sig { params(task: Asana::Resources::Task).returns(T.nilable(T.any(Date, Time))) }
5036
4924
  def due_date_or_time(task); end
5037
4925
 
5038
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5039
4926
  # _@param_ `task`
5040
4927
  sig { params(task: Asana::Resources::Task).returns(T.nilable(Time)) }
5041
4928
  def modified_time(task); end
5042
4929
 
5043
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5044
4930
  # _@param_ `task`
5045
4931
  #
5046
4932
  # _@param_ `custom_field_name`
5047
4933
  sig { params(task: Asana::Resources::Task, custom_field_name: String).returns(T.nilable(T.any(Time, Date))) }
5048
4934
  def custom_field(task, custom_field_name); end
5049
4935
 
5050
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5051
4936
  # _@param_ `task`
5052
4937
  #
5053
4938
  # _@param_ `field_name`
@@ -5110,7 +4995,6 @@ module Checkoff
5110
4995
  sig { params(_deps: T::Hash[T.untyped, T.untyped]).void }
5111
4996
  def initialize(_deps = {}); end
5112
4997
 
5113
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
5114
4998
  # sord warn - "\"unwrapped\"" does not appear to be a type
5115
4999
  # sord warn - "Hash{\"custom_fields\" => Hash{String =" does not appear to be a type
5116
5000
  # The two custom_fields entries below hold the same records: the top-level
@@ -5129,7 +5013,6 @@ module Checkoff
5129
5013
 
5130
5014
  # Utility methods for working with project dates and times
5131
5015
  class ProjectTiming
5132
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
5133
5016
  # _@param_ `time_class`
5134
5017
  #
5135
5018
  # _@param_ `date_class`
@@ -5147,24 +5030,20 @@ module Checkoff
5147
5030
  end
5148
5031
  def initialize(time_class: Time, date_class: Date, client: Checkoff::Clients.new.client, custom_fields: Checkoff::CustomFields.new(client:)); end
5149
5032
 
5150
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
5151
5033
  # _@param_ `project`
5152
5034
  sig { params(project: Asana::Resources::Project).returns(T.nilable(Date)) }
5153
5035
  def start_date(project); end
5154
5036
 
5155
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
5156
5037
  # _@param_ `project`
5157
5038
  sig { params(project: Asana::Resources::Project).returns(T.nilable(Date)) }
5158
5039
  def due_date(project); end
5159
5040
 
5160
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
5161
5041
  # _@param_ `project`
5162
5042
  #
5163
5043
  # _@param_ `custom_field_name`
5164
5044
  sig { params(project: Asana::Resources::Project, custom_field_name: String).returns(T.nilable(T.any(Time, Date))) }
5165
5045
  def custom_field(project, custom_field_name); end
5166
5046
 
5167
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
5168
5047
  # _@param_ `project`
5169
5048
  #
5170
5049
  # _@param_ `field_name`
@@ -5589,7 +5468,6 @@ module Checkoff
5589
5468
  class AsanaEventFilter
5590
5469
  include Logging
5591
5470
 
5592
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
5593
5471
  # _@param_ `filters` — The filters to match against
5594
5472
  #
5595
5473
  # _@param_ `clients`
@@ -5627,7 +5505,6 @@ module Checkoff
5627
5505
  sig { params(key: String, value: T.any(String, T::Array[String]), asana_event: T::Hash[T.untyped, T.untyped]).returns(T::Boolean) }
5628
5506
  def asana_event_matches_filter_item?(key, value, asana_event); end
5629
5507
 
5630
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5631
5508
  # _@param_ `key`
5632
5509
  #
5633
5510
  # _@param_ `asana_event`
@@ -5668,7 +5545,6 @@ module Checkoff
5668
5545
  class AsanaEventEnrichment
5669
5546
  include Logging
5670
5547
 
5671
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
5672
5548
  # _@param_ `config`
5673
5549
  #
5674
5550
  # _@param_ `workspaces`
@@ -5787,7 +5663,6 @@ module Checkoff
5787
5663
  sig { returns(Checkoff::Resources) }
5788
5664
  attr_reader :resources
5789
5665
 
5790
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
5791
5666
  sig { returns(Asana::Client) }
5792
5667
  attr_reader :client
5793
5668
  end
@@ -5832,7 +5707,6 @@ module Checkoff
5832
5707
  sig { params(_index: Integer).returns(T::Boolean) }
5833
5708
  def evaluate_arg?(_index); end
5834
5709
 
5835
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5836
5710
  # _@param_ `task`
5837
5711
  sig { params(task: Asana::Resources::Task).returns(T::Boolean) }
5838
5712
  def evaluate(task); end
@@ -5847,7 +5721,6 @@ module Checkoff
5847
5721
  sig { params(_index: Integer).returns(T::Boolean) }
5848
5722
  def evaluate_arg?(_index); end
5849
5723
 
5850
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5851
5724
  # _@param_ `task`
5852
5725
  #
5853
5726
  # _@param_ `section_name_prefix`
@@ -5864,7 +5737,6 @@ module Checkoff
5864
5737
  sig { params(_index: Integer).returns(T::Boolean) }
5865
5738
  def evaluate_arg?(_index); end
5866
5739
 
5867
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5868
5740
  # _@param_ `task`
5869
5741
  #
5870
5742
  # _@param_ `section_name`
@@ -5881,7 +5753,6 @@ module Checkoff
5881
5753
  sig { params(_index: Integer).returns(T::Boolean) }
5882
5754
  def evaluate_arg?(_index); end
5883
5755
 
5884
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5885
5756
  # _@param_ `task`
5886
5757
  #
5887
5758
  # _@param_ `project_name`
@@ -5898,7 +5769,6 @@ module Checkoff
5898
5769
  sig { params(_index: Integer).returns(T::Boolean) }
5899
5770
  def evaluate_arg?(_index); end
5900
5771
 
5901
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5902
5772
  # _@param_ `task`
5903
5773
  #
5904
5774
  # _@param_ `portfolio_name`
@@ -5915,7 +5785,6 @@ module Checkoff
5915
5785
  sig { params(_index: Integer).returns(T::Boolean) }
5916
5786
  def evaluate_arg?(_index); end
5917
5787
 
5918
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5919
5788
  # _@param_ `task`
5920
5789
  #
5921
5790
  # _@param_ `tag_name`
@@ -5934,7 +5803,6 @@ module Checkoff
5934
5803
  sig { params(_index: Integer).returns(T::Boolean) }
5935
5804
  def evaluate_arg?(_index); end
5936
5805
 
5937
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5938
5806
  # rubocop:disable-next Style/OptionalBooleanParameter
5939
5807
  #
5940
5808
  # _@param_ `task`
@@ -5955,7 +5823,6 @@ module Checkoff
5955
5823
  sig { params(_index: Integer).returns(T::Boolean) }
5956
5824
  def evaluate_arg?(_index); end
5957
5825
 
5958
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5959
5826
  # _@param_ `task`
5960
5827
  #
5961
5828
  # _@param_ `field_name` — See Checksoff::Tasks#in_period?
@@ -5970,7 +5837,6 @@ module Checkoff
5970
5837
  sig { returns(T::Boolean) }
5971
5838
  def matches?; end
5972
5839
 
5973
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5974
5840
  # _@param_ `task`
5975
5841
  sig { params(task: Asana::Resources::Task).returns(T::Boolean) }
5976
5842
  def evaluate(task); end
@@ -5983,7 +5849,6 @@ module Checkoff
5983
5849
  sig { returns(T::Boolean) }
5984
5850
  def matches?; end
5985
5851
 
5986
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
5987
5852
  # _@param_ `task`
5988
5853
  sig { params(task: Asana::Resources::Task).returns(T::Boolean) }
5989
5854
  def evaluate(task); end
@@ -5999,7 +5864,6 @@ module Checkoff
5999
5864
  sig { params(_index: Integer).returns(T::Boolean) }
6000
5865
  def evaluate_arg?(_index); end
6001
5866
 
6002
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6003
5867
  # _@param_ `task`
6004
5868
  #
6005
5869
  # _@param_ `num_days`
@@ -6007,6 +5871,10 @@ module Checkoff
6007
5871
  # _@param_ `excluding_resource_subtypes`
6008
5872
  sig { params(task: Asana::Resources::Task, num_days: Integer, excluding_resource_subtypes: T::Array[String]).returns(T::Boolean) }
6009
5873
  def evaluate(task, num_days, excluding_resource_subtypes); end
5874
+
5875
+ # _@param_ `story`
5876
+ sig { params(story: Asana::Resources::Story).returns(Time) }
5877
+ def created_time(story); end
6010
5878
  end
6011
5879
 
6012
5880
  # :estimate_exceeds_duration?
@@ -6016,12 +5884,10 @@ module Checkoff
6016
5884
  sig { returns(T::Boolean) }
6017
5885
  def matches?; end
6018
5886
 
6019
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6020
5887
  # _@param_ `task`
6021
5888
  sig { params(task: Asana::Resources::Task).returns(Float) }
6022
5889
  def calculate_allocated_hours(task); end
6023
5890
 
6024
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6025
5891
  # _@param_ `task`
6026
5892
  sig { params(task: Asana::Resources::Task).returns(T::Boolean) }
6027
5893
  def evaluate(task); end
@@ -6034,7 +5900,6 @@ module Checkoff
6034
5900
  sig { returns(T::Boolean) }
6035
5901
  def matches?; end
6036
5902
 
6037
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6038
5903
  # _@param_ `task`
6039
5904
  #
6040
5905
  # _@param_ `limit_to_portfolio_gid` — If specified, only projects in this portfolio will be evaluated.
@@ -6049,7 +5914,6 @@ module Checkoff
6049
5914
  sig { returns(T::Boolean) }
6050
5915
  def matches?; end
6051
5916
 
6052
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6053
5917
  # _@param_ `task`
6054
5918
  #
6055
5919
  # _@param_ `portfolio_name`
@@ -6067,7 +5931,6 @@ module Checkoff
6067
5931
  sig { params(_index: Integer).returns(T::Boolean) }
6068
5932
  def evaluate_arg?(_index); end
6069
5933
 
6070
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6071
5934
  # _@param_ `task`
6072
5935
  #
6073
5936
  # _@param_ `limit_to_portfolio_name`
@@ -6085,7 +5948,6 @@ module Checkoff
6085
5948
  sig { params(_index: Integer).returns(T::Boolean) }
6086
5949
  def evaluate_arg?(_index); end
6087
5950
 
6088
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6089
5951
  # _@param_ `task`
6090
5952
  sig { params(task: Asana::Resources::Task).returns(T::Boolean) }
6091
5953
  def evaluate(task); end
@@ -6101,7 +5963,6 @@ module Checkoff
6101
5963
  sig { params(_index: Integer).returns(T::Boolean) }
6102
5964
  def evaluate_arg?(_index); end
6103
5965
 
6104
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6105
5966
  # _@param_ `task`
6106
5967
  #
6107
5968
  # _@param_ `limit_to_portfolio_name`
@@ -6153,8 +6014,6 @@ module Checkoff
6153
6014
  sig { returns(T::Boolean) }
6154
6015
  def matches?; end
6155
6016
 
6156
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6157
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6158
6017
  # _@param_ `_resource`
6159
6018
  #
6160
6019
  # _@param_ `args`
@@ -6172,8 +6031,6 @@ module Checkoff
6172
6031
  sig { returns(T::Boolean) }
6173
6032
  def matches?; end
6174
6033
 
6175
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6176
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6177
6034
  # _@param_ `_resource`
6178
6035
  #
6179
6036
  # _@param_ `args`
@@ -6188,8 +6045,6 @@ module Checkoff
6188
6045
  sig { returns(T::Boolean) }
6189
6046
  def matches?; end
6190
6047
 
6191
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6192
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6193
6048
  # _@param_ `_resource`
6194
6049
  #
6195
6050
  # _@param_ `subvalue`
@@ -6202,8 +6057,6 @@ module Checkoff
6202
6057
  sig { returns(T::Boolean) }
6203
6058
  def matches?; end
6204
6059
 
6205
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6206
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6207
6060
  # _@param_ `_resource`
6208
6061
  #
6209
6062
  # _@param_ `subvalue`
@@ -6218,8 +6071,6 @@ module Checkoff
6218
6071
  sig { returns(T::Boolean) }
6219
6072
  def matches?; end
6220
6073
 
6221
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6222
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6223
6074
  # _@param_ `_resource`
6224
6075
  #
6225
6076
  # _@param_ `lhs`
@@ -6240,8 +6091,6 @@ module Checkoff
6240
6091
  sig { params(_index: Integer).returns(T::Boolean) }
6241
6092
  def evaluate_arg?(_index); end
6242
6093
 
6243
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6244
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6245
6094
  # _@param_ `resource`
6246
6095
  #
6247
6096
  # _@param_ `custom_field_name`
@@ -6257,8 +6106,6 @@ module Checkoff
6257
6106
  sig { params(_index: Integer).returns(T::Boolean) }
6258
6107
  def evaluate_arg?(_index); end
6259
6108
 
6260
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6261
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6262
6109
  # _@param_ `resource`
6263
6110
  #
6264
6111
  # _@param_ `custom_field_gid`
@@ -6276,8 +6123,6 @@ module Checkoff
6276
6123
  sig { params(_index: Integer).returns(T::Boolean) }
6277
6124
  def evaluate_arg?(_index); end
6278
6125
 
6279
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6280
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6281
6126
  # _@param_ `resource`
6282
6127
  #
6283
6128
  # _@param_ `custom_field_gid`
@@ -6297,8 +6142,6 @@ module Checkoff
6297
6142
  sig { params(_index: Integer).returns(T::Boolean) }
6298
6143
  def evaluate_arg?(_index); end
6299
6144
 
6300
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6301
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6302
6145
  # _@param_ `resource`
6303
6146
  #
6304
6147
  # _@param_ `custom_field_name`
@@ -6318,8 +6161,6 @@ module Checkoff
6318
6161
  sig { params(_index: Integer).returns(T::Boolean) }
6319
6162
  def evaluate_arg?(_index); end
6320
6163
 
6321
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6322
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6323
6164
  # _@param_ `resource`
6324
6165
  #
6325
6166
  # _@param_ `custom_field_gid`
@@ -6339,8 +6180,6 @@ module Checkoff
6339
6180
  sig { params(_index: Integer).returns(T::Boolean) }
6340
6181
  def evaluate_arg?(_index); end
6341
6182
 
6342
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6343
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6344
6183
  # sord warn - boolish is probably not a type, but using anyway
6345
6184
  # sord warn - boolish wasn't able to be resolved to a constant in this project
6346
6185
  # _@param_ `resource`
@@ -6355,8 +6194,6 @@ module Checkoff
6355
6194
  sig { returns(T::Boolean) }
6356
6195
  def matches?; end
6357
6196
 
6358
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6359
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6360
6197
  # _@param_ `_resource`
6361
6198
  sig { params(_resource: T.any(Asana::Resources::Task, Asana::Resources::Project)).returns(String) }
6362
6199
  def evaluate(_resource); end
@@ -6389,7 +6226,6 @@ module Checkoff
6389
6226
  sig { returns(T::Boolean) }
6390
6227
  def matches?; end
6391
6228
 
6392
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6393
6229
  # _@param_ `resource`
6394
6230
  sig { params(resource: Asana::Resources::Project).returns(T.nilable(String)) }
6395
6231
  def evaluate(resource); end
@@ -6402,7 +6238,6 @@ module Checkoff
6402
6238
  sig { returns(T::Boolean) }
6403
6239
  def matches?; end
6404
6240
 
6405
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6406
6241
  # _@param_ `project`
6407
6242
  #
6408
6243
  # _@param_ `period` — - :now_or_before or :this_week
@@ -6417,7 +6252,6 @@ module Checkoff
6417
6252
  sig { returns(T::Boolean) }
6418
6253
  def matches?; end
6419
6254
 
6420
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6421
6255
  # _@param_ `project`
6422
6256
  #
6423
6257
  # _@param_ `portfolio_name`
@@ -6481,7 +6315,6 @@ module Checkoff
6481
6315
  sig { returns(T::Boolean) }
6482
6316
  def matches?; end
6483
6317
 
6484
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
6485
6318
  # _@param_ `section`
6486
6319
  sig { params(section: Asana::Resources::Section).returns(T::Boolean) }
6487
6320
  def evaluate(section); end
@@ -6494,7 +6327,6 @@ module Checkoff
6494
6327
  sig { returns(T::Boolean) }
6495
6328
  def matches?; end
6496
6329
 
6497
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
6498
6330
  # _@param_ `section`
6499
6331
  sig { params(section: Asana::Resources::Section).returns(T::Boolean) }
6500
6332
  def evaluate(section); end
@@ -6502,7 +6334,6 @@ module Checkoff
6502
6334
 
6503
6335
  # Base class to evaluate a project selector function given fully evaluated arguments
6504
6336
  class FunctionEvaluator < Checkoff::SelectorClasses::FunctionEvaluator
6505
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
6506
6337
  # _@param_ `selector`
6507
6338
  #
6508
6339
  # _@param_ `client`
@@ -6523,7 +6354,6 @@ module Checkoff
6523
6354
  sig { returns(Checkoff::Sections) }
6524
6355
  attr_reader :sections
6525
6356
 
6526
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
6527
6357
  sig { returns(Asana::Client) }
6528
6358
  attr_reader :client
6529
6359
 
@@ -6557,7 +6387,6 @@ module Checkoff
6557
6387
  sig { returns(T::Boolean) }
6558
6388
  def matches?; end
6559
6389
 
6560
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6561
6390
  # _@param_ `_task`
6562
6391
  #
6563
6392
  # _@param_ `_args`
@@ -6608,7 +6437,6 @@ end - [Checkoff::SelectorClasses::Common::FunctionEvaluator]).freeze, T.untyped)
6608
6437
  end - [Checkoff::SelectorClasses::Task::FunctionEvaluator]).freeze, T.untyped)
6609
6438
  FUNCTION_EVALUTORS = T.let((COMMON_FUNCTION_EVALUATORS + TASK_FUNCTION_EVALUATORS).freeze, T.untyped)
6610
6439
 
6611
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6612
6440
  # _@param_ `task`
6613
6441
  #
6614
6442
  # _@param_ `tasks`
@@ -6632,7 +6460,6 @@ end - [Checkoff::SelectorClasses::Task::FunctionEvaluator]).freeze, T.untyped)
6632
6460
  sig { returns(T::Hash[T.untyped, T.untyped]) }
6633
6461
  def initializer_kwargs; end
6634
6462
 
6635
- # sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
6636
6463
  sig { returns(Asana::Resources::Task) }
6637
6464
  attr_reader :item
6638
6465
 
@@ -6656,7 +6483,6 @@ end - [Checkoff::SelectorClasses::Common::FunctionEvaluator]).freeze, T.untyped)
6656
6483
  end - [Checkoff::SelectorClasses::Project::FunctionEvaluator]).freeze, T.untyped)
6657
6484
  FUNCTION_EVALUTORS = T.let((COMMON_FUNCTION_EVALUATORS + PROJECT_FUNCTION_EVALUATORS).freeze, T.untyped)
6658
6485
 
6659
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6660
6486
  # _@param_ `project`
6661
6487
  #
6662
6488
  # _@param_ `projects`
@@ -6683,7 +6509,6 @@ end - [Checkoff::SelectorClasses::Project::FunctionEvaluator]).freeze, T.untyped
6683
6509
  sig { returns(T::Hash[T.untyped, T.untyped]) }
6684
6510
  def initializer_kwargs; end
6685
6511
 
6686
- # sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
6687
6512
  sig { returns(Asana::Resources::Project) }
6688
6513
  attr_reader :item
6689
6514
 
@@ -6710,8 +6535,6 @@ end - [Checkoff::SelectorClasses::Common::FunctionEvaluator]).freeze, T.untyped)
6710
6535
  end - [Checkoff::SelectorClasses::Section::FunctionEvaluator]).freeze, T.untyped)
6711
6536
  FUNCTION_EVALUATORS = T.let((COMMON_FUNCTION_EVALUATORS + SECTION_FUNCTION_EVALUATORS).freeze, T.untyped)
6712
6537
 
6713
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
6714
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
6715
6538
  # _@param_ `section`
6716
6539
  #
6717
6540
  # _@param_ `client`
@@ -6741,7 +6564,6 @@ end - [Checkoff::SelectorClasses::Section::FunctionEvaluator]).freeze, T.untyped
6741
6564
  sig { returns(T::Hash[T.untyped, T.untyped]) }
6742
6565
  def initializer_kwargs; end
6743
6566
 
6744
- # sord warn - Asana::Resources::Section wasn't able to be resolved to a constant in this project
6745
6567
  sig { returns(Asana::Resources::Section) }
6746
6568
  attr_reader :item
6747
6569
 
@@ -6754,7 +6576,6 @@ end - [Checkoff::SelectorClasses::Section::FunctionEvaluator]).freeze, T.untyped
6754
6576
  sig { returns(Checkoff::CustomFields) }
6755
6577
  attr_reader :custom_fields
6756
6578
 
6757
- # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
6758
6579
  sig { returns(Asana::Client) }
6759
6580
  attr_reader :client
6760
6581
  end