stackone_client 0.2.45 → 0.2.46

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b651c91bad281ccd73b75409e185ccad966c5173d60d4d963295d804d290400b
4
- data.tar.gz: 03fcdebd60c6c467860778a2c701bfd8be2ea50bb64f2333ffa0e1885b988856
3
+ metadata.gz: d612b739d838f94bd66d400f8b5e4d0b283362df9ce2961d4c27f534a877e03a
4
+ data.tar.gz: 2f34edfc9f4743c2b632357c31009dc533ea97d203ddd220fc2a46b3f134dbcd
5
5
  SHA512:
6
- metadata.gz: 3be265678aa75398c2317c6ce979096edbc82009a7731186179d3f0bd2d40f05a8598b5bb457b259bf98d2c19e6ea698344c82c0afb61ee1dee0bd7c3547810f
7
- data.tar.gz: 56a87a2adaf173c1cc39691f3de10fc59c02380f1e24c637c15b0f270667515ccc716e273766ba18826df5758f5b1fa3218657085dd5cf096bb69b643fceb37f
6
+ metadata.gz: c04f3355e7245bf2de3a34f77c60d07ead29463790a577e1ecedc3da32eba64a557ffde37ddb76e82c280d5262bc2eb0a7826c7b8f0a7990714a37a58abbe7a0
7
+ data.tar.gz: 349ded6728e06fb719c0ddb1bf0ced267f6bdfd77aa829725ec8c1431ee47ff90df424819e02c49d880494b824147dd61bc6d4d3c43173411dce10c29adbcba9
@@ -13,13 +13,16 @@ module StackOne
13
13
 
14
14
  # Filter to select assignment by completed status
15
15
  field :completed, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'completed' } }
16
+ # Filter to select assignment by learning object type.
17
+ field :learning_object_type, T.nilable(::String), { 'query_param': { 'field_name': 'learning_object_type' } }
16
18
  # Use a string with a date to only select results updated after that given date
17
19
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
18
20
 
19
21
 
20
- sig { params(completed: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
21
- def initialize(completed: nil, updated_after: nil)
22
+ sig { params(completed: T.nilable(T::Boolean), learning_object_type: T.nilable(::String), updated_after: T.nilable(::String)).void }
23
+ def initialize(completed: nil, learning_object_type: nil, updated_after: nil)
22
24
  @completed = completed
25
+ @learning_object_type = learning_object_type
23
26
  @updated_after = updated_after
24
27
  end
25
28
  end
@@ -29,14 +29,18 @@ module StackOne
29
29
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
30
30
  # Indicates that the raw request result is returned
31
31
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
32
+ # Provider's unique identifier of the user related to the assignment
33
+ field :remote_user_id, T.nilable(::String), { 'query_param': { 'field_name': 'remote_user_id', 'style': 'form', 'explode': true } }
32
34
  # Use a string with a date to only select results updated after that given date
33
35
  #
34
36
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
35
37
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
38
+ # The user ID associated with this assignment
39
+ field :user_id, T.nilable(::String), { 'query_param': { 'field_name': 'user_id', 'style': 'form', 'explode': true } }
36
40
 
37
41
 
38
- sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListAssignmentsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
39
- def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
42
+ sig { params(x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListAssignmentsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), remote_user_id: T.nilable(::String), updated_after: T.nilable(::String), user_id: T.nilable(::String)).void }
43
+ def initialize(x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, remote_user_id: nil, updated_after: nil, user_id: nil)
40
44
  @x_account_id = x_account_id
41
45
  @fields_ = fields_
42
46
  @filter = filter
@@ -45,7 +49,9 @@ module StackOne
45
49
  @page_size = page_size
46
50
  @proxy = proxy
47
51
  @raw = raw
52
+ @remote_user_id = remote_user_id
48
53
  @updated_after = updated_after
54
+ @user_id = user_id
49
55
  end
50
56
  end
51
57
  end
@@ -7,16 +7,19 @@
7
7
  module StackOne
8
8
  module Operations
9
9
 
10
- # Filter parameters that allow greater customisation of the list response
10
+ # LMS Completions Filter
11
11
  class LmsListCompletionsQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # Filter to select completions by learning object type.
15
+ field :learning_object_type, T.nilable(::String), { 'query_param': { 'field_name': 'learning_object_type' } }
14
16
  # Use a string with a date to only select results updated after that given date
15
17
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
16
18
 
17
19
 
18
- sig { params(updated_after: T.nilable(::String)).void }
19
- def initialize(updated_after: nil)
20
+ sig { params(learning_object_type: T.nilable(::String), updated_after: T.nilable(::String)).void }
21
+ def initialize(learning_object_type: nil, updated_after: nil)
22
+ @learning_object_type = learning_object_type
20
23
  @updated_after = updated_after
21
24
  end
22
25
  end
@@ -15,7 +15,7 @@ module StackOne
15
15
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
16
16
  # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
17
17
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
18
- # Filter parameters that allow greater customisation of the list response
18
+ # LMS Completions Filter
19
19
  field :filter, T.nilable(::StackOne::Operations::LmsListCompletionsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } }
20
20
  # The unified cursor
