ds_types.anubis
4.96 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
/*
* Created by PyramIDE.
* User: フランスのトトロ aka (David RENÉ)
* Date: 07/02/2017
* Time: 23:05
* © David RENÉ
*/
read densaku_lib/types/densaku.anubis
public define List(DS_Type_File) xlib_types_description =
[ds_type_file( auto, auto,
[
// public type DB_id:
// none,
// db_id(Int value).
ds_type("DB_id", [
enum("none", comment("no database Primary Key ID")),
alternative("db_id", [
component( int, "value", comment("Integer value of the Primary Key ID"))
])
]),
// public type DB_datetime:
// db_datetime(String datetime). //Date and time in ISO8601 format "YYYY-MM-DD hh:mm:ss"
ds_type("DB_datetime", [
alternative("db_datetime", [
component(string, "datetime", comment("Date and time in ISO8601 format \"YYYY-MM-DD hh:mm:ss\""))
])
]),
// public type DB_date:
// db_date(String date). //Date in ISO8601 format "YYYY-MM-DD"
ds_type("DB_date", [
alternative("db_date", [
component(string, "date", comment("Date and time in ISO8601 format \"YYYY-MM-DD\""))
])
]),
// public type DB_time:
// db_time(String time). //Time in ISO8601 format "hh:mm:ss"
ds_type("DB_time", [
alternative("db_time", [
component(string, "time", comment("Date and time in ISO8601 format \"hh:mm:ss\""))
])
]),
// public type DB_integer:
// db_integer(Int value).
// xlib/database/db_types.anubis
ds_type("DB_integer", [
alternative("db_integer", [
component(int, "value", comment("Integer from datatase"))
])
]),
// public type MIME:
// mime(String type,
// String sybtype,
// List(String) file_extensions).
// library/web/mime.anubis
ds_type("MIME", [
alternative("mime", [
component(string, "type"),
component(string, "subtype"),
component(list, string, "file_extensions")
])
]),
ds_type("WEB_Action_Name", [
enum("no_action"),
alternative("controller_action", [
component(string, "controller"),
component(string, "ac_name")
]),
alternative("action_name", [
component(string, "ac_name")
]),
//url is raw action, hence we will only copy that url in final link
alternative("url", comment("url is raw action, hence we will only copy that url in final link"), [
component(string, "url_name", )
])
]),
// public type Email_Address:
// email_address(String name, String address).
//
ds_type("Email_Address", [
alternative("email_address", [
component(string, "name"),
component(string, "address")
])
]),
//public type Email_to_send :
// data_to_send(
// Email_Address from,
// List(Email_Address) to,
// List(Email_Address) cc,
// List(Email_Address) bcc,
// String subject,
// String content,
// List(File_Attached) files,
// Bool send_copy, //send copy to sender by bcc (useful when the email is sent by an automat)
// String from,
// String reply_to
// ).
ds_type("File_ref", [
alternative("file_ref", [
component(string, "path", comment("access ptah to the file on the original machine")),
component(string, "name", comment("name of the file")),
component(ds_type("MIME"), "mime", comment("mime type of the file")),
component(string, "key", comment("key is a SHA1 gave by sender to certify it when it will be downloaded")),
component(int, "size", comment("size of the file in Bytes"))
])
]),
ds_type("Email_to_send", [
alternative("data_to_send", [
component(ds_type("Email_Address"), "from", comment("email sent from that sender")),
component(list, ds_type("Email_Address"), "to", comment("email sent to that list of recipients")),
component(list, ds_type("Email_Address"), "cc", comment("email sent as copy to that list of recipients")),
component(list, ds_type("Email_Address"), "bcc", comment("email sent as blank carbon copy to that list of recipients")),
component(string, "subject", comment("subject of email. Supposed to be UTF8")),
component(string, "text_content", comment("content of the email in text format")),
component(string, "html_content", comment("content of the email in html format")),
component(list, ds_type("File_ref"), "attached_files", comment("list of files to attach to this email")),
component(bool, "send_copy",comment("send copy to sender by bcc (useful when the email is sent by an automat)")),
component(string, "reply_to", comment("reply to !!"))
])
])
]
)]
.