@aepstore-dev/contracts 1.42.1 → 1.44.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/package.json CHANGED
@@ -1,26 +1,17 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.42.1",
3
+ "version": "1.44.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
- "main": "./dist/src/index.js",
6
- "types": "./dist/src/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/src/index.d.ts",
10
- "default": "./dist/src/index.js"
11
- },
12
- "./gen/*": {
13
- "types": "./dist/gen/*.d.ts",
14
- "default": "./dist/gen/*.js"
15
- }
16
- },
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
17
7
  "scripts": {
18
8
  "generate": "node scripts/generate.cjs",
19
- "build": "tsc -p tsconfig.build.json"
9
+ "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.gen.json"
20
10
  },
21
11
  "files": [
22
12
  "dist",
23
- "proto"
13
+ "proto",
14
+ "gen"
24
15
  ],
25
16
  "publishConfig": {
26
17
  "access": "public"
@@ -18,6 +18,7 @@ service SupportService {
18
18
  rpc ListTickets(ListTicketsRequest) returns (TicketsListResponse);
19
19
  rpc AssignTicket(AssignTicketRequest) returns (Ticket);
20
20
  rpc SetTicketStatus(SetTicketStatusRequest) returns (Ticket);
21
+ rpc DeleteTicket(DeleteTicketRequest) returns (Ticket);
21
22
  }
22
23
 
23
24
  message PingRequest { string message = 1; }
@@ -37,6 +38,13 @@ message Ticket {
37
38
  string created_at = 11;
38
39
  string updated_at = 12;
39
40
  int32 messages_count = 13;
41
+ string department = 14; // GENERAL|TECHNICAL|SALES
42
+ string product_category_id = 15; // optional
43
+ string related_product_id = 16; // optional
44
+ string related_product_type = 17; // PURCHASED|SELLING
45
+ bool rules_accepted = 18;
46
+ string rules_accepted_at = 19;
47
+ string deleted_at = 20;
40
48
  }
41
49
 
42
50
  message TicketMessage {
@@ -61,6 +69,12 @@ message CreateTicketRequest {
61
69
  string body = 4; // first message
62
70
  string purchase_id = 5; // optional
63
71
  string withdrawal_id = 6; // optional
72
+ string priority = 7; // LOW|NORMAL|HIGH|URGENT
73
+ string department = 8; // GENERAL|TECHNICAL|SALES
74
+ string product_category_id = 9; // optional
75
+ string related_product_id = 10; // optional
76
+ string related_product_type = 11; // PURCHASED|SELLING
77
+ bool rules_accepted = 12;
64
78
  }
65
79
 
66
80
  message GetTicketRequest {
@@ -109,7 +123,10 @@ message SetTicketStatusRequest {
109
123
  string status = 2;
110
124
  string admin_id = 3;
111
125
  }
112
-
126
+ message DeleteTicketRequest {
127
+ string ticket_id = 1;
128
+ string admin_id = 2;
129
+ }
113
130
  message TicketsListResponse {
114
131
  repeated Ticket items = 1;
115
132
  int32 total = 2;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes