@mamindom/contracts 1.0.183 → 1.0.184
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/stock.d.ts +3 -0
- package/dist/proto/stock.proto +10 -4
- package/gen/stock.ts +3 -0
- package/package.json +1 -1
- package/proto/stock.proto +10 -4
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;
|
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/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/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
|
|