sentdm 0.29.0 → 0.30.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/CHANGELOG.md +11 -0
- data/README.md +27 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/api_meta.rb +34 -0
- data/lib/sentdm/models/api_response_of_contact.rb +46 -0
- data/lib/sentdm/models/api_response_of_contact_message_summary.rb +43 -0
- data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +43 -0
- data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
- data/lib/sentdm/models/api_response_of_user.rb +43 -0
- data/lib/sentdm/models/api_response_template.rb +43 -0
- data/lib/sentdm/models/api_response_webhook.rb +43 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brand_business_info.rb +114 -0
- data/lib/sentdm/models/brand_compliance_info.rb +59 -0
- data/lib/sentdm/models/brand_contact_info.rb +58 -0
- data/lib/sentdm/models/brands_brand_data.rb +34 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_response.rb +12 -295
- data/lib/sentdm/models/contact_message_summary.rb +76 -0
- data/lib/sentdm/models/contact_response.rb +139 -0
- data/lib/sentdm/models/conversation_messages_list.rb +245 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -242
- data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -159
- data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
- data/lib/sentdm/models/message_send_response.rb +6 -74
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/number_lookup_response.rb +6 -74
- data/lib/sentdm/models/pagination_meta.rb +84 -0
- data/lib/sentdm/models/payment_details.rb +40 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -345
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +650 -0
- data/lib/sentdm/models/profile_list_response.rb +12 -815
- data/lib/sentdm/models/profile_settings.rb +85 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -345
- data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/brand_campaign.rb +247 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_data.rb +136 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
- data/lib/sentdm/models/profiles/campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/template.rb +102 -0
- data/lib/sentdm/models/template_list_response.rb +12 -258
- data/lib/sentdm/models/user_list_response.rb +12 -249
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +94 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +12 -203
- data/lib/sentdm/models/webhook_list_events_response.rb +9 -157
- data/lib/sentdm/models/webhook_list_response.rb +12 -276
- data/lib/sentdm/models/webhook_response.rb +120 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
- data/lib/sentdm/models/webhook_test_response.rb +6 -74
- data/lib/sentdm/models.rb +52 -0
- data/lib/sentdm/resources/contacts.rb +8 -8
- data/lib/sentdm/resources/conversations.rb +4 -4
- data/lib/sentdm/resources/profiles/campaigns.rb +8 -8
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +6 -6
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +8 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +32 -22
- data/rbi/sentdm/models/api_meta.rbi +55 -0
- data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
- data/rbi/sentdm/models/api_response_template.rbi +74 -0
- data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brand_business_info.rbi +162 -0
- data/rbi/sentdm/models/brand_compliance_info.rbi +76 -0
- data/rbi/sentdm/models/brand_contact_info.rbi +78 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +65 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_response.rbi +16 -522
- data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
- data/rbi/sentdm/models/contact_response.rbi +200 -0
- data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -367
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -325
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
- data/rbi/sentdm/models/message_send_response.rbi +8 -135
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/payment_details.rbi +56 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -546
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +918 -0
- data/rbi/sentdm/models/profile_list_response.rbi +16 -1347
- data/rbi/sentdm/models/profile_settings.rbi +102 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -546
- data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +81 -0
- data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +76 -0
- data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_data.rbi +158 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
- data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/template.rbi +139 -0
- data/rbi/sentdm/models/template_list_response.rbi +16 -464
- data/rbi/sentdm/models/user_list_response.rbi +16 -444
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +131 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +16 -414
- data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
- data/rbi/sentdm/models/webhook_list_response.rbi +16 -475
- data/rbi/sentdm/models/webhook_response.rbi +153 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
- data/rbi/sentdm/models.rbi +54 -0
- data/rbi/sentdm/resources/contacts.rbi +4 -4
- data/rbi/sentdm/resources/conversations.rbi +2 -2
- data/rbi/sentdm/resources/profiles/campaigns.rbi +5 -5
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +3 -3
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/api_meta.rbs +27 -0
- data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
- data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +39 -0
- data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
- data/sig/sentdm/models/api_response_of_user.rbs +39 -0
- data/sig/sentdm/models/api_response_template.rbs +39 -0
- data/sig/sentdm/models/api_response_webhook.rbs +39 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brand_business_info.rbs +89 -0
- data/sig/sentdm/models/brand_compliance_info.rbs +45 -0
- data/sig/sentdm/models/brand_contact_info.rbs +45 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +6 -10
- data/sig/sentdm/models/contact_list_response.rbs +20 -263
- data/sig/sentdm/models/contact_message_summary.rbs +84 -0
- data/sig/sentdm/models/contact_response.rbs +118 -0
- data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +14 -142
- data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
- data/sig/sentdm/models/message_send_response.rbs +9 -71
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/number_lookup_response.rbs +9 -71
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/profile_complete_response.rbs +9 -71
- data/sig/sentdm/models/profile_create_params.rbs +12 -263
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +461 -0
- data/sig/sentdm/models/profile_list_response.rbs +20 -606
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -263
- data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_data.rbs +87 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
- data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/template.rbs +84 -0
- data/sig/sentdm/models/template_list_response.rbs +19 -230
- data/sig/sentdm/models/user_list_response.rbs +20 -224
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +79 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +20 -196
- data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
- data/sig/sentdm/models/webhook_list_response.rbs +20 -255
- data/sig/sentdm/models/webhook_response.rbs +110 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
- data/sig/sentdm/models/webhook_test_response.rbs +9 -71
- data/sig/sentdm/models.rbs +52 -0
- data/sig/sentdm/resources/contacts.rbs +4 -4
- data/sig/sentdm/resources/conversations.rbs +2 -2
- data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +3 -3
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +98 -68
- data/lib/sentdm/models/contact_create_response.rb +0 -249
- data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +0 -186
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -249
- data/lib/sentdm/models/contact_update_response.rb +0 -249
- data/lib/sentdm/models/conversation_list_messages_response.rb +0 -436
- data/lib/sentdm/models/conversation_list_response.rb +0 -433
- data/lib/sentdm/models/profile_create_response.rb +0 -760
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -762
- data/lib/sentdm/models/profile_update_response.rb +0 -760
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -420
- data/lib/sentdm/models/profiles/campaign_list_response.rb +0 -421
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -420
- data/lib/sentdm/models/template_create_response.rb +0 -209
- data/lib/sentdm/models/template_retrieve_response.rb +0 -209
- data/lib/sentdm/models/template_update_response.rb +0 -209
- data/lib/sentdm/models/user_invite_response.rb +0 -201
- data/lib/sentdm/models/user_retrieve_response.rb +0 -201
- data/lib/sentdm/models/user_update_role_response.rb +0 -201
- data/lib/sentdm/models/webhook_create_response.rb +0 -229
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -229
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -229
- data/lib/sentdm/models/webhook_update_response.rb +0 -229
- data/rbi/sentdm/models/contact_create_response.rbi +0 -407
- data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +0 -397
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -409
- data/rbi/sentdm/models/contact_update_response.rbi +0 -407
- data/rbi/sentdm/models/conversation_list_messages_response.rbi +0 -843
- data/rbi/sentdm/models/conversation_list_response.rbi +0 -819
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1226
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1230
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1226
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -674
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +0 -667
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -674
- data/rbi/sentdm/models/template_create_response.rbi +0 -349
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -355
- data/rbi/sentdm/models/template_update_response.rbi +0 -349
- data/rbi/sentdm/models/user_invite_response.rbi +0 -336
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -336
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -341
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -361
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -363
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -379
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -361
- data/sig/sentdm/models/contact_create_response.rbs +0 -216
- data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +0 -182
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -216
- data/sig/sentdm/models/contact_update_response.rbs +0 -216
- data/sig/sentdm/models/conversation_list_messages_response.rbs +0 -404
- data/sig/sentdm/models/conversation_list_response.rbs +0 -404
- data/sig/sentdm/models/profile_create_response.rbs +0 -559
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -559
- data/sig/sentdm/models/profile_update_response.rbs +0 -559
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -357
- data/sig/sentdm/models/template_create_response.rbs +0 -182
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -182
- data/sig/sentdm/models/template_update_response.rbs +0 -182
- data/sig/sentdm/models/user_invite_response.rbs +0 -177
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/user_update_role_response.rbs +0 -177
- data/sig/sentdm/models/webhook_create_response.rbs +0 -208
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -208
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -208
- data/sig/sentdm/models/webhook_update_response.rbs +0 -208
|
@@ -4,7 +4,7 @@ module Sentdm
|
|
|
4
4
|
type campaign_create_params =
|
|
5
5
|
{
|
|
6
6
|
profile_id: String,
|
|
7
|
-
campaign: Sentdm::Profiles::
|
|
7
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
8
8
|
sandbox: bool,
|
|
9
9
|
idempotency_key: String,
|
|
10
10
|
x_profile_id: String
|
|
@@ -17,7 +17,7 @@ module Sentdm
|
|
|
17
17
|
|
|
18
18
|
attr_accessor profile_id: String
|
|
19
19
|
|
|
20
|
-
attr_accessor campaign: Sentdm::Profiles::
|
|
20
|
+
attr_accessor campaign: Sentdm::Profiles::CampaignData
|
|
21
21
|
|
|
22
22
|
attr_reader sandbox: bool?
|
|
23
23
|
|
|
@@ -33,7 +33,7 @@ module Sentdm
|
|
|
33
33
|
|
|
34
34
|
def initialize: (
|
|
35
35
|
profile_id: String,
|
|
36
|
-
campaign: Sentdm::Profiles::
|
|
36
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
37
37
|
?sandbox: bool,
|
|
38
38
|
?idempotency_key: String,
|
|
39
39
|
?x_profile_id: String,
|
|
@@ -42,116 +42,12 @@ module Sentdm
|
|
|
42
42
|
|
|
43
43
|
def to_hash: -> {
|
|
44
44
|
profile_id: String,
|
|
45
|
-
campaign: Sentdm::Profiles::
|
|
45
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
46
46
|
sandbox: bool,
|
|
47
47
|
idempotency_key: String,
|
|
48
48
|
x_profile_id: String,
|
|
49
49
|
request_options: Sentdm::RequestOptions
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
type campaign =
|
|
53
|
-
{
|
|
54
|
-
description: String,
|
|
55
|
-
name: String,
|
|
56
|
-
type: String,
|
|
57
|
-
use_cases: ::Array[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase],
|
|
58
|
-
help_keywords: String?,
|
|
59
|
-
help_message: String?,
|
|
60
|
-
message_flow: String?,
|
|
61
|
-
optin_keywords: String?,
|
|
62
|
-
optin_message: String?,
|
|
63
|
-
optout_keywords: String?,
|
|
64
|
-
optout_message: String?,
|
|
65
|
-
privacy_policy_link: String?,
|
|
66
|
-
terms_and_conditions_link: String?,
|
|
67
|
-
volume: String?
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
class Campaign < Sentdm::Internal::Type::BaseModel
|
|
71
|
-
attr_accessor description: String
|
|
72
|
-
|
|
73
|
-
attr_accessor name: String
|
|
74
|
-
|
|
75
|
-
attr_accessor type: String
|
|
76
|
-
|
|
77
|
-
attr_accessor use_cases: ::Array[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase]
|
|
78
|
-
|
|
79
|
-
attr_accessor help_keywords: String?
|
|
80
|
-
|
|
81
|
-
attr_accessor help_message: String?
|
|
82
|
-
|
|
83
|
-
attr_accessor message_flow: String?
|
|
84
|
-
|
|
85
|
-
attr_accessor optin_keywords: String?
|
|
86
|
-
|
|
87
|
-
attr_accessor optin_message: String?
|
|
88
|
-
|
|
89
|
-
attr_accessor optout_keywords: String?
|
|
90
|
-
|
|
91
|
-
attr_accessor optout_message: String?
|
|
92
|
-
|
|
93
|
-
attr_accessor privacy_policy_link: String?
|
|
94
|
-
|
|
95
|
-
attr_accessor terms_and_conditions_link: String?
|
|
96
|
-
|
|
97
|
-
attr_accessor volume: String?
|
|
98
|
-
|
|
99
|
-
def initialize: (
|
|
100
|
-
description: String,
|
|
101
|
-
name: String,
|
|
102
|
-
type: String,
|
|
103
|
-
use_cases: ::Array[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase],
|
|
104
|
-
?help_keywords: String?,
|
|
105
|
-
?help_message: String?,
|
|
106
|
-
?message_flow: String?,
|
|
107
|
-
?optin_keywords: String?,
|
|
108
|
-
?optin_message: String?,
|
|
109
|
-
?optout_keywords: String?,
|
|
110
|
-
?optout_message: String?,
|
|
111
|
-
?privacy_policy_link: String?,
|
|
112
|
-
?terms_and_conditions_link: String?,
|
|
113
|
-
?volume: String?
|
|
114
|
-
) -> void
|
|
115
|
-
|
|
116
|
-
def to_hash: -> {
|
|
117
|
-
description: String,
|
|
118
|
-
name: String,
|
|
119
|
-
type: String,
|
|
120
|
-
use_cases: ::Array[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase],
|
|
121
|
-
help_keywords: String?,
|
|
122
|
-
help_message: String?,
|
|
123
|
-
message_flow: String?,
|
|
124
|
-
optin_keywords: String?,
|
|
125
|
-
optin_message: String?,
|
|
126
|
-
optout_keywords: String?,
|
|
127
|
-
optout_message: String?,
|
|
128
|
-
privacy_policy_link: String?,
|
|
129
|
-
terms_and_conditions_link: String?,
|
|
130
|
-
volume: String?
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
type use_case =
|
|
134
|
-
{
|
|
135
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
136
|
-
sample_messages: ::Array[String]
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
class UseCase < Sentdm::Internal::Type::BaseModel
|
|
140
|
-
attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
|
|
141
|
-
|
|
142
|
-
attr_accessor sample_messages: ::Array[String]
|
|
143
|
-
|
|
144
|
-
def initialize: (
|
|
145
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
146
|
-
sample_messages: ::Array[String]
|
|
147
|
-
) -> void
|
|
148
|
-
|
|
149
|
-
def to_hash: -> {
|
|
150
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
151
|
-
sample_messages: ::Array[String]
|
|
152
|
-
}
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
51
|
end
|
|
156
52
|
end
|
|
157
53
|
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Profiles
|
|
4
|
+
type campaign_data =
|
|
5
|
+
{
|
|
6
|
+
description: String,
|
|
7
|
+
name: String,
|
|
8
|
+
type: String,
|
|
9
|
+
use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
|
|
10
|
+
help_keywords: String?,
|
|
11
|
+
help_message: String?,
|
|
12
|
+
message_flow: String?,
|
|
13
|
+
optin_keywords: String?,
|
|
14
|
+
optin_message: String?,
|
|
15
|
+
optout_keywords: String?,
|
|
16
|
+
optout_message: String?,
|
|
17
|
+
privacy_policy_link: String?,
|
|
18
|
+
terms_and_conditions_link: String?,
|
|
19
|
+
volume: String?
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class CampaignData < Sentdm::Internal::Type::BaseModel
|
|
23
|
+
attr_accessor description: String
|
|
24
|
+
|
|
25
|
+
attr_accessor name: String
|
|
26
|
+
|
|
27
|
+
attr_accessor type: String
|
|
28
|
+
|
|
29
|
+
attr_accessor use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData]
|
|
30
|
+
|
|
31
|
+
attr_accessor help_keywords: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor help_message: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor message_flow: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor optin_keywords: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor optin_message: String?
|
|
40
|
+
|
|
41
|
+
attr_accessor optout_keywords: String?
|
|
42
|
+
|
|
43
|
+
attr_accessor optout_message: String?
|
|
44
|
+
|
|
45
|
+
attr_accessor privacy_policy_link: String?
|
|
46
|
+
|
|
47
|
+
attr_accessor terms_and_conditions_link: String?
|
|
48
|
+
|
|
49
|
+
attr_accessor volume: String?
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
description: String,
|
|
53
|
+
name: String,
|
|
54
|
+
type: String,
|
|
55
|
+
use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
|
|
56
|
+
?help_keywords: String?,
|
|
57
|
+
?help_message: String?,
|
|
58
|
+
?message_flow: String?,
|
|
59
|
+
?optin_keywords: String?,
|
|
60
|
+
?optin_message: String?,
|
|
61
|
+
?optout_keywords: String?,
|
|
62
|
+
?optout_message: String?,
|
|
63
|
+
?privacy_policy_link: String?,
|
|
64
|
+
?terms_and_conditions_link: String?,
|
|
65
|
+
?volume: String?
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
description: String,
|
|
70
|
+
name: String,
|
|
71
|
+
type: String,
|
|
72
|
+
use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
|
|
73
|
+
help_keywords: String?,
|
|
74
|
+
help_message: String?,
|
|
75
|
+
message_flow: String?,
|
|
76
|
+
optin_keywords: String?,
|
|
77
|
+
optin_message: String?,
|
|
78
|
+
optout_keywords: String?,
|
|
79
|
+
optout_message: String?,
|
|
80
|
+
privacy_policy_link: String?,
|
|
81
|
+
terms_and_conditions_link: String?,
|
|
82
|
+
volume: String?
|
|
83
|
+
}
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -2,34 +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
|
-
sandbox: bool,
|
|
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::
|
|
8
|
+
class CampaignDeleteParams < Sentdm::Models::MutationRequest
|
|
14
9
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
15
10
|
include Sentdm::Internal::Type::RequestParameters
|
|
16
11
|
|
|
17
|
-
|
|
12
|
+
def profile_id: -> String
|
|
18
13
|
|
|
19
|
-
|
|
14
|
+
def profile_id=: (String _) -> String
|
|
20
15
|
|
|
21
|
-
|
|
16
|
+
def campaign_id: -> String
|
|
22
17
|
|
|
23
|
-
def
|
|
18
|
+
def campaign_id=: (String _) -> String
|
|
24
19
|
|
|
25
|
-
|
|
20
|
+
def x_profile_id: -> String?
|
|
26
21
|
|
|
27
|
-
def x_profile_id=: (String) -> String
|
|
22
|
+
def x_profile_id=: (String _) -> String
|
|
28
23
|
|
|
29
24
|
def initialize: (
|
|
30
25
|
profile_id: String,
|
|
31
26
|
campaign_id: String,
|
|
32
|
-
?sandbox: bool,
|
|
33
27
|
?x_profile_id: String,
|
|
34
28
|
?request_options: Sentdm::request_opts
|
|
35
29
|
) -> void
|
|
@@ -37,7 +31,6 @@ module Sentdm
|
|
|
37
31
|
def to_hash: -> {
|
|
38
32
|
profile_id: String,
|
|
39
33
|
campaign_id: String,
|
|
40
|
-
sandbox: bool,
|
|
41
34
|
x_profile_id: String,
|
|
42
35
|
request_options: Sentdm::RequestOptions
|
|
43
36
|
}
|
|
@@ -5,7 +5,7 @@ module Sentdm
|
|
|
5
5
|
{
|
|
6
6
|
profile_id: String,
|
|
7
7
|
campaign_id: String,
|
|
8
|
-
campaign: Sentdm::Profiles::
|
|
8
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
9
9
|
sandbox: bool,
|
|
10
10
|
idempotency_key: String,
|
|
11
11
|
x_profile_id: String
|
|
@@ -20,7 +20,7 @@ module Sentdm
|
|
|
20
20
|
|
|
21
21
|
attr_accessor campaign_id: String
|
|
22
22
|
|
|
23
|
-
attr_accessor campaign: Sentdm::Profiles::
|
|
23
|
+
attr_accessor campaign: Sentdm::Profiles::CampaignData
|
|
24
24
|
|
|
25
25
|
attr_reader sandbox: bool?
|
|
26
26
|
|
|
@@ -37,7 +37,7 @@ module Sentdm
|
|
|
37
37
|
def initialize: (
|
|
38
38
|
profile_id: String,
|
|
39
39
|
campaign_id: String,
|
|
40
|
-
campaign: Sentdm::Profiles::
|
|
40
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
41
41
|
?sandbox: bool,
|
|
42
42
|
?idempotency_key: String,
|
|
43
43
|
?x_profile_id: String,
|
|
@@ -47,116 +47,12 @@ module Sentdm
|
|
|
47
47
|
def to_hash: -> {
|
|
48
48
|
profile_id: String,
|
|
49
49
|
campaign_id: String,
|
|
50
|
-
campaign: Sentdm::Profiles::
|
|
50
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
51
51
|
sandbox: bool,
|
|
52
52
|
idempotency_key: String,
|
|
53
53
|
x_profile_id: String,
|
|
54
54
|
request_options: Sentdm::RequestOptions
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
type campaign =
|
|
58
|
-
{
|
|
59
|
-
description: String,
|
|
60
|
-
name: String,
|
|
61
|
-
type: String,
|
|
62
|
-
use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
|
|
63
|
-
help_keywords: String?,
|
|
64
|
-
help_message: String?,
|
|
65
|
-
message_flow: String?,
|
|
66
|
-
optin_keywords: String?,
|
|
67
|
-
optin_message: String?,
|
|
68
|
-
optout_keywords: String?,
|
|
69
|
-
optout_message: String?,
|
|
70
|
-
privacy_policy_link: String?,
|
|
71
|
-
terms_and_conditions_link: String?,
|
|
72
|
-
volume: String?
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
class Campaign < Sentdm::Internal::Type::BaseModel
|
|
76
|
-
attr_accessor description: String
|
|
77
|
-
|
|
78
|
-
attr_accessor name: String
|
|
79
|
-
|
|
80
|
-
attr_accessor type: String
|
|
81
|
-
|
|
82
|
-
attr_accessor use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase]
|
|
83
|
-
|
|
84
|
-
attr_accessor help_keywords: String?
|
|
85
|
-
|
|
86
|
-
attr_accessor help_message: String?
|
|
87
|
-
|
|
88
|
-
attr_accessor message_flow: String?
|
|
89
|
-
|
|
90
|
-
attr_accessor optin_keywords: String?
|
|
91
|
-
|
|
92
|
-
attr_accessor optin_message: String?
|
|
93
|
-
|
|
94
|
-
attr_accessor optout_keywords: String?
|
|
95
|
-
|
|
96
|
-
attr_accessor optout_message: String?
|
|
97
|
-
|
|
98
|
-
attr_accessor privacy_policy_link: String?
|
|
99
|
-
|
|
100
|
-
attr_accessor terms_and_conditions_link: String?
|
|
101
|
-
|
|
102
|
-
attr_accessor volume: String?
|
|
103
|
-
|
|
104
|
-
def initialize: (
|
|
105
|
-
description: String,
|
|
106
|
-
name: String,
|
|
107
|
-
type: String,
|
|
108
|
-
use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
|
|
109
|
-
?help_keywords: String?,
|
|
110
|
-
?help_message: String?,
|
|
111
|
-
?message_flow: String?,
|
|
112
|
-
?optin_keywords: String?,
|
|
113
|
-
?optin_message: String?,
|
|
114
|
-
?optout_keywords: String?,
|
|
115
|
-
?optout_message: String?,
|
|
116
|
-
?privacy_policy_link: String?,
|
|
117
|
-
?terms_and_conditions_link: String?,
|
|
118
|
-
?volume: String?
|
|
119
|
-
) -> void
|
|
120
|
-
|
|
121
|
-
def to_hash: -> {
|
|
122
|
-
description: String,
|
|
123
|
-
name: String,
|
|
124
|
-
type: String,
|
|
125
|
-
use_cases: ::Array[Sentdm::Profiles::CampaignUpdateParams::Campaign::UseCase],
|
|
126
|
-
help_keywords: String?,
|
|
127
|
-
help_message: String?,
|
|
128
|
-
message_flow: String?,
|
|
129
|
-
optin_keywords: String?,
|
|
130
|
-
optin_message: String?,
|
|
131
|
-
optout_keywords: String?,
|
|
132
|
-
optout_message: String?,
|
|
133
|
-
privacy_policy_link: String?,
|
|
134
|
-
terms_and_conditions_link: String?,
|
|
135
|
-
volume: String?
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
type use_case =
|
|
139
|
-
{
|
|
140
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
141
|
-
sample_messages: ::Array[String]
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
class UseCase < Sentdm::Internal::Type::BaseModel
|
|
145
|
-
attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
|
|
146
|
-
|
|
147
|
-
attr_accessor sample_messages: ::Array[String]
|
|
148
|
-
|
|
149
|
-
def initialize: (
|
|
150
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
151
|
-
sample_messages: ::Array[String]
|
|
152
|
-
) -> void
|
|
153
|
-
|
|
154
|
-
def to_hash: -> {
|
|
155
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
156
|
-
sample_messages: ::Array[String]
|
|
157
|
-
}
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
56
|
end
|
|
161
57
|
end
|
|
162
58
|
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Profiles
|
|
4
|
+
type campaign_use_case =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
campaign_id: String,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
customer_id: String,
|
|
10
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
11
|
+
sample_messages: ::Array[String],
|
|
12
|
+
updated_at: Time?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class CampaignUseCase < Sentdm::Internal::Type::BaseModel
|
|
16
|
+
attr_reader id: String?
|
|
17
|
+
|
|
18
|
+
def id=: (String) -> String
|
|
19
|
+
|
|
20
|
+
attr_reader campaign_id: String?
|
|
21
|
+
|
|
22
|
+
def campaign_id=: (String) -> String
|
|
23
|
+
|
|
24
|
+
attr_reader created_at: Time?
|
|
25
|
+
|
|
26
|
+
def created_at=: (Time) -> Time
|
|
27
|
+
|
|
28
|
+
attr_reader customer_id: String?
|
|
29
|
+
|
|
30
|
+
def customer_id=: (String) -> String
|
|
31
|
+
|
|
32
|
+
attr_reader messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us?
|
|
33
|
+
|
|
34
|
+
def messaging_use_case_us=: (
|
|
35
|
+
Sentdm::Models::Profiles::messaging_use_case_us
|
|
36
|
+
) -> Sentdm::Models::Profiles::messaging_use_case_us
|
|
37
|
+
|
|
38
|
+
attr_reader sample_messages: ::Array[String]?
|
|
39
|
+
|
|
40
|
+
def sample_messages=: (::Array[String]) -> ::Array[String]
|
|
41
|
+
|
|
42
|
+
attr_accessor updated_at: Time?
|
|
43
|
+
|
|
44
|
+
def initialize: (
|
|
45
|
+
?id: String,
|
|
46
|
+
?campaign_id: String,
|
|
47
|
+
?created_at: Time,
|
|
48
|
+
?customer_id: String,
|
|
49
|
+
?messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
50
|
+
?sample_messages: ::Array[String],
|
|
51
|
+
?updated_at: Time?
|
|
52
|
+
) -> void
|
|
53
|
+
|
|
54
|
+
def to_hash: -> {
|
|
55
|
+
id: String,
|
|
56
|
+
campaign_id: String,
|
|
57
|
+
created_at: Time,
|
|
58
|
+
customer_id: String,
|
|
59
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
60
|
+
sample_messages: ::Array[String],
|
|
61
|
+
updated_at: Time?
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Profiles
|
|
4
|
+
type campaign_use_case_data =
|
|
5
|
+
{
|
|
6
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
7
|
+
sample_messages: ::Array[String]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class CampaignUseCaseData < Sentdm::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
|
|
12
|
+
|
|
13
|
+
attr_accessor sample_messages: ::Array[String]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
17
|
+
sample_messages: ::Array[String]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
22
|
+
sample_messages: ::Array[String]
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type template =
|
|
4
|
+
{
|
|
5
|
+
customer_id: String,
|
|
6
|
+
id: String,
|
|
7
|
+
category: String,
|
|
8
|
+
channels: ::Array[String]?,
|
|
9
|
+
created_at: Time,
|
|
10
|
+
is_published: bool,
|
|
11
|
+
language: String,
|
|
12
|
+
name: String,
|
|
13
|
+
status: String,
|
|
14
|
+
updated_at: Time?,
|
|
15
|
+
variables: ::Array[String]?
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class Template < Sentdm::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor customer_id: String
|
|
20
|
+
|
|
21
|
+
attr_reader id: String?
|
|
22
|
+
|
|
23
|
+
def id=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader category: String?
|
|
26
|
+
|
|
27
|
+
def category=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_accessor channels: ::Array[String]?
|
|
30
|
+
|
|
31
|
+
attr_reader created_at: Time?
|
|
32
|
+
|
|
33
|
+
def created_at=: (Time) -> Time
|
|
34
|
+
|
|
35
|
+
attr_reader is_published: bool?
|
|
36
|
+
|
|
37
|
+
def is_published=: (bool) -> bool
|
|
38
|
+
|
|
39
|
+
attr_reader language: String?
|
|
40
|
+
|
|
41
|
+
def language=: (String) -> String
|
|
42
|
+
|
|
43
|
+
attr_reader name: String?
|
|
44
|
+
|
|
45
|
+
def name=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader status: String?
|
|
48
|
+
|
|
49
|
+
def status=: (String) -> String
|
|
50
|
+
|
|
51
|
+
attr_accessor updated_at: Time?
|
|
52
|
+
|
|
53
|
+
attr_accessor variables: ::Array[String]?
|
|
54
|
+
|
|
55
|
+
def initialize: (
|
|
56
|
+
customer_id: String,
|
|
57
|
+
?id: String,
|
|
58
|
+
?category: String,
|
|
59
|
+
?channels: ::Array[String]?,
|
|
60
|
+
?created_at: Time,
|
|
61
|
+
?is_published: bool,
|
|
62
|
+
?language: String,
|
|
63
|
+
?name: String,
|
|
64
|
+
?status: String,
|
|
65
|
+
?updated_at: Time?,
|
|
66
|
+
?variables: ::Array[String]?
|
|
67
|
+
) -> void
|
|
68
|
+
|
|
69
|
+
def to_hash: -> {
|
|
70
|
+
customer_id: String,
|
|
71
|
+
id: String,
|
|
72
|
+
category: String,
|
|
73
|
+
channels: ::Array[String]?,
|
|
74
|
+
created_at: Time,
|
|
75
|
+
is_published: bool,
|
|
76
|
+
language: String,
|
|
77
|
+
name: String,
|
|
78
|
+
status: String,
|
|
79
|
+
updated_at: Time?,
|
|
80
|
+
variables: ::Array[String]?
|
|
81
|
+
}
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|