@mamindom/contracts 1.0.183 → 1.0.185
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 +3 -0
- package/dist/gen/category.d.ts +1 -0
- package/dist/gen/stock.d.ts +3 -0
- package/dist/proto/attribute.proto +6 -0
- package/dist/proto/category.proto +2 -0
- package/dist/proto/stock.proto +10 -4
- package/gen/attribute.ts +3 -0
- package/gen/category.ts +1 -0
- package/gen/stock.ts +3 -0
- package/package.json +1 -1
- package/proto/attribute.proto +6 -0
- package/proto/category.proto +2 -0
- package/proto/stock.proto +10 -4
package/dist/gen/attribute.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ export interface AttributeResponse {
|
|
|
120
120
|
guid1c?: string | undefined;
|
|
121
121
|
isFilterable: boolean;
|
|
122
122
|
kind: string;
|
|
123
|
+
valueCount: number;
|
|
123
124
|
}
|
|
124
125
|
export interface AttributeResponse_NameEntry {
|
|
125
126
|
key: string;
|
|
@@ -128,6 +129,8 @@ export interface AttributeResponse_NameEntry {
|
|
|
128
129
|
export interface GetAttributesRequest {
|
|
129
130
|
pagination: PaginationRequest | undefined;
|
|
130
131
|
groupId?: string | undefined;
|
|
132
|
+
search?: string | undefined;
|
|
133
|
+
withoutValues?: boolean | undefined;
|
|
131
134
|
}
|
|
132
135
|
export interface GetAttributesResponse {
|
|
133
136
|
items: AttributeResponse[];
|
package/dist/gen/category.d.ts
CHANGED
package/dist/gen/stock.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface UpdateWarehouseStockRequest {
|
|
|
65
65
|
warehouseId: string;
|
|
66
66
|
quantity: number;
|
|
67
67
|
createdById?: string | undefined;
|
|
68
|
+
variantId?: string | undefined;
|
|
68
69
|
}
|
|
69
70
|
export interface GetProductStockRequest {
|
|
70
71
|
productId: string;
|
|
@@ -74,6 +75,7 @@ export interface BatchSyncStockItem {
|
|
|
74
75
|
warehouseId: string;
|
|
75
76
|
quantity: number;
|
|
76
77
|
guid1c?: string | undefined;
|
|
78
|
+
variantId?: string | undefined;
|
|
77
79
|
}
|
|
78
80
|
export interface BatchSyncStockRequest {
|
|
79
81
|
items: BatchSyncStockItem[];
|
|
@@ -101,6 +103,7 @@ export interface AdjustStockRequest {
|
|
|
101
103
|
delta: number;
|
|
102
104
|
reason: string;
|
|
103
105
|
createdById: string;
|
|
106
|
+
variantId?: string | undefined;
|
|
104
107
|
}
|
|
105
108
|
export interface GetStockMovementsRequest {
|
|
106
109
|
pagination: PaginationRequest | undefined;
|
|
@@ -127,11 +127,17 @@ message AttributeResponse {
|
|
|
127
127
|
optional string guid1c = 7;
|
|
128
128
|
bool is_filterable = 8;
|
|
129
129
|
string kind = 9;
|
|
130
|
+
|
|
131
|
+
int32 value_count = 10;
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
message GetAttributesRequest {
|
|
133
135
|
PaginationRequest pagination = 1;
|
|
134
136
|
optional string group_id = 2;
|
|
137
|
+
|
|
138
|
+
optional string search = 3;
|
|
139
|
+
|
|
140
|
+
optional bool without_values = 4;
|
|
135
141
|
}
|
|
136
142
|
|
|
137
143
|
message GetAttributesResponse {
|
package/dist/proto/stock.proto
CHANGED
|
@@ -91,8 +91,10 @@ message StockMovementResponse {
|
|
|
91
91
|
message UpdateWarehouseStockRequest {
|
|
92
92
|
string product_id = 1;
|
|
93
93
|
string warehouse_id = 2;
|
|
94
|
-
int32 quantity = 3;
|
|
94
|
+
int32 quantity = 3;
|
|
95
95
|
optional string created_by_id = 4;
|
|
96
|
+
|
|
97
|
+
optional string variant_id = 5;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
message GetProductStockRequest {
|
|
@@ -101,10 +103,12 @@ message GetProductStockRequest {
|
|
|
101
103
|
|
|
102
104
|
|
|
103
105
|
message BatchSyncStockItem {
|
|
104
|
-
string product_id = 1;
|
|
106
|
+
string product_id = 1;
|
|
105
107
|
string warehouse_id = 2;
|
|
106
108
|
int32 quantity = 3;
|
|
107
|
-
optional string guid_1c = 4;
|
|
109
|
+
optional string guid_1c = 4;
|
|
110
|
+
|
|
111
|
+
optional string variant_id = 5;
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
message BatchSyncStockRequest {
|
|
@@ -137,9 +141,11 @@ message CancelReservationRequest {
|
|
|
137
141
|
message AdjustStockRequest {
|
|
138
142
|
string product_id = 1;
|
|
139
143
|
string warehouse_id = 2;
|
|
140
|
-
int32 delta = 3;
|
|
144
|
+
int32 delta = 3;
|
|
141
145
|
string reason = 4;
|
|
142
146
|
string created_by_id = 5;
|
|
147
|
+
|
|
148
|
+
optional string variant_id = 6;
|
|
143
149
|
}
|
|
144
150
|
|
|
145
151
|
|
package/gen/attribute.ts
CHANGED
|
@@ -137,6 +137,7 @@ export interface AttributeResponse {
|
|
|
137
137
|
guid1c?: string | undefined;
|
|
138
138
|
isFilterable: boolean;
|
|
139
139
|
kind: string;
|
|
140
|
+
valueCount: number;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
export interface AttributeResponse_NameEntry {
|
|
@@ -147,6 +148,8 @@ export interface AttributeResponse_NameEntry {
|
|
|
147
148
|
export interface GetAttributesRequest {
|
|
148
149
|
pagination: PaginationRequest | undefined;
|
|
149
150
|
groupId?: string | undefined;
|
|
151
|
+
search?: string | undefined;
|
|
152
|
+
withoutValues?: boolean | undefined;
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
export interface GetAttributesResponse {
|
package/gen/category.ts
CHANGED
package/gen/stock.ts
CHANGED
|
@@ -80,6 +80,7 @@ export interface UpdateWarehouseStockRequest {
|
|
|
80
80
|
warehouseId: string;
|
|
81
81
|
quantity: number;
|
|
82
82
|
createdById?: string | undefined;
|
|
83
|
+
variantId?: string | undefined;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
export interface GetProductStockRequest {
|
|
@@ -91,6 +92,7 @@ export interface BatchSyncStockItem {
|
|
|
91
92
|
warehouseId: string;
|
|
92
93
|
quantity: number;
|
|
93
94
|
guid1c?: string | undefined;
|
|
95
|
+
variantId?: string | undefined;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
export interface BatchSyncStockRequest {
|
|
@@ -124,6 +126,7 @@ export interface AdjustStockRequest {
|
|
|
124
126
|
delta: number;
|
|
125
127
|
reason: string;
|
|
126
128
|
createdById: string;
|
|
129
|
+
variantId?: string | undefined;
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
export interface GetStockMovementsRequest {
|
package/package.json
CHANGED
package/proto/attribute.proto
CHANGED
|
@@ -127,11 +127,17 @@ message AttributeResponse {
|
|
|
127
127
|
optional string guid1c = 7;
|
|
128
128
|
bool is_filterable = 8;
|
|
129
129
|
string kind = 9;
|
|
130
|
+
|
|
131
|
+
int32 value_count = 10;
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
message GetAttributesRequest {
|
|
133
135
|
PaginationRequest pagination = 1;
|
|
134
136
|
optional string group_id = 2;
|
|
137
|
+
|
|
138
|
+
optional string search = 3;
|
|
139
|
+
|
|
140
|
+
optional bool without_values = 4;
|
|
135
141
|
}
|
|
136
142
|
|
|
137
143
|
message GetAttributesResponse {
|
package/proto/category.proto
CHANGED
package/proto/stock.proto
CHANGED
|
@@ -91,8 +91,10 @@ message StockMovementResponse {
|
|
|
91
91
|
message UpdateWarehouseStockRequest {
|
|
92
92
|
string product_id = 1;
|
|
93
93
|
string warehouse_id = 2;
|
|
94
|
-
int32 quantity = 3;
|
|
94
|
+
int32 quantity = 3;
|
|
95
95
|
optional string created_by_id = 4;
|
|
96
|
+
|
|
97
|
+
optional string variant_id = 5;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
message GetProductStockRequest {
|
|
@@ -101,10 +103,12 @@ message GetProductStockRequest {
|
|
|
101
103
|
|
|
102
104
|
|
|
103
105
|
message BatchSyncStockItem {
|
|
104
|
-
string product_id = 1;
|
|
106
|
+
string product_id = 1;
|
|
105
107
|
string warehouse_id = 2;
|
|
106
108
|
int32 quantity = 3;
|
|
107
|
-
optional string guid_1c = 4;
|
|
109
|
+
optional string guid_1c = 4;
|
|
110
|
+
|
|
111
|
+
optional string variant_id = 5;
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
message BatchSyncStockRequest {
|
|
@@ -137,9 +141,11 @@ message CancelReservationRequest {
|
|
|
137
141
|
message AdjustStockRequest {
|
|
138
142
|
string product_id = 1;
|
|
139
143
|
string warehouse_id = 2;
|
|
140
|
-
int32 delta = 3;
|
|
144
|
+
int32 delta = 3;
|
|
141
145
|
string reason = 4;
|
|
142
146
|
string created_by_id = 5;
|
|
147
|
+
|
|
148
|
+
optional string variant_id = 6;
|
|
143
149
|
}
|
|
144
150
|
|
|
145
151
|
|