@mamindom/contracts 1.0.143 → 1.0.145

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.
Files changed (97) hide show
  1. package/dist/gen/attribute.d.ts +40 -0
  2. package/dist/gen/attribute.js +1 -0
  3. package/dist/gen/brand.d.ts +19 -0
  4. package/dist/gen/brand.js +8 -1
  5. package/dist/gen/bundle.d.ts +0 -2
  6. package/dist/gen/cart.d.ts +0 -28
  7. package/dist/gen/category.d.ts +26 -0
  8. package/dist/gen/category.js +1 -0
  9. package/dist/gen/delivery.d.ts +0 -1
  10. package/dist/gen/delivery_settings.d.ts +0 -4
  11. package/dist/gen/faq.d.ts +0 -6
  12. package/dist/gen/manager.d.ts +0 -12
  13. package/dist/gen/notification.d.ts +0 -71
  14. package/dist/gen/order.d.ts +0 -29
  15. package/dist/gen/page.d.ts +0 -5
  16. package/dist/gen/payment.d.ts +0 -22
  17. package/dist/gen/pickup.d.ts +0 -9
  18. package/dist/gen/product.d.ts +107 -11
  19. package/dist/gen/product.js +4 -0
  20. package/dist/gen/promotion.d.ts +0 -16
  21. package/dist/gen/rbac.d.ts +0 -16
  22. package/dist/gen/search.d.ts +0 -14
  23. package/dist/gen/seo_filter.d.ts +16 -48
  24. package/dist/gen/seo_filter.js +1 -0
  25. package/dist/gen/shop_filters.d.ts +0 -5
  26. package/dist/gen/users.d.ts +0 -9
  27. package/dist/gen/warehouse.d.ts +34 -0
  28. package/dist/gen/warehouse.js +28 -0
  29. package/dist/proto/attribute.proto +35 -0
  30. package/dist/proto/brand.proto +25 -0
  31. package/dist/proto/bundle.proto +2 -2
  32. package/dist/proto/cart.proto +5 -14
  33. package/dist/proto/category.proto +26 -0
  34. package/dist/proto/delivery.proto +1 -6
  35. package/dist/proto/delivery_settings.proto +4 -4
  36. package/dist/proto/faq.proto +3 -10
  37. package/dist/proto/manager.proto +3 -5
  38. package/dist/proto/notification.proto +33 -56
  39. package/dist/proto/order.proto +9 -21
  40. package/dist/proto/page.proto +1 -3
  41. package/dist/proto/payment.proto +8 -14
  42. package/dist/proto/pickup.proto +7 -9
  43. package/dist/proto/product.proto +129 -18
  44. package/dist/proto/promotion.proto +9 -22
  45. package/dist/proto/rbac.proto +7 -9
  46. package/dist/proto/search.proto +10 -14
  47. package/dist/proto/seo_filter.proto +37 -32
  48. package/dist/proto/shop_filters.proto +1 -3
  49. package/dist/proto/users.proto +5 -8
  50. package/dist/proto/warehouse.proto +38 -0
  51. package/dist/src/proto/paths.d.ts +1 -0
  52. package/dist/src/proto/paths.js +1 -0
  53. package/gen/attribute.ts +48 -0
  54. package/gen/brand.ts +35 -1
  55. package/gen/bundle.ts +1 -5
  56. package/gen/cart.ts +1 -35
  57. package/gen/category.ts +34 -0
  58. package/gen/delivery.ts +0 -1
  59. package/gen/delivery_settings.ts +0 -4
  60. package/gen/faq.ts +0 -12
  61. package/gen/manager.ts +1 -17
  62. package/gen/notification.ts +5 -98
  63. package/gen/order.ts +0 -33
  64. package/gen/page.ts +0 -5
  65. package/gen/payment.ts +0 -34
  66. package/gen/pickup.ts +2 -19
  67. package/gen/product.ts +147 -28
  68. package/gen/promotion.ts +3 -33
  69. package/gen/rbac.ts +1 -25
  70. package/gen/search.ts +0 -22
  71. package/gen/seo_filter.ts +27 -63
  72. package/gen/shop_filters.ts +0 -5
  73. package/gen/users.ts +1 -20
  74. package/gen/warehouse.ts +67 -0
  75. package/package.json +1 -1
  76. package/proto/attribute.proto +35 -0
  77. package/proto/brand.proto +25 -0
  78. package/proto/bundle.proto +2 -2
  79. package/proto/cart.proto +5 -14
  80. package/proto/category.proto +26 -0
  81. package/proto/delivery.proto +1 -6
  82. package/proto/delivery_settings.proto +4 -4
  83. package/proto/faq.proto +3 -10
  84. package/proto/manager.proto +3 -5
  85. package/proto/notification.proto +33 -56
  86. package/proto/order.proto +9 -21
  87. package/proto/page.proto +1 -3
  88. package/proto/payment.proto +8 -14
  89. package/proto/pickup.proto +7 -9
  90. package/proto/product.proto +129 -18
  91. package/proto/promotion.proto +9 -22
  92. package/proto/rbac.proto +7 -9
  93. package/proto/search.proto +10 -14
  94. package/proto/seo_filter.proto +37 -32
  95. package/proto/shop_filters.proto +1 -3
  96. package/proto/users.proto +5 -8
  97. package/proto/warehouse.proto +38 -0
