@aepstore-dev/contracts 1.36.0 → 1.38.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/activity.ts +1 -1
- package/gen/auth.ts +1 -1
- package/gen/mail.ts +1 -1
- package/gen/payments.ts +5 -65
- package/gen/products.ts +11 -1
- package/gen/support.ts +1 -1
- package/gen/taxonomy.ts +1 -1
- package/gen/upload.ts +1 -1
- package/gen/users.ts +1 -1
- package/package.json +35 -35
- package/proto/activity.proto +200 -200
- package/proto/auth.proto +183 -183
- package/proto/mail.proto +54 -54
- package/proto/payments.proto +356 -394
- package/proto/products.proto +394 -388
- package/proto/support.proto +118 -118
- package/proto/taxonomy.proto +105 -105
- package/proto/upload.proto +171 -171
- package/proto/users.proto +660 -660
package/gen/activity.ts
CHANGED
package/gen/auth.ts
CHANGED
package/gen/mail.ts
CHANGED
package/gen/payments.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v2.10.1
|
|
4
|
-
// protoc v7.35.
|
|
4
|
+
// protoc v7.35.1
|
|
5
5
|
// source: payments.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -109,66 +109,25 @@ export interface WalletResponse {
|
|
|
109
109
|
|
|
110
110
|
export interface ListTransactionsRequest {
|
|
111
111
|
userId: string;
|
|
112
|
-
/**
|
|
113
|
-
* Legacy low-level filter (one of LedgerTxType). Kept for backward
|
|
114
|
-
* compatibility — admin tooling still uses it directly.
|
|
115
|
-
*/
|
|
112
|
+
/** optional filter (TOPUP|PURCHASE|SALE_CLEAR|WITHDRAWAL|REFUND|ADJUSTMENT) */
|
|
116
113
|
type: string;
|
|
117
114
|
page: number;
|
|
118
115
|
limit: number;
|
|
119
|
-
/**
|
|
120
|
-
* ↓ added for the wallet statement page (Round 3)
|
|
121
|
-
* UI-semantic filter mapped onto displayKind:
|
|
122
|
-
* ALL | INCOME | OUTCOME | REFUND | WITHDRAWAL | PREMIUM
|
|
123
|
-
*/
|
|
124
|
-
flow: string;
|
|
125
|
-
/**
|
|
126
|
-
* Period selection. `month` is the convenience form (YYYY-MM) used by the
|
|
127
|
-
* month dropdown; from/to override it for an arbitrary range.
|
|
128
|
-
*/
|
|
129
|
-
month: string;
|
|
130
|
-
from: string;
|
|
131
|
-
to: string;
|
|
132
|
-
/**
|
|
133
|
-
* Filter wallet to purchases/refunds of a specific Product category. Has
|
|
134
|
-
* no effect on TOPUP/WITHDRAWAL/PREMIUM/ADJUSTMENT entries (they have no
|
|
135
|
-
* product).
|
|
136
|
-
*/
|
|
137
|
-
productCategoryId: string;
|
|
138
|
-
/** sort_by ∈ { date | amount | type }. Default: date. */
|
|
139
|
-
sortBy: string;
|
|
140
|
-
/** order ∈ { asc | desc }. Default: desc. */
|
|
141
|
-
order: string;
|
|
142
116
|
}
|
|
143
117
|
|
|
144
118
|
export interface StatementEntry {
|
|
119
|
+
/** ledger entry id */
|
|
145
120
|
id: string;
|
|
146
121
|
txId: string;
|
|
147
|
-
/**
|
|
122
|
+
/** tx type */
|
|
148
123
|
type: string;
|
|
124
|
+
/** which of the user's accounts */
|
|
149
125
|
accountKind: string;
|
|
150
126
|
/** DEBIT | CREDIT */
|
|
151
127
|
direction: string;
|
|
152
128
|
amount: string;
|
|
153
129
|
description: string;
|
|
154
130
|
createdAt: string;
|
|
155
|
-
/**
|
|
156
|
-
* ↓ added for the wallet statement page (Round 3)
|
|
157
|
-
* UI-friendly classification computed server-side:
|
|
158
|
-
* TOPUP | PURCHASE | REFUND | PREMIUM | WITHDRAWAL | SALE_CLEAR | ADJUSTMENT
|
|
159
|
-
* PREMIUM is split out of PURCHASE/REFUND so the UI can show
|
|
160
|
-
* "Продление Premium" / refund-of-premium in their own filter bucket.
|
|
161
|
-
*/
|
|
162
|
-
displayKind: string;
|
|
163
|
-
/** running USER_SPENDING-style balance, Decimal-as-string */
|
|
164
|
-
balanceAfter: string;
|
|
165
|
-
/** empty for non-product entries */
|
|
166
|
-
productId: string;
|
|
167
|
-
productName: string;
|
|
168
|
-
/** "Assets" | "Project File" | "Templates" */
|
|
169
|
-
productCategory: string;
|
|
170
|
-
/** optional thumbnail URL for richer rows */
|
|
171
|
-
productPreview: string;
|
|
172
131
|
}
|
|
173
132
|
|
|
174
133
|
export interface TransactionsListResponse {
|
|
@@ -178,18 +137,6 @@ export interface TransactionsListResponse {
|
|
|
178
137
|
limit: number;
|
|
179
138
|
}
|
|
180
139
|
|
|
181
|
-
export interface GetTransactionMonthsRequest {
|
|
182
|
-
userId: string;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export interface GetTransactionMonthsResponse {
|
|
186
|
-
/**
|
|
187
|
-
* Newest first. "YYYY-MM" strings; the dropdown renders them
|
|
188
|
-
* localized client-side.
|
|
189
|
-
*/
|
|
190
|
-
months: string[];
|
|
191
|
-
}
|
|
192
|
-
|
|
193
140
|
/**
|
|
194
141
|
* ---------------------------------------------------------------------------
|
|
195
142
|
* Withdrawals
|
|
@@ -575,8 +522,6 @@ export interface PaymentsServiceClient {
|
|
|
575
522
|
|
|
576
523
|
listTransactions(request: ListTransactionsRequest): Observable<TransactionsListResponse>;
|
|
577
524
|
|
|
578
|
-
getTransactionMonths(request: GetTransactionMonthsRequest): Observable<GetTransactionMonthsResponse>;
|
|
579
|
-
|
|
580
525
|
/** ----- withdrawals ----- */
|
|
581
526
|
|
|
582
527
|
requestWithdrawal(request: RequestWithdrawalRequest): Observable<Withdrawal>;
|
|
@@ -671,10 +616,6 @@ export interface PaymentsServiceController {
|
|
|
671
616
|
request: ListTransactionsRequest,
|
|
672
617
|
): Promise<TransactionsListResponse> | Observable<TransactionsListResponse> | TransactionsListResponse;
|
|
673
618
|
|
|
674
|
-
getTransactionMonths(
|
|
675
|
-
request: GetTransactionMonthsRequest,
|
|
676
|
-
): Promise<GetTransactionMonthsResponse> | Observable<GetTransactionMonthsResponse> | GetTransactionMonthsResponse;
|
|
677
|
-
|
|
678
619
|
/** ----- withdrawals ----- */
|
|
679
620
|
|
|
680
621
|
requestWithdrawal(request: RequestWithdrawalRequest): Promise<Withdrawal> | Observable<Withdrawal> | Withdrawal;
|
|
@@ -774,7 +715,6 @@ export function PaymentsServiceControllerMethods() {
|
|
|
774
715
|
"refundPurchase",
|
|
775
716
|
"getWallet",
|
|
776
717
|
"listTransactions",
|
|
777
|
-
"getTransactionMonths",
|
|
778
718
|
"requestWithdrawal",
|
|
779
719
|
"listWithdrawals",
|
|
780
720
|
"processWithdrawal",
|
package/gen/products.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v2.10.1
|
|
4
|
-
// protoc v7.35.
|
|
4
|
+
// protoc v7.35.1
|
|
5
5
|
// source: products.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -248,6 +248,11 @@ export interface RemoveProductRequest {
|
|
|
248
248
|
userId: string;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
export interface RestoreProductRequest {
|
|
252
|
+
id: string;
|
|
253
|
+
userId: string;
|
|
254
|
+
}
|
|
255
|
+
|
|
251
256
|
export interface SubmitForModerationRequest {
|
|
252
257
|
id: string;
|
|
253
258
|
userId: string;
|
|
@@ -401,6 +406,8 @@ export interface ProductsServiceClient {
|
|
|
401
406
|
|
|
402
407
|
remove(request: RemoveProductRequest): Observable<Ok>;
|
|
403
408
|
|
|
409
|
+
restore(request: RestoreProductRequest): Observable<ProductResponse>;
|
|
410
|
+
|
|
404
411
|
submitForModeration(request: SubmitForModerationRequest): Observable<ProductResponse>;
|
|
405
412
|
|
|
406
413
|
getPriceRange(request: Empty): Observable<PriceRangeResponse>;
|
|
@@ -460,6 +467,8 @@ export interface ProductsServiceController {
|
|
|
460
467
|
|
|
461
468
|
remove(request: RemoveProductRequest): Promise<Ok> | Observable<Ok> | Ok;
|
|
462
469
|
|
|
470
|
+
restore(request: RestoreProductRequest): Promise<ProductResponse> | Observable<ProductResponse> | ProductResponse;
|
|
471
|
+
|
|
463
472
|
submitForModeration(
|
|
464
473
|
request: SubmitForModerationRequest,
|
|
465
474
|
): Promise<ProductResponse> | Observable<ProductResponse> | ProductResponse;
|
|
@@ -533,6 +542,7 @@ export function ProductsServiceControllerMethods() {
|
|
|
533
542
|
"findOne",
|
|
534
543
|
"update",
|
|
535
544
|
"remove",
|
|
545
|
+
"restore",
|
|
536
546
|
"submitForModeration",
|
|
537
547
|
"getPriceRange",
|
|
538
548
|
"addToFavorites",
|
package/gen/support.ts
CHANGED
package/gen/taxonomy.ts
CHANGED
package/gen/upload.ts
CHANGED
package/gen/users.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@aepstore-dev/contracts",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Protobuf definitions for aepstore microservices",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"generate": "node scripts/generate.cjs",
|
|
9
|
-
"build": "tsc -p tsconfig.build.json"
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"dist",
|
|
13
|
-
"proto",
|
|
14
|
-
"gen"
|
|
15
|
-
],
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
18
|
-
},
|
|
19
|
-
"author": {
|
|
20
|
-
"name": "torroixq",
|
|
21
|
-
"email": "cato.ixq@gmail.com"
|
|
22
|
-
},
|
|
23
|
-
"peerDependencies": {
|
|
24
|
-
"@nestjs/microservices": "^11.1.11",
|
|
25
|
-
"rxjs": "^7.8.2"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@nestjs/microservices": "^11.1.11",
|
|
29
|
-
"@protobuf-ts/protoc": "^2.9.4",
|
|
30
|
-
"@types/node": "^25.0.3",
|
|
31
|
-
"rxjs": "^7.8.2",
|
|
32
|
-
"ts-proto": "^2.10.1",
|
|
33
|
-
"typescript": "^5.9.3"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@aepstore-dev/contracts",
|
|
3
|
+
"version": "1.38.0",
|
|
4
|
+
"description": "Protobuf definitions for aepstore microservices",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"generate": "node scripts/generate.cjs",
|
|
9
|
+
"build": "tsc -p tsconfig.build.json"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"proto",
|
|
14
|
+
"gen"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "torroixq",
|
|
21
|
+
"email": "cato.ixq@gmail.com"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@nestjs/microservices": "^11.1.11",
|
|
25
|
+
"rxjs": "^7.8.2"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@nestjs/microservices": "^11.1.11",
|
|
29
|
+
"@protobuf-ts/protoc": "^2.9.4",
|
|
30
|
+
"@types/node": "^25.0.3",
|
|
31
|
+
"rxjs": "^7.8.2",
|
|
32
|
+
"ts-proto": "^2.10.1",
|
|
33
|
+
"typescript": "^5.9.3"
|
|
34
|
+
}
|
|
35
|
+
}
|