-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScrapeGraphAI.Models.ScrapeRequestDB.g.cs
More file actions
158 lines (141 loc) · 5.43 KB
/
Copy pathScrapeGraphAI.Models.ScrapeRequestDB.g.cs
File metadata and controls
158 lines (141 loc) · 5.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#nullable enable
namespace ScrapeGraphAI
{
/// <summary>
/// DynamoDB model for scrape requests.
/// </summary>
public sealed partial class ScrapeRequestDB
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("request_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Guid RequestId { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("user_id")]
public global::System.Guid? UserId { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("website_url")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string WebsiteUrl { get; set; }
/// <summary>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("render_heavy_js")]
public bool? RenderHeavyJs { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("result")]
public string? Result { get; set; }
/// <summary>
/// Status of a scrape request.<br/>
/// Default Value: queued
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::ScrapeGraphAI.JsonConverters.ScrapeStatusJsonConverter))]
public global::ScrapeGraphAI.ScrapeStatus? Status { get; set; }
/// <summary>
/// Default Value: {}
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("metadata")]
public object? Metadata { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("error")]
public string? Error { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("finished_at")]
public global::System.DateTime? FinishedAt { get; set; }
/// <summary>
/// Default Value: 2026-06-25T13:15:45.421012
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("requested_at")]
public global::System.DateTime? RequestedAt { get; set; }
/// <summary>
/// Default Value: 0
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("cost")]
public int? Cost { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("request_params")]
public object? RequestParams { get; set; }
/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
/// <summary>
/// Initializes a new instance of the <see cref="ScrapeRequestDB" /> class.
/// </summary>
/// <param name="requestId"></param>
/// <param name="websiteUrl"></param>
/// <param name="userId"></param>
/// <param name="renderHeavyJs">
/// Default Value: false
/// </param>
/// <param name="result"></param>
/// <param name="status">
/// Status of a scrape request.<br/>
/// Default Value: queued
/// </param>
/// <param name="metadata">
/// Default Value: {}
/// </param>
/// <param name="error"></param>
/// <param name="finishedAt"></param>
/// <param name="requestedAt">
/// Default Value: 2026-06-25T13:15:45.421012
/// </param>
/// <param name="cost">
/// Default Value: 0
/// </param>
/// <param name="requestParams"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ScrapeRequestDB(
global::System.Guid requestId,
string websiteUrl,
global::System.Guid? userId,
bool? renderHeavyJs,
string? result,
global::ScrapeGraphAI.ScrapeStatus? status,
object? metadata,
string? error,
global::System.DateTime? finishedAt,
global::System.DateTime? requestedAt,
int? cost,
object? requestParams)
{
this.RequestId = requestId;
this.UserId = userId;
this.WebsiteUrl = websiteUrl ?? throw new global::System.ArgumentNullException(nameof(websiteUrl));
this.RenderHeavyJs = renderHeavyJs;
this.Result = result;
this.Status = status;
this.Metadata = metadata;
this.Error = error;
this.FinishedAt = finishedAt;
this.RequestedAt = requestedAt;
this.Cost = cost;
this.RequestParams = requestParams;
}
/// <summary>
/// Initializes a new instance of the <see cref="ScrapeRequestDB" /> class.
/// </summary>
public ScrapeRequestDB()
{
}
}
}