@aepstore-dev/contracts 1.86.0 → 1.88.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.d.ts +0 -2
- package/gen/products.ts +0 -2
- package/gen/users.d.ts +6 -0
- package/gen/users.ts +7 -0
- package/package.json +1 -1
- package/proto/products.proto +2 -2
- package/proto/users.proto +24 -17
package/gen/products.d.ts
CHANGED
|
@@ -139,8 +139,6 @@ export interface ProductAttachment {
|
|
|
139
139
|
id: string;
|
|
140
140
|
fileName: string;
|
|
141
141
|
fileSize: number;
|
|
142
|
-
url: string;
|
|
143
|
-
mimeType: string;
|
|
144
142
|
}
|
|
145
143
|
/** Compact product shape for "related products" — only the fields a card needs. */
|
|
146
144
|
export interface RelatedProduct {
|
package/gen/products.ts
CHANGED
package/gen/users.d.ts
CHANGED
|
@@ -383,6 +383,11 @@ export interface GetUserFieldsRequest {
|
|
|
383
383
|
/** optional */
|
|
384
384
|
viewerUserId: string;
|
|
385
385
|
}
|
|
386
|
+
export interface UserFieldsOwner {
|
|
387
|
+
id: string;
|
|
388
|
+
username: string;
|
|
389
|
+
fullName: string;
|
|
390
|
+
}
|
|
386
391
|
export interface GetUserFieldsResponse {
|
|
387
392
|
videos: Video[];
|
|
388
393
|
products: Product[];
|
|
@@ -391,6 +396,7 @@ export interface GetUserFieldsResponse {
|
|
|
391
396
|
total: number;
|
|
392
397
|
page: number;
|
|
393
398
|
limit: number;
|
|
399
|
+
user: UserFieldsOwner | undefined;
|
|
394
400
|
}
|
|
395
401
|
export interface SubscriptionRequest {
|
|
396
402
|
/** the authenticated user performing the action */
|
package/gen/users.ts
CHANGED
|
@@ -440,6 +440,12 @@ export interface GetUserFieldsRequest {
|
|
|
440
440
|
viewerUserId: string;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
+
export interface UserFieldsOwner {
|
|
444
|
+
id: string;
|
|
445
|
+
username: string;
|
|
446
|
+
fullName: string;
|
|
447
|
+
}
|
|
448
|
+
|
|
443
449
|
export interface GetUserFieldsResponse {
|
|
444
450
|
videos: Video[];
|
|
445
451
|
products: Product[];
|
|
@@ -448,6 +454,7 @@ export interface GetUserFieldsResponse {
|
|
|
448
454
|
total: number;
|
|
449
455
|
page: number;
|
|
450
456
|
limit: number;
|
|
457
|
+
user: UserFieldsOwner | undefined;
|
|
451
458
|
}
|
|
452
459
|
|
|
453
460
|
export interface SubscriptionRequest {
|
package/package.json
CHANGED
package/proto/products.proto
CHANGED
|
@@ -168,8 +168,8 @@ message ProductAttachment {
|
|
|
168
168
|
string id = 1;
|
|
169
169
|
string file_name = 2;
|
|
170
170
|
double file_size = 3;
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
reserved 4, 5;
|
|
172
|
+
reserved "url", "mime_type";
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
// Compact product shape for "related products" — only the fields a card needs.
|
package/proto/users.proto
CHANGED
|
@@ -482,23 +482,30 @@ enum UserFieldsType {
|
|
|
482
482
|
USER_FIELDS_TYPE_SUBSCRIBERS = 4;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
message GetUserFieldsRequest {
|
|
486
|
-
string username = 1;
|
|
487
|
-
UserFieldsType type = 2;
|
|
488
|
-
int32 page = 3;
|
|
489
|
-
int32 limit = 4;
|
|
490
|
-
string viewer_user_id = 5; // optional
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
message
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
485
|
+
message GetUserFieldsRequest {
|
|
486
|
+
string username = 1;
|
|
487
|
+
UserFieldsType type = 2;
|
|
488
|
+
int32 page = 3;
|
|
489
|
+
int32 limit = 4;
|
|
490
|
+
string viewer_user_id = 5; // optional
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
message UserFieldsOwner {
|
|
494
|
+
string id = 1;
|
|
495
|
+
string username = 2;
|
|
496
|
+
string full_name = 3;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
message GetUserFieldsResponse {
|
|
500
|
+
repeated Video videos = 1;
|
|
501
|
+
repeated Product products = 2;
|
|
502
|
+
repeated ProfileUser subscriptions = 3;
|
|
503
|
+
repeated ProfileUser subscribers = 4;
|
|
504
|
+
int32 total = 5;
|
|
505
|
+
int32 page = 6;
|
|
506
|
+
int32 limit = 7;
|
|
507
|
+
UserFieldsOwner user = 8;
|
|
508
|
+
}
|
|
502
509
|
|
|
503
510
|
// =================================================================
|
|
504
511
|
// Subscriptions
|