test_sdk 0.0.4

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.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/lib/core/file_utilities.rb +26 -0
  3. data/lib/environment.rb +7 -0
  4. data/lib/gemconfig.rb +14 -0
  5. data/lib/requests.rb +166 -0
  6. data/lib/test_sdk/benchmark/client.rb +1031 -0
  7. data/lib/test_sdk/company/client.rb +474 -0
  8. data/lib/test_sdk/deal/client.rb +584 -0
  9. data/lib/test_sdk/file/client.rb +692 -0
  10. data/lib/test_sdk/financials/client.rb +97 -0
  11. data/lib/test_sdk/group/client.rb +737 -0
  12. data/lib/test_sdk/macro/client.rb +422 -0
  13. data/lib/test_sdk/metadata/client.rb +95 -0
  14. data/lib/test_sdk/product/client.rb +419 -0
  15. data/lib/test_sdk/talent/client.rb +266 -0
  16. data/lib/test_sdk/types/account_manager_response.rb +74 -0
  17. data/lib/test_sdk/types/all_data_metadata_response.rb +68 -0
  18. data/lib/test_sdk/types/area.rb +74 -0
  19. data/lib/test_sdk/types/authenticate_api_key_response.rb +55 -0
  20. data/lib/test_sdk/types/available_categories_response.rb +5 -0
  21. data/lib/test_sdk/types/available_models_response.rb +69 -0
  22. data/lib/test_sdk/types/band_response.rb +83 -0
  23. data/lib/test_sdk/types/benchmark_quantile.rb +465 -0
  24. data/lib/test_sdk/types/categories_metadata_response.rb +72 -0
  25. data/lib/test_sdk/types/category_growth_rates.rb +143 -0
  26. data/lib/test_sdk/types/category_metadata.rb +79 -0
  27. data/lib/test_sdk/types/category_metadata_default_user_type.rb +8 -0
  28. data/lib/test_sdk/types/cohorts_response.rb +132 -0
  29. data/lib/test_sdk/types/column_metadata.rb +110 -0
  30. data/lib/test_sdk/types/column_mini_metadata.rb +83 -0
  31. data/lib/test_sdk/types/columns_metadata_response.rb +72 -0
  32. data/lib/test_sdk/types/company_response.rb +120 -0
  33. data/lib/test_sdk/types/concentration_endpoint_cdf_detail.rb +96 -0
  34. data/lib/test_sdk/types/concentration_endpoint_top_users_detail.rb +72 -0
  35. data/lib/test_sdk/types/concentration_response.rb +103 -0
  36. data/lib/test_sdk/types/concentration_timeseries_detail.rb +159 -0
  37. data/lib/test_sdk/types/contribution_response.rb +135 -0
  38. data/lib/test_sdk/types/create_api_key_response.rb +55 -0
  39. data/lib/test_sdk/types/create_file_for_signed_url_response.rb +127 -0
  40. data/lib/test_sdk/types/create_file_response.rb +113 -0
  41. data/lib/test_sdk/types/deal_combined_metrics_response.rb +477 -0
  42. data/lib/test_sdk/types/deal_data_availablity_response.rb +109 -0
  43. data/lib/test_sdk/types/deal_with_files_response.rb +194 -0
  44. data/lib/test_sdk/types/endpoint_seniority_count.rb +66 -0
  45. data/lib/test_sdk/types/executive_profile.rb +91 -0
  46. data/lib/test_sdk/types/executive_profile_position.rb +97 -0
  47. data/lib/test_sdk/types/file_response.rb +113 -0
  48. data/lib/test_sdk/types/file_type.rb +14 -0
  49. data/lib/test_sdk/types/financial_metrics.rb +113 -0
  50. data/lib/test_sdk/types/financials_response.rb +102 -0
  51. data/lib/test_sdk/types/frequency.rb +9 -0
  52. data/lib/test_sdk/types/function_level_growth_accounting.rb +111 -0
  53. data/lib/test_sdk/types/gcs_signed_url_response.rb +81 -0
  54. data/lib/test_sdk/types/group_response.rb +158 -0
  55. data/lib/test_sdk/types/group_user.rb +124 -0
  56. data/lib/test_sdk/types/group_with_users_response.rb +170 -0
  57. data/lib/test_sdk/types/growth_accounting_response.rb +226 -0
  58. data/lib/test_sdk/types/healthz_response.rb +55 -0
  59. data/lib/test_sdk/types/http_validation_error.rb +61 -0
  60. data/lib/test_sdk/types/income_statement_entry.rb +81 -0
  61. data/lib/test_sdk/types/model_metadata.rb +76 -0
  62. data/lib/test_sdk/types/models_metadata_response.rb +76 -0
  63. data/lib/test_sdk/types/paginated_response_company_response.rb +83 -0
  64. data/lib/test_sdk/types/paginated_response_deal_with_files_response.rb +84 -0
  65. data/lib/test_sdk/types/paginated_response_file_response.rb +83 -0
  66. data/lib/test_sdk/types/paginated_response_group_user.rb +83 -0
  67. data/lib/test_sdk/types/permission_model.rb +65 -0
  68. data/lib/test_sdk/types/priority.rb +10 -0
  69. data/lib/test_sdk/types/product_info_response.rb +65 -0
  70. data/lib/test_sdk/types/role_response.rb +95 -0
  71. data/lib/test_sdk/types/scale.rb +72 -0
  72. data/lib/test_sdk/types/scale_model.rb +80 -0
  73. data/lib/test_sdk/types/scale_models_response.rb +5 -0
  74. data/lib/test_sdk/types/scaling.rb +10 -0
  75. data/lib/test_sdk/types/status.rb +12 -0
  76. data/lib/test_sdk/types/tradeoff_model.rb +95 -0
  77. data/lib/test_sdk/types/tradeoff_models_response.rb +5 -0
  78. data/lib/test_sdk/types/unit.rb +12 -0
  79. data/lib/test_sdk/types/unit_economics_info_response.rb +55 -0
  80. data/lib/test_sdk/types/user_accounting_response.rb +168 -0
  81. data/lib/test_sdk/types/user_role_response.rb +77 -0
  82. data/lib/test_sdk/types/user_type.rb +12 -0
  83. data/lib/test_sdk/types/user_with_groups_response.rb +140 -0
  84. data/lib/test_sdk/types/user_with_permissions_response.rb +153 -0
  85. data/lib/test_sdk/types/validation_error.rb +76 -0
  86. data/lib/test_sdk/types/validation_error_loc_item.rb +52 -0
  87. data/lib/test_sdk/types/weather_components.rb +123 -0
  88. data/lib/test_sdk/types/weather_gauge.rb +76 -0
  89. data/lib/test_sdk/types/weather_market_context.rb +109 -0
  90. data/lib/test_sdk/types/weather_metadata.rb +113 -0
  91. data/lib/test_sdk/unit_economics/client.rb +124 -0
  92. data/lib/test_sdk/user/client.rb +363 -0
  93. data/lib/test_sdk.rb +190 -0
  94. data/lib/types_export.rb +77 -0
  95. metadata +251 -0
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module NewDemoApiClient
7
+ class AccountManagerResponse
8
+ # @return [String] The name of the user
9
+ attr_reader :name
10
+ # @return [String] The email address of the user
11
+ attr_reader :email
12
+ # @return [String] The thumbnail URL of the user
13
+ attr_reader :thumbnail
14
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
15
+ attr_reader :additional_properties
16
+ # @return [Object]
17
+ attr_reader :_field_set
18
+ protected :_field_set
19
+
20
+ OMIT = Object.new
21
+
22
+ # @param name [String] The name of the user
23
+ # @param email [String] The email address of the user
24
+ # @param thumbnail [String] The thumbnail URL of the user
25
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
+ # @return [NewDemoApiClient::AccountManagerResponse]
27
+ def initialize(name:, email:, thumbnail: OMIT, additional_properties: nil)
28
+ @name = name
29
+ @email = email
30
+ @thumbnail = thumbnail if thumbnail != OMIT
31
+ @additional_properties = additional_properties
32
+ @_field_set = { "name": name, "email": email, "thumbnail": thumbnail }.reject do |_k, v|
33
+ v == OMIT
34
+ end
35
+ end
36
+
37
+ # Deserialize a JSON object to an instance of AccountManagerResponse
38
+ #
39
+ # @param json_object [String]
40
+ # @return [NewDemoApiClient::AccountManagerResponse]
41
+ def self.from_json(json_object:)
42
+ struct = JSON.parse(json_object, object_class: OpenStruct)
43
+ parsed_json = JSON.parse(json_object)
44
+ name = parsed_json["name"]
45
+ email = parsed_json["email"]
46
+ thumbnail = parsed_json["thumbnail"]
47
+ new(
48
+ name: name,
49
+ email: email,
50
+ thumbnail: thumbnail,
51
+ additional_properties: struct
52
+ )
53
+ end
54
+
55
+ # Serialize an instance of AccountManagerResponse to a JSON object
56
+ #
57
+ # @return [String]
58
+ def to_json(*_args)
59
+ @_field_set&.to_json
60
+ end
61
+
62
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
63
+ # hash and check each fields type against the current object's property
64
+ # definitions.
65
+ #
66
+ # @param obj [Object]
67
+ # @return [Void]
68
+ def self.validate_raw(obj:)
69
+ obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
70
+ obj.email.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
71
+ obj.thumbnail&.is_a?(String) != false || raise("Passed value for field obj.thumbnail is not the expected type, validation failed.")
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module NewDemoApiClient
7
+ class AllDataMetadataResponse
8
+ # @return [Integer]
9
+ attr_reader :data_point_count
10
+ # @return [Integer]
11
+ attr_reader :data_point_count_last30days
12
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
13
+ attr_reader :additional_properties
14
+ # @return [Object]
15
+ attr_reader :_field_set
16
+ protected :_field_set
17
+
18
+ OMIT = Object.new
19
+
20
+ # @param data_point_count [Integer]
21
+ # @param data_point_count_last30days [Integer]
22
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
+ # @return [NewDemoApiClient::AllDataMetadataResponse]
24
+ def initialize(data_point_count:, data_point_count_last30days:, additional_properties: nil)
25
+ @data_point_count = data_point_count
26
+ @data_point_count_last30days = data_point_count_last30days
27
+ @additional_properties = additional_properties
28
+ @_field_set = {
29
+ "data_point_count": data_point_count,
30
+ "data_point_count_last_30_days": data_point_count_last30days
31
+ }
32
+ end
33
+
34
+ # Deserialize a JSON object to an instance of AllDataMetadataResponse
35
+ #
36
+ # @param json_object [String]
37
+ # @return [NewDemoApiClient::AllDataMetadataResponse]
38
+ def self.from_json(json_object:)
39
+ struct = JSON.parse(json_object, object_class: OpenStruct)
40
+ parsed_json = JSON.parse(json_object)
41
+ data_point_count = parsed_json["data_point_count"]
42
+ data_point_count_last30days = parsed_json["data_point_count_last_30_days"]
43
+ new(
44
+ data_point_count: data_point_count,
45
+ data_point_count_last30days: data_point_count_last30days,
46
+ additional_properties: struct
47
+ )
48
+ end
49
+
50
+ # Serialize an instance of AllDataMetadataResponse to a JSON object
51
+ #
52
+ # @return [String]
53
+ def to_json(*_args)
54
+ @_field_set&.to_json
55
+ end
56
+
57
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
58
+ # hash and check each fields type against the current object's property
59
+ # definitions.
60
+ #
61
+ # @param obj [Object]
62
+ # @return [Void]
63
+ def self.validate_raw(obj:)
64
+ obj.data_point_count.is_a?(Integer) != false || raise("Passed value for field obj.data_point_count is not the expected type, validation failed.")
65
+ obj.data_point_count_last30days.is_a?(Integer) != false || raise("Passed value for field obj.data_point_count_last30days is not the expected type, validation failed.")
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module NewDemoApiClient
7
+ class Area
8
+ # @return [Float] Quantile significance level for the area, which represents the share of data
9
+ # points expected to lie beyond the band.
10
+ attr_reader :alpha
11
+ # @return [Array<Float>] List of x values for the area.
12
+ attr_reader :x
13
+ # @return [Array<Float>] List of y values for the area.
14
+ attr_reader :y
15
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
16
+ attr_reader :additional_properties
17
+ # @return [Object]
18
+ attr_reader :_field_set
19
+ protected :_field_set
20
+
21
+ OMIT = Object.new
22
+
23
+ # @param alpha [Float] Quantile significance level for the area, which represents the share of data
24
+ # points expected to lie beyond the band.
25
+ # @param x [Array<Float>] List of x values for the area.
26
+ # @param y [Array<Float>] List of y values for the area.
27
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
28
+ # @return [NewDemoApiClient::Area]
29
+ def initialize(alpha:, x:, y:, additional_properties: nil)
30
+ @alpha = alpha
31
+ @x = x
32
+ @y = y
33
+ @additional_properties = additional_properties
34
+ @_field_set = { "alpha": alpha, "x": x, "y": y }
35
+ end
36
+
37
+ # Deserialize a JSON object to an instance of Area
38
+ #
39
+ # @param json_object [String]
40
+ # @return [NewDemoApiClient::Area]
41
+ def self.from_json(json_object:)
42
+ struct = JSON.parse(json_object, object_class: OpenStruct)
43
+ parsed_json = JSON.parse(json_object)
44
+ alpha = parsed_json["alpha"]
45
+ x = parsed_json["x"]
46
+ y = parsed_json["y"]
47
+ new(
48
+ alpha: alpha,
49
+ x: x,
50
+ y: y,
51
+ additional_properties: struct
52
+ )
53
+ end
54
+
55
+ # Serialize an instance of Area to a JSON object
56
+ #
57
+ # @return [String]
58
+ def to_json(*_args)
59
+ @_field_set&.to_json
60
+ end
61
+
62
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
63
+ # hash and check each fields type against the current object's property
64
+ # definitions.
65
+ #
66
+ # @param obj [Object]
67
+ # @return [Void]
68
+ def self.validate_raw(obj:)
69
+ obj.alpha.is_a?(Float) != false || raise("Passed value for field obj.alpha is not the expected type, validation failed.")
70
+ obj.x.is_a?(Array) != false || raise("Passed value for field obj.x is not the expected type, validation failed.")
71
+ obj.y.is_a?(Array) != false || raise("Passed value for field obj.y is not the expected type, validation failed.")
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module NewDemoApiClient
7
+ class AuthenticateAPIKeyResponse
8
+ # @return [String]
9
+ attr_reader :access_token
10
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
11
+ attr_reader :additional_properties
12
+ # @return [Object]
13
+ attr_reader :_field_set
14
+ protected :_field_set
15
+
16
+ OMIT = Object.new
17
+
18
+ # @param access_token [String]
19
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
20
+ # @return [NewDemoApiClient::AuthenticateAPIKeyResponse]
21
+ def initialize(access_token:, additional_properties: nil)
22
+ @access_token = access_token
23
+ @additional_properties = additional_properties
24
+ @_field_set = { "access_token": access_token }
25
+ end
26
+
27
+ # Deserialize a JSON object to an instance of AuthenticateAPIKeyResponse
28
+ #
29
+ # @param json_object [String]
30
+ # @return [NewDemoApiClient::AuthenticateAPIKeyResponse]
31
+ def self.from_json(json_object:)
32
+ struct = JSON.parse(json_object, object_class: OpenStruct)
33
+ parsed_json = JSON.parse(json_object)
34
+ access_token = parsed_json["access_token"]
35
+ new(access_token: access_token, additional_properties: struct)
36
+ end
37
+
38
+ # Serialize an instance of AuthenticateAPIKeyResponse to a JSON object
39
+ #
40
+ # @return [String]
41
+ def to_json(*_args)
42
+ @_field_set&.to_json
43
+ end
44
+
45
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
46
+ # hash and check each fields type against the current object's property
47
+ # definitions.
48
+ #
49
+ # @param obj [Object]
50
+ # @return [Void]
51
+ def self.validate_raw(obj:)
52
+ obj.access_token.is_a?(String) != false || raise("Passed value for field obj.access_token is not the expected type, validation failed.")
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NewDemoApiClient
4
+ AVAILABLE_CATEGORIES_RESPONSE = Array
5
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module NewDemoApiClient
7
+ class AvailableModelsResponse
8
+ # @return [Array<String>] Available scaling models that measure how one metric evolves against a geometric
9
+ # scaling parameter like revenue or number of years or effort.
10
+ attr_reader :scaling
11
+ # @return [Array<String>] Available tradeoff models that measure the tradeoff between two metrics at a
12
+ # given revenue scale.
13
+ attr_reader :tradeoff_at_scale
14
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
15
+ attr_reader :additional_properties
16
+ # @return [Object]
17
+ attr_reader :_field_set
18
+ protected :_field_set
19
+
20
+ OMIT = Object.new
21
+
22
+ # @param scaling [Array<String>] Available scaling models that measure how one metric evolves against a geometric
23
+ # scaling parameter like revenue or number of years or effort.
24
+ # @param tradeoff_at_scale [Array<String>] Available tradeoff models that measure the tradeoff between two metrics at a
25
+ # given revenue scale.
26
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
27
+ # @return [NewDemoApiClient::AvailableModelsResponse]
28
+ def initialize(scaling:, tradeoff_at_scale:, additional_properties: nil)
29
+ @scaling = scaling
30
+ @tradeoff_at_scale = tradeoff_at_scale
31
+ @additional_properties = additional_properties
32
+ @_field_set = { "scaling": scaling, "tradeoff_at_scale": tradeoff_at_scale }
33
+ end
34
+
35
+ # Deserialize a JSON object to an instance of AvailableModelsResponse
36
+ #
37
+ # @param json_object [String]
38
+ # @return [NewDemoApiClient::AvailableModelsResponse]
39
+ def self.from_json(json_object:)
40
+ struct = JSON.parse(json_object, object_class: OpenStruct)
41
+ parsed_json = JSON.parse(json_object)
42
+ scaling = parsed_json["scaling"]
43
+ tradeoff_at_scale = parsed_json["tradeoff_at_scale"]
44
+ new(
45
+ scaling: scaling,
46
+ tradeoff_at_scale: tradeoff_at_scale,
47
+ additional_properties: struct
48
+ )
49
+ end
50
+
51
+ # Serialize an instance of AvailableModelsResponse to a JSON object
52
+ #
53
+ # @return [String]
54
+ def to_json(*_args)
55
+ @_field_set&.to_json
56
+ end
57
+
58
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
+ # hash and check each fields type against the current object's property
60
+ # definitions.
61
+ #
62
+ # @param obj [Object]
63
+ # @return [Void]
64
+ def self.validate_raw(obj:)
65
+ obj.scaling.is_a?(Array) != false || raise("Passed value for field obj.scaling is not the expected type, validation failed.")
66
+ obj.tradeoff_at_scale.is_a?(Array) != false || raise("Passed value for field obj.tradeoff_at_scale is not the expected type, validation failed.")
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,83 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module NewDemoApiClient
7
+ class BandResponse
8
+ # @return [Float] Quantile significance level for the band, which represents the share of data
9
+ # points expected to lie beyond the band.
10
+ attr_reader :alpha
11
+ # @return [Array<Float>]
12
+ attr_reader :x
13
+ # @return [Array<Float>]
14
+ attr_reader :low
15
+ # @return [Array<Float>]
16
+ attr_reader :high
17
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
18
+ attr_reader :additional_properties
19
+ # @return [Object]
20
+ attr_reader :_field_set
21
+ protected :_field_set
22
+
23
+ OMIT = Object.new
24
+
25
+ # @param alpha [Float] Quantile significance level for the band, which represents the share of data
26
+ # points expected to lie beyond the band.
27
+ # @param x [Array<Float>]
28
+ # @param low [Array<Float>]
29
+ # @param high [Array<Float>]
30
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
31
+ # @return [NewDemoApiClient::BandResponse]
32
+ def initialize(alpha:, x: OMIT, low: OMIT, high: OMIT, additional_properties: nil)
33
+ @alpha = alpha
34
+ @x = x if x != OMIT
35
+ @low = low if low != OMIT
36
+ @high = high if high != OMIT
37
+ @additional_properties = additional_properties
38
+ @_field_set = { "alpha": alpha, "x": x, "low": low, "high": high }.reject do |_k, v|
39
+ v == OMIT
40
+ end
41
+ end
42
+
43
+ # Deserialize a JSON object to an instance of BandResponse
44
+ #
45
+ # @param json_object [String]
46
+ # @return [NewDemoApiClient::BandResponse]
47
+ def self.from_json(json_object:)
48
+ struct = JSON.parse(json_object, object_class: OpenStruct)
49
+ parsed_json = JSON.parse(json_object)
50
+ alpha = parsed_json["alpha"]
51
+ x = parsed_json["x"]
52
+ low = parsed_json["low"]
53
+ high = parsed_json["high"]
54
+ new(
55
+ alpha: alpha,
56
+ x: x,
57
+ low: low,
58
+ high: high,
59
+ additional_properties: struct
60
+ )
61
+ end
62
+
63
+ # Serialize an instance of BandResponse to a JSON object
64
+ #
65
+ # @return [String]
66
+ def to_json(*_args)
67
+ @_field_set&.to_json
68
+ end
69
+
70
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
71
+ # hash and check each fields type against the current object's property
72
+ # definitions.
73
+ #
74
+ # @param obj [Object]
75
+ # @return [Void]
76
+ def self.validate_raw(obj:)
77
+ obj.alpha.is_a?(Float) != false || raise("Passed value for field obj.alpha is not the expected type, validation failed.")
78
+ obj.x&.is_a?(Array) != false || raise("Passed value for field obj.x is not the expected type, validation failed.")
79
+ obj.low&.is_a?(Array) != false || raise("Passed value for field obj.low is not the expected type, validation failed.")
80
+ obj.high&.is_a?(Array) != false || raise("Passed value for field obj.high is not the expected type, validation failed.")
81
+ end
82
+ end
83
+ end