@mamindom/contracts 1.0.191 → 1.0.193
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/pickup.d.ts +7 -0
- package/dist/gen/product.d.ts +14 -0
- package/dist/gen/site_settings.d.ts +4 -0
- package/dist/proto/pickup.proto +7 -0
- package/dist/proto/product.proto +13 -1
- package/dist/proto/site_settings.proto +6 -0
- package/gen/pickup.ts +7 -0
- package/gen/product.ts +17 -1
- package/gen/site_settings.ts +4 -0
- package/package.json +1 -1
- package/proto/pickup.proto +7 -0
- package/proto/product.proto +13 -1
- package/proto/site_settings.proto +6 -0
package/dist/gen/pickup.d.ts
CHANGED
|
@@ -13,11 +13,14 @@ export interface PickupPointResponse {
|
|
|
13
13
|
code1c?: string | undefined;
|
|
14
14
|
schedule?: string | undefined;
|
|
15
15
|
showOnContacts: boolean;
|
|
16
|
+
isPickup: boolean;
|
|
17
|
+
sortOrder: number;
|
|
16
18
|
}
|
|
17
19
|
export interface GetPickupPointsRequest {
|
|
18
20
|
isActive?: boolean | undefined;
|
|
19
21
|
city?: string | undefined;
|
|
20
22
|
showOnContacts?: boolean | undefined;
|
|
23
|
+
isPickup?: boolean | undefined;
|
|
21
24
|
}
|
|
22
25
|
export interface GetPickupPointsResponse {
|
|
23
26
|
items: PickupPointResponse[];
|
|
@@ -36,6 +39,8 @@ export interface CreatePickupPointRequest {
|
|
|
36
39
|
code1c?: string | undefined;
|
|
37
40
|
schedule?: string | undefined;
|
|
38
41
|
showOnContacts?: boolean | undefined;
|
|
42
|
+
isPickup?: boolean | undefined;
|
|
43
|
+
sortOrder?: number | undefined;
|
|
39
44
|
}
|
|
40
45
|
export interface UpdatePickupPointRequest {
|
|
41
46
|
id: string;
|
|
@@ -49,6 +54,8 @@ export interface UpdatePickupPointRequest {
|
|
|
49
54
|
code1c?: string | undefined;
|
|
50
55
|
schedule?: string | undefined;
|
|
51
56
|
showOnContacts?: boolean | undefined;
|
|
57
|
+
isPickup?: boolean | undefined;
|
|
58
|
+
sortOrder?: number | undefined;
|
|
52
59
|
}
|
|
53
60
|
export interface DeletePickupPointRequest {
|
|
54
61
|
id: string;
|
package/dist/gen/product.d.ts
CHANGED
|
@@ -461,6 +461,16 @@ export interface UpdateProductRequest {
|
|
|
461
461
|
manualRating?: number | undefined;
|
|
462
462
|
weightKg?: number | undefined;
|
|
463
463
|
guid1c?: string | undefined;
|
|
464
|
+
/**
|
|
465
|
+
* Явне очищення списків.
|
|
466
|
+
*
|
|
467
|
+
* У proto3 `repeated` не відрізняє «не передано» від «передано порожнім»,
|
|
468
|
+
* тож порожній масив сам по собі означає «не чіпати». Раніше цього
|
|
469
|
+
* розрізнення не було: клієнт, який не надіслав `images`, отримував від
|
|
470
|
+
* gateway [] — і всі фото товару видалялися разом із файлами в S3.
|
|
471
|
+
*
|
|
472
|
+
* Той самий підхід уже застосований в UpdateProductVariantRequest.
|
|
473
|
+
*/
|
|
464
474
|
clearImages: boolean;
|
|
465
475
|
clearCategories: boolean;
|
|
466
476
|
clearStickers: boolean;
|
|
@@ -610,6 +620,10 @@ export interface ProductGroupMember {
|
|
|
610
620
|
colorHex: string;
|
|
611
621
|
price: number;
|
|
612
622
|
status: ProductStatus;
|
|
623
|
+
/** Потрібен вітрині: перемикач кольору веде на картку сусіда за ЧПУ. */
|
|
624
|
+
slug: string;
|
|
625
|
+
/** Чи є що купити — сусід без залишку показується неактивним, а не зникає. */
|
|
626
|
+
inStock: boolean;
|
|
613
627
|
}
|
|
614
628
|
export interface ProductGroupMember_NameEntry {
|
|
615
629
|
key: string;
|
|
@@ -27,6 +27,8 @@ export interface SiteSettingsResponse {
|
|
|
27
27
|
facebookUrl?: string | undefined;
|
|
28
28
|
telegramUrl?: string | undefined;
|
|
29
29
|
updatedAt: string;
|
|
30
|
+
workingHours?: string | undefined;
|
|
31
|
+
workingHoursNote?: string | undefined;
|
|
30
32
|
}
|
|
31
33
|
export interface GetSiteSettingsRequest {
|
|
32
34
|
}
|
|
@@ -39,6 +41,8 @@ export interface UpdateSiteSettingsRequest {
|
|
|
39
41
|
clearInstagramUrl: boolean;
|
|
40
42
|
clearFacebookUrl: boolean;
|
|
41
43
|
clearTelegramUrl: boolean;
|
|
44
|
+
workingHours?: string | undefined;
|
|
45
|
+
workingHoursNote?: string | undefined;
|
|
42
46
|
}
|
|
43
47
|
export declare const CONTENT_V1_PACKAGE_NAME = "content.v1";
|
|
44
48
|
export interface SettingsServiceClient {
|
package/dist/proto/pickup.proto
CHANGED
|
@@ -33,12 +33,15 @@ message PickupPointResponse {
|
|
|
33
33
|
optional string code1c = 9;
|
|
34
34
|
optional string schedule = 10;
|
|
35
35
|
bool show_on_contacts = 11;
|
|
36
|
+
bool is_pickup = 12;
|
|
37
|
+
int32 sort_order = 13;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
message GetPickupPointsRequest {
|
|
39
41
|
optional bool is_active = 1;
|
|
40
42
|
optional string city = 2;
|
|
41
43
|
optional bool show_on_contacts = 3;
|
|
44
|
+
optional bool is_pickup = 4;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
message GetPickupPointsResponse {
|
|
@@ -60,6 +63,8 @@ message CreatePickupPointRequest {
|
|
|
60
63
|
optional string code1c = 8;
|
|
61
64
|
optional string schedule = 9;
|
|
62
65
|
optional bool show_on_contacts = 10;
|
|
66
|
+
optional bool is_pickup = 11;
|
|
67
|
+
optional int32 sort_order = 12;
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
message UpdatePickupPointRequest {
|
|
@@ -74,6 +79,8 @@ message UpdatePickupPointRequest {
|
|
|
74
79
|
optional string code1c = 9;
|
|
75
80
|
optional string schedule = 10;
|
|
76
81
|
optional bool show_on_contacts = 11;
|
|
82
|
+
optional bool is_pickup = 12;
|
|
83
|
+
optional int32 sort_order = 13;
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
message DeletePickupPointRequest {
|
package/dist/proto/product.proto
CHANGED
|
@@ -451,7 +451,14 @@ message UpdateProductRequest {
|
|
|
451
451
|
optional double weight_kg = 26;
|
|
452
452
|
optional string guid1c = 27;
|
|
453
453
|
|
|
454
|
-
|
|
454
|
+
// Явне очищення списків.
|
|
455
|
+
//
|
|
456
|
+
// У proto3 `repeated` не відрізняє «не передано» від «передано порожнім»,
|
|
457
|
+
// тож порожній масив сам по собі означає «не чіпати». Раніше цього
|
|
458
|
+
// розрізнення не було: клієнт, який не надіслав `images`, отримував від
|
|
459
|
+
// gateway [] — і всі фото товару видалялися разом із файлами в S3.
|
|
460
|
+
//
|
|
461
|
+
// Той самий підхід уже застосований в UpdateProductVariantRequest.
|
|
455
462
|
bool clear_images = 28;
|
|
456
463
|
bool clear_categories = 29;
|
|
457
464
|
bool clear_stickers = 30;
|
|
@@ -610,6 +617,11 @@ message ProductGroupMember {
|
|
|
610
617
|
string color_hex = 6;
|
|
611
618
|
double price = 7;
|
|
612
619
|
ProductStatus status = 8;
|
|
620
|
+
|
|
621
|
+
// Потрібен вітрині: перемикач кольору веде на картку сусіда за ЧПУ.
|
|
622
|
+
string slug = 9;
|
|
623
|
+
// Чи є що купити — сусід без залишку показується неактивним, а не зникає.
|
|
624
|
+
bool in_stock = 10;
|
|
613
625
|
}
|
|
614
626
|
|
|
615
627
|
message CreateProductGroupRequest {
|
|
@@ -39,6 +39,9 @@ message SiteSettingsResponse {
|
|
|
39
39
|
optional string telegram_url = 5;
|
|
40
40
|
|
|
41
41
|
string updated_at = 6;
|
|
42
|
+
|
|
43
|
+
optional string working_hours = 7;
|
|
44
|
+
optional string working_hours_note = 8;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
|
|
@@ -56,4 +59,7 @@ message UpdateSiteSettingsRequest {
|
|
|
56
59
|
bool clear_instagram_url = 6;
|
|
57
60
|
bool clear_facebook_url = 7;
|
|
58
61
|
bool clear_telegram_url = 8;
|
|
62
|
+
|
|
63
|
+
optional string working_hours = 9;
|
|
64
|
+
optional string working_hours_note = 10;
|
|
59
65
|
}
|
package/gen/pickup.ts
CHANGED
|
@@ -23,12 +23,15 @@ export interface PickupPointResponse {
|
|
|
23
23
|
code1c?: string | undefined;
|
|
24
24
|
schedule?: string | undefined;
|
|
25
25
|
showOnContacts: boolean;
|
|
26
|
+
isPickup: boolean;
|
|
27
|
+
sortOrder: number;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
export interface GetPickupPointsRequest {
|
|
29
31
|
isActive?: boolean | undefined;
|
|
30
32
|
city?: string | undefined;
|
|
31
33
|
showOnContacts?: boolean | undefined;
|
|
34
|
+
isPickup?: boolean | undefined;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
export interface GetPickupPointsResponse {
|
|
@@ -50,6 +53,8 @@ export interface CreatePickupPointRequest {
|
|
|
50
53
|
code1c?: string | undefined;
|
|
51
54
|
schedule?: string | undefined;
|
|
52
55
|
showOnContacts?: boolean | undefined;
|
|
56
|
+
isPickup?: boolean | undefined;
|
|
57
|
+
sortOrder?: number | undefined;
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
export interface UpdatePickupPointRequest {
|
|
@@ -64,6 +69,8 @@ export interface UpdatePickupPointRequest {
|
|
|
64
69
|
code1c?: string | undefined;
|
|
65
70
|
schedule?: string | undefined;
|
|
66
71
|
showOnContacts?: boolean | undefined;
|
|
72
|
+
isPickup?: boolean | undefined;
|
|
73
|
+
sortOrder?: number | undefined;
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
export interface DeletePickupPointRequest {
|
package/gen/product.ts
CHANGED
|
@@ -463,7 +463,19 @@ export interface UpdateProductRequest {
|
|
|
463
463
|
colorHex?: string | undefined;
|
|
464
464
|
manualRating?: number | undefined;
|
|
465
465
|
weightKg?: number | undefined;
|
|
466
|
-
guid1c?:
|
|
466
|
+
guid1c?:
|
|
467
|
+
| string
|
|
468
|
+
| undefined;
|
|
469
|
+
/**
|
|
470
|
+
* Явне очищення списків.
|
|
471
|
+
*
|
|
472
|
+
* У proto3 `repeated` не відрізняє «не передано» від «передано порожнім»,
|
|
473
|
+
* тож порожній масив сам по собі означає «не чіпати». Раніше цього
|
|
474
|
+
* розрізнення не було: клієнт, який не надіслав `images`, отримував від
|
|
475
|
+
* gateway [] — і всі фото товару видалялися разом із файлами в S3.
|
|
476
|
+
*
|
|
477
|
+
* Той самий підхід уже застосований в UpdateProductVariantRequest.
|
|
478
|
+
*/
|
|
467
479
|
clearImages: boolean;
|
|
468
480
|
clearCategories: boolean;
|
|
469
481
|
clearStickers: boolean;
|
|
@@ -632,6 +644,10 @@ export interface ProductGroupMember {
|
|
|
632
644
|
colorHex: string;
|
|
633
645
|
price: number;
|
|
634
646
|
status: ProductStatus;
|
|
647
|
+
/** Потрібен вітрині: перемикач кольору веде на картку сусіда за ЧПУ. */
|
|
648
|
+
slug: string;
|
|
649
|
+
/** Чи є що купити — сусід без залишку показується неактивним, а не зникає. */
|
|
650
|
+
inStock: boolean;
|
|
635
651
|
}
|
|
636
652
|
|
|
637
653
|
export interface ProductGroupMember_NameEntry {
|
package/gen/site_settings.ts
CHANGED
|
@@ -40,6 +40,8 @@ export interface SiteSettingsResponse {
|
|
|
40
40
|
facebookUrl?: string | undefined;
|
|
41
41
|
telegramUrl?: string | undefined;
|
|
42
42
|
updatedAt: string;
|
|
43
|
+
workingHours?: string | undefined;
|
|
44
|
+
workingHoursNote?: string | undefined;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
export interface GetSiteSettingsRequest {
|
|
@@ -54,6 +56,8 @@ export interface UpdateSiteSettingsRequest {
|
|
|
54
56
|
clearInstagramUrl: boolean;
|
|
55
57
|
clearFacebookUrl: boolean;
|
|
56
58
|
clearTelegramUrl: boolean;
|
|
59
|
+
workingHours?: string | undefined;
|
|
60
|
+
workingHoursNote?: string | undefined;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
export const CONTENT_V1_PACKAGE_NAME = "content.v1";
|
package/package.json
CHANGED
package/proto/pickup.proto
CHANGED
|
@@ -33,12 +33,15 @@ message PickupPointResponse {
|
|
|
33
33
|
optional string code1c = 9;
|
|
34
34
|
optional string schedule = 10;
|
|
35
35
|
bool show_on_contacts = 11;
|
|
36
|
+
bool is_pickup = 12;
|
|
37
|
+
int32 sort_order = 13;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
message GetPickupPointsRequest {
|
|
39
41
|
optional bool is_active = 1;
|
|
40
42
|
optional string city = 2;
|
|
41
43
|
optional bool show_on_contacts = 3;
|
|
44
|
+
optional bool is_pickup = 4;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
message GetPickupPointsResponse {
|
|
@@ -60,6 +63,8 @@ message CreatePickupPointRequest {
|
|
|
60
63
|
optional string code1c = 8;
|
|
61
64
|
optional string schedule = 9;
|
|
62
65
|
optional bool show_on_contacts = 10;
|
|
66
|
+
optional bool is_pickup = 11;
|
|
67
|
+
optional int32 sort_order = 12;
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
message UpdatePickupPointRequest {
|
|
@@ -74,6 +79,8 @@ message UpdatePickupPointRequest {
|
|
|
74
79
|
optional string code1c = 9;
|
|
75
80
|
optional string schedule = 10;
|
|
76
81
|
optional bool show_on_contacts = 11;
|
|
82
|
+
optional bool is_pickup = 12;
|
|
83
|
+
optional int32 sort_order = 13;
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
message DeletePickupPointRequest {
|
package/proto/product.proto
CHANGED
|
@@ -451,7 +451,14 @@ message UpdateProductRequest {
|
|
|
451
451
|
optional double weight_kg = 26;
|
|
452
452
|
optional string guid1c = 27;
|
|
453
453
|
|
|
454
|
-
|
|
454
|
+
// Явне очищення списків.
|
|
455
|
+
//
|
|
456
|
+
// У proto3 `repeated` не відрізняє «не передано» від «передано порожнім»,
|
|
457
|
+
// тож порожній масив сам по собі означає «не чіпати». Раніше цього
|
|
458
|
+
// розрізнення не було: клієнт, який не надіслав `images`, отримував від
|
|
459
|
+
// gateway [] — і всі фото товару видалялися разом із файлами в S3.
|
|
460
|
+
//
|
|
461
|
+
// Той самий підхід уже застосований в UpdateProductVariantRequest.
|
|
455
462
|
bool clear_images = 28;
|
|
456
463
|
bool clear_categories = 29;
|
|
457
464
|
bool clear_stickers = 30;
|
|
@@ -610,6 +617,11 @@ message ProductGroupMember {
|
|
|
610
617
|
string color_hex = 6;
|
|
611
618
|
double price = 7;
|
|
612
619
|
ProductStatus status = 8;
|
|
620
|
+
|
|
621
|
+
// Потрібен вітрині: перемикач кольору веде на картку сусіда за ЧПУ.
|
|
622
|
+
string slug = 9;
|
|
623
|
+
// Чи є що купити — сусід без залишку показується неактивним, а не зникає.
|
|
624
|
+
bool in_stock = 10;
|
|
613
625
|
}
|
|
614
626
|
|
|
615
627
|
message CreateProductGroupRequest {
|
|
@@ -39,6 +39,9 @@ message SiteSettingsResponse {
|
|
|
39
39
|
optional string telegram_url = 5;
|
|
40
40
|
|
|
41
41
|
string updated_at = 6;
|
|
42
|
+
|
|
43
|
+
optional string working_hours = 7;
|
|
44
|
+
optional string working_hours_note = 8;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
|
|
@@ -56,4 +59,7 @@ message UpdateSiteSettingsRequest {
|
|
|
56
59
|
bool clear_instagram_url = 6;
|
|
57
60
|
bool clear_facebook_url = 7;
|
|
58
61
|
bool clear_telegram_url = 8;
|
|
62
|
+
|
|
63
|
+
optional string working_hours = 9;
|
|
64
|
+
optional string working_hours_note = 10;
|
|
59
65
|
}
|