sentdm 0.17.0 → 0.18.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/sentdm/models/contact_delete_params.rb +2 -17
  5. data/lib/sentdm/models/profile_complete_response.rb +68 -2
  6. data/lib/sentdm/models/profile_delete_params.rb +2 -17
  7. data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -18
  8. data/lib/sentdm/models/user_remove_params.rb +2 -17
  9. data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -12
  10. data/lib/sentdm/resources/contacts.rb +6 -5
  11. data/lib/sentdm/resources/profiles/campaigns.rb +5 -4
  12. data/lib/sentdm/resources/profiles.rb +8 -7
  13. data/lib/sentdm/resources/users.rb +6 -5
  14. data/lib/sentdm/resources/webhooks.rb +6 -8
  15. data/lib/sentdm/version.rb +1 -1
  16. data/rbi/sentdm/models/contact_delete_params.rbi +2 -33
  17. data/rbi/sentdm/models/profile_complete_response.rbi +121 -2
  18. data/rbi/sentdm/models/profile_delete_params.rbi +2 -33
  19. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -35
  20. data/rbi/sentdm/models/user_remove_params.rbi +2 -33
  21. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -28
  22. data/rbi/sentdm/resources/contacts.rbi +4 -3
  23. data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -3
  24. data/rbi/sentdm/resources/profiles.rbi +5 -4
  25. data/rbi/sentdm/resources/users.rbi +4 -3
  26. data/rbi/sentdm/resources/webhooks.rbi +4 -3
  27. data/sig/sentdm/models/contact_delete_params.rbs +6 -20
  28. data/sig/sentdm/models/profile_complete_response.rbs +51 -1
  29. data/sig/sentdm/models/profile_delete_params.rbs +6 -20
  30. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +9 -22
  31. data/sig/sentdm/models/user_remove_params.rbs +6 -20
  32. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -23
  33. data/sig/sentdm/resources/contacts.rbs +1 -1
  34. data/sig/sentdm/resources/profiles/campaigns.rbs +1 -1
  35. data/sig/sentdm/resources/profiles.rbs +2 -2
  36. data/sig/sentdm/resources/users.rbs +1 -1
  37. data/sig/sentdm/resources/webhooks.rbs +1 -1
  38. metadata +1 -1
@@ -1,46 +1,32 @@
1
1
  module Sentdm
2
2
  module Models
3
3
  type profile_delete_params =
4
- {
5
- profile_id: String,
6
- body: Sentdm::ProfileDeleteParams::Body,
7
- x_profile_id: String
8
- }
4
+ { profile_id: String, x_profile_id: String }
9
5
  & Sentdm::Internal::Type::request_parameters
10
6
 
11
- class ProfileDeleteParams < Sentdm::Internal::Type::BaseModel
7
+ class ProfileDeleteParams < Sentdm::Models::MutationRequest
12
8
  extend Sentdm::Internal::Type::RequestParameters::Converter
13
9
  include Sentdm::Internal::Type::RequestParameters
14
10
 
15
- attr_accessor profile_id: String
11
+ def profile_id: -> String
16
12
 
17
- attr_accessor body: Sentdm::ProfileDeleteParams::Body
13
+ def profile_id=: (String _) -> String
18
14
 
19
- attr_reader x_profile_id: String?
15
+ def x_profile_id: -> String?
20
16
 
21
- def x_profile_id=: (String) -> String
17
+ def x_profile_id=: (String _) -> String
22
18
 
23
19
  def initialize: (
24
20
  profile_id: String,
25
- body: Sentdm::ProfileDeleteParams::Body,
26
21
  ?x_profile_id: String,
27
22
  ?request_options: Sentdm::request_opts
28
23
  ) -> void
29
24
 
30
25
  def to_hash: -> {
31
26
  profile_id: String,
32
- body: Sentdm::ProfileDeleteParams::Body,
33
27
  x_profile_id: String,
34
28
  request_options: Sentdm::RequestOptions
35
29
  }
36
-
37
- type body = { }
38
-
39
- class Body < Sentdm::Models::MutationRequest
40
- def initialize: -> void
41
-
42
- def to_hash: -> { }
43
- end
44
30
  end
45
31
  end
46
32
  end
@@ -2,32 +2,28 @@ module Sentdm
2
2
  module Models
3
3
  module Profiles
4
4
  type campaign_delete_params =
