@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/dist/{src/proto → proto}/paths.js +1 -3
- package/gen/activity.ts +270 -0
- package/gen/auth.ts +317 -0
- package/gen/mail.ts +121 -0
- package/gen/payments.ts +828 -0
- package/gen/products.ts +579 -0
- package/{dist/gen → gen}/support.d.ts +28 -0
- package/{dist/gen → gen}/support.js +1 -0
- package/gen/support.ts +252 -0
- package/gen/taxonomy.ts +185 -0
- package/gen/upload.ts +287 -0
- package/gen/users.ts +929 -0
- package/package.json +6 -15
- package/proto/support.proto +18 -1
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/proto → proto}/index.d.ts +0 -0
- /package/dist/{src/proto → proto}/index.js +0 -0
- /package/dist/{src/proto → proto}/paths.d.ts +0 -0
- /package/{dist/gen → gen}/activity.d.ts +0 -0
- /package/{dist/gen → gen}/activity.js +0 -0
- /package/{dist/gen → gen}/auth.d.ts +0 -0
- /package/{dist/gen → gen}/auth.js +0 -0
- /package/{dist/gen → gen}/mail.d.ts +0 -0
- /package/{dist/gen → gen}/mail.js +0 -0
- /package/{dist/gen → gen}/payments.d.ts +0 -0
- /package/{dist/gen → gen}/payments.js +0 -0
- /package/{dist/gen → gen}/products.d.ts +0 -0
- /package/{dist/gen → gen}/products.js +0 -0
- /package/{dist/gen → gen}/taxonomy.d.ts +0 -0
- /package/{dist/gen → gen}/taxonomy.js +0 -0
- /package/{dist/gen → gen}/upload.d.ts +0 -0
- /package/{dist/gen → gen}/upload.js +0 -0
- /package/{dist/gen → gen}/users.d.ts +0 -0
- /package/{dist/gen → gen}/users.js +0 -0
package/gen/support.ts
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.10.1
|
|
4
|
+
// protoc v7.35.0
|
|
5
|
+
// source: support.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
|
+
import { Observable } from "rxjs";
|
|
10
|
+
|
|
11
|
+
export const protobufPackage = "support.v1";
|
|
12
|
+
|
|
13
|
+
export interface PingRequest {
|
|
14
|
+
message: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PingResponse {
|
|
18
|
+
ok: boolean;
|
|
19
|
+
message: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface Ticket {
|
|
23
|
+
id: string;
|
|
24
|
+
authorId: string;
|
|
25
|
+
subject: string;
|
|
26
|
+
/** GENERAL|PAYMENT|WITHDRAWAL|PRODUCT|ACCOUNT|ABUSE|OTHER */
|
|
27
|
+
category: string;
|
|
28
|
+
/** OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED */
|
|
29
|
+
status: string;
|
|
30
|
+
/** LOW|NORMAL|HIGH|URGENT */
|
|
31
|
+
priority: string;
|
|
32
|
+
purchaseId: string;
|
|
33
|
+
withdrawalId: string;
|
|
34
|
+
assigneeId: string;
|
|
35
|
+
lastMessageAt: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
messagesCount: number;
|
|
39
|
+
/** GENERAL|TECHNICAL|SALES */
|
|
40
|
+
department: string;
|
|
41
|
+
/** optional */
|
|
42
|
+
productCategoryId: string;
|
|
43
|
+
/** optional */
|
|
44
|
+
relatedProductId: string;
|
|
45
|
+
/** PURCHASED|SELLING */
|
|
46
|
+
relatedProductType: string;
|
|
47
|
+
rulesAccepted: boolean;
|
|
48
|
+
rulesAcceptedAt: string;
|
|
49
|
+
deletedAt: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface TicketMessage {
|
|
53
|
+
id: string;
|
|
54
|
+
ticketId: string;
|
|
55
|
+
authorId: string;
|
|
56
|
+
body: string;
|
|
57
|
+
isStaff: boolean;
|
|
58
|
+
isInternal: boolean;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface TicketWithMessages {
|
|
63
|
+
ticket: Ticket | undefined;
|
|
64
|
+
messages: TicketMessage[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface CreateTicketRequest {
|
|
68
|
+
authorId: string;
|
|
69
|
+
subject: string;
|
|
70
|
+
category: string;
|
|
71
|
+
/** first message */
|
|
72
|
+
body: string;
|
|
73
|
+
/** optional */
|
|
74
|
+
purchaseId: string;
|
|
75
|
+
/** optional */
|
|
76
|
+
withdrawalId: string;
|
|
77
|
+
/** LOW|NORMAL|HIGH|URGENT */
|
|
78
|
+
priority: string;
|
|
79
|
+
/** GENERAL|TECHNICAL|SALES */
|
|
80
|
+
department: string;
|
|
81
|
+
/** optional */
|
|
82
|
+
productCategoryId: string;
|
|
83
|
+
/** optional */
|
|
84
|
+
relatedProductId: string;
|
|
85
|
+
/** PURCHASED|SELLING */
|
|
86
|
+
relatedProductType: string;
|
|
87
|
+
rulesAccepted: boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface GetTicketRequest {
|
|
91
|
+
id: string;
|
|
92
|
+
requesterId: string;
|
|
93
|
+
/** staff see internal notes + any ticket */
|
|
94
|
+
isStaff: boolean;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface ListMyTicketsRequest {
|
|
98
|
+
authorId: string;
|
|
99
|
+
status: string;
|
|
100
|
+
page: number;
|
|
101
|
+
limit: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface ReplyTicketRequest {
|
|
105
|
+
ticketId: string;
|
|
106
|
+
authorId: string;
|
|
107
|
+
body: string;
|
|
108
|
+
isStaff: boolean;
|
|
109
|
+
/** staff-only note */
|
|
110
|
+
isInternal: boolean;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface CloseTicketRequest {
|
|
114
|
+
ticketId: string;
|
|
115
|
+
requesterId: string;
|
|
116
|
+
isStaff: boolean;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface ListTicketsRequest {
|
|
120
|
+
status: string;
|
|
121
|
+
category: string;
|
|
122
|
+
assigneeId: string;
|
|
123
|
+
page: number;
|
|
124
|
+
limit: number;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface AssignTicketRequest {
|
|
128
|
+
ticketId: string;
|
|
129
|
+
/** empty = unassign */
|
|
130
|
+
assigneeId: string;
|
|
131
|
+
adminId: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface SetTicketStatusRequest {
|
|
135
|
+
ticketId: string;
|
|
136
|
+
status: string;
|
|
137
|
+
adminId: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface DeleteTicketRequest {
|
|
141
|
+
ticketId: string;
|
|
142
|
+
adminId: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface TicketsListResponse {
|
|
146
|
+
items: Ticket[];
|
|
147
|
+
total: number;
|
|
148
|
+
page: number;
|
|
149
|
+
limit: number;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export const SUPPORT_V1_PACKAGE_NAME = "support.v1";
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Support ticket system (G1). Enums as strings matching the DB
|
|
156
|
+
* (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
export interface SupportServiceClient {
|
|
160
|
+
/** health */
|
|
161
|
+
|
|
162
|
+
ping(request: PingRequest): Observable<PingResponse>;
|
|
163
|
+
|
|
164
|
+
/** user */
|
|
165
|
+
|
|
166
|
+
createTicket(request: CreateTicketRequest): Observable<Ticket>;
|
|
167
|
+
|
|
168
|
+
getTicket(request: GetTicketRequest): Observable<TicketWithMessages>;
|
|
169
|
+
|
|
170
|
+
listMyTickets(request: ListMyTicketsRequest): Observable<TicketsListResponse>;
|
|
171
|
+
|
|
172
|
+
replyTicket(request: ReplyTicketRequest): Observable<TicketMessage>;
|
|
173
|
+
|
|
174
|
+
closeTicket(request: CloseTicketRequest): Observable<Ticket>;
|
|
175
|
+
|
|
176
|
+
/** staff/admin */
|
|
177
|
+
|
|
178
|
+
listTickets(request: ListTicketsRequest): Observable<TicketsListResponse>;
|
|
179
|
+
|
|
180
|
+
assignTicket(request: AssignTicketRequest): Observable<Ticket>;
|
|
181
|
+
|
|
182
|
+
setTicketStatus(request: SetTicketStatusRequest): Observable<Ticket>;
|
|
183
|
+
|
|
184
|
+
deleteTicket(request: DeleteTicketRequest): Observable<Ticket>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Support ticket system (G1). Enums as strings matching the DB
|
|
189
|
+
* (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
export interface SupportServiceController {
|
|
193
|
+
/** health */
|
|
194
|
+
|
|
195
|
+
ping(request: PingRequest): Promise<PingResponse> | Observable<PingResponse> | PingResponse;
|
|
196
|
+
|
|
197
|
+
/** user */
|
|
198
|
+
|
|
199
|
+
createTicket(request: CreateTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
|
|
200
|
+
|
|
201
|
+
getTicket(
|
|
202
|
+
request: GetTicketRequest,
|
|
203
|
+
): Promise<TicketWithMessages> | Observable<TicketWithMessages> | TicketWithMessages;
|
|
204
|
+
|
|
205
|
+
listMyTickets(
|
|
206
|
+
request: ListMyTicketsRequest,
|
|
207
|
+
): Promise<TicketsListResponse> | Observable<TicketsListResponse> | TicketsListResponse;
|
|
208
|
+
|
|
209
|
+
replyTicket(request: ReplyTicketRequest): Promise<TicketMessage> | Observable<TicketMessage> | TicketMessage;
|
|
210
|
+
|
|
211
|
+
closeTicket(request: CloseTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
|
|
212
|
+
|
|
213
|
+
/** staff/admin */
|
|
214
|
+
|
|
215
|
+
listTickets(
|
|
216
|
+
request: ListTicketsRequest,
|
|
217
|
+
): Promise<TicketsListResponse> | Observable<TicketsListResponse> | TicketsListResponse;
|
|
218
|
+
|
|
219
|
+
assignTicket(request: AssignTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
|
|
220
|
+
|
|
221
|
+
setTicketStatus(request: SetTicketStatusRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
|
|
222
|
+
|
|
223
|
+
deleteTicket(request: DeleteTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export function SupportServiceControllerMethods() {
|
|
227
|
+
return function (constructor: Function) {
|
|
228
|
+
const grpcMethods: string[] = [
|
|
229
|
+
"ping",
|
|
230
|
+
"createTicket",
|
|
231
|
+
"getTicket",
|
|
232
|
+
"listMyTickets",
|
|
233
|
+
"replyTicket",
|
|
234
|
+
"closeTicket",
|
|
235
|
+
"listTickets",
|
|
236
|
+
"assignTicket",
|
|
237
|
+
"setTicketStatus",
|
|
238
|
+
"deleteTicket",
|
|
239
|
+
];
|
|
240
|
+
for (const method of grpcMethods) {
|
|
241
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
242
|
+
GrpcMethod("SupportService", method)(constructor.prototype[method], method, descriptor);
|
|
243
|
+
}
|
|
244
|
+
const grpcStreamMethods: string[] = [];
|
|
245
|
+
for (const method of grpcStreamMethods) {
|
|
246
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
247
|
+
GrpcStreamMethod("SupportService", method)(constructor.prototype[method], method, descriptor);
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export const SUPPORT_SERVICE_NAME = "SupportService";
|
package/gen/taxonomy.ts
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.10.1
|
|
4
|
+
// protoc v7.35.1
|
|
5
|
+
// source: taxonomy.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
|
+
import { Observable } from "rxjs";
|
|
10
|
+
|
|
11
|
+
export const protobufPackage = "taxonomy.v1";
|
|
12
|
+
|
|
13
|
+
export interface Category {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface Application {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
/** public S3 URL to brand SVG (admin-set), empty if none */
|
|
28
|
+
iconUrl: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface Tag {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface Empty {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CategoriesListResponse {
|
|
40
|
+
items: Category[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface ApplicationsListResponse {
|
|
44
|
+
items: Application[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface QueryTagsRequest {
|
|
48
|
+
search: string;
|
|
49
|
+
page: number;
|
|
50
|
+
limit: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface TagsListResponse {
|
|
54
|
+
items: Tag[];
|
|
55
|
+
total: number;
|
|
56
|
+
page: number;
|
|
57
|
+
limit: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface CreateCategoryRequest {
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface CategoryResponse {
|
|
66
|
+
category: Category | undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface CreateApplicationRequest {
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
iconUrl: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface UpdateApplicationRequest {
|
|
76
|
+
id: string;
|
|
77
|
+
/** optional — empty keeps current */
|
|
78
|
+
name: string;
|
|
79
|
+
/** optional */
|
|
80
|
+
description: string;
|
|
81
|
+
/** optional — empty keeps current */
|
|
82
|
+
iconUrl: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface ApplicationResponse {
|
|
86
|
+
application: Application | undefined;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface CreateIconUploadUrlRequest {
|
|
90
|
+
fileName: string;
|
|
91
|
+
/** e.g. image/svg+xml */
|
|
92
|
+
mimeType: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface IconUploadUrlResponse {
|
|
96
|
+
/** presigned PUT URL — client uploads the SVG bytes here */
|
|
97
|
+
uploadUrl: string;
|
|
98
|
+
/** final public URL to store as Application.iconUrl */
|
|
99
|
+
iconUrl: string;
|
|
100
|
+
fileKey: string;
|
|
101
|
+
expiresIn: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const TAXONOMY_V1_PACKAGE_NAME = "taxonomy.v1";
|
|
105
|
+
|
|
106
|
+
export interface TaxonomyServiceClient {
|
|
107
|
+
findAllCategories(request: Empty): Observable<CategoriesListResponse>;
|
|
108
|
+
|
|
109
|
+
findAllApplications(request: Empty): Observable<ApplicationsListResponse>;
|
|
110
|
+
|
|
111
|
+
findAllTags(request: QueryTagsRequest): Observable<TagsListResponse>;
|
|
112
|
+
|
|
113
|
+
createCategory(request: CreateCategoryRequest): Observable<CategoryResponse>;
|
|
114
|
+
|
|
115
|
+
createApplication(request: CreateApplicationRequest): Observable<ApplicationResponse>;
|
|
116
|
+
|
|
117
|
+
updateApplication(request: UpdateApplicationRequest): Observable<ApplicationResponse>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Mint a presigned PUT URL for an application icon SVG (proxies upload-service,
|
|
121
|
+
* kind=ICON → public/icons/). Client PUTs the bytes to upload_url, then passes
|
|
122
|
+
* icon_url to Create/UpdateApplication.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
createIconUploadUrl(request: CreateIconUploadUrlRequest): Observable<IconUploadUrlResponse>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface TaxonomyServiceController {
|
|
129
|
+
findAllCategories(
|
|
130
|
+
request: Empty,
|
|
131
|
+
): Promise<CategoriesListResponse> | Observable<CategoriesListResponse> | CategoriesListResponse;
|
|
132
|
+
|
|
133
|
+
findAllApplications(
|
|
134
|
+
request: Empty,
|
|
135
|
+
): Promise<ApplicationsListResponse> | Observable<ApplicationsListResponse> | ApplicationsListResponse;
|
|
136
|
+
|
|
137
|
+
findAllTags(request: QueryTagsRequest): Promise<TagsListResponse> | Observable<TagsListResponse> | TagsListResponse;
|
|
138
|
+
|
|
139
|
+
createCategory(
|
|
140
|
+
request: CreateCategoryRequest,
|
|
141
|
+
): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
142
|
+
|
|
143
|
+
createApplication(
|
|
144
|
+
request: CreateApplicationRequest,
|
|
145
|
+
): Promise<ApplicationResponse> | Observable<ApplicationResponse> | ApplicationResponse;
|
|
146
|
+
|
|
147
|
+
updateApplication(
|
|
148
|
+
request: UpdateApplicationRequest,
|
|
149
|
+
): Promise<ApplicationResponse> | Observable<ApplicationResponse> | ApplicationResponse;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Mint a presigned PUT URL for an application icon SVG (proxies upload-service,
|
|
153
|
+
* kind=ICON → public/icons/). Client PUTs the bytes to upload_url, then passes
|
|
154
|
+
* icon_url to Create/UpdateApplication.
|
|
155
|
+
*/
|
|
156
|
+
|
|
157
|
+
createIconUploadUrl(
|
|
158
|
+
request: CreateIconUploadUrlRequest,
|
|
159
|
+
): Promise<IconUploadUrlResponse> | Observable<IconUploadUrlResponse> | IconUploadUrlResponse;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function TaxonomyServiceControllerMethods() {
|
|
163
|
+
return function (constructor: Function) {
|
|
164
|
+
const grpcMethods: string[] = [
|
|
165
|
+
"findAllCategories",
|
|
166
|
+
"findAllApplications",
|
|
167
|
+
"findAllTags",
|
|
168
|
+
"createCategory",
|
|
169
|
+
"createApplication",
|
|
170
|
+
"updateApplication",
|
|
171
|
+
"createIconUploadUrl",
|
|
172
|
+
];
|
|
173
|
+
for (const method of grpcMethods) {
|
|
174
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
175
|
+
GrpcMethod("TaxonomyService", method)(constructor.prototype[method], method, descriptor);
|
|
176
|
+
}
|
|
177
|
+
const grpcStreamMethods: string[] = [];
|
|
178
|
+
for (const method of grpcStreamMethods) {
|
|
179
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
180
|
+
GrpcStreamMethod("TaxonomyService", method)(constructor.prototype[method], method, descriptor);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export const TAXONOMY_SERVICE_NAME = "TaxonomyService";
|