@mamindom/contracts 1.0.182 → 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 +4 -0
- package/dist/proto/stock.proto +12 -4
- package/gen/stock.ts +4 -0
- package/package.json +1 -1
- package/proto/stock.proto +12 -4
package/dist/gen/stock.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export interface VariantStockDetail {
|
|
|
40
40
|
[key: string]: string;
|
|
41
41
|
};
|
|
42
42
|
available: number;
|
|
43
|
+
stockTracked: boolean;
|
|
43
44
|
}
|
|
44
45
|
export interface VariantStockDetail_OptionsEntry {
|
|
45
46
|
key: string;
|
|
@@ -64,6 +65,7 @@ export interface UpdateWarehouseStockRequest {
|
|
|
64
65
|
warehouseId: string;
|
|
65
66
|
quantity: number;
|
|
66
67
|
createdById?: string | undefined;
|
|
68
|
+
variantId?: string | undefined;
|
|
67
69
|
}
|
|
68
70
|
export interface GetProductStockRequest {
|
|
69
71
|
productId: string;
|
|
@@ -73,6 +75,7 @@ export interface BatchSyncStockItem {
|
|
|
73
75
|
warehouseId: string;
|
|
74
76
|
quantity: number;
|
|
75
77
|
guid1c?: string | undefined;
|
|
78
|
+
variantId?: string | undefined;
|
|
76
79
|
}
|
|
77
80
|
export interface BatchSyncStockRequest {
|
|
78
81
|
items: BatchSyncStockItem[];
|
|
@@ -100,6 +103,7 @@ export interface AdjustStockRequest {
|
|
|
100
103
|
delta: number;
|
|
101
104
|
reason: string;
|
|
102
105
|
createdById: string;
|
|
106
|
+
variantId?: string | undefined;
|
|
103
107
|
}
|
|
104
108
|
export interface GetStockMovementsRequest {
|
|
105
109
|
pagination: PaginationRequest | undefined;
|
package/dist/proto/stock.proto
CHANGED
|
@@ -68,6 +68,8 @@ message VariantStockDetail {
|
|
|
68
68
|
map<string, string> options = 5;
|
|
69
69
|
|
|
70
70
|
int32 available = 6;
|
|
71
|
+
|
|
72
|
+
bool stock_tracked = 7;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
message StockMovementResponse {
|
|
@@ -89,8 +91,10 @@ message StockMovementResponse {
|
|
|
89
91
|
message UpdateWarehouseStockRequest {
|
|
90
92
|
string product_id = 1;
|
|
91
93
|
string warehouse_id = 2;
|
|
92
|
-
int32 quantity = 3;
|
|
94
|
+
int32 quantity = 3;
|
|
93
95
|
optional string created_by_id = 4;
|
|
96
|
+
|
|
97
|
+
optional string variant_id = 5;
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
message GetProductStockRequest {
|
|
@@ -99,10 +103,12 @@ message GetProductStockRequest {
|
|
|
99
103
|
|
|
100
104
|
|
|
101
105
|
message BatchSyncStockItem {
|
|
102
|
-
string product_id = 1;
|
|
106
|
+
string product_id = 1;
|
|
103
107
|
string warehouse_id = 2;
|
|
104
108
|
int32 quantity = 3;
|
|
105
|
-
optional string guid_1c = 4;
|
|
109
|
+
optional string guid_1c = 4;
|
|
110
|
+
|
|
111
|
+
optional string variant_id = 5;
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
message BatchSyncStockRequest {
|
|
@@ -135,9 +141,11 @@ message CancelReservationRequest {
|
|
|
135
141
|
message AdjustStockRequest {
|
|
136
142
|
string product_id = 1;
|
|
137
143
|
string warehouse_id = 2;
|
|
138
|
-
int32 delta = 3;
|
|
144
|
+
int32 delta = 3;
|
|
139
145
|
string reason = 4;
|
|
140
146
|
string created_by_id = 5;
|
|
147
|
+
|
|
148
|
+
optional string variant_id = 6;
|
|
141
149
|
}
|
|
142
150
|
|
|
143
151
|
|
package/gen/stock.ts
CHANGED
|
@@ -52,6 +52,7 @@ export interface VariantStockDetail {
|
|
|
52
52
|
stock: number;
|
|
53
53
|
options: { [key: string]: string };
|
|
54
54
|
available: number;
|
|
55
|
+
stockTracked: boolean;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
export interface VariantStockDetail_OptionsEntry {
|
|
@@ -79,6 +80,7 @@ export interface UpdateWarehouseStockRequest {
|
|
|
79
80
|
warehouseId: string;
|
|
80
81
|
quantity: number;
|
|
81
82
|
createdById?: string | undefined;
|
|
83
|
+
variantId?: string | undefined;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
export interface GetProductStockRequest {
|
|
@@ -90,6 +92,7 @@ export interface BatchSyncStockItem {
|
|
|
90
92
|
warehouseId: string;
|
|
91
93
|
quantity: number;
|
|
92
94
|
guid1c?: string | undefined;
|
|
95
|
+
variantId?: string | undefined;
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
export interface BatchSyncStockRequest {
|
|
@@ -123,6 +126,7 @@ export interface AdjustStockRequest {
|
|
|
123
126
|
delta: number;
|
|
124
127
|
reason: string;
|
|
125
128
|
createdById: string;
|
|
129
|
+
variantId?: string | undefined;
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
export interface GetStockMovementsRequest {
|
package/package.json
CHANGED
package/proto/stock.proto
CHANGED
|
@@ -68,6 +68,8 @@ message VariantStockDetail {
|
|
|
68
68
|
map<string, string> options = 5;
|
|
69
69
|
|
|
70
70
|
int32 available = 6;
|
|
71
|
+
|
|
72
|
+
bool stock_tracked = 7;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
message StockMovementResponse {
|
|
@@ -89,8 +91,10 @@ message StockMovementResponse {
|
|
|
89
91
|
message UpdateWarehouseStockRequest {
|
|
90
92
|
string product_id = 1;
|
|
91
93
|
string warehouse_id = 2;
|
|
92
|
-
int32 quantity = 3;
|
|
94
|
+
int32 quantity = 3;
|
|
93
95
|
optional string created_by_id = 4;
|
|
96
|
+
|
|
97
|
+
optional string variant_id = 5;
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
message GetProductStockRequest {
|
|
@@ -99,10 +103,12 @@ message GetProductStockRequest {
|
|
|
99
103
|
|
|
100
104
|
|
|
101
105
|
message BatchSyncStockItem {
|
|
102
|
-
string product_id = 1;
|
|
106
|
+
string product_id = 1;
|
|
103
107
|
string warehouse_id = 2;
|
|
104
108
|
int32 quantity = 3;
|
|
105
|
-
optional string guid_1c = 4;
|
|
109
|
+
optional string guid_1c = 4;
|
|
110
|
+
|
|
111
|
+
optional string variant_id = 5;
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
message BatchSyncStockRequest {
|
|
@@ -135,9 +141,11 @@ message CancelReservationRequest {
|
|
|
135
141
|
message AdjustStockRequest {
|
|
136
142
|
string product_id = 1;
|
|
137
143
|
string warehouse_id = 2;
|
|
138
|
-
int32 delta = 3;
|
|
144
|
+
int32 delta = 3;
|
|
139
145
|
string reason = 4;
|
|
140
146
|
string created_by_id = 5;
|
|
147
|
+
|
|
148
|
+
optional string variant_id = 6;
|
|
141
149
|
}
|
|
142
150
|
|
|
143
151
|
|