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