Skip to content

Commit 7ad4c15

Browse files
committed
updated samples
1 parent 1f70e2f commit 7ad4c15

18,939 files changed

Lines changed: 1109793 additions & 161029 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.20.0
1+
7.21.0

OPENAPI-REST-API/openapi-client/ada/src/client/-clients.adb

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- The version of the OpenAPI document: 0.9.0
55
-- Contact: support@interserver.net
66
--
7-
-- NOTE: This package is auto generated by OpenAPI-Generator 7.20.0.
7+
-- NOTE: This package is auto generated by OpenAPI-Generator 7.21.0.
88
-- https://openapi-generator.tech
99
-- Do not edit the class manually.
1010

@@ -2516,6 +2516,22 @@ package body .Clients is
25162516

25172517
-- View Mail Log
25182518
-- Returns a paginated log of emails sent through this mail service, with optional filtering by sender, recipient, date range, and delivery status.
2519+
--
2520+
-- **Row grouping** is controlled by the `groupby` parameter. By default (`groupby=recipient`), the response contains one row per delivery attempt — so a single message sent to 4 recipients produces 4 rows, each with its own `recipient`, `delivered`, `response`, and `mxHostname` values. Set `groupby=message` to collapse to one row per message (delivery fields will reflect one arbitrary recipient).
2521+
--
2522+
-- **Pagination** is controlled by `skip` and `limit`. The `total` in the response reflects the row count **after** grouping, so it matches the number of pages you need to fetch.
2523+
--
2524+
-- **Date filtering** accepts either a Unix timestamp (integer) or a date string parseable by PHP `strtotime()` such as `2024-01-15`, `last monday`, or `2024-01-01 00:00:00`. Examples: `startDate=1704067200&endDate=1706745599` or `startDate=2024-01-01&endDate=2024-01-31`.
2525+
--
2526+
-- **Sorting** is controlled by `sort` and `dir`. Currently the only sort key is `time` (default), which orders by internal row ID.
2527+
--
2528+
-- **Delivery status** can be filtered with the `delivered` parameter: `delivered=1` returns only successfully delivered messages; `delivered=0` returns messages still in queue or that failed.
2529+
--
2530+
-- **Address filtering** distinguishes between the SMTP envelope address (`from`, `to`) and message headers (`headerfrom` for the `From:` header, `replyto` for `Reply-To:`). These may differ when a message is sent on behalf of another address.
2531+
--
2532+
-- The `mailid` parameter corresponds to the `id` field in the returned `MailLogEntry` objects, **not** the `_id` field. It also matches the transaction ID returned in the `text` field of a successful send response.
2533+
--
2534+
-- The `messageId` parameter searches the `Message-ID` email header (case-insensitive substring match).
25192535
procedure View_Mail_Log
25202536
(Client : in out Client_Type;
25212537
Id : in Integer;
@@ -2526,11 +2542,17 @@ package body .Clients is
25262542
To : in Swagger.Nullable_UString;
25272543
Subject : in Swagger.Nullable_UString;
25282544
Mailid : in Swagger.Nullable_UString;
2545+
Message_Id : in Swagger.Nullable_UString;
2546+
Replyto : in Swagger.Nullable_UString;
2547+
Headerfrom : in Swagger.Nullable_UString;
2548+
Delivered : in Swagger.Nullable_Integer;
25292549
Skip : in Swagger.Nullable_Integer;
25302550
Limit : in Swagger.Nullable_Integer;
2531-
Start_Date : in Swagger.Nullable_Long;
2532-
End_Date : in Swagger.Nullable_Long;
2533-
Delivered : in Swagger.Nullable_UString;
2551+
Start_Date : in .Models.ViewMailLogStartDateParameter_Type;
2552+
End_Date : in .Models.ViewMailLogStartDateParameter_Type;
2553+
Sort : in Swagger.Nullable_UString;
2554+
Dir : in Swagger.Nullable_UString;
2555+
Groupby : in Swagger.Nullable_UString;
25342556
Result : out .Models.MailLog_Type) is
25352557
URI : Swagger.Clients.URI_Type;
25362558
Reply : Swagger.Value_Type;
@@ -2545,11 +2567,17 @@ package body .Clients is
25452567
URI.Add_Param ("to", To);
25462568
URI.Add_Param ("subject", Subject);
25472569
URI.Add_Param ("mailid", Mailid);
2570+
URI.Add_Param ("messageId", Message_Id);
2571+
URI.Add_Param ("replyto", Replyto);
2572+
URI.Add_Param ("headerfrom", Headerfrom);
2573+
URI.Add_Param ("delivered", Delivered);
25482574
URI.Add_Param ("skip", Skip);
25492575
URI.Add_Param ("limit", Limit);
2550-
URI.Add_Param ("startDate", Start_Date);
2551-
URI.Add_Param ("endDate", End_Date);
2552-
URI.Add_Param ("delivered", Delivered);
2576+
URI.Add_Param ("startDate", .Models.To_String (Start_Date));
2577+
URI.Add_Param ("endDate", .Models.To_String (End_Date));
2578+
URI.Add_Param ("sort", Sort);
2579+
URI.Add_Param ("dir", Dir);
2580+
URI.Add_Param ("groupby", Groupby);
25532581
URI.Set_Path ("/mail/{id}/log");
25542582
URI.Set_Path_Param ("id", .Models.To_String (Id));
25552583
Client.Call (Swagger.Clients.GET, URI, Reply);