5
- {
6
- profile_id: String,
7
- campaign_id: String,
8
- body: Sentdm::Profiles::CampaignDeleteParams::Body,
9
- x_profile_id: String
10
- }
5
+ { profile_id: String, campaign_id: String, x_profile_id: String }
11
6
  & Sentdm::Internal::Type::request_parameters
12
7
 
13
- class CampaignDeleteParams < Sentdm::Internal::Type::BaseModel
8
+ class CampaignDeleteParams < Sentdm::Models::MutationRequest
14
9
  extend Sentdm::Internal::Type::RequestParameters::Converter
15
10
  include Sentdm::Internal::Type::RequestParameters
16
11
 
17
- attr_accessor profile_id: String
12
+ def profile_id: -> String
13
+
14
+ def profile_id=: (String _) -> String
18
15
 
19
- attr_accessor campaign_id: String
16
+ def campaign_id: -> String
20
17
 
21
- attr_accessor body: Sentdm::Profiles::CampaignDeleteParams::Body
18
+ def campaign_id=: (String _) -> String
22
19
 
23
- attr_reader x_profile_id: String?
20
+ def x_profile_id: -> String?
24
21
 
25
- def x_profile_id=: (String) -> String
22
+ def x_profile_id=: (String _) -> String
26
23
 
27
24
  def initialize: (
28
25
  profile_id: String,
29
26
  campaign_id: String,
30
- body: Sentdm::Profiles::CampaignDeleteParams::Body,
31
27
  ?x_profile_id: String,
32
28
  ?request_options: Sentdm::request_opts
33
29
  ) -> void
@@ -35,18 +31,9 @@ module Sentdm
35
31
  def to_hash: -> {
36
32
  profile_id: String,
37
33
  campaign_id: String,
38
- body: Sentdm::Profiles::CampaignDeleteParams::Body,
39
34
  x_profile_id: String,
40
35
  request_options: Sentdm::RequestOptions
41
36
  }
42
-
43
- type body = { }
44
-
45
- class Body < Sentdm::Models::MutationRequest
46
- def initialize: -> void
47
-
48
- def to_hash: -> { }
49
- end
50
37
  end
51
38
  end
52
39
  end
@@ -1,46 +1,32 @@
1
1
  module Sentdm
2
2
  module Models
3
3
  type user_remove_params =
4
- {
5
- user_id: String,
6
- body: Sentdm::UserRemoveParams::Body,
7
- x_profile_id: String
8
- }
4
+ { user_id: String, x_profile_id: String }
9
5
  & Sentdm::Internal::Type::request_parameters
10
6
 
11
- class UserRemoveParams < Sentdm::Internal::Type::BaseModel
7
+ class UserRemoveParams < Sentdm::Models::MutationRequest
12
8
  extend Sentdm::Internal::Type::RequestParameters::Converter
13
9
  include Sentdm::Internal::Type::RequestParameters
14
10
 
15
- attr_accessor user_id: String
11
+ def user_id: -> String
16
12
 
17
- attr_accessor body: Sentdm::UserRemoveParams::Body
13
+ def user_id=: (String _) -> String
18
14
 
19
- attr_reader x_profile_id: String?
15
+ def x_profile_id: -> String?
20
16
 
21
- def x_profile_id=: (String) -> String
17
+ def x_profile_id=: (String _) -> String
22
18
 
23
19
  def initialize: (
24
20
  user_id: String,
25
- body: Sentdm::UserRemoveParams::Body,
26
21
  ?x_profile_id: String,
27
22
  ?request_options: Sentdm::request_opts
28
23
  ) -> void
29
24
 
30
25
  def to_hash: -> {
31
26
  user_id: String,
32
- body: Sentdm::UserRemoveParams::Body,
33
27
  x_profile_id: String,
34
28
  request_options: Sentdm::RequestOptions
35
29
  }
36
-
37
- type body = { }
38
-
39
- class Body < Sentdm::Models::MutationRequest
40
- def initialize: -> void
41
-
42
- def to_hash: -> { }
43
- end
44
30
  end
45
31
  end
46
32
  end
@@ -1,33 +1,27 @@
1
1
  module Sentdm
2
2
  module Models
3
3
  type webhook_rotate_secret_params =