package/proto/users.proto CHANGED
@@ -31,24 +31,24 @@ service UsersService {
31
31
  rpc ExportUserData(ExportUserDataRequest) returns (ExportUserDataResponse);
32
32
  rpc DeleteAccount(DeleteAccountRequest) returns (DeleteAccountResponse);
33
33
 
34
- // Family
34
+
35
35
  rpc GetFamily(GetFamilyRequest) returns (GetFamilyResponse);
36
36
  rpc AddChild(AddChildRequest) returns (ChildResponse);
37
37
  rpc UpdateChild(UpdateChildRequest) returns (ChildResponse);
38
38
  rpc RemoveChild(RemoveChildRequest) returns (RemoveChildResponse);
39
39
 
40
- // Pregnancy
40
+
41
41
  rpc GetPregnancy(GetPregnancyRequest) returns (GetPregnancyResponse);
42
42
  rpc UpdatePregnancy(UpdatePregnancyRequest) returns (GetPregnancyResponse);
43
43
 
44
- // Cart
44
+
45
45
  rpc GetCart(GetCartRequest) returns (GetCartResponse);
46
46
  rpc UpsertCartItem(UpsertCartItemRequest) returns (GetCartResponse);
47
47
  rpc RemoveCartItem(RemoveCartItemRequest) returns (GetCartResponse);
48
48
  rpc ClearCart(ClearCartRequest) returns (ClearCartResponse);
49
49
  rpc SyncCart(SyncCartRequest) returns (GetCartResponse);
50
50
 
51
- // Admin CRM — редагування клієнта менеджером (customers.edit на gateway).
51
+
52
52
  rpc AdminUpdateCustomer(AdminUpdateCustomerRequest) returns (AdminUpdateCustomerResponse);
53
53
  }
54
54
 
@@ -97,7 +97,7 @@ message AdminUpdateCustomerRequest {
97
97
  string id = 1;
98
98
  optional string first_name = 2;
99
99
  optional string last_name = 3;
100
- // internal_note редагується тут окремо, бо це CRM-поле — не видиме клієнту.
100
+
101
101
  optional string internal_note = 4;
102
102
  }
103
103
 
@@ -249,7 +249,6 @@ message DeleteAccountResponse {
249
249
  bool ok = 1;
250
250
  }
251
251
 
252
- // ── Family ───────────────────────────────────────────────────────────────────
253
252
 
254
253
  enum Gender {
255
254
  BOY = 0;
@@ -300,7 +299,6 @@ message RemoveChildResponse {
300
299
  bool ok = 1;
301
300
  }
302
301
 
303
- // ── Pregnancy ────────────────────────────────────────────────────────────────
304
302
 
305
303
  message GetPregnancyRequest {
306
304
  string user_id = 1;
@@ -315,7 +313,6 @@ message UpdatePregnancyRequest {
315
313
  int32 week = 2;
316
314
  }
317
315
 
318
- // ── Cart ─────────────────────────────────────────────────────────────────────
319
316
 
320
317
  message CartItemVariant {
321
318
  string key = 1;
@@ -0,0 +1,38 @@
1
+ syntax = "proto3";
2
+
3
+ package catalog.v1;
4
+
5
+
6
+ service WarehouseService {
7
+ rpc UpsertWarehouses (UpsertWarehousesRequest) returns (UpsertWarehousesResponse);
8
+ }
9
+
10
+ message WarehouseSyncItem {
11
+ string warehouse_guid = 1;
12
+ string name = 2;
13
+
14
+ string code1c = 3;
15
+ optional string pf_code = 4;
16
+ optional string address = 5;
17
+ optional string phone = 6;
18
+
19
+ optional bool is_retail = 7;
20
+ }
21
+
22
+ message UpsertWarehousesRequest {
23
+ repeated WarehouseSyncItem items = 1;
24
+ string sync_id = 2;
25
+
26
+ string online_warehouse_code = 3;
27
+ }
28
+
29
+ message WarehouseUpsertResult {
30
+ string guid = 1;
31
+ string status = 2;
32
+ optional string reason = 3;
33
+ optional string id = 4;
34
+ }
35
+
36
+ message UpsertWarehousesResponse {
37
+ repeated WarehouseUpsertResult results = 1;
38
+ }