@aepstore-dev/contracts 1.19.0 → 1.21.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.
- package/gen/products.ts +9 -2
- package/package.json +35 -35
- package/proto/activity.proto +195 -195
- package/proto/auth.proto +126 -126
- package/proto/mail.proto +42 -42
- package/proto/payments.proto +203 -203
- package/proto/products.proto +359 -353
- package/proto/support.proto +118 -118
- package/proto/taxonomy.proto +78 -78
- package/proto/upload.proto +150 -150
- package/proto/users.proto +278 -278
package/proto/support.proto
CHANGED
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package support.v1;
|
|
4
|
-
|
|
5
|
-
// Support ticket system (G1). Enums as strings matching the DB
|
|
6
|
-
// (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
|
|
7
|
-
service SupportService {
|
|
8
|
-
rpc Ping(PingRequest) returns (PingResponse); // health
|
|
9
|
-
|
|
10
|
-
// user
|
|
11
|
-
rpc CreateTicket(CreateTicketRequest) returns (Ticket);
|
|
12
|
-
rpc GetTicket(GetTicketRequest) returns (TicketWithMessages);
|
|
13
|
-
rpc ListMyTickets(ListMyTicketsRequest) returns (TicketsListResponse);
|
|
14
|
-
rpc ReplyTicket(ReplyTicketRequest) returns (TicketMessage);
|
|
15
|
-
rpc CloseTicket(CloseTicketRequest) returns (Ticket);
|
|
16
|
-
|
|
17
|
-
// staff/admin
|
|
18
|
-
rpc ListTickets(ListTicketsRequest) returns (TicketsListResponse);
|
|
19
|
-
rpc AssignTicket(AssignTicketRequest) returns (Ticket);
|
|
20
|
-
rpc SetTicketStatus(SetTicketStatusRequest) returns (Ticket);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
message PingRequest { string message = 1; }
|
|
24
|
-
message PingResponse { bool ok = 1; string message = 2; }
|
|
25
|
-
|
|
26
|
-
message Ticket {
|
|
27
|
-
string id = 1;
|
|
28
|
-
string author_id = 2;
|
|
29
|
-
string subject = 3;
|
|
30
|
-
string category = 4; // GENERAL|PAYMENT|WITHDRAWAL|PRODUCT|ACCOUNT|ABUSE|OTHER
|
|
31
|
-
string status = 5; // OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED
|
|
32
|
-
string priority = 6; // LOW|NORMAL|HIGH|URGENT
|
|
33
|
-
string purchase_id = 7;
|
|
34
|
-
string withdrawal_id = 8;
|
|
35
|
-
string assignee_id = 9;
|
|
36
|
-
string last_message_at = 10;
|
|
37
|
-
string created_at = 11;
|
|
38
|
-
string updated_at = 12;
|
|
39
|
-
int32 messages_count = 13;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message TicketMessage {
|
|
43
|
-
string id = 1;
|
|
44
|
-
string ticket_id = 2;
|
|
45
|
-
string author_id = 3;
|
|
46
|
-
string body = 4;
|
|
47
|
-
bool is_staff = 5;
|
|
48
|
-
bool is_internal = 6;
|
|
49
|
-
string created_at = 7;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message TicketWithMessages {
|
|
53
|
-
Ticket ticket = 1;
|
|
54
|
-
repeated TicketMessage messages = 2;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message CreateTicketRequest {
|
|
58
|
-
string author_id = 1;
|
|
59
|
-
string subject = 2;
|
|
60
|
-
string category = 3;
|
|
61
|
-
string body = 4; // first message
|
|
62
|
-
string purchase_id = 5; // optional
|
|
63
|
-
string withdrawal_id = 6; // optional
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message GetTicketRequest {
|
|
67
|
-
string id = 1;
|
|
68
|
-
string requester_id = 2;
|
|
69
|
-
bool is_staff = 3; // staff see internal notes + any ticket
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message ListMyTicketsRequest {
|
|
73
|
-
string author_id = 1;
|
|
74
|
-
string status = 2;
|
|
75
|
-
int32 page = 3;
|
|
76
|
-
int32 limit = 4;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
message ReplyTicketRequest {
|
|
80
|
-
string ticket_id = 1;
|
|
81
|
-
string author_id = 2;
|
|
82
|
-
string body = 3;
|
|
83
|
-
bool is_staff = 4;
|
|
84
|
-
bool is_internal = 5; // staff-only note
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
message CloseTicketRequest {
|
|
88
|
-
string ticket_id = 1;
|
|
89
|
-
string requester_id = 2;
|
|
90
|
-
bool is_staff = 3;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
message ListTicketsRequest {
|
|
94
|
-
string status = 1;
|
|
95
|
-
string category = 2;
|
|
96
|
-
string assignee_id = 3;
|
|
97
|
-
int32 page = 4;
|
|
98
|
-
int32 limit = 5;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
message AssignTicketRequest {
|
|
102
|
-
string ticket_id = 1;
|
|
103
|
-
string assignee_id = 2; // empty = unassign
|
|
104
|
-
string admin_id = 3;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
message SetTicketStatusRequest {
|
|
108
|
-
string ticket_id = 1;
|
|
109
|
-
string status = 2;
|
|
110
|
-
string admin_id = 3;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
message TicketsListResponse {
|
|
114
|
-
repeated Ticket items = 1;
|
|
115
|
-
int32 total = 2;
|
|
116
|
-
int32 page = 3;
|
|
117
|
-
int32 limit = 4;
|
|
118
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package support.v1;
|
|
4
|
+
|
|
5
|
+
// Support ticket system (G1). Enums as strings matching the DB
|
|
6
|
+
// (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
|
|
7
|
+
service SupportService {
|
|
8
|
+
rpc Ping(PingRequest) returns (PingResponse); // health
|
|
9
|
+
|
|
10
|
+
// user
|
|
11
|
+
rpc CreateTicket(CreateTicketRequest) returns (Ticket);
|
|
12
|
+
rpc GetTicket(GetTicketRequest) returns (TicketWithMessages);
|
|
13
|
+
rpc ListMyTickets(ListMyTicketsRequest) returns (TicketsListResponse);
|
|
14
|
+
rpc ReplyTicket(ReplyTicketRequest) returns (TicketMessage);
|
|
15
|
+
rpc CloseTicket(CloseTicketRequest) returns (Ticket);
|
|
16
|
+
|
|
17
|
+
// staff/admin
|
|
18
|
+
rpc ListTickets(ListTicketsRequest) returns (TicketsListResponse);
|
|
19
|
+
rpc AssignTicket(AssignTicketRequest) returns (Ticket);
|
|
20
|
+
rpc SetTicketStatus(SetTicketStatusRequest) returns (Ticket);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message PingRequest { string message = 1; }
|
|
24
|
+
message PingResponse { bool ok = 1; string message = 2; }
|
|
25
|
+
|
|
26
|
+
message Ticket {
|
|
27
|
+
string id = 1;
|
|
28
|
+
string author_id = 2;
|
|
29
|
+
string subject = 3;
|
|
30
|
+
string category = 4; // GENERAL|PAYMENT|WITHDRAWAL|PRODUCT|ACCOUNT|ABUSE|OTHER
|
|
31
|
+
string status = 5; // OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED
|
|
32
|
+
string priority = 6; // LOW|NORMAL|HIGH|URGENT
|
|
33
|
+
string purchase_id = 7;
|
|
34
|
+
string withdrawal_id = 8;
|
|
35
|
+
string assignee_id = 9;
|
|
36
|
+
string last_message_at = 10;
|
|
37
|
+
string created_at = 11;
|
|
38
|
+
string updated_at = 12;
|
|
39
|
+
int32 messages_count = 13;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message TicketMessage {
|
|
43
|
+
string id = 1;
|
|
44
|
+
string ticket_id = 2;
|
|
45
|
+
string author_id = 3;
|
|
46
|
+
string body = 4;
|
|
47
|
+
bool is_staff = 5;
|
|
48
|
+
bool is_internal = 6;
|
|
49
|
+
string created_at = 7;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message TicketWithMessages {
|
|
53
|
+
Ticket ticket = 1;
|
|
54
|
+
repeated TicketMessage messages = 2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message CreateTicketRequest {
|
|
58
|
+
string author_id = 1;
|
|
59
|
+
string subject = 2;
|
|
60
|
+
string category = 3;
|
|
61
|
+
string body = 4; // first message
|
|
62
|
+
string purchase_id = 5; // optional
|
|
63
|
+
string withdrawal_id = 6; // optional
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message GetTicketRequest {
|
|
67
|
+
string id = 1;
|
|
68
|
+
string requester_id = 2;
|
|
69
|
+
bool is_staff = 3; // staff see internal notes + any ticket
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message ListMyTicketsRequest {
|
|
73
|
+
string author_id = 1;
|
|
74
|
+
string status = 2;
|
|
75
|
+
int32 page = 3;
|
|
76
|
+
int32 limit = 4;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message ReplyTicketRequest {
|
|
80
|
+
string ticket_id = 1;
|
|
81
|
+
string author_id = 2;
|
|
82
|
+
string body = 3;
|
|
83
|
+
bool is_staff = 4;
|
|
84
|
+
bool is_internal = 5; // staff-only note
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message CloseTicketRequest {
|
|
88
|
+
string ticket_id = 1;
|
|
89
|
+
string requester_id = 2;
|
|
90
|
+
bool is_staff = 3;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message ListTicketsRequest {
|
|
94
|
+
string status = 1;
|
|
95
|
+
string category = 2;
|
|
96
|
+
string assignee_id = 3;
|
|
97
|
+
int32 page = 4;
|
|
98
|
+
int32 limit = 5;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message AssignTicketRequest {
|
|
102
|
+
string ticket_id = 1;
|
|
103
|
+
string assignee_id = 2; // empty = unassign
|
|
104
|
+
string admin_id = 3;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message SetTicketStatusRequest {
|
|
108
|
+
string ticket_id = 1;
|
|
109
|
+
string status = 2;
|
|
110
|
+
string admin_id = 3;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message TicketsListResponse {
|
|
114
|
+
repeated Ticket items = 1;
|
|
115
|
+
int32 total = 2;
|
|
116
|
+
int32 page = 3;
|
|
117
|
+
int32 limit = 4;
|
|
118
|
+
}
|
package/proto/taxonomy.proto
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package taxonomy.v1;
|
|
4
|
-
|
|
5
|
-
service TaxonomyService {
|
|
6
|
-
rpc FindAllCategories(Empty) returns (CategoriesListResponse);
|
|
7
|
-
rpc FindAllApplications(Empty) returns (ApplicationsListResponse);
|
|
8
|
-
rpc FindAllTags(QueryTagsRequest) returns (TagsListResponse);
|
|
9
|
-
|
|
10
|
-
rpc CreateCategory(CreateCategoryRequest) returns (CategoryResponse);
|
|
11
|
-
rpc CreateApplication(CreateApplicationRequest) returns (ApplicationResponse);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
message Category {
|
|
15
|
-
string id = 1;
|
|
16
|
-
string name = 2;
|
|
17
|
-
string description = 3;
|
|
18
|
-
string created_at = 4;
|
|
19
|
-
string updated_at = 5;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
message Application {
|
|
23
|
-
string id = 1;
|
|
24
|
-
string name = 2;
|
|
25
|
-
string description = 3;
|
|
26
|
-
string created_at = 4;
|
|
27
|
-
string updated_at = 5;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
message Tag {
|
|
31
|
-
string id = 1;
|
|
32
|
-
string name = 2;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// =================================================================
|
|
36
|
-
// Requests / responses
|
|
37
|
-
// =================================================================
|
|
38
|
-
|
|
39
|
-
message Empty {}
|
|
40
|
-
|
|
41
|
-
message CategoriesListResponse {
|
|
42
|
-
repeated Category items = 1;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
message ApplicationsListResponse {
|
|
46
|
-
repeated Application items = 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message QueryTagsRequest {
|
|
50
|
-
string search = 1;
|
|
51
|
-
int32 page = 2;
|
|
52
|
-
int32 limit = 3;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message TagsListResponse {
|
|
56
|
-
repeated Tag items = 1;
|
|
57
|
-
int32 total = 2;
|
|
58
|
-
int32 page = 3;
|
|
59
|
-
int32 limit = 4;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
message CreateCategoryRequest {
|
|
63
|
-
string name = 1;
|
|
64
|
-
string description = 2;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
message CategoryResponse {
|
|
68
|
-
Category category = 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message CreateApplicationRequest {
|
|
72
|
-
string name = 1;
|
|
73
|
-
string description = 2;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message ApplicationResponse {
|
|
77
|
-
Application application = 1;
|
|
78
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package taxonomy.v1;
|
|
4
|
+
|
|
5
|
+
service TaxonomyService {
|
|
6
|
+
rpc FindAllCategories(Empty) returns (CategoriesListResponse);
|
|
7
|
+
rpc FindAllApplications(Empty) returns (ApplicationsListResponse);
|
|
8
|
+
rpc FindAllTags(QueryTagsRequest) returns (TagsListResponse);
|
|
9
|
+
|
|
10
|
+
rpc CreateCategory(CreateCategoryRequest) returns (CategoryResponse);
|
|
11
|
+
rpc CreateApplication(CreateApplicationRequest) returns (ApplicationResponse);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message Category {
|
|
15
|
+
string id = 1;
|
|
16
|
+
string name = 2;
|
|
17
|
+
string description = 3;
|
|
18
|
+
string created_at = 4;
|
|
19
|
+
string updated_at = 5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message Application {
|
|
23
|
+
string id = 1;
|
|
24
|
+
string name = 2;
|
|
25
|
+
string description = 3;
|
|
26
|
+
string created_at = 4;
|
|
27
|
+
string updated_at = 5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message Tag {
|
|
31
|
+
string id = 1;
|
|
32
|
+
string name = 2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// =================================================================
|
|
36
|
+
// Requests / responses
|
|
37
|
+
// =================================================================
|
|
38
|
+
|
|
39
|
+
message Empty {}
|
|
40
|
+
|
|
41
|
+
message CategoriesListResponse {
|
|
42
|
+
repeated Category items = 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message ApplicationsListResponse {
|
|
46
|
+
repeated Application items = 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message QueryTagsRequest {
|
|
50
|
+
string search = 1;
|
|
51
|
+
int32 page = 2;
|
|
52
|
+
int32 limit = 3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message TagsListResponse {
|
|
56
|
+
repeated Tag items = 1;
|
|
57
|
+
int32 total = 2;
|
|
58
|
+
int32 page = 3;
|
|
59
|
+
int32 limit = 4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message CreateCategoryRequest {
|
|
63
|
+
string name = 1;
|
|
64
|
+
string description = 2;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message CategoryResponse {
|
|
68
|
+
Category category = 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message CreateApplicationRequest {
|
|
72
|
+
string name = 1;
|
|
73
|
+
string description = 2;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message ApplicationResponse {
|
|
77
|
+
Application application = 1;
|
|
78
|
+
}
|