@aepstore-dev/contracts 1.40.0 → 1.42.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/gen/activity.d.ts +170 -0
- package/dist/gen/activity.js +62 -0
- package/dist/gen/auth.d.ts +220 -0
- package/dist/gen/auth.js +49 -0
- package/dist/gen/mail.d.ts +70 -0
- package/dist/gen/mail.js +34 -0
- package/dist/gen/payments.d.ts +603 -0
- package/dist/gen/payments.js +57 -0
- package/dist/gen/products.d.ts +401 -0
- package/dist/gen/products.js +80 -0
- package/dist/gen/support.d.ts +139 -0
- package/dist/gen/support.js +38 -0
- package/dist/gen/taxonomy.d.ts +109 -0
- package/dist/gen/taxonomy.js +36 -0
- package/dist/gen/upload.d.ts +193 -0
- package/dist/gen/upload.js +54 -0
- package/dist/gen/users.d.ts +639 -0
- package/dist/gen/users.js +84 -0
- package/package.json +44 -35
- package/proto/activity.proto +200 -200
- package/proto/auth.proto +189 -183
- package/proto/mail.proto +54 -54
- package/proto/payments.proto +407 -407
- package/proto/products.proto +402 -402
- 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 +0 -270
- package/gen/auth.ts +0 -309
- package/gen/mail.ts +0 -121
- package/gen/payments.ts +0 -828
- package/gen/products.ts +0 -579
- package/gen/support.ts +0 -220
- package/gen/taxonomy.ts +0 -185
- package/gen/upload.ts +0 -287
- package/gen/users.ts +0 -929
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{proto → src/proto}/index.d.ts +0 -0
- /package/dist/{proto → src/proto}/index.js +0 -0
- /package/dist/{proto → src/proto}/paths.d.ts +0 -0
- /package/dist/{proto → src/proto}/paths.js +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export declare const protobufPackage = "taxonomy.v1";
|
|
3
|
+
export interface Category {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Application {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
/** public S3 URL to brand SVG (admin-set), empty if none */
|
|
17
|
+
iconUrl: string;
|
|
18
|
+
}
|
|
19
|
+
export interface Tag {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
export interface Empty {
|
|
24
|
+
}
|
|
25
|
+
export interface CategoriesListResponse {
|
|
26
|
+
items: Category[];
|
|
27
|
+
}
|
|
28
|
+
export interface ApplicationsListResponse {
|
|
29
|
+
items: Application[];
|
|
30
|
+
}
|
|
31
|
+
export interface QueryTagsRequest {
|
|
32
|
+
search: string;
|
|
33
|
+
page: number;
|
|
34
|
+
limit: number;
|
|
35
|
+
}
|
|
36
|
+
export interface TagsListResponse {
|
|
37
|
+
items: Tag[];
|
|
38
|
+
total: number;
|
|
39
|
+
page: number;
|
|
40
|
+
limit: number;
|
|
41
|
+
}
|
|
42
|
+
export interface CreateCategoryRequest {
|
|
43
|
+
name: string;
|
|
44
|
+
description: string;
|
|
45
|
+
}
|
|
46
|
+
export interface CategoryResponse {
|
|
47
|
+
category: Category | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface CreateApplicationRequest {
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
iconUrl: string;
|
|
53
|
+
}
|
|
54
|
+
export interface UpdateApplicationRequest {
|
|
55
|
+
id: string;
|
|
56
|
+
/** optional — empty keeps current */
|
|
57
|
+
name: string;
|
|
58
|
+
/** optional */
|
|
59
|
+
description: string;
|
|
60
|
+
/** optional — empty keeps current */
|
|
61
|
+
iconUrl: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ApplicationResponse {
|
|
64
|
+
application: Application | undefined;
|
|
65
|
+
}
|
|
66
|
+
export interface CreateIconUploadUrlRequest {
|
|
67
|
+
fileName: string;
|
|
68
|
+
/** e.g. image/svg+xml */
|
|
69
|
+
mimeType: string;
|
|
70
|
+
}
|
|
71
|
+
export interface IconUploadUrlResponse {
|
|
72
|
+
/** presigned PUT URL — client uploads the SVG bytes here */
|
|
73
|
+
uploadUrl: string;
|
|
74
|
+
/** final public URL to store as Application.iconUrl */
|
|
75
|
+
iconUrl: string;
|
|
76
|
+
fileKey: string;
|
|
77
|
+
expiresIn: number;
|
|
78
|
+
}
|
|
79
|
+
export declare const TAXONOMY_V1_PACKAGE_NAME = "taxonomy.v1";
|
|
80
|
+
export interface TaxonomyServiceClient {
|
|
81
|
+
findAllCategories(request: Empty): Observable<CategoriesListResponse>;
|
|
82
|
+
findAllApplications(request: Empty): Observable<ApplicationsListResponse>;
|
|
83
|
+
findAllTags(request: QueryTagsRequest): Observable<TagsListResponse>;
|
|
84
|
+
createCategory(request: CreateCategoryRequest): Observable<CategoryResponse>;
|
|
85
|
+
createApplication(request: CreateApplicationRequest): Observable<ApplicationResponse>;
|
|
86
|
+
updateApplication(request: UpdateApplicationRequest): Observable<ApplicationResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Mint a presigned PUT URL for an application icon SVG (proxies upload-service,
|
|
89
|
+
* kind=ICON → public/icons/). Client PUTs the bytes to upload_url, then passes
|
|
90
|
+
* icon_url to Create/UpdateApplication.
|
|
91
|
+
*/
|
|
92
|
+
createIconUploadUrl(request: CreateIconUploadUrlRequest): Observable<IconUploadUrlResponse>;
|
|
93
|
+
}
|
|
94
|
+
export interface TaxonomyServiceController {
|
|
95
|
+
findAllCategories(request: Empty): Promise<CategoriesListResponse> | Observable<CategoriesListResponse> | CategoriesListResponse;
|
|
96
|
+
findAllApplications(request: Empty): Promise<ApplicationsListResponse> | Observable<ApplicationsListResponse> | ApplicationsListResponse;
|
|
97
|
+
findAllTags(request: QueryTagsRequest): Promise<TagsListResponse> | Observable<TagsListResponse> | TagsListResponse;
|
|
98
|
+
createCategory(request: CreateCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
99
|
+
createApplication(request: CreateApplicationRequest): Promise<ApplicationResponse> | Observable<ApplicationResponse> | ApplicationResponse;
|
|
100
|
+
updateApplication(request: UpdateApplicationRequest): Promise<ApplicationResponse> | Observable<ApplicationResponse> | ApplicationResponse;
|
|
101
|
+
/**
|
|
102
|
+
* Mint a presigned PUT URL for an application icon SVG (proxies upload-service,
|
|
103
|
+
* kind=ICON → public/icons/). Client PUTs the bytes to upload_url, then passes
|
|
104
|
+
* icon_url to Create/UpdateApplication.
|
|
105
|
+
*/
|
|
106
|
+
createIconUploadUrl(request: CreateIconUploadUrlRequest): Promise<IconUploadUrlResponse> | Observable<IconUploadUrlResponse> | IconUploadUrlResponse;
|
|
107
|
+
}
|
|
108
|
+
export declare function TaxonomyServiceControllerMethods(): (constructor: Function) => void;
|
|
109
|
+
export declare const TAXONOMY_SERVICE_NAME = "TaxonomyService";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.10.1
|
|
5
|
+
// protoc v7.35.0
|
|
6
|
+
// source: taxonomy.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.TAXONOMY_SERVICE_NAME = exports.TAXONOMY_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.TaxonomyServiceControllerMethods = TaxonomyServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
exports.protobufPackage = "taxonomy.v1";
|
|
13
|
+
exports.TAXONOMY_V1_PACKAGE_NAME = "taxonomy.v1";
|
|
14
|
+
function TaxonomyServiceControllerMethods() {
|
|
15
|
+
return function (constructor) {
|
|
16
|
+
const grpcMethods = [
|
|
17
|
+
"findAllCategories",
|
|
18
|
+
"findAllApplications",
|
|
19
|
+
"findAllTags",
|
|
20
|
+
"createCategory",
|
|
21
|
+
"createApplication",
|
|
22
|
+
"updateApplication",
|
|
23
|
+
"createIconUploadUrl",
|
|
24
|
+
];
|
|
25
|
+
for (const method of grpcMethods) {
|
|
26
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
27
|
+
(0, microservices_1.GrpcMethod)("TaxonomyService", method)(constructor.prototype[method], method, descriptor);
|
|
28
|
+
}
|
|
29
|
+
const grpcStreamMethods = [];
|
|
30
|
+
for (const method of grpcStreamMethods) {
|
|
31
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
32
|
+
(0, microservices_1.GrpcStreamMethod)("TaxonomyService", method)(constructor.prototype[method], method, descriptor);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.TAXONOMY_SERVICE_NAME = "TaxonomyService";
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export declare const protobufPackage = "upload.v1";
|
|
3
|
+
/**
|
|
4
|
+
* Determines the object key prefix (and future ACL/privacy policy).
|
|
5
|
+
* ATTACHMENT = paid product deliverable (private; presigned GET only after purchase).
|
|
6
|
+
* MEDIA / AVATAR / BANNER = preview assets.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum UploadKind {
|
|
9
|
+
UPLOAD_KIND_UNSPECIFIED = 0,
|
|
10
|
+
UPLOAD_KIND_ATTACHMENT = 1,
|
|
11
|
+
UPLOAD_KIND_MEDIA = 2,
|
|
12
|
+
UPLOAD_KIND_AVATAR = 3,
|
|
13
|
+
UPLOAD_KIND_BANNER = 4,
|
|
14
|
+
/** UPLOAD_KIND_ICON - taxonomy program/app brand icons → public/icons/ */
|
|
15
|
+
UPLOAD_KIND_ICON = 5,
|
|
16
|
+
UNRECOGNIZED = -1
|
|
17
|
+
}
|
|
18
|
+
export interface ListObjectsRequest {
|
|
19
|
+
prefix: string;
|
|
20
|
+
/** empty for the first page */
|
|
21
|
+
continuationToken: string;
|
|
22
|
+
}
|
|
23
|
+
export interface StoredObject {
|
|
24
|
+
key: string;
|
|
25
|
+
/** ISO 8601 */
|
|
26
|
+
lastModified: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ListObjectsResponse {
|
|
29
|
+
objects: StoredObject[];
|
|
30
|
+
/** empty when there are no more pages */
|
|
31
|
+
nextContinuationToken: string;
|
|
32
|
+
}
|
|
33
|
+
export interface Ok {
|
|
34
|
+
ok: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface CreateMultipartUploadRequest {
|
|
37
|
+
fileName: string;
|
|
38
|
+
mimeType: string;
|
|
39
|
+
fileSize: number;
|
|
40
|
+
kind: UploadKind;
|
|
41
|
+
/** user initiating, for key namespacing + audit */
|
|
42
|
+
ownerId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CreateMultipartUploadResponse {
|
|
45
|
+
/** S3 multipart UploadId */
|
|
46
|
+
uploadId: string;
|
|
47
|
+
/** object key this service generated */
|
|
48
|
+
fileKey: string;
|
|
49
|
+
/** recommended part size (bytes) the client should slice with */
|
|
50
|
+
partSize: number;
|
|
51
|
+
/** number of parts for file_size at part_size */
|
|
52
|
+
partCount: number;
|
|
53
|
+
}
|
|
54
|
+
export interface SignPartRequest {
|
|
55
|
+
fileKey: string;
|
|
56
|
+
uploadId: string;
|
|
57
|
+
/** 1-based */
|
|
58
|
+
partNumber: number;
|
|
59
|
+
}
|
|
60
|
+
export interface SignPartResponse {
|
|
61
|
+
/** presigned PUT URL for this single part */
|
|
62
|
+
url: string;
|
|
63
|
+
expiresIn: number;
|
|
64
|
+
}
|
|
65
|
+
export interface CompletedPart {
|
|
66
|
+
partNumber: number;
|
|
67
|
+
/** ETag the client received in the S3 PUT response header for this part */
|
|
68
|
+
etag: string;
|
|
69
|
+
}
|
|
70
|
+
export interface CompleteMultipartUploadRequest {
|
|
71
|
+
fileKey: string;
|
|
72
|
+
uploadId: string;
|
|
73
|
+
parts: CompletedPart[];
|
|
74
|
+
}
|
|
75
|
+
export interface CompleteMultipartUploadResponse {
|
|
76
|
+
fileKey: string;
|
|
77
|
+
/** final object location (internal reference) */
|
|
78
|
+
location: string;
|
|
79
|
+
fileSize: number;
|
|
80
|
+
}
|
|
81
|
+
export interface AbortMultipartUploadRequest {
|
|
82
|
+
fileKey: string;
|
|
83
|
+
uploadId: string;
|
|
84
|
+
}
|
|
85
|
+
export interface CreateUploadUrlRequest {
|
|
86
|
+
fileName: string;
|
|
87
|
+
mimeType: string;
|
|
88
|
+
kind: UploadKind;
|
|
89
|
+
ownerId: string;
|
|
90
|
+
}
|
|
91
|
+
export interface CreateUploadUrlResponse {
|
|
92
|
+
/** presigned PUT URL (client PUTs the whole file) */
|
|
93
|
+
url: string;
|
|
94
|
+
fileKey: string;
|
|
95
|
+
expiresIn: number;
|
|
96
|
+
/** final object URL (only meaningful for public kinds) */
|
|
97
|
+
publicUrl: string;
|
|
98
|
+
}
|
|
99
|
+
export interface SignedUrlRequest {
|
|
100
|
+
fileKey: string;
|
|
101
|
+
/** optional, default 3600 */
|
|
102
|
+
expiresIn: number;
|
|
103
|
+
/** optional: forces Content-Disposition attachment filename */
|
|
104
|
+
downloadFileName: string;
|
|
105
|
+
}
|
|
106
|
+
export interface SignedUrlResponse {
|
|
107
|
+
signedUrl: string;
|
|
108
|
+
expiresIn: number;
|
|
109
|
+
}
|
|
110
|
+
export interface HeadObjectRequest {
|
|
111
|
+
fileKey: string;
|
|
112
|
+
}
|
|
113
|
+
export interface HeadObjectResponse {
|
|
114
|
+
/** false only when the object is definitively absent (404) */
|
|
115
|
+
exists: boolean;
|
|
116
|
+
/** bytes (0 when absent) */
|
|
117
|
+
size: number;
|
|
118
|
+
contentType: string;
|
|
119
|
+
}
|
|
120
|
+
export interface DeleteObjectRequest {
|
|
121
|
+
fileKey: string;
|
|
122
|
+
}
|
|
123
|
+
export declare const UPLOAD_V1_PACKAGE_NAME = "upload.v1";
|
|
124
|
+
/**
|
|
125
|
+
* Thin signing service. File bytes NEVER pass through this service — clients
|
|
126
|
+
* upload/download directly to/from S3 (Yandex Object Storage) using presigned
|
|
127
|
+
* URLs this service mints. Memory/bandwidth flat regardless of file size.
|
|
128
|
+
*
|
|
129
|
+
* Large files (product deliverables, up to ~1GB) use the multipart flow:
|
|
130
|
+
* CreateMultipartUpload → (SignPart × N, client PUTs each part to S3) →
|
|
131
|
+
* CompleteMultipartUpload (or AbortMultipartUpload on failure)
|
|
132
|
+
*
|
|
133
|
+
* Small files (preview images, avatars) use the single-PUT flow: CreateUploadUrl.
|
|
134
|
+
*
|
|
135
|
+
* Downloads are gated elsewhere (products-service verifies purchase, then calls
|
|
136
|
+
* GenerateSignedUrl). This service does not know about purchases.
|
|
137
|
+
*/
|
|
138
|
+
export interface UploadServiceClient {
|
|
139
|
+
createMultipartUpload(request: CreateMultipartUploadRequest): Observable<CreateMultipartUploadResponse>;
|
|
140
|
+
signPart(request: SignPartRequest): Observable<SignPartResponse>;
|
|
141
|
+
completeMultipartUpload(request: CompleteMultipartUploadRequest): Observable<CompleteMultipartUploadResponse>;
|
|
142
|
+
abortMultipartUpload(request: AbortMultipartUploadRequest): Observable<Ok>;
|
|
143
|
+
createUploadUrl(request: CreateUploadUrlRequest): Observable<CreateUploadUrlResponse>;
|
|
144
|
+
generateSignedUrl(request: SignedUrlRequest): Observable<SignedUrlResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* Verify an object actually exists (and read its size/type). Used by
|
|
147
|
+
* products-service to confirm a client-echoed fileKey points at a real
|
|
148
|
+
* uploaded object before persisting attachment metadata.
|
|
149
|
+
*/
|
|
150
|
+
headObject(request: HeadObjectRequest): Observable<HeadObjectResponse>;
|
|
151
|
+
deleteObject(request: DeleteObjectRequest): Observable<Ok>;
|
|
152
|
+
/**
|
|
153
|
+
* List objects under a prefix (paginated) — for GC/reconciliation jobs
|
|
154
|
+
* (e.g. tasks-service sweeping orphaned uploads). Not for user traffic.
|
|
155
|
+
*/
|
|
156
|
+
listObjects(request: ListObjectsRequest): Observable<ListObjectsResponse>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Thin signing service. File bytes NEVER pass through this service — clients
|
|
160
|
+
* upload/download directly to/from S3 (Yandex Object Storage) using presigned
|
|
161
|
+
* URLs this service mints. Memory/bandwidth flat regardless of file size.
|
|
162
|
+
*
|
|
163
|
+
* Large files (product deliverables, up to ~1GB) use the multipart flow:
|
|
164
|
+
* CreateMultipartUpload → (SignPart × N, client PUTs each part to S3) →
|
|
165
|
+
* CompleteMultipartUpload (or AbortMultipartUpload on failure)
|
|
166
|
+
*
|
|
167
|
+
* Small files (preview images, avatars) use the single-PUT flow: CreateUploadUrl.
|
|
168
|
+
*
|
|
169
|
+
* Downloads are gated elsewhere (products-service verifies purchase, then calls
|
|
170
|
+
* GenerateSignedUrl). This service does not know about purchases.
|
|
171
|
+
*/
|
|
172
|
+
export interface UploadServiceController {
|
|
173
|
+
createMultipartUpload(request: CreateMultipartUploadRequest): Promise<CreateMultipartUploadResponse> | Observable<CreateMultipartUploadResponse> | CreateMultipartUploadResponse;
|
|
174
|
+
signPart(request: SignPartRequest): Promise<SignPartResponse> | Observable<SignPartResponse> | SignPartResponse;
|
|
175
|
+
completeMultipartUpload(request: CompleteMultipartUploadRequest): Promise<CompleteMultipartUploadResponse> | Observable<CompleteMultipartUploadResponse> | CompleteMultipartUploadResponse;
|
|
176
|
+
abortMultipartUpload(request: AbortMultipartUploadRequest): Promise<Ok> | Observable<Ok> | Ok;
|
|
177
|
+
createUploadUrl(request: CreateUploadUrlRequest): Promise<CreateUploadUrlResponse> | Observable<CreateUploadUrlResponse> | CreateUploadUrlResponse;
|
|
178
|
+
generateSignedUrl(request: SignedUrlRequest): Promise<SignedUrlResponse> | Observable<SignedUrlResponse> | SignedUrlResponse;
|
|
179
|
+
/**
|
|
180
|
+
* Verify an object actually exists (and read its size/type). Used by
|
|
181
|
+
* products-service to confirm a client-echoed fileKey points at a real
|
|
182
|
+
* uploaded object before persisting attachment metadata.
|
|
183
|
+
*/
|
|
184
|
+
headObject(request: HeadObjectRequest): Promise<HeadObjectResponse> | Observable<HeadObjectResponse> | HeadObjectResponse;
|
|
185
|
+
deleteObject(request: DeleteObjectRequest): Promise<Ok> | Observable<Ok> | Ok;
|
|
186
|
+
/**
|
|
187
|
+
* List objects under a prefix (paginated) — for GC/reconciliation jobs
|
|
188
|
+
* (e.g. tasks-service sweeping orphaned uploads). Not for user traffic.
|
|
189
|
+
*/
|
|
190
|
+
listObjects(request: ListObjectsRequest): Promise<ListObjectsResponse> | Observable<ListObjectsResponse> | ListObjectsResponse;
|
|
191
|
+
}
|
|
192
|
+
export declare function UploadServiceControllerMethods(): (constructor: Function) => void;
|
|
193
|
+
export declare const UPLOAD_SERVICE_NAME = "UploadService";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.10.1
|
|
5
|
+
// protoc v7.35.0
|
|
6
|
+
// source: upload.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.UPLOAD_SERVICE_NAME = exports.UPLOAD_V1_PACKAGE_NAME = exports.UploadKind = exports.protobufPackage = void 0;
|
|
9
|
+
exports.UploadServiceControllerMethods = UploadServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
exports.protobufPackage = "upload.v1";
|
|
13
|
+
/**
|
|
14
|
+
* Determines the object key prefix (and future ACL/privacy policy).
|
|
15
|
+
* ATTACHMENT = paid product deliverable (private; presigned GET only after purchase).
|
|
16
|
+
* MEDIA / AVATAR / BANNER = preview assets.
|
|
17
|
+
*/
|
|
18
|
+
var UploadKind;
|
|
19
|
+
(function (UploadKind) {
|
|
20
|
+
UploadKind[UploadKind["UPLOAD_KIND_UNSPECIFIED"] = 0] = "UPLOAD_KIND_UNSPECIFIED";
|
|
21
|
+
UploadKind[UploadKind["UPLOAD_KIND_ATTACHMENT"] = 1] = "UPLOAD_KIND_ATTACHMENT";
|
|
22
|
+
UploadKind[UploadKind["UPLOAD_KIND_MEDIA"] = 2] = "UPLOAD_KIND_MEDIA";
|
|
23
|
+
UploadKind[UploadKind["UPLOAD_KIND_AVATAR"] = 3] = "UPLOAD_KIND_AVATAR";
|
|
24
|
+
UploadKind[UploadKind["UPLOAD_KIND_BANNER"] = 4] = "UPLOAD_KIND_BANNER";
|
|
25
|
+
/** UPLOAD_KIND_ICON - taxonomy program/app brand icons → public/icons/ */
|
|
26
|
+
UploadKind[UploadKind["UPLOAD_KIND_ICON"] = 5] = "UPLOAD_KIND_ICON";
|
|
27
|
+
UploadKind[UploadKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
28
|
+
})(UploadKind || (exports.UploadKind = UploadKind = {}));
|
|
29
|
+
exports.UPLOAD_V1_PACKAGE_NAME = "upload.v1";
|
|
30
|
+
function UploadServiceControllerMethods() {
|
|
31
|
+
return function (constructor) {
|
|
32
|
+
const grpcMethods = [
|
|
33
|
+
"createMultipartUpload",
|
|
34
|
+
"signPart",
|
|
35
|
+
"completeMultipartUpload",
|
|
36
|
+
"abortMultipartUpload",
|
|
37
|
+
"createUploadUrl",
|
|
38
|
+
"generateSignedUrl",
|
|
39
|
+
"headObject",
|
|
40
|
+
"deleteObject",
|
|
41
|
+
"listObjects",
|
|
42
|
+
];
|
|
43
|
+
for (const method of grpcMethods) {
|
|
44
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
45
|
+
(0, microservices_1.GrpcMethod)("UploadService", method)(constructor.prototype[method], method, descriptor);
|
|
46
|
+
}
|
|
47
|
+
const grpcStreamMethods = [];
|
|
48
|
+
for (const method of grpcStreamMethods) {
|
|
49
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
50
|
+
(0, microservices_1.GrpcStreamMethod)("UploadService", method)(constructor.prototype[method], method, descriptor);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.UPLOAD_SERVICE_NAME = "UploadService";
|