@mamindom/contracts 1.0.168 → 1.0.169
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/proto/account.proto +35 -41
- package/dist/proto/attribute.proto +37 -48
- package/dist/proto/audit.proto +33 -33
- package/dist/proto/auth.proto +9 -15
- package/dist/proto/banner.proto +17 -27
- package/dist/proto/bonus_settings.proto +11 -16
- package/dist/proto/brand.proto +16 -24
- package/dist/proto/bundle.proto +46 -58
- package/dist/proto/calculation.proto +28 -34
- package/dist/proto/cart.proto +84 -90
- package/dist/proto/category.proto +21 -30
- package/dist/proto/common.proto +6 -7
- package/dist/proto/common_post.proto +4 -4
- package/dist/proto/coupon.proto +43 -56
- package/dist/proto/crm_calculation.proto +47 -57
- package/dist/proto/delivery.proto +67 -69
- package/dist/proto/delivery_settings.proto +27 -36
- package/dist/proto/faq.proto +30 -43
- package/dist/proto/manager.proto +44 -32
- package/dist/proto/media.proto +9 -19
- package/dist/proto/notification.proto +76 -111
- package/dist/proto/order.proto +142 -151
- package/dist/proto/size_chart.proto +17 -19
- package/dist/proto/warehouse.proto +4 -5
- package/package.json +1 -1
- package/proto/account.proto +35 -41
- package/proto/attribute.proto +37 -48
- package/proto/audit.proto +33 -33
- package/proto/auth.proto +9 -15
- package/proto/banner.proto +17 -27
- package/proto/bonus_settings.proto +11 -16
- package/proto/brand.proto +16 -24
- package/proto/bundle.proto +46 -58
- package/proto/calculation.proto +28 -34
- package/proto/cart.proto +84 -90
- package/proto/category.proto +21 -30
- package/proto/common.proto +6 -7
- package/proto/common_post.proto +4 -4
- package/proto/coupon.proto +43 -56
- package/proto/crm_calculation.proto +47 -57
- package/proto/delivery.proto +67 -69
- package/proto/delivery_settings.proto +27 -36
- package/proto/faq.proto +30 -43
- package/proto/manager.proto +44 -32
- package/proto/media.proto +9 -19
- package/proto/notification.proto +76 -111
- package/proto/order.proto +142 -151
- package/proto/size_chart.proto +17 -19
- package/proto/warehouse.proto +4 -5
package/proto/manager.proto
CHANGED
|
@@ -5,7 +5,7 @@ package manager.v1;
|
|
|
5
5
|
service ManagerService {
|
|
6
6
|
rpc ListManagers(ListManagersRequest) returns (ListManagersResponse);
|
|
7
7
|
rpc GetManager(GetManagerRequest) returns (ManagerProfileDto);
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
rpc GetManagerByAccount(GetManagerByAccountRequest) returns (ManagerProfileDto);
|
|
10
10
|
rpc CreateManager(CreateManagerRequest) returns (ManagerProfileDto);
|
|
11
11
|
rpc UpdateManager(UpdateManagerRequest) returns (ManagerProfileDto);
|
|
@@ -18,25 +18,25 @@ service ManagerService {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
message Vacation {
|
|
21
|
-
string id
|
|
21
|
+
string id = 1;
|
|
22
22
|
string starts_at = 2;
|
|
23
|
-
string ends_at
|
|
24
|
-
string reason
|
|
23
|
+
string ends_at = 3;
|
|
24
|
+
string reason = 4;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
message ManagerProfileDto {
|
|
28
|
-
string id
|
|
29
|
-
string account_id
|
|
30
|
-
string display_name
|
|
31
|
-
string email
|
|
32
|
-
bool
|
|
33
|
-
int32
|
|
34
|
-
int32
|
|
35
|
-
string terminated_at
|
|
28
|
+
string id = 1;
|
|
29
|
+
string account_id = 2;
|
|
30
|
+
string display_name = 3;
|
|
31
|
+
string email = 4;
|
|
32
|
+
bool is_active = 5;
|
|
33
|
+
int32 queue_order = 6;
|
|
34
|
+
int32 assigned_count = 7;
|
|
35
|
+
string terminated_at = 8;
|
|
36
36
|
string reassignment_strategy = 9;
|
|
37
|
-
repeated Vacation vacations
|
|
38
|
-
string created_at
|
|
39
|
-
string updated_at
|
|
37
|
+
repeated Vacation vacations = 10;
|
|
38
|
+
string created_at = 11;
|
|
39
|
+
string updated_at = 12;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
message ListManagersRequest {}
|
|
@@ -44,30 +44,36 @@ message ListManagersResponse {
|
|
|
44
44
|
repeated ManagerProfileDto items = 1;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
message GetManagerRequest {
|
|
47
|
+
message GetManagerRequest {
|
|
48
|
+
string id = 1;
|
|
49
|
+
}
|
|
48
50
|
|
|
49
|
-
message GetManagerByAccountRequest {
|
|
51
|
+
message GetManagerByAccountRequest {
|
|
52
|
+
string account_id = 1;
|
|
53
|
+
}
|
|
50
54
|
|
|
51
55
|
message CreateManagerRequest {
|
|
52
|
-
string account_id
|
|
53
|
-
optional string display_name
|
|
54
|
-
optional string email
|
|
55
|
-
optional string reassignment_strategy = 4;
|
|
56
|
+
string account_id = 1;
|
|
57
|
+
optional string display_name = 2;
|
|
58
|
+
optional string email = 3;
|
|
59
|
+
optional string reassignment_strategy = 4;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
message UpdateManagerRequest {
|
|
59
|
-
string id
|
|
60
|
-
optional string display_name
|
|
61
|
-
optional string email
|
|
63
|
+
string id = 1;
|
|
64
|
+
optional string display_name = 2;
|
|
65
|
+
optional string email = 3;
|
|
62
66
|
optional string reassignment_strategy = 4;
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
message SetManagerActiveRequest {
|
|
66
|
-
string id
|
|
67
|
-
bool
|
|
70
|
+
string id = 1;
|
|
71
|
+
bool is_active = 2;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
|
-
message TerminateManagerRequest {
|
|
74
|
+
message TerminateManagerRequest {
|
|
75
|
+
string id = 1;
|
|
76
|
+
}
|
|
71
77
|
|
|
72
78
|
message ReorderManagersRequest {
|
|
73
79
|
repeated string ordered_ids = 1;
|
|
@@ -75,13 +81,17 @@ message ReorderManagersRequest {
|
|
|
75
81
|
|
|
76
82
|
message AddVacationRequest {
|
|
77
83
|
string manager_id = 1;
|
|
78
|
-
string starts_at
|
|
79
|
-
string ends_at
|
|
84
|
+
string starts_at = 2;
|
|
85
|
+
string ends_at = 3;
|
|
80
86
|
optional string reason = 4;
|
|
81
87
|
}
|
|
82
|
-
message AddVacationResponse {
|
|
88
|
+
message AddVacationResponse {
|
|
89
|
+
string id = 1;
|
|
90
|
+
}
|
|
83
91
|
|
|
84
|
-
message DeleteVacationRequest {
|
|
92
|
+
message DeleteVacationRequest {
|
|
93
|
+
string id = 1;
|
|
94
|
+
}
|
|
85
95
|
|
|
86
96
|
message ReassignUnassignedRequest {}
|
|
87
97
|
message ReassignUnassignedResponse {
|
|
@@ -89,4 +99,6 @@ message ReassignUnassignedResponse {
|
|
|
89
99
|
int32 reassigned_count = 2;
|
|
90
100
|
}
|
|
91
101
|
|
|
92
|
-
message BoolResult {
|
|
102
|
+
message BoolResult {
|
|
103
|
+
bool ok = 1;
|
|
104
|
+
}
|
package/proto/media.proto
CHANGED
|
@@ -3,21 +3,17 @@ syntax = "proto3";
|
|
|
3
3
|
package media.v1;
|
|
4
4
|
|
|
5
5
|
service MediaService {
|
|
6
|
+
rpc GetPresignedUploadUrl(GetPresignedUrlRequest) returns (GetPresignedUrlResponse);
|
|
7
|
+
rpc GetMultiplePresignedUploadUrls(GetMultiplePresignedUrlsRequest) returns (GetMultiplePresignedUrlsResponse);
|
|
8
|
+
rpc ConfirmUpload(ConfirmUploadRequest) returns (MediaResponse);
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
rpc
|
|
9
|
-
rpc
|
|
10
|
-
rpc
|
|
10
|
+
rpc InitMultipartUpload(InitMultipartUploadRequest) returns (InitMultipartUploadResponse);
|
|
11
|
+
rpc GetMultipartPresignedUrls(GetMultipartPresignedUrlsRequest) returns (GetMultipartPresignedUrlsResponse);
|
|
12
|
+
rpc CompleteMultipartUpload(CompleteMultipartUploadRequest) returns (MediaResponse);
|
|
13
|
+
rpc AbortMultipartUpload(AbortMultipartUploadRequest) returns (AbortMultipartUploadResponse);
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
rpc
|
|
14
|
-
rpc GetMultipartPresignedUrls (GetMultipartPresignedUrlsRequest) returns (GetMultipartPresignedUrlsResponse);
|
|
15
|
-
rpc CompleteMultipartUpload (CompleteMultipartUploadRequest) returns (MediaResponse);
|
|
16
|
-
rpc AbortMultipartUpload (AbortMultipartUploadRequest) returns (AbortMultipartUploadResponse);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
rpc DeleteMedia (DeleteMediaRequest) returns (DeleteMediaResponse);
|
|
20
|
-
rpc GetMedia (GetMediaRequest) returns (MediaResponse);
|
|
15
|
+
rpc DeleteMedia(DeleteMediaRequest) returns (DeleteMediaResponse);
|
|
16
|
+
rpc GetMedia(GetMediaRequest) returns (MediaResponse);
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
enum MediaStatus {
|
|
@@ -35,8 +31,6 @@ enum MediaType {
|
|
|
35
31
|
MEDIA_TYPE_DOCUMENT = 3;
|
|
36
32
|
}
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
|
|
40
34
|
message GetPresignedUrlRequest {
|
|
41
35
|
string file_name = 1;
|
|
42
36
|
string mime_type = 2;
|
|
@@ -62,8 +56,6 @@ message ConfirmUploadRequest {
|
|
|
62
56
|
string file_id = 1;
|
|
63
57
|
}
|
|
64
58
|
|
|
65
|
-
|
|
66
|
-
|
|
67
59
|
message InitMultipartUploadRequest {
|
|
68
60
|
string file_name = 1;
|
|
69
61
|
string mime_type = 2;
|
|
@@ -117,8 +109,6 @@ message AbortMultipartUploadResponse {
|
|
|
117
109
|
bool success = 1;
|
|
118
110
|
}
|
|
119
111
|
|
|
120
|
-
|
|
121
|
-
|
|
122
112
|
message DeleteMediaRequest {
|
|
123
113
|
string file_id = 1;
|
|
124
114
|
}
|
package/proto/notification.proto
CHANGED
|
@@ -2,78 +2,68 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package notification.v1;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
5
|
service NotificationTemplateService {
|
|
8
|
-
rpc ListTemplates
|
|
9
|
-
rpc GetTemplate
|
|
10
|
-
rpc UpsertTemplate
|
|
11
|
-
rpc UpdateTemplate
|
|
12
|
-
rpc ToggleTemplate
|
|
13
|
-
rpc ListVersions
|
|
14
|
-
rpc RestoreVersion
|
|
15
|
-
rpc RenderPreview
|
|
16
|
-
rpc SendTest
|
|
6
|
+
rpc ListTemplates(ListTemplatesRequest) returns (ListTemplatesResponse);
|
|
7
|
+
rpc GetTemplate(GetTemplateRequest) returns (TemplateResponse);
|
|
8
|
+
rpc UpsertTemplate(UpsertTemplateRequest) returns (TemplateResponse);
|
|
9
|
+
rpc UpdateTemplate(UpdateTemplateRequest) returns (TemplateResponse);
|
|
10
|
+
rpc ToggleTemplate(ToggleTemplateRequest) returns (TemplateResponse);
|
|
11
|
+
rpc ListVersions(ListVersionsRequest) returns (ListVersionsResponse);
|
|
12
|
+
rpc RestoreVersion(RestoreVersionRequest) returns (TemplateResponse);
|
|
13
|
+
rpc RenderPreview(RenderPreviewRequest) returns (RenderPreviewResponse);
|
|
14
|
+
rpc SendTest(SendTestRequest) returns (SendTestResponse);
|
|
17
15
|
|
|
18
|
-
rpc SendToCustomer
|
|
16
|
+
rpc SendToCustomer(SendToCustomerRequest) returns (SendToCustomerResponse);
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
|
|
22
19
|
message SendToCustomerRequest {
|
|
23
|
-
|
|
24
20
|
string user_id = 1;
|
|
25
21
|
NotificationChannel channel = 2;
|
|
26
22
|
|
|
27
|
-
|
|
28
23
|
string recipient = 3;
|
|
29
24
|
|
|
30
|
-
|
|
31
25
|
optional string template_id = 4;
|
|
32
26
|
|
|
33
|
-
|
|
34
27
|
optional string custom_subject = 5;
|
|
35
28
|
optional string custom_body_html = 6;
|
|
36
29
|
optional string custom_body_text = 7;
|
|
37
30
|
|
|
38
|
-
|
|
39
31
|
string variables_json = 8;
|
|
40
32
|
|
|
41
|
-
|
|
42
33
|
optional NotificationLocale locale = 9;
|
|
43
34
|
}
|
|
44
35
|
|
|
45
36
|
message SendToCustomerResponse {
|
|
46
37
|
bool ok = 1;
|
|
47
38
|
string error_message = 2;
|
|
48
|
-
|
|
39
|
+
|
|
49
40
|
string log_id = 3;
|
|
50
41
|
}
|
|
51
42
|
|
|
52
43
|
service NotificationLogsService {
|
|
53
|
-
rpc ListLogs
|
|
44
|
+
rpc ListLogs(ListLogsRequest) returns (ListLogsResponse);
|
|
54
45
|
}
|
|
55
46
|
|
|
56
47
|
service TelegramChatsService {
|
|
57
|
-
rpc ListChats
|
|
58
|
-
rpc UpsertChat
|
|
59
|
-
rpc DeleteChat
|
|
60
|
-
rpc TestSendTelegram
|
|
48
|
+
rpc ListChats(ListChatsRequest) returns (ListChatsResponse);
|
|
49
|
+
rpc UpsertChat(UpsertChatRequest) returns (TelegramChatResponse);
|
|
50
|
+
rpc DeleteChat(DeleteChatRequest) returns (DeleteChatResponse);
|
|
51
|
+
rpc TestSendTelegram(TestSendTelegramRequest) returns (TestSendTelegramResponse);
|
|
61
52
|
}
|
|
62
53
|
|
|
63
|
-
|
|
64
54
|
service CampaignsService {
|
|
65
|
-
rpc ListCampaigns
|
|
66
|
-
rpc GetCampaign
|
|
67
|
-
rpc CreateCampaign
|
|
68
|
-
rpc UpdateCampaign
|
|
69
|
-
rpc DeleteCampaign
|
|
70
|
-
rpc StartCampaign
|
|
71
|
-
rpc CancelCampaign
|
|
72
|
-
|
|
73
|
-
rpc PreviewSegment
|
|
74
|
-
|
|
75
|
-
rpc ListRecipients
|
|
76
|
-
|
|
55
|
+
rpc ListCampaigns(ListCampaignsRequest) returns (ListCampaignsResponse);
|
|
56
|
+
rpc GetCampaign(GetCampaignRequest) returns (CampaignResponse);
|
|
57
|
+
rpc CreateCampaign(CreateCampaignRequest) returns (CampaignResponse);
|
|
58
|
+
rpc UpdateCampaign(UpdateCampaignRequest) returns (CampaignResponse);
|
|
59
|
+
rpc DeleteCampaign(DeleteCampaignRequest) returns (DeleteCampaignResponse);
|
|
60
|
+
rpc StartCampaign(StartCampaignRequest) returns (CampaignResponse);
|
|
61
|
+
rpc CancelCampaign(CancelCampaignRequest) returns (CampaignResponse);
|
|
62
|
+
|
|
63
|
+
rpc PreviewSegment(PreviewSegmentRequest) returns (PreviewSegmentResponse);
|
|
64
|
+
|
|
65
|
+
rpc ListRecipients(ListRecipientsRequest) returns (ListRecipientsResponse);
|
|
66
|
+
|
|
77
67
|
rpc EnqueueRecipients(EnqueueRecipientsRequest) returns (EnqueueRecipientsResponse);
|
|
78
68
|
}
|
|
79
69
|
|
|
@@ -84,7 +74,7 @@ message EnqueueRecipientsRequest {
|
|
|
84
74
|
|
|
85
75
|
message CampaignResolvedRecipient {
|
|
86
76
|
string user_id = 1;
|
|
87
|
-
string recipient = 2;
|
|
77
|
+
string recipient = 2;
|
|
88
78
|
bool opt_out = 3;
|
|
89
79
|
|
|
90
80
|
optional string coupon_code = 4;
|
|
@@ -119,7 +109,7 @@ message DeleteCampaignResponse {
|
|
|
119
109
|
|
|
120
110
|
message StartCampaignRequest {
|
|
121
111
|
string id = 1;
|
|
122
|
-
|
|
112
|
+
|
|
123
113
|
optional string scheduled_at = 2;
|
|
124
114
|
}
|
|
125
115
|
|
|
@@ -134,9 +124,9 @@ message CreateCampaignRequest {
|
|
|
134
124
|
optional string custom_subject = 4;
|
|
135
125
|
optional string custom_body_html = 5;
|
|
136
126
|
optional string custom_body_text = 6;
|
|
137
|
-
|
|
127
|
+
|
|
138
128
|
string segment_json = 7;
|
|
139
|
-
|
|
129
|
+
|
|
140
130
|
optional string coupon_spec_json = 8;
|
|
141
131
|
bool respect_opt_out = 9;
|
|
142
132
|
optional NotificationLocale locale = 10;
|
|
@@ -201,12 +191,12 @@ enum CampaignStatusEnum {
|
|
|
201
191
|
|
|
202
192
|
message PreviewSegmentRequest {
|
|
203
193
|
string segment_json = 1;
|
|
204
|
-
NotificationChannel channel = 2;
|
|
194
|
+
NotificationChannel channel = 2;
|
|
205
195
|
}
|
|
206
196
|
|
|
207
197
|
message PreviewSegmentResponse {
|
|
208
198
|
int32 total_count = 1;
|
|
209
|
-
|
|
199
|
+
|
|
210
200
|
repeated PreviewSegmentSample sample = 2;
|
|
211
201
|
}
|
|
212
202
|
|
|
@@ -252,48 +242,44 @@ enum CampaignRecipientStatusEnum {
|
|
|
252
242
|
RECIPIENT_SKIPPED_NO_CONTACT = 5;
|
|
253
243
|
}
|
|
254
244
|
|
|
255
|
-
|
|
256
245
|
service BrandingService {
|
|
257
|
-
rpc GetBranding
|
|
258
|
-
rpc UpdateBranding
|
|
246
|
+
rpc GetBranding(BrandingEmpty) returns (BrandingProfile);
|
|
247
|
+
rpc UpdateBranding(UpdateBrandingRequest) returns (BrandingProfile);
|
|
259
248
|
}
|
|
260
249
|
|
|
261
250
|
message BrandingEmpty {}
|
|
262
251
|
|
|
263
|
-
|
|
264
252
|
message BrandingProfile {
|
|
265
|
-
string logo_url
|
|
266
|
-
string brand_name
|
|
267
|
-
string brand_url
|
|
253
|
+
string logo_url = 1;
|
|
254
|
+
string brand_name = 2;
|
|
255
|
+
string brand_url = 3;
|
|
268
256
|
string support_email = 4;
|
|
269
|
-
string footer_html
|
|
270
|
-
int64
|
|
271
|
-
string updated_by
|
|
257
|
+
string footer_html = 5;
|
|
258
|
+
int64 updated_at = 6;
|
|
259
|
+
string updated_by = 7;
|
|
272
260
|
|
|
273
|
-
string resolved_logo_url
|
|
274
|
-
string resolved_brand_name
|
|
275
|
-
string resolved_brand_url
|
|
261
|
+
string resolved_logo_url = 8;
|
|
262
|
+
string resolved_brand_name = 9;
|
|
263
|
+
string resolved_brand_url = 10;
|
|
276
264
|
string resolved_support_email = 11;
|
|
277
265
|
|
|
278
|
-
string header_html
|
|
266
|
+
string header_html = 12;
|
|
279
267
|
}
|
|
280
268
|
|
|
281
269
|
message UpdateBrandingRequest {
|
|
282
|
-
|
|
283
|
-
optional string
|
|
284
|
-
optional string
|
|
285
|
-
optional string brand_url = 3;
|
|
270
|
+
optional string logo_url = 1;
|
|
271
|
+
optional string brand_name = 2;
|
|
272
|
+
optional string brand_url = 3;
|
|
286
273
|
optional string support_email = 4;
|
|
287
|
-
optional string footer_html
|
|
288
|
-
string actor_id
|
|
289
|
-
optional string header_html
|
|
274
|
+
optional string footer_html = 5;
|
|
275
|
+
string actor_id = 6;
|
|
276
|
+
optional string header_html = 7;
|
|
290
277
|
}
|
|
291
278
|
|
|
292
|
-
|
|
293
279
|
enum NotificationChannel {
|
|
294
280
|
NOTIFICATION_CHANNEL_UNSPECIFIED = 0;
|
|
295
|
-
EMAIL
|
|
296
|
-
SMS
|
|
281
|
+
EMAIL = 1;
|
|
282
|
+
SMS = 2;
|
|
297
283
|
TELEGRAM = 3;
|
|
298
284
|
}
|
|
299
285
|
|
|
@@ -306,35 +292,34 @@ enum NotificationLocale {
|
|
|
306
292
|
enum NotificationCategory {
|
|
307
293
|
NOTIFICATION_CATEGORY_UNSPECIFIED = 0;
|
|
308
294
|
TRANSACTIONAL = 1;
|
|
309
|
-
ACCOUNT
|
|
310
|
-
MARKETING
|
|
311
|
-
ADMIN
|
|
312
|
-
OTP
|
|
295
|
+
ACCOUNT = 2;
|
|
296
|
+
MARKETING = 3;
|
|
297
|
+
ADMIN = 4;
|
|
298
|
+
OTP = 5;
|
|
313
299
|
}
|
|
314
300
|
|
|
315
301
|
enum NotificationStatus {
|
|
316
302
|
NOTIFICATION_STATUS_UNSPECIFIED = 0;
|
|
317
|
-
PENDING
|
|
318
|
-
SENT
|
|
319
|
-
FAILED
|
|
320
|
-
SIMULATED
|
|
303
|
+
PENDING = 1;
|
|
304
|
+
SENT = 2;
|
|
305
|
+
FAILED = 3;
|
|
306
|
+
SIMULATED = 4;
|
|
321
307
|
SUPPRESSED = 5;
|
|
322
308
|
}
|
|
323
309
|
|
|
324
310
|
enum TelegramTopic {
|
|
325
311
|
TELEGRAM_TOPIC_UNSPECIFIED = 0;
|
|
326
|
-
ORDERS
|
|
327
|
-
ORDERS_ALERTS
|
|
328
|
-
PAYMENTS
|
|
329
|
-
WAREHOUSE
|
|
330
|
-
REVIEWS
|
|
331
|
-
CALLBACK
|
|
332
|
-
REPORTS
|
|
333
|
-
ALERTS
|
|
334
|
-
GENERAL
|
|
312
|
+
ORDERS = 1;
|
|
313
|
+
ORDERS_ALERTS = 2;
|
|
314
|
+
PAYMENTS = 3;
|
|
315
|
+
WAREHOUSE = 4;
|
|
316
|
+
REVIEWS = 5;
|
|
317
|
+
CALLBACK = 6;
|
|
318
|
+
REPORTS = 7;
|
|
319
|
+
ALERTS = 8;
|
|
320
|
+
GENERAL = 9;
|
|
335
321
|
}
|
|
336
322
|
|
|
337
|
-
|
|
338
323
|
message NotificationTemplate {
|
|
339
324
|
string id = 1;
|
|
340
325
|
string key = 2;
|
|
@@ -343,11 +328,11 @@ message NotificationTemplate {
|
|
|
343
328
|
NotificationCategory category = 5;
|
|
344
329
|
string title = 6;
|
|
345
330
|
string subject = 7;
|
|
346
|
-
|
|
331
|
+
|
|
347
332
|
string content_json = 8;
|
|
348
333
|
string body_html = 9;
|
|
349
334
|
string body_text = 10;
|
|
350
|
-
|
|
335
|
+
|
|
351
336
|
string variables_json = 11;
|
|
352
337
|
bool is_active = 12;
|
|
353
338
|
int32 version = 13;
|
|
@@ -361,8 +346,6 @@ message TemplateResponse {
|
|
|
361
346
|
string error_message = 3;
|
|
362
347
|
}
|
|
363
348
|
|
|
364
|
-
|
|
365
|
-
|
|
366
349
|
message ListTemplatesRequest {
|
|
367
350
|
optional NotificationChannel channel = 1;
|
|
368
351
|
optional NotificationLocale locale = 2;
|
|
@@ -374,14 +357,10 @@ message ListTemplatesResponse {
|
|
|
374
357
|
repeated NotificationTemplate items = 1;
|
|
375
358
|
}
|
|
376
359
|
|
|
377
|
-
|
|
378
|
-
|
|
379
360
|
message GetTemplateRequest {
|
|
380
361
|
string id = 1;
|
|
381
362
|
}
|
|
382
363
|
|
|
383
|
-
|
|
384
|
-
|
|
385
364
|
message UpsertTemplateRequest {
|
|
386
365
|
string key = 1;
|
|
387
366
|
NotificationChannel channel = 2;
|
|
@@ -396,8 +375,6 @@ message UpsertTemplateRequest {
|
|
|
396
375
|
bool is_active = 11;
|
|
397
376
|
}
|
|
398
377
|
|
|
399
|
-
|
|
400
|
-
|
|
401
378
|
message UpdateTemplateRequest {
|
|
402
379
|
string id = 1;
|
|
403
380
|
optional string title = 2;
|
|
@@ -407,19 +384,15 @@ message UpdateTemplateRequest {
|
|
|
407
384
|
string body_text = 6;
|
|
408
385
|
optional string variables_json = 7;
|
|
409
386
|
optional bool is_active = 8;
|
|
410
|
-
|
|
387
|
+
|
|
411
388
|
optional string actor_id = 9;
|
|
412
389
|
}
|
|
413
390
|
|
|
414
|
-
|
|
415
|
-
|
|
416
391
|
message ToggleTemplateRequest {
|
|
417
392
|
string id = 1;
|
|
418
393
|
bool is_active = 2;
|
|
419
394
|
}
|
|
420
395
|
|
|
421
|
-
|
|
422
|
-
|
|
423
396
|
message NotificationTemplateVersion {
|
|
424
397
|
string id = 1;
|
|
425
398
|
int32 version = 2;
|
|
@@ -447,14 +420,12 @@ message RestoreVersionRequest {
|
|
|
447
420
|
optional string actor_id = 3;
|
|
448
421
|
}
|
|
449
422
|
|
|
450
|
-
|
|
451
|
-
|
|
452
423
|
message RenderPreviewRequest {
|
|
453
424
|
string body_html = 1;
|
|
454
|
-
|
|
425
|
+
|
|
455
426
|
string variables_json = 2;
|
|
456
427
|
optional string subject = 3;
|
|
457
|
-
|
|
428
|
+
|
|
458
429
|
optional string branding_json = 4;
|
|
459
430
|
}
|
|
460
431
|
|
|
@@ -463,8 +434,6 @@ message RenderPreviewResponse {
|
|
|
463
434
|
string subject = 2;
|
|
464
435
|
}
|
|
465
436
|
|
|
466
|
-
|
|
467
|
-
|
|
468
437
|
message SendTestRequest {
|
|
469
438
|
string template_id = 1;
|
|
470
439
|
|
|
@@ -478,8 +447,6 @@ message SendTestResponse {
|
|
|
478
447
|
string error_message = 2;
|
|
479
448
|
}
|
|
480
449
|
|
|
481
|
-
|
|
482
|
-
|
|
483
450
|
message NotificationLog {
|
|
484
451
|
string id = 1;
|
|
485
452
|
string template_key = 2;
|
|
@@ -516,8 +483,6 @@ message ListLogsResponse {
|
|
|
516
483
|
int32 limit = 4;
|
|
517
484
|
}
|
|
518
485
|
|
|
519
|
-
|
|
520
|
-
|
|
521
486
|
message TelegramChat {
|
|
522
487
|
string id = 1;
|
|
523
488
|
string chat_id = 2;
|