21
21
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
@@ -13,13 +13,16 @@ module StackOne
13
13
 
14
14
  # Filter to select assignment by completed status
15
15
  field :completed, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'completed' } }
16
+ # Filter to select assignment by learning object type.
17
+ field :learning_object_type, T.nilable(::String), { 'query_param': { 'field_name': 'learning_object_type' } }
16
18
  # Use a string with a date to only select results updated after that given date
17
19
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
18
20
 
19
21
 
20
- sig { params(completed: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
21
- def initialize(completed: nil, updated_after: nil)
22
+ sig { params(completed: T.nilable(T::Boolean), learning_object_type: T.nilable(::String), updated_after: T.nilable(::String)).void }
23
+ def initialize(completed: nil, learning_object_type: nil, updated_after: nil)
22
24
  @completed = completed
25
+ @learning_object_type = learning_object_type
23
26
  @updated_after = updated_after
24
27
  end
25
28
  end
@@ -31,14 +31,18 @@ module StackOne
31
31
  field :proxy, T.nilable(T::Hash[Symbol, ::Object]), { 'query_param': { 'field_name': 'proxy', 'style': 'form', 'explode': true } }
32
32
  # Indicates that the raw request result is returned
33
33
  field :raw, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'raw', 'style': 'form', 'explode': true } }
34
+ # Provider's unique identifier of the user related to the assignment
35
+ field :remote_user_id, T.nilable(::String), { 'query_param': { 'field_name': 'remote_user_id', 'style': 'form', 'explode': true } }
34
36
  # Use a string with a date to only select results updated after that given date
35
37
  #
36
38
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
37
39
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } }
40
+ # The user ID associated with this assignment
41
+ field :user_id, T.nilable(::String), { 'query_param': { 'field_name': 'user_id', 'style': 'form', 'explode': true } }
38
42
 
39
43
 
40
- sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListUserAssignmentsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::String)).void }
41
- def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil)
44
+ sig { params(id: ::String, x_account_id: ::String, fields_: T.nilable(::String), filter: T.nilable(::StackOne::Operations::LmsListUserAssignmentsQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), remote_user_id: T.nilable(::String), updated_after: T.nilable(::String), user_id: T.nilable(::String)).void }
45
+ def initialize(id: nil, x_account_id: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, remote_user_id: nil, updated_after: nil, user_id: nil)
42
46
  @id = id
43
47
  @x_account_id = x_account_id
44
48
  @fields_ = fields_
@@ -48,7 +52,9 @@ module StackOne
48
52
  @page_size = page_size
49
53
  @proxy = proxy
50
54
  @raw = raw
55
+ @remote_user_id = remote_user_id
51
56
  @updated_after = updated_after
57
+ @user_id = user_id
52
58
  end
53
59
  end
54
60
  end
@@ -7,16 +7,19 @@
7
7
  module StackOne
8
8
  module Operations
9
9
 
10
- # Filter parameters that allow greater customisation of the list response
10
+ # LMS Completions Filter
11
11
  class LmsListUserCompletionsQueryParamFilter < ::StackOne::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # Filter to select completions by learning object type.
15
+ field :learning_object_type, T.nilable(::String), { 'query_param': { 'field_name': 'learning_object_type' } }
14
16
  # Use a string with a date to only select results updated after that given date
15
17
  field :updated_after, T.nilable(::String), { 'query_param': { 'field_name': 'updated_after' } }
16
18
 
17
19
 
18
- sig { params(updated_after: T.nilable(::String)).void }
19
- def initialize(updated_after: nil)
20
+ sig { params(learning_object_type: T.nilable(::String), updated_after: T.nilable(::String)).void }
21
+ def initialize(learning_object_type: nil, updated_after: nil)
22
+ @learning_object_type = learning_object_type
20
23
  @updated_after = updated_after
21
24
  end
22
25
  end
@@ -17,7 +17,7 @@ module StackOne
17
17
  field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
18
18
  # The comma separated list of fields that will be returned in the response (if empty, all fields are returned)
19
19
  field :fields_, T.nilable(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } }
20
- # Filter parameters that allow greater customisation of the list response
20
+ # LMS Completions Filter
21
21
  field :filter, T.nilable(::StackOne::Operations::LmsListUserCompletionsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', 'explode': true } }
22
22
  # The unified cursor
23
23
  field :next_, T.nilable(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } }
@@ -25,16 +25,19 @@ module StackOne
25
25
  field :provider, T.nilable(::String), { 'query_param': { 'field_name': 'provider', 'style': 'form', 'explode': true } }
26
26
  # The providers list of the results to fetch
27
27
  field :providers, T.nilable(T::Array[::String]), { 'query_param': { 'field_name': 'providers', 'style': 'form', 'explode': true } }
28
+ # The status of the results to fetch
29
+ field :status, T.nilable(T::Array[::String]), { 'query_param': { 'field_name': 'status', 'style': 'form', 'explode': true } }
28
30
 
29
31
 
