@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.
- package/dist/gen/attribute.d.ts +40 -0
- package/dist/gen/attribute.js +1 -0
- package/dist/gen/brand.d.ts +19 -0
- package/dist/gen/brand.js +8 -1
- package/dist/gen/bundle.d.ts +0 -2
- package/dist/gen/cart.d.ts +0 -28
- package/dist/gen/category.d.ts +26 -0
- package/dist/gen/category.js +1 -0
- package/dist/gen/delivery.d.ts +0 -1
- package/dist/gen/delivery_settings.d.ts +0 -4
- package/dist/gen/faq.d.ts +0 -6
- package/dist/gen/manager.d.ts +0 -12
- package/dist/gen/notification.d.ts +0 -71
- package/dist/gen/order.d.ts +0 -29
- package/dist/gen/page.d.ts +0 -5
- package/dist/gen/payment.d.ts +0 -22
- package/dist/gen/pickup.d.ts +0 -9
- package/dist/gen/product.d.ts +107 -11
- package/dist/gen/product.js +4 -0
- package/dist/gen/promotion.d.ts +0 -16
- package/dist/gen/rbac.d.ts +0 -16
- package/dist/gen/search.d.ts +0 -14
- package/dist/gen/seo_filter.d.ts +16 -48
- package/dist/gen/seo_filter.js +1 -0
- package/dist/gen/shop_filters.d.ts +0 -5
- package/dist/gen/users.d.ts +0 -9
- package/dist/gen/warehouse.d.ts +34 -0
- package/dist/gen/warehouse.js +28 -0
- package/dist/proto/attribute.proto +35 -0
- package/dist/proto/brand.proto +25 -0
- package/dist/proto/bundle.proto +2 -2
- package/dist/proto/cart.proto +5 -14
- package/dist/proto/category.proto +26 -0
- package/dist/proto/delivery.proto +1 -6
- package/dist/proto/delivery_settings.proto +4 -4
- package/dist/proto/faq.proto +3 -10
- package/dist/proto/manager.proto +3 -5
- package/dist/proto/notification.proto +33 -56
- package/dist/proto/order.proto +9 -21
- package/dist/proto/page.proto +1 -3
- package/dist/proto/payment.proto +8 -14
- package/dist/proto/pickup.proto +7 -9
- package/dist/proto/product.proto +129 -18
- package/dist/proto/promotion.proto +9 -22
- package/dist/proto/rbac.proto +7 -9
- package/dist/proto/search.proto +10 -14
- package/dist/proto/seo_filter.proto +37 -32
- package/dist/proto/shop_filters.proto +1 -3
- package/dist/proto/users.proto +5 -8
- package/dist/proto/warehouse.proto +38 -0
- package/dist/src/proto/paths.d.ts +1 -0
- package/dist/src/proto/paths.js +1 -0
- package/gen/attribute.ts +48 -0
- package/gen/brand.ts +35 -1
- package/gen/bundle.ts +1 -5
- package/gen/cart.ts +1 -35
- package/gen/category.ts +34 -0
- package/gen/delivery.ts +0 -1
- package/gen/delivery_settings.ts +0 -4
- package/gen/faq.ts +0 -12
- package/gen/manager.ts +1 -17
- package/gen/notification.ts +5 -98
- package/gen/order.ts +0 -33
- package/gen/page.ts +0 -5
- package/gen/payment.ts +0 -34
- package/gen/pickup.ts +2 -19
- package/gen/product.ts +147 -28
- package/gen/promotion.ts +3 -33
- package/gen/rbac.ts +1 -25
- package/gen/search.ts +0 -22
- package/gen/seo_filter.ts +27 -63
- package/gen/shop_filters.ts +0 -5
- package/gen/users.ts +1 -20
- package/gen/warehouse.ts +67 -0
- package/package.json +1 -1
- package/proto/attribute.proto +35 -0
- package/proto/brand.proto +25 -0
- package/proto/bundle.proto +2 -2
- package/proto/cart.proto +5 -14
- package/proto/category.proto +26 -0
- package/proto/delivery.proto +1 -6
- package/proto/delivery_settings.proto +4 -4
- package/proto/faq.proto +3 -10
- package/proto/manager.proto +3 -5
- package/proto/notification.proto +33 -56
- package/proto/order.proto +9 -21
- package/proto/page.proto +1 -3
- package/proto/payment.proto +8 -14
- package/proto/pickup.proto +7 -9
- package/proto/product.proto +129 -18
- package/proto/promotion.proto +9 -22
- package/proto/rbac.proto +7 -9
- package/proto/search.proto +10 -14
- package/proto/seo_filter.proto +37 -32
- package/proto/shop_filters.proto +1 -3
- package/proto/users.proto +5 -8
- 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
|
-
|
|
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
|
-
|
|
40
|
+
|
|
41
41
|
rpc GetPregnancy(GetPregnancyRequest) returns (GetPregnancyResponse);
|
|
42
42
|
rpc UpdatePregnancy(UpdatePregnancyRequest) returns (GetPregnancyResponse);
|
|
43
43
|
|
|
44
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
}
|