4
- {
5
- id: String,
6
- body: Sentdm::WebhookRotateSecretParams::Body,
7
- idempotency_key: String,
8
- x_profile_id: String
9
- }
4
+ { id: String, idempotency_key: String, x_profile_id: String }
10
5
  & Sentdm::Internal::Type::request_parameters
11
6
 
12
- class WebhookRotateSecretParams < Sentdm::Internal::Type::BaseModel
7
+ class WebhookRotateSecretParams < Sentdm::Models::MutationRequest
13
8
  extend Sentdm::Internal::Type::RequestParameters::Converter
14
9
  include Sentdm::Internal::Type::RequestParameters
15
10
 
16
- attr_accessor id: String
11
+ def id: -> String
17
12
 
18
- attr_accessor body: Sentdm::WebhookRotateSecretParams::Body
13
+ def id=: (String _) -> String
19
14
 
20
- attr_reader idempotency_key: String?
15
+ def idempotency_key: -> String?
21
16
 
22
- def idempotency_key=: (String) -> String
17
+ def idempotency_key=: (String _) -> String
23
18
 
24
- attr_reader x_profile_id: String?
19
+ def x_profile_id: -> String?
25
20
 
26
- def x_profile_id=: (String) -> String
21
+ def x_profile_id=: (String _) -> String
27
22
 
28
23
  def initialize: (
29
24
  id: String,
30
- body: Sentdm::WebhookRotateSecretParams::Body,
31
25
  ?idempotency_key: String,
32
26
  ?x_profile_id: String,
33
27
  ?request_options: Sentdm::request_opts
@@ -35,19 +29,10 @@ module Sentdm
35
29
 
36
30
  def to_hash: -> {
37
31
  id: String,
38
- body: Sentdm::WebhookRotateSecretParams::Body,
39
32
  idempotency_key: String,
40
33
  x_profile_id: String,
41
34
  request_options: Sentdm::RequestOptions
42
35
  }
43
-
44
- type body = { }
45
-
46
- class Body < Sentdm::Models::MutationRequest
47
- def initialize: -> void
48
-
49
- def to_hash: -> { }
50
- end
51
36
  end
52
37
  end
53
38
  end
@@ -38,7 +38,7 @@ module Sentdm
38
38
 
39
39
  def delete: (
40
40
  String id,
41
- body: Sentdm::ContactDeleteParams::Body,
41
+ ?sandbox: bool,
42
42
  ?x_profile_id: String,
43
43
  ?request_options: Sentdm::request_opts
44
44
  ) -> nil
@@ -30,7 +30,7 @@ module Sentdm
30
30
  def delete: (
31
31
  String campaign_id,
32
32
  profile_id: String,
33
- body: Sentdm::Profiles::CampaignDeleteParams::Body,
33
+ ?sandbox: bool,
34
34
  ?x_profile_id: String,
35
35
  ?request_options: Sentdm::request_opts
36
36
  ) -> nil
@@ -65,7 +65,7 @@ module Sentdm
65
65
 
66
66
  def delete: (
67
67
  String profile_id,
68
- body: Sentdm::ProfileDeleteParams::Body,
68
+ ?sandbox: bool,
69
69
  ?x_profile_id: String,
70
70
  ?request_options: Sentdm::request_opts
71
71
  ) -> nil
@@ -77,7 +77,7 @@ module Sentdm
77
77
  ?idempotency_key: String,
78
78
  ?x_profile_id: String,
79
79
  ?request_options: Sentdm::request_opts
80
- ) -> top
80
+ ) -> Sentdm::Models::ProfileCompleteResponse
81
81
 
82
82
  def initialize: (client: Sentdm::Client) -> void
83
83
  end
@@ -24,7 +24,7 @@ module Sentdm
24
24
 
25
25
  def remove: (
26
26
  String user_id,
27
- body: Sentdm::UserRemoveParams::Body,
27
+ ?sandbox: bool,
28
28
  ?x_profile_id: String,
29
29
  ?request_options: Sentdm::request_opts
30
30
  ) -> nil
@@ -65,7 +65,7 @@ module Sentdm
65
65
 
66
66
  def rotate_secret: (
67
67
  String id,
68
- body: Sentdm::WebhookRotateSecretParams::Body,
68
+ ?sandbox: bool,
69
69
  ?idempotency_key: String,
70
70
  ?x_profile_id: String,
71
71
  ?request_options: Sentdm::request_opts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sent