30
- sig { params(account_ids: T.nilable(T::Array[::String]), origin_owner_id: T.nilable(::String), page: T.nilable(::Float), page_size: T.nilable(::Float), provider: T.nilable(::String), providers: T.nilable(T::Array[::String])).void }
31
- def initialize(account_ids: nil, origin_owner_id: nil, page: nil, page_size: nil, provider: nil, providers: nil)
32
+ sig { params(account_ids: T.nilable(T::Array[::String]), origin_owner_id: T.nilable(::String), page: T.nilable(::Float), page_size: T.nilable(::Float), provider: T.nilable(::String), providers: T.nilable(T::Array[::String]), status: T.nilable(T::Array[::String])).void }
33
+ def initialize(account_ids: nil, origin_owner_id: nil, page: nil, page_size: nil, provider: nil, providers: nil, status: nil)
32
34
  @account_ids = account_ids
33
35
  @origin_owner_id = origin_owner_id
34
36
  @page = page
35
37
  @page_size = page_size
36
38
  @provider = provider
37
39
  @providers = providers
40
+ @status = status
38
41
  end
39
42
  end
40
43
  end
@@ -12,7 +12,7 @@ module StackOne
12
12
  enums do
13
13
  CONTENT = new('content')
14
14
  COURSE = new('course')
15
- LEARNING_PATH = new('learning_path')
15
+ COLLECTION = new('collection')
16
16
  end
17
17
  end
18
18
  end
@@ -19,14 +19,17 @@ module StackOne
19
19
  field :passthrough, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('passthrough') } }
20
20
 
21
21
  field :tags, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tags') } }
22
+ # Stackone enum identifying the type of content block.
23
+ field :type, T.nilable(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
22
24
 
23
25
 
24
- sig { params(content: T.nilable(::String), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), tags: T.nilable(T::Array[::String])).void }
25
- def initialize(content: nil, name: nil, passthrough: nil, tags: nil)
26
+ sig { params(content: T.nilable(::String), name: T.nilable(::String), passthrough: T.nilable(T::Hash[Symbol, ::Object]), tags: T.nilable(T::Array[::String]), type: T.nilable(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoType)).void }
27
+ def initialize(content: nil, name: nil, passthrough: nil, tags: nil, type: nil)
26
28
  @content = content
27
29
  @name = name
28
30
  @passthrough = passthrough
29
31
  @tags = tags
32
+ @type = type
30
33
  end
31
34
  end
32
35
  end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # Stackone enum identifying the type of content block.
11
+ class MarketingCreateContentBlocksRequestDtoType < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The source value of the type.
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The type of the content blocks.
17
+ field :value, T.nilable(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::MarketingCreateContentBlocksRequestDtoValue)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,20 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # MarketingCreateContentBlocksRequestDtoValue - The type of the content blocks.
11
+ class MarketingCreateContentBlocksRequestDtoValue < T::Enum
12
+ enums do
13
+ TEXT = new('text')
14
+ HTML = new('html')
15
+ IMAGE = new('image')
16
+ CODE_SNIPPET = new('code-snippet')
17
+ end
18
+ end
19
+ end
20
+ end
@@ -503,6 +503,8 @@ module StackOne
503
503
  autoload :ContentPaginated, 'stack_one/models/shared/contentpaginated.rb'
504
504
  autoload :CoursePaginated, 'stack_one/models/shared/coursepaginated.rb'
505
505
  autoload :SkillsPaginated, 'stack_one/models/shared/skillspaginated.rb'
506
+ autoload :MarketingCreateContentBlocksRequestDtoValue, 'stack_one/models/shared/marketingcreatecontentblocksrequestdto_value.rb'
507
+ autoload :MarketingCreateContentBlocksRequestDtoType, 'stack_one/models/shared/marketingcreatecontentblocksrequestdto_type.rb'
506
508
  autoload :MarketingCreateContentBlocksRequestDto, 'stack_one/models/shared/marketingcreatecontentblocksrequestdto.rb'
507
509
  autoload :MarketingCreateEmailTemplateRequestDto, 'stack_one/models/shared/marketingcreateemailtemplaterequestdto.rb'
508
510
  autoload :MessageContent, 'stack_one/models/shared/message_content.rb'
@@ -38,9 +38,9 @@ module StackOne
38
38
  @security = security
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '1.0.0'
41
- @sdk_version = '0.2.45'
42
- @gen_version = '2.438.15'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.45 2.438.15 1.0.0 stackone_client'
41
+ @sdk_version = '0.2.46'
42
+ @gen_version = '2.442.11'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.46 2.442.11 1.0.0 stackone_client'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackone_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.45
4
+ version: 0.2.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - StackOne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-28 00:00:00.000000000 Z
11
+ date: 2024-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -993,6 +993,8 @@ files:
993
993
  - lib/stack_one/models/shared/location_type.rb
994
994
  - lib/stack_one/models/shared/marital_status.rb
995
995
  - lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto.rb
996
+ - lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto_type.rb
997
+ - lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto_value.rb
996
998
  - lib/stack_one/models/shared/marketingcreateemailtemplaterequestdto.rb
997
999
  - lib/stack_one/models/shared/marketingcreateinapptemplaterequestdto.rb
998
1000
  - lib/stack_one/models/shared/marketingcreatepushtemplaterequestdto.rb