@mamindom/contracts 1.0.216 → 1.0.218

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.
@@ -11,6 +11,8 @@ export interface CouponResponse {
11
11
  isActive: boolean;
12
12
  expiresAt?: string | undefined;
13
13
  createdAt: string;
14
+ /** GUID номенклатури купона в 1С. Порожньо — ще не заповнено менеджером. */
15
+ guid1c?: string | undefined;
14
16
  }
15
17
  export interface GetCouponsRequest {
16
18
  pagination: PaginationRequest | undefined;
@@ -33,6 +35,7 @@ export interface CreateCouponRequest {
33
35
  usageLimitPerUser?: number | undefined;
34
36
  expiresAt?: string | undefined;
35
37
  isActive: boolean;
38
+ guid1c?: string | undefined;
36
39
  }
37
40
  export interface UpdateCouponRequest {
38
41
  id: string;
@@ -40,6 +43,8 @@ export interface UpdateCouponRequest {
40
43
  usageLimitPerUser?: number | undefined;
41
44
  expiresAt?: string | undefined;
42
45
  isActive?: boolean | undefined;
46
+ /** Порожній рядок — прибрати GUID; поле відсутнє — не чіпати. */
47
+ guid1c?: string | undefined;
43
48
  }
44
49
  export interface DeactivateCouponRequest {
45
50
  id: string;
@@ -52,6 +57,8 @@ export interface GenerateCouponsRequest {
52
57
  usageLimitPerUser?: number | undefined;
53
58
  expiresAt?: string | undefined;
54
59
  usageLimitTotal?: number | undefined;
60
+ /** Один GUID номенклатури 1С на всю згенеровану партію. */
61
+ guid1c?: string | undefined;
55
62
  }
56
63
  export interface GenerateCouponsResponse {
57
64
  generated: number;
@@ -70,6 +70,7 @@ export interface SizeChartAssignmentsResponse {
70
70
  brandIds: string[];
71
71
  categoryIds: string[];
72
72
  productIds: string[];
73
+ variantIds: string[];
73
74
  }
74
75
  export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
75
76
  export interface SizeChartServiceClient {
@@ -30,6 +30,9 @@ message CouponResponse {
30
30
  optional string expires_at = 8;
31
31
 
32
32
  string created_at = 9;
33
+
34
+ // GUID номенклатури купона в 1С. Порожньо — ще не заповнено менеджером.
35
+ optional string guid1c = 10;
33
36
  }
34
37
 
35
38
  message GetCouponsRequest {
@@ -57,6 +60,8 @@ message CreateCouponRequest {
57
60
  optional int32 usage_limit_per_user = 4;
58
61
  optional string expires_at = 5;
59
62
  bool is_active = 6;
63
+
64
+ optional string guid1c = 7;
60
65
  }
61
66
 
62
67
  message UpdateCouponRequest {
@@ -66,6 +71,9 @@ message UpdateCouponRequest {
66
71
  optional int32 usage_limit_per_user = 3;
67
72
  optional string expires_at = 4;
68
73
  optional bool is_active = 5;
74
+
75
+ // Порожній рядок — прибрати GUID; поле відсутнє — не чіпати.
76
+ optional string guid1c = 6;
69
77
  }
70
78
 
71
79
  message DeactivateCouponRequest {
@@ -84,6 +92,9 @@ message GenerateCouponsRequest {
84
92
 
85
93
 
86
94
  optional int32 usage_limit_total = 7;
95
+
96
+ // Один GUID номенклатури 1С на всю згенеровану партію.
97
+ optional string guid1c = 8;
87
98
  }
88
99
 
89
100
  message GenerateCouponsResponse {
@@ -76,4 +76,5 @@ message SizeChartAssignmentsResponse {
76
76
  repeated string brand_ids = 1;
77
77
  repeated string category_ids = 2;
78
78
  repeated string product_ids = 3;
79
+ repeated string variant_ids = 4;
79
80
  }
package/gen/coupon.ts CHANGED
@@ -21,6 +21,8 @@ export interface CouponResponse {
21
21
  isActive: boolean;
22
22
  expiresAt?: string | undefined;
23
23
  createdAt: string;
24
+ /** GUID номенклатури купона в 1С. Порожньо — ще не заповнено менеджером. */
25
+ guid1c?: string | undefined;
24
26
  }
25
27
 
26
28
  export interface GetCouponsRequest {
@@ -47,6 +49,7 @@ export interface CreateCouponRequest {
47
49
  usageLimitPerUser?: number | undefined;
48
50
  expiresAt?: string | undefined;
49
51
  isActive: boolean;
52
+ guid1c?: string | undefined;
50
53
  }
51
54
 
52
55
  export interface UpdateCouponRequest {
@@ -54,7 +57,11 @@ export interface UpdateCouponRequest {
54
57
  usageLimitTotal?: number | undefined;
55
58
  usageLimitPerUser?: number | undefined;
56
59
  expiresAt?: string | undefined;
57
- isActive?: boolean | undefined;
60
+ isActive?:
61
+ | boolean
62
+ | undefined;
63
+ /** Порожній рядок — прибрати GUID; поле відсутнє — не чіпати. */
64
+ guid1c?: string | undefined;
58
65
  }
59
66
 
60
67
  export interface DeactivateCouponRequest {
@@ -68,7 +75,11 @@ export interface GenerateCouponsRequest {
68
75
  randomLength?: number | undefined;
69
76
  usageLimitPerUser?: number | undefined;
70
77
  expiresAt?: string | undefined;
71
- usageLimitTotal?: number | undefined;
78
+ usageLimitTotal?:
79
+ | number
80
+ | undefined;
81
+ /** Один GUID номенклатури 1С на всю згенеровану партію. */
82
+ guid1c?: string | undefined;
72
83
  }
73
84
 
74
85
  export interface GenerateCouponsResponse {
package/gen/size_chart.ts CHANGED
@@ -86,6 +86,7 @@ export interface SizeChartAssignmentsResponse {
86
86
  brandIds: string[];
87
87
  categoryIds: string[];
88
88
  productIds: string[];
89
+ variantIds: string[];
89
90
  }
90
91
 
91
92
  export const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.216",
4
+ "version": "1.0.218",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -30,6 +30,9 @@ message CouponResponse {
30
30
  optional string expires_at = 8;
31
31
 
32
32
  string created_at = 9;
33
+
34
+ // GUID номенклатури купона в 1С. Порожньо — ще не заповнено менеджером.
35
+ optional string guid1c = 10;
33
36
  }
34
37
 
35
38
  message GetCouponsRequest {
@@ -57,6 +60,8 @@ message CreateCouponRequest {
57
60
  optional int32 usage_limit_per_user = 4;
58
61
  optional string expires_at = 5;
59
62
  bool is_active = 6;
63
+
64
+ optional string guid1c = 7;
60
65
  }
61
66
 
62
67
  message UpdateCouponRequest {
@@ -66,6 +71,9 @@ message UpdateCouponRequest {
66
71
  optional int32 usage_limit_per_user = 3;
67
72
  optional string expires_at = 4;
68
73
  optional bool is_active = 5;
74
+
75
+ // Порожній рядок — прибрати GUID; поле відсутнє — не чіпати.
76
+ optional string guid1c = 6;
69
77
  }
70
78
 
71
79
  message DeactivateCouponRequest {
@@ -84,6 +92,9 @@ message GenerateCouponsRequest {
84
92
 
85
93
 
86
94
  optional int32 usage_limit_total = 7;
95
+
96
+ // Один GUID номенклатури 1С на всю згенеровану партію.
97
+ optional string guid1c = 8;
87
98
  }
88
99
 
89
100
  message GenerateCouponsResponse {
@@ -76,4 +76,5 @@ message SizeChartAssignmentsResponse {
76
76
  repeated string brand_ids = 1;
77
77
  repeated string category_ids = 2;
78
78
  repeated string product_ids = 3;
79
+ repeated string variant_ids = 4;
79
80
  }