OPENAPI-REST-API/openapi-client/ada/src/client/-clients.ads

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- The version of the OpenAPI document: 0.9.0
55
-- Contact: support@interserver.net
66
--
7-
-- NOTE: This package is auto generated by OpenAPI-Generator 7.20.0.
7+
-- NOTE: This package is auto generated by OpenAPI-Generator 7.21.0.
88
-- https://openapi-generator.tech
99
-- Do not edit the class manually.
1010

@@ -977,6 +977,22 @@ package .Clients is
977977

978978
-- View Mail Log
979979
-- Returns a paginated log of emails sent through this mail service, with optional filtering by sender, recipient, date range, and delivery status.
980+
--
981+
-- **Row grouping** is controlled by the `groupby` parameter. By default (`groupby=recipient`), the response contains one row per delivery attempt — so a single message sent to 4 recipients produces 4 rows, each with its own `recipient`, `delivered`, `response`, and `mxHostname` values. Set `groupby=message` to collapse to one row per message (delivery fields will reflect one arbitrary recipient).
982+
--
983+
-- **Pagination** is controlled by `skip` and `limit`. The `total` in the response reflects the row count **after** grouping, so it matches the number of pages you need to fetch.
984+
--
985+
-- **Date filtering** accepts either a Unix timestamp (integer) or a date string parseable by PHP `strtotime()` such as `2024-01-15`, `last monday`, or `2024-01-01 00:00:00`. Examples: `startDate=1704067200&endDate=1706745599` or `startDate=2024-01-01&endDate=2024-01-31`.
986+
--
987+
-- **Sorting** is controlled by `sort` and `dir`. Currently the only sort key is `time` (default), which orders by internal row ID.
988+
--
989+
-- **Delivery status** can be filtered with the `delivered` parameter: `delivered=1` returns only successfully delivered messages; `delivered=0` returns messages still in queue or that failed.
990+
--
991+
-- **Address filtering** distinguishes between the SMTP envelope address (`from`, `to`) and message headers (`headerfrom` for the `From:` header, `replyto` for `Reply-To:`). These may differ when a message is sent on behalf of another address.
992+
--
993+
-- The `mailid` parameter corresponds to the `id` field in the returned `MailLogEntry` objects, **not** the `_id` field. It also matches the transaction ID returned in the `text` field of a successful send response.
994+
--
995+
-- The `messageId` parameter searches the `Message-ID` email header (case-insensitive substring match).
980996
procedure View_Mail_Log
981997
(Client : in out Client_Type;
982998
Id : in Integer;
@@ -987,11 +1003,17 @@ package .Clients is
9871003
To : in Swagger.Nullable_UString;
9881004
Subject : in Swagger.Nullable_UString;
9891005
Mailid : in Swagger.Nullable_UString;
1006+
Message_Id : in Swagger.Nullable_UString;
1007+
Replyto : in Swagger.Nullable_UString;
1008+
Headerfrom : in Swagger.Nullable_UString;
1009+
Delivered : in Swagger.Nullable_Integer;
9901010
Skip : in Swagger.Nullable_Integer;
9911011
Limit : in Swagger.Nullable_Integer;
992-
Start_Date : in Swagger.Nullable_Long;
993-
End_Date : in Swagger.Nullable_Long;
994-
Delivered : in Swagger.Nullable_UString;
1012+
Start_Date : in .Models.ViewMailLogStartDateParameter_Type;
1013+
End_Date : in .Models.ViewMailLogStartDateParameter_Type;
1014+
Sort : in Swagger.Nullable_UString;
1015+
Dir : in Swagger.Nullable_UString;
1016+
Groupby : in Swagger.Nullable_UString;
9951017
Result : out .Models.MailLog_Type);
9961018

9971019
-- Get Captcha Challenge

0 commit comments

Comments
 (0)