@aepstore-dev/contracts 1.37.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 -82
- 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 -407
- 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,83 +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 | SALES | INCOME | OUTCOME | REFUND | WITHDRAWAL | PREMIUM
|
|
123
|
-
* SALES = the seller's earnings on this account (USER_PENDING credits from
|
|
124
|
-
* PURCHASE transactions); these stay separate from INCOME (TOPUP).
|
|
125
|
-
*/
|
|
126
|
-
flow: string;
|
|
127
|
-
/**
|
|
128
|
-
* Period selection. `month` is the convenience form (YYYY-MM) used by the
|
|
129
|
-
* month dropdown; from/to override it for an arbitrary range.
|
|
130
|
-
*/
|
|
131
|
-
month: string;
|
|
132
|
-
from: string;
|
|
133
|
-
to: string;
|
|
134
|
-
/**
|
|
135
|
-
* Filter wallet to purchases/refunds of a specific Product category. Has
|
|
136
|
-
* no effect on TOPUP/WITHDRAWAL/PREMIUM/ADJUSTMENT entries (they have no
|
|
137
|
-
* product).
|
|
138
|
-
*/
|
|
139
|
-
productCategoryId: string;
|
|
140
|
-
/** sort_by ∈ { date | amount | type }. Default: date. */
|
|
141
|
-
sortBy: string;
|
|
142
|
-
/** order ∈ { asc | desc }. Default: desc. */
|
|
143
|
-
order: string;
|
|
144
116
|
}
|
|
145
117
|
|
|
146
118
|
export interface StatementEntry {
|
|
119
|
+
/** ledger entry id */
|
|
147
120
|
id: string;
|
|
148
121
|
txId: string;
|
|
149
|
-
/**
|
|
122
|
+
/** tx type */
|
|
150
123
|
type: string;
|
|
124
|
+
/** which of the user's accounts */
|
|
151
125
|
accountKind: string;
|
|
152
126
|
/** DEBIT | CREDIT */
|
|
153
127
|
direction: string;
|
|
154
128
|
amount: string;
|
|
155
129
|
description: string;
|
|
156
130
|
createdAt: string;
|
|
157
|
-
/**
|
|
158
|
-
* ↓ added for the wallet statement page (Round 3)
|
|
159
|
-
* UI-friendly classification computed server-side:
|
|
160
|
-
* TOPUP | PURCHASE | SALE | REFUND | PREMIUM | WITHDRAWAL | ADJUSTMENT
|
|
161
|
-
* SALE is the seller's view of someone else's PURCHASE (CREDIT to their
|
|
162
|
-
* USER_PENDING) — distinct from PURCHASE which is the buyer's DEBIT.
|
|
163
|
-
* PREMIUM is split out of PURCHASE/REFUND so the UI can show
|
|
164
|
-
* "Продление Premium" / refund-of-premium in their own filter bucket.
|
|
165
|
-
* SALE_CLEAR transactions are excluded from the wallet view — the maturity
|
|
166
|
-
* event is surfaced via sale_status on the original SALE row instead.
|
|
167
|
-
*/
|
|
168
|
-
displayKind: string;
|
|
169
|
-
/** affected-account running balance, Decimal-as-string */
|
|
170
|
-
balanceAfter: string;
|
|
171
|
-
/** empty for non-product entries */
|
|
172
|
-
productId: string;
|
|
173
|
-
productName: string;
|
|
174
|
-
/** "Assets" | "Project File" | "Templates" */
|
|
175
|
-
productCategory: string;
|
|
176
|
-
/** optional thumbnail URL for richer rows */
|
|
177
|
-
productPreview: string;
|
|
178
|
-
/**
|
|
179
|
-
* Sale lifecycle. Populated only when display_kind=SALE.
|
|
180
|
-
* PENDING — held in USER_PENDING, not yet withdrawable.
|
|
181
|
-
* MATURED — SALE_CLEAR has fired; money is in USER_PAYOUT.
|
|
182
|
-
*/
|
|
183
|
-
saleStatus: string;
|
|
184
|
-
/**
|
|
185
|
-
* ISO 8601 when the sale becomes withdrawable (sale_completed_at +
|
|
186
|
-
* GRACE_DAYS). Empty for non-sale rows.
|
|
187
|
-
*/
|
|
188
|
-
maturesAt: string;
|
|
189
131
|
}
|
|
190
132
|
|
|
191
133
|
export interface TransactionsListResponse {
|
|
@@ -195,18 +137,6 @@ export interface TransactionsListResponse {
|
|
|
195
137
|
limit: number;
|
|
196
138
|
}
|
|
197
139
|
|
|
198
|
-
export interface GetTransactionMonthsRequest {
|
|
199
|
-
userId: string;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface GetTransactionMonthsResponse {
|
|
203
|
-
/**
|
|
204
|
-
* Newest first. "YYYY-MM" strings; the dropdown renders them
|
|
205
|
-
* localized client-side.
|
|
206
|
-
*/
|
|
207
|
-
months: string[];
|
|
208
|
-
}
|
|
209
|
-
|
|
210
140
|
/**
|
|
211
141
|
* ---------------------------------------------------------------------------
|
|
212
142
|
* Withdrawals
|
|
@@ -592,8 +522,6 @@ export interface PaymentsServiceClient {
|
|
|
592
522
|
|
|
593
523
|
listTransactions(request: ListTransactionsRequest): Observable<TransactionsListResponse>;
|
|
594
524
|
|
|
595
|
-
getTransactionMonths(request: GetTransactionMonthsRequest): Observable<GetTransactionMonthsResponse>;
|
|
596
|
-
|
|
597
525
|
/** ----- withdrawals ----- */
|
|
598
526
|
|
|
599
527
|
requestWithdrawal(request: RequestWithdrawalRequest): Observable<Withdrawal>;
|
|
@@ -688,10 +616,6 @@ export interface PaymentsServiceController {
|
|
|
688
616
|
request: ListTransactionsRequest,
|
|
689
617
|
): Promise<TransactionsListResponse> | Observable<TransactionsListResponse> | TransactionsListResponse;
|
|
690
618
|
|
|
691
|
-
getTransactionMonths(
|
|
692
|
-
request: GetTransactionMonthsRequest,
|
|
693
|
-
): Promise<GetTransactionMonthsResponse> | Observable<GetTransactionMonthsResponse> | GetTransactionMonthsResponse;
|
|
694
|
-
|
|
695
619
|
/** ----- withdrawals ----- */
|
|
696
620
|
|
|
697
621
|
requestWithdrawal(request: RequestWithdrawalRequest): Promise<Withdrawal> | Observable<Withdrawal> | Withdrawal;
|
|
@@ -791,7 +715,6 @@ export function PaymentsServiceControllerMethods() {
|
|
|
791
715
|
"refundPurchase",
|
|
792
716
|
"getWallet",
|
|
793
717
|
"listTransactions",
|
|
794
|
-
"getTransactionMonths",
|
|
795
718
|
"requestWithdrawal",
|
|
796
719
|
"listWithdrawals",
|
|
797
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
|
+
}
|