@mamindom/contracts 1.0.189 → 1.0.190
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/product.d.ts +4 -0
- package/dist/proto/product.proto +9 -0
- package/gen/product.ts +4 -0
- package/package.json +46 -46
- package/proto/product.proto +9 -0
package/dist/gen/product.d.ts
CHANGED
|
@@ -104,6 +104,8 @@ export interface ProductListItemResponse {
|
|
|
104
104
|
activePromo?: ProductPromoInfo | undefined;
|
|
105
105
|
weightKg: number;
|
|
106
106
|
updatedAt: string;
|
|
107
|
+
/** Артикул із 1С. Неунікальний, на відміну від sku, тож зберігається окремо. */
|
|
108
|
+
article1c?: string | undefined;
|
|
107
109
|
}
|
|
108
110
|
export interface ProductListItemResponse_NameEntry {
|
|
109
111
|
key: string;
|
|
@@ -168,6 +170,8 @@ export interface ProductDetailResponse {
|
|
|
168
170
|
activePromo?: ProductPromoInfo | undefined;
|
|
169
171
|
colors: ProductColorResponse[];
|
|
170
172
|
weightKg: number;
|
|
173
|
+
article1c?: string | undefined;
|
|
174
|
+
barcodes: string[];
|
|
171
175
|
}
|
|
172
176
|
export interface ProductDetailResponse_NameEntry {
|
|
173
177
|
key: string;
|
package/dist/proto/product.proto
CHANGED
|
@@ -188,6 +188,9 @@ message ProductListItemResponse {
|
|
|
188
188
|
double weight_kg = 24;
|
|
189
189
|
|
|
190
190
|
string updated_at = 25;
|
|
191
|
+
|
|
192
|
+
// Артикул із 1С. Неунікальний, на відміну від sku, тож зберігається окремо.
|
|
193
|
+
optional string article1c = 26;
|
|
191
194
|
}
|
|
192
195
|
|
|
193
196
|
|
|
@@ -239,6 +242,12 @@ message ProductDetailResponse {
|
|
|
239
242
|
repeated ProductColorResponse colors = 39;
|
|
240
243
|
|
|
241
244
|
double weight_kg = 40;
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
optional string article1c = 41;
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
repeated string barcodes = 42;
|
|
242
251
|
}
|
|
243
252
|
|
|
244
253
|
|
package/gen/product.ts
CHANGED
|
@@ -125,6 +125,8 @@ export interface ProductListItemResponse {
|
|
|
125
125
|
activePromo?: ProductPromoInfo | undefined;
|
|
126
126
|
weightKg: number;
|
|
127
127
|
updatedAt: string;
|
|
128
|
+
/** Артикул із 1С. Неунікальний, на відміну від sku, тож зберігається окремо. */
|
|
129
|
+
article1c?: string | undefined;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
export interface ProductListItemResponse_NameEntry {
|
|
@@ -173,6 +175,8 @@ export interface ProductDetailResponse {
|
|
|
173
175
|
activePromo?: ProductPromoInfo | undefined;
|
|
174
176
|
colors: ProductColorResponse[];
|
|
175
177
|
weightKg: number;
|
|
178
|
+
article1c?: string | undefined;
|
|
179
|
+
barcodes: string[];
|
|
176
180
|
}
|
|
177
181
|
|
|
178
182
|
export interface ProductDetailResponse_NameEntry {
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
2
|
+
"name": "@mamindom/contracts",
|
|
3
|
+
"description": "proto",
|
|
4
|
+
"version": "1.0.190",
|
|
5
|
+
"main": "./dist/src/index.js",
|
|
6
|
+
"types": "./dist/src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/src/index.d.ts",
|
|
10
|
+
"default": "./dist/src/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./gen/*": {
|
|
13
|
+
"types": "./dist/gen/*.d.ts",
|
|
14
|
+
"default": "./dist/gen/*.js"
|
|
15
|
+
},
|
|
16
|
+
"./events": {
|
|
17
|
+
"types": "./dist/events/index.d.ts",
|
|
18
|
+
"default": "./dist/events/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./events/*": {
|
|
21
|
+
"types": "./dist/events/*.d.ts",
|
|
22
|
+
"default": "./dist/events/*.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc -p tsconfig.build.json && cp -R proto dist/",
|
|
27
|
+
"generate": "mkdir -p gen && protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"proto",
|
|
32
|
+
"gen",
|
|
33
|
+
"events"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@nestjs/microservices": "^11.1.16",
|
|
40
|
+
"rxjs": "^7.8.2",
|
|
41
|
+
"ts-proto": "^2.11.4"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^25.3.5",
|
|
45
|
+
"typescript": "^5.9.3"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/proto/product.proto
CHANGED
|
@@ -188,6 +188,9 @@ message ProductListItemResponse {
|
|
|
188
188
|
double weight_kg = 24;
|
|
189
189
|
|
|
190
190
|
string updated_at = 25;
|
|
191
|
+
|
|
192
|
+
// Артикул із 1С. Неунікальний, на відміну від sku, тож зберігається окремо.
|
|
193
|
+
optional string article1c = 26;
|
|
191
194
|
}
|
|
192
195
|
|
|
193
196
|
|
|
@@ -239,6 +242,12 @@ message ProductDetailResponse {
|
|
|
239
242
|
repeated ProductColorResponse colors = 39;
|
|
240
243
|
|
|
241
244
|
double weight_kg = 40;
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
optional string article1c = 41;
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
repeated string barcodes = 42;
|
|
242
251
|
}
|
|
243
252
|
|
|
244
253
|
|