diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md
index 6b0f9abd7..3d051f559 100644
--- a/src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md
+++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md
@@ -5,10 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | Feed item ID |
+**Name** | **string** | Feed item name |
**QuestId** | **string** | Quest ID |
**Priority** | **int** | Feed item priority |
**Type** | **string** | Feed item type |
**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest |
+**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted |
**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional]
**DayZero** | **bool** | If the quest is a day0 quest | [optional]
**GameId** | **string** | Game ID | [optional]
diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md
index 332eb4434..c71aaabfb 100644
--- a/src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md
+++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md
@@ -4,15 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**CtaLabel** | **string** | The label for the CTA button |
-**CtaDescription** | **string** | The description for the CTA button |
-**CtaUrl** | **string** | The URL for the CTA button |
-**CtaImage** | **string** | The image for the CTA background |
**Id** | **string** | Feed item ID |
+**Name** | **string** | Feed item name |
**QuestId** | **string** | Quest ID |
**Priority** | **int** | Feed item priority |
**Type** | **string** | Feed item type |
**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest |
+**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted |
**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional]
**DayZero** | **bool** | If the quest is a day0 quest | [optional]
**GameId** | **string** | Game ID | [optional]
@@ -21,6 +19,10 @@ Name | Type | Description | Notes
**Tags** | **List<string>** | The tags for the feed item | [optional]
**Categories** | **List<string>** | The categories for the feed item | [optional]
**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional]
+**CtaLabel** | **string** | The label for the CTA button |
+**CtaDescription** | **string** | The description for the CTA button |
+**CtaUrl** | **string** | The URL for the CTA button |
+**CtaImage** | **string** | The image for the CTA background |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md
index 6137d9dad..c3b36d6e5 100644
--- a/src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md
+++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md
@@ -4,19 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**QuizHeaderVideoUrl** | **string** | URL of the quiz header video | [optional]
-**QuizLogo** | **string** | URL of the quiz logo | [optional]
-**QuizQuestion** | **string** | The quiz question |
-**QuizAnswers** | **List<string>** | Quiz answers to display |
-**QuizCorrectAnswers** | **List<int>** | Quiz correct answers |
-**QuizCorrectAnswerText** | **string** | The text to display when the user answers the quiz correctly | [optional]
-**QuizHeaderInitialImage** | **string** | The initial image for the quiz header | [optional]
-**QuizHeaderAnsweredImage** | **string** | The image to display when the user answers the quiz correctly | [optional]
**Id** | **string** | Feed item ID |
+**Name** | **string** | Feed item name |
**QuestId** | **string** | Quest ID |
**Priority** | **int** | Feed item priority |
**Type** | **string** | Feed item type |
**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest |
+**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted |
**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional]
**DayZero** | **bool** | If the quest is a day0 quest | [optional]
**GameId** | **string** | Game ID | [optional]
@@ -25,6 +19,14 @@ Name | Type | Description | Notes
**Tags** | **List<string>** | The tags for the feed item | [optional]
**Categories** | **List<string>** | The categories for the feed item | [optional]
**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional]
+**QuizHeaderVideoUrl** | **string** | URL of the quiz header video | [optional]
+**QuizLogo** | **string** | URL of the quiz logo | [optional]
+**QuizQuestion** | **string** | The quiz question |
+**QuizAnswers** | **List<string>** | Quiz answers to display |
+**QuizCorrectAnswers** | **List<int>** | Quiz correct answers |
+**QuizCorrectAnswerText** | **string** | The text to display when the user answers the quiz correctly | [optional]
+**QuizHeaderInitialImage** | **string** | The initial image for the quiz header | [optional]
+**QuizHeaderAnsweredImage** | **string** | The image to display when the user answers the quiz correctly | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md
index 6db566f97..58fbd9243 100644
--- a/src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md
+++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md
@@ -4,17 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**SignInRedirectUrl** | **string** | The URL to redirect to when the user completes the sign in quest |
-**SignInBackground** | **string** | The background for the sign in quest |
-**CtaLabel** | **string** | The label for the CTA button |
-**CtaDescription** | **string** | The description for the CTA button |
-**CtaUrl** | **string** | The URL for the CTA button |
-**CtaImage** | **string** | The image for the CTA background |
**Id** | **string** | Feed item ID |
+**Name** | **string** | Feed item name |
**QuestId** | **string** | Quest ID |
**Priority** | **int** | Feed item priority |
**Type** | **string** | Feed item type |
**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest |
+**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted |
**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional]
**DayZero** | **bool** | If the quest is a day0 quest | [optional]
**GameId** | **string** | Game ID | [optional]
@@ -23,6 +19,12 @@ Name | Type | Description | Notes
**Tags** | **List<string>** | The tags for the feed item | [optional]
**Categories** | **List<string>** | The categories for the feed item | [optional]
**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional]
+**CtaLabel** | **string** | The label for the CTA button |
+**CtaDescription** | **string** | The description for the CTA button |
+**CtaUrl** | **string** | The URL for the CTA button |
+**CtaImage** | **string** | The image for the CTA background |
+**SignInRedirectUrl** | **string** | The URL to redirect to when the user completes the sign in quest |
+**SignInBackground** | **string** | The background for the sign in quest |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md
index d9ba2c41f..49a8ec137 100644
--- a/src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md
+++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md
@@ -4,13 +4,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**VideoTitle** | **string** | Title of the video |
-**VideoUrl** | **string** | URL of the video |
**Id** | **string** | Feed item ID |
+**Name** | **string** | Feed item name |
**QuestId** | **string** | Quest ID |
**Priority** | **int** | Feed item priority |
**Type** | **string** | Feed item type |
**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest |
+**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted |
**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional]
**DayZero** | **bool** | If the quest is a day0 quest | [optional]
**GameId** | **string** | Game ID | [optional]
@@ -19,6 +19,8 @@ Name | Type | Description | Notes
**Tags** | **List<string>** | The tags for the feed item | [optional]
**Categories** | **List<string>** | The categories for the feed item | [optional]
**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional]
+**VideoTitle** | **string** | Title of the video |
+**VideoUrl** | **string** | URL of the video |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs
index 603c33c75..446f5d8e8 100644
--- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs
+++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs
@@ -40,10 +40,12 @@ protected FeedItemBase() { }
/// Initializes a new instance of the class.
///
/// Feed item ID (required).
+ /// Feed item name (required).
/// Quest ID (required).
/// Feed item priority (required).
/// Feed item type (required).
/// Amount of gems earnable when user completes the quest (required).
+ /// Feed item status, e.g., enabled, disabled, archived, deleted (required).
/// If the quest is bypassed, the user will not be able to see it on the feed.
/// If the quest is a day0 quest.
/// Game ID.
@@ -52,7 +54,7 @@ protected FeedItemBase() { }
/// The tags for the feed item.
/// The categories for the feed item.
/// The onboarding experience for the feed item.
- public FeedItemBase(string id = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string))
+ public FeedItemBase(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string))
{
// to ensure "id" is required (not null)
if (id == null)
@@ -60,6 +62,12 @@ protected FeedItemBase() { }
throw new ArgumentNullException("id is a required property for FeedItemBase and cannot be null");
}
this.Id = id;
+ // to ensure "name" is required (not null)
+ if (name == null)
+ {
+ throw new ArgumentNullException("name is a required property for FeedItemBase and cannot be null");
+ }
+ this.Name = name;
// to ensure "questId" is required (not null)
if (questId == null)
{
@@ -74,6 +82,12 @@ protected FeedItemBase() { }
}
this.Type = type;
this.GemsEarnable = gemsEarnable;
+ // to ensure "status" is required (not null)
+ if (status == null)
+ {
+ throw new ArgumentNullException("status is a required property for FeedItemBase and cannot be null");
+ }
+ this.Status = status;
this.Bypass = bypass;
this.DayZero = dayZero;
this.GameId = gameId;
@@ -91,6 +105,13 @@ protected FeedItemBase() { }
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }
+ ///
+ /// Feed item name
+ ///
+ /// Feed item name
+ [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
+ public string Name { get; set; }
+
///
/// Quest ID
///
@@ -119,6 +140,13 @@ protected FeedItemBase() { }
[DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)]
public int GemsEarnable { get; set; }
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
+ public string Status { get; set; }
+
///
/// If the quest is bypassed, the user will not be able to see it on the feed
///
@@ -184,10 +212,12 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class FeedItemBase {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" QuestId: ").Append(QuestId).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" Bypass: ").Append(Bypass).Append("\n");
sb.Append(" DayZero: ").Append(DayZero).Append("\n");
sb.Append(" GameId: ").Append(GameId).Append("\n");
diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemCTA.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemCTA.cs
index e8aa814e4..6f465db62 100644
--- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemCTA.cs
+++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemCTA.cs
@@ -39,15 +39,13 @@ protected FeedItemCTA() { }
///
/// Initializes a new instance of the class.
///
- /// The label for the CTA button (required).
- /// The description for the CTA button (required).
- /// The URL for the CTA button (required).
- /// The image for the CTA background (required).
/// Feed item ID (required).
+ /// Feed item name (required).
/// Quest ID (required).
/// Feed item priority (required).
/// Feed item type (required).
/// Amount of gems earnable when user completes the quest (required).
+ /// Feed item status, e.g., enabled, disabled, archived, deleted (required).
/// If the quest is bypassed, the user will not be able to see it on the feed.
/// If the quest is a day0 quest.
/// Game ID.
@@ -56,8 +54,44 @@ protected FeedItemCTA() { }
/// The tags for the feed item.
/// The categories for the feed item.
/// The onboarding experience for the feed item.
- public FeedItemCTA(string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string), string id = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string))
+ /// The label for the CTA button (required).
+ /// The description for the CTA button (required).
+ /// The URL for the CTA button (required).
+ /// The image for the CTA background (required).
+ public FeedItemCTA(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string))
{
+ // to ensure "id" is required (not null)
+ if (id == null)
+ {
+ throw new ArgumentNullException("id is a required property for FeedItemCTA and cannot be null");
+ }
+ this.Id = id;
+ // to ensure "name" is required (not null)
+ if (name == null)
+ {
+ throw new ArgumentNullException("name is a required property for FeedItemCTA and cannot be null");
+ }
+ this.Name = name;
+ // to ensure "questId" is required (not null)
+ if (questId == null)
+ {
+ throw new ArgumentNullException("questId is a required property for FeedItemCTA and cannot be null");
+ }
+ this.QuestId = questId;
+ this.Priority = priority;
+ // to ensure "type" is required (not null)
+ if (type == null)
+ {
+ throw new ArgumentNullException("type is a required property for FeedItemCTA and cannot be null");
+ }
+ this.Type = type;
+ this.GemsEarnable = gemsEarnable;
+ // to ensure "status" is required (not null)
+ if (status == null)
+ {
+ throw new ArgumentNullException("status is a required property for FeedItemCTA and cannot be null");
+ }
+ this.Status = status;
// to ensure "ctaLabel" is required (not null)
if (ctaLabel == null)
{
@@ -82,26 +116,6 @@ protected FeedItemCTA() { }
throw new ArgumentNullException("ctaImage is a required property for FeedItemCTA and cannot be null");
}
this.CtaImage = ctaImage;
- // to ensure "id" is required (not null)
- if (id == null)
- {
- throw new ArgumentNullException("id is a required property for FeedItemCTA and cannot be null");
- }
- this.Id = id;
- // to ensure "questId" is required (not null)
- if (questId == null)
- {
- throw new ArgumentNullException("questId is a required property for FeedItemCTA and cannot be null");
- }
- this.QuestId = questId;
- this.Priority = priority;
- // to ensure "type" is required (not null)
- if (type == null)
- {
- throw new ArgumentNullException("type is a required property for FeedItemCTA and cannot be null");
- }
- this.Type = type;
- this.GemsEarnable = gemsEarnable;
this.Bypass = bypass;
this.DayZero = dayZero;
this.GameId = gameId;
@@ -112,34 +126,6 @@ protected FeedItemCTA() { }
this.OnboardingExperience = onboardingExperience;
}
- ///
- /// The label for the CTA button
- ///
- /// The label for the CTA button
- [DataMember(Name = "cta_label", IsRequired = true, EmitDefaultValue = true)]
- public string CtaLabel { get; set; }
-
- ///
- /// The description for the CTA button
- ///
- /// The description for the CTA button
- [DataMember(Name = "cta_description", IsRequired = true, EmitDefaultValue = true)]
- public string CtaDescription { get; set; }
-
- ///
- /// The URL for the CTA button
- ///
- /// The URL for the CTA button
- [DataMember(Name = "cta_url", IsRequired = true, EmitDefaultValue = true)]
- public string CtaUrl { get; set; }
-
- ///
- /// The image for the CTA background
- ///
- /// The image for the CTA background
- [DataMember(Name = "cta_image", IsRequired = true, EmitDefaultValue = true)]
- public string CtaImage { get; set; }
-
///
/// Feed item ID
///
@@ -147,6 +133,13 @@ protected FeedItemCTA() { }
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }
+ ///
+ /// Feed item name
+ ///
+ /// Feed item name
+ [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
+ public string Name { get; set; }
+
///
/// Quest ID
///
@@ -175,6 +168,13 @@ protected FeedItemCTA() { }
[DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)]
public int GemsEarnable { get; set; }
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
+ public string Status { get; set; }
+
///
/// If the quest is bypassed, the user will not be able to see it on the feed
///
@@ -231,6 +231,34 @@ protected FeedItemCTA() { }
[DataMember(Name = "onboarding_experience", EmitDefaultValue = false)]
public string OnboardingExperience { get; set; }
+ ///
+ /// The label for the CTA button
+ ///
+ /// The label for the CTA button
+ [DataMember(Name = "cta_label", IsRequired = true, EmitDefaultValue = true)]
+ public string CtaLabel { get; set; }
+
+ ///
+ /// The description for the CTA button
+ ///
+ /// The description for the CTA button
+ [DataMember(Name = "cta_description", IsRequired = true, EmitDefaultValue = true)]
+ public string CtaDescription { get; set; }
+
+ ///
+ /// The URL for the CTA button
+ ///
+ /// The URL for the CTA button
+ [DataMember(Name = "cta_url", IsRequired = true, EmitDefaultValue = true)]
+ public string CtaUrl { get; set; }
+
+ ///
+ /// The image for the CTA background
+ ///
+ /// The image for the CTA background
+ [DataMember(Name = "cta_image", IsRequired = true, EmitDefaultValue = true)]
+ public string CtaImage { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -239,15 +267,13 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class FeedItemCTA {\n");
- sb.Append(" CtaLabel: ").Append(CtaLabel).Append("\n");
- sb.Append(" CtaDescription: ").Append(CtaDescription).Append("\n");
- sb.Append(" CtaUrl: ").Append(CtaUrl).Append("\n");
- sb.Append(" CtaImage: ").Append(CtaImage).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" QuestId: ").Append(QuestId).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" Bypass: ").Append(Bypass).Append("\n");
sb.Append(" DayZero: ").Append(DayZero).Append("\n");
sb.Append(" GameId: ").Append(GameId).Append("\n");
@@ -256,6 +282,10 @@ public override string ToString()
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Categories: ").Append(Categories).Append("\n");
sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n");
+ sb.Append(" CtaLabel: ").Append(CtaLabel).Append("\n");
+ sb.Append(" CtaDescription: ").Append(CtaDescription).Append("\n");
+ sb.Append(" CtaUrl: ").Append(CtaUrl).Append("\n");
+ sb.Append(" CtaImage: ").Append(CtaImage).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemQuiz.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemQuiz.cs
index 2895e15b1..29628d84c 100644
--- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemQuiz.cs
+++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemQuiz.cs
@@ -39,19 +39,13 @@ protected FeedItemQuiz() { }
///
/// Initializes a new instance of the class.
///
- /// URL of the quiz header video.
- /// URL of the quiz logo.
- /// The quiz question (required).
- /// Quiz answers to display (required).
- /// Quiz correct answers (required).
- /// The text to display when the user answers the quiz correctly.
- /// The initial image for the quiz header.
- /// The image to display when the user answers the quiz correctly.
/// Feed item ID (required).
+ /// Feed item name (required).
/// Quest ID (required).
/// Feed item priority (required).
/// Feed item type (required).
/// Amount of gems earnable when user completes the quest (required).
+ /// Feed item status, e.g., enabled, disabled, archived, deleted (required).
/// If the quest is bypassed, the user will not be able to see it on the feed.
/// If the quest is a day0 quest.
/// Game ID.
@@ -60,32 +54,28 @@ protected FeedItemQuiz() { }
/// The tags for the feed item.
/// The categories for the feed item.
/// The onboarding experience for the feed item.
- public FeedItemQuiz(string quizHeaderVideoUrl = default(string), string quizLogo = default(string), string quizQuestion = default(string), List quizAnswers = default(List), List quizCorrectAnswers = default(List), string quizCorrectAnswerText = default(string), string quizHeaderInitialImage = default(string), string quizHeaderAnsweredImage = default(string), string id = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string))
+ /// URL of the quiz header video.
+ /// URL of the quiz logo.
+ /// The quiz question (required).
+ /// Quiz answers to display (required).
+ /// Quiz correct answers (required).
+ /// The text to display when the user answers the quiz correctly.
+ /// The initial image for the quiz header.
+ /// The image to display when the user answers the quiz correctly.
+ public FeedItemQuiz(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), string quizHeaderVideoUrl = default(string), string quizLogo = default(string), string quizQuestion = default(string), List quizAnswers = default(List), List quizCorrectAnswers = default(List), string quizCorrectAnswerText = default(string), string quizHeaderInitialImage = default(string), string quizHeaderAnsweredImage = default(string))
{
- // to ensure "quizQuestion" is required (not null)
- if (quizQuestion == null)
- {
- throw new ArgumentNullException("quizQuestion is a required property for FeedItemQuiz and cannot be null");
- }
- this.QuizQuestion = quizQuestion;
- // to ensure "quizAnswers" is required (not null)
- if (quizAnswers == null)
- {
- throw new ArgumentNullException("quizAnswers is a required property for FeedItemQuiz and cannot be null");
- }
- this.QuizAnswers = quizAnswers;
- // to ensure "quizCorrectAnswers" is required (not null)
- if (quizCorrectAnswers == null)
- {
- throw new ArgumentNullException("quizCorrectAnswers is a required property for FeedItemQuiz and cannot be null");
- }
- this.QuizCorrectAnswers = quizCorrectAnswers;
// to ensure "id" is required (not null)
if (id == null)
{
throw new ArgumentNullException("id is a required property for FeedItemQuiz and cannot be null");
}
this.Id = id;
+ // to ensure "name" is required (not null)
+ if (name == null)
+ {
+ throw new ArgumentNullException("name is a required property for FeedItemQuiz and cannot be null");
+ }
+ this.Name = name;
// to ensure "questId" is required (not null)
if (questId == null)
{
@@ -100,11 +90,30 @@ protected FeedItemQuiz() { }
}
this.Type = type;
this.GemsEarnable = gemsEarnable;
- this.QuizHeaderVideoUrl = quizHeaderVideoUrl;
- this.QuizLogo = quizLogo;
- this.QuizCorrectAnswerText = quizCorrectAnswerText;
- this.QuizHeaderInitialImage = quizHeaderInitialImage;
- this.QuizHeaderAnsweredImage = quizHeaderAnsweredImage;
+ // to ensure "status" is required (not null)
+ if (status == null)
+ {
+ throw new ArgumentNullException("status is a required property for FeedItemQuiz and cannot be null");
+ }
+ this.Status = status;
+ // to ensure "quizQuestion" is required (not null)
+ if (quizQuestion == null)
+ {
+ throw new ArgumentNullException("quizQuestion is a required property for FeedItemQuiz and cannot be null");
+ }
+ this.QuizQuestion = quizQuestion;
+ // to ensure "quizAnswers" is required (not null)
+ if (quizAnswers == null)
+ {
+ throw new ArgumentNullException("quizAnswers is a required property for FeedItemQuiz and cannot be null");
+ }
+ this.QuizAnswers = quizAnswers;
+ // to ensure "quizCorrectAnswers" is required (not null)
+ if (quizCorrectAnswers == null)
+ {
+ throw new ArgumentNullException("quizCorrectAnswers is a required property for FeedItemQuiz and cannot be null");
+ }
+ this.QuizCorrectAnswers = quizCorrectAnswers;
this.Bypass = bypass;
this.DayZero = dayZero;
this.GameId = gameId;
@@ -113,64 +122,13 @@ protected FeedItemQuiz() { }
this.Tags = tags;
this.Categories = categories;
this.OnboardingExperience = onboardingExperience;
+ this.QuizHeaderVideoUrl = quizHeaderVideoUrl;
+ this.QuizLogo = quizLogo;
+ this.QuizCorrectAnswerText = quizCorrectAnswerText;
+ this.QuizHeaderInitialImage = quizHeaderInitialImage;
+ this.QuizHeaderAnsweredImage = quizHeaderAnsweredImage;
}
- ///
- /// URL of the quiz header video
- ///
- /// URL of the quiz header video
- [DataMember(Name = "quiz_header_video_url", EmitDefaultValue = false)]
- public string QuizHeaderVideoUrl { get; set; }
-
- ///
- /// URL of the quiz logo
- ///
- /// URL of the quiz logo
- [DataMember(Name = "quiz_logo", EmitDefaultValue = false)]
- public string QuizLogo { get; set; }
-
- ///
- /// The quiz question
- ///
- /// The quiz question
- [DataMember(Name = "quiz_question", IsRequired = true, EmitDefaultValue = true)]
- public string QuizQuestion { get; set; }
-
- ///
- /// Quiz answers to display
- ///
- /// Quiz answers to display
- [DataMember(Name = "quiz_answers", IsRequired = true, EmitDefaultValue = true)]
- public List QuizAnswers { get; set; }
-
- ///
- /// Quiz correct answers
- ///
- /// Quiz correct answers
- [DataMember(Name = "quiz_correct_answers", IsRequired = true, EmitDefaultValue = true)]
- public List QuizCorrectAnswers { get; set; }
-
- ///
- /// The text to display when the user answers the quiz correctly
- ///
- /// The text to display when the user answers the quiz correctly
- [DataMember(Name = "quiz_correct_answer_text", EmitDefaultValue = false)]
- public string QuizCorrectAnswerText { get; set; }
-
- ///
- /// The initial image for the quiz header
- ///
- /// The initial image for the quiz header
- [DataMember(Name = "quiz_header_initial_image", EmitDefaultValue = false)]
- public string QuizHeaderInitialImage { get; set; }
-
- ///
- /// The image to display when the user answers the quiz correctly
- ///
- /// The image to display when the user answers the quiz correctly
- [DataMember(Name = "quiz_header_answered_image", EmitDefaultValue = false)]
- public string QuizHeaderAnsweredImage { get; set; }
-
///
/// Feed item ID
///
@@ -178,6 +136,13 @@ protected FeedItemQuiz() { }
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }
+ ///
+ /// Feed item name
+ ///
+ /// Feed item name
+ [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
+ public string Name { get; set; }
+
///
/// Quest ID
///
@@ -206,6 +171,13 @@ protected FeedItemQuiz() { }
[DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)]
public int GemsEarnable { get; set; }
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
+ public string Status { get; set; }
+
///
/// If the quest is bypassed, the user will not be able to see it on the feed
///
@@ -262,6 +234,62 @@ protected FeedItemQuiz() { }
[DataMember(Name = "onboarding_experience", EmitDefaultValue = false)]
public string OnboardingExperience { get; set; }
+ ///
+ /// URL of the quiz header video
+ ///
+ /// URL of the quiz header video
+ [DataMember(Name = "quiz_header_video_url", EmitDefaultValue = false)]
+ public string QuizHeaderVideoUrl { get; set; }
+
+ ///
+ /// URL of the quiz logo
+ ///
+ /// URL of the quiz logo
+ [DataMember(Name = "quiz_logo", EmitDefaultValue = false)]
+ public string QuizLogo { get; set; }
+
+ ///
+ /// The quiz question
+ ///
+ /// The quiz question
+ [DataMember(Name = "quiz_question", IsRequired = true, EmitDefaultValue = true)]
+ public string QuizQuestion { get; set; }
+
+ ///
+ /// Quiz answers to display
+ ///
+ /// Quiz answers to display
+ [DataMember(Name = "quiz_answers", IsRequired = true, EmitDefaultValue = true)]
+ public List QuizAnswers { get; set; }
+
+ ///
+ /// Quiz correct answers
+ ///
+ /// Quiz correct answers
+ [DataMember(Name = "quiz_correct_answers", IsRequired = true, EmitDefaultValue = true)]
+ public List QuizCorrectAnswers { get; set; }
+
+ ///
+ /// The text to display when the user answers the quiz correctly
+ ///
+ /// The text to display when the user answers the quiz correctly
+ [DataMember(Name = "quiz_correct_answer_text", EmitDefaultValue = false)]
+ public string QuizCorrectAnswerText { get; set; }
+
+ ///
+ /// The initial image for the quiz header
+ ///
+ /// The initial image for the quiz header
+ [DataMember(Name = "quiz_header_initial_image", EmitDefaultValue = false)]
+ public string QuizHeaderInitialImage { get; set; }
+
+ ///
+ /// The image to display when the user answers the quiz correctly
+ ///
+ /// The image to display when the user answers the quiz correctly
+ [DataMember(Name = "quiz_header_answered_image", EmitDefaultValue = false)]
+ public string QuizHeaderAnsweredImage { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -270,19 +298,13 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class FeedItemQuiz {\n");
- sb.Append(" QuizHeaderVideoUrl: ").Append(QuizHeaderVideoUrl).Append("\n");
- sb.Append(" QuizLogo: ").Append(QuizLogo).Append("\n");
- sb.Append(" QuizQuestion: ").Append(QuizQuestion).Append("\n");
- sb.Append(" QuizAnswers: ").Append(QuizAnswers).Append("\n");
- sb.Append(" QuizCorrectAnswers: ").Append(QuizCorrectAnswers).Append("\n");
- sb.Append(" QuizCorrectAnswerText: ").Append(QuizCorrectAnswerText).Append("\n");
- sb.Append(" QuizHeaderInitialImage: ").Append(QuizHeaderInitialImage).Append("\n");
- sb.Append(" QuizHeaderAnsweredImage: ").Append(QuizHeaderAnsweredImage).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" QuestId: ").Append(QuestId).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" Bypass: ").Append(Bypass).Append("\n");
sb.Append(" DayZero: ").Append(DayZero).Append("\n");
sb.Append(" GameId: ").Append(GameId).Append("\n");
@@ -291,6 +313,14 @@ public override string ToString()
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Categories: ").Append(Categories).Append("\n");
sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n");
+ sb.Append(" QuizHeaderVideoUrl: ").Append(QuizHeaderVideoUrl).Append("\n");
+ sb.Append(" QuizLogo: ").Append(QuizLogo).Append("\n");
+ sb.Append(" QuizQuestion: ").Append(QuizQuestion).Append("\n");
+ sb.Append(" QuizAnswers: ").Append(QuizAnswers).Append("\n");
+ sb.Append(" QuizCorrectAnswers: ").Append(QuizCorrectAnswers).Append("\n");
+ sb.Append(" QuizCorrectAnswerText: ").Append(QuizCorrectAnswerText).Append("\n");
+ sb.Append(" QuizHeaderInitialImage: ").Append(QuizHeaderInitialImage).Append("\n");
+ sb.Append(" QuizHeaderAnsweredImage: ").Append(QuizHeaderAnsweredImage).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemSignIn.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemSignIn.cs
index cc81df2de..93f6f1a68 100644
--- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemSignIn.cs
+++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemSignIn.cs
@@ -39,17 +39,13 @@ protected FeedItemSignIn() { }
///
/// Initializes a new instance of the class.
///
- /// The URL to redirect to when the user completes the sign in quest (required).
- /// The background for the sign in quest (required).
- /// The label for the CTA button (required).
- /// The description for the CTA button (required).
- /// The URL for the CTA button (required).
- /// The image for the CTA background (required).
/// Feed item ID (required).
+ /// Feed item name (required).
/// Quest ID (required).
/// Feed item priority (required).
/// Feed item type (required).
/// Amount of gems earnable when user completes the quest (required).
+ /// Feed item status, e.g., enabled, disabled, archived, deleted (required).
/// If the quest is bypassed, the user will not be able to see it on the feed.
/// If the quest is a day0 quest.
/// Game ID.
@@ -58,20 +54,46 @@ protected FeedItemSignIn() { }
/// The tags for the feed item.
/// The categories for the feed item.
/// The onboarding experience for the feed item.
- public FeedItemSignIn(string signInRedirectUrl = default(string), string signInBackground = default(string), string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string), string id = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string))
+ /// The label for the CTA button (required).
+ /// The description for the CTA button (required).
+ /// The URL for the CTA button (required).
+ /// The image for the CTA background (required).
+ /// The URL to redirect to when the user completes the sign in quest (required).
+ /// The background for the sign in quest (required).
+ public FeedItemSignIn(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string), string signInRedirectUrl = default(string), string signInBackground = default(string))
{
- // to ensure "signInRedirectUrl" is required (not null)
- if (signInRedirectUrl == null)
+ // to ensure "id" is required (not null)
+ if (id == null)
{
- throw new ArgumentNullException("signInRedirectUrl is a required property for FeedItemSignIn and cannot be null");
+ throw new ArgumentNullException("id is a required property for FeedItemSignIn and cannot be null");
}
- this.SignInRedirectUrl = signInRedirectUrl;
- // to ensure "signInBackground" is required (not null)
- if (signInBackground == null)
+ this.Id = id;
+ // to ensure "name" is required (not null)
+ if (name == null)
{
- throw new ArgumentNullException("signInBackground is a required property for FeedItemSignIn and cannot be null");
+ throw new ArgumentNullException("name is a required property for FeedItemSignIn and cannot be null");
}
- this.SignInBackground = signInBackground;
+ this.Name = name;
+ // to ensure "questId" is required (not null)
+ if (questId == null)
+ {
+ throw new ArgumentNullException("questId is a required property for FeedItemSignIn and cannot be null");
+ }
+ this.QuestId = questId;
+ this.Priority = priority;
+ // to ensure "type" is required (not null)
+ if (type == null)
+ {
+ throw new ArgumentNullException("type is a required property for FeedItemSignIn and cannot be null");
+ }
+ this.Type = type;
+ this.GemsEarnable = gemsEarnable;
+ // to ensure "status" is required (not null)
+ if (status == null)
+ {
+ throw new ArgumentNullException("status is a required property for FeedItemSignIn and cannot be null");
+ }
+ this.Status = status;
// to ensure "ctaLabel" is required (not null)
if (ctaLabel == null)
{
@@ -96,26 +118,18 @@ protected FeedItemSignIn() { }
throw new ArgumentNullException("ctaImage is a required property for FeedItemSignIn and cannot be null");
}
this.CtaImage = ctaImage;
- // to ensure "id" is required (not null)
- if (id == null)
- {
- throw new ArgumentNullException("id is a required property for FeedItemSignIn and cannot be null");
- }
- this.Id = id;
- // to ensure "questId" is required (not null)
- if (questId == null)
+ // to ensure "signInRedirectUrl" is required (not null)
+ if (signInRedirectUrl == null)
{
- throw new ArgumentNullException("questId is a required property for FeedItemSignIn and cannot be null");
+ throw new ArgumentNullException("signInRedirectUrl is a required property for FeedItemSignIn and cannot be null");
}
- this.QuestId = questId;
- this.Priority = priority;
- // to ensure "type" is required (not null)
- if (type == null)
+ this.SignInRedirectUrl = signInRedirectUrl;
+ // to ensure "signInBackground" is required (not null)
+ if (signInBackground == null)
{
- throw new ArgumentNullException("type is a required property for FeedItemSignIn and cannot be null");
+ throw new ArgumentNullException("signInBackground is a required property for FeedItemSignIn and cannot be null");
}
- this.Type = type;
- this.GemsEarnable = gemsEarnable;
+ this.SignInBackground = signInBackground;
this.Bypass = bypass;
this.DayZero = dayZero;
this.GameId = gameId;
@@ -126,48 +140,6 @@ protected FeedItemSignIn() { }
this.OnboardingExperience = onboardingExperience;
}
- ///
- /// The URL to redirect to when the user completes the sign in quest
- ///
- /// The URL to redirect to when the user completes the sign in quest
- [DataMember(Name = "sign_in_redirect_url", IsRequired = true, EmitDefaultValue = true)]
- public string SignInRedirectUrl { get; set; }
-
- ///
- /// The background for the sign in quest
- ///
- /// The background for the sign in quest
- [DataMember(Name = "sign_in_background", IsRequired = true, EmitDefaultValue = true)]
- public string SignInBackground { get; set; }
-
- ///
- /// The label for the CTA button
- ///
- /// The label for the CTA button
- [DataMember(Name = "cta_label", IsRequired = true, EmitDefaultValue = true)]
- public string CtaLabel { get; set; }
-
- ///
- /// The description for the CTA button
- ///
- /// The description for the CTA button
- [DataMember(Name = "cta_description", IsRequired = true, EmitDefaultValue = true)]
- public string CtaDescription { get; set; }
-
- ///
- /// The URL for the CTA button
- ///
- /// The URL for the CTA button
- [DataMember(Name = "cta_url", IsRequired = true, EmitDefaultValue = true)]
- public string CtaUrl { get; set; }
-
- ///
- /// The image for the CTA background
- ///
- /// The image for the CTA background
- [DataMember(Name = "cta_image", IsRequired = true, EmitDefaultValue = true)]
- public string CtaImage { get; set; }
-
///
/// Feed item ID
///
@@ -175,6 +147,13 @@ protected FeedItemSignIn() { }
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }
+ ///
+ /// Feed item name
+ ///
+ /// Feed item name
+ [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
+ public string Name { get; set; }
+
///
/// Quest ID
///
@@ -203,6 +182,13 @@ protected FeedItemSignIn() { }
[DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)]
public int GemsEarnable { get; set; }
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
+ public string Status { get; set; }
+
///
/// If the quest is bypassed, the user will not be able to see it on the feed
///
@@ -259,6 +245,48 @@ protected FeedItemSignIn() { }
[DataMember(Name = "onboarding_experience", EmitDefaultValue = false)]
public string OnboardingExperience { get; set; }
+ ///
+ /// The label for the CTA button
+ ///
+ /// The label for the CTA button
+ [DataMember(Name = "cta_label", IsRequired = true, EmitDefaultValue = true)]
+ public string CtaLabel { get; set; }
+
+ ///
+ /// The description for the CTA button
+ ///
+ /// The description for the CTA button
+ [DataMember(Name = "cta_description", IsRequired = true, EmitDefaultValue = true)]
+ public string CtaDescription { get; set; }
+
+ ///
+ /// The URL for the CTA button
+ ///
+ /// The URL for the CTA button
+ [DataMember(Name = "cta_url", IsRequired = true, EmitDefaultValue = true)]
+ public string CtaUrl { get; set; }
+
+ ///
+ /// The image for the CTA background
+ ///
+ /// The image for the CTA background
+ [DataMember(Name = "cta_image", IsRequired = true, EmitDefaultValue = true)]
+ public string CtaImage { get; set; }
+
+ ///
+ /// The URL to redirect to when the user completes the sign in quest
+ ///
+ /// The URL to redirect to when the user completes the sign in quest
+ [DataMember(Name = "sign_in_redirect_url", IsRequired = true, EmitDefaultValue = true)]
+ public string SignInRedirectUrl { get; set; }
+
+ ///
+ /// The background for the sign in quest
+ ///
+ /// The background for the sign in quest
+ [DataMember(Name = "sign_in_background", IsRequired = true, EmitDefaultValue = true)]
+ public string SignInBackground { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -267,17 +295,13 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class FeedItemSignIn {\n");
- sb.Append(" SignInRedirectUrl: ").Append(SignInRedirectUrl).Append("\n");
- sb.Append(" SignInBackground: ").Append(SignInBackground).Append("\n");
- sb.Append(" CtaLabel: ").Append(CtaLabel).Append("\n");
- sb.Append(" CtaDescription: ").Append(CtaDescription).Append("\n");
- sb.Append(" CtaUrl: ").Append(CtaUrl).Append("\n");
- sb.Append(" CtaImage: ").Append(CtaImage).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" QuestId: ").Append(QuestId).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" Bypass: ").Append(Bypass).Append("\n");
sb.Append(" DayZero: ").Append(DayZero).Append("\n");
sb.Append(" GameId: ").Append(GameId).Append("\n");
@@ -286,6 +310,12 @@ public override string ToString()
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Categories: ").Append(Categories).Append("\n");
sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n");
+ sb.Append(" CtaLabel: ").Append(CtaLabel).Append("\n");
+ sb.Append(" CtaDescription: ").Append(CtaDescription).Append("\n");
+ sb.Append(" CtaUrl: ").Append(CtaUrl).Append("\n");
+ sb.Append(" CtaImage: ").Append(CtaImage).Append("\n");
+ sb.Append(" SignInRedirectUrl: ").Append(SignInRedirectUrl).Append("\n");
+ sb.Append(" SignInBackground: ").Append(SignInBackground).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemVideo.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemVideo.cs
index c646aeda0..824edc6ff 100644
--- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemVideo.cs
+++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemVideo.cs
@@ -39,13 +39,13 @@ protected FeedItemVideo() { }
///
/// Initializes a new instance of the class.
///
- /// Title of the video (required).
- /// URL of the video (required).
/// Feed item ID (required).
+ /// Feed item name (required).
/// Quest ID (required).
/// Feed item priority (required).
/// Feed item type (required).
/// Amount of gems earnable when user completes the quest (required).
+ /// Feed item status, e.g., enabled, disabled, archived, deleted (required).
/// If the quest is bypassed, the user will not be able to see it on the feed.
/// If the quest is a day0 quest.
/// Game ID.
@@ -54,26 +54,22 @@ protected FeedItemVideo() { }
/// The tags for the feed item.
/// The categories for the feed item.
/// The onboarding experience for the feed item.
- public FeedItemVideo(string videoTitle = default(string), string videoUrl = default(string), string id = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string))
+ /// Title of the video (required).
+ /// URL of the video (required).
+ public FeedItemVideo(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), string videoTitle = default(string), string videoUrl = default(string))
{
- // to ensure "videoTitle" is required (not null)
- if (videoTitle == null)
- {
- throw new ArgumentNullException("videoTitle is a required property for FeedItemVideo and cannot be null");
- }
- this.VideoTitle = videoTitle;
- // to ensure "videoUrl" is required (not null)
- if (videoUrl == null)
- {
- throw new ArgumentNullException("videoUrl is a required property for FeedItemVideo and cannot be null");
- }
- this.VideoUrl = videoUrl;
// to ensure "id" is required (not null)
if (id == null)
{
throw new ArgumentNullException("id is a required property for FeedItemVideo and cannot be null");
}
this.Id = id;
+ // to ensure "name" is required (not null)
+ if (name == null)
+ {
+ throw new ArgumentNullException("name is a required property for FeedItemVideo and cannot be null");
+ }
+ this.Name = name;
// to ensure "questId" is required (not null)
if (questId == null)
{
@@ -88,6 +84,24 @@ protected FeedItemVideo() { }
}
this.Type = type;
this.GemsEarnable = gemsEarnable;
+ // to ensure "status" is required (not null)
+ if (status == null)
+ {
+ throw new ArgumentNullException("status is a required property for FeedItemVideo and cannot be null");
+ }
+ this.Status = status;
+ // to ensure "videoTitle" is required (not null)
+ if (videoTitle == null)
+ {
+ throw new ArgumentNullException("videoTitle is a required property for FeedItemVideo and cannot be null");
+ }
+ this.VideoTitle = videoTitle;
+ // to ensure "videoUrl" is required (not null)
+ if (videoUrl == null)
+ {
+ throw new ArgumentNullException("videoUrl is a required property for FeedItemVideo and cannot be null");
+ }
+ this.VideoUrl = videoUrl;
this.Bypass = bypass;
this.DayZero = dayZero;
this.GameId = gameId;
@@ -98,20 +112,6 @@ protected FeedItemVideo() { }
this.OnboardingExperience = onboardingExperience;
}
- ///
- /// Title of the video
- ///
- /// Title of the video
- [DataMember(Name = "video_title", IsRequired = true, EmitDefaultValue = true)]
- public string VideoTitle { get; set; }
-
- ///
- /// URL of the video
- ///
- /// URL of the video
- [DataMember(Name = "video_url", IsRequired = true, EmitDefaultValue = true)]
- public string VideoUrl { get; set; }
-
///
/// Feed item ID
///
@@ -119,6 +119,13 @@ protected FeedItemVideo() { }
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }
+ ///
+ /// Feed item name
+ ///
+ /// Feed item name
+ [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
+ public string Name { get; set; }
+
///
/// Quest ID
///
@@ -147,6 +154,13 @@ protected FeedItemVideo() { }
[DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)]
public int GemsEarnable { get; set; }
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ ///
+ /// Feed item status, e.g., enabled, disabled, archived, deleted
+ [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
+ public string Status { get; set; }
+
///
/// If the quest is bypassed, the user will not be able to see it on the feed
///
@@ -203,6 +217,20 @@ protected FeedItemVideo() { }
[DataMember(Name = "onboarding_experience", EmitDefaultValue = false)]
public string OnboardingExperience { get; set; }
+ ///
+ /// Title of the video
+ ///
+ /// Title of the video
+ [DataMember(Name = "video_title", IsRequired = true, EmitDefaultValue = true)]
+ public string VideoTitle { get; set; }
+
+ ///
+ /// URL of the video
+ ///
+ /// URL of the video
+ [DataMember(Name = "video_url", IsRequired = true, EmitDefaultValue = true)]
+ public string VideoUrl { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -211,13 +239,13 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class FeedItemVideo {\n");
- sb.Append(" VideoTitle: ").Append(VideoTitle).Append("\n");
- sb.Append(" VideoUrl: ").Append(VideoUrl).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" QuestId: ").Append(QuestId).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" Bypass: ").Append(Bypass).Append("\n");
sb.Append(" DayZero: ").Append(DayZero).Append("\n");
sb.Append(" GameId: ").Append(GameId).Append("\n");
@@ -226,6 +254,8 @@ public override string ToString()
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Categories: ").Append(Categories).Append("\n");
sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n");
+ sb.Append(" VideoTitle: ").Append(VideoTitle).Append("\n");
+ sb.Append(" VideoUrl: ").Append(VideoUrl).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
diff --git a/src/Packages/ZkEvmApi/api~/openapi.yaml b/src/Packages/ZkEvmApi/api~/openapi.yaml
index d257f1912..82a911797 100644
--- a/src/Packages/ZkEvmApi/api~/openapi.yaml
+++ b/src/Packages/ZkEvmApi/api~/openapi.yaml
@@ -8979,6 +8979,9 @@ components:
id:
description: Feed item ID
type: string
+ name:
+ description: Feed item name
+ type: string
quest_id:
description: Quest ID
type: string
@@ -8991,6 +8994,9 @@ components:
gems_earnable:
description: Amount of gems earnable when user completes the quest
type: integer
+ status:
+ description: "Feed item status, e.g., enabled, disabled, archived, deleted"
+ type: string
bypass:
description: "If the quest is bypassed, the user will not be able to see\
\ it on the feed"
@@ -9024,98 +9030,100 @@ components:
required:
- gems_earnable
- id
+ - name
- priority
- quest_id
+ - status
- type
type: object
FeedItemVideo:
allOf:
- $ref: '#/components/schemas/FeedItemBase'
- properties:
- video_title:
- description: Title of the video
- type: string
- video_url:
- description: URL of the video
- type: string
- required:
- - video_title
- - video_url
- type: object
+ - type: object
+ - properties:
+ video_title:
+ description: Title of the video
+ type: string
+ video_url:
+ description: URL of the video
+ type: string
+ required:
+ - video_title
+ - video_url
FeedItemQuiz:
allOf:
- $ref: '#/components/schemas/FeedItemBase'
- properties:
- quiz_header_video_url:
- description: URL of the quiz header video
- type: string
- quiz_logo:
- description: URL of the quiz logo
- type: string
- quiz_question:
- description: The quiz question
- type: string
- quiz_answers:
- description: Quiz answers to display
- items:
+ - type: object
+ - properties:
+ quiz_header_video_url:
+ description: URL of the quiz header video
type: string
- type: array
- quiz_correct_answers:
- description: Quiz correct answers
- items:
- type: integer
- type: array
- quiz_correct_answer_text:
- description: The text to display when the user answers the quiz correctly
- type: string
- quiz_header_initial_image:
- description: The initial image for the quiz header
- type: string
- quiz_header_answered_image:
- description: The image to display when the user answers the quiz correctly
- type: string
- required:
- - quiz_answers
- - quiz_correct_answers
- - quiz_question
- type: object
+ quiz_logo:
+ description: URL of the quiz logo
+ type: string
+ quiz_question:
+ description: The quiz question
+ type: string
+ quiz_answers:
+ description: Quiz answers to display
+ items:
+ type: string
+ type: array
+ quiz_correct_answers:
+ description: Quiz correct answers
+ items:
+ type: integer
+ type: array
+ quiz_correct_answer_text:
+ description: The text to display when the user answers the quiz correctly
+ type: string
+ quiz_header_initial_image:
+ description: The initial image for the quiz header
+ type: string
+ quiz_header_answered_image:
+ description: The image to display when the user answers the quiz correctly
+ type: string
+ required:
+ - quiz_answers
+ - quiz_correct_answers
+ - quiz_question
FeedItemCTA:
allOf:
- $ref: '#/components/schemas/FeedItemBase'
- properties:
- cta_label:
- description: The label for the CTA button
- type: string
- cta_description:
- description: The description for the CTA button
- type: string
- cta_url:
- description: The URL for the CTA button
- type: string
- cta_image:
- description: The image for the CTA background
- type: string
- required:
- - cta_description
- - cta_image
- - cta_label
- - cta_url
- type: object
+ - type: object
+ - properties:
+ cta_label:
+ description: The label for the CTA button
+ type: string
+ cta_description:
+ description: The description for the CTA button
+ type: string
+ cta_url:
+ description: The URL for the CTA button
+ type: string
+ cta_image:
+ description: The image for the CTA background
+ type: string
+ required:
+ - cta_description
+ - cta_image
+ - cta_label
+ - cta_url
FeedItemSignIn:
allOf:
- $ref: '#/components/schemas/FeedItemCTA'
- properties:
- sign_in_redirect_url:
- description: The URL to redirect to when the user completes the sign in
- quest
- type: string
- sign_in_background:
- description: The background for the sign in quest
- type: string
- required:
- - sign_in_background
- - sign_in_redirect_url
- type: object
+ - type: object
+ - properties:
+ sign_in_redirect_url:
+ description: The URL to redirect to when the user completes the sign in
+ quest
+ type: string
+ sign_in_background:
+ description: The background for the sign in quest
+ type: string
+ required:
+ - sign_in_background
+ - sign_in_redirect_url
FilterValue:
example:
- value: Common