@mamindom/contracts 1.0.137 → 1.0.138

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.
@@ -18,7 +18,7 @@ export interface BannerListItemResponse {
18
18
  name: {
19
19
  [key: string]: string;
20
20
  };
21
- placement: BannerPlacement;
21
+ placements: BannerPlacement[];
22
22
  status: boolean;
23
23
  sortOrder: number;
24
24
  categoryId?: string | undefined;
@@ -36,7 +36,7 @@ export interface BannerDetailResponse {
36
36
  name: {
37
37
  [key: string]: string;
38
38
  };
39
- placement: BannerPlacement;
39
+ placements: BannerPlacement[];
40
40
  status: boolean;
41
41
  sortOrder: number;
42
42
  categoryId?: string | undefined;
@@ -97,7 +97,7 @@ export interface CreateBannerRequest {
97
97
  name: {
98
98
  [key: string]: string;
99
99
  };
100
- placement: BannerPlacement;
100
+ placements: BannerPlacement[];
101
101
  status: boolean;
102
102
  sortOrder: number;
103
103
  categoryId?: string | undefined;
@@ -118,7 +118,8 @@ export interface UpdateBannerRequest {
118
118
  name: {
119
119
  [key: string]: string;
120
120
  };
121
- placement?: BannerPlacement | undefined;
121
+ /** empty = не оновлювати; non-empty = заміна повного списку плейсментів. */
122
+ placements: BannerPlacement[];
122
123
  status?: boolean | undefined;
123
124
  sortOrder?: number | undefined;
124
125
  categoryId?: string | undefined;
@@ -38,7 +38,7 @@ message BannerListItemResponse {
38
38
  string id = 1;
39
39
  string slug = 2;
40
40
  map<string, string> name = 3;
41
- BannerPlacement placement = 4;
41
+ repeated BannerPlacement placements = 4;
42
42
  bool status = 5;
43
43
  int32 sort_order = 6;
44
44
  optional string category_id = 7;
@@ -51,7 +51,7 @@ message BannerDetailResponse {
51
51
  string id = 1;
52
52
  string slug = 2;
53
53
  map<string, string> name = 3;
54
- BannerPlacement placement = 4;
54
+ repeated BannerPlacement placements = 4;
55
55
  bool status = 5;
56
56
  int32 sort_order = 6;
57
57
  optional string category_id = 7;
@@ -102,7 +102,7 @@ message GetBannerRequest {
102
102
  message CreateBannerRequest {
103
103
  optional string slug = 1;
104
104
  map<string, string> name = 2;
105
- BannerPlacement placement = 3;
105
+ repeated BannerPlacement placements = 3;
106
106
  bool status = 4;
107
107
  int32 sort_order = 5;
108
108
  optional string category_id = 6;
@@ -118,7 +118,8 @@ message UpdateBannerRequest {
118
118
  string id = 1;
119
119
  optional string slug = 2;
120
120
  map<string, string> name = 3;
121
- optional BannerPlacement placement = 4;
121
+ // empty = не оновлювати; non-empty = заміна повного списку плейсментів.
122
+ repeated BannerPlacement placements = 4;
122
123
  optional bool status = 5;
123
124
  optional int32 sort_order = 6;
124
125
  optional string category_id = 7;
package/gen/banner.ts CHANGED
@@ -27,7 +27,7 @@ export interface BannerListItemResponse {
27
27
  id: string;
28
28
  slug: string;
29
29
  name: { [key: string]: string };
30
- placement: BannerPlacement;
30
+ placements: BannerPlacement[];
31
31
  status: boolean;
32
32
  sortOrder: number;
33
33
  categoryId?: string | undefined;
@@ -45,7 +45,7 @@ export interface BannerDetailResponse {
45
45
  id: string;
46
46
  slug: string;
47
47
  name: { [key: string]: string };
48
- placement: BannerPlacement;
48
+ placements: BannerPlacement[];
49
49
  status: boolean;
50
50
  sortOrder: number;
51
51
  categoryId?: string | undefined;
@@ -108,7 +108,7 @@ export interface GetBannerRequest {
108
108
  export interface CreateBannerRequest {
109
109
  slug?: string | undefined;
110
110
  name: { [key: string]: string };
111
- placement: BannerPlacement;
111
+ placements: BannerPlacement[];
112
112
  status: boolean;
113
113
  sortOrder: number;
114
114
  categoryId?: string | undefined;
@@ -129,7 +129,8 @@ export interface UpdateBannerRequest {
129
129
  id: string;
130
130
  slug?: string | undefined;
131
131
  name: { [key: string]: string };
132
- placement?: BannerPlacement | undefined;
132
+ /** empty = не оновлювати; non-empty = заміна повного списку плейсментів. */
133
+ placements: BannerPlacement[];
133
134
  status?: boolean | undefined;
134
135
  sortOrder?: number | undefined;
135
136
  categoryId?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.137",
4
+ "version": "1.0.138",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -38,7 +38,7 @@ message BannerListItemResponse {
38
38
  string id = 1;
39
39
  string slug = 2;
40
40
  map<string, string> name = 3;
41
- BannerPlacement placement = 4;
41
+ repeated BannerPlacement placements = 4;
42
42
  bool status = 5;
43
43
  int32 sort_order = 6;
44
44
  optional string category_id = 7;
@@ -51,7 +51,7 @@ message BannerDetailResponse {
51
51
  string id = 1;
52
52
  string slug = 2;
53
53
  map<string, string> name = 3;
54
- BannerPlacement placement = 4;
54
+ repeated BannerPlacement placements = 4;
55
55
  bool status = 5;
56
56
  int32 sort_order = 6;
57
57
  optional string category_id = 7;
@@ -102,7 +102,7 @@ message GetBannerRequest {
102
102
  message CreateBannerRequest {
103
103
  optional string slug = 1;
104
104
  map<string, string> name = 2;
105
- BannerPlacement placement = 3;
105
+ repeated BannerPlacement placements = 3;
106
106
  bool status = 4;
107
107
  int32 sort_order = 5;
108
108
  optional string category_id = 6;
@@ -118,7 +118,8 @@ message UpdateBannerRequest {
118
118
  string id = 1;
119
119
  optional string slug = 2;
120
120
  map<string, string> name = 3;
121
- optional BannerPlacement placement = 4;
121
+ // empty = не оновлювати; non-empty = заміна повного списку плейсментів.
122
+ repeated BannerPlacement placements = 4;
122
123
  optional bool status = 5;
123
124
  optional int32 sort_order = 6;
124
125
  optional string category_id = 7;