@mamindom/contracts 1.0.200 → 1.0.201
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/category.d.ts +1 -0
- package/dist/gen/notification.d.ts +42 -0
- package/dist/gen/notification.js +17 -1
- package/dist/gen/payment.d.ts +20 -0
- package/dist/gen/payment.js +2 -0
- package/dist/gen/product.d.ts +21 -0
- package/dist/gen/site_settings.d.ts +2 -0
- package/dist/proto/category.proto +1 -0
- package/dist/proto/notification.proto +45 -0
- package/dist/proto/payment.proto +32 -0
- package/dist/proto/product.proto +8 -0
- package/dist/proto/site_settings.proto +4 -0
- package/gen/category.ts +1 -0
- package/gen/notification.ts +73 -0
- package/gen/payment.ts +33 -0
- package/gen/product.ts +18 -0
- package/gen/site_settings.ts +2 -0
- package/package.json +1 -1
- package/proto/category.proto +1 -0
- package/proto/notification.proto +45 -0
- package/proto/payment.proto +32 -0
- package/proto/product.proto +8 -0
- package/proto/site_settings.proto +4 -0
package/dist/gen/category.d.ts
CHANGED
|
@@ -80,6 +80,38 @@ export interface SendToCustomerResponse {
|
|
|
80
80
|
errorMessage: string;
|
|
81
81
|
logId: string;
|
|
82
82
|
}
|
|
83
|
+
export interface NewsletterSubscribeRequest {
|
|
84
|
+
email: string;
|
|
85
|
+
locale?: string | undefined;
|
|
86
|
+
source?: string | undefined;
|
|
87
|
+
}
|
|
88
|
+
export interface NewsletterSubscribeResponse {
|
|
89
|
+
ok: boolean;
|
|
90
|
+
errorMessage: string;
|
|
91
|
+
alreadySubscribed: boolean;
|
|
92
|
+
}
|
|
93
|
+
export interface ListNewsletterSubscribersRequest {
|
|
94
|
+
page: number;
|
|
95
|
+
limit: number;
|
|
96
|
+
search?: string | undefined;
|
|
97
|
+
active?: boolean | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface NewsletterSubscriberItem {
|
|
100
|
+
id: string;
|
|
101
|
+
email: string;
|
|
102
|
+
locale: string;
|
|
103
|
+
source: string;
|
|
104
|
+
active: boolean;
|
|
105
|
+
createdAt: string;
|
|
106
|
+
unsubscribedAt?: string | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface ListNewsletterSubscribersResponse {
|
|
109
|
+
items: NewsletterSubscriberItem[];
|
|
110
|
+
total: number;
|
|
111
|
+
page: number;
|
|
112
|
+
limit: number;
|
|
113
|
+
activeTotal: number;
|
|
114
|
+
}
|
|
83
115
|
export interface VerifyUnsubscribeTokenRequest {
|
|
84
116
|
token: string;
|
|
85
117
|
}
|
|
@@ -478,6 +510,16 @@ export interface NotificationConsentServiceController {
|
|
|
478
510
|
}
|
|
479
511
|
export declare function NotificationConsentServiceControllerMethods(): (constructor: Function) => void;
|
|
480
512
|
export declare const NOTIFICATION_CONSENT_SERVICE_NAME = "NotificationConsentService";
|
|
513
|
+
export interface NewsletterServiceClient {
|
|
514
|
+
subscribe(request: NewsletterSubscribeRequest): Observable<NewsletterSubscribeResponse>;
|
|
515
|
+
listSubscribers(request: ListNewsletterSubscribersRequest): Observable<ListNewsletterSubscribersResponse>;
|
|
516
|
+
}
|
|
517
|
+
export interface NewsletterServiceController {
|
|
518
|
+
subscribe(request: NewsletterSubscribeRequest): Promise<NewsletterSubscribeResponse> | Observable<NewsletterSubscribeResponse> | NewsletterSubscribeResponse;
|
|
519
|
+
listSubscribers(request: ListNewsletterSubscribersRequest): Promise<ListNewsletterSubscribersResponse> | Observable<ListNewsletterSubscribersResponse> | ListNewsletterSubscribersResponse;
|
|
520
|
+
}
|
|
521
|
+
export declare function NewsletterServiceControllerMethods(): (constructor: Function) => void;
|
|
522
|
+
export declare const NEWSLETTER_SERVICE_NAME = "NewsletterService";
|
|
481
523
|
export interface TelegramChatsServiceClient {
|
|
482
524
|
listChats(request: ListChatsRequest): Observable<ListChatsResponse>;
|
|
483
525
|
upsertChat(request: UpsertChatRequest): Observable<TelegramChatResponse>;
|
package/dist/gen/notification.js
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: notification.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.BRANDING_SERVICE_NAME = exports.CAMPAIGNS_SERVICE_NAME = exports.TELEGRAM_CHATS_SERVICE_NAME = exports.NOTIFICATION_CONSENT_SERVICE_NAME = exports.NOTIFICATION_LOGS_SERVICE_NAME = exports.NOTIFICATION_TEMPLATE_SERVICE_NAME = exports.NOTIFICATION_V1_PACKAGE_NAME = exports.TelegramTopic = exports.NotificationStatus = exports.NotificationCategory = exports.NotificationLocale = exports.NotificationChannel = exports.CampaignRecipientStatusEnum = exports.CampaignStatusEnum = exports.protobufPackage = void 0;
|
|
8
|
+
exports.BRANDING_SERVICE_NAME = exports.CAMPAIGNS_SERVICE_NAME = exports.TELEGRAM_CHATS_SERVICE_NAME = exports.NEWSLETTER_SERVICE_NAME = exports.NOTIFICATION_CONSENT_SERVICE_NAME = exports.NOTIFICATION_LOGS_SERVICE_NAME = exports.NOTIFICATION_TEMPLATE_SERVICE_NAME = exports.NOTIFICATION_V1_PACKAGE_NAME = exports.TelegramTopic = exports.NotificationStatus = exports.NotificationCategory = exports.NotificationLocale = exports.NotificationChannel = exports.CampaignRecipientStatusEnum = exports.CampaignStatusEnum = exports.protobufPackage = void 0;
|
|
9
9
|
exports.NotificationTemplateServiceControllerMethods = NotificationTemplateServiceControllerMethods;
|
|
10
10
|
exports.NotificationLogsServiceControllerMethods = NotificationLogsServiceControllerMethods;
|
|
11
11
|
exports.NotificationConsentServiceControllerMethods = NotificationConsentServiceControllerMethods;
|
|
12
|
+
exports.NewsletterServiceControllerMethods = NewsletterServiceControllerMethods;
|
|
12
13
|
exports.TelegramChatsServiceControllerMethods = TelegramChatsServiceControllerMethods;
|
|
13
14
|
exports.CampaignsServiceControllerMethods = CampaignsServiceControllerMethods;
|
|
14
15
|
exports.BrandingServiceControllerMethods = BrandingServiceControllerMethods;
|
|
@@ -143,6 +144,21 @@ function NotificationConsentServiceControllerMethods() {
|
|
|
143
144
|
};
|
|
144
145
|
}
|
|
145
146
|
exports.NOTIFICATION_CONSENT_SERVICE_NAME = "NotificationConsentService";
|
|
147
|
+
function NewsletterServiceControllerMethods() {
|
|
148
|
+
return function (constructor) {
|
|
149
|
+
const grpcMethods = ["subscribe", "listSubscribers"];
|
|
150
|
+
for (const method of grpcMethods) {
|
|
151
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
152
|
+
(0, microservices_1.GrpcMethod)("NewsletterService", method)(constructor.prototype[method], method, descriptor);
|
|
153
|
+
}
|
|
154
|
+
const grpcStreamMethods = [];
|
|
155
|
+
for (const method of grpcStreamMethods) {
|
|
156
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
157
|
+
(0, microservices_1.GrpcStreamMethod)("NewsletterService", method)(constructor.prototype[method], method, descriptor);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
exports.NEWSLETTER_SERVICE_NAME = "NewsletterService";
|
|
146
162
|
function TelegramChatsServiceControllerMethods() {
|
|
147
163
|
return function (constructor) {
|
|
148
164
|
const grpcMethods = ["listChats", "upsertChat", "deleteChat", "testSendTelegram"];
|
package/dist/gen/payment.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export interface PaymentProviderInfo {
|
|
|
30
30
|
description: string;
|
|
31
31
|
configured: boolean;
|
|
32
32
|
installmentMaxParts: number;
|
|
33
|
+
environment: string;
|
|
34
|
+
blockedByMode: boolean;
|
|
33
35
|
}
|
|
34
36
|
export interface CreateInvoiceRequest {
|
|
35
37
|
orderId: string;
|
|
@@ -146,6 +148,20 @@ export interface UpdateProviderConfigRequest {
|
|
|
146
148
|
fields: ProviderConfigPatch[];
|
|
147
149
|
actorId: string;
|
|
148
150
|
}
|
|
151
|
+
export interface GetPaymentsModeRequest {
|
|
152
|
+
}
|
|
153
|
+
export interface SetPaymentsModeRequest {
|
|
154
|
+
mode: string;
|
|
155
|
+
actorId: string;
|
|
156
|
+
confirmation: string;
|
|
157
|
+
}
|
|
158
|
+
export interface PaymentsModeResponse {
|
|
159
|
+
ok: boolean;
|
|
160
|
+
mode: string;
|
|
161
|
+
updatedAt: number;
|
|
162
|
+
updatedBy: string;
|
|
163
|
+
blockedProviders: string[];
|
|
164
|
+
}
|
|
149
165
|
export declare const PAYMENT_V1_PACKAGE_NAME = "payment.v1";
|
|
150
166
|
export interface PaymentServiceClient {
|
|
151
167
|
createInvoice(request: CreateInvoiceRequest): Observable<PaymentResponse>;
|
|
@@ -162,6 +178,8 @@ export interface PaymentServiceClient {
|
|
|
162
178
|
toggleProvider(request: ToggleProviderRequest): Observable<ToggleProviderResponse>;
|
|
163
179
|
getProviderConfig(request: GetProviderConfigRequest): Observable<ProviderConfigResponse>;
|
|
164
180
|
updateProviderConfig(request: UpdateProviderConfigRequest): Observable<ProviderConfigResponse>;
|
|
181
|
+
getPaymentsMode(request: GetPaymentsModeRequest): Observable<PaymentsModeResponse>;
|
|
182
|
+
setPaymentsMode(request: SetPaymentsModeRequest): Observable<PaymentsModeResponse>;
|
|
165
183
|
}
|
|
166
184
|
export interface PaymentServiceController {
|
|
167
185
|
createInvoice(request: CreateInvoiceRequest): Promise<PaymentResponse> | Observable<PaymentResponse> | PaymentResponse;
|
|
@@ -178,6 +196,8 @@ export interface PaymentServiceController {
|
|
|
178
196
|
toggleProvider(request: ToggleProviderRequest): Promise<ToggleProviderResponse> | Observable<ToggleProviderResponse> | ToggleProviderResponse;
|
|
179
197
|
getProviderConfig(request: GetProviderConfigRequest): Promise<ProviderConfigResponse> | Observable<ProviderConfigResponse> | ProviderConfigResponse;
|
|
180
198
|
updateProviderConfig(request: UpdateProviderConfigRequest): Promise<ProviderConfigResponse> | Observable<ProviderConfigResponse> | ProviderConfigResponse;
|
|
199
|
+
getPaymentsMode(request: GetPaymentsModeRequest): Promise<PaymentsModeResponse> | Observable<PaymentsModeResponse> | PaymentsModeResponse;
|
|
200
|
+
setPaymentsMode(request: SetPaymentsModeRequest): Promise<PaymentsModeResponse> | Observable<PaymentsModeResponse> | PaymentsModeResponse;
|
|
181
201
|
}
|
|
182
202
|
export declare function PaymentServiceControllerMethods(): (constructor: Function) => void;
|
|
183
203
|
export declare const PAYMENT_SERVICE_NAME = "PaymentService";
|
package/dist/gen/payment.js
CHANGED
|
@@ -28,6 +28,8 @@ function PaymentServiceControllerMethods() {
|
|
|
28
28
|
"toggleProvider",
|
|
29
29
|
"getProviderConfig",
|
|
30
30
|
"updateProviderConfig",
|
|
31
|
+
"getPaymentsMode",
|
|
32
|
+
"setPaymentsMode",
|
|
31
33
|
];
|
|
32
34
|
for (const method of grpcMethods) {
|
|
33
35
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/dist/gen/product.d.ts
CHANGED
|
@@ -171,6 +171,9 @@ export interface ProductDetailResponse {
|
|
|
171
171
|
weightKg: number;
|
|
172
172
|
article1c?: string | undefined;
|
|
173
173
|
barcodes: string[];
|
|
174
|
+
seoText: {
|
|
175
|
+
[key: string]: string;
|
|
176
|
+
};
|
|
174
177
|
}
|
|
175
178
|
export interface ProductDetailResponse_NameEntry {
|
|
176
179
|
key: string;
|
|
@@ -208,6 +211,10 @@ export interface ProductDetailResponse_ColorLabelEntry {
|
|
|
208
211
|
key: string;
|
|
209
212
|
value: string;
|
|
210
213
|
}
|
|
214
|
+
export interface ProductDetailResponse_SeoTextEntry {
|
|
215
|
+
key: string;
|
|
216
|
+
value: string;
|
|
217
|
+
}
|
|
211
218
|
export interface ProductImageResponse {
|
|
212
219
|
id: string;
|
|
213
220
|
url: string;
|
|
@@ -395,6 +402,9 @@ export interface CreateProductRequest {
|
|
|
395
402
|
};
|
|
396
403
|
colorHex?: string | undefined;
|
|
397
404
|
weightKg?: number | undefined;
|
|
405
|
+
seoText: {
|
|
406
|
+
[key: string]: string;
|
|
407
|
+
};
|
|
398
408
|
}
|
|
399
409
|
export interface CreateProductRequest_NameEntry {
|
|
400
410
|
key: string;
|
|
@@ -420,6 +430,10 @@ export interface CreateProductRequest_ColorLabelEntry {
|
|
|
420
430
|
key: string;
|
|
421
431
|
value: string;
|
|
422
432
|
}
|
|
433
|
+
export interface CreateProductRequest_SeoTextEntry {
|
|
434
|
+
key: string;
|
|
435
|
+
value: string;
|
|
436
|
+
}
|
|
423
437
|
export interface UpdateProductRequest {
|
|
424
438
|
id: string;
|
|
425
439
|
sku?: string | undefined;
|
|
@@ -464,6 +478,9 @@ export interface UpdateProductRequest {
|
|
|
464
478
|
clearCategories: boolean;
|
|
465
479
|
clearStickers: boolean;
|
|
466
480
|
clearAttributes: boolean;
|
|
481
|
+
seoText: {
|
|
482
|
+
[key: string]: string;
|
|
483
|
+
};
|
|
467
484
|
}
|
|
468
485
|
export interface UpdateProductRequest_NameEntry {
|
|
469
486
|
key: string;
|
|
@@ -489,6 +506,10 @@ export interface UpdateProductRequest_ColorLabelEntry {
|
|
|
489
506
|
key: string;
|
|
490
507
|
value: string;
|
|
491
508
|
}
|
|
509
|
+
export interface UpdateProductRequest_SeoTextEntry {
|
|
510
|
+
key: string;
|
|
511
|
+
value: string;
|
|
512
|
+
}
|
|
492
513
|
export interface SetManualRatingRequest {
|
|
493
514
|
id: string;
|
|
494
515
|
manualRating?: number | undefined;
|
|
@@ -29,6 +29,7 @@ export interface SiteSettingsResponse {
|
|
|
29
29
|
updatedAt: string;
|
|
30
30
|
workingHours?: string | undefined;
|
|
31
31
|
workingHoursNote?: string | undefined;
|
|
32
|
+
sizeCategorySlugs?: string | undefined;
|
|
32
33
|
}
|
|
33
34
|
export interface GetSiteSettingsRequest {
|
|
34
35
|
}
|
|
@@ -43,6 +44,7 @@ export interface UpdateSiteSettingsRequest {
|
|
|
43
44
|
clearTelegramUrl: boolean;
|
|
44
45
|
workingHours?: string | undefined;
|
|
45
46
|
workingHoursNote?: string | undefined;
|
|
47
|
+
sizeCategorySlugs?: string | undefined;
|
|
46
48
|
}
|
|
47
49
|
export declare const CONTENT_V1_PACKAGE_NAME = "content.v1";
|
|
48
50
|
export interface SettingsServiceClient {
|
|
@@ -50,6 +50,51 @@ service NotificationConsentService {
|
|
|
50
50
|
rpc ApplyUnsubscribe(ApplyUnsubscribeRequest) returns (ApplyUnsubscribeResponse);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
|
|
54
|
+
service NewsletterService {
|
|
55
|
+
rpc Subscribe(NewsletterSubscribeRequest) returns (NewsletterSubscribeResponse);
|
|
56
|
+
rpc ListSubscribers(ListNewsletterSubscribersRequest) returns (ListNewsletterSubscribersResponse);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message NewsletterSubscribeRequest {
|
|
60
|
+
string email = 1;
|
|
61
|
+
optional string locale = 2;
|
|
62
|
+
optional string source = 3;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message NewsletterSubscribeResponse {
|
|
66
|
+
bool ok = 1;
|
|
67
|
+
string error_message = 2;
|
|
68
|
+
|
|
69
|
+
bool already_subscribed = 3;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message ListNewsletterSubscribersRequest {
|
|
73
|
+
int32 page = 1;
|
|
74
|
+
int32 limit = 2;
|
|
75
|
+
optional string search = 3;
|
|
76
|
+
|
|
77
|
+
optional bool active = 4;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message NewsletterSubscriberItem {
|
|
81
|
+
string id = 1;
|
|
82
|
+
string email = 2;
|
|
83
|
+
string locale = 3;
|
|
84
|
+
string source = 4;
|
|
85
|
+
bool active = 5;
|
|
86
|
+
string created_at = 6;
|
|
87
|
+
optional string unsubscribed_at = 7;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message ListNewsletterSubscribersResponse {
|
|
91
|
+
repeated NewsletterSubscriberItem items = 1;
|
|
92
|
+
int32 total = 2;
|
|
93
|
+
int32 page = 3;
|
|
94
|
+
int32 limit = 4;
|
|
95
|
+
int32 active_total = 5;
|
|
96
|
+
}
|
|
97
|
+
|
|
53
98
|
message VerifyUnsubscribeTokenRequest {
|
|
54
99
|
string token = 1;
|
|
55
100
|
}
|
package/dist/proto/payment.proto
CHANGED
|
@@ -33,6 +33,10 @@ service PaymentService {
|
|
|
33
33
|
rpc GetProviderConfig(GetProviderConfigRequest) returns (ProviderConfigResponse);
|
|
34
34
|
|
|
35
35
|
rpc UpdateProviderConfig(UpdateProviderConfigRequest) returns (ProviderConfigResponse);
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
rpc GetPaymentsMode(GetPaymentsModeRequest) returns (PaymentsModeResponse);
|
|
39
|
+
rpc SetPaymentsMode(SetPaymentsModeRequest) returns (PaymentsModeResponse);
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
|
|
@@ -71,6 +75,12 @@ message PaymentProviderInfo {
|
|
|
71
75
|
bool configured = 6;
|
|
72
76
|
|
|
73
77
|
int32 installment_max_parts = 7;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
string environment = 8;
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
bool blocked_by_mode = 9;
|
|
74
84
|
}
|
|
75
85
|
|
|
76
86
|
|
|
@@ -216,3 +226,25 @@ message UpdateProviderConfigRequest {
|
|
|
216
226
|
repeated ProviderConfigPatch fields = 2;
|
|
217
227
|
string actor_id = 3;
|
|
218
228
|
}
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
message GetPaymentsModeRequest {}
|
|
232
|
+
|
|
233
|
+
message SetPaymentsModeRequest {
|
|
234
|
+
|
|
235
|
+
string mode = 1;
|
|
236
|
+
string actor_id = 2;
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
string confirmation = 3;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
message PaymentsModeResponse {
|
|
243
|
+
bool ok = 1;
|
|
244
|
+
string mode = 2;
|
|
245
|
+
int64 updated_at = 3;
|
|
246
|
+
string updated_by = 4;
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
repeated string blocked_providers = 5;
|
|
250
|
+
}
|
package/dist/proto/product.proto
CHANGED
|
@@ -248,6 +248,9 @@ message ProductDetailResponse {
|
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
repeated string barcodes = 42;
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
map<string, string> seo_text = 43;
|
|
251
254
|
}
|
|
252
255
|
|
|
253
256
|
|
|
@@ -414,6 +417,9 @@ message CreateProductRequest {
|
|
|
414
417
|
map<string, string> color_label = 25;
|
|
415
418
|
optional string color_hex = 26;
|
|
416
419
|
optional double weight_kg = 27;
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
map<string, string> seo_text = 28;
|
|
417
423
|
}
|
|
418
424
|
|
|
419
425
|
message UpdateProductRequest {
|
|
@@ -456,6 +462,8 @@ message UpdateProductRequest {
|
|
|
456
462
|
bool clear_categories = 29;
|
|
457
463
|
bool clear_stickers = 30;
|
|
458
464
|
bool clear_attributes = 31;
|
|
465
|
+
|
|
466
|
+
map<string, string> seo_text = 32;
|
|
459
467
|
}
|
|
460
468
|
|
|
461
469
|
message SetManualRatingRequest {
|
|
@@ -42,6 +42,8 @@ message SiteSettingsResponse {
|
|
|
42
42
|
|
|
43
43
|
optional string working_hours = 7;
|
|
44
44
|
optional string working_hours_note = 8;
|
|
45
|
+
|
|
46
|
+
optional string size_category_slugs = 9;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
|
|
@@ -62,4 +64,6 @@ message UpdateSiteSettingsRequest {
|
|
|
62
64
|
|
|
63
65
|
optional string working_hours = 9;
|
|
64
66
|
optional string working_hours_note = 10;
|
|
67
|
+
|
|
68
|
+
optional string size_category_slugs = 11;
|
|
65
69
|
}
|
package/gen/category.ts
CHANGED
|
@@ -196,6 +196,7 @@ export interface UpdateCategoryRequest {
|
|
|
196
196
|
metaKeywords: { [key: string]: string };
|
|
197
197
|
metaH1: { [key: string]: string };
|
|
198
198
|
imageId?: string | undefined;
|
|
199
|
+
guid1c?: string | undefined;
|
|
199
200
|
}
|
|
200
201
|
|
|
201
202
|
export interface UpdateCategoryRequest_NameEntry {
|
package/gen/notification.ts
CHANGED
|
@@ -99,6 +99,43 @@ export interface SendToCustomerResponse {
|
|
|
99
99
|
logId: string;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
export interface NewsletterSubscribeRequest {
|
|
103
|
+
email: string;
|
|
104
|
+
locale?: string | undefined;
|
|
105
|
+
source?: string | undefined;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface NewsletterSubscribeResponse {
|
|
109
|
+
ok: boolean;
|
|
110
|
+
errorMessage: string;
|
|
111
|
+
alreadySubscribed: boolean;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface ListNewsletterSubscribersRequest {
|
|
115
|
+
page: number;
|
|
116
|
+
limit: number;
|
|
117
|
+
search?: string | undefined;
|
|
118
|
+
active?: boolean | undefined;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface NewsletterSubscriberItem {
|
|
122
|
+
id: string;
|
|
123
|
+
email: string;
|
|
124
|
+
locale: string;
|
|
125
|
+
source: string;
|
|
126
|
+
active: boolean;
|
|
127
|
+
createdAt: string;
|
|
128
|
+
unsubscribedAt?: string | undefined;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface ListNewsletterSubscribersResponse {
|
|
132
|
+
items: NewsletterSubscriberItem[];
|
|
133
|
+
total: number;
|
|
134
|
+
page: number;
|
|
135
|
+
limit: number;
|
|
136
|
+
activeTotal: number;
|
|
137
|
+
}
|
|
138
|
+
|
|
102
139
|
export interface VerifyUnsubscribeTokenRequest {
|
|
103
140
|
token: string;
|
|
104
141
|
}
|
|
@@ -658,6 +695,42 @@ export function NotificationConsentServiceControllerMethods() {
|
|
|
658
695
|
|
|
659
696
|
export const NOTIFICATION_CONSENT_SERVICE_NAME = "NotificationConsentService";
|
|
660
697
|
|
|
698
|
+
export interface NewsletterServiceClient {
|
|
699
|
+
subscribe(request: NewsletterSubscribeRequest): Observable<NewsletterSubscribeResponse>;
|
|
700
|
+
|
|
701
|
+
listSubscribers(request: ListNewsletterSubscribersRequest): Observable<ListNewsletterSubscribersResponse>;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export interface NewsletterServiceController {
|
|
705
|
+
subscribe(
|
|
706
|
+
request: NewsletterSubscribeRequest,
|
|
707
|
+
): Promise<NewsletterSubscribeResponse> | Observable<NewsletterSubscribeResponse> | NewsletterSubscribeResponse;
|
|
708
|
+
|
|
709
|
+
listSubscribers(
|
|
710
|
+
request: ListNewsletterSubscribersRequest,
|
|
711
|
+
):
|
|
712
|
+
| Promise<ListNewsletterSubscribersResponse>
|
|
713
|
+
| Observable<ListNewsletterSubscribersResponse>
|
|
714
|
+
| ListNewsletterSubscribersResponse;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export function NewsletterServiceControllerMethods() {
|
|
718
|
+
return function (constructor: Function) {
|
|
719
|
+
const grpcMethods: string[] = ["subscribe", "listSubscribers"];
|
|
720
|
+
for (const method of grpcMethods) {
|
|
721
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
722
|
+
GrpcMethod("NewsletterService", method)(constructor.prototype[method], method, descriptor);
|
|
723
|
+
}
|
|
724
|
+
const grpcStreamMethods: string[] = [];
|
|
725
|
+
for (const method of grpcStreamMethods) {
|
|
726
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
727
|
+
GrpcStreamMethod("NewsletterService", method)(constructor.prototype[method], method, descriptor);
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export const NEWSLETTER_SERVICE_NAME = "NewsletterService";
|
|
733
|
+
|
|
661
734
|
export interface TelegramChatsServiceClient {
|
|
662
735
|
listChats(request: ListChatsRequest): Observable<ListChatsResponse>;
|
|
663
736
|
|
package/gen/payment.ts
CHANGED
|
@@ -41,6 +41,8 @@ export interface PaymentProviderInfo {
|
|
|
41
41
|
description: string;
|
|
42
42
|
configured: boolean;
|
|
43
43
|
installmentMaxParts: number;
|
|
44
|
+
environment: string;
|
|
45
|
+
blockedByMode: boolean;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
export interface CreateInvoiceRequest {
|
|
@@ -180,6 +182,23 @@ export interface UpdateProviderConfigRequest {
|
|
|
180
182
|
actorId: string;
|
|
181
183
|
}
|
|
182
184
|
|
|
185
|
+
export interface GetPaymentsModeRequest {
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface SetPaymentsModeRequest {
|
|
189
|
+
mode: string;
|
|
190
|
+
actorId: string;
|
|
191
|
+
confirmation: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface PaymentsModeResponse {
|
|
195
|
+
ok: boolean;
|
|
196
|
+
mode: string;
|
|
197
|
+
updatedAt: number;
|
|
198
|
+
updatedBy: string;
|
|
199
|
+
blockedProviders: string[];
|
|
200
|
+
}
|
|
201
|
+
|
|
183
202
|
export const PAYMENT_V1_PACKAGE_NAME = "payment.v1";
|
|
184
203
|
|
|
185
204
|
export interface PaymentServiceClient {
|
|
@@ -210,6 +229,10 @@ export interface PaymentServiceClient {
|
|
|
210
229
|
getProviderConfig(request: GetProviderConfigRequest): Observable<ProviderConfigResponse>;
|
|
211
230
|
|
|
212
231
|
updateProviderConfig(request: UpdateProviderConfigRequest): Observable<ProviderConfigResponse>;
|
|
232
|
+
|
|
233
|
+
getPaymentsMode(request: GetPaymentsModeRequest): Observable<PaymentsModeResponse>;
|
|
234
|
+
|
|
235
|
+
setPaymentsMode(request: SetPaymentsModeRequest): Observable<PaymentsModeResponse>;
|
|
213
236
|
}
|
|
214
237
|
|
|
215
238
|
export interface PaymentServiceController {
|
|
@@ -258,6 +281,14 @@ export interface PaymentServiceController {
|
|
|
258
281
|
updateProviderConfig(
|
|
259
282
|
request: UpdateProviderConfigRequest,
|
|
260
283
|
): Promise<ProviderConfigResponse> | Observable<ProviderConfigResponse> | ProviderConfigResponse;
|
|
284
|
+
|
|
285
|
+
getPaymentsMode(
|
|
286
|
+
request: GetPaymentsModeRequest,
|
|
287
|
+
): Promise<PaymentsModeResponse> | Observable<PaymentsModeResponse> | PaymentsModeResponse;
|
|
288
|
+
|
|
289
|
+
setPaymentsMode(
|
|
290
|
+
request: SetPaymentsModeRequest,
|
|
291
|
+
): Promise<PaymentsModeResponse> | Observable<PaymentsModeResponse> | PaymentsModeResponse;
|
|
261
292
|
}
|
|
262
293
|
|
|
263
294
|
export function PaymentServiceControllerMethods() {
|
|
@@ -277,6 +308,8 @@ export function PaymentServiceControllerMethods() {
|
|
|
277
308
|
"toggleProvider",
|
|
278
309
|
"getProviderConfig",
|
|
279
310
|
"updateProviderConfig",
|
|
311
|
+
"getPaymentsMode",
|
|
312
|
+
"setPaymentsMode",
|
|
280
313
|
];
|
|
281
314
|
for (const method of grpcMethods) {
|
|
282
315
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/gen/product.ts
CHANGED
|
@@ -176,6 +176,7 @@ export interface ProductDetailResponse {
|
|
|
176
176
|
weightKg: number;
|
|
177
177
|
article1c?: string | undefined;
|
|
178
178
|
barcodes: string[];
|
|
179
|
+
seoText: { [key: string]: string };
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
export interface ProductDetailResponse_NameEntry {
|
|
@@ -223,6 +224,11 @@ export interface ProductDetailResponse_ColorLabelEntry {
|
|
|
223
224
|
value: string;
|
|
224
225
|
}
|
|
225
226
|
|
|
227
|
+
export interface ProductDetailResponse_SeoTextEntry {
|
|
228
|
+
key: string;
|
|
229
|
+
value: string;
|
|
230
|
+
}
|
|
231
|
+
|
|
226
232
|
export interface ProductImageResponse {
|
|
227
233
|
id: string;
|
|
228
234
|
url: string;
|
|
@@ -403,6 +409,7 @@ export interface CreateProductRequest {
|
|
|
403
409
|
colorLabel: { [key: string]: string };
|
|
404
410
|
colorHex?: string | undefined;
|
|
405
411
|
weightKg?: number | undefined;
|
|
412
|
+
seoText: { [key: string]: string };
|
|
406
413
|
}
|
|
407
414
|
|
|
408
415
|
export interface CreateProductRequest_NameEntry {
|
|
@@ -435,6 +442,11 @@ export interface CreateProductRequest_ColorLabelEntry {
|
|
|
435
442
|
value: string;
|
|
436
443
|
}
|
|
437
444
|
|
|
445
|
+
export interface CreateProductRequest_SeoTextEntry {
|
|
446
|
+
key: string;
|
|
447
|
+
value: string;
|
|
448
|
+
}
|
|
449
|
+
|
|
438
450
|
export interface UpdateProductRequest {
|
|
439
451
|
id: string;
|
|
440
452
|
sku?: string | undefined;
|
|
@@ -467,6 +479,7 @@ export interface UpdateProductRequest {
|
|
|
467
479
|
clearCategories: boolean;
|
|
468
480
|
clearStickers: boolean;
|
|
469
481
|
clearAttributes: boolean;
|
|
482
|
+
seoText: { [key: string]: string };
|
|
470
483
|
}
|
|
471
484
|
|
|
472
485
|
export interface UpdateProductRequest_NameEntry {
|
|
@@ -499,6 +512,11 @@ export interface UpdateProductRequest_ColorLabelEntry {
|
|
|
499
512
|
value: string;
|
|
500
513
|
}
|
|
501
514
|
|
|
515
|
+
export interface UpdateProductRequest_SeoTextEntry {
|
|
516
|
+
key: string;
|
|
517
|
+
value: string;
|
|
518
|
+
}
|
|
519
|
+
|
|
502
520
|
export interface SetManualRatingRequest {
|
|
503
521
|
id: string;
|
|
504
522
|
manualRating?: number | undefined;
|
package/gen/site_settings.ts
CHANGED
|
@@ -42,6 +42,7 @@ export interface SiteSettingsResponse {
|
|
|
42
42
|
updatedAt: string;
|
|
43
43
|
workingHours?: string | undefined;
|
|
44
44
|
workingHoursNote?: string | undefined;
|
|
45
|
+
sizeCategorySlugs?: string | undefined;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
export interface GetSiteSettingsRequest {
|
|
@@ -58,6 +59,7 @@ export interface UpdateSiteSettingsRequest {
|
|
|
58
59
|
clearTelegramUrl: boolean;
|
|
59
60
|
workingHours?: string | undefined;
|
|
60
61
|
workingHoursNote?: string | undefined;
|
|
62
|
+
sizeCategorySlugs?: string | undefined;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
export const CONTENT_V1_PACKAGE_NAME = "content.v1";
|
package/package.json
CHANGED
package/proto/category.proto
CHANGED
package/proto/notification.proto
CHANGED
|
@@ -50,6 +50,51 @@ service NotificationConsentService {
|
|
|
50
50
|
rpc ApplyUnsubscribe(ApplyUnsubscribeRequest) returns (ApplyUnsubscribeResponse);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
|
|
54
|
+
service NewsletterService {
|
|
55
|
+
rpc Subscribe(NewsletterSubscribeRequest) returns (NewsletterSubscribeResponse);
|
|
56
|
+
rpc ListSubscribers(ListNewsletterSubscribersRequest) returns (ListNewsletterSubscribersResponse);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message NewsletterSubscribeRequest {
|
|
60
|
+
string email = 1;
|
|
61
|
+
optional string locale = 2;
|
|
62
|
+
optional string source = 3;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message NewsletterSubscribeResponse {
|
|
66
|
+
bool ok = 1;
|
|
67
|
+
string error_message = 2;
|
|
68
|
+
|
|
69
|
+
bool already_subscribed = 3;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message ListNewsletterSubscribersRequest {
|
|
73
|
+
int32 page = 1;
|
|
74
|
+
int32 limit = 2;
|
|
75
|
+
optional string search = 3;
|
|
76
|
+
|
|
77
|
+
optional bool active = 4;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message NewsletterSubscriberItem {
|
|
81
|
+
string id = 1;
|
|
82
|
+
string email = 2;
|
|
83
|
+
string locale = 3;
|
|
84
|
+
string source = 4;
|
|
85
|
+
bool active = 5;
|
|
86
|
+
string created_at = 6;
|
|
87
|
+
optional string unsubscribed_at = 7;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message ListNewsletterSubscribersResponse {
|
|
91
|
+
repeated NewsletterSubscriberItem items = 1;
|
|
92
|
+
int32 total = 2;
|
|
93
|
+
int32 page = 3;
|
|
94
|
+
int32 limit = 4;
|
|
95
|
+
int32 active_total = 5;
|
|
96
|
+
}
|
|
97
|
+
|
|
53
98
|
message VerifyUnsubscribeTokenRequest {
|
|
54
99
|
string token = 1;
|
|
55
100
|
}
|
package/proto/payment.proto
CHANGED
|
@@ -33,6 +33,10 @@ service PaymentService {
|
|
|
33
33
|
rpc GetProviderConfig(GetProviderConfigRequest) returns (ProviderConfigResponse);
|
|
34
34
|
|
|
35
35
|
rpc UpdateProviderConfig(UpdateProviderConfigRequest) returns (ProviderConfigResponse);
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
rpc GetPaymentsMode(GetPaymentsModeRequest) returns (PaymentsModeResponse);
|
|
39
|
+
rpc SetPaymentsMode(SetPaymentsModeRequest) returns (PaymentsModeResponse);
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
|
|
@@ -71,6 +75,12 @@ message PaymentProviderInfo {
|
|
|
71
75
|
bool configured = 6;
|
|
72
76
|
|
|
73
77
|
int32 installment_max_parts = 7;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
string environment = 8;
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
bool blocked_by_mode = 9;
|
|
74
84
|
}
|
|
75
85
|
|
|
76
86
|
|
|
@@ -216,3 +226,25 @@ message UpdateProviderConfigRequest {
|
|
|
216
226
|
repeated ProviderConfigPatch fields = 2;
|
|
217
227
|
string actor_id = 3;
|
|
218
228
|
}
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
message GetPaymentsModeRequest {}
|
|
232
|
+
|
|
233
|
+
message SetPaymentsModeRequest {
|
|
234
|
+
|
|
235
|
+
string mode = 1;
|
|
236
|
+
string actor_id = 2;
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
string confirmation = 3;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
message PaymentsModeResponse {
|
|
243
|
+
bool ok = 1;
|
|
244
|
+
string mode = 2;
|
|
245
|
+
int64 updated_at = 3;
|
|
246
|
+
string updated_by = 4;
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
repeated string blocked_providers = 5;
|
|
250
|
+
}
|
package/proto/product.proto
CHANGED
|
@@ -248,6 +248,9 @@ message ProductDetailResponse {
|
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
repeated string barcodes = 42;
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
map<string, string> seo_text = 43;
|
|
251
254
|
}
|
|
252
255
|
|
|
253
256
|
|
|
@@ -414,6 +417,9 @@ message CreateProductRequest {
|
|
|
414
417
|
map<string, string> color_label = 25;
|
|
415
418
|
optional string color_hex = 26;
|
|
416
419
|
optional double weight_kg = 27;
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
map<string, string> seo_text = 28;
|
|
417
423
|
}
|
|
418
424
|
|
|
419
425
|
message UpdateProductRequest {
|
|
@@ -456,6 +462,8 @@ message UpdateProductRequest {
|
|
|
456
462
|
bool clear_categories = 29;
|
|
457
463
|
bool clear_stickers = 30;
|
|
458
464
|
bool clear_attributes = 31;
|
|
465
|
+
|
|
466
|
+
map<string, string> seo_text = 32;
|
|
459
467
|
}
|
|
460
468
|
|
|
461
469
|
message SetManualRatingRequest {
|
|
@@ -42,6 +42,8 @@ message SiteSettingsResponse {
|
|
|
42
42
|
|
|
43
43
|
optional string working_hours = 7;
|
|
44
44
|
optional string working_hours_note = 8;
|
|
45
|
+
|
|
46
|
+
optional string size_category_slugs = 9;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
|
|
@@ -62,4 +64,6 @@ message UpdateSiteSettingsRequest {
|
|
|
62
64
|
|
|
63
65
|
optional string working_hours = 9;
|
|
64
66
|
optional string working_hours_note = 10;
|
|
67
|
+
|
|
68
|
+
optional string size_category_slugs = 11;
|
|
65
69
|
}
|